From 065df943db040560f1e8c25827da25b956789b7f Mon Sep 17 00:00:00 2001
From: M0 This TiddlyWiki contains the following tiddlers:/*\
+title: $:/.tb/modules/startup/hide-sidebar.js
+type: application/javascript
+module-type: startup
+created: 20151010151732122
+creator: Tobias Beer
+modified: 20151010151750739
+
+Hides the sidebar on startup when the config tiddler [[$:/config/hide-sidebar-on-startup]] contains "yes"
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Export name and synchronous status
+exports.name = "hide-sidebar-on-startup";
+exports.platforms = ["browser"];
+exports.after = ["startup"];
+exports.synchronous = true;
+
+exports.startup = function() {
+ var conf = $tw.wiki.getTiddler("$:/config/HideSidebarOnStartup"),
+ value = (conf ? conf.getFieldString("text") : "").toLowerCase(),
+ state = value == "yes" ? "no" : "yes";
+ $tw.wiki.setText("$:/state/sidebar", "text", undefined, state);
+};
+
+})();
+TiddlyWiki incorporates code from these fine OpenSource projects:
+
+* [[The Stanford Javascript Crypto Library|http://bitwiseshiftleft.github.io/sjcl/]]
+* [[The Jasmine JavaScript Test Framework|http://pivotal.github.io/jasmine/]]
+* [[Normalize.css by Nicolas Gallagher|http://necolas.github.io/normalize.css/]]
+
+And media from these projects:
+
+* World flag icons from [[Wikipedia|http://commons.wikimedia.org/wiki/Category:SVG_flags_by_country]]
+
+<div class="tc-advanced-search">
+<<tabs "[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch]!has[draft.of]]" "$:/core/ui/AdvancedSearch/System">>
+</div>
+
+400
+title
+yes
+#444
+[[62px 100px]] [[100px 62px]] [[124px 200px]] [[200px 124px]] [[248px 400px]] [[371px 600px]] [[400px 248px]] [[556px 900px]] [[600px 371px]] [[742px 1200px]] [[900px 556px]] [[1200px 742px]]
+3px
+0.25px 0.5px 1px 2px 3px 4px 6px 8px 10px 16px 20px 28px 40px 56px 80px
+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
+1.0
+$:/core/ui/MoreSideBar/Tags
+$:/core/ui/SideBar/Open
+yes
+400
+hide
+hide
+hide
+bitmap
+bitmap
+bitmap
+bitmap
+bitmap
+bitmap
+bitmap
+bitmap
+text
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+yes
+forward
+tiddlers
+title
+system
+yes
+below
+top
+no
+no
+jpeg
+DDth MMM YYYY
+{{$:/language/OfficialPluginLibrary/Hint}}
+
+hide
+hide
+hide
+hide
+hide
+hide
+show
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+no
+no
+no
+no
+yes
+no
+[all[]] -[[$:/HistoryList]] -[[$:/StoryList]] -[[$:/Import]] -[[$:/isEncrypted]] -[[$:/UploadName]] -[prefix[$:/state/]] -[prefix[$:/temp/]]
+$:/core/save/all
+true
+3
+$:/core/ui/DefaultSearchResultList
+yes
+{{$:/language/EditTemplate/Fields/Add/Button/Hint}}
+{{$:/language/Buttons/AdvancedSearch/Hint}}
+{{$:/language/Buttons/Bold/Hint}}
+{{$:/language/Buttons/Cancel/Hint}}
+{{$:/language/Buttons/Excise/Hint}}
+{{$:/language/Buttons/Heading1/Hint}}
+{{$:/language/Buttons/Heading2/Hint}}
+{{$:/language/Buttons/Heading3/Hint}}
+{{$:/language/Buttons/Heading4/Hint}}
+{{$:/language/Buttons/Heading5/Hint}}
+{{$:/language/Buttons/Heading6/Hint}}
+{{$:/language/Buttons/Italic/Hint}}
+{{$:/language/Buttons/Link/Hint}}
+{{$:/language/Buttons/ListBullet/Hint}}
+{{$:/language/Buttons/ListNumber/Hint}}
+{{$:/language/Buttons/MonoBlock/Hint}}
+{{$:/language/Buttons/MonoLine/Hint}}
+{{$:/language/Buttons/NewImage/Hint}}
+{{$:/language/Buttons/NewJournal/Hint}}
+{{$:/language/Buttons/NewTiddler/Hint}}
+{{$:/language/Buttons/Picture/Hint}}
+{{$:/language/Buttons/Preview/Hint}}
+{{$:/language/Buttons/Quote/Hint}}
+{{$:/language/Buttons/Save/Hint}}
+{{$:/language/Buttons/SidebarSearch/Hint}}
+{{$:/language/Buttons/Stamp/Hint}}
+{{$:/language/Buttons/Strikethrough/Hint}}
+{{$:/language/Buttons/Subscript/Hint}}
+{{$:/language/Buttons/Superscript/Hint}}
+{{$:/language/Buttons/ToggleSidebar/Hint}}
+{{$:/language/Buttons/Underline/Hint}}
+meta-B
+meta-I
+ctrl-I
+ctrl-J
+ctrl-N
+meta-U
+ctrl-B
+ctrl-I
+alt-I
+alt-J
+alt-N
+ctrl-U
+enter
+ctrl-shift-A
+escape
+ctrl-E
+ctrl-1
+ctrl-2
+ctrl-3
+ctrl-4
+ctrl-5
+ctrl-6
+ctrl-L
+alt-shift-L
+ctrl-shift-L
+ctrl-shift-N
+ctrl-shift-M
+ctrl-M
+ctrl-shift-I
+alt-P
+ctrl-Q
+ctrl+enter
+ctrl-shift-F
+ctrl-S
+ctrl-T
+ctrl-shift-B
+ctrl-shift-P
+alt-shift-S
+alt-shift-T
+[is[tiddler]] -[[$:/HistoryList]] -[[$:/Import]] -[[$:/isEncrypted]] -[prefix[$:/status/]] -[prefix[$:/state/]] -[prefix[$:/temp/]]
+0
+400px
+auto
+$:/core/ui/TiddlerInfo/Fields
+popup
+no
+tc-btn-invisible
+yes
+no
+$:/core/ui/EditTemplate
+$:/core/ui/ViewTemplate
+hide
+show
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+hide
+disable
+<div class="tc-control-panel">
+<<tabs "[all[shadows+tiddlers]tag[$:/tags/ControlPanel]!has[draft.of]]" "$:/core/ui/ControlPanel/Info">>
+</div>
+
+{
+ "tiddlers": {
+ "$:/Acknowledgements": {
+ "title": "$:/Acknowledgements",
+ "text": "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"
+ },
+ "$:/core/copyright.txt": {
+ "title": "$:/core/copyright.txt",
+ "type": "text/plain",
+ "text": "TiddlyWiki created by Jeremy Ruston, (jeremy [at] jermolene [dot] com)\n\nCopyright (c) 2004-2007, Jeremy Ruston\nCopyright (c) 2007-2020, UnaMesa Association\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+ },
+ "$:/core/icon": {
+ "title": "$:/core/icon",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\"><path d=\"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\" fill-rule=\"evenodd\"/></svg>"
+ },
+ "$:/core/images/add-comment": {
+ "title": "$:/core/images/add-comment",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-add-comment tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M56 56H36a8 8 0 100 16h20v20a8 8 0 1016 0V72h20a8 8 0 100-16H72V36a8 8 0 10-16 0v20zm-12.595 58.362c-6.683 7.659-20.297 12.903-36.006 12.903-2.196 0-4.35-.102-6.451-.3 9.652-3.836 17.356-12.24 21.01-22.874C8.516 94.28 0 79.734 0 63.5 0 33.953 28.206 10 63 10s63 23.953 63 53.5S97.794 117 63 117c-6.841 0-13.428-.926-19.595-2.638z\"/></svg>"
+ },
+ "$:/core/images/advanced-search-button": {
+ "title": "$:/core/images/advanced-search-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-advanced-search-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M74.565 87.985A47.776 47.776 0 0148 96C21.49 96 0 74.51 0 48S21.49 0 48 0s48 21.49 48 48c0 9.854-2.97 19.015-8.062 26.636l34.347 34.347a9.443 9.443 0 010 13.36 9.446 9.446 0 01-13.36 0l-34.36-34.358zM48 80c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32z\"/><circle cx=\"48\" cy=\"48\" r=\"8\"/><circle cx=\"28\" cy=\"48\" r=\"8\"/><circle cx=\"68\" cy=\"48\" r=\"8\"/></g></svg>"
+ },
+ "$:/core/images/auto-height": {
+ "title": "$:/core/images/auto-height",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-auto-height tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M67.987 114.356l-.029-14.477a4 4 0 00-2.067-3.494l-15.966-8.813-1.933 7.502H79.9c4.222 0 5.564-5.693 1.786-7.58L49.797 71.572 48.01 79.15h31.982c4.217 0 5.564-5.682 1.795-7.575L49.805 55.517l-1.795 7.575h31.982c4.212 0 5.563-5.67 1.805-7.57l-16.034-8.105 2.195 3.57V35.614l9.214 9.213a4 4 0 105.656-5.656l-16-16a4 4 0 00-5.656 0l-16 16a4 4 0 105.656 5.656l9.13-9.13v15.288a4 4 0 002.195 3.57l16.035 8.106 1.804-7.57H48.01c-4.217 0-5.564 5.682-1.795 7.574l31.982 16.059 1.795-7.575H48.01c-4.222 0-5.564 5.693-1.787 7.579l31.89 15.923 1.787-7.578H47.992c-4.133 0-5.552 5.504-1.933 7.501l15.966 8.813-2.067-3.494.029 14.436-9.159-9.158a4 4 0 00-5.656 5.656l16 16a4 4 0 005.656 0l16-16a4 4 0 10-5.656-5.656l-9.185 9.184zM16 20h96a4 4 0 100-8H16a4 4 0 100 8z\"/></svg>"
+ },
+ "$:/core/images/blank": {
+ "title": "$:/core/images/blank",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-blank tc-image-button\" viewBox=\"0 0 128 128\"/>"
+ },
+ "$:/core/images/bold": {
+ "title": "$:/core/images/bold",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-bold tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M41.146 51.81V21.87h26.353c2.51 0 4.93.21 7.26.628 2.33.418 4.392 1.165 6.185 2.24 1.793 1.076 3.227 2.57 4.302 4.482 1.076 1.913 1.614 4.363 1.614 7.35 0 5.379-1.613 9.263-4.84 11.653-3.227 2.39-7.35 3.586-12.37 3.586H41.146zM13 0v128h62.028a65.45 65.45 0 0016.762-2.151c5.438-1.434 10.278-3.645 14.52-6.633 4.244-2.988 7.62-6.842 10.13-11.563 2.51-4.721 3.764-10.308 3.764-16.762 0-8.008-1.942-14.85-5.826-20.527-3.884-5.677-9.77-9.65-17.658-11.921 5.737-2.75 10.069-6.275 12.997-10.577 2.928-4.303 4.392-9.681 4.392-16.135 0-5.976-.986-10.995-2.958-15.059-1.972-4.063-4.75-7.32-8.336-9.77-3.585-2.45-7.888-4.213-12.907-5.289C84.888.538 79.33 0 73.235 0H13zm28.146 106.129V70.992H71.8c6.095 0 10.995 1.404 14.7 4.212 3.705 2.81 5.558 7.5 5.558 14.073 0 3.347-.568 6.096-1.703 8.247-1.136 2.151-2.66 3.854-4.572 5.11-1.912 1.254-4.123 2.15-6.633 2.688-2.51.538-5.139.807-7.888.807H41.146z\"/></svg>"
+ },
+ "$:/core/images/cancel-button": {
+ "title": "$:/core/images/cancel-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-cancel-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M64 76.314l-16.97 16.97a7.999 7.999 0 01-11.314 0c-3.118-3.118-3.124-8.19 0-11.313L52.686 65l-16.97-16.97a7.999 7.999 0 010-11.314c3.118-3.118 8.19-3.124 11.313 0L64 53.686l16.97-16.97a7.999 7.999 0 0111.314 0c3.118 3.118 3.124 8.19 0 11.313L75.314 65l16.97 16.97a7.999 7.999 0 010 11.314c-3.118 3.118-8.19 3.124-11.313 0L64 76.314zM64 129c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 1 0 29.654 0 65c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 17 64 17 16 38.49 16 65s21.49 48 48 48z\"/></svg>"
+ },
+ "$:/core/images/chevron-down": {
+ "title": "$:/core/images/chevron-down",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-chevron-down tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M64.053 85.456a7.889 7.889 0 01-5.6-2.316L2.473 27.16a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0L64.05 66.344l50.382-50.382a7.92 7.92 0 0111.195 0c3.085 3.086 3.092 8.105 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.317z\"/><path d=\"M64.053 124.069a7.889 7.889 0 01-5.6-2.316l-55.98-55.98a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0l50.382 50.382 50.382-50.382a7.92 7.92 0 0111.195 0c3.085 3.086 3.092 8.104 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.316z\"/></g></svg>"
+ },
+ "$:/core/images/chevron-left": {
+ "title": "$:/core/images/chevron-left",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-chevron-left tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M47.544 64.053c0-2.027.77-4.054 2.316-5.6l55.98-55.98a7.92 7.92 0 0111.196 0c3.085 3.086 3.092 8.105 0 11.196L66.656 64.05l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.085-8.105 3.092-11.196 0l-55.98-55.98a7.892 7.892 0 01-2.317-5.595z\"/><path d=\"M8.931 64.053c0-2.027.77-4.054 2.316-5.6l55.98-55.98a7.92 7.92 0 0111.196 0c3.085 3.086 3.092 8.105 0 11.196L28.041 64.05l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.085-8.104 3.092-11.196 0l-55.98-55.98a7.892 7.892 0 01-2.316-5.595z\"/></g></svg>"
+ },
+ "$:/core/images/chevron-right": {
+ "title": "$:/core/images/chevron-right",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-chevron-right tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M83.456 63.947c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196L64.344 63.95 13.963 13.567a7.92 7.92 0 010-11.195c3.086-3.085 8.105-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.317 5.595z\"/><path d=\"M122.069 63.947c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l50.382-50.382-50.382-50.382a7.92 7.92 0 010-11.195c3.086-3.085 8.104-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.316 5.595z\"/></g></svg>"
+ },
+ "$:/core/images/chevron-up": {
+ "title": "$:/core/images/chevron-up",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-chevron-up tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M63.947 44.544c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.105 3.092-11.196 0L63.95 63.656l-50.382 50.382a7.92 7.92 0 01-11.195 0c-3.085-3.086-3.092-8.105 0-11.196l55.98-55.98a7.892 7.892 0 015.595-2.317z\"/><path d=\"M63.947 5.931c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.105 3.092-11.196 0L63.95 25.041 13.567 75.423a7.92 7.92 0 01-11.195 0c-3.085-3.086-3.092-8.104 0-11.196l55.98-55.98a7.892 7.892 0 015.595-2.316z\"/></g></svg>"
+ },
+ "$:/core/images/clone-button": {
+ "title": "$:/core/images/clone-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-clone-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M32.265 96v24.002A7.996 7.996 0 0040.263 128h79.74a7.996 7.996 0 007.997-7.998v-79.74a7.996 7.996 0 00-7.998-7.997H96V48h12.859a2.99 2.99 0 012.994 2.994v57.865a2.99 2.99 0 01-2.994 2.994H50.994A2.99 2.99 0 0148 108.859V96H32.265z\"/><path d=\"M40 56h-7.993C27.588 56 24 52.418 24 48c0-4.41 3.585-8 8.007-8H40v-7.993C40 27.588 43.582 24 48 24c4.41 0 8 3.585 8 8.007V40h7.993C68.412 40 72 43.582 72 48c0 4.41-3.585 8-8.007 8H56v7.993C56 68.412 52.418 72 48 72c-4.41 0-8-3.585-8-8.007V56zM8 0C3.58 0 0 3.588 0 8v80c0 4.419 3.588 8 8 8h80c4.419 0 8-3.588 8-8V8c0-4.419-3.588-8-8-8H8zM19 16A2.997 2.997 0 0016 19.001v57.998A2.997 2.997 0 0019.001 80h57.998A2.997 2.997 0 0080 76.999V19.001A2.997 2.997 0 0076.999 16H19.001z\"/></g></svg>"
+ },
+ "$:/core/images/close-all-button": {
+ "title": "$:/core/images/close-all-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-close-all-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M28 111.314l-14.144 14.143a8 8 0 01-11.313-11.313L16.686 100 2.543 85.856a8 8 0 0111.313-11.313L28 88.686l14.144-14.143a8 8 0 0111.313 11.313L39.314 100l14.143 14.144a8 8 0 01-11.313 11.313L28 111.314zM28 39.314L13.856 53.457A8 8 0 012.543 42.144L16.686 28 2.543 13.856A8 8 0 0113.856 2.543L28 16.686 42.144 2.543a8 8 0 0111.313 11.313L39.314 28l14.143 14.144a8 8 0 01-11.313 11.313L28 39.314zM100 39.314L85.856 53.457a8 8 0 01-11.313-11.313L88.686 28 74.543 13.856A8 8 0 0185.856 2.543L100 16.686l14.144-14.143a8 8 0 0111.313 11.313L111.314 28l14.143 14.144a8 8 0 01-11.313 11.313L100 39.314zM100 111.314l-14.144 14.143a8 8 0 01-11.313-11.313L88.686 100 74.543 85.856a8 8 0 0111.313-11.313L100 88.686l14.144-14.143a8 8 0 0111.313 11.313L111.314 100l14.143 14.144a8 8 0 01-11.313 11.313L100 111.314z\"/></g></svg>"
+ },
+ "$:/core/images/close-button": {
+ "title": "$:/core/images/close-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-close-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M65.086 75.41l-50.113 50.113c-3.121 3.121-8.192 3.126-11.316.002-3.118-3.118-3.123-8.19.002-11.316l50.114-50.114L3.659 13.982C.538 10.86.533 5.79 3.657 2.666c3.118-3.118 8.19-3.123 11.316.002l50.113 50.114L115.2 2.668c3.121-3.121 8.192-3.126 11.316-.002 3.118 3.118 3.123 8.19-.002 11.316L76.4 64.095l50.114 50.114c3.121 3.121 3.126 8.192.002 11.316-3.118 3.118-8.19 3.123-11.316-.002L65.086 75.409z\"/></svg>"
+ },
+ "$:/core/images/close-others-button": {
+ "title": "$:/core/images/close-others-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-close-others-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48zm0-16c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32zm0-16c8.837 0 16-7.163 16-16s-7.163-16-16-16-16 7.163-16 16 7.163 16 16 16z\"/></svg>"
+ },
+ "$:/core/images/copy-clipboard": {
+ "title": "$:/core/images/copy-clipboard",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-copy-clipboard tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"33\" height=\"8\" x=\"40\" y=\"40\" rx=\"4\"/><rect width=\"17\" height=\"8\" x=\"40\" y=\"82\" rx=\"4\"/><rect width=\"17\" height=\"8\" x=\"40\" y=\"54\" rx=\"4\"/><rect width=\"33\" height=\"8\" x=\"40\" y=\"96\" rx=\"4\"/><rect width=\"12\" height=\"8\" x=\"40\" y=\"68\" rx=\"4\"/><path d=\"M40 16H24c-4.419 0-8 3.59-8 8a8.031 8.031 0 000 .01v95.98a8.03 8.03 0 000 .01c0 4.41 3.581 8 8 8h80a7.975 7.975 0 005.652-2.34 7.958 7.958 0 002.348-5.652v-16.016c0-4.414-3.582-7.992-8-7.992-4.41 0-8 3.578-8 7.992V112H32V32h64v8.008C96 44.422 99.582 48 104 48c4.41 0 8-3.578 8-7.992V23.992a7.963 7.963 0 00-2.343-5.651A7.995 7.995 0 00104.001 16H88c0-4.41-3.585-8-8.007-8H48.007C43.588 8 40 11.582 40 16zm4-1.004A4.001 4.001 0 0148 11h32c2.21 0 4 1.797 4 3.996v4.008A4.001 4.001 0 0180 23H48c-2.21 0-4-1.797-4-3.996v-4.008z\"/><rect width=\"66\" height=\"16\" x=\"62\" y=\"64\" rx=\"8\"/><path d=\"M84.657 82.343l-16-16v11.314l16-16a8 8 0 10-11.314-11.314l-16 16a8 8 0 000 11.314l16 16a8 8 0 1011.314-11.314z\"/></g></svg>"
+ },
+ "$:/core/images/delete-button": {
+ "title": "$:/core/images/delete-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-delete-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\" transform=\"translate(12)\"><rect width=\"105\" height=\"16\" y=\"11\" rx=\"8\"/><rect width=\"48\" height=\"16\" x=\"28\" rx=\"8\"/><rect width=\"16\" height=\"112\" x=\"8\" y=\"16\" rx=\"8\"/><rect width=\"88\" height=\"16\" x=\"8\" y=\"112\" rx=\"8\"/><rect width=\"16\" height=\"112\" x=\"80\" y=\"16\" rx=\"8\"/><rect width=\"16\" height=\"112\" x=\"56\" y=\"16\" rx=\"8\"/><rect width=\"16\" height=\"112\" x=\"32\" y=\"16\" rx=\"8\"/></g></svg>"
+ },
+ "$:/core/images/done-button": {
+ "title": "$:/core/images/done-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-done-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M42.26 111.032c-2.051.001-4.103-.78-5.668-2.345L2.662 74.758a8 8 0 01-.005-11.32c3.118-3.117 8.192-3.12 11.32.007l28.278 28.278 72.124-72.124a8.002 8.002 0 0111.314-.001c3.118 3.118 3.124 8.19 0 11.315l-77.78 77.78a7.978 7.978 0 01-5.658 2.343z\"/></svg>"
+ },
+ "$:/core/images/down-arrow": {
+ "title": "$:/core/images/down-arrow",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-down-arrow tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M64.177 100.069a7.889 7.889 0 01-5.6-2.316l-55.98-55.98a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0l50.382 50.382 50.382-50.382a7.92 7.92 0 0111.195 0c3.086 3.086 3.092 8.104 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.316z\"/></svg>"
+ },
+ "$:/core/images/download-button": {
+ "title": "$:/core/images/download-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-download-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48z\" class=\"tc-image-download-button-ring\"/><path d=\"M34.35 66.43l26.892 27.205a4.57 4.57 0 006.516 0L94.65 66.43a4.7 4.7 0 000-6.593 4.581 4.581 0 00-3.258-1.365h-8.46c-2.545 0-4.608-2.087-4.608-4.661v-15.15c0-2.575-2.063-4.662-4.608-4.662H55.284c-2.545 0-4.608 2.087-4.608 4.662v15.15c0 2.574-2.063 4.661-4.608 4.661h-8.46c-2.545 0-4.608 2.087-4.608 4.662a4.69 4.69 0 001.35 3.296z\"/></g></svg>"
+ },
+ "$:/core/images/edit-button": {
+ "title": "$:/core/images/edit-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-edit-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M95.627 10.059l-5.656 5.657 11.313 11.313 5.657-5.656-11.314-11.314zm5.657-5.657l1.966-1.966c3.123-3.122 8.194-3.129 11.319-.005 3.117 3.118 3.122 8.192-.005 11.32l-1.966 1.965-11.314-11.314zm-16.97 16.97l-60.25 60.25a8.12 8.12 0 00-.322.342c-.1.087-.198.179-.295.275-5.735 5.735-10.702 22.016-10.702 22.016s16.405-5.09 22.016-10.702c.095-.096.186-.193.272-.292a8.12 8.12 0 00.345-.325l60.25-60.25-11.314-11.313zM35.171 124.19c6.788-.577 13.898-2.272 23.689-5.348 1.825-.573 3.57-1.136 6.336-2.04 16-5.226 21.877-6.807 28.745-7.146 8.358-.413 13.854 2.13 17.58 8.699a4 4 0 006.959-3.946c-5.334-9.406-13.745-13.296-24.933-12.744-7.875.39-14.057 2.052-30.835 7.533-2.739.894-4.46 1.45-6.25 2.012-19.46 6.112-30.77 7.072-39.597 1.747a4 4 0 10-4.132 6.85c6.333 3.82 13.754 5.12 22.438 4.383z\"/></g></svg>"
+ },
+ "$:/core/images/erase": {
+ "title": "$:/core/images/erase",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-erase tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M60.087 127.996l63.015-63.015c6.535-6.535 6.528-17.115-.003-23.646L99.466 17.702c-6.539-6.538-17.117-6.532-23.646-.003L4.898 88.62c-6.535 6.534-6.528 17.115.003 23.646l15.73 15.73h39.456zm-34.95-7.313l-14.324-14.325c-3.267-3.268-3.268-8.564-.008-11.824L46.269 59.07l35.462 35.462-26.15 26.15H25.137z\"/></svg>"
+ },
+ "$:/core/images/excise": {
+ "title": "$:/core/images/excise",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-excise tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M56 107.314l-2.343 2.343a8 8 0 11-11.314-11.314l16-16a8 8 0 0111.314 0l16 16a8 8 0 11-11.314 11.314L72 107.314v14.284c0 3.536-3.582 6.402-8 6.402s-8-2.866-8-6.402v-14.284zM0 40.007C0 35.585 3.59 32 8 32c4.418 0 8 3.588 8 8.007v31.986C16 76.415 12.41 80 8 80c-4.418 0-8-3.588-8-8.007V40.007zm32 0C32 35.585 35.59 32 40 32c4.418 0 8 3.588 8 8.007v31.986C48 76.415 44.41 80 40 80c-4.418 0-8-3.588-8-8.007V40.007zm48 0C80 35.585 83.59 32 88 32c4.418 0 8 3.588 8 8.007v31.986C96 76.415 92.41 80 88 80c-4.418 0-8-3.588-8-8.007V40.007zm-24-32C56 3.585 59.59 0 64 0c4.418 0 8 3.588 8 8.007v31.986C72 44.415 68.41 48 64 48c-4.418 0-8-3.588-8-8.007V8.007zm56 32c0-4.422 3.59-8.007 8-8.007 4.418 0 8 3.588 8 8.007v31.986c0 4.422-3.59 8.007-8 8.007-4.418 0-8-3.588-8-8.007V40.007z\"/></svg>"
+ },
+ "$:/core/images/export-button": {
+ "title": "$:/core/images/export-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-export-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M8.003 128H119.993a7.984 7.984 0 005.664-2.349v.007A7.975 7.975 0 00128 120V56c0-4.418-3.59-8-8-8-4.418 0-8 3.58-8 8v56H16V56c0-4.418-3.59-8-8-8-4.418 0-8 3.58-8 8v64c0 4.418 3.59 8 8 8h.003zm48.62-100.689l-8.965 8.966c-3.125 3.125-8.195 3.13-11.319.005-3.118-3.118-3.122-8.192.005-11.319L58.962 2.346A7.986 7.986 0 0164.625 0l-.006.002c2.05-.001 4.102.78 5.666 2.344l22.618 22.617c3.124 3.125 3.129 8.195.005 11.319-3.118 3.118-8.192 3.122-11.319-.005l-8.965-8.966v61.256c0 4.411-3.582 8-8 8-4.41 0-8-3.582-8-8V27.311z\"/></svg>"
+ },
+ "$:/core/images/file": {
+ "title": "$:/core/images/file",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-file tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M111.968 30.5H112V120a8 8 0 01-8 8H24a8 8 0 01-8-8V8a8 8 0 018-8h57v.02a7.978 7.978 0 015.998 2.337l22.627 22.627a7.975 7.975 0 012.343 5.516zM81 8H24v112h80V30.5H89c-4.418 0-8-3.578-8-8V8z\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"36\" rx=\"4\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"52\" rx=\"4\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"68\" rx=\"4\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"84\" rx=\"4\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"100\" rx=\"4\"/><rect width=\"40\" height=\"8\" x=\"32\" y=\"20\" rx=\"4\"/></svg>"
+ },
+ "$:/core/images/fixed-height": {
+ "title": "$:/core/images/fixed-height",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-fixed-height tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M60 35.657l-9.172 9.171a4 4 0 11-5.656-5.656l16-16a4 4 0 015.656 0l16 16a4 4 0 01-5.656 5.656L68 35.657v57.686l9.172-9.171a4 4 0 115.656 5.656l-16 16a4 4 0 01-5.656 0l-16-16a4 4 0 115.656-5.656L60 93.343V35.657zM16 116h96a4 4 0 100-8H16a4 4 0 100 8zm0-96h96a4 4 0 100-8H16a4 4 0 100 8z\"/></svg>"
+ },
+ "$:/core/images/fold-all-button": {
+ "title": "$:/core/images/fold-all-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-fold-all tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"128\" height=\"16\" rx=\"8\"/><rect width=\"128\" height=\"16\" y=\"64\" rx=\"8\"/><path d=\"M64.03 20.004c-2.05 0-4.102.78-5.667 2.344L35.746 44.966c-3.125 3.124-3.13 8.194-.005 11.318 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.965 16.966 16.965c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.191-.005-11.318L69.687 22.348a7.986 7.986 0 00-5.663-2.346zM64.03 85.002c-2.05-.001-4.102.78-5.667 2.344l-22.617 22.617c-3.125 3.125-3.13 8.195-.005 11.319 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.966 16.966 16.966c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.192-.005-11.319L69.687 87.346A7.986 7.986 0 0064.024 85z\"/></g></svg>"
+ },
+ "$:/core/images/fold-button": {
+ "title": "$:/core/images/fold-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-fold tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"128\" height=\"16\" rx=\"8\"/><path d=\"M64.03 25.004c-2.05 0-4.102.78-5.667 2.344L35.746 49.966c-3.125 3.124-3.13 8.194-.005 11.318 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.965 16.966 16.965c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.191-.005-11.318L69.687 27.348a7.986 7.986 0 00-5.663-2.346zM64.005 67.379c-2.05 0-4.102.78-5.666 2.344L35.722 92.34c-3.125 3.125-3.13 8.195-.006 11.32 3.118 3.117 8.192 3.121 11.32-.006L64 86.69l16.965 16.965c3.125 3.125 8.195 3.13 11.319.005 3.118-3.118 3.122-8.192-.005-11.319L69.663 69.723A7.986 7.986 0 0064 67.377z\"/></g></svg>"
+ },
+ "$:/core/images/fold-others-button": {
+ "title": "$:/core/images/fold-others-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-fold-others tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"128\" height=\"16\" y=\"56.031\" rx=\"8\"/><path d=\"M86.632 79.976c-2.05 0-4.102.78-5.666 2.345L64 99.286 47.034 82.321a7.986 7.986 0 00-5.662-2.346l.005.001c-2.05 0-4.102.78-5.666 2.345l-22.618 22.617c-3.124 3.125-3.129 8.195-.005 11.319 3.118 3.118 8.192 3.122 11.319-.005l16.966-16.966 16.965 16.966a7.986 7.986 0 005.663 2.346l-.005-.002c2.05 0 4.102-.78 5.666-2.344l16.965-16.966 16.966 16.966c3.125 3.124 8.194 3.129 11.319.005 3.118-3.118 3.122-8.192-.005-11.319L92.289 82.321a7.986 7.986 0 00-5.663-2.346zM86.7 48.024c-2.05 0-4.102-.78-5.666-2.345L64.07 28.714 47.103 45.679a7.986 7.986 0 01-5.663 2.346l.005-.001c-2.05 0-4.101-.78-5.666-2.345L13.162 23.062c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L41.44 28.714l16.966-16.966a7.986 7.986 0 015.662-2.346l-.005.002c2.05 0 4.102.78 5.666 2.344l16.966 16.966 16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L92.358 45.679a7.986 7.986 0 01-5.663 2.346z\"/></g></svg>"
+ },
+ "$:/core/images/folder": {
+ "title": "$:/core/images/folder",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-folder tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M55.694 128H8C3.58 128 0 124.414 0 119.996V48.004C0 43.584 3.584 40 7.999 40H16v-8c0-4.418 3.578-8 8-8h32a8 8 0 018 8v8h40.001c4.418 0 7.999 3.586 7.999 8.004V59.83l-8-.082v-7.749A4 4 0 0099.997 48H56V36c0-2.21-1.793-4-4.004-4H28.004A4 4 0 0024 36v12H12.003A4 4 0 008 52v64a4 4 0 004.003 4h46.76l-3.069 8z\"/><path d=\"M23.873 55.5h96.003c4.417 0 7.004 4.053 5.774 9.063l-13.344 54.374c-1.228 5.005-5.808 9.063-10.223 9.063H6.08c-4.417 0-7.003-4.053-5.774-9.063L13.65 64.563c1.228-5.005 5.808-9.063 10.223-9.063zm1.78 8.5h87.994c2.211 0 3.504 2.093 2.891 4.666l-11.12 46.668c-.614 2.577-2.902 4.666-5.115 4.666H12.31c-2.211 0-3.504-2.093-2.891-4.666l11.12-46.668C21.152 66.09 23.44 64 25.653 64z\"/></g></svg>"
+ },
+ "$:/core/images/full-screen-button": {
+ "title": "$:/core/images/full-screen-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-full-screen-button tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M0 8a8 8 0 018-8h32a8 8 0 110 16H16v24a8 8 0 11-16 0V8zM128 120a8 8 0 01-8 8H88a8 8 0 110-16h24V88a8 8 0 1116 0v32zM8 128a8 8 0 01-8-8V88a8 8 0 1116 0v24h24a8 8 0 110 16H8zM120 0a8 8 0 018 8v32a8 8 0 11-16 0V16H88a8 8 0 110-16h32z\"/></svg>"
+ },
+ "$:/core/images/github": {
+ "title": "$:/core/images/github",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-github tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M63.938 1.607c-35.336 0-63.994 28.69-63.994 64.084 0 28.312 18.336 52.329 43.768 60.802 3.202.59 4.37-1.388 4.37-3.088 0-1.518-.056-5.55-.087-10.897-17.802 3.871-21.558-8.591-21.558-8.591-2.911-7.404-7.108-9.375-7.108-9.375-5.81-3.973.44-3.895.44-3.895 6.424.453 9.803 6.606 9.803 6.606 5.709 9.791 14.981 6.963 18.627 5.322.582-4.138 2.236-6.963 4.063-8.564-14.211-1.617-29.153-7.117-29.153-31.672 0-6.995 2.495-12.718 6.589-17.195-.66-1.621-2.856-8.14.629-16.96 0 0 5.37-1.722 17.597 6.57 5.104-1.424 10.58-2.132 16.022-2.16 5.438.028 10.91.736 16.022 2.16 12.22-8.292 17.582-6.57 17.582-6.57 3.493 8.82 1.297 15.339.64 16.96 4.102 4.477 6.578 10.2 6.578 17.195 0 24.618-14.966 30.035-29.22 31.62 2.295 1.98 4.342 5.89 4.342 11.87 0 8.564-.079 15.476-.079 17.576 0 1.715 1.155 3.71 4.4 3.084 25.413-8.493 43.733-32.494 43.733-60.798 0-35.394-28.657-64.084-64.006-64.084\"/></svg>"
+ },
+ "$:/core/images/gitter": {
+ "title": "$:/core/images/gitter",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-gitter tc-image-button\" viewBox=\"0 0 18 25\"><path d=\"M15 5h2v10h-2zM10 5h2v20h-2zM5 5h2v20H5zM0 0h2v15H0z\"/></svg>"
+ },
+ "$:/core/images/globe": {
+ "title": "$:/core/images/globe",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-globe tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M72.811 37.128v2.554c0 2.196.978 6.881 0 8.832-1.466 2.928-4.65 3.54-6.394 5.867-1.182 1.577-4.618 10.601-3.69 12.92 3.969 9.922 11.534 3.187 17.962 9.293.864.821 2.887 2.273 3.296 3.296 3.29 8.223-7.576 15.009 3.757 26.3 1.245 1.24 3.813-3.817 4.079-4.614.852-2.563 6.725-5.45 9.088-7.053 2.02-1.37 4.873-2.667 6.328-4.745 2.27-3.244 1.48-7.514 3.098-10.745 2.139-4.274 3.828-9.635 5.998-13.966 3.898-7.781 4.721 2.093 5.067 2.439.358.357 1.011 0 1.517 0 .094 0 1.447.099 1.516 0 .65-.935-1.043-17.92-1.318-19.297-1.404-7.01-6.944-15.781-11.865-20.5-6.274-6.015-7.09-16.197-18.259-14.954-.204.022-5.084 10.148-7.777 13.512-3.728 4.657-2.47-4.153-6.526-4.153-.081 0-1.183-.103-1.253 0-.586.88-1.44 3.896-2.306 4.417-.265.16-1.722-.239-1.846 0-2.243 4.3 8.256 2.212 5.792 7.952-2.352 5.481-6.328-1.997-6.328 8.56M44.467 7.01c9.685 6.13.682 12.198 2.694 16.215 1.655 3.303 4.241 5.395 1.714 9.814-2.063 3.608-6.87 3.966-9.623 6.723-3.04 3.044-5.464 8.94-6.79 12.911-1.617 4.843 14.547 6.866 12.063 11.008-1.386 2.311-6.746 1.466-8.437.198-1.165-.873-3.593-.546-4.417-1.78-2.613-3.915-2.26-8.023-3.625-12.128-.938-2.822-6.313-2.12-7.844-.593-.523.522-.33 1.792-.33 2.505 0 5.285 7.12 3.316 7.12 6.46 0 14.636 3.927 6.534 11.14 11.336 10.036 6.683 7.844 7.303 14.946 14.404 3.673 3.673 7.741 3.686 9.425 9.294 1.602 5.331-9.327 5.339-11.716 7.448-1.123.991-2.813 4.146-4.219 4.615-1.792.598-3.234.496-4.944 1.78-2.427 1.82-3.9 4.932-4.02 4.81-2.148-2.147-3.52-15.479-3.89-18.257-.588-4.42-5.59-5.54-6.986-9.03-1.57-3.927 1.524-9.52-1.129-13.761-6.52-10.424-11.821-14.5-15.35-26.292-.942-3.148 3.342-6.529 4.877-8.833 1.877-2.816 2.662-5.854 4.746-8.635C22.147 24.19 40.855 9.461 43.857 8.635l.61-1.625z\"/><path d=\"M64 126c34.242 0 62-27.758 62-62 0-34.242-27.758-62-62-62C29.758 2 2 29.758 2 64c0 34.242 27.758 62 62 62zm0-6c30.928 0 56-25.072 56-56S94.928 8 64 8 8 33.072 8 64s25.072 56 56 56z\"/></g></svg>"
+ },
+ "$:/core/images/heading-1": {
+ "title": "$:/core/images/heading-1",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-1 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M14 30h13.25v30.104H61.7V30h13.25v75.684H61.7V71.552H27.25v34.132H14V30zm70.335 13.78c2.544 0 5.017-.212 7.42-.636 2.403-.424 4.576-1.13 6.52-2.12 1.942-.99 3.603-2.261 4.981-3.816 1.378-1.555 2.28-3.463 2.703-5.724h9.858v74.2h-13.25V53.32H84.335v-9.54z\"/></svg>"
+ },
+ "$:/core/images/heading-2": {
+ "title": "$:/core/images/heading-2",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-2 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm119.52 75.684H74.85c.07-6.148 1.555-11.519 4.452-16.112 2.897-4.593 6.855-8.586 11.872-11.978a133.725 133.725 0 017.526-5.141 59.6 59.6 0 007.208-5.353c2.19-1.908 3.993-3.975 5.406-6.201 1.413-2.226 2.155-4.788 2.226-7.685 0-1.343-.159-2.774-.477-4.293a11.357 11.357 0 00-1.855-4.24c-.919-1.307-2.19-2.403-3.816-3.286-1.625-.883-3.745-1.325-6.36-1.325-2.403 0-4.399.477-5.989 1.431-1.59.954-2.862 2.261-3.816 3.922-.954 1.66-1.66 3.622-2.12 5.883-.46 2.261-.724 4.7-.795 7.314H76.23c0-4.099.548-7.897 1.643-11.395 1.095-3.498 2.738-6.519 4.93-9.063 2.19-2.544 4.857-4.54 8.002-5.989C93.95 30.724 97.606 30 101.775 30c4.523 0 8.303.742 11.342 2.226 3.039 1.484 5.494 3.357 7.367 5.618 1.873 2.261 3.198 4.717 3.975 7.367.777 2.65 1.166 5.176 1.166 7.579 0 2.968-.46 5.653-1.378 8.056a25.942 25.942 0 01-3.71 6.625 37.5 37.5 0 01-5.3 5.565 79.468 79.468 0 01-6.148 4.77 165.627 165.627 0 01-6.36 4.24 94.28 94.28 0 00-5.883 4.028c-1.802 1.343-3.374 2.738-4.717 4.187-1.343 1.449-2.261 2.986-2.756 4.611h36.146v10.812z\"/></svg>"
+ },
+ "$:/core/images/heading-3": {
+ "title": "$:/core/images/heading-3",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-3 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm88.885 32.224c1.979.07 3.957-.07 5.936-.424 1.979-.353 3.745-.972 5.3-1.855a10.365 10.365 0 003.763-3.657c.954-1.555 1.431-3.463 1.431-5.724 0-3.18-1.078-5.724-3.233-7.632-2.155-1.908-4.929-2.862-8.32-2.862-2.12 0-3.958.424-5.513 1.272a11.318 11.318 0 00-3.869 3.445c-1.025 1.449-1.784 3.074-2.279 4.876a18.335 18.335 0 00-.636 5.565H75.381c.141-3.604.813-6.943 2.014-10.017 1.201-3.074 2.844-5.742 4.93-8.003 2.084-2.261 4.61-4.028 7.578-5.3C92.871 30.636 96.228 30 99.973 30a29.2 29.2 0 018.533 1.272c2.791.848 5.3 2.085 7.526 3.71s4.01 3.692 5.353 6.201c1.343 2.509 2.014 5.388 2.014 8.639 0 3.745-.848 7.014-2.544 9.805-1.696 2.791-4.346 4.823-7.95 6.095v.212c4.24.848 7.544 2.95 9.911 6.307s3.551 7.438 3.551 12.243c0 3.533-.707 6.696-2.12 9.487a21.538 21.538 0 01-5.724 7.102c-2.403 1.943-5.194 3.445-8.374 4.505-3.18 1.06-6.537 1.59-10.07 1.59-4.31 0-8.074-.618-11.289-1.855s-5.9-2.986-8.056-5.247c-2.155-2.261-3.798-4.982-4.929-8.162-1.13-3.18-1.731-6.713-1.802-10.6h12.084c-.141 4.523.972 8.286 3.34 11.289 2.366 3.003 5.917 4.505 10.652 4.505 4.028 0 7.402-1.148 10.123-3.445 2.72-2.297 4.081-5.565 4.081-9.805 0-2.897-.565-5.194-1.696-6.89a10.97 10.97 0 00-4.452-3.869c-1.837-.883-3.904-1.431-6.2-1.643a58.067 58.067 0 00-7.05-.212v-9.01z\"/></svg>"
+ },
+ "$:/core/images/heading-4": {
+ "title": "$:/core/images/heading-4",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-4 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M8 30h13.25v30.104H55.7V30h13.25v75.684H55.7V71.552H21.25v34.132H8V30zm76.59 48.548h22.471V45.9h-.212L84.59 78.548zm43.46 9.54h-9.54v17.596H107.06V88.088h-31.8V76.11l31.8-44.626h11.448v47.064h9.54v9.54z\"/></svg>"
+ },
+ "$:/core/images/heading-5": {
+ "title": "$:/core/images/heading-5",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-5 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm77.755 1.484h38.372v10.812H92.765L88.95 61.164l.212.212c1.625-1.837 3.692-3.233 6.201-4.187 2.509-.954 5-1.431 7.473-1.431 3.675 0 6.96.618 9.858 1.855 2.897 1.237 5.335 2.968 7.314 5.194s3.48 4.858 4.505 7.897c1.025 3.039 1.537 6.325 1.537 9.858 0 2.968-.477 6.024-1.43 9.169a25.161 25.161 0 01-4.559 8.586c-2.085 2.58-4.752 4.7-8.003 6.36-3.25 1.66-7.137 2.491-11.66 2.491-3.604 0-6.943-.477-10.017-1.431-3.074-.954-5.777-2.385-8.109-4.293-2.332-1.908-4.187-4.258-5.565-7.049-1.378-2.791-2.138-6.06-2.279-9.805h12.084c.353 4.028 1.731 7.12 4.134 9.275 2.403 2.155 5.583 3.233 9.54 3.233 2.544 0 4.7-.424 6.466-1.272 1.767-.848 3.198-2.014 4.293-3.498 1.095-1.484 1.873-3.215 2.332-5.194.46-1.979.69-4.099.69-6.36 0-2.05-.284-4.01-.849-5.883-.565-1.873-1.413-3.516-2.544-4.929-1.13-1.413-2.597-2.544-4.399-3.392-1.802-.848-3.904-1.272-6.307-1.272-2.544 0-4.929.477-7.155 1.431-2.226.954-3.834 2.738-4.823 5.353H75.805l7.95-40.598z\"/></svg>"
+ },
+ "$:/core/images/heading-6": {
+ "title": "$:/core/images/heading-6",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-6 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm106.587 20.246c-.283-3.039-1.36-5.494-3.233-7.367-1.873-1.873-4.399-2.809-7.579-2.809-2.19 0-4.08.406-5.67 1.219a12.435 12.435 0 00-4.029 3.233c-1.095 1.343-1.979 2.88-2.65 4.611a37.696 37.696 0 00-1.643 5.459 46.08 46.08 0 00-.9 5.671 722.213 722.213 0 00-.478 5.247l.212.212c1.625-2.968 3.87-5.176 6.731-6.625 2.862-1.449 5.954-2.173 9.275-2.173 3.675 0 6.96.636 9.858 1.908 2.897 1.272 5.353 3.021 7.367 5.247 2.014 2.226 3.551 4.858 4.611 7.897 1.06 3.039 1.59 6.325 1.59 9.858 0 3.604-.583 6.943-1.749 10.017-1.166 3.074-2.844 5.76-5.035 8.056-2.19 2.297-4.805 4.081-7.844 5.353-3.039 1.272-6.395 1.908-10.07 1.908-5.441 0-9.91-1.007-13.409-3.021-3.498-2.014-6.254-4.77-8.268-8.268-2.014-3.498-3.41-7.597-4.187-12.296-.777-4.7-1.166-9.77-1.166-15.211 0-4.452.477-8.94 1.431-13.462.954-4.523 2.526-8.639 4.717-12.349 2.19-3.71 5.07-6.731 8.64-9.063C92.676 31.166 97.075 30 102.304 30c2.968 0 5.76.495 8.374 1.484 2.615.99 4.93 2.367 6.943 4.134 2.014 1.767 3.657 3.887 4.93 6.36 1.271 2.473 1.978 5.23 2.12 8.268h-12.085zm-11.66 46.852c2.19 0 4.099-.442 5.724-1.325a12.869 12.869 0 004.081-3.445c1.095-1.413 1.908-3.056 2.438-4.929.53-1.873.795-3.798.795-5.777s-.265-3.887-.795-5.724c-.53-1.837-1.343-3.445-2.438-4.823-1.095-1.378-2.456-2.491-4.08-3.339-1.626-.848-3.534-1.272-5.725-1.272-2.19 0-4.116.406-5.777 1.219-1.66.813-3.056 1.908-4.187 3.286-1.13 1.378-1.979 2.986-2.544 4.823-.565 1.837-.848 3.78-.848 5.83 0 2.05.283 3.993.848 5.83.565 1.837 1.413 3.48 2.544 4.929a12.39 12.39 0 004.187 3.445c1.66.848 3.586 1.272 5.777 1.272z\"/></svg>"
+ },
+ "$:/core/images/help": {
+ "title": "$:/core/images/help",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-help tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M36.055 111.441c-5.24 4.396-15.168 7.362-26.555 7.362-1.635 0-3.24-.06-4.806-.179 7.919-2.64 14.062-8.6 16.367-16.014C8.747 92.845 1.05 78.936 1.05 63.5c0-29.547 28.206-53.5 63-53.5s63 23.953 63 53.5-28.206 53.5-63 53.5c-10.055 0-19.56-2-27.994-5.559zm35.35-33.843a536.471 536.471 0 00.018-4.682 199.02 199.02 0 00-.023-3.042c.008-1.357.595-2.087 3.727-4.235.112-.077 1.085-.74 1.386-.948 3.093-2.133 5.022-3.786 6.762-6.187 2.34-3.228 3.558-7.077 3.558-11.649 0-13.292-9.86-21.952-21.455-21.952-11.103 0-22.499 9.609-24.066 22.295a6.023 6.023 0 1011.956 1.477c.806-6.527 6.972-11.726 12.11-11.726 5.265 0 9.408 3.64 9.408 9.906 0 3.634-1.1 5.153-5.111 7.919l-1.362.93c-2.682 1.84-4.227 3.1-5.7 4.931-2.109 2.62-3.242 5.717-3.258 9.314.013.892.02 1.86.022 2.981a470.766 470.766 0 01-.022 4.943 6.023 6.023 0 1012.046.12l.003-.395zm-6.027 24.499a7.529 7.529 0 100-15.058 7.529 7.529 0 000 15.058z\"/></svg>"
+ },
+ "$:/core/images/home-button": {
+ "title": "$:/core/images/home-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-home-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M112.985 119.502c.01-.165.015-.331.015-.499V67.568c3.137 2.948 8.076 2.884 11.134-.174a7.999 7.999 0 00-.002-11.316L70.396 2.343A7.978 7.978 0 0064.734 0a7.957 7.957 0 00-5.656 2.343L33 28.42V8.007C33 3.585 29.41 0 25 0c-4.418 0-8 3.59-8 8.007V44.42L5.342 56.078c-3.125 3.125-3.12 8.198-.002 11.316a7.999 7.999 0 0011.316-.003l.344-.343v52.945a8.11 8.11 0 000 .007c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8a8.11 8.11 0 00-.015-.498zM97 112V51.574L64.737 19.31 33 51.048V112h64z\"/></svg>"
+ },
+ "$:/core/images/import-button": {
+ "title": "$:/core/images/import-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-import-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M114.832 60.436s3.235-3.27 6.921.417c3.686 3.686.231 7.14.231 7.14l-42.153 42.92s-30.765 32.367-58.798 4.333C-7 87.213 24.59 55.623 24.59 55.623L67.363 12.85s22.725-24.6 43.587-3.738c20.862 20.862-3.96 43.09-3.96 43.09l-35.04 35.04S49.903 112.546 36.426 99.07c-13.476-13.477 11.83-35.523 11.83-35.523l35.04-35.04s3.902-3.902 7.78-.023c3.879 3.878.118 7.921.118 7.921l-35.04 35.04s-13.212 13.212-8.872 17.551c4.34 4.34 16.77-9.653 16.77-9.653l35.04-35.04s16.668-14.598 3.966-27.3c-13.893-13.892-27.565 3.702-27.565 3.702l-42.91 42.91s-23.698 23.698-3.658 43.738 43.012-4.385 43.012-4.385l42.895-42.533z\"/></svg>"
+ },
+ "$:/core/images/info-button": {
+ "title": "$:/core/images/info-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-info-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\" transform=\"translate(.05)\"><path d=\"M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48z\"/><circle cx=\"64\" cy=\"32\" r=\"8\"/><rect width=\"16\" height=\"56\" x=\"56\" y=\"48\" rx=\"8\"/></g></svg>"
+ },
+ "$:/core/images/italic": {
+ "title": "$:/core/images/italic",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-italic tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M66.711 0h22.41L62.408 128H40z\"/></svg>"
+ },
+ "$:/core/images/left-arrow": {
+ "title": "$:/core/images/left-arrow",
+ "created": "20150315234410875",
+ "modified": "20150315235324760",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-left-arrow tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M0 64.177c0-2.026.771-4.054 2.317-5.6l55.98-55.98a7.92 7.92 0 0111.195.001c3.086 3.085 3.092 8.104.001 11.195L19.111 64.175l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.086-8.105 3.092-11.196.001l-55.98-55.98A7.892 7.892 0 010 64.177z\"/></svg>"
+ },
+ "$:/core/images/line-width": {
+ "title": "$:/core/images/line-width",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-line-width tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M16 18h96a2 2 0 000-4H16a2 2 0 100 4zm0 17h96a4 4 0 100-8H16a4 4 0 100 8zm0 21h96a6 6 0 000-12H16a6 6 0 100 12zm0 29h96c5.523 0 10-4.477 10-10s-4.477-10-10-10H16c-5.523 0-10 4.477-10 10s4.477 10 10 10zm0 43h96c8.837 0 16-7.163 16-16s-7.163-16-16-16H16c-8.837 0-16 7.163-16 16s7.163 16 16 16z\"/></svg>"
+ },
+ "$:/core/images/link": {
+ "title": "$:/core/images/link",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-link tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M42.263 69.38a31.919 31.919 0 006.841 10.13c12.5 12.5 32.758 12.496 45.255 0l22.627-22.628c12.502-12.501 12.497-32.758 0-45.255-12.5-12.5-32.758-12.496-45.254 0L49.104 34.255a32.333 32.333 0 00-2.666 3.019 36.156 36.156 0 0121.94.334l14.663-14.663c6.25-6.25 16.382-6.254 22.632-.004 6.248 6.249 6.254 16.373-.004 22.631l-22.62 22.62c-6.25 6.25-16.381 6.254-22.631.004a15.93 15.93 0 01-4.428-8.433 11.948 11.948 0 00-7.59 3.48l-6.137 6.137z\"/><path d=\"M86.35 59.234a31.919 31.919 0 00-6.84-10.13c-12.5-12.5-32.758-12.497-45.255 0L11.627 71.732c-12.501 12.5-12.496 32.758 0 45.254 12.5 12.5 32.758 12.497 45.255 0L79.51 94.36a32.333 32.333 0 002.665-3.02 36.156 36.156 0 01-21.94-.333l-14.663 14.663c-6.25 6.25-16.381 6.253-22.63.004-6.25-6.249-6.255-16.374.003-22.632l22.62-22.62c6.25-6.25 16.381-6.253 22.631-.003a15.93 15.93 0 014.428 8.432 11.948 11.948 0 007.59-3.48l6.137-6.136z\"/></g></svg>"
+ },
+ "$:/core/images/linkify": {
+ "title": "$:/core/images/linkify",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-linkify-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"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\"/></svg>"
+ },
+ "$:/core/images/list-bullet": {
+ "title": "$:/core/images/list-bullet",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-list-bullet tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M11.636 40.273c6.427 0 11.637-5.21 11.637-11.637C23.273 22.21 18.063 17 11.636 17 5.21 17 0 22.21 0 28.636c0 6.427 5.21 11.637 11.636 11.637zm0 34.909c6.427 0 11.637-5.21 11.637-11.637 0-6.426-5.21-11.636-11.637-11.636C5.21 51.91 0 57.12 0 63.545c0 6.427 5.21 11.637 11.636 11.637zm0 34.909c6.427 0 11.637-5.21 11.637-11.636 0-6.427-5.21-11.637-11.637-11.637C5.21 86.818 0 92.028 0 98.455c0 6.426 5.21 11.636 11.636 11.636zM34.91 22.818H128v11.637H34.91V22.818zm0 34.91H128v11.636H34.91V57.727zm0 34.908H128v11.637H34.91V92.636z\"/></svg>"
+ },
+ "$:/core/images/list-number": {
+ "title": "$:/core/images/list-number",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-list-number tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M33.84 22.356H128v11.77H33.84v-11.77zm0 35.31H128v11.77H33.84v-11.77zm0 35.311H128v11.77H33.84v-11.77zM.38 42.631v-2.223h.998c.826 0 1.445-.14 1.858-.42.413-.28.619-.948.619-2.002V22.769c0-1.442-.193-2.336-.58-2.683-.385-.347-1.477-.52-3.275-.52v-2.143c3.502-.147 6.252-.955 8.25-2.423h2.117v22.865c0 .921.15 1.575.449 1.963.3.387.949.58 1.948.58h.998v2.223H.38zm-.3 35.356v-1.902c7.19-6.554 10.786-12.58 10.786-18.08 0-1.562-.326-2.81-.979-3.744-.652-.934-1.524-1.402-2.616-1.402-.893 0-1.655.317-2.287.952-.633.634-.95 1.364-.95 2.192 0 .974.247 1.829.74 2.563.106.16.16.28.16.36 0 .147-.16.28-.48.4-.213.08-.752.308-1.618.681-.839.374-1.358.561-1.558.561-.24 0-.512-.37-.819-1.111A6.2 6.2 0 010 57.064c0-1.949.849-3.544 2.547-4.785 1.698-1.242 3.798-1.862 6.302-1.862 2.463 0 4.53.67 6.202 2.012 1.67 1.341 2.506 3.093 2.506 5.256a8.644 8.644 0 01-.849 3.724c-.566 1.201-1.92 3.053-4.064 5.556a165.471 165.471 0 01-6.272 6.938h11.445l-1.019 5.726h-2.117c.08-.28.12-.534.12-.76 0-.388-.1-.631-.3-.731-.2-.1-.599-.15-1.198-.15H.08zm12.124 19.207c1.745.04 3.236.637 4.474 1.792 1.239 1.154 1.858 2.773 1.858 4.855 0 2.99-1.132 5.393-3.396 7.208-2.263 1.815-5 2.723-8.209 2.723-2.01 0-3.669-.384-4.974-1.151C.652 111.853 0 110.849 0 109.607c0-.774.27-1.398.809-1.872.54-.474 1.128-.71 1.768-.71.639 0 1.162.2 1.568.6.406.4.782 1.055 1.128 1.962.466 1.268 1.239 1.902 2.317 1.902 1.265 0 2.287-.477 3.066-1.431.78-.955 1.169-2.686 1.169-5.196 0-1.709-.12-3.023-.36-3.944-.24-.921-.792-1.382-1.658-1.382-.586 0-1.185.307-1.797.921-.493.494-.932.741-1.319.741-.333 0-.602-.147-.809-.44-.206-.294-.31-.574-.31-.841 0-.32.104-.594.31-.821.207-.227.69-.594 1.449-1.102 2.876-1.922 4.314-4.017 4.314-6.287 0-1.188-.306-2.092-.919-2.713a3.001 3.001 0 00-2.217-.93c-.799 0-1.525.263-2.177.79-.653.528-.979 1.158-.979 1.892 0 .641.253 1.235.76 1.782.172.2.259.367.259.5 0 .121-.57.428-1.708.922-1.139.494-1.854.74-2.147.74-.413 0-.75-.333-1.009-1-.26-.668-.39-1.282-.39-1.842 0-1.749.93-3.224 2.787-4.425 1.858-1.202 3.965-1.802 6.322-1.802 2.064 0 3.851.447 5.363 1.341 1.511.895 2.267 2.116 2.267 3.664 0 1.362-.57 2.623-1.708 3.784a13.387 13.387 0 01-3.945 2.784z\"/></svg>"
+ },
+ "$:/core/images/list": {
+ "title": "$:/core/images/list",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-list tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M87.748 128H23.999c-4.418 0-7.999-3.59-7.999-8.007V8.007C16 3.585 19.588 0 24 0h80c4.419 0 8 3.59 8 8.007V104H91.25c-.965 0-1.84.392-2.473 1.025a3.476 3.476 0 00-1.029 2.476V128zm8-.12l15.88-15.88h-15.88v15.88zM40 15.508A3.502 3.502 0 0143.5 12h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 20h-55a3.498 3.498 0 01-3.5-3.509v-.982zM32 22a6 6 0 100-12 6 6 0 000 12zm8 9.509A3.502 3.502 0 0143.5 28h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 36h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 44h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 52h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 60h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 68h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 76h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 84h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 92h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 100h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.505 3.505 0 0143.497 108h33.006A3.497 3.497 0 0180 111.509v.982A3.505 3.505 0 0176.503 116H43.497A3.497 3.497 0 0140 112.491v-.982zM32 38a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12z\"/></svg>"
+ },
+ "$:/core/images/locked-padlock": {
+ "title": "$:/core/images/locked-padlock",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-locked-padlock tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M96.472 64H105v32.01C105 113.674 90.674 128 73.001 128H56C38.318 128 24 113.677 24 96.01V64h8c.003-15.723.303-47.731 32.16-47.731 31.794 0 32.305 32.057 32.312 47.731zm-15.897 0H48.44c.002-16.287.142-32 15.719-32 15.684 0 16.977 16.136 16.415 32zM67.732 92.364A8.503 8.503 0 0064.5 76a8.5 8.5 0 00-3.498 16.25l-5.095 22.77H72.8l-5.07-22.656z\"/></svg>"
+ },
+ "$:/core/images/mail": {
+ "title": "$:/core/images/mail",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-mail tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M122.827 104.894a7.986 7.986 0 01-2.834.516H8.007c-.812 0-1.597-.12-2.335-.345l34.163-34.163 20.842 20.842a3.998 3.998 0 003.418 1.134 4.003 4.003 0 003.395-1.134L88.594 70.64c.075.09.155.176.24.26l33.993 33.994zm5.076-6.237c.064-.406.097-.823.097-1.247v-64c0-.669-.082-1.318-.237-1.94L94.23 65.006c.09.075.177.154.261.239l33.413 33.413zm-127.698.56A8.023 8.023 0 010 97.41v-64c0-.716.094-1.41.271-2.071l33.907 33.906L.205 99.218zM5.93 25.684a8.012 8.012 0 012.078-.273h111.986c.766 0 1.507.108 2.209.308L64.083 83.837 5.93 25.683z\"/></svg>"
+ },
+ "$:/core/images/menu-button": {
+ "title": "$:/core/images/menu-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-menu-button tc-image-button\" viewBox=\"0 0 128 128\"><rect width=\"128\" height=\"16\" y=\"16\" rx=\"8\"/><rect width=\"128\" height=\"16\" y=\"56\" rx=\"8\"/><rect width=\"128\" height=\"16\" y=\"96\" rx=\"8\"/></svg>"
+ },
+ "$:/core/images/mono-block": {
+ "title": "$:/core/images/mono-block",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-mono-block tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M23.965 32.967h.357c.755 0 1.328.192 1.72.577.39.384.586.947.586 1.688 0 .824-.206 1.418-.618 1.782-.413.363-1.094.545-2.045.545h-6.31c-.965 0-1.65-.178-2.056-.535-.405-.356-.608-.954-.608-1.792 0-.811.203-1.391.608-1.74.406-.35 1.09-.525 2.055-.525h.734l-.86-2.453H8.471l-.902 2.453h.734c.95 0 1.632.178 2.044.535.413.356.619.933.619 1.73 0 .824-.206 1.418-.619 1.782-.412.363-1.094.545-2.044.545h-5.41c-.964 0-1.649-.182-2.054-.545-.406-.364-.608-.958-.608-1.782 0-.741.195-1.304.587-1.688.391-.385.964-.577 1.719-.577h.356l5.62-15.641H6.835c-.95 0-1.632-.182-2.044-.546-.412-.363-.619-.95-.619-1.76 0-.825.207-1.42.619-1.783.412-.363 1.094-.545 2.044-.545h7.863c1.244 0 2.118.67 2.62 2.013v.063l6.647 18.2zM12.98 17.326l-3.04 8.848h6.08l-3.04-8.848zm22.402 9.372v6.395h3.145c2.223 0 3.788-.245 4.697-.734.908-.49 1.362-1.307 1.362-2.453 0-1.16-.433-1.985-1.3-2.474-.866-.49-2.383-.734-4.55-.734h-3.354zm10.693-2.327c1.524.559 2.642 1.324 3.355 2.295.713.972 1.07 2.212 1.07 3.722 0 1.272-.308 2.432-.923 3.48-.615 1.049-1.496 1.909-2.642 2.58a7.499 7.499 0 01-2.254.849c-.832.174-2.01.262-3.533.262H30.202c-.922 0-1.583-.182-1.981-.545-.399-.364-.598-.958-.598-1.782 0-.741.189-1.304.566-1.688.378-.385.93-.577 1.657-.577h.356V17.326h-.356c-.727 0-1.28-.196-1.657-.587-.377-.392-.566-.965-.566-1.72 0-.81.203-1.401.608-1.771.406-.37 1.062-.556 1.971-.556h9.645c2.95 0 5.19.573 6.72 1.72 1.53 1.145 2.296 2.823 2.296 5.031 0 1.09-.234 2.052-.703 2.883-.468.832-1.163 1.513-2.086 2.045zM35.381 17.2v5.284h2.83c1.72 0 2.932-.203 3.638-.609.706-.405 1.06-1.09 1.06-2.054 0-.909-.319-1.573-.955-1.992-.636-.42-1.667-.63-3.093-.63h-3.48zm35.863-3.816c.28-.503.566-.86.86-1.07.293-.21.664-.314 1.111-.314.685 0 1.17.182 1.457.545.287.364.43.986.43 1.866l.042 5.452c0 .964-.157 1.614-.472 1.95-.314.335-.884.503-1.709.503-.587 0-1.037-.14-1.352-.42-.314-.28-.584-.796-.807-1.551-.364-1.328-.944-2.282-1.74-2.862-.797-.58-1.901-.87-3.313-.87-2.153 0-3.802.727-4.948 2.18-1.147 1.454-1.72 3.558-1.72 6.311 0 2.74.58 4.844 1.74 6.311 1.16 1.468 2.817 2.202 4.97 2.202 1.467 0 3.085-.49 4.854-1.468 1.768-.978 2.883-1.467 3.344-1.467.545 0 1.003.23 1.373.692.37.46.556 1.034.556 1.719 0 1.23-1.084 2.39-3.25 3.48-2.167 1.09-4.606 1.636-7.318 1.636-3.662 0-6.625-1.21-8.89-3.627-2.264-2.419-3.396-5.578-3.396-9.478 0-3.76 1.146-6.884 3.438-9.372 2.293-2.488 5.2-3.732 8.723-3.732.992 0 1.97.112 2.935.335.964.224 1.992.574 3.082 1.049zm10.22 19.583V17.326h-.356c-.755 0-1.328-.196-1.72-.587-.39-.392-.586-.965-.586-1.72 0-.81.21-1.401.629-1.771.42-.37 1.097-.556 2.034-.556h5.178c2.922 0 5.06.126 6.416.377 1.356.252 2.51.671 3.46 1.258 1.691 1.007 2.988 2.443 3.89 4.31.9 1.865 1.352 4.021 1.352 6.467 0 2.586-.514 4.847-1.541 6.783-1.028 1.936-2.485 3.4-4.372 4.393-.853.447-1.852.772-2.998.975-1.147.203-2.852.304-5.116.304h-6.269c-.965 0-1.65-.178-2.055-.535-.406-.356-.608-.954-.608-1.792 0-.741.195-1.304.587-1.688.391-.385.964-.577 1.72-.577h.356zm5.41-15.725v15.725h1.195c2.642 0 4.592-.646 5.85-1.94 1.258-1.292 1.887-3.28 1.887-5.965 0-2.641-.64-4.612-1.918-5.912-1.28-1.3-3.205-1.95-5.777-1.95-.335 0-.59.003-.765.01a7.992 7.992 0 00-.472.032zm35.067-.126h-9.75v5.368h3.69v-.252c0-.797.175-1.39.524-1.782.35-.392.88-.587 1.594-.587.629 0 1.142.178 1.54.534.4.357.598.808.598 1.353 0 .028.007.118.021.272.014.154.021.308.021.462v4.34c0 .936-.167 1.607-.503 2.013-.335.405-.88.608-1.635.608-.713 0-1.251-.19-1.615-.567-.363-.377-.545-.936-.545-1.677v-.377h-3.69v6.269h9.75v-2.495c0-.937.178-1.608.534-2.013.357-.405.94-.608 1.75-.608.798 0 1.367.2 1.71.597.342.399.513 1.073.513 2.024v5.074c0 .755-.146 1.258-.44 1.51-.293.251-.873.377-1.74.377h-17.172c-.923 0-1.583-.182-1.982-.545-.398-.364-.597-.958-.597-1.782 0-.741.189-1.304.566-1.688.377-.385.93-.577 1.656-.577h.357V17.326h-.357c-.712 0-1.261-.2-1.646-.598-.384-.398-.576-.968-.576-1.709 0-.81.203-1.401.608-1.771.405-.37 1.062-.556 1.97-.556h17.173c.853 0 1.43.13 1.73.388.3.258.45.772.45 1.54v4.698c0 .95-.174 1.631-.524 2.044-.35.412-.915.618-1.698.618-.81 0-1.394-.21-1.75-.629-.357-.419-.535-1.097-.535-2.033v-2.202zM19.77 47.641c.267-.504.55-.86.85-1.07.3-.21.675-.314 1.122-.314.685 0 1.17.181 1.457.545.287.363.43.985.43 1.866l.042 5.451c0 .965-.157 1.615-.472 1.95-.314.336-.891.504-1.73.504-.587 0-1.045-.144-1.373-.43-.329-.287-.598-.8-.807-1.541-.378-1.342-.958-2.3-1.74-2.873-.783-.573-1.88-.86-3.292-.86-2.153 0-3.799.727-4.938 2.181-1.14 1.454-1.709 3.557-1.709 6.311s.598 4.882 1.793 6.385C10.599 67.248 12.294 68 14.488 68c.503 0 1.077-.06 1.72-.179a23.809 23.809 0 002.264-.555v-3.313h-2.37c-.95 0-1.624-.175-2.023-.524-.398-.35-.597-.93-.597-1.74 0-.84.199-1.437.597-1.793.399-.357 1.073-.535 2.024-.535h7.569c.978 0 1.667.175 2.065.524.398.35.598.937.598 1.762 0 .74-.2 1.31-.598 1.708-.398.399-.975.598-1.73.598h-.335v5.242c0 .447-.05.758-.147.933-.098.174-.293.353-.587.534-.797.476-2.062.895-3.795 1.258a25.576 25.576 0 01-5.263.546c-3.662 0-6.625-1.21-8.89-3.628-2.264-2.418-3.397-5.577-3.397-9.477 0-3.76 1.147-6.884 3.44-9.372 2.292-2.488 5.199-3.732 8.721-3.732.979 0 1.954.112 2.925.335.972.224 2.003.573 3.093 1.049zm15.84 3.941v4.823h6.857v-4.823h-.336c-.754 0-1.331-.195-1.73-.587-.398-.391-.597-.964-.597-1.719 0-.825.206-1.419.619-1.782.412-.364 1.093-.545 2.044-.545h5.41c.95 0 1.624.181 2.023.545.398.363.597.957.597 1.782 0 .755-.192 1.328-.576 1.72-.385.39-.947.586-1.688.586h-.357v15.642h.357c.755 0 1.328.192 1.719.576.391.385.587.947.587 1.688 0 .825-.203 1.419-.608 1.782-.405.364-1.09.546-2.055.546h-5.41c-.964 0-1.649-.179-2.054-.535-.405-.357-.608-.954-.608-1.793 0-.74.2-1.303.598-1.688.398-.384.975-.576 1.73-.576h.335v-6.186h-6.856v6.186h.335c.755 0 1.331.192 1.73.576.398.385.597.947.597 1.688 0 .825-.206 1.419-.618 1.782-.412.364-1.094.546-2.044.546h-5.41c-.964 0-1.65-.179-2.055-.535-.405-.357-.608-.954-.608-1.793 0-.74.196-1.303.587-1.688.392-.384.965-.576 1.72-.576h.356V51.582h-.356c-.741 0-1.304-.195-1.688-.587-.385-.391-.577-.964-.577-1.719 0-.825.2-1.419.598-1.782.398-.364 1.073-.545 2.023-.545h5.41c.936 0 1.614.181 2.033.545.42.363.63.957.63 1.782 0 .755-.2 1.328-.598 1.72-.399.39-.975.586-1.73.586h-.335zm31.754 0v15.642h3.523c.95 0 1.632.178 2.044.534.412.357.618.933.618 1.73 0 .811-.21 1.402-.629 1.772-.419.37-1.097.556-2.033.556H58.433c-.95 0-1.632-.182-2.044-.546-.412-.363-.619-.957-.619-1.782 0-.81.203-1.39.608-1.74.406-.35 1.09-.524 2.055-.524h3.523V51.582h-3.523c-.95 0-1.632-.181-2.044-.545-.412-.363-.619-.95-.619-1.761 0-.825.203-1.412.608-1.761.406-.35 1.09-.524 2.055-.524h12.455c.992 0 1.684.174 2.075.524.392.35.587.936.587 1.761 0 .81-.202 1.398-.608 1.761-.405.364-1.09.545-2.054.545h-3.523zm30.496 0v11.994c0 1.873-.122 3.228-.367 4.067a5.876 5.876 0 01-1.227 2.244c-.74.852-1.768 1.495-3.082 1.929-1.314.433-2.893.65-4.738.65-1.3 0-2.555-.126-3.764-.378a16.843 16.843 0 01-3.491-1.132c-.615-.28-1.017-.643-1.206-1.09-.188-.448-.283-1.175-.283-2.18v-4.32c0-1.202.175-2.04.525-2.516.349-.475.957-.713 1.824-.713 1.244 0 1.929.915 2.054 2.747.014.321.035.566.063.733.168 1.622.545 2.73 1.133 3.324.587.594 1.523.89 2.81.89 1.593 0 2.714-.422 3.364-1.268.65-.845.975-2.386.975-4.623V51.582H88.93c-.95 0-1.632-.181-2.044-.545-.413-.363-.619-.95-.619-1.761 0-.825.2-1.412.598-1.761.398-.35 1.086-.524 2.065-.524h10.693c.979 0 1.667.174 2.065.524.399.35.598.936.598 1.761 0 .81-.206 1.398-.619 1.761-.412.364-1.093.545-2.044.545h-1.761zm14.644 0v6.353l6.48-6.478c-.728-.084-1.238-.29-1.531-.619-.294-.328-.44-.85-.44-1.562 0-.825.198-1.419.597-1.782.398-.364 1.073-.545 2.023-.545h5.137c.95 0 1.625.181 2.023.545.399.363.598.957.598 1.782 0 .769-.2 1.345-.598 1.73-.398.384-.982.576-1.75.576h-.483l-6.101 6.06c1.132.839 2.167 1.94 3.103 3.302.937 1.363 2.034 3.456 3.292 6.28h.692c.825 0 1.44.188 1.845.566.405.377.608.943.608 1.698 0 .825-.206 1.419-.619 1.782-.412.364-1.093.546-2.044.546h-2.579c-1.132 0-2.048-.762-2.746-2.286-.126-.28-.224-.503-.294-.67-.923-1.958-1.768-3.467-2.537-4.53a16.616 16.616 0 00-2.705-2.914l-1.97 1.887v3.92h.335c.755 0 1.331.193 1.73.577.398.385.597.947.597 1.688 0 .825-.206 1.419-.618 1.782-.413.364-1.094.546-2.045.546h-5.41c-.964 0-1.649-.179-2.054-.535-.405-.357-.608-.954-.608-1.793 0-.74.196-1.303.587-1.688.391-.384.965-.576 1.72-.576h.356V51.582h-.357c-.74 0-1.303-.195-1.687-.587-.385-.391-.577-.964-.577-1.719 0-.825.2-1.419.598-1.782.398-.364 1.072-.545 2.023-.545h5.41c.936 0 1.614.181 2.033.545.42.363.63.957.63 1.782 0 .755-.2 1.328-.598 1.72-.399.39-.975.586-1.73.586h-.336zM13.44 96.326l4.005-11.889c.251-.782.6-1.352 1.048-1.709.447-.356 1.041-.534 1.782-.534h3.271c.95 0 1.632.182 2.044.545.413.363.619.957.619 1.782 0 .755-.2 1.328-.598 1.72-.398.39-.975.587-1.73.587h-.335l.587 15.641h.357c.754 0 1.32.192 1.698.577.377.384.566.947.566 1.687 0 .825-.2 1.42-.598 1.783-.398.363-1.072.545-2.023.545h-4.718c-.95 0-1.624-.178-2.023-.535-.398-.356-.597-.954-.597-1.793 0-.74.192-1.303.576-1.687.385-.385.954-.577 1.709-.577h.335l-.293-12.79-3.061 9.52c-.224.712-.542 1.226-.954 1.54-.413.315-.982.472-1.709.472-.727 0-1.303-.157-1.73-.472-.426-.314-.751-.828-.975-1.54l-3.04-9.52-.294 12.79h.336c.755 0 1.324.192 1.709.577.384.384.576.947.576 1.687 0 .825-.202 1.42-.608 1.783-.405.363-1.076.545-2.013.545H2.621c-.937 0-1.608-.182-2.013-.545-.405-.364-.608-.958-.608-1.783 0-.74.192-1.303.577-1.687.384-.385.954-.577 1.708-.577h.336l.608-15.641h-.336c-.754 0-1.331-.196-1.73-.588-.398-.39-.597-.964-.597-1.719 0-.825.206-1.419.619-1.782.412-.363 1.093-.545 2.044-.545h3.27c.728 0 1.311.175 1.752.524.44.35.8.923 1.08 1.72l4.109 11.888zm30.454 2.054V86.828H42.74c-.922 0-1.583-.182-1.981-.546-.398-.363-.598-.95-.598-1.76 0-.812.2-1.402.598-1.773.398-.37 1.059-.555 1.981-.555h5.955c.909 0 1.566.185 1.97.555.406.37.609.961.609 1.772 0 .741-.192 1.31-.577 1.709-.384.398-.933.598-1.646.598h-.356v19.038c0 .657-.07 1.069-.21 1.237-.14.167-.454.251-.943.251h-2.097c-.67 0-1.143-.07-1.415-.21-.273-.14-.507-.384-.703-.733l-8.722-15.327v11.385h1.216c.909 0 1.559.175 1.95.524.392.35.587.93.587 1.74 0 .825-.199 1.42-.597 1.783-.399.363-1.045.545-1.94.545h-6.017c-.909 0-1.566-.182-1.971-.545-.406-.364-.608-.958-.608-1.783 0-.74.188-1.303.566-1.687.377-.385.936-.577 1.677-.577h.336V86.828h-.336c-.713 0-1.265-.2-1.656-.598-.392-.398-.587-.968-.587-1.709 0-.81.206-1.401.618-1.772.413-.37 1.066-.555 1.96-.555h3.44c.824 0 1.383.108 1.677.325.293.216.622.653.985 1.31l7.989 14.551zM64.66 86.366c-1.803 0-3.218.727-4.245 2.18-1.028 1.455-1.541 3.474-1.541 6.06 0 2.586.517 4.613 1.551 6.08 1.034 1.468 2.446 2.202 4.235 2.202 1.804 0 3.222-.73 4.257-2.19 1.034-1.461 1.551-3.492 1.551-6.092 0-2.586-.513-4.605-1.54-6.06-1.028-1.453-2.45-2.18-4.268-2.18zm0-4.864c3.44 0 6.27 1.23 8.492 3.69 2.223 2.46 3.334 5.598 3.334 9.414 0 3.844-1.104 6.99-3.313 9.436-2.208 2.446-5.046 3.669-8.513 3.669-3.424 0-6.255-1.234-8.491-3.701-2.237-2.467-3.355-5.602-3.355-9.404 0-3.83 1.108-6.971 3.323-9.424 2.216-2.454 5.057-3.68 8.523-3.68zM87.461 98.17v4.298h2.16c.908 0 1.555.175 1.94.524.384.35.576.93.576 1.74 0 .825-.196 1.42-.587 1.783-.392.363-1.035.545-1.93.545h-7.254c-.922 0-1.583-.182-1.981-.545-.399-.364-.598-.958-.598-1.783 0-.74.189-1.303.566-1.687.378-.385.93-.577 1.657-.577h.356V86.828h-.356c-.713 0-1.262-.2-1.646-.598-.385-.398-.577-.968-.577-1.709 0-.81.203-1.401.608-1.772.406-.37 1.063-.555 1.971-.555h8.66c3.424 0 6.014.657 7.768 1.97 1.754 1.315 2.631 3.25 2.631 5.809 0 2.697-.873 4.738-2.62 6.122-1.748 1.384-4.34 2.076-7.78 2.076h-3.564zm0-11.343v6.625h2.977c1.65 0 2.89-.28 3.722-.839.832-.559 1.248-1.397 1.248-2.516 0-1.048-.43-1.855-1.29-2.421-.86-.566-2.086-.85-3.68-.85h-2.977zm27.267 20.568l-1.636 1.636a12.37 12.37 0 011.772-.44c.58-.098 1.15-.147 1.709-.147 1.104 0 2.268.164 3.491.492 1.223.329 1.967.493 2.233.493.447 0 1.03-.15 1.75-.45.72-.301 1.206-.452 1.458-.452.517 0 .947.2 1.29.598.342.398.513.898.513 1.5 0 .796-.472 1.474-1.415 2.033-.944.56-2.1.839-3.47.839-.937 0-2.139-.22-3.607-.66-1.467-.441-2.53-.661-3.187-.661-.992 0-2.11.272-3.354.817-1.244.546-2.013.818-2.307.818a2.14 2.14 0 01-1.53-.597c-.42-.399-.63-.878-.63-1.437 0-.391.134-.807.4-1.247.265-.44.733-1.01 1.404-1.709l2.118-2.139c-2.335-.852-4.194-2.386-5.578-4.602-1.384-2.215-2.075-4.763-2.075-7.642 0-3.802 1.104-6.909 3.312-9.32 2.209-2.411 5.053-3.617 8.534-3.617 3.467 0 6.304 1.209 8.513 3.627 2.208 2.418 3.312 5.522 3.312 9.31 0 3.774-1.097 6.884-3.291 9.33-2.195 2.446-4.977 3.67-8.345 3.67a22.5 22.5 0 01-1.384-.043zm1.195-21.03c-1.803 0-3.218.727-4.246 2.18-1.027 1.455-1.54 3.474-1.54 6.06 0 2.586.516 4.613 1.55 6.08 1.035 1.468 2.447 2.202 4.236 2.202 1.803 0 3.222-.73 4.256-2.19 1.035-1.461 1.552-3.492 1.552-6.092 0-2.586-.514-4.605-1.541-6.06-1.028-1.453-2.45-2.18-4.267-2.18z\"/></svg>"
+ },
+ "$:/core/images/mono-line": {
+ "title": "$:/core/images/mono-line",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-mono-line tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M60.437 84.523h.908c1.922 0 3.381.489 4.378 1.468.997.979 1.495 2.411 1.495 4.298 0 2.1-.525 3.612-1.575 4.538-1.05.925-2.785 1.388-5.206 1.388h-16.07c-2.456 0-4.2-.454-5.232-1.361-1.032-.908-1.548-2.43-1.548-4.565 0-2.065.516-3.542 1.548-4.432 1.032-.89 2.776-1.334 5.232-1.334h1.869l-2.19-6.247H20.983l-2.296 6.247h1.87c2.42 0 4.155.453 5.205 1.361 1.05.908 1.575 2.376 1.575 4.405 0 2.1-.525 3.612-1.575 4.538-1.05.925-2.785 1.388-5.206 1.388H6.781c-2.456 0-4.2-.463-5.233-1.388C.516 93.9 0 92.389 0 90.289c0-1.887.498-3.32 1.495-4.298.997-.979 2.456-1.468 4.378-1.468h.908l14.308-39.83h-4.271c-2.42 0-4.156-.462-5.206-1.387-1.05-.926-1.575-2.42-1.575-4.485 0-2.1.525-3.613 1.575-4.538 1.05-.926 2.785-1.388 5.206-1.388h20.021c3.168 0 5.392 1.708 6.674 5.125v.16l16.924 46.343zm-27.976-39.83L24.72 67.225h15.483l-7.742-22.53zM89.506 68.56v16.284h8.008c5.66 0 9.646-.623 11.96-1.869 2.313-1.245 3.47-3.328 3.47-6.246 0-2.955-1.103-5.055-3.31-6.3-2.207-1.246-6.069-1.869-11.586-1.869h-8.542zm27.229-5.926c3.88 1.423 6.727 3.372 8.542 5.846 1.815 2.474 2.723 5.633 2.723 9.477 0 3.239-.783 6.193-2.35 8.862-1.565 2.67-3.808 4.859-6.726 6.567-1.709.997-3.622 1.718-5.74 2.163-2.118.445-5.116.667-8.996.667h-27.87c-2.349 0-4.03-.463-5.045-1.388-1.014-.926-1.521-2.438-1.521-4.538 0-1.887.48-3.32 1.441-4.298.961-.979 2.367-1.468 4.218-1.468h.907v-39.83h-.907c-1.851 0-3.257-.498-4.218-1.494-.961-.997-1.441-2.456-1.441-4.378 0-2.065.516-3.568 1.548-4.512 1.032-.943 2.705-1.414 5.018-1.414h24.56c7.51 0 13.214 1.459 17.111 4.377 3.898 2.92 5.847 7.19 5.847 12.814 0 2.776-.597 5.223-1.789 7.341-1.192 2.118-2.963 3.853-5.312 5.206zm-27.23-18.26v13.455h7.208c4.378 0 7.466-.516 9.264-1.549 1.797-1.032 2.696-2.776 2.696-5.232 0-2.313-.81-4.004-2.43-5.072-1.619-1.068-4.244-1.602-7.874-1.602h-8.863z\"/></svg>"
+ },
+ "$:/core/images/new-button": {
+ "title": "$:/core/images/new-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-new-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M56 72H8.007C3.591 72 0 68.418 0 64c0-4.41 3.585-8 8.007-8H56V8.007C56 3.591 59.582 0 64 0c4.41 0 8 3.585 8 8.007V56h47.993c4.416 0 8.007 3.582 8.007 8 0 4.41-3.585 8-8.007 8H72v47.993c0 4.416-3.582 8.007-8 8.007-4.41 0-8-3.585-8-8.007V72z\"/></svg>"
+ },
+ "$:/core/images/new-here-button": {
+ "title": "$:/core/images/new-here-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-new-here-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M55.838 20.935l-3.572.938c-3.688.968-8.23 4.43-10.136 7.731L3.37 96.738c-1.905 3.3-.771 7.524 2.534 9.432l33.717 19.466c3.297 1.904 7.53.78 9.435-2.521l38.76-67.134c1.905-3.3 2.632-8.963 1.623-12.646L83.285 20.88c-1.009-3.68-4.821-5.884-8.513-4.915l-7.603 1.995.043.287c.524 3.394 2.053 7.498 4.18 11.55.418.163.829.36 1.23.59a8.864 8.864 0 014.438 8.169c.104.132.21.264.316.395l-.386.318a8.663 8.663 0 01-1.082 3.137c-2.42 4.192-7.816 5.608-12.051 3.163-4.12-2.379-5.624-7.534-3.476-11.671-2.177-4.394-3.788-8.874-4.543-12.964z\"/><path d=\"M69.554 44.76c-5.944-7.476-10.74-17.196-11.955-25.059-1.68-10.875 3.503-18.216 15.082-18.04 10.407.158 19.975 5.851 24.728 13.785 5.208 8.695 2.95 17.868-6.855 20.496l-2.037-7.601c4.232-1.134 4.999-4.248 2.24-8.853-3.37-5.626-10.465-9.848-18.146-9.965-6.392-.097-8.31 2.62-7.323 9.01.999 6.465 5.318 15.138 10.582 21.65l-.072.06c.559 1.553-4.17 6.44-5.938 4.888l-.005.004-.028-.034a1.323 1.323 0 01-.124-.135 2.618 2.618 0 01-.149-.205z\"/><rect width=\"16\" height=\"48\" x=\"96\" y=\"80\" rx=\"8\"/><rect width=\"48\" height=\"16\" x=\"80\" y=\"96\" rx=\"8\"/></g></svg>"
+ },
+ "$:/core/images/new-image-button": {
+ "title": "$:/core/images/new-image-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-new-image-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M81.362 73.627l15.826-27.41a2.626 2.626 0 00-.962-3.59l-50.01-28.872a2.626 2.626 0 00-3.588.961L30.058 36.49l10.04-5.261c3.042-1.595 6.771.114 7.55 3.46l3.607 17.702 9.88.85a5.25 5.25 0 014.571 3.77c.034.115.1.344.199.671.165.553.353 1.172.562 1.843.595 1.914 1.23 3.85 1.872 5.678.207.588.412 1.156.614 1.701.625 1.685 1.209 3.114 1.725 4.207.255.54.485.977.726 1.427.214.212.547.425 1.011.622 1.141.482 2.784.74 4.657.758.864.008 1.71-.034 2.492-.11.448-.043.753-.085.871-.104.315-.053.625-.077.927-.076zM37.47 2.649A5.257 5.257 0 0144.649.725l63.645 36.746a5.257 5.257 0 011.923 7.178L73.47 108.294a5.257 5.257 0 01-7.177 1.923L2.649 73.47a5.257 5.257 0 01-1.924-7.177L37.471 2.649zm42.837 50.49a5.25 5.25 0 105.25-9.092 5.25 5.25 0 00-5.25 9.093zM96 112h-7.993c-4.419 0-8.007-3.582-8.007-8 0-4.41 3.585-8 8.007-8H96v-7.993C96 83.588 99.582 80 104 80c4.41 0 8 3.585 8 8.007V96h7.993c4.419 0 8.007 3.582 8.007 8 0 4.41-3.585 8-8.007 8H112v7.993c0 4.419-3.582 8.007-8 8.007-4.41 0-8-3.585-8-8.007V112zM33.347 51.791c7.428 7.948 9.01 10.69 7.449 13.394-1.56 2.703-13.838-2.328-16.094 1.58-2.256 3.908-.907 3.258-2.437 5.908l19.73 11.39s-5.605-8.255-4.235-10.628c2.515-4.356 8.77-1.256 10.365-4.019 2.414-4.181-5.103-9.639-14.778-17.625z\"/></svg>"
+ },
+ "$:/core/images/new-journal-button": {
+ "title": "$:/core/images/new-journal-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-new-journal-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M102.545 112.818v11.818c0 1.306 1.086 2.364 2.425 2.364h6.06c1.34 0 2.425-1.058 2.425-2.364v-11.818h12.12c1.34 0 2.425-1.058 2.425-2.363v-5.91c0-1.305-1.085-2.363-2.424-2.363h-12.121V90.364c0-1.306-1.086-2.364-2.425-2.364h-6.06c-1.34 0-2.425 1.058-2.425 2.364v11.818h-12.12c-1.34 0-2.425 1.058-2.425 2.363v5.91c0 1.305 1.085 2.363 2.424 2.363h12.121zM60.016 4.965c-4.781-2.76-10.897-1.118-13.656 3.66L5.553 79.305A9.993 9.993 0 009.21 92.963l51.04 29.468c4.78 2.76 10.897 1.118 13.655-3.66l40.808-70.681a9.993 9.993 0 00-3.658-13.656L60.016 4.965zm-3.567 27.963a6 6 0 106-10.393 6 6 0 00-6 10.393zm31.697 17.928a6 6 0 106-10.392 6 6 0 00-6 10.392z\"/><text class=\"tc-fill-background\" font-family=\"Helvetica\" font-size=\"47.172\" font-weight=\"bold\" transform=\"rotate(30 25.742 95.82)\"><tspan x=\"42\" y=\"77.485\" text-anchor=\"middle\"><<now \"DD\">></tspan></text></g></svg>"
+ },
+ "$:/core/images/opacity": {
+ "title": "$:/core/images/opacity",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-opacity tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M102.362 65a51.595 51.595 0 01-1.942 6H82.584a35.867 35.867 0 002.997-6h16.78zm.472-2c.423-1.961.734-3.963.929-6H87.656a35.78 35.78 0 01-1.368 6h16.546zm-3.249 10a51.847 51.847 0 01-3.135 6H75.812a36.205 36.205 0 005.432-6h18.341zm-4.416 8c-1.424 2.116-3 4.12-4.71 6H60.46a35.843 35.843 0 0012.874-6h21.834zm-7.513-34h16.107C101.247 20.627 79.033 0 52 0 23.281 0 0 23.281 0 52c0 25.228 17.965 46.26 41.8 51h20.4a51.66 51.66 0 0015.875-6H39v-2h42.25a52.257 52.257 0 007.288-6H39v-2h4.539C27.739 83.194 16 68.968 16 52c0-19.882 16.118-36 36-36 18.186 0 33.222 13.484 35.656 31zm.22 2h16.039a52.823 52.823 0 010 6H87.877a36.483 36.483 0 000-6z\"/><path d=\"M76 128c28.719 0 52-23.281 52-52s-23.281-52-52-52-52 23.281-52 52 23.281 52 52 52zm0-16c19.882 0 36-16.118 36-36S95.882 40 76 40 40 56.118 40 76s16.118 36 36 36z\"/><path d=\"M37 58h53v4H37v-4zm3-8h53v4H40v-4zm0-8h53v4H40v-4zm-8 24h53v4H32v-4zm-2 8h53v4H30v-4zm-3 8h53v4H27v-4z\"/></g></svg>"
+ },
+ "$:/core/images/open-window": {
+ "title": "$:/core/images/open-window",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-open-window tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M16 112h88.994c3.87 0 7.006 3.59 7.006 8 0 4.418-3.142 8-7.006 8H7.006C3.136 128 0 124.41 0 120a9.321 9.321 0 010-.01V24.01C0 19.586 3.59 16 8 16c4.418 0 8 3.584 8 8.01V112z\"/><path d=\"M96 43.196V56a8 8 0 1016 0V24c0-4.41-3.585-8-8.007-8H72.007C67.588 16 64 19.582 64 24c0 4.41 3.585 8 8.007 8H84.57l-36.3 36.299a8 8 0 00-.001 11.316c3.117 3.117 8.19 3.123 11.316-.003L96 43.196zM32 7.999C32 3.581 35.588 0 40 0h80c4.419 0 8 3.588 8 8v80c0 4.419-3.588 8-8 8H40c-4.419 0-8-3.588-8-8V8z\"/></g></svg>"
+ },
+ "$:/core/images/options-button": {
+ "title": "$:/core/images/options-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-options-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M110.488 76a47.712 47.712 0 01-5.134 12.384l6.724 6.724c3.123 3.123 3.132 8.192.011 11.313l-5.668 5.668c-3.12 3.12-8.186 3.117-11.313-.01l-6.724-6.725c-3.82 2.258-7.98 4-12.384 5.134v9.505c0 4.417-3.578 8.007-7.992 8.007h-8.016C55.58 128 52 124.415 52 119.993v-9.505a47.712 47.712 0 01-12.384-5.134l-6.724 6.725c-3.123 3.122-8.192 3.131-11.313.01l-5.668-5.668c-3.12-3.12-3.116-8.186.01-11.313l6.725-6.724c-2.257-3.82-4-7.98-5.134-12.384H8.007C3.591 76 0 72.422 0 68.01v-8.017C0 55.58 3.585 52 8.007 52h9.505a47.712 47.712 0 015.134-12.383l-6.724-6.725c-3.123-3.122-3.132-8.191-.011-11.312l5.668-5.669c3.12-3.12 8.186-3.116 11.313.01l6.724 6.725c3.82-2.257 7.98-4 12.384-5.134V8.007C52 3.591 55.578 0 59.992 0h8.016C72.42 0 76 3.585 76 8.007v9.505a47.712 47.712 0 0112.384 5.134l6.724-6.724c3.123-3.123 8.192-3.132 11.313-.01l5.668 5.668c3.12 3.12 3.116 8.186-.01 11.312l-6.725 6.725c2.257 3.82 4 7.979 5.134 12.383h9.505c4.416 0 8.007 3.578 8.007 7.992v8.017c0 4.411-3.585 7.991-8.007 7.991h-9.505zM64 96c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32z\"/></svg>"
+ },
+ "$:/core/images/paint": {
+ "title": "$:/core/images/paint",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-paint tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M83.527 76.19C90.43 69.287 91.892 59 87.91 50.665l37.903-37.902c2.919-2.92 2.913-7.659 0-10.572a7.474 7.474 0 00-10.572 0L77.338 40.093c-8.335-3.982-18.622-2.521-25.526 4.383l31.715 31.715zm-2.643 2.644L49.169 47.119S8.506 81.243 0 80.282c0 0 3.782 5.592 6.827 8.039 14.024-5.69 37.326-24.6 37.326-24.6l.661.66S19.45 90.222 9.18 92.047c1.222 1.44 4.354 4.053 6.247 5.776 5.417-1.488 34.733-28.57 34.733-28.57l.661.66-32.407 31.022 5.285 5.286L56.106 75.2l.662.66s-27.864 30.536-28.684 32.432c0 0 6.032 6.853 7.569 7.824.702-2.836 27.884-33.485 27.884-33.485l.661.66s-20.597 23.755-24.964 36.732c3.21 3.549 7.5 5.137 10.926 6.298-2.19-11.817 30.724-47.487 30.724-47.487z\"/></svg>"
+ },
+ "$:/core/images/palette": {
+ "title": "$:/core/images/palette",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-palette tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M80.247 39.182a93.52 93.52 0 00-16.228-1.4C28.662 37.781 0 57.131 0 81.002c0 9.642 4.676 18.546 12.58 25.735C23.504 91.19 26.34 72.395 36.89 63.562c15.183-12.713 26.538-7.828 26.538-7.828l16.82-16.552zm26.535 9.655c13.049 7.913 21.257 19.392 21.257 32.166 0 9.35.519 17.411-11.874 25.08-10.797 6.681-3.824-6.536-11.844-10.898s-19.946 1.308-18.213 7.906c3.2 12.181 19.422 11.455 6.314 16.658-13.107 5.202-18.202 4.476-28.403 4.476-7.821 0-15.315-.947-22.243-2.68 9.844-4.197 27.88-12.539 33.354-19.456C82.788 92.409 87.37 80 83.324 72.484c-.194-.359 11.215-11.668 23.458-23.647zM1.134 123.867l-.66.002c33.479-14.94 22.161-64.226 58.818-64.226.317 1.418.644 2.944 1.062 4.494-25.907-4.166-23.567 48.031-59.22 59.73zm.713-.007c38.872-.506 78.152-22.347 78.152-44.813-9.27 0-14.073-3.48-16.816-7.942-16.597-7.003-30.365 45.715-61.336 52.755zm65.351-64.008c-4.45 4.115 4.886 16.433 11.318 11.318l45.27-45.27c11.317-11.318 0-22.635-11.318-11.318-11.317 11.318-33.518 34.405-45.27 45.27z\"/></svg>"
+ },
+ "$:/core/images/permalink-button": {
+ "title": "$:/core/images/permalink-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-permalink-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M80.483 48l-7.387 32h-25.58l7.388-32h25.58zm3.694-16l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L100.598 32h3.403c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8h-7.096l-7.387 32H104c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H85.824l-5.624 24.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L69.402 96h-25.58L38.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L27.402 96h-3.403C19.59 96 16 92.418 16 88c0-4.41 3.581-8 8-8h7.096l7.387-32H24C19.59 48 16 44.418 16 40c0-4.41 3.581-8 8-8h18.177l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L58.598 32h25.58z\"/></svg>"
+ },
+ "$:/core/images/permaview-button": {
+ "title": "$:/core/images/permaview-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-permaview-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M81.483 48l-1.846 8h-5.58l1.847-8h5.58zm3.694-16l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L101.598 32h2.403c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8h-6.096l-1.847 8h7.944c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H92.364l-1.846 8H104c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H86.824l-5.624 24.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L70.402 96h-5.58L59.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L48.402 96h-5.58L37.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L26.402 96h-2.403C19.59 96 16 92.418 16 88c0-4.41 3.581-8 8-8h6.096l1.847-8h-7.944C19.59 72 16 68.418 16 64c0-4.41 3.581-8 8-8h11.637l1.846-8H24C19.59 48 16 44.418 16 40c0-4.41 3.581-8 8-8h17.177l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L57.598 32h5.58L68.8 7.642c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L79.598 32h5.58zM53.904 48l-1.847 8h5.58l1.846-8h-5.579zm22.039 24l-1.847 8h-5.58l1.847-8h5.58zm-27.58 0l-1.846 8h5.579l1.847-8h-5.58z\"/></svg>"
+ },
+ "$:/core/images/picture": {
+ "title": "$:/core/images/picture",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-picture tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M112 68.233v-48.23A4.001 4.001 0 00107.997 16H20.003A4.001 4.001 0 0016 20.003v38.31l9.241-14.593c2.8-4.422 9.023-5.008 12.6-1.186l18.247 20.613 13.687-6.407a8 8 0 018.903 1.492 264.97 264.97 0 002.92 2.739 249.44 249.44 0 006.798 6.066 166.5 166.5 0 002.106 1.778c2.108 1.747 3.967 3.188 5.482 4.237.748.518 1.383.92 2.044 1.33.444.117 1.046.144 1.809.05 1.873-.233 4.238-1.144 6.723-2.547a36.016 36.016 0 003.205-2.044c.558-.4.93-.686 1.07-.802.376-.31.765-.577 1.165-.806zM0 8.007A8.01 8.01 0 018.007 0h111.986A8.01 8.01 0 01128 8.007v111.986a8.01 8.01 0 01-8.007 8.007H8.007A8.01 8.01 0 010 119.993V8.007zM95 42a8 8 0 100-16 8 8 0 000 16zM32 76c15.859 4.83 20.035 7.244 20.035 12S32 95.471 32 102.347c0 6.876 1.285 4.99 1.285 9.653H68s-13.685-6.625-13.685-10.8c0-7.665 10.615-8.34 10.615-13.2 0-7.357-14.078-8.833-32.93-12z\"/></svg>"
+ },
+ "$:/core/images/plugin-generic-language": {
+ "title": "$:/core/images/plugin-generic-language",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M61.207 68.137c-4.324 2.795-6.999 6.656-6.999 10.921 0 7.906 9.19 14.424 21.042 15.336 2.162 3.902 8.598 6.785 16.318 7.01-5.126-1.125-9.117-3.742-10.62-7.01C92.805 93.487 102 86.967 102 79.059c0-8.53-10.699-15.445-23.896-15.445-6.599 0-12.572 1.729-16.897 4.524zm12.794-14.158c-4.324 2.795-10.298 4.524-16.897 4.524-2.619 0-5.14-.272-7.497-.775-3.312 2.25-8.383 3.69-14.067 3.69l-.255-.002c4.119-.892 7.511-2.747 9.478-5.13-6.925-2.704-11.555-7.617-11.555-13.228 0-8.53 10.699-15.445 23.896-15.445C70.301 27.613 81 34.528 81 43.058c0 4.265-2.675 8.126-6.999 10.921zM64 0l54.56 32v64L64 128 9.44 96V32L64 0z\"/></svg>"
+ },
+ "$:/core/images/plugin-generic-plugin": {
+ "title": "$:/core/images/plugin-generic-plugin",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M40.397 76.446V95.34h14.12l-.001-.005a6.912 6.912 0 005.364-11.593l.046-.023a6.912 6.912 0 119.979.526l.086.055a6.914 6.914 0 004.408 10.948l-.023.092h21.32V75.568l-.15.038a6.912 6.912 0 00-11.593-5.364l-.022-.046a6.912 6.912 0 11.526-9.979l.055-.086a6.914 6.914 0 0010.948-4.408c.079.018.158.038.236.059v-15.74h-21.32l.023-.094a6.914 6.914 0 01-4.408-10.947 10.23 10.23 0 00-.086-.055 6.912 6.912 0 10-9.979-.526l-.046.023a6.912 6.912 0 01-5.364 11.593l.001.005h-14.12v12.847A6.912 6.912 0 0129.5 59.843l-.054.086a6.912 6.912 0 10-.526 9.979l.023.046a6.912 6.912 0 0111.455 6.492zM64 0l54.56 32v64L64 128 9.44 96V32L64 0z\"/></svg>"
+ },
+ "$:/core/images/plugin-generic-theme": {
+ "title": "$:/core/images/plugin-generic-theme",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M29.408 91.472L51.469 69.41l-.004-.005a2.22 2.22 0 01.004-3.146c.87-.87 2.281-.872 3.147-.005l9.465 9.464a2.22 2.22 0 01-.005 3.147c-.87.87-2.28.871-3.147.005l-.005-.005-22.061 22.062a6.686 6.686 0 11-9.455-9.455zM60.802 66.38c-2.436-2.704-4.465-5.091-5.817-6.869-6.855-9.014-10.313-4.268-14.226 0-3.913 4.268 1.03 7.726-2.683 10.741-3.713 3.015-3.484 4.06-9.752-1.455-6.267-5.516-6.7-7.034-3.823-10.181 2.877-3.147 5.281 1.808 11.159-3.785 5.877-5.593.94-10.55.94-10.55s12.237-25.014 28.588-23.167c16.351 1.848-6.186-2.392-11.792 17.226-2.4 8.4.447 6.42 4.998 9.968 1.394 1.086 6.03 4.401 11.794 8.685l20.677-20.676 1.615-4.766 7.84-4.689 3.151 3.152-4.688 7.84-4.766 1.615-20.224 20.223c12.663 9.547 28.312 22.146 28.312 26.709 0 7.217-3.071 11.526-9.535 9.164-4.693-1.715-18.768-15.192-28.753-25.897l-2.893 2.893-3.151-3.152 3.029-3.029zM63.953 0l54.56 32v64l-54.56 32-54.56-32V32l54.56-32z\"/></svg>"
+ },
+ "$:/core/images/preview-closed": {
+ "title": "$:/core/images/preview-closed",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-preview-closed tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M.088 64a7.144 7.144 0 001.378 5.458C16.246 88.818 39.17 100.414 64 100.414c24.83 0 47.753-11.596 62.534-30.956A7.144 7.144 0 00127.912 64C110.582 78.416 88.304 87.086 64 87.086 39.696 87.086 17.418 78.416.088 64z\"/><rect width=\"4\" height=\"16\" x=\"62\" y=\"96\" rx=\"4\"/><rect width=\"4\" height=\"16\" x=\"78\" y=\"93\" rx=\"4\" transform=\"rotate(-5 80 101)\"/><rect width=\"4\" height=\"16\" x=\"46\" y=\"93\" rx=\"4\" transform=\"rotate(5 48 101)\"/><rect width=\"4\" height=\"16\" x=\"30\" y=\"88\" rx=\"4\" transform=\"rotate(10 32 96)\"/><rect width=\"4\" height=\"16\" x=\"94\" y=\"88\" rx=\"4\" transform=\"rotate(-10 96 96)\"/><rect width=\"4\" height=\"16\" x=\"110\" y=\"80\" rx=\"4\" transform=\"rotate(-20 112 88)\"/><rect width=\"4\" height=\"16\" x=\"14\" y=\"80\" rx=\"4\" transform=\"rotate(20 16 88)\"/></g></svg>"
+ },
+ "$:/core/images/preview-open": {
+ "title": "$:/core/images/preview-open",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-preview-open tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M64.11 99.588c-24.83 0-47.754-11.596-62.534-30.957a7.148 7.148 0 010-8.675C16.356 40.596 39.28 29 64.11 29c24.83 0 47.753 11.596 62.534 30.956a7.148 7.148 0 010 8.675c-14.78 19.36-37.703 30.957-62.534 30.957zm46.104-32.007c1.44-1.524 1.44-3.638 0-5.162C99.326 50.9 82.439 44 64.147 44S28.968 50.9 18.08 62.42c-1.44 1.523-1.44 3.637 0 5.16C28.968 79.1 45.855 86 64.147 86s35.179-6.9 46.067-18.42z\"/><path d=\"M63.5 88C76.479 88 87 77.479 87 64.5S76.479 41 63.5 41 40 51.521 40 64.5 50.521 88 63.5 88z\"/></g></svg>"
+ },
+ "$:/core/images/print-button": {
+ "title": "$:/core/images/print-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-print-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M112 71V30.5h-.032c-.035-2-.816-3.99-2.343-5.516L86.998 2.357A7.978 7.978 0 0081 .02V0H24a8 8 0 00-8 8v63h8V8h57v14.5c0 4.422 3.582 8 8 8h15V71h8z\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"36\" rx=\"4\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"52\" rx=\"4\"/><rect width=\"40\" height=\"8\" x=\"32\" y=\"20\" rx=\"4\"/><path d=\"M0 80.005C0 71.165 7.156 64 16 64h96c8.836 0 16 7.155 16 16.005v31.99c0 8.84-7.156 16.005-16 16.005H16c-8.836 0-16-7.155-16-16.005v-31.99zM104 96a8 8 0 100-16 8 8 0 000 16z\"/></g></svg>"
+ },
+ "$:/core/images/quote": {
+ "title": "$:/core/images/quote",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-quote tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M51.219 117.713V62.199H27.427c0-8.891 1.683-16.401 5.047-22.53 3.365-6.127 9.613-10.754 18.745-13.878V2c-7.45.961-14.36 3.184-20.728 6.669-6.368 3.484-11.835 7.87-16.401 13.157C9.524 27.113 5.98 33.241 3.456 40.21.933 47.18-.21 54.63.03 62.56v55.153H51.22zm76.781 0V62.199h-23.791c0-8.891 1.682-16.401 5.046-22.53 3.365-6.127 9.613-10.754 18.745-13.878V2c-7.45.961-14.359 3.184-20.727 6.669-6.369 3.484-11.836 7.87-16.402 13.157-4.566 5.287-8.11 11.415-10.634 18.384-2.523 6.97-3.665 14.42-3.424 22.35v55.153H128z\"/></svg>"
+ },
+ "$:/core/images/refresh-button": {
+ "title": "$:/core/images/refresh-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-refresh-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M106.369 39.433c10.16 20.879 6.57 46.764-10.771 64.106-21.87 21.87-57.327 21.87-79.196 0-21.87-21.87-21.87-57.326 0-79.196a8 8 0 1111.314 11.314c-15.621 15.62-15.621 40.947 0 56.568 15.62 15.621 40.947 15.621 56.568 0C97.72 78.79 99.6 58.175 89.924 42.73l-6.44 12.264a8 8 0 11-14.166-7.437L84.435 18.76a8 8 0 0110.838-3.345l28.873 15.345a8 8 0 11-7.51 14.129l-10.267-5.457zm-8.222-12.368c-.167-.19-.336-.38-.506-.57l.96-.296-.454.866z\"/></svg>"
+ },
+ "$:/core/images/right-arrow": {
+ "title": "$:/core/images/right-arrow",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-right-arrow tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M99.069 64.173c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l50.382-50.382-50.382-50.382a7.92 7.92 0 010-11.195c3.086-3.085 8.104-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.316 5.595z\"/></svg>"
+ },
+ "$:/core/images/rotate-left": {
+ "title": "$:/core/images/rotate-left",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-rotate-left tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"32\" height=\"80\" rx=\"8\"/><rect width=\"80\" height=\"32\" x=\"48\" y=\"96\" rx=\"8\"/><path d=\"M61.32 36.65c19.743 2.45 35.023 19.287 35.023 39.693a4 4 0 01-8 0c0-15.663-11.254-28.698-26.117-31.46l3.916 3.916a4 4 0 11-5.657 5.657L49.172 43.142a4 4 0 010-5.657l11.313-11.313a4 4 0 115.657 5.656l-4.821 4.822z\"/></g></svg>"
+ },
+ "$:/core/images/save-button": {
+ "title": "$:/core/images/save-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-save-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M120.783 34.33c4.641 8.862 7.266 18.948 7.266 29.646 0 35.347-28.653 64-64 64-35.346 0-64-28.653-64-64 0-35.346 28.654-64 64-64 18.808 0 35.72 8.113 47.43 21.03l2.68-2.68c3.13-3.13 8.197-3.132 11.321-.008 3.118 3.118 3.121 8.193-.007 11.32l-4.69 4.691zm-12.058 12.058a47.876 47.876 0 013.324 17.588c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48c14.39 0 27.3 6.332 36.098 16.362L58.941 73.544 41.976 56.578c-3.127-3.127-8.201-3.123-11.32-.005-3.123 3.124-3.119 8.194.006 11.319l22.617 22.617a7.992 7.992 0 005.659 2.347c2.05 0 4.101-.783 5.667-2.349l44.12-44.12z\"/></svg>"
+ },
+ "$:/core/images/size": {
+ "title": "$:/core/images/size",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-size tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M92.343 26l-9.171 9.172a4 4 0 105.656 5.656l16-16a4 4 0 000-5.656l-16-16a4 4 0 10-5.656 5.656L92.343 18H22a4 4 0 00-4 4v70.343l-9.172-9.171a4 4 0 10-5.656 5.656l16 16a4 4 0 005.656 0l16-16a4 4 0 10-5.656-5.656L26 92.343V22l-4 4h70.343zM112 52v64l4-4H52a4 4 0 100 8h64a4 4 0 004-4V52a4 4 0 10-8 0z\"/></svg>"
+ },
+ "$:/core/images/spiral": {
+ "title": "$:/core/images/spiral",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-spiral tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M64.534 68.348c3.39 0 6.097-2.62 6.476-5.968l-4.755-.538 4.75.583c.377-3.07-1.194-6.054-3.89-7.78-2.757-1.773-6.34-2.01-9.566-.7-3.46 1.403-6.14 4.392-7.35 8.148l-.01.026c-1.3 4.08-.72 8.64 1.58 12.52 2.5 4.2 6.77 7.2 11.76 8.27 5.37 1.15 11.11-.05 15.83-3.31 5.04-3.51 8.46-9.02 9.45-15.3 1.05-6.7-.72-13.63-4.92-19.19l.02.02c-4.42-5.93-11.2-9.82-18.78-10.78-7.96-1.01-16.13 1.31-22.59 6.43-6.81 5.39-11.18 13.41-12.11 22.26-.98 9.27 1.87 18.65 7.93 26.02 6.32 7.69 15.6 12.56 25.74 13.48 10.54.96 21.15-2.42 29.45-9.4l.01-.01c8.58-7.25 13.94-17.78 14.86-29.21.94-11.84-2.96-23.69-10.86-32.9-8.19-9.5-19.95-15.36-32.69-16.27-13.16-.94-26.24 3.49-36.34 12.34l.01-.01c-10.41 9.08-16.78 22.1-17.68 36.15-.93 14.44 4.03 28.77 13.79 39.78 10.03 11.32 24.28 18.2 39.6 19.09 15.73.92 31.31-4.56 43.24-15.234 12.23-10.954 19.61-26.44 20.5-43.074a4.785 4.785 0 00-4.52-5.03 4.778 4.778 0 00-5.03 4.52c-.75 14.1-7 27.2-17.33 36.45-10.03 8.98-23.11 13.58-36.3 12.81-12.79-.75-24.67-6.48-33-15.89-8.07-9.11-12.17-20.94-11.41-32.827.74-11.52 5.942-22.15 14.43-29.54l.01-.01c8.18-7.17 18.74-10.75 29.35-9.998 10.21.726 19.6 5.41 26.11 12.96 6.24 7.273 9.32 16.61 8.573 25.894-.718 8.9-4.88 17.064-11.504 22.66l.01-.007c-6.36 5.342-14.44 7.92-22.425 7.19-7.604-.68-14.52-4.314-19.21-10.027-4.44-5.4-6.517-12.23-5.806-18.94.67-6.3 3.76-11.977 8.54-15.766 4.46-3.54 10.05-5.128 15.44-4.44 5.03.63 9.46 3.18 12.32 7.01l.02.024c2.65 3.5 3.75 7.814 3.1 11.92-.59 3.71-2.58 6.925-5.45 8.924-2.56 1.767-5.61 2.403-8.38 1.81-2.42-.516-4.42-1.92-5.53-3.79-.93-1.56-1.15-3.3-.69-4.75l-4.56-1.446L59.325 65c.36-1.12 1.068-1.905 1.84-2.22.25-.103.48-.14.668-.13.06.006.11.015.14.025.01 0 .01 0-.01-.01a1.047 1.047 0 01-.264-.332c-.15-.29-.23-.678-.18-1.11l-.005.04c.15-1.332 1.38-2.523 3.035-2.523-2.65 0-4.79 2.144-4.79 4.787s2.14 4.785 4.78 4.785z\"/></svg>"
+ },
+ "$:/core/images/stamp": {
+ "title": "$:/core/images/stamp",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-stamp tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M49.733 64H16.01C11.584 64 8 67.583 8 72.003V97h112V72.003A8 8 0 00111.99 64H78.267A22.813 22.813 0 0175.5 53.077c0-6.475 2.687-12.324 7.009-16.497A22.818 22.818 0 0087 22.952C87 10.276 76.703 0 64 0S41 10.276 41 22.952c0 5.103 1.669 9.817 4.491 13.628 4.322 4.173 7.009 10.022 7.009 16.497 0 3.954-1.002 7.675-2.767 10.923zM8 104h112v8H8v-8z\"/></svg>"
+ },
+ "$:/core/images/star-filled": {
+ "title": "$:/core/images/star-filled",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-star-filled tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M61.836 96.823l37.327 27.287c2.72 1.99 6.379-.69 5.343-3.912L90.29 75.988l-1.26 3.91 37.285-27.345c2.718-1.993 1.32-6.327-2.041-6.33l-46.113-.036 3.3 2.416L67.176 4.416c-1.04-3.221-5.563-3.221-6.604 0L46.29 48.603l3.3-2.416-46.113.036c-3.362.003-4.759 4.337-2.04 6.33L38.72 79.898l-1.26-3.91-14.216 44.21c-1.036 3.223 2.622 5.901 5.343 3.912l37.326-27.287h-4.078z\"/></svg>"
+ },
+ "$:/core/images/storyview-classic": {
+ "title": "$:/core/images/storyview-classic",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-storyview-classic tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16C19.581 16 16 19.578 16 23.992v16.016C16 44.422 19.588 48 24 48h80c4.419 0 8-3.578 8-7.992V23.992c0-4.414-3.588-7.992-8-7.992H24zm0 48C19.581 64 16 67.59 16 72c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24zm0 32C19.581 96 16 99.59 16 104c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24z\"/></svg>"
+ },
+ "$:/core/images/storyview-pop": {
+ "title": "$:/core/images/storyview-pop",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-storyview-pop tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16C19.581 16 16 19.578 16 23.992v16.016C16 44.422 19.588 48 24 48h80c4.419 0 8-3.578 8-7.992V23.992c0-4.414-3.588-7.992-8-7.992H24zm-7.99 40C11.587 56 8 59.578 8 63.992v16.016C8 84.422 11.584 88 16.01 88h95.98c4.424 0 8.01-3.578 8.01-7.992V63.992c0-4.414-3.584-7.992-8.01-7.992H16.01zM24 96C19.581 96 16 99.59 16 104c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24zm0-32C19.581 64 16 67.59 16 72c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24z\"/></svg>"
+ },
+ "$:/core/images/storyview-zoomin": {
+ "title": "$:/core/images/storyview-zoomin",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-storyview-zoomin tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16A8 8 0 0016 24.009V71.99C16 76.414 19.588 80 24 80h80a8 8 0 008-8.009V24.01c0-4.423-3.588-8.009-8-8.009H24z\"/></svg>"
+ },
+ "$:/core/images/strikethrough": {
+ "title": "$:/core/images/strikethrough",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-strikethrough tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M92.794 38.726h15.422c-.229-6.74-1.514-12.538-3.856-17.393-2.342-4.855-5.54-8.881-9.596-12.08-4.055-3.199-8.767-5.54-14.136-7.025C75.258.743 69.433 0 63.15 0a62.76 62.76 0 00-16.364 2.142C41.474 3.57 36.733 5.74 32.564 8.653c-4.17 2.913-7.511 6.626-10.025 11.138-2.513 4.512-3.77 9.853-3.77 16.022 0 5.597 1.115 10.252 3.342 13.965 2.228 3.712 5.198 6.74 8.91 9.081 3.713 2.342 7.911 4.227 12.595 5.655a194.641 194.641 0 0014.308 3.77c4.855 1.085 9.624 2.142 14.308 3.17 4.683 1.028 8.881 2.37 12.594 4.027 3.713 1.656 6.683 3.798 8.91 6.425 2.228 2.628 3.342 6.055 3.342 10.281 0 4.456-.914 8.111-2.742 10.967a19.953 19.953 0 01-7.197 6.768c-2.97 1.657-6.311 2.828-10.024 3.513a60.771 60.771 0 01-11.052 1.028c-4.57 0-9.025-.571-13.366-1.713-4.34-1.143-8.139-2.913-11.394-5.312-3.256-2.4-5.884-5.455-7.883-9.168-1.999-3.712-2.998-8.139-2.998-13.28H15c0 7.426 1.342 13.852 4.027 19.278 2.684 5.426 6.34 9.881 10.966 13.365 4.627 3.484 9.996 6.083 16.107 7.797 6.112 1.713 12.595 2.57 19.449 2.57 5.597 0 11.223-.657 16.878-1.97 5.655-1.314 10.767-3.428 15.336-6.34 4.57-2.914 8.31-6.683 11.224-11.31 2.913-4.626 4.37-10.195 4.37-16.707 0-6.054-1.115-11.08-3.342-15.079-2.228-3.998-5.198-7.31-8.91-9.938-3.713-2.627-7.911-4.712-12.595-6.254a170.83 170.83 0 00-14.308-4.027 549.669 549.669 0 00-14.308-3.17c-4.683-.971-8.881-2.2-12.594-3.684-3.713-1.485-6.683-3.399-8.91-5.74-2.228-2.342-3.342-5.398-3.342-9.168 0-3.998.771-7.34 2.313-10.024 1.543-2.685 3.599-4.826 6.17-6.426 2.57-1.599 5.51-2.741 8.824-3.427a49.767 49.767 0 0110.11-1.028c8.453 0 15.393 1.97 20.819 5.912 5.426 3.94 8.596 10.31 9.51 19.106z\"/><path d=\"M5 54h118v16H5z\"/></g></svg>"
+ },
+ "$:/core/images/subscript": {
+ "title": "$:/core/images/subscript",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-subscript tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M2.272 16h19.91l21.649 33.675L66.414 16h18.708L53.585 61.969l33.809 49.443H67.082L43.296 74.93l-24.187 36.48H0L33.808 61.97 2.272 16zM127.91 128.412H85.328c.059-5.168 1.306-9.681 3.741-13.542 2.435-3.86 5.761-7.216 9.978-10.066a112.388 112.388 0 016.325-4.321 50.09 50.09 0 006.058-4.499c1.841-1.603 3.356-3.34 4.543-5.211 1.188-1.871 1.812-4.024 1.871-6.46 0-1.128-.133-2.33-.4-3.607a9.545 9.545 0 00-1.56-3.564c-.772-1.098-1.84-2.019-3.207-2.761-1.366-.743-3.148-1.114-5.345-1.114-2.02 0-3.697.4-5.033 1.203-1.337.801-2.406 1.9-3.208 3.296-.801 1.396-1.395 3.044-1.781 4.944-.386 1.9-.609 3.95-.668 6.147H86.486c0-3.445.46-6.637 1.38-9.577.921-2.94 2.302-5.478 4.143-7.617 1.841-2.138 4.083-3.815 6.726-5.033 2.643-1.217 5.716-1.826 9.22-1.826 3.802 0 6.979.623 9.533 1.87 2.554 1.248 4.617 2.822 6.191 4.722 1.574 1.9 2.688 3.965 3.341 6.192.653 2.227.98 4.35.98 6.37 0 2.494-.386 4.75-1.158 6.77a21.803 21.803 0 01-3.118 5.568 31.516 31.516 0 01-4.454 4.677 66.788 66.788 0 01-5.167 4.009 139.198 139.198 0 01-5.346 3.563 79.237 79.237 0 00-4.944 3.386c-1.514 1.128-2.836 2.3-3.964 3.518-1.129 1.218-1.9 2.51-2.317 3.876h30.379v9.087z\"/></svg>"
+ },
+ "$:/core/images/superscript": {
+ "title": "$:/core/images/superscript",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-superscript tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M2.272 16h19.91l21.649 33.675L66.414 16h18.708L53.585 61.969l33.809 49.443H67.082L43.296 74.93l-24.187 36.48H0L33.808 61.97 2.272 16zM127.91 63.412H85.328c.059-5.168 1.306-9.681 3.741-13.542 2.435-3.86 5.761-7.216 9.978-10.066a112.388 112.388 0 016.325-4.321 50.09 50.09 0 006.058-4.499c1.841-1.603 3.356-3.34 4.543-5.211 1.188-1.871 1.812-4.024 1.871-6.46 0-1.128-.133-2.33-.4-3.607a9.545 9.545 0 00-1.56-3.564c-.772-1.098-1.84-2.019-3.207-2.761-1.366-.743-3.148-1.114-5.345-1.114-2.02 0-3.697.4-5.033 1.203-1.337.801-2.406 1.9-3.208 3.296-.801 1.396-1.395 3.044-1.781 4.944-.386 1.9-.609 3.95-.668 6.147H86.486c0-3.445.46-6.637 1.38-9.577.921-2.94 2.302-5.478 4.143-7.617 1.841-2.138 4.083-3.815 6.726-5.033 2.643-1.217 5.716-1.826 9.22-1.826 3.802 0 6.979.623 9.533 1.87 2.554 1.248 4.617 2.822 6.191 4.722 1.574 1.9 2.688 3.965 3.341 6.192.653 2.227.98 4.35.98 6.37 0 2.494-.386 4.75-1.158 6.77a21.803 21.803 0 01-3.118 5.568 31.516 31.516 0 01-4.454 4.677 66.788 66.788 0 01-5.167 4.009 139.198 139.198 0 01-5.346 3.563 79.237 79.237 0 00-4.944 3.386c-1.514 1.128-2.836 2.3-3.964 3.518-1.129 1.218-1.9 2.51-2.317 3.876h30.379v9.087z\"/></svg>"
+ },
+ "$:/core/images/tag-button": {
+ "title": "$:/core/images/tag-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-tag-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M18.164 47.66l.004 4.105c.003 3.823 2.19 9.097 4.885 11.792l61.85 61.85c2.697 2.697 7.068 2.69 9.769-.01L125.767 94.3a6.903 6.903 0 00.01-9.77L63.928 22.683c-2.697-2.697-7.976-4.88-11.796-4.881l-27.076-.007a6.902 6.902 0 00-6.91 6.91l.008 9.96.287.033c3.73.411 8.489-.044 13.365-1.153a9.702 9.702 0 0111.14-3.662l.291-.13.128.285a9.7 9.7 0 013.3 2.17c3.796 3.796 3.801 9.945.012 13.734-3.618 3.618-9.386 3.777-13.204.482-5.365 1.122-10.674 1.596-15.309 1.237z\"/><path d=\"M47.633 39.532l.023.051c-9.689 4.356-21.584 6.799-30.396 5.828C5.273 44.089-1.028 36.43 2.443 24.078 5.562 12.976 14.3 4.361 24.047 1.548c10.68-3.083 19.749 1.968 19.749 13.225h-8.623c0-4.859-3.078-6.573-8.735-4.94-6.91 1.995-13.392 8.383-15.694 16.577-1.915 6.818.417 9.653 7.46 10.43 7.126.785 17.531-1.352 25.917-5.121l.027.06.036-.017c1.76-.758 6.266 6.549 3.524 7.74a2.8 2.8 0 01-.075.03z\"/></g></svg>"
+ },
+ "$:/core/images/theme-button": {
+ "title": "$:/core/images/theme-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-theme-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M55.854 66.945a122.626 122.626 0 01-3.9-4.819c-11.064-14.548-16.645-6.888-22.96 0-6.315 6.888 1.664 12.47-4.33 17.335-5.993 4.866-5.623 6.552-15.737-2.35-10.115-8.9-10.815-11.351-6.172-16.43 4.644-5.08 8.524 2.918 18.01-6.108 9.485-9.026 1.517-17.026 1.517-17.026S42.03-2.824 68.42.157c26.39 2.982-9.984-3.86-19.031 27.801-3.874 13.556.72 10.362 8.066 16.087 1.707 1.33 6.428 4.732 12.671 9.318-6.129 5.879-11.157 10.669-14.273 13.582zm11.641 12.947c16.013 17.036 37.742 37.726 45.117 40.42 10.432 3.813 15.388-3.141 15.388-14.79 0-7.151-23.83-26.542-43.924-41.769-7.408 7.156-13.376 12.953-16.58 16.139z\"/><path d=\"M11.069 109.828L46.31 74.587a3.56 3.56 0 115.037-5.032l15.098 15.098a3.56 3.56 0 11-5.032 5.037l-35.24 35.241c-4.171 4.17-10.933 4.17-15.104 0-4.17-4.17-4.17-10.933 0-15.103zM124.344 6.622l5.034 5.034-7.49 12.524-7.613 2.58L61.413 79.62l-5.034-5.034 52.861-52.862 2.58-7.614 12.524-7.49z\"/></g></svg>"
+ },
+ "$:/core/images/timestamp-off": {
+ "title": "$:/core/images/timestamp-off",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-timestamp-off tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10a5 5 0 010-10H66.69a5 5 0 015 5c.006 2.757-2.238 5-5 5H49.705z\"/><path d=\"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\"/></g></svg>"
+ },
+ "$:/core/images/timestamp-on": {
+ "title": "$:/core/images/timestamp-on",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-timestamp-on tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10a5 5 0 010-10H66.69a5 5 0 015 5c.006 2.757-2.238 5-5 5H49.705z\"/><path d=\"M13.41 27.178a5.005 5.005 0 01-7.045-.613 5.008 5.008 0 01.616-7.047l9.95-8.348a5 5 0 016.429 7.661l-9.95 8.348zm89.573 0a5.005 5.005 0 007.045-.613 5.008 5.008 0 00-.616-7.047l-9.95-8.348a5 5 0 00-6.428 7.661l9.95 8.348zM65.097 71.072c0 3.826-3.09 6.928-6.897 6.928-3.804.006-6.9-3.102-6.903-6.928 0 0 4.76-39.072 6.903-39.072s6.897 39.072 6.897 39.072z\"/></g></svg>"
+ },
+ "$:/core/images/tip": {
+ "title": "$:/core/images/tip",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-tip tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M64 128.242c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64-35.346 0-64 28.654-64 64 0 35.346 28.654 64 64 64zm11.936-36.789c-.624 4.129-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349C54.33 94.05 58.824 95.82 64 95.82c5.175 0 9.67-1.769 11.936-4.366zm0 4.492c-.624 4.13-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zm0 4.456c-.624 4.129-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zm0 4.492c-.624 4.13-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zM64.3 24.242c11.618 0 23.699 7.82 23.699 24.2S75.92 71.754 75.92 83.576c0 5.873-5.868 9.26-11.92 9.26s-12.027-3.006-12.027-9.26C51.973 71.147 40 65.47 40 48.442s12.683-24.2 24.301-24.2z\"/></svg>"
+ },
+ "$:/core/images/transcludify": {
+ "title": "$:/core/images/transcludify",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-transcludify-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M0 59.482c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 002.75-.932 6.762 6.762 0 002.306-1.907c.651-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 00-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 00-2.75-1.02C1.36 67.377.591 67.288 0 67.288v-7.806zm24.66 0c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 002.75-.932 6.762 6.762 0 002.306-1.907c.65-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 00-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 00-2.75-1.02c-.946-.177-1.715-.266-2.306-.266v-7.806zm43.965-3.538L80.6 52.041l2.306 7.097-12.063 3.903 7.628 10.378-6.12 4.435-7.63-10.467-7.45 10.201-5.943-4.524 7.628-10.023-12.152-4.17 2.306-7.096 12.064 4.17V43.347h7.451v12.596zm34.425 11.344c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 00-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 00.71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 00-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 002.262 2.084 8.868 8.868 0 002.75 1.02c.946.177 1.745.266 2.395.266v7.806zm24.66 0c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 00-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 00.71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 00-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 002.262 2.084 8.868 8.868 0 002.75 1.02c.946.177 1.745.266 2.395.266v7.806z\"/></svg>"
+ },
+ "$:/core/images/twitter": {
+ "title": "$:/core/images/twitter",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-twitter tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M41.626 115.803A73.376 73.376 0 012 104.235c2.022.238 4.08.36 6.166.36 12.111 0 23.258-4.117 32.105-11.023-11.312-.208-20.859-7.653-24.148-17.883a25.98 25.98 0 0011.674-.441C15.971 72.881 7.061 62.474 7.061 49.997c0-.108 0-.216.002-.323a25.824 25.824 0 0011.709 3.22c-6.936-4.617-11.5-12.5-11.5-21.433 0-4.719 1.274-9.142 3.5-12.945 12.75 15.579 31.797 25.83 53.281 26.904-.44-1.884-.67-3.85-.67-5.868 0-14.22 11.575-25.75 25.852-25.75a25.865 25.865 0 0118.869 8.132 51.892 51.892 0 0016.415-6.248c-1.93 6.012-6.029 11.059-11.366 14.246A51.844 51.844 0 00128 25.878a52.428 52.428 0 01-12.9 13.33c.05 1.104.075 2.214.075 3.33 0 34.028-26 73.265-73.549 73.265\"/></svg>"
+ },
+ "$:/core/images/underline": {
+ "title": "$:/core/images/underline",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-underline tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M7 117.421h114.248V128H7v-10.579zm97.871-18.525V0h-16.26v55.856c0 4.463-.605 8.576-1.816 12.338-1.212 3.762-3.03 7.046-5.452 9.851-2.423 2.806-5.452 4.974-9.086 6.504-3.635 1.53-7.939 2.296-12.912 2.296-6.25 0-11.159-1.786-14.73-5.356-3.57-3.571-5.356-8.417-5.356-14.538V0H23v65.038c0 5.356.542 10.234 1.626 14.633 1.084 4.4 2.965 8.194 5.643 11.382 2.678 3.188 6.185 5.643 10.52 7.365 4.337 1.721 9.756 2.582 16.26 2.582 7.27 0 13.582-1.435 18.938-4.304 5.356-2.87 9.755-7.365 13.199-13.486h.382v15.686h15.303z\"/></svg>"
+ },
+ "$:/core/images/unfold-all-button": {
+ "title": "$:/core/images/unfold-all-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-unfold-all tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"128\" height=\"16\" rx=\"8\"/><rect width=\"128\" height=\"16\" y=\"64\" rx=\"8\"/><path d=\"M63.945 60.624c-2.05 0-4.101-.78-5.666-2.345L35.662 35.662c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L63.94 41.314l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.603 58.279a7.986 7.986 0 01-5.663 2.346zM64.004 124.565c-2.05 0-4.102-.78-5.666-2.345L35.721 99.603c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.191-3.122 11.318.005L64 105.255l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.662 122.22a7.986 7.986 0 01-5.663 2.346z\"/></g></svg>"
+ },
+ "$:/core/images/unfold-button": {
+ "title": "$:/core/images/unfold-button",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-unfold tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"128\" height=\"16\" rx=\"8\"/><path d=\"M63.945 63.624c-2.05 0-4.101-.78-5.666-2.345L35.662 38.662c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L63.94 44.314l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.603 61.279a7.986 7.986 0 01-5.663 2.346zM64.004 105.682c-2.05.001-4.102-.78-5.666-2.344L35.721 80.721c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.191-3.122 11.318.005L64 86.373l16.966-16.966c3.124-3.125 8.194-3.13 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319l-22.617 22.617a7.986 7.986 0 01-5.663 2.346z\"/></g></svg>"
+ },
+ "$:/core/images/unlocked-padlock": {
+ "title": "$:/core/images/unlocked-padlock",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-unlocked-padlock tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M48.627 64H105v32.01C105 113.674 90.674 128 73.001 128H56C38.318 128 24 113.677 24 96.01V64h6.136c-10.455-12.651-27.364-35.788-4.3-55.142 24.636-20.672 45.835 4.353 55.777 16.201 9.943 11.85-2.676 22.437-12.457 9.892-9.78-12.545-21.167-24.146-33.207-14.043-12.041 10.104-1.757 22.36 8.813 34.958 2.467 2.94 3.641 5.732 3.865 8.134zm19.105 28.364A8.503 8.503 0 0064.5 76a8.5 8.5 0 00-3.498 16.25l-5.095 22.77H72.8l-5.07-22.656z\"/></svg>"
+ },
+ "$:/core/images/up-arrow": {
+ "title": "$:/core/images/up-arrow",
+ "created": "20150316000544368",
+ "modified": "20150316000831867",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-up-arrow tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M63.892.281c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.104 3.092-11.196 0L63.894 19.393 13.513 69.774a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l55.98-55.98A7.892 7.892 0 0163.893.28z\"/></svg>"
+ },
+ "$:/core/images/video": {
+ "title": "$:/core/images/video",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-video tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M64 12c-34.91 0-55.273 2.917-58.182 5.833C2.91 20.75 0 41.167 0 64.5c0 23.333 2.91 43.75 5.818 46.667C8.728 114.083 29.091 117 64 117c34.91 0 55.273-2.917 58.182-5.833C125.09 108.25 128 87.833 128 64.5c0-23.333-2.91-43.75-5.818-46.667C119.272 14.917 98.909 12 64 12zm-9.084 32.618c-3.813-2.542-6.905-.879-6.905 3.698v31.368c0 4.585 3.099 6.235 6.905 3.698l22.168-14.779c3.813-2.542 3.806-6.669 0-9.206L54.916 44.618z\"/></svg>"
+ },
+ "$:/core/images/warning": {
+ "title": "$:/core/images/warning",
+ "tags": "$:/tags/Image",
+ "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-warning tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M57.072 11c3.079-5.333 10.777-5.333 13.856 0l55.426 96c3.079 5.333-.77 12-6.928 12H8.574c-6.158 0-10.007-6.667-6.928-12l55.426-96zM64 37c-4.418 0-8 3.582-8 7.994v28.012C56 77.421 59.59 81 64 81c4.418 0 8-3.582 8-7.994V44.994C72 40.579 68.41 37 64 37zm0 67a8 8 0 100-16 8 8 0 000 16z\"/></svg>"
+ },
+ "$:/language/Buttons/AdvancedSearch/Caption": {
+ "title": "$:/language/Buttons/AdvancedSearch/Caption",
+ "text": "advanced search"
+ },
+ "$:/language/Buttons/AdvancedSearch/Hint": {
+ "title": "$:/language/Buttons/AdvancedSearch/Hint",
+ "text": "Advanced search"
+ },
+ "$:/language/Buttons/Cancel/Caption": {
+ "title": "$:/language/Buttons/Cancel/Caption",
+ "text": "cancel"
+ },
+ "$:/language/Buttons/Cancel/Hint": {
+ "title": "$:/language/Buttons/Cancel/Hint",
+ "text": "Discard changes to this tiddler"
+ },
+ "$:/language/Buttons/Clone/Caption": {
+ "title": "$:/language/Buttons/Clone/Caption",
+ "text": "clone"
+ },
+ "$:/language/Buttons/Clone/Hint": {
+ "title": "$:/language/Buttons/Clone/Hint",
+ "text": "Clone this tiddler"
+ },
+ "$:/language/Buttons/Close/Caption": {
+ "title": "$:/language/Buttons/Close/Caption",
+ "text": "close"
+ },
+ "$:/language/Buttons/Close/Hint": {
+ "title": "$:/language/Buttons/Close/Hint",
+ "text": "Close this tiddler"
+ },
+ "$:/language/Buttons/CloseAll/Caption": {
+ "title": "$:/language/Buttons/CloseAll/Caption",
+ "text": "close all"
+ },
+ "$:/language/Buttons/CloseAll/Hint": {
+ "title": "$:/language/Buttons/CloseAll/Hint",
+ "text": "Close all tiddlers"
+ },
+ "$:/language/Buttons/CloseOthers/Caption": {
+ "title": "$:/language/Buttons/CloseOthers/Caption",
+ "text": "close others"
+ },
+ "$:/language/Buttons/CloseOthers/Hint": {
+ "title": "$:/language/Buttons/CloseOthers/Hint",
+ "text": "Close other tiddlers"
+ },
+ "$:/language/Buttons/ControlPanel/Caption": {
+ "title": "$:/language/Buttons/ControlPanel/Caption",
+ "text": "control panel"
+ },
+ "$:/language/Buttons/ControlPanel/Hint": {
+ "title": "$:/language/Buttons/ControlPanel/Hint",
+ "text": "Open control panel"
+ },
+ "$:/language/Buttons/CopyToClipboard/Caption": {
+ "title": "$:/language/Buttons/CopyToClipboard/Caption",
+ "text": "copy to clipboard"
+ },
+ "$:/language/Buttons/CopyToClipboard/Hint": {
+ "title": "$:/language/Buttons/CopyToClipboard/Hint",
+ "text": "Copy this text to the clipboard"
+ },
+ "$:/language/Buttons/Delete/Caption": {
+ "title": "$:/language/Buttons/Delete/Caption",
+ "text": "delete"
+ },
+ "$:/language/Buttons/Delete/Hint": {
+ "title": "$:/language/Buttons/Delete/Hint",
+ "text": "Delete this tiddler"
+ },
+ "$:/language/Buttons/Edit/Caption": {
+ "title": "$:/language/Buttons/Edit/Caption",
+ "text": "edit"
+ },
+ "$:/language/Buttons/Edit/Hint": {
+ "title": "$:/language/Buttons/Edit/Hint",
+ "text": "Edit this tiddler"
+ },
+ "$:/language/Buttons/Encryption/Caption": {
+ "title": "$:/language/Buttons/Encryption/Caption",
+ "text": "encryption"
+ },
+ "$:/language/Buttons/Encryption/Hint": {
+ "title": "$:/language/Buttons/Encryption/Hint",
+ "text": "Set or clear a password for saving this wiki"
+ },
+ "$:/language/Buttons/Encryption/ClearPassword/Caption": {
+ "title": "$:/language/Buttons/Encryption/ClearPassword/Caption",
+ "text": "clear password"
+ },
+ "$:/language/Buttons/Encryption/ClearPassword/Hint": {
+ "title": "$:/language/Buttons/Encryption/ClearPassword/Hint",
+ "text": "Clear the password and save this wiki without encryption"
+ },
+ "$:/language/Buttons/Encryption/SetPassword/Caption": {
+ "title": "$:/language/Buttons/Encryption/SetPassword/Caption",
+ "text": "set password"
+ },
+ "$:/language/Buttons/Encryption/SetPassword/Hint": {
+ "title": "$:/language/Buttons/Encryption/SetPassword/Hint",
+ "text": "Set a password for saving this wiki with encryption"
+ },
+ "$:/language/Buttons/ExportPage/Caption": {
+ "title": "$:/language/Buttons/ExportPage/Caption",
+ "text": "export all"
+ },
+ "$:/language/Buttons/ExportPage/Hint": {
+ "title": "$:/language/Buttons/ExportPage/Hint",
+ "text": "Export all tiddlers"
+ },
+ "$:/language/Buttons/ExportTiddler/Caption": {
+ "title": "$:/language/Buttons/ExportTiddler/Caption",
+ "text": "export tiddler"
+ },
+ "$:/language/Buttons/ExportTiddler/Hint": {
+ "title": "$:/language/Buttons/ExportTiddler/Hint",
+ "text": "Export tiddler"
+ },
+ "$:/language/Buttons/ExportTiddlers/Caption": {
+ "title": "$:/language/Buttons/ExportTiddlers/Caption",
+ "text": "export tiddlers"
+ },
+ "$:/language/Buttons/ExportTiddlers/Hint": {
+ "title": "$:/language/Buttons/ExportTiddlers/Hint",
+ "text": "Export tiddlers"
+ },
+ "$:/language/Buttons/SidebarSearch/Hint": {
+ "title": "$:/language/Buttons/SidebarSearch/Hint",
+ "text": "Select the sidebar search field"
+ },
+ "$:/language/Buttons/Fold/Caption": {
+ "title": "$:/language/Buttons/Fold/Caption",
+ "text": "fold tiddler"
+ },
+ "$:/language/Buttons/Fold/Hint": {
+ "title": "$:/language/Buttons/Fold/Hint",
+ "text": "Fold the body of this tiddler"
+ },
+ "$:/language/Buttons/Fold/FoldBar/Caption": {
+ "title": "$:/language/Buttons/Fold/FoldBar/Caption",
+ "text": "fold-bar"
+ },
+ "$:/language/Buttons/Fold/FoldBar/Hint": {
+ "title": "$:/language/Buttons/Fold/FoldBar/Hint",
+ "text": "Optional bars to fold and unfold tiddlers"
+ },
+ "$:/language/Buttons/Unfold/Caption": {
+ "title": "$:/language/Buttons/Unfold/Caption",
+ "text": "unfold tiddler"
+ },
+ "$:/language/Buttons/Unfold/Hint": {
+ "title": "$:/language/Buttons/Unfold/Hint",
+ "text": "Unfold the body of this tiddler"
+ },
+ "$:/language/Buttons/FoldOthers/Caption": {
+ "title": "$:/language/Buttons/FoldOthers/Caption",
+ "text": "fold other tiddlers"
+ },
+ "$:/language/Buttons/FoldOthers/Hint": {
+ "title": "$:/language/Buttons/FoldOthers/Hint",
+ "text": "Fold the bodies of other opened tiddlers"
+ },
+ "$:/language/Buttons/FoldAll/Caption": {
+ "title": "$:/language/Buttons/FoldAll/Caption",
+ "text": "fold all tiddlers"
+ },
+ "$:/language/Buttons/FoldAll/Hint": {
+ "title": "$:/language/Buttons/FoldAll/Hint",
+ "text": "Fold the bodies of all opened tiddlers"
+ },
+ "$:/language/Buttons/UnfoldAll/Caption": {
+ "title": "$:/language/Buttons/UnfoldAll/Caption",
+ "text": "unfold all tiddlers"
+ },
+ "$:/language/Buttons/UnfoldAll/Hint": {
+ "title": "$:/language/Buttons/UnfoldAll/Hint",
+ "text": "Unfold the bodies of all opened tiddlers"
+ },
+ "$:/language/Buttons/FullScreen/Caption": {
+ "title": "$:/language/Buttons/FullScreen/Caption",
+ "text": "full-screen"
+ },
+ "$:/language/Buttons/FullScreen/Hint": {
+ "title": "$:/language/Buttons/FullScreen/Hint",
+ "text": "Enter or leave full-screen mode"
+ },
+ "$:/language/Buttons/Help/Caption": {
+ "title": "$:/language/Buttons/Help/Caption",
+ "text": "help"
+ },
+ "$:/language/Buttons/Help/Hint": {
+ "title": "$:/language/Buttons/Help/Hint",
+ "text": "Show help panel"
+ },
+ "$:/language/Buttons/Import/Caption": {
+ "title": "$:/language/Buttons/Import/Caption",
+ "text": "import"
+ },
+ "$:/language/Buttons/Import/Hint": {
+ "title": "$:/language/Buttons/Import/Hint",
+ "text": "Import many types of file including text, image, TiddlyWiki or JSON"
+ },
+ "$:/language/Buttons/Info/Caption": {
+ "title": "$:/language/Buttons/Info/Caption",
+ "text": "info"
+ },
+ "$:/language/Buttons/Info/Hint": {
+ "title": "$:/language/Buttons/Info/Hint",
+ "text": "Show information for this tiddler"
+ },
+ "$:/language/Buttons/Home/Caption": {
+ "title": "$:/language/Buttons/Home/Caption",
+ "text": "home"
+ },
+ "$:/language/Buttons/Home/Hint": {
+ "title": "$:/language/Buttons/Home/Hint",
+ "text": "Open the default tiddlers"
+ },
+ "$:/language/Buttons/Language/Caption": {
+ "title": "$:/language/Buttons/Language/Caption",
+ "text": "language"
+ },
+ "$:/language/Buttons/Language/Hint": {
+ "title": "$:/language/Buttons/Language/Hint",
+ "text": "Choose the user interface language"
+ },
+ "$:/language/Buttons/Manager/Caption": {
+ "title": "$:/language/Buttons/Manager/Caption",
+ "text": "tiddler manager"
+ },
+ "$:/language/Buttons/Manager/Hint": {
+ "title": "$:/language/Buttons/Manager/Hint",
+ "text": "Open tiddler manager"
+ },
+ "$:/language/Buttons/More/Caption": {
+ "title": "$:/language/Buttons/More/Caption",
+ "text": "more"
+ },
+ "$:/language/Buttons/More/Hint": {
+ "title": "$:/language/Buttons/More/Hint",
+ "text": "More actions"
+ },
+ "$:/language/Buttons/NewHere/Caption": {
+ "title": "$:/language/Buttons/NewHere/Caption",
+ "text": "new here"
+ },
+ "$:/language/Buttons/NewHere/Hint": {
+ "title": "$:/language/Buttons/NewHere/Hint",
+ "text": "Create a new tiddler tagged with this one"
+ },
+ "$:/language/Buttons/NewJournal/Caption": {
+ "title": "$:/language/Buttons/NewJournal/Caption",
+ "text": "new journal"
+ },
+ "$:/language/Buttons/NewJournal/Hint": {
+ "title": "$:/language/Buttons/NewJournal/Hint",
+ "text": "Create a new journal tiddler"
+ },
+ "$:/language/Buttons/NewJournalHere/Caption": {
+ "title": "$:/language/Buttons/NewJournalHere/Caption",
+ "text": "new journal here"
+ },
+ "$:/language/Buttons/NewJournalHere/Hint": {
+ "title": "$:/language/Buttons/NewJournalHere/Hint",
+ "text": "Create a new journal tiddler tagged with this one"
+ },
+ "$:/language/Buttons/NewImage/Caption": {
+ "title": "$:/language/Buttons/NewImage/Caption",
+ "text": "new image"
+ },
+ "$:/language/Buttons/NewImage/Hint": {
+ "title": "$:/language/Buttons/NewImage/Hint",
+ "text": "Create a new image tiddler"
+ },
+ "$:/language/Buttons/NewMarkdown/Caption": {
+ "title": "$:/language/Buttons/NewMarkdown/Caption",
+ "text": "new Markdown tiddler"
+ },
+ "$:/language/Buttons/NewMarkdown/Hint": {
+ "title": "$:/language/Buttons/NewMarkdown/Hint",
+ "text": "Create a new Markdown tiddler"
+ },
+ "$:/language/Buttons/NewTiddler/Caption": {
+ "title": "$:/language/Buttons/NewTiddler/Caption",
+ "text": "new tiddler"
+ },
+ "$:/language/Buttons/NewTiddler/Hint": {
+ "title": "$:/language/Buttons/NewTiddler/Hint",
+ "text": "Create a new tiddler"
+ },
+ "$:/language/Buttons/OpenWindow/Caption": {
+ "title": "$:/language/Buttons/OpenWindow/Caption",
+ "text": "open in new window"
+ },
+ "$:/language/Buttons/OpenWindow/Hint": {
+ "title": "$:/language/Buttons/OpenWindow/Hint",
+ "text": "Open tiddler in new window"
+ },
+ "$:/language/Buttons/Palette/Caption": {
+ "title": "$:/language/Buttons/Palette/Caption",
+ "text": "palette"
+ },
+ "$:/language/Buttons/Palette/Hint": {
+ "title": "$:/language/Buttons/Palette/Hint",
+ "text": "Choose the colour palette"
+ },
+ "$:/language/Buttons/Permalink/Caption": {
+ "title": "$:/language/Buttons/Permalink/Caption",
+ "text": "permalink"
+ },
+ "$:/language/Buttons/Permalink/Hint": {
+ "title": "$:/language/Buttons/Permalink/Hint",
+ "text": "Set browser address bar to a direct link to this tiddler"
+ },
+ "$:/language/Buttons/Permaview/Caption": {
+ "title": "$:/language/Buttons/Permaview/Caption",
+ "text": "permaview"
+ },
+ "$:/language/Buttons/Permaview/Hint": {
+ "title": "$:/language/Buttons/Permaview/Hint",
+ "text": "Set browser address bar to a direct link to all the tiddlers in this story"
+ },
+ "$:/language/Buttons/Print/Caption": {
+ "title": "$:/language/Buttons/Print/Caption",
+ "text": "print page"
+ },
+ "$:/language/Buttons/Print/Hint": {
+ "title": "$:/language/Buttons/Print/Hint",
+ "text": "Print the current page"
+ },
+ "$:/language/Buttons/Refresh/Caption": {
+ "title": "$:/language/Buttons/Refresh/Caption",
+ "text": "refresh"
+ },
+ "$:/language/Buttons/Refresh/Hint": {
+ "title": "$:/language/Buttons/Refresh/Hint",
+ "text": "Perform a full refresh of the wiki"
+ },
+ "$:/language/Buttons/Save/Caption": {
+ "title": "$:/language/Buttons/Save/Caption",
+ "text": "ok"
+ },
+ "$:/language/Buttons/Save/Hint": {
+ "title": "$:/language/Buttons/Save/Hint",
+ "text": "Confirm changes to this tiddler"
+ },
+ "$:/language/Buttons/SaveWiki/Caption": {
+ "title": "$:/language/Buttons/SaveWiki/Caption",
+ "text": "save changes"
+ },
+ "$:/language/Buttons/SaveWiki/Hint": {
+ "title": "$:/language/Buttons/SaveWiki/Hint",
+ "text": "Save changes"
+ },
+ "$:/language/Buttons/StoryView/Caption": {
+ "title": "$:/language/Buttons/StoryView/Caption",
+ "text": "storyview"
+ },
+ "$:/language/Buttons/StoryView/Hint": {
+ "title": "$:/language/Buttons/StoryView/Hint",
+ "text": "Choose the story visualisation"
+ },
+ "$:/language/Buttons/HideSideBar/Caption": {
+ "title": "$:/language/Buttons/HideSideBar/Caption",
+ "text": "hide sidebar"
+ },
+ "$:/language/Buttons/HideSideBar/Hint": {
+ "title": "$:/language/Buttons/HideSideBar/Hint",
+ "text": "Hide sidebar"
+ },
+ "$:/language/Buttons/ShowSideBar/Caption": {
+ "title": "$:/language/Buttons/ShowSideBar/Caption",
+ "text": "show sidebar"
+ },
+ "$:/language/Buttons/ShowSideBar/Hint": {
+ "title": "$:/language/Buttons/ShowSideBar/Hint",
+ "text": "Show sidebar"
+ },
+ "$:/language/Buttons/TagManager/Caption": {
+ "title": "$:/language/Buttons/TagManager/Caption",
+ "text": "tag manager"
+ },
+ "$:/language/Buttons/TagManager/Hint": {
+ "title": "$:/language/Buttons/TagManager/Hint",
+ "text": "Open tag manager"
+ },
+ "$:/language/Buttons/Timestamp/Caption": {
+ "title": "$:/language/Buttons/Timestamp/Caption",
+ "text": "timestamps"
+ },
+ "$:/language/Buttons/Timestamp/Hint": {
+ "title": "$:/language/Buttons/Timestamp/Hint",
+ "text": "Choose whether modifications update timestamps"
+ },
+ "$:/language/Buttons/Timestamp/On/Caption": {
+ "title": "$:/language/Buttons/Timestamp/On/Caption",
+ "text": "timestamps are on"
+ },
+ "$:/language/Buttons/Timestamp/On/Hint": {
+ "title": "$:/language/Buttons/Timestamp/On/Hint",
+ "text": "Update timestamps when tiddlers are modified"
+ },
+ "$:/language/Buttons/Timestamp/Off/Caption": {
+ "title": "$:/language/Buttons/Timestamp/Off/Caption",
+ "text": "timestamps are off"
+ },
+ "$:/language/Buttons/Timestamp/Off/Hint": {
+ "title": "$:/language/Buttons/Timestamp/Off/Hint",
+ "text": "Don't update timestamps when tiddlers are modified"
+ },
+ "$:/language/Buttons/Theme/Caption": {
+ "title": "$:/language/Buttons/Theme/Caption",
+ "text": "theme"
+ },
+ "$:/language/Buttons/Theme/Hint": {
+ "title": "$:/language/Buttons/Theme/Hint",
+ "text": "Choose the display theme"
+ },
+ "$:/language/Buttons/Bold/Caption": {
+ "title": "$:/language/Buttons/Bold/Caption",
+ "text": "bold"
+ },
+ "$:/language/Buttons/Bold/Hint": {
+ "title": "$:/language/Buttons/Bold/Hint",
+ "text": "Apply bold formatting to selection"
+ },
+ "$:/language/Buttons/Clear/Caption": {
+ "title": "$:/language/Buttons/Clear/Caption",
+ "text": "clear"
+ },
+ "$:/language/Buttons/Clear/Hint": {
+ "title": "$:/language/Buttons/Clear/Hint",
+ "text": "Clear image to solid colour"
+ },
+ "$:/language/Buttons/EditorHeight/Caption": {
+ "title": "$:/language/Buttons/EditorHeight/Caption",
+ "text": "editor height"
+ },
+ "$:/language/Buttons/EditorHeight/Caption/Auto": {
+ "title": "$:/language/Buttons/EditorHeight/Caption/Auto",
+ "text": "Automatically adjust height to fit content"
+ },
+ "$:/language/Buttons/EditorHeight/Caption/Fixed": {
+ "title": "$:/language/Buttons/EditorHeight/Caption/Fixed",
+ "text": "Fixed height:"
+ },
+ "$:/language/Buttons/EditorHeight/Hint": {
+ "title": "$:/language/Buttons/EditorHeight/Hint",
+ "text": "Choose the height of the text editor"
+ },
+ "$:/language/Buttons/Excise/Caption": {
+ "title": "$:/language/Buttons/Excise/Caption",
+ "text": "excise"
+ },
+ "$:/language/Buttons/Excise/Caption/Excise": {
+ "title": "$:/language/Buttons/Excise/Caption/Excise",
+ "text": "Perform excision"
+ },
+ "$:/language/Buttons/Excise/Caption/MacroName": {
+ "title": "$:/language/Buttons/Excise/Caption/MacroName",
+ "text": "Macro name:"
+ },
+ "$:/language/Buttons/Excise/Caption/NewTitle": {
+ "title": "$:/language/Buttons/Excise/Caption/NewTitle",
+ "text": "Title of new tiddler:"
+ },
+ "$:/language/Buttons/Excise/Caption/Replace": {
+ "title": "$:/language/Buttons/Excise/Caption/Replace",
+ "text": "Replace excised text with:"
+ },
+ "$:/language/Buttons/Excise/Caption/Replace/Macro": {
+ "title": "$:/language/Buttons/Excise/Caption/Replace/Macro",
+ "text": "macro"
+ },
+ "$:/language/Buttons/Excise/Caption/Replace/Link": {
+ "title": "$:/language/Buttons/Excise/Caption/Replace/Link",
+ "text": "link"
+ },
+ "$:/language/Buttons/Excise/Caption/Replace/Transclusion": {
+ "title": "$:/language/Buttons/Excise/Caption/Replace/Transclusion",
+ "text": "transclusion"
+ },
+ "$:/language/Buttons/Excise/Caption/Tag": {
+ "title": "$:/language/Buttons/Excise/Caption/Tag",
+ "text": "Tag new tiddler with the title of this tiddler"
+ },
+ "$:/language/Buttons/Excise/Caption/TiddlerExists": {
+ "title": "$:/language/Buttons/Excise/Caption/TiddlerExists",
+ "text": "Warning: tiddler already exists"
+ },
+ "$:/language/Buttons/Excise/Hint": {
+ "title": "$:/language/Buttons/Excise/Hint",
+ "text": "Excise the selected text into a new tiddler"
+ },
+ "$:/language/Buttons/Heading1/Caption": {
+ "title": "$:/language/Buttons/Heading1/Caption",
+ "text": "heading 1"
+ },
+ "$:/language/Buttons/Heading1/Hint": {
+ "title": "$:/language/Buttons/Heading1/Hint",
+ "text": "Apply heading level 1 formatting to lines containing selection"
+ },
+ "$:/language/Buttons/Heading2/Caption": {
+ "title": "$:/language/Buttons/Heading2/Caption",
+ "text": "heading 2"
+ },
+ "$:/language/Buttons/Heading2/Hint": {
+ "title": "$:/language/Buttons/Heading2/Hint",
+ "text": "Apply heading level 2 formatting to lines containing selection"
+ },
+ "$:/language/Buttons/Heading3/Caption": {
+ "title": "$:/language/Buttons/Heading3/Caption",
+ "text": "heading 3"
+ },
+ "$:/language/Buttons/Heading3/Hint": {
+ "title": "$:/language/Buttons/Heading3/Hint",
+ "text": "Apply heading level 3 formatting to lines containing selection"
+ },
+ "$:/language/Buttons/Heading4/Caption": {
+ "title": "$:/language/Buttons/Heading4/Caption",
+ "text": "heading 4"
+ },
+ "$:/language/Buttons/Heading4/Hint": {
+ "title": "$:/language/Buttons/Heading4/Hint",
+ "text": "Apply heading level 4 formatting to lines containing selection"
+ },
+ "$:/language/Buttons/Heading5/Caption": {
+ "title": "$:/language/Buttons/Heading5/Caption",
+ "text": "heading 5"
+ },
+ "$:/language/Buttons/Heading5/Hint": {
+ "title": "$:/language/Buttons/Heading5/Hint",
+ "text": "Apply heading level 5 formatting to lines containing selection"
+ },
+ "$:/language/Buttons/Heading6/Caption": {
+ "title": "$:/language/Buttons/Heading6/Caption",
+ "text": "heading 6"
+ },
+ "$:/language/Buttons/Heading6/Hint": {
+ "title": "$:/language/Buttons/Heading6/Hint",
+ "text": "Apply heading level 6 formatting to lines containing selection"
+ },
+ "$:/language/Buttons/Italic/Caption": {
+ "title": "$:/language/Buttons/Italic/Caption",
+ "text": "italic"
+ },
+ "$:/language/Buttons/Italic/Hint": {
+ "title": "$:/language/Buttons/Italic/Hint",
+ "text": "Apply italic formatting to selection"
+ },
+ "$:/language/Buttons/LineWidth/Caption": {
+ "title": "$:/language/Buttons/LineWidth/Caption",
+ "text": "line width"
+ },
+ "$:/language/Buttons/LineWidth/Hint": {
+ "title": "$:/language/Buttons/LineWidth/Hint",
+ "text": "Set line width for painting"
+ },
+ "$:/language/Buttons/Link/Caption": {
+ "title": "$:/language/Buttons/Link/Caption",
+ "text": "link"
+ },
+ "$:/language/Buttons/Link/Hint": {
+ "title": "$:/language/Buttons/Link/Hint",
+ "text": "Create wikitext link"
+ },
+ "$:/language/Buttons/Linkify/Caption": {
+ "title": "$:/language/Buttons/Linkify/Caption",
+ "text": "wikilink"
+ },
+ "$:/language/Buttons/Linkify/Hint": {
+ "title": "$:/language/Buttons/Linkify/Hint",
+ "text": "Wrap selection in square brackets"
+ },
+ "$:/language/Buttons/ListBullet/Caption": {
+ "title": "$:/language/Buttons/ListBullet/Caption",
+ "text": "bulleted list"
+ },
+ "$:/language/Buttons/ListBullet/Hint": {
+ "title": "$:/language/Buttons/ListBullet/Hint",
+ "text": "Apply bulleted list formatting to lines containing selection"
+ },
+ "$:/language/Buttons/ListNumber/Caption": {
+ "title": "$:/language/Buttons/ListNumber/Caption",
+ "text": "numbered list"
+ },
+ "$:/language/Buttons/ListNumber/Hint": {
+ "title": "$:/language/Buttons/ListNumber/Hint",
+ "text": "Apply numbered list formatting to lines containing selection"
+ },
+ "$:/language/Buttons/MonoBlock/Caption": {
+ "title": "$:/language/Buttons/MonoBlock/Caption",
+ "text": "monospaced block"
+ },
+ "$:/language/Buttons/MonoBlock/Hint": {
+ "title": "$:/language/Buttons/MonoBlock/Hint",
+ "text": "Apply monospaced block formatting to lines containing selection"
+ },
+ "$:/language/Buttons/MonoLine/Caption": {
+ "title": "$:/language/Buttons/MonoLine/Caption",
+ "text": "monospaced"
+ },
+ "$:/language/Buttons/MonoLine/Hint": {
+ "title": "$:/language/Buttons/MonoLine/Hint",
+ "text": "Apply monospaced character formatting to selection"
+ },
+ "$:/language/Buttons/Opacity/Caption": {
+ "title": "$:/language/Buttons/Opacity/Caption",
+ "text": "opacity"
+ },
+ "$:/language/Buttons/Opacity/Hint": {
+ "title": "$:/language/Buttons/Opacity/Hint",
+ "text": "Set painting opacity"
+ },
+ "$:/language/Buttons/Paint/Caption": {
+ "title": "$:/language/Buttons/Paint/Caption",
+ "text": "paint colour"
+ },
+ "$:/language/Buttons/Paint/Hint": {
+ "title": "$:/language/Buttons/Paint/Hint",
+ "text": "Set painting colour"
+ },
+ "$:/language/Buttons/Picture/Caption": {
+ "title": "$:/language/Buttons/Picture/Caption",
+ "text": "picture"
+ },
+ "$:/language/Buttons/Picture/Hint": {
+ "title": "$:/language/Buttons/Picture/Hint",
+ "text": "Insert picture"
+ },
+ "$:/language/Buttons/Preview/Caption": {
+ "title": "$:/language/Buttons/Preview/Caption",
+ "text": "preview"
+ },
+ "$:/language/Buttons/Preview/Hint": {
+ "title": "$:/language/Buttons/Preview/Hint",
+ "text": "Show preview pane"
+ },
+ "$:/language/Buttons/PreviewType/Caption": {
+ "title": "$:/language/Buttons/PreviewType/Caption",
+ "text": "preview type"
+ },
+ "$:/language/Buttons/PreviewType/Hint": {
+ "title": "$:/language/Buttons/PreviewType/Hint",
+ "text": "Choose preview type"
+ },
+ "$:/language/Buttons/Quote/Caption": {
+ "title": "$:/language/Buttons/Quote/Caption",
+ "text": "quote"
+ },
+ "$:/language/Buttons/Quote/Hint": {
+ "title": "$:/language/Buttons/Quote/Hint",
+ "text": "Apply quoted text formatting to lines containing selection"
+ },
+ "$:/language/Buttons/RotateLeft/Caption": {
+ "title": "$:/language/Buttons/RotateLeft/Caption",
+ "text": "rotate left"
+ },
+ "$:/language/Buttons/RotateLeft/Hint": {
+ "title": "$:/language/Buttons/RotateLeft/Hint",
+ "text": "Rotate image left by 90 degrees"
+ },
+ "$:/language/Buttons/Size/Caption": {
+ "title": "$:/language/Buttons/Size/Caption",
+ "text": "image size"
+ },
+ "$:/language/Buttons/Size/Caption/Height": {
+ "title": "$:/language/Buttons/Size/Caption/Height",
+ "text": "Height:"
+ },
+ "$:/language/Buttons/Size/Caption/Resize": {
+ "title": "$:/language/Buttons/Size/Caption/Resize",
+ "text": "Resize image"
+ },
+ "$:/language/Buttons/Size/Caption/Width": {
+ "title": "$:/language/Buttons/Size/Caption/Width",
+ "text": "Width:"
+ },
+ "$:/language/Buttons/Size/Hint": {
+ "title": "$:/language/Buttons/Size/Hint",
+ "text": "Set image size"
+ },
+ "$:/language/Buttons/Stamp/Caption": {
+ "title": "$:/language/Buttons/Stamp/Caption",
+ "text": "stamp"
+ },
+ "$:/language/Buttons/Stamp/Caption/New": {
+ "title": "$:/language/Buttons/Stamp/Caption/New",
+ "text": "Add your own"
+ },
+ "$:/language/Buttons/Stamp/Hint": {
+ "title": "$:/language/Buttons/Stamp/Hint",
+ "text": "Insert a preconfigured snippet of text"
+ },
+ "$:/language/Buttons/Stamp/New/Title": {
+ "title": "$:/language/Buttons/Stamp/New/Title",
+ "text": "Name as shown in menu"
+ },
+ "$:/language/Buttons/Stamp/New/Text": {
+ "title": "$:/language/Buttons/Stamp/New/Text",
+ "text": "Text of snippet. (Remember to add a descriptive title in the caption field)."
+ },
+ "$:/language/Buttons/Strikethrough/Caption": {
+ "title": "$:/language/Buttons/Strikethrough/Caption",
+ "text": "strikethrough"
+ },
+ "$:/language/Buttons/Strikethrough/Hint": {
+ "title": "$:/language/Buttons/Strikethrough/Hint",
+ "text": "Apply strikethrough formatting to selection"
+ },
+ "$:/language/Buttons/Subscript/Caption": {
+ "title": "$:/language/Buttons/Subscript/Caption",
+ "text": "subscript"
+ },
+ "$:/language/Buttons/Subscript/Hint": {
+ "title": "$:/language/Buttons/Subscript/Hint",
+ "text": "Apply subscript formatting to selection"
+ },
+ "$:/language/Buttons/Superscript/Caption": {
+ "title": "$:/language/Buttons/Superscript/Caption",
+ "text": "superscript"
+ },
+ "$:/language/Buttons/Superscript/Hint": {
+ "title": "$:/language/Buttons/Superscript/Hint",
+ "text": "Apply superscript formatting to selection"
+ },
+ "$:/language/Buttons/ToggleSidebar/Hint": {
+ "title": "$:/language/Buttons/ToggleSidebar/Hint",
+ "text": "Toggle the sidebar visibility"
+ },
+ "$:/language/Buttons/Transcludify/Caption": {
+ "title": "$:/language/Buttons/Transcludify/Caption",
+ "text": "transclusion"
+ },
+ "$:/language/Buttons/Transcludify/Hint": {
+ "title": "$:/language/Buttons/Transcludify/Hint",
+ "text": "Wrap selection in curly brackets"
+ },
+ "$:/language/Buttons/Underline/Caption": {
+ "title": "$:/language/Buttons/Underline/Caption",
+ "text": "underline"
+ },
+ "$:/language/Buttons/Underline/Hint": {
+ "title": "$:/language/Buttons/Underline/Hint",
+ "text": "Apply underline formatting to selection"
+ },
+ "$:/language/ControlPanel/Advanced/Caption": {
+ "title": "$:/language/ControlPanel/Advanced/Caption",
+ "text": "Advanced"
+ },
+ "$:/language/ControlPanel/Advanced/Hint": {
+ "title": "$:/language/ControlPanel/Advanced/Hint",
+ "text": "Internal information about this TiddlyWiki"
+ },
+ "$:/language/ControlPanel/Appearance/Caption": {
+ "title": "$:/language/ControlPanel/Appearance/Caption",
+ "text": "Appearance"
+ },
+ "$:/language/ControlPanel/Appearance/Hint": {
+ "title": "$:/language/ControlPanel/Appearance/Hint",
+ "text": "Ways to customise the appearance of your TiddlyWiki."
+ },
+ "$:/language/ControlPanel/Basics/AnimDuration/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/AnimDuration/Prompt",
+ "text": "Animation duration"
+ },
+ "$:/language/ControlPanel/Basics/AutoFocus/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/AutoFocus/Prompt",
+ "text": "Default focus field for new tiddlers"
+ },
+ "$:/language/ControlPanel/Basics/Caption": {
+ "title": "$:/language/ControlPanel/Basics/Caption",
+ "text": "Basics"
+ },
+ "$:/language/ControlPanel/Basics/DefaultTiddlers/BottomHint": {
+ "title": "$:/language/ControlPanel/Basics/DefaultTiddlers/BottomHint",
+ "text": "Use [[double square brackets]] for titles with spaces. Or you can choose to <$button set=\"$:/DefaultTiddlers\" setTo=\"[list[$:/StoryList]]\">retain story ordering</$button>"
+ },
+ "$:/language/ControlPanel/Basics/DefaultTiddlers/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/DefaultTiddlers/Prompt",
+ "text": "Default tiddlers"
+ },
+ "$:/language/ControlPanel/Basics/DefaultTiddlers/TopHint": {
+ "title": "$:/language/ControlPanel/Basics/DefaultTiddlers/TopHint",
+ "text": "Choose which tiddlers are displayed at startup"
+ },
+ "$:/language/ControlPanel/Basics/Language/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/Language/Prompt",
+ "text": "Hello! Current language:"
+ },
+ "$:/language/ControlPanel/Basics/NewJournal/Title/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/NewJournal/Title/Prompt",
+ "text": "Title of new journal tiddlers"
+ },
+ "$:/language/ControlPanel/Basics/NewJournal/Text/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/NewJournal/Text/Prompt",
+ "text": "Text for new journal tiddlers"
+ },
+ "$:/language/ControlPanel/Basics/NewJournal/Tags/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/NewJournal/Tags/Prompt",
+ "text": "Tags for new journal tiddlers"
+ },
+ "$:/language/ControlPanel/Basics/NewTiddler/Title/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/NewTiddler/Title/Prompt",
+ "text": "Title of new tiddlers"
+ },
+ "$:/language/ControlPanel/Basics/NewTiddler/Tags/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/NewTiddler/Tags/Prompt",
+ "text": "Tags for new tiddlers"
+ },
+ "$:/language/ControlPanel/Basics/OverriddenShadowTiddlers/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/OverriddenShadowTiddlers/Prompt",
+ "text": "Number of overridden shadow tiddlers"
+ },
+ "$:/language/ControlPanel/Basics/RemoveTags": {
+ "title": "$:/language/ControlPanel/Basics/RemoveTags",
+ "text": "Update to current format"
+ },
+ "$:/language/ControlPanel/Basics/RemoveTags/Hint": {
+ "title": "$:/language/ControlPanel/Basics/RemoveTags/Hint",
+ "text": "Update the tags configuration to the latest format"
+ },
+ "$:/language/ControlPanel/Basics/ShadowTiddlers/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/ShadowTiddlers/Prompt",
+ "text": "Number of shadow tiddlers"
+ },
+ "$:/language/ControlPanel/Basics/Subtitle/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/Subtitle/Prompt",
+ "text": "Subtitle"
+ },
+ "$:/language/ControlPanel/Basics/SystemTiddlers/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/SystemTiddlers/Prompt",
+ "text": "Number of system tiddlers"
+ },
+ "$:/language/ControlPanel/Basics/Tags/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/Tags/Prompt",
+ "text": "Number of tags"
+ },
+ "$:/language/ControlPanel/Basics/Tiddlers/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/Tiddlers/Prompt",
+ "text": "Number of tiddlers"
+ },
+ "$:/language/ControlPanel/Basics/Title/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/Title/Prompt",
+ "text": "Title of this ~TiddlyWiki"
+ },
+ "$:/language/ControlPanel/Basics/Username/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/Username/Prompt",
+ "text": "Username for signing edits"
+ },
+ "$:/language/ControlPanel/Basics/Version/Prompt": {
+ "title": "$:/language/ControlPanel/Basics/Version/Prompt",
+ "text": "~TiddlyWiki version"
+ },
+ "$:/language/ControlPanel/EditorTypes/Caption": {
+ "title": "$:/language/ControlPanel/EditorTypes/Caption",
+ "text": "Editor Types"
+ },
+ "$:/language/ControlPanel/EditorTypes/Editor/Caption": {
+ "title": "$:/language/ControlPanel/EditorTypes/Editor/Caption",
+ "text": "Editor"
+ },
+ "$:/language/ControlPanel/EditorTypes/Hint": {
+ "title": "$:/language/ControlPanel/EditorTypes/Hint",
+ "text": "These tiddlers determine which editor is used to edit specific tiddler types."
+ },
+ "$:/language/ControlPanel/EditorTypes/Type/Caption": {
+ "title": "$:/language/ControlPanel/EditorTypes/Type/Caption",
+ "text": "Type"
+ },
+ "$:/language/ControlPanel/Info/Caption": {
+ "title": "$:/language/ControlPanel/Info/Caption",
+ "text": "Info"
+ },
+ "$:/language/ControlPanel/Info/Hint": {
+ "title": "$:/language/ControlPanel/Info/Hint",
+ "text": "Information about this TiddlyWiki"
+ },
+ "$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt": {
+ "title": "$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt",
+ "text": "Type shortcut here"
+ },
+ "$:/language/ControlPanel/KeyboardShortcuts/Add/Caption": {
+ "title": "$:/language/ControlPanel/KeyboardShortcuts/Add/Caption",
+ "text": "add shortcut"
+ },
+ "$:/language/ControlPanel/KeyboardShortcuts/Caption": {
+ "title": "$:/language/ControlPanel/KeyboardShortcuts/Caption",
+ "text": "Keyboard Shortcuts"
+ },
+ "$:/language/ControlPanel/KeyboardShortcuts/Hint": {
+ "title": "$:/language/ControlPanel/KeyboardShortcuts/Hint",
+ "text": "Manage keyboard shortcut assignments"
+ },
+ "$:/language/ControlPanel/KeyboardShortcuts/NoShortcuts/Caption": {
+ "title": "$:/language/ControlPanel/KeyboardShortcuts/NoShortcuts/Caption",
+ "text": "No keyboard shortcuts assigned"
+ },
+ "$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint": {
+ "title": "$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint",
+ "text": "remove keyboard shortcut"
+ },
+ "$:/language/ControlPanel/KeyboardShortcuts/Platform/All": {
+ "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/All",
+ "text": "All platforms"
+ },
+ "$:/language/ControlPanel/KeyboardShortcuts/Platform/Mac": {
+ "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/Mac",
+ "text": "Macintosh platform only"
+ },
+ "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonMac": {
+ "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonMac",
+ "text": "Non-Macintosh platforms only"
+ },
+ "$:/language/ControlPanel/KeyboardShortcuts/Platform/Linux": {
+ "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/Linux",
+ "text": "Linux platform only"
+ },
+ "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonLinux": {
+ "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonLinux",
+ "text": "Non-Linux platforms only"
+ },
+ "$:/language/ControlPanel/KeyboardShortcuts/Platform/Windows": {
+ "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/Windows",
+ "text": "Windows platform only"
+ },
+ "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonWindows": {
+ "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonWindows",
+ "text": "Non-Windows platforms only"
+ },
+ "$:/language/ControlPanel/LayoutSwitcher/Caption": {
+ "title": "$:/language/ControlPanel/LayoutSwitcher/Caption",
+ "text": "Layout"
+ },
+ "$:/language/ControlPanel/LoadedModules/Caption": {
+ "title": "$:/language/ControlPanel/LoadedModules/Caption",
+ "text": "Loaded Modules"
+ },
+ "$:/language/ControlPanel/LoadedModules/Hint": {
+ "title": "$:/language/ControlPanel/LoadedModules/Hint",
+ "text": "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."
+ },
+ "$:/language/ControlPanel/Palette/Caption": {
+ "title": "$:/language/ControlPanel/Palette/Caption",
+ "text": "Palette"
+ },
+ "$:/language/ControlPanel/Palette/Editor/Clone/Caption": {
+ "title": "$:/language/ControlPanel/Palette/Editor/Clone/Caption",
+ "text": "clone"
+ },
+ "$:/language/ControlPanel/Palette/Editor/Clone/Prompt": {
+ "title": "$:/language/ControlPanel/Palette/Editor/Clone/Prompt",
+ "text": "It is recommended that you clone this shadow palette before editing it"
+ },
+ "$:/language/ControlPanel/Palette/Editor/Delete/Hint": {
+ "title": "$:/language/ControlPanel/Palette/Editor/Delete/Hint",
+ "text": "delete this entry from the current palette"
+ },
+ "$:/language/ControlPanel/Palette/Editor/Names/External/Show": {
+ "title": "$:/language/ControlPanel/Palette/Editor/Names/External/Show",
+ "text": "Show color names that are not part of the current palette"
+ },
+ "$:/language/ControlPanel/Palette/Editor/Prompt/Modified": {
+ "title": "$:/language/ControlPanel/Palette/Editor/Prompt/Modified",
+ "text": "This shadow palette has been modified"
+ },
+ "$:/language/ControlPanel/Palette/Editor/Prompt": {
+ "title": "$:/language/ControlPanel/Palette/Editor/Prompt",
+ "text": "Editing"
+ },
+ "$:/language/ControlPanel/Palette/Editor/Reset/Caption": {
+ "title": "$:/language/ControlPanel/Palette/Editor/Reset/Caption",
+ "text": "reset"
+ },
+ "$:/language/ControlPanel/Palette/HideEditor/Caption": {
+ "title": "$:/language/ControlPanel/Palette/HideEditor/Caption",
+ "text": "hide editor"
+ },
+ "$:/language/ControlPanel/Palette/Prompt": {
+ "title": "$:/language/ControlPanel/Palette/Prompt",
+ "text": "Current palette:"
+ },
+ "$:/language/ControlPanel/Palette/ShowEditor/Caption": {
+ "title": "$:/language/ControlPanel/Palette/ShowEditor/Caption",
+ "text": "show editor"
+ },
+ "$:/language/ControlPanel/Parsing/Caption": {
+ "title": "$:/language/ControlPanel/Parsing/Caption",
+ "text": "Parsing"
+ },
+ "$:/language/ControlPanel/Parsing/Hint": {
+ "title": "$:/language/ControlPanel/Parsing/Hint",
+ "text": "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 <$text text=\"TiddlyWiki\"/> from functioning correctly. Use [[safe mode|https://tiddlywiki.com/#SafeMode]] to restore normal operation."
+ },
+ "$:/language/ControlPanel/Parsing/Block/Caption": {
+ "title": "$:/language/ControlPanel/Parsing/Block/Caption",
+ "text": "Block Parse Rules"
+ },
+ "$:/language/ControlPanel/Parsing/Inline/Caption": {
+ "title": "$:/language/ControlPanel/Parsing/Inline/Caption",
+ "text": "Inline Parse Rules"
+ },
+ "$:/language/ControlPanel/Parsing/Pragma/Caption": {
+ "title": "$:/language/ControlPanel/Parsing/Pragma/Caption",
+ "text": "Pragma Parse Rules"
+ },
+ "$:/language/ControlPanel/Plugins/Add/Caption": {
+ "title": "$:/language/ControlPanel/Plugins/Add/Caption",
+ "text": "Get more plugins"
+ },
+ "$:/language/ControlPanel/Plugins/Add/Hint": {
+ "title": "$:/language/ControlPanel/Plugins/Add/Hint",
+ "text": "Install plugins from the official library"
+ },
+ "$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint": {
+ "title": "$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint",
+ "text": "This plugin is already installed at version <$text text=<<installedVersion>>/>"
+ },
+ "$:/language/ControlPanel/Plugins/AlsoRequires": {
+ "title": "$:/language/ControlPanel/Plugins/AlsoRequires",
+ "text": "Also requires:"
+ },
+ "$:/language/ControlPanel/Plugins/Caption": {
+ "title": "$:/language/ControlPanel/Plugins/Caption",
+ "text": "Plugins"
+ },
+ "$:/language/ControlPanel/Plugins/Disable/Caption": {
+ "title": "$:/language/ControlPanel/Plugins/Disable/Caption",
+ "text": "disable"
+ },
+ "$:/language/ControlPanel/Plugins/Disable/Hint": {
+ "title": "$:/language/ControlPanel/Plugins/Disable/Hint",
+ "text": "Disable this plugin when reloading page"
+ },
+ "$:/language/ControlPanel/Plugins/Disabled/Status": {
+ "title": "$:/language/ControlPanel/Plugins/Disabled/Status",
+ "text": "(disabled)"
+ },
+ "$:/language/ControlPanel/Plugins/Downgrade/Caption": {
+ "title": "$:/language/ControlPanel/Plugins/Downgrade/Caption",
+ "text": "downgrade"
+ },
+ "$:/language/ControlPanel/Plugins/Empty/Hint": {
+ "title": "$:/language/ControlPanel/Plugins/Empty/Hint",
+ "text": "None"
+ },
+ "$:/language/ControlPanel/Plugins/Enable/Caption": {
+ "title": "$:/language/ControlPanel/Plugins/Enable/Caption",
+ "text": "enable"
+ },
+ "$:/language/ControlPanel/Plugins/Enable/Hint": {
+ "title": "$:/language/ControlPanel/Plugins/Enable/Hint",
+ "text": "Enable this plugin when reloading page"
+ },
+ "$:/language/ControlPanel/Plugins/Install/Caption": {
+ "title": "$:/language/ControlPanel/Plugins/Install/Caption",
+ "text": "install"
+ },
+ "$:/language/ControlPanel/Plugins/Installed/Hint": {
+ "title": "$:/language/ControlPanel/Plugins/Installed/Hint",
+ "text": "Currently installed plugins:"
+ },
+ "$:/language/ControlPanel/Plugins/Languages/Caption": {
+ "title": "$:/language/ControlPanel/Plugins/Languages/Caption",
+ "text": "Languages"
+ },
+ "$:/language/ControlPanel/Plugins/Languages/Hint": {
+ "title": "$:/language/ControlPanel/Plugins/Languages/Hint",
+ "text": "Language pack plugins"
+ },
+ "$:/language/ControlPanel/Plugins/NoInfoFound/Hint": {
+ "title": "$:/language/ControlPanel/Plugins/NoInfoFound/Hint",
+ "text": "No ''\"<$text text=<<currentTab>>/>\"'' found"
+ },
+ "$:/language/ControlPanel/Plugins/NotInstalled/Hint": {
+ "title": "$:/language/ControlPanel/Plugins/NotInstalled/Hint",
+ "text": "This plugin is not currently installed"
+ },
+ "$:/language/ControlPanel/Plugins/OpenPluginLibrary": {
+ "title": "$:/language/ControlPanel/Plugins/OpenPluginLibrary",
+ "text": "open plugin library"
+ },
+ "$:/language/ControlPanel/Plugins/ClosePluginLibrary": {
+ "title": "$:/language/ControlPanel/Plugins/ClosePluginLibrary",
+ "text": "close plugin library"
+ },
+ "$:/language/ControlPanel/Plugins/PluginWillRequireReload": {
+ "title": "$:/language/ControlPanel/Plugins/PluginWillRequireReload",
+ "text": "(requires reload)"
+ },
+ "$:/language/ControlPanel/Plugins/Plugins/Caption": {
+ "title": "$:/language/ControlPanel/Plugins/Plugins/Caption",
+ "text": "Plugins"
+ },
+ "$:/language/ControlPanel/Plugins/Plugins/Hint": {
+ "title": "$:/language/ControlPanel/Plugins/Plugins/Hint",
+ "text": "Plugins"
+ },
+ "$:/language/ControlPanel/Plugins/Reinstall/Caption": {
+ "title": "$:/language/ControlPanel/Plugins/Reinstall/Caption",
+ "text": "reinstall"
+ },
+ "$:/language/ControlPanel/Plugins/Themes/Caption": {
+ "title": "$:/language/ControlPanel/Plugins/Themes/Caption",
+ "text": "Themes"
+ },
+ "$:/language/ControlPanel/Plugins/Themes/Hint": {
+ "title": "$:/language/ControlPanel/Plugins/Themes/Hint",
+ "text": "Theme plugins"
+ },
+ "$:/language/ControlPanel/Plugins/Update/Caption": {
+ "title": "$:/language/ControlPanel/Plugins/Update/Caption",
+ "text": "update"
+ },
+ "$:/language/ControlPanel/Plugins/Updates/Caption": {
+ "title": "$:/language/ControlPanel/Plugins/Updates/Caption",
+ "text": "Updates"
+ },
+ "$:/language/ControlPanel/Plugins/Updates/Hint": {
+ "title": "$:/language/ControlPanel/Plugins/Updates/Hint",
+ "text": "Available updates to installed plugins"
+ },
+ "$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption": {
+ "title": "$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption",
+ "text": "Update <<update-count>> plugins"
+ },
+ "$:/language/ControlPanel/Plugins/SubPluginPrompt": {
+ "title": "$:/language/ControlPanel/Plugins/SubPluginPrompt",
+ "text": "With <<count>> sub-plugins available"
+ },
+ "$:/language/ControlPanel/Saving/Caption": {
+ "title": "$:/language/ControlPanel/Saving/Caption",
+ "text": "Saving"
+ },
+ "$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Description": {
+ "title": "$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Description",
+ "text": "Permit automatic saving for the download saver"
+ },
+ "$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Hint": {
+ "title": "$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Hint",
+ "text": "Enable Autosave for Download Saver"
+ },
+ "$:/language/ControlPanel/Saving/DownloadSaver/Caption": {
+ "title": "$:/language/ControlPanel/Saving/DownloadSaver/Caption",
+ "text": "Download Saver"
+ },
+ "$:/language/ControlPanel/Saving/DownloadSaver/Hint": {
+ "title": "$:/language/ControlPanel/Saving/DownloadSaver/Hint",
+ "text": "These settings apply to the HTML5-compatible download saver"
+ },
+ "$:/language/ControlPanel/Saving/General/Caption": {
+ "title": "$:/language/ControlPanel/Saving/General/Caption",
+ "text": "General"
+ },
+ "$:/language/ControlPanel/Saving/General/Hint": {
+ "title": "$:/language/ControlPanel/Saving/General/Hint",
+ "text": "These settings apply to all the loaded savers"
+ },
+ "$:/language/ControlPanel/Saving/Hint": {
+ "title": "$:/language/ControlPanel/Saving/Hint",
+ "text": "Settings used for saving the entire TiddlyWiki as a single file via a saver module"
+ },
+ "$:/language/ControlPanel/Saving/GitService/Branch": {
+ "title": "$:/language/ControlPanel/Saving/GitService/Branch",
+ "text": "Target branch for saving"
+ },
+ "$:/language/ControlPanel/Saving/GitService/CommitMessage": {
+ "title": "$:/language/ControlPanel/Saving/GitService/CommitMessage",
+ "text": "Saved by TiddlyWiki"
+ },
+ "$:/language/ControlPanel/Saving/GitService/Description": {
+ "title": "$:/language/ControlPanel/Saving/GitService/Description",
+ "text": "These settings are only used when saving to <<service-name>>"
+ },
+ "$:/language/ControlPanel/Saving/GitService/Filename": {
+ "title": "$:/language/ControlPanel/Saving/GitService/Filename",
+ "text": "Filename of target file (e.g. `index.html`)"
+ },
+ "$:/language/ControlPanel/Saving/GitService/Path": {
+ "title": "$:/language/ControlPanel/Saving/GitService/Path",
+ "text": "Path to target file (e.g. `/wiki/`)"
+ },
+ "$:/language/ControlPanel/Saving/GitService/Repo": {
+ "title": "$:/language/ControlPanel/Saving/GitService/Repo",
+ "text": "Target repository (e.g. `Jermolene/TiddlyWiki5`)"
+ },
+ "$:/language/ControlPanel/Saving/GitService/ServerURL": {
+ "title": "$:/language/ControlPanel/Saving/GitService/ServerURL",
+ "text": "Server API URL"
+ },
+ "$:/language/ControlPanel/Saving/GitService/UserName": {
+ "title": "$:/language/ControlPanel/Saving/GitService/UserName",
+ "text": "Username"
+ },
+ "$:/language/ControlPanel/Saving/GitService/GitHub/Caption": {
+ "title": "$:/language/ControlPanel/Saving/GitService/GitHub/Caption",
+ "text": "~GitHub Saver"
+ },
+ "$:/language/ControlPanel/Saving/GitService/GitHub/Password": {
+ "title": "$:/language/ControlPanel/Saving/GitService/GitHub/Password",
+ "text": "Password, OAUTH token, or personal access token (see [[GitHub help page|https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line]] for details)"
+ },
+ "$:/language/ControlPanel/Saving/GitService/GitLab/Caption": {
+ "title": "$:/language/ControlPanel/Saving/GitService/GitLab/Caption",
+ "text": "~GitLab Saver"
+ },
+ "$:/language/ControlPanel/Saving/GitService/GitLab/Password": {
+ "title": "$:/language/ControlPanel/Saving/GitService/GitLab/Password",
+ "text": "Personal access token for API (see [[GitLab help page|https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html]] for details)"
+ },
+ "$:/language/ControlPanel/Saving/GitService/Gitea/Caption": {
+ "title": "$:/language/ControlPanel/Saving/GitService/Gitea/Caption",
+ "text": "Gitea Saver"
+ },
+ "$:/language/ControlPanel/Saving/GitService/Gitea/Password": {
+ "title": "$:/language/ControlPanel/Saving/GitService/Gitea/Password",
+ "text": "Personal access token for API (via Gitea’s web interface: `Settings | Applications | Generate New Token`)"
+ },
+ "$:/language/ControlPanel/Saving/TiddlySpot/Advanced/Heading": {
+ "title": "$:/language/ControlPanel/Saving/TiddlySpot/Advanced/Heading",
+ "text": "Advanced Settings"
+ },
+ "$:/language/ControlPanel/Saving/TiddlySpot/BackupDir": {
+ "title": "$:/language/ControlPanel/Saving/TiddlySpot/BackupDir",
+ "text": "Backup Directory"
+ },
+ "$:/language/ControlPanel/Saving/TiddlySpot/ControlPanel": {
+ "title": "$:/language/ControlPanel/Saving/TiddlySpot/ControlPanel",
+ "text": "~TiddlySpot Control Panel"
+ },
+ "$:/language/ControlPanel/Saving/TiddlySpot/Backups": {
+ "title": "$:/language/ControlPanel/Saving/TiddlySpot/Backups",
+ "text": "Backups"
+ },
+ "$:/language/ControlPanel/Saving/TiddlySpot/Caption": {
+ "title": "$:/language/ControlPanel/Saving/TiddlySpot/Caption",
+ "text": "~TiddlySpot Saver"
+ },
+ "$:/language/ControlPanel/Saving/TiddlySpot/Description": {
+ "title": "$:/language/ControlPanel/Saving/TiddlySpot/Description",
+ "text": "These settings are only used when saving to http://tiddlyspot.com or a compatible remote server"
+ },
+ "$:/language/ControlPanel/Saving/TiddlySpot/Filename": {
+ "title": "$:/language/ControlPanel/Saving/TiddlySpot/Filename",
+ "text": "Upload Filename"
+ },
+ "$:/language/ControlPanel/Saving/TiddlySpot/Heading": {
+ "title": "$:/language/ControlPanel/Saving/TiddlySpot/Heading",
+ "text": "~TiddlySpot"
+ },
+ "$:/language/ControlPanel/Saving/TiddlySpot/Hint": {
+ "title": "$:/language/ControlPanel/Saving/TiddlySpot/Hint",
+ "text": "//The server URL defaults to `http://<wikiname>.tiddlyspot.com/store.cgi` and can be changed to use a custom server address, e.g. `http://example.com/store.php`.//"
+ },
+ "$:/language/ControlPanel/Saving/TiddlySpot/Password": {
+ "title": "$:/language/ControlPanel/Saving/TiddlySpot/Password",
+ "text": "Password"
+ },
+ "$:/language/ControlPanel/Saving/TiddlySpot/ReadOnly": {
+ "title": "$:/language/ControlPanel/Saving/TiddlySpot/ReadOnly",
+ "text": "The ~TiddlySpot service is currently only available in read-only form. Please see http://tiddlyspot.com/ for the latest details. The ~TiddlySpot saver can still be used to save to compatible servers."
+ },
+ "$:/language/ControlPanel/Saving/TiddlySpot/ServerURL": {
+ "title": "$:/language/ControlPanel/Saving/TiddlySpot/ServerURL",
+ "text": "Server URL"
+ },
+ "$:/language/ControlPanel/Saving/TiddlySpot/UploadDir": {
+ "title": "$:/language/ControlPanel/Saving/TiddlySpot/UploadDir",
+ "text": "Upload Directory"
+ },
+ "$:/language/ControlPanel/Saving/TiddlySpot/UserName": {
+ "title": "$:/language/ControlPanel/Saving/TiddlySpot/UserName",
+ "text": "Wiki Name"
+ },
+ "$:/language/ControlPanel/Settings/AutoSave/Caption": {
+ "title": "$:/language/ControlPanel/Settings/AutoSave/Caption",
+ "text": "Autosave"
+ },
+ "$:/language/ControlPanel/Settings/AutoSave/Disabled/Description": {
+ "title": "$:/language/ControlPanel/Settings/AutoSave/Disabled/Description",
+ "text": "Do not save changes automatically"
+ },
+ "$:/language/ControlPanel/Settings/AutoSave/Enabled/Description": {
+ "title": "$:/language/ControlPanel/Settings/AutoSave/Enabled/Description",
+ "text": "Save changes automatically"
+ },
+ "$:/language/ControlPanel/Settings/AutoSave/Hint": {
+ "title": "$:/language/ControlPanel/Settings/AutoSave/Hint",
+ "text": "Attempt to automatically save changes during editing when using a supporting saver"
+ },
+ "$:/language/ControlPanel/Settings/CamelCase/Caption": {
+ "title": "$:/language/ControlPanel/Settings/CamelCase/Caption",
+ "text": "Camel Case Wiki Links"
+ },
+ "$:/language/ControlPanel/Settings/CamelCase/Hint": {
+ "title": "$:/language/ControlPanel/Settings/CamelCase/Hint",
+ "text": "You can globally disable automatic linking of ~CamelCase phrases. Requires reload to take effect"
+ },
+ "$:/language/ControlPanel/Settings/CamelCase/Description": {
+ "title": "$:/language/ControlPanel/Settings/CamelCase/Description",
+ "text": "Enable automatic ~CamelCase linking"
+ },
+ "$:/language/ControlPanel/Settings/Caption": {
+ "title": "$:/language/ControlPanel/Settings/Caption",
+ "text": "Settings"
+ },
+ "$:/language/ControlPanel/Settings/EditorToolbar/Caption": {
+ "title": "$:/language/ControlPanel/Settings/EditorToolbar/Caption",
+ "text": "Editor Toolbar"
+ },
+ "$:/language/ControlPanel/Settings/EditorToolbar/Hint": {
+ "title": "$:/language/ControlPanel/Settings/EditorToolbar/Hint",
+ "text": "Enable or disable the editor toolbar:"
+ },
+ "$:/language/ControlPanel/Settings/EditorToolbar/Description": {
+ "title": "$:/language/ControlPanel/Settings/EditorToolbar/Description",
+ "text": "Show editor toolbar"
+ },
+ "$:/language/ControlPanel/Settings/InfoPanelMode/Caption": {
+ "title": "$:/language/ControlPanel/Settings/InfoPanelMode/Caption",
+ "text": "Tiddler Info Panel Mode"
+ },
+ "$:/language/ControlPanel/Settings/InfoPanelMode/Hint": {
+ "title": "$:/language/ControlPanel/Settings/InfoPanelMode/Hint",
+ "text": "Control when the tiddler info panel closes:"
+ },
+ "$:/language/ControlPanel/Settings/InfoPanelMode/Popup/Description": {
+ "title": "$:/language/ControlPanel/Settings/InfoPanelMode/Popup/Description",
+ "text": "Tiddler info panel closes automatically"
+ },
+ "$:/language/ControlPanel/Settings/InfoPanelMode/Sticky/Description": {
+ "title": "$:/language/ControlPanel/Settings/InfoPanelMode/Sticky/Description",
+ "text": "Tiddler info panel stays open until explicitly closed"
+ },
+ "$:/language/ControlPanel/Settings/Hint": {
+ "title": "$:/language/ControlPanel/Settings/Hint",
+ "text": "These settings let you customise the behaviour of TiddlyWiki."
+ },
+ "$:/language/ControlPanel/Settings/NavigationAddressBar/Caption": {
+ "title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Caption",
+ "text": "Navigation Address Bar"
+ },
+ "$:/language/ControlPanel/Settings/NavigationAddressBar/Hint": {
+ "title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Hint",
+ "text": "Behaviour of the browser address bar when navigating to a tiddler:"
+ },
+ "$:/language/ControlPanel/Settings/NavigationAddressBar/No/Description": {
+ "title": "$:/language/ControlPanel/Settings/NavigationAddressBar/No/Description",
+ "text": "Do not update the address bar"
+ },
+ "$:/language/ControlPanel/Settings/NavigationAddressBar/Permalink/Description": {
+ "title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Permalink/Description",
+ "text": "Include the target tiddler"
+ },
+ "$:/language/ControlPanel/Settings/NavigationAddressBar/Permaview/Description": {
+ "title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Permaview/Description",
+ "text": "Include the target tiddler and the current story sequence"
+ },
+ "$:/language/ControlPanel/Settings/NavigationHistory/Caption": {
+ "title": "$:/language/ControlPanel/Settings/NavigationHistory/Caption",
+ "text": "Navigation History"
+ },
+ "$:/language/ControlPanel/Settings/NavigationHistory/Hint": {
+ "title": "$:/language/ControlPanel/Settings/NavigationHistory/Hint",
+ "text": "Update browser history when navigating to a tiddler:"
+ },
+ "$:/language/ControlPanel/Settings/NavigationHistory/No/Description": {
+ "title": "$:/language/ControlPanel/Settings/NavigationHistory/No/Description",
+ "text": "Do not update history"
+ },
+ "$:/language/ControlPanel/Settings/NavigationHistory/Yes/Description": {
+ "title": "$:/language/ControlPanel/Settings/NavigationHistory/Yes/Description",
+ "text": "Update history"
+ },
+ "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption": {
+ "title": "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption",
+ "text": "Permalink/permaview Mode"
+ },
+ "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Hint": {
+ "title": "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Hint",
+ "text": "Choose how permalink/permaview is handled:"
+ },
+ "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/CopyToClipboard/Description": {
+ "title": "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/CopyToClipboard/Description",
+ "text": "Copy permalink/permaview URL to clipboard"
+ },
+ "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/UpdateAddressBar/Description": {
+ "title": "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/UpdateAddressBar/Description",
+ "text": "Update address bar with permalink/permaview URL"
+ },
+ "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption": {
+ "title": "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption",
+ "text": "Performance Instrumentation"
+ },
+ "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Hint": {
+ "title": "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Hint",
+ "text": "Displays performance statistics in the browser developer console. Requires reload to take effect"
+ },
+ "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Description": {
+ "title": "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Description",
+ "text": "Enable performance instrumentation"
+ },
+ "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption": {
+ "title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption",
+ "text": "Toolbar Button Style"
+ },
+ "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Hint": {
+ "title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Hint",
+ "text": "Choose the style for toolbar buttons:"
+ },
+ "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless": {
+ "title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless",
+ "text": "Borderless"
+ },
+ "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed": {
+ "title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed",
+ "text": "Boxed"
+ },
+ "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded": {
+ "title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded",
+ "text": "Rounded"
+ },
+ "$:/language/ControlPanel/Settings/ToolbarButtons/Caption": {
+ "title": "$:/language/ControlPanel/Settings/ToolbarButtons/Caption",
+ "text": "Toolbar Buttons"
+ },
+ "$:/language/ControlPanel/Settings/ToolbarButtons/Hint": {
+ "title": "$:/language/ControlPanel/Settings/ToolbarButtons/Hint",
+ "text": "Default toolbar button appearance:"
+ },
+ "$:/language/ControlPanel/Settings/ToolbarButtons/Icons/Description": {
+ "title": "$:/language/ControlPanel/Settings/ToolbarButtons/Icons/Description",
+ "text": "Include icon"
+ },
+ "$:/language/ControlPanel/Settings/ToolbarButtons/Text/Description": {
+ "title": "$:/language/ControlPanel/Settings/ToolbarButtons/Text/Description",
+ "text": "Include text"
+ },
+ "$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption": {
+ "title": "$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption",
+ "text": "Default Sidebar Tab"
+ },
+ "$:/language/ControlPanel/Settings/DefaultSidebarTab/Hint": {
+ "title": "$:/language/ControlPanel/Settings/DefaultSidebarTab/Hint",
+ "text": "Specify which sidebar tab is displayed by default"
+ },
+ "$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption": {
+ "title": "$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption",
+ "text": "Default More Sidebar Tab"
+ },
+ "$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Hint": {
+ "title": "$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Hint",
+ "text": "Specify which More sidebar tab is displayed by default"
+ },
+ "$:/language/ControlPanel/Settings/LinkToBehaviour/Caption": {
+ "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/Caption",
+ "text": "Tiddler Opening Behaviour"
+ },
+ "$:/language/ControlPanel/Settings/LinkToBehaviour/InsideRiver/Hint": {
+ "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/InsideRiver/Hint",
+ "text": "Navigation from //within// the story river"
+ },
+ "$:/language/ControlPanel/Settings/LinkToBehaviour/OutsideRiver/Hint": {
+ "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OutsideRiver/Hint",
+ "text": "Navigation from //outside// the story river"
+ },
+ "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAbove": {
+ "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAbove",
+ "text": "Open above the current tiddler"
+ },
+ "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenBelow": {
+ "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenBelow",
+ "text": "Open below the current tiddler"
+ },
+ "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtTop": {
+ "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtTop",
+ "text": "Open at the top of the story river"
+ },
+ "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtBottom": {
+ "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtBottom",
+ "text": "Open at the bottom of the story river"
+ },
+ "$:/language/ControlPanel/Settings/TitleLinks/Caption": {
+ "title": "$:/language/ControlPanel/Settings/TitleLinks/Caption",
+ "text": "Tiddler Titles"
+ },
+ "$:/language/ControlPanel/Settings/TitleLinks/Hint": {
+ "title": "$:/language/ControlPanel/Settings/TitleLinks/Hint",
+ "text": "Optionally display tiddler titles as links"
+ },
+ "$:/language/ControlPanel/Settings/TitleLinks/No/Description": {
+ "title": "$:/language/ControlPanel/Settings/TitleLinks/No/Description",
+ "text": "Do not display tiddler titles as links"
+ },
+ "$:/language/ControlPanel/Settings/TitleLinks/Yes/Description": {
+ "title": "$:/language/ControlPanel/Settings/TitleLinks/Yes/Description",
+ "text": "Display tiddler titles as links"
+ },
+ "$:/language/ControlPanel/Settings/MissingLinks/Caption": {
+ "title": "$:/language/ControlPanel/Settings/MissingLinks/Caption",
+ "text": "Wiki Links"
+ },
+ "$:/language/ControlPanel/Settings/MissingLinks/Hint": {
+ "title": "$:/language/ControlPanel/Settings/MissingLinks/Hint",
+ "text": "Choose whether to link to tiddlers that do not exist yet"
+ },
+ "$:/language/ControlPanel/Settings/MissingLinks/Description": {
+ "title": "$:/language/ControlPanel/Settings/MissingLinks/Description",
+ "text": "Enable links to missing tiddlers"
+ },
+ "$:/language/ControlPanel/StoryView/Caption": {
+ "title": "$:/language/ControlPanel/StoryView/Caption",
+ "text": "Story View"
+ },
+ "$:/language/ControlPanel/StoryView/Prompt": {
+ "title": "$:/language/ControlPanel/StoryView/Prompt",
+ "text": "Current view:"
+ },
+ "$:/language/ControlPanel/Stylesheets/Caption": {
+ "title": "$:/language/ControlPanel/Stylesheets/Caption",
+ "text": "Stylesheets"
+ },
+ "$:/language/ControlPanel/Stylesheets/Expand/Caption": {
+ "title": "$:/language/ControlPanel/Stylesheets/Expand/Caption",
+ "text": "Expand All"
+ },
+ "$:/language/ControlPanel/Stylesheets/Hint": {
+ "title": "$:/language/ControlPanel/Stylesheets/Hint",
+ "text": "This is the rendered CSS of the current stylesheet tiddlers tagged with <<tag \"$:/tags/Stylesheet\">>"
+ },
+ "$:/language/ControlPanel/Stylesheets/Restore/Caption": {
+ "title": "$:/language/ControlPanel/Stylesheets/Restore/Caption",
+ "text": "Restore"
+ },
+ "$:/language/ControlPanel/Theme/Caption": {
+ "title": "$:/language/ControlPanel/Theme/Caption",
+ "text": "Theme"
+ },
+ "$:/language/ControlPanel/Theme/Prompt": {
+ "title": "$:/language/ControlPanel/Theme/Prompt",
+ "text": "Current theme:"
+ },
+ "$:/language/ControlPanel/TiddlerFields/Caption": {
+ "title": "$:/language/ControlPanel/TiddlerFields/Caption",
+ "text": "Tiddler Fields"
+ },
+ "$:/language/ControlPanel/TiddlerFields/Hint": {
+ "title": "$:/language/ControlPanel/TiddlerFields/Hint",
+ "text": "This is the full set of TiddlerFields in use in this wiki (including system tiddlers but excluding shadow tiddlers)."
+ },
+ "$:/language/ControlPanel/Toolbars/Caption": {
+ "title": "$:/language/ControlPanel/Toolbars/Caption",
+ "text": "Toolbars"
+ },
+ "$:/language/ControlPanel/Toolbars/EditToolbar/Caption": {
+ "title": "$:/language/ControlPanel/Toolbars/EditToolbar/Caption",
+ "text": "Edit Toolbar"
+ },
+ "$:/language/ControlPanel/Toolbars/EditToolbar/Hint": {
+ "title": "$:/language/ControlPanel/Toolbars/EditToolbar/Hint",
+ "text": "Choose which buttons are displayed for tiddlers in edit mode. Drag and drop to change the ordering"
+ },
+ "$:/language/ControlPanel/Toolbars/Hint": {
+ "title": "$:/language/ControlPanel/Toolbars/Hint",
+ "text": "Select which toolbar buttons are displayed"
+ },
+ "$:/language/ControlPanel/Toolbars/PageControls/Caption": {
+ "title": "$:/language/ControlPanel/Toolbars/PageControls/Caption",
+ "text": "Page Toolbar"
+ },
+ "$:/language/ControlPanel/Toolbars/PageControls/Hint": {
+ "title": "$:/language/ControlPanel/Toolbars/PageControls/Hint",
+ "text": "Choose which buttons are displayed on the main page toolbar. Drag and drop to change the ordering"
+ },
+ "$:/language/ControlPanel/Toolbars/EditorToolbar/Caption": {
+ "title": "$:/language/ControlPanel/Toolbars/EditorToolbar/Caption",
+ "text": "Editor Toolbar"
+ },
+ "$:/language/ControlPanel/Toolbars/EditorToolbar/Hint": {
+ "title": "$:/language/ControlPanel/Toolbars/EditorToolbar/Hint",
+ "text": "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"
+ },
+ "$:/language/ControlPanel/Toolbars/ViewToolbar/Caption": {
+ "title": "$:/language/ControlPanel/Toolbars/ViewToolbar/Caption",
+ "text": "View Toolbar"
+ },
+ "$:/language/ControlPanel/Toolbars/ViewToolbar/Hint": {
+ "title": "$:/language/ControlPanel/Toolbars/ViewToolbar/Hint",
+ "text": "Choose which buttons are displayed for tiddlers in view mode. Drag and drop to change the ordering"
+ },
+ "$:/language/ControlPanel/Tools/Download/Full/Caption": {
+ "title": "$:/language/ControlPanel/Tools/Download/Full/Caption",
+ "text": "Download full wiki"
+ },
+ "$:/language/Date/DaySuffix/1": {
+ "title": "$:/language/Date/DaySuffix/1",
+ "text": "st"
+ },
+ "$:/language/Date/DaySuffix/2": {
+ "title": "$:/language/Date/DaySuffix/2",
+ "text": "nd"
+ },
+ "$:/language/Date/DaySuffix/3": {
+ "title": "$:/language/Date/DaySuffix/3",
+ "text": "rd"
+ },
+ "$:/language/Date/DaySuffix/4": {
+ "title": "$:/language/Date/DaySuffix/4",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/5": {
+ "title": "$:/language/Date/DaySuffix/5",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/6": {
+ "title": "$:/language/Date/DaySuffix/6",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/7": {
+ "title": "$:/language/Date/DaySuffix/7",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/8": {
+ "title": "$:/language/Date/DaySuffix/8",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/9": {
+ "title": "$:/language/Date/DaySuffix/9",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/10": {
+ "title": "$:/language/Date/DaySuffix/10",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/11": {
+ "title": "$:/language/Date/DaySuffix/11",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/12": {
+ "title": "$:/language/Date/DaySuffix/12",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/13": {
+ "title": "$:/language/Date/DaySuffix/13",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/14": {
+ "title": "$:/language/Date/DaySuffix/14",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/15": {
+ "title": "$:/language/Date/DaySuffix/15",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/16": {
+ "title": "$:/language/Date/DaySuffix/16",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/17": {
+ "title": "$:/language/Date/DaySuffix/17",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/18": {
+ "title": "$:/language/Date/DaySuffix/18",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/19": {
+ "title": "$:/language/Date/DaySuffix/19",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/20": {
+ "title": "$:/language/Date/DaySuffix/20",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/21": {
+ "title": "$:/language/Date/DaySuffix/21",
+ "text": "st"
+ },
+ "$:/language/Date/DaySuffix/22": {
+ "title": "$:/language/Date/DaySuffix/22",
+ "text": "nd"
+ },
+ "$:/language/Date/DaySuffix/23": {
+ "title": "$:/language/Date/DaySuffix/23",
+ "text": "rd"
+ },
+ "$:/language/Date/DaySuffix/24": {
+ "title": "$:/language/Date/DaySuffix/24",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/25": {
+ "title": "$:/language/Date/DaySuffix/25",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/26": {
+ "title": "$:/language/Date/DaySuffix/26",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/27": {
+ "title": "$:/language/Date/DaySuffix/27",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/28": {
+ "title": "$:/language/Date/DaySuffix/28",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/29": {
+ "title": "$:/language/Date/DaySuffix/29",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/30": {
+ "title": "$:/language/Date/DaySuffix/30",
+ "text": "th"
+ },
+ "$:/language/Date/DaySuffix/31": {
+ "title": "$:/language/Date/DaySuffix/31",
+ "text": "st"
+ },
+ "$:/language/Date/Long/Day/0": {
+ "title": "$:/language/Date/Long/Day/0",
+ "text": "Sunday"
+ },
+ "$:/language/Date/Long/Day/1": {
+ "title": "$:/language/Date/Long/Day/1",
+ "text": "Monday"
+ },
+ "$:/language/Date/Long/Day/2": {
+ "title": "$:/language/Date/Long/Day/2",
+ "text": "Tuesday"
+ },
+ "$:/language/Date/Long/Day/3": {
+ "title": "$:/language/Date/Long/Day/3",
+ "text": "Wednesday"
+ },
+ "$:/language/Date/Long/Day/4": {
+ "title": "$:/language/Date/Long/Day/4",
+ "text": "Thursday"
+ },
+ "$:/language/Date/Long/Day/5": {
+ "title": "$:/language/Date/Long/Day/5",
+ "text": "Friday"
+ },
+ "$:/language/Date/Long/Day/6": {
+ "title": "$:/language/Date/Long/Day/6",
+ "text": "Saturday"
+ },
+ "$:/language/Date/Long/Month/1": {
+ "title": "$:/language/Date/Long/Month/1",
+ "text": "January"
+ },
+ "$:/language/Date/Long/Month/2": {
+ "title": "$:/language/Date/Long/Month/2",
+ "text": "February"
+ },
+ "$:/language/Date/Long/Month/3": {
+ "title": "$:/language/Date/Long/Month/3",
+ "text": "March"
+ },
+ "$:/language/Date/Long/Month/4": {
+ "title": "$:/language/Date/Long/Month/4",
+ "text": "April"
+ },
+ "$:/language/Date/Long/Month/5": {
+ "title": "$:/language/Date/Long/Month/5",
+ "text": "May"
+ },
+ "$:/language/Date/Long/Month/6": {
+ "title": "$:/language/Date/Long/Month/6",
+ "text": "June"
+ },
+ "$:/language/Date/Long/Month/7": {
+ "title": "$:/language/Date/Long/Month/7",
+ "text": "July"
+ },
+ "$:/language/Date/Long/Month/8": {
+ "title": "$:/language/Date/Long/Month/8",
+ "text": "August"
+ },
+ "$:/language/Date/Long/Month/9": {
+ "title": "$:/language/Date/Long/Month/9",
+ "text": "September"
+ },
+ "$:/language/Date/Long/Month/10": {
+ "title": "$:/language/Date/Long/Month/10",
+ "text": "October"
+ },
+ "$:/language/Date/Long/Month/11": {
+ "title": "$:/language/Date/Long/Month/11",
+ "text": "November"
+ },
+ "$:/language/Date/Long/Month/12": {
+ "title": "$:/language/Date/Long/Month/12",
+ "text": "December"
+ },
+ "$:/language/Date/Period/am": {
+ "title": "$:/language/Date/Period/am",
+ "text": "am"
+ },
+ "$:/language/Date/Period/pm": {
+ "title": "$:/language/Date/Period/pm",
+ "text": "pm"
+ },
+ "$:/language/Date/Short/Day/0": {
+ "title": "$:/language/Date/Short/Day/0",
+ "text": "Sun"
+ },
+ "$:/language/Date/Short/Day/1": {
+ "title": "$:/language/Date/Short/Day/1",
+ "text": "Mon"
+ },
+ "$:/language/Date/Short/Day/2": {
+ "title": "$:/language/Date/Short/Day/2",
+ "text": "Tue"
+ },
+ "$:/language/Date/Short/Day/3": {
+ "title": "$:/language/Date/Short/Day/3",
+ "text": "Wed"
+ },
+ "$:/language/Date/Short/Day/4": {
+ "title": "$:/language/Date/Short/Day/4",
+ "text": "Thu"
+ },
+ "$:/language/Date/Short/Day/5": {
+ "title": "$:/language/Date/Short/Day/5",
+ "text": "Fri"
+ },
+ "$:/language/Date/Short/Day/6": {
+ "title": "$:/language/Date/Short/Day/6",
+ "text": "Sat"
+ },
+ "$:/language/Date/Short/Month/1": {
+ "title": "$:/language/Date/Short/Month/1",
+ "text": "Jan"
+ },
+ "$:/language/Date/Short/Month/2": {
+ "title": "$:/language/Date/Short/Month/2",
+ "text": "Feb"
+ },
+ "$:/language/Date/Short/Month/3": {
+ "title": "$:/language/Date/Short/Month/3",
+ "text": "Mar"
+ },
+ "$:/language/Date/Short/Month/4": {
+ "title": "$:/language/Date/Short/Month/4",
+ "text": "Apr"
+ },
+ "$:/language/Date/Short/Month/5": {
+ "title": "$:/language/Date/Short/Month/5",
+ "text": "May"
+ },
+ "$:/language/Date/Short/Month/6": {
+ "title": "$:/language/Date/Short/Month/6",
+ "text": "Jun"
+ },
+ "$:/language/Date/Short/Month/7": {
+ "title": "$:/language/Date/Short/Month/7",
+ "text": "Jul"
+ },
+ "$:/language/Date/Short/Month/8": {
+ "title": "$:/language/Date/Short/Month/8",
+ "text": "Aug"
+ },
+ "$:/language/Date/Short/Month/9": {
+ "title": "$:/language/Date/Short/Month/9",
+ "text": "Sep"
+ },
+ "$:/language/Date/Short/Month/10": {
+ "title": "$:/language/Date/Short/Month/10",
+ "text": "Oct"
+ },
+ "$:/language/Date/Short/Month/11": {
+ "title": "$:/language/Date/Short/Month/11",
+ "text": "Nov"
+ },
+ "$:/language/Date/Short/Month/12": {
+ "title": "$:/language/Date/Short/Month/12",
+ "text": "Dec"
+ },
+ "$:/language/RelativeDate/Future/Days": {
+ "title": "$:/language/RelativeDate/Future/Days",
+ "text": "<<period>> days from now"
+ },
+ "$:/language/RelativeDate/Future/Hours": {
+ "title": "$:/language/RelativeDate/Future/Hours",
+ "text": "<<period>> hours from now"
+ },
+ "$:/language/RelativeDate/Future/Minutes": {
+ "title": "$:/language/RelativeDate/Future/Minutes",
+ "text": "<<period>> minutes from now"
+ },
+ "$:/language/RelativeDate/Future/Months": {
+ "title": "$:/language/RelativeDate/Future/Months",
+ "text": "<<period>> months from now"
+ },
+ "$:/language/RelativeDate/Future/Second": {
+ "title": "$:/language/RelativeDate/Future/Second",
+ "text": "1 second from now"
+ },
+ "$:/language/RelativeDate/Future/Seconds": {
+ "title": "$:/language/RelativeDate/Future/Seconds",
+ "text": "<<period>> seconds from now"
+ },
+ "$:/language/RelativeDate/Future/Years": {
+ "title": "$:/language/RelativeDate/Future/Years",
+ "text": "<<period>> years from now"
+ },
+ "$:/language/RelativeDate/Past/Days": {
+ "title": "$:/language/RelativeDate/Past/Days",
+ "text": "<<period>> days ago"
+ },
+ "$:/language/RelativeDate/Past/Hours": {
+ "title": "$:/language/RelativeDate/Past/Hours",
+ "text": "<<period>> hours ago"
+ },
+ "$:/language/RelativeDate/Past/Minutes": {
+ "title": "$:/language/RelativeDate/Past/Minutes",
+ "text": "<<period>> minutes ago"
+ },
+ "$:/language/RelativeDate/Past/Months": {
+ "title": "$:/language/RelativeDate/Past/Months",
+ "text": "<<period>> months ago"
+ },
+ "$:/language/RelativeDate/Past/Second": {
+ "title": "$:/language/RelativeDate/Past/Second",
+ "text": "1 second ago"
+ },
+ "$:/language/RelativeDate/Past/Seconds": {
+ "title": "$:/language/RelativeDate/Past/Seconds",
+ "text": "<<period>> seconds ago"
+ },
+ "$:/language/RelativeDate/Past/Years": {
+ "title": "$:/language/RelativeDate/Past/Years",
+ "text": "<<period>> years ago"
+ },
+ "$:/language/Docs/ModuleTypes/allfilteroperator": {
+ "title": "$:/language/Docs/ModuleTypes/allfilteroperator",
+ "text": "A sub-operator for the ''all'' filter operator."
+ },
+ "$:/language/Docs/ModuleTypes/animation": {
+ "title": "$:/language/Docs/ModuleTypes/animation",
+ "text": "Animations that may be used with the RevealWidget."
+ },
+ "$:/language/Docs/ModuleTypes/authenticator": {
+ "title": "$:/language/Docs/ModuleTypes/authenticator",
+ "text": "Defines how requests are authenticated by the built-in HTTP server."
+ },
+ "$:/language/Docs/ModuleTypes/bitmapeditoroperation": {
+ "title": "$:/language/Docs/ModuleTypes/bitmapeditoroperation",
+ "text": "A bitmap editor toolbar operation."
+ },
+ "$:/language/Docs/ModuleTypes/command": {
+ "title": "$:/language/Docs/ModuleTypes/command",
+ "text": "Commands that can be executed under Node.js."
+ },
+ "$:/language/Docs/ModuleTypes/config": {
+ "title": "$:/language/Docs/ModuleTypes/config",
+ "text": "Data to be inserted into `$tw.config`."
+ },
+ "$:/language/Docs/ModuleTypes/filteroperator": {
+ "title": "$:/language/Docs/ModuleTypes/filteroperator",
+ "text": "Individual filter operator methods."
+ },
+ "$:/language/Docs/ModuleTypes/global": {
+ "title": "$:/language/Docs/ModuleTypes/global",
+ "text": "Global data to be inserted into `$tw`."
+ },
+ "$:/language/Docs/ModuleTypes/info": {
+ "title": "$:/language/Docs/ModuleTypes/info",
+ "text": "Publishes system information via the [[$:/temp/info-plugin]] pseudo-plugin."
+ },
+ "$:/language/Docs/ModuleTypes/isfilteroperator": {
+ "title": "$:/language/Docs/ModuleTypes/isfilteroperator",
+ "text": "Operands for the ''is'' filter operator."
+ },
+ "$:/language/Docs/ModuleTypes/library": {
+ "title": "$:/language/Docs/ModuleTypes/library",
+ "text": "Generic module type for general purpose JavaScript modules."
+ },
+ "$:/language/Docs/ModuleTypes/macro": {
+ "title": "$:/language/Docs/ModuleTypes/macro",
+ "text": "JavaScript macro definitions."
+ },
+ "$:/language/Docs/ModuleTypes/parser": {
+ "title": "$:/language/Docs/ModuleTypes/parser",
+ "text": "Parsers for different content types."
+ },
+ "$:/language/Docs/ModuleTypes/route": {
+ "title": "$:/language/Docs/ModuleTypes/route",
+ "text": "Defines how individual URL patterns are handled by the built-in HTTP server."
+ },
+ "$:/language/Docs/ModuleTypes/saver": {
+ "title": "$:/language/Docs/ModuleTypes/saver",
+ "text": "Savers handle different methods for saving files from the browser."
+ },
+ "$:/language/Docs/ModuleTypes/startup": {
+ "title": "$:/language/Docs/ModuleTypes/startup",
+ "text": "Startup functions."
+ },
+ "$:/language/Docs/ModuleTypes/storyview": {
+ "title": "$:/language/Docs/ModuleTypes/storyview",
+ "text": "Story views customise the animation and behaviour of list widgets."
+ },
+ "$:/language/Docs/ModuleTypes/texteditoroperation": {
+ "title": "$:/language/Docs/ModuleTypes/texteditoroperation",
+ "text": "A text editor toolbar operation."
+ },
+ "$:/language/Docs/ModuleTypes/tiddlerdeserializer": {
+ "title": "$:/language/Docs/ModuleTypes/tiddlerdeserializer",
+ "text": "Converts different content types into tiddlers."
+ },
+ "$:/language/Docs/ModuleTypes/tiddlerfield": {
+ "title": "$:/language/Docs/ModuleTypes/tiddlerfield",
+ "text": "Defines the behaviour of an individual tiddler field."
+ },
+ "$:/language/Docs/ModuleTypes/tiddlermethod": {
+ "title": "$:/language/Docs/ModuleTypes/tiddlermethod",
+ "text": "Adds methods to the `$tw.Tiddler` prototype."
+ },
+ "$:/language/Docs/ModuleTypes/upgrader": {
+ "title": "$:/language/Docs/ModuleTypes/upgrader",
+ "text": "Applies upgrade processing to tiddlers during an upgrade/import."
+ },
+ "$:/language/Docs/ModuleTypes/utils": {
+ "title": "$:/language/Docs/ModuleTypes/utils",
+ "text": "Adds methods to `$tw.utils`."
+ },
+ "$:/language/Docs/ModuleTypes/utils-node": {
+ "title": "$:/language/Docs/ModuleTypes/utils-node",
+ "text": "Adds Node.js-specific methods to `$tw.utils`."
+ },
+ "$:/language/Docs/ModuleTypes/widget": {
+ "title": "$:/language/Docs/ModuleTypes/widget",
+ "text": "Widgets encapsulate DOM rendering and refreshing."
+ },
+ "$:/language/Docs/ModuleTypes/wikimethod": {
+ "title": "$:/language/Docs/ModuleTypes/wikimethod",
+ "text": "Adds methods to `$tw.Wiki`."
+ },
+ "$:/language/Docs/ModuleTypes/wikirule": {
+ "title": "$:/language/Docs/ModuleTypes/wikirule",
+ "text": "Individual parser rules for the main WikiText parser."
+ },
+ "$:/language/Docs/PaletteColours/alert-background": {
+ "title": "$:/language/Docs/PaletteColours/alert-background",
+ "text": "Alert background"
+ },
+ "$:/language/Docs/PaletteColours/alert-border": {
+ "title": "$:/language/Docs/PaletteColours/alert-border",
+ "text": "Alert border"
+ },
+ "$:/language/Docs/PaletteColours/alert-highlight": {
+ "title": "$:/language/Docs/PaletteColours/alert-highlight",
+ "text": "Alert highlight"
+ },
+ "$:/language/Docs/PaletteColours/alert-muted-foreground": {
+ "title": "$:/language/Docs/PaletteColours/alert-muted-foreground",
+ "text": "Alert muted foreground"
+ },
+ "$:/language/Docs/PaletteColours/background": {
+ "title": "$:/language/Docs/PaletteColours/background",
+ "text": "General background"
+ },
+ "$:/language/Docs/PaletteColours/blockquote-bar": {
+ "title": "$:/language/Docs/PaletteColours/blockquote-bar",
+ "text": "Blockquote bar"
+ },
+ "$:/language/Docs/PaletteColours/button-background": {
+ "title": "$:/language/Docs/PaletteColours/button-background",
+ "text": "Default button background"
+ },
+ "$:/language/Docs/PaletteColours/button-border": {
+ "title": "$:/language/Docs/PaletteColours/button-border",
+ "text": "Default button border"
+ },
+ "$:/language/Docs/PaletteColours/button-foreground": {
+ "title": "$:/language/Docs/PaletteColours/button-foreground",
+ "text": "Default button foreground"
+ },
+ "$:/language/Docs/PaletteColours/dirty-indicator": {
+ "title": "$:/language/Docs/PaletteColours/dirty-indicator",
+ "text": "Unsaved changes indicator"
+ },
+ "$:/language/Docs/PaletteColours/code-background": {
+ "title": "$:/language/Docs/PaletteColours/code-background",
+ "text": "Code background"
+ },
+ "$:/language/Docs/PaletteColours/code-border": {
+ "title": "$:/language/Docs/PaletteColours/code-border",
+ "text": "Code border"
+ },
+ "$:/language/Docs/PaletteColours/code-foreground": {
+ "title": "$:/language/Docs/PaletteColours/code-foreground",
+ "text": "Code foreground"
+ },
+ "$:/language/Docs/PaletteColours/download-background": {
+ "title": "$:/language/Docs/PaletteColours/download-background",
+ "text": "Download button background"
+ },
+ "$:/language/Docs/PaletteColours/download-foreground": {
+ "title": "$:/language/Docs/PaletteColours/download-foreground",
+ "text": "Download button foreground"
+ },
+ "$:/language/Docs/PaletteColours/dragger-background": {
+ "title": "$:/language/Docs/PaletteColours/dragger-background",
+ "text": "Dragger background"
+ },
+ "$:/language/Docs/PaletteColours/dragger-foreground": {
+ "title": "$:/language/Docs/PaletteColours/dragger-foreground",
+ "text": "Dragger foreground"
+ },
+ "$:/language/Docs/PaletteColours/dropdown-background": {
+ "title": "$:/language/Docs/PaletteColours/dropdown-background",
+ "text": "Dropdown background"
+ },
+ "$:/language/Docs/PaletteColours/dropdown-border": {
+ "title": "$:/language/Docs/PaletteColours/dropdown-border",
+ "text": "Dropdown border"
+ },
+ "$:/language/Docs/PaletteColours/dropdown-tab-background-selected": {
+ "title": "$:/language/Docs/PaletteColours/dropdown-tab-background-selected",
+ "text": "Dropdown tab background for selected tabs"
+ },
+ "$:/language/Docs/PaletteColours/dropdown-tab-background": {
+ "title": "$:/language/Docs/PaletteColours/dropdown-tab-background",
+ "text": "Dropdown tab background"
+ },
+ "$:/language/Docs/PaletteColours/dropzone-background": {
+ "title": "$:/language/Docs/PaletteColours/dropzone-background",
+ "text": "Dropzone background"
+ },
+ "$:/language/Docs/PaletteColours/external-link-background-hover": {
+ "title": "$:/language/Docs/PaletteColours/external-link-background-hover",
+ "text": "External link background hover"
+ },
+ "$:/language/Docs/PaletteColours/external-link-background-visited": {
+ "title": "$:/language/Docs/PaletteColours/external-link-background-visited",
+ "text": "External link background visited"
+ },
+ "$:/language/Docs/PaletteColours/external-link-background": {
+ "title": "$:/language/Docs/PaletteColours/external-link-background",
+ "text": "External link background"
+ },
+ "$:/language/Docs/PaletteColours/external-link-foreground-hover": {
+ "title": "$:/language/Docs/PaletteColours/external-link-foreground-hover",
+ "text": "External link foreground hover"
+ },
+ "$:/language/Docs/PaletteColours/external-link-foreground-visited": {
+ "title": "$:/language/Docs/PaletteColours/external-link-foreground-visited",
+ "text": "External link foreground visited"
+ },
+ "$:/language/Docs/PaletteColours/external-link-foreground": {
+ "title": "$:/language/Docs/PaletteColours/external-link-foreground",
+ "text": "External link foreground"
+ },
+ "$:/language/Docs/PaletteColours/foreground": {
+ "title": "$:/language/Docs/PaletteColours/foreground",
+ "text": "General foreground"
+ },
+ "$:/language/Docs/PaletteColours/menubar-background": {
+ "title": "$:/language/Docs/PaletteColours/menubar-background",
+ "text": "Menu bar background"
+ },
+ "$:/language/Docs/PaletteColours/menubar-foreground": {
+ "title": "$:/language/Docs/PaletteColours/menubar-foreground",
+ "text": "Menu bar foreground"
+ },
+ "$:/language/Docs/PaletteColours/message-background": {
+ "title": "$:/language/Docs/PaletteColours/message-background",
+ "text": "Message box background"
+ },
+ "$:/language/Docs/PaletteColours/message-border": {
+ "title": "$:/language/Docs/PaletteColours/message-border",
+ "text": "Message box border"
+ },
+ "$:/language/Docs/PaletteColours/message-foreground": {
+ "title": "$:/language/Docs/PaletteColours/message-foreground",
+ "text": "Message box foreground"
+ },
+ "$:/language/Docs/PaletteColours/modal-backdrop": {
+ "title": "$:/language/Docs/PaletteColours/modal-backdrop",
+ "text": "Modal backdrop"
+ },
+ "$:/language/Docs/PaletteColours/modal-background": {
+ "title": "$:/language/Docs/PaletteColours/modal-background",
+ "text": "Modal background"
+ },
+ "$:/language/Docs/PaletteColours/modal-border": {
+ "title": "$:/language/Docs/PaletteColours/modal-border",
+ "text": "Modal border"
+ },
+ "$:/language/Docs/PaletteColours/modal-footer-background": {
+ "title": "$:/language/Docs/PaletteColours/modal-footer-background",
+ "text": "Modal footer background"
+ },
+ "$:/language/Docs/PaletteColours/modal-footer-border": {
+ "title": "$:/language/Docs/PaletteColours/modal-footer-border",
+ "text": "Modal footer border"
+ },
+ "$:/language/Docs/PaletteColours/modal-header-border": {
+ "title": "$:/language/Docs/PaletteColours/modal-header-border",
+ "text": "Modal header border"
+ },
+ "$:/language/Docs/PaletteColours/muted-foreground": {
+ "title": "$:/language/Docs/PaletteColours/muted-foreground",
+ "text": "General muted foreground"
+ },
+ "$:/language/Docs/PaletteColours/notification-background": {
+ "title": "$:/language/Docs/PaletteColours/notification-background",
+ "text": "Notification background"
+ },
+ "$:/language/Docs/PaletteColours/notification-border": {
+ "title": "$:/language/Docs/PaletteColours/notification-border",
+ "text": "Notification border"
+ },
+ "$:/language/Docs/PaletteColours/page-background": {
+ "title": "$:/language/Docs/PaletteColours/page-background",
+ "text": "Page background"
+ },
+ "$:/language/Docs/PaletteColours/pre-background": {
+ "title": "$:/language/Docs/PaletteColours/pre-background",
+ "text": "Preformatted code background"
+ },
+ "$:/language/Docs/PaletteColours/pre-border": {
+ "title": "$:/language/Docs/PaletteColours/pre-border",
+ "text": "Preformatted code border"
+ },
+ "$:/language/Docs/PaletteColours/primary": {
+ "title": "$:/language/Docs/PaletteColours/primary",
+ "text": "General primary"
+ },
+ "$:/language/Docs/PaletteColours/select-tag-background": {
+ "title": "$:/language/Docs/PaletteColours/select-tag-background",
+ "text": "`<select>` element background"
+ },
+ "$:/language/Docs/PaletteColours/select-tag-foreground": {
+ "title": "$:/language/Docs/PaletteColours/select-tag-foreground",
+ "text": "`<select>` element text"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-button-foreground": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-button-foreground",
+ "text": "Sidebar button foreground"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-controls-foreground-hover": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-controls-foreground-hover",
+ "text": "Sidebar controls foreground hover"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-controls-foreground": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-controls-foreground",
+ "text": "Sidebar controls foreground"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-foreground-shadow": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-foreground-shadow",
+ "text": "Sidebar foreground shadow"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-foreground": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-foreground",
+ "text": "Sidebar foreground"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-muted-foreground-hover": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-muted-foreground-hover",
+ "text": "Sidebar muted foreground hover"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-muted-foreground": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-muted-foreground",
+ "text": "Sidebar muted foreground"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-tab-background-selected": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-tab-background-selected",
+ "text": "Sidebar tab background for selected tabs"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-tab-background": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-tab-background",
+ "text": "Sidebar tab background"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-tab-border-selected": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-tab-border-selected",
+ "text": "Sidebar tab border for selected tabs"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-tab-border": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-tab-border",
+ "text": "Sidebar tab border"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-tab-divider": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-tab-divider",
+ "text": "Sidebar tab divider"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-tab-foreground-selected": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-tab-foreground-selected",
+ "text": "Sidebar tab foreground for selected tabs"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-tab-foreground": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-tab-foreground",
+ "text": "Sidebar tab foreground"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground-hover": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground-hover",
+ "text": "Sidebar tiddler link foreground hover"
+ },
+ "$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground": {
+ "title": "$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground",
+ "text": "Sidebar tiddler link foreground"
+ },
+ "$:/language/Docs/PaletteColours/site-title-foreground": {
+ "title": "$:/language/Docs/PaletteColours/site-title-foreground",
+ "text": "Site title foreground"
+ },
+ "$:/language/Docs/PaletteColours/static-alert-foreground": {
+ "title": "$:/language/Docs/PaletteColours/static-alert-foreground",
+ "text": "Static alert foreground"
+ },
+ "$:/language/Docs/PaletteColours/tab-background-selected": {
+ "title": "$:/language/Docs/PaletteColours/tab-background-selected",
+ "text": "Tab background for selected tabs"
+ },
+ "$:/language/Docs/PaletteColours/tab-background": {
+ "title": "$:/language/Docs/PaletteColours/tab-background",
+ "text": "Tab background"
+ },
+ "$:/language/Docs/PaletteColours/tab-border-selected": {
+ "title": "$:/language/Docs/PaletteColours/tab-border-selected",
+ "text": "Tab border for selected tabs"
+ },
+ "$:/language/Docs/PaletteColours/tab-border": {
+ "title": "$:/language/Docs/PaletteColours/tab-border",
+ "text": "Tab border"
+ },
+ "$:/language/Docs/PaletteColours/tab-divider": {
+ "title": "$:/language/Docs/PaletteColours/tab-divider",
+ "text": "Tab divider"
+ },
+ "$:/language/Docs/PaletteColours/tab-foreground-selected": {
+ "title": "$:/language/Docs/PaletteColours/tab-foreground-selected",
+ "text": "Tab foreground for selected tabs"
+ },
+ "$:/language/Docs/PaletteColours/tab-foreground": {
+ "title": "$:/language/Docs/PaletteColours/tab-foreground",
+ "text": "Tab foreground"
+ },
+ "$:/language/Docs/PaletteColours/table-border": {
+ "title": "$:/language/Docs/PaletteColours/table-border",
+ "text": "Table border"
+ },
+ "$:/language/Docs/PaletteColours/table-footer-background": {
+ "title": "$:/language/Docs/PaletteColours/table-footer-background",
+ "text": "Table footer background"
+ },
+ "$:/language/Docs/PaletteColours/table-header-background": {
+ "title": "$:/language/Docs/PaletteColours/table-header-background",
+ "text": "Table header background"
+ },
+ "$:/language/Docs/PaletteColours/tag-background": {
+ "title": "$:/language/Docs/PaletteColours/tag-background",
+ "text": "Tag background"
+ },
+ "$:/language/Docs/PaletteColours/tag-foreground": {
+ "title": "$:/language/Docs/PaletteColours/tag-foreground",
+ "text": "Tag foreground"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-background": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-background",
+ "text": "Tiddler background"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-border": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-border",
+ "text": "Tiddler border"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-controls-foreground-hover": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-controls-foreground-hover",
+ "text": "Tiddler controls foreground hover"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-controls-foreground-selected": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-controls-foreground-selected",
+ "text": "Tiddler controls foreground for selected controls"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-controls-foreground": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-controls-foreground",
+ "text": "Tiddler controls foreground"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-editor-background": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-editor-background",
+ "text": "Tiddler editor background"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-editor-border-image": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-editor-border-image",
+ "text": "Tiddler editor border image"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-editor-border": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-editor-border",
+ "text": "Tiddler editor border"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-editor-fields-even": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-editor-fields-even",
+ "text": "Tiddler editor background for even fields"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-editor-fields-odd": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-editor-fields-odd",
+ "text": "Tiddler editor background for odd fields"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-info-background": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-info-background",
+ "text": "Tiddler info panel background"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-info-border": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-info-border",
+ "text": "Tiddler info panel border"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-info-tab-background": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-info-tab-background",
+ "text": "Tiddler info panel tab background"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-link-background": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-link-background",
+ "text": "Tiddler link background"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-link-foreground": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-link-foreground",
+ "text": "Tiddler link foreground"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-subtitle-foreground": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-subtitle-foreground",
+ "text": "Tiddler subtitle foreground"
+ },
+ "$:/language/Docs/PaletteColours/tiddler-title-foreground": {
+ "title": "$:/language/Docs/PaletteColours/tiddler-title-foreground",
+ "text": "Tiddler title foreground"
+ },
+ "$:/language/Docs/PaletteColours/toolbar-new-button": {
+ "title": "$:/language/Docs/PaletteColours/toolbar-new-button",
+ "text": "Toolbar 'new tiddler' button foreground"
+ },
+ "$:/language/Docs/PaletteColours/toolbar-options-button": {
+ "title": "$:/language/Docs/PaletteColours/toolbar-options-button",
+ "text": "Toolbar 'options' button foreground"
+ },
+ "$:/language/Docs/PaletteColours/toolbar-save-button": {
+ "title": "$:/language/Docs/PaletteColours/toolbar-save-button",
+ "text": "Toolbar 'save' button foreground"
+ },
+ "$:/language/Docs/PaletteColours/toolbar-info-button": {
+ "title": "$:/language/Docs/PaletteColours/toolbar-info-button",
+ "text": "Toolbar 'info' button foreground"
+ },
+ "$:/language/Docs/PaletteColours/toolbar-edit-button": {
+ "title": "$:/language/Docs/PaletteColours/toolbar-edit-button",
+ "text": "Toolbar 'edit' button foreground"
+ },
+ "$:/language/Docs/PaletteColours/toolbar-close-button": {
+ "title": "$:/language/Docs/PaletteColours/toolbar-close-button",
+ "text": "Toolbar 'close' button foreground"
+ },
+ "$:/language/Docs/PaletteColours/toolbar-delete-button": {
+ "title": "$:/language/Docs/PaletteColours/toolbar-delete-button",
+ "text": "Toolbar 'delete' button foreground"
+ },
+ "$:/language/Docs/PaletteColours/toolbar-cancel-button": {
+ "title": "$:/language/Docs/PaletteColours/toolbar-cancel-button",
+ "text": "Toolbar 'cancel' button foreground"
+ },
+ "$:/language/Docs/PaletteColours/toolbar-done-button": {
+ "title": "$:/language/Docs/PaletteColours/toolbar-done-button",
+ "text": "Toolbar 'done' button foreground"
+ },
+ "$:/language/Docs/PaletteColours/untagged-background": {
+ "title": "$:/language/Docs/PaletteColours/untagged-background",
+ "text": "Untagged pill background"
+ },
+ "$:/language/Docs/PaletteColours/very-muted-foreground": {
+ "title": "$:/language/Docs/PaletteColours/very-muted-foreground",
+ "text": "Very muted foreground"
+ },
+ "$:/language/EditTemplate/Body/External/Hint": {
+ "title": "$:/language/EditTemplate/Body/External/Hint",
+ "text": "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"
+ },
+ "$:/language/EditTemplate/Body/Placeholder": {
+ "title": "$:/language/EditTemplate/Body/Placeholder",
+ "text": "Type the text for this tiddler"
+ },
+ "$:/language/EditTemplate/Body/Preview/Type/Output": {
+ "title": "$:/language/EditTemplate/Body/Preview/Type/Output",
+ "text": "output"
+ },
+ "$:/language/EditTemplate/Field/Remove/Caption": {
+ "title": "$:/language/EditTemplate/Field/Remove/Caption",
+ "text": "remove field"
+ },
+ "$:/language/EditTemplate/Field/Remove/Hint": {
+ "title": "$:/language/EditTemplate/Field/Remove/Hint",
+ "text": "Remove field"
+ },
+ "$:/language/EditTemplate/Field/Dropdown/Caption": {
+ "title": "$:/language/EditTemplate/Field/Dropdown/Caption",
+ "text": "field list"
+ },
+ "$:/language/EditTemplate/Field/Dropdown/Hint": {
+ "title": "$:/language/EditTemplate/Field/Dropdown/Hint",
+ "text": "Show field list"
+ },
+ "$:/language/EditTemplate/Fields/Add/Button": {
+ "title": "$:/language/EditTemplate/Fields/Add/Button",
+ "text": "add"
+ },
+ "$:/language/EditTemplate/Fields/Add/Button/Hint": {
+ "title": "$:/language/EditTemplate/Fields/Add/Button/Hint",
+ "text": "Add the new field to the tiddler"
+ },
+ "$:/language/EditTemplate/Fields/Add/Name/Placeholder": {
+ "title": "$:/language/EditTemplate/Fields/Add/Name/Placeholder",
+ "text": "field name"
+ },
+ "$:/language/EditTemplate/Fields/Add/Prompt": {
+ "title": "$:/language/EditTemplate/Fields/Add/Prompt",
+ "text": "Add a new field:"
+ },
+ "$:/language/EditTemplate/Fields/Add/Value/Placeholder": {
+ "title": "$:/language/EditTemplate/Fields/Add/Value/Placeholder",
+ "text": "field value"
+ },
+ "$:/language/EditTemplate/Fields/Add/Dropdown/System": {
+ "title": "$:/language/EditTemplate/Fields/Add/Dropdown/System",
+ "text": "System fields"
+ },
+ "$:/language/EditTemplate/Fields/Add/Dropdown/User": {
+ "title": "$:/language/EditTemplate/Fields/Add/Dropdown/User",
+ "text": "User fields"
+ },
+ "$:/language/EditTemplate/Shadow/Warning": {
+ "title": "$:/language/EditTemplate/Shadow/Warning",
+ "text": "This is a shadow tiddler. Any changes you make will override the default version from the plugin <<pluginLink>>"
+ },
+ "$:/language/EditTemplate/Shadow/OverriddenWarning": {
+ "title": "$:/language/EditTemplate/Shadow/OverriddenWarning",
+ "text": "This is a modified shadow tiddler. You can revert to the default version in the plugin <<pluginLink>> by deleting this tiddler"
+ },
+ "$:/language/EditTemplate/Tags/Add/Button": {
+ "title": "$:/language/EditTemplate/Tags/Add/Button",
+ "text": "add"
+ },
+ "$:/language/EditTemplate/Tags/Add/Button/Hint": {
+ "title": "$:/language/EditTemplate/Tags/Add/Button/Hint",
+ "text": "add tag"
+ },
+ "$:/language/EditTemplate/Tags/Add/Placeholder": {
+ "title": "$:/language/EditTemplate/Tags/Add/Placeholder",
+ "text": "tag name"
+ },
+ "$:/language/EditTemplate/Tags/ClearInput/Caption": {
+ "title": "$:/language/EditTemplate/Tags/ClearInput/Caption",
+ "text": "clear input"
+ },
+ "$:/language/EditTemplate/Tags/ClearInput/Hint": {
+ "title": "$:/language/EditTemplate/Tags/ClearInput/Hint",
+ "text": "Clear tag input"
+ },
+ "$:/language/EditTemplate/Tags/Dropdown/Caption": {
+ "title": "$:/language/EditTemplate/Tags/Dropdown/Caption",
+ "text": "tag list"
+ },
+ "$:/language/EditTemplate/Tags/Dropdown/Hint": {
+ "title": "$:/language/EditTemplate/Tags/Dropdown/Hint",
+ "text": "Show tag list"
+ },
+ "$:/language/EditTemplate/Title/BadCharacterWarning": {
+ "title": "$:/language/EditTemplate/Title/BadCharacterWarning",
+ "text": "Warning: avoid using any of the characters <<bad-chars>> in tiddler titles"
+ },
+ "$:/language/EditTemplate/Title/Exists/Prompt": {
+ "title": "$:/language/EditTemplate/Title/Exists/Prompt",
+ "text": "Target tiddler already exists"
+ },
+ "$:/language/EditTemplate/Title/Relink/Prompt": {
+ "title": "$:/language/EditTemplate/Title/Relink/Prompt",
+ "text": "Update ''<$text text=<<fromTitle>>/>'' to ''<$text text=<<toTitle>>/>'' in the //tags// and //list// fields of other tiddlers"
+ },
+ "$:/language/EditTemplate/Title/References/Prompt": {
+ "title": "$:/language/EditTemplate/Title/References/Prompt",
+ "text": "The following references to this tiddler will not be automatically updated:"
+ },
+ "$:/language/EditTemplate/Type/Dropdown/Caption": {
+ "title": "$:/language/EditTemplate/Type/Dropdown/Caption",
+ "text": "content type list"
+ },
+ "$:/language/EditTemplate/Type/Dropdown/Hint": {
+ "title": "$:/language/EditTemplate/Type/Dropdown/Hint",
+ "text": "Show content type list"
+ },
+ "$:/language/EditTemplate/Type/Delete/Caption": {
+ "title": "$:/language/EditTemplate/Type/Delete/Caption",
+ "text": "delete content type"
+ },
+ "$:/language/EditTemplate/Type/Delete/Hint": {
+ "title": "$:/language/EditTemplate/Type/Delete/Hint",
+ "text": "Delete content type"
+ },
+ "$:/language/EditTemplate/Type/Placeholder": {
+ "title": "$:/language/EditTemplate/Type/Placeholder",
+ "text": "content type"
+ },
+ "$:/language/EditTemplate/Type/Prompt": {
+ "title": "$:/language/EditTemplate/Type/Prompt",
+ "text": "Type:"
+ },
+ "$:/language/Exporters/StaticRiver": {
+ "title": "$:/language/Exporters/StaticRiver",
+ "text": "Static HTML"
+ },
+ "$:/language/Exporters/JsonFile": {
+ "title": "$:/language/Exporters/JsonFile",
+ "text": "JSON file"
+ },
+ "$:/language/Exporters/CsvFile": {
+ "title": "$:/language/Exporters/CsvFile",
+ "text": "CSV file"
+ },
+ "$:/language/Exporters/TidFile": {
+ "title": "$:/language/Exporters/TidFile",
+ "text": "\".tid\" file"
+ },
+ "$:/language/Docs/Fields/_canonical_uri": {
+ "title": "$:/language/Docs/Fields/_canonical_uri",
+ "text": "The full URI of an external image tiddler"
+ },
+ "$:/language/Docs/Fields/bag": {
+ "title": "$:/language/Docs/Fields/bag",
+ "text": "The name of the bag from which a tiddler came"
+ },
+ "$:/language/Docs/Fields/caption": {
+ "title": "$:/language/Docs/Fields/caption",
+ "text": "The text to be displayed on a tab or button"
+ },
+ "$:/language/Docs/Fields/color": {
+ "title": "$:/language/Docs/Fields/color",
+ "text": "The CSS color value associated with a tiddler"
+ },
+ "$:/language/Docs/Fields/component": {
+ "title": "$:/language/Docs/Fields/component",
+ "text": "The name of the component responsible for an [[alert tiddler|AlertMechanism]]"
+ },
+ "$:/language/Docs/Fields/current-tiddler": {
+ "title": "$:/language/Docs/Fields/current-tiddler",
+ "text": "Used to cache the top tiddler in a [[history list|HistoryMechanism]]"
+ },
+ "$:/language/Docs/Fields/created": {
+ "title": "$:/language/Docs/Fields/created",
+ "text": "The date a tiddler was created"
+ },
+ "$:/language/Docs/Fields/creator": {
+ "title": "$:/language/Docs/Fields/creator",
+ "text": "The name of the person who created a tiddler"
+ },
+ "$:/language/Docs/Fields/dependents": {
+ "title": "$:/language/Docs/Fields/dependents",
+ "text": "For a plugin, lists the dependent plugin titles"
+ },
+ "$:/language/Docs/Fields/description": {
+ "title": "$:/language/Docs/Fields/description",
+ "text": "The descriptive text for a plugin, or a modal dialogue"
+ },
+ "$:/language/Docs/Fields/draft.of": {
+ "title": "$:/language/Docs/Fields/draft.of",
+ "text": "For draft tiddlers, contains the title of the tiddler of which this is a draft"
+ },
+ "$:/language/Docs/Fields/draft.title": {
+ "title": "$:/language/Docs/Fields/draft.title",
+ "text": "For draft tiddlers, contains the proposed new title of the tiddler"
+ },
+ "$:/language/Docs/Fields/footer": {
+ "title": "$:/language/Docs/Fields/footer",
+ "text": "The footer text for a wizard"
+ },
+ "$:/language/Docs/Fields/hide-body": {
+ "title": "$:/language/Docs/Fields/hide-body",
+ "text": "The view template will hide bodies of tiddlers if set to: ''yes''"
+ },
+ "$:/language/Docs/Fields/icon": {
+ "title": "$:/language/Docs/Fields/icon",
+ "text": "The title of the tiddler containing the icon associated with a tiddler"
+ },
+ "$:/language/Docs/Fields/library": {
+ "title": "$:/language/Docs/Fields/library",
+ "text": "Indicates that a tiddler should be saved as a JavaScript library if set to: ''yes''"
+ },
+ "$:/language/Docs/Fields/list": {
+ "title": "$:/language/Docs/Fields/list",
+ "text": "An ordered list of tiddler titles associated with a tiddler"
+ },
+ "$:/language/Docs/Fields/list-before": {
+ "title": "$:/language/Docs/Fields/list-before",
+ "text": "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"
+ },
+ "$:/language/Docs/Fields/list-after": {
+ "title": "$:/language/Docs/Fields/list-after",
+ "text": "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"
+ },
+ "$:/language/Docs/Fields/modified": {
+ "title": "$:/language/Docs/Fields/modified",
+ "text": "The date and time at which a tiddler was last modified"
+ },
+ "$:/language/Docs/Fields/modifier": {
+ "title": "$:/language/Docs/Fields/modifier",
+ "text": "The tiddler title associated with the person who last modified a tiddler"
+ },
+ "$:/language/Docs/Fields/name": {
+ "title": "$:/language/Docs/Fields/name",
+ "text": "The human readable name associated with a plugin tiddler"
+ },
+ "$:/language/Docs/Fields/plugin-priority": {
+ "title": "$:/language/Docs/Fields/plugin-priority",
+ "text": "A numerical value indicating the priority of a plugin tiddler"
+ },
+ "$:/language/Docs/Fields/plugin-type": {
+ "title": "$:/language/Docs/Fields/plugin-type",
+ "text": "The type of plugin in a plugin tiddler"
+ },
+ "$:/language/Docs/Fields/revision": {
+ "title": "$:/language/Docs/Fields/revision",
+ "text": "The revision of the tiddler held at the server"
+ },
+ "$:/language/Docs/Fields/released": {
+ "title": "$:/language/Docs/Fields/released",
+ "text": "Date of a TiddlyWiki release"
+ },
+ "$:/language/Docs/Fields/source": {
+ "title": "$:/language/Docs/Fields/source",
+ "text": "The source URL associated with a tiddler"
+ },
+ "$:/language/Docs/Fields/subtitle": {
+ "title": "$:/language/Docs/Fields/subtitle",
+ "text": "The subtitle text for a wizard"
+ },
+ "$:/language/Docs/Fields/tags": {
+ "title": "$:/language/Docs/Fields/tags",
+ "text": "A list of tags associated with a tiddler"
+ },
+ "$:/language/Docs/Fields/text": {
+ "title": "$:/language/Docs/Fields/text",
+ "text": "The body text of a tiddler"
+ },
+ "$:/language/Docs/Fields/throttle.refresh": {
+ "title": "$:/language/Docs/Fields/throttle.refresh",
+ "text": "If present, throttles refreshes of this tiddler"
+ },
+ "$:/language/Docs/Fields/title": {
+ "title": "$:/language/Docs/Fields/title",
+ "text": "The unique name of a tiddler"
+ },
+ "$:/language/Docs/Fields/toc-link": {
+ "title": "$:/language/Docs/Fields/toc-link",
+ "text": "Suppresses the tiddler's link in a Table of Contents tree if set to: ''no''"
+ },
+ "$:/language/Docs/Fields/type": {
+ "title": "$:/language/Docs/Fields/type",
+ "text": "The content type of a tiddler"
+ },
+ "$:/language/Docs/Fields/version": {
+ "title": "$:/language/Docs/Fields/version",
+ "text": "Version information for a plugin"
+ },
+ "$:/language/Docs/Fields/_is_skinny": {
+ "title": "$:/language/Docs/Fields/_is_skinny",
+ "text": "If present, indicates that the tiddler text field must be loaded from the server"
+ },
+ "$:/language/Filters/AllTiddlers": {
+ "title": "$:/language/Filters/AllTiddlers",
+ "text": "All tiddlers except system tiddlers"
+ },
+ "$:/language/Filters/RecentSystemTiddlers": {
+ "title": "$:/language/Filters/RecentSystemTiddlers",
+ "text": "Recently modified tiddlers, including system tiddlers"
+ },
+ "$:/language/Filters/RecentTiddlers": {
+ "title": "$:/language/Filters/RecentTiddlers",
+ "text": "Recently modified tiddlers"
+ },
+ "$:/language/Filters/AllTags": {
+ "title": "$:/language/Filters/AllTags",
+ "text": "All tags except system tags"
+ },
+ "$:/language/Filters/Missing": {
+ "title": "$:/language/Filters/Missing",
+ "text": "Missing tiddlers"
+ },
+ "$:/language/Filters/Drafts": {
+ "title": "$:/language/Filters/Drafts",
+ "text": "Draft tiddlers"
+ },
+ "$:/language/Filters/Orphans": {
+ "title": "$:/language/Filters/Orphans",
+ "text": "Orphan tiddlers"
+ },
+ "$:/language/Filters/SystemTiddlers": {
+ "title": "$:/language/Filters/SystemTiddlers",
+ "text": "System tiddlers"
+ },
+ "$:/language/Filters/ShadowTiddlers": {
+ "title": "$:/language/Filters/ShadowTiddlers",
+ "text": "Shadow tiddlers"
+ },
+ "$:/language/Filters/OverriddenShadowTiddlers": {
+ "title": "$:/language/Filters/OverriddenShadowTiddlers",
+ "text": "Overridden shadow tiddlers"
+ },
+ "$:/language/Filters/SessionTiddlers": {
+ "title": "$:/language/Filters/SessionTiddlers",
+ "text": "Tiddlers modified since the wiki was loaded"
+ },
+ "$:/language/Filters/SystemTags": {
+ "title": "$:/language/Filters/SystemTags",
+ "text": "System tags"
+ },
+ "$:/language/Filters/StoryList": {
+ "title": "$:/language/Filters/StoryList",
+ "text": "Tiddlers in the story river, excluding <$text text=\"$:/AdvancedSearch\"/>"
+ },
+ "$:/language/Filters/TypedTiddlers": {
+ "title": "$:/language/Filters/TypedTiddlers",
+ "text": "Non wiki-text tiddlers"
+ },
+ "GettingStarted": {
+ "title": "GettingStarted",
+ "text": "\\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<div class=\"tc-control-panel\">\n\n|<$link to=\"$:/SiteTitle\"><<lingo Title/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteTitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/SiteSubtitle\"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteSubtitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/DefaultTiddlers\"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit tag=\"textarea\" tiddler=\"$:/DefaultTiddlers\"/><br>//<<lingo DefaultTiddlers/BottomHint>>// |\n</div>\n\nSee the [[control panel|$:/ControlPanel]] for more options.\n"
+ },
+ "$:/language/Help/build": {
+ "title": "$:/language/Help/build",
+ "description": "Automatically run configured commands",
+ "text": "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 <target> [<target> ...]\n```\n\nBuild targets are defined in the `tiddlywiki.info` file of a wiki folder.\n\n"
+ },
+ "$:/language/Help/clearpassword": {
+ "title": "$:/language/Help/clearpassword",
+ "description": "Clear a password for subsequent crypto operations",
+ "text": "Clear the password for subsequent crypto operations\n\n```\n--clearpassword\n```\n"
+ },
+ "$:/language/Help/default": {
+ "title": "$:/language/Help/default",
+ "text": "\\define commandTitle()\n$:/language/Help/$(command)$\n\\end\n```\nusage: tiddlywiki [<wikifolder>] [--<command> [<args>...]...]\n```\n\nAvailable commands:\n\n<ul>\n<$list filter=\"[commands[]sort[title]]\" variable=\"command\">\n<li><$link to=<<commandTitle>>><$macrocall $name=\"command\" $type=\"text/plain\" $output=\"text/plain\"/></$link>: <$transclude tiddler=<<commandTitle>> field=\"description\"/></li>\n</$list>\n</ul>\n\nTo get detailed help on a command:\n\n```\ntiddlywiki --help <command>\n```\n"
+ },
+ "$:/language/Help/deletetiddlers": {
+ "title": "$:/language/Help/deletetiddlers",
+ "description": "Deletes a group of tiddlers",
+ "text": "<<.from-version \"5.1.20\">> Deletes a group of tiddlers identified by a filter.\n\n```\n--deletetiddlers <filter>\n```\n"
+ },
+ "$:/language/Help/editions": {
+ "title": "$:/language/Help/editions",
+ "description": "Lists the available editions of TiddlyWiki",
+ "text": "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"
+ },
+ "$:/language/Help/fetch": {
+ "title": "$:/language/Help/fetch",
+ "description": "Fetch tiddlers from wiki by URL",
+ "text": "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 <url> <import-filter> <transform-filter>\n--fetch files <url-filter> <import-filter> <transform-filter>\n--fetch raw-file <url> <transform-filter>\n--fetch raw-files <url-filter> <transform-filter>\n```\n\nThe \"file\" and \"files\" 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 \"raw-file\" and \"raw-files\" variants fetch the specified files and then store the raw file data in tiddlers, without applying the import logic.\n\nWith the \"file\" and \"raw-file\" variants only a single file is fetched and the first parameter is the URL of the file to read.\n\nWith the \"files\" and \"raw-files\" 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 \"remote-server\" that have a field \"url\" the filter `[tag[remote-server]get[url]]` will retrieve all the available URLs.\n\nFor the \"file\" and \"files\" variants, the `<import-filter>` parameter specifies a filter determining which tiddlers are imported. It defaults to `[all[tiddlers]]` if not provided.\n\nFor all variants, the `<transform-filter>` 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 \"https://tiddlywiki.com/\" \"[!is[system]]\" \"\" --rendertiddler \"$:/core/templates/exporters/JsonFile\" output.json text/plain \"\" exportFilter \"[!is[system]]\"\n```\n\nThe following example retrieves the \"favicon\" file from tiddlywiki.com and saves it in a file called \"output.ico\". Note that the intermediate tiddler \"Icon Tiddler\" is quoted in the \"--fetch\" command because it is being used as a transformation filter to replace the default title, while there are no quotes for the \"--savetiddler\" command because it is being used directly as a title.\n\n```\ntiddlywiki --verbose --fetch raw-file \"https://tiddlywiki.com/favicon.ico\" \"[[Icon Tiddler]]\" --savetiddler \"Icon Tiddler\" output.ico\n```\n\n"
+ },
+ "$:/language/Help/help": {
+ "title": "$:/language/Help/help",
+ "description": "Display help for TiddlyWiki commands",
+ "text": "Displays help text for a command:\n\n```\n--help [<command>]\n```\n\nIf the command name is omitted then a list of available commands is displayed.\n"
+ },
+ "$:/language/Help/import": {
+ "title": "$:/language/Help/import",
+ "description": "Import tiddlers from a file",
+ "text": "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 <filepath> <deserializer> [<title>] [<encoding>]\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 \"utf8\", but can be \"base64\" for importing binary files.\n\nNote that TiddlyWiki will not import an older version of an already loaded plugin.\n"
+ },
+ "$:/language/Help/init": {
+ "title": "$:/language/Help/init",
+ "description": "Initialise a new wiki folder",
+ "text": "Initialise an empty [[WikiFolder|WikiFolders]] with a copy of the specified edition.\n\n```\n--init <edition> [<edition> ...]\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 \"edition\" 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"
+ },
+ "$:/language/Help/listen": {
+ "title": "$:/language/Help/listen",
+ "description": "Provides an HTTP server interface to TiddlyWiki",
+ "text": "Serves a wiki over HTTP.\n\nThe listen command uses NamedCommandParameters:\n\n```\n--listen [<name>=<value>]...\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 \"127.0.0.1\" aka \"localhost\")\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 \"8080\")\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 \"yes\" to disable CSRF checks (defaults to \"no\")\n* ''root-tiddler'' - the tiddler to serve at the root (defaults to \"$:/core/save/all\")\n* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to \"text/plain\")\n* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to \"text/html\")\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 \"debug\" to view request details (defaults to \"none\")\n* ''gzip'' - set to \"yes\" to enable gzip compression for some http endpoints (defaults to \"no\")\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"
+ },
+ "$:/language/Help/load": {
+ "title": "$:/language/Help/load",
+ "description": "Load tiddlers from a file",
+ "text": "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 <filepath> [noerror]\n--load <dirpath> [noerror]\n```\n\nBy default, the load command raises an error if no tiddlers are found. The error can be suppressed by providing the optional \"noerror\" parameter.\n\nTo load tiddlers from an encrypted TiddlyWiki file you should first specify the password with the PasswordCommand. For example:\n\n```\ntiddlywiki ./MyWiki --password pa55w0rd --load my_encrypted_wiki.html\n```\n\nNote that TiddlyWiki will not load an older version of an already loaded plugin.\n"
+ },
+ "$:/language/Help/makelibrary": {
+ "title": "$:/language/Help/makelibrary",
+ "description": "Construct library plugin required by upgrade process",
+ "text": "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 <title>\n```\n\nThe title argument defaults to `$:/UpgradeLibrary`.\n"
+ },
+ "$:/language/Help/notfound": {
+ "title": "$:/language/Help/notfound",
+ "text": "No such help item"
+ },
+ "$:/language/Help/output": {
+ "title": "$:/language/Help/output",
+ "description": "Set the base output directory for subsequent commands",
+ "text": "Sets the base output directory for subsequent commands. The default output directory is the `output` subdirectory of the edition directory.\n\n```\n--output <pathname>\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"
+ },
+ "$:/language/Help/password": {
+ "title": "$:/language/Help/password",
+ "description": "Set a password for subsequent crypto operations",
+ "text": "Set a password for subsequent crypto operations\n\n```\n--password <password>\n```\n\n''Note'': This should not be used for serving TiddlyWiki with password protection. Instead, see the password option under the [[ServerCommand]].\n"
+ },
+ "$:/language/Help/render": {
+ "title": "$:/language/Help/render",
+ "description": "Renders individual tiddlers to files",
+ "text": "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 \"currentTiddler\" 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 <tiddler-filter> [<filename-filter>] [<render-type>] [<template>] [<name>] [<value>]\n```\n\n* ''tiddler-filter'': A filter identifying the tiddler(s) to be rendered\n* ''filename-filter'': Optional filter transforming tiddler titles into pathnames. If omitted, defaults to `[is[tiddler]addsuffix[.html]]`, which uses the unchanged tiddler title as the filename\n* ''render-type'': Optional render type: `text/html` (the default) returns the full HTML text and `text/plain` just returns the text content (ie it ignores HTML tags and other unprintable material)\n* ''template'': Optional template through which each tiddler is rendered\n* ''name'': Name of optional variable\n* ''value'': Value of optional variable\n\nBy default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.\n\nNotes:\n\n* The output directory is not cleared of any existing files\n* Any missing directories in the path to the filename are automatically created.\n* When referring to a tiddler with spaces in its title, take care to use both the quotes required by your shell and also TiddlyWiki's double square brackets : `--render \"[[Motovun Jack.jpg]]\"`\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 \"[!is[system]]\" \"[encodeuricomponent[]addprefix[tiddlers/]addsuffix[.html]]\"` -- renders all non-system tiddlers as files in the subdirectory \"tiddlers\" with URL-encoded titles and the extension HTML\n\n"
+ },
+ "$:/language/Help/rendertiddler": {
+ "title": "$:/language/Help/rendertiddler",
+ "description": "Render an individual tiddler as a specified ContentType",
+ "text": "(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 \"currentTiddler\" 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 <title> <filename> [<type>] [<template>] [<name>] [<value>]\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 \"$:/core/templates/exporters/JsonFile\" output.json text/plain \"\" exportFilter \"[tag[done]]\"\n```\n"
+ },
+ "$:/language/Help/rendertiddlers": {
+ "title": "$:/language/Help/rendertiddlers",
+ "description": "Render tiddlers matching a filter to a specified ContentType",
+ "text": "(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 '<filter>' <template> <pathname> [<type>] [<extension>] [\"noclean\"]\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"
+ },
+ "$:/language/Help/save": {
+ "title": "$:/language/Help/save",
+ "description": "Saves individual raw tiddlers to files",
+ "text": "Saves individual tiddlers identified by a filter in their raw text or binary format to the specified files.\n\n```\n--save <tiddler-filter> <filename-filter>\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 \"[[Motovun Jack.jpg]]\"`\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 \"[!is[system]is[image]]\" \"[encodeuricomponent[]addprefix[tiddlers/]]\"` -- saves all non-system image tiddlers as files in the subdirectory \"tiddlers\" with URL-encoded titles\n"
+ },
+ "$:/language/Help/savetiddler": {
+ "title": "$:/language/Help/savetiddler",
+ "description": "Saves a raw tiddler to a file",
+ "text": "(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 <title> <filename>\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"
+ },
+ "$:/language/Help/savetiddlers": {
+ "title": "$:/language/Help/savetiddlers",
+ "description": "Saves a group of raw tiddlers to a directory",
+ "text": "(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 <filter> <pathname> [\"noclean\"]\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"
+ },
+ "$:/language/Help/savewikifolder": {
+ "title": "$:/language/Help/savewikifolder",
+ "description": "Saves a wiki to a new wiki folder",
+ "text": "<<.from-version \"5.1.20\">> Saves the current wiki as a wiki folder, including tiddlers, plugins and configuration:\n\n```\n--savewikifolder <wikifolderpath> [<filter>]\n```\n\n* The target wiki folder must be empty or non-existent\n* The filter specifies which tiddlers should be included. It is optional, defaulting to `[all[tiddlers]]`\n* Plugins from the official plugin library are replaced with references to those plugins in the `tiddlywiki.info` file\n* Custom plugins are unpacked into their own folder\n\nA common usage is to convert a TiddlyWiki HTML file into a wiki folder:\n\n```\ntiddlywiki --load ./mywiki.html --savewikifolder ./mywikifolder\n```\n"
+ },
+ "$:/language/Help/server": {
+ "title": "$:/language/Help/server",
+ "description": "Provides an HTTP server interface to TiddlyWiki (deprecated in favour of the new listen command)",
+ "text": "Legacy command to serve a wiki over HTTP.\n\n```\n--server <port> <root-tiddler> <root-render-type> <root-serve-type> <username> <password> <host> <path-prefix> <debug-level>\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 \"8080\")\n* ''root-tiddler'' - the tiddler to serve at the root (defaults to \"$:/core/save/all\")\n* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to \"text/plain\")\n* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to \"text/html\")\n* ''username'' - the default username for signing edits\n* ''password'' - optional password for basic authentication\n* ''host'' - optional hostname to serve from (defaults to \"127.0.0.1\" aka \"localhost\")\n* ''path-prefix'' - optional prefix for paths\n* ''debug-level'' - optional debug level; set to \"debug\" to view request details (defaults to \"none\")\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 \"\" \"\" 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 \"MY_PORT_NUMBER\":\n\n```\n--server MY_PORT_NUMBER $:/core/save/all text/plain text/html MyUserName passw0rd\n```\n"
+ },
+ "$:/language/Help/setfield": {
+ "title": "$:/language/Help/setfield",
+ "description": "Prepares external tiddlers for use",
+ "text": "//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 <filter> <fieldname> <templatetitle> <rendertype>\n```\n\nThe parameters are:\n\n* ''filter'' - filter identifying the tiddlers to be affected\n* ''fieldname'' - the field to modify (defaults to \"text\")\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 \"text/plain\"; \"text/html\" can be used to include HTML tags)\n"
+ },
+ "$:/language/Help/unpackplugin": {
+ "title": "$:/language/Help/unpackplugin",
+ "description": "Unpack the payload tiddlers from a plugin",
+ "text": "Extract the payload tiddlers from a plugin, creating them as ordinary tiddlers:\n\n```\n--unpackplugin <title>\n```\n"
+ },
+ "$:/language/Help/verbose": {
+ "title": "$:/language/Help/verbose",
+ "description": "Triggers verbose output mode",
+ "text": "Triggers verbose output, useful for debugging\n\n```\n--verbose\n```\n"
+ },
+ "$:/language/Help/version": {
+ "title": "$:/language/Help/version",
+ "description": "Displays the version number of TiddlyWiki",
+ "text": "Displays the version number of TiddlyWiki.\n\n```\n--version\n```\n"
+ },
+ "$:/language/Import/Imported/Hint": {
+ "title": "$:/language/Import/Imported/Hint",
+ "text": "The following tiddlers were imported:"
+ },
+ "$:/language/Import/Listing/Cancel/Caption": {
+ "title": "$:/language/Import/Listing/Cancel/Caption",
+ "text": "Cancel"
+ },
+ "$:/language/Import/Listing/Hint": {
+ "title": "$:/language/Import/Listing/Hint",
+ "text": "These tiddlers are ready to import:"
+ },
+ "$:/language/Import/Listing/Import/Caption": {
+ "title": "$:/language/Import/Listing/Import/Caption",
+ "text": "Import"
+ },
+ "$:/language/Import/Listing/Select/Caption": {
+ "title": "$:/language/Import/Listing/Select/Caption",
+ "text": "Select"
+ },
+ "$:/language/Import/Listing/Status/Caption": {
+ "title": "$:/language/Import/Listing/Status/Caption",
+ "text": "Status"
+ },
+ "$:/language/Import/Listing/Title/Caption": {
+ "title": "$:/language/Import/Listing/Title/Caption",
+ "text": "Title"
+ },
+ "$:/language/Import/Listing/Preview": {
+ "title": "$:/language/Import/Listing/Preview",
+ "text": "Preview:"
+ },
+ "$:/language/Import/Listing/Preview/Text": {
+ "title": "$:/language/Import/Listing/Preview/Text",
+ "text": "Text"
+ },
+ "$:/language/Import/Listing/Preview/TextRaw": {
+ "title": "$:/language/Import/Listing/Preview/TextRaw",
+ "text": "Text (Raw)"
+ },
+ "$:/language/Import/Listing/Preview/Fields": {
+ "title": "$:/language/Import/Listing/Preview/Fields",
+ "text": "Fields"
+ },
+ "$:/language/Import/Listing/Preview/Diff": {
+ "title": "$:/language/Import/Listing/Preview/Diff",
+ "text": "Diff"
+ },
+ "$:/language/Import/Listing/Preview/DiffFields": {
+ "title": "$:/language/Import/Listing/Preview/DiffFields",
+ "text": "Diff (Fields)"
+ },
+ "$:/language/Import/Listing/Rename/Tooltip": {
+ "title": "$:/language/Import/Listing/Rename/Tooltip",
+ "text": "Rename tiddler before importing"
+ },
+ "$:/language/Import/Listing/Rename/Prompt": {
+ "title": "$:/language/Import/Listing/Rename/Prompt",
+ "text": "Rename to:"
+ },
+ "$:/language/Import/Listing/Rename/ConfirmRename": {
+ "title": "$:/language/Import/Listing/Rename/ConfirmRename",
+ "text": "Rename tiddler"
+ },
+ "$:/language/Import/Listing/Rename/CancelRename": {
+ "title": "$:/language/Import/Listing/Rename/CancelRename",
+ "text": "Cancel"
+ },
+ "$:/language/Import/Listing/Rename/OverwriteWarning": {
+ "title": "$:/language/Import/Listing/Rename/OverwriteWarning",
+ "text": "A tiddler with this title already exists."
+ },
+ "$:/language/Import/Upgrader/Plugins/Suppressed/Incompatible": {
+ "title": "$:/language/Import/Upgrader/Plugins/Suppressed/Incompatible",
+ "text": "Blocked incompatible or obsolete plugin."
+ },
+ "$:/language/Import/Upgrader/Plugins/Suppressed/Version": {
+ "title": "$:/language/Import/Upgrader/Plugins/Suppressed/Version",
+ "text": "Blocked plugin (due to incoming <<incoming>> not being newer than existing <<existing>>)."
+ },
+ "$:/language/Import/Upgrader/Plugins/Upgraded": {
+ "title": "$:/language/Import/Upgrader/Plugins/Upgraded",
+ "text": "Upgraded plugin from <<incoming>> to <<upgraded>>."
+ },
+ "$:/language/Import/Upgrader/State/Suppressed": {
+ "title": "$:/language/Import/Upgrader/State/Suppressed",
+ "text": "Blocked temporary state tiddler."
+ },
+ "$:/language/Import/Upgrader/System/Suppressed": {
+ "title": "$:/language/Import/Upgrader/System/Suppressed",
+ "text": "Blocked system tiddler."
+ },
+ "$:/language/Import/Upgrader/System/Warning": {
+ "title": "$:/language/Import/Upgrader/System/Warning",
+ "text": "Core module tiddler."
+ },
+ "$:/language/Import/Upgrader/System/Alert": {
+ "title": "$:/language/Import/Upgrader/System/Alert",
+ "text": "You are about to import a tiddler that will overwrite a core module tiddler. This is not recommended as it may make the system unstable."
+ },
+ "$:/language/Import/Upgrader/ThemeTweaks/Created": {
+ "title": "$:/language/Import/Upgrader/ThemeTweaks/Created",
+ "text": "Migrated theme tweak from <$text text=<<from>>/>."
+ },
+ "$:/language/AboveStory/ClassicPlugin/Warning": {
+ "title": "$:/language/AboveStory/ClassicPlugin/Warning",
+ "text": "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:"
+ },
+ "$:/language/BinaryWarning/Prompt": {
+ "title": "$:/language/BinaryWarning/Prompt",
+ "text": "This tiddler contains binary data"
+ },
+ "$:/language/ClassicWarning/Hint": {
+ "title": "$:/language/ClassicWarning/Hint",
+ "text": "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."
+ },
+ "$:/language/ClassicWarning/Upgrade/Caption": {
+ "title": "$:/language/ClassicWarning/Upgrade/Caption",
+ "text": "upgrade"
+ },
+ "$:/language/CloseAll/Button": {
+ "title": "$:/language/CloseAll/Button",
+ "text": "close all"
+ },
+ "$:/language/ColourPicker/Recent": {
+ "title": "$:/language/ColourPicker/Recent",
+ "text": "Recent:"
+ },
+ "$:/language/ConfirmCancelTiddler": {
+ "title": "$:/language/ConfirmCancelTiddler",
+ "text": "Do you wish to discard changes to the tiddler \"<$text text=<<title>>/>\"?"
+ },
+ "$:/language/ConfirmDeleteTiddler": {
+ "title": "$:/language/ConfirmDeleteTiddler",
+ "text": "Do you wish to delete the tiddler \"<$text text=<<title>>/>\"?"
+ },
+ "$:/language/ConfirmOverwriteTiddler": {
+ "title": "$:/language/ConfirmOverwriteTiddler",
+ "text": "Do you wish to overwrite the tiddler \"<$text text=<<title>>/>\"?"
+ },
+ "$:/language/ConfirmEditShadowTiddler": {
+ "title": "$:/language/ConfirmEditShadowTiddler",
+ "text": "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 \"<$text text=<<title>>/>\"?"
+ },
+ "$:/language/ConfirmAction": {
+ "title": "$:/language/ConfirmAction",
+ "text": "Do you wish to proceed?"
+ },
+ "$:/language/Count": {
+ "title": "$:/language/Count",
+ "text": "count"
+ },
+ "$:/language/DefaultNewTiddlerTitle": {
+ "title": "$:/language/DefaultNewTiddlerTitle",
+ "text": "New Tiddler"
+ },
+ "$:/language/Diffs/CountMessage": {
+ "title": "$:/language/Diffs/CountMessage",
+ "text": "<<diff-count>> differences"
+ },
+ "$:/language/DropMessage": {
+ "title": "$:/language/DropMessage",
+ "text": "Drop here (or use the 'Escape' key to cancel)"
+ },
+ "$:/language/Encryption/Cancel": {
+ "title": "$:/language/Encryption/Cancel",
+ "text": "Cancel"
+ },
+ "$:/language/Encryption/ConfirmClearPassword": {
+ "title": "$:/language/Encryption/ConfirmClearPassword",
+ "text": "Do you wish to clear the password? This will remove the encryption applied when saving this wiki"
+ },
+ "$:/language/Encryption/PromptSetPassword": {
+ "title": "$:/language/Encryption/PromptSetPassword",
+ "text": "Set a new password for this TiddlyWiki"
+ },
+ "$:/language/Encryption/Username": {
+ "title": "$:/language/Encryption/Username",
+ "text": "Username"
+ },
+ "$:/language/Encryption/Password": {
+ "title": "$:/language/Encryption/Password",
+ "text": "Password"
+ },
+ "$:/language/Encryption/RepeatPassword": {
+ "title": "$:/language/Encryption/RepeatPassword",
+ "text": "Repeat password"
+ },
+ "$:/language/Encryption/PasswordNoMatch": {
+ "title": "$:/language/Encryption/PasswordNoMatch",
+ "text": "Passwords do not match"
+ },
+ "$:/language/Encryption/SetPassword": {
+ "title": "$:/language/Encryption/SetPassword",
+ "text": "Set password"
+ },
+ "$:/language/Error/Caption": {
+ "title": "$:/language/Error/Caption",
+ "text": "Error"
+ },
+ "$:/language/Error/EditConflict": {
+ "title": "$:/language/Error/EditConflict",
+ "text": "File changed on server"
+ },
+ "$:/language/Error/Filter": {
+ "title": "$:/language/Error/Filter",
+ "text": "Filter error"
+ },
+ "$:/language/Error/FilterSyntax": {
+ "title": "$:/language/Error/FilterSyntax",
+ "text": "Syntax error in filter expression"
+ },
+ "$:/language/Error/FilterRunPrefix": {
+ "title": "$:/language/Error/FilterRunPrefix",
+ "text": "Filter Error: Unknown prefix for filter run"
+ },
+ "$:/language/Error/IsFilterOperator": {
+ "title": "$:/language/Error/IsFilterOperator",
+ "text": "Filter Error: Unknown operand for the 'is' filter operator"
+ },
+ "$:/language/Error/FormatFilterOperator": {
+ "title": "$:/language/Error/FormatFilterOperator",
+ "text": "Filter Error: Unknown suffix for the 'format' filter operator"
+ },
+ "$:/language/Error/LoadingPluginLibrary": {
+ "title": "$:/language/Error/LoadingPluginLibrary",
+ "text": "Error loading plugin library"
+ },
+ "$:/language/Error/NetworkErrorAlert": {
+ "title": "$:/language/Error/NetworkErrorAlert",
+ "text": "`<h2>''Network Error''</h2>It looks like the connection to the server has been lost. This may indicate a problem with your network connection. Please attempt to restore network connectivity before continuing.<br><br>''Any unsaved changes will be automatically synchronised when connectivity is restored''.`"
+ },
+ "$:/language/Error/RecursiveTransclusion": {
+ "title": "$:/language/Error/RecursiveTransclusion",
+ "text": "Recursive transclusion error in transclude widget"
+ },
+ "$:/language/Error/RetrievingSkinny": {
+ "title": "$:/language/Error/RetrievingSkinny",
+ "text": "Error retrieving skinny tiddler list"
+ },
+ "$:/language/Error/SavingToTWEdit": {
+ "title": "$:/language/Error/SavingToTWEdit",
+ "text": "Error saving to TWEdit"
+ },
+ "$:/language/Error/WhileSaving": {
+ "title": "$:/language/Error/WhileSaving",
+ "text": "Error while saving"
+ },
+ "$:/language/Error/XMLHttpRequest": {
+ "title": "$:/language/Error/XMLHttpRequest",
+ "text": "XMLHttpRequest error code"
+ },
+ "$:/language/InternalJavaScriptError/Title": {
+ "title": "$:/language/InternalJavaScriptError/Title",
+ "text": "Internal JavaScript Error"
+ },
+ "$:/language/InternalJavaScriptError/Hint": {
+ "title": "$:/language/InternalJavaScriptError/Hint",
+ "text": "Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser"
+ },
+ "$:/language/InvalidFieldName": {
+ "title": "$:/language/InvalidFieldName",
+ "text": "Illegal characters in field name \"<$text text=<<fieldName>>/>\". Fields can only contain lowercase letters, digits and the characters underscore (`_`), hyphen (`-`) and period (`.`)"
+ },
+ "$:/language/LayoutSwitcher/Description": {
+ "title": "$:/language/LayoutSwitcher/Description",
+ "text": "Open the layout switcher"
+ },
+ "$:/language/LazyLoadingWarning": {
+ "title": "$:/language/LazyLoadingWarning",
+ "text": "<p>Trying to load external content from ''<$text text={{!!_canonical_uri}}/>''</p><p>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</p>"
+ },
+ "$:/language/LoginToTiddlySpace": {
+ "title": "$:/language/LoginToTiddlySpace",
+ "text": "Login to TiddlySpace"
+ },
+ "$:/language/Manager/Controls/FilterByTag/None": {
+ "title": "$:/language/Manager/Controls/FilterByTag/None",
+ "text": "(none)"
+ },
+ "$:/language/Manager/Controls/FilterByTag/Prompt": {
+ "title": "$:/language/Manager/Controls/FilterByTag/Prompt",
+ "text": "Filter by tag:"
+ },
+ "$:/language/Manager/Controls/Order/Prompt": {
+ "title": "$:/language/Manager/Controls/Order/Prompt",
+ "text": "Reverse order"
+ },
+ "$:/language/Manager/Controls/Search/Placeholder": {
+ "title": "$:/language/Manager/Controls/Search/Placeholder",
+ "text": "Search"
+ },
+ "$:/language/Manager/Controls/Search/Prompt": {
+ "title": "$:/language/Manager/Controls/Search/Prompt",
+ "text": "Search:"
+ },
+ "$:/language/Manager/Controls/Show/Option/Tags": {
+ "title": "$:/language/Manager/Controls/Show/Option/Tags",
+ "text": "tags"
+ },
+ "$:/language/Manager/Controls/Show/Option/Tiddlers": {
+ "title": "$:/language/Manager/Controls/Show/Option/Tiddlers",
+ "text": "tiddlers"
+ },
+ "$:/language/Manager/Controls/Show/Prompt": {
+ "title": "$:/language/Manager/Controls/Show/Prompt",
+ "text": "Show:"
+ },
+ "$:/language/Manager/Controls/Sort/Prompt": {
+ "title": "$:/language/Manager/Controls/Sort/Prompt",
+ "text": "Sort by:"
+ },
+ "$:/language/Manager/Item/Colour": {
+ "title": "$:/language/Manager/Item/Colour",
+ "text": "Colour"
+ },
+ "$:/language/Manager/Item/Fields": {
+ "title": "$:/language/Manager/Item/Fields",
+ "text": "Fields"
+ },
+ "$:/language/Manager/Item/Icon/None": {
+ "title": "$:/language/Manager/Item/Icon/None",
+ "text": "(none)"
+ },
+ "$:/language/Manager/Item/Icon": {
+ "title": "$:/language/Manager/Item/Icon",
+ "text": "Icon"
+ },
+ "$:/language/Manager/Item/RawText": {
+ "title": "$:/language/Manager/Item/RawText",
+ "text": "Raw text"
+ },
+ "$:/language/Manager/Item/Tags": {
+ "title": "$:/language/Manager/Item/Tags",
+ "text": "Tags"
+ },
+ "$:/language/Manager/Item/Tools": {
+ "title": "$:/language/Manager/Item/Tools",
+ "text": "Tools"
+ },
+ "$:/language/Manager/Item/WikifiedText": {
+ "title": "$:/language/Manager/Item/WikifiedText",
+ "text": "Wikified text"
+ },
+ "$:/language/MissingTiddler/Hint": {
+ "title": "$:/language/MissingTiddler/Hint",
+ "text": "Missing tiddler \"<$text text=<<currentTiddler>>/>\" -- click {{||$:/core/ui/Buttons/edit}} to create"
+ },
+ "$:/language/No": {
+ "title": "$:/language/No",
+ "text": "No"
+ },
+ "$:/language/OfficialPluginLibrary": {
+ "title": "$:/language/OfficialPluginLibrary",
+ "text": "Official ~TiddlyWiki Plugin Library"
+ },
+ "$:/language/OfficialPluginLibrary/Hint": {
+ "title": "$:/language/OfficialPluginLibrary/Hint",
+ "text": "The official ~TiddlyWiki plugin library at tiddlywiki.com. Plugins, themes and language packs are maintained by the core team."
+ },
+ "$:/language/PageTemplate/Description": {
+ "title": "$:/language/PageTemplate/Description",
+ "text": "the default ~TiddlyWiki layout"
+ },
+ "$:/language/PageTemplate/Name": {
+ "title": "$:/language/PageTemplate/Name",
+ "text": "Default ~PageTemplate"
+ },
+ "$:/language/PluginReloadWarning": {
+ "title": "$:/language/PluginReloadWarning",
+ "text": "Please save {{$:/core/ui/Buttons/save-wiki}} and reload {{$:/core/ui/Buttons/refresh}} to allow changes to ~JavaScript plugins to take effect"
+ },
+ "$:/language/RecentChanges/DateFormat": {
+ "title": "$:/language/RecentChanges/DateFormat",
+ "text": "DDth MMM YYYY"
+ },
+ "$:/language/Shortcuts/Input/AdvancedSearch/Hint": {
+ "title": "$:/language/Shortcuts/Input/AdvancedSearch/Hint",
+ "text": "Open the ~AdvancedSearch panel from within the sidebar search field"
+ },
+ "$:/language/Shortcuts/Input/Accept/Hint": {
+ "title": "$:/language/Shortcuts/Input/Accept/Hint",
+ "text": "Accept the selected item"
+ },
+ "$:/language/Shortcuts/Input/AcceptVariant/Hint": {
+ "title": "$:/language/Shortcuts/Input/AcceptVariant/Hint",
+ "text": "Accept the selected item (variant)"
+ },
+ "$:/language/Shortcuts/Input/Cancel/Hint": {
+ "title": "$:/language/Shortcuts/Input/Cancel/Hint",
+ "text": "Clear the input field"
+ },
+ "$:/language/Shortcuts/Input/Down/Hint": {
+ "title": "$:/language/Shortcuts/Input/Down/Hint",
+ "text": "Select the next item"
+ },
+ "$:/language/Shortcuts/Input/Tab-Left/Hint": {
+ "title": "$:/language/Shortcuts/Input/Tab-Left/Hint",
+ "text": "Select the previous Tab"
+ },
+ "$:/language/Shortcuts/Input/Tab-Right/Hint": {
+ "title": "$:/language/Shortcuts/Input/Tab-Right/Hint",
+ "text": "Select the next Tab"
+ },
+ "$:/language/Shortcuts/Input/Up/Hint": {
+ "title": "$:/language/Shortcuts/Input/Up/Hint",
+ "text": "Select the previous item"
+ },
+ "$:/language/Shortcuts/SidebarLayout/Hint": {
+ "title": "$:/language/Shortcuts/SidebarLayout/Hint",
+ "text": "Change the sidebar layout"
+ },
+ "$:/language/Switcher/Subtitle/theme": {
+ "title": "$:/language/Switcher/Subtitle/theme",
+ "text": "Switch Theme"
+ },
+ "$:/language/Switcher/Subtitle/layout": {
+ "title": "$:/language/Switcher/Subtitle/layout",
+ "text": "Switch Layout"
+ },
+ "$:/language/Switcher/Subtitle/language": {
+ "title": "$:/language/Switcher/Subtitle/language",
+ "text": "Switch Language"
+ },
+ "$:/language/Switcher/Subtitle/palette": {
+ "title": "$:/language/Switcher/Subtitle/palette",
+ "text": "Switch Palette"
+ },
+ "$:/language/SystemTiddler/Tooltip": {
+ "title": "$:/language/SystemTiddler/Tooltip",
+ "text": "This is a system tiddler"
+ },
+ "$:/language/SystemTiddlers/Include/Prompt": {
+ "title": "$:/language/SystemTiddlers/Include/Prompt",
+ "text": "Include system tiddlers"
+ },
+ "$:/language/TagManager/Colour/Heading": {
+ "title": "$:/language/TagManager/Colour/Heading",
+ "text": "Colour"
+ },
+ "$:/language/TagManager/Count/Heading": {
+ "title": "$:/language/TagManager/Count/Heading",
+ "text": "Count"
+ },
+ "$:/language/TagManager/Icon/Heading": {
+ "title": "$:/language/TagManager/Icon/Heading",
+ "text": "Icon"
+ },
+ "$:/language/TagManager/Icons/None": {
+ "title": "$:/language/TagManager/Icons/None",
+ "text": "None"
+ },
+ "$:/language/TagManager/Info/Heading": {
+ "title": "$:/language/TagManager/Info/Heading",
+ "text": "Info"
+ },
+ "$:/language/TagManager/Tag/Heading": {
+ "title": "$:/language/TagManager/Tag/Heading",
+ "text": "Tag"
+ },
+ "$:/language/Tiddler/DateFormat": {
+ "title": "$:/language/Tiddler/DateFormat",
+ "text": "DDth MMM YYYY at hh12:0mmam"
+ },
+ "$:/language/UnsavedChangesWarning": {
+ "title": "$:/language/UnsavedChangesWarning",
+ "text": "You have unsaved changes in TiddlyWiki"
+ },
+ "$:/language/Yes": {
+ "title": "$:/language/Yes",
+ "text": "Yes"
+ },
+ "$:/language/Modals/Download": {
+ "title": "$:/language/Modals/Download",
+ "subtitle": "Download changes",
+ "footer": "<$button message=\"tm-close-tiddler\">Close</$button>",
+ "help": "https://tiddlywiki.com/static/DownloadingChanges.html",
+ "text": "Your browser only supports manual saving.\n\nTo save your modified wiki, right click on the download link below and select \"Download file\" or \"Save file\", 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"
+ },
+ "$:/language/Modals/SaveInstructions": {
+ "title": "$:/language/Modals/SaveInstructions",
+ "subtitle": "Save your work",
+ "footer": "<$button message=\"tm-close-tiddler\">Close</$button>",
+ "help": "https://tiddlywiki.com/static/SavingChanges.html",
+ "text": "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"
+ },
+ "$:/config/NewJournal/Title": {
+ "title": "$:/config/NewJournal/Title",
+ "text": "DDth MMM YYYY"
+ },
+ "$:/config/NewJournal/Text": {
+ "title": "$:/config/NewJournal/Text",
+ "text": ""
+ },
+ "$:/config/NewJournal/Tags": {
+ "title": "$:/config/NewJournal/Tags",
+ "text": "Journal\n"
+ },
+ "$:/language/Notifications/Save/Done": {
+ "title": "$:/language/Notifications/Save/Done",
+ "text": "Saved wiki"
+ },
+ "$:/language/Notifications/Save/Starting": {
+ "title": "$:/language/Notifications/Save/Starting",
+ "text": "Starting to save wiki"
+ },
+ "$:/language/Notifications/CopiedToClipboard/Succeeded": {
+ "title": "$:/language/Notifications/CopiedToClipboard/Succeeded",
+ "text": "Copied to clipboard!"
+ },
+ "$:/language/Notifications/CopiedToClipboard/Failed": {
+ "title": "$:/language/Notifications/CopiedToClipboard/Failed",
+ "text": "Failed to copy to clipboard!"
+ },
+ "$:/language/Search/DefaultResults/Caption": {
+ "title": "$:/language/Search/DefaultResults/Caption",
+ "text": "List"
+ },
+ "$:/language/Search/Filter/Caption": {
+ "title": "$:/language/Search/Filter/Caption",
+ "text": "Filter"
+ },
+ "$:/language/Search/Filter/Hint": {
+ "title": "$:/language/Search/Filter/Hint",
+ "text": "Search via a [[filter expression|https://tiddlywiki.com/static/Filters.html]]"
+ },
+ "$:/language/Search/Filter/Matches": {
+ "title": "$:/language/Search/Filter/Matches",
+ "text": "//<small><<resultCount>> matches</small>//"
+ },
+ "$:/language/Search/Matches": {
+ "title": "$:/language/Search/Matches",
+ "text": "//<small><<resultCount>> matches</small>//"
+ },
+ "$:/language/Search/Matches/All": {
+ "title": "$:/language/Search/Matches/All",
+ "text": "All matches:"
+ },
+ "$:/language/Search/Matches/Title": {
+ "title": "$:/language/Search/Matches/Title",
+ "text": "Title matches:"
+ },
+ "$:/language/Search/Search": {
+ "title": "$:/language/Search/Search",
+ "text": "Search"
+ },
+ "$:/language/Search/Search/TooShort": {
+ "title": "$:/language/Search/Search/TooShort",
+ "text": "Search text too short"
+ },
+ "$:/language/Search/Shadows/Caption": {
+ "title": "$:/language/Search/Shadows/Caption",
+ "text": "Shadows"
+ },
+ "$:/language/Search/Shadows/Hint": {
+ "title": "$:/language/Search/Shadows/Hint",
+ "text": "Search for shadow tiddlers"
+ },
+ "$:/language/Search/Shadows/Matches": {
+ "title": "$:/language/Search/Shadows/Matches",
+ "text": "//<small><<resultCount>> matches</small>//"
+ },
+ "$:/language/Search/Standard/Caption": {
+ "title": "$:/language/Search/Standard/Caption",
+ "text": "Standard"
+ },
+ "$:/language/Search/Standard/Hint": {
+ "title": "$:/language/Search/Standard/Hint",
+ "text": "Search for standard tiddlers"
+ },
+ "$:/language/Search/Standard/Matches": {
+ "title": "$:/language/Search/Standard/Matches",
+ "text": "//<small><<resultCount>> matches</small>//"
+ },
+ "$:/language/Search/System/Caption": {
+ "title": "$:/language/Search/System/Caption",
+ "text": "System"
+ },
+ "$:/language/Search/System/Hint": {
+ "title": "$:/language/Search/System/Hint",
+ "text": "Search for system tiddlers"
+ },
+ "$:/language/Search/System/Matches": {
+ "title": "$:/language/Search/System/Matches",
+ "text": "//<small><<resultCount>> matches</small>//"
+ },
+ "$:/language/SideBar/All/Caption": {
+ "title": "$:/language/SideBar/All/Caption",
+ "text": "All"
+ },
+ "$:/language/SideBar/Contents/Caption": {
+ "title": "$:/language/SideBar/Contents/Caption",
+ "text": "Contents"
+ },
+ "$:/language/SideBar/Drafts/Caption": {
+ "title": "$:/language/SideBar/Drafts/Caption",
+ "text": "Drafts"
+ },
+ "$:/language/SideBar/Explorer/Caption": {
+ "title": "$:/language/SideBar/Explorer/Caption",
+ "text": "Explorer"
+ },
+ "$:/language/SideBar/Missing/Caption": {
+ "title": "$:/language/SideBar/Missing/Caption",
+ "text": "Missing"
+ },
+ "$:/language/SideBar/More/Caption": {
+ "title": "$:/language/SideBar/More/Caption",
+ "text": "More"
+ },
+ "$:/language/SideBar/Open/Caption": {
+ "title": "$:/language/SideBar/Open/Caption",
+ "text": "Open"
+ },
+ "$:/language/SideBar/Orphans/Caption": {
+ "title": "$:/language/SideBar/Orphans/Caption",
+ "text": "Orphans"
+ },
+ "$:/language/SideBar/Recent/Caption": {
+ "title": "$:/language/SideBar/Recent/Caption",
+ "text": "Recent"
+ },
+ "$:/language/SideBar/Shadows/Caption": {
+ "title": "$:/language/SideBar/Shadows/Caption",
+ "text": "Shadows"
+ },
+ "$:/language/SideBar/System/Caption": {
+ "title": "$:/language/SideBar/System/Caption",
+ "text": "System"
+ },
+ "$:/language/SideBar/Tags/Caption": {
+ "title": "$:/language/SideBar/Tags/Caption",
+ "text": "Tags"
+ },
+ "$:/language/SideBar/Tags/Untagged/Caption": {
+ "title": "$:/language/SideBar/Tags/Untagged/Caption",
+ "text": "untagged"
+ },
+ "$:/language/SideBar/Tools/Caption": {
+ "title": "$:/language/SideBar/Tools/Caption",
+ "text": "Tools"
+ },
+ "$:/language/SideBar/Types/Caption": {
+ "title": "$:/language/SideBar/Types/Caption",
+ "text": "Types"
+ },
+ "$:/SiteSubtitle": {
+ "title": "$:/SiteSubtitle",
+ "text": "a non-linear personal web notebook"
+ },
+ "$:/SiteTitle": {
+ "title": "$:/SiteTitle",
+ "text": "My ~TiddlyWiki"
+ },
+ "$:/language/Snippets/ListByTag": {
+ "title": "$:/language/Snippets/ListByTag",
+ "tags": "$:/tags/TextEditor/Snippet",
+ "caption": "List of tiddlers by tag",
+ "text": "<<list-links \"[tag[task]sort[title]]\">>\n"
+ },
+ "$:/language/Snippets/MacroDefinition": {
+ "title": "$:/language/Snippets/MacroDefinition",
+ "tags": "$:/tags/TextEditor/Snippet",
+ "caption": "Macro definition",
+ "text": "\\define macroName(param1:\"default value\",param2)\nText of the macro\n\\end\n"
+ },
+ "$:/language/Snippets/Table4x3": {
+ "title": "$:/language/Snippets/Table4x3",
+ "tags": "$:/tags/TextEditor/Snippet",
+ "caption": "Table with 4 columns by 3 rows",
+ "text": "|! |!Alpha |!Beta |!Gamma |!Delta |\n|!One | | | | |\n|!Two | | | | |\n|!Three | | | | |\n"
+ },
+ "$:/language/Snippets/TableOfContents": {
+ "title": "$:/language/Snippets/TableOfContents",
+ "tags": "$:/tags/TextEditor/Snippet",
+ "caption": "Table of Contents",
+ "text": "<div class=\"tc-table-of-contents\">\n\n<<toc-selective-expandable 'TableOfContents'>>\n\n</div>"
+ },
+ "$:/language/ThemeTweaks/ThemeTweaks": {
+ "title": "$:/language/ThemeTweaks/ThemeTweaks",
+ "text": "Theme Tweaks"
+ },
+ "$:/language/ThemeTweaks/ThemeTweaks/Hint": {
+ "title": "$:/language/ThemeTweaks/ThemeTweaks/Hint",
+ "text": "You can tweak certain aspects of the ''Vanilla'' theme."
+ },
+ "$:/language/ThemeTweaks/Options": {
+ "title": "$:/language/ThemeTweaks/Options",
+ "text": "Options"
+ },
+ "$:/language/ThemeTweaks/Options/SidebarLayout": {
+ "title": "$:/language/ThemeTweaks/Options/SidebarLayout",
+ "text": "Sidebar layout"
+ },
+ "$:/language/ThemeTweaks/Options/SidebarLayout/Fixed-Fluid": {
+ "title": "$:/language/ThemeTweaks/Options/SidebarLayout/Fixed-Fluid",
+ "text": "Fixed story, fluid sidebar"
+ },
+ "$:/language/ThemeTweaks/Options/SidebarLayout/Fluid-Fixed": {
+ "title": "$:/language/ThemeTweaks/Options/SidebarLayout/Fluid-Fixed",
+ "text": "Fluid story, fixed sidebar"
+ },
+ "$:/language/ThemeTweaks/Options/StickyTitles": {
+ "title": "$:/language/ThemeTweaks/Options/StickyTitles",
+ "text": "Sticky titles"
+ },
+ "$:/language/ThemeTweaks/Options/StickyTitles/Hint": {
+ "title": "$:/language/ThemeTweaks/Options/StickyTitles/Hint",
+ "text": "Causes tiddler titles to \"stick\" to the top of the browser window"
+ },
+ "$:/language/ThemeTweaks/Options/CodeWrapping": {
+ "title": "$:/language/ThemeTweaks/Options/CodeWrapping",
+ "text": "Wrap long lines in code blocks"
+ },
+ "$:/language/ThemeTweaks/Settings": {
+ "title": "$:/language/ThemeTweaks/Settings",
+ "text": "Settings"
+ },
+ "$:/language/ThemeTweaks/Settings/FontFamily": {
+ "title": "$:/language/ThemeTweaks/Settings/FontFamily",
+ "text": "Font family"
+ },
+ "$:/language/ThemeTweaks/Settings/CodeFontFamily": {
+ "title": "$:/language/ThemeTweaks/Settings/CodeFontFamily",
+ "text": "Code font family"
+ },
+ "$:/language/ThemeTweaks/Settings/EditorFontFamily": {
+ "title": "$:/language/ThemeTweaks/Settings/EditorFontFamily",
+ "text": "Editor font family"
+ },
+ "$:/language/ThemeTweaks/Settings/BackgroundImage": {
+ "title": "$:/language/ThemeTweaks/Settings/BackgroundImage",
+ "text": "Page background image"
+ },
+ "$:/language/ThemeTweaks/Settings/BackgroundImageAttachment": {
+ "title": "$:/language/ThemeTweaks/Settings/BackgroundImageAttachment",
+ "text": "Page background image attachment"
+ },
+ "$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Scroll": {
+ "title": "$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Scroll",
+ "text": "Scroll with tiddlers"
+ },
+ "$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Fixed": {
+ "title": "$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Fixed",
+ "text": "Fixed to window"
+ },
+ "$:/language/ThemeTweaks/Settings/BackgroundImageSize": {
+ "title": "$:/language/ThemeTweaks/Settings/BackgroundImageSize",
+ "text": "Page background image size"
+ },
+ "$:/language/ThemeTweaks/Settings/BackgroundImageSize/Auto": {
+ "title": "$:/language/ThemeTweaks/Settings/BackgroundImageSize/Auto",
+ "text": "Auto"
+ },
+ "$:/language/ThemeTweaks/Settings/BackgroundImageSize/Cover": {
+ "title": "$:/language/ThemeTweaks/Settings/BackgroundImageSize/Cover",
+ "text": "Cover"
+ },
+ "$:/language/ThemeTweaks/Settings/BackgroundImageSize/Contain": {
+ "title": "$:/language/ThemeTweaks/Settings/BackgroundImageSize/Contain",
+ "text": "Contain"
+ },
+ "$:/language/ThemeTweaks/Metrics": {
+ "title": "$:/language/ThemeTweaks/Metrics",
+ "text": "Sizes"
+ },
+ "$:/language/ThemeTweaks/Metrics/FontSize": {
+ "title": "$:/language/ThemeTweaks/Metrics/FontSize",
+ "text": "Font size"
+ },
+ "$:/language/ThemeTweaks/Metrics/LineHeight": {
+ "title": "$:/language/ThemeTweaks/Metrics/LineHeight",
+ "text": "Line height"
+ },
+ "$:/language/ThemeTweaks/Metrics/BodyFontSize": {
+ "title": "$:/language/ThemeTweaks/Metrics/BodyFontSize",
+ "text": "Font size for tiddler body"
+ },
+ "$:/language/ThemeTweaks/Metrics/BodyLineHeight": {
+ "title": "$:/language/ThemeTweaks/Metrics/BodyLineHeight",
+ "text": "Line height for tiddler body"
+ },
+ "$:/language/ThemeTweaks/Metrics/StoryLeft": {
+ "title": "$:/language/ThemeTweaks/Metrics/StoryLeft",
+ "text": "Story left position"
+ },
+ "$:/language/ThemeTweaks/Metrics/StoryLeft/Hint": {
+ "title": "$:/language/ThemeTweaks/Metrics/StoryLeft/Hint",
+ "text": "how far the left margin of the story river<br>(tiddler area) is from the left of the page"
+ },
+ "$:/language/ThemeTweaks/Metrics/StoryTop": {
+ "title": "$:/language/ThemeTweaks/Metrics/StoryTop",
+ "text": "Story top position"
+ },
+ "$:/language/ThemeTweaks/Metrics/StoryTop/Hint": {
+ "title": "$:/language/ThemeTweaks/Metrics/StoryTop/Hint",
+ "text": "how far the top margin of the story river<br>is from the top of the page"
+ },
+ "$:/language/ThemeTweaks/Metrics/StoryRight": {
+ "title": "$:/language/ThemeTweaks/Metrics/StoryRight",
+ "text": "Story right"
+ },
+ "$:/language/ThemeTweaks/Metrics/StoryRight/Hint": {
+ "title": "$:/language/ThemeTweaks/Metrics/StoryRight/Hint",
+ "text": "how far the left margin of the sidebar <br>is from the left of the page"
+ },
+ "$:/language/ThemeTweaks/Metrics/StoryWidth": {
+ "title": "$:/language/ThemeTweaks/Metrics/StoryWidth",
+ "text": "Story width"
+ },
+ "$:/language/ThemeTweaks/Metrics/StoryWidth/Hint": {
+ "title": "$:/language/ThemeTweaks/Metrics/StoryWidth/Hint",
+ "text": "the overall width of the story river"
+ },
+ "$:/language/ThemeTweaks/Metrics/TiddlerWidth": {
+ "title": "$:/language/ThemeTweaks/Metrics/TiddlerWidth",
+ "text": "Tiddler width"
+ },
+ "$:/language/ThemeTweaks/Metrics/TiddlerWidth/Hint": {
+ "title": "$:/language/ThemeTweaks/Metrics/TiddlerWidth/Hint",
+ "text": "within the story river"
+ },
+ "$:/language/ThemeTweaks/Metrics/SidebarBreakpoint": {
+ "title": "$:/language/ThemeTweaks/Metrics/SidebarBreakpoint",
+ "text": "Sidebar breakpoint"
+ },
+ "$:/language/ThemeTweaks/Metrics/SidebarBreakpoint/Hint": {
+ "title": "$:/language/ThemeTweaks/Metrics/SidebarBreakpoint/Hint",
+ "text": "the minimum page width at which the story<br>river and sidebar will appear side by side"
+ },
+ "$:/language/ThemeTweaks/Metrics/SidebarWidth": {
+ "title": "$:/language/ThemeTweaks/Metrics/SidebarWidth",
+ "text": "Sidebar width"
+ },
+ "$:/language/ThemeTweaks/Metrics/SidebarWidth/Hint": {
+ "title": "$:/language/ThemeTweaks/Metrics/SidebarWidth/Hint",
+ "text": "the width of the sidebar in fluid-fixed layout"
+ },
+ "$:/language/TiddlerInfo/Advanced/Caption": {
+ "title": "$:/language/TiddlerInfo/Advanced/Caption",
+ "text": "Advanced"
+ },
+ "$:/language/TiddlerInfo/Advanced/PluginInfo/Empty/Hint": {
+ "title": "$:/language/TiddlerInfo/Advanced/PluginInfo/Empty/Hint",
+ "text": "none"
+ },
+ "$:/language/TiddlerInfo/Advanced/PluginInfo/Heading": {
+ "title": "$:/language/TiddlerInfo/Advanced/PluginInfo/Heading",
+ "text": "Plugin Details"
+ },
+ "$:/language/TiddlerInfo/Advanced/PluginInfo/Hint": {
+ "title": "$:/language/TiddlerInfo/Advanced/PluginInfo/Hint",
+ "text": "This plugin contains the following shadow tiddlers:"
+ },
+ "$:/language/TiddlerInfo/Advanced/ShadowInfo/Heading": {
+ "title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/Heading",
+ "text": "Shadow Status"
+ },
+ "$:/language/TiddlerInfo/Advanced/ShadowInfo/NotShadow/Hint": {
+ "title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/NotShadow/Hint",
+ "text": "The tiddler <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> is not a shadow tiddler"
+ },
+ "$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Hint": {
+ "title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Hint",
+ "text": "The tiddler <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> is a shadow tiddler"
+ },
+ "$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Source": {
+ "title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Source",
+ "text": "It is defined in the plugin <$link to=<<pluginTiddler>>><$text text=<<pluginTiddler>>/></$link>"
+ },
+ "$:/language/TiddlerInfo/Advanced/ShadowInfo/OverriddenShadow/Hint": {
+ "title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/OverriddenShadow/Hint",
+ "text": "It is overridden by an ordinary tiddler"
+ },
+ "$:/language/TiddlerInfo/Fields/Caption": {
+ "title": "$:/language/TiddlerInfo/Fields/Caption",
+ "text": "Fields"
+ },
+ "$:/language/TiddlerInfo/List/Caption": {
+ "title": "$:/language/TiddlerInfo/List/Caption",
+ "text": "List"
+ },
+ "$:/language/TiddlerInfo/List/Empty": {
+ "title": "$:/language/TiddlerInfo/List/Empty",
+ "text": "This tiddler does not have a list"
+ },
+ "$:/language/TiddlerInfo/Listed/Caption": {
+ "title": "$:/language/TiddlerInfo/Listed/Caption",
+ "text": "Listed"
+ },
+ "$:/language/TiddlerInfo/Listed/Empty": {
+ "title": "$:/language/TiddlerInfo/Listed/Empty",
+ "text": "This tiddler is not listed by any others"
+ },
+ "$:/language/TiddlerInfo/References/Caption": {
+ "title": "$:/language/TiddlerInfo/References/Caption",
+ "text": "Backlinks"
+ },
+ "$:/language/TiddlerInfo/References/Empty": {
+ "title": "$:/language/TiddlerInfo/References/Empty",
+ "text": "No tiddlers link to this one"
+ },
+ "$:/language/TiddlerInfo/Tagging/Caption": {
+ "title": "$:/language/TiddlerInfo/Tagging/Caption",
+ "text": "Tagging"
+ },
+ "$:/language/TiddlerInfo/Tagging/Empty": {
+ "title": "$:/language/TiddlerInfo/Tagging/Empty",
+ "text": "No tiddlers are tagged with this one"
+ },
+ "$:/language/TiddlerInfo/Tools/Caption": {
+ "title": "$:/language/TiddlerInfo/Tools/Caption",
+ "text": "Tools"
+ },
+ "$:/language/Docs/Types/application/javascript": {
+ "title": "$:/language/Docs/Types/application/javascript",
+ "description": "JavaScript code",
+ "name": "application/javascript",
+ "group": "Developer",
+ "group-sort": "2"
+ },
+ "$:/language/Docs/Types/application/json": {
+ "title": "$:/language/Docs/Types/application/json",
+ "description": "JSON data",
+ "name": "application/json",
+ "group": "Developer",
+ "group-sort": "2"
+ },
+ "$:/language/Docs/Types/application/x-tiddler-dictionary": {
+ "title": "$:/language/Docs/Types/application/x-tiddler-dictionary",
+ "description": "Data dictionary",
+ "name": "application/x-tiddler-dictionary",
+ "group": "Developer",
+ "group-sort": "2"
+ },
+ "$:/language/Docs/Types/image/gif": {
+ "title": "$:/language/Docs/Types/image/gif",
+ "description": "GIF image",
+ "name": "image/gif",
+ "group": "Image",
+ "group-sort": "1"
+ },
+ "$:/language/Docs/Types/image/jpeg": {
+ "title": "$:/language/Docs/Types/image/jpeg",
+ "description": "JPEG image",
+ "name": "image/jpeg",
+ "group": "Image",
+ "group-sort": "1"
+ },
+ "$:/language/Docs/Types/image/png": {
+ "title": "$:/language/Docs/Types/image/png",
+ "description": "PNG image",
+ "name": "image/png",
+ "group": "Image",
+ "group-sort": "1"
+ },
+ "$:/language/Docs/Types/image/svg+xml": {
+ "title": "$:/language/Docs/Types/image/svg+xml",
+ "description": "Structured Vector Graphics image",
+ "name": "image/svg+xml",
+ "group": "Image",
+ "group-sort": "1"
+ },
+ "$:/language/Docs/Types/image/x-icon": {
+ "title": "$:/language/Docs/Types/image/x-icon",
+ "description": "ICO format icon file",
+ "name": "image/x-icon",
+ "group": "Image",
+ "group-sort": "1"
+ },
+ "$:/language/Docs/Types/text/css": {
+ "title": "$:/language/Docs/Types/text/css",
+ "description": "Static stylesheet",
+ "name": "text/css",
+ "group": "Developer",
+ "group-sort": "2"
+ },
+ "$:/language/Docs/Types/text/html": {
+ "title": "$:/language/Docs/Types/text/html",
+ "description": "HTML markup",
+ "name": "text/html",
+ "group": "Text",
+ "group-sort": "0"
+ },
+ "$:/language/Docs/Types/text/plain": {
+ "title": "$:/language/Docs/Types/text/plain",
+ "description": "Plain text",
+ "name": "text/plain",
+ "group": "Text",
+ "group-sort": "0"
+ },
+ "$:/language/Docs/Types/text/vnd.tiddlywiki": {
+ "title": "$:/language/Docs/Types/text/vnd.tiddlywiki",
+ "description": "TiddlyWiki 5",
+ "name": "text/vnd.tiddlywiki",
+ "group": "Text",
+ "group-sort": "0"
+ },
+ "$:/language/Docs/Types/text/x-tiddlywiki": {
+ "title": "$:/language/Docs/Types/text/x-tiddlywiki",
+ "description": "TiddlyWiki Classic",
+ "name": "text/x-tiddlywiki",
+ "group": "Text",
+ "group-sort": "0"
+ },
+ "$:/languages/en-GB/icon": {
+ "title": "$:/languages/en-GB/icon",
+ "type": "image/svg+xml",
+ "text": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 60 30\" width=\"1200\" height=\"600\">\n<clipPath id=\"t\">\n\t<path d=\"M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z\"/>\n</clipPath>\n<path d=\"M0,0 v30 h60 v-30 z\" fill=\"#00247d\"/>\n<path d=\"M0,0 L60,30 M60,0 L0,30\" stroke=\"#fff\" stroke-width=\"6\"/>\n<path d=\"M0,0 L60,30 M60,0 L0,30\" clip-path=\"url(#t)\" stroke=\"#cf142b\" stroke-width=\"4\"/>\n<path d=\"M30,0 v30 M0,15 h60\" stroke=\"#fff\" stroke-width=\"10\"/>\n<path d=\"M30,0 v30 M0,15 h60\" stroke=\"#cf142b\" stroke-width=\"6\"/>\n</svg>\n"
+ },
+ "$:/languages/en-GB": {
+ "title": "$:/languages/en-GB",
+ "name": "en-GB",
+ "description": "English (British)",
+ "author": "JeremyRuston",
+ "core-version": ">=5.0.0\"",
+ "text": "Stub pseudo-plugin for the default language"
+ },
+ "$:/core/modules/commander.js": {
+ "title": "$:/core/modules/commander.js",
+ "text": "/*\\\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\"use strict\";\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(\"path\");\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 + \"\\n\");\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 >= 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) !== \"--\") {\n\t\t\tthis.callback(\"Missing command: \" + 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 < this.commandTokens.length && \n\t\t\t\tthis.commandTokens[this.nextToken].substr(0,2) !== \"--\") {\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(\"Unknown command: \" + commandName);\n\t\t\t} else {\n\t\t\t\tif(this.verbose) {\n\t\t\t\t\tthis.streams.output.write(\"Executing command: \" + commandName + \" \" + params.join(\" \") + \"\\n\");\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 === \"string\") {\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(\"=\");\n\t\tif(index < 1) {\n\t\t\terrors.push(\"malformed named parameter: '\" + param + \"'\");\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(\"missing mandatory parameter: '\" + mandatoryParameter + \"'\");\n\t\t}\n\t});\n\t// Return any errors\n\tif(errors.length > 0) {\n\t\treturn errors.join(\" and\\n\");\n\t} else {\n\t\treturn paramsByName;\t\t\n\t}\n};\n\nCommander.initCommands = function(moduleType) {\n\tmoduleType = moduleType || \"command\";\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",
+ "type": "application/javascript",
+ "module-type": "global"
+ },
+ "$:/core/modules/commands/build.js": {
+ "title": "$:/core/modules/commands/build.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"build\",\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 \"No build targets defined\";\n\t}\n\t// Loop through each of the specified targets\n\tvar targets;\n\tif(this.params.length > 0) {\n\t\ttargets = this.params;\n\t} else {\n\t\ttargets = Object.keys(buildTargets);\n\t}\n\tfor(var targetIndex=0; targetIndex<targets.length; targetIndex++) {\n\t\tvar target = targets[targetIndex],\n\t\t\tcommands = buildTargets[target];\n\t\tif(!commands) {\n\t\t\treturn \"Build target '\" + target + \"' not found\";\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",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/clearpassword.js": {
+ "title": "$:/core/modules/commands/clearpassword.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"clearpassword\",\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",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/deletetiddlers.js": {
+ "title": "$:/core/modules/commands/deletetiddlers.js",
+ "text": "/*\\\ntitle: $:/core/modules/commands/deletetiddlers.js\ntype: application/javascript\nmodule-type: command\n\nCommand to delete tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"deletetiddlers\",\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 < 1) {\n\t\treturn \"Missing filter\";\n\t}\n\tvar self = this,\n\t\twiki = this.commander.wiki,\n\t\tfilter = this.params[0],\n\t\ttiddlers = wiki.filterTiddlers(filter);\n\t$tw.utils.each(tiddlers,function(title) {\n\t\twiki.deleteTiddler(title);\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/editions.js": {
+ "title": "$:/core/modules/commands/editions.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"editions\",\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(\"Available editions:\\n\\n\");\n\tvar editionInfo = $tw.utils.getEditionInfo();\n\t$tw.utils.each(editionInfo,function(info,name) {\n\t\tself.commander.streams.output.write(\" \" + name + \": \" + info.description + \"\\n\");\n\t});\n\tthis.commander.streams.output.write(\"\\n\");\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/fetch.js": {
+ "title": "$:/core/modules/commands/fetch.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"fetch\",\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 < 2) {\n\t\treturn \"Missing subcommand and url\";\n\t}\n\tswitch(this.params[0]) {\n\t\tcase \"raw-file\":\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] || \"\",\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"file\":\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] || \"\",\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"raw-files\":\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] || \"\",\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"files\":\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] || \"\",\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t}\n\treturn null;\n};\n\nCommand.prototype.fetchFiles = function(options) {\n\tvar self = this;\n\t// Get the list of URLs\n\tvar urls;\n\tif(options.url) {\n\t\turls = [options.url]\n\t} else if(options.urlFilter) {\n\t\turls = this.commander.wiki.filterTiddlers(options.urlFilter);\n\t} else {\n\t\treturn \"Missing URL\";\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 < 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 > 10) {\n\t\treturn callback(\"Error too many redirects retrieving \" + url);\n\t}\n\tvar self = this,\n\t\tlib = url.substr(0,8) === \"https://\" ? require(\"https\") : require(\"http\");\n\tlib.get(url).on(\"response\",function(response) {\n\t var type = (response.headers[\"content-type\"] || \"\").split(\";\")[0],\n\t \tdata = [];\n\t self.commander.write(\"Reading \" + url + \": \");\n\t response.on(\"data\",function(chunk) {\n\t data.push(chunk);\n\t self.commander.write(\".\");\n\t });\n\t response.on(\"end\",function() {\n\t self.commander.write(\"\\n\");\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(\"Error \" + response.statusCode + \" retrieving \" + url)\t \t\t\n\t \t}\n\t }\n\t \t});\n\t \tresponse.on(\"error\",function(e) {\n\t\t\tconsole.log(\"Error on GET request: \" + 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 : \"utf8\";\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 || \"text/html\",body.toString(\"utf8\"),{});\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 || \"[all[tiddlers]]\");\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])) || [\"\"])[0];\n\t\t\t\tif(transformedTitle) {\n\t\t\t\t\tself.commander.log(\"Importing \" + title + \" as \" + 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(\"Importing \" + 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(\"Imported \" + count + \" tiddlers\")\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/help.js": {
+ "title": "$:/core/modules/commands/help.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"help\",\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] || \"default\",\n\t\thelpBase = \"$:/language/Help/\",\n\t\ttext;\n\tif(!this.commander.wiki.getTiddler(helpBase + subhelp)) {\n\t\tsubhelp = \"notfound\";\n\t}\n\t// Wikify the help as formatted text (ie block elements generate newlines)\n\ttext = this.commander.wiki.renderTiddler(\"text/plain-formatted\",helpBase + subhelp);\n\t// Remove any leading linebreaks\n\ttext = text.replace(/^(\\r?\\n)*/g,\"\");\n\tthis.commander.streams.output.write(text);\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/import.js": {
+ "title": "$:/core/modules/commands/import.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"import\",\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(\"fs\"),\n\t\tpath = require(\"path\");\n\tif(this.params.length < 2) {\n\t\treturn \"Missing parameters\";\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] || \"utf8\",\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 + \" tiddler(s) imported\");\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/init.js": {
+ "title": "$:/core/modules/commands/init.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"init\",\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(\"fs\"),\n\t\tpath = require(\"path\");\n\t// Check that we don't already have a valid wiki folder\n\tif($tw.boot.wikiTiddlersPath || ($tw.utils.isDirectory($tw.boot.wikiPath) && !$tw.utils.isDirectoryEmpty($tw.boot.wikiPath))) {\n\t\treturn \"Wiki folder is not empty\";\n\t}\n\t// Loop through each of the specified editions\n\tvar editions = this.params.length > 0 ? this.params : [\"empty\"];\n\tfor(var editionIndex=0; editionIndex<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 \"Edition '\" + editionName + \"' not found\";\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(\"Copied edition '\" + editionName + \"' to \" + $tw.boot.wikiPath + \"\\n\");\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 + \"/tiddlywiki.info\",\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",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/listen.js": {
+ "title": "$:/core/modules/commands/listen.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Server = require(\"$:/core/modules/server/server.js\").Server;\n\nexports.info = {\n\tname: \"listen\",\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(\"Warning: Wiki folder '\" + $tw.boot.wikiPath + \"' does not exist or is missing a tiddlywiki.info file\");\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(\"th-server-command-post-start\",this.server,nodeServer,\"tiddlywiki\");\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/load.js": {
+ "title": "$:/core/modules/commands/load.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"load\",\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(\"fs\"),\n\t\tpath = require(\"path\");\n\tif(this.params.length < 1) {\n\t\treturn \"Missing filename\";\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 && self.params[1] !== \"noerror\") {\n\t\tself.callback(\"No tiddlers found in file \\\"\" + self.params[0] + \"\\\"\");\n\t} else {\n\t\tself.callback(null);\n\t}\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/makelibrary.js": {
+ "title": "$:/core/modules/commands/makelibrary.js",
+ "text": "/*\\\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 \"library\"\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"makelibrary\",\n\tsynchronous: true\n};\n\nvar UPGRADE_LIBRARY_TITLE = \"$:/UpgradeLibrary\";\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(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\tupgradeLibraryTitle = this.params[0] || UPGRADE_LIBRARY_TITLE,\n\t\ttiddlers = {};\n\t// Collect up the library plugins\n\tvar collectPlugins = function(folder) {\n\t\t\tvar pluginFolders = $tw.utils.getSubdirectories(folder) || [];\n\t\t\tfor(var p=0; p<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,\"./\" + pluginFolders[p]));\n\t\t\t\t\tif(pluginFields && pluginFields.title) {\n\t\t\t\t\t\ttiddlers[pluginFields.title] = pluginFields;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tcollectPublisherPlugins = function(folder) {\n\t\t\tvar publisherFolders = $tw.utils.getSubdirectories(folder) || [];\n\t\t\tfor(var t=0; t<publisherFolders.length; t++) {\n\t\t\t\tif(!$tw.boot.excludeRegExp.test(publisherFolders[t])) {\n\t\t\t\t\tcollectPlugins(path.resolve(folder,\"./\" + publisherFolders[t]));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.pluginsPath,$tw.config.pluginsEnvVar),collectPublisherPlugins);\n\t$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.themesPath,$tw.config.themesEnvVar),collectPublisherPlugins);\n\t$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.languagesPath,$tw.config.languagesEnvVar),collectPlugins);\n\t// Save the upgrade library tiddler\n\tvar pluginFields = {\n\t\ttitle: upgradeLibraryTitle,\n\t\ttype: \"application/json\",\n\t\t\"plugin-type\": \"library\",\n\t\t\"text\": JSON.stringify({tiddlers: tiddlers})\n\t};\n\twiki.addTiddler(new $tw.Tiddler(pluginFields));\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/output.js": {
+ "title": "$:/core/modules/commands/output.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"output\",\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(\"fs\"),\n\t\tpath = require(\"path\");\n\tif(this.params.length < 1) {\n\t\treturn \"Missing output path\";\n\t}\n\tthis.commander.outputPath = path.resolve(process.cwd(),this.params[0]);\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/password.js": {
+ "title": "$:/core/modules/commands/password.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"password\",\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 < 1) {\n\t\treturn \"Missing password\";\n\t}\n\t$tw.crypto.setPassword(this.params[0]);\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/render.js": {
+ "title": "$:/core/modules/commands/render.js",
+ "text": "/*\\\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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.info = {\n\tname: \"render\",\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 < 1) {\n\t\treturn \"Missing tiddler filter\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\twiki = this.commander.wiki,\n\t\ttiddlerFilter = this.params[0],\n\t\tfilenameFilter = this.params[1] || \"[is[tiddler]addsuffix[.html]]\",\n\t\ttype = this.params[2] || \"text/html\",\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 || \"\";\n\t\t}\n\t\tvar widgetNode = wiki.makeWidget(parser,{variables: variables}),\n\t\t\tcontainer = $tw.fakeDocument.createElement(\"div\");\n\t\twidgetNode.render(container,null);\n\t\tvar text = type === \"text/html\" ? 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(\"Rendering \\\"\" + title + \"\\\" to \\\"\" + filepath + \"\\\"\");\n\t\t}\n\t\t$tw.utils.createFileDirectories(filepath);\n\t\tfs.writeFileSync(filepath,text,\"utf8\");\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/rendertiddler.js": {
+ "title": "$:/core/modules/commands/rendertiddler.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"rendertiddler\",\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 < 2) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\ttitle = this.params[0],\n\t\tfilename = path.resolve(this.commander.outputPath,this.params[1]),\n\t\ttype = this.params[2] || \"text/html\",\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 && value) {\n\t\tvariables[name] = value;\n\t}\n\tfs.writeFile(filename,this.commander.wiki.renderTiddler(type,title,{variables: variables}),\"utf8\",function(err) {\n\t\tself.callback(err);\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/rendertiddlers.js": {
+ "title": "$:/core/modules/commands/rendertiddlers.js",
+ "text": "/*\\\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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.info = {\n\tname: \"rendertiddlers\",\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 < 2) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\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] || \"text/html\",\n\t\textension = this.params[4] || \".html\",\n\t\tdeleteDirectory = (this.params[5] || \"\").toLowerCase() !== \"noclean\",\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(\"div\");\n\t\twidgetNode.render(container,null);\n\t\tvar text = type === \"text/html\" ? container.innerHTML : container.textContent,\n\t\t\texportPath = null;\n\t\tif($tw.utils.hop($tw.macros,\"tv-get-export-path\")) {\n\t\t\tvar macroPath = $tw.macros[\"tv-get-export-path\"].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,\"utf8\");\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/save.js": {
+ "title": "$:/core/modules/commands/save.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"save\",\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 < 1) {\n\t\treturn \"Missing filename filter\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\twiki = this.commander.wiki,\n\t\ttiddlerFilter = this.params[0],\n\t\tfilenameFilter = this.params[1] || \"[is[tiddler]]\",\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 || \"text/vnd.tiddlywiki\",\n\t\t\tcontentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: \"utf8\"},\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(\"Saving \\\"\" + title + \"\\\" to \\\"\" + filepath + \"\\\"\");\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",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/savelibrarytiddlers.js": {
+ "title": "$:/core/modules/commands/savelibrarytiddlers.js",
+ "text": "/*\\\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 <tiddler> <tiddler-filter> <pathname> <skinnylisting>\n\nThe tiddler identifies the bundle tiddler that contains the subtiddlers.\n\nThe tiddler filter specifies the plugins to be included.\n\nThe pathname specifies the pathname to the folder in which the JSON files should be saved. The filename is the URL encoded title of the subtiddler.\n\nThe skinnylisting specifies the title of the tiddler to which a JSON catalogue of the subtiddlers will be saved. The JSON file contains the same data as the bundle tiddler but with the `text` field removed.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"savelibrarytiddlers\",\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 < 2) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\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 \"'\" + containerTitle + \"' is not a tiddler bundle\";\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) + \".json\");\n\t\t$tw.utils.createFileDirectories(pathname);\n\t\tfs.writeFileSync(pathname,JSON.stringify(tiddler),\"utf8\");\n\t\t// Collect the skinny list data\n\t\tvar pluginTiddlers = JSON.parse(tiddler.text),\n\t\t\treadmeContent = (pluginTiddlers.tiddlers[title + \"/readme\"] || {}).text,\n\t\t\tdoesRequireReload = !!self.commander.wiki.doesPluginInfoRequireReload(pluginTiddlers),\n\t\t\ticonTiddler = pluginTiddlers.tiddlers[title + \"/icon\"] || {},\n\t\t\ticonType = iconTiddler.type,\n\t\t\ticonText = iconTiddler.text,\n\t\t\ticonContent;\n\t\tif(iconType && iconText) {\n\t\t\ticonContent = $tw.utils.makeDataUri(iconText,iconType);\n\t\t}\n\t\tskinnyList.push($tw.utils.extend({},tiddler,{\n\t\t\ttext: undefined,\n\t\t\treadme: readmeContent,\n\t\t\t\"requires-reload\": doesRequireReload ? \"yes\" : \"no\",\n\t\t\ticon: iconContent\n\t\t}));\n\t});\n\t// Save the catalogue tiddler\n\tif(skinnyListTitle) {\n\t\tself.commander.wiki.setTiddlerData(skinnyListTitle,skinnyList);\n\t}\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/savetiddler.js": {
+ "title": "$:/core/modules/commands/savetiddler.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"savetiddler\",\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 < 2) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\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 || \"text/vnd.tiddlywiki\",\n\t\t\tcontentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: \"utf8\"};\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 \"Missing tiddler: \" + title;\n\t}\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/savetiddlers.js": {
+ "title": "$:/core/modules/commands/savetiddlers.js",
+ "text": "/*\\\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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.info = {\n\tname: \"savetiddlers\",\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 < 1) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\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] || \"\").toLowerCase() !== \"noclean\",\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 || \"text/vnd.tiddlywiki\",\n\t\t\tcontentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: \"utf8\"},\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",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/savewikifolder.js": {
+ "title": "$:/core/modules/commands/savewikifolder.js",
+ "text": "/*\\\ntitle: $:/core/modules/commands/savewikifolder.js\ntype: application/javascript\nmodule-type: command\n\nCommand to save the current wiki as a wiki folder\n\n--savewikifolder <wikifolderpath> [<filter>]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"savewikifolder\",\n\tsynchronous: true\n};\n\nvar fs,path;\nif($tw.node) {\n\tfs = require(\"fs\");\n\tpath = require(\"path\");\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 < 1) {\n\t\treturn \"Missing wiki folder path\";\n\t}\n\tvar wikifoldermaker = new WikiFolderMaker(this.params[0],this.params[1],this.commander);\n\treturn wikifoldermaker.save();\n};\n\nfunction WikiFolderMaker(wikiFolderPath,wikiFilter,commander) {\n\tthis.wikiFolderPath = wikiFolderPath;\n\tthis.wikiFilter = wikiFilter || \"[all[tiddlers]]\";\n\tthis.commander = commander;\n\tthis.wiki = commander.wiki;\n\tthis.savedPaths = []; // So that we can detect filename clashes\n}\n\nWikiFolderMaker.prototype.log = function(str) {\n\tif(this.commander.verbose) {\n\t\tconsole.log(str);\n\t}\n};\n\nWikiFolderMaker.prototype.tiddlersToIgnore = [\n\t\"$:/boot/boot.css\",\n\t\"$:/boot/boot.js\",\n\t\"$:/boot/bootprefix.js\",\n\t\"$:/core\",\n\t\"$:/library/sjcl.js\",\n\t\"$:/temp/info-plugin\"\n];\n\n/*\nReturns null if successful, or an error string if there was an error\n*/\nWikiFolderMaker.prototype.save = function() {\n\tvar self = this;\n\t// Check that the output directory doesn't exist\n\tif(fs.existsSync(this.wikiFolderPath) && !$tw.utils.isDirectoryEmpty(this.wikiFolderPath)) {\n\t\treturn \"The unpackwiki command requires that the output wiki folder be empty\";\n\t}\n\t// Get the tiddlers from the source wiki\n\tvar tiddlerTitles = this.wiki.filterTiddlers(this.wikiFilter);\n\t// Initialise a new tiddlwiki.info file\n\tvar newWikiInfo = {};\n\t// Process each incoming tiddler in turn\n\t$tw.utils.each(tiddlerTitles,function(title) {\n\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\tif(tiddler) {\n\t\t\tif(self.tiddlersToIgnore.indexOf(title) !== -1) {\n\t\t\t\t// Ignore the core plugin and the ephemeral info plugin\n\t\t\t\tself.log(\"Ignoring tiddler: \" + title);\n\t\t\t} else {\n\t\t\t\tvar type = tiddler.fields.type,\n\t\t\t\t\tpluginType = tiddler.fields[\"plugin-type\"];\n\t\t\t\tif(type === \"application/json\" && pluginType) {\n\t\t\t\t\t// Plugin tiddler\n\t\t\t\t\tvar libraryDetails = self.findPluginInLibrary(title);\n\t\t\t\t\tif(libraryDetails) {\n\t\t\t\t\t\t// A plugin from the core library\n\t\t\t\t\t\tself.log(\"Adding built-in plugin: \" + libraryDetails.name);\n\t\t\t\t\t\tnewWikiInfo[libraryDetails.type] = newWikiInfo[libraryDetails.type] || [];\n\t\t\t\t\t\t$tw.utils.pushTop(newWikiInfo[libraryDetails.type],libraryDetails.name);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// A custom plugin\n\t\t\t\t\t\tself.log(\"Processing custom plugin: \" + title);\n\t\t\t\t\t\tself.saveCustomPlugin(tiddler);\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t// Ordinary tiddler\n\t\t\t\t\tself.saveTiddler(\"tiddlers\",tiddler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\t// Save the tiddlywiki.info file\n\tthis.saveJSONFile(\"tiddlywiki.info\",newWikiInfo);\n\tself.log(\"Writing tiddlywiki.info: \" + JSON.stringify(newWikiInfo,null,$tw.config.preferences.jsonSpaces));\n\treturn null;\n};\n\n/*\nTest whether the specified tiddler is a plugin in the plugin library\n*/\nWikiFolderMaker.prototype.findPluginInLibrary = function(title) {\n\tvar parts = title.split(\"/\"),\n\t\tpluginPath, type, name;\n\tif(parts[0] === \"$:\") {\n\t\tif(parts[1] === \"languages\" && parts.length === 3) {\n\t\t\tpluginPath = \"languages\" + path.sep + parts[2];\n\t\t\ttype = parts[1];\n\t\t\tname = parts[2];\n\t\t} else if(parts[1] === \"plugins\" || parts[1] === \"themes\" && parts.length === 4) {\n\t\t\tpluginPath = parts[1] + path.sep + parts[2] + path.sep + parts[3];\n\t\t\ttype = parts[1];\n\t\t\tname = parts[2] + \"/\" + parts[3];\n\t\t}\n\t}\n\tif(pluginPath && type && name) {\n\t\tpluginPath = path.resolve($tw.boot.bootPath,\"..\",pluginPath);\n\t\tif(fs.existsSync(pluginPath)) {\n\t\t\treturn {\n\t\t\t\tpluginPath: pluginPath,\n\t\t\t\ttype: type,\n\t\t\t\tname: name\n\t\t\t};\n\t\t}\n\t}\n\treturn false;\n};\n\nWikiFolderMaker.prototype.saveCustomPlugin = function(pluginTiddler) {\n\tvar self = this,\n\t\tpluginTitle = pluginTiddler.fields.title,\n\t\ttitleParts = pluginTitle.split(\"/\"),\n\t\tdirectory = $tw.utils.generateTiddlerFilepath(titleParts[titleParts.length - 1],{\n\t\t\tdirectory: path.resolve(this.wikiFolderPath,pluginTiddler.fields[\"plugin-type\"] + \"s\")\n\t\t}),\n\t\tpluginInfo = pluginTiddler.getFieldStrings({exclude: [\"text\",\"type\"]});\n\tthis.saveJSONFile(directory + path.sep + \"plugin.info\",pluginInfo);\n\tself.log(\"Writing \" + directory + path.sep + \"plugin.info: \" + JSON.stringify(pluginInfo,null,$tw.config.preferences.jsonSpaces));\n\tvar pluginTiddlers = JSON.parse(pluginTiddler.fields.text).tiddlers; // A hashmap of tiddlers in the plugin\n\t$tw.utils.each(pluginTiddlers,function(tiddler) {\n\t\tself.saveTiddler(directory,new $tw.Tiddler(tiddler));\n\t});\n};\n\nWikiFolderMaker.prototype.saveTiddler = function(directory,tiddler) {\n\tvar fileInfo = $tw.utils.generateTiddlerFileInfo(tiddler,{\n\t\tdirectory: path.resolve(this.wikiFolderPath,directory),\n\t\twiki: this.wiki\n\t});\n\t$tw.utils.saveTiddlerToFileSync(tiddler,fileInfo);\n};\n\nWikiFolderMaker.prototype.saveJSONFile = function(filename,json) {\n\tthis.saveTextFile(filename,JSON.stringify(json,null,$tw.config.preferences.jsonSpaces));\n};\n\nWikiFolderMaker.prototype.saveTextFile = function(filename,data) {\n\tthis.saveFile(filename,\"utf8\",data);\n};\n\nWikiFolderMaker.prototype.saveFile = function(filename,encoding,data) {\n\tvar filepath = path.resolve(this.wikiFolderPath,filename);\n\t$tw.utils.createFileDirectories(filepath);\n\tfs.writeFileSync(filepath,data,encoding);\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/server.js": {
+ "title": "$:/core/modules/commands/server.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Server = require(\"$:/core/modules/server/server.js\").Server;\n\nexports.info = {\n\tname: \"server\",\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(\"Warning: Wiki folder '\" + $tw.boot.wikiPath + \"' does not exist or is missing a tiddlywiki.info file\");\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\"root-tiddler\": this.params[1],\n\t\t\t\"root-render-type\": this.params[2],\n\t\t\t\"root-serve-type\": this.params[3],\n\t\t\tusername: this.params[4],\n\t\t\tpassword: this.params[5],\n\t\t\t\"path-prefix\": this.params[7],\n\t\t\t\"debug-level\": this.params[8]\n\t\t}\n\t});\n\tvar nodeServer = this.server.listen();\n\t$tw.hooks.invokeHook(\"th-server-command-post-start\",this.server,nodeServer,\"tiddlywiki\");\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/setfield.js": {
+ "title": "$:/core/modules/commands/setfield.js",
+ "text": "/*\\\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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.info = {\n\tname: \"setfield\",\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 < 4) {\n\t\treturn \"Missing parameters\";\n\t}\n\tvar self = this,\n\t\twiki = this.commander.wiki,\n\t\tfilter = this.params[0],\n\t\tfieldname = this.params[1] || \"text\",\n\t\ttemplatetitle = this.params[2],\n\t\trendertype = this.params[3] || \"text/plain\",\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(\"div\");\n\t\t\twidgetNode.render(container,null);\n\t\t\tnewFields[fieldname] = rendertype === \"text/html\" ? 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",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/unpackplugin.js": {
+ "title": "$:/core/modules/commands/unpackplugin.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"unpackplugin\",\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 < 1) {\n\t\treturn \"Missing plugin name\";\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 \"Plugin '\" + title + \"' not found\";\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",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/verbose.js": {
+ "title": "$:/core/modules/commands/verbose.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"verbose\",\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(\"Boot log:\\n \" + $tw.boot.logMessages.join(\"\\n \") + \"\\n\");\n\treturn null; // No error\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/commands/version.js": {
+ "title": "$:/core/modules/commands/version.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"version\",\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 + \"\\n\");\n\treturn null; // No error\n};\n\nexports.Command = Command;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "command"
+ },
+ "$:/core/modules/config.js": {
+ "title": "$:/core/modules/config.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.preferences = {};\n\nexports.preferences.notificationDuration = 3 * 1000;\nexports.preferences.jsonSpaces = 4;\n\nexports.textPrimitives = {\n\tupperLetter: \"[A-Z\\u00c0-\\u00d6\\u00d8-\\u00de\\u0150\\u0170]\",\n\tlowerLetter: \"[a-z\\u00df-\\u00f6\\u00f8-\\u00ff\\u0151\\u0171]\",\n\tanyLetter: \"[A-Za-z0-9\\u00c0-\\u00d6\\u00d8-\\u00de\\u00df-\\u00f6\\u00f8-\\u00ff\\u0150\\u0170\\u0151\\u0171]\",\n\tblockPrefixLetters:\t\"[A-Za-z0-9-_\\u00c0-\\u00d6\\u00d8-\\u00de\\u00df-\\u00f6\\u00f8-\\u00ff\\u0150\\u0170\\u0151\\u0171]\"\n};\n\nexports.textPrimitives.unWikiLink = \"~\";\nexports.textPrimitives.wikiLink = exports.textPrimitives.upperLetter + \"+\" +\n\texports.textPrimitives.lowerLetter + \"+\" +\n\texports.textPrimitives.upperLetter +\n\texports.textPrimitives.anyLetter + \"*\";\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 = \"area,base,br,col,command,embed,hr,img,input,keygen,link,meta,param,source,track,wbr\".split(\",\");\n\nexports.htmlBlockElements = \"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\".split(\",\");\n\nexports.htmlUnsafeElements = \"script\".split(\",\");\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "config"
+ },
+ "$:/core/modules/deserializers.js": {
+ "title": "$:/core/modules/deserializers.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nUtility function to parse an old-style tiddler DIV in a *.tid file. It looks like this:\n\n<div title=\"Title\" creator=\"JoeBloggs\" modifier=\"JoeBloggs\" created=\"201102111106\" modified=\"201102111310\" tags=\"myTag [[my long tag]]\">\n<pre>The text of the tiddler (without the expected HTML encoding).\n</pre>\n</div>\n\nNote that the field attributes are HTML encoded, but that the body of the <PRE> 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 > 1) {\n\t\tfor(var f=1; f<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*<div\\s+([^>]*)>(\\s*<pre>)?/gi,\n\t\tendRegExp,\n\t\tmatch = startRegExp.exec(text);\n\tif(match) {\n\t\t// Old-style DIVs don't have the <pre> tag\n\t\tif(match[2]) {\n\t\t\tendRegExp = /<\\/pre>\\s*<\\/div>\\s*$/gi;\n\t\t} else {\n\t\t\tendRegExp = /<\\/div>\\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*(?:\"([^\"]*)\"|'([^']*)')/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[\"application/x-tiddler-html-div\"] = function(text,fields) {\n\treturn [parseTiddlerDiv(text,fields)];\n};\n\nexports[\"application/json\"] = 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: \"JSON error: \" + e,\n\t\t\ttext: \"\"\n\t\t}]\n\t}\n\tif(!$tw.utils.isArray(incoming)) {\n\t\tincoming = [incoming];\n\t}\n\tfor(var t=0; t<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] === \"string\") {\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[\"text/html\"] = function(text,fields) {\n\t// Check if we've got a store area\n\tvar storeAreaMarkerRegExp = /<div id=[\"']?storeArea['\"]?( style=[\"']?display:none;[\"']?)?>/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 = /<div id=[\"']?systemArea['\"]?( style=[\"']?display:none;[\"']?)?>/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 = \"text/html\";\n\treturn [result];\n}\n\nfunction deserializeTiddlyWikiFile(text,storeAreaEnd,isTiddlyWiki5,fields) {\n\tvar results = [],\n\t\tendOfDivRegExp = /(<\\/div>\\s*)/gi,\n\t\tstartPos = storeAreaEnd,\n\t\tdefaultType = isTiddlyWiki5 ? undefined : \"text/x-tiddlywiki\";\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 === \"string\") {\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",
+ "type": "application/javascript",
+ "module-type": "tiddlerdeserializer"
+ },
+ "$:/core/modules/editor/engines/framed.js": {
+ "title": "$:/core/modules/editor/engines/framed.js",
+ "text": "/*\\\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\"use strict\";\n\nvar HEIGHT_VALUE_TITLE = \"$:/config/TextEditor/EditorHeight/Height\";\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(\"textarea\");\n\tif(this.widget.editClass) {\n\t\tthis.dummyTextArea.className = this.widget.editClass;\n\t}\n\tthis.dummyTextArea.setAttribute(\"hidden\",\"true\");\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(\"iframe\");\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(\"\");\n\tthis.iframeDoc.close();\n\t// Style the iframe\n\tthis.iframeNode.className = this.dummyTextArea.className;\n\tthis.iframeNode.style.border = \"none\";\n\tthis.iframeNode.style.padding = \"0\";\n\tthis.iframeNode.style.resize = \"none\";\n\tthis.iframeDoc.body.style.margin = \"0\";\n\tthis.iframeDoc.body.style.padding = \"0\";\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 = \"input\";\n\t}\n\tthis.domNode = this.iframeDoc.createElement(tag);\n\t// Set the text\n\tif(this.widget.editTag === \"textarea\") {\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(\"type\",this.widget.editType);\n\t}\n\tif(this.widget.editPlaceholder) {\n\t\tthis.domNode.setAttribute(\"placeholder\",this.widget.editPlaceholder);\n\t}\n\tif(this.widget.editSize) {\n\t\tthis.domNode.setAttribute(\"size\",this.widget.editSize);\n\t}\n\tif(this.widget.editRows) {\n\t\tthis.domNode.setAttribute(\"rows\",this.widget.editRows);\n\t}\n\tif(this.widget.editTabIndex) {\n\t\tthis.iframeNode.setAttribute(\"tabindex\",this.widget.editTabIndex);\n\t}\n\tif(this.widget.editAutoComplete) {\n\t\tthis.domNode.setAttribute(\"autocomplete\",this.widget.editAutoComplete);\n\t}\n\tif(this.widget.isDisabled === \"yes\") {\n\t\tthis.domNode.setAttribute(\"disabled\",true);\n\t}\t\n\t// Copy the styles from the dummy textarea\n\tthis.copyStyles();\n\t// Add event listeners\n\t$tw.utils.addEventListeners(this.domNode,[\n\t\t{name: \"click\",handlerObject: this,handlerMethod: \"handleClickEvent\"},\n\t\t{name: \"input\",handlerObject: this,handlerMethod: \"handleInputEvent\"},\n\t\t{name: \"keydown\",handlerObject: this.widget,handlerMethod: \"handleKeydownEvent\"},\n\t\t{name: \"focus\",handlerObject: this,handlerMethod: \"handleFocusEvent\"}\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 = \"block\";\n\tthis.domNode.style.width = \"100%\";\n\tthis.domNode.style.margin = \"0\";\n\t// In Chrome setting -webkit-text-fill-color overrides the placeholder text colour\n\tthis.domNode.style[\"-webkit-text-fill-color\"] = \"currentcolor\";\n};\n\n/*\nSet the text of the engine if it doesn't currently have focus\n*/\nFramedEngine.prototype.setText = function(text,type) {\n\tif(!this.domNode.isTiddlyWikiFakeDom) {\n\t\tif(this.domNode.ownerDocument.activeElement !== this.domNode) {\n\t\t\tthis.updateDomNodeText(text);\n\t\t}\n\t\t// Fix the height if needed\n\t\tthis.fixHeight();\n\t}\n};\n\n/*\nUpdate the DomNode with the new text\n*/\nFramedEngine.prototype.updateDomNodeText = function(text) {\n\tthis.domNode.value = text;\n};\n\n/*\nGet the text of the engine\n*/\nFramedEngine.prototype.getText = function() {\n\treturn this.domNode.value;\n};\n\n/*\nFix the height of textarea to fit content\n*/\nFramedEngine.prototype.fixHeight = function() {\n\t// Make sure styles are updated\n\tthis.copyStyles();\n\t// Adjust height\n\tif(this.widget.editTag === \"textarea\") {\n\t\tif(this.widget.editAutoHeight) {\n\t\t\tif(this.domNode && !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) + \"px\"; // +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,\"400px\"),10);\n\t\t\tfixedHeight = Math.max(fixedHeight,20);\n\t\t\tthis.domNode.style.height = fixedHeight + \"px\";\n\t\t\tthis.iframeNode.style.height = (fixedHeight + 14) + \"px\";\n\t\t}\n\t}\n};\n\n/*\nFocus the engine node\n*/\nFramedEngine.prototype.focus = function() {\n\tif(this.domNode.focus && this.domNode.select) {\n\t\tthis.domNode.focus();\n\t\tthis.domNode.select();\n\t}\n};\n\n/*\nHandle a focus event\n*/\nFramedEngine.prototype.handleFocusEvent = function(event) {\n\tif(this.widget.editCancelPopups) {\n\t\t$tw.popup.cancel(0);\t\n\t}\n};\n\n/*\nHandle a click\n*/\nFramedEngine.prototype.handleClickEvent = function(event) {\n\tthis.fixHeight();\n\treturn true;\n};\n\n/*\nHandle a dom \"input\" event which occurs when the text has changed\n*/\nFramedEngine.prototype.handleInputEvent = function(event) {\n\tthis.widget.saveChanges(this.getText());\n\tthis.fixHeight();\n\tif(this.widget.editInputActions) {\n\t\tthis.widget.invokeActionString(this.widget.editInputActions);\n\t}\n\treturn true;\n};\n\n/*\nCreate a blank structure representing a text operation\n*/\nFramedEngine.prototype.createTextOperation = function() {\n\tvar operation = {\n\t\ttext: this.domNode.value,\n\t\tselStart: this.domNode.selectionStart,\n\t\tselEnd: this.domNode.selectionEnd,\n\t\tcutStart: null,\n\t\tcutEnd: null,\n\t\treplacement: null,\n\t\tnewSelStart: null,\n\t\tnewSelEnd: null\n\t};\n\toperation.selection = operation.text.substring(operation.selStart,operation.selEnd);\n\treturn operation;\n};\n\n/*\nExecute a text operation\n*/\nFramedEngine.prototype.executeTextOperation = function(operation) {\n\t// Perform the required changes to the text area and the underlying tiddler\n\tvar newText = operation.text;\n\tif(operation.replacement !== null) {\n\t\tnewText = operation.text.substring(0,operation.cutStart) + operation.replacement + operation.text.substring(operation.cutEnd);\n\t\t// Attempt to use a execCommand to modify the value of the control\n\t\tif(this.iframeDoc.queryCommandSupported(\"insertText\") && this.iframeDoc.queryCommandSupported(\"delete\") && !$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 === \"\") {\n\t\t\t\tthis.iframeDoc.execCommand(\"delete\",false,\"\");\n\t\t\t} else {\n\t\t\t\tthis.iframeDoc.execCommand(\"insertText\",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",
+ "type": "application/javascript",
+ "module-type": "library"
+ },
+ "$:/core/modules/editor/engines/simple.js": {
+ "title": "$:/core/modules/editor/engines/simple.js",
+ "text": "/*\\\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\"use strict\";\n\nvar HEIGHT_VALUE_TITLE = \"$:/config/TextEditor/EditorHeight/Height\";\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 = \"input\";\n\t}\n\tthis.domNode = this.widget.document.createElement(tag);\n\t// Set the text\n\tif(this.widget.editTag === \"textarea\") {\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(\"type\",this.widget.editType);\n\t}\n\tif(this.widget.editPlaceholder) {\n\t\tthis.domNode.setAttribute(\"placeholder\",this.widget.editPlaceholder);\n\t}\n\tif(this.widget.editSize) {\n\t\tthis.domNode.setAttribute(\"size\",this.widget.editSize);\n\t}\n\tif(this.widget.editRows) {\n\t\tthis.domNode.setAttribute(\"rows\",this.widget.editRows);\n\t}\n\tif(this.widget.editClass) {\n\t\tthis.domNode.className = this.widget.editClass;\n\t}\n\tif(this.widget.editTabIndex) {\n\t\tthis.domNode.setAttribute(\"tabindex\",this.widget.editTabIndex);\n\t}\n\tif(this.widget.editAutoComplete) {\n\t\tthis.domNode.setAttribute(\"autocomplete\",this.widget.editAutoComplete);\n\t}\n\tif(this.widget.isDisabled === \"yes\") {\n\t\tthis.domNode.setAttribute(\"disabled\",true);\n\t}\n\t// Add an input event handler\n\t$tw.utils.addEventListeners(this.domNode,[\n\t\t{name: \"focus\", handlerObject: this, handlerMethod: \"handleFocusEvent\"},\n\t\t{name: \"input\", handlerObject: this, handlerMethod: \"handleInputEvent\"}\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 === \"\") {\n\t\t\tthis.updateDomNodeText(text);\n\t\t}\n\t\t// Fix the height if needed\n\t\tthis.fixHeight();\n\t}\n};\n\n/*\nUpdate the DomNode with the new text\n*/\nSimpleEngine.prototype.updateDomNodeText = function(text) {\n\tthis.domNode.value = text;\n};\n\n/*\nGet the text of the engine\n*/\nSimpleEngine.prototype.getText = function() {\n\treturn this.domNode.value;\n};\n\n/*\nFix the height of textarea to fit content\n*/\nSimpleEngine.prototype.fixHeight = function() {\n\tif(this.widget.editTag === \"textarea\") {\n\t\tif(this.widget.editAutoHeight) {\n\t\t\tif(this.domNode && !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,\"400px\"),10);\n\t\t\tfixedHeight = Math.max(fixedHeight,20);\n\t\t\tthis.domNode.style.height = fixedHeight + \"px\";\n\t\t}\n\t}\n};\n\n/*\nFocus the engine node\n*/\nSimpleEngine.prototype.focus = function() {\n\tif(this.domNode.focus && this.domNode.select) {\n\t\tthis.domNode.focus();\n\t\tthis.domNode.select();\n\t}\n};\n\n/*\nHandle a dom \"input\" event which occurs when the text has changed\n*/\nSimpleEngine.prototype.handleInputEvent = function(event) {\n\tthis.widget.saveChanges(this.getText());\n\tthis.fixHeight();\n\tif(this.widget.editInputActions) {\n\t\tthis.widget.invokeActionString(this.widget.editInputActions);\n\t}\n\treturn true;\n};\n\n/*\nHandle a dom \"focus\" event\n*/\nSimpleEngine.prototype.handleFocusEvent = function(event) {\n\tif(this.widget.editCancelPopups) {\n\t\t$tw.popup.cancel(0);\n\t}\n\tif(this.widget.editFocusPopup) {\n\t\t$tw.popup.triggerPopup({\n\t\t\tdomNode: this.domNode,\n\t\t\ttitle: this.widget.editFocusPopup,\n\t\t\twiki: this.widget.wiki,\n\t\t\tforce: true\n\t\t});\n\t}\n\treturn true;\n};\n\n/*\nCreate a blank structure representing a text operation\n*/\nSimpleEngine.prototype.createTextOperation = function() {\n\treturn null;\n};\n\n/*\nExecute a text operation\n*/\nSimpleEngine.prototype.executeTextOperation = function(operation) {\n};\n\nexports.SimpleEngine = SimpleEngine;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "library"
+ },
+ "$:/core/modules/editor/factory.js": {
+ "title": "$:/core/modules/editor/factory.js",
+ "text": "/*\\\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\"use strict\";\n\nvar DEFAULT_MIN_TEXT_AREA_HEIGHT = \"100px\"; // Minimum height of textareas in pixels\n\n// Configuration tiddlers\nvar HEIGHT_MODE_TITLE = \"$:/config/TextEditor/EditorHeight/Mode\";\nvar ENABLE_TOOLBAR_TITLE = \"$:/config/TextEditor/EnableToolbar\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"texteditoroperation\",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(\"div\");\n\t\t\tthis.toolbarNode.className = \"tc-editor-toolbar\";\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 === \"true\" || this.editFocus === \"yes\") {\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: \"tm-edit-text-operation\", handler: \"handleEditTextOperationMessage\"}\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 = \"text/plain\",\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 === \"text\") {\n\t\t\t\t\ttype = tiddler.fields.type || \"text/vnd.tiddlywiki\";\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 \"text\":\n\t\t\t\t\t\tvalue = \"Type the text for the tiddler '\" + this.editTitle + \"'\";\n\t\t\t\t\t\ttype = \"text/vnd.tiddlywiki\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"title\":\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 = \"\";\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 || \"\", 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(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\t\tthis.editField = this.getAttribute(\"field\",\"text\");\n\t\tthis.editIndex = this.getAttribute(\"index\");\n\t\tthis.editDefault = this.getAttribute(\"default\");\n\t\tthis.editClass = this.getAttribute(\"class\");\n\t\tthis.editPlaceholder = this.getAttribute(\"placeholder\");\n\t\tthis.editSize = this.getAttribute(\"size\");\n\t\tthis.editRows = this.getAttribute(\"rows\");\n\t\tthis.editAutoHeight = this.wiki.getTiddlerText(HEIGHT_MODE_TITLE,\"auto\");\n\t\tthis.editAutoHeight = this.getAttribute(\"autoHeight\",this.editAutoHeight === \"auto\" ? \"yes\" : \"no\") === \"yes\";\n\t\tthis.editMinHeight = this.getAttribute(\"minHeight\",DEFAULT_MIN_TEXT_AREA_HEIGHT);\n\t\tthis.editFocusPopup = this.getAttribute(\"focusPopup\");\n\t\tthis.editFocus = this.getAttribute(\"focus\");\n\t\tthis.editTabIndex = this.getAttribute(\"tabindex\");\n\t\tthis.editCancelPopups = this.getAttribute(\"cancelPopups\",\"\") === \"yes\";\n\t\tthis.editInputActions = this.getAttribute(\"inputActions\");\n\t\tthis.editRefreshTitle = this.getAttribute(\"refreshTitle\");\n\t\tthis.editAutoComplete = this.getAttribute(\"autocomplete\");\n\t\tthis.isDisabled = this.getAttribute(\"disabled\",\"no\");\n\t\t// Get the default editor element tag and type\n\t\tvar tag,type;\n\t\tif(this.editField === \"text\") {\n\t\t\ttag = \"textarea\";\n\t\t} else {\n\t\t\ttag = \"input\";\n\t\t\tvar fieldModule = $tw.Tiddler.fieldModules[this.editField];\n\t\t\tif(fieldModule && fieldModule.editTag) {\n\t\t\t\ttag = fieldModule.editTag;\n\t\t\t}\n\t\t\tif(fieldModule && fieldModule.editType) {\n\t\t\t\ttype = fieldModule.editType;\n\t\t\t}\n\t\t\ttype = type || \"text\";\n\t\t}\n\t\t// Get the rest of our parameters\n\t\tthis.editTag = this.getAttribute(\"tag\",tag) || \"input\";\n\t\tthis.editType = this.getAttribute(\"type\",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,\"yes\");\n\t\tthis.editShowToolbar = (this.editShowToolbar === \"yes\") && !!(this.children && this.children.length > 0) && (!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[\"default\"] || changedAttributes[\"class\"] || changedAttributes.placeholder || changedAttributes.size || changedAttributes.autoHeight || changedAttributes.minHeight || changedAttributes.focusPopup || changedAttributes.rows || changedAttributes.tabindex || changedAttributes.cancelPopups || changedAttributes.inputActions || changedAttributes.refreshTitle || changedAttributes.autocomplete || changedTiddlers[HEIGHT_MODE_TITLE] || changedTiddlers[ENABLE_TOOLBAR_TITLE] || changedAttributes.disabled) {\n\t\t\tthis.refreshSelf();\n\t\t\treturn true;\n\t\t} else if (changedTiddlers[this.editRefreshTitle]) {\n\t\t\tthis.engine.updateDomNodeText(this.getEditInfo().value);\n\t\t} else if(changedTiddlers[this.editTitle]) {\n\t\t\tvar editInfo = this.getEditInfo();\n\t\t\tthis.updateEditor(editInfo.value,editInfo.type);\n\t\t}\n\t\tthis.engine.fixHeight();\n\t\tif(this.editShowToolbar) {\n\t\t\treturn this.refreshChildren(changedTiddlers);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t};\n\n\t/*\n\tUpdate the editor with new text. This method is separate from updateEditorDomNode()\n\tso that subclasses can override updateEditor() and still use updateEditorDomNode()\n\t*/\n\tEditTextWidget.prototype.updateEditor = function(text,type) {\n\t\tthis.updateEditorDomNode(text,type);\n\t};\n\n\t/*\n\tUpdate the editor dom node with new text\n\t*/\n\tEditTextWidget.prototype.updateEditorDomNode = function(text,type) {\n\t\tthis.engine.setText(text,type);\n\t};\n\n\t/*\n\tSave changes back to the tiddler store\n\t*/\n\tEditTextWidget.prototype.saveChanges = function(text) {\n\t\tvar editInfo = this.getEditInfo();\n\t\tif(text !== editInfo.value) {\n\t\t\teditInfo.update(text);\n\t\t}\n\t};\n\n\t/*\n\tHandle a dom \"keydown\" 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(\"[data-tw-keyboard-shortcut]\");\n\t\t\tfor(var index=0; index<shortcutElements.length; index++) {\n\t\t\t\tvar el = shortcutElements[index],\n\t\t\t\t\tshortcutData = el.getAttribute(\"data-tw-keyboard-shortcut\"),\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(\"Events\");\n\t\t\t\t clickEvent.initEvent(\"click\",true,false);\n\t\t\t\t el.dispatchEvent(clickEvent);\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Propogate the event to the container\n\t\tif(this.propogateKeydownEvent(event)) {\n\t\t\t// Ignore the keydown if it was already handled\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t\treturn true;\n\t\t}\n\t\t// Otherwise, process the keydown normally\n\t\treturn false;\n\t};\n\n\t/*\n\tPropogate keydown events to our container for the keyboard widgets benefit\n\t*/\n\tEditTextWidget.prototype.propogateKeydownEvent = function(event) {\n\t\tvar newEvent = this.document.createEventObject ? this.document.createEventObject() : this.document.createEvent(\"Events\");\n\t\tif(newEvent.initEvent) {\n\t\t\tnewEvent.initEvent(\"keydown\", 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",
+ "type": "application/javascript",
+ "module-type": "library"
+ },
+ "$:/core/modules/editor/operations/bitmap/clear.js": {
+ "title": "$:/core/modules/editor/operations/bitmap/clear.js",
+ "text": "/*\\\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\"use strict\";\n\nexports[\"clear\"] = function(event) {\n\tvar ctx = this.canvasDomNode.getContext(\"2d\");\n\tctx.globalAlpha = 1;\n\tctx.fillStyle = event.paramObject.colour || \"white\";\n\tctx.fillRect(0,0,this.canvasDomNode.width,this.canvasDomNode.height);\n\t// Save changes\n\tthis.strokeEnd();\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "bitmapeditoroperation"
+ },
+ "$:/core/modules/editor/operations/bitmap/resize.js": {
+ "title": "$:/core/modules/editor/operations/bitmap/resize.js",
+ "text": "/*\\\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\"use strict\";\n\nexports[\"resize\"] = 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 > 0 && newHeight > 0 && !(newWidth === this.currCanvas.width && 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",
+ "type": "application/javascript",
+ "module-type": "bitmapeditoroperation"
+ },
+ "$:/core/modules/editor/operations/bitmap/rotate-left.js": {
+ "title": "$:/core/modules/editor/operations/bitmap/rotate-left.js",
+ "text": "/*\\\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\"use strict\";\n\nexports[\"rotate-left\"] = 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",
+ "type": "application/javascript",
+ "module-type": "bitmapeditoroperation"
+ },
+ "$:/core/modules/editor/operations/text/excise.js": {
+ "title": "$:/core/modules/editor/operations/text/excise.js",
+ "text": "/*\\\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\"use strict\";\n\nexports[\"excise\"] = function(event,operation) {\n\tvar editTiddler = this.wiki.getTiddler(this.editTitle),\n\t\teditTiddlerTitle = this.editTitle;\n\tif(editTiddler && editTiddler.fields[\"draft.of\"]) {\n\t\teditTiddlerTitle = editTiddler.fields[\"draft.of\"];\n\t}\n\tvar excisionTitle = event.paramObject.title || this.wiki.generateNewTitle(\"New Excision\");\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 === \"yes\" ? [editTiddlerTitle] : []\n\t\t}\n\t));\n\toperation.replacement = excisionTitle;\n\tswitch(event.paramObject.type || \"transclude\") {\n\t\tcase \"transclude\":\n\t\t\toperation.replacement = \"{{\" + operation.replacement+ \"}}\";\n\t\t\tbreak;\n\t\tcase \"link\":\n\t\t\toperation.replacement = \"[[\" + operation.replacement+ \"]]\";\n\t\t\tbreak;\n\t\tcase \"macro\":\n\t\t\toperation.replacement = \"<<\" + (event.paramObject.macro || \"translink\") + \" \\\"\\\"\\\"\" + operation.replacement + \"\\\"\\\"\\\">>\";\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",
+ "type": "application/javascript",
+ "module-type": "texteditoroperation"
+ },
+ "$:/core/modules/editor/operations/text/make-link.js": {
+ "title": "$:/core/modules/editor/operations/text/make-link.js",
+ "text": "/*\\\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\"use strict\";\n\nexports[\"make-link\"] = function(event,operation) {\n\tif(operation.selection) {\n\t\toperation.replacement = \"[[\" + operation.selection + \"|\" + event.paramObject.text + \"]]\";\n\t\toperation.cutStart = operation.selStart;\n\t\toperation.cutEnd = operation.selEnd;\n\t} else {\n\t\toperation.replacement = \"[[\" + event.paramObject.text + \"]]\";\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",
+ "type": "application/javascript",
+ "module-type": "texteditoroperation"
+ },
+ "$:/core/modules/editor/operations/text/prefix-lines.js": {
+ "title": "$:/core/modules/editor/operations/text/prefix-lines.js",
+ "text": "/*\\\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\"use strict\";\n\nexports[\"prefix-lines\"] = function(event,operation) {\n\tvar targetCount = parseInt(event.paramObject.count + \"\",10);\n\t// Cut just past the preceding line break, or the start of the text\n\toperation.cutStart = $tw.utils.findPrecedingLineBreak(operation.text,operation.selStart);\n\t// Cut to just past the following line break, or to the end of the text\n\toperation.cutEnd = $tw.utils.findFollowingLineBreak(operation.text,operation.selEnd);\n\t// Compose the required prefix\n\tvar prefix = $tw.utils.repeat(event.paramObject.character,targetCount);\n\t// Process each line\n\tvar lines = operation.text.substring(operation.cutStart,operation.cutEnd).split(/\\r?\\n/mg);\n\t$tw.utils.each(lines,function(line,index) {\n\t\t// Remove and count any existing prefix characters\n\t\tvar count = 0;\n\t\twhile(line.charAt(0) === event.paramObject.character) {\n\t\t\tline = line.substring(1);\n\t\t\tcount++;\n\t\t}\n\t\t// Remove any whitespace\n\t\twhile(line.charAt(0) === \" \") {\n\t\t\tline = line.substring(1);\n\t\t}\n\t\t// We're done if we removed the exact required prefix, otherwise add it\n\t\tif(count !== targetCount) {\n\t\t\t// Apply the prefix\n\t\t\tline = prefix + \" \" + 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(\"\\n\");\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",
+ "type": "application/javascript",
+ "module-type": "texteditoroperation"
+ },
+ "$:/core/modules/editor/operations/text/replace-all.js": {
+ "title": "$:/core/modules/editor/operations/text/replace-all.js",
+ "text": "/*\\\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\"use strict\";\n\nexports[\"replace-all\"] = 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",
+ "type": "application/javascript",
+ "module-type": "texteditoroperation"
+ },
+ "$:/core/modules/editor/operations/text/replace-selection.js": {
+ "title": "$:/core/modules/editor/operations/text/replace-selection.js",
+ "text": "/*\\\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\"use strict\";\n\nexports[\"replace-selection\"] = 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",
+ "type": "application/javascript",
+ "module-type": "texteditoroperation"
+ },
+ "$:/core/modules/editor/operations/text/save-selection.js": {
+ "title": "$:/core/modules/editor/operations/text/save-selection.js",
+ "text": "/*\\\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\"use strict\";\n\nexports[\"save-selection\"] = function(event,operation) {\n\tvar tiddler = event.paramObject.tiddler,\n\t\tfield = event.paramObject.field || \"text\";\n\tif(tiddler && field) {\n\t\tthis.wiki.setText(tiddler,field,null,operation.text.substring(operation.selStart,operation.selEnd));\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "texteditoroperation"
+ },
+ "$:/core/modules/editor/operations/text/wrap-lines.js": {
+ "title": "$:/core/modules/editor/operations/text/wrap-lines.js",
+ "text": "/*\\\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\"use strict\";\n\nexports[\"wrap-lines\"] = 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 + \"\\n\" +\n\t\t\t\toperation.text.substring(operation.cutStart,operation.cutEnd) + \"\\n\" +\n\t\t\t\tevent.paramObject.suffix + \"\\n\";\n\toperation.newSelStart = operation.cutStart + event.paramObject.prefix.length + 1;\n\toperation.newSelEnd = operation.newSelStart + (operation.cutEnd - operation.cutStart);\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "texteditoroperation"
+ },
+ "$:/core/modules/editor/operations/text/wrap-selection.js": {
+ "title": "$:/core/modules/editor/operations/text/wrap-selection.js",
+ "text": "/*\\\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\"use strict\";\n\nexports[\"wrap-selection\"] = function(event,operation) {\n\tif(operation.selStart === operation.selEnd) {\n\t\t// No selection; check if we're within the prefix/suffix\n\t\tif(operation.text.substring(operation.selStart - event.paramObject.prefix.length,operation.selStart + event.paramObject.suffix.length) === event.paramObject.prefix + event.paramObject.suffix) {\n\t\t\t// Remove the prefix and suffix\n\t\t\toperation.cutStart = operation.selStart - event.paramObject.prefix.length;\n\t\t\toperation.cutEnd = operation.selEnd + event.paramObject.suffix.length;\n\t\t\toperation.replacement = \"\";\n\t\t\toperation.newSelStart = operation.cutStart;\n\t\t\toperation.newSelEnd = operation.newSelStart;\n\t\t} else {\n\t\t\t// Wrap the cursor instead\n\t\t\toperation.cutStart = operation.selStart;\n\t\t\toperation.cutEnd = operation.selEnd;\n\t\t\toperation.replacement = event.paramObject.prefix + event.paramObject.suffix;\n\t\t\toperation.newSelStart = operation.selStart + event.paramObject.prefix.length;\n\t\t\toperation.newSelEnd = operation.newSelStart;\n\t\t}\n\t} else if(operation.text.substring(operation.selStart,operation.selStart + event.paramObject.prefix.length) === event.paramObject.prefix && 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",
+ "type": "application/javascript",
+ "module-type": "texteditoroperation"
+ },
+ "$:/core/modules/filterrunprefixes/all.js": {
+ "title": "$:/core/modules/filterrunprefixes/all.js",
+ "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/all.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\nUnion of sets without de-duplication.\nEquivalent to = filter run prefix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter prefix function\n*/\nexports.all = function(operationSubFunction) {\n\treturn function(results,source,widget) {\n\t\tresults.push.apply(results, operationSubFunction(source,widget));\n\t};\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filterrunprefix"
+ },
+ "$:/core/modules/filterrunprefixes/and.js": {
+ "title": "$:/core/modules/filterrunprefixes/and.js",
+ "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/and.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\nIntersection of sets.\nEquivalent to + filter run prefix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter prefix function\n*/\nexports.and = function(operationSubFunction,options) {\n\treturn function(results,source,widget) {\n\t\t// This replaces all the elements of the array, but keeps the actual array so that references to it are preserved\n\t\tsource = options.wiki.makeTiddlerIterator(results.toArray());\n\t\tresults.clear();\n\t\tresults.pushTop(operationSubFunction(source,widget));\n\t};\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filterrunprefix"
+ },
+ "$:/core/modules/filterrunprefixes/else.js": {
+ "title": "$:/core/modules/filterrunprefixes/else.js",
+ "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/else.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\nEquivalent to ~ filter run prefix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter prefix function\n*/\nexports.else = function(operationSubFunction) {\n\treturn function(results,source,widget) {\n\t\tif(results.length === 0) {\n\t\t\t// Main result so far is empty\n\t\t\tresults.pushTop(operationSubFunction(source,widget));\n\t\t}\n\t};\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filterrunprefix"
+ },
+ "$:/core/modules/filterrunprefixes/except.js": {
+ "title": "$:/core/modules/filterrunprefixes/except.js",
+ "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/except.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\nDifference of sets.\nEquivalent to - filter run prefix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter prefix function\n*/\nexports.except = function(operationSubFunction) {\n\treturn function(results,source,widget) {\n\t\tresults.remove(operationSubFunction(source,widget));\n\t};\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filterrunprefix"
+ },
+ "$:/core/modules/filterrunprefixes/filter.js": {
+ "title": "$:/core/modules/filterrunprefixes/filter.js",
+ "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/filter.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.filter = function(operationSubFunction,options) {\n\treturn function(results,source,widget) {\n\t\tif(results.length > 0) {\n\t\t\tvar resultsToRemove = [];\n\t\t\tresults.each(function(result) {\n\t\t\t\tvar filtered = operationSubFunction(options.wiki.makeTiddlerIterator([result]),widget);\n\t\t\t\tif(filtered.length === 0) {\n\t\t\t\t\tresultsToRemove.push(result);\n\t\t\t\t}\n\t\t\t});\n\t\t\tresults.remove(resultsToRemove);\n\t\t}\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filterrunprefix"
+ },
+ "$:/core/modules/filterrunprefixes/intersection.js": {
+ "title": "$:/core/modules/filterrunprefixes/intersection.js",
+ "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/intersection.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter prefix function\n*/\nexports.intersection = function(operationSubFunction) {\n\treturn function(results,source,widget) {\n\t\tif(results.length !== 0) {\n\t\t\tvar secondRunResults = operationSubFunction(source,widget);\n\t\t\tvar firstRunResults = results.toArray();\n\t\t\tresults.clear();\n\t\t\t$tw.utils.each(firstRunResults,function(title) {\n\t\t\t\tif(secondRunResults.indexOf(title) !== -1) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filterrunprefix"
+ },
+ "$:/core/modules/filterrunprefixes/or.js": {
+ "title": "$:/core/modules/filterrunprefixes/or.js",
+ "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/or.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\nEquivalent to a filter run with no prefix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter prefix function\n*/\nexports.or = function(operationSubFunction) {\n\treturn function(results,source,widget) {\n\t\tresults.pushTop(operationSubFunction(source,widget));\n\t};\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filterrunprefix"
+ },
+ "$:/core/modules/filterrunprefixes/reduce.js": {
+ "title": "$:/core/modules/filterrunprefixes/reduce.js",
+ "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/reduce.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter prefix function\n*/\nexports.reduce = function(operationSubFunction,options) {\n\treturn function(results,source,widget) {\n\t\tif(results.length > 0) {\n\t\t\tvar accumulator = \"\";\n\t\t\tvar index = 0;\n\t\t\tresults.each(function(title) {\n\t\t\t\tvar list = operationSubFunction(options.wiki.makeTiddlerIterator([title]),{\n\t\t\t\t\t\tgetVariable: function(name) {\n\t\t\t\t\t\t\tswitch(name) {\n\t\t\t\t\t\t\t\tcase \"currentTiddler\":\n\t\t\t\t\t\t\t\t\treturn \"\" + title;\n\t\t\t\t\t\t\t\tcase \"accumulator\":\n\t\t\t\t\t\t\t\t\treturn \"\" + accumulator;\n\t\t\t\t\t\t\t\tcase \"index\":\n\t\t\t\t\t\t\t\t\treturn \"\" + index;\n\t\t\t\t\t\t\t\tcase \"revIndex\":\n\t\t\t\t\t\t\t\t\treturn \"\" + (results.length - 1 - index);\n\t\t\t\t\t\t\t\tcase \"length\":\n\t\t\t\t\t\t\t\t\treturn \"\" + results.length;\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn widget.getVariable(name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\tif(list.length > 0) {\n\t\t\t\t\taccumulator = \"\" + list[0];\n\t\t\t\t}\n\t\t\t\t++index;\n\t\t\t});\n\t\t\tresults.clear();\n\t\t\tresults.push(accumulator);\t\n\t\t}\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filterrunprefix"
+ },
+ "$:/core/modules/filters/addprefix.js": {
+ "title": "$:/core/modules/filters/addprefix.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/addsuffix.js": {
+ "title": "$:/core/modules/filters/addsuffix.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/after.js": {
+ "title": "$:/core/modules/filters/after.js",
+ "text": "/*\\\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\"use strict\";\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 > (results.length - 2)) {\n\t\treturn [];\n\t} else {\n\t\treturn [results[index + 1]];\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/all/current.js": {
+ "title": "$:/core/modules/filters/all/current.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.current = function(source,prefix,options) {\n\tvar currTiddlerTitle = options.widget && options.widget.getVariable(\"currentTiddler\");\n\tif(currTiddlerTitle) {\n\t\treturn [currTiddlerTitle];\n\t} else {\n\t\treturn [];\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "allfilteroperator"
+ },
+ "$:/core/modules/filters/all/missing.js": {
+ "title": "$:/core/modules/filters/all/missing.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.missing = function(source,prefix,options) {\n\treturn options.wiki.getMissingTitles();\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "allfilteroperator"
+ },
+ "$:/core/modules/filters/all/orphans.js": {
+ "title": "$:/core/modules/filters/all/orphans.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.orphans = function(source,prefix,options) {\n\treturn options.wiki.getOrphanTitles();\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "allfilteroperator"
+ },
+ "$:/core/modules/filters/all/shadows.js": {
+ "title": "$:/core/modules/filters/all/shadows.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.shadows = function(source,prefix,options) {\n\treturn options.wiki.allShadowTitles();\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "allfilteroperator"
+ },
+ "$:/core/modules/filters/all/tags.js": {
+ "title": "$:/core/modules/filters/all/tags.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.tags = function(source,prefix,options) {\n\treturn Object.keys(options.wiki.getTagMap());\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "allfilteroperator"
+ },
+ "$:/core/modules/filters/all/tiddlers.js": {
+ "title": "$:/core/modules/filters/all/tiddlers.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.tiddlers = function(source,prefix,options) {\n\treturn options.wiki.allTitles();\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "allfilteroperator"
+ },
+ "$:/core/modules/filters/all.js": {
+ "title": "$:/core/modules/filters/all.js",
+ "text": "/*\\\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\"use strict\";\n\nvar allFilterOperators;\n\nfunction getAllFilterOperators() {\n\tif(!allFilterOperators) {\n\t\tallFilterOperators = {};\n\t\t$tw.modules.applyMethods(\"allfilteroperator\",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(\"+\");\n\t// Check for common optimisations\n\tif(subops.length === 1 && subops[0] === \"\") {\n\t\treturn source;\n\t} else if(subops.length === 1 && subops[0] === \"tiddlers\") {\n\t\treturn options.wiki.each;\n\t} else if(subops.length === 1 && subops[0] === \"shadows\") {\n\t\treturn options.wiki.eachShadow;\n\t} else if(subops.length === 2 && subops[0] === \"tiddlers\" && subops[1] === \"shadows\") {\n\t\treturn options.wiki.eachTiddlerPlusShadows;\n\t} else if(subops.length === 2 && subops[0] === \"shadows\" && subops[1] === \"tiddlers\") {\n\t\treturn options.wiki.eachShadowPlusTiddlers;\n\t}\n\t// Do it the hard way\n\tfor(var t=0; t<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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/backlinks.js": {
+ "title": "$:/core/modules/filters/backlinks.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/before.js": {
+ "title": "$:/core/modules/filters/before.js",
+ "text": "/*\\\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\"use strict\";\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 <= 0) {\n\t\treturn [];\n\t} else {\n\t\treturn [results[index - 1]];\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/commands.js": {
+ "title": "$:/core/modules/filters/commands.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/compare.js": {
+ "title": "$:/core/modules/filters/compare.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/compare.js\ntype: application/javascript\nmodule-type: filteroperator\n\nGeneral purpose comparison operator\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.compare = function(source,operator,options) {\n\tvar suffixes = operator.suffixes || [],\n\t\ttype = (suffixes[0] || [])[0],\n\t\tmode = (suffixes[1] || [])[0],\n\t\ttypeFn = $tw.utils.makeCompareFunction(type,{defaultType: \"number\"}),\n\t\tmodeFn = modes[mode] || modes.eq,\n\t\tinvert = operator.prefix === \"!\",\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tif(modeFn(typeFn(title,operator.operand)) !== invert) {\n\t\t\tresults.push(title);\n\t\t}\n\t});\n\treturn results;\n};\n\nvar modes = {\n\t\"eq\": function(value) {return value === 0;},\n\t\"ne\": function(value) {return value !== 0;},\n\t\"gteq\": function(value) {return value >= 0;},\n\t\"gt\": function(value) {return value > 0;},\n\t\"lteq\": function(value) {return value <= 0;},\n\t\"lt\": function(value) {return value < 0;}\n}\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/contains.js": {
+ "title": "$:/core/modules/filters/contains.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.contains = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldname = (operator.suffix || \"list\").toLowerCase();\n\tif(operator.prefix === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/count.js": {
+ "title": "$:/core/modules/filters/count.js",
+ "text": "/*\\\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\"use strict\";\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 + \"\"];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/days.js": {
+ "title": "$:/core/modules/filters/days.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.days = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldName = operator.suffix || \"modified\",\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 === \"!\") {\n\t\ttargetTimeStamp = targetTimeStamp - 1000*60*60*24*dayIntervalSign;\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler && 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 && 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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/duplicateslugs.js": {
+ "title": "$:/core/modules/filters/duplicateslugs.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/duplicateslugs.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter function for [duplicateslugs[]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.duplicateslugs = function(source,operator,options) {\n\tvar slugs = Object.create(null), // Hashmap by slug of title, replaced with \"true\" if the duplicate title has already been output\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tvar slug = options.wiki.slugify(title);\n\t\tif(slug in slugs) {\n\t\t\tif(slugs[slug] !== true) {\n\t\t\t\tresults.push(slugs[slug]);\n\t\t\t\tslugs[slug] = true;\n\t\t\t}\n\t\t\tresults.push(title);\n\t\t} else {\n\t\t\tslugs[slug] = title;\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/each.js": {
+ "title": "$:/core/modules/filters/each.js",
+ "text": "/*\\\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 \"list\", 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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.each = function(source,operator,options) {\n\tvar results =[] ,\n\tvalue,values = {},\n\tfield = operator.operand || \"title\";\n\tif(operator.suffix === \"value\" && field === \"title\") {\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 !== \"list-item\") {\n\t\tif(field === \"title\") {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler && !$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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/eachday.js": {
+ "title": "$:/core/modules/filters/eachday.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.eachday = function(source,operator,options) {\n\tvar results = [],\n\t\tvalues = [],\n\t\tfieldName = operator.operand || \"modified\";\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 && 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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/editiondescription.js": {
+ "title": "$:/core/modules/filters/editiondescription.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.editiondescription = function(source,operator,options) {\n\tvar results = [];\n\tif($tw.node) {\n\t\tvar editionInfo = $tw.utils.getEditionInfo();\n\t\tif(editionInfo) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif($tw.utils.hop(editionInfo,title)) {\n\t\t\t\t\tresults.push(editionInfo[title].description || \"\");\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/editions.js": {
+ "title": "$:/core/modules/filters/editions.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.editions = function(source,operator,options) {\n\tvar results = [];\n\tif($tw.node) {\n\t\tvar editionInfo = $tw.utils.getEditionInfo();\n\t\tif(editionInfo) {\n\t\t\t$tw.utils.each(editionInfo,function(info,name) {\n\t\t\t\tresults.push(name);\n\t\t\t});\n\t\t}\n\t\tresults.sort();\n\t}\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/else.js": {
+ "title": "$:/core/modules/filters/else.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/else.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for replacing an empty input list with a constant, passing a non-empty input list straight through\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.else = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\tif(results.length === 0) {\n\t\treturn [operator.operand];\n\t} else {\n\t\treturn results;\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/decodeuricomponent.js": {
+ "title": "$:/core/modules/filters/decodeuricomponent.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter functions\n*/\n\nexports.decodeuricomponent = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar value = title;\n\t\ttry {\n\t\t\tvalue = decodeURIComponent(title);\n\t\t} catch(e) {\n\t\t}\n\t\tresults.push(value);\n\t});\n\treturn results;\n};\n\nexports.encodeuricomponent = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(encodeURIComponent(title));\n\t});\n\treturn results;\n};\n\nexports.decodeuri = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar value = title;\n\t\ttry {\n\t\t\tvalue = decodeURI(title);\n\t\t} catch(e) {\n\t\t}\n\t\tresults.push(value);\n\t});\n\treturn results;\n};\n\nexports.encodeuri = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(encodeURI(title));\n\t});\n\treturn results;\n};\n\nexports.decodehtml = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.htmlDecode(title));\n\t});\n\treturn results;\n};\n\nexports.encodehtml = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.htmlEncode(title));\n\t});\n\treturn results;\n};\n\nexports.stringify = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.stringify(title,(operator.suffix === \"rawunicode\")));\n\t});\n\treturn results;\n};\n\nexports.jsonstringify = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.jsonStringify(title,(operator.suffix === \"rawunicode\")));\n\t});\n\treturn results;\n};\n\nexports.escaperegexp = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.escapeRegExp(title));\n\t});\n\treturn results;\n};\n\nexports.escapecss = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\t// escape any character with a special meaning in CSS using CSS.escape()\n\t\tresults.push(CSS.escape(title));\n\t});\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/enlist.js": {
+ "title": "$:/core/modules/filters/enlist.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.enlist = function(source,operator,options) {\n\tvar allowDuplicates = false;\n\tswitch(operator.suffix) {\n\t\tcase \"raw\":\n\t\t\tallowDuplicates = true;\n\t\t\tbreak;\n\t\tcase \"dedupe\":\n\t\t\tallowDuplicates = false;\n\t\t\tbreak;\n\t}\n\tvar list = $tw.utils.parseStringArray(operator.operand,allowDuplicates);\n\tif(operator.prefix === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/field.js": {
+ "title": "$:/core/modules/filters/field.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.field = function(source,operator,options) {\n\tvar results = [],indexedResults,\n\t\tfieldname = (operator.suffix || operator.operator || \"title\").toLowerCase();\n\tif(operator.prefix === \"!\") {\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 && !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 && 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 && !!operator.regexp.exec(text)) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tif(source.byField && operator.operand) {\n\t\t\t\tindexedResults = source.byField(fieldname,operator.operand);\n\t\t\t\tif(indexedResults) {\n\t\t\t\t\treturn indexedResults\n\t\t\t\t}\n\t\t\t}\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler) {\n\t\t\t\t\tvar text = tiddler.getFieldString(fieldname);\n\t\t\t\t\tif(text !== null && 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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/fields.js": {
+ "title": "$:/core/modules/filters/fields.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.fields = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldName,\n\t\tsuffixes = (operator.suffixes || [])[0] || [],\n\t\toperand = $tw.utils.parseStringArray(operator.operand);\n\t\n\tsource(function(tiddler,title) {\n\t\tif(tiddler) {\n\t\t\tif(suffixes.indexOf(\"include\") !== -1) {\n\t\t\t\tfor(fieldName in tiddler.fields) {\n\t\t\t\t\t(operand.indexOf(fieldName) !== -1) ? $tw.utils.pushTop(results,fieldName) : \"\";\n\t\t\t\t}\n\t\t\t} else if (suffixes.indexOf(\"exclude\") !== -1) {\n\t\t\t\tfor(fieldName in tiddler.fields) {\n\t\t\t\t\t(operand.indexOf(fieldName) !== -1) ? \"\" : $tw.utils.pushTop(results,fieldName);\n\t\t\t\t}\n\t\t\t} // else if\n\t\t\telse {\n\t\t\t\tfor(fieldName in tiddler.fields) {\n\t\t\t\t\t$tw.utils.pushTop(results,fieldName);\n\t\t\t\t}\n\t\t\t} // else\n\t\t} // if (tiddler)\n\t});\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/filter.js": {
+ "title": "$:/core/modules/filters/filter.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/filter.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning those input titles that pass a subfilter\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.filter = function(source,operator,options) {\n\tvar filterFn = options.wiki.compileFilter(operator.operand),\n\t\tresults = [],\n\t\ttarget = operator.prefix !== \"!\";\n\tsource(function(tiddler,title) {\n\t\tvar list = filterFn.call(options.wiki,options.wiki.makeTiddlerIterator([title]));\n\t\tif((list.length > 0) === target) {\n\t\t\tresults.push(title);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/format/date.js": {
+ "title": "$:/core/modules/filters/format/date.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/format/date.js\ntype: application/javascript\nmodule-type: formatfilteroperator\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.date = function(source,operand,options) {\n\tvar results = [];\t\n\tsource(function(tiddler,title) {\n\t\tvar value = $tw.utils.parseDate(title);\n\t\tif(value && $tw.utils.isDate(value) && value.toString() !== \"Invalid Date\") {\n\t\t\tresults.push($tw.utils.formatDateString(value,operand || \"YYYY MM DD 0hh:0mm\"));\n\t\t}\n\t});\t\n\treturn results;\n};\n\n})();",
+ "type": "application/javascript",
+ "module-type": "formatfilteroperator"
+ },
+ "$:/core/modules/filters/format/relativedate.js": {
+ "title": "$:/core/modules/filters/format/relativedate.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/format/relativedate.js\ntype: application/javascript\nmodule-type: formatfilteroperator\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.relativedate = function(source,operand,options) {\n\tvar results = [];\t\n\tsource(function(tiddler,title) {\n\t\tvar value = $tw.utils.parseDate(title);\n\t\tif(value && $tw.utils.isDate(value) && value.toString() !== \"Invalid Date\") {\n\t\t\tresults.push($tw.utils.getRelativeDate((new Date()) - (new Date(value))).description);\n\t\t}\n\t});\t\n\treturn results;\n};\n\n})();",
+ "type": "application/javascript",
+ "module-type": "formatfilteroperator"
+ },
+ "$:/core/modules/filters/format.js": {
+ "title": "$:/core/modules/filters/format.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/format.js\ntype: application/javascript\nmodule-type: filteroperator\nFilter operator for formatting strings\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar formatFilterOperators;\n\nfunction getFormatFilterOperators() {\n\tif(!formatFilterOperators) {\n\t\tformatFilterOperators = {};\n\t\t$tw.modules.applyMethods(\"formatfilteroperator\",formatFilterOperators);\n\t}\n\treturn formatFilterOperators;\n}\n\n/*\nExport our filter function\n*/\nexports.format = function(source,operator,options) {\n\t// Dispatch to the correct formatfilteroperator\n\tvar formatFilterOperators = getFormatFilterOperators();\n\tif(operator.suffix) {\n\t\tvar formatFilterOperator = formatFilterOperators[operator.suffix];\n\t\tif(formatFilterOperator) {\n\t\t\treturn formatFilterOperator(source,operator.operand,options);\n\t\t} else {\n\t\t\treturn [$tw.language.getString(\"Error/FormatFilterOperator\")];\n\t\t}\n\t} else {\n\t\t// Return all unchanged if the suffix is missing\n\t\tvar results = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tresults.push(title);\n\t\t});\n\t\treturn results;\n\t}\n};\n\n})();",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/get.js": {
+ "title": "$:/core/modules/filters/get.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/getindex.js": {
+ "title": "$:/core/modules/filters/getindex.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/getvariable.js": {
+ "title": "$:/core/modules/filters/getvariable.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/getvariable.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for replacing input values by the value of the variable with the same name, or blank if the variable is missing\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.getvariable = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(options.widget.getVariable(title) || \"\");\n\t});\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/has.js": {
+ "title": "$:/core/modules/filters/has.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/has.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking if a tiddler has the specified field or index\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.has = function(source,operator,options) {\n\tvar results = [],\n\t\tinvert = operator.prefix === \"!\";\n\n\tif(operator.suffix === \"field\") {\n\t\tif(invert) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(!tiddler || (tiddler && (!$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 && $tw.utils.hop(tiddler.fields,operator.operand)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\telse if(operator.suffix === \"index\") {\n\t\tif(invert) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(!tiddler || (tiddler && (!$tw.utils.hop(options.wiki.getTiddlerDataCached(tiddler,Object.create(null)),operator.operand)))) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler && $tw.utils.hop(options.wiki.getTiddlerDataCached(tiddler,Object.create(null)),operator.operand)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\telse {\n\t\tif(invert) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(!tiddler || !$tw.utils.hop(tiddler.fields,operator.operand) || (tiddler.fields[operator.operand].length === 0)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler && $tw.utils.hop(tiddler.fields,operator.operand) && (tiddler.fields[operator.operand].length !== 0)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\t\t\t\t\n\t\t}\n\t}\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/haschanged.js": {
+ "title": "$:/core/modules/filters/haschanged.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.haschanged = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \"!\") {\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) > 0) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/indexes.js": {
+ "title": "$:/core/modules/filters/indexes.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/insertbefore.js": {
+ "title": "$:/core/modules/filters/insertbefore.js",
+ "text": "/*\\\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\"use strict\";\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 && options.widget.getVariable(operator.suffix || \"currentTiddler\");\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/is/binary.js": {
+ "title": "$:/core/modules/filters/is/binary.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/is/binary.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[binary]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.binary = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!options.wiki.isBinaryTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.isBinaryTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "isfilteroperator"
+ },
+ "$:/core/modules/filters/is/blank.js": {
+ "title": "$:/core/modules/filters/is/blank.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/is/blank.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[blank]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.blank = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!title) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "isfilteroperator"
+ },
+ "$:/core/modules/filters/is/current.js": {
+ "title": "$:/core/modules/filters/is/current.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.current = function(source,prefix,options) {\n\tvar results = [],\n\t\tcurrTiddlerTitle = options.widget && options.widget.getVariable(\"currentTiddler\");\n\tif(prefix === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "isfilteroperator"
+ },
+ "$:/core/modules/filters/is/draft.js": {
+ "title": "$:/core/modules/filters/is/draft.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/is/draft.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[draft]] analagous to [has[draft.of]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.draft = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!tiddler || !$tw.utils.hop(tiddler.fields,\"draft.of\")) {\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 && $tw.utils.hop(tiddler.fields,\"draft.of\") && (tiddler.fields[\"draft.of\"].length !== 0)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\t\t\t\t\n\t}\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "isfilteroperator"
+ },
+ "$:/core/modules/filters/is/image.js": {
+ "title": "$:/core/modules/filters/is/image.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.image = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "isfilteroperator"
+ },
+ "$:/core/modules/filters/is/missing.js": {
+ "title": "$:/core/modules/filters/is/missing.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.missing = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "isfilteroperator"
+ },
+ "$:/core/modules/filters/is/orphan.js": {
+ "title": "$:/core/modules/filters/is/orphan.js",
+ "text": "/*\\\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\"use strict\";\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 === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "isfilteroperator"
+ },
+ "$:/core/modules/filters/is/shadow.js": {
+ "title": "$:/core/modules/filters/is/shadow.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.shadow = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "isfilteroperator"
+ },
+ "$:/core/modules/filters/is/system.js": {
+ "title": "$:/core/modules/filters/is/system.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.system = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "isfilteroperator"
+ },
+ "$:/core/modules/filters/is/tag.js": {
+ "title": "$:/core/modules/filters/is/tag.js",
+ "text": "/*\\\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\"use strict\";\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 === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "isfilteroperator"
+ },
+ "$:/core/modules/filters/is/tiddler.js": {
+ "title": "$:/core/modules/filters/is/tiddler.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.tiddler = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "isfilteroperator"
+ },
+ "$:/core/modules/filters/is/variable.js": {
+ "title": "$:/core/modules/filters/is/variable.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/is/variable.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[variable]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.variable = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!(title in options.widget.variables)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title in options.widget.variables) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "isfilteroperator"
+ },
+ "$:/core/modules/filters/is.js": {
+ "title": "$:/core/modules/filters/is.js",
+ "text": "/*\\\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\"use strict\";\n\nvar isFilterOperators;\n\nfunction getIsFilterOperators() {\n\tif(!isFilterOperators) {\n\t\tisFilterOperators = {};\n\t\t$tw.modules.applyMethods(\"isfilteroperator\",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(\"Error/IsFilterOperator\")];\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})();",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/limit.js": {
+ "title": "$:/core/modules/filters/limit.js",
+ "text": "/*\\\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\"use strict\";\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 === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/links.js": {
+ "title": "$:/core/modules/filters/links.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/list.js": {
+ "title": "$:/core/modules/filters/list.js",
+ "text": "/*\\\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\"use strict\";\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 && options.widget.getVariable(\"currentTiddler\"),\n\t\tlist = options.wiki.getTiddlerList(tr.title || currTiddlerTitle,tr.field,tr.index);\n\tif(operator.prefix === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/listed.js": {
+ "title": "$:/core/modules/filters/listed.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.listed = function(source,operator,options) {\n\tvar field = operator.operand || \"list\",\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/listops.js": {
+ "title": "$:/core/modules/filters/listops.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nOrder a list\n*/\nexports.order = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.operand.toLowerCase() === \"reverse\") {\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/lookup.js": {
+ "title": "$:/core/modules/filters/lookup.js",
+ "text": "/*\\\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:<field>[<prefix>]]\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.lookup = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(options.wiki.getTiddlerText(operator.operand + title) || operator.suffix);\n\t});\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/match.js": {
+ "title": "$:/core/modules/filters/match.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/match.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking if a title matches a string\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.match = function(source,operator,options) {\n\tvar results = [],\n\t\tsuffixes = (operator.suffixes || [])[0] || [];\n\tif(suffixes.indexOf(\"caseinsensitive\") !== -1) {\n\t\tif(operator.prefix === \"!\") {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title.toLowerCase() !== (operator.operand || \"\").toLowerCase()) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title.toLowerCase() === (operator.operand || \"\").toLowerCase()) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t} else {\n\t\tif(operator.prefix === \"!\") {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title !== operator.operand) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title === operator.operand) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/math.js": {
+ "title": "$:/core/modules/filters/math.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/math.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operators for math. Unary/binary operators work on each item in turn, and return a new item list.\n\nSum/product/maxall/minall operate on the entire list, returning a single item.\n\nNote that strings are converted to numbers automatically. Trailing non-digits are ignored.\n\n* \"\" converts to 0\n* \"12kk\" converts to 12\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.negate = makeNumericBinaryOperator(\n\tfunction(a) {return -a}\n);\n\nexports.abs = makeNumericBinaryOperator(\n\tfunction(a) {return Math.abs(a)}\n);\n\nexports.ceil = makeNumericBinaryOperator(\n\tfunction(a) {return Math.ceil(a)}\n);\n\nexports.floor = makeNumericBinaryOperator(\n\tfunction(a) {return Math.floor(a)}\n);\n\nexports.round = makeNumericBinaryOperator(\n\tfunction(a) {return Math.round(a)}\n);\n\nexports.trunc = makeNumericBinaryOperator(\n\tfunction(a) {return Math.trunc(a)}\n);\n\nexports.untrunc = makeNumericBinaryOperator(\n\tfunction(a) {return Math.ceil(Math.abs(a)) * Math.sign(a)}\n);\n\nexports.sign = makeNumericBinaryOperator(\n\tfunction(a) {return Math.sign(a)}\n);\n\nexports.add = makeNumericBinaryOperator(\n\tfunction(a,b) {return a + b;}\n);\n\nexports.subtract = makeNumericBinaryOperator(\n\tfunction(a,b) {return a - b;}\n);\n\nexports.multiply = makeNumericBinaryOperator(\n\tfunction(a,b) {return a * b;}\n);\n\nexports.divide = makeNumericBinaryOperator(\n\tfunction(a,b) {return a / b;}\n);\n\nexports.remainder = makeNumericBinaryOperator(\n\tfunction(a,b) {return a % b;}\n);\n\nexports.max = makeNumericBinaryOperator(\n\tfunction(a,b) {return Math.max(a,b);}\n);\n\nexports.min = makeNumericBinaryOperator(\n\tfunction(a,b) {return Math.min(a,b);}\n);\n\nexports.fixed = makeNumericBinaryOperator(\n\tfunction(a,b) {return Number.prototype.toFixed.call(a,Math.min(Math.max(b,0),100));}\n);\n\nexports.precision = makeNumericBinaryOperator(\n\tfunction(a,b) {return Number.prototype.toPrecision.call(a,Math.min(Math.max(b,1),100));}\n);\n\nexports.exponential = makeNumericBinaryOperator(\n\tfunction(a,b) {return Number.prototype.toExponential.call(a,Math.min(Math.max(b,0),100));}\n);\n\nexports.power = makeNumericBinaryOperator(\n\tfunction(a,b) {return Math.pow(a,b);}\n);\n\nexports.log = makeNumericBinaryOperator(\n\tfunction(a,b) {\n\t\tif(b) {\n\t\t\treturn Math.log(a)/Math.log(b);\n\t\t} else {\n\t\t\treturn Math.log(a);\n\t\t}\n\t}\n);\n\nexports.sum = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return accumulator + value},\n\t0 // Initial value\n);\n\nexports.product = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return accumulator * value},\n\t1 // Initial value\n);\n\nexports.maxall = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return Math.max(accumulator,value)},\n\t-Infinity // Initial value\n);\n\nexports.minall = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return Math.min(accumulator,value)},\n\tInfinity // Initial value\n);\n\nfunction makeNumericBinaryOperator(fnCalc) {\n\treturn function(source,operator,options) {\n\t\tvar result = [],\n\t\t\tnumOperand = $tw.utils.parseNumber(operator.operand);\n\t\tsource(function(tiddler,title) {\n\t\t\tresult.push($tw.utils.stringifyNumber(fnCalc($tw.utils.parseNumber(title),numOperand)));\n\t\t});\n\t\treturn result;\n\t};\n}\n\nfunction makeNumericReducingOperator(fnCalc,initialValue) {\n\tinitialValue = initialValue || 0;\n\treturn function(source,operator,options) {\n\t\tvar result = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tresult.push(title);\n\t\t});\n\t\treturn [$tw.utils.stringifyNumber(result.reduce(function(accumulator,currentValue) {\n\t\t\treturn fnCalc(accumulator,$tw.utils.parseNumber(currentValue));\n\t\t},initialValue))];\n\t};\n}\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/minlength.js": {
+ "title": "$:/core/modules/filters/minlength.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.minlength = function(source,operator,options) {\n\tvar results = [],\n\t\tminLength = parseInt(operator.operand || \"\",10) || 0;\n\tsource(function(tiddler,title) {\n\t\tif(title.length >= minLength) {\n\t\t\tresults.push(title);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/modules.js": {
+ "title": "$:/core/modules/filters/modules.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/moduletypes.js": {
+ "title": "$:/core/modules/filters/moduletypes.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/next.js": {
+ "title": "$:/core/modules/filters/next.js",
+ "text": "/*\\\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\"use strict\";\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 > 0 && match < list.length) {\n\t\t\tresults.push(list[match]);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/plugintiddlers.js": {
+ "title": "$:/core/modules/filters/plugintiddlers.js",
+ "text": "/*\\\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\"use strict\";\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 && 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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/prefix.js": {
+ "title": "$:/core/modules/filters/prefix.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.prefix = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/previous.js": {
+ "title": "$:/core/modules/filters/previous.js",
+ "text": "/*\\\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\"use strict\";\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 >= 0) {\n\t\t\tresults.push(list[match]);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/range.js": {
+ "title": "$:/core/modules/filters/range.js",
+ "text": "/*\\\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\"use strict\";\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<parts.length; i++) {\n\t\t// Validate real number\n\t\tif(!/^\\s*[+-]?((\\d+(\\.\\d*)?)|(\\.\\d+))\\s*$/.test(parts[i])) {\n\t\t\treturn [\"range: bad number \\\"\" + parts[i] + \"\\\"\"];\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 >= 1) {\n\t\t\t\tbeg = 1;\n\t\t\t}\n\t\t\telse if (end <= -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 [\"range: increment 0 causes infinite loop\"];\n\t}\n\t// May need to count backwards\n\tvar direction = ((end < beg) ? -1 : 1);\n\tinc *= direction;\n\t// Estimate number of resulting elements\n\tif((end - beg) / inc > 10000) {\n\t\treturn [\"range: too many steps (over 10K)\"];\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<beg) {\n\t\tfor(i=beg; i>end; i+=inc) {\n\t\t\tresults.push(i.toFixed(fixed));\n\t\t\tif(--safety<0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tfor(i=beg; i<end; i+=inc) {\n\t\t\tresults.push(i.toFixed(fixed));\n\t\t\tif(--safety<0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif(safety<0) {\n\t\treturn [\"range: unexpectedly large output\"];\n\t}\n\t// Reverse?\n\tif(operator.prefix === \"!\") {\n\t\tresults.reverse();\n\t}\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/reduce.js": {
+ "title": "$:/core/modules/filters/reduce.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/reduce.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator evaluates a subfilter for each item, making the running total available in the variable `accumulator`, and the current index available in the variable `index`\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.reduce = function(source,operator,options) {\n\t// Accumulate the list\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\t// Run the filter over each item\n\tvar filterFn = options.wiki.compileFilter(operator.operand),\n\t\taccumulator = operator.operands[1] || \"\";\n\tfor(var index=0; index<results.length; index++) {\n\t\tvar title = results[index],\n\t\t\tlist = filterFn.call(options.wiki,options.wiki.makeTiddlerIterator([title]),{\n\t\t\t\tgetVariable: function(name) {\n\t\t\t\t\tswitch(name) {\n\t\t\t\t\t\tcase \"currentTiddler\":\n\t\t\t\t\t\t\treturn \"\" + title;\n\t\t\t\t\t\tcase \"accumulator\":\n\t\t\t\t\t\t\treturn \"\" + accumulator;\n\t\t\t\t\t\tcase \"index\":\n\t\t\t\t\t\t\treturn \"\" + index;\n\t\t\t\t\t\tcase \"revIndex\":\n\t\t\t\t\t\t\treturn \"\" + (results.length - 1 - index);\n\t\t\t\t\t\tcase \"length\":\n\t\t\t\t\t\t\treturn \"\" + results.length;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\treturn options.widget.getVariable(name);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\tif(list.length > 0) {\n\t\t\taccumulator = \"\" + list[0];\n\t\t}\n\t}\n\tif(results.length > 0) {\n\t\treturn [accumulator];\n\t} else {\n\t\treturn [];\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/regexp.js": {
+ "title": "$:/core/modules/filters/regexp.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.regexp = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldname = (operator.suffix || \"title\").toLowerCase(),\n\t\tregexpString, regexp, flags = \"\", 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 === \"title\") {\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 [\"\" + e];\n\t}\n\t// Process the incoming tiddlers\n\tif(operator.prefix === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/removeprefix.js": {
+ "title": "$:/core/modules/filters/removeprefix.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/removesuffix.js": {
+ "title": "$:/core/modules/filters/removesuffix.js",
+ "text": "/*\\\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\"use strict\";\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 && 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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/sameday.js": {
+ "title": "$:/core/modules/filters/sameday.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.sameday = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldName = operator.suffix || \"modified\",\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/search.js": {
+ "title": "$:/core/modules/filters/search.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.search = function(source,operator,options) {\n\tvar invert = operator.prefix === \"!\";\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] || \"\", \n\t\t\tfirstChar = firstField.charAt(0),\n\t\t\tfields;\n\t\tif(firstChar === \"-\") {\n\t\t\tfields = [firstField.slice(1)].concat(fieldList.slice(1));\n\t\t\texcludeFields = true;\n\t\t} else if(fieldList[0] === \"*\"){\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(\"casesensitive\"),\n\t\t\tliteral: hasFlag(\"literal\"),\n\t\t\twhitespace: hasFlag(\"whitespace\"),\n\t\t\tanchored: hasFlag(\"anchored\"),\n\t\t\tregexp: hasFlag(\"regexp\"),\n\t\t\twords: hasFlag(\"words\")\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/shadowsource.js": {
+ "title": "$:/core/modules/filters/shadowsource.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/slugify.js": {
+ "title": "$:/core/modules/filters/slugify.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/slugify.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for slugifying a tiddler title\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.slugify = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(options.wiki.slugify(title));\n\t});\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/sort.js": {
+ "title": "$:/core/modules/filters/sort.js",
+ "text": "/*\\\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\"use strict\";\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 || \"title\",operator.prefix === \"!\",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 || \"title\",operator.prefix === \"!\",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 || \"title\", operator.prefix === \"!\",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 || \"title\",operator.prefix === \"!\",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 || \"title\",operator.prefix === \"!\",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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/sortsub.js": {
+ "title": "$:/core/modules/filters/sortsub.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/sortsub.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for sorting by a subfilter\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.sortsub = function(source,operator,options) {\n\t// Compile the subfilter\n\tvar filterFn = options.wiki.compileFilter(operator.operand);\n\t// Collect the input titles and the corresponding sort keys\n\tvar inputTitles = [],\n\t\tsortKeys = [];\n\tsource(function(tiddler,title) {\n\t\tinputTitles.push(title);\n\t\tvar r = filterFn.call(options.wiki,function(iterator) {\n\t\t\titerator(options.wiki.getTiddler(title),title);\n\t\t},{\n\t\t\tgetVariable: function(name) {\n\t\t\t\tif(name === \"currentTiddler\") {\n\t\t\t\t\treturn title;\n\t\t\t\t} else {\n\t\t\t\t\treturn options.widget.getVariable(name);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tsortKeys.push(r[0] || \"\");\n\t});\n\t// Rather than sorting the titles array, we'll sort the indexes so that we can consult both arrays\n\tvar indexes = new Array(inputTitles.length);\n\tfor(var t=0; t<inputTitles.length; t++) {\n\t\tindexes[t] = t;\n\t}\n\t// Sort the indexes\n\tvar compareFn = $tw.utils.makeCompareFunction(operator.suffix,{defaultType: \"string\",invert: operator.prefix === \"!\"});\n\tindexes = indexes.sort(function(a,b) {\n\t\treturn compareFn(sortKeys[a],sortKeys[b]);\n\t});\n\t// Make the results array in order\n\tvar results = [];\n\t$tw.utils.each(indexes,function(index) {\n\t\tresults.push(inputTitles[index]);\n\t});\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/splitbefore.js": {
+ "title": "$:/core/modules/filters/splitbefore.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/storyviews.js": {
+ "title": "$:/core/modules/filters/storyviews.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.storyviews = function(source,operator,options) {\n\tvar results = [],\n\t\tstoryviews = {};\n\t$tw.modules.applyMethods(\"storyview\",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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/strings.js": {
+ "title": "$:/core/modules/filters/strings.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/strings.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operators for strings. Unary/binary operators work on each item in turn, and return a new item list.\n\nSum/product/maxall/minall operate on the entire list, returning a single item.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.length = makeStringBinaryOperator(\n\tfunction(a) {return [\"\" + (\"\" + a).length];}\n);\n\nexports.uppercase = makeStringBinaryOperator(\n\tfunction(a) {return [(\"\" + a).toUpperCase()];}\n);\n\nexports.lowercase = makeStringBinaryOperator(\n\tfunction(a) {return [(\"\" + a).toLowerCase()];}\n);\n\nexports.sentencecase = makeStringBinaryOperator(\n\tfunction(a) {return [$tw.utils.toSentenceCase(a)];}\n);\n\nexports.titlecase = makeStringBinaryOperator(\n\tfunction(a) {return [$tw.utils.toTitleCase(a)];}\n);\n\nexports.trim = function(source,operator,options) {\n\tvar result = [],\n\t\tsuffix = operator.suffix || \"\",\n\t\toperand = (operator.operand || \"\"),\n\t\tfnCalc;\n\tif(suffix === \"prefix\") {\n\t\tfnCalc = function(a,b) {return [$tw.utils.trimPrefix(a,b)];}\n\t} else if(suffix === \"suffix\") {\n\t\tfnCalc = function(a,b) {return [$tw.utils.trimSuffix(a,b)];}\n\t} else {\n\t\tif(operand === \"\") {\n\t\t\tfnCalc = function(a) {return [$tw.utils.trim(a)];}\n\t\t} else {\n\t\t\tfnCalc = function(a,b) {return [$tw.utils.trimSuffix($tw.utils.trimPrefix(a,b),b)];}\n\t\t}\n\t}\n\tsource(function(tiddler,title) {\n\t\tArray.prototype.push.apply(result,fnCalc(title,operand));\n\t});\n\treturn result;\n};\n\nexports.split = makeStringBinaryOperator(\n\tfunction(a,b) {return (\"\" + a).split(b);}\n);\n\nexports[\"enlist-input\"] = makeStringBinaryOperator(\n\tfunction(a,o,s) {return $tw.utils.parseStringArray(\"\" + a,(s === \"raw\"));}\n);\n\nexports.join = makeStringReducingOperator(\n\tfunction(accumulator,value,operand) {\n\t\tif(accumulator === null) {\n\t\t\treturn value;\n\t\t} else {\n\t\t\treturn accumulator + operand + value;\n\t\t}\n\t},null\n);\n\nfunction makeStringBinaryOperator(fnCalc) {\n\treturn function(source,operator,options) {\n\t\tvar result = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tArray.prototype.push.apply(result,fnCalc(title,operator.operand || \"\",operator.suffix || \"\"));\n\t\t});\n\t\treturn result;\n\t};\n}\n\nfunction makeStringReducingOperator(fnCalc,initialValue) {\n\treturn function(source,operator,options) {\n\t\tvar result = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tresult.push(title);\n\t\t});\n\t\tif(result.length === 0) {\n\t\t\treturn [];\n\t\t}\n\t\treturn [result.reduce(function(accumulator,currentValue) {\n\t\t\treturn fnCalc(accumulator,currentValue,operator.operand || \"\");\n\t\t},initialValue) || \"\"];\n\t};\n}\n\nexports.splitregexp = function(source,operator,options) {\n\tvar result = [],\n\t\tsuffix = operator.suffix || \"\",\n\t\tflags = (suffix.indexOf(\"m\") !== -1 ? \"m\" : \"\") + (suffix.indexOf(\"i\") !== -1 ? \"i\" : \"\"),\n\t\tregExp;\n\ttry {\n\t\tregExp = new RegExp(operator.operand || \"\",flags);\t\t\n\t} catch(ex) {\n\t\treturn [\"RegExp error: \" + ex];\n\t}\n\tsource(function(tiddler,title) {\n\t\tArray.prototype.push.apply(result,title.split(regExp));\n\t});\t\t\n\treturn result;\n};\n\nexports[\"search-replace\"] = function(source,operator,options) {\n\tvar results = [],\n\t\tsuffixes = operator.suffixes || [],\n\t\tflagSuffix = (suffixes[0] ? (suffixes[0][0] || \"\") : \"\"),\n\t\tflags = (flagSuffix.indexOf(\"g\") !== -1 ? \"g\" : \"\") + (flagSuffix.indexOf(\"i\") !== -1 ? \"i\" : \"\"),\n\t\tisRegExp = (suffixes[1] && suffixes[1][0] === \"regexp\") ? true : false,\n\t\tsearchTerm,\n\t\tregExp;\n\t\n\tsource(function(tiddler,title) {\n\t\tif(title && (operator.operands.length > 1)) {\n\t\t\t//Escape regexp characters if the operand is not a regular expression\n\t\t\tsearchTerm = isRegExp ? operator.operand : $tw.utils.escapeRegExp(operator.operand);\n\t\t\ttry {\n\t\t\t\tregExp = new RegExp(searchTerm,flags);\n\t\t\t} catch(ex) {\n\t\t\t\treturn [\"RegExp error: \" + ex];\n\t\t\t}\n\t\t\tresults.push(\n\t\t\t\ttitle.replace(regExp,operator.operands[1])\n\t\t\t);\n\t\t} else {\n\t\t\tresults.push(title);\n\t\t}\n\t});\n\treturn results;\n};\n\nexports.pad = function(source,operator,options) {\n\tvar results = [],\n\t\ttargetLength = operator.operand ? parseInt(operator.operand) : 0,\n\t\tfill = operator.operands[1] || \"0\";\n\n\tsource(function(tiddler,title) {\n\t\tif(title && title.length) {\n\t\t\tif(title.length >= targetLength) {\n\t\t\t\tresults.push(title);\n\t\t\t} else {\n\t\t\t\tvar padString = \"\",\n\t\t\t\t\tpadStringLength = targetLength - title.length;\n\t\t\t\twhile (padStringLength > padString.length) {\n\t\t\t\t\tpadString += fill;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//make sure we do not exceed the specified length\n\t\t\t\tpadString = padString.slice(0,padStringLength);\n\t\t\t\tif(operator.suffix && (operator.suffix === \"suffix\")) {\n\t\t\t\t\ttitle = title + padString;\n\t\t\t\t} else {\n\t\t\t\t\ttitle = padString + title;\n\t\t\t\t}\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n}\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/subfilter.js": {
+ "title": "$:/core/modules/filters/subfilter.js",
+ "text": "/*\\\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\"use strict\";\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 === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/subtiddlerfields.js": {
+ "title": "$:/core/modules/filters/subtiddlerfields.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/suffix.js": {
+ "title": "$:/core/modules/filters/suffix.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.suffix = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \"!\") {\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/tag.js": {
+ "title": "$:/core/modules/filters/tag.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.tag = function(source,operator,options) {\n\tvar results = [],indexedResults;\n\tif((operator.suffix || \"\").toLowerCase() === \"strict\" && !operator.operand) {\n\t\t// New semantics:\n\t\t// Always return copy of input if operator.operand is missing\n\t\tsource(function(tiddler,title) {\n\t\t\tresults.push(title);\n\t\t});\n\t} else {\n\t\t// Old semantics:\n\t\tvar tiddlers;\n\t\tif(operator.prefix === \"!\") {\n\t\t\t// Returns a copy of the input if operator.operand is missing\n\t\t\ttiddlers = options.wiki.getTiddlersWithTag(operator.operand);\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddlers.indexOf(title) === -1) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\t// Returns empty results if operator.operand is missing\n\t\t\tif(source.byTag) {\n\t\t\t\tindexedResults = source.byTag(operator.operand);\n\t\t\t\tif(indexedResults) {\n\t\t\t\t\treturn indexedResults;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttiddlers = options.wiki.getTiddlersWithTag(operator.operand);\n\t\t\t\tsource(function(tiddler,title) {\n\t\t\t\t\tif(tiddlers.indexOf(title) !== -1) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tresults = options.wiki.sortByList(results,operator.operand);\n\t\t\t}\n\t\t}\t\t\n\t}\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/tagging.js": {
+ "title": "$:/core/modules/filters/tagging.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/tags.js": {
+ "title": "$:/core/modules/filters/tags.js",
+ "text": "/*\\\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\"use strict\";\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 && tiddler.fields.tags) {\n\t\t\tfor(t=0, length=tiddler.fields.tags.length; t<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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/then.js": {
+ "title": "$:/core/modules/filters/then.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/then.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for replacing any titles with a constant\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.then = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(operator.operand);\n\t});\n\treturn results;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/title.js": {
+ "title": "$:/core/modules/filters/title.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.title = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler && 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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/untagged.js": {
+ "title": "$:/core/modules/filters/untagged.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.untagged = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler && $tw.utils.isArray(tiddler.fields.tags) && tiddler.fields.tags.length > 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(\"tags\") || ($tw.utils.isArray(tiddler.fields.tags) && 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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/variables.js": {
+ "title": "$:/core/modules/filters/variables.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/variables.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the active variables\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.variables = function(source,operator,options) {\n\tvar names = [];\n\tfor(var variable in options.widget.variables) {\n\t\tnames.push(variable);\n\t}\n\treturn names.sort();\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/wikiparserrules.js": {
+ "title": "$:/core/modules/filters/wikiparserrules.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters/x-listops.js": {
+ "title": "$:/core/modules/filters/x-listops.js",
+ "text": "/*\\\ntitle: $:/core/modules/filters/x-listops.js\ntype: application/javascript\nmodule-type: filteroperator\n\nExtended filter operators to manipulate the current list.\n\n\\*/\n(function () {\n\n\t/*jslint node: true, browser: true */\n\t/*global $tw: false */\n\t\"use strict\";\n\n\t/*\n\tFetch titles from the current list\n\t*/\n\tvar prepare_results = function (source) {\n\tvar results = [];\n\t\tsource(function (tiddler, title) {\n\t\t\tresults.push(title);\n\t\t});\n\t\treturn results;\n\t};\n\n\t/*\n\tMoves a number of items from the tail of the current list before the item named in the operand\n\t*/\n\texports.putbefore = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1);\n\t\treturn (index === -1) ?\n\t\t\tresults.slice(0, -1) :\n\t\t\tresults.slice(0, index).concat(results.slice(-count)).concat(results.slice(index, -count));\n\t};\n\n\t/*\n\tMoves a number of items from the tail of the current list after the item named in the operand\n\t*/\n\texports.putafter = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1);\n\t\treturn (index === -1) ?\n\t\t\tresults.slice(0, -1) :\n\t\t\tresults.slice(0, index + 1).concat(results.slice(-count)).concat(results.slice(index + 1, -count));\n\t};\n\n\t/*\n\tReplaces the item named in the operand with a number of items from the tail of the current list\n\t*/\n\texports.replace = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1);\n\t\treturn (index === -1) ?\n\t\t\tresults.slice(0, -count) :\n\t\t\tresults.slice(0, index).concat(results.slice(-count)).concat(results.slice(index + 1, -count));\n\t};\n\n\t/*\n\tMoves a number of items from the tail of the current list to the head of the list\n\t*/\n\texports.putfirst = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1);\n\t\treturn results.slice(-count).concat(results.slice(0, -count));\n\t};\n\n\t/*\n\tMoves a number of items from the head of the current list to the tail of the list\n\t*/\n\texports.putlast = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1);\n\t\treturn results.slice(count).concat(results.slice(0, count));\n\t};\n\n\t/*\n\tMoves the item named in the operand a number of places forward or backward in the list\n\t*/\n\texports.move = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1),\n\t\t\tmarker = results.splice(index, 1),\n\t\t\toffset = (index + count) > 0 ? index + count : 0;\n\t\treturn results.slice(0, offset).concat(marker).concat(results.slice(offset));\n\t};\n\n\t/*\n\tReturns the items from the current list that are after the item named in the operand\n\t*/\n\texports.allafter = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand);\n\t\treturn (index === -1) ? [] :\n\t\t\t(operator.suffix) ? results.slice(index) :\n\t\t\tresults.slice(index + 1);\n\t};\n\n\t/*\n\tReturns the items from the current list that are before the item named in the operand\n\t*/\n\texports.allbefore = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand);\n\t\treturn (index === -1) ? [] :\n\t\t\t(operator.suffix) ? results.slice(0, index + 1) :\n\t\t\tresults.slice(0, index);\n\t};\n\n\t/*\n\tAppends the items listed in the operand array to the tail of the current list\n\t*/\n\texports.append = function (source, operator) {\n\t\tvar append = $tw.utils.parseStringArray(operator.operand, \"true\"),\n\t\t\tresults = prepare_results(source),\n\t\t\tcount = parseInt(operator.suffix) || append.length;\n\t\treturn (append.length === 0) ? results :\n\t\t\t(operator.prefix) ? results.concat(append.slice(-count)) :\n\t\t\tresults.concat(append.slice(0, count));\n\t};\n\n\t/*\n\tPrepends the items listed in the operand array to the head of the current list\n\t*/\n\texports.prepend = function (source, operator) {\n\t\tvar prepend = $tw.utils.parseStringArray(operator.operand, \"true\"),\n\t\t\tresults = prepare_results(source),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,prepend.length);\n\t\treturn (prepend.length === 0) ? results :\n\t\t\t(operator.prefix) ? prepend.slice(-count).concat(results) :\n\t\t\tprepend.slice(0, count).concat(results);\n\t};\n\n\t/*\n\tReturns all items from the current list except the items listed in the operand array\n\t*/\n\texports.remove = function (source, operator) {\n\t\tvar array = $tw.utils.parseStringArray(operator.operand, \"true\"),\n\t\t\tresults = prepare_results(source),\n\t\t\tcount = parseInt(operator.suffix) || array.length,\n\t\t\tp,\n\t\t\tlen,\n\t\t\tindex;\n\t\tlen = array.length - 1;\n\t\tfor (p = 0; p < count; ++p) {\n\t\t\tif (operator.prefix) {\n\t\t\t\tindex = results.indexOf(array[len - p]);\n\t\t\t} else {\n\t\t\t\tindex = results.indexOf(array[p]);\n\t\t\t}\n\t\t\tif (index !== -1) {\n\t\t\t\tresults.splice(index, 1);\n\t\t\t}\n\t\t}\n\t\treturn results;\n\t};\n\n\t/*\n\tReturns all items from the current list sorted in the order of the items in the operand array\n\t*/\n\texports.sortby = function (source, operator) {\n\t\tvar results = prepare_results(source);\n\t\tif (!results || results.length < 2) {\n\t\t\treturn results;\n\t\t}\n\t\tvar lookup = $tw.utils.parseStringArray(operator.operand, \"true\");\n\t\tresults.sort(function (a, b) {\n\t\t\treturn lookup.indexOf(a) - lookup.indexOf(b);\n\t\t});\n\t\treturn results;\n\t};\n\n\t/*\n\tRemoves all duplicate items from the current list\n\t*/\n\texports.unique = function (source, operator) {\n\t\tvar results = prepare_results(source);\n\t\tvar set = results.reduce(function (a, b) {\n\t\t\tif (a.indexOf(b) < 0) {\n\t\t\t\ta.push(b);\n\t\t\t}\n\t\t\treturn a;\n\t\t}, []);\n\t\treturn set;\n\t};\n\n\tvar cycleValueInArray = function(results,operands,stepSize) {\n\t\tvar resultsIndex,\n\t\t\tstep = stepSize || 1,\n\t\t\ti = 0,\n\t\t\topLength = operands.length,\n\t\t\tnextOperandIndex;\t\t\n\t\tfor(i; i < opLength; i++) {\n\t\t\tresultsIndex = results.indexOf(operands[i]);\n\t\t\tif(resultsIndex !== -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(resultsIndex !== -1) {\n\t\t\ti = i + step;\n\t\t\tnextOperandIndex = (i < opLength ? i : i - opLength);\n\t\t\tif(operands.length > 1) {\n\t\t\t\tresults.splice(resultsIndex,1,operands[nextOperandIndex]);\n\t\t\t} else {\n\t\t\t\tresults.splice(resultsIndex,1);\n\t\t\t}\n\t\t} else {\n\t\t\tresults.push(operands[0]);\n\t\t}\n\t\treturn results;\t\t\n\t}\n\n\t/*\n\tToggles an item in the current list.\n\t*/\t\n\texports.toggle = function(source,operator) {\n\t\treturn cycleValueInArray(prepare_results(source),operator.operands);\n\t}\n\n\texports.cycle = function(source,operator) {\n\t\tvar results = prepare_results(source),\n\t\t\toperands = (operator.operand.length ? $tw.utils.parseStringArray(operator.operand, \"true\") : [\"\"]),\n\t\t\tstep = $tw.utils.getInt(operator.operands[1]||\"\",1);\n\t\tif(step < 0) {\n\t\t\toperands.reverse();\n\t\t\tstep = Math.abs(step);\n\t\t}\t\n\t\treturn cycleValueInArray(results,operands,step);\n\t}\n\t\n})();\n",
+ "type": "application/javascript",
+ "module-type": "filteroperator"
+ },
+ "$:/core/modules/filters.js": {
+ "title": "$:/core/modules/filters.js",
+ "text": "/*\\\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\"use strict\";\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++) !== \"[\") {\n\t\tthrow \"Missing [ in filter expression\";\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) === \"!\") {\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(/[\\[\\{<\\/]/);\n\t\tif(nextBracketPos === -1) {\n\t\t\tthrow \"Missing [ in filter expression\";\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 > -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) || \"field\";\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(\":\"),function(subsuffix) {\n\t\t\t\toperator.suffixes.push([]);\n\t\t\t\t$tw.utils.each(subsuffix.split(\",\"),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 === \"\") {\n\t\t\toperator.operator = \"title\";\n\t\t}\n\t\toperator.operands = [];\n\t\tfunction parseOperand(bracketType) {\n\t\t\tvar operand = {};\n\t\t\tswitch (bracketType) {\n\t\t\t\tcase \"{\": // Curly brackets\n\t\t\t\t\toperand.indirect = true;\n\t\t\t\t\tnextBracketPos = filterString.indexOf(\"}\",p);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"[\": // Square brackets\n\t\t\t\t\tnextBracketPos = filterString.indexOf(\"]\",p);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\": // Angle brackets\n\t\t\t\t\toperand.variable = true;\n\t\t\t\t\tnextBracketPos = filterString.indexOf(\">\",p);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\": // regexp brackets\n\t\t\t\t\tvar rex = /^((?:[^\\\\\\/]*|\\\\.)*)\\/(?:\\(([mygi]+)\\))?/g,\n\t\t\t\t\t\trexMatch = rex.exec(filterString.substring(p));\n\t\t\t\t\tif(rexMatch) {\n\t\t\t\t\t\toperator.regexp = new RegExp(rexMatch[1], rexMatch[2]);\n\t// DEPRECATION WARNING\n\tconsole.log(\"WARNING: Filter\",operator.operator,\"has a deprecated regexp operand\",operator.regexp);\n\t\t\t\t\t\tnextBracketPos = p + rex.lastIndex - 1;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthrow \"Unterminated regular expression in filter expression\";\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(nextBracketPos === -1) {\n\t\t\t\tthrow \"Missing closing bracket in filter expression\";\n\t\t\t}\n\t\t\tif(!operator.regexp) {\n\t\t\t\toperand.text = filterString.substring(p,nextBracketPos);\n\t\t\t\toperator.operands.push(operand);\n\t\t\t}\n\t\t\tp = nextBracketPos + 1;\n\t\t}\n\t\t\n\t\tp = nextBracketPos + 1;\n\t\tparseOperand(bracket);\n\t\t\n\t\t// Check for multiple operands\n\t\twhile(filterString.charAt(p) === \",\") {\n\t\t\tp++;\n\t\t\tif(/^[\\[\\{<\\/]/.test(filterString.substring(p))) {\n\t\t\t\tnextBracketPos = p;\n\t\t\t\tp++;\n\t\t\t\tparseOperand(filterString.charAt(nextBracketPos));\n\t\t\t} else {\n\t\t\t\tthrow \"Missing [ in filter expression\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Push this operator\n\t\toperators.push(operator);\n\t} while(filterString.charAt(p) !== \"]\");\n\t// Skip the ending square bracket\n\tif(filterString.charAt(p++) !== \"]\") {\n\t\tthrow \"Missing ] in filter expression\";\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 || \"\";\n\tvar results = [], // Array of arrays of operator nodes {operator:,operand:}\n\t\tp = 0, // Current position in the filter string\n\t\tmatch;\n\tvar whitespaceRegExp = /(\\s+)/mg,\n\t\toperandRegExp = /((?:\\+|\\-|~|=|\\:(\\w+))?)(?:(\\[)|(?:\"([^\"]*)\")|(?:'([^']*)')|([^\\s\\[\\]]+))/mg;\n\twhile(p < filterString.length) {\n\t\t// Skip any whitespace\n\t\twhitespaceRegExp.lastIndex = p;\n\t\tmatch = whitespaceRegExp.exec(filterString);\n\t\tif(match && 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 < 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(\"Error/FilterSyntax\");\n\t\t\t}\n\t\t\tvar operation = {\n\t\t\t\tprefix: \"\",\n\t\t\t\toperators: []\n\t\t\t};\n\t\t\tif(match[1]) {\n\t\t\t\toperation.prefix = match[1];\n\t\t\t\tp = p + operation.prefix.length;\n\t\t\t\tif(match[2]) {\n\t\t\t\t\toperation.namedPrefix = match[2];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(match[3]) { // Opening square bracket\n\t\t\t\tp = parseFilterOperation(operation.operators,filterString,p);\n\t\t\t} else {\n\t\t\t\tp = match.index + match[0].length;\n\t\t\t}\n\t\t\tif(match[4] || match[5] || match[6]) { // Double quoted string, single quoted string or unquoted title\n\t\t\t\toperation.operators.push(\n\t\t\t\t\t{operator: \"title\", operands: [{text: match[4] || match[5] || match[6]}]}\n\t\t\t\t);\n\t\t\t}\n\t\t\tresults.push(operation);\n\t\t}\n\t}\n\treturn results;\n};\n\nexports.getFilterOperators = function() {\n\tif(!this.filterOperators) {\n\t\t$tw.Wiki.prototype.filterOperators = {};\n\t\t$tw.modules.applyMethods(\"filteroperator\",this.filterOperators);\n\t}\n\treturn this.filterOperators;\n};\n\nexports.getFilterRunPrefixes = function() {\n\tif(!this.filterRunPrefixes) {\n\t\t$tw.Wiki.prototype.filterRunPrefixes = {};\n\t\t$tw.modules.applyMethods(\"filterrunprefix\",this.filterRunPrefixes);\n\t}\n\treturn this.filterRunPrefixes;\n}\n\nexports.filterTiddlers = function(filterString,widget,source) {\n\tvar fn = this.compileFilter(filterString);\n\treturn fn.call(this,source,widget);\n};\n\n/*\nCompile a filter into a function with the signature fn(source,widget) where:\nsource: an iterator function for the source tiddlers, called source(iterator), where iterator is called as iterator(tiddler,title)\nwidget: an optional widget node for retrieving the current tiddler etc.\n*/\nexports.compileFilter = function(filterString) {\n\tvar filterParseTree;\n\ttry {\n\t\tfilterParseTree = this.parseFilter(filterString);\n\t} catch(e) {\n\t\treturn function(source,widget) {\n\t\t\treturn [$tw.language.getString(\"Error/Filter\") + \": \" + 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 && widget.getVariable(\"currentTiddler\");\n\t\t\t$tw.utils.each(operation.operators,function(operator) {\n\t\t\t\tvar operands = [],\n\t\t\t\t\toperatorFunction;\n\t\t\t\tif(!operator.operator) {\n\t\t\t\t\toperatorFunction = filterOperators.title;\n\t\t\t\t} else if(!filterOperators[operator.operator]) {\n\t\t\t\t\toperatorFunction = filterOperators.field;\n\t\t\t\t} else {\n\t\t\t\t\toperatorFunction = filterOperators[operator.operator];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$tw.utils.each(operator.operands,function(operand) {\n\t\t\t\t\tif(operand.indirect) {\n\t\t\t\t\t\toperand.value = self.getTextReference(operand.text,\"\",currTiddlerTitle);\n\t\t\t\t\t} else if(operand.variable) {\n\t\t\t\t\t\toperand.value = widget.getVariable(operand.text,{defaultValue: \"\"});\n\t\t\t\t\t} else {\n\t\t\t\t\t\toperand.value = operand.text;\n\t\t\t\t\t}\n\t\t\t\t\toperands.push(operand.value);\n\t\t\t\t});\n\n\t\t\t\t// Invoke the appropriate filteroperator module\n\t\t\t\tresults = operatorFunction(accumulator,{\n\t\t\t\t\t\t\toperator: operator.operator,\n\t\t\t\t\t\t\toperand: operands.length > 0 ? operands[0] : undefined,\n\t\t\t\t\t\t\toperands: operands,\n\t\t\t\t\t\t\tprefix: operator.prefix,\n\t\t\t\t\t\t\tsuffix: operator.suffix,\n\t\t\t\t\t\t\tsuffixes: operator.suffixes,\n\t\t\t\t\t\t\tregexp: operator.regexp\n\t\t\t\t\t\t},{\n\t\t\t\t\t\t\twiki: self,\n\t\t\t\t\t\t\twidget: widget\n\t\t\t\t\t\t});\n\t\t\t\tif($tw.utils.isArray(results)) {\n\t\t\t\t\taccumulator = self.makeTiddlerIterator(results);\n\t\t\t\t} else {\n\t\t\t\t\taccumulator = results;\n\t\t\t\t}\n\t\t\t});\n\t\t\tif($tw.utils.isArray(results)) {\n\t\t\t\treturn results;\n\t\t\t} else {\n\t\t\t\tvar resultArray = [];\n\t\t\t\tresults(function(tiddler,title) {\n\t\t\t\t\tresultArray.push(title);\n\t\t\t\t});\n\t\t\t\treturn resultArray;\n\t\t\t}\n\t\t};\n\t\tvar filterRunPrefixes = self.getFilterRunPrefixes();\n\t\t// Wrap the operator functions in a wrapper function that depends on the prefix\n\t\toperationFunctions.push((function() {\n\t\t\tvar options = {wiki: self};\n\t\t\tswitch(operation.prefix || \"\") {\n\t\t\t\tcase \"\": // No prefix means that the operation is unioned into the result\n\t\t\t\t\treturn filterRunPrefixes[\"or\"](operationSubFunction, options);\n\t\t\t\tcase \"=\": // The results of the operation are pushed into the result without deduplication\n\t\t\t\t\treturn filterRunPrefixes[\"all\"](operationSubFunction, options);\n\t\t\t\tcase \"-\": // The results of this operation are removed from the main result\n\t\t\t\t\treturn filterRunPrefixes[\"except\"](operationSubFunction, options);\n\t\t\t\tcase \"+\": // This operation is applied to the main results so far\n\t\t\t\t\treturn filterRunPrefixes[\"and\"](operationSubFunction, options);\n\t\t\t\tcase \"~\": // This operation is unioned into the result only if the main result so far is empty\n\t\t\t\t\treturn filterRunPrefixes[\"else\"](operationSubFunction, options);\n\t\t\t\tdefault: \n\t\t\t\t\tif(operation.namedPrefix && filterRunPrefixes[operation.namedPrefix]) {\n\t\t\t\t\t\treturn filterRunPrefixes[operation.namedPrefix](operationSubFunction, options);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn function(results,source,widget) {\n\t\t\t\t\t\t\tresults.clear();\n\t\t\t\t\t\t\tresults.push($tw.language.getString(\"Error/FilterRunPrefix\"));\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(\"filter: \" + filterString,function filterFunction(source,widget) {\n\t\tif(!source) {\n\t\t\tsource = self.each;\n\t\t} else if(typeof source === \"object\") { // Array or hashmap\n\t\t\tsource = self.makeTiddlerIterator(source);\n\t\t}\n\t\tvar results = new $tw.utils.LinkedList();\n\t\t$tw.utils.each(operationFunctions,function(operationFunction) {\n\t\t\toperationFunction(results,source,widget);\n\t\t});\n\t\treturn results.toArray();\n\t});\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikimethod"
+ },
+ "$:/core/modules/indexers/backlinks-indexer.js": {
+ "title": "$:/core/modules/indexers/backlinks-indexer.js",
+ "text": "/*\\\ntitle: $:/core/modules/indexers/backlinks-indexer.js\ntype: application/javascript\nmodule-type: indexer\n\nIndexes the tiddlers' backlinks\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global modules: false */\n\"use strict\";\n\n\nfunction BacklinksIndexer(wiki) {\n\tthis.wiki = wiki;\n}\n\nBacklinksIndexer.prototype.init = function() {\n\tthis.index = null;\n}\n\nBacklinksIndexer.prototype.rebuild = function() {\n\tthis.index = null;\n}\n\nBacklinksIndexer.prototype._getLinks = function(tiddler) {\n\tvar parser = this.wiki.parseText(tiddler.fields.type, tiddler.fields.text, {});\n\tif(parser) {\n\t\treturn this.wiki.extractLinks(parser.tree);\n\t}\n\treturn [];\n}\n\nBacklinksIndexer.prototype.update = function(updateDescriptor) {\n\tif(!this.index) {\n\t\treturn;\n\t}\n\tvar newLinks = [],\n\t oldLinks = [],\n\t self = this;\n\tif(updateDescriptor.old.exists) {\n\t\toldLinks = this._getLinks(updateDescriptor.old.tiddler);\n\t}\n\tif(updateDescriptor.new.exists) {\n\t\tnewLinks = this._getLinks(updateDescriptor.new.tiddler);\n\t}\n\n\t$tw.utils.each(oldLinks,function(link) {\n\t\tif(self.index[link]) {\n\t\t\tdelete self.index[link][updateDescriptor.old.tiddler.fields.title];\n\t\t}\n\t});\n\t$tw.utils.each(newLinks,function(link) {\n\t\tif(!self.index[link]) {\n\t\t\tself.index[link] = Object.create(null);\n\t\t}\n\t\tself.index[link][updateDescriptor.new.tiddler.fields.title] = true;\n\t});\n}\n\nBacklinksIndexer.prototype.lookup = function(title) {\n\tif(!this.index) {\n\t\tthis.index = Object.create(null);\n\t\tvar self = this;\n\t\tthis.wiki.forEachTiddler(function(title,tiddler) {\n\t\t\tvar links = self._getLinks(tiddler);\n\t\t\t$tw.utils.each(links, function(link) {\n\t\t\t\tif(!self.index[link]) {\n\t\t\t\t\tself.index[link] = Object.create(null);\n\t\t\t\t}\n\t\t\t\tself.index[link][title] = true;\n\t\t\t});\n\t\t});\n\t}\n\tif(this.index[title]) {\n\t\treturn Object.keys(this.index[title]);\n\t} else {\n\t\treturn [];\n\t}\n}\n\nexports.BacklinksIndexer = BacklinksIndexer;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "indexer"
+ },
+ "$:/core/modules/indexers/field-indexer.js": {
+ "title": "$:/core/modules/indexers/field-indexer.js",
+ "text": "/*\\\ntitle: $:/core/modules/indexers/field-indexer.js\ntype: application/javascript\nmodule-type: indexer\n\nIndexes the tiddlers with each field value\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global modules: false */\n\"use strict\";\n\nvar DEFAULT_MAXIMUM_INDEXED_VALUE_LENGTH = 128;\n\nfunction FieldIndexer(wiki) {\n\tthis.wiki = wiki;\n}\n\nFieldIndexer.prototype.init = function() {\n\tthis.index = null;\n\tthis.maxIndexedValueLength = DEFAULT_MAXIMUM_INDEXED_VALUE_LENGTH;\n\tthis.addIndexMethods();\n}\n\n// Provided for testing\nFieldIndexer.prototype.setMaxIndexedValueLength = function(length) {\n\tthis.index = null;\n\tthis.maxIndexedValueLength = length;\n};\n\nFieldIndexer.prototype.addIndexMethods = function() {\n\tvar self = this;\n\tthis.wiki.each.byField = function(name,value) {\n\t\tvar titles = self.wiki.allTitles(),\n\t\t\tlookup = self.lookup(name,value);\n\t\treturn lookup && lookup.filter(function(title) {\n\t\t\treturn titles.indexOf(title) !== -1;\n\t\t});\n\t};\n\tthis.wiki.eachShadow.byField = function(name,value) {\n\t\tvar titles = self.wiki.allShadowTitles(),\n\t\t\tlookup = self.lookup(name,value);\n\t\treturn lookup && lookup.filter(function(title) {\n\t\t\treturn titles.indexOf(title) !== -1;\n\t\t});\n\t};\n\tthis.wiki.eachTiddlerPlusShadows.byField = function(name,value) {\n\t\tvar lookup = self.lookup(name,value);\n\t\treturn lookup ? lookup.slice(0) : null;\n\t};\n\tthis.wiki.eachShadowPlusTiddlers.byField = function(name,value) {\n\t\tvar lookup = self.lookup(name,value);\n\t\treturn lookup ? lookup.slice(0) : null;\n\t};\n};\n\n/*\nTear down and then rebuild the index as if all tiddlers have changed\n*/\nFieldIndexer.prototype.rebuild = function() {\n\t// Invalidate the index so that it will be rebuilt when it is next used\n\tthis.index = null;\n};\n\n/*\nBuild the index for a particular field\n*/\nFieldIndexer.prototype.buildIndexForField = function(name) {\n\tvar self = this;\n\t// Hashmap by field name of hashmap by field value of array of tiddler titles\n\tthis.index = this.index || Object.create(null);\n\tthis.index[name] = Object.create(null);\n\tvar baseIndex = this.index[name];\n\t// Update the index for each tiddler\n\tthis.wiki.eachTiddlerPlusShadows(function(tiddler,title) {\n\t\tif(name in tiddler.fields) {\n\t\t\tvar value = tiddler.getFieldString(name);\n\t\t\t// Skip any values above the maximum length\n\t\t\tif(value.length < self.maxIndexedValueLength) {\n\t\t\t\tbaseIndex[value] = baseIndex[value] || [];\n\t\t\t\tbaseIndex[value].push(title);\n\t\t\t}\n\t\t}\n\t});\n};\n\n/*\nUpdate the index in the light of a tiddler value changing; note that the title must be identical. (Renames are handled as a separate delete and create)\nupdateDescriptor: {old: {tiddler: <tiddler>, shadow: <boolean>, exists: <boolean>},new: {tiddler: <tiddler>, shadow: <boolean>, exists: <boolean>}}\n*/\nFieldIndexer.prototype.update = function(updateDescriptor) {\n\tvar self = this;\n\t// Don't do anything if the index hasn't been built yet\n\tif(this.index === null) {\n\t\treturn;\n\t}\n\t// Remove the old tiddler from the index\n\tif(updateDescriptor.old.tiddler) {\n\t\t$tw.utils.each(this.index,function(indexEntry,name) {\n\t\t\tif(name in updateDescriptor.old.tiddler.fields) {\n\t\t\t\tvar value = updateDescriptor.old.tiddler.getFieldString(name),\n\t\t\t\t\ttiddlerList = indexEntry[value];\n\t\t\t\tif(tiddlerList) {\n\t\t\t\t\tvar index = tiddlerList.indexOf(updateDescriptor.old.tiddler.fields.title);\n\t\t\t\t\tif(index !== -1) {\n\t\t\t\t\t\ttiddlerList.splice(index,1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\t// Add the new tiddler to the index\n\tif(updateDescriptor[\"new\"].tiddler) {\n\t\t$tw.utils.each(this.index,function(indexEntry,name) {\n\t\t\tif(name in updateDescriptor[\"new\"].tiddler.fields) {\n\t\t\t\tvar value = updateDescriptor[\"new\"].tiddler.getFieldString(name);\n\t\t\t\tif(value.length < self.maxIndexedValueLength) {\n\t\t\t\t\tindexEntry[value] = indexEntry[value] || [];\n\t\t\t\t\tindexEntry[value].push(updateDescriptor[\"new\"].tiddler.fields.title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\t\n\t}\n};\n\n// Lookup the given field returning a list of tiddler titles\nFieldIndexer.prototype.lookup = function(name,value) {\n\t// Fail the lookup if the value is too long\n\tif(value.length >= this.maxIndexedValueLength) {\n\t\treturn null;\n\t}\n\t// Update the index if it has yet to be built\n\tif(this.index === null || !this.index[name]) {\n\t\tthis.buildIndexForField(name);\n\t}\n\treturn this.index[name][value] || [];\n};\n\nexports.FieldIndexer = FieldIndexer;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "indexer"
+ },
+ "$:/core/modules/indexers/tag-indexer.js": {
+ "title": "$:/core/modules/indexers/tag-indexer.js",
+ "text": "/*\\\ntitle: $:/core/modules/indexers/tag-indexer.js\ntype: application/javascript\nmodule-type: indexer\n\nIndexes the tiddlers with each tag\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global modules: false */\n\"use strict\";\n\nfunction TagIndexer(wiki) {\n\tthis.wiki = wiki;\n}\n\nTagIndexer.prototype.init = function() {\n\tthis.subIndexers = [\n\t\tnew TagSubIndexer(this,\"each\"),\n\t\tnew TagSubIndexer(this,\"eachShadow\"),\n\t\tnew TagSubIndexer(this,\"eachTiddlerPlusShadows\"),\n\t\tnew TagSubIndexer(this,\"eachShadowPlusTiddlers\")\n\t];\n\t$tw.utils.each(this.subIndexers,function(subIndexer) {\n\t\tsubIndexer.addIndexMethod();\n\t});\n};\n\nTagIndexer.prototype.rebuild = function() {\n\t$tw.utils.each(this.subIndexers,function(subIndexer) {\n\t\tsubIndexer.rebuild();\n\t});\n};\n\nTagIndexer.prototype.update = function(updateDescriptor) {\n\t$tw.utils.each(this.subIndexers,function(subIndexer) {\n\t\tsubIndexer.update(updateDescriptor);\n\t});\n};\n\nfunction TagSubIndexer(indexer,iteratorMethod) {\n\tthis.indexer = indexer;\n\tthis.iteratorMethod = iteratorMethod;\n\tthis.index = null; // Hashmap of tag title to {isSorted: bool, titles: [array]} or null if not yet initialised\n}\n\nTagSubIndexer.prototype.addIndexMethod = function() {\n\tvar self = this;\n\tthis.indexer.wiki[this.iteratorMethod].byTag = function(tag) {\n\t\treturn self.lookup(tag).slice(0);\n\t};\n};\n\nTagSubIndexer.prototype.rebuild = function() {\n\tvar self = this;\n\t// Hashmap by tag of array of {isSorted:, titles:[]}\n\tthis.index = Object.create(null);\n\t// Add all the tags\n\tthis.indexer.wiki[this.iteratorMethod](function(tiddler,title) {\n\t\t$tw.utils.each(tiddler.fields.tags,function(tag) {\n\t\t\tif(!self.index[tag]) {\n\t\t\t\tself.index[tag] = {isSorted: false, titles: [title]};\n\t\t\t} else {\n\t\t\t\tself.index[tag].titles.push(title);\n\t\t\t}\n\t\t});\t\t\n\t});\n};\n\nTagSubIndexer.prototype.update = function(updateDescriptor) {\n\tthis.index = null;\n};\n\nTagSubIndexer.prototype.lookup = function(tag) {\n\t// Update the index if it has yet to be built\n\tif(this.index === null) {\n\t\tthis.rebuild();\n\t}\n\tvar indexRecord = this.index[tag];\n\tif(indexRecord) {\n\t\tif(!indexRecord.isSorted) {\n\t\t\tif(this.indexer.wiki.sortByList) {\n\t\t\t\tindexRecord.titles = this.indexer.wiki.sortByList(indexRecord.titles,tag);\n\t\t\t}\t\t\t\n\t\t\tindexRecord.isSorted = true;\n\t\t}\n\t\treturn indexRecord.titles;\n\t} else {\n\t\treturn [];\n\t}\n};\n\n\nexports.TagIndexer = TagIndexer;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "indexer"
+ },
+ "$:/core/modules/info/platform.js": {
+ "title": "$:/core/modules/info/platform.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.getInfoTiddlerFields = function(updateInfoTiddlersCallback) {\n\tvar mapBoolean = function(value) {return value ? \"yes\" : \"no\";},\n\t\tinfoTiddlerFields = [];\n\t// Basics\n\tinfoTiddlerFields.push({title: \"$:/info/browser\", text: mapBoolean(!!$tw.browser)});\n\tinfoTiddlerFields.push({title: \"$:/info/node\", text: mapBoolean(!!$tw.node)});\n\tinfoTiddlerFields.push({title: \"$:/info/startup-timestamp\", text: $tw.utils.stringifyDate(new Date())});\n\tif($tw.browser) {\n\t\t// Document location\n\t\tvar setLocationProperty = function(name,value) {\n\t\t\t\tinfoTiddlerFields.push({title: \"$:/info/url/\" + name, text: value});\t\t\t\n\t\t\t},\n\t\t\tlocation = document.location;\n\t\tsetLocationProperty(\"full\", (location.toString()).split(\"#\")[0]);\n\t\tsetLocationProperty(\"host\", location.host);\n\t\tsetLocationProperty(\"hostname\", location.hostname);\n\t\tsetLocationProperty(\"protocol\", location.protocol);\n\t\tsetLocationProperty(\"port\", location.port);\n\t\tsetLocationProperty(\"pathname\", location.pathname);\n\t\tsetLocationProperty(\"search\", location.search);\n\t\tsetLocationProperty(\"origin\", location.origin);\n\t\t// Screen size\n\t\tinfoTiddlerFields.push({title: \"$:/info/browser/screen/width\", text: window.screen.width.toString()});\n\t\tinfoTiddlerFields.push({title: \"$:/info/browser/screen/height\", text: window.screen.height.toString()});\n \t\t// Dark mode through event listener on MediaQueryList\n \t\tvar mqList = window.matchMedia(\"(prefers-color-scheme: dark)\"),\n \t\t\tgetDarkModeTiddler = function() {return {title: \"$:/info/darkmode\", text: mqList.matches ? \"yes\" : \"no\"};};\n \t\tinfoTiddlerFields.push(getDarkModeTiddler());\n \t\tmqList.addListener(function(event) {\n \t\t\tupdateInfoTiddlersCallback([getDarkModeTiddler()]);\n \t\t});\n\t\t// Language\n\t\tinfoTiddlerFields.push({title: \"$:/info/browser/language\", text: navigator.language || \"\"});\n\t}\n\treturn infoTiddlerFields;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "info"
+ },
+ "$:/core/modules/keyboard.js": {
+ "title": "$:/core/modules/keyboard.js",
+ "text": "/*\\\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\"use strict\";\n\nvar namedKeys = {\n\t\"cancel\": 3,\n\t\"help\": 6,\n\t\"backspace\": 8,\n\t\"tab\": 9,\n\t\"clear\": 12,\n\t\"return\": 13,\n\t\"enter\": 13,\n\t\"pause\": 19,\n\t\"escape\": 27,\n\t\"space\": 32,\n\t\"page_up\": 33,\n\t\"page_down\": 34,\n\t\"end\": 35,\n\t\"home\": 36,\n\t\"left\": 37,\n\t\"up\": 38,\n\t\"right\": 39,\n\t\"down\": 40,\n\t\"printscreen\": 44,\n\t\"insert\": 45,\n\t\"delete\": 46,\n\t\"0\": 48,\n\t\"1\": 49,\n\t\"2\": 50,\n\t\"3\": 51,\n\t\"4\": 52,\n\t\"5\": 53,\n\t\"6\": 54,\n\t\"7\": 55,\n\t\"8\": 56,\n\t\"9\": 57,\n\t\"firefoxsemicolon\": 59,\n\t\"firefoxequals\": 61,\n\t\"a\": 65,\n\t\"b\": 66,\n\t\"c\": 67,\n\t\"d\": 68,\n\t\"e\": 69,\n\t\"f\": 70,\n\t\"g\": 71,\n\t\"h\": 72,\n\t\"i\": 73,\n\t\"j\": 74,\n\t\"k\": 75,\n\t\"l\": 76,\n\t\"m\": 77,\n\t\"n\": 78,\n\t\"o\": 79,\n\t\"p\": 80,\n\t\"q\": 81,\n\t\"r\": 82,\n\t\"s\": 83,\n\t\"t\": 84,\n\t\"u\": 85,\n\t\"v\": 86,\n\t\"w\": 87,\n\t\"x\": 88,\n\t\"y\": 89,\n\t\"z\": 90,\n\t\"numpad0\": 96,\n\t\"numpad1\": 97,\n\t\"numpad2\": 98,\n\t\"numpad3\": 99,\n\t\"numpad4\": 100,\n\t\"numpad5\": 101,\n\t\"numpad6\": 102,\n\t\"numpad7\": 103,\n\t\"numpad8\": 104,\n\t\"numpad9\": 105,\n\t\"multiply\": 106,\n\t\"add\": 107,\n\t\"separator\": 108,\n\t\"subtract\": 109,\n\t\"decimal\": 110,\n\t\"divide\": 111,\n\t\"f1\": 112,\n\t\"f2\": 113,\n\t\"f3\": 114,\n\t\"f4\": 115,\n\t\"f5\": 116,\n\t\"f6\": 117,\n\t\"f7\": 118,\n\t\"f8\": 119,\n\t\"f9\": 120,\n\t\"f10\": 121,\n\t\"f11\": 122,\n\t\"f12\": 123,\n\t\"f13\": 124,\n\t\"f14\": 125,\n\t\"f15\": 126,\n\t\"f16\": 127,\n\t\"f17\": 128,\n\t\"f18\": 129,\n\t\"f19\": 130,\n\t\"f20\": 131,\n\t\"f21\": 132,\n\t\"f22\": 133,\n\t\"f23\": 134,\n\t\"f24\": 135,\n\t\"firefoxminus\": 173,\n\t\"semicolon\": 186,\n\t\"equals\": 187,\n\t\"comma\": 188,\n\t\"dash\": 189,\n\t\"period\": 190,\n\t\"slash\": 191,\n\t\"backquote\": 192,\n\t\"openbracket\": 219,\n\t\"backslash\": 220,\n\t\"closebracket\": 221,\n\t\"quote\": 222\n};\n\nfunction KeyboardManager(options) {\n\tvar self = this;\n\toptions = options || \"\";\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 \"meta\" key\n\tthis.metaKeyName = $tw.platform.isMac ? \"cmd-\" : \"win-\";\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 = [\"shortcuts\"];\n\tthis.lookupNames.push($tw.platform.isMac ? \"shortcuts-mac\" : \"shortcuts-not-mac\")\n\tthis.lookupNames.push($tw.platform.isWindows ? \"shortcuts-windows\" : \"shortcuts-not-windows\");\n\tthis.lookupNames.push($tw.platform.isLinux ? \"shortcuts-linux\" : \"shortcuts-not-linux\");\n\tthis.updateShortcutLists(this.getShortcutTiddlerList());\n\t$tw.wiki.addEventListener(\"change\",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<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 === \"ctrl\") {\n\t\t\tinfo.ctrlKey = true;\n\t\t} else if(s === \"shift\") {\n\t\t\tinfo.shiftKey = true;\n\t\t} else if(s === \"alt\") {\n\t\t\tinfo.altKey = true;\n\t\t} else if(s === \"meta\" || s === \"cmd\" || s === \"win\") {\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 === \"string\" && keyDescriptors === \"\") {\n\t\treturn [];\n\t}\n\tif(!$tw.utils.isArray(keyDescriptors)) {\n\t\tkeyDescriptors = keyDescriptors.split(\" \");\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) === \"((\" && keyDescriptor.substr(-2,2) === \"))\") {\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(\"$:/config/\" + configName + \"/\" + 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 ? \"ctrl-\" : \"\") + \n\t\t\t\t (keyInfo.shiftKey ? \"shift-\" : \"\") + \n\t\t\t\t (keyInfo.altKey ? \"alt-\" : \"\") + \n\t\t\t\t (keyInfo.metaKey ? self.metaKeyName : \"\") + \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 &&\n\t\t\tevent.keyCode === keyInfo.keyCode && \n\t\t\tevent.shiftKey === keyInfo.shiftKey && \n\t\t\tevent.altKey === keyInfo.altKey && \n\t\t\tevent.ctrlKey === keyInfo.ctrlKey && \n\t\t\tevent.metaKey === keyInfo.metaKey;\n};\n\nKeyboardManager.prototype.checkKeyDescriptors = function(event,keyInfoArray) {\n\tfor(var t=0; t<keyInfoArray.length; t++) {\n\t\tif(this.checkKeyDescriptor(event,keyInfoArray[t])) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n\nKeyboardManager.prototype.getEventModifierKeyDescriptor = function(event) {\n\treturn event.ctrlKey && !event.shiftKey && !event.altKey && !event.metaKey ? \"ctrl\" : \n\t\tevent.shiftKey && !event.ctrlKey && !event.altKey && !event.metaKey ? \"shift\" : \n\t\tevent.ctrlKey && event.shiftKey && !event.altKey && !event.metaKey ? \"ctrl-shift\" : \n\t\tevent.altKey && !event.shiftKey && !event.ctrlKey && !event.metaKey ? \"alt\" : \n\t\tevent.altKey && event.shiftKey && !event.ctrlKey && !event.metaKey ? \"alt-shift\" : \n\t\tevent.altKey && event.ctrlKey && !event.shiftKey && !event.metaKey ? \"ctrl-alt\" : \n\t\tevent.altKey && event.shiftKey && event.ctrlKey && !event.metaKey ? \"ctrl-alt-shift\" : \n\t\tevent.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey ? \"meta\" : \n\t\tevent.metaKey && event.ctrlKey && !event.shiftKey && !event.altKey ? \"meta-ctrl\" :\n\t\tevent.metaKey && event.ctrlKey && event.shiftKey && !event.altKey ? \"meta-ctrl-shift\" :\n\t\tevent.metaKey && event.ctrlKey & event.shiftKey && event.altKey ? \"meta-ctrl-alt-shift\" : \"normal\";\n};\n\nKeyboardManager.prototype.getShortcutTiddlerList = function() {\n\treturn $tw.wiki.getTiddlersWithTag(\"$:/tags/KeyboardShortcut\");\n};\n\nKeyboardManager.prototype.updateShortcutLists = function(tiddlerList) {\n\tthis.shortcutTiddlers = tiddlerList;\n\tfor(var i=0; i<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<this.shortcutTiddlers.length; i++) {\n\t\tif(this.shortcutParsedList[i] !== undefined && 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 = \"$:/config/\" + platformDescriptor + \"/\";\n\t\tObject.keys(changedTiddlers).forEach(function(configTiddler) {\n\t\t\tvar configString = configTiddler.substr(0, configTiddler.lastIndexOf(\"/\") + 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",
+ "type": "application/javascript",
+ "module-type": "global"
+ },
+ "$:/core/modules/language.js": {
+ "title": "$:/core/modules/language.js",
+ "text": "/*\\\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\"use strict\";\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 || \"\";\n\tthis.wiki = options.wiki || $tw.wiki;\n}\n\n/*\nReturn a wikified translateable string. The title is automatically prefixed with \"$:/language/\"\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 = \"$:/language/\" + title;\n\treturn this.wiki.renderTiddler(\"text/plain\",title,{variables: options.variables});\n};\n\n/*\nReturn a raw, unwikified translateable string. The title is automatically prefixed with \"$:/language/\"\n*/\nLanguage.prototype.getRawString = function(title) {\n\ttitle = \"$:/language/\" + title;\n\treturn this.wiki.getTiddlerText(title);\n};\n\nexports.Language = Language;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "global"
+ },
+ "$:/core/modules/macros/changecount.js": {
+ "title": "$:/core/modules/macros/changecount.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"changecount\";\n\nexports.params = [];\n\n/*\nRun the macro\n*/\nexports.run = function() {\n\treturn this.wiki.getChangeCount(this.getVariable(\"currentTiddler\")) + \"\";\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "macro"
+ },
+ "$:/core/modules/macros/contrastcolour.js": {
+ "title": "$:/core/modules/macros/contrastcolour.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"contrastcolour\";\n\nexports.params = [\n\t{name: \"target\"},\n\t{name: \"fallbackTarget\"},\n\t{name: \"colourA\"},\n\t{name: \"colourB\"}\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 && !rgbColourB) {\n\t\treturn rgbColourA;\n\t}\n\tif(rgbColourB && !rgbColourA) {\n\t\treturn rgbColourB;\n\t}\n\tif(!rgbColourA && !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) > Math.abs(brightnessTarget - brightnessB) ? colourA : colourB;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "macro"
+ },
+ "$:/core/modules/macros/csvtiddlers.js": {
+ "title": "$:/core/modules/macros/csvtiddlers.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"csvtiddlers\";\n\nexports.params = [\n\t{name: \"filter\"},\n\t{name: \"format\"},\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<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\"title text modified modifier created creator\".split(\" \").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(\",\"));\n\t// Output each tiddler\n\tfor(var t=0;t<tiddlers.length; t++) {\n\t\trow = [];\n\t\ttiddler = this.wiki.getTiddler(tiddlers[t]);\n\t\t\tfor(f=0; f<fields.length; f++) {\n\t\t\t\trow.push(quoteAndEscape(tiddler ? tiddler.getFieldString(fields[f]) || \"\" : \"\"));\n\t\t\t}\n\t\toutput.push(row.join(\",\"));\n\t}\n\treturn output.join(\"\\n\");\n};\n\nfunction quoteAndEscape(value) {\n\treturn \"\\\"\" + value.replace(/\"/mg,\"\\\"\\\"\") + \"\\\"\";\n}\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "macro"
+ },
+ "$:/core/modules/macros/displayshortcuts.js": {
+ "title": "$:/core/modules/macros/displayshortcuts.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"displayshortcuts\";\n\nexports.params = [\n\t{name: \"shortcuts\"},\n\t{name: \"prefix\"},\n\t{name: \"separator\"},\n\t{name: \"suffix\"}\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 > 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 \"\";\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "macro"
+ },
+ "$:/core/modules/macros/jsontiddler.js": {
+ "title": "$:/core/modules/macros/jsontiddler.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"jsontiddler\";\n\nexports.params = [\n\t{name: \"title\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(title) {\n\ttitle = title || this.getVariable(\"currentTiddler\");\n\tvar tiddler = !!title && 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",
+ "type": "application/javascript",
+ "module-type": "macro"
+ },
+ "$:/core/modules/macros/jsontiddlers.js": {
+ "title": "$:/core/modules/macros/jsontiddlers.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"jsontiddlers\";\n\nexports.params = [\n\t{name: \"filter\"},\n\t{name: \"spaces\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(filter,spaces) {\n\treturn this.wiki.getTiddlersAsJson(filter,$tw.utils.parseInt(spaces));\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "macro"
+ },
+ "$:/core/modules/macros/makedatauri.js": {
+ "title": "$:/core/modules/macros/makedatauri.js",
+ "text": "/*\\\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<<makedatauri text:\"Text to be converted\" type:\"text/vnd.tiddlywiki\">>\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"makedatauri\";\n\nexports.params = [\n\t{name: \"text\"},\n\t{name: \"type\"},\n\t{name: \"_canonical_uri\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(text,type,_canonical_uri) {\n\treturn $tw.utils.makeDataUri(text,type,_canonical_uri);\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "macro"
+ },
+ "$:/core/modules/macros/now.js": {
+ "title": "$:/core/modules/macros/now.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"now\";\n\nexports.params = [\n\t{name: \"format\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(format) {\n\treturn $tw.utils.formatDateString(new Date(),format || \"0hh:0mm, DDth MMM YYYY\");\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "macro"
+ },
+ "$:/core/modules/macros/qualify.js": {
+ "title": "$:/core/modules/macros/qualify.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"qualify\";\n\nexports.params = [\n\t{name: \"title\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(title) {\n\treturn title + \"-\" + this.getStateQualifier();\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "macro"
+ },
+ "$:/core/modules/macros/resolvepath.js": {
+ "title": "$:/core/modules/macros/resolvepath.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"resolvepath\";\n\nexports.params = [\n\t{name: \"source\"},\n\t{name: \"root\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(source, root) {\n\treturn $tw.utils.resolvePath(source, root);\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "macro"
+ },
+ "$:/core/modules/macros/unusedtitle.js": {
+ "title": "$:/core/modules/macros/unusedtitle.js",
+ "text": "/*\\\ntitle: $:/core/modules/macros/unusedtitle.js\ntype: application/javascript\nmodule-type: macro\nMacro to return a new title that is unused in the wiki. It can be given a name as a base.\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"unusedtitle\";\n\nexports.params = [\n\t{name: \"baseName\"},\n\t{name: \"options\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(baseName, options) {\n\tif(!baseName) {\n\t\tbaseName = $tw.language.getString(\"DefaultNewTiddlerTitle\");\n\t}\n\treturn this.wiki.generateNewTitle(baseName, options);\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "macro"
+ },
+ "$:/core/modules/macros/version.js": {
+ "title": "$:/core/modules/macros/version.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"version\";\n\nexports.params = [];\n\n/*\nRun the macro\n*/\nexports.run = function() {\n\treturn $tw.version;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "macro"
+ },
+ "$:/core/modules/parsers/audioparser.js": {
+ "title": "$:/core/modules/parsers/audioparser.js",
+ "text": "/*\\\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\"use strict\";\n\nvar AudioParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \"element\",\n\t\t\ttag: \"audio\",\n\t\t\tattributes: {\n\t\t\t\tcontrols: {type: \"string\", value: \"controls\"},\n\t\t\t\tstyle: {type: \"string\", value: \"width: 100%; object-fit: contain\"}\n\t\t\t}\n\t\t},\n\t\tsrc;\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \"string\", value: options._canonical_uri};\n\t} else if(text) {\n\t\telement.attributes.src = {type: \"string\", value: \"data:\" + type + \";base64,\" + text};\n\t}\n\tthis.tree = [element];\n};\n\nexports[\"audio/ogg\"] = AudioParser;\nexports[\"audio/mpeg\"] = AudioParser;\nexports[\"audio/mp3\"] = AudioParser;\nexports[\"audio/mp4\"] = AudioParser;\n\n})();\n\n",
+ "type": "application/javascript",
+ "module-type": "parser"
+ },
+ "$:/core/modules/parsers/binaryparser.js": {
+ "title": "$:/core/modules/parsers/binaryparser.js",
+ "text": "/*\\\ntitle: $:/core/modules/parsers/binaryparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe binary parser parses a binary tiddler into a warning message and download link\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar BINARY_WARNING_MESSAGE = \"$:/core/ui/BinaryWarning\";\nvar EXPORT_BUTTON_IMAGE = \"$:/core/images/export-button\";\n\nvar BinaryParser = function(type,text,options) {\n\t// Transclude the binary data tiddler warning message\n\tvar warn = {\n\t\ttype: \"element\",\n\t\ttag: \"p\",\n\t\tchildren: [{\n\t\t\ttype: \"transclude\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", value: BINARY_WARNING_MESSAGE}\n\t\t\t}\n\t\t}]\n\t};\n\t// Create download link based on binary tiddler title\n\tvar link = {\n\t\ttype: \"element\",\n\t\ttag: \"a\",\n\t\tattributes: {\n\t\t\ttitle: {type: \"indirect\", textReference: \"!!title\"},\n\t\t\tdownload: {type: \"indirect\", textReference: \"!!title\"}\n\t\t},\n\t\tchildren: [{\n\t\t\ttype: \"transclude\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", value: EXPORT_BUTTON_IMAGE}\n\t\t\t}\n\t\t}]\n\t};\n\t// Set the link href to external or internal data URI\n\tif(options._canonical_uri) {\n\t\tlink.attributes.href = {\n\t\t\ttype: \"string\", \n\t\t\tvalue: options._canonical_uri\n\t\t};\n\t} else if(text) {\n\t\tlink.attributes.href = {\n\t\t\ttype: \"string\", \n\t\t\tvalue: \"data:\" + type + \";base64,\" + text\n\t\t};\n\t}\n\t// Combine warning message and download link in a div\n\tvar element = {\n\t\ttype: \"element\",\n\t\ttag: \"div\",\n\t\tattributes: {\n\t\t\tclass: {type: \"string\", value: \"tc-binary-warning\"}\n\t\t},\n\t\tchildren: [warn, link]\n\t}\n\tthis.tree = [element];\n};\n\nexports[\"application/octet-stream\"] = BinaryParser;\n\n})();\n\n",
+ "type": "application/javascript",
+ "module-type": "parser"
+ },
+ "$:/core/modules/parsers/csvparser.js": {
+ "title": "$:/core/modules/parsers/csvparser.js",
+ "text": "/*\\\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\"use strict\";\n\nvar CsvParser = function(type,text,options) {\n\t// Table framework\n\tthis.tree = [{\n\t\t\"type\": \"scrollable\", \"children\": [{\n\t\t\t\"type\": \"element\", \"tag\": \"table\", \"children\": [{\n\t\t\t\t\"type\": \"element\", \"tag\": \"tbody\", \"children\": []\n\t\t\t}], \"attributes\": {\n\t\t\t\t\"class\": {\"type\": \"string\", \"value\": \"tc-csv-table\"}\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 = \"th\";\n\tfor(var line=0; line<lines.length; line++) {\n\t\tvar lineText = lines[line];\n\t\tif(lineText) {\n\t\t\tvar row = {\n\t\t\t\t\t\"type\": \"element\", \"tag\": \"tr\", \"children\": []\n\t\t\t\t};\n\t\t\tvar columns = lineText.split(\",\");\n\t\t\tfor(var column=0; column<columns.length; column++) {\n\t\t\t\trow.children.push({\n\t\t\t\t\t\t\"type\": \"element\", \"tag\": tag, \"children\": [{\n\t\t\t\t\t\t\t\"type\": \"text\",\n\t\t\t\t\t\t\t\"text\": columns[column]\n\t\t\t\t\t\t}]\n\t\t\t\t\t});\n\t\t\t}\n\t\t\ttag = \"td\";\n\t\t\tthis.tree[0].children[0].children[0].children.push(row);\n\t\t}\n\t}\n};\n\nexports[\"text/csv\"] = CsvParser;\n\n})();\n\n",
+ "type": "application/javascript",
+ "module-type": "parser"
+ },
+ "$:/core/modules/parsers/htmlparser.js": {
+ "title": "$:/core/modules/parsers/htmlparser.js",
+ "text": "/*\\\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\"use strict\";\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 = \"data:text/html;charset=utf-8,\" + encodeURIComponent(text);\n\t}\n\tthis.tree = [{\n\t\ttype: \"element\",\n\t\ttag: \"iframe\",\n\t\tattributes: {\n\t\t\tsrc: {type: \"string\", value: src},\n\t\t\tsandbox: {type: \"string\", value: \"\"}\n\t\t}\n\t}];\n};\n\nexports[\"text/html\"] = HtmlParser;\n\n})();\n\n",
+ "type": "application/javascript",
+ "module-type": "parser"
+ },
+ "$:/core/modules/parsers/imageparser.js": {
+ "title": "$:/core/modules/parsers/imageparser.js",
+ "text": "/*\\\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\"use strict\";\n\nvar ImageParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \"element\",\n\t\t\ttag: \"img\",\n\t\t\tattributes: {}\n\t\t};\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \"string\", value: options._canonical_uri};\n\t} else if(text) {\n\t\tif(type === \"image/svg+xml\" || type === \".svg\") {\n\t\t\telement.attributes.src = {type: \"string\", value: \"data:image/svg+xml,\" + encodeURIComponent(text)};\n\t\t} else {\n\t\t\telement.attributes.src = {type: \"string\", value: \"data:\" + type + \";base64,\" + text};\n\t\t}\n\t}\n\tthis.tree = [element];\n};\n\nexports[\"image/svg+xml\"] = ImageParser;\nexports[\"image/jpg\"] = ImageParser;\nexports[\"image/jpeg\"] = ImageParser;\nexports[\"image/png\"] = ImageParser;\nexports[\"image/gif\"] = ImageParser;\nexports[\"image/webp\"] = ImageParser;\nexports[\"image/heic\"] = ImageParser;\nexports[\"image/heif\"] = ImageParser;\nexports[\"image/x-icon\"] = ImageParser;\n\n})();\n\n",
+ "type": "application/javascript",
+ "module-type": "parser"
+ },
+ "$:/core/modules/utils/parseutils.js": {
+ "title": "$:/core/modules/utils/parseutils.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nLook for a whitespace token. Returns null if not found, otherwise returns {type: \"whitespace\", 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 === \" \") || (c === \"\\f\") || (c === \"\\n\") || (c === \"\\r\") || (c === \"\\t\") || (c === \"\\v\") || (c === \"\\u00a0\")) { // 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: \"whitespace\",\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 === \" \") || (c === \"\\f\") || (c === \"\\n\") || (c === \"\\r\") || (c === \"\\t\") || (c === \"\\v\") || (c === \"\\u00a0\")) { // 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: \"token\", 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: \"token\",\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: \"regexp\", match:, start:, end:,}\n*/\nexports.parseTokenRegExp = function(source,pos,reToken) {\n\tvar node = {\n\t\ttype: \"regexp\",\n\t\tstart: pos\n\t};\n\treToken.lastIndex = pos;\n\tnode.match = reToken.exec(source);\n\tif(node.match && 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: \"string\", value:, start:, end:,}\n*/\nexports.parseStringLiteral = function(source,pos) {\n\tvar node = {\n\t\ttype: \"string\",\n\t\tstart: pos\n\t};\n\tvar reString = /(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\")|(?:'([^']*)')/g;\n\treString.lastIndex = pos;\n\tvar match = reString.exec(source);\n\tif(match && 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: \"macro-parameter\", name:, value:, start:, end:}\n*/\nexports.parseMacroParameter = function(source,pos) {\n\tvar node = {\n\t\ttype: \"macro-parameter\",\n\t\tstart: pos\n\t};\n\t// Define our regexp\n\tvar reMacroParameter = /(?:([A-Za-z0-9\\-_]+)\\s*:)?(?:\\s*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\\s>\"'=]+)))/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\"\"\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: \"macrocall\", name:, parameters:, start:, end:}\n*/\nexports.parseMacroInvocation = function(source,pos) {\n\tvar node = {\n\t\ttype: \"macrocall\",\n\t\tstart: pos,\n\t\tparams: []\n\t};\n\t// Define our regexps\n\tvar reMacroName = /([^\\s>\"'=]+)/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,\"<<\");\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,\">>\");\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: \"attribute\", name:, valueType: \"string|indirect|macro\", 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>\"'=]+)/g,\n\t\treUnquotedAttribute = /([^\\/\\s<>\"'=]+)/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,\"=\");\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 = \"string\";\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 = \"filtered\";\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 = \"indirect\";\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 = \"string\";\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 = \"macro\";\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 = \"string\";\n\t\t\t\t\t\t\tnode.value = \"true\";\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 = \"string\";\n\t\tnode.value = \"true\";\n\t}\n\t// Update the end position\n\tnode.end = pos;\n\treturn node;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/parsers/pdfparser.js": {
+ "title": "$:/core/modules/parsers/pdfparser.js",
+ "text": "/*\\\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\"use strict\";\n\nvar ImageParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \"element\",\n\t\t\ttag: \"embed\",\n\t\t\tattributes: {}\n\t\t},\n\t\tsrc;\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \"string\", value: options._canonical_uri};\n\t} else if(text) {\n\t\telement.attributes.src = {type: \"string\", value: \"data:application/pdf;base64,\" + text};\n\t}\n\tthis.tree = [element];\n};\n\nexports[\"application/pdf\"] = ImageParser;\n\n})();\n\n",
+ "type": "application/javascript",
+ "module-type": "parser"
+ },
+ "$:/core/modules/parsers/textparser.js": {
+ "title": "$:/core/modules/parsers/textparser.js",
+ "text": "/*\\\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\"use strict\";\n\nvar TextParser = function(type,text,options) {\n\tthis.tree = [{\n\t\ttype: \"codeblock\",\n\t\tattributes: {\n\t\t\tcode: {type: \"string\", value: text},\n\t\t\tlanguage: {type: \"string\", value: type}\n\t\t}\n\t}];\n};\n\nexports[\"text/plain\"] = TextParser;\nexports[\"text/x-tiddlywiki\"] = TextParser;\nexports[\"application/javascript\"] = TextParser;\nexports[\"application/json\"] = TextParser;\nexports[\"text/css\"] = TextParser;\nexports[\"application/x-tiddler-dictionary\"] = TextParser;\n\n})();\n\n",
+ "type": "application/javascript",
+ "module-type": "parser"
+ },
+ "$:/core/modules/parsers/videoparser.js": {
+ "title": "$:/core/modules/parsers/videoparser.js",
+ "text": "/*\\\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\"use strict\";\n\nvar VideoParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \"element\",\n\t\t\ttag: \"video\",\n\t\t\tattributes: {\n\t\t\t\tcontrols: {type: \"string\", value: \"controls\"},\n\t\t\t\tstyle: {type: \"string\", value: \"width: 100%; object-fit: contain\"}\n\t\t\t}\n\t\t},\n\t\tsrc;\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \"string\", value: options._canonical_uri};\n\t} else if(text) {\n\t\telement.attributes.src = {type: \"string\", value: \"data:\" + type + \";base64,\" + text};\n\t}\n\tthis.tree = [element];\n};\n\nexports[\"video/ogg\"] = VideoParser;\nexports[\"video/webm\"] = VideoParser;\nexports[\"video/mp4\"] = VideoParser;\nexports[\"video/quicktime\"] = VideoParser;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "parser"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/codeblock.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/codeblock.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"codeblock\";\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: \"codeblock\",\n\t\t\tattributes: {\n\t\t\t\t\tcode: {type: \"string\", value: text},\n\t\t\t\t\tlanguage: {type: \"string\", value: this.match[1]}\n\t\t\t}\n\t}];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/codeinline.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/codeinline.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"codeinline\";\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], \"mg\");\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: \"element\",\n\t\ttag: \"code\",\n\t\tchildren: [{\n\t\t\ttype: \"text\",\n\t\t\ttext: text\n\t\t}]\n\t}];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/commentblock.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/commentblock.js",
+ "text": "/*\\\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<!-- This is a comment -->\n```\n\nNote that the syntax for comments is simplified to an opening \"<!--\" sequence and a closing \"-->\" 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\"use strict\";\n\nexports.name = \"commentblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\tthis.matchRegExp = /<!--/mg;\n\tthis.endMatchRegExp = /-->/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",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/commentinline.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/commentinline.js",
+ "text": "/*\\\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<!-- This is a comment -->\n```\n\nNote that the syntax for comments is simplified to an opening \"<!--\" sequence and a closing \"-->\" 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\"use strict\";\n\nexports.name = \"commentinline\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\tthis.matchRegExp = /<!--/mg;\n\tthis.endMatchRegExp = /-->/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",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/dash.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/dash.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"dash\";\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 ? \"–\" : \"—\";\n\treturn [{\n\t\ttype: \"entity\",\n\t\tentity: dash\n\t}];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/emphasis/bold.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/emphasis/bold.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"bold\";\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: \"element\",\n\t\ttag: \"strong\",\n\t\tchildren: tree\n\t}];\n};\n\n})();",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/emphasis/italic.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/emphasis/italic.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"italic\";\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: \"element\",\n\t\ttag: \"em\",\n\t\tchildren: tree\n\t}];\n};\n\n})();",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"strikethrough\";\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: \"element\",\n\t\ttag: \"strike\",\n\t\tchildren: tree\n\t}];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"subscript\";\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: \"element\",\n\t\ttag: \"sub\",\n\t\tchildren: tree\n\t}];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"superscript\";\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: \"element\",\n\t\ttag: \"sup\",\n\t\tchildren: tree\n\t}];\n};\n\n})();",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"underscore\";\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: \"element\",\n\t\ttag: \"u\",\n\t\tchildren: tree\n\t}];\n};\n\n})();",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/entity.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/entity.js",
+ "text": "/*\\\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: ©\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"entity\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /(&#?[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: \"entity\", entity: this.match[0]}];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/extlink.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/extlink.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"extlink\";\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<>{}\\[\\]`|\"\\\\^]+(?:\\/|\\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) === \"~\") {\n\t\treturn [{type: \"text\", text: this.match[0].substr(1)}];\n\t} else {\n\t\treturn [{\n\t\t\ttype: \"element\",\n\t\t\ttag: \"a\",\n\t\t\tattributes: {\n\t\t\t\thref: {type: \"string\", value: this.match[0]},\n\t\t\t\t\"class\": {type: \"string\", value: \"tc-tiddlylink-external\"},\n\t\t\t\ttarget: {type: \"string\", value: \"_blank\"},\n\t\t\t\trel: {type: \"string\", value: \"noopener noreferrer\"}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\", text: this.match[0]\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"filteredtranscludeblock\";\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: \"list\",\n\t\tattributes: {\n\t\t\tfilter: {type: \"string\", value: filter}\n\t\t},\n\t\tisBlock: true\n\t};\n\tif(tooltip) {\n\t\tnode.attributes.tooltip = {type: \"string\", value: tooltip};\n\t}\n\tif(template) {\n\t\tnode.attributes.template = {type: \"string\", value: template};\n\t}\n\tif(style) {\n\t\tnode.attributes.style = {type: \"string\", value: style};\n\t}\n\tif(classes) {\n\t\tnode.attributes.itemClass = {type: \"string\", value: classes.split(\".\").join(\" \")};\n\t}\n\treturn [node];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"filteredtranscludeinline\";\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: \"list\",\n\t\tattributes: {\n\t\t\tfilter: {type: \"string\", value: filter}\n\t\t}\n\t};\n\tif(tooltip) {\n\t\tnode.attributes.tooltip = {type: \"string\", value: tooltip};\n\t}\n\tif(template) {\n\t\tnode.attributes.template = {type: \"string\", value: template};\n\t}\n\tif(style) {\n\t\tnode.attributes.style = {type: \"string\", value: style};\n\t}\n\tif(classes) {\n\t\tnode.attributes.itemClass = {type: \"string\", value: classes.split(\".\").join(\" \")};\n\t}\n\treturn [node];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js",
+ "text": "/*\\\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\"\"\"\nThis is some text\nThat is set like\nIt is a Poem\nWhen it is\nClearly\nNot\n\"\"\"\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"hardlinebreaks\";\nexports.types = {inline: 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\tvar reEnd = /(\"\"\")|(\\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: \"element\", tag: \"br\"});\n\t\t\t}\n\t\t}\n\t} while(match && !match[1]);\n\t// Return the nodes\n\treturn tree;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/heading.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/heading.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"heading\";\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: \"element\",\n\t\ttag: \"h\" + headingLevel, \n\t\tattributes: {\n\t\t\t\"class\": {type: \"string\", value: classes.join(\" \")}\n\t\t},\n\t\tchildren: tree\n\t}];\n};\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/horizrule.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/horizrule.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"horizrule\";\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: \"element\", tag: \"hr\"}];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/html.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/html.js",
+ "text": "/*\\\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<aside>\nThis is an HTML5 aside element\n</aside>\n\n<$slider target=\"MyTiddler\">\nThis is a widget invocation\n</$slider>\n\n}}}\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"html\";\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 && !!$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 && $tw.config.htmlVoidElements.indexOf(tag.tag) === -1) {\n\t\t\tvar reEndString = \"</\" + $tw.utils.escapeRegExp(tag.tag) + \">\",\n\t\t\t\treEnd = new RegExp(\"(\" + reEndString + \")\",\"mg\");\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 && 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: \"element\", 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: \"element\",\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,\"<\");\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(\"$\") !== -1) {\n\t\treturn null;\n\t}\n\tif(node.tag.charAt(0) === \"$\") {\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 >\n\tif(!$tw.utils.parseWhiteSpace(source,pos) && !(source.charAt(pos) === \"/\") && !(source.charAt(pos) === \">\") ) {\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,\"/\");\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,\">\");\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 = /<([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 && 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 !== \"element\") {\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) === \"-\") {\n\t\treturn false;\n\t} else {\n\t\t// Otherwise it's OK\n\t\treturn true;\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/image.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/image.js",
+ "text": "/*\\\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 `<$image>` widget.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"image\";\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: \"image\",\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: \"image\", attributes: [], isSelfClosing:, start:, end:,}\n*/\nexports.parseImage = function(source,pos) {\n\tvar token,\n\t\tnode = {\n\t\t\ttype: \"image\",\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,\"[img\");\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) !== \"[\") {\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) !== \"[\") {\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,\"[\");\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: \"string\", value: token.match[1].trim()};\n\t}\n\tnode.attributes.source = {type: \"string\", value: (token.match[2] || \"\").trim()};\n\t// Update the end position\n\tnode.end = pos;\n\treturn node;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/import.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/import.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"import\";\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: \"importvariables\",\n\t\tattributes: {\n\t\t\tfilter: {type: \"string\", value: match[1]}\n\t\t},\n\t\tchildren: []\n\t}];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/list.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/list.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"list\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /([\\*#;:>]+)/mg;\n};\n\nvar listTypes = {\n\t\"*\": {listTag: \"ul\", itemTag: \"li\"},\n\t\"#\": {listTag: \"ol\", itemTag: \"li\"},\n\t\";\": {listTag: \"dl\", itemTag: \"dt\"},\n\t\":\": {listTag: \"dl\", itemTag: \"dd\"},\n\t\">\": {listTag: \"blockquote\", itemTag: \"div\"}\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 = /([\\*#;:>]+)/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 > 0 && 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<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 > t && 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 <= t) {\n\t\t\t\tvar listElement = {type: \"element\", tag: listInfo.listTag, children: [\n\t\t\t\t\t{type: \"element\", 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: \"element\", tag: listInfo.itemTag, children: []});\n\t\t\t}\n\t\t}\n\t\tif(listStack.length > 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 > 0) {\n\t\t\t$tw.utils.addClassToParseTreeNode(lastListItem,classes.join(\" \"));\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",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/macrocallblock.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/macrocallblock.js",
+ "text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/macrocallblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki rule for block macro calls\n\n```\n<<name value value2>>\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"macrocallblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /<<([^>\\s]+)(?:\\s*)((?:[^>]|(?:>(?!>)))*?)>>(?:\\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*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\"'\\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: \"macrocall\",\n\t\tname: macroName,\n\t\tparams: params,\n\t\tisBlock: true\n\t}];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/macrocallinline.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/macrocallinline.js",
+ "text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/macrocallinline.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki rule for macro calls\n\n```\n<<name value value2>>\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"macrocallinline\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /<<([^\\s>]+)\\s*([\\s\\S]*?)>>/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*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\"'\\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: \"macrocall\",\n\t\tname: macroName,\n\t\tparams: params\n\t}];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/macrodef.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/macrodef.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"macrodef\";\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 !== \"\") {\n\t\tvar reParam = /\\s*([A-Za-z0-9\\-_]+)(?:\\s*:\\s*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\"'\\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[\"default\"] = 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 = \"\";\n\t}\n\t// Save the macro definition\n\treturn [{\n\t\ttype: \"set\",\n\t\tattributes: {\n\t\t\tname: {type: \"string\", value: this.match[1]},\n\t\t\tvalue: {type: \"string\", value: text}\n\t\t},\n\t\tchildren: [],\n\t\tparams: params,\n\t\tisMacroDefinition: true\n\t}];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/prettyextlink.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/prettyextlink.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"prettyextlink\";\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: \"element\", tag: \"a\", attributes: [], isSelfClosing:, start:, end:,}\n*/\nexports.parseLink = function(source,pos) {\n\tvar token,\n\t\ttextNode = {\n\t\t\ttype: \"text\"\n\t\t},\n\t\tnode = {\n\t\t\ttype: \"element\",\n\t\t\ttag: \"a\",\n\t\t\tstart: pos,\n\t\t\tattributes: {\n\t\t\t\t\"class\": {type: \"string\", value: \"tc-tiddlylink-external\"},\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,\"[ext[\");\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(\"]]\",pos);\n\tif(closePos === -1) {\n\t\treturn null;\n\t}\n\t// Look for a `|` separating the tooltip\n\tvar splitPos = source.indexOf(\"|\",pos);\n\tif(splitPos === -1 || splitPos > 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: \"string\", value: URL};\n\tnode.attributes.target = {type: \"string\", value: \"_blank\"};\n\tnode.attributes.rel = {type: \"string\", value: \"noopener noreferrer\"};\n\t// Update the end position\n\tnode.end = closePos + 2;\n\treturn node;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/prettylink.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/prettylink.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"prettylink\";\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: \"element\",\n\t\t\ttag: \"a\",\n\t\t\tattributes: {\n\t\t\t\thref: {type: \"string\", value: link},\n\t\t\t\t\"class\": {type: \"string\", value: \"tc-tiddlylink-external\"},\n\t\t\t\ttarget: {type: \"string\", value: \"_blank\"},\n\t\t\t\trel: {type: \"string\", value: \"noopener noreferrer\"}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\", text: text\n\t\t\t}]\n\t\t}];\n\t} else {\n\t\treturn [{\n\t\t\ttype: \"link\",\n\t\t\tattributes: {\n\t\t\t\tto: {type: \"string\", value: link}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\", text: text\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/quoteblock.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/quoteblock.js",
+ "text": "/*\\\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<<<.optionalClass(es) optional cited from\n\ta quote\n\t<<<\n\t\n\t<<<.optionalClass(es)\n\ta quote\n\t<<< optional cited from\n```\n\nQuotes can be quoted by putting more <s\n\n```\n\t<<<\n\tQuote Level 1\n\t\n\t<<<<\n\tQuoteLevel 2\n\t<<<<\n\t\n\t<<<\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"quoteblock\";\nexports.types = {block: 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\tvar classes = [\"tc-quote\"];\n\t// Get all the details of the match\n\tvar reEndString = \"^\" + this.match[1] + \"(?!<)\";\n\t// Move past the <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 > 0) {\n\t\ttree.unshift({\n\t\t\ttype: \"element\",\n\t\t\ttag: \"cite\",\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 > 0) {\n\t\ttree.push({\n\t\t\ttype: \"element\",\n\t\t\ttag: \"cite\",\n\t\t\tchildren: cite\n\t\t});\n\t}\n\t// Return the blockquote element\n\treturn [{\n\t\ttype: \"element\",\n\t\ttag: \"blockquote\",\n\t\tattributes: {\n\t\t\tclass: { type: \"string\", value: classes.join(\" \") },\n\t\t},\n\t\tchildren: tree\n\t}];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/rules.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/rules.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"rules\";\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 && 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 > 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",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/styleblock.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/styleblock.js",
+ "text": "/*\\\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 `<ul>` 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\"use strict\";\n\nexports.name = \"styleblock\";\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 = \"^@@(?:\\\\r?\\\\n)?\";\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(\".\").join(\" \"));\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 && this.match.index === this.parser.pos);\n\t// Parse the body\n\tvar tree = this.parser.parseBlocks(reEndString);\n\tfor(var t=0; t<tree.length; t++) {\n\t\tif(classes.length > 0) {\n\t\t\t$tw.utils.addClassToParseTreeNode(tree[t],classes.join(\" \"));\n\t\t}\n\t\tif(styles.length > 0) {\n\t\t\t$tw.utils.addAttributeToParseTreeNode(tree[t],\"style\",styles.join(\"\"));\n\t\t}\n\t}\n\treturn tree;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/styleinline.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/styleinline.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"styleinline\";\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(\".\").join(\" \") : 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: \"element\",\n\t\ttag: \"span\",\n\t\tattributes: {\n\t\t\t\"class\": {type: \"string\", value: \"tc-inline-style\"}\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,\"style\",stylesString);\n\t}\n\treturn [node];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/syslink.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/syslink.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"syslink\";\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\"~?\\\\$:\\\\/[\" +\n\t\t$tw.config.textPrimitives.anyLetter.substr(1,$tw.config.textPrimitives.anyLetter.length - 2) +\n\t\t\"\\/._-]+\",\n\t\t\"mg\"\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) === \"~\") {\n\t\treturn [{type: \"text\", text: match.substr(1)}];\n\t} else {\n\t\treturn [{\n\t\t\ttype: \"link\",\n\t\t\tattributes: {\n\t\t\t\tto: {type: \"string\", value: match}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\",\n\t\t\t\ttext: match\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/table.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/table.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"table\";\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 && cellMatch.index === this.parser.pos) {\n\t\tif(cellMatch[1] === \"~\") {\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,\"rowspan\",last.rowSpanCount);\n\t\t\t\tvAlign = $tw.utils.getAttributeValueFromParseTreeNode(last.element,\"valign\",\"center\");\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(last.element,\"valign\",vAlign);\n\t\t\t\tif(colSpanCount > 1) {\n\t\t\t\t\t$tw.utils.addAttributeToParseTreeNode(last.element,\"colspan\",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] === \">\") {\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] === \"<\" && prevCell) {\n\t\t\tcolSpanCount = 1 + $tw.utils.getAttributeValueFromParseTreeNode(prevCell,\"colspan\",1);\n\t\t\t$tw.utils.addAttributeToParseTreeNode(prevCell,\"colspan\",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 && colSpanCount > 1) {\n\t\t\t\tif(prevCell.attributes && prevCell.attributes && 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,\"colspan\",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 = \"top\";\n\t\t\t} else if(this.parser.source.substr(this.parser.pos).search(/^,([^,]|,,)/) === 0) {\n\t\t\t\tvAlign = \"bottom\";\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 === \" \") {\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 === \"!\") {\n\t\t\t\tthis.parser.pos++;\n\t\t\t\tcell = {type: \"element\", tag: \"th\", children: []};\n\t\t\t} else {\n\t\t\t\tcell = {type: \"element\", tag: \"td\", 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 > 1) {\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(cell,\"colspan\",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,\"valign\",vAlign);\n\t\t\t}\n\t\t\tif(this.parser.source.substr(this.parser.pos - 2,1) === \" \") { // spaceRight\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(cell,\"align\",spaceLeft ? \"center\" : \"left\");\n\t\t\t} else if(spaceLeft) {\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(cell,\"align\",\"right\");\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 = {\"c\":\"caption\", \"h\":\"thead\", \"\":\"tbody\", \"f\":\"tfoot\"},\n\t\ttable = {type: \"element\", tag: \"table\", 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 && 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 === \"k\") {\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: \"element\", 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 === \"c\") {\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 ? \"top\" : \"bottom\";\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: \"element\", tag: \"tr\", children: []};\n\t\t\t\t$tw.utils.addClassToParseTreeNode(theRow,rowCount%2 ? \"oddRow\" : \"evenRow\");\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",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/transcludeblock.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/transcludeblock.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"transcludeblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\{\\{([^\\{\\}\\|]*)(?:\\|\\|([^\\|\\{\\}]+))?\\}\\}(?:\\r?\\n|$)/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Get the match details\n\tvar template = $tw.utils.trim(this.match[2]),\n\t\ttextRef = $tw.utils.trim(this.match[1]);\n\t// Prepare the transclude widget\n\tvar transcludeNode = {\n\t\t\ttype: \"transclude\",\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: \"tiddler\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", 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: \"string\", 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: \"string\", value: targetTitle};\n\t\t\tif(targetField) {\n\t\t\t\ttranscludeNode.attributes.field = {type: \"string\", value: targetField};\n\t\t\t}\n\t\t\tif(targetIndex) {\n\t\t\t\ttranscludeNode.attributes.index = {type: \"string\", 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",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/transcludeinline.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/transcludeinline.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"transcludeinline\";\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: \"transclude\",\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: \"tiddler\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", 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: \"string\", 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: \"string\", value: targetTitle};\n\t\t\tif(targetField) {\n\t\t\t\ttranscludeNode.attributes.field = {type: \"string\", value: targetField};\n\t\t\t}\n\t\t\tif(targetIndex) {\n\t\t\t\ttranscludeNode.attributes.index = {type: \"string\", 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",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/typedblock.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/typedblock.js",
+ "text": "/*\\\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<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"150\" height=\"100\">\n <circle cx=\"100\" cy=\"50\" r=\"40\" stroke=\"black\" stroke-width=\"2\" fill=\"red\" />\n</svg>\n$$$\n\n$$$text/vnd.tiddlywiki>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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.name = \"typedblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\$\\$\\$([^ >\\r\\n]*)(?: *> *([^ \\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: \"text/plain\"});\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 <PRE> tag\n\t\tvar widgetNode = this.parser.wiki.makeWidget(parser),\n\t\t\tcontainer = $tw.fakeDocument.createElement(\"div\");\n\t\twidgetNode.render(container,null);\n\t\ttext = renderType === \"text/html\" ? container.innerHTML : container.textContent;\n\t\treturn [{\n\t\t\ttype: \"element\",\n\t\t\ttag: \"pre\",\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\",\n\t\t\t\ttext: text\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/whitespace.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/whitespace.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"whitespace\";\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 && 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 \"trim\":\n\t\t\t\tself.parser.configTrimWhiteSpace = true;\n\t\t\t\tbreak;\n\t\t\tcase \"notrim\":\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",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/wikilink.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/wikilink.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.name = \"wikilink\";\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 + \"?\" + $tw.config.textPrimitives.wikiLink,\"mg\");\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: \"text\", 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 > 0) {\n\t\tvar preRegExp = new RegExp($tw.config.textPrimitives.blockPrefixLetters,\"mg\");\n\t\tpreRegExp.lastIndex = this.match.index-1;\n\t\tvar preMatch = preRegExp.exec(this.parser.source);\n\t\tif(preMatch && preMatch.index === this.match.index-1) {\n\t\t\treturn [{type: \"text\", text: linkText}];\n\t\t}\n\t}\n\treturn [{\n\t\ttype: \"link\",\n\t\tattributes: {\n\t\t\tto: {type: \"string\", value: linkText}\n\t\t},\n\t\tchildren: [{\n\t\t\ttype: \"text\",\n\t\t\ttext: linkText\n\t\t}]\n\t}];\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "wikirule"
+ },
+ "$:/core/modules/parsers/wikiparser/wikiparser.js": {
+ "title": "$:/core/modules/parsers/wikiparser/wikiparser.js",
+ "text": "/*\\\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: \"element\", tag: <string>, attributes: {}, children: []} - an HTML element\n\t{type: \"text\", text: <string>} - a text node\n\t{type: \"entity\", value: <string>} - an entity\n\t{type: \"raw\", html: <string>} - raw HTML\n\nAttributes are stored as hashmaps of the following objects:\n\n\t{type: \"string\", value: <string>} - literal string\n\t{type: \"indirect\", textReference: <textReference>} - indirect through a text reference\n\t{type: \"macro\", macro: <TBD>} - indirect through a macro invocation\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\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 && (text || \"\") === \"\" && options._canonical_uri) {\n\t\tthis.loadRemoteTiddler(options._canonical_uri);\n\t\ttext = $tw.language.getRawString(\"LazyLoadingWarning\");\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(\"wikirule\",\"pragma\",$tw.WikiRuleBase);\n\t\tthis.setupRules(WikiParser.prototype.pragmaRuleClasses,\"$:/config/WikiParserRules/Pragmas/\");\n\t}\n\tif(!this.blockRuleClasses) {\n\t\tWikiParser.prototype.blockRuleClasses = $tw.modules.createClassesFromModules(\"wikirule\",\"block\",$tw.WikiRuleBase);\n\t\tthis.setupRules(WikiParser.prototype.blockRuleClasses,\"$:/config/WikiParserRules/Block/\");\n\t}\n\tif(!this.inlineRuleClasses) {\n\t\tWikiParser.prototype.inlineRuleClasses = $tw.modules.createClassesFromModules(\"wikirule\",\"inline\",$tw.WikiRuleBase);\n\t\tthis.setupRules(WikiParser.prototype.inlineRuleClasses,\"$:/config/WikiParserRules/Inline/\");\n\t}\n\t// Save the parse text\n\tthis.type = type || \"text/vnd.tiddlywiki\";\n\tthis.source = text || \"\";\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,\"pragma\",0);\n\t// Instantiate the parser block and inline rules\n\tthis.blockRules = this.instantiateRules(this.blockRuleClasses,\"block\",0);\n\tthis.inlineRules = this.instantiateRules(this.inlineRuleClasses,\"inline\",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: \"GET\",\n\t\tcallback: function(err,data) {\n\t\t\tif(!err) {\n\t\t\t\tvar tiddlers = self.wiki.deserializeTiddlers(\".tid\",data,self.wiki.getCreationFields());\n\t\t\t\t$tw.utils.each(tiddlers,function(tiddler) {\n\t\t\t\t\ttiddler[\"_canonical_uri\"] = 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,\"enable\") !== \"enable\") {\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 && 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<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 && ruleInfo.matchIndex < 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 && ruleInfo.matchIndex <= 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 >= 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 > 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(\"(\" + terminatorRegExpString + \"|\\\\r?\\\\n\\\\r?\\\\n)\",\"mg\") : /(\\r?\\n\\r?\\n)/mg;\n\tthis.skipWhitespace();\n\tif(this.pos >= 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 && 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: \"element\", tag: \"p\", 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 < 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(\"(\" + terminatorRegExpString + \")\",\"mg\"),\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 < this.sourceLength && !(match && 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 && 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 < this.sourceLength && nextMatch) {\n\t\t// Process the text preceding the run rule\n\t\tif(nextMatch.matchIndex > 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 < 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 < this.sourceLength && (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 >= terminatorMatch.index) {\n\t\t\t\tif(terminatorMatch.index > 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 > 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 < 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: \"text\", 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 && match.index === this.pos) {\n\t\tthis.pos = match.index + match[0].length;\n\t\tclassNames.push(match[1]);\n\t\tmatch = classRegExp.exec(this.source);\n\t}\n\treturn classNames;\n};\n\n/*\nAmend the rules used by this instance of the parser\n\ttype: `only` keeps just the named rules, `except` keeps all but the named rules\n\tnames: array of rule names\n*/\nWikiParser.prototype.amendRules = function(type,names) {\n\tnames = names || [];\n\t// Define the filter function\n\tvar target;\n\tif(type === \"only\") {\n\t\ttarget = true;\n\t} else if(type === \"except\") {\n\t\ttarget = false;\n\t} else {\n\t\treturn;\n\t}\n\t// Define a function to process each of our rule arrays\n\tvar processRuleArray = function(ruleArray) {\n\t\tfor(var t=ruleArray.length-1; t>=0; t--) {\n\t\t\tif((names.indexOf(ruleArray[t].rule.name) === -1) === target) {\n\t\t\t\truleArray.splice(t,1);\n\t\t\t}\n\t\t}\n\t};\n\t// Process each rule array\n\tprocessRuleArray(this.pragmaRules);\n\tprocessRuleArray(this.blockRules);\n\tprocessRuleArray(this.inlineRules);\n};\n\nexports[\"text/vnd.tiddlywiki\"] = WikiParser;\n\n})();\n\n",
+ "type": "application/javascript",
+ "module-type": "parser"
+ },
+ "$:/core/modules/parsers/wikiparser/rules/wikirulebase.js": {
+ "title": "$:/core/modules/parsers/wikiparser/rules/wikirulebase.js",
+ "text": "/*\\\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\"use strict\";\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",
+ "type": "application/javascript",
+ "module-type": "global"
+ },
+ "$:/core/modules/pluginswitcher.js": {
+ "title": "$:/core/modules/pluginswitcher.js",
+ "text": "/*\\\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\"use strict\";\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(\"change\",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) && index < 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 && tiddler.isPlugin() && 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 || \"\");\n\t\t\t\t$tw.utils.each(dependents,function(title) {\n\t\t\t\t\taccumulatePlugin(title);\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\taccumulatePlugin(selectedPluginTitle);\n\t// Read the plugin info for the incoming plugins\n\tvar changes = $tw.wiki.readPluginInfo(plugins);\n\t// Unregister any existing theme tiddlers\n\tvar unregisteredTiddlers = $tw.wiki.unregisterPluginTiddlers(this.pluginType);\n\t// Register any new theme tiddlers\n\tvar registeredTiddlers = $tw.wiki.registerPluginTiddlers(this.pluginType,plugins);\n\t// Unpack the current theme tiddlers\n\t$tw.wiki.unpackPluginTiddlers();\n\t// Call the switch handler\n\tif(this.onSwitch) {\n\t\tthis.onSwitch(plugins);\n\t}\n};\n\nexports.PluginSwitcher = PluginSwitcher;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "global"
+ },
+ "$:/core/modules/saver-handler.js": {
+ "title": "$:/core/modules/saver-handler.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nInstantiate the saver handler with the following options:\nwiki: wiki to be synced\ndirtyTracking: true if dirty tracking should be performed\n*/\nfunction SaverHandler(options) {\n\tvar self = this;\n\tthis.wiki = options.wiki;\n\tthis.dirtyTracking = options.dirtyTracking;\n\tthis.preloadDirty = options.preloadDirty || [];\n\tthis.pendingAutoSave = false;\n\t// Make a logger\n\tthis.logger = new $tw.utils.Logger(\"saver-handler\");\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 && this.dirtyTracking) {\n\t\t// Compile the dirty tiddler filter\n\t\tthis.filterFn = this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter));\n\t\t// Count of changes that have not yet been saved\n\t\tvar filteredChanges = self.filterFn.call(self.wiki,function(iterator) {\n\t\t\t\t$tw.utils.each(self.preloadDirty,function(title) {\n\t\t\t\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\t\t\t\titerator(tiddler,title);\n\t\t\t\t});\n\t\t});\n\t\tthis.numChanges = filteredChanges.length;\n\t\t// Listen out for changes to tiddlers\n\t\tthis.wiki.addEventListener(\"change\",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 && self.wiki.getSizeOfTiddlerEventQueue() === 0) {\n\t\t\t\t// Check if we're dirty\n\t\t\t\tif(self.numChanges > 0) {\n\t\t\t\t\tself.saveWiki({\n\t\t\t\t\t\tmethod: \"autosave\",\n\t\t\t\t\t\tdownloadType: \"text/plain\"\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(\"tm-auto-save-wiki\",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 > 0) {\n\t\t\t\t\tself.saveWiki({\n\t\t\t\t\t\tmethod: \"autosave\",\n\t\t\t\t\t\tdownloadType: \"text/plain\"\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 \"pending autosave\" 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(\"UnsavedChangesWarning\");\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(\"tm-save-wiki\",function(event) {\n\t\t\tself.saveWiki({\n\t\t\t\ttemplate: event.param,\n\t\t\t\tdownloadType: \"text/plain\",\n\t\t\t\tvariables: event.paramObject\n\t\t\t});\n\t\t});\n\t\t$tw.rootWidget.addEventListener(\"tm-download-file\",function(event) {\n\t\t\tself.saveWiki({\n\t\t\t\tmethod: \"download\",\n\t\t\t\ttemplate: event.param,\n\t\t\t\tdownloadType: \"text/plain\",\n\t\t\t\tvariables: event.paramObject\n\t\t\t});\n\t\t});\n\t}\n}\n\nSaverHandler.prototype.titleSyncFilter = \"$:/config/SaverFilter\";\nSaverHandler.prototype.titleAutoSave = \"$:/config/AutoSave\";\nSaverHandler.prototype.titleSavedNotification = \"$:/language/Notifications/Save/Done\";\n\n/*\nSelect the appropriate saver modules and set them up\n*/\nSaverHandler.prototype.initSavers = function(moduleType) {\n\tmoduleType = moduleType || \"saver\";\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 < b.info.priority) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tif(a.info.priority > 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: \"save\", \"autosave\" or \"download\"\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 || \"save\";\n\t// Ignore autosave if disabled\n\tif(method === \"autosave\" && ($tw.config.disableAutoSave || this.wiki.getTiddlerText(this.titleAutoSave,\"yes\") !== \"yes\")) {\n\t\treturn false;\n\t}\n\tvar\tvariables = options.variables || {},\n\t\ttemplate = options.template || \"$:/core/save/all\",\n\t\tdownloadType = options.downloadType || \"text/plain\",\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(\"Error/WhileSaving\") + \":\\n\\n\" + 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 !== \"download\") {\n\t\t\t\t\tself.numChanges = 0;\n\t\t\t\t\tself.updateDirtyStatus();\n\t\t\t\t}\n\t\t\t\t$tw.notifier.display(self.titleSavedNotification);\n\t\t\t\tif(options.callback) {\n\t\t\t\t\toptions.callback();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t// Call the highest priority saver that supports this method\n\tfor(var t=this.savers.length-1; t>=0; t--) {\n\t\tvar saver = this.savers[t];\n\t\tif(saver.info.capabilities.indexOf(method) !== -1 && saver.save(text,method,callback,{variables: {filename: variables.filename}})) {\n\t\t\tthis.logger.log(\"Saving wiki with method\",method,\"through saver\",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 > 0;\n};\n\n/*\nUpdate the document body with the class \"tc-dirty\" if the wiki has unsaved/unsynced changes\n*/\nSaverHandler.prototype.updateDirtyStatus = function() {\n\tvar self = this;\n\tif($tw.browser) {\n\t\t$tw.utils.toggleClass(document.body,\"tc-dirty\",this.isDirty());\n\t\t$tw.utils.each($tw.windows,function(win) {\n\t\t\t$tw.utils.toggleClass(win.document.body,\"tc-dirty\",self.isDirty());\n\t\t});\n\t}\n};\n\nexports.SaverHandler = SaverHandler;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "global"
+ },
+ "$:/core/modules/savers/andtidwiki.js": {
+ "title": "$:/core/modules/savers/andtidwiki.js",
+ "text": "/*\\\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\"use strict\";\n\nvar AndTidWiki = function(wiki) {\n};\n\nAndTidWiki.prototype.save = function(text,method,callback,options) {\n\tvar filename = options && options.variables ? options.variables.filename : null;\n\tif (method === \"download\") {\n\t\t// Support download\n\t\tif (window.twi.saveDownload) {\n\t\t\ttry {\n\t\t\t\twindow.twi.saveDownload(text,filename);\n\t\t\t} catch(err) {\n\t\t\t\tif (err.message === \"Method not found\") {\n\t\t\t\t\twindow.twi.saveDownload(text);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tvar link = document.createElement(\"a\");\n\t\t\tlink.setAttribute(\"href\",\"data:text/plain,\" + encodeURIComponent(text));\n\t\t\tif (filename) {\n\t\t\t link.setAttribute(\"download\",filename);\n\t\t\t}\n\t\t\tdocument.body.appendChild(link);\n\t\t\tlink.click();\n\t\t\tdocument.body.removeChild(link);\n\t\t}\n\t} else if (window.twi.saveWiki) {\n\t\t// Direct save in Tiddloid\n\t\twindow.twi.saveWiki(text);\n\t} else {\n\t\t// Get the pathname of this document\n\t\tvar pathname = decodeURIComponent(document.location.toString().split(\"#\")[0]);\n\t\t// Strip the file://\n\t\tif(pathname.indexOf(\"file://\") === 0) {\n\t\t\tpathname = pathname.substr(7);\n\t\t}\n\t\t// Strip any query or location part\n\t\tvar p = pathname.indexOf(\"?\");\n\t\tif(p !== -1) {\n\t\t\tpathname = pathname.substr(0,p);\n\t\t}\n\t\tp = pathname.indexOf(\"#\");\n\t\tif(p !== -1) {\n\t\t\tpathname = pathname.substr(0,p);\n\t\t}\n\t\t// Save the file\n\t\twindow.twi.saveFile(pathname,text);\n\t}\n\t// Call the callback\n\tcallback(null);\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nAndTidWiki.prototype.info = {\n\tname: \"andtidwiki\",\n\tpriority: 1600,\n\tcapabilities: [\"save\", \"autosave\", \"download\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!window.twi && !!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",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/savers/beaker.js": {
+ "title": "$:/core/modules/savers/beaker.js",
+ "text": "/*\\\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 >= V0.7.2\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\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(\"\" + window.location),\n\t\tpathname = (\"\" + window.location.pathname).split(\"#\")[0];\n\tdat.stat(pathname).then(function(value) {\n\t\tif(value.isDirectory()) {\n\t\t\tpathname = pathname + \"/index.html\";\n\t\t}\n\t\tdat.writeFile(pathname,text,\"utf8\").then(function(value) {\n\t\t\tcallback(null);\n\t\t},function(reason) {\n\t\t\tcallback(\"Beaker Saver Write Error: \" + reason);\n\t\t});\n\t},function(reason) {\n\t\tcallback(\"Beaker Saver Stat Error: \" + reason);\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nBeakerSaver.prototype.info = {\n\tname: \"beaker\",\n\tpriority: 3000,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!window.DatArchive && location.protocol===\"dat:\";\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new BeakerSaver(wiki);\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/savers/custom.js": {
+ "title": "$:/core/modules/savers/custom.js",
+ "text": "/*\\\ntitle: $:/core/modules/savers/custom.js\ntype: application/javascript\nmodule-type: saver\n\nLooks for `window.$tw.customSaver` first on the current window, then\non the parent window (of an iframe). If present, the saver must define\n\tsave: function(text,method,callback) { ... }\nand the saver may define\n\tpriority: number\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar findSaver = function(window) {\n\ttry {\n\t\treturn window && window.$tw && window.$tw.customSaver;\n\t} catch (err) {\n\t\t// Catching the exception is the most reliable way to detect cross-origin iframe errors.\n\t\t// For example, instead of saying that `window.parent.$tw` is undefined, Firefox will throw\n\t\t// Uncaught DOMException: Permission denied to access property \"$tw\" on cross-origin object\n\t\tconsole.log({ msg: \"custom saver is disabled\", reason: err });\n\t\treturn null;\n\t}\n}\nvar saver = findSaver(window) || findSaver(window.parent) || {};\n\nvar CustomSaver = function(wiki) {\n};\n\nCustomSaver.prototype.save = function(text,method,callback) {\n\treturn saver.save(text, method, callback);\n};\n\n/*\nInformation about this saver\n*/\nCustomSaver.prototype.info = {\n\tname: \"custom\",\n\tpriority: saver.priority || 4000,\n\tcapabilities: [\"save\",\"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!(saver.save);\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new CustomSaver(wiki);\n};\n})();\n",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/savers/download.js": {
+ "title": "$:/core/modules/savers/download.js",
+ "text": "/*\\\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\"use strict\";\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(\"/\");\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 = \"tiddlywiki.html\";\n\t}\n\t// Set up the link\n\tvar link = document.createElement(\"a\");\n\tif(Blob !== undefined) {\n\t\tvar blob = new Blob([text], {type: \"text/html\"});\n\t\tlink.setAttribute(\"href\", URL.createObjectURL(blob));\n\t} else {\n\t\tlink.setAttribute(\"href\",\"data:text/html,\" + encodeURIComponent(text));\n\t}\n\tlink.setAttribute(\"download\",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: \"download\",\n\tpriority: 100\n};\n\nObject.defineProperty(DownloadSaver.prototype.info, \"capabilities\", {\n\tget: function() {\n\t\tvar capabilities = [\"save\", \"download\"];\n\t\tif(($tw.wiki.getTextReference(\"$:/config/DownloadSaver/AutoSave\") || \"\").toLowerCase() === \"yes\") {\n\t\t\tcapabilities.push(\"autosave\");\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(\"a\").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",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/savers/fsosaver.js": {
+ "title": "$:/core/modules/savers/fsosaver.js",
+ "text": "/*\\\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\"use strict\";\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 !== \"\" && /^\\/\\\\[^\\\\]+\\\\[^\\\\]+/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 = \"\\\\\\\\\" + 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(\"Scripting.FileSystemObject\");\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: \"FSOSaver\",\n\tpriority: 120,\n\tcapabilities: [\"save\", \"autosave\"]\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 === \"file:\") && !!(new ActiveXObject(\"Scripting.FileSystemObject\"));\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",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/savers/gitea.js": {
+ "title": "$:/core/modules/savers/gitea.js",
+ "text": "/*\\\ntitle: $:/core/modules/savers/gitea.js\ntype: application/javascript\nmodule-type: saver\n\nSaves wiki by pushing a commit to the gitea\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar GiteaSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nGiteaSaver.prototype.save = function(text,method,callback) {\n\tvar self = this,\n\t\tusername = this.wiki.getTiddlerText(\"$:/Gitea/Username\"),\n\t\tpassword = $tw.utils.getPassword(\"Gitea\"),\n\t\trepo = this.wiki.getTiddlerText(\"$:/Gitea/Repo\"),\n\t\tpath = this.wiki.getTiddlerText(\"$:/Gitea/Path\",\"\"),\n\t\tfilename = this.wiki.getTiddlerText(\"$:/Gitea/Filename\"),\n\t\tbranch = this.wiki.getTiddlerText(\"$:/Gitea/Branch\") || \"master\",\n\t\tendpoint = this.wiki.getTiddlerText(\"$:/Gitea/ServerURL\") || \"https://gitea\",\n\t\theaders = {\n\t\t\t\"Accept\": \"application/json\",\n\t\t\t\"Content-Type\": \"application/json;charset=UTF-8\",\n\t\t\t\"Authorization\": \"token \" + password\n\t\t};\n\t// Bail if we don't have everything we need\n\tif(!username || !password || !repo || !filename) {\n\t\treturn false;\n\t}\n\t// Make sure the path start and ends with a slash\n\tif(path.substring(0,1) !== \"/\") {\n\t\tpath = \"/\" + path;\n\t}\n\tif(path.substring(path.length - 1) !== \"/\") {\n\t\tpath = path + \"/\";\n\t}\n\t// Compose the base URI\n\tvar uri = endpoint + \"/repos/\" + repo + \"/contents\" + path;\n\t// Perform a get request to get the details (inc shas) of files in the same path as our file\n\t$tw.utils.httpRequest({\n\t\turl: uri,\n\t\ttype: \"GET\",\n\t\theaders: headers,\n\t\tdata: {\n\t\t\tref: branch\n\t\t},\n\t\tcallback: function(err,getResponseDataJson,xhr) {\n\t\t\tvar getResponseData,sha = \"\";\n\t\t\tif(err && xhr.status !== 404) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tvar use_put = true;\n\t\t\tif(xhr.status !== 404) {\n\t\t\t\tgetResponseData = JSON.parse(getResponseDataJson);\n\t\t\t\t$tw.utils.each(getResponseData,function(details) {\n\t\t\t\t\tif(details.name === filename) {\n\t\t\t\t\t\tsha = details.sha;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tif(sha === \"\"){\n\t\t\t\t\tuse_put = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar data = {\n\t\t\t\tmessage: $tw.language.getRawString(\"ControlPanel/Saving/GitService/CommitMessage\"),\n\t\t\t\tcontent: $tw.utils.base64Encode(text),\n\t\t\t\tsha: sha\n\t\t\t};\n\t\t\t$tw.utils.httpRequest({\n\t\t\t\turl: endpoint + \"/repos/\" + repo + \"/branches/\" + branch,\n\t\t\t\ttype: \"GET\",\n\t\t\t\theaders: headers,\n\t\t\t\tcallback: function(err,getResponseDataJson,xhr) {\n\t\t\t\t\tif(xhr.status === 404) {\n\t\t\t\t\t\tcallback(\"Please ensure the branch in the Gitea repo exists\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdata[\"branch\"] = branch;\n\t\t\t\t\t\tself.upload(uri + filename, use_put?\"PUT\":\"POST\", headers, data, callback);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\treturn true;\n};\n\nGiteaSaver.prototype.upload = function(uri,method,headers,data,callback) {\n\t$tw.utils.httpRequest({\n\t\turl: uri,\n\t\ttype: method,\n\t\theaders: headers,\n\t\tdata: JSON.stringify(data),\n\t\tcallback: function(err,putResponseDataJson,xhr) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tvar putResponseData = JSON.parse(putResponseDataJson);\n\t\t\tcallback(null);\n\t\t}\n\t});\n};\n\n/*\nInformation about this saver\n*/\nGiteaSaver.prototype.info = {\n\tname: \"Gitea\",\n\tpriority: 2000,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new GiteaSaver(wiki);\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/savers/github.js": {
+ "title": "$:/core/modules/savers/github.js",
+ "text": "/*\\\ntitle: $:/core/modules/savers/github.js\ntype: application/javascript\nmodule-type: saver\n\nSaves wiki by pushing a commit to the GitHub v3 REST API\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar GitHubSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nGitHubSaver.prototype.save = function(text,method,callback) {\n\tvar self = this,\n\t\tusername = this.wiki.getTiddlerText(\"$:/GitHub/Username\"),\n\t\tpassword = $tw.utils.getPassword(\"github\"),\n\t\trepo = this.wiki.getTiddlerText(\"$:/GitHub/Repo\"),\n\t\tpath = this.wiki.getTiddlerText(\"$:/GitHub/Path\",\"\"),\n\t\tfilename = this.wiki.getTiddlerText(\"$:/GitHub/Filename\"),\n\t\tbranch = this.wiki.getTiddlerText(\"$:/GitHub/Branch\") || \"main\",\n\t\tendpoint = this.wiki.getTiddlerText(\"$:/GitHub/ServerURL\") || \"https://api.github.com\",\n\t\theaders = {\n\t\t\t\"Accept\": \"application/vnd.github.v3+json\",\n\t\t\t\"Content-Type\": \"application/json;charset=UTF-8\",\n\t\t\t\"Authorization\": \"Basic \" + window.btoa(username + \":\" + password),\n\t\t\t\"If-None-Match\": \"\"\n\t\t};\n\t// Bail if we don't have everything we need\n\tif(!username || !password || !repo || !filename) {\n\t\treturn false;\n\t}\n\t// Make sure the path start and ends with a slash\n\tif(path.substring(0,1) !== \"/\") {\n\t\tpath = \"/\" + path;\n\t}\n\tif(path.substring(path.length - 1) !== \"/\") {\n\t\tpath = path + \"/\";\n\t}\n\t// Compose the base URI\n\tvar uri = endpoint + \"/repos/\" + repo + \"/contents\" + path;\n\t// Perform a get request to get the details (inc shas) of files in the same path as our file\n\t$tw.utils.httpRequest({\n\t\turl: uri,\n\t\ttype: \"GET\",\n\t\theaders: headers,\n\t\tdata: {\n\t\t\tref: branch\n\t\t},\n\t\tcallback: function(err,getResponseDataJson,xhr) {\n\t\t\tvar getResponseData,sha = \"\";\n\t\t\tif(err && xhr.status !== 404) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tif(xhr.status !== 404) {\n\t\t\t\tgetResponseData = JSON.parse(getResponseDataJson);\n\t\t\t\t$tw.utils.each(getResponseData,function(details) {\n\t\t\t\t\tif(details.name === filename) {\n\t\t\t\t\t\tsha = details.sha;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tvar data = {\n\t\t\t\tmessage: $tw.language.getRawString(\"ControlPanel/Saving/GitService/CommitMessage\"),\n\t\t\t\tcontent: $tw.utils.base64Encode(text),\n\t\t\t\tbranch: branch,\n\t\t\t\tsha: sha\n\t\t\t};\n\t\t\t// Perform a PUT request to save the file\n\t\t\t$tw.utils.httpRequest({\n\t\t\t\turl: uri + filename,\n\t\t\t\ttype: \"PUT\",\n\t\t\t\theaders: headers,\n\t\t\t\tdata: JSON.stringify(data),\n\t\t\t\tcallback: function(err,putResponseDataJson,xhr) {\n\t\t\t\t\tif(err) {\n\t\t\t\t\t\treturn callback(err);\n\t\t\t\t\t}\n\t\t\t\t\tvar putResponseData = JSON.parse(putResponseDataJson);\n\t\t\t\t\tcallback(null);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nGitHubSaver.prototype.info = {\n\tname: \"github\",\n\tpriority: 2000,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new GitHubSaver(wiki);\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/savers/gitlab.js": {
+ "title": "$:/core/modules/savers/gitlab.js",
+ "text": "/*\\\ntitle: $:/core/modules/savers/gitlab.js\ntype: application/javascript\nmodule-type: saver\n\nSaves wiki by pushing a commit to the GitLab REST API\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: true */\n\"use strict\";\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar GitLabSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nGitLabSaver.prototype.save = function(text,method,callback) {\n\t/* See https://docs.gitlab.com/ee/api/repository_files.html */\n\tvar self = this,\n\t\tusername = this.wiki.getTiddlerText(\"$:/GitLab/Username\"),\n\t\tpassword = $tw.utils.getPassword(\"gitlab\"),\n\t\trepo = this.wiki.getTiddlerText(\"$:/GitLab/Repo\"),\n\t\tpath = this.wiki.getTiddlerText(\"$:/GitLab/Path\",\"\"),\n\t\tfilename = this.wiki.getTiddlerText(\"$:/GitLab/Filename\"),\n\t\tbranch = this.wiki.getTiddlerText(\"$:/GitLab/Branch\") || \"master\",\n\t\tendpoint = this.wiki.getTiddlerText(\"$:/GitLab/ServerURL\") || \"https://gitlab.com/api/v4\",\n\t\theaders = {\n\t\t\t\"Content-Type\": \"application/json;charset=UTF-8\",\n\t\t\t\"Private-Token\": password\n\t\t};\n\t// Bail if we don't have everything we need\n\tif(!username || !password || !repo || !filename) {\n\t\treturn false;\n\t}\n\t// Make sure the path start and ends with a slash\n\tif(path.substring(0,1) !== \"/\") {\n\t\tpath = \"/\" + path;\n\t}\n\tif(path.substring(path.length - 1) !== \"/\") {\n\t\tpath = path + \"/\";\n\t}\n\t// Compose the base URI\n\tvar uri = endpoint + \"/projects/\" + encodeURIComponent(repo) + \"/repository/\";\n\t// Perform a get request to get the details (inc shas) of files in the same path as our file\n\t$tw.utils.httpRequest({\n\t\turl: uri + \"tree/?path=\" + encodeURIComponent(path.replace(/^\\/+|\\/$/g, '')) + \"&branch=\" + encodeURIComponent(branch.replace(/^\\/+|\\/$/g, '')),\n\t\ttype: \"GET\",\n\t\theaders: headers,\n\t\tcallback: function(err,getResponseDataJson,xhr) {\n\t\t\tvar getResponseData,sha = \"\";\n\t\t\tif(err && xhr.status !== 404) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tvar requestType = \"POST\";\n\t\t\tif(xhr.status !== 404) {\n\t\t\t\tgetResponseData = JSON.parse(getResponseDataJson);\n\t\t\t\t$tw.utils.each(getResponseData,function(details) {\n\t\t\t\t\tif(details.name === filename) {\n\t\t\t\t\t\trequestType = \"PUT\";\n\t\t\t\t\t\tsha = details.sha;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tvar data = {\n\t\t\t\tcommit_message: $tw.language.getRawString(\"ControlPanel/Saving/GitService/CommitMessage\"),\n\t\t\t\tcontent: text,\n\t\t\t\tbranch: branch,\n\t\t\t\tsha: sha\n\t\t\t};\n\t\t\t// Perform a request to save the file\n\t\t\t$tw.utils.httpRequest({\n\t\t\t\turl: uri + \"files/\" + encodeURIComponent(path.replace(/^\\/+/, '') + filename),\n\t\t\t\ttype: requestType,\n\t\t\t\theaders: headers,\n\t\t\t\tdata: JSON.stringify(data),\n\t\t\t\tcallback: function(err,putResponseDataJson,xhr) {\n\t\t\t\t\tif(err) {\n\t\t\t\t\t\treturn callback(err);\n\t\t\t\t\t}\n\t\t\t\t\tvar putResponseData = JSON.parse(putResponseDataJson);\n\t\t\t\t\tcallback(null);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nGitLabSaver.prototype.info = {\n\tname: \"gitlab\",\n\tpriority: 2000,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new GitLabSaver(wiki);\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/savers/hyperdrive.js": {
+ "title": "$:/core/modules/savers/hyperdrive.js",
+ "text": "/*\\\ntitle: $:/core/modules/savers/hyperdrive.js\ntype: application/javascript\nmodule-type: saver\n\nSaves files using the Hyperdrive Protocol (https://hypercore-protocol.org/#hyperdrive) Beaker browser beta-1.0 and later (https://beakerbrowser.com)\nCompatible with beaker >= V1.0.0\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nSet up the saver\n*/\nvar HyperdriveSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nHyperdriveSaver.prototype.save = function(text,method,callback) {\n\tvar dat = beaker.hyperdrive.drive(\"\" + window.location),\n\t\tpathname = (\"\" + window.location.pathname).split(\"#\")[0];\n\tdat.stat(pathname).then(function(value) {\n\t\tif(value.isDirectory()) {\n\t\t\tpathname = pathname + \"/index.html\";\n\t\t}\n\t\tdat.writeFile(pathname,text,\"utf8\").then(function(value) {\n\t\t\tcallback(null);\n\t\t},function(reason) {\n\t\t\tcallback(\"Hyperdrive Saver Write Error: \" + reason);\n\t\t});\n\t},function(reason) {\n\t\tcallback(\"Hyperdrive Saver Stat Error: \" + reason);\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nHyperdriveSaver.prototype.info = {\n\tname: \"beaker-1.x\",\n\tpriority: 3000,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!window.beaker && !!beaker.hyperdrive && location.protocol===\"hyper:\";\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new HyperdriveSaver(wiki);\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/savers/manualdownload.js": {
+ "title": "$:/core/modules/savers/manualdownload.js",
+ "text": "/*\\\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\"use strict\";\n\n// Title of the tiddler containing the download message\nvar downloadInstructionsTitle = \"$:/language/Modals/Download\";\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: \"data:text/html,\" + 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: \"manualdownload\",\n\tpriority: 0,\n\tcapabilities: [\"save\", \"download\"]\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",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/savers/msdownload.js": {
+ "title": "$:/core/modules/savers/msdownload.js",
+ "text": "/*\\\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\"use strict\";\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 = \"tiddlywiki.html\",\n\t\tp = document.location.pathname.lastIndexOf(\"/\");\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: \"text/html\"});\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: \"msdownload\",\n\tpriority: 110,\n\tcapabilities: [\"save\", \"download\"]\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",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/savers/put.js": {
+ "title": "$:/core/modules/savers/put.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nRetrieve ETag if available\n*/\nvar retrieveETag = function(self) {\n\tvar headers = {\n\t\tAccept: \"*/*;charset=UTF-8\"\n\t};\n\t$tw.utils.httpRequest({\n\t\turl: self.uri(),\n\t\ttype: \"HEAD\",\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(\"ETag\");\n\t\t\tif(!etag) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tself.etag = etag.replace(/^W\\//,\"\");\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: \"OPTIONS\",\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 && !!xhr.getResponseHeader(\"dav\");\n\t\t\t}\n\t\t}\n\t});\n\tretrieveETag(this);\n};\n\nPutSaver.prototype.uri = function() {\n\treturn document.location.toString().split(\"#\")[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\"Content-Type\": \"text/html;charset=UTF-8\"\n\t};\n\tif(this.etag) {\n\t\theaders[\"If-Match\"] = this.etag;\n\t}\n\t$tw.utils.httpRequest({\n\t\turl: this.uri(),\n\t\ttype: \"PUT\",\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: \"XMLHttpRequest error code: 412\"\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(\"Error/EditConflict\");\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(\"ETag\");\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: \"put\",\n\tpriority: 2000,\n\tcapabilities: [\"save\",\"autosave\"]\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",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/savers/tiddlyfox.js": {
+ "title": "$:/core/modules/savers/tiddlyfox.js",
+ "text": "/*\\\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\"use strict\";\n\nvar TiddlyFoxSaver = function(wiki) {\n};\n\nTiddlyFoxSaver.prototype.save = function(text,method,callback) {\n\tvar messageBox = document.getElementById(\"tiddlyfox-message-box\");\n\tif(messageBox) {\n\t\t// Get the pathname of this document\n\t\tvar pathname = document.location.toString().split(\"#\")[0];\n\t\t// Replace file://localhost/ with file:///\n\t\tif(pathname.indexOf(\"file://localhost/\") === 0) {\n\t\t\tpathname = \"file://\" + pathname.substr(16);\n\t\t}\n\t\t// Windows path file:///x:/blah/blah --> 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,\"\\\\\");\n\t\t// Firefox Windows network path file://///server/share/blah/blah --> //server/share/blah/blah\n\t\t} else if(pathname.indexOf(\"file://///\") === 0) {\n\t\t\tpathname = \"\\\\\\\\\" + unescape(pathname.substr(10)).replace(/\\//g,\"\\\\\");\n\t\t// Mac/Unix local path file:///path/path --> /path/path\n\t\t} else if(pathname.indexOf(\"file:///\") === 0) {\n\t\t\tpathname = unescape(pathname.substr(7));\n\t\t// Mac/Unix local path file:/path/path --> /path/path\n\t\t} else if(pathname.indexOf(\"file:/\") === 0) {\n\t\t\tpathname = unescape(pathname.substr(5));\n\t\t// Otherwise Windows networth path file://server/share/path/path --> \\\\server\\share\\path\\path\n\t\t} else {\n\t\t\tpathname = \"\\\\\\\\\" + unescape(pathname.substr(7)).replace(new RegExp(\"/\",\"g\"),\"\\\\\");\n\t\t}\n\t\t// Create the message element and put it in the message box\n\t\tvar message = document.createElement(\"div\");\n\t\tmessage.setAttribute(\"data-tiddlyfox-path\",decodeURIComponent(pathname));\n\t\tmessage.setAttribute(\"data-tiddlyfox-content\",text);\n\t\tmessageBox.appendChild(message);\n\t\t// Add an event handler for when the file has been saved\n\t\tmessage.addEventListener(\"tiddlyfox-have-saved-file\",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(\"Events\");\n\t\tevent.initEvent(\"tiddlyfox-save-file\",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: \"tiddlyfox\",\n\tpriority: 1500,\n\tcapabilities: [\"save\", \"autosave\"]\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",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/savers/tiddlyie.js": {
+ "title": "$:/core/modules/savers/tiddlyie.js",
+ "text": "/*\\\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\"use strict\";\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) != \"undefined\") {\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,\"\\\\\");\n\t\t} else if(document.hostname !== \"\" && /^\\/[^\\/]+\\/[^\\/]+/i.test(pathname)) {\t// test for \\\\server\\share\\blah... - ^/[^/]+/[^/]+\n\t\t\t// Convert slashes to backslashes\n\t\t\tpathname = pathname.replace(/\\//g,\"\\\\\");\n\t\t\t// reconstruct UNC path\n\t\t\tpathname = \"\\\\\\\\\" + 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: \"tiddlyiesaver\",\n\tpriority: 1500,\n\tcapabilities: [\"save\"]\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 === \"file:\");\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new TiddlyIESaver(wiki);\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/savers/twedit.js": {
+ "title": "$:/core/modules/savers/twedit.js",
+ "text": "/*\\\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\"use strict\";\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 !== \"object\") {\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(\"?\");\n\tif(p !== -1) {\n\t\tpathname = pathname.substr(0,p);\n\t}\n\tp = pathname.indexOf(\"#\");\n\tif(p !== -1) {\n\t\tpathname = pathname.substr(0,p);\n\t}\n\t// Remove the leading \"/Documents\" from path\n\tvar prefix = \"/Documents\";\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(\"Error/SavingToTWEdit\") + \": \" + 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: \"twedit\",\n\tpriority: 1600,\n\tcapabilities: [\"save\", \"autosave\"]\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: \"TiddlyWiki\"};\n}\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/savers/upload.js": {
+ "title": "$:/core/modules/savers/upload.js",
+ "text": "/*\\\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\"use strict\";\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(\"$:/UploadBackupDir\") || \".\",\n\t\tusername = this.wiki.getTextReference(\"$:/UploadName\"),\n\t\tpassword = $tw.utils.getPassword(\"upload\"),\n\t\tuploadDir = this.wiki.getTextReference(\"$:/UploadDir\") || \".\",\n\t\tuploadFilename = this.wiki.getTextReference(\"$:/UploadFilename\") || \"index.html\",\n\t\turl = this.wiki.getTextReference(\"$:/UploadURL\");\n\t// Bail out if we don't have the bits we need\n\tif(!username || username.toString().trim() === \"\" || !password || password.toString().trim() === \"\") {\n\t\treturn false;\n\t}\n\t// Construct the url if not provided\n\tif(!url) {\n\t\turl = \"http://\" + username + \".tiddlyspot.com/store.cgi\";\n\t}\n\t// Assemble the header\n\tvar boundary = \"---------------------------\" + \"AaB03x\";\t\n\tvar uploadFormName = \"UploadPlugin\";\n\tvar head = [];\n\thead.push(\"--\" + boundary + \"\\r\\nContent-disposition: form-data; name=\\\"UploadPlugin\\\"\\r\\n\");\n\thead.push(\"backupDir=\" + backupDir + \";user=\" + username + \";password=\" + password + \";uploaddir=\" + uploadDir + \";;\"); \n\thead.push(\"\\r\\n\" + \"--\" + boundary);\n\thead.push(\"Content-disposition: form-data; name=\\\"userfile\\\"; filename=\\\"\" + uploadFilename + \"\\\"\");\n\thead.push(\"Content-Type: text/html;charset=UTF-8\");\n\thead.push(\"Content-Length: \" + text.length + \"\\r\\n\");\n\thead.push(\"\");\n\t// Assemble the tail and the data itself\n\tvar tail = \"\\r\\n--\" + boundary + \"--\\r\\n\",\n\t\tdata = head.join(\"\\r\\n\") + text + tail;\n\t// Do the HTTP post\n\tvar http = new XMLHttpRequest();\n\thttp.open(\"POST\",url,true,username,password);\n\thttp.setRequestHeader(\"Content-Type\",\"multipart/form-data; charset=UTF-8; boundary=\" + boundary);\n\thttp.onreadystatechange = function() {\n\t\tif(http.readyState == 4 && http.status == 200) {\n\t\t\tif(http.responseText.substr(0,4) === \"0 - \") {\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(\"Error/Caption\") + \":\" + ex);\n\t}\n\t$tw.notifier.display(\"$:/language/Notifications/Save/Starting\");\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nUploadSaver.prototype.info = {\n\tname: \"upload\",\n\tpriority: 2000,\n\tcapabilities: [\"save\", \"autosave\"]\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",
+ "type": "application/javascript",
+ "module-type": "saver"
+ },
+ "$:/core/modules/server/authenticators/basic.js": {
+ "title": "$:/core/modules/server/authenticators/basic.js",
+ "text": "/*\\\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\"use strict\";\n\nif($tw.node) {\n\tvar util = require(\"util\"),\n\t\tfs = require(\"fs\"),\n\t\turl = require(\"url\"),\n\t\tpath = require(\"path\");\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(\"credentials\");\n\tif(this.credentialsFilepath) {\n\t\tvar resolveCredentialsFilepath = path.resolve(this.server.boot.wikiPath,this.credentialsFilepath);\n\t\tif(fs.existsSync(resolveCredentialsFilepath) && !fs.statSync(resolveCredentialsFilepath).isDirectory()) {\n\t\t\tvar credentialsText = fs.readFileSync(resolveCredentialsFilepath,\"utf8\"),\n\t\t\t\tcredentialsData = $tw.utils.parseCsvStringWithHeader(credentialsText);\n\t\t\tif(typeof credentialsData === \"string\") {\n\t\t\t\treturn \"Error: \" + credentialsData + \" reading credentials from '\" + resolveCredentialsFilepath + \"'\";\n\t\t\t} else {\n\t\t\t\tthis.credentialsData = credentialsData;\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"Error: Unable to load user credentials from '\" + resolveCredentialsFilepath + \"'\";\n\t\t}\n\t}\n\t// Add the hardcoded username and password if specified\n\tif(this.server.get(\"username\") && this.server.get(\"password\")) {\n\t\tthis.credentialsData = this.credentialsData || [];\n\t\tthis.credentialsData.push({\n\t\t\tusername: this.server.get(\"username\"),\n\t\t\tpassword: this.server.get(\"password\")\n\t\t});\n\t}\n\treturn this.credentialsData.length > 0;\n};\n\n/*\nReturns true if the request is authenticated and assigns the \"authenticatedUsername\" 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 || \"\";\n\tif(!header && 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() || \"\",\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 && 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,\"Authentication required\",{\n\t\t\t\"WWW-Authenticate\": 'Basic realm=\"Please provide your username and password to login to ' + state.server.servername + '\"'\n\t\t});\n\t\tresponse.end();\n\t\treturn false;\n\t}\n};\n\nexports.AuthenticatorClass = BasicAuthenticator;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "authenticator"
+ },
+ "$:/core/modules/server/authenticators/header.js": {
+ "title": "$:/core/modules/server/authenticators/header.js",
+ "text": "/*\\\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\"use strict\";\n\nfunction HeaderAuthenticator(server) {\n\tthis.server = server;\n\tthis.header = server.get(\"authenticated-user-header\") ? server.get(\"authenticated-user-header\").toLowerCase() : undefined;\n}\n\n/*\nReturns true if the authenticator is active, false if it is inactive, or a string if there is an error\n*/\nHeaderAuthenticator.prototype.init = function() {\n\treturn !!this.header;\n};\n\n/*\nReturns true if the request is authenticated and assigns the \"authenticatedUsername\" 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 && !state.allowAnon) {\n\t\tresponse.writeHead(401,\"Authorization header required to login to '\" + state.server.servername + \"'\");\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",
+ "type": "application/javascript",
+ "module-type": "authenticator"
+ },
+ "$:/core/modules/server/routes/delete-tiddler.js": {
+ "title": "$:/core/modules/server/routes/delete-tiddler.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.method = \"DELETE\";\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, \"OK\", {\n\t\t\"Content-Type\": \"text/plain\"\n\t});\n\tresponse.end();\n};\n\n}());\n",
+ "type": "application/javascript",
+ "module-type": "route"
+ },
+ "$:/core/modules/server/routes/get-favicon.js": {
+ "title": "$:/core/modules/server/routes/get-favicon.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.method = \"GET\";\n\nexports.path = /^\\/favicon.ico$/;\n\nexports.handler = function(request,response,state) {\n\tresponse.writeHead(200, {\"Content-Type\": \"image/x-icon\"});\n\tvar buffer = state.wiki.getTiddlerText(\"$:/favicon.ico\",\"\");\n\tresponse.end(buffer,\"base64\");\n};\n\n}());\n",
+ "type": "application/javascript",
+ "module-type": "route"
+ },
+ "$:/core/modules/server/routes/get-file.js": {
+ "title": "$:/core/modules/server/routes/get-file.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.method = \"GET\";\n\nexports.path = /^\\/files\\/(.+)$/;\n\nexports.handler = function(request,response,state) {\n\tvar path = require(\"path\"),\n\t\tfs = require(\"fs\"),\n\t\tutil = require(\"util\"),\n\t\tsuppliedFilename = decodeURIComponent(state.params[0]),\n\t\tfilename = path.resolve(state.boot.wikiPath,\"files\",suppliedFilename),\n\t\textension = path.extname(filename);\n\tfs.readFile(filename,function(err,content) {\n\t\tvar status,content,type = \"text/plain\";\n\t\tif(err) {\n\t\t\tconsole.log(\"Error accessing file \" + filename + \": \" + err.toString());\n\t\t\tstatus = 404;\n\t\t\tcontent = \"File '\" + suppliedFilename + \"' not found\";\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 : \"application/octet-stream\");\n\t\t}\n\t\tresponse.writeHead(status,{\n\t\t\t\"Content-Type\": type\n\t\t});\n\t\tresponse.end(content);\n\t});\n};\n\n}());\n",
+ "type": "application/javascript",
+ "module-type": "route"
+ },
+ "$:/core/modules/server/routes/get-index.js": {
+ "title": "$:/core/modules/server/routes/get-index.js",
+ "text": "/*\\\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\"use strict\";\n\nvar zlib = require(\"zlib\");\n\nexports.method = \"GET\";\n\nexports.path = /^\\/$/;\n\nexports.handler = function(request,response,state) {\n\tvar acceptEncoding = request.headers[\"accept-encoding\"];\n\tif(!acceptEncoding) {\n\t\tacceptEncoding = \"\";\n\t}\n\tvar text = state.wiki.renderTiddler(state.server.get(\"root-render-type\"),state.server.get(\"root-tiddler\")),\n\t\tresponseHeaders = {\n\t\t\"Content-Type\": state.server.get(\"root-serve-type\")\n\t};\n\t/*\n\tIf the gzip=yes flag for `listen` is set, check if the user agent permits\n\tcompression. If so, compress our response. Note that we use the synchronous\n\tfunctions from zlib to stay in the imperative style. The current `Server`\n\tdoesn't depend on this, and we may just as well use the async versions.\n\t*/\n\tif(state.server.enableGzip) {\n\t\tif (/\\bdeflate\\b/.test(acceptEncoding)) {\n\t\t\tresponseHeaders[\"Content-Encoding\"] = \"deflate\";\n\t\t\ttext = zlib.deflateSync(text);\n\t\t} else if (/\\bgzip\\b/.test(acceptEncoding)) {\n\t\t\tresponseHeaders[\"Content-Encoding\"] = \"gzip\";\n\t\t\ttext = zlib.gzipSync(text);\n\t\t}\n\t}\n\tresponse.writeHead(200,responseHeaders);\n\tresponse.end(text);\n};\n\n}());\n",
+ "type": "application/javascript",
+ "module-type": "route"
+ },
+ "$:/core/modules/server/routes/get-login-basic.js": {
+ "title": "$:/core/modules/server/routes/get-login-basic.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.method = \"GET\";\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\"WWW-Authenticate\": 'Basic realm=\"Please provide your username and password to login to ' + state.server.servername + '\"'\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: \"/\"\n\t\t});\n\t\tresponse.end();\n\t}\n};\n\n}());\n",
+ "type": "application/javascript",
+ "module-type": "route"
+ },
+ "$:/core/modules/server/routes/get-status.js": {
+ "title": "$:/core/modules/server/routes/get-status.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.method = \"GET\";\n\nexports.path = /^\\/status$/;\n\nexports.handler = function(request,response,state) {\n\tresponse.writeHead(200, {\"Content-Type\": \"application/json\"});\n\tvar text = JSON.stringify({\n\t\tusername: state.authenticatedUsername || state.server.get(\"anon-username\") || \"\",\n\t\tanonymous: !state.authenticatedUsername,\n\t\tread_only: !state.server.isAuthorized(\"writers\",state.authenticatedUsername),\n\t\tspace: {\n\t\t\trecipe: \"default\"\n\t\t},\n\t\ttiddlywiki_version: $tw.version\n\t});\n\tresponse.end(text,\"utf8\");\n};\n\n}());\n",
+ "type": "application/javascript",
+ "module-type": "route"
+ },
+ "$:/core/modules/server/routes/get-tiddler-html.js": {
+ "title": "$:/core/modules/server/routes/get-tiddler-html.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.method = \"GET\";\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(\"_render_type\"),\n\t\t\trenderTemplate = tiddler.getFieldString(\"_render_template\");\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(\"system-tiddler-render-type\");\n\t\t\trenderTemplate = renderTemplate || state.server.get(\"system-tiddler-render-template\");\n\t\t} else {\n\t\t\trenderType = renderType || state.server.get(\"tiddler-render-type\");\n\t\t\trenderTemplate = renderTemplate || state.server.get(\"tiddler-render-template\");\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,\"utf8\");\n\t} else {\n\t\tresponse.writeHead(404);\n\t\tresponse.end();\n\t}\n};\n\n}());\n",
+ "type": "application/javascript",
+ "module-type": "route"
+ },
+ "$:/core/modules/server/routes/get-tiddler.js": {
+ "title": "$:/core/modules/server/routes/get-tiddler.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.method = \"GET\";\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\"bag\", \"created\", \"creator\", \"modified\", \"modifier\", \"permissions\", \"recipe\", \"revision\", \"tags\", \"text\", \"title\", \"type\", \"uri\"\n\t\t];\n\tif(tiddler) {\n\t\t$tw.utils.each(tiddler.fields,function(field,name) {\n\t\t\tvar value = tiddler.getFieldString(name);\n\t\t\tif(knownFields.indexOf(name) !== -1) {\n\t\t\t\ttiddlerFields[name] = value;\n\t\t\t} else {\n\t\t\t\ttiddlerFields.fields = tiddlerFields.fields || {};\n\t\t\t\ttiddlerFields.fields[name] = value;\n\t\t\t}\n\t\t});\n\t\ttiddlerFields.revision = state.wiki.getChangeCount(title);\n\t\ttiddlerFields.bag = \"default\";\n\t\ttiddlerFields.type = tiddlerFields.type || \"text/vnd.tiddlywiki\";\n\t\tresponse.writeHead(200, {\"Content-Type\": \"application/json\"});\n\t\tresponse.end(JSON.stringify(tiddlerFields),\"utf8\");\n\t} else {\n\t\tresponse.writeHead(404);\n\t\tresponse.end();\n\t}\n};\n\n}());\n",
+ "type": "application/javascript",
+ "module-type": "route"
+ },
+ "$:/core/modules/server/routes/get-tiddlers-json.js": {
+ "title": "$:/core/modules/server/routes/get-tiddlers-json.js",
+ "text": "/*\\\ntitle: $:/core/modules/server/routes/get-tiddlers-json.js\ntype: application/javascript\nmodule-type: route\n\nGET /recipes/default/tiddlers.json?filter=<filter>\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar DEFAULT_FILTER = \"[all[tiddlers]!is[system]sort[title]]\";\n\nexports.method = \"GET\";\n\nexports.path = /^\\/recipes\\/default\\/tiddlers.json$/;\n\nexports.handler = function(request,response,state) {\n\tvar filter = state.queryParameters.filter || DEFAULT_FILTER;\n\tif(state.wiki.getTiddlerText(\"$:/config/Server/AllowAllExternalFilters\") !== \"yes\") {\n\t\tif(state.wiki.getTiddlerText(\"$:/config/Server/ExternalFilters/\" + filter) !== \"yes\") {\n\t\t\tconsole.log(\"Blocked attempt to GET /recipes/default/tiddlers.json with filter: \" + filter);\n\t\t\tresponse.writeHead(403);\n\t\t\tresponse.end();\n\t\t\treturn;\n\t\t}\n\t}\n\tif(state.wiki.getTiddlerText(\"$:/config/SyncSystemTiddlersFromServer\") === \"no\") {\n\t\tfilter += \"+[!is[system]]\";\n\t}\n\tvar excludeFields = (state.queryParameters.exclude || \"text\").split(\",\"),\n\t\ttitles = state.wiki.filterTiddlers(filter);\n\tresponse.writeHead(200, {\"Content-Type\": \"application/json\"});\n\tvar tiddlers = [];\n\t$tw.utils.each(titles,function(title) {\n\t\tvar tiddler = state.wiki.getTiddler(title);\n\t\tif(tiddler) {\n\t\t\tvar tiddlerFields = tiddler.getFieldStrings({exclude: excludeFields});\n\t\t\ttiddlerFields.revision = state.wiki.getChangeCount(title);\n\t\t\ttiddlerFields.type = tiddlerFields.type || \"text/vnd.tiddlywiki\";\n\t\t\ttiddlers.push(tiddlerFields);\n\t\t}\n\t});\n\tvar text = JSON.stringify(tiddlers);\n\tresponse.end(text,\"utf8\");\n};\n\n}());\n",
+ "type": "application/javascript",
+ "module-type": "route"
+ },
+ "$:/core/modules/server/routes/put-tiddler.js": {
+ "title": "$:/core/modules/server/routes/put-tiddler.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.method = \"PUT\";\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, \"OK\",{\n\t\tEtag: \"\\\"default/\" + encodeURIComponent(title) + \"/\" + changeCount + \":\\\"\",\n\t\t\"Content-Type\": \"text/plain\"\n\t});\n\tresponse.end();\n};\n\n}());\n",
+ "type": "application/javascript",
+ "module-type": "route"
+ },
+ "$:/core/modules/server/server.js": {
+ "title": "$:/core/modules/server/server.js",
+ "text": "/*\\\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\"use strict\";\n\nif($tw.node) {\n\tvar util = require(\"util\"),\n\t\tfs = require(\"fs\"),\n\t\turl = require(\"url\"),\n\t\tpath = require(\"path\"),\n\t\tquerystring = require(\"querystring\");\n}\n\n/*\nA simple HTTP server with regexp-based routes\noptions: variables - optional hashmap of variables to set (a misnomer - they are really constant parameters)\n\t\t routes - optional array of routes to use\n\t\t wiki - reference to wiki object\n*/\nfunction Server(options) {\n\tvar self = this;\n\tthis.routes = options.routes || [];\n\tthis.authenticators = options.authenticators || [];\n\tthis.wiki = options.wiki;\n\tthis.boot = options.boot || $tw.boot;\n\tthis.servername = $tw.utils.transliterateToSafeASCII(this.wiki.getTiddlerText(\"$:/SiteTitle\") || \"TiddlyWiki5\");\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(\"csrf-disable\") === \"yes\";\n\t// Initialize Gzip compression\n\tthis.enableGzip = this.get(\"gzip\") === \"yes\";\n\t// Initialise authorization\n\tvar authorizedUserName = (this.get(\"username\") && this.get(\"password\")) ? this.get(\"username\") : \"(anon)\";\n\tthis.authorizationPrincipals = {\n\t\treaders: (this.get(\"readers\") || authorizedUserName).split(\",\").map($tw.utils.trim),\n\t\twriters: (this.get(\"writers\") || authorizedUserName).split(\",\").map($tw.utils.trim)\n\t}\n\t// Load and initialise authenticators\n\t$tw.modules.forEachModuleOfType(\"authenticator\", function(title,authenticatorDefinition) {\n\t\t// console.log(\"Loading server route \" + title);\n\t\tself.addAuthenticator(authenticatorDefinition.AuthenticatorClass);\n\t});\n\t// Load route handlers\n\t$tw.modules.forEachModuleOfType(\"route\", function(title,routeDefinition) {\n\t\t// console.log(\"Loading server route \" + title);\n\t\tself.addRoute(routeDefinition);\n\t});\n\t// Initialise the http vs https\n\tthis.listenOptions = null;\n\tthis.protocol = \"http\";\n\tvar tlsKeyFilepath = this.get(\"tls-key\"),\n\t\ttlsCertFilepath = this.get(\"tls-cert\");\n\tif(tlsCertFilepath && tlsKeyFilepath) {\n\t\tthis.listenOptions = {\n\t\t\tkey: fs.readFileSync(path.resolve(this.boot.wikiPath,tlsKeyFilepath),\"utf8\"),\n\t\t\tcert: fs.readFileSync(path.resolve(this.boot.wikiPath,tlsCertFilepath),\"utf8\")\n\t\t};\n\t\tthis.protocol = \"https\";\n\t}\n\tthis.transport = require(this.protocol);\n}\n\nServer.prototype.defaultVariables = {\n\tport: \"8080\",\n\thost: \"127.0.0.1\",\n\t\"root-tiddler\": \"$:/core/save/all\",\n\t\"root-render-type\": \"text/plain\",\n\t\"root-serve-type\": \"text/html\",\n\t\"tiddler-render-type\": \"text/html\",\n\t\"tiddler-render-template\": \"$:/core/templates/server/static.tiddler.html\",\n\t\"system-tiddler-render-type\": \"text/plain\",\n\t\"system-tiddler-render-template\": \"$:/core/templates/wikified-tiddler\",\n\t\"debug-level\": \"none\",\n\t\"gzip\": \"no\"\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 === \"string\") {\n\t\t$tw.utils.error(\"Error: \" + result);\n\t} else if(result) {\n\t\t// Only use the authenticator if it initialised successfully\n\t\tthis.authenticators.push(authenticator);\n\t}\n};\n\nServer.prototype.findMatchingRoute = function(request,state) {\n\tfor(var t=0; t<this.routes.length; t++) {\n\t\tvar potentialRoute = this.routes[t],\n\t\t\tpathRegExp = potentialRoute.path,\n\t\t\tpathname = state.urlInfo.pathname,\n\t\t\tmatch;\n\t\tif(state.pathPrefix) {\n\t\t\tif(pathname.substr(0,state.pathPrefix.length) === state.pathPrefix) {\n\t\t\t\tpathname = pathname.substr(state.pathPrefix.length) || \"/\";\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 && request.method === potentialRoute.method) {\n\t\t\tstate.params = [];\n\t\t\tfor(var p=1; p<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\"GET\": \"readers\",\n\t\"OPTIONS\": \"readers\",\n\t\"HEAD\": \"readers\",\n\t\"PUT\": \"writers\",\n\t\"POST\": \"writers\",\n\t\"DELETE\": \"writers\"\n};\n\n/*\nCheck whether a given user is authorized for the specified authorizationType (\"readers\" or \"writers\"). 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(\"(anon)\") !== -1 || (username && (principals.indexOf(\"(authenticated)\") !== -1 || principals.indexOf(username) !== -1));\n}\n\nServer.prototype.requestHandler = function(request,response,options) {\n\toptions = options || {};\n\t// Compose the state object\n\tvar self = this;\n\tvar state = {};\n\tstate.wiki = options.wiki || self.wiki;\n\tstate.boot = options.boot || self.boot;\n\tstate.server = self;\n\tstate.urlInfo = url.parse(request.url);\n\tstate.queryParameters = querystring.parse(state.urlInfo.query);\n\tstate.pathPrefix = options.pathPrefix || this.get(\"path-prefix\") || \"\";\n\t// Get the principals authorized to access this resource\n\tvar authorizationType = this.methodMappings[request.method] || \"readers\";\n\t// Check for the CSRF header if this is a write\n\tif(!this.csrfDisable && authorizationType === \"writers\" && request.headers[\"x-requested-with\"] !== \"TiddlyWiki\") {\n\t\tresponse.writeHead(403,\"'X-Requested-With' header required to login to '\" + this.servername + \"'\");\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 > 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,\"'\" + state.authenticatedUsername + \"' is not authorized to access '\" + this.servername + \"'\");\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(\"debug-level\") !== \"none\") {\n\t\tconsole.log(\"Request path:\",JSON.stringify(state.urlInfo));\n\t\tconsole.log(\"Request headers:\",JSON.stringify(request.headers));\n\t\tconsole.log(\"authenticatedUsername:\",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 === \"stream\" || request.method === \"GET\" || request.method === \"HEAD\") {\n\t\t// Let the route handle the request stream itself\n\t\troute.handler(request,response,state);\n\t} else if(route.bodyFormat === \"string\" || !route.bodyFormat) {\n\t\t// Set the encoding for the incoming request\n\t\trequest.setEncoding(\"utf8\");\n\t\tvar data = \"\";\n\t\trequest.on(\"data\",function(chunk) {\n\t\t\tdata += chunk.toString();\n\t\t});\n\t\trequest.on(\"end\",function() {\n\t\t\tstate.data = data;\n\t\t\troute.handler(request,response,state);\n\t\t});\n\t} else if(route.bodyFormat === \"buffer\") {\n\t\tvar data = [];\n\t\trequest.on(\"data\",function(chunk) {\n\t\t\tdata.push(chunk);\n\t\t});\n\t\trequest.on(\"end\",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,\"Invalid bodyFormat \" + route.bodyFormat + \" in route \" + route.method + \" \" + route.path.source);\n\t\tresponse.end();\n\t}\n};\n\n/*\nListen for requests\nport: optional port number (falls back to value of \"port\" variable)\nhost: optional host address (falls back to value of \"host\" variable)\nprefix: optional prefix (falls back to value of \"path-prefix\" variable)\n*/\nServer.prototype.listen = function(port,host,prefix) {\n\tvar self = this;\n\t// Handle defaults for port and host\n\tport = port || this.get(\"port\");\n\thost = host || this.get(\"host\");\n\tprefix = prefix || this.get(\"path-prefix\") || \"\";\n\t// Check for the port being a string and look it up as an environment variable\n\tif(parseInt(port,10).toString() !== port) {\n\t\tport = process.env[port] || 8080;\n\t}\n\t// Warn if required plugins are missing\n\tif(!this.wiki.getTiddler(\"$:/plugins/tiddlywiki/tiddlyweb\") || !this.wiki.getTiddler(\"$:/plugins/tiddlywiki/filesystem\")) {\n\t\t$tw.utils.warning(\"Warning: Plugins required for client-server operation (\\\"tiddlywiki/filesystem\\\" and \\\"tiddlywiki/tiddlyweb\\\") are missing from tiddlywiki.info file\");\n\t}\n\t// Create the server\n\tvar server;\n\tif(this.listenOptions) {\n\t\tserver = this.transport.createServer(this.listenOptions,this.requestHandler.bind(this));\n\t} else {\n\t\tserver = this.transport.createServer(this.requestHandler.bind(this));\n\t}\n\t// Display the port number after we've started listening (the port number might have been specified as zero, in which case we will get an assigned port)\n\tserver.on(\"listening\",function() {\n\t\tvar address = server.address();\n\t\t$tw.utils.log(\"Serving on \" + self.protocol + \"://\" + address.address + \":\" + address.port + prefix,\"brown/orange\");\n\t\t$tw.utils.log(\"(press ctrl-C to exit)\",\"red\");\n\t});\n\t// Listen\n\treturn server.listen(port,host);\n};\n\nexports.Server = Server;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "library"
+ },
+ "$:/core/modules/browser-messaging.js": {
+ "title": "$:/core/modules/browser-messaging.js",
+ "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"browser-messaging\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\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(\"iframe\");\n\t\tiframeInfo = {\n\t\t\turl: url,\n\t\t\tstatus: \"loading\",\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 = \"none\";\n\t\tiframe.setAttribute(\"library\",\"true\");\n\t\tdocument.body.appendChild(iframe);\n\t\t// Set up onload\n\t\tiframe.onload = function() {\n\t\t\tiframeInfo.status = \"loaded\";\n\t\t\tsaveIFrameInfoTiddler(iframeInfo);\n\t\t\tcallback(null,iframeInfo);\n\t\t};\n\t\tiframe.onerror = function() {\n\t\t\tcallback(\"Cannot load iframe\");\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(\"library\") === \"true\" &&\n\t\t iframe.getAttribute(\"src\") === 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: \"$:/temp/ServerConnection/\" + iframeInfo.url,\n\t\ttext: iframeInfo.status,\n\t\ttags: [\"$:/tags/ServerConnection\"],\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:\"loading/loaded\",domNode:}\n\t};\n\t// Listen for widget messages to control loading the plugin library\n\t$tw.rootWidget.addEventListener(\"tm-load-plugin-library\",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(\"Error/LoadingPluginLibrary\") + \": \" + url);\n\t\t\t\t} else {\n\t\t\t\t\tiframeInfo.domNode.contentWindow.postMessage({\n\t\t\t\t\t\tverb: \"GET\",\n\t\t\t\t\t\turl: \"recipes/library/tiddlers.json\",\n\t\t\t\t\t\tcookies: {\n\t\t\t\t\t\t\ttype: \"save-info\",\n\t\t\t\t\t\t\tinfoTitlePrefix: paramObject.infoTitlePrefix || \"$:/temp/RemoteAssetInfo/\",\n\t\t\t\t\t\t\turl: url\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\t// Listen for widget messages to control unloading the plugin library\n\t$tw.rootWidget.addEventListener(\"tm-unload-plugin-library\",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(\"[[$:/temp/ServerConnection/\" + url + \"]] [prefix[$:/temp/RemoteAssetInfo/\" + url + \"/]]\"),\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(\"tm-load-plugin-from-library\",function(event) {\n\t\tvar paramObject = event.paramObject || {},\n\t\t\turl = paramObject.url,\n\t\t\ttitle = paramObject.title;\n\t\tif(url && title) {\n\t\t\tloadIFrame(url,function(err,iframeInfo) {\n\t\t\t\tif(err) {\n\t\t\t\t\talert($tw.language.getString(\"Error/LoadingPluginLibrary\") + \": \" + url);\n\t\t\t\t} else {\n\t\t\t\t\tiframeInfo.domNode.contentWindow.postMessage({\n\t\t\t\t\t\tverb: \"GET\",\n\t\t\t\t\t\turl: \"recipes/library/tiddlers/\" + encodeURIComponent(title) + \".json\",\n\t\t\t\t\t\tcookies: {\n\t\t\t\t\t\t\ttype: \"save-tiddler\",\n\t\t\t\t\t\t\turl: url\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\t// Listen for window messages from other windows\n\twindow.addEventListener(\"message\",function listener(event){\n\t\t// console.log(\"browser-messaging: \",document.location.toString())\n\t\t// console.log(\"browser-messaging: Received message from\",event.origin);\n\t\t// console.log(\"browser-messaging: Message content\",event.data);\n\t\tswitch(event.data.verb) {\n\t\t\tcase \"GET-RESPONSE\":\n\t\t\t\tif(event.data.status.charAt(0) === \"2\") {\n\t\t\t\t\tif(event.data.cookies) {\n\t\t\t\t\t\tif(event.data.cookies.type === \"save-info\") {\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 + \"/\" + tiddler.title,\n\t\t\t\t\t\t\t\t\t\"original-title\": tiddler.title,\n\t\t\t\t\t\t\t\t\ttext: \"\",\n\t\t\t\t\t\t\t\t\ttype: \"text/vnd.tiddlywiki\",\n\t\t\t\t\t\t\t\t\t\"original-type\": tiddler.type,\n\t\t\t\t\t\t\t\t\t\"plugin-type\": undefined,\n\t\t\t\t\t\t\t\t\t\"original-plugin-type\": tiddler[\"plugin-type\"],\n\t\t\t\t\t\t\t\t\t\"module-type\": undefined,\n\t\t\t\t\t\t\t\t\t\"original-module-type\": tiddler[\"module-type\"],\n\t\t\t\t\t\t\t\t\ttags: [\"$:/tags/RemoteAssetInfo\"],\n\t\t\t\t\t\t\t\t\t\"original-tags\": $tw.utils.stringifyList(tiddler.tags || []),\n\t\t\t\t\t\t\t\t\t\"server-url\": 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 === \"save-tiddler\") {\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",
+ "type": "application/javascript",
+ "module-type": "startup"
+ },
+ "$:/core/modules/startup/commands.js": {
+ "title": "$:/core/modules/startup/commands.js",
+ "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"commands\";\nexports.platforms = [\"node\"];\nexports.after = [\"story\"];\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(\"Error: \" + 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",
+ "type": "application/javascript",
+ "module-type": "startup"
+ },
+ "$:/core/modules/startup/CSSescape.js": {
+ "title": "$:/core/modules/startup/CSSescape.js",
+ "text": "/*\\\ntitle: $:/core/modules/startup/CSSescape.js\ntype: application/javascript\nmodule-type: startup\n\nPolyfill for CSS.escape()\n\n\\*/\n(function(root,factory){\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"css-escape\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\n/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */\n// https://github.com/umdjs/umd/blob/master/returnExports.js\nexports.startup = factory(root);\n}(typeof global != 'undefined' ? global : this, function(root) {\n\n\tif (root.CSS && root.CSS.escape) {\n\t\treturn;\n\t}\n\n\t// https://drafts.csswg.org/cssom/#serialize-an-identifier\n\tvar cssEscape = function(value) {\n\t\tif (arguments.length == 0) {\n\t\t\tthrow new TypeError('`CSS.escape` requires an argument.');\n\t\t}\n\t\tvar string = String(value);\n\t\tvar length = string.length;\n\t\tvar index = -1;\n\t\tvar codeUnit;\n\t\tvar result = '';\n\t\tvar firstCodeUnit = string.charCodeAt(0);\n\t\twhile (++index < length) {\n\t\t\tcodeUnit = string.charCodeAt(index);\n\t\t\t// Note: there’s no need to special-case astral symbols, surrogate\n\t\t\t// pairs, or lone surrogates.\n\n\t\t\t// If the character is NULL (U+0000), then the REPLACEMENT CHARACTER\n\t\t\t// (U+FFFD).\n\t\t\tif (codeUnit == 0x0000) {\n\t\t\t\tresult += '\\uFFFD';\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\t// If the character is in the range [\\1-\\1F] (U+0001 to U+001F) or is\n\t\t\t\t// U+007F, […]\n\t\t\t\t(codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F ||\n\t\t\t\t// If the character is the first character and is in the range [0-9]\n\t\t\t\t// (U+0030 to U+0039), […]\n\t\t\t\t(index == 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) ||\n\t\t\t\t// If the character is the second character and is in the range [0-9]\n\t\t\t\t// (U+0030 to U+0039) and the first character is a `-` (U+002D), […]\n\t\t\t\t(\n\t\t\t\t\tindex == 1 &&\n\t\t\t\t\tcodeUnit >= 0x0030 && codeUnit <= 0x0039 &&\n\t\t\t\t\tfirstCodeUnit == 0x002D\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\t// https://drafts.csswg.org/cssom/#escape-a-character-as-code-point\n\t\t\t\tresult += '\\\\' + codeUnit.toString(16) + ' ';\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\t// If the character is the first character and is a `-` (U+002D), and\n\t\t\t\t// there is no second character, […]\n\t\t\t\tindex == 0 &&\n\t\t\t\tlength == 1 &&\n\t\t\t\tcodeUnit == 0x002D\n\t\t\t) {\n\t\t\t\tresult += '\\\\' + string.charAt(index);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If the character is not handled by one of the above rules and is\n\t\t\t// greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or\n\t\t\t// is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to\n\t\t\t// U+005A), or [a-z] (U+0061 to U+007A), […]\n\t\t\tif (\n\t\t\t\tcodeUnit >= 0x0080 ||\n\t\t\t\tcodeUnit == 0x002D ||\n\t\t\t\tcodeUnit == 0x005F ||\n\t\t\t\tcodeUnit >= 0x0030 && codeUnit <= 0x0039 ||\n\t\t\t\tcodeUnit >= 0x0041 && codeUnit <= 0x005A ||\n\t\t\t\tcodeUnit >= 0x0061 && codeUnit <= 0x007A\n\t\t\t) {\n\t\t\t\t// the character itself\n\t\t\t\tresult += string.charAt(index);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Otherwise, the escaped character.\n\t\t\t// https://drafts.csswg.org/cssom/#escape-a-character\n\t\t\tresult += '\\\\' + string.charAt(index);\n\n\t\t}\n\t\treturn result;\n\t};\n\n\tif (!root.CSS) {\n\t\troot.CSS = {};\n\t}\n\n\troot.CSS.escape = cssEscape;\n\n}));\n",
+ "type": "application/javascript",
+ "module-type": "startup"
+ },
+ "$:/core/modules/startup/favicon.js": {
+ "title": "$:/core/modules/startup/favicon.js",
+ "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"favicon\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\t\t\n// Favicon tiddler\nvar FAVICON_TITLE = \"$:/favicon.ico\";\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(\"change\",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(\"faviconLink\");\n\t\tfaviconLink.setAttribute(\"href\",$tw.utils.makeDataUri(tiddler.fields.text,tiddler.fields.type,tiddler.fields._canonical_uri));\n\t}\n}\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "startup"
+ },
+ "$:/core/modules/startup/info.js": {
+ "title": "$:/core/modules/startup/info.js",
+ "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"info\";\nexports.before = [\"startup\"];\nexports.after = [\"load-modules\"];\nexports.synchronous = true;\n\nvar TITLE_INFO_PLUGIN = \"$:/temp/info-plugin\";\n\nexports.startup = function() {\n\t// Function to bake the info plugin with new tiddlers\n\tvar updateInfoPlugin = function(tiddlerFieldsArray) {\n\t\t// Get the existing tiddlers\n\t\tvar json = $tw.wiki.getTiddlerData(TITLE_INFO_PLUGIN,{tiddlers: {}});\n\t\t// Add the new ones\n\t\t$tw.utils.each(tiddlerFieldsArray,function(fields) {\n\t\t\tif(fields && fields.title) {\n\t\t\t\tjson.tiddlers[fields.title] = fields;\n\t\t\t}\n\t\t});\n\t\t// Bake the info tiddlers into a plugin. We use the non-standard plugin-type \"info\" because ordinary plugins are only registered asynchronously after being loaded dynamically\n\t\tvar fields = {\n\t\t\ttitle: TITLE_INFO_PLUGIN,\n\t\t\ttype: \"application/json\",\n\t\t\t\"plugin-type\": \"info\",\n\t\t\ttext: JSON.stringify(json,null,$tw.config.preferences.jsonSpaces)\n\t\t};\n\t\t$tw.wiki.addTiddler(new $tw.Tiddler(fields));\n\n\t};\n\t// Collect up the info tiddlers\n\tvar tiddlerFieldsArray = [];\n\t// Give each info module a chance to provide as many info tiddlers as they want as an array, and give them a callback for dynamically updating them\n\t$tw.modules.forEachModuleOfType(\"info\",function(title,moduleExports) {\n\t\tif(moduleExports && moduleExports.getInfoTiddlerFields) {\n\t\t\tArray.prototype.push.apply(tiddlerFieldsArray,moduleExports.getInfoTiddlerFields(updateInfoPlugin));\n\t\t}\n\t});\n\tupdateInfoPlugin(tiddlerFieldsArray);\n\tvar changes = $tw.wiki.readPluginInfo([TITLE_INFO_PLUGIN]);\n\t$tw.wiki.registerPluginTiddlers(\"info\",[TITLE_INFO_PLUGIN]);\n\t$tw.wiki.unpackPluginTiddlers();\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "startup"
+ },
+ "$:/core/modules/startup/load-modules.js": {
+ "title": "$:/core/modules/startup/load-modules.js",
+ "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"load-modules\";\nexports.synchronous = true;\n\nexports.startup = function() {\n\t// Load modules\n\t$tw.modules.applyMethods(\"utils\",$tw.utils);\n\tif($tw.node) {\n\t\t$tw.modules.applyMethods(\"utils-node\",$tw.utils);\n\t}\n\t$tw.modules.applyMethods(\"global\",$tw);\n\t$tw.modules.applyMethods(\"config\",$tw.config);\n\t$tw.Tiddler.fieldModules = $tw.modules.getModulesByTypeAsHashmap(\"tiddlerfield\");\n\t$tw.modules.applyMethods(\"tiddlermethod\",$tw.Tiddler.prototype);\n\t$tw.modules.applyMethods(\"wikimethod\",$tw.Wiki.prototype);\n\t$tw.wiki.addIndexersToWiki();\n\t$tw.modules.applyMethods(\"tiddlerdeserializer\",$tw.Wiki.tiddlerDeserializerModules);\n\t$tw.macros = $tw.modules.getModulesByTypeAsHashmap(\"macro\");\n\t$tw.wiki.initParsers();\n\t$tw.Commander.initCommands();\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "startup"
+ },
+ "$:/core/modules/startup/password.js": {
+ "title": "$:/core/modules/startup/password.js",
+ "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"password\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\nexports.startup = function() {\n\t$tw.rootWidget.addEventListener(\"tm-set-password\",function(event) {\n\t\t$tw.passwordPrompt.createPrompt({\n\t\t\tserviceName: $tw.language.getString(\"Encryption/PromptSetPassword\"),\n\t\t\tnoUserName: true,\n\t\t\tsubmitText: $tw.language.getString(\"Encryption/SetPassword\"),\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(\"tm-clear-password\",function(event) {\n\t\tif($tw.browser) {\n\t\t\tif(!confirm($tw.language.getString(\"Encryption/ConfirmClearPassword\"))) {\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(\"change\",function(changes) {\n\t\tif($tw.utils.hop(changes,\"$:/isEncrypted\")) {\n\t\t\t$tw.crypto.updateCryptoStateTiddler();\n\t\t}\n\t});\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "startup"
+ },
+ "$:/core/modules/startup/plugins.js": {
+ "title": "$:/core/modules/startup/plugins.js",
+ "text": "/*\\\ntitle: $:/core/modules/startup/plugins.js\ntype: application/javascript\nmodule-type: startup\n\nStartup logic concerned with managing plugins\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"plugins\";\nexports.after = [\"load-modules\"];\nexports.synchronous = true;\n\nvar TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE = \"$:/status/RequireReloadDueToPluginChange\";\n\nvar PREFIX_CONFIG_REGISTER_PLUGIN_TYPE = \"$:/config/RegisterPluginType/\";\n\nexports.startup = function() {\n\t$tw.wiki.addTiddler({title: TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE,text: \"no\"});\n\t$tw.wiki.addEventListener(\"change\",function(changes) {\n\t\t// Work out which of the changed tiddlers are plugins that we need to reregister\n\t\tvar changesToProcess = [],\n\t\t\trequireReloadDueToPluginChange = false;\n\t\t$tw.utils.each(Object.keys(changes),function(title) {\n\t\t\tvar tiddler = $tw.wiki.getTiddler(title),\n\t\t\t\trequiresReload = $tw.wiki.doesPluginRequireReload(title);\n\t\t\tif(requiresReload) {\n\t\t\t\trequireReloadDueToPluginChange = true;\n\t\t\t} else if(tiddler) {\n\t\t\t\tvar pluginType = tiddler.fields[\"plugin-type\"];\n\t\t\t\tif($tw.wiki.getTiddlerText(PREFIX_CONFIG_REGISTER_PLUGIN_TYPE + (tiddler.fields[\"plugin-type\"] || \"\"),\"no\") === \"yes\") {\n\t\t\t\t\tchangesToProcess.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t// Issue warning if any of the tiddlers require a reload\n\t\tif(requireReloadDueToPluginChange) {\n\t\t\t$tw.wiki.addTiddler({title: TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE,text: \"yes\"});\n\t\t}\n\t\t// Read or delete the plugin info of the changed tiddlers\n\t\tif(changesToProcess.length > 0) {\n\t\t\tvar changes = $tw.wiki.readPluginInfo(changesToProcess);\n\t\t\tif(changes.modifiedPlugins.length > 0 || changes.deletedPlugins.length > 0) {\n\t\t\t\tvar changedShadowTiddlers = {};\n\t\t\t\t// Collect the shadow tiddlers of any deleted plugins\n\t\t\t\t$tw.utils.each(changes.deletedPlugins,function(pluginTitle) {\n\t\t\t\t\tvar pluginInfo = $tw.wiki.getPluginInfo(pluginTitle);\n\t\t\t\t\tif(pluginInfo) {\n\t\t\t\t\t\t$tw.utils.each(Object.keys(pluginInfo.tiddlers),function(title) {\n\t\t\t\t\t\t\tchangedShadowTiddlers[title] = true;\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t// Collect the shadow tiddlers of any modified plugins\n\t\t\t\t$tw.utils.each(changes.modifiedPlugins,function(pluginTitle) {\n\t\t\t\t\tvar pluginInfo = $tw.wiki.getPluginInfo(pluginTitle);\n\t\t\t\t\tif(pluginInfo) {\n\t\t\t\t\t\t$tw.utils.each(Object.keys(pluginInfo.tiddlers),function(title) {\n\t\t\t\t\t\t\tchangedShadowTiddlers[title] = false;\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t// (Re-)register any modified plugins\n\t\t\t\t$tw.wiki.registerPluginTiddlers(null,changes.modifiedPlugins);\n\t\t\t\t// Unregister any deleted plugins\n\t\t\t\t$tw.wiki.unregisterPluginTiddlers(null,changes.deletedPlugins);\n\t\t\t\t// Unpack the shadow tiddlers\n\t\t\t\t$tw.wiki.unpackPluginTiddlers();\n\t\t\t\t// Queue change events for the changed shadow tiddlers\n\t\t\t\t$tw.utils.each(Object.keys(changedShadowTiddlers),function(title) {\n\t\t\t\t\t$tw.wiki.enqueueTiddlerEvent(title,changedShadowTiddlers[title]);\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t});\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "startup"
+ },
+ "$:/core/modules/startup/render.js": {
+ "title": "$:/core/modules/startup/render.js",
+ "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"render\";\nexports.platforms = [\"browser\"];\nexports.after = [\"story\"];\nexports.synchronous = true;\n\n// Default story and history lists\nvar PAGE_TITLE_TITLE = \"$:/core/wiki/title\";\nvar PAGE_STYLESHEET_TITLE = \"$:/core/ui/PageStylesheet\";\nvar PAGE_TEMPLATE_TITLE = \"$:/core/ui/RootTemplate\";\n\n// Time (in ms) that we defer refreshing changes to draft tiddlers\nvar DRAFT_TIDDLER_TIMEOUT_TITLE = \"$:/config/Drafts/TypingTimeout\";\nvar THROTTLE_REFRESH_TIMEOUT = 400;\n\nexports.startup = function() {\n\t// Set up the title\n\t$tw.titleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TITLE_TITLE,{document: $tw.fakeDocument, parseAsInline: true});\n\t$tw.titleContainer = $tw.fakeDocument.createElement(\"div\");\n\t$tw.titleWidgetNode.render($tw.titleContainer,null);\n\tdocument.title = $tw.titleContainer.textContent;\n\t$tw.wiki.addEventListener(\"change\",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(\"style\");\n\t$tw.styleWidgetNode.render($tw.styleContainer,null);\n\t$tw.styleElement = document.createElement(\"style\");\n\t$tw.styleElement.innerHTML = $tw.styleContainer.textContent;\n\tdocument.head.insertBefore($tw.styleElement,document.head.firstChild);\n\t$tw.wiki.addEventListener(\"change\",$tw.perf.report(\"styleRefresh\",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(\"mainRender\",function() {\n\t\t$tw.pageWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TEMPLATE_TITLE,{document: document, parentWidget: $tw.rootWidget, recursionMarker: \"no\"});\n\t\t$tw.pageContainer = document.createElement(\"div\");\n\t\t$tw.utils.addClass($tw.pageContainer,\"tc-page-container-wrapper\");\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(\"th-page-refreshed\");\n\t})();\n\t// Remove any splash screen elements\n\tvar removeList = document.querySelectorAll(\".tc-remove-when-wiki-loaded\");\n\t$tw.utils.each(removeList,function(removeItem) {\n\t\tif(removeItem.parentNode) {\n\t\t\tremoveItem.parentNode.removeChild(removeItem);\n\t\t}\n\t});\n\t// Prepare refresh mechanism\n\tvar deferredChanges = Object.create(null),\n\t\ttimerId;\n\tfunction refresh() {\n\t\t// Process the refresh\n\t\t$tw.hooks.invokeHook(\"th-page-refreshing\");\n\t\t$tw.pageWidgetNode.refresh(deferredChanges);\n\t\tdeferredChanges = Object.create(null);\n\t\t$tw.hooks.invokeHook(\"th-page-refreshed\");\n\t}\n\t// Add the change event handler\n\t$tw.wiki.addEventListener(\"change\",$tw.perf.report(\"mainRefresh\",function(changes) {\n\t\t// Check if only tiddlers that are throttled have changed\n\t\tvar onlyThrottledTiddlersHaveChanged = true;\n\t\tfor(var title in changes) {\n\t\t\tvar tiddler = $tw.wiki.getTiddler(title);\n\t\t\tif(!tiddler || !(tiddler.hasField(\"draft.of\") || tiddler.hasField(\"throttle.refresh\"))) {\n\t\t\t\tonlyThrottledTiddlersHaveChanged = false;\n\t\t\t}\n\t\t}\n\t\t// Defer the change if only drafts have changed\n\t\tif(timerId) {\n\t\t\tclearTimeout(timerId);\n\t\t}\n\t\ttimerId = null;\n\t\tif(onlyThrottledTiddlersHaveChanged) {\n\t\t\tvar timeout = parseInt($tw.wiki.getTiddlerText(DRAFT_TIDDLER_TIMEOUT_TITLE,\"\"),10);\n\t\t\tif(isNaN(timeout)) {\n\t\t\t\ttimeout = THROTTLE_REFRESH_TIMEOUT;\n\t\t\t}\n\t\t\ttimerId = setTimeout(refresh,timeout);\n\t\t\t$tw.utils.extend(deferredChanges,changes);\n\t\t} else {\n\t\t\t$tw.utils.extend(deferredChanges,changes);\n\t\t\trefresh();\n\t\t}\n\t}));\n\t// Fix up the link between the root widget and the page container\n\t$tw.rootWidget.domNodes = [$tw.pageContainer];\n\t$tw.rootWidget.children = [$tw.pageWidgetNode];\n\t// Run any post-render startup actions\n\t$tw.rootWidget.invokeActionsByTag(\"$:/tags/StartupAction/PostRender\");\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "startup"
+ },
+ "$:/core/modules/startup/rootwidget.js": {
+ "title": "$:/core/modules/startup/rootwidget.js",
+ "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"rootwidget\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.before = [\"story\"];\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(\"tm-modal\",function(event) {\n\t\t$tw.modal.display(event.param,{variables: event.paramObject, event: event});\n\t});\n\t$tw.rootWidget.addEventListener(\"tm-show-switcher\",function(event) {\n\t\t$tw.modal.display(\"$:/core/ui/SwitcherModal\",{variables: event.paramObject, event: event});\n\t});\t\n\t// Install the notification mechanism\n\t$tw.notifier = new $tw.utils.Notifier($tw.wiki);\n\t$tw.rootWidget.addEventListener(\"tm-notify\",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(\"tm-copy-to-clipboard\",function(event) {\n\t\t$tw.utils.copyToClipboard(event.param);\n\t});\n\t// Install the tm-focus-selector message\n\t$tw.rootWidget.addEventListener(\"tm-focus-selector\",function(event) {\n\t\tvar selector = event.param || \"\",\n\t\t\telement;\n\t\ttry {\n\t\t\telement = document.querySelector(selector);\n\t\t} catch(e) {\n\t\t\tconsole.log(\"Error in selector: \",selector)\n\t\t}\n\t\tif(element && element.focus) {\n\t\t\telement.focus(event.paramObject);\n\t\t}\n\t});\n\t// Install the scroller\n\t$tw.pageScroller = new $tw.utils.PageScroller();\n\t$tw.rootWidget.addEventListener(\"tm-scroll\",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(\"tm-full-screen\",function(event) {\n\t\t\tvar fullScreenDocument = event.event ? event.event.target.ownerDocument : document;\n\t\t\tif(event.param === \"enter\") {\n\t\t\t\tfullScreenDocument.documentElement[fullscreen._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT);\n\t\t\t} else if(event.param === \"exit\") {\n\t\t\t\tfullScreenDocument[fullscreen._exitFullscreen]();\n\t\t\t} else {\n\t\t\t\tif(fullScreenDocument[fullscreen._fullscreenElement]) {\n\t\t\t\t\tfullScreenDocument[fullscreen._exitFullscreen]();\n\t\t\t\t} else {\n\t\t\t\t\tfullScreenDocument.documentElement[fullscreen._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t}\n\t// If we're being viewed on a data: URI then give instructions for how to save\n\tif(document.location.protocol === \"data:\") {\n\t\t$tw.rootWidget.dispatchEvent({\n\t\t\ttype: \"tm-modal\",\n\t\t\tparam: \"$:/language/Modals/SaveInstructions\"\n\t\t});\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "startup"
+ },
+ "$:/core/modules/startup.js": {
+ "title": "$:/core/modules/startup.js",
+ "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"startup\";\nexports.after = [\"load-modules\"];\nexports.synchronous = true;\n\n// Set to `true` to enable performance instrumentation\nvar PERFORMANCE_INSTRUMENTATION_CONFIG_TITLE = \"$:/config/Performance/Instrumentation\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\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(\"os\").platform()) {\n\t\t\tcase \"darwin\":\n\t\t\t\t$tw.platform.isMac = true;\n\t\t\t\tbreak;\n\t\t\tcase \"win32\":\n\t\t\t\t$tw.platform.isWindows = true;\n\t\t\t\tbreak;\n\t\t\tcase \"freebsd\":\n\t\t\t\t$tw.platform.isLinux = true;\n\t\t\t\tbreak;\n\t\t\tcase \"linux\":\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,\"no\") === \"yes\");\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: \"widget\",\n\t\tchildren: []\n\t},{\n\t\twiki: $tw.wiki,\n\t\tdocument: $tw.browser ? document : $tw.fakeDocument\n\t});\n\t// Execute any startup actions\n\t$tw.rootWidget.invokeActionsByTag(\"$:/tags/StartupAction\");\n\tif($tw.browser) {\n\t\t$tw.rootWidget.invokeActionsByTag(\"$:/tags/StartupAction/Browser\");\t\t\n\t}\n\tif($tw.node) {\n\t\t$tw.rootWidget.invokeActionsByTag(\"$:/tags/StartupAction/Node\");\t\t\n\t}\n\t// Kick off the language manager and switcher\n\t$tw.language = new $tw.Language();\n\t$tw.languageSwitcher = new $tw.PluginSwitcher({\n\t\twiki: $tw.wiki,\n\t\tpluginType: \"language\",\n\t\tcontrollerTitle: \"$:/language\",\n\t\tdefaultPlugins: [\n\t\t\t\"$:/languages/en-GB\"\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(\"dir\",pluginTiddler.getFieldString(\"text-direction\") || \"auto\");\n\t\t\t\t} else {\n\t\t\t\t\tdocument.documentElement.removeAttribute(\"dir\");\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: \"theme\",\n\t\tcontrollerTitle: \"$:/theme\",\n\t\tdefaultPlugins: [\n\t\t\t\"$:/themes/tiddlywiki/snowwhite\",\n\t\t\t\"$:/themes/tiddlywiki/vanilla\"\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: \"keydown\",\n\t\t\thandlerObject: $tw.keyboardManager,\n\t\t\thandlerMethod: \"handleKeydownEvent\"\n\t\t}]);\n\t}\n\t// Clear outstanding tiddler store change events to avoid an unnecessary refresh cycle at startup\n\t$tw.wiki.clearTiddlerEventQueue();\n\t// Find a working syncadaptor\n\t$tw.syncadaptor = undefined;\n\t$tw.modules.forEachModuleOfType(\"syncadaptor\",function(title,module) {\n\t\tif(!$tw.syncadaptor && module.adaptorClass) {\n\t\t\t$tw.syncadaptor = new module.adaptorClass({wiki: $tw.wiki});\n\t\t}\n\t});\n\t// Set up the syncer object if we've got a syncadaptor\n\tif($tw.syncadaptor) {\n\t\t$tw.syncer = new $tw.Syncer({wiki: $tw.wiki, syncadaptor: $tw.syncadaptor});\n\t}\n\t// Setup the saver handler\n\t$tw.saverHandler = new $tw.SaverHandler({\n\t\twiki: $tw.wiki,\n\t\tdirtyTracking: !$tw.syncadaptor,\n\t\tpreloadDirty: $tw.boot.preloadDirty || []\n\t});\n\t// Host-specific startup\n\tif($tw.browser) {\n\t\t// Install the popup manager\n\t\t$tw.popup = new $tw.utils.Popup();\n\t\t// Install the animator\n\t\t$tw.anim = new $tw.utils.Animator();\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "startup"
+ },
+ "$:/core/modules/startup/story.js": {
+ "title": "$:/core/modules/startup/story.js",
+ "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"story\";\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\n// Default story and history lists\nvar DEFAULT_STORY_TITLE = \"$:/StoryList\";\nvar DEFAULT_HISTORY_TITLE = \"$:/HistoryList\";\n\n// Default tiddlers\nvar DEFAULT_TIDDLERS_TITLE = \"$:/DefaultTiddlers\";\n\n// Config\nvar CONFIG_UPDATE_ADDRESS_BAR = \"$:/config/Navigation/UpdateAddressBar\"; // Can be \"no\", \"permalink\", \"permaview\"\nvar CONFIG_UPDATE_HISTORY = \"$:/config/Navigation/UpdateHistory\"; // Can be \"yes\" or \"no\"\nvar CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD = \"$:/config/Navigation/Permalinkview/CopyToClipboard\"; // Can be \"yes\" (default) or \"no\"\nvar CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR = \"$:/config/Navigation/Permalinkview/UpdateAddressBar\"; // Can be \"yes\" (default) or \"no\"\n\n\n// Links to help, if there is no param\nvar HELP_OPEN_EXTERNAL_WINDOW = \"http://tiddlywiki.com/#WidgetMessage%3A%20tm-open-external-window\";\n\nexports.startup = function() {\n\t// Open startup tiddlers\n\topenStartupTiddlers({\n\t\tdisableHistory: $tw.boot.disableStartupNavigation\n\t});\n\tif($tw.browser) {\n\t\t// Set up location hash update\n\t\t$tw.wiki.addEventListener(\"change\",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,\"permaview\").trim(),\n\t\t\t\t\tupdateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,\"no\").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(\"hashchange\",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(\"tm-browser-refresh\",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(\"tm-open-external-window\",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(\"tm-print\",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(\"tm-home\",function(event) {\n\t\t\twindow.location.hash = \"\";\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(\"th-opening-default-tiddlers-list\",storyList);\n\t\t\t$tw.wiki.addTiddler({title: DEFAULT_STORY_TITLE, text: \"\", 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(\"tm-permalink\",function(event) {\n\t\t\tupdateLocationHash({\n\t\t\t\tupdateAddressBar: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR,\"yes\").trim() === \"yes\" ? \"permalink\" : \"none\",\n\t\t\t\tupdateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,\"no\").trim(),\n\t\t\t\ttargetTiddler: event.param || event.tiddlerTitle,\n\t\t\t\tcopyToClipboard: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD,\"yes\").trim() === \"yes\" ? \"permalink\" : \"none\"\n\t\t\t});\n\t\t});\n\t\t// Listen for the tm-permaview message\n\t\t$tw.rootWidget.addEventListener(\"tm-permaview\",function(event) {\n\t\t\tupdateLocationHash({\n\t\t\t\tupdateAddressBar: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR,\"yes\").trim() === \"yes\" ? \"permaview\" : \"none\",\n\t\t\t\tupdateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,\"no\").trim(),\n\t\t\t\ttargetTiddler: event.param || event.tiddlerTitle,\n\t\t\t\tcopyToClipboard: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD,\"yes\").trim() === \"yes\" ? \"permaview\" : \"none\"\n\t\t\t});\t\t\t\t\n\t\t});\n\t}\n};\n\n/*\nProcess the location hash to open the specified tiddlers. Options:\ndisableHistory: if true $:/History is NOT updated\ndefaultToCurrentStory: If true, the current story is retained as the default, instead of opening the default tiddlers\n*/\nfunction openStartupTiddlers(options) {\n\toptions = options || {};\n\t// Work out the target tiddler and the story filter. \"null\" means \"unspecified\"\n\tvar target = null,\n\t\tstoryFilter = null;\n\tif($tw.locationHash.length > 1) {\n\t\tvar hash = $tw.locationHash.substr(1),\n\t\t\tsplit = hash.indexOf(\":\");\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 && target !== \"\") {\n\t\t\t\tstoryFilter = \"\";\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(\"th-opening-default-tiddlers-list\",storyList);\n\t// If the target tiddler isn't included then splice it in at the top\n\tif(target && 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: \"\", list: storyList},$tw.wiki.getModificationFields());\n\t// Update history\n\tvar story = new $tw.Story({\n\t\twiki: $tw.wiki,\n\t\tstoryTitle: DEFAULT_STORY_TITLE,\n\t\thistoryTitle: DEFAULT_HISTORY_TITLE\n\t});\n\tif(!options.disableHistory) {\n\t\t// If a target tiddler was specified add it to the history stack\n\t\tif(target && target !== \"\") {\n\t\t\t// The target tiddler doesn't need double square brackets, but we'll silently remove them if they're present\n\t\t\tif(target.indexOf(\"[[\") === 0 && target.substr(-2) === \"]]\") {\n\t\t\t\ttarget = target.substr(2,target.length - 4);\n\t\t\t}\n\t\t\tstory.addToHistory(target);\n\t\t} else if(storyList.length > 0) {\n\t\t\tstory.addToHistory(storyList[0]);\n\t\t}\t\t\n\t}\n}\n\n/*\noptions: See below\noptions.updateAddressBar: \"permalink\", \"permaview\" or \"no\" (defaults to \"permaview\")\noptions.updateHistory: \"yes\" or \"no\" (defaults to \"no\")\noptions.copyToClipboard: \"permalink\", \"permaview\" or \"no\" (defaults to \"no\")\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 = \"\";\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 > 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 = \"\";\n\t\t}\n\t}\n\t// Assemble the location hash\n\tswitch(options.updateAddressBar) {\n\t\tcase \"permalink\":\n\t\t\t$tw.locationHash = \"#\" + encodeURIComponent(targetTiddler);\n\t\t\tbreak;\n\t\tcase \"permaview\":\n\t\t\t$tw.locationHash = \"#\" + encodeURIComponent(targetTiddler) + \":\" + 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 \"permalink\":\n\t\t\t$tw.utils.copyToClipboard($tw.utils.getLocationPath() + \"#\" + encodeURIComponent(targetTiddler));\n\t\t\tbreak;\n\t\tcase \"permaview\":\n\t\t\t$tw.utils.copyToClipboard($tw.utils.getLocationPath() + \"#\" + encodeURIComponent(targetTiddler) + \":\" + 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 === \"yes\") {\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(\"#\")[0] + $tw.locationHash);\n\t\t}\n\t}\n}\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "startup"
+ },
+ "$:/core/modules/startup/windows.js": {
+ "title": "$:/core/modules/startup/windows.js",
+ "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"windows\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\n// Global to keep track of open windows (hashmap by title)\n$tw.windows = {};\n\nexports.startup = function() {\n\t// Handle open window message\n\t$tw.rootWidget.addEventListener(\"tm-open-window\",function(event) {\n\t\t// Get the parameters\n\t\tvar refreshHandler,\n\t\t\ttitle = event.param || event.tiddlerTitle,\n\t\t\tparamObject = event.paramObject || {},\n\t\t\twindowTitle = paramObject.windowTitle || title,\n\t\t\ttemplate = paramObject.template || \"$:/core/templates/single.tiddler.window\",\n\t\t\twidth = paramObject.width || \"700\",\n\t\t\theight = paramObject.height || \"600\",\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(\"\",\"external-\" + title,\"scrollbars,width=\" + width + \",height=\" + height),\n\t\t\tsrcDocument = srcWindow.document;\n\t\t}\n\t\tcatch(e) {\n\t\t\treturn;\n\t\t}\n\t\t$tw.windows[title] = srcWindow;\n\t\t// Check for reopening the same window\n\t\tif(srcWindow.haveInitialisedWindow) {\n\t\t\treturn;\n\t\t}\n\t\t// Initialise the document\n\t\tsrcDocument.write(\"<html><head></head><body class='tc-body tc-single-tiddler-window'></body></html>\");\n\t\tsrcDocument.close();\n\t\tsrcDocument.title = windowTitle;\n\t\tsrcWindow.addEventListener(\"beforeunload\",function(event) {\n\t\t\tdelete $tw.windows[title];\n\t\t\t$tw.wiki.removeEventListener(\"change\",refreshHandler);\n\t\t},false);\n\t\t// Set up the styles\n\t\tvar styleWidgetNode = $tw.wiki.makeTranscludeWidget(\"$:/core/ui/PageStylesheet\",{\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(\"style\");\n\t\tstyleWidgetNode.render(styleContainer,null);\n\t\tvar styleElement = srcDocument.createElement(\"style\");\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(\"change\",refreshHandler);\n\t\t// Listen for keyboard shortcuts\n\t\t$tw.utils.addEventListeners(srcDocument,[{\n\t\t\tname: \"keydown\",\n\t\t\thandlerObject: $tw.keyboardManager,\n\t\t\thandlerMethod: \"handleKeydownEvent\"\n\t\t}]);\n\t\tsrcWindow.document.documentElement.addEventListener(\"click\",$tw.popup,true);\n\t\tsrcWindow.haveInitialisedWindow = true;\n\t});\n\t// Close open windows when unloading main window\n\t$tw.addUnloadTask(function() {\n\t\t$tw.utils.each($tw.windows,function(win) {\n\t\t\twin.close();\n\t\t});\n\t});\n\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "startup"
+ },
+ "$:/core/modules/story.js": {
+ "title": "$:/core/modules/story.js",
+ "text": "/*\\\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\"use strict\";\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 || \"$:/StoryList\";\n\tthis.historyTitle = options.historyTitle || \"$:/HistoryList\";\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 >= 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 >= 0) {\n\t\t// The tiddler is added from inside the river\n\t\t// Determine where to insert the tiddler; Fallback is \"below\"\n\t\tswitch(options.openLinkFromInsideRiver) {\n\t\t\tcase \"top\":\n\t\t\t\tslot = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"bottom\":\n\t\t\t\tslot = storyList.length;\n\t\t\t\tbreak;\n\t\t\tcase \"above\":\n\t\t\t\tslot = fromIndex;\n\t\t\t\tbreak;\n\t\t\tcase \"below\": // 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 \"top\"\n\t\tif(options.openLinkFromOutsideRiver === \"bottom\") {\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,{\"current-tiddler\": 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",
+ "type": "application/javascript",
+ "module-type": "global"
+ },
+ "$:/core/modules/storyviews/classic.js": {
+ "title": "$:/core/modules/storyviews/classic.js",
+ "text": "/*\\\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\"use strict\";\n\nvar easing = \"cubic-bezier(0.645, 0.045, 0.355, 1)\"; // From http://easings.net/#easeInOutCubic\n\nvar ClassicStoryView = function(listWidget) {\n\tthis.listWidget = listWidget;\n};\n\nClassicStoryView.prototype.navigateTo = function(historyInfo) {\n\tvar duration = $tw.utils.getAnimationDuration()\n\tvar listElementIndex = this.listWidget.findListItem(0,historyInfo.title);\n\tif(listElementIndex === undefined) {\n\t\treturn;\n\t}\n\tvar listItemWidget = this.listWidget.children[listElementIndex],\n\t\ttargetElement = listItemWidget.findFirstDomNode();\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\treturn;\n\t}\n\tif(duration) {\n\t\t// Scroll the node into view\n\t\tthis.listWidget.dispatchEvent({type: \"tm-scroll\", target: targetElement});\t\n\t} else {\n\t\ttargetElement.scrollIntoView();\n\t}\n};\n\nClassicStoryView.prototype.insert = function(widget) {\n\tvar duration = $tw.utils.getAnimationDuration();\n\tif(duration) {\n\t\tvar targetElement = widget.findFirstDomNode();\n\t\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\t\tif(!(targetElement instanceof Element)) {\n\t\t\treturn;\n\t\t}\n\t\t// Get the current height of the tiddler\n\t\tvar computedStyle = window.getComputedStyle(targetElement),\n\t\t\tcurrMarginBottom = parseInt(computedStyle.marginBottom,10),\n\t\t\tcurrMarginTop = parseInt(computedStyle.marginTop,10),\n\t\t\tcurrHeight = targetElement.offsetHeight + currMarginTop;\n\t\t// Reset the margin once the transition is over\n\t\tsetTimeout(function() {\n\t\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t\t{transition: \"none\"},\n\t\t\t\t{marginBottom: \"\"}\n\t\t\t]);\n\t\t},duration);\n\t\t// Set up the initial position of the element\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: \"none\"},\n\t\t\t{marginBottom: (-currHeight) + \"px\"},\n\t\t\t{opacity: \"0.0\"}\n\t\t]);\n\t\t$tw.utils.forceLayout(targetElement);\n\t\t// Transition to the final position\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: \"opacity \" + duration + \"ms \" + easing + \", \" +\n\t\t\t\t\t\t\"margin-bottom \" + duration + \"ms \" + easing},\n\t\t\t{marginBottom: currMarginBottom + \"px\"},\n\t\t\t{opacity: \"1.0\"}\n\t]);\n\t}\n};\n\nClassicStoryView.prototype.remove = function(widget) {\n\tvar duration = $tw.utils.getAnimationDuration();\n\tif(duration) {\n\t\tvar targetElement = widget.findFirstDomNode(),\n\t\t\tremoveElement = function() {\n\t\t\t\twidget.removeChildDomNodes();\n\t\t\t};\n\t\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\t\tif(!(targetElement instanceof Element)) {\n\t\t\tremoveElement();\n\t\t\treturn;\n\t\t}\n\t\t// Get the current height of the tiddler\n\t\tvar currWidth = targetElement.offsetWidth,\n\t\t\tcomputedStyle = window.getComputedStyle(targetElement),\n\t\t\tcurrMarginBottom = parseInt(computedStyle.marginBottom,10),\n\t\t\tcurrMarginTop = parseInt(computedStyle.marginTop,10),\n\t\t\tcurrHeight = targetElement.offsetHeight + currMarginTop;\n\t\t// Remove the dom nodes of the widget at the end of the transition\n\t\tsetTimeout(removeElement,duration);\n\t\t// Animate the closure\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: \"none\"},\n\t\t\t{transform: \"translateX(0px)\"},\n\t\t\t{marginBottom: currMarginBottom + \"px\"},\n\t\t\t{opacity: \"1.0\"}\n\t\t]);\n\t\t$tw.utils.forceLayout(targetElement);\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms \" + easing + \", \" +\n\t\t\t\t\t\t\"opacity \" + duration + \"ms \" + easing + \", \" +\n\t\t\t\t\t\t\"margin-bottom \" + duration + \"ms \" + easing},\n\t\t\t{transform: \"translateX(-\" + currWidth + \"px)\"},\n\t\t\t{marginBottom: (-currHeight) + \"px\"},\n\t\t\t{opacity: \"0.0\"}\n\t\t]);\n\t} else {\n\t\twidget.removeChildDomNodes();\n\t}\n};\n\nexports.classic = ClassicStoryView;\n\n})();",
+ "type": "application/javascript",
+ "module-type": "storyview"
+ },
+ "$:/core/modules/storyviews/pop.js": {
+ "title": "$:/core/modules/storyviews/pop.js",
+ "text": "/*\\\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\"use strict\";\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: \"tm-scroll\", 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: \"none\"},\n\t\t\t{transform: \"none\"}\n\t\t]);\n\t\t$tw.utils.setStyle(widget.document.body,[\n\t\t\t{\"overflow-x\": \"\"}\n\t\t]);\n\t},duration);\n\t// Prevent the page from overscrolling due to the zoom factor\n\t$tw.utils.setStyle(widget.document.body,[\n\t\t{\"overflow-x\": \"hidden\"}\n\t]);\n\t// Set up the initial position of the element\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transition: \"none\"},\n\t\t{transform: \"scale(2)\"},\n\t\t{opacity: \"0.0\"}\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(\"transform\") + \" \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"opacity \" + duration + \"ms ease-in-out\"},\n\t\t{transform: \"scale(1)\"},\n\t\t{opacity: \"1.0\"}\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 && 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: \"none\"},\n\t\t{transform: \"scale(1)\"},\n\t\t{opacity: \"1.0\"}\n\t]);\n\t$tw.utils.forceLayout(targetElement);\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"opacity \" + duration + \"ms ease-in-out\"},\n\t\t{transform: \"scale(0.1)\"},\n\t\t{opacity: \"0.0\"}\n\t]);\n};\n\nexports.pop = PopStoryView;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "storyview"
+ },
+ "$:/core/modules/storyviews/zoomin.js": {
+ "title": "$:/core/modules/storyviews/zoomin.js",
+ "text": "/*\\\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\"use strict\";\n\nvar easing = \"cubic-bezier(0.645, 0.045, 0.355, 1)\"; // 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 > 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 && targetTiddler !== itemWidget.parseTreeNode.itemTitle) || (!targetTiddler && index)) {\n\t\t\tdomNode.style.display = \"none\";\n\t\t} else {\n\t\t\tself.currentTiddlerDomNode = domNode;\n\t\t}\n\t\t$tw.utils.addClass(domNode,\"tc-storyview-zoomin-tiddler\");\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,\"tc-storyview-zoomin-tiddler\");\n\t$tw.utils.setStyle(targetElement,[\n\t\t{display: \"block\"},\n\t\t{transformOrigin: \"0 0\"},\n\t\t{transform: \"translateX(0px) translateY(0px) scale(1)\"},\n\t\t{transition: \"none\"},\n\t\t{opacity: \"0.0\"}\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: \"translateX(\" + x + \"px) translateY(\" + y + \"px) scale(\" + scale + \")\"}\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(\"transform\") + \" \" + duration + \"ms \" + easing + \", opacity \" + duration + \"ms \" + easing},\n\t\t{opacity: \"1.0\"},\n\t\t{transform: \"translateX(0px) translateY(0px) scale(1)\"},\n\t\t{zIndex: \"500\"},\n\t]);\n\t// Transform the previous tiddler out of the way and then hide it\n\tif(prevCurrentTiddler && 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(\"transform\") + \" \" + duration + \"ms \" + easing + \", opacity \" + duration + \"ms \" + easing},\n\t\t\t{opacity: \"0.0\"},\n\t\t\t{transformOrigin: \"0 0\"},\n\t\t\t{transform: \"translateX(\" + x + \"px) translateY(\" + y + \"px) scale(\" + scale + \")\"},\n\t\t\t{zIndex: \"0\"}\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 = \"none\";\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 \"tc-title\"\n*/\nfunction findTitleDomNode(widget,targetClass) {\n\ttargetClass = targetClass || \"tc-title\";\n\tvar domNode = widget.findFirstDomNode();\n\tif(domNode && domNode.querySelector) {\n\t\treturn domNode.querySelector(\".\" + 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,\"tc-storyview-zoomin-tiddler\");\n\t$tw.utils.setStyle(targetElement,[\n\t\t{display: \"none\"}\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 != \"block\" ) {\n\t\tremoveElement();\n\t\treturn;\n\t}\n\t// Set up the tiddler that is being closed\n\t$tw.utils.addClass(targetElement,\"tc-storyview-zoomin-tiddler\");\n\t$tw.utils.setStyle(targetElement,[\n\t\t{display: \"block\"},\n\t\t{transformOrigin: \"50% 50%\"},\n\t\t{transform: \"translateX(0px) translateY(0px) scale(1)\"},\n\t\t{transition: \"none\"},\n\t\t{zIndex: \"0\"}\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 && toWidget.findFirstDomNode();\n\t// Set up the tiddler we're moving back in\n\tif(toWidgetDomNode) {\n\t\t$tw.utils.addClass(toWidgetDomNode,\"tc-storyview-zoomin-tiddler\");\n\t\t$tw.utils.setStyle(toWidgetDomNode,[\n\t\t\t{display: \"block\"},\n\t\t\t{transformOrigin: \"50% 50%\"},\n\t\t\t{transform: \"translateX(0px) translateY(0px) scale(10)\"},\n\t\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms \" + easing + \", opacity \" + duration + \"ms \" + easing},\n\t\t\t{opacity: \"0\"},\n\t\t\t{zIndex: \"500\"}\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: \"50% 50%\"},\n\t\t{transform: \"translateX(0px) translateY(0px) scale(0.1)\"},\n\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms \" + easing + \", opacity \" + duration + \"ms \" + easing},\n\t\t{opacity: \"0\"},\n\t\t{zIndex: \"0\"}\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: \"translateX(0px) translateY(0px) scale(1)\"},\n\t\t\t{opacity: \"1\"}\n\t\t]);\n\t}\n\treturn true; // Indicate that we'll delete the DOM node\n};\n\nexports.zoomin = ZoominListView;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "storyview"
+ },
+ "$:/core/modules/syncer.js": {
+ "title": "$:/core/modules/syncer.js",
+ "text": "/*\\\ntitle: $:/core/modules/syncer.js\ntype: application/javascript\nmodule-type: global\n\nThe syncer tracks changes to the store and synchronises them to a remote data store represented as a \"sync adaptor\"\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nDefaults\n*/\nSyncer.prototype.titleIsLoggedIn = \"$:/status/IsLoggedIn\";\nSyncer.prototype.titleIsAnonymous = \"$:/status/IsAnonymous\";\nSyncer.prototype.titleIsReadOnly = \"$:/status/IsReadOnly\";\nSyncer.prototype.titleUserName = \"$:/status/UserName\";\nSyncer.prototype.titleSyncFilter = \"$:/config/SyncFilter\";\nSyncer.prototype.titleSyncPollingInterval = \"$:/config/SyncPollingInterval\";\nSyncer.prototype.titleSyncDisableLazyLoading = \"$:/config/SyncDisableLazyLoading\";\nSyncer.prototype.titleSavedNotification = \"$:/language/Notifications/Save/Done\";\nSyncer.prototype.titleSyncThrottleInterval = \"$:/config/SyncThrottleInterval\";\nSyncer.prototype.taskTimerInterval = 1 * 1000; // Interval for sync timer\nSyncer.prototype.throttleInterval = 1 * 1000; // Defer saving tiddlers if they've changed in the last 1s...\nSyncer.prototype.errorRetryInterval = 5 * 1000; // Interval to retry after an error\nSyncer.prototype.fallbackInterval = 10 * 1000; // Unless the task is older than 10s\nSyncer.prototype.pollTimerInterval = 60 * 1000; // Interval for polling for changes from the adaptor\n\n/*\nInstantiate the syncer with the following options:\nsyncadaptor: reference to syncadaptor to be used\nwiki: wiki to be synced\n*/\nfunction Syncer(options) {\n\tvar self = this;\n\tthis.wiki = options.wiki;\n\t// Save parameters\n\tthis.syncadaptor = options.syncadaptor;\n\tthis.disableUI = !!options.disableUI;\n\tthis.titleIsLoggedIn = options.titleIsLoggedIn || this.titleIsLoggedIn;\n\tthis.titleUserName = options.titleUserName || this.titleUserName;\n\tthis.titleSyncFilter = options.titleSyncFilter || this.titleSyncFilter;\n\tthis.titleSavedNotification = options.titleSavedNotification || this.titleSavedNotification;\n\tthis.taskTimerInterval = options.taskTimerInterval || this.taskTimerInterval;\n\tthis.throttleInterval = options.throttleInterval || parseInt(this.wiki.getTiddlerText(this.titleSyncThrottleInterval,\"\"),10) || this.throttleInterval;\n\tthis.errorRetryInterval = options.errorRetryInterval || this.errorRetryInterval;\n\tthis.fallbackInterval = options.fallbackInterval || this.fallbackInterval;\n\tthis.pollTimerInterval = options.pollTimerInterval || parseInt(this.wiki.getTiddlerText(this.titleSyncPollingInterval,\"\"),10) || this.pollTimerInterval;\n\tthis.logging = \"logging\" in options ? options.logging : true;\n\t// Make a logger\n\tthis.logger = new $tw.utils.Logger(\"syncer\" + ($tw.browser ? \"-browser\" : \"\") + ($tw.node ? \"-server\" : \"\") + (this.syncadaptor.name ? (\"-\" + this.syncadaptor.name) : \"\"),{\n\t\tcolour: \"cyan\",\n\t\tenable: this.logging,\n\t\tsaveHistory: true\n\t});\n\t// Make another logger for connection errors\n\tthis.loggerConnection = new $tw.utils.Logger(\"syncer\" + ($tw.browser ? \"-browser\" : \"\") + ($tw.node ? \"-server\" : \"\") + (this.syncadaptor.name ? (\"-\" + this.syncadaptor.name) : \"\") + \"-connection\",{\n\t\tcolour: \"cyan\",\n\t\tenable: this.logging\n\t});\n\t// Ask the syncadaptor to use the main logger\n\tif(this.syncadaptor.setLoggerSaveBuffer) {\n\t\tthis.syncadaptor.setLoggerSaveBuffer(this.logger);\n\t}\n\t// Compile the dirty tiddler filter\n\tthis.filterFn = this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter));\n\t// Record information for known tiddlers\n\tthis.readTiddlerInfo();\n\tthis.titlesToBeLoaded = {}; // Hashmap of titles of tiddlers that need loading from the server\n\tthis.titlesHaveBeenLazyLoaded = {}; // Hashmap of titles of tiddlers that have already been lazily loaded from the server\n\t// Timers\n\tthis.taskTimerId = null; // Timer for task dispatch\n\tthis.pollTimerId = null; // Timer for polling server\n\t// Number of outstanding requests\n\tthis.numTasksInProgress = 0;\n\t// Listen out for changes to tiddlers\n\tthis.wiki.addEventListener(\"change\",function(changes) {\n\t\t// Filter the changes to just include ones that are being synced\n\t\tvar filteredChanges = self.getSyncedTiddlers(function(callback) {\n\t\t\t$tw.utils.each(changes,function(change,title) {\n\t\t\t\tvar tiddler = self.wiki.tiddlerExists(title) && self.wiki.getTiddler(title);\n\t\t\t\tcallback(tiddler,title);\n\t\t\t});\n\t\t});\n\t\tif(filteredChanges.length > 0) {\n\t\t\tself.processTaskQueue();\n\t\t} else {\n\t\t\t// Look for deletions of tiddlers we're already syncing\t\n\t\t\tvar outstandingDeletion = false\n\t\t\t$tw.utils.each(changes,function(change,title,object) {\n\t\t\t\tif(change.deleted && $tw.utils.hop(self.tiddlerInfo,title)) {\n\t\t\t\t\toutstandingDeletion = true;\n\t\t\t\t}\n\t\t\t});\n\t\t\tif(outstandingDeletion) {\n\t\t\t\tself.processTaskQueue();\n\t\t\t}\n\t\t}\n\t});\n\t// Browser event handlers\n\tif($tw.browser && !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(\"UnsavedChangesWarning\");\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(\"tm-login\",function(event) {\n\t\t\tvar username = event && event.paramObject && event.paramObject.username,\n\t\t\t\tpassword = event && event.paramObject && event.paramObject.password;\n\t\t\tif(username && password) {\n\t\t\t\t// Login with username and password\n\t\t\t\tself.login(username,password,function() {});\n\t\t\t} else {\n\t\t\t\t// No username and password, so we display a prompt\n\t\t\t\tself.handleLoginEvent();\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t$tw.rootWidget.addEventListener(\"tm-logout\",function() {\n\t\t\tself.handleLogoutEvent();\n\t\t});\n\t\t$tw.rootWidget.addEventListener(\"tm-server-refresh\",function() {\n\t\t\tself.handleRefreshEvent();\n\t\t});\n\t\t$tw.rootWidget.addEventListener(\"tm-copy-syncer-logs-to-clipboard\",function() {\n\t\t\t$tw.utils.copyToClipboard($tw.utils.getSystemInfo() + \"\\n\\nLog:\\n\" + self.logger.getBuffer());\n\t\t});\n\t}\n\t// Listen out for lazyLoad events\n\tif(!this.disableUI && this.wiki.getTiddlerText(this.titleSyncDisableLazyLoading) !== \"yes\") {\n\t\tthis.wiki.addEventListener(\"lazyLoad\",function(title) {\n\t\t\tself.handleLazyLoadEvent(title);\n\t\t});\t\t\n\t}\n\t// Get the login status\n\tthis.getStatus(function(err,isLoggedIn) {\n\t\t// Do a sync from the server\n\t\tself.syncFromServer();\n\t});\n}\n\n/*\nShow a generic network error alert\n*/\nSyncer.prototype.displayError = function(msg,err) {\n\tif(err === ($tw.language.getString(\"Error/XMLHttpRequest\") + \": 0\")) {\n\t\tthis.loggerConnection.alert($tw.language.getString(\"Error/NetworkErrorAlert\"));\n\t\tthis.logger.log(msg + \":\",err);\n\t} else {\n\t\tthis.logger.alert(msg + \":\",err);\n\t}\n};\n\n/*\nReturn an array of the tiddler titles that are subjected to syncing\n*/\nSyncer.prototype.getSyncedTiddlers = function(source) {\n\treturn this.filterFn.call(this.wiki,source);\n};\n\n/*\nReturn an array of the tiddler titles that are subjected to syncing\n*/\nSyncer.prototype.getTiddlerRevision = function(title) {\n\tif(this.syncadaptor && this.syncadaptor.getTiddlerRevision) {\n\t\treturn this.syncadaptor.getTiddlerRevision(title);\n\t} else {\n\t\treturn this.wiki.getTiddler(title).fields.revision;\t\n\t} \n};\n\n/*\nRead (or re-read) the latest tiddler info from the store\n*/\nSyncer.prototype.readTiddlerInfo = function() {\n\t// Hashmap by title of {revision:,changeCount:,adaptorInfo:}\n\t// \"revision\" is the revision of the tiddler last seen on the server, and \"changecount\" is the corresponding local changecount\n\tthis.tiddlerInfo = {};\n\t// Record information for known tiddlers\n\tvar self = this,\n\t\ttiddlers = this.getSyncedTiddlers();\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\tif(tiddler) {\n\t\t\tself.tiddlerInfo[title] = {\n\t\t\t\trevision: self.getTiddlerRevision(title),\n\t\t\t\tadaptorInfo: self.syncadaptor && self.syncadaptor.getTiddlerInfo(tiddler),\n\t\t\t\tchangeCount: self.wiki.getChangeCount(title)\n\t\t\t};\n\t\t}\n\t});\n};\n\n/*\nChecks whether the wiki is dirty (ie the window shouldn't be closed)\n*/\nSyncer.prototype.isDirty = function() {\n\tthis.logger.log(\"Checking dirty status\");\n\t// Check tiddlers that are in the store and included in the filter function\n\tvar titles = this.getSyncedTiddlers();\n\tfor(var index=0; index<titles.length; index++) {\n\t\tvar title = titles[index],\n\t\t\ttiddlerInfo = this.tiddlerInfo[title];\n\t\tif(this.wiki.tiddlerExists(title)) {\n\t\t\tif(tiddlerInfo) {\n\t\t\t\t// If the tiddler is known on the server and has been modified locally then it needs to be saved to the server\n\t\t\t\tif(this.wiki.getChangeCount(title) > tiddlerInfo.changeCount) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// If the tiddler isn't known on the server then it needs to be saved to the server\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\t// Check tiddlers that are known from the server but not currently in the store\n\ttitles = Object.keys(this.tiddlerInfo);\n\tfor(index=0; index<titles.length; index++) {\n\t\tif(!this.wiki.tiddlerExists(titles[index])) {\n\t\t\t// There must be a pending delete\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n\n/*\nUpdate the document body with the class \"tc-dirty\" if the wiki has unsaved/unsynced changes\n*/\nSyncer.prototype.updateDirtyStatus = function() {\n\tif($tw.browser && !this.disableUI) {\n\t\tvar dirty = this.isDirty();\n\t\t$tw.utils.toggleClass(document.body,\"tc-dirty\",dirty);\n\t\tif(!dirty) {\n\t\t\tthis.loggerConnection.clearAlerts();\n\t\t}\n\t}\n};\n\n/*\nSave an incoming tiddler in the store, and updates the associated tiddlerInfo\n*/\nSyncer.prototype.storeTiddler = function(tiddlerFields) {\n\t// Save the tiddler\n\tvar tiddler = new $tw.Tiddler(tiddlerFields);\n\tthis.wiki.addTiddler(tiddler);\n\t// Save the tiddler revision and changeCount details\n\tthis.tiddlerInfo[tiddlerFields.title] = {\n\t\trevision: this.getTiddlerRevision(tiddlerFields.title),\n\t\tadaptorInfo: this.syncadaptor.getTiddlerInfo(tiddler),\n\t\tchangeCount: this.wiki.getChangeCount(tiddlerFields.title)\n\t};\n};\n\nSyncer.prototype.getStatus = function(callback) {\n\tvar self = this;\n\t// Check if the adaptor supports getStatus()\n\tif(this.syncadaptor && this.syncadaptor.getStatus) {\n\t\t// Mark us as not logged in\n\t\tthis.wiki.addTiddler({title: this.titleIsLoggedIn,text: \"no\"});\n\t\t// Get login status\n\t\tthis.syncadaptor.getStatus(function(err,isLoggedIn,username,isReadOnly,isAnonymous) {\n\t\t\tif(err) {\n\t\t\t\tself.logger.alert(err);\n\t\t\t} else {\n\t\t\t\t// Set the various status tiddlers\n\t\t\t\tself.wiki.addTiddler({title: self.titleIsReadOnly,text: isReadOnly ? \"yes\" : \"no\"});\n\t\t\t\tself.wiki.addTiddler({title: self.titleIsAnonymous,text: isAnonymous ? \"yes\" : \"no\"});\n\t\t\t\tself.wiki.addTiddler({title: self.titleIsLoggedIn,text: isLoggedIn ? \"yes\" : \"no\"});\n\t\t\t\tif(isLoggedIn) {\n\t\t\t\t\tself.wiki.addTiddler({title: self.titleUserName,text: username || \"\"});\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Invoke the callback\n\t\t\tif(callback) {\n\t\t\t\tcallback(err,isLoggedIn,username);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tcallback(null,true,\"UNAUTHENTICATED\");\n\t}\n};\n\n/*\nSynchronise from the server by reading the skinny tiddler list and queuing up loads for any tiddlers that we don't already have up to date\n*/\nSyncer.prototype.syncFromServer = function() {\n\tvar self = this,\n\t\tcancelNextSync = function() {\n\t\t\tif(self.pollTimerId) {\n\t\t\t\tclearTimeout(self.pollTimerId);\n\t\t\t\tself.pollTimerId = null;\n\t\t\t}\n\t\t},\n\t\ttriggerNextSync = function() {\n\t\t\tself.pollTimerId = setTimeout(function() {\n\t\t\t\tself.pollTimerId = null;\n\t\t\t\tself.syncFromServer.call(self);\n\t\t\t},self.pollTimerInterval);\n\t\t},\n\t\tsyncSystemFromServer = (self.wiki.getTiddlerText(\"$:/config/SyncSystemTiddlersFromServer\") === \"yes\" ? true : false);\n\tif(this.syncadaptor && this.syncadaptor.getUpdatedTiddlers) {\n\t\tthis.logger.log(\"Retrieving updated tiddler list\");\n\t\tcancelNextSync();\n\t\tthis.syncadaptor.getUpdatedTiddlers(self,function(err,updates) {\n\t\t\ttriggerNextSync();\n\t\t\tif(err) {\n\t\t\t\tself.displayError($tw.language.getString(\"Error/RetrievingSkinny\"),err);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(updates) {\n\t\t\t\t$tw.utils.each(updates.modifications,function(title) {\n\t\t\t\t\tself.titlesToBeLoaded[title] = true;\n\t\t\t\t});\n\t\t\t\t$tw.utils.each(updates.deletions,function(title) {\n\t\t\t\t\tif(syncSystemFromServer || !self.wiki.isSystemTiddler(title)) {\n\t\t\t\t\t\tdelete self.tiddlerInfo[title];\n\t\t\t\t\t\tself.logger.log(\"Deleting tiddler missing from server:\",title);\n\t\t\t\t\t\tself.wiki.deleteTiddler(title);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tif(updates.modifications.length > 0 || updates.deletions.length > 0) {\n\t\t\t\t\tself.processTaskQueue();\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t} else if(this.syncadaptor && this.syncadaptor.getSkinnyTiddlers) {\n\t\tthis.logger.log(\"Retrieving skinny tiddler list\");\n\t\tcancelNextSync();\n\t\tthis.syncadaptor.getSkinnyTiddlers(function(err,tiddlers) {\n\t\t\ttriggerNextSync();\n\t\t\t// Check for errors\n\t\t\tif(err) {\n\t\t\t\tself.displayError($tw.language.getString(\"Error/RetrievingSkinny\"),err);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Keep track of which tiddlers we already know about have been reported this time\n\t\t\tvar previousTitles = Object.keys(self.tiddlerInfo);\n\t\t\t// Process each incoming tiddler\n\t\t\tfor(var t=0; t<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 + \"\",\n\t\t\t\t\ttiddler = self.wiki.tiddlerExists(tiddlerFields.title) && self.wiki.getTiddler(tiddlerFields.title),\n\t\t\t\t\ttiddlerInfo = self.tiddlerInfo[tiddlerFields.title],\n\t\t\t\t\tcurrRevision = tiddlerInfo ? tiddlerInfo.revision : null,\n\t\t\t\t\tindexInPreviousTitles = previousTitles.indexOf(tiddlerFields.title);\n\t\t\t\tif(indexInPreviousTitles !== -1) {\n\t\t\t\t\tpreviousTitles.splice(indexInPreviousTitles,1);\n\t\t\t\t}\n\t\t\t\t// Ignore the incoming tiddler if it's the same as the revision we've already got\n\t\t\t\tif(currRevision !== incomingRevision) {\n\t\t\t\t\t// Only load the skinny version if we don't already have a fat version of the tiddler\n\t\t\t\t\tif(!tiddler || tiddler.fields.text === undefined) {\n\t\t\t\t\t\tself.storeTiddler(tiddlerFields);\n\t\t\t\t\t}\n\t\t\t\t\t// Do a full load of this tiddler\n\t\t\t\t\tself.titlesToBeLoaded[tiddlerFields.title] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Delete any tiddlers that were previously reported but missing this time\n\t\t\t$tw.utils.each(previousTitles,function(title) {\n\t\t\t\tif(syncSystemFromServer || !self.wiki.isSystemTiddler(title)) {\n\t\t\t\t\tdelete self.tiddlerInfo[title];\n\t\t\t\t\tself.logger.log(\"Deleting tiddler missing from server:\",title);\n\t\t\t\t\tself.wiki.deleteTiddler(title);\n\t\t\t\t}\n\t\t\t});\n\t\t\tself.processTaskQueue();\n\t\t});\n\t}\n};\n\n/*\nForce load a tiddler from the server\n*/\nSyncer.prototype.enqueueLoadTiddler = function(title) {\n\tthis.titlesToBeLoaded[title] = true;\n\tthis.processTaskQueue();\n};\n\n/*\nLazily load a skinny tiddler if we can\n*/\nSyncer.prototype.handleLazyLoadEvent = function(title) {\n\t// Ignore if the syncadaptor doesn't handle it\n\tif(!this.syncadaptor.supportsLazyLoading) {\n\t\treturn;\n\t}\n\t// Don't lazy load the same tiddler twice\n\tif(!this.titlesHaveBeenLazyLoaded[title]) {\n\t\t// Don't lazy load if the tiddler isn't included in the sync filter\n\t\tif(this.getSyncedTiddlers().indexOf(title) !== -1) {\n\t\t\t// Mark the tiddler as needing loading, and having already been lazily loaded\n\t\t\tthis.titlesToBeLoaded[title] = true;\n\t\t\tthis.titlesHaveBeenLazyLoaded[title] = true;\n\t\t}\n\t}\n};\n\n/*\nDispay a password prompt and allow the user to login\n*/\nSyncer.prototype.handleLoginEvent = function() {\n\tvar self = this;\n\tthis.getStatus(function(err,isLoggedIn,username) {\n\t\tif(!err && !isLoggedIn) {\n\t\t\tif(self.syncadaptor && self.syncadaptor.displayLoginPrompt) {\n\t\t\t\tself.syncadaptor.displayLoginPrompt(self);\n\t\t\t} else {\n\t\t\t\tself.displayLoginPrompt();\n\t\t\t}\n\t\t}\n\t});\n};\n\n/*\nDispay a password prompt\n*/\nSyncer.prototype.displayLoginPrompt = function() {\n\tvar self = this;\n\tvar promptInfo = $tw.passwordPrompt.createPrompt({\n\t\tserviceName: $tw.language.getString(\"LoginToTiddlySpace\"),\n\t\tcallback: function(data) {\n\t\t\tself.login(data.username,data.password,function(err,isLoggedIn) {\n\t\t\t\tself.syncFromServer();\n\t\t\t});\n\t\t\treturn true; // Get rid of the password prompt\n\t\t}\n\t});\n};\n\n/*\nAttempt to login to TiddlyWeb.\n\tusername: username\n\tpassword: password\n\tcallback: invoked with arguments (err,isLoggedIn)\n*/\nSyncer.prototype.login = function(username,password,callback) {\n\tthis.logger.log(\"Attempting to login as\",username);\n\tvar self = this;\n\tif(this.syncadaptor.login) {\n\t\tthis.syncadaptor.login(username,password,function(err) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tself.getStatus(function(err,isLoggedIn,username) {\n\t\t\t\tif(callback) {\n\t\t\t\t\tcallback(err,isLoggedIn);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t} else {\n\t\tcallback(null,true);\n\t}\n};\n\n/*\nAttempt to log out of TiddlyWeb\n*/\nSyncer.prototype.handleLogoutEvent = function() {\n\tthis.logger.log(\"Attempting to logout\");\n\tvar self = this;\n\tif(this.syncadaptor.logout) {\n\t\tthis.syncadaptor.logout(function(err) {\n\t\t\tif(err) {\n\t\t\t\tself.logger.alert(err);\n\t\t\t} else {\n\t\t\t\tself.getStatus();\n\t\t\t}\n\t\t});\n\t}\n};\n\n/*\nImmediately refresh from the server\n*/\nSyncer.prototype.handleRefreshEvent = function() {\n\tthis.syncFromServer();\n};\n\n/*\nProcess the next task\n*/\nSyncer.prototype.processTaskQueue = function() {\n\tvar self = this;\n\t// Only process a task if the sync adaptor is fully initialised and we're not already performing\n\t// a task. If we are already performing a task then we'll dispatch the next one when it completes\n\tif((!this.syncadaptor.isReady || this.syncadaptor.isReady()) && this.numTasksInProgress === 0) {\n\t\t// Choose the next task to perform\n\t\tvar task = this.chooseNextTask();\n\t\t// Perform the task if we had one\n\t\tif(typeof task === \"object\" && task !== null) {\n\t\t\tthis.numTasksInProgress += 1;\n\t\t\ttask.run(function(err) {\n\t\t\t\tself.numTasksInProgress -= 1;\n\t\t\t\tif(err) {\n\t\t\t\t\tself.displayError(\"Sync error while processing \" + task.type + \" of '\" + task.title + \"'\",err);\n\t\t\t\t\tself.updateDirtyStatus();\n\t\t\t\t\tself.triggerTimeout(self.errorRetryInterval);\n\t\t\t\t} else {\n\t\t\t\t\tself.updateDirtyStatus();\n\t\t\t\t\t// Process the next task\n\t\t\t\t\tself.processTaskQueue.call(self);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\t// No task is ready so update the status\n\t\t\tthis.updateDirtyStatus();\n\t\t\t// And trigger a timeout if there is a pending task\n\t\t\tif(task === true) {\n\t\t\t\tthis.triggerTimeout();\t\t\t\t\n\t\t\t}\n\t\t}\n\t} else {\n\t\tthis.updateDirtyStatus();\t\t\n\t}\n};\n\nSyncer.prototype.triggerTimeout = function(interval) {\n\tvar self = this;\n\tif(!this.taskTimerId) {\n\t\tthis.taskTimerId = setTimeout(function() {\n\t\t\tself.taskTimerId = null;\n\t\t\tself.processTaskQueue.call(self);\n\t\t},interval || self.taskTimerInterval);\n\t}\n};\n\n/*\nChoose the next sync task. We prioritise saves, then deletes, then loads from the server\n\nReturns either a task object, null if there's no upcoming tasks, or the boolean true if there are pending tasks that aren't yet due\n*/\nSyncer.prototype.chooseNextTask = function() {\n\tvar thresholdLastSaved = (new Date()) - this.throttleInterval,\n\t\thavePending = null;\n\t// First we look for tiddlers that have been modified locally and need saving back to the server\n\tvar titles = this.getSyncedTiddlers();\n\tfor(var index=0; index<titles.length; index++) {\n\t\tvar title = titles[index],\n\t\t\ttiddler = this.wiki.tiddlerExists(title) && this.wiki.getTiddler(title),\n\t\t\ttiddlerInfo = this.tiddlerInfo[title];\n\t\tif(tiddler) {\n\t\t\t// If the tiddler is not known on the server, or has been modified locally no more recently than the threshold then it needs to be saved to the server\n\t\t\tvar hasChanged = !tiddlerInfo || this.wiki.getChangeCount(title) > tiddlerInfo.changeCount,\n\t\t\t\tisReadyToSave = !tiddlerInfo || !tiddlerInfo.timestampLastSaved || tiddlerInfo.timestampLastSaved < thresholdLastSaved;\n\t\t\tif(hasChanged) {\n\t\t\t\tif(isReadyToSave) {\n\t\t\t\t\treturn new SaveTiddlerTask(this,title); \t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\thavePending = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t// Second, we check tiddlers that are known from the server but not currently in the store, and so need deleting on the server\n\ttitles = Object.keys(this.tiddlerInfo);\n\tfor(index=0; index<titles.length; index++) {\n\t\ttitle = titles[index];\n\t\ttiddlerInfo = this.tiddlerInfo[title];\n\t\ttiddler = this.wiki.tiddlerExists(title) && this.wiki.getTiddler(title);\n\t\tif(!tiddler) {\n\t\t\treturn new DeleteTiddlerTask(this,title);\n\t\t}\n\t}\n\t// Check for tiddlers that need loading\n\ttitle = Object.keys(this.titlesToBeLoaded)[0];\n\tif(title) {\n\t\tdelete this.titlesToBeLoaded[title];\n\t\treturn new LoadTiddlerTask(this,title);\n\t}\n\t// No tasks are ready\n\treturn havePending;\n};\n\nfunction SaveTiddlerTask(syncer,title) {\n\tthis.syncer = syncer;\n\tthis.title = title;\n\tthis.type = \"save\";\n}\n\nSaveTiddlerTask.prototype.run = function(callback) {\n\tvar self = this,\n\t\tchangeCount = this.syncer.wiki.getChangeCount(this.title),\n\t\ttiddler = this.syncer.wiki.tiddlerExists(this.title) && this.syncer.wiki.getTiddler(this.title);\n\tthis.syncer.logger.log(\"Dispatching 'save' task:\",this.title);\n\tif(tiddler) {\n\t\tthis.syncer.syncadaptor.saveTiddler(tiddler,function(err,adaptorInfo,revision) {\n\t\t\t// If there's an error, exit without changing any internal state\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\t// Adjust the info stored about this tiddler\n\t\t\tself.syncer.tiddlerInfo[self.title] = {\n\t\t\t\tchangeCount: changeCount,\n\t\t\t\tadaptorInfo: adaptorInfo,\n\t\t\t\trevision: revision,\n\t\t\t\ttimestampLastSaved: new Date()\n\t\t\t};\n\t\t\t// Invoke the callback\n\t\t\tcallback(null);\n\t\t},{\n\t\t\ttiddlerInfo: self.syncer.tiddlerInfo[self.title]\n\t\t});\n\t} else {\n\t\tthis.syncer.logger.log(\" Not Dispatching 'save' task:\",this.title,\"tiddler does not exist\");\n\t\t$tw.utils.nextTick(callback(null));\n\t}\n};\n\nfunction DeleteTiddlerTask(syncer,title) {\n\tthis.syncer = syncer;\n\tthis.title = title;\n\tthis.type = \"delete\";\n}\n\nDeleteTiddlerTask.prototype.run = function(callback) {\n\tvar self = this;\n\tthis.syncer.logger.log(\"Dispatching 'delete' task:\",this.title);\n\tthis.syncer.syncadaptor.deleteTiddler(this.title,function(err) {\n\t\t// If there's an error, exit without changing any internal state\n\t\tif(err) {\n\t\t\treturn callback(err);\n\t\t}\n\t\t// Remove the info stored about this tiddler\n\t\tdelete self.syncer.tiddlerInfo[self.title];\n\t\tif($tw.boot.files){\n\t\t\t// Remove the tiddler from $tw.boot.files\n\t\t\tdelete $tw.boot.files[self.title];\n\t\t}\n\t\t// Invoke the callback\n\t\tcallback(null);\n\t},{\n\t\ttiddlerInfo: self.syncer.tiddlerInfo[this.title]\n\t});\n};\n\nfunction LoadTiddlerTask(syncer,title) {\n\tthis.syncer = syncer;\n\tthis.title = title;\n\tthis.type = \"load\";\n}\n\nLoadTiddlerTask.prototype.run = function(callback) {\n\tvar self = this;\n\tthis.syncer.logger.log(\"Dispatching 'load' task:\",this.title);\n\tthis.syncer.syncadaptor.loadTiddler(this.title,function(err,tiddlerFields) {\n\t\t// If there's an error, exit without changing any internal state\n\t\tif(err) {\n\t\t\treturn callback(err);\n\t\t}\n\t\t// Update the info stored about this tiddler\n\t\tif(tiddlerFields) {\n\t\t\tself.syncer.storeTiddler(tiddlerFields);\n\t\t}\n\t\t// Invoke the callback\n\t\tcallback(null);\n\t});\n};\n\nexports.Syncer = Syncer;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "global"
+ },
+ "$:/core/modules/tiddler.js": {
+ "title": "$:/core/modules/tiddler.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.hasTag = function(tag) {\n\treturn this.fields.tags && this.fields.tags.indexOf(tag) !== -1;\n};\n\nexports.isPlugin = function() {\n\treturn this.fields.type === \"application/json\" && this.hasField(\"plugin-type\");\n};\n\nexports.isDraft = function() {\n\treturn this.hasField(\"draft.of\");\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 \"\";\n\t}\n\t// Parse the field with the associated module (if any)\n\tvar fieldModule = $tw.Tiddler.fieldModules[field];\n\tif(fieldModule && fieldModule.stringify) {\n\t\treturn fieldModule.stringify.call(this,value);\n\t} else {\n\t\treturn value.toString();\n\t}\n};\n\n/*\nGet the value of a field as a list\n*/\nexports.getFieldList = function(field) {\n\tvar value = this.fields[field];\n\t// Check for a missing field\n\tif(value === undefined || value === null) {\n\t\treturn [];\n\t}\n\treturn $tw.utils.parseStringArray(value);\n};\n\n/*\nGet all the fields as a hashmap of strings. Options:\n\texclude: an array of field names to exclude\n*/\nexports.getFieldStrings = function(options) {\n\toptions = options || {};\n\tvar exclude = options.exclude || [];\n\tvar fields = {};\n\tfor(var field in this.fields) {\n\t\tif($tw.utils.hop(this.fields,field)) {\n\t\t\tif(exclude.indexOf(field) === -1) {\n\t\t\t\tfields[field] = this.getFieldString(field);\n\t\t\t}\n\t\t}\n\t}\n\treturn fields;\n};\n\n/*\nGet all the fields as a name:value block. Options:\n\texclude: an array of field names to exclude\n*/\nexports.getFieldStringBlock = function(options) {\n\toptions = options || {};\n\tvar exclude = options.exclude || [],\n\t\tfields = Object.keys(this.fields).sort(),\n\t\tresult = [];\n\tfor(var t=0; t<fields.length; t++) {\n\t\tvar field = fields[t];\n\t\tif(exclude.indexOf(field) === -1) {\n\t\t\tresult.push(field + \": \" + this.getFieldString(field));\n\t\t}\n\t}\n\treturn result.join(\"\\n\");\n};\n\nexports.getFieldDay = function(field) {\n\tif(this.cache && this.cache.day && $tw.utils.hop(this.cache.day,field) ) {\n\t\treturn this.cache.day[field];\n\t}\n\tvar day = \"\";\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",
+ "type": "application/javascript",
+ "module-type": "tiddlermethod"
+ },
+ "$:/core/modules/upgraders/plugins.js": {
+ "title": "$:/core/modules/upgraders/plugins.js",
+ "text": "/*\\\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\"use strict\";\n\nvar UPGRADE_LIBRARY_TITLE = \"$:/UpgradeLibrary\";\n\nvar BLOCKED_PLUGINS = {\n\t\"$:/themes/tiddlywiki/stickytitles\": {\n\t\tversions: [\"*\"]\n\t},\n\t\"$:/plugins/tiddlywiki/fullscreen\": {\n\t\tversions: [\"*\"]\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 && incomingTiddler[\"plugin-type\"]) {\n\t\t\t// Check whether the plugin contains JS modules\n\t\t\tvar requiresReload = wiki.doesPluginInfoRequireReload(JSON.parse(incomingTiddler.text)) ? (wiki.getTiddlerText(\"$:/language/ControlPanel/Plugins/PluginWillRequireReload\") + \" \") : \"\";\n\t\t\tmessages[title] = requiresReload;\n\t\t\tif(incomingTiddler.version) {\n\t\t\t\t// Upgrade the incoming plugin if it is in the upgrade library\n\t\t\t\tvar libraryTiddler = getLibraryTiddler(title);\n\t\t\t\tif(libraryTiddler && libraryTiddler[\"plugin-type\"] && libraryTiddler.version) {\n\t\t\t\t\ttiddlers[title] = libraryTiddler;\n\t\t\t\t\tmessages[title] = requiresReload + $tw.language.getString(\"Import/Upgrader/Plugins/Upgraded\",{variables: {incoming: incomingTiddler.version, upgraded: libraryTiddler.version}});\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// Suppress the incoming plugin if it is older than the currently installed one\n\t\t\t\tvar existingTiddler = wiki.getTiddler(title);\n\t\t\t\tif(existingTiddler && existingTiddler.hasField(\"plugin-type\") && existingTiddler.hasField(\"version\")) {\n\t\t\t\t\t// Reject the incoming plugin by blanking all its fields\n\t\t\t\t\tif($tw.utils.checkVersions(existingTiddler.fields.version,incomingTiddler.version)) {\n\t\t\t\t\t\ttiddlers[title] = Object.create(null);\n\t\t\t\t\t\tmessages[title] = $tw.language.getString(\"Import/Upgrader/Plugins/Suppressed/Version\",{variables: {incoming: incomingTiddler.version, existing: existingTiddler.fields.version}});\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Check whether the plugin is on the blocked list\n\t\t\tvar blockInfo = BLOCKED_PLUGINS[title];\n\t\t\tif(blockInfo) {\n\t\t\t\tif(blockInfo.versions.indexOf(\"*\") !== -1 || (incomingTiddler.version && 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(\"Import/Upgrader/Plugins/Suppressed/Incompatible\");\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",
+ "type": "application/javascript",
+ "module-type": "upgrader"
+ },
+ "$:/core/modules/upgraders/system.js": {
+ "title": "$:/core/modules/upgraders/system.js",
+ "text": "/*\\\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\"use strict\";\n\nvar DONT_IMPORT_LIST = [\"$:/StoryList\",\"$:/HistoryList\"],\n\tDONT_IMPORT_PREFIX_LIST = [\"$:/temp/\",\"$:/state/\",\"$:/Import\"],\n\tWARN_IMPORT_PREFIX_LIST = [\"$:/core/modules/\"];\n\nexports.upgrade = function(wiki,titles,tiddlers) {\n\tvar self = this,\n\t\tmessages = {},\n\t\tshowAlert = false;\n\t// Check for tiddlers on our list\n\t$tw.utils.each(titles,function(title) {\n\t\tif(DONT_IMPORT_LIST.indexOf(title) !== -1) {\n\t\t\ttiddlers[title] = Object.create(null);\n\t\t\tmessages[title] = $tw.language.getString(\"Import/Upgrader/System/Suppressed\");\n\t\t} else {\n\t\t\tfor(var t=0; t<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(\"Import/Upgrader/State/Suppressed\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(var t=0; t<WARN_IMPORT_PREFIX_LIST.length; t++) {\n\t\t\t\tvar prefix = WARN_IMPORT_PREFIX_LIST[t];\n\t\t\t\tif(title.substr(0,prefix.length) === prefix && wiki.isShadowTiddler(title)) {\n\t\t\t\t\tshowAlert = true;\n\t\t\t\t\tmessages[title] = $tw.language.getString(\"Import/Upgrader/System/Warning\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\tif(showAlert) {\n\t\tvar logger = new $tw.utils.Logger(\"import\");\n\t\tlogger.alert($tw.language.getString(\"Import/Upgrader/System/Alert\"));\n\t}\n\treturn messages;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "upgrader"
+ },
+ "$:/core/modules/upgraders/themetweaks.js": {
+ "title": "$:/core/modules/upgraders/themetweaks.js",
+ "text": "/*\\\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\"use strict\";\n\nvar MAPPINGS = {\n\t\"$:/themes/tiddlywiki/vanilla/metrics\": {\n\t\t\"fontsize\": \"$:/themes/tiddlywiki/vanilla/metrics/fontsize\",\n\t\t\"lineheight\": \"$:/themes/tiddlywiki/vanilla/metrics/lineheight\",\n\t\t\"storyleft\": \"$:/themes/tiddlywiki/vanilla/metrics/storyleft\",\n\t\t\"storytop\": \"$:/themes/tiddlywiki/vanilla/metrics/storytop\",\n\t\t\"storyright\": \"$:/themes/tiddlywiki/vanilla/metrics/storyright\",\n\t\t\"storywidth\": \"$:/themes/tiddlywiki/vanilla/metrics/storywidth\",\n\t\t\"tiddlerwidth\": \"$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth\"\n\t},\n\t\"$:/themes/tiddlywiki/vanilla/settings\": {\n\t\t\"fontfamily\": \"$:/themes/tiddlywiki/vanilla/settings/fontfamily\"\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(\"Import/Upgrader/ThemeTweaks/Created\",{variables: {\n\t\t\t\t\t\tfrom: title + \"##\" + 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",
+ "type": "application/javascript",
+ "module-type": "upgrader"
+ },
+ "$:/core/modules/utils/base64-utf8/base64-utf8.module.js": {
+ "text": "(function(){// From https://gist.github.com/Nijikokun/5192472\n//\n// UTF8 Module\n//\n// Cleaner and modularized utf-8 encoding and decoding library for javascript.\n//\n// copyright: MIT\n// author: Nijiko Yonskai, @nijikokun, nijikokun@gmail.com\n!function(r,e,o,t){void 0!==o.module&&o.module.exports?o.module.exports=e.apply(o):void 0!==o.define&&\"function\"===o.define&&o.define.amd?define(\"utf8\",[],e):o.utf8=e.apply(o)}(0,function(){return{encode:function(r){if(\"string\"!=typeof r)return r;r=r.replace(/\\r\\n/g,\"\\n\");for(var e,o=\"\",t=0;t<r.length;t++)if((e=r.charCodeAt(t))<128)o+=String.fromCharCode(e);else if(e>127&&e<2048)o+=String.fromCharCode(e>>6|192),o+=String.fromCharCode(63&e|128);else if(e>55295&&e<57344&&r.length>t+1){var i=e,n=r.charCodeAt(t+1);t++;var d=65536+(i-55296<<10|n-56320);o+=String.fromCharCode(d>>18|240),o+=String.fromCharCode(d>>12&63|128),o+=String.fromCharCode(d>>6&63|128),o+=String.fromCharCode(63&d|128)}else o+=String.fromCharCode(e>>12|224),o+=String.fromCharCode(e>>6&63|128),o+=String.fromCharCode(63&e|128);return o},decode:function(r){if(\"string\"!=typeof r)return r;for(var e=\"\",o=0,t=0;o<r.length;)if((t=r.charCodeAt(o))<128)e+=String.fromCharCode(t),o++;else if(t>191&&t<224)e+=String.fromCharCode((31&t)<<6|63&r.charCodeAt(o+1)),o+=2;else if(t>223&&t<240)e+=String.fromCharCode((15&t)<<12|(63&r.charCodeAt(o+1))<<6|63&r.charCodeAt(o+2)),o+=3;else{var i=(7&t)<<18|(63&r.charCodeAt(o+1))<<12|(63&r.charCodeAt(o+2))<<6|63&r.charCodeAt(o+3);e+=String.fromCharCode(55296+(i-65536>>10))+String.fromCharCode(56320+(i-65536&1023)),o+=4}return e}}},this),function(r,e,o,t){if(void 0!==o.module&&o.module.exports){if(t&&o.require)for(var i=0;i<t.length;i++)o[t[i]]=o.require(t[i]);o.module.exports=e.apply(o)}else void 0!==o.define&&\"function\"===o.define&&o.define.amd?define(\"base64\",t||[],e):o.base64=e.apply(o)}(0,function(r){var e=r||this.utf8,o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";return{encode:function(r){if(void 0===e)throw{error:\"MissingMethod\",message:\"UTF8 Module is missing.\"};if(\"string\"!=typeof r)return r;r=e.encode(r);for(var t,i,n,d,f,a,h,C=\"\",c=0;c<r.length;)d=(t=r.charCodeAt(c++))>>2,f=(3&t)<<4|(i=r.charCodeAt(c++))>>4,a=(15&i)<<2|(n=r.charCodeAt(c++))>>6,h=63&n,isNaN(i)?a=h=64:isNaN(n)&&(h=64),C+=o.charAt(d)+o.charAt(f)+o.charAt(a)+o.charAt(h);return C},decode:function(r){if(void 0===e)throw{error:\"MissingMethod\",message:\"UTF8 Module is missing.\"};if(\"string\"!=typeof r)return r;r=r.replace(/[^A-Za-z0-9\\+\\/\\=]/g,\"\");for(var t,i,n,d,f,a,h=\"\",C=0;C<r.length;)t=o.indexOf(r.charAt(C++))<<2|(d=o.indexOf(r.charAt(C++)))>>4,i=(15&d)<<4|(f=o.indexOf(r.charAt(C++)))>>2,n=(3&f)<<6|(a=o.indexOf(r.charAt(C++))),h+=String.fromCharCode(t),64!=f&&(h+=String.fromCharCode(i)),64!=a&&(h+=String.fromCharCode(n));return e.decode(h)}}},this,[\"utf8\"]);}).call(exports);",
+ "type": "application/javascript",
+ "title": "$:/core/modules/utils/base64-utf8/base64-utf8.module.js",
+ "module-type": "library"
+ },
+ "$:/core/modules/utils/crypto.js": {
+ "title": "$:/core/modules/utils/crypto.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nLook for an encrypted store area in the text of a TiddlyWiki file\n*/\nexports.extractEncryptedStoreArea = function(text) {\n\tvar encryptedStoreAreaStartMarker = \"<pre id=\\\"encryptedStoreArea\\\" type=\\\"text/plain\\\" style=\\\"display:none;\\\">\",\n\t\tencryptedStoreAreaStart = text.indexOf(encryptedStoreAreaStartMarker);\n\tif(encryptedStoreAreaStart !== -1) {\n\t\tvar encryptedStoreAreaEnd = text.indexOf(\"</pre>\",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 !== \"$:/isEncrypted\") {\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: \"Enter a password to decrypt the imported TiddlyWiki\",\n\t\t\tnoUserName: true,\n\t\t\tcanCancel: true,\n\t\t\tsubmitText: \"Decrypt\",\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",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/csv.js": {
+ "title": "$:/core/modules/utils/csv.js",
+ "text": "/*\\\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\"use strict\";\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 || \",\",\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 !== \"\";\n\t\t});\n\tif(rows.length < 1) {\n\t\treturn \"Missing header row\";\n\t}\n\tvar headings = rows[0].split(separator),\n\t\tresults = [];\n\tfor(var row=1; row<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 \"Malformed CSV row '\" + rows[row] + \"'\";\n\t\t}\n\t\tfor(var column=0; column<columns.length; column++) {\n\t\t\tvar columnName = headings[column];\n\t\t\tcolumnResult[columnName] = $tw.utils.trim(columns[column] || \"\");\n\t\t}\n\t\tresults.push(columnResult);\t\t\t\n\t}\n\treturn results;\n}\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/diff-match-patch/diff_match_patch.js": {
+ "text": "(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){\"undefined\"==typeof d&&(d=0>=this.Diff_Timeout?Number.MAX_VALUE:(new Date).getTime()+1E3*this.Diff_Timeout);if(null==a||null==b)throw Error(\"Null input. (diff_main)\");if(a==b)return a?[[DIFF_EQUAL,a]]:[];\"undefined\"==typeof c&&(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&&a.unshift([DIFF_EQUAL,c]);g&&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>b.length?a:b,f=a.length>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>b.length&&(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&&100<a.length&&100<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,\"\"]);for(var e=d=b=0,f=\"\",g=\"\";b<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<=d&&1<=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<=e;e--)a.splice(b,0,d[e]);b+=\nd.length}d=e=0;g=f=\"\"}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<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<f&&!((new Date).getTime()>c);t++){for(var v=-t+p;v<=t-x;v+=2){var n=f+v;var r=v==-t||v!=t&&h[n-1]<h[n+1]?h[n+1]:h[n-1]+1;for(var y=r-v;r<d&&y<e&&a.charAt(r)==b.charAt(y);)r++,y++;h[n]=r;if(r>d)x+=2;else if(y>e)p+=2;else if(m&&(n=f+k-v,0<=n&&n<g&&-1!=l[n])){var u=d-l[n];if(r>=\nu)return this.diff_bisectSplit_(a,b,r,y,c)}}for(v=-t+w;v<=t-q;v+=2){n=f+v;u=v==-t||v!=t&&l[n-1]<l[n+1]?l[n+1]:l[n-1]+1;for(r=u-v;u<d&&r<e&&a.charAt(d-u-1)==b.charAt(e-r-1);)u++,r++;l[n]=u;if(u>d)q+=2;else if(r>e)w+=2;else if(!m&&(n=f+k-v,0<=n&&n<g&&-1!=h[n]&&(r=h[n],y=f+r-n,u=d-u,r>=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=\"\",c=0,f=-1,g=d.length;f<a.length-1;){f=a.indexOf(\"\\n\",c);-1==f&&(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]=\"\";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<a.length;c++){for(var d=a[c][1],e=[],f=0;f<d.length;f++)e[f]=b[d.charCodeAt(f)];a[c][1]=e.join(\"\")}};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<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<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>d?a=a.substring(c-d):c<d&&(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=\"\",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<u+p&&(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>=a.length?[h,k,l,m,g]:null}if(0>=this.Diff_Timeout)return null;\nvar d=a.length>b.length?a:b,e=a.length>b.length?b:a;if(4>d.length||2*e.length<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>d[4].length?g:d:d:g;else return null;if(a.length>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<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&&e.length<=Math.max(g,h)&&e.length<=Math.max(l,k)&&(a.splice(c[d-1],0,[DIFF_DELETE,e]),a[c[d-1]+1][0]=DIFF_INSERT,d--,d--,f=0<d?c[d-1]:-1,k=l=h=g=0,e=null,b=!0)),f++;b&&this.diff_cleanupMerge(a);this.diff_cleanupSemanticLossless(a);for(f=1;f<a.length;){if(a[f-1][0]==\nDIFF_DELETE&&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>=e){if(d>=b.length/2||d>=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>=b.length/2||e>=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&&c.match(diff_match_patch.whitespaceRegex_),h=f&&d.match(diff_match_patch.whitespaceRegex_);c=g&&c.match(diff_match_patch.linebreakRegex_);d=h&&d.match(diff_match_patch.linebreakRegex_);var k=c&&a.match(diff_match_patch.blanklineEndRegex_),l=d&&b.match(diff_match_patch.blanklineStartRegex_);\nreturn k||l?5:c||d?4:e&&!g&&h?3:g||h?2:e||f?1:0}for(var c=1;c<a.length-1;){if(a[c-1][0]==DIFF_EQUAL&&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>=k&&(k=m,g=d,h=e,l=f)}a[c-1][1]!=g&&(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<a.length;)a[f][0]==DIFF_EQUAL?(a[f][1].length<this.Diff_EditCost&&(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&&(g&&h&&l&&k||e.length<this.Diff_EditCost/2&&3==g+h+l+k)&&(a.splice(c[d-1],0,[DIFF_DELETE,e]),a[c[d-1]+1][0]=DIFF_INSERT,d--,e=null,g&&h?(l=k=!0,d=0):(d--,f=0<d?c[d-1]:-1,l=k=!1),b=!0)),f++;b&&this.diff_cleanupMerge(a)};\ndiff_match_patch.prototype.diff_cleanupMerge=function(a){a.push([DIFF_EQUAL,\"\"]);for(var b=0,c=0,d=0,e=\"\",f=\"\",g;b<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<c+d?(0!==c&&0!==d&&(g=this.diff_commonPrefix(f,e),0!==g&&(0<b-c-d&&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&&(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&&a[b-1][0]==DIFF_EQUAL?(a[b-1][1]+=a[b][1],a.splice(b,1)):b++,c=d=0,f=e=\"\"}\"\"===a[a.length-1][1]&&a.pop();c=!1;for(b=1;b<a.length-1;)a[b-1][0]==DIFF_EQUAL&&a[b+1][0]==DIFF_EQUAL&&(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]&&(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&&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<a.length;g++){a[g][0]!==DIFF_INSERT&&(c+=a[g][1].length);a[g][0]!==DIFF_DELETE&&(d+=a[g][1].length);if(c>b)break;e=c;f=d}return a.length!=g&&a[g][0]===DIFF_DELETE?f:f+(b-e)};\ndiff_match_patch.prototype.diff_prettyHtml=function(a){for(var b=[],c=/&/g,d=/</g,e=/>/g,f=/\\n/g,g=0;g<a.length;g++){var h=a[g][0],l=a[g][1].replace(c,\"&\").replace(d,\"<\").replace(e,\">\").replace(f,\"¶<br>\");switch(h){case DIFF_INSERT:b[g]='<ins style=\"background:#e6ffe6;\">'+l+\"</ins>\";break;case DIFF_DELETE:b[g]='<del style=\"background:#ffe6e6;\">'+l+\"</del>\";break;case DIFF_EQUAL:b[g]=\"<span>\"+l+\"</span>\"}}return b.join(\"\")};\ndiff_match_patch.prototype.diff_text1=function(a){for(var b=[],c=0;c<a.length;c++)a[c][0]!==DIFF_INSERT&&(b[c]=a[c][1]);return b.join(\"\")};diff_match_patch.prototype.diff_text2=function(a){for(var b=[],c=0;c<a.length;c++)a[c][0]!==DIFF_DELETE&&(b[c]=a[c][1]);return b.join(\"\")};\ndiff_match_patch.prototype.diff_levenshtein=function(a){for(var b=0,c=0,d=0,e=0;e<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<a.length;c++)switch(a[c][0]){case DIFF_INSERT:b[c]=\"+\"+encodeURI(a[c][1]);break;case DIFF_DELETE:b[c]=\"-\"+a[c][1].length;break;case DIFF_EQUAL:b[c]=\"=\"+a[c][1].length}return b.join(\"\\t\").replace(/%20/g,\" \")};\ndiff_match_patch.prototype.diff_fromDelta=function(a,b){for(var c=[],d=0,e=0,f=b.split(/\\t/g),g=0;g<f.length;g++){var h=f[g].substring(1);switch(f[g].charAt(0)){case \"+\":try{c[d++]=[DIFF_INSERT,decodeURI(h)]}catch(k){throw Error(\"Illegal escape in diff_fromDelta: \"+h);}break;case \"-\":case \"=\":var l=parseInt(h,10);if(isNaN(l)||0>l)throw Error(\"Invalid number in diff_fromDelta: \"+h);h=a.substring(e,e+=l);\"=\"==f[g].charAt(0)?c[d++]=[DIFF_EQUAL,h]:c[d++]=[DIFF_DELETE,h];break;default:if(f[g])throw Error(\"Invalid diff operation in diff_fromDelta: \"+\nf[g]);}}if(e!=a.length)throw Error(\"Delta length (\"+e+\") does not equal source text length (\"+a.length+\").\");return c};diff_match_patch.prototype.match_main=function(a,b,c){if(null==a||null==b||null==c)throw Error(\"Null input. (match_main)\");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>this.Match_MaxBits)throw Error(\"Pattern too long for this browser.\");var e=this.match_alphabet_(b),f=this,g=this.Match_Threshold,h=a.indexOf(b,c);-1!=h&&(g=Math.min(d(0,h),g),h=a.lastIndexOf(b,c+b.length),-1!=h&&(g=Math.min(d(0,h),g)));var l=1<<b.length-1;h=-1;for(var k,m,p=b.length+a.length,x,w=0;w<b.length;w++){k=0;for(m=p;k<m;)d(w,\nc+m)<=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<<w)-1;q>=k;q--){var t=e[a.charAt(q-1)];m[q]=0===w?(m[q+1]<<1|1)&t:(m[q+1]<<1|1)&t|(x[q+1]|x[q])<<1|1|x[q+1];if(m[q]&l&&(t=d(w,q-1),t<=g))if(g=t,h=q-1,h>c)k=Math.max(1,2*c-h);else break}if(d(w+1,c)>g)break;x=m}return h};\ndiff_match_patch.prototype.match_alphabet_=function(a){for(var b={},c=0;c<a.length;c++)b[a.charAt(c)]=0;for(c=0;c<a.length;c++)b[a.charAt(c)]|=1<<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)&&c.length<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))&&a.diffs.unshift([DIFF_EQUAL,c]);(d=b.substring(a.start2+a.length1,a.start2+a.length1+d))&&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(\"string\"==typeof a&&\"string\"==typeof b&&\"undefined\"==typeof c){var d=a;b=this.diff_main(d,b,!0);2<b.length&&(this.diff_cleanupSemantic(b),this.diff_cleanupEfficiency(b))}else if(a&&\"object\"==typeof a&&\"undefined\"==typeof b&&\"undefined\"==typeof c)b=a,d=this.diff_text1(b);else if(\"string\"==typeof a&&b&&\"object\"==typeof b&&\"undefined\"==typeof c)d=a;else if(\"string\"==typeof a&&\"string\"==typeof b&&c&&\"object\"==typeof c)d=a,b=c;else throw Error(\"Unknown call format to patch_make.\");\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<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<=2*this.Patch_Margin&&e&&b.length!=l+1?(a.diffs[e++]=b[l],a.length1+=m.length,a.length2+=m.length):\nm.length>=2*this.Patch_Margin&&e&&(this.patch_addContext_(a,h),c.push(a),a=new diff_match_patch.patch_obj,e=0,h=d,f=g)}k!==DIFF_INSERT&&(f+=m.length);k!==DIFF_DELETE&&(g+=m.length)}e&&(this.patch_addContext_(a,h),c.push(a));return c};\ndiff_match_patch.prototype.patch_deepCopy=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=new diff_match_patch.patch_obj;e.diffs=[];for(var f=0;f<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<a.length;f++){var g=a[f].start2+d,h=this.diff_text1(a[f].diffs),l=-1;if(h.length>this.Match_MaxBits){var k=this.match_main(b,h.substring(0,this.Match_MaxBits),g);-1!=k&&(l=this.match_main(b,h.substring(h.length-this.Match_MaxBits),g+h.length-this.Match_MaxBits),-1==l||k>=l)&&(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>this.Match_MaxBits&&this.diff_levenshtein(g)/h.length>this.Patch_DeleteThreshold)e[f]=!1;else{this.diff_cleanupSemanticLossless(g);h=0;var m;for(l=0;l<a[f].diffs.length;l++){var p=a[f].diffs[l];p[0]!==DIFF_EQUAL&&(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&&(b=b.substring(0,k+m)+b.substring(k+this.diff_xIndex(g,h+p[1].length)));p[0]!==DIFF_DELETE&&(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=\"\",d=1;d<=b;d++)c+=String.fromCharCode(d);for(d=0;d<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>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>e[e.length-1][1].length&&(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<a.length;c++)if(!(a[c].length1<=b)){var d=a[c];a.splice(c--,1);for(var e=d.start1,f=d.start2,g=\"\";0!==d.diffs.length;){var h=new diff_match_patch.patch_obj,l=!0;h.start1=e-g.length;h.start2=f-g.length;\"\"!==g&&(h.length1=h.length2=g.length,h.diffs.push([DIFF_EQUAL,g]));for(;0!==d.diffs.length&&h.length1<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&&1==h.diffs.length&&h.diffs[0][0]==DIFF_EQUAL&&k.length>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);\"\"!==k&&(h.length1+=k.length,h.length2+=k.length,0!==h.diffs.length&&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<a.length;c++)b[c]=a[c];return b.join(\"\")};\ndiff_match_patch.prototype.patch_fromText=function(a){var b=[];if(!a)return b;a=a.split(\"\\n\");for(var c=0,d=/^@@ -(\\d+),?(\\d*) \\+(\\d+),?(\\d*) @@$/;c<a.length;){var e=a[c].match(d);if(!e)throw Error(\"Invalid patch string: \"+a[c]);var f=new diff_match_patch.patch_obj;b.push(f);f.start1=parseInt(e[1],10);\"\"===e[2]?(f.start1--,f.length1=1):\"0\"==e[2]?f.length1=0:(f.start1--,f.length1=parseInt(e[2],10));f.start2=parseInt(e[3],10);\"\"===e[4]?(f.start2--,f.length2=1):\"0\"==e[4]?f.length2=0:(f.start2--,f.length2=\nparseInt(e[4],10));for(c++;c<a.length;){e=a[c].charAt(0);try{var g=decodeURI(a[c].substring(1))}catch(h){throw Error(\"Illegal escape in patch_fromText: \"+g);}if(\"-\"==e)f.diffs.push([DIFF_DELETE,g]);else if(\"+\"==e)f.diffs.push([DIFF_INSERT,g]);else if(\" \"==e)f.diffs.push([DIFF_EQUAL,g]);else if(\"@\"==e)break;else if(\"\"!==e)throw Error('Invalid patch mode \"'+e+'\" 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=[\"@@ -\"+(0===this.length1?this.start1+\",0\":1==this.length1?this.start1+1:this.start1+1+\",\"+this.length1)+\" +\"+(0===this.length2?this.start2+\",0\":1==this.length2?this.start2+1:this.start2+1+\",\"+this.length2)+\" @@\\n\"],b,c=0;c<this.diffs.length;c++){switch(this.diffs[c][0]){case DIFF_INSERT:b=\"+\";break;case DIFF_DELETE:b=\"-\";break;case DIFF_EQUAL:b=\" \"}a[c+1]=b+encodeURI(this.diffs[c][1])+\"\\n\"}return a.join(\"\").replace(/%20/g,\" \")};\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);",
+ "type": "application/javascript",
+ "title": "$:/core/modules/utils/diff-match-patch/diff_match_patch.js",
+ "module-type": "library"
+ },
+ "$:/core/modules/utils/dom/animations/slide.js": {
+ "title": "$:/core/modules/utils/dom/animations/slide.js",
+ "text": "/*\\\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\"use strict\";\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: \"none\"},\n\t\t\t{marginBottom: \"\"},\n\t\t\t{marginTop: \"\"},\n\t\t\t{paddingBottom: \"\"},\n\t\t\t{paddingTop: \"\"},\n\t\t\t{height: \"auto\"},\n\t\t\t{opacity: \"\"}\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: \"none\"},\n\t\t{marginTop: \"0px\"},\n\t\t{marginBottom: \"0px\"},\n\t\t{paddingTop: \"0px\"},\n\t\t{paddingBottom: \"0px\"},\n\t\t{height: \"0px\"},\n\t\t{opacity: \"0\"}\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: \"margin-top \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"margin-bottom \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"padding-top \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"padding-bottom \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"height \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"opacity \" + duration + \"ms ease-in-out\"},\n\t\t{marginBottom: currMarginBottom + \"px\"},\n\t\t{marginTop: currMarginTop + \"px\"},\n\t\t{paddingBottom: currPaddingBottom + \"px\"},\n\t\t{paddingTop: currPaddingTop + \"px\"},\n\t\t{height: currHeight + \"px\"},\n\t\t{opacity: \"1\"}\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: \"none\"},\n\t\t\t{marginBottom: \"\"},\n\t\t\t{marginTop: \"\"},\n\t\t\t{paddingBottom: \"\"},\n\t\t\t{paddingTop: \"\"},\n\t\t\t{height: \"auto\"},\n\t\t\t{opacity: \"\"}\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 + \"px\"},\n\t\t{opacity: \"1\"}\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: \"margin-top \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"margin-bottom \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"padding-top \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"padding-bottom \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"height \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"opacity \" + duration + \"ms ease-in-out\"},\n\t\t{marginTop: \"0px\"},\n\t\t{marginBottom: \"0px\"},\n\t\t{paddingTop: \"0px\"},\n\t\t{paddingBottom: \"0px\"},\n\t\t{height: \"0px\"},\n\t\t{opacity: \"0\"}\n\t]);\n}\n\nexports.slide = {\n\topen: slideOpen,\n\tclose: slideClosed\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "animation"
+ },
+ "$:/core/modules/utils/dom/animator.js": {
+ "title": "$:/core/modules/utils/dom/animator.js",
+ "text": "/*\\\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\"use strict\";\n\nfunction Animator() {\n\t// Get the registered animation modules\n\tthis.animations = {};\n\t$tw.modules.applyMethods(\"animation\",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",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/dom/browser.js": {
+ "title": "$:/core/modules/utils/dom/browser.js",
+ "text": "/*\\\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\"use strict\";\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<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\"background-color\" --> \"backgroundColor\"\n\t\"transition\" --> \"webkitTransition\"\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 && document.body.style[propertyName] === undefined) {\n\t\tvar prefixes = [\"O\",\"MS\",\"Moz\",\"webkit\"];\n\t\tfor(var t=0; t<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\"backgroundColor\" --> \"background-color\"\n\t\"webkitTransform\" --> \"-webkit-transform\"\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(\"webkit\") === 0) {\n\t\tstyleName = \"-\" + styleName;\n\t} else if(styleName.indexOf(\"-m-s\") === 0) {\n\t\tstyleName = \"-ms\" + 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\"transform\" --> \"webkitTransform\" --> \"-webkit-transform\"\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\"animationEnd\" --> \"webkitAnimationEnd\"\n*/\n\nvar eventNameCache = {}; // We'll cache the conversions\n\nvar eventNameMappings = {\n\t\"transitionEnd\": {\n\t\tcorrespondingCssProperty: \"transition\",\n\t\tmappings: {\n\t\t\ttransition: \"transitionend\",\n\t\t\tOTransition: \"oTransitionEnd\",\n\t\t\tMSTransition: \"msTransitionEnd\",\n\t\t\tMozTransition: \"transitionend\",\n\t\t\twebkitTransition: \"webkitTransitionEnd\"\n\t\t}\n\t},\n\t\"animationEnd\": {\n\t\tcorrespondingCssProperty: \"animation\",\n\t\tmappings: {\n\t\t\tanimation: \"animationend\",\n\t\t\tOAnimation: \"oAnimationEnd\",\n\t\t\tMSAnimation: \"msAnimationEnd\",\n\t\t\tMozAnimation: \"animationend\",\n\t\t\twebkitAnimation: \"webkitAnimationEnd\"\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\"_requestFullscreen\": db.webkitRequestFullscreen !== undefined ? \"webkitRequestFullscreen\" :\n\t\t\t\t\t\t\tdb.mozRequestFullScreen !== undefined ? \"mozRequestFullScreen\" :\n\t\t\t\t\t\t\tdb.msRequestFullscreen !== undefined ? \"msRequestFullscreen\" :\n\t\t\t\t\t\t\tdb.requestFullscreen !== undefined ? \"requestFullscreen\" : \"\",\n\t\t\"_exitFullscreen\": d.webkitExitFullscreen !== undefined ? \"webkitExitFullscreen\" :\n\t\t\t\t\t\t\td.mozCancelFullScreen !== undefined ? \"mozCancelFullScreen\" :\n\t\t\t\t\t\t\td.msExitFullscreen !== undefined ? \"msExitFullscreen\" :\n\t\t\t\t\t\t\td.exitFullscreen !== undefined ? \"exitFullscreen\" : \"\",\n\t\t\"_fullscreenElement\": d.webkitFullscreenElement !== undefined ? \"webkitFullscreenElement\" :\n\t\t\t\t\t\t\td.mozFullScreenElement !== undefined ? \"mozFullScreenElement\" :\n\t\t\t\t\t\t\td.msFullscreenElement !== undefined ? \"msFullscreenElement\" :\n\t\t\t\t\t\t\td.fullscreenElement !== undefined ? \"fullscreenElement\" : \"\",\n\t\t\"_fullscreenChange\": d.webkitFullscreenElement !== undefined ? \"webkitfullscreenchange\" :\n\t\t\t\t\t\t\td.mozFullScreenElement !== undefined ? \"mozfullscreenchange\" :\n\t\t\t\t\t\t\td.msFullscreenElement !== undefined ? \"MSFullscreenChange\" :\n\t\t\t\t\t\t\td.fullscreenElement !== undefined ? \"fullscreenchange\" : \"\"\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",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/dom/csscolorparser.js": {
+ "title": "$:/core/modules/utils/dom/csscolorparser.js",
+ "text": "// (c) Dean McNamee <dean@gmail.com>, 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 \"Software\"), 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 \"AS IS\", 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 \"transparent\": [0,0,0,0], \"aliceblue\": [240,248,255,1],\n \"antiquewhite\": [250,235,215,1], \"aqua\": [0,255,255,1],\n \"aquamarine\": [127,255,212,1], \"azure\": [240,255,255,1],\n \"beige\": [245,245,220,1], \"bisque\": [255,228,196,1],\n \"black\": [0,0,0,1], \"blanchedalmond\": [255,235,205,1],\n \"blue\": [0,0,255,1], \"blueviolet\": [138,43,226,1],\n \"brown\": [165,42,42,1], \"burlywood\": [222,184,135,1],\n \"cadetblue\": [95,158,160,1], \"chartreuse\": [127,255,0,1],\n \"chocolate\": [210,105,30,1], \"coral\": [255,127,80,1],\n \"cornflowerblue\": [100,149,237,1], \"cornsilk\": [255,248,220,1],\n \"crimson\": [220,20,60,1], \"cyan\": [0,255,255,1],\n \"darkblue\": [0,0,139,1], \"darkcyan\": [0,139,139,1],\n \"darkgoldenrod\": [184,134,11,1], \"darkgray\": [169,169,169,1],\n \"darkgreen\": [0,100,0,1], \"darkgrey\": [169,169,169,1],\n \"darkkhaki\": [189,183,107,1], \"darkmagenta\": [139,0,139,1],\n \"darkolivegreen\": [85,107,47,1], \"darkorange\": [255,140,0,1],\n \"darkorchid\": [153,50,204,1], \"darkred\": [139,0,0,1],\n \"darksalmon\": [233,150,122,1], \"darkseagreen\": [143,188,143,1],\n \"darkslateblue\": [72,61,139,1], \"darkslategray\": [47,79,79,1],\n \"darkslategrey\": [47,79,79,1], \"darkturquoise\": [0,206,209,1],\n \"darkviolet\": [148,0,211,1], \"deeppink\": [255,20,147,1],\n \"deepskyblue\": [0,191,255,1], \"dimgray\": [105,105,105,1],\n \"dimgrey\": [105,105,105,1], \"dodgerblue\": [30,144,255,1],\n \"firebrick\": [178,34,34,1], \"floralwhite\": [255,250,240,1],\n \"forestgreen\": [34,139,34,1], \"fuchsia\": [255,0,255,1],\n \"gainsboro\": [220,220,220,1], \"ghostwhite\": [248,248,255,1],\n \"gold\": [255,215,0,1], \"goldenrod\": [218,165,32,1],\n \"gray\": [128,128,128,1], \"green\": [0,128,0,1],\n \"greenyellow\": [173,255,47,1], \"grey\": [128,128,128,1],\n \"honeydew\": [240,255,240,1], \"hotpink\": [255,105,180,1],\n \"indianred\": [205,92,92,1], \"indigo\": [75,0,130,1],\n \"ivory\": [255,255,240,1], \"khaki\": [240,230,140,1],\n \"lavender\": [230,230,250,1], \"lavenderblush\": [255,240,245,1],\n \"lawngreen\": [124,252,0,1], \"lemonchiffon\": [255,250,205,1],\n \"lightblue\": [173,216,230,1], \"lightcoral\": [240,128,128,1],\n \"lightcyan\": [224,255,255,1], \"lightgoldenrodyellow\": [250,250,210,1],\n \"lightgray\": [211,211,211,1], \"lightgreen\": [144,238,144,1],\n \"lightgrey\": [211,211,211,1], \"lightpink\": [255,182,193,1],\n \"lightsalmon\": [255,160,122,1], \"lightseagreen\": [32,178,170,1],\n \"lightskyblue\": [135,206,250,1], \"lightslategray\": [119,136,153,1],\n \"lightslategrey\": [119,136,153,1], \"lightsteelblue\": [176,196,222,1],\n \"lightyellow\": [255,255,224,1], \"lime\": [0,255,0,1],\n \"limegreen\": [50,205,50,1], \"linen\": [250,240,230,1],\n \"magenta\": [255,0,255,1], \"maroon\": [128,0,0,1],\n \"mediumaquamarine\": [102,205,170,1], \"mediumblue\": [0,0,205,1],\n \"mediumorchid\": [186,85,211,1], \"mediumpurple\": [147,112,219,1],\n \"mediumseagreen\": [60,179,113,1], \"mediumslateblue\": [123,104,238,1],\n \"mediumspringgreen\": [0,250,154,1], \"mediumturquoise\": [72,209,204,1],\n \"mediumvioletred\": [199,21,133,1], \"midnightblue\": [25,25,112,1],\n \"mintcream\": [245,255,250,1], \"mistyrose\": [255,228,225,1],\n \"moccasin\": [255,228,181,1], \"navajowhite\": [255,222,173,1],\n \"navy\": [0,0,128,1], \"oldlace\": [253,245,230,1],\n \"olive\": [128,128,0,1], \"olivedrab\": [107,142,35,1],\n \"orange\": [255,165,0,1], \"orangered\": [255,69,0,1],\n \"orchid\": [218,112,214,1], \"palegoldenrod\": [238,232,170,1],\n \"palegreen\": [152,251,152,1], \"paleturquoise\": [175,238,238,1],\n \"palevioletred\": [219,112,147,1], \"papayawhip\": [255,239,213,1],\n \"peachpuff\": [255,218,185,1], \"peru\": [205,133,63,1],\n \"pink\": [255,192,203,1], \"plum\": [221,160,221,1],\n \"powderblue\": [176,224,230,1], \"purple\": [128,0,128,1],\n \"red\": [255,0,0,1], \"rosybrown\": [188,143,143,1],\n \"royalblue\": [65,105,225,1], \"saddlebrown\": [139,69,19,1],\n \"salmon\": [250,128,114,1], \"sandybrown\": [244,164,96,1],\n \"seagreen\": [46,139,87,1], \"seashell\": [255,245,238,1],\n \"sienna\": [160,82,45,1], \"silver\": [192,192,192,1],\n \"skyblue\": [135,206,235,1], \"slateblue\": [106,90,205,1],\n \"slategray\": [112,128,144,1], \"slategrey\": [112,128,144,1],\n \"snow\": [255,250,250,1], \"springgreen\": [0,255,127,1],\n \"steelblue\": [70,130,180,1], \"tan\": [210,180,140,1],\n \"teal\": [0,128,128,1], \"thistle\": [216,191,216,1],\n \"tomato\": [255,99,71,1], \"turquoise\": [64,224,208,1],\n \"violet\": [238,130,238,1], \"wheat\": [245,222,179,1],\n \"white\": [255,255,255,1], \"whitesmoke\": [245,245,245,1],\n \"yellow\": [255,255,0,1], \"yellowgreen\": [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 < 0 ? 0 : i > 255 ? 255 : i;\n}\n\nfunction clamp_css_float(f) { // Clamp to float 0.0 .. 1.0.\n return f < 0 ? 0 : f > 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 < 0) h += 1;\n else if (h > 1) h -= 1;\n\n if (h * 6 < 1) return m1 + (m2 - m1) * h * 6;\n if (h * 2 < 1) return m2;\n if (h * 3 < 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 >= 0 && iv <= 0xfff)) return null; // Covers NaN.\n return [((iv & 0xf00) >> 4) | ((iv & 0xf00) >> 8),\n (iv & 0xf0) | ((iv & 0xf0) >> 4),\n (iv & 0xf) | ((iv & 0xf) << 4),\n 1];\n } else if (str.length === 7) {\n var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.\n if (!(iv >= 0 && iv <= 0xffffff)) return null; // Covers NaN.\n return [(iv & 0xff0000) >> 16,\n (iv & 0xff00) >> 8,\n iv & 0xff,\n 1];\n }\n\n return null;\n }\n\n var op = str.indexOf('('), ep = str.indexOf(')');\n if (op !== -1 && 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 <= 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",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/dom.js": {
+ "title": "$:/core/modules/utils/dom.js",
+ "text": "/*\\\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\"use strict\";\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 && a.contains(b) :\n\t\t!!(a.compareDocumentPosition(b) & 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 && el.hasAttribute && el.hasAttribute(\"class\") && el.getAttribute(\"class\").split(\" \").indexOf(className) !== -1;\n};\n\nexports.addClass = function(el,className) {\n\tvar c = (el.getAttribute(\"class\") || \"\").split(\" \");\n\tif(c.indexOf(className) === -1) {\n\t\tc.push(className);\n\t\tel.setAttribute(\"class\",c.join(\" \"));\n\t}\n};\n\nexports.removeClass = function(el,className) {\n\tvar c = (el.getAttribute(\"class\") || \"\").split(\" \"),\n\t\tp = c.indexOf(className);\n\tif(p !== -1) {\n\t\tc.splice(p,1);\n\t\tel.setAttribute(\"class\",c.join(\" \"));\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(\"scrollX\" 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 = \"auto\";\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 + \"px\";\n\t\t// Make sure that the dimensions of the textarea are recalculated\n\t\t$tw.utils.forceLayout(domNode);\n\t\t// Set the container to the position we registered at the beginning\n\t\tcontainer.scrollTop = scrollTop;\n\t}\n\treturn newHeight;\n};\n\n/*\nGets the bounding rectangle of an element in absolute page coordinates\n*/\nexports.getBoundingPageRect = function(element) {\n\tvar scrollPos = $tw.utils.getScrollPosition(element.ownerDocument.defaultView),\n\t\tclientRect = element.getBoundingClientRect();\n\treturn {\n\t\tleft: clientRect.left + scrollPos.x,\n\t\twidth: clientRect.width,\n\t\tright: clientRect.right + scrollPos.x,\n\t\ttop: clientRect.top + scrollPos.y,\n\t\theight: clientRect.height,\n\t\tbottom: clientRect.bottom + scrollPos.y\n\t};\n};\n\n/*\nSaves a named password in the browser\n*/\nexports.savePassword = function(name,password) {\n\tvar done = false;\n\ttry {\n\t\twindow.localStorage.setItem(\"tw5-password-\" + name,password);\n\t\tdone = true;\n\t} catch(e) {\n\t}\n\tif(!done) {\n\t\t$tw.savedPasswords = $tw.savedPasswords || Object.create(null);\n\t\t$tw.savedPasswords[name] = password;\n\t}\n};\n\n/*\nRetrieve a named password from the browser\n*/\nexports.getPassword = function(name) {\n\tvar value;\n\ttry {\n\t\tvalue = window.localStorage.getItem(\"tw5-password-\" + name);\n\t} catch(e) {\n\t}\n\tif(value !== undefined) {\n\t\treturn value;\n\t} else {\n\t\treturn ($tw.savedPasswords || Object.create(null))[name] || \"\";\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,\"pulse\");\n\t},false);\n\t// Apply the pulse class\n\t$tw.utils.removeClass(element,\"pulse\");\n\t$tw.utils.forceLayout(element);\n\t$tw.utils.addClass(element,\"pulse\");\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<textAreaStyles.length; t++) {\n\t\tname = textAreaStyles[t];\n\t\tstyleDefs.push(name + \": \" + textAreaStyles.getPropertyValue(name) + \";\");\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(\"\");\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(\"textarea\");\n\ttextArea.style.position = \"fixed\";\n\ttextArea.style.top = 0;\n\ttextArea.style.left = 0;\n\ttextArea.style.fontSize = \"12pt\";\n\ttextArea.style.width = \"2em\";\n\ttextArea.style.height = \"2em\";\n\ttextArea.style.padding = 0;\n\ttextArea.style.border = \"none\";\n\ttextArea.style.outline = \"none\";\n\ttextArea.style.boxShadow = \"none\";\n\ttextArea.style.background = \"transparent\";\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(\"copy\");\n\t} catch (err) {\n\t}\n\tif(!options.doNotNotify) {\n\t\t$tw.notifier.display(succeeded ? \"$:/language/Notifications/CopiedToClipboard/Succeeded\" : \"$:/language/Notifications/CopiedToClipboard/Failed\");\n\t}\n\tdocument.body.removeChild(textArea);\n};\n\nexports.getLocationPath = function() {\n\treturn window.location.toString().split(\"#\")[0];\n};\n\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/dom/dragndrop.js": {
+ "title": "$:/core/modules/utils/dom/dragndrop.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nOptions:\n\ndomNode: dom node to make draggable\ndragImageType: \"pill\" or \"dom\"\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 || \"dom\",\n\t\tdragImage,\n\t\tdomNode = options.domNode;\n\t// Make the dom node draggable (not necessary for anchor tags)\n\tif((domNode.tagName || \"\").toLowerCase() !== \"a\") {\n\t\tdomNode.setAttribute(\"draggable\",\"true\");\t\t\n\t}\n\t// Add event handlers\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \"dragstart\", 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 && options.dragTiddlerFn(),\n\t\t\t\tdragFilter = options.dragFilterFn && 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 > 0 && 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,\"tc-dragging\");\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(\"div\");\n\t\t\t\tdragImage.className = \"tc-tiddler-dragger\";\n\t\t\t\tvar inner = options.widget.document.createElement(\"div\");\n\t\t\t\tinner.className = \"tc-tiddler-dragger-inner\";\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 + \" tiddlers\"\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 = \"all\";\n\t\t\t\tif(dataTransfer.setDragImage) {\n\t\t\t\t\tif(dragImageType === \"pill\") {\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 > 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 = \"[\" + jsonData.join(\",\") + \"]\";\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(\"text/vnd.tiddler\",jsonData);\n\t\t\t\t\tdataTransfer.setData(\"text/plain\",titleString);\n\t\t\t\t\tdataTransfer.setData(\"text/x-moz-url\",\"data:text/vnd.tiddler,\" + encodeURIComponent(jsonData));\n\t\t\t\t}\n\t\t\t\tdataTransfer.setData(\"URL\",\"data:text/vnd.tiddler,\" + encodeURIComponent(jsonData));\n\t\t\t\tdataTransfer.setData(\"Text\",titleString);\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t\treturn false;\n\t\t}},\n\t\t{name: \"dragend\", 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 && options.dragTiddlerFn(),\n\t\t\t\t\tdragFilter = options.dragFilterFn && 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,\"tc-dragging\");\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(\"Available data types:\");\n\t\tfor(var type=0; type<dataTransfer.types.length; type++) {\n\t\t\tconsole.log(\"type\",dataTransfer.types[type],dataTransfer.getData(dataTransfer.types[type]))\n\t\t}\n\t}\n\tfor(var t=0; t<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 !== \"\" && data !== null) {\n\t\t\t\tif($tw.log.IMPORT) {\n\t\t\t\t\tconsole.log(\"Importing data type '\" + dataType.type + \"', data: '\" + data + \"'\")\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: \"text/vnd.tiddler\", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn parseJSONTiddlers(data,fallbackTitle);\n\t}},\n\t{type: \"URL\", 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: \"text/x-moz-url\", 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: \"text/html\", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn [{title: fallbackTitle, text: data}];\n\t}},\n\t{type: \"text/plain\", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn [{title: fallbackTitle, text: data}];\n\t}},\n\t{type: \"Text\", IECompatible: true, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn [{title: fallbackTitle, text: data}];\n\t}},\n\t{type: \"text/uri-list\", 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",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/dom/http.js": {
+ "title": "$:/core/modules/utils/dom/http.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nA quick and dirty HTTP function; to be refactored later. Options are:\n\turl: URL to retrieve\n\theaders: hashmap of headers to send\n\ttype: GET, PUT, POST etc\n\tcallback: function invoked with (err,data,xhr)\n\treturnProp: string name of the property to return as first argument of callback\n*/\nexports.httpRequest = function(options) {\n\tvar type = options.type || \"GET\",\n\t\turl = options.url,\n\t\theaders = options.headers || {accept: \"application/json\"},\n\t\thasHeader = function(targetHeader) {\n\t\t\ttargetHeader = targetHeader.toLowerCase();\n\t\t\tvar result = false;\n\t\t\t$tw.utils.each(headers,function(header,headerTitle,object) {\n\t\t\t\tif(headerTitle.toLowerCase() === targetHeader) {\n\t\t\t\t\tresult = true;\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn result;\n\t\t},\n\t\treturnProp = options.returnProp || \"responseText\",\n\t\trequest = new XMLHttpRequest(),\n\t\tdata = \"\",\n\t\tf,results;\n\t// Massage the data hashmap into a string\n\tif(options.data) {\n\t\tif(typeof options.data === \"string\") { // 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 + \"=\" + encodeURIComponent(dataItem));\n\t\t\t});\n\t\t\tif(type === \"GET\" || type === \"HEAD\") {\n\t\t\t\turl += \"?\" + results.join(\"&\");\n\t\t\t} else {\n\t\t\t\tdata = results.join(\"&\");\n\t\t\t}\n\t\t}\n\t}\n\t// Set up the state change handler\n\trequest.onreadystatechange = function() {\n\t\tif(this.readyState === 4) {\n\t\t\tif(this.status === 200 || this.status === 201 || this.status === 204) {\n\t\t\t\t// Success!\n\t\t\t\toptions.callback(null,this[returnProp],this);\n\t\t\t\treturn;\n\t\t\t}\n\t\t// Something went wrong\n\t\toptions.callback($tw.language.getString(\"Error/XMLHttpRequest\") + \": \" + this.status,null,this);\n\t\t}\n\t};\n\t// Make the request\n\trequest.open(type,url,true);\n\tif(headers) {\n\t\t$tw.utils.each(headers,function(header,headerTitle,object) {\n\t\t\trequest.setRequestHeader(headerTitle,header);\n\t\t});\n\t}\n\tif(data && !hasHeader(\"Content-Type\")) {\n\t\trequest.setRequestHeader(\"Content-Type\",\"application/x-www-form-urlencoded; charset=UTF-8\");\n\t}\n\tif(!hasHeader(\"X-Requested-With\")) {\n\t\trequest.setRequestHeader(\"X-Requested-With\",\"TiddlyWiki\");\n\t}\n\ttry {\n\t\trequest.send(data);\n\t} catch(e) {\n\t\toptions.callback(e,null,this);\n\t}\n\treturn request;\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/dom/keyboard.js": {
+ "title": "$:/core/modules/utils/dom/keyboard.js",
+ "text": "/*\\\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\"use strict\";\n\n[\"parseKeyDescriptor\",\"checkKeyDescriptor\"].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",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/dom/modal.js": {
+ "title": "$:/core/modules/utils/dom/modal.js",
+ "text": "/*\\\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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\nvar navigator = require(\"$:/core/modules/widgets/navigator.js\");\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 && (options.variables.rootwindow === \"true\" ||\n\t\t\t\toptions.variables.rootwindow === \"yes\") ? document :\n\t\t\t\t(options.event.event && options.event.event.target ? options.event.event.target.ownerDocument : document);\n\tthis.srcWindow = this.srcDocument.defaultView;\n\tvar self = this,\n\t\trefreshHandler,\n\t\tduration = $tw.utils.getAnimationDuration(),\n\t\ttiddler = this.wiki.getTiddler(title);\n\t// Don't do anything if the tiddler doesn't exist\n\tif(!tiddler) {\n\t\treturn;\n\t}\n\t// Create the variables\n\tvar variables = $tw.utils.extend({\n\t\t\tcurrentTiddler: title,\n\t\t\t\"tv-story-list\": (options.event && options.event.widget ? options.event.widget.getVariable(\"tv-story-list\") : \"\"),\n\t\t\t\"tv-history-list\": (options.event && options.event.widget ? options.event.widget.getVariable(\"tv-history-list\") : \"\")\n\t\t},options.variables);\n\n\t// Create the wrapper divs\n\tvar wrapper = this.srcDocument.createElement(\"div\"),\n\t\tmodalBackdrop = this.srcDocument.createElement(\"div\"),\n\t\tmodalWrapper = this.srcDocument.createElement(\"div\"),\n\t\tmodalHeader = this.srcDocument.createElement(\"div\"),\n\t\theaderTitle = this.srcDocument.createElement(\"h3\"),\n\t\tmodalBody = this.srcDocument.createElement(\"div\"),\n\t\tmodalLink = this.srcDocument.createElement(\"a\"),\n\t\tmodalFooter = this.srcDocument.createElement(\"div\"),\n\t\tmodalFooterHelp = this.srcDocument.createElement(\"span\"),\n\t\tmodalFooterButtons = this.srcDocument.createElement(\"span\");\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,\"tc-modal-wrapper\");\n\tif(tiddler.fields && tiddler.fields.class) {\n\t\t$tw.utils.addClass(wrapper,tiddler.fields.class);\n\t}\n\t$tw.utils.addClass(modalBackdrop,\"tc-modal-backdrop\");\n\t$tw.utils.addClass(modalWrapper,\"tc-modal\");\n\t$tw.utils.addClass(modalHeader,\"tc-modal-header\");\n\t$tw.utils.addClass(modalBody,\"tc-modal-body\");\n\t$tw.utils.addClass(modalFooter,\"tc-modal-footer\");\n\t// Join them together\n\twrapper.appendChild(modalBackdrop);\n\twrapper.appendChild(modalWrapper);\n\tmodalHeader.appendChild(headerTitle);\n\tmodalWrapper.appendChild(modalHeader);\n\tmodalWrapper.appendChild(modalBody);\n\tmodalFooter.appendChild(modalFooterHelp);\n\tmodalFooter.appendChild(modalFooterButtons);\n\tmodalWrapper.appendChild(modalFooter);\n\tvar navigatorTree = {\n\t\t\"type\": \"navigator\",\n\t\t\"attributes\": {\n\t\t\t\"story\": {\n\t\t\t\t\"name\": \"story\",\n\t\t\t\t\"type\": \"string\",\n\t\t\t\t\"value\": variables[\"tv-story-list\"]\n\t\t\t},\n\t\t\t\"history\": {\n\t\t\t\t\"name\": \"history\",\n\t\t\t\t\"type\": \"string\",\n\t\t\t\t\"value\": variables[\"tv-history-list\"]\n\t\t\t}\n\t\t},\n\t\t\"tag\": \"$navigator\",\n\t\t\"isBlock\": true,\n\t\t\"children\": []\n\t};\n\tvar navigatorWidgetNode = new navigator.navigator(navigatorTree, {\n\t\twiki: this.wiki,\n\t\tdocument : this.srcDocument,\n\t\tparentWidget: $tw.rootWidget\n\t});\n\tnavigatorWidgetNode.render(modalBody,null);\n\t\n\t// Render the title of the message\n\tvar headerWidgetNode = this.wiki.makeTranscludeWidget(title,{\n\t\tfield: \"subtitle\",\n\t\tmode: \"inline\",\n\t\tchildren: [{\n\t\t\ttype: \"text\",\n\t\t\tattributes: {\n\t\t\t\ttext: {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tvalue: title\n\t\t}}}],\n\t\tparentWidget: navigatorWidgetNode,\n\t\tdocument: this.srcDocument,\n\t\tvariables: variables,\n\t\timportPageMacros: true\n\t});\n\theaderWidgetNode.render(headerTitle,null);\n\t// Render the body of the message\n\tvar bodyWidgetNode = this.wiki.makeTranscludeWidget(title,{\n\t\tparentWidget: navigatorWidgetNode,\n\t\tdocument: this.srcDocument,\n\t\tvariables: variables,\n\t\timportPageMacros: true\n\t});\n\n\tbodyWidgetNode.render(modalBody,null);\n\t// Setup the link if present\n\tif(options.downloadLink) {\n\t\tmodalLink.href = options.downloadLink;\n\t\tmodalLink.appendChild(this.srcDocument.createTextNode(\"Right-click to save changes\"));\n\t\tmodalBody.appendChild(modalLink);\n\t}\n\t// Render the footer of the message\n\tif(tiddler.fields && tiddler.fields.help) {\n\t\tvar link = this.srcDocument.createElement(\"a\");\n\t\tlink.setAttribute(\"href\",tiddler.fields.help);\n\t\tlink.setAttribute(\"target\",\"_blank\");\n\t\tlink.setAttribute(\"rel\",\"noopener noreferrer\");\n\t\tlink.appendChild(this.srcDocument.createTextNode(\"Help\"));\n\t\tmodalFooterHelp.appendChild(link);\n\t\tmodalFooterHelp.style.float = \"left\";\n\t}\n\tvar footerWidgetNode = this.wiki.makeTranscludeWidget(title,{\n\t\tfield: \"footer\",\n\t\tmode: \"inline\",\n\t\tchildren: [{\n\t\t\ttype: \"button\",\n\t\t\tattributes: {\n\t\t\t\tmessage: {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tvalue: \"tm-close-tiddler\"\n\t\t\t\t}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\",\n\t\t\t\tattributes: {\n\t\t\t\t\ttext: {\n\t\t\t\t\t\ttype: \"string\",\n\t\t\t\t\t\tvalue: $tw.language.getString(\"Buttons/Close/Caption\")\n\t\t\t}}}\n\t\t]}],\n\t\tparentWidget: navigatorWidgetNode,\n\t\tdocument: this.srcDocument,\n\t\tvariables: variables,\n\t\timportPageMacros: true\n\t});\n\tfooterWidgetNode.render(modalFooterButtons,null);\n\t// Set up the refresh handler\n\trefreshHandler = function(changes) {\n\t\theaderWidgetNode.refresh(changes,modalHeader,null);\n\t\tbodyWidgetNode.refresh(changes,modalBody,null);\n\t\tfooterWidgetNode.refresh(changes,modalFooterButtons,null);\n\t};\n\tthis.wiki.addEventListener(\"change\",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(\"change\",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: \"0\"}\n\t\t]);\n\t\t$tw.utils.setStyle(modalWrapper,[\n\t\t\t{transform: \"translateY(\" + self.srcWindow.innerHeight + \"px)\"}\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(\"tm-close-tiddler\",closeHandler,false);\n\tbodyWidgetNode.addEventListener(\"tm-close-tiddler\",closeHandler,false);\n\tfooterWidgetNode.addEventListener(\"tm-close-tiddler\",closeHandler,false);\n\t// Set the initial styles for the message\n\t$tw.utils.setStyle(modalBackdrop,[\n\t\t{opacity: \"0\"}\n\t]);\n\t$tw.utils.setStyle(modalWrapper,[\n\t\t{transformOrigin: \"0% 0%\"},\n\t\t{transform: \"translateY(\" + (-this.srcWindow.innerHeight) + \"px)\"}\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: \"opacity \" + duration + \"ms ease-out\"}\n\t]);\n\t$tw.utils.setStyle(modalWrapper,[\n\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms ease-in-out\"}\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: \"0.7\"}\n\t]);\n\t$tw.utils.setStyle(modalWrapper,[\n\t\t{transform: \"translateY(0px)\"}\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,\"tc-modal-displayed\",this.modalCount > 0);\n\t}\n};\n\nexports.Modal = Modal;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/dom/notifier.js": {
+ "title": "$:/core/modules/utils/dom/notifier.js",
+ "text": "/*\\\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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\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(\"div\"),\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,\"tc-notification\");\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(\"change\",refreshHandler);\n\t// Set the initial styles for the notification\n\t$tw.utils.setStyle(notification,[\n\t\t{opacity: \"0\"},\n\t\t{transformOrigin: \"0% 0%\"},\n\t\t{transform: \"translateY(\" + (-window.innerHeight) + \"px)\"},\n\t\t{transition: \"opacity \" + duration + \"ms ease-out, \" + $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms ease-in-out\"}\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: \"1.0\"},\n\t\t{transform: \"translateY(0px)\"}\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(\"change\",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: \"0.0\"},\n\t\t\t{transform: \"translateX(\" + (notification.offsetWidth) + \"px)\"}\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",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/dom/popup.js": {
+ "title": "$:/core/modules/utils/dom/popup.js",
+ "text": "/*\\\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\"use strict\";\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<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 === \"click\") {\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,\"tc-popup-handle\")) {\n\t\t\tisHandle = true;\n\t\t\tpopupCount++;\n\t\t}\n\t\tif($tw.utils.hasClass(node,\"tc-popup-keep\")) {\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,\"tc-popup\")) {\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 && this.findPopup(options.title) === -1) {\n\t\tthis.popups.push({\n\t\t\ttitle: options.title,\n\t\t\twiki: options.wiki,\n\t\t\tdomNode: options.domNode,\n\t\t\tnoStateReference: options.noStateReference\n\t\t});\n\t}\n\t// Set the state tiddler\n\tvar rect;\n\tif(options.domNodeRect) {\n\t\trect = options.domNodeRect;\n\t} else {\n\t\trect = {\n\t\t\tleft: options.domNode.offsetLeft,\n\t\t\ttop: options.domNode.offsetTop,\n\t\t\twidth: options.domNode.offsetWidth,\n\t\t\theight: options.domNode.offsetHeight\n\t\t};\n\t}\n\tvar popupRect = \"(\" + rect.left + \",\" + rect.top + \",\" + \n\t\t\t\trect.width + \",\" + rect.height + \")\";\n\tif(options.noStateReference) {\n\t\toptions.wiki.setText(options.title,\"text\",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 > 0) {\n\t\tthis.rootElement.addEventListener(\"click\",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<numPopups; t++) {\n\t\tvar popup = this.popups.pop();\n\t\tif(popup.title) {\n\t\t\tif(popup.noStateReference) {\n\t\t\t\tpopup.wiki.deleteTiddler(popup.title);\n\t\t\t} else {\n\t\t\t\tpopup.wiki.deleteTiddler($tw.utils.parseTextReference(popup.title).title);\n \t\t}\n\t\t}\n\t}\n\tif(this.popups.length === 0) {\n\t\tthis.rootElement.removeEventListener(\"click\",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",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/dom/scroller.js": {
+ "title": "$:/core/modules/utils/dom/scroller.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nEvent handler for when the `tm-scroll` event hits the document body\n*/\nvar PageScroller = function() {\n\tthis.idRequestFrame = null;\n\tthis.requestAnimationFrame = window.requestAnimationFrame ||\n\t\twindow.webkitRequestAnimationFrame ||\n\t\twindow.mozRequestAnimationFrame ||\n\t\tfunction(callback) {\n\t\t\treturn window.setTimeout(callback, 1000/60);\n\t\t};\n\tthis.cancelAnimationFrame = window.cancelAnimationFrame ||\n\t\twindow.webkitCancelAnimationFrame ||\n\t\twindow.webkitCancelRequestAnimationFrame ||\n\t\twindow.mozCancelAnimationFrame ||\n\t\twindow.mozCancelRequestAnimationFrame ||\n\t\tfunction(id) {\n\t\t\twindow.clearTimeout(id);\n\t\t};\n};\n\nPageScroller.prototype.isScrolling = function() {\n\treturn this.idRequestFrame !== null;\n}\n\nPageScroller.prototype.cancelScroll = function(srcWindow) {\n\tif(this.idRequestFrame) {\n\t\tthis.cancelAnimationFrame.call(srcWindow,this.idRequestFrame);\n\t\tthis.idRequestFrame = null;\n\t}\n};\n\n/*\nHandle an event\n*/\nPageScroller.prototype.handleEvent = function(event) {\n\tif(event.type === \"tm-scroll\") {\n\t\tif(event.paramObject && event.paramObject.selector) {\n\t\t\tthis.scrollSelectorIntoView(null,event.paramObject.selector);\n\t\t} else {\n\t\t\tthis.scrollIntoView(event.target);\t\t\t\n\t\t}\n\t\treturn false; // Event was handled\n\t}\n\treturn true;\n};\n\n/*\nHandle a scroll event hitting the page document\n*/\nPageScroller.prototype.scrollIntoView = function(element,callback) {\n\tvar self = this,\n\t\tduration = $tw.utils.getAnimationDuration(),\n\t srcWindow = element ? element.ownerDocument.defaultView : window;\n\t// Now get ready to scroll the body\n\tthis.cancelScroll(srcWindow);\n\tthis.startTime = Date.now();\n\t// Get the height of any position:fixed toolbars\n\tvar toolbar = srcWindow.document.querySelector(\".tc-adjust-top-of-scroll\"),\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 < 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 <= 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 >= 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 < 1) {\n\t\t\t\tself.idRequestFrame = self.requestAnimationFrame.call(srcWindow,drawFrame);\n\t\t\t}\n\t\t};\n\tdrawFrame();\n};\n\nPageScroller.prototype.scrollSelectorIntoView = function(baseElement,selector,callback) {\n\tbaseElement = baseElement || document.body;\n\tvar element = baseElement.querySelector(selector);\n\tif(element) {\n\t\tthis.scrollIntoView(element,callback);\t\t\n\t}\n};\n\nexports.PageScroller = PageScroller;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/edition-info.js": {
+ "title": "$:/core/modules/utils/edition-info.js",
+ "text": "/*\\\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\"use strict\";\n\nvar fs = require(\"fs\"),\n\tpath = require(\"path\");\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<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<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] && $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,\"tiddlywiki.info\"),\"utf8\"));\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",
+ "type": "application/javascript",
+ "module-type": "utils-node"
+ },
+ "$:/core/modules/utils/fakedom.js": {
+ "title": "$:/core/modules/utils/fakedom.js",
+ "text": "/*\\\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\"use strict\";\n\n// Sequence number used to enable us to track objects for testing\nvar sequenceNumber = null;\n\nvar bumpSequenceNumber = function(object) {\n\tif(sequenceNumber !== null) {\n\t\tobject.sequenceNumber = sequenceNumber++;\n\t}\n};\n\nvar TW_Node = function (){\n\tthrow TypeError(\"Illegal constructor\");\n};\n\nObject.defineProperty(TW_Node.prototype, 'ELEMENT_NODE', {\n\tget: function() {\n\t\treturn 1;\n\t}\n});\n\nObject.defineProperty(TW_Node.prototype, 'TEXT_NODE', {\n\tget: function() {\n\t\treturn 3;\n\t}\n});\n\nvar TW_TextNode = function(text) {\n\tbumpSequenceNumber(this);\n\tthis.textContent = text + \"\";\n};\n\nTW_TextNode.prototype = Object.create(TW_Node.prototype);\n\nObject.defineProperty(TW_TextNode.prototype, \"nodeType\", {\n\tget: function() {\n\t\treturn this.TEXT_NODE;\n\t}\n});\n\nObject.defineProperty(TW_TextNode.prototype, \"formattedTextContent\", {\n\tget: function() {\n\t\treturn this.textContent.replace(/(\\r?\\n)/g,\"\");\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 || \"http://www.w3.org/1999/xhtml\";\n};\n\nTW_Element.prototype = Object.create(TW_Node.prototype);\n\nObject.defineProperty(TW_Element.prototype, \"style\", {\n\tget: function() {\n\t\treturn this._style;\n\t},\n\tset: function(str) {\n\t\tvar self = this;\n\t\tstr = str || \"\";\n\t\t$tw.utils.each(str.split(\";\"),function(declaration) {\n\t\t\tvar parts = declaration.split(\":\"),\n\t\t\t\tname = $tw.utils.trim(parts[0]),\n\t\t\t\tvalue = $tw.utils.trim(parts[1]);\n\t\t\tif(name && value) {\n\t\t\t\tself._style[$tw.utils.convertStyleNameToPropertyName(name)] = value;\n\t\t\t}\n\t\t});\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"nodeType\", {\n\tget: function() {\n\t\treturn this.ELEMENT_NODE;\n\t}\n});\n\nTW_Element.prototype.getAttribute = function(name) {\n\tif(this.isRaw) {\n\t\tthrow \"Cannot getAttribute on a raw TW_Element\";\n\t}\n\treturn this.attributes[name];\n};\n\nTW_Element.prototype.setAttribute = function(name,value) {\n\tif(this.isRaw) {\n\t\tthrow \"Cannot setAttribute on a raw TW_Element\";\n\t}\n\tthis.attributes[name] = value + \"\";\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 \"Cannot removeAttribute on a raw TW_Element\";\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, \"childNodes\", {\n\tget: function() {\n\t\treturn this.children;\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"firstChild\", {\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, \"tagName\", {\n\tget: function() {\n\t\treturn this.tag || \"\";\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"className\", {\n\tget: function() {\n\t\treturn this.attributes[\"class\"] || \"\";\n\t},\n\tset: function(value) {\n\t\tthis.attributes[\"class\"] = value + \"\";\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"value\", {\n\tget: function() {\n\t\treturn this.attributes.value || \"\";\n\t},\n\tset: function(value) {\n\t\tthis.attributes.value = value + \"\";\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"outerHTML\", {\n\tget: function() {\n\t\tvar output = [],attr,a,v;\n\t\toutput.push(\"<\",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<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(\" \",attr[a],\"=\\\"\",$tw.utils.htmlEncode(v),\"\\\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(this._style) {\n\t\t\tvar style = [];\n\t\t\tfor(var s in this._style) {\n\t\t\t\tstyle.push($tw.utils.convertPropertyNameToStyleName(s) + \":\" + this._style[s] + \";\");\n\t\t\t}\n\t\t\tif(style.length > 0) {\n\t\t\t\toutput.push(\" style=\\\"\",style.join(\"\"),\"\\\"\");\n\t\t\t}\n\t\t}\n\t\toutput.push(\">\");\n\t\tif($tw.config.htmlVoidElements.indexOf(this.tag) === -1) {\n\t\t\toutput.push(this.innerHTML);\n\t\t\toutput.push(\"</\",this.tag,\">\");\n\t\t}\n\t\treturn output.join(\"\");\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"innerHTML\", {\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(\"\");\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, \"textInnerHTML\", {\n\tset: function(value) {\n\t\tif(this.isRaw) {\n\t\t\tthis.rawTextContent = value;\n\t\t} else {\n\t\t\tthrow \"Cannot set textInnerHTML of a non-raw TW_Element\";\n\t\t}\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"textContent\", {\n\tget: function() {\n\t\tif(this.isRaw) {\n\t\t\tif(this.rawTextContent === null) {\n\t\t\t\treturn \"\";\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(\"\");\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, \"formattedTextContent\", {\n\tget: function() {\n\t\tif(this.isRaw) {\n\t\t\treturn \"\";\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(\"\\n\");\n\t\t\t}\n\t\t\tif(this.tag === \"li\") {\n\t\t\t\tb.push(\"* \");\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(\"\\n\");\n\t\t\t}\n\t\t\treturn b.join(\"\");\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: \"CSS1Compat\", // For KaTeX to know that we're not a browser in quirks mode\n\tisTiddlyWikiFakeDom: true\n};\n\nexports.fakeDocument = document;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "global"
+ },
+ "$:/core/modules/utils/filesystem.js": {
+ "title": "$:/core/modules/utils/filesystem.js",
+ "text": "/*\\\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\"use strict\";\n\nvar fs = require(\"fs\"),\n\tpath = require(\"path\");\n\n/*\nReturn the subdirectories of a path\n*/\nexports.getSubdirectories = function(dirPath) {\n\tif(!$tw.utils.isDirectory(dirPath)) {\n\t\treturn null;\n\t}\n\tvar subdirs = [];\n\t$tw.utils.each(fs.readdirSync(dirPath),function(item) {\n\t\tif($tw.utils.isDirectory(path.resolve(dirPath,item))) {\n\t\t\tsubdirs.push(item);\n\t\t}\n\t});\n\treturn subdirs;\n}\n\n/*\nRecursively (and synchronously) copy a directory and all its content\n*/\nexports.copyDirectory = function(srcPath,dstPath) {\n\t// Remove any trailing path separators\n\tsrcPath = path.resolve($tw.utils.removeTrailingSeparator(srcPath));\n\tdstPath = path.resolve($tw.utils.removeTrailingSeparator(dstPath));\n\t// Check that neither director is within the other\n\tif(srcPath.substring(0,dstPath.length) === dstPath || dstPath.substring(0,srcPath.length) === srcPath) {\n\t\treturn \"Cannot copy nested directories\";\n\t}\n\t// Create the destination directory\n\tvar err = $tw.utils.createDirectory(dstPath);\n\tif(err) {\n\t\treturn err;\n\t}\n\t// Function to copy a folder full of files\n\tvar copy = function(srcPath,dstPath) {\n\t\tvar srcStats = fs.lstatSync(srcPath),\n\t\t\tdstExists = fs.existsSync(dstPath);\n\t\tif(srcStats.isFile()) {\n\t\t\t$tw.utils.copyFile(srcPath,dstPath);\n\t\t} else if(srcStats.isDirectory()) {\n\t\t\tvar items = fs.readdirSync(srcPath);\n\t\t\tfor(var t=0; t<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,\"r\"),\n\t\tdstFile = fs.openSync(dstPath,\"w\"),\n\t\tbytesRead = 1,\n\t\tpos = 0;\n\twhile (bytesRead > 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 \"Error creating directory '\" + subDirPath + \"'\";\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<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) && 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) !== \".\") {\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 > 0) {\n\t\t\treturn callback(null);\n\t\t}\n\t\tfs.rmdir(dirpath,function(err) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tself.deleteEmptyDirs(path.dirname(dirpath),callback);\n\t\t});\n\t});\n};\n\n/*\nCreate a fileInfo object for saving a tiddler:\n\tfilepath: the absolute path to the file containing the tiddler\n\ttype: the type of the tiddler file on disk (NOT the type of the tiddler)\n\thasMetaFile: true if the file also has a companion .meta file\n\tisEditableFile: true if the tiddler was loaded via non-standard options & marked editable\nOptions include:\n\tdirectory: absolute path of root directory to which we are saving\n\tpathFilters: optional array of filters to be used to generate the base path\n\textFilters: optional array of filters to be used to generate the base path\n\twiki: optional wiki for evaluating the pathFilters,\n\tfileInfo: an existing fileInfo to check against\n\toriginalpath: a preferred filepath if no pathFilters match\n*/\nexports.generateTiddlerFileInfo = function(tiddler,options) {\n\tvar fileInfo = {}, metaExt;\n\t// Propagate the isEditableFile flag\n\tif(options.fileInfo) {\n\t\tfileInfo.isEditableFile = options.fileInfo.isEditableFile || false;\n\t}\n\t// Check if the tiddler has any unsafe fields that can't be expressed in a .tid or .meta file: containing control characters, or leading/trailing whitespace\n\tvar hasUnsafeFields = false;\n\t$tw.utils.each(tiddler.getFieldStrings(),function(value,fieldName) {\n\t\tif(fieldName !== \"text\") {\n\t\t\thasUnsafeFields = hasUnsafeFields || /[\\x00-\\x1F]/mg.test(value);\n\t\t\thasUnsafeFields = hasUnsafeFields || ($tw.utils.trim(value) !== value);\n\t\t}\n\t});\n\t// Check for field values \n\tif(hasUnsafeFields) {\n\t\t// Save as a JSON file\n\t\tfileInfo.type = \"application/json\";\n\t\tfileInfo.hasMetaFile = false;\n\t} else {\n\t\t// Save as a .tid or a text/binary file plus a .meta file\n\t\tvar tiddlerType = tiddler.fields.type || \"text/vnd.tiddlywiki\";\n\t\tif(tiddlerType === \"text/vnd.tiddlywiki\") {\n\t\t\t// Save as a .tid file\n\t\t\tfileInfo.type = \"application/x-tiddler\";\n\t\t\tfileInfo.hasMetaFile = false;\n\t\t} else {\n\t\t\t// Save as a text/binary file and a .meta file\n\t\t\tfileInfo.type = tiddlerType;\n\t\t\tfileInfo.hasMetaFile = true;\n\t\t}\n\t\tif(options.extFilters) {\n\t\t\t// Check for extension override\n\t\t\tmetaExt = $tw.utils.generateTiddlerExtension(tiddler.fields.title,{\n\t\t\t\textFilters: options.extFilters,\n\t\t\t\twiki: options.wiki\n\t\t\t});\n\t\t\tif(metaExt){\n\t\t\t\tif(metaExt === \".tid\") {\n\t\t\t\t\t// Overriding to the .tid extension needs special handling\n\t\t\t\t\tfileInfo.type = \"application/x-tiddler\";\n\t\t\t\t\tfileInfo.hasMetaFile = false;\n\t\t\t\t} else if (metaExt === \".json\") {\n\t\t\t\t\t// Overriding to the .json extension needs special handling\n\t\t\t\t\tfileInfo.type = \"application/json\";\n\t\t\t\t\tfileInfo.hasMetaFile = false;\n\t\t\t\t} else {\n\t\t\t\t\t//If the new type matches a known extention, use that MIME type's encoding\n\t\t\t\t\tvar extInfo = $tw.utils.getFileExtensionInfo(metaExt);\n\t\t\t\t\tfileInfo.type = extInfo ? extInfo.type : null;\n\t\t\t\t\tfileInfo.encoding = $tw.utils.getTypeEncoding(metaExt);\n\t\t\t\t\tfileInfo.hasMetaFile = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t// Take the file extension from the tiddler content type or metaExt\n\tvar contentTypeInfo = $tw.config.contentTypeInfo[fileInfo.type] || {extension: \"\"};\n\t// Generate the filepath\n\tfileInfo.filepath = $tw.utils.generateTiddlerFilepath(tiddler.fields.title,{\n\t\textension: metaExt || contentTypeInfo.extension,\n\t\tdirectory: options.directory,\n\t\tpathFilters: options.pathFilters,\n\t\twiki: options.wiki,\n\t\tfileInfo: options.fileInfo,\n\t\toriginalpath: options.originalpath\n\t});\n\treturn fileInfo;\n};\n\n/*\nGenerate the file extension for saving a tiddler\nOptions include:\n\textFilters: optional array of filters to be used to generate the extention\n\twiki: optional wiki for evaluating the extFilters\n*/\nexports.generateTiddlerExtension = function(title,options) {\n\tvar self = this,\n\t\textension;\n\t// Check if any of the extFilters applies\n\tif(options.extFilters && options.wiki) { \n\t\t$tw.utils.each(options.extFilters,function(filter) {\n\t\t\tif(!extension) {\n\t\t\t\tvar source = options.wiki.makeTiddlerIterator([title]),\n\t\t\t\t\tresult = options.wiki.filterTiddlers(filter,null,source);\n\t\t\t\tif(result.length > 0) {\n\t\t\t\t\textension = result[0];\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\treturn extension;\n};\n\n/*\nGenerate the filepath for saving a tiddler\nOptions include:\n\textension: file extension to be added the finished filepath\n\tdirectory: absolute path of root directory to which we are saving\n\tpathFilters: optional array of filters to be used to generate the base path\n\twiki: optional wiki for evaluating the pathFilters\n\tfileInfo: an existing fileInfo object to check against\n*/\nexports.generateTiddlerFilepath = function(title,options) {\n\tvar self = this,\n\t\tdirectory = options.directory || \"\",\n\t\textension = options.extension || \"\",\n\t\toriginalpath = options.originalpath || \"\",\n\t\tfilepath;\t\n\t// Check if any of the pathFilters applies\n\tif(options.pathFilters && options.wiki) {\n\t\t$tw.utils.each(options.pathFilters,function(filter) {\n\t\t\tif(!filepath) {\n\t\t\t\tvar source = options.wiki.makeTiddlerIterator([title]),\n\t\t\t\t\tresult = options.wiki.filterTiddlers(filter,null,source);\n\t\t\t\tif(result.length > 0) {\n\t\t\t\t\tfilepath = result[0];\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\tif(!filepath && originalpath !== \"\") {\n\t\t//Use the originalpath without the extension\n\t\tvar ext = path.extname(originalpath);\n\t\tfilepath = originalpath.substring(0,originalpath.length - ext.length);\n\t} else if(!filepath) {\n\t\tfilepath = title;\n\t\t// If the filepath already ends in the extension then remove it\n\t\tif(filepath.substring(filepath.length - extension.length) === extension) {\n\t\t\tfilepath = filepath.substring(0,filepath.length - extension.length);\n\t\t}\n\t\t// Remove any forward or backward slashes so we don't create directories\n\t\tfilepath = filepath.replace(/\\/|\\\\/g,\"_\");\n\t}\n\t//If the path does not start with \".\" or \"..\" and a path seperator, then\n\tif(!/^\\.{1,2}[/\\\\]/g.test(filepath)) {\n\t\t// Don't let the filename start with any dots because such files are invisible on *nix\n\t\tfilepath = filepath.replace(/^\\.+/g,\"_\");\n\t}\n\t// Remove any characters that can't be used in cross-platform filenames\n\tfilepath = $tw.utils.transliterate(filepath.replace(/<|>|~|\\:|\\\"|\\||\\?|\\*|\\^/g,\"_\"));\n\t// Truncate the filename if it is too long\n\tif(filepath.length > 200) {\n\t\tfilepath = filepath.substr(0,200);\n\t}\n\t// If the resulting filename is blank (eg because the title is just punctuation characters)\n\tif(!filepath) {\n\t\t// ...then just use the character codes of the title\n\t\tfilepath = \"\";\t\n\t\t$tw.utils.each(title.split(\"\"),function(char) {\n\t\t\tif(filepath) {\n\t\t\t\tfilepath += \"-\";\n\t\t\t}\n\t\t\tfilepath += char.charCodeAt(0).toString();\n\t\t});\n\t}\n\t// Add a uniquifier if the file already exists\n\tvar fullPath, oldPath = (options.fileInfo) ? options.fileInfo.filepath : undefined,\n\t\tcount = 0;\n\tdo {\n\t\tfullPath = path.resolve(directory,filepath + (count ? \"_\" + count : \"\") + extension);\n\t\tif(oldPath && oldPath == fullPath) {\n\t\t\tbreak;\n\t\t}\n\t\tcount++;\n\t} while(fs.existsSync(fullPath));\n\t// If the last write failed with an error, or if path does not start with:\n\t//\tthe resolved options.directory, the resolved wikiPath directory, or the wikiTiddlersPath directory, \n\t//\tthen encodeURIComponent() and resolve to tiddler directory\n\tvar newPath = fullPath,\n\t\tencode = (options.fileInfo || {writeError: false}).writeError == true;\n\tif(!encode){\n\t\tencode = !(fullPath.indexOf(path.resolve(directory)) == 0 ||\n\t\t\tfullPath.indexOf(path.resolve($tw.boot.wikiPath)) == 0 ||\n\t\t\tfullPath.indexOf($tw.boot.wikiTiddlersPath) == 0);\n\t\t}\n\tif(encode){\n\t\tfullPath = path.resolve(directory, encodeURIComponent(fullPath));\n\t}\n\t// Call hook to allow plugins to modify the final path\n\tfullPath = $tw.hooks.invokeHook(\"th-make-tiddler-path\", newPath, fullPath);\n\t// Return the full path to the file\n\treturn fullPath;\n};\n\n/*\nSave a tiddler to a file described by the fileInfo:\n\tfilepath: the absolute path to the file containing the tiddler\n\ttype: the type of the tiddler file (NOT the type of the tiddler)\n\thasMetaFile: true if the file also has a companion .meta file\n*/\nexports.saveTiddlerToFile = function(tiddler,fileInfo,callback) {\n\t$tw.utils.createDirectory(path.dirname(fileInfo.filepath));\n\tif(fileInfo.hasMetaFile) {\n\t\t// Save the tiddler as a separate body and meta file\n\t\tvar typeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || \"text/plain\"] || {encoding: \"utf8\"};\n\t\tfs.writeFile(fileInfo.filepath,tiddler.fields.text,typeInfo.encoding,function(err) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tfs.writeFile(fileInfo.filepath + \".meta\",tiddler.getFieldStringBlock({exclude: [\"text\",\"bag\"]}),\"utf8\",callback);\n\t\t});\n\t} else {\n\t\t// Save the tiddler as a self contained templated file\n\t\tif(fileInfo.type === \"application/x-tiddler\") {\n\t\t\tfs.writeFile(fileInfo.filepath,tiddler.getFieldStringBlock({exclude: [\"text\",\"bag\"]}) + (!!tiddler.fields.text ? \"\\n\\n\" + tiddler.fields.text : \"\"),\"utf8\",callback);\n\t\t} else {\n\t\t\tfs.writeFile(fileInfo.filepath,JSON.stringify([tiddler.getFieldStrings({exclude: [\"bag\"]})],null,$tw.config.preferences.jsonSpaces),\"utf8\",callback);\n\t\t}\n\t}\n};\n\n/*\nSave a tiddler to a file described by the fileInfo:\n\tfilepath: the absolute path to the file containing the tiddler\n\ttype: the type of the tiddler file (NOT the type of the tiddler)\n\thasMetaFile: true if the file also has a companion .meta file\n*/\nexports.saveTiddlerToFileSync = function(tiddler,fileInfo) {\n\t$tw.utils.createDirectory(path.dirname(fileInfo.filepath));\n\tif(fileInfo.hasMetaFile) {\n\t\t// Save the tiddler as a separate body and meta file\n\t\tvar typeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || \"text/plain\"] || {encoding: \"utf8\"};\n\t\tfs.writeFileSync(fileInfo.filepath,tiddler.fields.text,typeInfo.encoding);\n\t\tfs.writeFileSync(fileInfo.filepath + \".meta\",tiddler.getFieldStringBlock({exclude: [\"text\",\"bag\"]}),\"utf8\");\n\t} else {\n\t\t// Save the tiddler as a self contained templated file\n\t\tif(fileInfo.type === \"application/x-tiddler\") {\n\t\t\tfs.writeFileSync(fileInfo.filepath,tiddler.getFieldStringBlock({exclude: [\"text\",\"bag\"]}) + (!!tiddler.fields.text ? \"\\n\\n\" + tiddler.fields.text : \"\"),\"utf8\");\n\t\t} else {\n\t\t\tfs.writeFileSync(fileInfo.filepath,JSON.stringify([tiddler.getFieldStrings({exclude: [\"bag\"]})],null,$tw.config.preferences.jsonSpaces),\"utf8\");\n\t\t}\n\t}\n};\n\n/*\nDelete a file described by the fileInfo if it exits\n*/\nexports.deleteTiddlerFile = function(fileInfo, callback) {\n\t//Only attempt to delete files that exist on disk\n\tif(!fileInfo.filepath || !fs.existsSync(fileInfo.filepath)) {\n\t\treturn callback(null);\n\t}\n\t// Delete the file\n\tfs.unlink(fileInfo.filepath,function(err) {\n\t\tif(err) {\n\t\t\treturn callback(err);\n\t\t}\t\n\t\t// Delete the metafile if present\n\t\tif(fileInfo.hasMetaFile && fs.existsSync(fileInfo.filepath + \".meta\")) {\n\t\t\tfs.unlink(fileInfo.filepath + \".meta\",function(err) {\n\t\t\t\tif(err) {\n\t\t\t\t\treturn callback(err);\n\t\t\t\t}\n\t\t\t\treturn $tw.utils.deleteEmptyDirs(path.dirname(fileInfo.filepath),callback);\n\t\t\t});\n\t\t} else {\n\t\t\treturn $tw.utils.deleteEmptyDirs(path.dirname(fileInfo.filepath),callback);\n\t\t}\n\t});\n};\n\n/*\nCleanup old files on disk, by comparing the options values:\n\tadaptorInfo from $tw.syncer.tiddlerInfo\n\tbootInfo from $tw.boot.files\n*/\nexports.cleanupTiddlerFiles = function(options, callback) {\n\tvar adaptorInfo = options.adaptorInfo || {},\n\tbootInfo = options.bootInfo || {},\n\ttitle = options.title || \"undefined\";\n\tif(adaptorInfo.filepath && bootInfo.filepath && adaptorInfo.filepath !== bootInfo.filepath) {\n\t\treturn $tw.utils.deleteTiddlerFile(adaptorInfo, function(err){\n\t\t\tif(err) {\n\t\t\t\tif ((err.code == \"EPERM\" || err.code == \"EACCES\") && err.syscall == \"unlink\") {\n\t\t\t\t\t// Error deleting the previous file on disk, should fail gracefully\n\t\t\t\t\t$tw.syncer.displayError(\"Server desynchronized. Error cleaning up previous file for tiddler: \"+title, err);\n\t\t\t\t\treturn callback(null);\n\t\t\t\t} else {\n\t\t\t\t\treturn callback(err);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn callback(null);\n\t\t});\n\t} else {\n\t\treturn callback(null);\n\t}\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "utils-node"
+ },
+ "$:/core/modules/utils/linkedlist.js": {
+ "title": "$:/core/modules/utils/linkedlist.js",
+ "text": "/*\\\nmodule-type: utils\ntitle: $:/core/modules/utils/linkedlist.js\ntype: application/javascript\n\nThis is a doubly-linked indexed list intended for manipulation, particularly\npushTop, which it does with significantly better performance than an array.\n\n\\*/\n(function(){\n\nfunction LinkedList() {\n\tthis.clear();\n};\n\nLinkedList.prototype.clear = function() {\n\tthis.index = Object.create(null);\n\t// LinkedList performs the duty of both the head and tail node\n\tthis.next = this;\n\tthis.prev = this;\n\tthis.length = 0;\n};\n\nLinkedList.prototype.remove = function(value) {\n\tif($tw.utils.isArray(value)) {\n\t\tfor(var t=0; t<value.length; t++) {\n\t\t\t_removeOne(this,value[t]);\n\t\t}\n\t} else {\n\t\t_removeOne(this,value);\n\t}\n};\n\nLinkedList.prototype.push = function(/* values */) {\n\tfor(var i = 0; i < arguments.length; i++) {\n\t\tvar value = arguments[i];\n\t\tvar node = {value: value};\n\t\tvar preexistingNode = this.index[value];\n\t\t_linkToEnd(this,node);\n\t\tif(preexistingNode) {\n\t\t\t// We want to keep pointing to the first instance, but we want\n\t\t\t// to have that instance (or chain of instances) point to the\n\t\t\t// new one.\n\t\t\twhile (preexistingNode.copy) {\n\t\t\t\tpreexistingNode = preexistingNode.copy;\n\t\t\t}\n\t\t\tpreexistingNode.copy = node;\n\t\t} else {\n\t\t\tthis.index[value] = node;\n\t\t}\n\t}\n};\n\nLinkedList.prototype.pushTop = function(value) {\n\tif($tw.utils.isArray(value)) {\n\t\tfor(var t=0; t<value.length; t++) {\n\t\t\t_removeOne(this,value[t]);\n\t\t}\n\t\tthis.push.apply(this,value);\n\t} else {\n\t\tvar node = _removeOne(this,value);\n\t\tif(!node) {\n\t\t\tnode = {value: value};\n\t\t\tthis.index[value] = node;\n\t\t} else {\n\t\t\t// Put this node at the end of the copy chain.\n\t\t\tvar preexistingNode = node;\n\t\t\twhile(preexistingNode.copy) {\n\t\t\t\tpreexistingNode = preexistingNode.copy;\n\t\t\t}\n\t\t\t// The order of these three statements is important,\n\t\t\t// because sometimes preexistingNode == node.\n\t\t\tpreexistingNode.copy = node;\n\t\t\tthis.index[value] = node.copy;\n\t\t\tnode.copy = undefined;\n\t\t}\n\t\t_linkToEnd(this,node);\n\t}\n};\n\nLinkedList.prototype.each = function(callback) {\n\tfor(var ptr = this.next; ptr !== this; ptr = ptr.next) {\n\t\tcallback(ptr.value);\n\t}\n};\n\nLinkedList.prototype.toArray = function() {\n\tvar output = [];\n\tfor(var ptr = this.next; ptr !== this; ptr = ptr.next) {\n\t\toutput.push(ptr.value);\n\t}\n\treturn output;\n};\n\nfunction _removeOne(list,value) {\n\tvar node = list.index[value];\n\tif(node) {\n\t\tnode.prev.next = node.next;\n\t\tnode.next.prev = node.prev;\n\t\tlist.length -= 1;\n\t\t// Point index to the next instance of the same value, maybe nothing.\n\t\tlist.index[value] = node.copy;\n\t}\n\treturn node;\n};\n\nfunction _linkToEnd(list,node) {\n\t// Sticks the given node onto the end of the list.\n\tlist.prev.next = node;\n\tnode.prev = list.prev;\n\tlist.prev = node;\n\tnode.next = list;\n\tlist.length += 1;\n};\n\nexports.LinkedList = LinkedList;\n\n})();\n",
+ "module-type": "utils",
+ "type": "application/javascript"
+ },
+ "$:/core/modules/utils/logger.js": {
+ "title": "$:/core/modules/utils/logger.js",
+ "text": "/*\\\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\"use strict\";\n\nvar ALERT_TAG = \"$:/tags/Alert\";\n\n/*\nMake a new logger\n*/\nfunction Logger(componentName,options) {\n\toptions = options || {};\n\tthis.componentName = componentName || \"\";\n\tthis.colour = options.colour || \"white\";\n\tthis.enable = \"enable\" in options ? options.enable : true;\n\tthis.save = \"save\" in options ? options.save : true;\n\tthis.saveLimit = options.saveLimit || 100 * 1024;\n\tthis.saveBufferLogger = this;\n\tthis.buffer = \"\";\n\tthis.alertCount = 0;\n}\n\nLogger.prototype.setSaveBuffer = function(logger) {\n\tthis.saveBufferLogger = logger;\n};\n\n/*\nLog a message\n*/\nLogger.prototype.log = function(/* args */) {\n\tvar self = this;\n\tif(this.enable) {\n\t\tif(this.saveBufferLogger.save) {\n\t\t\tthis.saveBufferLogger.buffer += $tw.utils.formatDateString(new Date(),\"YYYY MM DD 0hh:0mm:0ss.0XXX\") + \":\";\n\t\t\t$tw.utils.each(Array.prototype.slice.call(arguments,0),function(arg,index) {\n\t\t\t\tself.saveBufferLogger.buffer += \" \" + arg;\n\t\t\t});\n\t\t\tthis.saveBufferLogger.buffer += \"\\n\";\n\t\t\tthis.saveBufferLogger.buffer = this.saveBufferLogger.buffer.slice(-this.saveBufferLogger.saveLimit);\t\t\t\n\t\t}\n\t\tif(console !== undefined && console.log !== undefined) {\n\t\t\treturn Function.apply.call(console.log, console, [$tw.utils.terminalColour(this.colour),this.componentName + \":\"].concat(Array.prototype.slice.call(arguments,0)).concat($tw.utils.terminalColour()));\n\t\t}\n\t} \n};\n\n/*\nRead the message buffer\n*/\nLogger.prototype.getBuffer = function() {\n\treturn this.saveBufferLogger.buffer;\n};\n\n/*\nLog a structure as a table\n*/\nLogger.prototype.table = function(value) {\n\t(console.table || console.log)(value);\n};\n\n/*\nAlert a message\n*/\nLogger.prototype.alert = function(/* args */) {\n\tif(this.enable) {\n\t\t// Prepare the text of the alert\n\t\tvar text = Array.prototype.join.call(arguments,\" \");\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 && tiddler.fields.component === self.componentName && tiddler.fields.modified && (!alertFields || tiddler.fields.modified < 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(\"$:/temp/alerts/alert\",{prefix: \"\"}),\n\t\t\t\t\ttext: text,\n\t\t\t\t\ttags: [ALERT_TAG],\n\t\t\t\t\tcomponent: this.componentName\n\t\t\t\t};\n\t\t\t\texistingCount = 0;\n\t\t\t\tthis.alertCount += 1;\n\t\t\t}\n\t\t\talertFields.modified = new Date();\n\t\t\tif(++existingCount > 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(\"\\x1b[1;33m\" + text + \"\\x1b[0m\");\n\t\t}\t\t\n\t}\n};\n\n/*\nClear outstanding alerts\n*/\nLogger.prototype.clearAlerts = function() {\n\tvar self = this;\n\tif($tw.browser && this.alertCount > 0) {\n\t\t$tw.utils.each($tw.wiki.getTiddlersWithTag(ALERT_TAG),function(title) {\n\t\t\tvar tiddler = $tw.wiki.getTiddler(title);\n\t\t\tif(tiddler.fields.component === self.componentName) {\n\t\t\t\t$tw.wiki.deleteTiddler(title);\n\t\t\t}\n\t\t});\n\t\tthis.alertCount = 0;\n\t}\n};\n\nexports.Logger = Logger;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/parsetree.js": {
+ "title": "$:/core/modules/utils/parsetree.js",
+ "text": "/*\\\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\"use strict\";\n\nexports.addAttributeToParseTreeNode = function(node,name,value) {\n\tnode.attributes = node.attributes || {};\n\tnode.attributes[name] = {type: \"string\", value: value};\n};\n\nexports.getAttributeValueFromParseTreeNode = function(node,name,defaultValue) {\n\tif(node.attributes && node.attributes[name] && 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[\"class\"] = node.attributes[\"class\"] || {type: \"string\", value: \"\"};\n\tif(node.attributes[\"class\"].type === \"string\") {\n\t\tif(node.attributes[\"class\"].value !== \"\") {\n\t\t\tclasses = node.attributes[\"class\"].value.split(\" \");\n\t\t}\n\t\tif(classString !== \"\") {\n\t\t\t$tw.utils.pushTop(classes,classString.split(\" \"));\n\t\t}\n\t\tnode.attributes[\"class\"].value = classes.join(\" \");\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: \"string\", value: \"\"};\n\t\tif(node.attributes.style.type === \"string\") {\n\t\t\tnode.attributes.style.value += name + \":\" + value + \";\";\n\t\t}\n};\n\nexports.findParseTreeNode = function(nodeArray,search) {\n\tfor(var t=0; t<nodeArray.length; t++) {\n\t\tif(nodeArray[t].type === search.type && 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 === \"text\") {\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(\"\");\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/performance.js": {
+ "title": "$:/core/modules/utils/performance.js",
+ "text": "/*\\\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\"use strict\";\n\nfunction Performance(enabled) {\n\tthis.enabled = !!enabled;\n\tthis.measures = {}; // Hashmap by measurement name of {time:, invocations:}\n\tthis.logger = new $tw.utils.Logger(\"performance\");\n\tthis.showGreeting();\n}\n\nPerformance.prototype.showGreeting = function() {\n\tif($tw.browser) {\n\t\tthis.logger.log(\"Execute $tw.perf.log(); to see filter execution timings\");\t\t\n\t}\n};\n\n/*\nWrap performance reporting around a top level function\n*/\nPerformance.prototype.report = function(name,fn) {\n\tvar self = this;\n\tif(this.enabled) {\n\t\treturn function() {\n\t\t\tvar startTime = $tw.utils.timer(),\n\t\t\t\tresult = fn.apply(this,arguments);\n\t\t\tself.logger.log(name + \": \" + $tw.utils.timer(startTime).toFixed(2) + \"ms\");\n\t\t\treturn result;\n\t\t};\n\t} else {\n\t\treturn fn;\n\t}\n};\n\nPerformance.prototype.log = function() {\n\tvar self = this,\n\t\ttotalTime = 0,\n\t\torderedMeasures = Object.keys(this.measures).sort(function(a,b) {\n\t\t\tif(self.measures[a].time > self.measures[b].time) {\n\t\t\t\treturn -1;\n\t\t\t} else if (self.measures[a].time < self.measures[b].time) {\n\t\t\t\treturn + 1;\n\t\t\t} else {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t$tw.utils.each(orderedMeasures,function(name) {\n\t\ttotalTime += self.measures[name].time;\n\t});\n\tvar results = []\n\t$tw.utils.each(orderedMeasures,function(name) {\n\t\tvar measure = self.measures[name];\n\t\tresults.push({name: name,invocations: measure.invocations, avgTime: measure.time / measure.invocations, totalTime: measure.time, percentTime: (measure.time / totalTime) * 100})\n\t});\n\tself.logger.table(results);\n};\n\n/*\nWrap performance measurements around a subfunction\n*/\nPerformance.prototype.measure = function(name,fn) {\n\tvar self = this;\n\tif(this.enabled) {\n\t\treturn function() {\n\t\t\tvar startTime = $tw.utils.timer(),\n\t\t\t\tresult = fn.apply(this,arguments);\n\t\t\tif(!(name in self.measures)) {\n\t\t\t\tself.measures[name] = {time: 0, invocations: 0};\n\t\t\t}\n\t\t\tself.measures[name].time += $tw.utils.timer(startTime);\n\t\t\tself.measures[name].invocations++;\n\t\t\treturn result;\n\t\t};\n\t} else {\n\t\treturn fn;\n\t}\n};\n\nexports.Performance = Performance;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "global"
+ },
+ "$:/core/modules/utils/pluginmaker.js": {
+ "title": "$:/core/modules/utils/pluginmaker.js",
+ "text": "/*\\\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\"use strict\";\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 \"No such tiddler as \" + 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 \"Cannot parse plugin tiddler \" + title + \"\\n\" + $tw.language.getString(\"Error/Caption\") + \": \" + 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>=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(\"version\") || \"0.0.0\") || {\n\t\t\tmajor: \"0\",\n\t\t\tminor: \"0\",\n\t\t\tpatch: \"0\"\n\t\t};\n\tpluginVersion.patch++;\n\tvar version = pluginVersion.major + \".\" + pluginVersion.minor + \".\" + pluginVersion.patch;\n\tif(pluginVersion.prerelease) {\n\t\tversion += \"-\" + pluginVersion.prerelease;\n\t}\n\tif(pluginVersion.build) {\n\t\tversion += \"+\" + 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: \"tm-auto-save-wiki\"});\n\t// Return a heartwarming confirmation\n\treturn \"Plugin \" + title + \" successfully saved\";\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/transliterate.js": {
+ "title": "$:/core/modules/utils/transliterate.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nTransliterate string to ASCII\n\n(Some pairs taken from http://semplicewebsites.com/removing-accents-javascript)\n*/\nexports.transliterationPairs = {\n\t\"Á\":\"A\",\n\t\"Ă\":\"A\",\n\t\"Ắ\":\"A\",\n\t\"Ặ\":\"A\",\n\t\"Ằ\":\"A\",\n\t\"Ẳ\":\"A\",\n\t\"Ẵ\":\"A\",\n\t\"Ǎ\":\"A\",\n\t\"Â\":\"A\",\n\t\"Ấ\":\"A\",\n\t\"Ậ\":\"A\",\n\t\"Ầ\":\"A\",\n\t\"Ẩ\":\"A\",\n\t\"Ẫ\":\"A\",\n\t\"Ä\":\"A\",\n\t\"Ǟ\":\"A\",\n\t\"Ȧ\":\"A\",\n\t\"Ǡ\":\"A\",\n\t\"Ạ\":\"A\",\n\t\"Ȁ\":\"A\",\n\t\"À\":\"A\",\n\t\"Ả\":\"A\",\n\t\"Ȃ\":\"A\",\n\t\"Ā\":\"A\",\n\t\"Ą\":\"A\",\n\t\"Å\":\"A\",\n\t\"Ǻ\":\"A\",\n\t\"Ḁ\":\"A\",\n\t\"Ⱥ\":\"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\":\"z\",\n\t\"ᶎ\":\"z\",\n\t\"ʐ\":\"z\",\n\t\"ƶ\":\"z\",\n\t\"ɀ\":\"z\",\n\t\"ff\":\"ff\",\n\t\"ffi\":\"ffi\",\n\t\"ffl\":\"ffl\",\n\t\"fi\":\"fi\",\n\t\"fl\":\"fl\",\n\t\"ij\":\"ij\",\n\t\"œ\":\"oe\",\n\t\"st\":\"st\",\n\t\"ₐ\":\"a\",\n\t\"ₑ\":\"e\",\n\t\"ᵢ\":\"i\",\n\t\"ⱼ\":\"j\",\n\t\"ₒ\":\"o\",\n\t\"ᵣ\":\"r\",\n\t\"ᵤ\":\"u\",\n\t\"ᵥ\":\"v\",\n\t\"ₓ\":\"x\",\n\t\"Ё\":\"YO\",\n\t\"Й\":\"I\",\n\t\"Ц\":\"TS\",\n\t\"У\":\"U\",\n\t\"К\":\"K\",\n\t\"Е\":\"E\",\n\t\"Н\":\"N\",\n\t\"Г\":\"G\",\n\t\"Ш\":\"SH\",\n\t\"Щ\":\"SCH\",\n\t\"З\":\"Z\",\n\t\"Х\":\"H\",\n\t\"Ъ\":\"'\",\n\t\"ё\":\"yo\",\n\t\"й\":\"i\",\n\t\"ц\":\"ts\",\n\t\"у\":\"u\",\n\t\"к\":\"k\",\n\t\"е\":\"e\",\n\t\"н\":\"n\",\n\t\"г\":\"g\",\n\t\"ш\":\"sh\",\n\t\"щ\":\"sch\",\n\t\"з\":\"z\",\n\t\"х\":\"h\",\n\t\"ъ\":\"'\",\n\t\"Ф\":\"F\",\n\t\"Ы\":\"I\",\n\t\"В\":\"V\",\n\t\"А\":\"a\",\n\t\"П\":\"P\",\n\t\"Р\":\"R\",\n\t\"О\":\"O\",\n\t\"Л\":\"L\",\n\t\"Д\":\"D\",\n\t\"Ж\":\"ZH\",\n\t\"Э\":\"E\",\n\t\"ф\":\"f\",\n\t\"ы\":\"i\",\n\t\"в\":\"v\",\n\t\"а\":\"a\",\n\t\"п\":\"p\",\n\t\"р\":\"r\",\n\t\"о\":\"o\",\n\t\"л\":\"l\",\n\t\"д\":\"d\",\n\t\"ж\":\"zh\",\n\t\"э\":\"e\",\n\t\"Я\":\"Ya\",\n\t\"Ч\":\"CH\",\n\t\"С\":\"S\",\n\t\"М\":\"M\",\n\t\"И\":\"I\",\n\t\"Т\":\"T\",\n\t\"Ь\":\"'\",\n\t\"Б\":\"B\",\n\t\"Ю\":\"YU\",\n\t\"я\":\"ya\",\n\t\"ч\":\"ch\",\n\t\"с\":\"s\",\n\t\"м\":\"m\",\n\t\"и\":\"i\",\n\t\"т\":\"t\",\n\t\"ь\":\"'\",\n\t\"б\":\"b\",\n\t\"ю\":\"yu\"\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] || \"\"\n\t});\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/utils/utils.js": {
+ "title": "$:/core/modules/utils/utils.js",
+ "text": "/*\\\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\"use strict\";\n\nvar base64utf8 = require(\"$:/core/modules/utils/base64-utf8/base64-utf8.module.js\");\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 && $tw.node && 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 \"\\x1b[\" + code + \"m\";\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"\\x1b[0m\"; // Cancel colour\n\t\t}\n\t}\n\treturn \"\";\n};\n\nexports.terminalColourLookup = {\n\t\"black\": \"0;30\",\n\t\"red\": \"0;31\",\n\t\"green\": \"0;32\",\n\t\"brown/orange\": \"0;33\",\n\t\"blue\": \"0;34\",\n\t\"purple\": \"0;35\",\n\t\"cyan\": \"0;36\",\n\t\"light gray\": \"0;37\"\n};\n\n/*\nDisplay a warning, in colour if we're on a terminal\n*/\nexports.warning = function(text) {\n\texports.log(text,\"brown/orange\");\n};\n\n/*\nLog a table of name: value pairs\n*/\nexports.logTable = function(data) {\n\tif(console.table) {\n\t\tconsole.table(data);\n\t} else {\n\t\t$tw.utils.each(data,function(value,name) {\n\t\t\tconsole.log(name + \": \" + value);\n\t\t});\n\t}\n}\n\n/*\nReturn the integer represented by the str (string).\nReturn the dflt (default) parameter if str is not a base-10 number.\n*/\nexports.getInt = function(str,deflt) {\n\tvar i = parseInt(str,10);\n\treturn isNaN(i) ? deflt : i;\n}\n\n/*\nRepeatedly replaces a substring within a string. Like String.prototype.replace, but without any of the default special handling of $ sequences in the replace string\n*/\nexports.replaceString = function(text,search,replace) {\n\treturn text.replace(search,function() {\n\t\treturn replace;\n\t});\n};\n\n/*\nRepeats a string\n*/\nexports.repeat = function(str,count) {\n\tvar result = \"\";\n\tfor(var t=0;t<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 === \"string\") {\n\t\treturn str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n\t} else {\n\t\treturn str;\n\t}\n};\n\nexports.trimPrefix = function(str,unwanted) {\n\tif(typeof str === \"string\" && typeof unwanted === \"string\") {\n\t\tif(unwanted === \"\") {\n\t\t\treturn str.replace(/^\\s\\s*/, '');\n\t\t} else {\n\t\t\t// Safely regexp-escape the unwanted text\n\t\t\tunwanted = unwanted.replace(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n\t\t\tvar regex = new RegExp('^(' + unwanted + ')+');\n\t\t\treturn str.replace(regex, '');\n\t\t}\n\t} else {\n\t\treturn str;\n\t}\n};\n\nexports.trimSuffix = function(str,unwanted) {\n\tif(typeof str === \"string\" && typeof unwanted === \"string\") {\n\t\tif(unwanted === \"\") {\n\t\t\treturn str.replace(/\\s\\s*$/, '');\n\t\t} else {\n\t\t\t// Safely regexp-escape the unwanted text\n\t\t\tunwanted = unwanted.replace(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n\t\t\tvar regex = new RegExp('(' + unwanted + ')+$');\n\t\t\treturn str.replace(regex, '');\n\t\t}\n\t} else {\n\t\treturn str;\n\t}\n};\n\n/*\nConvert a string to sentence case (ie capitalise first letter)\n*/\nexports.toSentenceCase = function(str) {\n\treturn (str || \"\").replace(/^\\S/, function(c) {return c.toUpperCase();});\n}\n\n/*\nConvert a string to title case (ie capitalise each initial letter)\n*/\nexports.toTitleCase = function(str) {\n\treturn (str || \"\").replace(/(^|\\s)\\S/g, function(c) {return c.toUpperCase();});\n}\n\t\n/*\nFind the line break preceding a given position in a string\nReturns position immediately after that line break, or the start of the string\n*/\nexports.findPrecedingLineBreak = function(text,pos) {\n\tvar result = text.lastIndexOf(\"\\n\",pos - 1);\n\tif(result === -1) {\n\t\tresult = 0;\n\t} else {\n\t\tresult++;\n\t\tif(text.charAt(result) === \"\\r\") {\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(\"\\n\",pos);\n\tif(result === -1) {\n\t\tresult = text.length;\n\t} else {\n\t\tif(text.charAt(result) === \"\\r\") {\n\t\t\tresult++;\n\t\t}\n\t}\n\treturn result;\n};\n\n/*\nReturn the number of keys in an object\n*/\nexports.count = function(object) {\n\treturn Object.keys(object || {}).length;\n};\n\n/*\nDetermine whether an array-item is an object-property\n*/\nexports.hopArray = function(object,array) {\n\tfor(var i=0; i<array.length; i++) {\n\t\tif($tw.utils.hop(object,array[i])) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n\n/*\nRemove entries from an array\n\tarray: array to modify\n\tvalue: a single value to remove, or an array of values to remove\n*/\nexports.removeArrayEntries = function(array,value) {\n\tvar t,p;\n\tif($tw.utils.isArray(value)) {\n\t\tfor(t=0; t<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 === \"object\") {\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) && (typeof property === \"object\") && !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 = \"\",\n\t\tt = template,\n\t\tmatches = [\n\t\t\t[/^0hh12/, function() {\n\t\t\t\treturn $tw.utils.pad($tw.utils.getHours12(date));\n\t\t\t}],\n\t\t\t[/^wYYYY/, function() {\n\t\t\t\treturn $tw.utils.pad($tw.utils.getYearForWeekNo(date),4);\n\t\t\t}],\n\t\t\t[/^hh12/, function() {\n\t\t\t\treturn $tw.utils.getHours12(date);\n\t\t\t}],\n\t\t\t[/^DDth/, function() {\n\t\t\t\treturn date.getDate() + $tw.utils.getDaySuffix(date);\n\t\t\t}],\n\t\t\t[/^YYYY/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getFullYear(),4);\n\t\t\t}],\n\t\t\t[/^aYYYY/, function() {\n\t\t\t\treturn $tw.utils.pad(Math.abs(date.getFullYear()),4);\n\t\t\t}],\n\t\t\t[/^\\{era:([^,\\|}]*)\\|([^}\\|]*)\\|([^}]*)\\}/, function(match) {\n\t\t\t\tvar year = date.getFullYear();\n\t\t\t\treturn year === 0 ? match[2] : (year < 0 ? match[1] : match[3]);\n\t\t\t}],\n\t\t\t[/^0hh/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getHours());\n\t\t\t}],\n\t\t\t[/^0mm/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getMinutes());\n\t\t\t}],\n\t\t\t[/^0ss/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getSeconds());\n\t\t\t}],\n\t\t\t[/^0XXX/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getMilliseconds(),3);\n\t\t\t}],\n\t\t\t[/^0DD/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getDate());\n\t\t\t}],\n\t\t\t[/^0MM/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getMonth()+1);\n\t\t\t}],\n\t\t\t[/^0WW/, function() {\n\t\t\t\treturn $tw.utils.pad($tw.utils.getWeek(date));\n\t\t\t}],\n\t\t\t[/^ddd/, function() {\n\t\t\t\treturn $tw.language.getString(\"Date/Short/Day/\" + date.getDay());\n\t\t\t}],\n\t\t\t[/^mmm/, function() {\n\t\t\t\treturn $tw.language.getString(\"Date/Short/Month/\" + (date.getMonth() + 1));\n\t\t\t}],\n\t\t\t[/^DDD/, function() {\n\t\t\t\treturn $tw.language.getString(\"Date/Long/Day/\" + date.getDay());\n\t\t\t}],\n\t\t\t[/^MMM/, function() {\n\t\t\t\treturn $tw.language.getString(\"Date/Long/Month/\" + (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 < 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(\"[UTC]\") == 0 ) {\n\t\tif(t == \"[UTC]YYYY0MM0DD0hh0mm0ssXXX\")\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 = \"\";\n\t\t$tw.utils.each(matches, function(m) {\n\t\t\tvar match = m[0].exec(t);\n\t\t\tif(match) {\n\t\t\t\tmatchString = m[1].call(null,match);\n\t\t\t\tt = t.substr(match[0].length);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\tif(matchString) {\n\t\t\tresult += matchString;\n\t\t} else {\n\t\t\tresult += t.charAt(0);\n\t\t\tt = t.substr(1);\n\t\t}\n\t}\n\tresult = result.replace(/\\\\(.)/g,\"$1\");\n\treturn result;\n};\n\nexports.getAmPm = function(date) {\n\treturn $tw.language.getString(\"Date/Period/\" + (date.getHours() >= 12 ? \"pm\" : \"am\"));\n};\n\nexports.getDaySuffix = function(date) {\n\treturn $tw.language.getString(\"Date/DaySuffix/\" + 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 > 12 ? h-12 : ( h > 0 ? h : 12 );\n};\n\n/*\nConvert a date delta in milliseconds into a string representation of \"23 seconds ago\", \"27 minutes ago\" 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 < 0) {\n\t\tdelta = -1 * delta;\n\t\tfuturep = true;\n\t}\n\tvar units = [\n\t\t{name: \"Years\", duration: 365 * 24 * 60 * 60 * 1000},\n\t\t{name: \"Months\", duration: (365/12) * 24 * 60 * 60 * 1000},\n\t\t{name: \"Days\", duration: 24 * 60 * 60 * 1000},\n\t\t{name: \"Hours\", duration: 60 * 60 * 1000},\n\t\t{name: \"Minutes\", duration: 60 * 1000},\n\t\t{name: \"Seconds\", duration: 1000}\n\t];\n\tfor(var t=0; t<units.length; t++) {\n\t\tvar result = Math.floor(delta / units[t].duration);\n\t\tif(result >= 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\"RelativeDate/\" + (futurep ? \"Future\" : \"Past\") + \"/\" + 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\"RelativeDate/\" + (futurep ? \"Future\" : \"Past\") + \"/Second\",\n\t\t\t{variables:\n\t\t\t\t{period: \"1\"}\n\t\t\t}\n\t\t),\n\t\tupdatePeriod: 1000\n\t};\n};\n\n// Convert & to \"&\", < to \"<\", > to \">\", \" to \""\"\nexports.htmlEncode = function(s) {\n\tif(s) {\n\t\treturn s.toString().replace(/&/mg,\"&\").replace(/</mg,\"<\").replace(/>/mg,\">\").replace(/\\\"/mg,\""\");\n\t} else {\n\t\treturn \"\";\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 & and the ;\n\t\tc;\n\tif(e.charAt(0) === \"#\") {\n\t\tif(e.charAt(1) === \"x\" || e.charAt(1) === \"X\") {\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,\"\\n\").replace(/\\\\b/mg,\" \").replace(/\\\\s/mg,\"\\\\\").replace(/\\r/mg,\"\");\n};\n\n/*\n * Returns an escape sequence for given character. Uses \\x for characters <=\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 \"action\" nodes.\n */\n// Copied from peg.js, thanks to David Majda\nexports.escape = function(ch) {\n\tvar charCode = ch.charCodeAt(0);\n\tif(charCode <= 0xFF) {\n\t\treturn '\\\\x' + $tw.utils.pad(charCode.toString(16).toUpperCase());\n\t} else {\n\t\treturn '\\\\u' + $tw.utils.pad(charCode.toString(16).toUpperCase(),4);\n\t}\n};\n\n// Turns a string into a legal JavaScript string\n// Copied from peg.js, thanks to David Majda\nexports.stringify = function(s, rawUnicode) {\n\t/*\n\t* ECMA-262, 5th ed., 7.8.4: All characters may appear literally in a string\n\t* literal except for the closing quote character, backslash, carriage return,\n\t* line separator, paragraph separator, and line feed. Any character may\n\t* appear in the form of an escape sequence.\n\t*\n\t* For portability, we also escape all non-ASCII characters.\n\t*/\n\tvar regex = rawUnicode ? /[\\x00-\\x1f]/g : /[\\x00-\\x1f\\x80-\\uFFFF]/g;\n\treturn (s || \"\")\n\t\t.replace(/\\\\/g, '\\\\\\\\') // backslash\n\t\t.replace(/\"/g, '\\\\\"') // double quote character\n\t\t.replace(/'/g, \"\\\\'\") // single quote character\n\t\t.replace(/\\r/g, '\\\\r') // carriage return\n\t\t.replace(/\\n/g, '\\\\n') // line feed\n\t\t.replace(regex, exports.escape); // non-ASCII characters\n};\n\n// Turns a string into a legal JSON string\n// Derived from peg.js, thanks to David Majda\nexports.jsonStringify = function(s, rawUnicode) {\n\t// See http://www.json.org/\n\tvar regex = rawUnicode ? /[\\x00-\\x1f]/g : /[\\x00-\\x1f\\x80-\\uFFFF]/g;\n\treturn (s || \"\")\n\t\t.replace(/\\\\/g, '\\\\\\\\') // backslash\n\t\t.replace(/\"/g, '\\\\\"') // double quote character\n\t\t.replace(/\\r/g, '\\\\r') // carriage return\n\t\t.replace(/\\n/g, '\\\\n') // line feed\n\t\t.replace(/\\x08/g, '\\\\b') // backspace\n\t\t.replace(/\\x0c/g, '\\\\f') // formfeed\n\t\t.replace(/\\t/g, '\\\\t') // tab\n\t\t.replace(regex,function(s) {\n\t\t\treturn '\\\\u' + $tw.utils.pad(s.charCodeAt(0).toString(16).toUpperCase(),4);\n\t\t}); // non-ASCII characters\n};\n\n/*\nEscape the RegExp special characters with a preceding backslash\n*/\nexports.escapeRegExp = function(s) {\n return s.replace(/[\\-\\/\\\\\\^\\$\\*\\+\\?\\.\\(\\)\\|\\[\\]\\{\\}]/g, '\\\\$&');\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<>{}\\[\\]`|\"\\\\^]+(?:\\/|\\b)/i;\n\treturn externalRegExp.test(to);\n};\n\nexports.nextTick = function(fn) {\n/*global window: false */\n\tif(typeof process === \"undefined\") {\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 (\"backgroundColor\" --> \"background-color\")\n*/\nexports.hyphenateCss = function(propName) {\n\treturn propName.replace(/([A-Z])/g, function(match0,match1) {\n\t\treturn \"-\" + 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 && 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 !== \"string\") {\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(\"meta\");\n\t\tfor(var t=0; t<metatags.length; t++) {\n\t\t\tvar m = metatags[t];\n\t\t\tif(m.name === \"tiddlywiki-version\") {\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(\"$:/config/AnimationDuration\",\"400\"),10) || 0;\n};\n\n/*\nHash a string to a number\nDerived from http://stackoverflow.com/a/15710692\n*/\nexports.hashString = function(str) {\n\treturn str.split(\"\").reduce(function(a,b) {\n\t\ta = ((a << 5) - a) + b.charCodeAt(0);\n\t\treturn a & a;\n\t},0);\n};\n\n/*\nDecode a base64 string\n*/\nexports.base64Decode = function(string64) {\n\treturn base64utf8.base64.decode.call(base64utf8,string64);\n};\n\n/*\nEncode a string to base64\n*/\nexports.base64Encode = function(string64) {\n\treturn base64utf8.base64.encode.call(base64utf8,string64);\n};\n\n/*\nConvert a hashmap into a tiddler dictionary format sequence of name:value pairs\n*/\nexports.makeTiddlerDictionary = function(data) {\n\tvar output = [];\n\tfor(var name in data) {\n\t\toutput.push(name + \": \" + data[name]);\n\t}\n\treturn output.join(\"\\n\");\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 !== \"undefined\") {\n\t\tm = m - base;\n\t}\n\treturn m;\n};\n\n/*\nConvert text and content type to a data URI\n*/\nexports.makeDataUri = function(text,type,_canonical_uri) {\n\ttype = type || \"text/vnd.tiddlywiki\";\n\tvar typeInfo = $tw.config.contentTypeInfo[type] || $tw.config.contentTypeInfo[\"text/plain\"],\n\t\tisBase64 = typeInfo.encoding === \"base64\",\n\t\tparts = [];\n\tif(_canonical_uri) {\n\t\tparts.push(_canonical_uri);\n\t} else {\n\t\tparts.push(\"data:\");\n\t\tparts.push(type);\n\t\tparts.push(isBase64 ? \";base64\" : \"\");\n\t\tparts.push(\",\");\n\t\tparts.push(isBase64 ? text : encodeURIComponent(text));\t\t\n\t}\n\treturn parts.join(\"\");\n};\n\n/*\nUseful for finding out the fully escaped CSS selector equivalent to a given tag. For example:\n\n$tw.utils.tagToCssSelector(\"$:/tags/Stylesheet\") --> tc-tagged-\\%24\\%3A\\%2Ftags\\%2FStylesheet\n*/\nexports.tagToCssSelector = function(tagName) {\n\treturn \"tc-tagged-\" + encodeURIComponent(tagName).replace(/[!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^`{\\|}~,]/mg,function(c) {\n\t\treturn \"\\\\\" + 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 > 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 > 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 && lastIndex === position;\n\t}\n};\n\n/*\nReturn system information useful for debugging\n*/\nexports.getSystemInfo = function(str,ending,position) {\n\tvar results = [],\n\t\tsave = function(desc,value) {\n\t\t\tresults.push(desc + \": \" + value);\n\t\t};\n\tif($tw.browser) {\n\t\tsave(\"User Agent\",navigator.userAgent);\n\t\tsave(\"Online Status\",window.navigator.onLine);\n\t}\n\tif($tw.node) {\n\t\tsave(\"Node Version\",process.version);\n\t}\n\treturn results.join(\"\\n\");\n};\n\nexports.parseNumber = function(str) {\n\treturn parseFloat(str) || 0;\n};\n\nexports.parseInt = function(str) {\n\treturn parseInt(str,10) || 0;\n};\n\nexports.stringifyNumber = function(num) {\n\treturn num + \"\";\n};\n\nexports.makeCompareFunction = function(type,options) {\n\toptions = options || {};\n\tvar gt = options.invert ? -1 : +1,\n\t\tlt = options.invert ? +1 : -1,\n\t\tcompare = function(a,b) {\n\t\t\tif(a > b) {\n\t\t\t\treturn gt ;\n\t\t\t} else if(a < b) {\n\t\t\t\treturn lt;\n\t\t\t} else {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t},\n\t\ttypes = {\n\t\t\t\"number\": function(a,b) {\n\t\t\t\treturn compare($tw.utils.parseNumber(a),$tw.utils.parseNumber(b));\n\t\t\t},\n\t\t\t\"integer\": function(a,b) {\n\t\t\t\treturn compare($tw.utils.parseInt(a),$tw.utils.parseInt(b));\n\t\t\t},\n\t\t\t\"string\": function(a,b) {\n\t\t\t\treturn compare(\"\" + a,\"\" +b);\n\t\t\t},\n\t\t\t\"date\": function(a,b) {\n\t\t\t\tvar dateA = $tw.utils.parseDate(a),\n\t\t\t\t\tdateB = $tw.utils.parseDate(b);\n\t\t\t\tif(!isFinite(dateA)) {\n\t\t\t\t\tdateA = new Date(0);\n\t\t\t\t}\n\t\t\t\tif(!isFinite(dateB)) {\n\t\t\t\t\tdateB = new Date(0);\n\t\t\t\t}\n\t\t\t\treturn compare(dateA,dateB);\n\t\t\t},\n\t\t\t\"version\": function(a,b) {\n\t\t\t\treturn $tw.utils.compareVersions(a,b);\n\t\t\t}\n\t\t};\n\treturn (types[type] || types[options.defaultType] || types.number);\n};\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "utils"
+ },
+ "$:/core/modules/widgets/action-confirm.js": {
+ "title": "$:/core/modules/widgets/action-confirm.js",
+ "text": "/*\\\n\ntitle: $:/core/modules/widgets/action-confirm.js\ntype: application/javascript\nmodule-type: widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ConfirmWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nConfirmWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nConfirmWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.parentDomNode = parent;\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nConfirmWidget.prototype.execute = function() {\n\tthis.message = this.getAttribute(\"$message\",$tw.language.getString(\"ConfirmAction\"));\n\tthis.prompt = (this.getAttribute(\"$prompt\",\"yes\") == \"no\" ? false : true);\n\tthis.makeChildWidgets();\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nConfirmWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\"$message\"] || changedAttributes[\"$prompt\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nConfirmWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tvar invokeActions = true,\n\t\thandled = true;\n\tif(this.prompt) {\n\t\tinvokeActions = confirm(this.message);\n\t}\n\tif(invokeActions) {\n\t\thandled = this.invokeActions(triggeringWidget,event);\n\t}\n\treturn handled;\n};\n\nConfirmWidget.prototype.allowActionPropagation = function() {\n\treturn false;\n};\n\nexports[\"action-confirm\"] = ConfirmWidget;\n\n})();",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/action-createtiddler.js": {
+ "title": "$:/core/modules/widgets/action-createtiddler.js",
+ "text": "/*\\\ntitle: $:/core/modules/widgets/action-createtiddler.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to create a new tiddler with a unique name and specified fields.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw:false, require:false, exports:false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$basetitle\");\n\tthis.hasBase = !!this.actionBaseTitle;\n\tthis.actionSaveTitle = this.getAttribute(\"$savetitle\");\n\tthis.actionSaveDraftTitle = this.getAttribute(\"$savedrafttitle\");\n\tthis.actionTimestamp = this.getAttribute(\"$timestamp\",\"yes\") === \"yes\";\n\t//Following params are new since 5.1.22\n\tthis.actionTemplate = this.getAttribute(\"$template\");\n\tthis.useTemplate = !!this.actionTemplate;\n\tthis.actionOverwrite = this.getAttribute(\"$overwrite\",\"no\");\n\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nCreateTiddlerWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif($tw.utils.count(changedAttributes) > 0) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nCreateTiddlerWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tvar title = this.wiki.getTiddlerText(\"$:/language/DefaultNewTiddlerTitle\"), // Get the initial new-tiddler title\n\t\tfields = {},\n\t\tcreationFields,\n\t\tmodificationFields;\n\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\tif(name.charAt(0) !== \"$\") {\n\t\t\tfields[name] = attribute;\n\t\t}\n\t});\n\tif(this.actionTimestamp) {\n\t\tcreationFields = this.wiki.getCreationFields();\n\t\tmodificationFields = this.wiki.getModificationFields();\n\t}\n\tif(this.hasBase && this.actionOverwrite === \"no\") {\n\t\ttitle = this.wiki.generateNewTitle(this.actionBaseTitle);\n\t} else if (this.hasBase && this.actionOverwrite === \"yes\") {\n\t\ttitle = this.actionBaseTitle\n\t}\n\t// NO $basetitle BUT $template parameter is available\n\t// the title MUST be unique, otherwise the template would be overwritten\n\tif (!this.hasBase && this.useTemplate) {\n\t\ttitle = this.wiki.generateNewTitle(this.actionTemplate);\n\t} else if (!this.hasBase && !this.useTemplate) {\n\t\t// If NO $basetitle AND NO $template use initial title\n\t\t// DON'T overwrite any stuff\n\t\ttitle = this.wiki.generateNewTitle(title);\n\t}\n\tvar templateTiddler = this.wiki.getTiddler(this.actionTemplate) || {};\n\tvar tiddler = this.wiki.addTiddler(new $tw.Tiddler(templateTiddler.fields,creationFields,fields,modificationFields,{title: title}));\n\tif(this.actionSaveTitle) {\n\t\tthis.wiki.setTextReference(this.actionSaveTitle,title,this.getVariable(\"currentTiddler\"));\n\t}\n\tif(this.actionSaveDraftTitle) {\n\t\tthis.wiki.setTextReference(this.actionSaveDraftTitle,this.wiki.generateDraftTitle(title),this.getVariable(\"currentTiddler\"));\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\"action-createtiddler\"] = CreateTiddlerWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/action-deletefield.js": {
+ "title": "$:/core/modules/widgets/action-deletefield.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.actionField = this.getAttribute(\"$field\");\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[\"$tiddler\"]) {\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 && tiddler) {\n\t\tremoveFields[this.actionField] = undefined;\n\t\tif(this.actionField in tiddler.fields) {\n\t\t\thasChanged = true;\n\t\t}\n\t}\n\tif(tiddler) {\n\t\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\t\tif(name.charAt(0) !== \"$\" && name !== \"title\") {\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[\"action-deletefield\"] = DeleteFieldWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/action-deletetiddler.js": {
+ "title": "$:/core/modules/widgets/action-deletetiddler.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$filter\");\n\tthis.actionTiddler = this.getAttribute(\"$tiddler\");\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[\"$filter\"] || changedAttributes[\"$tiddler\"]) {\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<tiddlers.length; t++) {\n\t\tthis.wiki.deleteTiddler(tiddlers[t]);\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\"action-deletetiddler\"] = DeleteTiddlerWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/action-listops.js": {
+ "title": "$:/core/modules/widgets/action-listops.js",
+ "text": "/*\\\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\"use strict\";\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$tiddler\", this.getVariable(\n\t\t\"currentTiddler\"));\n\tthis.filter = this.getAttribute(\"$filter\");\n\tthis.subfilter = this.getAttribute(\"$subfilter\");\n\tthis.listField = this.getAttribute(\"$field\", \"list\");\n\tthis.listIndex = this.getAttribute(\"$index\");\n\tthis.filtertags = this.getAttribute(\"$tags\");\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 = \"!!\",\n\t\tlist = this.listField;\n\tif(this.listIndex) {\n\t\tfield = undefined;\n\t\tindex = this.listIndex;\n\t\ttype = \"##\";\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 = \"[list[\" + this.target + type + list + \"]] \" + 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 = \"[list[\" + this.target + \"!!tags]] \" + 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,\"tags\",undefined,$tw.utils.stringifyList(newtags));\t\t\t\n\t\t}\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\"action-listops\"] = ActionListopsWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/action-log.js": {
+ "title": "$:/core/modules/widgets/action-log.js",
+ "text": "/*\\\ntitle: $:/core/modules/widgets/action-log.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to log debug messages\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar LogWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nLogWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nLogWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\nLogWidget.prototype.execute = function(){\n\tthis.message = this.getAttribute(\"$$message\",\"debug\");\n\tthis.logAll = this.getAttribute(\"$$all\",\"no\") === \"yes\" ? true : false;\n\tthis.filter = this.getAttribute(\"$$filter\");\n}\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nLogWidget.prototype.refresh = function(changedTiddlers) {\n\tthis.refreshSelf();\n\treturn true;\n};\n\n/*\nInvoke the action associated with this widget\n*/\nLogWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tthis.log();\n\treturn true; // Action was invoked\n};\n\nLogWidget.prototype.log = function() {\n\tvar data = {},\n\t\tdataCount,\n\t\tallVars = {},\n\t\tfilteredVars;\n\n\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\tif(name.substring(0,2) !== \"$$\") {\n\t\t\tdata[name] = attribute;\n\t\t}\t\t\n\t});\n\n\tfor(var v in this.variables) {\n\t\tallVars[v] = this.getVariable(v,{defaultValue:\"\"});\n\t}\t\n\tif(this.filter) {\n\t\tfilteredVars = this.wiki.compileFilter(this.filter).call(this.wiki,this.wiki.makeTiddlerIterator(allVars));\n\t\t$tw.utils.each(filteredVars,function(name) {\n\t\t\tdata[name] = allVars[name];\n\t\t});\t\t\n\t}\n\tdataCount = $tw.utils.count(data);\n\n\tconsole.group(this.message);\n\tif(dataCount > 0) {\n\t\t$tw.utils.logTable(data);\n\t}\n\tif(this.logAll || !dataCount) {\n\t\tconsole.groupCollapsed(\"All variables\");\n\t\t$tw.utils.logTable(allVars);\n\t\tconsole.groupEnd();\n\t}\n\tconsole.groupEnd();\n}\n\nexports[\"action-log\"] = LogWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/action-navigate.js": {
+ "title": "$:/core/modules/widgets/action-navigate.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$to\");\n\tthis.actionScroll = this.getAttribute(\"$scroll\");\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[\"$to\"] || changedAttributes[\"$scroll\"]) {\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 && triggeringWidget.getBoundingClientRect && triggeringWidget.getBoundingClientRect(),\n\t\tsuppressNavigation = event.metaKey || event.ctrlKey || (event.button === 1);\n\tif(this.actionScroll === \"yes\") {\n\t\tsuppressNavigation = false;\n\t} else if(this.actionScroll === \"no\") {\n\t\tsuppressNavigation = true;\n\t}\n\tthis.dispatchEvent({\n\t\ttype: \"tm-navigate\",\n\t\tnavigateTo: this.actionTo === undefined ? this.getVariable(\"currentTiddler\") : this.actionTo,\n\t\tnavigateFromTitle: this.getVariable(\"storyTiddler\"),\n\t\tnavigateFromNode: triggeringWidget,\n\t\tnavigateFromClientRect: bounds && { 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[\"action-navigate\"] = NavigateWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/action-popup.js": {
+ "title": "$:/core/modules/widgets/action-popup.js",
+ "text": "/*\\\ntitle: $:/core/modules/widgets/action-popup.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to trigger a popup.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ActionPopupWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nActionPopupWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nActionPopupWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\n/*\nCompute the internal state of the widget\n*/\nActionPopupWidget.prototype.execute = function() {\n\tthis.actionState = this.getAttribute(\"$state\");\n\tthis.actionCoords = this.getAttribute(\"$coords\");\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nActionPopupWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\"$state\"] || changedAttributes[\"$coords\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nActionPopupWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\t// Trigger the popup\n\tvar popupLocationRegExp = /^\\((-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+)\\)$/,\n\t\tmatch = popupLocationRegExp.exec(this.actionCoords || \"\");\n\tif(match) {\n\t\t$tw.popup.triggerPopup({\n\t\t\tdomNode: null,\n\t\t\tdomNodeRect: {\n\t\t\t\tleft: parseFloat(match[1]),\n\t\t\t\ttop: parseFloat(match[2]),\n\t\t\t\twidth: parseFloat(match[3]),\n\t\t\t\theight: parseFloat(match[4])\n\t\t\t},\n\t\t\ttitle: this.actionState,\n\t\t\twiki: this.wiki\n\t\t});\n\t} else {\n\t\t$tw.popup.cancel(0);\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\"action-popup\"] = ActionPopupWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/action-sendmessage.js": {
+ "title": "$:/core/modules/widgets/action-sendmessage.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$message\");\n\tthis.actionParam = this.getAttribute(\"$param\");\n\tthis.actionName = this.getAttribute(\"$name\");\n\tthis.actionValue = this.getAttribute(\"$value\",\"\");\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) !== \"$\") {\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(\"currentTiddler\"),\n\t\tnavigateFromTitle: this.getVariable(\"storyTiddler\"),\n\t\tevent: event\n\t});\n\treturn true; // Action was invoked\n};\n\nexports[\"action-sendmessage\"] = SendMessageWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/action-setfield.js": {
+ "title": "$:/core/modules/widgets/action-setfield.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.actionField = this.getAttribute(\"$field\");\n\tthis.actionIndex = this.getAttribute(\"$index\");\n\tthis.actionValue = this.getAttribute(\"$value\");\n\tthis.actionTimestamp = this.getAttribute(\"$timestamp\",\"yes\") === \"yes\";\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[\"$tiddler\"] || changedAttributes[\"$field\"] || changedAttributes[\"$index\"] || changedAttributes[\"$value\"]) {\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 == \"string\") || (typeof this.actionIndex == \"string\") || (typeof this.actionValue == \"string\")) {\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) !== \"$\") {\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[\"action-setfield\"] = SetFieldWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/browse.js": {
+ "title": "$:/core/modules/widgets/browse.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"input\");\n\tdomNode.setAttribute(\"type\",\"file\");\n\tif(this.browseMultiple) {\n\t\tdomNode.setAttribute(\"multiple\",\"multiple\");\n\t}\n\tif(this.tooltip) {\n\t\tdomNode.setAttribute(\"title\",this.tooltip);\n\t}\n\t// Nw.js supports \"nwsaveas\" to force a \"save as\" dialogue that allows a new or existing file to be selected\n\tif(this.nwsaveas) {\n\t\tdomNode.setAttribute(\"nwsaveas\",this.nwsaveas);\n\t}\n\tif(this.accept) {\n\t\tdomNode.setAttribute(\"accept\",this.accept);\n\t}\n\t// Nw.js supports \"webkitdirectory\" and \"nwdirectory\" to allow a directory to be selected\n\tif(this.webkitdirectory) {\n\t\tdomNode.setAttribute(\"webkitdirectory\",this.webkitdirectory);\n\t}\n\tif(this.nwdirectory) {\n\t\tdomNode.setAttribute(\"nwdirectory\",this.nwdirectory);\n\t}\n\t// Add a click event handler\n\tdomNode.addEventListener(\"change\",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: \"tm-import-tiddlers\", 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(\"multiple\");\n\tthis.deserializer = this.getAttribute(\"deserializer\");\n\tthis.message = this.getAttribute(\"message\");\n\tthis.param = this.getAttribute(\"param\");\n\tthis.tooltip = this.getAttribute(\"tooltip\");\n\tthis.nwsaveas = this.getAttribute(\"nwsaveas\");\n\tthis.accept = this.getAttribute(\"accept\");\n\tthis.webkitdirectory = this.getAttribute(\"webkitdirectory\");\n\tthis.nwdirectory = this.getAttribute(\"nwdirectory\");\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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/button.js": {
+ "title": "$:/core/modules/widgets/button.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ButtonWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nButtonWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nButtonWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this,\n\t\ttag = \"button\",\n\t\tdomNode;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create element\n\tif(this.buttonTag && $tw.config.htmlUnsafeElements.indexOf(this.buttonTag) === -1) {\n\t\ttag = this.buttonTag;\n\t}\n\tdomNode = this.document.createElement(tag);\n\tthis.domNode = domNode;\n\t// Assign classes\n\tvar classes = this[\"class\"].split(\" \") || [],\n\t\tisPoppedUp = (this.popup || this.popupTitle) && this.isPoppedUp();\n\tif(this.selectedClass) {\n\t\tif((this.set || this.setTitle) && this.setTo && this.isSelected()) {\n\t\t\t$tw.utils.pushTop(classes,this.selectedClass.split(\" \"));\n\t\t}\n\t\tif(isPoppedUp) {\n\t\t\t$tw.utils.pushTop(classes,this.selectedClass.split(\" \"));\n\t\t}\n\t}\n\tif(isPoppedUp) {\n\t\t$tw.utils.pushTop(classes,\"tc-popup-handle\");\n\t}\n\tdomNode.className = classes.join(\" \");\n\t// Assign other attributes\n\tif(this.style) {\n\t\tdomNode.setAttribute(\"style\",this.style);\n\t}\n\tif(this.tooltip) {\n\t\tdomNode.setAttribute(\"title\",this.tooltip);\n\t}\n\tif(this[\"aria-label\"]) {\n\t\tdomNode.setAttribute(\"aria-label\",this[\"aria-label\"]);\n\t}\n\t// Set the tabindex\n\tif(this.tabIndex) {\n\t\tdomNode.setAttribute(\"tabindex\",this.tabIndex);\n\t}\n\tif(this.isDisabled === \"yes\") {\n\t\tdomNode.setAttribute(\"disabled\",true);\n\t}\n\t// Add a click event handler\n\tdomNode.addEventListener(\"click\",function (event) {\n\t\tvar handled = false;\n\t\tif(self.invokeActions(self,event)) {\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.to) {\n\t\t\tself.navigateTo(event);\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.message) {\n\t\t\tself.dispatchMessage(event);\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.popup || self.popupTitle) {\n\t\t\tself.triggerPopup(event);\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.set || self.setTitle) {\n\t\t\tself.setTiddler();\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.actions) {\n\t\t\tvar modifierKey = $tw.keyboardManager.getEventModifierKeyDescriptor(event);\n\t\t\tself.invokeActionString(self.actions,self,event,{modifier: modifierKey});\n\t\t}\n\t\tif(handled) {\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\treturn handled;\n\t},false);\n\t// Make it draggable if required\n\tif(this.dragTiddler || this.dragFilter) {\n\t\t$tw.utils.makeDraggable({\n\t\t\tdomNode: domNode,\n\t\t\tdragTiddlerFn: function() {return self.dragTiddler;},\n\t\t\tdragFilterFn: function() {return self.dragFilter;},\n\t\t\twidget: this\n\t\t});\n\t}\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nWe don't allow actions to propagate because we trigger actions ourselves\n*/\nButtonWidget.prototype.allowActionPropagation = function() {\n\treturn false;\n};\n\nButtonWidget.prototype.getBoundingClientRect = function() {\n\treturn this.domNodes[0].getBoundingClientRect();\n};\n\nButtonWidget.prototype.isSelected = function() {\n return this.setTitle ? (this.setField ? this.wiki.getTiddler(this.setTitle).getFieldString(this.setField) === this.setTo :\n\t\t(this.setIndex ? this.wiki.extractTiddlerDataItem(this.setTitle,this.setIndex) === this.setTo :\n\t\t\tthis.wiki.getTiddlerText(this.setTitle))) || this.defaultSetValue || this.getVariable(\"currentTiddler\") :\n\t\tthis.wiki.getTextReference(this.set,this.defaultSetValue,this.getVariable(\"currentTiddler\")) === 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 && 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: \"tm-navigate\",\n\t\tnavigateTo: this.to,\n\t\tnavigateFromTitle: this.getVariable(\"storyTiddler\"),\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(\"currentTiddler\"), 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,\"text\",undefined,this.setTo));\n\t} else {\n\t\tthis.wiki.setTextReference(this.set,this.setTo,this.getVariable(\"currentTiddler\"));\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(\"actions\");\n\tthis.to = this.getAttribute(\"to\");\n\tthis.message = this.getAttribute(\"message\");\n\tthis.param = this.getAttribute(\"param\");\n\tthis.set = this.getAttribute(\"set\");\n\tthis.setTo = this.getAttribute(\"setTo\");\n\tthis.popup = this.getAttribute(\"popup\");\n\tthis.hover = this.getAttribute(\"hover\");\n\tthis[\"aria-label\"] = this.getAttribute(\"aria-label\");\n\tthis.tooltip = this.getAttribute(\"tooltip\");\n\tthis.style = this.getAttribute(\"style\");\n\tthis[\"class\"] = this.getAttribute(\"class\",\"\");\n\tthis.selectedClass = this.getAttribute(\"selectedClass\");\n\tthis.defaultSetValue = this.getAttribute(\"default\",\"\");\n\tthis.buttonTag = this.getAttribute(\"tag\");\n\tthis.dragTiddler = this.getAttribute(\"dragTiddler\");\n\tthis.dragFilter = this.getAttribute(\"dragFilter\");\n\tthis.setTitle = this.getAttribute(\"setTitle\");\n\tthis.setField = this.getAttribute(\"setField\");\n\tthis.setIndex = this.getAttribute(\"setIndex\");\n\tthis.popupTitle = this.getAttribute(\"popupTitle\");\n\tthis.tabIndex = this.getAttribute(\"tabindex\");\n\tthis.isDisabled = this.getAttribute(\"disabled\",\"no\");\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\nButtonWidget.prototype.updateDomNodeClasses = function() {\n\tvar domNodeClasses = this.domNode.className.split(\" \"),\n\t\toldClasses = this.class.split(\" \"),\n\t\tnewClasses;\t\n\tthis[\"class\"] = this.getAttribute(\"class\",\"\");\n\tnewClasses = this.class.split(\" \");\n\t//Remove classes assigned from the old value of class attribute\n\t$tw.utils.each(oldClasses,function(oldClass){\n\t\tvar i = domNodeClasses.indexOf(oldClass);\n\t\tif(i !== -1) {\n\t\t\tdomNodeClasses.splice(i,1);\n\t\t}\n\t});\n\t//Add new classes from updated class attribute.\n\t$tw.utils.pushTop(domNodeClasses,newClasses);\n\tthis.domNode.className = domNodeClasses.join(\" \");\n}\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nButtonWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.actions || changedAttributes.to || changedAttributes.message || changedAttributes.param || changedAttributes.set || changedAttributes.setTo || changedAttributes.popup || changedAttributes.hover || changedAttributes.selectedClass || changedAttributes.style || changedAttributes.dragFilter || changedAttributes.dragTiddler || (this.set && changedTiddlers[this.set]) || (this.popup && changedTiddlers[this.popup]) || (this.popupTitle && changedTiddlers[this.popupTitle]) || changedAttributes.setTitle || changedAttributes.setField || changedAttributes.setIndex || changedAttributes.popupTitle || changedAttributes.disabled) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else if(changedAttributes[\"class\"]) {\n\t\tthis.updateDomNodeClasses();\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.button = ButtonWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/checkbox.js": {
+ "title": "$:/core/modules/widgets/checkbox.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"label\");\n\tthis.labelDomNode.setAttribute(\"class\",this.checkboxClass);\n\tthis.inputDomNode = this.document.createElement(\"input\");\n\tthis.inputDomNode.setAttribute(\"type\",\"checkbox\");\n\tif(this.getValue()) {\n\t\tthis.inputDomNode.setAttribute(\"checked\",\"true\");\n\t}\n\tif(this.isDisabled === \"yes\") {\n\t\tthis.inputDomNode.setAttribute(\"disabled\",true);\n\t}\n\tthis.labelDomNode.appendChild(this.inputDomNode);\n\tthis.spanDomNode = this.document.createElement(\"span\");\n\tthis.labelDomNode.appendChild(this.spanDomNode);\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(this.inputDomNode,[\n\t\t{name: \"change\", handlerObject: this, handlerMethod: \"handleChangeEvent\"}\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] || \"\";\n\t\t\t} else {\n\t\t\t\tvalue = this.checkboxDefault || \"\";\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 || \"\");\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: \"\"},\n\t\tnewFields = {title: this.checkboxTitle},\n\t\thasChanged = false,\n\t\ttagCheck = false,\n\t\thasTag = tiddler && tiddler.hasTag(this.checkboxTag),\n\t\tvalue = checked ? this.checkboxChecked : this.checkboxUnchecked;\n\tif(this.checkboxTag && this.checkboxInvertTag === \"yes\") {\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 && (!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 === \"yes\" && !checked) {\n\t\t\tnewFields.tags.push(this.checkboxTag);\n\t\t} else if(this.checkboxInvertTag !== \"yes\" && 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,\"\",this.checkboxIndex,value);\n\t\t} else {\n\t\t\tthis.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),fallbackFields,tiddler,newFields,this.wiki.getModificationFields()));\n\t\t}\n\t}\n\t// Trigger actions\n\tif(this.checkboxActions) {\n\t\tthis.invokeActionString(this.checkboxActions,this,event);\n\t}\n\tif(this.checkboxCheckActions && checked) {\n\t\tthis.invokeActionString(this.checkboxCheckActions,this,event);\n\t}\n\tif(this.checkboxUncheckActions && !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(\"actions\");\n\tthis.checkboxCheckActions = this.getAttribute(\"checkactions\");\n\tthis.checkboxUncheckActions = this.getAttribute(\"uncheckactions\");\n\tthis.checkboxTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.checkboxTag = this.getAttribute(\"tag\");\n\tthis.checkboxField = this.getAttribute(\"field\");\n\tthis.checkboxIndex = this.getAttribute(\"index\");\n\tthis.checkboxChecked = this.getAttribute(\"checked\");\n\tthis.checkboxUnchecked = this.getAttribute(\"unchecked\");\n\tthis.checkboxDefault = this.getAttribute(\"default\");\n\tthis.checkboxClass = this.getAttribute(\"class\",\"\");\n\tthis.checkboxInvertTag = this.getAttribute(\"invertTag\",\"\");\n\tthis.isDisabled = this.getAttribute(\"disabled\",\"no\");\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[\"default\"] || changedAttributes[\"class\"] || changedAttributes.disabled) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\tvar refreshed = false;\n\t\tif(changedTiddlers[this.checkboxTitle]) {\n\t\t\tthis.inputDomNode.checked = this.getValue();\n\t\t\trefreshed = true;\n\t\t}\n\t\treturn this.refreshChildren(changedTiddlers) || refreshed;\n\t}\n};\n\nexports.checkbox = CheckboxWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/codeblock.js": {
+ "title": "$:/core/modules/widgets/codeblock.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"code\"),\n\t\tdomNode = this.document.createElement(\"pre\");\n\tcodeNode.appendChild(this.document.createTextNode(this.getAttribute(\"code\")));\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(\"language\");\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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/count.js": {
+ "title": "$:/core/modules/widgets/count.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"filter\");\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 = \"0\";\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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/diff-text.js": {
+ "title": "$:/core/modules/widgets/diff-text.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget,\n\tdmp = require(\"$:/core/modules/utils/diff-match-patch/diff_match_patch.js\");\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\"\\n\": \"↩︎\\n\",\n\t\"\\r\": \"⇠\",\n\t\"\\t\": \"⇥\\t\"\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(\"source\"),this.getAttribute(\"dest\"));\n\t// Apply required cleanup\n\tswitch(this.getAttribute(\"cleanup\",\"semantic\")) {\n\t\tcase \"none\":\n\t\t\t// No cleanup\n\t\t\tbreak;\n\t\tcase \"efficiency\":\n\t\t\tdmpObject.diff_cleanupEfficiency(diffs);\n\t\t\tbreak;\n\t\tdefault: // case \"semantic\"\n\t\t\tdmpObject.diff_cleanupSemantic(diffs);\n\t\t\tbreak;\n\t}\n\t// Create the elements\n\tvar domContainer = this.document.createElement(\"div\"), \n\t\tdomDiff = this.createDiffDom(diffs);\n\tparent.insertBefore(domContainer,nextSibling);\n\t// Set variables\n\tthis.setVariable(\"diff-count\",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(\"pre\"),\n\t\tdomCode = this.document.createElement(\"code\");\n\t$tw.utils.each(diffs,function(diff) {\n\t\tvar tag = diff[0] === dmp.DIFF_INSERT ? \"ins\" : (diff[0] === dmp.DIFF_DELETE ? \"del\" : \"span\"),\n\t\t\tclassName = diff[0] === dmp.DIFF_INSERT ? \"tc-diff-insert\" : (diff[0] === dmp.DIFF_DELETE ? \"tc-diff-delete\" : \"tc-diff-equal\"),\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 < 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(\"span\");\n\t\t\tspan.className = \"tc-diff-invisible\";\n\t\t\tprintable = self.invisibleCharacters[match[0]] || (\"[0x\" + match[0].charCodeAt(0).toString(16) + \"]\");\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 < 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 && this.parseTreeNode.children && this.parseTreeNode.children.length > 0) {\n\t\tparseTreeNodes = this.parseTreeNode.children;\n\t} else {\n\t\tparseTreeNodes = [{\n\t\t\ttype: \"transclude\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", value: \"$:/language/Diffs/CountMessage\"}\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[\"diff-text\"] = DiffTextWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/draggable.js": {
+ "title": "$:/core/modules/widgets/draggable.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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 = \"div\";\n\t}\n\t// Create our element\n\tvar domNode = this.document.createElement(tag);\n\t// Assign classes\n\tvar classes = [\"tc-draggable\"];\n\tif(this.draggableClasses) {\n\t\tclasses.push(this.draggableClasses);\n\t}\n\tdomNode.setAttribute(\"class\",classes.join(\" \"));\n\t// Add event handlers\n\t$tw.utils.makeDraggable({\n\t\tdomNode: domNode,\n\t\tdragTiddlerFn: function() {return self.getAttribute(\"tiddler\");},\n\t\tdragFilterFn: function() {return self.getAttribute(\"filter\");},\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(\"tag\",\"div\");\n\tthis.draggableClasses = this.getAttribute(\"class\");\n\tthis.startActions = this.getAttribute(\"startactions\");\n\tthis.endActions = this.getAttribute(\"endactions\");\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nDraggableWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tag || changedAttributes[\"class\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.draggable = DraggableWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/droppable.js": {
+ "title": "$:/core/modules/widgets/droppable.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar DroppableWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nDroppableWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nDroppableWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this,\n\t\ttag = this.parseTreeNode.isBlock ? \"div\" : \"span\",\n\t\tdomNode;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\tif(this.droppableTag && $tw.config.htmlUnsafeElements.indexOf(this.droppableTag) === -1) {\n\t\ttag = this.droppableTag;\n\t}\n\t// Create element and assign classes\n\tdomNode = this.document.createElement(tag);\n\tthis.domNode = domNode;\n\tthis.assignDomNodeClasses();\n\t// Add event handlers\n\tif(this.droppableEnable) {\n\t\t$tw.utils.addEventListeners(domNode,[\n\t\t\t{name: \"dragenter\", handlerObject: this, handlerMethod: \"handleDragEnterEvent\"},\n\t\t\t{name: \"dragover\", handlerObject: this, handlerMethod: \"handleDragOverEvent\"},\n\t\t\t{name: \"dragleave\", handlerObject: this, handlerMethod: \"handleDragLeaveEvent\"},\n\t\t\t{name: \"drop\", handlerObject: this, handlerMethod: \"handleDropEvent\"}\n\t\t]);\t\t\n\t} else {\n\t\t$tw.utils.addClass(this.domNode,this.disabledClass);\n\t}\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n\t// Stack of outstanding enter/leave events\n\tthis.currentlyEntered = [];\n};\n\nDroppableWidget.prototype.enterDrag = function(event) {\n\tif(this.currentlyEntered.indexOf(event.target) === -1) {\n\t\tthis.currentlyEntered.push(event.target);\n\t}\n\t// If we're entering for the first time we need to apply highlighting\n\t$tw.utils.addClass(this.domNodes[0],\"tc-dragover\");\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 && this.currentlyEntered[0] === $tw.dragInProgress)) {\n\t\tthis.currentlyEntered = [];\n\t\tif(this.domNodes[0]) {\n\t\t\t$tw.utils.removeClass(this.domNodes[0],\"tc-dragover\");\n\t\t}\n\t}\n};\n\nDroppableWidget.prototype.handleDragEnterEvent = function(event) {\n\tthis.enterDrag(event);\n\t// Tell the browser that we're ready to handle the drop\n\tevent.preventDefault();\n\t// Tell the browser not to ripple the drag up to any parent drop handlers\n\tevent.stopPropagation();\n\treturn false;\n};\n\nDroppableWidget.prototype.handleDragOverEvent = function(event) {\n\t// Check for being over a TEXTAREA or INPUT\n\tif([\"TEXTAREA\",\"INPUT\"].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([\"TEXTAREA\",\"INPUT\"].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],\"tc-dragover\");\n\t// Try to import the various data types we understand\n\t$tw.utils.importDataTransfer(dataTransfer,null,function(fieldsArray) {\n\t\tfieldsArray.forEach(function(fields) {\n\t\t\tself.performActions(fields.title || fields.text,event);\n\t\t});\n\t});\n\t// Tell the browser that we handled the drop\n\tevent.preventDefault();\n\t// Stop the drop ripple up to any parent handlers\n\tevent.stopPropagation();\n\treturn false;\n};\n\nDroppableWidget.prototype.performActions = function(title,event) {\n\tif(this.droppableActions) {\n\t\tvar modifierKey = $tw.keyboardManager.getEventModifierKeyDescriptor(event);\n\t\tthis.invokeActionString(this.droppableActions,this,event,{actionTiddler: title, modifier: modifierKey});\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nDroppableWidget.prototype.execute = function() {\n\tthis.droppableActions = this.getAttribute(\"actions\");\n\tthis.droppableEffect = this.getAttribute(\"effect\",\"copy\");\n\tthis.droppableTag = this.getAttribute(\"tag\");\n\tthis.droppableEnable = (this.getAttribute(\"enable\") || \"yes\") === \"yes\";\n\tthis.disabledClass = this.getAttribute(\"disabledClass\",\"\");\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\nDroppableWidget.prototype.assignDomNodeClasses = function() {\n\tvar classes = this.getAttribute(\"class\",\"\").split(\" \");\n\tclasses.push(\"tc-droppable\");\n\tthis.domNode.className = classes.join(\" \");\t\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nDroppableWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tag || changedAttributes.enable || changedAttributes.disabledClass || changedAttributes.actions || changedAttributes.effect) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else if(changedAttributes[\"class\"]) {\n\t\tthis.assignDomNodeClasses();\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.droppable = DroppableWidget;\n\n})();",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/dropzone.js": {
+ "title": "$:/core/modules/widgets/dropzone.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"div\");\n\tdomNode.className = this.dropzoneClass || \"tc-dropzone\";\n\t// Add event handlers\n\tif(this.dropzoneEnable) {\n\t\t$tw.utils.addEventListeners(domNode,[\n\t\t\t{name: \"dragenter\", handlerObject: this, handlerMethod: \"handleDragEnterEvent\"},\n\t\t\t{name: \"dragover\", handlerObject: this, handlerMethod: \"handleDragOverEvent\"},\n\t\t\t{name: \"dragleave\", handlerObject: this, handlerMethod: \"handleDragLeaveEvent\"},\n\t\t\t{name: \"drop\", handlerObject: this, handlerMethod: \"handleDropEvent\"},\n\t\t\t{name: \"paste\", handlerObject: this, handlerMethod: \"handlePasteEvent\"},\n\t\t\t{name: \"dragend\", handlerObject: this, handlerMethod: \"handleDragEndEvent\"}\n\t\t]);\t\t\n\t}\n\tdomNode.addEventListener(\"click\",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],\"tc-dragover\");\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],\"tc-dragover\");\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([\"TEXTAREA\",\"INPUT\"].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 = \"copy\"; // Explicitly show this is a copy\n};\n\nDropZoneWidget.prototype.handleDragLeaveEvent = function(event) {\n\tthis.leaveDrag(event);\n};\n\nDropZoneWidget.prototype.handleDragEndEvent = function(event) {\n\t$tw.utils.removeClass(this.domNodes[0],\"tc-dragover\");\n};\n\nDropZoneWidget.prototype.handleDropEvent = function(event) {\n\tvar self = this,\n\t\treadFileCallback = function(tiddlerFieldsArray) {\n\t\t\tself.dispatchEvent({type: \"tm-import-tiddlers\", param: JSON.stringify(tiddlerFieldsArray), autoOpenOnImport: self.autoOpenOnImport, importTitle: self.importTitle});\n\t\t};\n\tthis.leaveDrag(event);\n\t// Check for being over a TEXTAREA or INPUT\n\tif([\"TEXTAREA\",\"INPUT\"].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],\"tc-dragover\");\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(\"Untitled\"),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: \"tm-import-tiddlers\", param: JSON.stringify(tiddlerFieldsArray), autoOpenOnImport: self.autoOpenOnImport, importTitle: self.importTitle});\n\t\t};\n\t// Let the browser handle it if we're in a textarea or input box\n\tif([\"TEXTAREA\",\"INPUT\"].indexOf(event.target.tagName) == -1 && !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<items.length; t++) {\n\t\t\tvar item = items[t];\n\t\t\tif(item.kind === \"file\") {\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 === \"string\") {\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(\"Untitled\"),\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(\"Importing string '\" + str + \"', type: '\" + type + \"'\");\n\t\t\t\t\t}\n\t\t\t\t\tself.dispatchEvent({type: \"tm-import-tiddlers\", param: JSON.stringify([tiddlerFields]), autoOpenOnImport: self.autoOpenOnImport, importTitle: self.importTitle});\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\t// Tell the browser that we've handled the paste\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nDropZoneWidget.prototype.execute = function() {\n\tthis.dropzoneClass = this.getAttribute(\"class\");\n\tthis.dropzoneDeserializer = this.getAttribute(\"deserializer\");\n\tthis.dropzoneEnable = (this.getAttribute(\"enable\") || \"yes\") === \"yes\";\n\tthis.autoOpenOnImport = this.getAttribute(\"autoOpenOnImport\");\n\tthis.importTitle = this.getAttribute(\"importTitle\");\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nDropZoneWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.enable || changedAttributes.autoOpenOnImport || changedAttributes.importTitle || changedAttributes.deserializer || changedAttributes.class) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.dropzone = DropZoneWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/edit-binary.js": {
+ "title": "$:/core/modules/widgets/edit-binary.js",
+ "text": "/*\\\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\"use strict\";\n\nvar BINARY_WARNING_MESSAGE = \"$:/core/ui/BinaryWarning\";\nvar EXPORT_BUTTON_IMAGE = \"$:/core/images/export-button\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar EditBinaryWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEditBinaryWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEditBinaryWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nEditBinaryWidget.prototype.execute = function() {\n\t// Get our parameters\n\tvar editTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tvar tiddler = this.wiki.getTiddler(editTitle);\n\tvar type = tiddler.fields.type;\n\tvar text = tiddler.fields.text;\n\t// Transclude the binary data tiddler warning message\n\tvar warn = {\n\t\ttype: \"element\",\n\t\ttag: \"p\",\n\t\tchildren: [{\n\t\t\ttype: \"transclude\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", value: BINARY_WARNING_MESSAGE}\n\t\t\t}\n\t\t}]\n\t};\n\t// Create download link based on draft tiddler title\n\tvar link = {\n\t\ttype: \"element\",\n\t\ttag: \"a\",\n\t\tattributes: {\n\t\t\ttitle: {type: \"indirect\", textReference: \"!!draft.title\"},\n\t\t\tdownload: {type: \"indirect\", textReference: \"!!draft.title\"}\n\t\t},\n\t\tchildren: [{\n\t\ttype: \"transclude\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", value: EXPORT_BUTTON_IMAGE}\n\t\t\t}\n\t\t}]\n\t};\n\t// Set the link href to internal data URI (no external)\n\tif(text) {\n\t\tlink.attributes.href = {\n\t\t\ttype: \"string\", \n\t\t\tvalue: \"data:\" + type + \";base64,\" + text\n\t\t};\n\t}\n\t// Combine warning message and download link in a div\n\tvar element = {\n\t\ttype: \"element\",\n\t\ttag: \"div\",\n\t\tattributes: {\n\t\t\tclass: {type: \"string\", value: \"tc-binary-warning\"}\n\t\t},\n\t\tchildren: [warn, link]\n\t}\n\t// Construct the child widgets\n\tthis.makeChildWidgets([element]);\n};\n\n/*\nRefresh by refreshing our child widget\n*/\nEditBinaryWidget.prototype.refresh = function(changedTiddlers) {\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports[\"edit-binary\"] = EditBinaryWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/edit-bitmap.js": {
+ "title": "$:/core/modules/widgets/edit-bitmap.js",
+ "text": "/*\\\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\"use strict\";\n\n// Default image sizes\nvar DEFAULT_IMAGE_WIDTH = 600,\n\tDEFAULT_IMAGE_HEIGHT = 370,\n\tDEFAULT_IMAGE_TYPE = \"image/png\";\n\n// Configuration tiddlers\nvar LINE_WIDTH_TITLE = \"$:/config/BitmapEditor/LineWidth\",\n\tLINE_COLOUR_TITLE = \"$:/config/BitmapEditor/Colour\",\n\tLINE_OPACITY_TITLE = \"$:/config/BitmapEditor/Opacity\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"bitmapeditoroperation\",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(\"div\");\n\tthis.toolbarNode.className = \"tc-editor-toolbar\";\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(\"canvas\",{\n\t\tdocument: this.document,\n\t\t\"class\":\"tc-edit-bitmapeditor\",\n\t\teventListeners: [{\n\t\t\tname: \"touchstart\", handlerObject: this, handlerMethod: \"handleTouchStartEvent\"\n\t\t},{\n\t\t\tname: \"touchmove\", handlerObject: this, handlerMethod: \"handleTouchMoveEvent\"\n\t\t},{\n\t\t\tname: \"touchend\", handlerObject: this, handlerMethod: \"handleTouchEndEvent\"\n\t\t},{\n\t\t\tname: \"mousedown\", handlerObject: this, handlerMethod: \"handleMouseDownEvent\"\n\t\t},{\n\t\t\tname: \"mousemove\", handlerObject: this, handlerMethod: \"handleMouseMoveEvent\"\n\t\t},{\n\t\t\tname: \"mouseup\", handlerObject: this, handlerMethod: \"handleMouseUpEvent\"\n\t\t}]\n\t});\n\t// Set the width and height variables\n\tthis.setVariable(\"tv-bitmap-editor-width\",this.canvasDomNode.width + \"px\");\n\tthis.setVariable(\"tv-bitmap-editor-height\",this.canvasDomNode.height + \"px\");\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: \"tm-edit-bitmap-operation\", handler: \"handleEditBitmapOperationMessage\"}\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(\"tiddler\",this.getVariable(\"currentTiddler\"));\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(\"tv-bitmap-editor-width\",this.canvasDomNode.width + \"px\");\n\tthis.setVariable(\"tv-bitmap-editor-height\",this.canvasDomNode.height + \"px\");\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(\"canvas\");\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(\"canvas\");\n\t\tself.initCanvas(self.currCanvas,DEFAULT_IMAGE_WIDTH,DEFAULT_IMAGE_HEIGHT);\n\t\t// Set the width and height input boxes\n\t\tself.refreshToolbar();\n\t};\n\t// Get the current bitmap into an image object\n\tif(tiddler && tiddler.fields.type && tiddler.fields.text) {\n\t\tcurrImage.src = \"data:\" + tiddler.fields.type + \";base64,\" + tiddler.fields.text;\t\t\n\t} else {\n\t\tcurrImage.width = DEFAULT_IMAGE_WIDTH;\n\t\tcurrImage.height = DEFAULT_IMAGE_HEIGHT;\n\t\tcurrImage.onerror();\n\t}\n};\n\nEditBitmapWidget.prototype.initCanvas = function(canvas,width,height,image) {\n\tcanvas.width = width;\n\tcanvas.height = height;\n\tvar ctx = canvas.getContext(\"2d\");\n\tif(image) {\n\t\tctx.drawImage(image,0,0);\n\t} else {\n\t\tctx.fillStyle = \"#fff\";\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(\"canvas\");\n\tthis.initCanvas(newCanvas,newWidth,newHeight);\n\t// Copy the old image\n\tvar ctx = newCanvas.getContext(\"2d\");\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(\"2d\");\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(\"canvas\"),\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(\"2d\");\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(\"2d\");\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(\"2d\"),\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,\"1.0\"));\n\tctx.strokeStyle = this.wiki.getTiddlerText(LINE_COLOUR_TITLE,\"#ff0\");\n\tctx.lineWidth = parseFloat(this.wiki.getTiddlerText(LINE_WIDTH_TITLE,\"3\"));\n\tctx.lineCap = \"round\";\n\tctx.lineJoin = \"round\";\n\tctx.beginPath();\n\tctx.moveTo(this.stroke[0].x,this.stroke[0].y);\n\tfor(t=1; t<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(\"2d\");\n\tctx.drawImage(this.canvasDomNode,0,0);\n\t// Save the image into the tiddler\n\tthis.saveChanges();\n};\n\nEditBitmapWidget.prototype.saveChanges = function() {\n\tvar tiddler = this.wiki.getTiddler(this.editTitle) || new $tw.Tiddler({title: this.editTitle,type: DEFAULT_IMAGE_TYPE});\n\t// data URIs look like \"data:<type>;base64,<text>\"\n\tvar dataURL = this.canvasDomNode.toDataURL(tiddler.fields.type),\n\t\tposColon = dataURL.indexOf(\":\"),\n\t\tposSemiColon = dataURL.indexOf(\";\"),\n\t\tposComma = dataURL.indexOf(\",\"),\n\t\ttype = dataURL.substring(posColon+1,posSemiColon),\n\t\ttext = dataURL.substring(posComma+1);\n\tvar update = {type: type, text: text};\n\tthis.wiki.addTiddler(new $tw.Tiddler(this.wiki.getModificationFields(),tiddler,update,this.wiki.getCreationFields()));\n};\n\nexports[\"edit-bitmap\"] = EditBitmapWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/edit-shortcut.js": {
+ "title": "$:/core/modules/widgets/edit-shortcut.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"input\");\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(\"style\",this.shortcutStyle);\n\t}\n\tif(this.shortcutTooltip) {\n\t\tthis.inputNode.setAttribute(\"title\",this.shortcutTooltip);\n\t}\n\tif(this.shortcutPlaceholder) {\n\t\tthis.inputNode.setAttribute(\"placeholder\",this.shortcutPlaceholder);\n\t}\n\tif(this.shortcutAriaLabel) {\n\t\tthis.inputNode.setAttribute(\"aria-label\",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: \"keydown\", handlerObject: this, handlerMethod: \"handleKeydownEvent\"}\n\t]);\n\t// Link into the DOM\n\tparent.insertBefore(this.inputNode,nextSibling);\n\tthis.domNodes.push(this.inputNode);\n\t// Focus the input Node if focus === \"yes\" or focus === \"true\"\n\tif(this.shortcutFocus === \"yes\" || this.shortcutFocus === \"true\") {\n\t\tthis.focus();\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nEditShortcutWidget.prototype.execute = function() {\n\tthis.shortcutTiddler = this.getAttribute(\"tiddler\");\n\tthis.shortcutField = this.getAttribute(\"field\");\n\tthis.shortcutIndex = this.getAttribute(\"index\");\n\tthis.shortcutPlaceholder = this.getAttribute(\"placeholder\");\n\tthis.shortcutDefault = this.getAttribute(\"default\",\"\");\n\tthis.shortcutClass = this.getAttribute(\"class\");\n\tthis.shortcutStyle = this.getAttribute(\"style\");\n\tthis.shortcutTooltip = this.getAttribute(\"tooltip\");\n\tthis.shortcutAriaLabel = this.getAttribute(\"aria-label\");\n\tthis.shortcutFocus = this.getAttribute(\"focus\");\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 && $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 \"keydown\" event\n*/\nEditShortcutWidget.prototype.handleKeydownEvent = function(event) {\n\t// Ignore shift, ctrl, meta, alt\n\tif(event.keyCode && $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 > 0) {\n\t\t\tthis.wiki.setText(this.shortcutTiddler,this.shortcutField,this.shortcutIndex,value[0]);\n\t\t}\n\t\t// Ignore the keydown if it was already handled\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\treturn true;\t\t\n\t} else {\n\t\treturn false;\n\t}\n};\n\n/*\nfocus the input node\n*/\nEditShortcutWidget.prototype.focus = function() {\n\tif(this.inputNode.focus && this.inputNode.select) {\n\t\tthis.inputNode.focus();\n\t\tthis.inputNode.select();\n\t}\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget needed re-rendering\n*/\nEditShortcutWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.placeholder || changedAttributes[\"default\"] || changedAttributes[\"class\"] || changedAttributes.style || changedAttributes.tooltip || changedAttributes[\"aria-label\"] || changedAttributes.focus) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else if(changedTiddlers[this.shortcutTiddler]) {\n\t\tthis.updateInputNode();\n\t\treturn true;\n\t} else {\n\t\treturn false;\t\n\t}\n};\n\nexports[\"edit-shortcut\"] = EditShortcutWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/edit-text.js": {
+ "title": "$:/core/modules/widgets/edit-text.js",
+ "text": "/*\\\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\"use strict\";\n\nvar editTextWidgetFactory = require(\"$:/core/modules/editor/factory.js\").editTextWidgetFactory,\n\tFramedEngine = require(\"$:/core/modules/editor/engines/framed.js\").FramedEngine,\n\tSimpleEngine = require(\"$:/core/modules/editor/engines/simple.js\").SimpleEngine;\n\nexports[\"edit-text\"] = editTextWidgetFactory(FramedEngine,SimpleEngine);\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/edit.js": {
+ "title": "$:/core/modules/widgets/edit.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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 = \"$:/config/EditorTypeMappings/\";\n\n/*\nCompute the internal state of the widget\n*/\nEditWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.editTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.editField = this.getAttribute(\"field\",\"text\");\n\tthis.editIndex = this.getAttribute(\"index\");\n\tthis.editClass = this.getAttribute(\"class\");\n\tthis.editPlaceholder = this.getAttribute(\"placeholder\");\n\tthis.editTabIndex = this.getAttribute(\"tabindex\");\n\tthis.editFocus = this.getAttribute(\"focus\",\"\");\n\tthis.editCancelPopups = this.getAttribute(\"cancelPopups\",\"\");\n\tthis.editInputActions = this.getAttribute(\"inputActions\");\n\tthis.editRefreshTitle = this.getAttribute(\"refreshTitle\");\n\tthis.editAutoComplete = this.getAttribute(\"autocomplete\");\n\t// Choose the appropriate edit widget\n\tthis.editorType = this.getEditorType();\n\t// Make the child widgets\n\tthis.makeChildWidgets([{\n\t\ttype: \"edit-\" + this.editorType,\n\t\tattributes: this.parseTreeNode.attributes,\n\t\tchildren: this.parseTreeNode.children\n\t}]);\n};\n\nEditWidget.prototype.getEditorType = function() {\n\t// Get the content type of the thing we're editing\n\tvar type;\n\tif(this.editField === \"text\") {\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 || \"text/vnd.tiddlywiki\";\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 && typeInfo.encoding === \"base64\") {\n\t\t\teditorType = \"binary\";\n\t\t} else {\n\t\t\teditorType = \"text\";\n\t\t}\n\t}\n\treturn editorType;\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nEditWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\t// Refresh if an attribute has changed, or the type associated with the target tiddler has changed\n\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.tabindex || changedAttributes.cancelPopups || changedAttributes.inputActions || changedAttributes.refreshTitle || changedAttributes.autocomplete || (changedTiddlers[this.editTitle] && this.getEditorType() !== this.editorType)) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.edit = EditWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/element.js": {
+ "title": "$:/core/modules/widgets/element.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ElementWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nElementWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nElementWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\t// Neuter blacklisted elements\n\tthis.tag = this.parseTreeNode.tag;\n\tif($tw.config.htmlUnsafeElements.indexOf(this.tag) !== -1) {\n\t\tthis.tag = \"safe-\" + this.tag;\n\t}\n\t// Adjust headings by the current base level\n\tvar headingLevel = [\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"].indexOf(this.tag);\n\tif(headingLevel !== -1) {\n\t\tvar baseLevel = parseInt(this.getVariable(\"tv-adjust-heading-level\",\"0\"),10) || 0;\n\t\theadingLevel = Math.min(Math.max(headingLevel + 1 + baseLevel,1),6);\n\t\tthis.tag = \"h\" + headingLevel;\n\t}\n\t// Select the namespace for the tag\n\tvar tagNamespaces = {\n\t\t\tsvg: \"http://www.w3.org/2000/svg\",\n\t\t\tmath: \"http://www.w3.org/1998/Math/MathML\",\n\t\t\tbody: \"http://www.w3.org/1999/xhtml\"\n\t\t};\n\tthis.namespace = tagNamespaces[this.tag];\n\tif(this.namespace) {\n\t\tthis.setVariable(\"namespace\",this.namespace);\n\t} else {\n\t\tthis.namespace = this.getVariable(\"namespace\",{defaultValue: \"http://www.w3.org/1999/xhtml\"});\n\t}\n\t// Invoke the th-rendering-element hook\n\tvar parseTreeNodes = $tw.hooks.invokeHook(\"th-rendering-element\",null,this);\n\tthis.isReplaced = !!parseTreeNodes;\n\tif(parseTreeNodes) {\n\t\t// Use the parse tree nodes provided by the hook\n\t\tthis.makeChildWidgets(parseTreeNodes);\n\t\tthis.renderChildren(this.parentDomNode,null);\n\t\treturn;\n\t}\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n\t// Create the DOM node and render children\n\tvar domNode = this.document.createElementNS(this.namespace,this.tag);\n\tthis.assignAttributes(domNode,{excludeEventAttributes: true});\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nElementWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes(),\n\t\thasChangedAttributes = $tw.utils.count(changedAttributes) > 0;\n\tif(hasChangedAttributes) {\n\t\tif(!this.isReplaced) {\n\t\t\t// Update our attributes\n\t\t\tthis.assignAttributes(this.domNodes[0],{excludeEventAttributes: true});\t\t\t\n\t\t} else {\n\t\t\t// If we were replaced then completely refresh ourselves\n\t\t\treturn this.refreshSelf();\n\t\t}\n\t}\n\treturn this.refreshChildren(changedTiddlers) || hasChangedAttributes;\n};\n\nexports.element = ElementWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/encrypt.js": {
+ "title": "$:/core/modules/widgets/encrypt.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"filter\",\"[!is[system]]\");\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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/entity.js": {
+ "title": "$:/core/modules/widgets/entity.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar EntityWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEntityWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEntityWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar entityString = this.getAttribute(\"entity\",this.parseTreeNode.entity || \"\"),\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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/eventcatcher.js": {
+ "title": "$:/core/modules/widgets/eventcatcher.js",
+ "text": "/*\\\ntitle: $:/core/modules/widgets/eventcatcher.js\ntype: application/javascript\nmodule-type: widget\n\nEvent handler widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar EventWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEventWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEventWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create element\n\tvar tag = this.parseTreeNode.isBlock ? \"div\" : \"span\";\n\tif(this.elementTag && $tw.config.htmlUnsafeElements.indexOf(this.elementTag) === -1) {\n\t\ttag = this.elementTag;\n\t}\t\n\tvar domNode = this.document.createElement(tag);\n\tthis.domNode = domNode;\n\t// Assign classes\n\tthis.assignDomNodeClasses();\t\n\t// Add our event handler\n\t$tw.utils.each(this.types,function(type) {\n\t\tdomNode.addEventListener(type,function(event) {\n\t\t\tvar selector = self.getAttribute(\"selector\"),\n\t\t\t\tactions = self.getAttribute(\"actions-\"+type),\n\t\t\t\tselectedNode = event.target,\n\t\t\t\tselectedNodeRect,\n\t\t\t\tcatcherNodeRect,\n\t\t\t\tvariables = {};\n\t\t\tif(selector) {\n\t\t\t\t// Search ancestors for a node that matches the selector\n\t\t\t\twhile(!selectedNode.matches(selector) && selectedNode !== domNode) {\n\t\t\t\t\tselectedNode = selectedNode.parentNode;\n\t\t\t\t}\n\t\t\t\t// If we found one, copy the attributes as variables, otherwise exit\n\t\t\t\tif(selectedNode.matches(selector)) {\n\t\t\t\t\t$tw.utils.each(selectedNode.attributes,function(attribute) {\n\t\t\t\t\t\tvariables[\"dom-\" + attribute.name] = attribute.value.toString();\n\t\t\t\t\t});\n\t\t\t\t\t//Add a variable with a popup coordinate string for the selected node\n\t\t\t\t\tvariables[\"tv-popup-coords\"] = \"(\" + selectedNode.offsetLeft + \",\" + selectedNode.offsetTop +\",\" + selectedNode.offsetWidth + \",\" + selectedNode.offsetHeight + \")\";\n\t\t\t\t\t\n\t\t\t\t\t//Add variables for offset of selected node\n\t\t\t\t\tvariables[\"tv-selectednode-posx\"] = selectedNode.offsetLeft.toString();\n\t\t\t\t\tvariables[\"tv-selectednode-posy\"] = selectedNode.offsetTop.toString();\n\t\t\t\t\tvariables[\"tv-selectednode-width\"] = selectedNode.offsetWidth.toString();\n\t\t\t\t\tvariables[\"tv-selectednode-height\"] = selectedNode.offsetHeight.toString();\n\n\t\t\t\t\t//Add variables for event X and Y position relative to selected node\n\t\t\t\t\tselectedNodeRect = selectedNode.getBoundingClientRect();\t\t\t\t\n\t\t\t\t\tvariables[\"event-fromselected-posx\"] = (event.clientX - selectedNodeRect.left).toString();\n\t\t\t\t\tvariables[\"event-fromselected-posy\"] = (event.clientY - selectedNodeRect.top).toString();\n\n\t\t\t\t\t//Add variables for event X and Y position relative to event catcher node\n\t\t\t\t\tcatcherNodeRect = self.domNode.getBoundingClientRect();\n\t\t\t\t\tvariables[\"event-fromcatcher-posx\"] = (event.clientX - catcherNodeRect.left).toString();\n\t\t\t\t\tvariables[\"event-fromcatcher-posy\"] = (event.clientY - catcherNodeRect.top).toString();\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Execute our actions with the variables\n\t\t\tif(actions) {\n\t\t\t\t// Add a variable for the modifier key\n\t\t\t\tvariables.modifier = $tw.keyboardManager.getEventModifierKeyDescriptor(event);\n\t\t\t\t// Add a variable for the mouse button\n\t\t\t\tif(\"button\" in event) {\n\t\t\t\t\tif(event.button === 0) {\n\t\t\t\t\t\tvariables[\"event-mousebutton\"] = \"left\";\n\t\t\t\t\t} else if(event.button === 1) {\n\t\t\t\t\t\tvariables[\"event-mousebutton\"] = \"middle\";\n\t\t\t\t\t} else if(event.button === 2) {\n\t\t\t\t\t\tvariables[\"event-mousebutton\"] = \"right\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tvariables[\"event-type\"] = event.type.toString();\n\t\t\t\tif(typeof event.detail === \"object\" && !!event.detail) {\n\t\t\t\t\t$tw.utils.each(event.detail,function(detailValue,detail) {\n\t\t\t\t\t\tvariables[\"event-detail-\" + detail] = detailValue.toString();\n\t\t\t\t\t});\n\t\t\t\t} else if(!!event.detail) {\n\t\t\t\t\tvariables[\"event-detail\"] = event.detail.toString();\n\t\t\t\t}\n\t\t\t\tself.invokeActionString(actions,self,event,variables);\n\t\t\t\tevent.preventDefault();\n\t\t\t\tevent.stopPropagation();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t},false);\n\t});\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nEventWidget.prototype.execute = function() {\n\tvar self = this;\n\t// Get attributes that require a refresh on change\n\tthis.types = this.getAttribute(\"events\",\"\").split(\" \");\n\tthis.elementTag = this.getAttribute(\"tag\");\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\nEventWidget.prototype.assignDomNodeClasses = function() {\n\tvar classes = this.getAttribute(\"class\",\"\").split(\" \");\n\tclasses.push(\"tc-eventcatcher\");\n\tthis.domNode.className = classes.join(\" \");\t\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nEventWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\"events\"] || changedAttributes[\"tag\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else if(changedAttributes[\"class\"]) {\n\t\tthis.assignDomNodeClasses();\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.eventcatcher = EventWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/fieldmangler.js": {
+ "title": "$:/core/modules/widgets/fieldmangler.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar FieldManglerWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.addEventListeners([\n\t\t{type: \"tm-remove-field\", handler: \"handleRemoveFieldEvent\"},\n\t\t{type: \"tm-add-field\", handler: \"handleAddFieldEvent\"},\n\t\t{type: \"tm-remove-tag\", handler: \"handleRemoveTagEvent\"},\n\t\t{type: \"tm-add-tag\", handler: \"handleAddTagEvent\"}\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(\"tiddler\",this.getVariable(\"currentTiddler\"));\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\"InvalidFieldName\",\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 && tiddler) {\n\t\t\t\t\tvalue = tiddler.fields[trimmedName];\n\t\t\t\t}\n\t\t\t\taddition[trimmedName] = value || \"\";\n\t\t\t}\n\t\t\treturn;\n\t\t};\n\taddition.title = this.mangleTitle;\n\tif(typeof event.param === \"string\") {\n\t\taddField(event.param,\"\");\n\t}\n\tif(typeof event.paramObject === \"object\") {\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 && 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 && typeof event.param === \"string\") {\n\t\tvar tag = event.param.trim();\n\t\tif(tag !== \"\") {\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 === \"string\" && event.param.trim() !== \"\" && this.mangleTitle.trim() !== \"\") {\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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/fields.js": {
+ "title": "$:/core/modules/widgets/fields.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.template = this.getAttribute(\"template\");\n\tthis.sort = this.getAttribute(\"sort\",\"yes\") === \"yes\";\n\tthis.sortReverse = this.getAttribute(\"sortReverse\",\"no\") === \"yes\";\n\tthis.exclude = this.getAttribute(\"exclude\");\n\tthis.include = this.getAttribute(\"include\",null);\n\tthis.stripTitlePrefix = this.getAttribute(\"stripTitlePrefix\",\"no\") === \"yes\";\n\t// Get the value to display\n\tvar tiddler = this.wiki.getTiddler(this.tiddlerTitle);\n\n\t// Get the inclusion and exclusion list\n\tvar excludeArr = (this.exclude) ? this.exclude.split(\" \") : [\"text\"];\n\t// Include takes precedence\n\tvar includeArr = (this.include) ? this.include.split(\" \") : null;\n\n\t// Compose the template\n\tvar text = [];\n\tif(this.template && tiddler) {\n\t\tvar fields = [];\n\t\tif (includeArr) { // Include takes precedence\n\t\t\tfor(var i=0; i<includeArr.length; i++) {\n\t\t\t\tif(tiddler.fields[includeArr[i]]) {\n\t\t\t\t\tfields.push(includeArr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor(var fieldName in tiddler.fields) {\n\t\t\t\tif(excludeArr.indexOf(fieldName) === -1) {\n\t\t\t\t\tfields.push(fieldName);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (this.sort) fields.sort();\n\t\tif (this.sortReverse) fields.reverse();\n\t\tfor(var f=0, fmax=fields.length; f<fmax; f++) {\n\t\t\tfieldName = fields[f];\n\t\t\tvar row = this.template,\n\t\t\t\tvalue = tiddler.getFieldString(fieldName);\n\t\t\tif(this.stripTitlePrefix && fieldName === \"title\") {\n\t\t\t\tvar reStrip = /^\\{[^\\}]+\\}(.+)/mg,\n\t\t\t\t\treMatch = reStrip.exec(value);\n\t\t\t\tif(reMatch) {\n\t\t\t\t\tvalue = reMatch[1];\n\t\t\t\t}\n\t\t\t}\n\t\t\trow = $tw.utils.replaceString(row,\"$name$\",fieldName);\n\t\t\trow = $tw.utils.replaceString(row,\"$value$\",value);\n\t\t\trow = $tw.utils.replaceString(row,\"$encoded_value$\",$tw.utils.htmlEncode(value));\n\t\t\ttext.push(row);\n\t\t}\n\t}\n\tthis.text = text.join(\"\");\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nFieldsWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif( changedAttributes.tiddler || changedAttributes.template || changedAttributes.exclude ||\n\t\tchangedAttributes.include || changedAttributes.sort || changedAttributes.sortReverse ||\n\t\tchangedTiddlers[this.tiddlerTitle] || changedAttributes.stripTitlePrefix) {\n\t\t\tthis.refreshSelf();\n\t\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n};\n\nexports.fields = FieldsWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/image.js": {
+ "title": "$:/core/modules/widgets/image.js",
+ "text": "/*\\\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<$image src=\"TiddlerTitle\" width=\"320\" height=\"400\" class=\"classnames\">\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 `<img>` tag.\n\nTiddlers that have a _canonical_uri field generate an HTML `<img>` tag with the src attribute containing the URI.\n\nTiddlers that contain image data generate an HTML `<img>` 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 \"px\" suffix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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 = \"img\", src = \"\",\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(\"tv-get-export-image-link\",{params: [{name: \"src\",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 \"application/pdf\":\n\t\t\t\t\t\ttag = \"embed\";\n\t\t\t\t\t\tsrc = \"data:application/pdf;base64,\" + text;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"image/svg+xml\":\n\t\t\t\t\t\tsrc = \"data:image/svg+xml,\" + encodeURIComponent(text);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tsrc = \"data:\" + type + \";base64,\" + 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 \"application/pdf\":\n\t\t\t\t\t\ttag = \"embed\";\n\t\t\t\t\t\tsrc = _canonical_uri;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"image/svg+xml\":\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(\"src\",src);\n\tif(this.imageClass) {\n\t\tdomNode.setAttribute(\"class\",this.imageClass);\t\t\n\t}\n\tif(this.imageWidth) {\n\t\tdomNode.setAttribute(\"width\",this.imageWidth);\n\t}\n\tif(this.imageHeight) {\n\t\tdomNode.setAttribute(\"height\",this.imageHeight);\n\t}\n\tif(this.imageTooltip) {\n\t\tdomNode.setAttribute(\"title\",this.imageTooltip);\t\t\n\t}\n\tif(this.imageAlt) {\n\t\tdomNode.setAttribute(\"alt\",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(\"source\");\n\tthis.imageWidth = this.getAttribute(\"width\");\n\tthis.imageHeight = this.getAttribute(\"height\");\n\tthis.imageClass = this.getAttribute(\"class\");\n\tthis.imageTooltip = this.getAttribute(\"tooltip\");\n\tthis.imageAlt = this.getAttribute(\"alt\");\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[\"class\"] || 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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/importvariables.js": {
+ "title": "$:/core/modules/widgets/importvariables.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ImportVariablesWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nImportVariablesWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nImportVariablesWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nImportVariablesWidget.prototype.execute = function(tiddlerList) {\n\tvar widgetPointer = this;\n\t// Got to flush all the accumulated variables\n\tthis.variables = new this.variablesConstructor();\n\t// Get our parameters\n\tthis.filter = this.getAttribute(\"filter\");\n\t// Compute the filter\n\tthis.tiddlerList = tiddlerList || this.wiki.filterTiddlers(this.filter,this);\n\t// Accumulate the <$set> widgets from each tiddler\n\t$tw.utils.each(this.tiddlerList,function(title) {\n\t\tvar parser = widgetPointer.wiki.parseTiddler(title);\n\t\tif(parser) {\n\t\t\tvar parseTreeNode = parser.tree[0];\n\t\t\twhile(parseTreeNode && parseTreeNode.type === \"set\") {\n\t\t\t\tvar node = {\n\t\t\t\t\ttype: \"set\",\n\t\t\t\t\tattributes: parseTreeNode.attributes,\n\t\t\t\t\tparams: parseTreeNode.params,\n\t\t\t\t\tisMacroDefinition: parseTreeNode.isMacroDefinition\n\t\t\t\t};\n\t\t\t\tif (parseTreeNode.isMacroDefinition) {\n\t\t\t\t\t// Macro definitions can be folded into\n\t\t\t\t\t// current widget instead of adding\n\t\t\t\t\t// another link to the chain.\n\t\t\t\t\tvar widget = widgetPointer.makeChildWidget(node);\n\t\t\t\t\twidget.computeAttributes();\n\t\t\t\t\twidget.execute();\n\t\t\t\t\t// We SHALLOW copy over all variables\n\t\t\t\t\t// in widget. We can't use\n\t\t\t\t\t// $tw.utils.assign, because that copies\n\t\t\t\t\t// up the prototype chain, which we\n\t\t\t\t\t// don't want.\n\t\t\t\t\t$tw.utils.each(Object.keys(widget.variables), function(key) {\n\t\t\t\t\t\twidgetPointer.variables[key] = widget.variables[key];\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\twidgetPointer.children = [widgetPointer.makeChildWidget(node)];\n\t\t\t\t\t// No more regenerating children for\n\t\t\t\t\t// this widget. If it needs to refresh,\n\t\t\t\t\t// it'll do so along with the the whole\n\t\t\t\t\t// importvariable tree.\n\t\t\t\t\tif (widgetPointer != this) {\n\t\t\t\t\t\twidgetPointer.makeChildWidgets = function(){};\n\t\t\t\t\t}\n\t\t\t\t\twidgetPointer = widgetPointer.children[0];\n\t\t\t\t}\n\t\t\t\tparseTreeNode = parseTreeNode.children && parseTreeNode.children[0];\n\t\t\t}\n\t\t} \n\t});\n\n\tif (widgetPointer != this) {\n\t\twidgetPointer.parseTreeNode.children = this.parseTreeNode.children;\n\t} else {\n\t\twidgetPointer.makeChildWidgets();\n\t}\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nImportVariablesWidget.prototype.refresh = function(changedTiddlers) {\n\t// Recompute our attributes and the filter list\n\tvar changedAttributes = this.computeAttributes(),\n\t\ttiddlerList = this.wiki.filterTiddlers(this.getAttribute(\"filter\"),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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/keyboard.js": {
+ "title": "$:/core/modules/widgets/keyboard.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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 ? \"div\" : \"span\";\n\tif(this.tag && $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[\"class\"] || \"\").split(\" \");\n\tclasses.push(\"tc-keyboard\");\n\tdomNode.className = classes.join(\" \");\n\t// Add a keyboard event handler\n\tdomNode.addEventListener(\"keydown\",function (event) {\n\t\tif($tw.keyboardManager.checkKeyDescriptors(event,self.keyInfoArray)) {\n\t\t\tvar handled = self.invokeActions(self,event);\n\t\t\tif(self.actions) {\n\t\t\t\tself.invokeActionString(self.actions,self,event);\n\t\t\t}\n\t\t\tself.dispatchMessage(event);\n\t\t\tif(handled || self.actions || self.message) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t},false);\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\nKeyboardWidget.prototype.dispatchMessage = function(event) {\n\tthis.dispatchEvent({type: this.message, param: this.param, tiddlerTitle: this.getVariable(\"currentTiddler\")});\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(\"actions\",\"\");\n\tthis.message = this.getAttribute(\"message\",\"\");\n\tthis.param = this.getAttribute(\"param\",\"\");\n\tthis.key = this.getAttribute(\"key\",\"\");\n\tthis.tag = this.getAttribute(\"tag\",\"\");\n\tthis.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);\n\tthis[\"class\"] = this.getAttribute(\"class\",\"\");\n\tif(this.key.substr(0,2) === \"((\" && this.key.substr(-2,2) === \"))\") {\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(\"$:/config/\" + platformDescriptor + \"/\" + 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[\"class\"] || 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 && $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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/link.js": {
+ "title": "$:/core/modules/widgets/link.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"tv-wikilinks\"),\n\t\tuseWikiLinks = wikiLinksMacro ? (wikiLinksMacro.trim() !== \"no\") : true,\n\t\tmissingLinksEnabled = !(this.hideMissingLinks && this.isMissing && !this.isShadow);\n\t// Render the link if required\n\tif(useWikiLinks && 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(\"span\");\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 = \"a\";\n\t}\n\t// Create our element\n\tvar namespace = this.getVariable(\"namespace\",{defaultValue: \"http://www.w3.org/1999/xhtml\"}),\n\t\tdomNode = this.document.createElementNS(namespace,tag);\n\t// Assign classes\n\tvar classes = [];\n\tif(this.overrideClasses === undefined) {\n\t\tclasses.push(\"tc-tiddlylink\");\n\t\tif(this.isShadow) {\n\t\t\tclasses.push(\"tc-tiddlylink-shadow\");\n\t\t}\n\t\tif(this.isMissing && !this.isShadow) {\n\t\t\tclasses.push(\"tc-tiddlylink-missing\");\n\t\t} else {\n\t\t\tif(!this.isMissing) {\n\t\t\t\tclasses.push(\"tc-tiddlylink-resolves\");\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 !== \"\") {\n\t\tclasses.push(this.overrideClasses)\n\t}\n\tif(classes.length > 0) {\n\t\tdomNode.setAttribute(\"class\",classes.join(\" \"));\n\t}\n\t// Set an href\n\tvar wikilinkTransformFilter = this.getVariable(\"tv-filter-export-link\"),\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(\"tv-wikilink-template\"),\n\t\t\twikiLinkTemplate = wikiLinkTemplateMacro ? wikiLinkTemplateMacro.trim() : \"#$uri_encoded$\";\n\t\twikiLinkText = $tw.utils.replaceString(wikiLinkTemplate,\"$uri_encoded$\",encodeURIComponent(this.to));\n\t\twikiLinkText = $tw.utils.replaceString(wikiLinkText,\"$uri_doubleencoded$\",encodeURIComponent(encodeURIComponent(this.to)));\n\t}\n\t// Override with the value of tv-get-export-link if defined\n\twikiLinkText = this.getVariable(\"tv-get-export-link\",{params: [{name: \"to\",value: this.to}],defaultValue: wikiLinkText});\n\tif(tag === \"a\") {\n\t\tvar namespaceHref = (namespace === \"http://www.w3.org/2000/svg\") ? \"http://www.w3.org/1999/xlink\" : undefined;\n\t\tdomNode.setAttributeNS(namespaceHref,\"href\",wikiLinkText);\n\t}\n\t// Set the tabindex\n\tif(this.tabIndex) {\n\t\tdomNode.setAttribute(\"tabindex\",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 \"<$transclude field='tooltip'><$transclude field='title'/></$transclude>\"\n\tvar tooltipWikiText = this.tooltip || this.getVariable(\"tv-wikilink-tooltip\");\n\tif(tooltipWikiText) {\n\t\tvar tooltipText = this.wiki.renderText(\"text/plain\",\"text/vnd.tiddlywiki\",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(\"title\",tooltipText);\n\t}\n\tif(this[\"aria-label\"]) {\n\t\tdomNode.setAttribute(\"aria-label\",this[\"aria-label\"]);\n\t}\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \"click\", handlerObject: this, handlerMethod: \"handleClickEvent\"},\n\t]);\n\t// Make the link draggable if required\n\tif(this.draggable === \"yes\") {\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: \"tm-navigate\",\n\t\tnavigateTo: this.to,\n\t\tnavigateFromTitle: this.getVariable(\"storyTiddler\"),\n\t\tnavigateFromNode: this,\n\t\tnavigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height\n\t\t},\n\t\tnavigateSuppressNavigation: event.metaKey || event.ctrlKey || (event.button === 1),\n\t\tmetaKey: event.metaKey,\n\t\tctrlKey: event.ctrlKey,\n\t\taltKey: event.altKey,\n\t\tshiftKey: event.shiftKey,\n\t\tevent: event\n\t});\n\tif(this.domNodes[0].hasAttribute(\"href\")) {\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(\"to\",this.getVariable(\"currentTiddler\"));\n\tthis.tooltip = this.getAttribute(\"tooltip\");\n\tthis[\"aria-label\"] = this.getAttribute(\"aria-label\");\n\tthis.linkClasses = this.getAttribute(\"class\");\n\tthis.overrideClasses = this.getAttribute(\"overrideClass\");\n\tthis.tabIndex = this.getAttribute(\"tabindex\");\n\tthis.draggable = this.getAttribute(\"draggable\",\"yes\");\n\tthis.linkTag = this.getAttribute(\"tag\",\"a\");\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(\"tv-show-missing-links\") || \"yes\") === \"no\";\n\t// Make the child widgets\n\tvar templateTree;\n\tif(this.parseTreeNode.children && this.parseTreeNode.children.length > 0) {\n\t\ttemplateTree = this.parseTreeNode.children;\n\t} else {\n\t\t// Default template is a link to the title\n\t\ttemplateTree = [{type: \"text\", text: this.to}];\n\t}\n\tthis.makeChildWidgets(templateTree);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nLinkWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.to || changedTiddlers[this.to] || changedAttributes[\"aria-label\"] || 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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/linkcatcher.js": {
+ "title": "$:/core/modules/widgets/linkcatcher.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar LinkCatcherWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.addEventListeners([\n\t\t{type: \"tm-navigate\", handler: \"handleNavigateEvent\"}\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(\"to\");\n\tthis.catchMessage = this.getAttribute(\"message\");\n\tthis.catchSet = this.getAttribute(\"set\");\n\tthis.catchSetTo = this.getAttribute(\"setTo\");\n\tthis.catchActions = this.getAttribute(\"actions\");\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(\"currentTiddler\"));\n\t\t}\n\t\tif(this.catchMessage && this.parentWidget) {\n\t\t\tthis.parentWidget.dispatchEvent({\n\t\t\t\ttype: this.catchMessage,\n\t\t\t\tparam: event.navigateTo,\n\t\t\t\tnavigateTo: event.navigateTo\n\t\t\t});\n\t\t}\n\t\tif(this.catchSet) {\n\t\t\tvar tiddler = this.wiki.getTiddler(this.catchSet);\n\t\t\tthis.wiki.addTiddler(new $tw.Tiddler(tiddler,{title: this.catchSet, text: this.catchSetTo}));\n\t\t}\n\t\tif(this.catchActions) {\n\t\t\tthis.executingActions = true;\n\t\t\tvar modifierKey = $tw.keyboardManager.getEventModifierKeyDescriptor(event);\n\t\t\tthis.invokeActionString(this.catchActions,this,event,{navigateTo: event.navigateTo, modifier: modifierKey});\n\t\t\tthis.executingActions = false;\n\t\t}\n\t} else {\n\t\t// This is a navigate event generated by the actions of this linkcatcher, so we don't trap it again, but just pass it to the parent\n\t\tthis.parentWidget.dispatchEvent({\n\t\t\ttype: \"tm-navigate\",\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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/list.js": {
+ "title": "$:/core/modules/widgets/list.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"storyview\",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 && !StoryView) {\n\t\tStoryView = this.storyViews[\"classic\"];\n\t}\n\tif(StoryView && !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(\"template\");\n\tthis.editTemplate = this.getAttribute(\"editTemplate\");\n\tthis.variableName = this.getAttribute(\"variable\",\"currentTiddler\");\n\tthis.storyViewName = this.getAttribute(\"storyview\");\n\tthis.historyTitle = this.getAttribute(\"history\");\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 = \"[!is[system]sort[title]]\";\n\treturn this.wiki.filterTiddlers(this.getAttribute(\"filter\",defaultFilter),this);\n};\n\nListWidget.prototype.getEmptyMessage = function() {\n\tvar parser,\n\t\temptyMessage = this.getAttribute(\"emptyMessage\",\"\");\n\t// this.wiki.parseText() calls \n\t// new Parser(..), which should only be done, if needed, because it's heavy!\n\tif (emptyMessage === \"\") {\n\t\treturn [];\n\t}\n\tparser = this.wiki.parseText(\"text/vnd.tiddlywiki\",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 && tiddler.hasField(\"draft.of\"),\n\t\ttemplate = this.template,\n\t\ttemplateTree;\n\tif(isDraft && this.editTemplate) {\n\t\ttemplate = this.editTemplate;\n\t}\n\t// Compose the transclusion of the template\n\tif(template) {\n\t\ttemplateTree = [{type: \"transclude\", attributes: {tiddler: {type: \"string\", value: template}}}];\n\t} else {\n\t\tif(this.parseTreeNode.children && this.parseTreeNode.children.length > 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: \"element\", tag: this.parseTreeNode.isBlock ? \"div\" : \"span\", children: [{type: \"link\", attributes: {to: {type: \"string\", value: title}}, children: [\n\t\t\t\t\t{type: \"text\", text: title}\n\t\t\t]}]}];\n\t\t}\n\t}\n\t// Return the list item\n\treturn {type: \"listitem\", 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 && 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 && changedTiddlers[this.historyTitle]) {\n\t\t\tthis.handleHistoryChanges();\n\t\t}\n\t}\n\t// Call the storyview\n\tif(this.storyview && 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 < newHistory.length && entry < this.history.length && 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 < newHistory.length) {\n\t\tif(this.storyview && 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>=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<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>=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>=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 < 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 && 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 && 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})();",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/log.js": {
+ "title": "$:/core/modules/widgets/log.js",
+ "text": "/*\\\ntitle: $:/core/modules/widgets/log.js\ntype: application/javascript\nmodule-type: widget-subclass\n\nWidget to log debug messages\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.baseClass = \"action-log\";\n\nexports.name = \"log\";\n\nexports.constructor = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n}\n\nexports.prototype = {};\n\nexports.prototype.render = function(event) {\n\tObject.getPrototypeOf(Object.getPrototypeOf(this)).render.call(this,event);\t\n\tObject.getPrototypeOf(Object.getPrototypeOf(this)).log.call(this);\n}\n\n})();",
+ "type": "application/javascript",
+ "module-type": "widget-subclass"
+ },
+ "$:/core/modules/widgets/macrocall.js": {
+ "title": "$:/core/modules/widgets/macrocall.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$type\",\"text/vnd.tiddlywiki\");\n\tthis.renderOutput = this.getAttribute(\"$output\",\"text/html\");\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) !== \"$\") {\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(\"$name\"),\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 === \"text/html\") {\n\t\t// If so we'll return the parsed macro\n\t\t// Check if we've already cached parsing this macro\n\t\tvar mode = this.parseTreeNode.isBlock ? \"blockParser\" : \"inlineParser\",\n\t\t\tparser;\n\t\tif(variableInfo.srcVariable && variableInfo.srcVariable[mode]) {\n\t\t\tparser = variableInfo.srcVariable[mode];\n\t\t} else {\n\t\t\tparser = this.wiki.parseText(this.parseType,text,\n\t\t\t\t\t\t\t\t{parseAsInline: !this.parseTreeNode.isBlock});\n\t\t\tif(variableInfo.isCacheable && variableInfo.srcVariable) {\n\t\t\t\tvariableInfo.srcVariable[mode] = parser;\n\t\t\t}\n\t\t}\n\t\tvar parseTreeNodes = parser ? parser.tree : [];\n\t\t// Wrap the parse tree in a vars widget assigning the parameters to variables named \"__paramname__\"\n\t\tvar attributes = {};\n\t\t$tw.utils.each(variableInfo.params,function(param) {\n\t\t\tvar name = \"__\" + param.name + \"__\";\n\t\t\tattributes[name] = {\n\t\t\t\tname: name,\n\t\t\t\ttype: \"string\",\n\t\t\t\tvalue: param.value\n\t\t\t};\n\t\t});\n\t\tparseTreeNodes = [{\n\t\t\ttype: \"vars\",\n\t\t\tattributes: attributes,\n\t\t\tchildren: parseTreeNodes\n\t\t}];\n\t} else if(this.renderOutput === \"text/raw\") {\n\t\tparseTreeNodes = [{type: \"text\", text: text}];\n\t} else {\n\t\t// Otherwise, we'll render the text\n\t\tvar plainText = this.wiki.renderText(\"text/plain\",this.parseType,text,{parentWidget: this});\n\t\tparseTreeNodes = [{type: \"text\", 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) > 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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/navigator.js": {
+ "title": "$:/core/modules/widgets/navigator.js",
+ "text": "/*\\\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\"use strict\";\n\nvar IMPORT_TITLE = \"$:/Import\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar NavigatorWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.addEventListeners([\n\t\t{type: \"tm-navigate\", handler: \"handleNavigateEvent\"},\n\t\t{type: \"tm-edit-tiddler\", handler: \"handleEditTiddlerEvent\"},\n\t\t{type: \"tm-delete-tiddler\", handler: \"handleDeleteTiddlerEvent\"},\n\t\t{type: \"tm-save-tiddler\", handler: \"handleSaveTiddlerEvent\"},\n\t\t{type: \"tm-cancel-tiddler\", handler: \"handleCancelTiddlerEvent\"},\n\t\t{type: \"tm-close-tiddler\", handler: \"handleCloseTiddlerEvent\"},\n\t\t{type: \"tm-close-all-tiddlers\", handler: \"handleCloseAllTiddlersEvent\"},\n\t\t{type: \"tm-close-other-tiddlers\", handler: \"handleCloseOtherTiddlersEvent\"},\n\t\t{type: \"tm-new-tiddler\", handler: \"handleNewTiddlerEvent\"},\n\t\t{type: \"tm-import-tiddlers\", handler: \"handleImportTiddlersEvent\"},\n\t\t{type: \"tm-perform-import\", handler: \"handlePerformImportEvent\"},\n\t\t{type: \"tm-fold-tiddler\", handler: \"handleFoldTiddlerEvent\"},\n\t\t{type: \"tm-fold-other-tiddlers\", handler: \"handleFoldOtherTiddlersEvent\"},\n\t\t{type: \"tm-fold-all-tiddlers\", handler: \"handleFoldAllTiddlersEvent\"},\n\t\t{type: \"tm-unfold-all-tiddlers\", handler: \"handleUnfoldAllTiddlersEvent\"},\n\t\t{type: \"tm-rename-tiddler\", handler: \"handleRenameTiddlerEvent\"}\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(\"story\");\n\tthis.historyTitle = this.getAttribute(\"history\");\n\tthis.setVariable(\"tv-story-list\",this.storyTitle);\n\tthis.setVariable(\"tv-history-list\",this.historyTitle);\n\tthis.story = new $tw.Story({\n\t\twiki: this.wiki,\n\t\tstoryTitle: this.storyTitle,\n\t\thistoryTitle: this.historyTitle\n\t});\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nNavigatorWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.story || changedAttributes.history) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nNavigatorWidget.prototype.getStoryList = function() {\n\treturn this.storyTitle ? this.wiki.getTiddlerList(this.storyTitle) : null;\n};\n\nNavigatorWidget.prototype.saveStoryList = function(storyList) {\n\tif(this.storyTitle) {\n\t\tvar storyTiddler = this.wiki.getTiddler(this.storyTitle);\n\t\tthis.wiki.addTiddler(new $tw.Tiddler(\n\t\t\t{title: this.storyTitle},\n\t\t\tstoryTiddler,\n\t\t\t{list: storyList}\n\t\t));\t\t\n\t}\n};\n\nNavigatorWidget.prototype.removeTitleFromStory = function(storyList,title) {\n\tif(storyList) {\n\t\tvar p = storyList.indexOf(title);\n\t\twhile(p !== -1) {\n\t\t\tstoryList.splice(p,1);\n\t\t\tp = storyList.indexOf(title);\n\t\t}\t\t\n\t}\n};\n\nNavigatorWidget.prototype.replaceFirstTitleInStory = function(storyList,oldTitle,newTitle) {\n\tif(storyList) {\n\t\tvar pos = storyList.indexOf(oldTitle);\n\t\tif(pos !== -1) {\n\t\t\tstoryList[pos] = newTitle;\n\t\t\tdo {\n\t\t\t\tpos = storyList.indexOf(oldTitle,pos + 1);\n\t\t\t\tif(pos !== -1) {\n\t\t\t\t\tstoryList.splice(pos,1);\n\t\t\t\t}\n\t\t\t} while(pos !== -1);\n\t\t} else {\n\t\t\tstoryList.splice(0,0,newTitle);\n\t\t}\t\t\n\t}\n};\n\nNavigatorWidget.prototype.addToStory = function(title,fromTitle) {\n\tif(this.storyTitle) {\n\t\tthis.story.addToStory(title,fromTitle,{\n\t\t\topenLinkFromInsideRiver: this.getAttribute(\"openLinkFromInsideRiver\",\"top\"),\n\t\t\topenLinkFromOutsideRiver: this.getAttribute(\"openLinkFromOutsideRiver\",\"top\")\n\t\t});\n\t}\n};\n\n/*\nAdd a new record to the top of the history stack\ntitle: a title string or an array of title strings\nfromPageRect: page coordinates of the origin of the navigation\n*/\nNavigatorWidget.prototype.addToHistory = function(title,fromPageRect) {\n\tthis.story.addToHistory(title,fromPageRect,this.historyTitle);\n};\n\n/*\nHandle a tm-navigate event\n*/\nNavigatorWidget.prototype.handleNavigateEvent = function(event) {\n\tevent = $tw.hooks.invokeHook(\"th-navigating\",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(\"th-editing-tiddler\",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) && !self.wiki.tiddlerExists(title);\n\t}\n\tfunction confirmEditShadow(title) {\n\t\treturn confirm($tw.language.getString(\n\t\t\t\"ConfirmEditShadowTiddler\",\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) && !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 !== \"yes\") {\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[\"draft.of\"] : \"\",\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 || \"\") !== \"\") && !confirm($tw.language.getString(\n\t\t\t\t\"ConfirmDeleteTiddler\",\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(\"th-deleting-tiddler\",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(\"th-deleting-tiddler\",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: \"tm-auto-save-wiki\"});\n\treturn false;\n};\n\n/*\nCreate/reuse the draft tiddler for a given title\n*/\nNavigatorWidget.prototype.makeDraftTiddler = function(targetTitle) {\n\t// See if there is already a draft tiddler for this tiddler\n\tvar draftTitle = this.wiki.findDraft(targetTitle);\n\tif(draftTitle) {\n\t\treturn this.wiki.getTiddler(draftTitle);\n\t}\n\t// Get the current value of the tiddler we're editing\n\tvar tiddler = this.wiki.getTiddler(targetTitle);\n\t// Save the initial value of the draft tiddler\n\tdraftTitle = this.generateDraftTitle(targetTitle);\n\tvar draftTiddler = new $tw.Tiddler({\n\t\t\t\ttext: \"\",\n\t\t\t},\n\t\t\ttiddler,\n\t\t\t{\n\t\t\t\ttitle: draftTitle,\n\t\t\t\t\"draft.title\": targetTitle,\n\t\t\t\t\"draft.of\": targetTitle\n\t\t\t},\n\t\t\tthis.wiki.getModificationFields()\n\t\t);\n\tthis.wiki.addTiddler(draftTiddler);\n\treturn draftTiddler;\n};\n\n/*\nGenerate a title for the draft of a given tiddler\n*/\nNavigatorWidget.prototype.generateDraftTitle = function(title) {\n\treturn this.wiki.generateDraftTitle(title);\n};\n\n// Take a tiddler out of edit mode, saving the changes\nNavigatorWidget.prototype.handleSaveTiddlerEvent = function(event) {\n\tvar title = event.param || event.tiddlerTitle,\n\t\ttiddler = this.wiki.getTiddler(title),\n\t\tstoryList = this.getStoryList();\n\t// Replace the original tiddler with the draft\n\tif(tiddler) {\n\t\tvar draftTitle = (tiddler.fields[\"draft.title\"] || \"\").trim(),\n\t\t\tdraftOf = (tiddler.fields[\"draft.of\"] || \"\").trim();\n\t\tif(draftTitle) {\n\t\t\tvar isRename = draftOf !== draftTitle,\n\t\t\t\tisConfirmed = true;\n\t\t\tif(isRename && this.wiki.tiddlerExists(draftTitle)) {\n\t\t\t\tisConfirmed = confirm($tw.language.getString(\n\t\t\t\t\t\"ConfirmOverwriteTiddler\",\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\"draft.title\": undefined,\n\t\t\t\t\t\"draft.of\": undefined\n\t\t\t\t},this.wiki.getModificationFields());\n\t\t\t\tnewTiddler = $tw.hooks.invokeHook(\"th-saving-tiddler\",newTiddler,tiddler);\n\t\t\t\tthis.wiki.addTiddler(newTiddler);\n\t\t\t\t// If enabled, relink references to renamed tiddler\n\t\t\t\tvar shouldRelink = this.getAttribute(\"relinkOnRename\",\"no\").toLowerCase().trim() === \"yes\";\n\t\t\t\tif(isRename && shouldRelink && this.wiki.tiddlerExists(draftOf)) {\n\t\t\t\t\tthis.wiki.relinkTiddler(draftOf,draftTitle);\n\t\t\t\t}\n\t\t\t\t// Remove the draft tiddler\n\t\t\t\tthis.wiki.deleteTiddler(title);\n\t\t\t\t// Remove the original tiddler if we're renaming it\n\t\t\t\tif(isRename) {\n\t\t\t\t\tthis.wiki.deleteTiddler(draftOf);\n\t\t\t\t}\n\t\t\t\t// #2381 always remove new title & 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 !== \"yes\") {\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: \"tm-auto-save-wiki\"});\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(\"th-cancelling-tiddler\", 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 && draftTiddler.fields[\"draft.of\"];\n\tif(draftTiddler && 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\"ConfirmCancelTiddler\",\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 !== \"yes\") {\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(\"th-new-tiddler\", 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 === \"string\") {\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(\"DefaultNewTiddlerTitle\"));\n\t}\n\t// Get the specified additional fields\n\tif(typeof event.paramObject === \"object\") {\n\t\tadditionalFields = event.paramObject;\n\t}\n\tif(typeof event.param === \"object\") { // Backwards compatibility with 5.1.3\n\t\tadditionalFields = event.param;\n\t}\n\tif(additionalFields && 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] === \"\") {\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(\"DefaultNewTiddlerTitle\"));\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 && existingTiddler.fields.tags) {\n\t\t$tw.utils.pushTop(mergedTags,existingTiddler.fields.tags);\n\t}\n\tif(additionalFields && additionalFields.tags) {\n\t\t// Merge tags\n\t\tmergedTags = $tw.utils.pushTop(mergedTags,$tw.utils.parseStringArray(additionalFields.tags));\n\t}\n\tif(templateTiddler && 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: \"\",\n\t\t\t\"draft.title\": 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\"draft.of\": 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 && storyList.indexOf(draftTitle) === -1) {\n\t\tvar slot = storyList.indexOf(event.navigateFromTitle);\n\t\tif(slot === -1) {\n\t\t\tslot = this.getAttribute(\"openLinkFromOutsideRiver\",\"top\") === \"bottom\" ? storyList.length - 1 : slot;\n\t\t}\n\t\tstoryList.splice(slot + 1,0,draftTitle);\n\t}\n\tif(storyList && storyList.indexOf(title) !== -1) {\n\t\tstoryList.splice(storyList.indexOf(title),1);\n\t}\n\tthis.saveStoryList(storyList);\n\t// Add a new record to the top of the history stack\n\tthis.addToHistory(draftTitle);\n\treturn false;\n};\n\n// Import JSON tiddlers into a pending import tiddler\nNavigatorWidget.prototype.handleImportTiddlersEvent = function(event) {\n\t// Get the tiddlers\n\tvar tiddlers = [];\n\ttry {\n\t\ttiddlers = JSON.parse(event.param);\n\t} catch(e) {\n\t}\n\t// Get the current $:/Import tiddler\n\tvar importTitle = event.importTitle ? event.importTitle : IMPORT_TITLE,\n\t\timportTiddler = this.wiki.getTiddler(importTitle),\n\t\timportData = this.wiki.getTiddlerData(importTitle,{}),\n\t\tnewFields = new Object({\n\t\t\ttitle: importTitle,\n\t\t\ttype: \"application/json\",\n\t\t\t\"plugin-type\": \"import\",\n\t\t\t\"status\": \"pending\"\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[\"message-\" + 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[\"selection-\" + title] = \"unchecked\";\n\t\t\tnewFields[\"suppressed-\" + title] = \"yes\";\n\t\t}\n\t});\n\t// Save the $:/Import tiddler\n\tnewFields.text = JSON.stringify(importData,null,$tw.config.preferences.jsonSpaces);\n\tthis.wiki.addTiddler(new $tw.Tiddler(importTiddler,newFields));\n\t// Update the story and history details\n\tvar autoOpenOnImport = event.autoOpenOnImport ? event.autoOpenOnImport : this.getVariable(\"tv-auto-open-on-import\"); \n\tif(autoOpenOnImport !== \"no\") {\n\t\tvar storyList = this.getStoryList(),\n\t\t\thistory = [];\n\t\t// Add it to the story\n\t\tif(storyList && storyList.indexOf(importTitle) === -1) {\n\t\t\tstoryList.unshift(importTitle);\n\t\t}\n\t\t// And to history\n\t\thistory.push(importTitle);\n\t\t// Save the updated story and history\n\t\tthis.saveStoryList(storyList);\n\t\tthis.addToHistory(history);\n\t}\n\treturn false;\n};\n\n//\nNavigatorWidget.prototype.handlePerformImportEvent = function(event) {\n\tvar self = this,\n\t\timportTiddler = this.wiki.getTiddler(event.param),\n\t\timportData = this.wiki.getTiddlerDataCached(event.param,{tiddlers: {}}),\n\t\timportReport = [];\n\t// Add the tiddlers to the store\n\timportReport.push($tw.language.getString(\"Import/Imported/Hint\") + \"\\n\");\n\t$tw.utils.each(importData.tiddlers,function(tiddlerFields) {\n\t\tvar title = tiddlerFields.title;\n\t\tif(title && importTiddler && importTiddler.fields[\"selection-\" + title] !== \"unchecked\") {\n\t\t\tif($tw.utils.hop(importTiddler.fields,[\"rename-\" + title])) {\n\t\t\t\tvar tiddler = new $tw.Tiddler(tiddlerFields,{title : importTiddler.fields[\"rename-\" + title]});\n\t\t\t} else {\n\t\t\t\tvar tiddler = new $tw.Tiddler(tiddlerFields);\n\t\t\t}\n\t\t\ttiddler = $tw.hooks.invokeHook(\"th-importing-tiddler\",tiddler);\n\t\t\tself.wiki.addTiddler(tiddler);\n\t\t\timportReport.push(\"# [[\" + tiddler.fields.title + \"]]\");\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(\"\\n\"),\n\t\t\"status\": \"complete\"\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: \"tm-auto-save-wiki\"});\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,\"show\") === \"show\" ? \"hide\" : \"show\";\n\t\tthis.wiki.setText(paramObject.foldedState,\"text\",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,\"text\",null,event.param === title ? \"show\" : \"hide\");\n\t});\n};\n\nNavigatorWidget.prototype.handleFoldAllTiddlersEvent = function(event) {\n\tvar self = this,\n\t\tparamObject = event.paramObject || {},\n\t\tprefix = paramObject.foldedStatePrefix || \"$:/state/folded/\";\n\t$tw.utils.each(this.getStoryList(),function(title) {\n\t\tself.wiki.setText(prefix + title,\"text\",null,\"hide\");\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,\"text\",null,\"show\");\n\t});\n};\n\nNavigatorWidget.prototype.handleRenameTiddlerEvent = function(event) {\n\tvar options = {},\n\t\tparamObject = event.paramObject || {},\n\t\tfrom = paramObject.from || event.tiddlerTitle,\n\t\tto = paramObject.to;\n\toptions.dontRenameInTags = (paramObject.renameInTags === \"false\" || paramObject.renameInTags === \"no\") ? true : false;\n\toptions.dontRenameInLists = (paramObject.renameInLists === \"false\" || paramObject.renameInLists === \"no\") ? true : false;\n\tthis.wiki.renameTiddler(from,to,options);\n};\n\nexports.navigator = NavigatorWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/password.js": {
+ "title": "$:/core/modules/widgets/password.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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) || \"\" : \"\";\n\t// Create our element\n\tvar domNode = this.document.createElement(\"input\");\n\tdomNode.setAttribute(\"type\",\"password\");\n\tdomNode.setAttribute(\"value\",password);\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \"change\", handlerObject: this, handlerMethod: \"handleChangeEvent\"}\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(\"name\",\"\");\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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/qualify.js": {
+ "title": "$:/core/modules/widgets/qualify.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"name\");\n\tthis.qualifyTitle = this.getAttribute(\"title\");\n\t// Set context variable\n\tif(this.qualifyName) {\n\t\tthis.setVariable(this.qualifyName,this.qualifyTitle + \"-\" + 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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/radio.js": {
+ "title": "$:/core/modules/widgets/radio.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\nvar RadioWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nRadioWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nRadioWidget.prototype.render = function(parent,nextSibling) {\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\tvar isChecked = this.getValue() === this.radioValue;\n\t// Create our elements\n\tthis.labelDomNode = this.document.createElement(\"label\");\n\tthis.labelDomNode.setAttribute(\"class\",\n\t\t\"tc-radio \" + this.radioClass + (isChecked ? \" tc-radio-selected\" : \"\")\n\t);\n\tthis.inputDomNode = this.document.createElement(\"input\");\n\tthis.inputDomNode.setAttribute(\"type\",\"radio\");\n\tif(isChecked) {\n\t\tthis.inputDomNode.setAttribute(\"checked\",\"true\");\n\t}\n\tif(this.isDisabled === \"yes\") {\n\t\tthis.inputDomNode.setAttribute(\"disabled\",true);\n\t}\n\tthis.labelDomNode.appendChild(this.inputDomNode);\n\tthis.spanDomNode = this.document.createElement(\"span\");\n\tthis.labelDomNode.appendChild(this.spanDomNode);\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(this.inputDomNode,[\n\t\t{name: \"change\", handlerObject: this, handlerMethod: \"handleChangeEvent\"}\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 && 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,\"\",this.radioIndex,this.radioValue);\n\t} else {\n\t\tvar tiddler = this.wiki.getTiddler(this.radioTitle),\n\t\t\taddition = {};\n\t\taddition[this.radioField] = this.radioValue;\n\t\tthis.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),{title: this.radioTitle},tiddler,addition,this.wiki.getModificationFields()));\n\t}\n};\n\nRadioWidget.prototype.handleChangeEvent = function(event) {\n\tif(this.inputDomNode.checked) {\n\t\tthis.setValue();\n\t}\n\t// Trigger actions\n\tif(this.radioActions) {\n\t\tthis.invokeActionString(this.radioActions,this,event,{\"actionValue\": this.radioValue});\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nRadioWidget.prototype.execute = function() {\n\t// Get the parameters from the attributes\n\tthis.radioTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.radioField = this.getAttribute(\"field\",\"text\");\n\tthis.radioIndex = this.getAttribute(\"index\");\n\tthis.radioValue = this.getAttribute(\"value\");\n\tthis.radioClass = this.getAttribute(\"class\",\"\");\n\tthis.isDisabled = this.getAttribute(\"disabled\",\"no\");\n\tthis.radioActions = this.getAttribute(\"actions\",\"\");\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nRadioWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(($tw.utils.count(changedAttributes) > 0) || changedTiddlers[this.radioTitle]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.radio = RadioWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/range.js": {
+ "title": "$:/core/modules/widgets/range.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"input\");\n\tthis.inputDomNode.setAttribute(\"type\",\"range\");\n\tthis.inputDomNode.setAttribute(\"class\",this.elementClass);\n\tif(this.minValue){\n\t\tthis.inputDomNode.setAttribute(\"min\", this.minValue);\n\t}\n\tif(this.maxValue){\n\t\tthis.inputDomNode.setAttribute(\"max\", this.maxValue);\n\t}\n\tif(this.increment){\n\t\tthis.inputDomNode.setAttribute(\"step\", this.increment);\n\t}\n\tif(this.isDisabled === \"yes\") {\n\t\tthis.inputDomNode.setAttribute(\"disabled\",true);\n\t}\n\tthis.inputDomNode.value = this.getValue();\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(this.inputDomNode,[\n\t\t{name:\"mousedown\", handlerObject:this, handlerMethod:\"handleMouseDownEvent\"},\n\t\t{name:\"mouseup\", handlerObject:this, handlerMethod:\"handleMouseUpEvent\"},\n\t\t{name:\"change\", handlerObject:this, handlerMethod:\"handleChangeEvent\"},\n\t\t{name:\"input\", handlerObject:this, handlerMethod:\"handleInputEvent\"},\n\t]);\n\t// Insert the label into the DOM and render any children\n\tparent.insertBefore(this.inputDomNode,nextSibling);\n\tthis.domNodes.push(this.inputDomNode);\n};\n\nRangeWidget.prototype.getValue = function() {\n\tvar tiddler = this.wiki.getTiddler(this.tiddlerTitle),\n\t\tfieldName = this.tiddlerField,\n\t\tvalue = this.defaultValue;\n\tif(tiddler) {\n\t\tif(this.tiddlerIndex) {\n\t\t\tvalue = this.wiki.extractTiddlerDataItem(tiddler,this.tiddlerIndex,this.defaultValue);\n\t\t} else {\n\t\t\tif($tw.utils.hop(tiddler.fields,fieldName)) {\n\t\t\t\tvalue = tiddler.fields[fieldName] || \"\";\n\t\t\t} else {\n\t\t\t\tvalue = this.defaultValue;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\nRangeWidget.prototype.getActionVariables = function(options) {\n\toptions = options || {};\n\tvar hasChanged = (this.startValue !== this.inputDomNode.value) ? \"yes\" : \"no\";\n\t// Trigger actions. Use variables = {key:value, key:value ...}\n\t// the \"value\" is needed.\n\treturn $tw.utils.extend({\"actionValue\": this.inputDomNode.value, \"actionValueHasChanged\": hasChanged}, options);\n}\n\n// actionsStart\nRangeWidget.prototype.handleMouseDownEvent = function(event) {\n\tthis.mouseDown = true; // TODO remove once IE is gone.\n\tthis.startValue = this.inputDomNode.value; // TODO remove this line once IE is gone!\n\tthis.handleEvent(event);\n\t// Trigger actions\n\tif(this.actionsMouseDown) {\n\t\tvar variables = this.getActionVariables() // TODO this line will go into the function call below.\n\t\tthis.invokeActionString(this.actionsMouseDown,this,event,variables);\n\t}\n}\n\n// actionsStop\nRangeWidget.prototype.handleMouseUpEvent = function(event) {\n\tthis.mouseDown = false; // TODO remove once IE is gone.\n\tthis.handleEvent(event);\n\t// Trigger actions\n\tif(this.actionsMouseUp) {\n\t\tvar variables = this.getActionVariables()\n\t\tthis.invokeActionString(this.actionsMouseUp,this,event,variables);\n\t}\n\t// TODO remove the following if() once IE is gone!\n\tif ($tw.browser.isIE) {\n\t\tif (this.startValue !== this.inputDomNode.value) {\n\t\t\tthis.handleChangeEvent(event);\n\t\t\tthis.startValue = this.inputDomNode.value;\n\t\t}\n\t}\n}\n\nRangeWidget.prototype.handleChangeEvent = function(event) {\n\tif (this.mouseDown) { // TODO refactor this function once IE is gone.\n\t\tthis.handleInputEvent(event);\n\t}\n};\n\nRangeWidget.prototype.handleInputEvent = function(event) {\n\tthis.handleEvent(event);\n\t// Trigger actions\n\tif(this.actionsInput) {\n\t\t// \"tiddler\" parameter may be missing. See .execute() below\n\t\tvar variables = this.getActionVariables({\"actionValueHasChanged\": \"yes\"}) // TODO this line will go into the function call below.\n\t\tthis.invokeActionString(this.actionsInput,this,event,variables);\n\t}\n};\n\nRangeWidget.prototype.handleEvent = function(event) {\n\tif(this.getValue() !== this.inputDomNode.value) {\n\t\tif(this.tiddlerIndex) {\n\t\t\tthis.wiki.setText(this.tiddlerTitle,\"\",this.tiddlerIndex,this.inputDomNode.value);\n\t\t} else {\n\t\t\tthis.wiki.setText(this.tiddlerTitle,this.tiddlerField,null,this.inputDomNode.value);\n\t\t}\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nRangeWidget.prototype.execute = function() {\n\t// TODO remove the next 1 lines once IE is gone!\n\tthis.mouseUp = true; // Needed for IE10\n\t// Get the parameters from the attributes\n\tthis.tiddlerTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.tiddlerField = this.getAttribute(\"field\",\"text\");\n\tthis.tiddlerIndex = this.getAttribute(\"index\");\n\tthis.minValue = this.getAttribute(\"min\");\n\tthis.maxValue = this.getAttribute(\"max\");\n\tthis.increment = this.getAttribute(\"increment\");\n\tthis.defaultValue = this.getAttribute(\"default\",\"\");\n\tthis.elementClass = this.getAttribute(\"class\",\"\");\n\tthis.isDisabled = this.getAttribute(\"disabled\",\"no\");\n\t// Actions since 5.1.23\n\t// Next 2 only fire once!\n\tthis.actionsMouseDown = this.getAttribute(\"actionsStart\",\"\");\n\tthis.actionsMouseUp = this.getAttribute(\"actionsStop\",\"\");\n\t// Input fires very often!\n\tthis.actionsInput = this.getAttribute(\"actions\",\"\");\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nRangeWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif($tw.utils.count(changedAttributes) > 0) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\tvar refreshed = false;\n\t\tif(changedTiddlers[this.tiddlerTitle]) {\n\t\t\tvar value = this.getValue();\n\t\t\tif(this.inputDomNode.value !== value) {\n\t\t\t\tthis.inputDomNode.value = value;\n\t\t\t}\n\t\t\trefreshed = true;\n\t\t}\n\t\treturn this.refreshChildren(changedTiddlers) || refreshed;\n\t}\n};\n\nexports.range = RangeWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/raw.js": {
+ "title": "$:/core/modules/widgets/raw.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"div\");\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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/reveal.js": {
+ "title": "$:/core/modules/widgets/reveal.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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 ? \"div\" : \"span\";\n\tif(this.revealTag && $tw.config.htmlUnsafeElements.indexOf(this.revealTag) === -1) {\n\t\ttag = this.revealTag;\n\t}\n\tvar domNode = this.document.createElement(tag);\n\tthis.domNode = domNode;\n\tthis.assignDomNodeClasses();\n\tif(this.style) {\n\t\tdomNode.setAttribute(\"style\",this.style);\n\t}\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tif(!domNode.isTiddlyWikiFakeDom && this.type === \"popup\" && this.isOpen) {\n\t\tthis.positionPopup(domNode);\n\t\t$tw.utils.addClass(domNode,\"tc-popup\"); // Make sure that clicks don't dismiss popups within the revealed content\n\t}\n\tif(!this.isOpen) {\n\t\tdomNode.setAttribute(\"hidden\",\"true\");\n\t}\n\tthis.domNodes.push(domNode);\n};\n\nRevealWidget.prototype.positionPopup = function(domNode) {\n\tdomNode.style.position = \"absolute\";\n\tdomNode.style.zIndex = \"1000\";\n\tvar left,top;\n\tswitch(this.position) {\n\t\tcase \"left\":\n\t\t\tleft = this.popup.left - domNode.offsetWidth;\n\t\t\ttop = this.popup.top;\n\t\t\tbreak;\n\t\tcase \"above\":\n\t\t\tleft = this.popup.left;\n\t\t\ttop = this.popup.top - domNode.offsetHeight;\n\t\t\tbreak;\n\t\tcase \"aboveright\":\n\t\t\tleft = this.popup.left + this.popup.width;\n\t\t\ttop = this.popup.top + this.popup.height - domNode.offsetHeight;\n\t\t\tbreak;\n\t\tcase \"belowright\":\n\t\t\tleft = this.popup.left + this.popup.width;\n\t\t\ttop = this.popup.top + this.popup.height;\n\t\t\tbreak;\t\t\t\n\t\tcase \"right\":\n\t\t\tleft = this.popup.left + this.popup.width;\n\t\t\ttop = this.popup.top;\n\t\t\tbreak;\n\t\tcase \"belowleft\":\n\t\t\tleft = this.popup.left + this.popup.width - domNode.offsetWidth;\n\t\t\ttop = this.popup.top + this.popup.height;\n\t\t\tbreak;\n\t\tcase \"aboveleft\":\n\t\t\tleft = this.popup.left - domNode.offsetWidth;\n\t\t\ttop = this.popup.top - domNode.offsetHeight;\n\t\t\tbreak;\t\t\t\n\t\tdefault: // Below\n\t\t\tleft = this.popup.left;\n\t\t\ttop = this.popup.top + this.popup.height;\n\t\t\tbreak;\n\t}\n\tif(!this.positionAllowNegative) {\n\t\tleft = Math.max(0,left);\n\t\ttop = Math.max(0,top);\n\t}\n\tdomNode.style.left = left + \"px\";\n\tdomNode.style.top = top + \"px\";\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(\"state\");\n\tthis.revealTag = this.getAttribute(\"tag\");\n\tthis.type = this.getAttribute(\"type\");\n\tthis.text = this.getAttribute(\"text\");\n\tthis.position = this.getAttribute(\"position\");\n\tthis.positionAllowNegative = this.getAttribute(\"positionAllowNegative\") === \"yes\";\n\t// class attribute handled in assignDomNodeClasses()\n\tthis.style = this.getAttribute(\"style\",\"\");\n\tthis[\"default\"] = this.getAttribute(\"default\",\"\");\n\tthis.animate = this.getAttribute(\"animate\",\"no\");\n\tthis.retain = this.getAttribute(\"retain\",\"no\");\n\tthis.openAnimation = this.animate === \"no\" ? undefined : \"open\";\n\tthis.closeAnimation = this.animate === \"no\" ? undefined : \"close\";\n\tthis.updatePopupPosition = this.getAttribute(\"updatePopupPosition\",\"no\") === \"yes\";\n\t// Compute the title of the state tiddler and read it\n\tthis.stateTiddlerTitle = this.state;\n\tthis.stateTitle = this.getAttribute(\"stateTitle\");\n\tthis.stateField = this.getAttribute(\"stateField\");\n\tthis.stateIndex = this.getAttribute(\"stateIndex\");\n\tthis.readState();\n\t// Construct the child widgets\n\tvar childNodes = this.isOpen ? this.parseTreeNode.children : [];\n\tthis.hasChildNodes = this.isOpen;\n\tthis.makeChildWidgets(childNodes);\n};\n\n/*\nRead the state tiddler\n*/\nRevealWidget.prototype.readState = function() {\n\t// Read the information from the state tiddler\n\tvar state,\n\t defaultState = this[\"default\"];\n\tif(this.stateTitle) {\n\t\tvar stateTitleTiddler = this.wiki.getTiddler(this.stateTitle);\n\t\tif(this.stateField) {\n\t\t\tstate = stateTitleTiddler ? stateTitleTiddler.getFieldString(this.stateField) || defaultState : defaultState;\n\t\t} else if(this.stateIndex) {\n\t\t\tstate = stateTitleTiddler ? this.wiki.extractTiddlerDataItem(this.stateTitle,this.stateIndex) || defaultState : defaultState;\n\t\t} else if(stateTitleTiddler) {\n\t\t\tstate = this.wiki.getTiddlerText(this.stateTitle) || defaultState;\n\t\t} else {\n\t\t\tstate = defaultState;\n\t\t}\n\t} else {\n\t\tstate = this.stateTiddlerTitle ? this.wiki.getTextReference(this.state,this[\"default\"],this.getVariable(\"currentTiddler\")) : this[\"default\"];\n\t}\n\tif(state === null) {\n\t\tstate = this[\"default\"];\n\t}\n\tswitch(this.type) {\n\t\tcase \"popup\":\n\t\t\tthis.readPopupState(state);\n\t\t\tbreak;\n\t\tcase \"match\":\n\t\t\tthis.isOpen = this.text === state;\n\t\t\tbreak;\n\t\tcase \"nomatch\":\n\t\t\tthis.isOpen = this.text !== state;\n\t\t\tbreak;\n\t\tcase \"lt\":\n\t\t\tthis.isOpen = !!(this.compareStateText(state) < 0);\n\t\t\tbreak;\n\t\tcase \"gt\":\n\t\t\tthis.isOpen = !!(this.compareStateText(state) > 0);\n\t\t\tbreak;\n\t\tcase \"lteq\":\n\t\t\tthis.isOpen = !(this.compareStateText(state) > 0);\n\t\t\tbreak;\n\t\tcase \"gteq\":\n\t\t\tthis.isOpen = !(this.compareStateText(state) < 0);\n\t\t\tbreak;\n\t}\n};\n\nRevealWidget.prototype.compareStateText = function(state) {\n\treturn state.localeCompare(this.text,undefined,{numeric: true,sensitivity: \"case\"});\n};\n\nRevealWidget.prototype.readPopupState = function(state) {\n\tvar popupLocationRegExp = /^\\((-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+)\\)$/,\n\t\tmatch = popupLocationRegExp.exec(state);\n\t// Check if the state matches the location regexp\n\tif(match) {\n\t\t// If so, we're open\n\t\tthis.isOpen = true;\n\t\t// Get the location\n\t\tthis.popup = {\n\t\t\tleft: parseFloat(match[1]),\n\t\t\ttop: parseFloat(match[2]),\n\t\t\twidth: parseFloat(match[3]),\n\t\t\theight: parseFloat(match[4])\n\t\t};\n\t} else {\n\t\t// If not, we're closed\n\t\tthis.isOpen = false;\n\t}\n};\n\nRevealWidget.prototype.assignDomNodeClasses = function() {\n\tvar classes = this.getAttribute(\"class\",\"\").split(\" \");\n\tclasses.push(\"tc-reveal\");\n\tthis.domNode.className = classes.join(\" \");\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nRevealWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.state || changedAttributes.type || changedAttributes.text || changedAttributes.position || changedAttributes.positionAllowNegative || changedAttributes[\"default\"] || changedAttributes.animate || changedAttributes.stateTitle || changedAttributes.stateField || changedAttributes.stateIndex) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\tvar currentlyOpen = this.isOpen;\n\t\tthis.readState();\n\t\tif(this.isOpen !== currentlyOpen) {\n\t\t\tif(this.retain === \"yes\") {\n\t\t\t\tthis.updateState();\n\t\t\t} else {\n\t\t\t\tthis.refreshSelf();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if(this.type === \"popup\" && this.updatePopupPosition && (changedTiddlers[this.state] || changedTiddlers[this.stateTitle])) {\n\t\t\tthis.positionPopup(this.domNode);\n\t\t}\n\t\tif(changedAttributes.style) {\n\t\t\tthis.domNode.style = this.getAttribute(\"style\",\"\");\n\t\t}\n\t\tif(changedAttributes[\"class\"]) {\n\t\t\tthis.assignDomNodeClasses();\n\t\t}\t\t\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\n/*\nCalled by refresh() to dynamically show or hide the content\n*/\nRevealWidget.prototype.updateState = function() {\n\tvar self = this;\n\t// Read the current state\n\tthis.readState();\n\t// Construct the child nodes if needed\n\tvar domNode = this.domNodes[0];\n\tif(this.isOpen && !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 && this.type === \"popup\" && this.isOpen) {\n\t\tthis.positionPopup(domNode);\n\t\t$tw.utils.addClass(domNode,\"tc-popup\"); // Make sure that clicks don't dismiss popups within the revealed content\n\n\t}\n\tif(this.isOpen) {\n\t\tdomNode.removeAttribute(\"hidden\");\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(\"hidden\",\"true\");\n\t\t\t}\n\t\t}});\n\t}\n};\n\nexports.reveal = RevealWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/scrollable.js": {
+ "title": "$:/core/modules/widgets/scrollable.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ScrollableWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.scaleFactor = 1;\n\tthis.addEventListeners([\n\t\t{type: \"tm-scroll\", handler: \"handleScrollEvent\"}\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 <= this.outerDomNode.offsetWidth && this.outerDomNode.scrollHeight <= this.outerDomNode.offsetHeight && this.fallthrough === \"yes\") {\n\t\treturn true;\n\t}\n\tif(event.paramObject && event.paramObject.selector) {\n\t\tthis.scrollSelectorIntoView(null,event.paramObject.selector);\n\t} else {\n\t\tthis.scrollIntoView(event.target);\t\t\t\n\t}\n\treturn false; // Handled event\n};\n\n/*\nScroll an element into view\n*/\nScrollableWidget.prototype.scrollIntoView = function(element) {\n\tvar duration = $tw.utils.getAnimationDuration(),\n\tsrcWindow = element ? element.ownerDocument.defaultView : window;\n\tthis.cancelScroll();\n\tthis.startTime = Date.now();\n\tvar scrollPosition = {\n\t\tx: this.outerDomNode.scrollLeft,\n\t\ty: this.outerDomNode.scrollTop\n\t};\n\t// Get the client bounds of the element and adjust by the scroll position\n\tvar scrollableBounds = this.outerDomNode.getBoundingClientRect(),\n\t\tclientTargetBounds = element.getBoundingClientRect(),\n\t\tbounds = {\n\t\t\tleft: clientTargetBounds.left + scrollPosition.x - scrollableBounds.left,\n\t\t\ttop: clientTargetBounds.top + scrollPosition.y - scrollableBounds.top,\n\t\t\twidth: clientTargetBounds.width,\n\t\t\theight: clientTargetBounds.height\n\t\t};\n\t// We'll consider the horizontal and vertical scroll directions separately via this function\n\tvar getEndPos = function(targetPos,targetSize,currentPos,currentSize) {\n\t\t\t// If the target is already visible then stay where we are\n\t\t\tif(targetPos >= currentPos && (targetPos + targetSize) <= (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 <= 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 < currentSize && currentPos < (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 < 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 <= 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 >= 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 < 1) {\n\t\t\t\tself.idRequestFrame = self.requestAnimationFrame.call(srcWindow,drawFrame);\n\t\t\t}\n\t\t};\n\t\tdrawFrame();\n\t}\n};\n\nScrollableWidget.prototype.scrollSelectorIntoView = function(baseElement,selector,callback) {\n\tbaseElement = baseElement || document.body;\n\tvar element = baseElement.querySelector(selector);\n\tif(element) {\n\t\tthis.scrollIntoView(element,callback);\t\t\n\t}\n};\n\n/*\nRender this widget into the DOM\n*/\nScrollableWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create elements\n\tthis.outerDomNode = this.document.createElement(\"div\");\n\t$tw.utils.setStyle(this.outerDomNode,[\n\t\t{overflowY: \"auto\"},\n\t\t{overflowX: \"auto\"},\n\t\t{webkitOverflowScrolling: \"touch\"}\n\t]);\n\tthis.innerDomNode = this.document.createElement(\"div\");\n\tthis.outerDomNode.appendChild(this.innerDomNode);\n\t// Assign classes\n\tthis.outerDomNode.className = this[\"class\"] || \"\";\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(\"fallthrough\",\"yes\");\n\tthis[\"class\"] = this.getAttribute(\"class\");\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[\"class\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.scrollable = ScrollableWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/select.js": {
+ "title": "$:/core/modules/widgets/select.js",
+ "text": "/*\\\ntitle: $:/core/modules/widgets/select.js\ntype: application/javascript\nmodule-type: widget\n\nSelect widget:\n\n```\n<$select tiddler=\"MyTiddler\" field=\"text\">\n<$list filter=\"[tag[chapter]]\">\n<option value=<<currentTiddler>>>\n<$view field=\"description\"/>\n</option>\n</$list>\n</$select>\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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: \"change\", handlerObject: this, handlerMethod: \"handleChangeEvent\"}\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 === \"text\") {\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 === \"title\") {\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 ? \"\" : 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 < select.children.length; i++){\n\t\t\tselect.children[i].selected = values.indexOf(select.children[i].value) !== -1\n\t\t}\n\t} else {\n\t\tvar domNode = this.getSelectDomNode();\n\t\tif(domNode.value !== value) {\n\t\t\tdomNode.value = value;\n\t\t}\n\t}\n};\n\n/*\nGet the DOM node of the select element\n*/\nSelectWidget.prototype.getSelectDomNode = function() {\n\treturn this.children[0].domNodes[0];\n};\n\n// Return an array of the selected opion values\n// select is an HTML select element\nSelectWidget.prototype.getSelectValues = function() {\n\tvar select, result, options, opt;\n\tselect = this.getSelectDomNode();\n\tresult = [];\n\toptions = select && select.options;\n\tfor (var i=0; i<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(\"actions\");\n\tthis.selectTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.selectField = this.getAttribute(\"field\",\"text\");\n\tthis.selectIndex = this.getAttribute(\"index\");\n\tthis.selectClass = this.getAttribute(\"class\");\n\tthis.selectDefault = this.getAttribute(\"default\");\n\tthis.selectMultiple = this.getAttribute(\"multiple\", false);\n\tthis.selectSize = this.getAttribute(\"size\");\n\tthis.selectTooltip = this.getAttribute(\"tooltip\");\n\t// Make the child widgets\n\tvar selectNode = {\n\t\ttype: \"element\",\n\t\ttag: \"select\",\n\t\tchildren: this.parseTreeNode.children\n\t};\n\tif(this.selectClass) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\"class\",this.selectClass);\n\t}\n\tif(this.selectMultiple) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\"multiple\",\"multiple\");\n\t}\n\tif(this.selectSize) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\"size\",this.selectSize);\n\t}\n\tif(this.selectTooltip) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\"title\",this.selectTooltip);\n\t}\n\tthis.makeChildWidgets([selectNode]);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nSelectWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\t// If we're using a different tiddler/field/index then completely refresh ourselves\n\tif(changedAttributes.selectTitle || changedAttributes.selectField || changedAttributes.selectIndex || changedAttributes.selectTooltip) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t// If the target tiddler value has changed, just update setting and refresh the children\n\t} else {\n\t\tvar childrenRefreshed = this.refreshChildren(changedTiddlers);\n\t\tif(changedTiddlers[this.selectTitle] || childrenRefreshed) {\n\t\t\tthis.setSelectValue();\n\t\t} \n\t\treturn childrenRefreshed;\n\t}\n};\n\nexports.select = SelectWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/set.js": {
+ "title": "$:/core/modules/widgets/set.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"name\",\"currentTiddler\");\n\tthis.setFilter = this.getAttribute(\"filter\");\n\tthis.setSelect = this.getAttribute(\"select\");\n\tthis.setTiddler = this.getAttribute(\"tiddler\");\n\tthis.setSubTiddler = this.getAttribute(\"subtiddler\");\n\tthis.setField = this.getAttribute(\"field\");\n\tthis.setIndex = this.getAttribute(\"index\");\n\tthis.setValue = this.getAttribute(\"value\");\n\tthis.setEmptyValue = this.getAttribute(\"emptyValue\");\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] || \"\";\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 && this.setEmptyValue !== undefined) {\n\t\t\tvalue = this.setEmptyValue;\n\t\t}\n\t} else if(!value && this.setEmptyValue) {\n\t\tvalue = this.setEmptyValue;\n\t}\n\treturn value || \"\";\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 && changedTiddlers[this.setTiddler]) || changedAttributes.field || changedAttributes.index || changedAttributes.value || changedAttributes.emptyValue ||\n\t (this.setFilter && 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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/text.js": {
+ "title": "$:/core/modules/widgets/text.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"text\",this.parseTreeNode.text || \"\");\n\ttext = text.replace(/\\r/mg,\"\");\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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/tiddler.js": {
+ "title": "$:/core/modules/widgets/tiddler.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"currentTiddler\",this.tiddlerState.currentTiddler);\n\tthis.setVariable(\"missingTiddlerClass\",this.tiddlerState.missingTiddlerClass);\n\tthis.setVariable(\"shadowTiddlerClass\",this.tiddlerState.shadowTiddlerClass);\n\tthis.setVariable(\"systemTiddlerClass\",this.tiddlerState.systemTiddlerClass);\n\tthis.setVariable(\"tiddlerTagClasses\",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(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\t// Compute the state\n\tvar state = {\n\t\tcurrentTiddler: this.tiddlerTitle || \"\",\n\t\tmissingTiddlerClass: (this.wiki.tiddlerExists(this.tiddlerTitle) || this.wiki.isShadowTiddler(this.tiddlerTitle)) ? \"tc-tiddler-exists\" : \"tc-tiddler-missing\",\n\t\tshadowTiddlerClass: this.wiki.isShadowTiddler(this.tiddlerTitle) ? \"tc-tiddler-shadow\" : \"\",\n\t\tsystemTiddlerClass: this.wiki.isSystemTiddler(this.tiddlerTitle) ? \"tc-tiddler-system\" : \"\",\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(\"tc-tagged-\" + encodeURIComponent(tag));\n\t\t});\n\t\treturn tags.join(\" \");\n\t} else {\n\t\treturn \"\";\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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/transclude.js": {
+ "title": "$:/core/modules/widgets/transclude.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.transcludeSubTiddler = this.getAttribute(\"subtiddler\");\n\tthis.transcludeField = this.getAttribute(\"field\");\n\tthis.transcludeIndex = this.getAttribute(\"index\");\n\tthis.transcludeMode = this.getAttribute(\"mode\");\n\tthis.recursionMarker = this.getAttribute(\"recursionMarker\",\"yes\");\n\t// Parse the text reference\n\tvar parseAsInline = !this.parseTreeNode.isBlock;\n\tif(this.transcludeMode === \"inline\") {\n\t\tparseAsInline = true;\n\t} else if(this.transcludeMode === \"block\") {\n\t\tparseAsInline = false;\n\t}\n\tvar parser = this.wiki.parseTextReference(\n\t\t\t\t\t\tthis.transcludeTitle,\n\t\t\t\t\t\tthis.transcludeField,\n\t\t\t\t\t\tthis.transcludeIndex,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tparseAsInline: parseAsInline,\n\t\t\t\t\t\t\tsubTiddler: this.transcludeSubTiddler\n\t\t\t\t\t\t}),\n\t\tparseTreeNodes = parser ? parser.tree : this.parseTreeNode.children;\n\t// Set context variables for recursion detection\n\tvar recursionMarker = this.makeRecursionMarker();\n\tif(this.recursionMarker === \"yes\") {\n\t\tthis.setVariable(\"transclusion\",recursionMarker);\n\t}\n\t// Check for recursion\n\tif(parser) {\n\t\tif(this.parentWidget && this.parentWidget.hasVariable(\"transclusion\",recursionMarker)) {\n\t\t\tparseTreeNodes = [{type: \"element\", tag: \"span\", attributes: {\n\t\t\t\t\"class\": {type: \"string\", value: \"tc-error\"}\n\t\t\t}, children: [\n\t\t\t\t{type: \"text\", text: $tw.language.getString(\"Error/RecursiveTransclusion\")}\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(\"{\");\n\toutput.push(this.getVariable(\"currentTiddler\",{defaultValue: \"\"}));\n\toutput.push(\"|\");\n\toutput.push(this.transcludeTitle || \"\");\n\toutput.push(\"|\");\n\toutput.push(this.transcludeField || \"\");\n\toutput.push(\"|\");\n\toutput.push(this.transcludeIndex || \"\");\n\toutput.push(\"|\");\n\toutput.push(this.transcludeSubTiddler || \"\");\n\toutput.push(\"}\");\n\treturn output.join(\"\");\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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/vars.js": {
+ "title": "$:/core/modules/widgets/vars.js",
+ "text": "/*\\\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<$vars greeting=\"Hi\" me={{!!title}} sentence=<<helloworld>>>\n <<greeting>>! I am <<me>> and I say: <<sentence>>\n</$vars>\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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) !== \"$\") {\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[\"vars\"] = VarsWidget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/view.js": {
+ "title": "$:/core/modules/widgets/view.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.viewSubtiddler = this.getAttribute(\"subtiddler\");\n\tthis.viewField = this.getAttribute(\"field\",\"text\");\n\tthis.viewIndex = this.getAttribute(\"index\");\n\tthis.viewFormat = this.getAttribute(\"format\",\"text\");\n\tthis.viewTemplate = this.getAttribute(\"template\",\"\");\n\tthis.viewMode = this.getAttribute(\"mode\",\"block\");\n\tswitch(this.viewFormat) {\n\t\tcase \"htmlwikified\":\n\t\t\tthis.text = this.getValueAsHtmlWikified(this.viewMode);\n\t\t\tbreak;\n\t\tcase \"plainwikified\":\n\t\t\tthis.text = this.getValueAsPlainWikified(this.viewMode);\n\t\t\tbreak;\n\t\tcase \"htmlencodedplainwikified\":\n\t\t\tthis.text = this.getValueAsHtmlEncodedPlainWikified(this.viewMode);\n\t\t\tbreak;\n\t\tcase \"htmlencoded\":\n\t\t\tthis.text = this.getValueAsHtmlEncoded();\n\t\t\tbreak;\n\t\tcase \"urlencoded\":\n\t\t\tthis.text = this.getValueAsUrlEncoded();\n\t\t\tbreak;\n\t\tcase \"doubleurlencoded\":\n\t\t\tthis.text = this.getValueAsDoubleUrlEncoded();\n\t\t\tbreak;\n\t\tcase \"date\":\n\t\t\tthis.text = this.getValueAsDate(this.viewTemplate);\n\t\t\tbreak;\n\t\tcase \"relativedate\":\n\t\t\tthis.text = this.getValueAsRelativeDate();\n\t\t\tbreak;\n\t\tcase \"stripcomments\":\n\t\t\tthis.text = this.getValueAsStrippedComments();\n\t\t\tbreak;\n\t\tcase \"jsencoded\":\n\t\t\tthis.text = this.getValueAsJsEncoded();\n\t\t\tbreak;\n\t\tdefault: // \"text\"\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 ? \"\" : 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 === \"text\" && !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 === \"title\") {\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(\"text/html\",\"text/vnd.tiddlywiki\",this.getValueAsText(),{\n\t\tparseAsInline: mode !== \"block\",\n\t\tparentWidget: this\n\t});\n};\n\nViewWidget.prototype.getValueAsPlainWikified = function(mode) {\n\treturn this.wiki.renderText(\"text/plain\",\"text/vnd.tiddlywiki\",this.getValueAsText(),{\n\t\tparseAsInline: mode !== \"block\",\n\t\tparentWidget: this\n\t});\n};\n\nViewWidget.prototype.getValueAsHtmlEncodedPlainWikified = function(mode) {\n\treturn $tw.utils.htmlEncode(this.wiki.renderText(\"text/plain\",\"text/vnd.tiddlywiki\",this.getValueAsText(),{\n\t\tparseAsInline: mode !== \"block\",\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 || \"YYYY MM DD 0hh:0mm\";\n\tvar value = $tw.utils.parseDate(this.getValue());\n\tif(value && $tw.utils.isDate(value) && value.toString() !== \"Invalid Date\") {\n\t\treturn $tw.utils.formatDateString(value,format);\n\t} else {\n\t\treturn \"\";\n\t}\n};\n\nViewWidget.prototype.getValueAsRelativeDate = function(format) {\n\tvar value = $tw.utils.parseDate(this.getValue());\n\tif(value && $tw.utils.isDate(value) && value.toString() !== \"Invalid Date\") {\n\t\treturn $tw.utils.getRelativeDate((new Date()) - (new Date(value))).description;\n\t} else {\n\t\treturn \"\";\n\t}\n};\n\nViewWidget.prototype.getValueAsStrippedComments = function() {\n\tvar lines = this.getValueAsText().split(\"\\n\"),\n\t\tout = [];\n\tfor(var line=0; line<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(\"\\n\");\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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/widget.js": {
+ "title": "$:/core/modules/widgets/widget.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nCreate a widget object for a parse tree node\n\tparseTreeNode: reference to the parse tree node to be rendered\n\toptions: see below\nOptions include:\n\twiki: mandatory reference to wiki associated with this render tree\n\tparentWidget: optional reference to a parent renderer node for the context chain\n\tdocument: optional document object to use instead of global document\n*/\nvar Widget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInitialise widget properties. These steps are pulled out of the constructor so that we can reuse them in subclasses\n*/\nWidget.prototype.initialise = function(parseTreeNode,options) {\n\t// Bail if parseTreeNode is undefined, meaning that the widget constructor was called without any arguments so that it can be subclassed\n\tif(parseTreeNode === undefined) {\n\t\treturn;\n\t}\n\toptions = options || {};\n\t// Save widget info\n\tthis.parseTreeNode = parseTreeNode;\n\tthis.wiki = options.wiki;\n\tthis.parentWidget = options.parentWidget;\n\tthis.variablesConstructor = function() {};\n\tthis.variablesConstructor.prototype = this.parentWidget ? this.parentWidget.variables : {};\n\tthis.variables = new this.variablesConstructor();\n\tthis.document = options.document;\n\tthis.attributes = {};\n\tthis.children = [];\n\tthis.domNodes = [];\n\tthis.eventListeners = {};\n\t// Hashmap of the widget classes\n\tif(!this.widgetClasses) {\n\t\t// Get widget classes\n\t\tWidget.prototype.widgetClasses = $tw.modules.applyMethods(\"widget\");\n\t\t// Process any subclasses\n\t\t$tw.modules.forEachModuleOfType(\"widget-subclass\",function(title,module) {\n\t\t\tif(module.baseClass) {\n\t\t\t\tvar baseClass = Widget.prototype.widgetClasses[module.baseClass];\n\t\t\t\tif(!baseClass) {\n\t\t\t\t\tthrow \"Module '\" + title + \"' is attemping to extend a non-existent base class '\" + module.baseClass + \"'\";\n\t\t\t\t}\n\t\t\t\tvar subClass = module.constructor;\n\t\t\t\tsubClass.prototype = new baseClass();\n\t\t\t\t$tw.utils.extend(subClass.prototype,module.prototype);\n\t\t\t\tWidget.prototype.widgetClasses[module.name || module.baseClass] = subClass;\n\t\t\t}\n\t\t});\n\t}\n};\n\n/*\nRender this widget into the DOM\n*/\nWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nWidget.prototype.execute = function() {\n\tthis.makeChildWidgets();\n};\n\n/*\nSet the value of a context variable\nname: name of the variable\nvalue: value of the variable\nparams: array of {name:, default:} for each parameter\nisMacroDefinition: true if the variable is set via a \\define macro pragma (and hence should have variable substitution performed)\n*/\nWidget.prototype.setVariable = function(name,value,params,isMacroDefinition) {\n\tthis.variables[name] = {value: value, params: params, isMacroDefinition: !!isMacroDefinition};\n};\n\n/*\nGet the prevailing value of a context variable\nname: name of variable\noptions: see below\nOptions include\nparams: array of {name:, value:} for each parameter\ndefaultValue: default value if the variable is not defined\n\nReturns an object with the following fields:\n\nparams: array of {name:,value:} of parameters passed to wikitext variables\ntext: text of variable, with parameters properly substituted\n*/\nWidget.prototype.getVariableInfo = function(name,options) {\n\toptions = options || {};\n\tvar actualParams = options.params || [],\n\t\tparentWidget = this.parentWidget;\n\t// Check for the variable defined in the parent widget (or an ancestor in the prototype chain)\n\tif(parentWidget && name in parentWidget.variables) {\n\t\tvar variable = parentWidget.variables[name],\n\t\t\toriginalValue = variable.value,\n\t\t\tvalue = originalValue,\n\t\t\tparams = this.resolveVariableParameters(variable.params,actualParams);\n\t\t// Substitute any parameters specified in the definition\n\t\t$tw.utils.each(params,function(param) {\n\t\t\tvalue = $tw.utils.replaceString(value,new RegExp(\"\\\\$\" + $tw.utils.escapeRegExp(param.name) + \"\\\\$\",\"mg\"),param.value);\n\t\t});\n\t\t// Only substitute variable references if this variable was defined with the \\define pragma\n\t\tif(variable.isMacroDefinition) {\n\t\t\tvalue = this.substituteVariableReferences(value);\t\t\t\n\t\t}\n\t\treturn {\n\t\t\ttext: value,\n\t\t\tparams: params,\n\t\t\tsrcVariable: variable,\n\t\t\tisCacheable: originalValue === value\n\t\t};\n\t}\n\t// If the variable doesn't exist in the parent widget then look for a macro module\n\treturn {\n\t\ttext: this.evaluateMacroModule(name,actualParams,options.defaultValue)\n\t};\n};\n\n/*\nSimplified version of getVariableInfo() that just returns the text\n*/\nWidget.prototype.getVariable = function(name,options) {\n\treturn this.getVariableInfo(name,options).text;\n};\n\nWidget.prototype.resolveVariableParameters = function(formalParams,actualParams) {\n\tformalParams = formalParams || [];\n\tactualParams = actualParams || [];\n\tvar nextAnonParameter = 0, // Next candidate anonymous parameter in macro call\n\t\tparamInfo, paramValue,\n\t\tresults = [];\n\t// Step through each of the parameters in the macro definition\n\tfor(var p=0; p<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<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 < actualParams.length && actualParams[nextAnonParameter].name) {\n\t\t\tnextAnonParameter++;\n\t\t}\n\t\tif(paramValue === undefined && nextAnonParameter < 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[\"default\"] || \"\";\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 || \"\").replace(/\\$\\(([^\\)\\$]+)\\)\\$/g,function(match,p1,offset,string) {\n\t\treturn self.getVariable(p1,{defaultValue: \"\"});\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 > 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<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<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 < actualParams.length && actualParams[nextAnonParameter].name) {\n\t\t\t\t\tnextAnonParameter++;\n\t\t\t\t}\n\t\t\t\tif(paramValue === undefined && nextAnonParameter < 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[\"default\"] || \"\";\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<actualParams.length; ++i) {\n\t\t\targs.push(actualParams[i].value);\n\t\t}\n\t\treturn (macro.run.apply(this,args) || \"\").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) && 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 || \"transclusion\";\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 && 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(\"\"));\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 === \"filtered\") {\n\t\t\tvalue = self.wiki.filterTiddlers(attribute.filter,self)[0] || \"\";\n\t\t} else if(attribute.type === \"indirect\") {\n\t\t\tvalue = self.wiki.getTextReference(attribute.textReference,\"\",self.getVariable(\"currentTiddler\"));\n\t\t} else if(attribute.type === \"macro\") {\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 \"on\"\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 && a.substr(0,2) === \"on\") {\n\t\t\tv = undefined;\n\t\t}\n\t\tif(v !== undefined) {\n\t\t\tvar b = a.split(\":\");\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 && b[0] == \"xlink\"){\n\t\t\t\t\tdomNode.setAttributeNS(\"http://www.w3.org/1999/xlink\",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 && 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: \"text\", text: \"Undefined widget '\" + parseTreeNode.type + \"'\"};\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 && index < 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 && index > 0) {\n\t\t\treturn this.parentWidget.children[index-1];\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nRender the children of this widget into the DOM\n*/\nWidget.prototype.renderChildren = function(parent,nextSibling) {\n\tvar children = this.children;\n\tfor(var i = 0; i < children.length; i++) {\n\t\tchildren[i].render(parent,nextSibling);\n\t};\n};\n\n/*\nAdd a list of event listeners from an array [{type:,handler:},...]\n*/\nWidget.prototype.addEventListeners = function(listeners) {\n\tvar self = this;\n\t$tw.utils.each(listeners,function(listenerInfo) {\n\t\tself.addEventListener(listenerInfo.type,listenerInfo.handler);\n\t});\n};\n\n/*\nAdd an event listener\n*/\nWidget.prototype.addEventListener = function(type,handler) {\n\tvar self = this;\n\tif(typeof handler === \"string\") { // The handler is a method name on this widget\n\t\tthis.eventListeners[type] = function(event) {\n\t\t\treturn self[handler].call(self,event);\n\t\t};\n\t} else { // The handler is a function\n\t\tthis.eventListeners[type] = function(event) {\n\t\t\treturn handler.call(self,event);\n\t\t};\n\t}\n};\n\n/*\nDispatch an event to a widget. If the widget doesn't handle the event then it is also dispatched to the parent widget\n*/\nWidget.prototype.dispatchEvent = function(event) {\n\tevent.widget = event.widget || this;\n\t// Dispatch the event if this widget handles it\n\tvar listener = this.eventListeners[event.type];\n\tif(listener) {\n\t\t// Don't propagate the event if the listener returned false\n\t\tif(!listener(event)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t// Dispatch the event to the parent widget\n\tif(this.parentWidget) {\n\t\treturn this.parentWidget.dispatchEvent(event);\n\t}\n\treturn true;\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nWidget.prototype.refresh = function(changedTiddlers) {\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nRebuild a previously rendered widget\n*/\nWidget.prototype.refreshSelf = function() {\n\tvar nextSibling = this.findNextSiblingDomNode();\n\tthis.removeChildDomNodes();\n\tthis.render(this.parentDomNode,nextSibling);\n};\n\n/*\nRefresh all the children of a widget\n*/\nWidget.prototype.refreshChildren = function(changedTiddlers) {\n\tvar children = this.children,\n\t\trefreshed = false;\n\tfor (var i = 0; i < children.length; i++) {\n\t\trefreshed = children[i].refresh(changedTiddlers) || refreshed;\n\t}\n\treturn refreshed;\n};\n\n/*\nFind the next sibling in the DOM to this widget. This is done by scanning the widget tree through all next siblings and their descendents that share the same parent DOM node\n*/\nWidget.prototype.findNextSiblingDomNode = function(startIndex) {\n\t// Refer to this widget by its index within its parents children\n\tvar parent = this.parentWidget,\n\t\tindex = startIndex !== undefined ? startIndex : parent.children.indexOf(this);\nif(index === -1) {\n\tthrow \"node not found in parents children\";\n}\n\t// Look for a DOM node in the later siblings\n\twhile(++index < 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 && 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 > 0) {\n\t\treturn this.domNodes[0];\n\t}\n\t// Otherwise, recursively call our children\n\tfor(var t=0; t<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 > 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<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() && 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 || \"\";\n\tvar parser = this.wiki.parseText(\"text/vnd.tiddlywiki\",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(\"div\");\n\twidgetNode.render(container,null);\n\treturn widgetNode.invokeActions(this,event);\n};\n\n/*\nExecute action tiddlers by tag\n*/\nWidget.prototype.invokeActionsByTag = function(tag,event,variables) {\n\tvar self = this;\n\t$tw.utils.each(self.wiki.filterTiddlers(\"[all[shadows+tiddlers]tag[\" + tag + \"]!has[draft.of]]\"),function(title) {\n\t\tself.invokeActionString(self.wiki.getTiddlerText(title),self,event,variables);\n\t});\n};\n\nWidget.prototype.allowActionPropagation = function() {\n\treturn true;\n};\n\nexports.widget = Widget;\n\n})();\n",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/widgets/wikify.js": {
+ "title": "$:/core/modules/widgets/wikify.js",
+ "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"name\");\n\tthis.wikifyText = this.getAttribute(\"text\");\n\tthis.wikifyType = this.getAttribute(\"type\");\n\tthis.wikifyMode = this.getAttribute(\"mode\",\"block\");\n\tthis.wikifyOutput = this.getAttribute(\"output\",\"text\");\n\t// Create the parse tree\n\tthis.wikifyParser = this.wiki.parseText(this.wikifyType,this.wikifyText,{\n\t\t\tparseAsInline: this.wikifyMode === \"inline\"\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(\"div\");\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 \"text\":\n\t\t\tresult = this.wikifyContainer.textContent;\n\t\t\tbreak;\n\t\tcase \"formattedtext\":\n\t\t\tresult = this.wikifyContainer.formattedTextContent;\n\t\t\tbreak;\n\t\tcase \"html\":\n\t\t\tresult = this.wikifyContainer.innerHTML;\n\t\t\tbreak;\n\t\tcase \"parsetree\":\n\t\t\tresult = JSON.stringify(this.wikifyParser.tree,0,$tw.config.preferences.jsonSpaces);\n\t\t\tbreak;\n\t\tcase \"widgettree\":\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 \"element\":\n\t\t\t\t\tresultNode.tag = widgetNode.parseTreeNode.tag;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"text\":\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 > 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 > 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",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/core/modules/wiki-bulkops.js": {
+ "title": "$:/core/modules/wiki-bulkops.js",
+ "text": "/*\\\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\"use strict\";\n\n/*\nRename a tiddler, and relink any tags or lists that reference it.\n*/\nfunction renameTiddler(fromTitle,toTitle,options) {\n\tfromTitle = (fromTitle || \"\").trim();\n\ttoTitle = (toTitle || \"\").trim();\n\toptions = options || {};\n\tif(fromTitle && toTitle && 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(\"th-renaming-tiddler\",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 || \"\").trim();\n\ttoTitle = (toTitle || \"\").trim();\n\toptions = options || {};\n\tif(fromTitle && toTitle && fromTitle !== toTitle) {\n\t\tthis.each(function(tiddler,title) {\n\t\t\tvar type = tiddler.fields.type || \"\";\n\t\t\t// Don't touch plugins or JavaScript modules\n\t\t\tif(!tiddler.fields[\"plugin-type\"] && type !== \"application/javascript\") {\n\t\t\t\tvar tags = tiddler.fields.tags ? tiddler.fields.tags.slice(0) : undefined,\n\t\t\t\t\tlist = tiddler.fields.list ? tiddler.fields.list.slice(0) : undefined,\n\t\t\t\t\tisModified = false;\n\t\t\t\tif(!options.dontRenameInTags) {\n\t\t\t\t\t// Rename tags\n\t\t\t\t\t$tw.utils.each(tags,function (title,index) {\n\t\t\t\t\t\tif(title === fromTitle) {\nconsole.log(\"Renaming tag '\" + tags[index] + \"' to '\" + toTitle + \"' of tiddler '\" + tiddler.fields.title + \"'\");\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(\"Renaming list item '\" + list[index] + \"' to '\" + toTitle + \"' of tiddler '\" + tiddler.fields.title + \"'\");\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(\"th-relinking-tiddler\",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",
+ "type": "application/javascript",
+ "module-type": "wikimethod"
+ },
+ "$:/core/modules/wiki.js": {
+ "title": "$:/core/modules/wiki.js",
+ "text": "/*\\\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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nvar USER_NAME_TITLE = \"$:/status/UserName\",\n\tTIMESTAMP_DISABLE_TITLE = \"$:/config/TimestampDisable\";\n\n/*\nAdd available indexers to this wiki\n*/\nexports.addIndexersToWiki = function() {\n\tvar self = this;\n\t$tw.utils.each($tw.modules.applyMethods(\"indexer\"),function(Indexer,name) {\n\t\tself.addIndexer(new Indexer(self),name);\n\t});\n};\n\n/*\nGet the value of a text reference. Text references can have any of these forms:\n\t<tiddlertitle>\n\t<tiddlertitle>!!<fieldname>\n\t!!<fieldname> - specifies a field of the current tiddlers\n\t<tiddlertitle>##<index>\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 === \"title\") { // Special case so we can return the title of a non-existent tiddler\n\t\t\treturn title;\n\t\t} else if(tiddler && $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 || \"text\"] = 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 && !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 && $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<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 ? \"deleted\" : \"modified\"] = 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) > 0) {\n\t\t\t\tself.dispatchEvent(\"change\",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 || \" \") + \n\t\t\t(++c);\n\t}\n\treturn title;\n};\n\nexports.isSystemTiddler = function(title) {\n\treturn title && title.indexOf(\"$:/\") === 0;\n};\n\nexports.isTemporaryTiddler = function(title) {\n\treturn title && title.indexOf(\"$:/temp/\") === 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 || \"text/vnd.tiddlywiki\"];\n\t\treturn !!contentTypeInfo && contentTypeInfo.flags.indexOf(\"image\") !== -1;\n\t} else {\n\t\treturn null;\n\t}\n};\n\nexports.isBinaryTiddler = function(title) {\n\tvar tiddler = this.getTiddler(title);\n\tif(tiddler) {\t\t\n\t\tvar contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || \"text/vnd.tiddlywiki\"];\n\t\treturn !!contentTypeInfo && contentTypeInfo.encoding === \"base64\";\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 && tiddler.hasField(\"plugin-type\") && tiddler.hasField(\"version\") && existingTiddler && existingTiddler.hasField(\"plugin-type\") && existingTiddler.hasField(\"version\")) {\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,\"\").toLowerCase() !== \"yes\") {\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,\"\").toLowerCase() !== \"yes\") {\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 || \"title\",\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() || \"\",\n\t\t\tbb = b.fields[sortField].toLowerCase() || \"\";\n\t\tif(aa < bb) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tif(aa > 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<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) && !isNaN(y) ? (isDescending ? -1 : 1) :\n\t\t\t\t\t!isNaN(x) && 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 !== \"title\") {\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] || \"\";\n\t\t\t} else {\n\t\t\t\ta = \"\";\n\t\t\t}\n\t\t\tif(tiddlerB) {\n\t\t\t\tb = tiddlerB.fields[sortField] || \"\";\n\t\t\t} else {\n\t\t\t\tb = \"\";\n\t\t\t}\n\t\t}\n\t\tx = Number(a);\n\t\ty = Number(b);\n\t\tif(isNumeric && (!isNaN(x) || !isNaN(y))) {\n\t\t\treturn compareNumbers(x,y);\n\t\t} else if($tw.utils.isDate(a) && $tw.utils.isDate(b)) {\n\t\t\treturn isDescending ? b - a : a - b;\n\t\t} else if(isAlphaNumeric) {\n\t\t\treturn isDescending ? b.localeCompare(a,undefined,{numeric: true,sensitivity: \"base\"}) : a.localeCompare(b,undefined,{numeric: true,sensitivity: \"base\"});\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 >= 2 ? arguments[arg++] : {},\n\t\tcallback = arguments[arg++],\n\t\ttitles = this.getTiddlers(options),\n\t\tt, tiddler;\n\tfor(t=0; t<titles.length; t++) {\n\t\ttiddler = this.getTiddler(titles[t]);\n\t\tif(tiddler) {\n\t\t\tcallback.call(this,tiddler.fields.title,tiddler);\n\t\t}\n\t}\n};\n\n/*\nReturn an array of tiddler titles that are directly linked within the given parse tree\n */\nexports.extractLinks = function(parseTreeRoot) {\n\t// Count up the links\n\tvar links = [],\n\t\tcheckParseTree = function(parseTree) {\n\t\t\tfor(var t=0; t<parseTree.length; t++) {\n\t\t\t\tvar parseTreeNode = parseTree[t];\n\t\t\t\tif(parseTreeNode.type === \"link\" && parseTreeNode.attributes.to && parseTreeNode.attributes.to.type === \"string\") {\n\t\t\t\t\tvar value = parseTreeNode.attributes.to.value;\n\t\t\t\t\tif(links.indexOf(value) === -1) {\n\t\t\t\t\t\tlinks.push(value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(parseTreeNode.children) {\n\t\t\t\t\tcheckParseTree(parseTreeNode.children);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\tcheckParseTree(parseTreeRoot);\n\treturn links;\n};\n\n/*\nReturn an array of tiddler titles that are directly linked from the specified tiddler\n*/\nexports.getTiddlerLinks = function(title) {\n\tvar self = this;\n\t// We'll cache the links so they only get computed if the tiddler changes\n\treturn this.getCacheForTiddler(title,\"links\",function() {\n\t\t// Parse the tiddler\n\t\tvar parser = self.parseTiddler(title);\n\t\tif(parser) {\n\t\t\treturn self.extractLinks(parser.tree);\n\t\t}\n\t\treturn [];\n\t});\n};\n\n/*\nReturn an array of tiddler titles that link to the specified tiddler\n*/\nexports.getTiddlerBacklinks = function(targetTitle) {\n\tvar self = this,\n\t\tbacklinksIndexer = this.getIndexer(\"BacklinksIndexer\"),\n\t\tbacklinks = backlinksIndexer && backlinksIndexer.lookup(targetTitle);\n\n\tif(!backlinks) {\n\t\tbacklinks = [];\n\t\tthis.forEachTiddler(function(title,tiddler) {\n\t\t\tvar links = self.getTiddlerLinks(title);\n\t\t\tif(links.indexOf(targetTitle) !== -1) {\n\t\t\t\tbacklinks.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn backlinks;\n};\n\n/*\nReturn a hashmap of tiddler titles that are referenced but not defined. Each value is the number of times the missing tiddler is referenced\n*/\nexports.getMissingTitles = function() {\n\tvar self = this,\n\t\tmissing = [];\n// We should cache the missing tiddler list, even if we recreate it every time any tiddler is modified\n\tthis.forEachTiddler(function(title,tiddler) {\n\t\tvar links = self.getTiddlerLinks(title);\n\t\t$tw.utils.each(links,function(link) {\n\t\t\tif((!self.tiddlerExists(link) && !self.isShadowTiddler(link)) && missing.indexOf(link) === -1) {\n\t\t\t\tmissing.push(link);\n\t\t\t}\n\t\t});\n\t});\n\treturn missing;\n};\n\nexports.getOrphanTitles = function() {\n\tvar self = this,\n\t\torphans = this.getTiddlers();\n\tthis.forEachTiddler(function(title,tiddler) {\n\t\tvar links = self.getTiddlerLinks(title);\n\t\t$tw.utils.each(links,function(link) {\n\t\t\tvar p = orphans.indexOf(link);\n\t\t\tif(p !== -1) {\n\t\t\t\torphans.splice(p,1);\n\t\t\t}\n\t\t});\n\t});\n\treturn orphans; // Todo\n};\n\n/*\nRetrieves a list of the tiddler titles that are tagged with a given tag\n*/\nexports.getTiddlersWithTag = function(tag) {\n\t// Try to use the indexer\n\tvar self = this,\n\t\ttagIndexer = this.getIndexer(\"TagIndexer\"),\n\t\tresults = tagIndexer && tagIndexer.subIndexers[3].lookup(tag);\n\tif(!results) {\n\t\t// If not available, perform a manual scan\n\t\tresults = this.getGlobalCache(\"taglist-\" + tag,function() {\n\t\t\tvar tagmap = self.getTagMap();\n\t\t\treturn self.sortByList(tagmap[tag],tag);\n\t\t});\n\t}\n\treturn results;\n};\n\n/*\nGet a hashmap by tag of arrays of tiddler titles\n*/\nexports.getTagMap = function() {\n\tvar self = this;\n\treturn this.getGlobalCache(\"tagmap\",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<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 || \"list\";\n\tvar titles = [];\n\tthis.each(function(tiddler,title) {\n\t\tvar list = $tw.utils.parseStringArray(tiddler.fields[fieldName]);\n\t\tif(list && list.indexOf(targetTitle) !== -1) {\n\t\t\ttitles.push(title);\n\t\t}\n\t});\n\treturn titles;\n};\n\n/*\nSorts an array of tiddler titles according to an ordered list\n*/\nexports.sortByList = function(array,listTitle) {\n\tvar self = this,\n\t\treplacedTitles = Object.create(null);\n\t// Given a title, this function will place it in the correct location\n\t// within titles.\n\tfunction moveItemInList(title) {\n\t\tif(!$tw.utils.hop(replacedTitles, title)) {\n\t\t\treplacedTitles[title] = true;\n\t\t\tvar newPos = -1,\n\t\t\t\ttiddler = self.getTiddler(title);\n\t\t\tif(tiddler) {\n\t\t\t\tvar beforeTitle = tiddler.fields[\"list-before\"],\n\t\t\t\t\tafterTitle = tiddler.fields[\"list-after\"];\n\t\t\t\tif(beforeTitle === \"\") {\n\t\t\t\t\tnewPos = 0;\n\t\t\t\t} else if(afterTitle === \"\") {\n\t\t\t\t\tnewPos = titles.length;\n\t\t\t\t} else if(beforeTitle) {\n\t\t\t\t\t// if this title is placed relative\n\t\t\t\t\t// to another title, make sure that\n\t\t\t\t\t// title is placed before we place\n\t\t\t\t\t// this one.\n\t\t\t\t\tmoveItemInList(beforeTitle);\n\t\t\t\t\tnewPos = titles.indexOf(beforeTitle);\n\t\t\t\t} else if(afterTitle) {\n\t\t\t\t\t// Same deal\n\t\t\t\t\tmoveItemInList(afterTitle);\n\t\t\t\t\tnewPos = titles.indexOf(afterTitle);\n\t\t\t\t\tif(newPos >= 0) {\n\t\t\t\t\t\t++newPos;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If a new position is specified, let's move it\n\t\t\t\tif (newPos !== -1) {\n\t\t\t\t\t// get its current Pos, and make sure\n\t\t\t\t\t// sure that it's _actually_ in the list\n\t\t\t\t\t// and that it would _actually_ move\n\t\t\t\t\t// (#4275) We don't bother calling\n\t\t\t\t\t// indexOf unless we have a new\n\t\t\t\t\t// position to work with\n\t\t\t\t\tvar currPos = titles.indexOf(title);\n\t\t\t\t\tif(currPos >= 0 && newPos !== currPos) {\n\t\t\t\t\t\t// move it!\n\t\t\t\t\t\ttitles.splice(currPos,1);\n\t\t\t\t\t\tif(newPos >= currPos) {\n\t\t\t\t\t\t\tnewPos--;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttitles.splice(newPos,0,title);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tvar list = this.getTiddlerList(listTitle);\n\tif(!array || array.length === 0) {\n\t\treturn [];\n\t} else {\n\t\tvar titles = [], t, title;\n\t\t// First place any entries that are present in the list\n\t\tfor(t=0; t<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<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<sortedTitles.length; t++) {\n\t\t\ttitle = sortedTitles[t];\n\t\t\tmoveItemInList(title);\n\t\t}\n\t\treturn titles;\n\t}\n};\n\nexports.getSubTiddler = function(title,subTiddlerTitle) {\n\tvar bundleInfo = this.getPluginInfo(title) || this.getTiddlerDataCached(title);\n\tif(bundleInfo && bundleInfo.tiddlers) {\n\t\tvar subTiddler = bundleInfo.tiddlers[subTiddlerTitle];\n\t\tif(subTiddler) {\n\t\t\treturn new $tw.Tiddler(subTiddler);\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nRetrieve a tiddler as a JSON string of the fields\n*/\nexports.getTiddlerAsJson = function(title) {\n\tvar tiddler = this.getTiddler(title);\n\tif(tiddler) {\n\t\tvar fields = Object.create(null);\n\t\t$tw.utils.each(tiddler.fields,function(value,name) {\n\t\t\tfields[name] = tiddler.getFieldString(name);\n\t\t});\n\t\treturn JSON.stringify(fields);\n\t} else {\n\t\treturn JSON.stringify({title: title});\n\t}\n};\n\nexports.getTiddlersAsJson = function(filter,spaces) {\n\tvar tiddlers = this.filterTiddlers(filter),\n\t\tspaces = (spaces === undefined) ? $tw.config.preferences.jsonSpaces : spaces,\n\t\tdata = [];\n\tfor(var t=0;t<tiddlers.length; t++) {\n\t\tvar tiddler = this.getTiddler(tiddlers[t]);\n\t\tif(tiddler) {\n\t\t\tvar fields = new Object();\n\t\t\tfor(var field in tiddler.fields) {\n\t\t\t\tfields[field] = tiddler.getFieldString(field);\n\t\t\t}\n\t\t\tdata.push(fields);\n\t\t}\n\t}\n\treturn JSON.stringify(data,null,spaces);\n};\n\n/*\nGet the content of a tiddler as a JavaScript object. How this is done depends on the type of the tiddler:\n\napplication/json: the tiddler JSON is parsed into an object\napplication/x-tiddler-dictionary: the tiddler is parsed as sequence of name:value pairs\n\nOther types currently just return null.\n\ntitleOrTiddler: string tiddler title or a tiddler object\ndefaultData: default data to be returned if the tiddler is missing or doesn't contain data\n\nNote that the same value is returned for repeated calls for the same tiddler data. The value is frozen to prevent modification; otherwise modifications would be visible to all callers\n*/\nexports.getTiddlerDataCached = function(titleOrTiddler,defaultData) {\n\tvar self = this,\n\t\ttiddler = titleOrTiddler;\n\tif(!(tiddler instanceof $tw.Tiddler)) {\n\t\ttiddler = this.getTiddler(tiddler);\t\n\t}\n\tif(tiddler) {\n\t\treturn this.getCacheForTiddler(tiddler.fields.title,\"data\",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 && tiddler.fields.text) {\n\t\tswitch(tiddler.fields.type) {\n\t\t\tcase \"application/json\":\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 \"application/x-tiddler-dictionary\":\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 && $tw.utils.hop(data,index)) {\n\t\ttext = data[index];\n\t}\n\tif(typeof text === \"string\" || typeof text === \"number\") {\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 \"application/json\" 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 && existingTiddler.fields.type === \"application/x-tiddler-dictionary\") {\n\t\tnewFields.text = $tw.utils.makeTiddlerDictionary(data);\n\t} else {\n\t\tnewFields.type = \"application/json\";\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,\"\"));\n\t}\n\tfield = field || \"list\";\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 && 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(\"parser\",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[\"application/octet-stream\"]) {\n\t\tObject.keys($tw.config.contentTypeInfo).forEach(function(type) {\n\t\t\tif(!$tw.utils.hop($tw.Wiki.parsers,type) && $tw.config.contentTypeInfo[type].encoding === \"base64\") {\n\t\t\t\t$tw.Wiki.parsers[type] = $tw.Wiki.parsers[\"application/octet-stream\"];\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 || \"\";\n\toptions = options || {};\n\t// Select a parser\n\tvar Parser = $tw.Wiki.parsers[type];\n\tif(!Parser && $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 || \"text/vnd.tiddlywiki\"];\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 ? \"inlineParseTree\" : \"blockParseTree\",\n\t\ttiddler = this.getTiddler(title),\n\t\tself = this;\n\treturn tiddler ? this.getCacheForTiddler(title,cacheType,function() {\n\t\t\tif(tiddler.hasField(\"_canonical_uri\")) {\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 === \"text\" || (!field && !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 === \"text\" || (!field && !index)) {\n\t\tif(tiddler && 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 === \"title\") {\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(\"text/vnd.tiddlywiki\",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(\"text/vnd.tiddlywiki\",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: \"widget\",\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: \"set\",\n\t\t\tattributes: {\n\t\t\t\tname: {type: \"string\", value: name},\n\t\t\t\tvalue: {type: \"string\", 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 \"text\")\noptions.mode: transclusion mode \"inline\" or \"block\"\noptions.recursionMarker : optional flag to set a recursion marker, defaults to \"yes\"\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 \"[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\" to options.importVariables\n*/\nexports.makeTranscludeWidget = function(title,options) {\n\toptions = options || {};\n\tvar parseTreeDiv = {tree: [{\n\t\t\ttype: \"element\",\n\t\t\ttag: \"div\",\n\t\t\tchildren: []}]},\n\t\tparseTreeImportVariables = {\n\t\t\ttype: \"importvariables\",\n\t\t\tattributes: {\n\t\t\t\tfilter: {\n\t\t\t\t\tname: \"filter\",\n\t\t\t\t\ttype: \"string\"\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: \"transclude\",\n\t\t\tattributes: {\n\t\t\t\trecursionMarker: {\n\t\t\t\t\tname: \"recursionMarker\",\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tvalue: options.recursionMarker || \"yes\"\n\t\t\t\t\t},\n\t\t\t\ttiddler: {\n\t\t\t\t\tname: \"tiddler\",\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tvalue: title\n\t\t\t\t}\n\t\t\t},\n\t\t\tisBlock: !options.parseAsInline};\n\tif(options.importVariables || options.importPageMacros) {\n\t\tif(options.importVariables) {\n\t\t\tparseTreeImportVariables.attributes.filter.value = options.importVariables;\n\t\t} else if(options.importPageMacros) {\n\t\t\tparseTreeImportVariables.attributes.filter.value = \"[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\";\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: \"string\", value: options.field};\n\t}\n\tif(options.mode) {\n\t\tparseTreeTransclude.attributes.mode = {type: \"string\", value: options.mode};\n\t}\n\tif(options.children) {\n\t\tparseTreeTransclude.children = options.children;\n\t}\n\treturn this.makeWidget(parseTreeDiv,options);\n};\n\n/*\nParse text in a specified format and render it into another format\n\toutputType: content type for the output\n\ttextType: content type of the input text\n\ttext: input text\n\toptions: see below\nOptions include:\nvariables: hashmap of variables to set\nparentWidget: optional parent widget for the root node\n*/\nexports.renderText = function(outputType,textType,text,options) {\n\toptions = options || {};\n\tvar parser = this.parseText(textType,text,options),\n\t\twidgetNode = this.makeWidget(parser,options);\n\tvar container = $tw.fakeDocument.createElement(\"div\");\n\twidgetNode.render(container,null);\n\treturn outputType === \"text/html\" ? 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(\"div\");\n\twidgetNode.render(container,null);\n\treturn outputType === \"text/html\" ? container.innerHTML : (outputType === \"text/plain-formatted\" ? container.formattedTextContent : container.textContent);\n};\n\n/*\nReturn an array of tiddler titles that match a search string\n\ttext: The text string to search for\n\toptions: see below\nOptions available:\n\tsource: an iterator function for the source tiddlers, called source(iterator), where iterator is called as iterator(tiddler,title)\n\texclude: An array of tiddler titles to exclude from the search\n\tinvert: If true returns tiddlers that do not contain the specified string\n\tcaseSensitive: If true forces a case sensitive search\n\tfield: If specified, restricts the search to the specified field, or an array of field names\n\tanchored: If true, forces all but regexp searches to be anchored to the start of text\n\texcludeField: If true, the field options are inverted to specify the fields that are not to be searched\n\tThe search mode is determined by the first of these boolean flags to be true\n\t\tliteral: searches for literal string\n\t\twhitespace: same as literal except runs of whitespace are treated as a single space\n\t\tregexp: treats the search term as a regular expression\n\t\twords: (default) treats search string as a list of tokens, and matches if all tokens are found, regardless of adjacency or ordering\n*/\nexports.search = function(text,options) {\n\toptions = options || {};\n\tvar self = this,\n\t\tt,\n\t\tinvert = !!options.invert;\n\t// Convert the search string into a regexp for each term\n\tvar terms, searchTermsRegExps,\n\t\tflags = options.caseSensitive ? \"\" : \"i\",\n\t\tanchor = options.anchored ? \"^\" : \"\";\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(\"(\" + anchor + $tw.utils.escapeRegExp(text) + \")\",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(\"(\" + anchor + terms.join(\"\\\\s+\") + \")\",flags)];\n\t} else if(options.regexp) {\n\t\ttry {\n\t\t\tsearchTermsRegExps = [new RegExp(\"(\" + text + \")\",flags)];\t\t\t\n\t\t} catch(e) {\n\t\t\tsearchTermsRegExps = null;\n\t\t\tconsole.log(\"Regexp error parsing /(\" + text + \")/\" + flags + \": \",e);\n\t\t}\n\t} else {\n\t\tterms = text.split(/ +/);\n\t\tif(terms.length === 1 && terms[0] === \"\") {\n\t\t\tsearchTermsRegExps = null;\n\t\t} else {\n\t\t\tsearchTermsRegExps = [];\n\t\t\tfor(t=0; t<terms.length; t++) {\n\t\t\t\tsearchTermsRegExps.push(new RegExp(\"(\" + anchor + $tw.utils.escapeRegExp(terms[t]) + \")\",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 && !options.excludeField) {\n\t\tfields.push(\"title\");\n\t\tfields.push(\"tags\");\n\t\tfields.push(\"text\");\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: \"\", type: \"text/vnd.tiddlywiki\"});\n\t\t}\n\t\tvar contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type] || $tw.config.contentTypeInfo[\"text/vnd.tiddlywiki\"],\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>0 && fieldIndex<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 === \"text\" && contentTypeInfo.encoding !== \"utf8\") {\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<str.length; s++) {\n\t\t\t\t\t\tfor(t=0; t<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<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<options.exclude.length; t++) {\n\t\t\tvar p = results.indexOf(options.exclude[t]);\n\t\t\tif(p !== -1) {\n\t\t\t\tresults.splice(p,1);\n\t\t\t}\n\t\t}\n\t}\n\treturn results;\n};\n\n/*\nTrigger a load for a tiddler if it is skinny. Returns the text, or undefined if the tiddler is missing, null if the tiddler is being lazily loaded.\n*/\nexports.getTiddlerText = function(title,defaultText) {\n\tvar tiddler = this.getTiddler(title);\n\t// Return undefined if the tiddler isn't found\n\tif(!tiddler) {\n\t\treturn defaultText;\n\t}\n\tif(!tiddler.hasField(\"_is_skinny\")) {\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(\"lazyLoad\",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,\"\");\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 === \"function\") {\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<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 === \"function\") {\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 === \"\" || !type) {\n\t\tvar dotPos = file.name.lastIndexOf(\".\");\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 === \"base64\" : false;\n\t// Log some debugging information\n\tif($tw.log.IMPORT) {\n\t\tconsole.log(\"Importing file '\" + file.name + \"', type: '\" + type + \"', isBinary: \" + isBinary);\n\t}\n\t// Give the hook a chance to process the drag\n\tif($tw.hooks.invokeHook(\"th-importing-file\",{\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 || \"Untitled\"};\n\t\tif(isBinary) {\n\t\t\tvar commaPos = text.indexOf(\",\");\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[\"draft.title\"] && tiddler.fields[\"draft.of\"] === 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 = [\"created\", \"modified\", \"title\", \"draft.title\", \"draft.of\"],\n\t\torigTiddler = this.getTiddler(tiddler.fields[\"draft.of\"]) || new $tw.Tiddler({text:\"\", tags:[]}),\n\t\ttitleModified = tiddler.fields[\"draft.title\"] !== tiddler.fields[\"draft.of\"];\n\treturn titleModified || !tiddler.isEqual(origTiddler,ignoredFields);\n};\n\n/*\nAdd a new record to the top of the history stack\ntitle: a title string or an array of title strings\nfromPageRect: page coordinates of the origin of the navigation\nhistoryTitle: title of history tiddler (defaults to $:/HistoryList)\n*/\nexports.addToHistory = function(title,fromPageRect,historyTitle) {\n\tvar story = new $tw.Story({wiki: this, historyTitle: historyTitle});\n\tstory.addToHistory(title,fromPageRect);\t\n\tconsole.log(\"$tw.wiki.addToHistory() is deprecated since V5.1.23! Use the this.story.addToHistory() from the story-object!\")\n};\n\n/*\nAdd a new tiddler to the story river\ntitle: a title string or an array of title strings\nfromTitle: the title of the tiddler from which the navigation originated\nstoryTitle: title of story tiddler (defaults to $:/StoryList)\noptions: see story.js\n*/\nexports.addToStory = function(title,fromTitle,storyTitle,options) {\n\tvar story = new $tw.Story({wiki: this, storyTitle: storyTitle});\n\tstory.addToStory(title,fromTitle,options);\n\tconsole.log(\"$tw.wiki.addToStory() is deprecated since V5.1.23! Use the this.story.addToStory() from the story-object!\")\n};\n\n/*\nGenerate a title for the draft of a given tiddler\n*/\nexports.generateDraftTitle = function(title) {\n\tvar c = 0,\n\t\tdraftTitle,\n\t\tusername = this.getTiddlerText(\"$:/status/UserName\"),\n\t\tattribution = username ? \" by \" + username : \"\";\n\tdo {\n\t\tdraftTitle = \"Draft \" + (c ? (c + 1) + \" \" : \"\") + \"of '\" + title + \"'\" + attribution;\n\t\tc++;\n\t} while(this.tiddlerExists(draftTitle));\n\treturn draftTitle;\n};\n\n/*\nInvoke the available upgrader modules\ntitles: array of tiddler titles to be processed\ntiddlers: hashmap by title of tiddler fields of pending import tiddlers. These can be modified by the upgraders. An entry with no fields indicates a tiddler that was pending import has been suppressed. When entries are added to the pending import the tiddlers hashmap may have entries that are not present in the titles array\nReturns a hashmap of messages keyed by tiddler title.\n*/\nexports.invokeUpgraders = function(titles,tiddlers) {\n\t// Collect up the available upgrader modules\n\tvar self = this;\n\tif(!this.upgraderModules) {\n\t\tthis.upgraderModules = [];\n\t\t$tw.modules.forEachModuleOfType(\"upgrader\",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<this.upgraderModules.length; t++) {\n\t\tvar upgrader = this.upgraderModules[t],\n\t\t\tupgraderMessages = upgrader.upgrade(this,titles,tiddlers);\n\t\t$tw.utils.extend(messages,upgraderMessages);\n\t}\n\treturn messages;\n};\n\n// Determine whether a plugin by title is dynamically loadable\nexports.doesPluginRequireReload = function(title) {\n\treturn this.doesPluginInfoRequireReload(this.getPluginInfo(title) || this.getTiddlerDataCached(title));\n};\n\n// Determine whether a plugin info structure is dynamically loadable\nexports.doesPluginInfoRequireReload = function(pluginInfo) {\n\tif(pluginInfo) {\n\t\tvar foundModule = false;\n\t\t$tw.utils.each(pluginInfo.tiddlers,function(tiddler) {\n\t\t\tif(tiddler.type === \"application/javascript\" && $tw.utils.hop(tiddler,\"module-type\")) {\n\t\t\t\tfoundModule = true;\n\t\t\t}\n\t\t});\n\t\treturn foundModule;\n\t} else {\n\t\treturn null;\n\t}\n};\n\nexports.slugify = function(title,options) {\n\tvar tiddler = this.getTiddler(title),\n\t\tslug;\n\tif(tiddler && tiddler.fields.slug) {\n\t\tslug = tiddler.fields.slug;\n\t} else {\n\t\tslug = $tw.utils.transliterate(title.toString().toLowerCase()) // Replace diacritics with basic lowercase ASCII\n\t\t\t.replace(/\\s+/g,\"-\") // Replace spaces with -\n\t\t\t.replace(/[^\\w\\-\\.]+/g,\"\") // Remove all non-word chars except dash and dot\n\t\t\t.replace(/\\-\\-+/g,\"-\") // Replace multiple - with single -\n\t\t\t.replace(/^-+/,\"\") // Trim - from start of text\n\t\t\t.replace(/-+$/,\"\"); // Trim - from end of text\n\t}\n\t// If the resulting slug is blank (eg because the title is just punctuation characters)\n\tif(!slug) {\n\t\t// ...then just use the character codes of the title\n\t\tvar result = [];\n\t\t$tw.utils.each(title.split(\"\"),function(char) {\n\t\t\tresult.push(char.charCodeAt(0).toString());\n\t\t});\n\t\tslug = result.join(\"-\");\n\t}\n\treturn slug;\n};\n\n})();\n\n",
+ "type": "application/javascript",
+ "module-type": "wikimethod"
+ },
+ "$:/palettes/Blanca": {
+ "title": "$:/palettes/Blanca",
+ "name": "Blanca",
+ "description": "A clean white palette to let you focus",
+ "tags": "$:/tags/Palette",
+ "type": "application/x-tiddler-dictionary",
+ "text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #66cccc\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\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: <<colour foreground>>\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: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #7897f3\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #eeeeee\ntab-border-selected: #cccccc\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ffeedd\ntag-foreground: #000\ntiddler-background: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\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"
+ },
+ "$:/palettes/Blue": {
+ "title": "$:/palettes/Blue",
+ "name": "Blue",
+ "description": "A blue theme",
+ "tags": "$:/tags/Palette",
+ "type": "application/x-tiddler-dictionary",
+ "text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #fff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour foreground>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\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: <<colour foreground>>\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: <<colour page-background>>\nsidebar-tab-background: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #5959c0\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: #ccccdd\ntab-border-selected: #ccccdd\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #eeeeff\ntag-foreground: #000\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\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"
+ },
+ "$:/palettes/Muted": {
+ "title": "$:/palettes/Muted",
+ "name": "Muted",
+ "description": "Bright tiddlers on a muted background",
+ "tags": "$:/tags/Palette",
+ "type": "application/x-tiddler-dictionary",
+ "text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\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: <<colour foreground>>\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: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #d5ad34\ntag-foreground: #ffffff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\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"
+ },
+ "$:/palettes/ContrastLight": {
+ "title": "$:/palettes/ContrastLight",
+ "name": "Contrast (Light)",
+ "description": "High contrast and unambiguous (light version)",
+ "tags": "$:/tags/Palette",
+ "type": "application/x-tiddler-dictionary",
+ "text": "alert-background: #f00\nalert-border: <<colour background>>\nalert-highlight: <<colour foreground>>\nalert-muted-foreground: #800\nbackground: #fff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background: <<colour background>>\nbutton-foreground: <<colour foreground>>\nbutton-border: <<colour foreground>>\ncode-background: <<colour background>>\ncode-border: <<colour foreground>>\ncode-foreground: <<colour foreground>>\ndirty-indicator: #f00\ndownload-background: #080\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: <<colour foreground>>\ndropdown-tab-background: <<colour foreground>>\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: <<colour foreground>>\nmessage-border: <<colour background>>\nmessage-foreground: <<colour background>>\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: <<colour foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour foreground>>\nmodal-header-border: <<colour foreground>>\nmuted-foreground: <<colour foreground>>\nnotification-background: <<colour background>>\nnotification-border: <<colour foreground>>\npage-background: <<colour background>>\npre-background: <<colour background>>\npre-border: <<colour foreground>>\nprimary: #00f\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: <<colour background>>\nsidebar-controls-foreground: <<colour foreground>>\nsidebar-foreground-shadow: rgba(0,0,0, 0)\nsidebar-foreground: <<colour foreground>>\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: <<colour foreground>>\nsidebar-tab-background-selected: <<colour background>>\nsidebar-tab-background: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: <<colour foreground>>\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: <<colour foreground>>\nsidebar-tiddler-link-foreground: <<colour primary>>\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: <<colour foreground>>\ntab-border-selected: <<colour foreground>>\ntab-border: <<colour foreground>>\ntab-divider: <<colour foreground>>\ntab-foreground-selected: <<colour foreground>>\ntab-foreground: <<colour background>>\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #000\ntag-foreground: #fff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour foreground>>\ntiddler-controls-foreground-hover: #ddd\ntiddler-controls-foreground-selected: #fdd\ntiddler-controls-foreground: <<colour foreground>>\ntiddler-editor-background: <<colour background>>\ntiddler-editor-border-image: <<colour foreground>>\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: <<colour background>>\ntiddler-editor-fields-odd: <<colour background>>\ntiddler-info-background: <<colour background>>\ntiddler-info-border: <<colour foreground>>\ntiddler-info-tab-background: <<colour background>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour foreground>>\ntiddler-title-foreground: <<colour foreground>>\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: <<colour foreground>>\nvery-muted-foreground: #888888\n"
+ },
+ "$:/palettes/ContrastDark": {
+ "title": "$:/palettes/ContrastDark",
+ "name": "Contrast (Dark)",
+ "description": "High contrast and unambiguous (dark version)",
+ "tags": "$:/tags/Palette",
+ "type": "application/x-tiddler-dictionary",
+ "text": "alert-background: #f00\nalert-border: <<colour background>>\nalert-highlight: <<colour foreground>>\nalert-muted-foreground: #800\nbackground: #000\nblockquote-bar: <<colour muted-foreground>>\nbutton-background: <<colour background>>\nbutton-foreground: <<colour foreground>>\nbutton-border: <<colour foreground>>\ncode-background: <<colour background>>\ncode-border: <<colour foreground>>\ncode-foreground: <<colour foreground>>\ndirty-indicator: #f00\ndownload-background: #080\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: <<colour foreground>>\ndropdown-tab-background: <<colour foreground>>\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: <<colour foreground>>\nmessage-border: <<colour background>>\nmessage-foreground: <<colour background>>\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: <<colour foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour foreground>>\nmodal-header-border: <<colour foreground>>\nmuted-foreground: <<colour foreground>>\nnotification-background: <<colour background>>\nnotification-border: <<colour foreground>>\npage-background: <<colour background>>\npre-background: <<colour background>>\npre-border: <<colour foreground>>\nprimary: #00f\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: <<colour background>>\nsidebar-controls-foreground: <<colour foreground>>\nsidebar-foreground-shadow: rgba(0,0,0, 0)\nsidebar-foreground: <<colour foreground>>\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: <<colour foreground>>\nsidebar-tab-background-selected: <<colour background>>\nsidebar-tab-background: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: <<colour foreground>>\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: <<colour foreground>>\nsidebar-tiddler-link-foreground: <<colour primary>>\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: <<colour foreground>>\ntab-border-selected: <<colour foreground>>\ntab-border: <<colour foreground>>\ntab-divider: <<colour foreground>>\ntab-foreground-selected: <<colour foreground>>\ntab-foreground: <<colour background>>\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #fff\ntag-foreground: #000\ntiddler-background: <<colour background>>\ntiddler-border: <<colour foreground>>\ntiddler-controls-foreground-hover: #ddd\ntiddler-controls-foreground-selected: #fdd\ntiddler-controls-foreground: <<colour foreground>>\ntiddler-editor-background: <<colour background>>\ntiddler-editor-border-image: <<colour foreground>>\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: <<colour background>>\ntiddler-editor-fields-odd: <<colour background>>\ntiddler-info-background: <<colour background>>\ntiddler-info-border: <<colour foreground>>\ntiddler-info-tab-background: <<colour background>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour foreground>>\ntiddler-title-foreground: <<colour foreground>>\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: <<colour foreground>>\nvery-muted-foreground: #888888\n"
+ },
+ "$:/palettes/CupertinoDark": {
+ "title": "$:/palettes/CupertinoDark",
+ "tags": "$:/tags/Palette",
+ "name": "Cupertino Dark",
+ "description": "A macOS inspired dark palette",
+ "type": "application/x-tiddler-dictionary",
+ "text": "alert-background: #FF453A\nalert-border: #FF453A\nalert-highlight: #FFD60A\nalert-muted-foreground: <<colour muted-foreground>>\nbackground: #282828\nblockquote-bar: <<colour page-background>>\nbutton-foreground: <<colour background>>\ncode-background: <<colour pre-background>>\ncode-border: <<colour pre-border>>\ncode-foreground: rgba(255, 255, 255, 0.54)\ndirty-indicator: #FF453A\ndownload-background: <<colour primary>>\ndownload-foreground: <<colour foreground>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour tiddler-info-background>>\ndropdown-border: <<colour dropdown-background>>\ndropdown-tab-background-selected: #3F638B\ndropdown-tab-background: #323232\ndropzone-background: #30D158\nexternal-link-background-hover: transparent\nexternal-link-background-visited: transparent\nexternal-link-background: transparent\nexternal-link-foreground-hover: \nexternal-link-foreground-visited: #BF5AF2\nexternal-link-foreground: #32D74B\nforeground: #FFFFFF\nmenubar-background: #464646\nmenubar-foreground: #ffffff\nmessage-background: <<colour background>>\nmessage-border: <<colour very-muted-foreground>>\nmessage-foreground: rgba(255, 255, 255, 0.54)\nmodal-backdrop: <<colour page-background>>\nmodal-background: <<colour background>>\nmodal-border: <<colour very-muted-foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour background>>\nmodal-header-border: <<colour very-muted-foreground>>\nmuted-foreground: #98989D\nnotification-background: <<colour dropdown-background>>\nnotification-border: <<colour dropdown-background>>\npage-background: #323232\npre-background: #464646\npre-border: transparent\nprimary: #0A84FF\nselect-tag-background: <<colour background>>\nselect-tag-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour background>>\nsidebar-controls-foreground-hover: #FF9F0A\nsidebar-controls-foreground: #8E8E93\nsidebar-foreground-shadow: transparent\nsidebar-foreground: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground-hover: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground: rgba(255, 255, 255, 0.38)\nsidebar-tab-background-selected: #3F638B\nsidebar-tab-background: <<colour background>>\nsidebar-tab-border-selected: <<colour background>>\nsidebar-tab-border: <<colour background>>\nsidebar-tab-divider: <<colour background>>\nsidebar-tab-foreground-selected: rgba(255, 255, 255, 0.87)\nsidebar-tab-foreground: rgba(255, 255, 255, 0.54)\nsidebar-tiddler-link-foreground-hover: rgba(255, 255, 255, 0.7)\nsidebar-tiddler-link-foreground: rgba(255, 255, 255, 0.54)\nsite-title-foreground: #ffffff\nstatic-alert-foreground: #B4B4B4\ntab-background-selected: #3F638B\ntab-background: <<colour page-background>>\ntab-border-selected: <<colour page-background>>\ntab-border: <<colour page-background>>\ntab-divider: <<colour page-background>>\ntab-foreground-selected: rgba(255, 255, 255, 0.87)\ntab-foreground: rgba(255, 255, 255, 0.54)\ntable-border: #464646\ntable-footer-background: <<colour tiddler-editor-fields-odd>>\ntable-header-background: <<colour tiddler-editor-fields-even>>\ntag-background: #48484A\ntag-foreground: #323232\ntiddler-background: <<colour background>>\ntiddler-border: transparent\ntiddler-controls-foreground-hover: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground-selected: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground: #48484A\ntiddler-editor-background: transparent\ntiddler-editor-border-image: \ntiddler-editor-border: rgba(255, 255, 255, 0.08)\ntiddler-editor-fields-even: rgba(255, 255, 255, 0.1)\ntiddler-editor-fields-odd: rgba(255, 255, 255, 0.04)\ntiddler-info-background: #1E1E1E\ntiddler-info-border: #1E1E1E\ntiddler-info-tab-background: #3F638B\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour muted-foreground>>\ntiddler-title-foreground: #FFFFFF\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: <<colour very-muted-foreground>>\nvery-muted-foreground: #464646\nselection-background: #3F638B\nselection-foreground: #ffffff\nwikilist-background: <<colour page-background>>\nwikilist-button-background: #3F638B\nwikilist-button-foreground: <<colour foreground>>\nwikilist-button-open: #32D74B\nwikilist-button-open-hover: #32D74B\nwikilist-button-reveal: #0A84FF\nwikilist-button-reveal-hover: #0A84FF\nwikilist-button-remove: #FF453A\nwikilist-button-remove-hover: #FF453A\nwikilist-droplink-dragover: #32D74B\nwikilist-item: <<colour background>>\nwikilist-toolbar-background: <<colour background>>\nwikilist-title: <<colour foreground>>\nwikilist-title-svg: <<colour foreground>>\nwikilist-toolbar-foreground: <<colour foreground>>\nwikilist-url: <<colour muted-foreground>>\n"
+ },
+ "$:/palettes/DarkPhotos": {
+ "title": "$:/palettes/DarkPhotos",
+ "created": "20150402111612188",
+ "description": "Good with dark photo backgrounds",
+ "modified": "20150402112344080",
+ "name": "DarkPhotos",
+ "tags": "$:/tags/Palette",
+ "type": "application/x-tiddler-dictionary",
+ "text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background: \nbutton-foreground: \nbutton-border: \ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\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: <<colour foreground>>\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: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: rgba(255,255,255, 0.2)\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\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: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ec6\ntag-foreground: #ffffff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\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"
+ },
+ "$:/palettes/DesertSand": {
+ "title": "$:/palettes/DesertSand",
+ "tags": "$:/tags/Palette",
+ "name": "Desert Sand",
+ "description": "A desert sand palette",
+ "type": "application/x-tiddler-dictionary",
+ "text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #E9E0C7\nblockquote-bar: <<colour muted-foreground>>\nbutton-foreground: <<colour foreground>>\ncode-background: #F3EDDF\ncode-border: #C3BAA1\ncode-foreground: #ab3250\ndiff-delete-background: #bd8b8b\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #91c093\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: #ad3434\ndownload-background: #6ca16c\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: #E9E0C7\ndropdown-tab-background: #BAB29C\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #313163\nexternal-link-foreground: #555592\nforeground: #2D2A23\nmenubar-background: #CDC2A6\nmenubar-foreground: #5A5446\nmessage-background: #ECE5CF\nmessage-border: #D6CBAA\nmessage-foreground: #5f6e7d\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #8A8885\nmodal-footer-background: #CDC2A6\nmodal-footer-border: #9D998E\nmodal-header-border: #9D998E\nmuted-foreground: #9D998E\nnotification-background: #F0E9D7\nnotification-border: #939189\npage-background: #e0d3af\npre-background: #D6CBAA\npre-border: #CDC2A6\nprimary: #5B6F55\nselection-background: #9D947B\nselection-foreground: <<colour foreground>>\nselect-tag-background: #F0E9D7\nselect-tag-foreground: #2D2A23\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #2D2A23\nsidebar-controls-foreground: #867F69\nsidebar-foreground-shadow: transparent\nsidebar-foreground: #867F69\nsidebar-muted-foreground-hover: #706A58\nsidebar-muted-foreground: #B3A98C\nsidebar-tab-background-selected: #e0d3af\nsidebar-tab-background: #A6A193\nsidebar-tab-border-selected: #C3BAA1\nsidebar-tab-border: #C3BAA1\nsidebar-tab-divider: #CDC2A6\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: #2D2A23\nsidebar-tiddler-link-foreground-hover: #433F35\nsidebar-tiddler-link-foreground: #706A58\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #A6A193\ntab-background-selected: #E9E0C7\ntab-background: #A6A193\ntab-border-selected: #C3BAA1\ntab-border: #C3BAA1\ntab-divider: #CDC2A6\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #2D2A23\ntable-border: #9D998E\ntable-footer-background: #8A8885\ntable-header-background: #B0AA98\ntag-background: #706A58\ntag-foreground: #E3D7B7\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: #9D947B\ntiddler-controls-foreground-selected: #706A58\ntiddler-controls-foreground: #C3BAA1\ntiddler-editor-background: #E9E0C7\ntiddler-editor-border-image: #A6A193\ntiddler-editor-border: #A6A193\ntiddler-editor-fields-even: #D6CBAA\ntiddler-editor-fields-odd: #C3BAA1\ntiddler-info-background: #E3D7B7\ntiddler-info-border: #BAB29C\ntiddler-info-tab-background: #E9E0C7\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #867F69\ntiddler-title-foreground: #374464\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #8A8885\nvery-muted-foreground: #CDC2A6\nwikilist-background: <<colour page-background>>\nwikilist-item: #CDC2A6\nwikilist-info: #161512\nwikilist-title: #433F35\nwikilist-title-svg: <<colour wikilist-title>>\nwikilist-url: #706A58\nwikilist-button-open: #7db66a\nwikilist-button-open-hover: #56a556\nwikilist-button-reveal: #5a6c9e\nwikilist-button-reveal-hover: #454591\nwikilist-button-remove: #bc5972\nwikilist-button-remove-hover: #814040\nwikilist-toolbar-background: #CDC2A6\nwikilist-toolbar-foreground: #2D2A23\nwikilist-droplink-dragover: rgba(255,192,192,0.5)\nwikilist-button-background: #A6A193\nwikilist-button-foreground: #161512\n"
+ },
+ "$:/palettes/GruvboxDark": {
+ "title": "$:/palettes/GruvboxDark",
+ "name": "Gruvbox Dark",
+ "description": "Retro groove color scheme",
+ "tags": "$:/tags/Palette",
+ "type": "application/x-tiddler-dictionary",
+ "license": "https://github.com/morhetz/gruvbox",
+ "text": "alert-background: #cc241d\nalert-border: #cc241d\nalert-highlight: #d79921\nalert-muted-foreground: #504945\nbackground: #3c3836\nblockquote-bar: <<colour muted-foreground>>\nbutton-foreground: <<colour page-background>>\ncode-background: #504945\ncode-border: #504945\ncode-foreground: #fb4934\ndiff-delete-background: #fb4934\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #b8bb26\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: #fb4934\ndownload-background: #b8bb26\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: #665c54\ndropdown-border: <<colour background>>\ndropdown-tab-background-selected: #ebdbb2\ndropdown-tab-background: #665c54\ndropzone-background: #98971a\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #d3869b\nexternal-link-foreground: #8ec07c\nforeground: #fbf1c7\nmenubar-background: #504945\nmenubar-foreground: <<colour foreground>>\nmessage-background: #83a598\nmessage-border: #83a598\nmessage-foreground: #3c3836\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #504945\nmodal-footer-background: #3c3836\nmodal-footer-border: #3c3836\nmodal-header-border: #3c3836\nmuted-foreground: #d5c4a1\nnotification-background: <<colour primary>>\nnotification-border: <<colour primary>>\npage-background: #282828\npre-background: #504945\npre-border: #504945\nprimary: #d79921\nselect-tag-background: #665c54\nselect-tag-foreground: <<colour foreground>>\nselection-background: #458588\nselection-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour page-background>>\nsidebar-controls-foreground-hover: #7c6f64\nsidebar-controls-foreground: #504945\nsidebar-foreground-shadow: transparent\nsidebar-foreground: #fbf1c7\nsidebar-muted-foreground-hover: #7c6f64\nsidebar-muted-foreground: #504945\nsidebar-tab-background-selected: #bdae93\nsidebar-tab-background: #3c3836\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: #bdae93\nsidebar-tab-divider: <<colour page-background>>\nsidebar-tab-foreground-selected: #282828\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #458588\nsidebar-tiddler-link-foreground: #98971a\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #B48EAD\ntab-background-selected: #ebdbb2\ntab-background: #665c54\ntab-border-selected: #665c54\ntab-border: #665c54\ntab-divider: #bdae93\ntab-foreground-selected: #282828\ntab-foreground: #ebdbb2\ntable-border: #7c6f64\ntable-footer-background: #665c54\ntable-header-background: #504945\ntag-background: #d3869b\ntag-foreground: #282828\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: #7c6f64\ntiddler-controls-foreground-selected: <<colour primary>>\ntiddler-controls-foreground: #665c54\ntiddler-editor-background: #32302f\ntiddler-editor-border-image: #282828\ntiddler-editor-border: #282828\ntiddler-editor-fields-even: #504945\ntiddler-editor-fields-odd: #7c6f64\ntiddler-info-background: #32302f\ntiddler-info-border: #ebdbb2\ntiddler-info-tab-background: #ebdbb2\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #7c6f64\ntiddler-title-foreground: #a89984\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #504945\nvery-muted-foreground: #bdae93\nwikilist-background: <<colour page-background>>\nwikilist-button-background: #acacac\nwikilist-button-foreground: <<colour button-foreground>>\nwikilist-item: <<colour background>>\nwikilist-toolbar-background: <<colour background>>\nwikilist-toolbar-foreground: <<colour foreground>>\nwikilist-title: <<colour foreground>>\nwikilist-title-svg: <<colour wikilist-title>>\nwikilist-url: <<colour muted-foreground>>\nwikilist-button-open-hover: <<colour primary>>\nwikilist-button-open: <<colour dropzone-background>>\nwikilist-button-remove: <<colour dirty-indicator>>\nwikilist-button-remove-hover: <<colour alert-background>>\nwikilist-droplink-dragover: <<colour dropzone-background>>\nwikilist-button-reveal: <<colour sidebar-tiddler-link-foreground-hover>>\nwikilist-button-reveal-hover: <<colour message-background>>\n"
+ },
+ "$:/palettes/Nord": {
+ "title": "$:/palettes/Nord",
+ "name": "Nord",
+ "description": "An arctic, north-bluish color palette.",
+ "tags": "$:/tags/Palette",
+ "type": "application/x-tiddler-dictionary",
+ "license": "MIT, arcticicestudio, https://github.com/arcticicestudio/nord/blob/develop/LICENSE.md",
+ "text": "alert-background: #D08770\nalert-border: #D08770\nalert-highlight: #B48EAD\nalert-muted-foreground: #4C566A\nbackground: #3b4252\nblockquote-bar: <<colour muted-foreground>>\nbutton-foreground: <<colour page-background>>\ncode-background: #2E3440\ncode-border: #2E3440\ncode-foreground: #BF616A\ndiff-delete-background: #BF616A\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #A3BE8C\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: #BF616A\ndownload-background: #A3BE8C\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour background>>\ndropdown-tab-background-selected: #ECEFF4\ndropdown-tab-background: #4C566A\ndropzone-background: #A3BE8C\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #5E81AC\nexternal-link-foreground: #8FBCBB\nforeground: #d8dee9\nmenubar-background: #2E3440\nmenubar-foreground: #d8dee9\nmessage-background: #2E3440\nmessage-border: #2E3440\nmessage-foreground: #547599\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #3b4252\nmodal-footer-background: #3b4252\nmodal-footer-border: #3b4252\nmodal-header-border: #3b4252\nmuted-foreground: #4C566A\nnotification-background: <<colour primary>>\nnotification-border: #EBCB8B\npage-background: #2e3440\npre-background: #2E3440\npre-border: #2E3440\nprimary: #5E81AC\nselect-tag-background: #3b4252\nselect-tag-foreground: <<colour foreground>>\nselection-background: #5E81AC\nselection-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour page-background>>\nsidebar-controls-foreground-hover: #D8DEE9\nsidebar-controls-foreground: #4C566A\nsidebar-foreground-shadow: transparent\nsidebar-foreground: #D8DEE9\nsidebar-muted-foreground-hover: #4C566A\nsidebar-muted-foreground: #4C566A\nsidebar-tab-background-selected: #ECEFF4\nsidebar-tab-background: #4C566A\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: #4C566A\nsidebar-tab-divider: <<colour page-background>>\nsidebar-tab-foreground-selected: #4C566A\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #A3BE8C\nsidebar-tiddler-link-foreground: #81A1C1\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #B48EAD\ntab-background-selected: #ECEFF4\ntab-background: #4C566A\ntab-border-selected: #4C566A\ntab-border: #4C566A\ntab-divider: #4C566A\ntab-foreground-selected: #4C566A\ntab-foreground: #D8DEE9\ntable-border: #4C566A\ntable-footer-background: #2e3440\ntable-header-background: #2e3440\ntag-background: #A3BE8C\ntag-foreground: #4C566A\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: \ntiddler-controls-foreground-selected: #EBCB8B\ntiddler-controls-foreground: #4C566A\ntiddler-editor-background: #2e3440\ntiddler-editor-border-image: #2e3440\ntiddler-editor-border: #3b4252\ntiddler-editor-fields-even: #2e3440\ntiddler-editor-fields-odd: #2e3440\ntiddler-info-background: #2e3440\ntiddler-info-border: #2e3440\ntiddler-info-tab-background: #2e3440\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #4C566A\ntiddler-title-foreground: #81A1C1\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #2d3038\nvery-muted-foreground: #2d3038\nwikilist-background: <<colour page-background>>\nwikilist-toolbar-background: <<colour background>>\nwikilist-item: <<colour background>>\nwikilist-title: <<colour foreground>>\nwikilist-info: <<colour muted-foreground>>\nwikilist-button-open: #A3BE8C\nwikilist-button-open-hover: #A3BE8C\nwikilist-button-reveal: #81A1C1\nwikilist-button-reveal-hover: #81A1C1\nwikilist-button-remove: #B48EAD\nwikilist-button-remove-hover: #B48EAD\n"
+ },
+ "$:/palettes/Rocker": {
+ "title": "$:/palettes/Rocker",
+ "name": "Rocker",
+ "description": "A dark theme",
+ "tags": "$:/tags/Palette",
+ "type": "application/x-tiddler-dictionary",
+ "text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\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: <<colour foreground>>\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: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #ffbb99\nsidebar-tiddler-link-foreground: #cc0000\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ffbb99\ntag-foreground: #000\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\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"
+ },
+ "$:/palettes/SolarFlare": {
+ "title": "$:/palettes/SolarFlare",
+ "name": "Solar Flare",
+ "description": "Warm, relaxing earth colours",
+ "tags": "$:/tags/Palette",
+ "type": "application/x-tiddler-dictionary",
+ "text": ": 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: <<colour background>>\n dragger-foreground: <<colour background>>\n dropdown-background: <<colour background>>\n modal-background: <<colour background>>\n sidebar-foreground-shadow: <<colour background>>\n tiddler-background: <<colour background>>\n tiddler-border: <<colour background>>\n tiddler-link-background: <<colour background>>\n tab-background-selected: <<colour background>>\n dropdown-tab-background-selected: <<colour tab-background-selected>>\nforeground: #657b83\n dragger-background: <<colour foreground>>\n tab-foreground: <<colour foreground>>\n tab-foreground-selected: <<colour tab-foreground>>\n sidebar-tab-foreground-selected: <<colour tab-foreground-selected>>\n sidebar-tab-foreground: <<colour tab-foreground>>\n sidebar-button-foreground: <<colour foreground>>\n sidebar-controls-foreground: <<colour foreground>>\n sidebar-foreground: <<colour foreground>>\n: base03\n: base02\n: base01\n alert-muted-foreground: <<colour base01>>\n: base00\n code-foreground: <<colour base00>>\n message-foreground: <<colour base00>>\n tag-foreground: <<colour base00>>\n: base0\n sidebar-tiddler-link-foreground: <<colour base0>>\n: base1\n muted-foreground: <<colour base1>>\n blockquote-bar: <<colour muted-foreground>>\n dropdown-border: <<colour muted-foreground>>\n sidebar-muted-foreground: <<colour muted-foreground>>\n tiddler-title-foreground: <<colour muted-foreground>>\n site-title-foreground: <<colour tiddler-title-foreground>>\n: base2\n modal-footer-background: <<colour base2>>\n page-background: <<colour base2>>\n modal-backdrop: <<colour page-background>>\n notification-background: <<colour page-background>>\n code-background: <<colour page-background>>\n code-border: <<colour code-background>>\n pre-background: <<colour page-background>>\n pre-border: <<colour pre-background>>\n sidebar-tab-background-selected: <<colour page-background>>\n table-header-background: <<colour base2>>\n tag-background: <<colour base2>>\n tiddler-editor-background: <<colour base2>>\n tiddler-info-background: <<colour base2>>\n tiddler-info-tab-background: <<colour base2>>\n tab-background: <<colour base2>>\n dropdown-tab-background: <<colour tab-background>>\n: base3\n alert-background: <<colour base3>>\n message-background: <<colour base3>>\n: yellow\n: orange\n: red\n: magenta\n alert-highlight: <<colour magenta>>\n: violet\n external-link-foreground: <<colour violet>>\n: blue\n: cyan\n: green\n: base10\n tiddler-controls-foreground: <<colour base10>>\n: violet-muted\n external-link-foreground-visited: <<colour violet-muted>>\n: blue-muted\n primary: <<colour blue-muted>>\n download-background: <<colour primary>>\n tiddler-link-foreground: <<colour primary>>\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: <<colour tab-border>>\n modal-header-border: <<colour tab-border>>\n notification-border: <<colour tab-border>>\n sidebar-tab-border: <<colour tab-border>>\n tab-border-selected: <<colour tab-border>>\n sidebar-tab-border-selected: <<colour tab-border-selected>>\ntab-divider: #d8d8d8\n sidebar-tab-divider: <<colour tab-divider>>\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"
+ },
+ "$:/palettes/SolarizedDark": {
+ "title": "$:/palettes/SolarizedDark",
+ "tags": "$:/tags/Palette",
+ "type": "application/x-tiddler-dictionary",
+ "description": "Precision dark colors for machines and people",
+ "license": "MIT, Ethan Schoonover, https://github.com/altercation/solarized/blob/master/LICENSE",
+ "name": "SolarizedDark",
+ "text": "alert-background: #073642\nalert-border: #93a1a1\nalert-highlight: #d33682\nalert-muted-foreground: #d33682\nbackground: #073642\nblockquote-bar: #d33682\nbutton-background: #073642\nbutton-border: #586e75\nbutton-foreground: #93a1a1\ncode-background: #073642\ncode-border: #586e75\ncode-foreground: #93a1a1\ndirty-indicator: inherit\ndownload-background: #859900\ndownload-foreground: #073642\ndragger-background: #073642\ndragger-foreground: #839496\ndropdown-background: #073642\ndropdown-border: #93a1a1\ndropdown-tab-background: #002b36\ndropdown-tab-background-selected: #073642\ndropzone-background: #859900\nexternal-link-background: inherit\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-foreground: #268bd2\nexternal-link-foreground-hover:\nexternal-link-foreground-visited: #268bd2\nforeground: #839496\nmessage-background: #002b36\nmessage-border: #586e75\nmessage-foreground: #839496\nmodal-backdrop: #657b83\nmodal-background: #002b36\nmodal-border: #586e75\nmodal-footer-background: #073642\nmodal-footer-border: #586e75\nmodal-header-border: #586e75\nmuted-foreground: #93a1a1\nnotification-background: #002b36\nnotification-border: #586e75\npage-background: #073642\npre-background: inherit\npre-border: #657b83\nprimary: #859900\nselect-tag-background: #002b36\nselect-tag-foreground: #839496\nsidebar-button-foreground: #93a1a1\nsidebar-controls-foreground: #93a1a1\nsidebar-controls-foreground-hover: #eee8d5\nsidebar-foreground: #93a1a1\nsidebar-foreground-shadow: transparent\nsidebar-muted-foreground: #839496\nsidebar-muted-foreground-hover: #93a1a1\nsidebar-tab-background: #002b36\nsidebar-tab-background-selected: #073642\nsidebar-tab-border: #073642\nsidebar-tab-border-selected: #839496\nsidebar-tab-divider: #002b36\nsidebar-tab-foreground: #657b83\nsidebar-tab-foreground-selected: #93a1a1\nsidebar-tiddler-link-foreground: #2aa198\nsidebar-tiddler-link-foreground-hover: #eee8d5\nsite-title-foreground: #d33682\nstatic-alert-foreground: #93a1a1\ntab-background: #073642\ntab-background-selected: #002b36\ntab-border: #586e75\ntab-border-selected: #93a1a1\ntab-divider: #93a1a1\ntab-foreground: #839496\ntab-foreground-selected: #93a1a1\ntable-border: #586e75\ntable-footer-background: #073642\ntable-header-background: #073642\ntag-background: #b58900\ntag-foreground: #002b36\ntiddler-background: #002b36\ntiddler-border: #586e75\ntiddler-controls-foreground: inherit\ntiddler-controls-foreground-hover: #d33682\ntiddler-controls-foreground-selected: #2aa198\ntiddler-editor-background: #002b36\ntiddler-editor-border: #073642\ntiddler-editor-border-image: #002b36\ntiddler-editor-fields-even: #002b36\ntiddler-editor-fields-odd: #073642\ntiddler-info-background: #073642\ntiddler-info-border: #657b83\ntiddler-info-tab-background: #002b36\ntiddler-link-background: #002b36\ntiddler-link-foreground: #2aa198\ntiddler-subtitle-foreground: #839496\ntiddler-title-foreground: #d33682\ntoolbar-cancel-button: #839496\ntoolbar-close-button: #839496\ntoolbar-delete-button: #dc322f\ntoolbar-done-button: #839496\ntoolbar-edit-button: #839496\ntoolbar-info-button: #839496\ntoolbar-new-button: #839496\ntoolbar-options-button: #839496\ntoolbar-save-button: inherit\nuntagged-background: #586e75\nvery-muted-foreground: #586e75\n"
+ },
+ "$:/palettes/SolarizedLight": {
+ "title": "$:/palettes/SolarizedLight",
+ "tags": "$:/tags/Palette",
+ "type": "application/x-tiddler-dictionary",
+ "description": "Precision colors for machines and people",
+ "license": "MIT, Ethan Schoonover, https://github.com/altercation/solarized/blob/master/LICENSE",
+ "name": "SolarizedLight",
+ "text": "alert-background: #eee8d5\nalert-border: #586e75\nalert-highlight: #d33682\nalert-muted-foreground: #d33682\nbackground: #eee8d5\nblockquote-bar: #d33682\nbutton-background: #eee8d5\nbutton-border: #93a1a1\nbutton-foreground: #586e75\ncode-background: #eee8d5\ncode-border: #93a1a1\ncode-foreground: #586e75\ndirty-indicator: inherit\ndownload-background: #859900\ndownload-foreground: #eee8d5\ndragger-background: #eee8d5\ndragger-foreground: #657b83\ndropdown-background: #eee8d5\ndropdown-border: #586e75\ndropdown-tab-background: #fdf6e3\ndropdown-tab-background-selected: #eee8d5\ndropzone-background: #859900\nexternal-link-background: inherit\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-foreground: #268bd2\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #268bd2\nforeground: #657b83\nmessage-background: #fdf6e3\nmessage-border: #93a1a1\nmessage-foreground: #657b83\nmodal-backdrop: #839496\nmodal-background: #fdf6e3\nmodal-border: #93a1a1\nmodal-footer-background: #eee8d5\nmodal-footer-border: #93a1a1\nmodal-header-border: #93a1a1\nmuted-foreground: #586e75\nnotification-background: #fdf6e3\nnotification-border: #93a1a1\npage-background: #eee8d5\npre-background: #eee8d5\npre-border: #839496\nprimary: #859900\nselect-tag-background: #fdf6e3\nselect-tag-foreground: #657b83\nsidebar-button-foreground: #586e75\nsidebar-controls-foreground: #586e75\nsidebar-controls-foreground-hover: #d33682\nsidebar-foreground: #586e75\nsidebar-foreground-shadow: transparent\nsidebar-muted-foreground: #657b83\nsidebar-muted-foreground-hover: #586e75\nsidebar-tab-background: #fdf6e3\nsidebar-tab-background-selected: #eee8d5\nsidebar-tab-border: #eee8d5\nsidebar-tab-border-selected: #657b83\nsidebar-tab-divider: #fdf6e3\nsidebar-tab-foreground: #839496\nsidebar-tab-foreground-selected: #586e75\nsidebar-tiddler-link-foreground: #2aa198\nsidebar-tiddler-link-foreground-hover: #002b36\nsite-title-foreground: #d33682\nstatic-alert-foreground: #586e75\ntab-background: #eee8d5\ntab-background-selected: #fdf6e3\ntab-border: #93a1a1\ntab-border-selected: #586e75\ntab-divider: #586e75\ntab-foreground: #657b83\ntab-foreground-selected: #586e75\ntable-border: #93a1a1\ntable-footer-background: #eee8d5\ntable-header-background: #eee8d5\ntag-background: #b58900\ntag-foreground: #fdf6e3\ntiddler-background: #fdf6e3\ntiddler-border: #93a1a1\ntiddler-controls-foreground: inherit\ntiddler-controls-foreground-hover: #d33682\ntiddler-controls-foreground-selected: #2aa198\ntiddler-editor-background: #fdf6e3\ntiddler-editor-border: #eee8d5\ntiddler-editor-border-image: #fdf6e3\ntiddler-editor-fields-even: #fdf6e3\ntiddler-editor-fields-odd: #eee8d5\ntiddler-info-background: #eee8d5\ntiddler-info-border: #839496\ntiddler-info-tab-background: #fdf6e3\ntiddler-link-background: #fdf6e3\ntiddler-link-foreground: #2aa198\ntiddler-subtitle-foreground: #657b83\ntiddler-title-foreground: #d33682\ntoolbar-cancel-button: #657b83\ntoolbar-close-button: #657b83\ntoolbar-delete-button: #dc322f\ntoolbar-done-button: #657b83\ntoolbar-edit-button: #657b83\ntoolbar-info-button: #657b83\ntoolbar-new-button: #657b83\ntoolbar-options-button: #657b83\ntoolbar-save-button: inherit\nuntagged-background: #586e75\nvery-muted-foreground: #93a1a1\n"
+ },
+ "$:/palettes/SpartanDay": {
+ "title": "$:/palettes/SpartanDay",
+ "tags": "$:/tags/Palette",
+ "type": "application/x-tiddler-dictionary",
+ "description": "Cold, spartan day colors",
+ "name": "Spartan Day",
+ "text": "alert-background: <<colour background>>\nalert-border: <<colour very-muted-foreground>>\nalert-highlight: <<colour very-muted-foreground>>\nalert-muted-foreground: <<colour muted-foreground>>\nbackground: #FAFAFA\nblockquote-bar: <<colour page-background>>\nbutton-background: transparent\nbutton-foreground: inherit\nbutton-border: <<colour tag-background>>\ncode-background: #ececec\ncode-border: #ececec\ncode-foreground: \ndirty-indicator: #c80000\ndownload-background: <<colour primary>>\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: #FFFFFF\ndropdown-border: <<colour dropdown-background>>\ndropdown-tab-background-selected: <<colour dropdown-background>>\ndropdown-tab-background: #F5F5F5\ndropzone-background: <<colour tag-background>>\nexternal-link-background-hover: transparent\nexternal-link-background-visited: transparent\nexternal-link-background: transparent\nexternal-link-foreground-hover: \nexternal-link-foreground-visited: \nexternal-link-foreground: \nforeground: rgba(0, 0, 0, 0.87)\nmessage-background: <<colour background>>\nmessage-border: <<colour very-muted-foreground>>\nmessage-foreground: rgba(0, 0, 0, 0.54)\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: <<colour very-muted-foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour very-muted-foreground>>\nmodal-header-border: <<colour very-muted-foreground>>\nmuted-foreground: rgba(0, 0, 0, 0.54)\nnotification-background: <<colour dropdown-background>>\nnotification-border: <<colour dropdown-background>>\npage-background: #f4f4f4\npre-background: #ececec\npre-border: #ececec\nprimary: #3949ab\nselect-tag-background: <<colour background>>\nselect-tag-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #aeaeae\nsidebar-controls-foreground: #c6c6c6\nsidebar-foreground-shadow: transparent\nsidebar-foreground: rgba(0, 0, 0, 0.54)\nsidebar-muted-foreground-hover: rgba(0, 0, 0, 0.54)\nsidebar-muted-foreground: rgba(0, 0, 0, 0.38)\nsidebar-tab-background-selected: <<colour page-background>>\nsidebar-tab-background: transparent\nsidebar-tab-border-selected: <<colour table-border>>\nsidebar-tab-border: transparent\nsidebar-tab-divider: <<colour table-border>>\nsidebar-tab-foreground-selected: rgba(0, 0, 0, 0.87)\nsidebar-tab-foreground: rgba(0, 0, 0, 0.54)\nsidebar-tiddler-link-foreground-hover: rgba(0, 0, 0, 0.87)\nsidebar-tiddler-link-foreground: rgba(0, 0, 0, 0.54)\nsite-title-foreground: rgba(0, 0, 0, 0.87)\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: transparent\ntab-border-selected: <<colour table-border>>\ntab-border: transparent\ntab-divider: <<colour table-border>>\ntab-foreground-selected: rgba(0, 0, 0, 0.87)\ntab-foreground: rgba(0, 0, 0, 0.54)\ntable-border: #d8d8d8\ntable-footer-background: <<colour tiddler-editor-fields-odd>>\ntable-header-background: <<colour tiddler-editor-fields-even>>\ntag-background: #ec6\ntag-foreground: <<colour button-foreground>>\ntiddler-background: <<colour background>>\ntiddler-border: #f9f9f9\ntiddler-controls-foreground-hover: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground-selected: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground: <<colour sidebar-controls-foreground>>\ntiddler-editor-background: transparent\ntiddler-editor-border-image: \ntiddler-editor-border: #e8e7e7\ntiddler-editor-fields-even: rgba(0, 0, 0, 0.1)\ntiddler-editor-fields-odd: rgba(0, 0, 0, 0.04)\ntiddler-info-background: #F5F5F5\ntiddler-info-border: #F5F5F5\ntiddler-info-tab-background: <<colour tiddler-editor-fields-odd>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour muted-foreground>>\ntiddler-title-foreground: #000000\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: <<colour very-muted-foreground>>\nvery-muted-foreground: rgba(0, 0, 0, 0.12)\n"
+ },
+ "$:/palettes/SpartanNight": {
+ "title": "$:/palettes/SpartanNight",
+ "tags": "$:/tags/Palette",
+ "type": "application/x-tiddler-dictionary",
+ "description": "Dark spartan colors",
+ "name": "Spartan Night",
+ "text": "alert-background: <<colour background>>\nalert-border: <<colour very-muted-foreground>>\nalert-highlight: <<colour very-muted-foreground>>\nalert-muted-foreground: <<colour muted-foreground>>\nbackground: #303030\nblockquote-bar: <<colour page-background>>\nbutton-background: transparent\nbutton-foreground: inherit\nbutton-border: <<colour tag-background>>\ncode-background: <<colour pre-background>>\ncode-border: <<colour pre-border>>\ncode-foreground: rgba(255, 255, 255, 0.54)\ndirty-indicator: #c80000\ndownload-background: <<colour primary>>\ndownload-foreground: <<colour foreground>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: #424242\ndropdown-border: <<colour dropdown-background>>\ndropdown-tab-background-selected: <<colour dropdown-background>>\ndropdown-tab-background: #050505\ndropzone-background: <<colour tag-background>>\nexternal-link-background-hover: transparent\nexternal-link-background-visited: transparent\nexternal-link-background: transparent\nexternal-link-foreground-hover: \nexternal-link-foreground-visited: #7c318c\nexternal-link-foreground: #9e3eb3\nforeground: rgba(255, 255, 255, 0.7)\nmessage-background: <<colour background>>\nmessage-border: <<colour very-muted-foreground>>\nmessage-foreground: rgba(255, 255, 255, 0.54)\nmodal-backdrop: <<colour page-background>>\nmodal-background: <<colour background>>\nmodal-border: <<colour very-muted-foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour background>>\nmodal-header-border: <<colour very-muted-foreground>>\nmuted-foreground: rgba(255, 255, 255, 0.54)\nnotification-background: <<colour dropdown-background>>\nnotification-border: <<colour dropdown-background>>\npage-background: #212121\npre-background: #2a2a2a\npre-border: transparent\nprimary: #5656f3\nselect-tag-background: <<colour background>>\nselect-tag-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #494949\nsidebar-controls-foreground: #5d5d5d\nsidebar-foreground-shadow: transparent\nsidebar-foreground: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground-hover: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground: rgba(255, 255, 255, 0.38)\nsidebar-tab-background-selected: <<colour page-background>>\nsidebar-tab-background: transparent\nsidebar-tab-border-selected: <<colour table-border>>\nsidebar-tab-border: transparent\nsidebar-tab-divider: <<colour table-border>>\nsidebar-tab-foreground-selected: rgba(255, 255, 255, 0.87)\nsidebar-tab-foreground: rgba(255, 255, 255, 0.54)\nsidebar-tiddler-link-foreground-hover: rgba(255, 255, 255, 0.7)\nsidebar-tiddler-link-foreground: rgba(255, 255, 255, 0.54)\nsite-title-foreground: rgba(255, 255, 255, 0.7)\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: transparent\ntab-border-selected: <<colour table-border>>\ntab-border: transparent\ntab-divider: <<colour table-border>>\ntab-foreground-selected: rgba(255, 255, 255, 0.87)\ntab-foreground: rgba(255, 255, 255, 0.54)\ntable-border: #3a3a3a\ntable-footer-background: <<colour tiddler-editor-fields-odd>>\ntable-header-background: <<colour tiddler-editor-fields-even>>\ntag-background: #ec6\ntag-foreground: <<colour button-foreground>>\ntiddler-background: <<colour background>>\ntiddler-border: rgb(55,55,55)\ntiddler-controls-foreground-hover: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground-selected: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground: <<colour sidebar-controls-foreground>>\ntiddler-editor-background: transparent\ntiddler-editor-border-image: \ntiddler-editor-border: rgba(255, 255, 255, 0.08)\ntiddler-editor-fields-even: rgba(255, 255, 255, 0.1)\ntiddler-editor-fields-odd: rgba(255, 255, 255, 0.04)\ntiddler-info-background: #454545\ntiddler-info-border: #454545\ntiddler-info-tab-background: <<colour tiddler-editor-fields-odd>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour muted-foreground>>\ntiddler-title-foreground: #FFFFFF\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: <<colour very-muted-foreground>>\nvery-muted-foreground: rgba(255, 255, 255, 0.12)\n"
+ },
+ "$:/palettes/Twilight": {
+ "title": "$:/palettes/Twilight",
+ "tags": "$:/tags/Palette",
+ "author": "Thomas Elmiger",
+ "type": "application/x-tiddler-dictionary",
+ "name": "Twilight",
+ "description": "Delightful, soft darkness.",
+ "text": "alert-background: rgb(255, 255, 102)\nalert-border: rgb(232, 232, 125)\nalert-highlight: rgb(255, 51, 51)\nalert-muted-foreground: rgb(224, 82, 82)\nbackground: rgb(38, 38, 38)\nblockquote-bar: rgba(240, 196, 117, 0.7)\nbutton-background: rgb(63, 63, 63)\nbutton-border: rgb(127, 127, 127)\nbutton-foreground: rgb(179, 179, 179)\ncode-background: rgba(0,0,0,0.03)\ncode-border: rgba(0,0,0,0.08)\ncode-foreground: rgb(255, 94, 94)\ndiff-delete-background: #ffc9c9\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #aaefad\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: rgb(255, 94, 94)\ndownload-background: #19a974\ndownload-foreground: rgb(38, 38, 38)\ndragger-background: rgb(179, 179, 179)\ndragger-foreground: rgb(38, 38, 38)\ndropdown-background: rgb(38, 38, 38)\ndropdown-border: rgb(255, 255, 255)\ndropdown-tab-background: rgba(0,0,0,.1)\ndropdown-tab-background-selected: rgba(255,255,255,1)\ndropzone-background: #9eebcf\nexternal-link-background: inherit\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-foreground: rgb(179, 179, 255)\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: rgb(153, 153, 255)\nforeground: rgb(179, 179, 179)\nmessage-background: <<colour tag-foreground>>\nmessage-border: #96ccff\nmessage-foreground: <<colour tag-background>>\nmodal-backdrop: rgb(179, 179, 179)\nmodal-background: rgb(38, 38, 38)\nmodal-border: rgba(0,0,0,.5)\nmodal-footer-background: #f4f4f4\nmodal-footer-border: rgba(0,0,0,.1)\nmodal-header-border: rgba(0,0,0,.2)\nmuted-foreground: rgb(255, 255, 255)\nnotification-background: <<colour tag-foreground>>\nnotification-border: <<colour tag-background>>\npage-background: rgb(26, 26, 26)\npre-background: rgb(25, 25, 25)\npre-border: rgba(0,0,0,.2)\nprimary: rgb(255, 201, 102)\nselect-tag-background: \nselect-tag-foreground: \nsidebar-button-foreground: rgb(179, 179, 179)\nsidebar-controls-foreground: rgb(153, 153, 153)\nsidebar-controls-foreground-hover: <<colour tiddler-controls-foreground-hover>>\nsidebar-foreground: rgb(141, 141, 141)\nsidebar-foreground-shadow: transparent\nsidebar-muted-foreground: rgba(0, 0, 0, 0.5)\nsidebar-muted-foreground-hover: rgb(141, 141, 141)\nsidebar-tab-background: rgba(141, 141, 141, 0.2)\nsidebar-tab-background-selected: rgb(26, 26, 26)\nsidebar-tab-border: rgb(127, 127, 127)\nsidebar-tab-border-selected: rgb(127, 127, 127)\nsidebar-tab-divider: rgb(127, 127, 127)\nsidebar-tab-foreground: rgb(179, 179, 179)\nsidebar-tab-foreground-selected: rgb(179, 179, 179)\nsidebar-tiddler-link-foreground: rgb(179, 179, 179)\nsidebar-tiddler-link-foreground-hover: rgb(115, 115, 115)\nsite-title-foreground: rgb(255, 201, 102)\nstatic-alert-foreground: rgba(0,0,0,.3)\ntab-background: rgba(0,0,0,0.125)\ntab-background-selected: rgb(38, 38, 38)\ntab-border: rgb(255, 201, 102)\ntab-border-selected: rgb(255, 201, 102)\ntab-divider: rgb(255, 201, 102)\ntab-foreground: rgb(179, 179, 179)\ntab-foreground-selected: rgb(179, 179, 179)\ntable-border: rgba(255,255,255,.3)\ntable-footer-background: rgba(0,0,0,.4)\ntable-header-background: rgba(0,0,0,.1)\ntag-background: rgb(255, 201, 102)\ntag-foreground: rgb(25, 25, 25)\ntiddler-background: rgb(38, 38, 38)\ntiddler-border: rgba(240, 196, 117, 0.7)\ntiddler-controls-foreground: rgb(128, 128, 128)\ntiddler-controls-foreground-hover: rgba(255, 255, 255, 0.8)\ntiddler-controls-foreground-selected: rgba(255, 255, 255, 0.9)\ntiddler-editor-background: rgb(33, 33, 33)\ntiddler-editor-border: rgb(63, 63, 63)\ntiddler-editor-border-image: rgb(25, 25, 25)\ntiddler-editor-fields-even: rgb(33, 33, 33)\ntiddler-editor-fields-odd: rgb(28, 28, 28)\ntiddler-info-background: rgb(43, 43, 43)\ntiddler-info-border: rgb(25, 25, 25)\ntiddler-info-tab-background: rgb(43, 43, 43)\ntiddler-link-background: rgb(38, 38, 38)\ntiddler-link-foreground: rgb(204, 204, 255)\ntiddler-subtitle-foreground: rgb(255, 255, 255)\ntiddler-title-foreground: rgb(255, 192, 76)\ntoolbar-cancel-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-done-button: \ntoolbar-edit-button: \ntoolbar-info-button: \ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \nuntagged-background: rgb(255, 255, 255)\nvery-muted-foreground: rgba(240, 196, 117, 0.7)\n"
+ },
+ "$:/palettes/Vanilla": {
+ "title": "$:/palettes/Vanilla",
+ "name": "Vanilla",
+ "description": "Pale and unobtrusive",
+ "tags": "$:/tags/Palette",
+ "type": "application/x-tiddler-dictionary",
+ "text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndiff-delete-background: #ffc9c9\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #aaefad\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #999999\nmodal-footer-background: #f5f5f5\nmodal-footer-border: #dddddd\nmodal-header-border: #eeeeee\nmuted-foreground: #bbb\nnotification-background: #ffffdd\nnotification-border: #999999\npage-background: #f4f4f4\npre-background: #f5f5f5\npre-border: #cccccc\nprimary: #5778d8\nselection-background:\nselection-foreground:\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\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: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: #e4e4e4\nsidebar-tab-foreground-selected:\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #999999\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ec6\ntag-foreground: #ffffff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #c0c0c0\ntiddler-title-foreground: #182955\ntoolbar-new-button:\ntoolbar-options-button:\ntoolbar-save-button:\ntoolbar-info-button:\ntoolbar-edit-button:\ntoolbar-close-button:\ntoolbar-delete-button:\ntoolbar-cancel-button:\ntoolbar-done-button:\nuntagged-background: #999999\nvery-muted-foreground: #888888\nwikilist-background: #e5e5e5\nwikilist-item: #fff\nwikilist-info: #000\nwikilist-title: #666\nwikilist-title-svg: <<colour wikilist-title>>\nwikilist-url: #aaa\nwikilist-button-open: #4fb82b\nwikilist-button-open-hover: green\nwikilist-button-reveal: #5778d8\nwikilist-button-reveal-hover: blue\nwikilist-button-remove: #d85778\nwikilist-button-remove-hover: red\nwikilist-toolbar-background: #d3d3d3\nwikilist-toolbar-foreground: #888\nwikilist-droplink-dragover: rgba(255,192,192,0.5)\nwikilist-button-background: #acacac\nwikilist-button-foreground: #000\n"
+ },
+ "$:/core/readme": {
+ "title": "$:/core/readme",
+ "text": "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"
+ },
+ "$:/library/sjcl.js/license": {
+ "title": "$:/library/sjcl.js/license",
+ "type": "text/plain",
+ "text": "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 \"AS\nIS\" 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"
+ },
+ "$:/core/templates/MOTW.html": {
+ "title": "$:/core/templates/MOTW.html",
+ "text": "\\rules only filteredtranscludeinline transcludeinline entity\n<!-- The following comment is called a MOTW comment and is necessary for the TiddlyIE Internet Explorer extension -->\n<!-- saved from url=(0021)https://tiddlywiki.com --> "
+ },
+ "$:/core/templates/alltiddlers.template.html": {
+ "title": "$:/core/templates/alltiddlers.template.html",
+ "type": "text/vnd.tiddlywiki-html",
+ "text": "<!-- This template is provided for backwards compatibility with older versions of TiddlyWiki -->\n\n<$set name=\"exportFilter\" value=\"[!is[system]sort[title]]\">\n\n{{$:/core/templates/exporters/StaticRiver}}\n\n</$set>\n"
+ },
+ "$:/core/templates/canonical-uri-external-image": {
+ "title": "$:/core/templates/canonical-uri-external-image",
+ "text": "<!--\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-->\n./images/<$view field=\"title\" format=\"doubleurlencoded\"/>"
+ },
+ "$:/core/templates/canonical-uri-external-raw": {
+ "title": "$:/core/templates/canonical-uri-external-raw",
+ "text": "<!--\n\nThis template is used to assign the ''_canonical_uri'' field to external raw files that are stored in the same directory\n\n-->\n<$view field=\"title\" format=\"doubleurlencoded\"/>"
+ },
+ "$:/core/templates/canonical-uri-external-text": {
+ "title": "$:/core/templates/canonical-uri-external-text",
+ "text": "<!--\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-->\n./text/<$view field=\"title\" format=\"doubleurlencoded\"/>.tid"
+ },
+ "$:/core/templates/css-tiddler": {
+ "title": "$:/core/templates/css-tiddler",
+ "text": "<!--\n\nThis template is used for saving CSS tiddlers as a style tag with data attributes representing the tiddler fields.\n\n-->`<style`<$fields template=' data-tiddler-$name$=\"$encoded_value$\"'></$fields>` type=\"text/css\">`<$view field=\"text\" format=\"text\" />`</style>`"
+ },
+ "$:/core/templates/exporters/CsvFile": {
+ "title": "$:/core/templates/exporters/CsvFile",
+ "tags": "$:/tags/Exporter",
+ "description": "{{$:/language/Exporters/CsvFile}}",
+ "extension": ".csv",
+ "text": "<$macrocall $name=\"csvtiddlers\" filter=<<exportFilter>> format=\"quoted-comma-sep\" $output=\"text/raw\"/>\n"
+ },
+ "$:/core/templates/exporters/JsonFile": {
+ "title": "$:/core/templates/exporters/JsonFile",
+ "tags": "$:/tags/Exporter",
+ "description": "{{$:/language/Exporters/JsonFile}}",
+ "extension": ".json",
+ "text": "<$macrocall $name=\"jsontiddlers\" filter=<<exportFilter>> $output=\"text/raw\"/>\n"
+ },
+ "$:/core/templates/exporters/StaticRiver": {
+ "title": "$:/core/templates/exporters/StaticRiver",
+ "tags": "$:/tags/Exporter",
+ "description": "{{$:/language/Exporters/StaticRiver}}",
+ "extension": ".html",
+ "text": "\\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<!doctype html>\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"{{$:/core/templates/version}}\" />\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>{{$:/core/wiki/title}}</title>\n<div id=\"styleArea\">\n{{$:/boot/boot.css||$:/core/templates/css-tiddler}}\n</div>\n<style type=\"text/css\">\n{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}\n</style>\n</head>\n<body class=\"tc-body\">\n{{$:/StaticBanner||$:/core/templates/html-tiddler}}\n<section class=\"tc-story-river tc-static-story-river\">\n{{$:/core/templates/exporters/StaticRiver/Content||$:/core/templates/html-tiddler}}\n</section>\n</body>\n</html>\n"
+ },
+ "$:/core/templates/exporters/StaticRiver/Content": {
+ "title": "$:/core/templates/exporters/StaticRiver/Content",
+ "text": "\\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<<renderContent>>\n"
+ },
+ "$:/core/templates/exporters/TidFile": {
+ "title": "$:/core/templates/exporters/TidFile",
+ "tags": "$:/tags/Exporter",
+ "description": "{{$:/language/Exporters/TidFile}}",
+ "extension": ".tid",
+ "condition": "[<count>compare:lte[1]]",
+ "text": "\\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<<renderContent>>"
+ },
+ "$:/core/save/all-external-js": {
+ "title": "$:/core/save/all-external-js",
+ "text": "\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[prefix[$:/temp/]] -[prefix[$:/HistoryList]] -[status[pending]plugin-type[import]] -[[$:/core]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$\n\\end\n{{$:/core/templates/tiddlywiki5-external-js.html}}\n"
+ },
+ "$:/core/templates/tiddlywiki5.js": {
+ "title": "$:/core/templates/tiddlywiki5.js",
+ "text": "\\rules only filteredtranscludeinline transcludeinline codeinline\n\n/*\n{{ $:/core/copyright.txt ||$:/core/templates/plain-text-tiddler}}\n`*/\n`<!--~~ Library modules ~~-->\n{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/plain-text-tiddler}}}\n<!--~~ Boot prefix ~~-->\n{{ $:/boot/bootprefix.js ||$:/core/templates/plain-text-tiddler}}\n<!--~~ Core plugin ~~-->\n{{$:/core/templates/tiddlywiki5.js/tiddlers}}\n<!--~~ Boot kernel ~~-->\n{{ $:/boot/boot.js ||$:/core/templates/plain-text-tiddler}}\n"
+ },
+ "$:/core/templates/tiddlywiki5.js/tiddlers": {
+ "title": "$:/core/templates/tiddlywiki5.js/tiddlers",
+ "text": "`\n$tw.preloadTiddlerArray(`<$text text=<<jsontiddlers \"[[$:/core]]\">>/>`);\n`\n"
+ },
+ "$:/core/templates/tiddlywiki5-external-js.html": {
+ "title": "$:/core/templates/tiddlywiki5-external-js.html",
+ "text": "\\rules only filteredtranscludeinline transcludeinline\n<!doctype html>\n{{$:/core/templates/MOTW.html}}<html lang=\"`<$text text={{{ [{$:/language}get[name]] }}}/>`\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<!--~~ Raw markup for the top of the head section ~~-->\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}}\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\"/>\n<meta name=\"application-name\" content=\"TiddlyWiki\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"{{$:/core/templates/version}}\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\" />\n<meta name=\"copyright\" content=\"{{$:/core/copyright.txt}}\" />\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>{{$:/core/wiki/title}}</title>\n<!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~-->\n\n<!--~~ Raw markup ~~-->\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</head>\n<body class=\"tc-body\">\n<!--~~ Raw markup for the top of the body section ~~-->\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}}\n<!--~~ Static styles ~~-->\n<div id=\"styleArea\">\n{{$:/boot/boot.css||$:/core/templates/css-tiddler}}\n</div>\n<!--~~ Static content for Google and browsers without JavaScript ~~-->\n<noscript>\n<div id=\"splashArea\">\n{{$:/core/templates/static.area}}\n</div>\n</noscript>\n<!--~~ Ordinary tiddlers ~~-->\n{{$:/core/templates/store.area.template.html}}\n<!--~~ Raw markup for the bottom of the body section ~~-->\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}}\n</body>\n<script src=\"%24%3A%2Fcore%2Ftemplates%2Ftiddlywiki5.js\" onerror=\"alert('Error: Cannot load tiddlywiki.js');\"></script>\n</html>\n"
+ },
+ "$:/core/templates/html-div-skinny-tiddler": {
+ "title": "$:/core/templates/html-div-skinny-tiddler",
+ "text": "<!--\n\nThis template is a variant of $:/core/templates/html-div-tiddler used for saving skinny tiddlers (with no text field)\n\n-->`<div`<$fields template=' $name$=\"$encoded_value$\"'></$fields>`>\n<pre></pre>\n</div>`\n"
+ },
+ "$:/core/templates/html-div-tiddler": {
+ "title": "$:/core/templates/html-div-tiddler",
+ "text": "<!--\n\nThis template is used for saving tiddlers as an HTML DIV tag with attributes representing the tiddler fields.\n\n-->`<div`<$fields template=' $name$=\"$encoded_value$\"'></$fields>`>\n<pre>`<$view field=\"text\" format=\"htmlencoded\" />`</pre>\n</div>`\n"
+ },
+ "$:/core/templates/html-tiddler": {
+ "title": "$:/core/templates/html-tiddler",
+ "text": "<!--\n\nThis template is used for saving tiddlers as raw HTML\n\n--><$view field=\"text\" format=\"htmlwikified\" />"
+ },
+ "$:/core/templates/javascript-tiddler": {
+ "title": "$:/core/templates/javascript-tiddler",
+ "text": "<!--\n\nThis template is used for saving JavaScript tiddlers as a script tag with data attributes representing the tiddler fields.\n\n-->`<script`<$fields template=' data-tiddler-$name$=\"$encoded_value$\"'></$fields>` type=\"text/javascript\">`<$view field=\"text\" format=\"text\" />`</script>`"
+ },
+ "$:/core/templates/json-tiddler": {
+ "title": "$:/core/templates/json-tiddler",
+ "text": "<!--\n\nThis template is used for saving tiddlers as raw JSON\n\n--><$text text=<<jsontiddler>>/>"
+ },
+ "$:/core/templates/module-tiddler": {
+ "title": "$:/core/templates/module-tiddler",
+ "text": "<!--\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-->`<script`<$fields template=' data-tiddler-$name$=\"$encoded_value$\"'></$fields>` type=\"text/javascript\" data-module=\"yes\">$tw.modules.define(\"`<$view field=\"title\" format=\"jsencoded\" />`\",\"`<$view field=\"module-type\" format=\"jsencoded\" />`\",function(module,exports,require) {`<$view field=\"text\" format=\"text\" />`});\n</script>`"
+ },
+ "$:/core/templates/plain-text-tiddler": {
+ "title": "$:/core/templates/plain-text-tiddler",
+ "text": "<$view field=\"text\" format=\"text\" />"
+ },
+ "$:/core/templates/raw-static-tiddler": {
+ "title": "$:/core/templates/raw-static-tiddler",
+ "text": "<!--\n\nThis template is used for saving tiddlers as static HTML\n\n--><$view field=\"text\" format=\"plainwikified\" />"
+ },
+ "$:/core/save/all": {
+ "title": "$:/core/save/all",
+ "text": "\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[prefix[$:/temp/]] -[prefix[$:/HistoryList]] -[status[pending]plugin-type[import]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$\n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n"
+ },
+ "$:/core/save/empty": {
+ "title": "$:/core/save/empty",
+ "text": "\\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"
+ },
+ "$:/core/save/lazy-all": {
+ "title": "$:/core/save/lazy-all",
+ "text": "\\define saveTiddlerFilter()\n[is[system]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] \n\\end\n\\define skinnySaveTiddlerFilter()\n[!is[system]]\n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n"
+ },
+ "$:/core/save/lazy-images": {
+ "title": "$:/core/save/lazy-images",
+ "text": "\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[!is[system]is[image]] +[sort[title]] \n\\end\n\\define skinnySaveTiddlerFilter()\n[is[image]]\n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n"
+ },
+ "$:/core/templates/server/static.sidebar.wikitext": {
+ "title": "$:/core/templates/server/static.sidebar.wikitext",
+ "text": "\\whitespace trim\n<div class=\"tc-sidebar-scrollable\" style=\"overflow: auto;\">\n<div class=\"tc-sidebar-header\">\n<h1 class=\"tc-site-title\">\n<$transclude tiddler=\"$:/SiteTitle\"/>\n</h1>\n<div class=\"tc-site-subtitle\">\n<$transclude tiddler=\"$:/SiteSubtitle\"/>\n</div>\n<h2>\n</h2>\n<div class=\"tc-sidebar-lists\">\n<$list filter={{$:/DefaultTiddlers}}>\n<div class=\"tc-menu-list-subitem\">\n<$link><$text text=<<currentTiddler>>/></$link>\n</div>\n</$list>\n</div>\n<!-- Currently disabled the recent list as it is unweildy when the responsive narrow view kicks in\n<h2>\n{{$:/language/SideBar/Recent/Caption}}\n</h2>\n<div class=\"tc-sidebar-lists\">\n<$macrocall $name=\"timeline\" format={{$:/language/RecentChanges/DateFormat}}/>\n</div>\n</div>\n</div>\n-->\n"
+ },
+ "$:/core/templates/server/static.tiddler.html": {
+ "title": "$:/core/templates/server/static.tiddler.html",
+ "text": "\\whitespace trim\n\\define tv-wikilink-template() $uri_encoded$\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content={{$:/core/templates/version}} />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<link rel=\"stylesheet\" href=\"%24%3A%2Fcore%2Ftemplates%2Fstatic.template.css\">\n<title><$view field=\"caption\" format=\"plainwikified\"><$view field=\"title\"/></$view>: <$view tiddler=\"$:/core/wiki/title\" format=\"plainwikified\"/></title>\n</head>\n<body class=\"tc-body\">\n<$transclude tiddler=\"$:/core/templates/server/static.sidebar.wikitext\" mode=\"inline\"/>\n<section class=\"tc-story-river\">\n<div class=\"tc-tiddler-frame\">\n<$transclude tiddler=\"$:/core/templates/server/static.tiddler.wikitext\" mode=\"inline\"/>\n</div>\n</section>\n</body>\n</html>"
+ },
+ "$:/core/templates/server/static.tiddler.wikitext": {
+ "title": "$:/core/templates/server/static.tiddler.wikitext",
+ "text": "\\whitespace trim\n<div class=\"tc-tiddler-title\">\n<div class=\"tc-titlebar\">\n<h2><$text text=<<currentTiddler>>/></h2>\n</div>\n</div>\n<div class=\"tc-subtitle\">\n<$link to={{!!modifier}}>\n<$view field=\"modifier\"/>\n</$link> <$view field=\"modified\" format=\"date\" template={{$:/language/Tiddler/DateFormat}}/>\n</div>\n<div class=\"tc-tags-wrapper\">\n<$list filter=\"[all[current]tags[]sort[title]]\">\n<a href={{{ [<currentTiddler>encodeuricomponent[]] }}}>\n<$macrocall $name=\"tag-pill\" tag=<<currentTiddler>>/>\n</a>\n</$list>\n</div>\n<div class=\"tc-tiddler-body\">\n<$transclude mode=\"block\"/>\n</div>\n"
+ },
+ "$:/core/templates/single.tiddler.window": {
+ "title": "$:/core/templates/single.tiddler.window",
+ "text": "\\whitespace trim\n\\define containerClasses()\ntc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$\n\\end\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n<$vars\n\ttv-config-toolbar-icons={{$:/config/Toolbar/Icons}}\n\ttv-config-toolbar-text={{$:/config/Toolbar/Text}}\n\ttv-config-toolbar-class={{$:/config/Toolbar/ButtonClass}}\n\ttv-show-missing-links={{$:/config/MissingLinks}}\n\tstoryviewTitle={{$:/view}}\n\tlanguageTitle={{{ [{$:/language}get[name]] }}}>\n\n<div class=<<containerClasses>>>\n\n<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\">\n\n<$transclude mode=\"block\"/>\n\n</$navigator>\n\n</div>\n\n</$vars>\n"
+ },
+ "$:/core/templates/split-recipe": {
+ "title": "$:/core/templates/split-recipe",
+ "text": "<$list filter=\"[!is[system]]\">\ntiddler: <$view field=\"title\" format=\"urlencoded\"/>.tid\n</$list>\n"
+ },
+ "$:/core/templates/static-tiddler": {
+ "title": "$:/core/templates/static-tiddler",
+ "text": "<a name=<<currentTiddler>>>\n<$transclude tiddler=\"$:/core/ui/ViewTemplate\"/>\n</a>"
+ },
+ "$:/core/templates/static.area": {
+ "title": "$:/core/templates/static.area",
+ "text": "<$reveal type=\"nomatch\" state=\"$:/isEncrypted\" text=\"yes\">\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</$reveal>\n<$reveal type=\"match\" state=\"$:/isEncrypted\" text=\"yes\">\nThis file contains an encrypted ~TiddlyWiki. Enable ~JavaScript and enter the decryption password when prompted.\n</$reveal>\n<!-- ensure splash screen isn't shown when JS is disabled -->\n`<style>\n.tc-remove-when-wiki-loaded {display: none;}\n</style>`\n"
+ },
+ "$:/core/templates/static.content": {
+ "title": "$:/core/templates/static.content",
+ "text": "<!-- For Google, and people without JavaScript-->\nThis [[TiddlyWiki|https://tiddlywiki.com]] contains the following tiddlers:\n\n<ul>\n<$list filter=<<saveTiddlerFilter>>>\n<li><$view field=\"title\" format=\"text\"></$view></li>\n</$list>\n</ul>\n"
+ },
+ "$:/core/templates/static.template.css": {
+ "title": "$:/core/templates/static.template.css",
+ "text": "{{$:/boot/boot.css||$:/core/templates/plain-text-tiddler}}\n\n{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}\n"
+ },
+ "$:/core/templates/static.template.html": {
+ "title": "$:/core/templates/static.template.html",
+ "type": "text/vnd.tiddlywiki-html",
+ "text": "\\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<!doctype html>\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"{{$:/core/templates/version}}\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>{{$:/core/wiki/title}}</title>\n<div id=\"styleArea\">\n{{$:/boot/boot.css||$:/core/templates/css-tiddler}}\n</div>\n<style type=\"text/css\">\n{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}\n</style>\n</head>\n<body class=\"tc-body\">\n{{$:/StaticBanner||$:/core/templates/html-tiddler}}\n{{$:/core/ui/PageTemplate||$:/core/templates/html-tiddler}}\n</body>\n</html>\n"
+ },
+ "$:/core/templates/static.tiddler.html": {
+ "title": "$:/core/templates/static.tiddler.html",
+ "text": "\\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`<!doctype html>\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"`{{$:/core/templates/version}}`\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<link rel=\"stylesheet\" href=\"static.css\">\n<title>`<$view field=\"caption\"><$view field=\"title\"/></$view>: {{$:/core/wiki/title}}`</title>\n</head>\n<body class=\"tc-body\">\n`{{$:/StaticBanner||$:/core/templates/html-tiddler}}`\n<section class=\"tc-story-river tc-static-story-river\">\n`<$view tiddler=\"$:/core/ui/ViewTemplate\" format=\"htmlwikified\"/>`\n</section>\n</body>\n</html>\n`\n"
+ },
+ "$:/core/templates/store.area.template.html": {
+ "title": "$:/core/templates/store.area.template.html",
+ "text": "<$reveal type=\"nomatch\" state=\"$:/isEncrypted\" text=\"yes\">\n`<div id=\"storeArea\" style=\"display:none;\">`\n<$list filter=<<saveTiddlerFilter>> template=\"$:/core/templates/html-div-tiddler\"/>\n<$list filter={{{ [<skinnySaveTiddlerFilter>] }}} template=\"$:/core/templates/html-div-skinny-tiddler\"/>\n`</div>`\n</$reveal>\n<$reveal type=\"match\" state=\"$:/isEncrypted\" text=\"yes\">\n`<!--~~ Encrypted tiddlers ~~-->`\n`<pre id=\"encryptedStoreArea\" type=\"text/plain\" style=\"display:none;\">`\n<$encrypt filter=<<saveTiddlerFilter>>/>\n`</pre>`\n</$reveal>"
+ },
+ "$:/core/templates/tid-tiddler": {
+ "title": "$:/core/templates/tid-tiddler",
+ "text": "<!--\n\nThis template is used for saving tiddlers in TiddlyWeb *.tid format\n\n--><$fields exclude='text bag' template='$name$: $value$\n'></$fields>`\n`<$view field=\"text\" format=\"text\" />"
+ },
+ "$:/core/templates/tiddler-metadata": {
+ "title": "$:/core/templates/tiddler-metadata",
+ "text": "<!--\n\nThis template is used for saving tiddler metadata *.meta files\n\n--><$fields exclude='text bag' template='$name$: $value$\n'></$fields>"
+ },
+ "$:/core/templates/tiddlywiki5.html": {
+ "title": "$:/core/templates/tiddlywiki5.html",
+ "text": "<$set name=\"saveTiddlerAndShadowsFilter\" filter=\"[subfilter<saveTiddlerFilter>] [subfilter<saveTiddlerFilter>plugintiddlers[]]\">\n`<!doctype html>\n`{{$:/core/templates/MOTW.html}}`<html lang=\"`<$text text={{{ [{$:/language}get[name]] }}}/>`\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<!--~~ Raw markup for the top of the head section ~~-->\n`{{{ [<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}}`\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\"/>\n<meta name=\"application-name\" content=\"TiddlyWiki\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"`{{$:/core/templates/version}}`\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\" />\n<meta name=\"copyright\" content=\"`{{$:/core/copyright.txt}}`\" />\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>`{{$:/core/wiki/title}}`</title>\n<!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~-->\n\n<!--~~ Raw markup ~~-->\n`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/core/wiki/rawmarkup]] ||$:/core/templates/plain-text-tiddler}}}\n{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkup]] ||$:/core/templates/plain-text-tiddler}}}\n{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified]] ||$:/core/templates/raw-static-tiddler}}}`\n</head>\n<body class=\"tc-body\">\n<!--~~ Raw markup for the top of the body section ~~-->\n`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}}`\n<!--~~ Static styles ~~-->\n<div id=\"styleArea\">\n`{{$:/boot/boot.css||$:/core/templates/css-tiddler}}`\n</div>\n<!--~~ Static content for Google and browsers without JavaScript ~~-->\n<noscript>\n<div id=\"splashArea\">\n`{{$:/core/templates/static.area}}`\n</div>\n</noscript>\n<!--~~ Ordinary tiddlers ~~-->\n`{{$:/core/templates/store.area.template.html}}`\n<!--~~ Library modules ~~-->\n<div id=\"libraryModules\" style=\"display:none;\">\n`{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/javascript-tiddler}}}`\n</div>\n<!--~~ Boot kernel prologue ~~-->\n<div id=\"bootKernelPrefix\" style=\"display:none;\">\n`{{ $:/boot/bootprefix.js ||$:/core/templates/javascript-tiddler}}`\n</div>\n<!--~~ Boot kernel ~~-->\n<div id=\"bootKernel\" style=\"display:none;\">\n`{{ $:/boot/boot.js ||$:/core/templates/javascript-tiddler}}`\n</div>\n<!--~~ Raw markup for the bottom of the body section ~~-->\n`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}}`\n</body>\n</html>`\n"
+ },
+ "$:/core/templates/version": {
+ "title": "$:/core/templates/version",
+ "text": "<<version>>"
+ },
+ "$:/core/templates/wikified-tiddler": {
+ "title": "$:/core/templates/wikified-tiddler",
+ "text": "<$transclude />"
+ },
+ "$:/core/ui/AboveStory/tw2-plugin-check": {
+ "title": "$:/core/ui/AboveStory/tw2-plugin-check",
+ "tags": "$:/tags/AboveStory",
+ "text": "\\define lingo-base() $:/language/AboveStory/ClassicPlugin/\n<$list filter=\"[all[system+tiddlers]tag[systemConfig]limit[1]]\">\n\n<div class=\"tc-message-box\">\n\n<<lingo Warning>>\n\n<ul>\n\n<$list filter=\"[all[system+tiddlers]tag[systemConfig]]\">\n\n<li>\n\n<$link><$view field=\"title\"/></$link>\n\n</li>\n\n</$list>\n\n</ul>\n\n</div>\n\n</$list>\n"
+ },
+ "$:/core/ui/Actions/new-image": {
+ "title": "$:/core/ui/Actions/new-image",
+ "tags": "$:/tags/Actions",
+ "description": "create a new image tiddler",
+ "text": "\\define get-type()\nimage/$(imageType)$\n\\end\n\\define get-tags() $(textFieldTags)$ $(tagsFieldTags)$\n<$vars imageType={{$:/config/NewImageType}} textFieldTags={{$:/config/NewJournal/Tags}} tagsFieldTags={{$:/config/NewJournal/Tags!!tags}}>\n<$action-sendmessage $message=\"tm-new-tiddler\" type=<<get-type>> tags=<<get-tags>>/>\n</$vars>\n"
+ },
+ "$:/core/ui/Actions/new-journal": {
+ "title": "$:/core/ui/Actions/new-journal",
+ "tags": "$:/tags/Actions",
+ "description": "create a new journal tiddler",
+ "text": "\\define get-tags() $(textFieldTags)$ $(tagsFieldTags)$\n<$vars journalTitleTemplate={{$:/config/NewJournal/Title}} textFieldTags={{$:/config/NewJournal/Tags}} tagsFieldTags={{$:/config/NewJournal/Tags!!tags}} journalText={{$:/config/NewJournal/Text}}>\n<$wikify name=\"journalTitle\" text=\"\"\"<$macrocall $name=\"now\" format=<<journalTitleTemplate>>/>\"\"\">\n<$reveal type=\"nomatch\" state=<<journalTitle>> text=\"\">\n<$action-sendmessage $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<get-tags>> text={{{ [<journalTitle>get[]] }}}/>\n</$reveal>\n<$reveal type=\"match\" state=<<journalTitle>> text=\"\">\n<$action-sendmessage $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<get-tags>> text=<<journalText>>/>\n</$reveal>\n</$wikify>\n</$vars>\n"
+ },
+ "$:/core/ui/Actions/new-tiddler": {
+ "title": "$:/core/ui/Actions/new-tiddler",
+ "tags": "$:/tags/Actions",
+ "description": "create a new empty tiddler",
+ "text": "\\define get-tags() $(textFieldTags)$ $(tagsFieldTags)$\n<$vars textFieldTags={{$:/config/NewTiddler/Tags}} tagsFieldTags={{$:/config/NewTiddler/Tags!!tags}}>\n<$action-sendmessage $message=\"tm-new-tiddler\" tags=<<get-tags>>/>\n</$vars>\n"
+ },
+ "$:/core/ui/AdvancedSearch/Filter": {
+ "title": "$:/core/ui/AdvancedSearch/Filter",
+ "tags": "$:/tags/AdvancedSearch",
+ "caption": "{{$:/language/Search/Filter/Caption}}",
+ "text": "\\define lingo-base() $:/language/Search/\n\\define set-next-input-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab--1498284803\" tag=\"$:/tags/AdvancedSearch\" beforeafter=\"$beforeafter$\" defaultState=\"$:/core/ui/AdvancedSearch/System\" actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define cancel-search-actions() <$list filter=\"[{$:/temp/advancedsearch/input}!match{$:/temp/advancedsearch}]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\" />\"\"\"><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text={{$:/temp/advancedsearch}}/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/></$list>\n\n\\define input-accept-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\"\"\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\n\n\\define input-accept-variant-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\"\"\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\n\n<<lingo Filter/Hint>>\n\n<div class=\"tc-search tc-advanced-search\">\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">>>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=\"$:/temp/advancedsearch/input\" storeTitle=\"$:/temp/advancedsearch\" \n\t\trefreshTitle=\"$:/temp/advancedsearch/refresh\" selectionStateTitle=\"$:/temp/advancedsearch/selected-item\" type=\"search\" \n\t\ttag=\"input\" focus={{$:/config/Search/AutoFocus}} configTiddlerFilter=\"[[$:/temp/advancedsearch]]\" firstSearchFilterField=\"text\" \n\t\tinputAcceptActions=<<input-accept-actions>> inputAcceptVariantActions=<<input-accept-variant-actions>> \n\t\tinputCancelActions=<<cancel-search-actions>>/>\n</$keyboard>\n</$keyboard>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch/FilterButton]!has[draft.of]]\"><$transclude/></$list>\n</div>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$set name=\"resultCount\" value=\"\"\"<$count filter={{$:/temp/advancedsearch}}/>\"\"\">\n<div class=\"tc-search-results\">\n<<lingo Filter/Matches>>\n<$list filter={{$:/temp/advancedsearch}}>\n<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}>\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</span>\n</$list>\n</div>\n</$set>\n</$reveal>\n"
+ },
+ "$:/core/ui/AdvancedSearch/Filter/FilterButtons/clear": {
+ "title": "$:/core/ui/AdvancedSearch/Filter/FilterButtons/clear",
+ "tags": "$:/tags/AdvancedSearch/FilterButton",
+ "text": "<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<<cancel-search-actions>>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\".tc-advanced-search input\"\"\" />\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n"
+ },
+ "$:/core/ui/AdvancedSearch/Filter/FilterButtons/delete": {
+ "title": "$:/core/ui/AdvancedSearch/Filter/FilterButtons/delete",
+ "tags": "$:/tags/AdvancedSearch/FilterButton",
+ "text": "<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button popup=<<qualify \"$:/state/filterDeleteDropdown\">> class=\"tc-btn-invisible\">\n{{$:/core/images/delete-button}}\n</$button>\n</$reveal>\n\n<$reveal state=<<qualify \"$:/state/filterDeleteDropdown\">> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n<div class=\"tc-block-dropdown-wrapper\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<div class=\"tc-dropdown-item-plain\">\n<$set name=\"resultCount\" value=\"\"\"<$count filter={{$:/temp/advancedsearch}}/>\"\"\">\nAre you sure you wish to delete <<resultCount>> tiddler(s)?\n</$set>\n</div>\n<div class=\"tc-dropdown-item-plain\">\n<$button class=\"tc-btn\">\n<$action-deletetiddler $filter={{$:/temp/advancedsearch}}/>\nDelete these tiddlers\n</$button>\n</div>\n</div>\n</div>\n</$reveal>\n"
+ },
+ "$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown": {
+ "title": "$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown",
+ "tags": "$:/tags/AdvancedSearch/FilterButton",
+ "text": "<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/filterDropdown\">> class=\"tc-btn-invisible\">\n{{$:/core/images/down-arrow}}\n</$button>\n</span>\n\n<$reveal state=<<qualify \"$:/state/filterDropdown\">> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$linkcatcher actions=\"\"\"<$action-setfield $tiddler=\"$:/temp/advancedsearch\" text=<<navigateTo>>/><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text=<<navigateTo>>/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/><$action-sendmessage $message=\"tm-focus-selector\" $param='.tc-advanced-search input' />\"\"\">\n<div class=\"tc-block-dropdown-wrapper\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Filter]]\"><$link to={{!!filter}}><$transclude field=\"description\"/></$link>\n</$list>\n</div>\n</div>\n</$linkcatcher>\n</$set>\n</$reveal>\n"
+ },
+ "$:/core/ui/AdvancedSearch/Filter/FilterButtons/export": {
+ "title": "$:/core/ui/AdvancedSearch/Filter/FilterButtons/export",
+ "tags": "$:/tags/AdvancedSearch/FilterButton",
+ "text": "<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$macrocall $name=\"exportButton\" exportFilter={{$:/temp/advancedsearch}} lingoBase=\"$:/language/Buttons/ExportTiddlers/\"/>\n</$reveal>\n"
+ },
+ "$:/core/ui/AdvancedSearch/Shadows": {
+ "title": "$:/core/ui/AdvancedSearch/Shadows",
+ "tags": "$:/tags/AdvancedSearch",
+ "caption": "{{$:/language/Search/Shadows/Caption}}",
+ "first-search-filter": "[all[shadows]search<userInput>sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]]",
+ "text": "\\define lingo-base() $:/language/Search/\n\n\\define set-next-input-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab--1498284803\" tag=\"$:/tags/AdvancedSearch\" beforeafter=\"$beforeafter$\" defaultState=\"$:/core/ui/AdvancedSearch/System\" actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define cancel-search-actions() <$list filter=\"[{$:/temp/advancedsearch}!match{$:/temp/advancedsearch/input}]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\" />\"\"\"><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text={{$:/temp/advancedsearch}}/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/></$list><$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\".tc-advanced-search input\"\"\"/>\n\n\\define input-accept-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\"\"\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\n\n\\define input-accept-variant-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\"\"\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\n\n<<lingo Shadows/Hint>>\n\n<div class=\"tc-search\">\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">>>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=\"$:/temp/advancedsearch/input\" storeTitle=\"$:/temp/advancedsearch\"\n\t\trefreshTitle=\"$:/temp/advancedsearch/refresh\" selectionStateTitle=\"$:/temp/advancedsearch/selected-item\" type=\"search\"\n\t\ttag=\"input\" focus={{$:/config/Search/AutoFocus}} configTiddlerFilter=\"[[$:/core/ui/AdvancedSearch/Shadows]]\"\n\t\tinputCancelActions=<<cancel-search-actions>> inputAcceptActions=<<input-accept-actions>> \n\t\tinputAcceptVariantActions=<<input-accept-variant-actions>> filterMinLength={{$:/config/Search/MinLength}}/>\n</$keyboard>\n</$keyboard>\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<<cancel-search-actions>>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[all[shadows]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]]\"/>\"\"\">\n\n<div class=\"tc-search-results\">\n\n<<lingo Shadows/Matches>>\n\n<$list filter=\"[all[shadows]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]]\">\n<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}>\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</span>\n</$list>\n\n</div>\n\n</$set>\n\n</$list>\n\n</$reveal>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"match\" text=\"\">\n\n</$reveal>\n"
+ },
+ "$:/core/ui/AdvancedSearch/Standard": {
+ "title": "$:/core/ui/AdvancedSearch/Standard",
+ "tags": "$:/tags/AdvancedSearch",
+ "caption": "{{$:/language/Search/Standard/Caption}}",
+ "text": "\\define lingo-base() $:/language/Search/\n\\define set-next-input-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab--1498284803\" tag=\"$:/tags/AdvancedSearch\" beforeafter=\"$beforeafter$\" defaultState=\"$:/core/ui/AdvancedSearch/System\" actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define next-search-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab/search-results/advancedsearch\" tag=\"$:/tags/SearchResults\" beforeafter=\"$beforeafter$\" defaultState={{$:/config/SearchResults/Default}} actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/standard/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define cancel-search-actions() <$list filter=\"[{$:/temp/advancedsearch}!match{$:/temp/advancedsearch/input}]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\" />\"\"\"><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text={{$:/temp/advancedsearch}}/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/></$list><$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\".tc-advanced-search input\"\"\"/>\n\n\\define input-accept-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\"\"\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\n\n\\define input-accept-variant-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\"\"\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\n\n<<lingo Standard/Hint>>\n\n<div class=\"tc-search\">\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">>>\n<$keyboard key=\"shift-alt-Right\" actions=<<next-search-tab>>>\n<$keyboard key=\"shift-alt-Left\" actions=<<next-search-tab \"before\">>>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=\"$:/temp/advancedsearch/input\" storeTitle=\"$:/temp/advancedsearch\"\n\t\trefreshTitle=\"$:/temp/advancedsearch/refresh\" selectionStateTitle=\"$:/temp/advancedsearch/selected-item\" type=\"search\"\n\t\ttag=\"input\" focus={{$:/config/Search/AutoFocus}} inputCancelActions=<<cancel-search-actions>> \n\t\tinputAcceptActions=<<input-accept-actions>> inputAcceptVariantActions=<<input-accept-variant-actions>> \n\t\tconfigTiddlerFilter=\"[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]\"\n\t\tfilterMinLength={{$:/config/Search/MinLength}}/>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<<cancel-search-actions>>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n<$vars userInput={{{ [[$:/temp/advancedsearch]get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}} searchListState=\"$:/temp/advancedsearch/selected-item\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\" emptyMessage=\"\"\"\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\">\n<$transclude/>\n</$list>\n\"\"\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\" default={{$:/config/SearchResults/Default}} actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/standard/currentTab\" text=<<currentTab>>/>\"\"\" explicitState=\"$:/state/tab/search-results/advancedsearch\" />\n</$list>\n</$vars>\n</$list>\n</$reveal>\n"
+ },
+ "$:/core/ui/AdvancedSearch/System": {
+ "title": "$:/core/ui/AdvancedSearch/System",
+ "tags": "$:/tags/AdvancedSearch",
+ "caption": "{{$:/language/Search/System/Caption}}",
+ "first-search-filter": "[is[system]search<userInput>sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]",
+ "text": "\\define lingo-base() $:/language/Search/\n\\define set-next-input-tab(beforeafter:\"after\",stateTitle,tag,defaultState,currentTabTiddler) <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab--1498284803\" tag=\"$:/tags/AdvancedSearch\" beforeafter=\"$beforeafter$\" defaultState=\"$:/core/ui/AdvancedSearch/System\" actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define cancel-search-actions() <$list filter=\"[{$:/temp/advancedsearch}!match{$:/temp/advancedsearch/input}]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\" />\"\"\"><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text={{$:/temp/advancedsearch}}/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/></$list><$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\".tc-advanced-search input\"\"\"/>\n\n\\define input-accept-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\"\"\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\n\n\\define input-accept-variant-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\"\"\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\n\n<<lingo System/Hint>>\n\n<div class=\"tc-search\">\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">>>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=\"$:/temp/advancedsearch/input\" storeTitle=\"$:/temp/advancedsearch\"\n\t\trefreshTitle=\"$:/temp/advancedsearch/refresh\" selectionStateTitle=\"$:/temp/advancedsearch/selected-item\"\n\t\ttype=\"search\" tag=\"input\" focus={{$:/config/Search/AutoFocus}} configTiddlerFilter=\"[[$:/core/ui/AdvancedSearch/System]]\"\n\t\tinputCancelActions=<<cancel-search-actions>> inputAcceptActions=<<input-accept-actions>> \n\t\tinputAcceptVariantActions=<<input-accept-variant-actions>> filterMinLength={{$:/config/Search/MinLength}}/>\n</$keyboard>\n</$keyboard>\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<<cancel-search-actions>>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]\"/>\"\"\">\n\n<div class=\"tc-search-results\">\n\n<<lingo System/Matches>>\n\n<$list filter=\"[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]\">\n<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}>\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</span>\n</$list>\n\n</div>\n\n</$set>\n\n</$list>\n\n</$reveal>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"match\" text=\"\">\n\n</$reveal>\n"
+ },
+ "$:/AdvancedSearch": {
+ "title": "$:/AdvancedSearch",
+ "icon": "$:/core/images/advanced-search-button",
+ "color": "#bbb",
+ "text": "<div class=\"tc-advanced-search\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch]!has[draft.of]]\" default=\"$:/core/ui/AdvancedSearch/System\" actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/currentTab\" text=<<currentTab>>/>\"\"\" explicitState=\"$:/state/tab--1498284803\"/>\n</div>\n"
+ },
+ "$:/core/ui/AlertTemplate": {
+ "title": "$:/core/ui/AlertTemplate",
+ "text": "<div class=\"tc-alert\">\n<div class=\"tc-alert-toolbar\">\n<$button class=\"tc-btn-invisible\"><$action-deletetiddler $tiddler=<<currentTiddler>>/>{{$:/core/images/cancel-button}}</$button>\n</div>\n<div class=\"tc-alert-subtitle\">\n<$wikify name=\"format\" text=<<lingo Tiddler/DateFormat>>>\n<$view field=\"component\"/> - <$view field=\"modified\" format=\"date\" template=<<format>>/> <$reveal type=\"nomatch\" state=\"!!count\" text=\"\"><span class=\"tc-alert-highlight\">({{$:/language/Count}}: <$view field=\"count\"/>)</span></$reveal>\n</$wikify>\n</div>\n<div class=\"tc-alert-body\">\n\n<$transclude/>\n\n</div>\n</div>\n"
+ },
+ "$:/core/ui/BinaryWarning": {
+ "title": "$:/core/ui/BinaryWarning",
+ "text": "\\define lingo-base() $:/language/BinaryWarning/\n<<lingo Prompt>>\n"
+ },
+ "$:/core/ui/Components/plugin-info": {
+ "title": "$:/core/ui/Components/plugin-info",
+ "text": "\\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<div class=\"tc-plugin-info-chunk tc-plugin-info-toggle\">\n<$reveal type=\"nomatch\" state=<<popup-state>> text=\"yes\" default=\"\"\"$default-popup-state$\"\"\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"yes\">\n{{$:/core/images/chevron-right}}\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<popup-state>> text=\"yes\" default=\"\"\"$default-popup-state$\"\"\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"no\">\n{{$:/core/images/chevron-down}}\n</$button>\n</$reveal>\n</div>\n<div class=\"tc-plugin-info-chunk tc-plugin-info-icon\">\n<$transclude tiddler=<<currentTiddler>> subtiddler=<<plugin-icon-title>>>\n<$transclude tiddler=\"$:/core/images/plugin-generic-$type$\"/>\n</$transclude>\n</div>\n<div class=\"tc-plugin-info-chunk tc-plugin-info-description\">\n<h1>\n''<$text text={{{ [<currentTiddler>get[name]] ~[<currentTiddler>split[/]last[1]] }}}/>'': <$view field=\"description\"><$view field=\"title\"/></$view> $disabledMessage$\n</h1>\n<h2>\n<$view field=\"title\"/>\n</h2>\n<h2>\n<div><em><$view field=\"version\"/></em></div>\n</h2>\n</div>\n\\end\n\n\\define plugin-info(type,default-popup-state)\n<$set name=\"popup-state\" value=<<popup-state-macro>>>\n<$reveal type=\"nomatch\" state=<<plugin-disable-title>> text=\"yes\">\n<$link to={{!!title}} class=\"tc-plugin-info\">\n<<plugin-table-body type:\"$type$\" default-popup-state:\"\"\"$default-popup-state$\"\"\">>\n</$link>\n</$reveal>\n<$reveal type=\"match\" state=<<plugin-disable-title>> text=\"yes\">\n<$link to={{!!title}} class=\"tc-plugin-info tc-plugin-info-disabled\">\n<<plugin-table-body type:\"$type$\" default-popup-state:\"\"\"$default-popup-state$\"\"\" disabledMessage:\"<$macrocall $name='lingo' title='Disabled/Status'/>\">>\n</$link>\n</$reveal>\n<$reveal type=\"match\" text=\"yes\" state=<<popup-state>> default=\"\"\"$default-popup-state$\"\"\">\n<div class=\"tc-plugin-info-dropdown\">\n<div class=\"tc-plugin-info-dropdown-body\">\n<$list filter=\"[all[current]] -[[$:/core]]\">\n<div style=\"float:right;\">\n<$reveal type=\"nomatch\" state=<<plugin-disable-title>> text=\"yes\">\n<$button set=<<plugin-disable-title>> setTo=\"yes\" tooltip={{$:/language/ControlPanel/Plugins/Disable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Disable/Caption}}>\n<<lingo Disable/Caption>>\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<plugin-disable-title>> text=\"yes\">\n<$button set=<<plugin-disable-title>> setTo=\"no\" tooltip={{$:/language/ControlPanel/Plugins/Enable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Enable/Caption}}>\n<<lingo Enable/Caption>>\n</$button>\n</$reveal>\n</div>\n</$list>\n<$set name=\"tabsList\" filter=\"[<currentTiddler>list[]] contents\">\n<$macrocall $name=\"tabs\" state=<<tabs-state-macro>> tabsList=<<tabsList>> default={{{ [enlist<tabsList>] }}} template=\"$:/core/ui/PluginInfo\"/>\n</$set>\n</div>\n</div>\n</$reveal>\n</$set>\n\\end\n\n<$macrocall $name=\"plugin-info\" type=<<plugin-type>> default-popup-state=<<default-popup-state>>/>\n"
+ },
+ "$:/core/ui/Components/tag-link": {
+ "title": "$:/core/ui/Components/tag-link",
+ "text": "<$link>\n<$set name=\"backgroundColor\" value={{!!color}}>\n<span style=<<tag-styles>> class=\"tc-tag-label\">\n<$view field=\"title\" format=\"text\"/>\n</span>\n</$set>\n</$link>"
+ },
+ "$:/core/ui/ControlPanel/Advanced": {
+ "title": "$:/core/ui/ControlPanel/Advanced",
+ "tags": "$:/tags/ControlPanel/Info",
+ "caption": "{{$:/language/ControlPanel/Advanced/Caption}}",
+ "text": "{{$:/language/ControlPanel/Advanced/Hint}}\n\n<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Advanced]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/TiddlerFields\" explicitState=\"$:/state/tab--959111941\"/>\n</div>\n"
+ },
+ "$:/core/ui/ControlPanel/Appearance": {
+ "title": "$:/core/ui/ControlPanel/Appearance",
+ "tags": "$:/tags/ControlPanel",
+ "caption": "{{$:/language/ControlPanel/Appearance/Caption}}",
+ "text": "{{$:/language/ControlPanel/Appearance/Hint}}\n\n<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Appearance]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Theme\" explicitState=\"$:/state/tab--1963855381\"/>\n</div>\n"
+ },
+ "$:/core/ui/ControlPanel/Basics": {
+ "title": "$:/core/ui/ControlPanel/Basics",
+ "tags": "$:/tags/ControlPanel/Info",
+ "caption": "{{$:/language/ControlPanel/Basics/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Basics/\n\n\\define show-filter-count(filter)\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" $value=\"\"\"$filter$\"\"\"/>\n<$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" $value=\"\"\"$filter$\"\"\"/>\n<$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/>\n<$action-setfield $tiddler=\"$:/state/tab--1498284803\" $value=\"$:/core/ui/AdvancedSearch/Filter\"/>\n<$action-navigate $to=\"$:/AdvancedSearch\"/>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=\".tc-advanced-search input\"/>\n''<$count filter=\"\"\"$filter$\"\"\"/>''\n{{$:/core/images/advanced-search-button}}\n</$button>\n\\end\n\n|<<lingo Version/Prompt>> |''<<version>>'' |\n|<$link to=\"$:/SiteTitle\"><<lingo Title/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteTitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/SiteSubtitle\"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteSubtitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/status/UserName\"><<lingo Username/Prompt>></$link> |<$edit-text tiddler=\"$:/status/UserName\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/config/AnimationDuration\"><<lingo AnimDuration/Prompt>></$link> |<$edit-text tiddler=\"$:/config/AnimationDuration\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/DefaultTiddlers\"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit tag=\"textarea\" tiddler=\"$:/DefaultTiddlers\" class=\"tc-edit-texteditor\"/><br>//<<lingo DefaultTiddlers/BottomHint>>// |\n|<$link to=\"$:/language/DefaultNewTiddlerTitle\"><<lingo NewTiddler/Title/Prompt>></$link> |<$edit-text tiddler=\"$:/language/DefaultNewTiddlerTitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/config/NewJournal/Title\"><<lingo NewJournal/Title/Prompt>></$link> |<$edit-text tiddler=\"$:/config/NewJournal/Title\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/config/NewJournal/Text\"><<lingo NewJournal/Text/Prompt>></$link> |<$edit tiddler=\"$:/config/NewJournal/Text\" tag=\"textarea\" class=\"tc-edit-texteditor\" default=\"\"/> |\n|<$link to=\"$:/config/NewTiddler/Tags\"><<lingo NewTiddler/Tags/Prompt>></$link> |<$vars currentTiddler=\"$:/config/NewTiddler/Tags\" tagField=\"text\">{{||$:/core/ui/EditTemplate/tags}}<$list filter=\"[<currentTiddler>tags[]] +[limit[1]]\" variable=\"ignore\"><$button tooltip={{$:/language/ControlPanel/Basics/RemoveTags/Hint}}><<lingo RemoveTags>><$action-listops $tiddler=<<currentTiddler>> $field=\"text\" $subfilter={{{ [<currentTiddler>get[tags]] }}}/><$action-setfield $tiddler=<<currentTiddler>> tags=\"\"/></$button></$list></$vars> |\n|<$link to=\"$:/config/NewJournal/Tags\"><<lingo NewJournal/Tags/Prompt>></$link> |<$vars currentTiddler=\"$:/config/NewJournal/Tags\" tagField=\"text\">{{||$:/core/ui/EditTemplate/tags}}<$list filter=\"[<currentTiddler>tags[]] +[limit[1]]\" variable=\"ignore\"><$button tooltip={{$:/language/ControlPanel/Basics/RemoveTags/Hint}}><<lingo RemoveTags>><$action-listops $tiddler=<<currentTiddler>> $field=\"text\" $subfilter={{{ [<currentTiddler>get[tags]] }}}/><$action-setfield $tiddler=<<currentTiddler>> tags=\"\"/></$button></$list></$vars> |\n|<$link to=\"$:/config/AutoFocus\"><<lingo AutoFocus/Prompt>></$link> |{{$:/snippets/minifocusswitcher}} |\n|<<lingo Language/Prompt>> |{{$:/snippets/minilanguageswitcher}} |\n|<<lingo Tiddlers/Prompt>> |<<show-filter-count \"[!is[system]sort[title]]\">> |\n|<<lingo Tags/Prompt>> |<<show-filter-count \"[tags[]sort[title]]\">> |\n|<<lingo SystemTiddlers/Prompt>> |<<show-filter-count \"[is[system]sort[title]]\">> |\n|<<lingo ShadowTiddlers/Prompt>> |<<show-filter-count \"[all[shadows]sort[title]]\">> |\n|<<lingo OverriddenShadowTiddlers/Prompt>> |<<show-filter-count \"[is[tiddler]is[shadow]sort[title]]\">> |\n"
+ },
+ "$:/core/ui/ControlPanel/EditorTypes": {
+ "title": "$:/core/ui/ControlPanel/EditorTypes",
+ "tags": "$:/tags/ControlPanel/Advanced",
+ "caption": "{{$:/language/ControlPanel/EditorTypes/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/EditorTypes/\n\n<<lingo Hint>>\n\n<table>\n<tbody>\n<tr>\n<th><<lingo Type/Caption>></th>\n<th><<lingo Editor/Caption>></th>\n</tr>\n<$list filter=\"[all[shadows+tiddlers]prefix[$:/config/EditorTypeMappings/]sort[title]]\">\n<tr>\n<td>\n<$link>\n<$list filter=\"[all[current]removeprefix[$:/config/EditorTypeMappings/]]\">\n<$text text={{!!title}}/>\n</$list>\n</$link>\n</td>\n<td>\n<$view field=\"text\"/>\n</td>\n</tr>\n</$list>\n</tbody>\n</table>\n"
+ },
+ "$:/core/ui/ControlPanel/Info": {
+ "title": "$:/core/ui/ControlPanel/Info",
+ "tags": "$:/tags/ControlPanel",
+ "caption": "{{$:/language/ControlPanel/Info/Caption}}",
+ "text": "{{$:/language/ControlPanel/Info/Hint}}\n\n<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Info]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Basics\" explicitState=\"$:/state/tab--2112689675\"/>\n</div>\n"
+ },
+ "$:/core/ui/ControlPanel/KeyboardShortcuts": {
+ "title": "$:/core/ui/ControlPanel/KeyboardShortcuts",
+ "tags": "$:/tags/ControlPanel",
+ "caption": "{{$:/language/ControlPanel/KeyboardShortcuts/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/KeyboardShortcuts/\n\n\\define new-shortcut(title)\n<div class=\"tc-dropdown-item-plain\">\n<$edit-shortcut tiddler=\"$title$\" placeholder={{$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt}} focus=\"true\" style=\"width:auto;\"/> <$button>\n<<lingo Add/Caption>>\n<$action-listops\n\t$tiddler=\"$(shortcutTitle)$\"\n\t$field=\"text\"\n\t$subfilter=\"[{$title$}]\"\n/>\n<$action-deletetiddler\n\t$tiddler=\"$title$\"\n/>\n</$button>\n</div>\n\\end\n\n\\define shortcut-list-item(caption)\n<td>\n</td>\n<td style=\"text-align:right;font-size:0.7em;\">\n<<lingo Platform/$caption$>>\n</td>\n<td>\n<div style=\"position:relative;\">\n<$button popup=<<qualify \"$:/state/dropdown/$(shortcutTitle)$\">> class=\"tc-btn-invisible\">\n{{$:/core/images/edit-button}}\n</$button>\n<$macrocall $name=\"displayshortcuts\" $output=\"text/html\" shortcuts={{$(shortcutTitle)$}} prefix=\"<kbd>\" separator=\"</kbd> <kbd>\" suffix=\"</kbd>\"/>\n\n<$reveal state=<<qualify \"$:/state/dropdown/$(shortcutTitle)$\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-block-dropdown-wrapper\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown tc-popup-keep\">\n<$list filter=\"[list[$(shortcutTitle)$!!text]sort[title]]\" variable=\"shortcut\" emptyMessage=\"\"\"\n<div class=\"tc-dropdown-item-plain\">\n//<<lingo NoShortcuts/Caption>>//\n</div>\n\"\"\">\n<div class=\"tc-dropdown-item-plain\">\n<$button class=\"tc-btn-invisible\" tooltip={{$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint}}>\n<$action-listops\n\t$tiddler=\"$(shortcutTitle)$\"\n\t$field=\"text\"\n\t$subfilter=\"+[remove<shortcut>]\"\n/>\n<small>{{$:/core/images/close-button}}</small>\n</$button>\n<kbd>\n<$macrocall $name=\"displayshortcuts\" $output=\"text/html\" shortcuts=<<shortcut>>/>\n</kbd>\n</div>\n</$list>\n<hr/>\n<$macrocall $name=\"new-shortcut\" title=<<qualify \"$:/state/new-shortcut/$(shortcutTitle)$\">>/>\n</div>\n</div>\n</$reveal>\n</div>\n</td>\n\\end\n\n\\define shortcut-list(caption,prefix)\n<tr>\n<$list filter=\"[[$prefix$$(shortcutName)$]]\" variable=\"shortcutTitle\">\n<<shortcut-list-item \"$caption$\">>\n</$list>\n</tr>\n\\end\n\n\\define shortcut-editor()\n<<shortcut-list \"All\" \"$:/config/shortcuts/\">>\n<<shortcut-list \"Mac\" \"$:/config/shortcuts-mac/\">>\n<<shortcut-list \"NonMac\" \"$:/config/shortcuts-not-mac/\">>\n<<shortcut-list \"Linux\" \"$:/config/shortcuts-linux/\">>\n<<shortcut-list \"NonLinux\" \"$:/config/shortcuts-not-linux/\">>\n<<shortcut-list \"Windows\" \"$:/config/shortcuts-windows/\">>\n<<shortcut-list \"NonWindows\" \"$:/config/shortcuts-not-windows/\">>\n\\end\n\n\\define shortcut-preview()\n<$macrocall $name=\"displayshortcuts\" $output=\"text/html\" shortcuts={{$(shortcutPrefix)$$(shortcutName)$}} prefix=\"<kbd>\" separator=\"</kbd> <kbd>\" suffix=\"</kbd>\"/>\n\\end\n\n\\define shortcut-item-inner()\n<tr>\n<td>\n<$reveal type=\"nomatch\" state=<<dropdownStateTitle>> text=\"open\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield\n\t$tiddler=<<dropdownStateTitle>>\n\t$value=\"open\"\n/>\n{{$:/core/images/right-arrow}}\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<dropdownStateTitle>> text=\"open\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield\n\t$tiddler=<<dropdownStateTitle>>\n\t$value=\"close\"\n/>\n{{$:/core/images/down-arrow}}\n</$button>\n</$reveal>\n''<$text text=<<shortcutName>>/>''\n</td>\n<td>\n<$transclude tiddler=\"$:/config/ShortcutInfo/$(shortcutName)$\"/>\n</td>\n<td>\n<$list filter=\"$:/config/shortcuts/ $:/config/shortcuts-mac/ $:/config/shortcuts-not-mac/ $:/config/shortcuts-linux/ $:/config/shortcuts-not-linux/ $:/config/shortcuts-windows/ $:/config/shortcuts-not-windows/\" variable=\"shortcutPrefix\">\n<<shortcut-preview>>\n</$list>\n</td>\n</tr>\n<$set name=\"dropdownState\" value={{$(dropdownStateTitle)$}}>\n<$list filter=\"[<dropdownState>match[open]]\" variable=\"listItem\">\n<<shortcut-editor>>\n</$list>\n</$set>\n\\end\n\n\\define shortcut-item()\n<$set name=\"dropdownStateTitle\" value=<<qualify \"$:/state/dropdown/keyboardshortcut/$(shortcutName)$\">>>\n<<shortcut-item-inner>>\n</$set>\n\\end\n\n<table>\n<tbody>\n<$list filter=\"[all[shadows+tiddlers]removeprefix[$:/config/ShortcutInfo/]]\" variable=\"shortcutName\">\n<<shortcut-item>>\n</$list>\n</tbody>\n</table>\n"
+ },
+ "$:/core/ui/ControlPanel/LoadedModules": {
+ "title": "$:/core/ui/ControlPanel/LoadedModules",
+ "tags": "$:/tags/ControlPanel/Advanced",
+ "caption": "{{$:/language/ControlPanel/LoadedModules/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/\n<<lingo LoadedModules/Hint>>\n\n{{$:/snippets/modules}}\n"
+ },
+ "$:/core/ui/ControlPanel/Modals/AddPlugins": {
+ "title": "$:/core/ui/ControlPanel/Modals/AddPlugins",
+ "subtitle": "{{$:/core/images/download-button}} {{$:/language/ControlPanel/Plugins/Add/Caption}}",
+ "text": "\\define install-plugin-actions()\n<$action-sendmessage $message=\"tm-load-plugin-from-library\" url={{!!url}} title={{$(assetInfo)$!!original-title}}/>\n<$set name=\"url\" value={{!!url}}>\n<$set name=\"currentTiddler\" value=<<assetInfo>>>\n<$list filter=\"[enlist{!!dependents}] [{!!parent-plugin}] +[sort[name]]\" variable=\"dependency\">\n<$action-sendmessage $message=\"tm-load-plugin-from-library\" url=<<url>> title=<<dependency>>/>\n</$list>\n</$set>\n</$set>\n\\end\n\n\\define install-plugin-button()\n<div>\n<$set name=\"libraryVersion\" value={{{ [<assetInfo>get[version]] }}}>\n<$set name=\"installedVersion\" value={{{ [<assetInfo>get[original-title]get[version]] }}}>\n<$set name=\"reinstall-type\" value={{{ [<libraryVersion>compare:version:eq<installedVersion>then[tc-reinstall]] [<libraryVersion>compare:version:gt<installedVersion>then[tc-reinstall-upgrade]] [<libraryVersion>compare:version:lt<installedVersion>then[tc-reinstall-downgrade]] }}}>\n<$button actions=<<install-plugin-actions>> class={{{ [<assetInfo>get[original-title]has[version]then<reinstall-type>] tc-btn-invisible tc-install-plugin +[join[ ]] }}}>\n{{$:/core/images/download-button}}\n<$list filter=\"[<assetInfo>get[original-title]get[version]]\" variable=\"ignore\" emptyMessage=\"{{$:/language/ControlPanel/Plugins/Install/Caption}}\">\n<$list filter=\"[<libraryVersion>compare:version:gt<installedVersion>]\" variable=\"ignore\" emptyMessage=\"\"\"\n<$list filter=\"[<libraryVersion>compare:version:lt<installedVersion>]\" variable=\"ignore\" emptyMessage=\"{{$:/language/ControlPanel/Plugins/Reinstall/Caption}}\">\n{{$:/language/ControlPanel/Plugins/Downgrade/Caption}}\n</$list>\n\"\"\">\n{{$:/language/ControlPanel/Plugins/Update/Caption}}\n</$list>\n</$list>\n</$button>\n<div>\n</div>\n<$reveal stateTitle=<<assetInfo>> stateField=\"requires-reload\" type=\"match\" text=\"yes\">{{$:/language/ControlPanel/Plugins/PluginWillRequireReload}}</$reveal>\n</$set>\n</$set>\n</$set>\n</div>\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<$set name=\"popup-state\" value=<<popup-state-macro>>>\n<div class=\"tc-plugin-info\">\n<div class=\"tc-plugin-info-chunk tc-plugin-info-toggle\">\n<$reveal type=\"nomatch\" state=<<popup-state>> text=\"yes\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"yes\">\n{{$:/core/images/chevron-right}}\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<popup-state>> text=\"yes\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"no\">\n{{$:/core/images/chevron-down}}\n</$button>\n</$reveal>\n</div>\n<div class=\"tc-plugin-info-chunk tc-plugin-info-icon\">\n<$list filter=\"[<assetInfo>has[icon]]\" emptyMessage=\"\"\"<$transclude tiddler=\"$:/core/images/plugin-generic-$type$\"/>\"\"\">\n<img src={{$(assetInfo)$!!icon}}/>\n</$list>\n</div>\n<div class=\"tc-plugin-info-chunk tc-plugin-info-description\">\n<h1><strong><$text text={{{ [<assetInfo>get[name]] ~[<assetInfo>get[original-title]split[/]last[1]] }}}/></strong>: <$view tiddler=<<assetInfo>> field=\"description\"/></h1>\n<h2><$view tiddler=<<assetInfo>> field=\"original-title\"/></h2>\n<div><em><$view tiddler=<<assetInfo>> field=\"version\"/></em></div>\n<$list filter=\"[<assetInfo>get[original-title]get[version]]\" variable=\"installedVersion\"><div><em>{{$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint}}</em></div></$list>\n</div>\n<div class=\"tc-plugin-info-chunk tc-plugin-info-buttons\">\n<<install-plugin-button>>\n</div>\n</div>\n<$set name=\"original-title\" value={{{ [<assetInfo>get[original-title]] }}}>\n<$reveal type=\"match\" text=\"yes\" state=<<popup-state>>>\n<div class=\"tc-plugin-info-dropdown\">\n<$list filter=\"[enlist{!!dependents}] [<currentTiddler>get[parent-plugin]] +[limit[1]] ~[<assetInfo>get[original-title]!is[tiddler]]\" variable=\"ignore\">\n<div class=\"tc-plugin-info-dropdown-message\">\n<$list filter=\"[<assetInfo>get[original-title]!is[tiddler]]\">\n{{$:/language/ControlPanel/Plugins/NotInstalled/Hint}}\n</$list>\n<$set name=\"currentTiddler\" value=<<assetInfo>>>\n<$list filter=\"[enlist{!!dependents}] [<currentTiddler>get[parent-plugin]] +[limit[1]]\" variable=\"ignore\">\n<div>\n{{$:/language/ControlPanel/Plugins/AlsoRequires}}\n<$list filter=\"[enlist{!!dependents}] [{!!parent-plugin}] +[sort[name]]\" variable=\"dependency\">\n<$text text=<<dependency>>/>\n</$list>\n</div>\n</$list>\n</$set>\n</div>\n</$list>\n<div class=\"tc-plugin-info-dropdown-body\">\n<$transclude tiddler=<<assetInfo>> field=\"readme\" mode=\"block\"/>\n</div>\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>limit[1]]\" variable=\"ignore\">\n<div class=\"tc-plugin-info-sub-plugins\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>sort[name]]\" variable=\"assetInfo\">\n<<display-plugin-info \"$type$\">>\n</$list>\n</div>\n</$list>\n</div>\n</$reveal>\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>limit[1]]\" variable=\"ignore\">\n<$reveal type=\"nomatch\" text=\"yes\" state=<<popup-state>> tag=\"div\" class=\"tc-plugin-info-sub-plugin-indicator\">\n<$wikify name=\"count\" text=\"\"\"<$count filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>]\"/>\"\"\">\n<$button class=\"tc-btn-invisible\" set=<<popup-state>> setTo=\"yes\">\n{{$:/language/ControlPanel/Plugins/SubPluginPrompt}}\n</$button>\n</$wikify>\n</$reveal>\n</$list>\n</$set>\n</$set>\n\\end\n\n\\define load-plugin-library-button()\n<$list filter=\"[<currentTiddler>get[enabled]else[yes]match[yes]]\" variable=\"ignore\">\n<$button class=\"tc-btn-big-green\">\n<$action-sendmessage $message=\"tm-load-plugin-library\" url={{!!url}} infoTitlePrefix=\"$:/temp/RemoteAssetInfo/\"/>\n{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Plugins/OpenPluginLibrary}}\n</$button>\n</$list>\n\\end\n\n\\define display-server-assets(type)\n{{$:/language/Search/Search}}: <$edit-text tiddler=\"\"\"$:/temp/RemoteAssetSearch/$(currentTiddler)$\"\"\" default=\"\" type=\"search\" tag=\"input\"/>\n<$reveal state=\"\"\"$:/temp/RemoteAssetSearch/$(currentTiddler)$\"\"\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"\"\"$:/temp/RemoteAssetSearch/$(currentTiddler)$\"\"\" $field=\"text\" $value=\"\"/>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n<div class=\"tc-plugin-library-listing\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]search:author,description,original-title,readme,title{$:/temp/RemoteAssetSearch/$(currentTiddler)$}sort[name]]\" variable=\"assetInfo\">\n<$list filter=\"[[$:/temp/RemoteAssetSearch/$(currentTiddler)$]has[text]] ~[<assetInfo>!has[parent-plugin]]\" variable=\"ignore\"><!-- Hide sub-plugins if we're not searching -->\n<<display-plugin-info \"$type$\">>\n</$list>\n</$list>\n</div>\n\\end\n\n\\define display-server-connection()\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/ServerConnection]suffix{!!url}]\" variable=\"connectionTiddler\" emptyMessage=<<load-plugin-library-button>>>\n\n<$set name=\"transclusion\" value=<<connectionTiddler>>>\n\n<<tabs \"[[$:/core/ui/ControlPanel/Plugins/Add/Updates]] [[$:/core/ui/ControlPanel/Plugins/Add/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Add/Themes]] [[$:/core/ui/ControlPanel/Plugins/Add/Languages]]\" \"$:/core/ui/ControlPanel/Plugins/Add/Plugins\">>\n\n</$set>\n\n</$list>\n\\end\n\n\\define close-library-button()\n<$reveal type='nomatch' state='$:/temp/ServerConnection/$(PluginLibraryURL)$' text=''>\n<$button class='tc-btn-big-green'>\n<$action-sendmessage $message=\"tm-unload-plugin-library\" url={{!!url}}/>\n{{$:/core/images/chevron-left}} {{$:/language/ControlPanel/Plugins/ClosePluginLibrary}}\n<$action-deletetiddler $filter=\"[prefix[$:/temp/ServerConnection/$(PluginLibraryURL)$]][prefix[$:/temp/RemoteAssetInfo/$(PluginLibraryURL)$]]\"/>\n</$button>\n</$reveal>\n\\end\n\n\\define plugin-library-listing()\n<div class=\"tc-tab-set\">\n<$set name=\"defaultTab\" value={{{ [all[tiddlers+shadows]tag[$:/tags/PluginLibrary]] }}}>\n<div class=\"tc-tab-buttons\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]\">\n<$button set=<<qualify \"$:/state/addplugins/tab\">> setTo=<<currentTiddler>> default=<<defaultTab>> selectedClass=\"tc-tab-selected\">\n<$set name=\"tv-wikilinks\" value=\"no\">\n<$transclude field=\"caption\"/>\n</$set>\n</$button>\n</$list>\n</div>\n<div class=\"tc-tab-divider\"/>\n<div class=\"tc-tab-content\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]\">\n<$reveal type=\"match\" state=<<qualify \"$:/state/addplugins/tab\">> text=<<currentTiddler>> default=<<defaultTab>>>\n<h2><$link><$transclude field=\"caption\"><$view field=\"title\"/></$transclude></$link></h2>\n//<$view field=\"url\"/>//\n<$transclude mode=\"block\"/>\n<$set name=PluginLibraryURL value={{!!url}}>\n<<close-library-button>>\n</$set>\n<<display-server-connection>>\n</$reveal>\n</$list>\n</div>\n</$set>\n</div>\n\\end\n\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n<div>\n<<plugin-library-listing>>\n</div>\n"
+ },
+ "$:/core/ui/ControlPanel/Palette": {
+ "title": "$:/core/ui/ControlPanel/Palette",
+ "tags": "$:/tags/ControlPanel/Appearance",
+ "caption": "{{$:/language/ControlPanel/Palette/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Palette/\n\n{{$:/snippets/paletteswitcher}}\n\n<$reveal type=\"nomatch\" state=\"$:/state/ShowPaletteEditor\" text=\"yes\">\n\n<$button set=\"$:/state/ShowPaletteEditor\" setTo=\"yes\"><<lingo ShowEditor/Caption>></$button>\n\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/state/ShowPaletteEditor\" text=\"yes\">\n\n<$button set=\"$:/state/ShowPaletteEditor\" setTo=\"no\"><<lingo HideEditor/Caption>></$button>\n{{$:/PaletteManager}}\n\n</$reveal>\n\n"
+ },
+ "$:/core/ui/ControlPanel/Parsing": {
+ "title": "$:/core/ui/ControlPanel/Parsing",
+ "tags": "$:/tags/ControlPanel/Advanced",
+ "caption": "{{$:/language/ControlPanel/Parsing/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Parsing/\n\n\\define toggle(Type)\n<$checkbox\ntiddler=\"\"\"$:/config/WikiParserRules/$Type$/$(rule)$\"\"\"\nfield=\"text\"\nchecked=\"enable\"\nunchecked=\"disable\"\ndefault=\"enable\">\n<<rule>>\n</$checkbox>\n\\end\n\n\\define rules(type,Type)\n<$list filter=\"[wikiparserrules[$type$]]\" variable=\"rule\">\n<dd><<toggle $Type$>></dd>\n</$list>\n\\end\n\n<<lingo Hint>>\n\n<dl>\n<dt><<lingo Pragma/Caption>></dt>\n<<rules pragma Pragma>>\n<dt><<lingo Inline/Caption>></dt>\n<<rules inline Inline>>\n<dt><<lingo Block/Caption>></dt>\n<<rules block Block>>\n</dl>"
+ },
+ "$:/core/ui/ControlPanel/Plugins/Add/Languages": {
+ "title": "$:/core/ui/ControlPanel/Plugins/Add/Languages",
+ "caption": "{{$:/language/ControlPanel/Plugins/Languages/Caption}} (<$count filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[language]]\"/>)",
+ "text": "<<display-server-assets language>>\n"
+ },
+ "$:/core/ui/ControlPanel/Plugins/Add/Plugins": {
+ "title": "$:/core/ui/ControlPanel/Plugins/Add/Plugins",
+ "caption": "{{$:/language/ControlPanel/Plugins/Plugins/Caption}} (<$count filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[plugin]]\"/>)",
+ "text": "<<display-server-assets plugin>>\n"
+ },
+ "$:/core/ui/ControlPanel/Plugins/Add/Themes": {
+ "title": "$:/core/ui/ControlPanel/Plugins/Add/Themes",
+ "caption": "{{$:/language/ControlPanel/Plugins/Themes/Caption}} (<$count filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[theme]]\"/>)",
+ "text": "<<display-server-assets theme>>\n"
+ },
+ "$:/core/ui/ControlPanel/Plugins/Add/Updates": {
+ "title": "$:/core/ui/ControlPanel/Plugins/Add/Updates",
+ "caption": "<$importvariables filter=\"$:/core/ui/ControlPanel/Plugins/Add/Updates\">{{$:/language/ControlPanel/Plugins/Updates/Caption}} (<<update-count>>)</$importvariables>",
+ "text": "\\define each-updateable-plugin(body)\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}sort[title]]\" variable=\"assetInfo\">\n<$set name=\"libraryVersion\" value={{{ [<assetInfo>get[version]] }}}>\n<$list filter=\"[<assetInfo>get[original-title]has[version]!version<libraryVersion>]\" variable=\"ignore\">\n<$set name=\"installedVersion\" value={{{ [<assetInfo>get[original-title]get[version]] }}}>\n<$list filter=\"[<installedversion>!match<libraryVersion>]\" variable=\"ignore\">\n$body$\n</$list>\n</$set>\n</$list>\n</$set>\n</$list>\n\\end\n\n\\define update-all-actions()\n<$macrocall $name=\"each-updateable-plugin\" body=\"\"\"\n<<install-plugin-actions>>\n\"\"\"/>\n\\end\n\n\\define update-count()\n<$wikify name=\"count-filter\" text=<<each-updateable-plugin \"[[<$text text=<<assetInfo>>/>]]\">>><$count filter=<<count-filter>>/></$wikify>\n\\end\n\n<$button actions=<<update-all-actions>> class=\"tc-btn-invisible tc-install-plugin tc-reinstall-upgrade\">\n{{$:/core/images/download-button}} {{||$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption}}\n</$button>\n\n<div class=\"tc-plugin-library-listing\">\n<$macrocall $name=\"each-updateable-plugin\" body=\"\"\"\n<$macrocall $name=\"display-plugin-info\" type={{{ [<assetInfo>get[original-plugin-type]] }}}/>\n\"\"\"/>\n</div>\n"
+ },
+ "$:/core/ui/ControlPanel/Plugins/AddPlugins": {
+ "title": "$:/core/ui/ControlPanel/Plugins/AddPlugins",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Plugins/\n\n<$button message=\"tm-modal\" param=\"$:/core/ui/ControlPanel/Modals/AddPlugins\" tooltip={{$:/language/ControlPanel/Plugins/Add/Hint}} class=\"tc-btn-big-green tc-primary-btn\">\n{{$:/core/images/download-button}} <<lingo Add/Caption>>\n</$button>\n"
+ },
+ "$:/core/ui/ControlPanel/Plugins/Installed/Languages": {
+ "title": "$:/core/ui/ControlPanel/Plugins/Installed/Languages",
+ "caption": "{{$:/language/ControlPanel/Plugins/Languages/Caption}} (<$count filter=\"[!has[draft.of]plugin-type[language]]\"/>)",
+ "text": "<<plugin-table language>>\n"
+ },
+ "$:/core/ui/ControlPanel/Plugins/Installed/Plugins": {
+ "title": "$:/core/ui/ControlPanel/Plugins/Installed/Plugins",
+ "caption": "{{$:/language/ControlPanel/Plugins/Plugins/Caption}} (<$count filter=\"[!has[draft.of]plugin-type[plugin]]\"/>)",
+ "text": "<<plugin-table plugin>>\n"
+ },
+ "$:/core/ui/ControlPanel/Plugins/Installed/Themes": {
+ "title": "$:/core/ui/ControlPanel/Plugins/Installed/Themes",
+ "caption": "{{$:/language/ControlPanel/Plugins/Themes/Caption}} (<$count filter=\"[!has[draft.of]plugin-type[theme]]\"/>)",
+ "text": "<<plugin-table theme>>\n"
+ },
+ "$:/core/ui/ControlPanel/Plugins": {
+ "title": "$:/core/ui/ControlPanel/Plugins",
+ "tags": "$:/tags/ControlPanel",
+ "caption": "{{$:/language/ControlPanel/Plugins/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Plugins/\n\n\\define plugin-table(type)\n<$set name=\"plugin-type\" value=\"\"\"$type$\"\"\">\n<$set name=\"qualified-state\" value=<<qualify \"$:/state/plugin-info\">>>\n<$list filter=\"[!has[draft.of]plugin-type[$type$]sort[name]]\" emptyMessage=<<lingo \"Empty/Hint\">> template=\"$:/core/ui/Components/plugin-info\"/>\n</$set>\n</$set>\n\\end\n\n{{$:/core/ui/ControlPanel/Plugins/AddPlugins}}\n\n<<lingo Installed/Hint>>\n\n<$macrocall $name=\"tabs\" tabsList=\"[[$:/core/ui/ControlPanel/Plugins/Installed/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Installed/Themes]] [[$:/core/ui/ControlPanel/Plugins/Installed/Languages]]\" default=\"$:/core/ui/ControlPanel/Plugins/Installed/Plugins\" explicitState=\"$:/state/tab--86143343\"/>\n"
+ },
+ "$:/core/ui/ControlPanel/Saving/DownloadSaver": {
+ "title": "$:/core/ui/ControlPanel/Saving/DownloadSaver",
+ "tags": "$:/tags/ControlPanel/Saving",
+ "caption": "{{$:/language/ControlPanel/Saving/DownloadSaver/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Saving/DownloadSaver/\n\n<<lingo Hint>>\n\n!! <$link to=\"$:/config/DownloadSaver/AutoSave\"><<lingo AutoSave/Hint>></$link>\n\n<$checkbox tiddler=\"$:/config/DownloadSaver/AutoSave\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> <<lingo AutoSave/Description>> </$checkbox>\n"
+ },
+ "$:/core/ui/ControlPanel/Saving/General": {
+ "title": "$:/core/ui/ControlPanel/Saving/General",
+ "tags": "$:/tags/ControlPanel/Saving",
+ "caption": "{{$:/language/ControlPanel/Saving/General/Caption}}",
+ "list-before": "",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/\n\n{{$:/language/ControlPanel/Saving/General/Hint}}\n\n!! <$link to=\"$:/config/AutoSave\"><<lingo AutoSave/Caption>></$link>\n\n<<lingo AutoSave/Hint>>\n\n<$radio tiddler=\"$:/config/AutoSave\" value=\"yes\"> <<lingo AutoSave/Enabled/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/AutoSave\" value=\"no\"> <<lingo AutoSave/Disabled/Description>> </$radio>\n"
+ },
+ "$:/core/ui/ControlPanel/Saving/GitHub": {
+ "title": "$:/core/ui/ControlPanel/Saving/GitHub",
+ "tags": "$:/tags/ControlPanel/Saving",
+ "caption": "{{$:/language/ControlPanel/Saving/GitService/GitHub/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Saving/GitService/\n\\define service-name() ~GitHub\n\n<<lingo Description>>\n\n|<<lingo UserName>> |<$edit-text tiddler=\"$:/GitHub/Username\" default=\"\" tag=\"input\"/> |\n|<<lingo GitHub/Password>> |<$password name=\"github\"/> |\n|<<lingo Repo>> |<$edit-text tiddler=\"$:/GitHub/Repo\" default=\"\" tag=\"input\"/> |\n|<<lingo Branch>> |<$edit-text tiddler=\"$:/GitHub/Branch\" default=\"master\" tag=\"input\"/> |\n|<<lingo Path>> |<$edit-text tiddler=\"$:/GitHub/Path\" default=\"\" tag=\"input\"/> |\n|<<lingo Filename>> |<$edit-text tiddler=\"$:/GitHub/Filename\" default=\"\" tag=\"input\"/> |\n|<<lingo ServerURL>> |<$edit-text tiddler=\"$:/GitHub/ServerURL\" default=\"https://api.github.com\" tag=\"input\"/> |"
+ },
+ "$:/core/ui/ControlPanel/Saving/GitLab": {
+ "title": "$:/core/ui/ControlPanel/Saving/GitLab",
+ "tags": "$:/tags/ControlPanel/Saving",
+ "caption": "{{$:/language/ControlPanel/Saving/GitService/GitLab/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Saving/GitService/\n\\define service-name() ~GitLab\n\n<<lingo Description>>\n\n|<<lingo UserName>> |<$edit-text tiddler=\"$:/GitLab/Username\" default=\"\" tag=\"input\"/> |\n|<<lingo GitLab/Password>> |<$password name=\"gitlab\"/> |\n|<<lingo Repo>> |<$edit-text tiddler=\"$:/GitLab/Repo\" default=\"\" tag=\"input\"/> |\n|<<lingo Branch>> |<$edit-text tiddler=\"$:/GitLab/Branch\" default=\"master\" tag=\"input\"/> |\n|<<lingo Path>> |<$edit-text tiddler=\"$:/GitLab/Path\" default=\"\" tag=\"input\"/> |\n|<<lingo Filename>> |<$edit-text tiddler=\"$:/GitLab/Filename\" default=\"\" tag=\"input\"/> |\n|<<lingo ServerURL>> |<$edit-text tiddler=\"$:/GitLab/ServerURL\" default=\"https://gitlab.com/api/v4\" tag=\"input\"/> |"
+ },
+ "$:/core/ui/ControlPanel/Saving/TiddlySpot": {
+ "title": "$:/core/ui/ControlPanel/Saving/TiddlySpot",
+ "tags": "$:/tags/ControlPanel/Saving",
+ "caption": "{{$:/language/ControlPanel/Saving/TiddlySpot/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Saving/TiddlySpot/\n\n\\define siteURL(path)\nhttp://$(userName)$.tiddlyspot.com/$path$/\n\\end\n\\define siteLink(path)\n<$reveal type=\"nomatch\" state=\"$:/UploadName\" text=\"\">\n<$set name=\"userName\" value={{$:/UploadName}}>\n<$reveal type=\"match\" state=\"$:/UploadURL\" text=\"\">\n<<siteURL $path$>>\n</$reveal>\n<$reveal type=\"nomatch\" state=\"$:/UploadURL\" text=\"\">\n<$macrocall $name=resolvePath source={{$:/UploadBackupDir}} root={{$:/UploadURL}}>>\n</$reveal>\n</$set>\n</$reveal>\n\\end\n\n<div class=\"tc-message-box\">\n\n<<lingo ReadOnly>>\n\n</div>\n\n<<lingo Description>>\n\n|<<lingo UserName>> |<$edit-text tiddler=\"$:/UploadName\" default=\"\" tag=\"input\"/> |\n|<<lingo Password>> |<$password name=\"upload\"/> |\n|<<lingo Backups>> |<<siteLink backup>> |\n|<<lingo ControlPanel>> |<<siteLink controlpanel>> |\n\n''<<lingo Advanced/Heading>>''\n\n|<<lingo ServerURL>> |<$edit-text tiddler=\"$:/UploadURL\" default=\"\" tag=\"input\"/> |\n|<<lingo Filename>> |<$edit-text tiddler=\"$:/UploadFilename\" default=\"index.html\" tag=\"input\"/> |\n|<<lingo UploadDir>> |<$edit-text tiddler=\"$:/UploadDir\" default=\".\" tag=\"input\"/> |\n|<<lingo BackupDir>> |<$edit-text tiddler=\"$:/UploadBackupDir\" default=\".\" tag=\"input\"/> |\n\n<<lingo TiddlySpot/Hint>>\n"
+ },
+ "$:/core/ui/ControlPanel/Saving/Gitea": {
+ "title": "$:/core/ui/ControlPanel/Saving/Gitea",
+ "tags": "$:/tags/ControlPanel/Saving",
+ "caption": "{{$:/language/ControlPanel/Saving/GitService/Gitea/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Saving/GitService/\n\\define service-name() ~Gitea\n\n<<lingo Description>>\n\n|<<lingo UserName>> |<$edit-text tiddler=\"$:/Gitea/Username\" default=\"\" tag=\"input\"/> |\n|<<lingo Gitea/Password>> |<$password name=\"Gitea\"/> |\n|<<lingo Repo>> |<$edit-text tiddler=\"$:/Gitea/Repo\" default=\"\" tag=\"input\"/> |\n|<<lingo Branch>> |<$edit-text tiddler=\"$:/Gitea/Branch\" default=\"master\" tag=\"input\"/> |\n|<<lingo Path>> |<$edit-text tiddler=\"$:/Gitea/Path\" default=\"\" tag=\"input\"/> |\n|<<lingo Filename>> |<$edit-text tiddler=\"$:/Gitea/Filename\" default=\"\" tag=\"input\"/> |\n|<<lingo ServerURL>> |<$edit-text tiddler=\"$:/Gitea/ServerURL\" default=\"https://gitea/api/v1\" tag=\"input\"/> |\n"
+ },
+ "$:/core/ui/ControlPanel/Saving": {
+ "title": "$:/core/ui/ControlPanel/Saving",
+ "tags": "$:/tags/ControlPanel",
+ "caption": "{{$:/language/ControlPanel/Saving/Caption}}",
+ "text": "{{$:/language/ControlPanel/Saving/Hint}}\n\n<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Saving]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Saving/General\" explicitState=\"$:/state/tab-2065006209\"/>\n</div>\n"
+ },
+ "$:/core/buttonstyles/Borderless": {
+ "title": "$:/core/buttonstyles/Borderless",
+ "tags": "$:/tags/ToolbarButtonStyle",
+ "caption": "{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless}}",
+ "text": "tc-btn-invisible"
+ },
+ "$:/core/buttonstyles/Boxed": {
+ "title": "$:/core/buttonstyles/Boxed",
+ "tags": "$:/tags/ToolbarButtonStyle",
+ "caption": "{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed}}",
+ "text": "tc-btn-boxed"
+ },
+ "$:/core/buttonstyles/Rounded": {
+ "title": "$:/core/buttonstyles/Rounded",
+ "tags": "$:/tags/ToolbarButtonStyle",
+ "caption": "{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded}}",
+ "text": "tc-btn-rounded"
+ },
+ "$:/core/ui/ControlPanel/Settings/CamelCase": {
+ "title": "$:/core/ui/ControlPanel/Settings/CamelCase",
+ "tags": "$:/tags/ControlPanel/Settings",
+ "caption": "{{$:/language/ControlPanel/Settings/CamelCase/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/CamelCase/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/WikiParserRules/Inline/wikilink\" field=\"text\" checked=\"enable\" unchecked=\"disable\" default=\"enable\"> <$link to=\"$:/config/WikiParserRules/Inline/wikilink\"><<lingo Description>></$link> </$checkbox>\n"
+ },
+ "$:/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab": {
+ "title": "$:/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab",
+ "caption": "{{$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption}}",
+ "tags": "$:/tags/ControlPanel/Settings",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/DefaultMoreSidebarTab/\n\n<$link to=\"$:/config/DefaultMoreSidebarTab\"><<lingo Hint>></$link>\n\n<$select tiddler=\"$:/config/DefaultMoreSidebarTab\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]\">\n<option value=<<currentTiddler>>><$transclude field=\"caption\"><$text text=<<currentTiddler>>/></$transclude></option>\n</$list>\n</$select>\n"
+ },
+ "$:/core/ui/ControlPanel/Settings/DefaultSidebarTab": {
+ "title": "$:/core/ui/ControlPanel/Settings/DefaultSidebarTab",
+ "caption": "{{$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption}}",
+ "tags": "$:/tags/ControlPanel/Settings",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/DefaultSidebarTab/\n\n<$link to=\"$:/config/DefaultSidebarTab\"><<lingo Hint>></$link>\n\n<$select tiddler=\"$:/config/DefaultSidebarTab\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]\">\n<option value=<<currentTiddler>>><$transclude field=\"caption\"><$text text=<<currentTiddler>>/></$transclude></option>\n</$list>\n</$select>\n"
+ },
+ "$:/core/ui/ControlPanel/Settings/EditorToolbar": {
+ "title": "$:/core/ui/ControlPanel/Settings/EditorToolbar",
+ "tags": "$:/tags/ControlPanel/Settings",
+ "caption": "{{$:/language/ControlPanel/Settings/EditorToolbar/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/EditorToolbar/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/TextEditor/EnableToolbar\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/TextEditor/EnableToolbar\"><<lingo Description>></$link> </$checkbox>\n\n"
+ },
+ "$:/core/ui/ControlPanel/Settings/InfoPanelMode": {
+ "title": "$:/core/ui/ControlPanel/Settings/InfoPanelMode",
+ "tags": "$:/tags/ControlPanel/Settings",
+ "caption": "{{$:/language/ControlPanel/Settings/InfoPanelMode/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/InfoPanelMode/\n<$link to=\"$:/config/TiddlerInfo/Mode\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/TiddlerInfo/Mode\" value=\"popup\"> <<lingo Popup/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/TiddlerInfo/Mode\" value=\"sticky\"> <<lingo Sticky/Description>> </$radio>\n"
+ },
+ "$:/core/ui/ControlPanel/Settings/LinkToBehaviour": {
+ "title": "$:/core/ui/ControlPanel/Settings/LinkToBehaviour",
+ "tags": "$:/tags/ControlPanel/Settings",
+ "caption": "{{$:/language/ControlPanel/Settings/LinkToBehaviour/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/LinkToBehaviour/\n\n<$link to=\"$:/config/Navigation/openLinkFromInsideRiver\"><<lingo \"InsideRiver/Hint\">></$link>\n\n<$select tiddler=\"$:/config/Navigation/openLinkFromInsideRiver\">\n <option value=\"above\"><<lingo \"OpenAbove\">></option>\n <option value=\"below\"><<lingo \"OpenBelow\">></option>\n <option value=\"top\"><<lingo \"OpenAtTop\">></option>\n <option value=\"bottom\"><<lingo \"OpenAtBottom\">></option>\n</$select>\n\n<$link to=\"$:/config/Navigation/openLinkFromOutsideRiver\"><<lingo \"OutsideRiver/Hint\">></$link>\n\n<$select tiddler=\"$:/config/Navigation/openLinkFromOutsideRiver\">\n <option value=\"top\"><<lingo \"OpenAtTop\">></option>\n <option value=\"bottom\"><<lingo \"OpenAtBottom\">></option>\n</$select>\n"
+ },
+ "$:/core/ui/ControlPanel/Settings/MissingLinks": {
+ "title": "$:/core/ui/ControlPanel/Settings/MissingLinks",
+ "tags": "$:/tags/ControlPanel/Settings",
+ "caption": "{{$:/language/ControlPanel/Settings/MissingLinks/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/MissingLinks/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/MissingLinks\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/MissingLinks\"><<lingo Description>></$link> </$checkbox>\n\n"
+ },
+ "$:/core/ui/ControlPanel/Settings/NavigationAddressBar": {
+ "title": "$:/core/ui/ControlPanel/Settings/NavigationAddressBar",
+ "tags": "$:/tags/ControlPanel/Settings",
+ "caption": "{{$:/language/ControlPanel/Settings/NavigationAddressBar/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/NavigationAddressBar/\n\n<$link to=\"$:/config/Navigation/UpdateAddressBar\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateAddressBar\" value=\"permaview\"> <<lingo Permaview/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateAddressBar\" value=\"permalink\"> <<lingo Permalink/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateAddressBar\" value=\"no\"> <<lingo No/Description>> </$radio>\n"
+ },
+ "$:/core/ui/ControlPanel/Settings/NavigationHistory": {
+ "title": "$:/core/ui/ControlPanel/Settings/NavigationHistory",
+ "tags": "$:/tags/ControlPanel/Settings",
+ "caption": "{{$:/language/ControlPanel/Settings/NavigationHistory/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/NavigationHistory/\n<$link to=\"$:/config/Navigation/UpdateHistory\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateHistory\" value=\"yes\"> <<lingo Yes/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateHistory\" value=\"no\"> <<lingo No/Description>> </$radio>\n"
+ },
+ "$:/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode": {
+ "title": "$:/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode",
+ "tags": "$:/tags/ControlPanel/Settings",
+ "caption": "{{$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/NavigationPermalinkviewMode/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/Navigation/Permalinkview/CopyToClipboard\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/Navigation/Permalinkview/CopyToClipboard\"><<lingo CopyToClipboard/Description>></$link> </$checkbox>\n\n<$checkbox tiddler=\"$:/config/Navigation/Permalinkview/UpdateAddressBar\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/Navigation/Permalinkview/UpdateAddressBar\"><<lingo UpdateAddressBar/Description>></$link> </$checkbox>\n"
+ },
+ "$:/core/ui/ControlPanel/Settings/PerformanceInstrumentation": {
+ "title": "$:/core/ui/ControlPanel/Settings/PerformanceInstrumentation",
+ "tags": "$:/tags/ControlPanel/Settings",
+ "caption": "{{$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/PerformanceInstrumentation/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/Performance/Instrumentation\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> <$link to=\"$:/config/Performance/Instrumentation\"><<lingo Description>></$link> </$checkbox>\n"
+ },
+ "$:/core/ui/ControlPanel/Settings/TitleLinks": {
+ "title": "$:/core/ui/ControlPanel/Settings/TitleLinks",
+ "tags": "$:/tags/ControlPanel/Settings",
+ "caption": "{{$:/language/ControlPanel/Settings/TitleLinks/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/TitleLinks/\n<$link to=\"$:/config/Tiddlers/TitleLinks\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/Tiddlers/TitleLinks\" value=\"yes\"> <<lingo Yes/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Tiddlers/TitleLinks\" value=\"no\"> <<lingo No/Description>> </$radio>\n"
+ },
+ "$:/core/ui/ControlPanel/Settings/ToolbarButtonStyle": {
+ "title": "$:/core/ui/ControlPanel/Settings/ToolbarButtonStyle",
+ "tags": "$:/tags/ControlPanel/Settings",
+ "caption": "{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtonStyle/\n<$link to=\"$:/config/Toolbar/ButtonClass\"><<lingo \"Hint\">></$link>\n\n<$select tiddler=\"$:/config/Toolbar/ButtonClass\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ToolbarButtonStyle]]\">\n<option value={{!!text}}>{{!!caption}}</option>\n</$list>\n</$select>\n"
+ },
+ "$:/core/ui/ControlPanel/Settings/ToolbarButtons": {
+ "title": "$:/core/ui/ControlPanel/Settings/ToolbarButtons",
+ "tags": "$:/tags/ControlPanel/Settings",
+ "caption": "{{$:/language/ControlPanel/Settings/ToolbarButtons/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtons/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/Toolbar/Icons\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/Toolbar/Icons\"><<lingo Icons/Description>></$link> </$checkbox>\n\n<$checkbox tiddler=\"$:/config/Toolbar/Text\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> <$link to=\"$:/config/Toolbar/Text\"><<lingo Text/Description>></$link> </$checkbox>\n"
+ },
+ "$:/core/ui/ControlPanel/Settings": {
+ "title": "$:/core/ui/ControlPanel/Settings",
+ "tags": "$:/tags/ControlPanel",
+ "caption": "{{$:/language/ControlPanel/Settings/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Settings/\n\n<<lingo Hint>>\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Settings]]\">\n\n<div style=\"border-top:1px solid #eee;\">\n\n!! <$link><$transclude field=\"caption\"/></$link>\n\n<$transclude/>\n\n</div>\n\n</$list>\n"
+ },
+ "$:/core/ui/ControlPanel/StoryView": {
+ "title": "$:/core/ui/ControlPanel/StoryView",
+ "tags": "$:/tags/ControlPanel/Appearance",
+ "caption": "{{$:/language/ControlPanel/StoryView/Caption}}",
+ "text": "{{$:/snippets/viewswitcher}}\n"
+ },
+ "$:/core/ui/ControlPanel/Stylesheets": {
+ "title": "$:/core/ui/ControlPanel/Stylesheets",
+ "tags": "$:/tags/ControlPanel/Advanced",
+ "caption": "{{$:/language/ControlPanel/Stylesheets/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/\n\n<<lingo Stylesheets/Hint>>\n\n{{$:/snippets/peek-stylesheets}}\n"
+ },
+ "$:/core/ui/ControlPanel/Theme": {
+ "title": "$:/core/ui/ControlPanel/Theme",
+ "tags": "$:/tags/ControlPanel/Appearance",
+ "caption": "{{$:/language/ControlPanel/Theme/Caption}}",
+ "text": "{{$:/snippets/themeswitcher}}\n"
+ },
+ "$:/core/ui/ControlPanel/TiddlerFields": {
+ "title": "$:/core/ui/ControlPanel/TiddlerFields",
+ "tags": "$:/tags/ControlPanel/Advanced",
+ "caption": "{{$:/language/ControlPanel/TiddlerFields/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/\n\n<<lingo TiddlerFields/Hint>>\n\n{{$:/snippets/allfields}}"
+ },
+ "$:/core/ui/ControlPanel/Toolbars/EditToolbar": {
+ "title": "$:/core/ui/ControlPanel/Toolbars/EditToolbar",
+ "tags": "$:/tags/ControlPanel/Toolbars",
+ "caption": "{{$:/language/ControlPanel/Toolbars/EditToolbar/Caption}}",
+ "text": "\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/EditToolbarButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/EditToolbar/Hint}}\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/EditToolbar\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/ItemTemplate\"/>\n\n</$set>\n\n</$set>"
+ },
+ "$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate": {
+ "title": "$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate",
+ "text": "\\define config-title()\n$(config-base)$$(currentTiddler)$\n\\end\n\n<$draggable tiddler=<<currentTiddler>>>\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <span class=\"tc-icon-wrapper\"><$transclude tiddler={{!!icon}}/></span> <$transclude field=\"caption\"/> -- <i class=\"tc-muted\"><$transclude field=\"description\"/></i>\n</$draggable>\n"
+ },
+ "$:/core/ui/ControlPanel/Toolbars/EditorToolbar": {
+ "title": "$:/core/ui/ControlPanel/Toolbars/EditorToolbar",
+ "tags": "$:/tags/ControlPanel/Toolbars",
+ "caption": "{{$:/language/ControlPanel/Toolbars/EditorToolbar/Caption}}",
+ "text": "\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/EditorToolbarButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/EditorToolbar/Hint}}\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/EditorToolbar\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate\"/>\n"
+ },
+ "$:/core/ui/ControlPanel/Toolbars/ItemTemplate": {
+ "title": "$:/core/ui/ControlPanel/Toolbars/ItemTemplate",
+ "text": "\\define config-title()\n$(config-base)$$(currentTiddler)$\n\\end\n\n<$draggable tiddler=<<currentTiddler>>>\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <span class=\"tc-icon-wrapper\"> <$transclude field=\"caption\"/> <i class=\"tc-muted\">-- <$transclude field=\"description\"/></i></span>\n</$draggable>\n"
+ },
+ "$:/core/ui/ControlPanel/Toolbars/PageControls": {
+ "title": "$:/core/ui/ControlPanel/Toolbars/PageControls",
+ "tags": "$:/tags/ControlPanel/Toolbars",
+ "caption": "{{$:/language/ControlPanel/Toolbars/PageControls/Caption}}",
+ "text": "\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/PageControlButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/PageControls/Hint}}\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/PageControls\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/ItemTemplate\"/>\n\n</$set>\n\n</$set>\n"
+ },
+ "$:/core/ui/ControlPanel/Toolbars/ViewToolbar": {
+ "title": "$:/core/ui/ControlPanel/Toolbars/ViewToolbar",
+ "tags": "$:/tags/ControlPanel/Toolbars",
+ "caption": "{{$:/language/ControlPanel/Toolbars/ViewToolbar/Caption}}",
+ "text": "\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/ViewToolbarButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/ViewToolbar/Hint}}\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/ViewToolbar\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/ItemTemplate\"/>\n\n</$set>\n\n</$set>\n"
+ },
+ "$:/core/ui/ControlPanel/Toolbars": {
+ "title": "$:/core/ui/ControlPanel/Toolbars",
+ "tags": "$:/tags/ControlPanel/Appearance",
+ "caption": "{{$:/language/ControlPanel/Toolbars/Caption}}",
+ "text": "{{$:/language/ControlPanel/Toolbars/Hint}}\n\n<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Toolbars]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Toolbars/ViewToolbar\" class=\"tc-vertical\" explicitState=\"$:/state/tabs/controlpanel/toolbars-1345989671\"/>\n</div>\n"
+ },
+ "$:/ControlPanel": {
+ "title": "$:/ControlPanel",
+ "icon": "$:/core/images/options-button",
+ "color": "#bbb",
+ "text": "<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Info\" explicitState=\"$:/state/tab-1749438307\"/>\n</div>\n"
+ },
+ "$:/core/ui/DefaultSearchResultList": {
+ "title": "$:/core/ui/DefaultSearchResultList",
+ "tags": "$:/tags/SearchResults",
+ "caption": "{{$:/language/Search/DefaultResults/Caption}}",
+ "first-search-filter": "[!is[system]search:title<userInput>sort[title]limit[250]]",
+ "second-search-filter": "[!is[system]search<userInput>sort[title]limit[250]]",
+ "text": "\\define searchResultList()\n//<small>{{$:/language/Search/Matches/Title}}</small>//\n\n<$list filter=\"[<userInput>minlength[1]]\" variable=\"ignore\">\n<$list filter={{{ [<configTiddler>get[first-search-filter]] }}}>\n<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[<searchListState>get[text]] +[then[]else[tc-list-item-selected]] }}}>\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</span>\n</$list>\n</$list>\n\n//<small>{{$:/language/Search/Matches/All}}</small>//\n\n<$list filter=\"[<userInput>minlength[1]]\" variable=\"ignore\">\n<$list filter={{{ [<configTiddler>get[second-search-filter]] }}}>\n<span class={{{[<currentTiddler>addsuffix[-secondaryList]] -[<searchListState>get[text]] +[then[]else[tc-list-item-selected]] }}}>\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</span>\n</$list>\n</$list>\n\n\\end\n<<searchResultList>>\n"
+ },
+ "$:/core/ui/EditTemplate/body/preview/diffs-current": {
+ "title": "$:/core/ui/EditTemplate/body/preview/diffs-current",
+ "tags": "$:/tags/EditPreview",
+ "caption": "differences from current",
+ "list-after": "$:/core/ui/EditTemplate/body/preview/output",
+ "text": "<$list filter=\"[<currentTiddler>!is[image]]\" emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}>\n\n<$macrocall $name=\"compareTiddlerText\" sourceTiddlerTitle={{!!draft.of}} destTiddlerTitle=<<currentTiddler>>/>\n\n</$list>\n\n"
+ },
+ "$:/core/ui/EditTemplate/body/preview/diffs-shadow": {
+ "title": "$:/core/ui/EditTemplate/body/preview/diffs-shadow",
+ "tags": "$:/tags/EditPreview",
+ "caption": "differences from shadow (if any)",
+ "list-after": "$:/core/ui/EditTemplate/body/preview/output",
+ "text": "<$list filter=\"[<currentTiddler>!is[image]]\" emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}>\n\n<$macrocall $name=\"compareTiddlerText\" sourceTiddlerTitle={{{ [{!!draft.of}shadowsource[]] }}} sourceSubTiddlerTitle={{!!draft.of}} destTiddlerTitle=<<currentTiddler>>/>\n\n</$list>\n\n"
+ },
+ "$:/core/ui/EditTemplate/body/preview/output": {
+ "title": "$:/core/ui/EditTemplate/body/preview/output",
+ "tags": "$:/tags/EditPreview",
+ "caption": "{{$:/language/EditTemplate/Body/Preview/Type/Output}}",
+ "text": "\\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]]\n<$set name=\"tv-tiddler-preview\" value=\"yes\">\n\n<$transclude />\n\n</$set>\n"
+ },
+ "$:/state/showeditpreview": {
+ "title": "$:/state/showeditpreview",
+ "text": "no"
+ },
+ "$:/core/ui/EditTemplate/body/editor": {
+ "title": "$:/core/ui/EditTemplate/body/editor",
+ "text": "<$edit\n\n field=\"text\"\n class=\"tc-edit-texteditor tc-edit-texteditor-body\"\n placeholder={{$:/language/EditTemplate/Body/Placeholder}}\n tabindex={{$:/config/EditTabIndex}}\n focus={{{ [{$:/config/AutoFocus}match[text]then[true]] ~[[false]] }}}\n cancelPopups=\"yes\"\n\n><$set\n\n name=\"targetTiddler\"\n value=<<currentTiddler>>\n\n><$list\n\n filter=\"[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]]\"\n\n><$reveal\n\n type=\"nomatch\"\n state=<<config-visibility-title>>\n text=\"hide\"\n class=\"tc-text-editor-toolbar-item-wrapper\"\n\n><$transclude\n\n tiddler=\"$:/core/ui/EditTemplate/body/toolbar/button\"\n mode=\"inline\"\n\n/></$reveal></$list></$set></$edit>\n"
+ },
+ "$:/core/ui/EditTemplate/body/toolbar/button": {
+ "title": "$:/core/ui/EditTemplate/body/toolbar/button",
+ "text": "\\define toolbar-button-icon()\n<$list\n\n filter=\"[all[current]!has[custom-icon]]\"\n variable=\"no-custom-icon\"\n\n><$transclude\n\n tiddler={{!!icon}}\n\n/></$list>\n\\end\n\n\\define toolbar-button-tooltip()\n{{!!description}}<$macrocall $name=\"displayshortcuts\" $output=\"text/plain\" shortcuts={{!!shortcuts}} prefix=\"` - [\" separator=\"] [\" suffix=\"]`\"/>\n\\end\n\n\\define toolbar-button()\n<$list\n\n filter={{!!condition}}\n variable=\"list-condition\"\n\n><$wikify\n\n name=\"tooltip-text\"\n text=<<toolbar-button-tooltip>>\n mode=\"inline\"\n output=\"text\"\n\n><$list\n\n filter=\"[all[current]!has[dropdown]]\"\n variable=\"no-dropdown\"\n\n><$button\n\n class=\"tc-btn-invisible $(buttonClasses)$\"\n tooltip=<<tooltip-text>>\n actions={{!!actions}}\n\n><span\n\n data-tw-keyboard-shortcut={{!!shortcuts}}\n\n/><<toolbar-button-icon>><$transclude\n\n tiddler=<<currentTiddler>>\n field=\"text\"\n\n/></$button></$list><$list\n\n filter=\"[all[current]has[dropdown]]\"\n variable=\"dropdown\"\n\n><$set\n\n name=\"dropdown-state\"\n value=<<qualify \"$:/state/EditorToolbarDropdown\">>\n\n><$button\n\n popup=<<dropdown-state>>\n class=\"tc-popup-keep tc-btn-invisible $(buttonClasses)$\"\n selectedClass=\"tc-selected\"\n tooltip=<<tooltip-text>>\n actions={{!!actions}}\n\n><span\n\n data-tw-keyboard-shortcut={{!!shortcuts}}\n\n/><<toolbar-button-icon>><$transclude\n\n tiddler=<<currentTiddler>>\n field=\"text\"\n\n/></$button><$reveal\n\n state=<<dropdown-state>>\n type=\"popup\"\n position=\"below\"\n animate=\"yes\"\n tag=\"span\"\n\n><div\n\n class=\"tc-drop-down tc-popup-keep\"\n\n><$transclude\n\n tiddler={{!!dropdown}}\n mode=\"block\"\n\n/></div></$reveal></$set></$list></$wikify></$list>\n\\end\n\n\\define toolbar-button-outer()\n<$set\n\n name=\"buttonClasses\"\n value={{!!button-classes}}\n\n><<toolbar-button>></$set>\n\\end\n\n<<toolbar-button-outer>>"
+ },
+ "$:/core/ui/EditTemplate/body": {
+ "title": "$:/core/ui/EditTemplate/body",
+ "tags": "$:/tags/EditTemplate",
+ "text": "\\define lingo-base() $:/language/EditTemplate/Body/\n\\define config-visibility-title()\n$:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$\n\\end\n<$list filter=\"[all[current]has[_canonical_uri]]\">\n\n<div class=\"tc-message-box\">\n\n<<lingo External/Hint>>\n\n<a href={{!!_canonical_uri}}><$text text={{!!_canonical_uri}}/></a>\n\n<$edit-text field=\"_canonical_uri\" class=\"tc-edit-fields\" tabindex={{$:/config/EditTabIndex}} cancelPopups=\"yes\"></$edit-text>\n\n</div>\n\n</$list>\n\n<$list filter=\"[all[current]!has[_canonical_uri]]\">\n\n<$reveal state=\"$:/state/showeditpreview\" type=\"match\" text=\"yes\">\n\n<div class=\"tc-tiddler-preview\">\n\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/editor\" mode=\"inline\"/>\n\n<div class=\"tc-tiddler-preview-preview\">\n\n<$transclude tiddler={{$:/state/editpreviewtype}} mode=\"inline\">\n\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/preview/output\" mode=\"inline\"/>\n\n</$transclude>\n\n</div>\n\n</div>\n\n</$reveal>\n\n<$reveal state=\"$:/state/showeditpreview\" type=\"nomatch\" text=\"yes\">\n\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/editor\" mode=\"inline\"/>\n\n</$reveal>\n\n</$list>\n"
+ },
+ "$:/core/ui/EditTemplate/controls": {
+ "title": "$:/core/ui/EditTemplate/controls",
+ "tags": "$:/tags/EditTemplate",
+ "text": "\\define config-title()\n$:/config/EditToolbarButtons/Visibility/$(listItem)$\n\\end\n<div class=\"tc-tiddler-title tc-tiddler-edit-title\">\n<$view field=\"title\"/>\n<span class=\"tc-tiddler-controls tc-titlebar\"><$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]\" variable=\"listItem\"><$reveal type=\"nomatch\" state=<<config-title>> text=\"hide\"><$transclude tiddler=<<listItem>>/></$reveal></$list></span>\n<div style=\"clear: both;\"></div>\n</div>\n"
+ },
+ "$:/core/ui/EditTemplate/fields": {
+ "title": "$:/core/ui/EditTemplate/fields",
+ "tags": "$:/tags/EditTemplate",
+ "text": "\\define lingo-base() $:/language/EditTemplate/\n\\define config-title()\n$:/config/EditTemplateFields/Visibility/$(currentField)$\n\\end\n\n\\define config-filter()\n[[hide]] -[title{$(config-title)$}]\n\\end\n\n\\define current-tiddler-new-field-selector()\n[data-tiddler-title=\"$(currentTiddlerCSSescaped)$\"] .tc-edit-field-add-name-wrapper input\n\\end\n\n\\define new-field-actions()\n<$action-sendmessage $message=\"tm-add-field\" $name={{{ [<newFieldNameTiddler>get[text]] }}} $value={{{ [<newFieldValueTiddler>get[text]] }}}/>\n<$action-deletetiddler $filter=\"[<newFieldNameTiddler>] [<newFieldValueTiddler>] [<storeTitle>] [<searchListState>]\"/>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=<<current-tiddler-new-field-selector>>/>\n\\end\n\n\\define delete-state-tiddlers() <$action-deletetiddler $filter=\"[<newFieldNameTiddler>] [<storeTitle>] [<searchListState>]\"/>\n\n\\define cancel-search-actions-inner()\n<$list filter=\"[<storeTitle>has[text]] [<newFieldNameTiddler>has[text]]\" variable=\"ignore\" emptyMessage=\"\"\"<<cancel-delete-tiddler-actions \"cancel\">>\"\"\">\n<<delete-state-tiddlers>>\n</$list>\n\\end\n\n\\define cancel-search-actions()\n<$set name=\"userInput\" value={{{ [<storeTitle>get[text]] }}}>\n<$list filter=\"[<newFieldNameTiddler>get[text]!match<userInput>]\" emptyMessage=\"\"\"<<cancel-search-actions-inner>>\"\"\">\n<$action-setfield $tiddler=<<newFieldNameTiddler>> text=<<userInput>>/><$action-setfield $tiddler=<<refreshTitle>> text=\"yes\"/>\n</$list>\n</$set>\n\\end\n\n\\define new-field()\n<$vars name={{{ [<newFieldNameTiddler>get[text]] }}}>\n<$reveal type=\"nomatch\" text=\"\" default=<<name>>>\n<$button tooltip=<<lingo Fields/Add/Button/Hint>>>\n<$action-sendmessage $message=\"tm-add-field\"\n$name=<<name>>\n$value={{{ [<newFieldValueTiddler>get[text]] }}}/>\n<$action-deletetiddler $filter=\"[<newFieldNameTiddler>] [<newFieldValueTiddler>] [<storeTitle>] [<searchListState>]\"/>\n<<lingo Fields/Add/Button>>\n</$button>\n</$reveal>\n<$reveal type=\"match\" text=\"\" default=<<name>>>\n<$button>\n<<lingo Fields/Add/Button>>\n</$button>\n</$reveal>\n</$vars>\n\\end\n\\whitespace trim\n\n<div class=\"tc-edit-fields\">\n<table class={{{ [all[current]fields[]] :filter[lookup[$:/config/EditTemplateFields/Visibility/]!match[hide]] +[count[]!match[0]] +[then[tc-edit-fields]] ~[[tc-edit-fields tc-edit-fields-small]] }}}>\n<tbody>\n<$list filter=\"[all[current]fields[]] +[sort[title]]\" variable=\"currentField\" storyview=\"pop\">\n<$list filter=<<config-filter>> variable=\"temp\">\n<tr class=\"tc-edit-field\">\n<td class=\"tc-edit-field-name\">\n<$text text=<<currentField>>/>:</td>\n<td class=\"tc-edit-field-value\">\n<$keyboard key=\"((delete-field))\" actions=\"\"\"<$action-deletefield $field=<<currentField>>/><$set name=\"currentTiddlerCSSescaped\" value={{{ [<currentTiddler>escapecss[]] }}}><$action-sendmessage $message=\"tm-focus-selector\" $param=<<current-tiddler-new-field-selector>>/></$set>\"\"\">\n<$edit-text tiddler=<<currentTiddler>> field=<<currentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} tabindex={{$:/config/EditTabIndex}} cancelPopups=\"yes\"/>\n</$keyboard>\n</td>\n<td class=\"tc-edit-field-remove\">\n<$button class=\"tc-btn-invisible\" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>\n<$action-deletefield $field=<<currentField>>/><$set name=\"currentTiddlerCSSescaped\" value={{{ [<currentTiddler>escapecss[]] }}}><$action-sendmessage $message=\"tm-focus-selector\" $param=<<current-tiddler-new-field-selector>>/></$set>\n{{$:/core/images/delete-button}}\n</$button>\n</td>\n</tr>\n</$list>\n</$list>\n</tbody>\n</table>\n</div>\n\n<$fieldmangler>\n<div class=\"tc-edit-field-add\">\n<em class=\"tc-edit tc-big-gap-right\">\n<<lingo Fields/Add/Prompt>>\n</em>\n<$vars refreshTitle=<<qualify \"$:/temp/fieldname/refresh\">> storeTitle=<<newFieldNameInputTiddler>> searchListState=<<newFieldNameSelectionTiddler>>>\n<div class=\"tc-edit-field-add-name-wrapper\">\n<$macrocall $name=\"keyboard-driven-input\" tiddler=<<newFieldNameTiddler>> storeTitle=<<storeTitle>> refreshTitle=<<refreshTitle>>\n\t\tselectionStateTitle=<<searchListState>> tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}}\n\t\tfocusPopup=<<qualify \"$:/state/popup/field-dropdown\">> class=\"tc-edit-texteditor tc-popup-handle\" tabindex={{$:/config/EditTabIndex}}\n\t\tfocus={{{ [{$:/config/AutoFocus}match[fields]then[true]] ~[[false]] }}} cancelPopups=\"yes\"\n\t\tconfigTiddlerFilter=\"[[$:/config/EditMode/fieldname-filter]]\" inputCancelActions=<<cancel-search-actions>> />\n<$button popup=<<qualify \"$:/state/popup/field-dropdown\">> class=\"tc-btn-invisible tc-btn-dropdown tc-small-gap\" tooltip={{$:/language/EditTemplate/Field/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Field/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button>\n<$reveal state=<<qualify \"$:/state/popup/field-dropdown\">> type=\"nomatch\" text=\"\" default=\"\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$linkcatcher to=<<newFieldNameTiddler>>>\n<div class=\"tc-dropdown-item\">\n<<lingo Fields/Add/Dropdown/User>>\n</div>\n<$set name=\"newFieldName\" value={{{ [<storeTitle>get[text]] }}}>\n<$list filter=\"[!is[shadow]!is[system]fields[]search:title<newFieldName>sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type\" variable=\"currentField\">\n<$list filter=\"[<currentField>addsuffix[-primaryList]] -[<searchListState>get[text]]\" emptyMessage=\"\"\"<$link to=<<currentField>> class=\"tc-list-item-selected\"><$text text=<<currentField>>/></$link>\"\"\">\n<$link to=<<currentField>>>\n<$text text=<<currentField>>/>\n</$link>\n</$list>\n</$list>\n<div class=\"tc-dropdown-item\">\n<<lingo Fields/Add/Dropdown/System>>\n</div>\n<$list filter=\"[fields[]search:title<newFieldName>sort[]] -[!is[shadow]!is[system]fields[]]\" variable=\"currentField\">\n<$list filter=\"[<currentField>addsuffix[-secondaryList]] -[<searchListState>get[text]]\" emptyMessage=\"\"\"<$link to=<<currentField>> class=\"tc-list-item-selected\"><$text text=<<currentField>>/></$link>\"\"\">\n<$link to=<<currentField>>>\n<$text text=<<currentField>>/>\n</$link>\n</$list>\n</$list>\n</$set>\n</$linkcatcher>\n</$set>\n</div>\n</$reveal>\n</div>\n<span class=\"tc-edit-field-add-value tc-small-gap-right\">\n<$set name=\"currentTiddlerCSSescaped\" value={{{ [<currentTiddler>escapecss[]] }}}>\n<$keyboard key=\"((add-field))\" actions=<<new-field-actions>>>\n<$edit-text tiddler=<<newFieldValueTiddler>> tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class=\"tc-edit-texteditor\" tabindex={{$:/config/EditTabIndex}} cancelPopups=\"yes\"/>\n</$keyboard>\n</$set>\n</span>\n<span class=\"tc-edit-field-add-button\">\n<$macrocall $name=\"new-field\"/>\n</span>\n</$vars>\n</div>\n</$fieldmangler>\n"
+ },
+ "$:/core/ui/EditTemplate/shadow": {
+ "title": "$:/core/ui/EditTemplate/shadow",
+ "tags": "$:/tags/EditTemplate",
+ "text": "\\define lingo-base() $:/language/EditTemplate/Shadow/\n\\define pluginLinkBody()\n<$link to=\"\"\"$(pluginTitle)$\"\"\">\n<$text text=\"\"\"$(pluginTitle)$\"\"\"/>\n</$link>\n\\end\n<$list filter=\"[all[current]get[draft.of]is[shadow]!is[tiddler]]\">\n\n<$list filter=\"[all[current]shadowsource[]]\" variable=\"pluginTitle\">\n\n<$set name=\"pluginLink\" value=<<pluginLinkBody>>>\n<div class=\"tc-message-box\">\n\n<<lingo Warning>>\n\n</div>\n</$set>\n</$list>\n\n</$list>\n\n<$list filter=\"[all[current]get[draft.of]is[shadow]is[tiddler]]\">\n\n<$list filter=\"[all[current]shadowsource[]]\" variable=\"pluginTitle\">\n\n<$set name=\"pluginLink\" value=<<pluginLinkBody>>>\n<div class=\"tc-message-box\">\n\n<<lingo OverriddenWarning>>\n\n</div>\n</$set>\n</$list>\n\n</$list>"
+ },
+ "$:/core/ui/EditTemplate/tags": {
+ "title": "$:/core/ui/EditTemplate/tags",
+ "tags": "$:/tags/EditTemplate",
+ "text": "\\whitespace trim\n\n\\define lingo-base() $:/language/EditTemplate/\n\n\\define tag-styles()\nbackground-color:$(backgroundColor)$;\nfill:$(foregroundColor)$;\ncolor:$(foregroundColor)$;\n\\end\n\n\\define tag-body-inner(colour,fallbackTarget,colourA,colourB,icon,tagField:\"tags\")\n\\whitespace trim\n<$vars foregroundColor=<<contrastcolour target:\"\"\"$colour$\"\"\" fallbackTarget:\"\"\"$fallbackTarget$\"\"\" colourA:\"\"\"$colourA$\"\"\" colourB:\"\"\"$colourB$\"\"\">> backgroundColor=\"\"\"$colour$\"\"\">\n<span style=<<tag-styles>> class=\"tc-tag-label tc-tag-list-item\">\n<$transclude tiddler=\"\"\"$icon$\"\"\"/><$view field=\"title\" format=\"text\" />\n<$button class=\"tc-btn-invisible tc-remove-tag-button\"><$action-listops $tiddler=<<saveTiddler>> $field=<<__tagField__>> $subfilter=\"-[{!!title}]\"/>{{$:/core/images/close-button}}</$button>\n</span>\n</$vars>\n\\end\n\n\\define tag-body(colour,palette,icon,tagField:\"tags\")\n<$macrocall $name=\"tag-body-inner\" colour=\"\"\"$colour$\"\"\" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} icon=\"\"\"$icon$\"\"\" tagField=<<__tagField__>>/>\n\\end\n\n\\define edit-tags-template(tagField:\"tags\")\n\\whitespace trim\n<div class=\"tc-edit-tags\">\n<$list filter=\"[list[!!$tagField$]sort[title]]\" storyview=\"pop\">\n<$macrocall $name=\"tag-body\" colour={{!!color}} palette={{$:/palette}} icon={{!!icon}} tagField=<<__tagField__>>/>\n</$list>\n<$vars tabIndex={{$:/config/EditTabIndex}} cancelPopups=\"yes\">\n<$macrocall $name=\"tag-picker\" tagField=<<__tagField__>>/>\n</$vars>\n</div>\n\\end\n<$set name=\"saveTiddler\" value=<<currentTiddler>>>\n<$macrocall $name=\"edit-tags-template\" tagField=<<tagField>>/>\n</$set>\n"
+ },
+ "$:/core/ui/EditTemplate/title": {
+ "title": "$:/core/ui/EditTemplate/title",
+ "tags": "$:/tags/EditTemplate",
+ "text": "<$edit-text field=\"draft.title\" class=\"tc-titlebar tc-edit-texteditor\" focus={{{ [{$:/config/AutoFocus}match[title]then[true]] ~[[false]] }}} tabindex={{$:/config/EditTabIndex}} cancelPopups=\"yes\"/>\n\n<$vars pattern=\"\"\"[\\|\\[\\]{}]\"\"\" bad-chars=\"\"\"`| [ ] { }`\"\"\">\n\n<$list filter=\"[all[current]regexp:draft.title<pattern>]\" variable=\"listItem\">\n\n<div class=\"tc-message-box\">\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}\n\n</div>\n\n</$list>\n\n</$vars>\n\n<$reveal state=\"!!draft.title\" type=\"nomatch\" text={{!!draft.of}} tag=\"div\">\n\n<$list filter=\"[{!!draft.title}!is[missing]]\" variable=\"listItem\">\n\n<div class=\"tc-message-box\">\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}\n\n</div>\n\n</$list>\n\n<$list filter=\"[{!!draft.of}!is[missing]]\" variable=\"listItem\">\n\n<$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}>\n\n<$checkbox tiddler=\"$:/config/RelinkOnRename\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> {{$:/language/EditTemplate/Title/Relink/Prompt}}</$checkbox>\n\n<$list filter=\"[title<fromTitle>backlinks[]limit[1]]\" variable=\"listItem\">\n\n<$vars stateTiddler=<<qualify \"$:/state/edit/references\">> >\n\n<$reveal type=\"nomatch\" state=<<stateTiddler>> text=\"show\">\n<$button set=<<stateTiddler>> setTo=\"show\" class=\"tc-btn-invisible\">{{$:/core/images/right-arrow}} \n<<lingo EditTemplate/Title/References/Prompt>></$button>\n</$reveal>\n<$reveal type=\"match\" state=<<stateTiddler>> text=\"show\">\n<$button set=<<stateTiddler>> setTo=\"hide\" class=\"tc-btn-invisible\">{{$:/core/images/down-arrow}} \n<<lingo EditTemplate/Title/References/Prompt>></$button>\n</$reveal>\n\n<$reveal type=\"match\" state=<<stateTiddler>> text=\"show\">\n<$tiddler tiddler=<<fromTitle>> >\n<$transclude tiddler=\"$:/core/ui/TiddlerInfo/References\"/>\n</$tiddler>\n</$reveal>\n\n</$vars>\n\n</$list>\n\n</$vars>\n\n</$list>\n\n</$reveal>\n"
+ },
+ "$:/core/ui/EditTemplate/type": {
+ "title": "$:/core/ui/EditTemplate/type",
+ "tags": "$:/tags/EditTemplate",
+ "first-search-filter": "[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]sort[description]sort[group-sort]removeprefix[$:/language/Docs/Types/]search<userInput>]",
+ "text": "\\define lingo-base() $:/language/EditTemplate/\n\\define input-cancel-actions() <$list filter=\"[<storeTitle>get[text]] [<currentTiddler>get[type]] +[limit[1]]\" emptyMessage=\"\"\"<<cancel-delete-tiddler-actions \"cancel\">>\"\"\"><$action-sendmessage $message=\"tm-remove-field\" $param=\"type\"/><$action-deletetiddler $filter=\"[<typeInputTiddler>] [<refreshTitle>] [<typeSelectionTiddler>]\"/></$list>\n\\whitespace trim\n<$set name=\"refreshTitle\" value=<<qualify \"$:/temp/type-search/refresh\">>>\n<div class=\"tc-edit-type-selector-wrapper\">\n<em class=\"tc-edit tc-big-gap-right\"><<lingo Type/Prompt>></em>\n<div class=\"tc-type-selector-dropdown-wrapper\">\n<div class=\"tc-type-selector\"><$fieldmangler>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=<<currentTiddler>> storeTitle=<<typeInputTiddler>> refreshTitle=<<refreshTitle>> selectionStateTitle=<<typeSelectionTiddler>> field=\"type\" tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=<<qualify \"$:/state/popup/type-dropdown\">> class=\"tc-edit-typeeditor tc-edit-texteditor tc-popup-handle\" tabindex={{$:/config/EditTabIndex}} focus={{{ [{$:/config/AutoFocus}match[type]then[true]] ~[[false]] }}} cancelPopups=\"yes\" configTiddlerFilter=\"[[$:/core/ui/EditTemplate/type]]\" inputCancelActions=<<input-cancel-actions>>/><$button popup=<<qualify \"$:/state/popup/type-dropdown\">> class=\"tc-btn-invisible tc-btn-dropdown tc-small-gap\" tooltip={{$:/language/EditTemplate/Type/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Type/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button><$button message=\"tm-remove-field\" param=\"type\" class=\"tc-btn-invisible tc-btn-icon\" tooltip={{$:/language/EditTemplate/Type/Delete/Hint}} aria-label={{$:/language/EditTemplate/Type/Delete/Caption}}>{{$:/core/images/delete-button}}<$action-deletetiddler $filter=\"[<storeTitle>] [<refreshTitle>] [<selectionStateTitle>]\"/></$button>\n</$fieldmangler></div>\n\n<div class=\"tc-block-dropdown-wrapper\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$reveal state=<<qualify \"$:/state/popup/type-dropdown\">> type=\"nomatch\" text=\"\" default=\"\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<$linkcatcher to=\"!!type\">\n<$list filter='[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]each[group]sort[group-sort]]'>\n<div class=\"tc-dropdown-item\">\n<$text text={{!!group}}/>\n</div>\n<$set name=\"userInput\" value={{{ [<typeInputTiddler>get[text]] }}}>\n<$list filter=\"[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]group{!!group}] +[sort[description]] +[removeprefix[$:/language/Docs/Types/]] +[search<userInput>]\"><span class={{{ [<currentTiddler>addsuffix[-primaryList]] -[<typeSelectionTiddler>get[text]] +[then[]else[tc-list-item-selected]] }}}><$link to={{{ [<currentTiddler>addprefix[$:/language/Docs/Types/]get[name]] }}}><$view tiddler={{{ [<currentTiddler>addprefix[$:/language/Docs/Types/]] }}} field=\"description\"/> (<$view tiddler={{{ [<currentTiddler>addprefix[$:/language/Docs/Types/]] }}} field=\"name\"/>)</$link></span>\n</$list>\n</$set>\n</$list>\n</$linkcatcher>\n</div>\n</$reveal>\n</$set>\n</div>\n</div>\n</div>\n</$set>\n"
+ },
+ "$:/core/ui/EditTemplate": {
+ "title": "$:/core/ui/EditTemplate",
+ "text": "\\define delete-edittemplate-state-tiddlers() <$action-deletetiddler $filter=\"[<newFieldNameTiddler>] [<newFieldValueTiddler>] [<newFieldNameInputTiddler>] [<newFieldNameSelectionTiddler>] [<newTagNameTiddler>] [<newTagNameInputTiddler>] [<newTagNameSelectionTiddler>] [<typeInputTiddler>] [<typeSelectionTiddler>]\"/>\n\\define save-tiddler-actions()\n<$action-sendmessage $message=\"tm-add-tag\" $param={{{ [<newTagNameTiddler>get[text]] }}}/>\n<$action-sendmessage $message=\"tm-add-field\" $name={{{ [<newFieldNameTiddler>get[text]] }}} $value={{{ [<newFieldValueTiddler>get[text]] }}}/>\n<<delete-edittemplate-state-tiddlers>>\n<$action-sendmessage $message=\"tm-save-tiddler\"/>\n\\end\n\\define cancel-delete-tiddler-actions(message)\n<<delete-edittemplate-state-tiddlers>>\n<$action-sendmessage $message=\"tm-$message$-tiddler\"/>\n\\end\n<div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-edit-frame [<currentTiddler>is[tiddler]then[tc-tiddler-exists]] [<currentTiddler>is[missing]!is[shadow]then[tc-tiddler-missing]] [<currentTiddler>is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [<currentTiddler>is[system]then[tc-tiddler-system]] [{!!class}] [<currentTiddler>tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}>\n<$fieldmangler>\n<$vars storyTiddler=<<currentTiddler>> newTagNameTiddler=<<qualify \"$:/temp/NewTagName\">> newFieldNameTiddler=<<qualify \"$:/temp/NewFieldName\">> newFieldValueTiddler=<<qualify \"$:/temp/NewFieldValue\">> newFieldNameInputTiddler=<<qualify \"$:/temp/NewFieldName/input\">> newFieldNameSelectionTiddler=<<qualify \"$:/temp/NewFieldName/selected-item\">> newTagNameInputTiddler=<<qualify \"$:/temp/NewTagName/input\">> newTagNameSelectionTiddler=<<qualify \"$:/temp/NewTagName/selected-item\">> typeInputTiddler=<<qualify \"$:/temp/Type/input\">> typeSelectionTiddler=<<qualify \"$:/temp/Type/selected-item\">>>\n<$keyboard key=\"((cancel-edit-tiddler))\" actions=<<cancel-delete-tiddler-actions \"cancel\">>>\n<$keyboard key=\"((save-tiddler))\" actions=<<save-tiddler-actions>>>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditTemplate]!has[draft.of]]\" variable=\"listItem\">\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n<$transclude tiddler=<<listItem>>/>\n</$set>\n</$list>\n</$keyboard>\n</$keyboard>\n</$vars>\n</$fieldmangler>\n</div>\n"
+ },
+ "$:/core/ui/Buttons/cancel": {
+ "title": "$:/core/ui/Buttons/cancel",
+ "tags": "$:/tags/EditToolbar",
+ "caption": "{{$:/core/images/cancel-button}} {{$:/language/Buttons/Cancel/Caption}}",
+ "description": "{{$:/language/Buttons/Cancel/Hint}}",
+ "text": "\\whitespace trim\n<$button actions=<<cancel-delete-tiddler-actions \"cancel\">> tooltip={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/cancel-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Cancel/Caption}}/></span>\n</$list>\n</$button>\n"
+ },
+ "$:/core/ui/Buttons/delete": {
+ "title": "$:/core/ui/Buttons/delete",
+ "tags": "$:/tags/EditToolbar $:/tags/ViewToolbar",
+ "caption": "{{$:/core/images/delete-button}} {{$:/language/Buttons/Delete/Caption}}",
+ "description": "{{$:/language/Buttons/Delete/Hint}}",
+ "text": "\\whitespace trim\n<$button actions=<<cancel-delete-tiddler-actions \"delete\">> tooltip={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/delete-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Delete/Caption}}/></span>\n</$list>\n</$button>\n"
+ },
+ "$:/core/ui/Buttons/save": {
+ "title": "$:/core/ui/Buttons/save",
+ "tags": "$:/tags/EditToolbar",
+ "caption": "{{$:/core/images/done-button}} {{$:/language/Buttons/Save/Caption}}",
+ "description": "{{$:/language/Buttons/Save/Hint}}",
+ "text": "\\define save-tiddler-button()\n\\whitespace trim\n<$fieldmangler><$button tooltip={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<<tv-config-toolbar-class>>>\n<<save-tiddler-actions>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/done-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Save/Caption}}/></span>\n</$list>\n</$button></$fieldmangler>\n\\end\n<<save-tiddler-button>>\n"
+ },
+ "$:/core/ui/EditorToolbar/bold": {
+ "title": "$:/core/ui/EditorToolbar/bold",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/bold",
+ "caption": "{{$:/language/Buttons/Bold/Caption}}",
+ "description": "{{$:/language/Buttons/Bold/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((bold))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"''\"\n\tsuffix=\"''\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/clear-dropdown": {
+ "title": "$:/core/ui/EditorToolbar/clear-dropdown",
+ "text": "''{{$:/language/Buttons/Clear/Hint}}''\n\n<div class=\"tc-colour-chooser\">\n\n<$macrocall $name=\"colour-picker\" actions=\"\"\"\n\n<$action-sendmessage\n\t$message=\"tm-edit-bitmap-operation\"\n\t$param=\"clear\"\n\tcolour=<<colour-picker-value>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n\"\"\"/>\n\n</div>\n"
+ },
+ "$:/core/ui/EditorToolbar/clear": {
+ "title": "$:/core/ui/EditorToolbar/clear",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/erase",
+ "caption": "{{$:/language/Buttons/Clear/Caption}}",
+ "description": "{{$:/language/Buttons/Clear/Hint}}",
+ "condition": "[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]",
+ "dropdown": "$:/core/ui/EditorToolbar/clear-dropdown",
+ "text": ""
+ },
+ "$:/core/ui/EditorToolbar/editor-height-dropdown": {
+ "title": "$:/core/ui/EditorToolbar/editor-height-dropdown",
+ "text": "\\define lingo-base() $:/language/Buttons/EditorHeight/\n''<<lingo Hint>>''\n\n<$radio tiddler=\"$:/config/TextEditor/EditorHeight/Mode\" value=\"auto\"> {{$:/core/images/auto-height}} <<lingo Caption/Auto>></$radio>\n\n<$radio tiddler=\"$:/config/TextEditor/EditorHeight/Mode\" value=\"fixed\"> {{$:/core/images/fixed-height}} <<lingo Caption/Fixed>> <$edit-text tag=\"input\" tiddler=\"$:/config/TextEditor/EditorHeight/Height\" default=\"100px\"/></$radio>\n"
+ },
+ "$:/core/ui/EditorToolbar/editor-height": {
+ "title": "$:/core/ui/EditorToolbar/editor-height",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/fixed-height",
+ "custom-icon": "yes",
+ "caption": "{{$:/language/Buttons/EditorHeight/Caption}}",
+ "description": "{{$:/language/Buttons/EditorHeight/Hint}}",
+ "condition": "[<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] [<targetTiddler>get[type]match[application/javascript]] [<targetTiddler>get[type]match[application/json]] [<targetTiddler>get[type]match[application/x-tiddler-dictionary]] [<targetTiddler>get[type]match[image/svg+xml]] +[first[]]",
+ "dropdown": "$:/core/ui/EditorToolbar/editor-height-dropdown",
+ "text": "<$reveal tag=\"span\" state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"fixed\">\n{{$:/core/images/fixed-height}}\n</$reveal>\n<$reveal tag=\"span\" state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"auto\">\n{{$:/core/images/auto-height}}\n</$reveal>\n"
+ },
+ "$:/core/ui/EditorToolbar/excise-dropdown": {
+ "title": "$:/core/ui/EditorToolbar/excise-dropdown",
+ "text": "\\define lingo-base() $:/language/Buttons/Excise/\n\n\\define body(config-title)\n''<<lingo Hint>>''\n\n<<lingo Caption/NewTitle>> <$edit-text tag=\"input\" tiddler=\"$config-title$/new-title\" default=\"\" focus=\"true\"/>\n\n<$set name=\"new-title\" value={{$config-title$/new-title}}>\n<$list filter=\"\"\"[<new-title>is[tiddler]]\"\"\">\n<div class=\"tc-error\">\n<<lingo Caption/TiddlerExists>>\n</div>\n</$list>\n</$set>\n\n<$checkbox tiddler=\"\"\"$config-title$/tagnew\"\"\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"false\"> <<lingo Caption/Tag>></$checkbox>\n\n<<lingo Caption/Replace>> <$select tiddler=\"\"\"$config-title$/type\"\"\" default=\"transclude\">\n<option value=\"link\"><<lingo Caption/Replace/Link>></option>\n<option value=\"transclude\"><<lingo Caption/Replace/Transclusion>></option>\n<option value=\"macro\"><<lingo Caption/Replace/Macro>></option>\n</$select>\n\n<$reveal state=\"\"\"$config-title$/type\"\"\" type=\"match\" text=\"macro\">\n<<lingo Caption/MacroName>> <$edit-text tag=\"input\" tiddler=\"\"\"$config-title$/macro-title\"\"\" default=\"translink\"/>\n</$reveal>\n\n<$button>\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"excise\"\n\ttitle={{$config-title$/new-title}}\n\ttype={{$config-title$/type}}\n\tmacro={{$config-title$/macro-title}}\n\ttagnew={{$config-title$/tagnew}}\n/>\n<$action-deletetiddler\n\t$tiddler=\"$config-title$/new-title\"\n/>\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n<<lingo Caption/Excise>>\n</$button>\n\\end\n\n<$macrocall $name=\"body\" config-title=<<qualify \"$:/state/Excise/\">>/>\n"
+ },
+ "$:/core/ui/EditorToolbar/excise": {
+ "title": "$:/core/ui/EditorToolbar/excise",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/excise",
+ "caption": "{{$:/language/Buttons/Excise/Caption}}",
+ "description": "{{$:/language/Buttons/Excise/Hint}}",
+ "condition": "[<targetTiddler>type[]] [<targetTiddler>type[text/vnd.tiddlywiki]] +[first[]]",
+ "shortcuts": "((excise))",
+ "dropdown": "$:/core/ui/EditorToolbar/excise-dropdown",
+ "text": ""
+ },
+ "$:/core/ui/EditorToolbar/heading-1": {
+ "title": "$:/core/ui/EditorToolbar/heading-1",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/heading-1",
+ "caption": "{{$:/language/Buttons/Heading1/Caption}}",
+ "description": "{{$:/language/Buttons/Heading1/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "button-classes": "tc-text-editor-toolbar-item-start-group",
+ "shortcuts": "((heading-1))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"1\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/heading-2": {
+ "title": "$:/core/ui/EditorToolbar/heading-2",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/heading-2",
+ "caption": "{{$:/language/Buttons/Heading2/Caption}}",
+ "description": "{{$:/language/Buttons/Heading2/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((heading-2))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"2\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/heading-3": {
+ "title": "$:/core/ui/EditorToolbar/heading-3",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/heading-3",
+ "caption": "{{$:/language/Buttons/Heading3/Caption}}",
+ "description": "{{$:/language/Buttons/Heading3/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((heading-3))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"3\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/heading-4": {
+ "title": "$:/core/ui/EditorToolbar/heading-4",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/heading-4",
+ "caption": "{{$:/language/Buttons/Heading4/Caption}}",
+ "description": "{{$:/language/Buttons/Heading4/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((heading-4))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"4\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/heading-5": {
+ "title": "$:/core/ui/EditorToolbar/heading-5",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/heading-5",
+ "caption": "{{$:/language/Buttons/Heading5/Caption}}",
+ "description": "{{$:/language/Buttons/Heading5/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((heading-5))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"5\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/heading-6": {
+ "title": "$:/core/ui/EditorToolbar/heading-6",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/heading-6",
+ "caption": "{{$:/language/Buttons/Heading6/Caption}}",
+ "description": "{{$:/language/Buttons/Heading6/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((heading-6))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"6\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/italic": {
+ "title": "$:/core/ui/EditorToolbar/italic",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/italic",
+ "caption": "{{$:/language/Buttons/Italic/Caption}}",
+ "description": "{{$:/language/Buttons/Italic/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((italic))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"//\"\n\tsuffix=\"//\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/line-width-dropdown": {
+ "title": "$:/core/ui/EditorToolbar/line-width-dropdown",
+ "text": "\\define lingo-base() $:/language/Buttons/LineWidth/\n\n\\define toolbar-line-width-inner()\n<$button tag=\"a\" tooltip=\"\"\"$(line-width)$\"\"\">\n\n<$action-setfield\n\t$tiddler=\"$:/config/BitmapEditor/LineWidth\"\n\t$value=\"$(line-width)$\"\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<div style=\"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;\"/>\n\n<span style=\"margin-left: 8px;\">\n\n<$text text=\"\"\"$(line-width)$\"\"\"/>\n\n<$reveal state=\"$:/config/BitmapEditor/LineWidth\" type=\"match\" text=\"\"\"$(line-width)$\"\"\" tag=\"span\">\n\n<$entity entity=\" \"/>\n\n<$entity entity=\"✓\"/>\n\n</$reveal>\n\n</span>\n\n</$button>\n\\end\n\n''<<lingo Hint>>''\n\n<$list filter={{$:/config/BitmapEditor/LineWidths}} variable=\"line-width\">\n\n<<toolbar-line-width-inner>>\n\n</$list>\n"
+ },
+ "$:/core/ui/EditorToolbar/line-width": {
+ "title": "$:/core/ui/EditorToolbar/line-width",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/line-width",
+ "caption": "{{$:/language/Buttons/LineWidth/Caption}}",
+ "description": "{{$:/language/Buttons/LineWidth/Hint}}",
+ "condition": "[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]",
+ "dropdown": "$:/core/ui/EditorToolbar/line-width-dropdown",
+ "text": "<$text text={{$:/config/BitmapEditor/LineWidth}}/>\n"
+ },
+ "$:/core/ui/EditorToolbar/link-dropdown": {
+ "title": "$:/core/ui/EditorToolbar/link-dropdown",
+ "text": "\\define lingo-base() $:/language/Buttons/Link/\n\n\\define add-link-actions()\n<$action-sendmessage $message=\"tm-edit-text-operation\" $param=\"make-link\" text={{$(linkTiddler)$}} />\n<$action-deletetiddler $filter=\"[<dropdown-state>] [<searchTiddler>] [<linkTiddler>] [<storeTitle>] [<searchListState>]\"/>\n\\end\n\n\\define get-focus-selector() [data-tiddler-title=\"$(cssEscapedTitle)$\"] .tc-create-wikitext-link input\n\n\\define cancel-search-actions-inner()\n<$set name=\"userInput\" value={{{ [<storeTitle>get[text]] }}}><$list filter=\"[<searchTiddler>get[text]!match<userInput>]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[<searchTiddler>] [<linkTiddler>] [<storeTitle>] [<searchListState>]\"/>\"\"\"><$action-setfield $tiddler=<<searchTiddler>> text=<<userInput>>/><$action-setfield $tiddler=<<refreshTitle>> text=\"yes\"/></$list></$set>\n\\end\n\n\\define cancel-search-actions() <$list filter=\"[<storeTitle>!has[text]] +[<searchTiddler>!has[text]]\" emptyMessage=\"\"\"<<cancel-search-actions-inner>>\"\"\"><$action-sendmessage $message=\"tm-edit-text-operation\" $param=\"wrap-selection\" prefix=\"\" suffix=\"\"/></$list>\n\n\\define external-link()\n<$button class=\"tc-btn-invisible\" style=\"width: auto; display: inline-block; background-colour: inherit;\" actions=<<add-link-actions>>>\n{{$:/core/images/chevron-right}}\n</$button>\n\\end\n\n\\define set-next-input-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab/search-results/sidebar\" tag=\"$:/tags/SearchResults\" beforeafter=\"$beforeafter$\" defaultState={{$:/config/SearchResults/Default}} actions=\"\"\"<$action-setfield $tiddler=\"$:/state/search/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define body(config-title)\n''<<lingo Hint>>''\n\n<$vars searchTiddler=\"\"\"$config-title$/search\"\"\" linkTiddler=\"\"\"$config-title$/link\"\"\" linktext=\"\" searchListState=<<qualify \"$:/temp/link-search/selected-item\">> refreshTitle=<<qualify \"$:/temp/link-search/refresh\">> storeTitle=<<qualify \"$:/temp/link-search/input\">>>\n\n<$vars linkTiddler=<<searchTiddler>>>\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">> class=\"tc-create-wikitext-link\">\n<$macrocall $name=\"keyboard-driven-input\" tiddler=<<searchTiddler>> storeTitle=<<storeTitle>>\n\t\tselectionStateTitle=<<searchListState>> refreshTitle=<<refreshTitle>> type=\"search\" filterMinLength=\"1\"\n\t\ttag=\"input\" focus=\"true\" class=\"tc-popup-handle\" inputCancelActions=<<cancel-search-actions>> \n\t\tinputAcceptActions=<<add-link-actions>> placeholder={{$:/language/Search/Search}} default=\"\" \n\t\tconfigTiddlerFilter=\"[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]\" />\n</$keyboard>\n</$keyboard>\n<$reveal tag=\"span\" state=<<storeTitle>> type=\"nomatch\" text=\"\">\n<<external-link>>\n<$button class=\"tc-btn-invisible\" style=\"width: auto; display: inline-block; background-colour: inherit;\">\n<<cancel-search-actions>><$set name=\"cssEscapedTitle\" value={{{ [<storyTiddler>escapecss[]] }}}><$action-sendmessage $message=\"tm-focus-selector\" $param=<<get-focus-selector>>/></$set>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</$vars>\n\n<$reveal tag=\"div\" state=<<storeTitle>> type=\"nomatch\" text=\"\">\n\n<$linkcatcher actions=<<add-link-actions>> to=<<linkTiddler>>>\n\n<$vars userInput={{{ [<storeTitle>get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}}>\n\n{{$:/core/ui/SearchResults}}\n\n</$vars>\n\n</$linkcatcher>\n\n</$reveal>\n\n</$vars>\n\n\\end\n\n<$macrocall $name=\"body\" config-title=<<qualify \"$:/state/Link/\">>/>\n"
+ },
+ "$:/core/ui/EditorToolbar/link": {
+ "title": "$:/core/ui/EditorToolbar/link",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/link",
+ "caption": "{{$:/language/Buttons/Link/Caption}}",
+ "description": "{{$:/language/Buttons/Link/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "button-classes": "tc-text-editor-toolbar-item-start-group",
+ "shortcuts": "((link))",
+ "dropdown": "$:/core/ui/EditorToolbar/link-dropdown",
+ "text": ""
+ },
+ "$:/core/ui/EditorToolbar/linkify": {
+ "title": "$:/core/ui/EditorToolbar/linkify",
+ "caption": "{{$:/language/Buttons/Linkify/Caption}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "description": "{{$:/language/Buttons/Linkify/Hint}}",
+ "icon": "$:/core/images/linkify",
+ "list-before": "$:/core/ui/EditorToolbar/mono-block",
+ "shortcuts": "((linkify))",
+ "tags": "$:/tags/EditorToolbar",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"[[\"\n\tsuffix=\"]]\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/list-bullet": {
+ "title": "$:/core/ui/EditorToolbar/list-bullet",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/list-bullet",
+ "caption": "{{$:/language/Buttons/ListBullet/Caption}}",
+ "description": "{{$:/language/Buttons/ListBullet/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((list-bullet))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"*\"\n\tcount=\"1\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/list-number": {
+ "title": "$:/core/ui/EditorToolbar/list-number",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/list-number",
+ "caption": "{{$:/language/Buttons/ListNumber/Caption}}",
+ "description": "{{$:/language/Buttons/ListNumber/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((list-number))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"#\"\n\tcount=\"1\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/mono-block": {
+ "title": "$:/core/ui/EditorToolbar/mono-block",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/mono-block",
+ "caption": "{{$:/language/Buttons/MonoBlock/Caption}}",
+ "description": "{{$:/language/Buttons/MonoBlock/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "button-classes": "tc-text-editor-toolbar-item-start-group",
+ "shortcuts": "((mono-block))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-lines\"\n\tprefix=\"\n```\"\n\tsuffix=\"```\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/mono-line": {
+ "title": "$:/core/ui/EditorToolbar/mono-line",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/mono-line",
+ "caption": "{{$:/language/Buttons/MonoLine/Caption}}",
+ "description": "{{$:/language/Buttons/MonoLine/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((mono-line))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"`\"\n\tsuffix=\"`\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/more-dropdown": {
+ "title": "$:/core/ui/EditorToolbar/more-dropdown",
+ "text": "\\define config-title()\n$:/config/EditorToolbarButtons/Visibility/$(toolbarItem)$\n\\end\n\n\\define conditional-button()\n<$list filter={{$(toolbarItem)$!!condition}} variable=\"condition\">\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/toolbar/button\" mode=\"inline\"/> <$transclude tiddler=<<toolbarItem>> field=\"description\"/>\n</$list>\n\\end\n\n<div class=\"tc-text-editor-toolbar-more\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]] -[[$:/core/ui/EditorToolbar/more]]\">\n<$reveal type=\"match\" state=<<config-visibility-title>> text=\"hide\" tag=\"div\">\n<<conditional-button>>\n</$reveal>\n</$list>\n</div>\n"
+ },
+ "$:/core/ui/EditorToolbar/more": {
+ "title": "$:/core/ui/EditorToolbar/more",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/down-arrow",
+ "caption": "{{$:/language/Buttons/More/Caption}}",
+ "description": "{{$:/language/Buttons/More/Hint}}",
+ "condition": "[<targetTiddler>]",
+ "dropdown": "$:/core/ui/EditorToolbar/more-dropdown",
+ "text": ""
+ },
+ "$:/core/ui/EditorToolbar/opacity-dropdown": {
+ "title": "$:/core/ui/EditorToolbar/opacity-dropdown",
+ "text": "\\define lingo-base() $:/language/Buttons/Opacity/\n\n\\define toolbar-opacity-inner()\n<$button tag=\"a\" tooltip=\"\"\"$(opacity)$\"\"\">\n\n<$action-setfield\n\t$tiddler=\"$:/config/BitmapEditor/Opacity\"\n\t$value=\"$(opacity)$\"\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<div style=\"display: inline-block; vertical-align: middle; background-color: $(current-paint-colour)$; opacity: $(opacity)$; width: 1em; height: 1em; border-radius: 50%;\"/>\n\n<span style=\"margin-left: 8px;\">\n\n<$text text=\"\"\"$(opacity)$\"\"\"/>\n\n<$reveal state=\"$:/config/BitmapEditor/Opacity\" type=\"match\" text=\"\"\"$(opacity)$\"\"\" tag=\"span\">\n\n<$entity entity=\" \"/>\n\n<$entity entity=\"✓\"/>\n\n</$reveal>\n\n</span>\n\n</$button>\n\\end\n\n\\define toolbar-opacity()\n''<<lingo Hint>>''\n\n<$list filter={{$:/config/BitmapEditor/Opacities}} variable=\"opacity\">\n\n<<toolbar-opacity-inner>>\n\n</$list>\n\\end\n\n<$set name=\"current-paint-colour\" value={{$:/config/BitmapEditor/Colour}}>\n\n<$set name=\"current-opacity\" value={{$:/config/BitmapEditor/Opacity}}>\n\n<<toolbar-opacity>>\n\n</$set>\n\n</$set>\n"
+ },
+ "$:/core/ui/EditorToolbar/opacity": {
+ "title": "$:/core/ui/EditorToolbar/opacity",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/opacity",
+ "caption": "{{$:/language/Buttons/Opacity/Caption}}",
+ "description": "{{$:/language/Buttons/Opacity/Hint}}",
+ "condition": "[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]",
+ "dropdown": "$:/core/ui/EditorToolbar/opacity-dropdown",
+ "text": "<$text text={{$:/config/BitmapEditor/Opacity}}/>\n"
+ },
+ "$:/core/ui/EditorToolbar/paint-dropdown": {
+ "title": "$:/core/ui/EditorToolbar/paint-dropdown",
+ "text": "''{{$:/language/Buttons/Paint/Hint}}''\n\n<$macrocall $name=\"colour-picker\" actions=\"\"\"\n\n<$action-setfield\n\t$tiddler=\"$:/config/BitmapEditor/Colour\"\n\t$value=<<colour-picker-value>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n\"\"\"/>\n"
+ },
+ "$:/core/ui/EditorToolbar/paint": {
+ "title": "$:/core/ui/EditorToolbar/paint",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/paint",
+ "caption": "{{$:/language/Buttons/Paint/Caption}}",
+ "description": "{{$:/language/Buttons/Paint/Hint}}",
+ "condition": "[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]",
+ "dropdown": "$:/core/ui/EditorToolbar/paint-dropdown",
+ "text": "\\define toolbar-paint()\n<div style=\"display: inline-block; vertical-align: middle; background-color: $(colour-picker-value)$; width: 1em; height: 1em; border-radius: 50%;\"/>\n\\end\n<$set name=\"colour-picker-value\" value={{$:/config/BitmapEditor/Colour}}>\n<<toolbar-paint>>\n</$set>\n"
+ },
+ "$:/core/ui/EditorToolbar/picture-dropdown": {
+ "title": "$:/core/ui/EditorToolbar/picture-dropdown",
+ "text": "\\define replacement-text()\n[img[$(imageTitle)$]]\n\\end\n\n''{{$:/language/Buttons/Picture/Hint}}''\n\n<$macrocall $name=\"image-picker\" actions=\"\"\"\n\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"replace-selection\"\n\ttext=<<replacement-text>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n\"\"\"/>\n"
+ },
+ "$:/core/ui/EditorToolbar/picture": {
+ "title": "$:/core/ui/EditorToolbar/picture",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/picture",
+ "caption": "{{$:/language/Buttons/Picture/Caption}}",
+ "description": "{{$:/language/Buttons/Picture/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((picture))",
+ "dropdown": "$:/core/ui/EditorToolbar/picture-dropdown",
+ "text": ""
+ },
+ "$:/core/ui/EditorToolbar/preview-type-dropdown": {
+ "title": "$:/core/ui/EditorToolbar/preview-type-dropdown",
+ "text": "\\define preview-type-button()\n<$button tag=\"a\">\n\n<$action-setfield $tiddler=\"$:/state/editpreviewtype\" $value=\"$(previewType)$\"/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<$transclude tiddler=<<previewType>> field=\"caption\" mode=\"inline\">\n\n<$view tiddler=<<previewType>> field=\"title\" mode=\"inline\"/>\n\n</$transclude> \n\n<$reveal tag=\"span\" state=\"$:/state/editpreviewtype\" type=\"match\" text=<<previewType>> default=\"$:/core/ui/EditTemplate/body/preview/output\">\n\n<$entity entity=\" \"/>\n\n<$entity entity=\"✓\"/>\n\n</$reveal>\n\n</$button>\n\\end\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditPreview]!has[draft.of]]\" variable=\"previewType\">\n\n<<preview-type-button>>\n\n</$list>\n"
+ },
+ "$:/core/ui/EditorToolbar/preview-type": {
+ "title": "$:/core/ui/EditorToolbar/preview-type",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/chevron-down",
+ "caption": "{{$:/language/Buttons/PreviewType/Caption}}",
+ "description": "{{$:/language/Buttons/PreviewType/Hint}}",
+ "condition": "[all[shadows+tiddlers]tag[$:/tags/EditPreview]!has[draft.of]butfirst[]limit[1]]",
+ "button-classes": "tc-text-editor-toolbar-item-adjunct",
+ "dropdown": "$:/core/ui/EditorToolbar/preview-type-dropdown"
+ },
+ "$:/core/ui/EditorToolbar/preview": {
+ "title": "$:/core/ui/EditorToolbar/preview",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/preview-open",
+ "custom-icon": "yes",
+ "caption": "{{$:/language/Buttons/Preview/Caption}}",
+ "description": "{{$:/language/Buttons/Preview/Hint}}",
+ "condition": "[<targetTiddler>]",
+ "button-classes": "tc-text-editor-toolbar-item-start-group",
+ "shortcuts": "((preview))",
+ "text": "<$reveal state=\"$:/state/showeditpreview\" type=\"match\" text=\"yes\" tag=\"span\">\n{{$:/core/images/preview-open}}\n<$action-setfield $tiddler=\"$:/state/showeditpreview\" $value=\"no\"/>\n</$reveal>\n<$reveal state=\"$:/state/showeditpreview\" type=\"nomatch\" text=\"yes\" tag=\"span\">\n{{$:/core/images/preview-closed}}\n<$action-setfield $tiddler=\"$:/state/showeditpreview\" $value=\"yes\"/>\n</$reveal>\n"
+ },
+ "$:/core/ui/EditorToolbar/quote": {
+ "title": "$:/core/ui/EditorToolbar/quote",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/quote",
+ "caption": "{{$:/language/Buttons/Quote/Caption}}",
+ "description": "{{$:/language/Buttons/Quote/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((quote))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-lines\"\n\tprefix=\"\n<<<\"\n\tsuffix=\"<<<\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/rotate-left": {
+ "title": "$:/core/ui/EditorToolbar/rotate-left",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/rotate-left",
+ "caption": "{{$:/language/Buttons/RotateLeft/Caption}}",
+ "description": "{{$:/language/Buttons/RotateLeft/Hint}}",
+ "condition": "[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-bitmap-operation\"\n\t$param=\"rotate-left\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/size-dropdown": {
+ "title": "$:/core/ui/EditorToolbar/size-dropdown",
+ "text": "\\define lingo-base() $:/language/Buttons/Size/\n\n\\define toolbar-button-size-preset(config-title)\n<$set name=\"width\" filter=\"$(sizePair)$ +[first[]]\">\n\n<$set name=\"height\" filter=\"$(sizePair)$ +[last[]]\">\n\n<$button tag=\"a\">\n\n<$action-setfield\n\t$tiddler=\"\"\"$config-title$/new-width\"\"\"\n\t$value=<<width>>\n/>\n\n<$action-setfield\n\t$tiddler=\"\"\"$config-title$/new-height\"\"\"\n\t$value=<<height>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=\"\"\"$config-title$/presets-popup\"\"\"\n/>\n\n<$text text=<<width>>/> × <$text text=<<height>>/>\n\n</$button>\n\n</$set>\n\n</$set>\n\\end\n\n\\define toolbar-button-size(config-title)\n''{{$:/language/Buttons/Size/Hint}}''\n\n<<lingo Caption/Width>> <$edit-text tag=\"input\" tiddler=\"\"\"$config-title$/new-width\"\"\" default=<<tv-bitmap-editor-width>> focus=\"true\" size=\"8\"/> <<lingo Caption/Height>> <$edit-text tag=\"input\" tiddler=\"\"\"$config-title$/new-height\"\"\" default=<<tv-bitmap-editor-height>> size=\"8\"/> <$button popup=\"\"\"$config-title$/presets-popup\"\"\" class=\"tc-btn-invisible tc-popup-keep\" style=\"width: auto; display: inline-block; background-colour: inherit;\" selectedClass=\"tc-selected\">\n{{$:/core/images/down-arrow}}\n</$button>\n\n<$reveal tag=\"span\" state=\"\"\"$config-title$/presets-popup\"\"\" type=\"popup\" position=\"belowleft\" animate=\"yes\">\n\n<div class=\"tc-drop-down tc-popup-keep\">\n\n<$list filter={{$:/config/BitmapEditor/ImageSizes}} variable=\"sizePair\">\n\n<$macrocall $name=\"toolbar-button-size-preset\" config-title=\"$config-title$\"/>\n\n</$list>\n\n</div>\n\n</$reveal>\n\n<$button>\n<$action-sendmessage\n\t$message=\"tm-edit-bitmap-operation\"\n\t$param=\"resize\"\n\twidth={{$config-title$/new-width}}\n\theight={{$config-title$/new-height}}\n/>\n<$action-deletetiddler\n\t$tiddler=\"\"\"$config-title$/new-width\"\"\"\n/>\n<$action-deletetiddler\n\t$tiddler=\"\"\"$config-title$/new-height\"\"\"\n/>\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n<<lingo Caption/Resize>>\n</$button>\n\\end\n\n<$macrocall $name=\"toolbar-button-size\" config-title=<<qualify \"$:/state/Size/\">>/>\n"
+ },
+ "$:/core/ui/EditorToolbar/size": {
+ "title": "$:/core/ui/EditorToolbar/size",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/size",
+ "caption": "{{$:/language/Buttons/Size/Caption}}",
+ "description": "{{$:/language/Buttons/Size/Hint}}",
+ "condition": "[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]",
+ "dropdown": "$:/core/ui/EditorToolbar/size-dropdown",
+ "text": ""
+ },
+ "$:/core/ui/EditorToolbar/stamp-dropdown": {
+ "title": "$:/core/ui/EditorToolbar/stamp-dropdown",
+ "text": "\\define toolbar-button-stamp-inner()\n<$button tag=\"a\">\n\n<$list filter=\"[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]]\">\n\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"replace-selection\"\n\ttext={{$(snippetTitle)$}}\n/>\n\n</$list>\n\n\n<$list filter=\"[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]]\">\n\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix={{{ [[$(snippetTitle)$]addsuffix[/prefix]get[text]] }}}\nsuffix={{{ [[$(snippetTitle)$]addsuffix[/suffix]get[text]] }}}\n/>\n\n</$list>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<$transclude tiddler=<<snippetTitle>> field=\"caption\" mode=\"inline\">\n\n<$view tiddler=<<snippetTitle>> field=\"title\" />\n\n</$transclude>\n\n</$button>\n\\end\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TextEditor/Snippet]!has[draft.of]sort[caption]]\" variable=\"snippetTitle\">\n\n<<toolbar-button-stamp-inner>>\n\n</$list>\n\n----\n\n<$button tag=\"a\">\n\n<$action-sendmessage\n\t$message=\"tm-new-tiddler\"\n\ttags=\"$:/tags/TextEditor/Snippet\"\n\tcaption={{$:/language/Buttons/Stamp/New/Title}}\n\ttext={{$:/language/Buttons/Stamp/New/Text}}\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<em>\n\n<$text text={{$:/language/Buttons/Stamp/Caption/New}}/>\n\n</em>\n\n</$button>\n"
+ },
+ "$:/core/ui/EditorToolbar/stamp": {
+ "title": "$:/core/ui/EditorToolbar/stamp",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/stamp",
+ "caption": "{{$:/language/Buttons/Stamp/Caption}}",
+ "description": "{{$:/language/Buttons/Stamp/Hint}}",
+ "condition": "[<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] [<targetTiddler>get[type]match[application/javascript]] [<targetTiddler>get[type]match[application/json]] [<targetTiddler>get[type]match[application/x-tiddler-dictionary]] [<targetTiddler>get[type]match[image/svg+xml]] +[first[]]",
+ "shortcuts": "((stamp))",
+ "dropdown": "$:/core/ui/EditorToolbar/stamp-dropdown",
+ "text": ""
+ },
+ "$:/core/ui/EditorToolbar/strikethrough": {
+ "title": "$:/core/ui/EditorToolbar/strikethrough",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/strikethrough",
+ "caption": "{{$:/language/Buttons/Strikethrough/Caption}}",
+ "description": "{{$:/language/Buttons/Strikethrough/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((strikethrough))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"~~\"\n\tsuffix=\"~~\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/subscript": {
+ "title": "$:/core/ui/EditorToolbar/subscript",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/subscript",
+ "caption": "{{$:/language/Buttons/Subscript/Caption}}",
+ "description": "{{$:/language/Buttons/Subscript/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((subscript))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\",,\"\n\tsuffix=\",,\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/superscript": {
+ "title": "$:/core/ui/EditorToolbar/superscript",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/superscript",
+ "caption": "{{$:/language/Buttons/Superscript/Caption}}",
+ "description": "{{$:/language/Buttons/Superscript/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((superscript))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"^^\"\n\tsuffix=\"^^\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/transcludify": {
+ "title": "$:/core/ui/EditorToolbar/transcludify",
+ "caption": "{{$:/language/Buttons/Transcludify/Caption}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "description": "{{$:/language/Buttons/Transcludify/Hint}}",
+ "icon": "$:/core/images/transcludify",
+ "list-before": "$:/core/ui/EditorToolbar/mono-block",
+ "shortcuts": "((transcludify))",
+ "tags": "$:/tags/EditorToolbar",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"{{\"\n\tsuffix=\"}}\"\n/>\n"
+ },
+ "$:/core/ui/EditorToolbar/underline": {
+ "title": "$:/core/ui/EditorToolbar/underline",
+ "tags": "$:/tags/EditorToolbar",
+ "icon": "$:/core/images/underline",
+ "caption": "{{$:/language/Buttons/Underline/Caption}}",
+ "description": "{{$:/language/Buttons/Underline/Hint}}",
+ "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]",
+ "shortcuts": "((underline))",
+ "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"__\"\n\tsuffix=\"__\"\n/>\n"
+ },
+ "$:/core/Filters/AllTags": {
+ "title": "$:/core/Filters/AllTags",
+ "tags": "$:/tags/Filter",
+ "filter": "[tags[]!is[system]sort[title]]",
+ "description": "{{$:/language/Filters/AllTags}}",
+ "text": ""
+ },
+ "$:/core/Filters/AllTiddlers": {
+ "title": "$:/core/Filters/AllTiddlers",
+ "tags": "$:/tags/Filter",
+ "filter": "[!is[system]sort[title]]",
+ "description": "{{$:/language/Filters/AllTiddlers}}",
+ "text": ""
+ },
+ "$:/core/Filters/Drafts": {
+ "title": "$:/core/Filters/Drafts",
+ "tags": "$:/tags/Filter",
+ "filter": "[has[draft.of]sort[title]]",
+ "description": "{{$:/language/Filters/Drafts}}",
+ "text": ""
+ },
+ "$:/core/Filters/Missing": {
+ "title": "$:/core/Filters/Missing",
+ "tags": "$:/tags/Filter",
+ "filter": "[all[missing]sort[title]]",
+ "description": "{{$:/language/Filters/Missing}}",
+ "text": ""
+ },
+ "$:/core/Filters/Orphans": {
+ "title": "$:/core/Filters/Orphans",
+ "tags": "$:/tags/Filter",
+ "filter": "[all[orphans]sort[title]]",
+ "description": "{{$:/language/Filters/Orphans}}",
+ "text": ""
+ },
+ "$:/core/Filters/OverriddenShadowTiddlers": {
+ "title": "$:/core/Filters/OverriddenShadowTiddlers",
+ "tags": "$:/tags/Filter",
+ "filter": "[is[shadow]]",
+ "description": "{{$:/language/Filters/OverriddenShadowTiddlers}}",
+ "text": ""
+ },
+ "$:/core/Filters/RecentSystemTiddlers": {
+ "title": "$:/core/Filters/RecentSystemTiddlers",
+ "tags": "$:/tags/Filter",
+ "filter": "[has[modified]!sort[modified]limit[50]]",
+ "description": "{{$:/language/Filters/RecentSystemTiddlers}}",
+ "text": ""
+ },
+ "$:/core/Filters/RecentTiddlers": {
+ "title": "$:/core/Filters/RecentTiddlers",
+ "tags": "$:/tags/Filter",
+ "filter": "[!is[system]has[modified]!sort[modified]limit[50]]",
+ "description": "{{$:/language/Filters/RecentTiddlers}}",
+ "text": ""
+ },
+ "$:/core/Filters/SessionTiddlers": {
+ "title": "$:/core/Filters/SessionTiddlers",
+ "tags": "$:/tags/Filter",
+ "filter": "[haschanged[]]",
+ "description": "{{$:/language/Filters/SessionTiddlers}}",
+ "text": ""
+ },
+ "$:/core/Filters/ShadowTiddlers": {
+ "title": "$:/core/Filters/ShadowTiddlers",
+ "tags": "$:/tags/Filter",
+ "filter": "[all[shadows]sort[title]]",
+ "description": "{{$:/language/Filters/ShadowTiddlers}}",
+ "text": ""
+ },
+ "$:/core/Filters/StoryList": {
+ "title": "$:/core/Filters/StoryList",
+ "tags": "$:/tags/Filter",
+ "filter": "[list[$:/StoryList]] -$:/AdvancedSearch",
+ "description": "{{$:/language/Filters/StoryList}}",
+ "text": ""
+ },
+ "$:/core/Filters/SystemTags": {
+ "title": "$:/core/Filters/SystemTags",
+ "tags": "$:/tags/Filter",
+ "filter": "[all[shadows+tiddlers]tags[]is[system]sort[title]]",
+ "description": "{{$:/language/Filters/SystemTags}}",
+ "text": ""
+ },
+ "$:/core/Filters/SystemTiddlers": {
+ "title": "$:/core/Filters/SystemTiddlers",
+ "tags": "$:/tags/Filter",
+ "filter": "[is[system]sort[title]]",
+ "description": "{{$:/language/Filters/SystemTiddlers}}",
+ "text": ""
+ },
+ "$:/core/Filters/TypedTiddlers": {
+ "title": "$:/core/Filters/TypedTiddlers",
+ "tags": "$:/tags/Filter",
+ "filter": "[!is[system]has[type]each[type]sort[type]] -[type[text/vnd.tiddlywiki]]",
+ "description": "{{$:/language/Filters/TypedTiddlers}}",
+ "text": ""
+ },
+ "$:/core/ui/ImportListing": {
+ "title": "$:/core/ui/ImportListing",
+ "text": "\\define lingo-base() $:/language/Import/\n\n\\define messageField() message-$(payloadTiddler)$\n\n\\define payloadTitleFilter() [<currentTiddler>get<renameField>minlength[1]else<payloadTiddler>]\n\n\\define overWriteWarning()\n<$list filter=\"[<currentTiddler>!has<suppressedField>]\">\n<$text text={{{[subfilter<payloadTitleFilter>!is[tiddler]then[]] ~[<lingo-base>addsuffix[Listing/Rename/OverwriteWarning]get[text]]}}}/>\n</$list>\n\\end\n\n\\define selectionField() selection-$(payloadTiddler)$\n\n\\define renameField() rename-$(payloadTiddler)$\n\n\\define suppressedField() suppressed-$(payloadTiddler)$\n\n\\define newImportTitleTiddler() $:/temp/NewImportTitle-$(payloadTiddler)$\n\n\\define previewPopupState() $(currentTiddler)$!!popup-$(payloadTiddler)$\n\n\\define renameFieldState() $(currentTiddler)$!!state-rename-$(payloadTiddler)$\n\n\\define select-all-actions()\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" variable=\"payloadTiddler\">\n<$action-setfield $field={{{ [<payloadTiddler>addprefix[selection-]] }}} $value={{$:/state/import/select-all}}/>\n</$list>\n\\end\n\n<table class=\"tc-import-table\">\n<tbody>\n<tr>\n<th align=\"left\">\n<$checkbox tiddler=\"$:/state/import/select-all\" field=\"text\" checked=\"checked\" unchecked=\"unchecked\" default=\"checked\" actions=<<select-all-actions>>>\n<<lingo Listing/Select/Caption>>\n</$checkbox>\n</th>\n<th>\n<<lingo Listing/Title/Caption>>\n</th>\n<th>\n<<lingo Listing/Status/Caption>>\n</th>\n</tr>\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" variable=\"payloadTiddler\">\n<tr class={{{[<currentTiddler>has<suppressedField>then[tc-row-disabled]] ~[subfilter<payloadTitleFilter>is[tiddler]then[tc-row-warning]] }}}>\n<td>\n<$checkbox field=<<selectionField>> checked=\"checked\" unchecked=\"unchecked\" default=\"checked\" disabled={{{[<currentTiddler>has<suppressedField>then[yes]else[no]]}}}/>\n</td>\n<td>\n<$reveal type=\"nomatch\" state=<<renameFieldState>> text=\"yes\" tag=\"div\">\n<$reveal type=\"nomatch\" state=<<previewPopupState>> text=\"yes\" tag=\"div\" class=\"tc-flex\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown tc-flex-grow-1 tc-word-break\" set=<<previewPopupState>> setTo=\"yes\" disabled={{{[<currentTiddler>has<suppressedField>then[yes]else[no]]}}}>\n<span class=\"tc-small-gap-right\">{{$:/core/images/right-arrow}}</span><$text text={{{[subfilter<payloadTitleFilter>]}}}/>\n</$button>\n<$list filter=\"[<currentTiddler>!has<suppressedField>]\"><$button class=\"tc-btn-invisible\" set=<<renameFieldState>> setTo=\"yes\" tooltip={{{[<lingo-base>addsuffix[Listing/Rename/Tooltip]get[text]]}}}>{{$:/core/images/edit-button}}</$button></$list>\n</$reveal>\n<$reveal type=\"match\" state=<<previewPopupState>> text=\"yes\" tag=\"div\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<previewPopupState>> setTo=\"no\">\n<span class=\"tc-small-gap-right\">{{$:/core/images/down-arrow}}</span><$text text={{{[subfilter<payloadTitleFilter>]}}}/>\n</$button>\n</$reveal>\n</$reveal>\n<$reveal type=\"match\" state=<<renameFieldState>> text=\"yes\" tag=\"div\">\n<$text text={{{[<lingo-base>addsuffix[Listing/Rename/Prompt]get[text]]}}}/>\n</$reveal>\n</td>\n<td>\n<$view field=<<messageField>>/>\n<<overWriteWarning>>\n</td>\n</tr>\n<$reveal type=\"match\" state=<<renameFieldState>> text=\"yes\" tag=\"tr\">\n<td colspan=\"3\">\n<div class=\"tc-flex\">\n<$edit-text tiddler=<<newImportTitleTiddler>> default={{{[subfilter<payloadTitleFilter>]}}} tag=\"input\" class=\"tc-import-rename tc-flex-grow-1\"/><span class=\"tc-small-gap-left\"><$button class=\"tc-btn-invisible\" set=<<renameFieldState>> setTo=\"no\" tooltip={{{[<lingo-base>addsuffix[Listing/Rename/CancelRename]get[text]]}}}>{{$:/core/images/close-button}}<$action-deletetiddler $tiddler=<<newImportTitleTiddler>>/></$button><span class=\"tc-small-gap-right\"/></span><$button class=\"tc-btn-invisible\" set=<<renameFieldState>> setTo=\"no\" tooltip={{{[<lingo-base>addsuffix[Listing/Rename/ConfirmRename]get[text]]}}}>{{$:/core/images/done-button}}<$action-setfield $field=<<renameField>> $value={{{[<newImportTitleTiddler>get[text]minlength[1]else<payloadTiddler>]}}} /><$action-deletetiddler $tiddler=<<newImportTitleTiddler>>/></$button>\n</div>\n</td>\n</$reveal>\n<tr>\n<td colspan=\"3\">\n<$reveal type=\"match\" text=\"yes\" state=<<previewPopupState>> tag=\"div\">\n<$list filter=\"[{$:/state/importpreviewtype}has[text]]\" variable=\"listItem\" emptyMessage={{$:/core/ui/ImportPreviews/Text}}>\n<$transclude tiddler={{$:/state/importpreviewtype}}/>\n</$list>\n</$reveal>\n</td>\n</tr>\n</$list>\n</tbody>\n</table>\n"
+ },
+ "$:/core/ui/ImportPreviews/Diff": {
+ "title": "$:/core/ui/ImportPreviews/Diff",
+ "tags": "$:/tags/ImportPreview",
+ "caption": "{{$:/language/Import/Listing/Preview/Diff}}",
+ "text": "<$macrocall $name=\"compareTiddlerText\" sourceTiddlerTitle=<<payloadTiddler>> destTiddlerTitle=<<currentTiddler>> destSubTiddlerTitle=<<payloadTiddler>>/>\n"
+ },
+ "$:/core/ui/ImportPreviews/DiffFields": {
+ "title": "$:/core/ui/ImportPreviews/DiffFields",
+ "tags": "$:/tags/ImportPreview",
+ "caption": "{{$:/language/Import/Listing/Preview/DiffFields}}",
+ "text": "<$macrocall $name=\"compareTiddlers\" sourceTiddlerTitle=<<payloadTiddler>> destTiddlerTitle=<<currentTiddler>> destSubTiddlerTitle=<<payloadTiddler>> exclude=\"text\"/>\n"
+ },
+ "$:/core/ui/ImportPreviews/Fields": {
+ "title": "$:/core/ui/ImportPreviews/Fields",
+ "tags": "$:/tags/ImportPreview",
+ "caption": "{{$:/language/Import/Listing/Preview/Fields}}",
+ "text": "<table class=\"tc-view-field-table\">\n<tbody>\n<$list filter=\"[<payloadTiddler>subtiddlerfields<currentTiddler>sort[]] -text\" variable=\"fieldName\">\n<tr class=\"tc-view-field\">\n<td class=\"tc-view-field-name\">\n<$text text=<<fieldName>>/>\n</td>\n<td class=\"tc-view-field-value\">\n<$view field=<<fieldName>> tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>>/>\n</td>\n</tr>\n</$list>\n</tbody>\n</table>\n"
+ },
+ "$:/core/ui/ImportPreviews/Text": {
+ "title": "$:/core/ui/ImportPreviews/Text",
+ "tags": "$:/tags/ImportPreview",
+ "caption": "{{$:/language/Import/Listing/Preview/Text}}",
+ "text": "<$transclude tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>> mode=\"block\"/>\n"
+ },
+ "$:/core/ui/ImportPreviews/TextRaw": {
+ "title": "$:/core/ui/ImportPreviews/TextRaw",
+ "tags": "$:/tags/ImportPreview",
+ "caption": "{{$:/language/Import/Listing/Preview/TextRaw}}",
+ "text": "<pre><code><$view tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>> /></code></pre>"
+ },
+ "$:/core/ui/KeyboardShortcuts/advanced-search": {
+ "title": "$:/core/ui/KeyboardShortcuts/advanced-search",
+ "tags": "$:/tags/KeyboardShortcut",
+ "key": "((advanced-search))",
+ "text": "<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\">\n<$action-navigate $to=\"$:/AdvancedSearch\"/>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\"[data-tiddler-title=\"$:/AdvancedSearch\"] .tc-search input\"\"\" preventScroll=\"true\"/>\n</$navigator>\n"
+ },
+ "$:/core/ui/KeyboardShortcuts/change-sidebar-layout": {
+ "title": "$:/core/ui/KeyboardShortcuts/change-sidebar-layout",
+ "tags": "$:/tags/KeyboardShortcut",
+ "key": "((change-sidebar-layout))",
+ "text": "<$list filter=\"[{$:/themes/tiddlywiki/vanilla/options/sidebarlayout}match[fixed-fluid]]\" \nemptyMessage=\"\"\"<$action-setfield $tiddler=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\" text=\"fixed-fluid\"/>\"\"\">\n<$action-setfield $tiddler=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\" text=\"fluid-fixed\"/>\n</$list>\n"
+ },
+ "$:/core/ui/KeyboardShortcuts/new-image": {
+ "title": "$:/core/ui/KeyboardShortcuts/new-image",
+ "tags": "$:/tags/KeyboardShortcut",
+ "key": "((new-image))",
+ "text": "<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n{{$:/core/ui/Actions/new-image}}\n</$navigator>\n"
+ },
+ "$:/core/ui/KeyboardShortcuts/new-journal": {
+ "title": "$:/core/ui/KeyboardShortcuts/new-journal",
+ "tags": "$:/tags/KeyboardShortcut",
+ "key": "((new-journal))",
+ "text": "<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n{{$:/core/ui/Actions/new-journal}}\n</$navigator>\n"
+ },
+ "$:/core/ui/KeyboardShortcuts/new-tiddler": {
+ "title": "$:/core/ui/KeyboardShortcuts/new-tiddler",
+ "tags": "$:/tags/KeyboardShortcut",
+ "key": "((new-tiddler))",
+ "text": "<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n{{$:/core/ui/Actions/new-tiddler}}\n</$navigator>\n"
+ },
+ "$:/core/ui/KeyboardShortcuts/save-wiki": {
+ "title": "$:/core/ui/KeyboardShortcuts/save-wiki",
+ "tags": "$:/tags/KeyboardShortcut",
+ "key": "((save-wiki))",
+ "text": "<$wikify name=\"site-title\" text={{$:/config/SaveWikiButton/Filename}}>\n<$action-sendmessage $message=\"tm-save-wiki\" $param={{$:/config/SaveWikiButton/Template}} filename=<<site-title>>/>\n</$wikify>\n"
+ },
+ "$:/core/ui/KeyboardShortcuts/sidebar-search": {
+ "title": "$:/core/ui/KeyboardShortcuts/sidebar-search",
+ "tags": "$:/tags/KeyboardShortcut",
+ "key": "((sidebar-search))",
+ "text": "<$action-sendmessage $message=\"tm-focus-selector\" $param=\".tc-search input\"/>\n"
+ },
+ "$:/core/ui/KeyboardShortcuts/switcher": {
+ "title": "$:/core/ui/KeyboardShortcuts/switcher",
+ "tags": "$:/tags/KeyboardShortcut",
+ "key": "((layout-switcher))",
+ "text": "<$action-sendmessage $message=\"tm-show-switcher\" switch=\"layout\"/>"
+ },
+ "$:/core/ui/KeyboardShortcuts/toggle-sidebar": {
+ "title": "$:/core/ui/KeyboardShortcuts/toggle-sidebar",
+ "tags": "$:/tags/KeyboardShortcut",
+ "key": "((toggle-sidebar))",
+ "text": "<$list filter=\"[[$:/state/sidebar]is[missing]] [{$:/state/sidebar}removeprefix[yes]]\" emptyMessage=\"\"\"\n<$action-setfield $tiddler=\"$:/state/sidebar\" text=\"yes\"/>\n\"\"\">\n<$action-setfield $tiddler=\"$:/state/sidebar\" text=\"no\"/>\n</$list>\n"
+ },
+ "$:/snippets/LayoutSwitcher": {
+ "title": "$:/snippets/LayoutSwitcher",
+ "tags": "$:/tags/ControlPanel/Appearance",
+ "caption": "{{$:/language/ControlPanel/LayoutSwitcher/Caption}}",
+ "text": "<$linkcatcher to=\"$:/layout\">\n<div class=\"tc-chooser\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/Layout]] [[$:/core/ui/PageTemplate]] +[!is[draft]sort[name]]\">\n<$list filter=\"[{$:/layout}!has[text]]\" variable=\"ignore\" emptyMessage=\"\"\"\n<$set name=\"cls\" filter=\"[all[current]field:title{$:/layout}]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>><$link to={{!!title}}>''<$transclude field=\"name\"/>'' - <$transclude field=\"description\"/></$link></div>\n</$set>\n\"\"\">\n<$set name=\"cls\" filter=\"[all[current]field:title[$:/core/ui/PageTemplate]]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>><$link to={{!!title}}>''<$transclude field=\"name\"/>'' - <$transclude field=\"description\"/></$link></div>\n</$set>\n</$list>\n</$list>\n</div>\n</$linkcatcher>\n"
+ },
+ "$:/core/ui/ListItemTemplate": {
+ "title": "$:/core/ui/ListItemTemplate",
+ "text": "<div class=\"tc-menu-list-item\">\n<$link />\n</div>"
+ },
+ "$:/Manager/ItemMain/Fields": {
+ "title": "$:/Manager/ItemMain/Fields",
+ "tags": "$:/tags/Manager/ItemMain",
+ "caption": "{{$:/language/Manager/Item/Fields}}",
+ "text": "<table>\n<tbody>\n<$list filter=\"[all[current]fields[]sort[title]] -text\" template=\"$:/core/ui/TiddlerFieldTemplate\" variable=\"listItem\"/>\n</tbody>\n</table>\n"
+ },
+ "$:/Manager/ItemMain/RawText": {
+ "title": "$:/Manager/ItemMain/RawText",
+ "tags": "$:/tags/Manager/ItemMain",
+ "caption": "{{$:/language/Manager/Item/RawText}}",
+ "text": "<pre><code><$view/></code></pre>\n"
+ },
+ "$:/Manager/ItemMain/WikifiedText": {
+ "title": "$:/Manager/ItemMain/WikifiedText",
+ "tags": "$:/tags/Manager/ItemMain",
+ "caption": "{{$:/language/Manager/Item/WikifiedText}}",
+ "text": "<$transclude mode=\"block\"/>\n"
+ },
+ "$:/Manager/ItemSidebar/Colour": {
+ "title": "$:/Manager/ItemSidebar/Colour",
+ "tags": "$:/tags/Manager/ItemSidebar",
+ "caption": "{{$:/language/Manager/Item/Colour}}",
+ "text": "\\define swatch-styles()\nheight: 1em;\nbackground-color: $(colour)$\n\\end\n\n<$vars colour={{!!color}}>\n<p style=<<swatch-styles>>/>\n</$vars>\n<p>\n<$edit-text field=\"color\" tag=\"input\" type=\"color\"/> / <$edit-text field=\"color\" tag=\"input\" type=\"text\" size=\"9\"/>\n</p>\n"
+ },
+ "$:/Manager/ItemSidebar/Icon": {
+ "title": "$:/Manager/ItemSidebar/Icon",
+ "tags": "$:/tags/Manager/ItemSidebar",
+ "caption": "{{$:/language/Manager/Item/Icon}}",
+ "text": "<p>\n<div class=\"tc-manager-icon-editor\">\n<$button popup=<<qualify \"$:/state/popup/image-picker\">> class=\"tc-btn-invisible\">\n<$transclude tiddler={{!!icon}}>\n{{$:/language/Manager/Item/Icon/None}}\n</$transclude>\n</$button>\n<div class=\"tc-block-dropdown-wrapper\" style=\"position: static;\">\n<$reveal state=<<qualify \"$:/state/popup/image-picker\">> type=\"nomatch\" text=\"\" default=\"\" tag=\"div\" class=\"tc-popup\">\n<div class=\"tc-block-dropdown tc-popup-keep\" style=\"width: 80%; left: 10%; right: 10%; padding: 0.5em;\">\n<$macrocall $name=\"image-picker-include-tagged-images\" actions=\"\"\"\n<$action-setfield $field=\"icon\" $value=<<imageTitle>>/>\n<$action-deletetiddler $tiddler=<<qualify \"$:/state/popup/image-picker\">>/>\n\"\"\"/>\n</div>\n</$reveal>\n</div>\n</div>\n</p>\n"
+ },
+ "$:/Manager/ItemSidebar/Tags": {
+ "title": "$:/Manager/ItemSidebar/Tags",
+ "tags": "$:/tags/Manager/ItemSidebar",
+ "caption": "{{$:/language/Manager/Item/Tags}}",
+ "text": "\\whitespace trim\n\\define tag-checkbox-actions()\n<$action-listops\n\t$tiddler=\"$:/config/Manager/RecentTags\"\n\t$subfilter=\"[<tag>] [list[$:/config/Manager/RecentTags]] +[limit[12]]\"\n/>\n\\end\n\n\\define tag-picker-actions()\n<<tag-checkbox-actions>>\n\\end\n\n<p>\n<$list filter=\"[all[current]tags[]] [list[$:/config/Manager/RecentTags]] +[sort[title]] \" variable=\"tag\" storyview=\"pop\">\n<div>\n<$checkbox tiddler=<<currentTiddler>> tag=<<tag>> actions=<<tag-checkbox-actions>>>\n<$macrocall $name=\"tag-pill\" tag=<<tag>>/>\n</$checkbox>\n</div>\n</$list>\n</p>\n<p>\n<$fieldmangler>\n<$macrocall $name=\"tag-picker\" actions=<<tag-picker-actions>>/>\n</$fieldmangler>\n</p>\n"
+ },
+ "$:/Manager/ItemSidebar/Tools": {
+ "title": "$:/Manager/ItemSidebar/Tools",
+ "tags": "$:/tags/Manager/ItemSidebar",
+ "caption": "{{$:/language/Manager/Item/Tools}}",
+ "text": "<p>\n<$button to=<<currentTiddler>>>{{$:/core/images/link}} open</$button>\n</p>\n<p>\n<$button message=\"tm-edit-tiddler\" param=<<currentTiddler>>>{{$:/core/images/edit-button}} edit</$button>\n</p>\n"
+ },
+ "$:/Manager": {
+ "title": "$:/Manager",
+ "icon": "$:/core/images/list",
+ "color": "#bbb",
+ "text": "\\define lingo-base() $:/language/Manager/\n\n\\define list-item-content-item()\n<div class=\"tc-manager-list-item-content-item\">\n\t<$vars state-title=\"\"\"$:/state/popup/manager/item/$(listItem)$\"\"\">\n\t\t<$reveal state=<<state-title>> type=\"match\" text=\"show\" default=\"show\" tag=\"div\">\n\t\t\t<$button set=<<state-title>> setTo=\"hide\" class=\"tc-btn-invisible tc-manager-list-item-content-item-heading\">\n\t\t\t\t{{$:/core/images/down-arrow}} <$transclude tiddler=<<listItem>> field=\"caption\"/>\n\t\t\t</$button>\n\t\t</$reveal>\n\t\t<$reveal state=<<state-title>> type=\"nomatch\" text=\"show\" default=\"show\" tag=\"div\">\n\t\t\t<$button set=<<state-title>> setTo=\"show\" class=\"tc-btn-invisible tc-manager-list-item-content-item-heading\">\n\t\t\t\t{{$:/core/images/right-arrow}} <$transclude tiddler=<<listItem>> field=\"caption\"/>\n\t\t\t</$button>\n\t\t</$reveal>\n\t\t<$reveal state=<<state-title>> type=\"match\" text=\"show\" default=\"show\" tag=\"div\" class=\"tc-manager-list-item-content-item-body\">\n\t\t\t<$transclude tiddler=<<listItem>>/>\n\t\t</$reveal>\n\t</$vars>\n</div>\n\\end\n\n<div class=\"tc-manager-wrapper\">\n\t<div class=\"tc-manager-controls\">\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/Show/Prompt>> <$select tiddler=\"$:/config/Manager/Show\" default=\"tiddlers\">\n\t\t\t\t<option value=\"tiddlers\"><<lingo Controls/Show/Option/Tiddlers>></option>\n\t\t\t\t<option value=\"tags\"><<lingo Controls/Show/Option/Tags>></option>\n\t\t\t</$select>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/Search/Prompt>> <$edit-text tiddler=\"$:/config/Manager/Filter\" tag=\"input\" default=\"\" placeholder={{$:/language/Manager/Controls/Search/Placeholder}}/>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/FilterByTag/Prompt>> <$select tiddler=\"$:/config/Manager/Tag\" default=\"\">\n\t\t\t\t<option value=\"\"><<lingo Controls/FilterByTag/None>></option>\n\t\t\t\t<$list filter=\"[!is{$:/config/Manager/System}tags[]!is[system]sort[title]]\" variable=\"tag\">\n\t\t\t\t\t<option value=<<tag>>><$text text=<<tag>>/></option>\n\t\t\t\t</$list>\n\t\t\t</$select>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/Sort/Prompt>> <$select tiddler=\"$:/config/Manager/Sort\" default=\"title\">\n\t\t\t\t<optgroup label=\"Common\">\n\t\t\t\t\t<$list filter=\"title modified modifier created creator created\" variable=\"field\">\n\t\t\t\t\t\t<option value=<<field>>><$text text=<<field>>/></option>\n\t\t\t\t\t</$list>\n\t\t\t\t</optgroup>\n\t\t\t\t<optgroup label=\"All\">\n\t\t\t\t\t<$list filter=\"[all{$:/config/Manager/Show}!is{$:/config/Manager/System}fields[]sort[title]] -title -modified -modifier -created -creator -created\" variable=\"field\">\n\t\t\t\t\t\t<option value=<<field>>><$text text=<<field>>/></option>\n\t\t\t\t\t</$list>\n\t\t\t\t</optgroup>\n\t\t\t</$select>\n\t\t\t<$checkbox tiddler=\"$:/config/Manager/Order\" field=\"text\" checked=\"reverse\" unchecked=\"forward\" default=\"forward\">\n\t\t\t\t<<lingo Controls/Order/Prompt>>\n\t\t\t</$checkbox>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<$checkbox tiddler=\"$:/config/Manager/System\" field=\"text\" checked=\"\" unchecked=\"system\" default=\"system\">\n\t\t\t\t{{$:/language/SystemTiddlers/Include/Prompt}}\n\t\t\t</$checkbox>\n\t\t</div>\n\t</div>\n\t<div class=\"tc-manager-list\">\n\t\t<$list filter=\"[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}]\">\n\t\t\t<$vars transclusion=<<currentTiddler>>>\n\t\t\t\t<div style=\"tc-manager-list-item\">\n\t\t\t\t\t<$button popup=<<qualify \"$:/state/manager/popup\">> class=\"tc-btn-invisible tc-manager-list-item-heading\" selectedClass=\"tc-manager-list-item-heading-selected\">\n\t\t\t\t\t\t<$text text=<<currentTiddler>>/>\n\t\t\t\t\t</$button>\n\t\t\t\t\t<$reveal state=<<qualify \"$:/state/manager/popup\">> type=\"nomatch\" text=\"\" default=\"\" tag=\"div\" class=\"tc-manager-list-item-content tc-popup-handle\">\n\t\t\t\t\t\t<div class=\"tc-manager-list-item-content-tiddler\">\n\t\t\t\t\t\t\t<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Manager/ItemMain]!has[draft.of]]\" variable=\"listItem\">\n\t\t\t\t\t\t\t\t<<list-item-content-item>>\n\t\t\t\t\t\t\t</$list>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"tc-manager-list-item-content-sidebar\">\n\t\t\t\t\t\t\t<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Manager/ItemSidebar]!has[draft.of]]\" variable=\"listItem\">\n\t\t\t\t\t\t\t\t<<list-item-content-item>>\n\t\t\t\t\t\t\t</$list>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</$reveal>\n\t\t\t\t</div>\n\t\t\t</$vars>\n\t\t</$list>\n\t</div>\n</div>\n"
+ },
+ "$:/core/ui/MissingTemplate": {
+ "title": "$:/core/ui/MissingTemplate",
+ "text": "<div class=\"tc-tiddler-missing\">\n<$button popup=<<qualify \"$:/state/popup/missing\">> class=\"tc-btn-invisible tc-missing-tiddler-label\">\n<$view field=\"title\" format=\"text\" />\n</$button>\n<$reveal state=<<qualify \"$:/state/popup/missing\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n<hr>\n<$list filter=\"[all[current]backlinks[]sort[title]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n</div>\n</$reveal>\n</div>\n"
+ },
+ "$:/core/ui/MoreSideBar/All": {
+ "title": "$:/core/ui/MoreSideBar/All",
+ "tags": "$:/tags/MoreSideBar",
+ "caption": "{{$:/language/SideBar/All/Caption}}",
+ "text": "<$list filter={{$:/core/Filters/AllTiddlers!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n"
+ },
+ "$:/core/ui/MoreSideBar/Drafts": {
+ "title": "$:/core/ui/MoreSideBar/Drafts",
+ "tags": "$:/tags/MoreSideBar",
+ "caption": "{{$:/language/SideBar/Drafts/Caption}}",
+ "text": "<$list filter={{$:/core/Filters/Drafts!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n"
+ },
+ "$:/core/ui/MoreSideBar/Explorer": {
+ "title": "$:/core/ui/MoreSideBar/Explorer",
+ "tags": "$:/tags/MoreSideBar",
+ "caption": "{{$:/language/SideBar/Explorer/Caption}}",
+ "text": "<<tree \"$:/\">>\n"
+ },
+ "$:/core/ui/MoreSideBar/Missing": {
+ "title": "$:/core/ui/MoreSideBar/Missing",
+ "tags": "$:/tags/MoreSideBar",
+ "caption": "{{$:/language/SideBar/Missing/Caption}}",
+ "text": "<$list filter={{$:/core/Filters/Missing!!filter}} template=\"$:/core/ui/MissingTemplate\"/>\n"
+ },
+ "$:/core/ui/MoreSideBar/Orphans": {
+ "title": "$:/core/ui/MoreSideBar/Orphans",
+ "tags": "$:/tags/MoreSideBar",
+ "caption": "{{$:/language/SideBar/Orphans/Caption}}",
+ "text": "<$list filter={{$:/core/Filters/Orphans!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n"
+ },
+ "$:/core/ui/MoreSideBar/Plugins": {
+ "title": "$:/core/ui/MoreSideBar/Plugins",
+ "tags": "$:/tags/MoreSideBar",
+ "caption": "{{$:/language/ControlPanel/Plugins/Caption}}",
+ "text": "\n{{$:/language/ControlPanel/Plugins/Installed/Hint}}\n\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/MoreSideBar/Plugins]!has[draft.of]]\" default=\"$:/core/ui/MoreSideBar/Plugins/Plugins\" explicitState=\"$:/state/tab-1163638994\"/>\n"
+ },
+ "$:/core/ui/MoreSideBar/Recent": {
+ "title": "$:/core/ui/MoreSideBar/Recent",
+ "tags": "$:/tags/MoreSideBar",
+ "caption": "{{$:/language/SideBar/Recent/Caption}}",
+ "text": "<$macrocall $name=\"timeline\" format={{$:/language/RecentChanges/DateFormat}}/>\n"
+ },
+ "$:/core/ui/MoreSideBar/Shadows": {
+ "title": "$:/core/ui/MoreSideBar/Shadows",
+ "tags": "$:/tags/MoreSideBar",
+ "caption": "{{$:/language/SideBar/Shadows/Caption}}",
+ "text": "<$list filter={{$:/core/Filters/ShadowTiddlers!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n"
+ },
+ "$:/core/ui/MoreSideBar/System": {
+ "title": "$:/core/ui/MoreSideBar/System",
+ "tags": "$:/tags/MoreSideBar",
+ "caption": "{{$:/language/SideBar/System/Caption}}",
+ "text": "<$list filter={{$:/core/Filters/SystemTiddlers!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n"
+ },
+ "$:/core/ui/MoreSideBar/Tags": {
+ "title": "$:/core/ui/MoreSideBar/Tags",
+ "tags": "$:/tags/MoreSideBar",
+ "caption": "{{$:/language/SideBar/Tags/Caption}}",
+ "text": "<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n{{$:/core/ui/Buttons/tag-manager}}\n\n</$set>\n\n</$set>\n\n</$set>\n\n<$list filter={{$:/core/Filters/AllTags!!filter}}>\n\n<$transclude tiddler=\"$:/core/ui/TagTemplate\"/>\n\n</$list>\n\n<hr class=\"tc-untagged-separator\">\n\n{{$:/core/ui/UntaggedTemplate}}\n"
+ },
+ "$:/core/ui/MoreSideBar/Types": {
+ "title": "$:/core/ui/MoreSideBar/Types",
+ "tags": "$:/tags/MoreSideBar",
+ "caption": "{{$:/language/SideBar/Types/Caption}}",
+ "text": "<$list filter={{$:/core/Filters/TypedTiddlers!!filter}}>\n<div class=\"tc-menu-list-item\">\n<$view field=\"type\"/>\n<$list filter=\"[type{!!type}!is[system]sort[title]]\">\n<div class=\"tc-menu-list-subitem\">\n<$link to={{!!title}}><$view field=\"title\"/></$link>\n</div>\n</$list>\n</div>\n</$list>\n"
+ },
+ "$:/core/ui/MoreSideBar/Plugins/Languages": {
+ "title": "$:/core/ui/MoreSideBar/Plugins/Languages",
+ "tags": "$:/tags/MoreSideBar/Plugins",
+ "caption": "{{$:/language/ControlPanel/Plugins/Languages/Caption}}",
+ "text": "<$list filter=\"[!has[draft.of]plugin-type[language]sort[description]]\" template=\"$:/core/ui/PluginListItemTemplate\" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/>\n"
+ },
+ "$:/core/ui/MoreSideBar/Plugins/Plugins": {
+ "title": "$:/core/ui/MoreSideBar/Plugins/Plugins",
+ "tags": "$:/tags/MoreSideBar/Plugins",
+ "caption": "{{$:/language/ControlPanel/Plugins/Plugins/Caption}}",
+ "text": "<$list filter=\"[!has[draft.of]plugin-type[plugin]sort[description]]\" template=\"$:/core/ui/PluginListItemTemplate\" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}>>/>\n"
+ },
+ "$:/core/ui/MoreSideBar/Plugins/Theme": {
+ "title": "$:/core/ui/MoreSideBar/Plugins/Theme",
+ "tags": "$:/tags/MoreSideBar/Plugins",
+ "caption": "{{$:/language/ControlPanel/Plugins/Themes/Caption}}",
+ "text": "<$list filter=\"[!has[draft.of]plugin-type[theme]sort[description]]\" template=\"$:/core/ui/PluginListItemTemplate\" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/>\n"
+ },
+ "$:/core/ui/Buttons/advanced-search": {
+ "title": "$:/core/ui/Buttons/advanced-search",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/advanced-search-button}} {{$:/language/Buttons/AdvancedSearch/Caption}}",
+ "description": "{{$:/language/Buttons/AdvancedSearch/Hint}}",
+ "text": "\\whitespace trim\n\\define advanced-search-button(class)\n<$button to=\"$:/AdvancedSearch\" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/advanced-search-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/AdvancedSearch/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/AdvancedSearch]]\" emptyMessage=<<advanced-search-button>>>\n<<advanced-search-button \"tc-selected\">>\n</$list>\n"
+ },
+ "$:/core/ui/Buttons/close-all": {
+ "title": "$:/core/ui/Buttons/close-all",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/close-all-button}} {{$:/language/Buttons/CloseAll/Caption}}",
+ "description": "{{$:/language/Buttons/CloseAll/Hint}}",
+ "text": "<$button message=\"tm-close-all-tiddlers\" tooltip={{$:/language/Buttons/CloseAll/Hint}} aria-label={{$:/language/Buttons/CloseAll/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/close-all-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/CloseAll/Caption}}/></span>\n</$list>\n</$button>"
+ },
+ "$:/core/ui/Buttons/control-panel": {
+ "title": "$:/core/ui/Buttons/control-panel",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/options-button}} {{$:/language/Buttons/ControlPanel/Caption}}",
+ "description": "{{$:/language/Buttons/ControlPanel/Hint}}",
+ "text": "\\whitespace trim\n\\define control-panel-button(class)\n<$button to=\"$:/ControlPanel\" tooltip={{$:/language/Buttons/ControlPanel/Hint}} aria-label={{$:/language/Buttons/ControlPanel/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/options-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/ControlPanel/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/ControlPanel]]\" emptyMessage=<<control-panel-button>>>\n<<control-panel-button \"tc-selected\">>\n</$list>\n"
+ },
+ "$:/core/ui/Buttons/encryption": {
+ "title": "$:/core/ui/Buttons/encryption",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/locked-padlock}} {{$:/language/Buttons/Encryption/Caption}}",
+ "description": "{{$:/language/Buttons/Encryption/Hint}}",
+ "text": "\\whitespace trim\n<$reveal type=\"match\" state=\"$:/isEncrypted\" text=\"yes\">\n<$button message=\"tm-clear-password\" tooltip={{$:/language/Buttons/Encryption/ClearPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/ClearPassword/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/locked-padlock}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Encryption/ClearPassword/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>\n<$reveal type=\"nomatch\" state=\"$:/isEncrypted\" text=\"yes\">\n<$button message=\"tm-set-password\" tooltip={{$:/language/Buttons/Encryption/SetPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/SetPassword/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/unlocked-padlock}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Encryption/SetPassword/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>\n"
+ },
+ "$:/core/ui/Buttons/export-page": {
+ "title": "$:/core/ui/Buttons/export-page",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/export-button}} {{$:/language/Buttons/ExportPage/Caption}}",
+ "description": "{{$:/language/Buttons/ExportPage/Hint}}",
+ "text": "<$macrocall $name=\"exportButton\" exportFilter=\"[!is[system]sort[title]]\" lingoBase=\"$:/language/Buttons/ExportPage/\"/>"
+ },
+ "$:/core/ui/Buttons/fold-all": {
+ "title": "$:/core/ui/Buttons/fold-all",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/fold-all-button}} {{$:/language/Buttons/FoldAll/Caption}}",
+ "description": "{{$:/language/Buttons/FoldAll/Hint}}",
+ "text": "<$button tooltip={{$:/language/Buttons/FoldAll/Hint}} aria-label={{$:/language/Buttons/FoldAll/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-all-tiddlers\" $param=<<currentTiddler>> foldedStatePrefix=\"$:/state/folded/\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/fold-all-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/FoldAll/Caption}}/></span>\n</$list>\n</$button>"
+ },
+ "$:/core/ui/Buttons/full-screen": {
+ "title": "$:/core/ui/Buttons/full-screen",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/full-screen-button}} {{$:/language/Buttons/FullScreen/Caption}}",
+ "description": "{{$:/language/Buttons/FullScreen/Hint}}",
+ "text": "<$button message=\"tm-full-screen\" tooltip={{$:/language/Buttons/FullScreen/Hint}} aria-label={{$:/language/Buttons/FullScreen/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/full-screen-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/FullScreen/Caption}}/></span>\n</$list>\n</$button>"
+ },
+ "$:/core/ui/Buttons/home": {
+ "title": "$:/core/ui/Buttons/home",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/home-button}} {{$:/language/Buttons/Home/Caption}}",
+ "description": "{{$:/language/Buttons/Home/Hint}}",
+ "text": "<$button message=\"tm-home\" tooltip={{$:/language/Buttons/Home/Hint}} aria-label={{$:/language/Buttons/Home/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/home-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Home/Caption}}/></span>\n</$list>\n</$button>"
+ },
+ "$:/core/ui/Buttons/import": {
+ "title": "$:/core/ui/Buttons/import",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/import-button}} {{$:/language/Buttons/Import/Caption}}",
+ "description": "{{$:/language/Buttons/Import/Hint}}",
+ "text": "<div class=\"tc-file-input-wrapper\">\n<$button tooltip={{$:/language/Buttons/Import/Hint}} aria-label={{$:/language/Buttons/Import/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/import-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Import/Caption}}/></span>\n</$list>\n</$button>\n<$browse tooltip={{$:/language/Buttons/Import/Hint}}/>\n</div>"
+ },
+ "$:/core/ui/Buttons/language": {
+ "title": "$:/core/ui/Buttons/language",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/globe}} {{$:/language/Buttons/Language/Caption}}",
+ "description": "{{$:/language/Buttons/Language/Hint}}",
+ "text": "\\whitespace trim\n\\define flag-title()\n$(languagePluginTitle)$/icon\n\\end\n<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/language\">> tooltip={{$:/language/Buttons/Language/Hint}} aria-label={{$:/language/Buttons/Language/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n<span class=\"tc-image-button\">\n<$set name=\"languagePluginTitle\" value={{$:/language}}>\n<$image source=<<flag-title>>/>\n</$set>\n</span>\n</$list>\n<$text text=\" \"/>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Language/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/language\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n{{$:/snippets/languageswitcher}}\n</div>\n</$reveal>\n"
+ },
+ "$:/core/ui/Buttons/manager": {
+ "title": "$:/core/ui/Buttons/manager",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/list}} {{$:/language/Buttons/Manager/Caption}}",
+ "description": "{{$:/language/Buttons/Manager/Hint}}",
+ "text": "\\whitespace trim\n\\define manager-button(class)\n<$button to=\"$:/Manager\" tooltip={{$:/language/Buttons/Manager/Hint}} aria-label={{$:/language/Buttons/Manager/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/list}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Manager/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/Manager]]\" emptyMessage=<<manager-button>>>\n<<manager-button \"tc-selected\">>\n</$list>\n"
+ },
+ "$:/core/ui/Buttons/more-page-actions": {
+ "title": "$:/core/ui/Buttons/more-page-actions",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}",
+ "description": "{{$:/language/Buttons/More/Hint}}",
+ "text": "\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n<$button popup=<<qualify \"$:/state/popup/more\">> tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/down-arrow}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/More/Caption}}/></span>\n</$list>\n</$button><$reveal state=<<qualify \"$:/state/popup/more\">> type=\"popup\" position=\"below\" animate=\"yes\">\n\n<div class=\"tc-drop-down\">\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"tc-btn-invisible\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]] -[[$:/core/ui/Buttons/more-page-actions]]\" variable=\"listItem\">\n\n<$reveal type=\"match\" state=<<config-title>> text=\"hide\">\n\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$set>\n\n</$reveal>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n\n</div>\n\n</$reveal>"
+ },
+ "$:/core/ui/Buttons/new-image": {
+ "title": "$:/core/ui/Buttons/new-image",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/new-image-button}} {{$:/language/Buttons/NewImage/Caption}}",
+ "description": "{{$:/language/Buttons/NewImage/Hint}}",
+ "text": "\\whitespace trim\n<$button tooltip={{$:/language/Buttons/NewImage/Hint}} aria-label={{$:/language/Buttons/NewImage/Caption}} class=<<tv-config-toolbar-class>> actions={{$:/core/ui/Actions/new-image}}>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-image-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/NewImage/Caption}}/></span>\n</$list>\n</$button>\n"
+ },
+ "$:/core/ui/Buttons/new-journal": {
+ "title": "$:/core/ui/Buttons/new-journal",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournal/Caption}}",
+ "description": "{{$:/language/Buttons/NewJournal/Hint}}",
+ "text": "\\whitespace trim\n\\define journalButton()\n<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=<<tv-config-toolbar-class>> actions={{$:/core/ui/Actions/new-journal}}>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-journal-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/NewJournal/Caption}}/></span>\n</$list>\n</$button>\n\\end\n<<journalButton>>\n"
+ },
+ "$:/core/ui/Buttons/new-tiddler": {
+ "title": "$:/core/ui/Buttons/new-tiddler",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/new-button}} {{$:/language/Buttons/NewTiddler/Caption}}",
+ "description": "{{$:/language/Buttons/NewTiddler/Hint}}",
+ "text": "\\whitespace trim\n<$button actions={{$:/core/ui/Actions/new-tiddler}} tooltip={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/NewTiddler/Caption}}/></span>\n</$list>\n</$button>\n"
+ },
+ "$:/core/ui/Buttons/palette": {
+ "title": "$:/core/ui/Buttons/palette",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/palette}} {{$:/language/Buttons/Palette/Caption}}",
+ "description": "{{$:/language/Buttons/Palette/Hint}}",
+ "text": "\\whitespace trim\n<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/palette\">> tooltip={{$:/language/Buttons/Palette/Hint}} aria-label={{$:/language/Buttons/Palette/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/palette}}\n</$list>\n<$text text=\" \"/>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Palette/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/palette\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\" style=\"font-size:0.7em;\">\n{{$:/snippets/paletteswitcher}}\n</div>\n</$reveal>\n"
+ },
+ "$:/core/ui/Buttons/print": {
+ "title": "$:/core/ui/Buttons/print",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/print-button}} {{$:/language/Buttons/Print/Caption}}",
+ "description": "{{$:/language/Buttons/Print/Hint}}",
+ "text": "<$button message=\"tm-print\" tooltip={{$:/language/Buttons/Print/Hint}} aria-label={{$:/language/Buttons/Print/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/print-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Print/Caption}}/></span>\n</$list>\n</$button>"
+ },
+ "$:/core/ui/Buttons/refresh": {
+ "title": "$:/core/ui/Buttons/refresh",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/refresh-button}} {{$:/language/Buttons/Refresh/Caption}}",
+ "description": "{{$:/language/Buttons/Refresh/Hint}}",
+ "text": "<$button message=\"tm-browser-refresh\" tooltip={{$:/language/Buttons/Refresh/Hint}} aria-label={{$:/language/Buttons/Refresh/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/refresh-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Refresh/Caption}}/></span>\n</$list>\n</$button>"
+ },
+ "$:/core/ui/Buttons/save-wiki": {
+ "title": "$:/core/ui/Buttons/save-wiki",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/save-button}} {{$:/language/Buttons/SaveWiki/Caption}}",
+ "description": "{{$:/language/Buttons/SaveWiki/Hint}}",
+ "text": "<$button tooltip={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=<<tv-config-toolbar-class>>>\n<$wikify name=\"site-title\" text={{$:/config/SaveWikiButton/Filename}}>\n<$action-sendmessage $message=\"tm-save-wiki\" $param={{$:/config/SaveWikiButton/Template}} filename=<<site-title>>/>\n</$wikify>\n<span class=\"tc-dirty-indicator\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/save-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/SaveWiki/Caption}}/></span>\n</$list>\n</span>\n</$button>"
+ },
+ "$:/core/ui/Buttons/storyview": {
+ "title": "$:/core/ui/Buttons/storyview",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/storyview-classic}} {{$:/language/Buttons/StoryView/Caption}}",
+ "description": "{{$:/language/Buttons/StoryView/Hint}}",
+ "text": "\\whitespace trim\n\\define icon()\n$:/core/images/storyview-$(storyview)$\n\\end\n<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/storyview\">> tooltip={{$:/language/Buttons/StoryView/Hint}} aria-label={{$:/language/Buttons/StoryView/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n<$set name=\"storyview\" value={{$:/view}}>\n<$transclude tiddler=<<icon>>/>\n</$set>\n</$list>\n<$text text=\" \"/>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/StoryView/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/storyview\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n{{$:/snippets/viewswitcher}}\n</div>\n</$reveal>\n"
+ },
+ "$:/core/ui/Buttons/tag-manager": {
+ "title": "$:/core/ui/Buttons/tag-manager",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/tag-button}} {{$:/language/Buttons/TagManager/Caption}}",
+ "description": "{{$:/language/Buttons/TagManager/Hint}}",
+ "text": "\\whitespace trim\n\\define control-panel-button(class)\n<$button to=\"$:/TagManager\" tooltip={{$:/language/Buttons/TagManager/Hint}} aria-label={{$:/language/Buttons/TagManager/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/tag-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/TagManager/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/TagManager]]\" emptyMessage=<<control-panel-button>>>\n<<control-panel-button \"tc-selected\">>\n</$list>\n"
+ },
+ "$:/core/ui/Buttons/theme": {
+ "title": "$:/core/ui/Buttons/theme",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/theme-button}} {{$:/language/Buttons/Theme/Caption}}",
+ "description": "{{$:/language/Buttons/Theme/Hint}}",
+ "text": "\\whitespace trim\n<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/theme\">> tooltip={{$:/language/Buttons/Theme/Hint}} aria-label={{$:/language/Buttons/Theme/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/theme-button}}\n</$list>\n<$text text=\" \"/>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Theme/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/theme\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n<$linkcatcher to=\"$:/theme\">\n{{$:/snippets/themeswitcher}}\n</$linkcatcher>\n</div>\n</$reveal>\n"
+ },
+ "$:/core/ui/Buttons/timestamp": {
+ "title": "$:/core/ui/Buttons/timestamp",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/timestamp-on}} {{$:/language/Buttons/Timestamp/Caption}}",
+ "description": "{{$:/language/Buttons/Timestamp/Hint}}",
+ "text": "\\whitespace trim\n<$reveal type=\"nomatch\" state=\"$:/config/TimestampDisable\" text=\"yes\">\n<$button tooltip={{$:/language/Buttons/Timestamp/On/Hint}} aria-label={{$:/language/Buttons/Timestamp/On/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-setfield $tiddler=\"$:/config/TimestampDisable\" $value=\"yes\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/timestamp-on}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Timestamp/On/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/config/TimestampDisable\" text=\"yes\">\n<$button tooltip={{$:/language/Buttons/Timestamp/Off/Hint}} aria-label={{$:/language/Buttons/Timestamp/Off/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-setfield $tiddler=\"$:/config/TimestampDisable\" $value=\"no\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/timestamp-off}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Timestamp/Off/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>\n"
+ },
+ "$:/core/ui/Buttons/unfold-all": {
+ "title": "$:/core/ui/Buttons/unfold-all",
+ "tags": "$:/tags/PageControls",
+ "caption": "{{$:/core/images/unfold-all-button}} {{$:/language/Buttons/UnfoldAll/Caption}}",
+ "description": "{{$:/language/Buttons/UnfoldAll/Hint}}",
+ "text": "<$button tooltip={{$:/language/Buttons/UnfoldAll/Hint}} aria-label={{$:/language/Buttons/UnfoldAll/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-unfold-all-tiddlers\" $param=<<currentTiddler>> foldedStatePrefix=\"$:/state/folded/\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/unfold-all-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/UnfoldAll/Caption}}/></span>\n</$list>\n</$button>"
+ },
+ "$:/core/ui/PageTemplate/pagecontrols": {
+ "title": "$:/core/ui/PageTemplate/pagecontrols",
+ "text": "\\whitespace trim\n\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n<div class=\"tc-page-controls\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]\" variable=\"listItem\">\n<$set name=\"hidden\" value=<<config-title>>>\n<$list filter=\"[<hidden>!text[hide]]\" storyview=\"pop\" variable=\"ignore\">\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n</$set>\n</$list>\n</$set>\n</$list>\n</div>\n"
+ },
+ "$:/core/ui/PageStylesheet": {
+ "title": "$:/core/ui/PageStylesheet",
+ "text": "\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n<$set name=\"currentTiddler\" value={{$:/language}}>\n\n<$set name=\"languageTitle\" value={{!!name}}>\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]\">\n<$transclude mode=\"block\"/>\n</$list>\n\n</$set>\n\n</$set>\n"
+ },
+ "$:/core/ui/PageTemplate/alerts": {
+ "title": "$:/core/ui/PageTemplate/alerts",
+ "tags": "$:/tags/PageTemplate",
+ "text": "<div class=\"tc-alerts\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Alert]!has[draft.of]]\" template=\"$:/core/ui/AlertTemplate\" storyview=\"pop\"/>\n\n</div>\n"
+ },
+ "$:/core/ui/PageTemplate/drafts": {
+ "title": "$:/core/ui/PageTemplate/drafts",
+ "tags": "$:/tags/PageTemplate",
+ "text": "\\whitespace trim\n<$reveal state=\"$:/status/IsReadOnly\" type=\"nomatch\" text=\"yes\" tag=\"div\" class=\"tc-drafts-list\">\n<$list filter=\"[has[draft.of]!sort[modified]] -[list[$:/StoryList]]\">\n<$link>\n{{$:/core/images/edit-button}} <$text text=<<currentTiddler>>/>\n</$link>\n</$list>\n</$reveal>\n"
+ },
+ "$:/core/ui/PageTemplate/pluginreloadwarning": {
+ "title": "$:/core/ui/PageTemplate/pluginreloadwarning",
+ "tags": "$:/tags/PageTemplate",
+ "text": "\\define lingo-base() $:/language/\n\n<$list filter=\"[{$:/status/RequireReloadDueToPluginChange}match[yes]]\">\n\n<$reveal type=\"nomatch\" state=\"$:/temp/HidePluginWarning\" text=\"yes\">\n\n<div class=\"tc-plugin-reload-warning\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n<<lingo PluginReloadWarning>> <$button set=\"$:/temp/HidePluginWarning\" setTo=\"yes\" class=\"tc-btn-invisible\">{{$:/core/images/close-button}}</$button>\n\n</$set>\n\n</div>\n\n</$reveal>\n\n</$list>\n"
+ },
+ "$:/core/ui/PageTemplate/sidebar": {
+ "title": "$:/core/ui/PageTemplate/sidebar",
+ "tags": "$:/tags/PageTemplate",
+ "text": "\\whitespace trim\n\\define config-title()\n$:/config/SideBarSegments/Visibility/$(listItem)$\n\\end\n\n<$scrollable fallthrough=\"no\" class=\"tc-sidebar-scrollable\">\n\n<div class=\"tc-sidebar-header\">\n\n<$reveal state=\"$:/state/sidebar\" type=\"match\" text=\"yes\" default=\"yes\" retain=\"yes\" animate=\"yes\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SideBarSegment]!has[draft.of]]\" variable=\"listItem\">\n\n<$reveal type=\"nomatch\" state=<<config-title>> text=\"hide\" tag=\"div\">\n\n<$transclude tiddler=<<listItem>> mode=\"block\"/>\n\n</$reveal>\n\n</$list>\n\n</$reveal>\n\n</div>\n\n</$scrollable>\n"
+ },
+ "$:/core/ui/PageTemplate/story": {
+ "title": "$:/core/ui/PageTemplate/story",
+ "tags": "$:/tags/PageTemplate",
+ "text": "\\whitespace trim\n<section class=\"tc-story-river\">\n\n<section class=\"story-backdrop\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/AboveStory]!has[draft.of]]\">\n\n<$transclude/>\n\n</$list>\n\n</section>\n\n<$list filter=\"[list[$:/StoryList]]\" history=\"$:/HistoryList\" template={{$:/config/ui/ViewTemplate}} editTemplate={{$:/config/ui/EditTemplate}} storyview={{$:/view}} emptyMessage={{$:/config/EmptyStoryMessage}}/>\n\n<section class=\"story-frontdrop\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/BelowStory]!has[draft.of]]\">\n\n<$transclude/>\n\n</$list>\n\n</section>\n\n</section>\n"
+ },
+ "$:/core/ui/PageTemplate/topleftbar": {
+ "title": "$:/core/ui/PageTemplate/topleftbar",
+ "tags": "$:/tags/PageTemplate",
+ "text": "<span class=\"tc-topbar tc-topbar-left\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TopLeftBar]!has[draft.of]]\" variable=\"listItem\" storyview=\"pop\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$list>\n\n</span>\n"
+ },
+ "$:/core/ui/PageTemplate/toprightbar": {
+ "title": "$:/core/ui/PageTemplate/toprightbar",
+ "tags": "$:/tags/PageTemplate",
+ "text": "<span class=\"tc-topbar tc-topbar-right\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TopRightBar]!has[draft.of]]\" variable=\"listItem\" storyview=\"pop\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$list>\n\n</span>\n"
+ },
+ "$:/core/ui/PageTemplate": {
+ "title": "$:/core/ui/PageTemplate",
+ "name": "{{$:/language/PageTemplate/Name}}",
+ "description": "{{$:/language/PageTemplate/Description}}",
+ "text": "\\whitespace trim\n\\define containerClasses()\ntc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$\n\\end\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n<$vars\n\ttv-config-toolbar-icons={{$:/config/Toolbar/Icons}}\n\ttv-config-toolbar-text={{$:/config/Toolbar/Text}}\n\ttv-config-toolbar-class={{$:/config/Toolbar/ButtonClass}}\n\ttv-enable-drag-and-drop={{$:/config/DragAndDrop/Enable}}\n\ttv-show-missing-links={{$:/config/MissingLinks}}\n\tstoryviewTitle={{$:/view}}\n\tlanguageTitle={{{ [{$:/language}get[name]] }}}>\n\n<div class=<<containerClasses>>>\n\n<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n\n<$dropzone enable=<<tv-enable-drag-and-drop>>>\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageTemplate]!has[draft.of]]\" variable=\"listItem\">\n\n<$transclude tiddler=<<listItem>>/>\n\n</$list>\n\n</$dropzone>\n\n</$navigator>\n\n</div>\n\n</$vars>\n"
+ },
+ "$:/PaletteManager": {
+ "title": "$:/PaletteManager",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Palette/Editor/\n\\define describePaletteColour(colour)\n<$transclude tiddler=\"$:/language/Docs/PaletteColours/$colour$\"><$text text=\"$colour$\"/></$transclude>\n\\end\n\\define edit-colour-placeholder()\n edit $(colourName)$\n\\end\n\\define colour-tooltip(showhide) $showhide$ editor for $(newColourName)$ \n\\define resolve-colour(macrocall)\n\\import $:/core/macros/utils\n\\whitespace trim\n<$wikify name=\"name\" text=\"\"\"$macrocall$\"\"\">\n<<name>>\n</$wikify>\n\\end\n\\define delete-colour-index-actions() <$action-setfield $index=<<colourName>>/>\n\\define palette-manager-colour-row-segment()\n\\whitespace trim\n<$edit-text index=<<colourName>> tag=\"input\" placeholder=<<edit-colour-placeholder>> default=\"\"/>\n<br>\n<$edit-text index=<<colourName>> type=\"color\" tag=\"input\" class=\"tc-palette-manager-colour-input\"/>\n<$list filter=\"[<currentTiddler>getindex<colourName>removeprefix[<<]removesuffix[>>]] [<currentTiddler>getindex<colourName>removeprefix[<$]removesuffix[/>]]\" variable=\"ignore\">\n<$set name=\"state\" value={{{ [[$:/state/palettemanager/]addsuffix<currentTiddler>addsuffix[/]addsuffix<colourName>] }}}>\n<$wikify name=\"newColourName\" text=\"\"\"<$macrocall $name=\"resolve-colour\" macrocall={{{ [<currentTiddler>getindex<colourName>] }}}/>\"\"\">\n<$reveal state=<<state>> type=\"nomatch\" text=\"show\">\n<$button tooltip=<<colour-tooltip show>> aria-label=<<colour-tooltip show>> class=\"tc-btn-invisible\" set=<<state>> setTo=\"show\">{{$:/core/images/down-arrow}}<$text text=<<newColourName>> class=\"tc-small-gap-left\"/></$button><br>\n</$reveal>\n<$reveal state=<<state>> type=\"match\" text=\"show\">\n<$button tooltip=<<colour-tooltip hide>> aria-label=<<colour-tooltip show>> class=\"tc-btn-invisible\" actions=\"\"\"<$action-deletetiddler $tiddler=<<state>>/>\"\"\">{{$:/core/images/up-arrow}}<$text text=<<newColourName>> class=\"tc-small-gap-left\"/></$button><br>\n</$reveal>\n<$reveal state=<<state>> type=\"match\" text=\"show\">\n<$set name=\"colourName\" value=<<newColourName>>>\n<br>\n<<palette-manager-colour-row-segment>>\n<br><br>\n</$set>\n</$reveal>\n</$wikify>\n</$set>\n</$list>\n\\end\n\\define palette-manager-colour-row()\n\\whitespace trim\n<tr>\n<td>\n<span style=\"float:right;\">\n<$button tooltip={{$:/language/ControlPanel/Palette/Editor/Delete/Hint}} aria-label=<<lingo Delete/Hint>> class=\"tc-btn-invisible\" actions=<<delete-colour-index-actions>>>\n{{$:/core/images/delete-button}}</$button>\n</span>\n''<$macrocall $name=\"describePaletteColour\" colour=<<colourName>>/>''<br/>\n<$macrocall $name=\"colourName\" $output=\"text/plain\"/>\n</td>\n<td>\n<<palette-manager-colour-row-segment>>\n</td>\n</tr>\n\\end\n\\define palette-manager-table()\n\\whitespace trim\n<table>\n<tbody>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Palette]indexes[]]\" variable=\"colourName\">\n<$list filter=\"[<currentTiddler>indexes[]removeprefix<colourName>suffix[]]\" variable=\"ignore\" emptyMessage=\"\"\"\n<$list filter=\"[{$:/state/palettemanager/showexternal}removeprefix[yes]suffix[]]\" variable=\"ignore\">\n<<palette-manager-colour-row>>\n</$list>\n\"\"\">\n<<palette-manager-colour-row>>\n</$list>\n</$list>\n</tbody>\n</table>\n\\end\n<$set name=\"currentTiddler\" value={{$:/palette}}>\n\n<<lingo Prompt>> <$link to={{$:/palette}}><$macrocall $name=\"currentTiddler\" $output=\"text/plain\"/></$link>\n\n<$list filter=\"[all[current]is[shadow]is[tiddler]]\" variable=\"listItem\">\n<<lingo Prompt/Modified>>\n<$button message=\"tm-delete-tiddler\" param={{$:/palette}}><<lingo Reset/Caption>></$button>\n</$list>\n\n<$list filter=\"[all[current]is[shadow]!is[tiddler]]\" variable=\"listItem\">\n<<lingo Clone/Prompt>>\n</$list>\n\n<$button message=\"tm-new-tiddler\" param={{$:/palette}}><<lingo Clone/Caption>></$button>\n\n<$checkbox tiddler=\"$:/state/palettemanager/showexternal\" field=\"text\" checked=\"yes\" unchecked=\"no\"><span class=\"tc-small-gap-left\"><<lingo Names/External/Show>></span></$checkbox>\n\n<<palette-manager-table>>\n"
+ },
+ "$:/core/ui/PluginInfo": {
+ "title": "$:/core/ui/PluginInfo",
+ "text": "\\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<$transclude tiddler=<<localised-info-tiddler-title>> mode=\"block\">\n<$transclude tiddler=<<currentTiddler>> subtiddler=<<localised-info-tiddler-title>> mode=\"block\">\n<$transclude tiddler=<<currentTiddler>> subtiddler=<<info-tiddler-title>> mode=\"block\">\n<$transclude tiddler=<<default-tiddler-title>> mode=\"block\">\n{{$:/language/ControlPanel/Plugin/NoInfoFound/Hint}}\n</$transclude>\n</$transclude>\n</$transclude>\n</$transclude>\n"
+ },
+ "$:/core/ui/PluginInfo/Default/contents": {
+ "title": "$:/core/ui/PluginInfo/Default/contents",
+ "text": "\\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/\n<<lingo Hint>>\n<ul>\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" emptyMessage=<<lingo Empty/Hint>>>\n<li>\n<$link />\n</li>\n</$list>\n</ul>\n"
+ },
+ "$:/core/ui/PluginListItemTemplate": {
+ "title": "$:/core/ui/PluginListItemTemplate",
+ "text": "<div class=\"tc-menu-list-item\">\n<$link to={{!!title}}><$view field=\"description\"><$view field=\"title\"/></$view></$link>\n</div>"
+ },
+ "$:/core/ui/RootTemplate": {
+ "title": "$:/core/ui/RootTemplate",
+ "text": "<$transclude tiddler={{{ [{$:/layout}has[text]] ~[[$:/core/ui/PageTemplate]] }}} mode=\"inline\"/>\n\n"
+ },
+ "$:/core/ui/SearchResults": {
+ "title": "$:/core/ui/SearchResults",
+ "text": "<div class=\"tc-search-results\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\" emptyMessage=\"\"\"\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\">\n<$transclude mode=\"block\"/>\n</$list>\n\"\"\">\n\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\" default={{$:/config/SearchResults/Default}} actions=\"\"\"<$action-setfield $tiddler=\"$:/state/search/currentTab\" text=<<currentTab>>/>\"\"\" explicitState=\"$:/state/tab/search-results/sidebar\"/>\n\n</$list>\n\n</div>\n"
+ },
+ "$:/core/ui/SideBar/More": {
+ "title": "$:/core/ui/SideBar/More",
+ "tags": "$:/tags/SideBar",
+ "caption": "{{$:/language/SideBar/More/Caption}}",
+ "text": "<div class=\"tc-more-sidebar\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]\" default={{$:/config/DefaultMoreSidebarTab}} state=\"$:/state/tab/moresidebar\" class=\"tc-vertical tc-sidebar-tabs-more\" explicitState=\"$:/state/tab/moresidebar-1850697562\"/>\n</div>\n"
+ },
+ "$:/core/ui/SideBar/Open": {
+ "title": "$:/core/ui/SideBar/Open",
+ "tags": "$:/tags/SideBar",
+ "caption": "{{$:/language/SideBar/Open/Caption}}",
+ "text": "\\whitespace trim\n\\define lingo-base() $:/language/CloseAll/\n\n\\define drop-actions()\n<$action-listops $tiddler=<<tv-story-list>> $subfilter=\"+[insertbefore:currentTiddler<actionTiddler>]\"/>\n\\end\n\n\\define placeholder()\n<div class=\"tc-droppable-placeholder\"/>\n\\end\n\n\\define droppable-item(button)\n\\whitespace trim\n<$droppable actions=<<drop-actions>> enable=<<tv-allow-drag-and-drop>>>\n<<placeholder>>\n<div>\n$button$\n</div>\n</$droppable>\n\\end\n\n<div class=\"tc-sidebar-tab-open\">\n<$list filter=\"[list<tv-story-list>]\" history=<<tv-history-list>> storyview=\"pop\">\n<div class=\"tc-sidebar-tab-open-item\">\n<$macrocall $name=\"droppable-item\" button=\"\"\"<$button message=\"tm-close-tiddler\" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=\"tc-btn-invisible tc-btn-mini tc-small-gap-right\">{{$:/core/images/close-button}}</$button><$link to={{!!title}}><$view field=\"title\"/></$link>\"\"\"/>\n</div>\n</$list>\n<$tiddler tiddler=\"\">\n<div>\n<$macrocall $name=\"droppable-item\" button=\"\"\"<$button message=\"tm-close-all-tiddlers\" class=\"tc-btn-invisible tc-btn-mini\"><<lingo Button>></$button>\"\"\"/>\n</div>\n</$tiddler>\n</div>\n"
+ },
+ "$:/core/ui/SideBar/Recent": {
+ "title": "$:/core/ui/SideBar/Recent",
+ "tags": "$:/tags/SideBar",
+ "caption": "{{$:/language/SideBar/Recent/Caption}}",
+ "text": "<$macrocall $name=\"timeline\" format={{$:/language/RecentChanges/DateFormat}}/>\n"
+ },
+ "$:/core/ui/SideBar/Tools": {
+ "title": "$:/core/ui/SideBar/Tools",
+ "tags": "$:/tags/SideBar",
+ "caption": "{{$:/language/SideBar/Tools/Caption}}",
+ "text": "\\define lingo-base() $:/language/ControlPanel/\n\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n\n<<lingo Basics/Version/Prompt>> <<version>>\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]\" variable=\"listItem\">\n\n<div style=\"position:relative;\" class={{{ [<listItem>encodeuricomponent[]addprefix[tc-btn-]] }}}>\n\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <$transclude tiddler=<<listItem>>/> <i class=\"tc-muted\"><$transclude tiddler=<<listItem>> field=\"description\"/></i>\n\n</div>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n"
+ },
+ "$:/core/ui/SideBarLists": {
+ "title": "$:/core/ui/SideBarLists",
+ "text": "<$transclude tiddler=\"$:/core/ui/SideBarSegments/search\"/>\n\n<$transclude tiddler=\"$:/core/ui/SideBarSegments/tabs\"/>\n\n"
+ },
+ "$:/core/ui/SideBarSegments/page-controls": {
+ "title": "$:/core/ui/SideBarSegments/page-controls",
+ "tags": "$:/tags/SideBarSegment",
+ "text": "{{||$:/core/ui/PageTemplate/pagecontrols}}\n"
+ },
+ "$:/core/ui/SideBarSegments/search": {
+ "title": "$:/core/ui/SideBarSegments/search",
+ "tags": "$:/tags/SideBarSegment",
+ "text": "\\whitespace trim\n\n\\define count-popup-button()\n\\whitespace trim\n<$button popup=<<qualify \"$:/state/popup/search-dropdown\">> class=\"tc-btn-invisible\">\n{{$:/core/images/down-arrow}}\n<$list filter=\"[{$(searchTiddler)$}minlength{$:/config/Search/MinLength}limit[1]]\" variable=\"listItem\">\n<$vars userInput={{{ [<searchTiddler>get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}} replaceRegexp=\"limit\\[\\d+\\]\">\n<$vars primaryListFilter={{{ [<configTiddler>get[first-search-filter]search-replace:g:regexp<replaceRegexp>,[]] }}} secondaryListFilter={{{ [<configTiddler>get[second-search-filter]search-replace:g:regexp<replaceRegexp>,[]] }}}>\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[subfilter<primaryListFilter>] [subfilter<secondaryListFilter>]\"/>\"\"\">\n{{$:/language/Search/Matches}}\n</$set>\n</$vars>\n</$vars>\n</$list>\n</$button>\n\\end\n\n\\define search-results-list()\n\\whitespace trim\n<$vars userInput={{$(searchTiddler)$}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}}>\n<$list filter=\"[<userInput>minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n\n<$tiddler tiddler=<<configTiddler>>>\n\n{{$:/core/ui/SearchResults}}\n\n</$tiddler>\n\n</$list>\n</$vars>\n\\end\n\n\\define cancel-search-actions() <$list filter=\"[<searchTiddler>get[text]!match{$:/temp/search}]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[[$:/temp/search]] [<searchTiddler>] [<searchListState>]\"/>\"\"\"><$action-setfield $tiddler=\"$:/temp/search\" text={{{ [<searchTiddler>get[text]] }}}/><$action-setfield $tiddler=\"$:/temp/search/refresh\" text=\"yes\"/></$list>\n\n\\define input-accept-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\"\"\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\n\n\\define input-accept-variant-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\"\"\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\n\n\\define set-next-input-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab/search-results/sidebar\" tag=\"$:/tags/SearchResults\" beforeafter=\"$beforeafter$\" defaultState={{$:/config/SearchResults/Default}} actions=\"\"\"<$action-setfield $tiddler=\"$:/state/search/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define advanced-search-actions() <$action-setfield $tiddler=\"$:/temp/advancedsearch\" text={{$:/temp/search/input}}/><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text={{$:/temp/search/input}}/><<delete-state-tiddlers>><$action-navigate $to=\"$:/AdvancedSearch\"/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/><$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\"[data-tiddler-title=\"$:/AdvancedSearch\"] .tc-search input\"\"\" preventScroll=\"true\"/><$action-deletetiddler $filter=\"$:/temp/search $:/temp/search/input $:/temp/search/refresh [<searchListState>]\"/>\n\n<div class=\"tc-sidebar-lists tc-sidebar-search\">\n\n<$vars editTiddler=\"$:/temp/search\" searchTiddler=\"$:/temp/search/input\" searchListState=<<qualify \"$:/state/search-list/selected-item\">>>\n<div class=\"tc-search\">\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">>>\n<$keyboard key=\"((advanced-search-sidebar))\" actions=<<advanced-search-actions>>>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=<<editTiddler>> storeTitle=<<searchTiddler>> \n\t\tselectionStateTitle=<<searchListState>> refreshTitle=\"$:/temp/search/refresh\" type=\"search\" \n\t\ttag=\"input\" focus={{$:/config/Search/AutoFocus}} focusPopup=<<qualify \"$:/state/popup/search-dropdown\">> \n\t\tclass=\"tc-popup-handle\" filterMinLength={{$:/config/Search/MinLength}} inputCancelActions=<<cancel-search-actions>> \n\t\tinputAcceptActions=<<input-accept-actions>> inputAcceptVariantActions=<<input-accept-variant-actions>> cancelPopups=\"yes\" \n\t\tconfigTiddlerFilter=\"[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]\"/>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n<$reveal state=<<searchTiddler>> type=\"nomatch\" text=\"\">\n<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"tc-btn-invisible\">\n<<advanced-search-actions>>\n{{$:/core/images/advanced-search-button}}\n</$button>\n<$button class=\"tc-btn-invisible\">\n<<cancel-search-actions>><$action-sendmessage $message=\"tm-focus-selector\" $param=\".tc-search input\"/>\n{{$:/core/images/close-button}}\n</$button>\n<<count-popup-button>>\n</$reveal>\n<$reveal state=<<searchTiddler>> type=\"match\" text=\"\">\n<$button to=\"$:/AdvancedSearch\" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"tc-btn-invisible\">\n{{$:/core/images/advanced-search-button}}\n</$button>\n</$reveal>\n</div>\n\n<$reveal tag=\"div\" class=\"tc-block-dropdown-wrapper\" state=<<searchTiddler>> type=\"nomatch\" text=\"\">\n\n<$reveal tag=\"div\" class=\"tc-block-dropdown tc-search-drop-down tc-popup-handle\" state=<<qualify \"$:/state/popup/search-dropdown\">> type=\"nomatch\" text=\"\" default=\"\">\n\n<<search-results-list>>\n\n</$reveal>\n\n</$reveal>\n\n</$vars>\n\n</div>\n"
+ },
+ "$:/core/ui/SideBarSegments/site-subtitle": {
+ "title": "$:/core/ui/SideBarSegments/site-subtitle",
+ "tags": "$:/tags/SideBarSegment",
+ "text": "<div class=\"tc-site-subtitle\">\n\n<$transclude tiddler=\"$:/SiteSubtitle\" mode=\"inline\"/>\n\n</div>\n"
+ },
+ "$:/core/ui/SideBarSegments/site-title": {
+ "title": "$:/core/ui/SideBarSegments/site-title",
+ "tags": "$:/tags/SideBarSegment",
+ "text": "<h1 class=\"tc-site-title\">\n\n<$transclude tiddler=\"$:/SiteTitle\" mode=\"inline\"/>\n\n</h1>\n"
+ },
+ "$:/core/ui/SideBarSegments/tabs": {
+ "title": "$:/core/ui/SideBarSegments/tabs",
+ "tags": "$:/tags/SideBarSegment",
+ "text": "<div class=\"tc-sidebar-lists tc-sidebar-tabs\">\n\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]\" default={{$:/config/DefaultSidebarTab}} state=\"$:/state/tab/sidebar\" class=\"tc-sidebar-tabs-main\" explicitState=\"$:/state/tab/sidebar--595412856\"/>\n\n</div>\n"
+ },
+ "$:/core/ui/SwitcherModal": {
+ "title": "$:/core/ui/SwitcherModal",
+ "subtitle": "<$text text={{{[<switch>lookup[$:/language/Switcher/Subtitle/]]}}}/>",
+ "class": "tc-modal-centered",
+ "text": "<$tiddler tiddler={{{[<switch>lookup[$:/config/SwitcherTargets/]]}}}>\n\n\n<$transclude/>\n\n\n</$tiddler>"
+ },
+ "$:/TagManager": {
+ "title": "$:/TagManager",
+ "icon": "$:/core/images/tag-button",
+ "color": "#bbb",
+ "text": "\\define lingo-base() $:/language/TagManager/\n\\define iconEditorTab(type)\n\\whitespace trim\n<$link to=\"\"><<lingo Icons/None>></$link>\n<$list filter=\"[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[sort[title]] +[$type$is[system]]\">\n<$link to={{!!title}}>\n<$transclude/> <$view field=\"title\"/>\n</$link>\n</$list>\n\\end\n\\define iconEditor(title)\n\\whitespace trim\n<div class=\"tc-drop-down-wrapper\">\n<$button popupTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} class=\"tc-btn-invisible tc-btn-dropdown\">{{$:/core/images/down-arrow}}</$button>\n<$reveal stateTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} type=\"popup\" position=\"belowleft\" text=\"\" default=\"\">\n<div class=\"tc-drop-down\">\n<$linkcatcher actions=\"\"\"<$action-setfield $tiddler=<<__title__>> icon=<<navigateTo>>/>\"\"\">\n<<iconEditorTab type:\"!\">>\n<hr/>\n<<iconEditorTab type:\"\">>\n</$linkcatcher>\n</div>\n</$reveal>\n</div>\n\\end\n\\define toggleButton(state)\n\\whitespace trim\n<$reveal stateTitle=<<__state__>> type=\"match\" text=\"closed\" default=\"closed\">\n<$button setTitle=<<__state__>> setTo=\"open\" class=\"tc-btn-invisible tc-btn-dropdown\" selectedClass=\"tc-selected\">\n{{$:/core/images/info-button}}\n</$button>\n</$reveal>\n<$reveal stateTitle=<<__state__>> type=\"match\" text=\"open\" default=\"closed\">\n<$button setTitle=<<__state__>> setTo=\"closed\" class=\"tc-btn-invisible tc-btn-dropdown\" selectedClass=\"tc-selected\">\n{{$:/core/images/info-button}}\n</$button>\n</$reveal>\n\\end\n\\whitespace trim\n<table class=\"tc-tag-manager-table\">\n<tbody>\n<tr>\n<th><<lingo Colour/Heading>></th>\n<th class=\"tc-tag-manager-tag\"><<lingo Tag/Heading>></th>\n<th><<lingo Count/Heading>></th>\n<th><<lingo Icon/Heading>></th>\n<th><<lingo Info/Heading>></th>\n</tr>\n<$list filter=\"[tags[]!is[system]sort[title]]\">\n<tr>\n<td><$edit-text field=\"color\" tag=\"input\" type=\"color\"/></td>\n<td>{{||$:/core/ui/TagTemplate}}</td>\n<td><$count filter=\"[all[current]tagging[]]\"/></td>\n<td>\n<$macrocall $name=\"iconEditor\" title={{!!title}}/>\n</td>\n<td>\n<$macrocall $name=\"toggleButton\" state={{{ [[$:/state/tag-manager/]addsuffix<currentTiddler>] }}} /> \n</td>\n</tr>\n<tr>\n<td></td>\n<td colspan=\"4\">\n<$reveal stateTitle={{{ [[$:/state/tag-manager/]addsuffix<currentTiddler>] }}} type=\"match\" text=\"open\" default=\"\">\n<table>\n<tbody>\n<tr><td><<lingo Colour/Heading>></td><td><$edit-text field=\"color\" tag=\"input\" type=\"text\" size=\"9\"/></td></tr>\n<tr><td><<lingo Icon/Heading>></td><td><$edit-text field=\"icon\" tag=\"input\" size=\"45\"/></td></tr>\n</tbody>\n</table>\n</$reveal>\n</td>\n</tr>\n</$list>\n<tr>\n<td></td>\n<td style=\"position:relative;\">\n{{$:/core/ui/UntaggedTemplate}}\n</td>\n<td>\n<small class=\"tc-menu-list-count\"><$count filter=\"[untagged[]!is[system]] -[tags[]]\"/></small>\n</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n"
+ },
+ "$:/core/ui/TagPickerTagTemplate": {
+ "title": "$:/core/ui/TagPickerTagTemplate",
+ "text": "\\whitespace trim\n<$button class=<<button-classes>> tag=\"a\" tooltip={{$:/language/EditTemplate/Tags/Add/Button/Hint}}>\n<$list filter=\"[<saveTiddler>minlength[1]]\">\n<$action-listops $tiddler=<<saveTiddler>> $field=<<tagField>> $subfilter=\"[<tag>]\"/>\n</$list>\n<$set name=\"currentTiddlerCSSEscaped\" value={{{ [<saveTiddler>escapecss[]] }}}>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=<<get-tagpicker-focus-selector>> preventScroll=\"true\"/>\n</$set>\n<<delete-tag-state-tiddlers>>\n<$list filter=\"[<refreshTitle>minlength[1]]\">\n<$action-setfield $tiddler=<<refreshTitle>> text=\"yes\"/>\n</$list>\n<<actions>>\n<$set name=\"backgroundColor\" value={{!!color}}>\n<$wikify name=\"foregroundColor\" text=\"\"\"<$macrocall $name=\"contrastcolour\" target={{!!color}} fallbackTarget=<<fallbackTarget>> colourA=<<colourA>> colourB=<<colourB>>/>\"\"\">\n<span class=\"tc-tag-label tc-btn-invisible\" style=<<tag-pill-styles>>>\n<$transclude tiddler={{!!icon}}/><$view field=\"title\" format=\"text\"/>\n</span>\n</$wikify>\n</$set>\n</$button>\n"
+ },
+ "$:/core/ui/TagTemplate": {
+ "title": "$:/core/ui/TagTemplate",
+ "text": "\\whitespace trim\n<span class=\"tc-tag-list-item\">\n<$set name=\"transclusion\" value=<<currentTiddler>>>\n<$macrocall $name=\"tag-pill-body\" tag=<<currentTiddler>> icon={{!!icon}} colour={{!!color}} palette={{$:/palette}} element-tag=\"\"\"$button\"\"\" element-attributes=\"\"\"popup=<<qualify \"$:/state/popup/tag\">> dragFilter='[all[current]tagging[]]' tag='span'\"\"\"/>\n<$reveal state=<<qualify \"$:/state/popup/tag\">> type=\"popup\" position=\"below\" animate=\"yes\" class=\"tc-drop-down\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</$set>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]\" variable=\"listItem\"> \n<$transclude tiddler=<<listItem>>/> \n</$list>\n<hr>\n<$macrocall $name=\"list-tagged-draggable\" tag=<<currentTiddler>>/>\n</$reveal>\n</$set>\n</span>\n"
+ },
+ "$:/core/ui/TiddlerFieldTemplate": {
+ "title": "$:/core/ui/TiddlerFieldTemplate",
+ "text": "<tr class=\"tc-view-field\">\n<td class=\"tc-view-field-name\">\n<$text text=<<listItem>>/>\n</td>\n<td class=\"tc-view-field-value\">\n<$view field=<<listItem>>/>\n</td>\n</tr>"
+ },
+ "$:/core/ui/TiddlerFields": {
+ "title": "$:/core/ui/TiddlerFields",
+ "text": "<table class=\"tc-view-field-table\">\n<tbody>\n<$list filter=\"[all[current]fields[]sort[title]] -text\" template=\"$:/core/ui/TiddlerFieldTemplate\" variable=\"listItem\"/>\n</tbody>\n</table>\n"
+ },
+ "$:/core/ui/TiddlerInfo/Advanced/PluginInfo": {
+ "title": "$:/core/ui/TiddlerInfo/Advanced/PluginInfo",
+ "tags": "$:/tags/TiddlerInfo/Advanced",
+ "text": "\\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/\n<$list filter=\"[all[current]has[plugin-type]]\">\n\n! <<lingo Heading>>\n\n<<lingo Hint>>\n<ul>\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" emptyMessage=<<lingo Empty/Hint>>>\n<li>\n<$link to={{!!title}}>\n<$view field=\"title\"/>\n</$link>\n</li>\n</$list>\n</ul>\n\n</$list>\n"
+ },
+ "$:/core/ui/TiddlerInfo/Advanced/ShadowInfo": {
+ "title": "$:/core/ui/TiddlerInfo/Advanced/ShadowInfo",
+ "tags": "$:/tags/TiddlerInfo/Advanced",
+ "text": "\\define lingo-base() $:/language/TiddlerInfo/Advanced/ShadowInfo/\n<$set name=\"infoTiddler\" value=<<currentTiddler>>>\n\n''<<lingo Heading>>''\n\n<$list filter=\"[all[current]!is[shadow]]\">\n\n<<lingo NotShadow/Hint>>\n\n</$list>\n\n<$list filter=\"[all[current]is[shadow]]\">\n\n<<lingo Shadow/Hint>>\n\n<$list filter=\"[all[current]shadowsource[]]\">\n\n<$set name=\"pluginTiddler\" value=<<currentTiddler>>>\n<<lingo Shadow/Source>>\n</$set>\n\n</$list>\n\n<$list filter=\"[all[current]is[shadow]is[tiddler]]\">\n\n<<lingo OverriddenShadow/Hint>>\n\n</$list>\n\n\n</$list>\n</$set>\n"
+ },
+ "$:/core/ui/TiddlerInfo/Advanced": {
+ "title": "$:/core/ui/TiddlerInfo/Advanced",
+ "tags": "$:/tags/TiddlerInfo",
+ "caption": "{{$:/language/TiddlerInfo/Advanced/Caption}}",
+ "text": "<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo/Advanced]!has[draft.of]]\" variable=\"listItem\">\n\n<$transclude tiddler=<<listItem>> mode=\"block\"/>\n</$list>\n"
+ },
+ "$:/core/ui/TiddlerInfo/Fields": {
+ "title": "$:/core/ui/TiddlerInfo/Fields",
+ "tags": "$:/tags/TiddlerInfo",
+ "caption": "{{$:/language/TiddlerInfo/Fields/Caption}}",
+ "text": "<$transclude tiddler=\"$:/core/ui/TiddlerFields\"/>\n"
+ },
+ "$:/core/ui/TiddlerInfo/List": {
+ "title": "$:/core/ui/TiddlerInfo/List",
+ "tags": "$:/tags/TiddlerInfo",
+ "caption": "{{$:/language/TiddlerInfo/List/Caption}}",
+ "text": "\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[list{!!title}]\" emptyMessage=<<lingo List/Empty>> template=\"$:/core/ui/ListItemTemplate\"/>\n"
+ },
+ "$:/core/ui/TiddlerInfo/Listed": {
+ "title": "$:/core/ui/TiddlerInfo/Listed",
+ "tags": "$:/tags/TiddlerInfo",
+ "caption": "{{$:/language/TiddlerInfo/Listed/Caption}}",
+ "text": "\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[all[current]listed[]!is[system]]\" emptyMessage=<<lingo Listed/Empty>> template=\"$:/core/ui/ListItemTemplate\"/>\n"
+ },
+ "$:/core/ui/TiddlerInfo/References": {
+ "title": "$:/core/ui/TiddlerInfo/References",
+ "tags": "$:/tags/TiddlerInfo",
+ "caption": "{{$:/language/TiddlerInfo/References/Caption}}",
+ "text": "\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[all[current]backlinks[]sort[title]]\" emptyMessage=<<lingo References/Empty>> template=\"$:/core/ui/ListItemTemplate\">\n</$list>"
+ },
+ "$:/core/ui/TiddlerInfo/Tagging": {
+ "title": "$:/core/ui/TiddlerInfo/Tagging",
+ "tags": "$:/tags/TiddlerInfo",
+ "caption": "{{$:/language/TiddlerInfo/Tagging/Caption}}",
+ "text": "\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[all[current]tagging[]]\" emptyMessage=<<lingo Tagging/Empty>> template=\"$:/core/ui/ListItemTemplate\"/>\n"
+ },
+ "$:/core/ui/TiddlerInfo/Tools": {
+ "title": "$:/core/ui/TiddlerInfo/Tools",
+ "tags": "$:/tags/TiddlerInfo",
+ "caption": "{{$:/language/TiddlerInfo/Tools/Caption}}",
+ "text": "\\define lingo-base() $:/language/TiddlerInfo/\n\\define config-title()\n$:/config/ViewToolbarButtons/Visibility/$(listItem)$\n\\end\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]\" variable=\"listItem\">\n\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <$transclude tiddler=<<listItem>>/> <i class=\"tc-muted\"><$transclude tiddler=<<listItem>> field=\"description\"/></i>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n"
+ },
+ "$:/core/ui/TiddlerInfo": {
+ "title": "$:/core/ui/TiddlerInfo",
+ "text": "<div style=\"position:relative;\">\n<div class=\"tc-tiddler-controls\" style=\"position:absolute;right:0;\">\n<$reveal state=\"$:/config/TiddlerInfo/Mode\" type=\"match\" text=\"sticky\">\n<$button set=<<tiddlerInfoState>> setTo=\"\" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=\"tc-btn-invisible\">\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n</div>\n\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo]!has[draft.of]]\" default={{$:/config/TiddlerInfo/Default}}/>\n"
+ },
+ "$:/core/ui/TopBar/menu": {
+ "title": "$:/core/ui/TopBar/menu",
+ "tags": "$:/tags/TopRightBar",
+ "text": "<$list filter=\"[[$:/state/sidebar]get[text]] +[else[yes]!match[no]]\" variable=\"ignore\">\n<$button set=\"$:/state/sidebar\" setTo=\"no\" tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class=\"tc-btn-invisible tc-hide-sidebar-btn\">{{$:/core/images/chevron-right}}</$button>\n</$list>\n<$list filter=\"[[$:/state/sidebar]get[text]] +[else[yes]match[no]]\" variable=\"ignore\">\n<$button set=\"$:/state/sidebar\" setTo=\"yes\" tooltip={{$:/language/Buttons/ShowSideBar/Hint}} aria-label={{$:/language/Buttons/ShowSideBar/Caption}} class=\"tc-btn-invisible tc-show-sidebar-btn\">{{$:/core/images/chevron-left}}</$button>\n</$list>\n"
+ },
+ "$:/core/ui/UntaggedTemplate": {
+ "title": "$:/core/ui/UntaggedTemplate",
+ "text": "\\define lingo-base() $:/language/SideBar/\n<$button popup=<<qualify \"$:/state/popup/tag\">> class=\"tc-btn-invisible tc-untagged-label tc-tag-label\">\n<<lingo Tags/Untagged/Caption>>\n</$button>\n<$reveal state=<<qualify \"$:/state/popup/tag\">> type=\"popup\" position=\"below\">\n<div class=\"tc-drop-down\">\n<$list filter=\"[untagged[]!is[system]] -[tags[]] +[sort[title]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n</div>\n</$reveal>\n"
+ },
+ "$:/core/ui/ViewTemplate/body": {
+ "title": "$:/core/ui/ViewTemplate/body",
+ "tags": "$:/tags/ViewTemplate",
+ "text": "<$reveal tag=\"div\" class=\"tc-tiddler-body\" type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" retain=\"yes\" animate=\"yes\">\n\n<$list filter=\"[all[current]!has[plugin-type]!field:hide-body[yes]]\">\n\n<$transclude>\n\n<$transclude tiddler=\"$:/language/MissingTiddler/Hint\"/>\n\n</$transclude>\n\n</$list>\n\n</$reveal>\n"
+ },
+ "$:/core/ui/ViewTemplate/classic": {
+ "title": "$:/core/ui/ViewTemplate/classic",
+ "tags": "$:/tags/ViewTemplate $:/tags/EditTemplate",
+ "text": "\\define lingo-base() $:/language/ClassicWarning/\n<$list filter=\"[all[current]type[text/x-tiddlywiki]]\">\n<div class=\"tc-message-box\">\n\n<<lingo Hint>>\n\n<$button set=\"!!type\" setTo=\"text/vnd.tiddlywiki\"><<lingo Upgrade/Caption>></$button>\n\n</div>\n</$list>\n"
+ },
+ "$:/core/ui/ViewTemplate/import": {
+ "title": "$:/core/ui/ViewTemplate/import",
+ "tags": "$:/tags/ViewTemplate",
+ "text": "\\define lingo-base() $:/language/Import/\n\n\\define buttons()\n<$button message=\"tm-delete-tiddler\" param=<<currentTiddler>>><<lingo Listing/Cancel/Caption>></$button>\n<$button message=\"tm-perform-import\" param=<<currentTiddler>>><<lingo Listing/Import/Caption>></$button>\n<<lingo Listing/Preview>> <$select tiddler=\"$:/state/importpreviewtype\" default=\"$:/core/ui/ImportPreviews/Text\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ImportPreview]!has[draft.of]]\">\n<option value=<<currentTiddler>>>{{!!caption}}</option>\n</$list>\n</$select>\n\\end\n\n<$list filter=\"[all[current]field:plugin-type[import]]\">\n\n<div class=\"tc-import\">\n\n<<lingo Listing/Hint>>\n\n<<buttons>>\n\n{{||$:/core/ui/ImportListing}}\n\n<<buttons>>\n\n</div>\n\n</$list>\n"
+ },
+ "$:/core/ui/ViewTemplate/plugin": {
+ "title": "$:/core/ui/ViewTemplate/plugin",
+ "tags": "$:/tags/ViewTemplate",
+ "text": "<$reveal tag=\"div\" class=\"tc-tiddler-plugin-info\" type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" retain=\"yes\" animate=\"yes\">\n\n<$list filter=\"[all[current]has[plugin-type]] -[all[current]field:plugin-type[import]]\">\n<$set name=\"plugin-type\" value={{!!plugin-type}}>\n<$set name=\"default-popup-state\" value=\"yes\">\n<$set name=\"qualified-state\" value=<<qualify \"$:/state/plugin-info\">>>\n{{||$:/core/ui/Components/plugin-info}}\n</$set>\n</$set>\n</$set>\n</$list>\n</$reveal>"
+ },
+ "$:/core/ui/ViewTemplate/subtitle": {
+ "title": "$:/core/ui/ViewTemplate/subtitle",
+ "tags": "$:/tags/ViewTemplate",
+ "text": "\\whitespace trim\n<$reveal type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" tag=\"div\" retain=\"yes\" animate=\"yes\">\n<div class=\"tc-subtitle\">\n<$link to={{!!modifier}} />\n<$view field=\"modified\" format=\"date\" template={{$:/language/Tiddler/DateFormat}}/>\n</div>\n</$reveal>\n"
+ },
+ "$:/core/ui/ViewTemplate/tags": {
+ "title": "$:/core/ui/ViewTemplate/tags",
+ "tags": "$:/tags/ViewTemplate",
+ "text": "<$reveal type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" tag=\"div\" retain=\"yes\" animate=\"yes\">\n<div class=\"tc-tags-wrapper\"><$list filter=\"[all[current]tags[]sort[title]]\" template=\"$:/core/ui/TagTemplate\" storyview=\"pop\"/></div>\n</$reveal>\n"
+ },
+ "$:/core/ui/ViewTemplate/title": {
+ "title": "$:/core/ui/ViewTemplate/title",
+ "tags": "$:/tags/ViewTemplate",
+ "text": "\\whitespace trim\n\\define title-styles()\nfill:$(foregroundColor)$;\n\\end\n\\define config-title()\n$:/config/ViewToolbarButtons/Visibility/$(listItem)$\n\\end\n<div class=\"tc-tiddler-title\">\n<div class=\"tc-titlebar\">\n<span class=\"tc-tiddler-controls\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]\" variable=\"listItem\"><$reveal type=\"nomatch\" state=<<config-title>> text=\"hide\"><$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\"><$transclude tiddler=<<listItem>>/></$set></$reveal></$list>\n</span>\n<$set name=\"tv-wikilinks\" value={{$:/config/Tiddlers/TitleLinks}}>\n<$link>\n<$set name=\"foregroundColor\" value={{!!color}}>\n<$list filter=\"[all[current]has[icon]]~[[$:/config/DefaultTiddlerIcon]has[text]]\">\n<span class=\"tc-tiddler-title-icon\" style=<<title-styles>>>\n<$transclude tiddler={{!!icon}}>\n<$transclude tiddler={{$:/config/DefaultTiddlerIcon}}/>\n</$transclude>\n</span>\n</$list>\n</$set>\n<$list filter=\"[all[current]removeprefix[$:/]]\">\n<h2 class=\"tc-title\" title={{$:/language/SystemTiddler/Tooltip}}>\n<span class=\"tc-system-title-prefix\">$:/</span><$text text=<<currentTiddler>>/>\n</h2>\n</$list>\n<$list filter=\"[all[current]!prefix[$:/]]\">\n<h2 class=\"tc-title\">\n<$view field=\"title\"/>\n</h2>\n</$list>\n</$link>\n</$set>\n</div>\n\n<$reveal type=\"nomatch\" text=\"\" default=\"\" state=<<tiddlerInfoState>> class=\"tc-tiddler-info tc-popup-handle\" animate=\"yes\" retain=\"yes\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TiddlerInfoSegment]!has[draft.of]] [[$:/core/ui/TiddlerInfo]]\" variable=\"listItem\"><$transclude tiddler=<<listItem>> mode=\"block\"/></$list>\n\n</$reveal>\n</div>"
+ },
+ "$:/core/ui/ViewTemplate/unfold": {
+ "title": "$:/core/ui/ViewTemplate/unfold",
+ "tags": "$:/tags/ViewTemplate",
+ "text": "<$reveal tag=\"div\" type=\"nomatch\" state=\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar\" text=\"hide\">\n<$reveal tag=\"div\" type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" default=\"show\" retain=\"yes\" animate=\"yes\">\n<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=\"tc-fold-banner\">\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n{{$:/core/images/chevron-up}}\n</$button>\n</$reveal>\n<$reveal tag=\"div\" type=\"nomatch\" stateTitle=<<folded-state>> text=\"show\" default=\"show\" retain=\"yes\" animate=\"yes\">\n<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=\"tc-unfold-banner\">\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n{{$:/core/images/chevron-down}}\n</$button>\n</$reveal>\n</$reveal>\n"
+ },
+ "$:/core/ui/ViewTemplate": {
+ "title": "$:/core/ui/ViewTemplate",
+ "text": "\\define folded-state()\n$:/state/folded/$(currentTiddler)$\n\\end\n\\define cancel-delete-tiddler-actions(message) <$action-sendmessage $message=\"tm-$message$-tiddler\"/>\n\\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]]\n<$vars storyTiddler=<<currentTiddler>> tiddlerInfoState=<<qualify \"$:/state/popup/tiddler-info\">>><div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-view-frame [<currentTiddler>is[tiddler]then[tc-tiddler-exists]] [<currentTiddler>is[missing]!is[shadow]then[tc-tiddler-missing]] [<currentTiddler>is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [<currentTiddler>is[shadow]is[tiddler]then[tc-tiddler-overridden-shadow]] [<currentTiddler>is[system]then[tc-tiddler-system]] [{!!class}] [<currentTiddler>tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}><$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]\" variable=\"listItem\"><$transclude tiddler=<<listItem>>/></$list>\n</div>\n</$vars>\n"
+ },
+ "$:/core/ui/Buttons/clone": {
+ "title": "$:/core/ui/Buttons/clone",
+ "tags": "$:/tags/ViewToolbar",
+ "caption": "{{$:/core/images/clone-button}} {{$:/language/Buttons/Clone/Caption}}",
+ "description": "{{$:/language/Buttons/Clone/Hint}}",
+ "text": "\\whitespace trim\n<$button message=\"tm-new-tiddler\" param=<<currentTiddler>> tooltip={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/clone-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Clone/Caption}}/>\n</span>\n</$list>\n</$button>"
+ },
+ "$:/core/ui/Buttons/close-others": {
+ "title": "$:/core/ui/Buttons/close-others",
+ "tags": "$:/tags/ViewToolbar",
+ "caption": "{{$:/core/images/close-others-button}} {{$:/language/Buttons/CloseOthers/Caption}}",
+ "description": "{{$:/language/Buttons/CloseOthers/Hint}}",
+ "text": "\\whitespace trim\n<$button message=\"tm-close-other-tiddlers\" param=<<currentTiddler>> tooltip={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/close-others-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/CloseOthers/Caption}}/>\n</span>\n</$list>\n</$button>"
+ },
+ "$:/core/ui/Buttons/close": {
+ "title": "$:/core/ui/Buttons/close",
+ "tags": "$:/tags/ViewToolbar",
+ "caption": "{{$:/core/images/close-button}} {{$:/language/Buttons/Close/Caption}}",
+ "description": "{{$:/language/Buttons/Close/Hint}}",
+ "text": "\\whitespace trim\n<$button message=\"tm-close-tiddler\" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/close-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/Close/Caption}}/>\n</span>\n</$list>\n</$button>"
+ },
+ "$:/core/ui/Buttons/edit": {
+ "title": "$:/core/ui/Buttons/edit",
+ "tags": "$:/tags/ViewToolbar",
+ "caption": "{{$:/core/images/edit-button}} {{$:/language/Buttons/Edit/Caption}}",
+ "description": "{{$:/language/Buttons/Edit/Hint}}",
+ "text": "\\whitespace trim\n<$button message=\"tm-edit-tiddler\" tooltip={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/edit-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Edit/Caption}}/>\n</span>\n</$list>\n</$button>"
+ },
+ "$:/core/ui/Buttons/export-tiddler": {
+ "title": "$:/core/ui/Buttons/export-tiddler",
+ "tags": "$:/tags/ViewToolbar",
+ "caption": "{{$:/core/images/export-button}} {{$:/language/Buttons/ExportTiddler/Caption}}",
+ "description": "{{$:/language/Buttons/ExportTiddler/Hint}}",
+ "text": "\\define makeExportFilter()\n[[$(currentTiddler)$]]\n\\end\n<$macrocall $name=\"exportButton\" exportFilter=<<makeExportFilter>> lingoBase=\"$:/language/Buttons/ExportTiddler/\" baseFilename=<<currentTiddler>>/>"
+ },
+ "$:/core/ui/Buttons/fold-bar": {
+ "title": "$:/core/ui/Buttons/fold-bar",
+ "tags": "$:/tags/ViewToolbar",
+ "caption": "{{$:/core/images/chevron-up}} {{$:/language/Buttons/Fold/FoldBar/Caption}}",
+ "description": "{{$:/language/Buttons/Fold/FoldBar/Hint}}",
+ "text": "<!-- This dummy toolbar button is here to allow visibility of the fold-bar to be controlled as if it were a toolbar button -->"
+ },
+ "$:/core/ui/Buttons/fold-others": {
+ "title": "$:/core/ui/Buttons/fold-others",
+ "tags": "$:/tags/ViewToolbar",
+ "caption": "{{$:/core/images/fold-others-button}} {{$:/language/Buttons/FoldOthers/Caption}}",
+ "description": "{{$:/language/Buttons/FoldOthers/Hint}}",
+ "text": "\\whitespace trim\n<$button tooltip={{$:/language/Buttons/FoldOthers/Hint}} aria-label={{$:/language/Buttons/FoldOthers/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-other-tiddlers\" $param=<<currentTiddler>> foldedStatePrefix=\"$:/state/folded/\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/fold-others-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/FoldOthers/Caption}}/>\n</span>\n</$list>\n</$button>"
+ },
+ "$:/core/ui/Buttons/fold": {
+ "title": "$:/core/ui/Buttons/fold",
+ "tags": "$:/tags/ViewToolbar",
+ "caption": "{{$:/core/images/fold-button}} {{$:/language/Buttons/Fold/Caption}}",
+ "description": "{{$:/language/Buttons/Fold/Hint}}",
+ "text": "\\whitespace trim\n<$reveal type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" default=\"show\">\n<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/fold-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Fold/Caption}}/>\n</span>\n</$list>\n</$button>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<folded-state>> text=\"hide\" default=\"show\">\n<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/unfold-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Unfold/Caption}}/>\n</span>\n</$list>\n</$button>\n</$reveal>\n"
+ },
+ "$:/core/ui/Buttons/info": {
+ "title": "$:/core/ui/Buttons/info",
+ "tags": "$:/tags/ViewToolbar",
+ "caption": "{{$:/core/images/info-button}} {{$:/language/Buttons/Info/Caption}}",
+ "description": "{{$:/language/Buttons/Info/Hint}}",
+ "text": "\\whitespace trim\n\\define button-content()\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/info-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/Info/Caption}}/>\n</span>\n</$list>\n\\end\n<$reveal state=\"$:/config/TiddlerInfo/Mode\" type=\"match\" text=\"popup\">\n<$button popup=<<tiddlerInfoState>> tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$macrocall $name=\"button-content\" mode=\"inline\"/>\n</$button>\n</$reveal>\n<$reveal state=\"$:/config/TiddlerInfo/Mode\" type=\"match\" text=\"sticky\">\n<$reveal state=<<tiddlerInfoState>> type=\"match\" text=\"\" default=\"\">\n<$button set=<<tiddlerInfoState>> setTo=\"yes\" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$macrocall $name=\"button-content\" mode=\"inline\"/>\n</$button>\n</$reveal>\n<$reveal state=<<tiddlerInfoState>> type=\"nomatch\" text=\"\" default=\"\">\n<$button set=<<tiddlerInfoState>> setTo=\"\" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$macrocall $name=\"button-content\" mode=\"inline\"/>\n</$button>\n</$reveal>\n</$reveal>"
+ },
+ "$:/core/ui/Buttons/more-tiddler-actions": {
+ "title": "$:/core/ui/Buttons/more-tiddler-actions",
+ "tags": "$:/tags/ViewToolbar",
+ "caption": "{{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}",
+ "description": "{{$:/language/Buttons/More/Hint}}",
+ "text": "\\whitespace trim\n\\define config-title()\n$:/config/ViewToolbarButtons/Visibility/$(listItem)$\n\\end\n<$button popup=<<qualify \"$:/state/popup/more\">> tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/down-arrow}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/More/Caption}}/>\n</span>\n</$list>\n</$button>\n<$reveal state=<<qualify \"$:/state/popup/more\">> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n\n<div class=\"tc-drop-down\">\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"tc-btn-invisible\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]\" variable=\"listItem\">\n\n<$reveal type=\"match\" state=<<config-title>> text=\"hide\">\n\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$set>\n\n</$reveal>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n\n</div>\n\n</$reveal>"
+ },
+ "$:/core/ui/Buttons/new-here": {
+ "title": "$:/core/ui/Buttons/new-here",
+ "tags": "$:/tags/ViewToolbar",
+ "caption": "{{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Caption}}",
+ "description": "{{$:/language/Buttons/NewHere/Hint}}",
+ "text": "\\whitespace trim\n\\define newHereActions()\n<$set name=\"tags\" filter=\"[<currentTiddler>] [{$:/config/NewTiddler/Tags}]\">\n<$action-sendmessage $message=\"tm-new-tiddler\" tags=<<tags>>/>\n</$set>\n\\end\n\\define newHereButton()\n<$button actions=<<newHereActions>> tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-here-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/NewHere/Caption}}/>\n</span>\n</$list>\n</$button>\n\\end\n<<newHereButton>>\n"
+ },
+ "$:/core/ui/Buttons/new-journal-here": {
+ "title": "$:/core/ui/Buttons/new-journal-here",
+ "tags": "$:/tags/ViewToolbar",
+ "caption": "{{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournalHere/Caption}}",
+ "description": "{{$:/language/Buttons/NewJournalHere/Hint}}",
+ "text": "\\whitespace trim\n\\define journalButtonTags()\n[[$(currentTiddlerTag)$]] $(journalTags)$\n\\end\n\\define journalButton()\n<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=<<tv-config-toolbar-class>>>\n<$wikify name=\"journalTitle\" text=\"\"\"<$macrocall $name=\"now\" format=<<journalTitleTemplate>>/>\"\"\">\n<$action-sendmessage $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<journalButtonTags>>/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-journal-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/NewJournalHere/Caption}}/>\n</span>\n</$list>\n</$wikify>\n</$button>\n\\end\n<$set name=\"journalTitleTemplate\" value={{$:/config/NewJournal/Title}}>\n<$set name=\"journalTags\" value={{$:/config/NewJournal/Tags}}>\n<$set name=\"currentTiddlerTag\" value=<<currentTiddler>>>\n<<journalButton>>\n</$set>\n</$set>\n</$set>\n"
+ },
+ "$:/core/ui/Buttons/open-window": {
+ "title": "$:/core/ui/Buttons/open-window",
+ "tags": "$:/tags/ViewToolbar",
+ "caption": "{{$:/core/images/open-window}} {{$:/language/Buttons/OpenWindow/Caption}}",
+ "description": "{{$:/language/Buttons/OpenWindow/Hint}}",
+ "text": "\\whitespace trim\n<$button message=\"tm-open-window\" tooltip={{$:/language/Buttons/OpenWindow/Hint}} aria-label={{$:/language/Buttons/OpenWindow/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/open-window}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/OpenWindow/Caption}}/>\n</span>\n</$list>\n</$button>"
+ },
+ "$:/core/ui/Buttons/permalink": {
+ "title": "$:/core/ui/Buttons/permalink",
+ "tags": "$:/tags/ViewToolbar",
+ "caption": "{{$:/core/images/permalink-button}} {{$:/language/Buttons/Permalink/Caption}}",
+ "description": "{{$:/language/Buttons/Permalink/Hint}}",
+ "text": "\\whitespace trim\n<$button message=\"tm-permalink\" tooltip={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/permalink-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Permalink/Caption}}/>\n</span>\n</$list>\n</$button>"
+ },
+ "$:/core/ui/Buttons/permaview": {
+ "title": "$:/core/ui/Buttons/permaview",
+ "tags": "$:/tags/ViewToolbar $:/tags/PageControls",
+ "caption": "{{$:/core/images/permaview-button}} {{$:/language/Buttons/Permaview/Caption}}",
+ "description": "{{$:/language/Buttons/Permaview/Hint}}",
+ "text": "\\whitespace trim\n<$button message=\"tm-permaview\" tooltip={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/permaview-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Permaview/Caption}}/>\n</span>\n</$list>\n</$button>"
+ },
+ "$:/DefaultTiddlers": {
+ "title": "$:/DefaultTiddlers",
+ "text": "GettingStarted\n"
+ },
+ "$:/temp/advancedsearch": {
+ "title": "$:/temp/advancedsearch",
+ "text": ""
+ },
+ "$:/snippets/allfields": {
+ "title": "$:/snippets/allfields",
+ "text": "\\define renderfield(title)\n<tr class=\"tc-view-field\"><td class=\"tc-view-field-name\">''$title$'':</td><td class=\"tc-view-field-value\">//{{$:/language/Docs/Fields/$title$}}//</td></tr>\n\\end\n<table class=\"tc-view-field-table\"><tbody><$list filter=\"[fields[]sort[title]]\" variable=\"listItem\"><$macrocall $name=\"renderfield\" title=<<listItem>>/></$list>\n</tbody></table>\n"
+ },
+ "$:/config/AnimationDuration": {
+ "title": "$:/config/AnimationDuration",
+ "text": "400"
+ },
+ "$:/config/AutoFocus": {
+ "title": "$:/config/AutoFocus",
+ "text": "title"
+ },
+ "$:/config/AutoSave": {
+ "title": "$:/config/AutoSave",
+ "text": "yes"
+ },
+ "$:/config/BitmapEditor/Colour": {
+ "title": "$:/config/BitmapEditor/Colour",
+ "text": "#444"
+ },
+ "$:/config/BitmapEditor/ImageSizes": {
+ "title": "$:/config/BitmapEditor/ImageSizes",
+ "text": "[[62px 100px]] [[100px 62px]] [[124px 200px]] [[200px 124px]] [[248px 400px]] [[371px 600px]] [[400px 248px]] [[556px 900px]] [[600px 371px]] [[742px 1200px]] [[900px 556px]] [[1200px 742px]]"
+ },
+ "$:/config/BitmapEditor/LineWidth": {
+ "title": "$:/config/BitmapEditor/LineWidth",
+ "text": "3px"
+ },
+ "$:/config/BitmapEditor/LineWidths": {
+ "title": "$:/config/BitmapEditor/LineWidths",
+ "text": "0.25px 0.5px 1px 2px 3px 4px 6px 8px 10px 16px 20px 28px 40px 56px 80px"
+ },
+ "$:/config/BitmapEditor/Opacities": {
+ "title": "$:/config/BitmapEditor/Opacities",
+ "text": "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"
+ },
+ "$:/config/BitmapEditor/Opacity": {
+ "title": "$:/config/BitmapEditor/Opacity",
+ "text": "1.0"
+ },
+ "$:/config/DefaultMoreSidebarTab": {
+ "title": "$:/config/DefaultMoreSidebarTab",
+ "text": "$:/core/ui/MoreSideBar/Tags"
+ },
+ "$:/config/DefaultSidebarTab": {
+ "title": "$:/config/DefaultSidebarTab",
+ "text": "$:/core/ui/SideBar/Open"
+ },
+ "$:/config/DownloadSaver/AutoSave": {
+ "title": "$:/config/DownloadSaver/AutoSave",
+ "text": "no"
+ },
+ "$:/config/Drafts/TypingTimeout": {
+ "title": "$:/config/Drafts/TypingTimeout",
+ "text": "400"
+ },
+ "$:/config/EditMode/fieldname-filter": {
+ "title": "$:/config/EditMode/fieldname-filter",
+ "first-search-filter": "[!is[shadow]!is[system]fields[]search:title<userInput>sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type",
+ "second-search-filter": "[fields[]search:title<userInput>sort[]] -[!is[shadow]!is[system]fields[]]"
+ },
+ "$:/config/EditTabIndex": {
+ "title": "$:/config/EditTabIndex",
+ "text": "1\n"
+ },
+ "$:/config/EditTemplateFields/Visibility/title": {
+ "title": "$:/config/EditTemplateFields/Visibility/title",
+ "text": "hide"
+ },
+ "$:/config/EditTemplateFields/Visibility/tags": {
+ "title": "$:/config/EditTemplateFields/Visibility/tags",
+ "text": "hide"
+ },
+ "$:/config/EditTemplateFields/Visibility/text": {
+ "title": "$:/config/EditTemplateFields/Visibility/text",
+ "text": "hide"
+ },
+ "$:/config/EditTemplateFields/Visibility/creator": {
+ "title": "$:/config/EditTemplateFields/Visibility/creator",
+ "text": "hide"
+ },
+ "$:/config/EditTemplateFields/Visibility/created": {
+ "title": "$:/config/EditTemplateFields/Visibility/created",
+ "text": "hide"
+ },
+ "$:/config/EditTemplateFields/Visibility/modified": {
+ "title": "$:/config/EditTemplateFields/Visibility/modified",
+ "text": "hide"
+ },
+ "$:/config/EditTemplateFields/Visibility/modifier": {
+ "title": "$:/config/EditTemplateFields/Visibility/modifier",
+ "text": "hide"
+ },
+ "$:/config/EditTemplateFields/Visibility/type": {
+ "title": "$:/config/EditTemplateFields/Visibility/type",
+ "text": "hide"
+ },
+ "$:/config/EditTemplateFields/Visibility/draft.title": {
+ "title": "$:/config/EditTemplateFields/Visibility/draft.title",
+ "text": "hide"
+ },
+ "$:/config/EditTemplateFields/Visibility/draft.of": {
+ "title": "$:/config/EditTemplateFields/Visibility/draft.of",
+ "text": "hide"
+ },
+ "$:/config/EditTemplateFields/Visibility/revision": {
+ "title": "$:/config/EditTemplateFields/Visibility/revision",
+ "text": "hide"
+ },
+ "$:/config/EditTemplateFields/Visibility/bag": {
+ "title": "$:/config/EditTemplateFields/Visibility/bag",
+ "text": "hide"
+ },
+ "$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4": {
+ "title": "$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4",
+ "text": "hide"
+ },
+ "$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-5": {
+ "title": "$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-5",
+ "text": "hide"
+ },
+ "$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-6": {
+ "title": "$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-6",
+ "text": "hide"
+ },
+ "$:/config/EditorTypeMappings/image/gif": {
+ "title": "$:/config/EditorTypeMappings/image/gif",
+ "text": "bitmap"
+ },
+ "$:/config/EditorTypeMappings/image/webp": {
+ "title": "$:/config/EditorTypeMappings/image/webp",
+ "text": "bitmap"
+ },
+ "$:/config/EditorTypeMappings/image/heic": {
+ "title": "$:/config/EditorTypeMappings/image/heic",
+ "text": "bitmap"
+ },
+ "$:/config/EditorTypeMappings/image/heif": {
+ "title": "$:/config/EditorTypeMappings/image/heif",
+ "text": "bitmap"
+ },
+ "$:/config/EditorTypeMappings/image/jpeg": {
+ "title": "$:/config/EditorTypeMappings/image/jpeg",
+ "text": "bitmap"
+ },
+ "$:/config/EditorTypeMappings/image/jpg": {
+ "title": "$:/config/EditorTypeMappings/image/jpg",
+ "text": "bitmap"
+ },
+ "$:/config/EditorTypeMappings/image/png": {
+ "title": "$:/config/EditorTypeMappings/image/png",
+ "text": "bitmap"
+ },
+ "$:/config/EditorTypeMappings/image/x-icon": {
+ "title": "$:/config/EditorTypeMappings/image/x-icon",
+ "text": "bitmap"
+ },
+ "$:/config/EditorTypeMappings/text/vnd.tiddlywiki": {
+ "title": "$:/config/EditorTypeMappings/text/vnd.tiddlywiki",
+ "text": "text"
+ },
+ "$:/config/Manager/Show": {
+ "title": "$:/config/Manager/Show",
+ "text": "tiddlers"
+ },
+ "$:/config/Manager/Filter": {
+ "title": "$:/config/Manager/Filter",
+ "text": ""
+ },
+ "$:/config/Manager/Order": {
+ "title": "$:/config/Manager/Order",
+ "text": "forward"
+ },
+ "$:/config/Manager/Sort": {
+ "title": "$:/config/Manager/Sort",
+ "text": "title"
+ },
+ "$:/config/Manager/System": {
+ "title": "$:/config/Manager/System",
+ "text": "system"
+ },
+ "$:/config/Manager/Tag": {
+ "title": "$:/config/Manager/Tag",
+ "text": ""
+ },
+ "$:/state/popup/manager/item/$:/Manager/ItemMain/RawText": {
+ "title": "$:/state/popup/manager/item/$:/Manager/ItemMain/RawText",
+ "text": "hide"
+ },
+ "$:/config/MissingLinks": {
+ "title": "$:/config/MissingLinks",
+ "text": "yes"
+ },
+ "$:/config/Navigation/UpdateAddressBar": {
+ "title": "$:/config/Navigation/UpdateAddressBar",
+ "text": "no"
+ },
+ "$:/config/Navigation/UpdateHistory": {
+ "title": "$:/config/Navigation/UpdateHistory",
+ "text": "no"
+ },
+ "$:/config/NewImageType": {
+ "title": "$:/config/NewImageType",
+ "text": "jpeg"
+ },
+ "$:/config/OfficialPluginLibrary": {
+ "title": "$:/config/OfficialPluginLibrary",
+ "tags": "$:/tags/PluginLibrary",
+ "url": "https://tiddlywiki.com/library/v5.1.23/index.html",
+ "caption": "{{$:/language/OfficialPluginLibrary}}",
+ "text": "{{$:/language/OfficialPluginLibrary/Hint}}\n"
+ },
+ "$:/config/Navigation/openLinkFromInsideRiver": {
+ "title": "$:/config/Navigation/openLinkFromInsideRiver",
+ "text": "below"
+ },
+ "$:/config/Navigation/openLinkFromOutsideRiver": {
+ "title": "$:/config/Navigation/openLinkFromOutsideRiver",
+ "text": "top"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/close-all": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/close-all",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/encryption": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/encryption",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/export-page": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/export-page",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/fold-all": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/fold-all",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/full-screen": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/full-screen",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/refresh": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/refresh",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/import": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/import",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/language": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/language",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/tag-manager": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/tag-manager",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/manager": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/manager",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-journal": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-journal",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-image": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-image",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/palette": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/palette",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/permaview": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/permaview",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/print": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/print",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/storyview": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/storyview",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/timestamp": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/timestamp",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/theme": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/theme",
+ "text": "hide"
+ },
+ "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/unfold-all": {
+ "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/unfold-all",
+ "text": "hide"
+ },
+ "$:/config/Performance/Instrumentation": {
+ "title": "$:/config/Performance/Instrumentation",
+ "text": "no"
+ },
+ "$:/config/RegisterPluginType/plugin": {
+ "title": "$:/config/RegisterPluginType/plugin",
+ "text": "yes"
+ },
+ "$:/config/RegisterPluginType/theme": {
+ "title": "$:/config/RegisterPluginType/theme",
+ "text": "no"
+ },
+ "$:/config/RegisterPluginType/language": {
+ "title": "$:/config/RegisterPluginType/language",
+ "text": "no"
+ },
+ "$:/config/RegisterPluginType/info": {
+ "title": "$:/config/RegisterPluginType/info",
+ "text": "yes"
+ },
+ "$:/config/RegisterPluginType/import": {
+ "title": "$:/config/RegisterPluginType/import",
+ "text": "no"
+ },
+ "$:/config/SaveWikiButton/Template": {
+ "title": "$:/config/SaveWikiButton/Template",
+ "text": "$:/core/save/all"
+ },
+ "$:/config/SaverFilter": {
+ "title": "$:/config/SaverFilter",
+ "text": "[all[]] -[prefix[$:/HistoryList]] -[prefix[$:/StoryList]] -[status[pending]plugin-type[import]] -[[$:/isEncrypted]] -[[$:/UploadName]] -[prefix[$:/state/]] -[prefix[$:/temp/]]\n"
+ },
+ "$:/config/Search/AutoFocus": {
+ "title": "$:/config/Search/AutoFocus",
+ "text": "true"
+ },
+ "$:/config/Search/MinLength": {
+ "title": "$:/config/Search/MinLength",
+ "text": "3"
+ },
+ "$:/config/SearchResults/Default": {
+ "title": "$:/config/SearchResults/Default",
+ "text": "$:/core/ui/DefaultSearchResultList"
+ },
+ "$:/config/Server/ExternalFilters/[all[tiddlers]!is[system]sort[title]]": {
+ "title": "$:/config/Server/ExternalFilters/[all[tiddlers]!is[system]sort[title]]",
+ "text": "yes"
+ },
+ "$:/config/ShortcutInfo/add-field": {
+ "title": "$:/config/ShortcutInfo/add-field",
+ "text": "{{$:/language/EditTemplate/Fields/Add/Button/Hint}}"
+ },
+ "$:/config/ShortcutInfo/advanced-search": {
+ "title": "$:/config/ShortcutInfo/advanced-search",
+ "text": "{{$:/language/Buttons/AdvancedSearch/Hint}}"
+ },
+ "$:/config/ShortcutInfo/advanced-search-sidebar": {
+ "title": "$:/config/ShortcutInfo/advanced-search-sidebar",
+ "text": "{{$:/language/Shortcuts/Input/AdvancedSearch/Hint}}"
+ },
+ "$:/config/ShortcutInfo/bold": {
+ "title": "$:/config/ShortcutInfo/bold",
+ "text": "{{$:/language/Buttons/Bold/Hint}}"
+ },
+ "$:/config/ShortcutInfo/cancel-edit-tiddler": {
+ "title": "$:/config/ShortcutInfo/cancel-edit-tiddler",
+ "text": "{{$:/language/Buttons/Cancel/Hint}}"
+ },
+ "$:/config/ShortcutInfo/change-sidebar-layout": {
+ "title": "$:/config/ShortcutInfo/change-sidebar-layout",
+ "text": "{{$:/language/Shortcuts/SidebarLayout/Hint}}"
+ },
+ "$:/config/ShortcutInfo/delete-field": {
+ "title": "$:/config/ShortcutInfo/delete-field",
+ "text": "{{$:/language/EditTemplate/Field/Remove/Hint}}"
+ },
+ "$:/config/ShortcutInfo/excise": {
+ "title": "$:/config/ShortcutInfo/excise",
+ "text": "{{$:/language/Buttons/Excise/Hint}}"
+ },
+ "$:/config/ShortcutInfo/heading-1": {
+ "title": "$:/config/ShortcutInfo/heading-1",
+ "text": "{{$:/language/Buttons/Heading1/Hint}}"
+ },
+ "$:/config/ShortcutInfo/heading-2": {
+ "title": "$:/config/ShortcutInfo/heading-2",
+ "text": "{{$:/language/Buttons/Heading2/Hint}}"
+ },
+ "$:/config/ShortcutInfo/heading-3": {
+ "title": "$:/config/ShortcutInfo/heading-3",
+ "text": "{{$:/language/Buttons/Heading3/Hint}}"
+ },
+ "$:/config/ShortcutInfo/heading-4": {
+ "title": "$:/config/ShortcutInfo/heading-4",
+ "text": "{{$:/language/Buttons/Heading4/Hint}}"
+ },
+ "$:/config/ShortcutInfo/heading-5": {
+ "title": "$:/config/ShortcutInfo/heading-5",
+ "text": "{{$:/language/Buttons/Heading5/Hint}}"
+ },
+ "$:/config/ShortcutInfo/heading-6": {
+ "title": "$:/config/ShortcutInfo/heading-6",
+ "text": "{{$:/language/Buttons/Heading6/Hint}}"
+ },
+ "$:/config/ShortcutInfo/input-accept": {
+ "title": "$:/config/ShortcutInfo/input-accept",
+ "text": "{{$:/language/Shortcuts/Input/Accept/Hint}}"
+ },
+ "$:/config/ShortcutInfo/input-accept-variant": {
+ "title": "$:/config/ShortcutInfo/input-accept-variant",
+ "text": "{{$:/language/Shortcuts/Input/AcceptVariant/Hint}}"
+ },
+ "$:/config/ShortcutInfo/input-cancel": {
+ "title": "$:/config/ShortcutInfo/input-cancel",
+ "text": "{{$:/language/Shortcuts/Input/Cancel/Hint}}"
+ },
+ "$:/config/ShortcutInfo/input-down": {
+ "title": "$:/config/ShortcutInfo/input-down",
+ "text": "{{$:/language/Shortcuts/Input/Down/Hint}}"
+ },
+ "$:/config/ShortcutInfo/input-tab-left": {
+ "title": "$:/config/ShortcutInfo/input-tab-left",
+ "text": "{{$:/language/Shortcuts/Input/Tab-Left/Hint}}"
+ },
+ "$:/config/ShortcutInfo/input-tab-right": {
+ "title": "$:/config/ShortcutInfo/input-tab-right",
+ "text": "{{$:/language/Shortcuts/Input/Tab-Right/Hint}}"
+ },
+ "$:/config/ShortcutInfo/input-up": {
+ "title": "$:/config/ShortcutInfo/input-up",
+ "text": "{{$:/language/Shortcuts/Input/Up/Hint}}"
+ },
+ "$:/config/ShortcutInfo/italic": {
+ "title": "$:/config/ShortcutInfo/italic",
+ "text": "{{$:/language/Buttons/Italic/Hint}}"
+ },
+ "$:/config/ShortcutInfo/layout-switcher": {
+ "title": "$:/config/ShortcutInfo/layout-switcher",
+ "text": "{{$:/language/LayoutSwitcher/Description}}"
+ },
+ "$:/config/ShortcutInfo/link": {
+ "title": "$:/config/ShortcutInfo/link",
+ "text": "{{$:/language/Buttons/Link/Hint}}"
+ },
+ "$:/config/ShortcutInfo/linkify": {
+ "title": "$:/config/ShortcutInfo/linkify",
+ "text": "{{$:/language/Buttons/Linkify/Hint}}"
+ },
+ "$:/config/ShortcutInfo/list-bullet": {
+ "title": "$:/config/ShortcutInfo/list-bullet",
+ "text": "{{$:/language/Buttons/ListBullet/Hint}}"
+ },
+ "$:/config/ShortcutInfo/list-number": {
+ "title": "$:/config/ShortcutInfo/list-number",
+ "text": "{{$:/language/Buttons/ListNumber/Hint}}"
+ },
+ "$:/config/ShortcutInfo/mono-block": {
+ "title": "$:/config/ShortcutInfo/mono-block",
+ "text": "{{$:/language/Buttons/MonoBlock/Hint}}"
+ },
+ "$:/config/ShortcutInfo/mono-line": {
+ "title": "$:/config/ShortcutInfo/mono-line",
+ "text": "{{$:/language/Buttons/MonoLine/Hint}}"
+ },
+ "$:/config/ShortcutInfo/new-image": {
+ "title": "$:/config/ShortcutInfo/new-image",
+ "text": "{{$:/language/Buttons/NewImage/Hint}}"
+ },
+ "$:/config/ShortcutInfo/new-journal": {
+ "title": "$:/config/ShortcutInfo/new-journal",
+ "text": "{{$:/language/Buttons/NewJournal/Hint}}"
+ },
+ "$:/config/ShortcutInfo/new-tiddler": {
+ "title": "$:/config/ShortcutInfo/new-tiddler",
+ "text": "{{$:/language/Buttons/NewTiddler/Hint}}"
+ },
+ "$:/config/ShortcutInfo/picture": {
+ "title": "$:/config/ShortcutInfo/picture",
+ "text": "{{$:/language/Buttons/Picture/Hint}}"
+ },
+ "$:/config/ShortcutInfo/preview": {
+ "title": "$:/config/ShortcutInfo/preview",
+ "text": "{{$:/language/Buttons/Preview/Hint}}"
+ },
+ "$:/config/ShortcutInfo/quote": {
+ "title": "$:/config/ShortcutInfo/quote",
+ "text": "{{$:/language/Buttons/Quote/Hint}}"
+ },
+ "$:/config/ShortcutInfo/save-tiddler": {
+ "title": "$:/config/ShortcutInfo/save-tiddler",
+ "text": "{{$:/language/Buttons/Save/Hint}}"
+ },
+ "$:/config/ShortcutInfo/save-wiki": {
+ "title": "$:/config/ShortcutInfo/save-wiki",
+ "text": "{{$:/language/Buttons/SaveWiki/Hint}}"
+ },
+ "$:/config/ShortcutInfo/sidebar-search": {
+ "title": "$:/config/ShortcutInfo/sidebar-search",
+ "text": "{{$:/language/Buttons/SidebarSearch/Hint}}"
+ },
+ "$:/config/ShortcutInfo/stamp": {
+ "title": "$:/config/ShortcutInfo/stamp",
+ "text": "{{$:/language/Buttons/Stamp/Hint}}"
+ },
+ "$:/config/ShortcutInfo/strikethrough": {
+ "title": "$:/config/ShortcutInfo/strikethrough",
+ "text": "{{$:/language/Buttons/Strikethrough/Hint}}"
+ },
+ "$:/config/ShortcutInfo/subscript": {
+ "title": "$:/config/ShortcutInfo/subscript",
+ "text": "{{$:/language/Buttons/Subscript/Hint}}"
+ },
+ "$:/config/ShortcutInfo/superscript": {
+ "title": "$:/config/ShortcutInfo/superscript",
+ "text": "{{$:/language/Buttons/Superscript/Hint}}"
+ },
+ "$:/config/ShortcutInfo/toggle-sidebar": {
+ "title": "$:/config/ShortcutInfo/toggle-sidebar",
+ "text": "{{$:/language/Buttons/ToggleSidebar/Hint}}"
+ },
+ "$:/config/ShortcutInfo/transcludify": {
+ "title": "$:/config/ShortcutInfo/transcludify",
+ "text": "{{$:/language/Buttons/Transcludify/Hint}}"
+ },
+ "$:/config/ShortcutInfo/underline": {
+ "title": "$:/config/ShortcutInfo/underline",
+ "text": "{{$:/language/Buttons/Underline/Hint}}"
+ },
+ "$:/config/SwitcherTargets/layout": {
+ "title": "$:/config/SwitcherTargets/layout",
+ "text": "$:/snippets/LayoutSwitcher"
+ },
+ "$:/config/SwitcherTargets/language": {
+ "title": "$:/config/SwitcherTargets/language",
+ "text": "$:/snippets/languageswitcher"
+ },
+ "$:/config/SwitcherTargets/palette": {
+ "title": "$:/config/SwitcherTargets/palette",
+ "text": "$:/core/ui/ControlPanel/Palette"
+ },
+ "$:/config/SwitcherTargets/theme": {
+ "title": "$:/config/SwitcherTargets/theme",
+ "text": "$:/core/ui/ControlPanel/Theme"
+ },
+ "$:/config/SyncFilter": {
+ "title": "$:/config/SyncFilter",
+ "text": "[is[tiddler]] -[[$:/core]] -[[$:/library/sjcl.js]] -[prefix[$:/boot/]] -[prefix[$:/HistoryList]] -[status[pending]plugin-type[import]] -[[$:/isEncrypted]] -[prefix[$:/status/]] -[prefix[$:/state/]] -[prefix[$:/temp/]]\n"
+ },
+ "$:/config/SyncSystemTiddlersFromServer": {
+ "title": "$:/config/SyncSystemTiddlersFromServer",
+ "text": "no"
+ },
+ "$:/config/Tags/MinLength": {
+ "title": "$:/config/Tags/MinLength",
+ "text": "0"
+ },
+ "$:/config/TextEditor/EditorHeight/Height": {
+ "title": "$:/config/TextEditor/EditorHeight/Height",
+ "text": "400px"
+ },
+ "$:/config/TextEditor/EditorHeight/Mode": {
+ "title": "$:/config/TextEditor/EditorHeight/Mode",
+ "text": "auto"
+ },
+ "$:/config/TiddlerInfo/Default": {
+ "title": "$:/config/TiddlerInfo/Default",
+ "text": "$:/core/ui/TiddlerInfo/Fields"
+ },
+ "$:/config/TiddlerInfo/Mode": {
+ "title": "$:/config/TiddlerInfo/Mode",
+ "text": "popup"
+ },
+ "$:/config/Tiddlers/TitleLinks": {
+ "title": "$:/config/Tiddlers/TitleLinks",
+ "text": "no"
+ },
+ "$:/config/Toolbar/ButtonClass": {
+ "title": "$:/config/Toolbar/ButtonClass",
+ "text": "tc-btn-invisible"
+ },
+ "$:/config/Toolbar/Icons": {
+ "title": "$:/config/Toolbar/Icons",
+ "text": "yes"
+ },
+ "$:/config/Toolbar/Text": {
+ "title": "$:/config/Toolbar/Text",
+ "text": "no"
+ },
+ "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone": {
+ "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone",
+ "text": "hide"
+ },
+ "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/close-others": {
+ "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/close-others",
+ "text": "hide"
+ },
+ "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/export-tiddler": {
+ "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/export-tiddler",
+ "text": "hide"
+ },
+ "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/info": {
+ "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/info",
+ "text": "hide"
+ },
+ "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/more-tiddler-actions": {
+ "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/more-tiddler-actions",
+ "text": "show"
+ },
+ "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here": {
+ "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here",
+ "text": "hide"
+ },
+ "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-journal-here": {
+ "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-journal-here",
+ "text": "hide"
+ },
+ "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/open-window": {
+ "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/open-window",
+ "text": "hide"
+ },
+ "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permalink": {
+ "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permalink",
+ "text": "hide"
+ },
+ "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permaview": {
+ "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permaview",
+ "text": "hide"
+ },
+ "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/delete": {
+ "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/delete",
+ "text": "hide"
+ },
+ "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold": {
+ "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold",
+ "text": "hide"
+ },
+ "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar": {
+ "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar",
+ "text": "hide"
+ },
+ "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-others": {
+ "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-others",
+ "text": "hide"
+ },
+ "$:/config/shortcuts-mac/bold": {
+ "title": "$:/config/shortcuts-mac/bold",
+ "text": "meta-B"
+ },
+ "$:/config/shortcuts-mac/input-tab-left": {
+ "title": "$:/config/shortcuts-mac/input-tab-left",
+ "text": "ctrl-Left"
+ },
+ "$:/config/shortcuts-mac/input-tab-right": {
+ "title": "$:/config/shortcuts-mac/input-tab-right",
+ "text": "ctrl-Right"
+ },
+ "$:/config/shortcuts-mac/italic": {
+ "title": "$:/config/shortcuts-mac/italic",
+ "text": "meta-I"
+ },
+ "$:/config/shortcuts-mac/underline": {
+ "title": "$:/config/shortcuts-mac/underline",
+ "text": "meta-U"
+ },
+ "$:/config/shortcuts-mac/new-image": {
+ "title": "$:/config/shortcuts-mac/new-image",
+ "text": "ctrl-I"
+ },
+ "$:/config/shortcuts-mac/new-journal": {
+ "title": "$:/config/shortcuts-mac/new-journal",
+ "text": "ctrl-J"
+ },
+ "$:/config/shortcuts-mac/new-tiddler": {
+ "title": "$:/config/shortcuts-mac/new-tiddler",
+ "text": "ctrl-N"
+ },
+ "$:/config/shortcuts-mac/save-wiki": {
+ "title": "$:/config/shortcuts-mac/save-wiki",
+ "text": "meta-S"
+ },
+ "$:/config/shortcuts-not-mac/bold": {
+ "title": "$:/config/shortcuts-not-mac/bold",
+ "text": "ctrl-B"
+ },
+ "$:/config/shortcuts-not-mac/italic": {
+ "title": "$:/config/shortcuts-not-mac/italic",
+ "text": "ctrl-I"
+ },
+ "$:/config/shortcuts-not-mac/underline": {
+ "title": "$:/config/shortcuts-not-mac/underline",
+ "text": "ctrl-U"
+ },
+ "$:/config/shortcuts-not-mac/new-image": {
+ "title": "$:/config/shortcuts-not-mac/new-image",
+ "text": "alt-I"
+ },
+ "$:/config/shortcuts-not-mac/new-journal": {
+ "title": "$:/config/shortcuts-not-mac/new-journal",
+ "text": "alt-J"
+ },
+ "$:/config/shortcuts-not-mac/new-tiddler": {
+ "title": "$:/config/shortcuts-not-mac/new-tiddler",
+ "text": "alt-N"
+ },
+ "$:/config/shortcuts/add-field": {
+ "title": "$:/config/shortcuts/add-field",
+ "text": "enter"
+ },
+ "$:/config/shortcuts/advanced-search": {
+ "title": "$:/config/shortcuts/advanced-search",
+ "text": "ctrl-shift-A"
+ },
+ "$:/config/shortcuts/advanced-search-sidebar": {
+ "title": "$:/config/shortcuts/advanced-search-sidebar",
+ "text": "alt-Enter"
+ },
+ "$:/config/shortcuts/cancel-edit-tiddler": {
+ "title": "$:/config/shortcuts/cancel-edit-tiddler",
+ "text": "escape"
+ },
+ "$:/config/shortcuts/change-sidebar-layout": {
+ "title": "$:/config/shortcuts/change-sidebar-layout",
+ "text": "shift-alt-Down"
+ },
+ "$:/config/shortcuts/delete-field": {
+ "title": "$:/config/shortcuts/delete-field",
+ "text": "shift-alt-D"
+ },
+ "$:/config/shortcuts/excise": {
+ "title": "$:/config/shortcuts/excise",
+ "text": "ctrl-E"
+ },
+ "$:/config/shortcuts/sidebar-search": {
+ "title": "$:/config/shortcuts/sidebar-search",
+ "text": "ctrl-shift-F"
+ },
+ "$:/config/shortcuts/heading-1": {
+ "title": "$:/config/shortcuts/heading-1",
+ "text": "ctrl-1"
+ },
+ "$:/config/shortcuts/heading-2": {
+ "title": "$:/config/shortcuts/heading-2",
+ "text": "ctrl-2"
+ },
+ "$:/config/shortcuts/heading-3": {
+ "title": "$:/config/shortcuts/heading-3",
+ "text": "ctrl-3"
+ },
+ "$:/config/shortcuts/heading-4": {
+ "title": "$:/config/shortcuts/heading-4",
+ "text": "ctrl-4"
+ },
+ "$:/config/shortcuts/heading-5": {
+ "title": "$:/config/shortcuts/heading-5",
+ "text": "ctrl-5"
+ },
+ "$:/config/shortcuts/heading-6": {
+ "title": "$:/config/shortcuts/heading-6",
+ "text": "ctrl-6"
+ },
+ "$:/config/shortcuts/input-accept": {
+ "title": "$:/config/shortcuts/input-accept",
+ "text": "Enter"
+ },
+ "$:/config/shortcuts/input-accept-variant": {
+ "title": "$:/config/shortcuts/input-accept-variant",
+ "text": "ctrl-Enter"
+ },
+ "$:/config/shortcuts/input-cancel": {
+ "title": "$:/config/shortcuts/input-cancel",
+ "text": "Escape"
+ },
+ "$:/config/shortcuts/input-down": {
+ "title": "$:/config/shortcuts/input-down",
+ "text": "Down"
+ },
+ "$:/config/shortcuts/input-tab-left": {
+ "title": "$:/config/shortcuts/input-tab-left",
+ "text": "alt-Left"
+ },
+ "$:/config/shortcuts/input-tab-right": {
+ "title": "$:/config/shortcuts/input-tab-right",
+ "text": "alt-Right"
+ },
+ "$:/config/shortcuts/input-up": {
+ "title": "$:/config/shortcuts/input-up",
+ "text": "Up"
+ },
+ "$:/config/shortcuts/layout-switcher": {
+ "title": "$:/config/shortcuts/layout-switcher",
+ "text": "ctrl-shift-L"
+ },
+ "$:/config/shortcuts/link": {
+ "title": "$:/config/shortcuts/link",
+ "text": "ctrl-L"
+ },
+ "$:/config/shortcuts/linkify": {
+ "title": "$:/config/shortcuts/linkify",
+ "text": "alt-shift-L"
+ },
+ "$:/config/shortcuts/list-bullet": {
+ "title": "$:/config/shortcuts/list-bullet",
+ "text": "ctrl-shift-L"
+ },
+ "$:/config/shortcuts/list-number": {
+ "title": "$:/config/shortcuts/list-number",
+ "text": "ctrl-shift-N"
+ },
+ "$:/config/shortcuts/mono-block": {
+ "title": "$:/config/shortcuts/mono-block",
+ "text": "ctrl-shift-M"
+ },
+ "$:/config/shortcuts/mono-line": {
+ "title": "$:/config/shortcuts/mono-line",
+ "text": "ctrl-M"
+ },
+ "$:/config/shortcuts/picture": {
+ "title": "$:/config/shortcuts/picture",
+ "text": "ctrl-shift-I"
+ },
+ "$:/config/shortcuts/preview": {
+ "title": "$:/config/shortcuts/preview",
+ "text": "alt-P"
+ },
+ "$:/config/shortcuts/quote": {
+ "title": "$:/config/shortcuts/quote",
+ "text": "ctrl-Q"
+ },
+ "$:/config/shortcuts/save-tiddler": {
+ "title": "$:/config/shortcuts/save-tiddler",
+ "text": "ctrl+enter"
+ },
+ "$:/config/shortcuts/save-wiki": {
+ "title": "$:/config/shortcuts/save-wiki",
+ "text": "ctrl-S"
+ },
+ "$:/config/shortcuts/stamp": {
+ "title": "$:/config/shortcuts/stamp",
+ "text": "ctrl-S"
+ },
+ "$:/config/shortcuts/strikethrough": {
+ "title": "$:/config/shortcuts/strikethrough",
+ "text": "ctrl-T"
+ },
+ "$:/config/shortcuts/subscript": {
+ "title": "$:/config/shortcuts/subscript",
+ "text": "ctrl-shift-B"
+ },
+ "$:/config/shortcuts/superscript": {
+ "title": "$:/config/shortcuts/superscript",
+ "text": "ctrl-shift-P"
+ },
+ "$:/config/shortcuts/toggle-sidebar": {
+ "title": "$:/config/shortcuts/toggle-sidebar",
+ "text": "alt-shift-S"
+ },
+ "$:/config/shortcuts/transcludify": {
+ "title": "$:/config/shortcuts/transcludify",
+ "text": "alt-shift-T"
+ },
+ "$:/config/ui/EditTemplate": {
+ "title": "$:/config/ui/EditTemplate",
+ "text": "$:/core/ui/EditTemplate"
+ },
+ "$:/config/ui/ViewTemplate": {
+ "title": "$:/config/ui/ViewTemplate",
+ "text": "$:/core/ui/ViewTemplate"
+ },
+ "$:/config/WikiParserRules/Inline/wikilink": {
+ "title": "$:/config/WikiParserRules/Inline/wikilink",
+ "text": "enable"
+ },
+ "$:/snippets/currpalettepreview": {
+ "title": "$:/snippets/currpalettepreview",
+ "text": "\\define resolve-colour(macrocall)\n\\import $:/core/macros/utils\n\\whitespace trim\n<$wikify name=\"name\" text=\"\"\"$macrocall$\"\"\">\n<<name>>\n</$wikify>\n\\end\n\\define swatchStyle()\nbackground-color: $(swatchColour)$;\n\\end\n\\define swatch-inner()\n<$set name=\"swatchColour\" value={{##$(colourResolved)$}}>\n<$list filter=\"[<swatchColour>!prefix[<<colour ]!suffix[>>]]\" variable=\"ignore\">\n<div class=\"tc-swatch\" style=<<swatchStyle>> title=<<swatchTitle>>/>\n</$list>\n<$list filter=\"[<swatchColour>prefix[<<colour ]suffix[>>]]\" variable=\"ignore\">\n<$wikify name=\"colourResolved\" text=\"\"\"<$macrocall $name=\"resolve-colour\" macrocall=<<swatchColour>>/>\"\"\">\n<<swatch-inner>>\n</$wikify>\n</$list>\n</$set>\n\\end\n\\define swatch()\n<$set name=\"swatchColour\" value={{##$(colour)$}}>\n<$set name=\"swatchTitle\" value=<<colour>>>\n<$list filter=\"[<swatchColour>!prefix[<<colour ]!suffix[>>]]\" variable=\"ignore\">\n<div class=\"tc-swatch\" style=<<swatchStyle>> title=<<swatchTitle>>/>\n</$list>\n<$list filter=\"[<swatchColour>prefix[<<colour ]suffix[>>]]\" variable=\"ignore\">\n<$wikify name=\"colourResolved\" text=\"\"\"<$macrocall $name=\"resolve-colour\" macrocall=<<swatchColour>>/>\"\"\">\n<<swatch-inner>>\n</$wikify>\n</$list>\n</$set>\n</$set>\n\\end\n<div class=\"tc-swatches-horiz\"><$list filter=\"\nforeground\nbackground\nmuted-foreground\nprimary\npage-background\ntab-background\ntiddler-info-background\n\" variable=\"colour\"><<swatch>></$list></div>\n"
+ },
+ "$:/snippets/download-wiki-button": {
+ "title": "$:/snippets/download-wiki-button",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Tools/Download/\n<$button class=\"tc-btn-big-green\">\n<$action-sendmessage $message=\"tm-download-file\" $param=\"$:/core/save/all\" filename=\"index.html\"/>\n<<lingo Full/Caption>> {{$:/core/images/save-button}}\n</$button>"
+ },
+ "$:/language": {
+ "title": "$:/language",
+ "text": "$:/languages/en-GB"
+ },
+ "$:/snippets/languageswitcher": {
+ "title": "$:/snippets/languageswitcher",
+ "text": "\\define flag-title()\n$(languagePluginTitle)$/icon\n\\end\n\n<$linkcatcher to=\"$:/language\">\n<div class=\"tc-chooser tc-language-chooser\">\n<$list filter=\"[[$:/languages/en-GB]] [plugin-type[language]sort[description]]\">\n<$set name=\"cls\" filter=\"[all[current]field:title{$:/language}]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>>\n<$link>\n<span class=\"tc-image-button\">\n<$set name=\"languagePluginTitle\" value=<<currentTiddler>>>\n<$transclude subtiddler=<<flag-title>>>\n<$list filter=\"[all[current]field:title[$:/languages/en-GB]]\">\n<$transclude tiddler=\"$:/languages/en-GB/icon\"/>\n</$list>\n</$transclude>\n</$set>\n</span>\n<$view field=\"description\">\n<$view field=\"name\">\n<$view field=\"title\"/>\n</$view>\n</$view>\n</$link>\n</div>\n</$set>\n</$list>\n</div>\n</$linkcatcher>"
+ },
+ "$:/core/macros/CSS": {
+ "title": "$:/core/macros/CSS",
+ "tags": "$:/tags/Macro",
+ "text": "\\define colour(name)\n<$transclude tiddler={{$:/palette}} index=\"$name$\"><$transclude tiddler=\"$:/palettes/Vanilla\" index=\"$name$\"><$transclude tiddler=\"$:/config/DefaultColourMappings/$name$\"/></$transclude></$transclude>\n\\end\n\n\\define color(name)\n<<colour $name$>>\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<$macrocall $name=\"makedatauri\" type={{$title$!!type}} text={{$title$}} _canonical_uri={{$title$!!_canonical_uri}}/>\n\\end\n\n\\define if-sidebar(text)\n<$reveal state=\"$:/state/sidebar\" type=\"match\" text=\"yes\" default=\"yes\">$text$</$reveal>\n\\end\n\n\\define if-no-sidebar(text)\n<$reveal state=\"$:/state/sidebar\" type=\"nomatch\" text=\"yes\" default=\"yes\">$text$</$reveal>\n\\end\n\n\\define if-background-attachment(text)\n<$reveal state=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\" type=\"nomatch\" text=\"\">$text$</$reveal>\n\\end\n"
+ },
+ "$:/core/macros/colour-picker": {
+ "title": "$:/core/macros/colour-picker",
+ "tags": "$:/tags/Macro",
+ "text": "\\define colour-picker-update-recent()\n<$action-listops\n\t$tiddler=\"$:/config/ColourPicker/Recent\"\n\t$subfilter=\"$(colour-picker-value)$ [list[$:/config/ColourPicker/Recent]remove[$(colour-picker-value)$]] +[limit[8]]\"\n/>\n\\end\n\n\\define colour-picker-inner(actions)\n<$button tag=\"a\" tooltip=\"\"\"$(colour-picker-value)$\"\"\">\n\n$(colour-picker-update-recent)$\n\n$actions$\n\n<span style=\"display:inline-block; background-color: $(colour-picker-value)$; width: 100%; height: 100%; border-radius: 50%;\"/>\n\n</$button>\n\\end\n\n\\define colour-picker-recent-inner(actions)\n<$set name=\"colour-picker-value\" value=\"$(recentColour)$\">\n<$macrocall $name=\"colour-picker-inner\" actions=\"\"\"$actions$\"\"\"/>\n</$set>\n\\end\n\n\\define colour-picker-recent(actions)\n{{$:/language/ColourPicker/Recent}} <$list filter=\"[list[$:/config/ColourPicker/Recent]]\" variable=\"recentColour\">\n<$macrocall $name=\"colour-picker-recent-inner\" actions=\"\"\"$actions$\"\"\"/></$list>\n\\end\n\n\\define colour-picker(actions)\n<div class=\"tc-colour-chooser\">\n\n<$macrocall $name=\"colour-picker-recent\" actions=\"\"\"$actions$\"\"\"/>\n\n---\n\n<$list filter=\"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\" variable=\"colour-picker-value\">\n<$macrocall $name=\"colour-picker-inner\" actions=\"\"\"$actions$\"\"\"/>\n</$list>\n\n---\n\n<$edit-text tiddler=\"$:/config/ColourPicker/New\" tag=\"input\" default=\"\" placeholder=\"\"/>\n<$edit-text tiddler=\"$:/config/ColourPicker/New\" type=\"color\" tag=\"input\"/>\n<$set name=\"colour-picker-value\" value={{$:/config/ColourPicker/New}}>\n<$macrocall $name=\"colour-picker-inner\" actions=\"\"\"$actions$\"\"\"/>\n</$set>\n\n</div>\n\n\\end\n"
+ },
+ "$:/core/macros/copy-to-clipboard": {
+ "title": "$:/core/macros/copy-to-clipboard",
+ "tags": "$:/tags/Macro",
+ "text": "\\define copy-to-clipboard(src,class:\"tc-btn-invisible\",style)\n<$button class=<<__class__>> style=<<__style__>> message=\"tm-copy-to-clipboard\" param=<<__src__>> tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>\n{{$:/core/images/copy-clipboard}} <$text text={{$:/language/Buttons/CopyToClipboard/Caption}}/>\n</$button>\n\\end\n\n\\define copy-to-clipboard-above-right(src,class:\"tc-btn-invisible\",style)\n<div style=\"position: relative;\">\n<div style=\"position: absolute; bottom: 0; right: 0;\">\n<$macrocall $name=\"copy-to-clipboard\" src=<<__src__>> class=<<__class__>> style=<<__style__>>/>\n</div>\n</div>\n\\end\n\n"
+ },
+ "$:/core/macros/diff": {
+ "title": "$:/core/macros/diff",
+ "tags": "$:/tags/Macro",
+ "text": "\\define compareTiddlerText(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle)\n<$set name=\"source\" tiddler=<<__sourceTiddlerTitle__>> subtiddler=<<__sourceSubTiddlerTitle__>>>\n<$set name=\"dest\" tiddler=<<__destTiddlerTitle__>> subtiddler=<<__destSubTiddlerTitle__>>>\n<$diff-text source=<<source>> dest=<<dest>>/>\n</$set>\n</$set>\n\\end\n\n\\define compareTiddlers(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle,exclude)\n<table class=\"tc-diff-tiddlers\">\n<tbody>\n<$set name=\"sourceFields\" filter=\"[<__sourceTiddlerTitle__>fields[]sort[]]\">\n<$set name=\"destFields\" filter=\"[<__destSubTiddlerTitle__>subtiddlerfields<__destTiddlerTitle__>sort[]]\">\n<$list filter=\"[enlist<sourceFields>] [enlist<destFields>] -[enlist<__exclude__>] +[sort[]]\" variable=\"fieldName\">\n<tr>\n<th>\n<$text text=<<fieldName>>/> \n</th>\n<td>\n<$set name=\"source\" tiddler=<<__sourceTiddlerTitle__>> subtiddler=<<__sourceSubTiddlerTitle__>> field=<<fieldName>>>\n<$set name=\"dest\" tiddler=<<__destTiddlerTitle__>> subtiddler=<<__destSubTiddlerTitle__>> field=<<fieldName>>>\n<$diff-text source=<<source>> dest=<<dest>>>\n</$diff-text>\n</$set>\n</$set>\n</td>\n</tr>\n</$list>\n</$set>\n</$set>\n</tbody>\n</table>\n\\end\n"
+ },
+ "$:/core/macros/dumpvariables": {
+ "title": "$:/core/macros/dumpvariables",
+ "tags": "$:/tags/Macro",
+ "text": "\\define dumpvariables()\n<ul>\n<$list filter=\"[variables[]]\" variable=\"varname\">\n<li>\n<strong><code><$text text=<<varname>>/></code></strong>:<br/>\n<$codeblock code={{{ [<varname>getvariable[]] }}}/>\n</li>\n</$list>\n</ul>\n\\end\n"
+ },
+ "$:/core/macros/export": {
+ "title": "$:/core/macros/export",
+ "tags": "$:/tags/Macro",
+ "text": "\\define exportButtonFilename(baseFilename)\n$baseFilename$$(extension)$\n\\end\n\n\\define exportButton(exportFilter:\"[!is[system]sort[title]]\",lingoBase,baseFilename:\"tiddlers\")\n<span class=\"tc-popup-keep\"><$button popup=<<qualify \"$:/state/popup/export\">> tooltip={{$lingoBase$Hint}} aria-label={{$lingoBase$Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/export-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$lingoBase$Caption}}/></span>\n</$list>\n</$button></span><$reveal state=<<qualify \"$:/state/popup/export\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n<$set name=\"count\" value={{{ [subfilter<__exportFilter__>count[]] }}}>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Exporter]]\">\n<$list filter=\"[<currentTiddler>has[condition]subfilter{!!condition}limit[1]] ~[<currentTiddler>!has[condition]then[true]]\" variable=\"ignore\">\n<$set name=\"extension\" value={{!!extension}}>\n<$button class=\"tc-btn-invisible\">\n<$action-sendmessage $message=\"tm-download-file\" $param=<<currentTiddler>> exportFilter=<<__exportFilter__>> filename=<<exportButtonFilename \"\"\"$baseFilename$\"\"\">>/>\n<$action-deletetiddler $tiddler=<<qualify \"$:/state/popup/export\">>/>\n<$transclude field=\"description\"/>\n</$button>\n</$set>\n</$list>\n</$list>\n</$set>\n</div>\n</$reveal>\n\\end\n"
+ },
+ "$:/core/macros/image-picker": {
+ "title": "$:/core/macros/image-picker",
+ "created": "20170715180840889",
+ "modified": "20170715180914005",
+ "tags": "$:/tags/Macro",
+ "type": "text/vnd.tiddlywiki",
+ "text": "\\define image-picker-thumbnail(actions)\n<$button tag=\"a\" tooltip=\"\"\"$(imageTitle)$\"\"\">\n$actions$\n<$transclude tiddler=<<imageTitle>>/>\n</$button>\n\\end\n\n\\define image-picker-list(filter,actions)\n<$list filter=\"\"\"$filter$\"\"\" variable=\"imageTitle\">\n<$macrocall $name=\"image-picker-thumbnail\" actions=\"\"\"$actions$\"\"\"/>\n</$list>\n\\end\n\n\\define image-picker(actions,filter:\"[all[shadows+tiddlers]is[image]] -[type[application/pdf]] +[!has[draft.of]$subfilter$sort[title]]\",subfilter:\"\")\n<div class=\"tc-image-chooser\">\n<$vars state-system=<<qualify \"$:/state/image-picker/system\">>>\n<$checkbox tiddler=<<state-system>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"hide\">\n{{$:/language/SystemTiddlers/Include/Prompt}}\n</$checkbox>\n<$reveal state=<<state-system>> type=\"match\" text=\"hide\" default=\"hide\" tag=\"div\">\n<$macrocall $name=\"image-picker-list\" filter=\"\"\"$filter$ +[!is[system]]\"\"\" actions=\"\"\"$actions$\"\"\"/>\n</$reveal>\n<$reveal state=<<state-system>> type=\"nomatch\" text=\"hide\" default=\"hide\" tag=\"div\">\n<$macrocall $name=\"image-picker-list\" filter=\"\"\"$filter$\"\"\" actions=\"\"\"$actions$\"\"\"/>\n</$reveal>\n</$vars>\n</div>\n\\end\n\n\\define image-picker-include-tagged-images(actions)\n<$macrocall $name=\"image-picker\" filter=\"[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[!has[draft.of]sort[title]]\" actions=\"\"\"$actions$\"\"\"/>\n\\end\n"
+ },
+ "$:/core/macros/keyboard-driven-input": {
+ "title": "$:/core/macros/keyboard-driven-input",
+ "tags": "$:/tags/Macro",
+ "text": "\\define change-input-tab(stateTitle,tag,beforeafter,defaultState,actions)\n<$set name=\"tabsList\" filter=\"[all[shadows+tiddlers]tag<__tag__>!has[draft.of]]\">\n<$vars currentState={{{ [<__stateTitle__>!is[missing]get[text]] ~[<__defaultState__>] }}} firstTab={{{ [enlist<tabsList>nth[1]] }}} lastTab={{{ [enlist<tabsList>last[]] }}}>\n<$set name=\"nextTab\" value={{{ [all[shadows+tiddlers]tag<__tag__>!has[draft.of]$beforeafter$<currentState>] ~[[$beforeafter$]removeprefix[after]suffix[]addprefix<firstTab>] ~[[$beforeafter$]removeprefix[before]suffix[]addprefix<lastTab>] }}}>\n<$action-setfield $tiddler=<<__stateTitle__>> text=<<nextTab>>/>\n$actions$\n</$set>\n</$vars>\n</$set>\n\\end\n\n\\define keyboard-input-actions()\n<$list filter=\"[<__index__>match[]]\">\n<$action-setfield $tiddler=<<__storeTitle__>> text={{{ [<__tiddler__>get<__field__>] }}}/>\n</$list>\n<$list filter=\"[<__index__>!match[]]\">\n<$action-setfield $tiddler=<<__storeTitle__>> text={{{ [<__tiddler__>getindex<__index__>] }}}/>\n</$list>\n\\end\n\n\\define input-next-actions-inner()\n<$list filter=\"[<nextItem>minlength[1]]\" variable=\"ignore\">\n<$action-setfield $tiddler=<<__selectionStateTitle__>> text=<<nextItem>>/>\n<$list filter=\"[<__index__>match[]]\">\n<$action-setfield $tiddler=<<__tiddler__>> $field=<<__field__>> $value={{{ [<nextItem>] +[splitregexp[(?:.(?!-))+$]] }}}/>\n</$list>\n<$list filter=\"[<__index__>!match[]]\">\n<$action-setfield $tiddler=<<__tiddler__>> $index=<<__index__>> $value={{{ [<nextItem>] +[splitregexp[(?:.(?!-))+$]] }}}/>\n</$list>\n<$action-setfield $tiddler=<<__refreshTitle__>> text=\"yes\"/>\n</$list>\n\\end\n\n\\define input-next-actions(afterOrBefore:\"after\",reverse:\"\")\n<$list filter=\"[<__storeTitle__>get[text]minlength<__filterMinLength__>] [<__filterMinLength__>match[0]] +[limit[1]]\" variable=\"ignore\">\n<$vars userInput={{{ [<__storeTitle__>get[text]] }}} selectedItem={{{ [<__selectionStateTitle__>get[text]] }}}>\n<$set name=\"configTiddler\" value={{{ [subfilter<__configTiddlerFilter__>] }}}>\n<$vars primaryListFilter={{{ [<configTiddler>get<__firstSearchFilterField__>] }}} secondaryListFilter={{{ [<configTiddler>get<__secondSearchFilterField__>] }}}>\n<$set name=\"filteredList\" filter=\"[subfilter<primaryListFilter>addsuffix[-primaryList]] =[subfilter<secondaryListFilter>addsuffix[-secondaryList]]\">\n<$vars nextItem={{{ [enlist<filteredList>$afterOrBefore$<selectedItem>] ~[enlist<filteredList>$reverse$nth[1]] }}} firstItem={{{ [enlist<filteredList>nth[1]] }}} lastItem={{{ [enlist<filteredList>last[]] }}}>\n<$list filter=\"[<selectedItem>match<firstItem>!match<lastItem>]\" variable=\"ignore\">\n<$set name=\"nextItem\" value={{{ [[$afterOrBefore$]match[before]then<userInput>addsuffix[-userInput]] ~[<nextItem>] }}}>\n<<input-next-actions-inner>>\n</$set>\n</$list>\n<$list filter=\"[<selectedItem>match<lastItem>!match<firstItem>]\" variable=\"ignore\">\n<$set name=\"nextItem\" value={{{ [[$afterOrBefore$]match[after]then<userInput>addsuffix[-userInput]] ~[<nextItem>] }}}>\n<<input-next-actions-inner>>\n</$set>\n</$list>\n<$list filter=\"[<selectedItem>match<firstItem>match<lastItem>]\" variable=\"ignore\">\n<$set name=\"nextItem\" value={{{ [<userInput>addsuffix[-userInput]] }}}>\n<<input-next-actions-inner>>\n</$set>\n</$list>\n<$list filter=\"[<selectedItem>!match<firstItem>!match<lastItem>]\" variable=\"ignore\">\n<<input-next-actions-inner>>\n</$list>\n</$vars>\n</$set>\n</$vars>\n</$set>\n</$vars>\n</$list>\n\\end\n\n\\define keyboard-driven-input(tiddler,storeTitle,field:\"text\",index:\"\",tag:\"input\",type,focus:\"\",inputAcceptActions,inputAcceptVariantActions,inputCancelActions,placeholder:\"\",default:\"\",class,focusPopup,rows,minHeight,tabindex,size,autoHeight,filterMinLength:\"0\",refreshTitle,selectionStateTitle,cancelPopups:\"\",configTiddlerFilter,firstSearchFilterField:\"first-search-filter\",secondSearchFilterField:\"second-search-filter\")\n\\whitespace trim\n<$keyboard key=\"((input-accept))\" actions=<<__inputAcceptActions__>>>\n<$keyboard key=\"((input-accept-variant))\" actions=<<__inputAcceptVariantActions__>>>\n<$keyboard key=\"((input-up))\" actions=<<input-next-actions \"before\" \"reverse[]\">>>\n<$keyboard key=\"((input-down))\" actions=<<input-next-actions>>>\n<$keyboard key=\"((input-cancel))\" actions=<<__inputCancelActions__>>>\n<$edit-text tiddler=<<__tiddler__>> field=<<__field__>> index=<<__index__>> \n\t\tinputActions=<<keyboard-input-actions>> tag=<<__tag__>> class=<<__class__>> \n\t\tplaceholder=<<__placeholder__>> default=<<__default__>> focusPopup=<<__focusPopup__>> \n\t\tfocus=<<__focus__>> type=<<__type__>> rows=<<__rows__>> minHeight=<<__minHeight__>> \n\t\ttabindex=<<__tabindex__>> size=<<__size__>> autoHeight=<<__autoHeight__>> \n\t\trefreshTitle=<<__refreshTitle__>> cancelPopups=<<__cancelPopups__>>/>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n\\end\n"
+ },
+ "$:/core/macros/lingo": {
+ "title": "$:/core/macros/lingo",
+ "tags": "$:/tags/Macro",
+ "text": "\\define lingo-base()\n$:/language/\n\\end\n\n\\define lingo(title)\n{{$(lingo-base)$$title$}}\n\\end\n"
+ },
+ "$:/core/macros/list": {
+ "title": "$:/core/macros/list",
+ "tags": "$:/tags/Macro",
+ "text": "\\define list-links(filter,type:\"ul\",subtype:\"li\",class:\"\",emptyMessage)\n\\whitespace trim\n<$type$ class=\"$class$\">\n<$list filter=\"$filter$\" emptyMessage=<<__emptyMessage__>>>\n<$subtype$>\n<$link to={{!!title}}>\n<$transclude field=\"caption\">\n<$view field=\"title\"/>\n</$transclude>\n</$link>\n</$subtype$>\n</$list>\n</$type$>\n\\end\n\n\\define list-links-draggable-drop-actions()\n<$action-listops $tiddler=<<targetTiddler>> $field=<<targetField>> $subfilter=\"+[insertbefore:currentTiddler<actionTiddler>]\"/>\n\\end\n\n\\define list-links-draggable(tiddler,field:\"list\",type:\"ul\",subtype:\"li\",class:\"\",itemTemplate)\n\\whitespace trim\n<span class=\"tc-links-draggable-list\">\n<$vars targetTiddler=\"\"\"$tiddler$\"\"\" targetField=\"\"\"$field$\"\"\">\n<$type$ class=\"$class$\">\n<$list filter=\"[list[$tiddler$!!$field$]]\">\n<$droppable actions=<<list-links-draggable-drop-actions>> tag=\"\"\"$subtype$\"\"\" enable=<<tv-enable-drag-and-drop>>>\n<div class=\"tc-droppable-placeholder\"/>\n<div>\n<$transclude tiddler=\"\"\"$itemTemplate$\"\"\">\n<$link to={{!!title}}>\n<$transclude field=\"caption\">\n<$view field=\"title\"/>\n</$transclude>\n</$link>\n</$transclude>\n</div>\n</$droppable>\n</$list>\n<$tiddler tiddler=\"\">\n<$droppable actions=<<list-links-draggable-drop-actions>> tag=\"div\" enable=<<tv-enable-drag-and-drop>>>\n<div class=\"tc-droppable-placeholder\">\n{{$:/core/images/blank}}\n</div>\n<div style=\"height:0.5em;\"/>\n</$droppable>\n</$tiddler>\n</$type$>\n</$vars>\n</span>\n\\end\n\n\\define list-tagged-draggable-drop-actions(tag)\n<!-- Save the current ordering of the tiddlers with this tag -->\n<$set name=\"order\" filter=\"[<__tag__>tagging[]]\">\n<!-- Remove any list-after or list-before fields from the tiddlers with this tag -->\n<$list filter=\"[<__tag__>tagging[]]\">\n<$action-deletefield $field=\"list-before\"/>\n<$action-deletefield $field=\"list-after\"/>\n</$list>\n<!-- Save the new order to the Tag Tiddler -->\n<$action-listops $tiddler=<<__tag__>> $field=\"list\" $filter=\"+[enlist<order>] +[insertbefore:currentTiddler<actionTiddler>]\"/>\n<!-- Make sure the newly added item has the right tag -->\n<!-- Removing this line makes dragging tags within the dropdown work as intended -->\n<!--<$action-listops $tiddler=<<actionTiddler>> $tags=<<__tag__>>/>-->\n<!-- Using the following 5 lines as replacement makes dragging titles from outside into the dropdown apply the tag -->\n<$list filter=\"[<actionTiddler>!contains:tags<__tag__>]\">\n<$fieldmangler tiddler=<<actionTiddler>>>\n<$action-sendmessage $message=\"tm-add-tag\" $param=<<__tag__>>/>\n</$fieldmangler>\n</$list>\n</$set>\n\\end\n\n\\define list-tagged-draggable(tag,subFilter,emptyMessage,itemTemplate,elementTag:\"div\",storyview:\"\")\n\\whitespace trim\n<span class=\"tc-tagged-draggable-list\">\n<$set name=\"tag\" value=<<__tag__>>>\n<$list filter=\"[<__tag__>tagging[]$subFilter$]\" emptyMessage=<<__emptyMessage__>> storyview=<<__storyview__>>>\n<$elementTag$ class=\"tc-menu-list-item\">\n<$droppable actions=\"\"\"<$macrocall $name=\"list-tagged-draggable-drop-actions\" tag=<<__tag__>>/>\"\"\" enable=<<tv-enable-drag-and-drop>>>\n<$elementTag$ class=\"tc-droppable-placeholder\"/>\n<$elementTag$>\n<$transclude tiddler=\"\"\"$itemTemplate$\"\"\">\n<$link to={{!!title}}>\n<$view field=\"title\"/>\n</$link>\n</$transclude>\n</$elementTag$>\n</$droppable>\n</$elementTag$>\n</$list>\n<$tiddler tiddler=\"\">\n<$droppable actions=\"\"\"<$macrocall $name=\"list-tagged-draggable-drop-actions\" tag=<<__tag__>>/>\"\"\" enable=<<tv-enable-drag-and-drop>>>\n<$elementTag$ class=\"tc-droppable-placeholder\"/>\n<$elementTag$ style=\"height:0.5em;\">\n</$elementTag$>\n</$droppable>\n</$tiddler>\n</$set>\n</span>\n\\end\n"
+ },
+ "$:/core/macros/tabs": {
+ "title": "$:/core/macros/tabs",
+ "tags": "$:/tags/Macro",
+ "text": "\\define tabs(tabsList,default,state:\"$:/state/tab\",class,template,buttonTemplate,retain,actions,explicitState)\n<$set name=\"qualifiedState\" value=<<qualify \"$state$\">>>\n<$vars tabsState={{{ [<__explicitState__>minlength[1]] ~[<qualifiedState>] }}}>\n<div class=\"tc-tab-set $class$\">\n<div class=\"tc-tab-buttons $class$\">\n<$list filter=\"$tabsList$\" variable=\"currentTab\" storyview=\"pop\"><$set name=\"save-currentTiddler\" value=<<currentTiddler>>><$tiddler tiddler=<<currentTab>>><$button set=<<tabsState>> setTo=<<currentTab>> default=\"$default$\" selectedClass=\"tc-tab-selected\" tooltip={{!!tooltip}}>\n<$tiddler tiddler=<<save-currentTiddler>>>\n<$set name=\"tv-wikilinks\" value=\"no\">\n<$transclude tiddler=\"$buttonTemplate$\" mode=\"inline\">\n<$transclude tiddler=<<currentTab>> field=\"caption\">\n<$macrocall $name=\"currentTab\" $type=\"text/plain\" $output=\"text/plain\"/>\n</$transclude>\n</$transclude>\n</$set></$tiddler>$actions$</$button></$tiddler></$set></$list>\n</div>\n<div class=\"tc-tab-divider $class$\"/>\n<div class=\"tc-tab-content $class$\">\n<$list filter=\"$tabsList$\" variable=\"currentTab\">\n\n<$reveal type=\"match\" state=<<tabsState>> text=<<currentTab>> default=\"$default$\" retain=\"\"\"$retain$\"\"\">\n\n<$transclude tiddler=\"$template$\" mode=\"block\">\n\n<$transclude tiddler=<<currentTab>> mode=\"block\"/>\n\n</$transclude>\n\n</$reveal>\n\n</$list>\n</div>\n</div>\n</$vars>\n</$set>\n\\end\n"
+ },
+ "$:/core/macros/tag-picker": {
+ "title": "$:/core/macros/tag-picker",
+ "tags": "$:/tags/Macro",
+ "first-search-filter": "[tags[]!is[system]search:title<userInput>sort[]]",
+ "second-search-filter": "[tags[]is[system]search:title<userInput>sort[]]",
+ "text": "\\define get-tagpicker-focus-selector() [data-tiddler-title=\"$(currentTiddlerCSSEscaped)$\"] .tc-add-tag-name input\n\n\\define delete-tag-state-tiddlers() <$action-deletetiddler $filter=\"[<newTagNameTiddler>] [<storeTitle>] [<tagSelectionState>]\"/>\n\n\\define add-tag-actions(actions,tagField:\"tags\")\n<$set name=\"tag\" value={{{ [<__tiddler__>get[text]] }}}>\n<$list filter=\"[<saveTiddler>!contains:$tagField$<tag>!match[]]\" variable=\"ignore\" emptyMessage=\"\"\"\n<$action-listops $tiddler=<<saveTiddler>> $field=<<__tagField__>> $subfilter=\"-[<tag>]\"/>\n\"\"\">\n<$action-listops $tiddler=<<saveTiddler>> $field=<<__tagField__>> $subfilter=\"[<tag>]\"/>\n$actions$\n</$list>\n</$set>\n<<delete-tag-state-tiddlers>>\n<$action-setfield $tiddler=<<refreshTitle>> text=\"yes\"/>\n\\end\n\n\\define clear-tags-actions-inner()\n<$list filter=\"[<storeTitle>has[text]] [<newTagNameTiddler>has[text]]\" variable=\"ignore\" emptyMessage=\"\"\"<<cancel-delete-tiddler-actions \"cancel\">>\"\"\">\n<<delete-tag-state-tiddlers>>\n</$list>\n\\end\n\n\\define clear-tags-actions()\n<$set name=\"userInput\" value={{{ [<storeTitle>get[text]] }}}>\n<$list filter=\"[<newTagNameTiddler>get[text]!match<userInput>]\" emptyMessage=\"\"\"<<clear-tags-actions-inner>>\"\"\">\n<$action-setfield $tiddler=<<newTagNameTiddler>> text=<<userInput>>/><$action-setfield $tiddler=<<refreshTitle>> text=\"yes\"/>\n</$list>\n</$set>\n\\end\n\n\\define tag-picker-inner(actions,tagField:\"tags\")\n\\whitespace trim\n<$vars newTagNameInputTiddlerQualified=<<qualify \"$:/temp/NewTagName/input\">> newTagNameSelectionTiddlerQualified=<<qualify \"$:/temp/NewTagName/selected-item\">> fallbackTarget={{$(palette)$##tag-background}} colourA={{$(palette)$##foreground}} colourB={{$(palette)$##background}}>\n<$vars storeTitle={{{ [<newTagNameInputTiddler>!match[]] ~[<newTagNameInputTiddlerQualified>] }}} tagSelectionState={{{ [<newTagNameSelectionTiddler>!match[]] ~[<newTagNameSelectionTiddlerQualified>] }}}>\n<$vars refreshTitle=<<qualify \"$:/temp/NewTagName/refresh\">> nonSystemTagsFilter=\"[tags[]!is[system]search:title<userInput>sort[]]\" systemTagsFilter=\"[tags[]is[system]search:title<userInput>sort[]]\">\n<div class=\"tc-edit-add-tag\">\n<div>\n<span class=\"tc-add-tag-name tc-small-gap-right\">\n<$macrocall $name=\"keyboard-driven-input\" tiddler=<<newTagNameTiddler>> storeTitle=<<storeTitle>> refreshTitle=<<refreshTitle>>\n\t\tselectionStateTitle=<<tagSelectionState>> inputAcceptActions=\"\"\"<$macrocall $name=\"add-tag-actions\" actions=<<__actions__>> tagField=<<__tagField__>>/>\"\"\"\n\t\tinputCancelActions=<<clear-tags-actions>> tag=\"input\" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}}\n\t\tfocusPopup=<<qualify \"$:/state/popup/tags-auto-complete\">> class=\"tc-edit-texteditor tc-popup-handle\" tabindex=<<tabIndex>> \n\t\tfocus={{{ [{$:/config/AutoFocus}match[tags]then[true]] ~[[false]] }}} filterMinLength={{$:/config/Tags/MinLength}} \n\t\tcancelPopups=<<cancelPopups>> configTiddlerFilter=\"[[$:/core/macros/tag-picker]]\"/>\n</span><$button popup=<<qualify \"$:/state/popup/tags-auto-complete\">> class=\"tc-btn-invisible tc-btn-dropdown\" tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button><$reveal state=<<storeTitle>> type=\"nomatch\" text=\"\"><$button class=\"tc-btn-invisible tc-small-gap tc-btn-dropdown\" tooltip={{$:/language/EditTemplate/Tags/ClearInput/Hint}} aria-label={{$:/language/EditTemplate/Tags/ClearInput/Caption}}>{{$:/core/images/close-button}}<<delete-tag-state-tiddlers>></$button></$reveal><span class=\"tc-add-tag-button tc-small-gap-left\">\n<$set name=\"tag\" value={{{ [<newTagNameTiddler>get[text]] }}}>\n<$button set=<<newTagNameTiddler>> setTo=\"\" class=\"\">\n<$action-listops $tiddler=<<saveTiddler>> $field=<<__tagField__>> $subfilter=\"[<tag>]\"/>\n$actions$\n<$set name=\"currentTiddlerCSSEscaped\" value={{{ [<saveTiddler>escapecss[]] }}}>\n<<delete-tag-state-tiddlers>><$action-sendmessage $message=\"tm-focus-selector\" $param=<<get-tagpicker-focus-selector>>/>\n</$set>\n{{$:/language/EditTemplate/Tags/Add/Button}}\n</$button>\n</$set>\n</span>\n</div>\n<div class=\"tc-block-dropdown-wrapper\">\n<$reveal state=<<qualify \"$:/state/popup/tags-auto-complete\">> type=\"nomatch\" text=\"\" default=\"\">\n<div class=\"tc-block-dropdown tc-block-tags-dropdown\">\n<$set name=\"userInput\" value={{{ [<storeTitle>get[text]] }}}>\n<$list filter=\"[<userInput>minlength{$:/config/Tags/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n<$list filter=<<nonSystemTagsFilter>> variable=\"tag\">\n<$list filter=\"[<tag>addsuffix[-primaryList]] -[<tagSelectionState>get[text]]\" emptyMessage=\"\"\"<$vars button-classes=\"tc-btn-invisible tc-tag-button-selected\" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<<tag>>>{{||$:/core/ui/TagPickerTagTemplate}}</$vars>\"\"\">\n<$vars button-classes=\"tc-btn-invisible\" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<<tag>>>{{||$:/core/ui/TagPickerTagTemplate}}</$vars>\n</$list>\n</$list></$list>\n<hr>\n<$list filter=\"[<userInput>minlength{$:/config/Tags/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n<$list filter=<<systemTagsFilter>> variable=\"tag\">\n<$list filter=\"[<tag>addsuffix[-secondaryList]] -[<tagSelectionState>get[text]]\" emptyMessage=\"\"\"<$vars button-classes=\"tc-btn-invisible tc-tag-button-selected\" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<<tag>>>{{||$:/core/ui/TagPickerTagTemplate}}</$vars>\"\"\">\n<$vars button-classes=\"tc-btn-invisible\" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<<tag>>>{{||$:/core/ui/TagPickerTagTemplate}}</$vars>\n</$list>\n</$list></$list>\n</$set>\n</div>\n</$reveal>\n</div>\n</div>\n</$vars>\n</$vars>\n</$vars>\n\\end\n\\define tag-picker(actions,tagField:\"tags\")\n\\whitespace trim\n<$vars saveTiddler=<<currentTiddler>> palette={{$:/palette}}>\n<$list filter=\"[<newTagNameTiddler>match[]]\" emptyMessage=\"\"\"<$macrocall $name=\"tag-picker-inner\" actions=<<__actions__>> tagField=<<__tagField__>>/>\"\"\">\n<$set name=\"newTagNameTiddler\" value=<<qualify \"$:/temp/NewTagName\">>>\n<$macrocall $name=\"tag-picker-inner\" actions=<<__actions__>> tagField=<<__tagField__>>/>\n</$set>\n</$list>\n</$vars>\n\\end\n"
+ },
+ "$:/core/macros/tag": {
+ "title": "$:/core/macros/tag",
+ "tags": "$:/tags/Macro",
+ "text": "\\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<$vars foregroundColor=<<contrastcolour target:\"\"\"$colour$\"\"\" fallbackTarget:\"\"\"$fallbackTarget$\"\"\" colourA:\"\"\"$colourA$\"\"\" colourB:\"\"\"$colourB$\"\"\">> backgroundColor=\"\"\"$colour$\"\"\">\n<$element-tag$ $element-attributes$ class=\"tc-tag-label tc-btn-invisible\" style=<<tag-pill-styles>>>\n$actions$<$transclude tiddler=\"\"\"$icon$\"\"\"/><$view tiddler=<<__tag__>> field=\"title\" format=\"text\" />\n</$element-tag$>\n</$vars>\n\\end\n\n\\define tag-pill-body(tag,icon,colour,palette,element-tag,element-attributes,actions)\n<$macrocall $name=\"tag-pill-inner\" tag=<<__tag__>> icon=\"\"\"$icon$\"\"\" colour=\"\"\"$colour$\"\"\" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} element-tag=\"\"\"$element-tag$\"\"\" element-attributes=\"\"\"$element-attributes$\"\"\" actions=\"\"\"$actions$\"\"\"/>\n\\end\n\n\\define tag-pill(tag,element-tag:\"span\",element-attributes:\"\",actions:\"\")\n<span class=\"tc-tag-list-item\">\n<$macrocall $name=\"tag-pill-body\" tag=<<__tag__>> icon={{{ [<__tag__>get[icon]] }}} colour={{{ [<__tag__>get[color]] }}} palette={{$:/palette}} element-tag=\"\"\"$element-tag$\"\"\" element-attributes=\"\"\"$element-attributes$\"\"\" actions=\"\"\"$actions$\"\"\"/>\n</span>\n\\end\n\n\\define tag(tag)\n{{$tag$||$:/core/ui/TagTemplate}}\n\\end\n"
+ },
+ "$:/core/macros/thumbnails": {
+ "title": "$:/core/macros/thumbnails",
+ "tags": "$:/tags/Macro",
+ "text": "\\define thumbnail(link,icon,color,background-color,image,caption,width:\"280\",height:\"157\")\n<$link to=\"\"\"$link$\"\"\"><div class=\"tc-thumbnail-wrapper\">\n<div class=\"tc-thumbnail-image\" style=\"width:$width$px;height:$height$px;\"><$reveal type=\"nomatch\" text=\"\" default=\"\"\"$image$\"\"\" tag=\"div\" style=\"width:$width$px;height:$height$px;\">\n[img[$image$]]\n</$reveal><$reveal type=\"match\" text=\"\" default=\"\"\"$image$\"\"\" tag=\"div\" class=\"tc-thumbnail-background\" style=\"width:$width$px;height:$height$px;background-color:$background-color$;\"></$reveal></div><div class=\"tc-thumbnail-icon\" style=\"fill:$color$;color:$color$;\">\n$icon$\n</div><div class=\"tc-thumbnail-caption\">\n$caption$\n</div>\n</div></$link>\n\\end\n\n\\define thumbnail-right(link,icon,color,background-color,image,caption,width:\"280\",height:\"157\")\n<div class=\"tc-thumbnail-right-wrapper\"><<thumbnail \"\"\"$link$\"\"\" \"\"\"$icon$\"\"\" \"\"\"$color$\"\"\" \"\"\"$background-color$\"\"\" \"\"\"$image$\"\"\" \"\"\"$caption$\"\"\" \"\"\"$width$\"\"\" \"\"\"$height$\"\"\">></div>\n\\end\n\n\\define list-thumbnails(filter,width:\"280\",height:\"157\")\n<$list filter=\"\"\"$filter$\"\"\"><$macrocall $name=\"thumbnail\" link={{!!link}} icon={{!!icon}} color={{!!color}} background-color={{!!background-color}} image={{!!image}} caption={{!!caption}} width=\"\"\"$width$\"\"\" height=\"\"\"$height$\"\"\"/></$list>\n\\end\n"
+ },
+ "$:/core/macros/timeline": {
+ "title": "$:/core/macros/timeline",
+ "created": "20141212105914482",
+ "modified": "20141212110330815",
+ "tags": "$:/tags/Macro",
+ "text": "\\define timeline-title()\n\\whitespace trim\n<!-- 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 -->\n<$view field=\"title\"/>\n\\end\n\\define timeline(limit:\"100\",format:\"DDth MMM YYYY\",subfilter:\"\",dateField:\"modified\")\n<div class=\"tc-timeline\">\n<$list filter=\"[!is[system]$subfilter$has[$dateField$]!sort[$dateField$]limit[$limit$]eachday[$dateField$]]\">\n<div class=\"tc-menu-list-item\">\n<$view field=\"$dateField$\" format=\"date\" template=\"$format$\"/>\n<$list filter=\"[sameday:$dateField${!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]\">\n<div class=\"tc-menu-list-subitem\">\n<$link to={{!!title}}><<timeline-title>></$link>\n</div>\n</$list>\n</div>\n</$list>\n</div>\n\\end\n"
+ },
+ "$:/core/macros/toc": {
+ "title": "$:/core/macros/toc",
+ "tags": "$:/tags/Macro",
+ "text": "\\define toc-caption()\n<$set name=\"tv-wikilinks\" value=\"no\">\n <$transclude field=\"caption\">\n <$view field=\"title\"/>\n </$transclude>\n</$set>\n\\end\n\n\\define toc-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<ol class=\"tc-toc\">\n <$list filter=\"\"\"[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]\"\"\">\n <$vars item=<<currentTiddler>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>\n <$set name=\"excluded\" filter=\"\"\"[enlist<__exclude__>] [<__tag__>]\"\"\">\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$list filter=\"[all[current]toc-link[no]]\" emptyMessage=\"<$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}><$view field='caption'><$view field='title'/></$view></$link>\">\n <<toc-caption>>\n </$list>\n <$macrocall $name=\"toc-body\" tag=<<item>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<excluded>> path=<<path>>/>\n </li>\n </$set>\n </$set>\n </$vars>\n </$list>\n</ol>\n\\end\n\n\\define toc(tag,sort:\"\",itemClassFilter:\"\")\n<$macrocall $name=\"toc-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> />\n\\end\n\n\\define toc-linked-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<!-- helper function -->\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}>\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n </$button>\n </$reveal>\n <<toc-caption>>\n </$link>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-unlinked-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<!-- helper function -->\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-expandable-empty-message()\n<$macrocall $name=\"toc-linked-expandable-body\" tag=<<tag>> sort=<<sort>> itemClassFilter=<<itemClassFilter>> exclude=<<excluded>> path=<<path>>/>\n\\end\n\n\\define toc-expandable(tag,sort:\"\",itemClassFilter:\"\",exclude,path)\n<$vars tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>\n <$set name=\"excluded\" filter=\"\"\"[enlist<__exclude__>] [<__tag__>]\"\"\">\n <ol class=\"tc-toc toc-expandable\">\n <$list filter=\"\"\"[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]\"\"\">\n <$list filter=\"[all[current]toc-link[no]]\" emptyMessage=<<toc-expandable-empty-message>> >\n <$macrocall $name=\"toc-unlinked-expandable-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=\"\"\"itemClassFilter\"\"\" exclude=<<excluded>> path=<<path>> />\n </$list>\n </$list>\n </ol>\n </$set>\n</$vars>\n\\end\n\n\\define toc-linked-selective-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\" >\n <li class=<<toc-item-class>>>\n <$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}>\n <$list filter=\"[all[current]tagging[]$sort$limit[1]]\" variable=\"ignore\" emptyMessage=\"<$button class='tc-btn-invisible'>{{$:/core/images/blank}}</$button>\">\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n </$button>\n </$reveal>\n </$list>\n <<toc-caption>>\n </$link>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-selective-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-unlinked-selective-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$list filter=\"[all[current]tagging[]$sort$limit[1]]\" variable=\"ignore\" emptyMessage=\"<$button class='tc-btn-invisible'>{{$:/core/images/blank}}</$button> <$view field='caption'><$view field='title'/></$view>\">\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n </$list>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-selective-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-selective-expandable-empty-message()\n<$macrocall $name=\"toc-linked-selective-expandable-body\" tag=<<tag>> sort=<<sort>> itemClassFilter=<<itemClassFilter>> exclude=<<excluded>> path=<<path>>/>\n\\end\n\n\\define toc-selective-expandable(tag,sort:\"\",itemClassFilter,exclude,path)\n<$vars tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>\n <$set name=\"excluded\" filter=\"\"\"[enlist<__exclude__>] [<__tag__>]\"\"\">\n <ol class=\"tc-toc toc-selective-expandable\">\n <$list filter=\"\"\"[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]\"\"\">\n <$list filter=\"[all[current]toc-link[no]]\" variable=\"ignore\" emptyMessage=<<toc-selective-expandable-empty-message>> >\n <$macrocall $name=\"toc-unlinked-selective-expandable-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<excluded>> path=<<path>>/>\n </$list>\n </$list>\n </ol>\n </$set>\n</$vars>\n\\end\n\n\\define toc-tabbed-external-nav(tag,sort:\"\",selectedTiddler:\"$:/temp/toc/selectedTiddler\",unselectedText,missingText,template:\"\")\n<$tiddler tiddler={{{ [<__selectedTiddler__>get[text]] }}}>\n <div class=\"tc-tabbed-table-of-contents\">\n <$linkcatcher to=<<__selectedTiddler__>>>\n <div class=\"tc-table-of-contents\">\n <$macrocall $name=\"toc-selective-expandable\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=\"[all[current]] -[<__selectedTiddler__>get[text]]\"/>\n </div>\n </$linkcatcher>\n <div class=\"tc-tabbed-table-of-contents-content\">\n <$reveal stateTitle=<<__selectedTiddler__>> type=\"nomatch\" text=\"\">\n <$transclude mode=\"block\" tiddler=<<__template__>>>\n <h1><<toc-caption>></h1>\n <$transclude mode=\"block\">$missingText$</$transclude>\n </$transclude>\n </$reveal>\n <$reveal stateTitle=<<__selectedTiddler__>> type=\"match\" text=\"\">\n $unselectedText$\n </$reveal>\n </div>\n </div>\n</$tiddler>\n\\end\n\n\\define toc-tabbed-internal-nav(tag,sort:\"\",selectedTiddler:\"$:/temp/toc/selectedTiddler\",unselectedText,missingText,template:\"\")\n<$linkcatcher to=<<__selectedTiddler__>>>\n <$macrocall $name=\"toc-tabbed-external-nav\" tag=<<__tag__>> sort=<<__sort__>> selectedTiddler=<<__selectedTiddler__>> unselectedText=<<__unselectedText__>> missingText=<<__missingText__>> template=<<__template__>>/>\n</$linkcatcher>\n\\end\n\n"
+ },
+ "$:/core/macros/translink": {
+ "title": "$:/core/macros/translink",
+ "tags": "$:/tags/Macro",
+ "text": "\\define translink(title,mode:\"block\")\n<div style=\"border:1px solid #ccc; padding: 0.5em; background: black; foreground; white;\">\n<$link to=\"\"\"$title$\"\"\">\n<$text text=\"\"\"$title$\"\"\"/>\n</$link>\n<div style=\"border:1px solid #ccc; padding: 0.5em; background: white; foreground; black;\">\n<$transclude tiddler=\"\"\"$title$\"\"\" mode=\"$mode$\">\n\"<$text text=\"\"\"$title$\"\"\"/>\" is missing\n</$transclude>\n</div>\n</div>\n\\end\n"
+ },
+ "$:/core/macros/tree": {
+ "title": "$:/core/macros/tree",
+ "tags": "$:/tags/Macro",
+ "text": "\\define leaf-link(full-title,chunk,separator: \"/\")\n<$link to=<<__full-title__>>><$text text=<<__chunk__>>/></$link>\n\\end\n\n\\define leaf-node(prefix,chunk)\n<li>\n<$list filter=\"[<__prefix__>addsuffix<__chunk__>is[shadow]] [<__prefix__>addsuffix<__chunk__>is[tiddler]]\" variable=\"full-title\">\n<$list filter=\"[<full-title>removeprefix<__prefix__>]\" variable=\"chunk\">\n<span>{{$:/core/images/file}}</span> <$macrocall $name=\"leaf-link\" full-title=<<full-title>> chunk=<<chunk>>/>\n</$list>\n</$list>\n</li>\n\\end\n\n\\define branch-node(prefix,chunk,separator: \"/\")\n<li>\n<$set name=\"reveal-state\" value={{{ [[$:/state/tree/]addsuffix<__prefix__>addsuffix<__chunk__>] }}}>\n<$reveal type=\"nomatch\" stateTitle=<<reveal-state>> text=\"show\">\n<$button setTitle=<<reveal-state>> setTo=\"show\" class=\"tc-btn-invisible\">\n{{$:/core/images/folder}} <$text text=<<__chunk__>>/>\n</$button>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<reveal-state>> text=\"show\">\n<$button setTitle=<<reveal-state>> setTo=\"hide\" class=\"tc-btn-invisible\">\n{{$:/core/images/folder}} <$text text=<<__chunk__>>/>\n</$button>\n</$reveal>\n<span>(<$count filter=\"[all[shadows+tiddlers]removeprefix<__prefix__>removeprefix<__chunk__>] -[<__prefix__>addsuffix<__chunk__>]\"/>)</span>\n<$reveal type=\"match\" stateTitle=<<reveal-state>> text=\"show\">\n<$macrocall $name=\"tree-node\" prefix={{{ [<__prefix__>addsuffix<__chunk__>] }}} separator=<<__separator__>>/>\n</$reveal>\n</$set>\n</li>\n\\end\n\n\\define tree-node(prefix,separator: \"/\")\n<ol>\n<$list filter=\"[all[shadows+tiddlers]removeprefix<__prefix__>splitbefore<__separator__>sort[]!suffix<__separator__>]\" variable=\"chunk\">\n<$macrocall $name=\"leaf-node\" prefix=<<__prefix__>> chunk=<<chunk>> separator=<<__separator__>>/>\n</$list>\n<$list filter=\"[all[shadows+tiddlers]removeprefix<__prefix__>splitbefore<__separator__>sort[]suffix<__separator__>]\" variable=\"chunk\">\n<$macrocall $name=\"branch-node\" prefix=<<__prefix__>> chunk=<<chunk>> separator=<<__separator__>>/>\n</$list>\n</ol>\n\\end\n\n\\define tree(prefix: \"$:/\",separator: \"/\")\n<div class=\"tc-tree\">\n<span><$text text=<<__prefix__>>/></span>\n<div>\n<$macrocall $name=\"tree-node\" prefix=<<__prefix__>> separator=<<__separator__>>/>\n</div>\n</div>\n\\end\n"
+ },
+ "$:/core/macros/utils": {
+ "title": "$:/core/macros/utils",
+ "text": "\\define colour(colour)\n$colour$\n\\end\n"
+ },
+ "$:/snippets/minifocusswitcher": {
+ "title": "$:/snippets/minifocusswitcher",
+ "text": "<$select tiddler=\"$:/config/AutoFocus\">\n<$list filter=\"title tags text type fields\">\n<option value=<<currentTiddler>>><<currentTiddler>></option>\n</$list>\n</$select>\n"
+ },
+ "$:/snippets/minilanguageswitcher": {
+ "title": "$:/snippets/minilanguageswitcher",
+ "text": "<$select tiddler=\"$:/language\">\n<$list filter=\"[[$:/languages/en-GB]] [plugin-type[language]sort[title]]\">\n<option value=<<currentTiddler>>><$view field=\"description\"><$view field=\"name\"><$view field=\"title\"/></$view></$view></option>\n</$list>\n</$select>"
+ },
+ "$:/snippets/minithemeswitcher": {
+ "title": "$:/snippets/minithemeswitcher",
+ "text": "\\define lingo-base() $:/language/ControlPanel/Theme/\n<<lingo Prompt>> <$select tiddler=\"$:/theme\">\n<$list filter=\"[plugin-type[theme]sort[title]]\">\n<option value=<<currentTiddler>>><$view field=\"name\"><$view field=\"title\"/></$view></option>\n</$list>\n</$select>"
+ },
+ "$:/snippets/modules": {
+ "title": "$:/snippets/modules",
+ "text": "\\define describeModuleType(type)\n{{$:/language/Docs/ModuleTypes/$type$}}\n\\end\n<$list filter=\"[moduletypes[]]\">\n\n!! <$macrocall $name=\"currentTiddler\" $type=\"text/plain\" $output=\"text/plain\"/>\n\n<$macrocall $name=\"describeModuleType\" type=<<currentTiddler>>/>\n\n<ul><$list filter=\"[all[current]modules[]]\"><li><$link><<currentTiddler>></$link>\n</li>\n</$list>\n</ul>\n</$list>\n"
+ },
+ "$:/palette": {
+ "title": "$:/palette",
+ "text": "$:/palettes/Vanilla"
+ },
+ "$:/snippets/paletteeditor": {
+ "title": "$:/snippets/paletteeditor",
+ "text": "<$transclude tiddler=\"$:/PaletteManager\"/>\n"
+ },
+ "$:/snippets/palettepreview": {
+ "title": "$:/snippets/palettepreview",
+ "text": "<$set name=\"currentTiddler\" value={{$:/palette}}>\n{{||$:/snippets/currpalettepreview}}\n</$set>\n"
+ },
+ "$:/snippets/paletteswitcher": {
+ "title": "$:/snippets/paletteswitcher",
+ "text": "<$linkcatcher to=\"$:/palette\">\n<div class=\"tc-chooser\"><$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]\"><$set name=\"cls\" filter=\"[all[current]prefix{$:/palette}]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>><$link to={{!!title}}>''<$view field=\"name\" format=\"text\"/>'' - <$view field=\"description\" format=\"text\"/>{{||$:/snippets/currpalettepreview}}</$link>\n</div></$set>\n</$list>\n</div>\n</$linkcatcher>\n"
+ },
+ "$:/snippets/peek-stylesheets": {
+ "title": "$:/snippets/peek-stylesheets",
+ "text": "\\define expandable-stylesheets-list()\n<ol>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]\">\n<$vars state=<<qualify \"$:/state/peek-stylesheets/open/\">>>\n<$set name=\"state\" value={{{ [<state>addsuffix<currentTiddler>] }}}>\n<li>\n<$reveal type=\"match\" state=<<state>> text=\"yes\" tag=\"span\">\n<$button set=<<state>> setTo=\"no\" class=\"tc-btn-invisible\">\n{{$:/core/images/down-arrow}}\n</$button>\n</$reveal>\n<$reveal type=\"nomatch\" state=<<state>> text=\"yes\" tag=\"span\">\n<$button set=<<state>> setTo=\"yes\" class=\"tc-btn-invisible\">\n{{$:/core/images/right-arrow}}\n</$button>\n</$reveal>\n<$link>\n<$view field=\"title\"/>\n</$link>\n<$reveal type=\"match\" state=<<state>> text=\"yes\" tag=\"div\">\n<$set name=\"source\" tiddler=<<currentTiddler>>>\n<$wikify name=\"styles\" text=<<source>>>\n<pre>\n<code>\n<$text text=<<styles>>/>\n</code>\n</pre>\n</$wikify>\n</$set>\n</$reveal>\n</li>\n</$set>\n</$vars>\n</$list>\n</ol>\n\\end\n\n\\define stylesheets-list()\n<ol>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]\">\n<li>\n<$link>\n<$view field=\"title\"/>\n</$link>\n<$set name=\"source\" tiddler=<<currentTiddler>>>\n<$wikify name=\"styles\" text=<<source>>>\n<pre>\n<code>\n<$text text=<<styles>>/>\n</code>\n</pre>\n</$wikify>\n</$set>\n</li>\n</$list>\n</ol>\n\\end\n\n<$vars modeState=<<qualify \"$:/state/peek-stylesheets/mode/\">>>\n\n<$reveal type=\"nomatch\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<$button set=<<modeState>> setTo=\"expanded\" class=\"tc-btn-invisible\">{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Stylesheets/Expand/Caption}}</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<$button set=<<modeState>> setTo=\"restored\" class=\"tc-btn-invisible\">{{$:/core/images/chevron-down}} {{$:/language/ControlPanel/Stylesheets/Restore/Caption}}</$button>\n</$reveal>\n\n<$reveal type=\"nomatch\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<<expandable-stylesheets-list>>\n</$reveal>\n<$reveal type=\"match\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<<stylesheets-list>>\n</$reveal>\n\n</$vars>\n"
+ },
+ "$:/temp/search": {
+ "title": "$:/temp/search",
+ "text": ""
+ },
+ "$:/tags/AdvancedSearch": {
+ "title": "$:/tags/AdvancedSearch",
+ "list": "[[$:/core/ui/AdvancedSearch/Standard]] [[$:/core/ui/AdvancedSearch/System]] [[$:/core/ui/AdvancedSearch/Shadows]] [[$:/core/ui/AdvancedSearch/Filter]]"
+ },
+ "$:/tags/AdvancedSearch/FilterButton": {
+ "title": "$:/tags/AdvancedSearch/FilterButton",
+ "list": "$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown $:/core/ui/AdvancedSearch/Filter/FilterButtons/clear $:/core/ui/AdvancedSearch/Filter/FilterButtons/export $:/core/ui/AdvancedSearch/Filter/FilterButtons/delete"
+ },
+ "$:/tags/ControlPanel": {
+ "title": "$:/tags/ControlPanel",
+ "list": "$:/core/ui/ControlPanel/Info $:/core/ui/ControlPanel/Appearance $:/core/ui/ControlPanel/Settings $:/core/ui/ControlPanel/Saving $:/core/ui/ControlPanel/Plugins $:/core/ui/ControlPanel/Tools $:/core/ui/ControlPanel/Internals"
+ },
+ "$:/tags/ControlPanel/Info": {
+ "title": "$:/tags/ControlPanel/Info",
+ "list": "$:/core/ui/ControlPanel/Basics $:/core/ui/ControlPanel/Advanced"
+ },
+ "$:/tags/ControlPanel/Plugins": {
+ "title": "$:/tags/ControlPanel/Plugins",
+ "list": "[[$:/core/ui/ControlPanel/Plugins/Installed]] [[$:/core/ui/ControlPanel/Plugins/Add]]"
+ },
+ "$:/tags/EditTemplate": {
+ "title": "$:/tags/EditTemplate",
+ "list": "[[$:/core/ui/EditTemplate/controls]] [[$:/core/ui/EditTemplate/title]] [[$:/core/ui/EditTemplate/tags]] [[$:/core/ui/EditTemplate/shadow]] [[$:/core/ui/ViewTemplate/classic]] [[$:/core/ui/EditTemplate/body]] [[$:/core/ui/EditTemplate/type]] [[$:/core/ui/EditTemplate/fields]]"
+ },
+ "$:/tags/EditToolbar": {
+ "title": "$:/tags/EditToolbar",
+ "list": "[[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/cancel]] [[$:/core/ui/Buttons/save]]"
+ },
+ "$:/tags/EditorToolbar": {
+ "title": "$:/tags/EditorToolbar",
+ "list": "$:/core/ui/EditorToolbar/paint $:/core/ui/EditorToolbar/opacity $:/core/ui/EditorToolbar/line-width $:/core/ui/EditorToolbar/rotate-left $:/core/ui/EditorToolbar/clear $:/core/ui/EditorToolbar/bold $:/core/ui/EditorToolbar/italic $:/core/ui/EditorToolbar/strikethrough $:/core/ui/EditorToolbar/underline $:/core/ui/EditorToolbar/superscript $:/core/ui/EditorToolbar/subscript $:/core/ui/EditorToolbar/mono-line $:/core/ui/EditorToolbar/mono-block $:/core/ui/EditorToolbar/quote $:/core/ui/EditorToolbar/list-bullet $:/core/ui/EditorToolbar/list-number $:/core/ui/EditorToolbar/heading-1 $:/core/ui/EditorToolbar/heading-2 $:/core/ui/EditorToolbar/heading-3 $:/core/ui/EditorToolbar/heading-4 $:/core/ui/EditorToolbar/heading-5 $:/core/ui/EditorToolbar/heading-6 $:/core/ui/EditorToolbar/link $:/core/ui/EditorToolbar/excise $:/core/ui/EditorToolbar/picture $:/core/ui/EditorToolbar/stamp $:/core/ui/EditorToolbar/size $:/core/ui/EditorToolbar/editor-height $:/core/ui/EditorToolbar/more $:/core/ui/EditorToolbar/preview $:/core/ui/EditorToolbar/preview-type"
+ },
+ "$:/tags/Manager/ItemMain": {
+ "title": "$:/tags/Manager/ItemMain",
+ "list": "$:/Manager/ItemMain/WikifiedText $:/Manager/ItemMain/RawText $:/Manager/ItemMain/Fields"
+ },
+ "$:/tags/Manager/ItemSidebar": {
+ "title": "$:/tags/Manager/ItemSidebar",
+ "list": "$:/Manager/ItemSidebar/Tags $:/Manager/ItemSidebar/Colour $:/Manager/ItemSidebar/Icon $:/Manager/ItemSidebar/Tools"
+ },
+ "$:/tags/MoreSideBar": {
+ "title": "$:/tags/MoreSideBar",
+ "list": "[[$:/core/ui/MoreSideBar/All]] [[$:/core/ui/MoreSideBar/Recent]] [[$:/core/ui/MoreSideBar/Tags]] [[$:/core/ui/MoreSideBar/Missing]] [[$:/core/ui/MoreSideBar/Drafts]] [[$:/core/ui/MoreSideBar/Orphans]] [[$:/core/ui/MoreSideBar/Types]] [[$:/core/ui/MoreSideBar/System]] [[$:/core/ui/MoreSideBar/Shadows]] [[$:/core/ui/MoreSideBar/Explorer]] [[$:/core/ui/MoreSideBar/Plugins]]",
+ "text": ""
+ },
+ "$:/tags/PageControls": {
+ "title": "$:/tags/PageControls",
+ "list": "[[$:/core/ui/Buttons/home]] [[$:/core/ui/Buttons/close-all]] [[$:/core/ui/Buttons/fold-all]] [[$:/core/ui/Buttons/unfold-all]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/new-tiddler]] [[$:/core/ui/Buttons/new-journal]] [[$:/core/ui/Buttons/new-image]] [[$:/core/ui/Buttons/import]] [[$:/core/ui/Buttons/export-page]] [[$:/core/ui/Buttons/control-panel]] [[$:/core/ui/Buttons/advanced-search]] [[$:/core/ui/Buttons/manager]] [[$:/core/ui/Buttons/tag-manager]] [[$:/core/ui/Buttons/language]] [[$:/core/ui/Buttons/palette]] [[$:/core/ui/Buttons/theme]] [[$:/core/ui/Buttons/storyview]] [[$:/core/ui/Buttons/encryption]] [[$:/core/ui/Buttons/timestamp]] [[$:/core/ui/Buttons/full-screen]] [[$:/core/ui/Buttons/print]] [[$:/core/ui/Buttons/save-wiki]] [[$:/core/ui/Buttons/refresh]] [[$:/core/ui/Buttons/more-page-actions]]"
+ },
+ "$:/tags/PageTemplate": {
+ "title": "$:/tags/PageTemplate",
+ "list": "[[$:/core/ui/PageTemplate/topleftbar]] [[$:/core/ui/PageTemplate/toprightbar]] [[$:/core/ui/PageTemplate/sidebar]] [[$:/core/ui/PageTemplate/story]] [[$:/core/ui/PageTemplate/alerts]]",
+ "text": ""
+ },
+ "$:/tags/PluginLibrary": {
+ "title": "$:/tags/PluginLibrary",
+ "list": "$:/config/OfficialPluginLibrary"
+ },
+ "$:/tags/SideBar": {
+ "title": "$:/tags/SideBar",
+ "list": "[[$:/core/ui/SideBar/Open]] [[$:/core/ui/SideBar/Recent]] [[$:/core/ui/SideBar/Tools]] [[$:/core/ui/SideBar/More]]",
+ "text": ""
+ },
+ "$:/tags/SideBarSegment": {
+ "title": "$:/tags/SideBarSegment",
+ "list": "[[$:/core/ui/SideBarSegments/site-title]] [[$:/core/ui/SideBarSegments/site-subtitle]] [[$:/core/ui/SideBarSegments/page-controls]] [[$:/core/ui/SideBarSegments/search]] [[$:/core/ui/SideBarSegments/tabs]]"
+ },
+ "$:/tags/TiddlerInfo": {
+ "title": "$:/tags/TiddlerInfo",
+ "list": "[[$:/core/ui/TiddlerInfo/Tools]] [[$:/core/ui/TiddlerInfo/References]] [[$:/core/ui/TiddlerInfo/Tagging]] [[$:/core/ui/TiddlerInfo/List]] [[$:/core/ui/TiddlerInfo/Listed]] [[$:/core/ui/TiddlerInfo/Fields]]",
+ "text": ""
+ },
+ "$:/tags/TiddlerInfo/Advanced": {
+ "title": "$:/tags/TiddlerInfo/Advanced",
+ "list": "[[$:/core/ui/TiddlerInfo/Advanced/ShadowInfo]] [[$:/core/ui/TiddlerInfo/Advanced/PluginInfo]]"
+ },
+ "$:/tags/ViewTemplate": {
+ "title": "$:/tags/ViewTemplate",
+ "list": "[[$:/core/ui/ViewTemplate/title]] [[$:/core/ui/ViewTemplate/unfold]] [[$:/core/ui/ViewTemplate/subtitle]] [[$:/core/ui/ViewTemplate/tags]] [[$:/core/ui/ViewTemplate/classic]] [[$:/core/ui/ViewTemplate/body]]"
+ },
+ "$:/tags/ViewToolbar": {
+ "title": "$:/tags/ViewToolbar",
+ "list": "[[$:/core/ui/Buttons/more-tiddler-actions]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/new-here]] [[$:/core/ui/Buttons/new-journal-here]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/export-tiddler]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/open-window]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]] [[$:/core/ui/Buttons/fold-others]] [[$:/core/ui/Buttons/fold]]"
+ },
+ "$:/snippets/themeswitcher": {
+ "title": "$:/snippets/themeswitcher",
+ "text": "<$linkcatcher to=\"$:/theme\">\n<div class=\"tc-chooser\"><$list filter=\"[plugin-type[theme]sort[title]]\"><$set name=\"cls\" filter=\"[all[current]field:title{$:/theme}] [[$:/theme]!has[text]addsuffix[s/tiddlywiki/vanilla]field:title<currentTiddler>] +[limit[1]]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>><$link to={{!!title}}>''<$view field=\"name\" format=\"text\"/>'' <$view field=\"description\" format=\"text\"/></$link></div>\n</$set>\n</$list>\n</div>\n</$linkcatcher>"
+ },
+ "$:/core/wiki/title": {
+ "title": "$:/core/wiki/title",
+ "text": "{{$:/SiteTitle}} --- {{$:/SiteSubtitle}}"
+ },
+ "$:/view": {
+ "title": "$:/view",
+ "text": "classic"
+ },
+ "$:/snippets/viewswitcher": {
+ "title": "$:/snippets/viewswitcher",
+ "text": "\\define icon()\n$:/core/images/storyview-$(storyview)$\n\\end\n<$linkcatcher to=\"$:/view\">\n<div class=\"tc-chooser tc-viewswitcher\">\n<$list filter=\"[storyviews[]]\" variable=\"storyview\">\n<$set name=\"cls\" filter=\"[<storyview>prefix{$:/view}]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>>\n<$link to=<<storyview>>><$transclude tiddler=<<icon>>/><$text text=<<storyview>>/></$link>\n</div>\n</$set>\n</$list>\n</div>\n</$linkcatcher>"
+ }
+ }
+}
+tc-btn-invisible
+tc-btn-boxed
+tc-btn-rounded
+TiddlyWiki created by Jeremy Ruston, (jeremy [at] jermolene [dot] com)
+
+Copyright (c) 2004-2007, Jeremy Ruston
+Copyright (c) 2007-2020, UnaMesa Association
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+<svg width="22pt" height="22pt" viewBox="0 0 128 128"><path d="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" fill-rule="evenodd"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-add-comment tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M56 56H36a8 8 0 100 16h20v20a8 8 0 1016 0V72h20a8 8 0 100-16H72V36a8 8 0 10-16 0v20zm-12.595 58.362c-6.683 7.659-20.297 12.903-36.006 12.903-2.196 0-4.35-.102-6.451-.3 9.652-3.836 17.356-12.24 21.01-22.874C8.516 94.28 0 79.734 0 63.5 0 33.953 28.206 10 63 10s63 23.953 63 53.5S97.794 117 63 117c-6.841 0-13.428-.926-19.595-2.638z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-advanced-search-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M74.565 87.985A47.776 47.776 0 0148 96C21.49 96 0 74.51 0 48S21.49 0 48 0s48 21.49 48 48c0 9.854-2.97 19.015-8.062 26.636l34.347 34.347a9.443 9.443 0 010 13.36 9.446 9.446 0 01-13.36 0l-34.36-34.358zM48 80c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32z"/><circle cx="48" cy="48" r="8"/><circle cx="28" cy="48" r="8"/><circle cx="68" cy="48" r="8"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-auto-height tc-image-button" viewBox="0 0 128 128"><path d="M67.987 114.356l-.029-14.477a4 4 0 00-2.067-3.494l-15.966-8.813-1.933 7.502H79.9c4.222 0 5.564-5.693 1.786-7.58L49.797 71.572 48.01 79.15h31.982c4.217 0 5.564-5.682 1.795-7.575L49.805 55.517l-1.795 7.575h31.982c4.212 0 5.563-5.67 1.805-7.57l-16.034-8.105 2.195 3.57V35.614l9.214 9.213a4 4 0 105.656-5.656l-16-16a4 4 0 00-5.656 0l-16 16a4 4 0 105.656 5.656l9.13-9.13v15.288a4 4 0 002.195 3.57l16.035 8.106 1.804-7.57H48.01c-4.217 0-5.564 5.682-1.795 7.574l31.982 16.059 1.795-7.575H48.01c-4.222 0-5.564 5.693-1.787 7.579l31.89 15.923 1.787-7.578H47.992c-4.133 0-5.552 5.504-1.933 7.501l15.966 8.813-2.067-3.494.029 14.436-9.159-9.158a4 4 0 00-5.656 5.656l16 16a4 4 0 005.656 0l16-16a4 4 0 10-5.656-5.656l-9.185 9.184zM16 20h96a4 4 0 100-8H16a4 4 0 100 8z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-blank tc-image-button" viewBox="0 0 128 128"/>
+<svg width="22pt" height="22pt" class="tc-image-bold tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M41.146 51.81V21.87h26.353c2.51 0 4.93.21 7.26.628 2.33.418 4.392 1.165 6.185 2.24 1.793 1.076 3.227 2.57 4.302 4.482 1.076 1.913 1.614 4.363 1.614 7.35 0 5.379-1.613 9.263-4.84 11.653-3.227 2.39-7.35 3.586-12.37 3.586H41.146zM13 0v128h62.028a65.45 65.45 0 0016.762-2.151c5.438-1.434 10.278-3.645 14.52-6.633 4.244-2.988 7.62-6.842 10.13-11.563 2.51-4.721 3.764-10.308 3.764-16.762 0-8.008-1.942-14.85-5.826-20.527-3.884-5.677-9.77-9.65-17.658-11.921 5.737-2.75 10.069-6.275 12.997-10.577 2.928-4.303 4.392-9.681 4.392-16.135 0-5.976-.986-10.995-2.958-15.059-1.972-4.063-4.75-7.32-8.336-9.77-3.585-2.45-7.888-4.213-12.907-5.289C84.888.538 79.33 0 73.235 0H13zm28.146 106.129V70.992H71.8c6.095 0 10.995 1.404 14.7 4.212 3.705 2.81 5.558 7.5 5.558 14.073 0 3.347-.568 6.096-1.703 8.247-1.136 2.151-2.66 3.854-4.572 5.11-1.912 1.254-4.123 2.15-6.633 2.688-2.51.538-5.139.807-7.888.807H41.146z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-cancel-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M64 76.314l-16.97 16.97a7.999 7.999 0 01-11.314 0c-3.118-3.118-3.124-8.19 0-11.313L52.686 65l-16.97-16.97a7.999 7.999 0 010-11.314c3.118-3.118 8.19-3.124 11.313 0L64 53.686l16.97-16.97a7.999 7.999 0 0111.314 0c3.118 3.118 3.124 8.19 0 11.313L75.314 65l16.97 16.97a7.999 7.999 0 010 11.314c-3.118 3.118-8.19 3.124-11.313 0L64 76.314zM64 129c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 1 0 29.654 0 65c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 17 64 17 16 38.49 16 65s21.49 48 48 48z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-chevron-down tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M64.053 85.456a7.889 7.889 0 01-5.6-2.316L2.473 27.16a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0L64.05 66.344l50.382-50.382a7.92 7.92 0 0111.195 0c3.085 3.086 3.092 8.105 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.317z"/><path d="M64.053 124.069a7.889 7.889 0 01-5.6-2.316l-55.98-55.98a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0l50.382 50.382 50.382-50.382a7.92 7.92 0 0111.195 0c3.085 3.086 3.092 8.104 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.316z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-chevron-left tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M47.544 64.053c0-2.027.77-4.054 2.316-5.6l55.98-55.98a7.92 7.92 0 0111.196 0c3.085 3.086 3.092 8.105 0 11.196L66.656 64.05l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.085-8.105 3.092-11.196 0l-55.98-55.98a7.892 7.892 0 01-2.317-5.595z"/><path d="M8.931 64.053c0-2.027.77-4.054 2.316-5.6l55.98-55.98a7.92 7.92 0 0111.196 0c3.085 3.086 3.092 8.105 0 11.196L28.041 64.05l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.085-8.104 3.092-11.196 0l-55.98-55.98a7.892 7.892 0 01-2.316-5.595z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-chevron-right tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M83.456 63.947c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196L64.344 63.95 13.963 13.567a7.92 7.92 0 010-11.195c3.086-3.085 8.105-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.317 5.595z"/><path d="M122.069 63.947c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l50.382-50.382-50.382-50.382a7.92 7.92 0 010-11.195c3.086-3.085 8.104-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.316 5.595z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-chevron-up tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M63.947 44.544c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.105 3.092-11.196 0L63.95 63.656l-50.382 50.382a7.92 7.92 0 01-11.195 0c-3.085-3.086-3.092-8.105 0-11.196l55.98-55.98a7.892 7.892 0 015.595-2.317z"/><path d="M63.947 5.931c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.105 3.092-11.196 0L63.95 25.041 13.567 75.423a7.92 7.92 0 01-11.195 0c-3.085-3.086-3.092-8.104 0-11.196l55.98-55.98a7.892 7.892 0 015.595-2.316z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-clone-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M32.265 96v24.002A7.996 7.996 0 0040.263 128h79.74a7.996 7.996 0 007.997-7.998v-79.74a7.996 7.996 0 00-7.998-7.997H96V48h12.859a2.99 2.99 0 012.994 2.994v57.865a2.99 2.99 0 01-2.994 2.994H50.994A2.99 2.99 0 0148 108.859V96H32.265z"/><path d="M40 56h-7.993C27.588 56 24 52.418 24 48c0-4.41 3.585-8 8.007-8H40v-7.993C40 27.588 43.582 24 48 24c4.41 0 8 3.585 8 8.007V40h7.993C68.412 40 72 43.582 72 48c0 4.41-3.585 8-8.007 8H56v7.993C56 68.412 52.418 72 48 72c-4.41 0-8-3.585-8-8.007V56zM8 0C3.58 0 0 3.588 0 8v80c0 4.419 3.588 8 8 8h80c4.419 0 8-3.588 8-8V8c0-4.419-3.588-8-8-8H8zM19 16A2.997 2.997 0 0016 19.001v57.998A2.997 2.997 0 0019.001 80h57.998A2.997 2.997 0 0080 76.999V19.001A2.997 2.997 0 0076.999 16H19.001z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-close-all-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M28 111.314l-14.144 14.143a8 8 0 01-11.313-11.313L16.686 100 2.543 85.856a8 8 0 0111.313-11.313L28 88.686l14.144-14.143a8 8 0 0111.313 11.313L39.314 100l14.143 14.144a8 8 0 01-11.313 11.313L28 111.314zM28 39.314L13.856 53.457A8 8 0 012.543 42.144L16.686 28 2.543 13.856A8 8 0 0113.856 2.543L28 16.686 42.144 2.543a8 8 0 0111.313 11.313L39.314 28l14.143 14.144a8 8 0 01-11.313 11.313L28 39.314zM100 39.314L85.856 53.457a8 8 0 01-11.313-11.313L88.686 28 74.543 13.856A8 8 0 0185.856 2.543L100 16.686l14.144-14.143a8 8 0 0111.313 11.313L111.314 28l14.143 14.144a8 8 0 01-11.313 11.313L100 39.314zM100 111.314l-14.144 14.143a8 8 0 01-11.313-11.313L88.686 100 74.543 85.856a8 8 0 0111.313-11.313L100 88.686l14.144-14.143a8 8 0 0111.313 11.313L111.314 100l14.143 14.144a8 8 0 01-11.313 11.313L100 111.314z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-close-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M65.086 75.41l-50.113 50.113c-3.121 3.121-8.192 3.126-11.316.002-3.118-3.118-3.123-8.19.002-11.316l50.114-50.114L3.659 13.982C.538 10.86.533 5.79 3.657 2.666c3.118-3.118 8.19-3.123 11.316.002l50.113 50.114L115.2 2.668c3.121-3.121 8.192-3.126 11.316-.002 3.118 3.118 3.123 8.19-.002 11.316L76.4 64.095l50.114 50.114c3.121 3.121 3.126 8.192.002 11.316-3.118 3.118-8.19 3.123-11.316-.002L65.086 75.409z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-close-others-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48zm0-16c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32zm0-16c8.837 0 16-7.163 16-16s-7.163-16-16-16-16 7.163-16 16 7.163 16 16 16z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-copy-clipboard tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><rect width="33" height="8" x="40" y="40" rx="4"/><rect width="17" height="8" x="40" y="82" rx="4"/><rect width="17" height="8" x="40" y="54" rx="4"/><rect width="33" height="8" x="40" y="96" rx="4"/><rect width="12" height="8" x="40" y="68" rx="4"/><path d="M40 16H24c-4.419 0-8 3.59-8 8a8.031 8.031 0 000 .01v95.98a8.03 8.03 0 000 .01c0 4.41 3.581 8 8 8h80a7.975 7.975 0 005.652-2.34 7.958 7.958 0 002.348-5.652v-16.016c0-4.414-3.582-7.992-8-7.992-4.41 0-8 3.578-8 7.992V112H32V32h64v8.008C96 44.422 99.582 48 104 48c4.41 0 8-3.578 8-7.992V23.992a7.963 7.963 0 00-2.343-5.651A7.995 7.995 0 00104.001 16H88c0-4.41-3.585-8-8.007-8H48.007C43.588 8 40 11.582 40 16zm4-1.004A4.001 4.001 0 0148 11h32c2.21 0 4 1.797 4 3.996v4.008A4.001 4.001 0 0180 23H48c-2.21 0-4-1.797-4-3.996v-4.008z"/><rect width="66" height="16" x="62" y="64" rx="8"/><path d="M84.657 82.343l-16-16v11.314l16-16a8 8 0 10-11.314-11.314l-16 16a8 8 0 000 11.314l16 16a8 8 0 1011.314-11.314z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-delete-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd" transform="translate(12)"><rect width="105" height="16" y="11" rx="8"/><rect width="48" height="16" x="28" rx="8"/><rect width="16" height="112" x="8" y="16" rx="8"/><rect width="88" height="16" x="8" y="112" rx="8"/><rect width="16" height="112" x="80" y="16" rx="8"/><rect width="16" height="112" x="56" y="16" rx="8"/><rect width="16" height="112" x="32" y="16" rx="8"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-done-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M42.26 111.032c-2.051.001-4.103-.78-5.668-2.345L2.662 74.758a8 8 0 01-.005-11.32c3.118-3.117 8.192-3.12 11.32.007l28.278 28.278 72.124-72.124a8.002 8.002 0 0111.314-.001c3.118 3.118 3.124 8.19 0 11.315l-77.78 77.78a7.978 7.978 0 01-5.658 2.343z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-down-arrow tc-image-button" viewBox="0 0 128 128"><path d="M64.177 100.069a7.889 7.889 0 01-5.6-2.316l-55.98-55.98a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0l50.382 50.382 50.382-50.382a7.92 7.92 0 0111.195 0c3.086 3.086 3.092 8.104 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.316z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-download-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48z" class="tc-image-download-button-ring"/><path d="M34.35 66.43l26.892 27.205a4.57 4.57 0 006.516 0L94.65 66.43a4.7 4.7 0 000-6.593 4.581 4.581 0 00-3.258-1.365h-8.46c-2.545 0-4.608-2.087-4.608-4.661v-15.15c0-2.575-2.063-4.662-4.608-4.662H55.284c-2.545 0-4.608 2.087-4.608 4.662v15.15c0 2.574-2.063 4.661-4.608 4.661h-8.46c-2.545 0-4.608 2.087-4.608 4.662a4.69 4.69 0 001.35 3.296z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-edit-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M95.627 10.059l-5.656 5.657 11.313 11.313 5.657-5.656-11.314-11.314zm5.657-5.657l1.966-1.966c3.123-3.122 8.194-3.129 11.319-.005 3.117 3.118 3.122 8.192-.005 11.32l-1.966 1.965-11.314-11.314zm-16.97 16.97l-60.25 60.25a8.12 8.12 0 00-.322.342c-.1.087-.198.179-.295.275-5.735 5.735-10.702 22.016-10.702 22.016s16.405-5.09 22.016-10.702c.095-.096.186-.193.272-.292a8.12 8.12 0 00.345-.325l60.25-60.25-11.314-11.313zM35.171 124.19c6.788-.577 13.898-2.272 23.689-5.348 1.825-.573 3.57-1.136 6.336-2.04 16-5.226 21.877-6.807 28.745-7.146 8.358-.413 13.854 2.13 17.58 8.699a4 4 0 006.959-3.946c-5.334-9.406-13.745-13.296-24.933-12.744-7.875.39-14.057 2.052-30.835 7.533-2.739.894-4.46 1.45-6.25 2.012-19.46 6.112-30.77 7.072-39.597 1.747a4 4 0 10-4.132 6.85c6.333 3.82 13.754 5.12 22.438 4.383z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-erase tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M60.087 127.996l63.015-63.015c6.535-6.535 6.528-17.115-.003-23.646L99.466 17.702c-6.539-6.538-17.117-6.532-23.646-.003L4.898 88.62c-6.535 6.534-6.528 17.115.003 23.646l15.73 15.73h39.456zm-34.95-7.313l-14.324-14.325c-3.267-3.268-3.268-8.564-.008-11.824L46.269 59.07l35.462 35.462-26.15 26.15H25.137z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-excise tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M56 107.314l-2.343 2.343a8 8 0 11-11.314-11.314l16-16a8 8 0 0111.314 0l16 16a8 8 0 11-11.314 11.314L72 107.314v14.284c0 3.536-3.582 6.402-8 6.402s-8-2.866-8-6.402v-14.284zM0 40.007C0 35.585 3.59 32 8 32c4.418 0 8 3.588 8 8.007v31.986C16 76.415 12.41 80 8 80c-4.418 0-8-3.588-8-8.007V40.007zm32 0C32 35.585 35.59 32 40 32c4.418 0 8 3.588 8 8.007v31.986C48 76.415 44.41 80 40 80c-4.418 0-8-3.588-8-8.007V40.007zm48 0C80 35.585 83.59 32 88 32c4.418 0 8 3.588 8 8.007v31.986C96 76.415 92.41 80 88 80c-4.418 0-8-3.588-8-8.007V40.007zm-24-32C56 3.585 59.59 0 64 0c4.418 0 8 3.588 8 8.007v31.986C72 44.415 68.41 48 64 48c-4.418 0-8-3.588-8-8.007V8.007zm56 32c0-4.422 3.59-8.007 8-8.007 4.418 0 8 3.588 8 8.007v31.986c0 4.422-3.59 8.007-8 8.007-4.418 0-8-3.588-8-8.007V40.007z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-export-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M8.003 128H119.993a7.984 7.984 0 005.664-2.349v.007A7.975 7.975 0 00128 120V56c0-4.418-3.59-8-8-8-4.418 0-8 3.58-8 8v56H16V56c0-4.418-3.59-8-8-8-4.418 0-8 3.58-8 8v64c0 4.418 3.59 8 8 8h.003zm48.62-100.689l-8.965 8.966c-3.125 3.125-8.195 3.13-11.319.005-3.118-3.118-3.122-8.192.005-11.319L58.962 2.346A7.986 7.986 0 0164.625 0l-.006.002c2.05-.001 4.102.78 5.666 2.344l22.618 22.617c3.124 3.125 3.129 8.195.005 11.319-3.118 3.118-8.192 3.122-11.319-.005l-8.965-8.966v61.256c0 4.411-3.582 8-8 8-4.41 0-8-3.582-8-8V27.311z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-cui-cib-facebook tc-image-button" viewBox="0 0 32 32"><path style="fill:#000000;" d="M32 16c0-8.839-7.167-16-16-16-8.839 0-16 7.161-16 16 0 7.984 5.849 14.604 13.5 15.803v-11.177h-4.063v-4.625h4.063v-3.527c0-4.009 2.385-6.223 6.041-6.223 1.751 0 3.584 0.312 3.584 0.312v3.937h-2.021c-1.984 0-2.604 1.235-2.604 2.5v3h4.437l-0.713 4.625h-3.724v11.177c7.645-1.199 13.5-7.819 13.5-15.803z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-file tc-image-button" viewBox="0 0 128 128"><path d="M111.968 30.5H112V120a8 8 0 01-8 8H24a8 8 0 01-8-8V8a8 8 0 018-8h57v.02a7.978 7.978 0 015.998 2.337l22.627 22.627a7.975 7.975 0 012.343 5.516zM81 8H24v112h80V30.5H89c-4.418 0-8-3.578-8-8V8z"/><rect width="64" height="8" x="32" y="36" rx="4"/><rect width="64" height="8" x="32" y="52" rx="4"/><rect width="64" height="8" x="32" y="68" rx="4"/><rect width="64" height="8" x="32" y="84" rx="4"/><rect width="64" height="8" x="32" y="100" rx="4"/><rect width="40" height="8" x="32" y="20" rx="4"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-fixed-height tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M60 35.657l-9.172 9.171a4 4 0 11-5.656-5.656l16-16a4 4 0 015.656 0l16 16a4 4 0 01-5.656 5.656L68 35.657v57.686l9.172-9.171a4 4 0 115.656 5.656l-16 16a4 4 0 01-5.656 0l-16-16a4 4 0 115.656-5.656L60 93.343V35.657zM16 116h96a4 4 0 100-8H16a4 4 0 100 8zm0-96h96a4 4 0 100-8H16a4 4 0 100 8z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-fold-all tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><rect width="128" height="16" rx="8"/><rect width="128" height="16" y="64" rx="8"/><path d="M64.03 20.004c-2.05 0-4.102.78-5.667 2.344L35.746 44.966c-3.125 3.124-3.13 8.194-.005 11.318 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.965 16.966 16.965c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.191-.005-11.318L69.687 22.348a7.986 7.986 0 00-5.663-2.346zM64.03 85.002c-2.05-.001-4.102.78-5.667 2.344l-22.617 22.617c-3.125 3.125-3.13 8.195-.005 11.319 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.966 16.966 16.966c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.192-.005-11.319L69.687 87.346A7.986 7.986 0 0064.024 85z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-fold tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><rect width="128" height="16" rx="8"/><path d="M64.03 25.004c-2.05 0-4.102.78-5.667 2.344L35.746 49.966c-3.125 3.124-3.13 8.194-.005 11.318 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.965 16.966 16.965c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.191-.005-11.318L69.687 27.348a7.986 7.986 0 00-5.663-2.346zM64.005 67.379c-2.05 0-4.102.78-5.666 2.344L35.722 92.34c-3.125 3.125-3.13 8.195-.006 11.32 3.118 3.117 8.192 3.121 11.32-.006L64 86.69l16.965 16.965c3.125 3.125 8.195 3.13 11.319.005 3.118-3.118 3.122-8.192-.005-11.319L69.663 69.723A7.986 7.986 0 0064 67.377z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-fold-others tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><rect width="128" height="16" y="56.031" rx="8"/><path d="M86.632 79.976c-2.05 0-4.102.78-5.666 2.345L64 99.286 47.034 82.321a7.986 7.986 0 00-5.662-2.346l.005.001c-2.05 0-4.102.78-5.666 2.345l-22.618 22.617c-3.124 3.125-3.129 8.195-.005 11.319 3.118 3.118 8.192 3.122 11.319-.005l16.966-16.966 16.965 16.966a7.986 7.986 0 005.663 2.346l-.005-.002c2.05 0 4.102-.78 5.666-2.344l16.965-16.966 16.966 16.966c3.125 3.124 8.194 3.129 11.319.005 3.118-3.118 3.122-8.192-.005-11.319L92.289 82.321a7.986 7.986 0 00-5.663-2.346zM86.7 48.024c-2.05 0-4.102-.78-5.666-2.345L64.07 28.714 47.103 45.679a7.986 7.986 0 01-5.663 2.346l.005-.001c-2.05 0-4.101-.78-5.666-2.345L13.162 23.062c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L41.44 28.714l16.966-16.966a7.986 7.986 0 015.662-2.346l-.005.002c2.05 0 4.102.78 5.666 2.344l16.966 16.966 16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L92.358 45.679a7.986 7.986 0 01-5.663 2.346z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-folder tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M55.694 128H8C3.58 128 0 124.414 0 119.996V48.004C0 43.584 3.584 40 7.999 40H16v-8c0-4.418 3.578-8 8-8h32a8 8 0 018 8v8h40.001c4.418 0 7.999 3.586 7.999 8.004V59.83l-8-.082v-7.749A4 4 0 0099.997 48H56V36c0-2.21-1.793-4-4.004-4H28.004A4 4 0 0024 36v12H12.003A4 4 0 008 52v64a4 4 0 004.003 4h46.76l-3.069 8z"/><path d="M23.873 55.5h96.003c4.417 0 7.004 4.053 5.774 9.063l-13.344 54.374c-1.228 5.005-5.808 9.063-10.223 9.063H6.08c-4.417 0-7.003-4.053-5.774-9.063L13.65 64.563c1.228-5.005 5.808-9.063 10.223-9.063zm1.78 8.5h87.994c2.211 0 3.504 2.093 2.891 4.666l-11.12 46.668c-.614 2.577-2.902 4.666-5.115 4.666H12.31c-2.211 0-3.504-2.093-2.891-4.666l11.12-46.668C21.152 66.09 23.44 64 25.653 64z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-full-screen-button tc-image-button" viewBox="0 0 128 128"><path d="M0 8a8 8 0 018-8h32a8 8 0 110 16H16v24a8 8 0 11-16 0V8zM128 120a8 8 0 01-8 8H88a8 8 0 110-16h24V88a8 8 0 1116 0v32zM8 128a8 8 0 01-8-8V88a8 8 0 1116 0v24h24a8 8 0 110 16H8zM120 0a8 8 0 018 8v32a8 8 0 11-16 0V16H88a8 8 0 110-16h32z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-github tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M63.938 1.607c-35.336 0-63.994 28.69-63.994 64.084 0 28.312 18.336 52.329 43.768 60.802 3.202.59 4.37-1.388 4.37-3.088 0-1.518-.056-5.55-.087-10.897-17.802 3.871-21.558-8.591-21.558-8.591-2.911-7.404-7.108-9.375-7.108-9.375-5.81-3.973.44-3.895.44-3.895 6.424.453 9.803 6.606 9.803 6.606 5.709 9.791 14.981 6.963 18.627 5.322.582-4.138 2.236-6.963 4.063-8.564-14.211-1.617-29.153-7.117-29.153-31.672 0-6.995 2.495-12.718 6.589-17.195-.66-1.621-2.856-8.14.629-16.96 0 0 5.37-1.722 17.597 6.57 5.104-1.424 10.58-2.132 16.022-2.16 5.438.028 10.91.736 16.022 2.16 12.22-8.292 17.582-6.57 17.582-6.57 3.493 8.82 1.297 15.339.64 16.96 4.102 4.477 6.578 10.2 6.578 17.195 0 24.618-14.966 30.035-29.22 31.62 2.295 1.98 4.342 5.89 4.342 11.87 0 8.564-.079 15.476-.079 17.576 0 1.715 1.155 3.71 4.4 3.084 25.413-8.493 43.733-32.494 43.733-60.798 0-35.394-28.657-64.084-64.006-64.084"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-gitter tc-image-button" viewBox="0 0 18 25"><path d="M15 5h2v10h-2zM10 5h2v20h-2zM5 5h2v20H5zM0 0h2v15H0z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-globe tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M72.811 37.128v2.554c0 2.196.978 6.881 0 8.832-1.466 2.928-4.65 3.54-6.394 5.867-1.182 1.577-4.618 10.601-3.69 12.92 3.969 9.922 11.534 3.187 17.962 9.293.864.821 2.887 2.273 3.296 3.296 3.29 8.223-7.576 15.009 3.757 26.3 1.245 1.24 3.813-3.817 4.079-4.614.852-2.563 6.725-5.45 9.088-7.053 2.02-1.37 4.873-2.667 6.328-4.745 2.27-3.244 1.48-7.514 3.098-10.745 2.139-4.274 3.828-9.635 5.998-13.966 3.898-7.781 4.721 2.093 5.067 2.439.358.357 1.011 0 1.517 0 .094 0 1.447.099 1.516 0 .65-.935-1.043-17.92-1.318-19.297-1.404-7.01-6.944-15.781-11.865-20.5-6.274-6.015-7.09-16.197-18.259-14.954-.204.022-5.084 10.148-7.777 13.512-3.728 4.657-2.47-4.153-6.526-4.153-.081 0-1.183-.103-1.253 0-.586.88-1.44 3.896-2.306 4.417-.265.16-1.722-.239-1.846 0-2.243 4.3 8.256 2.212 5.792 7.952-2.352 5.481-6.328-1.997-6.328 8.56M44.467 7.01c9.685 6.13.682 12.198 2.694 16.215 1.655 3.303 4.241 5.395 1.714 9.814-2.063 3.608-6.87 3.966-9.623 6.723-3.04 3.044-5.464 8.94-6.79 12.911-1.617 4.843 14.547 6.866 12.063 11.008-1.386 2.311-6.746 1.466-8.437.198-1.165-.873-3.593-.546-4.417-1.78-2.613-3.915-2.26-8.023-3.625-12.128-.938-2.822-6.313-2.12-7.844-.593-.523.522-.33 1.792-.33 2.505 0 5.285 7.12 3.316 7.12 6.46 0 14.636 3.927 6.534 11.14 11.336 10.036 6.683 7.844 7.303 14.946 14.404 3.673 3.673 7.741 3.686 9.425 9.294 1.602 5.331-9.327 5.339-11.716 7.448-1.123.991-2.813 4.146-4.219 4.615-1.792.598-3.234.496-4.944 1.78-2.427 1.82-3.9 4.932-4.02 4.81-2.148-2.147-3.52-15.479-3.89-18.257-.588-4.42-5.59-5.54-6.986-9.03-1.57-3.927 1.524-9.52-1.129-13.761-6.52-10.424-11.821-14.5-15.35-26.292-.942-3.148 3.342-6.529 4.877-8.833 1.877-2.816 2.662-5.854 4.746-8.635C22.147 24.19 40.855 9.461 43.857 8.635l.61-1.625z"/><path d="M64 126c34.242 0 62-27.758 62-62 0-34.242-27.758-62-62-62C29.758 2 2 29.758 2 64c0 34.242 27.758 62 62 62zm0-6c30.928 0 56-25.072 56-56S94.928 8 64 8 8 33.072 8 64s25.072 56 56 56z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-heading-1 tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M14 30h13.25v30.104H61.7V30h13.25v75.684H61.7V71.552H27.25v34.132H14V30zm70.335 13.78c2.544 0 5.017-.212 7.42-.636 2.403-.424 4.576-1.13 6.52-2.12 1.942-.99 3.603-2.261 4.981-3.816 1.378-1.555 2.28-3.463 2.703-5.724h9.858v74.2h-13.25V53.32H84.335v-9.54z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-heading-2 tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm119.52 75.684H74.85c.07-6.148 1.555-11.519 4.452-16.112 2.897-4.593 6.855-8.586 11.872-11.978a133.725 133.725 0 017.526-5.141 59.6 59.6 0 007.208-5.353c2.19-1.908 3.993-3.975 5.406-6.201 1.413-2.226 2.155-4.788 2.226-7.685 0-1.343-.159-2.774-.477-4.293a11.357 11.357 0 00-1.855-4.24c-.919-1.307-2.19-2.403-3.816-3.286-1.625-.883-3.745-1.325-6.36-1.325-2.403 0-4.399.477-5.989 1.431-1.59.954-2.862 2.261-3.816 3.922-.954 1.66-1.66 3.622-2.12 5.883-.46 2.261-.724 4.7-.795 7.314H76.23c0-4.099.548-7.897 1.643-11.395 1.095-3.498 2.738-6.519 4.93-9.063 2.19-2.544 4.857-4.54 8.002-5.989C93.95 30.724 97.606 30 101.775 30c4.523 0 8.303.742 11.342 2.226 3.039 1.484 5.494 3.357 7.367 5.618 1.873 2.261 3.198 4.717 3.975 7.367.777 2.65 1.166 5.176 1.166 7.579 0 2.968-.46 5.653-1.378 8.056a25.942 25.942 0 01-3.71 6.625 37.5 37.5 0 01-5.3 5.565 79.468 79.468 0 01-6.148 4.77 165.627 165.627 0 01-6.36 4.24 94.28 94.28 0 00-5.883 4.028c-1.802 1.343-3.374 2.738-4.717 4.187-1.343 1.449-2.261 2.986-2.756 4.611h36.146v10.812z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-heading-3 tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm88.885 32.224c1.979.07 3.957-.07 5.936-.424 1.979-.353 3.745-.972 5.3-1.855a10.365 10.365 0 003.763-3.657c.954-1.555 1.431-3.463 1.431-5.724 0-3.18-1.078-5.724-3.233-7.632-2.155-1.908-4.929-2.862-8.32-2.862-2.12 0-3.958.424-5.513 1.272a11.318 11.318 0 00-3.869 3.445c-1.025 1.449-1.784 3.074-2.279 4.876a18.335 18.335 0 00-.636 5.565H75.381c.141-3.604.813-6.943 2.014-10.017 1.201-3.074 2.844-5.742 4.93-8.003 2.084-2.261 4.61-4.028 7.578-5.3C92.871 30.636 96.228 30 99.973 30a29.2 29.2 0 018.533 1.272c2.791.848 5.3 2.085 7.526 3.71s4.01 3.692 5.353 6.201c1.343 2.509 2.014 5.388 2.014 8.639 0 3.745-.848 7.014-2.544 9.805-1.696 2.791-4.346 4.823-7.95 6.095v.212c4.24.848 7.544 2.95 9.911 6.307s3.551 7.438 3.551 12.243c0 3.533-.707 6.696-2.12 9.487a21.538 21.538 0 01-5.724 7.102c-2.403 1.943-5.194 3.445-8.374 4.505-3.18 1.06-6.537 1.59-10.07 1.59-4.31 0-8.074-.618-11.289-1.855s-5.9-2.986-8.056-5.247c-2.155-2.261-3.798-4.982-4.929-8.162-1.13-3.18-1.731-6.713-1.802-10.6h12.084c-.141 4.523.972 8.286 3.34 11.289 2.366 3.003 5.917 4.505 10.652 4.505 4.028 0 7.402-1.148 10.123-3.445 2.72-2.297 4.081-5.565 4.081-9.805 0-2.897-.565-5.194-1.696-6.89a10.97 10.97 0 00-4.452-3.869c-1.837-.883-3.904-1.431-6.2-1.643a58.067 58.067 0 00-7.05-.212v-9.01z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-heading-4 tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M8 30h13.25v30.104H55.7V30h13.25v75.684H55.7V71.552H21.25v34.132H8V30zm76.59 48.548h22.471V45.9h-.212L84.59 78.548zm43.46 9.54h-9.54v17.596H107.06V88.088h-31.8V76.11l31.8-44.626h11.448v47.064h9.54v9.54z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-heading-5 tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm77.755 1.484h38.372v10.812H92.765L88.95 61.164l.212.212c1.625-1.837 3.692-3.233 6.201-4.187 2.509-.954 5-1.431 7.473-1.431 3.675 0 6.96.618 9.858 1.855 2.897 1.237 5.335 2.968 7.314 5.194s3.48 4.858 4.505 7.897c1.025 3.039 1.537 6.325 1.537 9.858 0 2.968-.477 6.024-1.43 9.169a25.161 25.161 0 01-4.559 8.586c-2.085 2.58-4.752 4.7-8.003 6.36-3.25 1.66-7.137 2.491-11.66 2.491-3.604 0-6.943-.477-10.017-1.431-3.074-.954-5.777-2.385-8.109-4.293-2.332-1.908-4.187-4.258-5.565-7.049-1.378-2.791-2.138-6.06-2.279-9.805h12.084c.353 4.028 1.731 7.12 4.134 9.275 2.403 2.155 5.583 3.233 9.54 3.233 2.544 0 4.7-.424 6.466-1.272 1.767-.848 3.198-2.014 4.293-3.498 1.095-1.484 1.873-3.215 2.332-5.194.46-1.979.69-4.099.69-6.36 0-2.05-.284-4.01-.849-5.883-.565-1.873-1.413-3.516-2.544-4.929-1.13-1.413-2.597-2.544-4.399-3.392-1.802-.848-3.904-1.272-6.307-1.272-2.544 0-4.929.477-7.155 1.431-2.226.954-3.834 2.738-4.823 5.353H75.805l7.95-40.598z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-heading-6 tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm106.587 20.246c-.283-3.039-1.36-5.494-3.233-7.367-1.873-1.873-4.399-2.809-7.579-2.809-2.19 0-4.08.406-5.67 1.219a12.435 12.435 0 00-4.029 3.233c-1.095 1.343-1.979 2.88-2.65 4.611a37.696 37.696 0 00-1.643 5.459 46.08 46.08 0 00-.9 5.671 722.213 722.213 0 00-.478 5.247l.212.212c1.625-2.968 3.87-5.176 6.731-6.625 2.862-1.449 5.954-2.173 9.275-2.173 3.675 0 6.96.636 9.858 1.908 2.897 1.272 5.353 3.021 7.367 5.247 2.014 2.226 3.551 4.858 4.611 7.897 1.06 3.039 1.59 6.325 1.59 9.858 0 3.604-.583 6.943-1.749 10.017-1.166 3.074-2.844 5.76-5.035 8.056-2.19 2.297-4.805 4.081-7.844 5.353-3.039 1.272-6.395 1.908-10.07 1.908-5.441 0-9.91-1.007-13.409-3.021-3.498-2.014-6.254-4.77-8.268-8.268-2.014-3.498-3.41-7.597-4.187-12.296-.777-4.7-1.166-9.77-1.166-15.211 0-4.452.477-8.94 1.431-13.462.954-4.523 2.526-8.639 4.717-12.349 2.19-3.71 5.07-6.731 8.64-9.063C92.676 31.166 97.075 30 102.304 30c2.968 0 5.76.495 8.374 1.484 2.615.99 4.93 2.367 6.943 4.134 2.014 1.767 3.657 3.887 4.93 6.36 1.271 2.473 1.978 5.23 2.12 8.268h-12.085zm-11.66 46.852c2.19 0 4.099-.442 5.724-1.325a12.869 12.869 0 004.081-3.445c1.095-1.413 1.908-3.056 2.438-4.929.53-1.873.795-3.798.795-5.777s-.265-3.887-.795-5.724c-.53-1.837-1.343-3.445-2.438-4.823-1.095-1.378-2.456-2.491-4.08-3.339-1.626-.848-3.534-1.272-5.725-1.272-2.19 0-4.116.406-5.777 1.219-1.66.813-3.056 1.908-4.187 3.286-1.13 1.378-1.979 2.986-2.544 4.823-.565 1.837-.848 3.78-.848 5.83 0 2.05.283 3.993.848 5.83.565 1.837 1.413 3.48 2.544 4.929a12.39 12.39 0 004.187 3.445c1.66.848 3.586 1.272 5.777 1.272z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-help tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M36.055 111.441c-5.24 4.396-15.168 7.362-26.555 7.362-1.635 0-3.24-.06-4.806-.179 7.919-2.64 14.062-8.6 16.367-16.014C8.747 92.845 1.05 78.936 1.05 63.5c0-29.547 28.206-53.5 63-53.5s63 23.953 63 53.5-28.206 53.5-63 53.5c-10.055 0-19.56-2-27.994-5.559zm35.35-33.843a536.471 536.471 0 00.018-4.682 199.02 199.02 0 00-.023-3.042c.008-1.357.595-2.087 3.727-4.235.112-.077 1.085-.74 1.386-.948 3.093-2.133 5.022-3.786 6.762-6.187 2.34-3.228 3.558-7.077 3.558-11.649 0-13.292-9.86-21.952-21.455-21.952-11.103 0-22.499 9.609-24.066 22.295a6.023 6.023 0 1011.956 1.477c.806-6.527 6.972-11.726 12.11-11.726 5.265 0 9.408 3.64 9.408 9.906 0 3.634-1.1 5.153-5.111 7.919l-1.362.93c-2.682 1.84-4.227 3.1-5.7 4.931-2.109 2.62-3.242 5.717-3.258 9.314.013.892.02 1.86.022 2.981a470.766 470.766 0 01-.022 4.943 6.023 6.023 0 1012.046.12l.003-.395zm-6.027 24.499a7.529 7.529 0 100-15.058 7.529 7.529 0 000 15.058z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-home-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M112.985 119.502c.01-.165.015-.331.015-.499V67.568c3.137 2.948 8.076 2.884 11.134-.174a7.999 7.999 0 00-.002-11.316L70.396 2.343A7.978 7.978 0 0064.734 0a7.957 7.957 0 00-5.656 2.343L33 28.42V8.007C33 3.585 29.41 0 25 0c-4.418 0-8 3.59-8 8.007V44.42L5.342 56.078c-3.125 3.125-3.12 8.198-.002 11.316a7.999 7.999 0 0011.316-.003l.344-.343v52.945a8.11 8.11 0 000 .007c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8a8.11 8.11 0 00-.015-.498zM97 112V51.574L64.737 19.31 33 51.048V112h64z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-import-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M114.832 60.436s3.235-3.27 6.921.417c3.686 3.686.231 7.14.231 7.14l-42.153 42.92s-30.765 32.367-58.798 4.333C-7 87.213 24.59 55.623 24.59 55.623L67.363 12.85s22.725-24.6 43.587-3.738c20.862 20.862-3.96 43.09-3.96 43.09l-35.04 35.04S49.903 112.546 36.426 99.07c-13.476-13.477 11.83-35.523 11.83-35.523l35.04-35.04s3.902-3.902 7.78-.023c3.879 3.878.118 7.921.118 7.921l-35.04 35.04s-13.212 13.212-8.872 17.551c4.34 4.34 16.77-9.653 16.77-9.653l35.04-35.04s16.668-14.598 3.966-27.3c-13.893-13.892-27.565 3.702-27.565 3.702l-42.91 42.91s-23.698 23.698-3.658 43.738 43.012-4.385 43.012-4.385l42.895-42.533z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-info-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd" transform="translate(.05)"><path d="M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48z"/><circle cx="64" cy="32" r="8"/><rect width="16" height="56" x="56" y="48" rx="8"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-cui-cib-instagram tc-image-button" viewBox="0 0 32 32"><path style="fill:#000000;" d="M16 0c-4.349 0-4.891 0.021-6.593 0.093-1.709 0.084-2.865 0.349-3.885 0.745-1.052 0.412-1.948 0.959-2.833 1.849-0.891 0.885-1.443 1.781-1.849 2.833-0.396 1.020-0.661 2.176-0.745 3.885-0.077 1.703-0.093 2.244-0.093 6.593s0.021 4.891 0.093 6.593c0.084 1.704 0.349 2.865 0.745 3.885 0.412 1.052 0.959 1.948 1.849 2.833 0.885 0.891 1.781 1.443 2.833 1.849 1.020 0.391 2.181 0.661 3.885 0.745 1.703 0.077 2.244 0.093 6.593 0.093s4.891-0.021 6.593-0.093c1.704-0.084 2.865-0.355 3.885-0.745 1.052-0.412 1.948-0.959 2.833-1.849 0.891-0.885 1.443-1.776 1.849-2.833 0.391-1.020 0.661-2.181 0.745-3.885 0.077-1.703 0.093-2.244 0.093-6.593s-0.021-4.891-0.093-6.593c-0.084-1.704-0.355-2.871-0.745-3.885-0.412-1.052-0.959-1.948-1.849-2.833-0.885-0.891-1.776-1.443-2.833-1.849-1.020-0.396-2.181-0.661-3.885-0.745-1.703-0.077-2.244-0.093-6.593-0.093zM16 2.88c4.271 0 4.781 0.021 6.469 0.093 1.557 0.073 2.405 0.333 2.968 0.553 0.751 0.291 1.276 0.635 1.844 1.197 0.557 0.557 0.901 1.088 1.192 1.839 0.22 0.563 0.48 1.411 0.553 2.968 0.072 1.688 0.093 2.199 0.093 6.469s-0.021 4.781-0.099 6.469c-0.084 1.557-0.344 2.405-0.563 2.968-0.303 0.751-0.641 1.276-1.199 1.844-0.563 0.557-1.099 0.901-1.844 1.192-0.556 0.22-1.416 0.48-2.979 0.553-1.697 0.072-2.197 0.093-6.479 0.093s-4.781-0.021-6.48-0.099c-1.557-0.084-2.416-0.344-2.979-0.563-0.76-0.303-1.281-0.641-1.839-1.199-0.563-0.563-0.921-1.099-1.197-1.844-0.224-0.556-0.48-1.416-0.563-2.979-0.057-1.677-0.084-2.197-0.084-6.459 0-4.26 0.027-4.781 0.084-6.479 0.083-1.563 0.339-2.421 0.563-2.979 0.276-0.761 0.635-1.281 1.197-1.844 0.557-0.557 1.079-0.917 1.839-1.199 0.563-0.219 1.401-0.479 2.964-0.557 1.697-0.061 2.197-0.083 6.473-0.083zM16 7.787c-4.541 0-8.213 3.677-8.213 8.213 0 4.541 3.677 8.213 8.213 8.213 4.541 0 8.213-3.677 8.213-8.213 0-4.541-3.677-8.213-8.213-8.213zM16 21.333c-2.948 0-5.333-2.385-5.333-5.333s2.385-5.333 5.333-5.333c2.948 0 5.333 2.385 5.333 5.333s-2.385 5.333-5.333 5.333zM26.464 7.459c0 1.063-0.865 1.921-1.923 1.921-1.063 0-1.921-0.859-1.921-1.921 0-1.057 0.864-1.917 1.921-1.917s1.923 0.86 1.923 1.917z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-italic tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M66.711 0h22.41L62.408 128H40z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-left-arrow tc-image-button" viewBox="0 0 128 128"><path d="M0 64.177c0-2.026.771-4.054 2.317-5.6l55.98-55.98a7.92 7.92 0 0111.195.001c3.086 3.085 3.092 8.104.001 11.195L19.111 64.175l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.086-8.105 3.092-11.196.001l-55.98-55.98A7.892 7.892 0 010 64.177z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-line-width tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M16 18h96a2 2 0 000-4H16a2 2 0 100 4zm0 17h96a4 4 0 100-8H16a4 4 0 100 8zm0 21h96a6 6 0 000-12H16a6 6 0 100 12zm0 29h96c5.523 0 10-4.477 10-10s-4.477-10-10-10H16c-5.523 0-10 4.477-10 10s4.477 10 10 10zm0 43h96c8.837 0 16-7.163 16-16s-7.163-16-16-16H16c-8.837 0-16 7.163-16 16s7.163 16 16 16z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-link tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M42.263 69.38a31.919 31.919 0 006.841 10.13c12.5 12.5 32.758 12.496 45.255 0l22.627-22.628c12.502-12.501 12.497-32.758 0-45.255-12.5-12.5-32.758-12.496-45.254 0L49.104 34.255a32.333 32.333 0 00-2.666 3.019 36.156 36.156 0 0121.94.334l14.663-14.663c6.25-6.25 16.382-6.254 22.632-.004 6.248 6.249 6.254 16.373-.004 22.631l-22.62 22.62c-6.25 6.25-16.381 6.254-22.631.004a15.93 15.93 0 01-4.428-8.433 11.948 11.948 0 00-7.59 3.48l-6.137 6.137z"/><path d="M86.35 59.234a31.919 31.919 0 00-6.84-10.13c-12.5-12.5-32.758-12.497-45.255 0L11.627 71.732c-12.501 12.5-12.496 32.758 0 45.254 12.5 12.5 32.758 12.497 45.255 0L79.51 94.36a32.333 32.333 0 002.665-3.02 36.156 36.156 0 01-21.94-.333l-14.663 14.663c-6.25 6.25-16.381 6.253-22.63.004-6.25-6.249-6.255-16.374.003-22.632l22.62-22.62c6.25-6.25 16.381-6.253 22.631-.003a15.93 15.93 0 014.428 8.432 11.948 11.948 0 007.59-3.48l6.137-6.136z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-linkify-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="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"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-list tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M87.748 128H23.999c-4.418 0-7.999-3.59-7.999-8.007V8.007C16 3.585 19.588 0 24 0h80c4.419 0 8 3.59 8 8.007V104H91.25c-.965 0-1.84.392-2.473 1.025a3.476 3.476 0 00-1.029 2.476V128zm8-.12l15.88-15.88h-15.88v15.88zM40 15.508A3.502 3.502 0 0143.5 12h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 20h-55a3.498 3.498 0 01-3.5-3.509v-.982zM32 22a6 6 0 100-12 6 6 0 000 12zm8 9.509A3.502 3.502 0 0143.5 28h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 36h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 44h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 52h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 60h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 68h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 76h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 84h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 92h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 100h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.505 3.505 0 0143.497 108h33.006A3.497 3.497 0 0180 111.509v.982A3.505 3.505 0 0176.503 116H43.497A3.497 3.497 0 0140 112.491v-.982zM32 38a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-list-bullet tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M11.636 40.273c6.427 0 11.637-5.21 11.637-11.637C23.273 22.21 18.063 17 11.636 17 5.21 17 0 22.21 0 28.636c0 6.427 5.21 11.637 11.636 11.637zm0 34.909c6.427 0 11.637-5.21 11.637-11.637 0-6.426-5.21-11.636-11.637-11.636C5.21 51.91 0 57.12 0 63.545c0 6.427 5.21 11.637 11.636 11.637zm0 34.909c6.427 0 11.637-5.21 11.637-11.636 0-6.427-5.21-11.637-11.637-11.637C5.21 86.818 0 92.028 0 98.455c0 6.426 5.21 11.636 11.636 11.636zM34.91 22.818H128v11.637H34.91V22.818zm0 34.91H128v11.636H34.91V57.727zm0 34.908H128v11.637H34.91V92.636z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-list-number tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M33.84 22.356H128v11.77H33.84v-11.77zm0 35.31H128v11.77H33.84v-11.77zm0 35.311H128v11.77H33.84v-11.77zM.38 42.631v-2.223h.998c.826 0 1.445-.14 1.858-.42.413-.28.619-.948.619-2.002V22.769c0-1.442-.193-2.336-.58-2.683-.385-.347-1.477-.52-3.275-.52v-2.143c3.502-.147 6.252-.955 8.25-2.423h2.117v22.865c0 .921.15 1.575.449 1.963.3.387.949.58 1.948.58h.998v2.223H.38zm-.3 35.356v-1.902c7.19-6.554 10.786-12.58 10.786-18.08 0-1.562-.326-2.81-.979-3.744-.652-.934-1.524-1.402-2.616-1.402-.893 0-1.655.317-2.287.952-.633.634-.95 1.364-.95 2.192 0 .974.247 1.829.74 2.563.106.16.16.28.16.36 0 .147-.16.28-.48.4-.213.08-.752.308-1.618.681-.839.374-1.358.561-1.558.561-.24 0-.512-.37-.819-1.111A6.2 6.2 0 010 57.064c0-1.949.849-3.544 2.547-4.785 1.698-1.242 3.798-1.862 6.302-1.862 2.463 0 4.53.67 6.202 2.012 1.67 1.341 2.506 3.093 2.506 5.256a8.644 8.644 0 01-.849 3.724c-.566 1.201-1.92 3.053-4.064 5.556a165.471 165.471 0 01-6.272 6.938h11.445l-1.019 5.726h-2.117c.08-.28.12-.534.12-.76 0-.388-.1-.631-.3-.731-.2-.1-.599-.15-1.198-.15H.08zm12.124 19.207c1.745.04 3.236.637 4.474 1.792 1.239 1.154 1.858 2.773 1.858 4.855 0 2.99-1.132 5.393-3.396 7.208-2.263 1.815-5 2.723-8.209 2.723-2.01 0-3.669-.384-4.974-1.151C.652 111.853 0 110.849 0 109.607c0-.774.27-1.398.809-1.872.54-.474 1.128-.71 1.768-.71.639 0 1.162.2 1.568.6.406.4.782 1.055 1.128 1.962.466 1.268 1.239 1.902 2.317 1.902 1.265 0 2.287-.477 3.066-1.431.78-.955 1.169-2.686 1.169-5.196 0-1.709-.12-3.023-.36-3.944-.24-.921-.792-1.382-1.658-1.382-.586 0-1.185.307-1.797.921-.493.494-.932.741-1.319.741-.333 0-.602-.147-.809-.44-.206-.294-.31-.574-.31-.841 0-.32.104-.594.31-.821.207-.227.69-.594 1.449-1.102 2.876-1.922 4.314-4.017 4.314-6.287 0-1.188-.306-2.092-.919-2.713a3.001 3.001 0 00-2.217-.93c-.799 0-1.525.263-2.177.79-.653.528-.979 1.158-.979 1.892 0 .641.253 1.235.76 1.782.172.2.259.367.259.5 0 .121-.57.428-1.708.922-1.139.494-1.854.74-2.147.74-.413 0-.75-.333-1.009-1-.26-.668-.39-1.282-.39-1.842 0-1.749.93-3.224 2.787-4.425 1.858-1.202 3.965-1.802 6.322-1.802 2.064 0 3.851.447 5.363 1.341 1.511.895 2.267 2.116 2.267 3.664 0 1.362-.57 2.623-1.708 3.784a13.387 13.387 0 01-3.945 2.784z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-locked-padlock tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M96.472 64H105v32.01C105 113.674 90.674 128 73.001 128H56C38.318 128 24 113.677 24 96.01V64h8c.003-15.723.303-47.731 32.16-47.731 31.794 0 32.305 32.057 32.312 47.731zm-15.897 0H48.44c.002-16.287.142-32 15.719-32 15.684 0 16.977 16.136 16.415 32zM67.732 92.364A8.503 8.503 0 0064.5 76a8.5 8.5 0 00-3.498 16.25l-5.095 22.77H72.8l-5.07-22.656z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-mail tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M122.827 104.894a7.986 7.986 0 01-2.834.516H8.007c-.812 0-1.597-.12-2.335-.345l34.163-34.163 20.842 20.842a3.998 3.998 0 003.418 1.134 4.003 4.003 0 003.395-1.134L88.594 70.64c.075.09.155.176.24.26l33.993 33.994zm5.076-6.237c.064-.406.097-.823.097-1.247v-64c0-.669-.082-1.318-.237-1.94L94.23 65.006c.09.075.177.154.261.239l33.413 33.413zm-127.698.56A8.023 8.023 0 010 97.41v-64c0-.716.094-1.41.271-2.071l33.907 33.906L.205 99.218zM5.93 25.684a8.012 8.012 0 012.078-.273h111.986c.766 0 1.507.108 2.209.308L64.083 83.837 5.93 25.683z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-menu-button tc-image-button" viewBox="0 0 128 128"><rect width="128" height="16" y="16" rx="8"/><rect width="128" height="16" y="56" rx="8"/><rect width="128" height="16" y="96" rx="8"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-mono-block tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M23.965 32.967h.357c.755 0 1.328.192 1.72.577.39.384.586.947.586 1.688 0 .824-.206 1.418-.618 1.782-.413.363-1.094.545-2.045.545h-6.31c-.965 0-1.65-.178-2.056-.535-.405-.356-.608-.954-.608-1.792 0-.811.203-1.391.608-1.74.406-.35 1.09-.525 2.055-.525h.734l-.86-2.453H8.471l-.902 2.453h.734c.95 0 1.632.178 2.044.535.413.356.619.933.619 1.73 0 .824-.206 1.418-.619 1.782-.412.363-1.094.545-2.044.545h-5.41c-.964 0-1.649-.182-2.054-.545-.406-.364-.608-.958-.608-1.782 0-.741.195-1.304.587-1.688.391-.385.964-.577 1.719-.577h.356l5.62-15.641H6.835c-.95 0-1.632-.182-2.044-.546-.412-.363-.619-.95-.619-1.76 0-.825.207-1.42.619-1.783.412-.363 1.094-.545 2.044-.545h7.863c1.244 0 2.118.67 2.62 2.013v.063l6.647 18.2zM12.98 17.326l-3.04 8.848h6.08l-3.04-8.848zm22.402 9.372v6.395h3.145c2.223 0 3.788-.245 4.697-.734.908-.49 1.362-1.307 1.362-2.453 0-1.16-.433-1.985-1.3-2.474-.866-.49-2.383-.734-4.55-.734h-3.354zm10.693-2.327c1.524.559 2.642 1.324 3.355 2.295.713.972 1.07 2.212 1.07 3.722 0 1.272-.308 2.432-.923 3.48-.615 1.049-1.496 1.909-2.642 2.58a7.499 7.499 0 01-2.254.849c-.832.174-2.01.262-3.533.262H30.202c-.922 0-1.583-.182-1.981-.545-.399-.364-.598-.958-.598-1.782 0-.741.189-1.304.566-1.688.378-.385.93-.577 1.657-.577h.356V17.326h-.356c-.727 0-1.28-.196-1.657-.587-.377-.392-.566-.965-.566-1.72 0-.81.203-1.401.608-1.771.406-.37 1.062-.556 1.971-.556h9.645c2.95 0 5.19.573 6.72 1.72 1.53 1.145 2.296 2.823 2.296 5.031 0 1.09-.234 2.052-.703 2.883-.468.832-1.163 1.513-2.086 2.045zM35.381 17.2v5.284h2.83c1.72 0 2.932-.203 3.638-.609.706-.405 1.06-1.09 1.06-2.054 0-.909-.319-1.573-.955-1.992-.636-.42-1.667-.63-3.093-.63h-3.48zm35.863-3.816c.28-.503.566-.86.86-1.07.293-.21.664-.314 1.111-.314.685 0 1.17.182 1.457.545.287.364.43.986.43 1.866l.042 5.452c0 .964-.157 1.614-.472 1.95-.314.335-.884.503-1.709.503-.587 0-1.037-.14-1.352-.42-.314-.28-.584-.796-.807-1.551-.364-1.328-.944-2.282-1.74-2.862-.797-.58-1.901-.87-3.313-.87-2.153 0-3.802.727-4.948 2.18-1.147 1.454-1.72 3.558-1.72 6.311 0 2.74.58 4.844 1.74 6.311 1.16 1.468 2.817 2.202 4.97 2.202 1.467 0 3.085-.49 4.854-1.468 1.768-.978 2.883-1.467 3.344-1.467.545 0 1.003.23 1.373.692.37.46.556 1.034.556 1.719 0 1.23-1.084 2.39-3.25 3.48-2.167 1.09-4.606 1.636-7.318 1.636-3.662 0-6.625-1.21-8.89-3.627-2.264-2.419-3.396-5.578-3.396-9.478 0-3.76 1.146-6.884 3.438-9.372 2.293-2.488 5.2-3.732 8.723-3.732.992 0 1.97.112 2.935.335.964.224 1.992.574 3.082 1.049zm10.22 19.583V17.326h-.356c-.755 0-1.328-.196-1.72-.587-.39-.392-.586-.965-.586-1.72 0-.81.21-1.401.629-1.771.42-.37 1.097-.556 2.034-.556h5.178c2.922 0 5.06.126 6.416.377 1.356.252 2.51.671 3.46 1.258 1.691 1.007 2.988 2.443 3.89 4.31.9 1.865 1.352 4.021 1.352 6.467 0 2.586-.514 4.847-1.541 6.783-1.028 1.936-2.485 3.4-4.372 4.393-.853.447-1.852.772-2.998.975-1.147.203-2.852.304-5.116.304h-6.269c-.965 0-1.65-.178-2.055-.535-.406-.356-.608-.954-.608-1.792 0-.741.195-1.304.587-1.688.391-.385.964-.577 1.72-.577h.356zm5.41-15.725v15.725h1.195c2.642 0 4.592-.646 5.85-1.94 1.258-1.292 1.887-3.28 1.887-5.965 0-2.641-.64-4.612-1.918-5.912-1.28-1.3-3.205-1.95-5.777-1.95-.335 0-.59.003-.765.01a7.992 7.992 0 00-.472.032zm35.067-.126h-9.75v5.368h3.69v-.252c0-.797.175-1.39.524-1.782.35-.392.88-.587 1.594-.587.629 0 1.142.178 1.54.534.4.357.598.808.598 1.353 0 .028.007.118.021.272.014.154.021.308.021.462v4.34c0 .936-.167 1.607-.503 2.013-.335.405-.88.608-1.635.608-.713 0-1.251-.19-1.615-.567-.363-.377-.545-.936-.545-1.677v-.377h-3.69v6.269h9.75v-2.495c0-.937.178-1.608.534-2.013.357-.405.94-.608 1.75-.608.798 0 1.367.2 1.71.597.342.399.513 1.073.513 2.024v5.074c0 .755-.146 1.258-.44 1.51-.293.251-.873.377-1.74.377h-17.172c-.923 0-1.583-.182-1.982-.545-.398-.364-.597-.958-.597-1.782 0-.741.189-1.304.566-1.688.377-.385.93-.577 1.656-.577h.357V17.326h-.357c-.712 0-1.261-.2-1.646-.598-.384-.398-.576-.968-.576-1.709 0-.81.203-1.401.608-1.771.405-.37 1.062-.556 1.97-.556h17.173c.853 0 1.43.13 1.73.388.3.258.45.772.45 1.54v4.698c0 .95-.174 1.631-.524 2.044-.35.412-.915.618-1.698.618-.81 0-1.394-.21-1.75-.629-.357-.419-.535-1.097-.535-2.033v-2.202zM19.77 47.641c.267-.504.55-.86.85-1.07.3-.21.675-.314 1.122-.314.685 0 1.17.181 1.457.545.287.363.43.985.43 1.866l.042 5.451c0 .965-.157 1.615-.472 1.95-.314.336-.891.504-1.73.504-.587 0-1.045-.144-1.373-.43-.329-.287-.598-.8-.807-1.541-.378-1.342-.958-2.3-1.74-2.873-.783-.573-1.88-.86-3.292-.86-2.153 0-3.799.727-4.938 2.181-1.14 1.454-1.709 3.557-1.709 6.311s.598 4.882 1.793 6.385C10.599 67.248 12.294 68 14.488 68c.503 0 1.077-.06 1.72-.179a23.809 23.809 0 002.264-.555v-3.313h-2.37c-.95 0-1.624-.175-2.023-.524-.398-.35-.597-.93-.597-1.74 0-.84.199-1.437.597-1.793.399-.357 1.073-.535 2.024-.535h7.569c.978 0 1.667.175 2.065.524.398.35.598.937.598 1.762 0 .74-.2 1.31-.598 1.708-.398.399-.975.598-1.73.598h-.335v5.242c0 .447-.05.758-.147.933-.098.174-.293.353-.587.534-.797.476-2.062.895-3.795 1.258a25.576 25.576 0 01-5.263.546c-3.662 0-6.625-1.21-8.89-3.628-2.264-2.418-3.397-5.577-3.397-9.477 0-3.76 1.147-6.884 3.44-9.372 2.292-2.488 5.199-3.732 8.721-3.732.979 0 1.954.112 2.925.335.972.224 2.003.573 3.093 1.049zm15.84 3.941v4.823h6.857v-4.823h-.336c-.754 0-1.331-.195-1.73-.587-.398-.391-.597-.964-.597-1.719 0-.825.206-1.419.619-1.782.412-.364 1.093-.545 2.044-.545h5.41c.95 0 1.624.181 2.023.545.398.363.597.957.597 1.782 0 .755-.192 1.328-.576 1.72-.385.39-.947.586-1.688.586h-.357v15.642h.357c.755 0 1.328.192 1.719.576.391.385.587.947.587 1.688 0 .825-.203 1.419-.608 1.782-.405.364-1.09.546-2.055.546h-5.41c-.964 0-1.649-.179-2.054-.535-.405-.357-.608-.954-.608-1.793 0-.74.2-1.303.598-1.688.398-.384.975-.576 1.73-.576h.335v-6.186h-6.856v6.186h.335c.755 0 1.331.192 1.73.576.398.385.597.947.597 1.688 0 .825-.206 1.419-.618 1.782-.412.364-1.094.546-2.044.546h-5.41c-.964 0-1.65-.179-2.055-.535-.405-.357-.608-.954-.608-1.793 0-.74.196-1.303.587-1.688.392-.384.965-.576 1.72-.576h.356V51.582h-.356c-.741 0-1.304-.195-1.688-.587-.385-.391-.577-.964-.577-1.719 0-.825.2-1.419.598-1.782.398-.364 1.073-.545 2.023-.545h5.41c.936 0 1.614.181 2.033.545.42.363.63.957.63 1.782 0 .755-.2 1.328-.598 1.72-.399.39-.975.586-1.73.586h-.335zm31.754 0v15.642h3.523c.95 0 1.632.178 2.044.534.412.357.618.933.618 1.73 0 .811-.21 1.402-.629 1.772-.419.37-1.097.556-2.033.556H58.433c-.95 0-1.632-.182-2.044-.546-.412-.363-.619-.957-.619-1.782 0-.81.203-1.39.608-1.74.406-.35 1.09-.524 2.055-.524h3.523V51.582h-3.523c-.95 0-1.632-.181-2.044-.545-.412-.363-.619-.95-.619-1.761 0-.825.203-1.412.608-1.761.406-.35 1.09-.524 2.055-.524h12.455c.992 0 1.684.174 2.075.524.392.35.587.936.587 1.761 0 .81-.202 1.398-.608 1.761-.405.364-1.09.545-2.054.545h-3.523zm30.496 0v11.994c0 1.873-.122 3.228-.367 4.067a5.876 5.876 0 01-1.227 2.244c-.74.852-1.768 1.495-3.082 1.929-1.314.433-2.893.65-4.738.65-1.3 0-2.555-.126-3.764-.378a16.843 16.843 0 01-3.491-1.132c-.615-.28-1.017-.643-1.206-1.09-.188-.448-.283-1.175-.283-2.18v-4.32c0-1.202.175-2.04.525-2.516.349-.475.957-.713 1.824-.713 1.244 0 1.929.915 2.054 2.747.014.321.035.566.063.733.168 1.622.545 2.73 1.133 3.324.587.594 1.523.89 2.81.89 1.593 0 2.714-.422 3.364-1.268.65-.845.975-2.386.975-4.623V51.582H88.93c-.95 0-1.632-.181-2.044-.545-.413-.363-.619-.95-.619-1.761 0-.825.2-1.412.598-1.761.398-.35 1.086-.524 2.065-.524h10.693c.979 0 1.667.174 2.065.524.399.35.598.936.598 1.761 0 .81-.206 1.398-.619 1.761-.412.364-1.093.545-2.044.545h-1.761zm14.644 0v6.353l6.48-6.478c-.728-.084-1.238-.29-1.531-.619-.294-.328-.44-.85-.44-1.562 0-.825.198-1.419.597-1.782.398-.364 1.073-.545 2.023-.545h5.137c.95 0 1.625.181 2.023.545.399.363.598.957.598 1.782 0 .769-.2 1.345-.598 1.73-.398.384-.982.576-1.75.576h-.483l-6.101 6.06c1.132.839 2.167 1.94 3.103 3.302.937 1.363 2.034 3.456 3.292 6.28h.692c.825 0 1.44.188 1.845.566.405.377.608.943.608 1.698 0 .825-.206 1.419-.619 1.782-.412.364-1.093.546-2.044.546h-2.579c-1.132 0-2.048-.762-2.746-2.286-.126-.28-.224-.503-.294-.67-.923-1.958-1.768-3.467-2.537-4.53a16.616 16.616 0 00-2.705-2.914l-1.97 1.887v3.92h.335c.755 0 1.331.193 1.73.577.398.385.597.947.597 1.688 0 .825-.206 1.419-.618 1.782-.413.364-1.094.546-2.045.546h-5.41c-.964 0-1.649-.179-2.054-.535-.405-.357-.608-.954-.608-1.793 0-.74.196-1.303.587-1.688.391-.384.965-.576 1.72-.576h.356V51.582h-.357c-.74 0-1.303-.195-1.687-.587-.385-.391-.577-.964-.577-1.719 0-.825.2-1.419.598-1.782.398-.364 1.072-.545 2.023-.545h5.41c.936 0 1.614.181 2.033.545.42.363.63.957.63 1.782 0 .755-.2 1.328-.598 1.72-.399.39-.975.586-1.73.586h-.336zM13.44 96.326l4.005-11.889c.251-.782.6-1.352 1.048-1.709.447-.356 1.041-.534 1.782-.534h3.271c.95 0 1.632.182 2.044.545.413.363.619.957.619 1.782 0 .755-.2 1.328-.598 1.72-.398.39-.975.587-1.73.587h-.335l.587 15.641h.357c.754 0 1.32.192 1.698.577.377.384.566.947.566 1.687 0 .825-.2 1.42-.598 1.783-.398.363-1.072.545-2.023.545h-4.718c-.95 0-1.624-.178-2.023-.535-.398-.356-.597-.954-.597-1.793 0-.74.192-1.303.576-1.687.385-.385.954-.577 1.709-.577h.335l-.293-12.79-3.061 9.52c-.224.712-.542 1.226-.954 1.54-.413.315-.982.472-1.709.472-.727 0-1.303-.157-1.73-.472-.426-.314-.751-.828-.975-1.54l-3.04-9.52-.294 12.79h.336c.755 0 1.324.192 1.709.577.384.384.576.947.576 1.687 0 .825-.202 1.42-.608 1.783-.405.363-1.076.545-2.013.545H2.621c-.937 0-1.608-.182-2.013-.545-.405-.364-.608-.958-.608-1.783 0-.74.192-1.303.577-1.687.384-.385.954-.577 1.708-.577h.336l.608-15.641h-.336c-.754 0-1.331-.196-1.73-.588-.398-.39-.597-.964-.597-1.719 0-.825.206-1.419.619-1.782.412-.363 1.093-.545 2.044-.545h3.27c.728 0 1.311.175 1.752.524.44.35.8.923 1.08 1.72l4.109 11.888zm30.454 2.054V86.828H42.74c-.922 0-1.583-.182-1.981-.546-.398-.363-.598-.95-.598-1.76 0-.812.2-1.402.598-1.773.398-.37 1.059-.555 1.981-.555h5.955c.909 0 1.566.185 1.97.555.406.37.609.961.609 1.772 0 .741-.192 1.31-.577 1.709-.384.398-.933.598-1.646.598h-.356v19.038c0 .657-.07 1.069-.21 1.237-.14.167-.454.251-.943.251h-2.097c-.67 0-1.143-.07-1.415-.21-.273-.14-.507-.384-.703-.733l-8.722-15.327v11.385h1.216c.909 0 1.559.175 1.95.524.392.35.587.93.587 1.74 0 .825-.199 1.42-.597 1.783-.399.363-1.045.545-1.94.545h-6.017c-.909 0-1.566-.182-1.971-.545-.406-.364-.608-.958-.608-1.783 0-.74.188-1.303.566-1.687.377-.385.936-.577 1.677-.577h.336V86.828h-.336c-.713 0-1.265-.2-1.656-.598-.392-.398-.587-.968-.587-1.709 0-.81.206-1.401.618-1.772.413-.37 1.066-.555 1.96-.555h3.44c.824 0 1.383.108 1.677.325.293.216.622.653.985 1.31l7.989 14.551zM64.66 86.366c-1.803 0-3.218.727-4.245 2.18-1.028 1.455-1.541 3.474-1.541 6.06 0 2.586.517 4.613 1.551 6.08 1.034 1.468 2.446 2.202 4.235 2.202 1.804 0 3.222-.73 4.257-2.19 1.034-1.461 1.551-3.492 1.551-6.092 0-2.586-.513-4.605-1.54-6.06-1.028-1.453-2.45-2.18-4.268-2.18zm0-4.864c3.44 0 6.27 1.23 8.492 3.69 2.223 2.46 3.334 5.598 3.334 9.414 0 3.844-1.104 6.99-3.313 9.436-2.208 2.446-5.046 3.669-8.513 3.669-3.424 0-6.255-1.234-8.491-3.701-2.237-2.467-3.355-5.602-3.355-9.404 0-3.83 1.108-6.971 3.323-9.424 2.216-2.454 5.057-3.68 8.523-3.68zM87.461 98.17v4.298h2.16c.908 0 1.555.175 1.94.524.384.35.576.93.576 1.74 0 .825-.196 1.42-.587 1.783-.392.363-1.035.545-1.93.545h-7.254c-.922 0-1.583-.182-1.981-.545-.399-.364-.598-.958-.598-1.783 0-.74.189-1.303.566-1.687.378-.385.93-.577 1.657-.577h.356V86.828h-.356c-.713 0-1.262-.2-1.646-.598-.385-.398-.577-.968-.577-1.709 0-.81.203-1.401.608-1.772.406-.37 1.063-.555 1.971-.555h8.66c3.424 0 6.014.657 7.768 1.97 1.754 1.315 2.631 3.25 2.631 5.809 0 2.697-.873 4.738-2.62 6.122-1.748 1.384-4.34 2.076-7.78 2.076h-3.564zm0-11.343v6.625h2.977c1.65 0 2.89-.28 3.722-.839.832-.559 1.248-1.397 1.248-2.516 0-1.048-.43-1.855-1.29-2.421-.86-.566-2.086-.85-3.68-.85h-2.977zm27.267 20.568l-1.636 1.636a12.37 12.37 0 011.772-.44c.58-.098 1.15-.147 1.709-.147 1.104 0 2.268.164 3.491.492 1.223.329 1.967.493 2.233.493.447 0 1.03-.15 1.75-.45.72-.301 1.206-.452 1.458-.452.517 0 .947.2 1.29.598.342.398.513.898.513 1.5 0 .796-.472 1.474-1.415 2.033-.944.56-2.1.839-3.47.839-.937 0-2.139-.22-3.607-.66-1.467-.441-2.53-.661-3.187-.661-.992 0-2.11.272-3.354.817-1.244.546-2.013.818-2.307.818a2.14 2.14 0 01-1.53-.597c-.42-.399-.63-.878-.63-1.437 0-.391.134-.807.4-1.247.265-.44.733-1.01 1.404-1.709l2.118-2.139c-2.335-.852-4.194-2.386-5.578-4.602-1.384-2.215-2.075-4.763-2.075-7.642 0-3.802 1.104-6.909 3.312-9.32 2.209-2.411 5.053-3.617 8.534-3.617 3.467 0 6.304 1.209 8.513 3.627 2.208 2.418 3.312 5.522 3.312 9.31 0 3.774-1.097 6.884-3.291 9.33-2.195 2.446-4.977 3.67-8.345 3.67a22.5 22.5 0 01-1.384-.043zm1.195-21.03c-1.803 0-3.218.727-4.246 2.18-1.027 1.455-1.54 3.474-1.54 6.06 0 2.586.516 4.613 1.55 6.08 1.035 1.468 2.447 2.202 4.236 2.202 1.803 0 3.222-.73 4.256-2.19 1.035-1.461 1.552-3.492 1.552-6.092 0-2.586-.514-4.605-1.541-6.06-1.028-1.453-2.45-2.18-4.267-2.18z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-mono-line tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M60.437 84.523h.908c1.922 0 3.381.489 4.378 1.468.997.979 1.495 2.411 1.495 4.298 0 2.1-.525 3.612-1.575 4.538-1.05.925-2.785 1.388-5.206 1.388h-16.07c-2.456 0-4.2-.454-5.232-1.361-1.032-.908-1.548-2.43-1.548-4.565 0-2.065.516-3.542 1.548-4.432 1.032-.89 2.776-1.334 5.232-1.334h1.869l-2.19-6.247H20.983l-2.296 6.247h1.87c2.42 0 4.155.453 5.205 1.361 1.05.908 1.575 2.376 1.575 4.405 0 2.1-.525 3.612-1.575 4.538-1.05.925-2.785 1.388-5.206 1.388H6.781c-2.456 0-4.2-.463-5.233-1.388C.516 93.9 0 92.389 0 90.289c0-1.887.498-3.32 1.495-4.298.997-.979 2.456-1.468 4.378-1.468h.908l14.308-39.83h-4.271c-2.42 0-4.156-.462-5.206-1.387-1.05-.926-1.575-2.42-1.575-4.485 0-2.1.525-3.613 1.575-4.538 1.05-.926 2.785-1.388 5.206-1.388h20.021c3.168 0 5.392 1.708 6.674 5.125v.16l16.924 46.343zm-27.976-39.83L24.72 67.225h15.483l-7.742-22.53zM89.506 68.56v16.284h8.008c5.66 0 9.646-.623 11.96-1.869 2.313-1.245 3.47-3.328 3.47-6.246 0-2.955-1.103-5.055-3.31-6.3-2.207-1.246-6.069-1.869-11.586-1.869h-8.542zm27.229-5.926c3.88 1.423 6.727 3.372 8.542 5.846 1.815 2.474 2.723 5.633 2.723 9.477 0 3.239-.783 6.193-2.35 8.862-1.565 2.67-3.808 4.859-6.726 6.567-1.709.997-3.622 1.718-5.74 2.163-2.118.445-5.116.667-8.996.667h-27.87c-2.349 0-4.03-.463-5.045-1.388-1.014-.926-1.521-2.438-1.521-4.538 0-1.887.48-3.32 1.441-4.298.961-.979 2.367-1.468 4.218-1.468h.907v-39.83h-.907c-1.851 0-3.257-.498-4.218-1.494-.961-.997-1.441-2.456-1.441-4.378 0-2.065.516-3.568 1.548-4.512 1.032-.943 2.705-1.414 5.018-1.414h24.56c7.51 0 13.214 1.459 17.111 4.377 3.898 2.92 5.847 7.19 5.847 12.814 0 2.776-.597 5.223-1.789 7.341-1.192 2.118-2.963 3.853-5.312 5.206zm-27.23-18.26v13.455h7.208c4.378 0 7.466-.516 9.264-1.549 1.797-1.032 2.696-2.776 2.696-5.232 0-2.313-.81-4.004-2.43-5.072-1.619-1.068-4.244-1.602-7.874-1.602h-8.863z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-new-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M56 72H8.007C3.591 72 0 68.418 0 64c0-4.41 3.585-8 8.007-8H56V8.007C56 3.591 59.582 0 64 0c4.41 0 8 3.585 8 8.007V56h47.993c4.416 0 8.007 3.582 8.007 8 0 4.41-3.585 8-8.007 8H72v47.993c0 4.416-3.582 8.007-8 8.007-4.41 0-8-3.585-8-8.007V72z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-new-here-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M55.838 20.935l-3.572.938c-3.688.968-8.23 4.43-10.136 7.731L3.37 96.738c-1.905 3.3-.771 7.524 2.534 9.432l33.717 19.466c3.297 1.904 7.53.78 9.435-2.521l38.76-67.134c1.905-3.3 2.632-8.963 1.623-12.646L83.285 20.88c-1.009-3.68-4.821-5.884-8.513-4.915l-7.603 1.995.043.287c.524 3.394 2.053 7.498 4.18 11.55.418.163.829.36 1.23.59a8.864 8.864 0 014.438 8.169c.104.132.21.264.316.395l-.386.318a8.663 8.663 0 01-1.082 3.137c-2.42 4.192-7.816 5.608-12.051 3.163-4.12-2.379-5.624-7.534-3.476-11.671-2.177-4.394-3.788-8.874-4.543-12.964z"/><path d="M69.554 44.76c-5.944-7.476-10.74-17.196-11.955-25.059-1.68-10.875 3.503-18.216 15.082-18.04 10.407.158 19.975 5.851 24.728 13.785 5.208 8.695 2.95 17.868-6.855 20.496l-2.037-7.601c4.232-1.134 4.999-4.248 2.24-8.853-3.37-5.626-10.465-9.848-18.146-9.965-6.392-.097-8.31 2.62-7.323 9.01.999 6.465 5.318 15.138 10.582 21.65l-.072.06c.559 1.553-4.17 6.44-5.938 4.888l-.005.004-.028-.034a1.323 1.323 0 01-.124-.135 2.618 2.618 0 01-.149-.205z"/><rect width="16" height="48" x="96" y="80" rx="8"/><rect width="48" height="16" x="80" y="96" rx="8"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-new-image-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M81.362 73.627l15.826-27.41a2.626 2.626 0 00-.962-3.59l-50.01-28.872a2.626 2.626 0 00-3.588.961L30.058 36.49l10.04-5.261c3.042-1.595 6.771.114 7.55 3.46l3.607 17.702 9.88.85a5.25 5.25 0 014.571 3.77c.034.115.1.344.199.671.165.553.353 1.172.562 1.843.595 1.914 1.23 3.85 1.872 5.678.207.588.412 1.156.614 1.701.625 1.685 1.209 3.114 1.725 4.207.255.54.485.977.726 1.427.214.212.547.425 1.011.622 1.141.482 2.784.74 4.657.758.864.008 1.71-.034 2.492-.11.448-.043.753-.085.871-.104.315-.053.625-.077.927-.076zM37.47 2.649A5.257 5.257 0 0144.649.725l63.645 36.746a5.257 5.257 0 011.923 7.178L73.47 108.294a5.257 5.257 0 01-7.177 1.923L2.649 73.47a5.257 5.257 0 01-1.924-7.177L37.471 2.649zm42.837 50.49a5.25 5.25 0 105.25-9.092 5.25 5.25 0 00-5.25 9.093zM96 112h-7.993c-4.419 0-8.007-3.582-8.007-8 0-4.41 3.585-8 8.007-8H96v-7.993C96 83.588 99.582 80 104 80c4.41 0 8 3.585 8 8.007V96h7.993c4.419 0 8.007 3.582 8.007 8 0 4.41-3.585 8-8.007 8H112v7.993c0 4.419-3.582 8.007-8 8.007-4.41 0-8-3.585-8-8.007V112zM33.347 51.791c7.428 7.948 9.01 10.69 7.449 13.394-1.56 2.703-13.838-2.328-16.094 1.58-2.256 3.908-.907 3.258-2.437 5.908l19.73 11.39s-5.605-8.255-4.235-10.628c2.515-4.356 8.77-1.256 10.365-4.019 2.414-4.181-5.103-9.639-14.778-17.625z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-new-journal-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M102.545 112.818v11.818c0 1.306 1.086 2.364 2.425 2.364h6.06c1.34 0 2.425-1.058 2.425-2.364v-11.818h12.12c1.34 0 2.425-1.058 2.425-2.363v-5.91c0-1.305-1.085-2.363-2.424-2.363h-12.121V90.364c0-1.306-1.086-2.364-2.425-2.364h-6.06c-1.34 0-2.425 1.058-2.425 2.364v11.818h-12.12c-1.34 0-2.425 1.058-2.425 2.363v5.91c0 1.305 1.085 2.363 2.424 2.363h12.121zM60.016 4.965c-4.781-2.76-10.897-1.118-13.656 3.66L5.553 79.305A9.993 9.993 0 009.21 92.963l51.04 29.468c4.78 2.76 10.897 1.118 13.655-3.66l40.808-70.681a9.993 9.993 0 00-3.658-13.656L60.016 4.965zm-3.567 27.963a6 6 0 106-10.393 6 6 0 00-6 10.393zm31.697 17.928a6 6 0 106-10.392 6 6 0 00-6 10.392z"/><text class="tc-fill-background" font-family="Helvetica" font-size="47.172" font-weight="bold" transform="rotate(30 25.742 95.82)"><tspan x="42" y="77.485" text-anchor="middle"><<now "DD">></tspan></text></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-opacity tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M102.362 65a51.595 51.595 0 01-1.942 6H82.584a35.867 35.867 0 002.997-6h16.78zm.472-2c.423-1.961.734-3.963.929-6H87.656a35.78 35.78 0 01-1.368 6h16.546zm-3.249 10a51.847 51.847 0 01-3.135 6H75.812a36.205 36.205 0 005.432-6h18.341zm-4.416 8c-1.424 2.116-3 4.12-4.71 6H60.46a35.843 35.843 0 0012.874-6h21.834zm-7.513-34h16.107C101.247 20.627 79.033 0 52 0 23.281 0 0 23.281 0 52c0 25.228 17.965 46.26 41.8 51h20.4a51.66 51.66 0 0015.875-6H39v-2h42.25a52.257 52.257 0 007.288-6H39v-2h4.539C27.739 83.194 16 68.968 16 52c0-19.882 16.118-36 36-36 18.186 0 33.222 13.484 35.656 31zm.22 2h16.039a52.823 52.823 0 010 6H87.877a36.483 36.483 0 000-6z"/><path d="M76 128c28.719 0 52-23.281 52-52s-23.281-52-52-52-52 23.281-52 52 23.281 52 52 52zm0-16c19.882 0 36-16.118 36-36S95.882 40 76 40 40 56.118 40 76s16.118 36 36 36z"/><path d="M37 58h53v4H37v-4zm3-8h53v4H40v-4zm0-8h53v4H40v-4zm-8 24h53v4H32v-4zm-2 8h53v4H30v-4zm-3 8h53v4H27v-4z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-open-window tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M16 112h88.994c3.87 0 7.006 3.59 7.006 8 0 4.418-3.142 8-7.006 8H7.006C3.136 128 0 124.41 0 120a9.321 9.321 0 010-.01V24.01C0 19.586 3.59 16 8 16c4.418 0 8 3.584 8 8.01V112z"/><path d="M96 43.196V56a8 8 0 1016 0V24c0-4.41-3.585-8-8.007-8H72.007C67.588 16 64 19.582 64 24c0 4.41 3.585 8 8.007 8H84.57l-36.3 36.299a8 8 0 00-.001 11.316c3.117 3.117 8.19 3.123 11.316-.003L96 43.196zM32 7.999C32 3.581 35.588 0 40 0h80c4.419 0 8 3.588 8 8v80c0 4.419-3.588 8-8 8H40c-4.419 0-8-3.588-8-8V8z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-options-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M110.488 76a47.712 47.712 0 01-5.134 12.384l6.724 6.724c3.123 3.123 3.132 8.192.011 11.313l-5.668 5.668c-3.12 3.12-8.186 3.117-11.313-.01l-6.724-6.725c-3.82 2.258-7.98 4-12.384 5.134v9.505c0 4.417-3.578 8.007-7.992 8.007h-8.016C55.58 128 52 124.415 52 119.993v-9.505a47.712 47.712 0 01-12.384-5.134l-6.724 6.725c-3.123 3.122-8.192 3.131-11.313.01l-5.668-5.668c-3.12-3.12-3.116-8.186.01-11.313l6.725-6.724c-2.257-3.82-4-7.98-5.134-12.384H8.007C3.591 76 0 72.422 0 68.01v-8.017C0 55.58 3.585 52 8.007 52h9.505a47.712 47.712 0 015.134-12.383l-6.724-6.725c-3.123-3.122-3.132-8.191-.011-11.312l5.668-5.669c3.12-3.12 8.186-3.116 11.313.01l6.724 6.725c3.82-2.257 7.98-4 12.384-5.134V8.007C52 3.591 55.578 0 59.992 0h8.016C72.42 0 76 3.585 76 8.007v9.505a47.712 47.712 0 0112.384 5.134l6.724-6.724c3.123-3.123 8.192-3.132 11.313-.01l5.668 5.668c3.12 3.12 3.116 8.186-.01 11.312l-6.725 6.725c2.257 3.82 4 7.979 5.134 12.383h9.505c4.416 0 8.007 3.578 8.007 7.992v8.017c0 4.411-3.585 7.991-8.007 7.991h-9.505zM64 96c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-paint tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M83.527 76.19C90.43 69.287 91.892 59 87.91 50.665l37.903-37.902c2.919-2.92 2.913-7.659 0-10.572a7.474 7.474 0 00-10.572 0L77.338 40.093c-8.335-3.982-18.622-2.521-25.526 4.383l31.715 31.715zm-2.643 2.644L49.169 47.119S8.506 81.243 0 80.282c0 0 3.782 5.592 6.827 8.039 14.024-5.69 37.326-24.6 37.326-24.6l.661.66S19.45 90.222 9.18 92.047c1.222 1.44 4.354 4.053 6.247 5.776 5.417-1.488 34.733-28.57 34.733-28.57l.661.66-32.407 31.022 5.285 5.286L56.106 75.2l.662.66s-27.864 30.536-28.684 32.432c0 0 6.032 6.853 7.569 7.824.702-2.836 27.884-33.485 27.884-33.485l.661.66s-20.597 23.755-24.964 36.732c3.21 3.549 7.5 5.137 10.926 6.298-2.19-11.817 30.724-47.487 30.724-47.487z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-palette tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M80.247 39.182a93.52 93.52 0 00-16.228-1.4C28.662 37.781 0 57.131 0 81.002c0 9.642 4.676 18.546 12.58 25.735C23.504 91.19 26.34 72.395 36.89 63.562c15.183-12.713 26.538-7.828 26.538-7.828l16.82-16.552zm26.535 9.655c13.049 7.913 21.257 19.392 21.257 32.166 0 9.35.519 17.411-11.874 25.08-10.797 6.681-3.824-6.536-11.844-10.898s-19.946 1.308-18.213 7.906c3.2 12.181 19.422 11.455 6.314 16.658-13.107 5.202-18.202 4.476-28.403 4.476-7.821 0-15.315-.947-22.243-2.68 9.844-4.197 27.88-12.539 33.354-19.456C82.788 92.409 87.37 80 83.324 72.484c-.194-.359 11.215-11.668 23.458-23.647zM1.134 123.867l-.66.002c33.479-14.94 22.161-64.226 58.818-64.226.317 1.418.644 2.944 1.062 4.494-25.907-4.166-23.567 48.031-59.22 59.73zm.713-.007c38.872-.506 78.152-22.347 78.152-44.813-9.27 0-14.073-3.48-16.816-7.942-16.597-7.003-30.365 45.715-61.336 52.755zm65.351-64.008c-4.45 4.115 4.886 16.433 11.318 11.318l45.27-45.27c11.317-11.318 0-22.635-11.318-11.318-11.317 11.318-33.518 34.405-45.27 45.27z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-permalink-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M80.483 48l-7.387 32h-25.58l7.388-32h25.58zm3.694-16l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L100.598 32h3.403c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8h-7.096l-7.387 32H104c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H85.824l-5.624 24.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L69.402 96h-25.58L38.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L27.402 96h-3.403C19.59 96 16 92.418 16 88c0-4.41 3.581-8 8-8h7.096l7.387-32H24C19.59 48 16 44.418 16 40c0-4.41 3.581-8 8-8h18.177l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L58.598 32h25.58z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-permaview-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M81.483 48l-1.846 8h-5.58l1.847-8h5.58zm3.694-16l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L101.598 32h2.403c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8h-6.096l-1.847 8h7.944c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H92.364l-1.846 8H104c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H86.824l-5.624 24.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L70.402 96h-5.58L59.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L48.402 96h-5.58L37.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L26.402 96h-2.403C19.59 96 16 92.418 16 88c0-4.41 3.581-8 8-8h6.096l1.847-8h-7.944C19.59 72 16 68.418 16 64c0-4.41 3.581-8 8-8h11.637l1.846-8H24C19.59 48 16 44.418 16 40c0-4.41 3.581-8 8-8h17.177l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L57.598 32h5.58L68.8 7.642c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L79.598 32h5.58zM53.904 48l-1.847 8h5.58l1.846-8h-5.579zm22.039 24l-1.847 8h-5.58l1.847-8h5.58zm-27.58 0l-1.846 8h5.579l1.847-8h-5.58z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-picture tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M112 68.233v-48.23A4.001 4.001 0 00107.997 16H20.003A4.001 4.001 0 0016 20.003v38.31l9.241-14.593c2.8-4.422 9.023-5.008 12.6-1.186l18.247 20.613 13.687-6.407a8 8 0 018.903 1.492 264.97 264.97 0 002.92 2.739 249.44 249.44 0 006.798 6.066 166.5 166.5 0 002.106 1.778c2.108 1.747 3.967 3.188 5.482 4.237.748.518 1.383.92 2.044 1.33.444.117 1.046.144 1.809.05 1.873-.233 4.238-1.144 6.723-2.547a36.016 36.016 0 003.205-2.044c.558-.4.93-.686 1.07-.802.376-.31.765-.577 1.165-.806zM0 8.007A8.01 8.01 0 018.007 0h111.986A8.01 8.01 0 01128 8.007v111.986a8.01 8.01 0 01-8.007 8.007H8.007A8.01 8.01 0 010 119.993V8.007zM95 42a8 8 0 100-16 8 8 0 000 16zM32 76c15.859 4.83 20.035 7.244 20.035 12S32 95.471 32 102.347c0 6.876 1.285 4.99 1.285 9.653H68s-13.685-6.625-13.685-10.8c0-7.665 10.615-8.34 10.615-13.2 0-7.357-14.078-8.833-32.93-12z"/></svg>
+<svg width="22pt" height="22pt" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M61.207 68.137c-4.324 2.795-6.999 6.656-6.999 10.921 0 7.906 9.19 14.424 21.042 15.336 2.162 3.902 8.598 6.785 16.318 7.01-5.126-1.125-9.117-3.742-10.62-7.01C92.805 93.487 102 86.967 102 79.059c0-8.53-10.699-15.445-23.896-15.445-6.599 0-12.572 1.729-16.897 4.524zm12.794-14.158c-4.324 2.795-10.298 4.524-16.897 4.524-2.619 0-5.14-.272-7.497-.775-3.312 2.25-8.383 3.69-14.067 3.69l-.255-.002c4.119-.892 7.511-2.747 9.478-5.13-6.925-2.704-11.555-7.617-11.555-13.228 0-8.53 10.699-15.445 23.896-15.445C70.301 27.613 81 34.528 81 43.058c0 4.265-2.675 8.126-6.999 10.921zM64 0l54.56 32v64L64 128 9.44 96V32L64 0z"/></svg>
+<svg width="22pt" height="22pt" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M40.397 76.446V95.34h14.12l-.001-.005a6.912 6.912 0 005.364-11.593l.046-.023a6.912 6.912 0 119.979.526l.086.055a6.914 6.914 0 004.408 10.948l-.023.092h21.32V75.568l-.15.038a6.912 6.912 0 00-11.593-5.364l-.022-.046a6.912 6.912 0 11.526-9.979l.055-.086a6.914 6.914 0 0010.948-4.408c.079.018.158.038.236.059v-15.74h-21.32l.023-.094a6.914 6.914 0 01-4.408-10.947 10.23 10.23 0 00-.086-.055 6.912 6.912 0 10-9.979-.526l-.046.023a6.912 6.912 0 01-5.364 11.593l.001.005h-14.12v12.847A6.912 6.912 0 0129.5 59.843l-.054.086a6.912 6.912 0 10-.526 9.979l.023.046a6.912 6.912 0 0111.455 6.492zM64 0l54.56 32v64L64 128 9.44 96V32L64 0z"/></svg>
+<svg width="22pt" height="22pt" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M29.408 91.472L51.469 69.41l-.004-.005a2.22 2.22 0 01.004-3.146c.87-.87 2.281-.872 3.147-.005l9.465 9.464a2.22 2.22 0 01-.005 3.147c-.87.87-2.28.871-3.147.005l-.005-.005-22.061 22.062a6.686 6.686 0 11-9.455-9.455zM60.802 66.38c-2.436-2.704-4.465-5.091-5.817-6.869-6.855-9.014-10.313-4.268-14.226 0-3.913 4.268 1.03 7.726-2.683 10.741-3.713 3.015-3.484 4.06-9.752-1.455-6.267-5.516-6.7-7.034-3.823-10.181 2.877-3.147 5.281 1.808 11.159-3.785 5.877-5.593.94-10.55.94-10.55s12.237-25.014 28.588-23.167c16.351 1.848-6.186-2.392-11.792 17.226-2.4 8.4.447 6.42 4.998 9.968 1.394 1.086 6.03 4.401 11.794 8.685l20.677-20.676 1.615-4.766 7.84-4.689 3.151 3.152-4.688 7.84-4.766 1.615-20.224 20.223c12.663 9.547 28.312 22.146 28.312 26.709 0 7.217-3.071 11.526-9.535 9.164-4.693-1.715-18.768-15.192-28.753-25.897l-2.893 2.893-3.151-3.152 3.029-3.029zM63.953 0l54.56 32v64l-54.56 32-54.56-32V32l54.56-32z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-preview-closed tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M.088 64a7.144 7.144 0 001.378 5.458C16.246 88.818 39.17 100.414 64 100.414c24.83 0 47.753-11.596 62.534-30.956A7.144 7.144 0 00127.912 64C110.582 78.416 88.304 87.086 64 87.086 39.696 87.086 17.418 78.416.088 64z"/><rect width="4" height="16" x="62" y="96" rx="4"/><rect width="4" height="16" x="78" y="93" rx="4" transform="rotate(-5 80 101)"/><rect width="4" height="16" x="46" y="93" rx="4" transform="rotate(5 48 101)"/><rect width="4" height="16" x="30" y="88" rx="4" transform="rotate(10 32 96)"/><rect width="4" height="16" x="94" y="88" rx="4" transform="rotate(-10 96 96)"/><rect width="4" height="16" x="110" y="80" rx="4" transform="rotate(-20 112 88)"/><rect width="4" height="16" x="14" y="80" rx="4" transform="rotate(20 16 88)"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-preview-open tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M64.11 99.588c-24.83 0-47.754-11.596-62.534-30.957a7.148 7.148 0 010-8.675C16.356 40.596 39.28 29 64.11 29c24.83 0 47.753 11.596 62.534 30.956a7.148 7.148 0 010 8.675c-14.78 19.36-37.703 30.957-62.534 30.957zm46.104-32.007c1.44-1.524 1.44-3.638 0-5.162C99.326 50.9 82.439 44 64.147 44S28.968 50.9 18.08 62.42c-1.44 1.523-1.44 3.637 0 5.16C28.968 79.1 45.855 86 64.147 86s35.179-6.9 46.067-18.42z"/><path d="M63.5 88C76.479 88 87 77.479 87 64.5S76.479 41 63.5 41 40 51.521 40 64.5 50.521 88 63.5 88z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-print-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M112 71V30.5h-.032c-.035-2-.816-3.99-2.343-5.516L86.998 2.357A7.978 7.978 0 0081 .02V0H24a8 8 0 00-8 8v63h8V8h57v14.5c0 4.422 3.582 8 8 8h15V71h8z"/><rect width="64" height="8" x="32" y="36" rx="4"/><rect width="64" height="8" x="32" y="52" rx="4"/><rect width="40" height="8" x="32" y="20" rx="4"/><path d="M0 80.005C0 71.165 7.156 64 16 64h96c8.836 0 16 7.155 16 16.005v31.99c0 8.84-7.156 16.005-16 16.005H16c-8.836 0-16-7.155-16-16.005v-31.99zM104 96a8 8 0 100-16 8 8 0 000 16z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-quote tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M51.219 117.713V62.199H27.427c0-8.891 1.683-16.401 5.047-22.53 3.365-6.127 9.613-10.754 18.745-13.878V2c-7.45.961-14.36 3.184-20.728 6.669-6.368 3.484-11.835 7.87-16.401 13.157C9.524 27.113 5.98 33.241 3.456 40.21.933 47.18-.21 54.63.03 62.56v55.153H51.22zm76.781 0V62.199h-23.791c0-8.891 1.682-16.401 5.046-22.53 3.365-6.127 9.613-10.754 18.745-13.878V2c-7.45.961-14.359 3.184-20.727 6.669-6.369 3.484-11.836 7.87-16.402 13.157-4.566 5.287-8.11 11.415-10.634 18.384-2.523 6.97-3.665 14.42-3.424 22.35v55.153H128z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-refresh-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M106.369 39.433c10.16 20.879 6.57 46.764-10.771 64.106-21.87 21.87-57.327 21.87-79.196 0-21.87-21.87-21.87-57.326 0-79.196a8 8 0 1111.314 11.314c-15.621 15.62-15.621 40.947 0 56.568 15.62 15.621 40.947 15.621 56.568 0C97.72 78.79 99.6 58.175 89.924 42.73l-6.44 12.264a8 8 0 11-14.166-7.437L84.435 18.76a8 8 0 0110.838-3.345l28.873 15.345a8 8 0 11-7.51 14.129l-10.267-5.457zm-8.222-12.368c-.167-.19-.336-.38-.506-.57l.96-.296-.454.866z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-right-arrow tc-image-button" viewBox="0 0 128 128"><path d="M99.069 64.173c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l50.382-50.382-50.382-50.382a7.92 7.92 0 010-11.195c3.086-3.085 8.104-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.316 5.595z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-rotate-left tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><rect width="32" height="80" rx="8"/><rect width="80" height="32" x="48" y="96" rx="8"/><path d="M61.32 36.65c19.743 2.45 35.023 19.287 35.023 39.693a4 4 0 01-8 0c0-15.663-11.254-28.698-26.117-31.46l3.916 3.916a4 4 0 11-5.657 5.657L49.172 43.142a4 4 0 010-5.657l11.313-11.313a4 4 0 115.657 5.656l-4.821 4.822z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-save-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M120.783 34.33c4.641 8.862 7.266 18.948 7.266 29.646 0 35.347-28.653 64-64 64-35.346 0-64-28.653-64-64 0-35.346 28.654-64 64-64 18.808 0 35.72 8.113 47.43 21.03l2.68-2.68c3.13-3.13 8.197-3.132 11.321-.008 3.118 3.118 3.121 8.193-.007 11.32l-4.69 4.691zm-12.058 12.058a47.876 47.876 0 013.324 17.588c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48c14.39 0 27.3 6.332 36.098 16.362L58.941 73.544 41.976 56.578c-3.127-3.127-8.201-3.123-11.32-.005-3.123 3.124-3.119 8.194.006 11.319l22.617 22.617a7.992 7.992 0 005.659 2.347c2.05 0 4.101-.783 5.667-2.349l44.12-44.12z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-size tc-image-button" viewBox="0 0 128 128"><path d="M92.343 26l-9.171 9.172a4 4 0 105.656 5.656l16-16a4 4 0 000-5.656l-16-16a4 4 0 10-5.656 5.656L92.343 18H22a4 4 0 00-4 4v70.343l-9.172-9.171a4 4 0 10-5.656 5.656l16 16a4 4 0 005.656 0l16-16a4 4 0 10-5.656-5.656L26 92.343V22l-4 4h70.343zM112 52v64l4-4H52a4 4 0 100 8h64a4 4 0 004-4V52a4 4 0 10-8 0z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-spiral tc-image-button" viewBox="0 0 128 128"><path d="M64.534 68.348c3.39 0 6.097-2.62 6.476-5.968l-4.755-.538 4.75.583c.377-3.07-1.194-6.054-3.89-7.78-2.757-1.773-6.34-2.01-9.566-.7-3.46 1.403-6.14 4.392-7.35 8.148l-.01.026c-1.3 4.08-.72 8.64 1.58 12.52 2.5 4.2 6.77 7.2 11.76 8.27 5.37 1.15 11.11-.05 15.83-3.31 5.04-3.51 8.46-9.02 9.45-15.3 1.05-6.7-.72-13.63-4.92-19.19l.02.02c-4.42-5.93-11.2-9.82-18.78-10.78-7.96-1.01-16.13 1.31-22.59 6.43-6.81 5.39-11.18 13.41-12.11 22.26-.98 9.27 1.87 18.65 7.93 26.02 6.32 7.69 15.6 12.56 25.74 13.48 10.54.96 21.15-2.42 29.45-9.4l.01-.01c8.58-7.25 13.94-17.78 14.86-29.21.94-11.84-2.96-23.69-10.86-32.9-8.19-9.5-19.95-15.36-32.69-16.27-13.16-.94-26.24 3.49-36.34 12.34l.01-.01c-10.41 9.08-16.78 22.1-17.68 36.15-.93 14.44 4.03 28.77 13.79 39.78 10.03 11.32 24.28 18.2 39.6 19.09 15.73.92 31.31-4.56 43.24-15.234 12.23-10.954 19.61-26.44 20.5-43.074a4.785 4.785 0 00-4.52-5.03 4.778 4.778 0 00-5.03 4.52c-.75 14.1-7 27.2-17.33 36.45-10.03 8.98-23.11 13.58-36.3 12.81-12.79-.75-24.67-6.48-33-15.89-8.07-9.11-12.17-20.94-11.41-32.827.74-11.52 5.942-22.15 14.43-29.54l.01-.01c8.18-7.17 18.74-10.75 29.35-9.998 10.21.726 19.6 5.41 26.11 12.96 6.24 7.273 9.32 16.61 8.573 25.894-.718 8.9-4.88 17.064-11.504 22.66l.01-.007c-6.36 5.342-14.44 7.92-22.425 7.19-7.604-.68-14.52-4.314-19.21-10.027-4.44-5.4-6.517-12.23-5.806-18.94.67-6.3 3.76-11.977 8.54-15.766 4.46-3.54 10.05-5.128 15.44-4.44 5.03.63 9.46 3.18 12.32 7.01l.02.024c2.65 3.5 3.75 7.814 3.1 11.92-.59 3.71-2.58 6.925-5.45 8.924-2.56 1.767-5.61 2.403-8.38 1.81-2.42-.516-4.42-1.92-5.53-3.79-.93-1.56-1.15-3.3-.69-4.75l-4.56-1.446L59.325 65c.36-1.12 1.068-1.905 1.84-2.22.25-.103.48-.14.668-.13.06.006.11.015.14.025.01 0 .01 0-.01-.01a1.047 1.047 0 01-.264-.332c-.15-.29-.23-.678-.18-1.11l-.005.04c.15-1.332 1.38-2.523 3.035-2.523-2.65 0-4.79 2.144-4.79 4.787s2.14 4.785 4.78 4.785z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-stamp tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M49.733 64H16.01C11.584 64 8 67.583 8 72.003V97h112V72.003A8 8 0 00111.99 64H78.267A22.813 22.813 0 0175.5 53.077c0-6.475 2.687-12.324 7.009-16.497A22.818 22.818 0 0087 22.952C87 10.276 76.703 0 64 0S41 10.276 41 22.952c0 5.103 1.669 9.817 4.491 13.628 4.322 4.173 7.009 10.022 7.009 16.497 0 3.954-1.002 7.675-2.767 10.923zM8 104h112v8H8v-8z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-star-filled tc-image-button" viewBox="0 0 128 128"><path d="M61.836 96.823l37.327 27.287c2.72 1.99 6.379-.69 5.343-3.912L90.29 75.988l-1.26 3.91 37.285-27.345c2.718-1.993 1.32-6.327-2.041-6.33l-46.113-.036 3.3 2.416L67.176 4.416c-1.04-3.221-5.563-3.221-6.604 0L46.29 48.603l3.3-2.416-46.113.036c-3.362.003-4.759 4.337-2.04 6.33L38.72 79.898l-1.26-3.91-14.216 44.21c-1.036 3.223 2.622 5.901 5.343 3.912l37.326-27.287h-4.078z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-storyview-classic tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16C19.581 16 16 19.578 16 23.992v16.016C16 44.422 19.588 48 24 48h80c4.419 0 8-3.578 8-7.992V23.992c0-4.414-3.588-7.992-8-7.992H24zm0 48C19.581 64 16 67.59 16 72c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24zm0 32C19.581 96 16 99.59 16 104c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-storyview-pop tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16C19.581 16 16 19.578 16 23.992v16.016C16 44.422 19.588 48 24 48h80c4.419 0 8-3.578 8-7.992V23.992c0-4.414-3.588-7.992-8-7.992H24zm-7.99 40C11.587 56 8 59.578 8 63.992v16.016C8 84.422 11.584 88 16.01 88h95.98c4.424 0 8.01-3.578 8.01-7.992V63.992c0-4.414-3.584-7.992-8.01-7.992H16.01zM24 96C19.581 96 16 99.59 16 104c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24zm0-32C19.581 64 16 67.59 16 72c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-storyview-zoomin tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16A8 8 0 0016 24.009V71.99C16 76.414 19.588 80 24 80h80a8 8 0 008-8.009V24.01c0-4.423-3.588-8.009-8-8.009H24z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-strikethrough tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M92.794 38.726h15.422c-.229-6.74-1.514-12.538-3.856-17.393-2.342-4.855-5.54-8.881-9.596-12.08-4.055-3.199-8.767-5.54-14.136-7.025C75.258.743 69.433 0 63.15 0a62.76 62.76 0 00-16.364 2.142C41.474 3.57 36.733 5.74 32.564 8.653c-4.17 2.913-7.511 6.626-10.025 11.138-2.513 4.512-3.77 9.853-3.77 16.022 0 5.597 1.115 10.252 3.342 13.965 2.228 3.712 5.198 6.74 8.91 9.081 3.713 2.342 7.911 4.227 12.595 5.655a194.641 194.641 0 0014.308 3.77c4.855 1.085 9.624 2.142 14.308 3.17 4.683 1.028 8.881 2.37 12.594 4.027 3.713 1.656 6.683 3.798 8.91 6.425 2.228 2.628 3.342 6.055 3.342 10.281 0 4.456-.914 8.111-2.742 10.967a19.953 19.953 0 01-7.197 6.768c-2.97 1.657-6.311 2.828-10.024 3.513a60.771 60.771 0 01-11.052 1.028c-4.57 0-9.025-.571-13.366-1.713-4.34-1.143-8.139-2.913-11.394-5.312-3.256-2.4-5.884-5.455-7.883-9.168-1.999-3.712-2.998-8.139-2.998-13.28H15c0 7.426 1.342 13.852 4.027 19.278 2.684 5.426 6.34 9.881 10.966 13.365 4.627 3.484 9.996 6.083 16.107 7.797 6.112 1.713 12.595 2.57 19.449 2.57 5.597 0 11.223-.657 16.878-1.97 5.655-1.314 10.767-3.428 15.336-6.34 4.57-2.914 8.31-6.683 11.224-11.31 2.913-4.626 4.37-10.195 4.37-16.707 0-6.054-1.115-11.08-3.342-15.079-2.228-3.998-5.198-7.31-8.91-9.938-3.713-2.627-7.911-4.712-12.595-6.254a170.83 170.83 0 00-14.308-4.027 549.669 549.669 0 00-14.308-3.17c-4.683-.971-8.881-2.2-12.594-3.684-3.713-1.485-6.683-3.399-8.91-5.74-2.228-2.342-3.342-5.398-3.342-9.168 0-3.998.771-7.34 2.313-10.024 1.543-2.685 3.599-4.826 6.17-6.426 2.57-1.599 5.51-2.741 8.824-3.427a49.767 49.767 0 0110.11-1.028c8.453 0 15.393 1.97 20.819 5.912 5.426 3.94 8.596 10.31 9.51 19.106z"/><path d="M5 54h118v16H5z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-subscript tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M2.272 16h19.91l21.649 33.675L66.414 16h18.708L53.585 61.969l33.809 49.443H67.082L43.296 74.93l-24.187 36.48H0L33.808 61.97 2.272 16zM127.91 128.412H85.328c.059-5.168 1.306-9.681 3.741-13.542 2.435-3.86 5.761-7.216 9.978-10.066a112.388 112.388 0 016.325-4.321 50.09 50.09 0 006.058-4.499c1.841-1.603 3.356-3.34 4.543-5.211 1.188-1.871 1.812-4.024 1.871-6.46 0-1.128-.133-2.33-.4-3.607a9.545 9.545 0 00-1.56-3.564c-.772-1.098-1.84-2.019-3.207-2.761-1.366-.743-3.148-1.114-5.345-1.114-2.02 0-3.697.4-5.033 1.203-1.337.801-2.406 1.9-3.208 3.296-.801 1.396-1.395 3.044-1.781 4.944-.386 1.9-.609 3.95-.668 6.147H86.486c0-3.445.46-6.637 1.38-9.577.921-2.94 2.302-5.478 4.143-7.617 1.841-2.138 4.083-3.815 6.726-5.033 2.643-1.217 5.716-1.826 9.22-1.826 3.802 0 6.979.623 9.533 1.87 2.554 1.248 4.617 2.822 6.191 4.722 1.574 1.9 2.688 3.965 3.341 6.192.653 2.227.98 4.35.98 6.37 0 2.494-.386 4.75-1.158 6.77a21.803 21.803 0 01-3.118 5.568 31.516 31.516 0 01-4.454 4.677 66.788 66.788 0 01-5.167 4.009 139.198 139.198 0 01-5.346 3.563 79.237 79.237 0 00-4.944 3.386c-1.514 1.128-2.836 2.3-3.964 3.518-1.129 1.218-1.9 2.51-2.317 3.876h30.379v9.087z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-superscript tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M2.272 16h19.91l21.649 33.675L66.414 16h18.708L53.585 61.969l33.809 49.443H67.082L43.296 74.93l-24.187 36.48H0L33.808 61.97 2.272 16zM127.91 63.412H85.328c.059-5.168 1.306-9.681 3.741-13.542 2.435-3.86 5.761-7.216 9.978-10.066a112.388 112.388 0 016.325-4.321 50.09 50.09 0 006.058-4.499c1.841-1.603 3.356-3.34 4.543-5.211 1.188-1.871 1.812-4.024 1.871-6.46 0-1.128-.133-2.33-.4-3.607a9.545 9.545 0 00-1.56-3.564c-.772-1.098-1.84-2.019-3.207-2.761-1.366-.743-3.148-1.114-5.345-1.114-2.02 0-3.697.4-5.033 1.203-1.337.801-2.406 1.9-3.208 3.296-.801 1.396-1.395 3.044-1.781 4.944-.386 1.9-.609 3.95-.668 6.147H86.486c0-3.445.46-6.637 1.38-9.577.921-2.94 2.302-5.478 4.143-7.617 1.841-2.138 4.083-3.815 6.726-5.033 2.643-1.217 5.716-1.826 9.22-1.826 3.802 0 6.979.623 9.533 1.87 2.554 1.248 4.617 2.822 6.191 4.722 1.574 1.9 2.688 3.965 3.341 6.192.653 2.227.98 4.35.98 6.37 0 2.494-.386 4.75-1.158 6.77a21.803 21.803 0 01-3.118 5.568 31.516 31.516 0 01-4.454 4.677 66.788 66.788 0 01-5.167 4.009 139.198 139.198 0 01-5.346 3.563 79.237 79.237 0 00-4.944 3.386c-1.514 1.128-2.836 2.3-3.964 3.518-1.129 1.218-1.9 2.51-2.317 3.876h30.379v9.087z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-tag-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M18.164 47.66l.004 4.105c.003 3.823 2.19 9.097 4.885 11.792l61.85 61.85c2.697 2.697 7.068 2.69 9.769-.01L125.767 94.3a6.903 6.903 0 00.01-9.77L63.928 22.683c-2.697-2.697-7.976-4.88-11.796-4.881l-27.076-.007a6.902 6.902 0 00-6.91 6.91l.008 9.96.287.033c3.73.411 8.489-.044 13.365-1.153a9.702 9.702 0 0111.14-3.662l.291-.13.128.285a9.7 9.7 0 013.3 2.17c3.796 3.796 3.801 9.945.012 13.734-3.618 3.618-9.386 3.777-13.204.482-5.365 1.122-10.674 1.596-15.309 1.237z"/><path d="M47.633 39.532l.023.051c-9.689 4.356-21.584 6.799-30.396 5.828C5.273 44.089-1.028 36.43 2.443 24.078 5.562 12.976 14.3 4.361 24.047 1.548c10.68-3.083 19.749 1.968 19.749 13.225h-8.623c0-4.859-3.078-6.573-8.735-4.94-6.91 1.995-13.392 8.383-15.694 16.577-1.915 6.818.417 9.653 7.46 10.43 7.126.785 17.531-1.352 25.917-5.121l.027.06.036-.017c1.76-.758 6.266 6.549 3.524 7.74a2.8 2.8 0 01-.075.03z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-fa-telegram-plane tc-image-button" viewBox="0 0 448 512"><path style="fill:#000000;" d="M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-theme-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M55.854 66.945a122.626 122.626 0 01-3.9-4.819c-11.064-14.548-16.645-6.888-22.96 0-6.315 6.888 1.664 12.47-4.33 17.335-5.993 4.866-5.623 6.552-15.737-2.35-10.115-8.9-10.815-11.351-6.172-16.43 4.644-5.08 8.524 2.918 18.01-6.108 9.485-9.026 1.517-17.026 1.517-17.026S42.03-2.824 68.42.157c26.39 2.982-9.984-3.86-19.031 27.801-3.874 13.556.72 10.362 8.066 16.087 1.707 1.33 6.428 4.732 12.671 9.318-6.129 5.879-11.157 10.669-14.273 13.582zm11.641 12.947c16.013 17.036 37.742 37.726 45.117 40.42 10.432 3.813 15.388-3.141 15.388-14.79 0-7.151-23.83-26.542-43.924-41.769-7.408 7.156-13.376 12.953-16.58 16.139z"/><path d="M11.069 109.828L46.31 74.587a3.56 3.56 0 115.037-5.032l15.098 15.098a3.56 3.56 0 11-5.032 5.037l-35.24 35.241c-4.171 4.17-10.933 4.17-15.104 0-4.17-4.17-4.17-10.933 0-15.103zM124.344 6.622l5.034 5.034-7.49 12.524-7.613 2.58L61.413 79.62l-5.034-5.034 52.861-52.862 2.58-7.614 12.524-7.49z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-timestamp-off tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10a5 5 0 010-10H66.69a5 5 0 015 5c.006 2.757-2.238 5-5 5H49.705z"/><path d="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"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-timestamp-on tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10a5 5 0 010-10H66.69a5 5 0 015 5c.006 2.757-2.238 5-5 5H49.705z"/><path d="M13.41 27.178a5.005 5.005 0 01-7.045-.613 5.008 5.008 0 01.616-7.047l9.95-8.348a5 5 0 016.429 7.661l-9.95 8.348zm89.573 0a5.005 5.005 0 007.045-.613 5.008 5.008 0 00-.616-7.047l-9.95-8.348a5 5 0 00-6.428 7.661l9.95 8.348zM65.097 71.072c0 3.826-3.09 6.928-6.897 6.928-3.804.006-6.9-3.102-6.903-6.928 0 0 4.76-39.072 6.903-39.072s6.897 39.072 6.897 39.072z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-tip tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M64 128.242c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64-35.346 0-64 28.654-64 64 0 35.346 28.654 64 64 64zm11.936-36.789c-.624 4.129-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349C54.33 94.05 58.824 95.82 64 95.82c5.175 0 9.67-1.769 11.936-4.366zm0 4.492c-.624 4.13-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zm0 4.456c-.624 4.129-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zm0 4.492c-.624 4.13-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zM64.3 24.242c11.618 0 23.699 7.82 23.699 24.2S75.92 71.754 75.92 83.576c0 5.873-5.868 9.26-11.92 9.26s-12.027-3.006-12.027-9.26C51.973 71.147 40 65.47 40 48.442s12.683-24.2 24.301-24.2z"/></svg>
+<svg width="22pt" height="22pt" class="tc-transcludify-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M0 59.482c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 002.75-.932 6.762 6.762 0 002.306-1.907c.651-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 00-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 00-2.75-1.02C1.36 67.377.591 67.288 0 67.288v-7.806zm24.66 0c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 002.75-.932 6.762 6.762 0 002.306-1.907c.65-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 00-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 00-2.75-1.02c-.946-.177-1.715-.266-2.306-.266v-7.806zm43.965-3.538L80.6 52.041l2.306 7.097-12.063 3.903 7.628 10.378-6.12 4.435-7.63-10.467-7.45 10.201-5.943-4.524 7.628-10.023-12.152-4.17 2.306-7.096 12.064 4.17V43.347h7.451v12.596zm34.425 11.344c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 00-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 00.71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 00-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 002.262 2.084 8.868 8.868 0 002.75 1.02c.946.177 1.745.266 2.395.266v7.806zm24.66 0c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 00-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 00.71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 00-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 002.262 2.084 8.868 8.868 0 002.75 1.02c.946.177 1.745.266 2.395.266v7.806z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-twitter tc-image-button" viewBox="0 0 128 128"><path style="fill:#000000;" d="M41.626 115.803A73.376 73.376 0 012 104.235c2.022.238 4.08.36 6.166.36 12.111 0 23.258-4.117 32.105-11.023-11.312-.208-20.859-7.653-24.148-17.883a25.98 25.98 0 0011.674-.441C15.971 72.881 7.061 62.474 7.061 49.997c0-.108 0-.216.002-.323a25.824 25.824 0 0011.709 3.22c-6.936-4.617-11.5-12.5-11.5-21.433 0-4.719 1.274-9.142 3.5-12.945 12.75 15.579 31.797 25.83 53.281 26.904-.44-1.884-.67-3.85-.67-5.868 0-14.22 11.575-25.75 25.852-25.75a25.865 25.865 0 0118.869 8.132 51.892 51.892 0 0016.415-6.248c-1.93 6.012-6.029 11.059-11.366 14.246A51.844 51.844 0 00128 25.878a52.428 52.428 0 01-12.9 13.33c.05 1.104.075 2.214.075 3.33 0 34.028-26 73.265-73.549 73.265"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-underline tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M7 117.421h114.248V128H7v-10.579zm97.871-18.525V0h-16.26v55.856c0 4.463-.605 8.576-1.816 12.338-1.212 3.762-3.03 7.046-5.452 9.851-2.423 2.806-5.452 4.974-9.086 6.504-3.635 1.53-7.939 2.296-12.912 2.296-6.25 0-11.159-1.786-14.73-5.356-3.57-3.571-5.356-8.417-5.356-14.538V0H23v65.038c0 5.356.542 10.234 1.626 14.633 1.084 4.4 2.965 8.194 5.643 11.382 2.678 3.188 6.185 5.643 10.52 7.365 4.337 1.721 9.756 2.582 16.26 2.582 7.27 0 13.582-1.435 18.938-4.304 5.356-2.87 9.755-7.365 13.199-13.486h.382v15.686h15.303z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-unfold-all tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><rect width="128" height="16" rx="8"/><rect width="128" height="16" y="64" rx="8"/><path d="M63.945 60.624c-2.05 0-4.101-.78-5.666-2.345L35.662 35.662c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L63.94 41.314l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.603 58.279a7.986 7.986 0 01-5.663 2.346zM64.004 124.565c-2.05 0-4.102-.78-5.666-2.345L35.721 99.603c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.191-3.122 11.318.005L64 105.255l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.662 122.22a7.986 7.986 0 01-5.663 2.346z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-unfold tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><rect width="128" height="16" rx="8"/><path d="M63.945 63.624c-2.05 0-4.101-.78-5.666-2.345L35.662 38.662c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L63.94 44.314l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.603 61.279a7.986 7.986 0 01-5.663 2.346zM64.004 105.682c-2.05.001-4.102-.78-5.666-2.344L35.721 80.721c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.191-3.122 11.318.005L64 86.373l16.966-16.966c3.124-3.125 8.194-3.13 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319l-22.617 22.617a7.986 7.986 0 01-5.663 2.346z"/></g></svg>
+<svg width="22pt" height="22pt" class="tc-image-unlocked-padlock tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M48.627 64H105v32.01C105 113.674 90.674 128 73.001 128H56C38.318 128 24 113.677 24 96.01V64h6.136c-10.455-12.651-27.364-35.788-4.3-55.142 24.636-20.672 45.835 4.353 55.777 16.201 9.943 11.85-2.676 22.437-12.457 9.892-9.78-12.545-21.167-24.146-33.207-14.043-12.041 10.104-1.757 22.36 8.813 34.958 2.467 2.94 3.641 5.732 3.865 8.134zm19.105 28.364A8.503 8.503 0 0064.5 76a8.5 8.5 0 00-3.498 16.25l-5.095 22.77H72.8l-5.07-22.656z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-up-arrow tc-image-button" viewBox="0 0 128 128"><path d="M63.892.281c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.104 3.092-11.196 0L63.894 19.393 13.513 69.774a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l55.98-55.98A7.892 7.892 0 0163.893.28z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-video tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M64 12c-34.91 0-55.273 2.917-58.182 5.833C2.91 20.75 0 41.167 0 64.5c0 23.333 2.91 43.75 5.818 46.667C8.728 114.083 29.091 117 64 117c34.91 0 55.273-2.917 58.182-5.833C125.09 108.25 128 87.833 128 64.5c0-23.333-2.91-43.75-5.818-46.667C119.272 14.917 98.909 12 64 12zm-9.084 32.618c-3.813-2.542-6.905-.879-6.905 3.698v31.368c0 4.585 3.099 6.235 6.905 3.698l22.168-14.779c3.813-2.542 3.806-6.669 0-9.206L54.916 44.618z"/></svg>
+<svg width="22pt" height="22pt" class="tc-image-warning tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M57.072 11c3.079-5.333 10.777-5.333 13.856 0l55.426 96c3.079 5.333-.77 12-6.928 12H8.574c-6.158 0-10.007-6.667-6.928-12l55.426-96zM64 37c-4.418 0-8 3.582-8 7.994v28.012C56 77.421 59.59 81 64 81c4.418 0 8-3.582 8-7.994V44.994C72 40.579 68.41 37 64 37zm0 67a8 8 0 100-16 8 8 0 000 16z"/></svg>
+<svg class="tc-image-social-whatsapp tc-image-button" width="22pt" height="22pt" viewBox="0 0 38 38.295997619628906"><path fill-rule="evenodd" d="M28.092 22.894c-.468-.256-2.766-1.496-3.196-1.671-.43-.175-.745-.267-1.08.199-.336.463-1.289 1.502-1.578 1.81-.29.307-.57.335-1.036.079-.468-.256-1.984-.817-3.741-2.506-1.368-1.315-2.266-2.91-2.526-3.397-.26-.487-.002-.736.245-.964.223-.205.498-.538.746-.807.248-.27.336-.465.506-.776.17-.313.102-.593-.008-.836-.11-.243-.975-2.621-1.336-3.59-.361-.967-.764-.823-1.042-.834-.277-.01-.594-.062-.911-.074-.318-.012-.838.088-1.292.549-.454.459-1.728 1.565-1.815 3.908-.088 2.343 1.533 4.671 1.759 4.997.226.327 3.096 5.405 7.865 7.494 4.77 2.088 4.794 1.452 5.67 1.405.875-.046 2.86-1.047 3.299-2.143.439-1.097.474-2.05.362-2.254-.112-.202-.425-.334-.891-.59zm-8.747 11.29c-3.154 0-6.092-.946-8.544-2.567l-5.968 1.91 1.94-5.767a15.447 15.447 0 0 1-2.957-9.105c0-8.564 6.966-15.53 15.529-15.53 8.563 0 15.53 6.966 15.53 15.53 0 8.563-6.967 15.53-15.53 15.53zm0-34.184C9.042 0 .69 8.352.69 18.655c0 3.525.979 6.82 2.677 9.633L0 38.296l10.329-3.306a18.577 18.577 0 0 0 9.016 2.32C29.647 37.31 38 28.957 38 18.655 38 8.352 29.647 0 19.345 0z"/></svg>
+\define colour-picker-update-recent()
+<$action-listops
+ $tiddler="$:/config/ColourPicker/Recent"
+ $subfilter="$(colour-picker-value)$ [list[$:/config/ColourPicker/Recent]remove[$(colour-picker-value)$]] +[limit[8]]"
+/>
+\end
+
+\define colour-picker-inner(actions)
+<$button tag="a" tooltip="""$(colour-picker-value)$""">
+
+$(colour-picker-update-recent)$
+
+$actions$
+
+<span style="display:inline-block; background-color: $(colour-picker-value)$; width: 100%; height: 100%; border-radius: 50%;"/>
+
+</$button>
+\end
+
+\define colour-picker-recent-inner(actions)
+<$set name="colour-picker-value" value="$(recentColour)$">
+<$macrocall $name="colour-picker-inner" actions="""$actions$"""/>
+</$set>
+\end
+
+\define colour-picker-recent(actions)
+{{$:/language/ColourPicker/Recent}} <$list filter="[list[$:/config/ColourPicker/Recent]]" variable="recentColour">
+<$macrocall $name="colour-picker-recent-inner" actions="""$actions$"""/></$list>
+\end
+
+\define colour-picker(actions)
+<div class="tc-colour-chooser">
+
+<$macrocall $name="colour-picker-recent" actions="""$actions$"""/>
+
+---
+
+<$list filter="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" variable="colour-picker-value">
+<$macrocall $name="colour-picker-inner" actions="""$actions$"""/>
+</$list>
+
+---
+
+<$edit-text tiddler="$:/config/ColourPicker/New" tag="input" default="" placeholder=""/>
+<$edit-text tiddler="$:/config/ColourPicker/New" type="color" tag="input"/>
+<$set name="colour-picker-value" value={{$:/config/ColourPicker/New}}>
+<$macrocall $name="colour-picker-inner" actions="""$actions$"""/>
+</$set>
+
+</div>
+
+\end
+
+\define copy-to-clipboard(src,class:"tc-btn-invisible",style)
+<$button class=<<__class__>> style=<<__style__>> message="tm-copy-to-clipboard" param=<<__src__>> tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>
+{{$:/core/images/copy-clipboard}} <$text text={{$:/language/Buttons/CopyToClipboard/Caption}}/>
+</$button>
+\end
+
+\define copy-to-clipboard-above-right(src,class:"tc-btn-invisible",style)
+<div style="position: relative;">
+<div style="position: absolute; bottom: 0; right: 0;">
+<$macrocall $name="copy-to-clipboard" src=<<__src__>> class=<<__class__>> style=<<__style__>>/>
+</div>
+</div>
+\end
+
+
+\define colour(name)
+<$transclude tiddler={{$:/palette}} index="$name$"><$transclude tiddler="$:/palettes/Vanilla" index="$name$"><$transclude tiddler="$:/config/DefaultColourMappings/$name$"/></$transclude></$transclude>
+\end
+
+\define color(name)
+<<colour $name$>>
+\end
+
+\define box-shadow(shadow)
+``
+ -webkit-box-shadow: $shadow$;
+ -moz-box-shadow: $shadow$;
+ box-shadow: $shadow$;
+``
+\end
+
+\define filter(filter)
+``
+ -webkit-filter: $filter$;
+ -moz-filter: $filter$;
+ filter: $filter$;
+``
+\end
+
+\define transition(transition)
+``
+ -webkit-transition: $transition$;
+ -moz-transition: $transition$;
+ transition: $transition$;
+``
+\end
+
+\define transform-origin(origin)
+``
+ -webkit-transform-origin: $origin$;
+ -moz-transform-origin: $origin$;
+ transform-origin: $origin$;
+``
+\end
+
+\define background-linear-gradient(gradient)
+``
+background-image: linear-gradient($gradient$);
+background-image: -o-linear-gradient($gradient$);
+background-image: -moz-linear-gradient($gradient$);
+background-image: -webkit-linear-gradient($gradient$);
+background-image: -ms-linear-gradient($gradient$);
+``
+\end
+
+\define column-count(columns)
+``
+-moz-column-count: $columns$;
+-webkit-column-count: $columns$;
+column-count: $columns$;
+``
+\end
+
+\define datauri(title)
+<$macrocall $name="makedatauri" type={{$title$!!type}} text={{$title$}} _canonical_uri={{$title$!!_canonical_uri}}/>
+\end
+
+\define if-sidebar(text)
+<$reveal state="$:/state/sidebar" type="match" text="yes" default="yes">$text$</$reveal>
+\end
+
+\define if-no-sidebar(text)
+<$reveal state="$:/state/sidebar" type="nomatch" text="yes" default="yes">$text$</$reveal>
+\end
+
+\define if-background-attachment(text)
+<$reveal state="$:/themes/tiddlywiki/vanilla/settings/backgroundimage" type="nomatch" text="">$text$</$reveal>
+\end
+
+\define compareTiddlerText(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle)
+<$set name="source" tiddler=<<__sourceTiddlerTitle__>> subtiddler=<<__sourceSubTiddlerTitle__>>>
+<$set name="dest" tiddler=<<__destTiddlerTitle__>> subtiddler=<<__destSubTiddlerTitle__>>>
+<$diff-text source=<<source>> dest=<<dest>>/>
+</$set>
+</$set>
+\end
+
+\define compareTiddlers(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle,exclude)
+<table class="tc-diff-tiddlers">
+<tbody>
+<$set name="sourceFields" filter="[<__sourceTiddlerTitle__>fields[]sort[]]">
+<$set name="destFields" filter="[<__destSubTiddlerTitle__>subtiddlerfields<__destTiddlerTitle__>sort[]]">
+<$list filter="[enlist<sourceFields>] [enlist<destFields>] -[enlist<__exclude__>] +[sort[]]" variable="fieldName">
+<tr>
+<th>
+<$text text=<<fieldName>>/>
+</th>
+<td>
+<$set name="source" tiddler=<<__sourceTiddlerTitle__>> subtiddler=<<__sourceSubTiddlerTitle__>> field=<<fieldName>>>
+<$set name="dest" tiddler=<<__destTiddlerTitle__>> subtiddler=<<__destSubTiddlerTitle__>> field=<<fieldName>>>
+<$diff-text source=<<source>> dest=<<dest>>>
+</$diff-text>
+</$set>
+</$set>
+</td>
+</tr>
+</$list>
+</$set>
+</$set>
+</tbody>
+</table>
+\end
+
+\define dumpvariables()
+<ul>
+<$list filter="[variables[]]" variable="varname">
+<li>
+<strong><code><$text text=<<varname>>/></code></strong>:<br/>
+<$codeblock code={{{ [<varname>getvariable[]] }}}/>
+</li>
+</$list>
+</ul>
+\end
+
+\define exportButtonFilename(baseFilename)
+$baseFilename$$(extension)$
+\end
+
+\define exportButton(exportFilter:"[!is[system]sort[title]]",lingoBase,baseFilename:"tiddlers")
+<span class="tc-popup-keep"><$button popup=<<qualify "$:/state/popup/export">> tooltip={{$lingoBase$Hint}} aria-label={{$lingoBase$Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/export-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$lingoBase$Caption}}/></span>
+</$list>
+</$button></span><$reveal state=<<qualify "$:/state/popup/export">> type="popup" position="below" animate="yes">
+<div class="tc-drop-down">
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/Exporter]]">
+<$set name="extension" value={{!!extension}}>
+<$button class="tc-btn-invisible">
+<$action-sendmessage $message="tm-download-file" $param=<<currentTiddler>> exportFilter="""$exportFilter$""" filename=<<exportButtonFilename """$baseFilename$""">>/>
+<$action-deletetiddler $tiddler=<<qualify "$:/state/popup/export">>/>
+<$transclude field="description"/>
+</$button>
+</$set>
+</$list>
+</div>
+</$reveal>
+\end
+
+\define image-picker-thumbnail(actions)
+<$button tag="a" tooltip="""$(imageTitle)$""">
+$actions$
+<$transclude tiddler=<<imageTitle>>/>
+</$button>
+\end
+
+\define image-picker-list(filter,actions)
+<$list filter="""$filter$""" variable="imageTitle">
+<$macrocall $name="image-picker-thumbnail" actions="""$actions$"""/>
+</$list>
+\end
+
+\define image-picker(actions,filter:"[all[shadows+tiddlers]is[image]] -[type[application/pdf]] +[!has[draft.of]$subfilter$sort[title]]",subfilter:"")
+<div class="tc-image-chooser">
+<$vars state-system=<<qualify "$:/state/image-picker/system">>>
+<$checkbox tiddler=<<state-system>> field="text" checked="show" unchecked="hide" default="hide">
+{{$:/language/SystemTiddlers/Include/Prompt}}
+</$checkbox>
+<$reveal state=<<state-system>> type="match" text="hide" default="hide" tag="div">
+<$macrocall $name="image-picker-list" filter="""$filter$ +[!is[system]]""" actions="""$actions$"""/>
+</$reveal>
+<$reveal state=<<state-system>> type="nomatch" text="hide" default="hide" tag="div">
+<$macrocall $name="image-picker-list" filter="""$filter$""" actions="""$actions$"""/>
+</$reveal>
+</$vars>
+</div>
+\end
+
+\define image-picker-include-tagged-images(actions)
+<$macrocall $name="image-picker" filter="[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[!has[draft.of]sort[title]]" actions="""$actions$"""/>
+\end
+
+\define lingo-base()
+$:/language/
+\end
+
+\define lingo(title)
+{{$(lingo-base)$$title$}}
+\end
+
+\define list-links(filter,type:"ul",subtype:"li",class:"",emptyMessage)
+\whitespace trim
+<$type$ class="$class$">
+<$list filter="$filter$" emptyMessage=<<__emptyMessage__>>>
+<$subtype$>
+<$link to={{!!title}}>
+<$transclude field="caption">
+<$view field="title"/>
+</$transclude>
+</$link>
+</$subtype$>
+</$list>
+</$type$>
+\end
+
+\define list-links-draggable-drop-actions()
+<$action-listops $tiddler=<<targetTiddler>> $field=<<targetField>> $subfilter="+[insertbefore:currentTiddler<actionTiddler>]"/>
+\end
+
+\define list-links-draggable(tiddler,field:"list",type:"ul",subtype:"li",class:"",itemTemplate)
+\whitespace trim
+<span class="tc-links-draggable-list">
+<$vars targetTiddler="""$tiddler$""" targetField="""$field$""">
+<$type$ class="$class$">
+<$list filter="[list[$tiddler$!!$field$]]">
+<$droppable actions=<<list-links-draggable-drop-actions>> tag="""$subtype$""" enable=<<tv-enable-drag-and-drop>>>
+<div class="tc-droppable-placeholder"/>
+<div>
+<$transclude tiddler="""$itemTemplate$""">
+<$link to={{!!title}}>
+<$transclude field="caption">
+<$view field="title"/>
+</$transclude>
+</$link>
+</$transclude>
+</div>
+</$droppable>
+</$list>
+</$type$>
+<$tiddler tiddler="">
+<$droppable actions=<<list-links-draggable-drop-actions>> tag="div" enable=<<tv-enable-drag-and-drop>>>
+<div class="tc-droppable-placeholder">
+
+</div>
+<div style="height:0.5em;"/>
+</$droppable>
+</$tiddler>
+</$vars>
+</span>
+\end
+
+\define list-tagged-draggable-drop-actions(tag)
+<!-- Save the current ordering of the tiddlers with this tag -->
+<$set name="order" filter="[<__tag__>tagging[]]">
+<!-- Remove any list-after or list-before fields from the tiddlers with this tag -->
+<$list filter="[<__tag__>tagging[]]">
+<$action-deletefield $field="list-before"/>
+<$action-deletefield $field="list-after"/>
+</$list>
+<!-- Save the new order to the Tag Tiddler -->
+<$action-listops $tiddler=<<__tag__>> $field="list" $filter="+[enlist<order>] +[insertbefore:currentTiddler<actionTiddler>]"/>
+<!-- Make sure the newly added item has the right tag -->
+<!-- Removing this line makes dragging tags within the dropdown work as intended -->
+<!--<$action-listops $tiddler=<<actionTiddler>> $tags=<<__tag__>>/>-->
+<!-- Using the following 5 lines as replacement makes dragging titles from outside into the dropdown apply the tag -->
+<$list filter="[<actionTiddler>!contains:tags<__tag__>]">
+<$fieldmangler tiddler=<<actionTiddler>>>
+<$action-sendmessage $message="tm-add-tag" $param=<<__tag__>>/>
+</$fieldmangler>
+</$list>
+</$set>
+\end
+
+\define list-tagged-draggable(tag,subFilter,emptyMessage,itemTemplate,elementTag:"div",storyview:"")
+\whitespace trim
+<span class="tc-tagged-draggable-list">
+<$set name="tag" value=<<__tag__>>>
+<$list filter="[<__tag__>tagging[]$subFilter$]" emptyMessage=<<__emptyMessage__>> storyview=<<__storyview__>>>
+<$elementTag$ class="tc-menu-list-item">
+<$droppable actions="""<$macrocall $name="list-tagged-draggable-drop-actions" tag=<<__tag__>>/>""" enable=<<tv-enable-drag-and-drop>>>
+<$elementTag$ class="tc-droppable-placeholder"/>
+<$elementTag$>
+<$transclude tiddler="""$itemTemplate$""">
+<$link to={{!!title}}>
+<$view field="title"/>
+</$link>
+</$transclude>
+</$elementTag$>
+</$droppable>
+</$elementTag$>
+</$list>
+<$tiddler tiddler="">
+<$droppable actions="""<$macrocall $name="list-tagged-draggable-drop-actions" tag=<<__tag__>>/>""" enable=<<tv-enable-drag-and-drop>>>
+<$elementTag$ class="tc-droppable-placeholder"/>
+<$elementTag$ style="height:0.5em;">
+</$elementTag$>
+</$droppable>
+</$tiddler>
+</$set>
+</span>
+\end
+
+\define tabs(tabsList,default,state:"$:/state/tab",class,template,buttonTemplate,retain)
+<div class="tc-tab-set $class$">
+<div class="tc-tab-buttons $class$">
+<$list filter="$tabsList$" variable="currentTab" storyview="pop"><$set name="save-currentTiddler" value=<<currentTiddler>>><$tiddler tiddler=<<currentTab>>><$button set=<<qualify "$state$">> setTo=<<currentTab>> default="$default$" selectedClass="tc-tab-selected" tooltip={{!!tooltip}}>
+<$tiddler tiddler=<<save-currentTiddler>>>
+<$set name="tv-wikilinks" value="no">
+<$transclude tiddler="$buttonTemplate$" mode="inline">
+<$transclude tiddler=<<currentTab>> field="caption">
+<$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/>
+</$transclude>
+</$transclude>
+</$set></$tiddler></$button></$tiddler></$set></$list>
+</div>
+<div class="tc-tab-divider $class$"/>
+<div class="tc-tab-content $class$">
+<$list filter="$tabsList$" variable="currentTab">
+
+<$reveal type="match" state=<<qualify "$state$">> text=<<currentTab>> default="$default$" retain="""$retain$""">
+
+<$transclude tiddler="$template$" mode="block">
+
+<$transclude tiddler=<<currentTab>> mode="block"/>
+
+</$transclude>
+
+</$reveal>
+
+</$list>
+</div>
+</div>
+\end
+
+\define tag-pill-styles()
+background-color:$(backgroundColor)$;
+fill:$(foregroundColor)$;
+color:$(foregroundColor)$;
+\end
+
+\define tag-pill-inner(tag,icon,colour,fallbackTarget,colourA,colourB,element-tag,element-attributes,actions)
+<$vars foregroundColor=<<contrastcolour target:"""$colour$""" fallbackTarget:"""$fallbackTarget$""" colourA:"""$colourA$""" colourB:"""$colourB$""">> backgroundColor="""$colour$""">
+<$element-tag$ $element-attributes$ class="tc-tag-label tc-btn-invisible" style=<<tag-pill-styles>>>
+$actions$<$transclude tiddler="""$icon$"""/><$view tiddler=<<__tag__>> field="title" format="text" />
+</$element-tag$>
+</$vars>
+\end
+
+\define tag-pill-body(tag,icon,colour,palette,element-tag,element-attributes,actions)
+<$macrocall $name="tag-pill-inner" tag=<<__tag__>> icon="""$icon$""" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} element-tag="""$element-tag$""" element-attributes="""$element-attributes$""" actions="""$actions$"""/>
+\end
+
+\define tag-pill(tag,element-tag:"span",element-attributes:"",actions:"")
+<span class="tc-tag-list-item">
+<$macrocall $name="tag-pill-body" tag=<<__tag__>> icon={{{ [<__tag__>get[icon]] }}} colour={{{ [<__tag__>get[color]] }}} palette={{$:/palette}} element-tag="""$element-tag$""" element-attributes="""$element-attributes$""" actions="""$actions$"""/>
+</span>
+\end
+
+\define tag(tag)
+{{$tag$||$:/core/ui/TagTemplate}}
+\end
+
+\define add-tag-actions()
+<$action-sendmessage $message="tm-add-tag" $param={{{ [<newTagNameTiddler>get[text]] }}}/>
+<$action-deletetiddler $tiddler=<<newTagNameTiddler>>/>
+\end
+
+\define tag-button()
+<$button class="tc-btn-invisible" tag="a" tooltip={{$:/language/EditTemplate/Tags/Add/Button/Hint}}>
+<$action-sendmessage $message="tm-add-tag" $param=<<tag>>/>
+<$action-deletetiddler $tiddler=<<newTagNameTiddler>>/>
+<$macrocall $name="tag-pill" tag=<<tag>>/>
+</$button>
+\end
+
+\define tag-picker-inner()
+\whitespace trim
+<div class="tc-edit-add-tag">
+<span class="tc-add-tag-name">
+<$keyboard key="ENTER" actions=<<add-tag-actions>>>
+<$edit-text tiddler=<<newTagNameTiddler>> tag="input" default="" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} focusPopup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-edit-texteditor tc-popup-handle" tabindex=<<tabIndex>> focus={{{ [{$:/config/AutoFocus}match[tags]then[true]] ~[[false]] }}}/>
+</$keyboard>
+</span> <$button popup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-btn-invisible" tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button> <span class="tc-add-tag-button">
+<$set name="tag" value={{{ [<newTagNameTiddler>get[text]] }}}>
+<$button set="$:/temp/NewTagName" setTo="" class="">
+<<add-tag-actions>>
+<$action-deletetiddler $tiddler=<<newTagNameTiddler>>/>
+{{$:/language/EditTemplate/Tags/Add/Button}}
+</$button>
+</$set>
+</span>
+</div>
+<div class="tc-block-dropdown-wrapper">
+<$reveal state=<<qualify "$:/state/popup/tags-auto-complete">> type="nomatch" text="" default="">
+<div class="tc-block-dropdown">
+<$set name="newTagName" value={{{ [<newTagNameTiddler>get[text]] }}}>
+<$list filter="[<newTagName>minlength{$:/config/Tags/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
+<$list filter="[tags[]!is[system]search:title<newTagName>sort[]]" variable="tag">
+<<tag-button>>
+</$list></$list>
+<hr>
+<$list filter="[<newTagName>minlength{$:/config/Tags/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
+<$list filter="[tags[]is[system]search:title<newTagName>sort[]]" variable="tag">
+<<tag-button>>
+</$list></$list>
+</$set>
+</div>
+</$reveal>
+</div>
+\end
+\define tag-picker()
+\whitespace trim
+<$list filter="[<newTagNameTiddler>match[]]" emptyMessage=<<tag-picker-inner>>>
+<$set name="newTagNameTiddler" value=<<qualify "$:/temp/NewTagName">>>
+<<tag-picker-inner>>
+</$set>
+</$list>
+\end
+
+\define thumbnail(link,icon,color,background-color,image,caption,width:"280",height:"157")
+<$link to="""$link$"""><div class="tc-thumbnail-wrapper">
+<div class="tc-thumbnail-image" style="width:$width$px;height:$height$px;"><$reveal type="nomatch" text="" default="""$image$""" tag="div" style="width:$width$px;height:$height$px;">
+[img[$image$]]
+</$reveal><$reveal type="match" text="" default="""$image$""" tag="div" class="tc-thumbnail-background" style="width:$width$px;height:$height$px;background-color:$background-color$;"></$reveal></div><div class="tc-thumbnail-icon" style="fill:$color$;color:$color$;">
+$icon$
+</div><div class="tc-thumbnail-caption">
+$caption$
+</div>
+</div></$link>
+\end
+
+\define thumbnail-right(link,icon,color,background-color,image,caption,width:"280",height:"157")
+<div class="tc-thumbnail-right-wrapper"><<thumbnail """$link$""" """$icon$""" """$color$""" """$background-color$""" """$image$""" """$caption$""" """$width$""" """$height$""">></div>
+\end
+
+\define list-thumbnails(filter,width:"280",height:"157")
+<$list filter="""$filter$"""><$macrocall $name="thumbnail" link={{!!link}} icon={{!!icon}} color={{!!color}} background-color={{!!background-color}} image={{!!image}} caption={{!!caption}} width="""$width$""" height="""$height$"""/></$list>
+\end
+
+\define timeline-title()
+\whitespace trim
+<!-- Override this macro with a global macro
+ of the same name if you need to change
+ how titles are displayed on the timeline
+ -->
+<$view field="title"/>
+\end
+\define timeline(limit:"100",format:"DDth MMM YYYY",subfilter:"",dateField:"modified")
+<div class="tc-timeline">
+<$list filter="[!is[system]$subfilter$has[$dateField$]!sort[$dateField$]limit[$limit$]eachday[$dateField$]]">
+<div class="tc-menu-list-item">
+<$view field="$dateField$" format="date" template="$format$"/>
+<$list filter="[sameday:$dateField${!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]">
+<div class="tc-menu-list-subitem">
+<$link to={{!!title}}><<timeline-title>></$link>
+</div>
+</$list>
+</div>
+</$list>
+</div>
+\end
+
+\define toc-caption()
+<$set name="tv-wikilinks" value="no">
+ <$transclude field="caption">
+ <$view field="title"/>
+ </$transclude>
+</$set>
+\end
+
+\define toc-body(tag,sort:"",itemClassFilter,exclude,path)
+<ol class="tc-toc">
+ <$list filter="""[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]""">
+ <$vars item=<<currentTiddler>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>
+ <$set name="excluded" filter="""[enlist<__exclude__>] [<__tag__>]""">
+ <$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item">
+ <li class=<<toc-item-class>>>
+ <$list filter="[all[current]toc-link[no]]" emptyMessage="<$link><$view field='caption'><$view field='title'/></$view></$link>">
+ <<toc-caption>>
+ </$list>
+ <$macrocall $name="toc-body" tag=<<item>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<excluded>> path=<<path>>/>
+ </li>
+ </$set>
+ </$set>
+ </$vars>
+ </$list>
+</ol>
+\end
+
+\define toc(tag,sort:"",itemClassFilter:"")
+<$macrocall $name="toc-body" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> />
+\end
+
+\define toc-linked-expandable-body(tag,sort:"",itemClassFilter,exclude,path)
+<!-- helper function -->
+<$qualify name="toc-state" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>
+ <$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item">
+ <li class=<<toc-item-class>>>
+ <$link>
+ <$reveal type="nomatch" stateTitle=<<toc-state>> text="open">
+ <$button setTitle=<<toc-state>> setTo="open" class="tc-btn-invisible tc-popup-keep">
+ {{$:/core/images/right-arrow}}
+ </$button>
+ </$reveal>
+ <$reveal type="match" stateTitle=<<toc-state>> text="open">
+ <$button setTitle=<<toc-state>> setTo="close" class="tc-btn-invisible tc-popup-keep">
+ {{$:/core/images/down-arrow}}
+ </$button>
+ </$reveal>
+ <<toc-caption>>
+ </$link>
+ <$reveal type="match" stateTitle=<<toc-state>> text="open">
+ <$macrocall $name="toc-expandable" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>
+ </$reveal>
+ </li>
+ </$set>
+</$qualify>
+\end
+
+\define toc-unlinked-expandable-body(tag,sort:"",itemClassFilter,exclude,path)
+<!-- helper function -->
+<$qualify name="toc-state" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>
+ <$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item">
+ <li class=<<toc-item-class>>>
+ <$reveal type="nomatch" stateTitle=<<toc-state>> text="open">
+ <$button setTitle=<<toc-state>> setTo="open" class="tc-btn-invisible tc-popup-keep">
+ {{$:/core/images/right-arrow}}
+ <<toc-caption>>
+ </$button>
+ </$reveal>
+ <$reveal type="match" stateTitle=<<toc-state>> text="open">
+ <$button setTitle=<<toc-state>> setTo="close" class="tc-btn-invisible tc-popup-keep">
+ {{$:/core/images/down-arrow}}
+ <<toc-caption>>
+ </$button>
+ </$reveal>
+ <$reveal type="match" stateTitle=<<toc-state>> text="open">
+ <$macrocall $name="toc-expandable" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>
+ </$reveal>
+ </li>
+ </$set>
+</$qualify>
+\end
+
+\define toc-expandable-empty-message()
+<$macrocall $name="toc-linked-expandable-body" tag=<<tag>> sort=<<sort>> itemClassFilter=<<itemClassFilter>> exclude=<<excluded>> path=<<path>>/>
+\end
+
+\define toc-expandable(tag,sort:"",itemClassFilter:"",exclude,path)
+<$vars tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>
+ <$set name="excluded" filter="""[enlist<__exclude__>] [<__tag__>]""">
+ <ol class="tc-toc toc-expandable">
+ <$list filter="""[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]""">
+ <$list filter="[all[current]toc-link[no]]" emptyMessage=<<toc-expandable-empty-message>> >
+ <$macrocall $name="toc-unlinked-expandable-body" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter="""itemClassFilter""" exclude=<<excluded>> path=<<path>> />
+ </$list>
+ </$list>
+ </ol>
+ </$set>
+</$vars>
+\end
+
+\define toc-linked-selective-expandable-body(tag,sort:"",itemClassFilter,exclude,path)
+<$qualify name="toc-state" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>
+ <$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item" >
+ <li class=<<toc-item-class>>>
+ <$link>
+ <$list filter="[all[current]tagging[]$sort$limit[1]]" variable="ignore" emptyMessage="<$button class='tc-btn-invisible'>{{$:/core/images/blank}}</$button>">
+ <$reveal type="nomatch" stateTitle=<<toc-state>> text="open">
+ <$button setTitle=<<toc-state>> setTo="open" class="tc-btn-invisible tc-popup-keep">
+ {{$:/core/images/right-arrow}}
+ </$button>
+ </$reveal>
+ <$reveal type="match" stateTitle=<<toc-state>> text="open">
+ <$button setTitle=<<toc-state>> setTo="close" class="tc-btn-invisible tc-popup-keep">
+ {{$:/core/images/down-arrow}}
+ </$button>
+ </$reveal>
+ </$list>
+ <<toc-caption>>
+ </$link>
+ <$reveal type="match" stateTitle=<<toc-state>> text="open">
+ <$macrocall $name="toc-selective-expandable" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>
+ </$reveal>
+ </li>
+ </$set>
+</$qualify>
+\end
+
+\define toc-unlinked-selective-expandable-body(tag,sort:"",itemClassFilter,exclude,path)
+<$qualify name="toc-state" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>
+ <$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item">
+ <li class=<<toc-item-class>>>
+ <$list filter="[all[current]tagging[]$sort$limit[1]]" variable="ignore" emptyMessage="<$button class='tc-btn-invisible'>{{$:/core/images/blank}}</$button> <$view field='caption'><$view field='title'/></$view>">
+ <$reveal type="nomatch" stateTitle=<<toc-state>> text="open">
+ <$button setTitle=<<toc-state>> setTo="open" class="tc-btn-invisible tc-popup-keep">
+ {{$:/core/images/right-arrow}}
+ <<toc-caption>>
+ </$button>
+ </$reveal>
+ <$reveal type="match" stateTitle=<<toc-state>> text="open">
+ <$button setTitle=<<toc-state>> setTo="close" class="tc-btn-invisible tc-popup-keep">
+ {{$:/core/images/down-arrow}}
+ <<toc-caption>>
+ </$button>
+ </$reveal>
+ </$list>
+ <$reveal type="match" stateTitle=<<toc-state>> text="open">
+ <$macrocall $name="toc-selective-expandable" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>
+ </$reveal>
+ </li>
+ </$set>
+</$qualify>
+\end
+
+\define toc-selective-expandable-empty-message()
+<$macrocall $name="toc-linked-selective-expandable-body" tag=<<tag>> sort=<<sort>> itemClassFilter=<<itemClassFilter>> exclude=<<excluded>> path=<<path>>/>
+\end
+
+\define toc-selective-expandable(tag,sort:"",itemClassFilter,exclude,path)
+<$vars tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>
+ <$set name="excluded" filter="""[enlist<__exclude__>] [<__tag__>]""">
+ <ol class="tc-toc toc-selective-expandable">
+ <$list filter="""[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]""">
+ <$list filter="[all[current]toc-link[no]]" variable="ignore" emptyMessage=<<toc-selective-expandable-empty-message>> >
+ <$macrocall $name="toc-unlinked-selective-expandable-body" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<excluded>> path=<<path>>/>
+ </$list>
+ </$list>
+ </ol>
+ </$set>
+</$vars>
+\end
+
+\define toc-tabbed-external-nav(tag,sort:"",selectedTiddler:"$:/temp/toc/selectedTiddler",unselectedText,missingText,template:"")
+<$tiddler tiddler={{{ [<__selectedTiddler__>get[text]] }}}>
+ <div class="tc-tabbed-table-of-contents">
+ <$linkcatcher to=<<__selectedTiddler__>>>
+ <div class="tc-table-of-contents">
+ <$macrocall $name="toc-selective-expandable" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter="[all[current]] -[<__selectedTiddler__>get[text]]"/>
+ </div>
+ </$linkcatcher>
+ <div class="tc-tabbed-table-of-contents-content">
+ <$reveal stateTitle=<<__selectedTiddler__>> type="nomatch" text="">
+ <$transclude mode="block" tiddler=<<__template__>>>
+ <h1><<toc-caption>></h1>
+ <$transclude mode="block">$missingText$</$transclude>
+ </$transclude>
+ </$reveal>
+ <$reveal stateTitle=<<__selectedTiddler__>> type="match" text="">
+ $unselectedText$
+ </$reveal>
+ </div>
+ </div>
+</$tiddler>
+\end
+
+\define toc-tabbed-internal-nav(tag,sort:"",selectedTiddler:"$:/temp/toc/selectedTiddler",unselectedText,missingText,template:"")
+<$linkcatcher to=<<__selectedTiddler__>>>
+ <$macrocall $name="toc-tabbed-external-nav" tag=<<__tag__>> sort=<<__sort__>> selectedTiddler=<<__selectedTiddler__>> unselectedText=<<__unselectedText__>> missingText=<<__missingText__>> template=<<__template__>>/>
+</$linkcatcher>
+\end
+
+
+\define translink(title,mode:"block")
+<div style="border:1px solid #ccc; padding: 0.5em; background: black; foreground; white;">
+<$link to="""$title$""">
+<$text text="""$title$"""/>
+</$link>
+<div style="border:1px solid #ccc; padding: 0.5em; background: white; foreground; black;">
+<$transclude tiddler="""$title$""" mode="$mode$">
+"<$text text="""$title$"""/>" is missing
+</$transclude>
+</div>
+</div>
+\end
+
+\define leaf-link(full-title,chunk,separator: "/")
+<$link to=<<__full-title__>>><$text text=<<__chunk__>>/></$link>
+\end
+
+\define leaf-node(prefix,chunk)
+<li>
+<$list filter="[<__prefix__>addsuffix<__chunk__>is[shadow]] [<__prefix__>addsuffix<__chunk__>is[tiddler]]" variable="full-title">
+<$list filter="[<full-title>removeprefix<__prefix__>]" variable="chunk">
+<span>{{$:/core/images/file}}</span> <$macrocall $name="leaf-link" full-title=<<full-title>> chunk=<<chunk>>/>
+</$list>
+</$list>
+</li>
+\end
+
+\define branch-node(prefix,chunk,separator: "/")
+<li>
+<$set name="reveal-state" value={{{ [[$:/state/tree/]addsuffix<__prefix__>addsuffix<__chunk__>] }}}>
+<$reveal type="nomatch" stateTitle=<<reveal-state>> text="show">
+<$button setTitle=<<reveal-state>> setTo="show" class="tc-btn-invisible">
+{{$:/core/images/folder}} <$text text=<<__chunk__>>/>
+</$button>
+</$reveal>
+<$reveal type="match" stateTitle=<<reveal-state>> text="show">
+<$button setTitle=<<reveal-state>> setTo="hide" class="tc-btn-invisible">
+{{$:/core/images/folder}} <$text text=<<__chunk__>>/>
+</$button>
+</$reveal>
+<span>(<$count filter="[all[shadows+tiddlers]removeprefix<__prefix__>removeprefix<__chunk__>] -[<__prefix__>addsuffix<__chunk__>]"/>)</span>
+<$reveal type="match" stateTitle=<<reveal-state>> text="show">
+<$macrocall $name="tree-node" prefix={{{ [<__prefix__>addsuffix<__chunk__>] }}} separator=<<__separator__>>/>
+</$reveal>
+</$set>
+</li>
+\end
+
+\define tree-node(prefix,separator: "/")
+<ol>
+<$list filter="[all[shadows+tiddlers]removeprefix<__prefix__>splitbefore<__separator__>sort[]!suffix<__separator__>]" variable="chunk">
+<$macrocall $name="leaf-node" prefix=<<__prefix__>> chunk=<<chunk>> separator=<<__separator__>>/>
+</$list>
+<$list filter="[all[shadows+tiddlers]removeprefix<__prefix__>splitbefore<__separator__>sort[]suffix<__separator__>]" variable="chunk">
+<$macrocall $name="branch-node" prefix=<<__prefix__>> chunk=<<chunk>> separator=<<__separator__>>/>
+</$list>
+</ol>
+\end
+
+\define tree(prefix: "$:/",separator: "/")
+<div class="tc-tree">
+<span><$text text=<<__prefix__>>/></span>
+<div>
+<$macrocall $name="tree-node" prefix=<<__prefix__>> separator=<<__separator__>>/>
+</div>
+</div>
+\end
+
+\define colour(colour)
+$colour$
+\end
+
+/*\
+title: $:/core/modules/browser-messaging.js
+type: application/javascript
+module-type: startup
+
+Browser message handling
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Export name and synchronous status
+exports.name = "browser-messaging";
+exports.platforms = ["browser"];
+exports.after = ["startup"];
+exports.synchronous = true;
+
+/*
+Load a specified url as an iframe and call the callback when it is loaded. If the url is already loaded then the existing iframe instance is used
+*/
+function loadIFrame(url,callback) {
+ // Check if iframe already exists
+ var iframeInfo = $tw.browserMessaging.iframeInfoMap[url];
+ if(iframeInfo) {
+ // We've already got the iframe
+ callback(null,iframeInfo);
+ } else {
+ // Create the iframe and save it in the list
+ var iframe = document.createElement("iframe");
+ iframeInfo = {
+ url: url,
+ status: "loading",
+ domNode: iframe
+ };
+ $tw.browserMessaging.iframeInfoMap[url] = iframeInfo;
+ saveIFrameInfoTiddler(iframeInfo);
+ // Add the iframe to the DOM and hide it
+ iframe.style.display = "none";
+ iframe.setAttribute("library","true");
+ document.body.appendChild(iframe);
+ // Set up onload
+ iframe.onload = function() {
+ iframeInfo.status = "loaded";
+ saveIFrameInfoTiddler(iframeInfo);
+ callback(null,iframeInfo);
+ };
+ iframe.onerror = function() {
+ callback("Cannot load iframe");
+ };
+ try {
+ iframe.src = url;
+ } catch(ex) {
+ callback(ex);
+ }
+ }
+}
+
+/*
+Unload library iframe for given url
+*/
+function unloadIFrame(url){
+ $tw.utils.each(document.getElementsByTagName('iframe'), function(iframe) {
+ if(iframe.getAttribute("library") === "true" &&
+ iframe.getAttribute("src") === url) {
+ iframe.parentNode.removeChild(iframe);
+ }
+ });
+}
+
+function saveIFrameInfoTiddler(iframeInfo) {
+ $tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getCreationFields(),{
+ title: "$:/temp/ServerConnection/" + iframeInfo.url,
+ text: iframeInfo.status,
+ tags: ["$:/tags/ServerConnection"],
+ url: iframeInfo.url
+ },$tw.wiki.getModificationFields()));
+}
+
+exports.startup = function() {
+ // Initialise the store of iframes we've created
+ $tw.browserMessaging = {
+ iframeInfoMap: {} // Hashmap by URL of {url:,status:"loading/loaded",domNode:}
+ };
+ // Listen for widget messages to control loading the plugin library
+ $tw.rootWidget.addEventListener("tm-load-plugin-library",function(event) {
+ var paramObject = event.paramObject || {},
+ url = paramObject.url;
+ if(url) {
+ loadIFrame(url,function(err,iframeInfo) {
+ if(err) {
+ alert($tw.language.getString("Error/LoadingPluginLibrary") + ": " + url);
+ } else {
+ iframeInfo.domNode.contentWindow.postMessage({
+ verb: "GET",
+ url: "recipes/library/tiddlers.json",
+ cookies: {
+ type: "save-info",
+ infoTitlePrefix: paramObject.infoTitlePrefix || "$:/temp/RemoteAssetInfo/",
+ url: url
+ }
+ },"*");
+ }
+ });
+ }
+ });
+ // Listen for widget messages to control unloading the plugin library
+ $tw.rootWidget.addEventListener("tm-unload-plugin-library",function(event) {
+ var paramObject = event.paramObject || {},
+ url = paramObject.url;
+ $tw.browserMessaging.iframeInfoMap[url] = undefined;
+ if(url) {
+ unloadIFrame(url);
+ $tw.utils.each(
+ $tw.wiki.filterTiddlers("[[$:/temp/ServerConnection/" + url + "]] [prefix[$:/temp/RemoteAssetInfo/" + url + "/]]"),
+ function(title) {
+ $tw.wiki.deleteTiddler(title);
+ }
+ );
+ }
+ });
+ $tw.rootWidget.addEventListener("tm-load-plugin-from-library",function(event) {
+ var paramObject = event.paramObject || {},
+ url = paramObject.url,
+ title = paramObject.title;
+ if(url && title) {
+ loadIFrame(url,function(err,iframeInfo) {
+ if(err) {
+ alert($tw.language.getString("Error/LoadingPluginLibrary") + ": " + url);
+ } else {
+ iframeInfo.domNode.contentWindow.postMessage({
+ verb: "GET",
+ url: "recipes/library/tiddlers/" + encodeURIComponent(title) + ".json",
+ cookies: {
+ type: "save-tiddler",
+ url: url
+ }
+ },"*");
+ }
+ });
+ }
+ });
+ // Listen for window messages from other windows
+ window.addEventListener("message",function listener(event){
+ // console.log("browser-messaging: ",document.location.toString())
+ // console.log("browser-messaging: Received message from",event.origin);
+ // console.log("browser-messaging: Message content",event.data);
+ switch(event.data.verb) {
+ case "GET-RESPONSE":
+ if(event.data.status.charAt(0) === "2") {
+ if(event.data.cookies) {
+ if(event.data.cookies.type === "save-info") {
+ var tiddlers = JSON.parse(event.data.body);
+ $tw.utils.each(tiddlers,function(tiddler) {
+ $tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getCreationFields(),tiddler,{
+ title: event.data.cookies.infoTitlePrefix + event.data.cookies.url + "/" + tiddler.title,
+ "original-title": tiddler.title,
+ text: "",
+ type: "text/vnd.tiddlywiki",
+ "original-type": tiddler.type,
+ "plugin-type": undefined,
+ "original-plugin-type": tiddler["plugin-type"],
+ "module-type": undefined,
+ "original-module-type": tiddler["module-type"],
+ tags: ["$:/tags/RemoteAssetInfo"],
+ "original-tags": $tw.utils.stringifyList(tiddler.tags || []),
+ "server-url": event.data.cookies.url
+ },$tw.wiki.getModificationFields()));
+ });
+ } else if(event.data.cookies.type === "save-tiddler") {
+ var tiddler = JSON.parse(event.data.body);
+ $tw.wiki.addTiddler(new $tw.Tiddler(tiddler));
+ }
+ }
+ }
+ break;
+ }
+ },false);
+};
+
+})();
+
+/*\
+title: $:/core/modules/commander.js
+type: application/javascript
+module-type: global
+
+The $tw.Commander class is a command interpreter
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Parse a sequence of commands
+ commandTokens: an array of command string tokens
+ wiki: reference to the wiki store object
+ streams: {output:, error:}, each of which has a write(string) method
+ callback: a callback invoked as callback(err) where err is null if there was no error
+*/
+var Commander = function(commandTokens,callback,wiki,streams) {
+ var path = require("path");
+ this.commandTokens = commandTokens;
+ this.nextToken = 0;
+ this.callback = callback;
+ this.wiki = wiki;
+ this.streams = streams;
+ this.outputPath = path.resolve($tw.boot.wikiPath,$tw.config.wikiOutputSubDir);
+};
+
+/*
+Log a string if verbose flag is set
+*/
+Commander.prototype.log = function(str) {
+ if(this.verbose) {
+ this.streams.output.write(str + "\n");
+ }
+};
+
+/*
+Write a string if verbose flag is set
+*/
+Commander.prototype.write = function(str) {
+ if(this.verbose) {
+ this.streams.output.write(str);
+ }
+};
+
+/*
+Add a string of tokens to the command queue
+*/
+Commander.prototype.addCommandTokens = function(commandTokens) {
+ var params = commandTokens.slice(0);
+ params.unshift(0);
+ params.unshift(this.nextToken);
+ Array.prototype.splice.apply(this.commandTokens,params);
+};
+
+/*
+Execute the sequence of commands and invoke a callback on completion
+*/
+Commander.prototype.execute = function() {
+ this.executeNextCommand();
+};
+
+/*
+Execute the next command in the sequence
+*/
+Commander.prototype.executeNextCommand = function() {
+ var self = this;
+ // Invoke the callback if there are no more commands
+ if(this.nextToken >= this.commandTokens.length) {
+ this.callback(null);
+ } else {
+ // Get and check the command token
+ var commandName = this.commandTokens[this.nextToken++];
+ if(commandName.substr(0,2) !== "--") {
+ this.callback("Missing command: " + commandName);
+ } else {
+ commandName = commandName.substr(2); // Trim off the --
+ // Accumulate the parameters to the command
+ var params = [];
+ while(this.nextToken < this.commandTokens.length &&
+ this.commandTokens[this.nextToken].substr(0,2) !== "--") {
+ params.push(this.commandTokens[this.nextToken++]);
+ }
+ // Get the command info
+ var command = $tw.commands[commandName],
+ c,err;
+ if(!command) {
+ this.callback("Unknown command: " + commandName);
+ } else {
+ if(this.verbose) {
+ this.streams.output.write("Executing command: " + commandName + " " + params.join(" ") + "\n");
+ }
+ // Parse named parameters if required
+ if(command.info.namedParameterMode) {
+ params = this.extractNamedParameters(params,command.info.mandatoryParameters);
+ if(typeof params === "string") {
+ return this.callback(params);
+ }
+ }
+ if(command.info.synchronous) {
+ // Synchronous command
+ c = new command.Command(params,this);
+ err = c.execute();
+ if(err) {
+ this.callback(err);
+ } else {
+ this.executeNextCommand();
+ }
+ } else {
+ // Asynchronous command
+ c = new command.Command(params,this,function(err) {
+ if(err) {
+ self.callback(err);
+ } else {
+ self.executeNextCommand();
+ }
+ });
+ err = c.execute();
+ if(err) {
+ this.callback(err);
+ }
+ }
+ }
+ }
+ }
+};
+
+/*
+Given an array of parameter strings `params` in name:value format, and an array of mandatory parameter names in `mandatoryParameters`, returns a hashmap of values or a string if error
+*/
+Commander.prototype.extractNamedParameters = function(params,mandatoryParameters) {
+ mandatoryParameters = mandatoryParameters || [];
+ var errors = [],
+ paramsByName = Object.create(null);
+ // Extract the parameters
+ $tw.utils.each(params,function(param) {
+ var index = param.indexOf("=");
+ if(index < 1) {
+ errors.push("malformed named parameter: '" + param + "'");
+ }
+ paramsByName[param.slice(0,index)] = $tw.utils.trim(param.slice(index+1));
+ });
+ // Check the mandatory parameters are present
+ $tw.utils.each(mandatoryParameters,function(mandatoryParameter) {
+ if(!$tw.utils.hop(paramsByName,mandatoryParameter)) {
+ errors.push("missing mandatory parameter: '" + mandatoryParameter + "'");
+ }
+ });
+ // Return any errors
+ if(errors.length > 0) {
+ return errors.join(" and\n");
+ } else {
+ return paramsByName;
+ }
+};
+
+Commander.initCommands = function(moduleType) {
+ moduleType = moduleType || "command";
+ $tw.commands = {};
+ $tw.modules.forEachModuleOfType(moduleType,function(title,module) {
+ var c = $tw.commands[module.info.name] = {};
+ // Add the methods defined by the module
+ for(var f in module) {
+ if($tw.utils.hop(module,f)) {
+ c[f] = module[f];
+ }
+ }
+ });
+};
+
+exports.Commander = Commander;
+
+})();
+
+/*\
+title: $:/core/modules/commands/build.js
+type: application/javascript
+module-type: command
+
+Command to build a build target
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "build",
+ synchronous: true
+};
+
+var Command = function(params,commander) {
+ this.params = params;
+ this.commander = commander;
+};
+
+Command.prototype.execute = function() {
+ // Get the build targets defined in the wiki
+ var buildTargets = $tw.boot.wikiInfo.build;
+ if(!buildTargets) {
+ return "No build targets defined";
+ }
+ // Loop through each of the specified targets
+ var targets;
+ if(this.params.length > 0) {
+ targets = this.params;
+ } else {
+ targets = Object.keys(buildTargets);
+ }
+ for(var targetIndex=0; targetIndex<targets.length; targetIndex++) {
+ var target = targets[targetIndex],
+ commands = buildTargets[target];
+ if(!commands) {
+ return "Build target '" + target + "' not found";
+ }
+ // Add the commands to the queue
+ this.commander.addCommandTokens(commands);
+ }
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/clearpassword.js
+type: application/javascript
+module-type: command
+
+Clear password for crypto operations
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "clearpassword",
+ synchronous: true
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ $tw.crypto.setPassword(null);
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/deletetiddlers.js
+type: application/javascript
+module-type: command
+
+Command to delete tiddlers
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "deletetiddlers",
+ synchronous: true
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ if(this.params.length < 1) {
+ return "Missing filter";
+ }
+ var self = this,
+ wiki = this.commander.wiki,
+ filter = this.params[0],
+ tiddlers = wiki.filterTiddlers(filter);
+ $tw.utils.each(tiddlers,function(title) {
+ wiki.deleteTiddler(title);
+ });
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/editions.js
+type: application/javascript
+module-type: command
+
+Command to list the available editions
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "editions",
+ synchronous: true
+};
+
+var Command = function(params,commander) {
+ this.params = params;
+ this.commander = commander;
+};
+
+Command.prototype.execute = function() {
+ var self = this;
+ // Output the list
+ this.commander.streams.output.write("Available editions:\n\n");
+ var editionInfo = $tw.utils.getEditionInfo();
+ $tw.utils.each(editionInfo,function(info,name) {
+ self.commander.streams.output.write(" " + name + ": " + info.description + "\n");
+ });
+ this.commander.streams.output.write("\n");
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/fetch.js
+type: application/javascript
+module-type: command
+
+Commands to fetch external tiddlers
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "fetch",
+ synchronous: false
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ if(this.params.length < 2) {
+ return "Missing subcommand and url";
+ }
+ switch(this.params[0]) {
+ case "raw-file":
+ return this.fetchFiles({
+ raw: true,
+ url: this.params[1],
+ transformFilter: this.params[2] || "",
+ callback: this.callback
+ });
+ break;
+ case "file":
+ return this.fetchFiles({
+ url: this.params[1],
+ importFilter: this.params[2],
+ transformFilter: this.params[3] || "",
+ callback: this.callback
+ });
+ break;
+ case "raw-files":
+ return this.fetchFiles({
+ raw: true,
+ urlFilter: this.params[1],
+ transformFilter: this.params[2] || "",
+ callback: this.callback
+ });
+ break;
+ case "files":
+ return this.fetchFiles({
+ urlFilter: this.params[1],
+ importFilter: this.params[2],
+ transformFilter: this.params[3] || "",
+ callback: this.callback
+ });
+ break;
+ }
+ return null;
+};
+
+Command.prototype.fetchFiles = function(options) {
+ var self = this;
+ // Get the list of URLs
+ var urls;
+ if(options.url) {
+ urls = [options.url]
+ } else if(options.urlFilter) {
+ urls = $tw.wiki.filterTiddlers(options.urlFilter);
+ } else {
+ return "Missing URL";
+ }
+ // Process each URL in turn
+ var next = 0;
+ var getNextFile = function(err) {
+ if(err) {
+ return options.callback(err);
+ }
+ if(next < urls.length) {
+ self.fetchFile(urls[next++],options,getNextFile);
+ } else {
+ options.callback(null);
+ }
+ };
+ getNextFile(null);
+ // Success
+ return null;
+};
+
+Command.prototype.fetchFile = function(url,options,callback,redirectCount) {
+ if(redirectCount > 10) {
+ return callback("Error too many redirects retrieving " + url);
+ }
+ var self = this,
+ lib = url.substr(0,8) === "https://" ? require("https") : require("http");
+ lib.get(url).on("response",function(response) {
+ var type = (response.headers["content-type"] || "").split(";")[0],
+ data = [];
+ self.commander.write("Reading " + url + ": ");
+ response.on("data",function(chunk) {
+ data.push(chunk);
+ self.commander.write(".");
+ });
+ response.on("end",function() {
+ self.commander.write("\n");
+ if(response.statusCode === 200) {
+ self.processBody(Buffer.concat(data),type,options,url);
+ callback(null);
+ } else {
+ if(response.statusCode === 302 || response.statusCode === 303 || response.statusCode === 307) {
+ return self.fetchFile(response.headers.location,options,callback,redirectCount + 1);
+ } else {
+ return callback("Error " + response.statusCode + " retrieving " + url)
+ }
+ }
+ });
+ response.on("error",function(e) {
+ console.log("Error on GET request: " + e);
+ callback(e);
+ });
+ });
+ return null;
+};
+
+Command.prototype.processBody = function(body,type,options,url) {
+ var self = this;
+ // Collect the tiddlers in a wiki
+ var incomingWiki = new $tw.Wiki();
+ if(options.raw) {
+ var typeInfo = type ? $tw.config.contentTypeInfo[type] : null,
+ encoding = typeInfo ? typeInfo.encoding : "utf8";
+ incomingWiki.addTiddler(new $tw.Tiddler({
+ title: url,
+ type: type,
+ text: body.toString(encoding)
+ }));
+ } else {
+ // Deserialise the file to extract the tiddlers
+ var tiddlers = this.commander.wiki.deserializeTiddlers(type || "text/html",body.toString("utf8"),{});
+ $tw.utils.each(tiddlers,function(tiddler) {
+ incomingWiki.addTiddler(new $tw.Tiddler(tiddler));
+ });
+ }
+ // Filter the tiddlers to select the ones we want
+ var filteredTitles = incomingWiki.filterTiddlers(options.importFilter || "[all[tiddlers]]");
+ // Import the selected tiddlers
+ var count = 0;
+ incomingWiki.each(function(tiddler,title) {
+ if(filteredTitles.indexOf(title) !== -1) {
+ var newTiddler;
+ if(options.transformFilter) {
+ var transformedTitle = (incomingWiki.filterTiddlers(options.transformFilter,null,self.commander.wiki.makeTiddlerIterator([title])) || [""])[0];
+ if(transformedTitle) {
+ self.commander.log("Importing " + title + " as " + transformedTitle)
+ newTiddler = new $tw.Tiddler(tiddler,{title: transformedTitle});
+ }
+ } else {
+ self.commander.log("Importing " + title)
+ newTiddler = tiddler;
+ }
+ self.commander.wiki.importTiddler(newTiddler);
+ count++;
+ }
+ });
+ self.commander.log("Imported " + count + " tiddlers")
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/help.js
+type: application/javascript
+module-type: command
+
+Help command
+
+\*/
+(function(){
+
+/*jshint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "help",
+ synchronous: true
+};
+
+var Command = function(params,commander) {
+ this.params = params;
+ this.commander = commander;
+};
+
+Command.prototype.execute = function() {
+ var subhelp = this.params[0] || "default",
+ helpBase = "$:/language/Help/",
+ text;
+ if(!this.commander.wiki.getTiddler(helpBase + subhelp)) {
+ subhelp = "notfound";
+ }
+ // Wikify the help as formatted text (ie block elements generate newlines)
+ text = this.commander.wiki.renderTiddler("text/plain-formatted",helpBase + subhelp);
+ // Remove any leading linebreaks
+ text = text.replace(/^(\r?\n)*/g,"");
+ this.commander.streams.output.write(text);
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/import.js
+type: application/javascript
+module-type: command
+
+Command to import tiddlers from a file
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "import",
+ synchronous: true
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ var self = this,
+ fs = require("fs"),
+ path = require("path");
+ if(this.params.length < 2) {
+ return "Missing parameters";
+ }
+ var filename = self.params[0],
+ deserializer = self.params[1],
+ title = self.params[2] || filename,
+ encoding = self.params[3] || "utf8",
+ text = fs.readFileSync(filename,encoding),
+ tiddlers = this.commander.wiki.deserializeTiddlers(null,text,{title: title},{deserializer: deserializer});
+ $tw.utils.each(tiddlers,function(tiddler) {
+ self.commander.wiki.importTiddler(new $tw.Tiddler(tiddler));
+ });
+ this.commander.log(tiddlers.length + " tiddler(s) imported");
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/init.js
+type: application/javascript
+module-type: command
+
+Command to initialise an empty wiki folder
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "init",
+ synchronous: true
+};
+
+var Command = function(params,commander) {
+ this.params = params;
+ this.commander = commander;
+};
+
+Command.prototype.execute = function() {
+ var fs = require("fs"),
+ path = require("path");
+ // Check that we don't already have a valid wiki folder
+ if($tw.boot.wikiTiddlersPath || ($tw.utils.isDirectory($tw.boot.wikiPath) && !$tw.utils.isDirectoryEmpty($tw.boot.wikiPath))) {
+ return "Wiki folder is not empty";
+ }
+ // Loop through each of the specified editions
+ var editions = this.params.length > 0 ? this.params : ["empty"];
+ for(var editionIndex=0; editionIndex<editions.length; editionIndex++) {
+ var editionName = editions[editionIndex];
+ // Check the edition exists
+ var editionPath = $tw.findLibraryItem(editionName,$tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar));
+ if(!$tw.utils.isDirectory(editionPath)) {
+ return "Edition '" + editionName + "' not found";
+ }
+ // Copy the edition content
+ var err = $tw.utils.copyDirectory(editionPath,$tw.boot.wikiPath);
+ if(!err) {
+ this.commander.streams.output.write("Copied edition '" + editionName + "' to " + $tw.boot.wikiPath + "\n");
+ } else {
+ return err;
+ }
+ }
+ // Tweak the tiddlywiki.info to remove any included wikis
+ var packagePath = $tw.boot.wikiPath + "/tiddlywiki.info",
+ packageJson = JSON.parse(fs.readFileSync(packagePath));
+ delete packageJson.includeWikis;
+ fs.writeFileSync(packagePath,JSON.stringify(packageJson,null,$tw.config.preferences.jsonSpaces));
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/listen.js
+type: application/javascript
+module-type: command
+
+Listen for HTTP requests and serve tiddlers
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Server = require("$:/core/modules/server/server.js").Server;
+
+exports.info = {
+ name: "listen",
+ synchronous: true,
+ namedParameterMode: true,
+ mandatoryParameters: [],
+};
+
+var Command = function(params,commander,callback) {
+ var self = this;
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ var self = this;
+ if(!$tw.boot.wikiTiddlersPath) {
+ $tw.utils.warning("Warning: Wiki folder '" + $tw.boot.wikiPath + "' does not exist or is missing a tiddlywiki.info file");
+ }
+ // Set up server
+ this.server = new Server({
+ wiki: this.commander.wiki,
+ variables: self.params
+ });
+ var nodeServer = this.server.listen();
+ $tw.hooks.invokeHook("th-server-command-post-start",this.server,nodeServer,"tiddlywiki");
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/load.js
+type: application/javascript
+module-type: command
+
+Command to load tiddlers from a file or directory
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "load",
+ synchronous: false
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ var self = this,
+ fs = require("fs"),
+ path = require("path");
+ if(this.params.length < 1) {
+ return "Missing filename";
+ }
+ var tiddlers = $tw.loadTiddlersFromPath(self.params[0]),
+ count = 0;
+ $tw.utils.each(tiddlers,function(tiddlerInfo) {
+ $tw.utils.each(tiddlerInfo.tiddlers,function(tiddler) {
+ self.commander.wiki.importTiddler(new $tw.Tiddler(tiddler));
+ count++;
+ });
+ });
+ if(!count && self.params[1] !== "noerror") {
+ self.callback("No tiddlers found in file \"" + self.params[0] + "\"");
+ } else {
+ self.callback(null);
+ }
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/makelibrary.js
+type: application/javascript
+module-type: command
+
+Command to pack all of the plugins in the library into a plugin tiddler of type "library"
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "makelibrary",
+ synchronous: true
+};
+
+var UPGRADE_LIBRARY_TITLE = "$:/UpgradeLibrary";
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ var wiki = this.commander.wiki,
+ fs = require("fs"),
+ path = require("path"),
+ upgradeLibraryTitle = this.params[0] || UPGRADE_LIBRARY_TITLE,
+ tiddlers = {};
+ // Collect up the library plugins
+ var collectPlugins = function(folder) {
+ var pluginFolders = fs.readdirSync(folder);
+ for(var p=0; p<pluginFolders.length; p++) {
+ if(!$tw.boot.excludeRegExp.test(pluginFolders[p])) {
+ pluginFields = $tw.loadPluginFolder(path.resolve(folder,"./" + pluginFolders[p]));
+ if(pluginFields && pluginFields.title) {
+ tiddlers[pluginFields.title] = pluginFields;
+ }
+ }
+ }
+ },
+ collectPublisherPlugins = function(folder) {
+ var publisherFolders = fs.readdirSync(folder);
+ for(var t=0; t<publisherFolders.length; t++) {
+ if(!$tw.boot.excludeRegExp.test(publisherFolders[t])) {
+ collectPlugins(path.resolve(folder,"./" + publisherFolders[t]));
+ }
+ }
+ };
+ $tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.pluginsPath,$tw.config.pluginsEnvVar),collectPublisherPlugins);
+ $tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.themesPath,$tw.config.themesEnvVar),collectPublisherPlugins);
+ $tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.languagesPath,$tw.config.languagesEnvVar),collectPlugins);
+ // Save the upgrade library tiddler
+ var pluginFields = {
+ title: upgradeLibraryTitle,
+ type: "application/json",
+ "plugin-type": "library",
+ "text": JSON.stringify({tiddlers: tiddlers})
+ };
+ wiki.addTiddler(new $tw.Tiddler(pluginFields));
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/output.js
+type: application/javascript
+module-type: command
+
+Command to set the default output location (defaults to current working directory)
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "output",
+ synchronous: true
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ var fs = require("fs"),
+ path = require("path");
+ if(this.params.length < 1) {
+ return "Missing output path";
+ }
+ this.commander.outputPath = path.resolve(process.cwd(),this.params[0]);
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/password.js
+type: application/javascript
+module-type: command
+
+Save password for crypto operations
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "password",
+ synchronous: true
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ if(this.params.length < 1) {
+ return "Missing password";
+ }
+ $tw.crypto.setPassword(this.params[0]);
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/render.js
+type: application/javascript
+module-type: command
+
+Render individual tiddlers and save the results to the specified files
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var widget = require("$:/core/modules/widgets/widget.js");
+
+exports.info = {
+ name: "render",
+ synchronous: true
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ if(this.params.length < 1) {
+ return "Missing tiddler filter";
+ }
+ var self = this,
+ fs = require("fs"),
+ path = require("path"),
+ wiki = this.commander.wiki,
+ tiddlerFilter = this.params[0],
+ filenameFilter = this.params[1] || "[is[tiddler]addsuffix[.html]]",
+ type = this.params[2] || "text/html",
+ template = this.params[3],
+ varName = this.params[4],
+ varValue = this.params[5],
+ tiddlers = wiki.filterTiddlers(tiddlerFilter);
+ $tw.utils.each(tiddlers,function(title) {
+ var parser = wiki.parseTiddler(template || title),
+ variables = {currentTiddler: title};
+ if(varName) {
+ variables[varName] = varValue || "";
+ }
+ var widgetNode = wiki.makeWidget(parser,{variables: variables}),
+ container = $tw.fakeDocument.createElement("div");
+ widgetNode.render(container,null);
+ var text = type === "text/html" ? container.innerHTML : container.textContent,
+ filepath = path.resolve(self.commander.outputPath,wiki.filterTiddlers(filenameFilter,$tw.rootWidget,wiki.makeTiddlerIterator([title]))[0]);
+ if(self.commander.verbose) {
+ console.log("Rendering \"" + title + "\" to \"" + filepath + "\"");
+ }
+ $tw.utils.createFileDirectories(filepath);
+ fs.writeFileSync(filepath,text,"utf8");
+ });
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/rendertiddler.js
+type: application/javascript
+module-type: command
+
+Command to render a tiddler and save it to a file
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "rendertiddler",
+ synchronous: false
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ if(this.params.length < 2) {
+ return "Missing filename";
+ }
+ var self = this,
+ fs = require("fs"),
+ path = require("path"),
+ title = this.params[0],
+ filename = path.resolve(this.commander.outputPath,this.params[1]),
+ type = this.params[2] || "text/html",
+ template = this.params[3],
+ name = this.params[4],
+ value = this.params[5],
+ variables = {};
+ $tw.utils.createFileDirectories(filename);
+ if(template) {
+ variables.currentTiddler = title;
+ title = template;
+ }
+ if(name && value) {
+ variables[name] = value;
+ }
+ fs.writeFile(filename,this.commander.wiki.renderTiddler(type,title,{variables: variables}),"utf8",function(err) {
+ self.callback(err);
+ });
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/rendertiddlers.js
+type: application/javascript
+module-type: command
+
+Command to render several tiddlers to a folder of files
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var widget = require("$:/core/modules/widgets/widget.js");
+
+exports.info = {
+ name: "rendertiddlers",
+ synchronous: true
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ if(this.params.length < 2) {
+ return "Missing filename";
+ }
+ var self = this,
+ fs = require("fs"),
+ path = require("path"),
+ wiki = this.commander.wiki,
+ filter = this.params[0],
+ template = this.params[1],
+ outputPath = this.commander.outputPath,
+ pathname = path.resolve(outputPath,this.params[2]),
+ type = this.params[3] || "text/html",
+ extension = this.params[4] || ".html",
+ deleteDirectory = (this.params[5] || "").toLowerCase() !== "noclean",
+ tiddlers = wiki.filterTiddlers(filter);
+ if(deleteDirectory) {
+ $tw.utils.deleteDirectory(pathname);
+ }
+ $tw.utils.each(tiddlers,function(title) {
+ var parser = wiki.parseTiddler(template),
+ widgetNode = wiki.makeWidget(parser,{variables: {currentTiddler: title}}),
+ container = $tw.fakeDocument.createElement("div");
+ widgetNode.render(container,null);
+ var text = type === "text/html" ? container.innerHTML : container.textContent,
+ exportPath = null;
+ if($tw.utils.hop($tw.macros,"tv-get-export-path")) {
+ var macroPath = $tw.macros["tv-get-export-path"].run.apply(self,[title]);
+ if(macroPath) {
+ exportPath = path.resolve(outputPath,macroPath + extension);
+ }
+ }
+ var finalPath = exportPath || path.resolve(pathname,encodeURIComponent(title) + extension);
+ $tw.utils.createFileDirectories(finalPath);
+ fs.writeFileSync(finalPath,text,"utf8");
+ });
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/save.js
+type: application/javascript
+module-type: command
+
+Saves individual tiddlers in their raw text or binary format to the specified files
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "save",
+ synchronous: true
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ if(this.params.length < 1) {
+ return "Missing filename filter";
+ }
+ var self = this,
+ fs = require("fs"),
+ path = require("path"),
+ wiki = this.commander.wiki,
+ tiddlerFilter = this.params[0],
+ filenameFilter = this.params[1] || "[is[tiddler]]",
+ tiddlers = wiki.filterTiddlers(tiddlerFilter);
+ $tw.utils.each(tiddlers,function(title) {
+ var tiddler = self.commander.wiki.getTiddler(title),
+ type = tiddler.fields.type || "text/vnd.tiddlywiki",
+ contentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: "utf8"},
+ filepath = path.resolve(self.commander.outputPath,wiki.filterTiddlers(filenameFilter,$tw.rootWidget,wiki.makeTiddlerIterator([title]))[0]);
+ if(self.commander.verbose) {
+ console.log("Saving \"" + title + "\" to \"" + filepath + "\"");
+ }
+ $tw.utils.createFileDirectories(filepath);
+ fs.writeFileSync(filepath,tiddler.fields.text,contentTypeInfo.encoding);
+ });
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/savelibrarytiddlers.js
+type: application/javascript
+module-type: command
+
+Command to save the subtiddlers of a bundle tiddler as a series of JSON files
+
+--savelibrarytiddlers <tiddler> <pathname> <skinnylisting>
+
+The tiddler identifies the bundle tiddler that contains the subtiddlers.
+
+The pathname specifies the pathname to the folder in which the JSON files should be saved. The filename is the URL encoded title of the subtiddler.
+
+The skinnylisting specifies the title of the tiddler to which a JSON catalogue of the subtiddlers will be saved. The JSON file contains the same data as the bundle tiddler but with the `text` field removed.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "savelibrarytiddlers",
+ synchronous: true
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ if(this.params.length < 2) {
+ return "Missing filename";
+ }
+ var self = this,
+ fs = require("fs"),
+ path = require("path"),
+ containerTitle = this.params[0],
+ filter = this.params[1],
+ basepath = this.params[2],
+ skinnyListTitle = this.params[3];
+ // Get the container tiddler as data
+ var containerData = self.commander.wiki.getTiddlerDataCached(containerTitle,undefined);
+ if(!containerData) {
+ return "'" + containerTitle + "' is not a tiddler bundle";
+ }
+ // Filter the list of plugins
+ var pluginList = [];
+ $tw.utils.each(containerData.tiddlers,function(tiddler,title) {
+ pluginList.push(title);
+ });
+ var filteredPluginList;
+ if(filter) {
+ filteredPluginList = self.commander.wiki.filterTiddlers(filter,null,self.commander.wiki.makeTiddlerIterator(pluginList));
+ } else {
+ filteredPluginList = pluginList;
+ }
+ // Iterate through the plugins
+ var skinnyList = [];
+ $tw.utils.each(filteredPluginList,function(title) {
+ var tiddler = containerData.tiddlers[title];
+ // Save each JSON file and collect the skinny data
+ var pathname = path.resolve(self.commander.outputPath,basepath + encodeURIComponent(title) + ".json");
+ $tw.utils.createFileDirectories(pathname);
+ fs.writeFileSync(pathname,JSON.stringify(tiddler),"utf8");
+ // Collect the skinny list data
+ var pluginTiddlers = JSON.parse(tiddler.text),
+ readmeContent = (pluginTiddlers.tiddlers[title + "/readme"] || {}).text,
+ doesRequireReload = !!$tw.wiki.doesPluginInfoRequireReload(pluginTiddlers),
+ iconTiddler = pluginTiddlers.tiddlers[title + "/icon"] || {},
+ iconType = iconTiddler.type,
+ iconText = iconTiddler.text,
+ iconContent;
+ if(iconType && iconText) {
+ iconContent = $tw.utils.makeDataUri(iconText,iconType);
+ }
+ skinnyList.push($tw.utils.extend({},tiddler,{
+ text: undefined,
+ readme: readmeContent,
+ "requires-reload": doesRequireReload ? "yes" : "no",
+ icon: iconContent
+ }));
+ });
+ // Save the catalogue tiddler
+ if(skinnyListTitle) {
+ self.commander.wiki.setTiddlerData(skinnyListTitle,skinnyList);
+ }
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/savetiddler.js
+type: application/javascript
+module-type: command
+
+Command to save the content of a tiddler to a file
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "savetiddler",
+ synchronous: false
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ if(this.params.length < 2) {
+ return "Missing filename";
+ }
+ var self = this,
+ fs = require("fs"),
+ path = require("path"),
+ title = this.params[0],
+ filename = path.resolve(this.commander.outputPath,this.params[1]),
+ tiddler = this.commander.wiki.getTiddler(title);
+ if(tiddler) {
+ var type = tiddler.fields.type || "text/vnd.tiddlywiki",
+ contentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: "utf8"};
+ $tw.utils.createFileDirectories(filename);
+ fs.writeFile(filename,tiddler.fields.text,contentTypeInfo.encoding,function(err) {
+ self.callback(err);
+ });
+ } else {
+ return "Missing tiddler: " + title;
+ }
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/savetiddlers.js
+type: application/javascript
+module-type: command
+
+Command to save several tiddlers to a folder of files
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var widget = require("$:/core/modules/widgets/widget.js");
+
+exports.info = {
+ name: "savetiddlers",
+ synchronous: true
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ if(this.params.length < 1) {
+ return "Missing filename";
+ }
+ var self = this,
+ fs = require("fs"),
+ path = require("path"),
+ wiki = this.commander.wiki,
+ filter = this.params[0],
+ pathname = path.resolve(this.commander.outputPath,this.params[1]),
+ deleteDirectory = (this.params[2] || "").toLowerCase() !== "noclean",
+ tiddlers = wiki.filterTiddlers(filter);
+ if(deleteDirectory) {
+ $tw.utils.deleteDirectory(pathname);
+ }
+ $tw.utils.createDirectory(pathname);
+ $tw.utils.each(tiddlers,function(title) {
+ var tiddler = self.commander.wiki.getTiddler(title),
+ type = tiddler.fields.type || "text/vnd.tiddlywiki",
+ contentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: "utf8"},
+ filename = path.resolve(pathname,encodeURIComponent(title));
+ fs.writeFileSync(filename,tiddler.fields.text,contentTypeInfo.encoding);
+ });
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/savewikifolder.js
+type: application/javascript
+module-type: command
+
+Command to save the current wiki as a wiki folder
+
+--savewikifolder <wikifolderpath> [<filter>]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "savewikifolder",
+ synchronous: true
+};
+
+var fs,path;
+if($tw.node) {
+ fs = require("fs");
+ path = require("path");
+}
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ if(this.params.length < 1) {
+ return "Missing wiki folder path";
+ }
+ var wikifoldermaker = new WikiFolderMaker(this.params[0],this.params[1],this.commander);
+ return wikifoldermaker.save();
+};
+
+function WikiFolderMaker(wikiFolderPath,wikiFilter,commander) {
+ this.wikiFolderPath = wikiFolderPath;
+ this.wikiFilter = wikiFilter || "[all[tiddlers]]";
+ this.commander = commander;
+ this.wiki = commander.wiki;
+ this.savedPaths = []; // So that we can detect filename clashes
+}
+
+WikiFolderMaker.prototype.log = function(str) {
+ if(this.commander.verbose) {
+ console.log(str);
+ }
+};
+
+WikiFolderMaker.prototype.tiddlersToIgnore = [
+ "$:/boot/boot.css",
+ "$:/boot/boot.js",
+ "$:/boot/bootprefix.js",
+ "$:/core",
+ "$:/library/sjcl.js",
+ "$:/temp/info-plugin"
+];
+
+/*
+Returns null if successful, or an error string if there was an error
+*/
+WikiFolderMaker.prototype.save = function() {
+ var self = this;
+ // Check that the output directory doesn't exist
+ if(fs.existsSync(this.wikiFolderPath) && !$tw.utils.isDirectoryEmpty(this.wikiFolderPath)) {
+ return "The unpackwiki command requires that the output wiki folder be empty";
+ }
+ // Get the tiddlers from the source wiki
+ var tiddlerTitles = this.wiki.filterTiddlers(this.wikiFilter);
+ // Initialise a new tiddlwiki.info file
+ var newWikiInfo = {};
+ // Process each incoming tiddler in turn
+ $tw.utils.each(tiddlerTitles,function(title) {
+ var tiddler = self.wiki.getTiddler(title);
+ if(tiddler) {
+ if(self.tiddlersToIgnore.indexOf(title) !== -1) {
+ // Ignore the core plugin and the ephemeral info plugin
+ self.log("Ignoring tiddler: " + title);
+ } else {
+ var type = tiddler.fields.type,
+ pluginType = tiddler.fields["plugin-type"];
+ if(type === "application/json" && pluginType) {
+ // Plugin tiddler
+ var libraryDetails = self.findPluginInLibrary(title);
+ if(libraryDetails) {
+ // A plugin from the core library
+ self.log("Adding built-in plugin: " + libraryDetails.name);
+ newWikiInfo[libraryDetails.type] = newWikiInfo[libraryDetails.type] || [];
+ $tw.utils.pushTop(newWikiInfo[libraryDetails.type],libraryDetails.name);
+ } else {
+ // A custom plugin
+ self.log("Processing custom plugin: " + title);
+ self.saveCustomPlugin(tiddler);
+ }
+ } else {
+ // Ordinary tiddler
+ self.saveTiddler("tiddlers",tiddler);
+ }
+ }
+ }
+ });
+ // Save the tiddlywiki.info file
+ this.saveJSONFile("tiddlywiki.info",newWikiInfo);
+ self.log("Writing tiddlywiki.info: " + JSON.stringify(newWikiInfo,null,$tw.config.preferences.jsonSpaces));
+ return null;
+};
+
+/*
+Test whether the specified tiddler is a plugin in the plugin library
+*/
+WikiFolderMaker.prototype.findPluginInLibrary = function(title) {
+ var parts = title.split("/"),
+ pluginPath, type, name;
+ if(parts[0] === "$:") {
+ if(parts[1] === "languages" && parts.length === 3) {
+ pluginPath = "languages" + path.sep + parts[2];
+ type = parts[1];
+ name = parts[2];
+ } else if(parts[1] === "plugins" || parts[1] === "themes" && parts.length === 4) {
+ pluginPath = parts[1] + path.sep + parts[2] + path.sep + parts[3];
+ type = parts[1];
+ name = parts[2] + "/" + parts[3];
+ }
+ }
+ if(pluginPath && type && name) {
+ pluginPath = path.resolve($tw.boot.bootPath,"..",pluginPath);
+ if(fs.existsSync(pluginPath)) {
+ return {
+ pluginPath: pluginPath,
+ type: type,
+ name: name
+ };
+ }
+ }
+ return false;
+};
+
+WikiFolderMaker.prototype.saveCustomPlugin = function(pluginTiddler) {
+ var self = this,
+ pluginTitle = pluginTiddler.fields.title,
+ titleParts = pluginTitle.split("/"),
+ directory = $tw.utils.generateTiddlerFilepath(titleParts[titleParts.length - 1],{
+ directory: path.resolve(this.wikiFolderPath,pluginTiddler.fields["plugin-type"] + "s")
+ }),
+ pluginInfo = pluginTiddler.getFieldStrings({exclude: ["text","type"]});
+ this.saveJSONFile(directory + path.sep + "plugin.info",pluginInfo);
+ self.log("Writing " + directory + path.sep + "plugin.info: " + JSON.stringify(pluginInfo,null,$tw.config.preferences.jsonSpaces));
+ var pluginTiddlers = JSON.parse(pluginTiddler.fields.text).tiddlers; // A hashmap of tiddlers in the plugin
+ $tw.utils.each(pluginTiddlers,function(tiddler) {
+ self.saveTiddler(directory,new $tw.Tiddler(tiddler));
+ });
+};
+
+WikiFolderMaker.prototype.saveTiddler = function(directory,tiddler) {
+ var fileInfo = $tw.utils.generateTiddlerFileInfo(tiddler,{
+ directory: path.resolve(this.wikiFolderPath,directory),
+ wiki: this.wiki
+ });
+ $tw.utils.saveTiddlerToFileSync(tiddler,fileInfo);
+};
+
+WikiFolderMaker.prototype.saveJSONFile = function(filename,json) {
+ this.saveTextFile(filename,JSON.stringify(json,null,$tw.config.preferences.jsonSpaces));
+};
+
+WikiFolderMaker.prototype.saveTextFile = function(filename,data) {
+ this.saveFile(filename,"utf8",data);
+};
+
+WikiFolderMaker.prototype.saveFile = function(filename,encoding,data) {
+ var filepath = path.resolve(this.wikiFolderPath,filename);
+ $tw.utils.createFileDirectories(filepath);
+ fs.writeFileSync(filepath,data,encoding);
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/server.js
+type: application/javascript
+module-type: command
+
+Deprecated legacy command for serving tiddlers
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Server = require("$:/core/modules/server/server.js").Server;
+
+exports.info = {
+ name: "server",
+ synchronous: true
+};
+
+var Command = function(params,commander,callback) {
+ var self = this;
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ if(!$tw.boot.wikiTiddlersPath) {
+ $tw.utils.warning("Warning: Wiki folder '" + $tw.boot.wikiPath + "' does not exist or is missing a tiddlywiki.info file");
+ }
+ // Set up server
+ this.server = new Server({
+ wiki: this.commander.wiki,
+ variables: {
+ port: this.params[0],
+ host: this.params[6],
+ "root-tiddler": this.params[1],
+ "root-render-type": this.params[2],
+ "root-serve-type": this.params[3],
+ username: this.params[4],
+ password: this.params[5],
+ "path-prefix": this.params[7],
+ "debug-level": this.params[8]
+ }
+ });
+ var nodeServer = this.server.listen();
+ $tw.hooks.invokeHook("th-server-command-post-start",this.server,nodeServer,"tiddlywiki");
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/setfield.js
+type: application/javascript
+module-type: command
+
+Command to modify selected tiddlers to set a field to the text of a template tiddler that has been wikified with the selected tiddler as the current tiddler.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var widget = require("$:/core/modules/widgets/widget.js");
+
+exports.info = {
+ name: "setfield",
+ synchronous: true
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ if(this.params.length < 4) {
+ return "Missing parameters";
+ }
+ var self = this,
+ wiki = this.commander.wiki,
+ filter = this.params[0],
+ fieldname = this.params[1] || "text",
+ templatetitle = this.params[2],
+ rendertype = this.params[3] || "text/plain",
+ tiddlers = wiki.filterTiddlers(filter);
+ $tw.utils.each(tiddlers,function(title) {
+ var parser = wiki.parseTiddler(templatetitle),
+ newFields = {},
+ tiddler = wiki.getTiddler(title);
+ if(parser) {
+ var widgetNode = wiki.makeWidget(parser,{variables: {currentTiddler: title}});
+ var container = $tw.fakeDocument.createElement("div");
+ widgetNode.render(container,null);
+ newFields[fieldname] = rendertype === "text/html" ? container.innerHTML : container.textContent;
+ } else {
+ newFields[fieldname] = undefined;
+ }
+ wiki.addTiddler(new $tw.Tiddler(tiddler,newFields));
+ });
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/unpackplugin.js
+type: application/javascript
+module-type: command
+
+Command to extract the shadow tiddlers from within a plugin
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "unpackplugin",
+ synchronous: true
+};
+
+var Command = function(params,commander,callback) {
+ this.params = params;
+ this.commander = commander;
+ this.callback = callback;
+};
+
+Command.prototype.execute = function() {
+ if(this.params.length < 1) {
+ return "Missing plugin name";
+ }
+ var self = this,
+ title = this.params[0],
+ pluginData = this.commander.wiki.getTiddlerDataCached(title);
+ if(!pluginData) {
+ return "Plugin '" + title + "' not found";
+ }
+ $tw.utils.each(pluginData.tiddlers,function(tiddler) {
+ self.commander.wiki.addTiddler(new $tw.Tiddler(tiddler));
+ });
+ return null;
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/verbose.js
+type: application/javascript
+module-type: command
+
+Verbose command
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "verbose",
+ synchronous: true
+};
+
+var Command = function(params,commander) {
+ this.params = params;
+ this.commander = commander;
+};
+
+Command.prototype.execute = function() {
+ this.commander.verbose = true;
+ // Output the boot message log
+ this.commander.streams.output.write("Boot log:\n " + $tw.boot.logMessages.join("\n ") + "\n");
+ return null; // No error
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/commands/version.js
+type: application/javascript
+module-type: command
+
+Version command
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.info = {
+ name: "version",
+ synchronous: true
+};
+
+var Command = function(params,commander) {
+ this.params = params;
+ this.commander = commander;
+};
+
+Command.prototype.execute = function() {
+ this.commander.streams.output.write($tw.version + "\n");
+ return null; // No error
+};
+
+exports.Command = Command;
+
+})();
+
+/*\
+title: $:/core/modules/config.js
+type: application/javascript
+module-type: config
+
+Core configuration constants
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.preferences = {};
+
+exports.preferences.notificationDuration = 3 * 1000;
+exports.preferences.jsonSpaces = 4;
+
+exports.textPrimitives = {
+ upperLetter: "[A-Z\u00c0-\u00d6\u00d8-\u00de\u0150\u0170]",
+ lowerLetter: "[a-z\u00df-\u00f6\u00f8-\u00ff\u0151\u0171]",
+ anyLetter: "[A-Za-z0-9\u00c0-\u00d6\u00d8-\u00de\u00df-\u00f6\u00f8-\u00ff\u0150\u0170\u0151\u0171]",
+ blockPrefixLetters: "[A-Za-z0-9-_\u00c0-\u00d6\u00d8-\u00de\u00df-\u00f6\u00f8-\u00ff\u0150\u0170\u0151\u0171]"
+};
+
+exports.textPrimitives.unWikiLink = "~";
+exports.textPrimitives.wikiLink = exports.textPrimitives.upperLetter + "+" +
+ exports.textPrimitives.lowerLetter + "+" +
+ exports.textPrimitives.upperLetter +
+ exports.textPrimitives.anyLetter + "*";
+
+exports.htmlEntities = {quot:34, amp:38, apos:39, lt:60, gt:62, nbsp:160, iexcl:161, cent:162, pound:163, curren:164, yen:165, brvbar:166, sect:167, uml:168, copy:169, ordf:170, laquo:171, not:172, shy:173, reg:174, macr:175, deg:176, plusmn:177, sup2:178, sup3:179, acute:180, micro:181, para:182, middot:183, cedil:184, sup1:185, ordm:186, raquo:187, frac14:188, frac12:189, frac34:190, iquest:191, Agrave:192, Aacute:193, Acirc:194, Atilde:195, Auml:196, Aring:197, AElig:198, Ccedil:199, Egrave:200, Eacute:201, Ecirc:202, Euml:203, Igrave:204, Iacute:205, Icirc:206, Iuml:207, ETH:208, Ntilde:209, Ograve:210, Oacute:211, Ocirc:212, Otilde:213, Ouml:214, times:215, Oslash:216, Ugrave:217, Uacute:218, Ucirc:219, Uuml:220, Yacute:221, THORN:222, szlig:223, agrave:224, aacute:225, acirc:226, atilde:227, auml:228, aring:229, aelig:230, ccedil:231, egrave:232, eacute:233, ecirc:234, euml:235, igrave:236, iacute:237, icirc:238, iuml:239, eth:240, ntilde:241, ograve:242, oacute:243, ocirc:244, otilde:245, ouml:246, divide:247, oslash:248, ugrave:249, uacute:250, ucirc:251, uuml:252, yacute:253, thorn:254, yuml:255, OElig:338, oelig:339, Scaron:352, scaron:353, Yuml:376, fnof:402, circ:710, tilde:732, Alpha:913, Beta:914, Gamma:915, Delta:916, Epsilon:917, Zeta:918, Eta:919, Theta:920, Iota:921, Kappa:922, Lambda:923, Mu:924, Nu:925, Xi:926, Omicron:927, Pi:928, Rho:929, Sigma:931, Tau:932, Upsilon:933, Phi:934, Chi:935, Psi:936, Omega:937, alpha:945, beta:946, gamma:947, delta:948, epsilon:949, zeta:950, eta:951, theta:952, iota:953, kappa:954, lambda:955, mu:956, nu:957, xi:958, omicron:959, pi:960, rho:961, sigmaf:962, sigma:963, tau:964, upsilon:965, phi:966, chi:967, psi:968, omega:969, thetasym:977, upsih:978, piv:982, ensp:8194, emsp:8195, thinsp:8201, zwnj:8204, zwj:8205, lrm:8206, rlm:8207, ndash:8211, mdash:8212, lsquo:8216, rsquo:8217, sbquo:8218, ldquo:8220, rdquo:8221, bdquo:8222, dagger:8224, Dagger:8225, bull:8226, hellip:8230, permil:8240, prime:8242, Prime:8243, lsaquo:8249, rsaquo:8250, oline:8254, frasl:8260, euro:8364, image:8465, weierp:8472, real:8476, trade:8482, alefsym:8501, larr:8592, uarr:8593, rarr:8594, darr:8595, harr:8596, crarr:8629, lArr:8656, uArr:8657, rArr:8658, dArr:8659, hArr:8660, forall:8704, part:8706, exist:8707, empty:8709, nabla:8711, isin:8712, notin:8713, ni:8715, prod:8719, sum:8721, minus:8722, lowast:8727, radic:8730, prop:8733, infin:8734, ang:8736, and:8743, or:8744, cap:8745, cup:8746, int:8747, there4:8756, sim:8764, cong:8773, asymp:8776, ne:8800, equiv:8801, le:8804, ge:8805, sub:8834, sup:8835, nsub:8836, sube:8838, supe:8839, oplus:8853, otimes:8855, perp:8869, sdot:8901, lceil:8968, rceil:8969, lfloor:8970, rfloor:8971, lang:9001, rang:9002, loz:9674, spades:9824, clubs:9827, hearts:9829, diams:9830 };
+
+exports.htmlVoidElements = "area,base,br,col,command,embed,hr,img,input,keygen,link,meta,param,source,track,wbr".split(",");
+
+exports.htmlBlockElements = "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".split(",");
+
+exports.htmlUnsafeElements = "script".split(",");
+
+})();
+
+/*\
+title: $:/core/modules/deserializers.js
+type: application/javascript
+module-type: tiddlerdeserializer
+
+Functions to deserialise tiddlers from a block of text
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Utility function to parse an old-style tiddler DIV in a *.tid file. It looks like this:
+
+<div title="Title" creator="JoeBloggs" modifier="JoeBloggs" created="201102111106" modified="201102111310" tags="myTag [[my long tag]]">
+<pre>The text of the tiddler (without the expected HTML encoding).
+</pre>
+</div>
+
+Note that the field attributes are HTML encoded, but that the body of the <PRE> tag is not encoded.
+
+When these tiddler DIVs are encountered within a TiddlyWiki HTML file then the body is encoded in the usual way.
+*/
+var parseTiddlerDiv = function(text /* [,fields] */) {
+ // Slot together the default results
+ var result = {};
+ if(arguments.length > 1) {
+ for(var f=1; f<arguments.length; f++) {
+ var fields = arguments[f];
+ for(var t in fields) {
+ result[t] = fields[t];
+ }
+ }
+ }
+ // Parse the DIV body
+ var startRegExp = /^\s*<div\s+([^>]*)>(\s*<pre>)?/gi,
+ endRegExp,
+ match = startRegExp.exec(text);
+ if(match) {
+ // Old-style DIVs don't have the <pre> tag
+ if(match[2]) {
+ endRegExp = /<\/pre>\s*<\/div>\s*$/gi;
+ } else {
+ endRegExp = /<\/div>\s*$/gi;
+ }
+ var endMatch = endRegExp.exec(text);
+ if(endMatch) {
+ // Extract the text
+ result.text = text.substring(match.index + match[0].length,endMatch.index);
+ // Process the attributes
+ var attrRegExp = /\s*([^=\s]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/gi,
+ attrMatch;
+ do {
+ attrMatch = attrRegExp.exec(match[1]);
+ if(attrMatch) {
+ var name = attrMatch[1];
+ var value = attrMatch[2] !== undefined ? attrMatch[2] : attrMatch[3];
+ result[name] = value;
+ }
+ } while(attrMatch);
+ return result;
+ }
+ }
+ return undefined;
+};
+
+exports["application/x-tiddler-html-div"] = function(text,fields) {
+ return [parseTiddlerDiv(text,fields)];
+};
+
+exports["application/json"] = function(text,fields) {
+ var incoming,
+ results = [];
+ try {
+ incoming = JSON.parse(text);
+ } catch(e) {
+ incoming = [{
+ title: "JSON error: " + e,
+ text: ""
+ }]
+ }
+ if(!$tw.utils.isArray(incoming)) {
+ incoming = [incoming];
+ }
+ for(var t=0; t<incoming.length; t++) {
+ var incomingFields = incoming[t],
+ fields = {};
+ for(var f in incomingFields) {
+ if(typeof incomingFields[f] === "string") {
+ fields[f] = incomingFields[f];
+ }
+ }
+ results.push(fields);
+ }
+ return results;
+};
+
+/*
+Parse an HTML file into tiddlers. There are three possibilities:
+# A TiddlyWiki classic HTML file containing `text/x-tiddlywiki` tiddlers
+# A TiddlyWiki5 HTML file containing `text/vnd.tiddlywiki` tiddlers
+# An ordinary HTML file
+*/
+exports["text/html"] = function(text,fields) {
+ // Check if we've got a store area
+ var storeAreaMarkerRegExp = /<div id=["']?storeArea['"]?( style=["']?display:none;["']?)?>/gi,
+ match = storeAreaMarkerRegExp.exec(text);
+ if(match) {
+ // If so, it's either a classic TiddlyWiki file or an unencrypted TW5 file
+ // First read the normal tiddlers
+ var results = deserializeTiddlyWikiFile(text,storeAreaMarkerRegExp.lastIndex,!!match[1],fields);
+ // Then any system tiddlers
+ var systemAreaMarkerRegExp = /<div id=["']?systemArea['"]?( style=["']?display:none;["']?)?>/gi,
+ sysMatch = systemAreaMarkerRegExp.exec(text);
+ if(sysMatch) {
+ results.push.apply(results,deserializeTiddlyWikiFile(text,systemAreaMarkerRegExp.lastIndex,!!sysMatch[1],fields));
+ }
+ return results;
+ } else {
+ // Check whether we've got an encrypted file
+ var encryptedStoreArea = $tw.utils.extractEncryptedStoreArea(text);
+ if(encryptedStoreArea) {
+ // If so, attempt to decrypt it using the current password
+ return $tw.utils.decryptStoreArea(encryptedStoreArea);
+ } else {
+ // It's not a TiddlyWiki so we'll return the entire HTML file as a tiddler
+ return deserializeHtmlFile(text,fields);
+ }
+ }
+};
+
+function deserializeHtmlFile(text,fields) {
+ var result = {};
+ $tw.utils.each(fields,function(value,name) {
+ result[name] = value;
+ });
+ result.text = text;
+ result.type = "text/html";
+ return [result];
+}
+
+function deserializeTiddlyWikiFile(text,storeAreaEnd,isTiddlyWiki5,fields) {
+ var results = [],
+ endOfDivRegExp = /(<\/div>\s*)/gi,
+ startPos = storeAreaEnd,
+ defaultType = isTiddlyWiki5 ? undefined : "text/x-tiddlywiki";
+ endOfDivRegExp.lastIndex = startPos;
+ var match = endOfDivRegExp.exec(text);
+ while(match) {
+ var endPos = endOfDivRegExp.lastIndex,
+ tiddlerFields = parseTiddlerDiv(text.substring(startPos,endPos),fields,{type: defaultType});
+ if(!tiddlerFields) {
+ break;
+ }
+ $tw.utils.each(tiddlerFields,function(value,name) {
+ if(typeof value === "string") {
+ tiddlerFields[name] = $tw.utils.htmlDecode(value);
+ }
+ });
+ if(tiddlerFields.text !== null) {
+ results.push(tiddlerFields);
+ }
+ startPos = endPos;
+ match = endOfDivRegExp.exec(text);
+ }
+ return results;
+}
+
+})();
+
+/*\
+title: $:/core/modules/editor/engines/framed.js
+type: application/javascript
+module-type: library
+
+Text editor engine based on a simple input or textarea within an iframe. This is done so that the selection is preserved even when clicking away from the textarea
+
+\*/
+(function(){
+
+/*jslint node: true,browser: true */
+/*global $tw: false */
+"use strict";
+
+var HEIGHT_VALUE_TITLE = "$:/config/TextEditor/EditorHeight/Height";
+
+function FramedEngine(options) {
+ // Save our options
+ options = options || {};
+ this.widget = options.widget;
+ this.value = options.value;
+ this.parentNode = options.parentNode;
+ this.nextSibling = options.nextSibling;
+ // Create our hidden dummy text area for reading styles
+ this.dummyTextArea = this.widget.document.createElement("textarea");
+ if(this.widget.editClass) {
+ this.dummyTextArea.className = this.widget.editClass;
+ }
+ this.dummyTextArea.setAttribute("hidden","true");
+ this.parentNode.insertBefore(this.dummyTextArea,this.nextSibling);
+ this.widget.domNodes.push(this.dummyTextArea);
+ // Create the iframe
+ this.iframeNode = this.widget.document.createElement("iframe");
+ this.parentNode.insertBefore(this.iframeNode,this.nextSibling);
+ this.iframeDoc = this.iframeNode.contentWindow.document;
+ // (Firefox requires us to put some empty content in the iframe)
+ this.iframeDoc.open();
+ this.iframeDoc.write("");
+ this.iframeDoc.close();
+ // Style the iframe
+ this.iframeNode.className = this.dummyTextArea.className;
+ this.iframeNode.style.border = "none";
+ this.iframeNode.style.padding = "0";
+ this.iframeNode.style.resize = "none";
+ this.iframeNode.style["background-color"] = this.widget.wiki.extractTiddlerDataItem(this.widget.wiki.getTiddlerText("$:/palette"),"tiddler-editor-background");
+ this.iframeDoc.body.style.margin = "0";
+ this.iframeDoc.body.style.padding = "0";
+ this.widget.domNodes.push(this.iframeNode);
+ // Construct the textarea or input node
+ var tag = this.widget.editTag;
+ if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
+ tag = "input";
+ }
+ this.domNode = this.iframeDoc.createElement(tag);
+ // Set the text
+ if(this.widget.editTag === "textarea") {
+ this.domNode.appendChild(this.iframeDoc.createTextNode(this.value));
+ } else {
+ this.domNode.value = this.value;
+ }
+ // Set the attributes
+ if(this.widget.editType) {
+ this.domNode.setAttribute("type",this.widget.editType);
+ }
+ if(this.widget.editPlaceholder) {
+ this.domNode.setAttribute("placeholder",this.widget.editPlaceholder);
+ }
+ if(this.widget.editSize) {
+ this.domNode.setAttribute("size",this.widget.editSize);
+ }
+ if(this.widget.editRows) {
+ this.domNode.setAttribute("rows",this.widget.editRows);
+ }
+ if(this.widget.editTabIndex) {
+ this.iframeNode.setAttribute("tabindex",this.widget.editTabIndex);
+ }
+ // Copy the styles from the dummy textarea
+ this.copyStyles();
+ // Add event listeners
+ $tw.utils.addEventListeners(this.domNode,[
+ {name: "click",handlerObject: this,handlerMethod: "handleClickEvent"},
+ {name: "input",handlerObject: this,handlerMethod: "handleInputEvent"},
+ {name: "keydown",handlerObject: this.widget,handlerMethod: "handleKeydownEvent"}
+ ]);
+ // Insert the element into the DOM
+ this.iframeDoc.body.appendChild(this.domNode);
+}
+
+/*
+Copy styles from the dummy text area to the textarea in the iframe
+*/
+FramedEngine.prototype.copyStyles = function() {
+ // Copy all styles
+ $tw.utils.copyStyles(this.dummyTextArea,this.domNode);
+ // Override the ones that should not be set the same as the dummy textarea
+ this.domNode.style.display = "block";
+ this.domNode.style.width = "100%";
+ this.domNode.style.margin = "0";
+ this.domNode.style["background-color"] = this.widget.wiki.extractTiddlerDataItem(this.widget.wiki.getTiddlerText("$:/palette"),"tiddler-editor-background");
+ // In Chrome setting -webkit-text-fill-color overrides the placeholder text colour
+ this.domNode.style["-webkit-text-fill-color"] = "currentcolor";
+};
+
+/*
+Set the text of the engine if it doesn't currently have focus
+*/
+FramedEngine.prototype.setText = function(text,type) {
+ if(!this.domNode.isTiddlyWikiFakeDom) {
+ if(this.domNode.ownerDocument.activeElement !== this.domNode) {
+ this.domNode.value = text;
+ }
+ // Fix the height if needed
+ this.fixHeight();
+ }
+};
+
+/*
+Get the text of the engine
+*/
+FramedEngine.prototype.getText = function() {
+ return this.domNode.value;
+};
+
+/*
+Fix the height of textarea to fit content
+*/
+FramedEngine.prototype.fixHeight = function() {
+ // Make sure styles are updated
+ this.copyStyles();
+ // Adjust height
+ if(this.widget.editTag === "textarea") {
+ if(this.widget.editAutoHeight) {
+ if(this.domNode && !this.domNode.isTiddlyWikiFakeDom) {
+ var newHeight = $tw.utils.resizeTextAreaToFit(this.domNode,this.widget.editMinHeight);
+ this.iframeNode.style.height = (newHeight + 14) + "px"; // +14 for the border on the textarea
+ }
+ } else {
+ var fixedHeight = parseInt(this.widget.wiki.getTiddlerText(HEIGHT_VALUE_TITLE,"400px"),10);
+ fixedHeight = Math.max(fixedHeight,20);
+ this.domNode.style.height = fixedHeight + "px";
+ this.iframeNode.style.height = (fixedHeight + 14) + "px";
+ }
+ }
+};
+
+/*
+Focus the engine node
+*/
+FramedEngine.prototype.focus = function() {
+ if(this.domNode.focus && this.domNode.select) {
+ this.domNode.focus();
+ this.domNode.select();
+ }
+};
+
+/*
+Handle a click
+*/
+FramedEngine.prototype.handleClickEvent = function(event) {
+ this.fixHeight();
+ return true;
+};
+
+/*
+Handle a dom "input" event which occurs when the text has changed
+*/
+FramedEngine.prototype.handleInputEvent = function(event) {
+ this.widget.saveChanges(this.getText());
+ this.fixHeight();
+ return true;
+};
+
+/*
+Create a blank structure representing a text operation
+*/
+FramedEngine.prototype.createTextOperation = function() {
+ var operation = {
+ text: this.domNode.value,
+ selStart: this.domNode.selectionStart,
+ selEnd: this.domNode.selectionEnd,
+ cutStart: null,
+ cutEnd: null,
+ replacement: null,
+ newSelStart: null,
+ newSelEnd: null
+ };
+ operation.selection = operation.text.substring(operation.selStart,operation.selEnd);
+ return operation;
+};
+
+/*
+Execute a text operation
+*/
+FramedEngine.prototype.executeTextOperation = function(operation) {
+ // Perform the required changes to the text area and the underlying tiddler
+ var newText = operation.text;
+ if(operation.replacement !== null) {
+ newText = operation.text.substring(0,operation.cutStart) + operation.replacement + operation.text.substring(operation.cutEnd);
+ // Attempt to use a execCommand to modify the value of the control
+ if(this.iframeDoc.queryCommandSupported("insertText") && this.iframeDoc.queryCommandSupported("delete") && !$tw.browser.isFirefox) {
+ this.domNode.focus();
+ this.domNode.setSelectionRange(operation.cutStart,operation.cutEnd);
+ if(operation.replacement === "") {
+ this.iframeDoc.execCommand("delete",false,"");
+ } else {
+ this.iframeDoc.execCommand("insertText",false,operation.replacement);
+ }
+ } else {
+ this.domNode.value = newText;
+ }
+ this.domNode.focus();
+ this.domNode.setSelectionRange(operation.newSelStart,operation.newSelEnd);
+ }
+ this.domNode.focus();
+ return newText;
+};
+
+exports.FramedEngine = FramedEngine;
+
+})();
+
+/*\
+title: $:/core/modules/editor/engines/simple.js
+type: application/javascript
+module-type: library
+
+Text editor engine based on a simple input or textarea tag
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var HEIGHT_VALUE_TITLE = "$:/config/TextEditor/EditorHeight/Height";
+
+function SimpleEngine(options) {
+ // Save our options
+ options = options || {};
+ this.widget = options.widget;
+ this.value = options.value;
+ this.parentNode = options.parentNode;
+ this.nextSibling = options.nextSibling;
+ // Construct the textarea or input node
+ var tag = this.widget.editTag;
+ if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
+ tag = "input";
+ }
+ this.domNode = this.widget.document.createElement(tag);
+ // Set the text
+ if(this.widget.editTag === "textarea") {
+ this.domNode.appendChild(this.widget.document.createTextNode(this.value));
+ } else {
+ this.domNode.value = this.value;
+ }
+ // Set the attributes
+ if(this.widget.editType) {
+ this.domNode.setAttribute("type",this.widget.editType);
+ }
+ if(this.widget.editPlaceholder) {
+ this.domNode.setAttribute("placeholder",this.widget.editPlaceholder);
+ }
+ if(this.widget.editSize) {
+ this.domNode.setAttribute("size",this.widget.editSize);
+ }
+ if(this.widget.editRows) {
+ this.domNode.setAttribute("rows",this.widget.editRows);
+ }
+ if(this.widget.editClass) {
+ this.domNode.className = this.widget.editClass;
+ }
+ if(this.widget.editTabIndex) {
+ this.domNode.setAttribute("tabindex",this.widget.editTabIndex);
+ }
+ // Add an input event handler
+ $tw.utils.addEventListeners(this.domNode,[
+ {name: "focus", handlerObject: this, handlerMethod: "handleFocusEvent"},
+ {name: "input", handlerObject: this, handlerMethod: "handleInputEvent"}
+ ]);
+ // Insert the element into the DOM
+ this.parentNode.insertBefore(this.domNode,this.nextSibling);
+ this.widget.domNodes.push(this.domNode);
+}
+
+/*
+Set the text of the engine if it doesn't currently have focus
+*/
+SimpleEngine.prototype.setText = function(text,type) {
+ if(!this.domNode.isTiddlyWikiFakeDom) {
+ if(this.domNode.ownerDocument.activeElement !== this.domNode || text === "") {
+ this.domNode.value = text;
+ }
+ // Fix the height if needed
+ this.fixHeight();
+ }
+};
+
+/*
+Get the text of the engine
+*/
+SimpleEngine.prototype.getText = function() {
+ return this.domNode.value;
+};
+
+/*
+Fix the height of textarea to fit content
+*/
+SimpleEngine.prototype.fixHeight = function() {
+ if(this.widget.editTag === "textarea") {
+ if(this.widget.editAutoHeight) {
+ if(this.domNode && !this.domNode.isTiddlyWikiFakeDom) {
+ $tw.utils.resizeTextAreaToFit(this.domNode,this.widget.editMinHeight);
+ }
+ } else {
+ var fixedHeight = parseInt(this.widget.wiki.getTiddlerText(HEIGHT_VALUE_TITLE,"400px"),10);
+ fixedHeight = Math.max(fixedHeight,20);
+ this.domNode.style.height = fixedHeight + "px";
+ }
+ }
+};
+
+/*
+Focus the engine node
+*/
+SimpleEngine.prototype.focus = function() {
+ if(this.domNode.focus && this.domNode.select) {
+ this.domNode.focus();
+ this.domNode.select();
+ }
+};
+
+/*
+Handle a dom "input" event which occurs when the text has changed
+*/
+SimpleEngine.prototype.handleInputEvent = function(event) {
+ this.widget.saveChanges(this.getText());
+ this.fixHeight();
+ return true;
+};
+
+/*
+Handle a dom "focus" event
+*/
+SimpleEngine.prototype.handleFocusEvent = function(event) {
+ if(this.widget.editFocusPopup) {
+ $tw.popup.triggerPopup({
+ domNode: this.domNode,
+ title: this.widget.editFocusPopup,
+ wiki: this.widget.wiki,
+ force: true
+ });
+ }
+ return true;
+};
+
+/*
+Create a blank structure representing a text operation
+*/
+SimpleEngine.prototype.createTextOperation = function() {
+ return null;
+};
+
+/*
+Execute a text operation
+*/
+SimpleEngine.prototype.executeTextOperation = function(operation) {
+};
+
+exports.SimpleEngine = SimpleEngine;
+
+})();
+
+/*\
+title: $:/core/modules/editor/factory.js
+type: application/javascript
+module-type: library
+
+Factory for constructing text editor widgets with specified engines for the toolbar and non-toolbar cases
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var DEFAULT_MIN_TEXT_AREA_HEIGHT = "100px"; // Minimum height of textareas in pixels
+
+// Configuration tiddlers
+var HEIGHT_MODE_TITLE = "$:/config/TextEditor/EditorHeight/Mode";
+var ENABLE_TOOLBAR_TITLE = "$:/config/TextEditor/EnableToolbar";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+function editTextWidgetFactory(toolbarEngine,nonToolbarEngine) {
+
+ var EditTextWidget = function(parseTreeNode,options) {
+ // Initialise the editor operations if they've not been done already
+ if(!this.editorOperations) {
+ EditTextWidget.prototype.editorOperations = {};
+ $tw.modules.applyMethods("texteditoroperation",this.editorOperations);
+ }
+ this.initialise(parseTreeNode,options);
+ };
+
+ /*
+ Inherit from the base widget class
+ */
+ EditTextWidget.prototype = new Widget();
+
+ /*
+ Render this widget into the DOM
+ */
+ EditTextWidget.prototype.render = function(parent,nextSibling) {
+ // Save the parent dom node
+ this.parentDomNode = parent;
+ // Compute our attributes
+ this.computeAttributes();
+ // Execute our logic
+ this.execute();
+ // Create the wrapper for the toolbar and render its content
+ if(this.editShowToolbar) {
+ this.toolbarNode = this.document.createElement("div");
+ this.toolbarNode.className = "tc-editor-toolbar";
+ parent.insertBefore(this.toolbarNode,nextSibling);
+ this.renderChildren(this.toolbarNode,null);
+ this.domNodes.push(this.toolbarNode);
+ }
+ // Create our element
+ var editInfo = this.getEditInfo(),
+ Engine = this.editShowToolbar ? toolbarEngine : nonToolbarEngine;
+ this.engine = new Engine({
+ widget: this,
+ value: editInfo.value,
+ type: editInfo.type,
+ parentNode: parent,
+ nextSibling: nextSibling
+ });
+ // Call the postRender hook
+ if(this.postRender) {
+ this.postRender();
+ }
+ // Fix height
+ this.engine.fixHeight();
+ // Focus if required
+ if(this.editFocus === "true" || this.editFocus === "yes") {
+ this.engine.focus();
+ }
+ // Add widget message listeners
+ this.addEventListeners([
+ {type: "tm-edit-text-operation", handler: "handleEditTextOperationMessage"}
+ ]);
+ };
+
+ /*
+ Get the tiddler being edited and current value
+ */
+ EditTextWidget.prototype.getEditInfo = function() {
+ // Get the edit value
+ var self = this,
+ value,
+ type = "text/plain",
+ update;
+ if(this.editIndex) {
+ value = this.wiki.extractTiddlerDataItem(this.editTitle,this.editIndex,this.editDefault);
+ update = function(value) {
+ var data = self.wiki.getTiddlerData(self.editTitle,{});
+ if(data[self.editIndex] !== value) {
+ data[self.editIndex] = value;
+ self.wiki.setTiddlerData(self.editTitle,data);
+ }
+ };
+ } else {
+ // Get the current tiddler and the field name
+ var tiddler = this.wiki.getTiddler(this.editTitle);
+ if(tiddler) {
+ // If we've got a tiddler, the value to display is the field string value
+ value = tiddler.getFieldString(this.editField);
+ if(this.editField === "text") {
+ type = tiddler.fields.type || "text/vnd.tiddlywiki";
+ }
+ } else {
+ // Otherwise, we need to construct a default value for the editor
+ switch(this.editField) {
+ case "text":
+ value = "Type the text for the tiddler '" + this.editTitle + "'";
+ type = "text/vnd.tiddlywiki";
+ break;
+ case "title":
+ value = this.editTitle;
+ break;
+ default:
+ value = "";
+ break;
+ }
+ if(this.editDefault !== undefined) {
+ value = this.editDefault;
+ }
+ }
+ update = function(value) {
+ var tiddler = self.wiki.getTiddler(self.editTitle),
+ updateFields = {
+ title: self.editTitle
+ };
+ updateFields[self.editField] = value;
+ self.wiki.addTiddler(new $tw.Tiddler(self.wiki.getCreationFields(),tiddler,updateFields,self.wiki.getModificationFields()));
+ };
+ }
+ if(this.editType) {
+ type = this.editType;
+ }
+ return {value: value || "", type: type, update: update};
+ };
+
+ /*
+ Handle an edit text operation message from the toolbar
+ */
+ EditTextWidget.prototype.handleEditTextOperationMessage = function(event) {
+ // Prepare information about the operation
+ var operation = this.engine.createTextOperation();
+ // Invoke the handler for the selected operation
+ var handler = this.editorOperations[event.param];
+ if(handler) {
+ handler.call(this,event,operation);
+ }
+ // Execute the operation via the engine
+ var newText = this.engine.executeTextOperation(operation);
+ // Fix the tiddler height and save changes
+ this.engine.fixHeight();
+ this.saveChanges(newText);
+ };
+
+ /*
+ Compute the internal state of the widget
+ */
+ EditTextWidget.prototype.execute = function() {
+ // Get our parameters
+ this.editTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
+ this.editField = this.getAttribute("field","text");
+ this.editIndex = this.getAttribute("index");
+ this.editDefault = this.getAttribute("default");
+ this.editClass = this.getAttribute("class");
+ this.editPlaceholder = this.getAttribute("placeholder");
+ this.editSize = this.getAttribute("size");
+ this.editRows = this.getAttribute("rows");
+ this.editAutoHeight = this.wiki.getTiddlerText(HEIGHT_MODE_TITLE,"auto");
+ this.editAutoHeight = this.getAttribute("autoHeight",this.editAutoHeight === "auto" ? "yes" : "no") === "yes";
+ this.editMinHeight = this.getAttribute("minHeight",DEFAULT_MIN_TEXT_AREA_HEIGHT);
+ this.editFocusPopup = this.getAttribute("focusPopup");
+ this.editFocus = this.getAttribute("focus");
+ this.editTabIndex = this.getAttribute("tabindex");
+ // Get the default editor element tag and type
+ var tag,type;
+ if(this.editField === "text") {
+ tag = "textarea";
+ } else {
+ tag = "input";
+ var fieldModule = $tw.Tiddler.fieldModules[this.editField];
+ if(fieldModule && fieldModule.editTag) {
+ tag = fieldModule.editTag;
+ }
+ if(fieldModule && fieldModule.editType) {
+ type = fieldModule.editType;
+ }
+ type = type || "text";
+ }
+ // Get the rest of our parameters
+ this.editTag = this.getAttribute("tag",tag) || "input";
+ this.editType = this.getAttribute("type",type);
+ // Make the child widgets
+ this.makeChildWidgets();
+ // Determine whether to show the toolbar
+ this.editShowToolbar = this.wiki.getTiddlerText(ENABLE_TOOLBAR_TITLE,"yes");
+ this.editShowToolbar = (this.editShowToolbar === "yes") && !!(this.children && this.children.length > 0) && (!this.document.isTiddlyWikiFakeDom);
+ };
+
+ /*
+ Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+ */
+ EditTextWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ // Completely rerender if any of our attributes have changed
+ if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes["default"] || changedAttributes["class"] || changedAttributes.placeholder || changedAttributes.size || changedAttributes.autoHeight || changedAttributes.minHeight || changedAttributes.focusPopup || changedAttributes.rows || changedAttributes.tabindex || changedTiddlers[HEIGHT_MODE_TITLE] || changedTiddlers[ENABLE_TOOLBAR_TITLE]) {
+ this.refreshSelf();
+ return true;
+ } else if(changedTiddlers[this.editTitle]) {
+ var editInfo = this.getEditInfo();
+ this.updateEditor(editInfo.value,editInfo.type);
+ }
+ this.engine.fixHeight();
+ if(this.editShowToolbar) {
+ return this.refreshChildren(changedTiddlers);
+ } else {
+ return false;
+ }
+ };
+
+ /*
+ Update the editor with new text. This method is separate from updateEditorDomNode()
+ so that subclasses can override updateEditor() and still use updateEditorDomNode()
+ */
+ EditTextWidget.prototype.updateEditor = function(text,type) {
+ this.updateEditorDomNode(text,type);
+ };
+
+ /*
+ Update the editor dom node with new text
+ */
+ EditTextWidget.prototype.updateEditorDomNode = function(text,type) {
+ this.engine.setText(text,type);
+ };
+
+ /*
+ Save changes back to the tiddler store
+ */
+ EditTextWidget.prototype.saveChanges = function(text) {
+ var editInfo = this.getEditInfo();
+ if(text !== editInfo.value) {
+ editInfo.update(text);
+ }
+ };
+
+ /*
+ Handle a dom "keydown" event, which we'll bubble up to our container for the keyboard widgets benefit
+ */
+ EditTextWidget.prototype.handleKeydownEvent = function(event) {
+ // Check for a keyboard shortcut
+ if(this.toolbarNode) {
+ var shortcutElements = this.toolbarNode.querySelectorAll("[data-tw-keyboard-shortcut]");
+ for(var index=0; index<shortcutElements.length; index++) {
+ var el = shortcutElements[index],
+ shortcutData = el.getAttribute("data-tw-keyboard-shortcut"),
+ keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(shortcutData,{
+ wiki: this.wiki
+ });
+ if($tw.keyboardManager.checkKeyDescriptors(event,keyInfoArray)) {
+ var clickEvent = this.document.createEvent("Events");
+ clickEvent.initEvent("click",true,false);
+ el.dispatchEvent(clickEvent);
+ event.preventDefault();
+ event.stopPropagation();
+ return true;
+ }
+ }
+ }
+ // Propogate the event to the container
+ if(this.propogateKeydownEvent(event)) {
+ // Ignore the keydown if it was already handled
+ event.preventDefault();
+ event.stopPropagation();
+ return true;
+ }
+ // Otherwise, process the keydown normally
+ return false;
+ };
+
+ /*
+ Propogate keydown events to our container for the keyboard widgets benefit
+ */
+ EditTextWidget.prototype.propogateKeydownEvent = function(event) {
+ var newEvent = this.document.createEventObject ? this.document.createEventObject() : this.document.createEvent("Events");
+ if(newEvent.initEvent) {
+ newEvent.initEvent("keydown", true, true);
+ }
+ newEvent.keyCode = event.keyCode;
+ newEvent.which = event.which;
+ newEvent.metaKey = event.metaKey;
+ newEvent.ctrlKey = event.ctrlKey;
+ newEvent.altKey = event.altKey;
+ newEvent.shiftKey = event.shiftKey;
+ return !this.parentDomNode.dispatchEvent(newEvent);
+ };
+
+ return EditTextWidget;
+
+}
+
+exports.editTextWidgetFactory = editTextWidgetFactory;
+
+})();
+
+/*\
+title: $:/core/modules/editor/operations/bitmap/clear.js
+type: application/javascript
+module-type: bitmapeditoroperation
+
+Bitmap editor operation to clear the image
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports["clear"] = function(event) {
+ var ctx = this.canvasDomNode.getContext("2d");
+ ctx.globalAlpha = 1;
+ ctx.fillStyle = event.paramObject.colour || "white";
+ ctx.fillRect(0,0,this.canvasDomNode.width,this.canvasDomNode.height);
+ // Save changes
+ this.strokeEnd();
+};
+
+})();
+
+/*\
+title: $:/core/modules/editor/operations/bitmap/resize.js
+type: application/javascript
+module-type: bitmapeditoroperation
+
+Bitmap editor operation to resize the image
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports["resize"] = function(event) {
+ // Get the new width
+ var newWidth = parseInt(event.paramObject.width || this.canvasDomNode.width,10),
+ newHeight = parseInt(event.paramObject.height || this.canvasDomNode.height,10);
+ // Update if necessary
+ if(newWidth > 0 && newHeight > 0 && !(newWidth === this.currCanvas.width && newHeight === this.currCanvas.height)) {
+ this.changeCanvasSize(newWidth,newHeight);
+ }
+ // Update the input controls
+ this.refreshToolbar();
+ // Save the image into the tiddler
+ this.saveChanges();
+};
+
+})();
+
+/*\
+title: $:/core/modules/editor/operations/bitmap/rotate-left.js
+type: application/javascript
+module-type: bitmapeditoroperation
+
+Bitmap editor operation to rotate the image left by 90 degrees
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports["rotate-left"] = function(event) {
+ // Rotate the canvas left by 90 degrees
+ this.rotateCanvasLeft();
+ // Update the input controls
+ this.refreshToolbar();
+ // Save the image into the tiddler
+ this.saveChanges();
+};
+
+})();
+
+/*\
+title: $:/core/modules/editor/operations/text/excise.js
+type: application/javascript
+module-type: texteditoroperation
+
+Text editor operation to excise the selection to a new tiddler
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports["excise"] = function(event,operation) {
+ var editTiddler = this.wiki.getTiddler(this.editTitle),
+ editTiddlerTitle = this.editTitle;
+ if(editTiddler && editTiddler.fields["draft.of"]) {
+ editTiddlerTitle = editTiddler.fields["draft.of"];
+ }
+ var excisionTitle = event.paramObject.title || this.wiki.generateNewTitle("New Excision");
+ this.wiki.addTiddler(new $tw.Tiddler(
+ this.wiki.getCreationFields(),
+ this.wiki.getModificationFields(),
+ {
+ title: excisionTitle,
+ text: operation.selection,
+ tags: event.paramObject.tagnew === "yes" ? [editTiddlerTitle] : []
+ }
+ ));
+ operation.replacement = excisionTitle;
+ switch(event.paramObject.type || "transclude") {
+ case "transclude":
+ operation.replacement = "{{" + operation.replacement+ "}}";
+ break;
+ case "link":
+ operation.replacement = "[[" + operation.replacement+ "]]";
+ break;
+ case "macro":
+ operation.replacement = "<<" + (event.paramObject.macro || "translink") + " \"\"\"" + operation.replacement + "\"\"\">>";
+ break;
+ }
+ operation.cutStart = operation.selStart;
+ operation.cutEnd = operation.selEnd;
+ operation.newSelStart = operation.selStart;
+ operation.newSelEnd = operation.selStart + operation.replacement.length;
+};
+
+})();
+
+/*\
+title: $:/core/modules/editor/operations/text/make-link.js
+type: application/javascript
+module-type: texteditoroperation
+
+Text editor operation to make a link
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports["make-link"] = function(event,operation) {
+ if(operation.selection) {
+ operation.replacement = "[[" + operation.selection + "|" + event.paramObject.text + "]]";
+ operation.cutStart = operation.selStart;
+ operation.cutEnd = operation.selEnd;
+ } else {
+ operation.replacement = "[[" + event.paramObject.text + "]]";
+ operation.cutStart = operation.selStart;
+ operation.cutEnd = operation.selEnd;
+ }
+ operation.newSelStart = operation.selStart + operation.replacement.length;
+ operation.newSelEnd = operation.newSelStart;
+};
+
+})();
+
+/*\
+title: $:/core/modules/editor/operations/text/prefix-lines.js
+type: application/javascript
+module-type: texteditoroperation
+
+Text editor operation to add a prefix to the selected lines
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports["prefix-lines"] = function(event,operation) {
+ var targetCount = parseInt(event.paramObject.count + "",10);
+ // Cut just past the preceding line break, or the start of the text
+ operation.cutStart = $tw.utils.findPrecedingLineBreak(operation.text,operation.selStart);
+ // Cut to just past the following line break, or to the end of the text
+ operation.cutEnd = $tw.utils.findFollowingLineBreak(operation.text,operation.selEnd);
+ // Compose the required prefix
+ var prefix = $tw.utils.repeat(event.paramObject.character,targetCount);
+ // Process each line
+ var lines = operation.text.substring(operation.cutStart,operation.cutEnd).split(/\r?\n/mg);
+ $tw.utils.each(lines,function(line,index) {
+ // Remove and count any existing prefix characters
+ var count = 0;
+ while(line.charAt(0) === event.paramObject.character) {
+ line = line.substring(1);
+ count++;
+ }
+ // Remove any whitespace
+ while(line.charAt(0) === " ") {
+ line = line.substring(1);
+ }
+ // We're done if we removed the exact required prefix, otherwise add it
+ if(count !== targetCount) {
+ // Apply the prefix
+ line = prefix + " " + line;
+ }
+ // Save the modified line
+ lines[index] = line;
+ });
+ // Stitch the replacement text together and set the selection
+ operation.replacement = lines.join("\n");
+ if(lines.length === 1) {
+ operation.newSelStart = operation.cutStart + operation.replacement.length;
+ operation.newSelEnd = operation.newSelStart;
+ } else {
+ operation.newSelStart = operation.cutStart;
+ operation.newSelEnd = operation.newSelStart + operation.replacement.length;
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/editor/operations/text/replace-all.js
+type: application/javascript
+module-type: texteditoroperation
+
+Text editor operation to replace the entire text
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports["replace-all"] = function(event,operation) {
+ operation.cutStart = 0;
+ operation.cutEnd = operation.text.length;
+ operation.replacement = event.paramObject.text;
+ operation.newSelStart = 0;
+ operation.newSelEnd = operation.replacement.length;
+};
+
+})();
+
+/*\
+title: $:/core/modules/editor/operations/text/replace-selection.js
+type: application/javascript
+module-type: texteditoroperation
+
+Text editor operation to replace the selection
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports["replace-selection"] = function(event,operation) {
+ operation.replacement = event.paramObject.text;
+ operation.cutStart = operation.selStart;
+ operation.cutEnd = operation.selEnd;
+ operation.newSelStart = operation.selStart;
+ operation.newSelEnd = operation.selStart + operation.replacement.length;
+};
+
+})();
+
+/*\
+title: $:/core/modules/editor/operations/text/save-selection.js
+type: application/javascript
+module-type: texteditoroperation
+
+Text editor operation to save the current selection in a specified tiddler
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports["save-selection"] = function(event,operation) {
+ var tiddler = event.paramObject.tiddler,
+ field = event.paramObject.field || "text";
+ if(tiddler && field) {
+ this.wiki.setText(tiddler,field,null,operation.text.substring(operation.selStart,operation.selEnd));
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/editor/operations/text/wrap-lines.js
+type: application/javascript
+module-type: texteditoroperation
+
+Text editor operation to wrap the selected lines with a prefix and suffix
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports["wrap-lines"] = function(event,operation) {
+ // Cut just past the preceding line break, or the start of the text
+ operation.cutStart = $tw.utils.findPrecedingLineBreak(operation.text,operation.selStart);
+ // Cut to just past the following line break, or to the end of the text
+ operation.cutEnd = $tw.utils.findFollowingLineBreak(operation.text,operation.selEnd);
+ // Add the prefix and suffix
+ operation.replacement = event.paramObject.prefix + "\n" +
+ operation.text.substring(operation.cutStart,operation.cutEnd) + "\n" +
+ event.paramObject.suffix + "\n";
+ operation.newSelStart = operation.cutStart + event.paramObject.prefix.length + 1;
+ operation.newSelEnd = operation.newSelStart + (operation.cutEnd - operation.cutStart);
+};
+
+})();
+
+/*\
+title: $:/core/modules/editor/operations/text/wrap-selection.js
+type: application/javascript
+module-type: texteditoroperation
+
+Text editor operation to wrap the selection with the specified prefix and suffix
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports["wrap-selection"] = function(event,operation) {
+ if(operation.selStart === operation.selEnd) {
+ // No selection; check if we're within the prefix/suffix
+ if(operation.text.substring(operation.selStart - event.paramObject.prefix.length,operation.selStart + event.paramObject.suffix.length) === event.paramObject.prefix + event.paramObject.suffix) {
+ // Remove the prefix and suffix
+ operation.cutStart = operation.selStart - event.paramObject.prefix.length;
+ operation.cutEnd = operation.selEnd + event.paramObject.suffix.length;
+ operation.replacement = "";
+ operation.newSelStart = operation.cutStart;
+ operation.newSelEnd = operation.newSelStart;
+ } else {
+ // Wrap the cursor instead
+ operation.cutStart = operation.selStart;
+ operation.cutEnd = operation.selEnd;
+ operation.replacement = event.paramObject.prefix + event.paramObject.suffix;
+ operation.newSelStart = operation.selStart + event.paramObject.prefix.length;
+ operation.newSelEnd = operation.newSelStart;
+ }
+ } else if(operation.text.substring(operation.selStart,operation.selStart + event.paramObject.prefix.length) === event.paramObject.prefix && operation.text.substring(operation.selEnd - event.paramObject.suffix.length,operation.selEnd) === event.paramObject.suffix) {
+ // Prefix and suffix are already present, so remove them
+ operation.cutStart = operation.selStart;
+ operation.cutEnd = operation.selEnd;
+ operation.replacement = operation.selection.substring(event.paramObject.prefix.length,operation.selection.length - event.paramObject.suffix.length);
+ operation.newSelStart = operation.selStart;
+ operation.newSelEnd = operation.selStart + operation.replacement.length;
+ } else {
+ // Add the prefix and suffix
+ operation.cutStart = operation.selStart;
+ operation.cutEnd = operation.selEnd;
+ operation.replacement = event.paramObject.prefix + operation.selection + event.paramObject.suffix;
+ operation.newSelStart = operation.selStart;
+ operation.newSelEnd = operation.selStart + operation.replacement.length;
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters.js
+type: application/javascript
+module-type: wikimethod
+
+Adds tiddler filtering methods to the $tw.Wiki object.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Parses an operation (i.e. a run) within a filter string
+ operators: Array of array of operator nodes into which results should be inserted
+ filterString: filter string
+ p: start position within the string
+Returns the new start position, after the parsed operation
+*/
+function parseFilterOperation(operators,filterString,p) {
+ var nextBracketPos, operator;
+ // Skip the starting square bracket
+ if(filterString.charAt(p++) !== "[") {
+ throw "Missing [ in filter expression";
+ }
+ // Process each operator in turn
+ do {
+ operator = {};
+ // Check for an operator prefix
+ if(filterString.charAt(p) === "!") {
+ operator.prefix = filterString.charAt(p++);
+ }
+ // Get the operator name
+ nextBracketPos = filterString.substring(p).search(/[\[\{<\/]/);
+ if(nextBracketPos === -1) {
+ throw "Missing [ in filter expression";
+ }
+ nextBracketPos += p;
+ var bracket = filterString.charAt(nextBracketPos);
+ operator.operator = filterString.substring(p,nextBracketPos);
+ // Any suffix?
+ var colon = operator.operator.indexOf(':');
+ if(colon > -1) {
+ // The raw suffix for older filters
+ operator.suffix = operator.operator.substring(colon + 1);
+ operator.operator = operator.operator.substring(0,colon) || "field";
+ // The processed suffix for newer filters
+ operator.suffixes = [];
+ $tw.utils.each(operator.suffix.split(":"),function(subsuffix) {
+ operator.suffixes.push([]);
+ $tw.utils.each(subsuffix.split(","),function(entry) {
+ entry = $tw.utils.trim(entry);
+ if(entry) {
+ operator.suffixes[operator.suffixes.length - 1].push(entry);
+ }
+ });
+ });
+ }
+ // Empty operator means: title
+ else if(operator.operator === "") {
+ operator.operator = "title";
+ }
+
+ p = nextBracketPos + 1;
+ switch (bracket) {
+ case "{": // Curly brackets
+ operator.indirect = true;
+ nextBracketPos = filterString.indexOf("}",p);
+ break;
+ case "[": // Square brackets
+ nextBracketPos = filterString.indexOf("]",p);
+ break;
+ case "<": // Angle brackets
+ operator.variable = true;
+ nextBracketPos = filterString.indexOf(">",p);
+ break;
+ case "/": // regexp brackets
+ var rex = /^((?:[^\\\/]*|\\.)*)\/(?:\(([mygi]+)\))?/g,
+ rexMatch = rex.exec(filterString.substring(p));
+ if(rexMatch) {
+ operator.regexp = new RegExp(rexMatch[1], rexMatch[2]);
+// DEPRECATION WARNING
+console.log("WARNING: Filter",operator.operator,"has a deprecated regexp operand",operator.regexp);
+ nextBracketPos = p + rex.lastIndex - 1;
+ }
+ else {
+ throw "Unterminated regular expression in filter expression";
+ }
+ break;
+ }
+
+ if(nextBracketPos === -1) {
+ throw "Missing closing bracket in filter expression";
+ }
+ if(!operator.regexp) {
+ operator.operand = filterString.substring(p,nextBracketPos);
+ }
+ p = nextBracketPos + 1;
+
+ // Push this operator
+ operators.push(operator);
+ } while(filterString.charAt(p) !== "]");
+ // Skip the ending square bracket
+ if(filterString.charAt(p++) !== "]") {
+ throw "Missing ] in filter expression";
+ }
+ // Return the parsing position
+ return p;
+}
+
+/*
+Parse a filter string
+*/
+exports.parseFilter = function(filterString) {
+ filterString = filterString || "";
+ var results = [], // Array of arrays of operator nodes {operator:,operand:}
+ p = 0, // Current position in the filter string
+ match;
+ var whitespaceRegExp = /(\s+)/mg,
+ operandRegExp = /((?:\+|\-|~|=)?)(?:(\[)|(?:"([^"]*)")|(?:'([^']*)')|([^\s\[\]]+))/mg;
+ while(p < filterString.length) {
+ // Skip any whitespace
+ whitespaceRegExp.lastIndex = p;
+ match = whitespaceRegExp.exec(filterString);
+ if(match && match.index === p) {
+ p = p + match[0].length;
+ }
+ // Match the start of the operation
+ if(p < filterString.length) {
+ operandRegExp.lastIndex = p;
+ match = operandRegExp.exec(filterString);
+ if(!match || match.index !== p) {
+ throw $tw.language.getString("Error/FilterSyntax");
+ }
+ var operation = {
+ prefix: "",
+ operators: []
+ };
+ if(match[1]) {
+ operation.prefix = match[1];
+ p++;
+ }
+ if(match[2]) { // Opening square bracket
+ p = parseFilterOperation(operation.operators,filterString,p);
+ } else {
+ p = match.index + match[0].length;
+ }
+ if(match[3] || match[4] || match[5]) { // Double quoted string, single quoted string or unquoted title
+ operation.operators.push(
+ {operator: "title", operand: match[3] || match[4] || match[5]}
+ );
+ }
+ results.push(operation);
+ }
+ }
+ return results;
+};
+
+exports.getFilterOperators = function() {
+ if(!this.filterOperators) {
+ $tw.Wiki.prototype.filterOperators = {};
+ $tw.modules.applyMethods("filteroperator",this.filterOperators);
+ }
+ return this.filterOperators;
+};
+
+exports.filterTiddlers = function(filterString,widget,source) {
+ var fn = this.compileFilter(filterString);
+ return fn.call(this,source,widget);
+};
+
+/*
+Compile a filter into a function with the signature fn(source,widget) where:
+source: an iterator function for the source tiddlers, called source(iterator), where iterator is called as iterator(tiddler,title)
+widget: an optional widget node for retrieving the current tiddler etc.
+*/
+exports.compileFilter = function(filterString) {
+ var filterParseTree;
+ try {
+ filterParseTree = this.parseFilter(filterString);
+ } catch(e) {
+ return function(source,widget) {
+ return [$tw.language.getString("Error/Filter") + ": " + e];
+ };
+ }
+ // Get the hashmap of filter operator functions
+ var filterOperators = this.getFilterOperators();
+ // Assemble array of functions, one for each operation
+ var operationFunctions = [];
+ // Step through the operations
+ var self = this;
+ $tw.utils.each(filterParseTree,function(operation) {
+ // Create a function for the chain of operators in the operation
+ var operationSubFunction = function(source,widget) {
+ var accumulator = source,
+ results = [],
+ currTiddlerTitle = widget && widget.getVariable("currentTiddler");
+ $tw.utils.each(operation.operators,function(operator) {
+ var operand = operator.operand,
+ operatorFunction;
+ if(!operator.operator) {
+ operatorFunction = filterOperators.title;
+ } else if(!filterOperators[operator.operator]) {
+ operatorFunction = filterOperators.field;
+ } else {
+ operatorFunction = filterOperators[operator.operator];
+ }
+ if(operator.indirect) {
+ operand = self.getTextReference(operator.operand,"",currTiddlerTitle);
+ }
+ if(operator.variable) {
+ operand = widget.getVariable(operator.operand,{defaultValue: ""});
+ }
+ // Invoke the appropriate filteroperator module
+ results = operatorFunction(accumulator,{
+ operator: operator.operator,
+ operand: operand,
+ prefix: operator.prefix,
+ suffix: operator.suffix,
+ suffixes: operator.suffixes,
+ regexp: operator.regexp
+ },{
+ wiki: self,
+ widget: widget
+ });
+ if($tw.utils.isArray(results)) {
+ accumulator = self.makeTiddlerIterator(results);
+ } else {
+ accumulator = results;
+ }
+ });
+ if($tw.utils.isArray(results)) {
+ return results;
+ } else {
+ var resultArray = [];
+ results(function(tiddler,title) {
+ resultArray.push(title);
+ });
+ return resultArray;
+ }
+ };
+ // Wrap the operator functions in a wrapper function that depends on the prefix
+ operationFunctions.push((function() {
+ switch(operation.prefix || "") {
+ case "": // No prefix means that the operation is unioned into the result
+ return function(results,source,widget) {
+ $tw.utils.pushTop(results,operationSubFunction(source,widget));
+ };
+ case "=": // The results of the operation are pushed into the result without deduplication
+ return function(results,source,widget) {
+ Array.prototype.push.apply(results,operationSubFunction(source,widget));
+ };
+ case "-": // The results of this operation are removed from the main result
+ return function(results,source,widget) {
+ $tw.utils.removeArrayEntries(results,operationSubFunction(source,widget));
+ };
+ case "+": // This operation is applied to the main results so far
+ return function(results,source,widget) {
+ // This replaces all the elements of the array, but keeps the actual array so that references to it are preserved
+ source = self.makeTiddlerIterator(results);
+ results.splice(0,results.length);
+ $tw.utils.pushTop(results,operationSubFunction(source,widget));
+ };
+ case "~": // This operation is unioned into the result only if the main result so far is empty
+ return function(results,source,widget) {
+ if(results.length === 0) {
+ // Main result so far is empty
+ $tw.utils.pushTop(results,operationSubFunction(source,widget));
+ }
+ };
+ }
+ })());
+ });
+ // Return a function that applies the operations to a source iterator of tiddler titles
+ return $tw.perf.measure("filter: " + filterString,function filterFunction(source,widget) {
+ if(!source) {
+ source = self.each;
+ } else if(typeof source === "object") { // Array or hashmap
+ source = self.makeTiddlerIterator(source);
+ }
+ var results = [];
+ $tw.utils.each(operationFunctions,function(operationFunction) {
+ operationFunction(results,source,widget);
+ });
+ return results;
+ });
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/addprefix.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for adding a prefix to each title in the list. This is
+especially useful in contexts where only a filter expression is allowed
+and macro substitution isn't available.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.addprefix = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push(operator.operand + title);
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/addsuffix.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for adding a suffix to each title in the list. This is
+especially useful in contexts where only a filter expression is allowed
+and macro substitution isn't available.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.addsuffix = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push(title + operator.operand);
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/after.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator returning the tiddler from the current list that is after the tiddler named in the operand.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.after = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push(title);
+ });
+ var index = results.indexOf(operator.operand);
+ if(index === -1 || index > (results.length - 2)) {
+ return [];
+ } else {
+ return [results[index + 1]];
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/all.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for selecting tiddlers
+
+[all[shadows+tiddlers]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var allFilterOperators;
+
+function getAllFilterOperators() {
+ if(!allFilterOperators) {
+ allFilterOperators = {};
+ $tw.modules.applyMethods("allfilteroperator",allFilterOperators);
+ }
+ return allFilterOperators;
+}
+
+/*
+Export our filter function
+*/
+exports.all = function(source,operator,options) {
+ // Get our suboperators
+ var allFilterOperators = getAllFilterOperators();
+ // Cycle through the suboperators accumulating their results
+ var results = [],
+ subops = operator.operand.split("+");
+ // Check for common optimisations
+ if(subops.length === 1 && subops[0] === "") {
+ return source;
+ } else if(subops.length === 1 && subops[0] === "tiddlers") {
+ return options.wiki.each;
+ } else if(subops.length === 1 && subops[0] === "shadows") {
+ return options.wiki.eachShadow;
+ } else if(subops.length === 2 && subops[0] === "tiddlers" && subops[1] === "shadows") {
+ return options.wiki.eachTiddlerPlusShadows;
+ } else if(subops.length === 2 && subops[0] === "shadows" && subops[1] === "tiddlers") {
+ return options.wiki.eachShadowPlusTiddlers;
+ }
+ // Do it the hard way
+ for(var t=0; t<subops.length; t++) {
+ var subop = allFilterOperators[subops[t]];
+ if(subop) {
+ $tw.utils.pushTop(results,subop(source,operator.prefix,options));
+ }
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/all/current.js
+type: application/javascript
+module-type: allfilteroperator
+
+Filter function for [all[current]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.current = function(source,prefix,options) {
+ var currTiddlerTitle = options.widget && options.widget.getVariable("currentTiddler");
+ if(currTiddlerTitle) {
+ return [currTiddlerTitle];
+ } else {
+ return [];
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/all/missing.js
+type: application/javascript
+module-type: allfilteroperator
+
+Filter function for [all[missing]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.missing = function(source,prefix,options) {
+ return options.wiki.getMissingTitles();
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/all/orphans.js
+type: application/javascript
+module-type: allfilteroperator
+
+Filter function for [all[orphans]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.orphans = function(source,prefix,options) {
+ return options.wiki.getOrphanTitles();
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/all/shadows.js
+type: application/javascript
+module-type: allfilteroperator
+
+Filter function for [all[shadows]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.shadows = function(source,prefix,options) {
+ return options.wiki.allShadowTitles();
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/all/tags.js
+type: application/javascript
+module-type: allfilteroperator
+
+Filter function for [all[tags]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.tags = function(source,prefix,options) {
+ return Object.keys(options.wiki.getTagMap());
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/all/tiddlers.js
+type: application/javascript
+module-type: allfilteroperator
+
+Filter function for [all[tiddlers]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.tiddlers = function(source,prefix,options) {
+ return options.wiki.allTitles();
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/backlinks.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for returning all the backlinks from a tiddler
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.backlinks = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ $tw.utils.pushTop(results,options.wiki.getTiddlerBacklinks(title));
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/before.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator returning the tiddler from the current list that is before the tiddler named in the operand.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.before = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push(title);
+ });
+ var index = results.indexOf(operator.operand);
+ if(index <= 0) {
+ return [];
+ } else {
+ return [results[index - 1]];
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/commands.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for returning the names of the commands available in this wiki
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.commands = function(source,operator,options) {
+ var results = [];
+ $tw.utils.each($tw.commands,function(commandInfo,name) {
+ results.push(name);
+ });
+ results.sort();
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/compare.js
+type: application/javascript
+module-type: filteroperator
+
+General purpose comparison operator
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.compare = function(source,operator,options) {
+ var suffixes = operator.suffixes || [],
+ type = (suffixes[0] || [])[0],
+ mode = (suffixes[1] || [])[0],
+ typeFn = types[type] || types.number,
+ modeFn = modes[mode] || modes.eq,
+ invert = operator.prefix === "!",
+ results = [];
+ source(function(tiddler,title) {
+ if(modeFn(typeFn(title,operator.operand)) !== invert) {
+ results.push(title);
+ }
+ });
+ return results;
+};
+
+var types = {
+ "number": function(a,b) {
+ return compare($tw.utils.parseNumber(a),$tw.utils.parseNumber(b));
+ },
+ "integer": function(a,b) {
+ return compare($tw.utils.parseInt(a),$tw.utils.parseInt(b));
+ },
+ "string": function(a,b) {
+ return compare("" + a,"" +b);
+ },
+ "date": function(a,b) {
+ var dateA = $tw.utils.parseDate(a),
+ dateB = $tw.utils.parseDate(b);
+ if(!isFinite(dateA)) {
+ dateA = new Date(0);
+ }
+ if(!isFinite(dateB)) {
+ dateB = new Date(0);
+ }
+ return compare(dateA,dateB);
+ },
+ "version": function(a,b) {
+ return $tw.utils.compareVersions(a,b);
+ }
+};
+
+function compare(a,b) {
+ if(a > b) {
+ return +1;
+ } else if(a < b) {
+ return -1;
+ } else {
+ return 0;
+ }
+};
+
+var modes = {
+ "eq": function(value) {return value === 0;},
+ "ne": function(value) {return value !== 0;},
+ "gteq": function(value) {return value >= 0;},
+ "gt": function(value) {return value > 0;},
+ "lteq": function(value) {return value <= 0;},
+ "lt": function(value) {return value < 0;}
+}
+
+})();
+
+/*\
+title: $:/core/modules/filters/contains.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for finding values in array fields
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.contains = function(source,operator,options) {
+ var results = [],
+ fieldname = (operator.suffix || "list").toLowerCase();
+ if(operator.prefix === "!") {
+ source(function(tiddler,title) {
+ if(tiddler) {
+ var list = tiddler.getFieldList(fieldname);
+ if(list.indexOf(operator.operand) === -1) {
+ results.push(title);
+ }
+ } else {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(tiddler) {
+ var list = tiddler.getFieldList(fieldname);
+ if(list.indexOf(operator.operand) !== -1) {
+ results.push(title);
+ }
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/count.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator returning the number of entries in the current list.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.count = function(source,operator,options) {
+ var count = 0;
+ source(function(tiddler,title) {
+ count++;
+ });
+ return [count + ""];
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/days.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator that selects tiddlers with a specified date field within a specified date interval.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.days = function(source,operator,options) {
+ var results = [],
+ fieldName = operator.suffix || "modified",
+ dayInterval = (parseInt(operator.operand,10)||0),
+ dayIntervalSign = $tw.utils.sign(dayInterval),
+ targetTimeStamp = (new Date()).setHours(0,0,0,0) + 1000*60*60*24*dayInterval,
+ isWithinDays = function(dateField) {
+ var sign = $tw.utils.sign(targetTimeStamp - (new Date(dateField)).setHours(0,0,0,0));
+ return sign === 0 || sign === dayIntervalSign;
+ };
+
+ if(operator.prefix === "!") {
+ targetTimeStamp = targetTimeStamp - 1000*60*60*24*dayIntervalSign;
+ source(function(tiddler,title) {
+ if(tiddler && tiddler.fields[fieldName]) {
+ if(!isWithinDays($tw.utils.parseDate(tiddler.fields[fieldName]))) {
+ results.push(title);
+ }
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(tiddler && tiddler.fields[fieldName]) {
+ if(isWithinDays($tw.utils.parseDate(tiddler.fields[fieldName]))) {
+ results.push(title);
+ }
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/decodeuricomponent.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for applying decodeURIComponent() to each item.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter functions
+*/
+
+exports.decodeuricomponent = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ var value = title;
+ try {
+ value = decodeURIComponent(title);
+ } catch(e) {
+ }
+ results.push(value);
+ });
+ return results;
+};
+
+exports.encodeuricomponent = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push(encodeURIComponent(title));
+ });
+ return results;
+};
+
+exports.decodeuri = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ var value = title;
+ try {
+ value = decodeURI(title);
+ } catch(e) {
+ }
+ results.push(value);
+ });
+ return results;
+};
+
+exports.encodeuri = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push(encodeURI(title));
+ });
+ return results;
+};
+
+exports.decodehtml = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push($tw.utils.htmlDecode(title));
+ });
+ return results;
+};
+
+exports.encodehtml = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push($tw.utils.htmlEncode(title));
+ });
+ return results;
+};
+
+exports.stringify = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push($tw.utils.stringify(title));
+ });
+ return results;
+};
+
+exports.jsonstringify = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push($tw.utils.jsonStringify(title));
+ });
+ return results;
+};
+
+exports.escaperegexp = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push($tw.utils.escapeRegExp(title));
+ });
+ return results;
+};
+
+exports.escapecss = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ // escape any character with a special meaning in CSS using CSS.escape()
+ results.push(CSS.escape(title));
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/each.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator that selects one tiddler for each unique value of the specified field.
+With suffix "list", selects all tiddlers that are values in a specified list field.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.each = function(source,operator,options) {
+ var results =[] ,
+ value,values = {},
+ field = operator.operand || "title";
+ if(operator.suffix === "value" && field === "title") {
+ source(function(tiddler,title) {
+ if(!$tw.utils.hop(values,title)) {
+ values[title] = true;
+ results.push(title);
+ }
+ });
+ } else if(operator.suffix !== "list-item") {
+ if(field === "title") {
+ source(function(tiddler,title) {
+ if(tiddler && !$tw.utils.hop(values,title)) {
+ values[title] = true;
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(tiddler) {
+ value = tiddler.getFieldString(field);
+ if(!$tw.utils.hop(values,value)) {
+ values[value] = true;
+ results.push(title);
+ }
+ }
+ });
+ }
+ } else {
+ source(function(tiddler,title) {
+ if(tiddler) {
+ $tw.utils.each(
+ options.wiki.getTiddlerList(title,field),
+ function(value) {
+ if(!$tw.utils.hop(values,value)) {
+ values[value] = true;
+ results.push(value);
+ }
+ }
+ );
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/eachday.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator that selects one tiddler for each unique day covered by the specified date field
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.eachday = function(source,operator,options) {
+ var results = [],
+ values = [],
+ fieldName = operator.operand || "modified";
+ // Function to convert a date/time to a date integer
+ var toDate = function(value) {
+ value = (new Date(value)).setHours(0,0,0,0);
+ return value+0;
+ };
+ source(function(tiddler,title) {
+ if(tiddler && tiddler.fields[fieldName]) {
+ var value = toDate($tw.utils.parseDate(tiddler.fields[fieldName]));
+ if(values.indexOf(value) === -1) {
+ values.push(value);
+ results.push(title);
+ }
+ }
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/editiondescription.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for returning the descriptions of the specified edition names
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.editiondescription = function(source,operator,options) {
+ var results = [],
+ editionInfo = $tw.utils.getEditionInfo();
+ if(editionInfo) {
+ source(function(tiddler,title) {
+ if($tw.utils.hop(editionInfo,title)) {
+ results.push(editionInfo[title].description || "");
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/editions.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for returning the names of the available editions in this wiki
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.editions = function(source,operator,options) {
+ var results = [],
+ editionInfo = $tw.utils.getEditionInfo();
+ if(editionInfo) {
+ $tw.utils.each(editionInfo,function(info,name) {
+ results.push(name);
+ });
+ }
+ results.sort();
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/else.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for replacing an empty input list with a constant, passing a non-empty input list straight through
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.else = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push(title);
+ });
+ if(results.length === 0) {
+ return [operator.operand];
+ } else {
+ return results;
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/enlist.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator returning its operand parsed as a list
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.enlist = function(source,operator,options) {
+ var allowDuplicates = false;
+ switch(operator.suffix) {
+ case "raw":
+ allowDuplicates = true;
+ break;
+ case "dedupe":
+ allowDuplicates = false;
+ break;
+ }
+ var list = $tw.utils.parseStringArray(operator.operand,allowDuplicates);
+ if(operator.prefix === "!") {
+ var results = [];
+ source(function(tiddler,title) {
+ if(list.indexOf(title) === -1) {
+ results.push(title);
+ }
+ });
+ return results;
+ } else {
+ return list;
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/field.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for comparing fields for equality
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.field = function(source,operator,options) {
+ var results = [],indexedResults,
+ fieldname = (operator.suffix || operator.operator || "title").toLowerCase();
+ if(operator.prefix === "!") {
+ if(operator.regexp) {
+ source(function(tiddler,title) {
+ if(tiddler) {
+ var text = tiddler.getFieldString(fieldname);
+ if(text !== null && !operator.regexp.exec(text)) {
+ results.push(title);
+ }
+ } else {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(tiddler) {
+ var text = tiddler.getFieldString(fieldname);
+ if(text !== null && text !== operator.operand) {
+ results.push(title);
+ }
+ } else {
+ results.push(title);
+ }
+ });
+ }
+ } else {
+ if(operator.regexp) {
+ source(function(tiddler,title) {
+ if(tiddler) {
+ var text = tiddler.getFieldString(fieldname);
+ if(text !== null && !!operator.regexp.exec(text)) {
+ results.push(title);
+ }
+ }
+ });
+ } else {
+ if(source.byField && operator.operand) {
+ indexedResults = source.byField(fieldname,operator.operand);
+ if(indexedResults) {
+ return indexedResults
+ }
+ }
+ source(function(tiddler,title) {
+ if(tiddler) {
+ var text = tiddler.getFieldString(fieldname);
+ if(text !== null && text === operator.operand) {
+ results.push(title);
+ }
+ }
+ });
+ }
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/fields.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for returning the names of the fields on the selected tiddlers
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.fields = function(source,operator,options) {
+ var results = [],
+ fieldName,
+ suffixes = (operator.suffixes || [])[0] || [],
+ operand = $tw.utils.parseStringArray(operator.operand);
+
+ source(function(tiddler,title) {
+ if(tiddler) {
+ if(suffixes.indexOf("include") !== -1) {
+ for(fieldName in tiddler.fields) {
+ (operand.indexOf(fieldName) !== -1) ? $tw.utils.pushTop(results,fieldName) : "";
+ }
+ } else if (suffixes.indexOf("exclude") !== -1) {
+ for(fieldName in tiddler.fields) {
+ (operand.indexOf(fieldName) !== -1) ? "" : $tw.utils.pushTop(results,fieldName);
+ }
+ } // else if
+ else {
+ for(fieldName in tiddler.fields) {
+ $tw.utils.pushTop(results,fieldName);
+ }
+ } // else
+ } // if (tiddler)
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/get.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for replacing tiddler titles by the value of the field specified in the operand.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.get = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ if(tiddler) {
+ var value = tiddler.getFieldString(operator.operand);
+ if(value) {
+ results.push(value);
+ }
+ }
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/getindex.js
+type: application/javascript
+module-type: filteroperator
+
+returns the value at a given index of datatiddlers
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.getindex = function(source,operator,options) {
+ var data,title,results = [];
+ if(operator.operand){
+ source(function(tiddler,title) {
+ title = tiddler ? tiddler.fields.title : title;
+ data = options.wiki.extractTiddlerDataItem(tiddler,operator.operand);
+ if(data) {
+ results.push(data);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/getvariable.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for replacing input values by the value of the variable with the same name, or blank if the variable is missing
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.getvariable = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push(options.widget.getVariable(title) || "");
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/has.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for checking if a tiddler has the specified field or index
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.has = function(source,operator,options) {
+ var results = [],
+ invert = operator.prefix === "!";
+
+ if(operator.suffix === "field") {
+ if(invert) {
+ source(function(tiddler,title) {
+ if(!tiddler || (tiddler && (!$tw.utils.hop(tiddler.fields,operator.operand)))) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(tiddler && $tw.utils.hop(tiddler.fields,operator.operand)) {
+ results.push(title);
+ }
+ });
+ }
+ }
+ else if(operator.suffix === "index") {
+ if(invert) {
+ source(function(tiddler,title) {
+ if(!tiddler || (tiddler && (!$tw.utils.hop($tw.wiki.getTiddlerDataCached(tiddler,Object.create(null)),operator.operand)))) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(tiddler && $tw.utils.hop($tw.wiki.getTiddlerDataCached(tiddler,Object.create(null)),operator.operand)) {
+ results.push(title);
+ }
+ });
+ }
+ }
+ else {
+ if(invert) {
+ source(function(tiddler,title) {
+ if(!tiddler || !$tw.utils.hop(tiddler.fields,operator.operand) || (tiddler.fields[operator.operand] === "")) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(tiddler && $tw.utils.hop(tiddler.fields,operator.operand) && !(tiddler.fields[operator.operand] === "" || tiddler.fields[operator.operand].length === 0)) {
+ results.push(title);
+ }
+ });
+ }
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/haschanged.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator returns tiddlers from the list that have a non-zero changecount.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.haschanged = function(source,operator,options) {
+ var results = [];
+ if(operator.prefix === "!") {
+ source(function(tiddler,title) {
+ if(options.wiki.getChangeCount(title) === 0) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(options.wiki.getChangeCount(title) > 0) {
+ results.push(title);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/indexes.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for returning the indexes of a data tiddler
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.indexes = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ var data = options.wiki.getTiddlerDataCached(title);
+ if(data) {
+ $tw.utils.pushTop(results,Object.keys(data));
+ }
+ });
+ results.sort();
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/insertbefore.js
+type: application/javascript
+module-type: filteroperator
+
+Insert an item before another item in a list
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Order a list
+*/
+exports.insertbefore = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push(title);
+ });
+ var target = options.widget && options.widget.getVariable(operator.suffix || "currentTiddler");
+ if(target !== operator.operand) {
+ // Remove the entry from the list if it is present
+ var pos = results.indexOf(operator.operand);
+ if(pos !== -1) {
+ results.splice(pos,1);
+ }
+ // Insert the entry before the target marker
+ pos = results.indexOf(target);
+ if(pos !== -1) {
+ results.splice(pos,0,operator.operand);
+ } else {
+ results.push(operator.operand);
+ }
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/is.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for checking tiddler properties
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var isFilterOperators;
+
+function getIsFilterOperators() {
+ if(!isFilterOperators) {
+ isFilterOperators = {};
+ $tw.modules.applyMethods("isfilteroperator",isFilterOperators);
+ }
+ return isFilterOperators;
+}
+
+/*
+Export our filter function
+*/
+exports.is = function(source,operator,options) {
+ // Dispatch to the correct isfilteroperator
+ var isFilterOperators = getIsFilterOperators();
+ if(operator.operand) {
+ var isFilterOperator = isFilterOperators[operator.operand];
+ if(isFilterOperator) {
+ return isFilterOperator(source,operator.prefix,options);
+ } else {
+ return [$tw.language.getString("Error/IsFilterOperator")];
+ }
+ } else {
+ // Return all tiddlers if the operand is missing
+ var results = [];
+ source(function(tiddler,title) {
+ results.push(title);
+ });
+ return results;
+ }
+};
+
+})();
+/*\
+title: $:/core/modules/filters/is/binary.js
+type: application/javascript
+module-type: isfilteroperator
+
+Filter function for [is[binary]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.binary = function(source,prefix,options) {
+ var results = [];
+ if(prefix === "!") {
+ source(function(tiddler,title) {
+ if(!options.wiki.isBinaryTiddler(title)) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(options.wiki.isBinaryTiddler(title)) {
+ results.push(title);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/is/blank.js
+type: application/javascript
+module-type: isfilteroperator
+
+Filter function for [is[blank]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.blank = function(source,prefix,options) {
+ var results = [];
+ if(prefix === "!") {
+ source(function(tiddler,title) {
+ if(title) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(!title) {
+ results.push(title);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/is/current.js
+type: application/javascript
+module-type: isfilteroperator
+
+Filter function for [is[current]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.current = function(source,prefix,options) {
+ var results = [],
+ currTiddlerTitle = options.widget && options.widget.getVariable("currentTiddler");
+ if(prefix === "!") {
+ source(function(tiddler,title) {
+ if(title !== currTiddlerTitle) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(title === currTiddlerTitle) {
+ results.push(title);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/is/image.js
+type: application/javascript
+module-type: isfilteroperator
+
+Filter function for [is[image]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.image = function(source,prefix,options) {
+ var results = [];
+ if(prefix === "!") {
+ source(function(tiddler,title) {
+ if(!options.wiki.isImageTiddler(title)) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(options.wiki.isImageTiddler(title)) {
+ results.push(title);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/is/missing.js
+type: application/javascript
+module-type: isfilteroperator
+
+Filter function for [is[missing]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.missing = function(source,prefix,options) {
+ var results = [];
+ if(prefix === "!") {
+ source(function(tiddler,title) {
+ if(options.wiki.tiddlerExists(title)) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(!options.wiki.tiddlerExists(title)) {
+ results.push(title);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/is/orphan.js
+type: application/javascript
+module-type: isfilteroperator
+
+Filter function for [is[orphan]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.orphan = function(source,prefix,options) {
+ var results = [],
+ orphanTitles = options.wiki.getOrphanTitles();
+ if(prefix === "!") {
+ source(function(tiddler,title) {
+ if(orphanTitles.indexOf(title) === -1) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(orphanTitles.indexOf(title) !== -1) {
+ results.push(title);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/is/shadow.js
+type: application/javascript
+module-type: isfilteroperator
+
+Filter function for [is[shadow]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.shadow = function(source,prefix,options) {
+ var results = [];
+ if(prefix === "!") {
+ source(function(tiddler,title) {
+ if(!options.wiki.isShadowTiddler(title)) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(options.wiki.isShadowTiddler(title)) {
+ results.push(title);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/is/system.js
+type: application/javascript
+module-type: isfilteroperator
+
+Filter function for [is[system]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.system = function(source,prefix,options) {
+ var results = [];
+ if(prefix === "!") {
+ source(function(tiddler,title) {
+ if(!options.wiki.isSystemTiddler(title)) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(options.wiki.isSystemTiddler(title)) {
+ results.push(title);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/is/tag.js
+type: application/javascript
+module-type: isfilteroperator
+
+Filter function for [is[tag]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.tag = function(source,prefix,options) {
+ var results = [],
+ tagMap = options.wiki.getTagMap();
+ if(prefix === "!") {
+ source(function(tiddler,title) {
+ if(!$tw.utils.hop(tagMap,title)) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if($tw.utils.hop(tagMap,title)) {
+ results.push(title);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/is/tiddler.js
+type: application/javascript
+module-type: isfilteroperator
+
+Filter function for [is[tiddler]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.tiddler = function(source,prefix,options) {
+ var results = [];
+ if(prefix === "!") {
+ source(function(tiddler,title) {
+ if(!options.wiki.tiddlerExists(title)) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(options.wiki.tiddlerExists(title)) {
+ results.push(title);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/is/variable.js
+type: application/javascript
+module-type: isfilteroperator
+
+Filter function for [is[variable]]
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.variable = function(source,prefix,options) {
+ var results = [];
+ if(prefix === "!") {
+ source(function(tiddler,title) {
+ if(!(title in options.widget.variables)) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(title in options.widget.variables) {
+ results.push(title);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/limit.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for chopping the results to a specified maximum number of entries
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.limit = function(source,operator,options) {
+ var results = [];
+ // Convert to an array
+ source(function(tiddler,title) {
+ results.push(title);
+ });
+ // Slice the array if necessary
+ var limit = Math.min(results.length,parseInt(operator.operand,10));
+ if(operator.prefix === "!") {
+ results = results.slice(-limit);
+ } else {
+ results = results.slice(0,limit);
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/links.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for returning all the links from a tiddler
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.links = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ $tw.utils.pushTop(results,options.wiki.getTiddlerLinks(title));
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/list.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator returning the tiddlers whose title is listed in the operand tiddler
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.list = function(source,operator,options) {
+ var results = [],
+ tr = $tw.utils.parseTextReference(operator.operand),
+ currTiddlerTitle = options.widget && options.widget.getVariable("currentTiddler"),
+ list = options.wiki.getTiddlerList(tr.title || currTiddlerTitle,tr.field,tr.index);
+ if(operator.prefix === "!") {
+ source(function(tiddler,title) {
+ if(list.indexOf(title) === -1) {
+ results.push(title);
+ }
+ });
+ } else {
+ results = list;
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/listed.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator returning all tiddlers that have the selected tiddlers in a list
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.listed = function(source,operator,options) {
+ var field = operator.operand || "list",
+ results = [];
+ source(function(tiddler,title) {
+ $tw.utils.pushTop(results,options.wiki.findListingsOfTiddler(title,field));
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/listops.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operators for manipulating the current selection list
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Order a list
+*/
+exports.order = function(source,operator,options) {
+ var results = [];
+ if(operator.operand.toLowerCase() === "reverse") {
+ source(function(tiddler,title) {
+ results.unshift(title);
+ });
+ } else {
+ source(function(tiddler,title) {
+ results.push(title);
+ });
+ }
+ return results;
+};
+
+/*
+Reverse list
+*/
+exports.reverse = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.unshift(title);
+ });
+ return results;
+};
+
+/*
+First entry/entries in list
+*/
+exports.first = function(source,operator,options) {
+ var count = $tw.utils.getInt(operator.operand,1),
+ results = [];
+ source(function(tiddler,title) {
+ results.push(title);
+ });
+ return results.slice(0,count);
+};
+
+/*
+Last entry/entries in list
+*/
+exports.last = function(source,operator,options) {
+ var count = $tw.utils.getInt(operator.operand,1),
+ results = [];
+ source(function(tiddler,title) {
+ results.push(title);
+ });
+ return results.slice(-count);
+};
+
+/*
+All but the first entry/entries of the list
+*/
+exports.rest = function(source,operator,options) {
+ var count = $tw.utils.getInt(operator.operand,1),
+ results = [];
+ source(function(tiddler,title) {
+ results.push(title);
+ });
+ return results.slice(count);
+};
+exports.butfirst = exports.rest;
+exports.bf = exports.rest;
+
+/*
+All but the last entry/entries of the list
+*/
+exports.butlast = function(source,operator,options) {
+ var count = $tw.utils.getInt(operator.operand,1),
+ results = [];
+ source(function(tiddler,title) {
+ results.push(title);
+ });
+ return results.slice(0,-count);
+};
+exports.bl = exports.butlast;
+
+/*
+The nth member of the list
+*/
+exports.nth = function(source,operator,options) {
+ var count = $tw.utils.getInt(operator.operand,1),
+ results = [];
+ source(function(tiddler,title) {
+ results.push(title);
+ });
+ return results.slice(count - 1,count);
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/lookup.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator that looks up values via a title prefix
+
+[lookup:<field>[<prefix>]]
+
+Prepends the prefix to the selected items and returns the specified field value
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.lookup = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push(options.wiki.getTiddlerText(operator.operand + title) || options.wiki.getTiddlerText(operator.operand + operator.suffix));
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/match.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for checking if a title matches a string
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.match = function(source,operator,options) {
+ var results = [],
+ suffixes = (operator.suffixes || [])[0] || [];
+ if(suffixes.indexOf("caseinsensitive") !== -1) {
+ if(operator.prefix === "!") {
+ source(function(tiddler,title) {
+ if(title.toLowerCase() !== (operator.operand || "").toLowerCase()) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(title.toLowerCase() === (operator.operand || "").toLowerCase()) {
+ results.push(title);
+ }
+ });
+ }
+ } else {
+ if(operator.prefix === "!") {
+ source(function(tiddler,title) {
+ if(title !== operator.operand) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(title === operator.operand) {
+ results.push(title);
+ }
+ });
+ }
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/math.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operators for math. Unary/binary operators work on each item in turn, and return a new item list.
+
+Sum/product/maxall/minall operate on the entire list, returning a single item.
+
+Note that strings are converted to numbers automatically. Trailing non-digits are ignored.
+
+* "" converts to 0
+* "12kk" converts to 12
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.negate = makeNumericBinaryOperator(
+ function(a) {return -a}
+);
+
+exports.abs = makeNumericBinaryOperator(
+ function(a) {return Math.abs(a)}
+);
+
+exports.ceil = makeNumericBinaryOperator(
+ function(a) {return Math.ceil(a)}
+);
+
+exports.floor = makeNumericBinaryOperator(
+ function(a) {return Math.floor(a)}
+);
+
+exports.round = makeNumericBinaryOperator(
+ function(a) {return Math.round(a)}
+);
+
+exports.trunc = makeNumericBinaryOperator(
+ function(a) {return Math.trunc(a)}
+);
+
+exports.untrunc = makeNumericBinaryOperator(
+ function(a) {return Math.ceil(Math.abs(a)) * Math.sign(a)}
+);
+
+exports.sign = makeNumericBinaryOperator(
+ function(a) {return Math.sign(a)}
+);
+
+exports.add = makeNumericBinaryOperator(
+ function(a,b) {return a + b;}
+);
+
+exports.subtract = makeNumericBinaryOperator(
+ function(a,b) {return a - b;}
+);
+
+exports.multiply = makeNumericBinaryOperator(
+ function(a,b) {return a * b;}
+);
+
+exports.divide = makeNumericBinaryOperator(
+ function(a,b) {return a / b;}
+);
+
+exports.remainder = makeNumericBinaryOperator(
+ function(a,b) {return a % b;}
+);
+
+exports.max = makeNumericBinaryOperator(
+ function(a,b) {return Math.max(a,b);}
+);
+
+exports.min = makeNumericBinaryOperator(
+ function(a,b) {return Math.min(a,b);}
+);
+
+exports.fixed = makeNumericBinaryOperator(
+ function(a,b) {return Number.prototype.toFixed.call(a,Math.min(Math.max(b,0),100));}
+);
+
+exports.precision = makeNumericBinaryOperator(
+ function(a,b) {return Number.prototype.toPrecision.call(a,Math.min(Math.max(b,1),100));}
+);
+
+exports.exponential = makeNumericBinaryOperator(
+ function(a,b) {return Number.prototype.toExponential.call(a,Math.min(Math.max(b,0),100));}
+);
+
+exports.sum = makeNumericReducingOperator(
+ function(accumulator,value) {return accumulator + value},
+ 0 // Initial value
+);
+
+exports.product = makeNumericReducingOperator(
+ function(accumulator,value) {return accumulator * value},
+ 1 // Initial value
+);
+
+exports.maxall = makeNumericReducingOperator(
+ function(accumulator,value) {return Math.max(accumulator,value)},
+ -Infinity // Initial value
+);
+
+exports.minall = makeNumericReducingOperator(
+ function(accumulator,value) {return Math.min(accumulator,value)},
+ Infinity // Initial value
+);
+
+function makeNumericBinaryOperator(fnCalc) {
+ return function(source,operator,options) {
+ var result = [],
+ numOperand = $tw.utils.parseNumber(operator.operand);
+ source(function(tiddler,title) {
+ result.push($tw.utils.stringifyNumber(fnCalc($tw.utils.parseNumber(title),numOperand)));
+ });
+ return result;
+ };
+}
+
+function makeNumericReducingOperator(fnCalc,initialValue) {
+ initialValue = initialValue || 0;
+ return function(source,operator,options) {
+ var result = [];
+ source(function(tiddler,title) {
+ result.push(title);
+ });
+ return [$tw.utils.stringifyNumber(result.reduce(function(accumulator,currentValue) {
+ return fnCalc(accumulator,$tw.utils.parseNumber(currentValue));
+ },initialValue))];
+ };
+}
+
+})();
+
+/*\
+title: $:/core/modules/filters/minlength.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for filtering out titles that don't meet the minimum length in the operand
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.minlength = function(source,operator,options) {
+ var results = [],
+ minLength = parseInt(operator.operand || "",10) || 0;
+ source(function(tiddler,title) {
+ if(title.length >= minLength) {
+ results.push(title);
+ }
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/modules.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for returning the titles of the modules of a given type in this wiki
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.modules = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ $tw.utils.each($tw.modules.types[title],function(moduleInfo,moduleName) {
+ results.push(moduleName);
+ });
+ });
+ results.sort();
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/moduletypes.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for returning the names of the module types in this wiki
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.moduletypes = function(source,operator,options) {
+ var results = [];
+ $tw.utils.each($tw.modules.types,function(moduleInfo,type) {
+ results.push(type);
+ });
+ results.sort();
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/next.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator returning the tiddler whose title occurs next in the list supplied in the operand tiddler
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.next = function(source,operator,options) {
+ var results = [],
+ list = options.wiki.getTiddlerList(operator.operand);
+ source(function(tiddler,title) {
+ var match = list.indexOf(title);
+ // increment match and then test if result is in range
+ match++;
+ if(match > 0 && match < list.length) {
+ results.push(list[match]);
+ }
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/plugintiddlers.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for returning the titles of the shadow tiddlers within a plugin
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.plugintiddlers = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ var pluginInfo = options.wiki.getPluginInfo(title) || options.wiki.getTiddlerDataCached(title,{tiddlers:[]});
+ if(pluginInfo && pluginInfo.tiddlers) {
+ $tw.utils.each(pluginInfo.tiddlers,function(fields,title) {
+ results.push(title);
+ });
+ }
+ });
+ results.sort();
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/prefix.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for checking if a title starts with a prefix
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.prefix = function(source,operator,options) {
+ var results = [];
+ if(operator.prefix === "!") {
+ source(function(tiddler,title) {
+ if(title.substr(0,operator.operand.length) !== operator.operand) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(title.substr(0,operator.operand.length) === operator.operand) {
+ results.push(title);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/previous.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator returning the tiddler whose title occurs immediately prior in the list supplied in the operand tiddler
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.previous = function(source,operator,options) {
+ var results = [],
+ list = options.wiki.getTiddlerList(operator.operand);
+ source(function(tiddler,title) {
+ var match = list.indexOf(title);
+ // increment match and then test if result is in range
+ match--;
+ if(match >= 0) {
+ results.push(list[match]);
+ }
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/range.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for generating a numeric range.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.range = function(source,operator,options) {
+ var results = [];
+ // Split the operand into numbers delimited by these symbols
+ var parts = operator.operand.split(/[,:;]/g),
+ beg, end, inc, i, fixed = 0;
+ for (i=0; i<parts.length; i++) {
+ // Validate real number
+ if(!/^\s*[+-]?((\d+(\.\d*)?)|(\.\d+))\s*$/.test(parts[i])) {
+ return ["range: bad number \"" + parts[i] + "\""];
+ }
+ // Count digits; the most precise number determines decimal places in output.
+ var frac = /\.\d+/.exec(parts[i]);
+ if(frac) {
+ fixed = Math.max(fixed,frac[0].length-1);
+ }
+ parts[i] = parseFloat(parts[i]);
+ }
+ switch(parts.length) {
+ case 1:
+ end = parts[0];
+ if (end >= 1) {
+ beg = 1;
+ }
+ else if (end <= -1) {
+ beg = -1;
+ }
+ else {
+ return [];
+ }
+ inc = 1;
+ break;
+ case 2:
+ beg = parts[0];
+ end = parts[1];
+ inc = 1;
+ break;
+ case 3:
+ beg = parts[0];
+ end = parts[1];
+ inc = Math.abs(parts[2]);
+ break;
+ }
+ if(inc === 0) {
+ return ["range: increment 0 causes infinite loop"];
+ }
+ // May need to count backwards
+ var direction = ((end < beg) ? -1 : 1);
+ inc *= direction;
+ // Estimate number of resulting elements
+ if((end - beg) / inc > 10000) {
+ return ["range: too many steps (over 10K)"];
+ }
+ // Avoid rounding error on last step
+ end += direction * 0.5 * Math.pow(0.1,fixed);
+ var safety = 10010;
+ // Enumerate the range
+ if (end<beg) {
+ for(i=beg; i>end; i+=inc) {
+ results.push(i.toFixed(fixed));
+ if(--safety<0) {
+ break;
+ }
+ }
+ } else {
+ for(i=beg; i<end; i+=inc) {
+ results.push(i.toFixed(fixed));
+ if(--safety<0) {
+ break;
+ }
+ }
+ }
+ if(safety<0) {
+ return ["range: unexpectedly large output"];
+ }
+ // Reverse?
+ if(operator.prefix === "!") {
+ results.reverse();
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/regexp.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for regexp matching
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.regexp = function(source,operator,options) {
+ var results = [],
+ fieldname = (operator.suffix || "title").toLowerCase(),
+ regexpString, regexp, flags = "", match,
+ getFieldString = function(tiddler,title) {
+ if(tiddler) {
+ return tiddler.getFieldString(fieldname);
+ } else if(fieldname === "title") {
+ return title;
+ } else {
+ return null;
+ }
+ };
+ // Process flags and construct regexp
+ regexpString = operator.operand;
+ match = /^\(\?([gim]+)\)/.exec(regexpString);
+ if(match) {
+ flags = match[1];
+ regexpString = regexpString.substr(match[0].length);
+ } else {
+ match = /\(\?([gim]+)\)$/.exec(regexpString);
+ if(match) {
+ flags = match[1];
+ regexpString = regexpString.substr(0,regexpString.length - match[0].length);
+ }
+ }
+ try {
+ regexp = new RegExp(regexpString,flags);
+ } catch(e) {
+ return ["" + e];
+ }
+ // Process the incoming tiddlers
+ if(operator.prefix === "!") {
+ source(function(tiddler,title) {
+ var text = getFieldString(tiddler,title);
+ if(text !== null) {
+ if(!regexp.exec(text)) {
+ results.push(title);
+ }
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ var text = getFieldString(tiddler,title);
+ if(text !== null) {
+ if(!!regexp.exec(text)) {
+ results.push(title);
+ }
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/removeprefix.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for removing a prefix from each title in the list. Titles that do not start with the prefix are removed.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.removeprefix = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ if(title.substr(0,operator.operand.length) === operator.operand) {
+ results.push(title.substr(operator.operand.length));
+ }
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/removesuffix.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for removing a suffix from each title in the list. Titles that do not end with the suffix are removed.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.removesuffix = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ if(title && title.substr(-operator.operand.length) === operator.operand) {
+ results.push(title.substr(0,title.length - operator.operand.length));
+ }
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/sameday.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator that selects tiddlers with a modified date field on the same day as the provided value.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.sameday = function(source,operator,options) {
+ var results = [],
+ fieldName = operator.suffix || "modified",
+ targetDate = (new Date($tw.utils.parseDate(operator.operand))).setHours(0,0,0,0);
+ // Function to convert a date/time to a date integer
+ source(function(tiddler,title) {
+ if(tiddler) {
+ if(tiddler.getFieldDay(fieldName) === targetDate) {
+ results.push(title);
+ }
+ }
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/search.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for searching for the text in the operand tiddler
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.search = function(source,operator,options) {
+ var invert = operator.prefix === "!";
+ if(operator.suffixes) {
+ var hasFlag = function(flag) {
+ return (operator.suffixes[1] || []).indexOf(flag) !== -1;
+ },
+ excludeFields = false,
+ fieldList = operator.suffixes[0] || [],
+ firstField = fieldList[0] || "",
+ firstChar = firstField.charAt(0),
+ fields;
+ if(firstChar === "-") {
+ fields = [firstField.slice(1)].concat(fieldList.slice(1));
+ excludeFields = true;
+ } else if(fieldList[0] === "*"){
+ fields = [];
+ excludeFields = true;
+ } else {
+ fields = fieldList.slice(0);
+ }
+ return options.wiki.search(operator.operand,{
+ source: source,
+ invert: invert,
+ field: fields,
+ excludeField: excludeFields,
+ caseSensitive: hasFlag("casesensitive"),
+ literal: hasFlag("literal"),
+ whitespace: hasFlag("whitespace"),
+ anchored: hasFlag("anchored"),
+ regexp: hasFlag("regexp"),
+ words: hasFlag("words")
+ });
+ } else {
+ return options.wiki.search(operator.operand,{
+ source: source,
+ invert: invert
+ });
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/shadowsource.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for returning the source plugins for shadow tiddlers
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.shadowsource = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ var source = options.wiki.getShadowSource(title);
+ if(source) {
+ $tw.utils.pushTop(results,source);
+ }
+ });
+ results.sort();
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/sort.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for sorting
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.sort = function(source,operator,options) {
+ var results = prepare_results(source);
+ options.wiki.sortTiddlers(results,operator.operand || "title",operator.prefix === "!",false,false);
+ return results;
+};
+
+exports.nsort = function(source,operator,options) {
+ var results = prepare_results(source);
+ options.wiki.sortTiddlers(results,operator.operand || "title",operator.prefix === "!",false,true);
+ return results;
+};
+
+exports.sortan = function(source, operator, options) {
+ var results = prepare_results(source);
+ options.wiki.sortTiddlers(results, operator.operand || "title", operator.prefix === "!",false,false,true);
+ return results;
+};
+
+exports.sortcs = function(source,operator,options) {
+ var results = prepare_results(source);
+ options.wiki.sortTiddlers(results,operator.operand || "title",operator.prefix === "!",true,false);
+ return results;
+};
+
+exports.nsortcs = function(source,operator,options) {
+ var results = prepare_results(source);
+ options.wiki.sortTiddlers(results,operator.operand || "title",operator.prefix === "!",true,true);
+ return results;
+};
+
+var prepare_results = function (source) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push(title);
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/splitbefore.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator that splits each result on the first occurance of the specified separator and returns the unique values.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.splitbefore = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ var parts = title.split(operator.operand);
+ if(parts.length === 1) {
+ $tw.utils.pushTop(results,parts[0]);
+ } else {
+ $tw.utils.pushTop(results,parts[0] + operator.operand);
+ }
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/storyviews.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for returning the names of the story views in this wiki
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.storyviews = function(source,operator,options) {
+ var results = [],
+ storyviews = {};
+ $tw.modules.applyMethods("storyview",storyviews);
+ $tw.utils.each(storyviews,function(info,name) {
+ results.push(name);
+ });
+ results.sort();
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/strings.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operators for strings. Unary/binary operators work on each item in turn, and return a new item list.
+
+Sum/product/maxall/minall operate on the entire list, returning a single item.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.length = makeStringBinaryOperator(
+ function(a) {return ["" + ("" + a).length];}
+);
+
+exports.uppercase = makeStringBinaryOperator(
+ function(a) {return [("" + a).toUpperCase()];}
+);
+
+exports.lowercase = makeStringBinaryOperator(
+ function(a) {return [("" + a).toLowerCase()];}
+);
+
+exports.sentencecase = makeStringBinaryOperator(
+ function(a) {return [$tw.utils.toSentenceCase(a)];}
+);
+
+exports.titlecase = makeStringBinaryOperator(
+ function(a) {return [$tw.utils.toTitleCase(a)];}
+);
+
+exports.trim = makeStringBinaryOperator(
+ function(a) {return [$tw.utils.trim(a)];}
+);
+
+exports.split = makeStringBinaryOperator(
+ function(a,b) {return ("" + a).split(b);}
+);
+
+exports.join = makeStringReducingOperator(
+ function(accumulator,value,operand) {
+ if(accumulator === null) {
+ return value;
+ } else {
+ return accumulator + operand + value;
+ }
+ },null
+);
+
+function makeStringBinaryOperator(fnCalc) {
+ return function(source,operator,options) {
+ var result = [];
+ source(function(tiddler,title) {
+ Array.prototype.push.apply(result,fnCalc(title,operator.operand || ""));
+ });
+ return result;
+ };
+}
+
+function makeStringReducingOperator(fnCalc,initialValue) {
+ return function(source,operator,options) {
+ var result = [];
+ source(function(tiddler,title) {
+ result.push(title);
+ });
+ return [result.reduce(function(accumulator,currentValue) {
+ return fnCalc(accumulator,currentValue,operator.operand || "");
+ },initialValue) || ""];
+ };
+}
+
+exports.splitregexp = function(source,operator,options) {
+ var result = [],
+ suffix = operator.suffix || "",
+ flags = (suffix.indexOf("m") !== -1 ? "m" : "") + (suffix.indexOf("i") !== -1 ? "i" : ""),
+ regExp;
+ try {
+ regExp = new RegExp(operator.operand || "",flags);
+ } catch(ex) {
+ return ["RegExp error: " + ex];
+ }
+ source(function(tiddler,title) {
+ Array.prototype.push.apply(result,title.split(regExp));
+ });
+ return result;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/subfilter.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator returning its operand evaluated as a filter
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.subfilter = function(source,operator,options) {
+ var list = options.wiki.filterTiddlers(operator.operand,options.widget,source);
+ if(operator.prefix === "!") {
+ var results = [];
+ source(function(tiddler,title) {
+ if(list.indexOf(title) === -1) {
+ results.push(title);
+ }
+ });
+ return results;
+ } else {
+ return list;
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/subtiddlerfields.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for returning the names of the fields on the selected subtiddlers of the plugin named in the operand
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.subtiddlerfields = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ var subtiddler = options.wiki.getSubTiddler(operator.operand,title);
+ if(subtiddler) {
+ for(var fieldName in subtiddler.fields) {
+ $tw.utils.pushTop(results,fieldName);
+ }
+ }
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/suffix.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for checking if a title ends with a suffix
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.suffix = function(source,operator,options) {
+ var results = [];
+ if(operator.prefix === "!") {
+ source(function(tiddler,title) {
+ if(title.substr(-operator.operand.length) !== operator.operand) {
+ results.push(title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(title.substr(-operator.operand.length) === operator.operand) {
+ results.push(title);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/tag.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for checking for the presence of a tag
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.tag = function(source,operator,options) {
+ var results = [],indexedResults;
+ if((operator.suffix || "").toLowerCase() === "strict" && !operator.operand) {
+ // New semantics:
+ // Always return copy of input if operator.operand is missing
+ source(function(tiddler,title) {
+ results.push(title);
+ });
+ } else {
+ // Old semantics:
+ var tiddlers;
+ if(operator.prefix === "!") {
+ // Returns a copy of the input if operator.operand is missing
+ tiddlers = options.wiki.getTiddlersWithTag(operator.operand);
+ source(function(tiddler,title) {
+ if(tiddlers.indexOf(title) === -1) {
+ results.push(title);
+ }
+ });
+ } else {
+ // Returns empty results if operator.operand is missing
+ if(source.byTag) {
+ indexedResults = source.byTag(operator.operand);
+ if(indexedResults) {
+ return indexedResults;
+ }
+ } else {
+ tiddlers = options.wiki.getTiddlersWithTag(operator.operand);
+ source(function(tiddler,title) {
+ if(tiddlers.indexOf(title) !== -1) {
+ results.push(title);
+ }
+ });
+ results = options.wiki.sortByList(results,operator.operand);
+ }
+ }
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/tagging.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator returning all tiddlers that are tagged with the selected tiddlers
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.tagging = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ $tw.utils.pushTop(results,options.wiki.getTiddlersWithTag(title));
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/tags.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator returning all the tags of the selected tiddlers
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.tags = function(source,operator,options) {
+ var tags = {};
+ source(function(tiddler,title) {
+ var t, length;
+ if(tiddler && tiddler.fields.tags) {
+ for(t=0, length=tiddler.fields.tags.length; t<length; t++) {
+ tags[tiddler.fields.tags[t]] = true;
+ }
+ }
+ });
+ return Object.keys(tags);
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/then.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for replacing any titles with a constant
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.then = function(source,operator,options) {
+ var results = [];
+ source(function(tiddler,title) {
+ results.push(operator.operand);
+ });
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/title.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for comparing title fields for equality
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.title = function(source,operator,options) {
+ var results = [];
+ if(operator.prefix === "!") {
+ source(function(tiddler,title) {
+ if(tiddler && tiddler.fields.title !== operator.operand) {
+ results.push(title);
+ }
+ });
+ } else {
+ results.push(operator.operand);
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/untagged.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator returning all the selected tiddlers that are untagged
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.untagged = function(source,operator,options) {
+ var results = [];
+ if(operator.prefix === "!") {
+ source(function(tiddler,title) {
+ if(tiddler && $tw.utils.isArray(tiddler.fields.tags) && tiddler.fields.tags.length > 0) {
+ $tw.utils.pushTop(results,title);
+ }
+ });
+ } else {
+ source(function(tiddler,title) {
+ if(!tiddler || !tiddler.hasField("tags") || ($tw.utils.isArray(tiddler.fields.tags) && tiddler.fields.tags.length === 0)) {
+ $tw.utils.pushTop(results,title);
+ }
+ });
+ }
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/variables.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for returning the names of the active variables
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.variables = function(source,operator,options) {
+ var names = [];
+ for(var variable in options.widget.variables) {
+ names.push(variable);
+ }
+ return names.sort();
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/wikiparserrules.js
+type: application/javascript
+module-type: filteroperator
+
+Filter operator for returning the names of the wiki parser rules in this wiki
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Export our filter function
+*/
+exports.wikiparserrules = function(source,operator,options) {
+ var results = [],
+ operand = operator.operand;
+ $tw.utils.each($tw.modules.types.wikirule,function(mod) {
+ var exp = mod.exports;
+ if(!operand || exp.types[operand]) {
+ results.push(exp.name);
+ }
+ });
+ results.sort();
+ return results;
+};
+
+})();
+
+/*\
+title: $:/core/modules/filters/x-listops.js
+type: application/javascript
+module-type: filteroperator
+
+Extended filter operators to manipulate the current list.
+
+\*/
+(function () {
+
+ /*jslint node: true, browser: true */
+ /*global $tw: false */
+ "use strict";
+
+ /*
+ Fetch titles from the current list
+ */
+ var prepare_results = function (source) {
+ var results = [];
+ source(function (tiddler, title) {
+ results.push(title);
+ });
+ return results;
+ };
+
+ /*
+ Moves a number of items from the tail of the current list before the item named in the operand
+ */
+ exports.putbefore = function (source, operator) {
+ var results = prepare_results(source),
+ index = results.indexOf(operator.operand),
+ count = $tw.utils.getInt(operator.suffix,1);
+ return (index === -1) ?
+ results.slice(0, -1) :
+ results.slice(0, index).concat(results.slice(-count)).concat(results.slice(index, -count));
+ };
+
+ /*
+ Moves a number of items from the tail of the current list after the item named in the operand
+ */
+ exports.putafter = function (source, operator) {
+ var results = prepare_results(source),
+ index = results.indexOf(operator.operand),
+ count = $tw.utils.getInt(operator.suffix,1);
+ return (index === -1) ?
+ results.slice(0, -1) :
+ results.slice(0, index + 1).concat(results.slice(-count)).concat(results.slice(index + 1, -count));
+ };
+
+ /*
+ Replaces the item named in the operand with a number of items from the tail of the current list
+ */
+ exports.replace = function (source, operator) {
+ var results = prepare_results(source),
+ index = results.indexOf(operator.operand),
+ count = $tw.utils.getInt(operator.suffix,1);
+ return (index === -1) ?
+ results.slice(0, -count) :
+ results.slice(0, index).concat(results.slice(-count)).concat(results.slice(index + 1, -count));
+ };
+
+ /*
+ Moves a number of items from the tail of the current list to the head of the list
+ */
+ exports.putfirst = function (source, operator) {
+ var results = prepare_results(source),
+ count = $tw.utils.getInt(operator.suffix,1);
+ return results.slice(-count).concat(results.slice(0, -count));
+ };
+
+ /*
+ Moves a number of items from the head of the current list to the tail of the list
+ */
+ exports.putlast = function (source, operator) {
+ var results = prepare_results(source),
+ count = $tw.utils.getInt(operator.suffix,1);
+ return results.slice(count).concat(results.slice(0, count));
+ };
+
+ /*
+ Moves the item named in the operand a number of places forward or backward in the list
+ */
+ exports.move = function (source, operator) {
+ var results = prepare_results(source),
+ index = results.indexOf(operator.operand),
+ count = $tw.utils.getInt(operator.suffix,1),
+ marker = results.splice(index, 1),
+ offset = (index + count) > 0 ? index + count : 0;
+ return results.slice(0, offset).concat(marker).concat(results.slice(offset));
+ };
+
+ /*
+ Returns the items from the current list that are after the item named in the operand
+ */
+ exports.allafter = function (source, operator) {
+ var results = prepare_results(source),
+ index = results.indexOf(operator.operand);
+ return (index === -1) ? [] :
+ (operator.suffix) ? results.slice(index) :
+ results.slice(index + 1);
+ };
+
+ /*
+ Returns the items from the current list that are before the item named in the operand
+ */
+ exports.allbefore = function (source, operator) {
+ var results = prepare_results(source),
+ index = results.indexOf(operator.operand);
+ return (index === -1) ? [] :
+ (operator.suffix) ? results.slice(0, index + 1) :
+ results.slice(0, index);
+ };
+
+ /*
+ Appends the items listed in the operand array to the tail of the current list
+ */
+ exports.append = function (source, operator) {
+ var append = $tw.utils.parseStringArray(operator.operand, "true"),
+ results = prepare_results(source),
+ count = parseInt(operator.suffix) || append.length;
+ return (append.length === 0) ? results :
+ (operator.prefix) ? results.concat(append.slice(-count)) :
+ results.concat(append.slice(0, count));
+ };
+
+ /*
+ Prepends the items listed in the operand array to the head of the current list
+ */
+ exports.prepend = function (source, operator) {
+ var prepend = $tw.utils.parseStringArray(operator.operand, "true"),
+ results = prepare_results(source),
+ count = $tw.utils.getInt(operator.suffix,prepend.length);
+ return (prepend.length === 0) ? results :
+ (operator.prefix) ? prepend.slice(-count).concat(results) :
+ prepend.slice(0, count).concat(results);
+ };
+
+ /*
+ Returns all items from the current list except the items listed in the operand array
+ */
+ exports.remove = function (source, operator) {
+ var array = $tw.utils.parseStringArray(operator.operand, "true"),
+ results = prepare_results(source),
+ count = parseInt(operator.suffix) || array.length,
+ p,
+ len,
+ index;
+ len = array.length - 1;
+ for (p = 0; p < count; ++p) {
+ if (operator.prefix) {
+ index = results.indexOf(array[len - p]);
+ } else {
+ index = results.indexOf(array[p]);
+ }
+ if (index !== -1) {
+ results.splice(index, 1);
+ }
+ }
+ return results;
+ };
+
+ /*
+ Returns all items from the current list sorted in the order of the items in the operand array
+ */
+ exports.sortby = function (source, operator) {
+ var results = prepare_results(source);
+ if (!results || results.length < 2) {
+ return results;
+ }
+ var lookup = $tw.utils.parseStringArray(operator.operand, "true");
+ results.sort(function (a, b) {
+ return lookup.indexOf(a) - lookup.indexOf(b);
+ });
+ return results;
+ };
+
+ /*
+ Removes all duplicate items from the current list
+ */
+ exports.unique = function (source, operator) {
+ var results = prepare_results(source);
+ var set = results.reduce(function (a, b) {
+ if (a.indexOf(b) < 0) {
+ a.push(b);
+ }
+ return a;
+ }, []);
+ return set;
+ };
+})();
+
+/*\
+title: $:/core/modules/indexers/backlinks-indexer.js
+type: application/javascript
+module-type: indexer
+
+Indexes the tiddlers' backlinks
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global modules: false */
+"use strict";
+
+
+function BacklinksIndexer(wiki) {
+ this.wiki = wiki;
+}
+
+BacklinksIndexer.prototype.init = function() {
+ this.index = null;
+}
+
+BacklinksIndexer.prototype.rebuild = function() {
+ this.index = null;
+}
+
+BacklinksIndexer.prototype._getLinks = function(tiddler) {
+ var parser = this.wiki.parseText(tiddler.fields.type, tiddler.fields.text, {});
+ if(parser) {
+ return this.wiki.extractLinks(parser.tree);
+ }
+ return [];
+}
+
+BacklinksIndexer.prototype.update = function(updateDescriptor) {
+ if(!this.index) {
+ return;
+ }
+ var newLinks = [],
+ oldLinks = [],
+ self = this;
+ if(updateDescriptor.old.exists) {
+ oldLinks = this._getLinks(updateDescriptor.old.tiddler);
+ }
+ if(updateDescriptor.new.exists) {
+ newLinks = this._getLinks(updateDescriptor.new.tiddler);
+ }
+
+ $tw.utils.each(oldLinks,function(link) {
+ if(self.index[link]) {
+ delete self.index[link][updateDescriptor.old.tiddler.fields.title];
+ }
+ });
+ $tw.utils.each(newLinks,function(link) {
+ if(!self.index[link]) {
+ self.index[link] = Object.create(null);
+ }
+ self.index[link][updateDescriptor.new.tiddler.fields.title] = true;
+ });
+}
+
+BacklinksIndexer.prototype.lookup = function(title) {
+ if(!this.index) {
+ this.index = Object.create(null);
+ var self = this;
+ this.wiki.forEachTiddler(function(title,tiddler) {
+ var links = self._getLinks(tiddler);
+ $tw.utils.each(links, function(link) {
+ if(!self.index[link]) {
+ self.index[link] = Object.create(null);
+ }
+ self.index[link][title] = true;
+ });
+ });
+ }
+ if(this.index[title]) {
+ return Object.keys(this.index[title]);
+ } else {
+ return [];
+ }
+}
+
+exports.BacklinksIndexer = BacklinksIndexer;
+
+})();
+
+/*\
+title: $:/core/modules/indexers/field-indexer.js
+type: application/javascript
+module-type: indexer
+
+Indexes the tiddlers with each field value
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global modules: false */
+"use strict";
+
+var DEFAULT_MAXIMUM_INDEXED_VALUE_LENGTH = 128;
+
+function FieldIndexer(wiki) {
+ this.wiki = wiki;
+}
+
+FieldIndexer.prototype.init = function() {
+ this.index = null;
+ this.maxIndexedValueLength = DEFAULT_MAXIMUM_INDEXED_VALUE_LENGTH;
+ this.addIndexMethods();
+}
+
+// Provided for testing
+FieldIndexer.prototype.setMaxIndexedValueLength = function(length) {
+ this.index = null;
+ this.maxIndexedValueLength = length;
+};
+
+FieldIndexer.prototype.addIndexMethods = function() {
+ var self = this;
+ this.wiki.each.byField = function(name,value) {
+ var titles = self.wiki.allTitles(),
+ lookup = self.lookup(name,value);
+ return lookup && lookup.filter(function(title) {
+ return titles.indexOf(title) !== -1;
+ });
+ };
+ this.wiki.eachShadow.byField = function(name,value) {
+ var titles = self.wiki.allShadowTitles(),
+ lookup = self.lookup(name,value);
+ return lookup && lookup.filter(function(title) {
+ return titles.indexOf(title) !== -1;
+ });
+ };
+ this.wiki.eachTiddlerPlusShadows.byField = function(name,value) {
+ var lookup = self.lookup(name,value);
+ return lookup ? lookup.slice(0) : null;
+ };
+ this.wiki.eachShadowPlusTiddlers.byField = function(name,value) {
+ var lookup = self.lookup(name,value);
+ return lookup ? lookup.slice(0) : null;
+ };
+};
+
+/*
+Tear down and then rebuild the index as if all tiddlers have changed
+*/
+FieldIndexer.prototype.rebuild = function() {
+ // Invalidate the index so that it will be rebuilt when it is next used
+ this.index = null;
+};
+
+/*
+Build the index for a particular field
+*/
+FieldIndexer.prototype.buildIndexForField = function(name) {
+ var self = this;
+ // Hashmap by field name of hashmap by field value of array of tiddler titles
+ this.index = this.index || Object.create(null);
+ this.index[name] = Object.create(null);
+ var baseIndex = this.index[name];
+ // Update the index for each tiddler
+ this.wiki.eachTiddlerPlusShadows(function(tiddler,title) {
+ if(name in tiddler.fields) {
+ var value = tiddler.getFieldString(name);
+ // Skip any values above the maximum length
+ if(value.length < self.maxIndexedValueLength) {
+ baseIndex[value] = baseIndex[value] || [];
+ baseIndex[value].push(title);
+ }
+ }
+ });
+};
+
+/*
+Update the index in the light of a tiddler value changing; note that the title must be identical. (Renames are handled as a separate delete and create)
+updateDescriptor: {old: {tiddler: <tiddler>, shadow: <boolean>, exists: <boolean>},new: {tiddler: <tiddler>, shadow: <boolean>, exists: <boolean>}}
+*/
+FieldIndexer.prototype.update = function(updateDescriptor) {
+ var self = this;
+ // Don't do anything if the index hasn't been built yet
+ if(this.index === null) {
+ return;
+ }
+ // Remove the old tiddler from the index
+ if(updateDescriptor.old.tiddler) {
+ $tw.utils.each(this.index,function(indexEntry,name) {
+ if(name in updateDescriptor.old.tiddler.fields) {
+ var value = updateDescriptor.old.tiddler.getFieldString(name),
+ tiddlerList = indexEntry[value];
+ if(tiddlerList) {
+ var index = tiddlerList.indexOf(updateDescriptor.old.tiddler.fields.title);
+ if(index !== -1) {
+ tiddlerList.splice(index,1);
+ }
+ }
+ }
+ });
+ }
+ // Add the new tiddler to the index
+ if(updateDescriptor["new"].tiddler) {
+ $tw.utils.each(this.index,function(indexEntry,name) {
+ if(name in updateDescriptor["new"].tiddler.fields) {
+ var value = updateDescriptor["new"].tiddler.getFieldString(name);
+ if(value.length < self.maxIndexedValueLength) {
+ indexEntry[value] = indexEntry[value] || [];
+ indexEntry[value].push(updateDescriptor["new"].tiddler.fields.title);
+ }
+ }
+ });
+ }
+};
+
+// Lookup the given field returning a list of tiddler titles
+FieldIndexer.prototype.lookup = function(name,value) {
+ // Fail the lookup if the value is too long
+ if(value.length >= this.maxIndexedValueLength) {
+ return null;
+ }
+ // Update the index if it has yet to be built
+ if(this.index === null || !this.index[name]) {
+ this.buildIndexForField(name);
+ }
+ return this.index[name][value] || [];
+};
+
+exports.FieldIndexer = FieldIndexer;
+
+})();
+
+/*\
+title: $:/core/modules/indexers/tag-indexer.js
+type: application/javascript
+module-type: indexer
+
+Indexes the tiddlers with each tag
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global modules: false */
+"use strict";
+
+function TagIndexer(wiki) {
+ this.wiki = wiki;
+}
+
+TagIndexer.prototype.init = function() {
+ this.subIndexers = [
+ new TagSubIndexer(this,"each"),
+ new TagSubIndexer(this,"eachShadow"),
+ new TagSubIndexer(this,"eachTiddlerPlusShadows"),
+ new TagSubIndexer(this,"eachShadowPlusTiddlers")
+ ];
+ $tw.utils.each(this.subIndexers,function(subIndexer) {
+ subIndexer.addIndexMethod();
+ });
+};
+
+TagIndexer.prototype.rebuild = function() {
+ $tw.utils.each(this.subIndexers,function(subIndexer) {
+ subIndexer.rebuild();
+ });
+};
+
+TagIndexer.prototype.update = function(updateDescriptor) {
+ $tw.utils.each(this.subIndexers,function(subIndexer) {
+ subIndexer.update(updateDescriptor);
+ });
+};
+
+function TagSubIndexer(indexer,iteratorMethod) {
+ this.indexer = indexer;
+ this.iteratorMethod = iteratorMethod;
+ this.index = null; // Hashmap of tag title to {isSorted: bool, titles: [array]} or null if not yet initialised
+}
+
+TagSubIndexer.prototype.addIndexMethod = function() {
+ var self = this;
+ this.indexer.wiki[this.iteratorMethod].byTag = function(tag) {
+ return self.lookup(tag).slice(0);
+ };
+};
+
+TagSubIndexer.prototype.rebuild = function() {
+ var self = this;
+ // Hashmap by tag of array of {isSorted:, titles:[]}
+ this.index = Object.create(null);
+ // Add all the tags
+ this.indexer.wiki[this.iteratorMethod](function(tiddler,title) {
+ $tw.utils.each(tiddler.fields.tags,function(tag) {
+ if(!self.index[tag]) {
+ self.index[tag] = {isSorted: false, titles: [title]};
+ } else {
+ self.index[tag].titles.push(title);
+ }
+ });
+ });
+};
+
+TagSubIndexer.prototype.update = function(updateDescriptor) {
+ this.index = null;
+};
+
+TagSubIndexer.prototype.lookup = function(tag) {
+ // Update the index if it has yet to be built
+ if(this.index === null) {
+ this.rebuild();
+ }
+ var indexRecord = this.index[tag];
+ if(indexRecord) {
+ if(!indexRecord.isSorted) {
+ if(this.indexer.wiki.sortByList) {
+ indexRecord.titles = this.indexer.wiki.sortByList(indexRecord.titles,tag);
+ }
+ indexRecord.isSorted = true;
+ }
+ return indexRecord.titles;
+ } else {
+ return [];
+ }
+};
+
+
+exports.TagIndexer = TagIndexer;
+
+})();
+
+/*\
+title: $:/core/modules/info/platform.js
+type: application/javascript
+module-type: info
+
+Initialise basic platform $:/info/ tiddlers
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.getInfoTiddlerFields = function() {
+ var mapBoolean = function(value) {return value ? "yes" : "no";},
+ infoTiddlerFields = [];
+ // Basics
+ infoTiddlerFields.push({title: "$:/info/browser", text: mapBoolean(!!$tw.browser)});
+ infoTiddlerFields.push({title: "$:/info/node", text: mapBoolean(!!$tw.node)});
+ if($tw.browser) {
+ // Document location
+ var setLocationProperty = function(name,value) {
+ infoTiddlerFields.push({title: "$:/info/url/" + name, text: value});
+ },
+ location = document.location;
+ setLocationProperty("full", (location.toString()).split("#")[0]);
+ setLocationProperty("host", location.host);
+ setLocationProperty("hostname", location.hostname);
+ setLocationProperty("protocol", location.protocol);
+ setLocationProperty("port", location.port);
+ setLocationProperty("pathname", location.pathname);
+ setLocationProperty("search", location.search);
+ setLocationProperty("origin", location.origin);
+ // Screen size
+ infoTiddlerFields.push({title: "$:/info/browser/screen/width", text: window.screen.width.toString()});
+ infoTiddlerFields.push({title: "$:/info/browser/screen/height", text: window.screen.height.toString()});
+ // Language
+ infoTiddlerFields.push({title: "$:/info/browser/language", text: navigator.language || ""});
+ }
+ return infoTiddlerFields;
+};
+
+})();
+
+/*\
+title: $:/core/modules/keyboard.js
+type: application/javascript
+module-type: global
+
+Keyboard handling utilities
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var namedKeys = {
+ "cancel": 3,
+ "help": 6,
+ "backspace": 8,
+ "tab": 9,
+ "clear": 12,
+ "return": 13,
+ "enter": 13,
+ "pause": 19,
+ "escape": 27,
+ "space": 32,
+ "page_up": 33,
+ "page_down": 34,
+ "end": 35,
+ "home": 36,
+ "left": 37,
+ "up": 38,
+ "right": 39,
+ "down": 40,
+ "printscreen": 44,
+ "insert": 45,
+ "delete": 46,
+ "0": 48,
+ "1": 49,
+ "2": 50,
+ "3": 51,
+ "4": 52,
+ "5": 53,
+ "6": 54,
+ "7": 55,
+ "8": 56,
+ "9": 57,
+ "firefoxsemicolon": 59,
+ "firefoxequals": 61,
+ "a": 65,
+ "b": 66,
+ "c": 67,
+ "d": 68,
+ "e": 69,
+ "f": 70,
+ "g": 71,
+ "h": 72,
+ "i": 73,
+ "j": 74,
+ "k": 75,
+ "l": 76,
+ "m": 77,
+ "n": 78,
+ "o": 79,
+ "p": 80,
+ "q": 81,
+ "r": 82,
+ "s": 83,
+ "t": 84,
+ "u": 85,
+ "v": 86,
+ "w": 87,
+ "x": 88,
+ "y": 89,
+ "z": 90,
+ "numpad0": 96,
+ "numpad1": 97,
+ "numpad2": 98,
+ "numpad3": 99,
+ "numpad4": 100,
+ "numpad5": 101,
+ "numpad6": 102,
+ "numpad7": 103,
+ "numpad8": 104,
+ "numpad9": 105,
+ "multiply": 106,
+ "add": 107,
+ "separator": 108,
+ "subtract": 109,
+ "decimal": 110,
+ "divide": 111,
+ "f1": 112,
+ "f2": 113,
+ "f3": 114,
+ "f4": 115,
+ "f5": 116,
+ "f6": 117,
+ "f7": 118,
+ "f8": 119,
+ "f9": 120,
+ "f10": 121,
+ "f11": 122,
+ "f12": 123,
+ "f13": 124,
+ "f14": 125,
+ "f15": 126,
+ "f16": 127,
+ "f17": 128,
+ "f18": 129,
+ "f19": 130,
+ "f20": 131,
+ "f21": 132,
+ "f22": 133,
+ "f23": 134,
+ "f24": 135,
+ "firefoxminus": 173,
+ "semicolon": 186,
+ "equals": 187,
+ "comma": 188,
+ "dash": 189,
+ "period": 190,
+ "slash": 191,
+ "backquote": 192,
+ "openbracket": 219,
+ "backslash": 220,
+ "closebracket": 221,
+ "quote": 222
+};
+
+function KeyboardManager(options) {
+ var self = this;
+ options = options || "";
+ // Save the named key hashmap
+ this.namedKeys = namedKeys;
+ // Create a reverse mapping of code to keyname
+ this.keyNames = [];
+ $tw.utils.each(namedKeys,function(keyCode,name) {
+ self.keyNames[keyCode] = name.substr(0,1).toUpperCase() + name.substr(1);
+ });
+ // Save the platform-specific name of the "meta" key
+ this.metaKeyName = $tw.platform.isMac ? "cmd-" : "win-";
+ this.shortcutKeysList = [], // Stores the shortcut-key descriptors
+ this.shortcutActionList = [], // Stores the corresponding action strings
+ this.shortcutParsedList = []; // Stores the parsed key descriptors
+ this.lookupNames = ["shortcuts"];
+ this.lookupNames.push($tw.platform.isMac ? "shortcuts-mac" : "shortcuts-not-mac")
+ this.lookupNames.push($tw.platform.isWindows ? "shortcuts-windows" : "shortcuts-not-windows");
+ this.lookupNames.push($tw.platform.isLinux ? "shortcuts-linux" : "shortcuts-not-linux");
+ this.updateShortcutLists(this.getShortcutTiddlerList());
+ $tw.wiki.addEventListener("change",function(changes) {
+ self.handleShortcutChanges(changes);
+ });
+}
+
+/*
+Return an array of keycodes for the modifier keys ctrl, shift, alt, meta
+*/
+KeyboardManager.prototype.getModifierKeys = function() {
+ return [
+ 16, // Shift
+ 17, // Ctrl
+ 18, // Alt
+ 20, // CAPS LOCK
+ 91, // Meta (left)
+ 93, // Meta (right)
+ 224 // Meta (Firefox)
+ ]
+};
+
+/*
+Parses a key descriptor into the structure:
+{
+ keyCode: numeric keycode
+ shiftKey: boolean
+ altKey: boolean
+ ctrlKey: boolean
+ metaKey: boolean
+}
+Key descriptors have the following format:
+ ctrl+enter
+ ctrl+shift+alt+A
+*/
+KeyboardManager.prototype.parseKeyDescriptor = function(keyDescriptor) {
+ var components = keyDescriptor.split(/\+|\-/),
+ info = {
+ keyCode: 0,
+ shiftKey: false,
+ altKey: false,
+ ctrlKey: false,
+ metaKey: false
+ };
+ for(var t=0; t<components.length; t++) {
+ var s = components[t].toLowerCase(),
+ c = s.charCodeAt(0);
+ // Look for modifier keys
+ if(s === "ctrl") {
+ info.ctrlKey = true;
+ } else if(s === "shift") {
+ info.shiftKey = true;
+ } else if(s === "alt") {
+ info.altKey = true;
+ } else if(s === "meta" || s === "cmd" || s === "win") {
+ info.metaKey = true;
+ }
+ // Replace named keys with their code
+ if(this.namedKeys[s]) {
+ info.keyCode = this.namedKeys[s];
+ }
+ }
+ if(info.keyCode) {
+ return info;
+ } else {
+ return null;
+ }
+};
+
+/*
+Parse a list of key descriptors into an array of keyInfo objects. The key descriptors can be passed as an array of strings or a space separated string
+*/
+KeyboardManager.prototype.parseKeyDescriptors = function(keyDescriptors,options) {
+ var self = this;
+ options = options || {};
+ options.stack = options.stack || [];
+ var wiki = options.wiki || $tw.wiki;
+ if(typeof keyDescriptors === "string" && keyDescriptors === "") {
+ return [];
+ }
+ if(!$tw.utils.isArray(keyDescriptors)) {
+ keyDescriptors = keyDescriptors.split(" ");
+ }
+ var result = [];
+ $tw.utils.each(keyDescriptors,function(keyDescriptor) {
+ // Look for a named shortcut
+ if(keyDescriptor.substr(0,2) === "((" && keyDescriptor.substr(-2,2) === "))") {
+ if(options.stack.indexOf(keyDescriptor) === -1) {
+ options.stack.push(keyDescriptor);
+ var name = keyDescriptor.substring(2,keyDescriptor.length - 2),
+ lookupName = function(configName) {
+ var keyDescriptors = wiki.getTiddlerText("$:/config/" + configName + "/" + name);
+ if(keyDescriptors) {
+ result.push.apply(result,self.parseKeyDescriptors(keyDescriptors,options));
+ }
+ };
+ $tw.utils.each(self.lookupNames,function(platformDescriptor) {
+ lookupName(platformDescriptor);
+ });
+ }
+ } else {
+ result.push(self.parseKeyDescriptor(keyDescriptor));
+ }
+ });
+ return result;
+};
+
+KeyboardManager.prototype.getPrintableShortcuts = function(keyInfoArray) {
+ var self = this,
+ result = [];
+ $tw.utils.each(keyInfoArray,function(keyInfo) {
+ if(keyInfo) {
+ result.push((keyInfo.ctrlKey ? "ctrl-" : "") +
+ (keyInfo.shiftKey ? "shift-" : "") +
+ (keyInfo.altKey ? "alt-" : "") +
+ (keyInfo.metaKey ? self.metaKeyName : "") +
+ (self.keyNames[keyInfo.keyCode]));
+ }
+ });
+ return result;
+}
+
+KeyboardManager.prototype.checkKeyDescriptor = function(event,keyInfo) {
+ return keyInfo &&
+ event.keyCode === keyInfo.keyCode &&
+ event.shiftKey === keyInfo.shiftKey &&
+ event.altKey === keyInfo.altKey &&
+ event.ctrlKey === keyInfo.ctrlKey &&
+ event.metaKey === keyInfo.metaKey;
+};
+
+KeyboardManager.prototype.checkKeyDescriptors = function(event,keyInfoArray) {
+ for(var t=0; t<keyInfoArray.length; t++) {
+ if(this.checkKeyDescriptor(event,keyInfoArray[t])) {
+ return true;
+ }
+ }
+ return false;
+};
+
+KeyboardManager.prototype.getShortcutTiddlerList = function() {
+ return $tw.wiki.getTiddlersWithTag("$:/tags/KeyboardShortcut");
+};
+
+KeyboardManager.prototype.updateShortcutLists = function(tiddlerList) {
+ this.shortcutTiddlers = tiddlerList;
+ for(var i=0; i<tiddlerList.length; i++) {
+ var title = tiddlerList[i],
+ tiddlerFields = $tw.wiki.getTiddler(title).fields;
+ this.shortcutKeysList[i] = tiddlerFields.key !== undefined ? tiddlerFields.key : undefined;
+ this.shortcutActionList[i] = tiddlerFields.text;
+ this.shortcutParsedList[i] = this.shortcutKeysList[i] !== undefined ? this.parseKeyDescriptors(this.shortcutKeysList[i]) : undefined;
+ }
+};
+
+KeyboardManager.prototype.handleKeydownEvent = function(event) {
+ var key, action;
+ for(var i=0; i<this.shortcutTiddlers.length; i++) {
+ if(this.shortcutParsedList[i] !== undefined && this.checkKeyDescriptors(event,this.shortcutParsedList[i])) {
+ key = this.shortcutParsedList[i];
+ action = this.shortcutActionList[i];
+ }
+ }
+ if(key !== undefined) {
+ event.preventDefault();
+ event.stopPropagation();
+ $tw.rootWidget.invokeActionString(action,$tw.rootWidget);
+ return true;
+ }
+ return false;
+};
+
+KeyboardManager.prototype.detectNewShortcuts = function(changedTiddlers) {
+ var shortcutConfigTiddlers = [],
+ handled = false;
+ $tw.utils.each(this.lookupNames,function(platformDescriptor) {
+ var descriptorString = "$:/config/" + platformDescriptor + "/";
+ Object.keys(changedTiddlers).forEach(function(configTiddler) {
+ var configString = configTiddler.substr(0, configTiddler.lastIndexOf("/") + 1);
+ if(configString === descriptorString) {
+ shortcutConfigTiddlers.push(configTiddler);
+ handled = true;
+ }
+ });
+ });
+ if(handled) {
+ return $tw.utils.hopArray(changedTiddlers,shortcutConfigTiddlers);
+ } else {
+ return false;
+ }
+};
+
+KeyboardManager.prototype.handleShortcutChanges = function(changedTiddlers) {
+ var newList = this.getShortcutTiddlerList();
+ var hasChanged = $tw.utils.hopArray(changedTiddlers,this.shortcutTiddlers) ? true :
+ ($tw.utils.hopArray(changedTiddlers,newList) ? true :
+ (this.detectNewShortcuts(changedTiddlers))
+ );
+ // Re-cache shortcuts if something changed
+ if(hasChanged) {
+ this.updateShortcutLists(newList);
+ }
+};
+
+exports.KeyboardManager = KeyboardManager;
+
+})();
+
+/*\
+title: $:/core/modules/language.js
+type: application/javascript
+module-type: global
+
+The $tw.Language() manages translateable strings
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Create an instance of the language manager. Options include:
+wiki: wiki from which to retrieve translation tiddlers
+*/
+function Language(options) {
+ options = options || "";
+ this.wiki = options.wiki || $tw.wiki;
+}
+
+/*
+Return a wikified translateable string. The title is automatically prefixed with "$:/language/"
+Options include:
+variables: optional hashmap of variables to supply to the language wikification
+*/
+Language.prototype.getString = function(title,options) {
+ options = options || {};
+ title = "$:/language/" + title;
+ return this.wiki.renderTiddler("text/plain",title,{variables: options.variables});
+};
+
+/*
+Return a raw, unwikified translateable string. The title is automatically prefixed with "$:/language/"
+*/
+Language.prototype.getRawString = function(title) {
+ title = "$:/language/" + title;
+ return this.wiki.getTiddlerText(title);
+};
+
+exports.Language = Language;
+
+})();
+
+/*\
+title: $:/core/modules/macros/changecount.js
+type: application/javascript
+module-type: macro
+
+Macro to return the changecount for the current tiddler
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Information about this macro
+*/
+
+exports.name = "changecount";
+
+exports.params = [];
+
+/*
+Run the macro
+*/
+exports.run = function() {
+ return this.wiki.getChangeCount(this.getVariable("currentTiddler")) + "";
+};
+
+})();
+
+/*\
+title: $:/core/modules/macros/contrastcolour.js
+type: application/javascript
+module-type: macro
+
+Macro to choose which of two colours has the highest contrast with a base colour
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Information about this macro
+*/
+
+exports.name = "contrastcolour";
+
+exports.params = [
+ {name: "target"},
+ {name: "fallbackTarget"},
+ {name: "colourA"},
+ {name: "colourB"}
+];
+
+/*
+Run the macro
+*/
+exports.run = function(target,fallbackTarget,colourA,colourB) {
+ var rgbTarget = $tw.utils.parseCSSColor(target) || $tw.utils.parseCSSColor(fallbackTarget);
+ if(!rgbTarget) {
+ return colourA;
+ }
+ var rgbColourA = $tw.utils.parseCSSColor(colourA),
+ rgbColourB = $tw.utils.parseCSSColor(colourB);
+ if(rgbColourA && !rgbColourB) {
+ return rgbColourA;
+ }
+ if(rgbColourB && !rgbColourA) {
+ return rgbColourB;
+ }
+ if(!rgbColourA && !rgbColourB) {
+ // If neither colour is readable, return a crude inverse of the target
+ return [255 - rgbTarget[0],255 - rgbTarget[1],255 - rgbTarget[2],rgbTarget[3]];
+ }
+ // Colour brightness formula derived from http://www.w3.org/WAI/ER/WD-AERT/#color-contrast
+ var brightnessTarget = rgbTarget[0] * 0.299 + rgbTarget[1] * 0.587 + rgbTarget[2] * 0.114,
+ brightnessA = rgbColourA[0] * 0.299 + rgbColourA[1] * 0.587 + rgbColourA[2] * 0.114,
+ brightnessB = rgbColourB[0] * 0.299 + rgbColourB[1] * 0.587 + rgbColourB[2] * 0.114;
+ return Math.abs(brightnessTarget - brightnessA) > Math.abs(brightnessTarget - brightnessB) ? colourA : colourB;
+};
+
+})();
+
+/*\
+title: $:/core/modules/macros/csvtiddlers.js
+type: application/javascript
+module-type: macro
+
+Macro to output tiddlers matching a filter to CSV
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Information about this macro
+*/
+
+exports.name = "csvtiddlers";
+
+exports.params = [
+ {name: "filter"},
+ {name: "format"},
+];
+
+/*
+Run the macro
+*/
+exports.run = function(filter,format) {
+ var self = this,
+ tiddlers = this.wiki.filterTiddlers(filter),
+ tiddler,
+ fields = [],
+ t,f;
+ // Collect all the fields
+ for(t=0;t<tiddlers.length; t++) {
+ tiddler = this.wiki.getTiddler(tiddlers[t]);
+ for(f in tiddler.fields) {
+ if(fields.indexOf(f) === -1) {
+ fields.push(f);
+ }
+ }
+ }
+ // Sort the fields and bring the standard ones to the front
+ fields.sort();
+ "title text modified modifier created creator".split(" ").reverse().forEach(function(value,index) {
+ var p = fields.indexOf(value);
+ if(p !== -1) {
+ fields.splice(p,1);
+ fields.unshift(value)
+ }
+ });
+ // Output the column headings
+ var output = [], row = [];
+ fields.forEach(function(value) {
+ row.push(quoteAndEscape(value))
+ });
+ output.push(row.join(","));
+ // Output each tiddler
+ for(var t=0;t<tiddlers.length; t++) {
+ row = [];
+ tiddler = this.wiki.getTiddler(tiddlers[t]);
+ for(f=0; f<fields.length; f++) {
+ row.push(quoteAndEscape(tiddler ? tiddler.getFieldString(fields[f]) || "" : ""));
+ }
+ output.push(row.join(","));
+ }
+ return output.join("\n");
+};
+
+function quoteAndEscape(value) {
+ return "\"" + value.replace(/"/mg,"\"\"") + "\"";
+}
+
+})();
+
+/*\
+title: $:/core/modules/macros/displayshortcuts.js
+type: application/javascript
+module-type: macro
+
+Macro to display a list of keyboard shortcuts in human readable form. Notably, it resolves named shortcuts like `((bold))` to the underlying keystrokes.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Information about this macro
+*/
+
+exports.name = "displayshortcuts";
+
+exports.params = [
+ {name: "shortcuts"},
+ {name: "prefix"},
+ {name: "separator"},
+ {name: "suffix"}
+];
+
+/*
+Run the macro
+*/
+exports.run = function(shortcuts,prefix,separator,suffix) {
+ var shortcutArray = $tw.keyboardManager.getPrintableShortcuts($tw.keyboardManager.parseKeyDescriptors(shortcuts,{
+ wiki: this.wiki
+ }));
+ if(shortcutArray.length > 0) {
+ shortcutArray.sort(function(a,b) {
+ return a.toLowerCase().localeCompare(b.toLowerCase());
+ })
+ return prefix + shortcutArray.join(separator) + suffix;
+ } else {
+ return "";
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/macros/jsontiddler.js
+type: application/javascript
+module-type: macro
+
+Macro to output a single tiddler to JSON
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Information about this macro
+*/
+
+exports.name = "jsontiddler";
+
+exports.params = [
+ {name: "title"}
+];
+
+/*
+Run the macro
+*/
+exports.run = function(title) {
+ title = title || this.getVariable("currentTiddler");
+ var tiddler = !!title && this.wiki.getTiddler(title),
+ fields = new Object();
+ if(tiddler) {
+ for(var field in tiddler.fields) {
+ fields[field] = tiddler.getFieldString(field);
+ }
+ }
+ return JSON.stringify(fields,null,$tw.config.preferences.jsonSpaces);
+};
+
+})();
+
+/*\
+title: $:/core/modules/macros/jsontiddlers.js
+type: application/javascript
+module-type: macro
+
+Macro to output tiddlers matching a filter to JSON
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Information about this macro
+*/
+
+exports.name = "jsontiddlers";
+
+exports.params = [
+ {name: "filter"},
+ {name: "spaces"}
+];
+
+/*
+Run the macro
+*/
+exports.run = function(filter,spaces) {
+ return this.wiki.getTiddlersAsJson(filter,$tw.utils.parseInt(spaces));
+};
+
+})();
+
+/*\
+title: $:/core/modules/macros/makedatauri.js
+type: application/javascript
+module-type: macro
+
+Macro to convert a string of text to a data URI
+
+<<makedatauri text:"Text to be converted" type:"text/vnd.tiddlywiki">>
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Information about this macro
+*/
+
+exports.name = "makedatauri";
+
+exports.params = [
+ {name: "text"},
+ {name: "type"},
+ {name: "_canonical_uri"}
+];
+
+/*
+Run the macro
+*/
+exports.run = function(text,type,_canonical_uri) {
+ return $tw.utils.makeDataUri(text,type,_canonical_uri);
+};
+
+})();
+
+/*\
+title: $:/core/modules/macros/now.js
+type: application/javascript
+module-type: macro
+
+Macro to return a formatted version of the current time
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Information about this macro
+*/
+
+exports.name = "now";
+
+exports.params = [
+ {name: "format"}
+];
+
+/*
+Run the macro
+*/
+exports.run = function(format) {
+ return $tw.utils.formatDateString(new Date(),format || "0hh:0mm, DDth MMM YYYY");
+};
+
+})();
+
+/*\
+title: $:/core/modules/macros/qualify.js
+type: application/javascript
+module-type: macro
+
+Macro to qualify a state tiddler title according
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Information about this macro
+*/
+
+exports.name = "qualify";
+
+exports.params = [
+ {name: "title"}
+];
+
+/*
+Run the macro
+*/
+exports.run = function(title) {
+ return title + "-" + this.getStateQualifier();
+};
+
+})();
+
+/*\
+title: $:/core/modules/macros/resolvepath.js
+type: application/javascript
+module-type: macro
+
+Resolves a relative path for an absolute rootpath.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "resolvepath";
+
+exports.params = [
+ {name: "source"},
+ {name: "root"}
+];
+
+/*
+Run the macro
+*/
+exports.run = function(source, root) {
+ return $tw.utils.resolvePath(source, root);
+};
+
+})();
+
+/*\
+title: $:/core/modules/macros/unusedtitle.js
+type: application/javascript
+module-type: macro
+Macro to return a new title that is unused in the wiki. It can be given a name as a base.
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Information about this macro
+*/
+
+exports.name = "unusedtitle";
+
+exports.params = [
+ {name: "baseName"},
+ {name: "options"}
+];
+
+/*
+Run the macro
+*/
+exports.run = function(baseName, options) {
+ if(!baseName) {
+ baseName = $tw.language.getString("DefaultNewTiddlerTitle");
+ }
+ return this.wiki.generateNewTitle(baseName, options);
+};
+
+})();
+
+/*\
+title: $:/core/modules/macros/version.js
+type: application/javascript
+module-type: macro
+
+Macro to return the TiddlyWiki core version number
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Information about this macro
+*/
+
+exports.name = "version";
+
+exports.params = [];
+
+/*
+Run the macro
+*/
+exports.run = function() {
+ return $tw.version;
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/audioparser.js
+type: application/javascript
+module-type: parser
+
+The audio parser parses an audio tiddler into an embeddable HTML element
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var AudioParser = function(type,text,options) {
+ var element = {
+ type: "element",
+ tag: "audio",
+ attributes: {
+ controls: {type: "string", value: "controls"},
+ style: {type: "string", value: "width: 100%; object-fit: contain"}
+ }
+ },
+ src;
+ if(options._canonical_uri) {
+ element.attributes.src = {type: "string", value: options._canonical_uri};
+ } else if(text) {
+ element.attributes.src = {type: "string", value: "data:" + type + ";base64," + text};
+ }
+ this.tree = [element];
+};
+
+exports["audio/ogg"] = AudioParser;
+exports["audio/mpeg"] = AudioParser;
+exports["audio/mp3"] = AudioParser;
+exports["audio/mp4"] = AudioParser;
+
+})();
+
+
+/*\
+title: $:/core/modules/parsers/binaryparser.js
+type: application/javascript
+module-type: parser
+
+The binary parser parses a binary tiddler into a warning message and download link
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var BINARY_WARNING_MESSAGE = "$:/core/ui/BinaryWarning";
+var EXPORT_BUTTON_IMAGE = "$:/core/images/export-button";
+
+var BinaryParser = function(type,text,options) {
+ // Transclude the binary data tiddler warning message
+ var warn = {
+ type: "element",
+ tag: "p",
+ children: [{
+ type: "transclude",
+ attributes: {
+ tiddler: {type: "string", value: BINARY_WARNING_MESSAGE}
+ }
+ }]
+ };
+ // Create download link based on binary tiddler title
+ var link = {
+ type: "element",
+ tag: "a",
+ attributes: {
+ title: {type: "indirect", textReference: "!!title"},
+ download: {type: "indirect", textReference: "!!title"}
+ },
+ children: [{
+ type: "transclude",
+ attributes: {
+ tiddler: {type: "string", value: EXPORT_BUTTON_IMAGE}
+ }
+ }]
+ };
+ // Set the link href to external or internal data URI
+ if(options._canonical_uri) {
+ link.attributes.href = {
+ type: "string",
+ value: options._canonical_uri
+ };
+ } else if(text) {
+ link.attributes.href = {
+ type: "string",
+ value: "data:" + type + ";base64," + text
+ };
+ }
+ // Combine warning message and download link in a div
+ var element = {
+ type: "element",
+ tag: "div",
+ attributes: {
+ class: {type: "string", value: "tc-binary-warning"}
+ },
+ children: [warn, link]
+ }
+ this.tree = [element];
+};
+
+exports["application/octet-stream"] = BinaryParser;
+
+})();
+
+
+/*\
+title: $:/core/modules/parsers/csvparser.js
+type: application/javascript
+module-type: parser
+
+The CSV text parser processes CSV files into a table wrapped in a scrollable widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var CsvParser = function(type,text,options) {
+ // Table framework
+ this.tree = [{
+ "type": "scrollable", "children": [{
+ "type": "element", "tag": "table", "children": [{
+ "type": "element", "tag": "tbody", "children": []
+ }], "attributes": {
+ "class": {"type": "string", "value": "tc-csv-table"}
+ }
+ }]
+ }];
+ // Split the text into lines
+ var lines = text.split(/\r?\n/mg),
+ tag = "th";
+ for(var line=0; line<lines.length; line++) {
+ var lineText = lines[line];
+ if(lineText) {
+ var row = {
+ "type": "element", "tag": "tr", "children": []
+ };
+ var columns = lineText.split(",");
+ for(var column=0; column<columns.length; column++) {
+ row.children.push({
+ "type": "element", "tag": tag, "children": [{
+ "type": "text",
+ "text": columns[column]
+ }]
+ });
+ }
+ tag = "td";
+ this.tree[0].children[0].children[0].children.push(row);
+ }
+ }
+};
+
+exports["text/csv"] = CsvParser;
+
+})();
+
+
+/*\
+title: $:/core/modules/parsers/htmlparser.js
+type: application/javascript
+module-type: parser
+
+The HTML parser displays text as raw HTML
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var HtmlParser = function(type,text,options) {
+ var src;
+ if(options._canonical_uri) {
+ src = options._canonical_uri;
+ } else if(text) {
+ src = "data:text/html;charset=utf-8," + encodeURIComponent(text);
+ }
+ this.tree = [{
+ type: "element",
+ tag: "iframe",
+ attributes: {
+ src: {type: "string", value: src},
+ sandbox: {type: "string", value: ""}
+ }
+ }];
+};
+
+exports["text/html"] = HtmlParser;
+
+})();
+
+
+/*\
+title: $:/core/modules/parsers/imageparser.js
+type: application/javascript
+module-type: parser
+
+The image parser parses an image into an embeddable HTML element
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var ImageParser = function(type,text,options) {
+ var element = {
+ type: "element",
+ tag: "img",
+ attributes: {}
+ };
+ if(options._canonical_uri) {
+ element.attributes.src = {type: "string", value: options._canonical_uri};
+ } else if(text) {
+ if(type === "image/svg+xml" || type === ".svg") {
+ element.attributes.src = {type: "string", value: "data:image/svg+xml," + encodeURIComponent(text)};
+ } else {
+ element.attributes.src = {type: "string", value: "data:" + type + ";base64," + text};
+ }
+ }
+ this.tree = [element];
+};
+
+exports["image/svg+xml"] = ImageParser;
+exports["image/jpg"] = ImageParser;
+exports["image/jpeg"] = ImageParser;
+exports["image/png"] = ImageParser;
+exports["image/gif"] = ImageParser;
+exports["image/webp"] = ImageParser;
+exports["image/heic"] = ImageParser;
+exports["image/heif"] = ImageParser;
+exports["image/x-icon"] = ImageParser;
+
+})();
+
+
+/*\
+title: $:/core/modules/parsers/pdfparser.js
+type: application/javascript
+module-type: parser
+
+The PDF parser embeds a PDF viewer
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var ImageParser = function(type,text,options) {
+ var element = {
+ type: "element",
+ tag: "embed",
+ attributes: {}
+ },
+ src;
+ if(options._canonical_uri) {
+ element.attributes.src = {type: "string", value: options._canonical_uri};
+ } else if(text) {
+ element.attributes.src = {type: "string", value: "data:application/pdf;base64," + text};
+ }
+ this.tree = [element];
+};
+
+exports["application/pdf"] = ImageParser;
+
+})();
+
+
+/*\
+title: $:/core/modules/parsers/textparser.js
+type: application/javascript
+module-type: parser
+
+The plain text parser processes blocks of source text into a degenerate parse tree consisting of a single text node
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var TextParser = function(type,text,options) {
+ this.tree = [{
+ type: "codeblock",
+ attributes: {
+ code: {type: "string", value: text},
+ language: {type: "string", value: type}
+ }
+ }];
+};
+
+exports["text/plain"] = TextParser;
+exports["text/x-tiddlywiki"] = TextParser;
+exports["application/javascript"] = TextParser;
+exports["application/json"] = TextParser;
+exports["text/css"] = TextParser;
+exports["application/x-tiddler-dictionary"] = TextParser;
+
+})();
+
+
+/*\
+title: $:/core/modules/parsers/videoparser.js
+type: application/javascript
+module-type: parser
+
+The video parser parses a video tiddler into an embeddable HTML element
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var VideoParser = function(type,text,options) {
+ var element = {
+ type: "element",
+ tag: "video",
+ attributes: {
+ controls: {type: "string", value: "controls"},
+ style: {type: "string", value: "width: 100%; object-fit: contain"}
+ }
+ },
+ src;
+ if(options._canonical_uri) {
+ element.attributes.src = {type: "string", value: options._canonical_uri};
+ } else if(text) {
+ element.attributes.src = {type: "string", value: "data:" + type + ";base64," + text};
+ }
+ this.tree = [element];
+};
+
+exports["video/ogg"] = VideoParser;
+exports["video/webm"] = VideoParser;
+exports["video/mp4"] = VideoParser;
+exports["video/quicktime"] = VideoParser;
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/codeblock.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text rule for code blocks. For example:
+
+```
+ ```
+ This text will not be //wikified//
+ ```
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "codeblock";
+exports.types = {block: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match and get language if defined
+ this.matchRegExp = /```([\w-]*)\r?\n/mg;
+};
+
+exports.parse = function() {
+ var reEnd = /(\r?\n```$)/mg;
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+
+ // Look for the end of the block
+ reEnd.lastIndex = this.parser.pos;
+ var match = reEnd.exec(this.parser.source),
+ text;
+ // Process the block
+ if(match) {
+ text = this.parser.source.substring(this.parser.pos,match.index);
+ this.parser.pos = match.index + match[0].length;
+ } else {
+ text = this.parser.source.substr(this.parser.pos);
+ this.parser.pos = this.parser.sourceLength;
+ }
+ // Return the $codeblock widget
+ return [{
+ type: "codeblock",
+ attributes: {
+ code: {type: "string", value: text},
+ language: {type: "string", value: this.match[1]}
+ }
+ }];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/codeinline.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for code runs. For example:
+
+```
+ This is a `code run`.
+ This is another ``code run``
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "codeinline";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /(``?)/mg;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+ var reEnd = new RegExp(this.match[1], "mg");
+ // Look for the end marker
+ reEnd.lastIndex = this.parser.pos;
+ var match = reEnd.exec(this.parser.source),
+ text;
+ // Process the text
+ if(match) {
+ text = this.parser.source.substring(this.parser.pos,match.index);
+ this.parser.pos = match.index + match[0].length;
+ } else {
+ text = this.parser.source.substr(this.parser.pos);
+ this.parser.pos = this.parser.sourceLength;
+ }
+ return [{
+ type: "element",
+ tag: "code",
+ children: [{
+ type: "text",
+ text: text
+ }]
+ }];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/commentblock.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text block rule for HTML comments. For example:
+
+```
+<!-- This is a comment -->
+```
+
+Note that the syntax for comments is simplified to an opening "<!--" sequence and a closing "-->" sequence -- HTML itself implements a more complex format (see http://ostermiller.org/findhtmlcomment.html)
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "commentblock";
+exports.types = {block: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ this.matchRegExp = /<!--/mg;
+ this.endMatchRegExp = /-->/mg;
+};
+
+exports.findNextMatch = function(startPos) {
+ this.matchRegExp.lastIndex = startPos;
+ this.match = this.matchRegExp.exec(this.parser.source);
+ if(this.match) {
+ this.endMatchRegExp.lastIndex = startPos + this.match[0].length;
+ this.endMatch = this.endMatchRegExp.exec(this.parser.source);
+ if(this.endMatch) {
+ return this.match.index;
+ }
+ }
+ return undefined;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.endMatchRegExp.lastIndex;
+ // Don't return any elements
+ return [];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/commentinline.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for HTML comments. For example:
+
+```
+<!-- This is a comment -->
+```
+
+Note that the syntax for comments is simplified to an opening "<!--" sequence and a closing "-->" sequence -- HTML itself implements a more complex format (see http://ostermiller.org/findhtmlcomment.html)
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "commentinline";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ this.matchRegExp = /<!--/mg;
+ this.endMatchRegExp = /-->/mg;
+};
+
+exports.findNextMatch = function(startPos) {
+ this.matchRegExp.lastIndex = startPos;
+ this.match = this.matchRegExp.exec(this.parser.source);
+ if(this.match) {
+ this.endMatchRegExp.lastIndex = startPos + this.match[0].length;
+ this.endMatch = this.endMatchRegExp.exec(this.parser.source);
+ if(this.endMatch) {
+ return this.match.index;
+ }
+ }
+ return undefined;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.endMatchRegExp.lastIndex;
+ // Don't return any elements
+ return [];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/dash.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for dashes. For example:
+
+```
+This is an en-dash: --
+
+This is an em-dash: ---
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "dash";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /-{2,3}(?!-)/mg;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+ var dash = this.match[0].length === 2 ? "–" : "—";
+ return [{
+ type: "entity",
+ entity: dash
+ }];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/emphasis/bold.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for emphasis - bold. For example:
+
+```
+ This is ''bold'' text
+```
+
+This wikiparser can be modified using the rules eg:
+
+```
+\rules except bold
+\rules only bold
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "bold";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /''/mg;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+
+ // Parse the run including the terminator
+ var tree = this.parser.parseInlineRun(/''/mg,{eatTerminator: true});
+
+ // Return the classed span
+ return [{
+ type: "element",
+ tag: "strong",
+ children: tree
+ }];
+};
+
+})();
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/emphasis/italic.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for emphasis - italic. For example:
+
+```
+ This is //italic// text
+```
+
+This wikiparser can be modified using the rules eg:
+
+```
+\rules except italic
+\rules only italic
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "italic";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /\/\//mg;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+
+ // Parse the run including the terminator
+ var tree = this.parser.parseInlineRun(/\/\//mg,{eatTerminator: true});
+
+ // Return the classed span
+ return [{
+ type: "element",
+ tag: "em",
+ children: tree
+ }];
+};
+
+})();
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for emphasis - strikethrough. For example:
+
+```
+ This is ~~strikethrough~~ text
+```
+
+This wikiparser can be modified using the rules eg:
+
+```
+\rules except strikethrough
+\rules only strikethrough
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "strikethrough";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /~~/mg;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+
+ // Parse the run including the terminator
+ var tree = this.parser.parseInlineRun(/~~/mg,{eatTerminator: true});
+
+ // Return the classed span
+ return [{
+ type: "element",
+ tag: "strike",
+ children: tree
+ }];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for emphasis - subscript. For example:
+
+```
+ This is ,,subscript,, text
+```
+
+This wikiparser can be modified using the rules eg:
+
+```
+\rules except subscript
+\rules only subscript
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "subscript";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /,,/mg;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+
+ // Parse the run including the terminator
+ var tree = this.parser.parseInlineRun(/,,/mg,{eatTerminator: true});
+
+ // Return the classed span
+ return [{
+ type: "element",
+ tag: "sub",
+ children: tree
+ }];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for emphasis - superscript. For example:
+
+```
+ This is ^^superscript^^ text
+```
+
+This wikiparser can be modified using the rules eg:
+
+```
+\rules except superscript
+\rules only superscript
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "superscript";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /\^\^/mg;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+
+ // Parse the run including the terminator
+ var tree = this.parser.parseInlineRun(/\^\^/mg,{eatTerminator: true});
+
+ // Return the classed span
+ return [{
+ type: "element",
+ tag: "sup",
+ children: tree
+ }];
+};
+
+})();
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for emphasis - underscore. For example:
+
+```
+ This is __underscore__ text
+```
+
+This wikiparser can be modified using the rules eg:
+
+```
+\rules except underscore
+\rules only underscore
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "underscore";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /__/mg;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+
+ // Parse the run including the terminator
+ var tree = this.parser.parseInlineRun(/__/mg,{eatTerminator: true});
+
+ // Return the classed span
+ return [{
+ type: "element",
+ tag: "u",
+ children: tree
+ }];
+};
+
+})();
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/entity.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for HTML entities. For example:
+
+```
+ This is a copyright symbol: ©
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "entity";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /(&#?[a-zA-Z0-9]{2,8};)/mg;
+};
+
+/*
+Parse the most recent match
+*/
+exports.parse = function() {
+ // Get all the details of the match
+ var entityString = this.match[1];
+ // Move past the macro call
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Return the entity
+ return [{type: "entity", entity: this.match[0]}];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/extlink.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for external links. For example:
+
+```
+An external link: https://www.tiddlywiki.com/
+
+A suppressed external link: ~http://www.tiddlyspace.com/
+```
+
+External links can be suppressed by preceding them with `~`.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "extlink";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /~?(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\s<>{}\[\]`|"\\^]+(?:\/|\b)/mg;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Create the link unless it is suppressed
+ if(this.match[0].substr(0,1) === "~") {
+ return [{type: "text", text: this.match[0].substr(1)}];
+ } else {
+ return [{
+ type: "element",
+ tag: "a",
+ attributes: {
+ href: {type: "string", value: this.match[0]},
+ "class": {type: "string", value: "tc-tiddlylink-external"},
+ target: {type: "string", value: "_blank"},
+ rel: {type: "string", value: "noopener noreferrer"}
+ },
+ children: [{
+ type: "text", text: this.match[0]
+ }]
+ }];
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text rule for block-level filtered transclusion. For example:
+
+```
+{{{ [tag[docs]] }}}
+{{{ [tag[docs]] |tooltip}}}
+{{{ [tag[docs]] ||TemplateTitle}}}
+{{{ [tag[docs]] |tooltip||TemplateTitle}}}
+{{{ [tag[docs]] }}width:40;height:50;}.class.class
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "filteredtranscludeblock";
+exports.types = {block: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /\{\{\{([^\|]+?)(?:\|([^\|\{\}]+))?(?:\|\|([^\|\{\}]+))?\}\}([^\}]*)\}(?:\.(\S+))?(?:\r?\n|$)/mg;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Get the match details
+ var filter = this.match[1],
+ tooltip = this.match[2],
+ template = $tw.utils.trim(this.match[3]),
+ style = this.match[4],
+ classes = this.match[5];
+ // Return the list widget
+ var node = {
+ type: "list",
+ attributes: {
+ filter: {type: "string", value: filter}
+ },
+ isBlock: true
+ };
+ if(tooltip) {
+ node.attributes.tooltip = {type: "string", value: tooltip};
+ }
+ if(template) {
+ node.attributes.template = {type: "string", value: template};
+ }
+ if(style) {
+ node.attributes.style = {type: "string", value: style};
+ }
+ if(classes) {
+ node.attributes.itemClass = {type: "string", value: classes.split(".").join(" ")};
+ }
+ return [node];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text rule for inline filtered transclusion. For example:
+
+```
+{{{ [tag[docs]] }}}
+{{{ [tag[docs]] |tooltip}}}
+{{{ [tag[docs]] ||TemplateTitle}}}
+{{{ [tag[docs]] |tooltip||TemplateTitle}}}
+{{{ [tag[docs]] }}width:40;height:50;}.class.class
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "filteredtranscludeinline";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /\{\{\{([^\|]+?)(?:\|([^\|\{\}]+))?(?:\|\|([^\|\{\}]+))?\}\}([^\}]*)\}(?:\.(\S+))?/mg;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Get the match details
+ var filter = this.match[1],
+ tooltip = this.match[2],
+ template = $tw.utils.trim(this.match[3]),
+ style = this.match[4],
+ classes = this.match[5];
+ // Return the list widget
+ var node = {
+ type: "list",
+ attributes: {
+ filter: {type: "string", value: filter}
+ }
+ };
+ if(tooltip) {
+ node.attributes.tooltip = {type: "string", value: tooltip};
+ }
+ if(template) {
+ node.attributes.template = {type: "string", value: template};
+ }
+ if(style) {
+ node.attributes.style = {type: "string", value: style};
+ }
+ if(classes) {
+ node.attributes.itemClass = {type: "string", value: classes.split(".").join(" ")};
+ }
+ return [node];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for marking areas with hard line breaks. For example:
+
+```
+"""
+This is some text
+That is set like
+It is a Poem
+When it is
+Clearly
+Not
+"""
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "hardlinebreaks";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /"""(?:\r?\n)?/mg;
+};
+
+exports.parse = function() {
+ var reEnd = /(""")|(\r?\n)/mg,
+ tree = [],
+ match;
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+ do {
+ // Parse the run up to the terminator
+ tree.push.apply(tree,this.parser.parseInlineRun(reEnd,{eatTerminator: false}));
+ // Redo the terminator match
+ reEnd.lastIndex = this.parser.pos;
+ match = reEnd.exec(this.parser.source);
+ if(match) {
+ this.parser.pos = reEnd.lastIndex;
+ // Add a line break if the terminator was a line break
+ if(match[2]) {
+ tree.push({type: "element", tag: "br"});
+ }
+ }
+ } while(match && !match[1]);
+ // Return the nodes
+ return tree;
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/heading.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text block rule for headings
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "heading";
+exports.types = {block: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /(!{1,6})/mg;
+};
+
+/*
+Parse the most recent match
+*/
+exports.parse = function() {
+ // Get all the details of the match
+ var headingLevel = this.match[1].length;
+ // Move past the !s
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Parse any classes, whitespace and then the heading itself
+ var classes = this.parser.parseClasses();
+ this.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});
+ var tree = this.parser.parseInlineRun(/(\r?\n)/mg);
+ // Return the heading
+ return [{
+ type: "element",
+ tag: "h" + headingLevel,
+ attributes: {
+ "class": {type: "string", value: classes.join(" ")}
+ },
+ children: tree
+ }];
+};
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/horizrule.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text block rule for rules. For example:
+
+```
+---
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "horizrule";
+exports.types = {block: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /-{3,}\r?(?:\n|$)/mg;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+ return [{type: "element", tag: "hr"}];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/html.js
+type: application/javascript
+module-type: wikirule
+
+Wiki rule for HTML elements and widgets. For example:
+
+{{{
+<aside>
+This is an HTML5 aside element
+</aside>
+
+<$slider target="MyTiddler">
+This is a widget invocation
+</$slider>
+
+}}}
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "html";
+exports.types = {inline: true, block: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+};
+
+exports.findNextMatch = function(startPos) {
+ // Find the next tag
+ this.nextTag = this.findNextTag(this.parser.source,startPos,{
+ requireLineBreak: this.is.block
+ });
+ return this.nextTag ? this.nextTag.start : undefined;
+};
+
+/*
+Parse the most recent match
+*/
+exports.parse = function() {
+ // Retrieve the most recent match so that recursive calls don't overwrite it
+ var tag = this.nextTag;
+ this.nextTag = null;
+ // Advance the parser position to past the tag
+ this.parser.pos = tag.end;
+ // Check for an immediately following double linebreak
+ var hasLineBreak = !tag.isSelfClosing && !!$tw.utils.parseTokenRegExp(this.parser.source,this.parser.pos,/([^\S\n\r]*\r?\n(?:[^\S\n\r]*\r?\n|$))/g);
+ // Set whether we're in block mode
+ tag.isBlock = this.is.block || hasLineBreak;
+ // Parse the body if we need to
+ if(!tag.isSelfClosing && $tw.config.htmlVoidElements.indexOf(tag.tag) === -1) {
+ var reEndString = "</" + $tw.utils.escapeRegExp(tag.tag) + ">",
+ reEnd = new RegExp("(" + reEndString + ")","mg");
+ if(hasLineBreak) {
+ tag.children = this.parser.parseBlocks(reEndString);
+ } else {
+ tag.children = this.parser.parseInlineRun(reEnd);
+ }
+ reEnd.lastIndex = this.parser.pos;
+ var endMatch = reEnd.exec(this.parser.source);
+ if(endMatch && endMatch.index === this.parser.pos) {
+ this.parser.pos = endMatch.index + endMatch[0].length;
+ }
+ }
+ // Return the tag
+ return [tag];
+};
+
+/*
+Look for an HTML tag. Returns null if not found, otherwise returns {type: "element", name:, attributes: [], isSelfClosing:, start:, end:,}
+*/
+exports.parseTag = function(source,pos,options) {
+ options = options || {};
+ var token,
+ node = {
+ type: "element",
+ start: pos,
+ attributes: {}
+ };
+ // Define our regexps
+ var reTagName = /([a-zA-Z0-9\-\$]+)/g;
+ // Skip whitespace
+ pos = $tw.utils.skipWhiteSpace(source,pos);
+ // Look for a less than sign
+ token = $tw.utils.parseTokenString(source,pos,"<");
+ if(!token) {
+ return null;
+ }
+ pos = token.end;
+ // Get the tag name
+ token = $tw.utils.parseTokenRegExp(source,pos,reTagName);
+ if(!token) {
+ return null;
+ }
+ node.tag = token.match[1];
+ if(node.tag.slice(1).indexOf("$") !== -1) {
+ return null;
+ }
+ if(node.tag.charAt(0) === "$") {
+ node.type = node.tag.substr(1);
+ }
+ pos = token.end;
+ // Check that the tag is terminated by a space, / or >
+ if(!$tw.utils.parseWhiteSpace(source,pos) && !(source.charAt(pos) === "/") && !(source.charAt(pos) === ">") ) {
+ return null;
+ }
+ // Process attributes
+ var attribute = $tw.utils.parseAttribute(source,pos);
+ while(attribute) {
+ node.attributes[attribute.name] = attribute;
+ pos = attribute.end;
+ // Get the next attribute
+ attribute = $tw.utils.parseAttribute(source,pos);
+ }
+ // Skip whitespace
+ pos = $tw.utils.skipWhiteSpace(source,pos);
+ // Look for a closing slash
+ token = $tw.utils.parseTokenString(source,pos,"/");
+ if(token) {
+ pos = token.end;
+ node.isSelfClosing = true;
+ }
+ // Look for a greater than sign
+ token = $tw.utils.parseTokenString(source,pos,">");
+ if(!token) {
+ return null;
+ }
+ pos = token.end;
+ // Check for a required line break
+ if(options.requireLineBreak) {
+ token = $tw.utils.parseTokenRegExp(source,pos,/([^\S\n\r]*\r?\n(?:[^\S\n\r]*\r?\n|$))/g);
+ if(!token) {
+ return null;
+ }
+ }
+ // Update the end position
+ node.end = pos;
+ return node;
+};
+
+exports.findNextTag = function(source,pos,options) {
+ // A regexp for finding candidate HTML tags
+ var reLookahead = /<([a-zA-Z\-\$]+)/g;
+ // Find the next candidate
+ reLookahead.lastIndex = pos;
+ var match = reLookahead.exec(source);
+ while(match) {
+ // Try to parse the candidate as a tag
+ var tag = this.parseTag(source,match.index,options);
+ // Return success
+ if(tag && this.isLegalTag(tag)) {
+ return tag;
+ }
+ // Look for the next match
+ reLookahead.lastIndex = match.index + 1;
+ match = reLookahead.exec(source);
+ }
+ // Failed
+ return null;
+};
+
+exports.isLegalTag = function(tag) {
+ // Widgets are always OK
+ if(tag.type !== "element") {
+ return true;
+ // If it's an HTML tag that starts with a dash then it's not legal
+ } else if(tag.tag.charAt(0) === "-") {
+ return false;
+ } else {
+ // Otherwise it's OK
+ return true;
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/image.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for embedding images. For example:
+
+```
+[img[https://tiddlywiki.com/fractalveg.jpg]]
+[img width=23 height=24 [https://tiddlywiki.com/fractalveg.jpg]]
+[img width={{!!width}} height={{!!height}} [https://tiddlywiki.com/fractalveg.jpg]]
+[img[Description of image|https://tiddlywiki.com/fractalveg.jpg]]
+[img[TiddlerTitle]]
+[img[Description of image|TiddlerTitle]]
+```
+
+Generates the `<$image>` widget.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "image";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+};
+
+exports.findNextMatch = function(startPos) {
+ // Find the next tag
+ this.nextImage = this.findNextImage(this.parser.source,startPos);
+ return this.nextImage ? this.nextImage.start : undefined;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.nextImage.end;
+ var node = {
+ type: "image",
+ attributes: this.nextImage.attributes
+ };
+ return [node];
+};
+
+/*
+Find the next image from the current position
+*/
+exports.findNextImage = function(source,pos) {
+ // A regexp for finding candidate HTML tags
+ var reLookahead = /(\[img)/g;
+ // Find the next candidate
+ reLookahead.lastIndex = pos;
+ var match = reLookahead.exec(source);
+ while(match) {
+ // Try to parse the candidate as a tag
+ var tag = this.parseImage(source,match.index);
+ // Return success
+ if(tag) {
+ return tag;
+ }
+ // Look for the next match
+ reLookahead.lastIndex = match.index + 1;
+ match = reLookahead.exec(source);
+ }
+ // Failed
+ return null;
+};
+
+/*
+Look for an image at the specified position. Returns null if not found, otherwise returns {type: "image", attributes: [], isSelfClosing:, start:, end:,}
+*/
+exports.parseImage = function(source,pos) {
+ var token,
+ node = {
+ type: "image",
+ start: pos,
+ attributes: {}
+ };
+ // Skip whitespace
+ pos = $tw.utils.skipWhiteSpace(source,pos);
+ // Look for the `[img`
+ token = $tw.utils.parseTokenString(source,pos,"[img");
+ if(!token) {
+ return null;
+ }
+ pos = token.end;
+ // Skip whitespace
+ pos = $tw.utils.skipWhiteSpace(source,pos);
+ // Process attributes
+ if(source.charAt(pos) !== "[") {
+ var attribute = $tw.utils.parseAttribute(source,pos);
+ while(attribute) {
+ node.attributes[attribute.name] = attribute;
+ pos = attribute.end;
+ pos = $tw.utils.skipWhiteSpace(source,pos);
+ if(source.charAt(pos) !== "[") {
+ // Get the next attribute
+ attribute = $tw.utils.parseAttribute(source,pos);
+ } else {
+ attribute = null;
+ }
+ }
+ }
+ // Skip whitespace
+ pos = $tw.utils.skipWhiteSpace(source,pos);
+ // Look for the `[` after the attributes
+ token = $tw.utils.parseTokenString(source,pos,"[");
+ if(!token) {
+ return null;
+ }
+ pos = token.end;
+ // Skip whitespace
+ pos = $tw.utils.skipWhiteSpace(source,pos);
+ // Get the source up to the terminating `]]`
+ token = $tw.utils.parseTokenRegExp(source,pos,/(?:([^|\]]*?)\|)?([^\]]+?)\]\]/g);
+ if(!token) {
+ return null;
+ }
+ pos = token.end;
+ if(token.match[1]) {
+ node.attributes.tooltip = {type: "string", value: token.match[1].trim()};
+ }
+ node.attributes.source = {type: "string", value: (token.match[2] || "").trim()};
+ // Update the end position
+ node.end = pos;
+ return node;
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/import.js
+type: application/javascript
+module-type: wikirule
+
+Wiki pragma rule for importing variable definitions
+
+```
+\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "import";
+exports.types = {pragma: true};
+
+/*
+Instantiate parse rule
+*/
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /^\\import[^\S\n]/mg;
+};
+
+/*
+Parse the most recent match
+*/
+exports.parse = function() {
+ var self = this;
+ // Move past the pragma invocation
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Parse the filter terminated by a line break
+ var reMatch = /(.*)(\r?\n)|$/mg;
+ reMatch.lastIndex = this.parser.pos;
+ var match = reMatch.exec(this.parser.source);
+ this.parser.pos = reMatch.lastIndex;
+ // Parse tree nodes to return
+ return [{
+ type: "importvariables",
+ attributes: {
+ filter: {type: "string", value: match[1]}
+ },
+ children: []
+ }];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/list.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text block rule for lists. For example:
+
+```
+* This is an unordered list
+* It has two items
+
+# This is a numbered list
+## With a subitem
+# And a third item
+
+; This is a term that is being defined
+: This is the definition of that term
+```
+
+Note that lists can be nested arbitrarily:
+
+```
+#** One
+#* Two
+#** Three
+#**** Four
+#**# Five
+#**## Six
+## Seven
+### Eight
+## Nine
+```
+
+A CSS class can be applied to a list item as follows:
+
+```
+* List item one
+*.active List item two has the class `active`
+* List item three
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "list";
+exports.types = {block: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /([\*#;:>]+)/mg;
+};
+
+var listTypes = {
+ "*": {listTag: "ul", itemTag: "li"},
+ "#": {listTag: "ol", itemTag: "li"},
+ ";": {listTag: "dl", itemTag: "dt"},
+ ":": {listTag: "dl", itemTag: "dd"},
+ ">": {listTag: "blockquote", itemTag: "div"}
+};
+
+/*
+Parse the most recent match
+*/
+exports.parse = function() {
+ // Array of parse tree nodes for the previous row of the list
+ var listStack = [];
+ // Cycle through the items in the list
+ while(true) {
+ // Match the list marker
+ var reMatch = /([\*#;:>]+)/mg;
+ reMatch.lastIndex = this.parser.pos;
+ var match = reMatch.exec(this.parser.source);
+ if(!match || match.index !== this.parser.pos) {
+ break;
+ }
+ // Check whether the list type of the top level matches
+ var listInfo = listTypes[match[0].charAt(0)];
+ if(listStack.length > 0 && listStack[0].tag !== listInfo.listTag) {
+ break;
+ }
+ // Move past the list marker
+ this.parser.pos = match.index + match[0].length;
+ // Walk through the list markers for the current row
+ for(var t=0; t<match[0].length; t++) {
+ listInfo = listTypes[match[0].charAt(t)];
+ // Remove any stacked up element if we can't re-use it because the list type doesn't match
+ if(listStack.length > t && listStack[t].tag !== listInfo.listTag) {
+ listStack.splice(t,listStack.length - t);
+ }
+ // Construct the list element or reuse the previous one at this level
+ if(listStack.length <= t) {
+ var listElement = {type: "element", tag: listInfo.listTag, children: [
+ {type: "element", tag: listInfo.itemTag, children: []}
+ ]};
+ // Link this list element into the last child item of the parent list item
+ if(t) {
+ var prevListItem = listStack[t-1].children[listStack[t-1].children.length-1];
+ prevListItem.children.push(listElement);
+ }
+ // Save this element in the stack
+ listStack[t] = listElement;
+ } else if(t === (match[0].length - 1)) {
+ listStack[t].children.push({type: "element", tag: listInfo.itemTag, children: []});
+ }
+ }
+ if(listStack.length > match[0].length) {
+ listStack.splice(match[0].length,listStack.length - match[0].length);
+ }
+ // Process the body of the list item into the last list item
+ var lastListChildren = listStack[listStack.length-1].children,
+ lastListItem = lastListChildren[lastListChildren.length-1],
+ classes = this.parser.parseClasses();
+ this.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});
+ var tree = this.parser.parseInlineRun(/(\r?\n)/mg);
+ lastListItem.children.push.apply(lastListItem.children,tree);
+ if(classes.length > 0) {
+ $tw.utils.addClassToParseTreeNode(lastListItem,classes.join(" "));
+ }
+ // Consume any whitespace following the list item
+ this.parser.skipWhitespace();
+ }
+ // Return the root element of the list
+ return [listStack[0]];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/macrocallblock.js
+type: application/javascript
+module-type: wikirule
+
+Wiki rule for block macro calls
+
+```
+<<name value value2>>
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "macrocallblock";
+exports.types = {block: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /<<([^>\s]+)(?:\s*)((?:[^>]|(?:>(?!>)))*?)>>(?:\r?\n|$)/mg;
+};
+
+/*
+Parse the most recent match
+*/
+exports.parse = function() {
+ // Get all the details of the match
+ var macroName = this.match[1],
+ paramString = this.match[2];
+ // Move past the macro call
+ this.parser.pos = this.matchRegExp.lastIndex;
+ var params = [],
+ reParam = /\s*(?:([A-Za-z0-9\-_]+)\s*:)?(?:\s*(?:"""([\s\S]*?)"""|"([^"]*)"|'([^']*)'|\[\[([^\]]*)\]\]|([^"'\s]+)))/mg,
+ paramMatch = reParam.exec(paramString);
+ while(paramMatch) {
+ // Process this parameter
+ var paramInfo = {
+ value: paramMatch[2] || paramMatch[3] || paramMatch[4] || paramMatch[5] || paramMatch[6]
+ };
+ if(paramMatch[1]) {
+ paramInfo.name = paramMatch[1];
+ }
+ params.push(paramInfo);
+ // Find the next match
+ paramMatch = reParam.exec(paramString);
+ }
+ return [{
+ type: "macrocall",
+ name: macroName,
+ params: params,
+ isBlock: true
+ }];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/macrocallinline.js
+type: application/javascript
+module-type: wikirule
+
+Wiki rule for macro calls
+
+```
+<<name value value2>>
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "macrocallinline";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /<<([^\s>]+)\s*([\s\S]*?)>>/mg;
+};
+
+/*
+Parse the most recent match
+*/
+exports.parse = function() {
+ // Get all the details of the match
+ var macroName = this.match[1],
+ paramString = this.match[2];
+ // Move past the macro call
+ this.parser.pos = this.matchRegExp.lastIndex;
+ var params = [],
+ reParam = /\s*(?:([A-Za-z0-9\-_]+)\s*:)?(?:\s*(?:"""([\s\S]*?)"""|"([^"]*)"|'([^']*)'|\[\[([^\]]*)\]\]|([^"'\s]+)))/mg,
+ paramMatch = reParam.exec(paramString);
+ while(paramMatch) {
+ // Process this parameter
+ var paramInfo = {
+ value: paramMatch[2] || paramMatch[3] || paramMatch[4] || paramMatch[5]|| paramMatch[6]
+ };
+ if(paramMatch[1]) {
+ paramInfo.name = paramMatch[1];
+ }
+ params.push(paramInfo);
+ // Find the next match
+ paramMatch = reParam.exec(paramString);
+ }
+ return [{
+ type: "macrocall",
+ name: macroName,
+ params: params
+ }];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/macrodef.js
+type: application/javascript
+module-type: wikirule
+
+Wiki pragma rule for macro definitions
+
+```
+\define name(param:defaultvalue,param2:defaultvalue)
+definition text, including $param$ markers
+\end
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "macrodef";
+exports.types = {pragma: true};
+
+/*
+Instantiate parse rule
+*/
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /^\\define\s+([^(\s]+)\(\s*([^)]*)\)(\s*\r?\n)?/mg;
+};
+
+/*
+Parse the most recent match
+*/
+exports.parse = function() {
+ // Move past the macro name and parameters
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Parse the parameters
+ var paramString = this.match[2],
+ params = [];
+ if(paramString !== "") {
+ var reParam = /\s*([A-Za-z0-9\-_]+)(?:\s*:\s*(?:"""([\s\S]*?)"""|"([^"]*)"|'([^']*)'|\[\[([^\]]*)\]\]|([^"'\s]+)))?/mg,
+ paramMatch = reParam.exec(paramString);
+ while(paramMatch) {
+ // Save the parameter details
+ var paramInfo = {name: paramMatch[1]},
+ defaultValue = paramMatch[2] || paramMatch[3] || paramMatch[4] || paramMatch[5] || paramMatch[6];
+ if(defaultValue) {
+ paramInfo["default"] = defaultValue;
+ }
+ params.push(paramInfo);
+ // Look for the next parameter
+ paramMatch = reParam.exec(paramString);
+ }
+ }
+ // Is this a multiline definition?
+ var reEnd;
+ if(this.match[3]) {
+ // If so, the end of the body is marked with \end
+ reEnd = /(\r?\n\\end[^\S\n\r]*(?:$|\r?\n))/mg;
+ } else {
+ // Otherwise, the end of the definition is marked by the end of the line
+ reEnd = /($|\r?\n)/mg;
+ // Move past any whitespace
+ this.parser.pos = $tw.utils.skipWhiteSpace(this.parser.source,this.parser.pos);
+ }
+ // Find the end of the definition
+ reEnd.lastIndex = this.parser.pos;
+ var text,
+ endMatch = reEnd.exec(this.parser.source);
+ if(endMatch) {
+ text = this.parser.source.substring(this.parser.pos,endMatch.index);
+ this.parser.pos = endMatch.index + endMatch[0].length;
+ } else {
+ // We didn't find the end of the definition, so we'll make it blank
+ text = "";
+ }
+ // Save the macro definition
+ return [{
+ type: "set",
+ attributes: {
+ name: {type: "string", value: this.match[1]},
+ value: {type: "string", value: text}
+ },
+ children: [],
+ params: params,
+ isMacroDefinition: true
+ }];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/prettyextlink.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for external links. For example:
+
+```
+[ext[https://tiddlywiki.com/fractalveg.jpg]]
+[ext[Tooltip|https://tiddlywiki.com/fractalveg.jpg]]
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "prettyextlink";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+};
+
+exports.findNextMatch = function(startPos) {
+ // Find the next tag
+ this.nextLink = this.findNextLink(this.parser.source,startPos);
+ return this.nextLink ? this.nextLink.start : undefined;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.nextLink.end;
+ return [this.nextLink];
+};
+
+/*
+Find the next link from the current position
+*/
+exports.findNextLink = function(source,pos) {
+ // A regexp for finding candidate links
+ var reLookahead = /(\[ext\[)/g;
+ // Find the next candidate
+ reLookahead.lastIndex = pos;
+ var match = reLookahead.exec(source);
+ while(match) {
+ // Try to parse the candidate as a link
+ var link = this.parseLink(source,match.index);
+ // Return success
+ if(link) {
+ return link;
+ }
+ // Look for the next match
+ reLookahead.lastIndex = match.index + 1;
+ match = reLookahead.exec(source);
+ }
+ // Failed
+ return null;
+};
+
+/*
+Look for an link at the specified position. Returns null if not found, otherwise returns {type: "element", tag: "a", attributes: [], isSelfClosing:, start:, end:,}
+*/
+exports.parseLink = function(source,pos) {
+ var token,
+ textNode = {
+ type: "text"
+ },
+ node = {
+ type: "element",
+ tag: "a",
+ start: pos,
+ attributes: {
+ "class": {type: "string", value: "tc-tiddlylink-external"},
+ },
+ children: [textNode]
+ };
+ // Skip whitespace
+ pos = $tw.utils.skipWhiteSpace(source,pos);
+ // Look for the `[ext[`
+ token = $tw.utils.parseTokenString(source,pos,"[ext[");
+ if(!token) {
+ return null;
+ }
+ pos = token.end;
+ // Look ahead for the terminating `]]`
+ var closePos = source.indexOf("]]",pos);
+ if(closePos === -1) {
+ return null;
+ }
+ // Look for a `|` separating the tooltip
+ var splitPos = source.indexOf("|",pos);
+ if(splitPos === -1 || splitPos > closePos) {
+ splitPos = null;
+ }
+ // Pull out the tooltip and URL
+ var tooltip, URL;
+ if(splitPos) {
+ URL = source.substring(splitPos + 1,closePos).trim();
+ textNode.text = source.substring(pos,splitPos).trim();
+ } else {
+ URL = source.substring(pos,closePos).trim();
+ textNode.text = URL;
+ }
+ node.attributes.href = {type: "string", value: URL};
+ node.attributes.target = {type: "string", value: "_blank"};
+ node.attributes.rel = {type: "string", value: "noopener noreferrer"};
+ // Update the end position
+ node.end = closePos + 2;
+ return node;
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/prettylink.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for pretty links. For example:
+
+```
+[[Introduction]]
+
+[[Link description|TiddlerTitle]]
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "prettylink";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /\[\[(.*?)(?:\|(.*?))?\]\]/mg;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Process the link
+ var text = this.match[1],
+ link = this.match[2] || text;
+ if($tw.utils.isLinkExternal(link)) {
+ return [{
+ type: "element",
+ tag: "a",
+ attributes: {
+ href: {type: "string", value: link},
+ "class": {type: "string", value: "tc-tiddlylink-external"},
+ target: {type: "string", value: "_blank"},
+ rel: {type: "string", value: "noopener noreferrer"}
+ },
+ children: [{
+ type: "text", text: text
+ }]
+ }];
+ } else {
+ return [{
+ type: "link",
+ attributes: {
+ to: {type: "string", value: link}
+ },
+ children: [{
+ type: "text", text: text
+ }]
+ }];
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/quoteblock.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text rule for quote blocks. For example:
+
+```
+ <<<.optionalClass(es) optional cited from
+ a quote
+ <<<
+
+ <<<.optionalClass(es)
+ a quote
+ <<< optional cited from
+```
+
+Quotes can be quoted by putting more <s
+
+```
+ <<<
+ Quote Level 1
+
+ <<<<
+ QuoteLevel 2
+ <<<<
+
+ <<<
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "quoteblock";
+exports.types = {block: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /(<<<+)/mg;
+};
+
+exports.parse = function() {
+ var classes = ["tc-quote"];
+ // Get all the details of the match
+ var reEndString = "^" + this.match[1] + "(?!<)";
+ // Move past the <s
+ this.parser.pos = this.matchRegExp.lastIndex;
+
+ // Parse any classes, whitespace and then the optional cite itself
+ classes.push.apply(classes, this.parser.parseClasses());
+ this.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});
+ var cite = this.parser.parseInlineRun(/(\r?\n)/mg);
+ // before handling the cite, parse the body of the quote
+ var tree= this.parser.parseBlocks(reEndString);
+ // If we got a cite, put it before the text
+ if(cite.length > 0) {
+ tree.unshift({
+ type: "element",
+ tag: "cite",
+ children: cite
+ });
+ }
+ // Parse any optional cite
+ this.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});
+ cite = this.parser.parseInlineRun(/(\r?\n)/mg);
+ // If we got a cite, push it
+ if(cite.length > 0) {
+ tree.push({
+ type: "element",
+ tag: "cite",
+ children: cite
+ });
+ }
+ // Return the blockquote element
+ return [{
+ type: "element",
+ tag: "blockquote",
+ attributes: {
+ class: { type: "string", value: classes.join(" ") },
+ },
+ children: tree
+ }];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/rules.js
+type: application/javascript
+module-type: wikirule
+
+Wiki pragma rule for rules specifications
+
+```
+\rules except ruleone ruletwo rulethree
+\rules only ruleone ruletwo rulethree
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "rules";
+exports.types = {pragma: true};
+
+/*
+Instantiate parse rule
+*/
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /^\\rules[^\S\n]/mg;
+};
+
+/*
+Parse the most recent match
+*/
+exports.parse = function() {
+ // Move past the pragma invocation
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Parse whitespace delimited tokens terminated by a line break
+ var reMatch = /[^\S\n]*(\S+)|(\r?\n)/mg,
+ tokens = [];
+ reMatch.lastIndex = this.parser.pos;
+ var match = reMatch.exec(this.parser.source);
+ while(match && match.index === this.parser.pos) {
+ this.parser.pos = reMatch.lastIndex;
+ // Exit if we've got the line break
+ if(match[2]) {
+ break;
+ }
+ // Process the token
+ if(match[1]) {
+ tokens.push(match[1]);
+ }
+ // Match the next token
+ match = reMatch.exec(this.parser.source);
+ }
+ // Process the tokens
+ if(tokens.length > 0) {
+ this.parser.amendRules(tokens[0],tokens.slice(1));
+ }
+ // No parse tree nodes to return
+ return [];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/styleblock.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text block rule for assigning styles and classes to paragraphs and other blocks. For example:
+
+```
+@@.myClass
+@@background-color:red;
+This paragraph will have the CSS class `myClass`.
+
+* The `<ul>` around this list will also have the class `myClass`
+* List item 2
+
+@@
+```
+
+Note that classes and styles can be mixed subject to the rule that styles must precede classes. For example
+
+```
+@@.myFirstClass.mySecondClass
+@@width:100px;.myThirdClass
+This is a paragraph
+@@
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "styleblock";
+exports.types = {block: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /@@((?:[^\.\r\n\s:]+:[^\r\n;]+;)+)?(?:\.([^\r\n\s]+))?\r?\n/mg;
+};
+
+exports.parse = function() {
+ var reEndString = "^@@(?:\\r?\\n)?";
+ var classes = [], styles = [];
+ do {
+ // Get the class and style
+ if(this.match[1]) {
+ styles.push(this.match[1]);
+ }
+ if(this.match[2]) {
+ classes.push(this.match[2].split(".").join(" "));
+ }
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Look for another line of classes and styles
+ this.match = this.matchRegExp.exec(this.parser.source);
+ } while(this.match && this.match.index === this.parser.pos);
+ // Parse the body
+ var tree = this.parser.parseBlocks(reEndString);
+ for(var t=0; t<tree.length; t++) {
+ if(classes.length > 0) {
+ $tw.utils.addClassToParseTreeNode(tree[t],classes.join(" "));
+ }
+ if(styles.length > 0) {
+ $tw.utils.addAttributeToParseTreeNode(tree[t],"style",styles.join(""));
+ }
+ }
+ return tree;
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/styleinline.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for assigning styles and classes to inline runs. For example:
+
+```
+@@.myClass This is some text with a class@@
+@@background-color:red;This is some text with a background colour@@
+@@width:100px;.myClass This is some text with a class and a width@@
+```
+
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "styleinline";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /@@((?:[^\.\r\n\s:]+:[^\r\n;]+;)+)?(\.(?:[^\r\n\s]+)\s+)?/mg;
+};
+
+exports.parse = function() {
+ var reEnd = /@@/g;
+ // Get the styles and class
+ var stylesString = this.match[1],
+ classString = this.match[2] ? this.match[2].split(".").join(" ") : undefined;
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Parse the run up to the terminator
+ var tree = this.parser.parseInlineRun(reEnd,{eatTerminator: true});
+ // Return the classed span
+ var node = {
+ type: "element",
+ tag: "span",
+ attributes: {
+ "class": {type: "string", value: "tc-inline-style"}
+ },
+ children: tree
+ };
+ if(classString) {
+ $tw.utils.addClassToParseTreeNode(node,classString);
+ }
+ if(stylesString) {
+ $tw.utils.addAttributeToParseTreeNode(node,"style",stylesString);
+ }
+ return [node];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/syslink.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for system tiddler links.
+Can be suppressed preceding them with `~`.
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "syslink";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = new RegExp(
+ "~?\\$:\\/[" +
+ $tw.config.textPrimitives.anyLetter.substr(1,$tw.config.textPrimitives.anyLetter.length - 2) +
+ "\/._-]+",
+ "mg"
+ );
+};
+
+exports.parse = function() {
+ var match = this.match[0];
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Create the link unless it is suppressed
+ if(match.substr(0,1) === "~") {
+ return [{type: "text", text: match.substr(1)}];
+ } else {
+ return [{
+ type: "link",
+ attributes: {
+ to: {type: "string", value: match}
+ },
+ children: [{
+ type: "text",
+ text: match
+ }]
+ }];
+ }
+};
+
+})();
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/table.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text block rule for tables.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "table";
+exports.types = {block: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /^\|(?:[^\n]*)\|(?:[fhck]?)\r?(?:\n|$)/mg;
+};
+
+var processRow = function(prevColumns) {
+ var cellRegExp = /(?:\|([^\n\|]*)\|)|(\|[fhck]?\r?(?:\n|$))/mg,
+ cellTermRegExp = /((?:\x20*)\|)/mg,
+ tree = [],
+ col = 0,
+ colSpanCount = 1,
+ prevCell,
+ vAlign;
+ // Match a single cell
+ cellRegExp.lastIndex = this.parser.pos;
+ var cellMatch = cellRegExp.exec(this.parser.source);
+ while(cellMatch && cellMatch.index === this.parser.pos) {
+ if(cellMatch[1] === "~") {
+ // Rowspan
+ var last = prevColumns[col];
+ if(last) {
+ last.rowSpanCount++;
+ $tw.utils.addAttributeToParseTreeNode(last.element,"rowspan",last.rowSpanCount);
+ vAlign = $tw.utils.getAttributeValueFromParseTreeNode(last.element,"valign","center");
+ $tw.utils.addAttributeToParseTreeNode(last.element,"valign",vAlign);
+ if(colSpanCount > 1) {
+ $tw.utils.addAttributeToParseTreeNode(last.element,"colspan",colSpanCount);
+ colSpanCount = 1;
+ }
+ }
+ // Move to just before the `|` terminating the cell
+ this.parser.pos = cellRegExp.lastIndex - 1;
+ } else if(cellMatch[1] === ">") {
+ // Colspan
+ colSpanCount++;
+ // Move to just before the `|` terminating the cell
+ this.parser.pos = cellRegExp.lastIndex - 1;
+ } else if(cellMatch[1] === "<" && prevCell) {
+ colSpanCount = 1 + $tw.utils.getAttributeValueFromParseTreeNode(prevCell,"colspan",1);
+ $tw.utils.addAttributeToParseTreeNode(prevCell,"colspan",colSpanCount);
+ colSpanCount = 1;
+ // Move to just before the `|` terminating the cell
+ this.parser.pos = cellRegExp.lastIndex - 1;
+ } else if(cellMatch[2]) {
+ // End of row
+ if(prevCell && colSpanCount > 1) {
+ if(prevCell.attributes && prevCell.attributes && prevCell.attributes.colspan) {
+ colSpanCount += prevCell.attributes.colspan.value;
+ } else {
+ colSpanCount -= 1;
+ }
+ $tw.utils.addAttributeToParseTreeNode(prevCell,"colspan",colSpanCount);
+ }
+ this.parser.pos = cellRegExp.lastIndex - 1;
+ break;
+ } else {
+ // For ordinary cells, step beyond the opening `|`
+ this.parser.pos++;
+ // Look for a space at the start of the cell
+ var spaceLeft = false;
+ vAlign = null;
+ if(this.parser.source.substr(this.parser.pos).search(/^\^([^\^]|\^\^)/) === 0) {
+ vAlign = "top";
+ } else if(this.parser.source.substr(this.parser.pos).search(/^,([^,]|,,)/) === 0) {
+ vAlign = "bottom";
+ }
+ if(vAlign) {
+ this.parser.pos++;
+ }
+ var chr = this.parser.source.substr(this.parser.pos,1);
+ while(chr === " ") {
+ spaceLeft = true;
+ this.parser.pos++;
+ chr = this.parser.source.substr(this.parser.pos,1);
+ }
+ // Check whether this is a heading cell
+ var cell;
+ if(chr === "!") {
+ this.parser.pos++;
+ cell = {type: "element", tag: "th", children: []};
+ } else {
+ cell = {type: "element", tag: "td", children: []};
+ }
+ tree.push(cell);
+ // Record information about this cell
+ prevCell = cell;
+ prevColumns[col] = {rowSpanCount:1,element:cell};
+ // Check for a colspan
+ if(colSpanCount > 1) {
+ $tw.utils.addAttributeToParseTreeNode(cell,"colspan",colSpanCount);
+ colSpanCount = 1;
+ }
+ // Parse the cell
+ cell.children = this.parser.parseInlineRun(cellTermRegExp,{eatTerminator: true});
+ // Set the alignment for the cell
+ if(vAlign) {
+ $tw.utils.addAttributeToParseTreeNode(cell,"valign",vAlign);
+ }
+ if(this.parser.source.substr(this.parser.pos - 2,1) === " ") { // spaceRight
+ $tw.utils.addAttributeToParseTreeNode(cell,"align",spaceLeft ? "center" : "left");
+ } else if(spaceLeft) {
+ $tw.utils.addAttributeToParseTreeNode(cell,"align","right");
+ }
+ // Move back to the closing `|`
+ this.parser.pos--;
+ }
+ col++;
+ cellRegExp.lastIndex = this.parser.pos;
+ cellMatch = cellRegExp.exec(this.parser.source);
+ }
+ return tree;
+};
+
+exports.parse = function() {
+ var rowContainerTypes = {"c":"caption", "h":"thead", "":"tbody", "f":"tfoot"},
+ table = {type: "element", tag: "table", children: []},
+ rowRegExp = /^\|([^\n]*)\|([fhck]?)\r?(?:\n|$)/mg,
+ rowTermRegExp = /(\|(?:[fhck]?)\r?(?:\n|$))/mg,
+ prevColumns = [],
+ currRowType,
+ rowContainer,
+ rowCount = 0;
+ // Match the row
+ rowRegExp.lastIndex = this.parser.pos;
+ var rowMatch = rowRegExp.exec(this.parser.source);
+ while(rowMatch && rowMatch.index === this.parser.pos) {
+ var rowType = rowMatch[2];
+ // Check if it is a class assignment
+ if(rowType === "k") {
+ $tw.utils.addClassToParseTreeNode(table,rowMatch[1]);
+ this.parser.pos = rowMatch.index + rowMatch[0].length;
+ } else {
+ // Otherwise, create a new row if this one is of a different type
+ if(rowType !== currRowType) {
+ rowContainer = {type: "element", tag: rowContainerTypes[rowType], children: []};
+ table.children.push(rowContainer);
+ currRowType = rowType;
+ }
+ // Is this a caption row?
+ if(currRowType === "c") {
+ // If so, move past the opening `|` of the row
+ this.parser.pos++;
+ // Move the caption to the first row if it isn't already
+ if(table.children.length !== 1) {
+ table.children.pop(); // Take rowContainer out of the children array
+ table.children.splice(0,0,rowContainer); // Insert it at the bottom
+ }
+ // Set the alignment - TODO: figure out why TW did this
+// rowContainer.attributes.align = rowCount === 0 ? "top" : "bottom";
+ // Parse the caption
+ rowContainer.children = this.parser.parseInlineRun(rowTermRegExp,{eatTerminator: true});
+ } else {
+ // Create the row
+ var theRow = {type: "element", tag: "tr", children: []};
+ $tw.utils.addClassToParseTreeNode(theRow,rowCount%2 ? "oddRow" : "evenRow");
+ rowContainer.children.push(theRow);
+ // Process the row
+ theRow.children = processRow.call(this,prevColumns);
+ this.parser.pos = rowMatch.index + rowMatch[0].length;
+ // Increment the row count
+ rowCount++;
+ }
+ }
+ rowMatch = rowRegExp.exec(this.parser.source);
+ }
+ return [table];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/transcludeblock.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text rule for block-level transclusion. For example:
+
+```
+{{MyTiddler}}
+{{MyTiddler||TemplateTitle}}
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "transcludeblock";
+exports.types = {block: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /\{\{([^\{\}\|]*)(?:\|\|([^\|\{\}]+))?\}\}(?:\r?\n|$)/mg;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Get the match details
+ var template = $tw.utils.trim(this.match[2]),
+ textRef = $tw.utils.trim(this.match[1]);
+ // Prepare the transclude widget
+ var transcludeNode = {
+ type: "transclude",
+ attributes: {},
+ isBlock: true
+ };
+ // Prepare the tiddler widget
+ var tr, targetTitle, targetField, targetIndex, tiddlerNode;
+ if(textRef) {
+ tr = $tw.utils.parseTextReference(textRef);
+ targetTitle = tr.title;
+ targetField = tr.field;
+ targetIndex = tr.index;
+ tiddlerNode = {
+ type: "tiddler",
+ attributes: {
+ tiddler: {type: "string", value: targetTitle}
+ },
+ isBlock: true,
+ children: [transcludeNode]
+ };
+ }
+ if(template) {
+ transcludeNode.attributes.tiddler = {type: "string", value: template};
+ if(textRef) {
+ return [tiddlerNode];
+ } else {
+ return [transcludeNode];
+ }
+ } else {
+ if(textRef) {
+ transcludeNode.attributes.tiddler = {type: "string", value: targetTitle};
+ if(targetField) {
+ transcludeNode.attributes.field = {type: "string", value: targetField};
+ }
+ if(targetIndex) {
+ transcludeNode.attributes.index = {type: "string", value: targetIndex};
+ }
+ return [tiddlerNode];
+ } else {
+ return [transcludeNode];
+ }
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/transcludeinline.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text rule for inline-level transclusion. For example:
+
+```
+{{MyTiddler}}
+{{MyTiddler||TemplateTitle}}
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "transcludeinline";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /\{\{([^\{\}\|]*)(?:\|\|([^\|\{\}]+))?\}\}/mg;
+};
+
+exports.parse = function() {
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Get the match details
+ var template = $tw.utils.trim(this.match[2]),
+ textRef = $tw.utils.trim(this.match[1]);
+ // Prepare the transclude widget
+ var transcludeNode = {
+ type: "transclude",
+ attributes: {}
+ };
+ // Prepare the tiddler widget
+ var tr, targetTitle, targetField, targetIndex, tiddlerNode;
+ if(textRef) {
+ tr = $tw.utils.parseTextReference(textRef);
+ targetTitle = tr.title;
+ targetField = tr.field;
+ targetIndex = tr.index;
+ tiddlerNode = {
+ type: "tiddler",
+ attributes: {
+ tiddler: {type: "string", value: targetTitle}
+ },
+ children: [transcludeNode]
+ };
+ }
+ if(template) {
+ transcludeNode.attributes.tiddler = {type: "string", value: template};
+ if(textRef) {
+ return [tiddlerNode];
+ } else {
+ return [transcludeNode];
+ }
+ } else {
+ if(textRef) {
+ transcludeNode.attributes.tiddler = {type: "string", value: targetTitle};
+ if(targetField) {
+ transcludeNode.attributes.field = {type: "string", value: targetField};
+ }
+ if(targetIndex) {
+ transcludeNode.attributes.index = {type: "string", value: targetIndex};
+ }
+ return [tiddlerNode];
+ } else {
+ return [transcludeNode];
+ }
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/typedblock.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text rule for typed blocks. For example:
+
+```
+$$$.js
+This will be rendered as JavaScript
+$$$
+
+$$$.svg
+<svg xmlns="http://www.w3.org/2000/svg" width="150" height="100">
+ <circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red" />
+</svg>
+$$$
+
+$$$text/vnd.tiddlywiki>text/html
+This will be rendered as an //HTML representation// of WikiText
+$$$
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var widget = require("$:/core/modules/widgets/widget.js");
+
+exports.name = "typedblock";
+exports.types = {block: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /\$\$\$([^ >\r\n]*)(?: *> *([^ \r\n]+))?\r?\n/mg;
+};
+
+exports.parse = function() {
+ var reEnd = /\r?\n\$\$\$\r?(?:\n|$)/mg;
+ // Save the type
+ var parseType = this.match[1],
+ renderType = this.match[2];
+ // Move past the match
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Look for the end of the block
+ reEnd.lastIndex = this.parser.pos;
+ var match = reEnd.exec(this.parser.source),
+ text;
+ // Process the block
+ if(match) {
+ text = this.parser.source.substring(this.parser.pos,match.index);
+ this.parser.pos = match.index + match[0].length;
+ } else {
+ text = this.parser.source.substr(this.parser.pos);
+ this.parser.pos = this.parser.sourceLength;
+ }
+ // Parse the block according to the specified type
+ var parser = this.parser.wiki.parseText(parseType,text,{defaultType: "text/plain"});
+ // If there's no render type, just return the parse tree
+ if(!renderType) {
+ return parser.tree;
+ } else {
+ // Otherwise, render to the rendertype and return in a <PRE> tag
+ var widgetNode = this.parser.wiki.makeWidget(parser),
+ container = $tw.fakeDocument.createElement("div");
+ widgetNode.render(container,null);
+ text = renderType === "text/html" ? container.innerHTML : container.textContent;
+ return [{
+ type: "element",
+ tag: "pre",
+ children: [{
+ type: "text",
+ text: text
+ }]
+ }];
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/whitespace.js
+type: application/javascript
+module-type: wikirule
+
+Wiki pragma rule for whitespace specifications
+
+```
+\whitespace trim
+\whitespace notrim
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "whitespace";
+exports.types = {pragma: true};
+
+/*
+Instantiate parse rule
+*/
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = /^\\whitespace[^\S\n]/mg;
+};
+
+/*
+Parse the most recent match
+*/
+exports.parse = function() {
+ var self = this;
+ // Move past the pragma invocation
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // Parse whitespace delimited tokens terminated by a line break
+ var reMatch = /[^\S\n]*(\S+)|(\r?\n)/mg,
+ tokens = [];
+ reMatch.lastIndex = this.parser.pos;
+ var match = reMatch.exec(this.parser.source);
+ while(match && match.index === this.parser.pos) {
+ this.parser.pos = reMatch.lastIndex;
+ // Exit if we've got the line break
+ if(match[2]) {
+ break;
+ }
+ // Process the token
+ if(match[1]) {
+ tokens.push(match[1]);
+ }
+ // Match the next token
+ match = reMatch.exec(this.parser.source);
+ }
+ // Process the tokens
+ $tw.utils.each(tokens,function(token) {
+ switch(token) {
+ case "trim":
+ self.parser.configTrimWhiteSpace = true;
+ break;
+ case "notrim":
+ self.parser.configTrimWhiteSpace = false;
+ break;
+ }
+ });
+ // No parse tree nodes to return
+ return [];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/wikilink.js
+type: application/javascript
+module-type: wikirule
+
+Wiki text inline rule for wiki links. For example:
+
+```
+AWikiLink
+AnotherLink
+~SuppressedLink
+```
+
+Precede a camel case word with `~` to prevent it from being recognised as a link.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.name = "wikilink";
+exports.types = {inline: true};
+
+exports.init = function(parser) {
+ this.parser = parser;
+ // Regexp to match
+ this.matchRegExp = new RegExp($tw.config.textPrimitives.unWikiLink + "?" + $tw.config.textPrimitives.wikiLink,"mg");
+};
+
+/*
+Parse the most recent match
+*/
+exports.parse = function() {
+ // Get the details of the match
+ var linkText = this.match[0];
+ // Move past the macro call
+ this.parser.pos = this.matchRegExp.lastIndex;
+ // If the link starts with the unwikilink character then just output it as plain text
+ if(linkText.substr(0,1) === $tw.config.textPrimitives.unWikiLink) {
+ return [{type: "text", text: linkText.substr(1)}];
+ }
+ // If the link has been preceded with a blocked letter then don't treat it as a link
+ if(this.match.index > 0) {
+ var preRegExp = new RegExp($tw.config.textPrimitives.blockPrefixLetters,"mg");
+ preRegExp.lastIndex = this.match.index-1;
+ var preMatch = preRegExp.exec(this.parser.source);
+ if(preMatch && preMatch.index === this.match.index-1) {
+ return [{type: "text", text: linkText}];
+ }
+ }
+ return [{
+ type: "link",
+ attributes: {
+ to: {type: "string", value: linkText}
+ },
+ children: [{
+ type: "text",
+ text: linkText
+ }]
+ }];
+};
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/rules/wikirulebase.js
+type: application/javascript
+module-type: global
+
+Base class for wiki parser rules
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+This constructor is always overridden with a blank constructor, and so shouldn't be used
+*/
+var WikiRuleBase = function() {
+};
+
+/*
+To be overridden by individual rules
+*/
+WikiRuleBase.prototype.init = function(parser) {
+ this.parser = parser;
+};
+
+/*
+Default implementation of findNextMatch uses RegExp matching
+*/
+WikiRuleBase.prototype.findNextMatch = function(startPos) {
+ this.matchRegExp.lastIndex = startPos;
+ this.match = this.matchRegExp.exec(this.parser.source);
+ return this.match ? this.match.index : undefined;
+};
+
+exports.WikiRuleBase = WikiRuleBase;
+
+})();
+
+/*\
+title: $:/core/modules/parsers/wikiparser/wikiparser.js
+type: application/javascript
+module-type: parser
+
+The wiki text parser processes blocks of source text into a parse tree.
+
+The parse tree is made up of nested arrays of these JavaScript objects:
+
+ {type: "element", tag: <string>, attributes: {}, children: []} - an HTML element
+ {type: "text", text: <string>} - a text node
+ {type: "entity", value: <string>} - an entity
+ {type: "raw", html: <string>} - raw HTML
+
+Attributes are stored as hashmaps of the following objects:
+
+ {type: "string", value: <string>} - literal string
+ {type: "indirect", textReference: <textReference>} - indirect through a text reference
+ {type: "macro", macro: <TBD>} - indirect through a macro invocation
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var WikiParser = function(type,text,options) {
+ this.wiki = options.wiki;
+ var self = this;
+ // Check for an externally linked tiddler
+ if($tw.browser && (text || "") === "" && options._canonical_uri) {
+ this.loadRemoteTiddler(options._canonical_uri);
+ text = $tw.language.getRawString("LazyLoadingWarning");
+ }
+ // Initialise the classes if we don't have them already
+ if(!this.pragmaRuleClasses) {
+ WikiParser.prototype.pragmaRuleClasses = $tw.modules.createClassesFromModules("wikirule","pragma",$tw.WikiRuleBase);
+ this.setupRules(WikiParser.prototype.pragmaRuleClasses,"$:/config/WikiParserRules/Pragmas/");
+ }
+ if(!this.blockRuleClasses) {
+ WikiParser.prototype.blockRuleClasses = $tw.modules.createClassesFromModules("wikirule","block",$tw.WikiRuleBase);
+ this.setupRules(WikiParser.prototype.blockRuleClasses,"$:/config/WikiParserRules/Block/");
+ }
+ if(!this.inlineRuleClasses) {
+ WikiParser.prototype.inlineRuleClasses = $tw.modules.createClassesFromModules("wikirule","inline",$tw.WikiRuleBase);
+ this.setupRules(WikiParser.prototype.inlineRuleClasses,"$:/config/WikiParserRules/Inline/");
+ }
+ // Save the parse text
+ this.type = type || "text/vnd.tiddlywiki";
+ this.source = text || "";
+ this.sourceLength = this.source.length;
+ // Flag for ignoring whitespace
+ this.configTrimWhiteSpace = false;
+ // Set current parse position
+ this.pos = 0;
+ // Instantiate the pragma parse rules
+ this.pragmaRules = this.instantiateRules(this.pragmaRuleClasses,"pragma",0);
+ // Instantiate the parser block and inline rules
+ this.blockRules = this.instantiateRules(this.blockRuleClasses,"block",0);
+ this.inlineRules = this.instantiateRules(this.inlineRuleClasses,"inline",0);
+ // Parse any pragmas
+ this.tree = [];
+ var topBranch = this.parsePragmas();
+ // Parse the text into inline runs or blocks
+ if(options.parseAsInline) {
+ topBranch.push.apply(topBranch,this.parseInlineRun());
+ } else {
+ topBranch.push.apply(topBranch,this.parseBlocks());
+ }
+ // Return the parse tree
+};
+
+/*
+*/
+WikiParser.prototype.loadRemoteTiddler = function(url) {
+ var self = this;
+ $tw.utils.httpRequest({
+ url: url,
+ type: "GET",
+ callback: function(err,data) {
+ if(!err) {
+ var tiddlers = self.wiki.deserializeTiddlers(".tid",data,self.wiki.getCreationFields());
+ $tw.utils.each(tiddlers,function(tiddler) {
+ tiddler["_canonical_uri"] = url;
+ });
+ if(tiddlers) {
+ self.wiki.addTiddlers(tiddlers);
+ }
+ }
+ }
+ });
+};
+
+/*
+*/
+WikiParser.prototype.setupRules = function(proto,configPrefix) {
+ var self = this;
+ if(!$tw.safemode) {
+ $tw.utils.each(proto,function(object,name) {
+ if(self.wiki.getTiddlerText(configPrefix + name,"enable") !== "enable") {
+ delete proto[name];
+ }
+ });
+ }
+};
+
+/*
+Instantiate an array of parse rules
+*/
+WikiParser.prototype.instantiateRules = function(classes,type,startPos) {
+ var rulesInfo = [],
+ self = this;
+ $tw.utils.each(classes,function(RuleClass) {
+ // Instantiate the rule
+ var rule = new RuleClass(self);
+ rule.is = {};
+ rule.is[type] = true;
+ rule.init(self);
+ var matchIndex = rule.findNextMatch(startPos);
+ if(matchIndex !== undefined) {
+ rulesInfo.push({
+ rule: rule,
+ matchIndex: matchIndex
+ });
+ }
+ });
+ return rulesInfo;
+};
+
+/*
+Skip any whitespace at the current position. Options are:
+ treatNewlinesAsNonWhitespace: true if newlines are NOT to be treated as whitespace
+*/
+WikiParser.prototype.skipWhitespace = function(options) {
+ options = options || {};
+ var whitespaceRegExp = options.treatNewlinesAsNonWhitespace ? /([^\S\n]+)/mg : /(\s+)/mg;
+ whitespaceRegExp.lastIndex = this.pos;
+ var whitespaceMatch = whitespaceRegExp.exec(this.source);
+ if(whitespaceMatch && whitespaceMatch.index === this.pos) {
+ this.pos = whitespaceRegExp.lastIndex;
+ }
+};
+
+/*
+Get the next match out of an array of parse rule instances
+*/
+WikiParser.prototype.findNextMatch = function(rules,startPos) {
+ // Find the best matching rule by finding the closest match position
+ var matchingRule,
+ matchingRulePos = this.sourceLength;
+ // Step through each rule
+ for(var t=0; t<rules.length; t++) {
+ var ruleInfo = rules[t];
+ // Ask the rule to get the next match if we've moved past the current one
+ if(ruleInfo.matchIndex !== undefined && ruleInfo.matchIndex < startPos) {
+ ruleInfo.matchIndex = ruleInfo.rule.findNextMatch(startPos);
+ }
+ // Adopt this match if it's closer than the current best match
+ if(ruleInfo.matchIndex !== undefined && ruleInfo.matchIndex <= matchingRulePos) {
+ matchingRule = ruleInfo;
+ matchingRulePos = ruleInfo.matchIndex;
+ }
+ }
+ return matchingRule;
+};
+
+/*
+Parse any pragmas at the beginning of a block of parse text
+*/
+WikiParser.prototype.parsePragmas = function() {
+ var currentTreeBranch = this.tree;
+ while(true) {
+ // Skip whitespace
+ this.skipWhitespace();
+ // Check for the end of the text
+ if(this.pos >= this.sourceLength) {
+ break;
+ }
+ // Check if we've arrived at a pragma rule match
+ var nextMatch = this.findNextMatch(this.pragmaRules,this.pos);
+ // If not, just exit
+ if(!nextMatch || nextMatch.matchIndex !== this.pos) {
+ break;
+ }
+ // Process the pragma rule
+ var subTree = nextMatch.rule.parse();
+ if(subTree.length > 0) {
+ // Quick hack; we only cope with a single parse tree node being returned, which is true at the moment
+ currentTreeBranch.push.apply(currentTreeBranch,subTree);
+ subTree[0].children = [];
+ currentTreeBranch = subTree[0].children;
+ }
+ }
+ return currentTreeBranch;
+};
+
+/*
+Parse a block from the current position
+ terminatorRegExpString: optional regular expression string that identifies the end of plain paragraphs. Must not include capturing parenthesis
+*/
+WikiParser.prototype.parseBlock = function(terminatorRegExpString) {
+ var terminatorRegExp = terminatorRegExpString ? new RegExp("(" + terminatorRegExpString + "|\\r?\\n\\r?\\n)","mg") : /(\r?\n\r?\n)/mg;
+ this.skipWhitespace();
+ if(this.pos >= this.sourceLength) {
+ return [];
+ }
+ // Look for a block rule that applies at the current position
+ var nextMatch = this.findNextMatch(this.blockRules,this.pos);
+ if(nextMatch && nextMatch.matchIndex === this.pos) {
+ return nextMatch.rule.parse();
+ }
+ // Treat it as a paragraph if we didn't find a block rule
+ return [{type: "element", tag: "p", children: this.parseInlineRun(terminatorRegExp)}];
+};
+
+/*
+Parse a series of blocks of text until a terminating regexp is encountered or the end of the text
+ terminatorRegExpString: terminating regular expression
+*/
+WikiParser.prototype.parseBlocks = function(terminatorRegExpString) {
+ if(terminatorRegExpString) {
+ return this.parseBlocksTerminated(terminatorRegExpString);
+ } else {
+ return this.parseBlocksUnterminated();
+ }
+};
+
+/*
+Parse a block from the current position to the end of the text
+*/
+WikiParser.prototype.parseBlocksUnterminated = function() {
+ var tree = [];
+ while(this.pos < this.sourceLength) {
+ tree.push.apply(tree,this.parseBlock());
+ }
+ return tree;
+};
+
+/*
+Parse blocks of text until a terminating regexp is encountered
+*/
+WikiParser.prototype.parseBlocksTerminated = function(terminatorRegExpString) {
+ var terminatorRegExp = new RegExp("(" + terminatorRegExpString + ")","mg"),
+ tree = [];
+ // Skip any whitespace
+ this.skipWhitespace();
+ // Check if we've got the end marker
+ terminatorRegExp.lastIndex = this.pos;
+ var match = terminatorRegExp.exec(this.source);
+ // Parse the text into blocks
+ while(this.pos < this.sourceLength && !(match && match.index === this.pos)) {
+ var blocks = this.parseBlock(terminatorRegExpString);
+ tree.push.apply(tree,blocks);
+ // Skip any whitespace
+ this.skipWhitespace();
+ // Check if we've got the end marker
+ terminatorRegExp.lastIndex = this.pos;
+ match = terminatorRegExp.exec(this.source);
+ }
+ if(match && match.index === this.pos) {
+ this.pos = match.index + match[0].length;
+ }
+ return tree;
+};
+
+/*
+Parse a run of text at the current position
+ terminatorRegExp: a regexp at which to stop the run
+ options: see below
+Options available:
+ eatTerminator: move the parse position past any encountered terminator (default false)
+*/
+WikiParser.prototype.parseInlineRun = function(terminatorRegExp,options) {
+ if(terminatorRegExp) {
+ return this.parseInlineRunTerminated(terminatorRegExp,options);
+ } else {
+ return this.parseInlineRunUnterminated(options);
+ }
+};
+
+WikiParser.prototype.parseInlineRunUnterminated = function(options) {
+ var tree = [];
+ // Find the next occurrence of an inline rule
+ var nextMatch = this.findNextMatch(this.inlineRules,this.pos);
+ // Loop around the matches until we've reached the end of the text
+ while(this.pos < this.sourceLength && nextMatch) {
+ // Process the text preceding the run rule
+ if(nextMatch.matchIndex > this.pos) {
+ this.pushTextWidget(tree,this.source.substring(this.pos,nextMatch.matchIndex));
+ this.pos = nextMatch.matchIndex;
+ }
+ // Process the run rule
+ tree.push.apply(tree,nextMatch.rule.parse());
+ // Look for the next run rule
+ nextMatch = this.findNextMatch(this.inlineRules,this.pos);
+ }
+ // Process the remaining text
+ if(this.pos < this.sourceLength) {
+ this.pushTextWidget(tree,this.source.substr(this.pos));
+ }
+ this.pos = this.sourceLength;
+ return tree;
+};
+
+WikiParser.prototype.parseInlineRunTerminated = function(terminatorRegExp,options) {
+ options = options || {};
+ var tree = [];
+ // Find the next occurrence of the terminator
+ terminatorRegExp.lastIndex = this.pos;
+ var terminatorMatch = terminatorRegExp.exec(this.source);
+ // Find the next occurrence of a inlinerule
+ var inlineRuleMatch = this.findNextMatch(this.inlineRules,this.pos);
+ // Loop around until we've reached the end of the text
+ while(this.pos < this.sourceLength && (terminatorMatch || inlineRuleMatch)) {
+ // Return if we've found the terminator, and it precedes any inline rule match
+ if(terminatorMatch) {
+ if(!inlineRuleMatch || inlineRuleMatch.matchIndex >= terminatorMatch.index) {
+ if(terminatorMatch.index > this.pos) {
+ this.pushTextWidget(tree,this.source.substring(this.pos,terminatorMatch.index));
+ }
+ this.pos = terminatorMatch.index;
+ if(options.eatTerminator) {
+ this.pos += terminatorMatch[0].length;
+ }
+ return tree;
+ }
+ }
+ // Process any inline rule, along with the text preceding it
+ if(inlineRuleMatch) {
+ // Preceding text
+ if(inlineRuleMatch.matchIndex > this.pos) {
+ this.pushTextWidget(tree,this.source.substring(this.pos,inlineRuleMatch.matchIndex));
+ this.pos = inlineRuleMatch.matchIndex;
+ }
+ // Process the inline rule
+ tree.push.apply(tree,inlineRuleMatch.rule.parse());
+ // Look for the next inline rule
+ inlineRuleMatch = this.findNextMatch(this.inlineRules,this.pos);
+ // Look for the next terminator match
+ terminatorRegExp.lastIndex = this.pos;
+ terminatorMatch = terminatorRegExp.exec(this.source);
+ }
+ }
+ // Process the remaining text
+ if(this.pos < this.sourceLength) {
+ this.pushTextWidget(tree,this.source.substr(this.pos));
+ }
+ this.pos = this.sourceLength;
+ return tree;
+};
+
+/*
+Push a text widget onto an array, respecting the configTrimWhiteSpace setting
+*/
+WikiParser.prototype.pushTextWidget = function(array,text) {
+ if(this.configTrimWhiteSpace) {
+ text = $tw.utils.trim(text);
+ }
+ if(text) {
+ array.push({type: "text", text: text});
+ }
+};
+
+/*
+Parse zero or more class specifiers `.classname`
+*/
+WikiParser.prototype.parseClasses = function() {
+ var classRegExp = /\.([^\s\.]+)/mg,
+ classNames = [];
+ classRegExp.lastIndex = this.pos;
+ var match = classRegExp.exec(this.source);
+ while(match && match.index === this.pos) {
+ this.pos = match.index + match[0].length;
+ classNames.push(match[1]);
+ match = classRegExp.exec(this.source);
+ }
+ return classNames;
+};
+
+/*
+Amend the rules used by this instance of the parser
+ type: `only` keeps just the named rules, `except` keeps all but the named rules
+ names: array of rule names
+*/
+WikiParser.prototype.amendRules = function(type,names) {
+ names = names || [];
+ // Define the filter function
+ var keepFilter;
+ if(type === "only") {
+ keepFilter = function(name) {
+ return names.indexOf(name) !== -1;
+ };
+ } else if(type === "except") {
+ keepFilter = function(name) {
+ return names.indexOf(name) === -1;
+ };
+ } else {
+ return;
+ }
+ // Define a function to process each of our rule arrays
+ var processRuleArray = function(ruleArray) {
+ for(var t=ruleArray.length-1; t>=0; t--) {
+ if(!keepFilter(ruleArray[t].rule.name)) {
+ ruleArray.splice(t,1);
+ }
+ }
+ };
+ // Process each rule array
+ processRuleArray(this.pragmaRules);
+ processRuleArray(this.blockRules);
+ processRuleArray(this.inlineRules);
+};
+
+exports["text/vnd.tiddlywiki"] = WikiParser;
+
+})();
+
+
+/*\
+title: $:/core/modules/pluginswitcher.js
+type: application/javascript
+module-type: global
+
+Manages switching plugins for themes and languages.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+options:
+wiki: wiki store to be used
+pluginType: type of plugin to be switched
+controllerTitle: title of tiddler used to control switching of this resource
+defaultPlugins: array of default plugins to be used if nominated plugin isn't found
+onSwitch: callback when plugin is switched (single parameter is array of plugin titles)
+*/
+function PluginSwitcher(options) {
+ this.wiki = options.wiki;
+ this.pluginType = options.pluginType;
+ this.controllerTitle = options.controllerTitle;
+ this.defaultPlugins = options.defaultPlugins || [];
+ this.onSwitch = options.onSwitch;
+ // Switch to the current plugin
+ this.switchPlugins();
+ // Listen for changes to the selected plugin
+ var self = this;
+ this.wiki.addEventListener("change",function(changes) {
+ if($tw.utils.hop(changes,self.controllerTitle)) {
+ self.switchPlugins();
+ }
+ });
+}
+
+PluginSwitcher.prototype.switchPlugins = function() {
+ // Get the name of the current theme
+ var selectedPluginTitle = this.wiki.getTiddlerText(this.controllerTitle);
+ // If it doesn't exist, then fallback to one of the default themes
+ var index = 0;
+ while(!this.wiki.getTiddler(selectedPluginTitle) && index < this.defaultPlugins.length) {
+ selectedPluginTitle = this.defaultPlugins[index++];
+ }
+ // Accumulate the titles of the plugins that we need to load
+ var plugins = [],
+ self = this,
+ accumulatePlugin = function(title) {
+ var tiddler = self.wiki.getTiddler(title);
+ if(tiddler && tiddler.isPlugin() && plugins.indexOf(title) === -1) {
+ plugins.push(title);
+ var pluginInfo = JSON.parse(self.wiki.getTiddlerText(title)),
+ dependents = $tw.utils.parseStringArray(tiddler.fields.dependents || "");
+ $tw.utils.each(dependents,function(title) {
+ accumulatePlugin(title);
+ });
+ }
+ };
+ accumulatePlugin(selectedPluginTitle);
+ // Read the plugin info for the incoming plugins
+ var changes = $tw.wiki.readPluginInfo(plugins);
+ // Unregister any existing theme tiddlers
+ var unregisteredTiddlers = $tw.wiki.unregisterPluginTiddlers(this.pluginType);
+ // Register any new theme tiddlers
+ var registeredTiddlers = $tw.wiki.registerPluginTiddlers(this.pluginType,plugins);
+ // Unpack the current theme tiddlers
+ $tw.wiki.unpackPluginTiddlers();
+ // Call the switch handler
+ if(this.onSwitch) {
+ this.onSwitch(plugins);
+ }
+};
+
+exports.PluginSwitcher = PluginSwitcher;
+
+})();
+
+/*\
+title: $:/core/modules/saver-handler.js
+type: application/javascript
+module-type: global
+
+The saver handler tracks changes to the store and handles saving the entire wiki via saver modules.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Instantiate the saver handler with the following options:
+wiki: wiki to be synced
+dirtyTracking: true if dirty tracking should be performed
+*/
+function SaverHandler(options) {
+ var self = this;
+ this.wiki = options.wiki;
+ this.dirtyTracking = options.dirtyTracking;
+ this.preloadDirty = options.preloadDirty || [];
+ this.pendingAutoSave = false;
+ // Make a logger
+ this.logger = new $tw.utils.Logger("saver-handler");
+ // Initialise our savers
+ if($tw.browser) {
+ this.initSavers();
+ }
+ // Only do dirty tracking if required
+ if($tw.browser && this.dirtyTracking) {
+ // Compile the dirty tiddler filter
+ this.filterFn = this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter));
+ // Count of changes that have not yet been saved
+ var filteredChanges = self.filterFn.call(self.wiki,function(iterator) {
+ $tw.utils.each(self.preloadDirty,function(title) {
+ var tiddler = self.wiki.getTiddler(title);
+ iterator(tiddler,title);
+ });
+ });
+ this.numChanges = filteredChanges.length;
+ // Listen out for changes to tiddlers
+ this.wiki.addEventListener("change",function(changes) {
+ // Filter the changes so that we only count changes to tiddlers that we care about
+ var filteredChanges = self.filterFn.call(self.wiki,function(iterator) {
+ $tw.utils.each(changes,function(change,title) {
+ var tiddler = self.wiki.getTiddler(title);
+ iterator(tiddler,title);
+ });
+ });
+ // Adjust the number of changes
+ self.numChanges += filteredChanges.length;
+ self.updateDirtyStatus();
+ // Do any autosave if one is pending and there's no more change events
+ if(self.pendingAutoSave && self.wiki.getSizeOfTiddlerEventQueue() === 0) {
+ // Check if we're dirty
+ if(self.numChanges > 0) {
+ self.saveWiki({
+ method: "autosave",
+ downloadType: "text/plain"
+ });
+ }
+ self.pendingAutoSave = false;
+ }
+ });
+ // Listen for the autosave event
+ $tw.rootWidget.addEventListener("tm-auto-save-wiki",function(event) {
+ // Do the autosave unless there are outstanding tiddler change events
+ if(self.wiki.getSizeOfTiddlerEventQueue() === 0) {
+ // Check if we're dirty
+ if(self.numChanges > 0) {
+ self.saveWiki({
+ method: "autosave",
+ downloadType: "text/plain"
+ });
+ }
+ } else {
+ // Otherwise put ourselves in the "pending autosave" state and wait for the change event before we do the autosave
+ self.pendingAutoSave = true;
+ }
+ });
+ // Set up our beforeunload handler
+ $tw.addUnloadTask(function(event) {
+ var confirmationMessage;
+ if(self.isDirty()) {
+ confirmationMessage = $tw.language.getString("UnsavedChangesWarning");
+ event.returnValue = confirmationMessage; // Gecko
+ }
+ return confirmationMessage;
+ });
+ }
+ // Install the save action handlers
+ if($tw.browser) {
+ $tw.rootWidget.addEventListener("tm-save-wiki",function(event) {
+ self.saveWiki({
+ template: event.param,
+ downloadType: "text/plain",
+ variables: event.paramObject
+ });
+ });
+ $tw.rootWidget.addEventListener("tm-download-file",function(event) {
+ self.saveWiki({
+ method: "download",
+ template: event.param,
+ downloadType: "text/plain",
+ variables: event.paramObject
+ });
+ });
+ }
+}
+
+SaverHandler.prototype.titleSyncFilter = "$:/config/SaverFilter";
+SaverHandler.prototype.titleAutoSave = "$:/config/AutoSave";
+SaverHandler.prototype.titleSavedNotification = "$:/language/Notifications/Save/Done";
+
+/*
+Select the appropriate saver modules and set them up
+*/
+SaverHandler.prototype.initSavers = function(moduleType) {
+ moduleType = moduleType || "saver";
+ // Instantiate the available savers
+ this.savers = [];
+ var self = this;
+ $tw.modules.forEachModuleOfType(moduleType,function(title,module) {
+ if(module.canSave(self)) {
+ self.savers.push(module.create(self.wiki));
+ }
+ });
+ // Sort the savers into priority order
+ this.savers.sort(function(a,b) {
+ if(a.info.priority < b.info.priority) {
+ return -1;
+ } else {
+ if(a.info.priority > b.info.priority) {
+ return +1;
+ } else {
+ return 0;
+ }
+ }
+ });
+};
+
+/*
+Save the wiki contents. Options are:
+ method: "save", "autosave" or "download"
+ template: the tiddler containing the template to save
+ downloadType: the content type for the saved file
+*/
+SaverHandler.prototype.saveWiki = function(options) {
+ options = options || {};
+ var self = this,
+ method = options.method || "save";
+ // Ignore autosave if disabled
+ if(method === "autosave" && this.wiki.getTiddlerText(this.titleAutoSave,"yes") !== "yes") {
+ return false;
+ }
+ var variables = options.variables || {},
+ template = options.template || "$:/core/save/all",
+ downloadType = options.downloadType || "text/plain",
+ text = this.wiki.renderTiddler(downloadType,template,options),
+ callback = function(err) {
+ if(err) {
+ alert($tw.language.getString("Error/WhileSaving") + ":\n\n" + err);
+ } else {
+ // Clear the task queue if we're saving (rather than downloading)
+ if(method !== "download") {
+ self.numChanges = 0;
+ self.updateDirtyStatus();
+ }
+ $tw.notifier.display(self.titleSavedNotification);
+ if(options.callback) {
+ options.callback();
+ }
+ }
+ };
+ // Call the highest priority saver that supports this method
+ for(var t=this.savers.length-1; t>=0; t--) {
+ var saver = this.savers[t];
+ if(saver.info.capabilities.indexOf(method) !== -1 && saver.save(text,method,callback,{variables: {filename: variables.filename}})) {
+ this.logger.log("Saving wiki with method",method,"through saver",saver.info.name);
+ return true;
+ }
+ }
+ return false;
+};
+
+/*
+Checks whether the wiki is dirty (ie the window shouldn't be closed)
+*/
+SaverHandler.prototype.isDirty = function() {
+ return this.numChanges > 0;
+};
+
+/*
+Update the document body with the class "tc-dirty" if the wiki has unsaved/unsynced changes
+*/
+SaverHandler.prototype.updateDirtyStatus = function() {
+ if($tw.browser) {
+ $tw.utils.toggleClass(document.body,"tc-dirty",this.isDirty());
+ }
+};
+
+exports.SaverHandler = SaverHandler;
+
+})();
+
+/*\
+title: $:/core/modules/savers/andtidwiki.js
+type: application/javascript
+module-type: saver
+
+Handles saving changes via the AndTidWiki Android app
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false, netscape: false, Components: false */
+"use strict";
+
+var AndTidWiki = function(wiki) {
+};
+
+AndTidWiki.prototype.save = function(text,method,callback,options) {
+ var filename = options && options.variables ? options.variables.filename : null;
+ if (method === "download") {
+ // Support download
+ if (window.twi.saveDownload) {
+ try {
+ window.twi.saveDownload(text,filename);
+ } catch(err) {
+ if (err.message === "Method not found") {
+ window.twi.saveDownload(text);
+ }
+ }
+ } else {
+ var link = document.createElement("a");
+ link.setAttribute("href","data:text/plain," + encodeURIComponent(text));
+ if (filename) {
+ link.setAttribute("download",filename);
+ }
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link);
+ }
+ } else if (window.twi.saveWiki) {
+ // Direct save in Tiddloid
+ window.twi.saveWiki(text);
+ } else {
+ // Get the pathname of this document
+ var pathname = decodeURIComponent(document.location.toString().split("#")[0]);
+ // Strip the file://
+ if(pathname.indexOf("file://") === 0) {
+ pathname = pathname.substr(7);
+ }
+ // Strip any query or location part
+ var p = pathname.indexOf("?");
+ if(p !== -1) {
+ pathname = pathname.substr(0,p);
+ }
+ p = pathname.indexOf("#");
+ if(p !== -1) {
+ pathname = pathname.substr(0,p);
+ }
+ // Save the file
+ window.twi.saveFile(pathname,text);
+ }
+ // Call the callback
+ callback(null);
+ return true;
+};
+
+/*
+Information about this saver
+*/
+AndTidWiki.prototype.info = {
+ name: "andtidwiki",
+ priority: 1600,
+ capabilities: ["save", "autosave", "download"]
+};
+
+/*
+Static method that returns true if this saver is capable of working
+*/
+exports.canSave = function(wiki) {
+ return !!window.twi && !!window.twi.saveFile;
+};
+
+/*
+Create an instance of this saver
+*/
+exports.create = function(wiki) {
+ return new AndTidWiki(wiki);
+};
+
+})();
+
+/*\
+title: $:/core/modules/savers/beaker.js
+type: application/javascript
+module-type: saver
+
+Saves files using the Beaker browser's (https://beakerbrowser.com) Dat protocol (https://datproject.org/)
+Compatible with beaker >= V0.7.2
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Set up the saver
+*/
+var BeakerSaver = function(wiki) {
+ this.wiki = wiki;
+};
+
+BeakerSaver.prototype.save = function(text,method,callback) {
+ var dat = new DatArchive("" + window.location),
+ pathname = ("" + window.location.pathname).split("#")[0];
+ dat.stat(pathname).then(function(value) {
+ if(value.isDirectory()) {
+ pathname = pathname + "/index.html";
+ }
+ dat.writeFile(pathname,text,"utf8").then(function(value) {
+ callback(null);
+ },function(reason) {
+ callback("Beaker Saver Write Error: " + reason);
+ });
+ },function(reason) {
+ callback("Beaker Saver Stat Error: " + reason);
+ });
+ return true;
+};
+
+/*
+Information about this saver
+*/
+BeakerSaver.prototype.info = {
+ name: "beaker",
+ priority: 3000,
+ capabilities: ["save", "autosave"]
+};
+
+/*
+Static method that returns true if this saver is capable of working
+*/
+exports.canSave = function(wiki) {
+ return !!window.DatArchive && location.protocol==="dat:";
+};
+
+/*
+Create an instance of this saver
+*/
+exports.create = function(wiki) {
+ return new BeakerSaver(wiki);
+};
+
+})();
+
+/*\
+title: $:/core/modules/savers/download.js
+type: application/javascript
+module-type: saver
+
+Handles saving changes via HTML5's download APIs
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Select the appropriate saver module and set it up
+*/
+var DownloadSaver = function(wiki) {
+};
+
+DownloadSaver.prototype.save = function(text,method,callback,options) {
+ options = options || {};
+ // Get the current filename
+ var filename = options.variables.filename;
+ if(!filename) {
+ var p = document.location.pathname.lastIndexOf("/");
+ if(p !== -1) {
+ // We decode the pathname because document.location is URL encoded by the browser
+ filename = decodeURIComponent(document.location.pathname.substr(p+1));
+ }
+ }
+ if(!filename) {
+ filename = "tiddlywiki.html";
+ }
+ // Set up the link
+ var link = document.createElement("a");
+ if(Blob !== undefined) {
+ var blob = new Blob([text], {type: "text/html"});
+ link.setAttribute("href", URL.createObjectURL(blob));
+ } else {
+ link.setAttribute("href","data:text/html," + encodeURIComponent(text));
+ }
+ link.setAttribute("download",filename);
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link);
+ // Callback that we succeeded
+ callback(null);
+ return true;
+};
+
+/*
+Information about this saver
+*/
+DownloadSaver.prototype.info = {
+ name: "download",
+ priority: 100
+};
+
+Object.defineProperty(DownloadSaver.prototype.info, "capabilities", {
+ get: function() {
+ var capabilities = ["save", "download"];
+ if(($tw.wiki.getTextReference("$:/config/DownloadSaver/AutoSave") || "").toLowerCase() === "yes") {
+ capabilities.push("autosave");
+ }
+ return capabilities;
+ }
+});
+
+/*
+Static method that returns true if this saver is capable of working
+*/
+exports.canSave = function(wiki) {
+ return document.createElement("a").download !== undefined;
+};
+
+/*
+Create an instance of this saver
+*/
+exports.create = function(wiki) {
+ return new DownloadSaver(wiki);
+};
+
+})();
+
+/*\
+title: $:/core/modules/savers/fsosaver.js
+type: application/javascript
+module-type: saver
+
+Handles saving changes via MS FileSystemObject ActiveXObject
+
+Note: Since TiddlyWiki's markup contains the MOTW, the FileSystemObject normally won't be available.
+However, if the wiki is loaded as an .HTA file (Windows HTML Applications) then the FSO can be used.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Select the appropriate saver module and set it up
+*/
+var FSOSaver = function(wiki) {
+};
+
+FSOSaver.prototype.save = function(text,method,callback) {
+ // Get the pathname of this document
+ var pathname = unescape(document.location.pathname);
+ // Test for a Windows path of the form /x:\blah...
+ if(/^\/[A-Z]\:\\[^\\]+/i.test(pathname)) { // ie: ^/[a-z]:/[^/]+
+ // Remove the leading slash
+ pathname = pathname.substr(1);
+ } else if(document.location.hostname !== "" && /^\/\\[^\\]+\\[^\\]+/i.test(pathname)) { // test for \\server\share\blah... - ^/[^/]+/[^/]+
+ // Remove the leading slash
+ pathname = pathname.substr(1);
+ // reconstruct UNC path
+ pathname = "\\\\" + document.location.hostname + pathname;
+ } else {
+ return false;
+ }
+ // Save the file (as UTF-16)
+ var fso = new ActiveXObject("Scripting.FileSystemObject");
+ var file = fso.OpenTextFile(pathname,2,-1,-1);
+ file.Write(text);
+ file.Close();
+ // Callback that we succeeded
+ callback(null);
+ return true;
+};
+
+/*
+Information about this saver
+*/
+FSOSaver.prototype.info = {
+ name: "FSOSaver",
+ priority: 120,
+ capabilities: ["save", "autosave"]
+};
+
+/*
+Static method that returns true if this saver is capable of working
+*/
+exports.canSave = function(wiki) {
+ try {
+ return (window.location.protocol === "file:") && !!(new ActiveXObject("Scripting.FileSystemObject"));
+ } catch(e) { return false; }
+};
+
+/*
+Create an instance of this saver
+*/
+exports.create = function(wiki) {
+ return new FSOSaver(wiki);
+};
+
+})();
+
+/*\
+title: $:/core/modules/savers/gitea.js
+type: application/javascript
+module-type: saver
+
+Saves wiki by pushing a commit to the gitea
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Select the appropriate saver module and set it up
+*/
+var GiteaSaver = function(wiki) {
+ this.wiki = wiki;
+};
+
+GiteaSaver.prototype.save = function(text,method,callback) {
+ var self = this,
+ username = this.wiki.getTiddlerText("$:/Gitea/Username"),
+ password = $tw.utils.getPassword("Gitea"),
+ repo = this.wiki.getTiddlerText("$:/Gitea/Repo"),
+ path = this.wiki.getTiddlerText("$:/Gitea/Path",""),
+ filename = this.wiki.getTiddlerText("$:/Gitea/Filename"),
+ branch = this.wiki.getTiddlerText("$:/Gitea/Branch") || "master",
+ endpoint = this.wiki.getTiddlerText("$:/Gitea/ServerURL") || "https://gitea",
+ headers = {
+ "Accept": "application/json",
+ "Content-Type": "application/json;charset=UTF-8",
+ "Authorization": "Basic " + window.btoa(username + ":" + password)
+ };
+ // Bail if we don't have everything we need
+ if(!username || !password || !repo || !path || !filename) {
+ return false;
+ }
+ // Make sure the path start and ends with a slash
+ if(path.substring(0,1) !== "/") {
+ path = "/" + path;
+ }
+ if(path.substring(path.length - 1) !== "/") {
+ path = path + "/";
+ }
+ // Compose the base URI
+ var uri = endpoint + "/repos/" + repo + "/contents" + path;
+ // Perform a get request to get the details (inc shas) of files in the same path as our file
+ $tw.utils.httpRequest({
+ url: uri,
+ type: "GET",
+ headers: headers,
+ data: {
+ ref: branch
+ },
+ callback: function(err,getResponseDataJson,xhr) {
+ var getResponseData,sha = "";
+ if(err && xhr.status !== 404) {
+ return callback(err);
+ }
+ var use_put = true;
+ if(xhr.status !== 404) {
+ getResponseData = JSON.parse(getResponseDataJson);
+ $tw.utils.each(getResponseData,function(details) {
+ if(details.name === filename) {
+ sha = details.sha;
+ }
+ });
+ if(sha === ""){
+ use_put = false;
+ }
+ }
+ var data = {
+ message: $tw.language.getRawString("ControlPanel/Saving/GitService/CommitMessage"),
+ content: $tw.utils.base64Encode(text),
+ sha: sha
+ };
+ $tw.utils.httpRequest({
+ url: endpoint + "/repos/" + repo + "/branches/" + branch,
+ type: "GET",
+ headers: headers,
+ callback: function(err,getResponseDataJson,xhr) {
+ if(xhr.status === 404) {
+ callback("Please ensure the branch in the Gitea repo exists");
+ }else{
+ data["branch"] = branch;
+ self.upload(uri + filename, use_put?"PUT":"POST", headers, data, callback);
+ }
+ }
+ });
+ }
+ });
+ return true;
+};
+
+GiteaSaver.prototype.upload = function(uri,method,headers,data,callback) {
+ $tw.utils.httpRequest({
+ url: uri,
+ type: method,
+ headers: headers,
+ data: JSON.stringify(data),
+ callback: function(err,putResponseDataJson,xhr) {
+ if(err) {
+ return callback(err);
+ }
+ var putResponseData = JSON.parse(putResponseDataJson);
+ callback(null);
+ }
+ });
+};
+
+/*
+Information about this saver
+*/
+GiteaSaver.prototype.info = {
+ name: "Gitea",
+ priority: 2000,
+ capabilities: ["save", "autosave"]
+};
+
+/*
+Static method that returns true if this saver is capable of working
+*/
+exports.canSave = function(wiki) {
+ return true;
+};
+
+/*
+Create an instance of this saver
+*/
+exports.create = function(wiki) {
+ return new GiteaSaver(wiki);
+};
+
+})();
+
+/*\
+title: $:/core/modules/savers/github.js
+type: application/javascript
+module-type: saver
+
+Saves wiki by pushing a commit to the GitHub v3 REST API
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Select the appropriate saver module and set it up
+*/
+var GitHubSaver = function(wiki) {
+ this.wiki = wiki;
+};
+
+GitHubSaver.prototype.save = function(text,method,callback) {
+ var self = this,
+ username = this.wiki.getTiddlerText("$:/GitHub/Username"),
+ password = $tw.utils.getPassword("github"),
+ repo = this.wiki.getTiddlerText("$:/GitHub/Repo"),
+ path = this.wiki.getTiddlerText("$:/GitHub/Path",""),
+ filename = this.wiki.getTiddlerText("$:/GitHub/Filename"),
+ branch = this.wiki.getTiddlerText("$:/GitHub/Branch") || "master",
+ endpoint = this.wiki.getTiddlerText("$:/GitHub/ServerURL") || "https://api.github.com",
+ headers = {
+ "Accept": "application/vnd.github.v3+json",
+ "Content-Type": "application/json;charset=UTF-8",
+ "Authorization": "Basic " + window.btoa(username + ":" + password)
+ };
+ // Bail if we don't have everything we need
+ if(!username || !password || !repo || !path || !filename) {
+ return false;
+ }
+ // Make sure the path start and ends with a slash
+ if(path.substring(0,1) !== "/") {
+ path = "/" + path;
+ }
+ if(path.substring(path.length - 1) !== "/") {
+ path = path + "/";
+ }
+ // Compose the base URI
+ var uri = endpoint + "/repos/" + repo + "/contents" + path;
+ // Perform a get request to get the details (inc shas) of files in the same path as our file
+ $tw.utils.httpRequest({
+ url: uri,
+ type: "GET",
+ headers: headers,
+ data: {
+ ref: branch
+ },
+ callback: function(err,getResponseDataJson,xhr) {
+ var getResponseData,sha = "";
+ if(err && xhr.status !== 404) {
+ return callback(err);
+ }
+ if(xhr.status !== 404) {
+ getResponseData = JSON.parse(getResponseDataJson);
+ $tw.utils.each(getResponseData,function(details) {
+ if(details.name === filename) {
+ sha = details.sha;
+ }
+ });
+ }
+ var data = {
+ message: $tw.language.getRawString("ControlPanel/Saving/GitService/CommitMessage"),
+ content: $tw.utils.base64Encode(text),
+ branch: branch,
+ sha: sha
+ };
+ // Perform a PUT request to save the file
+ $tw.utils.httpRequest({
+ url: uri + filename,
+ type: "PUT",
+ headers: headers,
+ data: JSON.stringify(data),
+ callback: function(err,putResponseDataJson,xhr) {
+ if(err) {
+ return callback(err);
+ }
+ var putResponseData = JSON.parse(putResponseDataJson);
+ callback(null);
+ }
+ });
+ }
+ });
+ return true;
+};
+
+/*
+Information about this saver
+*/
+GitHubSaver.prototype.info = {
+ name: "github",
+ priority: 2000,
+ capabilities: ["save", "autosave"]
+};
+
+/*
+Static method that returns true if this saver is capable of working
+*/
+exports.canSave = function(wiki) {
+ return true;
+};
+
+/*
+Create an instance of this saver
+*/
+exports.create = function(wiki) {
+ return new GitHubSaver(wiki);
+};
+
+})();
+
+/*\
+title: $:/core/modules/savers/gitlab.js
+type: application/javascript
+module-type: saver
+
+Saves wiki by pushing a commit to the GitLab REST API
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: true */
+"use strict";
+
+/*
+Select the appropriate saver module and set it up
+*/
+var GitLabSaver = function(wiki) {
+ this.wiki = wiki;
+};
+
+GitLabSaver.prototype.save = function(text,method,callback) {
+ /* See https://docs.gitlab.com/ee/api/repository_files.html */
+ var self = this,
+ username = this.wiki.getTiddlerText("$:/GitLab/Username"),
+ password = $tw.utils.getPassword("gitlab"),
+ repo = this.wiki.getTiddlerText("$:/GitLab/Repo"),
+ path = this.wiki.getTiddlerText("$:/GitLab/Path",""),
+ filename = this.wiki.getTiddlerText("$:/GitLab/Filename"),
+ branch = this.wiki.getTiddlerText("$:/GitLab/Branch") || "master",
+ endpoint = this.wiki.getTiddlerText("$:/GitLab/ServerURL") || "https://gitlab.com/api/v4",
+ headers = {
+ "Content-Type": "application/json;charset=UTF-8",
+ "Private-Token": password
+ };
+ // Bail if we don't have everything we need
+ if(!username || !password || !repo || !path || !filename) {
+ return false;
+ }
+ // Make sure the path start and ends with a slash
+ if(path.substring(0,1) !== "/") {
+ path = "/" + path;
+ }
+ if(path.substring(path.length - 1) !== "/") {
+ path = path + "/";
+ }
+ // Compose the base URI
+ var uri = endpoint + "/projects/" + encodeURIComponent(repo) + "/repository/";
+ // Perform a get request to get the details (inc shas) of files in the same path as our file
+ $tw.utils.httpRequest({
+ url: uri + "tree/?path=" + encodeURIComponent(path.replace(/^\/+|\/$/g, '')) + "&branch=" + encodeURIComponent(branch.replace(/^\/+|\/$/g, '')),
+ type: "GET",
+ headers: headers,
+ callback: function(err,getResponseDataJson,xhr) {
+ var getResponseData,sha = "";
+ if(err && xhr.status !== 404) {
+ return callback(err);
+ }
+ var requestType = "POST";
+ if(xhr.status !== 404) {
+ getResponseData = JSON.parse(getResponseDataJson);
+ $tw.utils.each(getResponseData,function(details) {
+ if(details.name === filename) {
+ requestType = "PUT";
+ sha = details.sha;
+ }
+ });
+ }
+ var data = {
+ commit_message: $tw.language.getRawString("ControlPanel/Saving/GitService/CommitMessage"),
+ content: text,
+ branch: branch,
+ sha: sha
+ };
+ // Perform a request to save the file
+ $tw.utils.httpRequest({
+ url: uri + "files/" + encodeURIComponent(path.replace(/^\/+/, '') + filename),
+ type: requestType,
+ headers: headers,
+ data: JSON.stringify(data),
+ callback: function(err,putResponseDataJson,xhr) {
+ if(err) {
+ return callback(err);
+ }
+ var putResponseData = JSON.parse(putResponseDataJson);
+ callback(null);
+ }
+ });
+ }
+ });
+ return true;
+};
+
+/*
+Information about this saver
+*/
+GitLabSaver.prototype.info = {
+ name: "gitlab",
+ priority: 2000,
+ capabilities: ["save", "autosave"]
+};
+
+/*
+Static method that returns true if this saver is capable of working
+*/
+exports.canSave = function(wiki) {
+ return true;
+};
+
+/*
+Create an instance of this saver
+*/
+exports.create = function(wiki) {
+ return new GitLabSaver(wiki);
+};
+
+})();
+
+/*\
+title: $:/core/modules/savers/manualdownload.js
+type: application/javascript
+module-type: saver
+
+Handles saving changes via HTML5's download APIs
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Title of the tiddler containing the download message
+var downloadInstructionsTitle = "$:/language/Modals/Download";
+
+/*
+Select the appropriate saver module and set it up
+*/
+var ManualDownloadSaver = function(wiki) {
+};
+
+ManualDownloadSaver.prototype.save = function(text,method,callback) {
+ $tw.modal.display(downloadInstructionsTitle,{
+ downloadLink: "data:text/html," + encodeURIComponent(text)
+ });
+ // Callback that we succeeded
+ callback(null);
+ return true;
+};
+
+/*
+Information about this saver
+*/
+ManualDownloadSaver.prototype.info = {
+ name: "manualdownload",
+ priority: 0,
+ capabilities: ["save", "download"]
+};
+
+/*
+Static method that returns true if this saver is capable of working
+*/
+exports.canSave = function(wiki) {
+ return true;
+};
+
+/*
+Create an instance of this saver
+*/
+exports.create = function(wiki) {
+ return new ManualDownloadSaver(wiki);
+};
+
+})();
+
+/*\
+title: $:/core/modules/savers/msdownload.js
+type: application/javascript
+module-type: saver
+
+Handles saving changes via window.navigator.msSaveBlob()
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Select the appropriate saver module and set it up
+*/
+var MsDownloadSaver = function(wiki) {
+};
+
+MsDownloadSaver.prototype.save = function(text,method,callback) {
+ // Get the current filename
+ var filename = "tiddlywiki.html",
+ p = document.location.pathname.lastIndexOf("/");
+ if(p !== -1) {
+ filename = document.location.pathname.substr(p+1);
+ }
+ // Set up the link
+ var blob = new Blob([text], {type: "text/html"});
+ window.navigator.msSaveBlob(blob,filename);
+ // Callback that we succeeded
+ callback(null);
+ return true;
+};
+
+/*
+Information about this saver
+*/
+MsDownloadSaver.prototype.info = {
+ name: "msdownload",
+ priority: 110,
+ capabilities: ["save", "download"]
+};
+
+/*
+Static method that returns true if this saver is capable of working
+*/
+exports.canSave = function(wiki) {
+ return !!window.navigator.msSaveBlob;
+};
+
+/*
+Create an instance of this saver
+*/
+exports.create = function(wiki) {
+ return new MsDownloadSaver(wiki);
+};
+
+})();
+
+/*\
+title: $:/core/modules/savers/put.js
+type: application/javascript
+module-type: saver
+
+Saves wiki by performing a PUT request to the server
+
+Works with any server which accepts a PUT request
+to the current URL, such as a WebDAV server.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Retrieve ETag if available
+*/
+var retrieveETag = function(self) {
+ var headers = {
+ Accept: "*/*;charset=UTF-8"
+ };
+ $tw.utils.httpRequest({
+ url: self.uri(),
+ type: "HEAD",
+ headers: headers,
+ callback: function(err,data,xhr) {
+ if(err) {
+ return;
+ }
+ var etag = xhr.getResponseHeader("ETag");
+ if(!etag) {
+ return;
+ }
+ self.etag = etag.replace(/^W\//,"");
+ }
+ });
+};
+
+
+/*
+Select the appropriate saver module and set it up
+*/
+var PutSaver = function(wiki) {
+ this.wiki = wiki;
+ var self = this;
+ var uri = this.uri();
+ // Async server probe. Until probe finishes, save will fail fast
+ // See also https://github.com/Jermolene/TiddlyWiki5/issues/2276
+ $tw.utils.httpRequest({
+ url: uri,
+ type: "OPTIONS",
+ callback: function(err,data,xhr) {
+ // Check DAV header http://www.webdav.org/specs/rfc2518.html#rfc.section.9.1
+ if(!err) {
+ self.serverAcceptsPuts = xhr.status === 200 && !!xhr.getResponseHeader("dav");
+ }
+ }
+ });
+ retrieveETag(this);
+};
+
+PutSaver.prototype.uri = function() {
+ return document.location.toString().split("#")[0];
+};
+
+// TODO: in case of edit conflict
+// Prompt: Do you want to save over this? Y/N
+// Merging would be ideal, and may be possible using future generic merge flow
+PutSaver.prototype.save = function(text,method,callback) {
+ if(!this.serverAcceptsPuts) {
+ return false;
+ }
+ var self = this;
+ var headers = {
+ "Content-Type": "text/html;charset=UTF-8"
+ };
+ if(this.etag) {
+ headers["If-Match"] = this.etag;
+ }
+ $tw.utils.httpRequest({
+ url: this.uri(),
+ type: "PUT",
+ headers: headers,
+ data: text,
+ callback: function(err,data,xhr) {
+ if(err) {
+ // response is textual: "XMLHttpRequest error code: 412"
+ var status = Number(err.substring(err.indexOf(':') + 2, err.length))
+ if(status === 412) { // edit conflict
+ var message = $tw.language.getString("Error/EditConflict");
+ callback(message);
+ } else {
+ callback(err); // fail
+ }
+ } else {
+ self.etag = xhr.getResponseHeader("ETag");
+ if(self.etag == null) {
+ retrieveETag(self);
+ }
+ callback(null); // success
+ }
+ }
+ });
+ return true;
+};
+
+/*
+Information about this saver
+*/
+PutSaver.prototype.info = {
+ name: "put",
+ priority: 2000,
+ capabilities: ["save","autosave"]
+};
+
+/*
+Static method that returns true if this saver is capable of working
+*/
+exports.canSave = function(wiki) {
+ return /^https?:/.test(location.protocol);
+};
+
+/*
+Create an instance of this saver
+*/
+exports.create = function(wiki) {
+ return new PutSaver(wiki);
+};
+
+})();
+
+/*\
+title: $:/core/modules/savers/tiddlyfox.js
+type: application/javascript
+module-type: saver
+
+Handles saving changes via the TiddlyFox file extension
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false, netscape: false, Components: false */
+"use strict";
+
+var TiddlyFoxSaver = function(wiki) {
+};
+
+TiddlyFoxSaver.prototype.save = function(text,method,callback) {
+ var messageBox = document.getElementById("tiddlyfox-message-box");
+ if(messageBox) {
+ // Get the pathname of this document
+ var pathname = document.location.toString().split("#")[0];
+ // Replace file://localhost/ with file:///
+ if(pathname.indexOf("file://localhost/") === 0) {
+ pathname = "file://" + pathname.substr(16);
+ }
+ // Windows path file:///x:/blah/blah --> x:\blah\blah
+ if(/^file\:\/\/\/[A-Z]\:\//i.test(pathname)) {
+ // Remove the leading slash and convert slashes to backslashes
+ pathname = pathname.substr(8).replace(/\//g,"\\");
+ // Firefox Windows network path file://///server/share/blah/blah --> //server/share/blah/blah
+ } else if(pathname.indexOf("file://///") === 0) {
+ pathname = "\\\\" + unescape(pathname.substr(10)).replace(/\//g,"\\");
+ // Mac/Unix local path file:///path/path --> /path/path
+ } else if(pathname.indexOf("file:///") === 0) {
+ pathname = unescape(pathname.substr(7));
+ // Mac/Unix local path file:/path/path --> /path/path
+ } else if(pathname.indexOf("file:/") === 0) {
+ pathname = unescape(pathname.substr(5));
+ // Otherwise Windows networth path file://server/share/path/path --> \\server\share\path\path
+ } else {
+ pathname = "\\\\" + unescape(pathname.substr(7)).replace(new RegExp("/","g"),"\\");
+ }
+ // Create the message element and put it in the message box
+ var message = document.createElement("div");
+ message.setAttribute("data-tiddlyfox-path",decodeURIComponent(pathname));
+ message.setAttribute("data-tiddlyfox-content",text);
+ messageBox.appendChild(message);
+ // Add an event handler for when the file has been saved
+ message.addEventListener("tiddlyfox-have-saved-file",function(event) {
+ callback(null);
+ }, false);
+ // Create and dispatch the custom event to the extension
+ var event = document.createEvent("Events");
+ event.initEvent("tiddlyfox-save-file",true,false);
+ message.dispatchEvent(event);
+ return true;
+ } else {
+ return false;
+ }
+};
+
+/*
+Information about this saver
+*/
+TiddlyFoxSaver.prototype.info = {
+ name: "tiddlyfox",
+ priority: 1500,
+ capabilities: ["save", "autosave"]
+};
+
+/*
+Static method that returns true if this saver is capable of working
+*/
+exports.canSave = function(wiki) {
+ return true;
+};
+
+/*
+Create an instance of this saver
+*/
+exports.create = function(wiki) {
+ return new TiddlyFoxSaver(wiki);
+};
+
+})();
+
+/*\
+title: $:/core/modules/savers/tiddlyie.js
+type: application/javascript
+module-type: saver
+
+Handles saving changes via Internet Explorer BHO extenion (TiddlyIE)
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Select the appropriate saver module and set it up
+*/
+var TiddlyIESaver = function(wiki) {
+};
+
+TiddlyIESaver.prototype.save = function(text,method,callback) {
+ // Check existence of TiddlyIE BHO extension (note: only works after document is complete)
+ if(typeof(window.TiddlyIE) != "undefined") {
+ // Get the pathname of this document
+ var pathname = unescape(document.location.pathname);
+ // Test for a Windows path of the form /x:/blah...
+ if(/^\/[A-Z]\:\/[^\/]+/i.test(pathname)) { // ie: ^/[a-z]:/[^/]+ (is this better?: ^/[a-z]:/[^/]+(/[^/]+)*\.[^/]+ )
+ // Remove the leading slash
+ pathname = pathname.substr(1);
+ // Convert slashes to backslashes
+ pathname = pathname.replace(/\//g,"\\");
+ } else if(document.hostname !== "" && /^\/[^\/]+\/[^\/]+/i.test(pathname)) { // test for \\server\share\blah... - ^/[^/]+/[^/]+
+ // Convert slashes to backslashes
+ pathname = pathname.replace(/\//g,"\\");
+ // reconstruct UNC path
+ pathname = "\\\\" + document.location.hostname + pathname;
+ } else return false;
+ // Prompt the user to save the file
+ window.TiddlyIE.save(pathname, text);
+ // Callback that we succeeded
+ callback(null);
+ return true;
+ } else {
+ return false;
+ }
+};
+
+/*
+Information about this saver
+*/
+TiddlyIESaver.prototype.info = {
+ name: "tiddlyiesaver",
+ priority: 1500,
+ capabilities: ["save"]
+};
+
+/*
+Static method that returns true if this saver is capable of working
+*/
+exports.canSave = function(wiki) {
+ return (window.location.protocol === "file:");
+};
+
+/*
+Create an instance of this saver
+*/
+exports.create = function(wiki) {
+ return new TiddlyIESaver(wiki);
+};
+
+})();
+
+/*\
+title: $:/core/modules/savers/twedit.js
+type: application/javascript
+module-type: saver
+
+Handles saving changes via the TWEdit iOS app
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false, netscape: false, Components: false */
+"use strict";
+
+var TWEditSaver = function(wiki) {
+};
+
+TWEditSaver.prototype.save = function(text,method,callback) {
+ // Bail if we're not running under TWEdit
+ if(typeof DeviceInfo !== "object") {
+ return false;
+ }
+ // Get the pathname of this document
+ var pathname = decodeURIComponent(document.location.pathname);
+ // Strip any query or location part
+ var p = pathname.indexOf("?");
+ if(p !== -1) {
+ pathname = pathname.substr(0,p);
+ }
+ p = pathname.indexOf("#");
+ if(p !== -1) {
+ pathname = pathname.substr(0,p);
+ }
+ // Remove the leading "/Documents" from path
+ var prefix = "/Documents";
+ if(pathname.indexOf(prefix) === 0) {
+ pathname = pathname.substr(prefix.length);
+ }
+ // Error handler
+ var errorHandler = function(event) {
+ // Error
+ callback($tw.language.getString("Error/SavingToTWEdit") + ": " + event.target.error.code);
+ };
+ // Get the file system
+ window.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(fileSystem) {
+ // Now we've got the filesystem, get the fileEntry
+ fileSystem.root.getFile(pathname, {create: true}, function(fileEntry) {
+ // Now we've got the fileEntry, create the writer
+ fileEntry.createWriter(function(writer) {
+ writer.onerror = errorHandler;
+ writer.onwrite = function() {
+ callback(null);
+ };
+ writer.position = 0;
+ writer.write(text);
+ },errorHandler);
+ }, errorHandler);
+ }, errorHandler);
+ return true;
+};
+
+/*
+Information about this saver
+*/
+TWEditSaver.prototype.info = {
+ name: "twedit",
+ priority: 1600,
+ capabilities: ["save", "autosave"]
+};
+
+/*
+Static method that returns true if this saver is capable of working
+*/
+exports.canSave = function(wiki) {
+ return true;
+};
+
+/*
+Create an instance of this saver
+*/
+exports.create = function(wiki) {
+ return new TWEditSaver(wiki);
+};
+
+/////////////////////////// Hack
+// HACK: This ensures that TWEdit recognises us as a TiddlyWiki document
+if($tw.browser) {
+ window.version = {title: "TiddlyWiki"};
+}
+
+})();
+
+/*\
+title: $:/core/modules/savers/upload.js
+type: application/javascript
+module-type: saver
+
+Handles saving changes via upload to a server.
+
+Designed to be compatible with BidiX's UploadPlugin at http://tiddlywiki.bidix.info/#UploadPlugin
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Select the appropriate saver module and set it up
+*/
+var UploadSaver = function(wiki) {
+ this.wiki = wiki;
+};
+
+UploadSaver.prototype.save = function(text,method,callback) {
+ // Get the various parameters we need
+ var backupDir = this.wiki.getTextReference("$:/UploadBackupDir") || ".",
+ username = this.wiki.getTextReference("$:/UploadName"),
+ password = $tw.utils.getPassword("upload"),
+ uploadDir = this.wiki.getTextReference("$:/UploadDir") || ".",
+ uploadFilename = this.wiki.getTextReference("$:/UploadFilename") || "index.html",
+ url = this.wiki.getTextReference("$:/UploadURL");
+ // Bail out if we don't have the bits we need
+ if(!username || username.toString().trim() === "" || !password || password.toString().trim() === "") {
+ return false;
+ }
+ // Construct the url if not provided
+ if(!url) {
+ url = "http://" + username + ".tiddlyspot.com/store.cgi";
+ }
+ // Assemble the header
+ var boundary = "---------------------------" + "AaB03x";
+ var uploadFormName = "UploadPlugin";
+ var head = [];
+ head.push("--" + boundary + "\r\nContent-disposition: form-data; name=\"UploadPlugin\"\r\n");
+ head.push("backupDir=" + backupDir + ";user=" + username + ";password=" + password + ";uploaddir=" + uploadDir + ";;");
+ head.push("\r\n" + "--" + boundary);
+ head.push("Content-disposition: form-data; name=\"userfile\"; filename=\"" + uploadFilename + "\"");
+ head.push("Content-Type: text/html;charset=UTF-8");
+ head.push("Content-Length: " + text.length + "\r\n");
+ head.push("");
+ // Assemble the tail and the data itself
+ var tail = "\r\n--" + boundary + "--\r\n",
+ data = head.join("\r\n") + text + tail;
+ // Do the HTTP post
+ var http = new XMLHttpRequest();
+ http.open("POST",url,true,username,password);
+ http.setRequestHeader("Content-Type","multipart/form-data; charset=UTF-8; boundary=" + boundary);
+ http.onreadystatechange = function() {
+ if(http.readyState == 4 && http.status == 200) {
+ if(http.responseText.substr(0,4) === "0 - ") {
+ callback(null);
+ } else {
+ callback(http.responseText);
+ }
+ }
+ };
+ try {
+ http.send(data);
+ } catch(ex) {
+ return callback($tw.language.getString("Error/Caption") + ":" + ex);
+ }
+ $tw.notifier.display("$:/language/Notifications/Save/Starting");
+ return true;
+};
+
+/*
+Information about this saver
+*/
+UploadSaver.prototype.info = {
+ name: "upload",
+ priority: 2000,
+ capabilities: ["save", "autosave"]
+};
+
+/*
+Static method that returns true if this saver is capable of working
+*/
+exports.canSave = function(wiki) {
+ return true;
+};
+
+/*
+Create an instance of this saver
+*/
+exports.create = function(wiki) {
+ return new UploadSaver(wiki);
+};
+
+})();
+
+/*\
+title: $:/core/modules/server/authenticators/basic.js
+type: application/javascript
+module-type: authenticator
+
+Authenticator for WWW basic authentication
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+if($tw.node) {
+ var util = require("util"),
+ fs = require("fs"),
+ url = require("url"),
+ path = require("path");
+}
+
+function BasicAuthenticator(server) {
+ this.server = server;
+ this.credentialsData = [];
+}
+
+/*
+Returns true if the authenticator is active, false if it is inactive, or a string if there is an error
+*/
+BasicAuthenticator.prototype.init = function() {
+ // Read the credentials data
+ this.credentialsFilepath = this.server.get("credentials");
+ if(this.credentialsFilepath) {
+ var resolveCredentialsFilepath = path.resolve($tw.boot.wikiPath,this.credentialsFilepath);
+ if(fs.existsSync(resolveCredentialsFilepath) && !fs.statSync(resolveCredentialsFilepath).isDirectory()) {
+ var credentialsText = fs.readFileSync(resolveCredentialsFilepath,"utf8"),
+ credentialsData = $tw.utils.parseCsvStringWithHeader(credentialsText);
+ if(typeof credentialsData === "string") {
+ return "Error: " + credentialsData + " reading credentials from '" + resolveCredentialsFilepath + "'";
+ } else {
+ this.credentialsData = credentialsData;
+ }
+ } else {
+ return "Error: Unable to load user credentials from '" + resolveCredentialsFilepath + "'";
+ }
+ }
+ // Add the hardcoded username and password if specified
+ if(this.server.get("username") && this.server.get("password")) {
+ this.credentialsData = this.credentialsData || [];
+ this.credentialsData.push({
+ username: this.server.get("username"),
+ password: this.server.get("password")
+ });
+ }
+ return this.credentialsData.length > 0;
+};
+
+/*
+Returns true if the request is authenticated and assigns the "authenticatedUsername" state variable.
+Returns false if the request couldn't be authenticated having sent an appropriate response to the browser
+*/
+BasicAuthenticator.prototype.authenticateRequest = function(request,response,state) {
+ // Extract the incoming username and password from the request
+ var header = request.headers.authorization || "";
+ if(!header && state.allowAnon) {
+ // If there's no header and anonymous access is allowed then we don't set authenticatedUsername
+ return true;
+ }
+ var token = header.split(/\s+/).pop() || "",
+ auth = $tw.utils.base64Decode(token),
+ parts = auth.split(/:/),
+ incomingUsername = parts[0],
+ incomingPassword = parts[1];
+ // Check that at least one of the credentials matches
+ var matchingCredentials = this.credentialsData.find(function(credential) {
+ return credential.username === incomingUsername && credential.password === incomingPassword;
+ });
+ if(matchingCredentials) {
+ // If so, add the authenticated username to the request state
+ state.authenticatedUsername = incomingUsername;
+ return true;
+ } else {
+ // If not, return an authentication challenge
+ response.writeHead(401,"Authentication required",{
+ "WWW-Authenticate": 'Basic realm="Please provide your username and password to login to ' + state.server.servername + '"'
+ });
+ response.end();
+ return false;
+ }
+};
+
+exports.AuthenticatorClass = BasicAuthenticator;
+
+})();
+
+/*\
+title: $:/core/modules/server/authenticators/header.js
+type: application/javascript
+module-type: authenticator
+
+Authenticator for trusted header authentication
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+function HeaderAuthenticator(server) {
+ this.server = server;
+ this.header = server.get("authenticated-user-header");
+}
+
+/*
+Returns true if the authenticator is active, false if it is inactive, or a string if there is an error
+*/
+HeaderAuthenticator.prototype.init = function() {
+ return !!this.header;
+};
+
+/*
+Returns true if the request is authenticated and assigns the "authenticatedUsername" state variable.
+Returns false if the request couldn't be authenticated having sent an appropriate response to the browser
+*/
+HeaderAuthenticator.prototype.authenticateRequest = function(request,response,state) {
+ // Otherwise, authenticate as the username in the specified header
+ var username = request.headers[this.header];
+ if(!username && !state.allowAnon) {
+ response.writeHead(401,"Authorization header required to login to '" + state.server.servername + "'");
+ response.end();
+ return false;
+ } else {
+ // authenticatedUsername will be undefined for anonymous users
+ state.authenticatedUsername = username;
+ return true;
+ }
+};
+
+exports.AuthenticatorClass = HeaderAuthenticator;
+
+})();
+
+/*\
+title: $:/core/modules/server/routes/delete-tiddler.js
+type: application/javascript
+module-type: route
+
+DELETE /recipes/default/tiddlers/:title
+
+\*/
+(function() {
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.method = "DELETE";
+
+exports.path = /^\/bags\/default\/tiddlers\/(.+)$/;
+
+exports.handler = function(request,response,state) {
+ var title = decodeURIComponent(state.params[0]);
+ state.wiki.deleteTiddler(title);
+ response.writeHead(204, "OK", {
+ "Content-Type": "text/plain"
+ });
+ response.end();
+};
+
+}());
+
+/*\
+title: $:/core/modules/server/routes/get-favicon.js
+type: application/javascript
+module-type: route
+
+GET /favicon.ico
+
+\*/
+(function() {
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.method = "GET";
+
+exports.path = /^\/favicon.ico$/;
+
+exports.handler = function(request,response,state) {
+ response.writeHead(200, {"Content-Type": "image/x-icon"});
+ var buffer = state.wiki.getTiddlerText("$:/favicon.ico","");
+ response.end(buffer,"base64");
+};
+
+}());
+
+/*\
+title: $:/core/modules/server/routes/get-file.js
+type: application/javascript
+module-type: route
+
+GET /files/:filepath
+
+\*/
+(function() {
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.method = "GET";
+
+exports.path = /^\/files\/(.+)$/;
+
+exports.handler = function(request,response,state) {
+ var path = require("path"),
+ fs = require("fs"),
+ util = require("util"),
+ suppliedFilename = decodeURIComponent(state.params[0]),
+ filename = path.resolve($tw.boot.wikiPath,"files",suppliedFilename),
+ extension = path.extname(filename);
+ fs.readFile(filename,function(err,content) {
+ var status,content,type = "text/plain";
+ if(err) {
+ console.log("Error accessing file " + filename + ": " + err.toString());
+ status = 404;
+ content = "File '" + suppliedFilename + "' not found";
+ } else {
+ status = 200;
+ content = content;
+ type = ($tw.config.fileExtensionInfo[extension] ? $tw.config.fileExtensionInfo[extension].type : "application/octet-stream");
+ }
+ response.writeHead(status,{
+ "Content-Type": type
+ });
+ response.end(content);
+ });
+};
+
+}());
+
+/*\
+title: $:/core/modules/server/routes/get-index.js
+type: application/javascript
+module-type: route
+
+GET /
+
+\*/
+(function() {
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var zlib = require("zlib");
+
+exports.method = "GET";
+
+exports.path = /^\/$/;
+
+exports.handler = function(request,response,state) {
+ var acceptEncoding = request.headers["accept-encoding"];
+ if(!acceptEncoding) {
+ acceptEncoding = "";
+ }
+ var text = state.wiki.renderTiddler(state.server.get("root-render-type"),state.server.get("root-tiddler")),
+ responseHeaders = {
+ "Content-Type": state.server.get("root-serve-type")
+ };
+ /*
+ If the gzip=yes flag for `listen` is set, check if the user agent permits
+ compression. If so, compress our response. Note that we use the synchronous
+ functions from zlib to stay in the imperative style. The current `Server`
+ doesn't depend on this, and we may just as well use the async versions.
+ */
+ if(state.server.enableGzip) {
+ if (/\bdeflate\b/.test(acceptEncoding)) {
+ responseHeaders["Content-Encoding"] = "deflate";
+ text = zlib.deflateSync(text);
+ } else if (/\bgzip\b/.test(acceptEncoding)) {
+ responseHeaders["Content-Encoding"] = "gzip";
+ text = zlib.gzipSync(text);
+ }
+ }
+ response.writeHead(200,responseHeaders);
+ response.end(text);
+};
+
+}());
+
+/*\
+title: $:/core/modules/server/routes/get-login-basic.js
+type: application/javascript
+module-type: route
+
+GET /login-basic -- force a Basic Authentication challenge
+
+\*/
+(function() {
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.method = "GET";
+
+exports.path = /^\/login-basic$/;
+
+exports.handler = function(request,response,state) {
+ if(!state.authenticatedUsername) {
+ // Challenge if there's no username
+ response.writeHead(401,{
+ "WWW-Authenticate": 'Basic realm="Please provide your username and password to login to ' + state.server.servername + '"'
+ });
+ response.end();
+ } else {
+ // Redirect to the root wiki if login worked
+ response.writeHead(302,{
+ Location: "/"
+ });
+ response.end();
+ }
+};
+
+}());
+
+/*\
+title: $:/core/modules/server/routes/get-status.js
+type: application/javascript
+module-type: route
+
+GET /status
+
+\*/
+(function() {
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.method = "GET";
+
+exports.path = /^\/status$/;
+
+exports.handler = function(request,response,state) {
+ response.writeHead(200, {"Content-Type": "application/json"});
+ var text = JSON.stringify({
+ username: state.authenticatedUsername || state.server.get("anon-username") || "",
+ anonymous: !state.authenticatedUsername,
+ read_only: !state.server.isAuthorized("writers",state.authenticatedUsername),
+ space: {
+ recipe: "default"
+ },
+ tiddlywiki_version: $tw.version
+ });
+ response.end(text,"utf8");
+};
+
+}());
+
+/*\
+title: $:/core/modules/server/routes/get-tiddler-html.js
+type: application/javascript
+module-type: route
+
+GET /:title
+
+\*/
+(function() {
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.method = "GET";
+
+exports.path = /^\/([^\/]+)$/;
+
+exports.handler = function(request,response,state) {
+ var title = decodeURIComponent(state.params[0]),
+ tiddler = state.wiki.getTiddler(title);
+ if(tiddler) {
+ var renderType = tiddler.getFieldString("_render_type"),
+ renderTemplate = tiddler.getFieldString("_render_template");
+ // Tiddler fields '_render_type' and '_render_template' overwrite
+ // system wide settings for render type and template
+ if(state.wiki.isSystemTiddler(title)) {
+ renderType = renderType || state.server.get("system-tiddler-render-type");
+ renderTemplate = renderTemplate || state.server.get("system-tiddler-render-template");
+ } else {
+ renderType = renderType || state.server.get("tiddler-render-type");
+ renderTemplate = renderTemplate || state.server.get("tiddler-render-template");
+ }
+ var text = state.wiki.renderTiddler(renderType,renderTemplate,{parseAsInline: true, variables: {currentTiddler: title}});
+ // Naughty not to set a content-type, but it's the easiest way to ensure the browser will see HTML pages as HTML, and accept plain text tiddlers as CSS or JS
+ response.writeHead(200);
+ response.end(text,"utf8");
+ } else {
+ response.writeHead(404);
+ response.end();
+ }
+};
+
+}());
+
+/*\
+title: $:/core/modules/server/routes/get-tiddler.js
+type: application/javascript
+module-type: route
+
+GET /recipes/default/tiddlers/:title
+
+\*/
+(function() {
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.method = "GET";
+
+exports.path = /^\/recipes\/default\/tiddlers\/(.+)$/;
+
+exports.handler = function(request,response,state) {
+ var title = decodeURIComponent(state.params[0]),
+ tiddler = state.wiki.getTiddler(title),
+ tiddlerFields = {},
+ knownFields = [
+ "bag", "created", "creator", "modified", "modifier", "permissions", "recipe", "revision", "tags", "text", "title", "type", "uri"
+ ];
+ if(tiddler) {
+ $tw.utils.each(tiddler.fields,function(field,name) {
+ var value = tiddler.getFieldString(name);
+ if(knownFields.indexOf(name) !== -1) {
+ tiddlerFields[name] = value;
+ } else {
+ tiddlerFields.fields = tiddlerFields.fields || {};
+ tiddlerFields.fields[name] = value;
+ }
+ });
+ tiddlerFields.revision = state.wiki.getChangeCount(title);
+ tiddlerFields.bag = "default";
+ tiddlerFields.type = tiddlerFields.type || "text/vnd.tiddlywiki";
+ response.writeHead(200, {"Content-Type": "application/json"});
+ response.end(JSON.stringify(tiddlerFields),"utf8");
+ } else {
+ response.writeHead(404);
+ response.end();
+ }
+};
+
+}());
+
+/*\
+title: $:/core/modules/server/routes/get-tiddlers-json.js
+type: application/javascript
+module-type: route
+
+GET /recipes/default/tiddlers/tiddlers.json?filter=<filter>
+
+\*/
+(function() {
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var DEFAULT_FILTER = "[all[tiddlers]!is[system]sort[title]]";
+
+exports.method = "GET";
+
+exports.path = /^\/recipes\/default\/tiddlers.json$/;
+
+exports.handler = function(request,response,state) {
+ var filter = state.queryParameters.filter || DEFAULT_FILTER;
+ if($tw.wiki.getTiddlerText("$:/config/Server/AllowAllExternalFilters") !== "yes") {
+ if($tw.wiki.getTiddlerText("$:/config/Server/ExternalFilters/" + filter) !== "yes") {
+ console.log("Blocked attempt to GET /recipes/default/tiddlers/tiddlers.json with filter: " + filter);
+ response.writeHead(403);
+ response.end();
+ return;
+ }
+ }
+ var excludeFields = (state.queryParameters.exclude || "text").split(","),
+ titles = state.wiki.filterTiddlers(filter);
+ response.writeHead(200, {"Content-Type": "application/json"});
+ var tiddlers = [];
+ $tw.utils.each(titles,function(title) {
+ var tiddler = state.wiki.getTiddler(title);
+ if(tiddler) {
+ var tiddlerFields = tiddler.getFieldStrings({exclude: excludeFields});
+ tiddlerFields.revision = state.wiki.getChangeCount(title);
+ tiddlerFields.type = tiddlerFields.type || "text/vnd.tiddlywiki";
+ tiddlers.push(tiddlerFields);
+ }
+ });
+ var text = JSON.stringify(tiddlers);
+ response.end(text,"utf8");
+};
+
+}());
+
+/*\
+title: $:/core/modules/server/routes/put-tiddler.js
+type: application/javascript
+module-type: route
+
+PUT /recipes/default/tiddlers/:title
+
+\*/
+(function() {
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.method = "PUT";
+
+exports.path = /^\/recipes\/default\/tiddlers\/(.+)$/;
+
+exports.handler = function(request,response,state) {
+ var title = decodeURIComponent(state.params[0]),
+ fields = JSON.parse(state.data);
+ // Pull up any subfields in the `fields` object
+ if(fields.fields) {
+ $tw.utils.each(fields.fields,function(field,name) {
+ fields[name] = field;
+ });
+ delete fields.fields;
+ }
+ // Remove any revision field
+ if(fields.revision) {
+ delete fields.revision;
+ }
+ state.wiki.addTiddler(new $tw.Tiddler(state.wiki.getCreationFields(),fields,{title: title},state.wiki.getModificationFields()));
+ var changeCount = state.wiki.getChangeCount(title).toString();
+ response.writeHead(204, "OK",{
+ Etag: "\"default/" + encodeURIComponent(title) + "/" + changeCount + ":\"",
+ "Content-Type": "text/plain"
+ });
+ response.end();
+};
+
+}());
+
+/*\
+title: $:/core/modules/server/server.js
+type: application/javascript
+module-type: library
+
+Serve tiddlers over http
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+if($tw.node) {
+ var util = require("util"),
+ fs = require("fs"),
+ url = require("url"),
+ path = require("path"),
+ querystring = require("querystring");
+}
+
+/*
+A simple HTTP server with regexp-based routes
+options: variables - optional hashmap of variables to set (a misnomer - they are really constant parameters)
+ routes - optional array of routes to use
+ wiki - reference to wiki object
+*/
+function Server(options) {
+ var self = this;
+ this.routes = options.routes || [];
+ this.authenticators = options.authenticators || [];
+ this.wiki = options.wiki;
+ this.servername = $tw.utils.transliterateToSafeASCII(this.wiki.getTiddlerText("$:/SiteTitle") || "TiddlyWiki5");
+ // Initialise the variables
+ this.variables = $tw.utils.extend({},this.defaultVariables);
+ if(options.variables) {
+ for(var variable in options.variables) {
+ if(options.variables[variable]) {
+ this.variables[variable] = options.variables[variable];
+ }
+ }
+ }
+ $tw.utils.extend({},this.defaultVariables,options.variables);
+ // Initialise CSRF
+ this.csrfDisable = this.get("csrf-disable") === "yes";
+ // Initialize Gzip compression
+ this.enableGzip = this.get("gzip") === "yes";
+ // Initialise authorization
+ var authorizedUserName = (this.get("username") && this.get("password")) ? this.get("username") : "(anon)";
+ this.authorizationPrincipals = {
+ readers: (this.get("readers") || authorizedUserName).split(",").map($tw.utils.trim),
+ writers: (this.get("writers") || authorizedUserName).split(",").map($tw.utils.trim)
+ }
+ // Load and initialise authenticators
+ $tw.modules.forEachModuleOfType("authenticator", function(title,authenticatorDefinition) {
+ // console.log("Loading server route " + title);
+ self.addAuthenticator(authenticatorDefinition.AuthenticatorClass);
+ });
+ // Load route handlers
+ $tw.modules.forEachModuleOfType("route", function(title,routeDefinition) {
+ // console.log("Loading server route " + title);
+ self.addRoute(routeDefinition);
+ });
+ // Initialise the http vs https
+ this.listenOptions = null;
+ this.protocol = "http";
+ var tlsKeyFilepath = this.get("tls-key"),
+ tlsCertFilepath = this.get("tls-cert");
+ if(tlsCertFilepath && tlsKeyFilepath) {
+ this.listenOptions = {
+ key: fs.readFileSync(path.resolve($tw.boot.wikiPath,tlsKeyFilepath),"utf8"),
+ cert: fs.readFileSync(path.resolve($tw.boot.wikiPath,tlsCertFilepath),"utf8")
+ };
+ this.protocol = "https";
+ }
+ this.transport = require(this.protocol);
+}
+
+Server.prototype.defaultVariables = {
+ port: "8080",
+ host: "127.0.0.1",
+ "root-tiddler": "$:/core/save/all",
+ "root-render-type": "text/plain",
+ "root-serve-type": "text/html",
+ "tiddler-render-type": "text/html",
+ "tiddler-render-template": "$:/core/templates/server/static.tiddler.html",
+ "system-tiddler-render-type": "text/plain",
+ "system-tiddler-render-template": "$:/core/templates/wikified-tiddler",
+ "debug-level": "none",
+ "gzip": "no"
+};
+
+Server.prototype.get = function(name) {
+ return this.variables[name];
+};
+
+Server.prototype.addRoute = function(route) {
+ this.routes.push(route);
+};
+
+Server.prototype.addAuthenticator = function(AuthenticatorClass) {
+ // Instantiate and initialise the authenticator
+ var authenticator = new AuthenticatorClass(this),
+ result = authenticator.init();
+ if(typeof result === "string") {
+ $tw.utils.error("Error: " + result);
+ } else if(result) {
+ // Only use the authenticator if it initialised successfully
+ this.authenticators.push(authenticator);
+ }
+};
+
+Server.prototype.findMatchingRoute = function(request,state) {
+ var pathprefix = this.get("path-prefix") || "";
+ for(var t=0; t<this.routes.length; t++) {
+ var potentialRoute = this.routes[t],
+ pathRegExp = potentialRoute.path,
+ pathname = state.urlInfo.pathname,
+ match;
+ if(pathprefix) {
+ if(pathname.substr(0,pathprefix.length) === pathprefix) {
+ pathname = pathname.substr(pathprefix.length) || "/";
+ match = potentialRoute.path.exec(pathname);
+ } else {
+ match = false;
+ }
+ } else {
+ match = potentialRoute.path.exec(pathname);
+ }
+ if(match && request.method === potentialRoute.method) {
+ state.params = [];
+ for(var p=1; p<match.length; p++) {
+ state.params.push(match[p]);
+ }
+ return potentialRoute;
+ }
+ }
+ return null;
+};
+
+Server.prototype.methodMappings = {
+ "GET": "readers",
+ "OPTIONS": "readers",
+ "HEAD": "readers",
+ "PUT": "writers",
+ "POST": "writers",
+ "DELETE": "writers"
+};
+
+/*
+Check whether a given user is authorized for the specified authorizationType ("readers" or "writers"). Pass null or undefined as the username to check for anonymous access
+*/
+Server.prototype.isAuthorized = function(authorizationType,username) {
+ var principals = this.authorizationPrincipals[authorizationType] || [];
+ return principals.indexOf("(anon)") !== -1 || (username && (principals.indexOf("(authenticated)") !== -1 || principals.indexOf(username) !== -1));
+}
+
+Server.prototype.requestHandler = function(request,response) {
+ // Compose the state object
+ var self = this;
+ var state = {};
+ state.wiki = self.wiki;
+ state.server = self;
+ state.urlInfo = url.parse(request.url);
+ state.queryParameters = querystring.parse(state.urlInfo.query);
+ // Get the principals authorized to access this resource
+ var authorizationType = this.methodMappings[request.method] || "readers";
+ // Check for the CSRF header if this is a write
+ if(!this.csrfDisable && authorizationType === "writers" && request.headers["x-requested-with"] !== "TiddlyWiki") {
+ response.writeHead(403,"'X-Requested-With' header required to login to '" + this.servername + "'");
+ response.end();
+ return;
+ }
+ // Check whether anonymous access is granted
+ state.allowAnon = this.isAuthorized(authorizationType,null);
+ // Authenticate with the first active authenticator
+ if(this.authenticators.length > 0) {
+ if(!this.authenticators[0].authenticateRequest(request,response,state)) {
+ // Bail if we failed (the authenticator will have sent the response)
+ return;
+ }
+ }
+ // Authorize with the authenticated username
+ if(!this.isAuthorized(authorizationType,state.authenticatedUsername)) {
+ response.writeHead(401,"'" + state.authenticatedUsername + "' is not authorized to access '" + this.servername + "'");
+ response.end();
+ return;
+ }
+ // Find the route that matches this path
+ var route = self.findMatchingRoute(request,state);
+ // Optionally output debug info
+ if(self.get("debug-level") !== "none") {
+ console.log("Request path:",JSON.stringify(state.urlInfo));
+ console.log("Request headers:",JSON.stringify(request.headers));
+ console.log("authenticatedUsername:",state.authenticatedUsername);
+ }
+ // Return a 404 if we didn't find a route
+ if(!route) {
+ response.writeHead(404);
+ response.end();
+ return;
+ }
+ // Receive the request body if necessary and hand off to the route handler
+ if(route.bodyFormat === "stream" || request.method === "GET" || request.method === "HEAD") {
+ // Let the route handle the request stream itself
+ route.handler(request,response,state);
+ } else if(route.bodyFormat === "string" || !route.bodyFormat) {
+ // Set the encoding for the incoming request
+ request.setEncoding("utf8");
+ var data = "";
+ request.on("data",function(chunk) {
+ data += chunk.toString();
+ });
+ request.on("end",function() {
+ state.data = data;
+ route.handler(request,response,state);
+ });
+ } else if(route.bodyFormat === "buffer") {
+ var data = [];
+ request.on("data",function(chunk) {
+ data.push(chunk);
+ });
+ request.on("end",function() {
+ state.data = Buffer.concat(data);
+ route.handler(request,response,state);
+ })
+ } else {
+ response.writeHead(400,"Invalid bodyFormat " + route.bodyFormat + " in route " + route.method + " " + route.path.source);
+ response.end();
+ }
+};
+
+/*
+Listen for requests
+port: optional port number (falls back to value of "port" variable)
+host: optional host address (falls back to value of "host" variable)
+prefix: optional prefix (falls back to value of "path-prefix" variable)
+*/
+Server.prototype.listen = function(port,host,prefix) {
+ var self = this;
+ // Handle defaults for port and host
+ port = port || this.get("port");
+ host = host || this.get("host");
+ prefix = prefix || this.get("path-prefix") || "";
+ // Check for the port being a string and look it up as an environment variable
+ if(parseInt(port,10).toString() !== port) {
+ port = process.env[port] || 8080;
+ }
+ // Warn if required plugins are missing
+ if(!$tw.wiki.getTiddler("$:/plugins/tiddlywiki/tiddlyweb") || !$tw.wiki.getTiddler("$:/plugins/tiddlywiki/filesystem")) {
+ $tw.utils.warning("Warning: Plugins required for client-server operation (\"tiddlywiki/filesystem\" and \"tiddlywiki/tiddlyweb\") are missing from tiddlywiki.info file");
+ }
+ // Create the server
+ var server;
+ if(this.listenOptions) {
+ server = this.transport.createServer(this.listenOptions,this.requestHandler.bind(this));
+ } else {
+ server = this.transport.createServer(this.requestHandler.bind(this));
+ }
+ // Display the port number after we've started listening (the port number might have been specified as zero, in which case we will get an assigned port)
+ server.on("listening",function() {
+ var address = server.address();
+ $tw.utils.log("Serving on " + self.protocol + "://" + address.address + ":" + address.port + prefix,"brown/orange");
+ $tw.utils.log("(press ctrl-C to exit)","red");
+ });
+ // Listen
+ return server.listen(port,host);
+};
+
+exports.Server = Server;
+
+})();
+
+/*\
+title: $:/core/modules/startup.js
+type: application/javascript
+module-type: startup
+
+Miscellaneous startup logic for both the client and server.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Export name and synchronous status
+exports.name = "startup";
+exports.after = ["load-modules"];
+exports.synchronous = true;
+
+// Set to `true` to enable performance instrumentation
+var PERFORMANCE_INSTRUMENTATION_CONFIG_TITLE = "$:/config/Performance/Instrumentation";
+
+var widget = require("$:/core/modules/widgets/widget.js");
+
+exports.startup = function() {
+ var modules,n,m,f;
+ // Minimal browser detection
+ if($tw.browser) {
+ $tw.browser.isIE = (/msie|trident/i.test(navigator.userAgent));
+ $tw.browser.isFirefox = !!document.mozFullScreenEnabled;
+ }
+ // Platform detection
+ $tw.platform = {};
+ if($tw.browser) {
+ $tw.platform.isMac = /Mac/.test(navigator.platform);
+ $tw.platform.isWindows = /win/i.test(navigator.platform);
+ $tw.platform.isLinux = /Linux/i.test(navigator.platform);
+ } else {
+ switch(require("os").platform()) {
+ case "darwin":
+ $tw.platform.isMac = true;
+ break;
+ case "win32":
+ $tw.platform.isWindows = true;
+ break;
+ case "freebsd":
+ $tw.platform.isLinux = true;
+ break;
+ case "linux":
+ $tw.platform.isLinux = true;
+ break;
+ }
+ }
+ // Initialise version
+ $tw.version = $tw.utils.extractVersionInfo();
+ // Set up the performance framework
+ $tw.perf = new $tw.Performance($tw.wiki.getTiddlerText(PERFORMANCE_INSTRUMENTATION_CONFIG_TITLE,"no") === "yes");
+ // Create a root widget for attaching event handlers. By using it as the parentWidget for another widget tree, one can reuse the event handlers
+ $tw.rootWidget = new widget.widget({
+ type: "widget",
+ children: []
+ },{
+ wiki: $tw.wiki,
+ document: $tw.browser ? document : $tw.fakeDocument
+ });
+ // Execute any startup actions
+ var executeStartupTiddlers = function(tag) {
+ $tw.utils.each($tw.wiki.filterTiddlers("[all[shadows+tiddlers]tag[" + tag + "]!has[draft.of]]"),function(title) {
+ $tw.rootWidget.invokeActionString($tw.wiki.getTiddlerText(title),$tw.rootWidget);
+ });
+ };
+ executeStartupTiddlers("$:/tags/StartupAction");
+ if($tw.browser) {
+ executeStartupTiddlers("$:/tags/StartupAction/Browser");
+ }
+ if($tw.node) {
+ executeStartupTiddlers("$:/tags/StartupAction/Node");
+ }
+ // Kick off the language manager and switcher
+ $tw.language = new $tw.Language();
+ $tw.languageSwitcher = new $tw.PluginSwitcher({
+ wiki: $tw.wiki,
+ pluginType: "language",
+ controllerTitle: "$:/language",
+ defaultPlugins: [
+ "$:/languages/en-GB"
+ ],
+ onSwitch: function(plugins) {
+ if($tw.browser) {
+ var pluginTiddler = $tw.wiki.getTiddler(plugins[0]);
+ if(pluginTiddler) {
+ document.documentElement.setAttribute("dir",pluginTiddler.getFieldString("text-direction") || "auto");
+ } else {
+ document.documentElement.removeAttribute("dir");
+ }
+ }
+ }
+ });
+ // Kick off the theme manager
+ $tw.themeManager = new $tw.PluginSwitcher({
+ wiki: $tw.wiki,
+ pluginType: "theme",
+ controllerTitle: "$:/theme",
+ defaultPlugins: [
+ "$:/themes/tiddlywiki/snowwhite",
+ "$:/themes/tiddlywiki/vanilla"
+ ]
+ });
+ // Kick off the keyboard manager
+ $tw.keyboardManager = new $tw.KeyboardManager();
+ // Listen for shortcuts
+ if($tw.browser) {
+ $tw.utils.addEventListeners(document,[{
+ name: "keydown",
+ handlerObject: $tw.keyboardManager,
+ handlerMethod: "handleKeydownEvent"
+ }]);
+ }
+ // Clear outstanding tiddler store change events to avoid an unnecessary refresh cycle at startup
+ $tw.wiki.clearTiddlerEventQueue();
+ // Find a working syncadaptor
+ $tw.syncadaptor = undefined;
+ $tw.modules.forEachModuleOfType("syncadaptor",function(title,module) {
+ if(!$tw.syncadaptor && module.adaptorClass) {
+ $tw.syncadaptor = new module.adaptorClass({wiki: $tw.wiki});
+ }
+ });
+ // Set up the syncer object if we've got a syncadaptor
+ if($tw.syncadaptor) {
+ $tw.syncer = new $tw.Syncer({wiki: $tw.wiki, syncadaptor: $tw.syncadaptor});
+ }
+ // Setup the saver handler
+ $tw.saverHandler = new $tw.SaverHandler({
+ wiki: $tw.wiki,
+ dirtyTracking: !$tw.syncadaptor,
+ preloadDirty: $tw.boot.preloadDirty || []
+ });
+ // Host-specific startup
+ if($tw.browser) {
+ // Install the popup manager
+ $tw.popup = new $tw.utils.Popup();
+ // Install the animator
+ $tw.anim = new $tw.utils.Animator();
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/startup/commands.js
+type: application/javascript
+module-type: startup
+
+Command processing
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Export name and synchronous status
+exports.name = "commands";
+exports.platforms = ["node"];
+exports.after = ["story"];
+exports.synchronous = false;
+
+exports.startup = function(callback) {
+ // On the server, start a commander with the command line arguments
+ var commander = new $tw.Commander(
+ $tw.boot.argv,
+ function(err) {
+ if(err) {
+ return $tw.utils.error("Error: " + err);
+ }
+ callback();
+ },
+ $tw.wiki,
+ {output: process.stdout, error: process.stderr}
+ );
+ commander.execute();
+};
+
+})();
+
+/*\
+title: $:/core/modules/startup/CSSescape.js
+type: application/javascript
+module-type: startup
+
+Polyfill for CSS.escape()
+
+\*/
+(function(root,factory){
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Export name and synchronous status
+exports.name = "css-escape";
+exports.platforms = ["browser"];
+exports.after = ["startup"];
+exports.synchronous = true;
+
+/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
+// https://github.com/umdjs/umd/blob/master/returnExports.js
+exports.startup = factory(root);
+}(typeof global != 'undefined' ? global : this, function(root) {
+
+ if (root.CSS && root.CSS.escape) {
+ return;
+ }
+
+ // https://drafts.csswg.org/cssom/#serialize-an-identifier
+ var cssEscape = function(value) {
+ if (arguments.length == 0) {
+ throw new TypeError('`CSS.escape` requires an argument.');
+ }
+ var string = String(value);
+ var length = string.length;
+ var index = -1;
+ var codeUnit;
+ var result = '';
+ var firstCodeUnit = string.charCodeAt(0);
+ while (++index < length) {
+ codeUnit = string.charCodeAt(index);
+ // Note: there’s no need to special-case astral symbols, surrogate
+ // pairs, or lone surrogates.
+
+ // If the character is NULL (U+0000), then the REPLACEMENT CHARACTER
+ // (U+FFFD).
+ if (codeUnit == 0x0000) {
+ result += '\uFFFD';
+ continue;
+ }
+
+ if (
+ // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
+ // U+007F, […]
+ (codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F ||
+ // If the character is the first character and is in the range [0-9]
+ // (U+0030 to U+0039), […]
+ (index == 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) ||
+ // If the character is the second character and is in the range [0-9]
+ // (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
+ (
+ index == 1 &&
+ codeUnit >= 0x0030 && codeUnit <= 0x0039 &&
+ firstCodeUnit == 0x002D
+ )
+ ) {
+ // https://drafts.csswg.org/cssom/#escape-a-character-as-code-point
+ result += '\\' + codeUnit.toString(16) + ' ';
+ continue;
+ }
+
+ if (
+ // If the character is the first character and is a `-` (U+002D), and
+ // there is no second character, […]
+ index == 0 &&
+ length == 1 &&
+ codeUnit == 0x002D
+ ) {
+ result += '\\' + string.charAt(index);
+ continue;
+ }
+
+ // If the character is not handled by one of the above rules and is
+ // greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or
+ // is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to
+ // U+005A), or [a-z] (U+0061 to U+007A), […]
+ if (
+ codeUnit >= 0x0080 ||
+ codeUnit == 0x002D ||
+ codeUnit == 0x005F ||
+ codeUnit >= 0x0030 && codeUnit <= 0x0039 ||
+ codeUnit >= 0x0041 && codeUnit <= 0x005A ||
+ codeUnit >= 0x0061 && codeUnit <= 0x007A
+ ) {
+ // the character itself
+ result += string.charAt(index);
+ continue;
+ }
+
+ // Otherwise, the escaped character.
+ // https://drafts.csswg.org/cssom/#escape-a-character
+ result += '\\' + string.charAt(index);
+
+ }
+ return result;
+ };
+
+ if (!root.CSS) {
+ root.CSS = {};
+ }
+
+ root.CSS.escape = cssEscape;
+
+}));
+
+/*\
+title: $:/core/modules/startup/favicon.js
+type: application/javascript
+module-type: startup
+
+Favicon handling
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Export name and synchronous status
+exports.name = "favicon";
+exports.platforms = ["browser"];
+exports.after = ["startup"];
+exports.synchronous = true;
+
+// Favicon tiddler
+var FAVICON_TITLE = "$:/favicon.ico";
+
+exports.startup = function() {
+ // Set up the favicon
+ setFavicon();
+ // Reset the favicon when the tiddler changes
+ $tw.wiki.addEventListener("change",function(changes) {
+ if($tw.utils.hop(changes,FAVICON_TITLE)) {
+ setFavicon();
+ }
+ });
+};
+
+function setFavicon() {
+ var tiddler = $tw.wiki.getTiddler(FAVICON_TITLE);
+ if(tiddler) {
+ var faviconLink = document.getElementById("faviconLink");
+ faviconLink.setAttribute("href","data:" + tiddler.fields.type + ";base64," + tiddler.fields.text);
+ }
+}
+
+})();
+
+/*\
+title: $:/core/modules/startup/info.js
+type: application/javascript
+module-type: startup
+
+Initialise $:/info tiddlers via $:/temp/info-plugin pseudo-plugin
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Export name and synchronous status
+exports.name = "info";
+exports.before = ["startup"];
+exports.after = ["load-modules"];
+exports.synchronous = true;
+
+var TITLE_INFO_PLUGIN = "$:/temp/info-plugin";
+
+exports.startup = function() {
+ // Collect up the info tiddlers
+ var infoTiddlerFields = {};
+ // Give each info module a chance to fill in as many info tiddlers as they want
+ $tw.modules.forEachModuleOfType("info",function(title,moduleExports) {
+ if(moduleExports && moduleExports.getInfoTiddlerFields) {
+ var tiddlerFieldsArray = moduleExports.getInfoTiddlerFields(infoTiddlerFields);
+ $tw.utils.each(tiddlerFieldsArray,function(fields) {
+ if(fields) {
+ infoTiddlerFields[fields.title] = fields;
+ }
+ });
+ }
+ });
+ // Bake the info tiddlers into a plugin. We use the non-standard plugin-type "info" because ordinary plugins are only registered asynchronously after being loaded dynamically
+ var fields = {
+ title: TITLE_INFO_PLUGIN,
+ type: "application/json",
+ "plugin-type": "info",
+ text: JSON.stringify({tiddlers: infoTiddlerFields},null,$tw.config.preferences.jsonSpaces)
+ };
+ $tw.wiki.addTiddler(new $tw.Tiddler(fields));
+ $tw.wiki.readPluginInfo([TITLE_INFO_PLUGIN]);
+ $tw.wiki.registerPluginTiddlers("info");
+ $tw.wiki.unpackPluginTiddlers();
+};
+
+})();
+
+/*\
+title: $:/core/modules/startup/load-modules.js
+type: application/javascript
+module-type: startup
+
+Load core modules
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Export name and synchronous status
+exports.name = "load-modules";
+exports.synchronous = true;
+
+exports.startup = function() {
+ // Load modules
+ $tw.modules.applyMethods("utils",$tw.utils);
+ if($tw.node) {
+ $tw.modules.applyMethods("utils-node",$tw.utils);
+ }
+ $tw.modules.applyMethods("global",$tw);
+ $tw.modules.applyMethods("config",$tw.config);
+ $tw.Tiddler.fieldModules = $tw.modules.getModulesByTypeAsHashmap("tiddlerfield");
+ $tw.modules.applyMethods("tiddlermethod",$tw.Tiddler.prototype);
+ $tw.modules.applyMethods("wikimethod",$tw.Wiki.prototype);
+ $tw.wiki.addIndexersToWiki();
+ $tw.modules.applyMethods("tiddlerdeserializer",$tw.Wiki.tiddlerDeserializerModules);
+ $tw.macros = $tw.modules.getModulesByTypeAsHashmap("macro");
+ $tw.wiki.initParsers();
+ $tw.Commander.initCommands();
+};
+
+})();
+
+/*\
+title: $:/core/modules/startup/password.js
+type: application/javascript
+module-type: startup
+
+Password handling
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Export name and synchronous status
+exports.name = "password";
+exports.platforms = ["browser"];
+exports.after = ["startup"];
+exports.synchronous = true;
+
+exports.startup = function() {
+ $tw.rootWidget.addEventListener("tm-set-password",function(event) {
+ $tw.passwordPrompt.createPrompt({
+ serviceName: $tw.language.getString("Encryption/PromptSetPassword"),
+ noUserName: true,
+ submitText: $tw.language.getString("Encryption/SetPassword"),
+ canCancel: true,
+ repeatPassword: true,
+ callback: function(data) {
+ if(data) {
+ $tw.crypto.setPassword(data.password);
+ }
+ return true; // Get rid of the password prompt
+ }
+ });
+ });
+ $tw.rootWidget.addEventListener("tm-clear-password",function(event) {
+ if($tw.browser) {
+ if(!confirm($tw.language.getString("Encryption/ConfirmClearPassword"))) {
+ return;
+ }
+ }
+ $tw.crypto.setPassword(null);
+ });
+ // Ensure that $:/isEncrypted is maintained properly
+ $tw.wiki.addEventListener("change",function(changes) {
+ if($tw.utils.hop(changes,"$:/isEncrypted")) {
+ $tw.crypto.updateCryptoStateTiddler();
+ }
+ });
+};
+
+})();
+
+/*\
+title: $:/core/modules/startup/plugins.js
+type: application/javascript
+module-type: startup
+
+Startup logic concerned with managing plugins
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Export name and synchronous status
+exports.name = "plugins";
+exports.after = ["load-modules"];
+exports.synchronous = true;
+
+var TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE = "$:/status/RequireReloadDueToPluginChange";
+
+var PREFIX_CONFIG_REGISTER_PLUGIN_TYPE = "$:/config/RegisterPluginType/";
+
+exports.startup = function() {
+ $tw.wiki.addTiddler({title: TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE,text: "no"});
+ $tw.wiki.addEventListener("change",function(changes) {
+ var changesToProcess = [],
+ requireReloadDueToPluginChange = false;
+ $tw.utils.each(Object.keys(changes),function(title) {
+ var tiddler = $tw.wiki.getTiddler(title),
+ requiresReload = $tw.wiki.doesPluginRequireReload(title);
+ if(requiresReload) {
+ requireReloadDueToPluginChange = true;
+ } else if(tiddler) {
+ var pluginType = tiddler.fields["plugin-type"];
+ if($tw.wiki.getTiddlerText(PREFIX_CONFIG_REGISTER_PLUGIN_TYPE + (tiddler.fields["plugin-type"] || ""),"no") === "yes") {
+ changesToProcess.push(title);
+ }
+ }
+ });
+ if(requireReloadDueToPluginChange) {
+ $tw.wiki.addTiddler({title: TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE,text: "yes"});
+ }
+ // Read or delete the plugin info of the changed tiddlers
+ if(changesToProcess.length > 0) {
+ var changes = $tw.wiki.readPluginInfo(changesToProcess);
+ if(changes.modifiedPlugins.length > 0 || changes.deletedPlugins.length > 0) {
+ // (Re-)register any modified plugins
+ $tw.wiki.registerPluginTiddlers(null,changes.modifiedPlugins);
+ // Unregister any deleted plugins
+ $tw.wiki.unregisterPluginTiddlers(null,changes.deletedPlugins);
+ // Unpack the shadow tiddlers
+ $tw.wiki.unpackPluginTiddlers();
+ }
+ }
+ });
+};
+
+})();
+
+/*\
+title: $:/core/modules/startup/render.js
+type: application/javascript
+module-type: startup
+
+Title, stylesheet and page rendering
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Export name and synchronous status
+exports.name = "render";
+exports.platforms = ["browser"];
+exports.after = ["story"];
+exports.synchronous = true;
+
+// Default story and history lists
+var PAGE_TITLE_TITLE = "$:/core/wiki/title";
+var PAGE_STYLESHEET_TITLE = "$:/core/ui/PageStylesheet";
+var PAGE_TEMPLATE_TITLE = "$:/core/ui/PageTemplate";
+
+// Time (in ms) that we defer refreshing changes to draft tiddlers
+var DRAFT_TIDDLER_TIMEOUT_TITLE = "$:/config/Drafts/TypingTimeout";
+var THROTTLE_REFRESH_TIMEOUT = 400;
+
+exports.startup = function() {
+ // Set up the title
+ $tw.titleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TITLE_TITLE,{document: $tw.fakeDocument, parseAsInline: true});
+ $tw.titleContainer = $tw.fakeDocument.createElement("div");
+ $tw.titleWidgetNode.render($tw.titleContainer,null);
+ document.title = $tw.titleContainer.textContent;
+ $tw.wiki.addEventListener("change",function(changes) {
+ if($tw.titleWidgetNode.refresh(changes,$tw.titleContainer,null)) {
+ document.title = $tw.titleContainer.textContent;
+ }
+ });
+ // Set up the styles
+ $tw.styleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_STYLESHEET_TITLE,{document: $tw.fakeDocument});
+ $tw.styleContainer = $tw.fakeDocument.createElement("style");
+ $tw.styleWidgetNode.render($tw.styleContainer,null);
+ $tw.styleElement = document.createElement("style");
+ $tw.styleElement.innerHTML = $tw.styleContainer.textContent;
+ document.head.insertBefore($tw.styleElement,document.head.firstChild);
+ $tw.wiki.addEventListener("change",$tw.perf.report("styleRefresh",function(changes) {
+ if($tw.styleWidgetNode.refresh(changes,$tw.styleContainer,null)) {
+ $tw.styleElement.innerHTML = $tw.styleContainer.textContent;
+ }
+ }));
+ // Display the $:/core/ui/PageTemplate tiddler to kick off the display
+ $tw.perf.report("mainRender",function() {
+ $tw.pageWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TEMPLATE_TITLE,{document: document, parentWidget: $tw.rootWidget});
+ $tw.pageContainer = document.createElement("div");
+ $tw.utils.addClass($tw.pageContainer,"tc-page-container-wrapper");
+ document.body.insertBefore($tw.pageContainer,document.body.firstChild);
+ $tw.pageWidgetNode.render($tw.pageContainer,null);
+ $tw.hooks.invokeHook("th-page-refreshed");
+ })();
+ // Remove any splash screen elements
+ var removeList = document.querySelectorAll(".tc-remove-when-wiki-loaded");
+ $tw.utils.each(removeList,function(removeItem) {
+ if(removeItem.parentNode) {
+ removeItem.parentNode.removeChild(removeItem);
+ }
+ });
+ // Prepare refresh mechanism
+ var deferredChanges = Object.create(null),
+ timerId;
+ function refresh() {
+ // Process the refresh
+ $tw.hooks.invokeHook("th-page-refreshing");
+ $tw.pageWidgetNode.refresh(deferredChanges);
+ deferredChanges = Object.create(null);
+ $tw.hooks.invokeHook("th-page-refreshed");
+ }
+ // Add the change event handler
+ $tw.wiki.addEventListener("change",$tw.perf.report("mainRefresh",function(changes) {
+ // Check if only tiddlers that are throttled have changed
+ var onlyThrottledTiddlersHaveChanged = true;
+ for(var title in changes) {
+ var tiddler = $tw.wiki.getTiddler(title);
+ if(!tiddler || !(tiddler.hasField("draft.of") || tiddler.hasField("throttle.refresh"))) {
+ onlyThrottledTiddlersHaveChanged = false;
+ }
+ }
+ // Defer the change if only drafts have changed
+ if(timerId) {
+ clearTimeout(timerId);
+ }
+ timerId = null;
+ if(onlyThrottledTiddlersHaveChanged) {
+ var timeout = parseInt($tw.wiki.getTiddlerText(DRAFT_TIDDLER_TIMEOUT_TITLE,""),10);
+ if(isNaN(timeout)) {
+ timeout = THROTTLE_REFRESH_TIMEOUT;
+ }
+ timerId = setTimeout(refresh,timeout);
+ $tw.utils.extend(deferredChanges,changes);
+ } else {
+ $tw.utils.extend(deferredChanges,changes);
+ refresh();
+ }
+ }));
+ // Fix up the link between the root widget and the page container
+ $tw.rootWidget.domNodes = [$tw.pageContainer];
+ $tw.rootWidget.children = [$tw.pageWidgetNode];
+};
+
+})();
+
+/*\
+title: $:/core/modules/startup/rootwidget.js
+type: application/javascript
+module-type: startup
+
+Setup the root widget and the core root widget handlers
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Export name and synchronous status
+exports.name = "rootwidget";
+exports.platforms = ["browser"];
+exports.after = ["startup"];
+exports.before = ["story"];
+exports.synchronous = true;
+
+exports.startup = function() {
+ // Install the modal message mechanism
+ $tw.modal = new $tw.utils.Modal($tw.wiki);
+ $tw.rootWidget.addEventListener("tm-modal",function(event) {
+ $tw.modal.display(event.param,{variables: event.paramObject, event: event});
+ });
+ // Install the notification mechanism
+ $tw.notifier = new $tw.utils.Notifier($tw.wiki);
+ $tw.rootWidget.addEventListener("tm-notify",function(event) {
+ $tw.notifier.display(event.param,{variables: event.paramObject});
+ });
+ // Install the copy-to-clipboard mechanism
+ $tw.rootWidget.addEventListener("tm-copy-to-clipboard",function(event) {
+ $tw.utils.copyToClipboard(event.param);
+ });
+ // Install the tm-focus-selector message
+ $tw.rootWidget.addEventListener("tm-focus-selector",function(event) {
+ var selector = event.param || "",
+ element;
+ try {
+ element = document.querySelector(selector);
+ } catch(e) {
+ console.log("Error in selector: ",selector)
+ }
+ if(element && element.focus) {
+ element.focus(event.paramObject);
+ }
+ });
+ // Install the scroller
+ $tw.pageScroller = new $tw.utils.PageScroller();
+ $tw.rootWidget.addEventListener("tm-scroll",function(event) {
+ $tw.pageScroller.handleEvent(event);
+ });
+ var fullscreen = $tw.utils.getFullScreenApis();
+ if(fullscreen) {
+ $tw.rootWidget.addEventListener("tm-full-screen",function(event) {
+ var fullScreenDocument = event.event ? event.event.target.ownerDocument : document;
+ if(event.param === "enter") {
+ fullScreenDocument.documentElement[fullscreen._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT);
+ } else if(event.param === "exit") {
+ fullScreenDocument[fullscreen._exitFullscreen]();
+ } else {
+ if(fullScreenDocument[fullscreen._fullscreenElement]) {
+ fullScreenDocument[fullscreen._exitFullscreen]();
+ } else {
+ fullScreenDocument.documentElement[fullscreen._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT);
+ }
+ }
+ });
+ }
+ // If we're being viewed on a data: URI then give instructions for how to save
+ if(document.location.protocol === "data:") {
+ $tw.rootWidget.dispatchEvent({
+ type: "tm-modal",
+ param: "$:/language/Modals/SaveInstructions"
+ });
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/startup/story.js
+type: application/javascript
+module-type: startup
+
+Load core modules
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Export name and synchronous status
+exports.name = "story";
+exports.after = ["startup"];
+exports.synchronous = true;
+
+// Default story and history lists
+var DEFAULT_STORY_TITLE = "$:/StoryList";
+var DEFAULT_HISTORY_TITLE = "$:/HistoryList";
+
+// Default tiddlers
+var DEFAULT_TIDDLERS_TITLE = "$:/DefaultTiddlers";
+
+// Config
+var CONFIG_UPDATE_ADDRESS_BAR = "$:/config/Navigation/UpdateAddressBar"; // Can be "no", "permalink", "permaview"
+var CONFIG_UPDATE_HISTORY = "$:/config/Navigation/UpdateHistory"; // Can be "yes" or "no"
+var CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD = "$:/config/Navigation/Permalinkview/CopyToClipboard"; // Can be "yes" (default) or "no"
+var CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR = "$:/config/Navigation/Permalinkview/UpdateAddressBar"; // Can be "yes" (default) or "no"
+
+
+// Links to help, if there is no param
+var HELP_OPEN_EXTERNAL_WINDOW = "http://tiddlywiki.com/#WidgetMessage%3A%20tm-open-external-window";
+
+exports.startup = function() {
+ // Open startup tiddlers
+ openStartupTiddlers({
+ disableHistory: $tw.boot.disableStartupNavigation
+ });
+ if($tw.browser) {
+ // Set up location hash update
+ $tw.wiki.addEventListener("change",function(changes) {
+ if($tw.utils.hop(changes,DEFAULT_STORY_TITLE) || $tw.utils.hop(changes,DEFAULT_HISTORY_TITLE)) {
+ updateLocationHash({
+ updateAddressBar: $tw.wiki.getTiddlerText(CONFIG_UPDATE_ADDRESS_BAR,"permaview").trim(),
+ updateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,"no").trim()
+ });
+ }
+ });
+ // Listen for changes to the browser location hash
+ window.addEventListener("hashchange",function() {
+ var hash = $tw.utils.getLocationHash();
+ if(hash !== $tw.locationHash) {
+ $tw.locationHash = hash;
+ openStartupTiddlers({defaultToCurrentStory: true});
+ }
+ },false);
+ // Listen for the tm-browser-refresh message
+ $tw.rootWidget.addEventListener("tm-browser-refresh",function(event) {
+ window.location.reload(true);
+ });
+ // Listen for tm-open-external-window message
+ $tw.rootWidget.addEventListener("tm-open-external-window",function(event) {
+ var paramObject = event.paramObject || {},
+ strUrl = event.param || HELP_OPEN_EXTERNAL_WINDOW,
+ strWindowName = paramObject.windowName,
+ strWindowFeatures = paramObject.windowFeatures;
+ window.open(strUrl, strWindowName, strWindowFeatures);
+ });
+ // Listen for the tm-print message
+ $tw.rootWidget.addEventListener("tm-print",function(event) {
+ (event.event.view || window).print();
+ });
+ // Listen for the tm-home message
+ $tw.rootWidget.addEventListener("tm-home",function(event) {
+ window.location.hash = "";
+ var storyFilter = $tw.wiki.getTiddlerText(DEFAULT_TIDDLERS_TITLE),
+ storyList = $tw.wiki.filterTiddlers(storyFilter);
+ //invoke any hooks that might change the default story list
+ storyList = $tw.hooks.invokeHook("th-opening-default-tiddlers-list",storyList);
+ $tw.wiki.addTiddler({title: DEFAULT_STORY_TITLE, text: "", list: storyList},$tw.wiki.getModificationFields());
+ if(storyList[0]) {
+ $tw.wiki.addToHistory(storyList[0]);
+ }
+ });
+ // Listen for the tm-permalink message
+ $tw.rootWidget.addEventListener("tm-permalink",function(event) {
+ updateLocationHash({
+ updateAddressBar: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR,"yes").trim() === "yes" ? "permalink" : "none",
+ updateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,"no").trim(),
+ targetTiddler: event.param || event.tiddlerTitle,
+ copyToClipboard: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD,"yes").trim() === "yes" ? "permalink" : "none"
+ });
+ });
+ // Listen for the tm-permaview message
+ $tw.rootWidget.addEventListener("tm-permaview",function(event) {
+ updateLocationHash({
+ updateAddressBar: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR,"yes").trim() === "yes" ? "permaview" : "none",
+ updateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,"no").trim(),
+ targetTiddler: event.param || event.tiddlerTitle,
+ copyToClipboard: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD,"yes").trim() === "yes" ? "permaview" : "none"
+ });
+ });
+ }
+};
+
+/*
+Process the location hash to open the specified tiddlers. Options:
+disableHistory: if true $:/History is NOT updated
+defaultToCurrentStory: If true, the current story is retained as the default, instead of opening the default tiddlers
+*/
+function openStartupTiddlers(options) {
+ options = options || {};
+ // Work out the target tiddler and the story filter. "null" means "unspecified"
+ var target = null,
+ storyFilter = null;
+ if($tw.locationHash.length > 1) {
+ var hash = $tw.locationHash.substr(1),
+ split = hash.indexOf(":");
+ if(split === -1) {
+ target = decodeURIComponent(hash.trim());
+ } else {
+ target = decodeURIComponent(hash.substr(0,split).trim());
+ storyFilter = decodeURIComponent(hash.substr(split + 1).trim());
+ }
+ }
+ // If the story wasn't specified use the current tiddlers or a blank story
+ if(storyFilter === null) {
+ if(options.defaultToCurrentStory) {
+ var currStoryList = $tw.wiki.getTiddlerList(DEFAULT_STORY_TITLE);
+ storyFilter = $tw.utils.stringifyList(currStoryList);
+ } else {
+ if(target && target !== "") {
+ storyFilter = "";
+ } else {
+ storyFilter = $tw.wiki.getTiddlerText(DEFAULT_TIDDLERS_TITLE);
+ }
+ }
+ }
+ // Process the story filter to get the story list
+ var storyList = $tw.wiki.filterTiddlers(storyFilter);
+ // Invoke any hooks that want to change the default story list
+ storyList = $tw.hooks.invokeHook("th-opening-default-tiddlers-list",storyList);
+ // If the target tiddler isn't included then splice it in at the top
+ if(target && storyList.indexOf(target) === -1) {
+ storyList.unshift(target);
+ }
+ // Save the story list
+ $tw.wiki.addTiddler({title: DEFAULT_STORY_TITLE, text: "", list: storyList},$tw.wiki.getModificationFields());
+ // Update history
+ if(!options.disableHistory) {
+ // If a target tiddler was specified add it to the history stack
+ if(target && target !== "") {
+ // The target tiddler doesn't need double square brackets, but we'll silently remove them if they're present
+ if(target.indexOf("[[") === 0 && target.substr(-2) === "]]") {
+ target = target.substr(2,target.length - 4);
+ }
+ $tw.wiki.addToHistory(target);
+ } else if(storyList.length > 0) {
+ $tw.wiki.addToHistory(storyList[0]);
+ }
+ }
+}
+
+/*
+options: See below
+options.updateAddressBar: "permalink", "permaview" or "no" (defaults to "permaview")
+options.updateHistory: "yes" or "no" (defaults to "no")
+options.copyToClipboard: "permalink", "permaview" or "no" (defaults to "no")
+options.targetTiddler: optional title of target tiddler for permalink
+*/
+function updateLocationHash(options) {
+ // Get the story and the history stack
+ var storyList = $tw.wiki.getTiddlerList(DEFAULT_STORY_TITLE),
+ historyList = $tw.wiki.getTiddlerData(DEFAULT_HISTORY_TITLE,[]),
+ targetTiddler = "";
+ if(options.targetTiddler) {
+ targetTiddler = options.targetTiddler;
+ } else {
+ // The target tiddler is the one at the top of the stack
+ if(historyList.length > 0) {
+ targetTiddler = historyList[historyList.length-1].title;
+ }
+ // Blank the target tiddler if it isn't present in the story
+ if(storyList.indexOf(targetTiddler) === -1) {
+ targetTiddler = "";
+ }
+ }
+ // Assemble the location hash
+ switch(options.updateAddressBar) {
+ case "permalink":
+ $tw.locationHash = "#" + encodeURIComponent(targetTiddler);
+ break;
+ case "permaview":
+ $tw.locationHash = "#" + encodeURIComponent(targetTiddler) + ":" + encodeURIComponent($tw.utils.stringifyList(storyList));
+ break;
+ }
+ // Copy URL to the clipboard
+ switch(options.copyToClipboard) {
+ case "permalink":
+ $tw.utils.copyToClipboard($tw.utils.getLocationPath() + "#" + encodeURIComponent(targetTiddler));
+ break;
+ case "permaview":
+ $tw.utils.copyToClipboard($tw.utils.getLocationPath() + "#" + encodeURIComponent(targetTiddler) + ":" + encodeURIComponent($tw.utils.stringifyList(storyList)));
+ break;
+ }
+ // Only change the location hash if we must, thus avoiding unnecessary onhashchange events
+ if($tw.utils.getLocationHash() !== $tw.locationHash) {
+ if(options.updateHistory === "yes") {
+ // Assign the location hash so that history is updated
+ window.location.hash = $tw.locationHash;
+ } else {
+ // We use replace so that browser history isn't affected
+ window.location.replace(window.location.toString().split("#")[0] + $tw.locationHash);
+ }
+ }
+}
+
+})();
+
+/*\
+title: $:/core/modules/startup/windows.js
+type: application/javascript
+module-type: startup
+
+Setup root widget handlers for the messages concerned with opening external browser windows
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Export name and synchronous status
+exports.name = "windows";
+exports.platforms = ["browser"];
+exports.after = ["startup"];
+exports.synchronous = true;
+
+// Global to keep track of open windows (hashmap by title)
+var windows = {};
+
+exports.startup = function() {
+ // Handle open window message
+ $tw.rootWidget.addEventListener("tm-open-window",function(event) {
+ // Get the parameters
+ var refreshHandler,
+ title = event.param || event.tiddlerTitle,
+ paramObject = event.paramObject || {},
+ windowTitle = paramObject.windowTitle || title,
+ template = paramObject.template || "$:/core/templates/single.tiddler.window",
+ width = paramObject.width || "700",
+ height = paramObject.height || "600",
+ variables = $tw.utils.extend({},paramObject,{currentTiddler: title});
+ // Open the window
+ var srcWindow,
+ srcDocument;
+ // In case that popup blockers deny opening a new window
+ try {
+ srcWindow = window.open("","external-" + title,"scrollbars,width=" + width + ",height=" + height),
+ srcDocument = srcWindow.document;
+ }
+ catch(e) {
+ return;
+ }
+ windows[title] = srcWindow;
+ // Check for reopening the same window
+ if(srcWindow.haveInitialisedWindow) {
+ return;
+ }
+ // Initialise the document
+ srcDocument.write("<html><head></head><body class='tc-body tc-single-tiddler-window'></body></html>");
+ srcDocument.close();
+ srcDocument.title = windowTitle;
+ srcWindow.addEventListener("beforeunload",function(event) {
+ delete windows[title];
+ $tw.wiki.removeEventListener("change",refreshHandler);
+ },false);
+ // Set up the styles
+ var styleWidgetNode = $tw.wiki.makeTranscludeWidget("$:/core/ui/PageStylesheet",{
+ document: $tw.fakeDocument,
+ variables: variables,
+ importPageMacros: true}),
+ styleContainer = $tw.fakeDocument.createElement("style");
+ styleWidgetNode.render(styleContainer,null);
+ var styleElement = srcDocument.createElement("style");
+ styleElement.innerHTML = styleContainer.textContent;
+ srcDocument.head.insertBefore(styleElement,srcDocument.head.firstChild);
+ // Render the text of the tiddler
+ var parser = $tw.wiki.parseTiddler(template),
+ widgetNode = $tw.wiki.makeWidget(parser,{document: srcDocument, parentWidget: $tw.rootWidget, variables: variables});
+ widgetNode.render(srcDocument.body,srcDocument.body.firstChild);
+ // Function to handle refreshes
+ refreshHandler = function(changes) {
+ if(styleWidgetNode.refresh(changes,styleContainer,null)) {
+ styleElement.innerHTML = styleContainer.textContent;
+ }
+ widgetNode.refresh(changes);
+ };
+ $tw.wiki.addEventListener("change",refreshHandler);
+ // Listen for keyboard shortcuts
+ $tw.utils.addEventListeners(srcDocument,[{
+ name: "keydown",
+ handlerObject: $tw.keyboardManager,
+ handlerMethod: "handleKeydownEvent"
+ },{
+ name: "click",
+ handlerObject: $tw.popup,
+ handlerMethod: "handleEvent"
+ }]);
+ srcWindow.haveInitialisedWindow = true;
+ });
+ // Close open windows when unloading main window
+ $tw.addUnloadTask(function() {
+ $tw.utils.each(windows,function(win) {
+ win.close();
+ });
+ });
+
+};
+
+})();
+
+/*\
+title: $:/core/modules/story.js
+type: application/javascript
+module-type: global
+
+Lightweight object for managing interactions with the story and history lists.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Construct Story object with options:
+wiki: reference to wiki object to use to resolve tiddler titles
+storyTitle: title of story list tiddler
+historyTitle: title of history list tiddler
+*/
+function Story(options) {
+ options = options || {};
+ this.wiki = options.wiki || $tw.wiki;
+ this.storyTitle = options.storyTitle || "$:/StoryList";
+ this.historyTitle = options.historyTitle || "$:/HistoryList";
+};
+
+Story.prototype.navigateTiddler = function(navigateTo,navigateFromTitle,navigateFromClientRect) {
+ this.addToStory(navigateTo,navigateFromTitle);
+ this.addToHistory(navigateTo,navigateFromClientRect);
+};
+
+Story.prototype.getStoryList = function() {
+ return this.wiki.getTiddlerList(this.storyTitle) || [];
+};
+
+Story.prototype.addToStory = function(navigateTo,navigateFromTitle,options) {
+ options = options || {};
+ var storyList = this.getStoryList();
+ // See if the tiddler is already there
+ var slot = storyList.indexOf(navigateTo);
+ // Quit if it already exists in the story river
+ if(slot >= 0) {
+ return;
+ }
+ // First we try to find the position of the story element we navigated from
+ var fromIndex = storyList.indexOf(navigateFromTitle);
+ if(fromIndex >= 0) {
+ // The tiddler is added from inside the river
+ // Determine where to insert the tiddler; Fallback is "below"
+ switch(options.openLinkFromInsideRiver) {
+ case "top":
+ slot = 0;
+ break;
+ case "bottom":
+ slot = storyList.length;
+ break;
+ case "above":
+ slot = fromIndex;
+ break;
+ case "below": // Intentional fall-through
+ default:
+ slot = fromIndex + 1;
+ break;
+ }
+ } else {
+ // The tiddler is opened from outside the river. Determine where to insert the tiddler; default is "top"
+ if(options.openLinkFromOutsideRiver === "bottom") {
+ // Insert at bottom
+ slot = storyList.length;
+ } else {
+ // Insert at top
+ slot = 0;
+ }
+ }
+ // Add the tiddler
+ storyList.splice(slot,0,navigateTo);
+ // Save the story
+ this.saveStoryList(storyList);
+};
+
+Story.prototype.saveStoryList = function(storyList) {
+ var storyTiddler = this.wiki.getTiddler(this.storyTitle);
+ this.wiki.addTiddler(new $tw.Tiddler(
+ this.wiki.getCreationFields(),
+ {title: this.storyTitle},
+ storyTiddler,
+ {list: storyList},
+ this.wiki.getModificationFields()
+ ));
+};
+
+Story.prototype.addToHistory = function(navigateTo,navigateFromClientRect) {
+ var titles = $tw.utils.isArray(navigateTo) ? navigateTo : [navigateTo];
+ // Add a new record to the top of the history stack
+ var historyList = this.wiki.getTiddlerData(this.historyTitle,[]);
+ $tw.utils.each(titles,function(title) {
+ historyList.push({title: title, fromPageRect: navigateFromClientRect});
+ });
+ this.wiki.setTiddlerData(this.historyTitle,historyList,{"current-tiddler": titles[titles.length-1]});
+};
+
+Story.prototype.storyCloseTiddler = function(targetTitle) {
+// TBD
+};
+
+Story.prototype.storyCloseAllTiddlers = function() {
+// TBD
+};
+
+Story.prototype.storyCloseOtherTiddlers = function(targetTitle) {
+// TBD
+};
+
+Story.prototype.storyEditTiddler = function(targetTitle) {
+// TBD
+};
+
+Story.prototype.storyDeleteTiddler = function(targetTitle) {
+// TBD
+};
+
+Story.prototype.storySaveTiddler = function(targetTitle) {
+// TBD
+};
+
+Story.prototype.storyCancelTiddler = function(targetTitle) {
+// TBD
+};
+
+Story.prototype.storyNewTiddler = function(targetTitle) {
+// TBD
+};
+
+exports.Story = Story;
+
+
+})();
+
+/*\
+title: $:/core/modules/storyviews/classic.js
+type: application/javascript
+module-type: storyview
+
+Views the story as a linear sequence
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var easing = "cubic-bezier(0.645, 0.045, 0.355, 1)"; // From http://easings.net/#easeInOutCubic
+
+var ClassicStoryView = function(listWidget) {
+ this.listWidget = listWidget;
+};
+
+ClassicStoryView.prototype.navigateTo = function(historyInfo) {
+ var duration = $tw.utils.getAnimationDuration()
+ var listElementIndex = this.listWidget.findListItem(0,historyInfo.title);
+ if(listElementIndex === undefined) {
+ return;
+ }
+ var listItemWidget = this.listWidget.children[listElementIndex],
+ targetElement = listItemWidget.findFirstDomNode();
+ // Abandon if the list entry isn't a DOM element (it might be a text node)
+ if(!(targetElement instanceof Element)) {
+ return;
+ }
+ if(duration) {
+ // Scroll the node into view
+ this.listWidget.dispatchEvent({type: "tm-scroll", target: targetElement});
+ } else {
+ targetElement.scrollIntoView();
+ }
+};
+
+ClassicStoryView.prototype.insert = function(widget) {
+ var duration = $tw.utils.getAnimationDuration();
+ if(duration) {
+ var targetElement = widget.findFirstDomNode();
+ // Abandon if the list entry isn't a DOM element (it might be a text node)
+ if(!(targetElement instanceof Element)) {
+ return;
+ }
+ // Get the current height of the tiddler
+ var computedStyle = window.getComputedStyle(targetElement),
+ currMarginBottom = parseInt(computedStyle.marginBottom,10),
+ currMarginTop = parseInt(computedStyle.marginTop,10),
+ currHeight = targetElement.offsetHeight + currMarginTop;
+ // Reset the margin once the transition is over
+ setTimeout(function() {
+ $tw.utils.setStyle(targetElement,[
+ {transition: "none"},
+ {marginBottom: ""}
+ ]);
+ },duration);
+ // Set up the initial position of the element
+ $tw.utils.setStyle(targetElement,[
+ {transition: "none"},
+ {marginBottom: (-currHeight) + "px"},
+ {opacity: "0.0"}
+ ]);
+ $tw.utils.forceLayout(targetElement);
+ // Transition to the final position
+ $tw.utils.setStyle(targetElement,[
+ {transition: "opacity " + duration + "ms " + easing + ", " +
+ "margin-bottom " + duration + "ms " + easing},
+ {marginBottom: currMarginBottom + "px"},
+ {opacity: "1.0"}
+ ]);
+ }
+};
+
+ClassicStoryView.prototype.remove = function(widget) {
+ var duration = $tw.utils.getAnimationDuration();
+ if(duration) {
+ var targetElement = widget.findFirstDomNode(),
+ removeElement = function() {
+ widget.removeChildDomNodes();
+ };
+ // Abandon if the list entry isn't a DOM element (it might be a text node)
+ if(!(targetElement instanceof Element)) {
+ removeElement();
+ return;
+ }
+ // Get the current height of the tiddler
+ var currWidth = targetElement.offsetWidth,
+ computedStyle = window.getComputedStyle(targetElement),
+ currMarginBottom = parseInt(computedStyle.marginBottom,10),
+ currMarginTop = parseInt(computedStyle.marginTop,10),
+ currHeight = targetElement.offsetHeight + currMarginTop;
+ // Remove the dom nodes of the widget at the end of the transition
+ setTimeout(removeElement,duration);
+ // Animate the closure
+ $tw.utils.setStyle(targetElement,[
+ {transition: "none"},
+ {transform: "translateX(0px)"},
+ {marginBottom: currMarginBottom + "px"},
+ {opacity: "1.0"}
+ ]);
+ $tw.utils.forceLayout(targetElement);
+ $tw.utils.setStyle(targetElement,[
+ {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms " + easing + ", " +
+ "opacity " + duration + "ms " + easing + ", " +
+ "margin-bottom " + duration + "ms " + easing},
+ {transform: "translateX(-" + currWidth + "px)"},
+ {marginBottom: (-currHeight) + "px"},
+ {opacity: "0.0"}
+ ]);
+ } else {
+ widget.removeChildDomNodes();
+ }
+};
+
+exports.classic = ClassicStoryView;
+
+})();
+/*\
+title: $:/core/modules/storyviews/pop.js
+type: application/javascript
+module-type: storyview
+
+Animates list insertions and removals
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var PopStoryView = function(listWidget) {
+ this.listWidget = listWidget;
+};
+
+PopStoryView.prototype.navigateTo = function(historyInfo) {
+ var listElementIndex = this.listWidget.findListItem(0,historyInfo.title);
+ if(listElementIndex === undefined) {
+ return;
+ }
+ var listItemWidget = this.listWidget.children[listElementIndex],
+ targetElement = listItemWidget.findFirstDomNode();
+ // Abandon if the list entry isn't a DOM element (it might be a text node)
+ if(!(targetElement instanceof Element)) {
+ return;
+ }
+ // Scroll the node into view
+ this.listWidget.dispatchEvent({type: "tm-scroll", target: targetElement});
+};
+
+PopStoryView.prototype.insert = function(widget) {
+ var targetElement = widget.findFirstDomNode(),
+ duration = $tw.utils.getAnimationDuration();
+ // Abandon if the list entry isn't a DOM element (it might be a text node)
+ if(!(targetElement instanceof Element)) {
+ return;
+ }
+ // Reset once the transition is over
+ setTimeout(function() {
+ $tw.utils.setStyle(targetElement,[
+ {transition: "none"},
+ {transform: "none"}
+ ]);
+ $tw.utils.setStyle(widget.document.body,[
+ {"overflow-x": ""}
+ ]);
+ },duration);
+ // Prevent the page from overscrolling due to the zoom factor
+ $tw.utils.setStyle(widget.document.body,[
+ {"overflow-x": "hidden"}
+ ]);
+ // Set up the initial position of the element
+ $tw.utils.setStyle(targetElement,[
+ {transition: "none"},
+ {transform: "scale(2)"},
+ {opacity: "0.0"}
+ ]);
+ $tw.utils.forceLayout(targetElement);
+ // Transition to the final position
+ $tw.utils.setStyle(targetElement,[
+ {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms ease-in-out, " +
+ "opacity " + duration + "ms ease-in-out"},
+ {transform: "scale(1)"},
+ {opacity: "1.0"}
+ ]);
+};
+
+PopStoryView.prototype.remove = function(widget) {
+ var targetElement = widget.findFirstDomNode(),
+ duration = $tw.utils.getAnimationDuration(),
+ removeElement = function() {
+ if(targetElement && targetElement.parentNode) {
+ widget.removeChildDomNodes();
+ }
+ };
+ // Abandon if the list entry isn't a DOM element (it might be a text node)
+ if(!(targetElement instanceof Element)) {
+ removeElement();
+ return;
+ }
+ // Remove the element at the end of the transition
+ setTimeout(removeElement,duration);
+ // Animate the closure
+ $tw.utils.setStyle(targetElement,[
+ {transition: "none"},
+ {transform: "scale(1)"},
+ {opacity: "1.0"}
+ ]);
+ $tw.utils.forceLayout(targetElement);
+ $tw.utils.setStyle(targetElement,[
+ {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms ease-in-out, " +
+ "opacity " + duration + "ms ease-in-out"},
+ {transform: "scale(0.1)"},
+ {opacity: "0.0"}
+ ]);
+};
+
+exports.pop = PopStoryView;
+
+})();
+
+/*\
+title: $:/core/modules/storyviews/zoomin.js
+type: application/javascript
+module-type: storyview
+
+Zooms between individual tiddlers
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var easing = "cubic-bezier(0.645, 0.045, 0.355, 1)"; // From http://easings.net/#easeInOutCubic
+
+var ZoominListView = function(listWidget) {
+ var self = this;
+ this.listWidget = listWidget;
+ // Get the index of the tiddler that is at the top of the history
+ var history = this.listWidget.wiki.getTiddlerDataCached(this.listWidget.historyTitle,[]),
+ targetTiddler;
+ if(history.length > 0) {
+ targetTiddler = history[history.length-1].title;
+ }
+ // Make all the tiddlers position absolute, and hide all but the top (or first) one
+ $tw.utils.each(this.listWidget.children,function(itemWidget,index) {
+ var domNode = itemWidget.findFirstDomNode();
+ // Abandon if the list entry isn't a DOM element (it might be a text node)
+ if(!(domNode instanceof Element)) {
+ return;
+ }
+ if((targetTiddler && targetTiddler !== itemWidget.parseTreeNode.itemTitle) || (!targetTiddler && index)) {
+ domNode.style.display = "none";
+ } else {
+ self.currentTiddlerDomNode = domNode;
+ }
+ $tw.utils.addClass(domNode,"tc-storyview-zoomin-tiddler");
+ });
+};
+
+ZoominListView.prototype.navigateTo = function(historyInfo) {
+ var duration = $tw.utils.getAnimationDuration(),
+ listElementIndex = this.listWidget.findListItem(0,historyInfo.title);
+ if(listElementIndex === undefined) {
+ return;
+ }
+ var listItemWidget = this.listWidget.children[listElementIndex],
+ targetElement = listItemWidget.findFirstDomNode();
+ // Abandon if the list entry isn't a DOM element (it might be a text node)
+ if(!(targetElement instanceof Element)) {
+ return;
+ }
+ // Make the new tiddler be position absolute and visible so that we can measure it
+ $tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler");
+ $tw.utils.setStyle(targetElement,[
+ {display: "block"},
+ {transformOrigin: "0 0"},
+ {transform: "translateX(0px) translateY(0px) scale(1)"},
+ {transition: "none"},
+ {opacity: "0.0"}
+ ]);
+ // Get the position of the source node, or use the centre of the window as the source position
+ var sourceBounds = historyInfo.fromPageRect || {
+ left: window.innerWidth/2 - 2,
+ top: window.innerHeight/2 - 2,
+ width: window.innerWidth/8,
+ height: window.innerHeight/8
+ };
+ // Try to find the title node in the target tiddler
+ var titleDomNode = findTitleDomNode(listItemWidget) || listItemWidget.findFirstDomNode(),
+ zoomBounds = titleDomNode.getBoundingClientRect();
+ // Compute the transform for the target tiddler to make the title lie over the source rectange
+ var targetBounds = targetElement.getBoundingClientRect(),
+ scale = sourceBounds.width / zoomBounds.width,
+ x = sourceBounds.left - targetBounds.left - (zoomBounds.left - targetBounds.left) * scale,
+ y = sourceBounds.top - targetBounds.top - (zoomBounds.top - targetBounds.top) * scale;
+ // Transform the target tiddler to its starting position
+ $tw.utils.setStyle(targetElement,[
+ {transform: "translateX(" + x + "px) translateY(" + y + "px) scale(" + scale + ")"}
+ ]);
+ // Force layout
+ $tw.utils.forceLayout(targetElement);
+ // Apply the ending transitions with a timeout to ensure that the previously applied transformations are applied first
+ var self = this,
+ prevCurrentTiddler = this.currentTiddlerDomNode;
+ this.currentTiddlerDomNode = targetElement;
+ // Transform the target tiddler to its natural size
+ $tw.utils.setStyle(targetElement,[
+ {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms " + easing + ", opacity " + duration + "ms " + easing},
+ {opacity: "1.0"},
+ {transform: "translateX(0px) translateY(0px) scale(1)"},
+ {zIndex: "500"},
+ ]);
+ // Transform the previous tiddler out of the way and then hide it
+ if(prevCurrentTiddler && prevCurrentTiddler !== targetElement) {
+ scale = zoomBounds.width / sourceBounds.width;
+ x = zoomBounds.left - targetBounds.left - (sourceBounds.left - targetBounds.left) * scale;
+ y = zoomBounds.top - targetBounds.top - (sourceBounds.top - targetBounds.top) * scale;
+ $tw.utils.setStyle(prevCurrentTiddler,[
+ {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms " + easing + ", opacity " + duration + "ms " + easing},
+ {opacity: "0.0"},
+ {transformOrigin: "0 0"},
+ {transform: "translateX(" + x + "px) translateY(" + y + "px) scale(" + scale + ")"},
+ {zIndex: "0"}
+ ]);
+ // Hide the tiddler when the transition has finished
+ setTimeout(function() {
+ if(self.currentTiddlerDomNode !== prevCurrentTiddler) {
+ prevCurrentTiddler.style.display = "none";
+ }
+ },duration);
+ }
+ // Scroll the target into view
+// $tw.pageScroller.scrollIntoView(targetElement);
+};
+
+/*
+Find the first child DOM node of a widget that has the class "tc-title"
+*/
+function findTitleDomNode(widget,targetClass) {
+ targetClass = targetClass || "tc-title";
+ var domNode = widget.findFirstDomNode();
+ if(domNode && domNode.querySelector) {
+ return domNode.querySelector("." + targetClass);
+ }
+ return null;
+}
+
+ZoominListView.prototype.insert = function(widget) {
+ var targetElement = widget.findFirstDomNode();
+ // Abandon if the list entry isn't a DOM element (it might be a text node)
+ if(!(targetElement instanceof Element)) {
+ return;
+ }
+ // Make the newly inserted node position absolute and hidden
+ $tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler");
+ $tw.utils.setStyle(targetElement,[
+ {display: "none"}
+ ]);
+};
+
+ZoominListView.prototype.remove = function(widget) {
+ var targetElement = widget.findFirstDomNode(),
+ duration = $tw.utils.getAnimationDuration(),
+ removeElement = function() {
+ widget.removeChildDomNodes();
+ };
+ // Abandon if the list entry isn't a DOM element (it might be a text node)
+ if(!(targetElement instanceof Element)) {
+ removeElement();
+ return;
+ }
+ // Abandon if hidden
+ if(targetElement.style.display != "block" ) {
+ removeElement();
+ return;
+ }
+ // Set up the tiddler that is being closed
+ $tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler");
+ $tw.utils.setStyle(targetElement,[
+ {display: "block"},
+ {transformOrigin: "50% 50%"},
+ {transform: "translateX(0px) translateY(0px) scale(1)"},
+ {transition: "none"},
+ {zIndex: "0"}
+ ]);
+ // We'll move back to the previous or next element in the story
+ var toWidget = widget.previousSibling();
+ if(!toWidget) {
+ toWidget = widget.nextSibling();
+ }
+ var toWidgetDomNode = toWidget && toWidget.findFirstDomNode();
+ // Set up the tiddler we're moving back in
+ if(toWidgetDomNode) {
+ $tw.utils.addClass(toWidgetDomNode,"tc-storyview-zoomin-tiddler");
+ $tw.utils.setStyle(toWidgetDomNode,[
+ {display: "block"},
+ {transformOrigin: "50% 50%"},
+ {transform: "translateX(0px) translateY(0px) scale(10)"},
+ {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms " + easing + ", opacity " + duration + "ms " + easing},
+ {opacity: "0"},
+ {zIndex: "500"}
+ ]);
+ this.currentTiddlerDomNode = toWidgetDomNode;
+ }
+ // Animate them both
+ // Force layout
+ $tw.utils.forceLayout(this.listWidget.parentDomNode);
+ // First, the tiddler we're closing
+ $tw.utils.setStyle(targetElement,[
+ {transformOrigin: "50% 50%"},
+ {transform: "translateX(0px) translateY(0px) scale(0.1)"},
+ {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms " + easing + ", opacity " + duration + "ms " + easing},
+ {opacity: "0"},
+ {zIndex: "0"}
+ ]);
+ setTimeout(removeElement,duration);
+ // Now the tiddler we're going back to
+ if(toWidgetDomNode) {
+ $tw.utils.setStyle(toWidgetDomNode,[
+ {transform: "translateX(0px) translateY(0px) scale(1)"},
+ {opacity: "1"}
+ ]);
+ }
+ return true; // Indicate that we'll delete the DOM node
+};
+
+exports.zoomin = ZoominListView;
+
+})();
+
+/*\
+title: $:/core/modules/syncer.js
+type: application/javascript
+module-type: global
+
+The syncer tracks changes to the store and synchronises them to a remote data store represented as a "sync adaptor"
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Defaults
+*/
+Syncer.prototype.titleIsLoggedIn = "$:/status/IsLoggedIn";
+Syncer.prototype.titleIsAnonymous = "$:/status/IsAnonymous";
+Syncer.prototype.titleIsReadOnly = "$:/status/IsReadOnly";
+Syncer.prototype.titleUserName = "$:/status/UserName";
+Syncer.prototype.titleSyncFilter = "$:/config/SyncFilter";
+Syncer.prototype.titleSyncPollingInterval = "$:/config/SyncPollingInterval";
+Syncer.prototype.titleSyncDisableLazyLoading = "$:/config/SyncDisableLazyLoading";
+Syncer.prototype.titleSavedNotification = "$:/language/Notifications/Save/Done";
+Syncer.prototype.titleSyncThrottleInterval = "$:/config/SyncThrottleInterval";
+Syncer.prototype.taskTimerInterval = 1 * 1000; // Interval for sync timer
+Syncer.prototype.throttleInterval = 1 * 1000; // Defer saving tiddlers if they've changed in the last 1s...
+Syncer.prototype.errorRetryInterval = 5 * 1000; // Interval to retry after an error
+Syncer.prototype.fallbackInterval = 10 * 1000; // Unless the task is older than 10s
+Syncer.prototype.pollTimerInterval = 60 * 1000; // Interval for polling for changes from the adaptor
+
+/*
+Instantiate the syncer with the following options:
+syncadaptor: reference to syncadaptor to be used
+wiki: wiki to be synced
+*/
+function Syncer(options) {
+ var self = this;
+ this.wiki = options.wiki;
+ // Save parameters
+ this.syncadaptor = options.syncadaptor;
+ this.disableUI = !!options.disableUI;
+ this.titleIsLoggedIn = options.titleIsLoggedIn || this.titleIsLoggedIn;
+ this.titleUserName = options.titleUserName || this.titleUserName;
+ this.titleSyncFilter = options.titleSyncFilter || this.titleSyncFilter;
+ this.titleSavedNotification = options.titleSavedNotification || this.titleSavedNotification;
+ this.taskTimerInterval = options.taskTimerInterval || this.taskTimerInterval;
+ this.throttleInterval = options.throttleInterval || parseInt(this.wiki.getTiddlerText(this.titleSyncThrottleInterval,""),10) || this.throttleInterval;
+ this.errorRetryInterval = options.errorRetryInterval || this.errorRetryInterval;
+ this.fallbackInterval = options.fallbackInterval || this.fallbackInterval;
+ this.pollTimerInterval = options.pollTimerInterval || parseInt(this.wiki.getTiddlerText(this.titleSyncPollingInterval,""),10) || this.pollTimerInterval;
+ this.logging = "logging" in options ? options.logging : true;
+ // Make a logger
+ this.logger = new $tw.utils.Logger("syncer" + ($tw.browser ? "-browser" : "") + ($tw.node ? "-server" : "") + (this.syncadaptor.name ? ("-" + this.syncadaptor.name) : ""),{
+ colour: "cyan",
+ enable: this.logging,
+ saveHistory: true
+ });
+ // Make another logger for connection errors
+ this.loggerConnection = new $tw.utils.Logger("syncer" + ($tw.browser ? "-browser" : "") + ($tw.node ? "-server" : "") + (this.syncadaptor.name ? ("-" + this.syncadaptor.name) : "") + "-connection",{
+ colour: "cyan",
+ enable: this.logging
+ });
+ // Ask the syncadaptor to use the main logger
+ if(this.syncadaptor.setLoggerSaveBuffer) {
+ this.syncadaptor.setLoggerSaveBuffer(this.logger);
+ }
+ // Compile the dirty tiddler filter
+ this.filterFn = this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter));
+ // Record information for known tiddlers
+ this.readTiddlerInfo();
+ this.titlesToBeLoaded = {}; // Hashmap of titles of tiddlers that need loading from the server
+ this.titlesHaveBeenLazyLoaded = {}; // Hashmap of titles of tiddlers that have already been lazily loaded from the server
+ // Timers
+ this.taskTimerId = null; // Timer for task dispatch
+ this.pollTimerId = null; // Timer for polling server
+ // Number of outstanding requests
+ this.numTasksInProgress = 0;
+ // Listen out for changes to tiddlers
+ this.wiki.addEventListener("change",function(changes) {
+ // Filter the changes to just include ones that are being synced
+ var filteredChanges = self.getSyncedTiddlers(function(callback) {
+ $tw.utils.each(changes,function(change,title) {
+ var tiddler = self.wiki.tiddlerExists(title) && self.wiki.getTiddler(title);
+ callback(tiddler,title);
+ });
+ });
+ if(filteredChanges.length > 0) {
+ self.processTaskQueue();
+ } else {
+ // Look for deletions of tiddlers we're already syncing
+ var outstandingDeletion = false
+ $tw.utils.each(changes,function(change,title,object) {
+ if(change.deleted && $tw.utils.hop(self.tiddlerInfo,title)) {
+ outstandingDeletion = true;
+ }
+ });
+ if(outstandingDeletion) {
+ self.processTaskQueue();
+ }
+ }
+ });
+ // Browser event handlers
+ if($tw.browser && !this.disableUI) {
+ // Set up our beforeunload handler
+ $tw.addUnloadTask(function(event) {
+ var confirmationMessage;
+ if(self.isDirty()) {
+ confirmationMessage = $tw.language.getString("UnsavedChangesWarning");
+ event.returnValue = confirmationMessage; // Gecko
+ }
+ return confirmationMessage;
+ });
+ // Listen out for login/logout/refresh events in the browser
+ $tw.rootWidget.addEventListener("tm-login",function() {
+ self.handleLoginEvent();
+ });
+ $tw.rootWidget.addEventListener("tm-logout",function() {
+ self.handleLogoutEvent();
+ });
+ $tw.rootWidget.addEventListener("tm-server-refresh",function() {
+ self.handleRefreshEvent();
+ });
+ $tw.rootWidget.addEventListener("tm-copy-syncer-logs-to-clipboard",function() {
+ $tw.utils.copyToClipboard($tw.utils.getSystemInfo() + "\n\nLog:\n" + self.logger.getBuffer());
+ });
+ }
+ // Listen out for lazyLoad events
+ if(!this.disableUI && $tw.wiki.getTiddlerText(this.titleSyncDisableLazyLoading) !== "yes") {
+ this.wiki.addEventListener("lazyLoad",function(title) {
+ self.handleLazyLoadEvent(title);
+ });
+ }
+ // Get the login status
+ this.getStatus(function(err,isLoggedIn) {
+ // Do a sync from the server
+ self.syncFromServer();
+ });
+}
+
+/*
+Show a generic network error alert
+*/
+Syncer.prototype.displayError = function(msg,err) {
+ if(err === ($tw.language.getString("Error/XMLHttpRequest") + ": 0")) {
+ this.loggerConnection.alert($tw.language.getString("Error/NetworkErrorAlert"));
+ this.logger.log(msg + ":",err);
+ } else {
+ this.logger.alert(msg + ":",err);
+ }
+};
+
+/*
+Return an array of the tiddler titles that are subjected to syncing
+*/
+Syncer.prototype.getSyncedTiddlers = function(source) {
+ return this.filterFn.call(this.wiki,source);
+};
+
+/*
+Return an array of the tiddler titles that are subjected to syncing
+*/
+Syncer.prototype.getTiddlerRevision = function(title) {
+ if(this.syncadaptor && this.syncadaptor.getTiddlerRevision) {
+ return this.syncadaptor.getTiddlerRevision(title);
+ } else {
+ return this.wiki.getTiddler(title).fields.revision;
+ }
+};
+
+/*
+Read (or re-read) the latest tiddler info from the store
+*/
+Syncer.prototype.readTiddlerInfo = function() {
+ // Hashmap by title of {revision:,changeCount:,adaptorInfo:}
+ // "revision" is the revision of the tiddler last seen on the server, and "changecount" is the corresponding local changecount
+ this.tiddlerInfo = {};
+ // Record information for known tiddlers
+ var self = this,
+ tiddlers = this.getSyncedTiddlers();
+ $tw.utils.each(tiddlers,function(title) {
+ var tiddler = self.wiki.tiddlerExists(title) && self.wiki.getTiddler(title);
+ self.tiddlerInfo[title] = {
+ revision: self.getTiddlerRevision(title),
+ adaptorInfo: self.syncadaptor && self.syncadaptor.getTiddlerInfo(tiddler),
+ changeCount: self.wiki.getChangeCount(title)
+ };
+ });
+};
+
+/*
+Checks whether the wiki is dirty (ie the window shouldn't be closed)
+*/
+Syncer.prototype.isDirty = function() {
+ this.logger.log("Checking dirty status");
+ // Check tiddlers that are in the store and included in the filter function
+ var titles = this.getSyncedTiddlers();
+ for(var index=0; index<titles.length; index++) {
+ var title = titles[index],
+ tiddlerInfo = this.tiddlerInfo[title];
+ if(this.wiki.tiddlerExists(title)) {
+ if(tiddlerInfo) {
+ // If the tiddler is known on the server and has been modified locally then it needs to be saved to the server
+ if($tw.wiki.getChangeCount(title) > tiddlerInfo.changeCount) {
+ return true;
+ }
+ } else {
+ // If the tiddler isn't known on the server then it needs to be saved to the server
+ return true;
+ }
+ }
+ }
+ // Check tiddlers that are known from the server but not currently in the store
+ titles = Object.keys(this.tiddlerInfo);
+ for(index=0; index<titles.length; index++) {
+ if(!this.wiki.tiddlerExists(titles[index])) {
+ // There must be a pending delete
+ return true;
+ }
+ }
+ return false;
+};
+
+/*
+Update the document body with the class "tc-dirty" if the wiki has unsaved/unsynced changes
+*/
+Syncer.prototype.updateDirtyStatus = function() {
+ if($tw.browser && !this.disableUI) {
+ var dirty = this.isDirty();
+ $tw.utils.toggleClass(document.body,"tc-dirty",dirty);
+ if(!dirty) {
+ this.loggerConnection.clearAlerts();
+ }
+ }
+};
+
+/*
+Save an incoming tiddler in the store, and updates the associated tiddlerInfo
+*/
+Syncer.prototype.storeTiddler = function(tiddlerFields) {
+ // Save the tiddler
+ var tiddler = new $tw.Tiddler(tiddlerFields);
+ this.wiki.addTiddler(tiddler);
+ // Save the tiddler revision and changeCount details
+ this.tiddlerInfo[tiddlerFields.title] = {
+ revision: this.getTiddlerRevision(tiddlerFields.title),
+ adaptorInfo: this.syncadaptor.getTiddlerInfo(tiddler),
+ changeCount: this.wiki.getChangeCount(tiddlerFields.title)
+ };
+};
+
+Syncer.prototype.getStatus = function(callback) {
+ var self = this;
+ // Check if the adaptor supports getStatus()
+ if(this.syncadaptor && this.syncadaptor.getStatus) {
+ // Mark us as not logged in
+ this.wiki.addTiddler({title: this.titleIsLoggedIn,text: "no"});
+ // Get login status
+ this.syncadaptor.getStatus(function(err,isLoggedIn,username,isReadOnly,isAnonymous) {
+ if(err) {
+ self.logger.alert(err);
+ } else {
+ // Set the various status tiddlers
+ self.wiki.addTiddler({title: self.titleIsReadOnly,text: isReadOnly ? "yes" : "no"});
+ self.wiki.addTiddler({title: self.titleIsAnonymous,text: isAnonymous ? "yes" : "no"});
+ self.wiki.addTiddler({title: self.titleIsLoggedIn,text: isLoggedIn ? "yes" : "no"});
+ if(isLoggedIn) {
+ self.wiki.addTiddler({title: self.titleUserName,text: username || ""});
+ }
+ }
+ // Invoke the callback
+ if(callback) {
+ callback(err,isLoggedIn,username);
+ }
+ });
+ } else {
+ callback(null,true,"UNAUTHENTICATED");
+ }
+};
+
+/*
+Synchronise from the server by reading the skinny tiddler list and queuing up loads for any tiddlers that we don't already have up to date
+*/
+Syncer.prototype.syncFromServer = function() {
+ var self = this,
+ cancelNextSync = function() {
+ if(self.pollTimerId) {
+ clearTimeout(self.pollTimerId);
+ self.pollTimerId = null;
+ }
+ },
+ triggerNextSync = function() {
+ self.pollTimerId = setTimeout(function() {
+ self.pollTimerId = null;
+ self.syncFromServer.call(self);
+ },self.pollTimerInterval);
+ };
+ if(this.syncadaptor && this.syncadaptor.getUpdatedTiddlers) {
+ this.logger.log("Retrieving updated tiddler list");
+ cancelNextSync();
+ this.syncadaptor.getUpdatedTiddlers(self,function(err,updates) {
+ triggerNextSync();
+ if(err) {
+ self.displayError($tw.language.getString("Error/RetrievingSkinny"),err);
+ return;
+ }
+ if(updates) {
+ $tw.utils.each(updates.modifications,function(title) {
+ self.titlesToBeLoaded[title] = true;
+ });
+ $tw.utils.each(updates.deletions,function(title) {
+ delete self.tiddlerInfo[title];
+ self.logger.log("Deleting tiddler missing from server:",title);
+ self.wiki.deleteTiddler(title);
+ });
+ if(updates.modifications.length > 0 || updates.deletions.length > 0) {
+ self.processTaskQueue();
+ }
+ }
+ });
+ } else if(this.syncadaptor && this.syncadaptor.getSkinnyTiddlers) {
+ this.logger.log("Retrieving skinny tiddler list");
+ cancelNextSync();
+ this.syncadaptor.getSkinnyTiddlers(function(err,tiddlers) {
+ triggerNextSync();
+ // Check for errors
+ if(err) {
+ self.displayError($tw.language.getString("Error/RetrievingSkinny"),err);
+ return;
+ }
+ // Keep track of which tiddlers we already know about have been reported this time
+ var previousTitles = Object.keys(self.tiddlerInfo);
+ // Process each incoming tiddler
+ for(var t=0; t<tiddlers.length; t++) {
+ // Get the incoming tiddler fields, and the existing tiddler
+ var tiddlerFields = tiddlers[t],
+ incomingRevision = tiddlerFields.revision + "",
+ tiddler = self.wiki.tiddlerExists(tiddlerFields.title) && self.wiki.getTiddler(tiddlerFields.title),
+ tiddlerInfo = self.tiddlerInfo[tiddlerFields.title],
+ currRevision = tiddlerInfo ? tiddlerInfo.revision : null,
+ indexInPreviousTitles = previousTitles.indexOf(tiddlerFields.title);
+ if(indexInPreviousTitles !== -1) {
+ previousTitles.splice(indexInPreviousTitles,1);
+ }
+ // Ignore the incoming tiddler if it's the same as the revision we've already got
+ if(currRevision !== incomingRevision) {
+ // Only load the skinny version if we don't already have a fat version of the tiddler
+ if(!tiddler || tiddler.fields.text === undefined) {
+ self.storeTiddler(tiddlerFields);
+ }
+ // Do a full load of this tiddler
+ self.titlesToBeLoaded[tiddlerFields.title] = true;
+ }
+ }
+ // Delete any tiddlers that were previously reported but missing this time
+ $tw.utils.each(previousTitles,function(title) {
+ delete self.tiddlerInfo[title];
+ self.logger.log("Deleting tiddler missing from server:",title);
+ self.wiki.deleteTiddler(title);
+ });
+ self.processTaskQueue();
+ });
+ }
+};
+
+/*
+Force load a tiddler from the server
+*/
+Syncer.prototype.enqueueLoadTiddler = function(title) {
+ this.titlesToBeLoaded[title] = true;
+ this.processTaskQueue();
+};
+
+/*
+Lazily load a skinny tiddler if we can
+*/
+Syncer.prototype.handleLazyLoadEvent = function(title) {
+ // Ignore if the syncadaptor doesn't handle it
+ if(!this.syncadaptor.supportsLazyLoading) {
+ return;
+ }
+ // Don't lazy load the same tiddler twice
+ if(!this.titlesHaveBeenLazyLoaded[title]) {
+ // Don't lazy load if the tiddler isn't included in the sync filter
+ if(this.getSyncedTiddlers().indexOf(title) !== -1) {
+ // Mark the tiddler as needing loading, and having already been lazily loaded
+ this.titlesToBeLoaded[title] = true;
+ this.titlesHaveBeenLazyLoaded[title] = true;
+ }
+ }
+};
+
+/*
+Dispay a password prompt and allow the user to login
+*/
+Syncer.prototype.handleLoginEvent = function() {
+ var self = this;
+ this.getStatus(function(err,isLoggedIn,username) {
+ if(!err && !isLoggedIn) {
+ $tw.passwordPrompt.createPrompt({
+ serviceName: $tw.language.getString("LoginToTiddlySpace"),
+ callback: function(data) {
+ self.login(data.username,data.password,function(err,isLoggedIn) {
+ self.syncFromServer();
+ });
+ return true; // Get rid of the password prompt
+ }
+ });
+ }
+ });
+};
+
+/*
+Attempt to login to TiddlyWeb.
+ username: username
+ password: password
+ callback: invoked with arguments (err,isLoggedIn)
+*/
+Syncer.prototype.login = function(username,password,callback) {
+ this.logger.log("Attempting to login as",username);
+ var self = this;
+ if(this.syncadaptor.login) {
+ this.syncadaptor.login(username,password,function(err) {
+ if(err) {
+ return callback(err);
+ }
+ self.getStatus(function(err,isLoggedIn,username) {
+ if(callback) {
+ callback(err,isLoggedIn);
+ }
+ });
+ });
+ } else {
+ callback(null,true);
+ }
+};
+
+/*
+Attempt to log out of TiddlyWeb
+*/
+Syncer.prototype.handleLogoutEvent = function() {
+ this.logger.log("Attempting to logout");
+ var self = this;
+ if(this.syncadaptor.logout) {
+ this.syncadaptor.logout(function(err) {
+ if(err) {
+ self.logger.alert(err);
+ } else {
+ self.getStatus();
+ }
+ });
+ }
+};
+
+/*
+Immediately refresh from the server
+*/
+Syncer.prototype.handleRefreshEvent = function() {
+ this.syncFromServer();
+};
+
+/*
+Process the next task
+*/
+Syncer.prototype.processTaskQueue = function() {
+ var self = this;
+ // Only process a task if the sync adaptor is fully initialised and we're not already performing
+ // a task. If we are already performing a task then we'll dispatch the next one when it completes
+ if((!this.syncadaptor.isReady || this.syncadaptor.isReady()) && this.numTasksInProgress === 0) {
+ // Choose the next task to perform
+ var task = this.chooseNextTask();
+ // Perform the task if we had one
+ if(typeof task === "object" && task !== null) {
+ this.numTasksInProgress += 1;
+ task.run(function(err) {
+ self.numTasksInProgress -= 1;
+ if(err) {
+ self.displayError("Sync error while processing " + task.type + " of '" + task.title + "'",err);
+ self.updateDirtyStatus();
+ self.triggerTimeout(self.errorRetryInterval);
+ } else {
+ self.updateDirtyStatus();
+ // Process the next task
+ self.processTaskQueue.call(self);
+ }
+ });
+ } else {
+ // No task is ready so update the status
+ this.updateDirtyStatus();
+ // And trigger a timeout if there is a pending task
+ if(task === true) {
+ this.triggerTimeout();
+ }
+ }
+ } else {
+ this.updateDirtyStatus();
+ }
+};
+
+Syncer.prototype.triggerTimeout = function(interval) {
+ var self = this;
+ if(!this.taskTimerId) {
+ this.taskTimerId = setTimeout(function() {
+ self.taskTimerId = null;
+ self.processTaskQueue.call(self);
+ },interval || self.taskTimerInterval);
+ }
+};
+
+/*
+Choose the next sync task. We prioritise saves, then deletes, then loads from the server
+
+Returns either a task object, null if there's no upcoming tasks, or the boolean true if there are pending tasks that aren't yet due
+*/
+Syncer.prototype.chooseNextTask = function() {
+ var thresholdLastSaved = (new Date()) - this.throttleInterval,
+ havePending = null;
+ // First we look for tiddlers that have been modified locally and need saving back to the server
+ var titles = this.getSyncedTiddlers();
+ for(var index=0; index<titles.length; index++) {
+ var title = titles[index],
+ tiddler = this.wiki.tiddlerExists(title) && this.wiki.getTiddler(title),
+ tiddlerInfo = this.tiddlerInfo[title];
+ if(tiddler) {
+ // If the tiddler is not known on the server, or has been modified locally no more recently than the threshold then it needs to be saved to the server
+ var hasChanged = !tiddlerInfo || $tw.wiki.getChangeCount(title) > tiddlerInfo.changeCount,
+ isReadyToSave = !tiddlerInfo || !tiddlerInfo.timestampLastSaved || tiddlerInfo.timestampLastSaved < thresholdLastSaved;
+ if(hasChanged) {
+ if(isReadyToSave) {
+ return new SaveTiddlerTask(this,title);
+ } else {
+ havePending = true;
+ }
+ }
+ }
+ }
+ // Second, we check tiddlers that are known from the server but not currently in the store, and so need deleting on the server
+ titles = Object.keys(this.tiddlerInfo);
+ for(index=0; index<titles.length; index++) {
+ title = titles[index];
+ tiddlerInfo = this.tiddlerInfo[title];
+ tiddler = this.wiki.tiddlerExists(title) && this.wiki.getTiddler(title);
+ if(!tiddler) {
+ return new DeleteTiddlerTask(this,title);
+ }
+ }
+ // Check for tiddlers that need loading
+ title = Object.keys(this.titlesToBeLoaded)[0];
+ if(title) {
+ delete this.titlesToBeLoaded[title];
+ return new LoadTiddlerTask(this,title);
+ }
+ // No tasks are ready
+ return havePending;
+};
+
+function SaveTiddlerTask(syncer,title) {
+ this.syncer = syncer;
+ this.title = title;
+ this.type = "save";
+}
+
+SaveTiddlerTask.prototype.run = function(callback) {
+ var self = this,
+ changeCount = this.syncer.wiki.getChangeCount(this.title),
+ tiddler = this.syncer.wiki.tiddlerExists(this.title) && this.syncer.wiki.getTiddler(this.title);
+ this.syncer.logger.log("Dispatching 'save' task:",this.title);
+ if(tiddler) {
+ this.syncer.syncadaptor.saveTiddler(tiddler,function(err,adaptorInfo,revision) {
+ // If there's an error, exit without changing any internal state
+ if(err) {
+ return callback(err);
+ }
+ // Adjust the info stored about this tiddler
+ self.syncer.tiddlerInfo[self.title] = {
+ changeCount: changeCount,
+ adaptorInfo: adaptorInfo,
+ revision: revision,
+ timestampLastSaved: new Date()
+ };
+ // Invoke the callback
+ callback(null);
+ });
+ } else {
+ this.syncer.logger.log(" Not Dispatching 'save' task:",this.title,"tiddler does not exist");
+ $tw.utils.nextTick(callback(null));
+ }
+};
+
+function DeleteTiddlerTask(syncer,title) {
+ this.syncer = syncer;
+ this.title = title;
+ this.type = "delete";
+}
+
+DeleteTiddlerTask.prototype.run = function(callback) {
+ var self = this;
+ this.syncer.logger.log("Dispatching 'delete' task:",this.title);
+ this.syncer.syncadaptor.deleteTiddler(this.title,function(err) {
+ // If there's an error, exit without changing any internal state
+ if(err) {
+ return callback(err);
+ }
+ // Remove the info stored about this tiddler
+ delete self.syncer.tiddlerInfo[self.title];
+ // Invoke the callback
+ callback(null);
+ },{
+ tiddlerInfo: self.syncer.tiddlerInfo[this.title]
+ });
+};
+
+function LoadTiddlerTask(syncer,title) {
+ this.syncer = syncer;
+ this.title = title;
+ this.type = "load";
+}
+
+LoadTiddlerTask.prototype.run = function(callback) {
+ var self = this;
+ this.syncer.logger.log("Dispatching 'load' task:",this.title);
+ this.syncer.syncadaptor.loadTiddler(this.title,function(err,tiddlerFields) {
+ // If there's an error, exit without changing any internal state
+ if(err) {
+ return callback(err);
+ }
+ // Update the info stored about this tiddler
+ if(tiddlerFields) {
+ self.syncer.storeTiddler(tiddlerFields);
+ }
+ // Invoke the callback
+ callback(null);
+ });
+};
+
+exports.Syncer = Syncer;
+
+})();
+
+/*\
+title: $:/core/modules/tiddler.js
+type: application/javascript
+module-type: tiddlermethod
+
+Extension methods for the $tw.Tiddler object (constructor and methods required at boot time are in boot/boot.js)
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.hasTag = function(tag) {
+ return this.fields.tags && this.fields.tags.indexOf(tag) !== -1;
+};
+
+exports.isPlugin = function() {
+ return this.fields.type === "application/json" && this.hasField("plugin-type");
+};
+
+exports.isDraft = function() {
+ return this.hasField("draft.of");
+};
+
+exports.getFieldString = function(field) {
+ var value = this.fields[field];
+ // Check for a missing field
+ if(value === undefined || value === null) {
+ return "";
+ }
+ // Parse the field with the associated module (if any)
+ var fieldModule = $tw.Tiddler.fieldModules[field];
+ if(fieldModule && fieldModule.stringify) {
+ return fieldModule.stringify.call(this,value);
+ } else {
+ return value.toString();
+ }
+};
+
+/*
+Get the value of a field as a list
+*/
+exports.getFieldList = function(field) {
+ var value = this.fields[field];
+ // Check for a missing field
+ if(value === undefined || value === null) {
+ return [];
+ }
+ return $tw.utils.parseStringArray(value);
+};
+
+/*
+Get all the fields as a hashmap of strings. Options:
+ exclude: an array of field names to exclude
+*/
+exports.getFieldStrings = function(options) {
+ options = options || {};
+ var exclude = options.exclude || [];
+ var fields = {};
+ for(var field in this.fields) {
+ if($tw.utils.hop(this.fields,field)) {
+ if(exclude.indexOf(field) === -1) {
+ fields[field] = this.getFieldString(field);
+ }
+ }
+ }
+ return fields;
+};
+
+/*
+Get all the fields as a name:value block. Options:
+ exclude: an array of field names to exclude
+*/
+exports.getFieldStringBlock = function(options) {
+ options = options || {};
+ var exclude = options.exclude || [],
+ fields = Object.keys(this.fields).sort(),
+ result = [];
+ for(var t=0; t<fields.length; t++) {
+ var field = fields[t];
+ if(exclude.indexOf(field) === -1) {
+ result.push(field + ": " + this.getFieldString(field));
+ }
+ }
+ return result.join("\n");
+};
+
+exports.getFieldDay = function(field) {
+ if(this.cache && this.cache.day && $tw.utils.hop(this.cache.day,field) ) {
+ return this.cache.day[field];
+ }
+ var day = "";
+ if(this.fields[field]) {
+ day = (new Date($tw.utils.parseDate(this.fields[field]))).setHours(0,0,0,0);
+ }
+ this.cache.day = this.cache.day || {};
+ this.cache.day[field] = day;
+ return day;
+};
+
+})();
+
+/*\
+title: $:/core/modules/upgraders/plugins.js
+type: application/javascript
+module-type: upgrader
+
+Upgrader module that checks that plugins are newer than any already installed version
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var UPGRADE_LIBRARY_TITLE = "$:/UpgradeLibrary";
+
+var BLOCKED_PLUGINS = {
+ "$:/themes/tiddlywiki/stickytitles": {
+ versions: ["*"]
+ },
+ "$:/plugins/tiddlywiki/fullscreen": {
+ versions: ["*"]
+ }
+};
+
+exports.upgrade = function(wiki,titles,tiddlers) {
+ var self = this,
+ messages = {},
+ upgradeLibrary,
+ getLibraryTiddler = function(title) {
+ if(!upgradeLibrary) {
+ upgradeLibrary = wiki.getTiddlerData(UPGRADE_LIBRARY_TITLE,{});
+ upgradeLibrary.tiddlers = upgradeLibrary.tiddlers || {};
+ }
+ return upgradeLibrary.tiddlers[title];
+ };
+
+ // Go through all the incoming tiddlers
+ $tw.utils.each(titles,function(title) {
+ var incomingTiddler = tiddlers[title];
+ // Check if we're dealing with a plugin
+ if(incomingTiddler && incomingTiddler["plugin-type"]) {
+ // Check whether the plugin contains JS modules
+ var requiresReload = $tw.wiki.doesPluginInfoRequireReload(JSON.parse(incomingTiddler.text)) ? ($tw.wiki.getTiddlerText("$:/language/ControlPanel/Plugins/PluginWillRequireReload") + " ") : "";
+ messages[title] = requiresReload;
+ if(incomingTiddler.version) {
+ // Upgrade the incoming plugin if it is in the upgrade library
+ var libraryTiddler = getLibraryTiddler(title);
+ if(libraryTiddler && libraryTiddler["plugin-type"] && libraryTiddler.version) {
+ tiddlers[title] = libraryTiddler;
+ messages[title] = requiresReload + $tw.language.getString("Import/Upgrader/Plugins/Upgraded",{variables: {incoming: incomingTiddler.version, upgraded: libraryTiddler.version}});
+ return;
+ }
+ // Suppress the incoming plugin if it is older than the currently installed one
+ var existingTiddler = wiki.getTiddler(title);
+ if(existingTiddler && existingTiddler.hasField("plugin-type") && existingTiddler.hasField("version")) {
+ // Reject the incoming plugin by blanking all its fields
+ if($tw.utils.checkVersions(existingTiddler.fields.version,incomingTiddler.version)) {
+ tiddlers[title] = Object.create(null);
+ messages[title] = requiresReload + $tw.language.getString("Import/Upgrader/Plugins/Suppressed/Version",{variables: {incoming: incomingTiddler.version, existing: existingTiddler.fields.version}});
+ return;
+ }
+ }
+ }
+ // Check whether the plugin is on the blocked list
+ var blockInfo = BLOCKED_PLUGINS[title];
+ if(blockInfo) {
+ if(blockInfo.versions.indexOf("*") !== -1 || (incomingTiddler.version && blockInfo.versions.indexOf(incomingTiddler.version) !== -1)) {
+ tiddlers[title] = Object.create(null);
+ messages[title] = $tw.language.getString("Import/Upgrader/Plugins/Suppressed/Incompatible");
+ return;
+ }
+ }
+ }
+ });
+ return messages;
+};
+
+})();
+
+/*\
+title: $:/core/modules/upgraders/system.js
+type: application/javascript
+module-type: upgrader
+
+Upgrader module that suppresses certain system tiddlers that shouldn't be imported
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var DONT_IMPORT_LIST = ["$:/StoryList","$:/HistoryList"],
+ DONT_IMPORT_PREFIX_LIST = ["$:/temp/","$:/state/","$:/Import"],
+ WARN_IMPORT_PREFIX_LIST = ["$:/core/modules/"];
+
+exports.upgrade = function(wiki,titles,tiddlers) {
+ var self = this,
+ messages = {},
+ showAlert = false;
+ // Check for tiddlers on our list
+ $tw.utils.each(titles,function(title) {
+ if(DONT_IMPORT_LIST.indexOf(title) !== -1) {
+ tiddlers[title] = Object.create(null);
+ messages[title] = $tw.language.getString("Import/Upgrader/System/Suppressed");
+ } else {
+ for(var t=0; t<DONT_IMPORT_PREFIX_LIST.length; t++) {
+ var prefix = DONT_IMPORT_PREFIX_LIST[t];
+ if(title.substr(0,prefix.length) === prefix) {
+ tiddlers[title] = Object.create(null);
+ messages[title] = $tw.language.getString("Import/Upgrader/State/Suppressed");
+ }
+ }
+ for(var t=0; t<WARN_IMPORT_PREFIX_LIST.length; t++) {
+ var prefix = WARN_IMPORT_PREFIX_LIST[t];
+ if(title.substr(0,prefix.length) === prefix && wiki.isShadowTiddler(title)) {
+ showAlert = true;
+ messages[title] = $tw.language.getString("Import/Upgrader/System/Warning");
+ }
+ }
+ }
+ });
+ if(showAlert) {
+ var logger = new $tw.utils.Logger("import");
+ logger.alert($tw.language.getString("Import/Upgrader/System/Alert"));
+ }
+ return messages;
+};
+
+})();
+
+/*\
+title: $:/core/modules/upgraders/themetweaks.js
+type: application/javascript
+module-type: upgrader
+
+Upgrader module that handles the change in theme tweak storage introduced in 5.0.14-beta.
+
+Previously, theme tweaks were stored in two data tiddlers:
+
+* $:/themes/tiddlywiki/vanilla/metrics
+* $:/themes/tiddlywiki/vanilla/settings
+
+Now, each tweak is stored in its own separate tiddler.
+
+This upgrader copies any values from the old format to the new. The old data tiddlers are not deleted in case they have been used to store additional indexes.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var MAPPINGS = {
+ "$:/themes/tiddlywiki/vanilla/metrics": {
+ "fontsize": "$:/themes/tiddlywiki/vanilla/metrics/fontsize",
+ "lineheight": "$:/themes/tiddlywiki/vanilla/metrics/lineheight",
+ "storyleft": "$:/themes/tiddlywiki/vanilla/metrics/storyleft",
+ "storytop": "$:/themes/tiddlywiki/vanilla/metrics/storytop",
+ "storyright": "$:/themes/tiddlywiki/vanilla/metrics/storyright",
+ "storywidth": "$:/themes/tiddlywiki/vanilla/metrics/storywidth",
+ "tiddlerwidth": "$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth"
+ },
+ "$:/themes/tiddlywiki/vanilla/settings": {
+ "fontfamily": "$:/themes/tiddlywiki/vanilla/settings/fontfamily"
+ }
+};
+
+exports.upgrade = function(wiki,titles,tiddlers) {
+ var self = this,
+ messages = {};
+ // Check for tiddlers on our list
+ $tw.utils.each(titles,function(title) {
+ var mapping = MAPPINGS[title];
+ if(mapping) {
+ var tiddler = new $tw.Tiddler(tiddlers[title]),
+ tiddlerData = wiki.getTiddlerDataCached(tiddler,{});
+ for(var index in mapping) {
+ var mappedTitle = mapping[index];
+ if(!tiddlers[mappedTitle] || tiddlers[mappedTitle].title !== mappedTitle) {
+ tiddlers[mappedTitle] = {
+ title: mappedTitle,
+ text: tiddlerData[index]
+ };
+ messages[mappedTitle] = $tw.language.getString("Import/Upgrader/ThemeTweaks/Created",{variables: {
+ from: title + "##" + index
+ }});
+ }
+ }
+ }
+ });
+ return messages;
+};
+
+})();
+
+(function(){// From https://gist.github.com/Nijikokun/5192472
+//
+// UTF8 Module
+//
+// Cleaner and modularized utf-8 encoding and decoding library for javascript.
+//
+// copyright: MIT
+// author: Nijiko Yonskai, @nijikokun, nijikokun@gmail.com
+!function(r,e,o,t){void 0!==o.module&&o.module.exports?o.module.exports=e.apply(o):void 0!==o.define&&"function"===o.define&&o.define.amd?define("utf8",[],e):o.utf8=e.apply(o)}(0,function(){return{encode:function(r){if("string"!=typeof r)return r;r=r.replace(/\r\n/g,"\n");for(var e,o="",t=0;t<r.length;t++)(e=r.charCodeAt(t))<128?o+=String.fromCharCode(e):e>127&&e<2048?(o+=String.fromCharCode(e>>6|192),o+=String.fromCharCode(63&e|128)):(o+=String.fromCharCode(e>>12|224),o+=String.fromCharCode(e>>6&63|128),o+=String.fromCharCode(63&e|128));return o},decode:function(r){if("string"!=typeof r)return r;for(var e="",o=0,t=0;o<r.length;)(t=r.charCodeAt(o))<128?(e+=String.fromCharCode(t),o++):t>191&&t<224?(e+=String.fromCharCode((31&t)<<6|63&r.charCodeAt(o+1)),o+=2):(e+=String.fromCharCode((15&t)<<12|(63&r.charCodeAt(o+1))<<6|63&r.charCodeAt(o+2)),o+=3);return e}}},this),function(r,e,o,t){if(void 0!==o.module&&o.module.exports){if(t&&o.require)for(var n=0;n<t.length;n++)o[t[n]]=o.require(t[n]);o.module.exports=e.apply(o)}else void 0!==o.define&&"function"===o.define&&o.define.amd?define("base64",t||[],e):o.base64=e.apply(o)}(0,function(r){var e=r||this.utf8,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(r){if(void 0===e)throw{error:"MissingMethod",message:"UTF8 Module is missing."};if("string"!=typeof r)return r;r=e.encode(r);for(var t,n,i,d,f,a,h,c="",u=0;u<r.length;)d=(t=r.charCodeAt(u++))>>2,f=(3&t)<<4|(n=r.charCodeAt(u++))>>4,a=(15&n)<<2|(i=r.charCodeAt(u++))>>6,h=63&i,isNaN(n)?a=h=64:isNaN(i)&&(h=64),c+=o.charAt(d)+o.charAt(f)+o.charAt(a)+o.charAt(h);return c},decode:function(r){if(void 0===e)throw{error:"MissingMethod",message:"UTF8 Module is missing."};if("string"!=typeof r)return r;r=r.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var t,n,i,d,f,a,h="",c=0;c<r.length;)t=o.indexOf(r.charAt(c++))<<2|(d=o.indexOf(r.charAt(c++)))>>4,n=(15&d)<<4|(f=o.indexOf(r.charAt(c++)))>>2,i=(3&f)<<6|(a=o.indexOf(r.charAt(c++))),h+=String.fromCharCode(t),64!=f&&(h+=String.fromCharCode(n)),64!=a&&(h+=String.fromCharCode(i));return e.decode(h)}}},this,["utf8"]);}).call(exports);
+/*\
+title: $:/core/modules/utils/crypto.js
+type: application/javascript
+module-type: utils
+
+Utility functions related to crypto.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Look for an encrypted store area in the text of a TiddlyWiki file
+*/
+exports.extractEncryptedStoreArea = function(text) {
+ var encryptedStoreAreaStartMarker = "<pre id=\"encryptedStoreArea\" type=\"text/plain\" style=\"display:none;\">",
+ encryptedStoreAreaStart = text.indexOf(encryptedStoreAreaStartMarker);
+ if(encryptedStoreAreaStart !== -1) {
+ var encryptedStoreAreaEnd = text.indexOf("</pre>",encryptedStoreAreaStart);
+ if(encryptedStoreAreaEnd !== -1) {
+ return $tw.utils.htmlDecode(text.substring(encryptedStoreAreaStart + encryptedStoreAreaStartMarker.length,encryptedStoreAreaEnd-1));
+ }
+ }
+ return null;
+};
+
+/*
+Attempt to extract the tiddlers from an encrypted store area using the current password. If the password is not provided then the password in the password store will be used
+*/
+exports.decryptStoreArea = function(encryptedStoreArea,password) {
+ var decryptedText = $tw.crypto.decrypt(encryptedStoreArea,password);
+ if(decryptedText) {
+ var json = JSON.parse(decryptedText),
+ tiddlers = [];
+ for(var title in json) {
+ if(title !== "$:/isEncrypted") {
+ tiddlers.push(json[title]);
+ }
+ }
+ return tiddlers;
+ } else {
+ return null;
+ }
+};
+
+
+/*
+Attempt to extract the tiddlers from an encrypted store area using the current password. If that fails, the user is prompted for a password.
+encryptedStoreArea: text of the TiddlyWiki encrypted store area
+callback: function(tiddlers) called with the array of decrypted tiddlers
+
+The following configuration settings are supported:
+
+$tw.config.usePasswordVault: causes any password entered by the user to also be put into the system password vault
+*/
+exports.decryptStoreAreaInteractive = function(encryptedStoreArea,callback,options) {
+ // Try to decrypt with the current password
+ var tiddlers = $tw.utils.decryptStoreArea(encryptedStoreArea);
+ if(tiddlers) {
+ callback(tiddlers);
+ } else {
+ // Prompt for a new password and keep trying
+ $tw.passwordPrompt.createPrompt({
+ serviceName: "Enter a password to decrypt the imported TiddlyWiki",
+ noUserName: true,
+ canCancel: true,
+ submitText: "Decrypt",
+ callback: function(data) {
+ // Exit if the user cancelled
+ if(!data) {
+ return false;
+ }
+ // Attempt to decrypt the tiddlers
+ var tiddlers = $tw.utils.decryptStoreArea(encryptedStoreArea,data.password);
+ if(tiddlers) {
+ if($tw.config.usePasswordVault) {
+ $tw.crypto.setPassword(data.password);
+ }
+ callback(tiddlers);
+ // Exit and remove the password prompt
+ return true;
+ } else {
+ // We didn't decrypt everything, so continue to prompt for password
+ return false;
+ }
+ }
+ });
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/utils/csv.js
+type: application/javascript
+module-type: utils
+
+A barebones CSV parser
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Parse a CSV string with a header row and return an array of hashmaps.
+*/
+exports.parseCsvStringWithHeader = function(text,options) {
+ options = options || {};
+ var separator = options.separator || ",",
+ rows = text.split(/\r?\n/mg).map(function(row) {
+ return $tw.utils.trim(row);
+ }).filter(function(row) {
+ return row !== "";
+ });
+ if(rows.length < 1) {
+ return "Missing header row";
+ }
+ var headings = rows[0].split(separator),
+ results = [];
+ for(var row=1; row<rows.length; row++) {
+ var columns = rows[row].split(separator),
+ columnResult = Object.create(null);
+ if(columns.length !== headings.length) {
+ return "Malformed CSV row '" + rows[row] + "'";
+ }
+ for(var column=0; column<columns.length; column++) {
+ var columnName = headings[column];
+ columnResult[columnName] = $tw.utils.trim(columns[column] || "");
+ }
+ results.push(columnResult);
+ }
+ return results;
+}
+
+})();
+
+(function(){function diff_match_patch(){this.Diff_Timeout=1;this.Diff_EditCost=4;this.Match_Threshold=.5;this.Match_Distance=1E3;this.Patch_DeleteThreshold=.5;this.Patch_Margin=4;this.Match_MaxBits=32}var DIFF_DELETE=-1,DIFF_INSERT=1,DIFF_EQUAL=0;
+diff_match_patch.prototype.diff_main=function(a,b,c,d){"undefined"==typeof d&&(d=0>=this.Diff_Timeout?Number.MAX_VALUE:(new Date).getTime()+1E3*this.Diff_Timeout);if(null==a||null==b)throw Error("Null input. (diff_main)");if(a==b)return a?[[DIFF_EQUAL,a]]:[];"undefined"==typeof c&&(c=!0);var e=c,f=this.diff_commonPrefix(a,b);c=a.substring(0,f);a=a.substring(f);b=b.substring(f);f=this.diff_commonSuffix(a,b);var g=a.substring(a.length-f);a=a.substring(0,a.length-f);b=b.substring(0,b.length-f);a=this.diff_compute_(a,
+b,e,d);c&&a.unshift([DIFF_EQUAL,c]);g&&a.push([DIFF_EQUAL,g]);this.diff_cleanupMerge(a);return a};
+diff_match_patch.prototype.diff_compute_=function(a,b,c,d){if(!a)return[[DIFF_INSERT,b]];if(!b)return[[DIFF_DELETE,a]];var e=a.length>b.length?a:b,f=a.length>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>b.length&&(c[0][0]=c[2][0]=DIFF_DELETE),c):1==f.length?[[DIFF_DELETE,a],[DIFF_INSERT,b]]:(e=this.diff_halfMatch_(a,b))?(b=e[1],f=e[3],a=e[4],e=this.diff_main(e[0],e[2],c,d),c=this.diff_main(b,f,c,d),e.concat([[DIFF_EQUAL,
+a]],c)):c&&100<a.length&&100<b.length?this.diff_lineMode_(a,b,d):this.diff_bisect_(a,b,d)};
+diff_match_patch.prototype.diff_lineMode_=function(a,b,c){var d=this.diff_linesToChars_(a,b);a=d.chars1;b=d.chars2;d=d.lineArray;a=this.diff_main(a,b,!1,c);this.diff_charsToLines_(a,d);this.diff_cleanupSemantic(a);a.push([DIFF_EQUAL,""]);for(var e=d=b=0,f="",g="";b<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<=d&&1<=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<=e;e--)a.splice(b,0,d[e]);b+=
+d.length}d=e=0;g=f=""}b++}a.pop();return a};
+diff_match_patch.prototype.diff_bisect_=function(a,b,c){for(var d=a.length,e=b.length,f=Math.ceil((d+e)/2),g=2*f,h=Array(g),l=Array(g),k=0;k<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<f&&!((new Date).getTime()>c);t++){for(var v=-t+p;v<=t-x;v+=2){var n=f+v;var r=v==-t||v!=t&&h[n-1]<h[n+1]?h[n+1]:h[n-1]+1;for(var y=r-v;r<d&&y<e&&a.charAt(r)==b.charAt(y);)r++,y++;h[n]=r;if(r>d)x+=2;else if(y>e)p+=2;else if(m&&(n=f+k-v,0<=n&&n<g&&-1!=l[n])){var u=d-l[n];if(r>=
+u)return this.diff_bisectSplit_(a,b,r,y,c)}}for(v=-t+w;v<=t-q;v+=2){n=f+v;u=v==-t||v!=t&&l[n-1]<l[n+1]?l[n+1]:l[n-1]+1;for(r=u-v;u<d&&r<e&&a.charAt(d-u-1)==b.charAt(e-r-1);)u++,r++;l[n]=u;if(u>d)q+=2;else if(r>e)w+=2;else if(!m&&(n=f+k-v,0<=n&&n<g&&-1!=h[n]&&(r=h[n],y=f+r-n,u=d-u,r>=u)))return this.diff_bisectSplit_(a,b,r,y,c)}}return[[DIFF_DELETE,a],[DIFF_INSERT,b]]};
+diff_match_patch.prototype.diff_bisectSplit_=function(a,b,c,d,e){var f=a.substring(0,c),g=b.substring(0,d);a=a.substring(c);b=b.substring(d);f=this.diff_main(f,g,!1,e);e=this.diff_main(a,b,!1,e);return f.concat(e)};
+diff_match_patch.prototype.diff_linesToChars_=function(a,b){function c(a){for(var b="",c=0,f=-1,g=d.length;f<a.length-1;){f=a.indexOf("\n",c);-1==f&&(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]="";var f=c(a),g=c(b);return{chars1:f,chars2:g,lineArray:d}};
+diff_match_patch.prototype.diff_charsToLines_=function(a,b){for(var c=0;c<a.length;c++){for(var d=a[c][1],e=[],f=0;f<d.length;f++)e[f]=b[d.charCodeAt(f)];a[c][1]=e.join("")}};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<e;)a.substring(f,e)==b.substring(f,e)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e};
+diff_match_patch.prototype.diff_commonSuffix=function(a,b){if(!a||!b||a.charAt(a.length-1)!=b.charAt(b.length-1))return 0;for(var c=0,d=Math.min(a.length,b.length),e=d,f=0;c<e;)a.substring(a.length-e,a.length-f)==b.substring(b.length-e,b.length-f)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e};
+diff_match_patch.prototype.diff_commonOverlap_=function(a,b){var c=a.length,d=b.length;if(0==c||0==d)return 0;c>d?a=a.substring(c-d):c<d&&(b=b.substring(0,c));c=Math.min(c,d);if(a==b)return c;d=0;for(var e=1;;){var f=a.substring(c-e);f=b.indexOf(f);if(-1==f)return d;e+=f;if(0==f||a.substring(c-e)==b.substring(0,e))d=e,e++}};
+diff_match_patch.prototype.diff_halfMatch_=function(a,b){function c(a,b,c){for(var d=a.substring(c,c+Math.floor(a.length/4)),e=-1,g="",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<u+p&&(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>=a.length?[h,k,l,m,g]:null}if(0>=this.Diff_Timeout)return null;
+var d=a.length>b.length?a:b,e=a.length>b.length?b:a;if(4>d.length||2*e.length<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>d[4].length?g:d:d:g;else return null;if(a.length>b.length){d=g[0];e=g[1];var h=g[2];var l=g[3]}else h=g[0],l=g[1],d=g[2],e=g[3];return[d,e,h,l,g[4]]};
+diff_match_patch.prototype.diff_cleanupSemantic=function(a){for(var b=!1,c=[],d=0,e=null,f=0,g=0,h=0,l=0,k=0;f<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&&e.length<=Math.max(g,h)&&e.length<=Math.max(l,k)&&(a.splice(c[d-1],0,[DIFF_DELETE,e]),a[c[d-1]+1][0]=DIFF_INSERT,d--,d--,f=0<d?c[d-1]:-1,k=l=h=g=0,e=null,b=!0)),f++;b&&this.diff_cleanupMerge(a);this.diff_cleanupSemanticLossless(a);for(f=1;f<a.length;){if(a[f-1][0]==
+DIFF_DELETE&&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>=e){if(d>=b.length/2||d>=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>=b.length/2||e>=c.length/2)a.splice(f,0,[DIFF_EQUAL,b.substring(0,e)]),a[f-1][0]=DIFF_INSERT,a[f-1][1]=c.substring(0,c.length-e),a[f+1][0]=DIFF_DELETE,a[f+1][1]=b.substring(e),f++;f++}f++}};
+diff_match_patch.prototype.diff_cleanupSemanticLossless=function(a){function b(a,b){if(!a||!b)return 6;var c=a.charAt(a.length-1),d=b.charAt(0),e=c.match(diff_match_patch.nonAlphaNumericRegex_),f=d.match(diff_match_patch.nonAlphaNumericRegex_),g=e&&c.match(diff_match_patch.whitespaceRegex_),h=f&&d.match(diff_match_patch.whitespaceRegex_);c=g&&c.match(diff_match_patch.linebreakRegex_);d=h&&d.match(diff_match_patch.linebreakRegex_);var k=c&&a.match(diff_match_patch.blanklineEndRegex_),l=d&&b.match(diff_match_patch.blanklineStartRegex_);
+return k||l?5:c||d?4:e&&!g&&h?3:g||h?2:e||f?1:0}for(var c=1;c<a.length-1;){if(a[c-1][0]==DIFF_EQUAL&&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>=k&&(k=m,g=d,h=e,l=f)}a[c-1][1]!=g&&(g?a[c-1][1]=g:(a.splice(c-
+1,1),c--),a[c][1]=h,l?a[c+1][1]=l:(a.splice(c+1,1),c--))}c++}};diff_match_patch.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;diff_match_patch.whitespaceRegex_=/\s/;diff_match_patch.linebreakRegex_=/[\r\n]/;diff_match_patch.blanklineEndRegex_=/\n\r?\n$/;diff_match_patch.blanklineStartRegex_=/^\r?\n\r?\n/;
+diff_match_patch.prototype.diff_cleanupEfficiency=function(a){for(var b=!1,c=[],d=0,e=null,f=0,g=!1,h=!1,l=!1,k=!1;f<a.length;)a[f][0]==DIFF_EQUAL?(a[f][1].length<this.Diff_EditCost&&(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&&(g&&h&&l&&k||e.length<this.Diff_EditCost/2&&3==g+h+l+k)&&(a.splice(c[d-1],0,[DIFF_DELETE,e]),a[c[d-1]+1][0]=DIFF_INSERT,d--,e=null,g&&h?(l=k=!0,d=0):(d--,f=0<d?c[d-1]:-1,l=k=!1),b=!0)),f++;b&&this.diff_cleanupMerge(a)};
+diff_match_patch.prototype.diff_cleanupMerge=function(a){a.push([DIFF_EQUAL,""]);for(var b=0,c=0,d=0,e="",f="",g;b<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<c+d?(0!==c&&0!==d&&(g=this.diff_commonPrefix(f,e),0!==g&&(0<b-c-d&&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&&(a[b][1]=f.substring(f.length-
+g)+a[b][1],f=f.substring(0,f.length-g),e=e.substring(0,e.length-g))),0===c?a.splice(b-d,c+d,[DIFF_INSERT,f]):0===d?a.splice(b-c,c+d,[DIFF_DELETE,e]):a.splice(b-c-d,c+d,[DIFF_DELETE,e],[DIFF_INSERT,f]),b=b-c-d+(c?1:0)+(d?1:0)+1):0!==b&&a[b-1][0]==DIFF_EQUAL?(a[b-1][1]+=a[b][1],a.splice(b,1)):b++,c=d=0,f=e=""}""===a[a.length-1][1]&&a.pop();c=!1;for(b=1;b<a.length-1;)a[b-1][0]==DIFF_EQUAL&&a[b+1][0]==DIFF_EQUAL&&(a[b][1].substring(a[b][1].length-a[b-1][1].length)==a[b-1][1]?(a[b][1]=a[b-1][1]+a[b][1].substring(0,
+a[b][1].length-a[b-1][1].length),a[b+1][1]=a[b-1][1]+a[b+1][1],a.splice(b-1,1),c=!0):a[b][1].substring(0,a[b+1][1].length)==a[b+1][1]&&(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&&this.diff_cleanupMerge(a)};
+diff_match_patch.prototype.diff_xIndex=function(a,b){var c=0,d=0,e=0,f=0,g;for(g=0;g<a.length;g++){a[g][0]!==DIFF_INSERT&&(c+=a[g][1].length);a[g][0]!==DIFF_DELETE&&(d+=a[g][1].length);if(c>b)break;e=c;f=d}return a.length!=g&&a[g][0]===DIFF_DELETE?f:f+(b-e)};
+diff_match_patch.prototype.diff_prettyHtml=function(a){for(var b=[],c=/&/g,d=/</g,e=/>/g,f=/\n/g,g=0;g<a.length;g++){var h=a[g][0],l=a[g][1].replace(c,"&").replace(d,"<").replace(e,">").replace(f,"¶<br>");switch(h){case DIFF_INSERT:b[g]='<ins style="background:#e6ffe6;">'+l+"</ins>";break;case DIFF_DELETE:b[g]='<del style="background:#ffe6e6;">'+l+"</del>";break;case DIFF_EQUAL:b[g]="<span>"+l+"</span>"}}return b.join("")};
+diff_match_patch.prototype.diff_text1=function(a){for(var b=[],c=0;c<a.length;c++)a[c][0]!==DIFF_INSERT&&(b[c]=a[c][1]);return b.join("")};diff_match_patch.prototype.diff_text2=function(a){for(var b=[],c=0;c<a.length;c++)a[c][0]!==DIFF_DELETE&&(b[c]=a[c][1]);return b.join("")};
+diff_match_patch.prototype.diff_levenshtein=function(a){for(var b=0,c=0,d=0,e=0;e<a.length;e++){var f=a[e][1];switch(a[e][0]){case DIFF_INSERT:c+=f.length;break;case DIFF_DELETE:d+=f.length;break;case DIFF_EQUAL:b+=Math.max(c,d),d=c=0}}return b+=Math.max(c,d)};
+diff_match_patch.prototype.diff_toDelta=function(a){for(var b=[],c=0;c<a.length;c++)switch(a[c][0]){case DIFF_INSERT:b[c]="+"+encodeURI(a[c][1]);break;case DIFF_DELETE:b[c]="-"+a[c][1].length;break;case DIFF_EQUAL:b[c]="="+a[c][1].length}return b.join("\t").replace(/%20/g," ")};
+diff_match_patch.prototype.diff_fromDelta=function(a,b){for(var c=[],d=0,e=0,f=b.split(/\t/g),g=0;g<f.length;g++){var h=f[g].substring(1);switch(f[g].charAt(0)){case "+":try{c[d++]=[DIFF_INSERT,decodeURI(h)]}catch(k){throw Error("Illegal escape in diff_fromDelta: "+h);}break;case "-":case "=":var l=parseInt(h,10);if(isNaN(l)||0>l)throw Error("Invalid number in diff_fromDelta: "+h);h=a.substring(e,e+=l);"="==f[g].charAt(0)?c[d++]=[DIFF_EQUAL,h]:c[d++]=[DIFF_DELETE,h];break;default:if(f[g])throw Error("Invalid diff operation in diff_fromDelta: "+
+f[g]);}}if(e!=a.length)throw Error("Delta length ("+e+") does not equal source text length ("+a.length+").");return c};diff_match_patch.prototype.match_main=function(a,b,c){if(null==a||null==b||null==c)throw Error("Null input. (match_main)");c=Math.max(0,Math.min(c,a.length));return a==b?0:a.length?a.substring(c,c+b.length)==b?c:this.match_bitap_(a,b,c):-1};
+diff_match_patch.prototype.match_bitap_=function(a,b,c){function d(a,d){var e=a/b.length,g=Math.abs(c-d);return f.Match_Distance?e+g/f.Match_Distance:g?1:e}if(b.length>this.Match_MaxBits)throw Error("Pattern too long for this browser.");var e=this.match_alphabet_(b),f=this,g=this.Match_Threshold,h=a.indexOf(b,c);-1!=h&&(g=Math.min(d(0,h),g),h=a.lastIndexOf(b,c+b.length),-1!=h&&(g=Math.min(d(0,h),g)));var l=1<<b.length-1;h=-1;for(var k,m,p=b.length+a.length,x,w=0;w<b.length;w++){k=0;for(m=p;k<m;)d(w,
+c+m)<=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<<w)-1;q>=k;q--){var t=e[a.charAt(q-1)];m[q]=0===w?(m[q+1]<<1|1)&t:(m[q+1]<<1|1)&t|(x[q+1]|x[q])<<1|1|x[q+1];if(m[q]&l&&(t=d(w,q-1),t<=g))if(g=t,h=q-1,h>c)k=Math.max(1,2*c-h);else break}if(d(w+1,c)>g)break;x=m}return h};
+diff_match_patch.prototype.match_alphabet_=function(a){for(var b={},c=0;c<a.length;c++)b[a.charAt(c)]=0;for(c=0;c<a.length;c++)b[a.charAt(c)]|=1<<a.length-c-1;return b};
+diff_match_patch.prototype.patch_addContext_=function(a,b){if(0!=b.length){for(var c=b.substring(a.start2,a.start2+a.length1),d=0;b.indexOf(c)!=b.lastIndexOf(c)&&c.length<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))&&a.diffs.unshift([DIFF_EQUAL,c]);(d=b.substring(a.start2+a.length1,a.start2+a.length1+d))&&a.diffs.push([DIFF_EQUAL,d]);a.start1-=c.length;a.start2-=
+c.length;a.length1+=c.length+d.length;a.length2+=c.length+d.length}};
+diff_match_patch.prototype.patch_make=function(a,b,c){if("string"==typeof a&&"string"==typeof b&&"undefined"==typeof c){var d=a;b=this.diff_main(d,b,!0);2<b.length&&(this.diff_cleanupSemantic(b),this.diff_cleanupEfficiency(b))}else if(a&&"object"==typeof a&&"undefined"==typeof b&&"undefined"==typeof c)b=a,d=this.diff_text1(b);else if("string"==typeof a&&b&&"object"==typeof b&&"undefined"==typeof c)d=a;else if("string"==typeof a&&"string"==typeof b&&c&&"object"==typeof c)d=a,b=c;else throw Error("Unknown call format to patch_make.");
+if(0===b.length)return[];c=[];a=new diff_match_patch.patch_obj;for(var e=0,f=0,g=0,h=d,l=0;l<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<=2*this.Patch_Margin&&e&&b.length!=l+1?(a.diffs[e++]=b[l],a.length1+=m.length,a.length2+=m.length):
+m.length>=2*this.Patch_Margin&&e&&(this.patch_addContext_(a,h),c.push(a),a=new diff_match_patch.patch_obj,e=0,h=d,f=g)}k!==DIFF_INSERT&&(f+=m.length);k!==DIFF_DELETE&&(g+=m.length)}e&&(this.patch_addContext_(a,h),c.push(a));return c};
+diff_match_patch.prototype.patch_deepCopy=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=new diff_match_patch.patch_obj;e.diffs=[];for(var f=0;f<d.diffs.length;f++)e.diffs[f]=d.diffs[f].slice();e.start1=d.start1;e.start2=d.start2;e.length1=d.length1;e.length2=d.length2;b[c]=e}return b};
+diff_match_patch.prototype.patch_apply=function(a,b){if(0==a.length)return[b,[]];a=this.patch_deepCopy(a);var c=this.patch_addPadding(a);b=c+b+c;this.patch_splitMax(a);for(var d=0,e=[],f=0;f<a.length;f++){var g=a[f].start2+d,h=this.diff_text1(a[f].diffs),l=-1;if(h.length>this.Match_MaxBits){var k=this.match_main(b,h.substring(0,this.Match_MaxBits),g);-1!=k&&(l=this.match_main(b,h.substring(h.length-this.Match_MaxBits),g+h.length-this.Match_MaxBits),-1==l||k>=l)&&(k=-1)}else k=this.match_main(b,h,
+g);if(-1==k)e[f]=!1,d-=a[f].length2-a[f].length1;else if(e[f]=!0,d=k-g,g=-1==l?b.substring(k,k+h.length):b.substring(k,l+this.Match_MaxBits),h==g)b=b.substring(0,k)+this.diff_text2(a[f].diffs)+b.substring(k+h.length);else if(g=this.diff_main(h,g,!1),h.length>this.Match_MaxBits&&this.diff_levenshtein(g)/h.length>this.Patch_DeleteThreshold)e[f]=!1;else{this.diff_cleanupSemanticLossless(g);h=0;var m;for(l=0;l<a[f].diffs.length;l++){var p=a[f].diffs[l];p[0]!==DIFF_EQUAL&&(m=this.diff_xIndex(g,h));p[0]===
+DIFF_INSERT?b=b.substring(0,k+m)+p[1]+b.substring(k+m):p[0]===DIFF_DELETE&&(b=b.substring(0,k+m)+b.substring(k+this.diff_xIndex(g,h+p[1].length)));p[0]!==DIFF_DELETE&&(h+=p[1].length)}}}b=b.substring(c.length,b.length-c.length);return[b,e]};
+diff_match_patch.prototype.patch_addPadding=function(a){for(var b=this.Patch_Margin,c="",d=1;d<=b;d++)c+=String.fromCharCode(d);for(d=0;d<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>e[0][1].length){var f=b-e[0][1].length;e[0][1]=c.substring(e[0][1].length)+e[0][1];d.start1-=f;d.start2-=f;d.length1+=f;d.length2+=f}d=a[a.length-1];e=d.diffs;0==e.length||e[e.length-
+1][0]!=DIFF_EQUAL?(e.push([DIFF_EQUAL,c]),d.length1+=b,d.length2+=b):b>e[e.length-1][1].length&&(f=b-e[e.length-1][1].length,e[e.length-1][1]+=c.substring(0,f),d.length1+=f,d.length2+=f);return c};
+diff_match_patch.prototype.patch_splitMax=function(a){for(var b=this.Match_MaxBits,c=0;c<a.length;c++)if(!(a[c].length1<=b)){var d=a[c];a.splice(c--,1);for(var e=d.start1,f=d.start2,g="";0!==d.diffs.length;){var h=new diff_match_patch.patch_obj,l=!0;h.start1=e-g.length;h.start2=f-g.length;""!==g&&(h.length1=h.length2=g.length,h.diffs.push([DIFF_EQUAL,g]));for(;0!==d.diffs.length&&h.length1<b-this.Patch_Margin;){g=d.diffs[0][0];var k=d.diffs[0][1];g===DIFF_INSERT?(h.length2+=k.length,f+=k.length,h.diffs.push(d.diffs.shift()),
+l=!1):g===DIFF_DELETE&&1==h.diffs.length&&h.diffs[0][0]==DIFF_EQUAL&&k.length>2*b?(h.length1+=k.length,e+=k.length,l=!1,h.diffs.push([g,k]),d.diffs.shift()):(k=k.substring(0,b-h.length1-this.Patch_Margin),h.length1+=k.length,e+=k.length,g===DIFF_EQUAL?(h.length2+=k.length,f+=k.length):l=!1,h.diffs.push([g,k]),k==d.diffs[0][1]?d.diffs.shift():d.diffs[0][1]=d.diffs[0][1].substring(k.length))}g=this.diff_text2(h.diffs);g=g.substring(g.length-this.Patch_Margin);k=this.diff_text1(d.diffs).substring(0,
+this.Patch_Margin);""!==k&&(h.length1+=k.length,h.length2+=k.length,0!==h.diffs.length&&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<a.length;c++)b[c]=a[c];return b.join("")};
+diff_match_patch.prototype.patch_fromText=function(a){var b=[];if(!a)return b;a=a.split("\n");for(var c=0,d=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;c<a.length;){var e=a[c].match(d);if(!e)throw Error("Invalid patch string: "+a[c]);var f=new diff_match_patch.patch_obj;b.push(f);f.start1=parseInt(e[1],10);""===e[2]?(f.start1--,f.length1=1):"0"==e[2]?f.length1=0:(f.start1--,f.length1=parseInt(e[2],10));f.start2=parseInt(e[3],10);""===e[4]?(f.start2--,f.length2=1):"0"==e[4]?f.length2=0:(f.start2--,f.length2=
+parseInt(e[4],10));for(c++;c<a.length;){e=a[c].charAt(0);try{var g=decodeURI(a[c].substring(1))}catch(h){throw Error("Illegal escape in patch_fromText: "+g);}if("-"==e)f.diffs.push([DIFF_DELETE,g]);else if("+"==e)f.diffs.push([DIFF_INSERT,g]);else if(" "==e)f.diffs.push([DIFF_EQUAL,g]);else if("@"==e)break;else if(""!==e)throw Error('Invalid patch mode "'+e+'" in: '+g);c++}}return b};diff_match_patch.patch_obj=function(){this.diffs=[];this.start2=this.start1=null;this.length2=this.length1=0};
+diff_match_patch.patch_obj.prototype.toString=function(){for(var a=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],b,c=0;c<this.diffs.length;c++){switch(this.diffs[c][0]){case DIFF_INSERT:b="+";break;case DIFF_DELETE:b="-";break;case DIFF_EQUAL:b=" "}a[c+1]=b+encodeURI(this.diffs[c][1])+"\n"}return a.join("").replace(/%20/g," ")};
+this.diff_match_patch=diff_match_patch;this.DIFF_DELETE=DIFF_DELETE;this.DIFF_INSERT=DIFF_INSERT;this.DIFF_EQUAL=DIFF_EQUAL;
+}).call(exports);
+/*\
+title: $:/core/modules/utils/dom.js
+type: application/javascript
+module-type: utils
+
+Various static DOM-related utility functions.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Determines whether element 'a' contains element 'b'
+Code thanks to John Resig, http://ejohn.org/blog/comparing-document-position/
+*/
+exports.domContains = function(a,b) {
+ return a.contains ?
+ a !== b && a.contains(b) :
+ !!(a.compareDocumentPosition(b) & 16);
+};
+
+exports.removeChildren = function(node) {
+ while(node.hasChildNodes()) {
+ node.removeChild(node.firstChild);
+ }
+};
+
+exports.hasClass = function(el,className) {
+ return el && el.className && el.className.toString().split(" ").indexOf(className) !== -1;
+};
+
+exports.addClass = function(el,className) {
+ var c = el.className.split(" ");
+ if(c.indexOf(className) === -1) {
+ c.push(className);
+ el.className = c.join(" ");
+ }
+};
+
+exports.removeClass = function(el,className) {
+ var c = el.className.split(" "),
+ p = c.indexOf(className);
+ if(p !== -1) {
+ c.splice(p,1);
+ el.className = c.join(" ");
+ }
+};
+
+exports.toggleClass = function(el,className,status) {
+ if(status === undefined) {
+ status = !exports.hasClass(el,className);
+ }
+ if(status) {
+ exports.addClass(el,className);
+ } else {
+ exports.removeClass(el,className);
+ }
+};
+
+/*
+Get the first parent element that has scrollbars or use the body as fallback.
+*/
+exports.getScrollContainer = function(el) {
+ var doc = el.ownerDocument;
+ while(el.parentNode) {
+ el = el.parentNode;
+ if(el.scrollTop) {
+ return el;
+ }
+ }
+ return doc.body;
+};
+
+/*
+Get the scroll position of the viewport
+Returns:
+ {
+ x: horizontal scroll position in pixels,
+ y: vertical scroll position in pixels
+ }
+*/
+exports.getScrollPosition = function(srcWindow) {
+ var scrollWindow = srcWindow || window;
+ if("scrollX" in scrollWindow) {
+ return {x: scrollWindow.scrollX, y: scrollWindow.scrollY};
+ } else {
+ return {x: scrollWindow.document.documentElement.scrollLeft, y: scrollWindow.document.documentElement.scrollTop};
+ }
+};
+
+/*
+Adjust the height of a textarea to fit its content, preserving scroll position, and return the height
+*/
+exports.resizeTextAreaToFit = function(domNode,minHeight) {
+ // Get the scroll container and register the current scroll position
+ var container = $tw.utils.getScrollContainer(domNode),
+ scrollTop = container.scrollTop;
+ // Measure the specified minimum height
+ domNode.style.height = minHeight;
+ var measuredHeight = domNode.offsetHeight || parseInt(minHeight,10);
+ // Set its height to auto so that it snaps to the correct height
+ domNode.style.height = "auto";
+ // Calculate the revised height
+ var newHeight = Math.max(domNode.scrollHeight + domNode.offsetHeight - domNode.clientHeight,measuredHeight);
+ // Only try to change the height if it has changed
+ if(newHeight !== domNode.offsetHeight) {
+ domNode.style.height = newHeight + "px";
+ // Make sure that the dimensions of the textarea are recalculated
+ $tw.utils.forceLayout(domNode);
+ // Set the container to the position we registered at the beginning
+ container.scrollTop = scrollTop;
+ }
+ return newHeight;
+};
+
+/*
+Gets the bounding rectangle of an element in absolute page coordinates
+*/
+exports.getBoundingPageRect = function(element) {
+ var scrollPos = $tw.utils.getScrollPosition(element.ownerDocument.defaultView),
+ clientRect = element.getBoundingClientRect();
+ return {
+ left: clientRect.left + scrollPos.x,
+ width: clientRect.width,
+ right: clientRect.right + scrollPos.x,
+ top: clientRect.top + scrollPos.y,
+ height: clientRect.height,
+ bottom: clientRect.bottom + scrollPos.y
+ };
+};
+
+/*
+Saves a named password in the browser
+*/
+exports.savePassword = function(name,password) {
+ var done = false;
+ try {
+ window.localStorage.setItem("tw5-password-" + name,password);
+ done = true;
+ } catch(e) {
+ }
+ if(!done) {
+ $tw.savedPasswords = $tw.savedPasswords || Object.create(null);
+ $tw.savedPasswords[name] = password;
+ }
+};
+
+/*
+Retrieve a named password from the browser
+*/
+exports.getPassword = function(name) {
+ var value;
+ try {
+ value = window.localStorage.getItem("tw5-password-" + name);
+ } catch(e) {
+ }
+ if(value !== undefined) {
+ return value;
+ } else {
+ return ($tw.savedPasswords || Object.create(null))[name] || "";
+ }
+};
+
+/*
+Force layout of a dom node and its descendents
+*/
+exports.forceLayout = function(element) {
+ var dummy = element.offsetWidth;
+};
+
+/*
+Pulse an element for debugging purposes
+*/
+exports.pulseElement = function(element) {
+ // Event handler to remove the class at the end
+ element.addEventListener($tw.browser.animationEnd,function handler(event) {
+ element.removeEventListener($tw.browser.animationEnd,handler,false);
+ $tw.utils.removeClass(element,"pulse");
+ },false);
+ // Apply the pulse class
+ $tw.utils.removeClass(element,"pulse");
+ $tw.utils.forceLayout(element);
+ $tw.utils.addClass(element,"pulse");
+};
+
+/*
+Attach specified event handlers to a DOM node
+domNode: where to attach the event handlers
+events: array of event handlers to be added (see below)
+Each entry in the events array is an object with these properties:
+handlerFunction: optional event handler function
+handlerObject: optional event handler object
+handlerMethod: optionally specifies object handler method name (defaults to `handleEvent`)
+*/
+exports.addEventListeners = function(domNode,events) {
+ $tw.utils.each(events,function(eventInfo) {
+ var handler;
+ if(eventInfo.handlerFunction) {
+ handler = eventInfo.handlerFunction;
+ } else if(eventInfo.handlerObject) {
+ if(eventInfo.handlerMethod) {
+ handler = function(event) {
+ eventInfo.handlerObject[eventInfo.handlerMethod].call(eventInfo.handlerObject,event);
+ };
+ } else {
+ handler = eventInfo.handlerObject;
+ }
+ }
+ domNode.addEventListener(eventInfo.name,handler,false);
+ });
+};
+
+/*
+Get the computed styles applied to an element as an array of strings of individual CSS properties
+*/
+exports.getComputedStyles = function(domNode) {
+ var textAreaStyles = window.getComputedStyle(domNode,null),
+ styleDefs = [],
+ name;
+ for(var t=0; t<textAreaStyles.length; t++) {
+ name = textAreaStyles[t];
+ styleDefs.push(name + ": " + textAreaStyles.getPropertyValue(name) + ";");
+ }
+ return styleDefs;
+};
+
+/*
+Apply a set of styles passed as an array of strings of individual CSS properties
+*/
+exports.setStyles = function(domNode,styleDefs) {
+ domNode.style.cssText = styleDefs.join("");
+};
+
+/*
+Copy the computed styles from a source element to a destination element
+*/
+exports.copyStyles = function(srcDomNode,dstDomNode) {
+ $tw.utils.setStyles(dstDomNode,$tw.utils.getComputedStyles(srcDomNode));
+};
+
+/*
+Copy plain text to the clipboard on browsers that support it
+*/
+exports.copyToClipboard = function(text,options) {
+ options = options || {};
+ var textArea = document.createElement("textarea");
+ textArea.style.position = "fixed";
+ textArea.style.top = 0;
+ textArea.style.left = 0;
+ textArea.style.fontSize = "12pt";
+ textArea.style.width = "2em";
+ textArea.style.height = "2em";
+ textArea.style.padding = 0;
+ textArea.style.border = "none";
+ textArea.style.outline = "none";
+ textArea.style.boxShadow = "none";
+ textArea.style.background = "transparent";
+ textArea.value = text;
+ document.body.appendChild(textArea);
+ textArea.select();
+ textArea.setSelectionRange(0,text.length);
+ var succeeded = false;
+ try {
+ succeeded = document.execCommand("copy");
+ } catch (err) {
+ }
+ if(!options.doNotNotify) {
+ $tw.notifier.display(succeeded ? "$:/language/Notifications/CopiedToClipboard/Succeeded" : "$:/language/Notifications/CopiedToClipboard/Failed");
+ }
+ document.body.removeChild(textArea);
+};
+
+exports.getLocationPath = function() {
+ return window.location.toString().split("#")[0];
+};
+
+
+})();
+
+/*\
+title: $:/core/modules/utils/dom/animations/slide.js
+type: application/javascript
+module-type: animation
+
+A simple slide animation that varies the height of the element
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+function slideOpen(domNode,options) {
+ options = options || {};
+ var duration = options.duration || $tw.utils.getAnimationDuration();
+ // Get the current height of the domNode
+ var computedStyle = window.getComputedStyle(domNode),
+ currMarginBottom = parseInt(computedStyle.marginBottom,10),
+ currMarginTop = parseInt(computedStyle.marginTop,10),
+ currPaddingBottom = parseInt(computedStyle.paddingBottom,10),
+ currPaddingTop = parseInt(computedStyle.paddingTop,10),
+ currHeight = domNode.offsetHeight;
+ // Reset the margin once the transition is over
+ setTimeout(function() {
+ $tw.utils.setStyle(domNode,[
+ {transition: "none"},
+ {marginBottom: ""},
+ {marginTop: ""},
+ {paddingBottom: ""},
+ {paddingTop: ""},
+ {height: "auto"},
+ {opacity: ""}
+ ]);
+ if(options.callback) {
+ options.callback();
+ }
+ },duration);
+ // Set up the initial position of the element
+ $tw.utils.setStyle(domNode,[
+ {transition: "none"},
+ {marginTop: "0px"},
+ {marginBottom: "0px"},
+ {paddingTop: "0px"},
+ {paddingBottom: "0px"},
+ {height: "0px"},
+ {opacity: "0"}
+ ]);
+ $tw.utils.forceLayout(domNode);
+ // Transition to the final position
+ $tw.utils.setStyle(domNode,[
+ {transition: "margin-top " + duration + "ms ease-in-out, " +
+ "margin-bottom " + duration + "ms ease-in-out, " +
+ "padding-top " + duration + "ms ease-in-out, " +
+ "padding-bottom " + duration + "ms ease-in-out, " +
+ "height " + duration + "ms ease-in-out, " +
+ "opacity " + duration + "ms ease-in-out"},
+ {marginBottom: currMarginBottom + "px"},
+ {marginTop: currMarginTop + "px"},
+ {paddingBottom: currPaddingBottom + "px"},
+ {paddingTop: currPaddingTop + "px"},
+ {height: currHeight + "px"},
+ {opacity: "1"}
+ ]);
+}
+
+function slideClosed(domNode,options) {
+ options = options || {};
+ var duration = options.duration || $tw.utils.getAnimationDuration(),
+ currHeight = domNode.offsetHeight;
+ // Clear the properties we've set when the animation is over
+ setTimeout(function() {
+ $tw.utils.setStyle(domNode,[
+ {transition: "none"},
+ {marginBottom: ""},
+ {marginTop: ""},
+ {paddingBottom: ""},
+ {paddingTop: ""},
+ {height: "auto"},
+ {opacity: ""}
+ ]);
+ if(options.callback) {
+ options.callback();
+ }
+ },duration);
+ // Set up the initial position of the element
+ $tw.utils.setStyle(domNode,[
+ {height: currHeight + "px"},
+ {opacity: "1"}
+ ]);
+ $tw.utils.forceLayout(domNode);
+ // Transition to the final position
+ $tw.utils.setStyle(domNode,[
+ {transition: "margin-top " + duration + "ms ease-in-out, " +
+ "margin-bottom " + duration + "ms ease-in-out, " +
+ "padding-top " + duration + "ms ease-in-out, " +
+ "padding-bottom " + duration + "ms ease-in-out, " +
+ "height " + duration + "ms ease-in-out, " +
+ "opacity " + duration + "ms ease-in-out"},
+ {marginTop: "0px"},
+ {marginBottom: "0px"},
+ {paddingTop: "0px"},
+ {paddingBottom: "0px"},
+ {height: "0px"},
+ {opacity: "0"}
+ ]);
+}
+
+exports.slide = {
+ open: slideOpen,
+ close: slideClosed
+};
+
+})();
+
+/*\
+title: $:/core/modules/utils/dom/animator.js
+type: application/javascript
+module-type: utils
+
+Orchestrates animations and transitions
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+function Animator() {
+ // Get the registered animation modules
+ this.animations = {};
+ $tw.modules.applyMethods("animation",this.animations);
+}
+
+Animator.prototype.perform = function(type,domNode,options) {
+ options = options || {};
+ // Find an animation that can handle this type
+ var chosenAnimation;
+ $tw.utils.each(this.animations,function(animation,name) {
+ if($tw.utils.hop(animation,type)) {
+ chosenAnimation = animation[type];
+ }
+ });
+ if(!chosenAnimation) {
+ chosenAnimation = function(domNode,options) {
+ if(options.callback) {
+ options.callback();
+ }
+ };
+ }
+ // Call the animation
+ chosenAnimation(domNode,options);
+};
+
+exports.Animator = Animator;
+
+})();
+
+/*\
+title: $:/core/modules/utils/dom/browser.js
+type: application/javascript
+module-type: utils
+
+Browser feature detection
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Set style properties of an element
+ element: dom node
+ styles: ordered array of {name: value} pairs
+*/
+exports.setStyle = function(element,styles) {
+ if(element.nodeType === 1) { // Element.ELEMENT_NODE
+ for(var t=0; t<styles.length; t++) {
+ for(var styleName in styles[t]) {
+ element.style[$tw.utils.convertStyleNameToPropertyName(styleName)] = styles[t][styleName];
+ }
+ }
+ }
+};
+
+/*
+Converts a standard CSS property name into the local browser-specific equivalent. For example:
+ "background-color" --> "backgroundColor"
+ "transition" --> "webkitTransition"
+*/
+
+var styleNameCache = {}; // We'll cache the style name conversions
+
+exports.convertStyleNameToPropertyName = function(styleName) {
+ // Return from the cache if we can
+ if(styleNameCache[styleName]) {
+ return styleNameCache[styleName];
+ }
+ // Convert it by first removing any hyphens
+ var propertyName = $tw.utils.unHyphenateCss(styleName);
+ // Then check if it needs a prefix
+ if($tw.browser && document.body.style[propertyName] === undefined) {
+ var prefixes = ["O","MS","Moz","webkit"];
+ for(var t=0; t<prefixes.length; t++) {
+ var prefixedName = prefixes[t] + propertyName.substr(0,1).toUpperCase() + propertyName.substr(1);
+ if(document.body.style[prefixedName] !== undefined) {
+ propertyName = prefixedName;
+ break;
+ }
+ }
+ }
+ // Put it in the cache too
+ styleNameCache[styleName] = propertyName;
+ return propertyName;
+};
+
+/*
+Converts a JS format CSS property name back into the dashed form used in CSS declarations. For example:
+ "backgroundColor" --> "background-color"
+ "webkitTransform" --> "-webkit-transform"
+*/
+exports.convertPropertyNameToStyleName = function(propertyName) {
+ // Rehyphenate the name
+ var styleName = $tw.utils.hyphenateCss(propertyName);
+ // If there's a webkit prefix, add a dash (other browsers have uppercase prefixes, and so get the dash automatically)
+ if(styleName.indexOf("webkit") === 0) {
+ styleName = "-" + styleName;
+ } else if(styleName.indexOf("-m-s") === 0) {
+ styleName = "-ms" + styleName.substr(4);
+ }
+ return styleName;
+};
+
+/*
+Round trip a stylename to a property name and back again. For example:
+ "transform" --> "webkitTransform" --> "-webkit-transform"
+*/
+exports.roundTripPropertyName = function(propertyName) {
+ return $tw.utils.convertPropertyNameToStyleName($tw.utils.convertStyleNameToPropertyName(propertyName));
+};
+
+/*
+Converts a standard event name into the local browser specific equivalent. For example:
+ "animationEnd" --> "webkitAnimationEnd"
+*/
+
+var eventNameCache = {}; // We'll cache the conversions
+
+var eventNameMappings = {
+ "transitionEnd": {
+ correspondingCssProperty: "transition",
+ mappings: {
+ transition: "transitionend",
+ OTransition: "oTransitionEnd",
+ MSTransition: "msTransitionEnd",
+ MozTransition: "transitionend",
+ webkitTransition: "webkitTransitionEnd"
+ }
+ },
+ "animationEnd": {
+ correspondingCssProperty: "animation",
+ mappings: {
+ animation: "animationend",
+ OAnimation: "oAnimationEnd",
+ MSAnimation: "msAnimationEnd",
+ MozAnimation: "animationend",
+ webkitAnimation: "webkitAnimationEnd"
+ }
+ }
+};
+
+exports.convertEventName = function(eventName) {
+ if(eventNameCache[eventName]) {
+ return eventNameCache[eventName];
+ }
+ var newEventName = eventName,
+ mappings = eventNameMappings[eventName];
+ if(mappings) {
+ var convertedProperty = $tw.utils.convertStyleNameToPropertyName(mappings.correspondingCssProperty);
+ if(mappings.mappings[convertedProperty]) {
+ newEventName = mappings.mappings[convertedProperty];
+ }
+ }
+ // Put it in the cache too
+ eventNameCache[eventName] = newEventName;
+ return newEventName;
+};
+
+/*
+Return the names of the fullscreen APIs
+*/
+exports.getFullScreenApis = function() {
+ var d = document,
+ db = d.body,
+ result = {
+ "_requestFullscreen": db.webkitRequestFullscreen !== undefined ? "webkitRequestFullscreen" :
+ db.mozRequestFullScreen !== undefined ? "mozRequestFullScreen" :
+ db.msRequestFullscreen !== undefined ? "msRequestFullscreen" :
+ db.requestFullscreen !== undefined ? "requestFullscreen" : "",
+ "_exitFullscreen": d.webkitExitFullscreen !== undefined ? "webkitExitFullscreen" :
+ d.mozCancelFullScreen !== undefined ? "mozCancelFullScreen" :
+ d.msExitFullscreen !== undefined ? "msExitFullscreen" :
+ d.exitFullscreen !== undefined ? "exitFullscreen" : "",
+ "_fullscreenElement": d.webkitFullscreenElement !== undefined ? "webkitFullscreenElement" :
+ d.mozFullScreenElement !== undefined ? "mozFullScreenElement" :
+ d.msFullscreenElement !== undefined ? "msFullscreenElement" :
+ d.fullscreenElement !== undefined ? "fullscreenElement" : "",
+ "_fullscreenChange": d.webkitFullscreenElement !== undefined ? "webkitfullscreenchange" :
+ d.mozFullScreenElement !== undefined ? "mozfullscreenchange" :
+ d.msFullscreenElement !== undefined ? "MSFullscreenChange" :
+ d.fullscreenElement !== undefined ? "fullscreenchange" : ""
+ };
+ if(!result._requestFullscreen || !result._exitFullscreen || !result._fullscreenElement || !result._fullscreenChange) {
+ return null;
+ } else {
+ return result;
+ }
+};
+
+})();
+
+// (c) Dean McNamee <dean@gmail.com>, 2012.
+//
+// https://github.com/deanm/css-color-parser-js
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to
+// deal in the Software without restriction, including without limitation the
+// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+// sell copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+// IN THE SOFTWARE.
+
+// http://www.w3.org/TR/css3-color/
+var kCSSColorTable = {
+ "transparent": [0,0,0,0], "aliceblue": [240,248,255,1],
+ "antiquewhite": [250,235,215,1], "aqua": [0,255,255,1],
+ "aquamarine": [127,255,212,1], "azure": [240,255,255,1],
+ "beige": [245,245,220,1], "bisque": [255,228,196,1],
+ "black": [0,0,0,1], "blanchedalmond": [255,235,205,1],
+ "blue": [0,0,255,1], "blueviolet": [138,43,226,1],
+ "brown": [165,42,42,1], "burlywood": [222,184,135,1],
+ "cadetblue": [95,158,160,1], "chartreuse": [127,255,0,1],
+ "chocolate": [210,105,30,1], "coral": [255,127,80,1],
+ "cornflowerblue": [100,149,237,1], "cornsilk": [255,248,220,1],
+ "crimson": [220,20,60,1], "cyan": [0,255,255,1],
+ "darkblue": [0,0,139,1], "darkcyan": [0,139,139,1],
+ "darkgoldenrod": [184,134,11,1], "darkgray": [169,169,169,1],
+ "darkgreen": [0,100,0,1], "darkgrey": [169,169,169,1],
+ "darkkhaki": [189,183,107,1], "darkmagenta": [139,0,139,1],
+ "darkolivegreen": [85,107,47,1], "darkorange": [255,140,0,1],
+ "darkorchid": [153,50,204,1], "darkred": [139,0,0,1],
+ "darksalmon": [233,150,122,1], "darkseagreen": [143,188,143,1],
+ "darkslateblue": [72,61,139,1], "darkslategray": [47,79,79,1],
+ "darkslategrey": [47,79,79,1], "darkturquoise": [0,206,209,1],
+ "darkviolet": [148,0,211,1], "deeppink": [255,20,147,1],
+ "deepskyblue": [0,191,255,1], "dimgray": [105,105,105,1],
+ "dimgrey": [105,105,105,1], "dodgerblue": [30,144,255,1],
+ "firebrick": [178,34,34,1], "floralwhite": [255,250,240,1],
+ "forestgreen": [34,139,34,1], "fuchsia": [255,0,255,1],
+ "gainsboro": [220,220,220,1], "ghostwhite": [248,248,255,1],
+ "gold": [255,215,0,1], "goldenrod": [218,165,32,1],
+ "gray": [128,128,128,1], "green": [0,128,0,1],
+ "greenyellow": [173,255,47,1], "grey": [128,128,128,1],
+ "honeydew": [240,255,240,1], "hotpink": [255,105,180,1],
+ "indianred": [205,92,92,1], "indigo": [75,0,130,1],
+ "ivory": [255,255,240,1], "khaki": [240,230,140,1],
+ "lavender": [230,230,250,1], "lavenderblush": [255,240,245,1],
+ "lawngreen": [124,252,0,1], "lemonchiffon": [255,250,205,1],
+ "lightblue": [173,216,230,1], "lightcoral": [240,128,128,1],
+ "lightcyan": [224,255,255,1], "lightgoldenrodyellow": [250,250,210,1],
+ "lightgray": [211,211,211,1], "lightgreen": [144,238,144,1],
+ "lightgrey": [211,211,211,1], "lightpink": [255,182,193,1],
+ "lightsalmon": [255,160,122,1], "lightseagreen": [32,178,170,1],
+ "lightskyblue": [135,206,250,1], "lightslategray": [119,136,153,1],
+ "lightslategrey": [119,136,153,1], "lightsteelblue": [176,196,222,1],
+ "lightyellow": [255,255,224,1], "lime": [0,255,0,1],
+ "limegreen": [50,205,50,1], "linen": [250,240,230,1],
+ "magenta": [255,0,255,1], "maroon": [128,0,0,1],
+ "mediumaquamarine": [102,205,170,1], "mediumblue": [0,0,205,1],
+ "mediumorchid": [186,85,211,1], "mediumpurple": [147,112,219,1],
+ "mediumseagreen": [60,179,113,1], "mediumslateblue": [123,104,238,1],
+ "mediumspringgreen": [0,250,154,1], "mediumturquoise": [72,209,204,1],
+ "mediumvioletred": [199,21,133,1], "midnightblue": [25,25,112,1],
+ "mintcream": [245,255,250,1], "mistyrose": [255,228,225,1],
+ "moccasin": [255,228,181,1], "navajowhite": [255,222,173,1],
+ "navy": [0,0,128,1], "oldlace": [253,245,230,1],
+ "olive": [128,128,0,1], "olivedrab": [107,142,35,1],
+ "orange": [255,165,0,1], "orangered": [255,69,0,1],
+ "orchid": [218,112,214,1], "palegoldenrod": [238,232,170,1],
+ "palegreen": [152,251,152,1], "paleturquoise": [175,238,238,1],
+ "palevioletred": [219,112,147,1], "papayawhip": [255,239,213,1],
+ "peachpuff": [255,218,185,1], "peru": [205,133,63,1],
+ "pink": [255,192,203,1], "plum": [221,160,221,1],
+ "powderblue": [176,224,230,1], "purple": [128,0,128,1],
+ "red": [255,0,0,1], "rosybrown": [188,143,143,1],
+ "royalblue": [65,105,225,1], "saddlebrown": [139,69,19,1],
+ "salmon": [250,128,114,1], "sandybrown": [244,164,96,1],
+ "seagreen": [46,139,87,1], "seashell": [255,245,238,1],
+ "sienna": [160,82,45,1], "silver": [192,192,192,1],
+ "skyblue": [135,206,235,1], "slateblue": [106,90,205,1],
+ "slategray": [112,128,144,1], "slategrey": [112,128,144,1],
+ "snow": [255,250,250,1], "springgreen": [0,255,127,1],
+ "steelblue": [70,130,180,1], "tan": [210,180,140,1],
+ "teal": [0,128,128,1], "thistle": [216,191,216,1],
+ "tomato": [255,99,71,1], "turquoise": [64,224,208,1],
+ "violet": [238,130,238,1], "wheat": [245,222,179,1],
+ "white": [255,255,255,1], "whitesmoke": [245,245,245,1],
+ "yellow": [255,255,0,1], "yellowgreen": [154,205,50,1]}
+
+function clamp_css_byte(i) { // Clamp to integer 0 .. 255.
+ i = Math.round(i); // Seems to be what Chrome does (vs truncation).
+ return i < 0 ? 0 : i > 255 ? 255 : i;
+}
+
+function clamp_css_float(f) { // Clamp to float 0.0 .. 1.0.
+ return f < 0 ? 0 : f > 1 ? 1 : f;
+}
+
+function parse_css_int(str) { // int or percentage.
+ if (str[str.length - 1] === '%')
+ return clamp_css_byte(parseFloat(str) / 100 * 255);
+ return clamp_css_byte(parseInt(str));
+}
+
+function parse_css_float(str) { // float or percentage.
+ if (str[str.length - 1] === '%')
+ return clamp_css_float(parseFloat(str) / 100);
+ return clamp_css_float(parseFloat(str));
+}
+
+function css_hue_to_rgb(m1, m2, h) {
+ if (h < 0) h += 1;
+ else if (h > 1) h -= 1;
+
+ if (h * 6 < 1) return m1 + (m2 - m1) * h * 6;
+ if (h * 2 < 1) return m2;
+ if (h * 3 < 2) return m1 + (m2 - m1) * (2/3 - h) * 6;
+ return m1;
+}
+
+function parseCSSColor(css_str) {
+ // Remove all whitespace, not compliant, but should just be more accepting.
+ var str = css_str.replace(/ /g, '').toLowerCase();
+
+ // Color keywords (and transparent) lookup.
+ if (str in kCSSColorTable) return kCSSColorTable[str].slice(); // dup.
+
+ // #abc and #abc123 syntax.
+ if (str[0] === '#') {
+ if (str.length === 4) {
+ var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.
+ if (!(iv >= 0 && iv <= 0xfff)) return null; // Covers NaN.
+ return [((iv & 0xf00) >> 4) | ((iv & 0xf00) >> 8),
+ (iv & 0xf0) | ((iv & 0xf0) >> 4),
+ (iv & 0xf) | ((iv & 0xf) << 4),
+ 1];
+ } else if (str.length === 7) {
+ var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.
+ if (!(iv >= 0 && iv <= 0xffffff)) return null; // Covers NaN.
+ return [(iv & 0xff0000) >> 16,
+ (iv & 0xff00) >> 8,
+ iv & 0xff,
+ 1];
+ }
+
+ return null;
+ }
+
+ var op = str.indexOf('('), ep = str.indexOf(')');
+ if (op !== -1 && ep + 1 === str.length) {
+ var fname = str.substr(0, op);
+ var params = str.substr(op+1, ep-(op+1)).split(',');
+ var alpha = 1; // To allow case fallthrough.
+ switch (fname) {
+ case 'rgba':
+ if (params.length !== 4) return null;
+ alpha = parse_css_float(params.pop());
+ // Fall through.
+ case 'rgb':
+ if (params.length !== 3) return null;
+ return [parse_css_int(params[0]),
+ parse_css_int(params[1]),
+ parse_css_int(params[2]),
+ alpha];
+ case 'hsla':
+ if (params.length !== 4) return null;
+ alpha = parse_css_float(params.pop());
+ // Fall through.
+ case 'hsl':
+ if (params.length !== 3) return null;
+ var h = (((parseFloat(params[0]) % 360) + 360) % 360) / 360; // 0 .. 1
+ // NOTE(deanm): According to the CSS spec s/l should only be
+ // percentages, but we don't bother and let float or percentage.
+ var s = parse_css_float(params[1]);
+ var l = parse_css_float(params[2]);
+ var m2 = l <= 0.5 ? l * (s + 1) : l + s - l * s;
+ var m1 = l * 2 - m2;
+ return [clamp_css_byte(css_hue_to_rgb(m1, m2, h+1/3) * 255),
+ clamp_css_byte(css_hue_to_rgb(m1, m2, h) * 255),
+ clamp_css_byte(css_hue_to_rgb(m1, m2, h-1/3) * 255),
+ alpha];
+ default:
+ return null;
+ }
+ }
+
+ return null;
+}
+
+try { exports.parseCSSColor = parseCSSColor } catch(e) { }
+
+/*\
+title: $:/core/modules/utils/dom/dragndrop.js
+type: application/javascript
+module-type: utils
+
+Browser data transfer utilities, used with the clipboard and drag and drop
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Options:
+
+domNode: dom node to make draggable
+dragImageType: "pill" or "dom"
+dragTiddlerFn: optional function to retrieve the title of tiddler to drag
+dragFilterFn: optional function to retreive the filter defining a list of tiddlers to drag
+widget: widget to use as the contect for the filter
+*/
+exports.makeDraggable = function(options) {
+ var dragImageType = options.dragImageType || "dom",
+ dragImage,
+ domNode = options.domNode;
+ // Make the dom node draggable (not necessary for anchor tags)
+ if((domNode.tagName || "").toLowerCase() !== "a") {
+ domNode.setAttribute("draggable","true");
+ }
+ // Add event handlers
+ $tw.utils.addEventListeners(domNode,[
+ {name: "dragstart", handlerFunction: function(event) {
+ if(event.dataTransfer === undefined) {
+ return false;
+ }
+ // Collect the tiddlers being dragged
+ var dragTiddler = options.dragTiddlerFn && options.dragTiddlerFn(),
+ dragFilter = options.dragFilterFn && options.dragFilterFn(),
+ titles = dragTiddler ? [dragTiddler] : [],
+ startActions = options.startActions;
+ if(dragFilter) {
+ titles.push.apply(titles,options.widget.wiki.filterTiddlers(dragFilter,options.widget));
+ }
+ var titleString = $tw.utils.stringifyList(titles);
+ // Check that we've something to drag
+ if(titles.length > 0 && event.target === domNode) {
+ // Mark the drag in progress
+ $tw.dragInProgress = domNode;
+ // Set the dragging class on the element being dragged
+ $tw.utils.addClass(event.target,"tc-dragging");
+ // Invoke drag-start actions if given
+ if(startActions !== undefined) {
+ options.widget.invokeActionString(startActions,options.widget,event,{actionTiddler: titleString});
+ }
+ // Create the drag image elements
+ dragImage = options.widget.document.createElement("div");
+ dragImage.className = "tc-tiddler-dragger";
+ var inner = options.widget.document.createElement("div");
+ inner.className = "tc-tiddler-dragger-inner";
+ inner.appendChild(options.widget.document.createTextNode(
+ titles.length === 1 ?
+ titles[0] :
+ titles.length + " tiddlers"
+ ));
+ dragImage.appendChild(inner);
+ options.widget.document.body.appendChild(dragImage);
+ // Set the data transfer properties
+ var dataTransfer = event.dataTransfer;
+ // Set up the image
+ dataTransfer.effectAllowed = "all";
+ if(dataTransfer.setDragImage) {
+ if(dragImageType === "pill") {
+ dataTransfer.setDragImage(dragImage.firstChild,-16,-16);
+ } else {
+ var r = domNode.getBoundingClientRect();
+ dataTransfer.setDragImage(domNode,event.clientX-r.left,event.clientY-r.top);
+ }
+ }
+ // Set up the data transfer
+ if(dataTransfer.clearData) {
+ dataTransfer.clearData();
+ }
+ var jsonData = [];
+ if(titles.length > 1) {
+ titles.forEach(function(title) {
+ jsonData.push(options.widget.wiki.getTiddlerAsJson(title));
+ });
+ jsonData = "[" + jsonData.join(",") + "]";
+ } else {
+ jsonData = options.widget.wiki.getTiddlerAsJson(titles[0]);
+ }
+ // IE doesn't like these content types
+ if(!$tw.browser.isIE) {
+ dataTransfer.setData("text/vnd.tiddler",jsonData);
+ dataTransfer.setData("text/plain",titleString);
+ dataTransfer.setData("text/x-moz-url","data:text/vnd.tiddler," + encodeURIComponent(jsonData));
+ }
+ dataTransfer.setData("URL","data:text/vnd.tiddler," + encodeURIComponent(jsonData));
+ dataTransfer.setData("Text",titleString);
+ event.stopPropagation();
+ }
+ return false;
+ }},
+ {name: "dragend", handlerFunction: function(event) {
+ if(event.target === domNode) {
+ // Collect the tiddlers being dragged
+ var dragTiddler = options.dragTiddlerFn && options.dragTiddlerFn(),
+ dragFilter = options.dragFilterFn && options.dragFilterFn(),
+ titles = dragTiddler ? [dragTiddler] : [],
+ endActions = options.endActions;
+ if(dragFilter) {
+ titles.push.apply(titles,options.widget.wiki.filterTiddlers(dragFilter,options.widget));
+ }
+ var titleString = $tw.utils.stringifyList(titles);
+ $tw.dragInProgress = null;
+ // Invoke drag-end actions if given
+ if(endActions !== undefined) {
+ options.widget.invokeActionString(endActions,options.widget,event,{actionTiddler: titleString});
+ }
+ // Remove the dragging class on the element being dragged
+ $tw.utils.removeClass(event.target,"tc-dragging");
+ // Delete the drag image element
+ if(dragImage) {
+ dragImage.parentNode.removeChild(dragImage);
+ dragImage = null;
+ }
+ }
+ return false;
+ }}
+ ]);
+};
+
+exports.importDataTransfer = function(dataTransfer,fallbackTitle,callback) {
+ // Try each provided data type in turn
+ if($tw.log.IMPORT) {
+ console.log("Available data types:");
+ for(var type=0; type<dataTransfer.types.length; type++) {
+ console.log("type",dataTransfer.types[type],dataTransfer.getData(dataTransfer.types[type]))
+ }
+ }
+ for(var t=0; t<importDataTypes.length; t++) {
+ if(!$tw.browser.isIE || importDataTypes[t].IECompatible) {
+ // Get the data
+ var dataType = importDataTypes[t];
+ var data = dataTransfer.getData(dataType.type);
+ // Import the tiddlers in the data
+ if(data !== "" && data !== null) {
+ if($tw.log.IMPORT) {
+ console.log("Importing data type '" + dataType.type + "', data: '" + data + "'")
+ }
+ var tiddlerFields = dataType.toTiddlerFieldsArray(data,fallbackTitle);
+ callback(tiddlerFields);
+ return;
+ }
+ }
+ }
+};
+
+var importDataTypes = [
+ {type: "text/vnd.tiddler", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
+ return parseJSONTiddlers(data,fallbackTitle);
+ }},
+ {type: "URL", IECompatible: true, toTiddlerFieldsArray: function(data,fallbackTitle) {
+ // Check for tiddler data URI
+ var match = decodeURIComponent(data).match(/^data\:text\/vnd\.tiddler,(.*)/i);
+ if(match) {
+ return parseJSONTiddlers(match[1],fallbackTitle);
+ } else {
+ return [{title: fallbackTitle, text: data}]; // As URL string
+ }
+ }},
+ {type: "text/x-moz-url", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
+ // Check for tiddler data URI
+ var match = decodeURIComponent(data).match(/^data\:text\/vnd\.tiddler,(.*)/i);
+ if(match) {
+ return parseJSONTiddlers(match[1],fallbackTitle);
+ } else {
+ return [{title: fallbackTitle, text: data}]; // As URL string
+ }
+ }},
+ {type: "text/html", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
+ return [{title: fallbackTitle, text: data}];
+ }},
+ {type: "text/plain", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
+ return [{title: fallbackTitle, text: data}];
+ }},
+ {type: "Text", IECompatible: true, toTiddlerFieldsArray: function(data,fallbackTitle) {
+ return [{title: fallbackTitle, text: data}];
+ }},
+ {type: "text/uri-list", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {
+ return [{title: fallbackTitle, text: data}];
+ }}
+];
+
+function parseJSONTiddlers(json,fallbackTitle) {
+ var data = JSON.parse(json);
+ if(!$tw.utils.isArray(data)) {
+ data = [data];
+ }
+ data.forEach(function(fields) {
+ fields.title = fields.title || fallbackTitle;
+ });
+ return data;
+};
+
+})();
+
+/*\
+title: $:/core/modules/utils/dom/http.js
+type: application/javascript
+module-type: utils
+
+Browser HTTP support
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+A quick and dirty HTTP function; to be refactored later. Options are:
+ url: URL to retrieve
+ headers: hashmap of headers to send
+ type: GET, PUT, POST etc
+ callback: function invoked with (err,data,xhr)
+ returnProp: string name of the property to return as first argument of callback
+*/
+exports.httpRequest = function(options) {
+ var type = options.type || "GET",
+ url = options.url,
+ headers = options.headers || {accept: "application/json"},
+ returnProp = options.returnProp || "responseText",
+ request = new XMLHttpRequest(),
+ data = "",
+ f,results;
+ // Massage the data hashmap into a string
+ if(options.data) {
+ if(typeof options.data === "string") { // Already a string
+ data = options.data;
+ } else { // A hashmap of strings
+ results = [];
+ $tw.utils.each(options.data,function(dataItem,dataItemTitle) {
+ results.push(dataItemTitle + "=" + encodeURIComponent(dataItem));
+ });
+ if(type === "GET" || type === "HEAD") {
+ url += "?" + results.join("&");
+ } else {
+ data = results.join("&");
+ }
+ }
+ }
+ // Set up the state change handler
+ request.onreadystatechange = function() {
+ if(this.readyState === 4) {
+ if(this.status === 200 || this.status === 201 || this.status === 204) {
+ // Success!
+ options.callback(null,this[returnProp],this);
+ return;
+ }
+ // Something went wrong
+ options.callback($tw.language.getString("Error/XMLHttpRequest") + ": " + this.status,null,this);
+ }
+ };
+ // Make the request
+ request.open(type,url,true);
+ if(headers) {
+ $tw.utils.each(headers,function(header,headerTitle,object) {
+ request.setRequestHeader(headerTitle,header);
+ });
+ }
+ if(data && !$tw.utils.hop(headers,"Content-type")) {
+ request.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");
+ }
+ if(!$tw.utils.hop(headers,"X-Requested-With")) {
+ request.setRequestHeader("X-Requested-With","TiddlyWiki");
+ }
+ try {
+ request.send(data);
+ } catch(e) {
+ options.callback(e,null,this);
+ }
+ return request;
+};
+
+})();
+
+/*\
+title: $:/core/modules/utils/dom/keyboard.js
+type: application/javascript
+module-type: utils
+
+Keyboard utilities; now deprecated. Instead, use $tw.keyboardManager
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+["parseKeyDescriptor","checkKeyDescriptor"].forEach(function(method) {
+ exports[method] = function() {
+ if($tw.keyboardManager) {
+ return $tw.keyboardManager[method].apply($tw.keyboardManager,Array.prototype.slice.call(arguments,0));
+ } else {
+ return null
+ }
+ };
+});
+
+})();
+
+/*\
+title: $:/core/modules/utils/dom/modal.js
+type: application/javascript
+module-type: utils
+
+Modal message mechanism
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var widget = require("$:/core/modules/widgets/widget.js");
+
+var Modal = function(wiki) {
+ this.wiki = wiki;
+ this.modalCount = 0;
+};
+
+/*
+Display a modal dialogue
+ title: Title of tiddler to display
+ options: see below
+Options include:
+ downloadLink: Text of a big download link to include
+*/
+Modal.prototype.display = function(title,options) {
+ options = options || {};
+ this.srcDocument = options.variables && (options.variables.rootwindow === "true" ||
+ options.variables.rootwindow === "yes") ? document :
+ (options.event.event && options.event.event.target ? options.event.event.target.ownerDocument : document);
+ this.srcWindow = this.srcDocument.defaultView;
+ var self = this,
+ refreshHandler,
+ duration = $tw.utils.getAnimationDuration(),
+ tiddler = this.wiki.getTiddler(title);
+ // Don't do anything if the tiddler doesn't exist
+ if(!tiddler) {
+ return;
+ }
+ // Create the variables
+ var variables = $tw.utils.extend({currentTiddler: title},options.variables);
+ // Create the wrapper divs
+ var wrapper = this.srcDocument.createElement("div"),
+ modalBackdrop = this.srcDocument.createElement("div"),
+ modalWrapper = this.srcDocument.createElement("div"),
+ modalHeader = this.srcDocument.createElement("div"),
+ headerTitle = this.srcDocument.createElement("h3"),
+ modalBody = this.srcDocument.createElement("div"),
+ modalLink = this.srcDocument.createElement("a"),
+ modalFooter = this.srcDocument.createElement("div"),
+ modalFooterHelp = this.srcDocument.createElement("span"),
+ modalFooterButtons = this.srcDocument.createElement("span");
+ // Up the modal count and adjust the body class
+ this.modalCount++;
+ this.adjustPageClass();
+ // Add classes
+ $tw.utils.addClass(wrapper,"tc-modal-wrapper");
+ if(tiddler.fields && tiddler.fields.class) {
+ $tw.utils.addClass(wrapper,tiddler.fields.class);
+ }
+ $tw.utils.addClass(modalBackdrop,"tc-modal-backdrop");
+ $tw.utils.addClass(modalWrapper,"tc-modal");
+ $tw.utils.addClass(modalHeader,"tc-modal-header");
+ $tw.utils.addClass(modalBody,"tc-modal-body");
+ $tw.utils.addClass(modalFooter,"tc-modal-footer");
+ // Join them together
+ wrapper.appendChild(modalBackdrop);
+ wrapper.appendChild(modalWrapper);
+ modalHeader.appendChild(headerTitle);
+ modalWrapper.appendChild(modalHeader);
+ modalWrapper.appendChild(modalBody);
+ modalFooter.appendChild(modalFooterHelp);
+ modalFooter.appendChild(modalFooterButtons);
+ modalWrapper.appendChild(modalFooter);
+ // Render the title of the message
+ var headerWidgetNode = this.wiki.makeTranscludeWidget(title,{
+ field: "subtitle",
+ mode: "inline",
+ children: [{
+ type: "text",
+ attributes: {
+ text: {
+ type: "string",
+ value: title
+ }}}],
+ parentWidget: $tw.rootWidget,
+ document: this.srcDocument,
+ variables: variables,
+ importPageMacros: true
+ });
+ headerWidgetNode.render(headerTitle,null);
+ // Render the body of the message
+ var bodyWidgetNode = this.wiki.makeTranscludeWidget(title,{
+ parentWidget: $tw.rootWidget,
+ document: this.srcDocument,
+ variables: variables,
+ importPageMacros: true
+ });
+ bodyWidgetNode.render(modalBody,null);
+ // Setup the link if present
+ if(options.downloadLink) {
+ modalLink.href = options.downloadLink;
+ modalLink.appendChild(this.srcDocument.createTextNode("Right-click to save changes"));
+ modalBody.appendChild(modalLink);
+ }
+ // Render the footer of the message
+ if(tiddler.fields && tiddler.fields.help) {
+ var link = this.srcDocument.createElement("a");
+ link.setAttribute("href",tiddler.fields.help);
+ link.setAttribute("target","_blank");
+ link.setAttribute("rel","noopener noreferrer");
+ link.appendChild(this.srcDocument.createTextNode("Help"));
+ modalFooterHelp.appendChild(link);
+ modalFooterHelp.style.float = "left";
+ }
+ var footerWidgetNode = this.wiki.makeTranscludeWidget(title,{
+ field: "footer",
+ mode: "inline",
+ children: [{
+ type: "button",
+ attributes: {
+ message: {
+ type: "string",
+ value: "tm-close-tiddler"
+ }
+ },
+ children: [{
+ type: "text",
+ attributes: {
+ text: {
+ type: "string",
+ value: $tw.language.getString("Buttons/Close/Caption")
+ }}}
+ ]}],
+ parentWidget: $tw.rootWidget,
+ document: this.srcDocument,
+ variables: variables,
+ importPageMacros: true
+ });
+ footerWidgetNode.render(modalFooterButtons,null);
+ // Set up the refresh handler
+ refreshHandler = function(changes) {
+ headerWidgetNode.refresh(changes,modalHeader,null);
+ bodyWidgetNode.refresh(changes,modalBody,null);
+ footerWidgetNode.refresh(changes,modalFooterButtons,null);
+ };
+ this.wiki.addEventListener("change",refreshHandler);
+ // Add the close event handler
+ var closeHandler = function(event) {
+ // Remove our refresh handler
+ self.wiki.removeEventListener("change",refreshHandler);
+ // Decrease the modal count and adjust the body class
+ self.modalCount--;
+ self.adjustPageClass();
+ // Force layout and animate the modal message away
+ $tw.utils.forceLayout(modalBackdrop);
+ $tw.utils.forceLayout(modalWrapper);
+ $tw.utils.setStyle(modalBackdrop,[
+ {opacity: "0"}
+ ]);
+ $tw.utils.setStyle(modalWrapper,[
+ {transform: "translateY(" + self.srcWindow.innerHeight + "px)"}
+ ]);
+ // Set up an event for the transition end
+ self.srcWindow.setTimeout(function() {
+ if(wrapper.parentNode) {
+ // Remove the modal message from the DOM
+ self.srcDocument.body.removeChild(wrapper);
+ }
+ },duration);
+ // Don't let anyone else handle the tm-close-tiddler message
+ return false;
+ };
+ headerWidgetNode.addEventListener("tm-close-tiddler",closeHandler,false);
+ bodyWidgetNode.addEventListener("tm-close-tiddler",closeHandler,false);
+ footerWidgetNode.addEventListener("tm-close-tiddler",closeHandler,false);
+ // Set the initial styles for the message
+ $tw.utils.setStyle(modalBackdrop,[
+ {opacity: "0"}
+ ]);
+ $tw.utils.setStyle(modalWrapper,[
+ {transformOrigin: "0% 0%"},
+ {transform: "translateY(" + (-this.srcWindow.innerHeight) + "px)"}
+ ]);
+ // Put the message into the document
+ this.srcDocument.body.appendChild(wrapper);
+ // Set up animation for the styles
+ $tw.utils.setStyle(modalBackdrop,[
+ {transition: "opacity " + duration + "ms ease-out"}
+ ]);
+ $tw.utils.setStyle(modalWrapper,[
+ {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms ease-in-out"}
+ ]);
+ // Force layout
+ $tw.utils.forceLayout(modalBackdrop);
+ $tw.utils.forceLayout(modalWrapper);
+ // Set final animated styles
+ $tw.utils.setStyle(modalBackdrop,[
+ {opacity: "0.7"}
+ ]);
+ $tw.utils.setStyle(modalWrapper,[
+ {transform: "translateY(0px)"}
+ ]);
+};
+
+Modal.prototype.adjustPageClass = function() {
+ var windowContainer = $tw.pageContainer ? ($tw.pageContainer === this.srcDocument.body.firstChild ? $tw.pageContainer : this.srcDocument.body.firstChild) : null;
+ if(windowContainer) {
+ $tw.utils.toggleClass(windowContainer,"tc-modal-displayed",this.modalCount > 0);
+ }
+};
+
+exports.Modal = Modal;
+
+})();
+
+/*\
+title: $:/core/modules/utils/dom/notifier.js
+type: application/javascript
+module-type: utils
+
+Notifier mechanism
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var widget = require("$:/core/modules/widgets/widget.js");
+
+var Notifier = function(wiki) {
+ this.wiki = wiki;
+};
+
+/*
+Display a notification
+ title: Title of tiddler containing the notification text
+ options: see below
+Options include:
+*/
+Notifier.prototype.display = function(title,options) {
+ options = options || {};
+ // Create the wrapper divs
+ var self = this,
+ notification = document.createElement("div"),
+ tiddler = this.wiki.getTiddler(title),
+ duration = $tw.utils.getAnimationDuration(),
+ refreshHandler;
+ // Don't do anything if the tiddler doesn't exist
+ if(!tiddler) {
+ return;
+ }
+ // Add classes
+ $tw.utils.addClass(notification,"tc-notification");
+ // Create the variables
+ var variables = $tw.utils.extend({currentTiddler: title},options.variables);
+ // Render the body of the notification
+ var widgetNode = this.wiki.makeTranscludeWidget(title,{
+ parentWidget: $tw.rootWidget,
+ document: document,
+ variables: variables,
+ importPageMacros: true});
+ widgetNode.render(notification,null);
+ refreshHandler = function(changes) {
+ widgetNode.refresh(changes,notification,null);
+ };
+ this.wiki.addEventListener("change",refreshHandler);
+ // Set the initial styles for the notification
+ $tw.utils.setStyle(notification,[
+ {opacity: "0"},
+ {transformOrigin: "0% 0%"},
+ {transform: "translateY(" + (-window.innerHeight) + "px)"},
+ {transition: "opacity " + duration + "ms ease-out, " + $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms ease-in-out"}
+ ]);
+ // Add the notification to the DOM
+ document.body.appendChild(notification);
+ // Force layout
+ $tw.utils.forceLayout(notification);
+ // Set final animated styles
+ $tw.utils.setStyle(notification,[
+ {opacity: "1.0"},
+ {transform: "translateY(0px)"}
+ ]);
+ // Set a timer to remove the notification
+ window.setTimeout(function() {
+ // Remove our change event handler
+ self.wiki.removeEventListener("change",refreshHandler);
+ // Force layout and animate the notification away
+ $tw.utils.forceLayout(notification);
+ $tw.utils.setStyle(notification,[
+ {opacity: "0.0"},
+ {transform: "translateX(" + (notification.offsetWidth) + "px)"}
+ ]);
+ // Remove the modal message from the DOM once the transition ends
+ setTimeout(function() {
+ if(notification.parentNode) {
+ document.body.removeChild(notification);
+ }
+ },duration);
+ },$tw.config.preferences.notificationDuration);
+};
+
+exports.Notifier = Notifier;
+
+})();
+
+/*\
+title: $:/core/modules/utils/dom/popup.js
+type: application/javascript
+module-type: utils
+
+Module that creates a $tw.utils.Popup object prototype that manages popups in the browser
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Creates a Popup object with these options:
+ rootElement: the DOM element to which the popup zapper should be attached
+*/
+var Popup = function(options) {
+ options = options || {};
+ this.rootElement = options.rootElement || document.documentElement;
+ this.popups = []; // Array of {title:,wiki:,domNode:} objects
+};
+
+/*
+Trigger a popup open or closed. Parameters are in a hashmap:
+ title: title of the tiddler where the popup details are stored
+ domNode: dom node to which the popup will be positioned (one of domNode or domNodeRect is required)
+ domNodeRect: rectangle to which the popup will be positioned
+ wiki: wiki
+ force: if specified, forces the popup state to true or false (instead of toggling it)
+ floating: if true, skips registering the popup, meaning that it will need manually clearing
+*/
+Popup.prototype.triggerPopup = function(options) {
+ // Check if this popup is already active
+ var index = this.findPopup(options.title);
+ // Compute the new state
+ var state = index === -1;
+ if(options.force !== undefined) {
+ state = options.force;
+ }
+ // Show or cancel the popup according to the new state
+ if(state) {
+ this.show(options);
+ } else {
+ this.cancel(index);
+ }
+};
+
+Popup.prototype.findPopup = function(title) {
+ var index = -1;
+ for(var t=0; t<this.popups.length; t++) {
+ if(this.popups[t].title === title) {
+ index = t;
+ }
+ }
+ return index;
+};
+
+Popup.prototype.handleEvent = function(event) {
+ if(event.type === "click") {
+ // Find out what was clicked on
+ var info = this.popupInfo(event.target),
+ cancelLevel = info.popupLevel - 1;
+ // Don't remove the level that was clicked on if we clicked on a handle
+ if(info.isHandle) {
+ cancelLevel++;
+ }
+ // Cancel
+ this.cancel(cancelLevel);
+ }
+};
+
+/*
+Find the popup level containing a DOM node. Returns:
+popupLevel: count of the number of nested popups containing the specified element
+isHandle: true if the specified element is within a popup handle
+*/
+Popup.prototype.popupInfo = function(domNode) {
+ var isHandle = false,
+ popupCount = 0,
+ node = domNode;
+ // First check ancestors to see if we're within a popup handle
+ while(node) {
+ if($tw.utils.hasClass(node,"tc-popup-handle")) {
+ isHandle = true;
+ popupCount++;
+ }
+ if($tw.utils.hasClass(node,"tc-popup-keep")) {
+ isHandle = true;
+ }
+ node = node.parentNode;
+ }
+ // Then count the number of ancestor popups
+ node = domNode;
+ while(node) {
+ if($tw.utils.hasClass(node,"tc-popup")) {
+ popupCount++;
+ }
+ node = node.parentNode;
+ }
+ var info = {
+ popupLevel: popupCount,
+ isHandle: isHandle
+ };
+ return info;
+};
+
+/*
+Display a popup by adding it to the stack
+*/
+Popup.prototype.show = function(options) {
+ // Find out what was clicked on
+ var info = this.popupInfo(options.domNode);
+ // Cancel any higher level popups
+ this.cancel(info.popupLevel);
+
+ // Store the popup details if not already there
+ if(!options.floating && this.findPopup(options.title) === -1) {
+ this.popups.push({
+ title: options.title,
+ wiki: options.wiki,
+ domNode: options.domNode,
+ noStateReference: options.noStateReference
+ });
+ }
+ // Set the state tiddler
+ var rect;
+ if(options.domNodeRect) {
+ rect = options.domNodeRect;
+ } else {
+ rect = {
+ left: options.domNode.offsetLeft,
+ top: options.domNode.offsetTop,
+ width: options.domNode.offsetWidth,
+ height: options.domNode.offsetHeight
+ };
+ }
+ var popupRect = "(" + rect.left + "," + rect.top + "," +
+ rect.width + "," + rect.height + ")";
+ if(options.noStateReference) {
+ options.wiki.setText(options.title,"text",undefined,popupRect);
+ } else {
+ options.wiki.setTextReference(options.title,popupRect);
+ }
+ // Add the click handler if we have any popups
+ if(this.popups.length > 0) {
+ this.rootElement.addEventListener("click",this,true);
+ }
+};
+
+/*
+Cancel all popups at or above a specified level or DOM node
+level: popup level to cancel (0 cancels all popups)
+*/
+Popup.prototype.cancel = function(level) {
+ var numPopups = this.popups.length;
+ level = Math.max(0,Math.min(level,numPopups));
+ for(var t=level; t<numPopups; t++) {
+ var popup = this.popups.pop();
+ if(popup.title) {
+ if(popup.noStateReference) {
+ popup.wiki.deleteTiddler(popup.title);
+ } else {
+ popup.wiki.deleteTiddler($tw.utils.parseTextReference(popup.title).title);
+ }
+ }
+ }
+ if(this.popups.length === 0) {
+ this.rootElement.removeEventListener("click",this,false);
+ }
+};
+
+/*
+Returns true if the specified title and text identifies an active popup
+*/
+Popup.prototype.readPopupState = function(text) {
+ var popupLocationRegExp = /^\((-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+)\)$/;
+ return popupLocationRegExp.test(text);
+};
+
+exports.Popup = Popup;
+
+})();
+
+/*\
+title: $:/core/modules/utils/dom/scroller.js
+type: application/javascript
+module-type: utils
+
+Module that creates a $tw.utils.Scroller object prototype that manages scrolling in the browser
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Event handler for when the `tm-scroll` event hits the document body
+*/
+var PageScroller = function() {
+ this.idRequestFrame = null;
+ this.requestAnimationFrame = window.requestAnimationFrame ||
+ window.webkitRequestAnimationFrame ||
+ window.mozRequestAnimationFrame ||
+ function(callback) {
+ return window.setTimeout(callback, 1000/60);
+ };
+ this.cancelAnimationFrame = window.cancelAnimationFrame ||
+ window.webkitCancelAnimationFrame ||
+ window.webkitCancelRequestAnimationFrame ||
+ window.mozCancelAnimationFrame ||
+ window.mozCancelRequestAnimationFrame ||
+ function(id) {
+ window.clearTimeout(id);
+ };
+};
+
+PageScroller.prototype.isScrolling = function() {
+ return this.idRequestFrame !== null;
+}
+
+PageScroller.prototype.cancelScroll = function(srcWindow) {
+ if(this.idRequestFrame) {
+ this.cancelAnimationFrame.call(srcWindow,this.idRequestFrame);
+ this.idRequestFrame = null;
+ }
+};
+
+/*
+Handle an event
+*/
+PageScroller.prototype.handleEvent = function(event) {
+ if(event.type === "tm-scroll") {
+ return this.scrollIntoView(event.target);
+ }
+ return true;
+};
+
+/*
+Handle a scroll event hitting the page document
+*/
+PageScroller.prototype.scrollIntoView = function(element,callback) {
+ var self = this,
+ duration = $tw.utils.getAnimationDuration(),
+ srcWindow = element ? element.ownerDocument.defaultView : window;
+ // Now get ready to scroll the body
+ this.cancelScroll(srcWindow);
+ this.startTime = Date.now();
+ // Get the height of any position:fixed toolbars
+ var toolbar = srcWindow.document.querySelector(".tc-adjust-top-of-scroll"),
+ offset = 0;
+ if(toolbar) {
+ offset = toolbar.offsetHeight;
+ }
+ // Get the client bounds of the element and adjust by the scroll position
+ var getBounds = function() {
+ var clientBounds = typeof callback === 'function' ? callback() : element.getBoundingClientRect(),
+ scrollPosition = $tw.utils.getScrollPosition(srcWindow);
+ return {
+ left: clientBounds.left + scrollPosition.x,
+ top: clientBounds.top + scrollPosition.y - offset,
+ width: clientBounds.width,
+ height: clientBounds.height
+ };
+ },
+ // We'll consider the horizontal and vertical scroll directions separately via this function
+ // targetPos/targetSize - position and size of the target element
+ // currentPos/currentSize - position and size of the current scroll viewport
+ // returns: new position of the scroll viewport
+ getEndPos = function(targetPos,targetSize,currentPos,currentSize) {
+ var newPos = targetPos;
+ // If we are scrolling within 50 pixels of the top/left then snap to zero
+ if(newPos < 50) {
+ newPos = 0;
+ }
+ return newPos;
+ },
+ drawFrame = function drawFrame() {
+ var t;
+ if(duration <= 0) {
+ t = 1;
+ } else {
+ t = ((Date.now()) - self.startTime) / duration;
+ }
+ if(t >= 1) {
+ self.cancelScroll(srcWindow);
+ t = 1;
+ }
+ t = $tw.utils.slowInSlowOut(t);
+ var scrollPosition = $tw.utils.getScrollPosition(srcWindow),
+ bounds = getBounds(),
+ endX = getEndPos(bounds.left,bounds.width,scrollPosition.x,srcWindow.innerWidth),
+ endY = getEndPos(bounds.top,bounds.height,scrollPosition.y,srcWindow.innerHeight);
+ srcWindow.scrollTo(scrollPosition.x + (endX - scrollPosition.x) * t,scrollPosition.y + (endY - scrollPosition.y) * t);
+ if(t < 1) {
+ self.idRequestFrame = self.requestAnimationFrame.call(srcWindow,drawFrame);
+ }
+ };
+ drawFrame();
+};
+
+exports.PageScroller = PageScroller;
+
+})();
+
+/*\
+title: $:/core/modules/utils/edition-info.js
+type: application/javascript
+module-type: utils-node
+
+Information about the available editions
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var fs = require("fs"),
+ path = require("path");
+
+var editionInfo;
+
+exports.getEditionInfo = function() {
+ if(!editionInfo) {
+ // Enumerate the edition paths
+ var editionPaths = $tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar);
+ editionInfo = {};
+ for(var editionIndex=0; editionIndex<editionPaths.length; editionIndex++) {
+ var editionPath = editionPaths[editionIndex];
+ // Enumerate the folders
+ var entries = fs.readdirSync(editionPath);
+ for(var entryIndex=0; entryIndex<entries.length; entryIndex++) {
+ var entry = entries[entryIndex];
+ // Check if directories have a valid tiddlywiki.info
+ if(!editionInfo[entry] && $tw.utils.isDirectory(path.resolve(editionPath,entry))) {
+ var info;
+ try {
+ info = JSON.parse(fs.readFileSync(path.resolve(editionPath,entry,"tiddlywiki.info"),"utf8"));
+ } catch(ex) {
+ }
+ if(info) {
+ editionInfo[entry] = info;
+ }
+ }
+ }
+ }
+ }
+ return editionInfo;
+};
+
+})();
+
+/*\
+title: $:/core/modules/utils/fakedom.js
+type: application/javascript
+module-type: global
+
+A barebones implementation of DOM interfaces needed by the rendering mechanism.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Sequence number used to enable us to track objects for testing
+var sequenceNumber = null;
+
+var bumpSequenceNumber = function(object) {
+ if(sequenceNumber !== null) {
+ object.sequenceNumber = sequenceNumber++;
+ }
+};
+
+var TW_TextNode = function(text) {
+ bumpSequenceNumber(this);
+ this.textContent = text + "";
+};
+
+Object.defineProperty(TW_TextNode.prototype, "nodeType", {
+ get: function() {
+ return 3;
+ }
+});
+
+Object.defineProperty(TW_TextNode.prototype, "formattedTextContent", {
+ get: function() {
+ return this.textContent.replace(/(\r?\n)/g,"");
+ }
+});
+
+var TW_Element = function(tag,namespace) {
+ bumpSequenceNumber(this);
+ this.isTiddlyWikiFakeDom = true;
+ this.tag = tag;
+ this.attributes = {};
+ this.isRaw = false;
+ this.children = [];
+ this._style = {};
+ this.namespaceURI = namespace || "http://www.w3.org/1999/xhtml";
+};
+
+Object.defineProperty(TW_Element.prototype, "style", {
+ get: function() {
+ return this._style;
+ },
+ set: function(str) {
+ var self = this;
+ str = str || "";
+ $tw.utils.each(str.split(";"),function(declaration) {
+ var parts = declaration.split(":"),
+ name = $tw.utils.trim(parts[0]),
+ value = $tw.utils.trim(parts[1]);
+ if(name && value) {
+ self._style[$tw.utils.convertStyleNameToPropertyName(name)] = value;
+ }
+ });
+ }
+});
+
+Object.defineProperty(TW_Element.prototype, "nodeType", {
+ get: function() {
+ return 1;
+ }
+});
+
+TW_Element.prototype.getAttribute = function(name) {
+ if(this.isRaw) {
+ throw "Cannot getAttribute on a raw TW_Element";
+ }
+ return this.attributes[name];
+};
+
+TW_Element.prototype.setAttribute = function(name,value) {
+ if(this.isRaw) {
+ throw "Cannot setAttribute on a raw TW_Element";
+ }
+ this.attributes[name] = value + "";
+};
+
+TW_Element.prototype.setAttributeNS = function(namespace,name,value) {
+ this.setAttribute(name,value);
+};
+
+TW_Element.prototype.removeAttribute = function(name) {
+ if(this.isRaw) {
+ throw "Cannot removeAttribute on a raw TW_Element";
+ }
+ if($tw.utils.hop(this.attributes,name)) {
+ delete this.attributes[name];
+ }
+};
+
+TW_Element.prototype.appendChild = function(node) {
+ this.children.push(node);
+ node.parentNode = this;
+};
+
+TW_Element.prototype.insertBefore = function(node,nextSibling) {
+ if(nextSibling) {
+ var p = this.children.indexOf(nextSibling);
+ if(p !== -1) {
+ this.children.splice(p,0,node);
+ node.parentNode = this;
+ } else {
+ this.appendChild(node);
+ }
+ } else {
+ this.appendChild(node);
+ }
+};
+
+TW_Element.prototype.removeChild = function(node) {
+ var p = this.children.indexOf(node);
+ if(p !== -1) {
+ this.children.splice(p,1);
+ }
+};
+
+TW_Element.prototype.hasChildNodes = function() {
+ return !!this.children.length;
+};
+
+Object.defineProperty(TW_Element.prototype, "childNodes", {
+ get: function() {
+ return this.children;
+ }
+});
+
+Object.defineProperty(TW_Element.prototype, "firstChild", {
+ get: function() {
+ return this.children[0];
+ }
+});
+
+TW_Element.prototype.addEventListener = function(type,listener,useCapture) {
+ // Do nothing
+};
+
+Object.defineProperty(TW_Element.prototype, "tagName", {
+ get: function() {
+ return this.tag || "";
+ }
+});
+
+Object.defineProperty(TW_Element.prototype, "className", {
+ get: function() {
+ return this.attributes["class"] || "";
+ },
+ set: function(value) {
+ this.attributes["class"] = value + "";
+ }
+});
+
+Object.defineProperty(TW_Element.prototype, "value", {
+ get: function() {
+ return this.attributes.value || "";
+ },
+ set: function(value) {
+ this.attributes.value = value + "";
+ }
+});
+
+Object.defineProperty(TW_Element.prototype, "outerHTML", {
+ get: function() {
+ var output = [],attr,a,v;
+ output.push("<",this.tag);
+ if(this.attributes) {
+ attr = [];
+ for(a in this.attributes) {
+ attr.push(a);
+ }
+ attr.sort();
+ for(a=0; a<attr.length; a++) {
+ v = this.attributes[attr[a]];
+ if(v !== undefined) {
+ output.push(" ",attr[a],"=\"",$tw.utils.htmlEncode(v),"\"");
+ }
+ }
+ }
+ if(this._style) {
+ var style = [];
+ for(var s in this._style) {
+ style.push($tw.utils.convertPropertyNameToStyleName(s) + ":" + this._style[s] + ";");
+ }
+ if(style.length > 0) {
+ output.push(" style=\"",style.join(""),"\"");
+ }
+ }
+ output.push(">");
+ if($tw.config.htmlVoidElements.indexOf(this.tag) === -1) {
+ output.push(this.innerHTML);
+ output.push("</",this.tag,">");
+ }
+ return output.join("");
+ }
+});
+
+Object.defineProperty(TW_Element.prototype, "innerHTML", {
+ get: function() {
+ if(this.isRaw) {
+ return this.rawHTML;
+ } else {
+ var b = [];
+ $tw.utils.each(this.children,function(node) {
+ if(node instanceof TW_Element) {
+ b.push(node.outerHTML);
+ } else if(node instanceof TW_TextNode) {
+ b.push($tw.utils.htmlEncode(node.textContent));
+ }
+ });
+ return b.join("");
+ }
+ },
+ set: function(value) {
+ this.isRaw = true;
+ this.rawHTML = value;
+ this.rawTextContent = null;
+ }
+});
+
+Object.defineProperty(TW_Element.prototype, "textInnerHTML", {
+ set: function(value) {
+ if(this.isRaw) {
+ this.rawTextContent = value;
+ } else {
+ throw "Cannot set textInnerHTML of a non-raw TW_Element";
+ }
+ }
+});
+
+Object.defineProperty(TW_Element.prototype, "textContent", {
+ get: function() {
+ if(this.isRaw) {
+ if(this.rawTextContent === null) {
+ return "";
+ } else {
+ return this.rawTextContent;
+ }
+ } else {
+ var b = [];
+ $tw.utils.each(this.children,function(node) {
+ b.push(node.textContent);
+ });
+ return b.join("");
+ }
+ },
+ set: function(value) {
+ this.children = [new TW_TextNode(value)];
+ }
+});
+
+Object.defineProperty(TW_Element.prototype, "formattedTextContent", {
+ get: function() {
+ if(this.isRaw) {
+ return "";
+ } else {
+ var b = [],
+ isBlock = $tw.config.htmlBlockElements.indexOf(this.tag) !== -1;
+ if(isBlock) {
+ b.push("\n");
+ }
+ if(this.tag === "li") {
+ b.push("* ");
+ }
+ $tw.utils.each(this.children,function(node) {
+ b.push(node.formattedTextContent);
+ });
+ if(isBlock) {
+ b.push("\n");
+ }
+ return b.join("");
+ }
+ }
+});
+
+var document = {
+ setSequenceNumber: function(value) {
+ sequenceNumber = value;
+ },
+ createElementNS: function(namespace,tag) {
+ return new TW_Element(tag,namespace);
+ },
+ createElement: function(tag) {
+ return new TW_Element(tag);
+ },
+ createTextNode: function(text) {
+ return new TW_TextNode(text);
+ },
+ compatMode: "CSS1Compat", // For KaTeX to know that we're not a browser in quirks mode
+ isTiddlyWikiFakeDom: true
+};
+
+exports.fakeDocument = document;
+
+})();
+
+/*\
+title: $:/core/modules/utils/filesystem.js
+type: application/javascript
+module-type: utils-node
+
+File system utilities
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var fs = require("fs"),
+ path = require("path");
+
+/*
+Recursively (and synchronously) copy a directory and all its content
+*/
+exports.copyDirectory = function(srcPath,dstPath) {
+ // Remove any trailing path separators
+ srcPath = $tw.utils.removeTrailingSeparator(srcPath);
+ dstPath = $tw.utils.removeTrailingSeparator(dstPath);
+ // Create the destination directory
+ var err = $tw.utils.createDirectory(dstPath);
+ if(err) {
+ return err;
+ }
+ // Function to copy a folder full of files
+ var copy = function(srcPath,dstPath) {
+ var srcStats = fs.lstatSync(srcPath),
+ dstExists = fs.existsSync(dstPath);
+ if(srcStats.isFile()) {
+ $tw.utils.copyFile(srcPath,dstPath);
+ } else if(srcStats.isDirectory()) {
+ var items = fs.readdirSync(srcPath);
+ for(var t=0; t<items.length; t++) {
+ var item = items[t],
+ err = copy(srcPath + path.sep + item,dstPath + path.sep + item);
+ if(err) {
+ return err;
+ }
+ }
+ }
+ };
+ copy(srcPath,dstPath);
+ return null;
+};
+
+/*
+Copy a file
+*/
+var FILE_BUFFER_LENGTH = 64 * 1024,
+ fileBuffer;
+
+exports.copyFile = function(srcPath,dstPath) {
+ // Create buffer if required
+ if(!fileBuffer) {
+ fileBuffer = Buffer.alloc(FILE_BUFFER_LENGTH);
+ }
+ // Create any directories in the destination
+ $tw.utils.createDirectory(path.dirname(dstPath));
+ // Copy the file
+ var srcFile = fs.openSync(srcPath,"r"),
+ dstFile = fs.openSync(dstPath,"w"),
+ bytesRead = 1,
+ pos = 0;
+ while (bytesRead > 0) {
+ bytesRead = fs.readSync(srcFile,fileBuffer,0,FILE_BUFFER_LENGTH,pos);
+ fs.writeSync(dstFile,fileBuffer,0,bytesRead);
+ pos += bytesRead;
+ }
+ fs.closeSync(srcFile);
+ fs.closeSync(dstFile);
+ return null;
+};
+
+/*
+Remove trailing path separator
+*/
+exports.removeTrailingSeparator = function(dirPath) {
+ var len = dirPath.length;
+ if(dirPath.charAt(len-1) === path.sep) {
+ dirPath = dirPath.substr(0,len-1);
+ }
+ return dirPath;
+};
+
+/*
+Recursively create a directory
+*/
+exports.createDirectory = function(dirPath) {
+ if(dirPath.substr(dirPath.length-1,1) !== path.sep) {
+ dirPath = dirPath + path.sep;
+ }
+ var pos = 1;
+ pos = dirPath.indexOf(path.sep,pos);
+ while(pos !== -1) {
+ var subDirPath = dirPath.substr(0,pos);
+ if(!$tw.utils.isDirectory(subDirPath)) {
+ try {
+ fs.mkdirSync(subDirPath);
+ } catch(e) {
+ return "Error creating directory '" + subDirPath + "'";
+ }
+ }
+ pos = dirPath.indexOf(path.sep,pos + 1);
+ }
+ return null;
+};
+
+/*
+Recursively create directories needed to contain a specified file
+*/
+exports.createFileDirectories = function(filePath) {
+ return $tw.utils.createDirectory(path.dirname(filePath));
+};
+
+/*
+Recursively delete a directory
+*/
+exports.deleteDirectory = function(dirPath) {
+ if(fs.existsSync(dirPath)) {
+ var entries = fs.readdirSync(dirPath);
+ for(var entryIndex=0; entryIndex<entries.length; entryIndex++) {
+ var currPath = dirPath + path.sep + entries[entryIndex];
+ if(fs.lstatSync(currPath).isDirectory()) {
+ $tw.utils.deleteDirectory(currPath);
+ } else {
+ fs.unlinkSync(currPath);
+ }
+ }
+ fs.rmdirSync(dirPath);
+ }
+ return null;
+};
+
+/*
+Check if a path identifies a directory
+*/
+exports.isDirectory = function(dirPath) {
+ return fs.existsSync(dirPath) && fs.statSync(dirPath).isDirectory();
+};
+
+/*
+Check if a path identifies a directory that is empty
+*/
+exports.isDirectoryEmpty = function(dirPath) {
+ if(!$tw.utils.isDirectory(dirPath)) {
+ return false;
+ }
+ var files = fs.readdirSync(dirPath),
+ empty = true;
+ $tw.utils.each(files,function(file,index) {
+ if(file.charAt(0) !== ".") {
+ empty = false;
+ }
+ });
+ return empty;
+};
+
+/*
+Recursively delete a tree of empty directories
+*/
+exports.deleteEmptyDirs = function(dirpath,callback) {
+ var self = this;
+ fs.readdir(dirpath,function(err,files) {
+ if(err) {
+ return callback(err);
+ }
+ if(files.length > 0) {
+ return callback(null);
+ }
+ fs.rmdir(dirpath,function(err) {
+ if(err) {
+ return callback(err);
+ }
+ self.deleteEmptyDirs(path.dirname(dirpath),callback);
+ });
+ });
+};
+
+/*
+Create a fileInfo object for saving a tiddler:
+ filepath: the absolute path to the file containing the tiddler
+ type: the type of the tiddler file (NOT the type of the tiddler)
+ hasMetaFile: true if the file also has a companion .meta file
+Options include:
+ directory: absolute path of root directory to which we are saving
+ pathFilters: optional array of filters to be used to generate the base path
+ wiki: optional wiki for evaluating the pathFilters
+*/
+exports.generateTiddlerFileInfo = function(tiddler,options) {
+ var fileInfo = {};
+ // Check if the tiddler has any unsafe fields that can't be expressed in a .tid or .meta file: containing control characters, or leading/trailing whitespace
+ var hasUnsafeFields = false;
+ $tw.utils.each(tiddler.getFieldStrings(),function(value,fieldName) {
+ if(fieldName !== "text") {
+ hasUnsafeFields = hasUnsafeFields || /[\x00-\x1F]/mg.test(value);
+ hasUnsafeFields = hasUnsafeFields || ($tw.utils.trim(value) !== value);
+ }
+ });
+ // Check for field values
+ if(hasUnsafeFields) {
+ // Save as a JSON file
+ fileInfo.type = "application/json";
+ fileInfo.hasMetaFile = false;
+ } else {
+ // Save as a .tid or a text/binary file plus a .meta file
+ var tiddlerType = tiddler.fields.type || "text/vnd.tiddlywiki";
+ if(tiddlerType === "text/vnd.tiddlywiki") {
+ // Save as a .tid file
+ fileInfo.type = "application/x-tiddler";
+ fileInfo.hasMetaFile = false;
+ } else {
+ // Save as a text/binary file and a .meta file
+ fileInfo.type = tiddlerType;
+ fileInfo.hasMetaFile = true;
+ }
+ }
+ // Take the file extension from the tiddler content type
+ var contentTypeInfo = $tw.config.contentTypeInfo[fileInfo.type] || {extension: ""};
+ // Generate the filepath
+ fileInfo.filepath = $tw.utils.generateTiddlerFilepath(tiddler.fields.title,{
+ extension: contentTypeInfo.extension,
+ directory: options.directory,
+ pathFilters: options.pathFilters,
+ wiki: options.wiki
+ });
+ return fileInfo;
+};
+
+/*
+Generate the filepath for saving a tiddler
+Options include:
+ extension: file extension to be added the finished filepath
+ directory: absolute path of root directory to which we are saving
+ pathFilters: optional array of filters to be used to generate the base path
+ wiki: optional wiki for evaluating the pathFilters
+*/
+exports.generateTiddlerFilepath = function(title,options) {
+ var self = this,
+ directory = options.directory || "",
+ extension = options.extension || "",
+ filepath;
+ // Check if any of the pathFilters applies
+ if(options.pathFilters && options.wiki) {
+ $tw.utils.each(options.pathFilters,function(filter) {
+ if(!filepath) {
+ var source = options.wiki.makeTiddlerIterator([title]),
+ result = options.wiki.filterTiddlers(filter,null,source);
+ if(result.length > 0) {
+ filepath = result[0];
+ }
+ }
+ });
+ }
+ // If not, generate a base pathname
+ if(!filepath) {
+ filepath = title;
+ // If the filepath already ends in the extension then remove it
+ if(filepath.substring(filepath.length - extension.length) === extension) {
+ filepath = filepath.substring(0,filepath.length - extension.length);
+ }
+ // Remove any forward or backward slashes so we don't create directories
+ filepath = filepath.replace(/\/|\\/g,"_");
+ }
+ // Don't let the filename start with a dot because such files are invisible on *nix
+ filepath = filepath.replace(/^\./g,"_");
+ // Remove any characters that can't be used in cross-platform filenames
+ filepath = $tw.utils.transliterate(filepath.replace(/<|>|\:|\"|\||\?|\*|\^/g,"_"));
+ // Truncate the filename if it is too long
+ if(filepath.length > 200) {
+ filepath = filepath.substr(0,200);
+ }
+ // If the resulting filename is blank (eg because the title is just punctuation characters)
+ if(!filepath) {
+ // ...then just use the character codes of the title
+ filepath = "";
+ $tw.utils.each(title.split(""),function(char) {
+ if(filepath) {
+ filepath += "-";
+ }
+ filepath += char.charCodeAt(0).toString();
+ });
+ }
+ // Add a uniquifier if the file already exists
+ var fullPath,
+ count = 0;
+ do {
+ fullPath = path.resolve(directory,filepath + (count ? "_" + count : "") + extension);
+ count++;
+ } while(fs.existsSync(fullPath));
+ // Return the full path to the file
+ return fullPath;
+};
+
+/*
+Save a tiddler to a file described by the fileInfo:
+ filepath: the absolute path to the file containing the tiddler
+ type: the type of the tiddler file (NOT the type of the tiddler)
+ hasMetaFile: true if the file also has a companion .meta file
+*/
+exports.saveTiddlerToFile = function(tiddler,fileInfo,callback) {
+ $tw.utils.createDirectory(path.dirname(fileInfo.filepath));
+ if(fileInfo.hasMetaFile) {
+ // Save the tiddler as a separate body and meta file
+ var typeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || "text/plain"] || {encoding: "utf8"};
+ fs.writeFile(fileInfo.filepath,tiddler.fields.text,typeInfo.encoding,function(err) {
+ if(err) {
+ return callback(err);
+ }
+ fs.writeFile(fileInfo.filepath + ".meta",tiddler.getFieldStringBlock({exclude: ["text","bag"]}),"utf8",callback);
+ });
+ } else {
+ // Save the tiddler as a self contained templated file
+ if(fileInfo.type === "application/x-tiddler") {
+ fs.writeFile(fileInfo.filepath,tiddler.getFieldStringBlock({exclude: ["text","bag"]}) + (!!tiddler.fields.text ? "\n\n" + tiddler.fields.text : ""),"utf8",callback);
+ } else {
+ fs.writeFile(fileInfo.filepath,JSON.stringify([tiddler.getFieldStrings({exclude: ["bag"]})],null,$tw.config.preferences.jsonSpaces),"utf8",callback);
+ }
+ }
+};
+
+/*
+Save a tiddler to a file described by the fileInfo:
+ filepath: the absolute path to the file containing the tiddler
+ type: the type of the tiddler file (NOT the type of the tiddler)
+ hasMetaFile: true if the file also has a companion .meta file
+*/
+exports.saveTiddlerToFileSync = function(tiddler,fileInfo) {
+ $tw.utils.createDirectory(path.dirname(fileInfo.filepath));
+ if(fileInfo.hasMetaFile) {
+ // Save the tiddler as a separate body and meta file
+ var typeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || "text/plain"] || {encoding: "utf8"};
+ fs.writeFileSync(fileInfo.filepath,tiddler.fields.text,typeInfo.encoding);
+ fs.writeFileSync(fileInfo.filepath + ".meta",tiddler.getFieldStringBlock({exclude: ["text","bag"]}),"utf8");
+ } else {
+ // Save the tiddler as a self contained templated file
+ if(fileInfo.type === "application/x-tiddler") {
+ fs.writeFileSync(fileInfo.filepath,tiddler.getFieldStringBlock({exclude: ["text","bag"]}) + (!!tiddler.fields.text ? "\n\n" + tiddler.fields.text : ""),"utf8");
+ } else {
+ fs.writeFileSync(fileInfo.filepath,JSON.stringify([tiddler.getFieldStrings({exclude: ["bag"]})],null,$tw.config.preferences.jsonSpaces),"utf8");
+ }
+ }
+};
+
+})();
+
+/*\
+title: $:/core/modules/utils/logger.js
+type: application/javascript
+module-type: utils
+
+A basic logging implementation
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var ALERT_TAG = "$:/tags/Alert";
+
+/*
+Make a new logger
+*/
+function Logger(componentName,options) {
+ options = options || {};
+ this.componentName = componentName || "";
+ this.colour = options.colour || "white";
+ this.enable = "enable" in options ? options.enable : true;
+ this.save = "save" in options ? options.save : true;
+ this.saveLimit = options.saveLimit || 100 * 1024;
+ this.saveBufferLogger = this;
+ this.buffer = "";
+ this.alertCount = 0;
+}
+
+Logger.prototype.setSaveBuffer = function(logger) {
+ this.saveBufferLogger = logger;
+};
+
+/*
+Log a message
+*/
+Logger.prototype.log = function(/* args */) {
+ var self = this;
+ if(this.enable) {
+ if(this.saveBufferLogger.save) {
+ this.saveBufferLogger.buffer += $tw.utils.formatDateString(new Date(),"YYYY MM DD 0hh:0mm:0ss.0XXX") + ":";
+ $tw.utils.each(Array.prototype.slice.call(arguments,0),function(arg,index) {
+ self.saveBufferLogger.buffer += " " + arg;
+ });
+ this.saveBufferLogger.buffer += "\n";
+ this.saveBufferLogger.buffer = this.saveBufferLogger.buffer.slice(-this.saveBufferLogger.saveLimit);
+ }
+ if(console !== undefined && console.log !== undefined) {
+ return Function.apply.call(console.log, console, [$tw.utils.terminalColour(this.colour),this.componentName + ":"].concat(Array.prototype.slice.call(arguments,0)).concat($tw.utils.terminalColour()));
+ }
+ }
+};
+
+/*
+Read the message buffer
+*/
+Logger.prototype.getBuffer = function() {
+ return this.saveBufferLogger.buffer;
+};
+
+/*
+Log a structure as a table
+*/
+Logger.prototype.table = function(value) {
+ (console.table || console.log)(value);
+};
+
+/*
+Alert a message
+*/
+Logger.prototype.alert = function(/* args */) {
+ if(this.enable) {
+ // Prepare the text of the alert
+ var text = Array.prototype.join.call(arguments," ");
+ // Create alert tiddlers in the browser
+ if($tw.browser) {
+ // Check if there is an existing alert with the same text and the same component
+ var existingAlerts = $tw.wiki.getTiddlersWithTag(ALERT_TAG),
+ alertFields,
+ existingCount,
+ self = this;
+ $tw.utils.each(existingAlerts,function(title) {
+ var tiddler = $tw.wiki.getTiddler(title);
+ if(tiddler.fields.text === text && tiddler.fields.component === self.componentName && tiddler.fields.modified && (!alertFields || tiddler.fields.modified < alertFields.modified)) {
+ alertFields = $tw.utils.extend({},tiddler.fields);
+ }
+ });
+ if(alertFields) {
+ existingCount = alertFields.count || 1;
+ } else {
+ alertFields = {
+ title: $tw.wiki.generateNewTitle("$:/temp/alerts/alert",{prefix: ""}),
+ text: text,
+ tags: [ALERT_TAG],
+ component: this.componentName
+ };
+ existingCount = 0;
+ this.alertCount += 1;
+ }
+ alertFields.modified = new Date();
+ if(++existingCount > 1) {
+ alertFields.count = existingCount;
+ } else {
+ alertFields.count = undefined;
+ }
+ $tw.wiki.addTiddler(new $tw.Tiddler(alertFields));
+ // Log the alert as well
+ this.log.apply(this,Array.prototype.slice.call(arguments,0));
+ } else {
+ // Print an orange message to the console if not in the browser
+ console.error("\x1b[1;33m" + text + "\x1b[0m");
+ }
+ }
+};
+
+/*
+Clear outstanding alerts
+*/
+Logger.prototype.clearAlerts = function() {
+ var self = this;
+ if($tw.browser && this.alertCount > 0) {
+ $tw.utils.each($tw.wiki.getTiddlersWithTag(ALERT_TAG),function(title) {
+ var tiddler = $tw.wiki.getTiddler(title);
+ if(tiddler.fields.component === self.componentName) {
+ $tw.wiki.deleteTiddler(title);
+ }
+ });
+ this.alertCount = 0;
+ }
+};
+
+exports.Logger = Logger;
+
+})();
+
+/*\
+title: $:/core/modules/utils/parsetree.js
+type: application/javascript
+module-type: utils
+
+Parse tree utility functions.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+exports.addAttributeToParseTreeNode = function(node,name,value) {
+ node.attributes = node.attributes || {};
+ node.attributes[name] = {type: "string", value: value};
+};
+
+exports.getAttributeValueFromParseTreeNode = function(node,name,defaultValue) {
+ if(node.attributes && node.attributes[name] && node.attributes[name].value !== undefined) {
+ return node.attributes[name].value;
+ }
+ return defaultValue;
+};
+
+exports.addClassToParseTreeNode = function(node,classString) {
+ var classes = [];
+ node.attributes = node.attributes || {};
+ node.attributes["class"] = node.attributes["class"] || {type: "string", value: ""};
+ if(node.attributes["class"].type === "string") {
+ if(node.attributes["class"].value !== "") {
+ classes = node.attributes["class"].value.split(" ");
+ }
+ if(classString !== "") {
+ $tw.utils.pushTop(classes,classString.split(" "));
+ }
+ node.attributes["class"].value = classes.join(" ");
+ }
+};
+
+exports.addStyleToParseTreeNode = function(node,name,value) {
+ node.attributes = node.attributes || {};
+ node.attributes.style = node.attributes.style || {type: "string", value: ""};
+ if(node.attributes.style.type === "string") {
+ node.attributes.style.value += name + ":" + value + ";";
+ }
+};
+
+exports.findParseTreeNode = function(nodeArray,search) {
+ for(var t=0; t<nodeArray.length; t++) {
+ if(nodeArray[t].type === search.type && nodeArray[t].tag === search.tag) {
+ return nodeArray[t];
+ }
+ }
+ return undefined;
+};
+
+/*
+Helper to get the text of a parse tree node or array of nodes
+*/
+exports.getParseTreeText = function getParseTreeText(tree) {
+ var output = [];
+ if($tw.utils.isArray(tree)) {
+ $tw.utils.each(tree,function(node) {
+ output.push(getParseTreeText(node));
+ });
+ } else {
+ if(tree.type === "text") {
+ output.push(tree.text);
+ }
+ if(tree.children) {
+ return getParseTreeText(tree.children);
+ }
+ }
+ return output.join("");
+};
+
+})();
+
+/*\
+title: $:/core/modules/utils/parseutils.js
+type: application/javascript
+module-type: utils
+
+Utility functions concerned with parsing text into tokens.
+
+Most functions have the following pattern:
+
+* The parameters are:
+** `source`: the source string being parsed
+** `pos`: the current parse position within the string
+** Any further parameters are used to identify the token that is being parsed
+* The return value is:
+** null if the token was not found at the specified position
+** an object representing the token with the following standard fields:
+*** `type`: string indicating the type of the token
+*** `start`: start position of the token in the source string
+*** `end`: end position of the token in the source string
+*** Any further fields required to describe the token
+
+The exception is `skipWhiteSpace`, which just returns the position after the whitespace.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Look for a whitespace token. Returns null if not found, otherwise returns {type: "whitespace", start:, end:,}
+*/
+exports.parseWhiteSpace = function(source,pos) {
+ var p = pos,c;
+ while(true) {
+ c = source.charAt(p);
+ if((c === " ") || (c === "\f") || (c === "\n") || (c === "\r") || (c === "\t") || (c === "\v") || (c === "\u00a0")) { // Ignores some obscure unicode spaces
+ p++;
+ } else {
+ break;
+ }
+ }
+ if(p === pos) {
+ return null;
+ } else {
+ return {
+ type: "whitespace",
+ start: pos,
+ end: p
+ }
+ }
+};
+
+/*
+Convenience wrapper for parseWhiteSpace. Returns the position after the whitespace
+*/
+exports.skipWhiteSpace = function(source,pos) {
+ var c;
+ while(true) {
+ c = source.charAt(pos);
+ if((c === " ") || (c === "\f") || (c === "\n") || (c === "\r") || (c === "\t") || (c === "\v") || (c === "\u00a0")) { // Ignores some obscure unicode spaces
+ pos++;
+ } else {
+ return pos;
+ }
+ }
+};
+
+/*
+Look for a given string token. Returns null if not found, otherwise returns {type: "token", value:, start:, end:,}
+*/
+exports.parseTokenString = function(source,pos,token) {
+ var match = source.indexOf(token,pos) === pos;
+ if(match) {
+ return {
+ type: "token",
+ value: token,
+ start: pos,
+ end: pos + token.length
+ };
+ }
+ return null;
+};
+
+/*
+Look for a token matching a regex. Returns null if not found, otherwise returns {type: "regexp", match:, start:, end:,}
+*/
+exports.parseTokenRegExp = function(source,pos,reToken) {
+ var node = {
+ type: "regexp",
+ start: pos
+ };
+ reToken.lastIndex = pos;
+ node.match = reToken.exec(source);
+ if(node.match && node.match.index === pos) {
+ node.end = pos + node.match[0].length;
+ return node;
+ } else {
+ return null;
+ }
+};
+
+/*
+Look for a string literal. Returns null if not found, otherwise returns {type: "string", value:, start:, end:,}
+*/
+exports.parseStringLiteral = function(source,pos) {
+ var node = {
+ type: "string",
+ start: pos
+ };
+ var reString = /(?:"""([\s\S]*?)"""|"([^"]*)")|(?:'([^']*)')/g;
+ reString.lastIndex = pos;
+ var match = reString.exec(source);
+ if(match && match.index === pos) {
+ node.value = match[1] !== undefined ? match[1] :(
+ match[2] !== undefined ? match[2] : match[3]
+ );
+ node.end = pos + match[0].length;
+ return node;
+ } else {
+ return null;
+ }
+};
+
+/*
+Look for a macro invocation parameter. Returns null if not found, or {type: "macro-parameter", name:, value:, start:, end:}
+*/
+exports.parseMacroParameter = function(source,pos) {
+ var node = {
+ type: "macro-parameter",
+ start: pos
+ };
+ // Define our regexp
+ var reMacroParameter = /(?:([A-Za-z0-9\-_]+)\s*:)?(?:\s*(?:"""([\s\S]*?)"""|"([^"]*)"|'([^']*)'|\[\[([^\]]*)\]\]|([^\s>"'=]+)))/g;
+ // Skip whitespace
+ pos = $tw.utils.skipWhiteSpace(source,pos);
+ // Look for the parameter
+ var token = $tw.utils.parseTokenRegExp(source,pos,reMacroParameter);
+ if(!token) {
+ return null;
+ }
+ pos = token.end;
+ // Get the parameter details
+ node.value = token.match[2] !== undefined ? token.match[2] : (
+ token.match[3] !== undefined ? token.match[3] : (
+ token.match[4] !== undefined ? token.match[4] : (
+ token.match[5] !== undefined ? token.match[5] : (
+ token.match[6] !== undefined ? token.match[6] : (
+ ""
+ )
+ )
+ )
+ )
+ );
+ if(token.match[1]) {
+ node.name = token.match[1];
+ }
+ // Update the end position
+ node.end = pos;
+ return node;
+};
+
+/*
+Look for a macro invocation. Returns null if not found, or {type: "macrocall", name:, parameters:, start:, end:}
+*/
+exports.parseMacroInvocation = function(source,pos) {
+ var node = {
+ type: "macrocall",
+ start: pos,
+ params: []
+ };
+ // Define our regexps
+ var reMacroName = /([^\s>"'=]+)/g;
+ // Skip whitespace
+ pos = $tw.utils.skipWhiteSpace(source,pos);
+ // Look for a double less than sign
+ var token = $tw.utils.parseTokenString(source,pos,"<<");
+ if(!token) {
+ return null;
+ }
+ pos = token.end;
+ // Get the macro name
+ var name = $tw.utils.parseTokenRegExp(source,pos,reMacroName);
+ if(!name) {
+ return null;
+ }
+ node.name = name.match[1];
+ pos = name.end;
+ // Process parameters
+ var parameter = $tw.utils.parseMacroParameter(source,pos);
+ while(parameter) {
+ node.params.push(parameter);
+ pos = parameter.end;
+ // Get the next parameter
+ parameter = $tw.utils.parseMacroParameter(source,pos);
+ }
+ // Skip whitespace
+ pos = $tw.utils.skipWhiteSpace(source,pos);
+ // Look for a double greater than sign
+ token = $tw.utils.parseTokenString(source,pos,">>");
+ if(!token) {
+ return null;
+ }
+ pos = token.end;
+ // Update the end position
+ node.end = pos;
+ return node;
+};
+
+/*
+Look for an HTML attribute definition. Returns null if not found, otherwise returns {type: "attribute", name:, valueType: "string|indirect|macro", value:, start:, end:,}
+*/
+exports.parseAttribute = function(source,pos) {
+ var node = {
+ start: pos
+ };
+ // Define our regexps
+ var reAttributeName = /([^\/\s>"'=]+)/g,
+ reUnquotedAttribute = /([^\/\s<>"'=]+)/g,
+ reFilteredValue = /\{\{\{(.+?)\}\}\}/g,
+ reIndirectValue = /\{\{([^\}]+)\}\}/g;
+ // Skip whitespace
+ pos = $tw.utils.skipWhiteSpace(source,pos);
+ // Get the attribute name
+ var name = $tw.utils.parseTokenRegExp(source,pos,reAttributeName);
+ if(!name) {
+ return null;
+ }
+ node.name = name.match[1];
+ pos = name.end;
+ // Skip whitespace
+ pos = $tw.utils.skipWhiteSpace(source,pos);
+ // Look for an equals sign
+ var token = $tw.utils.parseTokenString(source,pos,"=");
+ if(token) {
+ pos = token.end;
+ // Skip whitespace
+ pos = $tw.utils.skipWhiteSpace(source,pos);
+ // Look for a string literal
+ var stringLiteral = $tw.utils.parseStringLiteral(source,pos);
+ if(stringLiteral) {
+ pos = stringLiteral.end;
+ node.type = "string";
+ node.value = stringLiteral.value;
+ } else {
+ // Look for a filtered value
+ var filteredValue = $tw.utils.parseTokenRegExp(source,pos,reFilteredValue);
+ if(filteredValue) {
+ pos = filteredValue.end;
+ node.type = "filtered";
+ node.filter = filteredValue.match[1];
+ } else {
+ // Look for an indirect value
+ var indirectValue = $tw.utils.parseTokenRegExp(source,pos,reIndirectValue);
+ if(indirectValue) {
+ pos = indirectValue.end;
+ node.type = "indirect";
+ node.textReference = indirectValue.match[1];
+ } else {
+ // Look for a unquoted value
+ var unquotedValue = $tw.utils.parseTokenRegExp(source,pos,reUnquotedAttribute);
+ if(unquotedValue) {
+ pos = unquotedValue.end;
+ node.type = "string";
+ node.value = unquotedValue.match[1];
+ } else {
+ // Look for a macro invocation value
+ var macroInvocation = $tw.utils.parseMacroInvocation(source,pos);
+ if(macroInvocation) {
+ pos = macroInvocation.end;
+ node.type = "macro";
+ node.value = macroInvocation;
+ } else {
+ node.type = "string";
+ node.value = "true";
+ }
+ }
+ }
+ }
+ }
+ } else {
+ node.type = "string";
+ node.value = "true";
+ }
+ // Update the end position
+ node.end = pos;
+ return node;
+};
+
+})();
+
+/*\
+title: $:/core/modules/utils/performance.js
+type: application/javascript
+module-type: global
+
+Performance measurement.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+function Performance(enabled) {
+ this.enabled = !!enabled;
+ this.measures = {}; // Hashmap by measurement name of {time:, invocations:}
+ this.logger = new $tw.utils.Logger("performance");
+ this.showGreeting();
+}
+
+Performance.prototype.showGreeting = function() {
+ if($tw.browser) {
+ this.logger.log("Execute $tw.perf.log(); to see filter execution timings");
+ }
+};
+
+/*
+Wrap performance reporting around a top level function
+*/
+Performance.prototype.report = function(name,fn) {
+ var self = this;
+ if(this.enabled) {
+ return function() {
+ var startTime = $tw.utils.timer(),
+ result = fn.apply(this,arguments);
+ self.logger.log(name + ": " + $tw.utils.timer(startTime).toFixed(2) + "ms");
+ return result;
+ };
+ } else {
+ return fn;
+ }
+};
+
+Performance.prototype.log = function() {
+ var self = this,
+ totalTime = 0,
+ orderedMeasures = Object.keys(this.measures).sort(function(a,b) {
+ if(self.measures[a].time > self.measures[b].time) {
+ return -1;
+ } else if (self.measures[a].time < self.measures[b].time) {
+ return + 1;
+ } else {
+ return 0;
+ }
+ });
+ $tw.utils.each(orderedMeasures,function(name) {
+ totalTime += self.measures[name].time;
+ });
+ var results = []
+ $tw.utils.each(orderedMeasures,function(name) {
+ var measure = self.measures[name];
+ results.push({name: name,invocations: measure.invocations, avgTime: measure.time / measure.invocations, totalTime: measure.time, percentTime: (measure.time / totalTime) * 100})
+ });
+ self.logger.table(results);
+};
+
+/*
+Wrap performance measurements around a subfunction
+*/
+Performance.prototype.measure = function(name,fn) {
+ var self = this;
+ if(this.enabled) {
+ return function() {
+ var startTime = $tw.utils.timer(),
+ result = fn.apply(this,arguments);
+ if(!(name in self.measures)) {
+ self.measures[name] = {time: 0, invocations: 0};
+ }
+ self.measures[name].time += $tw.utils.timer(startTime);
+ self.measures[name].invocations++;
+ return result;
+ };
+ } else {
+ return fn;
+ }
+};
+
+exports.Performance = Performance;
+
+})();
+
+/*\
+title: $:/core/modules/utils/pluginmaker.js
+type: application/javascript
+module-type: utils
+
+A quick and dirty way to pack up plugins within the browser.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Repack a plugin, and then delete any non-shadow payload tiddlers
+*/
+exports.repackPlugin = function(title,additionalTiddlers,excludeTiddlers) {
+ additionalTiddlers = additionalTiddlers || [];
+ excludeTiddlers = excludeTiddlers || [];
+ // Get the plugin tiddler
+ var pluginTiddler = $tw.wiki.getTiddler(title);
+ if(!pluginTiddler) {
+ throw "No such tiddler as " + title;
+ }
+ // Extract the JSON
+ var jsonPluginTiddler;
+ try {
+ jsonPluginTiddler = JSON.parse(pluginTiddler.fields.text);
+ } catch(e) {
+ throw "Cannot parse plugin tiddler " + title + "\n" + $tw.language.getString("Error/Caption") + ": " + e;
+ }
+ // Get the list of tiddlers
+ var tiddlers = Object.keys(jsonPluginTiddler.tiddlers);
+ // Add the additional tiddlers
+ $tw.utils.pushTop(tiddlers,additionalTiddlers);
+ // Remove any excluded tiddlers
+ for(var t=tiddlers.length-1; t>=0; t--) {
+ if(excludeTiddlers.indexOf(tiddlers[t]) !== -1) {
+ tiddlers.splice(t,1);
+ }
+ }
+ // Pack up the tiddlers into a block of JSON
+ var plugins = {};
+ $tw.utils.each(tiddlers,function(title) {
+ var tiddler = $tw.wiki.getTiddler(title),
+ fields = {};
+ $tw.utils.each(tiddler.fields,function (value,name) {
+ fields[name] = tiddler.getFieldString(name);
+ });
+ plugins[title] = fields;
+ });
+ // Retrieve and bump the version number
+ var pluginVersion = $tw.utils.parseVersion(pluginTiddler.getFieldString("version") || "0.0.0") || {
+ major: "0",
+ minor: "0",
+ patch: "0"
+ };
+ pluginVersion.patch++;
+ var version = pluginVersion.major + "." + pluginVersion.minor + "." + pluginVersion.patch;
+ if(pluginVersion.prerelease) {
+ version += "-" + pluginVersion.prerelease;
+ }
+ if(pluginVersion.build) {
+ version += "+" + pluginVersion.build;
+ }
+ // Save the tiddler
+ $tw.wiki.addTiddler(new $tw.Tiddler(pluginTiddler,{text: JSON.stringify({tiddlers: plugins},null,4), version: version}));
+ // Delete any non-shadow constituent tiddlers
+ $tw.utils.each(tiddlers,function(title) {
+ if($tw.wiki.tiddlerExists(title)) {
+ $tw.wiki.deleteTiddler(title);
+ }
+ });
+ // Trigger an autosave
+ $tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"});
+ // Return a heartwarming confirmation
+ return "Plugin " + title + " successfully saved";
+};
+
+})();
+
+/*\
+title: $:/core/modules/utils/transliterate.js
+type: application/javascript
+module-type: utils
+
+Transliteration static utility functions.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Transliterate string to ASCII
+
+(Some pairs taken from http://semplicewebsites.com/removing-accents-javascript)
+*/
+exports.transliterationPairs = {
+ "Á":"A",
+ "Ă":"A",
+ "Ắ":"A",
+ "Ặ":"A",
+ "Ằ":"A",
+ "Ẳ":"A",
+ "Ẵ":"A",
+ "Ǎ":"A",
+ "Â":"A",
+ "Ấ":"A",
+ "Ậ":"A",
+ "Ầ":"A",
+ "Ẩ":"A",
+ "Ẫ":"A",
+ "Ä":"A",
+ "Ǟ":"A",
+ "Ȧ":"A",
+ "Ǡ":"A",
+ "Ạ":"A",
+ "Ȁ":"A",
+ "À":"A",
+ "Ả":"A",
+ "Ȃ":"A",
+ "Ā":"A",
+ "Ą":"A",
+ "Å":"A",
+ "Ǻ":"A",
+ "Ḁ":"A",
+ "Ⱥ":"A",
+ "Ã":"A",
+ "Ꜳ":"AA",
+ "Æ":"AE",
+ "Ǽ":"AE",
+ "Ǣ":"AE",
+ "Ꜵ":"AO",
+ "Ꜷ":"AU",
+ "Ꜹ":"AV",
+ "Ꜻ":"AV",
+ "Ꜽ":"AY",
+ "Ḃ":"B",
+ "Ḅ":"B",
+ "Ɓ":"B",
+ "Ḇ":"B",
+ "Ƀ":"B",
+ "Ƃ":"B",
+ "Ć":"C",
+ "Č":"C",
+ "Ç":"C",
+ "Ḉ":"C",
+ "Ĉ":"C",
+ "Ċ":"C",
+ "Ƈ":"C",
+ "Ȼ":"C",
+ "Ď":"D",
+ "Ḑ":"D",
+ "Ḓ":"D",
+ "Ḋ":"D",
+ "Ḍ":"D",
+ "Ɗ":"D",
+ "Ḏ":"D",
+ "Dz":"D",
+ "Dž":"D",
+ "Đ":"D",
+ "Ƌ":"D",
+ "DZ":"DZ",
+ "DŽ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v",
+ "ₓ":"x",
+ "Ё":"YO",
+ "Й":"I",
+ "Ц":"TS",
+ "У":"U",
+ "К":"K",
+ "Е":"E",
+ "Н":"N",
+ "Г":"G",
+ "Ш":"SH",
+ "Щ":"SCH",
+ "З":"Z",
+ "Х":"H",
+ "Ъ":"'",
+ "ё":"yo",
+ "й":"i",
+ "ц":"ts",
+ "у":"u",
+ "к":"k",
+ "е":"e",
+ "н":"n",
+ "г":"g",
+ "ш":"sh",
+ "щ":"sch",
+ "з":"z",
+ "х":"h",
+ "ъ":"'",
+ "Ф":"F",
+ "Ы":"I",
+ "В":"V",
+ "А":"a",
+ "П":"P",
+ "Р":"R",
+ "О":"O",
+ "Л":"L",
+ "Д":"D",
+ "Ж":"ZH",
+ "Э":"E",
+ "ф":"f",
+ "ы":"i",
+ "в":"v",
+ "а":"a",
+ "п":"p",
+ "р":"r",
+ "о":"o",
+ "л":"l",
+ "д":"d",
+ "ж":"zh",
+ "э":"e",
+ "Я":"Ya",
+ "Ч":"CH",
+ "С":"S",
+ "М":"M",
+ "И":"I",
+ "Т":"T",
+ "Ь":"'",
+ "Б":"B",
+ "Ю":"YU",
+ "я":"ya",
+ "ч":"ch",
+ "с":"s",
+ "м":"m",
+ "и":"i",
+ "т":"t",
+ "ь":"'",
+ "б":"b",
+ "ю":"yu"
+};
+
+exports.transliterate = function(str) {
+ return str.replace(/[^A-Za-z0-9\[\] ]/g,function(ch) {
+ return exports.transliterationPairs[ch] || ch
+ });
+};
+
+exports.transliterateToSafeASCII = function(str) {
+ return str.replace(/[^\x00-\x7F]/g,function(ch) {
+ return exports.transliterationPairs[ch] || ""
+ });
+};
+
+})();
+
+/*\
+title: $:/core/modules/utils/utils.js
+type: application/javascript
+module-type: utils
+
+Various static utility functions.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var base64utf8 = require("$:/core/modules/utils/base64-utf8/base64-utf8.module.js");
+
+/*
+Display a message, in colour if we're on a terminal
+*/
+exports.log = function(text,colour) {
+ console.log($tw.node ? exports.terminalColour(colour) + text + exports.terminalColour() : text);
+};
+
+exports.terminalColour = function(colour) {
+ if(!$tw.browser && $tw.node && process.stdout.isTTY) {
+ if(colour) {
+ var code = exports.terminalColourLookup[colour];
+ if(code) {
+ return "\x1b[" + code + "m";
+ }
+ } else {
+ return "\x1b[0m"; // Cancel colour
+ }
+ }
+ return "";
+};
+
+exports.terminalColourLookup = {
+ "black": "0;30",
+ "red": "0;31",
+ "green": "0;32",
+ "brown/orange": "0;33",
+ "blue": "0;34",
+ "purple": "0;35",
+ "cyan": "0;36",
+ "light gray": "0;37"
+};
+
+/*
+Display a warning, in colour if we're on a terminal
+*/
+exports.warning = function(text) {
+ exports.log(text,"brown/orange");
+};
+
+/*
+Return the integer represented by the str (string).
+Return the dflt (default) parameter if str is not a base-10 number.
+*/
+exports.getInt = function(str,deflt) {
+ var i = parseInt(str,10);
+ return isNaN(i) ? deflt : i;
+}
+
+/*
+Repeatedly replaces a substring within a string. Like String.prototype.replace, but without any of the default special handling of $ sequences in the replace string
+*/
+exports.replaceString = function(text,search,replace) {
+ return text.replace(search,function() {
+ return replace;
+ });
+};
+
+/*
+Repeats a string
+*/
+exports.repeat = function(str,count) {
+ var result = "";
+ for(var t=0;t<count;t++) {
+ result += str;
+ }
+ return result;
+};
+
+/*
+Trim whitespace from the start and end of a string
+Thanks to Steven Levithan, http://blog.stevenlevithan.com/archives/faster-trim-javascript
+*/
+exports.trim = function(str) {
+ if(typeof str === "string") {
+ return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
+ } else {
+ return str;
+ }
+};
+
+/*
+Convert a string to sentence case (ie capitalise first letter)
+*/
+exports.toSentenceCase = function(str) {
+ return (str || "").replace(/^\S/, function(c) {return c.toUpperCase();});
+}
+
+/*
+Convert a string to title case (ie capitalise each initial letter)
+*/
+exports.toTitleCase = function(str) {
+ return (str || "").replace(/(^|\s)\S/g, function(c) {return c.toUpperCase();});
+}
+
+/*
+Find the line break preceding a given position in a string
+Returns position immediately after that line break, or the start of the string
+*/
+exports.findPrecedingLineBreak = function(text,pos) {
+ var result = text.lastIndexOf("\n",pos - 1);
+ if(result === -1) {
+ result = 0;
+ } else {
+ result++;
+ if(text.charAt(result) === "\r") {
+ result++;
+ }
+ }
+ return result;
+};
+
+/*
+Find the line break following a given position in a string
+*/
+exports.findFollowingLineBreak = function(text,pos) {
+ // Cut to just past the following line break, or to the end of the text
+ var result = text.indexOf("\n",pos);
+ if(result === -1) {
+ result = text.length;
+ } else {
+ if(text.charAt(result) === "\r") {
+ result++;
+ }
+ }
+ return result;
+};
+
+/*
+Return the number of keys in an object
+*/
+exports.count = function(object) {
+ return Object.keys(object || {}).length;
+};
+
+/*
+Determine whether an array-item is an object-property
+*/
+exports.hopArray = function(object,array) {
+ for(var i=0; i<array.length; i++) {
+ if($tw.utils.hop(object,array[i])) {
+ return true;
+ }
+ }
+ return false;
+};
+
+/*
+Remove entries from an array
+ array: array to modify
+ value: a single value to remove, or an array of values to remove
+*/
+exports.removeArrayEntries = function(array,value) {
+ var t,p;
+ if($tw.utils.isArray(value)) {
+ for(t=0; t<value.length; t++) {
+ p = array.indexOf(value[t]);
+ if(p !== -1) {
+ array.splice(p,1);
+ }
+ }
+ } else {
+ p = array.indexOf(value);
+ if(p !== -1) {
+ array.splice(p,1);
+ }
+ }
+};
+
+/*
+Check whether any members of a hashmap are present in another hashmap
+*/
+exports.checkDependencies = function(dependencies,changes) {
+ var hit = false;
+ $tw.utils.each(changes,function(change,title) {
+ if($tw.utils.hop(dependencies,title)) {
+ hit = true;
+ }
+ });
+ return hit;
+};
+
+exports.extend = function(object /* [, src] */) {
+ $tw.utils.each(Array.prototype.slice.call(arguments, 1), function(source) {
+ if(source) {
+ for(var property in source) {
+ object[property] = source[property];
+ }
+ }
+ });
+ return object;
+};
+
+exports.deepCopy = function(object) {
+ var result,t;
+ if($tw.utils.isArray(object)) {
+ // Copy arrays
+ result = object.slice(0);
+ } else if(typeof object === "object") {
+ result = {};
+ for(t in object) {
+ if(object[t] !== undefined) {
+ result[t] = $tw.utils.deepCopy(object[t]);
+ }
+ }
+ } else {
+ result = object;
+ }
+ return result;
+};
+
+exports.extendDeepCopy = function(object,extendedProperties) {
+ var result = $tw.utils.deepCopy(object),t;
+ for(t in extendedProperties) {
+ if(extendedProperties[t] !== undefined) {
+ result[t] = $tw.utils.deepCopy(extendedProperties[t]);
+ }
+ }
+ return result;
+};
+
+exports.deepFreeze = function deepFreeze(object) {
+ var property, key;
+ if(object) {
+ Object.freeze(object);
+ for(key in object) {
+ property = object[key];
+ if($tw.utils.hop(object,key) && (typeof property === "object") && !Object.isFrozen(property)) {
+ deepFreeze(property);
+ }
+ }
+ }
+};
+
+exports.slowInSlowOut = function(t) {
+ return (1 - ((Math.cos(t * Math.PI) + 1) / 2));
+};
+
+exports.formatDateString = function(date,template) {
+ var result = "",
+ t = template,
+ matches = [
+ [/^0hh12/, function() {
+ return $tw.utils.pad($tw.utils.getHours12(date));
+ }],
+ [/^wYYYY/, function() {
+ return $tw.utils.getYearForWeekNo(date);
+ }],
+ [/^hh12/, function() {
+ return $tw.utils.getHours12(date);
+ }],
+ [/^DDth/, function() {
+ return date.getDate() + $tw.utils.getDaySuffix(date);
+ }],
+ [/^YYYY/, function() {
+ return date.getFullYear();
+ }],
+ [/^0hh/, function() {
+ return $tw.utils.pad(date.getHours());
+ }],
+ [/^0mm/, function() {
+ return $tw.utils.pad(date.getMinutes());
+ }],
+ [/^0ss/, function() {
+ return $tw.utils.pad(date.getSeconds());
+ }],
+ [/^0XXX/, function() {
+ return $tw.utils.pad(date.getMilliseconds(),3);
+ }],
+ [/^0DD/, function() {
+ return $tw.utils.pad(date.getDate());
+ }],
+ [/^0MM/, function() {
+ return $tw.utils.pad(date.getMonth()+1);
+ }],
+ [/^0WW/, function() {
+ return $tw.utils.pad($tw.utils.getWeek(date));
+ }],
+ [/^ddd/, function() {
+ return $tw.language.getString("Date/Short/Day/" + date.getDay());
+ }],
+ [/^mmm/, function() {
+ return $tw.language.getString("Date/Short/Month/" + (date.getMonth() + 1));
+ }],
+ [/^DDD/, function() {
+ return $tw.language.getString("Date/Long/Day/" + date.getDay());
+ }],
+ [/^MMM/, function() {
+ return $tw.language.getString("Date/Long/Month/" + (date.getMonth() + 1));
+ }],
+ [/^TZD/, function() {
+ var tz = date.getTimezoneOffset(),
+ atz = Math.abs(tz);
+ return (tz < 0 ? '+' : '-') + $tw.utils.pad(Math.floor(atz / 60)) + ':' + $tw.utils.pad(atz % 60);
+ }],
+ [/^wYY/, function() {
+ return $tw.utils.pad($tw.utils.getYearForWeekNo(date) - 2000);
+ }],
+ [/^[ap]m/, function() {
+ return $tw.utils.getAmPm(date).toLowerCase();
+ }],
+ [/^hh/, function() {
+ return date.getHours();
+ }],
+ [/^mm/, function() {
+ return date.getMinutes();
+ }],
+ [/^ss/, function() {
+ return date.getSeconds();
+ }],
+ [/^XXX/, function() {
+ return date.getMilliseconds();
+ }],
+ [/^[AP]M/, function() {
+ return $tw.utils.getAmPm(date).toUpperCase();
+ }],
+ [/^DD/, function() {
+ return date.getDate();
+ }],
+ [/^MM/, function() {
+ return date.getMonth() + 1;
+ }],
+ [/^WW/, function() {
+ return $tw.utils.getWeek(date);
+ }],
+ [/^YY/, function() {
+ return $tw.utils.pad(date.getFullYear() - 2000);
+ }]
+ ];
+ // If the user wants everything in UTC, shift the datestamp
+ // Optimize for format string that essentially means
+ // 'return raw UTC (tiddlywiki style) date string.'
+ if(t.indexOf("[UTC]") == 0 ) {
+ if(t == "[UTC]YYYY0MM0DD0hh0mm0ssXXX")
+ return $tw.utils.stringifyDate(new Date());
+ var offset = date.getTimezoneOffset() ; // in minutes
+ date = new Date(date.getTime()+offset*60*1000) ;
+ t = t.substr(5) ;
+ }
+ while(t.length){
+ var matchString = "";
+ $tw.utils.each(matches, function(m) {
+ var match = m[0].exec(t);
+ if(match) {
+ matchString = m[1].call();
+ t = t.substr(match[0].length);
+ return false;
+ }
+ });
+ if(matchString) {
+ result += matchString;
+ } else {
+ result += t.charAt(0);
+ t = t.substr(1);
+ }
+ }
+ result = result.replace(/\\(.)/g,"$1");
+ return result;
+};
+
+exports.getAmPm = function(date) {
+ return $tw.language.getString("Date/Period/" + (date.getHours() >= 12 ? "pm" : "am"));
+};
+
+exports.getDaySuffix = function(date) {
+ return $tw.language.getString("Date/DaySuffix/" + date.getDate());
+};
+
+exports.getWeek = function(date) {
+ var dt = new Date(date.getTime());
+ var d = dt.getDay();
+ if(d === 0) {
+ d = 7; // JavaScript Sun=0, ISO Sun=7
+ }
+ dt.setTime(dt.getTime() + (4 - d) * 86400000);// shift day to Thurs of same week to calculate weekNo
+ var x = new Date(dt.getFullYear(),0,1);
+ var n = Math.floor((dt.getTime() - x.getTime()) / 86400000);
+ return Math.floor(n / 7) + 1;
+};
+
+exports.getYearForWeekNo = function(date) {
+ var dt = new Date(date.getTime());
+ var d = dt.getDay();
+ if(d === 0) {
+ d = 7; // JavaScript Sun=0, ISO Sun=7
+ }
+ dt.setTime(dt.getTime() + (4 - d) * 86400000);// shift day to Thurs of same week
+ return dt.getFullYear();
+};
+
+exports.getHours12 = function(date) {
+ var h = date.getHours();
+ return h > 12 ? h-12 : ( h > 0 ? h : 12 );
+};
+
+/*
+Convert a date delta in milliseconds into a string representation of "23 seconds ago", "27 minutes ago" etc.
+ delta: delta in milliseconds
+Returns an object with these members:
+ description: string describing the delta period
+ updatePeriod: time in millisecond until the string will be inaccurate
+*/
+exports.getRelativeDate = function(delta) {
+ var futurep = false;
+ if(delta < 0) {
+ delta = -1 * delta;
+ futurep = true;
+ }
+ var units = [
+ {name: "Years", duration: 365 * 24 * 60 * 60 * 1000},
+ {name: "Months", duration: (365/12) * 24 * 60 * 60 * 1000},
+ {name: "Days", duration: 24 * 60 * 60 * 1000},
+ {name: "Hours", duration: 60 * 60 * 1000},
+ {name: "Minutes", duration: 60 * 1000},
+ {name: "Seconds", duration: 1000}
+ ];
+ for(var t=0; t<units.length; t++) {
+ var result = Math.floor(delta / units[t].duration);
+ if(result >= 2) {
+ return {
+ delta: delta,
+ description: $tw.language.getString(
+ "RelativeDate/" + (futurep ? "Future" : "Past") + "/" + units[t].name,
+ {variables:
+ {period: result.toString()}
+ }
+ ),
+ updatePeriod: units[t].duration
+ };
+ }
+ }
+ return {
+ delta: delta,
+ description: $tw.language.getString(
+ "RelativeDate/" + (futurep ? "Future" : "Past") + "/Second",
+ {variables:
+ {period: "1"}
+ }
+ ),
+ updatePeriod: 1000
+ };
+};
+
+// Convert & to "&", < to "<", > to ">", " to """
+exports.htmlEncode = function(s) {
+ if(s) {
+ return s.toString().replace(/&/mg,"&").replace(/</mg,"<").replace(/>/mg,">").replace(/\"/mg,""");
+ } else {
+ return "";
+ }
+};
+
+// Converts all HTML entities to their character equivalents
+exports.entityDecode = function(s) {
+ var converter = String.fromCodePoint || String.fromCharCode,
+ e = s.substr(1,s.length-2), // Strip the & and the ;
+ c;
+ if(e.charAt(0) === "#") {
+ if(e.charAt(1) === "x" || e.charAt(1) === "X") {
+ c = parseInt(e.substr(2),16);
+ } else {
+ c = parseInt(e.substr(1),10);
+ }
+ if(isNaN(c)) {
+ return s;
+ } else {
+ return converter(c);
+ }
+ } else {
+ c = $tw.config.htmlEntities[e];
+ if(c) {
+ return converter(c);
+ } else {
+ return s; // Couldn't convert it as an entity, just return it raw
+ }
+ }
+};
+
+exports.unescapeLineBreaks = function(s) {
+ return s.replace(/\\n/mg,"\n").replace(/\\b/mg," ").replace(/\\s/mg,"\\").replace(/\r/mg,"");
+};
+
+/*
+ * Returns an escape sequence for given character. Uses \x for characters <=
+ * 0xFF to save space, \u for the rest.
+ *
+ * The code needs to be in sync with th code template in the compilation
+ * function for "action" nodes.
+ */
+// Copied from peg.js, thanks to David Majda
+exports.escape = function(ch) {
+ var charCode = ch.charCodeAt(0);
+ if(charCode <= 0xFF) {
+ return '\\x' + $tw.utils.pad(charCode.toString(16).toUpperCase());
+ } else {
+ return '\\u' + $tw.utils.pad(charCode.toString(16).toUpperCase(),4);
+ }
+};
+
+// Turns a string into a legal JavaScript string
+// Copied from peg.js, thanks to David Majda
+exports.stringify = function(s) {
+ /*
+ * ECMA-262, 5th ed., 7.8.4: All characters may appear literally in a string
+ * literal except for the closing quote character, backslash, carriage return,
+ * line separator, paragraph separator, and line feed. Any character may
+ * appear in the form of an escape sequence.
+ *
+ * For portability, we also escape all non-ASCII characters.
+ */
+ return (s || "")
+ .replace(/\\/g, '\\\\') // backslash
+ .replace(/"/g, '\\"') // double quote character
+ .replace(/'/g, "\\'") // single quote character
+ .replace(/\r/g, '\\r') // carriage return
+ .replace(/\n/g, '\\n') // line feed
+ .replace(/[\x00-\x1f\x80-\uFFFF]/g, exports.escape); // non-ASCII characters
+};
+
+// Turns a string into a legal JSON string
+// Derived from peg.js, thanks to David Majda
+exports.jsonStringify = function(s) {
+ // See http://www.json.org/
+ return (s || "")
+ .replace(/\\/g, '\\\\') // backslash
+ .replace(/"/g, '\\"') // double quote character
+ .replace(/\r/g, '\\r') // carriage return
+ .replace(/\n/g, '\\n') // line feed
+ .replace(/\x08/g, '\\b') // backspace
+ .replace(/\x0c/g, '\\f') // formfeed
+ .replace(/\t/g, '\\t') // tab
+ .replace(/[\x00-\x1f\x80-\uFFFF]/g,function(s) {
+ return '\\u' + $tw.utils.pad(s.charCodeAt(0).toString(16).toUpperCase(),4);
+ }); // non-ASCII characters
+};
+
+/*
+Escape the RegExp special characters with a preceding backslash
+*/
+exports.escapeRegExp = function(s) {
+ return s.replace(/[\-\/\\\^\$\*\+\?\.\(\)\|\[\]\{\}]/g, '\\$&');
+};
+
+// Checks whether a link target is external, i.e. not a tiddler title
+exports.isLinkExternal = function(to) {
+ var externalRegExp = /^(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\s<>{}\[\]`|"\\^]+(?:\/|\b)/i;
+ return externalRegExp.test(to);
+};
+
+exports.nextTick = function(fn) {
+/*global window: false */
+ if(typeof process === "undefined") {
+ // Apparently it would be faster to use postMessage - http://dbaron.org/log/20100309-faster-timeouts
+ window.setTimeout(fn,4);
+ } else {
+ process.nextTick(fn);
+ }
+};
+
+/*
+Convert a hyphenated CSS property name into a camel case one
+*/
+exports.unHyphenateCss = function(propName) {
+ return propName.replace(/-([a-z])/gi, function(match0,match1) {
+ return match1.toUpperCase();
+ });
+};
+
+/*
+Convert a camelcase CSS property name into a dashed one ("backgroundColor" --> "background-color")
+*/
+exports.hyphenateCss = function(propName) {
+ return propName.replace(/([A-Z])/g, function(match0,match1) {
+ return "-" + match1.toLowerCase();
+ });
+};
+
+/*
+Parse a text reference of one of these forms:
+* title
+* !!field
+* title!!field
+* title##index
+* etc
+Returns an object with the following fields, all optional:
+* title: tiddler title
+* field: tiddler field name
+* index: JSON property index
+*/
+exports.parseTextReference = function(textRef) {
+ // Separate out the title, field name and/or JSON indices
+ var reTextRef = /(?:(.*?)!!(.+))|(?:(.*?)##(.+))|(.*)/mg,
+ match = reTextRef.exec(textRef),
+ result = {};
+ if(match && reTextRef.lastIndex === textRef.length) {
+ // Return the parts
+ if(match[1]) {
+ result.title = match[1];
+ }
+ if(match[2]) {
+ result.field = match[2];
+ }
+ if(match[3]) {
+ result.title = match[3];
+ }
+ if(match[4]) {
+ result.index = match[4];
+ }
+ if(match[5]) {
+ result.title = match[5];
+ }
+ } else {
+ // If we couldn't parse it
+ result.title = textRef
+ }
+ return result;
+};
+
+/*
+Checks whether a string is a valid fieldname
+*/
+exports.isValidFieldName = function(name) {
+ if(!name || typeof name !== "string") {
+ return false;
+ }
+ name = name.toLowerCase().trim();
+ var fieldValidatorRegEx = /^[a-z0-9\-\._]+$/mg;
+ return fieldValidatorRegEx.test(name);
+};
+
+/*
+Extract the version number from the meta tag or from the boot file
+*/
+
+// Browser version
+exports.extractVersionInfo = function() {
+ if($tw.packageInfo) {
+ return $tw.packageInfo.version;
+ } else {
+ var metatags = document.getElementsByTagName("meta");
+ for(var t=0; t<metatags.length; t++) {
+ var m = metatags[t];
+ if(m.name === "tiddlywiki-version") {
+ return m.content;
+ }
+ }
+ }
+ return null;
+};
+
+/*
+Get the animation duration in ms
+*/
+exports.getAnimationDuration = function() {
+ return parseInt($tw.wiki.getTiddlerText("$:/config/AnimationDuration","400"),10) || 0;
+};
+
+/*
+Hash a string to a number
+Derived from http://stackoverflow.com/a/15710692
+*/
+exports.hashString = function(str) {
+ return str.split("").reduce(function(a,b) {
+ a = ((a << 5) - a) + b.charCodeAt(0);
+ return a & a;
+ },0);
+};
+
+/*
+Decode a base64 string
+*/
+exports.base64Decode = function(string64) {
+ return base64utf8.base64.decode.call(base64utf8,string64);
+};
+
+/*
+Encode a string to base64
+*/
+exports.base64Encode = function(string64) {
+ return base64utf8.base64.encode.call(base64utf8,string64);
+};
+
+/*
+Convert a hashmap into a tiddler dictionary format sequence of name:value pairs
+*/
+exports.makeTiddlerDictionary = function(data) {
+ var output = [];
+ for(var name in data) {
+ output.push(name + ": " + data[name]);
+ }
+ return output.join("\n");
+};
+
+/*
+High resolution microsecond timer for profiling
+*/
+exports.timer = function(base) {
+ var m;
+ if($tw.node) {
+ var r = process.hrtime();
+ m = r[0] * 1e3 + (r[1] / 1e6);
+ } else if(window.performance) {
+ m = performance.now();
+ } else {
+ m = Date.now();
+ }
+ if(typeof base !== "undefined") {
+ m = m - base;
+ }
+ return m;
+};
+
+/*
+Convert text and content type to a data URI
+*/
+exports.makeDataUri = function(text,type,_canonical_uri) {
+ type = type || "text/vnd.tiddlywiki";
+ var typeInfo = $tw.config.contentTypeInfo[type] || $tw.config.contentTypeInfo["text/plain"],
+ isBase64 = typeInfo.encoding === "base64",
+ parts = [];
+ if(_canonical_uri) {
+ parts.push(_canonical_uri);
+ } else {
+ parts.push("data:");
+ parts.push(type);
+ parts.push(isBase64 ? ";base64" : "");
+ parts.push(",");
+ parts.push(isBase64 ? text : encodeURIComponent(text));
+ }
+ return parts.join("");
+};
+
+/*
+Useful for finding out the fully escaped CSS selector equivalent to a given tag. For example:
+
+$tw.utils.tagToCssSelector("$:/tags/Stylesheet") --> tc-tagged-\%24\%3A\%2Ftags\%2FStylesheet
+*/
+exports.tagToCssSelector = function(tagName) {
+ return "tc-tagged-" + encodeURIComponent(tagName).replace(/[!"#$%&'()*+,\-./:;<=>?@[\\\]^`{\|}~,]/mg,function(c) {
+ return "\\" + c;
+ });
+};
+
+/*
+IE does not have sign function
+*/
+exports.sign = Math.sign || function(x) {
+ x = +x; // convert to a number
+ if (x === 0 || isNaN(x)) {
+ return x;
+ }
+ return x > 0 ? 1 : -1;
+};
+
+/*
+IE does not have an endsWith function
+*/
+exports.strEndsWith = function(str,ending,position) {
+ if(str.endsWith) {
+ return str.endsWith(ending,position);
+ } else {
+ if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > str.length) {
+ position = str.length;
+ }
+ position -= ending.length;
+ var lastIndex = str.indexOf(ending, position);
+ return lastIndex !== -1 && lastIndex === position;
+ }
+};
+
+/*
+Return system information useful for debugging
+*/
+exports.getSystemInfo = function(str,ending,position) {
+ var results = [],
+ save = function(desc,value) {
+ results.push(desc + ": " + value);
+ };
+ if($tw.browser) {
+ save("User Agent",navigator.userAgent);
+ save("Online Status",window.navigator.onLine);
+ }
+ if($tw.node) {
+ save("Node Version",process.version);
+ }
+ return results.join("\n");
+};
+
+exports.parseNumber = function(str) {
+ return parseFloat(str) || 0;
+};
+
+exports.parseInt = function(str) {
+ return parseInt(str,10) || 0;
+};
+
+exports.stringifyNumber = function(num) {
+ return num + "";
+};
+
+})();
+
+/*\
+title: $:/core/modules/widgets/action-createtiddler.js
+type: application/javascript
+module-type: widget
+
+Action widget to create a new tiddler with a unique name and specified fields.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw:false, require:false, exports:false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var CreateTiddlerWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+CreateTiddlerWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+CreateTiddlerWidget.prototype.render = function(parent,nextSibling) {
+ this.computeAttributes();
+ this.execute();
+};
+
+/*
+Compute the internal state of the widget
+*/
+CreateTiddlerWidget.prototype.execute = function() {
+ this.actionBaseTitle = this.getAttribute("$basetitle");
+ this.hasBase = !!this.actionBaseTitle;
+ this.actionSaveTitle = this.getAttribute("$savetitle");
+ this.actionSaveDraftTitle = this.getAttribute("$savedrafttitle");
+ this.actionTimestamp = this.getAttribute("$timestamp","yes") === "yes";
+ //Following params are new since 5.1.22
+ this.actionTemplate = this.getAttribute("$template");
+ this.useTemplate = !!this.actionTemplate;
+ this.actionOverwrite = this.getAttribute("$overwrite","no");
+
+};
+
+/*
+Refresh the widget by ensuring our attributes are up to date
+*/
+CreateTiddlerWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if($tw.utils.count(changedAttributes) > 0) {
+ this.refreshSelf();
+ return true;
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+
+/*
+Invoke the action associated with this widget
+*/
+CreateTiddlerWidget.prototype.invokeAction = function(triggeringWidget,event) {
+ var title = this.wiki.getTiddlerText("$:/language/DefaultNewTiddlerTitle"), // Get the initial new-tiddler title
+ fields = {},
+ creationFields,
+ modificationFields;
+ $tw.utils.each(this.attributes,function(attribute,name) {
+ if(name.charAt(0) !== "$") {
+ fields[name] = attribute;
+ }
+ });
+ if(this.actionTimestamp) {
+ creationFields = this.wiki.getCreationFields();
+ modificationFields = this.wiki.getModificationFields();
+ }
+ if(this.hasBase && this.actionOverwrite === "no") {
+ title = this.wiki.generateNewTitle(this.actionBaseTitle);
+ } else if (this.hasBase && this.actionOverwrite === "yes") {
+ title = this.actionBaseTitle
+ }
+ // NO $basetitle BUT $template parameter is available
+ // the title MUST be unique, otherwise the template would be overwritten
+ if (!this.hasBase && this.useTemplate) {
+ title = this.wiki.generateNewTitle(this.actionTemplate);
+ } else if (!this.hasBase && !this.useTemplate) {
+ // If NO $basetitle AND NO $template use initial title
+ // DON'T overwrite any stuff
+ title = this.wiki.generateNewTitle(title);
+ }
+ var templateTiddler = this.wiki.getTiddler(this.actionTemplate) || {};
+ var tiddler = this.wiki.addTiddler(new $tw.Tiddler(templateTiddler.fields,creationFields,fields,modificationFields,{title: title}));
+ if(this.actionSaveTitle) {
+ this.wiki.setTextReference(this.actionSaveTitle,title,this.getVariable("currentTiddler"));
+ }
+ if(this.actionSaveDraftTitle) {
+ this.wiki.setTextReference(this.actionSaveDraftTitle,this.wiki.generateDraftTitle(title),this.getVariable("currentTiddler"));
+ }
+ return true; // Action was invoked
+};
+
+exports["action-createtiddler"] = CreateTiddlerWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/action-deletefield.js
+type: application/javascript
+module-type: widget
+
+Action widget to delete fields of a tiddler.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var DeleteFieldWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+DeleteFieldWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+DeleteFieldWidget.prototype.render = function(parent,nextSibling) {
+ this.computeAttributes();
+ this.execute();
+};
+
+/*
+Compute the internal state of the widget
+*/
+DeleteFieldWidget.prototype.execute = function() {
+ this.actionTiddler = this.getAttribute("$tiddler",this.getVariable("currentTiddler"));
+ this.actionField = this.getAttribute("$field");
+};
+
+/*
+Refresh the widget by ensuring our attributes are up to date
+*/
+DeleteFieldWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes["$tiddler"]) {
+ this.refreshSelf();
+ return true;
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+
+/*
+Invoke the action associated with this widget
+*/
+DeleteFieldWidget.prototype.invokeAction = function(triggeringWidget,event) {
+ var self = this,
+ tiddler = this.wiki.getTiddler(self.actionTiddler),
+ removeFields = {},
+ hasChanged = false;
+ if(this.actionField && tiddler) {
+ removeFields[this.actionField] = undefined;
+ if(this.actionField in tiddler.fields) {
+ hasChanged = true;
+ }
+ }
+ if(tiddler) {
+ $tw.utils.each(this.attributes,function(attribute,name) {
+ if(name.charAt(0) !== "$" && name !== "title") {
+ removeFields[name] = undefined;
+ hasChanged = true;
+ }
+ });
+ if(hasChanged) {
+ this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),tiddler,removeFields,this.wiki.getModificationFields()));
+ }
+ }
+ return true; // Action was invoked
+};
+
+exports["action-deletefield"] = DeleteFieldWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/action-deletetiddler.js
+type: application/javascript
+module-type: widget
+
+Action widget to delete a tiddler.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var DeleteTiddlerWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+DeleteTiddlerWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+DeleteTiddlerWidget.prototype.render = function(parent,nextSibling) {
+ this.computeAttributes();
+ this.execute();
+};
+
+/*
+Compute the internal state of the widget
+*/
+DeleteTiddlerWidget.prototype.execute = function() {
+ this.actionFilter = this.getAttribute("$filter");
+ this.actionTiddler = this.getAttribute("$tiddler");
+};
+
+/*
+Refresh the widget by ensuring our attributes are up to date
+*/
+DeleteTiddlerWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes["$filter"] || changedAttributes["$tiddler"]) {
+ this.refreshSelf();
+ return true;
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+
+/*
+Invoke the action associated with this widget
+*/
+DeleteTiddlerWidget.prototype.invokeAction = function(triggeringWidget,event) {
+ var tiddlers = [];
+ if(this.actionFilter) {
+ tiddlers = this.wiki.filterTiddlers(this.actionFilter,this);
+ }
+ if(this.actionTiddler) {
+ tiddlers.push(this.actionTiddler);
+ }
+ for(var t=0; t<tiddlers.length; t++) {
+ this.wiki.deleteTiddler(tiddlers[t]);
+ }
+ return true; // Action was invoked
+};
+
+exports["action-deletetiddler"] = DeleteTiddlerWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/action-listops.js
+type: application/javascript
+module-type: widget
+
+Action widget to apply list operations to any tiddler field (defaults to the 'list' field of the current tiddler)
+
+\*/
+(function() {
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+var ActionListopsWidget = function(parseTreeNode, options) {
+ this.initialise(parseTreeNode, options);
+};
+/**
+ * Inherit from the base widget class
+ */
+ActionListopsWidget.prototype = new Widget();
+/**
+ * Render this widget into the DOM
+ */
+ActionListopsWidget.prototype.render = function(parent, nextSibling) {
+ this.computeAttributes();
+ this.execute();
+};
+/**
+ * Compute the internal state of the widget
+ */
+ActionListopsWidget.prototype.execute = function() {
+ // Get our parameters
+ this.target = this.getAttribute("$tiddler", this.getVariable(
+ "currentTiddler"));
+ this.filter = this.getAttribute("$filter");
+ this.subfilter = this.getAttribute("$subfilter");
+ this.listField = this.getAttribute("$field", "list");
+ this.listIndex = this.getAttribute("$index");
+ this.filtertags = this.getAttribute("$tags");
+};
+/**
+ * Refresh the widget by ensuring our attributes are up to date
+ */
+ActionListopsWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.$tiddler || changedAttributes.$filter ||
+ changedAttributes.$subfilter || changedAttributes.$field ||
+ changedAttributes.$index || changedAttributes.$tags) {
+ this.refreshSelf();
+ return true;
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+/**
+ * Invoke the action associated with this widget
+ */
+ActionListopsWidget.prototype.invokeAction = function(triggeringWidget,
+ event) {
+ //Apply the specified filters to the lists
+ var field = this.listField,
+ index,
+ type = "!!",
+ list = this.listField;
+ if(this.listIndex) {
+ field = undefined;
+ index = this.listIndex;
+ type = "##";
+ list = this.listIndex;
+ }
+ if(this.filter) {
+ this.wiki.setText(this.target, field, index, $tw.utils.stringifyList(
+ this.wiki
+ .filterTiddlers(this.filter, this)));
+ }
+ if(this.subfilter) {
+ var subfilter = "[list[" + this.target + type + list + "]] " + this.subfilter;
+ this.wiki.setText(this.target, field, index, $tw.utils.stringifyList(
+ this.wiki
+ .filterTiddlers(subfilter, this)));
+ }
+ if(this.filtertags) {
+ var tiddler = this.wiki.getTiddler(this.target),
+ oldtags = tiddler ? (tiddler.fields.tags || []).slice(0) : [],
+ tagfilter = "[list[" + this.target + "!!tags]] " + this.filtertags,
+ newtags = this.wiki.filterTiddlers(tagfilter,this);
+ if($tw.utils.stringifyList(oldtags.sort()) !== $tw.utils.stringifyList(newtags.sort())) {
+ this.wiki.setText(this.target,"tags",undefined,$tw.utils.stringifyList(newtags));
+ }
+ }
+ return true; // Action was invoked
+};
+
+exports["action-listops"] = ActionListopsWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/action-navigate.js
+type: application/javascript
+module-type: widget
+
+Action widget to navigate to a tiddler
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var NavigateWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+NavigateWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+NavigateWidget.prototype.render = function(parent,nextSibling) {
+ this.computeAttributes();
+ this.execute();
+};
+
+/*
+Compute the internal state of the widget
+*/
+NavigateWidget.prototype.execute = function() {
+ this.actionTo = this.getAttribute("$to");
+ this.actionScroll = this.getAttribute("$scroll");
+};
+
+/*
+Refresh the widget by ensuring our attributes are up to date
+*/
+NavigateWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes["$to"] || changedAttributes["$scroll"]) {
+ this.refreshSelf();
+ return true;
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+
+/*
+Invoke the action associated with this widget
+*/
+NavigateWidget.prototype.invokeAction = function(triggeringWidget,event) {
+ event = event || {};
+ var bounds = triggeringWidget && triggeringWidget.getBoundingClientRect && triggeringWidget.getBoundingClientRect(),
+ suppressNavigation = event.metaKey || event.ctrlKey || (event.button === 1);
+ if(this.actionScroll === "yes") {
+ suppressNavigation = false;
+ } else if(this.actionScroll === "no") {
+ suppressNavigation = true;
+ }
+ this.dispatchEvent({
+ type: "tm-navigate",
+ navigateTo: this.actionTo === undefined ? this.getVariable("currentTiddler") : this.actionTo,
+ navigateFromTitle: this.getVariable("storyTiddler"),
+ navigateFromNode: triggeringWidget,
+ navigateFromClientRect: bounds && { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height
+ },
+ navigateSuppressNavigation: suppressNavigation
+ });
+ return true; // Action was invoked
+};
+
+exports["action-navigate"] = NavigateWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/action-popup.js
+type: application/javascript
+module-type: widget
+
+Action widget to trigger a popup.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var ActionPopupWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+ActionPopupWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+ActionPopupWidget.prototype.render = function(parent,nextSibling) {
+ this.computeAttributes();
+ this.execute();
+};
+
+/*
+Compute the internal state of the widget
+*/
+ActionPopupWidget.prototype.execute = function() {
+ this.actionState = this.getAttribute("$state");
+ this.actionCoords = this.getAttribute("$coords");
+};
+
+/*
+Refresh the widget by ensuring our attributes are up to date
+*/
+ActionPopupWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes["$state"] || changedAttributes["$coords"]) {
+ this.refreshSelf();
+ return true;
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+
+/*
+Invoke the action associated with this widget
+*/
+ActionPopupWidget.prototype.invokeAction = function(triggeringWidget,event) {
+ // Trigger the popup
+ var popupLocationRegExp = /^\((-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+)\)$/,
+ match = popupLocationRegExp.exec(this.actionCoords);
+ if(match) {
+ $tw.popup.triggerPopup({
+ domNode: null,
+ domNodeRect: {
+ left: parseFloat(match[1]),
+ top: parseFloat(match[2]),
+ width: parseFloat(match[3]),
+ height: parseFloat(match[4])
+ },
+ title: this.actionState,
+ wiki: this.wiki
+ });
+ }
+ return true; // Action was invoked
+};
+
+exports["action-popup"] = ActionPopupWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/action-sendmessage.js
+type: application/javascript
+module-type: widget
+
+Action widget to send a message
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var SendMessageWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+SendMessageWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+SendMessageWidget.prototype.render = function(parent,nextSibling) {
+ this.computeAttributes();
+ this.execute();
+};
+
+/*
+Compute the internal state of the widget
+*/
+SendMessageWidget.prototype.execute = function() {
+ this.actionMessage = this.getAttribute("$message");
+ this.actionParam = this.getAttribute("$param");
+ this.actionName = this.getAttribute("$name");
+ this.actionValue = this.getAttribute("$value","");
+};
+
+/*
+Refresh the widget by ensuring our attributes are up to date
+*/
+SendMessageWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(Object.keys(changedAttributes).length) {
+ this.refreshSelf();
+ return true;
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+
+/*
+Invoke the action associated with this widget
+*/
+SendMessageWidget.prototype.invokeAction = function(triggeringWidget,event) {
+ // Get the string parameter
+ var param = this.actionParam;
+ // Assemble the attributes as a hashmap
+ var paramObject = Object.create(null);
+ var count = 0;
+ $tw.utils.each(this.attributes,function(attribute,name) {
+ if(name.charAt(0) !== "$") {
+ paramObject[name] = attribute;
+ count++;
+ }
+ });
+ // Add name/value pair if present
+ if(this.actionName) {
+ paramObject[this.actionName] = this.actionValue;
+ }
+ // Dispatch the message
+ this.dispatchEvent({
+ type: this.actionMessage,
+ param: param,
+ paramObject: paramObject,
+ tiddlerTitle: this.getVariable("currentTiddler"),
+ navigateFromTitle: this.getVariable("storyTiddler"),
+ event: event
+ });
+ return true; // Action was invoked
+};
+
+exports["action-sendmessage"] = SendMessageWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/action-setfield.js
+type: application/javascript
+module-type: widget
+
+Action widget to set a single field or index on a tiddler.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var SetFieldWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+SetFieldWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+SetFieldWidget.prototype.render = function(parent,nextSibling) {
+ this.computeAttributes();
+ this.execute();
+};
+
+/*
+Compute the internal state of the widget
+*/
+SetFieldWidget.prototype.execute = function() {
+ this.actionTiddler = this.getAttribute("$tiddler",this.getVariable("currentTiddler"));
+ this.actionField = this.getAttribute("$field");
+ this.actionIndex = this.getAttribute("$index");
+ this.actionValue = this.getAttribute("$value");
+ this.actionTimestamp = this.getAttribute("$timestamp","yes") === "yes";
+};
+
+/*
+Refresh the widget by ensuring our attributes are up to date
+*/
+SetFieldWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes["$tiddler"] || changedAttributes["$field"] || changedAttributes["$index"] || changedAttributes["$value"]) {
+ this.refreshSelf();
+ return true;
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+
+/*
+Invoke the action associated with this widget
+*/
+SetFieldWidget.prototype.invokeAction = function(triggeringWidget,event) {
+ var self = this,
+ options = {};
+ options.suppressTimestamp = !this.actionTimestamp;
+ if((typeof this.actionField == "string") || (typeof this.actionIndex == "string") || (typeof this.actionValue == "string")) {
+ this.wiki.setText(this.actionTiddler,this.actionField,this.actionIndex,this.actionValue,options);
+ }
+ $tw.utils.each(this.attributes,function(attribute,name) {
+ if(name.charAt(0) !== "$") {
+ self.wiki.setText(self.actionTiddler,name,undefined,attribute,options);
+ }
+ });
+ return true; // Action was invoked
+};
+
+exports["action-setfield"] = SetFieldWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/browse.js
+type: application/javascript
+module-type: widget
+
+Browse widget for browsing for files to import
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var BrowseWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+BrowseWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+BrowseWidget.prototype.render = function(parent,nextSibling) {
+ var self = this;
+ // Remember parent
+ this.parentDomNode = parent;
+ // Compute attributes and execute state
+ this.computeAttributes();
+ this.execute();
+ // Create element
+ var domNode = this.document.createElement("input");
+ domNode.setAttribute("type","file");
+ if(this.browseMultiple) {
+ domNode.setAttribute("multiple","multiple");
+ }
+ if(this.tooltip) {
+ domNode.setAttribute("title",this.tooltip);
+ }
+ // Nw.js supports "nwsaveas" to force a "save as" dialogue that allows a new or existing file to be selected
+ if(this.nwsaveas) {
+ domNode.setAttribute("nwsaveas",this.nwsaveas);
+ }
+ // Nw.js supports "webkitdirectory" and "nwdirectory" to allow a directory to be selected
+ if(this.webkitdirectory) {
+ domNode.setAttribute("webkitdirectory",this.webkitdirectory);
+ }
+ if(this.nwdirectory) {
+ domNode.setAttribute("nwdirectory",this.nwdirectory);
+ }
+ // Add a click event handler
+ domNode.addEventListener("change",function (event) {
+ if(self.message) {
+ self.dispatchEvent({type: self.message, param: self.param, files: event.target.files});
+ } else {
+ self.wiki.readFiles(event.target.files,{
+ callback: function(tiddlerFieldsArray) {
+ self.dispatchEvent({type: "tm-import-tiddlers", param: JSON.stringify(tiddlerFieldsArray)});
+ },
+ deserializer: self.deserializer
+ });
+ }
+ return false;
+ },false);
+ // Insert element
+ parent.insertBefore(domNode,nextSibling);
+ this.renderChildren(domNode,null);
+ this.domNodes.push(domNode);
+};
+
+/*
+Compute the internal state of the widget
+*/
+BrowseWidget.prototype.execute = function() {
+ this.browseMultiple = this.getAttribute("multiple");
+ this.deserializer = this.getAttribute("deserializer");
+ this.message = this.getAttribute("message");
+ this.param = this.getAttribute("param");
+ this.tooltip = this.getAttribute("tooltip");
+ this.nwsaveas = this.getAttribute("nwsaveas");
+ this.webkitdirectory = this.getAttribute("webkitdirectory");
+ this.nwdirectory = this.getAttribute("nwdirectory");
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+BrowseWidget.prototype.refresh = function(changedTiddlers) {
+ return false;
+};
+
+exports.browse = BrowseWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/button.js
+type: application/javascript
+module-type: widget
+
+Button widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var ButtonWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+ButtonWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+ButtonWidget.prototype.render = function(parent,nextSibling) {
+ var self = this;
+ // Remember parent
+ this.parentDomNode = parent;
+ // Compute attributes and execute state
+ this.computeAttributes();
+ this.execute();
+ // Create element
+ var tag = "button";
+ if(this.buttonTag && $tw.config.htmlUnsafeElements.indexOf(this.buttonTag) === -1) {
+ tag = this.buttonTag;
+ }
+ var domNode = this.document.createElement(tag);
+ // Assign classes
+ var classes = this["class"].split(" ") || [],
+ isPoppedUp = (this.popup || this.popupTitle) && this.isPoppedUp();
+ if(this.selectedClass) {
+ if((this.set || this.setTitle) && this.setTo && this.isSelected()) {
+ $tw.utils.pushTop(classes,this.selectedClass.split(" "));
+ }
+ if(isPoppedUp) {
+ $tw.utils.pushTop(classes,this.selectedClass.split(" "));
+ }
+ }
+ if(isPoppedUp) {
+ $tw.utils.pushTop(classes,"tc-popup-handle");
+ }
+ domNode.className = classes.join(" ");
+ // Assign other attributes
+ if(this.style) {
+ domNode.setAttribute("style",this.style);
+ }
+ if(this.tooltip) {
+ domNode.setAttribute("title",this.tooltip);
+ }
+ if(this["aria-label"]) {
+ domNode.setAttribute("aria-label",this["aria-label"]);
+ }
+ // Set the tabindex
+ if(this.tabIndex) {
+ domNode.setAttribute("tabindex",this.tabIndex);
+ }
+ // Add a click event handler
+ domNode.addEventListener("click",function (event) {
+ var handled = false;
+ if(self.invokeActions(self,event)) {
+ handled = true;
+ }
+ if(self.to) {
+ self.navigateTo(event);
+ handled = true;
+ }
+ if(self.message) {
+ self.dispatchMessage(event);
+ handled = true;
+ }
+ if(self.popup || self.popupTitle) {
+ self.triggerPopup(event);
+ handled = true;
+ }
+ if(self.set || self.setTitle) {
+ self.setTiddler();
+ handled = true;
+ }
+ if(self.actions) {
+ self.invokeActionString(self.actions,self,event);
+ }
+ if(handled) {
+ event.preventDefault();
+ event.stopPropagation();
+ }
+ return handled;
+ },false);
+ // Make it draggable if required
+ if(this.dragTiddler || this.dragFilter) {
+ $tw.utils.makeDraggable({
+ domNode: domNode,
+ dragTiddlerFn: function() {return self.dragTiddler;},
+ dragFilterFn: function() {return self.dragFilter;},
+ widget: this
+ });
+ }
+ // Insert element
+ parent.insertBefore(domNode,nextSibling);
+ this.renderChildren(domNode,null);
+ this.domNodes.push(domNode);
+};
+
+/*
+We don't allow actions to propagate because we trigger actions ourselves
+*/
+ButtonWidget.prototype.allowActionPropagation = function() {
+ return false;
+};
+
+ButtonWidget.prototype.getBoundingClientRect = function() {
+ return this.domNodes[0].getBoundingClientRect();
+};
+
+ButtonWidget.prototype.isSelected = function() {
+ return this.setTitle ? (this.setField ? this.wiki.getTiddler(this.setTitle).getFieldString(this.setField) === this.setTo :
+ (this.setIndex ? this.wiki.extractTiddlerDataItem(this.setTitle,this.setIndex) === this.setTo :
+ this.wiki.getTiddlerText(this.setTitle))) || this.defaultSetValue || this.getVariable("currentTiddler") :
+ this.wiki.getTextReference(this.set,this.defaultSetValue,this.getVariable("currentTiddler")) === this.setTo;
+};
+
+ButtonWidget.prototype.isPoppedUp = function() {
+ var tiddler = this.popupTitle ? this.wiki.getTiddler(this.popupTitle) : this.wiki.getTiddler(this.popup);
+ var result = tiddler && tiddler.fields.text ? $tw.popup.readPopupState(tiddler.fields.text) : false;
+ return result;
+};
+
+ButtonWidget.prototype.navigateTo = function(event) {
+ var bounds = this.getBoundingClientRect();
+ this.dispatchEvent({
+ type: "tm-navigate",
+ navigateTo: this.to,
+ navigateFromTitle: this.getVariable("storyTiddler"),
+ navigateFromNode: this,
+ navigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height
+ },
+ navigateSuppressNavigation: event.metaKey || event.ctrlKey || (event.button === 1),
+ event: event
+ });
+};
+
+ButtonWidget.prototype.dispatchMessage = function(event) {
+ this.dispatchEvent({type: this.message, param: this.param, tiddlerTitle: this.getVariable("currentTiddler"), event: event});
+};
+
+ButtonWidget.prototype.triggerPopup = function(event) {
+ if(this.popupTitle) {
+ $tw.popup.triggerPopup({
+ domNode: this.domNodes[0],
+ title: this.popupTitle,
+ wiki: this.wiki,
+ noStateReference: true
+ });
+ } else {
+ $tw.popup.triggerPopup({
+ domNode: this.domNodes[0],
+ title: this.popup,
+ wiki: this.wiki
+ });
+ }
+};
+
+ButtonWidget.prototype.setTiddler = function() {
+ if(this.setTitle) {
+ this.setField ? this.wiki.setText(this.setTitle,this.setField,undefined,this.setTo) :
+ (this.setIndex ? this.wiki.setText(this.setTitle,undefined,this.setIndex,this.setTo) :
+ this.wiki.setText(this.setTitle,"text",undefined,this.setTo));
+ } else {
+ this.wiki.setTextReference(this.set,this.setTo,this.getVariable("currentTiddler"));
+ }
+};
+
+/*
+Compute the internal state of the widget
+*/
+ButtonWidget.prototype.execute = function() {
+ // Get attributes
+ this.actions = this.getAttribute("actions");
+ this.to = this.getAttribute("to");
+ this.message = this.getAttribute("message");
+ this.param = this.getAttribute("param");
+ this.set = this.getAttribute("set");
+ this.setTo = this.getAttribute("setTo");
+ this.popup = this.getAttribute("popup");
+ this.hover = this.getAttribute("hover");
+ this["class"] = this.getAttribute("class","");
+ this["aria-label"] = this.getAttribute("aria-label");
+ this.tooltip = this.getAttribute("tooltip");
+ this.style = this.getAttribute("style");
+ this.selectedClass = this.getAttribute("selectedClass");
+ this.defaultSetValue = this.getAttribute("default","");
+ this.buttonTag = this.getAttribute("tag");
+ this.dragTiddler = this.getAttribute("dragTiddler");
+ this.dragFilter = this.getAttribute("dragFilter");
+ this.setTitle = this.getAttribute("setTitle");
+ this.setField = this.getAttribute("setField");
+ this.setIndex = this.getAttribute("setIndex");
+ this.popupTitle = this.getAttribute("popupTitle");
+ this.tabIndex = this.getAttribute("tabindex");
+ // Make child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+ButtonWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.actions || changedAttributes.to || changedAttributes.message || changedAttributes.param || changedAttributes.set || changedAttributes.setTo || changedAttributes.popup || changedAttributes.hover || changedAttributes["class"] || changedAttributes.selectedClass || changedAttributes.style || changedAttributes.dragFilter || changedAttributes.dragTiddler || (this.set && changedTiddlers[this.set]) || (this.popup && changedTiddlers[this.popup]) || (this.popupTitle && changedTiddlers[this.popupTitle]) || changedAttributes.setTitle || changedAttributes.setField || changedAttributes.setIndex || changedAttributes.popupTitle) {
+ this.refreshSelf();
+ return true;
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+
+exports.button = ButtonWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/checkbox.js
+type: application/javascript
+module-type: widget
+
+Checkbox widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var CheckboxWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+CheckboxWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+CheckboxWidget.prototype.render = function(parent,nextSibling) {
+ // Save the parent dom node
+ this.parentDomNode = parent;
+ // Compute our attributes
+ this.computeAttributes();
+ // Execute our logic
+ this.execute();
+ // Create our elements
+ this.labelDomNode = this.document.createElement("label");
+ this.labelDomNode.setAttribute("class",this.checkboxClass);
+ this.inputDomNode = this.document.createElement("input");
+ this.inputDomNode.setAttribute("type","checkbox");
+ if(this.getValue()) {
+ this.inputDomNode.setAttribute("checked","true");
+ }
+ this.labelDomNode.appendChild(this.inputDomNode);
+ this.spanDomNode = this.document.createElement("span");
+ this.labelDomNode.appendChild(this.spanDomNode);
+ // Add a click event handler
+ $tw.utils.addEventListeners(this.inputDomNode,[
+ {name: "change", handlerObject: this, handlerMethod: "handleChangeEvent"}
+ ]);
+ // Insert the label into the DOM and render any children
+ parent.insertBefore(this.labelDomNode,nextSibling);
+ this.renderChildren(this.spanDomNode,null);
+ this.domNodes.push(this.labelDomNode);
+};
+
+CheckboxWidget.prototype.getValue = function() {
+ var tiddler = this.wiki.getTiddler(this.checkboxTitle);
+ if(tiddler) {
+ if(this.checkboxTag) {
+ if(this.checkboxInvertTag) {
+ return !tiddler.hasTag(this.checkboxTag);
+ } else {
+ return tiddler.hasTag(this.checkboxTag);
+ }
+ }
+ if(this.checkboxField) {
+ var value;
+ if($tw.utils.hop(tiddler.fields,this.checkboxField)) {
+ value = tiddler.fields[this.checkboxField] || "";
+ } else {
+ value = this.checkboxDefault || "";
+ }
+ if(value === this.checkboxChecked) {
+ return true;
+ }
+ if(value === this.checkboxUnchecked) {
+ return false;
+ }
+ }
+ if(this.checkboxIndex) {
+ var value = this.wiki.extractTiddlerDataItem(tiddler,this.checkboxIndex,this.checkboxDefault || "");
+ if(value === this.checkboxChecked) {
+ return true;
+ }
+ if(value === this.checkboxUnchecked) {
+ return false;
+ }
+ }
+ } else {
+ if(this.checkboxTag) {
+ return false;
+ }
+ if(this.checkboxField) {
+ if(this.checkboxDefault === this.checkboxChecked) {
+ return true;
+ }
+ if(this.checkboxDefault === this.checkboxUnchecked) {
+ return false;
+ }
+ }
+ }
+ return false;
+};
+
+CheckboxWidget.prototype.handleChangeEvent = function(event) {
+ var checked = this.inputDomNode.checked,
+ tiddler = this.wiki.getTiddler(this.checkboxTitle),
+ fallbackFields = {text: ""},
+ newFields = {title: this.checkboxTitle},
+ hasChanged = false,
+ tagCheck = false,
+ hasTag = tiddler && tiddler.hasTag(this.checkboxTag),
+ value = checked ? this.checkboxChecked : this.checkboxUnchecked;
+ if(this.checkboxTag && this.checkboxInvertTag === "yes") {
+ tagCheck = hasTag === checked;
+ } else {
+ tagCheck = hasTag !== checked;
+ }
+ // Set the tag if specified
+ if(this.checkboxTag && (!tiddler || tagCheck)) {
+ newFields.tags = tiddler ? (tiddler.fields.tags || []).slice(0) : [];
+ var pos = newFields.tags.indexOf(this.checkboxTag);
+ if(pos !== -1) {
+ newFields.tags.splice(pos,1);
+ }
+ if(this.checkboxInvertTag === "yes" && !checked) {
+ newFields.tags.push(this.checkboxTag);
+ } else if(this.checkboxInvertTag !== "yes" && checked) {
+ newFields.tags.push(this.checkboxTag);
+ }
+ hasChanged = true;
+ }
+ // Set the field if specified
+ if(this.checkboxField) {
+ if(!tiddler || tiddler.fields[this.checkboxField] !== value) {
+ newFields[this.checkboxField] = value;
+ hasChanged = true;
+ }
+ }
+ // Set the index if specified
+ if(this.checkboxIndex) {
+ var indexValue = this.wiki.extractTiddlerDataItem(this.checkboxTitle,this.checkboxIndex);
+ if(!tiddler || indexValue !== value) {
+ hasChanged = true;
+ }
+ }
+ if(hasChanged) {
+ if(this.checkboxIndex) {
+ this.wiki.setText(this.checkboxTitle,"",this.checkboxIndex,value);
+ } else {
+ this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),fallbackFields,tiddler,newFields,this.wiki.getModificationFields()));
+ }
+ }
+ // Trigger actions
+ if(this.checkboxActions) {
+ this.invokeActionString(this.checkboxActions,this,event);
+ }
+ if(this.checkboxCheckActions && checked) {
+ this.invokeActionString(this.checkboxCheckActions,this,event);
+ }
+ if(this.checkboxUncheckActions && !checked) {
+ this.invokeActionString(this.checkboxUncheckActions,this,event);
+ }
+};
+
+/*
+Compute the internal state of the widget
+*/
+CheckboxWidget.prototype.execute = function() {
+ // Get the parameters from the attributes
+ this.checkboxActions = this.getAttribute("actions");
+ this.checkboxCheckActions = this.getAttribute("checkactions");
+ this.checkboxUncheckActions = this.getAttribute("uncheckactions");
+ this.checkboxTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
+ this.checkboxTag = this.getAttribute("tag");
+ this.checkboxField = this.getAttribute("field");
+ this.checkboxIndex = this.getAttribute("index");
+ this.checkboxChecked = this.getAttribute("checked");
+ this.checkboxUnchecked = this.getAttribute("unchecked");
+ this.checkboxDefault = this.getAttribute("default");
+ this.checkboxClass = this.getAttribute("class","");
+ this.checkboxInvertTag = this.getAttribute("invertTag","");
+ // Make the child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+CheckboxWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.tiddler || changedAttributes.tag || changedAttributes.invertTag || changedAttributes.field || changedAttributes.index || changedAttributes.checked || changedAttributes.unchecked || changedAttributes["default"] || changedAttributes["class"]) {
+ this.refreshSelf();
+ return true;
+ } else {
+ var refreshed = false;
+ if(changedTiddlers[this.checkboxTitle]) {
+ this.inputDomNode.checked = this.getValue();
+ refreshed = true;
+ }
+ return this.refreshChildren(changedTiddlers) || refreshed;
+ }
+};
+
+exports.checkbox = CheckboxWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/codeblock.js
+type: application/javascript
+module-type: widget
+
+Code block node widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var CodeBlockWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+CodeBlockWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+CodeBlockWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ var codeNode = this.document.createElement("code"),
+ domNode = this.document.createElement("pre");
+ codeNode.appendChild(this.document.createTextNode(this.getAttribute("code")));
+ domNode.appendChild(codeNode);
+ parent.insertBefore(domNode,nextSibling);
+ this.domNodes.push(domNode);
+ if(this.postRender) {
+ this.postRender();
+ }
+};
+
+/*
+Compute the internal state of the widget
+*/
+CodeBlockWidget.prototype.execute = function() {
+ this.language = this.getAttribute("language");
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+CodeBlockWidget.prototype.refresh = function(changedTiddlers) {
+ return false;
+};
+
+exports.codeblock = CodeBlockWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/count.js
+type: application/javascript
+module-type: widget
+
+Count widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var CountWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+CountWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+CountWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ var textNode = this.document.createTextNode(this.currentCount);
+ parent.insertBefore(textNode,nextSibling);
+ this.domNodes.push(textNode);
+};
+
+/*
+Compute the internal state of the widget
+*/
+CountWidget.prototype.execute = function() {
+ // Get parameters from our attributes
+ this.filter = this.getAttribute("filter");
+ // Execute the filter
+ if(this.filter) {
+ this.currentCount = this.wiki.filterTiddlers(this.filter,this).length;
+ } else {
+ this.currentCount = "0";
+ }
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+CountWidget.prototype.refresh = function(changedTiddlers) {
+ // Re-execute the filter to get the count
+ this.computeAttributes();
+ var oldCount = this.currentCount;
+ this.execute();
+ if(this.currentCount !== oldCount) {
+ // Regenerate and rerender the widget and replace the existing DOM node
+ this.refreshSelf();
+ return true;
+ } else {
+ return false;
+ }
+
+};
+
+exports.count = CountWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/diff-text.js
+type: application/javascript
+module-type: widget
+
+Widget to display a diff between two texts
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget,
+ dmp = require("$:/core/modules/utils/diff-match-patch/diff_match_patch.js");
+
+var DiffTextWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+DiffTextWidget.prototype = new Widget();
+
+DiffTextWidget.prototype.invisibleCharacters = {
+ "\n": "↩︎\n",
+ "\r": "⇠",
+ "\t": "⇥\t"
+};
+
+/*
+Render this widget into the DOM
+*/
+DiffTextWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ // Create the diff
+ var dmpObject = new dmp.diff_match_patch(),
+ diffs = dmpObject.diff_main(this.getAttribute("source"),this.getAttribute("dest"));
+ // Apply required cleanup
+ switch(this.getAttribute("cleanup","semantic")) {
+ case "none":
+ // No cleanup
+ break;
+ case "efficiency":
+ dmpObject.diff_cleanupEfficiency(diffs);
+ break;
+ default: // case "semantic"
+ dmpObject.diff_cleanupSemantic(diffs);
+ break;
+ }
+ // Create the elements
+ var domContainer = this.document.createElement("div"),
+ domDiff = this.createDiffDom(diffs);
+ parent.insertBefore(domContainer,nextSibling);
+ // Set variables
+ this.setVariable("diff-count",diffs.reduce(function(acc,diff) {
+ if(diff[0] !== dmp.DIFF_EQUAL) {
+ acc++;
+ }
+ return acc;
+ },0).toString());
+ // Render child widgets
+ this.renderChildren(domContainer,null);
+ // Render the diff
+ domContainer.appendChild(domDiff);
+ // Save our container
+ this.domNodes.push(domContainer);
+};
+
+/*
+Create DOM elements representing a list of diffs
+*/
+DiffTextWidget.prototype.createDiffDom = function(diffs) {
+ var self = this;
+ // Create the element and assign the attributes
+ var domPre = this.document.createElement("pre"),
+ domCode = this.document.createElement("code");
+ $tw.utils.each(diffs,function(diff) {
+ var tag = diff[0] === dmp.DIFF_INSERT ? "ins" : (diff[0] === dmp.DIFF_DELETE ? "del" : "span"),
+ className = diff[0] === dmp.DIFF_INSERT ? "tc-diff-insert" : (diff[0] === dmp.DIFF_DELETE ? "tc-diff-delete" : "tc-diff-equal"),
+ dom = self.document.createElement(tag),
+ text = diff[1],
+ currPos = 0,
+ re = /([\x00-\x1F])/mg,
+ match = re.exec(text),
+ span,
+ printable;
+ dom.className = className;
+ while(match) {
+ if(currPos < match.index) {
+ dom.appendChild(self.document.createTextNode(text.slice(currPos,match.index)));
+ }
+ span = self.document.createElement("span");
+ span.className = "tc-diff-invisible";
+ printable = self.invisibleCharacters[match[0]] || ("[0x" + match[0].charCodeAt(0).toString(16) + "]");
+ span.appendChild(self.document.createTextNode(printable));
+ dom.appendChild(span);
+ currPos = match.index + match[0].length;
+ match = re.exec(text);
+ }
+ if(currPos < text.length) {
+ dom.appendChild(self.document.createTextNode(text.slice(currPos)));
+ }
+ domCode.appendChild(dom);
+ });
+ domPre.appendChild(domCode);
+ return domPre;
+};
+
+/*
+Compute the internal state of the widget
+*/
+DiffTextWidget.prototype.execute = function() {
+ // Make child widgets
+ var parseTreeNodes;
+ if(this.parseTreeNode && this.parseTreeNode.children && this.parseTreeNode.children.length > 0) {
+ parseTreeNodes = this.parseTreeNode.children;
+ } else {
+ parseTreeNodes = [{
+ type: "transclude",
+ attributes: {
+ tiddler: {type: "string", value: "$:/language/Diffs/CountMessage"}
+ }
+ }];
+ }
+ this.makeChildWidgets(parseTreeNodes);
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+DiffTextWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.source || changedAttributes.dest || changedAttributes.cleanup) {
+ this.refreshSelf();
+ return true;
+ } else {
+ return this.refreshChildren(changedTiddlers);
+ }
+};
+
+exports["diff-text"] = DiffTextWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/draggable.js
+type: application/javascript
+module-type: widget
+
+Draggable widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var DraggableWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+DraggableWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+DraggableWidget.prototype.render = function(parent,nextSibling) {
+ var self = this;
+ // Save the parent dom node
+ this.parentDomNode = parent;
+ // Compute our attributes
+ this.computeAttributes();
+ // Execute our logic
+ this.execute();
+ // Sanitise the specified tag
+ var tag = this.draggableTag;
+ if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
+ tag = "div";
+ }
+ // Create our element
+ var domNode = this.document.createElement(tag);
+ // Assign classes
+ var classes = ["tc-draggable"];
+ if(this.draggableClasses) {
+ classes.push(this.draggableClasses);
+ }
+ domNode.setAttribute("class",classes.join(" "));
+ // Add event handlers
+ $tw.utils.makeDraggable({
+ domNode: domNode,
+ dragTiddlerFn: function() {return self.getAttribute("tiddler");},
+ dragFilterFn: function() {return self.getAttribute("filter");},
+ startActions: self.startActions,
+ endActions: self.endActions,
+ widget: this
+ });
+ // Insert the link into the DOM and render any children
+ parent.insertBefore(domNode,nextSibling);
+ this.renderChildren(domNode,null);
+ this.domNodes.push(domNode);
+};
+
+/*
+Compute the internal state of the widget
+*/
+DraggableWidget.prototype.execute = function() {
+ // Pick up our attributes
+ this.draggableTag = this.getAttribute("tag","div");
+ this.draggableClasses = this.getAttribute("class");
+ this.startActions = this.getAttribute("startactions");
+ this.endActions = this.getAttribute("endactions");
+ // Make the child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+DraggableWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.tag || changedAttributes["class"]) {
+ this.refreshSelf();
+ return true;
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+
+exports.draggable = DraggableWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/droppable.js
+type: application/javascript
+module-type: widget
+
+Droppable widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var DroppableWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+DroppableWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+DroppableWidget.prototype.render = function(parent,nextSibling) {
+ var self = this;
+ // Remember parent
+ this.parentDomNode = parent;
+ // Compute attributes and execute state
+ this.computeAttributes();
+ this.execute();
+ var tag = this.parseTreeNode.isBlock ? "div" : "span";
+ if(this.droppableTag && $tw.config.htmlUnsafeElements.indexOf(this.droppableTag) === -1) {
+ tag = this.droppableTag;
+ }
+ // Create element and assign classes
+ var domNode = this.document.createElement(tag),
+ classes = (this["class"] || "").split(" ");
+ classes.push("tc-droppable");
+ domNode.className = classes.join(" ");
+ // Add event handlers
+ if(this.droppableEnable) {
+ $tw.utils.addEventListeners(domNode,[
+ {name: "dragenter", handlerObject: this, handlerMethod: "handleDragEnterEvent"},
+ {name: "dragover", handlerObject: this, handlerMethod: "handleDragOverEvent"},
+ {name: "dragleave", handlerObject: this, handlerMethod: "handleDragLeaveEvent"},
+ {name: "drop", handlerObject: this, handlerMethod: "handleDropEvent"}
+ ]);
+ }
+ // Insert element
+ parent.insertBefore(domNode,nextSibling);
+ this.renderChildren(domNode,null);
+ this.domNodes.push(domNode);
+ // Stack of outstanding enter/leave events
+ this.currentlyEntered = [];
+};
+
+DroppableWidget.prototype.enterDrag = function(event) {
+ if(this.currentlyEntered.indexOf(event.target) === -1) {
+ this.currentlyEntered.push(event.target);
+ }
+ // If we're entering for the first time we need to apply highlighting
+ $tw.utils.addClass(this.domNodes[0],"tc-dragover");
+};
+
+DroppableWidget.prototype.leaveDrag = function(event) {
+ var pos = this.currentlyEntered.indexOf(event.target);
+ if(pos !== -1) {
+ this.currentlyEntered.splice(pos,1);
+ }
+ // Remove highlighting if we're leaving externally. The hacky second condition is to resolve a problem with Firefox whereby there is an erroneous dragenter event if the node being dragged is within the dropzone
+ if(this.currentlyEntered.length === 0 || (this.currentlyEntered.length === 1 && this.currentlyEntered[0] === $tw.dragInProgress)) {
+ this.currentlyEntered = [];
+ $tw.utils.removeClass(this.domNodes[0],"tc-dragover");
+ }
+};
+
+DroppableWidget.prototype.handleDragEnterEvent = function(event) {
+ this.enterDrag(event);
+ // Tell the browser that we're ready to handle the drop
+ event.preventDefault();
+ // Tell the browser not to ripple the drag up to any parent drop handlers
+ event.stopPropagation();
+ return false;
+};
+
+DroppableWidget.prototype.handleDragOverEvent = function(event) {
+ // Check for being over a TEXTAREA or INPUT
+ if(["TEXTAREA","INPUT"].indexOf(event.target.tagName) !== -1) {
+ return false;
+ }
+ // Tell the browser that we're still interested in the drop
+ event.preventDefault();
+ // Set the drop effect
+ event.dataTransfer.dropEffect = this.droppableEffect;
+ return false;
+};
+
+DroppableWidget.prototype.handleDragLeaveEvent = function(event) {
+ this.leaveDrag(event);
+ return false;
+};
+
+DroppableWidget.prototype.handleDropEvent = function(event) {
+ var self = this;
+ this.leaveDrag(event);
+ // Check for being over a TEXTAREA or INPUT
+ if(["TEXTAREA","INPUT"].indexOf(event.target.tagName) !== -1) {
+ return false;
+ }
+ var dataTransfer = event.dataTransfer;
+ // Remove highlighting
+ $tw.utils.removeClass(this.domNodes[0],"tc-dragover");
+ // Try to import the various data types we understand
+ $tw.utils.importDataTransfer(dataTransfer,null,function(fieldsArray) {
+ fieldsArray.forEach(function(fields) {
+ self.performActions(fields.title || fields.text,event);
+ });
+ });
+ // Tell the browser that we handled the drop
+ event.preventDefault();
+ // Stop the drop ripple up to any parent handlers
+ event.stopPropagation();
+ return false;
+};
+
+DroppableWidget.prototype.performActions = function(title,event) {
+ if(this.droppableActions) {
+ var modifierKey = event.ctrlKey && ! event.shiftKey ? "ctrl" : event.shiftKey && !event.ctrlKey ? "shift" :
+ event.ctrlKey && event.shiftKey ? "ctrl-shift" : "normal" ;
+ this.invokeActionString(this.droppableActions,this,event,{actionTiddler: title, modifier: modifierKey});
+ }
+};
+
+/*
+Compute the internal state of the widget
+*/
+DroppableWidget.prototype.execute = function() {
+ this.droppableActions = this.getAttribute("actions");
+ this.droppableEffect = this.getAttribute("effect","copy");
+ this.droppableTag = this.getAttribute("tag");
+ this.droppableClass = this.getAttribute("class");
+ this.droppableEnable = (this.getAttribute("enable") || "yes") === "yes";
+ // Make child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+DroppableWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes["class"] || changedAttributes.tag || changedAttributes.enable) {
+ this.refreshSelf();
+ return true;
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+
+exports.droppable = DroppableWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/dropzone.js
+type: application/javascript
+module-type: widget
+
+Dropzone widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var DropZoneWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+DropZoneWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+DropZoneWidget.prototype.render = function(parent,nextSibling) {
+ var self = this;
+ // Remember parent
+ this.parentDomNode = parent;
+ // Compute attributes and execute state
+ this.computeAttributes();
+ this.execute();
+ // Create element
+ var domNode = this.document.createElement("div");
+ domNode.className = this.dropzoneClass || "tc-dropzone";
+ // Add event handlers
+ if(this.dropzoneEnable) {
+ $tw.utils.addEventListeners(domNode,[
+ {name: "dragenter", handlerObject: this, handlerMethod: "handleDragEnterEvent"},
+ {name: "dragover", handlerObject: this, handlerMethod: "handleDragOverEvent"},
+ {name: "dragleave", handlerObject: this, handlerMethod: "handleDragLeaveEvent"},
+ {name: "drop", handlerObject: this, handlerMethod: "handleDropEvent"},
+ {name: "paste", handlerObject: this, handlerMethod: "handlePasteEvent"},
+ {name: "dragend", handlerObject: this, handlerMethod: "handleDragEndEvent"}
+ ]);
+ }
+ domNode.addEventListener("click",function (event) {
+ },false);
+ // Insert element
+ parent.insertBefore(domNode,nextSibling);
+ this.renderChildren(domNode,null);
+ this.domNodes.push(domNode);
+ // Stack of outstanding enter/leave events
+ this.currentlyEntered = [];
+};
+
+DropZoneWidget.prototype.enterDrag = function(event) {
+ if(this.currentlyEntered.indexOf(event.target) === -1) {
+ this.currentlyEntered.push(event.target);
+ }
+ // If we're entering for the first time we need to apply highlighting
+ $tw.utils.addClass(this.domNodes[0],"tc-dragover");
+};
+
+DropZoneWidget.prototype.leaveDrag = function(event) {
+ var pos = this.currentlyEntered.indexOf(event.target);
+ if(pos !== -1) {
+ this.currentlyEntered.splice(pos,1);
+ }
+ // Remove highlighting if we're leaving externally
+ if(this.currentlyEntered.length === 0) {
+ $tw.utils.removeClass(this.domNodes[0],"tc-dragover");
+ }
+};
+
+DropZoneWidget.prototype.handleDragEnterEvent = function(event) {
+ // Check for this window being the source of the drag
+ if($tw.dragInProgress) {
+ return false;
+ }
+ this.enterDrag(event);
+ // Tell the browser that we're ready to handle the drop
+ event.preventDefault();
+ // Tell the browser not to ripple the drag up to any parent drop handlers
+ event.stopPropagation();
+};
+
+DropZoneWidget.prototype.handleDragOverEvent = function(event) {
+ // Check for being over a TEXTAREA or INPUT
+ if(["TEXTAREA","INPUT"].indexOf(event.target.tagName) !== -1) {
+ return false;
+ }
+ // Check for this window being the source of the drag
+ if($tw.dragInProgress) {
+ return false;
+ }
+ // Tell the browser that we're still interested in the drop
+ event.preventDefault();
+ event.dataTransfer.dropEffect = "copy"; // Explicitly show this is a copy
+};
+
+DropZoneWidget.prototype.handleDragLeaveEvent = function(event) {
+ this.leaveDrag(event);
+};
+
+DropZoneWidget.prototype.handleDragEndEvent = function(event) {
+ $tw.utils.removeClass(this.domNodes[0],"tc-dragover");
+};
+
+DropZoneWidget.prototype.handleDropEvent = function(event) {
+ var self = this,
+ readFileCallback = function(tiddlerFieldsArray) {
+ self.dispatchEvent({type: "tm-import-tiddlers", param: JSON.stringify(tiddlerFieldsArray)});
+ };
+ this.leaveDrag(event);
+ // Check for being over a TEXTAREA or INPUT
+ if(["TEXTAREA","INPUT"].indexOf(event.target.tagName) !== -1) {
+ return false;
+ }
+ // Check for this window being the source of the drag
+ if($tw.dragInProgress) {
+ return false;
+ }
+ var self = this,
+ dataTransfer = event.dataTransfer;
+ // Remove highlighting
+ $tw.utils.removeClass(this.domNodes[0],"tc-dragover");
+ // Import any files in the drop
+ var numFiles = 0;
+ if(dataTransfer.files) {
+ numFiles = this.wiki.readFiles(dataTransfer.files,{
+ callback: readFileCallback,
+ deserializer: this.dropzoneDeserializer
+ });
+ }
+ // Try to import the various data types we understand
+ if(numFiles === 0) {
+ $tw.utils.importDataTransfer(dataTransfer,this.wiki.generateNewTitle("Untitled"),readFileCallback);
+ }
+ // Tell the browser that we handled the drop
+ event.preventDefault();
+ // Stop the drop ripple up to any parent handlers
+ event.stopPropagation();
+};
+
+DropZoneWidget.prototype.handlePasteEvent = function(event) {
+ var self = this,
+ readFileCallback = function(tiddlerFieldsArray) {
+ self.dispatchEvent({type: "tm-import-tiddlers", param: JSON.stringify(tiddlerFieldsArray)});
+ };
+ // Let the browser handle it if we're in a textarea or input box
+ if(["TEXTAREA","INPUT"].indexOf(event.target.tagName) == -1 && !event.target.isContentEditable) {
+ var self = this,
+ items = event.clipboardData.items;
+ // Enumerate the clipboard items
+ for(var t = 0; t<items.length; t++) {
+ var item = items[t];
+ if(item.kind === "file") {
+ // Import any files
+ this.wiki.readFile(item.getAsFile(),{
+ callback: readFileCallback,
+ deserializer: this.dropzoneDeserializer
+ });
+ } else if(item.kind === "string") {
+ // Create tiddlers from string items
+ var type = item.type;
+ item.getAsString(function(str) {
+ var tiddlerFields = {
+ title: self.wiki.generateNewTitle("Untitled"),
+ text: str,
+ type: type
+ };
+ if($tw.log.IMPORT) {
+ console.log("Importing string '" + str + "', type: '" + type + "'");
+ }
+ self.dispatchEvent({type: "tm-import-tiddlers", param: JSON.stringify([tiddlerFields])});
+ });
+ }
+ }
+ // Tell the browser that we've handled the paste
+ event.stopPropagation();
+ event.preventDefault();
+ }
+};
+
+/*
+Compute the internal state of the widget
+*/
+DropZoneWidget.prototype.execute = function() {
+ this.dropzoneClass = this.getAttribute("class");
+ this.dropzoneDeserializer = this.getAttribute("deserializer");
+ this.dropzoneEnable = (this.getAttribute("enable") || "yes") === "yes";
+ // Make child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+DropZoneWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.enable) {
+ this.refreshSelf();
+ return true;
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+
+exports.dropzone = DropZoneWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/edit-binary.js
+type: application/javascript
+module-type: widget
+
+Edit-binary widget; placeholder for editing binary tiddlers
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var BINARY_WARNING_MESSAGE = "$:/core/ui/BinaryWarning";
+var EXPORT_BUTTON_IMAGE = "$:/core/images/export-button";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var EditBinaryWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+EditBinaryWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+EditBinaryWidget.prototype.render = function(parent,nextSibling) {
+ var self = this;
+ // Save the parent dom node
+ this.parentDomNode = parent;
+ // Compute our attributes
+ this.computeAttributes();
+ // Execute our logic
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+};
+
+/*
+Compute the internal state of the widget
+*/
+EditBinaryWidget.prototype.execute = function() {
+ // Get our parameters
+ var editTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
+ var tiddler = this.wiki.getTiddler(editTitle);
+ var type = tiddler.fields.type;
+ var text = tiddler.fields.text;
+ // Transclude the binary data tiddler warning message
+ var warn = {
+ type: "element",
+ tag: "p",
+ children: [{
+ type: "transclude",
+ attributes: {
+ tiddler: {type: "string", value: BINARY_WARNING_MESSAGE}
+ }
+ }]
+ };
+ // Create download link based on draft tiddler title
+ var link = {
+ type: "element",
+ tag: "a",
+ attributes: {
+ title: {type: "indirect", textReference: "!!draft.title"},
+ download: {type: "indirect", textReference: "!!draft.title"}
+ },
+ children: [{
+ type: "transclude",
+ attributes: {
+ tiddler: {type: "string", value: EXPORT_BUTTON_IMAGE}
+ }
+ }]
+ };
+ // Set the link href to internal data URI (no external)
+ if(text) {
+ link.attributes.href = {
+ type: "string",
+ value: "data:" + type + ";base64," + text
+ };
+ }
+ // Combine warning message and download link in a div
+ var element = {
+ type: "element",
+ tag: "div",
+ attributes: {
+ class: {type: "string", value: "tc-binary-warning"}
+ },
+ children: [warn, link]
+ }
+ // Construct the child widgets
+ this.makeChildWidgets([element]);
+};
+
+/*
+Refresh by refreshing our child widget
+*/
+EditBinaryWidget.prototype.refresh = function(changedTiddlers) {
+ return this.refreshChildren(changedTiddlers);
+};
+
+exports["edit-binary"] = EditBinaryWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/edit-bitmap.js
+type: application/javascript
+module-type: widget
+
+Edit-bitmap widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+// Default image sizes
+var DEFAULT_IMAGE_WIDTH = 600,
+ DEFAULT_IMAGE_HEIGHT = 370,
+ DEFAULT_IMAGE_TYPE = "image/png";
+
+// Configuration tiddlers
+var LINE_WIDTH_TITLE = "$:/config/BitmapEditor/LineWidth",
+ LINE_COLOUR_TITLE = "$:/config/BitmapEditor/Colour",
+ LINE_OPACITY_TITLE = "$:/config/BitmapEditor/Opacity";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var EditBitmapWidget = function(parseTreeNode,options) {
+ // Initialise the editor operations if they've not been done already
+ if(!this.editorOperations) {
+ EditBitmapWidget.prototype.editorOperations = {};
+ $tw.modules.applyMethods("bitmapeditoroperation",this.editorOperations);
+ }
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+EditBitmapWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+EditBitmapWidget.prototype.render = function(parent,nextSibling) {
+ var self = this;
+ // Save the parent dom node
+ this.parentDomNode = parent;
+ // Compute our attributes
+ this.computeAttributes();
+ // Execute our logic
+ this.execute();
+ // Create the wrapper for the toolbar and render its content
+ this.toolbarNode = this.document.createElement("div");
+ this.toolbarNode.className = "tc-editor-toolbar";
+ parent.insertBefore(this.toolbarNode,nextSibling);
+ this.domNodes.push(this.toolbarNode);
+ // Create the on-screen canvas
+ this.canvasDomNode = $tw.utils.domMaker("canvas",{
+ document: this.document,
+ "class":"tc-edit-bitmapeditor",
+ eventListeners: [{
+ name: "touchstart", handlerObject: this, handlerMethod: "handleTouchStartEvent"
+ },{
+ name: "touchmove", handlerObject: this, handlerMethod: "handleTouchMoveEvent"
+ },{
+ name: "touchend", handlerObject: this, handlerMethod: "handleTouchEndEvent"
+ },{
+ name: "mousedown", handlerObject: this, handlerMethod: "handleMouseDownEvent"
+ },{
+ name: "mousemove", handlerObject: this, handlerMethod: "handleMouseMoveEvent"
+ },{
+ name: "mouseup", handlerObject: this, handlerMethod: "handleMouseUpEvent"
+ }]
+ });
+ // Set the width and height variables
+ this.setVariable("tv-bitmap-editor-width",this.canvasDomNode.width + "px");
+ this.setVariable("tv-bitmap-editor-height",this.canvasDomNode.height + "px");
+ // Render toolbar child widgets
+ this.renderChildren(this.toolbarNode,null);
+ // // Insert the elements into the DOM
+ parent.insertBefore(this.canvasDomNode,nextSibling);
+ this.domNodes.push(this.canvasDomNode);
+ // Load the image into the canvas
+ if($tw.browser) {
+ this.loadCanvas();
+ }
+ // Add widget message listeners
+ this.addEventListeners([
+ {type: "tm-edit-bitmap-operation", handler: "handleEditBitmapOperationMessage"}
+ ]);
+};
+
+/*
+Handle an edit bitmap operation message from the toolbar
+*/
+EditBitmapWidget.prototype.handleEditBitmapOperationMessage = function(event) {
+ // Invoke the handler
+ var handler = this.editorOperations[event.param];
+ if(handler) {
+ handler.call(this,event);
+ }
+};
+
+/*
+Compute the internal state of the widget
+*/
+EditBitmapWidget.prototype.execute = function() {
+ // Get our parameters
+ this.editTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
+ // Make the child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Just refresh the toolbar
+*/
+EditBitmapWidget.prototype.refresh = function(changedTiddlers) {
+ return this.refreshChildren(changedTiddlers);
+};
+
+/*
+Set the bitmap size variables and refresh the toolbar
+*/
+EditBitmapWidget.prototype.refreshToolbar = function() {
+ // Set the width and height variables
+ this.setVariable("tv-bitmap-editor-width",this.canvasDomNode.width + "px");
+ this.setVariable("tv-bitmap-editor-height",this.canvasDomNode.height + "px");
+ // Refresh each of our child widgets
+ $tw.utils.each(this.children,function(childWidget) {
+ childWidget.refreshSelf();
+ });
+};
+
+EditBitmapWidget.prototype.loadCanvas = function() {
+ var tiddler = this.wiki.getTiddler(this.editTitle),
+ currImage = new Image();
+ // Set up event handlers for loading the image
+ var self = this;
+ currImage.onload = function() {
+ // Copy the image to the on-screen canvas
+ self.initCanvas(self.canvasDomNode,currImage.width,currImage.height,currImage);
+ // And also copy the current bitmap to the off-screen canvas
+ self.currCanvas = self.document.createElement("canvas");
+ self.initCanvas(self.currCanvas,currImage.width,currImage.height,currImage);
+ // Set the width and height input boxes
+ self.refreshToolbar();
+ };
+ currImage.onerror = function() {
+ // Set the on-screen canvas size and clear it
+ self.initCanvas(self.canvasDomNode,DEFAULT_IMAGE_WIDTH,DEFAULT_IMAGE_HEIGHT);
+ // Set the off-screen canvas size and clear it
+ self.currCanvas = self.document.createElement("canvas");
+ self.initCanvas(self.currCanvas,DEFAULT_IMAGE_WIDTH,DEFAULT_IMAGE_HEIGHT);
+ // Set the width and height input boxes
+ self.refreshToolbar();
+ };
+ // Get the current bitmap into an image object
+ if(tiddler && tiddler.fields.type && tiddler.fields.text) {
+ currImage.src = "data:" + tiddler.fields.type + ";base64," + tiddler.fields.text;
+ } else {
+ currImage.width = DEFAULT_IMAGE_WIDTH;
+ currImage.height = DEFAULT_IMAGE_HEIGHT;
+ currImage.onerror();
+ }
+};
+
+EditBitmapWidget.prototype.initCanvas = function(canvas,width,height,image) {
+ canvas.width = width;
+ canvas.height = height;
+ var ctx = canvas.getContext("2d");
+ if(image) {
+ ctx.drawImage(image,0,0);
+ } else {
+ ctx.fillStyle = "#fff";
+ ctx.fillRect(0,0,canvas.width,canvas.height);
+ }
+};
+
+/*
+** Change the size of the canvas, preserving the current image
+*/
+EditBitmapWidget.prototype.changeCanvasSize = function(newWidth,newHeight) {
+ // Create and size a new canvas
+ var newCanvas = this.document.createElement("canvas");
+ this.initCanvas(newCanvas,newWidth,newHeight);
+ // Copy the old image
+ var ctx = newCanvas.getContext("2d");
+ ctx.drawImage(this.currCanvas,0,0);
+ // Set the new canvas as the current one
+ this.currCanvas = newCanvas;
+ // Set the size of the onscreen canvas
+ this.canvasDomNode.width = newWidth;
+ this.canvasDomNode.height = newHeight;
+ // Paint the onscreen canvas with the offscreen canvas
+ ctx = this.canvasDomNode.getContext("2d");
+ ctx.drawImage(this.currCanvas,0,0);
+};
+
+/*
+** Rotate the canvas left by 90 degrees
+*/
+EditBitmapWidget.prototype.rotateCanvasLeft = function() {
+ // Get the current size of the image
+ var origWidth = this.currCanvas.width,
+ origHeight = this.currCanvas.height;
+ // Create and size a new canvas
+ var newCanvas = this.document.createElement("canvas"),
+ newWidth = origHeight,
+ newHeight = origWidth;
+ this.initCanvas(newCanvas,newWidth,newHeight);
+ // Copy the old image
+ var ctx = newCanvas.getContext("2d");
+ ctx.save();
+ ctx.translate(newWidth / 2,newHeight / 2);
+ ctx.rotate(-Math.PI / 2);
+ ctx.drawImage(this.currCanvas,-origWidth / 2,-origHeight / 2);
+ ctx.restore();
+ // Set the new canvas as the current one
+ this.currCanvas = newCanvas;
+ // Set the size of the onscreen canvas
+ this.canvasDomNode.width = newWidth;
+ this.canvasDomNode.height = newHeight;
+ // Paint the onscreen canvas with the offscreen canvas
+ ctx = this.canvasDomNode.getContext("2d");
+ ctx.drawImage(this.currCanvas,0,0);
+};
+
+EditBitmapWidget.prototype.handleTouchStartEvent = function(event) {
+ this.brushDown = true;
+ this.strokeStart(event.touches[0].clientX,event.touches[0].clientY);
+ event.preventDefault();
+ event.stopPropagation();
+ return false;
+};
+
+EditBitmapWidget.prototype.handleTouchMoveEvent = function(event) {
+ if(this.brushDown) {
+ this.strokeMove(event.touches[0].clientX,event.touches[0].clientY);
+ }
+ event.preventDefault();
+ event.stopPropagation();
+ return false;
+};
+
+EditBitmapWidget.prototype.handleTouchEndEvent = function(event) {
+ if(this.brushDown) {
+ this.brushDown = false;
+ this.strokeEnd();
+ }
+ event.preventDefault();
+ event.stopPropagation();
+ return false;
+};
+
+EditBitmapWidget.prototype.handleMouseDownEvent = function(event) {
+ this.strokeStart(event.clientX,event.clientY);
+ this.brushDown = true;
+ event.preventDefault();
+ event.stopPropagation();
+ return false;
+};
+
+EditBitmapWidget.prototype.handleMouseMoveEvent = function(event) {
+ if(this.brushDown) {
+ this.strokeMove(event.clientX,event.clientY);
+ event.preventDefault();
+ event.stopPropagation();
+ return false;
+ }
+ return true;
+};
+
+EditBitmapWidget.prototype.handleMouseUpEvent = function(event) {
+ if(this.brushDown) {
+ this.brushDown = false;
+ this.strokeEnd();
+ event.preventDefault();
+ event.stopPropagation();
+ return false;
+ }
+ return true;
+};
+
+EditBitmapWidget.prototype.adjustCoordinates = function(x,y) {
+ var canvasRect = this.canvasDomNode.getBoundingClientRect(),
+ scale = this.canvasDomNode.width/canvasRect.width;
+ return {x: (x - canvasRect.left) * scale, y: (y - canvasRect.top) * scale};
+};
+
+EditBitmapWidget.prototype.strokeStart = function(x,y) {
+ // Start off a new stroke
+ this.stroke = [this.adjustCoordinates(x,y)];
+};
+
+EditBitmapWidget.prototype.strokeMove = function(x,y) {
+ var ctx = this.canvasDomNode.getContext("2d"),
+ t;
+ // Add the new position to the end of the stroke
+ this.stroke.push(this.adjustCoordinates(x,y));
+ // Redraw the previous image
+ ctx.drawImage(this.currCanvas,0,0);
+ // Render the stroke
+ ctx.globalAlpha = parseFloat(this.wiki.getTiddlerText(LINE_OPACITY_TITLE,"1.0"));
+ ctx.strokeStyle = this.wiki.getTiddlerText(LINE_COLOUR_TITLE,"#ff0");
+ ctx.lineWidth = parseFloat(this.wiki.getTiddlerText(LINE_WIDTH_TITLE,"3"));
+ ctx.lineCap = "round";
+ ctx.lineJoin = "round";
+ ctx.beginPath();
+ ctx.moveTo(this.stroke[0].x,this.stroke[0].y);
+ for(t=1; t<this.stroke.length-1; t++) {
+ var s1 = this.stroke[t],
+ s2 = this.stroke[t-1],
+ tx = (s1.x + s2.x)/2,
+ ty = (s1.y + s2.y)/2;
+ ctx.quadraticCurveTo(s2.x,s2.y,tx,ty);
+ }
+ ctx.stroke();
+};
+
+EditBitmapWidget.prototype.strokeEnd = function() {
+ // Copy the bitmap to the off-screen canvas
+ var ctx = this.currCanvas.getContext("2d");
+ ctx.drawImage(this.canvasDomNode,0,0);
+ // Save the image into the tiddler
+ this.saveChanges();
+};
+
+EditBitmapWidget.prototype.saveChanges = function() {
+ var tiddler = this.wiki.getTiddler(this.editTitle) || new $tw.Tiddler({title: this.editTitle,type: DEFAULT_IMAGE_TYPE});
+ // data URIs look like "data:<type>;base64,<text>"
+ var dataURL = this.canvasDomNode.toDataURL(tiddler.fields.type),
+ posColon = dataURL.indexOf(":"),
+ posSemiColon = dataURL.indexOf(";"),
+ posComma = dataURL.indexOf(","),
+ type = dataURL.substring(posColon+1,posSemiColon),
+ text = dataURL.substring(posComma+1);
+ var update = {type: type, text: text};
+ this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getModificationFields(),tiddler,update,this.wiki.getCreationFields()));
+};
+
+exports["edit-bitmap"] = EditBitmapWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/edit-shortcut.js
+type: application/javascript
+module-type: widget
+
+Widget to display an editable keyboard shortcut
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var EditShortcutWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+EditShortcutWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+EditShortcutWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.inputNode = this.document.createElement("input");
+ // Assign classes
+ if(this.shortcutClass) {
+ this.inputNode.className = this.shortcutClass;
+ }
+ // Assign other attributes
+ if(this.shortcutStyle) {
+ this.inputNode.setAttribute("style",this.shortcutStyle);
+ }
+ if(this.shortcutTooltip) {
+ this.inputNode.setAttribute("title",this.shortcutTooltip);
+ }
+ if(this.shortcutPlaceholder) {
+ this.inputNode.setAttribute("placeholder",this.shortcutPlaceholder);
+ }
+ if(this.shortcutAriaLabel) {
+ this.inputNode.setAttribute("aria-label",this.shortcutAriaLabel);
+ }
+ // Assign the current shortcut
+ this.updateInputNode();
+ // Add event handlers
+ $tw.utils.addEventListeners(this.inputNode,[
+ {name: "keydown", handlerObject: this, handlerMethod: "handleKeydownEvent"}
+ ]);
+ // Link into the DOM
+ parent.insertBefore(this.inputNode,nextSibling);
+ this.domNodes.push(this.inputNode);
+ // Focus the input Node if focus === "yes" or focus === "true"
+ if(this.shortcutFocus === "yes" || this.shortcutFocus === "true") {
+ this.focus();
+ }
+};
+
+/*
+Compute the internal state of the widget
+*/
+EditShortcutWidget.prototype.execute = function() {
+ this.shortcutTiddler = this.getAttribute("tiddler");
+ this.shortcutField = this.getAttribute("field");
+ this.shortcutIndex = this.getAttribute("index");
+ this.shortcutPlaceholder = this.getAttribute("placeholder");
+ this.shortcutDefault = this.getAttribute("default","");
+ this.shortcutClass = this.getAttribute("class");
+ this.shortcutStyle = this.getAttribute("style");
+ this.shortcutTooltip = this.getAttribute("tooltip");
+ this.shortcutAriaLabel = this.getAttribute("aria-label");
+ this.shortcutFocus = this.getAttribute("focus");
+};
+
+/*
+Update the value of the input node
+*/
+EditShortcutWidget.prototype.updateInputNode = function() {
+ if(this.shortcutField) {
+ var tiddler = this.wiki.getTiddler(this.shortcutTiddler);
+ if(tiddler && $tw.utils.hop(tiddler.fields,this.shortcutField)) {
+ this.inputNode.value = tiddler.getFieldString(this.shortcutField);
+ } else {
+ this.inputNode.value = this.shortcutDefault;
+ }
+ } else if(this.shortcutIndex) {
+ this.inputNode.value = this.wiki.extractTiddlerDataItem(this.shortcutTiddler,this.shortcutIndex,this.shortcutDefault);
+ } else {
+ this.inputNode.value = this.wiki.getTiddlerText(this.shortcutTiddler,this.shortcutDefault);
+ }
+};
+
+/*
+Handle a dom "keydown" event
+*/
+EditShortcutWidget.prototype.handleKeydownEvent = function(event) {
+ // Ignore shift, ctrl, meta, alt
+ if(event.keyCode && $tw.keyboardManager.getModifierKeys().indexOf(event.keyCode) === -1) {
+ // Get the shortcut text representation
+ var value = $tw.keyboardManager.getPrintableShortcuts([{
+ ctrlKey: event.ctrlKey,
+ shiftKey: event.shiftKey,
+ altKey: event.altKey,
+ metaKey: event.metaKey,
+ keyCode: event.keyCode
+ }]);
+ if(value.length > 0) {
+ this.wiki.setText(this.shortcutTiddler,this.shortcutField,this.shortcutIndex,value[0]);
+ }
+ // Ignore the keydown if it was already handled
+ event.preventDefault();
+ event.stopPropagation();
+ return true;
+ } else {
+ return false;
+ }
+};
+
+/*
+focus the input node
+*/
+EditShortcutWidget.prototype.focus = function() {
+ if(this.inputNode.focus && this.inputNode.select) {
+ this.inputNode.focus();
+ this.inputNode.select();
+ }
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget needed re-rendering
+*/
+EditShortcutWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.placeholder || changedAttributes["default"] || changedAttributes["class"] || changedAttributes.style || changedAttributes.tooltip || changedAttributes["aria-label"] || changedAttributes.focus) {
+ this.refreshSelf();
+ return true;
+ } else if(changedTiddlers[this.shortcutTiddler]) {
+ this.updateInputNode();
+ return true;
+ } else {
+ return false;
+ }
+};
+
+exports["edit-shortcut"] = EditShortcutWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/edit-text.js
+type: application/javascript
+module-type: widget
+
+Edit-text widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var editTextWidgetFactory = require("$:/core/modules/editor/factory.js").editTextWidgetFactory,
+ FramedEngine = require("$:/core/modules/editor/engines/framed.js").FramedEngine,
+ SimpleEngine = require("$:/core/modules/editor/engines/simple.js").SimpleEngine;
+
+exports["edit-text"] = editTextWidgetFactory(FramedEngine,SimpleEngine);
+
+})();
+
+/*\
+title: $:/core/modules/widgets/edit.js
+type: application/javascript
+module-type: widget
+
+Edit widget is a meta-widget chooses the appropriate actual editting widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var EditWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+EditWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+EditWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+};
+
+// Mappings from content type to editor type are stored in tiddlers with this prefix
+var EDITOR_MAPPING_PREFIX = "$:/config/EditorTypeMappings/";
+
+/*
+Compute the internal state of the widget
+*/
+EditWidget.prototype.execute = function() {
+ // Get our parameters
+ this.editTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
+ this.editField = this.getAttribute("field","text");
+ this.editIndex = this.getAttribute("index");
+ this.editClass = this.getAttribute("class");
+ this.editPlaceholder = this.getAttribute("placeholder");
+ this.editTabIndex = this.getAttribute("tabindex");
+ this.editFocus = this.getAttribute("focus","");
+ // Choose the appropriate edit widget
+ this.editorType = this.getEditorType();
+ // Make the child widgets
+ this.makeChildWidgets([{
+ type: "edit-" + this.editorType,
+ attributes: {
+ tiddler: {type: "string", value: this.editTitle},
+ field: {type: "string", value: this.editField},
+ index: {type: "string", value: this.editIndex},
+ "class": {type: "string", value: this.editClass},
+ "placeholder": {type: "string", value: this.editPlaceholder},
+ "tabindex": {type: "string", value: this.editTabIndex},
+ "focus": {type: "string", value: this.editFocus}
+ },
+ children: this.parseTreeNode.children
+ }]);
+};
+
+EditWidget.prototype.getEditorType = function() {
+ // Get the content type of the thing we're editing
+ var type;
+ if(this.editField === "text") {
+ var tiddler = this.wiki.getTiddler(this.editTitle);
+ if(tiddler) {
+ type = tiddler.fields.type;
+ }
+ }
+ type = type || "text/vnd.tiddlywiki";
+ var editorType = this.wiki.getTiddlerText(EDITOR_MAPPING_PREFIX + type);
+ if(!editorType) {
+ var typeInfo = $tw.config.contentTypeInfo[type];
+ if(typeInfo && typeInfo.encoding === "base64") {
+ editorType = "binary";
+ } else {
+ editorType = "text";
+ }
+ }
+ return editorType;
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+EditWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ // Refresh if an attribute has changed, or the type associated with the target tiddler has changed
+ if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.tabindex || (changedTiddlers[this.editTitle] && this.getEditorType() !== this.editorType)) {
+ this.refreshSelf();
+ return true;
+ } else {
+ return this.refreshChildren(changedTiddlers);
+ }
+};
+
+exports.edit = EditWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/element.js
+type: application/javascript
+module-type: widget
+
+Element widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var ElementWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+ElementWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+ElementWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ // Neuter blacklisted elements
+ var tag = this.parseTreeNode.tag;
+ if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
+ tag = "safe-" + tag;
+ }
+ // Adjust headings by the current base level
+ var headingLevel = ["h1","h2","h3","h4","h5","h6"].indexOf(tag);
+ if(headingLevel !== -1) {
+ var baseLevel = parseInt(this.getVariable("tv-adjust-heading-level","0"),10) || 0;
+ headingLevel = Math.min(Math.max(headingLevel + 1 + baseLevel,1),6);
+ tag = "h" + headingLevel;
+ }
+ // Create the DOM node
+ var domNode = this.document.createElementNS(this.namespace,tag);
+ this.assignAttributes(domNode,{excludeEventAttributes: true});
+ parent.insertBefore(domNode,nextSibling);
+ this.renderChildren(domNode,null);
+ this.domNodes.push(domNode);
+};
+
+/*
+Compute the internal state of the widget
+*/
+ElementWidget.prototype.execute = function() {
+ // Select the namespace for the tag
+ var tagNamespaces = {
+ svg: "http://www.w3.org/2000/svg",
+ math: "http://www.w3.org/1998/Math/MathML",
+ body: "http://www.w3.org/1999/xhtml"
+ };
+ this.namespace = tagNamespaces[this.parseTreeNode.tag];
+ if(this.namespace) {
+ this.setVariable("namespace",this.namespace);
+ } else {
+ this.namespace = this.getVariable("namespace",{defaultValue: "http://www.w3.org/1999/xhtml"});
+ }
+ // Make the child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+ElementWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes(),
+ hasChangedAttributes = $tw.utils.count(changedAttributes) > 0;
+ if(hasChangedAttributes) {
+ // Update our attributes
+ this.assignAttributes(this.domNodes[0],{excludeEventAttributes: true});
+ }
+ return this.refreshChildren(changedTiddlers) || hasChangedAttributes;
+};
+
+exports.element = ElementWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/encrypt.js
+type: application/javascript
+module-type: widget
+
+Encrypt widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var EncryptWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+EncryptWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+EncryptWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ var textNode = this.document.createTextNode(this.encryptedText);
+ parent.insertBefore(textNode,nextSibling);
+ this.domNodes.push(textNode);
+};
+
+/*
+Compute the internal state of the widget
+*/
+EncryptWidget.prototype.execute = function() {
+ // Get parameters from our attributes
+ this.filter = this.getAttribute("filter","[!is[system]]");
+ // Encrypt the filtered tiddlers
+ var tiddlers = this.wiki.filterTiddlers(this.filter),
+ json = {},
+ self = this;
+ $tw.utils.each(tiddlers,function(title) {
+ var tiddler = self.wiki.getTiddler(title),
+ jsonTiddler = {};
+ for(var f in tiddler.fields) {
+ jsonTiddler[f] = tiddler.getFieldString(f);
+ }
+ json[title] = jsonTiddler;
+ });
+ this.encryptedText = $tw.utils.htmlEncode($tw.crypto.encrypt(JSON.stringify(json)));
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+EncryptWidget.prototype.refresh = function(changedTiddlers) {
+ // We don't need to worry about refreshing because the encrypt widget isn't for interactive use
+ return false;
+};
+
+exports.encrypt = EncryptWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/entity.js
+type: application/javascript
+module-type: widget
+
+HTML entity widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var EntityWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+EntityWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+EntityWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.execute();
+ var entityString = this.getAttribute("entity",this.parseTreeNode.entity || ""),
+ textNode = this.document.createTextNode($tw.utils.entityDecode(entityString));
+ parent.insertBefore(textNode,nextSibling);
+ this.domNodes.push(textNode);
+};
+
+/*
+Compute the internal state of the widget
+*/
+EntityWidget.prototype.execute = function() {
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+EntityWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.entity) {
+ this.refreshSelf();
+ return true;
+ } else {
+ return false;
+ }
+};
+
+exports.entity = EntityWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/fieldmangler.js
+type: application/javascript
+module-type: widget
+
+Field mangler widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var FieldManglerWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+ this.addEventListeners([
+ {type: "tm-remove-field", handler: "handleRemoveFieldEvent"},
+ {type: "tm-add-field", handler: "handleAddFieldEvent"},
+ {type: "tm-remove-tag", handler: "handleRemoveTagEvent"},
+ {type: "tm-add-tag", handler: "handleAddTagEvent"}
+ ]);
+};
+
+/*
+Inherit from the base widget class
+*/
+FieldManglerWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+FieldManglerWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+};
+
+/*
+Compute the internal state of the widget
+*/
+FieldManglerWidget.prototype.execute = function() {
+ // Get our parameters
+ this.mangleTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
+ // Construct the child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+FieldManglerWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.tiddler) {
+ this.refreshSelf();
+ return true;
+ } else {
+ return this.refreshChildren(changedTiddlers);
+ }
+};
+
+FieldManglerWidget.prototype.handleRemoveFieldEvent = function(event) {
+ var tiddler = this.wiki.getTiddler(this.mangleTitle),
+ deletion = {};
+ deletion[event.param] = undefined;
+ this.wiki.addTiddler(new $tw.Tiddler(tiddler,deletion));
+ return true;
+};
+
+FieldManglerWidget.prototype.handleAddFieldEvent = function(event) {
+ var tiddler = this.wiki.getTiddler(this.mangleTitle),
+ addition = this.wiki.getModificationFields(),
+ hadInvalidFieldName = false,
+ addField = function(name,value) {
+ var trimmedName = name.toLowerCase().trim();
+ if(!$tw.utils.isValidFieldName(trimmedName)) {
+ if(!hadInvalidFieldName) {
+ alert($tw.language.getString(
+ "InvalidFieldName",
+ {variables:
+ {fieldName: trimmedName}
+ }
+ ));
+ hadInvalidFieldName = true;
+ return;
+ }
+ } else {
+ if(!value && tiddler) {
+ value = tiddler.fields[trimmedName];
+ }
+ addition[trimmedName] = value || "";
+ }
+ return;
+ };
+ addition.title = this.mangleTitle;
+ if(typeof event.param === "string") {
+ addField(event.param,"");
+ }
+ if(typeof event.paramObject === "object") {
+ for(var name in event.paramObject) {
+ addField(name,event.paramObject[name]);
+ }
+ }
+ this.wiki.addTiddler(new $tw.Tiddler(tiddler,addition));
+ return true;
+};
+
+FieldManglerWidget.prototype.handleRemoveTagEvent = function(event) {
+ var tiddler = this.wiki.getTiddler(this.mangleTitle),
+ modification = this.wiki.getModificationFields();
+ if(tiddler && tiddler.fields.tags) {
+ var p = tiddler.fields.tags.indexOf(event.param);
+ if(p !== -1) {
+ modification.tags = (tiddler.fields.tags || []).slice(0);
+ modification.tags.splice(p,1);
+ if(modification.tags.length === 0) {
+ modification.tags = undefined;
+ }
+ this.wiki.addTiddler(new $tw.Tiddler(tiddler,modification));
+ }
+ }
+ return true;
+};
+
+FieldManglerWidget.prototype.handleAddTagEvent = function(event) {
+ var tiddler = this.wiki.getTiddler(this.mangleTitle),
+ modification = this.wiki.getModificationFields();
+ if(tiddler && typeof event.param === "string") {
+ var tag = event.param.trim();
+ if(tag !== "") {
+ modification.tags = (tiddler.fields.tags || []).slice(0);
+ $tw.utils.pushTop(modification.tags,tag);
+ this.wiki.addTiddler(new $tw.Tiddler(tiddler,modification));
+ }
+ } else if(typeof event.param === "string" && event.param.trim() !== "" && this.mangleTitle.trim() !== "") {
+ var tag = [];
+ tag.push(event.param.trim());
+ this.wiki.addTiddler(new $tw.Tiddler({title: this.mangleTitle, tags: tag},modification));
+ }
+ return true;
+};
+
+exports.fieldmangler = FieldManglerWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/fields.js
+type: application/javascript
+module-type: widget
+
+Fields widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var FieldsWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+FieldsWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+FieldsWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ var textNode = this.document.createTextNode(this.text);
+ parent.insertBefore(textNode,nextSibling);
+ this.domNodes.push(textNode);
+};
+
+/*
+Compute the internal state of the widget
+*/
+FieldsWidget.prototype.execute = function() {
+ // Get parameters from our attributes
+ this.tiddlerTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
+ this.template = this.getAttribute("template");
+ this.sort = this.getAttribute("sort","yes") === "yes";
+ this.sortReverse = this.getAttribute("sortReverse","no") === "yes";
+ this.exclude = this.getAttribute("exclude");
+ this.include = this.getAttribute("include",null);
+ this.stripTitlePrefix = this.getAttribute("stripTitlePrefix","no") === "yes";
+ // Get the value to display
+ var tiddler = this.wiki.getTiddler(this.tiddlerTitle);
+
+ // Get the inclusion and exclusion list
+ var excludeArr = (this.exclude) ? this.exclude.split(" ") : ["text"];
+ // Include takes precedence
+ var includeArr = (this.include) ? this.include.split(" ") : null;
+
+ // Compose the template
+ var text = [];
+ if(this.template && tiddler) {
+ var fields = [];
+ if (includeArr) { // Include takes precedence
+ for(var i=0; i<includeArr.length; i++) {
+ if(tiddler.fields[includeArr[i]]) {
+ fields.push(includeArr[i]);
+ }
+ }
+ } else {
+ for(var fieldName in tiddler.fields) {
+ if(excludeArr.indexOf(fieldName) === -1) {
+ fields.push(fieldName);
+ }
+ }
+ }
+ if (this.sort) fields.sort();
+ if (this.sortReverse) fields.reverse();
+ for(var f=0, fmax=fields.length; f<fmax; f++) {
+ fieldName = fields[f];
+ var row = this.template,
+ value = tiddler.getFieldString(fieldName);
+ if(this.stripTitlePrefix && fieldName === "title") {
+ var reStrip = /^\{[^\}]+\}(.+)/mg,
+ reMatch = reStrip.exec(value);
+ if(reMatch) {
+ value = reMatch[1];
+ }
+ }
+ row = $tw.utils.replaceString(row,"$name$",fieldName);
+ row = $tw.utils.replaceString(row,"$value$",value);
+ row = $tw.utils.replaceString(row,"$encoded_value$",$tw.utils.htmlEncode(value));
+ text.push(row);
+ }
+ }
+ this.text = text.join("");
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+FieldsWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if( changedAttributes.tiddler || changedAttributes.template || changedAttributes.exclude ||
+ changedAttributes.include || changedAttributes.sort || changedAttributes.sortReverse ||
+ changedTiddlers[this.tiddlerTitle] || changedAttributes.stripTitlePrefix) {
+ this.refreshSelf();
+ return true;
+ } else {
+ return false;
+ }
+};
+
+exports.fields = FieldsWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/image.js
+type: application/javascript
+module-type: widget
+
+The image widget displays an image referenced with an external URI or with a local tiddler title.
+
+```
+<$image src="TiddlerTitle" width="320" height="400" class="classnames">
+```
+
+The image source can be the title of an existing tiddler or the URL of an external image.
+
+External images always generate an HTML `<img>` tag.
+
+Tiddlers that have a _canonical_uri field generate an HTML `<img>` tag with the src attribute containing the URI.
+
+Tiddlers that contain image data generate an HTML `<img>` tag with the src attribute containing a base64 representation of the image.
+
+Tiddlers that contain wikitext could be rendered to a DIV of the usual size of a tiddler, and then transformed to the size requested.
+
+The width and height attributes are interpreted as a number of pixels, and do not need to include the "px" suffix.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var ImageWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+ImageWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+ImageWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ // Create element
+ // Determine what type of image it is
+ var tag = "img", src = "",
+ tiddler = this.wiki.getTiddler(this.imageSource);
+ if(!tiddler) {
+ // The source isn't the title of a tiddler, so we'll assume it's a URL
+ src = this.getVariable("tv-get-export-image-link",{params: [{name: "src",value: this.imageSource}],defaultValue: this.imageSource});
+ } else {
+ // Check if it is an image tiddler
+ if(this.wiki.isImageTiddler(this.imageSource)) {
+ var type = tiddler.fields.type,
+ text = tiddler.fields.text,
+ _canonical_uri = tiddler.fields._canonical_uri;
+ // If the tiddler has body text then it doesn't need to be lazily loaded
+ if(text) {
+ // Render the appropriate element for the image type
+ switch(type) {
+ case "application/pdf":
+ tag = "embed";
+ src = "data:application/pdf;base64," + text;
+ break;
+ case "image/svg+xml":
+ src = "data:image/svg+xml," + encodeURIComponent(text);
+ break;
+ default:
+ src = "data:" + type + ";base64," + text;
+ break;
+ }
+ } else if(_canonical_uri) {
+ switch(type) {
+ case "application/pdf":
+ tag = "embed";
+ src = _canonical_uri;
+ break;
+ case "image/svg+xml":
+ src = _canonical_uri;
+ break;
+ default:
+ src = _canonical_uri;
+ break;
+ }
+ } else {
+ // Just trigger loading of the tiddler
+ this.wiki.getTiddlerText(this.imageSource);
+ }
+ }
+ }
+ // Create the element and assign the attributes
+ var domNode = this.document.createElement(tag);
+ domNode.setAttribute("src",src);
+ if(this.imageClass) {
+ domNode.setAttribute("class",this.imageClass);
+ }
+ if(this.imageWidth) {
+ domNode.setAttribute("width",this.imageWidth);
+ }
+ if(this.imageHeight) {
+ domNode.setAttribute("height",this.imageHeight);
+ }
+ if(this.imageTooltip) {
+ domNode.setAttribute("title",this.imageTooltip);
+ }
+ if(this.imageAlt) {
+ domNode.setAttribute("alt",this.imageAlt);
+ }
+ // Insert element
+ parent.insertBefore(domNode,nextSibling);
+ this.domNodes.push(domNode);
+};
+
+/*
+Compute the internal state of the widget
+*/
+ImageWidget.prototype.execute = function() {
+ // Get our parameters
+ this.imageSource = this.getAttribute("source");
+ this.imageWidth = this.getAttribute("width");
+ this.imageHeight = this.getAttribute("height");
+ this.imageClass = this.getAttribute("class");
+ this.imageTooltip = this.getAttribute("tooltip");
+ this.imageAlt = this.getAttribute("alt");
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+ImageWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.source || changedAttributes.width || changedAttributes.height || changedAttributes["class"] || changedAttributes.tooltip || changedTiddlers[this.imageSource]) {
+ this.refreshSelf();
+ return true;
+ } else {
+ return false;
+ }
+};
+
+exports.image = ImageWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/importvariables.js
+type: application/javascript
+module-type: widget
+
+Import variable definitions from other tiddlers
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var ImportVariablesWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+ImportVariablesWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+ImportVariablesWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+};
+
+/*
+Compute the internal state of the widget
+*/
+ImportVariablesWidget.prototype.execute = function(tiddlerList) {
+ var widgetPointer = this;
+ // Get our parameters
+ this.filter = this.getAttribute("filter");
+ // Compute the filter
+ this.tiddlerList = tiddlerList || this.wiki.filterTiddlers(this.filter,this);
+ // Accumulate the <$set> widgets from each tiddler
+ $tw.utils.each(this.tiddlerList,function(title) {
+ var parser = widgetPointer.wiki.parseTiddler(title);
+ if(parser) {
+ var parseTreeNode = parser.tree[0];
+ while(parseTreeNode && parseTreeNode.type === "set") {
+ var node = {
+ type: "set",
+ attributes: parseTreeNode.attributes,
+ params: parseTreeNode.params,
+ isMacroDefinition: parseTreeNode.isMacroDefinition
+ };
+ if (parseTreeNode.isMacroDefinition) {
+ // Macro definitions can be folded into
+ // current widget instead of adding
+ // another link to the chain.
+ var widget = widgetPointer.makeChildWidget(node);
+ widget.computeAttributes();
+ widget.execute();
+ // We SHALLOW copy over all variables
+ // in widget. We can't use
+ // $tw.utils.assign, because that copies
+ // up the prototype chain, which we
+ // don't want.
+ $tw.utils.each(Object.keys(widget.variables), function(key) {
+ widgetPointer.variables[key] = widget.variables[key];
+ });
+ } else {
+ widgetPointer.makeChildWidgets([node]);
+ widgetPointer = widgetPointer.children[0];
+ }
+ parseTreeNode = parseTreeNode.children && parseTreeNode.children[0];
+ }
+ }
+ });
+
+ if (widgetPointer != this) {
+ widgetPointer.parseTreeNode.children = this.parseTreeNode.children;
+ } else {
+ widgetPointer.makeChildWidgets();
+ }
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+ImportVariablesWidget.prototype.refresh = function(changedTiddlers) {
+ // Recompute our attributes and the filter list
+ var changedAttributes = this.computeAttributes(),
+ tiddlerList = this.wiki.filterTiddlers(this.getAttribute("filter"),this);
+ // Refresh if the filter has changed, or the list of tiddlers has changed, or any of the tiddlers in the list has changed
+ function haveListedTiddlersChanged() {
+ var changed = false;
+ tiddlerList.forEach(function(title) {
+ if(changedTiddlers[title]) {
+ changed = true;
+ }
+ });
+ return changed;
+ }
+ if(changedAttributes.filter || !$tw.utils.isArrayEqual(this.tiddlerList,tiddlerList) || haveListedTiddlersChanged()) {
+ // Compute the filter
+ this.removeChildDomNodes();
+ this.execute(tiddlerList);
+ this.renderChildren(this.parentDomNode,this.findNextSiblingDomNode());
+ return true;
+ } else {
+ return this.refreshChildren(changedTiddlers);
+ }
+};
+
+exports.importvariables = ImportVariablesWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/keyboard.js
+type: application/javascript
+module-type: widget
+
+Keyboard shortcut widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var KeyboardWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+KeyboardWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+KeyboardWidget.prototype.render = function(parent,nextSibling) {
+ var self = this;
+ // Remember parent
+ this.parentDomNode = parent;
+ // Compute attributes and execute state
+ this.computeAttributes();
+ this.execute();
+ var tag = this.parseTreeNode.isBlock ? "div" : "span";
+ if(this.tag && $tw.config.htmlUnsafeElements.indexOf(this.tag) === -1) {
+ tag = this.tag;
+ }
+ // Create element
+ var domNode = this.document.createElement(tag);
+ // Assign classes
+ var classes = (this["class"] || "").split(" ");
+ classes.push("tc-keyboard");
+ domNode.className = classes.join(" ");
+ // Add a keyboard event handler
+ domNode.addEventListener("keydown",function (event) {
+ if($tw.keyboardManager.checkKeyDescriptors(event,self.keyInfoArray)) {
+ self.invokeActions(self,event);
+ if(self.actions) {
+ self.invokeActionString(self.actions,self,event);
+ }
+ self.dispatchMessage(event);
+ event.preventDefault();
+ event.stopPropagation();
+ return true;
+ }
+ return false;
+ },false);
+ // Insert element
+ parent.insertBefore(domNode,nextSibling);
+ this.renderChildren(domNode,null);
+ this.domNodes.push(domNode);
+};
+
+KeyboardWidget.prototype.dispatchMessage = function(event) {
+ this.dispatchEvent({type: this.message, param: this.param, tiddlerTitle: this.getVariable("currentTiddler")});
+};
+
+/*
+Compute the internal state of the widget
+*/
+KeyboardWidget.prototype.execute = function() {
+ var self = this;
+ // Get attributes
+ this.actions = this.getAttribute("actions","");
+ this.message = this.getAttribute("message","");
+ this.param = this.getAttribute("param","");
+ this.key = this.getAttribute("key","");
+ this.tag = this.getAttribute("tag","");
+ this.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);
+ this["class"] = this.getAttribute("class","");
+ if(this.key.substr(0,2) === "((" && this.key.substr(-2,2) === "))") {
+ this.shortcutTiddlers = [];
+ var name = this.key.substring(2,this.key.length -2);
+ $tw.utils.each($tw.keyboardManager.lookupNames,function(platformDescriptor) {
+ self.shortcutTiddlers.push("$:/config/" + platformDescriptor + "/" + name);
+ });
+ }
+ // Make child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+KeyboardWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.message || changedAttributes.param || changedAttributes.key || changedAttributes["class"] || changedAttributes.tag) {
+ this.refreshSelf();
+ return true;
+ }
+ // Update the keyInfoArray if one of its shortcut-config-tiddlers has changed
+ if(this.shortcutTiddlers && $tw.utils.hopArray(changedTiddlers,this.shortcutTiddlers)) {
+ this.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+
+exports.keyboard = KeyboardWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/link.js
+type: application/javascript
+module-type: widget
+
+Link widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var LinkWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+LinkWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+LinkWidget.prototype.render = function(parent,nextSibling) {
+ // Save the parent dom node
+ this.parentDomNode = parent;
+ // Compute our attributes
+ this.computeAttributes();
+ // Execute our logic
+ this.execute();
+ // Get the value of the tv-wikilinks configuration macro
+ var wikiLinksMacro = this.getVariable("tv-wikilinks"),
+ useWikiLinks = wikiLinksMacro ? (wikiLinksMacro.trim() !== "no") : true,
+ missingLinksEnabled = !(this.hideMissingLinks && this.isMissing && !this.isShadow);
+ // Render the link if required
+ if(useWikiLinks && missingLinksEnabled) {
+ this.renderLink(parent,nextSibling);
+ } else {
+ // Just insert the link text
+ var domNode = this.document.createElement("span");
+ parent.insertBefore(domNode,nextSibling);
+ this.renderChildren(domNode,null);
+ this.domNodes.push(domNode);
+ }
+};
+
+/*
+Render this widget into the DOM
+*/
+LinkWidget.prototype.renderLink = function(parent,nextSibling) {
+ var self = this;
+ // Sanitise the specified tag
+ var tag = this.linkTag;
+ if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
+ tag = "a";
+ }
+ // Create our element
+ var domNode = this.document.createElement(tag);
+ // Assign classes
+ var classes = [];
+ if(this.overrideClasses === undefined) {
+ classes.push("tc-tiddlylink");
+ if(this.isShadow) {
+ classes.push("tc-tiddlylink-shadow");
+ }
+ if(this.isMissing && !this.isShadow) {
+ classes.push("tc-tiddlylink-missing");
+ } else {
+ if(!this.isMissing) {
+ classes.push("tc-tiddlylink-resolves");
+ }
+ }
+ if(this.linkClasses) {
+ classes.push(this.linkClasses);
+ }
+ } else if(this.overrideClasses !== "") {
+ classes.push(this.overrideClasses)
+ }
+ if(classes.length > 0) {
+ domNode.setAttribute("class",classes.join(" "));
+ }
+ // Set an href
+ var wikilinkTransformFilter = this.getVariable("tv-filter-export-link"),
+ wikiLinkText;
+ if(wikilinkTransformFilter) {
+ // Use the filter to construct the href
+ wikiLinkText = this.wiki.filterTiddlers(wikilinkTransformFilter,this,function(iterator) {
+ iterator(self.wiki.getTiddler(self.to),self.to)
+ })[0];
+ } else {
+ // Expand the tv-wikilink-template variable to construct the href
+ var wikiLinkTemplateMacro = this.getVariable("tv-wikilink-template"),
+ wikiLinkTemplate = wikiLinkTemplateMacro ? wikiLinkTemplateMacro.trim() : "#$uri_encoded$";
+ wikiLinkText = $tw.utils.replaceString(wikiLinkTemplate,"$uri_encoded$",encodeURIComponent(this.to));
+ wikiLinkText = $tw.utils.replaceString(wikiLinkText,"$uri_doubleencoded$",encodeURIComponent(encodeURIComponent(this.to)));
+ }
+ // Override with the value of tv-get-export-link if defined
+ wikiLinkText = this.getVariable("tv-get-export-link",{params: [{name: "to",value: this.to}],defaultValue: wikiLinkText});
+ if(tag === "a") {
+ domNode.setAttribute("href",wikiLinkText);
+ }
+ // Set the tabindex
+ if(this.tabIndex) {
+ domNode.setAttribute("tabindex",this.tabIndex);
+ }
+ // Set the tooltip
+ // HACK: Performance issues with re-parsing the tooltip prevent us defaulting the tooltip to "<$transclude field='tooltip'><$transclude field='title'/></$transclude>"
+ var tooltipWikiText = this.tooltip || this.getVariable("tv-wikilink-tooltip");
+ if(tooltipWikiText) {
+ var tooltipText = this.wiki.renderText("text/plain","text/vnd.tiddlywiki",tooltipWikiText,{
+ parseAsInline: true,
+ variables: {
+ currentTiddler: this.to
+ },
+ parentWidget: this
+ });
+ domNode.setAttribute("title",tooltipText);
+ }
+ if(this["aria-label"]) {
+ domNode.setAttribute("aria-label",this["aria-label"]);
+ }
+ // Add a click event handler
+ $tw.utils.addEventListeners(domNode,[
+ {name: "click", handlerObject: this, handlerMethod: "handleClickEvent"},
+ ]);
+ // Make the link draggable if required
+ if(this.draggable === "yes") {
+ $tw.utils.makeDraggable({
+ domNode: domNode,
+ dragTiddlerFn: function() {return self.to;},
+ widget: this
+ });
+ }
+ // Insert the link into the DOM and render any children
+ parent.insertBefore(domNode,nextSibling);
+ this.renderChildren(domNode,null);
+ this.domNodes.push(domNode);
+};
+
+LinkWidget.prototype.handleClickEvent = function(event) {
+ // Send the click on its way as a navigate event
+ var bounds = this.domNodes[0].getBoundingClientRect();
+ this.dispatchEvent({
+ type: "tm-navigate",
+ navigateTo: this.to,
+ navigateFromTitle: this.getVariable("storyTiddler"),
+ navigateFromNode: this,
+ navigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height
+ },
+ navigateSuppressNavigation: event.metaKey || event.ctrlKey || (event.button === 1),
+ metaKey: event.metaKey,
+ ctrlKey: event.ctrlKey,
+ altKey: event.altKey,
+ shiftKey: event.shiftKey
+ });
+ if(this.domNodes[0].hasAttribute("href")) {
+ event.preventDefault();
+ }
+ event.stopPropagation();
+ return false;
+};
+
+/*
+Compute the internal state of the widget
+*/
+LinkWidget.prototype.execute = function() {
+ // Pick up our attributes
+ this.to = this.getAttribute("to",this.getVariable("currentTiddler"));
+ this.tooltip = this.getAttribute("tooltip");
+ this["aria-label"] = this.getAttribute("aria-label");
+ this.linkClasses = this.getAttribute("class");
+ this.overrideClasses = this.getAttribute("overrideClass");
+ this.tabIndex = this.getAttribute("tabindex");
+ this.draggable = this.getAttribute("draggable","yes");
+ this.linkTag = this.getAttribute("tag","a");
+ // Determine the link characteristics
+ this.isMissing = !this.wiki.tiddlerExists(this.to);
+ this.isShadow = this.wiki.isShadowTiddler(this.to);
+ this.hideMissingLinks = (this.getVariable("tv-show-missing-links") || "yes") === "no";
+ // Make the child widgets
+ var templateTree;
+ if(this.parseTreeNode.children && this.parseTreeNode.children.length > 0) {
+ templateTree = this.parseTreeNode.children;
+ } else {
+ // Default template is a link to the title
+ templateTree = [{type: "text", text: this.to}];
+ }
+ this.makeChildWidgets(templateTree);
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+LinkWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.to || changedTiddlers[this.to] || changedAttributes["aria-label"] || changedAttributes.tooltip) {
+ this.refreshSelf();
+ return true;
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+
+exports.link = LinkWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/linkcatcher.js
+type: application/javascript
+module-type: widget
+
+Linkcatcher widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var LinkCatcherWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+ this.addEventListeners([
+ {type: "tm-navigate", handler: "handleNavigateEvent"}
+ ]);
+};
+
+/*
+Inherit from the base widget class
+*/
+LinkCatcherWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+LinkCatcherWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+};
+
+/*
+Compute the internal state of the widget
+*/
+LinkCatcherWidget.prototype.execute = function() {
+ // Get our parameters
+ this.catchTo = this.getAttribute("to");
+ this.catchMessage = this.getAttribute("message");
+ this.catchSet = this.getAttribute("set");
+ this.catchSetTo = this.getAttribute("setTo");
+ this.catchActions = this.getAttribute("actions");
+ // Construct the child widgets
+ this.makeChildWidgets();
+ // When executing actions we avoid trapping navigate events, so that we don't trigger ourselves recursively
+ this.executingActions = false;
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+LinkCatcherWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.to || changedAttributes.message || changedAttributes.set || changedAttributes.setTo) {
+ this.refreshSelf();
+ return true;
+ } else {
+ return this.refreshChildren(changedTiddlers);
+ }
+};
+
+/*
+Handle a tm-navigate event
+*/
+LinkCatcherWidget.prototype.handleNavigateEvent = function(event) {
+ if(!this.executingActions) {
+ // Execute the actions
+ if(this.catchTo) {
+ this.wiki.setTextReference(this.catchTo,event.navigateTo,this.getVariable("currentTiddler"));
+ }
+ if(this.catchMessage && this.parentWidget) {
+ this.parentWidget.dispatchEvent({
+ type: this.catchMessage,
+ param: event.navigateTo,
+ navigateTo: event.navigateTo
+ });
+ }
+ if(this.catchSet) {
+ var tiddler = this.wiki.getTiddler(this.catchSet);
+ this.wiki.addTiddler(new $tw.Tiddler(tiddler,{title: this.catchSet, text: this.catchSetTo}));
+ }
+ if(this.catchActions) {
+ this.executingActions = true;
+ this.invokeActionString(this.catchActions,this,event,{navigateTo: event.navigateTo});
+ this.executingActions = false;
+ }
+ } else {
+ // This is a navigate event generated by the actions of this linkcatcher, so we don't trap it again, but just pass it to the parent
+ this.parentWidget.dispatchEvent({
+ type: "tm-navigate",
+ param: event.navigateTo,
+ navigateTo: event.navigateTo
+ });
+ }
+ return false;
+};
+
+exports.linkcatcher = LinkCatcherWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/list.js
+type: application/javascript
+module-type: widget
+
+List and list item widgets
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+/*
+The list widget creates list element sub-widgets that reach back into the list widget for their configuration
+*/
+
+var ListWidget = function(parseTreeNode,options) {
+ // Initialise the storyviews if they've not been done already
+ if(!this.storyViews) {
+ ListWidget.prototype.storyViews = {};
+ $tw.modules.applyMethods("storyview",this.storyViews);
+ }
+ // Main initialisation inherited from widget.js
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+ListWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+ListWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+ // Construct the storyview
+ var StoryView = this.storyViews[this.storyViewName];
+ if(this.storyViewName && !StoryView) {
+ StoryView = this.storyViews["classic"];
+ }
+ if(StoryView && !this.document.isTiddlyWikiFakeDom) {
+ this.storyview = new StoryView(this);
+ } else {
+ this.storyview = null;
+ }
+};
+
+/*
+Compute the internal state of the widget
+*/
+ListWidget.prototype.execute = function() {
+ // Get our attributes
+ this.template = this.getAttribute("template");
+ this.editTemplate = this.getAttribute("editTemplate");
+ this.variableName = this.getAttribute("variable","currentTiddler");
+ this.storyViewName = this.getAttribute("storyview");
+ this.historyTitle = this.getAttribute("history");
+ // Compose the list elements
+ this.list = this.getTiddlerList();
+ var members = [],
+ self = this;
+ // Check for an empty list
+ if(this.list.length === 0) {
+ members = this.getEmptyMessage();
+ } else {
+ $tw.utils.each(this.list,function(title,index) {
+ members.push(self.makeItemTemplate(title));
+ });
+ }
+ // Construct the child widgets
+ this.makeChildWidgets(members);
+ // Clear the last history
+ this.history = [];
+};
+
+ListWidget.prototype.getTiddlerList = function() {
+ var defaultFilter = "[!is[system]sort[title]]";
+ return this.wiki.filterTiddlers(this.getAttribute("filter",defaultFilter),this);
+};
+
+ListWidget.prototype.getEmptyMessage = function() {
+ var emptyMessage = this.getAttribute("emptyMessage",""),
+ parser = this.wiki.parseText("text/vnd.tiddlywiki",emptyMessage,{parseAsInline: true});
+ if(parser) {
+ return parser.tree;
+ } else {
+ return [];
+ }
+};
+
+/*
+Compose the template for a list item
+*/
+ListWidget.prototype.makeItemTemplate = function(title) {
+ // Check if the tiddler is a draft
+ var tiddler = this.wiki.getTiddler(title),
+ isDraft = tiddler && tiddler.hasField("draft.of"),
+ template = this.template,
+ templateTree;
+ if(isDraft && this.editTemplate) {
+ template = this.editTemplate;
+ }
+ // Compose the transclusion of the template
+ if(template) {
+ templateTree = [{type: "transclude", attributes: {tiddler: {type: "string", value: template}}}];
+ } else {
+ if(this.parseTreeNode.children && this.parseTreeNode.children.length > 0) {
+ templateTree = this.parseTreeNode.children;
+ } else {
+ // Default template is a link to the title
+ templateTree = [{type: "element", tag: this.parseTreeNode.isBlock ? "div" : "span", children: [{type: "link", attributes: {to: {type: "string", value: title}}, children: [
+ {type: "text", text: title}
+ ]}]}];
+ }
+ }
+ // Return the list item
+ return {type: "listitem", itemTitle: title, variableName: this.variableName, children: templateTree};
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+ListWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes(),
+ result;
+ // Call the storyview
+ if(this.storyview && this.storyview.refreshStart) {
+ this.storyview.refreshStart(changedTiddlers,changedAttributes);
+ }
+ // Completely refresh if any of our attributes have changed
+ if(changedAttributes.filter || changedAttributes.template || changedAttributes.editTemplate || changedAttributes.emptyMessage || changedAttributes.storyview || changedAttributes.history) {
+ this.refreshSelf();
+ result = true;
+ } else {
+ // Handle any changes to the list
+ result = this.handleListChanges(changedTiddlers);
+ // Handle any changes to the history stack
+ if(this.historyTitle && changedTiddlers[this.historyTitle]) {
+ this.handleHistoryChanges();
+ }
+ }
+ // Call the storyview
+ if(this.storyview && this.storyview.refreshEnd) {
+ this.storyview.refreshEnd(changedTiddlers,changedAttributes);
+ }
+ return result;
+};
+
+/*
+Handle any changes to the history list
+*/
+ListWidget.prototype.handleHistoryChanges = function() {
+ // Get the history data
+ var newHistory = this.wiki.getTiddlerDataCached(this.historyTitle,[]);
+ // Ignore any entries of the history that match the previous history
+ var entry = 0;
+ while(entry < newHistory.length && entry < this.history.length && newHistory[entry].title === this.history[entry].title) {
+ entry++;
+ }
+ // Navigate forwards to each of the new tiddlers
+ while(entry < newHistory.length) {
+ if(this.storyview && this.storyview.navigateTo) {
+ this.storyview.navigateTo(newHistory[entry]);
+ }
+ entry++;
+ }
+ // Update the history
+ this.history = newHistory;
+};
+
+/*
+Process any changes to the list
+*/
+ListWidget.prototype.handleListChanges = function(changedTiddlers) {
+ // Get the new list
+ var prevList = this.list;
+ this.list = this.getTiddlerList();
+ // Check for an empty list
+ if(this.list.length === 0) {
+ // Check if it was empty before
+ if(prevList.length === 0) {
+ // If so, just refresh the empty message
+ return this.refreshChildren(changedTiddlers);
+ } else {
+ // Replace the previous content with the empty message
+ for(t=this.children.length-1; t>=0; t--) {
+ this.removeListItem(t);
+ }
+ var nextSibling = this.findNextSiblingDomNode();
+ this.makeChildWidgets(this.getEmptyMessage());
+ this.renderChildren(this.parentDomNode,nextSibling);
+ return true;
+ }
+ } else {
+ // If the list was empty then we need to remove the empty message
+ if(prevList.length === 0) {
+ this.removeChildDomNodes();
+ this.children = [];
+ }
+ // Cycle through the list, inserting and removing list items as needed
+ var hasRefreshed = false;
+ for(var t=0; t<this.list.length; t++) {
+ var index = this.findListItem(t,this.list[t]);
+ if(index === undefined) {
+ // The list item must be inserted
+ this.insertListItem(t,this.list[t]);
+ hasRefreshed = true;
+ } else {
+ // There are intervening list items that must be removed
+ for(var n=index-1; n>=t; n--) {
+ this.removeListItem(n);
+ hasRefreshed = true;
+ }
+ // Refresh the item we're reusing
+ var refreshed = this.children[t].refresh(changedTiddlers);
+ hasRefreshed = hasRefreshed || refreshed;
+ }
+ }
+ // Remove any left over items
+ for(t=this.children.length-1; t>=this.list.length; t--) {
+ this.removeListItem(t);
+ hasRefreshed = true;
+ }
+ return hasRefreshed;
+ }
+};
+
+/*
+Find the list item with a given title, starting from a specified position
+*/
+ListWidget.prototype.findListItem = function(startIndex,title) {
+ while(startIndex < this.children.length) {
+ if(this.children[startIndex].parseTreeNode.itemTitle === title) {
+ return startIndex;
+ }
+ startIndex++;
+ }
+ return undefined;
+};
+
+/*
+Insert a new list item at the specified index
+*/
+ListWidget.prototype.insertListItem = function(index,title) {
+ // Create, insert and render the new child widgets
+ var widget = this.makeChildWidget(this.makeItemTemplate(title));
+ widget.parentDomNode = this.parentDomNode; // Hack to enable findNextSiblingDomNode() to work
+ this.children.splice(index,0,widget);
+ var nextSibling = widget.findNextSiblingDomNode();
+ widget.render(this.parentDomNode,nextSibling);
+ // Animate the insertion if required
+ if(this.storyview && this.storyview.insert) {
+ this.storyview.insert(widget);
+ }
+ return true;
+};
+
+/*
+Remove the specified list item
+*/
+ListWidget.prototype.removeListItem = function(index) {
+ var widget = this.children[index];
+ // Animate the removal if required
+ if(this.storyview && this.storyview.remove) {
+ this.storyview.remove(widget);
+ } else {
+ widget.removeChildDomNodes();
+ }
+ // Remove the child widget
+ this.children.splice(index,1);
+};
+
+exports.list = ListWidget;
+
+var ListItemWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+ListItemWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+ListItemWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+};
+
+/*
+Compute the internal state of the widget
+*/
+ListItemWidget.prototype.execute = function() {
+ // Set the current list item title
+ this.setVariable(this.parseTreeNode.variableName,this.parseTreeNode.itemTitle);
+ // Construct the child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+ListItemWidget.prototype.refresh = function(changedTiddlers) {
+ return this.refreshChildren(changedTiddlers);
+};
+
+exports.listitem = ListItemWidget;
+
+})();
+/*\
+title: $:/core/modules/widgets/macrocall.js
+type: application/javascript
+module-type: widget
+
+Macrocall widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var MacroCallWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+MacroCallWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+MacroCallWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+};
+
+/*
+Compute the internal state of the widget
+*/
+MacroCallWidget.prototype.execute = function() {
+ // Get the parse type if specified
+ this.parseType = this.getAttribute("$type","text/vnd.tiddlywiki");
+ this.renderOutput = this.getAttribute("$output","text/html");
+ // Merge together the parameters specified in the parse tree with the specified attributes
+ var params = this.parseTreeNode.params ? this.parseTreeNode.params.slice(0) : [];
+ $tw.utils.each(this.attributes,function(attribute,name) {
+ if(name.charAt(0) !== "$") {
+ params.push({name: name, value: attribute});
+ }
+ });
+ // Get the macro value
+ var macroName = this.parseTreeNode.name || this.getAttribute("$name"),
+ variableInfo = this.getVariableInfo(macroName,{params: params}),
+ text = variableInfo.text,
+ parseTreeNodes;
+ // Are we rendering to HTML?
+ if(this.renderOutput === "text/html") {
+ // If so we'll return the parsed macro
+ var parser = this.wiki.parseText(this.parseType,text,
+ {parseAsInline: !this.parseTreeNode.isBlock});
+ parseTreeNodes = parser ? parser.tree : [];
+ // Wrap the parse tree in a vars widget assigning the parameters to variables named "__paramname__"
+ var attributes = {};
+ $tw.utils.each(variableInfo.params,function(param) {
+ var name = "__" + param.name + "__";
+ attributes[name] = {
+ name: name,
+ type: "string",
+ value: param.value
+ };
+ });
+ parseTreeNodes = [{
+ type: "vars",
+ attributes: attributes,
+ children: parseTreeNodes
+ }];
+ } else {
+ // Otherwise, we'll render the text
+ var plainText = this.wiki.renderText("text/plain",this.parseType,text,{parentWidget: this});
+ parseTreeNodes = [{type: "text", text: plainText}];
+ }
+ // Construct the child widgets
+ this.makeChildWidgets(parseTreeNodes);
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+MacroCallWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if($tw.utils.count(changedAttributes) > 0) {
+ // Rerender ourselves
+ this.refreshSelf();
+ return true;
+ } else {
+ return this.refreshChildren(changedTiddlers);
+ }
+};
+
+exports.macrocall = MacroCallWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/navigator.js
+type: application/javascript
+module-type: widget
+
+Navigator widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var IMPORT_TITLE = "$:/Import";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var NavigatorWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+ this.addEventListeners([
+ {type: "tm-navigate", handler: "handleNavigateEvent"},
+ {type: "tm-edit-tiddler", handler: "handleEditTiddlerEvent"},
+ {type: "tm-delete-tiddler", handler: "handleDeleteTiddlerEvent"},
+ {type: "tm-save-tiddler", handler: "handleSaveTiddlerEvent"},
+ {type: "tm-cancel-tiddler", handler: "handleCancelTiddlerEvent"},
+ {type: "tm-close-tiddler", handler: "handleCloseTiddlerEvent"},
+ {type: "tm-close-all-tiddlers", handler: "handleCloseAllTiddlersEvent"},
+ {type: "tm-close-other-tiddlers", handler: "handleCloseOtherTiddlersEvent"},
+ {type: "tm-new-tiddler", handler: "handleNewTiddlerEvent"},
+ {type: "tm-import-tiddlers", handler: "handleImportTiddlersEvent"},
+ {type: "tm-perform-import", handler: "handlePerformImportEvent"},
+ {type: "tm-fold-tiddler", handler: "handleFoldTiddlerEvent"},
+ {type: "tm-fold-other-tiddlers", handler: "handleFoldOtherTiddlersEvent"},
+ {type: "tm-fold-all-tiddlers", handler: "handleFoldAllTiddlersEvent"},
+ {type: "tm-unfold-all-tiddlers", handler: "handleUnfoldAllTiddlersEvent"},
+ {type: "tm-rename-tiddler", handler: "handleRenameTiddlerEvent"}
+ ]);
+};
+
+/*
+Inherit from the base widget class
+*/
+NavigatorWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+NavigatorWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+};
+
+/*
+Compute the internal state of the widget
+*/
+NavigatorWidget.prototype.execute = function() {
+ // Get our parameters
+ this.storyTitle = this.getAttribute("story");
+ this.historyTitle = this.getAttribute("history");
+ this.setVariable("tv-story-list",this.storyTitle);
+ this.setVariable("tv-history-list",this.historyTitle);
+ // Construct the child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+NavigatorWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.story || changedAttributes.history) {
+ this.refreshSelf();
+ return true;
+ } else {
+ return this.refreshChildren(changedTiddlers);
+ }
+};
+
+NavigatorWidget.prototype.getStoryList = function() {
+ return this.storyTitle ? this.wiki.getTiddlerList(this.storyTitle) : null;
+};
+
+NavigatorWidget.prototype.saveStoryList = function(storyList) {
+ if(this.storyTitle) {
+ var storyTiddler = this.wiki.getTiddler(this.storyTitle);
+ this.wiki.addTiddler(new $tw.Tiddler(
+ {title: this.storyTitle},
+ storyTiddler,
+ {list: storyList}
+ ));
+ }
+};
+
+NavigatorWidget.prototype.removeTitleFromStory = function(storyList,title) {
+ if(storyList) {
+ var p = storyList.indexOf(title);
+ while(p !== -1) {
+ storyList.splice(p,1);
+ p = storyList.indexOf(title);
+ }
+ }
+};
+
+NavigatorWidget.prototype.replaceFirstTitleInStory = function(storyList,oldTitle,newTitle) {
+ if(storyList) {
+ var pos = storyList.indexOf(oldTitle);
+ if(pos !== -1) {
+ storyList[pos] = newTitle;
+ do {
+ pos = storyList.indexOf(oldTitle,pos + 1);
+ if(pos !== -1) {
+ storyList.splice(pos,1);
+ }
+ } while(pos !== -1);
+ } else {
+ storyList.splice(0,0,newTitle);
+ }
+ }
+};
+
+NavigatorWidget.prototype.addToStory = function(title,fromTitle) {
+ if(this.storyTitle) {
+ this.wiki.addToStory(title,fromTitle,this.storyTitle,{
+ openLinkFromInsideRiver: this.getAttribute("openLinkFromInsideRiver","top"),
+ openLinkFromOutsideRiver: this.getAttribute("openLinkFromOutsideRiver","top")
+ });
+ }
+};
+
+/*
+Add a new record to the top of the history stack
+title: a title string or an array of title strings
+fromPageRect: page coordinates of the origin of the navigation
+*/
+NavigatorWidget.prototype.addToHistory = function(title,fromPageRect) {
+ this.wiki.addToHistory(title,fromPageRect,this.historyTitle);
+};
+
+/*
+Handle a tm-navigate event
+*/
+NavigatorWidget.prototype.handleNavigateEvent = function(event) {
+ event = $tw.hooks.invokeHook("th-navigating",event);
+ if(event.navigateTo) {
+ this.addToStory(event.navigateTo,event.navigateFromTitle);
+ if(!event.navigateSuppressNavigation) {
+ this.addToHistory(event.navigateTo,event.navigateFromClientRect);
+ }
+ }
+ return false;
+};
+
+// Close a specified tiddler
+NavigatorWidget.prototype.handleCloseTiddlerEvent = function(event) {
+ var title = event.param || event.tiddlerTitle,
+ storyList = this.getStoryList();
+ // Look for tiddlers with this title to close
+ this.removeTitleFromStory(storyList,title);
+ this.saveStoryList(storyList);
+ return false;
+};
+
+// Close all tiddlers
+NavigatorWidget.prototype.handleCloseAllTiddlersEvent = function(event) {
+ this.saveStoryList([]);
+ return false;
+};
+
+// Close other tiddlers
+NavigatorWidget.prototype.handleCloseOtherTiddlersEvent = function(event) {
+ var title = event.param || event.tiddlerTitle;
+ this.saveStoryList([title]);
+ return false;
+};
+
+// Place a tiddler in edit mode
+NavigatorWidget.prototype.handleEditTiddlerEvent = function(event) {
+ var editTiddler = $tw.hooks.invokeHook("th-editing-tiddler",event);
+ if(!editTiddler) {
+ return false;
+ }
+ var self = this;
+ function isUnmodifiedShadow(title) {
+ return self.wiki.isShadowTiddler(title) && !self.wiki.tiddlerExists(title);
+ }
+ function confirmEditShadow(title) {
+ return confirm($tw.language.getString(
+ "ConfirmEditShadowTiddler",
+ {variables:
+ {title: title}
+ }
+ ));
+ }
+ var title = event.param || event.tiddlerTitle;
+ if(isUnmodifiedShadow(title) && !confirmEditShadow(title)) {
+ return false;
+ }
+ // Replace the specified tiddler with a draft in edit mode
+ var draftTiddler = this.makeDraftTiddler(title);
+ // Update the story and history if required
+ if(!event.paramObject || event.paramObject.suppressNavigation !== "yes") {
+ var draftTitle = draftTiddler.fields.title,
+ storyList = this.getStoryList();
+ this.removeTitleFromStory(storyList,draftTitle);
+ this.replaceFirstTitleInStory(storyList,title,draftTitle);
+ this.addToHistory(draftTitle,event.navigateFromClientRect);
+ this.saveStoryList(storyList);
+ return false;
+ }
+};
+
+// Delete a tiddler
+NavigatorWidget.prototype.handleDeleteTiddlerEvent = function(event) {
+ // Get the tiddler we're deleting
+ var title = event.param || event.tiddlerTitle,
+ tiddler = this.wiki.getTiddler(title),
+ storyList = this.getStoryList(),
+ originalTitle = tiddler ? tiddler.fields["draft.of"] : "",
+ originalTiddler = originalTitle ? this.wiki.getTiddler(originalTitle) : undefined,
+ confirmationTitle;
+ if(!tiddler) {
+ return false;
+ }
+ // Check if the tiddler we're deleting is in draft mode
+ if(originalTitle) {
+ // If so, we'll prompt for confirmation referencing the original tiddler
+ confirmationTitle = originalTitle;
+ } else {
+ // If not a draft, then prompt for confirmation referencing the specified tiddler
+ confirmationTitle = title;
+ }
+ // Seek confirmation
+ if((this.wiki.getTiddler(originalTitle) || (tiddler.fields.text || "") !== "") && !confirm($tw.language.getString(
+ "ConfirmDeleteTiddler",
+ {variables:
+ {title: confirmationTitle}
+ }
+ ))) {
+ return false;
+ }
+ // Delete the original tiddler
+ if(originalTitle) {
+ if(originalTiddler) {
+ $tw.hooks.invokeHook("th-deleting-tiddler",originalTiddler);
+ }
+ this.wiki.deleteTiddler(originalTitle);
+ this.removeTitleFromStory(storyList,originalTitle);
+ }
+ // Invoke the hook function and delete this tiddler
+ $tw.hooks.invokeHook("th-deleting-tiddler",tiddler);
+ this.wiki.deleteTiddler(title);
+ // Remove the closed tiddler from the story
+ this.removeTitleFromStory(storyList,title);
+ this.saveStoryList(storyList);
+ // Trigger an autosave
+ $tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"});
+ return false;
+};
+
+/*
+Create/reuse the draft tiddler for a given title
+*/
+NavigatorWidget.prototype.makeDraftTiddler = function(targetTitle) {
+ // See if there is already a draft tiddler for this tiddler
+ var draftTitle = this.wiki.findDraft(targetTitle);
+ if(draftTitle) {
+ return this.wiki.getTiddler(draftTitle);
+ }
+ // Get the current value of the tiddler we're editing
+ var tiddler = this.wiki.getTiddler(targetTitle);
+ // Save the initial value of the draft tiddler
+ draftTitle = this.generateDraftTitle(targetTitle);
+ var draftTiddler = new $tw.Tiddler(
+ tiddler,
+ {
+ title: draftTitle,
+ "draft.title": targetTitle,
+ "draft.of": targetTitle
+ },
+ this.wiki.getModificationFields()
+ );
+ this.wiki.addTiddler(draftTiddler);
+ return draftTiddler;
+};
+
+/*
+Generate a title for the draft of a given tiddler
+*/
+NavigatorWidget.prototype.generateDraftTitle = function(title) {
+ return this.wiki.generateDraftTitle(title);
+};
+
+// Take a tiddler out of edit mode, saving the changes
+NavigatorWidget.prototype.handleSaveTiddlerEvent = function(event) {
+ var title = event.param || event.tiddlerTitle,
+ tiddler = this.wiki.getTiddler(title),
+ storyList = this.getStoryList();
+ // Replace the original tiddler with the draft
+ if(tiddler) {
+ var draftTitle = (tiddler.fields["draft.title"] || "").trim(),
+ draftOf = (tiddler.fields["draft.of"] || "").trim();
+ if(draftTitle) {
+ var isRename = draftOf !== draftTitle,
+ isConfirmed = true;
+ if(isRename && this.wiki.tiddlerExists(draftTitle)) {
+ isConfirmed = confirm($tw.language.getString(
+ "ConfirmOverwriteTiddler",
+ {variables:
+ {title: draftTitle}
+ }
+ ));
+ }
+ if(isConfirmed) {
+ // Create the new tiddler and pass it through the th-saving-tiddler hook
+ var newTiddler = new $tw.Tiddler(this.wiki.getCreationFields(),tiddler,{
+ title: draftTitle,
+ "draft.title": undefined,
+ "draft.of": undefined
+ },this.wiki.getModificationFields());
+ newTiddler = $tw.hooks.invokeHook("th-saving-tiddler",newTiddler);
+ this.wiki.addTiddler(newTiddler);
+ // If enabled, relink references to renamed tiddler
+ var shouldRelink = this.getAttribute("relinkOnRename","no").toLowerCase().trim() === "yes";
+ if(isRename && shouldRelink && this.wiki.tiddlerExists(draftOf)) {
+console.log("Relinking '" + draftOf + "' to '" + draftTitle + "'");
+ this.wiki.relinkTiddler(draftOf,draftTitle);
+ }
+ // Remove the draft tiddler
+ this.wiki.deleteTiddler(title);
+ // Remove the original tiddler if we're renaming it
+ if(isRename) {
+ this.wiki.deleteTiddler(draftOf);
+ }
+ // #2381 always remove new title & old
+ this.removeTitleFromStory(storyList,draftTitle);
+ this.removeTitleFromStory(storyList,draftOf);
+ if(!event.paramObject || event.paramObject.suppressNavigation !== "yes") {
+ // Replace the draft in the story with the original
+ this.replaceFirstTitleInStory(storyList,title,draftTitle);
+ this.addToHistory(draftTitle,event.navigateFromClientRect);
+ if(draftTitle !== this.storyTitle) {
+ this.saveStoryList(storyList);
+ }
+ }
+ // Trigger an autosave
+ $tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"});
+ }
+ }
+ }
+ return false;
+};
+
+// Take a tiddler out of edit mode without saving the changes
+NavigatorWidget.prototype.handleCancelTiddlerEvent = function(event) {
+ event = $tw.hooks.invokeHook("th-cancelling-tiddler", event);
+ // Flip the specified tiddler from draft back to the original
+ var draftTitle = event.param || event.tiddlerTitle,
+ draftTiddler = this.wiki.getTiddler(draftTitle),
+ originalTitle = draftTiddler && draftTiddler.fields["draft.of"];
+ if(draftTiddler && originalTitle) {
+ // Ask for confirmation if the tiddler text has changed
+ var isConfirmed = true,
+ originalTiddler = this.wiki.getTiddler(originalTitle),
+ storyList = this.getStoryList();
+ if(this.wiki.isDraftModified(draftTitle)) {
+ isConfirmed = confirm($tw.language.getString(
+ "ConfirmCancelTiddler",
+ {variables:
+ {title: draftTitle}
+ }
+ ));
+ }
+ // Remove the draft tiddler
+ if(isConfirmed) {
+ this.wiki.deleteTiddler(draftTitle);
+ if(!event.paramObject || event.paramObject.suppressNavigation !== "yes") {
+ if(originalTiddler) {
+ this.replaceFirstTitleInStory(storyList,draftTitle,originalTitle);
+ this.addToHistory(originalTitle,event.navigateFromClientRect);
+ } else {
+ this.removeTitleFromStory(storyList,draftTitle);
+ }
+ this.saveStoryList(storyList);
+ }
+ }
+ }
+ return false;
+};
+
+// Create a new draft tiddler
+// event.param can either be the title of a template tiddler, or a hashmap of fields.
+//
+// The title of the newly created tiddler follows these rules:
+// * If a hashmap was used and a title field was specified, use that title
+// * If a hashmap was used without a title field, use a default title, if necessary making it unique with a numeric suffix
+// * If a template tiddler was used, use the title of the template, if necessary making it unique with a numeric suffix
+//
+// If a draft of the target tiddler already exists then it is reused
+NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) {
+ event = $tw.hooks.invokeHook("th-new-tiddler", event);
+ // Get the story details
+ var storyList = this.getStoryList(),
+ templateTiddler, additionalFields, title, draftTitle, existingTiddler;
+ // Get the template tiddler (if any)
+ if(typeof event.param === "string") {
+ // Get the template tiddler
+ templateTiddler = this.wiki.getTiddler(event.param);
+ // Generate a new title
+ title = this.wiki.generateNewTitle(event.param || $tw.language.getString("DefaultNewTiddlerTitle"));
+ }
+ // Get the specified additional fields
+ if(typeof event.paramObject === "object") {
+ additionalFields = event.paramObject;
+ }
+ if(typeof event.param === "object") { // Backwards compatibility with 5.1.3
+ additionalFields = event.param;
+ }
+ if(additionalFields && additionalFields.title) {
+ title = additionalFields.title;
+ }
+ // Make a copy of the additional fields excluding any blank ones
+ var filteredAdditionalFields = $tw.utils.extend({},additionalFields);
+ Object.keys(filteredAdditionalFields).forEach(function(fieldName) {
+ if(filteredAdditionalFields[fieldName] === "") {
+ delete filteredAdditionalFields[fieldName];
+ }
+ });
+ // Generate a title if we don't have one
+ title = title || this.wiki.generateNewTitle($tw.language.getString("DefaultNewTiddlerTitle"));
+ // Find any existing draft for this tiddler
+ draftTitle = this.wiki.findDraft(title);
+ // Pull in any existing tiddler
+ if(draftTitle) {
+ existingTiddler = this.wiki.getTiddler(draftTitle);
+ } else {
+ draftTitle = this.generateDraftTitle(title);
+ existingTiddler = this.wiki.getTiddler(title);
+ }
+ // Merge the tags
+ var mergedTags = [];
+ if(existingTiddler && existingTiddler.fields.tags) {
+ $tw.utils.pushTop(mergedTags,existingTiddler.fields.tags);
+ }
+ if(additionalFields && additionalFields.tags) {
+ // Merge tags
+ mergedTags = $tw.utils.pushTop(mergedTags,$tw.utils.parseStringArray(additionalFields.tags));
+ }
+ if(templateTiddler && templateTiddler.fields.tags) {
+ // Merge tags
+ mergedTags = $tw.utils.pushTop(mergedTags,templateTiddler.fields.tags);
+ }
+ // Save the draft tiddler
+ var draftTiddler = new $tw.Tiddler({
+ text: "",
+ "draft.title": title
+ },
+ templateTiddler,
+ additionalFields,
+ this.wiki.getCreationFields(),
+ existingTiddler,
+ filteredAdditionalFields,
+ {
+ title: draftTitle,
+ "draft.of": title,
+ tags: mergedTags
+ },this.wiki.getModificationFields());
+ this.wiki.addTiddler(draftTiddler);
+ // Update the story to insert the new draft at the top and remove any existing tiddler
+ if(storyList && storyList.indexOf(draftTitle) === -1) {
+ var slot = storyList.indexOf(event.navigateFromTitle);
+ if(slot === -1) {
+ slot = this.getAttribute("openLinkFromOutsideRiver","top") === "bottom" ? storyList.length - 1 : slot;
+ }
+ storyList.splice(slot + 1,0,draftTitle);
+ }
+ if(storyList && storyList.indexOf(title) !== -1) {
+ storyList.splice(storyList.indexOf(title),1);
+ }
+ this.saveStoryList(storyList);
+ // Add a new record to the top of the history stack
+ this.addToHistory(draftTitle);
+ return false;
+};
+
+// Import JSON tiddlers into a pending import tiddler
+NavigatorWidget.prototype.handleImportTiddlersEvent = function(event) {
+ // Get the tiddlers
+ var tiddlers = [];
+ try {
+ tiddlers = JSON.parse(event.param);
+ } catch(e) {
+ }
+ // Get the current $:/Import tiddler
+ var importTiddler = this.wiki.getTiddler(IMPORT_TITLE),
+ importData = this.wiki.getTiddlerData(IMPORT_TITLE,{}),
+ newFields = new Object({
+ title: IMPORT_TITLE,
+ type: "application/json",
+ "plugin-type": "import",
+ "status": "pending"
+ }),
+ incomingTiddlers = [];
+ // Process each tiddler
+ importData.tiddlers = importData.tiddlers || {};
+ $tw.utils.each(tiddlers,function(tiddlerFields) {
+ tiddlerFields.title = $tw.utils.trim(tiddlerFields.title);
+ var title = tiddlerFields.title;
+ if(title) {
+ incomingTiddlers.push(title);
+ importData.tiddlers[title] = tiddlerFields;
+ }
+ });
+ // Give the active upgrader modules a chance to process the incoming tiddlers
+ var messages = this.wiki.invokeUpgraders(incomingTiddlers,importData.tiddlers);
+ $tw.utils.each(messages,function(message,title) {
+ newFields["message-" + title] = message;
+ });
+ // Deselect any suppressed tiddlers
+ $tw.utils.each(importData.tiddlers,function(tiddler,title) {
+ if($tw.utils.count(tiddler) === 0) {
+ newFields["selection-" + title] = "unchecked";
+ }
+ });
+ // Save the $:/Import tiddler
+ newFields.text = JSON.stringify(importData,null,$tw.config.preferences.jsonSpaces);
+ this.wiki.addTiddler(new $tw.Tiddler(importTiddler,newFields));
+ // Update the story and history details
+ if(this.getVariable("tv-auto-open-on-import") !== "no") {
+ var storyList = this.getStoryList(),
+ history = [];
+ // Add it to the story
+ if(storyList && storyList.indexOf(IMPORT_TITLE) === -1) {
+ storyList.unshift(IMPORT_TITLE);
+ }
+ // And to history
+ history.push(IMPORT_TITLE);
+ // Save the updated story and history
+ this.saveStoryList(storyList);
+ this.addToHistory(history);
+ }
+ return false;
+};
+
+//
+NavigatorWidget.prototype.handlePerformImportEvent = function(event) {
+ var self = this,
+ importTiddler = this.wiki.getTiddler(event.param),
+ importData = this.wiki.getTiddlerDataCached(event.param,{tiddlers: {}}),
+ importReport = [];
+ // Add the tiddlers to the store
+ importReport.push($tw.language.getString("Import/Imported/Hint") + "\n");
+ $tw.utils.each(importData.tiddlers,function(tiddlerFields) {
+ var title = tiddlerFields.title;
+ if(title && importTiddler && importTiddler.fields["selection-" + title] !== "unchecked") {
+ var tiddler = new $tw.Tiddler(tiddlerFields);
+ tiddler = $tw.hooks.invokeHook("th-importing-tiddler",tiddler);
+ self.wiki.addTiddler(tiddler);
+ importReport.push("# [[" + tiddlerFields.title + "]]");
+ }
+ });
+ // Replace the $:/Import tiddler with an import report
+ this.wiki.addTiddler(new $tw.Tiddler({
+ title: event.param,
+ text: importReport.join("\n"),
+ "status": "complete"
+ }));
+ // Navigate to the $:/Import tiddler
+ this.addToHistory([event.param]);
+ // Trigger an autosave
+ $tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"});
+};
+
+NavigatorWidget.prototype.handleFoldTiddlerEvent = function(event) {
+ var paramObject = event.paramObject || {};
+ if(paramObject.foldedState) {
+ var foldedState = this.wiki.getTiddlerText(paramObject.foldedState,"show") === "show" ? "hide" : "show";
+ this.wiki.setText(paramObject.foldedState,"text",null,foldedState);
+ }
+};
+
+NavigatorWidget.prototype.handleFoldOtherTiddlersEvent = function(event) {
+ var self = this,
+ paramObject = event.paramObject || {},
+ prefix = paramObject.foldedStatePrefix;
+ $tw.utils.each(this.getStoryList(),function(title) {
+ self.wiki.setText(prefix + title,"text",null,event.param === title ? "show" : "hide");
+ });
+};
+
+NavigatorWidget.prototype.handleFoldAllTiddlersEvent = function(event) {
+ var self = this,
+ paramObject = event.paramObject || {},
+ prefix = paramObject.foldedStatePrefix || "$:/state/folded/";
+ $tw.utils.each(this.getStoryList(),function(title) {
+ self.wiki.setText(prefix + title,"text",null,"hide");
+ });
+};
+
+NavigatorWidget.prototype.handleUnfoldAllTiddlersEvent = function(event) {
+ var self = this,
+ paramObject = event.paramObject || {},
+ prefix = paramObject.foldedStatePrefix;
+ $tw.utils.each(this.getStoryList(),function(title) {
+ self.wiki.setText(prefix + title,"text",null,"show");
+ });
+};
+
+NavigatorWidget.prototype.handleRenameTiddlerEvent = function(event) {
+ var paramObject = event.paramObject || {},
+ from = paramObject.from || event.tiddlerTitle,
+ to = paramObject.to;
+ this.wiki.renameTiddler(from,to);
+};
+
+exports.navigator = NavigatorWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/password.js
+type: application/javascript
+module-type: widget
+
+Password widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var PasswordWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+PasswordWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+PasswordWidget.prototype.render = function(parent,nextSibling) {
+ // Save the parent dom node
+ this.parentDomNode = parent;
+ // Compute our attributes
+ this.computeAttributes();
+ // Execute our logic
+ this.execute();
+ // Get the current password
+ var password = $tw.browser ? $tw.utils.getPassword(this.passwordName) || "" : "";
+ // Create our element
+ var domNode = this.document.createElement("input");
+ domNode.setAttribute("type","password");
+ domNode.setAttribute("value",password);
+ // Add a click event handler
+ $tw.utils.addEventListeners(domNode,[
+ {name: "change", handlerObject: this, handlerMethod: "handleChangeEvent"}
+ ]);
+ // Insert the label into the DOM and render any children
+ parent.insertBefore(domNode,nextSibling);
+ this.renderChildren(domNode,null);
+ this.domNodes.push(domNode);
+};
+
+PasswordWidget.prototype.handleChangeEvent = function(event) {
+ var password = this.domNodes[0].value;
+ return $tw.utils.savePassword(this.passwordName,password);
+};
+
+/*
+Compute the internal state of the widget
+*/
+PasswordWidget.prototype.execute = function() {
+ // Get the parameters from the attributes
+ this.passwordName = this.getAttribute("name","");
+ // Make the child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+PasswordWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.name) {
+ this.refreshSelf();
+ return true;
+ } else {
+ return this.refreshChildren(changedTiddlers);
+ }
+};
+
+exports.password = PasswordWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/qualify.js
+type: application/javascript
+module-type: widget
+
+Qualify text to a variable
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var QualifyWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+QualifyWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+QualifyWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+};
+
+/*
+Compute the internal state of the widget
+*/
+QualifyWidget.prototype.execute = function() {
+ // Get our parameters
+ this.qualifyName = this.getAttribute("name");
+ this.qualifyTitle = this.getAttribute("title");
+ // Set context variable
+ if(this.qualifyName) {
+ this.setVariable(this.qualifyName,this.qualifyTitle + "-" + this.getStateQualifier());
+ }
+ // Construct the child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+QualifyWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.name || changedAttributes.title) {
+ this.refreshSelf();
+ return true;
+ } else {
+ return this.refreshChildren(changedTiddlers);
+ }
+};
+
+exports.qualify = QualifyWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/radio.js
+type: application/javascript
+module-type: widget
+
+Set a field or index at a given tiddler via radio buttons
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var RadioWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+RadioWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+RadioWidget.prototype.render = function(parent,nextSibling) {
+ // Save the parent dom node
+ this.parentDomNode = parent;
+ // Compute our attributes
+ this.computeAttributes();
+ // Execute our logic
+ this.execute();
+ var isChecked = this.getValue() === this.radioValue;
+ // Create our elements
+ this.labelDomNode = this.document.createElement("label");
+ this.labelDomNode.setAttribute("class",
+ "tc-radio " + this.radioClass + (isChecked ? " tc-radio-selected" : "")
+ );
+ this.inputDomNode = this.document.createElement("input");
+ this.inputDomNode.setAttribute("type","radio");
+ if(isChecked) {
+ this.inputDomNode.setAttribute("checked","true");
+ }
+ this.labelDomNode.appendChild(this.inputDomNode);
+ this.spanDomNode = this.document.createElement("span");
+ this.labelDomNode.appendChild(this.spanDomNode);
+ // Add a click event handler
+ $tw.utils.addEventListeners(this.inputDomNode,[
+ {name: "change", handlerObject: this, handlerMethod: "handleChangeEvent"}
+ ]);
+ // Insert the label into the DOM and render any children
+ parent.insertBefore(this.labelDomNode,nextSibling);
+ this.renderChildren(this.spanDomNode,null);
+ this.domNodes.push(this.labelDomNode);
+};
+
+RadioWidget.prototype.getValue = function() {
+ var value,
+ tiddler = this.wiki.getTiddler(this.radioTitle);
+ if (this.radioIndex) {
+ value = this.wiki.extractTiddlerDataItem(this.radioTitle,this.radioIndex);
+ } else {
+ value = tiddler && tiddler.getFieldString(this.radioField);
+ }
+ return value;
+};
+
+RadioWidget.prototype.setValue = function() {
+ if(this.radioIndex) {
+ this.wiki.setText(this.radioTitle,"",this.radioIndex,this.radioValue);
+ } else {
+ var tiddler = this.wiki.getTiddler(this.radioTitle),
+ addition = {};
+ addition[this.radioField] = this.radioValue;
+ this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),{title: this.radioTitle},tiddler,addition,this.wiki.getModificationFields()));
+ }
+};
+
+RadioWidget.prototype.handleChangeEvent = function(event) {
+ if(this.inputDomNode.checked) {
+ this.setValue();
+ }
+};
+
+/*
+Compute the internal state of the widget
+*/
+RadioWidget.prototype.execute = function() {
+ // Get the parameters from the attributes
+ this.radioTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
+ this.radioField = this.getAttribute("field","text");
+ this.radioIndex = this.getAttribute("index");
+ this.radioValue = this.getAttribute("value");
+ this.radioClass = this.getAttribute("class","");
+ // Make the child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+RadioWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.value || changedAttributes["class"]) {
+ this.refreshSelf();
+ return true;
+ } else {
+ var refreshed = false;
+ if(changedTiddlers[this.radioTitle]) {
+ this.inputDomNode.checked = this.getValue() === this.radioValue;
+ refreshed = true;
+ }
+ return this.refreshChildren(changedTiddlers) || refreshed;
+ }
+};
+
+exports.radio = RadioWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/range.js
+type: application/javascript
+module-type: widget
+
+Range widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var RangeWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+RangeWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+RangeWidget.prototype.render = function(parent,nextSibling) {
+ // Save the parent dom node
+ this.parentDomNode = parent;
+ // Compute our attributes
+ this.computeAttributes();
+ // Execute our logic
+ this.execute();
+ // Create our elements
+ this.inputDomNode = this.document.createElement("input");
+ this.inputDomNode.setAttribute("type","range");
+ this.inputDomNode.setAttribute("class",this.elementClass);
+ if(this.minValue){
+ this.inputDomNode.setAttribute("min", this.minValue);
+ }
+ if(this.maxValue){
+ this.inputDomNode.setAttribute("max", this.maxValue);
+ }
+ if(this.increment){
+ this.inputDomNode.setAttribute("step", this.increment);
+ }
+ this.inputDomNode.value = this.getValue();
+ // Add a click event handler
+ $tw.utils.addEventListeners(this.inputDomNode,[
+ {name: "input", handlerObject: this, handlerMethod: "handleInputEvent"},
+ {name: "change", handlerObject: this, handlerMethod: "handleInputEvent"}
+ ]);
+ // Insert the label into the DOM and render any children
+ parent.insertBefore(this.inputDomNode,nextSibling);
+ this.domNodes.push(this.inputDomNode);
+};
+
+RangeWidget.prototype.getValue = function() {
+ var tiddler = this.wiki.getTiddler(this.tiddlerTitle),
+ fieldName = this.tiddlerField || "text",
+ value = this.defaultValue;
+ if(tiddler) {
+ if(this.tiddlerIndex) {
+ value = this.wiki.extractTiddlerDataItem(tiddler,this.tiddlerIndex,this.defaultValue || "");
+ } else {
+ if($tw.utils.hop(tiddler.fields,fieldName)) {
+ value = tiddler.fields[fieldName] || "";
+ } else {
+ value = this.defaultValue || "";
+ }
+ }
+ }
+ return value;
+};
+
+RangeWidget.prototype.handleInputEvent = function(event) {
+ if(this.getValue() !== this.inputDomNode.value) {
+ if(this.tiddlerIndex) {
+ this.wiki.setText(this.tiddlerTitle,"",this.tiddlerIndex,this.inputDomNode.value);
+ } else {
+ this.wiki.setText(this.tiddlerTitle,this.tiddlerField,null,this.inputDomNode.value);
+ }
+ }
+};
+
+/*
+Compute the internal state of the widget
+*/
+RangeWidget.prototype.execute = function() {
+ // Get the parameters from the attributes
+ this.tiddlerTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
+ this.tiddlerField = this.getAttribute("field");
+ this.tiddlerIndex = this.getAttribute("index");
+ this.minValue = this.getAttribute("min");
+ this.maxValue = this.getAttribute("max");
+ this.increment = this.getAttribute("increment");
+ this.defaultValue = this.getAttribute("default");
+ this.elementClass = this.getAttribute("class","");
+ // Make the child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+RangeWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes['min'] || changedAttributes['max'] || changedAttributes['increment'] || changedAttributes["default"] || changedAttributes["class"]) {
+ this.refreshSelf();
+ return true;
+ } else {
+ var refreshed = false;
+ if(changedTiddlers[this.tiddlerTitle]) {
+ var value = this.getValue();
+ if(this.inputDomNode.value !== value) {
+ this.inputDomNode.value = value;
+ }
+ refreshed = true;
+ }
+ return this.refreshChildren(changedTiddlers) || refreshed;
+ }
+};
+
+exports.range = RangeWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/raw.js
+type: application/javascript
+module-type: widget
+
+Raw widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var RawWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+RawWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+RawWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.execute();
+ var div = this.document.createElement("div");
+ div.innerHTML=this.parseTreeNode.html;
+ parent.insertBefore(div,nextSibling);
+ this.domNodes.push(div);
+};
+
+/*
+Compute the internal state of the widget
+*/
+RawWidget.prototype.execute = function() {
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+RawWidget.prototype.refresh = function(changedTiddlers) {
+ return false;
+};
+
+exports.raw = RawWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/reveal.js
+type: application/javascript
+module-type: widget
+
+Reveal widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var RevealWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+RevealWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+RevealWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ var tag = this.parseTreeNode.isBlock ? "div" : "span";
+ if(this.revealTag && $tw.config.htmlUnsafeElements.indexOf(this.revealTag) === -1) {
+ tag = this.revealTag;
+ }
+ var domNode = this.document.createElement(tag);
+ var classes = this["class"].split(" ") || [];
+ classes.push("tc-reveal");
+ domNode.className = classes.join(" ");
+ if(this.style) {
+ domNode.setAttribute("style",this.style);
+ }
+ parent.insertBefore(domNode,nextSibling);
+ this.renderChildren(domNode,null);
+ if(!domNode.isTiddlyWikiFakeDom && this.type === "popup" && this.isOpen) {
+ this.positionPopup(domNode);
+ $tw.utils.addClass(domNode,"tc-popup"); // Make sure that clicks don't dismiss popups within the revealed content
+ }
+ if(!this.isOpen) {
+ domNode.setAttribute("hidden","true");
+ }
+ this.domNodes.push(domNode);
+};
+
+RevealWidget.prototype.positionPopup = function(domNode) {
+ domNode.style.position = "absolute";
+ domNode.style.zIndex = "1000";
+ var left,top;
+ switch(this.position) {
+ case "left":
+ left = this.popup.left - domNode.offsetWidth;
+ top = this.popup.top;
+ break;
+ case "above":
+ left = this.popup.left;
+ top = this.popup.top - domNode.offsetHeight;
+ break;
+ case "aboveright":
+ left = this.popup.left + this.popup.width;
+ top = this.popup.top + this.popup.height - domNode.offsetHeight;
+ break;
+ case "right":
+ left = this.popup.left + this.popup.width;
+ top = this.popup.top;
+ break;
+ case "belowleft":
+ left = this.popup.left + this.popup.width - domNode.offsetWidth;
+ top = this.popup.top + this.popup.height;
+ break;
+ default: // Below
+ left = this.popup.left;
+ top = this.popup.top + this.popup.height;
+ break;
+ }
+ if(!this.positionAllowNegative) {
+ left = Math.max(0,left);
+ top = Math.max(0,top);
+ }
+ domNode.style.left = left + "px";
+ domNode.style.top = top + "px";
+};
+
+/*
+Compute the internal state of the widget
+*/
+RevealWidget.prototype.execute = function() {
+ // Get our parameters
+ this.state = this.getAttribute("state");
+ this.revealTag = this.getAttribute("tag");
+ this.type = this.getAttribute("type");
+ this.text = this.getAttribute("text");
+ this.position = this.getAttribute("position");
+ this.positionAllowNegative = this.getAttribute("positionAllowNegative") === "yes";
+ this["class"] = this.getAttribute("class","");
+ this.style = this.getAttribute("style","");
+ this["default"] = this.getAttribute("default","");
+ this.animate = this.getAttribute("animate","no");
+ this.retain = this.getAttribute("retain","no");
+ this.openAnimation = this.animate === "no" ? undefined : "open";
+ this.closeAnimation = this.animate === "no" ? undefined : "close";
+ // Compute the title of the state tiddler and read it
+ this.stateTiddlerTitle = this.state;
+ this.stateTitle = this.getAttribute("stateTitle");
+ this.stateField = this.getAttribute("stateField");
+ this.stateIndex = this.getAttribute("stateIndex");
+ this.readState();
+ // Construct the child widgets
+ var childNodes = this.isOpen ? this.parseTreeNode.children : [];
+ this.hasChildNodes = this.isOpen;
+ this.makeChildWidgets(childNodes);
+};
+
+/*
+Read the state tiddler
+*/
+RevealWidget.prototype.readState = function() {
+ // Read the information from the state tiddler
+ var state,
+ defaultState = this["default"];
+ if(this.stateTitle) {
+ var stateTitleTiddler = this.wiki.getTiddler(this.stateTitle);
+ if(this.stateField) {
+ state = stateTitleTiddler ? stateTitleTiddler.getFieldString(this.stateField) || defaultState : defaultState;
+ } else if(this.stateIndex) {
+ state = stateTitleTiddler ? this.wiki.extractTiddlerDataItem(this.stateTitle,this.stateIndex) || defaultState : defaultState;
+ } else if(stateTitleTiddler) {
+ state = this.wiki.getTiddlerText(this.stateTitle) || defaultState;
+ } else {
+ state = defaultState;
+ }
+ } else {
+ state = this.stateTiddlerTitle ? this.wiki.getTextReference(this.state,this["default"],this.getVariable("currentTiddler")) : this["default"];
+ }
+ if(state === null) {
+ state = this["default"];
+ }
+ switch(this.type) {
+ case "popup":
+ this.readPopupState(state);
+ break;
+ case "match":
+ this.isOpen = this.text === state;
+ break;
+ case "nomatch":
+ this.isOpen = this.text !== state;
+ break;
+ case "lt":
+ this.isOpen = !!(this.compareStateText(state) < 0);
+ break;
+ case "gt":
+ this.isOpen = !!(this.compareStateText(state) > 0);
+ break;
+ case "lteq":
+ this.isOpen = !(this.compareStateText(state) > 0);
+ break;
+ case "gteq":
+ this.isOpen = !(this.compareStateText(state) < 0);
+ break;
+ }
+};
+
+RevealWidget.prototype.compareStateText = function(state) {
+ return state.localeCompare(this.text,undefined,{numeric: true,sensitivity: "case"});
+};
+
+RevealWidget.prototype.readPopupState = function(state) {
+ var popupLocationRegExp = /^\((-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+)\)$/,
+ match = popupLocationRegExp.exec(state);
+ // Check if the state matches the location regexp
+ if(match) {
+ // If so, we're open
+ this.isOpen = true;
+ // Get the location
+ this.popup = {
+ left: parseFloat(match[1]),
+ top: parseFloat(match[2]),
+ width: parseFloat(match[3]),
+ height: parseFloat(match[4])
+ };
+ } else {
+ // If not, we're closed
+ this.isOpen = false;
+ }
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+RevealWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.state || changedAttributes.type || changedAttributes.text || changedAttributes.position || changedAttributes.positionAllowNegative || changedAttributes["default"] || changedAttributes.animate || changedAttributes.stateTitle || changedAttributes.stateField || changedAttributes.stateIndex) {
+ this.refreshSelf();
+ return true;
+ } else {
+ var currentlyOpen = this.isOpen;
+ this.readState();
+ if(this.isOpen !== currentlyOpen) {
+ if(this.retain === "yes") {
+ this.updateState();
+ } else {
+ this.refreshSelf();
+ return true;
+ }
+ }
+ return this.refreshChildren(changedTiddlers);
+ }
+};
+
+/*
+Called by refresh() to dynamically show or hide the content
+*/
+RevealWidget.prototype.updateState = function() {
+ var self = this;
+ // Read the current state
+ this.readState();
+ // Construct the child nodes if needed
+ var domNode = this.domNodes[0];
+ if(this.isOpen && !this.hasChildNodes) {
+ this.hasChildNodes = true;
+ this.makeChildWidgets(this.parseTreeNode.children);
+ this.renderChildren(domNode,null);
+ }
+ // Animate our DOM node
+ if(!domNode.isTiddlyWikiFakeDom && this.type === "popup" && this.isOpen) {
+ this.positionPopup(domNode);
+ $tw.utils.addClass(domNode,"tc-popup"); // Make sure that clicks don't dismiss popups within the revealed content
+
+ }
+ if(this.isOpen) {
+ domNode.removeAttribute("hidden");
+ $tw.anim.perform(this.openAnimation,domNode);
+ } else {
+ $tw.anim.perform(this.closeAnimation,domNode,{callback: function() {
+ //make sure that the state hasn't changed during the close animation
+ self.readState()
+ if(!self.isOpen) {
+ domNode.setAttribute("hidden","true");
+ }
+ }});
+ }
+};
+
+exports.reveal = RevealWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/scrollable.js
+type: application/javascript
+module-type: widget
+
+Scrollable widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var ScrollableWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+ this.scaleFactor = 1;
+ this.addEventListeners([
+ {type: "tm-scroll", handler: "handleScrollEvent"}
+ ]);
+ if($tw.browser) {
+ this.requestAnimationFrame = window.requestAnimationFrame ||
+ window.webkitRequestAnimationFrame ||
+ window.mozRequestAnimationFrame ||
+ function(callback) {
+ return window.setTimeout(callback, 1000/60);
+ };
+ this.cancelAnimationFrame = window.cancelAnimationFrame ||
+ window.webkitCancelAnimationFrame ||
+ window.webkitCancelRequestAnimationFrame ||
+ window.mozCancelAnimationFrame ||
+ window.mozCancelRequestAnimationFrame ||
+ function(id) {
+ window.clearTimeout(id);
+ };
+ }
+};
+
+/*
+Inherit from the base widget class
+*/
+ScrollableWidget.prototype = new Widget();
+
+ScrollableWidget.prototype.cancelScroll = function() {
+ if(this.idRequestFrame) {
+ this.cancelAnimationFrame.call(window,this.idRequestFrame);
+ this.idRequestFrame = null;
+ }
+};
+
+/*
+Handle a scroll event
+*/
+ScrollableWidget.prototype.handleScrollEvent = function(event) {
+ // Pass the scroll event through if our offsetsize is larger than our scrollsize
+ if(this.outerDomNode.scrollWidth <= this.outerDomNode.offsetWidth && this.outerDomNode.scrollHeight <= this.outerDomNode.offsetHeight && this.fallthrough === "yes") {
+ return true;
+ }
+ this.scrollIntoView(event.target);
+ return false; // Handled event
+};
+
+/*
+Scroll an element into view
+*/
+ScrollableWidget.prototype.scrollIntoView = function(element) {
+ var duration = $tw.utils.getAnimationDuration();
+ this.cancelScroll();
+ this.startTime = Date.now();
+ var scrollPosition = {
+ x: this.outerDomNode.scrollLeft,
+ y: this.outerDomNode.scrollTop
+ };
+ // Get the client bounds of the element and adjust by the scroll position
+ var scrollableBounds = this.outerDomNode.getBoundingClientRect(),
+ clientTargetBounds = element.getBoundingClientRect(),
+ bounds = {
+ left: clientTargetBounds.left + scrollPosition.x - scrollableBounds.left,
+ top: clientTargetBounds.top + scrollPosition.y - scrollableBounds.top,
+ width: clientTargetBounds.width,
+ height: clientTargetBounds.height
+ };
+ // We'll consider the horizontal and vertical scroll directions separately via this function
+ var getEndPos = function(targetPos,targetSize,currentPos,currentSize) {
+ // If the target is already visible then stay where we are
+ if(targetPos >= currentPos && (targetPos + targetSize) <= (currentPos + currentSize)) {
+ return currentPos;
+ // If the target is above/left of the current view, then scroll to its top/left
+ } else if(targetPos <= currentPos) {
+ return targetPos;
+ // If the target is smaller than the window and the scroll position is too far up, then scroll till the target is at the bottom of the window
+ } else if(targetSize < currentSize && currentPos < (targetPos + targetSize - currentSize)) {
+ return targetPos + targetSize - currentSize;
+ // If the target is big, then just scroll to the top
+ } else if(currentPos < targetPos) {
+ return targetPos;
+ // Otherwise, stay where we are
+ } else {
+ return currentPos;
+ }
+ },
+ endX = getEndPos(bounds.left,bounds.width,scrollPosition.x,this.outerDomNode.offsetWidth),
+ endY = getEndPos(bounds.top,bounds.height,scrollPosition.y,this.outerDomNode.offsetHeight);
+ // Only scroll if necessary
+ if(endX !== scrollPosition.x || endY !== scrollPosition.y) {
+ var self = this,
+ drawFrame;
+ drawFrame = function () {
+ var t;
+ if(duration <= 0) {
+ t = 1;
+ } else {
+ t = ((Date.now()) - self.startTime) / duration;
+ }
+ if(t >= 1) {
+ self.cancelScroll();
+ t = 1;
+ }
+ t = $tw.utils.slowInSlowOut(t);
+ self.outerDomNode.scrollLeft = scrollPosition.x + (endX - scrollPosition.x) * t;
+ self.outerDomNode.scrollTop = scrollPosition.y + (endY - scrollPosition.y) * t;
+ if(t < 1) {
+ self.idRequestFrame = self.requestAnimationFrame.call(window,drawFrame);
+ }
+ };
+ drawFrame();
+ }
+};
+
+/*
+Render this widget into the DOM
+*/
+ScrollableWidget.prototype.render = function(parent,nextSibling) {
+ var self = this;
+ // Remember parent
+ this.parentDomNode = parent;
+ // Compute attributes and execute state
+ this.computeAttributes();
+ this.execute();
+ // Create elements
+ this.outerDomNode = this.document.createElement("div");
+ $tw.utils.setStyle(this.outerDomNode,[
+ {overflowY: "auto"},
+ {overflowX: "auto"},
+ {webkitOverflowScrolling: "touch"}
+ ]);
+ this.innerDomNode = this.document.createElement("div");
+ this.outerDomNode.appendChild(this.innerDomNode);
+ // Assign classes
+ this.outerDomNode.className = this["class"] || "";
+ // Insert element
+ parent.insertBefore(this.outerDomNode,nextSibling);
+ this.renderChildren(this.innerDomNode,null);
+ this.domNodes.push(this.outerDomNode);
+};
+
+/*
+Compute the internal state of the widget
+*/
+ScrollableWidget.prototype.execute = function() {
+ // Get attributes
+ this.fallthrough = this.getAttribute("fallthrough","yes");
+ this["class"] = this.getAttribute("class");
+ // Make child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+ScrollableWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes["class"]) {
+ this.refreshSelf();
+ return true;
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+
+exports.scrollable = ScrollableWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/select.js
+type: application/javascript
+module-type: widget
+
+Select widget:
+
+```
+<$select tiddler="MyTiddler" field="text">
+<$list filter="[tag[chapter]]">
+<option value=<<currentTiddler>>>
+<$view field="description"/>
+</option>
+</$list>
+</$select>
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var SelectWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+SelectWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+SelectWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+ this.setSelectValue();
+ $tw.utils.addEventListeners(this.getSelectDomNode(),[
+ {name: "change", handlerObject: this, handlerMethod: "handleChangeEvent"}
+ ]);
+};
+
+/*
+Handle a change event
+*/
+SelectWidget.prototype.handleChangeEvent = function(event) {
+ // Get the new value and assign it to the tiddler
+ if(this.selectMultiple == false) {
+ var value = this.getSelectDomNode().value;
+ } else {
+ var value = this.getSelectValues()
+ value = $tw.utils.stringifyList(value);
+ }
+ this.wiki.setText(this.selectTitle,this.selectField,this.selectIndex,value);
+ // Trigger actions
+ if(this.selectActions) {
+ this.invokeActionString(this.selectActions,this,event);
+ }
+};
+
+/*
+If necessary, set the value of the select element to the current value
+*/
+SelectWidget.prototype.setSelectValue = function() {
+ var value = this.selectDefault;
+ // Get the value
+ if(this.selectIndex) {
+ value = this.wiki.extractTiddlerDataItem(this.selectTitle,this.selectIndex,value);
+ } else {
+ var tiddler = this.wiki.getTiddler(this.selectTitle);
+ if(tiddler) {
+ if(this.selectField === "text") {
+ // Calling getTiddlerText() triggers lazy loading of skinny tiddlers
+ value = this.wiki.getTiddlerText(this.selectTitle);
+ } else {
+ if($tw.utils.hop(tiddler.fields,this.selectField)) {
+ value = tiddler.getFieldString(this.selectField);
+ }
+ }
+ } else {
+ if(this.selectField === "title") {
+ value = this.selectTitle;
+ }
+ }
+ }
+ // Assign it to the select element if it's different than the current value
+ if (this.selectMultiple) {
+ value = value === undefined ? "" : value;
+ var select = this.getSelectDomNode();
+ var values = Array.isArray(value) ? value : $tw.utils.parseStringArray(value);
+ for(var i=0; i < select.children.length; i++){
+ select.children[i].selected = values.indexOf(select.children[i].value) !== -1
+ }
+ } else {
+ var domNode = this.getSelectDomNode();
+ if(domNode.value !== value) {
+ domNode.value = value;
+ }
+ }
+};
+
+/*
+Get the DOM node of the select element
+*/
+SelectWidget.prototype.getSelectDomNode = function() {
+ return this.children[0].domNodes[0];
+};
+
+// Return an array of the selected opion values
+// select is an HTML select element
+SelectWidget.prototype.getSelectValues = function() {
+ var select, result, options, opt;
+ select = this.getSelectDomNode();
+ result = [];
+ options = select && select.options;
+ for (var i=0; i<options.length; i++) {
+ opt = options[i];
+ if (opt.selected) {
+ result.push(opt.value || opt.text);
+ }
+ }
+ return result;
+}
+
+/*
+Compute the internal state of the widget
+*/
+SelectWidget.prototype.execute = function() {
+ // Get our parameters
+ this.selectActions = this.getAttribute("actions");
+ this.selectTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
+ this.selectField = this.getAttribute("field","text");
+ this.selectIndex = this.getAttribute("index");
+ this.selectClass = this.getAttribute("class");
+ this.selectDefault = this.getAttribute("default");
+ this.selectMultiple = this.getAttribute("multiple", false);
+ this.selectSize = this.getAttribute("size");
+ this.selectTooltip = this.getAttribute("tooltip");
+ // Make the child widgets
+ var selectNode = {
+ type: "element",
+ tag: "select",
+ children: this.parseTreeNode.children
+ };
+ if(this.selectClass) {
+ $tw.utils.addAttributeToParseTreeNode(selectNode,"class",this.selectClass);
+ }
+ if(this.selectMultiple) {
+ $tw.utils.addAttributeToParseTreeNode(selectNode,"multiple","multiple");
+ }
+ if(this.selectSize) {
+ $tw.utils.addAttributeToParseTreeNode(selectNode,"size",this.selectSize);
+ }
+ if(this.selectTooltip) {
+ $tw.utils.addAttributeToParseTreeNode(selectNode,"title",this.selectTooltip);
+ }
+ this.makeChildWidgets([selectNode]);
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+SelectWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ // If we're using a different tiddler/field/index then completely refresh ourselves
+ if(changedAttributes.selectTitle || changedAttributes.selectField || changedAttributes.selectIndex || changedAttributes.selectTooltip) {
+ this.refreshSelf();
+ return true;
+ // If the target tiddler value has changed, just update setting and refresh the children
+ } else {
+ var childrenRefreshed = this.refreshChildren(changedTiddlers);
+ if(changedTiddlers[this.selectTitle] || childrenRefreshed) {
+ this.setSelectValue();
+ }
+ return childrenRefreshed;
+ }
+};
+
+exports.select = SelectWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/set.js
+type: application/javascript
+module-type: widget
+
+Set variable widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var SetWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+SetWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+SetWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+};
+
+/*
+Compute the internal state of the widget
+*/
+SetWidget.prototype.execute = function() {
+ // Get our parameters
+ this.setName = this.getAttribute("name","currentTiddler");
+ this.setFilter = this.getAttribute("filter");
+ this.setSelect = this.getAttribute("select");
+ this.setTiddler = this.getAttribute("tiddler");
+ this.setSubTiddler = this.getAttribute("subtiddler");
+ this.setField = this.getAttribute("field");
+ this.setIndex = this.getAttribute("index");
+ this.setValue = this.getAttribute("value");
+ this.setEmptyValue = this.getAttribute("emptyValue");
+ // Set context variable
+ this.setVariable(this.setName,this.getValue(),this.parseTreeNode.params,!!this.parseTreeNode.isMacroDefinition);
+ // Construct the child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Get the value to be assigned
+*/
+SetWidget.prototype.getValue = function() {
+ var value = this.setValue;
+ if(this.setTiddler) {
+ var tiddler;
+ if(this.setSubTiddler) {
+ tiddler = this.wiki.getSubTiddler(this.setTiddler,this.setSubTiddler);
+ } else {
+ tiddler = this.wiki.getTiddler(this.setTiddler);
+ }
+ if(!tiddler) {
+ value = this.setEmptyValue;
+ } else if(this.setField) {
+ value = tiddler.getFieldString(this.setField) || this.setEmptyValue;
+ } else if(this.setIndex) {
+ value = this.wiki.extractTiddlerDataItem(this.setTiddler,this.setIndex,this.setEmptyValue);
+ } else {
+ value = tiddler.fields.text || this.setEmptyValue ;
+ }
+ } else if(this.setFilter) {
+ var results = this.wiki.filterTiddlers(this.setFilter,this);
+ if(this.setValue == null) {
+ var select;
+ if(this.setSelect) {
+ select = parseInt(this.setSelect,10);
+ }
+ if(select !== undefined) {
+ value = results[select] || "";
+ } else {
+ value = $tw.utils.stringifyList(results);
+ }
+ }
+ if(results.length === 0 && this.setEmptyValue !== undefined) {
+ value = this.setEmptyValue;
+ }
+ } else if(!value && this.setEmptyValue) {
+ value = this.setEmptyValue;
+ }
+ return value || "";
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+SetWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.name || changedAttributes.filter || changedAttributes.select || changedAttributes.tiddler || (this.setTiddler && changedTiddlers[this.setTiddler]) || changedAttributes.field || changedAttributes.index || changedAttributes.value || changedAttributes.emptyValue ||
+ (this.setFilter && this.getValue() != this.variables[this.setName].value)) {
+ this.refreshSelf();
+ return true;
+ } else {
+ return this.refreshChildren(changedTiddlers);
+ }
+};
+
+exports.setvariable = SetWidget;
+exports.set = SetWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/text.js
+type: application/javascript
+module-type: widget
+
+Text node widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var TextNodeWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+TextNodeWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+TextNodeWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ var text = this.getAttribute("text",this.parseTreeNode.text || "");
+ text = text.replace(/\r/mg,"");
+ var textNode = this.document.createTextNode(text);
+ parent.insertBefore(textNode,nextSibling);
+ this.domNodes.push(textNode);
+};
+
+/*
+Compute the internal state of the widget
+*/
+TextNodeWidget.prototype.execute = function() {
+ // Nothing to do for a text node
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+TextNodeWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.text) {
+ this.refreshSelf();
+ return true;
+ } else {
+ return false;
+ }
+};
+
+exports.text = TextNodeWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/tiddler.js
+type: application/javascript
+module-type: widget
+
+Tiddler widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var TiddlerWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+TiddlerWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+TiddlerWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+};
+
+/*
+Compute the internal state of the widget
+*/
+TiddlerWidget.prototype.execute = function() {
+ this.tiddlerState = this.computeTiddlerState();
+ this.setVariable("currentTiddler",this.tiddlerState.currentTiddler);
+ this.setVariable("missingTiddlerClass",this.tiddlerState.missingTiddlerClass);
+ this.setVariable("shadowTiddlerClass",this.tiddlerState.shadowTiddlerClass);
+ this.setVariable("systemTiddlerClass",this.tiddlerState.systemTiddlerClass);
+ this.setVariable("tiddlerTagClasses",this.tiddlerState.tiddlerTagClasses);
+ // Construct the child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Compute the tiddler state flags
+*/
+TiddlerWidget.prototype.computeTiddlerState = function() {
+ // Get our parameters
+ this.tiddlerTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
+ // Compute the state
+ var state = {
+ currentTiddler: this.tiddlerTitle || "",
+ missingTiddlerClass: (this.wiki.tiddlerExists(this.tiddlerTitle) || this.wiki.isShadowTiddler(this.tiddlerTitle)) ? "tc-tiddler-exists" : "tc-tiddler-missing",
+ shadowTiddlerClass: this.wiki.isShadowTiddler(this.tiddlerTitle) ? "tc-tiddler-shadow" : "",
+ systemTiddlerClass: this.wiki.isSystemTiddler(this.tiddlerTitle) ? "tc-tiddler-system" : "",
+ tiddlerTagClasses: this.getTagClasses()
+ };
+ // Compute a simple hash to make it easier to detect changes
+ state.hash = state.currentTiddler + state.missingTiddlerClass + state.shadowTiddlerClass + state.systemTiddlerClass + state.tiddlerTagClasses;
+ return state;
+};
+
+/*
+Create a string of CSS classes derived from the tags of the current tiddler
+*/
+TiddlerWidget.prototype.getTagClasses = function() {
+ var tiddler = this.wiki.getTiddler(this.tiddlerTitle);
+ if(tiddler) {
+ var tags = [];
+ $tw.utils.each(tiddler.fields.tags,function(tag) {
+ tags.push("tc-tagged-" + encodeURIComponent(tag));
+ });
+ return tags.join(" ");
+ } else {
+ return "";
+ }
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+TiddlerWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes(),
+ newTiddlerState = this.computeTiddlerState();
+ if(changedAttributes.tiddler || newTiddlerState.hash !== this.tiddlerState.hash) {
+ this.refreshSelf();
+ return true;
+ } else {
+ return this.refreshChildren(changedTiddlers);
+ }
+};
+
+exports.tiddler = TiddlerWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/transclude.js
+type: application/javascript
+module-type: widget
+
+Transclude widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var TranscludeWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+TranscludeWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+TranscludeWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+};
+
+/*
+Compute the internal state of the widget
+*/
+TranscludeWidget.prototype.execute = function() {
+ // Get our parameters
+ this.transcludeTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
+ this.transcludeSubTiddler = this.getAttribute("subtiddler");
+ this.transcludeField = this.getAttribute("field");
+ this.transcludeIndex = this.getAttribute("index");
+ this.transcludeMode = this.getAttribute("mode");
+ // Parse the text reference
+ var parseAsInline = !this.parseTreeNode.isBlock;
+ if(this.transcludeMode === "inline") {
+ parseAsInline = true;
+ } else if(this.transcludeMode === "block") {
+ parseAsInline = false;
+ }
+ var parser = this.wiki.parseTextReference(
+ this.transcludeTitle,
+ this.transcludeField,
+ this.transcludeIndex,
+ {
+ parseAsInline: parseAsInline,
+ subTiddler: this.transcludeSubTiddler
+ }),
+ parseTreeNodes = parser ? parser.tree : this.parseTreeNode.children;
+ // Set context variables for recursion detection
+ var recursionMarker = this.makeRecursionMarker();
+ this.setVariable("transclusion",recursionMarker);
+ // Check for recursion
+ if(parser) {
+ if(this.parentWidget && this.parentWidget.hasVariable("transclusion",recursionMarker)) {
+ parseTreeNodes = [{type: "element", tag: "span", attributes: {
+ "class": {type: "string", value: "tc-error"}
+ }, children: [
+ {type: "text", text: $tw.language.getString("Error/RecursiveTransclusion")}
+ ]}];
+ }
+ }
+ // Construct the child widgets
+ this.makeChildWidgets(parseTreeNodes);
+};
+
+/*
+Compose a string comprising the title, field and/or index to identify this transclusion for recursion detection
+*/
+TranscludeWidget.prototype.makeRecursionMarker = function() {
+ var output = [];
+ output.push("{");
+ output.push(this.getVariable("currentTiddler",{defaultValue: ""}));
+ output.push("|");
+ output.push(this.transcludeTitle || "");
+ output.push("|");
+ output.push(this.transcludeField || "");
+ output.push("|");
+ output.push(this.transcludeIndex || "");
+ output.push("|");
+ output.push(this.transcludeSubTiddler || "");
+ output.push("}");
+ return output.join("");
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+TranscludeWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedTiddlers[this.transcludeTitle]) {
+ this.refreshSelf();
+ return true;
+ } else {
+ return this.refreshChildren(changedTiddlers);
+ }
+};
+
+exports.transclude = TranscludeWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/vars.js
+type: application/javascript
+module-type: widget
+
+This widget allows multiple variables to be set in one go:
+
+```
+\define helloworld() Hello world!
+<$vars greeting="Hi" me={{!!title}} sentence=<<helloworld>>>
+ <<greeting>>! I am <<me>> and I say: <<sentence>>
+</$vars>
+```
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var VarsWidget = function(parseTreeNode,options) {
+ // Call the constructor
+ Widget.call(this);
+ // Initialise
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+VarsWidget.prototype = Object.create(Widget.prototype);
+
+/*
+Render this widget into the DOM
+*/
+VarsWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+};
+
+/*
+Compute the internal state of the widget
+*/
+VarsWidget.prototype.execute = function() {
+ // Parse variables
+ var self = this;
+ $tw.utils.each(this.attributes,function(val,key) {
+ if(key.charAt(0) !== "$") {
+ self.setVariable(key,val);
+ }
+ });
+ // Construct the child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Refresh the widget by ensuring our attributes are up to date
+*/
+VarsWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(Object.keys(changedAttributes).length) {
+ this.refreshSelf();
+ return true;
+ }
+ return this.refreshChildren(changedTiddlers);
+};
+
+exports["vars"] = VarsWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/view.js
+type: application/javascript
+module-type: widget
+
+View widget
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var ViewWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+ViewWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+ViewWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ if(this.text) {
+ var textNode = this.document.createTextNode(this.text);
+ parent.insertBefore(textNode,nextSibling);
+ this.domNodes.push(textNode);
+ } else {
+ this.makeChildWidgets();
+ this.renderChildren(parent,nextSibling);
+ }
+};
+
+/*
+Compute the internal state of the widget
+*/
+ViewWidget.prototype.execute = function() {
+ // Get parameters from our attributes
+ this.viewTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
+ this.viewSubtiddler = this.getAttribute("subtiddler");
+ this.viewField = this.getAttribute("field","text");
+ this.viewIndex = this.getAttribute("index");
+ this.viewFormat = this.getAttribute("format","text");
+ this.viewTemplate = this.getAttribute("template","");
+ this.viewMode = this.getAttribute("mode","block");
+ switch(this.viewFormat) {
+ case "htmlwikified":
+ this.text = this.getValueAsHtmlWikified(this.viewMode);
+ break;
+ case "plainwikified":
+ this.text = this.getValueAsPlainWikified(this.viewMode);
+ break;
+ case "htmlencodedplainwikified":
+ this.text = this.getValueAsHtmlEncodedPlainWikified(this.viewMode);
+ break;
+ case "htmlencoded":
+ this.text = this.getValueAsHtmlEncoded();
+ break;
+ case "urlencoded":
+ this.text = this.getValueAsUrlEncoded();
+ break;
+ case "doubleurlencoded":
+ this.text = this.getValueAsDoubleUrlEncoded();
+ break;
+ case "date":
+ this.text = this.getValueAsDate(this.viewTemplate);
+ break;
+ case "relativedate":
+ this.text = this.getValueAsRelativeDate();
+ break;
+ case "stripcomments":
+ this.text = this.getValueAsStrippedComments();
+ break;
+ case "jsencoded":
+ this.text = this.getValueAsJsEncoded();
+ break;
+ default: // "text"
+ this.text = this.getValueAsText();
+ break;
+ }
+};
+
+/*
+The various formatter functions are baked into this widget for the moment. Eventually they will be replaced by macro functions
+*/
+
+/*
+Retrieve the value of the widget. Options are:
+asString: Optionally return the value as a string
+*/
+ViewWidget.prototype.getValue = function(options) {
+ options = options || {};
+ var value = options.asString ? "" : undefined;
+ if(this.viewIndex) {
+ value = this.wiki.extractTiddlerDataItem(this.viewTitle,this.viewIndex);
+ } else {
+ var tiddler;
+ if(this.viewSubtiddler) {
+ tiddler = this.wiki.getSubTiddler(this.viewTitle,this.viewSubtiddler);
+ } else {
+ tiddler = this.wiki.getTiddler(this.viewTitle);
+ }
+ if(tiddler) {
+ if(this.viewField === "text" && !this.viewSubtiddler) {
+ // Calling getTiddlerText() triggers lazy loading of skinny tiddlers
+ value = this.wiki.getTiddlerText(this.viewTitle);
+ } else {
+ if($tw.utils.hop(tiddler.fields,this.viewField)) {
+ if(options.asString) {
+ value = tiddler.getFieldString(this.viewField);
+ } else {
+ value = tiddler.fields[this.viewField];
+ }
+ }
+ }
+ } else {
+ if(this.viewField === "title") {
+ value = this.viewTitle;
+ }
+ }
+ }
+ return value;
+};
+
+ViewWidget.prototype.getValueAsText = function() {
+ return this.getValue({asString: true});
+};
+
+ViewWidget.prototype.getValueAsHtmlWikified = function(mode) {
+ return this.wiki.renderText("text/html","text/vnd.tiddlywiki",this.getValueAsText(),{
+ parseAsInline: mode !== "block",
+ parentWidget: this
+ });
+};
+
+ViewWidget.prototype.getValueAsPlainWikified = function(mode) {
+ return this.wiki.renderText("text/plain","text/vnd.tiddlywiki",this.getValueAsText(),{
+ parseAsInline: mode !== "block",
+ parentWidget: this
+ });
+};
+
+ViewWidget.prototype.getValueAsHtmlEncodedPlainWikified = function(mode) {
+ return $tw.utils.htmlEncode(this.wiki.renderText("text/plain","text/vnd.tiddlywiki",this.getValueAsText(),{
+ parseAsInline: mode !== "block",
+ parentWidget: this
+ }));
+};
+
+ViewWidget.prototype.getValueAsHtmlEncoded = function() {
+ return $tw.utils.htmlEncode(this.getValueAsText());
+};
+
+ViewWidget.prototype.getValueAsUrlEncoded = function() {
+ return encodeURIComponent(this.getValueAsText());
+};
+
+ViewWidget.prototype.getValueAsDoubleUrlEncoded = function() {
+ return encodeURIComponent(encodeURIComponent(this.getValueAsText()));
+};
+
+ViewWidget.prototype.getValueAsDate = function(format) {
+ format = format || "YYYY MM DD 0hh:0mm";
+ var value = $tw.utils.parseDate(this.getValue());
+ if(value && $tw.utils.isDate(value) && value.toString() !== "Invalid Date") {
+ return $tw.utils.formatDateString(value,format);
+ } else {
+ return "";
+ }
+};
+
+ViewWidget.prototype.getValueAsRelativeDate = function(format) {
+ var value = $tw.utils.parseDate(this.getValue());
+ if(value && $tw.utils.isDate(value) && value.toString() !== "Invalid Date") {
+ return $tw.utils.getRelativeDate((new Date()) - (new Date(value))).description;
+ } else {
+ return "";
+ }
+};
+
+ViewWidget.prototype.getValueAsStrippedComments = function() {
+ var lines = this.getValueAsText().split("\n"),
+ out = [];
+ for(var line=0; line<lines.length; line++) {
+ var text = lines[line];
+ if(!/^\s*\/\/#/.test(text)) {
+ out.push(text);
+ }
+ }
+ return out.join("\n");
+};
+
+ViewWidget.prototype.getValueAsJsEncoded = function() {
+ return $tw.utils.stringify(this.getValueAsText());
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+ViewWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.template || changedAttributes.format || changedTiddlers[this.viewTitle]) {
+ this.refreshSelf();
+ return true;
+ } else {
+ return false;
+ }
+};
+
+exports.view = ViewWidget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/widget.js
+type: application/javascript
+module-type: widget
+
+Widget base class
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Create a widget object for a parse tree node
+ parseTreeNode: reference to the parse tree node to be rendered
+ options: see below
+Options include:
+ wiki: mandatory reference to wiki associated with this render tree
+ parentWidget: optional reference to a parent renderer node for the context chain
+ document: optional document object to use instead of global document
+*/
+var Widget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Initialise widget properties. These steps are pulled out of the constructor so that we can reuse them in subclasses
+*/
+Widget.prototype.initialise = function(parseTreeNode,options) {
+ // Bail if parseTreeNode is undefined, meaning that the widget constructor was called without any arguments so that it can be subclassed
+ if(parseTreeNode === undefined) {
+ return;
+ }
+ options = options || {};
+ // Save widget info
+ this.parseTreeNode = parseTreeNode;
+ this.wiki = options.wiki;
+ this.parentWidget = options.parentWidget;
+ this.variablesConstructor = function() {};
+ this.variablesConstructor.prototype = this.parentWidget ? this.parentWidget.variables : {};
+ this.variables = new this.variablesConstructor();
+ this.document = options.document;
+ this.attributes = {};
+ this.children = [];
+ this.domNodes = [];
+ this.eventListeners = {};
+ // Hashmap of the widget classes
+ if(!this.widgetClasses) {
+ // Get widget classes
+ Widget.prototype.widgetClasses = $tw.modules.applyMethods("widget");
+ // Process any subclasses
+ $tw.modules.forEachModuleOfType("widget-subclass",function(title,module) {
+ if(module.baseClass) {
+ var baseClass = Widget.prototype.widgetClasses[module.baseClass];
+ if(!baseClass) {
+ throw "Module '" + title + "' is attemping to extend a non-existent base class '" + module.baseClass + "'";
+ }
+ var subClass = module.constructor;
+ subClass.prototype = new baseClass();
+ $tw.utils.extend(subClass.prototype,module.prototype);
+ Widget.prototype.widgetClasses[module.name || module.baseClass] = subClass;
+ }
+ });
+ }
+};
+
+/*
+Render this widget into the DOM
+*/
+Widget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+};
+
+/*
+Compute the internal state of the widget
+*/
+Widget.prototype.execute = function() {
+ this.makeChildWidgets();
+};
+
+/*
+Set the value of a context variable
+name: name of the variable
+value: value of the variable
+params: array of {name:, default:} for each parameter
+isMacroDefinition: true if the variable is set via a \define macro pragma (and hence should have variable substitution performed)
+*/
+Widget.prototype.setVariable = function(name,value,params,isMacroDefinition) {
+ this.variables[name] = {value: value, params: params, isMacroDefinition: !!isMacroDefinition};
+};
+
+/*
+Get the prevailing value of a context variable
+name: name of variable
+options: see below
+Options include
+params: array of {name:, value:} for each parameter
+defaultValue: default value if the variable is not defined
+
+Returns an object with the following fields:
+
+params: array of {name:,value:} of parameters passed to wikitext variables
+text: text of variable, with parameters properly substituted
+*/
+Widget.prototype.getVariableInfo = function(name,options) {
+ options = options || {};
+ var actualParams = options.params || [],
+ parentWidget = this.parentWidget;
+ // Check for the variable defined in the parent widget (or an ancestor in the prototype chain)
+ if(parentWidget && name in parentWidget.variables) {
+ var variable = parentWidget.variables[name],
+ value = variable.value,
+ params = this.resolveVariableParameters(variable.params,actualParams);
+ // Substitute any parameters specified in the definition
+ $tw.utils.each(params,function(param) {
+ value = $tw.utils.replaceString(value,new RegExp("\\$" + $tw.utils.escapeRegExp(param.name) + "\\$","mg"),param.value);
+ });
+ // Only substitute variable references if this variable was defined with the \define pragma
+ if(variable.isMacroDefinition) {
+ value = this.substituteVariableReferences(value);
+ }
+ return {
+ text: value,
+ params: params
+ };
+ }
+ // If the variable doesn't exist in the parent widget then look for a macro module
+ return {
+ text: this.evaluateMacroModule(name,actualParams,options.defaultValue)
+ };
+};
+
+/*
+Simplified version of getVariableInfo() that just returns the text
+*/
+Widget.prototype.getVariable = function(name,options) {
+ return this.getVariableInfo(name,options).text;
+};
+
+Widget.prototype.resolveVariableParameters = function(formalParams,actualParams) {
+ formalParams = formalParams || [];
+ actualParams = actualParams || [];
+ var nextAnonParameter = 0, // Next candidate anonymous parameter in macro call
+ paramInfo, paramValue,
+ results = [];
+ // Step through each of the parameters in the macro definition
+ for(var p=0; p<formalParams.length; p++) {
+ // Check if we've got a macro call parameter with the same name
+ paramInfo = formalParams[p];
+ paramValue = undefined;
+ for(var m=0; m<actualParams.length; m++) {
+ if(actualParams[m].name === paramInfo.name) {
+ paramValue = actualParams[m].value;
+ }
+ }
+ // If not, use the next available anonymous macro call parameter
+ while(nextAnonParameter < actualParams.length && actualParams[nextAnonParameter].name) {
+ nextAnonParameter++;
+ }
+ if(paramValue === undefined && nextAnonParameter < actualParams.length) {
+ paramValue = actualParams[nextAnonParameter++].value;
+ }
+ // If we've still not got a value, use the default, if any
+ paramValue = paramValue || paramInfo["default"] || "";
+ // Store the parameter name and value
+ results.push({name: paramInfo.name, value: paramValue});
+ }
+ return results;
+};
+
+Widget.prototype.substituteVariableReferences = function(text) {
+ var self = this;
+ return (text || "").replace(/\$\(([^\)\$]+)\)\$/g,function(match,p1,offset,string) {
+ return self.getVariable(p1,{defaultValue: ""});
+ });
+};
+
+Widget.prototype.evaluateMacroModule = function(name,actualParams,defaultValue) {
+ if($tw.utils.hop($tw.macros,name)) {
+ var macro = $tw.macros[name],
+ args = [];
+ if(macro.params.length > 0) {
+ var nextAnonParameter = 0, // Next candidate anonymous parameter in macro call
+ paramInfo, paramValue;
+ // Step through each of the parameters in the macro definition
+ for(var p=0; p<macro.params.length; p++) {
+ // Check if we've got a macro call parameter with the same name
+ paramInfo = macro.params[p];
+ paramValue = undefined;
+ for(var m=0; m<actualParams.length; m++) {
+ if(actualParams[m].name === paramInfo.name) {
+ paramValue = actualParams[m].value;
+ }
+ }
+ // If not, use the next available anonymous macro call parameter
+ while(nextAnonParameter < actualParams.length && actualParams[nextAnonParameter].name) {
+ nextAnonParameter++;
+ }
+ if(paramValue === undefined && nextAnonParameter < actualParams.length) {
+ paramValue = actualParams[nextAnonParameter++].value;
+ }
+ // If we've still not got a value, use the default, if any
+ paramValue = paramValue || paramInfo["default"] || "";
+ // Save the parameter
+ args.push(paramValue);
+ }
+ }
+ else for(var i=0; i<actualParams.length; ++i) {
+ args.push(actualParams[i].value);
+ }
+ return (macro.run.apply(this,args) || "").toString();
+ } else {
+ return defaultValue;
+ }
+};
+
+/*
+Check whether a given context variable value exists in the parent chain
+*/
+Widget.prototype.hasVariable = function(name,value) {
+ var node = this;
+ while(node) {
+ if($tw.utils.hop(node.variables,name) && node.variables[name].value === value) {
+ return true;
+ }
+ node = node.parentWidget;
+ }
+ return false;
+};
+
+/*
+Construct a qualifying string based on a hash of concatenating the values of a given variable in the parent chain
+*/
+Widget.prototype.getStateQualifier = function(name) {
+ this.qualifiers = this.qualifiers || Object.create(null);
+ name = name || "transclusion";
+ if(this.qualifiers[name]) {
+ return this.qualifiers[name];
+ } else {
+ var output = [],
+ node = this;
+ while(node && node.parentWidget) {
+ if($tw.utils.hop(node.parentWidget.variables,name)) {
+ output.push(node.getVariable(name));
+ }
+ node = node.parentWidget;
+ }
+ var value = $tw.utils.hashString(output.join(""));
+ this.qualifiers[name] = value;
+ return value;
+ }
+};
+
+/*
+Compute the current values of the attributes of the widget. Returns a hashmap of the names of the attributes that have changed
+*/
+Widget.prototype.computeAttributes = function() {
+ var changedAttributes = {},
+ self = this,
+ value;
+ $tw.utils.each(this.parseTreeNode.attributes,function(attribute,name) {
+ if(attribute.type === "filtered") {
+ value = self.wiki.filterTiddlers(attribute.filter,self)[0] || "";
+ } else if(attribute.type === "indirect") {
+ value = self.wiki.getTextReference(attribute.textReference,"",self.getVariable("currentTiddler"));
+ } else if(attribute.type === "macro") {
+ value = self.getVariable(attribute.value.name,{params: attribute.value.params});
+ } else { // String attribute
+ value = attribute.value;
+ }
+ // Check whether the attribute has changed
+ if(self.attributes[name] !== value) {
+ self.attributes[name] = value;
+ changedAttributes[name] = true;
+ }
+ });
+ return changedAttributes;
+};
+
+/*
+Check for the presence of an attribute
+*/
+Widget.prototype.hasAttribute = function(name) {
+ return $tw.utils.hop(this.attributes,name);
+};
+
+/*
+Get the value of an attribute
+*/
+Widget.prototype.getAttribute = function(name,defaultText) {
+ if($tw.utils.hop(this.attributes,name)) {
+ return this.attributes[name];
+ } else {
+ return defaultText;
+ }
+};
+
+/*
+Assign the computed attributes of the widget to a domNode
+options include:
+excludeEventAttributes: ignores attributes whose name begins with "on"
+*/
+Widget.prototype.assignAttributes = function(domNode,options) {
+ options = options || {};
+ var self = this;
+ $tw.utils.each(this.attributes,function(v,a) {
+ // Check exclusions
+ if(options.excludeEventAttributes && a.substr(0,2) === "on") {
+ v = undefined;
+ }
+ if(v !== undefined) {
+ var b = a.split(":");
+ // Setting certain attributes can cause a DOM error (eg xmlns on the svg element)
+ try {
+ if (b.length == 2 && b[0] == "xlink"){
+ domNode.setAttributeNS("http://www.w3.org/1999/xlink",b[1],v);
+ } else {
+ domNode.setAttributeNS(null,a,v);
+ }
+ } catch(e) {
+ }
+ }
+ });
+};
+
+/*
+Make child widgets correspondng to specified parseTreeNodes
+*/
+Widget.prototype.makeChildWidgets = function(parseTreeNodes) {
+ this.children = [];
+ var self = this;
+ $tw.utils.each(parseTreeNodes || (this.parseTreeNode && this.parseTreeNode.children),function(childNode) {
+ self.children.push(self.makeChildWidget(childNode));
+ });
+};
+
+/*
+Construct the widget object for a parse tree node
+*/
+Widget.prototype.makeChildWidget = function(parseTreeNode) {
+ var WidgetClass = this.widgetClasses[parseTreeNode.type];
+ if(!WidgetClass) {
+ WidgetClass = this.widgetClasses.text;
+ parseTreeNode = {type: "text", text: "Undefined widget '" + parseTreeNode.type + "'"};
+ }
+ return new WidgetClass(parseTreeNode,{
+ wiki: this.wiki,
+ variables: {},
+ parentWidget: this,
+ document: this.document
+ });
+};
+
+/*
+Get the next sibling of this widget
+*/
+Widget.prototype.nextSibling = function() {
+ if(this.parentWidget) {
+ var index = this.parentWidget.children.indexOf(this);
+ if(index !== -1 && index < this.parentWidget.children.length-1) {
+ return this.parentWidget.children[index+1];
+ }
+ }
+ return null;
+};
+
+/*
+Get the previous sibling of this widget
+*/
+Widget.prototype.previousSibling = function() {
+ if(this.parentWidget) {
+ var index = this.parentWidget.children.indexOf(this);
+ if(index !== -1 && index > 0) {
+ return this.parentWidget.children[index-1];
+ }
+ }
+ return null;
+};
+
+/*
+Render the children of this widget into the DOM
+*/
+Widget.prototype.renderChildren = function(parent,nextSibling) {
+ var children = this.children;
+ for(var i = 0; i < children.length; i++) {
+ children[i].render(parent,nextSibling);
+ };
+};
+
+/*
+Add a list of event listeners from an array [{type:,handler:},...]
+*/
+Widget.prototype.addEventListeners = function(listeners) {
+ var self = this;
+ $tw.utils.each(listeners,function(listenerInfo) {
+ self.addEventListener(listenerInfo.type,listenerInfo.handler);
+ });
+};
+
+/*
+Add an event listener
+*/
+Widget.prototype.addEventListener = function(type,handler) {
+ var self = this;
+ if(typeof handler === "string") { // The handler is a method name on this widget
+ this.eventListeners[type] = function(event) {
+ return self[handler].call(self,event);
+ };
+ } else { // The handler is a function
+ this.eventListeners[type] = function(event) {
+ return handler.call(self,event);
+ };
+ }
+};
+
+/*
+Dispatch an event to a widget. If the widget doesn't handle the event then it is also dispatched to the parent widget
+*/
+Widget.prototype.dispatchEvent = function(event) {
+ // Dispatch the event if this widget handles it
+ var listener = this.eventListeners[event.type];
+ if(listener) {
+ // Don't propagate the event if the listener returned false
+ if(!listener(event)) {
+ return false;
+ }
+ }
+ // Dispatch the event to the parent widget
+ if(this.parentWidget) {
+ return this.parentWidget.dispatchEvent(event);
+ }
+ return true;
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+Widget.prototype.refresh = function(changedTiddlers) {
+ return this.refreshChildren(changedTiddlers);
+};
+
+/*
+Rebuild a previously rendered widget
+*/
+Widget.prototype.refreshSelf = function() {
+ var nextSibling = this.findNextSiblingDomNode();
+ this.removeChildDomNodes();
+ this.render(this.parentDomNode,nextSibling);
+};
+
+/*
+Refresh all the children of a widget
+*/
+Widget.prototype.refreshChildren = function(changedTiddlers) {
+ var children = this.children,
+ refreshed = false;
+ for (var i = 0; i < children.length; i++) {
+ refreshed = children[i].refresh(changedTiddlers) || refreshed;
+ }
+ return refreshed;
+};
+
+/*
+Find the next sibling in the DOM to this widget. This is done by scanning the widget tree through all next siblings and their descendents that share the same parent DOM node
+*/
+Widget.prototype.findNextSiblingDomNode = function(startIndex) {
+ // Refer to this widget by its index within its parents children
+ var parent = this.parentWidget,
+ index = startIndex !== undefined ? startIndex : parent.children.indexOf(this);
+if(index === -1) {
+ throw "node not found in parents children";
+}
+ // Look for a DOM node in the later siblings
+ while(++index < parent.children.length) {
+ var domNode = parent.children[index].findFirstDomNode();
+ if(domNode) {
+ return domNode;
+ }
+ }
+ // Go back and look for later siblings of our parent if it has the same parent dom node
+ var grandParent = parent.parentWidget;
+ if(grandParent && parent.parentDomNode === this.parentDomNode) {
+ index = grandParent.children.indexOf(parent);
+ if(index !== -1) {
+ return parent.findNextSiblingDomNode(index);
+ }
+ }
+ return null;
+};
+
+/*
+Find the first DOM node generated by a widget or its children
+*/
+Widget.prototype.findFirstDomNode = function() {
+ // Return the first dom node of this widget, if we've got one
+ if(this.domNodes.length > 0) {
+ return this.domNodes[0];
+ }
+ // Otherwise, recursively call our children
+ for(var t=0; t<this.children.length; t++) {
+ var domNode = this.children[t].findFirstDomNode();
+ if(domNode) {
+ return domNode;
+ }
+ }
+ return null;
+};
+
+/*
+Remove any DOM nodes created by this widget or its children
+*/
+Widget.prototype.removeChildDomNodes = function() {
+ // If this widget has directly created DOM nodes, delete them and exit. This assumes that any child widgets are contained within the created DOM nodes, which would normally be the case
+ if(this.domNodes.length > 0) {
+ $tw.utils.each(this.domNodes,function(domNode) {
+ domNode.parentNode.removeChild(domNode);
+ });
+ this.domNodes = [];
+ } else {
+ // Otherwise, ask the child widgets to delete their DOM nodes
+ $tw.utils.each(this.children,function(childWidget) {
+ childWidget.removeChildDomNodes();
+ });
+ }
+};
+
+/*
+Invoke the action widgets that are descendents of the current widget.
+*/
+Widget.prototype.invokeActions = function(triggeringWidget,event) {
+ var handled = false;
+ // For each child widget
+ for(var t=0; t<this.children.length; t++) {
+ var child = this.children[t];
+ // Invoke the child if it is an action widget
+ if(child.invokeAction) {
+ child.refreshSelf();
+ if(child.invokeAction(triggeringWidget,event)) {
+ handled = true;
+ }
+ }
+ // Propagate through through the child if it permits it
+ if(child.allowActionPropagation() && child.invokeActions(triggeringWidget,event)) {
+ handled = true;
+ }
+ }
+ return handled;
+};
+
+/*
+Invoke the action widgets defined in a string
+*/
+Widget.prototype.invokeActionString = function(actions,triggeringWidget,event,variables) {
+ actions = actions || "";
+ var parser = this.wiki.parseText("text/vnd.tiddlywiki",actions,{
+ parentWidget: this,
+ document: this.document
+ }),
+ widgetNode = this.wiki.makeWidget(parser,{
+ parentWidget: this,
+ document: this.document,
+ variables: variables
+ });
+ var container = this.document.createElement("div");
+ widgetNode.render(container,null);
+ return widgetNode.invokeActions(this,event);
+};
+
+Widget.prototype.allowActionPropagation = function() {
+ return true;
+};
+
+exports.widget = Widget;
+
+})();
+
+/*\
+title: $:/core/modules/widgets/wikify.js
+type: application/javascript
+module-type: widget
+
+Widget to wikify text into a variable
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var WikifyWidget = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+WikifyWidget.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+WikifyWidget.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.computeAttributes();
+ this.execute();
+ this.renderChildren(parent,nextSibling);
+};
+
+/*
+Compute the internal state of the widget
+*/
+WikifyWidget.prototype.execute = function() {
+ // Get our parameters
+ this.wikifyName = this.getAttribute("name");
+ this.wikifyText = this.getAttribute("text");
+ this.wikifyType = this.getAttribute("type");
+ this.wikifyMode = this.getAttribute("mode","block");
+ this.wikifyOutput = this.getAttribute("output","text");
+ // Create the parse tree
+ this.wikifyParser = this.wiki.parseText(this.wikifyType,this.wikifyText,{
+ parseAsInline: this.wikifyMode === "inline"
+ });
+ // Create the widget tree
+ this.wikifyWidgetNode = this.wiki.makeWidget(this.wikifyParser,{
+ document: $tw.fakeDocument,
+ parentWidget: this
+ });
+ // Render the widget tree to the container
+ this.wikifyContainer = $tw.fakeDocument.createElement("div");
+ this.wikifyWidgetNode.render(this.wikifyContainer,null);
+ this.wikifyResult = this.getResult();
+ // Set context variable
+ this.setVariable(this.wikifyName,this.wikifyResult);
+ // Construct the child widgets
+ this.makeChildWidgets();
+};
+
+/*
+Return the result string
+*/
+WikifyWidget.prototype.getResult = function() {
+ var result;
+ switch(this.wikifyOutput) {
+ case "text":
+ result = this.wikifyContainer.textContent;
+ break;
+ case "formattedtext":
+ result = this.wikifyContainer.formattedTextContent;
+ break;
+ case "html":
+ result = this.wikifyContainer.innerHTML;
+ break;
+ case "parsetree":
+ result = JSON.stringify(this.wikifyParser.tree,0,$tw.config.preferences.jsonSpaces);
+ break;
+ case "widgettree":
+ result = JSON.stringify(this.getWidgetTree(),0,$tw.config.preferences.jsonSpaces);
+ break;
+ }
+ return result;
+};
+
+/*
+Return a string of the widget tree
+*/
+WikifyWidget.prototype.getWidgetTree = function() {
+ var copyNode = function(widgetNode,resultNode) {
+ var type = widgetNode.parseTreeNode.type;
+ resultNode.type = type;
+ switch(type) {
+ case "element":
+ resultNode.tag = widgetNode.parseTreeNode.tag;
+ break;
+ case "text":
+ resultNode.text = widgetNode.parseTreeNode.text;
+ break;
+ }
+ if(Object.keys(widgetNode.attributes || {}).length > 0) {
+ resultNode.attributes = {};
+ $tw.utils.each(widgetNode.attributes,function(attr,attrName) {
+ resultNode.attributes[attrName] = widgetNode.getAttribute(attrName);
+ });
+ }
+ if(Object.keys(widgetNode.children || {}).length > 0) {
+ resultNode.children = [];
+ $tw.utils.each(widgetNode.children,function(widgetChildNode) {
+ var node = {};
+ resultNode.children.push(node);
+ copyNode(widgetChildNode,node);
+ });
+ }
+ },
+ results = {};
+ copyNode(this.wikifyWidgetNode,results);
+ return results;
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+WikifyWidget.prototype.refresh = function(changedTiddlers) {
+ var changedAttributes = this.computeAttributes();
+ // Refresh ourselves entirely if any of our attributes have changed
+ if(changedAttributes.name || changedAttributes.text || changedAttributes.type || changedAttributes.mode || changedAttributes.output) {
+ this.refreshSelf();
+ return true;
+ } else {
+ // Refresh the widget tree
+ if(this.wikifyWidgetNode.refresh(changedTiddlers)) {
+ // Check if there was any change
+ var result = this.getResult();
+ if(result !== this.wikifyResult) {
+ // If so, save the change
+ this.wikifyResult = result;
+ this.setVariable(this.wikifyName,this.wikifyResult);
+ // Refresh each of our child widgets
+ $tw.utils.each(this.children,function(childWidget) {
+ childWidget.refreshSelf();
+ });
+ return true;
+ }
+ }
+ // Just refresh the children
+ return this.refreshChildren(changedTiddlers);
+ }
+};
+
+exports.wikify = WikifyWidget;
+
+})();
+
+/*\
+title: $:/core/modules/wiki-bulkops.js
+type: application/javascript
+module-type: wikimethod
+
+Bulk tiddler operations such as rename.
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+/*
+Rename a tiddler, and relink any tags or lists that reference it.
+*/
+function renameTiddler(fromTitle,toTitle,options) {
+ fromTitle = (fromTitle || "").trim();
+ toTitle = (toTitle || "").trim();
+ options = options || {};
+ if(fromTitle && toTitle && fromTitle !== toTitle) {
+ // Rename the tiddler itself
+ var oldTiddler = this.getTiddler(fromTitle),
+ newTiddler = new $tw.Tiddler(oldTiddler,{title: toTitle},this.getModificationFields());
+ newTiddler = $tw.hooks.invokeHook("th-renaming-tiddler",newTiddler,oldTiddler);
+ this.addTiddler(newTiddler);
+ this.deleteTiddler(fromTitle);
+ // Rename any tags or lists that reference it
+ this.relinkTiddler(fromTitle,toTitle,options)
+ }
+}
+
+/*
+Relink any tags or lists that reference a given tiddler
+*/
+function relinkTiddler(fromTitle,toTitle,options) {
+ var self = this;
+ fromTitle = (fromTitle || "").trim();
+ toTitle = (toTitle || "").trim();
+ options = options || {};
+ if(fromTitle && toTitle && fromTitle !== toTitle) {
+ this.each(function(tiddler,title) {
+ var type = tiddler.fields.type || "";
+ // Don't touch plugins or JavaScript modules
+ if(!tiddler.fields["plugin-type"] && type !== "application/javascript") {
+ var tags = tiddler.fields.tags ? tiddler.fields.tags.slice(0) : undefined,
+ list = tiddler.fields.list ? tiddler.fields.list.slice(0) : undefined,
+ isModified = false;
+ if(!options.dontRenameInTags) {
+ // Rename tags
+ $tw.utils.each(tags,function (title,index) {
+ if(title === fromTitle) {
+console.log("Renaming tag '" + tags[index] + "' to '" + toTitle + "' of tiddler '" + tiddler.fields.title + "'");
+ tags[index] = toTitle;
+ isModified = true;
+ }
+ });
+ }
+ if(!options.dontRenameInLists) {
+ // Rename lists
+ $tw.utils.each(list,function (title,index) {
+ if(title === fromTitle) {
+console.log("Renaming list item '" + list[index] + "' to '" + toTitle + "' of tiddler '" + tiddler.fields.title + "'");
+ list[index] = toTitle;
+ isModified = true;
+ }
+ });
+ }
+ if(isModified) {
+ var newTiddler = new $tw.Tiddler(tiddler,{tags: tags, list: list},self.getModificationFields())
+ newTiddler = $tw.hooks.invokeHook("th-relinking-tiddler",newTiddler,tiddler);
+ self.addTiddler(newTiddler);
+ }
+ }
+ });
+ }
+};
+
+exports.renameTiddler = renameTiddler;
+exports.relinkTiddler = relinkTiddler;
+
+})();
+
+/*\
+title: $:/core/modules/wiki.js
+type: application/javascript
+module-type: wikimethod
+
+Extension methods for the $tw.Wiki object
+
+Adds the following properties to the wiki object:
+
+* `eventListeners` is a hashmap by type of arrays of listener functions
+* `changedTiddlers` is a hashmap describing changes to named tiddlers since wiki change events were last dispatched. Each entry is a hashmap containing two fields:
+ modified: true/false
+ deleted: true/false
+* `changeCount` is a hashmap by tiddler title containing a numerical index that starts at zero and is incremented each time a tiddler is created changed or deleted
+* `caches` is a hashmap by tiddler title containing a further hashmap of named cache objects. Caches are automatically cleared when a tiddler is modified or deleted
+* `globalCache` is a hashmap by cache name of cache objects that are cleared whenever any tiddler change occurs
+
+\*/
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var widget = require("$:/core/modules/widgets/widget.js");
+
+var USER_NAME_TITLE = "$:/status/UserName",
+ TIMESTAMP_DISABLE_TITLE = "$:/config/TimestampDisable";
+
+/*
+Add available indexers to this wiki
+*/
+exports.addIndexersToWiki = function() {
+ var self = this;
+ $tw.utils.each($tw.modules.applyMethods("indexer"),function(Indexer,name) {
+ self.addIndexer(new Indexer(self),name);
+ });
+};
+
+/*
+Get the value of a text reference. Text references can have any of these forms:
+ <tiddlertitle>
+ <tiddlertitle>!!<fieldname>
+ !!<fieldname> - specifies a field of the current tiddlers
+ <tiddlertitle>##<index>
+*/
+exports.getTextReference = function(textRef,defaultText,currTiddlerTitle) {
+ var tr = $tw.utils.parseTextReference(textRef),
+ title = tr.title || currTiddlerTitle;
+ if(tr.field) {
+ var tiddler = this.getTiddler(title);
+ if(tr.field === "title") { // Special case so we can return the title of a non-existent tiddler
+ return title;
+ } else if(tiddler && $tw.utils.hop(tiddler.fields,tr.field)) {
+ return tiddler.getFieldString(tr.field);
+ } else {
+ return defaultText;
+ }
+ } else if(tr.index) {
+ return this.extractTiddlerDataItem(title,tr.index,defaultText);
+ } else {
+ return this.getTiddlerText(title,defaultText);
+ }
+};
+
+exports.setTextReference = function(textRef,value,currTiddlerTitle) {
+ var tr = $tw.utils.parseTextReference(textRef),
+ title = tr.title || currTiddlerTitle;
+ this.setText(title,tr.field,tr.index,value);
+};
+
+exports.setText = function(title,field,index,value,options) {
+ options = options || {};
+ var creationFields = options.suppressTimestamp ? {} : this.getCreationFields(),
+ modificationFields = options.suppressTimestamp ? {} : this.getModificationFields();
+ // Check if it is a reference to a tiddler field
+ if(index) {
+ var data = this.getTiddlerData(title,Object.create(null));
+ if(value !== undefined) {
+ data[index] = value;
+ } else {
+ delete data[index];
+ }
+ this.setTiddlerData(title,data,modificationFields);
+ } else {
+ var tiddler = this.getTiddler(title),
+ fields = {title: title};
+ fields[field || "text"] = value;
+ this.addTiddler(new $tw.Tiddler(creationFields,tiddler,fields,modificationFields));
+ }
+};
+
+exports.deleteTextReference = function(textRef,currTiddlerTitle) {
+ var tr = $tw.utils.parseTextReference(textRef),
+ title,tiddler,fields;
+ // Check if it is a reference to a tiddler
+ if(tr.title && !tr.field) {
+ this.deleteTiddler(tr.title);
+ // Else check for a field reference
+ } else if(tr.field) {
+ title = tr.title || currTiddlerTitle;
+ tiddler = this.getTiddler(title);
+ if(tiddler && $tw.utils.hop(tiddler.fields,tr.field)) {
+ fields = Object.create(null);
+ fields[tr.field] = undefined;
+ this.addTiddler(new $tw.Tiddler(tiddler,fields,this.getModificationFields()));
+ }
+ }
+};
+
+exports.addEventListener = function(type,listener) {
+ this.eventListeners = this.eventListeners || {};
+ this.eventListeners[type] = this.eventListeners[type] || [];
+ this.eventListeners[type].push(listener);
+};
+
+exports.removeEventListener = function(type,listener) {
+ var listeners = this.eventListeners[type];
+ if(listeners) {
+ var p = listeners.indexOf(listener);
+ if(p !== -1) {
+ listeners.splice(p,1);
+ }
+ }
+};
+
+exports.dispatchEvent = function(type /*, args */) {
+ var args = Array.prototype.slice.call(arguments,1),
+ listeners = this.eventListeners[type];
+ if(listeners) {
+ for(var p=0; p<listeners.length; p++) {
+ var listener = listeners[p];
+ listener.apply(listener,args);
+ }
+ }
+};
+
+/*
+Causes a tiddler to be marked as changed, incrementing the change count, and triggers event handlers.
+This method should be called after the changes it describes have been made to the wiki.tiddlers[] array.
+ title: Title of tiddler
+ isDeleted: defaults to false (meaning the tiddler has been created or modified),
+ true if the tiddler has been deleted
+*/
+exports.enqueueTiddlerEvent = function(title,isDeleted) {
+ // Record the touch in the list of changed tiddlers
+ this.changedTiddlers = this.changedTiddlers || Object.create(null);
+ this.changedTiddlers[title] = this.changedTiddlers[title] || Object.create(null);
+ this.changedTiddlers[title][isDeleted ? "deleted" : "modified"] = true;
+ // Increment the change count
+ this.changeCount = this.changeCount || Object.create(null);
+ if($tw.utils.hop(this.changeCount,title)) {
+ this.changeCount[title]++;
+ } else {
+ this.changeCount[title] = 1;
+ }
+ // Trigger events
+ this.eventListeners = this.eventListeners || {};
+ if(!this.eventsTriggered) {
+ var self = this;
+ $tw.utils.nextTick(function() {
+ var changes = self.changedTiddlers;
+ self.changedTiddlers = Object.create(null);
+ self.eventsTriggered = false;
+ if($tw.utils.count(changes) > 0) {
+ self.dispatchEvent("change",changes);
+ }
+ });
+ this.eventsTriggered = true;
+ }
+};
+
+exports.getSizeOfTiddlerEventQueue = function() {
+ return $tw.utils.count(this.changedTiddlers);
+};
+
+exports.clearTiddlerEventQueue = function() {
+ this.changedTiddlers = Object.create(null);
+ this.changeCount = Object.create(null);
+};
+
+exports.getChangeCount = function(title) {
+ this.changeCount = this.changeCount || Object.create(null);
+ if($tw.utils.hop(this.changeCount,title)) {
+ return this.changeCount[title];
+ } else {
+ return 0;
+ }
+};
+
+/*
+Generate an unused title from the specified base
+*/
+exports.generateNewTitle = function(baseTitle,options) {
+ options = options || {};
+ var c = 0,
+ title = baseTitle;
+ while(this.tiddlerExists(title) || this.isShadowTiddler(title) || this.findDraft(title)) {
+ title = baseTitle +
+ (options.prefix || " ") +
+ (++c);
+ }
+ return title;
+};
+
+exports.isSystemTiddler = function(title) {
+ return title && title.indexOf("$:/") === 0;
+};
+
+exports.isTemporaryTiddler = function(title) {
+ return title && title.indexOf("$:/temp/") === 0;
+};
+
+exports.isImageTiddler = function(title) {
+ var tiddler = this.getTiddler(title);
+ if(tiddler) {
+ var contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || "text/vnd.tiddlywiki"];
+ return !!contentTypeInfo && contentTypeInfo.flags.indexOf("image") !== -1;
+ } else {
+ return null;
+ }
+};
+
+exports.isBinaryTiddler = function(title) {
+ var tiddler = this.getTiddler(title);
+ if(tiddler) {
+ var contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || "text/vnd.tiddlywiki"];
+ return !!contentTypeInfo && contentTypeInfo.encoding === "base64";
+ } else {
+ return null;
+ }
+};
+
+/*
+Like addTiddler() except it will silently reject any plugin tiddlers that are older than the currently loaded version. Returns true if the tiddler was imported
+*/
+exports.importTiddler = function(tiddler) {
+ var existingTiddler = this.getTiddler(tiddler.fields.title);
+ // Check if we're dealing with a plugin
+ if(tiddler && tiddler.hasField("plugin-type") && tiddler.hasField("version") && existingTiddler && existingTiddler.hasField("plugin-type") && existingTiddler.hasField("version")) {
+ // Reject the incoming plugin if it is older
+ if(!$tw.utils.checkVersions(tiddler.fields.version,existingTiddler.fields.version)) {
+ return false;
+ }
+ }
+ // Fall through to adding the tiddler
+ this.addTiddler(tiddler);
+ return true;
+};
+
+/*
+Return a hashmap of the fields that should be set when a tiddler is created
+*/
+exports.getCreationFields = function() {
+ if(this.getTiddlerText(TIMESTAMP_DISABLE_TITLE,"").toLowerCase() !== "yes") {
+ var fields = {
+ created: new Date()
+ },
+ creator = this.getTiddlerText(USER_NAME_TITLE);
+ if(creator) {
+ fields.creator = creator;
+ }
+ return fields;
+ } else {
+ return {};
+ }
+};
+
+/*
+Return a hashmap of the fields that should be set when a tiddler is modified
+*/
+exports.getModificationFields = function() {
+ if(this.getTiddlerText(TIMESTAMP_DISABLE_TITLE,"").toLowerCase() !== "yes") {
+ var fields = Object.create(null),
+ modifier = this.getTiddlerText(USER_NAME_TITLE);
+ fields.modified = new Date();
+ if(modifier) {
+ fields.modifier = modifier;
+ }
+ return fields;
+ } else {
+ return {};
+ }
+};
+
+/*
+Return a sorted array of tiddler titles. Options include:
+sortField: field to sort by
+excludeTag: tag to exclude
+includeSystem: whether to include system tiddlers (defaults to false)
+*/
+exports.getTiddlers = function(options) {
+ options = options || Object.create(null);
+ var self = this,
+ sortField = options.sortField || "title",
+ tiddlers = [], t, titles = [];
+ this.each(function(tiddler,title) {
+ if(options.includeSystem || !self.isSystemTiddler(title)) {
+ if(!options.excludeTag || !tiddler.hasTag(options.excludeTag)) {
+ tiddlers.push(tiddler);
+ }
+ }
+ });
+ tiddlers.sort(function(a,b) {
+ var aa = a.fields[sortField].toLowerCase() || "",
+ bb = b.fields[sortField].toLowerCase() || "";
+ if(aa < bb) {
+ return -1;
+ } else {
+ if(aa > bb) {
+ return 1;
+ } else {
+ return 0;
+ }
+ }
+ });
+ for(t=0; t<tiddlers.length; t++) {
+ titles.push(tiddlers[t].fields.title);
+ }
+ return titles;
+};
+
+exports.countTiddlers = function(excludeTag) {
+ var tiddlers = this.getTiddlers({excludeTag: excludeTag});
+ return $tw.utils.count(tiddlers);
+};
+
+/*
+Returns a function iterator(callback) that iterates through the specified titles, and invokes the callback with callback(tiddler,title)
+*/
+exports.makeTiddlerIterator = function(titles) {
+ var self = this;
+ if(!$tw.utils.isArray(titles)) {
+ titles = Object.keys(titles);
+ } else {
+ titles = titles.slice(0);
+ }
+ return function(callback) {
+ titles.forEach(function(title) {
+ callback(self.getTiddler(title),title);
+ });
+ };
+};
+
+/*
+Sort an array of tiddler titles by a specified field
+ titles: array of titles (sorted in place)
+ sortField: name of field to sort by
+ isDescending: true if the sort should be descending
+ isCaseSensitive: true if the sort should consider upper and lower case letters to be different
+*/
+exports.sortTiddlers = function(titles,sortField,isDescending,isCaseSensitive,isNumeric,isAlphaNumeric) {
+ var self = this;
+ titles.sort(function(a,b) {
+ var x,y,
+ compareNumbers = function(x,y) {
+ var result =
+ isNaN(x) && !isNaN(y) ? (isDescending ? -1 : 1) :
+ !isNaN(x) && isNaN(y) ? (isDescending ? 1 : -1) :
+ (isDescending ? y - x : x - y);
+ return result;
+ };
+ if(sortField !== "title") {
+ var tiddlerA = self.getTiddler(a),
+ tiddlerB = self.getTiddler(b);
+ if(tiddlerA) {
+ a = tiddlerA.fields[sortField] || "";
+ } else {
+ a = "";
+ }
+ if(tiddlerB) {
+ b = tiddlerB.fields[sortField] || "";
+ } else {
+ b = "";
+ }
+ }
+ x = Number(a);
+ y = Number(b);
+ if(isNumeric && (!isNaN(x) || !isNaN(y))) {
+ return compareNumbers(x,y);
+ } else if(isAlphaNumeric) {
+ return isDescending ? b.localeCompare(a,undefined,{numeric: true,sensitivity: "base"}) : a.localeCompare(b,undefined,{numeric: true,sensitivity: "base"});
+ } else if($tw.utils.isDate(a) && $tw.utils.isDate(b)) {
+ return isDescending ? b - a : a - b;
+ } else {
+ a = String(a);
+ b = String(b);
+ if(!isCaseSensitive) {
+ a = a.toLowerCase();
+ b = b.toLowerCase();
+ }
+ return isDescending ? b.localeCompare(a) : a.localeCompare(b);
+ }
+ });
+};
+
+/*
+For every tiddler invoke a callback(title,tiddler) with `this` set to the wiki object. Options include:
+sortField: field to sort by
+excludeTag: tag to exclude
+includeSystem: whether to include system tiddlers (defaults to false)
+*/
+exports.forEachTiddler = function(/* [options,]callback */) {
+ var arg = 0,
+ options = arguments.length >= 2 ? arguments[arg++] : {},
+ callback = arguments[arg++],
+ titles = this.getTiddlers(options),
+ t, tiddler;
+ for(t=0; t<titles.length; t++) {
+ tiddler = this.getTiddler(titles[t]);
+ if(tiddler) {
+ callback.call(this,tiddler.fields.title,tiddler);
+ }
+ }
+};
+
+/*
+Return an array of tiddler titles that are directly linked within the given parse tree
+ */
+exports.extractLinks = function(parseTreeRoot) {
+ // Count up the links
+ var links = [],
+ checkParseTree = function(parseTree) {
+ for(var t=0; t<parseTree.length; t++) {
+ var parseTreeNode = parseTree[t];
+ if(parseTreeNode.type === "link" && parseTreeNode.attributes.to && parseTreeNode.attributes.to.type === "string") {
+ var value = parseTreeNode.attributes.to.value;
+ if(links.indexOf(value) === -1) {
+ links.push(value);
+ }
+ }
+ if(parseTreeNode.children) {
+ checkParseTree(parseTreeNode.children);
+ }
+ }
+ };
+ checkParseTree(parseTreeRoot);
+ return links;
+};
+
+/*
+Return an array of tiddler titles that are directly linked from the specified tiddler
+*/
+exports.getTiddlerLinks = function(title) {
+ var self = this;
+ // We'll cache the links so they only get computed if the tiddler changes
+ return this.getCacheForTiddler(title,"links",function() {
+ // Parse the tiddler
+ var parser = self.parseTiddler(title);
+ if(parser) {
+ return self.extractLinks(parser.tree);
+ }
+ return [];
+ });
+};
+
+/*
+Return an array of tiddler titles that link to the specified tiddler
+*/
+exports.getTiddlerBacklinks = function(targetTitle) {
+ var self = this,
+ backlinksIndexer = this.getIndexer("BacklinksIndexer"),
+ backlinks = backlinksIndexer && backlinksIndexer.lookup(targetTitle);
+
+ if(!backlinks) {
+ backlinks = [];
+ this.forEachTiddler(function(title,tiddler) {
+ var links = self.getTiddlerLinks(title);
+ if(links.indexOf(targetTitle) !== -1) {
+ backlinks.push(title);
+ }
+ });
+ }
+ return backlinks;
+};
+
+/*
+Return a hashmap of tiddler titles that are referenced but not defined. Each value is the number of times the missing tiddler is referenced
+*/
+exports.getMissingTitles = function() {
+ var self = this,
+ missing = [];
+// We should cache the missing tiddler list, even if we recreate it every time any tiddler is modified
+ this.forEachTiddler(function(title,tiddler) {
+ var links = self.getTiddlerLinks(title);
+ $tw.utils.each(links,function(link) {
+ if((!self.tiddlerExists(link) && !self.isShadowTiddler(link)) && missing.indexOf(link) === -1) {
+ missing.push(link);
+ }
+ });
+ });
+ return missing;
+};
+
+exports.getOrphanTitles = function() {
+ var self = this,
+ orphans = this.getTiddlers();
+ this.forEachTiddler(function(title,tiddler) {
+ var links = self.getTiddlerLinks(title);
+ $tw.utils.each(links,function(link) {
+ var p = orphans.indexOf(link);
+ if(p !== -1) {
+ orphans.splice(p,1);
+ }
+ });
+ });
+ return orphans; // Todo
+};
+
+/*
+Retrieves a list of the tiddler titles that are tagged with a given tag
+*/
+exports.getTiddlersWithTag = function(tag) {
+ // Try to use the indexer
+ var self = this,
+ tagIndexer = this.getIndexer("TagIndexer"),
+ results = tagIndexer && tagIndexer.subIndexers[3].lookup(tag);
+ if(!results) {
+ // If not available, perform a manual scan
+ results = this.getGlobalCache("taglist-" + tag,function() {
+ var tagmap = self.getTagMap();
+ return self.sortByList(tagmap[tag],tag);
+ });
+ }
+ return results;
+};
+
+/*
+Get a hashmap by tag of arrays of tiddler titles
+*/
+exports.getTagMap = function() {
+ var self = this;
+ return this.getGlobalCache("tagmap",function() {
+ var tags = Object.create(null),
+ storeTags = function(tagArray,title) {
+ if(tagArray) {
+ for(var index=0; index<tagArray.length; index++) {
+ var tag = tagArray[index];
+ if($tw.utils.hop(tags,tag)) {
+ tags[tag].push(title);
+ } else {
+ tags[tag] = [title];
+ }
+ }
+ }
+ },
+ title, tiddler;
+ // Collect up all the tags
+ self.eachShadow(function(tiddler,title) {
+ if(!self.tiddlerExists(title)) {
+ tiddler = self.getTiddler(title);
+ storeTags(tiddler.fields.tags,title);
+ }
+ });
+ self.each(function(tiddler,title) {
+ storeTags(tiddler.fields.tags,title);
+ });
+ return tags;
+ });
+};
+
+/*
+Lookup a given tiddler and return a list of all the tiddlers that include it in the specified list field
+*/
+exports.findListingsOfTiddler = function(targetTitle,fieldName) {
+ fieldName = fieldName || "list";
+ var titles = [];
+ this.each(function(tiddler,title) {
+ var list = $tw.utils.parseStringArray(tiddler.fields[fieldName]);
+ if(list && list.indexOf(targetTitle) !== -1) {
+ titles.push(title);
+ }
+ });
+ return titles;
+};
+
+/*
+Sorts an array of tiddler titles according to an ordered list
+*/
+exports.sortByList = function(array,listTitle) {
+ var self = this,
+ replacedTitles = Object.create(null);
+ // Given a title, this function will place it in the correct location
+ // within titles.
+ function moveItemInList(title) {
+ if(!$tw.utils.hop(replacedTitles, title)) {
+ replacedTitles[title] = true;
+ var newPos = -1,
+ tiddler = self.getTiddler(title);
+ if(tiddler) {
+ var beforeTitle = tiddler.fields["list-before"],
+ afterTitle = tiddler.fields["list-after"];
+ if(beforeTitle === "") {
+ newPos = 0;
+ } else if(afterTitle === "") {
+ newPos = titles.length;
+ } else if(beforeTitle) {
+ // if this title is placed relative
+ // to another title, make sure that
+ // title is placed before we place
+ // this one.
+ moveItemInList(beforeTitle);
+ newPos = titles.indexOf(beforeTitle);
+ } else if(afterTitle) {
+ // Same deal
+ moveItemInList(afterTitle);
+ newPos = titles.indexOf(afterTitle);
+ if(newPos >= 0) {
+ ++newPos;
+ }
+ }
+ // If a new position is specified, let's move it
+ if (newPos !== -1) {
+ // get its current Pos, and make sure
+ // sure that it's _actually_ in the list
+ // and that it would _actually_ move
+ // (#4275) We don't bother calling
+ // indexOf unless we have a new
+ // position to work with
+ var currPos = titles.indexOf(title);
+ if(currPos >= 0 && newPos !== currPos) {
+ // move it!
+ titles.splice(currPos,1);
+ if(newPos >= currPos) {
+ newPos--;
+ }
+ titles.splice(newPos,0,title);
+ }
+ }
+ }
+ }
+ }
+ var list = this.getTiddlerList(listTitle);
+ if(!array || array.length === 0) {
+ return [];
+ } else {
+ var titles = [], t, title;
+ // First place any entries that are present in the list
+ for(t=0; t<list.length; t++) {
+ title = list[t];
+ if(array.indexOf(title) !== -1) {
+ titles.push(title);
+ }
+ }
+ // Then place any remaining entries
+ for(t=0; t<array.length; t++) {
+ title = array[t];
+ if(list.indexOf(title) === -1) {
+ titles.push(title);
+ }
+ }
+ // Finally obey the list-before and list-after fields of each tiddler in turn
+ var sortedTitles = titles.slice(0);
+ for(t=0; t<sortedTitles.length; t++) {
+ title = sortedTitles[t];
+ moveItemInList(title);
+ }
+ return titles;
+ }
+};
+
+exports.getSubTiddler = function(title,subTiddlerTitle) {
+ var bundleInfo = this.getPluginInfo(title) || this.getTiddlerDataCached(title);
+ if(bundleInfo && bundleInfo.tiddlers) {
+ var subTiddler = bundleInfo.tiddlers[subTiddlerTitle];
+ if(subTiddler) {
+ return new $tw.Tiddler(subTiddler);
+ }
+ }
+ return null;
+};
+
+/*
+Retrieve a tiddler as a JSON string of the fields
+*/
+exports.getTiddlerAsJson = function(title) {
+ var tiddler = this.getTiddler(title);
+ if(tiddler) {
+ var fields = Object.create(null);
+ $tw.utils.each(tiddler.fields,function(value,name) {
+ fields[name] = tiddler.getFieldString(name);
+ });
+ return JSON.stringify(fields);
+ } else {
+ return JSON.stringify({title: title});
+ }
+};
+
+exports.getTiddlersAsJson = function(filter,spaces) {
+ var tiddlers = this.filterTiddlers(filter),
+ spaces = (spaces === undefined) ? $tw.config.preferences.jsonSpaces : spaces,
+ data = [];
+ for(var t=0;t<tiddlers.length; t++) {
+ var tiddler = this.getTiddler(tiddlers[t]);
+ if(tiddler) {
+ var fields = new Object();
+ for(var field in tiddler.fields) {
+ fields[field] = tiddler.getFieldString(field);
+ }
+ data.push(fields);
+ }
+ }
+ return JSON.stringify(data,null,spaces);
+};
+
+/*
+Get the content of a tiddler as a JavaScript object. How this is done depends on the type of the tiddler:
+
+application/json: the tiddler JSON is parsed into an object
+application/x-tiddler-dictionary: the tiddler is parsed as sequence of name:value pairs
+
+Other types currently just return null.
+
+titleOrTiddler: string tiddler title or a tiddler object
+defaultData: default data to be returned if the tiddler is missing or doesn't contain data
+
+Note that the same value is returned for repeated calls for the same tiddler data. The value is frozen to prevent modification; otherwise modifications would be visible to all callers
+*/
+exports.getTiddlerDataCached = function(titleOrTiddler,defaultData) {
+ var self = this,
+ tiddler = titleOrTiddler;
+ if(!(tiddler instanceof $tw.Tiddler)) {
+ tiddler = this.getTiddler(tiddler);
+ }
+ if(tiddler) {
+ return this.getCacheForTiddler(tiddler.fields.title,"data",function() {
+ // Return the frozen value
+ var value = self.getTiddlerData(tiddler.fields.title,undefined);
+ $tw.utils.deepFreeze(value);
+ return value;
+ }) || defaultData;
+ } else {
+ return defaultData;
+ }
+};
+
+/*
+Alternative, uncached version of getTiddlerDataCached(). The return value can be mutated freely and reused
+*/
+exports.getTiddlerData = function(titleOrTiddler,defaultData) {
+ var tiddler = titleOrTiddler,
+ data;
+ if(!(tiddler instanceof $tw.Tiddler)) {
+ tiddler = this.getTiddler(tiddler);
+ }
+ if(tiddler && tiddler.fields.text) {
+ switch(tiddler.fields.type) {
+ case "application/json":
+ // JSON tiddler
+ try {
+ data = JSON.parse(tiddler.fields.text);
+ } catch(ex) {
+ return defaultData;
+ }
+ return data;
+ case "application/x-tiddler-dictionary":
+ return $tw.utils.parseFields(tiddler.fields.text);
+ }
+ }
+ return defaultData;
+};
+
+/*
+Extract an indexed field from within a data tiddler
+*/
+exports.extractTiddlerDataItem = function(titleOrTiddler,index,defaultText) {
+ var data = this.getTiddlerDataCached(titleOrTiddler,Object.create(null)),
+ text;
+ if(data && $tw.utils.hop(data,index)) {
+ text = data[index];
+ }
+ if(typeof text === "string" || typeof text === "number") {
+ return text.toString();
+ } else {
+ return defaultText;
+ }
+};
+
+/*
+Set a tiddlers content to a JavaScript object. Currently this is done by setting the tiddler's type to "application/json" and setting the text to the JSON text of the data.
+title: title of tiddler
+data: object that can be serialised to JSON
+fields: optional hashmap of additional tiddler fields to be set
+*/
+exports.setTiddlerData = function(title,data,fields) {
+ var existingTiddler = this.getTiddler(title),
+ newFields = {
+ title: title
+ };
+ if(existingTiddler && existingTiddler.fields.type === "application/x-tiddler-dictionary") {
+ newFields.text = $tw.utils.makeTiddlerDictionary(data);
+ } else {
+ newFields.type = "application/json";
+ newFields.text = JSON.stringify(data,null,$tw.config.preferences.jsonSpaces);
+ }
+ this.addTiddler(new $tw.Tiddler(this.getCreationFields(),existingTiddler,fields,newFields,this.getModificationFields()));
+};
+
+/*
+Return the content of a tiddler as an array containing each line
+*/
+exports.getTiddlerList = function(title,field,index) {
+ if(index) {
+ return $tw.utils.parseStringArray(this.extractTiddlerDataItem(title,index,""));
+ }
+ field = field || "list";
+ var tiddler = this.getTiddler(title);
+ if(tiddler) {
+ return ($tw.utils.parseStringArray(tiddler.fields[field]) || []).slice(0);
+ }
+ return [];
+};
+
+// Return a named global cache object. Global cache objects are cleared whenever a tiddler change occurs
+exports.getGlobalCache = function(cacheName,initializer) {
+ this.globalCache = this.globalCache || Object.create(null);
+ if($tw.utils.hop(this.globalCache,cacheName)) {
+ return this.globalCache[cacheName];
+ } else {
+ this.globalCache[cacheName] = initializer();
+ return this.globalCache[cacheName];
+ }
+};
+
+exports.clearGlobalCache = function() {
+ this.globalCache = Object.create(null);
+};
+
+// Return the named cache object for a tiddler. If the cache doesn't exist then the initializer function is invoked to create it
+exports.getCacheForTiddler = function(title,cacheName,initializer) {
+ this.caches = this.caches || Object.create(null);
+ var caches = this.caches[title];
+ if(caches && caches[cacheName]) {
+ return caches[cacheName];
+ } else {
+ if(!caches) {
+ caches = Object.create(null);
+ this.caches[title] = caches;
+ }
+ caches[cacheName] = initializer();
+ return caches[cacheName];
+ }
+};
+
+// Clear all caches associated with a particular tiddler, or, if the title is null, clear all the caches for all the tiddlers
+exports.clearCache = function(title) {
+ if(title) {
+ this.caches = this.caches || Object.create(null);
+ if($tw.utils.hop(this.caches,title)) {
+ delete this.caches[title];
+ }
+ } else {
+ this.caches = Object.create(null);
+ }
+};
+
+exports.initParsers = function(moduleType) {
+ // Install the parser modules
+ $tw.Wiki.parsers = {};
+ var self = this;
+ $tw.modules.forEachModuleOfType("parser",function(title,module) {
+ for(var f in module) {
+ if($tw.utils.hop(module,f)) {
+ $tw.Wiki.parsers[f] = module[f]; // Store the parser class
+ }
+ }
+ });
+ // Use the generic binary parser for any binary types not registered so far
+ if($tw.Wiki.parsers["application/octet-stream"]) {
+ Object.keys($tw.config.contentTypeInfo).forEach(function(type) {
+ if(!$tw.utils.hop($tw.Wiki.parsers,type) && $tw.config.contentTypeInfo[type].encoding === "base64") {
+ $tw.Wiki.parsers[type] = $tw.Wiki.parsers["application/octet-stream"];
+ }
+ });
+ }
+};
+
+/*
+Parse a block of text of a specified MIME type
+ type: content type of text to be parsed
+ text: text
+ options: see below
+Options include:
+ parseAsInline: if true, the text of the tiddler will be parsed as an inline run
+ _canonical_uri: optional string of the canonical URI of this content
+*/
+exports.parseText = function(type,text,options) {
+ text = text || "";
+ options = options || {};
+ // Select a parser
+ var Parser = $tw.Wiki.parsers[type];
+ if(!Parser && $tw.utils.getFileExtensionInfo(type)) {
+ Parser = $tw.Wiki.parsers[$tw.utils.getFileExtensionInfo(type).type];
+ }
+ if(!Parser) {
+ Parser = $tw.Wiki.parsers[options.defaultType || "text/vnd.tiddlywiki"];
+ }
+ if(!Parser) {
+ return null;
+ }
+ // Return the parser instance
+ return new Parser(type,text,{
+ parseAsInline: options.parseAsInline,
+ wiki: this,
+ _canonical_uri: options._canonical_uri
+ });
+};
+
+/*
+Parse a tiddler according to its MIME type
+*/
+exports.parseTiddler = function(title,options) {
+ options = $tw.utils.extend({},options);
+ var cacheType = options.parseAsInline ? "inlineParseTree" : "blockParseTree",
+ tiddler = this.getTiddler(title),
+ self = this;
+ return tiddler ? this.getCacheForTiddler(title,cacheType,function() {
+ if(tiddler.hasField("_canonical_uri")) {
+ options._canonical_uri = tiddler.fields._canonical_uri;
+ }
+ return self.parseText(tiddler.fields.type,tiddler.fields.text,options);
+ }) : null;
+};
+
+exports.parseTextReference = function(title,field,index,options) {
+ var tiddler,text;
+ if(options.subTiddler) {
+ tiddler = this.getSubTiddler(title,options.subTiddler);
+ } else {
+ tiddler = this.getTiddler(title);
+ if(field === "text" || (!field && !index)) {
+ this.getTiddlerText(title); // Force the tiddler to be lazily loaded
+ return this.parseTiddler(title,options);
+ }
+ }
+ if(field === "text" || (!field && !index)) {
+ if(tiddler && tiddler.fields) {
+ return this.parseText(tiddler.fields.type,tiddler.fields.text,options);
+ } else {
+ return null;
+ }
+ } else if(field) {
+ if(field === "title") {
+ text = title;
+ } else {
+ if(!tiddler || !tiddler.hasField(field)) {
+ return null;
+ }
+ text = tiddler.fields[field];
+ }
+ return this.parseText("text/vnd.tiddlywiki",text.toString(),options);
+ } else if(index) {
+ this.getTiddlerText(title); // Force the tiddler to be lazily loaded
+ text = this.extractTiddlerDataItem(tiddler,index,undefined);
+ if(text === undefined) {
+ return null;
+ }
+ return this.parseText("text/vnd.tiddlywiki",text,options);
+ }
+};
+
+/*
+Make a widget tree for a parse tree
+parser: parser object
+options: see below
+Options include:
+document: optional document to use
+variables: hashmap of variables to set
+parentWidget: optional parent widget for the root node
+*/
+exports.makeWidget = function(parser,options) {
+ options = options || {};
+ var widgetNode = {
+ type: "widget",
+ children: []
+ },
+ currWidgetNode = widgetNode;
+ // Create set variable widgets for each variable
+ $tw.utils.each(options.variables,function(value,name) {
+ var setVariableWidget = {
+ type: "set",
+ attributes: {
+ name: {type: "string", value: name},
+ value: {type: "string", value: value}
+ },
+ children: []
+ };
+ currWidgetNode.children = [setVariableWidget];
+ currWidgetNode = setVariableWidget;
+ });
+ // Add in the supplied parse tree nodes
+ currWidgetNode.children = parser ? parser.tree : [];
+ // Create the widget
+ return new widget.widget(widgetNode,{
+ wiki: this,
+ document: options.document || $tw.fakeDocument,
+ parentWidget: options.parentWidget
+ });
+};
+
+/*
+Make a widget tree for transclusion
+title: target tiddler title
+options: as for wiki.makeWidget() plus:
+options.field: optional field to transclude (defaults to "text")
+options.mode: transclusion mode "inline" or "block"
+options.children: optional array of children for the transclude widget
+options.importVariables: optional importvariables filter string for macros to be included
+options.importPageMacros: optional boolean; if true, equivalent to passing "[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]" to options.importVariables
+*/
+exports.makeTranscludeWidget = function(title,options) {
+ options = options || {};
+ var parseTreeDiv = {tree: [{
+ type: "element",
+ tag: "div",
+ children: []}]},
+ parseTreeImportVariables = {
+ type: "importvariables",
+ attributes: {
+ filter: {
+ name: "filter",
+ type: "string"
+ }
+ },
+ isBlock: false,
+ children: []},
+ parseTreeTransclude = {
+ type: "transclude",
+ attributes: {
+ tiddler: {
+ name: "tiddler",
+ type: "string",
+ value: title}},
+ isBlock: !options.parseAsInline};
+ if(options.importVariables || options.importPageMacros) {
+ if(options.importVariables) {
+ parseTreeImportVariables.attributes.filter.value = options.importVariables;
+ } else if(options.importPageMacros) {
+ parseTreeImportVariables.attributes.filter.value = "[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]";
+ }
+ parseTreeDiv.tree[0].children.push(parseTreeImportVariables);
+ parseTreeImportVariables.children.push(parseTreeTransclude);
+ } else {
+ parseTreeDiv.tree[0].children.push(parseTreeTransclude);
+ }
+ if(options.field) {
+ parseTreeTransclude.attributes.field = {type: "string", value: options.field};
+ }
+ if(options.mode) {
+ parseTreeTransclude.attributes.mode = {type: "string", value: options.mode};
+ }
+ if(options.children) {
+ parseTreeTransclude.children = options.children;
+ }
+ return $tw.wiki.makeWidget(parseTreeDiv,options);
+};
+
+/*
+Parse text in a specified format and render it into another format
+ outputType: content type for the output
+ textType: content type of the input text
+ text: input text
+ options: see below
+Options include:
+variables: hashmap of variables to set
+parentWidget: optional parent widget for the root node
+*/
+exports.renderText = function(outputType,textType,text,options) {
+ options = options || {};
+ var parser = this.parseText(textType,text,options),
+ widgetNode = this.makeWidget(parser,options);
+ var container = $tw.fakeDocument.createElement("div");
+ widgetNode.render(container,null);
+ return outputType === "text/html" ? container.innerHTML : container.textContent;
+};
+
+/*
+Parse text from a tiddler and render it into another format
+ outputType: content type for the output
+ title: title of the tiddler to be rendered
+ options: see below
+Options include:
+variables: hashmap of variables to set
+parentWidget: optional parent widget for the root node
+*/
+exports.renderTiddler = function(outputType,title,options) {
+ options = options || {};
+ var parser = this.parseTiddler(title,options),
+ widgetNode = this.makeWidget(parser,options);
+ var container = $tw.fakeDocument.createElement("div");
+ widgetNode.render(container,null);
+ return outputType === "text/html" ? container.innerHTML : (outputType === "text/plain-formatted" ? container.formattedTextContent : container.textContent);
+};
+
+/*
+Return an array of tiddler titles that match a search string
+ text: The text string to search for
+ options: see below
+Options available:
+ source: an iterator function for the source tiddlers, called source(iterator), where iterator is called as iterator(tiddler,title)
+ exclude: An array of tiddler titles to exclude from the search
+ invert: If true returns tiddlers that do not contain the specified string
+ caseSensitive: If true forces a case sensitive search
+ field: If specified, restricts the search to the specified field, or an array of field names
+ anchored: If true, forces all but regexp searches to be anchored to the start of text
+ excludeField: If true, the field options are inverted to specify the fields that are not to be searched
+ The search mode is determined by the first of these boolean flags to be true
+ literal: searches for literal string
+ whitespace: same as literal except runs of whitespace are treated as a single space
+ regexp: treats the search term as a regular expression
+ words: (default) treats search string as a list of tokens, and matches if all tokens are found, regardless of adjacency or ordering
+*/
+exports.search = function(text,options) {
+ options = options || {};
+ var self = this,
+ t,
+ invert = !!options.invert;
+ // Convert the search string into a regexp for each term
+ var terms, searchTermsRegExps,
+ flags = options.caseSensitive ? "" : "i",
+ anchor = options.anchored ? "^" : "";
+ if(options.literal) {
+ if(text.length === 0) {
+ searchTermsRegExps = null;
+ } else {
+ searchTermsRegExps = [new RegExp("(" + anchor + $tw.utils.escapeRegExp(text) + ")",flags)];
+ }
+ } else if(options.whitespace) {
+ terms = [];
+ $tw.utils.each(text.split(/\s+/g),function(term) {
+ if(term) {
+ terms.push($tw.utils.escapeRegExp(term));
+ }
+ });
+ searchTermsRegExps = [new RegExp("(" + anchor + terms.join("\\s+") + ")",flags)];
+ } else if(options.regexp) {
+ try {
+ searchTermsRegExps = [new RegExp("(" + text + ")",flags)];
+ } catch(e) {
+ searchTermsRegExps = null;
+ console.log("Regexp error parsing /(" + text + ")/" + flags + ": ",e);
+ }
+ } else {
+ terms = text.split(/ +/);
+ if(terms.length === 1 && terms[0] === "") {
+ searchTermsRegExps = null;
+ } else {
+ searchTermsRegExps = [];
+ for(t=0; t<terms.length; t++) {
+ searchTermsRegExps.push(new RegExp("(" + anchor + $tw.utils.escapeRegExp(terms[t]) + ")",flags));
+ }
+ }
+ }
+ // Accumulate the array of fields to be searched or excluded from the search
+ var fields = [];
+ if(options.field) {
+ if($tw.utils.isArray(options.field)) {
+ $tw.utils.each(options.field,function(fieldName) {
+ if(fieldName) {
+ fields.push(fieldName);
+ }
+ });
+ } else {
+ fields.push(options.field);
+ }
+ }
+ // Use default fields if none specified and we're not excluding fields (excluding fields with an empty field array is the same as searching all fields)
+ if(fields.length === 0 && !options.excludeField) {
+ fields.push("title");
+ fields.push("tags");
+ fields.push("text");
+ }
+ // Function to check a given tiddler for the search term
+ var searchTiddler = function(title) {
+ if(!searchTermsRegExps) {
+ return true;
+ }
+ var notYetFound = searchTermsRegExps.slice();
+
+ var tiddler = self.getTiddler(title);
+ if(!tiddler) {
+ tiddler = new $tw.Tiddler({title: title, text: "", type: "text/vnd.tiddlywiki"});
+ }
+ var contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type] || $tw.config.contentTypeInfo["text/vnd.tiddlywiki"],
+ searchFields;
+ // Get the list of fields we're searching
+ if(options.excludeField) {
+ searchFields = Object.keys(tiddler.fields);
+ $tw.utils.each(fields,function(fieldName) {
+ var p = searchFields.indexOf(fieldName);
+ if(p !== -1) {
+ searchFields.splice(p,1);
+ }
+ });
+ } else {
+ searchFields = fields;
+ }
+ for(var fieldIndex=0; notYetFound.length>0 && fieldIndex<searchFields.length; fieldIndex++) {
+ // Don't search the text field if the content type is binary
+ var fieldName = searchFields[fieldIndex];
+ if(fieldName === "text" && contentTypeInfo.encoding !== "utf8") {
+ break;
+ }
+ var str = tiddler.fields[fieldName],
+ t;
+ if(str) {
+ if($tw.utils.isArray(str)) {
+ // If the field value is an array, test each regexp against each field array entry and fail if each regexp doesn't match at least one field array entry
+ for(var s=0; s<str.length; s++) {
+ for(t=0; t<notYetFound.length;) {
+ if(notYetFound[t].test(str[s])) {
+ notYetFound.splice(t, 1);
+ } else {
+ t++;
+ }
+ }
+ }
+ } else {
+ // If the field isn't an array, force it to a string and test each regexp against it and fail if any do not match
+ str = tiddler.getFieldString(fieldName);
+ for(t=0; t<notYetFound.length;) {
+ if(notYetFound[t].test(str)) {
+ notYetFound.splice(t, 1);
+ } else {
+ t++;
+ }
+ }
+ }
+ }
+ };
+ return notYetFound.length == 0;
+ };
+ // Loop through all the tiddlers doing the search
+ var results = [],
+ source = options.source || this.each;
+ source(function(tiddler,title) {
+ if(searchTiddler(title) !== options.invert) {
+ results.push(title);
+ }
+ });
+ // Remove any of the results we have to exclude
+ if(options.exclude) {
+ for(t=0; t<options.exclude.length; t++) {
+ var p = results.indexOf(options.exclude[t]);
+ if(p !== -1) {
+ results.splice(p,1);
+ }
+ }
+ }
+ return results;
+};
+
+/*
+Trigger a load for a tiddler if it is skinny. Returns the text, or undefined if the tiddler is missing, null if the tiddler is being lazily loaded.
+*/
+exports.getTiddlerText = function(title,defaultText) {
+ var tiddler = this.getTiddler(title);
+ // Return undefined if the tiddler isn't found
+ if(!tiddler) {
+ return defaultText;
+ }
+ if(!tiddler.hasField("_is_skinny")) {
+ // Just return the text if we've got it
+ return tiddler.fields.text || "";
+ } else {
+ // Tell any listeners about the need to lazily load this tiddler
+ this.dispatchEvent("lazyLoad",title);
+ // Indicate that the text is being loaded
+ return null;
+ }
+};
+
+/*
+Check whether the text of a tiddler matches a given value. By default, the comparison is case insensitive, and any spaces at either end of the tiddler text is trimmed
+*/
+exports.checkTiddlerText = function(title,targetText,options) {
+ options = options || {};
+ var text = this.getTiddlerText(title,"");
+ if(!options.noTrim) {
+ text = text.trim();
+ }
+ if(!options.caseSensitive) {
+ text = text.toLowerCase();
+ targetText = targetText.toLowerCase();
+ }
+ return text === targetText;
+}
+
+/*
+Read an array of browser File objects, invoking callback(tiddlerFieldsArray) once they're all read
+*/
+exports.readFiles = function(files,options) {
+ var callback;
+ if(typeof options === "function") {
+ callback = options;
+ options = {};
+ } else {
+ callback = options.callback;
+ }
+ var result = [],
+ outstanding = files.length,
+ readFileCallback = function(tiddlerFieldsArray) {
+ result.push.apply(result,tiddlerFieldsArray);
+ if(--outstanding === 0) {
+ callback(result);
+ }
+ };
+ for(var f=0; f<files.length; f++) {
+ this.readFile(files[f],$tw.utils.extend({},options,{callback: readFileCallback}));
+ }
+ return files.length;
+};
+
+/*
+Read a browser File object, invoking callback(tiddlerFieldsArray) with an array of tiddler fields objects
+*/
+exports.readFile = function(file,options) {
+ var callback;
+ if(typeof options === "function") {
+ callback = options;
+ options = {};
+ } else {
+ callback = options.callback;
+ }
+ // Get the type, falling back to the filename extension
+ var self = this,
+ type = file.type;
+ if(type === "" || !type) {
+ var dotPos = file.name.lastIndexOf(".");
+ if(dotPos !== -1) {
+ var fileExtensionInfo = $tw.utils.getFileExtensionInfo(file.name.substr(dotPos));
+ if(fileExtensionInfo) {
+ type = fileExtensionInfo.type;
+ }
+ }
+ }
+ // Figure out if we're reading a binary file
+ var contentTypeInfo = $tw.config.contentTypeInfo[type],
+ isBinary = contentTypeInfo ? contentTypeInfo.encoding === "base64" : false;
+ // Log some debugging information
+ if($tw.log.IMPORT) {
+ console.log("Importing file '" + file.name + "', type: '" + type + "', isBinary: " + isBinary);
+ }
+ // Give the hook a chance to process the drag
+ if($tw.hooks.invokeHook("th-importing-file",{
+ file: file,
+ type: type,
+ isBinary: isBinary,
+ callback: callback
+ }) !== true) {
+ this.readFileContent(file,type,isBinary,options.deserializer,callback);
+ }
+};
+
+/*
+Lower level utility to read the content of a browser File object, invoking callback(tiddlerFieldsArray) with an array of tiddler fields objects
+*/
+exports.readFileContent = function(file,type,isBinary,deserializer,callback) {
+ var self = this;
+ // Create the FileReader
+ var reader = new FileReader();
+ // Onload
+ reader.onload = function(event) {
+ var text = event.target.result,
+ tiddlerFields = {title: file.name || "Untitled", type: type};
+ if(isBinary) {
+ var commaPos = text.indexOf(",");
+ if(commaPos !== -1) {
+ text = text.substr(commaPos + 1);
+ }
+ }
+ // Check whether this is an encrypted TiddlyWiki file
+ var encryptedJson = $tw.utils.extractEncryptedStoreArea(text);
+ if(encryptedJson) {
+ // If so, attempt to decrypt it with the current password
+ $tw.utils.decryptStoreAreaInteractive(encryptedJson,function(tiddlers) {
+ callback(tiddlers);
+ });
+ } else {
+ // Otherwise, just try to deserialise any tiddlers in the file
+ callback(self.deserializeTiddlers(type,text,tiddlerFields,{deserializer: deserializer}));
+ }
+ };
+ // Kick off the read
+ if(isBinary) {
+ reader.readAsDataURL(file);
+ } else {
+ reader.readAsText(file);
+ }
+};
+
+/*
+Find any existing draft of a specified tiddler
+*/
+exports.findDraft = function(targetTitle) {
+ var draftTitle = undefined;
+ this.forEachTiddler({includeSystem: true},function(title,tiddler) {
+ if(tiddler.fields["draft.title"] && tiddler.fields["draft.of"] === targetTitle) {
+ draftTitle = title;
+ }
+ });
+ return draftTitle;
+}
+
+/*
+Check whether the specified draft tiddler has been modified.
+If the original tiddler doesn't exist, create a vanilla tiddler variable,
+to check if additional fields have been added.
+*/
+exports.isDraftModified = function(title) {
+ var tiddler = this.getTiddler(title);
+ if(!tiddler.isDraft()) {
+ return false;
+ }
+ var ignoredFields = ["created", "modified", "title", "draft.title", "draft.of"],
+ origTiddler = this.getTiddler(tiddler.fields["draft.of"]) || new $tw.Tiddler({text:"", tags:[]}),
+ titleModified = tiddler.fields["draft.title"] !== tiddler.fields["draft.of"];
+ return titleModified || !tiddler.isEqual(origTiddler,ignoredFields);
+};
+
+/*
+Add a new record to the top of the history stack
+title: a title string or an array of title strings
+fromPageRect: page coordinates of the origin of the navigation
+historyTitle: title of history tiddler (defaults to $:/HistoryList)
+*/
+exports.addToHistory = function(title,fromPageRect,historyTitle) {
+ var story = new $tw.Story({wiki: this, historyTitle: historyTitle});
+ story.addToHistory(title,fromPageRect);
+};
+
+/*
+Add a new tiddler to the story river
+title: a title string or an array of title strings
+fromTitle: the title of the tiddler from which the navigation originated
+storyTitle: title of story tiddler (defaults to $:/StoryList)
+options: see story.js
+*/
+exports.addToStory = function(title,fromTitle,storyTitle,options) {
+ var story = new $tw.Story({wiki: this, storyTitle: storyTitle});
+ story.addToStory(title,fromTitle,options);
+};
+
+/*
+Generate a title for the draft of a given tiddler
+*/
+exports.generateDraftTitle = function(title) {
+ var c = 0,
+ draftTitle,
+ username = this.getTiddlerText("$:/status/UserName"),
+ attribution = username ? " by " + username : "";
+ do {
+ draftTitle = "Draft " + (c ? (c + 1) + " " : "") + "of '" + title + "'" + attribution;
+ c++;
+ } while(this.tiddlerExists(draftTitle));
+ return draftTitle;
+};
+
+/*
+Invoke the available upgrader modules
+titles: array of tiddler titles to be processed
+tiddlers: hashmap by title of tiddler fields of pending import tiddlers. These can be modified by the upgraders. An entry with no fields indicates a tiddler that was pending import has been suppressed. When entries are added to the pending import the tiddlers hashmap may have entries that are not present in the titles array
+Returns a hashmap of messages keyed by tiddler title.
+*/
+exports.invokeUpgraders = function(titles,tiddlers) {
+ // Collect up the available upgrader modules
+ var self = this;
+ if(!this.upgraderModules) {
+ this.upgraderModules = [];
+ $tw.modules.forEachModuleOfType("upgrader",function(title,module) {
+ if(module.upgrade) {
+ self.upgraderModules.push(module);
+ }
+ });
+ }
+ // Invoke each upgrader in turn
+ var messages = {};
+ for(var t=0; t<this.upgraderModules.length; t++) {
+ var upgrader = this.upgraderModules[t],
+ upgraderMessages = upgrader.upgrade(this,titles,tiddlers);
+ $tw.utils.extend(messages,upgraderMessages);
+ }
+ return messages;
+};
+
+// Determine whether a plugin by title is dynamically loadable
+exports.doesPluginRequireReload = function(title) {
+ return this.doesPluginInfoRequireReload(this.getPluginInfo(title) || this.getTiddlerDataCached(title));
+};
+
+// Determine whether a plugin info structure is dynamically loadable
+exports.doesPluginInfoRequireReload = function(pluginInfo) {
+ if(pluginInfo) {
+ var foundModule = false;
+ $tw.utils.each(pluginInfo.tiddlers,function(tiddler) {
+ if(tiddler.type === "application/javascript" && $tw.utils.hop(tiddler,"module-type")) {
+ foundModule = true;
+ }
+ });
+ return foundModule;
+ } else {
+ return null;
+ }
+};
+
+})();
+
+
+This plugin contains TiddlyWiki's core components, comprising:
+
+* JavaScript code modules
+* Icons
+* Templates needed to create TiddlyWiki's user interface
+* British English (''en-GB'') translations of the localisable strings used by the core
+
+\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
+\define saveTiddlerFilter()
+[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$
+\end
+{{$:/core/templates/tiddlywiki5.html}}
+
+\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
+\define saveTiddlerFilter()
+[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/core]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$
+\end
+{{$:/core/templates/tiddlywiki5-external-js.html}}
+
+\define saveTiddlerFilter()
+[is[system]] -[prefix[$:/state/popup/]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]]
+\end
+{{$:/core/templates/tiddlywiki5.html}}
+
+\define saveTiddlerFilter()
+[is[system]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]]
+\end
+\define skinnySaveTiddlerFilter()
+[!is[system]]
+\end
+{{$:/core/templates/tiddlywiki5.html}}
+
+\define saveTiddlerFilter()
+[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[!is[system]is[image]] +[sort[title]]
+\end
+\define skinnySaveTiddlerFilter()
+[is[image]]
+\end
+{{$:/core/templates/tiddlywiki5.html}}
+
+<!-- This template is provided for backwards compatibility with older versions of TiddlyWiki -->
+
+<$set name="exportFilter" value="[!is[system]sort[title]]">
+
+{{$:/core/templates/exporters/StaticRiver}}
+
+</$set>
+
+<!--
+
+This template is used to assign the ''_canonical_uri'' field to external images.
+
+Change the `./images/` part to a different base URI. The URI can be relative or absolute.
+
+-->
+./images/<$view field="title" format="doubleurlencoded"/>
+<!--
+
+This template is used to assign the ''_canonical_uri'' field to external raw files that are stored in the same directory
+
+-->
+<$view field="title" format="doubleurlencoded"/>
+<!--
+
+This template is used to assign the ''_canonical_uri'' field to external text files.
+
+Change the `./text/` part to a different base URI. The URI can be relative or absolute.
+
+-->
+./text/<$view field="title" format="doubleurlencoded"/>.tid
+<!--
+
+This template is used for saving CSS tiddlers as a style tag with data attributes representing the tiddler fields.
+
+-->`<style`<$fields template=' data-tiddler-$name$="$encoded_value$"'></$fields>` type="text/css">`<$view field="text" format="text" />`</style>`
+\define renderContent()
+<$text text=<<csvtiddlers filter:"""$(exportFilter)$""" format:"quoted-comma-sep">>/>
+\end
+<<renderContent>>
+
+\define renderContent()
+<$text text=<<jsontiddlers filter:"""$(exportFilter)$""">>/>
+\end
+<<renderContent>>
+
+\define tv-wikilink-template() #$uri_encoded$
+\define tv-config-toolbar-icons() no
+\define tv-config-toolbar-text() no
+\define tv-config-toolbar-class() tc-btn-invisible
+\rules only filteredtranscludeinline transcludeinline
+<!doctype html>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<meta name="generator" content="TiddlyWiki" />
+<meta name="tiddlywiki-version" content="{{$:/core/templates/version}}" />
+<meta name="format-detection" content="telephone=no">
+<link id="faviconLink" rel="shortcut icon" href="favicon.ico">
+<title>{{$:/core/wiki/title}}</title>
+<div id="styleArea">
+{{$:/boot/boot.css||$:/core/templates/css-tiddler}}
+</div>
+<style type="text/css">
+{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}
+</style>
+</head>
+<body class="tc-body">
+{{$:/StaticBanner||$:/core/templates/html-tiddler}}
+<section class="tc-story-river">
+{{$:/core/templates/exporters/StaticRiver/Content||$:/core/templates/html-tiddler}}
+</section>
+</body>
+</html>
+
+\define renderContent()
+{{{ $(exportFilter)$ ||$:/core/templates/static-tiddler}}}
+\end
+\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
+<<renderContent>>
+
+\define renderContent()
+{{{ $(exportFilter)$ +[limit[1]] ||$:/core/templates/tid-tiddler}}}
+\end
+\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
+<<renderContent>>
+<!--
+
+This template is a variant of $:/core/templates/html-div-tiddler used for saving skinny tiddlers (with no text field)
+
+-->`<div`<$fields template=' $name$="$encoded_value$"'></$fields>`>
+<pre></pre>
+</div>`
+
+<!--
+
+This template is used for saving tiddlers as an HTML DIV tag with attributes representing the tiddler fields.
+
+-->`<div`<$fields template=' $name$="$encoded_value$"'></$fields>`>
+<pre>`<$view field="text" format="htmlencoded" />`</pre>
+</div>`
+
+<!--
+
+This template is used for saving tiddlers as raw HTML
+
+--><$view field="text" format="htmlwikified" />
+<!--
+
+This template is used for saving JavaScript tiddlers as a script tag with data attributes representing the tiddler fields.
+
+-->`<script`<$fields template=' data-tiddler-$name$="$encoded_value$"'></$fields>` type="text/javascript">`<$view field="text" format="text" />`</script>`
+<!--
+
+This template is used for saving tiddlers as raw JSON
+
+--><$text text=<<jsontiddler>>/>
+<!--
+
+This template is used for saving JavaScript tiddlers as a script tag with data attributes representing the tiddler fields. The body of the tiddler is wrapped in a call to the `$tw.modules.define` function in order to define the body of the tiddler as a module
+
+-->`<script`<$fields template=' data-tiddler-$name$="$encoded_value$"'></$fields>` type="text/javascript" data-module="yes">$tw.modules.define("`<$view field="title" format="jsencoded" />`","`<$view field="module-type" format="jsencoded" />`",function(module,exports,require) {`<$view field="text" format="text" />`});
+</script>`
+\rules only filteredtranscludeinline transcludeinline entity
+<!-- The following comment is called a MOTW comment and is necessary for the TiddlyIE Internet Explorer extension -->
+<!-- saved from url=(0021)https://tiddlywiki.com -->
+<$view field="text" format="text" />
+<!--
+
+This template is used for saving tiddlers as static HTML
+
+--><$view field="text" format="plainwikified" />
+\whitespace trim
+<div class="tc-sidebar-scrollable" style="overflow: auto;">
+<div class="tc-sidebar-header">
+<h1 class="tc-site-title">
+<$transclude tiddler="$:/SiteTitle"/>
+</h1>
+<div class="tc-site-subtitle">
+<$transclude tiddler="$:/SiteSubtitle"/>
+</div>
+<h2>
+</h2>
+<div class="tc-sidebar-lists">
+<$list filter={{$:/DefaultTiddlers}}>
+<div class="tc-menu-list-subitem">
+<$link><$text text=<<currentTiddler>>/></$link>
+</div>
+</$list>
+</div>
+<!-- Currently disabled the recent list as it is unweildy when the responsive narrow view kicks in
+<h2>
+{{$:/language/SideBar/Recent/Caption}}
+</h2>
+<div class="tc-sidebar-lists">
+<$macrocall $name="timeline" format={{$:/language/RecentChanges/DateFormat}}/>
+</div>
+</div>
+</div>
+-->
+
+\whitespace trim
+\define tv-wikilink-template() $uri_encoded$
+\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<meta name="generator" content="TiddlyWiki" />
+<meta name="tiddlywiki-version" content={{$:/core/templates/version}} />
+<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">
+<link id="faviconLink" rel="shortcut icon" href="favicon.ico">
+<link rel="stylesheet" href="%24%3A%2Fcore%2Ftemplates%2Fstatic.template.css">
+<title><$view field="caption" format="plainwikified"><$view field="title"/></$view>: <$view tiddler="$:/core/wiki/title" format="plainwikified"/></title>
+</head>
+<body class="tc-body">
+<$transclude tiddler="$:/core/templates/server/static.sidebar.wikitext" mode="inline"/>
+<section class="tc-story-river">
+<div class="tc-tiddler-frame">
+<$transclude tiddler="$:/core/templates/server/static.tiddler.wikitext" mode="inline"/>
+</div>
+</section>
+</body>
+</html>
+\whitespace trim
+<div class="tc-tiddler-title">
+<div class="tc-titlebar">
+<h2><$text text=<<currentTiddler>>/></h2>
+</div>
+</div>
+<div class="tc-subtitle">
+<$link to={{!!modifier}}>
+<$view field="modifier"/>
+</$link> <$view field="modified" format="date" template={{$:/language/Tiddler/DateFormat}}/>
+</div>
+<div class="tc-tags-wrapper">
+<$list filter="[all[current]tags[]sort[title]]">
+<a href={{{ [<currentTiddler>encodeuricomponent[]] }}}>
+<$macrocall $name="tag-pill" tag=<<currentTiddler>>/>
+</a>
+</$list>
+</div>
+<div class="tc-tiddler-body">
+<$transclude mode="block"/>
+</div>
+
+\whitespace trim
+\define containerClasses()
+tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$
+\end
+\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
+
+<$set name="tv-config-toolbar-icons" value={{$:/config/Toolbar/Icons}}>
+
+<$set name="tv-config-toolbar-text" value={{$:/config/Toolbar/Text}}>
+
+<$set name="tv-config-toolbar-class" value={{$:/config/Toolbar/ButtonClass}}>
+
+<$set name="tv-show-missing-links" value={{$:/config/MissingLinks}}>
+
+<$set name="storyviewTitle" value={{$:/view}}>
+
+<$set name="languageTitle" value={{{ [{$:/language}get[name]] }}}>
+
+<div class=<<containerClasses>>>
+
+<$navigator story="$:/StoryList" history="$:/HistoryList">
+
+<$transclude mode="block"/>
+
+</$navigator>
+
+</div>
+
+</$set>
+
+</$set>
+
+</$set>
+
+</$set>
+
+</$set>
+
+</$set>
+
+<$list filter="[!is[system]]">
+tiddler: <$view field="title" format="urlencoded"/>.tid
+</$list>
+
+<a name=<<currentTiddler>>>
+<$transclude tiddler="$:/core/ui/ViewTemplate"/>
+</a>
+<$reveal type="nomatch" state="$:/isEncrypted" text="yes">
+{{{ [all[shadows+tiddlers]tag[$:/tags/RawStaticContent]!has[draft.of]] ||$:/core/templates/raw-static-tiddler}}}
+{{$:/core/templates/static.content||$:/core/templates/html-tiddler}}
+</$reveal>
+<$reveal type="match" state="$:/isEncrypted" text="yes">
+This file contains an encrypted ~TiddlyWiki. Enable ~JavaScript and enter the decryption password when prompted.
+</$reveal>
+<!-- ensure splash screen isn't shown when JS is disabled -->
+`<style>
+.tc-remove-when-wiki-loaded {display: none;}
+</style>`
+
+<!-- For Google, and people without JavaScript-->
+This [[TiddlyWiki|https://tiddlywiki.com]] contains the following tiddlers:
+
+<ul>
+<$list filter=<<saveTiddlerFilter>>>
+<li><$view field="title" format="text"></$view></li>
+</$list>
+</ul>
+
+{{$:/boot/boot.css||$:/core/templates/plain-text-tiddler}}
+
+{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}
+
+\define tv-wikilink-template() static/$uri_doubleencoded$.html
+\define tv-config-toolbar-icons() no
+\define tv-config-toolbar-text() no
+\define tv-config-toolbar-class() tc-btn-invisible
+\rules only filteredtranscludeinline transcludeinline
+<!doctype html>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<meta name="generator" content="TiddlyWiki" />
+<meta name="tiddlywiki-version" content="{{$:/core/templates/version}}" />
+<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">
+<link id="faviconLink" rel="shortcut icon" href="favicon.ico">
+<title>{{$:/core/wiki/title}}</title>
+<div id="styleArea">
+{{$:/boot/boot.css||$:/core/templates/css-tiddler}}
+</div>
+<style type="text/css">
+{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}
+</style>
+</head>
+<body class="tc-body">
+{{$:/StaticBanner||$:/core/templates/html-tiddler}}
+{{$:/core/ui/PageTemplate||$:/core/templates/html-tiddler}}
+</body>
+</html>
+
+\define tv-wikilink-template() $uri_doubleencoded$.html
+\define tv-config-toolbar-icons() no
+\define tv-config-toolbar-text() no
+\define tv-config-toolbar-class() tc-btn-invisible
+\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
+`<!doctype html>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<meta name="generator" content="TiddlyWiki" />
+<meta name="tiddlywiki-version" content="`{{$:/core/templates/version}}`" />
+<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">
+<link id="faviconLink" rel="shortcut icon" href="favicon.ico">
+<link rel="stylesheet" href="static.css">
+<title>`<$view field="caption"><$view field="title"/></$view>: {{$:/core/wiki/title}}`</title>
+</head>
+<body class="tc-body">
+`{{$:/StaticBanner||$:/core/templates/html-tiddler}}`
+<section class="tc-story-river">
+`<$view tiddler="$:/core/ui/ViewTemplate" format="htmlwikified"/>`
+</section>
+</body>
+</html>
+`
+<$reveal type="nomatch" state="$:/isEncrypted" text="yes">
+`<div id="storeArea" style="display:none;">`
+<$list filter=<<saveTiddlerFilter>> template="$:/core/templates/html-div-tiddler"/>
+<$list filter={{{ [<skinnySaveTiddlerFilter>] }}} template="$:/core/templates/html-div-skinny-tiddler"/>
+`</div>`
+</$reveal>
+<$reveal type="match" state="$:/isEncrypted" text="yes">
+`<!--~~ Encrypted tiddlers ~~-->`
+`<pre id="encryptedStoreArea" type="text/plain" style="display:none;">`
+<$encrypt filter=<<saveTiddlerFilter>>/>
+`</pre>`
+</$reveal>
+<!--
+
+This template is used for saving tiddlers in TiddlyWeb *.tid format
+
+--><$fields exclude='text bag' template='$name$: $value$
+'></$fields>`
+`<$view field="text" format="text" />
+<!--
+
+This template is used for saving tiddler metadata *.meta files
+
+--><$fields exclude='text bag' template='$name$: $value$
+'></$fields>
+\rules only filteredtranscludeinline transcludeinline
+<!doctype html>
+{{$:/core/templates/MOTW.html}}<html lang="`<$text text={{{ [{$:/language}get[name]] }}}/>`">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<!--~~ Raw markup for the top of the head section ~~-->
+{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}}
+<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="{{$:/core/templates/version}}" />
+<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="{{$:/core/copyright.txt}}" />
+<link id="faviconLink" rel="shortcut icon" href="favicon.ico">
+<title>{{$:/core/wiki/title}}</title>
+<!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~-->
+
+<!--~~ Raw markup ~~-->
+{{{ [all[shadows+tiddlers]tag[$:/core/wiki/rawmarkup]] [all[shadows+tiddlers]tag[$:/tags/RawMarkup]] ||$:/core/templates/plain-text-tiddler}}}
+{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified]] ||$:/core/templates/raw-static-tiddler}}}
+</head>
+<body class="tc-body">
+<!--~~ Raw markup for the top of the body section ~~-->
+{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}}
+<!--~~ Static styles ~~-->
+<div id="styleArea">
+{{$:/boot/boot.css||$:/core/templates/css-tiddler}}
+</div>
+<!--~~ Static content for Google and browsers without JavaScript ~~-->
+<noscript>
+<div id="splashArea">
+{{$:/core/templates/static.area}}
+</div>
+</noscript>
+<!--~~ Ordinary tiddlers ~~-->
+{{$:/core/templates/store.area.template.html}}
+<!--~~ Raw markup for the bottom of the body section ~~-->
+{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}}
+</body>
+<script src="%24%3A%2Fcore%2Ftemplates%2Ftiddlywiki5.js" onerror="alert('Error: Cannot load tiddlywiki.js');"></script>
+</html>
+
+<$set name="saveTiddlerAndShadowsFilter" filter="[subfilter<saveTiddlerFilter>] [subfilter<saveTiddlerFilter>plugintiddlers[]]">
+`<!doctype html>
+`{{$:/core/templates/MOTW.html}}`<html lang="`<$text text={{{ [{$:/language}get[name]] }}}/>`">
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+<!--~~ Raw markup for the top of the head section ~~-->
+`{{{ [<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}}`
+<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="`{{$:/core/templates/version}}`" />
+<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="`{{$:/core/copyright.txt}}`" />
+<link id="faviconLink" rel="shortcut icon" href="favicon.ico">
+<title>`{{$:/core/wiki/title}}`</title>
+<!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~-->
+
+<!--~~ Raw markup ~~-->
+`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/core/wiki/rawmarkup]] ||$:/core/templates/plain-text-tiddler}}}
+{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkup]] ||$:/core/templates/plain-text-tiddler}}}
+{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified]] ||$:/core/templates/raw-static-tiddler}}}`
+</head>
+<body class="tc-body">
+<!--~~ Raw markup for the top of the body section ~~-->
+`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}}`
+<!--~~ Static styles ~~-->
+<div id="styleArea">
+`{{$:/boot/boot.css||$:/core/templates/css-tiddler}}`
+</div>
+<!--~~ Static content for Google and browsers without JavaScript ~~-->
+<noscript>
+<div id="splashArea">
+`{{$:/core/templates/static.area}}`
+</div>
+</noscript>
+<!--~~ Ordinary tiddlers ~~-->
+`{{$:/core/templates/store.area.template.html}}`
+<!--~~ Library modules ~~-->
+<div id="libraryModules" style="display:none;">
+`{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/javascript-tiddler}}}`
+</div>
+<!--~~ Boot kernel prologue ~~-->
+<div id="bootKernelPrefix" style="display:none;">
+`{{ $:/boot/bootprefix.js ||$:/core/templates/javascript-tiddler}}`
+</div>
+<!--~~ Boot kernel ~~-->
+<div id="bootKernel" style="display:none;">
+`{{ $:/boot/boot.js ||$:/core/templates/javascript-tiddler}}`
+</div>
+<!--~~ Raw markup for the bottom of the body section ~~-->
+`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}}`
+</body>
+</html>`
+
+\rules only filteredtranscludeinline transcludeinline codeinline
+
+/*
+{{ $:/core/copyright.txt ||$:/core/templates/plain-text-tiddler}}
+`*/
+`<!--~~ Library modules ~~-->
+{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/plain-text-tiddler}}}
+<!--~~ Boot prefix ~~-->
+{{ $:/boot/bootprefix.js ||$:/core/templates/plain-text-tiddler}}
+<!--~~ Core plugin ~~-->
+{{$:/core/templates/tiddlywiki5.js/tiddlers}}
+<!--~~ Boot kernel ~~-->
+{{ $:/boot/boot.js ||$:/core/templates/plain-text-tiddler}}
+
+`
+$tw.preloadTiddlerArray(`<$text text=<<jsontiddlers "[[$:/core]]">>/>`);
+$tw.preloadTiddlerArray([{
+ title: "$:/config/SaveWikiButton/Template",
+ text: "$:/core/save/all-external-js"
+}]);
+`
+
+<<version>>
+<$transclude />
+\define lingo-base() $:/language/AboveStory/ClassicPlugin/
+<$list filter="[all[system+tiddlers]tag[systemConfig]limit[1]]">
+
+<div class="tc-message-box">
+
+<<lingo Warning>>
+
+<ul>
+
+<$list filter="[all[system+tiddlers]tag[systemConfig]]">
+
+<li>
+
+<$link><$view field="title"/></$link>
+
+</li>
+
+</$list>
+
+</ul>
+
+</div>
+
+</$list>
+
+\define get-type()
+image/$(imageType)$
+\end
+<$vars imageType={{$:/config/NewImageType}}>
+<$action-sendmessage $message="tm-new-tiddler" type=<<get-type>> tags={{$:/config/NewTiddler/Tags!!tags}}/>
+</$vars>
+
+<$vars journalTitleTemplate={{$:/config/NewJournal/Title}} journalTags={{$:/config/NewJournal/Tags!!tags}} journalText={{$:/config/NewJournal/Text}}>
+<$wikify name="journalTitle" text="""<$macrocall $name="now" format=<<journalTitleTemplate>>/>""">
+<$reveal type="nomatch" state=<<journalTitle>> text="">
+<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<journalTags>> text={{{ [<journalTitle>get[]] }}}/>
+</$reveal>
+<$reveal type="match" state=<<journalTitle>> text="">
+<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<journalTags>> text=<<journalText>>/>
+</$reveal>
+</$wikify>
+</$vars>
+
+<$action-sendmessage $message="tm-new-tiddler" tags={{$:/config/NewTiddler/Tags!!tags}}/>
+
+\define lingo-base() $:/language/Search/
+<<lingo Filter/Hint>>
+
+<div class="tc-search tc-advanced-search">
+<$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input" focus={{$:/config/Search/AutoFocus}}/>
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch/FilterButton]!has[draft.of]]"><$transclude/></$list>
+</div>
+
+<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
+<$set name="resultCount" value="""<$count filter={{$:/temp/advancedsearch}}/>""">
+<div class="tc-search-results">
+<<lingo Filter/Matches>>
+<$list filter={{$:/temp/advancedsearch}} template="$:/core/ui/ListItemTemplate"/>
+</div>
+</$set>
+</$reveal>
+
+<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
+<$button class="tc-btn-invisible">
+<$action-setfield $tiddler="$:/temp/advancedsearch" $field="text" $value=""/>
+{{$:/core/images/close-button}}
+</$button>
+</$reveal>
+
+<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
+<$button popup=<<qualify "$:/state/filterDeleteDropdown">> class="tc-btn-invisible">
+{{$:/core/images/delete-button}}
+</$button>
+</$reveal>
+
+<$reveal state=<<qualify "$:/state/filterDeleteDropdown">> type="popup" position="belowleft" animate="yes">
+<div class="tc-block-dropdown-wrapper">
+<div class="tc-block-dropdown tc-edit-type-dropdown">
+<div class="tc-dropdown-item-plain">
+<$set name="resultCount" value="""<$count filter={{$:/temp/advancedsearch}}/>""">
+Are you sure you wish to delete <<resultCount>> tiddler(s)?
+</$set>
+</div>
+<div class="tc-dropdown-item-plain">
+<$button class="tc-btn">
+<$action-deletetiddler $filter={{$:/temp/advancedsearch}}/>
+Delete these tiddlers
+</$button>
+</div>
+</div>
+</div>
+</$reveal>
+
+<span class="tc-popup-keep">
+<$button popup=<<qualify "$:/state/filterDropdown">> class="tc-btn-invisible">
+{{$:/core/images/down-arrow}}
+</$button>
+</span>
+
+<$reveal state=<<qualify "$:/state/filterDropdown">> type="popup" position="belowleft" animate="yes">
+<$set name="tv-show-missing-links" value="yes">
+<$linkcatcher to="$:/temp/advancedsearch">
+<div class="tc-block-dropdown-wrapper">
+<div class="tc-block-dropdown tc-edit-type-dropdown">
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/Filter]]"><$link to={{!!filter}}><$transclude field="description"/></$link>
+</$list>
+</div>
+</div>
+</$linkcatcher>
+</$set>
+</$reveal>
+
+<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
+<$macrocall $name="exportButton" exportFilter={{$:/temp/advancedsearch}} lingoBase="$:/language/Buttons/ExportTiddlers/"/>
+</$reveal>
+
+\define lingo-base() $:/language/Search/
+<$linkcatcher to="$:/temp/advancedsearch">
+
+<<lingo Shadows/Hint>>
+
+<div class="tc-search">
+<$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input" focus={{$:/config/Search/AutoFocus}}/>
+<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
+<$button class="tc-btn-invisible">
+<$action-setfield $tiddler="$:/temp/advancedsearch" $field="text" $value=""/>
+{{$:/core/images/close-button}}
+</$button>
+</$reveal>
+</div>
+
+</$linkcatcher>
+
+<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
+
+<$list filter="[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
+
+<$set name="resultCount" value="""<$count filter="[all[shadows]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]"/>""">
+
+<div class="tc-search-results">
+
+<<lingo Shadows/Matches>>
+
+<$list filter="[all[shadows]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]" template="$:/core/ui/ListItemTemplate"/>
+
+</div>
+
+</$set>
+
+</$list>
+
+</$reveal>
+
+<$reveal state="$:/temp/advancedsearch" type="match" text="">
+
+</$reveal>
+
+\define lingo-base() $:/language/Search/
+<$linkcatcher to="$:/temp/advancedsearch">
+
+<<lingo Standard/Hint>>
+
+<div class="tc-search">
+<$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input" focus={{$:/config/Search/AutoFocus}}/>
+<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
+<$button class="tc-btn-invisible">
+<$action-setfield $tiddler="$:/temp/advancedsearch" $field="text" $value=""/>
+{{$:/core/images/close-button}}
+</$button>
+</$reveal>
+</div>
+
+</$linkcatcher>
+
+<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
+<$list filter="[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
+<$set name="searchTiddler" value="$:/temp/advancedsearch">
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]" emptyMessage="""
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]">
+<$transclude/>
+</$list>
+""">
+<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]" default={{$:/config/SearchResults/Default}}/>
+</$list>
+</$set>
+</$list>
+</$reveal>
+
+\define lingo-base() $:/language/Search/
+<$linkcatcher to="$:/temp/advancedsearch">
+
+<<lingo System/Hint>>
+
+<div class="tc-search">
+<$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input" focus={{$:/config/Search/AutoFocus}}/>
+<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
+<$button class="tc-btn-invisible">
+<$action-setfield $tiddler="$:/temp/advancedsearch" $field="text" $value=""/>
+{{$:/core/images/close-button}}
+</$button>
+</$reveal>
+</div>
+
+</$linkcatcher>
+
+<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
+
+<$list filter="[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
+
+<$set name="resultCount" value="""<$count filter="[is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]"/>""">
+
+<div class="tc-search-results">
+
+<<lingo System/Matches>>
+
+<$list filter="[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]" template="$:/core/ui/ListItemTemplate"/>
+
+</div>
+
+</$set>
+
+</$list>
+
+</$reveal>
+
+<$reveal state="$:/temp/advancedsearch" type="match" text="">
+
+</$reveal>
+
+<div class="tc-alert">
+<div class="tc-alert-toolbar">
+<$button class="tc-btn-invisible"><$action-deletetiddler $tiddler=<<currentTiddler>>/>{{$:/core/images/cancel-button}}</$button>
+</div>
+<div class="tc-alert-subtitle">
+<$wikify name="format" text=<<lingo Tiddler/DateFormat>>>
+<$view field="component"/> - <$view field="modified" format="date" template=<<format>>/> <$reveal type="nomatch" state="!!count" text=""><span class="tc-alert-highlight">({{$:/language/Count}}: <$view field="count"/>)</span></$reveal>
+</$wikify>
+</div>
+<div class="tc-alert-body">
+
+<$transclude/>
+
+</div>
+</div>
+
+\define lingo-base() $:/language/BinaryWarning/
+<<lingo Prompt>>
+
+\whitespace trim
+\define control-panel-button(class)
+<$button to="$:/AdvancedSearch" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="""$(tv-config-toolbar-class)$ $class$""">
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/advanced-search-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/AdvancedSearch/Caption}}/></span>
+</$list>
+</$button>
+\end
+
+<$list filter="[list[$:/StoryList]] +[field:title[$:/AdvancedSearch]]" emptyMessage=<<control-panel-button>>>
+<<control-panel-button "tc-selected">>
+</$list>
+
+<$button message="tm-cancel-tiddler" tooltip={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/cancel-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/Cancel/Caption}}/></span>
+</$list>
+</$button>
+\whitespace trim
+<$button message="tm-new-tiddler" param=<<currentTiddler>> tooltip={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/clone-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text">
+<$text text=" "/>
+<$text text={{$:/language/Buttons/Clone/Caption}}/>
+</span>
+</$list>
+</$button>
+\whitespace trim
+<$button message="tm-close-tiddler" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/close-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text">
+<$text text={{$:/language/Buttons/Close/Caption}}/>
+</span>
+</$list>
+</$button>
+<$button message="tm-close-all-tiddlers" tooltip={{$:/language/Buttons/CloseAll/Hint}} aria-label={{$:/language/Buttons/CloseAll/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/close-all-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/CloseAll/Caption}}/></span>
+</$list>
+</$button>
+\whitespace trim
+<$button message="tm-close-other-tiddlers" param=<<currentTiddler>> tooltip={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/close-others-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text">
+<$text text=" "/>
+<$text text={{$:/language/Buttons/CloseOthers/Caption}}/>
+</span>
+</$list>
+</$button>
+\whitespace trim
+\define control-panel-button(class)
+<$button to="$:/ControlPanel" tooltip={{$:/language/Buttons/ControlPanel/Hint}} aria-label={{$:/language/Buttons/ControlPanel/Caption}} class="""$(tv-config-toolbar-class)$ $class$""">
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/options-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/ControlPanel/Caption}}/></span>
+</$list>
+</$button>
+\end
+
+<$list filter="[list[$:/StoryList]] +[field:title[$:/ControlPanel]]" emptyMessage=<<control-panel-button>>>
+<<control-panel-button "tc-selected">>
+</$list>
+
+<$button message="tm-delete-tiddler" tooltip={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/delete-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/Delete/Caption}}/></span>
+</$list>
+</$button>
+\whitespace trim
+<$button message="tm-edit-tiddler" tooltip={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/edit-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text">
+<$text text=" "/>
+<$text text={{$:/language/Buttons/Edit/Caption}}/>
+</span>
+</$list>
+</$button>
+\whitespace trim
+<$reveal type="match" state="$:/isEncrypted" text="yes">
+<$button message="tm-clear-password" tooltip={{$:/language/Buttons/Encryption/ClearPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/ClearPassword/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/locked-padlock}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/Encryption/ClearPassword/Caption}}/></span>
+</$list>
+</$button>
+</$reveal>
+<$reveal type="nomatch" state="$:/isEncrypted" text="yes">
+<$button message="tm-set-password" tooltip={{$:/language/Buttons/Encryption/SetPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/SetPassword/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/unlocked-padlock}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/Encryption/SetPassword/Caption}}/></span>
+</$list>
+</$button>
+</$reveal>
+
+<$macrocall $name="exportButton" exportFilter="[!is[system]sort[title]]" lingoBase="$:/language/Buttons/ExportPage/"/>
+\define makeExportFilter()
+[[$(currentTiddler)$]]
+\end
+<$macrocall $name="exportButton" exportFilter=<<makeExportFilter>> lingoBase="$:/language/Buttons/ExportTiddler/" baseFilename=<<currentTiddler>>/>
+\whitespace trim
+<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" default="show">
+<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=<<tv-config-toolbar-class>>>
+<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]" variable="listItem">
+{{$:/core/images/fold-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text">
+<$text text=" "/>
+<$text text={{$:/language/Buttons/Fold/Caption}}/>
+</span>
+</$list>
+</$button>
+</$reveal>
+<$reveal type="match" stateTitle=<<folded-state>> text="hide" default="show">
+<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=<<tv-config-toolbar-class>>>
+<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]" variable="listItem">
+{{$:/core/images/unfold-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text">
+<$text text=" "/>
+<$text text={{$:/language/Buttons/Unfold/Caption}}/>
+</span>
+</$list>
+</$button>
+</$reveal>
+
+<$button tooltip={{$:/language/Buttons/FoldAll/Hint}} aria-label={{$:/language/Buttons/FoldAll/Caption}} class=<<tv-config-toolbar-class>>>
+<$action-sendmessage $message="tm-fold-all-tiddlers" $param=<<currentTiddler>> foldedStatePrefix="$:/state/folded/"/>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]" variable="listItem">
+{{$:/core/images/fold-all-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/FoldAll/Caption}}/></span>
+</$list>
+</$button>
+<!-- This dummy toolbar button is here to allow visibility of the fold-bar to be controlled as if it were a toolbar button -->
+\whitespace trim
+<$button tooltip={{$:/language/Buttons/FoldOthers/Hint}} aria-label={{$:/language/Buttons/FoldOthers/Caption}} class=<<tv-config-toolbar-class>>>
+<$action-sendmessage $message="tm-fold-other-tiddlers" $param=<<currentTiddler>> foldedStatePrefix="$:/state/folded/"/>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]" variable="listItem">
+{{$:/core/images/fold-others-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text">
+<$text text=" "/>
+<$text text={{$:/language/Buttons/FoldOthers/Caption}}/>
+</span>
+</$list>
+</$button>
+<$button message="tm-full-screen" tooltip={{$:/language/Buttons/FullScreen/Hint}} aria-label={{$:/language/Buttons/FullScreen/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/full-screen-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/FullScreen/Caption}}/></span>
+</$list>
+</$button>
+<$button message="tm-home" tooltip={{$:/language/Buttons/Home/Hint}} aria-label={{$:/language/Buttons/Home/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/home-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/Home/Caption}}/></span>
+</$list>
+</$button>
+<div class="tc-file-input-wrapper">
+<$button tooltip={{$:/language/Buttons/Import/Hint}} aria-label={{$:/language/Buttons/Import/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/import-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/Import/Caption}}/></span>
+</$list>
+</$button>
+<$browse tooltip={{$:/language/Buttons/Import/Hint}}/>
+</div>
+\whitespace trim
+\define button-content()
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/info-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text">
+<$text text={{$:/language/Buttons/Info/Caption}}/>
+</span>
+</$list>
+\end
+<$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="popup">
+<$button popup=<<tiddlerInfoState>> tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
+<$macrocall $name="button-content" mode="inline"/>
+</$button>
+</$reveal>
+<$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="sticky">
+<$reveal state=<<tiddlerInfoState>> type="match" text="" default="">
+<$button set=<<tiddlerInfoState>> setTo="yes" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
+<$macrocall $name="button-content" mode="inline"/>
+</$button>
+</$reveal>
+<$reveal state=<<tiddlerInfoState>> type="nomatch" text="" default="">
+<$button set=<<tiddlerInfoState>> setTo="" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
+<$macrocall $name="button-content" mode="inline"/>
+</$button>
+</$reveal>
+</$reveal>
+\whitespace trim
+\define flag-title()
+$(languagePluginTitle)$/icon
+\end
+<span class="tc-popup-keep">
+<$button popup=<<qualify "$:/state/popup/language">> tooltip={{$:/language/Buttons/Language/Hint}} aria-label={{$:/language/Buttons/Language/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+<span class="tc-image-button">
+<$set name="languagePluginTitle" value={{$:/language}}>
+<$image source=<<flag-title>>/>
+</$set>
+</span>
+</$list>
+<$text text=" "/>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/Language/Caption}}/></span>
+</$list>
+</$button>
+</span>
+<$reveal state=<<qualify "$:/state/popup/language">> type="popup" position="below" animate="yes">
+<div class="tc-drop-down">
+{{$:/snippets/languageswitcher}}
+</div>
+</$reveal>
+
+\whitespace trim
+\define manager-button(class)
+<$button to="$:/Manager" tooltip={{$:/language/Buttons/Manager/Hint}} aria-label={{$:/language/Buttons/Manager/Caption}} class="""$(tv-config-toolbar-class)$ $class$""">
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/list}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/Manager/Caption}}/></span>
+</$list>
+</$button>
+\end
+
+<$list filter="[list[$:/StoryList]] +[field:title[$:/Manager]]" emptyMessage=<<manager-button>>>
+<<manager-button "tc-selected">>
+</$list>
+
+\define config-title()
+$:/config/PageControlButtons/Visibility/$(listItem)$
+\end
+<$button popup=<<qualify "$:/state/popup/more">> tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/down-arrow}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/More/Caption}}/></span>
+</$list>
+</$button><$reveal state=<<qualify "$:/state/popup/more">> type="popup" position="below" animate="yes">
+
+<div class="tc-drop-down">
+
+<$set name="tv-config-toolbar-icons" value="yes">
+
+<$set name="tv-config-toolbar-text" value="yes">
+
+<$set name="tv-config-toolbar-class" value="tc-btn-invisible">
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]] -[[$:/core/ui/Buttons/more-page-actions]]" variable="listItem">
+
+<$reveal type="match" state=<<config-title>> text="hide">
+
+<$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]">
+
+<$transclude tiddler=<<listItem>> mode="inline"/>
+
+</$set>
+
+</$reveal>
+
+</$list>
+
+</$set>
+
+</$set>
+
+</$set>
+
+</div>
+
+</$reveal>
+\whitespace trim
+\define config-title()
+$:/config/ViewToolbarButtons/Visibility/$(listItem)$
+\end
+<$button popup=<<qualify "$:/state/popup/more">> tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/down-arrow}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text">
+<$text text=" "/>
+<$text text={{$:/language/Buttons/More/Caption}}/>
+</span>
+</$list>
+</$button>
+<$reveal state=<<qualify "$:/state/popup/more">> type="popup" position="belowleft" animate="yes">
+
+<div class="tc-drop-down">
+
+<$set name="tv-config-toolbar-icons" value="yes">
+
+<$set name="tv-config-toolbar-text" value="yes">
+
+<$set name="tv-config-toolbar-class" value="tc-btn-invisible">
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]" variable="listItem">
+
+<$reveal type="match" state=<<config-title>> text="hide">
+
+<$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]">
+
+<$transclude tiddler=<<listItem>> mode="inline"/>
+
+</$set>
+
+</$reveal>
+
+</$list>
+
+</$set>
+
+</$set>
+
+</$set>
+
+</div>
+
+</$reveal>
+\whitespace trim
+\define newHereActions()
+<$set name="tags" filter="[<currentTiddler>] [{$:/config/NewTiddler/Tags!!tags}]">
+<$action-sendmessage $message="tm-new-tiddler" tags=<<tags>>/>
+</$set>
+\end
+\define newHereButton()
+<$button actions=<<newHereActions>> tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/new-here-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text">
+<$text text={{$:/language/Buttons/NewHere/Caption}}/>
+</span>
+</$list>
+</$button>
+\end
+<<newHereButton>>
+
+\whitespace trim
+<$button tooltip={{$:/language/Buttons/NewImage/Hint}} aria-label={{$:/language/Buttons/NewImage/Caption}} class=<<tv-config-toolbar-class>> actions={{$:/core/ui/Actions/new-image}}>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/new-image-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewImage/Caption}}/></span>
+</$list>
+</$button>
+
+\whitespace trim
+\define journalButton()
+<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=<<tv-config-toolbar-class>> actions={{$:/core/ui/Actions/new-journal}}>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/new-journal-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewJournal/Caption}}/></span>
+</$list>
+</$button>
+\end
+<<journalButton>>
+
+\whitespace trim
+\define journalButtonTags()
+[[$(currentTiddlerTag)$]] $(journalTags)$
+\end
+\define journalButton()
+<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=<<tv-config-toolbar-class>>>
+<$wikify name="journalTitle" text="""<$macrocall $name="now" format=<<journalTitleTemplate>>/>""">
+<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<journalButtonTags>>/>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/new-journal-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text">
+<$text text={{$:/language/Buttons/NewJournalHere/Caption}}/>
+</span>
+</$list>
+</$wikify>
+</$button>
+\end
+<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}>
+<$set name="journalTags" value={{$:/config/NewJournal/Tags!!tags}}>
+<$set name="currentTiddlerTag" value=<<currentTiddler>>>
+<<journalButton>>
+</$set>
+</$set>
+</$set>
+
+\whitespace trim
+<$button actions={{$:/core/ui/Actions/new-tiddler}} tooltip={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/new-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewTiddler/Caption}}/></span>
+</$list>
+</$button>
+
+\whitespace trim
+<$button message="tm-open-window" tooltip={{$:/language/Buttons/OpenWindow/Hint}} aria-label={{$:/language/Buttons/OpenWindow/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/open-window}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text">
+<$text text=" "/>
+<$text text={{$:/language/Buttons/OpenWindow/Caption}}/>
+</span>
+</$list>
+</$button>
+\whitespace trim
+<span class="tc-popup-keep">
+<$button popup=<<qualify "$:/state/popup/palette">> tooltip={{$:/language/Buttons/Palette/Hint}} aria-label={{$:/language/Buttons/Palette/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/palette}}
+</$list>
+<$text text=" "/>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/Palette/Caption}}/></span>
+</$list>
+</$button>
+</span>
+<$reveal state=<<qualify "$:/state/popup/palette">> type="popup" position="below" animate="yes">
+<div class="tc-drop-down" style="font-size:0.7em;">
+{{$:/snippets/paletteswitcher}}
+</div>
+</$reveal>
+
+\whitespace trim
+<$button message="tm-permalink" tooltip={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/permalink-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text">
+<$text text=" "/>
+<$text text={{$:/language/Buttons/Permalink/Caption}}/>
+</span>
+</$list>
+</$button>
+\whitespace trim
+<$button message="tm-permaview" tooltip={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/permaview-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text">
+<$text text=" "/>
+<$text text={{$:/language/Buttons/Permaview/Caption}}/>
+</span>
+</$list>
+</$button>
+<$button message="tm-print" tooltip={{$:/language/Buttons/Print/Hint}} aria-label={{$:/language/Buttons/Print/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/print-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/Print/Caption}}/></span>
+</$list>
+</$button>
+<$button message="tm-browser-refresh" tooltip={{$:/language/Buttons/Refresh/Hint}} aria-label={{$:/language/Buttons/Refresh/Caption}} class=<<tv-config-toolbar-class>>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/refresh-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/Refresh/Caption}}/></span>
+</$list>
+</$button>
+\define save-tiddler-button()
+<$fieldmangler><$button tooltip={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<<tv-config-toolbar-class>>>
+<<save-tiddler-actions>>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/done-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/Save/Caption}}/></span>
+</$list>
+</$button></$fieldmangler>
+\end
+<<save-tiddler-button>>
+
+<$button tooltip={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=<<tv-config-toolbar-class>>>
+<$wikify name="site-title" text={{$:/config/SaveWikiButton/Filename}}>
+<$action-sendmessage $message="tm-save-wiki" $param={{$:/config/SaveWikiButton/Template}} filename=<<site-title>>/>
+</$wikify>
+<span class="tc-dirty-indicator">
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/save-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/SaveWiki/Caption}}/></span>
+</$list>
+</span>
+</$button>
+\whitespace trim
+\define icon()
+$:/core/images/storyview-$(storyview)$
+\end
+<span class="tc-popup-keep">
+<$button popup=<<qualify "$:/state/popup/storyview">> tooltip={{$:/language/Buttons/StoryView/Hint}} aria-label={{$:/language/Buttons/StoryView/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+<$set name="storyview" value={{$:/view}}>
+<$transclude tiddler=<<icon>>/>
+</$set>
+</$list>
+<$text text=" "/>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/StoryView/Caption}}/></span>
+</$list>
+</$button>
+</span>
+<$reveal state=<<qualify "$:/state/popup/storyview">> type="popup" position="below" animate="yes">
+<div class="tc-drop-down">
+{{$:/snippets/viewswitcher}}
+</div>
+</$reveal>
+
+\whitespace trim
+\define control-panel-button(class)
+<$button to="$:/TagManager" tooltip={{$:/language/Buttons/TagManager/Hint}} aria-label={{$:/language/Buttons/TagManager/Caption}} class="""$(tv-config-toolbar-class)$ $class$""">
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/tag-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/TagManager/Caption}}/></span>
+</$list>
+</$button>
+\end
+
+<$list filter="[list[$:/StoryList]] +[field:title[$:/TagManager]]" emptyMessage=<<control-panel-button>>>
+<<control-panel-button "tc-selected">>
+</$list>
+
+\whitespace trim
+<span class="tc-popup-keep">
+<$button popup=<<qualify "$:/state/popup/theme">> tooltip={{$:/language/Buttons/Theme/Hint}} aria-label={{$:/language/Buttons/Theme/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/theme-button}}
+</$list>
+<$text text=" "/>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/Theme/Caption}}/></span>
+</$list>
+</$button>
+</span>
+<$reveal state=<<qualify "$:/state/popup/theme">> type="popup" position="below" animate="yes">
+<div class="tc-drop-down">
+<$linkcatcher to="$:/theme">
+{{$:/snippets/themeswitcher}}
+</$linkcatcher>
+</div>
+</$reveal>
+
+\whitespace trim
+<$reveal type="nomatch" state="$:/config/TimestampDisable" text="yes">
+<$button tooltip={{$:/language/Buttons/Timestamp/On/Hint}} aria-label={{$:/language/Buttons/Timestamp/On/Caption}} class=<<tv-config-toolbar-class>>>
+<$action-setfield $tiddler="$:/config/TimestampDisable" $value="yes"/>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/timestamp-on}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/Timestamp/On/Caption}}/></span>
+</$list>
+</$button>
+</$reveal>
+<$reveal type="match" state="$:/config/TimestampDisable" text="yes">
+<$button tooltip={{$:/language/Buttons/Timestamp/Off/Hint}} aria-label={{$:/language/Buttons/Timestamp/Off/Caption}} class=<<tv-config-toolbar-class>>>
+<$action-setfield $tiddler="$:/config/TimestampDisable" $value="no"/>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]">
+{{$:/core/images/timestamp-off}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/Timestamp/Off/Caption}}/></span>
+</$list>
+</$button>
+</$reveal>
+
+<$button tooltip={{$:/language/Buttons/UnfoldAll/Hint}} aria-label={{$:/language/Buttons/UnfoldAll/Caption}} class=<<tv-config-toolbar-class>>>
+<$action-sendmessage $message="tm-unfold-all-tiddlers" $param=<<currentTiddler>> foldedStatePrefix="$:/state/folded/"/>
+<$list filter="[<tv-config-toolbar-icons>match[yes]]" variable="listItem">
+{{$:/core/images/unfold-all-button}}
+</$list>
+<$list filter="[<tv-config-toolbar-text>match[yes]]">
+<span class="tc-btn-text"><$text text={{$:/language/Buttons/UnfoldAll/Caption}}/></span>
+</$list>
+</$button>
+\define lingo-base() $:/language/ControlPanel/Plugins/
+
+\define popup-state-macro()
+$(qualified-state)$-$(currentTiddler)$
+\end
+
+\define tabs-state-macro()
+$(popup-state)$-$(pluginInfoType)$
+\end
+
+\define plugin-icon-title()
+$(currentTiddler)$/icon
+\end
+
+\define plugin-disable-title()
+$:/config/Plugins/Disabled/$(currentTiddler)$
+\end
+
+\define plugin-table-body(type,disabledMessage,default-popup-state)
+<div class="tc-plugin-info-chunk tc-plugin-info-toggle">
+<$reveal type="nomatch" state=<<popup-state>> text="yes" default="""$default-popup-state$""">
+<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="yes">
+{{$:/core/images/chevron-right}}
+</$button>
+</$reveal>
+<$reveal type="match" state=<<popup-state>> text="yes" default="""$default-popup-state$""">
+<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="no">
+{{$:/core/images/chevron-down}}
+</$button>
+</$reveal>
+</div>
+<div class="tc-plugin-info-chunk tc-plugin-info-icon">
+<$transclude tiddler=<<currentTiddler>> subtiddler=<<plugin-icon-title>>>
+<$transclude tiddler="$:/core/images/plugin-generic-$type$"/>
+</$transclude>
+</div>
+<div class="tc-plugin-info-chunk tc-plugin-info-description">
+<h1>
+''<$text text={{{ [<currentTiddler>get[name]] ~[<currentTiddler>split[/]last[1]] }}}/>'': <$view field="description"><$view field="title"/></$view> $disabledMessage$
+</h1>
+<h2>
+<$view field="title"/>
+</h2>
+<h2>
+<div><em><$view field="version"/></em></div>
+</h2>
+</div>
+\end
+
+\define plugin-info(type,default-popup-state)
+<$set name="popup-state" value=<<popup-state-macro>>>
+<$reveal type="nomatch" state=<<plugin-disable-title>> text="yes">
+<$link to={{!!title}} class="tc-plugin-info">
+<<plugin-table-body type:"$type$" default-popup-state:"""$default-popup-state$""">>
+</$link>
+</$reveal>
+<$reveal type="match" state=<<plugin-disable-title>> text="yes">
+<$link to={{!!title}} class="tc-plugin-info tc-plugin-info-disabled">
+<<plugin-table-body type:"$type$" default-popup-state:"""$default-popup-state$""" disabledMessage:"<$macrocall $name='lingo' title='Disabled/Status'/>">>
+</$link>
+</$reveal>
+<$reveal type="match" text="yes" state=<<popup-state>> default="""$default-popup-state$""">
+<div class="tc-plugin-info-dropdown">
+<div class="tc-plugin-info-dropdown-body">
+<$list filter="[all[current]] -[[$:/core]]">
+<div style="float:right;">
+<$reveal type="nomatch" state=<<plugin-disable-title>> text="yes">
+<$button set=<<plugin-disable-title>> setTo="yes" tooltip={{$:/language/ControlPanel/Plugins/Disable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Disable/Caption}}>
+<<lingo Disable/Caption>>
+</$button>
+</$reveal>
+<$reveal type="match" state=<<plugin-disable-title>> text="yes">
+<$button set=<<plugin-disable-title>> setTo="no" tooltip={{$:/language/ControlPanel/Plugins/Enable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Enable/Caption}}>
+<<lingo Enable/Caption>>
+</$button>
+</$reveal>
+</div>
+</$list>
+<$set name="tabsList" filter="[<currentTiddler>list[]] contents">
+<$macrocall $name="tabs" state=<<tabs-state-macro>> tabsList=<<tabsList>> default={{{ [enlist<tabsList>] }}} template="$:/core/ui/PluginInfo"/>
+</$set>
+</div>
+</div>
+</$reveal>
+</$set>
+\end
+
+<$macrocall $name="plugin-info" type=<<plugin-type>> default-popup-state=<<default-popup-state>>/>
+
+<$link>
+<$set name="backgroundColor" value={{!!color}}>
+<span style=<<tag-styles>> class="tc-tag-label">
+<$view field="title" format="text"/>
+</span>
+</$set>
+</$link>
+{{$:/language/ControlPanel/Advanced/Hint}}
+
+<div class="tc-control-panel">
+<<tabs "[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Advanced]!has[draft.of]]" "$:/core/ui/ControlPanel/TiddlerFields">>
+</div>
+
+{{$:/language/ControlPanel/Appearance/Hint}}
+
+<div class="tc-control-panel">
+<<tabs "[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Appearance]!has[draft.of]]" "$:/core/ui/ControlPanel/Theme">>
+</div>
+
+\define lingo-base() $:/language/ControlPanel/Basics/
+
+\define show-filter-count(filter)
+<$button class="tc-btn-invisible">
+<$action-setfield $tiddler="$:/temp/advancedsearch" $value="""$filter$"""/>
+<$action-setfield $tiddler="$:/state/tab--1498284803" $value="$:/core/ui/AdvancedSearch/Filter"/>
+<$action-navigate $to="$:/AdvancedSearch"/>
+''<$count filter="""$filter$"""/>''
+{{$:/core/images/advanced-search-button}}
+</$button>
+\end
+
+|<<lingo Version/Prompt>> |''<<version>>'' |
+|<$link to="$:/SiteTitle"><<lingo Title/Prompt>></$link> |<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> |
+|<$link to="$:/SiteSubtitle"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> |
+|<$link to="$:/status/UserName"><<lingo Username/Prompt>></$link> |<$edit-text tiddler="$:/status/UserName" default="" tag="input"/> |
+|<$link to="$:/config/AnimationDuration"><<lingo AnimDuration/Prompt>></$link> |<$edit-text tiddler="$:/config/AnimationDuration" default="" tag="input"/> |
+|<$link to="$:/DefaultTiddlers"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit tag="textarea" tiddler="$:/DefaultTiddlers" class="tc-edit-texteditor"/><br>//<<lingo DefaultTiddlers/BottomHint>>// |
+|<$link to="$:/language/DefaultNewTiddlerTitle"><<lingo NewTiddler/Title/Prompt>></$link> |<$edit-text tiddler="$:/language/DefaultNewTiddlerTitle" default="" tag="input"/> |
+|<$link to="$:/config/NewJournal/Title"><<lingo NewJournal/Title/Prompt>></$link> |<$edit-text tiddler="$:/config/NewJournal/Title" default="" tag="input"/> |
+|<$link to="$:/config/NewJournal/Text"><<lingo NewJournal/Text/Prompt>></$link> |<$edit tiddler="$:/config/NewJournal/Text" tag="textarea" class="tc-edit-texteditor" default=""/> |
+|<$link to="$:/config/NewTiddler/Tags"><<lingo NewTiddler/Tags/Prompt>></$link> |<$list filter="[[$:/config/NewTiddler/Tags]]" template="$:/core/ui/EditTemplate/tags"/> |
+|<$link to="$:/config/NewJournal/Tags"><<lingo NewJournal/Tags/Prompt>></$link> |<$list filter="[[$:/config/NewJournal/Tags]]" template="$:/core/ui/EditTemplate/tags"/> |
+|<$link to="$:/config/AutoFocus"><<lingo AutoFocus/Prompt>></$link> |{{$:/snippets/minifocusswitcher}} |
+|<<lingo Language/Prompt>> |{{$:/snippets/minilanguageswitcher}} |
+|<<lingo Tiddlers/Prompt>> |<<show-filter-count "[!is[system]sort[title]]">> |
+|<<lingo Tags/Prompt>> |<<show-filter-count "[tags[]sort[title]]">> |
+|<<lingo SystemTiddlers/Prompt>> |<<show-filter-count "[is[system]sort[title]]">> |
+|<<lingo ShadowTiddlers/Prompt>> |<<show-filter-count "[all[shadows]sort[title]]">> |
+|<<lingo OverriddenShadowTiddlers/Prompt>> |<<show-filter-count "[is[tiddler]is[shadow]sort[title]]">> |
+
+\define lingo-base() $:/language/ControlPanel/EditorTypes/
+
+<<lingo Hint>>
+
+<table>
+<tbody>
+<tr>
+<th><<lingo Type/Caption>></th>
+<th><<lingo Editor/Caption>></th>
+</tr>
+<$list filter="[all[shadows+tiddlers]prefix[$:/config/EditorTypeMappings/]sort[title]]">
+<tr>
+<td>
+<$link>
+<$list filter="[all[current]removeprefix[$:/config/EditorTypeMappings/]]">
+<$text text={{!!title}}/>
+</$list>
+</$link>
+</td>
+<td>
+<$view field="text"/>
+</td>
+</tr>
+</$list>
+</tbody>
+</table>
+
+{{$:/language/ControlPanel/Info/Hint}}
+
+<div class="tc-control-panel">
+<<tabs "[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Info]!has[draft.of]]" "$:/core/ui/ControlPanel/Basics">>
+</div>
+
+\define lingo-base() $:/language/ControlPanel/KeyboardShortcuts/
+
+\define new-shortcut(title)
+<div class="tc-dropdown-item-plain">
+<$edit-shortcut tiddler="$title$" placeholder={{$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt}} focus="true" style="width:auto;"/> <$button>
+<<lingo Add/Caption>>
+<$action-listops
+ $tiddler="$(shortcutTitle)$"
+ $field="text"
+ $subfilter="[{$title$}]"
+/>
+<$action-deletetiddler
+ $tiddler="$title$"
+/>
+</$button>
+</div>
+\end
+
+\define shortcut-list-item(caption)
+<td>
+</td>
+<td style="text-align:right;font-size:0.7em;">
+<<lingo Platform/$caption$>>
+</td>
+<td>
+<div style="position:relative;">
+<$button popup=<<qualify "$:/state/dropdown/$(shortcutTitle)$">> class="tc-btn-invisible">
+{{$:/core/images/edit-button}}
+</$button>
+<$macrocall $name="displayshortcuts" $output="text/html" shortcuts={{$(shortcutTitle)$}} prefix="<kbd>" separator="</kbd> <kbd>" suffix="</kbd>"/>
+
+<$reveal state=<<qualify "$:/state/dropdown/$(shortcutTitle)$">> type="popup" position="below" animate="yes">
+<div class="tc-block-dropdown-wrapper">
+<div class="tc-block-dropdown tc-edit-type-dropdown tc-popup-keep">
+<$list filter="[list[$(shortcutTitle)$!!text]sort[title]]" variable="shortcut" emptyMessage="""
+<div class="tc-dropdown-item-plain">
+//<<lingo NoShortcuts/Caption>>//
+</div>
+""">
+<div class="tc-dropdown-item-plain">
+<$button class="tc-btn-invisible" tooltip={{$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint}}>
+<$action-listops
+ $tiddler="$(shortcutTitle)$"
+ $field="text"
+ $subfilter="+[remove<shortcut>]"
+/>
+<small>{{$:/core/images/close-button}}</small>
+</$button>
+<kbd>
+<$macrocall $name="displayshortcuts" $output="text/html" shortcuts=<<shortcut>>/>
+</kbd>
+</div>
+</$list>
+<hr/>
+<$macrocall $name="new-shortcut" title=<<qualify "$:/state/new-shortcut/$(shortcutTitle)$">>/>
+</div>
+</div>
+</$reveal>
+</div>
+</td>
+\end
+
+\define shortcut-list(caption,prefix)
+<tr>
+<$list filter="[[$prefix$$(shortcutName)$]]" variable="shortcutTitle">
+<<shortcut-list-item "$caption$">>
+</$list>
+</tr>
+\end
+
+\define shortcut-editor()
+<<shortcut-list "All" "$:/config/shortcuts/">>
+<<shortcut-list "Mac" "$:/config/shortcuts-mac/">>
+<<shortcut-list "NonMac" "$:/config/shortcuts-not-mac/">>
+<<shortcut-list "Linux" "$:/config/shortcuts-linux/">>
+<<shortcut-list "NonLinux" "$:/config/shortcuts-not-linux/">>
+<<shortcut-list "Windows" "$:/config/shortcuts-windows/">>
+<<shortcut-list "NonWindows" "$:/config/shortcuts-not-windows/">>
+\end
+
+\define shortcut-preview()
+<$macrocall $name="displayshortcuts" $output="text/html" shortcuts={{$(shortcutPrefix)$$(shortcutName)$}} prefix="<kbd>" separator="</kbd> <kbd>" suffix="</kbd>"/>
+\end
+
+\define shortcut-item-inner()
+<tr>
+<td>
+<$reveal type="nomatch" state=<<dropdownStateTitle>> text="open">
+<$button class="tc-btn-invisible">
+<$action-setfield
+ $tiddler=<<dropdownStateTitle>>
+ $value="open"
+/>
+{{$:/core/images/right-arrow}}
+</$button>
+</$reveal>
+<$reveal type="match" state=<<dropdownStateTitle>> text="open">
+<$button class="tc-btn-invisible">
+<$action-setfield
+ $tiddler=<<dropdownStateTitle>>
+ $value="close"
+/>
+{{$:/core/images/down-arrow}}
+</$button>
+</$reveal>
+''<$text text=<<shortcutName>>/>''
+</td>
+<td>
+<$transclude tiddler="$:/config/ShortcutInfo/$(shortcutName)$"/>
+</td>
+<td>
+<$list filter="$:/config/shortcuts/ $:/config/shortcuts-mac/ $:/config/shortcuts-not-mac/ $:/config/shortcuts-linux/ $:/config/shortcuts-not-linux/ $:/config/shortcuts-windows/ $:/config/shortcuts-not-windows/" variable="shortcutPrefix">
+<<shortcut-preview>>
+</$list>
+</td>
+</tr>
+<$set name="dropdownState" value={{$(dropdownStateTitle)$}}>
+<$list filter="[<dropdownState>match[open]]" variable="listItem">
+<<shortcut-editor>>
+</$list>
+</$set>
+\end
+
+\define shortcut-item()
+<$set name="dropdownStateTitle" value=<<qualify "$:/state/dropdown/keyboardshortcut/$(shortcutName)$">>>
+<<shortcut-item-inner>>
+</$set>
+\end
+
+<table>
+<tbody>
+<$list filter="[all[shadows+tiddlers]removeprefix[$:/config/ShortcutInfo/]]" variable="shortcutName">
+<<shortcut-item>>
+</$list>
+</tbody>
+</table>
+
+\define lingo-base() $:/language/ControlPanel/
+<<lingo LoadedModules/Hint>>
+
+{{$:/snippets/modules}}
+
+\define install-plugin-actions()
+<$action-sendmessage $message="tm-load-plugin-from-library" url={{!!url}} title={{$(assetInfo)$!!original-title}}/>
+<$set name="url" value={{!!url}}>
+<$set name="currentTiddler" value=<<assetInfo>>>
+<$list filter="[enlist{!!dependents}] [{!!parent-plugin}] +[sort[title]]" variable="dependency">
+<$action-sendmessage $message="tm-load-plugin-from-library" url=<<url>> title=<<dependency>>/>
+</$list>
+</$set>
+</$set>
+\end
+
+\define install-plugin-button()
+<div>
+<$set name="libraryVersion" value={{{ [<assetInfo>get[version]] }}}>
+<$set name="installedVersion" value={{{ [<assetInfo>get[original-title]get[version]] }}}>
+<$set name="reinstall-type" value={{{ [<libraryVersion>compare:version:eq<installedVersion>then[tc-reinstall]] [<libraryVersion>compare:version:gt<installedVersion>then[tc-reinstall-upgrade]] [<libraryVersion>compare:version:lt<installedVersion>then[tc-reinstall-downgrade]] }}}>
+<$button actions=<<install-plugin-actions>> class={{{ [<assetInfo>get[original-title]has[version]then<reinstall-type>] tc-btn-invisible tc-install-plugin +[join[ ]] }}}>
+{{$:/core/images/download-button}}
+<$list filter="[<assetInfo>get[original-title]get[version]]" variable="ignore" emptyMessage="{{$:/language/ControlPanel/Plugins/Install/Caption}}">
+<$list filter="[<libraryVersion>compare:version:gt<installedVersion>]" variable="ignore" emptyMessage="""
+<$list filter="[<libraryVersion>compare:version:lt<installedVersion>]" variable="ignore" emptyMessage="{{$:/language/ControlPanel/Plugins/Reinstall/Caption}}">
+{{$:/language/ControlPanel/Plugins/Downgrade/Caption}}
+</$list>
+""">
+{{$:/language/ControlPanel/Plugins/Update/Caption}}
+</$list>
+</$list>
+</$button>
+<div>
+</div>
+<$reveal stateTitle=<<assetInfo>> stateField="requires-reload" type="match" text="yes">{{$:/language/ControlPanel/Plugins/PluginWillRequireReload}}</$reveal>
+</$set>
+</$set>
+</$set>
+</div>
+\end
+
+\define popup-state-macro()
+$:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$
+\end
+
+\define display-plugin-info(type)
+<$set name="popup-state" value=<<popup-state-macro>>>
+<div class="tc-plugin-info">
+<div class="tc-plugin-info-chunk tc-plugin-info-toggle">
+<$reveal type="nomatch" state=<<popup-state>> text="yes">
+<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="yes">
+{{$:/core/images/chevron-right}}
+</$button>
+</$reveal>
+<$reveal type="match" state=<<popup-state>> text="yes">
+<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="no">
+{{$:/core/images/chevron-down}}
+</$button>
+</$reveal>
+</div>
+<div class="tc-plugin-info-chunk tc-plugin-info-icon">
+<$list filter="[<assetInfo>has[icon]]" emptyMessage="""<$transclude tiddler="$:/core/images/plugin-generic-$type$"/>""">
+<img src={{$(assetInfo)$!!icon}}/>
+</$list>
+</div>
+<div class="tc-plugin-info-chunk tc-plugin-info-description">
+<h1><strong><$text text={{{ [<assetInfo>get[name]] ~[<assetInfo>get[original-title]split[/]last[1]] }}}/></strong>: <$view tiddler=<<assetInfo>> field="description"/></h1>
+<h2><$view tiddler=<<assetInfo>> field="original-title"/></h2>
+<div><em><$view tiddler=<<assetInfo>> field="version"/></em></div>
+<$list filter="[<assetInfo>get[original-title]get[version]]" variable="installedVersion"><div><em>{{$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint}}</em></div></$list>
+</div>
+<div class="tc-plugin-info-chunk tc-plugin-info-buttons">
+<<install-plugin-button>>
+</div>
+</div>
+<$set name="original-title" value={{{ [<assetInfo>get[original-title]] }}}>
+<$reveal type="match" text="yes" state=<<popup-state>>>
+<div class="tc-plugin-info-dropdown">
+<$list filter="[enlist{!!dependents}] [<currentTiddler>get[parent-plugin]] +[limit[1]] ~[<assetInfo>get[original-title]!is[tiddler]]" variable="ignore">
+<div class="tc-plugin-info-dropdown-message">
+<$list filter="[<assetInfo>get[original-title]!is[tiddler]]">
+{{$:/language/ControlPanel/Plugins/NotInstalled/Hint}}
+</$list>
+<$set name="currentTiddler" value=<<assetInfo>>>
+<$list filter="[enlist{!!dependents}] [<currentTiddler>get[parent-plugin]] +[limit[1]]" variable="ignore">
+<div>
+{{$:/language/ControlPanel/Plugins/AlsoRequires}}
+<$list filter="[enlist{!!dependents}] [{!!parent-plugin}] +[sort[title]]" variable="dependency">
+<$text text=<<dependency>>/>
+</$list>
+</div>
+</$list>
+</$set>
+</div>
+</$list>
+<div class="tc-plugin-info-dropdown-body">
+<$transclude tiddler=<<assetInfo>> field="readme" mode="block"/>
+</div>
+<$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>limit[1]]" variable="ignore">
+<div class="tc-plugin-info-sub-plugins">
+<$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>sort[title]]" variable="assetInfo">
+<<display-plugin-info "$type$">>
+</$list>
+</div>
+</$list>
+</div>
+</$reveal>
+<$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>limit[1]]" variable="ignore">
+<$reveal type="nomatch" text="yes" state=<<popup-state>> tag="div" class="tc-plugin-info-sub-plugin-indicator">
+<$wikify name="count" text="""<$count filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>]"/>""">
+<$button class="tc-btn-invisible" set=<<popup-state>> setTo="yes">
+{{$:/language/ControlPanel/Plugins/SubPluginPrompt}}
+</$button>
+</$wikify>
+</$reveal>
+</$list>
+</$set>
+</$set>
+\end
+
+\define load-plugin-library-button()
+<$button class="tc-btn-big-green">
+<$action-sendmessage $message="tm-load-plugin-library" url={{!!url}} infoTitlePrefix="$:/temp/RemoteAssetInfo/"/>
+{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Plugins/OpenPluginLibrary}}
+</$button>
+\end
+
+\define display-server-assets(type)
+{{$:/language/Search/Search}}: <$edit-text tiddler="""$:/temp/RemoteAssetSearch/$(currentTiddler)$""" default="" type="search" tag="input"/>
+<$reveal state="""$:/temp/RemoteAssetSearch/$(currentTiddler)$""" type="nomatch" text="">
+<$button class="tc-btn-invisible">
+<$action-setfield $tiddler="""$:/temp/RemoteAssetSearch/$(currentTiddler)$""" $field="text" $value=""/>
+{{$:/core/images/close-button}}
+</$button>
+</$reveal>
+<div class="tc-plugin-library-listing">
+<$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]search:author,description,original-title,readme,title{$:/temp/RemoteAssetSearch/$(currentTiddler)$}sort[title]]" variable="assetInfo">
+<$list filter="[[$:/temp/RemoteAssetSearch/$(currentTiddler)$]has[text]] ~[<assetInfo>!has[parent-plugin]]" variable="ignore"><!-- Hide sub-plugins if we're not searching -->
+<<display-plugin-info "$type$">>
+</$list>
+</$list>
+</div>
+\end
+
+\define display-server-connection()
+<$list filter="[all[tiddlers+shadows]tag[$:/tags/ServerConnection]suffix{!!url}]" variable="connectionTiddler" emptyMessage=<<load-plugin-library-button>>>
+
+<$set name="transclusion" value=<<connectionTiddler>>>
+
+<<tabs "[[$:/core/ui/ControlPanel/Plugins/Add/Updates]] [[$:/core/ui/ControlPanel/Plugins/Add/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Add/Themes]] [[$:/core/ui/ControlPanel/Plugins/Add/Languages]]" "$:/core/ui/ControlPanel/Plugins/Add/Plugins">>
+
+</$set>
+
+</$list>
+\end
+
+\define close-library-button()
+<$reveal type='nomatch' state='$:/temp/ServerConnection/$(PluginLibraryURL)$' text=''>
+<$button class='tc-btn-big-green'>
+<$action-sendmessage $message="tm-unload-plugin-library" url={{!!url}}/>
+{{$:/core/images/chevron-left}} {{$:/language/ControlPanel/Plugins/ClosePluginLibrary}}
+<$action-deletetiddler $filter="[prefix[$:/temp/ServerConnection/$(PluginLibraryURL)$]][prefix[$:/temp/RemoteAssetInfo/$(PluginLibraryURL)$]]"/>
+</$button>
+</$reveal>
+\end
+
+\define plugin-library-listing()
+<div class="tc-tab-set">
+<$set name="defaultTab" value={{{ [all[tiddlers+shadows]tag[$:/tags/PluginLibrary]] }}}>
+<div class="tc-tab-buttons">
+<$list filter="[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]">
+<$button set=<<qualify "$:/state/addplugins/tab">> setTo=<<currentTiddler>> default=<<defaultTab>> selectedClass="tc-tab-selected">
+<$set name="tv-wikilinks" value="no">
+<$transclude field="caption"/>
+</$set>
+</$button>
+</$list>
+</div>
+<div class="tc-tab-divider"/>
+<div class="tc-tab-content">
+<$list filter="[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]">
+<$reveal type="match" state=<<qualify "$:/state/addplugins/tab">> text=<<currentTiddler>> default=<<defaultTab>>>
+<h2><$link><$transclude field="caption"><$view field="title"/></$transclude></$link></h2>
+//<$view field="url"/>//
+<$transclude mode="block"/>
+<$set name=PluginLibraryURL value={{!!url}}>
+<<close-library-button>>
+</$set>
+<<display-server-connection>>
+</$reveal>
+</$list>
+</div>
+</$set>
+</div>
+\end
+
+\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
+
+<div>
+<<plugin-library-listing>>
+</div>
+
+\define lingo-base() $:/language/ControlPanel/Palette/
+
+{{$:/snippets/paletteswitcher}}
+
+<$reveal type="nomatch" state="$:/state/ShowPaletteEditor" text="yes">
+
+<$button set="$:/state/ShowPaletteEditor" setTo="yes"><<lingo ShowEditor/Caption>></$button>
+
+</$reveal>
+
+<$reveal type="match" state="$:/state/ShowPaletteEditor" text="yes">
+
+<$button set="$:/state/ShowPaletteEditor" setTo="no"><<lingo HideEditor/Caption>></$button>
+{{$:/PaletteManager}}
+
+</$reveal>
+
+
+\define lingo-base() $:/language/ControlPanel/Parsing/
+
+\define toggle(Type)
+<$checkbox
+tiddler="""$:/config/WikiParserRules/$Type$/$(rule)$"""
+field="text"
+checked="enable"
+unchecked="disable"
+default="enable">
+<<rule>>
+</$checkbox>
+\end
+
+\define rules(type,Type)
+<$list filter="[wikiparserrules[$type$]]" variable="rule">
+<dd><<toggle $Type$>></dd>
+</$list>
+\end
+
+<<lingo Hint>>
+
+<dl>
+<dt><<lingo Pragma/Caption>></dt>
+<<rules pragma Pragma>>
+<dt><<lingo Inline/Caption>></dt>
+<<rules inline Inline>>
+<dt><<lingo Block/Caption>></dt>
+<<rules block Block>>
+</dl>
+\define lingo-base() $:/language/ControlPanel/Plugins/
+
+\define plugin-table(type)
+<$set name="plugin-type" value="""$type$""">
+<$set name="qualified-state" value=<<qualify "$:/state/plugin-info">>>
+<$list filter="[!has[draft.of]plugin-type[$type$]sort[title]]" emptyMessage=<<lingo "Empty/Hint">> template="$:/core/ui/Components/plugin-info"/>
+</$set>
+</$set>
+\end
+
+{{$:/core/ui/ControlPanel/Plugins/AddPlugins}}
+
+<<lingo Installed/Hint>>
+
+<<tabs "[[$:/core/ui/ControlPanel/Plugins/Installed/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Installed/Themes]] [[$:/core/ui/ControlPanel/Plugins/Installed/Languages]]" "$:/core/ui/ControlPanel/Plugins/Installed/Plugins">>
+
+<<display-server-assets language>>
+
+<<display-server-assets plugin>>
+
+<<display-server-assets theme>>
+
+\define each-updateable-plugin(body)
+<$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}sort[title]]" variable="assetInfo">
+<$set name="libraryVersion" value={{{ [<assetInfo>get[version]] }}}>
+<$list filter="[<assetInfo>get[original-title]has[version]!version<libraryVersion>]" variable="ignore">
+<$set name="installedVersion" value={{{ [<assetInfo>get[original-title]get[version]] }}}>
+<$list filter="[<installedversion>!match<libraryVersion>]" variable="ignore">
+$body$
+</$list>
+</$set>
+</$list>
+</$set>
+</$list>
+\end
+
+\define update-all-actions()
+<$macrocall $name="each-updateable-plugin" body="""
+<<install-plugin-actions>>
+"""/>
+\end
+
+\define update-count()
+<$wikify name="count-filter" text=<<each-updateable-plugin "[[<$text text=<<assetInfo>>/>]]">>><$count filter=<<count-filter>>/></$wikify>
+\end
+
+<$button actions=<<update-all-actions>> class="tc-btn-invisible tc-install-plugin tc-reinstall-upgrade">
+{{$:/core/images/download-button}} {{||$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption}}
+</$button>
+
+<div class="tc-plugin-library-listing">
+<$macrocall $name="each-updateable-plugin" body="""
+<$macrocall $name="display-plugin-info" type={{{ [<assetInfo>get[original-plugin-type]] }}}/>
+"""/>
+</div>
+
+\define lingo-base() $:/language/ControlPanel/Plugins/
+
+<$button message="tm-modal" param="$:/core/ui/ControlPanel/Modals/AddPlugins" tooltip={{$:/language/ControlPanel/Plugins/Add/Hint}} class="tc-btn-big-green tc-primary-btn">
+{{$:/core/images/download-button}} <<lingo Add/Caption>>
+</$button>
+
+<<plugin-table language>>
+
+<<plugin-table plugin>>
+
+<<plugin-table theme>>
+
+{{$:/language/ControlPanel/Saving/Hint}}
+
+<div class="tc-control-panel">
+<<tabs "[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Saving]!has[draft.of]]" "$:/core/ui/ControlPanel/Saving/General">>
+</div>
+
+\define lingo-base() $:/language/ControlPanel/Saving/DownloadSaver/
+
+<<lingo Hint>>
+
+!! <$link to="$:/config/DownloadSaver/AutoSave"><<lingo AutoSave/Hint>></$link>
+
+<$checkbox tiddler="$:/config/DownloadSaver/AutoSave" field="text" checked="yes" unchecked="no" default="no"> <<lingo AutoSave/Description>> </$checkbox>
+
+\define lingo-base() $:/language/ControlPanel/Settings/
+
+{{$:/language/ControlPanel/Saving/General/Hint}}
+
+!! <$link to="$:/config/AutoSave"><<lingo AutoSave/Caption>></$link>
+
+<<lingo AutoSave/Hint>>
+
+<$radio tiddler="$:/config/AutoSave" value="yes"> <<lingo AutoSave/Enabled/Description>> </$radio>
+
+<$radio tiddler="$:/config/AutoSave" value="no"> <<lingo AutoSave/Disabled/Description>> </$radio>
+
+\define lingo-base() $:/language/ControlPanel/Saving/GitService/
+\define service-name() ~Gitea
+
+<<lingo Description>>
+
+|<<lingo UserName>> |<$edit-text tiddler="$:/Gitea/Username" default="" tag="input"/> |
+|<<lingo Gitea/Password>> |<$password name="Gitea"/> |
+|<<lingo Repo>> |<$edit-text tiddler="$:/Gitea/Repo" default="" tag="input"/> |
+|<<lingo Branch>> |<$edit-text tiddler="$:/Gitea/Branch" default="master" tag="input"/> |
+|<<lingo Path>> |<$edit-text tiddler="$:/Gitea/Path" default="" tag="input"/> |
+|<<lingo Filename>> |<$edit-text tiddler="$:/Gitea/Filename" default="" tag="input"/> |
+|<<lingo ServerURL>> |<$edit-text tiddler="$:/Gitea/ServerURL" default="https://gitea/api/v1" tag="input"/> |
+
+\define lingo-base() $:/language/ControlPanel/Saving/GitService/
+\define service-name() ~GitHub
+
+<<lingo Description>>
+
+|<<lingo UserName>> |<$edit-text tiddler="$:/GitHub/Username" default="" tag="input"/> |
+|<<lingo GitHub/Password>> |<$password name="github"/> |
+|<<lingo Repo>> |<$edit-text tiddler="$:/GitHub/Repo" default="" tag="input"/> |
+|<<lingo Branch>> |<$edit-text tiddler="$:/GitHub/Branch" default="master" tag="input"/> |
+|<<lingo Path>> |<$edit-text tiddler="$:/GitHub/Path" default="" tag="input"/> |
+|<<lingo Filename>> |<$edit-text tiddler="$:/GitHub/Filename" default="" tag="input"/> |
+|<<lingo ServerURL>> |<$edit-text tiddler="$:/GitHub/ServerURL" default="https://api.github.com" tag="input"/> |
+\define lingo-base() $:/language/ControlPanel/Saving/GitService/
+\define service-name() ~GitLab
+
+<<lingo Description>>
+
+|<<lingo UserName>> |<$edit-text tiddler="$:/GitLab/Username" default="" tag="input"/> |
+|<<lingo GitLab/Password>> |<$password name="gitlab"/> |
+|<<lingo Repo>> |<$edit-text tiddler="$:/GitLab/Repo" default="" tag="input"/> |
+|<<lingo Branch>> |<$edit-text tiddler="$:/GitLab/Branch" default="master" tag="input"/> |
+|<<lingo Path>> |<$edit-text tiddler="$:/GitLab/Path" default="" tag="input"/> |
+|<<lingo Filename>> |<$edit-text tiddler="$:/GitLab/Filename" default="" tag="input"/> |
+|<<lingo ServerURL>> |<$edit-text tiddler="$:/GitLab/ServerURL" default="https://gitlab.com/api/v4" tag="input"/> |
+\define lingo-base() $:/language/ControlPanel/Saving/TiddlySpot/
+
+\define backupURL()
+http://$(userName)$.tiddlyspot.com/backup/
+\end
+\define backupLink()
+<$reveal type="nomatch" state="$:/UploadName" text="">
+<$set name="userName" value={{$:/UploadName}}>
+<$reveal type="match" state="$:/UploadURL" text="">
+<<backupURL>>
+</$reveal>
+<$reveal type="nomatch" state="$:/UploadURL" text="">
+<$macrocall $name=resolvePath source={{$:/UploadBackupDir}} root={{$:/UploadURL}}>>
+</$reveal>
+</$set>
+</$reveal>
+\end
+
+<<lingo Description>>
+
+|<<lingo UserName>> |<$edit-text tiddler="$:/UploadName" default="" tag="input"/> |
+|<<lingo Password>> |<$password name="upload"/> |
+|<<lingo Backups>> |<<backupLink>> |
+
+''<<lingo Advanced/Heading>>''
+
+|<<lingo ServerURL>> |<$edit-text tiddler="$:/UploadURL" default="" tag="input"/> |
+|<<lingo Filename>> |<$edit-text tiddler="$:/UploadFilename" default="index.html" tag="input"/> |
+|<<lingo UploadDir>> |<$edit-text tiddler="$:/UploadDir" default="." tag="input"/> |
+|<<lingo BackupDir>> |<$edit-text tiddler="$:/UploadBackupDir" default="." tag="input"/> |
+
+<<lingo TiddlySpot/Hint>>
+\define lingo-base() $:/language/ControlPanel/Settings/
+
+<<lingo Hint>>
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Settings]]">
+
+<div style="border-top:1px solid #eee;">
+
+!! <$link><$transclude field="caption"/></$link>
+
+<$transclude/>
+
+</div>
+
+</$list>
+
+\define lingo-base() $:/language/ControlPanel/Settings/CamelCase/
+<<lingo Hint>>
+
+<$checkbox tiddler="$:/config/WikiParserRules/Inline/wikilink" field="text" checked="enable" unchecked="disable" default="enable"> <$link to="$:/config/WikiParserRules/Inline/wikilink"><<lingo Description>></$link> </$checkbox>
+
+\define lingo-base() $:/language/ControlPanel/Settings/DefaultMoreSidebarTab/
+
+<$link to="$:/config/DefaultMoreSidebarTab"><<lingo Hint>></$link>
+
+<$select tiddler="$:/config/DefaultMoreSidebarTab">
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]">
+<option value=<<currentTiddler>>><$transclude field="caption"><$text text=<<currentTiddler>>/></$transclude></option>
+</$list>
+</$select>
+
+\define lingo-base() $:/language/ControlPanel/Settings/DefaultSidebarTab/
+
+<$link to="$:/config/DefaultSidebarTab"><<lingo Hint>></$link>
+
+<$select tiddler="$:/config/DefaultSidebarTab">
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]">
+<option value=<<currentTiddler>>><$transclude field="caption"><$text text=<<currentTiddler>>/></$transclude></option>
+</$list>
+</$select>
+
+\define lingo-base() $:/language/ControlPanel/Settings/EditorToolbar/
+<<lingo Hint>>
+
+<$checkbox tiddler="$:/config/TextEditor/EnableToolbar" field="text" checked="yes" unchecked="no" default="yes"> <$link to="$:/config/TextEditor/EnableToolbar"><<lingo Description>></$link> </$checkbox>
+
+
+\define lingo-base() $:/language/ControlPanel/Settings/InfoPanelMode/
+<$link to="$:/config/TiddlerInfo/Mode"><<lingo Hint>></$link>
+
+<$radio tiddler="$:/config/TiddlerInfo/Mode" value="popup"> <<lingo Popup/Description>> </$radio>
+
+<$radio tiddler="$:/config/TiddlerInfo/Mode" value="sticky"> <<lingo Sticky/Description>> </$radio>
+
+\define lingo-base() $:/language/ControlPanel/Settings/LinkToBehaviour/
+
+<$link to="$:/config/Navigation/openLinkFromInsideRiver"><<lingo "InsideRiver/Hint">></$link>
+
+<$select tiddler="$:/config/Navigation/openLinkFromInsideRiver">
+ <option value="above"><<lingo "OpenAbove">></option>
+ <option value="below"><<lingo "OpenBelow">></option>
+ <option value="top"><<lingo "OpenAtTop">></option>
+ <option value="bottom"><<lingo "OpenAtBottom">></option>
+</$select>
+
+<$link to="$:/config/Navigation/openLinkFromOutsideRiver"><<lingo "OutsideRiver/Hint">></$link>
+
+<$select tiddler="$:/config/Navigation/openLinkFromOutsideRiver">
+ <option value="top"><<lingo "OpenAtTop">></option>
+ <option value="bottom"><<lingo "OpenAtBottom">></option>
+</$select>
+
+\define lingo-base() $:/language/ControlPanel/Settings/MissingLinks/
+<<lingo Hint>>
+
+<$checkbox tiddler="$:/config/MissingLinks" field="text" checked="yes" unchecked="no" default="yes"> <$link to="$:/config/MissingLinks"><<lingo Description>></$link> </$checkbox>
+
+
+\define lingo-base() $:/language/ControlPanel/Settings/NavigationAddressBar/
+
+<$link to="$:/config/Navigation/UpdateAddressBar"><<lingo Hint>></$link>
+
+<$radio tiddler="$:/config/Navigation/UpdateAddressBar" value="permaview"> <<lingo Permaview/Description>> </$radio>
+
+<$radio tiddler="$:/config/Navigation/UpdateAddressBar" value="permalink"> <<lingo Permalink/Description>> </$radio>
+
+<$radio tiddler="$:/config/Navigation/UpdateAddressBar" value="no"> <<lingo No/Description>> </$radio>
+
+\define lingo-base() $:/language/ControlPanel/Settings/NavigationHistory/
+<$link to="$:/config/Navigation/UpdateHistory"><<lingo Hint>></$link>
+
+<$radio tiddler="$:/config/Navigation/UpdateHistory" value="yes"> <<lingo Yes/Description>> </$radio>
+
+<$radio tiddler="$:/config/Navigation/UpdateHistory" value="no"> <<lingo No/Description>> </$radio>
+
+\define lingo-base() $:/language/ControlPanel/Settings/NavigationPermalinkviewMode/
+<<lingo Hint>>
+
+<$checkbox tiddler="$:/config/Navigation/Permalinkview/CopyToClipboard" field="text" checked="yes" unchecked="no" default="yes"> <$link to="$:/config/Navigation/Permalinkview/CopyToClipboard"><<lingo CopyToClipboard/Description>></$link> </$checkbox>
+
+<$checkbox tiddler="$:/config/Navigation/Permalinkview/UpdateAddressBar" field="text" checked="yes" unchecked="no" default="yes"> <$link to="$:/config/Navigation/Permalinkview/UpdateAddressBar"><<lingo UpdateAddressBar/Description>></$link> </$checkbox>
+
+\define lingo-base() $:/language/ControlPanel/Settings/PerformanceInstrumentation/
+<<lingo Hint>>
+
+<$checkbox tiddler="$:/config/Performance/Instrumentation" field="text" checked="yes" unchecked="no" default="no"> <$link to="$:/config/Performance/Instrumentation"><<lingo Description>></$link> </$checkbox>
+
+\define lingo-base() $:/language/ControlPanel/Settings/TitleLinks/
+<$link to="$:/config/Tiddlers/TitleLinks"><<lingo Hint>></$link>
+
+<$radio tiddler="$:/config/Tiddlers/TitleLinks" value="yes"> <<lingo Yes/Description>> </$radio>
+
+<$radio tiddler="$:/config/Tiddlers/TitleLinks" value="no"> <<lingo No/Description>> </$radio>
+
+\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtons/
+<<lingo Hint>>
+
+<$checkbox tiddler="$:/config/Toolbar/Icons" field="text" checked="yes" unchecked="no" default="yes"> <$link to="$:/config/Toolbar/Icons"><<lingo Icons/Description>></$link> </$checkbox>
+
+<$checkbox tiddler="$:/config/Toolbar/Text" field="text" checked="yes" unchecked="no" default="no"> <$link to="$:/config/Toolbar/Text"><<lingo Text/Description>></$link> </$checkbox>
+
+\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtonStyle/
+<$link to="$:/config/Toolbar/ButtonClass"><<lingo "Hint">></$link>
+
+<$select tiddler="$:/config/Toolbar/ButtonClass">
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/ToolbarButtonStyle]]">
+<option value={{!!text}}>{{!!caption}}</option>
+</$list>
+</$select>
+
+{{$:/snippets/viewswitcher}}
+
+\define lingo-base() $:/language/ControlPanel/
+
+<<lingo Stylesheets/Hint>>
+
+{{$:/snippets/peek-stylesheets}}
+
+{{$:/snippets/themeswitcher}}
+
+\define lingo-base() $:/language/ControlPanel/
+
+<<lingo TiddlerFields/Hint>>
+
+{{$:/snippets/allfields}}
+{{$:/language/ControlPanel/Toolbars/Hint}}
+
+<div class="tc-control-panel">
+<<tabs "[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Toolbars]!has[draft.of]]" "$:/core/ui/ControlPanel/Toolbars/ViewToolbar" "$:/state/tabs/controlpanel/toolbars" "tc-vertical">>
+</div>
+
+\define config-title()
+$(config-base)$$(currentTiddler)$
+\end
+
+<$draggable tiddler=<<currentTiddler>>>
+<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"/> <span class="tc-icon-wrapper"><$transclude tiddler={{!!icon}}/></span> <$transclude field="caption"/> -- <i class="tc-muted"><$transclude field="description"/></i>
+</$draggable>
+
+\define lingo-base() $:/language/TiddlerInfo/
+
+\define config-base() $:/config/EditorToolbarButtons/Visibility/
+
+{{$:/language/ControlPanel/Toolbars/EditorToolbar/Hint}}
+
+<$macrocall $name="list-tagged-draggable" tag="$:/tags/EditorToolbar" itemTemplate="$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate"/>
+
+\define lingo-base() $:/language/TiddlerInfo/
+
+\define config-base() $:/config/EditToolbarButtons/Visibility/
+
+{{$:/language/ControlPanel/Toolbars/EditToolbar/Hint}}
+
+<$set name="tv-config-toolbar-icons" value="yes">
+
+<$set name="tv-config-toolbar-text" value="yes">
+
+<$macrocall $name="list-tagged-draggable" tag="$:/tags/EditToolbar" itemTemplate="$:/core/ui/ControlPanel/Toolbars/ItemTemplate"/>
+
+</$set>
+
+</$set>
+\define config-title()
+$(config-base)$$(currentTiddler)$
+\end
+
+<$draggable tiddler=<<currentTiddler>>>
+<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"/> <span class="tc-icon-wrapper"> <$transclude field="caption"/> <i class="tc-muted">-- <$transclude field="description"/></i></span>
+</$draggable>
+
+\define lingo-base() $:/language/TiddlerInfo/
+
+\define config-base() $:/config/PageControlButtons/Visibility/
+
+{{$:/language/ControlPanel/Toolbars/PageControls/Hint}}
+
+<$set name="tv-config-toolbar-icons" value="yes">
+
+<$set name="tv-config-toolbar-text" value="yes">
+
+<$macrocall $name="list-tagged-draggable" tag="$:/tags/PageControls" itemTemplate="$:/core/ui/ControlPanel/Toolbars/ItemTemplate"/>
+
+</$set>
+
+</$set>
+
+\define lingo-base() $:/language/TiddlerInfo/
+
+\define config-base() $:/config/ViewToolbarButtons/Visibility/
+
+{{$:/language/ControlPanel/Toolbars/ViewToolbar/Hint}}
+
+<$set name="tv-config-toolbar-icons" value="yes">
+
+<$set name="tv-config-toolbar-text" value="yes">
+
+<$macrocall $name="list-tagged-draggable" tag="$:/tags/ViewToolbar" itemTemplate="$:/core/ui/ControlPanel/Toolbars/ItemTemplate"/>
+
+</$set>
+
+</$set>
+
+\define searchResultList()
+//<small>{{$:/language/Search/Matches/Title}}</small>//
+
+<$list filter="[!is[system]search:title{$(searchTiddler)$}sort[title]limit[250]]" template="$:/core/ui/ListItemTemplate"/>
+
+//<small>{{$:/language/Search/Matches/All}}</small>//
+
+<$list filter="[!is[system]search{$(searchTiddler)$}sort[title]limit[250]]" template="$:/core/ui/ListItemTemplate"/>
+
+\end
+<<searchResultList>>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="wrap-selection"
+ prefix="''"
+ suffix="''"
+/>
+
+''{{$:/language/Buttons/Clear/Hint}}''
+
+<div class="tc-colour-chooser">
+
+<$macrocall $name="colour-picker" actions="""
+
+<$action-sendmessage
+ $message="tm-edit-bitmap-operation"
+ $param="clear"
+ colour=<<colour-picker-value>>
+/>
+
+<$action-deletetiddler
+ $tiddler=<<dropdown-state>>
+/>
+
+"""/>
+
+</div>
+
+<$reveal tag="span" state="$:/config/TextEditor/EditorHeight/Mode" type="match" text="fixed">
+{{$:/core/images/fixed-height}}
+</$reveal>
+<$reveal tag="span" state="$:/config/TextEditor/EditorHeight/Mode" type="match" text="auto">
+{{$:/core/images/auto-height}}
+</$reveal>
+
+\define lingo-base() $:/language/Buttons/EditorHeight/
+''<<lingo Hint>>''
+
+<$radio tiddler="$:/config/TextEditor/EditorHeight/Mode" value="auto"> {{$:/core/images/auto-height}} <<lingo Caption/Auto>></$radio>
+
+<$radio tiddler="$:/config/TextEditor/EditorHeight/Mode" value="fixed"> {{$:/core/images/fixed-height}} <<lingo Caption/Fixed>> <$edit-text tag="input" tiddler="$:/config/TextEditor/EditorHeight/Height" default="100px"/></$radio>
+
+\define lingo-base() $:/language/Buttons/Excise/
+
+\define body(config-title)
+''<<lingo Hint>>''
+
+<<lingo Caption/NewTitle>> <$edit-text tag="input" tiddler="$config-title$/new-title" default="" focus="true"/>
+
+<$set name="new-title" value={{$config-title$/new-title}}>
+<$list filter="""[<new-title>is[tiddler]]""">
+<div class="tc-error">
+<<lingo Caption/TiddlerExists>>
+</div>
+</$list>
+</$set>
+
+<$checkbox tiddler="""$config-title$/tagnew""" field="text" checked="yes" unchecked="no" default="false"> <<lingo Caption/Tag>></$checkbox>
+
+<<lingo Caption/Replace>> <$select tiddler="""$config-title$/type""" default="transclude">
+<option value="link"><<lingo Caption/Replace/Link>></option>
+<option value="transclude"><<lingo Caption/Replace/Transclusion>></option>
+<option value="macro"><<lingo Caption/Replace/Macro>></option>
+</$select>
+
+<$reveal state="""$config-title$/type""" type="match" text="macro">
+<<lingo Caption/MacroName>> <$edit-text tag="input" tiddler="""$config-title$/macro-title""" default="translink"/>
+</$reveal>
+
+<$button>
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="excise"
+ title={{$config-title$/new-title}}
+ type={{$config-title$/type}}
+ macro={{$config-title$/macro-title}}
+ tagnew={{$config-title$/tagnew}}
+/>
+<$action-deletetiddler
+ $tiddler="$config-title$/new-title"
+/>
+<$action-deletetiddler
+ $tiddler=<<dropdown-state>>
+/>
+<<lingo Caption/Excise>>
+</$button>
+\end
+
+<$macrocall $name="body" config-title=<<qualify "$:/state/Excise/">>/>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="prefix-lines"
+ character="!"
+ count="1"
+/>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="prefix-lines"
+ character="!"
+ count="2"
+/>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="prefix-lines"
+ character="!"
+ count="3"
+/>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="prefix-lines"
+ character="!"
+ count="4"
+/>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="prefix-lines"
+ character="!"
+ count="5"
+/>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="prefix-lines"
+ character="!"
+ count="6"
+/>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="wrap-selection"
+ prefix="//"
+ suffix="//"
+/>
+
+<$text text={{$:/config/BitmapEditor/LineWidth}}/>
+\define lingo-base() $:/language/Buttons/LineWidth/
+
+\define toolbar-line-width-inner()
+<$button tag="a" tooltip="""$(line-width)$""">
+
+<$action-setfield
+ $tiddler="$:/config/BitmapEditor/LineWidth"
+ $value="$(line-width)$"
+/>
+
+<$action-deletetiddler
+ $tiddler=<<dropdown-state>>
+/>
+
+<div style="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;"/>
+
+<span style="margin-left: 8px;">
+
+<$text text="""$(line-width)$"""/>
+
+<$reveal state="$:/config/BitmapEditor/LineWidth" type="match" text="""$(line-width)$""" tag="span">
+
+<$entity entity=" "/>
+
+<$entity entity="✓"/>
+
+</$reveal>
+
+</span>
+
+</$button>
+\end
+
+''<<lingo Hint>>''
+
+<$list filter={{$:/config/BitmapEditor/LineWidths}} variable="line-width">
+
+<<toolbar-line-width-inner>>
+
+</$list>
+
+\define lingo-base() $:/language/Buttons/Link/
+
+\define add-link-actions()
+<$action-sendmessage $message="tm-edit-text-operation" $param="make-link" text={{$(linkTiddler)$}} />
+<$action-deletetiddler $tiddler=<<dropdown-state>> />
+<$action-deletetiddler $tiddler=<<searchTiddler>> />
+<$action-deletetiddler $tiddler=<<linkTiddler>> />
+\end
+
+\define external-link()
+<$button class="tc-btn-invisible" style="width: auto; display: inline-block; background-colour: inherit;" actions=<<add-link-actions>>>
+{{$:/core/images/chevron-right}}
+</$button>
+\end
+
+\define body(config-title)
+''<<lingo Hint>>''
+
+<$vars searchTiddler="""$config-title$/search""" linkTiddler="""$config-title$/link""" linktext="" >
+
+<$vars linkTiddler=<<searchTiddler>>>
+<$keyboard key="ENTER" actions=<<add-link-actions>>>
+<$edit-text tiddler=<<searchTiddler>> type="search" tag="input" focus="true" placeholder={{$:/language/Search/Search}} default=""/>
+<$reveal tag="span" state=<<searchTiddler>> type="nomatch" text="">
+<<external-link>>
+<$button class="tc-btn-invisible" style="width: auto; display: inline-block; background-colour: inherit;">
+<$action-setfield $tiddler=<<searchTiddler>> text="" />
+{{$:/core/images/close-button}}
+</$button>
+</$reveal>
+</$keyboard>
+</$vars>
+
+<$reveal tag="div" state=<<searchTiddler>> type="nomatch" text="">
+
+<$linkcatcher actions=<<add-link-actions>> to=<<linkTiddler>>>
+
+{{$:/core/ui/SearchResults}}
+
+</$linkcatcher>
+
+</$reveal>
+
+</$vars>
+
+\end
+
+<$macrocall $name="body" config-title=<<qualify "$:/state/Link/">>/>
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="wrap-selection"
+ prefix="[["
+ suffix="]]"
+/>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="prefix-lines"
+ character="*"
+ count="1"
+/>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="prefix-lines"
+ character="#"
+ count="1"
+/>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="wrap-lines"
+ prefix="
+```"
+ suffix="```"
+/>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="wrap-selection"
+ prefix="`"
+ suffix="`"
+/>
+
+\define config-title()
+$:/config/EditorToolbarButtons/Visibility/$(toolbarItem)$
+\end
+
+\define conditional-button()
+<$list filter={{$(toolbarItem)$!!condition}} variable="condition">
+<$transclude tiddler="$:/core/ui/EditTemplate/body/toolbar/button" mode="inline"/> <$transclude tiddler=<<toolbarItem>> field="description"/>
+</$list>
+\end
+
+<div class="tc-text-editor-toolbar-more">
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]] -[[$:/core/ui/EditorToolbar/more]]">
+<$reveal type="match" state=<<config-visibility-title>> text="hide" tag="div">
+<<conditional-button>>
+</$reveal>
+</$list>
+</div>
+
+<$text text={{$:/config/BitmapEditor/Opacity}}/>
+
+\define lingo-base() $:/language/Buttons/Opacity/
+
+\define toolbar-opacity-inner()
+<$button tag="a" tooltip="""$(opacity)$""">
+
+<$action-setfield
+ $tiddler="$:/config/BitmapEditor/Opacity"
+ $value="$(opacity)$"
+/>
+
+<$action-deletetiddler
+ $tiddler=<<dropdown-state>>
+/>
+
+<div style="display: inline-block; vertical-align: middle; background-color: $(current-paint-colour)$; opacity: $(opacity)$; width: 1em; height: 1em; border-radius: 50%;"/>
+
+<span style="margin-left: 8px;">
+
+<$text text="""$(opacity)$"""/>
+
+<$reveal state="$:/config/BitmapEditor/Opacity" type="match" text="""$(opacity)$""" tag="span">
+
+<$entity entity=" "/>
+
+<$entity entity="✓"/>
+
+</$reveal>
+
+</span>
+
+</$button>
+\end
+
+\define toolbar-opacity()
+''<<lingo Hint>>''
+
+<$list filter={{$:/config/BitmapEditor/Opacities}} variable="opacity">
+
+<<toolbar-opacity-inner>>
+
+</$list>
+\end
+
+<$set name="current-paint-colour" value={{$:/config/BitmapEditor/Colour}}>
+
+<$set name="current-opacity" value={{$:/config/BitmapEditor/Opacity}}>
+
+<<toolbar-opacity>>
+
+</$set>
+
+</$set>
+
+\define toolbar-paint()
+<div style="display: inline-block; vertical-align: middle; background-color: $(colour-picker-value)$; width: 1em; height: 1em; border-radius: 50%;"/>
+\end
+<$set name="colour-picker-value" value={{$:/config/BitmapEditor/Colour}}>
+<<toolbar-paint>>
+</$set>
+
+''{{$:/language/Buttons/Paint/Hint}}''
+
+<$macrocall $name="colour-picker" actions="""
+
+<$action-setfield
+ $tiddler="$:/config/BitmapEditor/Colour"
+ $value=<<colour-picker-value>>
+/>
+
+<$action-deletetiddler
+ $tiddler=<<dropdown-state>>
+/>
+
+"""/>
+
+\define replacement-text()
+[img[$(imageTitle)$]]
+\end
+
+''{{$:/language/Buttons/Picture/Hint}}''
+
+<$macrocall $name="image-picker" actions="""
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="replace-selection"
+ text=<<replacement-text>>
+/>
+
+<$action-deletetiddler
+ $tiddler=<<dropdown-state>>
+/>
+
+"""/>
+
+<$reveal state="$:/state/showeditpreview" type="match" text="yes" tag="span">
+{{$:/core/images/preview-open}}
+<$action-setfield $tiddler="$:/state/showeditpreview" $value="no"/>
+</$reveal>
+<$reveal state="$:/state/showeditpreview" type="nomatch" text="yes" tag="span">
+{{$:/core/images/preview-closed}}
+<$action-setfield $tiddler="$:/state/showeditpreview" $value="yes"/>
+</$reveal>
+
+\define preview-type-button()
+<$button tag="a">
+
+<$action-setfield $tiddler="$:/state/editpreviewtype" $value="$(previewType)$"/>
+
+<$action-deletetiddler
+ $tiddler=<<dropdown-state>>
+/>
+
+<$transclude tiddler=<<previewType>> field="caption" mode="inline">
+
+<$view tiddler=<<previewType>> field="title" mode="inline"/>
+
+</$transclude>
+
+<$reveal tag="span" state="$:/state/editpreviewtype" type="match" text=<<previewType>> default="$:/core/ui/EditTemplate/body/preview/output">
+
+<$entity entity=" "/>
+
+<$entity entity="✓"/>
+
+</$reveal>
+
+</$button>
+\end
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/EditPreview]!has[draft.of]]" variable="previewType">
+
+<<preview-type-button>>
+
+</$list>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="wrap-lines"
+ prefix="
+<<<"
+ suffix="<<<"
+/>
+
+<$action-sendmessage
+ $message="tm-edit-bitmap-operation"
+ $param="rotate-left"
+/>
+
+\define lingo-base() $:/language/Buttons/Size/
+
+\define toolbar-button-size-preset(config-title)
+<$set name="width" filter="$(sizePair)$ +[first[]]">
+
+<$set name="height" filter="$(sizePair)$ +[last[]]">
+
+<$button tag="a">
+
+<$action-setfield
+ $tiddler="""$config-title$/new-width"""
+ $value=<<width>>
+/>
+
+<$action-setfield
+ $tiddler="""$config-title$/new-height"""
+ $value=<<height>>
+/>
+
+<$action-deletetiddler
+ $tiddler="""$config-title$/presets-popup"""
+/>
+
+<$text text=<<width>>/> × <$text text=<<height>>/>
+
+</$button>
+
+</$set>
+
+</$set>
+\end
+
+\define toolbar-button-size(config-title)
+''{{$:/language/Buttons/Size/Hint}}''
+
+<<lingo Caption/Width>> <$edit-text tag="input" tiddler="""$config-title$/new-width""" default=<<tv-bitmap-editor-width>> focus="true" size="8"/> <<lingo Caption/Height>> <$edit-text tag="input" tiddler="""$config-title$/new-height""" default=<<tv-bitmap-editor-height>> size="8"/> <$button popup="""$config-title$/presets-popup""" class="tc-btn-invisible tc-popup-keep" style="width: auto; display: inline-block; background-colour: inherit;" selectedClass="tc-selected">
+{{$:/core/images/down-arrow}}
+</$button>
+
+<$reveal tag="span" state="""$config-title$/presets-popup""" type="popup" position="belowleft" animate="yes">
+
+<div class="tc-drop-down tc-popup-keep">
+
+<$list filter={{$:/config/BitmapEditor/ImageSizes}} variable="sizePair">
+
+<$macrocall $name="toolbar-button-size-preset" config-title="$config-title$"/>
+
+</$list>
+
+</div>
+
+</$reveal>
+
+<$button>
+<$action-sendmessage
+ $message="tm-edit-bitmap-operation"
+ $param="resize"
+ width={{$config-title$/new-width}}
+ height={{$config-title$/new-height}}
+/>
+<$action-deletetiddler
+ $tiddler="""$config-title$/new-width"""
+/>
+<$action-deletetiddler
+ $tiddler="""$config-title$/new-height"""
+/>
+<$action-deletetiddler
+ $tiddler=<<dropdown-state>>
+/>
+<<lingo Caption/Resize>>
+</$button>
+\end
+
+<$macrocall $name="toolbar-button-size" config-title=<<qualify "$:/state/Size/">>/>
+
+\define toolbar-button-stamp-inner()
+<$button tag="a">
+
+<$list filter="[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]]">
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="replace-selection"
+ text={{$(snippetTitle)$}}
+/>
+
+</$list>
+
+
+<$list filter="[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]]">
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="wrap-selection"
+ prefix={{{ [[$(snippetTitle)$]addsuffix[/prefix]get[text]] }}}
+suffix={{{ [[$(snippetTitle)$]addsuffix[/suffix]get[text]] }}}
+/>
+
+</$list>
+
+<$action-deletetiddler
+ $tiddler=<<dropdown-state>>
+/>
+
+<$transclude tiddler=<<snippetTitle>> field="caption" mode="inline">
+
+<$view tiddler=<<snippetTitle>> field="title" />
+
+</$transclude>
+
+</$button>
+\end
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/TextEditor/Snippet]!has[draft.of]sort[caption]]" variable="snippetTitle">
+
+<<toolbar-button-stamp-inner>>
+
+</$list>
+
+----
+
+<$button tag="a">
+
+<$action-sendmessage
+ $message="tm-new-tiddler"
+ tags="$:/tags/TextEditor/Snippet"
+ caption={{$:/language/Buttons/Stamp/New/Title}}
+ text={{$:/language/Buttons/Stamp/New/Text}}
+/>
+
+<$action-deletetiddler
+ $tiddler=<<dropdown-state>>
+/>
+
+<em>
+
+<$text text={{$:/language/Buttons/Stamp/Caption/New}}/>
+
+</em>
+
+</$button>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="wrap-selection"
+ prefix="~~"
+ suffix="~~"
+/>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="wrap-selection"
+ prefix=",,"
+ suffix=",,"
+/>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="wrap-selection"
+ prefix="^^"
+ suffix="^^"
+/>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="wrap-selection"
+ prefix="{{"
+ suffix="}}"
+/>
+
+<$action-sendmessage
+ $message="tm-edit-text-operation"
+ $param="wrap-selection"
+ prefix="__"
+ suffix="__"
+/>
+
+\define save-tiddler-actions()
+<$action-sendmessage $message="tm-add-tag" $param={{{ [<newTagNameTiddler>get[text]] }}}/>
+<$action-deletetiddler $tiddler=<<newTagNameTiddler>>/>
+<$action-sendmessage $message="tm-add-field" $name={{{ [<newFieldNameTiddler>get[text]] }}} $value={{{ [<newFieldValueTiddler>get[text]] }}}/>
+<$action-deletetiddler $tiddler=<<newFieldNameTiddler>>/>
+<$action-deletetiddler $tiddler=<<newFieldValueTiddler>>/>
+<$action-sendmessage $message="tm-save-tiddler"/>
+\end
+<div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-edit-frame [<currentTiddler>is[tiddler]then[tc-tiddler-exists]] [<currentTiddler>is[missing]!is[shadow]then[tc-tiddler-missing]] [<currentTiddler>is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [<currentTiddler>is[system]then[tc-tiddler-system]] [{!!class}] [<currentTiddler>tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}>
+<$fieldmangler>
+<$vars storyTiddler=<<currentTiddler>> newTagNameTiddler=<<qualify "$:/temp/NewTagName">> newFieldNameTiddler=<<qualify "$:/temp/NewFieldName">> newFieldValueTiddler=<<qualify "$:/temp/NewFieldValue">>>
+<$keyboard key="((cancel-edit-tiddler))" message="tm-cancel-tiddler">
+<$keyboard key="((save-tiddler))" actions=<<save-tiddler-actions>>>
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/EditTemplate]!has[draft.of]]" variable="listItem">
+<$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]">
+<$transclude tiddler=<<listItem>>/>
+</$set>
+</$list>
+</$keyboard>
+</$keyboard>
+</$vars>
+</$fieldmangler>
+</div>
+
+\define lingo-base() $:/language/EditTemplate/Body/
+\define config-visibility-title()
+$:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$
+\end
+<$list filter="[all[current]has[_canonical_uri]]">
+
+<div class="tc-message-box">
+
+<<lingo External/Hint>>
+
+<a href={{!!_canonical_uri}}><$text text={{!!_canonical_uri}}/></a>
+
+<$edit-text field="_canonical_uri" class="tc-edit-fields" tabindex={{$:/config/EditTabIndex}}></$edit-text>
+
+</div>
+
+</$list>
+
+<$list filter="[all[current]!has[_canonical_uri]]">
+
+<$reveal state="$:/state/showeditpreview" type="match" text="yes">
+
+<div class="tc-tiddler-preview">
+
+<$transclude tiddler="$:/core/ui/EditTemplate/body/editor" mode="inline"/>
+
+<div class="tc-tiddler-preview-preview">
+
+<$transclude tiddler={{$:/state/editpreviewtype}} mode="inline">
+
+<$transclude tiddler="$:/core/ui/EditTemplate/body/preview/output" mode="inline"/>
+
+</$transclude>
+
+</div>
+
+</div>
+
+</$reveal>
+
+<$reveal state="$:/state/showeditpreview" type="nomatch" text="yes">
+
+<$transclude tiddler="$:/core/ui/EditTemplate/body/editor" mode="inline"/>
+
+</$reveal>
+
+</$list>
+
+<$edit
+
+ field="text"
+ class="tc-edit-texteditor tc-edit-texteditor-body"
+ placeholder={{$:/language/EditTemplate/Body/Placeholder}}
+ tabindex={{$:/config/EditTabIndex}}
+ focus={{{ [{$:/config/AutoFocus}match[text]then[true]] ~[[false]] }}}
+
+><$set
+
+ name="targetTiddler"
+ value=<<currentTiddler>>
+
+><$list
+
+ filter="[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]]"
+
+><$reveal
+
+ type="nomatch"
+ state=<<config-visibility-title>>
+ text="hide"
+ class="tc-text-editor-toolbar-item-wrapper"
+
+><$transclude
+
+ tiddler="$:/core/ui/EditTemplate/body/toolbar/button"
+ mode="inline"
+
+/></$reveal></$list></$set></$edit>
+
+<$list filter="[<currentTiddler>!is[image]]" emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}>
+
+<$macrocall $name="compareTiddlerText" sourceTiddlerTitle={{!!draft.of}} destTiddlerTitle=<<currentTiddler>>/>
+
+</$list>
+
+
+<$list filter="[<currentTiddler>!is[image]]" emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}>
+
+<$macrocall $name="compareTiddlerText" sourceTiddlerTitle={{{ [{!!draft.of}shadowsource[]] }}} sourceSubTiddlerTitle={{!!draft.of}} destTiddlerTitle=<<currentTiddler>>/>
+
+</$list>
+
+
+\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]]
+<$set name="tv-tiddler-preview" value="yes">
+
+<$transclude />
+
+</$set>
+
+\define toolbar-button-icon()
+<$list
+
+ filter="[all[current]!has[custom-icon]]"
+ variable="no-custom-icon"
+
+><$transclude
+
+ tiddler={{!!icon}}
+
+/></$list>
+\end
+
+\define toolbar-button-tooltip()
+{{!!description}}<$macrocall $name="displayshortcuts" $output="text/plain" shortcuts={{!!shortcuts}} prefix="` - [" separator="] [" suffix="]`"/>
+\end
+
+\define toolbar-button()
+<$list
+
+ filter={{!!condition}}
+ variable="list-condition"
+
+><$wikify
+
+ name="tooltip-text"
+ text=<<toolbar-button-tooltip>>
+ mode="inline"
+ output="text"
+
+><$list
+
+ filter="[all[current]!has[dropdown]]"
+ variable="no-dropdown"
+
+><$button
+
+ class="tc-btn-invisible $(buttonClasses)$"
+ tooltip=<<tooltip-text>>
+ actions={{!!actions}}
+
+><span
+
+ data-tw-keyboard-shortcut={{!!shortcuts}}
+
+/><<toolbar-button-icon>><$transclude
+
+ tiddler=<<currentTiddler>>
+ field="text"
+
+/></$button></$list><$list
+
+ filter="[all[current]has[dropdown]]"
+ variable="dropdown"
+
+><$set
+
+ name="dropdown-state"
+ value=<<qualify "$:/state/EditorToolbarDropdown">>
+
+><$button
+
+ popup=<<dropdown-state>>
+ class="tc-popup-keep tc-btn-invisible $(buttonClasses)$"
+ selectedClass="tc-selected"
+ tooltip=<<tooltip-text>>
+ actions={{!!actions}}
+
+><span
+
+ data-tw-keyboard-shortcut={{!!shortcuts}}
+
+/><<toolbar-button-icon>><$transclude
+
+ tiddler=<<currentTiddler>>
+ field="text"
+
+/></$button><$reveal
+
+ state=<<dropdown-state>>
+ type="popup"
+ position="below"
+ animate="yes"
+ tag="span"
+
+><div
+
+ class="tc-drop-down tc-popup-keep"
+
+><$transclude
+
+ tiddler={{!!dropdown}}
+ mode="block"
+
+/></div></$reveal></$set></$list></$wikify></$list>
+\end
+
+\define toolbar-button-outer()
+<$set
+
+ name="buttonClasses"
+ value={{!!button-classes}}
+
+><<toolbar-button>></$set>
+\end
+
+<<toolbar-button-outer>>
+\define config-title()
+$:/config/EditToolbarButtons/Visibility/$(listItem)$
+\end
+<div class="tc-tiddler-title tc-tiddler-edit-title">
+<$view field="title"/>
+<span class="tc-tiddler-controls tc-titlebar"><$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<<config-title>> text="hide"><$transclude tiddler=<<listItem>>/></$reveal></$list></span>
+<div style="clear: both;"></div>
+</div>
+
+\define lingo-base() $:/language/EditTemplate/
+\define config-title()
+$:/config/EditTemplateFields/Visibility/$(currentField)$
+\end
+
+\define config-filter()
+[[hide]] -[title{$(config-title)$}]
+\end
+
+\define current-tiddler-new-field-selector()
+[data-tiddler-title="$(currentTiddlerCSSescaped)$"] .tc-edit-field-add-name input
+\end
+
+\define new-field-actions()
+<$action-sendmessage $message="tm-add-field" $name={{{ [<newFieldNameTiddler>get[text]] }}} $value={{{ [<newFieldValueTiddler>get[text]] }}}/>
+<$action-deletetiddler $tiddler=<<newFieldNameTiddler>>/>
+<$action-deletetiddler $tiddler=<<newFieldValueTiddler>>/>
+<$action-sendmessage $message="tm-focus-selector" $param=<<current-tiddler-new-field-selector>>/>
+\end
+
+\define new-field()
+<$vars name={{{ [<newFieldNameTiddler>get[text]] }}}>
+<$reveal type="nomatch" text="" default=<<name>>>
+<$button tooltip=<<lingo Fields/Add/Button/Hint>>>
+<$action-sendmessage $message="tm-add-field"
+$name=<<name>>
+$value={{{ [<newFieldValueTiddler>get[text]] }}}/>
+<$action-deletetiddler $tiddler=<<newFieldNameTiddler>>/>
+<$action-deletetiddler $tiddler=<<newFieldValueTiddler>>/>
+<<lingo Fields/Add/Button>>
+</$button>
+</$reveal>
+<$reveal type="match" text="" default=<<name>>>
+<$button>
+<<lingo Fields/Add/Button>>
+</$button>
+</$reveal>
+</$vars>
+\end
+\whitespace trim
+
+<div class="tc-edit-fields">
+<table class="tc-edit-fields">
+<tbody>
+<$list filter="[all[current]fields[]] +[sort[title]]" variable="currentField" storyview="pop">
+<$list filter=<<config-filter>> variable="temp">
+<tr class="tc-edit-field">
+<td class="tc-edit-field-name">
+<$text text=<<currentField>>/>:</td>
+<td class="tc-edit-field-value">
+<$edit-text tiddler=<<currentTiddler>> field=<<currentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} tabindex={{$:/config/EditTabIndex}}/>
+</td>
+<td class="tc-edit-field-remove">
+<$button class="tc-btn-invisible" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>
+<$action-deletefield $field=<<currentField>>/>
+{{$:/core/images/delete-button}}
+</$button>
+</td>
+</tr>
+</$list>
+</$list>
+</tbody>
+</table>
+</div>
+
+<$fieldmangler>
+<div class="tc-edit-field-add">
+<em class="tc-edit">
+<<lingo Fields/Add/Prompt>>
+</em>
+<span class="tc-edit-field-add-name">
+<$edit-text tiddler=<<newFieldNameTiddler>> tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} focusPopup=<<qualify "$:/state/popup/field-dropdown">> class="tc-edit-texteditor tc-popup-handle" tabindex={{$:/config/EditTabIndex}} focus={{{ [{$:/config/AutoFocus}match[fields]then[true]] ~[[false]] }}}/>
+</span>
+<$button popup=<<qualify "$:/state/popup/field-dropdown">> class="tc-btn-invisible tc-btn-dropdown" tooltip={{$:/language/EditTemplate/Field/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Field/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button>
+<$reveal state=<<qualify "$:/state/popup/field-dropdown">> type="nomatch" text="" default="">
+<div class="tc-block-dropdown tc-edit-type-dropdown">
+<$set name="tv-show-missing-links" value="yes">
+<$linkcatcher to=<<newFieldNameTiddler>>>
+<div class="tc-dropdown-item">
+<<lingo Fields/Add/Dropdown/User>>
+</div>
+<$set name="newFieldName" value={{{ [<newFieldNameTiddler>get[text]] }}}>
+<$list filter="[!is[shadow]!is[system]fields[]search:title<newFieldName>sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type" variable="currentField">
+<$link to=<<currentField>>>
+<$text text=<<currentField>>/>
+</$link>
+</$list>
+<div class="tc-dropdown-item">
+<<lingo Fields/Add/Dropdown/System>>
+</div>
+<$list filter="[fields[]search:title<newFieldName>sort[]] -[!is[shadow]!is[system]fields[]]" variable="currentField">
+<$link to=<<currentField>>>
+<$text text=<<currentField>>/>
+</$link>
+</$list>
+</$set>
+</$linkcatcher>
+</$set>
+</div>
+</$reveal>
+<span class="tc-edit-field-add-value">
+<$set name="currentTiddlerCSSescaped" value={{{ [<currentTiddler>escapecss[]] }}}>
+<$keyboard key="((add-field))" actions=<<new-field-actions>>>
+<$edit-text tiddler=<<newFieldValueTiddler>> tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class="tc-edit-texteditor" tabindex={{$:/config/EditTabIndex}}/>
+</$keyboard>
+</$set>
+</span>
+<span class="tc-edit-field-add-button">
+<$macrocall $name="new-field"/>
+</span>
+</div>
+</$fieldmangler>
+
+\define lingo-base() $:/language/EditTemplate/Shadow/
+\define pluginLinkBody()
+<$link to="""$(pluginTitle)$""">
+<$text text="""$(pluginTitle)$"""/>
+</$link>
+\end
+<$list filter="[all[current]get[draft.of]is[shadow]!is[tiddler]]">
+
+<$list filter="[all[current]shadowsource[]]" variable="pluginTitle">
+
+<$set name="pluginLink" value=<<pluginLinkBody>>>
+<div class="tc-message-box">
+
+<<lingo Warning>>
+
+</div>
+</$set>
+</$list>
+
+</$list>
+
+<$list filter="[all[current]get[draft.of]is[shadow]is[tiddler]]">
+
+<$list filter="[all[current]shadowsource[]]" variable="pluginTitle">
+
+<$set name="pluginLink" value=<<pluginLinkBody>>>
+<div class="tc-message-box">
+
+<<lingo OverriddenWarning>>
+
+</div>
+</$set>
+</$list>
+
+</$list>
+\whitespace trim
+
+\define lingo-base() $:/language/EditTemplate/
+
+\define tag-styles()
+background-color:$(backgroundColor)$;
+fill:$(foregroundColor)$;
+color:$(foregroundColor)$;
+\end
+
+\define tag-body-inner(colour,fallbackTarget,colourA,colourB,icon)
+\whitespace trim
+<$vars foregroundColor=<<contrastcolour target:"""$colour$""" fallbackTarget:"""$fallbackTarget$""" colourA:"""$colourA$""" colourB:"""$colourB$""">> backgroundColor="""$colour$""">
+<span style=<<tag-styles>> class="tc-tag-label tc-tag-list-item">
+<$transclude tiddler="""$icon$"""/><$view field="title" format="text" />
+<$button message="tm-remove-tag" param={{!!title}} class="tc-btn-invisible tc-remove-tag-button">{{$:/core/images/close-button}}</$button>
+</span>
+</$vars>
+\end
+
+\define tag-body(colour,palette,icon)
+<$macrocall $name="tag-body-inner" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} icon="""$icon$"""/>
+\end
+
+<div class="tc-edit-tags">
+<$fieldmangler>
+<$list filter="[all[current]tags[]sort[title]]" storyview="pop">
+<$macrocall $name="tag-body" colour={{!!color}} palette={{$:/palette}} icon={{!!icon}}/>
+</$list>
+<$set name="tabIndex" value={{$:/config/EditTabIndex}}>
+<$macrocall $name="tag-picker"/>
+</$set>
+</$fieldmangler>
+</div>
+
+<$edit-text field="draft.title" class="tc-titlebar tc-edit-texteditor" focus={{{ [{$:/config/AutoFocus}match[title]then[true]] ~[[false]] }}} tabindex={{$:/config/EditTabIndex}}/>
+
+<$vars pattern="""[\|\[\]{}]""" bad-chars="""`| [ ] { }`""">
+
+<$list filter="[all[current]regexp:draft.title<pattern>]" variable="listItem">
+
+<div class="tc-message-box">
+
+{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}
+
+</div>
+
+</$list>
+
+</$vars>
+
+<$reveal state="!!draft.title" type="nomatch" text={{!!draft.of}} tag="div">
+
+<$list filter="[{!!draft.title}!is[missing]]" variable="listItem">
+
+<div class="tc-message-box">
+
+{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}
+
+</div>
+
+</$list>
+
+<$list filter="[{!!draft.of}!is[missing]]" variable="listItem">
+
+<$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}>
+
+<$checkbox tiddler="$:/config/RelinkOnRename" field="text" checked="yes" unchecked="no" default="no"> {{$:/language/EditTemplate/Title/Relink/Prompt}}</$checkbox>
+
+<$list filter="[title<fromTitle>backlinks[]limit[1]]" variable="listItem">
+
+<$vars stateTiddler=<<qualify "$:/state/edit/references">> >
+
+<$reveal type="nomatch" state=<<stateTiddler>> text="show">
+<$button set=<<stateTiddler>> setTo="show" class="tc-btn-invisible">{{$:/core/images/right-arrow}}
+<<lingo EditTemplate/Title/References/Prompt>></$button>
+</$reveal>
+<$reveal type="match" state=<<stateTiddler>> text="show">
+<$button set=<<stateTiddler>> setTo="hide" class="tc-btn-invisible">{{$:/core/images/down-arrow}}
+<<lingo EditTemplate/Title/References/Prompt>></$button>
+</$reveal>
+
+<$reveal type="match" state=<<stateTiddler>> text="show">
+<$tiddler tiddler=<<fromTitle>> >
+<$transclude tiddler="$:/core/ui/TiddlerInfo/References"/>
+</$tiddler>
+</$reveal>
+
+</$vars>
+
+</$list>
+
+</$vars>
+
+</$list>
+
+</$reveal>
+
+\define lingo-base() $:/language/EditTemplate/
+\whitespace trim
+<div class="tc-type-selector"><$fieldmangler>
+<em class="tc-edit"><<lingo Type/Prompt>></em> <$edit-text field="type" tag="input" default="" placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=<<qualify "$:/state/popup/type-dropdown">> class="tc-edit-typeeditor tc-edit-texteditor tc-popup-handle" tabindex={{$:/config/EditTabIndex}} focus={{{ [{$:/config/AutoFocus}match[type]then[true]] ~[[false]] }}}/> <$button popup=<<qualify "$:/state/popup/type-dropdown">> class="tc-btn-invisible tc-btn-dropdown" tooltip={{$:/language/EditTemplate/Type/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Type/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button> <$button message="tm-remove-field" param="type" class="tc-btn-invisible tc-btn-icon" tooltip={{$:/language/EditTemplate/Type/Delete/Hint}} aria-label={{$:/language/EditTemplate/Type/Delete/Caption}}>{{$:/core/images/delete-button}}</$button>
+</$fieldmangler></div>
+
+<div class="tc-block-dropdown-wrapper">
+<$set name="tv-show-missing-links" value="yes">
+<$reveal state=<<qualify "$:/state/popup/type-dropdown">> type="nomatch" text="" default="">
+<div class="tc-block-dropdown tc-edit-type-dropdown">
+<$linkcatcher to="!!type">
+<$list filter='[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]each[group]sort[group-sort]]'>
+<div class="tc-dropdown-item">
+<$text text={{!!group}}/>
+</div>
+<$list filter="[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]group{!!group}] +[sort[description]]"><$link to={{!!name}}><$view field="description"/> (<$view field="name"/>)</$link>
+</$list>
+</$list>
+</$linkcatcher>
+</div>
+</$reveal>
+</$set>
+</div>
+
+\define lingo-base() $:/language/Import/
+
+\define messageField()
+message-$(payloadTiddler)$
+\end
+
+\define selectionField()
+selection-$(payloadTiddler)$
+\end
+
+\define previewPopupState()
+$(currentTiddler)$!!popup-$(payloadTiddler)$
+\end
+
+\define select-all-actions()
+<$list filter="[all[current]plugintiddlers[]sort[title]]" variable="payloadTiddler">
+<$action-setfield $field={{{ [<payloadTiddler>addprefix[selection-]] }}} $value={{$:/state/import/select-all}}/>
+</$list>
+\end
+
+<table>
+<tbody>
+<tr>
+<th>
+<$checkbox tiddler="$:/state/import/select-all" field="text" checked="checked" unchecked="unchecked" default="checked" actions=<<select-all-actions>>>
+<<lingo Listing/Select/Caption>>
+</$checkbox>
+</th>
+<th>
+<<lingo Listing/Title/Caption>>
+</th>
+<th>
+<<lingo Listing/Status/Caption>>
+</th>
+</tr>
+<$list filter="[all[current]plugintiddlers[]sort[title]]" variable="payloadTiddler">
+<tr>
+<td>
+<$checkbox field=<<selectionField>> checked="checked" unchecked="unchecked" default="checked"/>
+</td>
+<td>
+<$reveal type="nomatch" stateTitle=<<previewPopupState>> text="yes" tag="div">
+<$button class="tc-btn-invisible tc-btn-dropdown" setTitle=<<previewPopupState>> setTo="yes">
+{{$:/core/images/right-arrow}} <$text text=<<payloadTiddler>>/>
+</$button>
+</$reveal>
+<$reveal type="match" stateTitle=<<previewPopupState>> text="yes" tag="div">
+<$button class="tc-btn-invisible tc-btn-dropdown" setTitle=<<previewPopupState>> setTo="no">
+{{$:/core/images/down-arrow}} <$text text=<<payloadTiddler>>/>
+</$button>
+</$reveal>
+</td>
+<td>
+<$view field=<<messageField>>/>
+</td>
+</tr>
+<tr>
+<td colspan="3">
+<$reveal type="match" text="yes" stateTitle=<<previewPopupState>> tag="div">
+<$list filter="[{$:/state/importpreviewtype}has[text]]" variable="listItem" emptyMessage={{$:/core/ui/ImportPreviews/Text}}>
+<$transclude tiddler={{$:/state/importpreviewtype}}/>
+</$list>
+</$reveal>
+</td>
+</tr>
+</$list>
+</tbody>
+</table>
+
+<$macrocall $name="compareTiddlerText" sourceTiddlerTitle=<<payloadTiddler>> destTiddlerTitle=<<currentTiddler>> destSubTiddlerTitle=<<payloadTiddler>>/>
+
+<$macrocall $name="compareTiddlers" sourceTiddlerTitle=<<payloadTiddler>> destTiddlerTitle=<<currentTiddler>> destSubTiddlerTitle=<<payloadTiddler>> exclude="text"/>
+
+<table class="tc-view-field-table">
+<tbody>
+<$list filter="[<payloadTiddler>subtiddlerfields<currentTiddler>sort[]] -text" variable="fieldName">
+<tr class="tc-view-field">
+<td class="tc-view-field-name">
+<$text text=<<fieldName>>/>
+</td>
+<td class="tc-view-field-value">
+<$view field=<<fieldName>> tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>>/>
+</td>
+</tr>
+</$list>
+</tbody>
+</table>
+
+<$transclude tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>> mode="block"/>
+
+<pre><code><$view tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>> /></code></pre>
+<$list filter="[[$:/state/sidebar]is[missing]] [{$:/state/sidebar}removeprefix[yes]]" emptyMessage="""
+<$action-setfield $tiddler="$:/state/sidebar" text="yes"/>
+""">
+<$action-setfield $tiddler="$:/state/sidebar" text="no"/>
+</$list>
+
+<$navigator story="$:/StoryList" history="$:/HistoryList">
+<$action-navigate $to="$:/AdvancedSearch"/>
+<$action-sendmessage $message="tm-focus-selector" $param="""[data-tiddler-title="$:/AdvancedSearch"] .tc-search input"""/>
+</$navigator>
+
+<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>
+{{$:/core/ui/Actions/new-image}}
+</$navigator>
+
+<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>
+{{$:/core/ui/Actions/new-journal}}
+</$navigator>
+
+<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>
+{{$:/core/ui/Actions/new-tiddler}}
+</$navigator>
+
+<$action-sendmessage $message="tm-focus-selector" $param=".tc-search input"/>
+
+<div class="tc-menu-list-item">
+<$link />
+</div>
+<div class="tc-tiddler-missing">
+<$button popup=<<qualify "$:/state/popup/missing">> class="tc-btn-invisible tc-missing-tiddler-label">
+<$view field="title" format="text" />
+</$button>
+<$reveal state=<<qualify "$:/state/popup/missing">> type="popup" position="below" animate="yes">
+<div class="tc-drop-down">
+<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
+<hr>
+<$list filter="[all[current]backlinks[]sort[title]]" template="$:/core/ui/ListItemTemplate"/>
+</div>
+</$reveal>
+</div>
+
+<$list filter={{$:/core/Filters/AllTiddlers!!filter}} template="$:/core/ui/ListItemTemplate"/>
+
+<$list filter={{$:/core/Filters/Drafts!!filter}} template="$:/core/ui/ListItemTemplate"/>
+
+<<tree "$:/">>
+
+<$list filter={{$:/core/Filters/Missing!!filter}} template="$:/core/ui/MissingTemplate"/>
+
+<$list filter={{$:/core/Filters/Orphans!!filter}} template="$:/core/ui/ListItemTemplate"/>
+
+{{$:/language/ControlPanel/Plugins/Installed/Hint}}
+
+<<tabs "[all[shadows+tiddlers]tag[$:/tags/MoreSideBar/Plugins]!has[draft.of]]" "$:/core/ui/MoreSideBar/Plugins/Plugins">>
+
+<$list filter="[!has[draft.of]plugin-type[language]sort[description]]" template="$:/core/ui/PluginListItemTemplate" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/>
+
+<$list filter="[!has[draft.of]plugin-type[plugin]sort[description]]" template="$:/core/ui/PluginListItemTemplate" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}>>/>
+
+<$list filter="[!has[draft.of]plugin-type[theme]sort[description]]" template="$:/core/ui/PluginListItemTemplate" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/>
+
+<$macrocall $name="timeline" format={{$:/language/RecentChanges/DateFormat}}/>
+
+<$list filter={{$:/core/Filters/ShadowTiddlers!!filter}} template="$:/core/ui/ListItemTemplate"/>
+
+<$list filter={{$:/core/Filters/SystemTiddlers!!filter}} template="$:/core/ui/ListItemTemplate"/>
+
+<$set name="tv-config-toolbar-icons" value="yes">
+
+<$set name="tv-config-toolbar-text" value="yes">
+
+<$set name="tv-config-toolbar-class" value="">
+
+{{$:/core/ui/Buttons/tag-manager}}
+
+</$set>
+
+</$set>
+
+</$set>
+
+<$list filter={{$:/core/Filters/AllTags!!filter}}>
+
+<$transclude tiddler="$:/core/ui/TagTemplate"/>
+
+</$list>
+
+<hr class="tc-untagged-separator">
+
+{{$:/core/ui/UntaggedTemplate}}
+
+<$list filter={{$:/core/Filters/TypedTiddlers!!filter}}>
+<div class="tc-menu-list-item">
+<$view field="type"/>
+<$list filter="[type{!!type}!is[system]sort[title]]">
+<div class="tc-menu-list-subitem">
+<$link to={{!!title}}><$view field="title"/></$link>
+</div>
+</$list>
+</div>
+</$list>
+
+\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
+
+<$set name="currentTiddler" value={{$:/language}}>
+
+<$set name="languageTitle" value={{!!name}}>
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]">
+<$transclude mode="block"/>
+</$list>
+
+</$set>
+
+</$set>
+
+\whitespace trim
+\define containerClasses()
+tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$
+\end
+\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
+
+<$set name="tv-config-toolbar-icons" value={{$:/config/Toolbar/Icons}}>
+
+<$set name="tv-config-toolbar-text" value={{$:/config/Toolbar/Text}}>
+
+<$set name="tv-config-toolbar-class" value={{$:/config/Toolbar/ButtonClass}}>
+
+<$set name="tv-enable-drag-and-drop" value={{$:/config/DragAndDrop/Enable}}>
+
+<$set name="tv-show-missing-links" value={{$:/config/MissingLinks}}>
+
+<$set name="storyviewTitle" value={{$:/view}}>
+
+<$set name="languageTitle" value={{{ [{$:/language}get[name]] }}}>
+
+<div class=<<containerClasses>>>
+
+<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>
+
+<$dropzone enable=<<tv-enable-drag-and-drop>>>
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageTemplate]!has[draft.of]]" variable="listItem">
+
+<$transclude tiddler=<<listItem>>/>
+
+</$list>
+
+</$dropzone>
+
+</$navigator>
+
+</div>
+
+</$set>
+
+</$set>
+
+</$set>
+
+</$set>
+
+</$set>
+
+</$set>
+
+</$set>
+
+<div class="tc-alerts">
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/Alert]!has[draft.of]]" template="$:/core/ui/AlertTemplate" storyview="pop"/>
+
+</div>
+
+\whitespace trim
+<$reveal state="$:/status/IsReadOnly" type="nomatch" text="yes" tag="div" class="tc-drafts-list">
+<$list filter="[has[draft.of]!sort[modified]] -[list[$:/StoryList]]">
+<$link>
+{{$:/core/images/edit-button}} <$text text=<<currentTiddler>>/>
+</$link>
+</$list>
+</$reveal>
+
+\whitespace trim
+\define config-title()
+$:/config/PageControlButtons/Visibility/$(listItem)$
+\end
+<div class="tc-page-controls">
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem">
+<$set name="hidden" value=<<config-title>>>
+<$list filter="[<hidden>!text[hide]]" storyview="pop" variable="ignore">
+<$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]">
+<$transclude tiddler=<<listItem>> mode="inline"/>
+</$set>
+</$list>
+</$set>
+</$list>
+</div>
+
+\define lingo-base() $:/language/
+
+<$list filter="[{$:/status/RequireReloadDueToPluginChange}match[yes]]">
+
+<$reveal type="nomatch" state="$:/temp/HidePluginWarning" text="yes">
+
+<div class="tc-plugin-reload-warning">
+
+<$set name="tv-config-toolbar-class" value="">
+
+<<lingo PluginReloadWarning>> <$button set="$:/temp/HidePluginWarning" setTo="yes" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button>
+
+</$set>
+
+</div>
+
+</$reveal>
+
+</$list>
+
+\whitespace trim
+\define config-title()
+$:/config/SideBarSegments/Visibility/$(listItem)$
+\end
+
+<$scrollable fallthrough="no" class="tc-sidebar-scrollable">
+
+<div class="tc-sidebar-header">
+
+<$reveal state="$:/state/sidebar" type="match" text="yes" default="yes" retain="yes" animate="yes">
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/SideBarSegment]!has[draft.of]]" variable="listItem">
+
+<$reveal type="nomatch" state=<<config-title>> text="hide" tag="div">
+
+<$transclude tiddler=<<listItem>> mode="block"/>
+
+</$reveal>
+
+</$list>
+
+</$reveal>
+
+</div>
+
+</$scrollable>
+
+\whitespace trim
+<section class="tc-story-river">
+
+<section class="story-backdrop">
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/AboveStory]!has[draft.of]]">
+
+<$transclude/>
+
+</$list>
+
+</section>
+
+<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" template={{$:/config/ui/ViewTemplate}} editTemplate={{$:/config/ui/EditTemplate}} storyview={{$:/view}} emptyMessage={{$:/config/EmptyStoryMessage}}/>
+
+<section class="story-frontdrop">
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/BelowStory]!has[draft.of]]">
+
+<$transclude/>
+
+</$list>
+
+</section>
+
+</section>
+
+<span class="tc-topbar tc-topbar-left">
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/TopLeftBar]!has[draft.of]]" variable="listItem" storyview="pop">
+
+<$transclude tiddler=<<listItem>> mode="inline"/>
+
+</$list>
+
+</span>
+
+<span class="tc-topbar tc-topbar-right">
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/TopRightBar]!has[draft.of]]" variable="listItem" storyview="pop">
+
+<$transclude tiddler=<<listItem>> mode="inline"/>
+
+</$list>
+
+</span>
+
+\define localised-info-tiddler-title()
+$(currentTiddler)$/$(languageTitle)$/$(currentTab)$
+\end
+\define info-tiddler-title()
+$(currentTiddler)$/$(currentTab)$
+\end
+\define default-tiddler-title()
+$:/core/ui/PluginInfo/Default/$(currentTab)$
+\end
+<$transclude tiddler=<<localised-info-tiddler-title>> mode="block">
+<$transclude tiddler=<<currentTiddler>> subtiddler=<<localised-info-tiddler-title>> mode="block">
+<$transclude tiddler=<<currentTiddler>> subtiddler=<<info-tiddler-title>> mode="block">
+<$transclude tiddler=<<default-tiddler-title>> mode="block">
+{{$:/language/ControlPanel/Plugin/NoInfoFound/Hint}}
+</$transclude>
+</$transclude>
+</$transclude>
+</$transclude>
+
+\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/
+<<lingo Hint>>
+<ul>
+<$list filter="[all[current]plugintiddlers[]sort[title]]" emptyMessage=<<lingo Empty/Hint>>>
+<li>
+<$link />
+</li>
+</$list>
+</ul>
+
+<div class="tc-menu-list-item">
+<$link to={{!!title}}><$view field="description"><$view field="title"/></$view></$link>
+</div>
+<div class="tc-search-results">
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]" emptyMessage="""
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]">
+<$transclude mode="block"/>
+</$list>
+""">
+
+<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]" default={{$:/config/SearchResults/Default}}/>
+
+</$list>
+
+</div>
+
+<div class="tc-more-sidebar">
+<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]" default={{$:/config/DefaultMoreSidebarTab}} state="$:/state/tab/moresidebar" class="tc-vertical tc-sidebar-tabs-more" />
+</div>
+\whitespace trim
+\define lingo-base() $:/language/CloseAll/
+
+\define drop-actions()
+<$action-listops $tiddler=<<tv-story-list>> $subfilter="+[insertbefore:currentTiddler<actionTiddler>]"/>
+\end
+
+\define placeholder()
+<div class="tc-droppable-placeholder"/>
+\end
+
+\define droppable-item(button)
+\whitespace trim
+<$droppable actions=<<drop-actions>> enable=<<tv-allow-drag-and-drop>>>
+<<placeholder>>
+<div>
+$button$
+</div>
+</$droppable>
+\end
+
+<div class="tc-sidebar-tab-open">
+<$list filter="[list<tv-story-list>]" history=<<tv-history-list>> storyview="pop">
+<div class="tc-sidebar-tab-open-item">
+<$macrocall $name="droppable-item" button="""<$button message="tm-close-tiddler" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class="tc-btn-invisible tc-btn-mini">{{$:/core/images/close-button}}</$button> <$link to={{!!title}}><$view field="title"/></$link>"""/>
+</div>
+</$list>
+<$tiddler tiddler="">
+<div>
+<$macrocall $name="droppable-item" button="""<$button message="tm-close-all-tiddlers" class="tc-btn-invisible tc-btn-mini"><<lingo Button>></$button>"""/>
+</div>
+</$tiddler>
+</div>
+
+<$macrocall $name="timeline" format={{$:/language/RecentChanges/DateFormat}}/>
+
+\define lingo-base() $:/language/ControlPanel/
+\define config-title()
+$:/config/PageControlButtons/Visibility/$(listItem)$
+\end
+
+<<lingo Basics/Version/Prompt>> <<version>>
+
+<$set name="tv-config-toolbar-icons" value="yes">
+
+<$set name="tv-config-toolbar-text" value="yes">
+
+<$set name="tv-config-toolbar-class" value="">
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem">
+
+<div style="position:relative;" class={{{ [<listItem>encodeuricomponent[]addprefix[tc-btn-]] }}}>
+
+<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"/> <$transclude tiddler=<<listItem>>/> <i class="tc-muted"><$transclude tiddler=<<listItem>> field="description"/></i>
+
+</div>
+
+</$list>
+
+</$set>
+
+</$set>
+
+</$set>
+
+<$transclude tiddler="$:/core/ui/SideBarSegments/search"/>
+
+<$transclude tiddler="$:/core/ui/SideBarSegments/tabs"/>
+
+
+{{||$:/core/ui/PageTemplate/pagecontrols}}
+
+\whitespace trim
+<div class="tc-sidebar-lists tc-sidebar-search">
+
+<$set name="searchTiddler" value="$:/temp/search">
+<div class="tc-search">
+<$edit-text tiddler="$:/temp/search" type="search" tag="input" focus={{$:/config/Search/AutoFocus}} focusPopup=<<qualify "$:/state/popup/search-dropdown">> class="tc-popup-handle"/>
+<$reveal state="$:/temp/search" type="nomatch" text="">
+<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="tc-btn-invisible">
+<$action-setfield $tiddler="$:/temp/advancedsearch" text={{$:/temp/search}}/>
+<$action-setfield $tiddler="$:/temp/search" text=""/>
+<$action-navigate $to="$:/AdvancedSearch"/>
+{{$:/core/images/advanced-search-button}}
+</$button>
+<$button class="tc-btn-invisible">
+<$action-setfield $tiddler="$:/temp/search" text="" />
+{{$:/core/images/close-button}}
+</$button>
+<$button popup=<<qualify "$:/state/popup/search-dropdown">> class="tc-btn-invisible">
+{{$:/core/images/down-arrow}}
+<$list filter="[{$:/temp/search}minlength{$:/config/Search/MinLength}limit[1]]" variable="listItem">
+<$set name="searchTerm" value={{{ [<searchTiddler>get[text]] }}}>
+<$set name="resultCount" value="""<$count filter="[!is[system]search<searchTerm>]"/>""">
+{{$:/language/Search/Matches}}
+</$set>
+</$set>
+</$list>
+</$button>
+</$reveal>
+<$reveal state="$:/temp/search" type="match" text="">
+<$button to="$:/AdvancedSearch" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="tc-btn-invisible">
+{{$:/core/images/advanced-search-button}}
+</$button>
+</$reveal>
+</div>
+
+<$reveal tag="div" class="tc-block-dropdown-wrapper" state="$:/temp/search" type="nomatch" text="">
+
+<$reveal tag="div" class="tc-block-dropdown tc-search-drop-down tc-popup-handle" state=<<qualify "$:/state/popup/search-dropdown">> type="nomatch" text="" default="">
+
+<$list filter="[{$:/temp/search}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
+
+{{$:/core/ui/SearchResults}}
+
+</$list>
+
+</$reveal>
+
+</$reveal>
+
+</$set>
+
+</div>
+
+<div class="tc-site-subtitle">
+
+<$transclude tiddler="$:/SiteSubtitle" mode="inline"/>
+
+</div>
+
+<h1 class="tc-site-title">
+
+<$transclude tiddler="$:/SiteTitle" mode="inline"/>
+
+</h1>
+
+<div class="tc-sidebar-lists tc-sidebar-tabs">
+
+<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]" default={{$:/config/DefaultSidebarTab}} state="$:/state/tab/sidebar" class="tc-sidebar-tabs-main"/>
+
+</div>
+
+\whitespace trim
+<span class="tc-tag-list-item">
+<$set name="transclusion" value=<<currentTiddler>>>
+<$macrocall $name="tag-pill-body" tag=<<currentTiddler>> icon={{!!icon}} colour={{!!color}} palette={{$:/palette}} element-tag="""$button""" element-attributes="""popup=<<qualify "$:/state/popup/tag">> dragFilter='[all[current]tagging[]]' tag='span'"""/>
+<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" position="below" animate="yes" class="tc-drop-down">
+<$set name="tv-show-missing-links" value="yes">
+<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
+</$set>
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]" variable="listItem">
+<$transclude tiddler=<<listItem>>/>
+</$list>
+<hr>
+<$macrocall $name="list-tagged-draggable" tag=<<currentTiddler>>/>
+</$reveal>
+</$set>
+</span>
+
+<table class="tc-view-field-table">
+<tbody>
+<$list filter="[all[current]fields[]sort[title]] -text" template="$:/core/ui/TiddlerFieldTemplate" variable="listItem"/>
+</tbody>
+</table>
+
+<tr class="tc-view-field">
+<td class="tc-view-field-name">
+<$text text=<<listItem>>/>
+</td>
+<td class="tc-view-field-value">
+<$view field=<<listItem>>/>
+</td>
+</tr>
+<div style="position:relative;">
+<div class="tc-tiddler-controls" style="position:absolute;right:0;">
+<$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="sticky">
+<$button set=<<tiddlerInfoState>> setTo="" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class="tc-btn-invisible">
+{{$:/core/images/close-button}}
+</$button>
+</$reveal>
+</div>
+</div>
+
+<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo]!has[draft.of]]" default={{$:/config/TiddlerInfo/Default}}/>
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo/Advanced]!has[draft.of]]" variable="listItem">
+<$transclude tiddler=<<listItem>>/>
+
+</$list>
+
+\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/
+<$list filter="[all[current]has[plugin-type]]">
+
+! <<lingo Heading>>
+
+<<lingo Hint>>
+<ul>
+<$list filter="[all[current]plugintiddlers[]sort[title]]" emptyMessage=<<lingo Empty/Hint>>>
+<li>
+<$link to={{!!title}}>
+<$view field="title"/>
+</$link>
+</li>
+</$list>
+</ul>
+
+</$list>
+
+\define lingo-base() $:/language/TiddlerInfo/Advanced/ShadowInfo/
+<$set name="infoTiddler" value=<<currentTiddler>>>
+
+''<<lingo Heading>>''
+
+<$list filter="[all[current]!is[shadow]]">
+
+<<lingo NotShadow/Hint>>
+
+</$list>
+
+<$list filter="[all[current]is[shadow]]">
+
+<<lingo Shadow/Hint>>
+
+<$list filter="[all[current]shadowsource[]]">
+
+<$set name="pluginTiddler" value=<<currentTiddler>>>
+<<lingo Shadow/Source>>
+</$set>
+
+</$list>
+
+<$list filter="[all[current]is[shadow]is[tiddler]]">
+
+<<lingo OverriddenShadow/Hint>>
+
+</$list>
+
+
+</$list>
+</$set>
+
+<$transclude tiddler="$:/core/ui/TiddlerFields"/>
+
+\define lingo-base() $:/language/TiddlerInfo/
+<$list filter="[list{!!title}]" emptyMessage=<<lingo List/Empty>> template="$:/core/ui/ListItemTemplate"/>
+
+\define lingo-base() $:/language/TiddlerInfo/
+<$list filter="[all[current]listed[]!is[system]]" emptyMessage=<<lingo Listed/Empty>> template="$:/core/ui/ListItemTemplate"/>
+
+\define lingo-base() $:/language/TiddlerInfo/
+<$list filter="[all[current]backlinks[]sort[title]]" emptyMessage=<<lingo References/Empty>> template="$:/core/ui/ListItemTemplate">
+</$list>
+\define lingo-base() $:/language/TiddlerInfo/
+<$list filter="[all[current]tagging[]]" emptyMessage=<<lingo Tagging/Empty>> template="$:/core/ui/ListItemTemplate"/>
+
+\define lingo-base() $:/language/TiddlerInfo/
+\define config-title()
+$:/config/ViewToolbarButtons/Visibility/$(listItem)$
+\end
+<$set name="tv-config-toolbar-icons" value="yes">
+
+<$set name="tv-config-toolbar-text" value="yes">
+
+<$set name="tv-config-toolbar-class" value="">
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem">
+
+<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"/> <$transclude tiddler=<<listItem>>/> <i class="tc-muted"><$transclude tiddler=<<listItem>> field="description"/></i>
+
+</$list>
+
+</$set>
+
+</$set>
+
+</$set>
+
+<$list filter="[[$:/state/sidebar]get[text]] +[else[yes]!match[no]]" variable="ignore">
+<$button set="$:/state/sidebar" setTo="no" tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class="tc-btn-invisible">{{$:/core/images/chevron-right}}</$button>
+</$list>
+<$list filter="[[$:/state/sidebar]get[text]] +[else[yes]match[no]]" variable="ignore">
+<$button set="$:/state/sidebar" setTo="yes" tooltip={{$:/language/Buttons/ShowSideBar/Hint}} aria-label={{$:/language/Buttons/ShowSideBar/Caption}} class="tc-btn-invisible">{{$:/core/images/chevron-left}}</$button>
+</$list>
+
+\define lingo-base() $:/language/SideBar/
+<$button popup=<<qualify "$:/state/popup/tag">> class="tc-btn-invisible tc-untagged-label tc-tag-label">
+<<lingo Tags/Untagged/Caption>>
+</$button>
+<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" position="below">
+<div class="tc-drop-down">
+<$list filter="[untagged[]!is[system]] -[tags[]] +[sort[title]]" template="$:/core/ui/ListItemTemplate"/>
+</div>
+</$reveal>
+
+\define folded-state()
+$:/state/folded/$(currentTiddler)$
+\end
+\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]]
+<$vars storyTiddler=<<currentTiddler>> tiddlerInfoState=<<qualify "$:/state/popup/tiddler-info">>><div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-view-frame [<currentTiddler>is[tiddler]then[tc-tiddler-exists]] [<currentTiddler>is[missing]!is[shadow]then[tc-tiddler-missing]] [<currentTiddler>is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [<currentTiddler>is[shadow]is[tiddler]then[tc-tiddler-overridden-shadow]] [<currentTiddler>is[system]then[tc-tiddler-system]] [{!!class}] [<currentTiddler>tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}><$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]" variable="listItem"><$transclude tiddler=<<listItem>>/></$list>
+</div>
+</$vars>
+
+<$reveal tag="div" class="tc-tiddler-body" type="nomatch" stateTitle=<<folded-state>> text="hide" retain="yes" animate="yes">
+
+<$list filter="[all[current]!has[plugin-type]!field:hide-body[yes]]">
+
+<$transclude>
+
+<$transclude tiddler="$:/language/MissingTiddler/Hint"/>
+
+</$transclude>
+
+</$list>
+
+</$reveal>
+
+\define lingo-base() $:/language/ClassicWarning/
+<$list filter="[all[current]type[text/x-tiddlywiki]]">
+<div class="tc-message-box">
+
+<<lingo Hint>>
+
+<$button set="!!type" setTo="text/vnd.tiddlywiki"><<lingo Upgrade/Caption>></$button>
+
+</div>
+</$list>
+
+\define lingo-base() $:/language/Import/
+
+\define buttons()
+<$button message="tm-delete-tiddler" param=<<currentTiddler>>><<lingo Listing/Cancel/Caption>></$button>
+<$button message="tm-perform-import" param=<<currentTiddler>>><<lingo Listing/Import/Caption>></$button>
+<<lingo Listing/Preview>> <$select tiddler="$:/state/importpreviewtype" default="$:/core/ui/ImportPreviews/Text">
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/ImportPreview]!has[draft.of]]">
+<option value=<<currentTiddler>>>{{!!caption}}</option>
+</$list>
+</$select>
+\end
+
+<$list filter="[all[current]field:plugin-type[import]]">
+
+<div class="tc-import">
+
+<<lingo Listing/Hint>>
+
+<<buttons>>
+
+{{||$:/core/ui/ImportListing}}
+
+<<buttons>>
+
+</div>
+
+</$list>
+
+<$list filter="[all[current]has[plugin-type]] -[all[current]field:plugin-type[import]]">
+<$set name="plugin-type" value={{!!plugin-type}}>
+<$set name="default-popup-state" value="yes">
+<$set name="qualified-state" value=<<qualify "$:/state/plugin-info">>>
+{{||$:/core/ui/Components/plugin-info}}
+</$set>
+</$set>
+</$set>
+</$list>
+
+<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
+<div class="tc-tags-wrapper"><$list filter="[all[current]tags[]sort[title]]" template="$:/core/ui/TagTemplate" storyview="pop"/></div>
+</$reveal>
+
+<!-- \whitespace trim
+\define title-styles()
+fill:$(foregroundColor)$;
+\end
+\define config-title()
+$:/config/ViewToolbarButtons/Visibility/$(listItem)$
+\end
+<div class="tc-tiddler-title">
+<div class="tc-titlebar">
+<span class="tc-tiddler-controls">
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<<config-title>> text="hide"><$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]"><$transclude tiddler=<<listItem>>/></$set></$reveal></$list>
+</span>
+<$set name="tv-wikilinks" value={{$:/config/Tiddlers/TitleLinks}}>
+<$link>
+<$set name="foregroundColor" value={{!!color}}>
+<span class="tc-tiddler-title-icon" style=<<title-styles>>>
+<$transclude tiddler={{!!icon}}>
+<$transclude tiddler={{$:/config/DefaultTiddlerIcon}}/>
+</$transclude>
+</span>
+</$set>
+<$list filter="[all[current]removeprefix[$:/]]">
+<h2 class="tc-title" title={{$:/language/SystemTiddler/Tooltip}}>
+<span class="tc-system-title-prefix">$:/</span><$text text=<<currentTiddler>>/>
+</h2>
+</$list>
+<$list filter="[all[current]!prefix[$:/]]">
+<h2 class="tc-title">
+<$view field="title"/>
+</h2>
+</$list>
+</$link>
+</$set>
+</div>
+
+<$reveal type="nomatch" text="" default="" state=<<tiddlerInfoState>> class="tc-tiddler-info tc-popup-handle" animate="yes" retain="yes">
+
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlerInfoSegment]!has[draft.of]] [[$:/core/ui/TiddlerInfo]]" variable="listItem"><$transclude tiddler=<<listItem>> mode="block"/></$list>
+
+</$reveal>
+</div>
+-->
+<$reveal tag="div" type="nomatch" state="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar" text="hide">
+<$reveal tag="div" type="nomatch" stateTitle=<<folded-state>> text="hide" default="show" retain="yes" animate="yes">
+<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class="tc-fold-banner">
+<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/>
+{{$:/core/images/chevron-up}}
+</$button>
+</$reveal>
+<$reveal tag="div" type="nomatch" stateTitle=<<folded-state>> text="show" default="show" retain="yes" animate="yes">
+<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class="tc-unfold-banner">
+<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/>
+{{$:/core/images/chevron-down}}
+</$button>
+</$reveal>
+</$reveal>
+
+{{$:/SiteTitle}} --- {{$:/SiteSubtitle}}
+copincha
+AAABAAEAAAAAAAEAIABxrwEAFgAAAIlQTkcNChoKAAAADUlIRFIAAAJEAAACRAgGAAAA9+A7WgAAIABJREFUeJzsvXmYXOV95/s5S51aetNuJBAYCUkgFmFsE3AwxhCwnQmZiY0x9p3rubHH12P73iR3nuTemcdPcnMzmbETPInH4JjFjAVILEaA2JERqxASEkKtfd9aLbXU+1Jd61nuH+953zpVXa21perl/eg5T7eqa/nVqVPn/Z7fagRBgEaj0Wg0Gs1Exqy1ARqNRqPRaDS1RgsijUaj0Wg0Ex4tiDQajUaj0Ux4tCDSaDQajUYz4dGCSKPRaDQazYRHCyKNRqPRaDQTHi2INBqNRqPRTHi0INJoNBqNRjPh0YJIo9FoNBrNhMeutQEajWZMYAPTgWnAVGAKMBmYFG6N4dYA1AN1QApIAgkgHm6xcLPCzQSM8DUCwAe8cCuGWz7cckAWyACDQBoYAPrDrTfceoBuoAvoBDoAd4T3h0ajGWcYenSHRjPhmR1uFwEXArOAmeF2ATADIYTGMp1AO3AMaAu3o8ARoBU4HG4ajWaCogWRRjP+mQRcFm5zgEvD7ZJwi9XOtFFFETgUbgfCbT+wN9x6a2eaRqM512hBpNGMHy4Brgi3BeE2H+Hx0Zw9R4HdwK5w2xFuh2pplEajGRm0INJoxh4NwDXhdjVwFXAlIq9Hc/7pBrYBW4EtwOZwG6ilURqN5vTQgkijGd00AJ8GrgM+BVyLEECa0c9WoBnYCHwMbECLJI1m1KIFkUYzurgGuB74bLh9qrbmaEaYjcD6cFuH8CRpNJpRgBZEGk3tsIHfB24MtxsQFV2aiUM7sBZYE26r0S0CNJqaoAWRRnP+sICbgc8DN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mCUIOIIBKE+qMZlUlaDaxCCaQViJN2VJwE/g9KAB1CZX3eQcSPINQVIogEYeawGFjur2X++hSwMMqgZhC/Bd5DTYM/Arzrr94ogxIE4cIggkgQZj6twGX+WgJc6q/F/rKiC62mKKHETS/w//z1a+B9fw1GF5ogCNONCCJBELr81QksQmWUFvhrPqrzbU5k0V0Y+lEdXX3Ax/76LXAMOAp85C9BEBoUEUSCIJwJcWAuShi1o+qVZqOyT61Ai7+agSyQQXkspYEUajhuEpWNslCeTDHABAz/d3iAi/LdcVAZmxJqMGkByAM5lFfPKDCCqtMZ8tegvwZQdT0nUELoE6SVXRCE0yCCSBAEQRCEhseMOgBBEARBEISoEUEkCIIgCELDI4JIEARBEISGRwSRIAiCIAgNjwgiQRAEQRAaHhFEgiAIgiA0PCKIBEEQBEFoeEQQCYIgCILQ8IggEgRBEASh4fn/HN4ybG2tsBkAAAAASUVORK5CYII=
+The following tiddlers were imported:
+
+# [[images/repo]]
+yes
+es-ES
+768
+1366
+no
+file:///media/m0/COPINCHA/proyectos/jardines-digitales/copincha.org/copincha.html
+null
+/media/m0/COPINCHA/proyectos/jardines-digitales/copincha.org/copincha.html
+file:
+no
+$:/languages/en-GB
+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:
+This tiddler contains binary data
+advanced search
+Advanced search
+bold
+Apply bold formatting to selection
+cancel
+Discard changes to this tiddler
+clear
+Clear image to solid colour
+clone
+Clone this tiddler
+close
+Close this tiddler
+close all
+Close all tiddlers
+close others
+Close other tiddlers
+control panel
+Open control panel
+copy to clipboard
+Copy this text to the clipboard
+delete
+Delete this tiddler
+edit
+Edit this tiddler
+editor height
+Automatically adjust height to fit content
+Fixed height:
+Choose the height of the text editor
+encryption
+clear password
+Clear the password and save this wiki without encryption
+Set or clear a password for saving this wiki
+set password
+Set a password for saving this wiki with encryption
+excise
+Perform excision
+Macro name:
+Title of new tiddler:
+Replace excised text with:
+link
+macro
+transclusion
+Tag new tiddler with the title of this tiddler
+Warning: tiddler already exists
+Excise the selected text into a new tiddler
+export all
+Export all tiddlers
+export tiddler
+Export tiddler
+export tiddlers
+Export tiddlers
+fold tiddler
+fold-bar
+Optional bars to fold and unfold tiddlers
+Fold the body of this tiddler
+fold all tiddlers
+Fold the bodies of all opened tiddlers
+fold other tiddlers
+Fold the bodies of other opened tiddlers
+full-screen
+Enter or leave full-screen mode
+heading 1
+Apply heading level 1 formatting to lines containing selection
+heading 2
+Apply heading level 2 formatting to lines containing selection
+heading 3
+Apply heading level 3 formatting to lines containing selection
+heading 4
+Apply heading level 4 formatting to lines containing selection
+heading 5
+Apply heading level 5 formatting to lines containing selection
+heading 6
+Apply heading level 6 formatting to lines containing selection
+help
+Show help panel
+hide sidebar
+Hide sidebar
+home
+Open the default tiddlers
+import
+Import many types of file including text, image, TiddlyWiki or JSON
+info
+Show information for this tiddler
+italic
+Apply italic formatting to selection
+language
+Choose the user interface language
+line width
+Set line width for painting
+link
+Create wikitext link
+wikilink
+Wrap selection in square brackets
+bulleted list
+Apply bulleted list formatting to lines containing selection
+numbered list
+Apply numbered list formatting to lines containing selection
+tiddler manager
+Open tiddler manager
+monospaced block
+Apply monospaced block formatting to lines containing selection
+monospaced
+Apply monospaced character formatting to selection
+more
+More actions
+new here
+Create a new tiddler tagged with this one
+new image
+Create a new image tiddler
+new journal
+Create a new journal tiddler
+new journal here
+Create a new journal tiddler tagged with this one
+new Markdown tiddler
+Create a new Markdown tiddler
+new tiddler
+Create a new tiddler
+opacity
+Set painting opacity
+open in new window
+Open tiddler in new window
+paint colour
+Set painting colour
+palette
+Choose the colour palette
+permalink
+Set browser address bar to a direct link to this tiddler
+permaview
+Set browser address bar to a direct link to all the tiddlers in this story
+picture
+Insert picture
+preview
+Show preview pane
+preview type
+Choose preview type
+print page
+Print the current page
+quote
+Apply quoted text formatting to lines containing selection
+refresh
+Perform a full refresh of the wiki
+rotate left
+Rotate image left by 90 degrees
+ok
+Confirm changes to this tiddler
+save changes
+Save changes
+show sidebar
+Show sidebar
+Select the sidebar search field
+image size
+Height:
+Resize image
+Width:
+Set image size
+stamp
+Add your own
+Insert a preconfigured snippet of text
+Text of snippet. (Remember to add a descriptive title in the caption field).
+Name as shown in menu
+storyview
+Choose the story visualisation
+strikethrough
+Apply strikethrough formatting to selection
+subscript
+Apply subscript formatting to selection
+superscript
+Apply superscript formatting to selection
+tag manager
+Open tag manager
+theme
+Choose the display theme
+timestamps
+Choose whether modifications update timestamps
+timestamps are off
+Don't update timestamps when tiddlers are modified
+timestamps are on
+Update timestamps when tiddlers are modified
+Toggle the sidebar visibility
+transclusion
+Wrap selection in curly brackets
+underline
+Apply underline formatting to selection
+unfold tiddler
+Unfold the body of this tiddler
+unfold all tiddlers
+Unfold the bodies of all opened tiddlers
+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.
+upgrade
+close all
+Recent:
+Do you wish to discard changes to the tiddler "<$text text=<<title>>/>"?
+Do you wish to delete the tiddler "<$text text=<<title>>/>"?
+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 "<$text text=<<title>>/>"?
+Do you wish to overwrite the tiddler "<$text text=<<title>>/>"?
+Advanced
+Internal information about this TiddlyWiki
+Appearance
+Ways to customise the appearance of your TiddlyWiki.
+Animation duration
+Default focus field for new tiddlers
+Basics
+Use [[double square brackets]] for titles with spaces. Or you can choose to <$button set="$:/DefaultTiddlers" setTo="[list[$:/StoryList]]">retain story ordering</$button>
+Default tiddlers
+Choose which tiddlers are displayed at startup
+Hello! Current language:
+Tags for new journal tiddlers
+Text for new journal tiddlers
+Title of new journal tiddlers
+Tags for new tiddlers
+Title of new tiddlers
+Number of overridden shadow tiddlers
+Number of shadow tiddlers
+Subtitle
+Number of system tiddlers
+Number of tags
+Number of tiddlers
+Title of this ~TiddlyWiki
+Username for signing edits
+~TiddlyWiki version
+Editor Types
+Editor
+These tiddlers determine which editor is used to edit specific tiddler types.
+Type
+Info
+Information about this TiddlyWiki
+add shortcut
+Type shortcut here
+Keyboard Shortcuts
+Manage keyboard shortcut assignments
+No keyboard shortcuts assigned
+All platforms
+Linux platform only
+Macintosh platform only
+Non-Linux platforms only
+Non-Macintosh platforms only
+Non-Windows platforms only
+Windows platform only
+remove keyboard shortcut
+Loaded Modules
+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.
+Palette
+clone
+It is recommended that you clone this shadow palette before editing it
+delete this entry from the current palette
+Show color names that are not part of the current palette
+Editing
+This shadow palette has been modified
+reset
+hide editor
+Current palette:
+show editor
+Block Parse Rules
+Parsing
+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 <$text text="TiddlyWiki"/> from functioning correctly. Use [[safe mode|https://tiddlywiki.com/#SafeMode]] to restore normal operation.
+Inline Parse Rules
+Pragma Parse Rules
+Get more plugins
+Install plugins from the official library
+This plugin is already installed at version <$text text=<<installedVersion>>/>
+Also requires:
+Plugins
+close plugin library
+disable
+Disable this plugin when reloading page
+(disabled)
+downgrade
+None
+enable
+Enable this plugin when reloading page
+install
+Currently installed plugins:
+Languages
+Language pack plugins
+No ''"<$text text=<<currentTab>>/>"'' found
+This plugin is not currently installed
+open plugin library
+Plugins
+Plugins
+(requires reload)
+reinstall
+With <<count>> sub-plugins available
+Themes
+Theme plugins
+update
+Updates
+Available updates to installed plugins
+Update <<update-count>> plugins
+Saving
+Permit automatic saving for the download saver
+Enable Autosave for Download Saver
+Download Saver
+These settings apply to the HTML5-compatible download saver
+General
+These settings apply to all the loaded savers
+Target branch for saving
+Saved by TiddlyWiki
+These settings are only used when saving to <<service-name>>
+Filename of target file (e.g. `index.html`)
+Gitea Saver
+Personal access token for API (via Gitea’s web interface: `Settings | Applications | Generate New Token`)
+~GitHub Saver
+Password, OAUTH token, or personal access token (see [[GitHub help page|https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line]] for details)
+~GitLab Saver
+Personal access token for API (see [[GitLab help page|https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html]] for details)
+Path to target file (e.g. `/wiki/`)
+Target repository (e.g. `Jermolene/TiddlyWiki5`)
+Server API URL
+Username
+Settings used for saving the entire TiddlyWiki as a single file via a saver module
+Advanced Settings
+Backup Directory
+Backups
+~TiddlySpot Saver
+These settings are only used when saving to http://tiddlyspot.com or a compatible remote server
+Upload Filename
+~TiddlySpot
+//The server URL defaults to `http://<wikiname>.tiddlyspot.com/store.cgi` and can be changed to use a custom server address, e.g. `http://example.com/store.php`.//
+Password
+Server URL
+Upload Directory
+Wiki Name
+Autosave
+Do not save changes automatically
+Save changes automatically
+Attempt to automatically save changes during editing when using a supporting saver
+Camel Case Wiki Links
+Enable automatic ~CamelCase linking
+You can globally disable automatic linking of ~CamelCase phrases. Requires reload to take effect
+Settings
+Default More Sidebar Tab
+Specify which More sidebar tab is displayed by default
+Default Sidebar Tab
+Specify which sidebar tab is displayed by default
+Editor Toolbar
+Show editor toolbar
+Enable or disable the editor toolbar:
+These settings let you customise the behaviour of TiddlyWiki.
+Tiddler Info Panel Mode
+Control when the tiddler info panel closes:
+Tiddler info panel closes automatically
+Tiddler info panel stays open until explicitly closed
+Tiddler Opening Behaviour
+Navigation from //within// the story river
+Open above the current tiddler
+Open at the bottom of the story river
+Open at the top of the story river
+Open below the current tiddler
+Navigation from //outside// the story river
+Wiki Links
+Enable links to missing tiddlers
+Choose whether to link to tiddlers that do not exist yet
+Navigation Address Bar
+Behaviour of the browser address bar when navigating to a tiddler:
+Do not update the address bar
+Include the target tiddler
+Include the target tiddler and the current story sequence
+Navigation History
+Update browser history when navigating to a tiddler:
+Do not update history
+Update history
+Permalink/permaview Mode
+Copy permalink/permaview URL to clipboard
+Choose how permalink/permaview is handled:
+Update address bar with permalink/permaview URL
+Performance Instrumentation
+Enable performance instrumentation
+Displays performance statistics in the browser developer console. Requires reload to take effect
+Tiddler Titles
+Optionally display tiddler titles as links
+Do not display tiddler titles as links
+Display tiddler titles as links
+Toolbar Buttons
+Default toolbar button appearance:
+Include icon
+Include text
+Toolbar Button Style
+Choose the style for toolbar buttons:
+Borderless
+Boxed
+Rounded
+Story View
+Current view:
+Stylesheets
+Expand All
+This is the rendered CSS of the current stylesheet tiddlers tagged with <<tag "$:/tags/Stylesheet">>
+Restore
+Theme
+Current theme:
+Tiddler Fields
+This is the full set of TiddlerFields in use in this wiki (including system tiddlers but excluding shadow tiddlers).
+Toolbars
+Editor Toolbar
+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
+Edit Toolbar
+Choose which buttons are displayed for tiddlers in edit mode. Drag and drop to change the ordering
+Select which toolbar buttons are displayed
+Page Toolbar
+Choose which buttons are displayed on the main page toolbar. Drag and drop to change the ordering
+View Toolbar
+Choose which buttons are displayed for tiddlers in view mode. Drag and drop to change the ordering
+Download full wiki
+count
+st
+th
+th
+th
+th
+th
+th
+th
+th
+th
+th
+nd
+th
+st
+nd
+rd
+th
+th
+th
+th
+th
+th
+rd
+th
+st
+th
+th
+th
+th
+th
+th
+Sunday
+Monday
+Tuesday
+Wednesday
+Thursday
+Friday
+Saturday
+January
+October
+November
+December
+February
+March
+April
+May
+June
+July
+August
+September
+am
+pm
+Sun
+Mon
+Tue
+Wed
+Thu
+Fri
+Sat
+Jan
+Oct
+Nov
+Dec
+Feb
+Mar
+Apr
+May
+Jun
+Jul
+Aug
+Sep
+New Tiddler
+<<diff-count>> differences
+The full URI of an external image tiddler
+If present, indicates that the tiddler text field must be loaded from the server
+The name of the bag from which a tiddler came
+The text to be displayed on a tab or button
+The CSS color value associated with a tiddler
+The name of the component responsible for an [[alert tiddler|AlertMechanism]]
+The date a tiddler was created
+The name of the person who created a tiddler
+Used to cache the top tiddler in a [[history list|HistoryMechanism]]
+For a plugin, lists the dependent plugin titles
+The descriptive text for a plugin, or a modal dialogue
+For draft tiddlers, contains the title of the tiddler of which this is a draft
+For draft tiddlers, contains the proposed new title of the tiddler
+The footer text for a wizard
+The view template will hide bodies of tiddlers if set to: ''yes''
+The title of the tiddler containing the icon associated with a tiddler
+Indicates that a tiddler should be saved as a JavaScript library if set to: ''yes''
+An ordered list of tiddler titles associated with a tiddler
+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
+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
+The date and time at which a tiddler was last modified
+The tiddler title associated with the person who last modified a tiddler
+The human readable name associated with a plugin tiddler
+A numerical value indicating the priority of a plugin tiddler
+The type of plugin in a plugin tiddler
+Date of a TiddlyWiki release
+The revision of the tiddler held at the server
+The source URL associated with a tiddler
+The subtitle text for a wizard
+A list of tags associated with a tiddler
+The body text of a tiddler
+If present, throttles refreshes of this tiddler
+The unique name of a tiddler
+Suppresses the tiddler's link in a Table of Contents tree if set to: ''no''
+The content type of a tiddler
+Version information for a plugin
+A sub-operator for the ''all'' filter operator.
+Animations that may be used with the RevealWidget.
+Defines how requests are authenticated by the built-in HTTP server.
+A bitmap editor toolbar operation.
+Commands that can be executed under Node.js.
+Data to be inserted into `$tw.config`.
+Individual filter operator methods.
+Global data to be inserted into `$tw`.
+Publishes system information via the [[$:/temp/info-plugin]] pseudo-plugin.
+Operands for the ''is'' filter operator.
+Generic module type for general purpose JavaScript modules.
+JavaScript macro definitions.
+Parsers for different content types.
+Defines how individual URL patterns are handled by the built-in HTTP server.
+Savers handle different methods for saving files from the browser.
+Startup functions.
+Story views customise the animation and behaviour of list widgets.
+A text editor toolbar operation.
+Converts different content types into tiddlers.
+Defines the behaviour of an individual tiddler field.
+Adds methods to the `$tw.Tiddler` prototype.
+Applies upgrade processing to tiddlers during an upgrade/import.
+Adds methods to `$tw.utils`.
+Adds Node.js-specific methods to `$tw.utils`.
+Widgets encapsulate DOM rendering and refreshing.
+Adds methods to `$tw.Wiki`.
+Individual parser rules for the main WikiText parser.
+Alert background
+Alert border
+Alert highlight
+Alert muted foreground
+General background
+Blockquote bar
+Default button background
+Default button border
+Default button foreground
+Code background
+Code border
+Code foreground
+Unsaved changes indicator
+Download button background
+Download button foreground
+Dragger background
+Dragger foreground
+Dropdown background
+Dropdown border
+Dropdown tab background
+Dropdown tab background for selected tabs
+Dropzone background
+External link background
+External link background hover
+External link background visited
+External link foreground
+External link foreground hover
+External link foreground visited
+General foreground
+Menu bar background
+Menu bar foreground
+Message box background
+Message box border
+Message box foreground
+Modal backdrop
+Modal background
+Modal border
+Modal footer background
+Modal footer border
+Modal header border
+General muted foreground
+Notification background
+Notification border
+Page background
+Preformatted code background
+Preformatted code border
+General primary
+`<select>` element background
+`<select>` element text
+Sidebar button foreground
+Sidebar controls foreground
+Sidebar controls foreground hover
+Sidebar foreground
+Sidebar foreground shadow
+Sidebar muted foreground
+Sidebar muted foreground hover
+Sidebar tab background
+Sidebar tab background for selected tabs
+Sidebar tab border
+Sidebar tab border for selected tabs
+Sidebar tab divider
+Sidebar tab foreground
+Sidebar tab foreground for selected tabs
+Sidebar tiddler link foreground
+Sidebar tiddler link foreground hover
+Site title foreground
+Static alert foreground
+Tab background
+Tab background for selected tabs
+Tab border
+Tab border for selected tabs
+Tab divider
+Tab foreground
+Tab foreground for selected tabs
+Table border
+Table footer background
+Table header background
+Tag background
+Tag foreground
+Tiddler background
+Tiddler border
+Tiddler controls foreground
+Tiddler controls foreground hover
+Tiddler controls foreground for selected controls
+Tiddler editor background
+Tiddler editor border
+Tiddler editor border image
+Tiddler editor background for even fields
+Tiddler editor background for odd fields
+Tiddler info panel background
+Tiddler info panel border
+Tiddler info panel tab background
+Tiddler link background
+Tiddler link foreground
+Tiddler subtitle foreground
+Tiddler title foreground
+Toolbar 'cancel' button foreground
+Toolbar 'close' button foreground
+Toolbar 'delete' button foreground
+Toolbar 'done' button foreground
+Toolbar 'edit' button foreground
+Toolbar 'info' button foreground
+Toolbar 'new tiddler' button foreground
+Toolbar 'options' button foreground
+Toolbar 'save' button foreground
+Untagged pill background
+Very muted foreground
+Drop here (or use the 'Escape' key to cancel)
+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
+Type the text for this tiddler
+output
+field list
+Show field list
+remove field
+Remove field
+add
+Add the new field to the tiddler
+System fields
+User fields
+field name
+Add a new field:
+field value
+This is a modified shadow tiddler. You can revert to the default version in the plugin <<pluginLink>> by deleting this tiddler
+This is a shadow tiddler. Any changes you make will override the default version from the plugin <<pluginLink>>
+add
+add tag
+tag name
+tag list
+Show tag list
+Warning: avoid using any of the characters <<bad-chars>> in tiddler titles
+Target tiddler already exists
+The following references to this tiddler will not be automatically updated:
+Update ''<$text text=<<fromTitle>>/>'' to ''<$text text=<<toTitle>>/>'' in the //tags// and //list// fields of other tiddlers
+delete content type
+Delete content type
+content type list
+Show content type list
+content type
+Type:
+Cancel
+Do you wish to clear the password? This will remove the encryption applied when saving this wiki
+Password
+Passwords do not match
+Set a new password for this TiddlyWiki
+Repeat password
+Set password
+Username
+Error
+File changed on server
+Filter error
+Syntax error in filter expression
+Filter Error: Unknown operand for the 'is' filter operator
+Error loading plugin library
+`<h2>''Network Error''</h2>It looks like the connection to the server has been lost. This may indicate a problem with your network connection. Please attempt to restore network connectivity before continuing.<br><br>''Any unsaved changes will be automatically synchronised when connectivity is restored''.`
+Recursive transclusion error in transclude widget
+Error retrieving skinny tiddler list
+Error saving to TWEdit
+Error while saving
+XMLHttpRequest error code
+CSV file
+JSON file
+Static HTML
+".tid" file
+All tags except system tags
+All tiddlers except system tiddlers
+Draft tiddlers
+Missing tiddlers
+Orphan tiddlers
+Overridden shadow tiddlers
+Recently modified tiddlers, including system tiddlers
+Recently modified tiddlers
+Tiddlers modified since the wiki was loaded
+Shadow tiddlers
+Tiddlers in the story river, excluding <$text text="$:/AdvancedSearch"/>
+System tags
+System tiddlers
+Non wiki-text tiddlers
+Build the specified build targets for the current wiki. If no build targets are specified then all available targets will be built.
+
+```
+--build <target> [<target> ...]
+```
+
+Build targets are defined in the `tiddlywiki.info` file of a wiki folder.
+
+
+Clear the password for subsequent crypto operations
+
+```
+--clearpassword
+```
+
+\define commandTitle()
+$:/language/Help/$(command)$
+\end
+```
+usage: tiddlywiki [<wikifolder>] [--<command> [<args>...]...]
+```
+
+Available commands:
+
+<ul>
+<$list filter="[commands[]sort[title]]" variable="command">
+<li><$link to=<<commandTitle>>><$macrocall $name="command" $type="text/plain" $output="text/plain"/></$link>: <$transclude tiddler=<<commandTitle>> field="description"/></li>
+</$list>
+</ul>
+
+To get detailed help on a command:
+
+```
+tiddlywiki --help <command>
+```
+
+<<.from-version "5.1.20">> Deletes a group of tiddlers identified by a filter.
+
+```
+--deletetiddlers <filter>
+```
+
+Lists the names and descriptions of the available editions. You can create a new wiki of a specified edition with the `--init` command.
+
+```
+--editions
+```
+
+Fetch one or more files over HTTP/HTTPS, and import the tiddlers matching a filter, optionally transforming the incoming titles.
+
+```
+--fetch file <url> <import-filter> <transform-filter>
+--fetch files <url-filter> <import-filter> <transform-filter>
+--fetch raw-file <url> <transform-filter>
+--fetch raw-files <url-filter> <transform-filter>
+```
+
+The "file" and "files" 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 "raw-file" and "raw-files" variants fetch the specified files and then store the raw file data in tiddlers, without applying the import logic.
+
+With the "file" and "raw-file" variants only a single file is fetched and the first parameter is the URL of the file to read.
+
+With the "files" and "raw-files" 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 "remote-server" that have a field "url" the filter `[tag[remote-server]get[url]]` will retrieve all the available URLs.
+
+For the "file" and "files" variants, the `<import-filter>` parameter specifies a filter determining which tiddlers are imported. It defaults to `[all[tiddlers]]` if not provided.
+
+For all variants, the `<transform-filter>` parameter specifies an optional filter that transforms the titles of the imported tiddlers. For example, `[addprefix[$:/myimports/]]` would add the prefix `$:/myimports/` to each title.
+
+Preceding the `--fetch` command with `--verbose` will output progress information during the import.
+
+Note that TiddlyWiki will not fetch an older version of an already loaded plugin.
+
+The following example retrieves all the non-system tiddlers from https://tiddlywiki.com and saves them to a JSON file:
+
+```
+tiddlywiki --verbose --fetch file "https://tiddlywiki.com/" "[!is[system]]" "" --rendertiddler "$:/core/templates/exporters/JsonFile" output.json text/plain "" exportFilter "[!is[system]]"
+```
+
+The following example retrieves the "favicon" file from tiddlywiki.com and saves it in a file called "output.ico". Note that the intermediate tiddler "Icon Tiddler" is quoted in the "--fetch" command because it is being used as a transformation filter to replace the default title, while there are no quotes for the "--savetiddler" command because it is being used directly as a title.
+
+```
+tiddlywiki --verbose --fetch raw-file "https://tiddlywiki.com/favicon.ico" "[[Icon Tiddler]]" --savetiddler "Icon Tiddler" output.ico
+```
+
+
+Displays help text for a command:
+
+```
+--help [<command>]
+```
+
+If the command name is omitted then a list of available commands is displayed.
+
+Import tiddlers from TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` or other local files. The deserializer must be explicitly specified, unlike the `load` command which infers the deserializer from the file extension.
+
+```
+--import <filepath> <deserializer> [<title>] [<encoding>]
+```
+
+The deserializers in the core include:
+
+* application/javascript
+* application/json
+* application/x-tiddler
+* application/x-tiddler-html-div
+* application/x-tiddlers
+* text/html
+* text/plain
+
+The title of the imported tiddler defaults to the filename.
+
+The encoding defaults to "utf8", but can be "base64" for importing binary files.
+
+Note that TiddlyWiki will not import an older version of an already loaded plugin.
+
+Initialise an empty [[WikiFolder|WikiFolders]] with a copy of the specified edition.
+
+```
+--init <edition> [<edition> ...]
+```
+
+For example:
+
+```
+tiddlywiki ./MyWikiFolder --init empty
+```
+
+Note:
+
+* The wiki folder directory will be created if necessary
+* The "edition" defaults to ''empty''
+* The init command will fail if the wiki folder is not empty
+* The init command removes any `includeWikis` definitions in the edition's `tiddlywiki.info` file
+* When multiple editions are specified, editions initialised later will overwrite any files shared with earlier editions (so, the final `tiddlywiki.info` file will be copied from the last edition)
+* `--editions` returns a list of available editions
+
+Serves a wiki over HTTP.
+
+The listen command uses NamedCommandParameters:
+
+```
+--listen [<name>=<value>]...
+```
+
+All parameters are optional with safe defaults, and can be specified in any order. The recognised parameters are:
+
+* ''host'' - optional hostname to serve from (defaults to "127.0.0.1" aka "localhost")
+* ''path-prefix'' - optional prefix for paths
+* ''port'' - port number on which to listen; non-numeric values are interpreted as a system environment variable from which the port number is extracted (defaults to "8080")
+* ''credentials'' - pathname of credentials CSV file (relative to wiki folder)
+* ''anon-username'' - the username for signing edits for anonymous users
+* ''username'' - optional username for basic authentication
+* ''password'' - optional password for basic authentication
+* ''authenticated-user-header'' - optional name of header to be used for trusted authentication
+* ''readers'' - comma separated list of principals allowed to read from this wiki
+* ''writers'' - comma separated list of principals allowed to write to this wiki
+* ''csrf-disable'' - set to "yes" to disable CSRF checks (defaults to "no")
+* ''root-tiddler'' - the tiddler to serve at the root (defaults to "$:/core/save/all")
+* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to "text/plain")
+* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to "text/html")
+* ''tls-cert'' - pathname of TLS certificate file (relative to wiki folder)
+* ''tls-key'' - pathname of TLS key file (relative to wiki folder)
+* ''debug-level'' - optional debug level; set to "debug" to view request details (defaults to "none")
+* ''gzip'' - set to "yes" to enable gzip compression for some http endpoints (defaults to "no")
+
+For information on opening up your instance to the entire local network, and possible security concerns, see the WebServer tiddler at TiddlyWiki.com.
+
+
+Load tiddlers from TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` or other local files. The processing applied to incoming files is determined by the file extension. Use the alternative `import` command if you need to specify the deserializer and encoding explicitly.
+
+```
+--load <filepath> [noerror]
+--load <dirpath> [noerror]
+```
+
+By default, the load command raises an error if no tiddlers are found. The error can be suppressed by providing the optional "noerror" parameter.
+
+To load tiddlers from an encrypted TiddlyWiki file you should first specify the password with the PasswordCommand. For example:
+
+```
+tiddlywiki ./MyWiki --password pa55w0rd --load my_encrypted_wiki.html
+```
+
+Note that TiddlyWiki will not load an older version of an already loaded plugin.
+
+Constructs the `$:/UpgradeLibrary` tiddler for the upgrade process.
+
+The upgrade library is formatted as an ordinary plugin tiddler with the plugin type `library`. It contains a copy of each of the plugins, themes and language packs available within the TiddlyWiki5 repository.
+
+This command is intended for internal use; it is only relevant to users constructing a custom upgrade procedure.
+
+```
+--makelibrary <title>
+```
+
+The title argument defaults to `$:/UpgradeLibrary`.
+
+No such help item
+Sets the base output directory for subsequent commands. The default output directory is the `output` subdirectory of the edition directory.
+
+```
+--output <pathname>
+```
+
+If the specified pathname is relative then it is resolved relative to the current working directory. For example `--output .` sets the output directory to the current working directory.
+
+
+Set a password for subsequent crypto operations
+
+```
+--password <password>
+```
+
+''Note'': This should not be used for serving TiddlyWiki with password protection. Instead, see the password option under the [[ServerCommand]].
+
+Render individual tiddlers identified by a filter and save the results to the specified files.
+
+Optionally, the title of a template tiddler can be specified. In this case, instead of directly rendering each tiddler, the template tiddler is rendered with the "currentTiddler" variable set to the title of the tiddler that is being rendered.
+
+A name and value for an additional variable may optionally also be specified.
+
+```
+--render <tiddler-filter> [<filename-filter>] [<render-type>] [<template>] [<name>] [<value>]
+```
+
+* ''tiddler-filter'': A filter identifying the tiddler(s) to be rendered
+* ''filename-filter'': Optional filter transforming tiddler titles into pathnames. If omitted, defaults to `[is[tiddler]addsuffix[.html]]`, which uses the unchanged tiddler title as the filename
+* ''render-type'': Optional render type: `text/html` (the default) returns the full HTML text and `text/plain` just returns the text content (ie it ignores HTML tags and other unprintable material)
+* ''template'': Optional template through which each tiddler is rendered
+* ''name'': Name of optional variable
+* ''value'': Value of optional variable
+
+By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.
+
+Notes:
+
+* The output directory is not cleared of any existing files
+* Any missing directories in the path to the filename are automatically created.
+* When referring to a tiddler with spaces in its title, take care to use both the quotes required by your shell and also TiddlyWiki's double square brackets : `--render "[[Motovun Jack.jpg]]"`
+* The filename filter is evaluated with the selected items being set to the title of the tiddler currently being rendered, allowing the title to be used as the basis for computing the filename. For example `[encodeuricomponent[]addprefix[static/]]` applies URI encoding to each title, and then adds the prefix `static/`
+* The `--render` command is a more flexible replacement for both the `--rendertiddler` and `--rendertiddlers` commands, which are deprecated
+
+Examples:
+
+* `--render "[!is[system]]" "[encodeuricomponent[]addprefix[tiddlers/]addsuffix[.html]]"` -- renders all non-system tiddlers as files in the subdirectory "tiddlers" with URL-encoded titles and the extension HTML
+
+
+(Note: The `--rendertiddler` command is deprecated in favour of the new, more flexible `--render` command)
+
+Render an individual tiddler as a specified ContentType, defaulting to `text/html` and save it to the specified filename.
+
+Optionally the title of a template tiddler can be specified, in which case the template tiddler is rendered with the "currentTiddler" variable set to the tiddler that is being rendered (the first parameter value).
+
+A name and value for an additional variable may optionally also be specified.
+
+```
+--rendertiddler <title> <filename> [<type>] [<template>] [<name>] [<value>]
+```
+
+By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.
+
+Any missing directories in the path to the filename are automatically created.
+
+For example, the following command saves all tiddlers matching the filter `[tag[done]]` to a JSON file titled `output.json` by employing the core template `$:/core/templates/exporters/JsonFile`.
+
+```
+--rendertiddler "$:/core/templates/exporters/JsonFile" output.json text/plain "" exportFilter "[tag[done]]"
+```
+
+(Note: The `--rendertiddlers` command is deprecated in favour of the new, more flexible `--render` command)
+
+Render a set of tiddlers matching a filter to separate files of a specified ContentType (defaults to `text/html`) and extension (defaults to `.html`).
+
+```
+--rendertiddlers <filter> <template> <pathname> [<type>] [<extension>] ["noclean"]
+```
+
+For example:
+
+```
+--rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html ./static text/plain
+```
+
+By default, the pathname is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.
+
+Any files in the target directory are deleted unless the ''noclean'' flag is specified. The target directory is recursively created if it is missing.
+
+Saves individual tiddlers identified by a filter in their raw text or binary format to the specified files.
+
+```
+--save <tiddler-filter> <filename-filter>
+```
+
+* ''tiddler-filter'': A filter identifying the tiddler(s) to be saved
+* ''filename-filter'': Optional filter transforming tiddler titles into pathnames. If omitted, defaults to `[is[tiddler]]`, which uses the unchanged tiddler title as the filename
+
+By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.
+
+Notes:
+
+* The output directory is not cleared of any existing files
+* Any missing directories in the path to the filename are automatically created.
+* When saving a tiddler with spaces in its title, take care to use both the quotes required by your shell and also TiddlyWiki's double square brackets : `--save "[[Motovun Jack.jpg]]"`
+* The filename filter is evaluated with the selected items being set to the title of the tiddler currently being saved, allowing the title to be used as the basis for computing the filename. For example `[encodeuricomponent[]addprefix[static/]]` applies URI encoding to each title, and then adds the prefix `static/`
+* The `--save` command is a more flexible replacement for both the `--savetiddler` and `--savetiddlers` commands, which are deprecated
+
+Examples:
+
+* `--save "[!is[system]is[image]]" "[encodeuricomponent[]addprefix[tiddlers/]]"` -- saves all non-system image tiddlers as files in the subdirectory "tiddlers" with URL-encoded titles
+
+(Note: The `--savetiddler` command is deprecated in favour of the new, more flexible `--save` command)
+
+Saves an individual tiddler in its raw text or binary format to the specified filename.
+
+```
+--savetiddler <title> <filename>
+```
+
+By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.
+
+Any missing directories in the path to the filename are automatically created.
+
+(Note: The `--savetiddlers` command is deprecated in favour of the new, more flexible `--save` command)
+
+Saves a group of tiddlers in their raw text or binary format to the specified directory.
+
+```
+--savetiddlers <filter> <pathname> ["noclean"]
+```
+
+By default, the pathname is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.
+
+The output directory is cleared of existing files before saving the specified files. The deletion can be disabled by specifying the ''noclean'' flag.
+
+Any missing directories in the pathname are automatically created.
+
+<<.from-version "5.1.20">> Saves the current wiki as a wiki folder, including tiddlers, plugins and configuration:
+
+```
+--savewikifolder <wikifolderpath> [<filter>]
+```
+
+* The target wiki folder must be empty or non-existent
+* The filter specifies which tiddlers should be included. It is optional, defaulting to `[all[tiddlers]]`
+* Plugins from the official plugin library are replaced with references to those plugins in the `tiddlywiki.info` file
+* Custom plugins are unpacked into their own folder
+
+A common usage is to convert a TiddlyWiki HTML file into a wiki folder:
+
+```
+tiddlywiki --load ./mywiki.html --savewikifolder ./mywikifolder
+```
+
+Legacy command to serve a wiki over HTTP.
+
+```
+--server <port> <root-tiddler> <root-render-type> <root-serve-type> <username> <password> <host> <path-prefix> <debug-level>
+```
+
+The parameters are:
+
+* ''port'' - port number on which to listen; non-numeric values are interpreted as a system environment variable from which the port number is extracted (defaults to "8080")
+* ''root-tiddler'' - the tiddler to serve at the root (defaults to "$:/core/save/all")
+* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to "text/plain")
+* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to "text/html")
+* ''username'' - the default username for signing edits
+* ''password'' - optional password for basic authentication
+* ''host'' - optional hostname to serve from (defaults to "127.0.0.1" aka "localhost")
+* ''path-prefix'' - optional prefix for paths
+* ''debug-level'' - optional debug level; set to "debug" to view request details (defaults to "none")
+
+If the password parameter is specified then the browser will prompt the user for the username and password. Note that the password is transmitted in plain text so this implementation should only be used on a trusted network or over HTTPS.
+
+For example:
+
+```
+--server 8080 $:/core/save/all text/plain text/html MyUserName passw0rd
+```
+
+The username and password can be specified as empty strings if you need to set the hostname or pathprefix and don't want to require a password.
+
+
+```
+--server 8080 $:/core/save/all text/plain text/html "" "" 192.168.0.245
+```
+
+Using an address like this exposes your system to the local network. For information on opening up your instance to the entire local network, and possible security concerns, see the WebServer tiddler at TiddlyWiki.com.
+
+To run multiple TiddlyWiki servers at the same time you'll need to put each one on a different port. It can be useful to use an environment variable to pass the port number to the Node.js process. This example references an environment variable called "MY_PORT_NUMBER":
+
+```
+--server MY_PORT_NUMBER $:/core/save/all text/plain text/html MyUserName passw0rd
+```
+
+//Note that this command is experimental and may change or be replaced before being finalised//
+
+Sets the specified field of a group of tiddlers to the result of wikifying a template tiddler with the `currentTiddler` variable set to the tiddler.
+
+```
+--setfield <filter> <fieldname> <templatetitle> <rendertype>
+```
+
+The parameters are:
+
+* ''filter'' - filter identifying the tiddlers to be affected
+* ''fieldname'' - the field to modify (defaults to "text")
+* ''templatetitle'' - the tiddler to wikify into the specified field. If blank or missing then the specified field is deleted
+* ''rendertype'' - the text type to render (defaults to "text/plain"; "text/html" can be used to include HTML tags)
+
+Extract the payload tiddlers from a plugin, creating them as ordinary tiddlers:
+
+```
+--unpackplugin <title>
+```
+
+Triggers verbose output, useful for debugging
+
+```
+--verbose
+```
+
+Displays the version number of TiddlyWiki.
+
+```
+--version
+```
+
+The following tiddlers were imported:
+Cancel
+These tiddlers are ready to import:
+Import
+Preview:
+Diff
+Diff (Fields)
+Fields
+Text
+Text (Raw)
+Select
+Status
+Title
+Blocked incompatible or obsolete plugin
+Blocked plugin (due to incoming <<incoming>> being older than existing <<existing>>)
+Upgraded plugin from <<incoming>> to <<upgraded>>
+Blocked temporary state tiddler
+You are about to import a tiddler that will overwrite a core module tiddler. This is not recommended as it may make the system unstable
+Blocked system tiddler
+Core module tiddler
+Migrated theme tweak from <$text text=<<from>>/>
+Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser
+Internal JavaScript Error
+Illegal characters in field name "<$text text=<<fieldName>>/>". Fields can only contain lowercase letters, digits and the characters underscore (`_`), hyphen (`-`) and period (`.`)
+<p>Trying to load external content from ''<$text text={{!!_canonical_uri}}/>''</p><p>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</p>
+Login to TiddlySpace
+(none)
+Filter by tag:
+Reverse order
+Search
+Search:
+tags
+tiddlers
+Show:
+Sort by:
+Colour
+Fields
+Icon
+(none)
+Raw text
+Tags
+Tools
+Wikified text
+Missing tiddler "<$text text=<<currentTiddler>>/>" -- click {{||$:/core/ui/Buttons/edit}} to create
+Your browser only supports manual saving.
+
+To save your modified wiki, right click on the download link below and select "Download file" or "Save file", and then choose the folder and filename.
+
+//You can marginally speed things up by clicking the link with the control key (Windows) or the options/alt key (Mac OS X). You will not be prompted for the folder or filename, but your browser is likely to give it an unrecognisable name -- you may need to rename the file to include an `.html` extension before you can do anything useful with it.//
+
+On smartphones that do not allow files to be downloaded you can instead bookmark the link, and then sync your bookmarks to a desktop computer from where the wiki can be saved normally.
+
+Your changes to this wiki need to be saved as a ~TiddlyWiki HTML file.
+
+!!! Desktop browsers
+
+# Select ''Save As'' from the ''File'' menu
+# Choose a filename and location
+#* Some browsers also require you to explicitly specify the file saving format as ''Webpage, HTML only'' or similar
+# Close this tab
+
+!!! Smartphone browsers
+
+# Create a bookmark to this page
+#* If you've got iCloud or Google Sync set up then the bookmark will automatically sync to your desktop where you can open it and save it as above
+# Close this tab
+
+//If you open the bookmark again in Mobile Safari you will see this message again. If you want to go ahead and use the file, just click the ''close'' button below//
+
+No
+Failed to copy to clipboard!
+Copied to clipboard!
+Saved wiki
+Starting to save wiki
+Official ~TiddlyWiki Plugin Library
+The official ~TiddlyWiki plugin library at tiddlywiki.com. Plugins, themes and language packs are maintained by the core team.
+Please save {{$:/core/ui/Buttons/save-wiki}} and reload {{$:/core/ui/Buttons/refresh}} to allow changes to ~JavaScript plugins to take effect
+DDth MMM YYYY
+<<period>> days from now
+<<period>> hours from now
+<<period>> minutes from now
+<<period>> months from now
+1 second from now
+<<period>> seconds from now
+<<period>> years from now
+<<period>> days ago
+<<period>> hours ago
+<<period>> minutes ago
+<<period>> months ago
+1 second ago
+<<period>> seconds ago
+<<period>> years ago
+List
+Filter
+Search via a [[filter expression|https://tiddlywiki.com/static/Filters.html]]
+//<small><<resultCount>> matches</small>//
+//<small><<resultCount>> matches</small>//
+All matches:
+Title matches:
+Search
+Search text too short
+Shadows
+Search for shadow tiddlers
+//<small><<resultCount>> matches</small>//
+Standard
+Search for standard tiddlers
+//<small><<resultCount>> matches</small>//
+System
+Search for system tiddlers
+//<small><<resultCount>> matches</small>//
+All
+Contents
+Drafts
+Explorer
+Missing
+More
+Open
+Orphans
+Recent
+Shadows
+System
+Tags
+untagged
+Tools
+Types
+<<list-links "[tag[task]sort[title]]">>
+
+\define macroName(param1:"default value",param2)
+Text of the macro
+\end
+
+|! |!Alpha |!Beta |!Gamma |!Delta |
+|!One | | | | |
+|!Two | | | | |
+|!Three | | | | |
+
+<div class="tc-table-of-contents">
+
+<<toc-selective-expandable 'TableOfContents'>>
+
+</div>
+This is a system tiddler
+Include system tiddlers
+Colour
+Count
+Icon
+None
+Info
+Tag
+Sizes
+Font size for tiddler body
+Line height for tiddler body
+Font size
+Line height
+Sidebar breakpoint
+the minimum page width at which the story<br>river and sidebar will appear side by side
+Sidebar width
+the width of the sidebar in fluid-fixed layout
+Story left position
+how far the left margin of the story river<br>(tiddler area) is from the left of the page
+Story right
+how far the left margin of the sidebar <br>is from the left of the page
+Story top position
+how far the top margin of the story river<br>is from the top of the page
+Story width
+the overall width of the story river
+Tiddler width
+within the story river
+Options
+Wrap long lines in code blocks
+Sidebar layout
+Fixed story, fluid sidebar
+Fluid story, fixed sidebar
+Sticky titles
+Causes tiddler titles to "stick" to the top of the browser window
+Settings
+Page background image
+Page background image attachment
+Fixed to window
+Scroll with tiddlers
+Page background image size
+Auto
+Contain
+Cover
+Code font family
+Editor font family
+Font family
+Theme Tweaks
+You can tweak certain aspects of the ''Vanilla'' theme.
+DDth MMM YYYY at hh12:0mmam
+Advanced
+none
+Plugin Details
+This plugin contains the following shadow tiddlers:
+Shadow Status
+The tiddler <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> is not a shadow tiddler
+It is overridden by an ordinary tiddler
+The tiddler <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> is a shadow tiddler
+It is defined in the plugin <$link to=<<pluginTiddler>>><$text text=<<pluginTiddler>>/></$link>
+Fields
+List
+This tiddler does not have a list
+Listed
+This tiddler is not listed by any others
+References
+No tiddlers link to this one
+Tagging
+No tiddlers are tagged with this one
+Tools
+You have unsaved changes in TiddlyWiki
+Yes
+Stub pseudo-plugin for the default language
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="1200" height="600">
+<clipPath id="t">
+ <path d="M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"/>
+</clipPath>
+<path d="M0,0 v30 h60 v-30 z" fill="#00247d"/>
+<path d="M0,0 L60,30 M60,0 L0,30" stroke="#fff" stroke-width="6"/>
+<path d="M0,0 L60,30 M60,0 L0,30" clip-path="url(#t)" stroke="#cf142b" stroke-width="4"/>
+<path d="M30,0 v30 M0,15 h60" stroke="#fff" stroke-width="10"/>
+<path d="M30,0 v30 M0,15 h60" stroke="#cf142b" stroke-width="6"/>
+</svg>
+
+SJCL is open. You can use, modify and redistribute it under a BSD
+license or under the GNU GPL, version 2.0.
+
+---------------------------------------------------------------------
+
+http://opensource.org/licenses/BSD-2-Clause
+
+Copyright (c) 2009-2015, Emily Stark, Mike Hamburg and Dan Boneh at
+Stanford University. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+1. Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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.
+
+---------------------------------------------------------------------
+
+http://opensource.org/licenses/GPL-2.0
+
+The Stanford Javascript Crypto Library (hosted here on GitHub) is a
+project by the Stanford Computer Security Lab to build a secure,
+powerful, fast, small, easy-to-use, cross-browser library for
+cryptography in Javascript.
+
+Copyright (c) 2009-2015, Emily Stark, Mike Hamburg and Dan Boneh at
+Stanford University.
+
+This program is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 2 of the License, or (at your
+option) any later version.
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+Public License for more details.
+
+You should have received a copy of the GNU General Public License along
+with this program; if not, write to the Free Software Foundation, Inc.,
+59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+\define lingo-base() $:/language/Manager/
+
+\define list-item-content-item()
+<div class="tc-manager-list-item-content-item">
+ <$vars state-title="""$:/state/popup/manager/item/$(listItem)$""">
+ <$reveal state=<<state-title>> type="match" text="show" default="show" tag="div">
+ <$button set=<<state-title>> setTo="hide" class="tc-btn-invisible tc-manager-list-item-content-item-heading">
+ {{$:/core/images/down-arrow}} <$transclude tiddler=<<listItem>> field="caption"/>
+ </$button>
+ </$reveal>
+ <$reveal state=<<state-title>> type="nomatch" text="show" default="show" tag="div">
+ <$button set=<<state-title>> setTo="show" class="tc-btn-invisible tc-manager-list-item-content-item-heading">
+ {{$:/core/images/right-arrow}} <$transclude tiddler=<<listItem>> field="caption"/>
+ </$button>
+ </$reveal>
+ <$reveal state=<<state-title>> type="match" text="show" default="show" tag="div" class="tc-manager-list-item-content-item-body">
+ <$transclude tiddler=<<listItem>>/>
+ </$reveal>
+ </$vars>
+</div>
+\end
+
+<div class="tc-manager-wrapper">
+ <div class="tc-manager-controls">
+ <div class="tc-manager-control">
+ <<lingo Controls/Show/Prompt>> <$select tiddler="$:/config/Manager/Show" default="tiddlers">
+ <option value="tiddlers"><<lingo Controls/Show/Option/Tiddlers>></option>
+ <option value="tags"><<lingo Controls/Show/Option/Tags>></option>
+ </$select>
+ </div>
+ <div class="tc-manager-control">
+ <<lingo Controls/Search/Prompt>> <$edit-text tiddler="$:/config/Manager/Filter" tag="input" default="" placeholder={{$:/language/Manager/Controls/Search/Placeholder}}/>
+ </div>
+ <div class="tc-manager-control">
+ <<lingo Controls/FilterByTag/Prompt>> <$select tiddler="$:/config/Manager/Tag" default="">
+ <option value=""><<lingo Controls/FilterByTag/None>></option>
+ <$list filter="[!is{$:/config/Manager/System}tags[]!is[system]sort[title]]" variable="tag">
+ <option value=<<tag>>><$text text=<<tag>>/></option>
+ </$list>
+ </$select>
+ </div>
+ <div class="tc-manager-control">
+ <<lingo Controls/Sort/Prompt>> <$select tiddler="$:/config/Manager/Sort" default="title">
+ <optgroup label="Common">
+ <$list filter="title modified modifier created creator created" variable="field">
+ <option value=<<field>>><$text text=<<field>>/></option>
+ </$list>
+ </optgroup>
+ <optgroup label="All">
+ <$list filter="[all{$:/config/Manager/Show}!is{$:/config/Manager/System}fields[]sort[title]] -title -modified -modifier -created -creator -created" variable="field">
+ <option value=<<field>>><$text text=<<field>>/></option>
+ </$list>
+ </optgroup>
+ </$select>
+ <$checkbox tiddler="$:/config/Manager/Order" field="text" checked="reverse" unchecked="forward" default="forward">
+ <<lingo Controls/Order/Prompt>>
+ </$checkbox>
+ </div>
+ <div class="tc-manager-control">
+ <$checkbox tiddler="$:/config/Manager/System" field="text" checked="" unchecked="system" default="system">
+ {{$:/language/SystemTiddlers/Include/Prompt}}
+ </$checkbox>
+ </div>
+ </div>
+ <div class="tc-manager-list">
+ <$list filter="[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}]">
+ <$vars transclusion=<<currentTiddler>>>
+ <div style="tc-manager-list-item">
+ <$button popup=<<qualify "$:/state/manager/popup">> class="tc-btn-invisible tc-manager-list-item-heading" selectedClass="tc-manager-list-item-heading-selected">
+ <$text text=<<currentTiddler>>/>
+ </$button>
+ <$reveal state=<<qualify "$:/state/manager/popup">> type="nomatch" text="" default="" tag="div" class="tc-manager-list-item-content tc-popup-handle">
+ <div class="tc-manager-list-item-content-tiddler">
+ <$list filter="[all[shadows+tiddlers]tag[$:/tags/Manager/ItemMain]!has[draft.of]]" variable="listItem">
+ <<list-item-content-item>>
+ </$list>
+ </div>
+ <div class="tc-manager-list-item-content-sidebar">
+ <$list filter="[all[shadows+tiddlers]tag[$:/tags/Manager/ItemSidebar]!has[draft.of]]" variable="listItem">
+ <<list-item-content-item>>
+ </$list>
+ </div>
+ </$reveal>
+ </div>
+ </$vars>
+ </$list>
+ </div>
+</div>
+
+<table>
+<tbody>
+<$list filter="[all[current]fields[]sort[title]] -text" template="$:/core/ui/TiddlerFieldTemplate" variable="listItem"/>
+</tbody>
+</table>
+
+<pre><code><$view/></code></pre>
+
+<$transclude mode="block"/>
+
+\define swatch-styles()
+height: 1em;
+background-color: $(colour)$
+\end
+
+<$vars colour={{!!color}}>
+<p style=<<swatch-styles>>/>
+</$vars>
+<p>
+<$edit-text field="color" tag="input" type="color"/> / <$edit-text field="color" tag="input" type="text" size="9"/>
+</p>
+
+<p>
+<div class="tc-manager-icon-editor">
+<$button popup=<<qualify "$:/state/popup/image-picker">> class="tc-btn-invisible">
+<$transclude tiddler={{!!icon}}>
+{{$:/language/Manager/Item/Icon/None}}
+</$transclude>
+</$button>
+<div class="tc-block-dropdown-wrapper" style="position: static;">
+<$reveal state=<<qualify "$:/state/popup/image-picker">> type="nomatch" text="" default="" tag="div" class="tc-popup">
+<div class="tc-block-dropdown tc-popup-keep" style="width: 80%; left: 10%; right: 10%; padding: 0.5em;">
+<$macrocall $name="image-picker-include-tagged-images" actions="""
+<$action-setfield $field="icon" $value=<<imageTitle>>/>
+<$action-deletetiddler $tiddler=<<qualify "$:/state/popup/image-picker">>/>
+"""/>
+</div>
+</$reveal>
+</div>
+</div>
+</p>
+
+\define tag-checkbox-actions()
+<$action-listops
+ $tiddler="$:/config/Manager/RecentTags"
+ $subfilter="[<tag>] [list[$:/config/Manager/RecentTags]] +[limit[12]]"
+/>
+\end
+
+\define tag-picker-actions()
+<<tag-checkbox-actions>>
+<$action-listops
+ $tiddler=<<currentTiddler>>
+ $field="tags"
+ $subfilter="[<tag>] [all[current]tags[]]"
+/>
+\end
+
+<p>
+<$list filter="[all[current]tags[]] [list[$:/config/Manager/RecentTags]] +[sort[title]] " variable="tag">
+<div>
+<$checkbox tiddler=<<currentTiddler>> tag=<<tag>> actions=<<tag-checkbox-actions>>>
+<$macrocall $name="tag-pill" tag=<<tag>>/>
+</$checkbox>
+</div>
+</$list>
+</p>
+<p>
+<$macrocall $name="tag-picker" actions=<<tag-picker-actions>>/>
+</p>
+
+<p>
+<$button to=<<currentTiddler>>>{{$:/core/images/link}} open</$button>
+</p>
+<p>
+<$button message="tm-edit-tiddler" param=<<currentTiddler>>>{{$:/core/images/edit-button}} edit</$button>
+</p>
+
+$:/palettes/Vanilla
+\define lingo-base() $:/language/ControlPanel/Palette/Editor/
+\define describePaletteColour(colour)
+<$transclude tiddler="$:/language/Docs/PaletteColours/$colour$"><$text text="$colour$"/></$transclude>
+\end
+\define edit-colour-placeholder()
+ edit $(colourName)$
+\end
+\define colour-tooltip(showhide) $showhide$ editor for $(newColourName)$
+\define resolve-colour(macrocall)
+\import $:/core/macros/utils
+\whitespace trim
+<$wikify name="name" text="""$macrocall$""">
+<<name>>
+</$wikify>
+\end
+\define delete-colour-index-actions() <$action-setfield $index=<<colourName>>/>
+\define palette-manager-colour-row-segment()
+\whitespace trim
+<$edit-text index=<<colourName>> tag="input" placeholder=<<edit-colour-placeholder>> default=""/>
+<br>
+<$edit-text index=<<colourName>> type="color" tag="input" class="tc-palette-manager-colour-input"/>
+<$list filter="[<currentTiddler>getindex<colourName>removeprefix[<<]removesuffix[>>]] [<currentTiddler>getindex<colourName>removeprefix[<$]removesuffix[/>]]" variable="ignore">
+<$set name="state" value={{{ [[$:/state/palettemanager/]addsuffix<currentTiddler>addsuffix[/]addsuffix<colourName>] }}}>
+<$wikify name="newColourName" text="""<$macrocall $name="resolve-colour" macrocall={{{ [<currentTiddler>getindex<colourName>] }}}/>""">
+<$reveal state=<<state>> type="nomatch" text="show">
+<$button tooltip=<<colour-tooltip show>> aria-label=<<colour-tooltip show>> class="tc-btn-invisible" set=<<state>> setTo="show">{{$:/core/images/down-arrow}} <$text text=<<newColourName>>/></$button><br>
+</$reveal>
+<$reveal state=<<state>> type="match" text="show">
+<$button tooltip=<<colour-tooltip hide>> aria-label=<<colour-tooltip show>> class="tc-btn-invisible" actions="""<$action-deletetiddler $tiddler=<<state>>/>""">{{$:/core/images/up-arrow}} <$text text=<<newColourName>>/></$button><br>
+</$reveal>
+<$reveal state=<<state>> type="match" text="show">
+<$set name="colourName" value=<<newColourName>>>
+<br>
+<<palette-manager-colour-row-segment>>
+<br><br>
+</$set>
+</$reveal>
+</$wikify>
+</$set>
+</$list>
+\end
+\define palette-manager-colour-row()
+\whitespace trim
+<tr>
+<td>
+<span style="float:right;">
+<$button tooltip=<<lingo Delete/Hint>> aria-label=<<lingo Delete/Hint>> class="tc-btn-invisible" actions=<<delete-colour-index-actions>>>
+{{$:/core/images/delete-button}}</$button>
+</span>
+''<$macrocall $name="describePaletteColour" colour=<<colourName>>/>''<br/>
+<$macrocall $name="colourName" $output="text/plain"/>
+</td>
+<td>
+<<palette-manager-colour-row-segment>>
+</td>
+</tr>
+\end
+\define palette-manager-table()
+\whitespace trim
+<table>
+<tbody>
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]indexes[]]" variable="colourName">
+<$list filter="[<currentTiddler>indexes[]removeprefix<colourName>suffix[]]" variable="ignore" emptyMessage="""
+<$list filter="[{$:/state/palettemanager/showexternal}removeprefix[yes]suffix[]]" variable="ignore">
+<<palette-manager-colour-row>>
+</$list>
+""">
+<<palette-manager-colour-row>>
+</$list>
+</$list>
+</tbody>
+</table>
+\end
+<$set name="currentTiddler" value={{$:/palette}}>
+
+<<lingo Prompt>> <$link to={{$:/palette}}><$macrocall $name="currentTiddler" $output="text/plain"/></$link>
+
+<$list filter="[all[current]is[shadow]is[tiddler]]" variable="listItem">
+<<lingo Prompt/Modified>>
+<$button message="tm-delete-tiddler" param={{$:/palette}}><<lingo Reset/Caption>></$button>
+</$list>
+
+<$list filter="[all[current]is[shadow]!is[tiddler]]" variable="listItem">
+<<lingo Clone/Prompt>>
+</$list>
+
+<$button message="tm-new-tiddler" param={{$:/palette}}><<lingo Clone/Caption>></$button>
+
+<$checkbox tiddler="$:/state/palettemanager/showexternal" field="text" checked="yes" unchecked="no"> <<lingo Names/External/Show>></$checkbox>
+
+<<palette-manager-table>>
+
+alert-background: #ffe476
+alert-border: #b99e2f
+alert-highlight: #881122
+alert-muted-foreground: #b99e2f
+background: #ffffff
+blockquote-bar: <<colour muted-foreground>>
+button-background:
+button-foreground:
+button-border:
+code-background: #f7f7f9
+code-border: #e1e1e8
+code-foreground: #dd1144
+dirty-indicator: #ff0000
+download-background: #66cccc
+download-foreground: <<colour background>>
+dragger-background: <<colour foreground>>
+dragger-foreground: <<colour background>>
+dropdown-background: <<colour background>>
+dropdown-border: <<colour muted-foreground>>
+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: <<colour foreground>>
+modal-background: <<colour background>>
+modal-border: #999999
+modal-footer-background: #f5f5f5
+modal-footer-border: #dddddd
+modal-header-border: #eeeeee
+muted-foreground: #999999
+notification-background: #ffffdd
+notification-border: #999999
+page-background: #ffffff
+pre-background: #f5f5f5
+pre-border: #cccccc
+primary: #7897f3
+select-tag-background:
+select-tag-foreground:
+sidebar-button-foreground: <<colour foreground>>
+sidebar-controls-foreground-hover: #000000
+sidebar-controls-foreground: #ccc
+sidebar-foreground-shadow: rgba(255,255,255, 0.8)
+sidebar-foreground: #acacac
+sidebar-muted-foreground-hover: #444444
+sidebar-muted-foreground: #c0c0c0
+sidebar-tab-background-selected: #ffffff
+sidebar-tab-background: <<colour tab-background>>
+sidebar-tab-border-selected: <<colour tab-border-selected>>
+sidebar-tab-border: <<colour tab-border>>
+sidebar-tab-divider: <<colour tab-divider>>
+sidebar-tab-foreground-selected:
+sidebar-tab-foreground: <<colour tab-foreground>>
+sidebar-tiddler-link-foreground-hover: #444444
+sidebar-tiddler-link-foreground: #7897f3
+site-title-foreground: <<colour tiddler-title-foreground>>
+static-alert-foreground: #aaaaaa
+tab-background-selected: #ffffff
+tab-background: #eeeeee
+tab-border-selected: #cccccc
+tab-border: #cccccc
+tab-divider: #d8d8d8
+tab-foreground-selected: <<colour tab-foreground>>
+tab-foreground: #666666
+table-border: #dddddd
+table-footer-background: #a8a8a8
+table-header-background: #f0f0f0
+tag-background: #ffeedd
+tag-foreground: #000
+tiddler-background: <<colour background>>
+tiddler-border: #eee
+tiddler-controls-foreground-hover: #888888
+tiddler-controls-foreground-selected: #444444
+tiddler-controls-foreground: #cccccc
+tiddler-editor-background: #f8f8f8
+tiddler-editor-border-image: #ffffff
+tiddler-editor-border: #cccccc
+tiddler-editor-fields-even: #e0e8e0
+tiddler-editor-fields-odd: #f0f4f0
+tiddler-info-background: #f8f8f8
+tiddler-info-border: #dddddd
+tiddler-info-tab-background: #f8f8f8
+tiddler-link-background: <<colour background>>
+tiddler-link-foreground: <<colour primary>>
+tiddler-subtitle-foreground: #c0c0c0
+tiddler-title-foreground: #ff9900
+toolbar-new-button:
+toolbar-options-button:
+toolbar-save-button:
+toolbar-info-button:
+toolbar-edit-button:
+toolbar-close-button:
+toolbar-delete-button:
+toolbar-cancel-button:
+toolbar-done-button:
+untagged-background: #999999
+very-muted-foreground: #888888
+
+alert-background: #ffe476
+alert-border: #b99e2f
+alert-highlight: #881122
+alert-muted-foreground: #b99e2f
+background: #fff
+blockquote-bar: <<colour muted-foreground>>
+button-background:
+button-foreground:
+button-border:
+code-background: #f7f7f9
+code-border: #e1e1e8
+code-foreground: #dd1144
+dirty-indicator: #ff0000
+download-background: #34c734
+download-foreground: <<colour foreground>>
+dragger-background: <<colour foreground>>
+dragger-foreground: <<colour background>>
+dropdown-background: <<colour background>>
+dropdown-border: <<colour muted-foreground>>
+dropdown-tab-background-selected: #fff
+dropdown-tab-background: #ececec
+dropzone-background: rgba(0,200,0,0.7)
+external-link-background-hover: inherit
+external-link-background-visited: inherit
+external-link-background: inherit
+external-link-foreground-hover: inherit
+external-link-foreground-visited: #0000aa
+external-link-foreground: #0000ee
+foreground: #333353
+message-background: #ecf2ff
+message-border: #cfd6e6
+message-foreground: #547599
+modal-backdrop: <<colour foreground>>
+modal-background: <<colour background>>
+modal-border: #999999
+modal-footer-background: #f5f5f5
+modal-footer-border: #dddddd
+modal-header-border: #eeeeee
+muted-foreground: #999999
+notification-background: #ffffdd
+notification-border: #999999
+page-background: #ddddff
+pre-background: #f5f5f5
+pre-border: #cccccc
+primary: #5778d8
+select-tag-background:
+select-tag-foreground:
+sidebar-button-foreground: <<colour foreground>>
+sidebar-controls-foreground-hover: #000000
+sidebar-controls-foreground: #ffffff
+sidebar-foreground-shadow: rgba(255,255,255, 0.8)
+sidebar-foreground: #acacac
+sidebar-muted-foreground-hover: #444444
+sidebar-muted-foreground: #c0c0c0
+sidebar-tab-background-selected: <<colour page-background>>
+sidebar-tab-background: <<colour tab-background>>
+sidebar-tab-border-selected: <<colour tab-border-selected>>
+sidebar-tab-border: <<colour tab-border>>
+sidebar-tab-divider: <<colour tab-divider>>
+sidebar-tab-foreground-selected:
+sidebar-tab-foreground: <<colour tab-foreground>>
+sidebar-tiddler-link-foreground-hover: #444444
+sidebar-tiddler-link-foreground: #5959c0
+site-title-foreground: <<colour tiddler-title-foreground>>
+static-alert-foreground: #aaaaaa
+tab-background-selected: <<colour background>>
+tab-background: #ccccdd
+tab-border-selected: #ccccdd
+tab-border: #cccccc
+tab-divider: #d8d8d8
+tab-foreground-selected: <<colour tab-foreground>>
+tab-foreground: #666666
+table-border: #dddddd
+table-footer-background: #a8a8a8
+table-header-background: #f0f0f0
+tag-background: #eeeeff
+tag-foreground: #000
+tiddler-background: <<colour background>>
+tiddler-border: <<colour background>>
+tiddler-controls-foreground-hover: #666666
+tiddler-controls-foreground-selected: #444444
+tiddler-controls-foreground: #cccccc
+tiddler-editor-background: #f8f8f8
+tiddler-editor-border-image: #ffffff
+tiddler-editor-border: #cccccc
+tiddler-editor-fields-even: #e0e8e0
+tiddler-editor-fields-odd: #f0f4f0
+tiddler-info-background: #ffffff
+tiddler-info-border: #dddddd
+tiddler-info-tab-background: #ffffff
+tiddler-link-background: <<colour background>>
+tiddler-link-foreground: <<colour primary>>
+tiddler-subtitle-foreground: #c0c0c0
+tiddler-title-foreground: #5959c0
+toolbar-new-button: #5eb95e
+toolbar-options-button: rgb(128, 88, 165)
+toolbar-save-button: #0e90d2
+toolbar-info-button: #0e90d2
+toolbar-edit-button: rgb(243, 123, 29)
+toolbar-close-button: #dd514c
+toolbar-delete-button: #dd514c
+toolbar-cancel-button: rgb(243, 123, 29)
+toolbar-done-button: #5eb95e
+untagged-background: #999999
+very-muted-foreground: #888888
+
+alert-background: #f00
+alert-border: <<colour background>>
+alert-highlight: <<colour foreground>>
+alert-muted-foreground: #800
+background: #000
+blockquote-bar: <<colour muted-foreground>>
+button-background: <<colour background>>
+button-foreground: <<colour foreground>>
+button-border: <<colour foreground>>
+code-background: <<colour background>>
+code-border: <<colour foreground>>
+code-foreground: <<colour foreground>>
+dirty-indicator: #f00
+download-background: #080
+download-foreground: <<colour background>>
+dragger-background: <<colour foreground>>
+dragger-foreground: <<colour background>>
+dropdown-background: <<colour background>>
+dropdown-border: <<colour muted-foreground>>
+dropdown-tab-background-selected: <<colour foreground>>
+dropdown-tab-background: <<colour foreground>>
+dropzone-background: rgba(0,200,0,0.7)
+external-link-background-hover: inherit
+external-link-background-visited: inherit
+external-link-background: inherit
+external-link-foreground-hover: inherit
+external-link-foreground-visited: #00a
+external-link-foreground: #00e
+foreground: #fff
+message-background: <<colour foreground>>
+message-border: <<colour background>>
+message-foreground: <<colour background>>
+modal-backdrop: <<colour foreground>>
+modal-background: <<colour background>>
+modal-border: <<colour foreground>>
+modal-footer-background: <<colour background>>
+modal-footer-border: <<colour foreground>>
+modal-header-border: <<colour foreground>>
+muted-foreground: <<colour foreground>>
+notification-background: <<colour background>>
+notification-border: <<colour foreground>>
+page-background: <<colour background>>
+pre-background: <<colour background>>
+pre-border: <<colour foreground>>
+primary: #00f
+select-tag-background:
+select-tag-foreground:
+sidebar-button-foreground: <<colour foreground>>
+sidebar-controls-foreground-hover: <<colour background>>
+sidebar-controls-foreground: <<colour foreground>>
+sidebar-foreground-shadow: rgba(0,0,0, 0)
+sidebar-foreground: <<colour foreground>>
+sidebar-muted-foreground-hover: #444444
+sidebar-muted-foreground: <<colour foreground>>
+sidebar-tab-background-selected: <<colour background>>
+sidebar-tab-background: <<colour tab-background>>
+sidebar-tab-border-selected: <<colour tab-border-selected>>
+sidebar-tab-border: <<colour tab-border>>
+sidebar-tab-divider: <<colour tab-divider>>
+sidebar-tab-foreground-selected: <<colour foreground>>
+sidebar-tab-foreground: <<colour tab-foreground>>
+sidebar-tiddler-link-foreground-hover: <<colour foreground>>
+sidebar-tiddler-link-foreground: <<colour primary>>
+site-title-foreground: <<colour tiddler-title-foreground>>
+static-alert-foreground: #aaaaaa
+tab-background-selected: <<colour background>>
+tab-background: <<colour foreground>>
+tab-border-selected: <<colour foreground>>
+tab-border: <<colour foreground>>
+tab-divider: <<colour foreground>>
+tab-foreground-selected: <<colour foreground>>
+tab-foreground: <<colour background>>
+table-border: #dddddd
+table-footer-background: #a8a8a8
+table-header-background: #f0f0f0
+tag-background: #fff
+tag-foreground: #000
+tiddler-background: <<colour background>>
+tiddler-border: <<colour foreground>>
+tiddler-controls-foreground-hover: #ddd
+tiddler-controls-foreground-selected: #fdd
+tiddler-controls-foreground: <<colour foreground>>
+tiddler-editor-background: <<colour background>>
+tiddler-editor-border-image: <<colour foreground>>
+tiddler-editor-border: #cccccc
+tiddler-editor-fields-even: <<colour background>>
+tiddler-editor-fields-odd: <<colour background>>
+tiddler-info-background: <<colour background>>
+tiddler-info-border: <<colour foreground>>
+tiddler-info-tab-background: <<colour background>>
+tiddler-link-background: <<colour background>>
+tiddler-link-foreground: <<colour primary>>
+tiddler-subtitle-foreground: <<colour foreground>>
+tiddler-title-foreground: <<colour foreground>>
+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: <<colour foreground>>
+very-muted-foreground: #888888
+
+alert-background: #f00
+alert-border: <<colour background>>
+alert-highlight: <<colour foreground>>
+alert-muted-foreground: #800
+background: #fff
+blockquote-bar: <<colour muted-foreground>>
+button-background: <<colour background>>
+button-foreground: <<colour foreground>>
+button-border: <<colour foreground>>
+code-background: <<colour background>>
+code-border: <<colour foreground>>
+code-foreground: <<colour foreground>>
+dirty-indicator: #f00
+download-background: #080
+download-foreground: <<colour background>>
+dragger-background: <<colour foreground>>
+dragger-foreground: <<colour background>>
+dropdown-background: <<colour background>>
+dropdown-border: <<colour muted-foreground>>
+dropdown-tab-background-selected: <<colour foreground>>
+dropdown-tab-background: <<colour foreground>>
+dropzone-background: rgba(0,200,0,0.7)
+external-link-background-hover: inherit
+external-link-background-visited: inherit
+external-link-background: inherit
+external-link-foreground-hover: inherit
+external-link-foreground-visited: #00a
+external-link-foreground: #00e
+foreground: #000
+message-background: <<colour foreground>>
+message-border: <<colour background>>
+message-foreground: <<colour background>>
+modal-backdrop: <<colour foreground>>
+modal-background: <<colour background>>
+modal-border: <<colour foreground>>
+modal-footer-background: <<colour background>>
+modal-footer-border: <<colour foreground>>
+modal-header-border: <<colour foreground>>
+muted-foreground: <<colour foreground>>
+notification-background: <<colour background>>
+notification-border: <<colour foreground>>
+page-background: <<colour background>>
+pre-background: <<colour background>>
+pre-border: <<colour foreground>>
+primary: #00f
+select-tag-background:
+select-tag-foreground:
+sidebar-button-foreground: <<colour foreground>>
+sidebar-controls-foreground-hover: <<colour background>>
+sidebar-controls-foreground: <<colour foreground>>
+sidebar-foreground-shadow: rgba(0,0,0, 0)
+sidebar-foreground: <<colour foreground>>
+sidebar-muted-foreground-hover: #444444
+sidebar-muted-foreground: <<colour foreground>>
+sidebar-tab-background-selected: <<colour background>>
+sidebar-tab-background: <<colour tab-background>>
+sidebar-tab-border-selected: <<colour tab-border-selected>>
+sidebar-tab-border: <<colour tab-border>>
+sidebar-tab-divider: <<colour tab-divider>>
+sidebar-tab-foreground-selected: <<colour foreground>>
+sidebar-tab-foreground: <<colour tab-foreground>>
+sidebar-tiddler-link-foreground-hover: <<colour foreground>>
+sidebar-tiddler-link-foreground: <<colour primary>>
+site-title-foreground: <<colour tiddler-title-foreground>>
+static-alert-foreground: #aaaaaa
+tab-background-selected: <<colour background>>
+tab-background: <<colour foreground>>
+tab-border-selected: <<colour foreground>>
+tab-border: <<colour foreground>>
+tab-divider: <<colour foreground>>
+tab-foreground-selected: <<colour foreground>>
+tab-foreground: <<colour background>>
+table-border: #dddddd
+table-footer-background: #a8a8a8
+table-header-background: #f0f0f0
+tag-background: #000
+tag-foreground: #fff
+tiddler-background: <<colour background>>
+tiddler-border: <<colour foreground>>
+tiddler-controls-foreground-hover: #ddd
+tiddler-controls-foreground-selected: #fdd
+tiddler-controls-foreground: <<colour foreground>>
+tiddler-editor-background: <<colour background>>
+tiddler-editor-border-image: <<colour foreground>>
+tiddler-editor-border: #cccccc
+tiddler-editor-fields-even: <<colour background>>
+tiddler-editor-fields-odd: <<colour background>>
+tiddler-info-background: <<colour background>>
+tiddler-info-border: <<colour foreground>>
+tiddler-info-tab-background: <<colour background>>
+tiddler-link-background: <<colour background>>
+tiddler-link-foreground: <<colour primary>>
+tiddler-subtitle-foreground: <<colour foreground>>
+tiddler-title-foreground: <<colour foreground>>
+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: <<colour foreground>>
+very-muted-foreground: #888888
+
+alert-background: #ffe476
+alert-border: #b99e2f
+alert-highlight: #881122
+alert-muted-foreground: #b99e2f
+background: #ffffff
+blockquote-bar: <<colour muted-foreground>>
+button-background:
+button-foreground:
+button-border:
+code-background: #f7f7f9
+code-border: #e1e1e8
+code-foreground: #dd1144
+dirty-indicator: #ff0000
+download-background: #34c734
+download-foreground: <<colour background>>
+dragger-background: <<colour foreground>>
+dragger-foreground: <<colour background>>
+dropdown-background: <<colour background>>
+dropdown-border: <<colour muted-foreground>>
+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: <<colour foreground>>
+modal-background: <<colour background>>
+modal-border: #999999
+modal-footer-background: #f5f5f5
+modal-footer-border: #dddddd
+modal-header-border: #eeeeee
+muted-foreground: #ddd
+notification-background: #ffffdd
+notification-border: #999999
+page-background: #336438
+pre-background: #f5f5f5
+pre-border: #cccccc
+primary: #5778d8
+select-tag-background:
+select-tag-foreground:
+sidebar-button-foreground: <<colour foreground>>
+sidebar-controls-foreground-hover: #ccf
+sidebar-controls-foreground: #fff
+sidebar-foreground-shadow: rgba(0,0,0, 0.5)
+sidebar-foreground: #fff
+sidebar-muted-foreground-hover: #444444
+sidebar-muted-foreground: #eee
+sidebar-tab-background-selected: rgba(255,255,255, 0.8)
+sidebar-tab-background: rgba(255,255,255, 0.4)
+sidebar-tab-border-selected: <<colour tab-border-selected>>
+sidebar-tab-border: <<colour tab-border>>
+sidebar-tab-divider: rgba(255,255,255, 0.2)
+sidebar-tab-foreground-selected:
+sidebar-tab-foreground: <<colour tab-foreground>>
+sidebar-tiddler-link-foreground-hover: #aaf
+sidebar-tiddler-link-foreground: #ddf
+site-title-foreground: #fff
+static-alert-foreground: #aaaaaa
+tab-background-selected: #ffffff
+tab-background: #d8d8d8
+tab-border-selected: #d8d8d8
+tab-border: #cccccc
+tab-divider: #d8d8d8
+tab-foreground-selected: <<colour tab-foreground>>
+tab-foreground: #666666
+table-border: #dddddd
+table-footer-background: #a8a8a8
+table-header-background: #f0f0f0
+tag-background: #ec6
+tag-foreground: #ffffff
+tiddler-background: <<colour background>>
+tiddler-border: <<colour background>>
+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: <<colour background>>
+tiddler-link-foreground: <<colour primary>>
+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
+
+alert-background: #cc241d
+alert-border: #cc241d
+alert-highlight: #d79921
+alert-muted-foreground: #504945
+background: #3c3836
+blockquote-bar: <<colour muted-foreground>>
+button-background: #504945
+button-foreground: #fbf1c7
+button-border: transparent
+code-background: #504945
+code-border: #504945
+code-foreground: #fb4934
+diff-delete-background: #fb4934
+diff-delete-foreground: <<colour foreground>>
+diff-equal-background:
+diff-equal-foreground: <<colour foreground>>
+diff-insert-background: #b8bb26
+diff-insert-foreground: <<colour foreground>>
+diff-invisible-background:
+diff-invisible-foreground: <<colour muted-foreground>>
+dirty-indicator: #fb4934
+download-background: #b8bb26
+download-foreground: <<colour background>>
+dragger-background: <<colour foreground>>
+dragger-foreground: <<colour background>>
+dropdown-background: #665c54
+dropdown-border: <<colour background>>
+dropdown-tab-background-selected: #ebdbb2
+dropdown-tab-background: #665c54
+dropzone-background: #98971a
+external-link-background-hover: inherit
+external-link-background-visited: inherit
+external-link-background: inherit
+external-link-foreground-hover: inherit
+external-link-foreground-visited: #d3869b
+external-link-foreground: #8ec07c
+foreground: #fbf1c7
+menubar-background: #504945
+menubar-foreground: <<colour foreground>>
+message-background: #83a598
+message-border: #83a598
+message-foreground: #3c3836
+modal-backdrop: <<colour foreground>>
+modal-background: <<colour background>>
+modal-border: #504945
+modal-footer-background: #3c3836
+modal-footer-border: #3c3836
+modal-header-border: #3c3836
+muted-foreground: #d5c4a1
+notification-background: <<colour primary>>
+notification-border: <<colour primary>>
+page-background: #282828
+pre-background: #504945
+pre-border: #504945
+primary: #d79921
+select-tag-background: #665c54
+select-tag-foreground: <<colour foreground>>
+sidebar-button-foreground: <<colour foreground>>
+sidebar-controls-foreground-hover: #7c6f64
+sidebar-controls-foreground: #504945
+sidebar-foreground-shadow: transparent
+sidebar-foreground: #fbf1c7
+sidebar-muted-foreground-hover: #7c6f64
+sidebar-muted-foreground: #504945
+sidebar-tab-background-selected: #bdae93
+sidebar-tab-background: #3c3836
+sidebar-tab-border-selected: <<colour tab-border-selected>>
+sidebar-tab-border: #bdae93
+sidebar-tab-divider: <<colour page-background>>
+sidebar-tab-foreground-selected: #282828
+sidebar-tab-foreground: <<colour tab-foreground>>
+sidebar-tiddler-link-foreground-hover: #458588
+sidebar-tiddler-link-foreground: #98971a
+site-title-foreground: <<colour tiddler-title-foreground>>
+static-alert-foreground: #B48EAD
+tab-background-selected: #ebdbb2
+tab-background: #665c54
+tab-border-selected: #665c54
+tab-border: #665c54
+tab-divider: #bdae93
+tab-foreground-selected: #282828
+tab-foreground: #ebdbb2
+table-border: #7c6f64
+table-footer-background: #665c54
+table-header-background: #504945
+tag-background: #d3869b
+tag-foreground: #282828
+tiddler-background: <<colour background>>
+tiddler-border: <<colour background>>
+tiddler-controls-foreground-hover: #7c6f64
+tiddler-controls-foreground-selected: #7c6f64
+tiddler-controls-foreground: #665c54
+tiddler-editor-background: #282828
+tiddler-editor-border-image: #282828
+tiddler-editor-border: #282828
+tiddler-editor-fields-even: #504945
+tiddler-editor-fields-odd: #7c6f64
+tiddler-info-background: #32302f
+tiddler-info-border: #ebdbb2
+tiddler-info-tab-background: #ebdbb2
+tiddler-link-background: <<colour background>>
+tiddler-link-foreground: <<colour primary>>
+tiddler-subtitle-foreground: #7c6f64
+tiddler-title-foreground: #a89984
+toolbar-new-button:
+toolbar-options-button:
+toolbar-save-button:
+toolbar-info-button:
+toolbar-edit-button:
+toolbar-close-button:
+toolbar-delete-button:
+toolbar-cancel-button:
+toolbar-done-button:
+untagged-background: #504945
+very-muted-foreground: #bdae93
+wikilist-background: <<colour page-background>>
+wikilist-button-background: <<colour button-background>>
+wikilist-button-foreground: <<colour button-foreground>>
+wikilist-item: <<colour background>>
+wikilist-toolbar-background: <<colour background>>
+wikilist-toolbar-foreground: <<colour foreground>>
+wikilist-title: <<colour foreground>>
+wikilist-title-svg: <<colour wikilist-title>>
+wikilist-url: <<colour muted-foreground>>
+wikilist-button-open-hover: <<colour primary>>
+wikilist-button-open: <<colour dropzone-background>>
+wikilist-button-remove: <<colour dirty-indicator>>
+wikilist-button-remove-hover: <<colour alert-background>>
+wikilist-droplink-dragover: <<colour dropzone-background>>
+wikilist-button-reveal: <<colour sidebar-tiddler-link-foreground-hover>>
+wikilist-button-reveal-hover: <<colour message-background>>
+alert-background: #ffe476
+alert-border: #b99e2f
+alert-highlight: #881122
+alert-muted-foreground: #b99e2f
+background: #ffffff
+blockquote-bar: <<colour muted-foreground>>
+button-background:
+button-foreground:
+button-border:
+code-background: #f7f7f9
+code-border: #e1e1e8
+code-foreground: #dd1144
+dirty-indicator: #ff0000
+download-background: #34c734
+download-foreground: <<colour background>>
+dragger-background: <<colour foreground>>
+dragger-foreground: <<colour background>>
+dropdown-background: <<colour background>>
+dropdown-border: <<colour muted-foreground>>
+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: <<colour foreground>>
+modal-background: <<colour background>>
+modal-border: #999999
+modal-footer-background: #f5f5f5
+modal-footer-border: #dddddd
+modal-header-border: #eeeeee
+muted-foreground: #bbb
+notification-background: #ffffdd
+notification-border: #999999
+page-background: #6f6f70
+pre-background: #f5f5f5
+pre-border: #cccccc
+primary: #29a6ee
+select-tag-background:
+select-tag-foreground:
+sidebar-button-foreground: <<colour foreground>>
+sidebar-controls-foreground-hover: #000000
+sidebar-controls-foreground: #c2c1c2
+sidebar-foreground-shadow: rgba(255,255,255,0)
+sidebar-foreground: #d3d2d4
+sidebar-muted-foreground-hover: #444444
+sidebar-muted-foreground: #c0c0c0
+sidebar-tab-background-selected: #6f6f70
+sidebar-tab-background: #666667
+sidebar-tab-border-selected: #999
+sidebar-tab-border: #515151
+sidebar-tab-divider: #999
+sidebar-tab-foreground-selected:
+sidebar-tab-foreground: #999
+sidebar-tiddler-link-foreground-hover: #444444
+sidebar-tiddler-link-foreground: #d1d0d2
+site-title-foreground: <<colour tiddler-title-foreground>>
+static-alert-foreground: #aaaaaa
+tab-background-selected: #ffffff
+tab-background: #d8d8d8
+tab-border-selected: #d8d8d8
+tab-border: #cccccc
+tab-divider: #d8d8d8
+tab-foreground-selected: <<colour tab-foreground>>
+tab-foreground: #666666
+table-border: #dddddd
+table-footer-background: #a8a8a8
+table-header-background: #f0f0f0
+tag-background: #d5ad34
+tag-foreground: #ffffff
+tiddler-background: <<colour background>>
+tiddler-border: <<colour background>>
+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: <<colour background>>
+tiddler-link-foreground: <<colour primary>>
+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
+
+alert-background: #D08770
+alert-border: #D08770
+alert-highlight: #B48EAD
+alert-muted-foreground: #4C566A
+background: #3b4252
+blockquote-bar: <<colour muted-foreground>>
+button-background: #4C566A
+button-foreground: #D8DEE9
+button-border: transparent
+code-background: #2E3440
+code-border: #2E3440
+code-foreground: #BF616A
+diff-delete-background: #BF616A
+diff-delete-foreground: <<colour foreground>>
+diff-equal-background:
+diff-equal-foreground: <<colour foreground>>
+diff-insert-background: #A3BE8C
+diff-insert-foreground: <<colour foreground>>
+diff-invisible-background:
+diff-invisible-foreground: <<colour muted-foreground>>
+dirty-indicator: #BF616A
+download-background: #A3BE8C
+download-foreground: <<colour background>>
+dragger-background: <<colour foreground>>
+dragger-foreground: <<colour background>>
+dropdown-background: <<colour background>>
+dropdown-border: <<colour background>>
+dropdown-tab-background-selected: #ECEFF4
+dropdown-tab-background: #4C566A
+dropzone-background: #A3BE8C
+external-link-background-hover: inherit
+external-link-background-visited: inherit
+external-link-background: inherit
+external-link-foreground-hover: inherit
+external-link-foreground-visited: #5E81AC
+external-link-foreground: #8FBCBB
+foreground: #d8dee9
+menubar-background: #2E3440
+menubar-foreground: #d8dee9
+message-background: #2E3440
+message-border: #2E3440
+message-foreground: #547599
+modal-backdrop: <<colour foreground>>
+modal-background: <<colour background>>
+modal-border: #3b4252
+modal-footer-background: #3b4252
+modal-footer-border: #3b4252
+modal-header-border: #3b4252
+muted-foreground: #4C566A
+notification-background: <<colour primary>>
+notification-border: #EBCB8B
+page-background: #2e3440
+pre-background: #2E3440
+pre-border: #2E3440
+primary: #5E81AC
+select-tag-background: #3b4252
+select-tag-foreground: <<colour foreground>>
+sidebar-button-foreground: <<colour foreground>>
+sidebar-controls-foreground-hover: #D8DEE9
+sidebar-controls-foreground: #4C566A
+sidebar-foreground-shadow: transparent
+sidebar-foreground: #D8DEE9
+sidebar-muted-foreground-hover: #4C566A
+sidebar-muted-foreground: #4C566A
+sidebar-tab-background-selected: #ECEFF4
+sidebar-tab-background: #4C566A
+sidebar-tab-border-selected: <<colour tab-border-selected>>
+sidebar-tab-border: #4C566A
+sidebar-tab-divider: <<colour page-background>>
+sidebar-tab-foreground-selected: #4C566A
+sidebar-tab-foreground: <<colour tab-foreground>>
+sidebar-tiddler-link-foreground-hover: #A3BE8C
+sidebar-tiddler-link-foreground: #81A1C1
+site-title-foreground: <<colour tiddler-title-foreground>>
+static-alert-foreground: #B48EAD
+tab-background-selected: #ECEFF4
+tab-background: #4C566A
+tab-border-selected: #4C566A
+tab-border: #4C566A
+tab-divider: #4C566A
+tab-foreground-selected: #4C566A
+tab-foreground: #D8DEE9
+table-border: #4C566A
+table-footer-background: #2e3440
+table-header-background: #2e3440
+tag-background: #A3BE8C
+tag-foreground: #4C566A
+tiddler-background: <<colour background>>
+tiddler-border: <<colour background>>
+tiddler-controls-foreground-hover:
+tiddler-controls-foreground-selected: #EBCB8B
+tiddler-controls-foreground: #4C566A
+tiddler-editor-background: #2e3440
+tiddler-editor-border-image: #2e3440
+tiddler-editor-border: #2e3440
+tiddler-editor-fields-even: #2e3440
+tiddler-editor-fields-odd: #2e3440
+tiddler-info-background: #2e3440
+tiddler-info-border: #2e3440
+tiddler-info-tab-background: #2e3440
+tiddler-link-background: <<colour background>>
+tiddler-link-foreground: <<colour primary>>
+tiddler-subtitle-foreground: #4C566A
+tiddler-title-foreground: #81A1C1
+toolbar-new-button:
+toolbar-options-button:
+toolbar-save-button:
+toolbar-info-button:
+toolbar-edit-button:
+toolbar-close-button:
+toolbar-delete-button:
+toolbar-cancel-button:
+toolbar-done-button:
+untagged-background: #2d3038
+very-muted-foreground: #2d3038
+
+alert-background: #ffe476
+alert-border: #b99e2f
+alert-highlight: #881122
+alert-muted-foreground: #b99e2f
+background: #ffffff
+blockquote-bar: <<colour muted-foreground>>
+button-background:
+button-foreground:
+button-border:
+code-background: #f7f7f9
+code-border: #e1e1e8
+code-foreground: #dd1144
+dirty-indicator: #ff0000
+download-background: #34c734
+download-foreground: <<colour background>>
+dragger-background: <<colour foreground>>
+dragger-foreground: <<colour background>>
+dropdown-background: <<colour background>>
+dropdown-border: <<colour muted-foreground>>
+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: <<colour foreground>>
+modal-background: <<colour background>>
+modal-border: #999999
+modal-footer-background: #f5f5f5
+modal-footer-border: #dddddd
+modal-header-border: #eeeeee
+muted-foreground: #999999
+notification-background: #ffffdd
+notification-border: #999999
+page-background: #000
+pre-background: #f5f5f5
+pre-border: #cccccc
+primary: #cc0000
+select-tag-background:
+select-tag-foreground:
+sidebar-button-foreground: <<colour foreground>>
+sidebar-controls-foreground-hover: #000000
+sidebar-controls-foreground: #ffffff
+sidebar-foreground-shadow: rgba(255,255,255, 0.0)
+sidebar-foreground: #acacac
+sidebar-muted-foreground-hover: #444444
+sidebar-muted-foreground: #c0c0c0
+sidebar-tab-background-selected: #000
+sidebar-tab-background: <<colour tab-background>>
+sidebar-tab-border-selected: <<colour tab-border-selected>>
+sidebar-tab-border: <<colour tab-border>>
+sidebar-tab-divider: <<colour tab-divider>>
+sidebar-tab-foreground-selected:
+sidebar-tab-foreground: <<colour tab-foreground>>
+sidebar-tiddler-link-foreground-hover: #ffbb99
+sidebar-tiddler-link-foreground: #cc0000
+site-title-foreground: <<colour tiddler-title-foreground>>
+static-alert-foreground: #aaaaaa
+tab-background-selected: #ffffff
+tab-background: #d8d8d8
+tab-border-selected: #d8d8d8
+tab-border: #cccccc
+tab-divider: #d8d8d8
+tab-foreground-selected: <<colour tab-foreground>>
+tab-foreground: #666666
+table-border: #dddddd
+table-footer-background: #a8a8a8
+table-header-background: #f0f0f0
+tag-background: #ffbb99
+tag-foreground: #000
+tiddler-background: <<colour background>>
+tiddler-border: <<colour background>>
+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: <<colour background>>
+tiddler-link-foreground: <<colour primary>>
+tiddler-subtitle-foreground: #c0c0c0
+tiddler-title-foreground: #cc0000
+toolbar-new-button:
+toolbar-options-button:
+toolbar-save-button:
+toolbar-info-button:
+toolbar-edit-button:
+toolbar-close-button:
+toolbar-delete-button:
+toolbar-cancel-button:
+toolbar-done-button:
+untagged-background: #999999
+very-muted-foreground: #888888
+
+: Background Tones
+
+base03: #002b36
+base02: #073642
+
+: Content Tones
+
+base01: #586e75
+base00: #657b83
+base0: #839496
+base1: #93a1a1
+
+: Background Tones
+
+base2: #eee8d5
+base3: #fdf6e3
+
+: Accent Colors
+
+yellow: #b58900
+orange: #cb4b16
+red: #dc322f
+magenta: #d33682
+violet: #6c71c4
+blue: #268bd2
+cyan: #2aa198
+green: #859900
+
+: Additional Tones (RA)
+
+base10: #c0c4bb
+violet-muted: #7c81b0
+blue-muted: #4e7baa
+
+yellow-hot: #ffcc44
+orange-hot: #eb6d20
+red-hot: #ff2222
+blue-hot: #2298ee
+green-hot: #98ee22
+
+: Palette
+
+: Do not use colour macro for background and foreground
+background: #fdf6e3
+ download-foreground: <<colour background>>
+ dragger-foreground: <<colour background>>
+ dropdown-background: <<colour background>>
+ modal-background: <<colour background>>
+ sidebar-foreground-shadow: <<colour background>>
+ tiddler-background: <<colour background>>
+ tiddler-border: <<colour background>>
+ tiddler-link-background: <<colour background>>
+ tab-background-selected: <<colour background>>
+ dropdown-tab-background-selected: <<colour tab-background-selected>>
+foreground: #657b83
+ dragger-background: <<colour foreground>>
+ tab-foreground: <<colour foreground>>
+ tab-foreground-selected: <<colour tab-foreground>>
+ sidebar-tab-foreground-selected: <<colour tab-foreground-selected>>
+ sidebar-tab-foreground: <<colour tab-foreground>>
+ sidebar-button-foreground: <<colour foreground>>
+ sidebar-controls-foreground: <<colour foreground>>
+ sidebar-foreground: <<colour foreground>>
+: base03
+: base02
+: base01
+ alert-muted-foreground: <<colour base01>>
+: base00
+ code-foreground: <<colour base00>>
+ message-foreground: <<colour base00>>
+ tag-foreground: <<colour base00>>
+: base0
+ sidebar-tiddler-link-foreground: <<colour base0>>
+: base1
+ muted-foreground: <<colour base1>>
+ blockquote-bar: <<colour muted-foreground>>
+ dropdown-border: <<colour muted-foreground>>
+ sidebar-muted-foreground: <<colour muted-foreground>>
+ tiddler-title-foreground: <<colour muted-foreground>>
+ site-title-foreground: <<colour tiddler-title-foreground>>
+: base2
+ modal-footer-background: <<colour base2>>
+ page-background: <<colour base2>>
+ modal-backdrop: <<colour page-background>>
+ notification-background: <<colour page-background>>
+ code-background: <<colour page-background>>
+ code-border: <<colour code-background>>
+ pre-background: <<colour page-background>>
+ pre-border: <<colour pre-background>>
+ sidebar-tab-background-selected: <<colour page-background>>
+ table-header-background: <<colour base2>>
+ tag-background: <<colour base2>>
+ tiddler-editor-background: <<colour base2>>
+ tiddler-info-background: <<colour base2>>
+ tiddler-info-tab-background: <<colour base2>>
+ tab-background: <<colour base2>>
+ dropdown-tab-background: <<colour tab-background>>
+: base3
+ alert-background: <<colour base3>>
+ message-background: <<colour base3>>
+: yellow
+: orange
+: red
+: magenta
+ alert-highlight: <<colour magenta>>
+: violet
+ external-link-foreground: <<colour violet>>
+: blue
+: cyan
+: green
+: base10
+ tiddler-controls-foreground: <<colour base10>>
+: violet-muted
+ external-link-foreground-visited: <<colour violet-muted>>
+: blue-muted
+ primary: <<colour blue-muted>>
+ download-background: <<colour primary>>
+ tiddler-link-foreground: <<colour primary>>
+
+alert-border: #b99e2f
+dirty-indicator: #ff0000
+dropzone-background: rgba(0,200,0,0.7)
+external-link-background-hover: inherit
+external-link-background-visited: inherit
+external-link-background: inherit
+external-link-foreground-hover: inherit
+message-border: #cfd6e6
+modal-border: #999999
+select-tag-background:
+select-tag-foreground:
+sidebar-controls-foreground-hover:
+sidebar-muted-foreground-hover:
+sidebar-tab-background: #ded8c5
+sidebar-tiddler-link-foreground-hover:
+static-alert-foreground: #aaaaaa
+tab-border: #cccccc
+ modal-footer-border: <<colour tab-border>>
+ modal-header-border: <<colour tab-border>>
+ notification-border: <<colour tab-border>>
+ sidebar-tab-border: <<colour tab-border>>
+ tab-border-selected: <<colour tab-border>>
+ sidebar-tab-border-selected: <<colour tab-border-selected>>
+tab-divider: #d8d8d8
+ sidebar-tab-divider: <<colour tab-divider>>
+table-border: #dddddd
+table-footer-background: #a8a8a8
+tiddler-controls-foreground-hover: #888888
+tiddler-controls-foreground-selected: #444444
+tiddler-editor-border-image: #ffffff
+tiddler-editor-border: #cccccc
+tiddler-editor-fields-even: #e0e8e0
+tiddler-editor-fields-odd: #f0f4f0
+tiddler-info-border: #dddddd
+tiddler-subtitle-foreground: #c0c0c0
+toolbar-new-button:
+toolbar-options-button:
+toolbar-save-button:
+toolbar-info-button:
+toolbar-edit-button:
+toolbar-close-button:
+toolbar-delete-button:
+toolbar-cancel-button:
+toolbar-done-button:
+untagged-background: #999999
+very-muted-foreground: #888888
+
+alert-background: #eee8d5
+alert-border: #073642
+alert-highlight: #cb4b16
+alert-muted-foreground: #586e75
+background: #fdf6e3
+blockquote-bar: <<colour muted-foreground>>
+button-background: #cb4b16
+button-foreground: #fdf6e3
+button-border: transparent
+code-background: #eee8d5
+code-border: #93a1a1
+code-foreground: #d33682
+diff-delete-background: #BF616A
+diff-delete-foreground: <<colour foreground>>
+diff-equal-background:
+diff-equal-foreground: <<colour foreground>>
+diff-insert-background: #859900
+diff-insert-foreground: <<colour foreground>>
+diff-invisible-background:
+diff-invisible-foreground: <<colour muted-foreground>>
+dirty-indicator: #D08770
+download-background: #859900
+download-foreground: <<colour background>>
+dragger-background: <<colour foreground>>
+dragger-foreground: <<colour background>>
+dropdown-background: <<colour background>>
+dropdown-border: <<colour background>>
+dropdown-tab-background-selected: #fdf6e3
+dropdown-tab-background: #93a1a1
+dropzone-background: #859900
+external-link-background-hover: inherit
+external-link-background-visited: inherit
+external-link-background: inherit
+external-link-foreground-hover: #d33682
+external-link-foreground-visited: #b58900
+external-link-foreground: #cb4b16
+foreground: #839496
+message-background: #586e75
+message-border: #586e75
+message-foreground: #eee8d5
+modal-backdrop: <<colour foreground>>
+modal-background: <<colour background>>
+modal-border: #eee8d5
+modal-footer-background: #eee8d5
+modal-footer-border: #eee8d5
+modal-header-border: #eee8d5
+muted-foreground: #93a1a1
+notification-background: #EBCB8B
+notification-border: #D08770
+page-background: #eee8d5
+pre-background: #eee8d5
+pre-border: #93a1a1
+primary: #2aa198
+select-tag-background: #eee8d5
+select-tag-foreground: <<colour foreground>>
+sidebar-button-foreground: #eee8d5
+sidebar-controls-foreground-hover: #268bd2
+sidebar-controls-foreground: #586e75
+sidebar-foreground-shadow: transparent
+sidebar-foreground: #839496
+sidebar-muted-foreground-hover: #657b83
+sidebar-muted-foreground: #93a1a1
+sidebar-tab-background-selected: #eee8d5
+sidebar-tab-background: #839496
+sidebar-tab-border-selected: <<colour tab-border-selected>>
+sidebar-tab-border: #657b83
+sidebar-tab-divider: <<colour page-background>>
+sidebar-tab-foreground-selected: #839496
+sidebar-tab-foreground: <<colour tab-foreground>>
+sidebar-tiddler-link-foreground-hover: #859900
+sidebar-tiddler-link-foreground: #268bd2
+site-title-foreground: <<colour tiddler-title-foreground>>
+static-alert-foreground: #dc322f
+tab-background-selected: #fdf6e3
+tab-background: #839496
+tab-border-selected: #93a1a1
+tab-border: #93a1a1
+tab-divider: #fdf6e3
+tab-foreground-selected: #839496
+tab-foreground: #eee8d5
+table-border: #657b83
+table-footer-background: #657b83
+table-header-background: #93a1a1
+tag-background: #6c71c4
+tag-foreground: #eee8d5
+tiddler-background: <<colour background>>
+tiddler-border: <<colour background>>
+tiddler-controls-foreground-hover: #b58900
+tiddler-controls-foreground-selected: #b58900
+tiddler-controls-foreground: #073642
+tiddler-editor-background: #eee8d5
+tiddler-editor-border-image: #eee8d5
+tiddler-editor-border: #eee8d5
+tiddler-editor-fields-even: #eee8d5
+tiddler-editor-fields-odd: #fdf6e3
+tiddler-info-background: #eee8d5
+tiddler-info-border: #eee8d5
+tiddler-info-tab-background: #586e75
+tiddler-link-background: <<colour background>>
+tiddler-link-foreground: <<colour primary>>
+tiddler-subtitle-foreground: #586e75
+tiddler-title-foreground: #073642
+toolbar-new-button:
+toolbar-options-button:
+toolbar-save-button:
+toolbar-info-button:
+toolbar-edit-button:
+toolbar-close-button:
+toolbar-delete-button:
+toolbar-cancel-button:
+toolbar-done-button:
+untagged-background: #839496
+very-muted-foreground: #93a1a1
+
+alert-background: <<colour background>>
+alert-border: <<colour very-muted-foreground>>
+alert-highlight: <<colour very-muted-foreground>>
+alert-muted-foreground: <<colour muted-foreground>>
+background: #FAFAFA
+blockquote-bar: <<colour page-background>>
+button-background: transparent
+button-foreground: inherit
+button-border: <<colour tag-background>>
+code-background: #ececec
+code-border: #ececec
+code-foreground:
+dirty-indicator: #c80000
+download-background: <<colour primary>>
+download-foreground: <<colour background>>
+dragger-background: <<colour foreground>>
+dragger-foreground: <<colour background>>
+dropdown-background: #FFFFFF
+dropdown-border: <<colour dropdown-background>>
+dropdown-tab-background-selected: <<colour dropdown-background>>
+dropdown-tab-background: #F5F5F5
+dropzone-background: <<colour tag-background>>
+external-link-background-hover: transparent
+external-link-background-visited: transparent
+external-link-background: transparent
+external-link-foreground-hover:
+external-link-foreground-visited:
+external-link-foreground:
+foreground: rgba(0, 0, 0, 0.87)
+message-background: <<colour background>>
+message-border: <<colour very-muted-foreground>>
+message-foreground: rgba(0, 0, 0, 0.54)
+modal-backdrop: <<colour foreground>>
+modal-background: <<colour background>>
+modal-border: <<colour very-muted-foreground>>
+modal-footer-background: <<colour background>>
+modal-footer-border: <<colour very-muted-foreground>>
+modal-header-border: <<colour very-muted-foreground>>
+muted-foreground: rgba(0, 0, 0, 0.54)
+notification-background: <<colour dropdown-background>>
+notification-border: <<colour dropdown-background>>
+page-background: #f4f4f4
+pre-background: #ececec
+pre-border: #ececec
+primary: #3949ab
+select-tag-background: <<colour background>>
+select-tag-foreground: <<colour foreground>>
+sidebar-button-foreground: <<colour foreground>>
+sidebar-controls-foreground-hover: #aeaeae
+sidebar-controls-foreground: #c6c6c6
+sidebar-foreground-shadow: transparent
+sidebar-foreground: rgba(0, 0, 0, 0.54)
+sidebar-muted-foreground-hover: rgba(0, 0, 0, 0.54)
+sidebar-muted-foreground: rgba(0, 0, 0, 0.38)
+sidebar-tab-background-selected: <<colour page-background>>
+sidebar-tab-background: transparent
+sidebar-tab-border-selected: <<colour table-border>>
+sidebar-tab-border: transparent
+sidebar-tab-divider: <<colour table-border>>
+sidebar-tab-foreground-selected: rgba(0, 0, 0, 0.87)
+sidebar-tab-foreground: rgba(0, 0, 0, 0.54)
+sidebar-tiddler-link-foreground-hover: rgba(0, 0, 0, 0.87)
+sidebar-tiddler-link-foreground: rgba(0, 0, 0, 0.54)
+site-title-foreground: rgba(0, 0, 0, 0.87)
+static-alert-foreground: #aaaaaa
+tab-background-selected: <<colour background>>
+tab-background: transparent
+tab-border-selected: <<colour table-border>>
+tab-border: transparent
+tab-divider: <<colour table-border>>
+tab-foreground-selected: rgba(0, 0, 0, 0.87)
+tab-foreground: rgba(0, 0, 0, 0.54)
+table-border: #d8d8d8
+table-footer-background: <<colour tiddler-editor-fields-odd>>
+table-header-background: <<colour tiddler-editor-fields-even>>
+tag-background: #ec6
+tag-foreground: <<colour button-foreground>>
+tiddler-background: <<colour background>>
+tiddler-border: #f9f9f9
+tiddler-controls-foreground-hover: <<colour sidebar-controls-foreground-hover>>
+tiddler-controls-foreground-selected: <<colour sidebar-controls-foreground-hover>>
+tiddler-controls-foreground: <<colour sidebar-controls-foreground>>
+tiddler-editor-background: transparent
+tiddler-editor-border-image:
+tiddler-editor-border: #e8e7e7
+tiddler-editor-fields-even: rgba(0, 0, 0, 0.1)
+tiddler-editor-fields-odd: rgba(0, 0, 0, 0.04)
+tiddler-info-background: #F5F5F5
+tiddler-info-border: #F5F5F5
+tiddler-info-tab-background: <<colour tiddler-editor-fields-odd>>
+tiddler-link-background: <<colour background>>
+tiddler-link-foreground: <<colour primary>>
+tiddler-subtitle-foreground: <<colour muted-foreground>>
+tiddler-title-foreground: #000000
+toolbar-new-button:
+toolbar-options-button:
+toolbar-save-button:
+toolbar-info-button:
+toolbar-edit-button:
+toolbar-close-button:
+toolbar-delete-button:
+toolbar-cancel-button:
+toolbar-done-button:
+untagged-background: <<colour very-muted-foreground>>
+very-muted-foreground: rgba(0, 0, 0, 0.12)
+
+alert-background: <<colour background>>
+alert-border: <<colour very-muted-foreground>>
+alert-highlight: <<colour very-muted-foreground>>
+alert-muted-foreground: <<colour muted-foreground>>
+background: #303030
+blockquote-bar: <<colour page-background>>
+button-background: transparent
+button-foreground: inherit
+button-border: <<colour tag-background>>
+code-background: <<colour pre-background>>
+code-border: <<colour pre-border>>
+code-foreground: rgba(255, 255, 255, 0.54)
+dirty-indicator: #c80000
+download-background: <<colour primary>>
+download-foreground: <<colour foreground>>
+dragger-background: <<colour foreground>>
+dragger-foreground: <<colour background>>
+dropdown-background: #424242
+dropdown-border: <<colour dropdown-background>>
+dropdown-tab-background-selected: <<colour dropdown-background>>
+dropdown-tab-background: #050505
+dropzone-background: <<colour tag-background>>
+external-link-background-hover: transparent
+external-link-background-visited: transparent
+external-link-background: transparent
+external-link-foreground-hover:
+external-link-foreground-visited: #7c318c
+external-link-foreground: #9e3eb3
+foreground: rgba(255, 255, 255, 0.7)
+message-background: <<colour background>>
+message-border: <<colour very-muted-foreground>>
+message-foreground: rgba(255, 255, 255, 0.54)
+modal-backdrop: <<colour page-background>>
+modal-background: <<colour background>>
+modal-border: <<colour very-muted-foreground>>
+modal-footer-background: <<colour background>>
+modal-footer-border: <<colour background>>
+modal-header-border: <<colour very-muted-foreground>>
+muted-foreground: rgba(255, 255, 255, 0.54)
+notification-background: <<colour dropdown-background>>
+notification-border: <<colour dropdown-background>>
+page-background: #212121
+pre-background: #2a2a2a
+pre-border: transparent
+primary: #5656f3
+select-tag-background: <<colour background>>
+select-tag-foreground: <<colour foreground>>
+sidebar-button-foreground: <<colour foreground>>
+sidebar-controls-foreground-hover: #494949
+sidebar-controls-foreground: #5d5d5d
+sidebar-foreground-shadow: transparent
+sidebar-foreground: rgba(255, 255, 255, 0.54)
+sidebar-muted-foreground-hover: rgba(255, 255, 255, 0.54)
+sidebar-muted-foreground: rgba(255, 255, 255, 0.38)
+sidebar-tab-background-selected: <<colour page-background>>
+sidebar-tab-background: transparent
+sidebar-tab-border-selected: <<colour table-border>>
+sidebar-tab-border: transparent
+sidebar-tab-divider: <<colour table-border>>
+sidebar-tab-foreground-selected: rgba(255, 255, 255, 0.87)
+sidebar-tab-foreground: rgba(255, 255, 255, 0.54)
+sidebar-tiddler-link-foreground-hover: rgba(255, 255, 255, 0.7)
+sidebar-tiddler-link-foreground: rgba(255, 255, 255, 0.54)
+site-title-foreground: rgba(255, 255, 255, 0.7)
+static-alert-foreground: #aaaaaa
+tab-background-selected: <<colour background>>
+tab-background: transparent
+tab-border-selected: <<colour table-border>>
+tab-border: transparent
+tab-divider: <<colour table-border>>
+tab-foreground-selected: rgba(255, 255, 255, 0.87)
+tab-foreground: rgba(255, 255, 255, 0.54)
+table-border: #3a3a3a
+table-footer-background: <<colour tiddler-editor-fields-odd>>
+table-header-background: <<colour tiddler-editor-fields-even>>
+tag-background: #ec6
+tag-foreground: <<colour button-foreground>>
+tiddler-background: <<colour background>>
+tiddler-border: rgb(55,55,55)
+tiddler-controls-foreground-hover: <<colour sidebar-controls-foreground-hover>>
+tiddler-controls-foreground-selected: <<colour sidebar-controls-foreground-hover>>
+tiddler-controls-foreground: <<colour sidebar-controls-foreground>>
+tiddler-editor-background: transparent
+tiddler-editor-border-image:
+tiddler-editor-border: rgba(255, 255, 255, 0.08)
+tiddler-editor-fields-even: rgba(255, 255, 255, 0.1)
+tiddler-editor-fields-odd: rgba(255, 255, 255, 0.04)
+tiddler-info-background: #454545
+tiddler-info-border: #454545
+tiddler-info-tab-background: <<colour tiddler-editor-fields-odd>>
+tiddler-link-background: <<colour background>>
+tiddler-link-foreground: <<colour primary>>
+tiddler-subtitle-foreground: <<colour muted-foreground>>
+tiddler-title-foreground: #FFFFFF
+toolbar-new-button:
+toolbar-options-button:
+toolbar-save-button:
+toolbar-info-button:
+toolbar-edit-button:
+toolbar-close-button:
+toolbar-delete-button:
+toolbar-cancel-button:
+toolbar-done-button:
+untagged-background: <<colour very-muted-foreground>>
+very-muted-foreground: rgba(255, 255, 255, 0.12)
+
+alert-background: rgb(255, 255, 102)
+alert-border: rgb(232, 232, 125)
+alert-highlight: rgb(255, 51, 51)
+alert-muted-foreground: rgb(224, 82, 82)
+background: rgb(38, 38, 38)
+blockquote-bar: rgba(240, 196, 117, 0.7)
+button-background: rgb(63, 63, 63)
+button-border: rgb(127, 127, 127)
+button-foreground: rgb(179, 179, 179)
+code-background: rgba(0,0,0,0.03)
+code-border: rgba(0,0,0,0.08)
+code-foreground: rgb(255, 94, 94)
+diff-delete-background: #ffc9c9
+diff-delete-foreground: <<colour foreground>>
+diff-equal-background:
+diff-equal-foreground: <<colour foreground>>
+diff-insert-background: #aaefad
+diff-insert-foreground: <<colour foreground>>
+diff-invisible-background:
+diff-invisible-foreground: <<colour muted-foreground>>
+dirty-indicator: rgb(255, 94, 94)
+download-background: #19a974
+download-foreground: rgb(38, 38, 38)
+dragger-background: rgb(179, 179, 179)
+dragger-foreground: rgb(38, 38, 38)
+dropdown-background: rgb(38, 38, 38)
+dropdown-border: rgb(255, 255, 255)
+dropdown-tab-background: rgba(0,0,0,.1)
+dropdown-tab-background-selected: rgba(255,255,255,1)
+dropzone-background: #9eebcf
+external-link-background: inherit
+external-link-background-hover: inherit
+external-link-background-visited: inherit
+external-link-foreground: rgb(179, 179, 255)
+external-link-foreground-hover: inherit
+external-link-foreground-visited: rgb(153, 153, 255)
+foreground: rgb(179, 179, 179)
+message-background: <<colour tag-foreground>>
+message-border: #96ccff
+message-foreground: <<colour tag-background>>
+modal-backdrop: rgb(179, 179, 179)
+modal-background: rgb(38, 38, 38)
+modal-border: rgba(0,0,0,.5)
+modal-footer-background: #f4f4f4
+modal-footer-border: rgba(0,0,0,.1)
+modal-header-border: rgba(0,0,0,.2)
+muted-foreground: rgb(255, 255, 255)
+notification-background: <<colour tag-foreground>>
+notification-border: <<colour tag-background>>
+page-background: rgb(26, 26, 26)
+pre-background: rgb(25, 25, 25)
+pre-border: rgba(0,0,0,.2)
+primary: rgb(255, 201, 102)
+select-tag-background:
+select-tag-foreground:
+sidebar-button-foreground: rgb(179, 179, 179)
+sidebar-controls-foreground: rgb(153, 153, 153)
+sidebar-controls-foreground-hover: <<colour tiddler-controls-foreground-hover>>
+sidebar-foreground: rgb(141, 141, 141)
+sidebar-foreground-shadow: transparent
+sidebar-muted-foreground: rgba(0, 0, 0, 0.5)
+sidebar-muted-foreground-hover: rgb(141, 141, 141)
+sidebar-tab-background: rgba(141, 141, 141, 0.2)
+sidebar-tab-background-selected: rgb(26, 26, 26)
+sidebar-tab-border: rgb(127, 127, 127)
+sidebar-tab-border-selected: rgb(127, 127, 127)
+sidebar-tab-divider: rgb(127, 127, 127)
+sidebar-tab-foreground: rgb(179, 179, 179)
+sidebar-tab-foreground-selected: rgb(179, 179, 179)
+sidebar-tiddler-link-foreground: rgb(179, 179, 179)
+sidebar-tiddler-link-foreground-hover: rgb(115, 115, 115)
+site-title-foreground: rgb(255, 201, 102)
+static-alert-foreground: rgba(0,0,0,.3)
+tab-background: rgba(0,0,0,0.125)
+tab-background-selected: rgb(38, 38, 38)
+tab-border: rgb(255, 201, 102)
+tab-border-selected: rgb(255, 201, 102)
+tab-divider: rgb(255, 201, 102)
+tab-foreground: rgb(179, 179, 179)
+tab-foreground-selected: rgb(179, 179, 179)
+table-border: rgba(255,255,255,.3)
+table-footer-background: rgba(0,0,0,.4)
+table-header-background: rgba(0,0,0,.1)
+tag-background: rgb(255, 201, 102)
+tag-foreground: rgb(25, 25, 25)
+tiddler-background: rgb(38, 38, 38)
+tiddler-border: rgba(240, 196, 117, 0.7)
+tiddler-controls-foreground: rgb(128, 128, 128)
+tiddler-controls-foreground-hover: rgba(255, 255, 255, 0.8)
+tiddler-controls-foreground-selected: rgba(255, 255, 255, 0.9)
+tiddler-editor-background: rgb(33, 33, 33)
+tiddler-editor-border: rgb(63, 63, 63)
+tiddler-editor-border-image: rgb(25, 25, 25)
+tiddler-editor-fields-even: rgb(33, 33, 33)
+tiddler-editor-fields-odd: rgb(28, 28, 28)
+tiddler-info-background: rgb(43, 43, 43)
+tiddler-info-border: rgb(25, 25, 25)
+tiddler-info-tab-background: rgb(43, 43, 43)
+tiddler-link-background: rgb(38, 38, 38)
+tiddler-link-foreground: rgb(204, 204, 255)
+tiddler-subtitle-foreground: rgb(255, 255, 255)
+tiddler-title-foreground: rgb(255, 192, 76)
+toolbar-cancel-button:
+toolbar-close-button:
+toolbar-delete-button:
+toolbar-done-button:
+toolbar-edit-button:
+toolbar-info-button:
+toolbar-new-button:
+toolbar-options-button:
+toolbar-save-button:
+untagged-background: rgb(255, 255, 255)
+very-muted-foreground: rgba(240, 196, 117, 0.7)
+
+alert-background: #ffe476
+alert-border: #b99e2f
+alert-highlight: #881122
+alert-muted-foreground: #b99e2f
+background: #ffffffbb
+blockquote-bar: <<colour muted-foreground>>
+button-background:
+button-foreground:
+button-border:
+code-background: #f7f7f9dd
+code-border: #e1e1e8
+code-foreground: #dd1144
+diff-delete-background: #ffc9c9
+diff-delete-foreground: <<colour foreground>>
+diff-equal-background:
+diff-equal-foreground: <<colour foreground>>
+diff-insert-background: #aaefad
+diff-insert-foreground: <<colour foreground>>
+diff-invisible-background:
+diff-invisible-foreground: <<colour muted-foreground>>
+dirty-indicator: #ff0000
+download-background: #34c734
+download-foreground: <<colour background>>
+dragger-background: <<colour foreground>>
+dragger-foreground: <<colour background>>
+dropdown-background: <<colour background>>
+dropdown-border: <<colour muted-foreground>>
+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: <<colour foreground>>
+modal-background: <<colour background>>
+modal-border: #999999
+modal-footer-background: #f5f5f5
+modal-footer-border: #dddddd
+modal-header-border: #eeeeee
+muted-foreground: #bbb
+notification-background: #ffffdd
+notification-border: #999999
+page-background: #f4f4f4
+pre-background: #f5f5f5
+pre-border: #cccccc
+primary: #5778d8
+select-tag-background:
+select-tag-foreground:
+sidebar-button-foreground: <<colour foreground>>
+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: <<colour tab-border-selected>>
+sidebar-tab-border: <<colour tab-border>>
+sidebar-tab-divider: #e4e4e4
+sidebar-tab-foreground-selected:
+sidebar-tab-foreground: <<colour tab-foreground>>
+sidebar-tiddler-link-foreground-hover: #444444
+sidebar-tiddler-link-foreground: #999999
+site-title-foreground: <<colour tiddler-title-foreground>>
+static-alert-foreground: #aaaaaa
+tab-background-selected: #ffffff
+tab-background: #d8d8d8
+tab-border-selected: #d8d8d8
+tab-border: #cccccc
+tab-divider: #d8d8d8
+tab-foreground-selected: <<colour tab-foreground>>
+tab-foreground: #666666
+table-border: #dddddd
+table-footer-background: #a8a8a8
+table-header-background: #f0f0f0
+tag-background: #ec6
+tag-foreground: #ffffff
+tiddler-background: <<colour background>>
+tiddler-border: <<colour background>>
+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: <<colour background>>
+tiddler-link-foreground: <<colour primary>>
+tiddler-subtitle-foreground: #c0c0c0
+tiddler-title-foreground: #182955
+toolbar-new-button:
+toolbar-options-button:
+toolbar-save-button:
+toolbar-info-button:
+toolbar-edit-button:
+toolbar-close-button:
+toolbar-delete-button:
+toolbar-cancel-button:
+toolbar-done-button:
+untagged-background: #999999
+very-muted-foreground: #888888
+wikilist-background: #e5e5e5
+wikilist-item: #fff
+wikilist-info: #000
+wikilist-title: #666
+wikilist-title-svg: <<colour wikilist-title>>
+wikilist-url: #aaa
+wikilist-button-open: #4fb82b
+wikilist-button-open-hover: green
+wikilist-button-reveal: #5778d8
+wikilist-button-reveal-hover: blue
+wikilist-button-remove: #d85778
+wikilist-button-remove-hover: red
+wikilist-toolbar-background: #d3d3d3
+wikilist-toolbar-foreground: #888
+wikilist-droplink-dragover: rgba(255,192,192,0.5)
+wikilist-button-background: #acacac
+wikilist-button-foreground: #000
+
+{
+ "tiddlers": {
+ "$:/plugins/danielo515/2click2edit/ClickListener.js": {
+ "text": "/*\\\ntitle: $:/plugins/danielo515/2click2edit/ClickListener.js\ntype: application/javascript\nmodule-type: widget\n\nThis widgets adds an double click event listener to its parent\n\n\\*/\n\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ClickListener = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nClickListener.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nClickListener.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.execute();\n\tvar self = this;\n /*Since the event listener have been added to the parent, the \"this\" property is pointing to the\n wrong object, we should call our edit function with our widget object set as the this property.*/\n parent.addEventListener(\"dblclick\",function(event){self.editTiddler.call(self,event)});\n};\n\nClickListener.prototype.editTiddler = function(event) {\n this.dispatchEvent({type: \"tm-edit-tiddler\", param: this.getVariable(\"currentTiddler\")}); \n};\n\n/*\nCompute the internal state of the widget\n*/\nClickListener.prototype.execute = function() {\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nClickListener.prototype.refresh = function(changedTiddlers) {\n\treturn false;\n};\n\nexports.click = ClickListener;\n\n})();",
+ "title": "$:/plugins/danielo515/2click2edit/ClickListener.js",
+ "type": "application/javascript",
+ "module-type": "widget"
+ },
+ "$:/plugins/danielo515/2click2edit/readme": {
+ "title": "$:/plugins/danielo515/2click2edit/readme",
+ "text": "This plugin adds the ability to edit tiddlers by double clicking on its body.\nJust try to edit any tiddler shown here by double clicking on it.\n\nThis can be considered a fast solution. It is only to fill the gap until TiddlyWiki adds support \nfor it officially.\n"
+ },
+ "$:/plugins/danielo515/2click2edit/ui/ViewTemplate": {
+ "tags": "$:/tags/ViewTemplate",
+ "title": "$:/plugins/danielo515/2click2edit/ui/ViewTemplate",
+ "type": "text/vnd.tiddlywiki",
+ "text": "<$click>"
+ }
+ }
+}
+/*\
+title: $:/plugins/danielo515/2click2edit/ClickListener.js
+type: application/javascript
+module-type: widget
+
+This widgets adds an double click event listener to its parent
+
+\*/
+
+(function(){
+
+/*jslint node: true, browser: true */
+/*global $tw: false */
+"use strict";
+
+var Widget = require("$:/core/modules/widgets/widget.js").widget;
+
+var ClickListener = function(parseTreeNode,options) {
+ this.initialise(parseTreeNode,options);
+};
+
+/*
+Inherit from the base widget class
+*/
+ClickListener.prototype = new Widget();
+
+/*
+Render this widget into the DOM
+*/
+ClickListener.prototype.render = function(parent,nextSibling) {
+ this.parentDomNode = parent;
+ this.execute();
+ var self = this;
+ /*Since the event listener have been added to the parent, the "this" property is pointing to the
+ wrong object, we should call our edit function with our widget object set as the this property.*/
+ parent.addEventListener("dblclick",function(event){self.editTiddler.call(self,event)});
+};
+
+ClickListener.prototype.editTiddler = function(event) {
+ this.dispatchEvent({type: "tm-edit-tiddler", param: this.getVariable("currentTiddler")});
+};
+
+/*
+Compute the internal state of the widget
+*/
+ClickListener.prototype.execute = function() {
+};
+
+/*
+Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
+*/
+ClickListener.prototype.refresh = function(changedTiddlers) {
+ return false;
+};
+
+exports.click = ClickListener;
+
+})();
+This plugin adds the ability to edit tiddlers by double clicking on its body.
+Just try to edit any tiddler shown here by double clicking on it.
+
+This can be considered a fast solution. It is only to fill the gap until TiddlyWiki adds support
+for it officially.
+
+<$click>
+{
+ "tiddlers": {
+ "$:/plugins/felixhayashi/respawn/respawn.js": {
+ "text": "/*\\\n\ntitle: $:/plugins/felixhayashi/respawn/respawn.js\ntype: application/javascript\nmodule-type: startup\n\n@preserve\n\n\\*/\n\n(function(){\n \n /*jslint node: true, browser: true */\n /*global $tw: false */\n \"use strict\";\n \n var configTRef = \"$:/plugins/felixhayashi/respawn/config\";\n \n var changeListener = function(changedTiddlers) {\n \n if(!changedTiddlers[\"$:/StoryList\"]) return;\n \n var tObj = $tw.wiki.getTiddler(\"$:/StoryList\");\n if(tObj && !tObj.fields[\"list\"].length) {\n \n var confTObj = $tw.wiki.getTiddler(configTRef);\n var config = confTObj ? confTObj.fields : {};\n \n window.setTimeout(function() {\n $tw.rootWidget.dispatchEvent({\n type: \"tm-home\"\n });\n }, parseInt(config.delay) || 500);\n }\n \n };\n \n exports.name = \"respawn\";\n exports.platforms = [\"browser\"];\n exports.after = [\"story\"];\n exports.synchronous = true;\n \n exports.startup = function() {\n \n $tw.wiki.addEventListener(\"change\", changeListener);\n \n };\n\n})();\n",
+ "title": "$:/plugins/felixhayashi/respawn/respawn.js",
+ "type": "application/javascript",
+ "module-type": "startup"
+ },
+ "$:/plugins/felixhayashi/respawn/Configuration": {
+ "title": "$:/plugins/felixhayashi/respawn/Configuration",
+ "text": "<!-- The config output is not written to this tiddler! -->\n\nPlease see the [[GitHub page|https://github.com/felixhayashi/TW5-Respawn]] for more information on the options.\n\nYou may have to save and reload the wiki to activate changes.\n\n<table>\n <tr>\n <th align=\"left\">Delay (seconds):</th>\n <td>\n <$edit-text\n tiddler=\"$:/plugins/felixhayashi/respawn/config\"\n field=\"delay\"\n tag=\"input\"\n default=\"500\" />\n </td>\n </tr>\n</table>"
+ },
+ "$:/plugins/felixhayashi/respawn/License": {
+ "title": "$:/plugins/felixhayashi/respawn/License",
+ "text": "This code is released under the BSD license. For the exact terms visit:\n\nhttps://github.com/felixhayashi/TW5-Respawn/blob/master/LICENSE"
+ },
+ "$:/plugins/felixhayashi/respawn/Readme": {
+ "title": "$:/plugins/felixhayashi/respawn/Readme",
+ "text": "Please visit the [[GitHub page|https://github.com/felixhayashi/TW5-Respawn]] for more information."
+ }
+ }
+}
+<!-- The config output is not written to this tiddler! -->
+
+Please see the [[GitHub page|https://github.com/felixhayashi/TW5-Respawn]] for more information on the options.
+
+You may have to save and reload the wiki to activate changes.
+
+<table>
+ <tr>
+ <th align="left">Delay (seconds):</th>
+ <td>
+ <$edit-text
+ tiddler="$:/plugins/felixhayashi/respawn/config"
+ field="delay"
+ tag="input"
+ default="500" />
+ </td>
+ </tr>
+</table>
+This code is released under the BSD license. For the exact terms visit:
+
+https://github.com/felixhayashi/TW5-Respawn/blob/master/LICENSE
+Please visit the [[GitHub page|https://github.com/felixhayashi/TW5-Respawn]] for more information.
+/*\
+
+title: $:/plugins/felixhayashi/respawn/respawn.js
+type: application/javascript
+module-type: startup
+
+@preserve
+
+\*/
+
+(function(){
+
+ /*jslint node: true, browser: true */
+ /*global $tw: false */
+ "use strict";
+
+ var configTRef = "$:/plugins/felixhayashi/respawn/config";
+
+ var changeListener = function(changedTiddlers) {
+
+ if(!changedTiddlers["$:/StoryList"]) return;
+
+ var tObj = $tw.wiki.getTiddler("$:/StoryList");
+ if(tObj && !tObj.fields["list"].length) {
+
+ var confTObj = $tw.wiki.getTiddler(configTRef);
+ var config = confTObj ? confTObj.fields : {};
+
+ window.setTimeout(function() {
+ $tw.rootWidget.dispatchEvent({
+ type: "tm-home"
+ });
+ }, parseInt(config.delay) || 500);
+ }
+
+ };
+
+ exports.name = "respawn";
+ exports.platforms = ["browser"];
+ exports.after = ["story"];
+ exports.synchronous = true;
+
+ exports.startup = function() {
+
+ $tw.wiki.addEventListener("change", changeListener);
+
+ };
+
+})();
+
+{
+ "tiddlers": {
+ "$:/plugins/flibbles/relink/js/bulkops.js": {
+ "text": "/*\\\nmodule-type: startup\n\nReplaces the relinkTiddler defined in $:/core/modules/wiki-bulkops.js\n\nThis is a startup instead of a wikimethods module-type because it's the only\nway to ensure this runs after the old relinkTiddler method is applied.\n\n\\*/\n(function(){\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar language = require('$:/plugins/flibbles/relink/js/language.js');\nvar utils = require(\"$:/plugins/flibbles/relink/js/utils.js\");\n\nexports.name = \"redefine-relinkTiddler\";\nexports.synchronous = true;\n// load-modules is when wikimethods are applied in\n// ``$:/core/modules/startup/load-modules.js``\nexports.after = ['load-modules'];\n\nexports.startup = function() {\n\t$tw.Wiki.prototype.relinkTiddler = relinkTiddler;\n};\n\n/** Walks through all relinkable tiddlers and relinks them.\n * This replaces the existing function in core Tiddlywiki.\n */\nfunction relinkTiddler(fromTitle, toTitle, options) {\n\toptions = options || {};\n\tvar failures = [];\n\tvar indexer = utils.getIndexer(this);\n\tvar records = indexer.relinkLookup(fromTitle, toTitle, options);\n\tfor (var title in records) {\n\t\tvar entries = records[title],\n\t\t\tchanges = Object.create(null),\n\t\t\tupdate = false,\n\t\t\tfails = false;\n\t\tfor (var field in entries) {\n\t\t\tvar entry = entries[field];\n\t\t\tfails = fails || entry.impossible;\n\t\t\tif (entry.output) {\n\t\t\t\tchanges[field] = entry.output;\n\t\t\t\tupdate = true;\n\t\t\t}\n\t\t}\n\t\tif (fails) {\n\t\t\tfailures.push(title);\n\t\t}\n\t\t// If any fields changed, update tiddler\n\t\tif (update) {\n\t\t\tconsole.log(\"Renaming '\"+fromTitle+\"' to '\"+toTitle+\"' in '\" + title + \"'\");\n\n\t\t\tvar tiddler = this.getTiddler(title);\n\t\t\tvar newTiddler = new $tw.Tiddler(tiddler,changes,this.getModificationFields())\n\t\t\tnewTiddler = $tw.hooks.invokeHook(\"th-relinking-tiddler\",newTiddler,tiddler);\n\t\t\tthis.addTiddler(newTiddler);\n\t\t\t// If the title changed, we need to perform a nested rename\n\t\t\tif (newTiddler.fields.title !== title) {\n\t\t\t\tthis.deleteTiddler(title);\n\t\t\t\tthis.relinkTiddler(title, newTiddler.fields.title,options);\n\t\t\t}\n\t\t}\n\t};\n\tif (failures.length > 0) {\n\t\tvar options = $tw.utils.extend(\n\t\t\t{ variables: {to: toTitle, from: fromTitle},\n\t\t\t wiki: this},\n\t\t\toptions );\n\t\tlanguage.reportFailures(failures, options);\n\t}\n};\n\n})();\n",
+ "module-type": "startup",
+ "title": "$:/plugins/flibbles/relink/js/bulkops.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/indexer.js": {
+ "text": "/*\\\nmodule-type: indexer\n\nIndexes results from tiddler reference reports so we don't have to call them\nso much.\n\n\\*/\n\n\"use strict\";\n\nvar utils = require(\"./utils.js\");\nvar TiddlerContext = utils.getContext('tiddler');\n\nfunction Indexer(wiki) {\n\tthis.wiki = wiki;\n};\n\nIndexer.prototype.init = function() {\n\tthis.rebuild();\n};\n\nIndexer.prototype.rebuild = function() {\n\tthis.index = null;\n\tthis.backIndex = null;\n\tthis.contexts = Object.create(null);\n\tthis.changedTiddlers = undefined;\n\tthis.lastRelinkFrom = undefined;\n};\n\nIndexer.prototype.update = function(updateDescriptor) {\n\tif (!this.index) {\n\t\treturn;\n\t}\n\tvar title;\n\tif (!this.changedTiddlers) {\n\t\tthis.changedTiddlers = Object.create(null);\n\t}\n\tif (updateDescriptor.old.exists) {\n\t\ttitle = updateDescriptor.old.tiddler.fields.title;\n\t\tthis.changedTiddlers[title] = {deleted: true};\n\t\tthis._purge(title);\n\t}\n\tif (updateDescriptor['new'].exists) {\n\t\t// If its the same tiddler as old, this overrides the 'deleted' entry\n\t\ttitle = updateDescriptor['new'].tiddler.fields.title;\n\t\tthis.changedTiddlers[title] = {modified: true};\n\t}\n};\n\nIndexer.prototype.lookup = function(title) {\n\tthis._upkeep();\n\treturn this.index[title];\n};\n\nIndexer.prototype.reverseLookup = function(title) {\n\tthis._upkeep();\n\treturn this.backIndex[title] || Object.create(null);\n};\n\nIndexer.prototype.relinkLookup = function(fromTitle, toTitle, options) {\n\tthis._upkeep();\n\tvar shortlist = undefined;\n\tif (this.lastRelinkFrom === fromTitle) {\n\t\tif (this.lastRelinkTo === toTitle) {\n\t\t\t// We need to reintroduce the relink cache, where temporary info\n\t\t\t// was stored.\n\t\t\toptions.cache = this.lastRelinkCache;\n\t\t\treturn this.lastRelinkResult;\n\t\t}\n\t\tshortlist = Object.keys(this.lastRelinkResult);\n\t}\n\tthis.lastRelinkResult = utils.getRelinkResults(this.wiki, fromTitle, toTitle, this.context, shortlist, options);\n\tthis.lastRelinkTo = toTitle;\n\tthis.lastRelinkFrom = fromTitle;\n\tthis.lastRelinkCache = options.cache;\n\treturn this.lastRelinkResult;\n};\n\nIndexer.prototype._upkeep = function() {\n\tvar title;\n\tif (this.changedTiddlers && (this.context.changed(this.changedTiddlers) || this.context.parent.changed(this.changedTiddlers))) {\n\t\t// If global macro context or whitelist context changed, wipe all\n\t\tthis.rebuild();\n\t}\n\tif (!this.index) {\n\t\tthis.index = Object.create(null);\n\t\tthis.backIndex = Object.create(null);\n\t\tthis.context = utils.getWikiContext(this.wiki);\n\t\tvar titles = this.wiki.getRelinkableTitles();\n\t\tfor (var i = 0; i < titles.length; i++) {\n\t\t\tthis._populate(titles[i]);\n\t\t};\n\t} else if (this.changedTiddlers) {\n\t\t// If there are cached changes, we apply them now.\n\t\tfor (title in this.contexts) {\n\t\t\tvar tiddlerContext = this.contexts[title];\n\t\t\tif (tiddlerContext.changed(this.changedTiddlers)) {\n\t\t\t\tthis._purge(title);\n\t\t\t\tthis._populate(title);\n\t\t\t\tthis._dropResults(title);\n\t\t\t\t// Wipe this change, so we don't risk updating it twice.\n\t\t\t\tthis.changedTiddlers[title] = undefined;\n\t\t\t}\n\t\t}\n\t\tfor (title in this.changedTiddlers) {\n\t\t\tvar change = this.changedTiddlers[title];\n\t\t\tif (change && change.modified) {\n\t\t\t\tthis._purge(title);\n\t\t\t\tthis._populate(title);\n\t\t\t\tthis._dropResults(title);\n\t\t\t}\n\t\t}\n\t\tthis.changedTiddlers = undefined;\n\t}\n};\n\nIndexer.prototype._purge = function(title) {\n\tfor (var entry in this.index[title]) {\n\t\tdelete this.backIndex[entry][title];\n\t}\n\tdelete this.contexts[title];\n\tdelete this.index[title];\n};\n\n// This drops the cached relink results if unsanctioned tiddlers were changed\nIndexer.prototype._dropResults = function(title) {\n\tvar tiddler = this.wiki.getTiddler(title);\n\tif (title !== this.lastRelinkFrom\n\t&& title !== this.lastRelinkTo\n\t&& (!tiddler\n\t\t|| !$tw.utils.hop(tiddler.fields, 'draft.of') // is a draft\n\t\t|| tiddler.fields['draft.of'] !== this.lastRelinkFrom // draft of target\n\t\t|| references(this.index[title], this.lastRelinkFrom))) { // draft references target\n\t\t// This is not the draft of the last relinked title,\n\t\t// so our cached results should be wiped.\n\t\tthis.lastRelinkFrom = undefined;\n\t}\n};\n\nfunction references(list, item) {\n\treturn list !== undefined && list[item];\n};\n\nIndexer.prototype._populate = function(title) {\n\t// Fetch the report for a title, and populate the indexes with result\n\tvar tiddlerContext = new TiddlerContext(this.wiki, this.context, title);\n\tvar references = utils.getTiddlerRelinkReferences(this.wiki, title, tiddlerContext);\n\tthis.index[title] = references;\n\tif (tiddlerContext.hasImports()) {\n\t\tthis.contexts[title] = tiddlerContext;\n\t}\n\tfor (var ref in references) {\n\t\tthis.backIndex[ref] = this.backIndex[ref] || Object.create(null);\n\t\tthis.backIndex[ref][title] = references[ref];\n\t}\n};\n\nexports.RelinkIndexer = Indexer;\n",
+ "module-type": "indexer",
+ "title": "$:/plugins/flibbles/relink/js/indexer.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/language.js": {
+ "text": "/*\\\nmodule-type: library\n\nThis handles all logging and alerts Relink emits.\n\n\\*/\n\nexports.getString = function(title, options) {\n\ttitle = \"$:/plugins/flibbles/relink/language/\" + title;\n\treturn options.wiki.renderTiddler(\"text/plain\", title, options);\n};\n\nvar logger;\n\nexports.reportFailures = function(failureList, options) {\n\tif (!logger) {\n\t\tlogger = new $tw.utils.Logger(\"Relinker\");\n\t}\n\tvar alertString = this.getString(\"Error/ReportFailedRelinks\", options)\n\tvar alreadyReported = Object.create(null);\n\tvar reportList = [];\n\t$tw.utils.each(failureList, function(f) {\n\t\tif (!alreadyReported[f]) {\n\t\t\tif ($tw.browser) {\n\t\t\t\t// This might not make the link if the title is complicated.\n\t\t\t\t// Whatever.\n\t\t\t\treportList.push(\"\\n* [[\" + f + \"]]\");\n\t\t\t} else {\n\t\t\t\treportList.push(\"\\n* \" + f);\n\t\t\t}\n\t\t\talreadyReported[f] = true;\n\t\t}\n\t});\n\tlogger.alert(alertString + \"\\n\" + reportList.join(\"\"));\n};\n",
+ "module-type": "library",
+ "title": "$:/plugins/flibbles/relink/js/language.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/mangler.js": {
+ "text": "/*\\\nmodule-type: widget\n\nCreates a mangler widget for field validation. This isn't meant to be used\nby the user. It's only used in Relink configuration.\n\n\\*/\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\nvar language = require('$:/plugins/flibbles/relink/js/language.js');\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\n\nvar RelinkManglerWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.addEventListeners([\n\t\t{type: \"relink-add-field\", handler: \"handleAddFieldEvent\"},\n\t\t{type: \"relink-add-operator\", handler: \"handleAddOperatorEvent\"},\n\t\t{type: \"relink-add-parameter\", handler: \"handleAddParameterEvent\"},\n\t\t{type: \"relink-add-attribute\", handler: \"handleAddAttributeEvent\"}\n\t]);\n};\n\nexports.relinkmangler = RelinkManglerWidget;\n\nRelinkManglerWidget.prototype = new Widget();\n\n// This wraps alert so it can be monkeypatched during testing.\nRelinkManglerWidget.prototype.alert = function(message) {\n\talert(message);\n};\n\nRelinkManglerWidget.prototype.handleAddFieldEvent = function(event) {\n\tvar param = event.paramObject;\n\tif (typeof param !== \"object\" || !param.field) {\n\t\t// Can't handle it.\n\t\treturn true;\n\t}\n\tvar trimmedName = param.field.toLowerCase().trim();\n\tif (!trimmedName) {\n\t\t// Still can't handle it, but don't warn.\n\t\treturn true;\n\t}\n\tif(!$tw.utils.isValidFieldName(trimmedName)) {\n\t\tthis.alert($tw.language.getString(\n\t\t\t\"InvalidFieldName\",\n\t\t\t{variables:\n\t\t\t\t{fieldName: trimmedName}\n\t\t\t}\n\t\t));\n\t} else {\n\t\tadd(this.wiki, \"fields\", trimmedName);\n\t}\n\treturn true;\n};\n\n/**Not much validation, even though there are definitely illegal\n * operator names. If you input on, Relink won't relink it, but it\n * won't choke on it either. Tiddlywiki will...\n */\nRelinkManglerWidget.prototype.handleAddOperatorEvent = function(event) {\n\tvar param = event.paramObject;\n\tif (param) {\n\t\tadd(this.wiki, \"operators\", param.operator);\n\t}\n\treturn true;\n};\n\nRelinkManglerWidget.prototype.handleAddParameterEvent = function(event) {\n\tvar param = event.paramObject;\n\tif (param && param.macro && param.parameter) {\n\t\tif (/\\s/.test(param.macro.trim())) {\n\t\t\tthis.alert(language.getString(\n\t\t\t\t\"Error/InvalidMacroName\",\n\t\t\t\t{ variables: {macroName: param.macro},\n\t\t\t\t wiki: this.wiki\n\t\t\t\t}\n\t\t\t));\n\t\t} else if (/[ \\/]/.test(param.parameter.trim())) {\n\t\t\tthis.alert(language.getString(\n\t\t\t\t\"Error/InvalidParameterName\",\n\t\t\t\t{ variables: {parameterName: param.parameter},\n\t\t\t\t wiki: this.wiki\n\t\t\t\t}\n\t\t\t));\n\t\t} else {\n\t\t\tadd(this.wiki, \"macros\", param.macro, param.parameter);\n\t\t}\n\t}\n\treturn true;\n};\n\nRelinkManglerWidget.prototype.handleAddAttributeEvent = function(event) {\n\tvar param = event.paramObject;\n\tif (param && param.element && param.attribute) {\n\t\tif (/[ \\/]/.test(param.element.trim())) {\n\t\t\tthis.alert(language.getString(\n\t\t\t\t\"Error/InvalidElementName\",\n\t\t\t\t{ variables: {elementName: param.element},\n\t\t\t\t wiki: this.wiki\n\t\t\t\t}\n\t\t\t));\n\t\t} else if (/[ \\/]/.test(param.attribute.trim())) {\n\t\t\tthis.alert(language.getString(\n\t\t\t\t\"Error/InvalidAttributeName\",\n\t\t\t\t{ variables: {attributeName: param.attribute},\n\t\t\t\t wiki: this.wiki\n\t\t\t\t}\n\t\t\t));\n\t\t} else {\n\t\t\tadd(this.wiki, \"attributes\", param.element, param.attribute);\n\t\t}\n\t}\n\treturn true;\n};\n\nfunction add(wiki, category/*, path parts*/) {\n\tvar path = \"$:/config/flibbles/relink/\" + category;\n\tfor (var x = 2; x < arguments.length; x++) {\n\t\tvar part = arguments[x];\n\t\t// Abort if it's falsy, or only whitespace. Also, trim spaces\n\t\tif (!part || !(part = part.trim())) {\n\t\t\treturn;\n\t\t}\n\t\tpath = path + \"/\" + part;\n\t}\n\tvar def = utils.getDefaultType(wiki);\n\twiki.addTiddler({title: path, text: def});\n};\n",
+ "module-type": "widget",
+ "title": "$:/plugins/flibbles/relink/js/mangler.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/settings.js": {
+ "text": "/*\\\nmodule-type: library\n\nThis handles the fetching and distribution of relink settings.\n\n\\*/\n\nvar utils = require('./utils');\n\n///// Legacy. You used to be able to access the type from utils.\nexports.getType = utils.getType;\n/////\n",
+ "module-type": "library",
+ "title": "$:/plugins/flibbles/relink/js/settings.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/utils.js": {
+ "text": "/*\\\nmodule-type: library\n\nUtility methods for relink.\n\n// TODO: The lists of plugins should neither be relinked nor reported.\n\\*/\n\nvar macroFilter = \"[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\";\n\n/**This works nearly identically to $tw.modules.getModulesByTypeAsHashmap\n * except that this also takes care of migrating V1 relink modules.\n */\nexports.getModulesByTypeAsHashmap = function(moduleType, nameField) {\n\tvar results = Object.create(null);\n\t$tw.modules.forEachModuleOfType(moduleType, function(title, module) {\n\t\tvar key = module[nameField];\n\t\tif (key !== undefined) {\n\t\t\tresults[key] = module;\n\t\t} else {\n\t\t\tfor (var entry in module) {\n\t\t\t\tresults[entry] = {\n\t\t\t\t\trelink: module[entry],\n\t\t\t\t\treport: function() {}};\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n};\n\nexports.getTiddlerRelinkReferences = function(wiki, title, context) {\n\tvar tiddler = wiki.getTiddler(title),\n\t\treferences = Object.create(null),\n\t\toptions = {settings: context, wiki: wiki};\n\tif (tiddler) {\n\t\ttry {\n\t\t\tfor (var relinker in getRelinkOperators()) {\n\t\t\t\tgetRelinkOperators()[relinker].report(tiddler, function(title, blurb) {\n\t\t\t\t\treferences[title] = references[title] || [];\n\t\t\t\t\treferences[title].push(blurb);\n\t\t\t\t}, options);\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tif (e.message) {\n\t\t\t\te.message = e.message + \"\\nWhen reporting '\" + title + \"' Relink references\";\n\t\t\t}\n\t\t\tthrow e;\n\t\t}\n\t}\n\treturn references;\n};\n\n/** Returns a pair like this,\n * { title: {field: entry, ... }, ... }\n */\nexports.getRelinkResults = function(wiki, fromTitle, toTitle, context, tiddlerList, options) {\n\toptions = options || {};\n\toptions.wiki = options.wiki || wiki;\n\tfromTitle = (fromTitle || \"\").trim();\n\ttoTitle = (toTitle || \"\").trim();\n\tvar changeList = Object.create(null);\n\tif(fromTitle && toTitle) {\n\t\tif (tiddlerList === undefined) {\n\t\t\ttiddlerList = wiki.getRelinkableTitles();\n\t\t}\n\t\tfor (var i = 0; i < tiddlerList.length; i++) {\n\t\t\tvar title = tiddlerList[i];\n\t\t\tvar tiddler = wiki.getTiddler(title);\n\t\t\tif(tiddler && !tiddler.fields[\"plugin-type\"]) {\n\t\t\t\ttry {\n\t\t\t\t\tvar entries = Object.create(null),\n\t\t\t\t\t\toperators = getRelinkOperators();\n\t\t\t\t\toptions.settings = new Contexts.tiddler(wiki, context, title);\n\t\t\t\t\tfor (var operation in operators) {\n\t\t\t\t\t\toperators[operation].relink(tiddler, fromTitle, toTitle, entries, options);\n\t\t\t\t\t}\n\t\t\t\t\tfor (var field in entries) {\n\t\t\t\t\t\t// So long as there is one key,\n\t\t\t\t\t\t// add it to the change list.\n\t\t\t\t\t\tchangeList[title] = entries;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {\n\t\t\t\t\t// Should we test for instanceof Error instead?: yes\n\t\t\t\t\t// Does that work in the testing environment?: no\n\t\t\t\t\tif (e.message) {\n\t\t\t\t\t\te.message = e.message + \"\\nWhen relinking '\" + title + \"'\";\n\t\t\t\t\t}\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn changeList;\n};\n\nvar Contexts = $tw.modules.applyMethods('relinkcontext');\n\nexports.getContext = function(name) {\n\treturn Contexts[name];\n};\n\nexports.getWikiContext = function(wiki) {\n\t// This gives a fresh context every time. It is up to the indexer or\n\t// the cache to preserve those contexts for as long as needed.\n\tvar whitelist = new Contexts.whitelist(wiki);\n\treturn new Contexts.import(wiki, whitelist, macroFilter);\n};\n\n/** Returns the Relink indexer, or a dummy object which pretends to be one.\n */\nexports.getIndexer = function(wiki) {\n\tif (!wiki._relink_indexer) {\n\t\twiki._relink_indexer = (wiki.getIndexer && wiki.getIndexer(\"RelinkIndexer\")) || new (require('$:/plugins/flibbles/relink/js/utils/backupIndexer.js'))(wiki);\n\t}\n\treturn wiki._relink_indexer;\n};\n\n/**Relinking supports a cache that persists throughout a whole relink op.\n * This is because the Tiddlywiki caches may get wiped multiple times\n * throughout the course of a relink.\n */\nexports.getCacheForRun = function(options, cacheName, initializer) {\n\toptions.cache = options.cache || Object.create(null);\n\tif (!$tw.utils.hop(options.cache, cacheName)) {\n\t\toptions.cache[cacheName] = initializer();\n\t}\n\treturn options.cache[cacheName];\n};\n\n/**Returns a specific relinker.\n * This is useful for wikitext rules which need to parse a filter or a list\n */\nexports.getType = function(name) {\n\tvar Handler = getFieldTypes()[name];\n\treturn Handler ? new Handler() : undefined;\n};\n\nexports.getTypes = function() {\n\t// We don't return fieldTypes, because we don't want it modified,\n\t// and we need to filter out legacy names.\n\tvar rtn = Object.create(null);\n\tfor (var type in getFieldTypes()) {\n\t\tvar typeObject = getFieldTypes()[type];\n\t\trtn[typeObject.typeName] = typeObject;\n\t}\n\treturn rtn;\n};\n\nexports.getDefaultType = function(wiki) {\n\tvar tiddler = wiki.getTiddler(\"$:/config/flibbles/relink/settings/default-type\");\n\tvar defaultType = tiddler && tiddler.fields.text;\n\t// make sure the default actually exists, otherwise default\n\treturn fieldTypes[defaultType] ? defaultType : \"title\";\n};\n\nvar fieldTypes;\n\nfunction getFieldTypes() {\n\tif (!fieldTypes) {\n\t\tfieldTypes = Object.create(null);\n\t\t$tw.modules.forEachModuleOfType(\"relinkfieldtype\", function(title, exports) {\n\t\t\tfunction NewType() {};\n\t\t\tNewType.prototype = exports;\n\t\t\tNewType.typeName = exports.name;\n\t\t\tfieldTypes[exports.name] = NewType;\n\t\t\t// For legacy, if the NewType doesn't have a report method, we add one\n\t\t\tif (!exports.report) {\n\t\t\t\texports.report = function() {};\n\t\t\t}\n\t\t\t// Also for legacy, some of the field types can go by other names\n\t\t\tif (exports.aliases) {\n\t\t\t\t$tw.utils.each(exports.aliases, function(alias) {\n\t\t\t\t\tfieldTypes[alias] = NewType;\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\treturn fieldTypes;\n}\n\nvar relinkOperators;\n\nfunction getRelinkOperators() {\n\tif (!relinkOperators) {\n\t\trelinkOperators = exports.getModulesByTypeAsHashmap('relinkoperator', 'name');\n\t}\n\treturn relinkOperators;\n};\n",
+ "module-type": "library",
+ "title": "$:/plugins/flibbles/relink/js/utils.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/wikimethods.js": {
+ "text": "/*\\\nmodule-type: wikimethod\n\nIntroduces some utility methods used by Relink.\n\n\\*/\n\nvar utils = require(\"./utils.js\");\n\nexports.getTiddlerRelinkReferences = function(title) {\n\treturn utils.getIndexer(this).lookup(title);\n};\n\nexports.getTiddlerRelinkBackreferences = function(title) {\n\treturn utils.getIndexer(this).reverseLookup(title);\n};\n\nexports.getRelinkableTitles = function() {\n\tvar toUpdate = \"$:/config/flibbles/relink/to-update\";\n\tvar wiki = this;\n\treturn this.getCacheForTiddler(toUpdate, \"relink-toUpdate\", function() {\n\t\tvar tiddler = wiki.getTiddler(toUpdate);\n\t\tif (tiddler) {\n\t\t\treturn wiki.compileFilter(tiddler.fields.text);\n\t\t} else {\n\t\t\treturn wiki.allTitles;\n\t\t}\n\t})();\n};\n",
+ "module-type": "wikimethod",
+ "title": "$:/plugins/flibbles/relink/js/wikimethods.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/filteroperators/all_relinkable.js": {
+ "text": "/*\\\nmodule-type: allfilteroperator\n\nFilter function for [all[relinkable]].\nReturns all tiddlers subject to relinking.\n\n\\*/\n\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.relinkable = function(source,prefix,options) {\n\treturn options.wiki.getRelinkableTitles();\n};\n\n})();\n",
+ "module-type": "allfilteroperator",
+ "title": "$:/plugins/flibbles/relink/js/filteroperators/all_relinkable.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/filteroperators/references.js": {
+ "text": "/*\\\nmodule-type: relinkfilteroperator\n\nGiven a title as an operand, returns all non-shadow tiddlers that have any\nsort of updatable reference to it.\n\n`relink:backreferences[]]`\n`relink:references[]]`\n\nReturns all tiddlers that reference `fromTiddler` somewhere inside them.\n\nInput is ignored. Maybe it shouldn't do this.\n\\*/\n\nvar LinkedList = $tw.utils.LinkedList;\n\nif (!LinkedList) {\n\t/* If the linked list isn't available, make a quick crappy version. */\n\tLinkedList = function() {this.array=[];};\n\n\tLinkedList.prototype.pushTop = function(array) {\n\t\t$tw.utils.pushTop(this.array, array);\n\t};\n\n\tLinkedList.prototype.toArray = function() {\n\t\treturn this.array;\n\t};\n};\n\nexports.backreferences = function(source,operator,options) {\n\tvar results = new LinkedList();\n\tsource(function(tiddler,title) {\n\t\tresults.pushTop(Object.keys(options.wiki.getTiddlerRelinkBackreferences(title,options)));\n\t});\n\treturn results.toArray();\n};\n\nexports.references = function(source,operator,options) {\n\tvar results = new LinkedList();\n\tsource(function(tiddler,title) {\n\t\tvar refs = options.wiki.getTiddlerRelinkReferences(title,options);\n\t\tif (refs) {\n\t\t\tresults.pushTop(Object.keys(refs));\n\t\t}\n\t});\n\treturn results.toArray();\n};\n",
+ "module-type": "relinkfilteroperator",
+ "title": "$:/plugins/flibbles/relink/js/filteroperators/references.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/filteroperators/relink.js": {
+ "text": "/*\\\nmodule-type: filteroperator\n\nThis filter acts as a namespace for several small, simple filters, such as\n\n`[relink:impossible[]]`\n\n\\*/\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar language = require('$:/plugins/flibbles/relink/js/language.js');\n\nvar relinkFilterOperators;\n\nfunction getRelinkFilterOperators() {\n\tif(!relinkFilterOperators) {\n\t\trelinkFilterOperators = {};\n\t\t$tw.modules.applyMethods(\"relinkfilteroperator\",\n\t\t relinkFilterOperators);\n\t}\n\treturn relinkFilterOperators;\n}\n\nexports.relink = function(source,operator,options) {\n\tvar suffixPair = parseSuffix(operator.suffix);\n\tvar relinkFilterOperator = getRelinkFilterOperators()[suffixPair[0]];\n\tif (relinkFilterOperator) {\n\t\tvar newOperator = $tw.utils.extend({}, operator);\n\t\tnewOperator.suffix = suffixPair[1];\n\t\treturn relinkFilterOperator(source, newOperator, options);\n\t} else {\n\t\treturn [language.getString(\"Error/RelinkFilterOperator\", options)];\n\t}\n};\n\nfunction parseSuffix(suffix) {\n\tvar index = suffix? suffix.indexOf(\":\"): -1;\n\tif (index >= 0) {\n\t\treturn [suffix.substr(0, index), suffix.substr(index+1)];\n\t} else {\n\t\treturn [suffix];\n\t}\n}\n",
+ "module-type": "filteroperator",
+ "title": "$:/plugins/flibbles/relink/js/filteroperators/relink.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/filteroperators/report.js": {
+ "text": "/*\\\nmodule-type: relinkfilteroperator\n\nGiven a title as an operand, returns a string for each occurrence of that title\nwithin each input title.\n\n[[title]] +[relink:report[fromTiddler]]`\n\nReturns string representation of fromTiddler occurrences in title.\n\\*/\n\nexports.report = function(source,operator,options) {\n\tvar fromTitle = operator.operand,\n\t\tresults = [];\n\tif (fromTitle) {\n\t\tvar blurbs = options.wiki.getTiddlerRelinkBackreferences(fromTitle);\n\t\tsource(function(tiddler, title) {\n\t\t\tif (blurbs[title]) {\n\t\t\t\tresults = results.concat(blurbs[title]);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n",
+ "module-type": "relinkfilteroperator",
+ "title": "$:/plugins/flibbles/relink/js/filteroperators/report.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/filteroperators/signatures.js": {
+ "text": "/*\\\nmodule-type: relinkfilteroperator\n\nThis filter returns all input tiddlers which are a source of\nrelink configuration.\n\n`[all[tiddlers+system]relink:source[macros]]`\n\n\\*/\n\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\n\nexports.signatures = function(source,operator,options) {\n\tvar plugin = operator.operand || null;\n\tvar set = getSet(options);\n\tif (plugin === \"$:/core\") {\n\t\t// Core doesn't actually have any settings. We mean Relink\n\t\tplugin = \"$:/plugins/flibbles/relink\";\n\t}\n\tvar signatures = [];\n\tfor (var signature in set) {\n\t\tvar source = set[signature].source;\n\t\tif (options.wiki.getShadowSource(source) === plugin) {\n\t\t\tsignatures.push(signature);\n\t\t}\n\t}\n\treturn signatures;\n};\n\nexports.type = function(source,operator,options) {\n\tvar results = [];\n\tvar set = getSet(options);\n\tsource(function(tiddler, signature) {\n\t\tif (set[signature]) {\n\t\t\tresults.push(set[signature].name);\n\t\t}\n\t});\n\treturn results;\n};\n\nexports.types = function(source,operator,options) {\n\tvar def = utils.getDefaultType(options.wiki);\n\tvar types = Object.keys(utils.getTypes());\n\ttypes.sort();\n\t// move default to front\n\ttypes.sort(function(x,y) { return x === def ? -1 : y === def ? 1 : 0; });\n\treturn types;\n};\n\nexports.source = function(source,operator,options) {\n\tvar results = [];\n\tvar category = operator.suffix;\n\tvar set = getSet(options);\n\tsource(function(tiddler, signature) {\n\t\tif (set[signature]) {\n\t\t\tresults.push(set[signature].source);\n\t\t}\n\t});\n\treturn results;\n};\n\nfunction getSet(options) {\n\treturn options.wiki.getGlobalCache(\"relink-signatures\", function() {\n\t\tvar config = utils.getWikiContext(options.wiki);\n\t\tvar set = Object.create(null);\n\t\tvar categories = {\n\t\t\tattributes: config.getAttributes(),\n\t\t\tfields: config.getFields(),\n\t\t\tmacros: config.getMacros(),\n\t\t\toperators: config.getOperators()};\n\t\t$tw.utils.each(categories, function(list, category) {\n\t\t\t$tw.utils.each(list, function(item, key) {\n\t\t\t\tset[category + \"/\" + key] = item;\n\t\t\t});\n\t\t});\n\t\treturn set;\n\t});\n};\n",
+ "module-type": "relinkfilteroperator",
+ "title": "$:/plugins/flibbles/relink/js/filteroperators/signatures.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/filteroperators/splitafter.js": {
+ "text": "/*\\\ntitle: $:/core/modules/filters/splitbefore.js\ntype: application/javascript\nmodule-type: relinkfilteroperator\n\nFilter operator that splits each result on the last occurance of the specified separator and returns the last bit.\n\nWhat does this have to do with relink? Nothing. I need this so I can render\nthe configuration menu. I //could// use [splitregexp[]], but then I'd be\nlimited to Tiddlywiki v5.1.20 or later.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.splitafter = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar index = title.lastIndexOf(operator.operand);\n\t\tif(index < 0) {\n\t\t\t$tw.utils.pushTop(results,title);\n\t\t} else {\n\t\t\t$tw.utils.pushTop(results,title.substr(index+1));\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n\n",
+ "title": "$:/plugins/flibbles/relink/js/filteroperators/splitafter.js",
+ "type": "application/javascript",
+ "module-type": "relinkfilteroperator"
+ },
+ "$:/plugins/flibbles/relink/js/filteroperators/wouldchange.js": {
+ "text": "/*\\\nmodule-type: relinkfilteroperator\n\nwouldchange: Generator.\n\nGiven each input title, it returns all the tiddlers that would be changed if the currentTiddler were to be renamed to the operand.\n\nimpossible: filters all source titles for ones that encounter errors on failure.\n\nTHESE ARE INTERNAL FILTER OPERATOR AND ARE NOT INTENDED TO BE USED BY USERS.\n\n\\*/\n\nvar language = require(\"$:/plugins/flibbles/relink/js/language.js\");\nvar utils = require(\"$:/plugins/flibbles/relink/js/utils.js\");\n\nexports.wouldchange = function(source,operator,options) {\n\tvar from = options.widget && options.widget.getVariable(\"currentTiddler\"),\n\t\tto = operator.operand,\n\t\tindexer = utils.getIndexer(options.wiki),\n\t\trecords = indexer.relinkLookup(from, to, options);\n\treturn Object.keys(records);\n};\n\nexports.impossible = function(source,operator,options) {\n\tvar from = options.widget && options.widget.getVariable(\"currentTiddler\"),\n\t\tto = operator.operand,\n\t\tresults = [],\n\t\tindexer = utils.getIndexer(options.wiki),\n\t\trecords = indexer.relinkLookup(from, to, options);\n\tsource(function(tiddler, title) {\n\t\tvar fields = records[title];\n\t\tif (fields) {\n\t\t\tfor (var field in fields) {\n\t\t\t\tif (fields[field].impossible) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n};\n",
+ "module-type": "relinkfilteroperator",
+ "title": "$:/plugins/flibbles/relink/js/filteroperators/wouldchange.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/fieldtypes/filter.js": {
+ "text": "/*\\\nThis specifies logic for updating filters to reflect title changes.\n\\*/\n\nvar refHandler = require(\"$:/plugins/flibbles/relink/js/fieldtypes/reference\");\nvar Rebuilder = require(\"$:/plugins/flibbles/relink/js/utils/rebuilder\");\n\nexports.name = \"filter\";\n\nexports.report = function(filter, callback, options) {\n\t// I cheat here for now. Relink handles reporting too in cases where\n\t// fromTitle is undefined. toTitle is the callback in those cases.\n\texports.relink(filter, undefined, callback, options);\n};\n\n/**Returns undefined if no change was made.\n */\nexports.relink = function(filter, fromTitle, toTitle, options) {\n\tvar relinker = new Rebuilder(filter),\n\t\tp = 0, // Current position in the filter string\n\t\tmatch, noPrecedingWordBarrier,\n\t\twordBarrierRequired=false;\n\tvar whitespaceRegExp = /\\s+/mg,\n\t\toperandRegExp = /((?:\\+|\\-|~|=|\\:\\w+)?)(?:(\\[)|(?:\"([^\"]*)\")|(?:'([^']*)')|([^\\s\\[\\]]+))/mg,\n\t\tblurbs = [];\n\twhile(p < filter.length) {\n\t\t// Skip any whitespace\n\t\twhitespaceRegExp.lastIndex = p;\n\t\tmatch = whitespaceRegExp.exec(filter);\n\t\tnoPrecedingWordBarrier = false;\n\t\tif(match && match.index === p) {\n\t\t\tp = p + match[0].length;\n\t\t} else if (p != 0) {\n\t\t\tif (wordBarrierRequired) {\n\t\t\t\trelinker.add(' ', p, p);\n\t\t\t\twordBarrierRequired = false;\n\t\t\t} else {\n\t\t\t\tnoPrecedingWordBarrier = true;\n\t\t\t}\n\t\t}\n\t\t// Match the start of the operation\n\t\tif(p < filter.length) {\n\t\t\tvar val;\n\t\t\toperandRegExp.lastIndex = p;\n\t\t\tmatch = operandRegExp.exec(filter);\n\t\t\tif(!match || match.index !== p) {\n\t\t\t\t// It's a bad filter\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\tif(match[1]) { // prefix\n\t\t\t\tp += match[1].length;\n\t\t\t}\n\t\t\tif(match[2]) { // Opening square bracket\n\t\t\t\t// We check if this is a standalone title,\n\t\t\t\t// like `[[MyTitle]]`. We treat those like\n\t\t\t\t// `\"MyTitle\"` or `MyTitle`. Not like a run.\n\t\t\t\tvar standaloneTitle = /\\[\\[([^\\]]+)\\]\\]/g;\n\t\t\t\tstandaloneTitle.lastIndex = p;\n\t\t\t\tvar alone = standaloneTitle.exec(filter);\n\t\t\t\tif (!alone || alone.index != p) {\n\t\t\t\t\tif (fromTitle === undefined) {\n\t\t\t\t\t\t// toTitle is a callback method in this case.\n\t\t\t\t\t\tp =reportFilterOperation(filter, function(title, blurb){\n\t\t\t\t\t\t\tif (match[1]) {\n\t\t\t\t\t\t\t\tblurbs.push([title, match[1] + (blurb || '')]);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tblurbs.push([title, blurb]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},p,options.settings,options);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tp =relinkFilterOperation(relinker,fromTitle,toTitle,filter,p,options.settings,options);\n\t\t\t\t\t}\n\t\t\t\t\t// It's a legit run\n\t\t\t\t\tif (p === undefined) {\n\t\t\t\t\t\t// The filter is malformed\n\t\t\t\t\t\t// We do nothing.\n\t\t\t\t\t\treturn undefined;\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbracketTitle = alone[1];\n\t\t\t\toperandRegExp.lastIndex = standaloneTitle.lastIndex;\n\t\t\t\tval = alone[1];\n\t\t\t} else {\n\t\t\t\t// standalone Double quoted string, single\n\t\t\t\t// quoted string, or noquote ahead.\n\t\t\t\tval = match[3] || match[4] || match[5];\n\t\t\t}\n\t\t\t// From here on, we're dealing with a standalone title\n\t\t\t// expression. like `\"MyTitle\"` or `[[MyTitle]]`\n\t\t\t// We're much more flexible about relinking these.\n\t\t\tvar preference = undefined;\n\t\t\tif (match[3]) {\n\t\t\t\tpreference = '\"';\n\t\t\t} else if (match[4]) {\n\t\t\t\tpreference = \"'\";\n\t\t\t} else if (match[5]) {\n\t\t\t\tpreference = '';\n\t\t\t}\n\t\t\tif (fromTitle === undefined) {\n\t\t\t\t// Report it\n\t\t\t\tblurbs.push([val, match[1]]);\n\t\t\t} else if (val === fromTitle) {\n\t\t\t\t// Relink it\n\t\t\t\tvar entry = {name: \"title\"};\n\t\t\t\tvar newVal = wrapTitle(toTitle, preference);\n\t\t\t\tif (newVal === undefined || (options.inBraces && newVal.indexOf('}}}') >= 0)) {\n\t\t\t\t\tif (!options.placeholder) {\n\t\t\t\t\t\trelinker.impossible = true;\n\t\t\t\t\t\tp = operandRegExp.lastIndex;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tnewVal = \"[<\"+options.placeholder.getPlaceholderFor(toTitle)+\">]\";\n\t\t\t\t}\n\t\t\t\tif (newVal[0] != '[') {\n\t\t\t\t\t// not bracket enclosed\n\t\t\t\t\t// this requires whitespace\n\t\t\t\t\t// arnound it\n\t\t\t\t\tif (noPrecedingWordBarrier && !match[1]) {\n\t\t\t\t\t\trelinker.add(' ', p, p);\n\t\t\t\t\t}\n\t\t\t\t\twordBarrierRequired = true;\n\t\t\t\t}\n\t\t\t\tentry.output = toTitle;\n\t\t\t\tentry.operator = {operator: \"title\"};\n\t\t\t\tentry.quotation = preference;\n\t\t\t\tif (entry.impossible) {\n\t\t\t\t\trelinker.impossible = true;\n\t\t\t\t}\n\t\t\t\trelinker.add(newVal,p,operandRegExp.lastIndex);\n\t\t\t}\n\t\t\tp = operandRegExp.lastIndex;\n\t\t}\n\t}\n\tif (fromTitle === undefined) {\n\t\t// We delay the blurb calls until now in case it's a malformed\n\t\t// filter string. We don't want to report some, only to find out\n\t\t// it's bad.\n\t\tfor (var i = 0; i < blurbs.length; i++) {\n\t\t\ttoTitle(blurbs[i][0], blurbs[i][1]);\n\t\t}\n\t}\n\tif (relinker.changed() || relinker.impossible) {\n\t\treturn {output: relinker.results(), impossible: relinker.impossible };\n\t}\n\treturn undefined;\n};\n\n/* Same as this.relink, except this has the added constraint that the return\n * value must be able to be wrapped in curly braces. (i.e. '{{{...}}}')\n */\nexports.relinkInBraces = function(filter, fromTitle, toTitle, options) {\n\tvar braceOptions = $tw.utils.extend({inBraces: true}, options);\n\tvar entry = this.relink(filter, fromTitle, toTitle, braceOptions);\n\tif (entry && entry.output && !canBeInBraces(entry.output)) {\n\t\t// It was possible, but it won't fit in braces, so we must give up\n\t\tdelete entry.output;\n\t\tentry.impossible = true;\n\t}\n\treturn entry;\n};\n\nfunction wrapTitle(value, preference) {\n\tvar choices = {\n\t\t\"\": function(v) {return /^[^\\s\\[\\]]*[^\\s\\[\\]\\}]$/.test(v); },\n\t\t\"[\": canBePrettyOperand,\n\t\t\"'\": function(v) {return v.indexOf(\"'\") < 0; },\n\t\t'\"': function(v) {return v.indexOf('\"') < 0; }\n\t};\n\tvar wrappers = {\n\t\t\"\": function(v) {return v; },\n\t\t\"[\": function(v) {return \"[[\"+v+\"]]\"; },\n\t\t\"'\": function(v) {return \"'\"+v+\"'\"; },\n\t\t'\"': function(v) {return '\"'+v+'\"'; }\n\t};\n\tif (choices[preference]) {\n\t\tif (choices[preference](value)) {\n\t\t\treturn wrappers[preference](value);\n\t\t}\n\t}\n\tfor (var quote in choices) {\n\t\tif (choices[quote](value)) {\n\t\t\treturn wrappers[quote](value);\n\t\t}\n\t}\n\t// No quotes will work on this\n\treturn undefined;\n}\n\nfunction relinkFilterOperation(relinker, fromTitle, toTitle, filterString, p, context, options) {\n\tvar nextBracketPos, operator;\n\t// Skip the starting square bracket\n\tif(filterString.charAt(p++) !== \"[\") {\n\t\t// Missing [ in filter expression\n\t\treturn undefined;\n\t}\n\t// Process each operator in turn\n\toperator = parseOperator(filterString, p);\n\tdo {\n\t\tvar entry = undefined, type;\n\t\tif (operator === undefined) {\n\t\t\treturn undefined;\n\t\t}\n\t\tp = operator.opStart;\n\t\tswitch (operator.bracket) {\n\t\t\tcase \"{\": // Curly brackets\n\t\t\t\ttype = \"indirect\";\n\t\t\t\tnextBracketPos = filterString.indexOf(\"}\",p);\n\t\t\t\tvar operand = filterString.substring(p,nextBracketPos);\n\t\t\t\t// We've got a live reference. relink or report\n\t\t\t\tentry = refHandler.relinkInBraces(operand, fromTitle, toTitle, options);\n\t\t\t\tif (entry && entry.output) {\n\t\t\t\t\t// We don't check the context.\n\t\t\t\t\t// All indirect operands convert.\n\t\t\t\t\trelinker.add(entry.output,p,nextBracketPos);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"[\": // Square brackets\n\t\t\t\ttype = \"string\";\n\t\t\t\tnextBracketPos = filterString.indexOf(\"]\",p);\n\t\t\t\tvar operand = filterString.substring(p,nextBracketPos);\n\t\t\t\t// Check if this is a relevant operator\n\t\t\t\tvar handler = fieldType(context, operator);\n\t\t\t\tif (!handler) {\n\t\t\t\t\t// This operator isn't managed. Bye.\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tentry = handler.relink(operand, fromTitle, toTitle, options);\n\t\t\t\tif (!entry || !entry.output) {\n\t\t\t\t\t// The fromTitle wasn't in the operand.\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tvar wrapped;\n\t\t\t\tif (!canBePrettyOperand(entry.output) || (options.inBraces && entry.output.indexOf('}}}') >= 0)) {\n\t\t\t\t\tif (!options.placeholder) {\n\t\t\t\t\t\tdelete entry.output;\n\t\t\t\t\t\tentry.impossible = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tvar ph = options.placeholder.getPlaceholderFor(entry.output, handler.name);\n\t\t\t\t\twrapped = \"<\"+ph+\">\";\n\t\t\t\t} else {\n\t\t\t\t\twrapped = \"[\"+entry.output+\"]\";\n\t\t\t\t}\n\t\t\t\trelinker.add(wrapped, p-1, nextBracketPos+1);\n\t\t\t\tbreak;\n\t\t\tcase \"<\": // Angle brackets\n\t\t\t\tnextBracketPos = filterString.indexOf(\">\",p);\n\t\t\t\tbreak;\n\t\t\tcase \"/\": // regexp brackets\n\t\t\t\tvar rex = /^((?:[^\\\\\\/]*|\\\\.)*)\\/(?:\\(([mygi]+)\\))?/g,\n\t\t\t\t\trexMatch = rex.exec(filterString.substring(p));\n\t\t\t\tif(rexMatch) {\n\t\t\t\t\tnextBracketPos = p + rex.lastIndex - 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Unterminated regular expression\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t\tif (entry) {\n\t\t\tif (entry.impossible) {\n\t\t\t\trelinker.impossible = true;\n\t\t\t}\n\t\t}\n\n\t\tif(nextBracketPos === -1) {\n\t\t\t// Missing closing bracket in filter expression\n\t\t\treturn undefined;\n\t\t}\n\t\tp = nextBracketPos + 1;\n\t\t// Check for multiple operands\n\t\tswitch (filterString.charAt(p)) {\n\t\tcase ',':\n\t\t\tp++;\n\t\t\tif(/^[\\[\\{<\\/]/.test(filterString.substring(p))) {\n\t\t\t\toperator.bracket = filterString.charAt(p);\n\t\t\t\toperator.opStart = p + 1;\n\t\t\t\toperator.index++;\n\t\t\t} else {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\tcontinue;\n\t\tdefault:\n\t\t\toperator = parseOperator(filterString, p);\n\t\t\tcontinue;\n\t\tcase ']':\n\t\t}\n\t\tbreak;\n\t} while(true);\n\t// Skip the ending square bracket\n\tif(filterString.charAt(p++) !== \"]\") {\n\t\t// Missing ] in filter expression\n\t\treturn undefined;\n\t}\n\t// Return the parsing position\n\treturn p;\n}\n\nfunction reportFilterOperation(filterString, callback, p, context, options) {\n\tvar nextBracketPos, operator;\n\t// Skip the starting square bracket\n\tif(filterString.charAt(p++) !== \"[\") {\n\t\t// Missing [ in filter expression\n\t\treturn undefined;\n\t}\n\toperator = parseOperator(filterString, p);\n\t// Process each operator in turn\n\tdo {\n\t\tif (operator === undefined) {\n\t\t\treturn undefined;\n\t\t}\n\t\tp = operator.opStart;\n\t\tswitch (operator.bracket) {\n\t\t\tcase \"{\": // Curly brackets\n\t\t\t\tnextBracketPos = filterString.indexOf(\"}\",p);\n\t\t\t\tvar operand = filterString.substring(p,nextBracketPos);\n\t\t\t\t// Just report it\n\t\t\t\trefHandler.report(operand, function(title, blurb) {\n\t\t\t\t\tcallback(title, operatorBlurb(operator, '{' + (blurb || '') + '}'));\n\t\t\t\t}, options);\n\t\t\t\tbreak;\n\t\t\tcase \"[\": // Square brackets\n\t\t\t\tnextBracketPos = filterString.indexOf(\"]\",p);\n\t\t\t\tvar operand = filterString.substring(p,nextBracketPos);\n\t\t\t\t// Check if this is a relevant operator\n\t\t\t\tvar handler = fieldType(context, operator);\n\t\t\t\tif (!handler) {\n\t\t\t\t\t// This operator isn't managed. Bye.\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// We just have to report it. Nothing more.\n\t\t\t\thandler.report(operand, function(title, blurb) {\n\t\t\t\t\tcallback(title, operatorBlurb(operator, '[' + (blurb || '') + ']'));\n\t\t\t\t}, options);\n\t\t\t\tbreak;\n\n\t\t\tcase \"<\": // Angle brackets\n\t\t\t\tnextBracketPos = filterString.indexOf(\">\",p);\n\t\t\t\tbreak;\n\t\t\tcase \"/\": // regexp brackets\n\t\t\t\tvar rex = /^((?:[^\\\\\\/]*|\\\\.)*)\\/(?:\\(([mygi]+)\\))?/g,\n\t\t\t\t\trexMatch = rex.exec(filterString.substring(p));\n\t\t\t\tif(rexMatch) {\n\t\t\t\t\tnextBracketPos = p + rex.lastIndex - 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Unterminated regular expression\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif(nextBracketPos === -1) {\n\t\t\t// Missing closing bracket in filter expression\n\t\t\treturn undefined;\n\t\t}\n\t\tp = nextBracketPos + 1;\n\t\t// Check for multiple operands\n\t\tswitch (filterString.charAt(p)) {\n\t\tcase ',':\n\t\t\tp++;\n\t\t\tif(/^[\\[\\{<\\/]/.test(filterString.substring(p))) {\n\t\t\t\toperator.bracket = filterString.charAt(p);\n\t\t\t\toperator.opStart = p + 1;\n\t\t\t\toperator.index++;\n\t\t\t} else {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\tcontinue;\n\t\tdefault:\n\t\t\toperator = parseOperator(filterString, p);\n\t\t\tcontinue;\n\t\tcase ']':\n\t\t}\n\t\tbreak;\n\t} while(true);\n\t// Skip the ending square bracket\n\tif(filterString.charAt(p++) !== \"]\") {\n\t\t// Missing ] in filter expression\n\t\treturn undefined;\n\t}\n\t// Return the parsing position\n\treturn p;\n}\n\nfunction parseOperator(filterString, p) {\n\tvar nextBracketPos, operator = {index: 1};\n\t// Check for an operator prefix\n\tif(filterString.charAt(p) === \"!\") {\n\t\toperator.prefix = \"!\";\n\t\tp++;\n\t}\n\t// Get the operator name\n\tnextBracketPos = filterString.substring(p).search(/[\\[\\{<\\/]/);\n\tif(nextBracketPos === -1) {\n\t\t// Missing [ in filter expression\n\t\treturn undefined;\n\t}\n\tnextBracketPos += p;\n\toperator.bracket = filterString.charAt(nextBracketPos);\n\toperator.operator = filterString.substring(p,nextBracketPos);\n\n\t// Any suffix?\n\tvar colon = operator.operator.indexOf(':');\n\tif(colon > -1) {\n\t\toperator.suffix = operator.operator.substring(colon + 1);\n\t\toperator.operator = operator.operator.substring(0,colon) || \"field\";\n\t}\n\t// Empty operator means: title\n\telse if(operator.operator === \"\") {\n\t\toperator.operator = \"title\";\n\t\toperator.default = true;\n\t}\n\toperator.opStart = nextBracketPos + 1;\n\treturn operator;\n};\n\nfunction operatorBlurb(operator, enquotedOperand) {\n\tvar suffix = operator.suffix ? (':' + operator.suffix) : '';\n\t// commas to indicate which number operand\n\tsuffix += (new Array(operator.index)).join(',');\n\tvar op = operator.default ? '' : operator.operator;\n\treturn '[' + (operator.prefix || '') + op + suffix + enquotedOperand + ']';\n};\n\n// Returns the relinker needed for a given operator, or returns undefined.\nfunction fieldType(context, operator) {\n\treturn (operator.suffix &&\n\t context.getOperator(operator.operator + ':' + operator.suffix, operator.index)) ||\n\t context.getOperator(operator.operator, operator.index);\n};\n\nfunction canBePrettyOperand(value) {\n\treturn value.indexOf(']') < 0;\n};\n\nfunction canBeInBraces(value) {\n\treturn value.indexOf(\"}}}\") < 0 && value.substr(value.length-2) !== '}}';\n};\n",
+ "module-type": "relinkfieldtype",
+ "title": "$:/plugins/flibbles/relink/js/fieldtypes/filter.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/fieldtypes/list.js": {
+ "text": "/*\\\nThis manages replacing titles that occur within stringLists, like,\n\nTiddlerA [[Tiddler with spaces]] [[Another Title]]\n\\*/\n\nexports.name = \"list\";\n\nexports.report = function(value, callback, options) {\n\tvar list = $tw.utils.parseStringArray(value);\n\tfor (var i = 0; i < list.length; i++) {\n\t\tcallback(list[i]);\n\t}\n};\n\n/**Returns undefined if no change was made.\n * Parameter: value can literally be a list. This can happen for builtin\n * types 'list' and 'tag'. In those cases, we also return list.\n */\nexports.relink = function(value, fromTitle, toTitle, options) {\n\tvar isModified = false,\n\t\tactualList = false,\n\t\tlist;\n\tif (typeof value !== \"string\") {\n\t\t// Not a string. Must be a list.\n\t\t// clone it, since we may make changes to this possibly\n\t\t// frozen list.\n\t\tlist = (value || []).slice(0);\n\t\tactualList = true;\n\t} else {\n\t\tlist = $tw.utils.parseStringArray(value || \"\");\n\t}\n\t$tw.utils.each(list,function (title,index) {\n\t\tif(title === fromTitle) {\n\t\t\tlist[index] = toTitle;\n\t\t\tisModified = true;\n\t\t}\n\t});\n\tif (isModified) {\n\t\tvar entry = {name: \"list\"};\n\t\t// It doesn't parse correctly alone, it won't\n\t\t// parse correctly in any list.\n\t\tif (!canBeListItem(toTitle)) {\n\t\t\tentry.impossible = true;\n\t\t} else if (actualList) {\n\t\t\tentry.output = list;\n\t\t} else {\n\t\t\tentry.output = $tw.utils.stringifyList(list);\n\t\t}\n\t\treturn entry;\n\t}\n\treturn undefined;\n};\n\nfunction canBeListItem(value) {\n\tvar regexp = /\\]\\][^\\S\\xA0]/m;\n\treturn !regexp.test(value);\n};\n",
+ "module-type": "relinkfieldtype",
+ "title": "$:/plugins/flibbles/relink/js/fieldtypes/list.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/fieldtypes/reference.js": {
+ "text": "/*\\\nThis manages replacing titles that occur inside text references,\n\ntiddlerTitle\ntiddlerTitle!!field\n!!field\ntiddlerTitle##propertyIndex\n\\*/\n\nexports.name = \"reference\";\n\nexports.report = function(value, callback, options) {\n\tif (value) {\n\t\tvar reference = $tw.utils.parseTextReference(value),\n\t\t\ttitle = reference.title,\n\t\t\tblurb;\n\t\tif (title) {\n\t\t\tif (reference.field) {\n\t\t\t\tblurb = '!!' + reference.field;\n\t\t\t} else if (reference.index) {\n\t\t\t\tblurb = '##' + reference.index;\n\t\t\t}\n\t\t\tcallback(title, blurb);\n\t\t}\n\t}\n};\n\nexports.relink = function(value, fromTitle, toTitle, options) {\n\tvar entry;\n\tif (value) {\n\t\tvar reference = $tw.utils.parseTextReference(value);\n\t\tif (reference.title === fromTitle) {\n\t\t\tif (!exports.canBePretty(toTitle)) {\n\t\t\t\tentry = {impossible: true};\n\t\t\t} else {\n\t\t\t\treference.title = toTitle;\n\t\t\t\tentry = {output: exports.toString(reference)};\n\t\t\t}\n\t\t}\n\t}\n\treturn entry;\n};\n\n/* Same as this.relink, except this has the added constraint that the return\n * value must be able to be wrapped in curly braces.\n */\nexports.relinkInBraces = function(value, fromTitle, toTitle, options) {\n\tvar log = this.relink(value, fromTitle, toTitle, options);\n\tif (log && log.output && toTitle.indexOf(\"}\") >= 0) {\n\t\tdelete log.output;\n\t\tlog.impossible = true;\n\t}\n\treturn log;\n};\n\nexports.toString = function(textReference) {\n\tvar title = textReference.title || '';\n\tif (textReference.field) {\n\t\treturn title + \"!!\" + textReference.field;\n\t} else if (textReference.index) {\n\t\treturn title + \"##\" + textReference.index;\n\t}\n\treturn title;\n};\n\nexports.canBePretty = function(title) {\n\treturn !title || (title.indexOf(\"!!\") < 0 && title.indexOf(\"##\") < 0);\n};\n",
+ "module-type": "relinkfieldtype",
+ "title": "$:/plugins/flibbles/relink/js/fieldtypes/reference.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/fieldtypes/title.js": {
+ "text": "/*\\\nThis specifies logic for replacing a single-tiddler field. This is the\nsimplest kind of field type. One title swaps out for the other.\n\\*/\n\n// NOTE TO MODDERS: If you're making your own field types, the name must be\n// alpha characters only.\nexports.name = 'title';\n\nexports.report = function(value, callback, options) {\n\tcallback(value);\n};\n\n/**Returns undefined if no change was made.\n */\nexports.relink = function(value, fromTitle, toTitle, options) {\n\tif (value === fromTitle) {\n\t\treturn {output: toTitle};\n\t}\n\treturn undefined;\n};\n\n// This is legacy support for when 'title' was known as 'field'\nexports.aliases = ['field', 'yes'];\n",
+ "module-type": "relinkfieldtype",
+ "title": "$:/plugins/flibbles/relink/js/fieldtypes/title.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/fieldtypes/wikitext.js": {
+ "text": "/*\\\nThis specifies logic for updating filters to reflect title changes.\n\\*/\n\nexports.name = \"wikitext\";\n\nvar type = 'text/vnd.tiddlywiki';\n\nvar WikiParser = require(\"$:/core/modules/parsers/wikiparser/wikiparser.js\")[type];\nvar Rebuilder = require(\"$:/plugins/flibbles/relink/js/utils/rebuilder.js\");\nvar utils = require('$:/plugins/flibbles/relink/js/utils');\nvar WikitextContext = utils.getContext('wikitext');\n\nfunction collectRules() {\n\tvar rules = Object.create(null);\n\t$tw.modules.forEachModuleOfType(\"relinkwikitextrule\", function(title, exports) {\n\t\tvar names = exports.name;\n\t\tif (typeof names === \"string\") {\n\t\t\tnames = [names];\n\t\t}\n\t\tif (names !== undefined) {\n\t\t\tfor (var i = 0; i < names.length; i++) {\n\t\t\t\trules[names[i]] = exports;\n\t\t\t}\n\t\t}\n\t});\n\treturn rules;\n}\n\nfunction WikiWalker(type, text, options) {\n\tthis.options = options;\n\tif (!this.relinkMethodsInjected) {\n\t\tvar rules = collectRules();\n\t\t$tw.utils.each([this.pragmaRuleClasses, this.blockRuleClasses, this.inlineRuleClasses], function(classList) {\n\t\t\tfor (var name in classList) {\n\t\t\t\tif (rules[name]) {\n\t\t\t\t\tdelete rules[name].name;\n\t\t\t\t\t$tw.utils.extend(classList[name].prototype, rules[name]);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tWikiWalker.prototype.relinkMethodsInjected = true;\n\t}\n\tthis.context = new WikitextContext(options.settings);\n\tWikiParser.call(this, type, text, options);\n};\n\nWikiWalker.prototype = Object.create(WikiParser.prototype);\n\nWikiWalker.prototype.parsePragmas = function() {\n\tvar entries = this.tree;\n\twhile (true) {\n\t\tthis.skipWhitespace();\n\t\tif (this.pos >= this.sourceLength) {\n\t\t\tbreak;\n\t\t}\n\t\tvar nextMatch = this.findNextMatch(this.pragmaRules, this.pos);\n\t\tif (!nextMatch || nextMatch.matchIndex !== this.pos) {\n\t\t\tbreak;\n\t\t}\n\t\tentries.push.apply(entries, this.handleRule(nextMatch));\n\t}\n\treturn entries;\n};\n\nWikiWalker.prototype.parseInlineRunUnterminated = function(options) {\n\tvar entries = [];\n\tvar nextMatch = this.findNextMatch(this.inlineRules, this.pos);\n\twhile (this.pos < this.sourceLength && nextMatch) {\n\t\tif (nextMatch.matchIndex > this.pos) {\n\t\t\tthis.pos = nextMatch.matchIndex;\n\t\t}\n\t\tentries.push.apply(entries, this.handleRule(nextMatch));\n\t\tnextMatch = this.findNextMatch(this.inlineRules, this.pos);\n\t}\n\tthis.pos = this.sourceLength;\n\treturn entries;\n};\n\nWikiWalker.prototype.parseInlineRunTerminated = function(terminatorRegExp,options) {\n\tvar entries = [];\n\toptions = options || {};\n\tterminatorRegExp.lastIndex = this.pos;\n\tvar terminatorMatch = terminatorRegExp.exec(this.source);\n\tvar inlineRuleMatch = this.findNextMatch(this.inlineRules,this.pos);\n\twhile(this.pos < this.sourceLength && (terminatorMatch || inlineRuleMatch)) {\n\t\tif (terminatorMatch) {\n\t\t\tif (!inlineRuleMatch || inlineRuleMatch.matchIndex >= terminatorMatch.index) {\n\t\t\t\tthis.pos = terminatorMatch.index;\n\t\t\t\tif (options.eatTerminator) {\n\t\t\t\t\tthis.pos += terminatorMatch[0].length;\n\t\t\t\t}\n\t\t\t\treturn entries;\n\t\t\t}\n\t\t}\n\t\tif (inlineRuleMatch) {\n\t\t\tif (inlineRuleMatch.matchIndex > this.pos) {\n\t\t\t\tthis.pos = inlineRuleMatch.matchIndex;\n\t\t\t}\n\t\t\tentries.push.apply(entries, this.handleRule(inlineRuleMatch));\n\t\t\tinlineRuleMatch = this.findNextMatch(this.inlineRules, this.pos);\n\t\t\tterminatorRegExp.lastIndex = this.pos;\n\t\t\tterminatorMatch = terminatorRegExp.exec(this.source);\n\t\t}\n\t}\n\tthis.pos = this.sourceLength;\n\treturn entries;\n\n};\n\nWikiWalker.prototype.parseBlock = function(terminatorRegExp) {\n\tvar terminatorRegExp = /(\\r?\\n\\r?\\n)/mg;\n\tthis.skipWhitespace();\n\tif (this.pos >= this.sourceLength) {\n\t\treturn [];\n\t}\n\tvar nextMatch = this.findNextMatch(this.blockRules, this.pos);\n\tif(nextMatch && nextMatch.matchIndex === this.pos) {\n\t\treturn this.handleRule(nextMatch);\n\t}\n\treturn this.parseInlineRun(terminatorRegExp);\n};\n\nWikiWalker.prototype.amendRules = function(type, names) {\n\tvar only;\n\tWikiParser.prototype.amendRules.call(this, type, names);\n\tif (type === \"only\") {\n\t\tonly = true;\n\t} else if (type === \"except\") {\n\t\tonly = false;\n\t} else {\n\t\treturn;\n\t}\n\tif (only !== (names.indexOf(\"macrodef\") >= 0) && this.options.macrodefCanBeDisabled) {\n\t\tthis.options.placeholder = undefined\n\t}\n\tif (only !== (names.indexOf(\"html\") >= 0)) {\n\t\tthis.context.allowWidgets = disabled;\n\t}\n\tif (only !== (names.indexOf(\"prettylink\") >= 0)) {\n\t\tthis.context.allowPrettylinks = disabled;\n\t}\n};\n\nfunction disabled() { return false; };\n\n/// Reporter\n\nfunction WikiReporter(type, text, callback, options) {\n\tthis.callback = callback;\n\tWikiWalker.call(this, type, text, options);\n};\n\nWikiReporter.prototype = Object.create(WikiWalker.prototype);\n\nWikiReporter.prototype.handleRule = function(ruleInfo) {\n\tif (ruleInfo.rule.report) {\n\t\truleInfo.rule.report(this.source, this.callback, this.options);\n\t} else {\n\t\tif (ruleInfo.rule.matchRegExp !== undefined) {\n\t\t\tthis.pos = ruleInfo.rule.matchRegExp.lastIndex;\n\t\t} else {\n\t\t\t// We can't easily determine the end of this\n\t\t\t// rule match. We'll \"parse\" it so that\n\t\t\t// parser.pos gets updated, but we throw away\n\t\t\t// the results.\n\t\t\truleInfo.rule.parse();\n\t\t}\n\t}\n};\n\nexports.report = function(wikitext, callback, options) {\n\t// Unfortunately it's the side-effect of creating this that reports.\n\tnew WikiReporter(options.type, wikitext, callback, options);\n};\n\n/// Relinker\n\nfunction WikiRelinker(type, text, fromTitle, toTitle, options) {\n\tthis.fromTitle = fromTitle;\n\tthis.toTitle = toTitle;\n\tthis.placeholder = options.placeholder;\n\tif (this.placeholder) {\n\t\tthis.placeholder.parser = this;\n\t}\n\tWikiWalker.call(this, type, text, options);\n};\n\nWikiRelinker.prototype = Object.create(WikiWalker.prototype);\n\nWikiRelinker.prototype.handleRule = function(ruleInfo) {\n\tif (ruleInfo.rule.relink) {\n\t\tvar start = ruleInfo.matchIndex;\n\t\tvar newEntry = ruleInfo.rule.relink(this.source, this.fromTitle, this.toTitle, this.options);\n\t\tif (newEntry !== undefined) {\n\t\t\tif (newEntry.output) {\n\t\t\t\tnewEntry.start = start;\n\t\t\t\tnewEntry.end = this.pos;\n\t\t\t}\n\t\t\treturn [newEntry];\n\t\t}\n\t} else {\n\t\tif (ruleInfo.rule.matchRegExp !== undefined) {\n\t\t\tthis.pos = ruleInfo.rule.matchRegExp.lastIndex;\n\t\t} else {\n\t\t\t// We can't easily determine the end of this\n\t\t\t// rule match. We'll \"parse\" it so that\n\t\t\t// parser.pos gets updated, but we throw away\n\t\t\t// the results.\n\t\t\truleInfo.rule.parse();\n\t\t}\n\t}\n\treturn [];\n};\n\nexports.relink = function(wikitext, fromTitle, toTitle, options) {\n\tvar parser = new WikiRelinker(options.type, wikitext, fromTitle, toTitle, options),\n\t\twikiEntry = undefined;\n\t// Now that we have an array of entries, let's produce the wikiText entry\n\t// containing them all.\n\tif (parser.tree.length > 0) {\n\t\tvar builder = new Rebuilder(wikitext);\n\t\twikiEntry = {};\n\t\tfor (var i = 0; i < parser.tree.length; i++) {\n\t\t\tvar entry = parser.tree[i];\n\t\t\tif (entry.impossible) {\n\t\t\t\twikiEntry.impossible = true;\n\t\t\t}\n\t\t\tif (entry.output) {\n\t\t\t\tbuilder.add(entry.output, entry.start, entry.end);\n\t\t\t}\n\t\t}\n\t\twikiEntry.output = builder.results();\n\t}\n\treturn wikiEntry;\n};\n",
+ "module-type": "relinkfieldtype",
+ "title": "$:/plugins/flibbles/relink/js/fieldtypes/wikitext.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/fields.js": {
+ "text": "/*\\\n\nHandles all fields specified in the plugin configuration. Currently, this\nonly supports single-value fields.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = 'fields';\n\nexports.report = function(tiddler, callback, options) {\n\tvar fields = options.settings.getFields();\n\t$tw.utils.each(fields, function(handler, field) {\n\t\tvar input = tiddler.fields[field];\n\t\tif (input) {\n\t\t\thandler.report(input, function(title, blurb) {\n\t\t\t\tif (blurb) {\n\t\t\t\t\tcallback(title, field + ': ' + blurb);\n\t\t\t\t} else {\n\t\t\t\t\tcallback(title, field);\n\t\t\t\t}\n\t\t\t}, options);\n\t\t}\n\t});\n};\n\nexports.relink = function(tiddler, fromTitle, toTitle, changes, options) {\n\tvar fields = options.settings.getFields();\n\t$tw.utils.each(fields, function(handler, field) {\n\t\tvar input = tiddler.fields[field];\n\t\tif (input) {\n\t\t\tvar entry = handler.relink(input, fromTitle, toTitle, options);\n\t\t\tif (entry !== undefined) {\n\t\t\t\tchanges[field] = entry;\n\t\t\t}\n\t\t}\n\t});\n};\n",
+ "module-type": "relinkoperator",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/fields.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text.js": {
+ "text": "/*\\\n\nDepending on the tiddler type, this will apply textOperators which may\nrelink titles within the body.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar defaultOperator = \"text/vnd.tiddlywiki\";\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\n\nexports.name = 'text';\n\nvar textOperators = utils.getModulesByTypeAsHashmap('relinktextoperator', 'type');\n\n// $:/DefaultTiddlers is a tiddler which has type \"text/vnd.tiddlywiki\",\n// but it lies. It doesn't contain wikitext. It contains a filter, so\n// we pretend it has a filter type.\n// If you want to be able to add more exceptions for your plugin, let me know.\nvar exceptions = {\n\t\"$:/DefaultTiddlers\": \"text/x-tiddler-filter\"\n};\n\nexports.report = function(tiddler, callback, options) {\n\tvar fields = tiddler.fields;\n\tif (fields.text) {\n\t\tvar type = exceptions[fields.title] || fields.type || defaultOperator;\n\t\tif (textOperators[type]) {\n\t\t\tvar entry = textOperators[type].report(tiddler, callback, options);\n\t\t}\n\t}\n};\n\nexports.relink = function(tiddler, fromTitle, toTitle, changes, options) {\n\tvar fields = tiddler.fields;\n\tif (fields.text) {\n\t\tvar type = exceptions[fields.title] || fields.type || defaultOperator;\n\t\tif (textOperators[type]) {\n\t\t\tvar entry = textOperators[type].relink(tiddler, fromTitle, toTitle, options);\n\t\t\tif (entry) {\n\t\t\t\tchanges.text = entry;\n\t\t\t}\n\t\t}\n\t}\n};\n",
+ "module-type": "relinkoperator",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/filtertext.js": {
+ "text": "/*\\\n\nThis relinks tiddlers which contain filters in their body, as oppose to\nwikitext.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar filterHandler = require(\"$:/plugins/flibbles/relink/js/utils\").getType('filter');\n\nexports.type = 'text/x-tiddler-filter';\n\nexports.report = function(tiddler, callback, options) {\n\treturn filterHandler.report(tiddler.fields.text, callback, options);\n};\n\nexports.relink = function(tiddler, fromTitle, toTitle, options) {\n\treturn filterHandler.relink(tiddler.fields.text, fromTitle, toTitle, options)\n};\n",
+ "module-type": "relinktextoperator",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/filtertext.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext.js": {
+ "text": "/*\\\n\nChecks for fromTitle in a tiddler's text. If found, sees if it's relevant,\nand tries to swap it out if it is.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Placeholder = require(\"$:/plugins/flibbles/relink/js/utils/placeholder.js\");\nvar wikitextHandler = require('$:/plugins/flibbles/relink/js/utils.js').getType('wikitext');\n\nexports.type = 'text/vnd.tiddlywiki';\n\nexports.report = function(tiddler, callback, options) {\n\twikitextHandler.report(tiddler.fields.text, callback, options);\n};\n\nexports.relink = function(tiddler, fromTitle, toTitle, options) {\n\tvar placeholder = new Placeholder();\n\tvar currentOptions = Object.create(options);\n\tcurrentOptions.placeholder = placeholder;\n\tvar entry = wikitextHandler.relink(tiddler.fields.text, fromTitle, toTitle, currentOptions);\n\tif (entry && entry.output) {\n\t\t// If there's output, we've also got to prepend any macros\n\t\t// that the placeholder defined.\n\t\tvar preamble = placeholder.getPreamble();\n\t\tentry.output = preamble + entry.output;\n\t}\n\treturn entry;\n};\n",
+ "module-type": "relinktextoperator",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/code.js": {
+ "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles code blocks. Or rather //doesn't// handle them, since we should\nignore their contents.\n\n\"`` [[Renamed Title]] ``\" will remain unchanged.\n\n\\*/\n\nexports.name = [\"codeinline\", \"codeblock\"];\n\nexports.relink = function(text) {\n\tvar reEnd;\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// I'm lazy. This relink method works for both codeblock and codeinline\n\tif (this.match[0].length > 2) {\n\t\t// Must be a codeblock\n\t\treEnd = /\\r?\\n```$/mg;\n\t} else {\n\t\t// Must be a codeinline\n\t\treEnd = new RegExp(this.match[1], \"mg\");\n\t}\n\treEnd.lastIndex = this.parser.pos;\n\tvar match = reEnd.exec(text);\n\tif (match) {\n\t\tthis.parser.pos = match.index + match[0].length;\n\t} else {\n\t\tthis.parser.pos = this.parser.sourceLength;\n\t}\n\treturn undefined;\n};\n\n// Same thing. Just skip the pos ahead.\nexports.report = exports.relink;\n",
+ "module-type": "relinkwikitextrule",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/code.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/comment.js": {
+ "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles comment blocks. Or rather //doesn't// handle them, since we should\nignore their contents.\n\n\"<!-- [[Renamed Title]] -->\" will remain unchanged.\n\n\\*/\n\nexports.name = [\"commentinline\", \"commentblock\"];\n\nexports.relink = function(text) {\n\tthis.parser.pos = this.endMatchRegExp.lastIndex;\n\treturn undefined;\n};\n\nexports.report = exports.relink;\n",
+ "module-type": "relinkwikitextrule",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/comment.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/filteredtransclude.js": {
+ "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles replacement of filtered transclusions in wiki text like,\n\n{{{ [tag[docs]] }}}\n{{{ [tag[docs]] |tooltip}}}\n{{{ [tag[docs]] ||TemplateTitle}}}\n{{{ [tag[docs]] |tooltip||TemplateTitle}}}\n{{{ [tag[docs]] }}width:40;height:50;}.class.class\n\nThis renames both the list and the template field.\n\n\\*/\n\nexports.name = ['filteredtranscludeinline', 'filteredtranscludeblock'];\n\nvar filterHandler = require(\"$:/plugins/flibbles/relink/js/utils\").getType('filter');\nvar utils = require(\"./utils.js\");\n\nexports.report = function(text, callback, options) {\n\tvar m = this.match,\n\t\tfilter = m[1],\n\t\ttemplate = $tw.utils.trim(m[3]),\n\t\tappend = template ? '||' + template + '}}}' : '}}}';\n\tfilterHandler.report(filter, function(title, blurb) {\n\t\tcallback(title, '{{{' + blurb + append);\n\t}, options);\n\tif (template) {\n\t\tcallback(template, '{{{' + $tw.utils.trim(filter).replace(/\\r?\\n/mg, ' ') + '||}}}');\n\t}\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar m = this.match,\n\t\tfilter = m[1],\n\t\ttooltip = m[2],\n\t\ttemplate = m[3],\n\t\tstyle = m[4],\n\t\tclasses = m[5],\n\t\tparser = this.parser,\n\t\tentry = {};\n\tparser.pos = this.matchRegExp.lastIndex;\n\tvar modified = false;\n\n\tvar filterEntry = filterHandler.relink(filter, fromTitle, toTitle, options);\n\tif (filterEntry !== undefined) {\n\t\tif (filterEntry.output) {\n\t\t\tfilter = filterEntry.output;\n\t\t\tmodified = true;\n\t\t}\n\t\tif (filterEntry.impossible) {\n\t\t\tentry.impossible = true;\n\t\t}\n\t}\n\n\tif ($tw.utils.trim(template) === fromTitle) {\n\t\t// preserves user-inputted whitespace\n\t\ttemplate = template.replace(fromTitle, toTitle);\n\t\tmodified = true;\n\t}\n\tif (!modified) {\n\t\tif (!entry.impossible) {\n\t\t\treturn undefined;\n\t\t}\n\t} else {\n\t\tvar output = this.makeFilteredtransclude(this.parser, filter, tooltip, template, style, classes);\n\t\tif (output === undefined) {\n\t\t\tentry.impossible = true;\n\t\t} else {\n\t\t\t// By copying over the ending newline of the original\n\t\t\t// text if present, thisrelink method thus works for\n\t\t\t// both the inline and block rule\n\t\t\tentry.output = output + utils.getEndingNewline(m[0]);\n\t\t}\n\t}\n\treturn entry;\n};\n\nexports.makeFilteredtransclude = function(parser, filter, tooltip, template, style, classes) {\n\tif (canBePretty(filter) && canBePrettyTemplate(template)) {\n\t\treturn prettyList(filter, tooltip, template, style, classes);\n\t}\n\tif (classes !== undefined) {\n\t\tclasses = classes.split('.').join(' ');\n\t}\n\treturn utils.makeWidget(parser, '$list', {\n\t\tfilter: filter,\n\t\ttooltip: tooltip,\n\t\ttemplate: template,\n\t\tstyle: style || undefined,\n\t\titemClass: classes});\n};\n\nfunction prettyList(filter, tooltip, template, style, classes) {\n\tif (tooltip === undefined) {\n\t\ttooltip = '';\n\t} else {\n\t\ttooltip = \"|\" + tooltip;\n\t}\n\tif (template === undefined) {\n\t\ttemplate = '';\n\t} else {\n\t\ttemplate = \"||\" + template;\n\t}\n\tif (classes === undefined) {\n\t\tclasses = '';\n\t} else {\n\t\tclasses = \".\" + classes;\n\t}\n\tstyle = style || '';\n\treturn \"{{{\"+filter+tooltip+template+\"}}\"+style+\"}\"+classes;\n};\n\nfunction canBePretty(filter) {\n\treturn filter.indexOf('|') < 0 && filter.indexOf('}}') < 0;\n};\n\nfunction canBePrettyTemplate(template) {\n\treturn !template || (\n\t\ttemplate.indexOf('|') < 0\n\t\t&& template.indexOf('{') < 0\n\t\t&& template.indexOf('}') < 0);\n};\n",
+ "module-type": "relinkwikitextrule",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/filteredtransclude.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html.js": {
+ "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles replacement in attributes of widgets and html elements\nThis is configurable to select exactly which attributes of which elements\nshould be changed.\n\n<$link to=\"TiddlerTitle\" />\n\n\\*/\n\nvar utils = require(\"./utils.js\");\nvar Rebuilder = require(\"$:/plugins/flibbles/relink/js/utils/rebuilder\");\nvar relinkUtils = require('$:/plugins/flibbles/relink/js/utils.js');\nvar refHandler = relinkUtils.getType('reference');\nvar filterHandler = relinkUtils.getType('filter');\nvar ImportContext = relinkUtils.getContext('import');\nvar macrocall = require(\"./macrocall.js\");\n\nexports.name = \"html\";\n\nexports.report = function(text, callback, options) {\n\tvar managedElement = this.parser.context.getAttribute(this.nextTag.tag);\n\tvar importFilterAttr;\n\tvar element = this.nextTag.tag;\n\tfor (var attributeName in this.nextTag.attributes) {\n\t\tvar attr = this.nextTag.attributes[attributeName];\n\t\tvar nextEql = text.indexOf('=', attr.start);\n\t\t// This is the rare case of changing tiddler\n\t\t// \"true\" to something else when \"true\" is\n\t\t// implicit, like <$link to /> We ignore those.\n\t\tif (nextEql < 0 || nextEql > attr.end) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (this.nextTag.tag === \"$importvariables\" && attributeName === \"filter\") {\n\t\t\timportFilterAttr = attr;\n\t\t}\n\t\tvar oldLength, quotedValue = undefined, entry;\n\t\tif (attr.type === \"string\") {\n\t\t\tvar handler = getAttributeHandler(this.parser.context, this.nextTag, attributeName, options);\n\t\t\tif (!handler) {\n\t\t\t\t// We don't manage this attribute. Bye.\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\thandler.report(attr.value, function(title, blurb) {\n\t\t\t\tif (blurb) {\n\t\t\t\t\tcallback(title, '<' + element + ' ' + attributeName + '=\"' + blurb + '\" />');\n\t\t\t\t} else {\n\t\t\t\t\tcallback(title, '<' + element + ' ' + attributeName + ' />');\n\t\t\t\t}\n\t\t\t}, options);\n\t\t} else if (attr.type === \"indirect\") {\n\t\t\tentry = refHandler.report(attr.textReference, function(title, blurb) {\n\t\t\t\tcallback(title, '<' + element + ' ' + attributeName + '={{' + (blurb || '') + '}} />');\n\t\t\t}, options);\n\t\t} else if (attr.type === \"filtered\") {\n\t\t\tentry = filterHandler.report(attr.filter, function(title, blurb) {\n\t\t\t\tcallback(title, '<' + element + ' ' + attributeName + '={{{' + blurb + '}}} />');\n\t\t\t}, options);\n\t\t} else if (attr.type === \"macro\") {\n\t\t\tvar macro = attr.value;\n\t\t\tentry = macrocall.reportAttribute(this.parser, macro, function(title, blurb) {\n\t\t\t\tcallback(title, '<' + element + ' ' + attributeName + '=' + blurb + ' />');\n\t\t\t}, options);\n\t\t}\n\t\tif (quotedValue === undefined) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (this.nextTag.tag === \"$importvariables\" && attributeName === \"filter\") {\n\t\t\t// If this is an import variable filter, we gotta\n\t\t\t// remember this new value when we import lower down.\n\t\t\timportFilterAttr = quotedValue;\n\t\t}\n\t}\n\tif (importFilterAttr) {\n\t\tprocessImportFilter(this.parser, importFilterAttr, options);\n\t}\n\tthis.parse();\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar managedElement = this.parser.context.getAttribute(this.nextTag.tag),\n\t\tbuilder = new Rebuilder(text, this.nextTag.start);\n\tvar importFilterAttr;\n\tvar widgetEntry = {};\n\twidgetEntry.attributes = Object.create(null);\n\twidgetEntry.element = this.nextTag.tag;\n\tfor (var attributeName in this.nextTag.attributes) {\n\t\tvar attr = this.nextTag.attributes[attributeName];\n\t\tvar nextEql = text.indexOf('=', attr.start);\n\t\t// This is the rare case of changing tiddler\n\t\t// \"true\" to something else when \"true\" is\n\t\t// implicit, like <$link to /> We ignore those.\n\t\tif (nextEql < 0 || nextEql > attr.end) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (this.nextTag.tag === \"$importvariables\" && attributeName === \"filter\") {\n\t\t\timportFilterAttr = attr;\n\t\t}\n\t\tvar oldLength, quotedValue = undefined, entry;\n\t\tvar nestedOptions = Object.create(options);\n\t\tnestedOptions.settings = this.parser.context;\n\t\tswitch (attr.type) {\n\t\tcase 'string':\n\t\t\tvar handler = getAttributeHandler(this.parser.context, this.nextTag, attributeName, options);\n\t\t\tif (!handler) {\n\t\t\t\t// We don't manage this attribute. Bye.\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tentry = handler.relink(attr.value, fromTitle, toTitle, nestedOptions);\n\t\t\tif (entry === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (entry.output) {\n\t\t\t\tvar quote = utils.determineQuote(text, attr);\n\t\t\t\toldLength = attr.value.length + (quote.length * 2);\n\t\t\t\tquotedValue = utils.wrapAttributeValue(entry.output,quote);\n\t\t\t\tif (quotedValue === undefined) {\n\t\t\t\t\t// The value was unquotable. We need to make\n\t\t\t\t\t// a macro in order to replace it.\n\t\t\t\t\tif (!options.placeholder) {\n\t\t\t\t\t\t// but we can't...\n\t\t\t\t\t\tentry.impossible = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar value = options.placeholder.getPlaceholderFor(entry.output,handler.name)\n\t\t\t\t\t\tquotedValue = \"<<\"+value+\">>\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'indirect':\n\t\t\tentry = refHandler.relinkInBraces(attr.textReference, fromTitle, toTitle, options);\n\t\t\tif (entry === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (entry.output) {\n\t\t\t\t// +4 for '{{' and '}}'\n\t\t\t\toldLength = attr.textReference.length + 4;\n\t\t\t\tquotedValue = \"{{\"+entry.output+\"}}\";\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'filtered':\n\t\t\tentry = filterHandler.relinkInBraces(attr.filter, fromTitle, toTitle, options);\n\t\t\tif (entry === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (entry.output) {\n\t\t\t\t// +6 for '{{{' and '}}}'\n\t\t\t\toldLength = attr.filter.length + 6;\n\t\t\t\tquotedValue = \"{{{\"+ entry.output +\"}}}\";\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'macro':\n\t\t\tvar macro = attr.value;\n\t\t\tentry = macrocall.relinkAttribute(this.parser, macro, text, fromTitle, toTitle, options);\n\t\t\tif (entry === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (entry.output) {\n\t\t\t\t// already includes '<<' and '>>'\n\t\t\t\toldLength = macro.end-macro.start;\n\t\t\t\tquotedValue = entry.output;\n\t\t\t}\n\t\t}\n\t\tif (entry.impossible) {\n\t\t\twidgetEntry.impossible = true;\n\t\t}\n\t\tif (quotedValue === undefined) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (this.nextTag.tag === \"$importvariables\" && attributeName === \"filter\") {\n\t\t\t// If this is an import variable filter, we gotta\n\t\t\t// remember this new value when we import lower down.\n\t\t\timportFilterAttr = quotedValue;\n\t\t}\n\t\t// We count backwards from the end to preserve whitespace\n\t\tvar valueStart = attr.end - oldLength;\n\t\tbuilder.add(quotedValue, valueStart, attr.end);\n\t}\n\tif (importFilterAttr) {\n\t\tprocessImportFilter(this.parser, importFilterAttr, options);\n\t}\n\tvar tag = this.parse()[0];\n\tif (tag.children) {\n\t\tfor (var i = 0; i < tag.children.length; i++) {\n\t\t\tvar child = tag.children[i];\n\t\t\tif (child.output) {\n\t\t\t\tbuilder.add(child.output, child.start, child.end);\n\t\t\t}\n\t\t\tif (child.impossible) {\n\t\t\t\twidgetEntry.impossible = true;\n\t\t\t}\n\t\t}\n\t}\n\tif (builder.changed() || widgetEntry.impossible) {\n\t\twidgetEntry.output = builder.results(this.parser.pos);\n\t\treturn widgetEntry;\n\t}\n\treturn undefined;\n};\n\n/** Returns the field handler for the given attribute of the given widget.\n * If this returns undefined, it means we don't handle it. So skip.\n */\nfunction getAttributeHandler(context, widget, attributeName, options) {\n\tif (widget.tag === \"$macrocall\") {\n\t\tvar nameAttr = widget.attributes[\"$name\"];\n\t\tif (nameAttr) {\n\t\t\tvar macro = context.getMacro(nameAttr.value);\n\t\t\tif (macro) {\n\t\t\t\treturn macro[attributeName];\n\t\t\t}\n\t\t}\n\t} else {\n\t\tvar element = context.getAttribute(widget.tag);\n\t\tif (element) {\n\t\t\treturn element[attributeName];\n\t\t}\n\t}\n\treturn undefined;\n};\n\nfunction computeAttribute(context, attribute, options) {\n\tvar value;\n\tif(attribute.type === \"filtered\") {\n\t\tvar parentWidget = context.widget;\n\t\tvalue = options.wiki.filterTiddlers(attribute.filter,parentWidget)[0] || \"\";\n\t} else if(attribute.type === \"indirect\") {\n\t\tvar parentWidget = context.widget;\n\t\tvalue = options.wiki.getTextReference(attribute.textReference,\"\",parentWidget.variables.currentTiddler.value);\n\t} else if(attribute.type === \"macro\") {\n\t\tvar parentWidget = context.widget;\n\t\tvalue = parentWidget.getVariable(attribute.value.name,{params: attribute.value.params});\n\t} else { // String attribute\n\t\tvalue = attribute.value;\n\t}\n\treturn value;\n};\n\n// This processes a <$importvariables> filter attribute and adds any new\n// variables to our parser.\nfunction processImportFilter(parser, importAttribute, options) {\n\tif (typeof importAttribute === \"string\") {\n\t\t// It was changed. Reparse it. It'll be a quoted\n\t\t// attribute value. Add a dummy attribute name.\n\t\timportAttribute = $tw.utils.parseAttribute(\"p=\"+importAttribute, 0)\n\t}\n\tvar context = parser.context;\n\tvar importFilter = computeAttribute(context, importAttribute, options);\n\tparser.context = new ImportContext(options.wiki, context, importFilter);\n};\n",
+ "module-type": "relinkwikitextrule",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/image.js": {
+ "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles replacement in wiki text inline rules, like,\n\n[img[tiddler.jpg]]\n\n[img width=23 height=24 [Description|tiddler.jpg]]\n\n\\*/\n\nvar Rebuilder = require(\"$:/plugins/flibbles/relink/js/utils/rebuilder\");\nvar refHandler = require(\"$:/plugins/flibbles/relink/js/fieldtypes/reference\");\nvar filterHandler = require(\"$:/plugins/flibbles/relink/js/utils\").getType('filter');\nvar macrocall = require(\"./macrocall.js\");\nvar utils = require(\"./utils.js\");\n\nexports.name = \"image\";\n\nexports.report = function(text, callback, options) {\n\tvar ptr = this.nextImage.start + 4; //[img\n\tvar inSource = false;\n\tfor (var attributeName in this.nextImage.attributes) {\n\t\tvar attr = this.nextImage.attributes[attributeName];\n\t\tif (attributeName === \"source\" || attributeName === \"tooltip\") {\n\t\t\tif (inSource) {\n\t\t\t\tptr = text.indexOf('|', ptr);\n\t\t\t} else {\n\t\t\t\tptr = text.indexOf('[', ptr);\n\t\t\t\tinSource = true;\n\t\t\t}\n\t\t\tptr += 1;\n\t\t}\n\t\tif (attributeName === \"source\") {\n\t\t\tvar tooltip = this.nextImage.attributes.tooltip;\n\t\t\tvar blurb = '[img[' + (tooltip ? tooltip.value : '') + ']]';\n\t\t\tcallback(attr.value, blurb);\n\t\t\tptr = text.indexOf(attr.value, ptr);\n\t\t\tptr = text.indexOf(']]', ptr) + 2;\n\t\t} else if (attributeName !== \"tooltip\") {\n\t\t\tptr = reportAttribute(this.parser, attr, callback, options);\n\t\t}\n\t}\n\tthis.parser.pos = ptr;\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar ptr = this.nextImage.start,\n\t\tbuilder = new Rebuilder(text, ptr),\n\t\tmakeWidget = false,\n\t\tskipSource = false,\n\t\timageEntry;\n\tif (this.nextImage.attributes.source.value === fromTitle && !canBePretty(toTitle, this.nextImage.attributes.tooltip)) {\n\t\tif (this.parser.context.allowWidgets() && (utils.wrapAttributeValue(toTitle) || options.placeholder)) {\n\t\t\tmakeWidget = true;\n\t\t\tbuilder.add(\"<$image\", ptr, ptr+4);\n\t\t} else {\n\t\t\t// We won't be able to make a placeholder to replace\n\t\t\t// the source attribute. We check now so we don't\n\t\t\t// prematurely convert into a widget.\n\t\t\t// Keep going in case other attributes need replacing.\n\t\t\tskipSource = true;\n\t\t}\n\t}\n\tptr += 4; //[img\n\tvar inSource = false;\n\tfor (var attributeName in this.nextImage.attributes) {\n\t\tvar attr = this.nextImage.attributes[attributeName];\n\t\tif (attributeName === \"source\" || attributeName === \"tooltip\") {\n\t\t\tif (inSource) {\n\t\t\t\tptr = text.indexOf('|', ptr);\n\t\t\t} else {\n\t\t\t\tptr = text.indexOf('[', ptr);\n\t\t\t\tinSource = true;\n\t\t\t}\n\t\t\tif (makeWidget) {\n\t\t\t\tif (\" \\t\\n\".indexOf(text[ptr-1]) >= 0) {\n\t\t\t\t\tbuilder.add('', ptr, ptr+1);\n\t\t\t\t} else {\n\t\t\t\t\tbuilder.add(' ', ptr, ptr+1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tptr += 1;\n\t\t}\n\t\tif (attributeName === \"source\") {\n\t\t\tptr = text.indexOf(attr.value, ptr);\n\t\t\tif (attr.value === fromTitle) {\n\t\t\t\tif (makeWidget) {\n\t\t\t\t\tvar quotedValue = utils.wrapAttributeValue(toTitle);\n\t\t\t\t\tif (quotedValue === undefined) {\n\t\t\t\t\t\tvar key = options.placeholder.getPlaceholderFor(toTitle);\n\t\t\t\t\t\tbuilder.add(\"source=<<\"+key+\">>\", ptr, ptr+fromTitle.length);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbuilder.add(\"source=\"+quotedValue, ptr, ptr+fromTitle.length);\n\t\t\t\t\t}\n\t\t\t\t} else if (!skipSource) {\n\t\t\t\t\tbuilder.add(toTitle, ptr, ptr+fromTitle.length);\n\t\t\t\t} else {\n\t\t\t\t\tbuilder.impossible = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tptr = text.indexOf(']]', ptr);\n\t\t\tif (makeWidget) {\n\t\t\t\tbuilder.add(\"/>\", ptr, ptr+2);\n\t\t\t}\n\t\t\tptr += 2;\n\t\t} else if (attributeName === \"tooltip\") {\n\t\t\tif (makeWidget) {\n\t\t\t\tptr = text.indexOf(attr.value, ptr);\n\t\t\t\tvar quotedValue = utils.wrapAttributeValue(attr.value);\n\t\t\t\tbuilder.add(\"tooltip=\"+quotedValue, ptr, ptr+attr.value.length);\n\t\t\t}\n\t\t} else {\n\t\t\tptr = relinkAttribute(this.parser, attr, builder, fromTitle, toTitle, options);\n\t\t}\n\t}\n\tthis.parser.pos = ptr;\n\tif (builder.changed() || builder.impossible) {\n\t\timageEntry = {\n\t\t\toutput: builder.results(ptr),\n\t\t\timpossible: builder.impossible };\n\t}\n\treturn imageEntry;\n};\n\nfunction reportAttribute(parser, attribute, callback, options) {\n\tvar text = parser.source;\n\tvar ptr = text.indexOf(attribute.name, attribute.start);\n\tvar end;\n\tptr += attribute.name.length;\n\tptr = text.indexOf('=', ptr);\n\tif (attribute.type === \"string\") {\n\t\tptr = text.indexOf(attribute.value, ptr)\n\t\tvar quote = utils.determineQuote(text, attribute);\n\t\t// ignore first quote. We already passed it\n\t\tend = ptr + quote.length + attribute.value.length;\n\t} else if (attribute.type === \"indirect\") {\n\t\tptr = text.indexOf('{{', ptr);\n\t\tvar end = ptr + attribute.textReference.length + 4;\n\t\trefHandler.report(attribute.textReference, function(title, blurb) {\n\t\t\tcallback(title, '[img ' + attribute.name + '={{' + (blurb || '') + '}}]');\n\t\t}, options);\n\t} else if (attribute.type === \"filtered\") {\n\t\tptr = text.indexOf('{{{', ptr);\n\t\tvar end = ptr + attribute.filter.length + 6;\n\t\tfilterHandler.report(attribute.filter, function(title, blurb) {\n\t\t\tcallback(title, '[img ' + attribute.name + '={{{' + blurb + '}}}]');\n\t\t}, options);\n\t} else if (attribute.type === \"macro\") {\n\t\tptr = text.indexOf(\"<<\", ptr);\n\t\tvar end = attribute.value.end;\n\t\tvar macro = attribute.value;\n\t\toldValue = attribute.value;\n\t\tmacrocall.reportAttribute(parser, macro, function(title, blurb) {\n\t\t\tcallback(title, '[img ' + attribute.name + '=' + blurb + ']');\n\t\t}, options);\n\t}\n\treturn end;\n};\n\nfunction relinkAttribute(parser, attribute, builder, fromTitle, toTitle, options) {\n\tvar text = builder.text;\n\tvar ptr = text.indexOf(attribute.name, attribute.start);\n\tvar end;\n\tptr += attribute.name.length;\n\tptr = text.indexOf('=', ptr);\n\tif (attribute.type === \"string\") {\n\t\tptr = text.indexOf(attribute.value, ptr)\n\t\tvar quote = utils.determineQuote(text, attribute);\n\t\t// ignore first quote. We already passed it\n\t\tend = ptr + quote.length + attribute.value.length;\n\t} else if (attribute.type === \"indirect\") {\n\t\tptr = text.indexOf('{{', ptr);\n\t\tvar end = ptr + attribute.textReference.length + 4;\n\t\tvar ref = refHandler.relinkInBraces(attribute.textReference, fromTitle, toTitle, options);\n\t\tif (ref) {\n\t\t\tif (ref.impossible) {\n\t\t\t\tbuilder.impossible = true;\n\t\t\t}\n\t\t\tif (ref.output) {\n\t\t\t\tbuilder.add(\"{{\"+ref.output+\"}}\", ptr, end);\n\t\t\t}\n\t\t}\n\t} else if (attribute.type === \"filtered\") {\n\t\tptr = text.indexOf('{{{', ptr);\n\t\tvar end = ptr + attribute.filter.length + 6;\n\t\tvar filter = filterHandler.relinkInBraces(attribute.filter, fromTitle, toTitle, options);\n\t\tif (filter !== undefined) {\n\t\t\tif (filter.impossible) {\n\t\t\t\tbuilder.impossible = true;\n\t\t\t}\n\t\t\tif (filter.output) {\n\t\t\t\tvar quoted = \"{{{\"+filter.output+\"}}}\";\n\t\t\t\tbuilder.add(quoted, ptr, end);\n\t\t\t}\n\t\t}\n\t} else if (attribute.type === \"macro\") {\n\t\tptr = text.indexOf(\"<<\", ptr);\n\t\tvar end = attribute.value.end;\n\t\tvar macro = attribute.value;\n\t\toldValue = attribute.value;\n\t\tvar macroEntry = macrocall.relinkAttribute(parser, macro, text, fromTitle, toTitle, options);\n\t\tif (macroEntry !== undefined) {\n\t\t\tif (macroEntry.impossible) {\n\t\t\t\tbuilder.impossible = true;\n\t\t\t}\n\t\t\tif (macroEntry.output) {\n\t\t\t\tbuilder.add(macroEntry.output, ptr, end);\n\t\t\t}\n\t\t}\n\t}\n\treturn end;\n};\n\nfunction canBePretty(title, tooltip) {\n\treturn title.indexOf(']') < 0 && (tooltip || title.indexOf('|') < 0);\n};\n",
+ "module-type": "relinkwikitextrule",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/image.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/import.js": {
+ "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles import pragmas\n\n\\import [tag[MyTiddler]]\n\\*/\n\nvar utils = require(\"$:/plugins/flibbles/relink/js/utils.js\");\nvar filterRelinker = utils.getType('filter');\nvar ImportContext = utils.getContext('import');\n\nexports.name = \"import\";\n\nexports.report = function(text, callback, options) {\n\t// This moves the pos for us\n\tvar parseTree = this.parse();\n\tvar filter = parseTree[0].attributes.filter.value || '';\n\tfilterRelinker.report(filter, function(title, blurb) {\n\t\tif (blurb) {\n\t\t\tblurb = '\\\\import ' + blurb;\n\t\t} else {\n\t\t\tblurb = '\\\\import';\n\t\t}\n\t\tcallback(title, blurb);\n\t}, options);\n\t// Before we go, we need to actually import the variables\n\t// it's calling for, and any /relink pragma\n\tthis.parser.context = new ImportContext(options.wiki, this.parser.context, filter);\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\t// In this one case, I'll let the parser parse out the filter and move\n\t// the ptr.\n\tvar start = this.matchRegExp.lastIndex,\n\t\tparseTree = this.parse(),\n\t\tfilter = parseTree[0].attributes.filter.value || '',\n\t\tentry = filterRelinker.relink(filter, fromTitle, toTitle, options);\n\tif (entry !== undefined && entry.output) {\n\t\tvar newline = text.substring(start+filter.length, this.parser.pos);\n\t\tfilter = entry.output;\n\t\tentry.output = \"\\\\import \" + filter + newline;\n\t}\n\n\t// Before we go, we need to actually import the variables\n\t// it's calling for, and any /relink pragma\n\tthis.parser.context = new ImportContext(options.wiki, this.parser.context, filter);\n\n\treturn entry;\n};\n",
+ "module-type": "relinkwikitextrule",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/import.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/macrocall.js": {
+ "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles macro calls.\n\n<<myMacro '[[MyFilter]]' 'myTitle'>>\n\n\\*/\n\nvar utils = require(\"./utils.js\");\nvar Rebuilder = require(\"$:/plugins/flibbles/relink/js/utils/rebuilder\");\nvar EntryNode = require('$:/plugins/flibbles/relink/js/utils/entry');\n\nexports.name = [\"macrocallinline\", \"macrocallblock\"];\n\n// Error thrown when a macro's definition is needed, but can't be found.\nfunction CannotFindMacroDef() {};\nCannotFindMacroDef.prototype.impossible = true;\nCannotFindMacroDef.prototype.name = \"macroparam\";\n// Failed relinks due to missing definitions aren't reported for now.\n// I may want to do something special later on.\nCannotFindMacroDef.prototype.report = function() { return []; };\n\nexports.report = function(text, callback, options) {\n\tvar macroInfo = getInfoFromRule(this);\n\tthis.parser.pos = macroInfo.end;\n\tthis.reportAttribute(this.parser, macroInfo, callback, options);\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar macroInfo = getInfoFromRule(this);\n\tvar managedMacro = this.parser.context.getMacro(macroInfo.name);\n\tthis.parser.pos = macroInfo.end;\n\tif (!managedMacro) {\n\t\t// We don't manage this macro. Bye.\n\t\treturn undefined;\n\t}\n\tvar mayBeWidget = this.parser.context.allowWidgets();\n\tvar names = getParamNames(this.parser, macroInfo.name, macroInfo.params, options);\n\tif (names === undefined) {\n\t\t// Needed the definition, and couldn't find it. So if a single\n\t\t// parameter needs to placeholder, just fail.\n\t\tmayBeWidget = false;\n\t}\n\tvar entry = relinkMacroInvocation(this.parser, macroInfo, text, fromTitle, toTitle, mayBeWidget, options);\n\tif (entry && entry.output) {\n\t\tentry.output = macroToString(entry.output, text, names, options);\n\t}\n\treturn entry;\n};\n\n/** Relinks macros that occur as attributes, like <$element attr=<<...>> />\n * Processes the same, except it can't downgrade into a widget if the title\n * is complicated.\n */\nexports.relinkAttribute = function(parser, macro, text, fromTitle, toTitle, options) {\n\tvar entry = relinkMacroInvocation(parser, macro, text, fromTitle, toTitle, false, options);\n\tif (entry && entry.output) {\n\t\tentry.output = macroToStringMacro(entry.output, text, options);\n\t}\n\treturn entry;\n};\n\n/** As in, report a macrocall invocation that is an html attribute. */\nexports.reportAttribute = function(parser, macro, callback, options) {\n\tvar managedMacro = parser.context.getMacro(macro.name);\n\tif (!managedMacro) {\n\t\t// We don't manage this macro. Bye.\n\t\treturn undefined;\n\t}\n\tfor (var managedArg in managedMacro) {\n\t\tvar index;\n\t\ttry {\n\t\t\tindex = getParamIndexWithinMacrocall(parser, macro.name, managedArg, macro.params, options);\n\t\t} catch (e) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (index < 0) {\n\t\t\t// The argument was not supplied. Move on to next.\n\t\t\tcontinue;\n\t\t}\n\t\tvar param = macro.params[index];\n\t\tvar handler = managedMacro[managedArg];\n\t\tvar nestedOptions = Object.create(options);\n\t\tnestedOptions.settings = parser.context;\n\t\tvar entry = handler.report(param.value, function(title, blurb) {\n\t\t\tvar rtn = managedArg;\n\t\t\tif (blurb) {\n\t\t\t\trtn += ': \"' + blurb + '\"';\n\t\t\t}\n\t\t\tcallback(title, '<<' + macro.name + ' ' + rtn + '>>');\n\t\t}, nestedOptions);\n\t}\n};\n\n/**Processes the given macro,\n * macro: {name:, params:, start:, end:}\n * each parameters: {name:, end:, value:}\n * Macro invocation returned is the same, but relinked, and may have new keys:\n * parameters: {type: macro, start:, newValue: (quoted replacement value)}\n * Output of the returned entry isn't a string, but a macro object. It needs\n * to be converted.\n */\nfunction relinkMacroInvocation(parser, macro, text, fromTitle, toTitle, mayBeWidget, options) {\n\tvar managedMacro = parser.context.getMacro(macro.name);\n\tvar modified = false;\n\tif (!managedMacro) {\n\t\t// We don't manage this macro. Bye.\n\t\treturn undefined;\n\t}\n\tvar outMacro = $tw.utils.extend({}, macro);\n\tvar macroEntry = {};\n\toutMacro.params = macro.params.slice();\n\tfor (var managedArg in managedMacro) {\n\t\tvar index;\n\t\ttry {\n\t\t\tindex = getParamIndexWithinMacrocall(parser, macro.name, managedArg, macro.params, options);\n\t\t} catch (e) {\n\t\t\tif (e instanceof CannotFindMacroDef) {\n\t\t\t\tmacroEntry.impossible = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tif (index < 0) {\n\t\t\t// this arg either was not supplied, or we can't find\n\t\t\t// the definition, so we can't tie it to an anonymous\n\t\t\t// argument. Either way, move on to the next.\n\t\t\tcontinue;\n\t\t}\n\t\tvar param = macro.params[index];\n\t\tvar handler = managedMacro[managedArg];\n\t\tvar nestedOptions = Object.create(options);\n\t\tnestedOptions.settings = parser.context;\n\t\tvar entry = handler.relink(param.value, fromTitle, toTitle, nestedOptions);\n\t\tif (entry === undefined) {\n\t\t\tcontinue;\n\t\t}\n\t\t// Macro parameters can only be string parameters, not\n\t\t// indirect, or macro, or filtered\n\t\tif (entry.impossible) {\n\t\t\tmacroEntry.impossible = true;\n\t\t}\n\t\tif (!entry.output) {\n\t\t\tcontinue;\n\t\t}\n\t\tvar quote = utils.determineQuote(text, param);\n\t\tvar quoted = utils.wrapParameterValue(entry.output, quote);\n\t\tvar newParam = $tw.utils.extend({}, param);\n\t\tif (quoted === undefined) {\n\t\t\tif (!mayBeWidget || !options.placeholder) {\n\t\t\t\tmacroEntry.impossible = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tvar ph = options.placeholder.getPlaceholderFor(entry.output,handler.name);\n\t\t\tnewParam.newValue = \"<<\"+ph+\">>\";\n\t\t\tnewParam.type = \"macro\";\n\t\t} else {\n\t\t\tnewParam.start = newParam.end - (newParam.value.length + (quote.length*2));\n\t\t\tnewParam.value = entry.output;\n\t\t\tnewParam.newValue = quoted;\n\t\t}\n\t\toutMacro.params[index] = newParam;\n\t\tmodified = true;\n\t}\n\tif (modified || macroEntry.impossible) {\n\t\tif (modified) {\n\t\t\tmacroEntry.output = outMacro;\n\t\t}\n\t\treturn macroEntry;\n\t}\n\treturn undefined;\n};\n\nfunction getInfoFromRule(rule) {\n\t// Get all the details of the match\n\tvar macroInfo = rule.nextCall;\n\tif (!macroInfo) {\n\t\t// rule.match is used <v5.1.24\n\t\tvar match = rule.match,\n\t\t\toffset = $tw.utils.skipWhiteSpace(match[0], match[1].length+2);\n\t\tmacroInfo = {\n\t\t\tname: match[1],\n\t\t\tstart: rule.matchRegExp.lastIndex - match[0].length,\n\t\t\tend: rule.matchRegExp.lastIndex,\n\t\t};\n\t\tmacroInfo.params = parseParams(match[2], offset+macroInfo.start);\n\t}\n\treturn macroInfo;\n};\n\nfunction mustBeAWidget(macro) {\n\tfor (var i = 0; i < macro.params.length; i++) {\n\t\tif (macro.params[i].type === \"macro\") {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false\n};\n\n/**Given a macro object ({name:, params:, start: end:}), and the text where\n * it was parsed from, returns a new macro that maintains any syntactic\n * structuring.\n */\nfunction macroToString(macro, text, names, options) {\n\tif (mustBeAWidget(macro)) {\n\t\tvar attrs = [];\n\t\tfor (var i = 0; i < macro.params.length; i++) {\n\t\t\tvar p = macro.params[i];\n\t\t\tvar val;\n\t\t\tif (p.newValue) {\n\t\t\t\tval = p.newValue;\n\t\t\t} else {\n\t\t\t\tval = utils.wrapAttributeValue(p.value);\n\t\t\t}\n\t\t\tattrs.push(\" \"+names[i]+\"=\"+val);\n\t\t}\n\t\treturn \"<$macrocall $name=\"+utils.wrapAttributeValue(macro.name)+attrs.join('')+\"/>\";\n\t} else {\n\t\treturn macroToStringMacro(macro, text, options);\n\t}\n};\n\nfunction macroToStringMacro(macro, text, options) {\n\tvar builder = new Rebuilder(text, macro.start);\n\tfor (var i = 0; i < macro.params.length; i++) {\n\t\tvar param = macro.params[i];\n\t\tif (param.newValue) {\n\t\t\tbuilder.add(param.newValue, param.start, param.end);\n\t\t}\n\t}\n\treturn builder.results(macro.end);\n};\n\n/** Returns -1 if param definitely isn't in macrocall.\n */\nfunction getParamIndexWithinMacrocall(parser, macroName, param, params, options) {\n\tvar index, i, anonsExist = false;\n\tfor (i = 0; i < params.length; i++) {\n\t\tvar name = params[i].name;\n\t\tif (name === param) {\n\t\t\treturn i;\n\t\t}\n\t\tif (name === undefined) {\n\t\t\tanonsExist = true;\n\t\t}\n\t}\n\tif (!anonsExist) {\n\t\t// If no anonymous parameters are present, and we didn't find\n\t\t// it among the named ones, it must not be there.\n\t\treturn -1;\n\t}\n\tvar expectedIndex = indexOfParameterDef(parser, macroName, param, options);\n\t// We've got to skip over all the named parameter instances.\n\tif (expectedIndex >= 0) {\n\t\tvar anonI = 0;\n\t\tfor (i = 0; i < params.length; i++) {\n\t\t\tif (params[i].name === undefined) {\n\t\t\t\tif (anonI === expectedIndex) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t\tanonI++;\n\t\t\t} else {\n\t\t\t\tvar indexOfOther = indexOfParameterDef(parser, macroName, params[i].name, options);\n\t\t\t\tif (indexOfOther < expectedIndex) {\n\t\t\t\t\tanonI++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn -1;\n};\n\n// Looks up the definition of a macro, and figures out what the expected index\n// is for the given parameter.\nfunction indexOfParameterDef(parser, macroName, paramName, options) {\n\tvar def = parser.context.getMacroDefinition(macroName);\n\tif (def === undefined) {\n\t\tthrow new CannotFindMacroDef();\n\t}\n\tvar params = def.params || [];\n\tfor (var i = 0; i < params.length; i++) {\n\t\tif (params[i].name === paramName) {\n\t\t\treturn i;\n\t\t}\n\t}\n\treturn -1;\n};\n\nfunction getParamNames(parser, macroName, params, options) {\n\tvar used = Object.create(null);\n\tvar rtn = new Array(params.length);\n\tvar anonsExist = false;\n\tvar i;\n\tfor (i = 0; i < params.length; i++) {\n\t\tvar name = params[i].name;\n\t\tif (name) {\n\t\t\trtn[i] = name;\n\t\t\tused[name] = true;\n\t\t} else {\n\t\t\tanonsExist = true;\n\t\t}\n\t}\n\tif (anonsExist) {\n\t\tvar def = parser.context.getMacroDefinition(macroName);\n\t\tif (def === undefined) {\n\t\t\t// If there are anonymous parameters, and we can't\n\t\t\t// find the definition, then we can't hope to create\n\t\t\t// a widget.\n\t\t\treturn undefined;\n\t\t}\n\t\tvar defParams = def.params || [];\n\t\tvar defPtr = 0;\n\t\tfor (i = 0; i < params.length; i++) {\n\t\t\tif (rtn[i] === undefined) {\n\t\t\t\twhile(defPtr < defParams.length && used[defParams[defPtr].name]) {\n\t\t\t\t\tdefPtr++;\n\t\t\t\t}\n\t\t\t\tif (defPtr >= defParams.length) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\trtn[i] = defParams[defPtr].name;\n\t\t\t\tused[defParams[defPtr].name] = true;\n\t\t\t}\n\t\t}\n\t}\n\treturn rtn;\n};\n\nfunction parseParams(paramString, pos) {\n\tvar params = [],\n\t\treParam = /\\s*(?:([A-Za-z0-9\\-_]+)\\s*:)?(?:\\s*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\"'\\s]+)))/mg,\n\t\tparamMatch = reParam.exec(paramString);\n\twhile(paramMatch) {\n\t\t// Process this parameter\n\t\tvar paramInfo = { };\n\t\t// We need to find the group match that isn't undefined.\n\t\tfor (var i = 2; i <= 6; i++) {\n\t\t\tif (paramMatch[i] !== undefined) {\n\t\t\t\tparamInfo.value = paramMatch[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(paramMatch[1]) {\n\t\t\tparamInfo.name = paramMatch[1];\n\t\t}\n\t\t//paramInfo.start = pos;\n\t\tparamInfo.end = reParam.lastIndex + pos;\n\t\tparams.push(paramInfo);\n\t\t// Find the next match\n\t\tparamMatch = reParam.exec(paramString);\n\t}\n\treturn params;\n};\n",
+ "module-type": "relinkwikitextrule",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/macrocall.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/macrodef.js": {
+ "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles pragma macro definitions. Except we only update placeholder macros\nthat we may have previously install.\n\n\\define relink-?() Tough title\n\n\\*/\n\nvar utils = require(\"$:/plugins/flibbles/relink/js/utils\");\nvar VariableContext = utils.getContext('variable');\n\nexports.name = \"macrodef\";\n\nexports.report = function(text, callback, options) {\n\tvar setParseTreeNode = this.parse(),\n\t\tm = this.match,\n\t\tname = m[1];\n\tthis.parser.context = new VariableContext(this.parser.context, setParseTreeNode[0]);\n\t// Parse set the pos pointer, but we don't want to skip the macro body.\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar endMatch = getBodyMatch(text, this.parser.pos, m[3]);\n\tif (endMatch) {\n\t\tvar value = endMatch[2],\n\t\t\thandler = utils.getType(getActiveType(name, m[2]) || 'wikitext');\n\t\tif (handler) {\n\t\t\tvar entry = handler.report(value, function(title, blurb) {\n\t\t\t\tvar macroStr = '\\\\define ' + name + '()';\n\t\t\t\tif (blurb) {\n\t\t\t\t\tmacroStr += ' ' + blurb;\n\t\t\t\t}\n\t\t\t\tcallback(title, macroStr);\n\t\t\t}, options);\n\t\t}\n\t\tthis.parser.pos = endMatch.index + endMatch[0].length;\n\t}\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar setParseTreeNode = this.parse(),\n\t\tentry,\n\t\tm = this.match,\n\t\tname = m[1],\n\t\tparams = m[2],\n\t\tmultiline = m[3];\n\tthis.parser.context = new VariableContext(this.parser.context, setParseTreeNode[0]);\n\t// Parse set the pos pointer, but we don't want to skip the macro body.\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar endMatch = getBodyMatch(text, this.parser.pos, multiline);\n\tif (endMatch) {\n\t\tvar value = endMatch[2],\n\t\t\ttype = getActiveType(name, params),\n\t\t\thandler = utils.getType(type || 'wikitext');\n\t\tif (handler) {\n\t\t\t// If this is an active relink placeholder, then let's remember it\n\t\t\tif (type && options.placeholder) {\n\t\t\t\toptions.placeholder.registerExisting(name, value);\n\t\t\t}\n\t\t\t// Relink the contents\n\t\t\tentry = handler.relink(value, fromTitle, toTitle, options);\n\t\t\tif (entry && entry.output) {\n\t\t\t\tentry.output = m[0] + endMatch[1] + entry.output + endMatch[0];\n\t\t\t}\n\t\t}\n\t\tthis.parser.pos = endMatch.index + endMatch[0].length;\n\t}\n\treturn entry;\n};\n\n// Return another match for the body, but tooled uniquely\n// m[1] = whitespace before body\n// m[2] = body\n// m.index + m[0].length -> end of match\nfunction getBodyMatch(text, pos, isMultiline) {\n\tvar whitespace,\n\t\tvalueRegExp;\n\tif (isMultiline) {\n\t\tvalueRegExp = /\\r?\\n\\\\end[^\\S\\n\\r]*(?:\\r?\\n|$)/mg;\n\t\twhitespace = '';\n\t} else {\n\t\tvalueRegExp = /(?:\\r?\\n|$)/mg;\n\t\tvar newPos = $tw.utils.skipWhiteSpace(text, pos);\n\t\twhitespace = text.substring(pos, newPos);\n\t\tpos = newPos;\n\t}\n\tvalueRegExp.lastIndex = pos;\n\tvar match = valueRegExp.exec(text);\n\tif (match) {\n\t\tmatch[1] = whitespace;\n\t\tmatch[2] = text.substring(pos, match.index);\n\t}\n\treturn match;\n};\n\nfunction getActiveType(macroName, parameters) {\n\tvar placeholder = /^relink-(?:(\\w+)-)?\\d+$/.exec(macroName);\n\t// normal macro or special placeholder?\n\tif (placeholder && parameters === '') {\n\t\treturn placeholder[1] || 'title';\n\t}\n\treturn undefined;\n};\n",
+ "module-type": "relinkwikitextrule",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/macrodef.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/prettylink.js": {
+ "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles replacement in wiki text inline rules, like,\n\n[[Introduction]]\n\n[[link description|TiddlerTitle]]\n\n\\*/\n\nvar utils = require(\"./utils.js\");\n\nexports.name = \"prettylink\";\n\nexports.report = function(text, callback, options) {\n\tvar text = this.match[1],\n\t\tlink = this.match[2] || text;\n\tif (!$tw.utils.isLinkExternal(link)) {\n\t\tcallback(link, '[[' + text + ']]');\n\t}\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar caption, m = this.match;\n\tif (m[2] === fromTitle) {\n\t\t// format is [[caption|MyTiddler]]\n\t\tcaption = m[1];\n\t} else if (m[2] !== undefined || m[1] !== fromTitle) {\n\t\t// format is [[MyTiddler]], and it doesn't match\n\t\treturn undefined;\n\t}\n\tvar entry = { output: utils.makePrettylink(this.parser, toTitle, caption) };\n\tif (entry.output === undefined) {\n\t\tentry.impossible = true;\n\t}\n\treturn entry;\n};\n",
+ "module-type": "relinkwikitextrule",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/prettylink.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/relink.js": {
+ "text": "/*\\\nmodule-type: wikirule\n\nThis defines the \\relink inline pragma used to locally declare\nrelink rules for macros.\n\nIt takes care of providing its own relink and report rules.\n\n\\*/\n\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\nvar language = require('$:/plugins/flibbles/relink/js/language.js');\n\nexports.name = \"relink\";\nexports.types = {pragma: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\tthis.matchRegExp = /^\\\\relink[^\\S\\n]+([^(\\s]+)([^\\r\\n]*)(\\r?\\n)?/mg;\n};\n\n/**This makes the widget that the macro library will later parse to determine\n * new macro relink state.\n *\n * It's a <$set> widget so it can appear BEFORE \\define pragma and not\n * prevent that pragma from being scooped up by importvariables.\n * (importvariables stops scooping as soon as it sees something besides $set) */\nexports.parse = function() {\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar macroName;\n\tvar macroParams = Object.create(null);\n\tvar error = undefined;\n\tvar rtn = [];\n\tvar self = this;\n\tthis.interpretSettings(function(macro, parameter, type) {\n\t\tmacroName = macro;\n\t\tif (type && !utils.getType(type)) {\n\t\t\terror = language.getString(\"Error/UnrecognizedType\",\n\t\t\t\t{variables: {type: type}, wiki: self.parser.wiki});\n\t\t}\n\t\tmacroParams[parameter] = type;\n\t});\n\t// If no macroname. Return nothing, this rule will be ignored by parsers\n\tif (macroName) {\n\t\tvar relink = Object.create(null);\n\t\trelink[macroName] = macroParams;\n\t\trtn.push({\n\t\t\ttype: \"set\",\n\t\t\tattributes: {\n\t\t\t\tname: {type: \"string\", value: \"\"}\n\t\t\t},\n\t\t\tchildren: [],\n\t\t\tisMacroDefinition: true,\n\t\t\trelink: relink});\n\t}\n\tif (error) {\n\t\trtn.push({\n\t\t\ttype: \"element\", tag: \"span\", attributes: {\n\t\t\t\t\"class\": {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tvalue: \"tc-error tc-relink-error\"\n\t\t\t\t}\n\t\t\t}, children: [\n\t\t\t\t{type: \"text\", text: error}\n\t\t\t]});\n\t}\n\treturn rtn;\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar parser = this.parser;\n\tvar currentTiddler = parser.context.widget.variables.currentTiddler.value;\n\tparser.pos = this.matchRegExp.lastIndex;\n\tthis.interpretSettings(function(macro, parameter, type) {\n\t\toptions.settings.addSetting(parser.wiki, macro, parameter, type, currentTiddler);\n\t});\n\t// Return nothing, because this rule is ignored by the parser\n\treturn undefined;\n};\n\nexports.interpretSettings = function(block) {\n\tvar paramString = this.match[2];\n\tif (paramString !== \"\") {\n\t\tvar macro = this.match[1];\n\t\tvar reParam = /\\s*([A-Za-z0-9\\-_]+)(?:\\s*:\\s*([^\\s]+))?/mg;\n\t\tvar paramMatch = reParam.exec(paramString);\n\t\twhile (paramMatch) {\n\t\t\tvar parameter = paramMatch[1];\n\t\t\tvar type = paramMatch[2];\n\t\t\tblock(macro, parameter, type);\n\t\t\tparamMatch = reParam.exec(paramString);\n\t\t}\n\t}\n};\n",
+ "module-type": "wikirule",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/relink.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/rules.js": {
+ "text": "/*\\\nmodule-type: relinkwikitextrule\n\nParses and acknowledges any pragma rules a tiddler has.\n\n\\rules except html wikilink\n\n\\*/\n\nexports.name = \"rules\";\n\n/**This is all we have to do. The rules rule doesn't parse. It just amends\n * the rules, which is exactly what I want it to do too.\n * It also takes care of moving the pos pointer forward.\n */\nexports.relink = function() {\n\tthis.parse();\n\treturn undefined;\n};\n\n// Same deal\nexports.report = exports.relink;\n",
+ "module-type": "relinkwikitextrule",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/rules.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/syslink.js": {
+ "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles sys links\n\n$:/sys/link\n\nbut not:\n\n~$:/sys/link\n\n\\*/\n\nvar utils = require(\"./utils.js\");\n\nexports.name = \"syslink\";\n\nexports.report = function(text, callback, options) {\n\tvar title = this.match[0];\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tif (title[0] !== \"~\") {\n\t\tcallback(title, '~' + title);\n\t}\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar entry = undefined;\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tif (this.match[0] === fromTitle && this.match[0][0] !== \"~\") {\n\t\tentry = {output: this.makeSyslink(toTitle, options)};\n\t\tif (entry.output === undefined) {\n\t\t\tentry.impossible = true;\n\t\t}\n\t}\n\treturn entry;\n};\n\nexports.makeSyslink = function(title, options) {\n\tvar match = title.match(this.matchRegExp);\n\tif (match && match[0] === title && title[0] !== \"~\") {\n\t\treturn title;\n\t} else {\n\t\treturn utils.makePrettylink(this.parser, title);\n\t}\n};\n",
+ "module-type": "relinkwikitextrule",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/syslink.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/transclude.js": {
+ "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles replacement of transclusions in wiki text like,\n\n{{RenamedTiddler}}\n{{RenamedTiddler||TemplateTitle}}\n\nThis renames both the tiddler and the template field.\n\n\\*/\n\nvar refHandler = require(\"$:/plugins/flibbles/relink/js/fieldtypes/reference\");\nvar utils = require(\"./utils.js\");\n\nexports.name = ['transcludeinline', 'transcludeblock'];\n\nexports.report = function(text, callback, options) {\n\tvar m = this.match,\n\t\trefString = $tw.utils.trim(m[1]),\n\t\tref = parseTextReference(refString);\n\t\ttemplate = $tw.utils.trim(m[2]);\n\tif (ref.title) {\n\t\tvar suffix = '';\n\t\tif (ref.index) {\n\t\t\tsuffix = '##' + ref.index;\n\t\t} else if (ref.field) {\n\t\t\tsuffix = '!!' + ref.field;\n\t\t}\n\t\tif (template) {\n\t\t\tsuffix = suffix + '||' + template;\n\t\t}\n\t\tcallback(ref.title, '{{' + suffix + '}}')\n\t}\n\tif (template) {\n\t\tcallback(template, '{{' + refString + '||}}');\n\t}\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar m = this.match,\n\t\treference = parseTextReference(m[1]),\n\t\ttemplate = m[2],\n\t\tentry = undefined,\n\t\tmodified = false;\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tif ($tw.utils.trim(reference.title) === fromTitle) {\n\t\t// preserve user's whitespace\n\t\treference.title = reference.title.replace(fromTitle, toTitle);\n\t\tmodified = true;\n\t}\n\tif ($tw.utils.trim(template) === fromTitle) {\n\t\ttemplate = template.replace(fromTitle, toTitle);\n\t\tmodified = true;\n\t}\n\tif (modified) {\n\t\tvar output = this.makeTransclude(this.parser, reference, template);\n\t\tif (output) {\n\t\t\t// Adding any newline that might have existed is\n\t\t\t// what allows this relink method to work for both\n\t\t\t// the block and inline filter wikitext rule.\n\t\t\tentry = {output: output + utils.getEndingNewline(m[0])};\n\t\t} else {\n\t\t\tentry = {impossible: true}\n\t\t}\n\t}\n\treturn entry;\n};\n\n// I have my own because the core one is deficient for my needs.\nfunction parseTextReference(textRef) {\n\t// Separate out the title, field name and/or JSON indices\n\tvar reTextRef = /^([\\w\\W]*?)(?:!!(\\S[\\w\\W]*)|##(\\S[\\w\\W]*))?$/g;\n\t\tmatch = reTextRef.exec(textRef),\n\t\tresult = {};\n\tif(match) {\n\t\t// Return the parts\n\t\tresult.title = match[1];\n\t\tresult.field = match[2];\n\t\tresult.index = match[3];\n\t} else {\n\t\t// If we couldn't parse it\n\t\tresult.title = textRef\n\t}\n\treturn result;\n};\n\n/** This converts a reference and a template into a string representation\n * of a transclude.\n */\nexports.makeTransclude = function(parser, reference, template) {\n\tvar rtn;\n\tif (!canBePrettyTemplate(template)) {\n\t\tvar widget = utils.makeWidget(parser, '$transclude', {\n\t\t\ttiddler: $tw.utils.trim(template),\n\t\t\tfield: reference.field,\n\t\t\tindex: reference.index});\n\t\tif (reference.title && widget !== undefined) {\n\t\t\trtn = utils.makeWidget(parser, '$tiddler', {tiddler: $tw.utils.trim(reference.title)}, widget);\n\t\t} else {\n\t\t\trtn = widget;\n\t\t}\n\t} else if (!canBePrettyTitle(reference.title)) {\n\t\t// This block and the next account for the 1%...\n\t\tvar reducedRef = {field: reference.field, index: reference.index};\n\t\trtn = utils.makeWidget(parser, '$tiddler', {tiddler: $tw.utils.trim(reference.title)}, prettyTransclude(reducedRef, template));\n\t} else {\n\t\t// This block takes care of 99% of all cases\n\t\trtn = prettyTransclude(reference, template);\n\t}\n\treturn rtn;\n};\n\nfunction canBePrettyTitle(value) {\n\treturn refHandler.canBePretty(value) && canBePrettyTemplate(value);\n};\n\nfunction canBePrettyTemplate(value) {\n\treturn !value || (value.indexOf('}') < 0 && value.indexOf('{') < 0 && value.indexOf('|') < 0);\n};\n\nfunction prettyTransclude(textReference, template) {\n\tif (typeof textReference !== \"string\") {\n\t\ttextReference = refHandler.toString(textReference);\n\t}\n\tif (!textReference) {\n\t\ttextReference = '';\n\t}\n\tif (template !== undefined) {\n\t\treturn \"{{\"+textReference+\"||\"+template+\"}}\";\n\t} else {\n\t\treturn \"{{\"+textReference+\"}}\";\n\t}\n};\n",
+ "module-type": "relinkwikitextrule",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/transclude.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/utils.js": {
+ "text": "/*\\\nmodule-type: library\n\nUtility methods for the wikitext relink rules.\n\n\\*/\n\nexports.makeWidget = function(parser, tag, attributes, body) {\n\tif (!parser.context.allowWidgets()) {\n\t\treturn undefined;\n\t}\n\tvar string = '<' + tag;\n\tfor (var attr in attributes) {\n\t\tvar value = attributes[attr];\n\t\tif (value !== undefined) {\n\t\t\tvar quoted = exports.wrapAttributeValue(value);\n\t\t\tif (!quoted) {\n\t\t\t\tif (!parser.options.placeholder) {\n\t\t\t\t\t// It's not possible to make this widget\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t\tvar category = getPlaceholderCategory(parser.context, tag, attr);\n\t\t\t\tquoted = '<<' + parser.placeholder.getPlaceholderFor(value, category) + '>>';\n\t\t\t}\n\t\t\tstring += ' ' + attr + '=' + quoted;\n\t\t}\n\t}\n\tif (body !== undefined) {\n\t\tstring += '>' + body + '</' + tag + '>';\n\t} else {\n\t\tstring += '/>';\n\t}\n\treturn string;\n};\n\nfunction getPlaceholderCategory(context, tag, attribute) {\n\tvar element = context.getAttribute(tag);\n\tvar rule = element && element[attribute];\n\t// titles go to relink-\\d\n\t// plaintext goes to relink-plaintext-\\d\n\t// because titles are way more common, also legacy\n\tif (rule === undefined) {\n\t\treturn 'plaintext';\n\t} else {\n\t\trule = rule.fields.text;\n\t\tif (rule === 'title') {\n\t\t\trule = undefined;\n\t\t}\n\t\treturn rule;\n\t}\n};\n\nexports.makePrettylink = function(parser, title, caption) {\n\tvar output;\n\tif (parser.context.allowPrettylinks() && canBePrettylink(title, caption)) {\n\t\tif (caption !== undefined) {\n\t\t\toutput = \"[[\" + caption + \"|\" + title + \"]]\";\n\t\t} else {\n\t\t\toutput = \"[[\" + title + \"]]\";\n\t\t}\n\t} else if (caption !== undefined) {\n\t\tvar safeCaption = sanitizeCaption(parser, caption);\n\t\tif (safeCaption !== undefined) {\n\t\t\toutput = exports.makeWidget(parser, '$link', {to: title}, safeCaption);\n\t\t}\n\t} else if (exports.shorthandPrettylinksSupported(parser.wiki)) {\n\t\toutput = exports.makeWidget(parser, '$link', {to: title});\n\t} else if (parser.context.allowWidgets() && parser.placeholder) {\n\t\t// If we don't have a caption, we must resort to\n\t\t// placeholders anyway to prevent link/caption desync\n\t\t// from later relinks.\n\t\t// It doesn't matter whether the tiddler is quotable.\n\t\tvar ph = parser.placeholder.getPlaceholderFor(title);\n\t\toutput = \"<$link to=<<\"+ph+\">>><$text text=<<\"+ph+\">>/></$link>\";\n\t}\n\treturn output;\n};\n\n/**In version 5.1.20, Tiddlywiki made it so <$link to\"something\" /> would\n * use \"something\" as a caption. This is preferable. However, Relink works\n * going back to 5.1.14, so we need to have different handling for both\n * cases.\n */\nvar _supported;\nexports.shorthandPrettylinksSupported = function(wiki) {\n\tif (_supported === undefined) {\n\t\tvar test = wiki.renderText(\"text/plain\", \"text/vnd.tiddlywiki\", \"<$link to=test/>\");\n\t\t_supported = (test === \"test\");\n\t}\n\treturn _supported;\n};\n\n/**Return true if value can be used inside a prettylink.\n */\nfunction canBePrettylink(value, customCaption) {\n\treturn value.indexOf(\"]]\") < 0 && value[value.length-1] !== ']' && (customCaption !== undefined || value.indexOf('|') < 0);\n};\n\nfunction sanitizeCaption(parser, caption) {\n\tvar plaintext = parser.wiki.renderText(\"text/plain\", \"text/vnd.tiddlywiki\", caption);\n\tif (plaintext === caption && caption.indexOf(\"</$link>\") <= 0) {\n\t\treturn caption;\n\t} else {\n\t\treturn exports.makeWidget(parser, '$text', {text: caption});\n\t}\n};\n\n/**Finds an appropriate quote mark for a given value.\n *\n *Tiddlywiki doesn't have escape characters for attribute values. Instead,\n * we just have to find the type of quotes that'll work for the given title.\n * There exist titles that simply can't be quoted.\n * If it can stick with the preference, it will.\n *\n * return: Returns the wrapped value, or undefined if it's impossible to wrap\n */\nexports.wrapAttributeValue = function(value, preference) {\n\tvar whitelist = [\"\", \"'\", '\"', '\"\"\"'];\n\tvar choices = {\n\t\t\"\": function(v) {return !/([\\/\\s<>\"'=])/.test(v) && v.length > 0; },\n\t\t\"'\": function(v) {return v.indexOf(\"'\") < 0; },\n\t\t'\"': function(v) {return v.indexOf('\"') < 0; },\n\t\t'\"\"\"': function(v) {return v.indexOf('\"\"\"') < 0 && v[v.length-1] != '\"';}\n\t};\n\tif (choices[preference] && choices[preference](value)) {\n\t\treturn wrap(value, preference);\n\t}\n\tfor (var i = 0; i < whitelist.length; i++) {\n\t\tvar quote = whitelist[i];\n\t\tif (choices[quote](value)) {\n\t\t\treturn wrap(value, quote);\n\t\t}\n\t}\n\t// No quotes will work on this\n\treturn undefined;\n};\n\n/**Like wrapAttribute value, except for macro parameters, not attributes.\n *\n * These are more permissive. Allows brackets,\n * and slashes and '<' in unquoted values.\n */\nexports.wrapParameterValue = function(value, preference) {\n\tvar whitelist = [\"\", \"'\", '\"', '[[', '\"\"\"'];\n\tvar choices = {\n\t\t\"\": function(v) {return !/([\\s>\"'=])/.test(v); },\n\t\t\"'\": function(v) {return v.indexOf(\"'\") < 0; },\n\t\t'\"': function(v) {return v.indexOf('\"') < 0; },\n\t\t\"[[\": canBePrettyOperand,\n\t\t'\"\"\"': function(v) {return v.indexOf('\"\"\"') < 0 && v[v.length-1] != '\"';}\n\t};\n\tif (choices[preference] && choices[preference](value)) {\n\t\treturn wrap(value, preference);\n\t}\n\tfor (var i = 0; i < whitelist.length; i++) {\n\t\tvar quote = whitelist[i];\n\t\tif (choices[quote](value)) {\n\t\t\treturn wrap(value, quote);\n\t\t}\n\t}\n\t// No quotes will work on this\n\treturn undefined;\n};\n\nfunction wrap(value, wrapper) {\n\tvar wrappers = {\n\t\t\"\": function(v) {return v; },\n\t\t\"'\": function(v) {return \"'\"+v+\"'\"; },\n\t\t'\"': function(v) {return '\"'+v+'\"'; },\n\t\t'\"\"\"': function(v) {return '\"\"\"'+v+'\"\"\"'; },\n\t\t\"[[\": function(v) {return \"[[\"+v+\"]]\"; }\n\t};\n\tvar chosen = wrappers[wrapper];\n\tif (chosen) {\n\t\treturn chosen(value);\n\t} else {\n\t\treturn undefined;\n\t}\n};\n\nfunction canBePrettyOperand(value) {\n\treturn value.indexOf(']') < 0;\n};\n\n/**Given some text, and a param or attribute within that text, this returns\n * what type of quotation that attribute is using.\n *\n * param: An object in the form {end:, ...}\n */\nexports.determineQuote = function(text, param) {\n\tvar pos = param.end-1;\n\tif (text[pos] === \"'\") {\n\t\treturn \"'\";\n\t}\n\tif (text[pos] === '\"') {\n\t\tif (text.substr(pos-2, 3) === '\"\"\"') {\n\t\t\treturn '\"\"\"';\n\t\t} else {\n\t\t\treturn '\"';\n\t\t}\n\t}\n\tif (text.substr(pos-1,2) === ']]' && text.substr((pos-param.value.length)-3, 2) === '[[') {\n\t\treturn \"[[\";\n\t}\n\treturn '';\n};\n\n// Finds the newline at the end of a string and returns it. Empty string if\n// none exists.\nexports.getEndingNewline = function(string) {\n\tvar l = string.length;\n\tif (string[l-1] === '\\n') {\n\t\treturn (string[l-2] === '\\r') ? \"\\r\\n\" : \"\\n\";\n\t}\n\treturn \"\";\n};\n",
+ "module-type": "library",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/utils.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/wikilink.js": {
+ "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles CamelCase links\n\nWikiLink\n\nbut not:\n\n~WikiLink\n\n\\*/\n\nvar utils = require(\"./utils.js\");\n\nexports.name = \"wikilink\";\n\nexports.report = function(text, callback, options) {\n\tvar title = this.match[0],\n\t\tunlink = $tw.config.textPrimitives.unWikiLink;\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tif (title[0] !== unlink) {\n\t\tcallback(title, unlink + title);\n\t}\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar entry = undefined,\n\t\ttitle = this.match[0];\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tif (title === fromTitle && title[0] !== $tw.config.textPrimitives.unWikiLink) {\n\t\tentry = { output: this.makeWikilink(toTitle, options) };\n\t\tif (entry.output === undefined) {\n\t\t\tentry.impossible = true;\n\t\t}\n\t}\n\treturn entry;\n};\n\nexports.makeWikilink = function(title, options) {\n\tif (title.match(this.matchRegExp) && title[0] !== $tw.config.textPrimitives.unWikiLink) {\n\t\treturn title;\n\t} else {\n\t\treturn utils.makePrettylink(this.parser, title);\n\t}\n};\n",
+ "module-type": "relinkwikitextrule",
+ "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/wikilink.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/contexts/context.js": {
+ "text": "/*\\\n\nBase class for relink contexts.\n\n\\*/\n\nfunction Context() {\n};\n\nexports.context = Context;\n\n// This class does no special handling of fields, operators, or attributes.\n// we pass it along to the parent.\nContext.prototype.getFields = function() {\n\treturn this.parent.getFields();\n};\n\nContext.prototype.getOperator = function(name, index) {\n\treturn this.parent.getOperator(name, index);\n};\n\nContext.prototype.getOperators = function() {\n\treturn this.parent.getOperators();\n};\n\nContext.prototype.getAttribute = function(elementName) {\n\treturn this.parent.getAttribute(elementName);\n};\n\nContext.prototype.getAttributes = function() {\n\treturn this.parent.getAttributes();\n};\n\nContext.prototype.getMacro = function(macroName) {\n\treturn this.parent.getMacro(macroName);\n};\n\nContext.prototype.getMacros = function() {\n\treturn this.parent.getMacros();\n};\n\nContext.prototype.allowPrettylinks = function() {\n\treturn this.parent.allowPrettylinks();\n};\n\nContext.prototype.allowWidgets = function() {\n\treturn this.parent.allowWidgets();\n};\n\nContext.prototype.hasImports = function(value) {\n\treturn this.parent.hasImports(value);\n};\n",
+ "module-type": "relinkcontext",
+ "title": "$:/plugins/flibbles/relink/js/contexts/context.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/contexts/import.js": {
+ "text": "/*\\\n\nThis handles the fetching and distribution of relink settings.\n\n\\*/\n\nvar WidgetContext = require('./widget').widget;\n\nfunction ImportContext(wiki, parent, filter) {\n\tthis.parent = parent;\n\tthis.wiki = wiki;\n\tvar importWidget = createImportWidget(filter, this.wiki, this.parent.widget);\n\tthis._compileList(importWidget.tiddlerList);\n\t// This only works if only one filter is imported\n\tthis.widget = this.getBottom(importWidget);\n\t// Trickle this up, so that any containing tiddlercontext knows that this\n\t// tiddler does some importing, and must be checked regularly.\n\tparent.hasImports(true);\n};\n\nexports.import = ImportContext;\n\nImportContext.prototype = new WidgetContext();\n\nImportContext.prototype.changed = function(changes) {\n\treturn this.widget && this.widget.refresh(changes)\n};\n\nfunction createImportWidget(filter, wiki, parent) {\n\tvar widget = wiki.makeWidget( { tree: [{\n\t\ttype: \"importvariables\",\n\t\tattributes: {\n\t\t\t\"filter\": {\n\t\t\t\ttype: \"string\",\n\t\t\t\tvalue: filter\n\t\t\t}\n\t\t}\n\t}] }, { parentWidget: parent} );\n\tif (parent) {\n\t\tparent.children.push(widget);\n\t}\n\twidget.execute();\n\twidget.renderChildren();\n\tvar importWidget = widget.children[0];\n\treturn importWidget;\n};\n\nImportContext.prototype._compileList = function(titleList) {\n\tfor (var i = 0; i < titleList.length; i++) {\n\t\tvar parser = this.wiki.parseTiddler(titleList[i]);\n\t\tif (parser) {\n\t\t\tvar parseTreeNode = parser.tree[0];\n\t\t\twhile (parseTreeNode && parseTreeNode.type === \"set\") {\n\t\t\t\tif (parseTreeNode.relink) {\n\t\t\t\t\tfor (var macroName in parseTreeNode.relink) {\n\t\t\t\t\t\tvar parameters = parseTreeNode.relink[macroName];\n\t\t\t\t\t\tfor (paramName in parameters) {\n\t\t\t\t\t\t\tthis.addSetting(this.wiki, macroName, paramName, parameters[paramName], titleList[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tparseTreeNode = parseTreeNode.children && parseTreeNode.children[0];\n\t\t\t}\n\t\t}\n\t}\n};\n",
+ "module-type": "relinkcontext",
+ "title": "$:/plugins/flibbles/relink/js/contexts/import.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/contexts/tiddler.js": {
+ "text": "/*\\\n\nContext for a tiddler. Defines nothing but makes an entry point to test if\na tiddler must be refreshed.\n\n\\*/\n\nvar WidgetContext = require('./widget.js').widget;\n\nfunction TiddlerContext(wiki, parentContext, title) {\n\tthis.title = title;\n\tthis.parent = parentContext;\n\tvar globalWidget = parentContext && parentContext.widget;\n\tvar parentWidget = wiki.makeWidget(null, {parentWidget: globalWidget});\n\tparentWidget.setVariable('currentTiddler', title);\n\tthis.widget = wiki.makeWidget(null, {parentWidget: parentWidget});\n};\n\nexports.tiddler = TiddlerContext;\n\nTiddlerContext.prototype = new WidgetContext();\n\nTiddlerContext.prototype.changed = function(changes) {\n\treturn this.widget && this.widget.refresh(changes);\n};\n\n// By default, a tiddler context does not use imports, unless an import\n// statement is later discovered somewhere in the fields.\nTiddlerContext.prototype.hasImports = function(value) {\n\treturn this._hasImports || (this._hasImports = value);\n};\n",
+ "module-type": "relinkcontext",
+ "title": "$:/plugins/flibbles/relink/js/contexts/tiddler.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/contexts/variable.js": {
+ "text": "/*\\\n\nThis handles the context for variables. Either from $set, $vars, or \\define\n\n\\*/\n\nvar WidgetContext = require('./widget').widget;\n\nfunction VariableContext(parent, setParseTreeNode) {\n\tthis.parent = parent;\n\t// Now create a new widget and attach it.\n\tvar attachPoint = parent.widget;\n\tvar setWidget = attachPoint.makeChildWidget(setParseTreeNode);\n\tattachPoint.children.push(setWidget);\n\tsetWidget.computeAttributes();\n\tsetWidget.execute();\n\t// point our widget to bottom, where any other contexts would attach to\n\tthis.widget = this.getBottom(setWidget);\n};\n\nexports.variable = VariableContext;\n\nVariableContext.prototype = new WidgetContext();\n",
+ "module-type": "relinkcontext",
+ "title": "$:/plugins/flibbles/relink/js/contexts/variable.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/contexts/whitelist.js": {
+ "text": "/*\\\n\nThis top-level context manages settings inside the whitelist. It never has\na parent.\n\n\\*/\n\nvar utils = require('../utils');\nvar Context = require('./context').context;\n\nvar prefix = \"$:/config/flibbles/relink/\";\n\nfunction WhitelistContext(wiki) {\n\tbuild(this, wiki);\n};\n\nexports.whitelist = WhitelistContext;\n\nWhitelistContext.prototype = new Context();\n\n/**Hot directories are directories for which if anything changes inside them,\n * then Relink must completely rebuild its index.\n * By default, this includes the whitelist settings, but relink-titles also\n * includes its rules disabling directory.\n * This is the FIRST solution I came up with to this problem. If you're\n * looking at this, please make a github issue so I have a chance to understand\n * your needs. This is currently a HACK solution.\n */\nWhitelistContext.hotDirectories = [prefix];\n\nWhitelistContext.prototype.getAttribute = function(elementName) {\n\treturn this.attributes[elementName];\n};\n\nWhitelistContext.prototype.getAttributes = function() {\n\treturn flatten(this.attributes);\n};\n\nWhitelistContext.prototype.getFields = function() {\n\treturn this.fields;\n};\n\nWhitelistContext.prototype.getOperator = function(operatorName, operandIndex) {\n\tvar op = this.operators[operatorName];\n\treturn op && op[operandIndex || 1];\n};\n\nWhitelistContext.prototype.getOperators = function() {\n\tvar signatures = Object.create(null);\n\tfor (var op in this.operators) {\n\t\tvar operandSet = this.operators[op];\n\t\tfor (var index in operandSet) {\n\t\t\tvar entry = operandSet[index];\n\t\t\tsignatures[entry.key] = entry;\n\t\t}\n\t}\n\treturn signatures;\n};\n\nWhitelistContext.prototype.getMacro = function(macroName) {\n\treturn this.macros[macroName];\n};\n\nWhitelistContext.prototype.getMacros = function() {\n\treturn flatten(this.macros);\n};\n\nWhitelistContext.prototype.changed = function(changedTiddlers) {\n\tfor (var i = 0; i < WhitelistContext.hotDirectories.length; i++) {\n\t\tvar dir = WhitelistContext.hotDirectories[i];\n\t\tfor (var title in changedTiddlers) {\n\t\t\tif (title.substr(0, dir.length) === dir) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n\nWhitelistContext.prototype.hasImports = function(value) {\n\t// We don't care if imports are used. This is the global level.\n\treturn false;\n};\n\n/**Factories define methods that create settings given config tiddlers.\n * for factory method 'example', it will be called once for each:\n * \"$:/config/flibbles/relink/example/...\" tiddler that exists.\n * the argument \"key\" will be set to the contents of \"...\"\n *\n * The reason I build relink settings in this convoluted way is to minimize\n * the number of times tiddlywiki has to run through EVERY tiddler looking\n * for relink config tiddlers.\n *\n * Also, by exporting \"factories\", anyone who extends relink can patch in\n * their own factory methods to create settings that are generated exactly\n * once per rename.\n */\nvar factories = {\n\tattributes: function(attributes, data, key) {\n\t\tvar elem = root(key);\n\t\tvar attr = key.substr(elem.length+1);\n\t\tattributes[elem] = attributes[elem] || Object.create(null);\n\t\tattributes[elem][attr] = data;\n\t},\n\tfields: function(fields, data, name) {\n\t\tfields[name] = data;\n\t},\n\tmacros: function(macros, data, key) {\n\t\t// We take the last index, not the first, because macro\n\t\t// parameters can't have slashes, but macroNames can.\n\t\tvar name = dir(key);\n\t\tvar arg = key.substr(name.length+1);\n\t\tmacros[name] = macros[name] || Object.create(null);\n\t\tmacros[name][arg] = data;\n\t},\n\toperators: function(operators, data, key) {\n\t\t// We take the last index, not the first, because the operator\n\t\t// may have a slash to indicate parameter number\n\t\tvar pair = key.split('/');\n\t\tvar name = pair[0];\n\t\tdata.key = key;\n\t\toperators[name] = operators[name] || Object.create(null);\n\t\toperators[name][pair[1] || 1] = data;\n\t}\n};\n\nfunction build(settings, wiki) {\n\tfor (var name in factories) {\n\t\tsettings[name] = Object.create(null);\n\t}\n\twiki.eachShadowPlusTiddlers(function(tiddler, title) {\n\t\tif (title.substr(0, prefix.length) === prefix) {\n\t\t\tvar remainder = title.substr(prefix.length);\n\t\t\tvar category = root(remainder);\n\t\t\tvar factory = factories[category];\n\t\t\tif (factory) {\n\t\t\t\tvar name = remainder.substr(category.length+1);\n\t\t\t\tvar data = utils.getType(tiddler.fields.text.trim());\n\t\t\t\tif (data) {\n\t\t\t\t\tdata.source = title;\n\t\t\t\t\t// Secret feature. You can access a config tiddler's\n\t\t\t\t\t// fields from inside the fieldtype handler. Cool\n\t\t\t\t\t// tricks can be done with this.\n\t\t\t\t\tdata.fields = tiddler.fields;\n\t\t\t\t\tfactory(settings[category], data, name);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n};\n\n/* Returns first bit of a path. path/to/tiddler -> path\n */\nfunction root(string) {\n\tvar index = string.indexOf('/');\n\tif (index >= 0) {\n\t\treturn string.substr(0, index);\n\t}\n};\n\n/* Returns all but the last bit of a path. path/to/tiddler -> path/to\n */\nfunction dir(string) {\n\tvar index = string.lastIndexOf('/');\n\tif (index >= 0) {\n\t\treturn string.substr(0, index);\n\t}\n}\n\n/* Turns {dir: {file1: 'value1', file2: 'value2'}}\n * into {dir/file1: 'value1', dir/file2: 'value2'}\n */\nfunction flatten(set) {\n\tvar signatures = Object.create(null);\n\tfor (var outerName in set) {\n\t\tvar setItem = set[outerName];\n\t\tfor (var innerName in setItem) {\n\t\t\tsignatures[outerName + \"/\" + innerName] = setItem[innerName];\n\t\t}\n\t}\n\treturn signatures;\n};\n",
+ "module-type": "relinkcontext",
+ "title": "$:/plugins/flibbles/relink/js/contexts/whitelist.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/contexts/widget.js": {
+ "text": "/*\\\n\nThis is a virtual subclass of context for contexts that exist within widgets\nof a specific tiddler.\n\nAll widget contexts must have a widget member.\n\n\\*/\n\nvar Context = require('./context.js').context;\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\n\nfunction WidgetContext() {};\n\nexports.widget = WidgetContext;\n\nWidgetContext.prototype = new Context();\n\nWidgetContext.prototype.getMacroDefinition = function(variableName) {\n\t// widget.variables is prototyped, so it looks up into all its parents too\n\treturn this.widget.variables[variableName] || $tw.macros[variableName];\n};\n\nWidgetContext.prototype.addSetting = function(wiki, macroName, parameter, type, sourceTitle) {\n\tthis.macros = this.macros || Object.create(null);\n\tvar macro = this.macros[macroName];\n\ttype = type || utils.getDefaultType(wiki);\n\tif (macro === undefined) {\n\t\tmacro = this.macros[macroName] = Object.create(null);\n\t}\n\tvar handler = utils.getType(type);\n\tif (handler) {\n\t\thandler.source = sourceTitle;\n\t\t// We attach the fields of the defining tiddler for the benefit\n\t\t// of any 3rd party field types that want access to them.\n\t\tvar tiddler = wiki.getTiddler(sourceTitle);\n\t\thandler.fields = tiddler.fields;\n\t\tmacro[parameter] = handler;\n\t}\n};\n\nWidgetContext.prototype.getMacros = function() {\n\tvar signatures = this.parent.getMacros();\n\tif (this.macros) {\n\t\tfor (var macroName in this.macros) {\n\t\t\tvar macro = this.macros[macroName];\n\t\t\tfor (var param in macro) {\n\t\t\t\tsignatures[macroName + \"/\" + param] = macro[param];\n\t\t\t}\n\t\t}\n\t}\n\treturn signatures;\n};\n\n/**This does strange handling because it's possible for a macro to have\n * its individual parameters whitelisted in separate places.\n * Don't know WHY someone would do this, but it can happen.\n */\nWidgetContext.prototype.getMacro = function(macroName) {\n\tvar theseSettings = this.macros && this.macros[macroName];\n\tvar parentSettings;\n\tif (this.parent) {\n\t\tparentSettings = this.parent.getMacro(macroName);\n\t}\n\tif (theseSettings && parentSettings) {\n\t\t// gotta merge them without changing either. This is expensive,\n\t\t// but it'll happen rarely.\n\t\tvar rtnSettings = $tw.utils.extend(Object.create(null), theseSettings, parentSettings);\n\t\treturn rtnSettings;\n\t}\n\treturn theseSettings || parentSettings;\n};\n\n/**Returns the deepest descendant of the given widget.\n */\nWidgetContext.prototype.getBottom = function(widget) {\n\twhile (widget.children.length > 0) {\n\t\twidget = widget.children[0];\n\t}\n\treturn widget;\n};\n",
+ "module-type": "relinkcontext",
+ "title": "$:/plugins/flibbles/relink/js/contexts/widget.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/contexts/wikitext.js": {
+ "text": "/*\\\n\nContext for wikitext. It can contain rules about what's allowed in this\ncurrent layer of wikitext.\n\n\\*/\n\nvar WidgetContext = require('./widget.js').widget;\n\nfunction WikitextContext(parentContext) {\n\tthis.parent = parentContext;\n\tthis.widget = parentContext.widget;\n};\n\nexports.wikitext = WikitextContext;\n\nWikitextContext.prototype = new WidgetContext();\n\n// Unless this specific context has rules about it, widgets and prettyLInks are allowed.\nWikitextContext.prototype.allowWidgets = enabled;\nWikitextContext.prototype.allowPrettylinks = enabled;\n\nfunction enabled() { return true; };\n",
+ "module-type": "relinkcontext",
+ "title": "$:/plugins/flibbles/relink/js/contexts/wikitext.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/utils/backupIndexer.js": {
+ "text": "/*\\\nmodule-type: library\n\nThis is a backup indexer Relink uses if the real one is disabled, or we're\n<V5.1.23. It's not nearly as good, but it caches some.\n\n\\*/\n\n\"use strict\";\n\nvar utils = require(\"$:/plugins/flibbles/relink/js/utils.js\");\nvar TiddlerContext = utils.getContext('tiddler');\n\n// This is the indexer we use if the current wiki doesn't support indexers.\nfunction BackupIndexer(wiki) {\n\tthis.wiki = wiki;\n};\n\nmodule.exports = BackupIndexer;\n\nBackupIndexer.prototype.lookup = function(title) {\n\treturn getCache(this.wiki).lookup[title];\n};\n\nBackupIndexer.prototype.reverseLookup = function(title) {\n\tvar index = getCache(this.wiki);\n\tif (!index.reverse[title]) {\n\t\tvar record = Object.create(null);\n\t\tfor (var other in index.lookup) {\n\t\t\tif (index.lookup[other][title]) {\n\t\t\t\trecord[other] = index.lookup[other][title];\n\t\t\t}\n\t\t}\n\t\tindex.reverse[title] = record;\n\t}\n\treturn index.reverse[title];\n};\n\n/* The backup indexer doesn't bother caching relink reports. It would always\n * be called after a draft tiddler had changed, which would defeat the point.\n */\nBackupIndexer.prototype.relinkLookup = function(fromTitle, toTitle, options) {\n\tvar cache = getCache(this.wiki);\n\tif (cache.lastRelinkFrom === fromTitle && cache.lastRelinkTo === toTitle) {\n\t\toptions.cache = cache.lastRelinkCache;\n\t\treturn cache.lastRelink;\n\t}\n\tcache.lastRelink = utils.getRelinkResults(this.wiki, fromTitle, toTitle, cache.context, undefined, options);\n\tcache.lastRelinkFrom = fromTitle;\n\tcache.lastRelinkTo = toTitle;\n\tcache.lastRelinkCache = options.cache;\n\treturn cache.lastRelink;\n};\n\nfunction getCache(wiki) {\n\treturn wiki.getGlobalCache('relink', function() {\n\t\tvar tiddlerList = wiki.getRelinkableTitles();\n\t\tvar index = Object.create(null);\n\t\tvar wikiContext = utils.getWikiContext(wiki);\n\t\tfor (var i = 0; i < tiddlerList.length; i++) {\n\t\t\tvar title = tiddlerList[i];\n\t\t\tvar tiddler = wiki.getTiddler(title);\n\t\t\tif (tiddler && !tiddler.fields[\"plugin-type\"]) {\n\t\t\t\tvar context = new TiddlerContext(wiki, wikiContext, title);\n\t\t\t\tindex[title] = utils.getTiddlerRelinkReferences(wiki, title, context);\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tlookup: index,\n\t\t\treverse: Object.create(null),\n\t\t\tcontext: wikiContext};\n\t});\n};\n",
+ "module-type": "library",
+ "title": "$:/plugins/flibbles/relink/js/utils/backupIndexer.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/utils/entry.js": {
+ "text": "/*\\\n\nEntries are deprecated. Don't use them. These classes are here just so that\nany 3rd party modules built for Relink V1 don't break.\n\nJust return an object like, {output: \"string\", impossible: true|undefined}\n\n\\*/\n\nfunction EntryNode() {\n\tthis.children = [];\n};\n\nmodule.exports = EntryNode;\n\n/** PURE VIRTUAL\n * EntryNode.prototype.report = function() -> [\"string\", ...]\n */\n\nEntryNode.newType = function() {\n\treturn EntryNode;\n};\n\nEntryNode.prototype.add = function(entry) {\n\tthis.children.push(entry);\n};\n\nfunction EntryCollection() {\n\tthis.children = Object.create(null);\n\tthis.types = Object.create(null);\n};\n\nEntryNode.newCollection = function(name) {\n\treturn EntryCollection;\n};\n\n// Again. I reiterate. Don't use this. All this is just legacy support.\nObject.defineProperty(EntryCollection, 'impossible', {\n\tget: function() {\n\t\tvar imp = this._impossible;\n\t\tthis.eachChild(function(child) { imp = imp || child.impossible; });\n\t\treturn imp;\n\t},\n\tset: function(impossible) {\n\t\tthis._impossible = true;\n\t}\n});\n\nEntryCollection.prototype.eachChild = function(method) {\n\tfor (var child in this.children) {\n\t\tmethod(this.children[child]);\n\t}\n};\n\nEntryCollection.prototype.addChild = function(child, name, type) {\n\tthis.children[name] = child;\n\tthis.types[name] = type;\n};\n\nEntryCollection.prototype.hasChildren = function() {\n\treturn Object.keys(this.children).length > 0;\n};\n",
+ "module-type": "library",
+ "title": "$:/plugins/flibbles/relink/js/utils/entry.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/utils/placeholder.js": {
+ "text": "/*\\\n\nA method which doles out placeholders when requested, and constructs\nthe necessary supporting pragma when requested.\n\n\\*/\n\nvar utils = require('../utils');\n\nfunction Placeholder() {\n\tthis.placeholders = Object.create(null);\n\tthis.reverseMap = {};\n\tthis.used = Object.create(null);\n};\n\nmodule.exports = Placeholder;\n\nPlaceholder.prototype.getPlaceholderFor = function(value, category) {\n\tthis.reverseMap[category] = this.reverseMap[category] || Object.create(null);\n\tvar placeholder = this.reverseMap[category][value];\n\tif (placeholder) {\n\t\treturn placeholder;\n\t}\n\tvar config = (this.parser && this.parser.context) || utils.getWikiContext(this.parser.wiki);\n\tvar number = 0;\n\tvar prefix = \"relink-\"\n\tif (category && category !== \"title\") {\n\t\t// I don't like \"relink-title-1\". \"relink-1\" should be for\n\t\t// titles. lists, and filters can have descriptors though.\n\t\tprefix += category + \"-\";\n\t}\n\tdo {\n\t\tnumber += 1;\n\t\tplaceholder = prefix + number;\n\t} while (config.getMacroDefinition(placeholder) || this.used[placeholder]);\n\tthis.placeholders[placeholder] = value;\n\tthis.reverseMap[category][value] = placeholder;\n\tthis.used[placeholder] = true;\n\treturn placeholder;\n};\n\n// For registering placeholders that already existed\nPlaceholder.prototype.registerExisting = function(key, value) {\n\tthis.reverseMap[value] = key;\n\tthis.used[key] = true;\n};\n\nPlaceholder.prototype.getPreamble = function() {\n\tvar results = [];\n\tvar keys = Object.keys(this.placeholders);\n\tif (keys.length > 0) {\n\t\tkeys.sort();\n\t\tfor (var i = 0; i < keys.length; i++) {\n\t\t\tvar name = keys[i];\n\t\t\tvar val = this.placeholders[name];\n\t\t\tresults.push(\"\\\\define \"+name+\"() \"+val+\"\\n\");\n\t\t}\n\t}\n\treturn results.join('');\n};\n\n",
+ "module-type": "library",
+ "title": "$:/plugins/flibbles/relink/js/utils/placeholder.js",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink/js/utils/rebuilder.js": {
+ "text": "/*\\\n\nThis helper class aids in reconstructing an existing string with new parts.\n\n\\*/\n\nfunction Rebuilder(text, start) {\n\tthis.text = text;\n\tthis.index = start || 0;\n\tthis.pieces = [];\n};\n\nmodule.exports = Rebuilder;\n\n/**Pieces must be added consecutively.\n * Start and end are the indices in the old string specifying where to graft\n * in the new piece.\n */\nRebuilder.prototype.add = function(value, start, end) {\n\tthis.pieces.push(this.text.substring(this.index, start), value);\n\tthis.index = end;\n};\n\nRebuilder.prototype.changed = function() {\n\treturn this.pieces.length > 0;\n};\n\nRebuilder.prototype.results = function(end) {\n\tif (this.changed()) {\n\t\tthis.pieces.push(this.text.substring(this.index, end));\n\t\treturn this.pieces.join('');\n\t}\n\treturn undefined;\n};\n",
+ "module-type": "library",
+ "title": "$:/plugins/flibbles/relink/js/utils/rebuilder.js",
+ "type": "application/javascript"
+ },
+ "$:/config/flibbles/relink/attributes/$button/set": {
+ "title": "$:/config/flibbles/relink/attributes/$button/set",
+ "text": "reference"
+ },
+ "$:/config/flibbles/relink/attributes/$button/setTo": {
+ "title": "$:/config/flibbles/relink/attributes/$button/setTo",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$button/to": {
+ "title": "$:/config/flibbles/relink/attributes/$button/to",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$checkbox/tiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$checkbox/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$checkbox/tag": {
+ "title": "$:/config/flibbles/relink/attributes/$checkbox/tag",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$count/filter": {
+ "title": "$:/config/flibbles/relink/attributes/$count/filter",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/attributes/$draggable/tiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$draggable/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$draggable/filter": {
+ "title": "$:/config/flibbles/relink/attributes/$draggable/filter",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/attributes/$edit-bitmap/tiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$edit-bitmap/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$edit-text/tiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$edit-text/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$edit/tiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$edit/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$encrypt/filter": {
+ "title": "$:/config/flibbles/relink/attributes/$encrypt/filter",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/attributes/$fieldmangler/tiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$fieldmangler/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$fields/tiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$fields/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$image/source": {
+ "title": "$:/config/flibbles/relink/attributes/$image/source",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$importvariables/filter": {
+ "title": "$:/config/flibbles/relink/attributes/$importvariables/filter",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/attributes/$linkcatcher/to": {
+ "title": "$:/config/flibbles/relink/attributes/$linkcatcher/to",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$linkcatcher/set": {
+ "title": "$:/config/flibbles/relink/attributes/$linkcatcher/set",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$link/to": {
+ "title": "$:/config/flibbles/relink/attributes/$link/to",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$list/filter": {
+ "title": "$:/config/flibbles/relink/attributes/$list/filter",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/attributes/$list/template": {
+ "title": "$:/config/flibbles/relink/attributes/$list/template",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$list/editTemplate": {
+ "title": "$:/config/flibbles/relink/attributes/$list/editTemplate",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$list/emptyMessage": {
+ "title": "$:/config/flibbles/relink/attributes/$list/emptyMessage",
+ "text": "wikitext"
+ },
+ "$:/config/flibbles/relink/attributes/$list/history": {
+ "title": "$:/config/flibbles/relink/attributes/$list/history",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$navigator/story": {
+ "title": "$:/config/flibbles/relink/attributes/$navigator/story",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$navigator/history": {
+ "title": "$:/config/flibbles/relink/attributes/$navigator/history",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$radio/tiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$radio/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$range/tiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$range/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$reveal/stateTitle": {
+ "title": "$:/config/flibbles/relink/attributes/$reveal/stateTitle",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$select/tiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$select/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$setvariable/tiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$setvariable/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$setvariable/subtiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$setvariable/subtiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$setvariable/filter": {
+ "title": "$:/config/flibbles/relink/attributes/$setvariable/filter",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/attributes/$set/tiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$set/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$set/subtiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$set/subtiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$set/filter": {
+ "title": "$:/config/flibbles/relink/attributes/$set/filter",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/attributes/$tiddler/tiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$tiddler/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$transclude/tiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$transclude/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$transclude/subtiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$transclude/subtiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$view/tiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$view/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/attributes/$view/subtiddler": {
+ "title": "$:/config/flibbles/relink/attributes/$view/subtiddler",
+ "text": "title"
+ },
+ "$:/plugins/flibbles/relink/configuration": {
+ "title": "$:/plugins/flibbles/relink/configuration",
+ "text": "<div class=\"tc-control-panel\">\n<<tabs \"[all[shadows+tiddlers]tag[$:/tags/flibbles/relink/Configuration]!has[draft.of]]\" \"$:/plugins/flibbles/relink/ui/configuration/Fields\">>\n</div>\n"
+ },
+ "$:/config/flibbles/relink/fields/caption": {
+ "title": "$:/config/flibbles/relink/fields/caption",
+ "text": "wikitext"
+ },
+ "$:/config/flibbles/relink/fields/filter": {
+ "title": "$:/config/flibbles/relink/fields/filter",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/fields/list": {
+ "title": "$:/config/flibbles/relink/fields/list",
+ "text": "list"
+ },
+ "$:/config/flibbles/relink/fields/list-after": {
+ "title": "$:/config/flibbles/relink/fields/list-after",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/fields/list-before": {
+ "title": "$:/config/flibbles/relink/fields/list-before",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/fields/tags": {
+ "title": "$:/config/flibbles/relink/fields/tags",
+ "text": "list"
+ },
+ "$:/plugins/flibbles/relink/language/Buttons/Delete/Hint": {
+ "title": "$:/plugins/flibbles/relink/language/Buttons/Delete/Hint",
+ "text": "delete"
+ },
+ "$:/plugins/flibbles/relink/language/Buttons/LinkToInline/Hint": {
+ "title": "$:/plugins/flibbles/relink/language/Buttons/LinkToInline/Hint",
+ "text": "go to defining tiddler"
+ },
+ "$:/plugins/flibbles/relink/language/Buttons/NewAttribute/Hint": {
+ "title": "$:/plugins/flibbles/relink/language/Buttons/NewAttribute/Hint",
+ "text": "Specify a new widget/element attribute to be updated whenever a tiddler is renamed"
+ },
+ "$:/plugins/flibbles/relink/language/Buttons/NewAttribute/Caption": {
+ "title": "$:/plugins/flibbles/relink/language/Buttons/NewAttribute/Caption",
+ "text": "add"
+ },
+ "$:/plugins/flibbles/relink/language/Buttons/NewField/Hint": {
+ "title": "$:/plugins/flibbles/relink/language/Buttons/NewField/Hint",
+ "text": "Specify a new field to be updated whenever a tiddler is renamed"
+ },
+ "$:/plugins/flibbles/relink/language/Buttons/NewField/Caption": {
+ "title": "$:/plugins/flibbles/relink/language/Buttons/NewField/Caption",
+ "text": "add"
+ },
+ "$:/plugins/flibbles/relink/language/Buttons/NewOperator/Hint": {
+ "title": "$:/plugins/flibbles/relink/language/Buttons/NewOperator/Hint",
+ "text": "Specify a new filter operator to be considered whenever a tiddler is renamed"
+ },
+ "$:/plugins/flibbles/relink/language/Buttons/NewOperator/Caption": {
+ "title": "$:/plugins/flibbles/relink/language/Buttons/NewOperator/Caption",
+ "text": "add"
+ },
+ "$:/plugins/flibbles/relink/language/Buttons/NewParameter/Hint": {
+ "title": "$:/plugins/flibbles/relink/language/Buttons/NewParameter/Hint",
+ "text": "Specify a new macro parameter to be updated whenever a tiddler is renamed"
+ },
+ "$:/plugins/flibbles/relink/language/Buttons/NewParameter/Caption": {
+ "title": "$:/plugins/flibbles/relink/language/Buttons/NewParameter/Caption",
+ "text": "add"
+ },
+ "$:/plugins/flibbles/relink/language/Error/InvalidAttributeName": {
+ "title": "$:/plugins/flibbles/relink/language/Error/InvalidAttributeName",
+ "text": "Illegal characters in attribute name \"<$text text=<<attributeName>>/>\". Attributes cannot contain slashes ('/'), closing angle or square brackets ('>' or ']'), quotes or apostrophes ('\"' or \"'\"), equals ('='), or whitespace"
+ },
+ "$:/plugins/flibbles/relink/language/Error/InvalidElementName": {
+ "title": "$:/plugins/flibbles/relink/language/Error/InvalidElementName",
+ "text": "Illegal characters in element/widget name \"<$text text=<<elementName>>/>\". Element tags can only contain letters and the characters hyphen (`-`) and dollar sign (`$`)"
+ },
+ "$:/plugins/flibbles/relink/language/Error/InvalidMacroName": {
+ "title": "$:/plugins/flibbles/relink/language/Error/InvalidMacroName",
+ "text": "Illegal characters in macro name \"<$text text=<<macroName>>/>\". Macros cannot contain whitespace"
+ },
+ "$:/plugins/flibbles/relink/language/Error/InvalidParameterName": {
+ "title": "$:/plugins/flibbles/relink/language/Error/InvalidParameterName",
+ "text": "Illegal characters in parameter name \"<$text text=<<parameterName>>/>\". Parameters can only contain letters, digits, and the characters underscore (`_`) and hyphen (`-`)"
+ },
+ "$:/plugins/flibbles/relink/language/Error/RelinkFilterOperator": {
+ "title": "$:/plugins/flibbles/relink/language/Error/RelinkFilterOperator",
+ "text": "Filter Error: Unknown suffix for the 'relink' filter operator"
+ },
+ "$:/plugins/flibbles/relink/language/Error/ReportFailedRelinks": {
+ "title": "$:/plugins/flibbles/relink/language/Error/ReportFailedRelinks",
+ "text": "Relink could not update '<<from>>' to '<<to>>' inside the following tiddlers:"
+ },
+ "$:/plugins/flibbles/relink/language/Error/UnrecognizedType": {
+ "title": "$:/plugins/flibbles/relink/language/Error/UnrecognizedType",
+ "text": "Relink parse error: Unrecognized field type '<<type>>'"
+ },
+ "$:/plugins/flibbles/relink/language/Help/Attributes": {
+ "title": "$:/plugins/flibbles/relink/language/Help/Attributes",
+ "text": "See the <a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Attributes]]}}}>Attributes documentation page</a> for details."
+ },
+ "$:/plugins/flibbles/relink/language/Help/Fields": {
+ "title": "$:/plugins/flibbles/relink/language/Help/Fields",
+ "text": "See the <a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Fields]]}}}>Fields documentation page</a> for details."
+ },
+ "$:/plugins/flibbles/relink/language/Help/Macros": {
+ "title": "$:/plugins/flibbles/relink/language/Help/Macros",
+ "text": "See the <a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Macros]]}}}>Macros documentation page</a> for details."
+ },
+ "$:/plugins/flibbles/relink/language/Help/Operators": {
+ "title": "$:/plugins/flibbles/relink/language/Help/Operators",
+ "text": "See the <a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Operators]]}}}>Operators documentation page</a> for details."
+ },
+ "$:/plugins/flibbles/relink/language/TiddlerInfo/References/Empty": {
+ "title": "$:/plugins/flibbles/relink/language/TiddlerInfo/References/Empty",
+ "text": "No tiddlers contain any fields, links, macros, transclusions, or widgets referencing this one"
+ },
+ "$:/plugins/flibbles/relink/language/TiddlerInfo/References/Description": {
+ "title": "$:/plugins/flibbles/relink/language/TiddlerInfo/References/Description",
+ "text": "The following tiddlers contain fields, links, macros, transclusions, or widgets referencing this one:"
+ },
+ "$:/plugins/flibbles/relink/language/TiddlerInfo/References/Caption": {
+ "title": "$:/plugins/flibbles/relink/language/TiddlerInfo/References/Caption",
+ "text": "//Relink// References"
+ },
+ "$:/plugins/flibbles/relink/language/ui/Attributes/Caption": {
+ "title": "$:/plugins/flibbles/relink/language/ui/Attributes/Caption",
+ "text": "Attributes"
+ },
+ "$:/plugins/flibbles/relink/language/ui/Fields/Caption": {
+ "title": "$:/plugins/flibbles/relink/language/ui/Fields/Caption",
+ "text": "Fields"
+ },
+ "$:/plugins/flibbles/relink/language/ui/Macros/Caption": {
+ "title": "$:/plugins/flibbles/relink/language/ui/Macros/Caption",
+ "text": "Macros"
+ },
+ "$:/plugins/flibbles/relink/language/ui/Operators/Caption": {
+ "title": "$:/plugins/flibbles/relink/language/ui/Operators/Caption",
+ "text": "Operators"
+ },
+ "$:/plugins/flibbles/relink/license": {
+ "title": "$:/plugins/flibbles/relink/license",
+ "type": "text/vnd.tiddlywiki",
+ "text": "<a href={{$:/plugins/flibbles/relink!!demo}}>Relink Plugin</a> Copyright (c) 2019-<<now YYYY>> Cameron Fischer\n\n[[BSD 3-Clause License|https://raw.githubusercontent.com/flibbles/tw5-relink/master/LICENSE]]\n"
+ },
+ "$:/config/flibbles/relink/macros/csvtiddlers/filter": {
+ "title": "$:/config/flibbles/relink/macros/csvtiddlers/filter",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/macros/datauri/title": {
+ "title": "$:/config/flibbles/relink/macros/datauri/title",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/jsontiddler/title": {
+ "title": "$:/config/flibbles/relink/macros/jsontiddler/title",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/jsontiddlers/filter": {
+ "title": "$:/config/flibbles/relink/macros/jsontiddlers/filter",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/macros/list-links/filter": {
+ "title": "$:/config/flibbles/relink/macros/list-links/filter",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/macros/list-links-draggable/tiddler": {
+ "title": "$:/config/flibbles/relink/macros/list-links-draggable/tiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/list-links-draggable/itemTemplate": {
+ "title": "$:/config/flibbles/relink/macros/list-links-draggable/itemTemplate",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/list-tagged-draggable/tag": {
+ "title": "$:/config/flibbles/relink/macros/list-tagged-draggable/tag",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/list-tagged-draggable/itemTemplate": {
+ "title": "$:/config/flibbles/relink/macros/list-tagged-draggable/itemTemplate",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/tabs/buttonTemplate": {
+ "title": "$:/config/flibbles/relink/macros/tabs/buttonTemplate",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/tabs/default": {
+ "title": "$:/config/flibbles/relink/macros/tabs/default",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/tabs/tabsList": {
+ "title": "$:/config/flibbles/relink/macros/tabs/tabsList",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/macros/tabs/template": {
+ "title": "$:/config/flibbles/relink/macros/tabs/template",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/tag/tag": {
+ "title": "$:/config/flibbles/relink/macros/tag/tag",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/tag-pill/tag": {
+ "title": "$:/config/flibbles/relink/macros/tag-pill/tag",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/timeline/subfilter": {
+ "title": "$:/config/flibbles/relink/macros/timeline/subfilter",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/macros/toc/tag": {
+ "title": "$:/config/flibbles/relink/macros/toc/tag",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/toc/itemClassFilter": {
+ "title": "$:/config/flibbles/relink/macros/toc/itemClassFilter",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/macros/toc-expandable/tag": {
+ "title": "$:/config/flibbles/relink/macros/toc-expandable/tag",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/toc-expandable/itemClassFilter": {
+ "title": "$:/config/flibbles/relink/macros/toc-expandable/itemClassFilter",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/macros/toc-expandable/exclude": {
+ "title": "$:/config/flibbles/relink/macros/toc-expandable/exclude",
+ "text": "list"
+ },
+ "$:/config/flibbles/relink/macros/toc-selective-expandable/tag": {
+ "title": "$:/config/flibbles/relink/macros/toc-selective-expandable/tag",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/toc-selective-expandable/itemClassFilter": {
+ "title": "$:/config/flibbles/relink/macros/toc-selective-expandable/itemClassFilter",
+ "text": "filter"
+ },
+ "$:/config/flibbles/relink/macros/toc-selective-expandable/exclude": {
+ "title": "$:/config/flibbles/relink/macros/toc-selective-expandable/exclude",
+ "text": "list"
+ },
+ "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/tag": {
+ "title": "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/tag",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/selectedTiddler": {
+ "title": "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/selectedTiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/unselectedText": {
+ "title": "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/unselectedText",
+ "text": "wikitext"
+ },
+ "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/missingText": {
+ "title": "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/missingText",
+ "text": "wikitext"
+ },
+ "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/template": {
+ "title": "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/template",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/tag": {
+ "title": "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/tag",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/selectedTiddler": {
+ "title": "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/selectedTiddler",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/unselectedText": {
+ "title": "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/unselectedText",
+ "text": "wikitext"
+ },
+ "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/missingText": {
+ "title": "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/missingText",
+ "text": "wikitext"
+ },
+ "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/template": {
+ "title": "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/template",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/operators/list": {
+ "title": "$:/config/flibbles/relink/operators/list",
+ "text": "reference"
+ },
+ "$:/config/flibbles/relink/operators/tag": {
+ "title": "$:/config/flibbles/relink/operators/tag",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/operators/title": {
+ "title": "$:/config/flibbles/relink/operators/title",
+ "text": "title"
+ },
+ "$:/config/flibbles/relink/operators/field:title": {
+ "title": "$:/config/flibbles/relink/operators/field:title",
+ "text": "title"
+ },
+ "$:/language/EditTemplate/Title/Impossibles/Prompt": {
+ "title": "$:/language/EditTemplate/Title/Impossibles/Prompt",
+ "text": "''Warning:'' Not all references in the following tiddlers can be updated by //Relink// due to the complexity of the new title:"
+ },
+ "$:/language/EditTemplate/Title/References/Prompt": {
+ "title": "$:/language/EditTemplate/Title/References/Prompt",
+ "text": "The following tiddlers will be updated if relinking:"
+ },
+ "$:/language/EditTemplate/Title/Relink/Prompt": {
+ "title": "$:/language/EditTemplate/Title/Relink/Prompt",
+ "text": "Use //Relink// to update ''<$text text=<<fromTitle>>/>'' to ''<$text text=<<toTitle>>/>'' across all other tiddlers"
+ },
+ "$:/core/ui/EditTemplate/title": {
+ "title": "$:/core/ui/EditTemplate/title",
+ "tags": "$:/tags/EditTemplate",
+ "text": "<$edit-text field=\"draft.title\" class=\"tc-titlebar tc-edit-texteditor\" focus=\"true\" tabindex={{$:/config/EditTabIndex}}/>\n\n<$reveal state=\"!!draft.title\" type=\"nomatch\" text={{!!draft.of}} tag=\"div\">\n\n<$vars pattern=\"\"\"[\\|\\[\\]{}]\"\"\" bad-chars=\"\"\"`| [ ] { }`\"\"\">\n\n<$list filter=\"[all[current]regexp:draft.title<pattern>]\" variable=\"listItem\">\n\n<div class=\"tc-message-box\">\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}\n\n</div>\n\n</$list>\n\n</$vars>\n\n<$list filter=\"[{!!draft.title}!is[missing]]\" variable=\"listItem\">\n\n<div class=\"tc-message-box\">\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}\n\n</div>\n\n</$list>\n\n<$list filter=\"[{!!draft.of}!is[missing]]\" variable=\"listItem\">\n\n<$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}>\n\n<$checkbox tiddler=\"$:/config/RelinkOnRename\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> {{$:/language/EditTemplate/Title/Relink/Prompt}}</$checkbox>\n\n<$tiddler tiddler=<<fromTitle>> >\n\n<$list filter=\"[relink:wouldchange<toTitle>limit[1]]\" variable=\"listItem\">\n\n<$vars stateTiddler=<<qualify \"$:/state/edit/references\">> >\n\n<$set\n\tname=\"prompt\"\n\tfilter=\"[relink:wouldchange<toTitle>relink:impossible<toTitle>]\"\n\tvalue=\"EditTemplate/Title/Impossibles/Prompt\"\n\temptyValue=\"EditTemplate/Title/References/Prompt\" >\n<$reveal type=\"nomatch\" state=<<stateTiddler>> text=\"show\">\n<$button set=<<stateTiddler>> setTo=\"show\" class=\"tc-btn-invisible\">{{$:/core/images/right-arrow}}\n<$macrocall $name=lingo title=<<prompt>> />\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<stateTiddler>> text=\"show\">\n<$button set=<<stateTiddler>> setTo=\"hide\" class=\"tc-btn-invisible\">{{$:/core/images/down-arrow}}\n<$macrocall $name=lingo title=<<prompt>> />\n</$button>\n</$reveal>\n</$set>\n\n<$reveal type=\"match\" state=<<stateTiddler>> text=\"show\">\n<$list variable=\"listItem\" filter=\"[relink:wouldchange<toTitle>!title[$:/StoryList]sort[title]]\" template=\"$:/plugins/flibbles/relink/ui/ListItemTemplate\">\n</$list>\n</$reveal>\n\n</$vars>\n\n</$list>\n\n</$tiddler>\n\n</$vars>\n\n</$list>\n\n</$reveal>\n"
+ },
+ "$:/config/flibbles/relink/PluginLibrary": {
+ "title": "$:/config/flibbles/relink/PluginLibrary",
+ "caption": "//Relink// Library",
+ "url": "https://flibbles.github.io/tw5-relink/library/index.html",
+ "tags": "$:/tags/PluginLibrary",
+ "text": "The //Relink// library contains //Relink// as well as its supplemental plugins. It is maintained by Flibbles. See the [[github page|https://github.com/flibbles/tw5-relink]] for more information.\n"
+ },
+ "$:/plugins/flibbles/relink/readme": {
+ "title": "$:/plugins/flibbles/relink/readme",
+ "type": "text/vnd.tiddlywiki",
+ "text": "When renaming a tiddler, Relink can update the fields, filters, and widgets\nof all other tiddlers. However, it works through whitelisting.\n\nIt's already configured to update tiddler titles for all core widgets, filters,\nand fields, but the whitelists can be customized for each of this in the\nconfiguration panel.\n\nSee <a href={{$:/plugins/flibbles/relink!!source}}>the tw5-relink website</a> for more details and examples.\n"
+ },
+ "$:/config/flibbles/relink/settings/default-type": {
+ "title": "$:/config/flibbles/relink/settings/default-type",
+ "text": "title"
+ },
+ "$:/plugins/flibbles/relink/ui/ListItemTemplate": {
+ "title": "$:/plugins/flibbles/relink/ui/ListItemTemplate",
+ "text": "<$set\n\tname=\"classes\"\n\tfilter=\"[<listItem>relink:impossible<toTitle>]\"\n\tvalue=\"tc-menu-list-item tc-relink-impossible\"\n\temptyValue=\"tc-menu-list-item\">\n<div class=<<classes>>>\n<$link to=<<listItem>>><$text text=<<listItem>> /></$link>\n</div>\n</$set>\n"
+ },
+ "$:/plugins/flibbles/relink/ui/TiddlerInfo/References": {
+ "title": "$:/plugins/flibbles/relink/ui/TiddlerInfo/References",
+ "caption": "{{$:/plugins/flibbles/relink/language/TiddlerInfo/References/Caption}}",
+ "tags": "$:/tags/TiddlerInfo",
+ "text": "\\define lingo-base() $:/plugins/flibbles/relink/language/TiddlerInfo/\n\\define filter() [all[current]relink:backreferences[]!title[$:/StoryList]!prefix[$:/temp/]sort[title]]\n<$list filter=\"[subfilter<filter>first[]]\">\n\n<<lingo References/Description>>\n</$list>\n\n<table class=\"tc-relink-references-table\">\n<tbody>\n<$list filter=<<filter>> emptyMessage=<<lingo References/Empty>> variable=\"listItem\" template=\"$:/plugins/flibbles/relink/ui/TiddlerInfo/ReferencesTemplate\" />\n</tbody>\n</table>\n"
+ },
+ "$:/plugins/flibbles/relink/ui/TiddlerInfo/ReferencesTemplate": {
+ "title": "$:/plugins/flibbles/relink/ui/TiddlerInfo/ReferencesTemplate",
+ "text": "<tr class=\"tc-relink-references\">\n<td class=\"tc-relink-references-title\">\n<$link to=<<listItem>>/>\n</td>\n<td class=\"tc-relink-references-report\">\n<$list filter=\"[<listItem>relink:report<currentTiddler>]\">\n\n<$text text=<<currentTiddler>> />\n</$list>\n\n</td>\n</tr>\n"
+ },
+ "$:/plugins/flibbles/relink/ui/components/button-delete": {
+ "title": "$:/plugins/flibbles/relink/ui/components/button-delete",
+ "text": "\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define prefix() $:/config/flibbles/relink/\n\n<$list filter=\"[all[current]prefix<prefix>]\" >\n<$button class=\"tc-btn-invisible\" tooltip={{$:/plugins/flibbles/relink/language/Buttons/Delete/Hint}}><$list filter=\"[all[current]is[tiddler]]\">\n<$action-deletetiddler $tiddler=<<currentTiddler>> />\n</$list><$list filter=\"[all[current]is[shadow]]\">\n<$action-setfield $tiddler=<<tiddlerName>> text=\"\" />\n</$list>\n{{$:/core/images/delete-button}}\n</$button>\n</$list><$list filter=\"[all[current]!prefix<prefix>]\">\n<$link><$button class=\"tc-btn-invisible\" tooltip={{$:/plugins/flibbles/relink/language/Buttons/LinkToInline/Hint}}>{{$:/core/images/link}}</$button></$link>\n</$list>\n"
+ },
+ "$:/plugins/flibbles/relink/ui/components/select-fieldtype": {
+ "title": "$:/plugins/flibbles/relink/ui/components/select-fieldtype",
+ "text": "\\define prefix() $:/config/flibbles/relink/\n\n<$vars type={{{ [<signature>relink:type[]] }}} >\n<$list filter=\"[all[current]prefix<prefix>]\" >\n<$select tiddler=<<currentTiddler>> >\n<$list variable=\"option\" filter=\"[relink:types[]]\">\n<option><$text text=<<option>> /></option>\n</$list>\n</$select>\n</$list><$list filter=\"[all[current]!prefix<prefix>]\">\n<$text text=<<type>> />\n</$list>\n</$vars>\n"
+ },
+ "$:/plugins/flibbles/relink/ui/components/tables": {
+ "title": "$:/plugins/flibbles/relink/ui/components/tables",
+ "text": "\\define .make-table(title, plugin, default-table-state:yes)\n\n<$list variable=\"render\" filter=\"[relink:signatures<__plugin__>prefix<__category__>first[]]\">\n<$set name=\"table-state\" value=<<qualify \"\"\"$:/state/flibbles/relink/tables/$title$\"\"\">>>\n<tr><th class=\"tc-relink-header-plugin\" colspan=<<column-count>> >\n<$reveal type=\"nomatch\" state=<<table-state>> text=\"yes\" default=\"\"\"$default-table-state$\"\"\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<table-state>> setTo=\"yes\">\n{{$:/core/images/right-arrow}} ''$title$''\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<table-state>> text=\"yes\" default=\"\"\"$default-table-state$\"\"\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<table-state>> setTo=\"no\">\n{{$:/core/images/down-arrow}} ''$title$''\n</$button>\n</$reveal>\n</th></tr>\n<$list\n\tvariable=\"signature\"\n\tfilter=\"[relink:signatures<__plugin__>prefix<__category__>sort[]]\">\n<$vars key={{{ [<signature>removeprefix<__category__>removeprefix[/]] }}} >\n<$tiddler tiddler={{{[<signature>relink:source[]]}}} >\n<$reveal tag=\"tr\" type=\"match\" state=<<table-state>> text=\"yes\" default=\"\"\"$default-table-state$\"\"\">\n<$macrocall $name=<<__list-row-macro__>> signature=<<signature>> />\n<td class=\"tc-relink-column-type\">{{||$:/plugins/flibbles/relink/ui/components/select-fieldtype}}</td>\n<td class=\"tc-relink-column-delete\">{{||$:/plugins/flibbles/relink/ui/components/button-delete}}</td>\n</$reveal>\n</$tiddler>\n</$vars>\n</$list>\n</$set>\n</$list>\n\\end\n\n\\define tables(category, list-row-macro, header-list)\n<$vars\n\tcolumn-count={{{[enlist<__header-list__>] [[DeleteColumn]] +[count[]]}}}>\n\n<table class=\"tc-relink-whitelist\"><tbody>\n<tr>\n<$list variable=\"header\" filter=\"[enlist<__header-list__>butlast[]]\"><th><<header>></th></$list>\n<!-- We have the last column extend into the delete/link column, which is unlabeled. -->\n<th colspan=2><$text text={{{ [enlist<__header-list__>last[]] }}} /></th>\n</tr>\n\n<<.make-table Custom \"\" yes>>\n\n<$list\n\tfilter=\"[plugin-type[plugin]![$:/core]![$:/plugins/flibbles/relink]]\">\n<$set name=\"subtitle\" value={{!!description}} emptyValue={{!!title}} >\n<$macrocall $name=\".make-table\" title=<<subtitle>> plugin=<<currentTiddler>> />\n</$set>\n</$list>\n\n<<.make-table Core \"$:/plugins/flibbles/relink\">>\n\n</tbody></table>\n</$vars>\n\\end\n"
+ },
+ "$:/plugins/flibbles/relink/ui/configuration/Attributes": {
+ "title": "$:/plugins/flibbles/relink/ui/configuration/Attributes",
+ "caption": "{{$:/plugins/flibbles/relink/language/ui/Attributes/Caption}}",
+ "tags": "$:/tags/flibbles/relink/Configuration",
+ "text": "\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define prefix-attr() $:/config/flibbles/relink/attributes/\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define element-name-tiddler() $:/state/flibbles/relink/element-name\n\\define attribute-name-tiddler() $:/state/flibbles/relink/attribute-name\n\n\\define row()\n<$set name=\"element\"\n filter=\"[<key>splitbefore[/]removesuffix[/]]\">\n<$set name=\"attribute\"\n filter=\"[<key>removeprefix<element>removeprefix[/]]\">\n<td><$text text=<<element>> /></td>\n<td><$text text=<<attribute>> /></td>\n</$set></$set>\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Attributes}}\n\n<em class=\"tc-edit\">Add a new attribute:</em>\n<$edit-text\n\ttiddler=<<element-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"widget/element\" />\n<$edit-text\n\ttiddler=<<attribute-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"attribute\" />\n<$reveal type=\"nomatch\" text=\"\" state=<<element-name-tiddler>> >\n<$reveal type=\"nomatch\" text=\"\" state=<<attribute-name-tiddler>> >\n<$relinkmangler>\n<$button\n\ttooltip={{$(lingo-base)$NewAttribute/Hint}}\n\taria-label={{$(lingo-base)$NewAttribute/Caption}}>\n<$action-sendmessage\n\t$message=\"relink-add-attribute\"\n\telement={{$(element-name-tiddler)$}}\n\tattribute={{$(attribute-name-tiddler)$}} />\n<$action-deletetiddler $tiddler=<<attribute-name-tiddler>> />\n<$action-deletetiddler $tiddler=<<element-name-tiddler>> />\n<$text text={{$(lingo-base)$NewAttribute/Caption}}/>\n</$button>\n</$relinkmangler>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<attribute-name-tiddler>> >\n<$button>\n<$text text={{$(lingo-base)$NewAttribute/Caption}}/>\n</$button>\n</$reveal>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<element-name-tiddler>> >\n<$button>\n<$text text={{$(lingo-base)$NewAttribute/Caption}}/>\n</$button>\n</$reveal>\n\n<$macrocall\n\t$name=tables\n\tcategory=\"attributes\"\n\theader-list=\"[[Widget/HTML Element]] Attribute Type\"\n\tlist-row-macro=\"row\" />\n\\end\n\n<<body>>\n"
+ },
+ "$:/plugins/flibbles/relink/ui/configuration/Fields": {
+ "title": "$:/plugins/flibbles/relink/ui/configuration/Fields",
+ "caption": "{{$:/plugins/flibbles/relink/language/ui/Fields/Caption}}",
+ "tags": "$:/tags/flibbles/relink/Configuration",
+ "text": "\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define field-name-tiddler() $:/state/flibbles/relink/field-name\n\n\\define row()\n<td><$text text=<<key>> /></td>\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Fields}}\n\n<em class=\"tc-edit\">Add a new field:</em>\n<$edit-text\n\ttiddler=<<field-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"field name\" />\n<$reveal type=\"nomatch\" text=\"\" state=<<field-name-tiddler>> >\n<$relinkmangler>\n<$button\n\ttooltip={{$(lingo-base)$NewField/Hint}}\n\taria-label={{$(lingo-base)$NewField/Caption}}>\n<$action-sendmessage\n\t$message=\"relink-add-field\"\n\tfield={{$(field-name-tiddler)$}} />\n<$action-deletetiddler $tiddler=<<field-name-tiddler>> />\n<$text text={{$(lingo-base)$NewField/Caption}}/>\n</$button>\n</$relinkmangler>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<field-name-tiddler>> >\n<$button>\n<$text text={{$(lingo-base)$NewField/Caption}}/>\n</$button>\n</$reveal>\n\n\n<$macrocall\n\t$name=tables\n\tcategory=\"fields\"\n\theader-list=\"[[Field Name]] [[Field Type]]\"\n\tlist-row-macro=\"row\" />\n\\end\n\n<<body>>\n"
+ },
+ "$:/plugins/flibbles/relink/ui/configuration/Macros": {
+ "title": "$:/plugins/flibbles/relink/ui/configuration/Macros",
+ "caption": "{{$:/plugins/flibbles/relink/language/ui/Macros/Caption}}",
+ "tags": "$:/tags/flibbles/relink/Configuration",
+ "text": "\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define prefix-macro() $:/config/flibbles/relink/macros/\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define macro-name-tiddler() $:/state/flibbles/relink/macro-name\n\\define parameter-name-tiddler() $:/state/flibbles/relink/parameter-name\n\n\\define row()\n<$set name=\"parameter\"\n filter=\"[<key>relink:splitafter[/]]\">\n<$set name=\"macro\"\n filter=\"[<key>removesuffix<parameter>removesuffix[/]]\">\n<td><$text text=<<macro>> /></td>\n<td><$text text=<<parameter>> /></td>\n</$set></$set>\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Macros}}\n\n<em class=\"tc-edit\">Add a new macro parameter:</em>\n<$edit-text\n\ttiddler=<<macro-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"macro\" />\n<$edit-text\n\ttiddler=<<parameter-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"parameter\" />\n<$reveal type=\"nomatch\" text=\"\" state=<<macro-name-tiddler>> >\n<$reveal type=\"nomatch\" text=\"\" state=<<parameter-name-tiddler>> >\n<$relinkmangler>\n<$button\n\ttooltip={{$(lingo-base)$NewParameter/Hint}}\n\taria-label={{$(lingo-base)$NewParameter/Caption}}>\n<$action-sendmessage\n\t$message=\"relink-add-parameter\"\n\tmacro={{$(macro-name-tiddler)$}}\n\tparameter={{$(parameter-name-tiddler)$}} />\n<$action-deletetiddler $tiddler=<<parameter-name-tiddler>> />\n<$action-deletetiddler $tiddler=<<macro-name-tiddler>> />\n<$text text={{$(lingo-base)$NewParameter/Caption}}/>\n</$button>\n</$relinkmangler>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<parameter-name-tiddler>> >\n<$button>\n<$text text={{$(lingo-base)$NewParameter/Caption}}/>\n</$button>\n</$reveal>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<macro-name-tiddler>> >\n<$button>\n<$text text={{$(lingo-base)$NewParameter/Caption}}/>\n</$button>\n</$reveal>\n\n\n<$macrocall\n\t$name=tables\n\tcategory=\"macros\"\n\theader-list=\"Macro Parameter Type\"\n\tlist-row-macro=\"row\" />\n\\end\n\n<<body>>\n"
+ },
+ "$:/plugins/flibbles/relink/ui/configuration/Operators": {
+ "title": "$:/plugins/flibbles/relink/ui/configuration/Operators",
+ "caption": "{{$:/plugins/flibbles/relink/language/ui/Operators/Caption}}",
+ "tags": "$:/tags/flibbles/relink/Configuration",
+ "text": "\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define operator-name-tiddler() $:/state/flibbles/relink/operator-name\n\n\\define row()\n<td><$text text=<<key>> /></td>\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Operators}}\n\n<em class=\"tc-edit\">Add a new filter operator:</em>\n<$edit-text\n\ttiddler=<<operator-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"operator name\" />\n<$reveal type=\"nomatch\" text=\"\" state=<<operator-name-tiddler>>>\n<$relinkmangler>\n<$button\n\ttooltip={{$(lingo-base)$NewOperator/Hint}}\n\taria-label={{$(lingo-base)$NewOperator/Caption}}>\n<$action-sendmessage\n\t$message=\"relink-add-operator\"\n\toperator={{$(operator-name-tiddler)$}} />\n<$action-deletetiddler $tiddler=<<operator-name-tiddler>> />\n<$text text={{$(lingo-base)$NewOperator/Caption}}/>\n</$button>\n</$relinkmangler>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<operator-name-tiddler>>>\n<$button>\n<$text text={{$(lingo-base)$NewOperator/Caption}}/>\n</$button>\n</$reveal>\n\n<$macrocall\n\t$name=tables\n\tcategory=\"operators\"\n\theader-list=\"[[Filter Operator]] [[Operand Type]]\"\n\tlist-row-macro=\"row\" />\n\\end\n\n<<body>>\n"
+ },
+ "$:/plugins/flibbles/relink/ui/stylesheet.css": {
+ "title": "$:/plugins/flibbles/relink/ui/stylesheet.css",
+ "text": ".tc-relink-references {\n}\n\n.tc-relink-references-table {\n\twidth: 100%;\n\tborder: none;\n}\n\n.tc-relink-references-table td {\n\tborder-left: none;\n}\n\n.tc-relink-references-table tr:first-child td {\n\tborder-top: none;\n}\n\n.tc-relink-references-title {\n\ttext-align: left;\n\tvertical-align: top;\n}\n\n.tc-relink-references-occurrence {\n\tfont-style: italic;\n\ttext-align: left;\n\tfont-weight: 200;\n\tpadding-left: 25px;\n\tvertical-align: top;\n}\n\n.tc-relink-header-plugin {\n\ttext-align: left;\n}\n\n.tc-relink-header-plugin button {\n\twidth: 100%\n}\n\n.tc-relink-column-type {\n\twidth: 8em;\n}\n\n.tc-relink-column-type select {\n\twidth: 100%;\n}\n\n.tc-relink-column-delete {\n\tborder-left: none;\n\ttext-align: left;\n}\n\n.tc-relink-column-delete button {\n\tpadding-left: 1em;\n}\n\n.tc-relink-impossible a.tc-tiddlylink {\n\tcolor: red;\n}\n",
+ "tags": "$:/tags/Stylesheet",
+ "type": "text/css"
+ }
+ }
+}
+{
+ "tiddlers": {
+ "$:/plugins/flibbles/relink-titles/configuration": {
+ "title": "$:/plugins/flibbles/relink-titles/configuration",
+ "caption": "{{$:/plugins/flibbles/relink-titles/language/Caption}}",
+ "tags": "$:/tags/flibbles/relink/Configuration",
+ "text": "\\define lingo-base() $:/plugins/flibbles/relink-titles/language/\n\\define prefix() $:/config/flibbles/relink-titles/relink/\n\n<<lingo Help>>\n\n<table>\n<tbody>\n<$list filter=\"[[relinktitlesrule]modules[]]\">\n<tr>\n<td>\n<$checkbox\n\ttiddler={{{ [all[current]addprefix<prefix>] }}}\n\tfield=\"text\"\n\tchecked=\"enabled\"\n\tunchecked=\"disabled\"\n\tdefault=\"enabled\"\n> ''{{!!caption}}''</$checkbox></td><td>\n\n<$transclude field='description' />\n\n</td></tr></$list>\n</tbody></table>\n"
+ },
+ "$:/plugins/flibbles/relink-titles/language/Caption": {
+ "title": "$:/plugins/flibbles/relink-titles/language/Caption",
+ "text": "Titles"
+ },
+ "$:/plugins/flibbles/relink-titles/language/Directory/Caption": {
+ "title": "$:/plugins/flibbles/relink-titles/language/Directory/Caption",
+ "text": "Rename subdirectories"
+ },
+ "$:/plugins/flibbles/relink-titles/language/Directory/Description": {
+ "title": "$:/plugins/flibbles/relink-titles/language/Directory/Description",
+ "text": "For wikis set up hierarchically using `/`, like a filesystem. This option will update all tiddlers nested inside the target tiddler. i.e. `fromTiddler/path/file` becomes `toTiddler/path/file`."
+ },
+ "$:/plugins/flibbles/relink-titles/language/Help": {
+ "title": "$:/plugins/flibbles/relink-titles/language/Help",
+ "text": "See the <a href={{{ [{$:/plugins/flibbles/relink-titles!!demo}addsuffix[#Plugins/Titles]] }}}>//Relink-titles// documentation page</a> for details."
+ },
+ "$:/plugins/flibbles/relink-titles/readme": {
+ "title": "$:/plugins/flibbles/relink-titles/readme",
+ "text": "Highly customizable relinking of tiddler titles //related// to the renamed tiddler.\n\n* Rename a hierarchy of subtiddlers when renaming a root tiddler.\n* Make custom filter rules to rename other tiddlers the way you want when Relinking.\n* Integrates with other plugins for plugin-specific rules.\n\nSee <a href={{$:/plugins/flibbles/relink-titles!!source}}>the tw5-relink website</a> for more details and examples.\n\n{{$:/core/images/warning}} ''Warning:'' You must use //Relink// v1.10.2 or greater with this, or this plugin may delete some tiddler bodies while trying to relink titles.\n"
+ },
+ "$:/plugins/flibbles/relink-titles/relinkoperations/title.js": {
+ "title": "$:/plugins/flibbles/relink-titles/relinkoperations/title.js",
+ "text": "/*\\\nmodule-type: relinkoperator\ntitle: $:/plugins/flibbles/relink-titles/relinkoperations/title.js\ntype: application/javascript\n\nRenames tiddlers which have titles derived from fromTitle. Then it makes\nsure that those tiddlers are properly relinked too.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar configPrefix = \"$:/config/flibbles/relink-titles/relink/\";\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\nutils.getContext('whitelist').hotDirectories.push(configPrefix);\n\nvar titleRules = Object.create(null);\n$tw.modules.forEachModuleOfType('relinktitlesrule', function(title, module) {\n\ttitleRules[title] = module;\n});\n\nexports.name = 'title';\n\nexports.report = function(tiddler, callback, options) {\n\tvar cache = getCache(options),\n\t\trules = cache.rules;\n\tfor (var i = 0; i < rules.length; i++) {\n\t\trules[i].report(tiddler.fields.title, function(title, blurb) {\n\t\t\tcallback(title, blurb ? ('title: ' + blurb) : 'title');\n\t\t}, options);\n\t}\n};\n\nexports.relink = function(tiddler, fromTitle, toTitle, changes, options) {\n\tvar cache = getCache(options),\n\t\ttitle = tiddler.fields.title;\n\tif (!cache.touched[title]) {\n\t\tvar rules = cache.rules;\n\t\tfor (var i = 0; i < rules.length; i++) {\n\t\t\tvar rule = rules[i];\n\t\t\tvar entry = rule.relink(title, fromTitle, toTitle, options);\n\t\t\tif (entry) {\n\t\t\t\tvar result = entry.output;\n\t\t\t\tif (result && (result !== title)) {\n\t\t\t\t\tif (options.wiki.getTiddler(result) || cache.touched[result]) {\n\t\t\t\t\t\t// There's already a tiddler there. We won't clobber it.\n\t\t\t\t\t\tentry.impossible = true;\n\t\t\t\t\t\tentry.output = undefined;\n\t\t\t\t\t}\n\t\t\t\t\tcache.touched[result] = true;\n\t\t\t\t}\n\t\t\t\t// Record that we've touched this one, so we only touch it once.\n\t\t\t\t// Both its prior and latter. Neither should be touched again.\n\t\t\t\tcache.touched[title] = true;\n\t\t\t\tchanges.title = entry;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n};\n\nfunction getCache(options) {\n\treturn utils.getCacheForRun(options, 'titles', function() {\n\t\treturn {\n\t\t\trules: getRules(options.wiki),\n\t\t\ttouched: Object.create(null)\n\t\t};\n\t});\n};\n\nfunction getRules(wiki) {\n\tvar activeRules = [];\n\tfor (var rule in titleRules) {\n\t\tvar configTiddler = wiki.getTiddler(configPrefix + rule);\n\t\tif (!configTiddler || configTiddler.fields.text !== \"disabled\") {\n\t\t\tactiveRules.push(titleRules[rule]);\n\t\t}\n\t}\n\treturn activeRules;\n};\n",
+ "module-type": "relinkoperator",
+ "type": "application/javascript"
+ },
+ "$:/plugins/flibbles/relink-titles/rules/directory": {
+ "title": "$:/plugins/flibbles/relink-titles/rules/directory",
+ "text": "/*\\\ncaption: {{$:/plugins/flibbles/relink-titles/language/Directory/Caption}}\ndescription: {{$:/plugins/flibbles/relink-titles/language/Directory/Description}}\nmodule-type: relinktitlesrule\ntitle: $:/plugins/flibbles/relink-titles/rules/directory\ntype: application/javascript\n\nHandles subdirectory renaming.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = 'directory';\n\n/**The report returns all parent directories of a given title which exist.\n */\nexports.report = function(title, callback, options) {\n\tvar index = -1;\n\twhile ((index = title.indexOf('/', index+1)) >= 0) {\n\t\tvar dir = title.substr(0, index);\n\t\tcallback(dir, '.' + title.substr(index));\n\t}\n};\n\n/**The relink returns the new title (if any) derived from title for a given\n * rename of fromTitle to toTitle.\n */\nexports.relink = function(title, fromTitle, toTitle, options) {\n\tvar length = fromTitle.length;\n\tif (title.charAt(length) === '/' && title.substr(0, length) === fromTitle) {\n\t\treturn {output: toTitle + title.substr(length)};\n\t}\n\treturn undefined;\n};\n",
+ "caption": "{{$:/plugins/flibbles/relink-titles/language/Directory/Caption}}",
+ "description": "{{$:/plugins/flibbles/relink-titles/language/Directory/Description}}",
+ "module-type": "relinktitlesrule",
+ "type": "application/javascript"
+ }
+ }
+}
+{
+ "tiddlers": {
+ "$:/plugins/jd/mob/config": {
+ "created": "20171029115120346",
+ "creator": "JD",
+ "text": "<style>\n.tc-btn-invisible { text-align: left; }\n</style>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##freshinstall\" text=\"yes\">\n<div class=\"jd-bq\">\n<p>\nThanks for installing this plugin! You can always find the latest updates <a target=\"blank\" href=\"http://j.d.simplemobile.tiddlyspot.com\">here</a>\n</p>\n<p>\nThis plugin options tiddler is also available at ''Control panel'' >> ''Appearance'' >> ''JD Mob''\n</p>\n<p>\n<$button>\n<<jdconfig freshinstall no>>\nClose message\n</$button>\n</p>\n</div>\n<br>\n<hr>\n<br>\n</$reveal>\nShow as:\n<$select tiddler=\"$:/plugins/jd/mob/config/config\" index=\"configtype\">\n<option value=\"list\">List</option>\n<option value=\"htabs\">Horizontal tabs</option>\n<option value=\"vtabs\">Vertical tabs</option>\n</$select>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##configtype\" text=\"list\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/jd/config]]\"><$transclude/><hr></$list>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##configtype\" text=\"htabs\">\n<<tabs \"[all[shadows+tiddlers]tag[$:/tags/jd/config]!has[draft.of]]\" \"$:/plugins/jd/mob/config/barpresets\">>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##configtype\" text=\"vtabs\">\n<<tabs \"[all[shadows+tiddlers]tag[$:/tags/jd/config]!has[draft.of]]\" \"$:/plugins/jd/mob/config/barpresets\" \"$:/state/tab/JDconfig\" \"tc-vertical\">>\n</$reveal>",
+ "title": "$:/plugins/jd/mob/config",
+ "tags": "$:/tags/ControlPanel/Appearance",
+ "subtitle": "Configure JD mobile layout",
+ "modifier": "JD",
+ "modified": "20171122151014084",
+ "caption": "JD Mob"
+ },
+ "$:/plugins/jd/mob/config/fonts": {
+ "created": "20171031124255884",
+ "creator": "JD",
+ "text": "<style> .texte { width: calc(100% - 60px); } </style>\n\n<h2>Fonts and heights presets</h2>\n\n\n<$button class=\"tc-btn-invisible\">\n<<jdfont 38px 30px 38px 28px 20px>>\n<<jdconfig fontsize largest>>\n<<jdradbut fontsize largest>>\n</$button> Largest\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdfont 34px 26px 34px 24px 20px>>\n<<jdconfig fontsize larger>>\n<<jdradbut fontsize larger>>\n</$button> Larger\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdfont 30px 22px 30px 20px 20px>>\n<<jdconfig fontsize large>>\n<<jdradbut fontsize large>>\n</$button> Large\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdfont 26px 18px 26px 16px 20px>>\n<<jdconfig fontsize medium>>\n<<jdradbut fontsize medium>>\n</$button> Medium\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdfont 22px 14px 20px 12px 20px>>\n<<jdconfig fontsize small>>\n<<jdradbut fontsize small>>\n</$button> Small\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdfont 18px 10px 16px 8px 20px>>\n<<jdconfig fontsize smaller>>\n<<jdradbut fontsize smaller>>\n</$button> Smaller\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdfont>>\n<<jdconfig fontsize default>>\n<<jdradbut fontsize default>>\n</$button> TW5 default\n<br>\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/font-title\" caption=\"Title\" list-before=\"$:/temp/jd/mob/font/font-body\"/>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/font-body\" caption=\"Body, text buttons\" list-after=\"$:/temp/jd/mob/font/font-title\"/>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/lineheight\" caption=\"Lineheight\"/>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/font-tab-button\" caption=\"Tab buttons\"/>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/font-button\" caption=\"Image buttons\"/>\n<<jdconfig fontsize custom>>\n<<jdradbut fontsize custom>>\n</$button> Custom\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##fontsize\" text=\"custom\">\n\nInclude unit (''px'' or ''em'') when entering custom values\n\n<table style=\"width:100%\">\n<tr>\n<th style=\"width:40%\">Element</th>\n<th style=\"width:60%\">Adjust</th>\n</tr>\n<$list filter=\"[all[shadows+tiddlers]prefix[$:/temp/jd/mob/font/]!suffix[sitetitle]]\">\n<tr>\n<td><$view field=\"caption\"/></td>\n<td><$edit-text tiddler={{!!title}} field=\"temp\" placeholder={{!!text}} class=\"texte\"/>\n<$reveal type=\"match\" state=!!temp text=\"\">\n<$button class=\"tc-btn-invisible\" style=\"color:grey; cursor:not-allowed;\">✓</$button>\n<$button class=\"tc-btn-invisible\" style=\"color:grey; cursor:not-allowed;\">✕</$button>\n</$reveal>\n<$reveal type=\"nomatch\" state=!!temp text=\"\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler={{!!title}} text={{!!temp}}/>\n<$action-setfield $tiddler={{!!title}} temp=\"\"/>✓</$button>\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler={{!!title}} temp=\"\"/>✕</$button>\n</$reveal>\n</td>\n</tr>\n</$list>\n</table>\n</$reveal>\n<br><br>",
+ "title": "$:/plugins/jd/mob/config/fonts",
+ "tags": "$:/tags/jd/config",
+ "modifier": "JD",
+ "modified": "20171120143104637",
+ "caption": "Fonts and heights"
+ },
+ "$:/plugins/jd/mob/readme": {
+ "created": "20171030143047925",
+ "creator": "JD",
+ "text": "This is a mobile layout that applies to narrow screens. It introduces the following:\n\n# A Topbar that can be any of the following:\n#* Hidden\n#* Titlebar (search, title, subtitle, menu)\n#* Mobbuttons bar\n#** Buttons tagged ''~$:/tags/jd/mobbutton''\n#* Searchbar\n#** Simple searchbar lists standard search results only\n#** Combined searchbar lists all search results (possibly slow on some devices)\n#* Control area containing ''Top Left Bar'', ''Page Control'', ''Mob-only'', and ''Top Right Bar'' buttons (in that order)\n#** ''Top Left Bar'' >> buttons tagged ''~$:/tags/TopLeftBar''\n#** ''Page control'' >> buttons tagged ''~$:/tags/PageControls''\n#** ''Mob-only'' >> other buttons tagged ''~$:/tags/jd/mobbutton''\n#** ''Top Right Bar'' >> buttons tagged ''~$:/tags/TopRightBar''\n#** Buttons you don't want to appear here should be tagged ''~$:/tags/jd/mobno'' \n\n# A Bottombar that can be any of the following:\n#* Hidden\n#* Mobbuttons bar\n#** Buttons tagged ''~$:/tags/jd/mobbutton''\n#* Control area containing ''Top Left Bar'', ''Page Control'', ''Mob-only'', and ''Top Right Bar'' buttons (in that order)\n#** ''Top Left Bar'' >> buttons tagged ''~$:/tags/TopLeftBar''\n#** ''Page control'' >> buttons tagged ''~$:/tags/PageControls''\n#** ''Mob-only'' >> other buttons tagged ''~$:/tags/jd/mobbutton''\n#** ''Top Right Bar'' >> buttons tagged ''~$:/tags/TopRightBar''\n#** Buttons you don't want to appear here should be tagged ''~$:/tags/jd/mobno'' \n\n//Note:// \n\nThis layout is tied to the ''Sidebar Breakpoint'' set at ''Control Panel'' >> ''Appearance'' >> ''Theme Tweaks''.\n\nThis layout is compatible with any core theme as of release date.\n\n<a target=\"blank\" href=\"http://j.d.simplemobile.tiddlyspot.com\">Project Homepage on Tiddlyspot</a>\n\n!! Version History\n\n!!! 2018-09-03 Release of version 1.0.4\n\n* Added ability to create tiddler out of search term via \"+\" button, or keyboard shortcut: \"ctrl+space\"\n\n[[Detailed changelog|http://j.d.simplemobile.tiddlyspot.com/#Changelog]]",
+ "title": "$:/plugins/jd/mob/readme",
+ "tags": "",
+ "modifier": "JD",
+ "modified": "20180903122259331"
+ },
+ "$:/plugins/jd/mob/config/config": {
+ "created": "20171109145547252",
+ "creator": "JD",
+ "text": "freshinstall: yes\ndefaultconfirm: cancel\nconfigtype: list\nfontsize: default\nscrollbars: show\nbarpreset: 4\nstoryfix: no\ntitlebaradjust: no\ntopbar: fixedsearch\ntopbarchoice: hide\nsearchbar: yes\nradbuttop: fixedsearch\nsearchbarchoice: simple\nbottombar: controls\nradbuttopfixedsearchops: hide\nradbuttopcontrolsops: hide\nradbuttopmobbuttonsops: hide\nradbuttoptitleops: hide\nbottombarcontrolsops: hide\nbottombarmobbuttonsops: hide\nbarpreset1ops: hide\nbarpreset2ops: hide\nbarpreset3ops: hide\nbarpreset4ops: hide\nsearchbutton: simple\nfocus: show",
+ "type": "application/x-tiddler-dictionary",
+ "title": "$:/plugins/jd/mob/config/config",
+ "modifier": "JD",
+ "modified": "20171122154523597"
+ },
+ "$:/plugins/jd/mob/config/topbar": {
+ "created": "20171028024424838",
+ "creator": "JD",
+ "text": "<h2>Topbar</h2>\n<$button class=tc-btn-invisible>\n<<setTopsearchbar>>\n<<tglSearch>>\n<<jdconfig searchbutton simple>>\n<<jdradbut radbuttop fixedsearch>>\n</$button> Fixed searchbar\n<<moreOps radbuttop fixedsearch searchbar>>\n<$button class=tc-btn-invisible>\n<<setTopcontrols>>\n<<tglSearch>>\n<<jdconfig searchbutton simple>>\n<<jdradbut radbuttop controls>>\n</$button> Controls\n<<moreOps radbuttop controls searchbutton>>\n<$button class=tc-btn-invisible>\n<<setTopmobbuttons>>\n<<tglSearch>>\n<<jdconfig searchbutton simple>>\n<<jdradbut radbuttop mobbuttons>>\n</$button> Mob buttons only\n<<moreOps radbuttop mobbuttons searchbutton>>\n<$button class=tc-btn-invisible>\n<<setToptitlebar>>\n<<tglSearch>>\n<<jdconfig searchbutton simple>>\n<<jdradbut radbuttop title>>\n</$button> Titlebar\n<<moreOps radbuttop title titlebar>>\n<$button class=tc-btn-invisible>\n<<setTophide>>\n<<jdradbut radbuttop hide>>\n</$button> Hidden\n<br>",
+ "title": "$:/plugins/jd/mob/config/topbar",
+ "modifier": "JD",
+ "modified": "20171122131221362",
+ "list-before": "$:/plugins/jd/mob/config/bottombar",
+ "caption": "Topbar style"
+ },
+ "$:/plugins/jd/mob/config/bottombar": {
+ "created": "20171110164302862",
+ "creator": "JD",
+ "text": "<h2>Bottombar</h2>\n<$button class=\"tc-btn-invisible\">\n<<setBottomcontrols>>\n<<jdradbut bottombar controls>>\n</$button> Controls\n<<moreOps bottombar controls searchbutton>>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig bottombar mobbuttons>>\n<<jdradbut bottombar mobbuttons>>\n</$button> Mob buttons only\n<<moreOps bottombar mobbuttons searchbutton>>\n<$button class=\"tc-btn-invisible\">\n<<noBottom>>\n<<jdradbut bottombar hide>>\n</$button> Hidden\n<br>",
+ "title": "$:/plugins/jd/mob/config/bottombar",
+ "modifier": "JD",
+ "modified": "20171122131210851",
+ "list-after": "$:/plugins/jd/mob/config/topbar",
+ "caption": "Bottombar style"
+ },
+ "$:/plugins/jd/mob/config/barpresets": {
+ "created": "20171113033257223",
+ "creator": "JD",
+ "text": "<h2>Topbar and bottombar presets</h2>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig barpreset 1>>\n<<setToptitlebar>>\n<<noBottom>>\n<<jdradbut barpreset 1>>\n</$button> ''Titlebar'' on top, hidden bottom\n<<moreOps barpreset 1 titlebar>>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig barpreset 2>>\n<<setTopcontrols>>\n<<noBottom>>\n<<jdradbut barpreset 2>>\n</$button> ''Controls'' on top, hidden bottom\n<<moreOps barpreset 2 searchbutton>>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig barpreset 3>>\n<<setTophide>>\n<<setBottomcontrols>>\n<<jdradbut barpreset 3>>\n</$button> Hidden top, ''Controls'' on bottom\n<<moreOps barpreset 3 searchbutton>>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig barpreset 4>>\n<<setTopsearchbar>>\n<<setBottomcontrols>>\n<<jdradbut barpreset 4>>\n</$button> ''Searchbar'' on top, ''Controls'' on bottom\n<<moreOps barpreset 4 searchbar>>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig barpreset 5>>\n<<jdradbut barpreset 5>>\n</$button> Custom topbar and bottombar\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##barpreset\" text=\"5\">\n{{$:/plugins/jd/mob/config/topbar}}\n{{$:/plugins/jd/mob/config/bottombar}}\n</$reveal>\n<br><br>",
+ "title": "$:/plugins/jd/mob/config/barpresets",
+ "tags": "$:/tags/jd/config",
+ "modifier": "JD",
+ "modified": "20171122154450000",
+ "caption": "Top and bottom bars"
+ },
+ "$:/plugins/jd/mob/template/topbar": {
+ "text": "<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"fixedsearch\">\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##fixedsearch\" text=\"combined\">\n{{$:/plugins/jd/mob/template/combinedsearch}}\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##fixedsearch\" text=\"simple\">\n{{$:/plugins/jd/mob/template/simplesearch}}\n</$reveal>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"controls\">\n<span class=\"jd-topbar\">\n{{$:/plugins/jd/mob/template/controls}}\n</span>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"mobbuttons\">\n<span class=\"jd-topbar\">\n<div class=\"tc-page-controls\">\n{{$:/plugins/jd/mob/template/mobbuttons}}\n</div>\n</span>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"title\">\n<span class=\"jd-topbar\">\n{{$:/plugins/jd/mob/template/titlebar}}\n</span>\n</$reveal>",
+ "title": "$:/plugins/jd/mob/template/topbar",
+ "tags": "$:/tags/PageTemplate",
+ "modifier": "JD",
+ "modified": "20171118170723817",
+ "fixedsearch": "{{$:/plugins/jd/mob/template/combinedsearch}}",
+ "creator": "JD",
+ "created": "20171018115714311"
+ },
+ "$:/plugins/jd/mob/template/titlebar": {
+ "created": "20171112032454483",
+ "creator": "JD",
+ "text": "<div class=\"jd-title-wrapper\">\n<span class=\"tc-site-title\"><$transclude tiddler=\"$:/SiteTitle\"/></span>\n<span class=\"tc-site-subtitle\"><$transclude tiddler=\"$:/SiteSubtitle\"/></span>\n</div>\n<div class=\"jd-title-controls\">\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##searchbutton\" text=\"simple\">\n{{$:/plugins/jd/mob/button/search}}\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##searchbutton\" text=\"combined\">\n{{$:/plugins/jd/mob/button/search}}\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##searchbutton\" text=\"core\">\n{{$:/core/ui/Buttons/advanced-search}}\n</$reveal>\n{{$:/core/ui/TopBar/menu}}\n</div>",
+ "title": "$:/plugins/jd/mob/template/titlebar",
+ "tags": "",
+ "modifier": "JD",
+ "modified": "20171122134204001"
+ },
+ "$:/plugins/jd/mob/template/controls": {
+ "created": "20171111135718973",
+ "creator": "JD",
+ "text": "\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n<div class=\"tc-page-controls\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TopLeftBar]!has[draft.of]!tag[$:/tags/jd/mobno]]\">\n<$transclude/>\n</$list>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]!tag[$:/tags/jd/mobno]]\" variable=\"listItem\">\n<$reveal type=\"nomatch\" state=<<config-title>> text=\"hide\">\n<$transclude tiddler=<<listItem>>/>\n</$reveal>\n</$list>\n{{$:/plugins/jd/mob/template/mobbuttons}}\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TopRightBar]!has[draft.of]!tag[$:/tags/jd/mobno]]\">\n<$transclude/>\n</$list>\n</div>",
+ "title": "$:/plugins/jd/mob/template/controls",
+ "tags": "",
+ "modifier": "JD",
+ "modified": "20171119140040863"
+ },
+ "$:/plugins/jd/mob/template/bottombar": {
+ "text": "<div class=\"jd-bottombar\">\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"controls\">\n{{$:/plugins/jd/mob/template/controls}}\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"mobbuttons\">\n<div class=\"tc-page-controls\">\n{{$:/plugins/jd/mob/template/mobbuttons}}\n</div>\n</$reveal>\n</div>",
+ "title": "$:/plugins/jd/mob/template/bottombar",
+ "tags": "$:/tags/PageTemplate",
+ "modifier": "JD",
+ "modified": "20171118170729880",
+ "creator": "JD",
+ "created": "20171115114644869"
+ },
+ "$:/plugins/jd/mob/template/mobbuttons": {
+ "text": "\\define config-mobtitle()\n$:/config/jd/mobbutton/visibility/$(listItem)$\n\\end\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/jd/mobbutton]!has[draft.of]]\" variable=\"listItem\">\n<$reveal type=\"nomatch\" state=<<config-mobtitle>> text=\"hide\">\n<$transclude tiddler=<<listItem>>/>\n</$reveal>\n</$list>",
+ "title": "$:/plugins/jd/mob/template/mobbuttons",
+ "tags": "",
+ "modifier": "JD",
+ "modified": "20171118161831963",
+ "creator": "JD",
+ "created": "20171118055005587"
+ },
+ "$:/plugins/jd/mob/config/mobbuttons": {
+ "created": "20171118051624478",
+ "creator": "JD",
+ "text": "\\define config-base() $:/config/jd/mobbutton/visibility/\n<h2>Mob buttons</h2>\n<p>Here are buttons tagged <b>~$:/tags/jd/mobbutton</b></p>\n<p>Choose which ones are displayed. Drag and drop to change the ordering</p>\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/jd/mobbutton\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/ItemTemplate\"/>\n</$set>\n</$set>\n<br>",
+ "title": "$:/plugins/jd/mob/config/mobbuttons",
+ "tags": "$:/tags/jd/config",
+ "modifier": "JD",
+ "modified": "20171122150902808",
+ "caption": "Mob buttons"
+ },
+ "$:/plugins/jd/mob/button/config": {
+ "text": "<$button tooltip=\"Configure JD mobile layout\" class=\"tc-btn-invisible\">{{$:/core/images/theme-button}}<$action-sendmessage $message=\"tm-modal\" $param=\"$:/plugins/jd/mob/config\"/></$button>",
+ "title": "$:/plugins/jd/mob/button/config",
+ "tags": "$:/tags/jd/mobbutton",
+ "modifier": "JD",
+ "modified": "20171122114923959",
+ "description": "Configure JD mobile layout",
+ "creator": "JD",
+ "created": "20171117090228867",
+ "caption": "{{$:/core/images/theme-button}} configure JDmob"
+ },
+ "$:/plugins/jd/mob/stylesheet": {
+ "created": "20171016123229521",
+ "creator": "JD",
+ "text": "@media print\n{\n.tc-sidebar-scrollable,\n.jd-search,\n.jd-topbar,\n.jd-bottombar { display: none !important; }\n}\n\n/** CONFIG RADIO BUTTONS **/\n\n.radbutton, .radbuttoff { \n display: inline-block; \n height: 12px; \n width: 12px; \n border: 2px solid <<colour muted-foreground>>; \n -webkit-transition-duration: {{$:/config/AnimationDuration}}ms;\n -moz-transition-duration: {{$:/config/AnimationDuration}}ms;\n -ms-transition-duration: {{$:/config/AnimationDuration}}ms;\n -o-transition-duration: {{$:/config/AnimationDuration}}ms;\n transition-duration: {{$:/config/AnimationDuration}}ms;\n}\n\n.radbutton { background: <<colour primary>>; }\n.radbuttoff { background: <<colour muted-foreground>>; }\n.radbutton:hover, .radbuttoff:hover { \n border: 2px solid <<colour primary>>;\n background: <<colour primary>>; \n}\n\n.jd-bq {\n margin: 5px;\n padding: 5px;\n border: 1px solid <<colour tab-border>>;\n}\n\n.jd-bq, .radbutton, .radbuttoff {\n -webkit-border-radius: 6px;\n -moz-border-radius: 6px;\n -ms-border-radius: 6px;\n -o-border-radius: 6px;\n border-radius: 6px;\n}\n\n.jd-btn-txt {\n border: none;\n background: none;\n font-size: inherit;\n text-decoration: underline;\n padding: 0;\n margin: 0;\n}\n\n.jd-btn-txt:hover {\n text-decoration: none;\n}\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) { \n.jd-topbar, \n.jd-bottombar,\n.jd-search { display: none; }\n} \n\n@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) { \n\n.tc-topbar { display: none !important; } \n\n.tc-tags-wrapper { margin: 5px 0 !important; }\n\n\n/** NOTIFICATIONS **/\n\n.tc-notification {\n position: fixed; \n top: 60px !important;\n right: 10px !important;\n z-index: {{!!z-bar}} !important;\n}\n\n.tc-modal {\n top: 50px !important;\n left: 50px !important;\n right: 50px !important;\n}\n\n.tc-modal-body { max-height: calc(100vh - 200px) !important; }\n\n.tc-modal-wrapper,\n.tc-plugin-reload-warning { z-index: {{!!z-notif}} !important; }\n\n\n/** STORY RIVER **/\n\n.tc-story-river { \n margin: 0 !important;\n padding-top: 0 !important;\n}\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##storyfix\" text=\"no\">\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"hide\">\n\n@media print\n{\n.tc-story-river { margin-top: 0 !important; }\n}\n\n@media screen\n{\n.tc-story-river { margin-top: 50px !important; }\n}\n\n</$reveal>\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n\n.tc-story-river { margin-bottom: 50px !important; }\n\n</$reveal>\n\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##storyfix\" text=\"yes\">\n\n.tc-story-river { \n width: 100% !important;\n position: fixed !important;\n left: 0 !important;\n overflow-y: auto !important;\n}\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"hide\">\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-story-river { \n top: 50px !important;\n height: calc(100% - 50px) !important;\n}\n</$reveal>\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-story-river { \n top: 50px !important; \n height: calc(100% - 100px) !important;\n}\n</$reveal>\n\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"hide\">\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-story-river { \n top: 0 !important; \n height: 100% !important;\n}\n</$reveal>\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-story-river { \n top: 0 !important; \n height: calc(100% - 50px) !important;\n}\n</$reveal>\n\n</$reveal>\n\n</$reveal>\n\n.tc-tiddler-frame {\n margin-bottom: 2px !important;\n padding: 15px 10px;\n overflow: auto;\n}\n\n\n/** POPUPS AND DROPDOWNS INSIDE VIEW AREA **/\n\n.tc-drop-down,\n.tc-block-dropdown {\n position: fixed !important;\n top: 50% !important;\n left: 50% !important;\n text-align: left;\n white-space: normal !important;\n max-height: calc(100% - 160px) !important;\n min-width: calc(100% - 90px) !important;\n max-width: calc(100% - 60px) !important;\n -webkit-transform: translate(-50%, -50%) !important;\n -moz-transform: translate(-50%, -50%) !important;\n -ms-transform: translate(-50%, -50%) !important;\n -o-transform: translate(-50%, -50%) !important;\n transform: translate(-50%, -50%) !important;\n -webkit-box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);\n -moz-box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);\n -ms-box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);\n -o-box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);\n box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);\n overflow: auto !important;\n z-index: {{!!z-dropdown}} !important;\n}\n\n.tc-menu-list-item {\n padding-left: 5px;\n text-indent: -5px;\n white-space: normal !important;\n word-wrap: break-word !important;\n -webkit-word-break: break-all !important;\n -moz-word-break: break-all !important;\n -ms-word-break: break-all !important;\n -o-word-break: break-all !important;\n word-break: break-all !important;\n}\n\n.tc-edit-type-dropdown { overflow: auto; }\n\n\n/** SCROLLBARS **/\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##scrollbars\" text=\"hide\">\n\nbody { \n -ms-overflow-style: -ms-autohiding-scrollbar;\n}\n\ndiv::-webkit-scrollbar,\n.tc-edit-type-dropdown::-webkit-scrollbar,\n.tc-block-dropdown::-webkit-scrollbar,\n.tc-drop-down::-webkit-scrollbar,\n.jd-search-results::-webkit-scrollbar,\n.tc-story-river::-webkit-scrollbar,\n.tc-sidebar-scrollable::-webkit-scrollbar {\n background: transparent;\n width: 0;\n}\n\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##scrollbars\" text=\"show\">\n\nbody { \n scrollbar-face-color: <<colour background>>;\n scrollbar-arrow-color: <<colour page-background>>;\n scrollbar-track-color: <<colour page-background>>;\n scrollbar-shadow-color: <<colour page-background>>;\n}\n\ndiv::-webkit-scrollbar,\n.tc-edit-type-dropdown::-webkit-scrollbar,\n.tc-block-dropdown::-webkit-scrollbar,\n.tc-drop-down::-webkit-scrollbar,\n.tc-story-river::-webkit-scrollbar,\n.tc-sidebar-scrollable::-webkit-scrollbar {\n background: <<colour background>>;\n width: 6px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n}\n\ndiv::-webkit-scrollbar-thumb,\n.tc-edit-type-dropdown::-webkit-scrollbar-thumb,\n.tc-block-dropdown::-webkit-scrollbar-thumb,\n.tc-drop-down::-webkit-scrollbar-thumb,\n.jd-search-results::-webkit-scrollbar,\n.tc-story-river::-webkit-scrollbar-thumb,\n.tc-sidebar-scrollable::-webkit-scrollbar-thumb {\n background: <<colour page-background>>; \n width: 6px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n}\n\n.jd-search-results::-webkit-scrollbar-thumb {\n background: <<colour primary>>;\n width: 6px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n}\n\n</$reveal>\n\n\n/** FOCUS **/\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##focus\" text=\"hide\">\ntextarea:focus, select:focus, button:focus, input:focus { outline: none; }\n</$reveal>\n\n\n/** TOPBAR & BOTTOMBAR **/\n\n.jd-topbar,\n.jd-bottombar {\n width: 100%;\n position: fixed;\n left: 0;\n background: <<colour page-background>>;\n overflow: hidden;\n z-index: {{!!z-bar}};\n}\n\n.jd-topbar { top: 0; height: 50px; }\n.jd-bottombar { bottom: 0; }\n\n\n/** SEARCH **/\n\n.jd-search { z-index: {{!!z-search}}; }\n\n.jd-search-results {\n background: <<colour page-background>>;\n width: 100%;\n position: fixed;\n top: 50px;\n left: 0;\n margin: 0;\n padding: 0 10px;\n overflow-y: auto;\n z-index: {{!!z-searchwrapper}};\n}\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.jd-search-results { max-height: calc(100% - 100px); }\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.jd-search-results { max-height: calc(100% - 50px); }\n</$reveal>\n\n.jd-searchwrapper {\n background: <<colour page-background>>;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 50px;\n z-index: {{!!z-searchwrapper}};\n}\n\n.jd-searchbar {\n width: calc(100% - 20px);\n height: 30px; \n position: fixed;\n top: 0;\n left: 0;\n font-size: 16px !important;\n background: transparent !important;\n border: none;\n border-bottom: 2px solid<<colour primary>>;\n<$reveal state=\"$:/plugins/jd/mob/config/config##searchbarchoice\" type=\"match\" text=\"combined\">\n padding: 0 160px 0 10px;\n</$reveal>\n<$reveal state=\"$:/plugins/jd/mob/config/config##searchbarchoice\" type=\"match\" text=\"simple\">\n padding: 0 100px 0 10px;\n</$reveal>\n margin: 10px;\n}\n\n.jd-search-buttons {\n<$reveal state=\"$:/plugins/jd/mob/config/config##searchbarchoice\" type=\"match\" text=\"combined\">\n width: 160px; \n</$reveal>\n<$reveal state=\"$:/plugins/jd/mob/config/config##searchbarchoice\" type=\"match\" text=\"simple\">\n width: 100px; \n</$reveal>\n position: fixed; \n top: 12px;\n right: 0; \n background: <<colour page-background>>;\n border: transparent;\n margin-right: 20px; \n text-align: right;\n vertical-align: middle;\n}\n\n.jd-search-buttons {\n z-index: {{!!z-searchbuttons}};\n}\n\n.jd-search-buttons .tc-popup-keep,\n.jd-search-buttons .tc-btn-invisible {\n font-size: 18px;\n background: transparent;\n border: transparent;\n cursor: pointer;\n}\n\n.jd-search-buttons .tc-btn-invisible { margin-left: 8px; }\n\n\n/** CONTROLS **/\n\n.jd-title-controls {\n display: flex;\n justify-content: space-between;\n margin: 10px;\n}\n\n.jd-search-buttons button,\n.jd-title-controls button {\n fill: <<colour sidebar-controls-foreground>>;\n font-size: 1.6em;\n -webkit-transition-duration: {{$:/config/AnimationDuration}}ms;\n -moz-transition-duration: {{$:/config/AnimationDuration}}ms;\n -ms-transition-duration: {{$:/config/AnimationDuration}}ms;\n -o-transition-duration: {{$:/config/AnimationDuration}}ms;\n transition-duration: {{$:/config/AnimationDuration}}ms;\n}\n\n.jd-search-buttons button:hover,\n.jd-title-controls button:hover {\n fill: <<colour sidebar-controls-foreground-hover>>;\n}\n\n.jd-topbar .tc-page-controls,\n.jd-bottombar .tc-page-controls {\n display: flex;\n justify-content: space-between;\n height: 30px;\n margin: 10px;\n}\n\n.tc-page-controls button { margin: 0 !important;}\n\n\n/** TITLEBAR **/\n\n.jd-title-wrapper .tc-site-title,\n.jd-title-wrapper .tc-site-subtitle {\n position: absolute;\n left: 50%;\n text-align: center;\n -webkit-transform: translate(-50%, 50%);\n -moz-transform: translate(-50%, 50%);\n -ms-transform: translate(-50%, 50%);\n -o-transform: translate(-50%, 50%);\n transform: translate(-50%, 50%);\n}\n\n.jd-title-wrapper .tc-site-subtitle {\n width: calc(100% - 100px);\n}\n\n\n/** SIDEBAR LISTS **/\n\n.tc-sidebar-scrollable .tc-site-title,\n.tc-sidebar-scrollable .tc-site-subtitle,\n.tc-sidebar-scrollable .tc-page-controls,\n.tc-sidebar-scrollable .tc-search\n { display: none; }\n\n.tc-sidebar-header { padding: 0 !important; }\n\n<$reveal state=\"$:/state/sidebar\" type=\"nomatch\" text=\"no\">\n.tc-sidebar-scrollable {\n background: <<colour background>>;\n width: 100%;\n position: fixed;\n left: 0; \n z-index: {{!!z-sidebar}};\n overflow: auto !important;\n}\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/state/sidebar\" text=\"no\">\n\n.tc-sidebar-scrollable { display:none; }\n\n.tc-tab-set { overflow-y: auto !important; }\n\n</$reveal>\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"hide\">\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-sidebar-scrollable { \n top: 50px !important;\n height: calc(100% - 50px) !important;\n}\n\n.tc-sidebar-scrollable .tc-tab-buttons { top: 50px; }\n</$reveal>\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-sidebar-scrollable { \n top: 50px !important;\n height: calc(100% - 100px) !important;\n}\n\n.tc-sidebar-scrollable .tc-tab-buttons { top: 50px; }\n</$reveal>\n\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"hide\">\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-sidebar-scrollable { \n top: 0 !important;\n height: 100% !important;\n}\n</$reveal>\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-sidebar-scrollable { \n top: 0 !important;\n height: calc(100% - 50px) !important;\n}\n</$reveal>\n\n</$reveal>\n\n\n/** SIDEBAR LISTS BUTTONS **/\n\n.tc-sidebar-scrollable .tc-tab-buttons { margin: 10px; }\n\n.tc-sidebar-scrollable .tc-tab-content { \n margin: 10px !important; \n border: 0 !important;\n}\n\n\n/** ADJUSTABLE FONTS AND HEIGHTS **/\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##titlebaradjust\" text=\"no\">\n.jd-title-wrapper .tc-site-title { top: -3px; font-size: 18px; }\n.jd-title-wrapper .tc-site-subtitle { top: 15px; font-size: 12px; }\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##titlebaradjust\" text=\"yes\">\n.jd-title-wrapper .tc-site-title { top: {{!!height-sitetitle}}; font-size: {{!!font-sitetitle}}; }\n.jd-title-wrapper .tc-site-subtitle { top: {{!!height-subsitetitle}}; font-size: {{!!font-subsitetitle}}; }\n</$reveal>\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##fontsize\" text=\"default\">\n\n.tc-tiddler-view-frame h2.tc-title,\ninput.tc-titlebar.tc-edit-texteditor { \n font-size: {{!!font-title}} !important; \n}\n\n.tc-tiddler-view-frame .tc-subtitle { \n font-size: calc({{!!font-body}} - 4px) !important; \n}\n\nh1, h1 a { \n font-size: calc({{!!font-body}} + 6px) !important; \n}\n\nh2, h2 a { \n font-size: calc({{!!font-body}} + 4px) !important; \n}\n\nh3, h3 a { \n font-size: calc({{!!font-body}} + 2px) !important; \n}\n\nh4, a, li, table,\ninput, textarea, select,\n.tc-tiddler-preview-preview p,\n.tc-tiddler-view-frame p,\n.tc-modal p,\n.tc-btn-text,\n.jd-search-results,\n.tc-tab-content,\n.tc-modal-header h3 { \n font-size: {{!!font-body}} !important; \n line-height: {{!!lineheight}} !important;\n}\n\nbutton.tc-btn-invisible.tc-remove-tag-button,\n.tc-tag-label.tc-btn-invisible { \n font-size: calc({{!!font-body}} - 4px) !important; \n}\n\n.tc-tab-buttons button,\n.tc-tab-buttons.tc-vertical button,\n.tc-sidebar-scrollable .tc-tab-buttons button,\n.tc-sidebar-scrollable .tc-tab-buttons.tc-vertical button {\n font-size: {{!!font-tab-button}} !important;\n}\n\n.tc-btn-invisible,\n.tc-tiddler-controls button, \n.tc-tiddler-controls button svg, \n.tc-tiddler-controls button img,\n.tc-image-buttons,\n.tc-page-controls { \n font-size: {{!!font-button}} !important; \n}\n\n.tc-tiddler-controls button svg, \n.tc-tiddler-controls button img,\n.tc-image-buttons { \n height: {{!!font-button}} !important; \n width: {{!!font-button}} !important; \n}\n\n</$reveal>\n\n}",
+ "z-sidebar": "1500",
+ "z-searchwrapper": "2500",
+ "z-searchbuttons": "4100",
+ "z-search": "4000",
+ "z-notif": "9000",
+ "z-dropdown": "4000",
+ "z-bar": "2000",
+ "title": "$:/plugins/jd/mob/stylesheet",
+ "tags": "$:/tags/Stylesheet",
+ "modifier": "JD",
+ "modified": "20180903124046078",
+ "lineheight": "{{$:/temp/jd/mob/font/lineheight}}",
+ "height-subsitetitle": "{{$:/temp/jd/mob/font/height-subsitetitle}}",
+ "height-sitetitle": "{{$:/temp/jd/mob/font/height-sitetitle}}",
+ "font-title": "{{$:/temp/jd/mob/font/font-title}}",
+ "font-tab-button": "{{$:/temp/jd/mob/font/font-tab-button}}",
+ "font-subsitetitle": "{{$:/temp/jd/mob/font/font-subsitetitle}}",
+ "font-sitetitle": "{{$:/temp/jd/mob/font/font-sitetitle}}",
+ "font-button": "{{$:/temp/jd/mob/font/font-button}}",
+ "font-body": "{{$:/temp/jd/mob/font/font-body}}",
+ "list-after": "$:/themes/tiddlywiki/vanilla/base"
+ },
+ "$:/plugins/jd/mob/config/searchbutton": {
+ "created": "20171118142818660",
+ "creator": "JD",
+ "text": "<h3>Choose search button</h3>\n\n<$button class=\"tc-btn-invisible\">\n<<tglSearch show>>\n<$action-setfield $tiddler=\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\" text=\"hide\"/>\n<<jdconfig searchbarchoice simple>>\n<<jdconfig searchbutton simple>>\n<<jdradbut searchbutton simple>>\n</$button> Toggle for simple searchbar\n<br>\n<$button class=\"tc-btn-invisible\">\n<<tglSearch show>>\n<$action-setfield $tiddler=\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\" text=\"hide\"/>\n<<jdconfig searchbarchoice combined>>\n<<jdconfig searchbutton combined>>\n<<jdradbut searchbutton combined>>\n</$button> Toggle for combined searchbar\n<br>\n<$button class=\"tc-btn-invisible\">\n<<tglSearch hide>>\n<$action-setfield $tiddler=\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\" text=\"show\"/>\n<<jdconfig searchbutton core>>\n<<jdradbut searchbutton core>>\n</$button> Button to core search\n<br>\n<$button class=\"tc-btn-invisible\">\n<<tglSearch hide>>\n<$action-setfield $tiddler=\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\" text=\"hide\"/>\n<<jdconfig searchbutton hide>>\n<<jdradbut searchbutton hide>>\n</$button> Hidden\n<br><br>",
+ "title": "$:/plugins/jd/mob/config/searchbutton",
+ "tags": "",
+ "modifier": "JD",
+ "modified": "20171122125953528",
+ "caption": "Choose search button"
+ },
+ "$:/plugins/jd/mob/config/titlebar": {
+ "created": "20171118171842911",
+ "creator": "JD",
+ "text": "<h3>Vertical position</h3>\n\n<$button class=tc-btn-invisible>\n<<jdconfig titlebaradjust no>>\n<<jdradbut titlebaradjust no>>\n</$button> Default\n<br>\n<$button class=tc-btn-invisible>\n<<jdconfig titlebaradjust yes>>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/height-sitetitle\" caption=\"Site title vertical position\" text=\"-3px\" list-after=\"$:/temp/jd/mob/font/font-sitetitle\"/>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/font-sitetitle\" caption=\"Site title font size\" text=\"18px\"/>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/height-subsitetitle\" caption=\"Site subtitle vertical position\" text=\"15px\" list-after=\"$:/temp/jd/mob/font/font-subsitetitle\"/>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/font-subsitetitle\" caption=\"Site subtitle font size\" text=\"12px\"/>\n<<jdradbut titlebaradjust yes>>\n</$button> Custom\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##titlebaradjust\" text=\"yes\">\n\nInclude unit (''px'' or ''em'') when entering custom values\n\n<table style=\"width:100%\">\n<tr>\n<th style=\"width:40%\">Element</th>\n<th style=\"width:60%\">Adjust</th>\n</tr>\n<$list filter=\"[all[shadows+tiddlers]prefix[$:/temp/jd/mob/font/]suffix[sitetitle]]\">\n<tr>\n<td><$view field=\"caption\"/></td>\n<td><$edit-text tiddler={{!!title}} field=\"temp\" placeholder={{!!text}} class=\"texte\"/>\n<$reveal type=\"match\" state=!!temp text=\"\">\n<$button class=\"tc-btn-invisible\" style=\"color:grey; cursor:not-allowed;\">✓</$button>\n<$button class=\"tc-btn-invisible\" style=\"color:grey; cursor:not-allowed;\">✕</$button>\n</$reveal>\n<$reveal type=\"nomatch\" state=!!temp text=\"\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler={{!!title}} text={{!!temp}}/>\n<$action-setfield $tiddler={{!!title}} temp=\"\"/>✓</$button>\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler={{!!title}} temp=\"\"/>✕</$button>\n</$reveal>\n</td>\n</tr>\n</$list>\n</table>\n</$reveal>\n{{$:/plugins/jd/mob/config/searchbutton}}",
+ "title": "$:/plugins/jd/mob/config/titlebar",
+ "modifier": "JD",
+ "modified": "20171119072342630",
+ "caption": "Fonts and heights",
+ "tags": ""
+ },
+ "$:/plugins/jd/mob/config/searchbar": {
+ "created": "20171118171759396",
+ "creator": "JD",
+ "text": "<h3>Choose searchbar style</h3>\n\n<$button class=\"tc-btn-invisible\">\n<<tglSearch show>>\n<<jdconfig searchbarchoice combined>>\n<<jdconfig searchbutton combined>>\n<<jdradbut searchbutton combined>>\n</$button> Combined search\n<br>\n<$button class=\"tc-btn-invisible\">\n<<tglSearch show>>\n<<jdconfig searchbarchoice simple>>\n<<jdconfig searchbutton simple>>\n<<jdradbut searchbutton simple>>\n</$button> Simple search\n<p>\n<$checkbox tiddler=\"$:/config/jd/mobbutton/visibility/$:/plugins/jd/mob/button/search\" field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> Show search button at controls\n</p>",
+ "title": "$:/plugins/jd/mob/config/searchbar",
+ "tags": "",
+ "modifier": "JD",
+ "modified": "20171122123127279",
+ "caption": "Choose searchbar style"
+ },
+ "$:/plugins/jd/mob/macros": {
+ "created": "20171119044207910",
+ "creator": "JD",
+ "text": "\\define jdconf() $:/plugins/jd/mob/config/config\n\\define jdconfont() $:/temp/jd/mob/font/\n\\define jdconfig(config:\"\" choice:\"\")\n<$action-setfield $tiddler=<<jdconf>> $index=\"$config$\" $value=$choice$/>\n\\end\n\\define moreOps(config:\"\" choice:\"\" option:\"\")\n<$reveal type=\"match\" state=\"$(jdconf)$##$config$\" text=\"$choice$\">\n<$reveal type=\"nomatch\" state=\"$(jdconf)$##$config$$choice$ops\" text=\"show\">\n<$button class =\"jd-btn-txt\" set=\"$(jdconf)$##$config$$choice$ops\" setTo=\"show\"> Show options</$button>\n</$reveal>\n<$reveal type=\"match\" state=\"$(jdconf)$##$config$$choice$ops\" text=\"show\">\n<$button class =\"jd-btn-txt\" set=\"$(jdconf)$##$config$$choice$ops\" setTo=\"hide\"> Hide options</$button>\n<div class=\"jd-bq\">{{$:/plugins/jd/mob/config/$option$}}</div>\n</$reveal>\n</$reveal>\n<br>\n\\end\n\\define jdfont(font-title:\"\" font-body:\"\" lineheight:\"\" font-tab:\"\" font-button:\"\")\n<$action-setfield $tiddler=\"$(jdconfont)$font-title\" text=\"$font-title$\"/>\n<$action-setfield $tiddler=\"$(jdconfont)$font-body\" text=\"$font-body$\"/>\n<$action-setfield $tiddler=\"$(jdconfont)$lineheight\" text=\"$lineheight$\"/>\n<$action-setfield $tiddler=\"$(jdconfont)$font-tab-button\" text=\"$font-tab$\"/>\n<$action-setfield $tiddler=\"$(jdconfont)$font-button\" text=\"$font-button$\"/>\n\\end\n\\define jdradbut(config:\"\" choice:\"\")\n<$reveal type=\"match\" state=\"$(jdconf)$##$config$\" text=\"$choice$\"><div class=\"radbutton\"></div></$reveal>\n<$reveal type=\"nomatch\" state=\"$(jdconf)$##$config$\" text=\"$choice$\"><div class=\"radbuttoff\"></div></$reveal>\n\\end\n\\define tglSearch(choice:\"show\")\n<$action-setfield $tiddler=\"$:/config/jd/mobbutton/visibility/$:/plugins/jd/mob/button/search\" text=$choice$/>\n\\end\n\\define notPreset()\n<<jdconfig barpreset 0>>\n\\end\n\\define setTopsearchbar()\n<<jdconfig topbar fixedsearch>>\n<<jdconfig topbarchoice hide>>\n<<jdconfig searchbar yes>>\n<<jdconfig radbuttop fixedsearch>>\n\\end\n\\define setToptitlebar()\n<<jdconfig searchbar no>>\n<<jdconfig topbar title>>\n<<jdconfig topbarchoice title>>\n<<jdconfig radbuttop title>>\n\\end\n\\define setTopcontrols()\n<<jdconfig searchbar no>>\n<<jdconfig topbar controls>>\n<<jdconfig topbarchoice controls>>\n<<jdconfig radbuttop controls>>\n\\end\n\\define setTopmobbuttons()\n<<jdconfig searchbar no>>\n<<jdconfig topbar mobbuttons>>\n<<jdconfig topbarchoice mobbuttons>>\n<<jdconfig radbuttop mobbuttons>>\n\\end\n\\define setTophide()\n<<jdconfig searchbar no>>\n<<jdconfig topbar hide>>\n<<jdconfig topbarchoice hide>>\n<<jdconfig radbuttop hide>>\n\\end\n\\define noBottom()\n<<jdconfig bottombar hide>>\n\\end\n\\define setBottomcontrols()\n<<jdconfig bottombar controls>>\n\\end\n\\define setJDmobdefaults()\n<<tglSearch>>\n<<jdconfig freshinstall yes>>\n<<jdconfig configtype list>>\n<<jdfont>>\n<<jdconfig fontsize default>>\n<<jdconfig scrollbars show>>\n<<jdconfig focus show>>\n<<jdconfig storyfix no>>\n<<jdconfig titlebaradjust no>>\n<<jdconfig topbarchoice hide>>\n<<jdconfig searchbarchoice simple>>\n<<jdconfig searchbutton simple>>\n<<jdconfig barpreset 4>>\n<<setTopsearchbar>>\n<<setBottomcontrols>>\n<<jdconfig radbuttopfixedsearchops hide>>\n<<jdconfig radbuttopcontrolsops hide>>\n<<jdconfig radbuttopmobbuttonsops hide>>\n<<jdconfig radbuttoptitleops hide>>\n<<jdconfig bottombarcontrolsops hide>>\n<<jdconfig bottombarmobbuttonsops hide>>\n<<jdconfig barpreset1ops hide>>\n<<jdconfig barpreset2ops hide>>\n<<jdconfig barpreset3ops hide>>\n<<jdconfig barpreset4ops hide>>\n<$fieldmangler tiddler=\"$:/plugins/jd/mob/button/search\">\n<$action-sendmessage $message=\"tm-add-tag\" $param=\"$:/tags/jd/mobbutton\"/>\n</$fieldmangler>\n\\end",
+ "title": "$:/plugins/jd/mob/macros",
+ "tags": "$:/tags/Macro",
+ "modifier": "JD",
+ "modified": "20171122150921869"
+ },
+ "$:/plugins/jd/mob/button/search": {
+ "created": "20171122115403541",
+ "creator": "JD",
+ "text": "<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##searchbar\" text=\"yes\">\n<$button class=\"tc-btn-invisible\" tooltip=\"Show searchbar\" set=\"$:/plugins/jd/mob/config/config##searchbar\" setTo=\"yes\">\n<<jdconfig topbar search>>\n{{$:/core/images/advanced-search-button}}\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##searchbar\" text=\"yes\">\n<$button class=\"tc-btn-invisible\" tooltip=\"Hide searchbar\" set=\"$:/plugins/jd/mob/config/config##searchbar\" setTo=\"no\">\n<<jdconfig topbar hide>>\n{{$:/core/images/advanced-search-button}}\n</$button>\n</$reveal>",
+ "title": "$:/plugins/jd/mob/button/search",
+ "tags": "$:/tags/jd/mobbutton",
+ "modifier": "JD",
+ "modified": "20171122154523596",
+ "description": "Toggle searchbar visibility",
+ "caption": "{{$:/core/images/advanced-search-button}} search"
+ },
+ "$:/plugins/jd/mob/template/search": {
+ "created": "20171018115714311",
+ "creator": "JD",
+ "text": "\\define NewTidActions(searcharea)\n<$action-createtiddler $basetitle={{$searcharea$}} $savetitle=\"$:/temp/NewTidTitle\"/>\n<$action-sendmessage $message=\"tm-edit-tiddler\" $param={{$:/temp/NewTidTitle}}/>\n<$action-deletetiddler $tiddler=\"$:/temp/NewTidTitle\"/>\n<$action-setfield $tiddler=\"$searcharea$\" text=\"\"/>\n\\end\n\n\\define NewTidBtn(searcharea)\n<$button tooltip=\"Create new tiddler with this title\" class=\"tc-btn-invisible\" actions=<<NewTidActions \"$searcharea$\">>>\n{{$:/core/images/new-button}}\n</$button>\n\\end\n\n\\define lingo-base() $:/language/Search/\n<$reveal state=\"$:/plugins/jd/mob/config/config##searchbar\" type=\"match\" text=\"yes\" default=\"yes\" retain=\"yes\" animate=\"yes\">\n\n<$reveal state=\"$:/plugins/jd/mob/config/config##searchbarchoice\" type=\"match\" text=\"simple\">\n<div class=\"jd-search\">\n<$keyboard class=\"jd-searchwrapper\" tag=\"div\" key=\"ctrl+space\" actions=<<NewTidActions \"$:/temp/search\">>>\n<$edit-text tiddler=\"$:/temp/search\" type=\"search\" tag=\"input\" placeholder={{$:/language/Search/Search}} class=\"jd-searchbar\"/>\n</$keyboard>\n<div class=\"jd-search-buttons\">\n<$list filter=\"[[$:/temp/search]!text[]]\" variable=\"statecheck\">\n<<NewTidBtn \"$:/temp/search\">>\n</$list>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##radbuttop\" text=\"fixedsearch\">\n<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" text={{$:/temp/search}}/>\n<$action-setfield $tiddler=\"$:/temp/search\" text=\"\"/>\n<$action-navigate $to=\"$:/AdvancedSearch\"/>\n{{$:/core/images/advanced-search-button}}\n</$button>\n<$list filter=\"[[$:/temp/search]!text[]]\" variable=\"statecheck\">\n<$button class=\"tc-btn-invisible\" tooltip=\"Clear searchbar\">\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" text=\"\"/>\n<$action-setfield $tiddler=\"$:/temp/search\" text=\"\"/>\n{{$:/core/images/close-button}}\n</$button>\n</$list>\n</$reveal>\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##radbuttop\" text=\"fixedsearch\">\n<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"tc-btn-invisible\">\n<<jdconfig searchbar no>>\n<<jdconfig topbar {{$:/plugins/jd/mob/config/config##topbarchoice}}>>\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" text={{$:/temp/search}}/>\n<$action-setfield $tiddler=\"$:/temp/search\" text=\"\"/>\n<$action-navigate $to=\"$:/AdvancedSearch\"/>\n{{$:/core/images/advanced-search-button}}\n</$button>\n<$button class=\"tc-btn-invisible\" tooltip=\"Clear and hide searchbar\">\n<<jdconfig searchbar no>>\n<<jdconfig topbar {{$:/plugins/jd/mob/config/config##topbarchoice}}>>\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" text=\"\"/>\n<$action-setfield $tiddler=\"$:/temp/search\" text=\"\"/>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n<div class=\"jd-search-results\">\n<$list filter=\"[[$:/temp/search]!text[]]\" variable=\"statecheck\">\n<$scrollable fallthrough=\"no\" class=\"results\">\n<$set name=\"searchTiddler\" value=\"$:/temp/search\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\" emptyMessage=\"\"\"\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\">\n<$transclude/>\n</$list>\n\"\"\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\" default={{$:/config/SearchResults/Default}}/>\n</$list>\n</$set>\n</$scrollable>\n</$list>\n</div>\n</div>\n</$reveal>\n\n<$reveal state=\"$:/plugins/jd/mob/config/config##searchbarchoice\" type=\"match\" text=\"combined\">\n<div class=\"jd-search\">\n<$keyboard class=\"jd-searchwrapper\" tag=\"div\" key=\"ctrl+space\" actions=<<NewTidActions \"$:/temp/advancedsearch\">>>\n<$linkcatcher to=\"$:/temp/advancedsearch\">\n<$edit-text tiddler=\"$:/temp/advancedsearch\" type=\"search\" tag=\"input\" placeholder={{$:/language/Search/Search}} class=\"jd-searchbar\"/>\n</$linkcatcher>\n</$keyboard>\n<div class=\"jd-search-buttons\">\n<$list filter=\"[[$:/temp/advancedsearch]!text[]]\" variable=\"statecheck\">\n<<NewTidBtn \"$:/temp/advancedsearch\">>\n</$list>\n{{$:/core/ui/AdvancedSearch/Filter/FilterButtons/delete}}\n{{$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown}}\n{{$:/core/ui/AdvancedSearch/Filter/FilterButtons/export}}\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##radbuttop\" text=\"fixedsearch\">\n{{$:/core/ui/AdvancedSearch/Filter/FilterButtons/clear}} \n</$reveal>\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##radbuttop\" text=\"fixedsearch\">\n<$button class=\"tc-btn-invisible\" tooltip=\"Clear and hide searchbar\">\n<<jdconfig searchbar no>>\n<<jdconfig topbar {{$:/plugins/jd/mob/config/config##topbarchoice}}>>\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" text=\"\"/>\n<$action-setfield $tiddler=\"$:/temp/search\" text=\"\"/>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n<div class=\"jd-search-results\">\n<!--STANDARD-->\n<$list filter=\"[[$:/temp/advancedsearch]!text[]]\" variable=\"statecheck\">\n<br>\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"{{$:/language/Search/Search/TooShort}}\"\"\" variable=\"listItem\">\n<$set name=\"searchTiddler\" value=\"$:/temp/advancedsearch\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\" emptyMessage=\"\"\"\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\">\n<$transclude/>\n</$list>\n\"\"\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\" default={{$:/config/SearchResults/Default}}/>\n</$list>\n</$set>\n</$list>\n</$list>\n<!--STANDARD-->\n<!--FILTER-->\n<$list filter=\"[[$:/temp/advancedsearch]!text[]]\" variable=\"statecheck\">\n<br><br>\n<$set name=\"resultCount\" value=\"\"\"<$count filter={{$:/temp/advancedsearch}}/>\"\"\">\nFilter search: <<lingo Filter/Matches>>\n<$list filter={{$:/temp/advancedsearch}} template=\"$:/core/ui/ListItemTemplate\"/>\n</$set>\n</$list>\n<!--FILTER-->\n<!--SYSTEM-->\n<$list filter=\"[[$:/temp/advancedsearch]!text[]]\" variable=\"statecheck\">\n<br>\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" variable=\"listItem\">\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]\"/>\"\"\">\nSystem search: <<lingo System/Matches>>\n<$list filter=\"[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n</$set>\n</$list>\n</$list>\n<!--SYSTEM-->\n<!--SHADOWS-->\n<$list filter=\"[[$:/temp/advancedsearch]!text[]]\" variable=\"statecheck\">\n<br>\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" variable=\"listItem\">\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[all[shadows]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]\"/>\"\"\">\nShadows search: <<lingo Shadows/Matches>>\n<$list filter=\"[all[shadows]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n</$set>\n</$list>\n</$list>\n<!--SHADOWS-->\n</div>\n</div>\n</$reveal>\n</$reveal>",
+ "title": "$:/plugins/jd/mob/template/search",
+ "tags": "$:/tags/PageTemplate",
+ "modifier": "JD",
+ "modified": "20180903123722931"
+ },
+ "$:/plugins/jd/mob/config/misc": {
+ "created": "20171122140327337",
+ "creator": "JD",
+ "text": "<h2>Miscellaneous</h2>\n<h3>Config button</h3>\n<$checkbox tiddler=\"$:/config/jd/mobbutton/visibility/$:/plugins/jd/mob/button/config\" field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> Show {{$:/core/images/theme-button}} button at ''Controls'' / ''Mobbuttons''\n<br><br>\n<hr>\n<h3>Scrollbars</h3>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig scrollbars hide>>\n<<jdradbut scrollbars hide>>\n</$button> Invisible scrollbars\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig scrollbars show>>\n<<jdradbut scrollbars show>>\n</$button> Visible scrollbars\n<br><br>\n<hr>\n<h3>Focus</h3>\n<p>Here we can hide the hightlight / outline on focused text inputs and buttons</p>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig focus show>>\n<<jdradbut focus show>>\n</$button> Default\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig focus hide>>\n<<jdradbut focus hide>>\n</$button> Hide focus\n<br><br>\n<hr>\n<h3>Story river</h3>\nHere we can try to stop the fist tiddler in the story river from scrolling past the topbar\n<br>\n''Side effects:''\n<br>\n<li>For ''classic'' and ''pop'' story view: tiddlers won't automatically scroll into view on link click</li>\n<li>Browser search bar won't automatically hide on scroll up (tested on Chrome for Android)</li>\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig storyfix yes>>\n<<jdradbut storyfix yes>>\n</$button> Apply \n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig storyfix no>>\n<<jdradbut storyfix no>>\n</$button> Don't apply\n<br><br>\n<hr>\n<h3>Restore defaults</h3>\n<div class=\"jd-bq\">\n<p>\nTo reset to...\n</p>\n<p>\nDefault font size, Visible scrollbars, ''Simple searchbar'' on top, ''Controls'' on bottom, ''Simple searchbar button'' on controls, Story river hack not applied...\n</p>\n<p>\nClick:\n</p>\n<p>\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##defaultconfirm\" text=\"confirm\">\n<$button class=\"jd-btn-txt\">\n<<jdconfig defaultconfirm confirm>>\nRestore defaults\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##defaultconfirm\" text=\"confirm\">\n<$button class=\"jd-btn-txt\">\n<<setJDmobdefaults>>\n<<jdconfig defaultconfirm cancel>>\nConfirm\n</$button>\n<$button class=\"jd-btn-txt\">\n<<jdconfig defaultconfirm cancel>>\nCancel\n</$button>\n</$reveal>\n</p>\n</div>\n<br>",
+ "title": "$:/plugins/jd/mob/config/misc",
+ "tags": "$:/tags/jd/config",
+ "modified": "20171122141012375",
+ "modifier": "JD",
+ "caption": "Miscellaneous"
+ }
+ }
+}
+a non-linear personal web notebook
+Copincha
+\define renderfield(title)
+<tr class="tc-view-field"><td class="tc-view-field-name">''$title$'':</td><td class="tc-view-field-value">//{{$:/language/Docs/Fields/$title$}}//</td></tr>
+\end
+<table class="tc-view-field-table"><tbody><$list filter="[fields[]sort[title]]" variable="listItem"><$macrocall $name="renderfield" title=<<listItem>>/></$list>
+</tbody></table>
+
+\define swatchStyle()
+background-color: $(swatchColour)$;
+\end
+\define swatch()
+<$set name="swatchColour" value={{##$(colour)$}}
+><div class="tc-swatch" style=<<swatchStyle>> title=<<colour>>/></$set>
+\end
+<div class="tc-swatches-horiz"><$list filter="
+foreground
+background
+muted-foreground
+primary
+page-background
+tab-background
+tiddler-info-background
+" variable="colour"><<swatch>></$list></div>
+\define lingo-base() $:/language/ControlPanel/Tools/Download/
+<$button class="tc-btn-big-green">
+<$action-sendmessage $message="tm-download-file" $param="$:/core/save/all" filename="index.html"/>
+<<lingo Full/Caption>> {{$:/core/images/save-button}}
+</$button>
+\define flag-title()
+$(languagePluginTitle)$/icon
+\end
+
+<$linkcatcher to="$:/language">
+<div class="tc-chooser tc-language-chooser">
+<$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[description]]">
+<$set name="cls" filter="[all[current]field:title{$:/language}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>>
+<$link>
+<span class="tc-image-button">
+<$set name="languagePluginTitle" value=<<currentTiddler>>>
+<$transclude subtiddler=<<flag-title>>>
+<$list filter="[all[current]field:title[$:/languages/en-GB]]">
+<$transclude tiddler="$:/languages/en-GB/icon"/>
+</$list>
+</$transclude>
+</$set>
+</span>
+<$view field="description">
+<$view field="name">
+<$view field="title"/>
+</$view>
+</$view>
+</$link>
+</div>
+</$set>
+</$list>
+</div>
+</$linkcatcher>
+<$select tiddler="$:/config/AutoFocus">
+<$list filter="title tags text type fields">
+<option value=<<currentTiddler>>><<currentTiddler>></option>
+</$list>
+</$select>
+
+<$select tiddler="$:/language">
+<$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[title]]">
+<option value=<<currentTiddler>>><$view field="description"><$view field="name"><$view field="title"/></$view></$view></option>
+</$list>
+</$select>
+\define lingo-base() $:/language/ControlPanel/Theme/
+<<lingo Prompt>> <$select tiddler="$:/theme">
+<$list filter="[plugin-type[theme]sort[title]]">
+<option value=<<currentTiddler>>><$view field="name"><$view field="title"/></$view></option>
+</$list>
+</$select>
+\define describeModuleType(type)
+{{$:/language/Docs/ModuleTypes/$type$}}
+\end
+<$list filter="[moduletypes[]]">
+
+!! <$macrocall $name="currentTiddler" $type="text/plain" $output="text/plain"/>
+
+<$macrocall $name="describeModuleType" type=<<currentTiddler>>/>
+
+<ul><$list filter="[all[current]modules[]]"><li><$link><<currentTiddler>></$link>
+</li>
+</$list>
+</ul>
+</$list>
+
+<$transclude tiddler="$:/PaletteManager"/>
+
+<$set name="currentTiddler" value={{$:/palette}}>
+{{||$:/snippets/currpalettepreview}}
+</$set>
+
+<$linkcatcher to="$:/palette">
+<div class="tc-chooser"><$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]"><$set name="cls" filter="[all[current]prefix{$:/palette}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>><$link to={{!!title}}>''<$view field="name" format="text"/>'' - <$view field="description" format="text"/>{{||$:/snippets/currpalettepreview}}</$link>
+</div></$set>
+</$list>
+</div>
+</$linkcatcher>
+
+\define expandable-stylesheets-list()
+<ol>
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]">
+<$vars state=<<qualify "$:/state/peek-stylesheets/open/">>>
+<$set name="state" value={{{ [<state>addsuffix<currentTiddler>] }}}>
+<li>
+<$reveal type="match" state=<<state>> text="yes" tag="span">
+<$button set=<<state>> setTo="no" class="tc-btn-invisible">
+{{$:/core/images/down-arrow}}
+</$button>
+</$reveal>
+<$reveal type="nomatch" state=<<state>> text="yes" tag="span">
+<$button set=<<state>> setTo="yes" class="tc-btn-invisible">
+{{$:/core/images/right-arrow}}
+</$button>
+</$reveal>
+<$link>
+<$view field="title"/>
+</$link>
+<$reveal type="match" state=<<state>> text="yes" tag="div">
+<$set name="source" tiddler=<<currentTiddler>>>
+<$wikify name="styles" text=<<source>>>
+<pre>
+<code>
+<$text text=<<styles>>/>
+</code>
+</pre>
+</$wikify>
+</$set>
+</$reveal>
+</li>
+</$set>
+</$vars>
+</$list>
+</ol>
+\end
+
+\define stylesheets-list()
+<ol>
+<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]">
+<li>
+<$link>
+<$view field="title"/>
+</$link>
+<$set name="source" tiddler=<<currentTiddler>>>
+<$wikify name="styles" text=<<source>>>
+<pre>
+<code>
+<$text text=<<styles>>/>
+</code>
+</pre>
+</$wikify>
+</$set>
+</li>
+</$list>
+</ol>
+\end
+
+<$vars modeState=<<qualify "$:/state/peek-stylesheets/mode/">>>
+
+<$reveal type="nomatch" state=<<modeState>> text="expanded" tag="div">
+<$button set=<<modeState>> setTo="expanded" class="tc-btn-invisible">{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Stylesheets/Expand/Caption}}</$button>
+</$reveal>
+<$reveal type="match" state=<<modeState>> text="expanded" tag="div">
+<$button set=<<modeState>> setTo="restored" class="tc-btn-invisible">{{$:/core/images/chevron-down}} {{$:/language/ControlPanel/Stylesheets/Restore/Caption}}</$button>
+</$reveal>
+
+<$reveal type="nomatch" state=<<modeState>> text="expanded" tag="div">
+<<expandable-stylesheets-list>>
+</$reveal>
+<$reveal type="match" state=<<modeState>> text="expanded" tag="div">
+<<stylesheets-list>>
+</$reveal>
+
+</$vars>
+
+<$linkcatcher to="$:/theme">
+<div class="tc-chooser"><$list filter="[plugin-type[theme]sort[title]]"><$set name="cls" filter="[all[current]field:title{$:/theme}] [[$:/theme]!has[text]addsuffix[s/tiddlywiki/vanilla]field:title<currentTiddler>] +[limit[1]]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>><$link to={{!!title}}>''<$view field="name" format="text"/>'' <$view field="description" format="text"/></$link></div>
+</$set>
+</$list>
+</div>
+</$linkcatcher>
+\define icon()
+$:/core/images/storyview-$(storyview)$
+\end
+<$linkcatcher to="$:/view">
+<div class="tc-chooser tc-viewswitcher">
+<$list filter="[storyviews[]]" variable="storyview">
+<$set name="cls" filter="[<storyview>prefix{$:/view}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>>
+<$link to=<<storyview>>><$transclude tiddler=<<icon>>/><$text text=<<storyview>>/></$link>
+</div>
+</$set>
+</$list>
+</div>
+</$linkcatcher>
+yes
+yes
+yes
+$:/core/ui/AdvancedSearch/System
+$:/core/ui/ControlPanel/StoryView
+$:/core/ui/ControlPanel/Basics
+$:/core/ui/ControlPanel/Plugins/Installed/Languages
+$:/core/ui/ControlPanel/EditorTypes
+$:/core/ui/ControlPanel/Appearance
+$:/core/ui/MoreSideBar/System
+$:/core/ui/SideBar/Tools
+no
+\define lingo-base() $:/language/TagManager/
+\define iconEditorTab(type)
+\whitespace trim
+<$link to=""><<lingo Icons/None>></$link>
+<$list filter="[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[sort[title]] +[$type$is[system]]">
+<$link to={{!!title}}>
+<$transclude/> <$view field="title"/>
+</$link>
+</$list>
+\end
+\define iconEditor(title)
+\whitespace trim
+<div class="tc-drop-down-wrapper">
+<$button popupTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}}</$button>
+<$reveal stateTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} type="popup" position="belowleft" text="" default="">
+<div class="tc-drop-down">
+<$linkcatcher actions="""<$action-setfield $tiddler=<<__title__>> icon=<<navigateTo>>/>""">
+<<iconEditorTab type:"!">>
+<hr/>
+<<iconEditorTab type:"">>
+</$linkcatcher>
+</div>
+</$reveal>
+</div>
+\end
+\define toggleButton(state)
+\whitespace trim
+<$reveal stateTitle=<<__state__>> type="match" text="closed" default="closed">
+<$button setTitle=<<__state__>> setTo="open" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected">
+{{$:/core/images/info-button}}
+</$button>
+</$reveal>
+<$reveal stateTitle=<<__state__>> type="match" text="open" default="closed">
+<$button setTitle=<<__state__>> setTo="closed" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected">
+{{$:/core/images/info-button}}
+</$button>
+</$reveal>
+\end
+\whitespace trim
+<table class="tc-tag-manager-table">
+<tbody>
+<tr>
+<th><<lingo Colour/Heading>></th>
+<th class="tc-tag-manager-tag"><<lingo Tag/Heading>></th>
+<th><<lingo Count/Heading>></th>
+<th><<lingo Icon/Heading>></th>
+<th><<lingo Info/Heading>></th>
+</tr>
+<$list filter="[tags[]!is[system]sort[title]]">
+<tr>
+<td><$edit-text field="color" tag="input" type="color"/></td>
+<td>{{||$:/core/ui/TagTemplate}}</td>
+<td><$count filter="[all[current]tagging[]]"/></td>
+<td>
+<$macrocall $name="iconEditor" title={{!!title}}/>
+</td>
+<td>
+<$macrocall $name="toggleButton" state={{{ [[$:/state/tag-manager/]addsuffix<currentTiddler>] }}} />
+</td>
+</tr>
+<tr>
+<td></td>
+<td colspan="4">
+<$reveal stateTitle={{{ [[$:/state/tag-manager/]addsuffix<currentTiddler>] }}} type="match" text="open" default="">
+<table>
+<tbody>
+<tr><td><<lingo Colour/Heading>></td><td><$edit-text field="color" tag="input" type="text" size="9"/></td></tr>
+<tr><td><<lingo Icon/Heading>></td><td><$edit-text field="icon" tag="input" size="45"/></td></tr>
+</tbody>
+</table>
+</$reveal>
+</td>
+</tr>
+</$list>
+<tr>
+<td></td>
+<td style="position:relative;">
+{{$:/core/ui/UntaggedTemplate}}
+</td>
+<td>
+<small class="tc-menu-list-count"><$count filter="[untagged[]!is[system]] -[tags[]]"/></small>
+</td>
+<td></td>
+<td></td>
+</tr>
+</tbody>
+</table>
+
+image twitter
+{
+ "tiddlers": {
+ "$:/info/browser": {
+ "title": "$:/info/browser",
+ "text": "yes"
+ },
+ "$:/info/node": {
+ "title": "$:/info/node",
+ "text": "no"
+ },
+ "$:/info/url/full": {
+ "title": "$:/info/url/full",
+ "text": "file:///media/m0/COPINCHA/proyectos/jardines-digitales/copincha.org/copincha-desarrollo.html"
+ },
+ "$:/info/url/host": {
+ "title": "$:/info/url/host",
+ "text": ""
+ },
+ "$:/info/url/hostname": {
+ "title": "$:/info/url/hostname",
+ "text": ""
+ },
+ "$:/info/url/protocol": {
+ "title": "$:/info/url/protocol",
+ "text": "file:"
+ },
+ "$:/info/url/port": {
+ "title": "$:/info/url/port",
+ "text": ""
+ },
+ "$:/info/url/pathname": {
+ "title": "$:/info/url/pathname",
+ "text": "/media/m0/COPINCHA/proyectos/jardines-digitales/copincha.org/copincha-desarrollo.html"
+ },
+ "$:/info/url/search": {
+ "title": "$:/info/url/search",
+ "text": ""
+ },
+ "$:/info/url/origin": {
+ "title": "$:/info/url/origin",
+ "text": "null"
+ },
+ "$:/info/browser/screen/width": {
+ "title": "$:/info/browser/screen/width",
+ "text": "1366"
+ },
+ "$:/info/browser/screen/height": {
+ "title": "$:/info/browser/screen/height",
+ "text": "768"
+ },
+ "$:/info/browser/language": {
+ "title": "$:/info/browser/language",
+ "text": "es-ES"
+ }
+ }
+}
+$:/themes/tiddlywiki/seamless
+{
+ "tiddlers": {
+ "$:/themes/tiddlywiki/seamless/base": {
+ "title": "$:/themes/tiddlywiki/seamless/base",
+ "tags": "[[$:/tags/Stylesheet]]",
+ "list-after": "$:/themes/tiddlywiki/vanilla/base",
+ "text": "\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline\n\n/*\nRules copied from Snow White\n*/\n\n.tc-page-controls button svg, .tc-tiddler-controls button svg, .tc-topbar button svg {\n\t<<transition \"fill 150ms ease-in-out\">>\n}\n\n.tc-tiddler-controls button.tc-selected svg {\n\t<<filter \"drop-shadow(0px -1px 2px rgba(0,0,0,0.25))\">>\n}\n\n.tc-drop-down {\n\tborder-radius: 4px;\n\t<<box-shadow \"2px 2px 10px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-block-dropdown {\n\tborder-radius: 4px;\n\t<<box-shadow \"2px 2px 10px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-modal-displayed {\n\t<<filter \"blur(4px)\">>\n}\n\n.tc-modal {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.3)\">>\n}\n\n.tc-modal-footer {\n\tborder-radius: 0 0 6px 6px;\n\t<<box-shadow \"inset 0 1px 0 #fff\">>;\n}\n\n.tc-alert {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.6)\">>\n}\n\n.tc-notification {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.3)\">>\n\ttext-shadow: 0 1px 0 rgba(255,255,255, 0.8);\n}\n\n.tc-message-box img {\n\t<<box-shadow \"1px 1px 3px rgba(0,0,0,0.5)\">>\n}\n\n/*\nSeamless modifications\n*/\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t/* Drop the tiddler frame padding */\n\tbody.tc-body .tc-tiddler-frame {\n\t\tpadding: 0;\n\t}\n\n\t/* Move the sidebar up so that the title lines up */\n\tbody.tc-body .tc-sidebar-scrollable {\n\t\tpadding: 43px 0 28px 42px;\n\t}\n\n\t/* Stop the tiddler info panel from bleeding into the tiddler frame padding */\n\tbody.tc-body .tc-tiddler-info {\n\t\tmargin: 0;\n\t}\n\n\t/* Stop message boxes from bleeding into the tiddler frame padding */\n\tbody.tc-body .tc-message-box {\n\t\tmargin: 21px 0 21px 0;\n\t}\n\n}\n\n/* Use the tiddler background colour for the page background */\nhtml body.tc-body {\n\tbackground-color: <<colour background>>;\n}\n\nhtml:-webkit-full-screen {\n\tbackground-color: <<colour background>>;\n}\n\n/* Adjust the colour of the page controls */\nbody.tc-body .tc-page-controls svg {\n\tfill: <<colour muted-foreground>>;\n}\n\n/* Adjust the colour of the sidebar selected tabs */\nbody.tc-body .tc-sidebar-lists .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: <<colour background>>;\n}\n"
+ }
+ }
+}
+{
+ "tiddlers": {
+ "$:/themes/tiddlywiki/snowwhite/base": {
+ "title": "$:/themes/tiddlywiki/snowwhite/base",
+ "tags": "[[$:/tags/Stylesheet]]",
+ "text": "\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline\n\n.tc-sidebar-header {\n\ttext-shadow: 0 1px 0 <<colour sidebar-foreground-shadow>>;\n}\n\n.tc-tiddler-info {\n\t<<box-shadow \"inset 1px 2px 3px rgba(0,0,0,0.1)\">>\n}\n\n@media screen {\n\t.tc-tiddler-frame {\n\t\t<<box-shadow \"1px 1px 5px rgba(0, 0, 0, 0.3)\">>\n\t}\n}\n\n@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\t.tc-tiddler-frame {\n\t\t<<box-shadow none>>\n\t}\n}\n\n.tc-page-controls button svg, .tc-tiddler-controls button svg, .tc-topbar button svg {\n\t<<transition \"fill 150ms ease-in-out\">>\n}\n\n.tc-tiddler-controls button.tc-selected,\n.tc-page-controls button.tc-selected {\n\t<<filter \"drop-shadow(0px -1px 2px rgba(0,0,0,0.25))\">>\n}\n\n.tc-tiddler-frame input.tc-edit-texteditor {\n\t<<box-shadow \"inset 0 1px 8px rgba(0, 0, 0, 0.15)\">>\n}\n\n.tc-edit-tags {\n\t<<box-shadow \"inset 0 1px 8px rgba(0, 0, 0, 0.15)\">>\n}\n\n.tc-tiddler-frame .tc-edit-tags input.tc-edit-texteditor {\n\t<<box-shadow \"none\">>\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<<box-shadow \"2px 2px 5px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-drop-down {\n\tborder-radius: 4px;\n\t<<box-shadow \"2px 2px 10px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-block-dropdown {\n\tborder-radius: 4px;\n\t<<box-shadow \"2px 2px 10px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-modal {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.3)\">>\n}\n\n.tc-modal-footer {\n\tborder-radius: 0 0 6px 6px;\n\t<<box-shadow \"inset 0 1px 0 #fff\">>;\n}\n\n\n.tc-alert {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.6)\">>\n}\n\n.tc-notification {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.3)\">>\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<<background-linear-gradient \"left, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.0) 100%\">>\n}\n\n.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button {\n\t<<background-linear-gradient \"left, rgba(0,0,0,0.01) 0%, rgba(0,0,0,0.1) 100%\">>\n}\n\n.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button.tc-tab-selected {\n\t<<background-linear-gradient \"left, rgba(0,0,0,0.05) 0%, rgba(255,255,255,0.05) 100%\">>\n}\n\n.tc-message-box img {\n\t<<box-shadow \"1px 1px 3px rgba(0,0,0,0.5)\">>\n}\n\n.tc-plugin-info {\n\t<<box-shadow \"1px 1px 3px rgba(0,0,0,0.5)\">>\n}\n"
+ }
+ }
+}
+{
+ "tiddlers": {
+ "$:/themes/tiddlywiki/vanilla/themetweaks": {
+ "title": "$:/themes/tiddlywiki/vanilla/themetweaks",
+ "tags": "$:/tags/ControlPanel/Appearance",
+ "caption": "{{$:/language/ThemeTweaks/ThemeTweaks}}",
+ "text": "\\define lingo-base() $:/language/ThemeTweaks/\n\n\\define replacement-text()\n[img[$(imageTitle)$]]\n\\end\n\n\\define backgroundimage-dropdown()\n<div class=\"tc-drop-down-wrapper\">\n<$button popup=<<qualify \"$:/state/popup/themetweaks/backgroundimage\">> class=\"tc-btn-invisible tc-btn-dropdown\">{{$:/core/images/down-arrow}}</$button>\n<$reveal state=<<qualify \"$:/state/popup/themetweaks/backgroundimage\">> type=\"popup\" position=\"belowleft\" text=\"\" default=\"\">\n<div class=\"tc-drop-down\">\n<$macrocall $name=\"image-picker\" actions=\"\"\"\n\n<$action-setfield\n\t$tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\"\n\t$value=<<imageTitle>>\n/>\n\n\"\"\"/>\n</div>\n</$reveal>\n</div>\n\\end\n\n\\define backgroundimageattachment-dropdown()\n<$select tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment\" default=\"scroll\">\n<option value=\"scroll\"><<lingo Settings/BackgroundImageAttachment/Scroll>></option>\n<option value=\"fixed\"><<lingo Settings/BackgroundImageAttachment/Fixed>></option>\n</$select>\n\\end\n\n\\define backgroundimagesize-dropdown()\n<$select tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize\" default=\"scroll\">\n<option value=\"auto\"><<lingo Settings/BackgroundImageSize/Auto>></option>\n<option value=\"cover\"><<lingo Settings/BackgroundImageSize/Cover>></option>\n<option value=\"contain\"><<lingo Settings/BackgroundImageSize/Contain>></option>\n</$select>\n\\end\n\n<<lingo ThemeTweaks/Hint>>\n\n! <<lingo Options>>\n\n|<$link to=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\"><<lingo Options/SidebarLayout>></$link> |<$select tiddler=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\"><option value=\"fixed-fluid\"><<lingo Options/SidebarLayout/Fixed-Fluid>></option><option value=\"fluid-fixed\"><<lingo Options/SidebarLayout/Fluid-Fixed>></option></$select> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/options/stickytitles\"><<lingo Options/StickyTitles>></$link><br>//<<lingo Options/StickyTitles/Hint>>// |<$select tiddler=\"$:/themes/tiddlywiki/vanilla/options/stickytitles\"><option value=\"no\">{{$:/language/No}}</option><option value=\"yes\">{{$:/language/Yes}}</option></$select> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/options/codewrapping\"><<lingo Options/CodeWrapping>></$link> |<$select tiddler=\"$:/themes/tiddlywiki/vanilla/options/codewrapping\"><option value=\"pre\">{{$:/language/No}}</option><option value=\"pre-wrap\">{{$:/language/Yes}}</option></$select> |\n\n! <<lingo Settings>>\n\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/fontfamily\"><<lingo Settings/FontFamily>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/fontfamily\" default=\"\" tag=\"input\"/> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/codefontfamily\"><<lingo Settings/CodeFontFamily>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/codefontfamily\" default=\"\" tag=\"input\"/> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\"><<lingo Settings/EditorFontFamily>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\" default=\"\" tag=\"input\"/> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\"><<lingo Settings/BackgroundImage>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\" default=\"\" tag=\"input\"/> |<<backgroundimage-dropdown>> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment\"><<lingo Settings/BackgroundImageAttachment>></$link> |<<backgroundimageattachment-dropdown>> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize\"><<lingo Settings/BackgroundImageSize>></$link> |<<backgroundimagesize-dropdown>> | |\n\n! <<lingo Metrics>>\n\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/fontsize\"><<lingo Metrics/FontSize>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/fontsize\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/lineheight\"><<lingo Metrics/LineHeight>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/lineheight\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize\"><<lingo Metrics/BodyFontSize>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/bodylineheight\"><<lingo Metrics/BodyLineHeight>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/bodylineheight\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storyleft\"><<lingo Metrics/StoryLeft>></$link><br>//<<lingo Metrics/StoryLeft/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storyleft\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storytop\"><<lingo Metrics/StoryTop>></$link><br>//<<lingo Metrics/StoryTop/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storytop\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storyright\"><<lingo Metrics/StoryRight>></$link><br>//<<lingo Metrics/StoryRight/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storyright\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storywidth\"><<lingo Metrics/StoryWidth>></$link><br>//<<lingo Metrics/StoryWidth/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storywidth\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth\"><<lingo Metrics/TiddlerWidth>></$link><br>//<<lingo Metrics/TiddlerWidth/Hint>>//<br> |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\"><<lingo Metrics/SidebarBreakpoint>></$link><br>//<<lingo Metrics/SidebarBreakpoint/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth\"><<lingo Metrics/SidebarWidth>></$link><br>//<<lingo Metrics/SidebarWidth/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth\" default=\"\" tag=\"input\"/> |\n"
+ },
+ "$:/themes/tiddlywiki/vanilla/base": {
+ "title": "$:/themes/tiddlywiki/vanilla/base",
+ "tags": "[[$:/tags/Stylesheet]]",
+ "text": "\\define custom-background-datauri()\n<$set name=\"background\" value={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}}>\n<$list filter=\"[<background>is[image]]\">\n`background: url(`\n<$list filter=\"[<background>!has[_canonical_uri]]\">\n`\"`<$macrocall $name=\"datauri\" title={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}}/>`\"`\n</$list>\n<$list filter=\"[<background>has[_canonical_uri]]\">\n`\"`<$view tiddler={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}} field=\"_canonical_uri\"/>`\"`\n</$list>\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</$list>\n</$set>\n\\end\n\n\\define if-fluid-fixed(text,hiddenSidebarText)\n<$reveal state=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\" type=\"match\" text=\"fluid-fixed\">\n$text$\n<$reveal state=\"$:/state/sidebar\" type=\"nomatch\" text=\"yes\" default=\"yes\">\n$hiddenSidebarText$\n</$reveal>\n</$reveal>\n\\end\n\n\\define if-editor-height-fixed(then,else)\n<$reveal state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"fixed\">\n$then$\n</$reveal>\n<$reveal state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"auto\">\n$else$\n</$reveal>\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=\"search\"] {\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: <<colour button-foreground>>;\n\tbackground: <<colour button-background>>;\n\tborder-color: <<colour button-border>>;\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: <<colour page-background>>;\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<<custom-background-datauri>>\n\tcolor: <<colour foreground>>;\n\tbackground-color: <<colour page-background>>;\n\tfill: <<colour foreground>>;\n}\n\n<<if-background-attachment \"\"\"\n\nbody.tc-body {\n background-color: transparent;\n}\n\n\"\"\">>\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: <<colour pre-background>>;\n\tborder: 1px solid <<colour pre-border>>;\n\tpadding: 0 3px 2px;\n\tborder-radius: 3px;\n\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};\n}\n\ncode {\n\tcolor: <<colour code-foreground>>;\n\tbackground-color: <<colour code-background>>;\n\tborder: 1px solid <<colour code-border>>;\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 <<colour blockquote-bar>>;\n\tmargin-left: 25px;\n\tpadding-left: 10px;\n\tquotes: \"\\201C\"\"\\201D\"\"\\2018\"\"\\2019\";\n}\n\nblockquote > div {\n\tmargin-top: 1em;\n\tmargin-bottom: 1em;\n}\n\nblockquote.tc-big-quote {\n\tfont-family: Georgia, serif;\n\tposition: relative;\n\tbackground: <<colour pre-background>>;\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: \"\\2014 \\2009\";\n}\n\nblockquote.tc-big-quote:before {\n\tfont-family: Georgia, serif;\n\tcolor: <<colour blockquote-bar>>;\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: <<colour blockquote-bar>>;\n\tcontent: close-quote;\n\tfont-size: 8em;\n\tline-height: 0.1em;\n\tmargin-right: 0.25em;\n\tvertical-align: -0.4em;\n\tposition: absolute;\n right: -80px;\n bottom: -20px;\n}\n\ndl dt {\n\tfont-weight: bold;\n\tmargin-top: 6px;\n}\n\nbutton, textarea, input, select {\n\toutline-color: <<colour primary>>;\n}\n\ntextarea,\ninput[type=text],\ninput[type=search],\ninput[type=\"\"],\ninput:not([type]) {\n\tcolor: <<colour foreground>>;\n\tbackground: <<colour background>>;\n}\n\ninput[type=\"checkbox\"] {\n vertical-align: middle;\n}\n\n.tc-muted {\n\tcolor: <<colour muted-foreground>>;\n}\n\nsvg.tc-image-button {\n\tpadding: 0px 1px 1px 0px;\n}\n\n.tc-icon-wrapper > 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: <<colour foreground>>;\n\tvertical-align: middle;\n\tbackground-color: <<colour background>>;\n\tborder: solid 1px <<colour muted-foreground>>;\n\tborder-bottom-color: <<colour muted-foreground>>;\n\tborder-radius: 3px;\n\tbox-shadow: inset 0 -1px 0 <<colour muted-foreground>>;\n}\n\n/*\nMarkdown likes putting code elements inside pre elements\n*/\npre > code {\n\tpadding: 0;\n\tborder: none;\n\tbackground-color: inherit;\n\tcolor: inherit;\n}\n\ntable {\n\tborder: 1px solid <<colour table-border>>;\n\twidth: auto;\n\tmax-width: 100%;\n\tcaption-side: bottom;\n\tmargin-top: 1em;\n\tmargin-bottom: 1em;\n\t/* next 2 elements needed, since normalize 8.0.1 */\n\tborder-collapse: collapse;\n\tborder-spacing: 0;\n}\n\ntable th, table td {\n\tpadding: 0 7px 0 7px;\n\tborder-top: 1px solid <<colour table-border>>;\n\tborder-left: 1px solid <<colour table-border>>;\n}\n\ntable thead tr td, table th {\n\tbackground-color: <<colour table-header-background>>;\n\tfont-weight: bold;\n}\n\ntable tfoot tr td {\n\tbackground-color: <<colour table-footer-background>>;\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 > embed,\n.tc-tiddler-body > 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: <<colour tiddler-link-foreground>>;\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: <<colour sidebar-tiddler-link-foreground>>;\n}\n\n.tc-sidebar-lists a.tc-tiddlylink:hover {\n\tcolor: <<colour sidebar-tiddler-link-foreground-hover>>;\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: <<colour external-link-foreground>>;\n\tbackground-color: <<colour external-link-background>>;\n}\n\na.tc-tiddlylink-external:visited {\n\tcolor: <<colour external-link-foreground-visited>>;\n\tbackground-color: <<colour external-link-background-visited>>;\n}\n\na.tc-tiddlylink-external:hover {\n\tcolor: <<colour external-link-foreground-hover>>;\n\tbackground-color: <<colour external-link-background-hover>>;\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: <<colour dragger-foreground>>;\n\ttext-shadow: 0 1px 0 rgba(0, 0, 0, 1);\n\twhite-space: nowrap;\n\tvertical-align: baseline;\n\tbackground-color: <<colour dragger-background>>;\n\tborder-radius: 20px;\n}\n\n.tc-tiddler-dragger-cover {\n\tposition: absolute;\n\tbackground-color: <<colour page-background>>;\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: <<colour dropzone-background>>;\n\ttext-align: center;\n\tcontent: \"<<lingo DropMessage>>\";\n}\n\n.tc-droppable > .tc-droppable-placeholder {\n\tdisplay: none;\n}\n\n.tc-droppable.tc-dragover > .tc-droppable-placeholder {\n\tdisplay: block;\n\tborder: 2px dashed <<colour dropzone-background>>;\n}\n\n.tc-draggable {\n\tcursor: move;\n}\n\n.tc-sidebar-tab-open .tc-droppable-placeholder, .tc-tagged-draggable-list .tc-droppable-placeholder,\n.tc-links-draggable-list .tc-droppable-placeholder {\n\tline-height: 2em;\n\theight: 2em;\n}\n\n.tc-sidebar-tab-open-item {\n\tposition: relative;\n}\n\n.tc-sidebar-tab-open .tc-btn-invisible.tc-btn-mini svg {\n\tfont-size: 0.7em;\n\tfill: <<colour muted-foreground>>;\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: <<colour alert-background>>;\n\ttext-align: center;\n}\n\n/*\n** Buttons\n*/\n\nbutton svg, button img, label svg, label img {\n\tvertical-align: middle;\n}\n\n.tc-btn-invisible {\n\tpadding: 0;\n\tmargin: 0;\n\tbackground: none;\n\tborder: none;\n \tcursor: pointer;\n\tcolor: <<colour foreground>>;\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 <<colour tiddler-controls-foreground>>;\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: <<colour muted-foreground>>;\n\tcolor: <<colour background>>;\n}\n\nhtml body.tc-body .tc-btn-boxed:hover svg {\n\tfill: <<colour background>>;\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 <<colour muted-foreground>>;\n\tbackground: <<colour muted-foreground>>;\n\tcolor: <<colour background>>;\n\tborder-radius: 2em;\n}\n\nhtml body.tc-body .tc-btn-rounded svg {\n\tfont-size: 1.6666em;\n\tfill: <<colour background>>;\n}\n\n.tc-btn-rounded:hover {\n\tborder: 1px solid <<colour muted-foreground>>;\n\tbackground: <<colour background>>;\n\tcolor: <<colour muted-foreground>>;\n}\n\nhtml body.tc-body .tc-btn-rounded:hover svg {\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-btn-icon svg {\n\theight: 1em;\n\twidth: 1em;\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-btn-text {\n\tpadding: 0;\n\tmargin: 0;\n}\n\n/* used for documentation \"fake\" 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: <<colour download-background>>;\n\tcolor: <<colour download-foreground>>;\n\tfill: <<colour download-foreground>>;\n\tborder: none;\n\tborder-radius: 2px;\n\tfont-size: 1.2em;\n\tline-height: 1.4em;\n\ttext-decoration: none;\n}\n\n.tc-btn-big-green svg,\n.tc-btn-big-green img {\n\theight: 2em;\n\twidth: 2em;\n\tvertical-align: middle;\n\tfill: <<colour download-foreground>>;\n}\n\n.tc-primary-btn {\n \tbackground: <<colour primary>>;\n}\n\n.tc-sidebar-lists input {\n\tcolor: <<colour foreground>>;\n}\n\n.tc-sidebar-lists button {\n\tcolor: <<colour sidebar-button-foreground>>;\n\tfill: <<colour sidebar-button-foreground>>;\n}\n\n.tc-sidebar-lists button.tc-btn-mini {\n\tcolor: <<colour sidebar-muted-foreground>>;\n}\n\n.tc-sidebar-lists button.tc-btn-mini:hover {\n\tcolor: <<colour sidebar-muted-foreground-hover>>;\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 <<colour tiddler-info-background>>;\n\tmargin-top: 4px;\n}\n\n.tc-unfold-banner:hover {\n\tbackground: <<colour tiddler-info-background>>;\n\tborder-top: 2px solid <<colour tiddler-info-border>>;\n}\n\n.tc-unfold-banner svg, .tc-fold-banner svg {\n\theight: 0.75em;\n\tfill: <<colour tiddler-controls-foreground>>;\n}\n\n.tc-unfold-banner:hover svg, .tc-fold-banner:hover svg {\n\tfill: <<colour tiddler-controls-foreground-hover>>;\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: <<colour tiddler-info-background>>;\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: <<colour tag-foreground>>;\n\twhite-space: nowrap;\n\tvertical-align: baseline;\n\tbackground-color: <<colour tag-background>>;\n\tborder-radius: 1em;\n}\n\n.tc-sidebar-scrollable .tc-tag-label {\n\ttext-shadow: none;\n}\n\n.tc-untagged-separator {\n\twidth: 10em;\n\tleft: 0;\n\tmargin-left: 0;\n\tborder: 0;\n\theight: 1px;\n\tbackground: <<colour tab-divider>>;\n}\n\nbutton.tc-untagged-label {\n\tbackground-color: <<colour untagged-background>>;\n}\n\n.tc-tag-label svg, .tc-tag-label img {\n\theight: 1em;\n\twidth: 1em;\n\tmargin-right: 3px; \n\tmargin-bottom: 1px;\n\tvertical-align: text-bottom;\n}\n\n.tc-edit-tags button.tc-remove-tag-button svg {\n\tfont-size: 0.7em;\n\tvertical-align: middle;\n}\n\n.tc-tag-manager-table .tc-tag-label {\n\twhite-space: normal;\n}\n\n.tc-tag-manager-tag {\n\twidth: 100%;\n}\n\nbutton.tc-btn-invisible.tc-remove-tag-button {\n\toutline: none;\n}\n\n/*\n** Page layout\n*/\n\n.tc-topbar {\n\tposition: fixed;\n\tz-index: 1200;\n}\n\n.tc-topbar-left {\n\tleft: 29px;\n\ttop: 5px;\n}\n\n.tc-topbar-right {\n\ttop: 5px;\n\tright: 29px;\n}\n\n.tc-topbar button {\n\tpadding: 8px;\n}\n\n.tc-topbar svg {\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-topbar button:hover svg {\n\tfill: <<colour foreground>>;\n}\n\n.tc-sidebar-header {\n\tcolor: <<colour sidebar-foreground>>;\n\tfill: <<colour sidebar-foreground>>;\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: <<colour sidebar-foreground>>;\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: <<colour sidebar-controls-foreground>>;\n}\n\n.tc-page-controls button:hover svg, .tc-page-controls a:hover svg {\n\tfill: <<colour sidebar-controls-foreground-hover>>;\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=\"rtl\"] .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<<if-no-sidebar \"\n\n\t.tc-story-river {\n\t\twidth: calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}});\n\t}\n\n\">>\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: <<colour tiddler-background>>;\n\tborder: 1px solid <<colour tiddler-border>>;\n}\n\n{{$:/themes/tiddlywiki/vanilla/sticky}}\n\n.tc-tiddler-info {\n\tpadding: 14px 42px 14px 42px;\n\tbackground-color: <<colour tiddler-info-background>>;\n\tborder-top: 1px solid <<colour tiddler-info-border>>;\n\tborder-bottom: 1px solid <<colour tiddler-info-border>>;\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: <<colour tiddler-info-tab-background>>;\n\tborder-bottom: 1px solid <<colour tiddler-info-tab-background>>;\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<<if-no-sidebar \"\n\n\t.tc-tiddler-frame {\n\t\twidth: 100%;\n\t}\n\n\">>\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: <<colour tiddler-title-foreground>>;\n\tmargin: 0;\n}\n\n.tc-site-title {\n\tcolor: <<colour site-title-foreground>>;\n}\n\n.tc-tiddler-title-icon {\n\tvertical-align: middle;\n\tmargin-right: .1em;\n}\n\n.tc-system-title-prefix {\n\tcolor: <<colour muted-foreground>>;\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: <<colour tiddler-subtitle-foreground>>;\n\tfont-weight: 300;\n}\n\n.tc-subtitle .tc-tiddlylink {\n\tmargin-right: .3em;\n}\n\n.tc-tiddler-missing .tc-title {\n font-style: italic;\n font-weight: normal;\n}\n\n.tc-tiddler-frame .tc-tiddler-controls {\n\tfloat: right;\n}\n\n.tc-tiddler-controls .tc-drop-down {\n\tfont-size: 0.6em;\n}\n\n.tc-tiddler-controls .tc-drop-down .tc-drop-down {\n\tfont-size: 1em;\n}\n\n.tc-tiddler-controls > span > button,\n.tc-tiddler-controls > span > span > button,\n.tc-tiddler-controls > span > span > span > 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: <<colour tiddler-controls-foreground>>;\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: <<colour tiddler-controls-foreground-selected>>;\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: <<colour tiddler-controls-foreground-hover>>;\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: <<colour muted-foreground>>;\n\tmargin-top: 14px;\n}\n\n.tc-tiddler-help a.tc-tiddlylink {\n\tcolor: <<colour very-muted-foreground>>;\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 <<colour tiddler-editor-border>>;\n\tbackground-color: <<colour tiddler-editor-background>>;\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: <<colour alert-background>>;\n\tborder: 1px solid <<colour alert-border>>;\n}\n\ncanvas.tc-edit-bitmapeditor {\n\tborder: 6px solid <<colour tiddler-editor-border-image>>;\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: <<colour tiddler-background>>;\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: <<colour tiddler-controls-foreground>>;\n\tcolor: <<colour tiddler-controls-foreground-selected>>;\n\tfill: <<colour tiddler-controls-foreground-selected>>;\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: <<colour primary>>;\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: <<colour tiddler-controls-foreground-selected>>;\n\tfill: <<colour background>>;\n\tcolor: <<colour background>>;\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<<if-fluid-fixed text:\"\"\"\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\"\"\" hiddenSidebarText:\"\"\"\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\"\"\">>\n\n}\n\n/*\n** Toolbar buttons\n*/\n\n.tc-page-controls svg.tc-image-new-button {\n fill: <<colour toolbar-new-button>>;\n}\n\n.tc-page-controls svg.tc-image-options-button {\n fill: <<colour toolbar-options-button>>;\n}\n\n.tc-page-controls svg.tc-image-save-button {\n fill: <<colour toolbar-save-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-info-button {\n fill: <<colour toolbar-info-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-edit-button {\n fill: <<colour toolbar-edit-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-close-button {\n fill: <<colour toolbar-close-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-delete-button {\n fill: <<colour toolbar-delete-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-cancel-button {\n fill: <<colour toolbar-cancel-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-done-button {\n fill: <<colour toolbar-done-button>>;\n}\n\n/*\n** Tiddler edit mode\n*/\n\n.tc-tiddler-edit-frame em.tc-edit {\n\tcolor: <<colour muted-foreground>>;\n\tfont-style: normal;\n}\n\n.tc-edit-type-dropdown a.tc-tiddlylink-missing {\n\tfont-style: normal;\n}\n\n.tc-type-selector .tc-edit-typeeditor {\n\twidth: 20%;\n}\n\n.tc-edit-tags {\n\tborder: 1px solid <<colour tiddler-editor-border>>;\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 <<colour tiddler-editor-border>>;\n\tmargin: 4px 0 3px 3px;\n\tpadding: 3px 3px 3px 3px;\n}\n\n<<if-editor-height-fixed then:\"\"\"\n\n.tc-tiddler-preview-preview {\n\toverflow-y: scroll;\n\theight: {{$:/config/TextEditor/EditorHeight/Height}};\n}\n\n\"\"\">>\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 > tbody > .tc-edit-field:nth-child(odd) {\n\tbackground-color: <<colour tiddler-editor-fields-odd>>;\n}\n\n.tc-edit-fields > tbody > .tc-edit-field:nth-child(even) {\n\tbackground-color: <<colour tiddler-editor-fields-even>>;\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: <<colour muted-foreground>>;\n\tvertical-align: middle;\n}\n\n.tc-edit-field-add-name {\n\tdisplay: inline-block;\n\twidth: 15%;\n}\n\n.tc-edit-field-add-value {\n\tdisplay: inline-block;\n\twidth: 40%;\n}\n\n.tc-edit-field-add-button {\n\tdisplay: inline-block;\n\twidth: 10%;\n}\n\n/*\n** Storyview Classes\n*/\n\n.tc-viewswitcher .tc-image-button {\n\tmargin-right: .3em;\n}\n\n.tc-storyview-zoomin-tiddler {\n\tposition: absolute;\n\tdisplay: block;\n\twidth: 100%;\n}\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t.tc-storyview-zoomin-tiddler {\n\t\twidth: calc(100% - 84px);\n\t}\n\n}\n\n/*\n** Dropdowns\n*/\n\n.tc-btn-dropdown {\n\ttext-align: left;\n}\n\n.tc-btn-dropdown svg, .tc-btn-dropdown img {\n\theight: 1em;\n\twidth: 1em;\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-drop-down-wrapper {\n\tposition: relative;\n}\n\n.tc-drop-down {\n\tmin-width: 380px;\n\tborder: 1px solid <<colour dropdown-border>>;\n\tbackground-color: <<colour dropdown-background>>;\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: <<colour foreground>>;\n}\n\n.tc-drop-down button.tc-btn-invisible:hover svg {\n\tfill: <<colour foreground>>;\n}\n\n.tc-drop-down .tc-drop-down-info {\n\tpadding-left: 14px;\n}\n\n.tc-drop-down p {\n\tpadding: 0 14px 0 14px;\n}\n\n.tc-drop-down svg {\n\twidth: 1em;\n\theight: 1em;\n}\n\n.tc-drop-down img {\n\twidth: 1em;\n}\n\n.tc-drop-down a, .tc-drop-down button {\n\tdisplay: block;\n\tpadding: 0 14px 0 14px;\n\twidth: 100%;\n\ttext-align: left;\n\tcolor: <<colour foreground>>;\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: <<colour foreground>>;\n}\n\n.tc-drop-down a:hover, .tc-drop-down button:hover, .tc-drop-down .tc-file-input-wrapper:hover button {\n\tcolor: <<colour tiddler-link-background>>;\n\tbackground-color: <<colour tiddler-link-foreground>>;\n\ttext-decoration: none;\n}\n\n.tc-drop-down .tc-tab-buttons button {\n\tbackground-color: <<colour dropdown-tab-background>>;\n}\n\n.tc-drop-down .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: <<colour dropdown-tab-background-selected>>;\n\tborder-bottom: 1px solid <<colour dropdown-tab-background-selected>>;\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 <<colour dropdown-border>>;\n\tbackground-color: <<colour dropdown-background>>;\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: <<colour muted-foreground>>;\n}\n\n.tc-block-dropdown a:hover {\n\tcolor: <<colour tiddler-link-background>>;\n\tbackground-color: <<colour tiddler-link-foreground>>;\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 <<colour muted-foreground>>;\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: <<colour primary>>;\n\tpadding: 0px;\n\tborder: 3px solid <<colour primary>>;\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: <<colour modal-backdrop>>;\n}\n\n.tc-modal {\n\tz-index: 1100;\n\tbackground-color: <<colour modal-background>>;\n\tborder: 1px solid <<colour modal-border>>;\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 <<colour modal-header-border>>;\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: <<colour modal-footer-background>>;\n\tborder-top: 1px solid <<colour modal-footer-border>>;\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: <<colour notification-background>>;\n\tborder: 1px solid <<colour notification-border>>;\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: <<colour tab-foreground-selected>>;\n\tbackground-color: <<colour tab-background-selected>>;\n\tborder-left: 1px solid <<colour tab-border-selected>>;\n\tborder-top: 1px solid <<colour tab-border-selected>>;\n\tborder-right: 1px solid <<colour tab-border-selected>>;\n}\n\n.tc-tab-buttons button {\n\tcolor: <<colour tab-foreground>>;\n\tpadding: 3px 5px 3px 5px;\n\tmargin-right: 0.3em;\n\tfont-weight: 300;\n\tborder: none;\n\tbackground: inherit;\n\tbackground-color: <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-right: 1px solid <<colour tab-border>>;\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: <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\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: <<colour tab-background-selected>>;\n\tborder-right: 1px solid <<colour tab-background-selected>>;\n}\n\n.tc-tab-divider {\n\tborder-top: 1px solid <<colour tab-divider>>;\n}\n\n.tc-tab-divider.tc-vertical {\n\tdisplay: none;\n}\n\n.tc-tab-content {\n\tmargin-top: 14px;\n}\n\n.tc-tab-content.tc-vertical {\n\tdisplay: inline-block;\n\tvertical-align: top;\n\tpadding-top: 0;\n\tpadding-left: 14px;\n\tborder-left: 1px solid <<colour tab-border>>;\n\t-webkit-flex: 1 0 70%;\n\tflex: 1 0 70%;\n\toverflow: auto;\n}\n\n.tc-sidebar-lists .tc-tab-buttons {\n\tmargin-bottom: -1px;\n}\n\n.tc-sidebar-lists .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: <<colour sidebar-tab-background-selected>>;\n\tcolor: <<colour sidebar-tab-foreground-selected>>;\n\tborder-left: 1px solid <<colour sidebar-tab-border-selected>>;\n\tborder-top: 1px solid <<colour sidebar-tab-border-selected>>;\n\tborder-right: 1px solid <<colour sidebar-tab-border-selected>>;\n}\n\n.tc-sidebar-lists .tc-tab-buttons button {\n\tbackground-color: <<colour sidebar-tab-background>>;\n\tcolor: <<colour sidebar-tab-foreground>>;\n\tborder-left: 1px solid <<colour sidebar-tab-border>>;\n\tborder-top: 1px solid <<colour sidebar-tab-border>>;\n\tborder-right: 1px solid <<colour sidebar-tab-border>>;\n}\n\n.tc-sidebar-lists .tc-tab-divider {\n\tborder-top: 1px solid <<colour sidebar-tab-divider>>;\n}\n\n.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button {\n\tdisplay: block;\n\twidth: 100%;\n\tbackground-color: <<colour sidebar-tab-background>>;\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 > .tc-tab-set > .tc-tab-buttons > button.tc-tab-selected {\n\tbackground-color: <<colour sidebar-tab-background-selected>>;\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 <<colour muted-foreground>>;\n\tborder-left: 1px solid <<colour muted-foreground>>;\n\tborder-right: 1px solid <<colour muted-foreground>>;\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 <<colour muted-foreground>>;\n\tpadding: 3px;\n}\n\n.tc-manager-list-item-heading-selected {\n\tfont-weight: bold;\n\tcolor: <<colour background>>;\n\tfill: <<colour background>>;\n\tbackground-color: <<colour foreground>>;\n}\n\n.tc-manager-list-item-heading:hover {\n\tbackground: <<colour primary>>;\n\tcolor: <<colour background>>;\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: <<colour tiddler-editor-background>>;\n border-right: 0.5em solid <<colour muted-foreground>>;\n border-bottom: 0.5em solid <<colour muted-foreground>>;\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: <<colour muted-foreground>>;\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 > 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 <<colour muted-foreground>>;\n border-right: 0.5em solid <<colour muted-foreground>>;\n border-bottom: 0.5em solid <<colour muted-foreground>>;\n}\n\n.tc-manager-list-item-content-item-body > table {\n\tborder: none;\n\tpadding: 0;\n\tmargin: 0;\n}\n\n.tc-manager-list-item-content-item-body > table td {\n\tborder: none;\n}\n\n.tc-manager-icon-editor > button {\n\twidth: 100%;\n}\n\n.tc-manager-icon-editor > button > svg,\n.tc-manager-icon-editor > button > button {\n\twidth: 100%;\n\theight: auto;\n}\n\n/*\n** Alerts\n*/\n\n.tc-alerts {\n\tposition: fixed;\n\ttop: 28px;\n\tleft: 0;\n\tright: 0;\n\tmax-width: 50%;\n\tz-index: 20000;\n}\n\n.tc-alert {\n\tposition: relative;\n\tmargin: 14px;\n\tpadding: 7px;\n\tborder: 1px solid <<colour alert-border>>;\n\tbackground-color: <<colour alert-background>>;\n}\n\n.tc-alert-toolbar {\n\tposition: absolute;\n\ttop: 7px;\n\tright: 7px;\n line-height: 0;\n}\n\n.tc-alert-toolbar svg {\n\tfill: <<colour alert-muted-foreground>>;\n}\n\n.tc-alert-subtitle {\n\tcolor: <<colour alert-muted-foreground>>;\n\tfont-weight: bold;\n font-size: 0.8em;\n margin-bottom: 0.5em;\n}\n\n.tc-alert-body > p {\n\tmargin: 0;\n}\n\n.tc-alert-highlight {\n\tcolor: <<colour alert-highlight>>;\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: <<colour static-alert-foreground>>;\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 <<colour background>>;\n\tborder-bottom-none;\n\tbackground: <<colour dirty-indicator>>;\n\tcolor: <<colour background>>;\n\tfill: <<colour background>>;\n}\n\n.tc-drafts-list a:hover {\n\ttext-decoration: none;\n\tbackground: <<colour foreground>>;\n\tcolor: <<colour background>>;\n\tfill: <<colour background>>;\n}\n\n.tc-drafts-list a svg {\n\twidth: 1em;\n\theight: 1em;\n\tvertical-align: text-bottom;\n}\n\n/*\n** Control panel\n*/\n\n.tc-control-panel td {\n\tpadding: 4px;\n}\n\n.tc-control-panel table, .tc-control-panel table input, .tc-control-panel table textarea {\n\twidth: 100%;\n}\n\n.tc-plugin-info {\n\tdisplay: flex;\n\tborder: 1px solid <<colour muted-foreground>>;\n\tfill: <<colour muted-foreground>>;\n\tbackground-color: <<colour background>>;\n\tmargin: 0.5em 0 0.5em 0;\n\tpadding: 4px;\n align-items: center;\n}\n\n.tc-plugin-info-sub-plugins .tc-plugin-info {\n margin: 0.5em;\n\tbackground: <<colour background>>;\n}\n\n.tc-plugin-info-sub-plugin-indicator {\n\tmargin: -16px 1em 0 2em;\n}\n\n.tc-plugin-info-sub-plugin-indicator button {\n\tcolor: <<colour background>>;\n\tbackground: <<colour foreground>>;\n\tborder-radius: 8px;\n padding: 2px 7px;\n font-size: 0.75em;\n}\n\n.tc-plugin-info-sub-plugins .tc-plugin-info-dropdown {\n\tmargin-left: 1em;\n\tmargin-right: 1em;\n}\n\n.tc-plugin-info-disabled {\n\tbackground: -webkit-repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);\n\tbackground: repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);\n}\n\n.tc-plugin-info-disabled:hover {\n\tbackground: -webkit-repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);\n\tbackground: repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);\n}\n\na.tc-tiddlylink.tc-plugin-info:hover {\n\ttext-decoration: none;\n\tbackground-color: <<colour primary>>;\n\tcolor: <<colour background>>;\n\tfill: <<colour foreground>>;\n}\n\na.tc-tiddlylink.tc-plugin-info:hover .tc-plugin-info > .tc-plugin-info-chunk > svg {\n\tfill: <<colour foreground>>;\n}\n\n.tc-plugin-info-chunk {\n margin: 2px;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-toggle {\n\tflex-grow: 0;\n\tflex-shrink: 0;\n\tline-height: 1;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-icon {\n\tflex-grow: 0;\n\tflex-shrink: 0;\n\tline-height: 1;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description {\n\tflex-grow: 1;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-buttons {\n\tfont-size: 0.8em;\n\tline-height: 1.2;\n\tflex-grow: 0;\n\tflex-shrink: 0;\n text-align: right;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description h1 {\n\tfont-size: 1em;\n\tline-height: 1.2;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description h2 {\n\tfont-size: 0.8em;\n\tline-height: 1.2;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description div {\n\tfont-size: 0.7em;\n\tline-height: 1.2;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-toggle img, .tc-plugin-info-chunk.tc-plugin-info-toggle svg {\n\twidth: 1em;\n\theight: 1em;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-icon img, .tc-plugin-info-chunk.tc-plugin-info-icon svg {\n\twidth: 2em;\n\theight: 2em;\n}\n\n.tc-plugin-info-dropdown {\n\tborder: 1px solid <<colour muted-foreground>>;\n\tbackground: <<colour background>>;\n\tmargin-top: -8px;\n}\n\n.tc-plugin-info-dropdown-message {\n\tbackground: <<colour message-background>>;\n\tpadding: 0.5em 1em 0.5em 1em;\n\tfont-weight: bold;\n\tfont-size: 0.8em;\n}\n\n.tc-plugin-info-dropdown-body {\n\tpadding: 1em 1em 0 1em;\n\tbackground: <<colour background>>;\n}\n\n.tc-plugin-info-sub-plugins {\n\tpadding: 0.5em;\n margin: 0 1em 1em 1em;\n\tbackground: <<colour notification-background>>;\n}\n\n.tc-install-plugin {\n\tfont-weight: bold;\n\tbackground: green;\n\tcolor: white;\n\tfill: white;\n\tborder-radius: 4px;\n\tpadding: 3px;\n}\n\n.tc-install-plugin.tc-reinstall-downgrade {\n\tbackground: red;\n}\n\n.tc-install-plugin.tc-reinstall {\n\tbackground: blue;\n}\n\n.tc-install-plugin.tc-reinstall-upgrade {\n\tbackground: orange;\n}\n\n.tc-check-list {\n\tline-height: 2em;\n}\n\n.tc-check-list .tc-image-button {\n\theight: 1.5em;\n}\n\n/*\n** Message boxes\n*/\n\n.tc-message-box {\n\tborder: 1px solid <<colour message-border>>;\n\tbackground: <<colour message-background>>;\n\tpadding: 0px 21px 0px 21px;\n\tfont-size: 12px;\n\tline-height: 18px;\n\tcolor: <<colour message-foreground>>;\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 <<colour muted-foreground>>;\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 <<colour table-header-background>>;\n\tborder-left: 1px solid <<colour table-header-background>>;\n}\n\n\n.tc-chooser-item {\n\tborder-bottom: 1px solid <<colour table-header-background>>;\n\tborder-top: 1px solid <<colour table-header-background>>;\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: <<colour table-header-background>>;\n\tborder-color: <<colour table-footer-background>>;\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: <<colour foreground>>;\n}\n\n.tc-chosen > .tc-tiddlylink:before {\n\tmargin-left: -10px;\n\tposition: relative;\n\tcontent: \"» \";\n}\n\n.tc-chooser-item svg,\n.tc-chooser-item img{\n\twidth: 1em;\n\theight: 1em;\n\tvertical-align: middle;\n}\n\n.tc-language-chooser .tc-image-button img {\n\twidth: 2em;\n\tvertical-align: -0.15em;\n}\n\n/*\n** Palette swatches\n*/\n\n.tc-swatches-horiz {\n}\n\n.tc-swatches-horiz .tc-swatch {\n\tdisplay: inline-block;\n}\n\n.tc-swatch {\n\twidth: 2em;\n\theight: 2em;\n\tmargin: 0.4em;\n\tborder: 1px solid #888;\n}\n\ninput.tc-palette-manager-colour-input {\n\twidth: 100%;\n\tpadding: 0;\n}\n\n/*\n** Table of contents\n*/\n\n.tc-sidebar-lists .tc-table-of-contents {\n\twhite-space: nowrap;\n}\n\n.tc-table-of-contents button {\n\tcolor: <<colour sidebar-foreground>>;\n}\n\n.tc-table-of-contents svg {\n\twidth: 0.7em;\n\theight: 0.7em;\n\tvertical-align: middle;\n\tfill: <<colour sidebar-foreground>>;\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: <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a,\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > 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 > a {\n\tborder-top: 1px solid <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-background>>;\n\tborder-bottom: 1px solid <<colour tab-background>>;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a:hover {\n\ttext-decoration: none;\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\n\tbackground: <<colour tab-border>>;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a {\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\n\tbackground: <<colour background>>;\n\tmargin-right: -1px;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > 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 <<colour tab-border>>;\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: <<colour dirty-indicator>>;\n\tcolor: <<colour dirty-indicator>>;\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<<filter \"drop-shadow(2px 2px 4px rgba(0,0,0,0.3))\">>\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<<filter \"drop-shadow(3px 3px 4px rgba(0,0,0,0.6))\">>\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: <<colour diff-equal-background>>;\n\tcolor: <<colour diff-equal-foreground>>;\n}\n\n.tc-diff-insert {\n\tbackground-color: <<colour diff-insert-background>>;\n\tcolor: <<colour diff-insert-foreground>>;\n}\n\n.tc-diff-delete {\n\tbackground-color: <<colour diff-delete-background>>;\n\tcolor: <<colour diff-delete-foreground>>;\n}\n\n.tc-diff-invisible {\n\tbackground-color: <<colour diff-invisible-background>>;\n\tcolor: <<colour diff-invisible-foreground>>;\n}\n\n.tc-diff-tiddlers th {\n\ttext-align: right;\n\tbackground: <<colour background>>;\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: <<colour select-tag-foreground>>;\n background: <<colour select-tag-background>>;\n}\n\n/*\n** Utility classes for SVG icons\n*/\n\n.tc-fill-background {\n\tfill: <<colour background>>;\n}"
+ },
+ "$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize": {
+ "title": "$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize",
+ "text": "15px"
+ },
+ "$:/themes/tiddlywiki/vanilla/metrics/bodylineheight": {
+ "title": "$:/themes/tiddlywiki/vanilla/metrics/bodylineheight",
+ "text": "22px"
+ },
+ "$:/themes/tiddlywiki/vanilla/metrics/fontsize": {
+ "title": "$:/themes/tiddlywiki/vanilla/metrics/fontsize",
+ "text": "14px"
+ },
+ "$:/themes/tiddlywiki/vanilla/metrics/lineheight": {
+ "title": "$:/themes/tiddlywiki/vanilla/metrics/lineheight",
+ "text": "20px"
+ },
+ "$:/themes/tiddlywiki/vanilla/metrics/storyleft": {
+ "title": "$:/themes/tiddlywiki/vanilla/metrics/storyleft",
+ "text": "0px"
+ },
+ "$:/themes/tiddlywiki/vanilla/metrics/storytop": {
+ "title": "$:/themes/tiddlywiki/vanilla/metrics/storytop",
+ "text": "0px"
+ },
+ "$:/themes/tiddlywiki/vanilla/metrics/storyright": {
+ "title": "$:/themes/tiddlywiki/vanilla/metrics/storyright",
+ "text": "770px"
+ },
+ "$:/themes/tiddlywiki/vanilla/metrics/storywidth": {
+ "title": "$:/themes/tiddlywiki/vanilla/metrics/storywidth",
+ "text": "770px"
+ },
+ "$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth": {
+ "title": "$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth",
+ "text": "686px"
+ },
+ "$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint": {
+ "title": "$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint",
+ "text": "960px"
+ },
+ "$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth": {
+ "title": "$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth",
+ "text": "350px"
+ },
+ "$:/themes/tiddlywiki/vanilla/options/stickytitles": {
+ "title": "$:/themes/tiddlywiki/vanilla/options/stickytitles",
+ "text": "no"
+ },
+ "$:/themes/tiddlywiki/vanilla/options/sidebarlayout": {
+ "title": "$:/themes/tiddlywiki/vanilla/options/sidebarlayout",
+ "text": "fixed-fluid"
+ },
+ "$:/themes/tiddlywiki/vanilla/options/codewrapping": {
+ "title": "$:/themes/tiddlywiki/vanilla/options/codewrapping",
+ "text": "pre-wrap"
+ },
+ "$:/themes/tiddlywiki/vanilla/reset": {
+ "title": "$:/themes/tiddlywiki/vanilla/reset",
+ "type": "text/plain",
+ "text": "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput { /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n"
+ },
+ "$:/themes/tiddlywiki/vanilla/settings/fontfamily": {
+ "title": "$:/themes/tiddlywiki/vanilla/settings/fontfamily",
+ "text": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\""
+ },
+ "$:/themes/tiddlywiki/vanilla/settings/codefontfamily": {
+ "title": "$:/themes/tiddlywiki/vanilla/settings/codefontfamily",
+ "text": "\"SFMono-Regular\",Consolas,\"Liberation Mono\",Menlo,Courier,monospace"
+ },
+ "$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment": {
+ "title": "$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment",
+ "text": "fixed"
+ },
+ "$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize": {
+ "title": "$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize",
+ "text": "auto"
+ },
+ "$:/themes/tiddlywiki/vanilla/sticky": {
+ "title": "$:/themes/tiddlywiki/vanilla/sticky",
+ "text": "<$reveal state=\"$:/themes/tiddlywiki/vanilla/options/stickytitles\" type=\"match\" text=\"yes\">\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: ``<<colour tiddler-background>>``;\n\tz-index: 500;\n}\n\n``\n<$list filter=\"[range[100]]\">\n`.tc-story-river .tc-tiddler-frame:nth-child(100n+`<$text text=<<currentTiddler>>/>`) {\nz-index: `<$text text={{{ [[200]subtract<currentTiddler>] }}}/>`;\n}\n`\n</$list>\n</$reveal>\n"
+ }
+ }
+}
+\define if-fluid-fixed(text,hiddenSidebarText)
+<$reveal state="$:/themes/tiddlywiki/vanilla/options/sidebarlayout" type="match" text="fluid-fixed">
+$text$
+<$reveal state="$:/state/sidebar" type="nomatch" text="yes" default="yes">
+$hiddenSidebarText$
+</$reveal>
+</$reveal>
+\end
+
+\define if-editor-height-fixed(then,else)
+<$reveal state="$:/config/TextEditor/EditorHeight/Mode" type="match" text="fixed">
+$then$
+</$reveal>
+<$reveal state="$:/config/TextEditor/EditorHeight/Mode" type="match" text="auto">
+$else$
+</$reveal>
+\end
+
+\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock
+
+/*
+** Start with the normalize CSS reset, and then belay some of its effects
+*/
+
+{{$:/themes/tiddlywiki/vanilla/reset}}
+
+*, input[type="search"] {
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ -webkit-box-sizing: border-box;
+}
+
+html button {
+ line-height: 1.2;
+ color: <<colour button-foreground>>;
+ background: <<colour button-background>>;
+ border-color: <<colour button-border>>;
+}
+
+/*
+** Basic element styles
+*/
+
+html {
+ font-family: {{$:/themes/tiddlywiki/vanilla/settings/fontfamily}};
+ text-rendering: optimizeLegibility; /* Enables kerning and ligatures etc. */
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+html:-webkit-full-screen {
+ background-color: <<colour page-background>>;
+}
+
+body.tc-body {
+ font-size: {{$:/themes/tiddlywiki/vanilla/metrics/fontsize}};
+ line-height: {{$:/themes/tiddlywiki/vanilla/metrics/lineheight}};
+ word-wrap: break-word;
+ color: <<colour foreground>>;
+ background-color: <<colour page-background>>;
+ fill: <<colour foreground>>;
+}
+
+<<if-background-attachment """
+
+body.tc-body {
+ background-color: transparent;
+}
+
+""">>
+
+h1, h2, h3, h4, h5, h6 {
+ line-height: 1.2;
+ font-weight: 300;
+}
+
+pre {
+ display: block;
+ padding: 14px;
+ margin-top: 1em;
+ margin-bottom: 1em;
+ word-break: normal;
+ word-wrap: break-word;
+ white-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}};
+ background-color: <<colour pre-background>>;
+ border: 1px solid <<colour pre-border>>;
+ padding: 0 3px 2px;
+ border-radius: 3px;
+ font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};
+}
+
+code {
+ color: <<colour code-foreground>>;
+ background-color: <<colour code-background>>;
+ border: 1px solid <<colour code-border>>;
+ white-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}};
+ padding: 0 3px 2px;
+ border-radius: 3px;
+ font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};
+}
+
+blockquote {
+ border-left: 5px solid <<colour blockquote-bar>>;
+ margin-left: 25px;
+ padding-left: 10px;
+ quotes: "\201C""\201D""\2018""\2019";
+}
+
+blockquote > div {
+ margin-top: 1em;
+ margin-bottom: 1em;
+}
+
+blockquote.tc-big-quote {
+ font-family: Georgia, serif;
+ position: relative;
+ background: <<colour pre-background>>;
+ border-left: none;
+ margin-left: 50px;
+ margin-right: 50px;
+ padding: 10px;
+ border-radius: 8px;
+}
+
+blockquote.tc-big-quote cite:before {
+ content: "\2014 \2009";
+}
+
+blockquote.tc-big-quote:before {
+ font-family: Georgia, serif;
+ color: <<colour blockquote-bar>>;
+ content: open-quote;
+ font-size: 8em;
+ line-height: 0.1em;
+ margin-right: 0.25em;
+ vertical-align: -0.4em;
+ position: absolute;
+ left: -50px;
+ top: 42px;
+}
+
+blockquote.tc-big-quote:after {
+ font-family: Georgia, serif;
+ color: <<colour blockquote-bar>>;
+ content: close-quote;
+ font-size: 8em;
+ line-height: 0.1em;
+ margin-right: 0.25em;
+ vertical-align: -0.4em;
+ position: absolute;
+ right: -80px;
+ bottom: -20px;
+}
+
+dl dt {
+ font-weight: bold;
+ margin-top: 6px;
+}
+
+button, textarea, input, select {
+ outline-color: <<colour primary>>;
+}
+
+textarea,
+input[type=text],
+input[type=search],
+input[type=""],
+input:not([type]) {
+ color: <<colour foreground>>;
+ background: <<colour background>>;
+}
+
+input[type="checkbox"] {
+ vertical-align: middle;
+}
+
+.tc-muted {
+ color: <<colour muted-foreground>>;
+}
+
+svg.tc-image-button {
+ padding: 0px 1px 1px 0px;
+}
+
+.tc-icon-wrapper > svg {
+ width: 1em;
+ height: 1em;
+}
+
+kbd {
+ display: inline-block;
+ padding: 3px 5px;
+ font-size: 0.8em;
+ line-height: 1.2;
+ color: <<colour foreground>>;
+ vertical-align: middle;
+ background-color: <<colour background>>;
+ border: solid 1px <<colour muted-foreground>>;
+ border-bottom-color: <<colour muted-foreground>>;
+ border-radius: 3px;
+ box-shadow: inset 0 -1px 0 <<colour muted-foreground>>;
+}
+
+/*
+Markdown likes putting code elements inside pre elements
+*/
+pre > code {
+ padding: 0;
+ border: none;
+ background-color: inherit;
+ color: inherit;
+}
+
+table {
+ border: 1px solid <<colour table-border>>;
+ width: auto;
+ max-width: 100%;
+ caption-side: bottom;
+ margin-top: 1em;
+ margin-bottom: 1em;
+ /* next 2 elements needed, since normalize 8.0.1 */
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+
+table th, table td {
+ padding: 0 7px 0 7px;
+ border-top: 1px solid <<colour table-border>>;
+ border-left: 1px solid <<colour table-border>>;
+}
+
+table thead tr td, table th {
+ background-color: <<colour table-header-background>>;
+ font-weight: bold;
+}
+
+table tfoot tr td {
+ background-color: <<colour table-footer-background>>;
+}
+
+.tc-csv-table {
+ white-space: nowrap;
+}
+
+.tc-tiddler-frame img,
+.tc-tiddler-frame svg,
+.tc-tiddler-frame canvas,
+.tc-tiddler-frame embed,
+.tc-tiddler-frame iframe {
+ max-width: 100%;
+}
+
+.tc-tiddler-body > embed,
+.tc-tiddler-body > iframe {
+ width: 100%;
+ height: 600px;
+}
+
+/*
+** Links
+*/
+
+button.tc-tiddlylink,
+a.tc-tiddlylink {
+ text-decoration: none;
+ font-weight: 500;
+ color: <<colour tiddler-link-foreground>>;
+ -webkit-user-select: inherit; /* Otherwise the draggable attribute makes links impossible to select */
+}
+
+.tc-sidebar-lists a.tc-tiddlylink {
+ color: <<colour sidebar-tiddler-link-foreground>>;
+}
+
+.tc-sidebar-lists a.tc-tiddlylink:hover {
+ color: <<colour sidebar-tiddler-link-foreground-hover>>;
+}
+
+button.tc-tiddlylink:hover,
+a.tc-tiddlylink:hover {
+ text-decoration: underline;
+}
+
+a.tc-tiddlylink-resolves {
+}
+
+a.tc-tiddlylink-shadow {
+ font-weight: bold;
+}
+
+a.tc-tiddlylink-shadow.tc-tiddlylink-resolves {
+ font-weight: normal;
+}
+
+a.tc-tiddlylink-missing {
+ font-style: italic;
+}
+
+a.tc-tiddlylink-external {
+ text-decoration: underline;
+ color: <<colour external-link-foreground>>;
+ background-color: <<colour external-link-background>>;
+}
+
+a.tc-tiddlylink-external:visited {
+ color: <<colour external-link-foreground-visited>>;
+ background-color: <<colour external-link-background-visited>>;
+}
+
+a.tc-tiddlylink-external:hover {
+ color: <<colour external-link-foreground-hover>>;
+ background-color: <<colour external-link-background-hover>>;
+}
+
+/*
+** Drag and drop styles
+*/
+
+.tc-tiddler-dragger {
+ position: relative;
+ z-index: -10000;
+}
+
+.tc-tiddler-dragger-inner {
+ position: absolute;
+ top: -1000px;
+ left: -1000px;
+ display: inline-block;
+ padding: 8px 20px;
+ font-size: 16.9px;
+ font-weight: bold;
+ line-height: 20px;
+ color: <<colour dragger-foreground>>;
+ text-shadow: 0 1px 0 rgba(0, 0, 0, 1);
+ white-space: nowrap;
+ vertical-align: baseline;
+ background-color: <<colour dragger-background>>;
+ border-radius: 20px;
+}
+
+.tc-tiddler-dragger-cover {
+ position: absolute;
+ background-color: <<colour page-background>>;
+}
+
+.tc-dropzone {
+ position: relative;
+}
+
+.tc-dropzone.tc-dragover:before {
+ z-index: 10000;
+ display: block;
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ background: <<colour dropzone-background>>;
+ text-align: center;
+ content: "<<lingo DropMessage>>";
+}
+
+.tc-droppable > .tc-droppable-placeholder {
+ display: none;
+}
+
+.tc-droppable.tc-dragover > .tc-droppable-placeholder {
+ display: block;
+ border: 2px dashed <<colour dropzone-background>>;
+}
+
+.tc-draggable {
+ cursor: move;
+}
+
+.tc-sidebar-tab-open .tc-droppable-placeholder, .tc-tagged-draggable-list .tc-droppable-placeholder,
+.tc-links-draggable-list .tc-droppable-placeholder {
+ line-height: 2em;
+ height: 2em;
+}
+
+.tc-sidebar-tab-open-item {
+ position: relative;
+}
+
+.tc-sidebar-tab-open .tc-btn-invisible.tc-btn-mini svg {
+ font-size: 0.7em;
+ fill: <<colour muted-foreground>>;
+}
+
+/*
+** Plugin reload warning
+*/
+
+.tc-plugin-reload-warning {
+ z-index: 1000;
+ display: block;
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ background: <<colour alert-background>>;
+ text-align: center;
+}
+
+/*
+** Buttons
+*/
+
+button svg, button img, label svg, label img {
+ vertical-align: middle;
+}
+
+.tc-btn-invisible {
+ padding: 0;
+ margin: 0;
+ background: none;
+ border: none;
+ cursor: pointer;
+ color: <<colour foreground>>;
+}
+
+.tc-btn-boxed {
+ font-size: 0.6em;
+ padding: 0.2em;
+ margin: 1px;
+ background: none;
+ border: 1px solid <<colour tiddler-controls-foreground>>;
+ border-radius: 0.25em;
+}
+
+html body.tc-body .tc-btn-boxed svg {
+ font-size: 1.6666em;
+}
+
+.tc-btn-boxed:hover {
+ background: <<colour muted-foreground>>;
+ color: <<colour background>>;
+}
+
+html body.tc-body .tc-btn-boxed:hover svg {
+ fill: <<colour background>>;
+}
+
+.tc-btn-rounded {
+ font-size: 0.5em;
+ line-height: 2;
+ padding: 0em 0.3em 0.2em 0.4em;
+ margin: 1px;
+ border: 1px solid <<colour muted-foreground>>;
+ background: <<colour muted-foreground>>;
+ color: <<colour background>>;
+ border-radius: 2em;
+}
+
+html body.tc-body .tc-btn-rounded svg {
+ font-size: 1.6666em;
+ fill: <<colour background>>;
+}
+
+.tc-btn-rounded:hover {
+ border: 1px solid <<colour muted-foreground>>;
+ background: <<colour background>>;
+ color: <<colour muted-foreground>>;
+}
+
+html body.tc-body .tc-btn-rounded:hover svg {
+ fill: <<colour muted-foreground>>;
+}
+
+.tc-btn-icon svg {
+ height: 1em;
+ width: 1em;
+ fill: <<colour muted-foreground>>;
+}
+
+.tc-btn-text {
+ padding: 0;
+ margin: 0;
+}
+
+/* used for documentation "fake" buttons */
+.tc-btn-standard {
+ line-height: 1.8;
+ color: #667;
+ background-color: #e0e0e0;
+ border: 1px solid #888;
+ padding: 2px 1px 2px 1px;
+ margin: 1px 4px 1px 4px;
+}
+
+.tc-btn-big-green {
+ display: inline-block;
+ padding: 8px;
+ margin: 4px 8px 4px 8px;
+ background: <<colour download-background>>;
+ color: <<colour download-foreground>>;
+ fill: <<colour download-foreground>>;
+ border: none;
+ border-radius: 2px;
+ font-size: 1.2em;
+ line-height: 1.4em;
+ text-decoration: none;
+}
+
+.tc-btn-big-green svg,
+.tc-btn-big-green img {
+ height: 2em;
+ width: 2em;
+ vertical-align: middle;
+ fill: <<colour download-foreground>>;
+}
+
+.tc-primary-btn {
+ background: <<colour primary>>;
+}
+
+.tc-sidebar-lists input {
+ color: <<colour foreground>>;
+}
+
+.tc-sidebar-lists button {
+ color: <<colour sidebar-button-foreground>>;
+ fill: <<colour sidebar-button-foreground>>;
+}
+
+.tc-sidebar-lists button.tc-btn-mini {
+ color: <<colour sidebar-muted-foreground>>;
+}
+
+.tc-sidebar-lists button.tc-btn-mini:hover {
+ color: <<colour sidebar-muted-foreground-hover>>;
+}
+
+button svg.tc-image-button, button .tc-image-button img {
+ height: 1em;
+ width: 1em;
+}
+
+.tc-unfold-banner {
+ position: absolute;
+ padding: 0;
+ margin: 0;
+ background: none;
+ border: none;
+ width: 100%;
+ width: calc(100% + 2px);
+ margin-left: -43px;
+ text-align: center;
+ border-top: 2px solid <<colour tiddler-info-background>>;
+ margin-top: 4px;
+}
+
+.tc-unfold-banner:hover {
+ background: <<colour tiddler-info-background>>;
+ border-top: 2px solid <<colour tiddler-info-border>>;
+}
+
+.tc-unfold-banner svg, .tc-fold-banner svg {
+ height: 0.75em;
+ fill: <<colour tiddler-controls-foreground>>;
+}
+
+.tc-unfold-banner:hover svg, .tc-fold-banner:hover svg {
+ fill: <<colour tiddler-controls-foreground-hover>>;
+}
+
+.tc-fold-banner {
+ position: absolute;
+ padding: 0;
+ margin: 0;
+ background: none;
+ border: none;
+ width: 23px;
+ text-align: center;
+ margin-left: -35px;
+ top: 6px;
+ bottom: 6px;
+}
+
+.tc-fold-banner:hover {
+ background: <<colour tiddler-info-background>>;
+}
+
+@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
+
+ .tc-unfold-banner {
+ position: static;
+ width: calc(100% + 59px);
+ }
+
+ .tc-fold-banner {
+ width: 16px;
+ margin-left: -16px;
+ font-size: 0.75em;
+ }
+
+}
+
+/*
+** Tags and missing tiddlers
+*/
+
+.tc-tag-list-item {
+ position: relative;
+ display: inline-block;
+ margin-right: 7px;
+}
+
+.tc-tags-wrapper {
+ margin: 4px 0 14px 0;
+}
+
+.tc-missing-tiddler-label {
+ font-style: italic;
+ font-weight: normal;
+ display: inline-block;
+ font-size: 11.844px;
+ line-height: 14px;
+ white-space: nowrap;
+ vertical-align: baseline;
+}
+
+button.tc-tag-label, span.tc-tag-label {
+ display: inline-block;
+ padding: 0.16em 0.7em;
+ font-size: 0.9em;
+ font-weight: 400;
+ line-height: 1.2em;
+ color: <<colour tag-foreground>>;
+ white-space: nowrap;
+ vertical-align: baseline;
+ background-color: <<colour tag-background>>;
+ border-radius: 1em;
+}
+
+.tc-sidebar-scrollable .tc-tag-label {
+ text-shadow: none;
+}
+
+.tc-untagged-separator {
+ width: 10em;
+ left: 0;
+ margin-left: 0;
+ border: 0;
+ height: 1px;
+ background: <<colour tab-divider>>;
+}
+
+button.tc-untagged-label {
+ background-color: <<colour untagged-background>>;
+}
+
+.tc-tag-label svg, .tc-tag-label img {
+ height: 1em;
+ width: 1em;
+ margin-right: 3px;
+ margin-bottom: 1px;
+ vertical-align: text-bottom;
+}
+
+.tc-edit-tags button.tc-remove-tag-button svg {
+ font-size: 0.7em;
+ vertical-align: middle;
+}
+
+.tc-tag-manager-table .tc-tag-label {
+ white-space: normal;
+}
+
+.tc-tag-manager-tag {
+ width: 100%;
+}
+
+button.tc-btn-invisible.tc-remove-tag-button {
+ outline: none;
+}
+
+/*
+** Page layout
+*/
+
+.tc-topbar {
+ position: fixed;
+ z-index: 1200;
+}
+
+.tc-topbar-left {
+ left: 29px;
+ top: 5px;
+}
+
+.tc-topbar-right {
+ top: 5px;
+ right: 29px;
+}
+
+.tc-topbar button {
+ padding: 8px;
+}
+
+.tc-topbar svg {
+ fill: <<colour muted-foreground>>;
+}
+
+.tc-topbar button:hover svg {
+ fill: <<colour foreground>>;
+}
+
+.tc-sidebar-header {
+ color: <<colour sidebar-foreground>>;
+ fill: <<colour sidebar-foreground>>;
+}
+
+.tc-sidebar-header .tc-title a.tc-tiddlylink-resolves {
+ font-weight: 300;
+}
+
+.tc-sidebar-header .tc-sidebar-lists p {
+ margin-top: 3px;
+ margin-bottom: 3px;
+}
+
+.tc-sidebar-header .tc-missing-tiddler-label {
+ color: <<colour sidebar-foreground>>;
+}
+
+.tc-advanced-search input {
+ width: 60%;
+}
+
+.tc-search a svg {
+ width: 1.2em;
+ height: 1.2em;
+ vertical-align: middle;
+}
+
+.tc-page-controls {
+ margin-top: 14px;
+ font-size: 1.5em;
+}
+
+.tc-page-controls .tc-drop-down {
+ font-size: 1rem;
+}
+
+.tc-page-controls button {
+ margin-right: 0.5em;
+}
+
+.tc-page-controls a.tc-tiddlylink:hover {
+ text-decoration: none;
+}
+
+.tc-page-controls img {
+ width: 1em;
+}
+
+.tc-page-controls svg {
+ fill: <<colour sidebar-controls-foreground>>;
+}
+
+.tc-page-controls button:hover svg, .tc-page-controls a:hover svg {
+ fill: <<colour sidebar-controls-foreground-hover>>;
+}
+
+.tc-menu-list-item {
+ white-space: nowrap;
+}
+
+.tc-menu-list-count {
+ font-weight: bold;
+}
+
+.tc-menu-list-subitem {
+ padding-left: 7px;
+}
+
+.tc-story-river {
+ position: relative;
+}
+
+@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
+
+ .tc-sidebar-header {
+ padding: 14px;
+ min-height: 32px;
+ margin-top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}};
+ }
+
+ .tc-story-river {
+ position: relative;
+ padding: 0;
+ }
+}
+
+@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
+
+ .tc-message-box {
+ margin: 21px -21px 21px -21px;
+ }
+
+ .tc-sidebar-scrollable {
+ position: fixed;
+ top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}};
+ left: {{$:/themes/tiddlywiki/vanilla/metrics/storyright}};
+ bottom: 0;
+ right: 0;
+ overflow-y: auto;
+ overflow-x: auto;
+ -webkit-overflow-scrolling: touch;
+ margin: 0 0 0 -42px;
+ padding: 71px 0 28px 42px;
+ }
+
+ html[dir="rtl"] .tc-sidebar-scrollable {
+ left: auto;
+ right: {{$:/themes/tiddlywiki/vanilla/metrics/storyright}};
+ }
+
+ .tc-story-river {
+ position: relative;
+ left: {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}};
+ top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}};
+ width: 60%;
+ padding: 42px 42px 42px 42px;
+ }
+
+<<if-no-sidebar "
+
+ .tc-story-river {
+ width: 60%;
+ }
+
+">>
+
+}
+
+@media print {
+
+ body.tc-body {
+ background-color: transparent;
+ }
+
+ .tc-sidebar-header, .tc-topbar {
+ display: none;
+ }
+
+ .tc-story-river {
+ margin: 0;
+ padding: 0;
+ }
+
+ .tc-story-river .tc-tiddler-frame {
+ margin: 0;
+ border: none;
+ padding: 0;
+ }
+}
+
+/*
+** Tiddler styles
+*/
+
+.tc-tiddler-frame {
+ position: relative;
+ margin-bottom: 28px;
+ background-color: <<colour tiddler-background>>;
+ border: 1px solid <<colour tiddler-border>>;
+}
+
+{{$:/themes/tiddlywiki/vanilla/sticky}}
+
+.tc-tiddler-info {
+ padding: 14px 42px 14px 42px;
+ background-color: <<colour tiddler-info-background>>;
+ border-top: 1px solid <<colour tiddler-info-border>>;
+ border-bottom: 1px solid <<colour tiddler-info-border>>;
+}
+
+.tc-tiddler-info p {
+ margin-top: 3px;
+ margin-bottom: 3px;
+}
+
+.tc-tiddler-info .tc-tab-buttons button.tc-tab-selected {
+ background-color: <<colour tiddler-info-tab-background>>;
+ border-bottom: 1px solid <<colour tiddler-info-tab-background>>;
+}
+
+.tc-view-field-table {
+ width: 100%;
+}
+
+.tc-view-field-name {
+ width: 1%; /* Makes this column be as narrow as possible */
+ text-align: right;
+ font-style: italic;
+ font-weight: 200;
+}
+
+.tc-view-field-value {
+}
+
+@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
+ .tc-tiddler-frame {
+ padding: 14px 14px 14px 14px;
+ }
+
+ .tc-tiddler-info {
+ margin: 0 -14px 0 -14px;
+ }
+}
+
+@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
+ .tc-tiddler-frame {
+ padding: 28px 42px 42px 42px;
+ width: {{$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth}};
+ border-radius: 2px;
+ }
+
+<<if-no-sidebar "
+
+ .tc-tiddler-frame {
+ width: 100%;
+ }
+
+">>
+
+ .tc-tiddler-info {
+ margin: 0 -42px 0 -42px;
+ }
+}
+
+.tc-site-title,
+.tc-titlebar {
+ font-weight: 300;
+ font-size: 2.35em;
+ line-height: 1.2em;
+ color: <<colour tiddler-title-foreground>>;
+ margin: 0;
+}
+
+.tc-site-title {
+ color: <<colour site-title-foreground>>;
+}
+
+.tc-tiddler-title-icon {
+ vertical-align: middle;
+ margin-right: .1em;
+}
+
+.tc-system-title-prefix {
+ color: <<colour muted-foreground>>;
+}
+
+.tc-titlebar h2 {
+ font-size: 1em;
+ display: inline;
+}
+
+.tc-titlebar img {
+ height: 1em;
+}
+
+.tc-subtitle {
+ font-size: 0.9em;
+ color: <<colour tiddler-subtitle-foreground>>;
+ font-weight: 300;
+}
+
+.tc-subtitle .tc-tiddlylink {
+ margin-right: .3em;
+}
+
+.tc-tiddler-missing .tc-title {
+ font-style: italic;
+ font-weight: normal;
+}
+
+.tc-tiddler-frame .tc-tiddler-controls {
+ float: right;
+}
+
+.tc-tiddler-controls .tc-drop-down {
+ font-size: 0.6em;
+}
+
+.tc-tiddler-controls .tc-drop-down .tc-drop-down {
+ font-size: 1em;
+}
+
+.tc-tiddler-controls > span > button,
+.tc-tiddler-controls > span > span > button,
+.tc-tiddler-controls > span > span > span > button {
+ vertical-align: baseline;
+ margin-left:5px;
+}
+
+.tc-tiddler-controls button svg, .tc-tiddler-controls button img,
+.tc-search button svg, .tc-search a svg {
+ fill: <<colour tiddler-controls-foreground>>;
+}
+
+.tc-tiddler-controls button svg, .tc-tiddler-controls button img {
+ height: 0.75em;
+}
+
+.tc-search button svg, .tc-search a svg {
+ height: 1.2em;
+ width: 1.2em;
+ margin: 0 0.25em;
+}
+
+.tc-tiddler-controls button.tc-selected svg,
+.tc-page-controls button.tc-selected svg {
+ fill: <<colour tiddler-controls-foreground-selected>>;
+}
+
+.tc-tiddler-controls button.tc-btn-invisible:hover svg,
+.tc-search button:hover svg, .tc-search a:hover svg {
+ fill: <<colour tiddler-controls-foreground-hover>>;
+}
+
+@media print {
+ .tc-tiddler-controls {
+ display: none;
+ }
+}
+
+.tc-tiddler-help { /* Help prompts within tiddler template */
+ color: <<colour muted-foreground>>;
+ margin-top: 14px;
+}
+
+.tc-tiddler-help a.tc-tiddlylink {
+ color: <<colour very-muted-foreground>>;
+}
+
+.tc-tiddler-frame .tc-edit-texteditor {
+ width: 100%;
+ margin: 4px 0 4px 0;
+}
+
+.tc-tiddler-frame input.tc-edit-texteditor,
+.tc-tiddler-frame textarea.tc-edit-texteditor,
+.tc-tiddler-frame iframe.tc-edit-texteditor {
+ padding: 3px 3px 3px 3px;
+ border: 1px solid <<colour tiddler-editor-border>>;
+ background-color: <<colour tiddler-editor-background>>;
+ line-height: 1.3em;
+ -webkit-appearance: none;
+ font-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}};
+}
+
+.tc-tiddler-frame .tc-binary-warning {
+ width: 100%;
+ height: 5em;
+ text-align: center;
+ padding: 3em 3em 6em 3em;
+ background: <<colour alert-background>>;
+ border: 1px solid <<colour alert-border>>;
+}
+
+canvas.tc-edit-bitmapeditor {
+ border: 6px solid <<colour tiddler-editor-border-image>>;
+ cursor: crosshair;
+ -moz-user-select: none;
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ margin-top: 6px;
+ margin-bottom: 6px;
+}
+
+.tc-edit-bitmapeditor-width {
+ display: block;
+}
+
+.tc-edit-bitmapeditor-height {
+ display: block;
+}
+
+.tc-tiddler-body {
+ clear: both;
+}
+
+.tc-tiddler-frame .tc-tiddler-body {
+ font-size: {{$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize}};
+ line-height: {{$:/themes/tiddlywiki/vanilla/metrics/bodylineheight}};
+}
+
+.tc-titlebar, .tc-tiddler-edit-title {
+ overflow: hidden; /* https://github.com/Jermolene/TiddlyWiki5/issues/282 */
+}
+
+html body.tc-body.tc-single-tiddler-window {
+ margin: 1em;
+ background: <<colour tiddler-background>>;
+}
+
+.tc-single-tiddler-window img,
+.tc-single-tiddler-window svg,
+.tc-single-tiddler-window canvas,
+.tc-single-tiddler-window embed,
+.tc-single-tiddler-window iframe {
+ max-width: 100%;
+}
+
+/*
+** Editor
+*/
+
+.tc-editor-toolbar {
+ margin-top: 8px;
+}
+
+.tc-editor-toolbar button {
+ vertical-align: middle;
+ background-color: <<colour tiddler-controls-foreground>>;
+ color: <<colour tiddler-controls-foreground-selected>>;
+ fill: <<colour tiddler-controls-foreground-selected>>;
+ border-radius: 4px;
+ padding: 3px;
+ margin: 2px 0 2px 4px;
+}
+
+.tc-editor-toolbar button.tc-text-editor-toolbar-item-adjunct {
+ margin-left: 1px;
+ width: 1em;
+ border-radius: 8px;
+}
+
+.tc-editor-toolbar button.tc-text-editor-toolbar-item-start-group {
+ margin-left: 11px;
+}
+
+.tc-editor-toolbar button.tc-selected {
+ background-color: <<colour primary>>;
+}
+
+.tc-editor-toolbar button svg {
+ width: 1.6em;
+ height: 1.2em;
+}
+
+.tc-editor-toolbar button:hover {
+ background-color: <<colour tiddler-controls-foreground-selected>>;
+ fill: <<colour background>>;
+ color: <<colour background>>;
+}
+
+.tc-editor-toolbar .tc-text-editor-toolbar-more {
+ white-space: normal;
+}
+
+.tc-editor-toolbar .tc-text-editor-toolbar-more button {
+ display: inline-block;
+ padding: 3px;
+ width: auto;
+}
+
+.tc-editor-toolbar .tc-search-results {
+ padding: 0;
+}
+
+/*
+** Adjustments for fluid-fixed mode
+*/
+
+@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
+
+<<if-fluid-fixed text:"""
+
+ .tc-story-river {
+ padding-right: 0;
+ position: relative;
+ width: 60%;
+ left: 0;
+ margin-left: {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}};
+ margin-right: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}};
+ }
+
+ .tc-tiddler-frame {
+ width: 100%;
+ }
+
+ .tc-sidebar-scrollable {
+ left: auto;
+ bottom: 0;
+ right: 0;
+ width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}};
+ }
+
+ body.tc-body .tc-storyview-zoomin-tiddler {
+ width: 100%;
+ width: calc(100% - 42px);
+ }
+
+""" hiddenSidebarText:"""
+
+ .tc-story-river {
+ padding-right: 3em;
+ margin-right: 0;
+ }
+
+ body.tc-body .tc-storyview-zoomin-tiddler {
+ width: 100%;
+ width: calc(100% - 84px);
+ }
+
+""">>
+
+}
+
+/*
+** Toolbar buttons
+*/
+
+.tc-page-controls svg.tc-image-new-button {
+ fill: <<colour toolbar-new-button>>;
+}
+
+.tc-page-controls svg.tc-image-options-button {
+ fill: <<colour toolbar-options-button>>;
+}
+
+.tc-page-controls svg.tc-image-save-button {
+ fill: <<colour toolbar-save-button>>;
+}
+
+.tc-tiddler-controls button svg.tc-image-info-button {
+ fill: <<colour toolbar-info-button>>;
+}
+
+.tc-tiddler-controls button svg.tc-image-edit-button {
+ fill: <<colour toolbar-edit-button>>;
+}
+
+.tc-tiddler-controls button svg.tc-image-close-button {
+ fill: <<colour toolbar-close-button>>;
+}
+
+.tc-tiddler-controls button svg.tc-image-delete-button {
+ fill: <<colour toolbar-delete-button>>;
+}
+
+.tc-tiddler-controls button svg.tc-image-cancel-button {
+ fill: <<colour toolbar-cancel-button>>;
+}
+
+.tc-tiddler-controls button svg.tc-image-done-button {
+ fill: <<colour toolbar-done-button>>;
+}
+
+/*
+** Tiddler edit mode
+*/
+
+.tc-tiddler-edit-frame em.tc-edit {
+ color: <<colour muted-foreground>>;
+ font-style: normal;
+}
+
+.tc-edit-type-dropdown a.tc-tiddlylink-missing {
+ font-style: normal;
+}
+
+.tc-type-selector .tc-edit-typeeditor {
+ width: 20%;
+}
+
+.tc-edit-tags {
+ border: 1px solid <<colour tiddler-editor-border>>;
+ padding: 4px 8px 4px 8px;
+}
+
+.tc-edit-add-tag {
+ display: inline-block;
+}
+
+.tc-edit-add-tag .tc-add-tag-name input {
+ width: 50%;
+}
+
+.tc-edit-add-tag .tc-keyboard {
+ display:inline;
+}
+
+.tc-edit-tags .tc-tag-label {
+ display: inline-block;
+}
+
+.tc-edit-tags-list {
+ margin: 14px 0 14px 0;
+}
+
+.tc-remove-tag-button {
+ padding-left: 4px;
+}
+
+.tc-tiddler-preview {
+ overflow: auto;
+}
+
+.tc-tiddler-preview-preview {
+ float: right;
+ width: 49%;
+ border: 1px solid <<colour tiddler-editor-border>>;
+ margin: 4px 0 3px 3px;
+ padding: 3px 3px 3px 3px;
+}
+
+<<if-editor-height-fixed then:"""
+
+.tc-tiddler-preview-preview {
+ overflow-y: scroll;
+ height: {{$:/config/TextEditor/EditorHeight/Height}};
+}
+
+""">>
+
+.tc-tiddler-frame .tc-tiddler-preview .tc-edit-texteditor {
+ width: 49%;
+}
+
+.tc-tiddler-frame .tc-tiddler-preview canvas.tc-edit-bitmapeditor {
+ max-width: 49%;
+}
+
+.tc-edit-fields {
+ width: 100%;
+}
+
+
+.tc-edit-fields table, .tc-edit-fields tr, .tc-edit-fields td {
+ border: none;
+ padding: 4px;
+}
+
+.tc-edit-fields > tbody > .tc-edit-field:nth-child(odd) {
+ background-color: <<colour tiddler-editor-fields-odd>>;
+}
+
+.tc-edit-fields > tbody > .tc-edit-field:nth-child(even) {
+ background-color: <<colour tiddler-editor-fields-even>>;
+}
+
+.tc-edit-field-name {
+ text-align: right;
+}
+
+.tc-edit-field-value input {
+ width: 100%;
+}
+
+.tc-edit-field-remove {
+}
+
+.tc-edit-field-remove svg {
+ height: 1em;
+ width: 1em;
+ fill: <<colour muted-foreground>>;
+ vertical-align: middle;
+}
+
+.tc-edit-field-add-name {
+ display: inline-block;
+ width: 15%;
+}
+
+.tc-edit-field-add-value {
+ display: inline-block;
+ width: 40%;
+}
+
+.tc-edit-field-add-button {
+ display: inline-block;
+ width: 10%;
+}
+
+/*
+** Storyview Classes
+*/
+
+.tc-viewswitcher .tc-image-button {
+ margin-right: .3em;
+}
+
+.tc-storyview-zoomin-tiddler {
+ position: absolute;
+ display: block;
+ width: 100%;
+}
+
+@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
+
+ .tc-storyview-zoomin-tiddler {
+ width: calc(100% - 84px);
+ }
+
+}
+
+/*
+** Dropdowns
+*/
+
+.tc-btn-dropdown {
+ text-align: left;
+}
+
+.tc-btn-dropdown svg, .tc-btn-dropdown img {
+ height: 1em;
+ width: 1em;
+ fill: <<colour muted-foreground>>;
+}
+
+.tc-drop-down-wrapper {
+ position: relative;
+}
+
+.tc-drop-down {
+ min-width: 380px;
+ border: 1px solid <<colour dropdown-border>>;
+ background-color: <<colour dropdown-background>>;
+ padding: 7px 0 7px 0;
+ margin: 4px 0 0 0;
+ white-space: nowrap;
+ text-shadow: none;
+ line-height: 1.4;
+}
+
+.tc-drop-down .tc-drop-down {
+ margin-left: 14px;
+}
+
+.tc-drop-down button svg, .tc-drop-down a svg {
+ fill: <<colour foreground>>;
+}
+
+.tc-drop-down button.tc-btn-invisible:hover svg {
+ fill: <<colour foreground>>;
+}
+
+.tc-drop-down .tc-drop-down-info {
+ padding-left: 14px;
+}
+
+.tc-drop-down p {
+ padding: 0 14px 0 14px;
+}
+
+.tc-drop-down svg {
+ width: 1em;
+ height: 1em;
+}
+
+.tc-drop-down img {
+ width: 1em;
+}
+
+.tc-drop-down a, .tc-drop-down button {
+ display: block;
+ padding: 0 14px 0 14px;
+ width: 100%;
+ text-align: left;
+ color: <<colour foreground>>;
+ line-height: 1.4;
+}
+
+.tc-drop-down .tc-tab-set .tc-tab-buttons button {
+ display: inline-block;
+ width: auto;
+ margin-bottom: 0px;
+ border-bottom-left-radius: 0;
+ border-bottom-right-radius: 0;
+}
+
+.tc-drop-down .tc-prompt {
+ padding: 0 14px;
+}
+
+.tc-drop-down .tc-chooser {
+ border: none;
+}
+
+.tc-drop-down .tc-chooser .tc-swatches-horiz {
+ font-size: 0.4em;
+ padding-left: 1.2em;
+}
+
+.tc-drop-down .tc-file-input-wrapper {
+ width: 100%;
+}
+
+.tc-drop-down .tc-file-input-wrapper button {
+ color: <<colour foreground>>;
+}
+
+.tc-drop-down a:hover, .tc-drop-down button:hover, .tc-drop-down .tc-file-input-wrapper:hover button {
+ color: <<colour tiddler-link-background>>;
+ background-color: <<colour tiddler-link-foreground>>;
+ text-decoration: none;
+}
+
+.tc-drop-down .tc-tab-buttons button {
+ background-color: <<colour dropdown-tab-background>>;
+}
+
+.tc-drop-down .tc-tab-buttons button.tc-tab-selected {
+ background-color: <<colour dropdown-tab-background-selected>>;
+ border-bottom: 1px solid <<colour dropdown-tab-background-selected>>;
+}
+
+.tc-drop-down-bullet {
+ display: inline-block;
+ width: 0.5em;
+}
+
+.tc-drop-down .tc-tab-contents a {
+ padding: 0 0.5em 0 0.5em;
+}
+
+.tc-block-dropdown-wrapper {
+ position: relative;
+}
+
+.tc-block-dropdown {
+ position: absolute;
+ min-width: 220px;
+ border: 1px solid <<colour dropdown-border>>;
+ background-color: <<colour dropdown-background>>;
+ padding: 7px 0;
+ margin: 4px 0 0 0;
+ white-space: nowrap;
+ z-index: 1000;
+ text-shadow: none;
+}
+
+.tc-block-dropdown.tc-search-drop-down {
+ margin-left: -12px;
+}
+
+.tc-block-dropdown a {
+ display: block;
+ padding: 4px 14px 4px 14px;
+}
+
+.tc-block-dropdown.tc-search-drop-down a {
+ display: block;
+ padding: 0px 10px 0px 10px;
+}
+
+.tc-drop-down .tc-dropdown-item-plain,
+.tc-block-dropdown .tc-dropdown-item-plain {
+ padding: 4px 14px 4px 7px;
+}
+
+.tc-drop-down .tc-dropdown-item,
+.tc-block-dropdown .tc-dropdown-item {
+ padding: 4px 14px 4px 7px;
+ color: <<colour muted-foreground>>;
+}
+
+.tc-block-dropdown a:hover {
+ color: <<colour tiddler-link-background>>;
+ background-color: <<colour tiddler-link-foreground>>;
+ text-decoration: none;
+}
+
+.tc-search-results {
+ padding: 0 7px 0 7px;
+}
+
+.tc-image-chooser, .tc-colour-chooser {
+ white-space: normal;
+}
+
+.tc-image-chooser a,
+.tc-colour-chooser a {
+ display: inline-block;
+ vertical-align: top;
+ text-align: center;
+ position: relative;
+}
+
+.tc-image-chooser a {
+ border: 1px solid <<colour muted-foreground>>;
+ padding: 2px;
+ margin: 2px;
+ width: 4em;
+ height: 4em;
+}
+
+.tc-colour-chooser a {
+ padding: 3px;
+ width: 2em;
+ height: 2em;
+ vertical-align: middle;
+}
+
+.tc-image-chooser a:hover,
+.tc-colour-chooser a:hover {
+ background: <<colour primary>>;
+ padding: 0px;
+ border: 3px solid <<colour primary>>;
+}
+
+.tc-image-chooser a svg,
+.tc-image-chooser a img {
+ display: inline-block;
+ width: auto;
+ height: auto;
+ max-width: 3.5em;
+ max-height: 3.5em;
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ margin: auto;
+}
+
+/*
+** Modals
+*/
+
+.tc-modal-wrapper {
+ position: fixed;
+ overflow: auto;
+ overflow-y: scroll;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 900;
+}
+
+.tc-modal-backdrop {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ z-index: 1000;
+ background-color: <<colour modal-backdrop>>;
+}
+
+.tc-modal {
+ z-index: 1100;
+ background-color: <<colour modal-background>>;
+ border: 1px solid <<colour modal-border>>;
+}
+
+@media (max-width: 55em) {
+ .tc-modal {
+ position: fixed;
+ top: 1em;
+ left: 1em;
+ right: 1em;
+ }
+
+ .tc-modal-body {
+ overflow-y: auto;
+ max-height: 400px;
+ max-height: 60vh;
+ }
+}
+
+@media (min-width: 55em) {
+ .tc-modal {
+ position: fixed;
+ top: 2em;
+ left: 25%;
+ width: 50%;
+ }
+
+ .tc-modal-body {
+ overflow-y: auto;
+ max-height: 400px;
+ max-height: 60vh;
+ }
+}
+
+.tc-modal-header {
+ padding: 9px 15px;
+ border-bottom: 1px solid <<colour modal-header-border>>;
+}
+
+.tc-modal-header h3 {
+ margin: 0;
+ line-height: 30px;
+}
+
+.tc-modal-header img, .tc-modal-header svg {
+ width: 1em;
+ height: 1em;
+}
+
+.tc-modal-body {
+ padding: 15px;
+}
+
+.tc-modal-footer {
+ padding: 14px 15px 15px;
+ margin-bottom: 0;
+ text-align: right;
+ background-color: <<colour modal-footer-background>>;
+ border-top: 1px solid <<colour modal-footer-border>>;
+}
+
+/*
+** Notifications
+*/
+
+.tc-notification {
+ position: fixed;
+ top: 14px;
+ right: 42px;
+ z-index: 1300;
+ max-width: 280px;
+ padding: 0 14px 0 14px;
+ background-color: <<colour notification-background>>;
+ border: 1px solid <<colour notification-border>>;
+}
+
+/*
+** Tabs
+*/
+
+.tc-tab-set.tc-vertical {
+ display: -webkit-flex;
+ display: flex;
+}
+
+.tc-tab-buttons {
+ font-size: 0.85em;
+ padding-top: 1em;
+ margin-bottom: -2px;
+}
+
+.tc-tab-buttons.tc-vertical {
+ z-index: 100;
+ display: block;
+ padding-top: 14px;
+ vertical-align: top;
+ text-align: right;
+ margin-bottom: inherit;
+ margin-right: -1px;
+ max-width: 33%;
+ -webkit-flex: 0 0 auto;
+ flex: 0 0 auto;
+}
+
+.tc-tab-buttons button.tc-tab-selected {
+ color: <<colour tab-foreground-selected>>;
+ background-color: <<colour tab-background-selected>>;
+ border-left: 1px solid <<colour tab-border-selected>>;
+ border-top: 1px solid <<colour tab-border-selected>>;
+ border-right: 1px solid <<colour tab-border-selected>>;
+}
+
+.tc-tab-buttons button {
+ color: <<colour tab-foreground>>;
+ padding: 3px 5px 3px 5px;
+ margin-right: 0.3em;
+ font-weight: 300;
+ border: none;
+ background: inherit;
+ background-color: <<colour tab-background>>;
+ border-left: 1px solid <<colour tab-border>>;
+ border-top: 1px solid <<colour tab-border>>;
+ border-right: 1px solid <<colour tab-border>>;
+ border-top-left-radius: 2px;
+ border-top-right-radius: 2px;
+ border-bottom-left-radius: 0;
+ border-bottom-right-radius: 0;
+}
+
+.tc-tab-buttons.tc-vertical button {
+ display: block;
+ width: 100%;
+ margin-top: 3px;
+ margin-right: 0;
+ text-align: right;
+ background-color: <<colour tab-background>>;
+ border-left: 1px solid <<colour tab-border>>;
+ border-bottom: 1px solid <<colour tab-border>>;
+ border-right: none;
+ border-top-left-radius: 2px;
+ border-bottom-left-radius: 2px;
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+}
+
+.tc-tab-buttons.tc-vertical button.tc-tab-selected {
+ background-color: <<colour tab-background-selected>>;
+ border-right: 1px solid <<colour tab-background-selected>>;
+}
+
+.tc-tab-divider {
+ border-top: 1px solid <<colour tab-divider>>;
+}
+
+.tc-tab-divider.tc-vertical {
+ display: none;
+}
+
+.tc-tab-content {
+ margin-top: 14px;
+}
+
+.tc-tab-content.tc-vertical {
+ display: inline-block;
+ vertical-align: top;
+ padding-top: 0;
+ padding-left: 14px;
+ border-left: 1px solid <<colour tab-border>>;
+ -webkit-flex: 1 0 70%;
+ flex: 1 0 70%;
+ overflow: auto;
+}
+
+.tc-sidebar-lists .tc-tab-buttons {
+ margin-bottom: -1px;
+}
+
+.tc-sidebar-lists .tc-tab-buttons button.tc-tab-selected {
+ background-color: <<colour sidebar-tab-background-selected>>;
+ color: <<colour sidebar-tab-foreground-selected>>;
+ border-left: 1px solid <<colour sidebar-tab-border-selected>>;
+ border-top: 1px solid <<colour sidebar-tab-border-selected>>;
+ border-right: 1px solid <<colour sidebar-tab-border-selected>>;
+}
+
+.tc-sidebar-lists .tc-tab-buttons button {
+ background-color: <<colour sidebar-tab-background>>;
+ color: <<colour sidebar-tab-foreground>>;
+ border-left: 1px solid <<colour sidebar-tab-border>>;
+ border-top: 1px solid <<colour sidebar-tab-border>>;
+ border-right: 1px solid <<colour sidebar-tab-border>>;
+}
+
+.tc-sidebar-lists .tc-tab-divider {
+ border-top: 1px solid <<colour sidebar-tab-divider>>;
+}
+
+.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button {
+ display: block;
+ width: 100%;
+ background-color: <<colour sidebar-tab-background>>;
+ border-top: none;
+ border-left: none;
+ border-bottom: none;
+ border-right: 1px solid #ccc;
+ margin-bottom: inherit;
+}
+
+.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button.tc-tab-selected {
+ background-color: <<colour sidebar-tab-background-selected>>;
+ border: none;
+}
+
+/*
+** Manager
+*/
+
+.tc-manager-wrapper {
+
+}
+
+.tc-manager-controls {
+
+}
+
+.tc-manager-control {
+ margin: 0.5em 0;
+}
+
+.tc-manager-list {
+ width: 100%;
+ border-top: 1px solid <<colour muted-foreground>>;
+ border-left: 1px solid <<colour muted-foreground>>;
+ border-right: 1px solid <<colour muted-foreground>>;
+}
+
+.tc-manager-list-item {
+
+}
+
+.tc-manager-list-item-heading {
+ display: block;
+ width: 100%;
+ text-align: left;
+ border-bottom: 1px solid <<colour muted-foreground>>;
+ padding: 3px;
+}
+
+.tc-manager-list-item-heading-selected {
+ font-weight: bold;
+ color: <<colour background>>;
+ fill: <<colour background>>;
+ background-color: <<colour foreground>>;
+}
+
+.tc-manager-list-item-heading:hover {
+ background: <<colour primary>>;
+ color: <<colour background>>;
+}
+
+.tc-manager-list-item-content {
+ display: flex;
+}
+
+.tc-manager-list-item-content-sidebar {
+ flex: 1 0;
+ background: <<colour tiddler-editor-background>>;
+ border-right: 0.5em solid <<colour muted-foreground>>;
+ border-bottom: 0.5em solid <<colour muted-foreground>>;
+ white-space: nowrap;
+}
+
+.tc-manager-list-item-content-item-heading {
+ display: block;
+ width: 100%;
+ text-align: left;
+ background: <<colour muted-foreground>>;
+ text-transform: uppercase;
+ font-size: 0.6em;
+ font-weight: bold;
+ padding: 0.5em 0 0.5em 0;
+}
+
+.tc-manager-list-item-content-item-body {
+ padding: 0 0.5em 0 0.5em;
+}
+
+.tc-manager-list-item-content-item-body > pre {
+ margin: 0.5em 0 0.5em 0;
+ border: none;
+ background: inherit;
+}
+
+.tc-manager-list-item-content-tiddler {
+ flex: 3 1;
+ border-left: 0.5em solid <<colour muted-foreground>>;
+ border-right: 0.5em solid <<colour muted-foreground>>;
+ border-bottom: 0.5em solid <<colour muted-foreground>>;
+}
+
+.tc-manager-list-item-content-item-body > table {
+ border: none;
+ padding: 0;
+ margin: 0;
+}
+
+.tc-manager-list-item-content-item-body > table td {
+ border: none;
+}
+
+.tc-manager-icon-editor > button {
+ width: 100%;
+}
+
+.tc-manager-icon-editor > button > svg,
+.tc-manager-icon-editor > button > button {
+ width: 100%;
+ height: auto;
+}
+
+/*
+** Alerts
+*/
+
+.tc-alerts {
+ position: fixed;
+ top: 28px;
+ left: 0;
+ right: 0;
+ max-width: 50%;
+ z-index: 20000;
+}
+
+.tc-alert {
+ position: relative;
+ margin: 14px;
+ padding: 7px;
+ border: 1px solid <<colour alert-border>>;
+ background-color: <<colour alert-background>>;
+}
+
+.tc-alert-toolbar {
+ position: absolute;
+ top: 7px;
+ right: 7px;
+ line-height: 0;
+}
+
+.tc-alert-toolbar svg {
+ fill: <<colour alert-muted-foreground>>;
+}
+
+.tc-alert-subtitle {
+ color: <<colour alert-muted-foreground>>;
+ font-weight: bold;
+ font-size: 0.8em;
+ margin-bottom: 0.5em;
+}
+
+.tc-alert-body > p {
+ margin: 0;
+}
+
+.tc-alert-highlight {
+ color: <<colour alert-highlight>>;
+}
+
+@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {
+
+ .tc-static-alert {
+ position: relative;
+ }
+
+ .tc-static-alert-inner {
+ position: absolute;
+ z-index: 100;
+ }
+
+}
+
+.tc-static-alert-inner {
+ padding: 0 2px 2px 42px;
+ color: <<colour static-alert-foreground>>;
+}
+
+/*
+** Floating drafts list
+*/
+
+.tc-drafts-list {
+ z-index: 2000;
+ position: fixed;
+ font-size: 0.8em;
+ left: 0;
+ bottom: 0;
+}
+
+.tc-drafts-list a {
+ margin: 0 0.5em;
+ padding: 4px 4px;
+ border-top-left-radius: 4px;
+ border-top-right-radius: 4px;
+ border: 1px solid <<colour background>>;
+ border-bottom-none;
+ background: <<colour dirty-indicator>>;
+ color: <<colour background>>;
+ fill: <<colour background>>;
+}
+
+.tc-drafts-list a:hover {
+ text-decoration: none;
+ background: <<colour foreground>>;
+ color: <<colour background>>;
+ fill: <<colour background>>;
+}
+
+.tc-drafts-list a svg {
+ width: 1em;
+ height: 1em;
+ vertical-align: text-bottom;
+}
+
+/*
+** Control panel
+*/
+
+.tc-control-panel td {
+ padding: 4px;
+}
+
+.tc-control-panel table, .tc-control-panel table input, .tc-control-panel table textarea {
+ width: 100%;
+}
+
+.tc-plugin-info {
+ display: flex;
+ border: 1px solid <<colour muted-foreground>>;
+ fill: <<colour muted-foreground>>;
+ background-color: <<colour background>>;
+ margin: 0.5em 0 0.5em 0;
+ padding: 4px;
+ align-items: center;
+}
+
+.tc-plugin-info-sub-plugins .tc-plugin-info {
+ margin: 0.5em;
+ background: <<colour background>>;
+}
+
+.tc-plugin-info-sub-plugin-indicator {
+ margin: -16px 1em 0 2em;
+}
+
+.tc-plugin-info-sub-plugin-indicator button {
+ color: <<colour background>>;
+ background: <<colour foreground>>;
+ border-radius: 8px;
+ padding: 2px 7px;
+ font-size: 0.75em;
+}
+
+.tc-plugin-info-sub-plugins .tc-plugin-info-dropdown {
+ margin-left: 1em;
+ margin-right: 1em;
+}
+
+.tc-plugin-info-disabled {
+ background: -webkit-repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);
+ background: repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);
+}
+
+.tc-plugin-info-disabled:hover {
+ background: -webkit-repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);
+ background: repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);
+}
+
+a.tc-tiddlylink.tc-plugin-info:hover {
+ text-decoration: none;
+ background-color: <<colour primary>>;
+ color: <<colour background>>;
+ fill: <<colour foreground>>;
+}
+
+a.tc-tiddlylink.tc-plugin-info:hover .tc-plugin-info > .tc-plugin-info-chunk > svg {
+ fill: <<colour foreground>>;
+}
+
+.tc-plugin-info-chunk {
+ margin: 2px;
+}
+
+.tc-plugin-info-chunk.tc-plugin-info-toggle {
+ flex-grow: 0;
+ flex-shrink: 0;
+ line-height: 1;
+}
+
+.tc-plugin-info-chunk.tc-plugin-info-icon {
+ flex-grow: 0;
+ flex-shrink: 0;
+ line-height: 1;
+}
+
+.tc-plugin-info-chunk.tc-plugin-info-description {
+ flex-grow: 1;
+}
+
+.tc-plugin-info-chunk.tc-plugin-info-buttons {
+ font-size: 0.8em;
+ line-height: 1.2;
+ flex-grow: 0;
+ flex-shrink: 0;
+ text-align: right;
+}
+
+.tc-plugin-info-chunk.tc-plugin-info-description h1 {
+ font-size: 1em;
+ line-height: 1.2;
+ margin: 2px 0 2px 0;
+}
+
+.tc-plugin-info-chunk.tc-plugin-info-description h2 {
+ font-size: 0.8em;
+ line-height: 1.2;
+ margin: 2px 0 2px 0;
+}
+
+.tc-plugin-info-chunk.tc-plugin-info-description div {
+ font-size: 0.7em;
+ line-height: 1.2;
+ margin: 2px 0 2px 0;
+}
+
+.tc-plugin-info-chunk.tc-plugin-info-toggle img, .tc-plugin-info-chunk.tc-plugin-info-toggle svg {
+ width: 1em;
+ height: 1em;
+}
+
+.tc-plugin-info-chunk.tc-plugin-info-icon img, .tc-plugin-info-chunk.tc-plugin-info-icon svg {
+ width: 2em;
+ height: 2em;
+}
+
+.tc-plugin-info-dropdown {
+ border: 1px solid <<colour muted-foreground>>;
+ background: <<colour background>>;
+ margin-top: -8px;
+}
+
+.tc-plugin-info-dropdown-message {
+ background: <<colour message-background>>;
+ padding: 0.5em 1em 0.5em 1em;
+ font-weight: bold;
+ font-size: 0.8em;
+}
+
+.tc-plugin-info-dropdown-body {
+ padding: 1em 1em 0 1em;
+ background: <<colour background>>;
+}
+
+.tc-plugin-info-sub-plugins {
+ padding: 0.5em;
+ margin: 0 1em 1em 1em;
+ background: <<colour notification-background>>;
+}
+
+.tc-install-plugin {
+ font-weight: bold;
+ background: green;
+ color: white;
+ fill: white;
+ border-radius: 4px;
+ padding: 3px;
+}
+
+.tc-install-plugin.tc-reinstall-downgrade {
+ background: red;
+}
+
+.tc-install-plugin.tc-reinstall {
+ background: blue;
+}
+
+.tc-install-plugin.tc-reinstall-upgrade {
+ background: orange;
+}
+
+.tc-check-list {
+ line-height: 2em;
+}
+
+.tc-check-list .tc-image-button {
+ height: 1.5em;
+}
+
+/*
+** Message boxes
+*/
+
+.tc-message-box {
+ border: 1px solid <<colour message-border>>;
+ background: <<colour message-background>>;
+ padding: 0px 21px 0px 21px;
+ font-size: 12px;
+ line-height: 18px;
+ color: <<colour message-foreground>>;
+}
+
+.tc-message-box svg {
+ width: 1em;
+ height: 1em;
+ vertical-align: text-bottom;
+}
+
+/*
+** Pictures
+*/
+
+.tc-bordered-image {
+ border: 1px solid <<colour muted-foreground>>;
+ padding: 5px;
+ margin: 5px;
+}
+
+/*
+** Floats
+*/
+
+.tc-float-right {
+ float: right;
+}
+
+/*
+** Chooser
+*/
+
+.tc-chooser {
+ border-right: 1px solid <<colour table-header-background>>;
+ border-left: 1px solid <<colour table-header-background>>;
+}
+
+
+.tc-chooser-item {
+ border-bottom: 1px solid <<colour table-header-background>>;
+ border-top: 1px solid <<colour table-header-background>>;
+ padding: 2px 4px 2px 14px;
+}
+
+.tc-drop-down .tc-chooser-item {
+ padding: 2px;
+}
+
+.tc-chosen,
+.tc-chooser-item:hover {
+ background-color: <<colour table-header-background>>;
+ border-color: <<colour table-footer-background>>;
+}
+
+.tc-chosen .tc-tiddlylink {
+ cursor:default;
+}
+
+.tc-chooser-item .tc-tiddlylink {
+ display: block;
+ text-decoration: none;
+ background-color: transparent;
+}
+
+.tc-chooser-item:hover .tc-tiddlylink:hover {
+ text-decoration: none;
+}
+
+.tc-drop-down .tc-chosen .tc-tiddlylink,
+.tc-drop-down .tc-chooser-item .tc-tiddlylink:hover {
+ color: <<colour foreground>>;
+}
+
+.tc-chosen > .tc-tiddlylink:before {
+ margin-left: -10px;
+ position: relative;
+ content: "» ";
+}
+
+.tc-chooser-item svg,
+.tc-chooser-item img{
+ width: 1em;
+ height: 1em;
+ vertical-align: middle;
+}
+
+.tc-language-chooser .tc-image-button img {
+ width: 2em;
+ vertical-align: -0.15em;
+}
+
+/*
+** Palette swatches
+*/
+
+.tc-swatches-horiz {
+}
+
+.tc-swatches-horiz .tc-swatch {
+ display: inline-block;
+}
+
+.tc-swatch {
+ width: 2em;
+ height: 2em;
+ margin: 0.4em;
+ border: 1px solid #888;
+}
+
+input.tc-palette-manager-colour-input {
+ width: 100%;
+ padding: 0;
+}
+
+/*
+** Table of contents
+*/
+
+.tc-sidebar-lists .tc-table-of-contents {
+ white-space: nowrap;
+}
+
+.tc-table-of-contents button {
+ color: <<colour sidebar-foreground>>;
+}
+
+.tc-table-of-contents svg {
+ width: 0.7em;
+ height: 0.7em;
+ vertical-align: middle;
+ fill: <<colour sidebar-foreground>>;
+}
+
+.tc-table-of-contents ol {
+ list-style-type: none;
+ padding-left: 0;
+}
+
+.tc-table-of-contents ol ol {
+ padding-left: 1em;
+}
+
+.tc-table-of-contents li {
+ font-size: 1.0em;
+ font-weight: bold;
+}
+
+.tc-table-of-contents li a {
+ font-weight: bold;
+}
+
+.tc-table-of-contents li li {
+ font-size: 0.95em;
+ font-weight: normal;
+ line-height: 1.4;
+}
+
+.tc-table-of-contents li li a {
+ font-weight: normal;
+}
+
+.tc-table-of-contents li li li {
+ font-size: 0.95em;
+ font-weight: 200;
+ line-height: 1.5;
+}
+
+.tc-table-of-contents li li li li {
+ font-size: 0.95em;
+ font-weight: 200;
+}
+
+.tc-tabbed-table-of-contents {
+ display: -webkit-flex;
+ display: flex;
+}
+
+.tc-tabbed-table-of-contents .tc-table-of-contents {
+ z-index: 100;
+ display: inline-block;
+ padding-left: 1em;
+ max-width: 50%;
+ -webkit-flex: 0 0 auto;
+ flex: 0 0 auto;
+ background: <<colour tab-background>>;
+ border-left: 1px solid <<colour tab-border>>;
+ border-top: 1px solid <<colour tab-border>>;
+ border-bottom: 1px solid <<colour tab-border>>;
+}
+
+.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a,
+.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a {
+ display: block;
+ padding: 0.12em 1em 0.12em 0.25em;
+}
+
+.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a {
+ border-top: 1px solid <<colour tab-background>>;
+ border-left: 1px solid <<colour tab-background>>;
+ border-bottom: 1px solid <<colour tab-background>>;
+}
+
+.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a:hover {
+ text-decoration: none;
+ border-top: 1px solid <<colour tab-border>>;
+ border-left: 1px solid <<colour tab-border>>;
+ border-bottom: 1px solid <<colour tab-border>>;
+ background: <<colour tab-border>>;
+}
+
+.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a {
+ border-top: 1px solid <<colour tab-border>>;
+ border-left: 1px solid <<colour tab-border>>;
+ border-bottom: 1px solid <<colour tab-border>>;
+ background: <<colour background>>;
+ margin-right: -1px;
+}
+
+.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a:hover {
+ text-decoration: none;
+}
+
+.tc-tabbed-table-of-contents .tc-tabbed-table-of-contents-content {
+ display: inline-block;
+ vertical-align: top;
+ padding-left: 1.5em;
+ padding-right: 1.5em;
+ border: 1px solid <<colour tab-border>>;
+ -webkit-flex: 1 0 50%;
+ flex: 1 0 50%;
+}
+
+/*
+** Dirty indicator
+*/
+
+body.tc-dirty span.tc-dirty-indicator, body.tc-dirty span.tc-dirty-indicator svg {
+ fill: <<colour dirty-indicator>>;
+ color: <<colour dirty-indicator>>;
+}
+
+/*
+** File inputs
+*/
+
+.tc-file-input-wrapper {
+ position: relative;
+ overflow: hidden;
+ display: inline-block;
+ vertical-align: middle;
+}
+
+.tc-file-input-wrapper input[type=file] {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ font-size: 999px;
+ max-width: 100%;
+ max-height: 100%;
+ filter: alpha(opacity=0);
+ opacity: 0;
+ outline: none;
+ background: white;
+ cursor: pointer;
+ display: inline-block;
+}
+
+/*
+** Thumbnail macros
+*/
+
+.tc-thumbnail-wrapper {
+ position: relative;
+ display: inline-block;
+ margin: 6px;
+ vertical-align: top;
+}
+
+.tc-thumbnail-right-wrapper {
+ float:right;
+ margin: 0.5em 0 0.5em 0.5em;
+}
+
+.tc-thumbnail-image {
+ text-align: center;
+ overflow: hidden;
+ border-radius: 3px;
+}
+
+.tc-thumbnail-image svg,
+.tc-thumbnail-image img {
+ filter: alpha(opacity=1);
+ opacity: 1;
+ min-width: 100%;
+ min-height: 100%;
+ max-width: 100%;
+}
+
+.tc-thumbnail-wrapper:hover .tc-thumbnail-image svg,
+.tc-thumbnail-wrapper:hover .tc-thumbnail-image img {
+ filter: alpha(opacity=0.8);
+ opacity: 0.8;
+}
+
+.tc-thumbnail-background {
+ position: absolute;
+ border-radius: 3px;
+}
+
+.tc-thumbnail-icon svg,
+.tc-thumbnail-icon img {
+ width: 3em;
+ height: 3em;
+ <<filter "drop-shadow(2px 2px 4px rgba(0,0,0,0.3))">>
+}
+
+.tc-thumbnail-wrapper:hover .tc-thumbnail-icon svg,
+.tc-thumbnail-wrapper:hover .tc-thumbnail-icon img {
+ fill: #fff;
+ <<filter "drop-shadow(3px 3px 4px rgba(0,0,0,0.6))">>
+}
+
+.tc-thumbnail-icon {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ display: -webkit-flex;
+ -webkit-align-items: center;
+ -webkit-justify-content: center;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.tc-thumbnail-caption {
+ position: absolute;
+ background-color: #777;
+ color: #fff;
+ text-align: center;
+ bottom: 0;
+ width: 100%;
+ filter: alpha(opacity=0.9);
+ opacity: 0.9;
+ line-height: 1.4;
+ border-bottom-left-radius: 3px;
+ border-bottom-right-radius: 3px;
+}
+
+.tc-thumbnail-wrapper:hover .tc-thumbnail-caption {
+ filter: alpha(opacity=1);
+ opacity: 1;
+}
+
+/*
+** Diffs
+*/
+
+.tc-diff-equal {
+ background-color: <<colour diff-equal-background>>;
+ color: <<colour diff-equal-foreground>>;
+}
+
+.tc-diff-insert {
+ background-color: <<colour diff-insert-background>>;
+ color: <<colour diff-insert-foreground>>;
+}
+
+.tc-diff-delete {
+ background-color: <<colour diff-delete-background>>;
+ color: <<colour diff-delete-foreground>>;
+}
+
+.tc-diff-invisible {
+ background-color: <<colour diff-invisible-background>>;
+ color: <<colour diff-invisible-foreground>>;
+}
+
+.tc-diff-tiddlers th {
+ text-align: right;
+ background: <<colour background>>;
+ font-weight: normal;
+ font-style: italic;
+}
+
+.tc-diff-tiddlers pre {
+ margin: 0;
+ padding: 0;
+ border: none;
+ background: none;
+}
+
+/*
+** Errors
+*/
+
+.tc-error {
+ background: #f00;
+ color: #fff;
+}
+
+/*
+** Tree macro
+*/
+
+.tc-tree div {
+ padding-left: 14px;
+}
+
+.tc-tree ol {
+ list-style-type: none;
+ padding-left: 0;
+ margin-top: 0;
+}
+
+.tc-tree ol ol {
+ padding-left: 1em;
+}
+
+.tc-tree button {
+ color: #acacac;
+}
+
+.tc-tree svg {
+ fill: #acacac;
+}
+
+.tc-tree span svg {
+ width: 1em;
+ height: 1em;
+ vertical-align: baseline;
+}
+
+.tc-tree li span {
+ color: lightgray;
+}
+
+select {
+ color: <<colour select-tag-foreground>>;
+ background: <<colour select-tag-background>>;
+}
+
+/*
+** Utility classes for SVG icons
+*/
+
+.tc-fill-background {
+ fill: <<colour background>>;
+}
+15px
+22px
+14px
+20px
+960px
+350px
+20%
+350px
+200px
+60%
+100%
+pre-wrap
+fluid-fixed
+no
+/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
+
+/* Document
+ ========================================================================== */
+
+/**
+ * 1. Correct the line height in all browsers.
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
+ */
+
+html {
+ line-height: 1.15; /* 1 */
+ -webkit-text-size-adjust: 100%; /* 2 */
+}
+
+/* Sections
+ ========================================================================== */
+
+/**
+ * Remove the margin in all browsers.
+ */
+
+body {
+ margin: 0;
+}
+
+/**
+ * Render the `main` element consistently in IE.
+ */
+
+main {
+ display: block;
+}
+
+/**
+ * Correct the font size and margin on `h1` elements within `section` and
+ * `article` contexts in Chrome, Firefox, and Safari.
+ */
+
+h1 {
+ font-size: 2em;
+ margin: 0.67em 0;
+}
+
+/* Grouping content
+ ========================================================================== */
+
+/**
+ * 1. Add the correct box sizing in Firefox.
+ * 2. Show the overflow in Edge and IE.
+ */
+
+hr {
+ box-sizing: content-box; /* 1 */
+ height: 0; /* 1 */
+ overflow: visible; /* 2 */
+}
+
+/**
+ * 1. Correct the inheritance and scaling of font size in all browsers.
+ * 2. Correct the odd `em` font sizing in all browsers.
+ */
+
+pre {
+ font-family: monospace, monospace; /* 1 */
+ font-size: 1em; /* 2 */
+}
+
+/* Text-level semantics
+ ========================================================================== */
+
+/**
+ * Remove the gray background on active links in IE 10.
+ */
+
+a {
+ background-color: transparent;
+}
+
+/**
+ * 1. Remove the bottom border in Chrome 57-
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
+ */
+
+abbr[title] {
+ border-bottom: none; /* 1 */
+ text-decoration: underline; /* 2 */
+ text-decoration: underline dotted; /* 2 */
+}
+
+/**
+ * Add the correct font weight in Chrome, Edge, and Safari.
+ */
+
+b,
+strong {
+ font-weight: bolder;
+}
+
+/**
+ * 1. Correct the inheritance and scaling of font size in all browsers.
+ * 2. Correct the odd `em` font sizing in all browsers.
+ */
+
+code,
+kbd,
+samp {
+ font-family: monospace, monospace; /* 1 */
+ font-size: 1em; /* 2 */
+}
+
+/**
+ * Add the correct font size in all browsers.
+ */
+
+small {
+ font-size: 80%;
+}
+
+/**
+ * Prevent `sub` and `sup` elements from affecting the line height in
+ * all browsers.
+ */
+
+sub,
+sup {
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline;
+}
+
+sub {
+ bottom: -0.25em;
+}
+
+sup {
+ top: -0.5em;
+}
+
+/* Embedded content
+ ========================================================================== */
+
+/**
+ * Remove the border on images inside links in IE 10.
+ */
+
+img {
+ border-style: none;
+}
+
+/* Forms
+ ========================================================================== */
+
+/**
+ * 1. Change the font styles in all browsers.
+ * 2. Remove the margin in Firefox and Safari.
+ */
+
+button,
+input,
+optgroup,
+select,
+textarea {
+ font-family: inherit; /* 1 */
+ font-size: 100%; /* 1 */
+ line-height: 1.15; /* 1 */
+ margin: 0; /* 2 */
+}
+
+/**
+ * Show the overflow in IE.
+ * 1. Show the overflow in Edge.
+ */
+
+button,
+input { /* 1 */
+ overflow: visible;
+}
+
+/**
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
+ * 1. Remove the inheritance of text transform in Firefox.
+ */
+
+button,
+select { /* 1 */
+ text-transform: none;
+}
+
+/**
+ * Correct the inability to style clickable types in iOS and Safari.
+ */
+
+button,
+[type="button"],
+[type="reset"],
+[type="submit"] {
+ -webkit-appearance: button;
+}
+
+/**
+ * Remove the inner border and padding in Firefox.
+ */
+
+button::-moz-focus-inner,
+[type="button"]::-moz-focus-inner,
+[type="reset"]::-moz-focus-inner,
+[type="submit"]::-moz-focus-inner {
+ border-style: none;
+ padding: 0;
+}
+
+/**
+ * Restore the focus styles unset by the previous rule.
+ */
+
+button:-moz-focusring,
+[type="button"]:-moz-focusring,
+[type="reset"]:-moz-focusring,
+[type="submit"]:-moz-focusring {
+ outline: 1px dotted ButtonText;
+}
+
+/**
+ * Correct the padding in Firefox.
+ */
+
+fieldset {
+ padding: 0.35em 0.75em 0.625em;
+}
+
+/**
+ * 1. Correct the text wrapping in Edge and IE.
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
+ * 3. Remove the padding so developers are not caught out when they zero out
+ * `fieldset` elements in all browsers.
+ */
+
+legend {
+ box-sizing: border-box; /* 1 */
+ color: inherit; /* 2 */
+ display: table; /* 1 */
+ max-width: 100%; /* 1 */
+ padding: 0; /* 3 */
+ white-space: normal; /* 1 */
+}
+
+/**
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
+ */
+
+progress {
+ vertical-align: baseline;
+}
+
+/**
+ * Remove the default vertical scrollbar in IE 10+.
+ */
+
+textarea {
+ overflow: auto;
+}
+
+/**
+ * 1. Add the correct box sizing in IE 10.
+ * 2. Remove the padding in IE 10.
+ */
+
+[type="checkbox"],
+[type="radio"] {
+ box-sizing: border-box; /* 1 */
+ padding: 0; /* 2 */
+}
+
+/**
+ * Correct the cursor style of increment and decrement buttons in Chrome.
+ */
+
+[type="number"]::-webkit-inner-spin-button,
+[type="number"]::-webkit-outer-spin-button {
+ height: auto;
+}
+
+/**
+ * 1. Correct the odd appearance in Chrome and Safari.
+ * 2. Correct the outline style in Safari.
+ */
+
+[type="search"] {
+ -webkit-appearance: textfield; /* 1 */
+ outline-offset: -2px; /* 2 */
+}
+
+/**
+ * Remove the inner padding in Chrome and Safari on macOS.
+ */
+
+[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+
+/**
+ * 1. Correct the inability to style clickable types in iOS and Safari.
+ * 2. Change font properties to `inherit` in Safari.
+ */
+
+::-webkit-file-upload-button {
+ -webkit-appearance: button; /* 1 */
+ font: inherit; /* 2 */
+}
+
+/* Interactive
+ ========================================================================== */
+
+/*
+ * Add the correct display in Edge, IE 10+, and Firefox.
+ */
+
+details {
+ display: block;
+}
+
+/*
+ * Add the correct display in all browsers.
+ */
+
+summary {
+ display: list-item;
+}
+
+/* Misc
+ ========================================================================== */
+
+/**
+ * Add the correct display in IE 10+.
+ */
+
+template {
+ display: none;
+}
+
+/**
+ * Add the correct display in IE 10.
+ */
+
+[hidden] {
+ display: none;
+}
+
+fixed
+cover
+"SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace
+-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"
+<$reveal state="$:/themes/tiddlywiki/vanilla/options/stickytitles" type="match" text="yes">
+``
+.tc-tiddler-title {
+ position: -webkit-sticky;
+ position: -moz-sticky;
+ position: -o-sticky;
+ position: -ms-sticky;
+ position: sticky;
+ top: 0px;
+ background: ``<<colour tiddler-background>>``;
+ z-index: 500;
+}
+
+``
+<$list filter="[range[100]]">
+`.tc-story-river .tc-tiddler-frame:nth-child(100n+`<$text text=<<currentTiddler>>/>`) {
+z-index: `<$text text={{{ [[200]subtract<currentTiddler>] }}}/>`;
+}
+`
+</$list>
+</$reveal>
+
+\define lingo-base() $:/language/ThemeTweaks/
+
+\define replacement-text()
+[img[$(imageTitle)$]]
+\end
+
+\define backgroundimage-dropdown()
+<div class="tc-drop-down-wrapper">
+<$button popup=<<qualify "$:/state/popup/themetweaks/backgroundimage">> class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}}</$button>
+<$reveal state=<<qualify "$:/state/popup/themetweaks/backgroundimage">> type="popup" position="belowleft" text="" default="">
+<div class="tc-drop-down">
+<$macrocall $name="image-picker" actions="""
+
+<$action-setfield
+ $tiddler="$:/themes/tiddlywiki/vanilla/settings/backgroundimage"
+ $value=<<imageTitle>>
+/>
+
+"""/>
+</div>
+</$reveal>
+</div>
+\end
+
+\define backgroundimageattachment-dropdown()
+<$select tiddler="$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment" default="scroll">
+<option value="scroll"><<lingo Settings/BackgroundImageAttachment/Scroll>></option>
+<option value="fixed"><<lingo Settings/BackgroundImageAttachment/Fixed>></option>
+</$select>
+\end
+
+\define backgroundimagesize-dropdown()
+<$select tiddler="$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize" default="scroll">
+<option value="auto"><<lingo Settings/BackgroundImageSize/Auto>></option>
+<option value="cover"><<lingo Settings/BackgroundImageSize/Cover>></option>
+<option value="contain"><<lingo Settings/BackgroundImageSize/Contain>></option>
+</$select>
+\end
+
+<<lingo ThemeTweaks/Hint>>
+
+! <<lingo Options>>
+
+|<$link to="$:/themes/tiddlywiki/vanilla/options/sidebarlayout"><<lingo Options/SidebarLayout>></$link> |<$select tiddler="$:/themes/tiddlywiki/vanilla/options/sidebarlayout"><option value="fixed-fluid"><<lingo Options/SidebarLayout/Fixed-Fluid>></option><option value="fluid-fixed"><<lingo Options/SidebarLayout/Fluid-Fixed>></option></$select> |
+|<$link to="$:/themes/tiddlywiki/vanilla/options/stickytitles"><<lingo Options/StickyTitles>></$link><br>//<<lingo Options/StickyTitles/Hint>>// |<$select tiddler="$:/themes/tiddlywiki/vanilla/options/stickytitles"><option value="no">{{$:/language/No}}</option><option value="yes">{{$:/language/Yes}}</option></$select> |
+|<$link to="$:/themes/tiddlywiki/vanilla/options/codewrapping"><<lingo Options/CodeWrapping>></$link> |<$select tiddler="$:/themes/tiddlywiki/vanilla/options/codewrapping"><option value="pre">{{$:/language/No}}</option><option value="pre-wrap">{{$:/language/Yes}}</option></$select> |
+
+! <<lingo Settings>>
+
+|<$link to="$:/themes/tiddlywiki/vanilla/settings/fontfamily"><<lingo Settings/FontFamily>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/fontfamily" default="" tag="input"/> | |
+|<$link to="$:/themes/tiddlywiki/vanilla/settings/codefontfamily"><<lingo Settings/CodeFontFamily>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/codefontfamily" default="" tag="input"/> | |
+|<$link to="$:/themes/tiddlywiki/vanilla/settings/editorfontfamily"><<lingo Settings/EditorFontFamily>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/editorfontfamily" default="" tag="input"/> | |
+|<$link to="$:/themes/tiddlywiki/vanilla/settings/backgroundimage"><<lingo Settings/BackgroundImage>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/settings/backgroundimage" default="" tag="input"/> |<<backgroundimage-dropdown>> |
+|<$link to="$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment"><<lingo Settings/BackgroundImageAttachment>></$link> |<<backgroundimageattachment-dropdown>> | |
+|<$link to="$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize"><<lingo Settings/BackgroundImageSize>></$link> |<<backgroundimagesize-dropdown>> | |
+
+! <<lingo Metrics>>
+
+|<$link to="$:/themes/tiddlywiki/vanilla/metrics/fontsize"><<lingo Metrics/FontSize>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/metrics/fontsize" default="" tag="input"/> |
+|<$link to="$:/themes/tiddlywiki/vanilla/metrics/lineheight"><<lingo Metrics/LineHeight>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/metrics/lineheight" default="" tag="input"/> |
+|<$link to="$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize"><<lingo Metrics/BodyFontSize>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize" default="" tag="input"/> |
+|<$link to="$:/themes/tiddlywiki/vanilla/metrics/bodylineheight"><<lingo Metrics/BodyLineHeight>></$link> |<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/metrics/bodylineheight" default="" tag="input"/> |
+|<$link to="$:/themes/tiddlywiki/vanilla/metrics/storyleft"><<lingo Metrics/StoryLeft>></$link><br>//<<lingo Metrics/StoryLeft/Hint>>// |^<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/metrics/storyleft" default="" tag="input"/> |
+|<$link to="$:/themes/tiddlywiki/vanilla/metrics/storytop"><<lingo Metrics/StoryTop>></$link><br>//<<lingo Metrics/StoryTop/Hint>>// |^<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/metrics/storytop" default="" tag="input"/> |
+|<$link to="$:/themes/tiddlywiki/vanilla/metrics/storyright"><<lingo Metrics/StoryRight>></$link><br>//<<lingo Metrics/StoryRight/Hint>>// |^<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/metrics/storyright" default="" tag="input"/> |
+|<$link to="$:/themes/tiddlywiki/vanilla/metrics/storywidth"><<lingo Metrics/StoryWidth>></$link><br>//<<lingo Metrics/StoryWidth/Hint>>// |^<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/metrics/storywidth" default="" tag="input"/> |
+|<$link to="$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth"><<lingo Metrics/TiddlerWidth>></$link><br>//<<lingo Metrics/TiddlerWidth/Hint>>//<br> |^<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth" default="" tag="input"/> |
+|<$link to="$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint"><<lingo Metrics/SidebarBreakpoint>></$link><br>//<<lingo Metrics/SidebarBreakpoint/Hint>>// |^<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint" default="" tag="input"/> |
+|<$link to="$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth"><<lingo Metrics/SidebarWidth>></$link><br>//<<lingo Metrics/SidebarWidth/Hint>>// |^<$edit-text tiddler="$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth" default="" tag="input"/> |
+
+zoomin
+<<link "Home">>
+<center>[img height=150px [copincha-logo.png]]</center>
+
+''Copincha'' es un [[hackerspace|Hackerspace]] situado en La Habana. Es un laboratorio para el desarrollo de collectividades alrededor de las technologías digitales, la filosofía de hazlo tu mismo (DIY) y la colaboración abierta.
+
+<<<
+En la jerga local cubana, "pincha" significa trabajo. Copincha así se traduce como trabajo colaborativo.
+<<<
+
+Facilitamos un programa de charlas y talleres, desde los que se generan preguntas, opiniones, ayuda y soluciones colectivas.
+
+Aprendemos juntos cosas nuevas con cada proyecto y empleamos herramientas digitales que nos dan autonomía y en la medida de lo posible soberanía sobre nuestros datos.
+
+<center>
+
+| <a href="https://git.copincha.org" class="tc-btn-big" > {{image/repo}}</a> | <h2> Repositorio</h2> Nuestro repositorio de codigo abierto, donde compartimos nuestros proyectos. |
+| <a href="https://copinchapedia.copincha.org" class="tc-btn-big" > {{image/repo}}</a> | <h2> Copinchapedia</h2> Nuestra wiki de bolsillo, donde documentamos nuestras experiencias. |
+
+
+
+<br>
+
+<br>
+
+{{copincha/redes}}
+iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAC7XpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHja7ZddsuMoDIXfWUUvAUkIieVgfqp6B7P8PmDHN7l9Z7q7Zp6mYspABBby+QRJwvjr+wzfcFHJHJKa55JzxJVKKlzR8XheZdcU06731R5j9GoP9wDDJGjl/Gj1ml9h148Hbj/Hqz34NcJ+OboGHg5lrczo9OcgYefTTulyVMbZycXtOdSDr1e5Ju5Qrns23v70OIfW5/BsSAaVumIhYR5CEnedzghk3SQVbUaNPuYR2ioqOezGrkggyMvrPdoYnwV6EfnRC5/Vv3ufxOd62eWTlvnSCJ0vB0i/Fn9L/LSw3BHx64DJw9UXIs/uc47z7WrKUDRfGRXDQ52t/uyQPcl+LKMYbkXfdikoHmtsQN5jiwdKo0IMKjNQok6VJo3dNmoIMfFgQ8vcAGfZXIwLN1mc0io02aRIFwe3xiOIwMx3LLTXLXu9Ro6VO2EqE5wt1H9bwj8N/kkJc7YlEUW/tUJcvPIaYSxyq8YsAKF5cdMt8KNc+ONT/iBVQVC3zI4XrPE4XRxKH7klm7NgnqI9txAF65cDSIS1FcGQgEDMJEqZojEbEXR0AKqInCXxAQKkyh1BchLBeWTsvNbGM0Z7LitnXmacTQCBfSQGNkUqYKWkyB9LjhyqKppUNaupBy1as+SUNedseR1y1cSSqWUzcytWXTy5enZz9+K1cBGcgVpyseKllFo5VCxU4atifoXl4EOOdOiRDzv8KEdtSJ+WmrbcrHkrrXbu0n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MXLtsn2iXqiS0YDLApmE8xv3ch5IdxHjg5sVZR5jauJQu0kcemephHShKxt24OR7OtqNl/3//cQH1v2eAzYpLcDsA/YnUQfTnTMcReEm/L9gczFnATsyNx7wZbzcuttq6VEbwZbgd4p0ptRAVnsaP4+Ew4DMFyjGTDx6Qujo4Pi21ENhpSFGOh3nh6uB4idSjuRkKbMbN8TCkRairg+Nm20aiSVmEm1vGjABldXVwXCQ1aU5agRccFOa+gGV2cXB8gXgyIouEtGHuVjcaY6sHc3krVJI4OO60bdMmNRHjgLuoH07opghkrefgeNC2xTiphajmNOBJinE8zHNj4kgOjqvI1wNABMpFfDCCysURyXfpAMZ/kbpdJKEDE0mlh/wcD/Oi4uDYY2XsUHcLV44FToxQrimBbzgIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEII8f/4X35x5Dc8Bu6cAAAAAElFTkSuQmCC
+<div style="font-size:0.7em;text-align:center;margin:3em auto;">
+<a href="https://t.me/copincha" class="tc-btn-big" >
+{{$:/core/images/telegram}}</a>
+<a href="https://chat.whatsapp.com/DcpEPTEFLs1L6Gel8MAtW0" class="tc-btn-big">
+{{$:/core/images/whatsapp}}</a>
+<a href="https://facebook.com/copincha" class="tc-btn-big-">
+{{$:/core/images/facebook}}</a>
+<a href="https://www.instagram.com/c_o_p_i_n_c_h_a/" class="tc-btn-big">{{$:/core/images/instagram}}</a>
+<a href="https://twitter.com/copincha1" class="tc-btn-big">
+{{$:/core/images/twitter}}</a>
+</div>
+\define lingo-base() $:/language/ControlPanel/Basics/
+Welcome to ~TiddlyWiki and the ~TiddlyWiki community
+
+Before you start storing important information in ~TiddlyWiki it is vital to make sure that you can reliably save changes. See https://tiddlywiki.com/#GettingStarted for details
+
+!! Set up this ~TiddlyWiki
+
+<div class="tc-control-panel">
+
+|<$link to="$:/SiteTitle"><<lingo Title/Prompt>></$link> |<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> |
+|<$link to="$:/SiteSubtitle"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> |
+|<$link to="$:/DefaultTiddlers"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit tag="textarea" tiddler="$:/DefaultTiddlers"/><br>//<<lingo DefaultTiddlers/BottomHint>>// |
+</div>
+
+See the [[control panel|$:/ControlPanel]] for more options.
+
+Los hackerspaces son lugares físicos gestionados de forma comunitaria, donde las personas se reunen y comparten su interés por la tecnología, trabajan en sus proyectos y aprenden de los demás.
+Lorem ipsum dolor sit amet, consectetur <<link "Home">> adipiscing elit. <<link "A test">> nullam tristique iaculis convallis. Aliquam euismod libero id massa luctus, sed accumsan odio blandit. Duis faucibus condimentum placerat. Ut sed tellus id ex lobortis lacinia. Aenean accumsan dui nec bibendum convallis. Aliquam erat volutpat. Integer vitae nibh ac nibh ullamcorper ultricies at nec justo. Pellentesque arcu nisl, malesuada vel gravida ut, viverra ac mauris. Ut libero eros, convallis quis ultricies sit amet, vestibulum ut ex. Phasellus eget tempus diam, ac placerat eros. Maecenas at euismod erat. Phasellus a ex faucibus massa semper dignissim.
+
+
+<svg width="22pt" height="22pt" class="tc-image-repo tc-image-button" viewBox="0 0 12 16"><path style="fill:#000000;" d="M4 9H3V8h1v1zm0-3H3v1h1V6zm0-2H3v1h1V4zm0-2H3v1h1V2zm8-1v12c0 .55-.45 1-1 1H6v2l-1.5-1.5L3 16v-2H1c-.55 0-1-.45-1-1V1c0-.55.45-1 1-1h10c.55 0 1 .45 1 1zm-1 10H1v2h2v-1h3v1h5v-2zm0-10H2v9h9V1z"/></svg>
+<style>
+body.tc-body {
+<$list filter="[title{!!background-image}is[image]]">
+background: url(
+<$list filter="[all[current]!has[_canonical_uri]]">
+"<$macrocall $name="datauri" title={{!!background-image}} />"
+</$list>
+<$list filter="[all[current]has[_canonical_uri]]">
+"<$view tiddler=<<currentTiddler>> field="_canonical_uri" />"
+</$list>
+) no-repeat center center fixed;
+background-attachment: {{!!background-image}};
+-webkit-background-size: cover;
+-moz-background-size: cover;
+-o-background-size: cover;
+background-size: cover;
+</$list>
+}
+</style>
+iuhlihliu
+1
+$:/core/ui/TopBar/menu
+
-
-
/*\ -title: $:/.tb/modules/startup/hide-sidebar.js -type: application/javascript -module-type: startup -created: 20151010151732122 -creator: Tobias Beer -modified: 20151010151750739 - -Hides the sidebar on startup when the config tiddler [[$:/config/hide-sidebar-on-startup]] contains "yes" - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Export name and synchronous status -exports.name = "hide-sidebar-on-startup"; -exports.platforms = ["browser"]; -exports.after = ["startup"]; -exports.synchronous = true; - -exports.startup = function() { - var conf = $tw.wiki.getTiddler("$:/config/HideSidebarOnStartup"), - value = (conf ? conf.getFieldString("text") : "").toLowerCase(), - state = value == "yes" ? "no" : "yes"; - $tw.wiki.setText("$:/state/sidebar", "text", undefined, state); -}; - -})();-
TiddlyWiki incorporates code from these fine OpenSource projects: - -* [[The Stanford Javascript Crypto Library|http://bitwiseshiftleft.github.io/sjcl/]] -* [[The Jasmine JavaScript Test Framework|http://pivotal.github.io/jasmine/]] -* [[Normalize.css by Nicolas Gallagher|http://necolas.github.io/normalize.css/]] - -And media from these projects: - -* World flag icons from [[Wikipedia|http://commons.wikimedia.org/wiki/Category:SVG_flags_by_country]] --
<div class="tc-advanced-search"> -<<tabs "[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch]!has[draft.of]]" "$:/core/ui/AdvancedSearch/System">> -</div> --
400-
title-
yes-
#444-
[[62px 100px]] [[100px 62px]] [[124px 200px]] [[200px 124px]] [[248px 400px]] [[371px 600px]] [[400px 248px]] [[556px 900px]] [[600px 371px]] [[742px 1200px]] [[900px 556px]] [[1200px 742px]]-
3px-
0.25px 0.5px 1px 2px 3px 4px 6px 8px 10px 16px 20px 28px 40px 56px 80px-
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-
1.0-
$:/core/ui/MoreSideBar/Tags-
$:/core/ui/SideBar/Open-
yes-
400-
hide-
hide-
hide-
bitmap-
bitmap-
bitmap-
bitmap-
bitmap-
bitmap-
bitmap-
bitmap-
text-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
yes-
forward-
tiddlers-
title-
system-
yes-
below-
top-
no-
no-
jpeg-
DDth MMM YYYY-
{{$:/language/OfficialPluginLibrary/Hint}} --
hide-
hide-
hide-
hide-
hide-
hide-
show-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
no-
no-
no-
no-
yes-
no-
[all[]] -[[$:/HistoryList]] -[[$:/StoryList]] -[[$:/Import]] -[[$:/isEncrypted]] -[[$:/UploadName]] -[prefix[$:/state/]] -[prefix[$:/temp/]]-
$:/core/save/all-
true-
3-
$:/core/ui/DefaultSearchResultList-
yes-
{{$:/language/EditTemplate/Fields/Add/Button/Hint}}-
{{$:/language/Buttons/AdvancedSearch/Hint}}-
{{$:/language/Buttons/Bold/Hint}}-
{{$:/language/Buttons/Cancel/Hint}}-
{{$:/language/Buttons/Excise/Hint}}-
{{$:/language/Buttons/Heading1/Hint}}-
{{$:/language/Buttons/Heading2/Hint}}-
{{$:/language/Buttons/Heading3/Hint}}-
{{$:/language/Buttons/Heading4/Hint}}-
{{$:/language/Buttons/Heading5/Hint}}-
{{$:/language/Buttons/Heading6/Hint}}-
{{$:/language/Buttons/Italic/Hint}}-
{{$:/language/Buttons/Link/Hint}}-
{{$:/language/Buttons/ListBullet/Hint}}-
{{$:/language/Buttons/ListNumber/Hint}}-
{{$:/language/Buttons/MonoBlock/Hint}}-
{{$:/language/Buttons/MonoLine/Hint}}-
{{$:/language/Buttons/NewImage/Hint}}-
{{$:/language/Buttons/NewJournal/Hint}}-
{{$:/language/Buttons/NewTiddler/Hint}}-
{{$:/language/Buttons/Picture/Hint}}-
{{$:/language/Buttons/Preview/Hint}}-
{{$:/language/Buttons/Quote/Hint}}-
{{$:/language/Buttons/Save/Hint}}-
{{$:/language/Buttons/SidebarSearch/Hint}}-
{{$:/language/Buttons/Stamp/Hint}}-
{{$:/language/Buttons/Strikethrough/Hint}}-
{{$:/language/Buttons/Subscript/Hint}}-
{{$:/language/Buttons/Superscript/Hint}}-
{{$:/language/Buttons/ToggleSidebar/Hint}}-
{{$:/language/Buttons/Underline/Hint}}-
meta-B-
meta-I-
ctrl-I-
ctrl-J-
ctrl-N-
meta-U-
ctrl-B-
ctrl-I-
alt-I-
alt-J-
alt-N-
ctrl-U-
enter-
ctrl-shift-A-
escape-
ctrl-E-
ctrl-1-
ctrl-2-
ctrl-3-
ctrl-4-
ctrl-5-
ctrl-6-
ctrl-L-
alt-shift-L-
ctrl-shift-L-
ctrl-shift-N-
ctrl-shift-M-
ctrl-M-
ctrl-shift-I-
alt-P-
ctrl-Q-
ctrl+enter-
ctrl-shift-F-
ctrl-S-
ctrl-T-
ctrl-shift-B-
ctrl-shift-P-
alt-shift-S-
alt-shift-T-
[is[tiddler]] -[[$:/HistoryList]] -[[$:/Import]] -[[$:/isEncrypted]] -[prefix[$:/status/]] -[prefix[$:/state/]] -[prefix[$:/temp/]]-
0-
400px-
auto-
$:/core/ui/TiddlerInfo/Fields-
popup-
no-
tc-btn-invisible-
yes-
no-
$:/core/ui/EditTemplate-
$:/core/ui/ViewTemplate-
hide-
show-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
hide-
disable-
<div class="tc-control-panel"> -<<tabs "[all[shadows+tiddlers]tag[$:/tags/ControlPanel]!has[draft.of]]" "$:/core/ui/ControlPanel/Info">> -</div> --
{ - "tiddlers": { - "$:/Acknowledgements": { - "title": "$:/Acknowledgements", - "text": "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" - }, - "$:/core/copyright.txt": { - "title": "$:/core/copyright.txt", - "type": "text/plain", - "text": "TiddlyWiki created by Jeremy Ruston, (jeremy [at] jermolene [dot] com)\n\nCopyright (c) 2004-2007, Jeremy Ruston\nCopyright (c) 2007-2020, UnaMesa Association\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." - }, - "$:/core/icon": { - "title": "$:/core/icon", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\"><path d=\"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\" fill-rule=\"evenodd\"/></svg>" - }, - "$:/core/images/add-comment": { - "title": "$:/core/images/add-comment", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-add-comment tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M56 56H36a8 8 0 100 16h20v20a8 8 0 1016 0V72h20a8 8 0 100-16H72V36a8 8 0 10-16 0v20zm-12.595 58.362c-6.683 7.659-20.297 12.903-36.006 12.903-2.196 0-4.35-.102-6.451-.3 9.652-3.836 17.356-12.24 21.01-22.874C8.516 94.28 0 79.734 0 63.5 0 33.953 28.206 10 63 10s63 23.953 63 53.5S97.794 117 63 117c-6.841 0-13.428-.926-19.595-2.638z\"/></svg>" - }, - "$:/core/images/advanced-search-button": { - "title": "$:/core/images/advanced-search-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-advanced-search-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M74.565 87.985A47.776 47.776 0 0148 96C21.49 96 0 74.51 0 48S21.49 0 48 0s48 21.49 48 48c0 9.854-2.97 19.015-8.062 26.636l34.347 34.347a9.443 9.443 0 010 13.36 9.446 9.446 0 01-13.36 0l-34.36-34.358zM48 80c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32z\"/><circle cx=\"48\" cy=\"48\" r=\"8\"/><circle cx=\"28\" cy=\"48\" r=\"8\"/><circle cx=\"68\" cy=\"48\" r=\"8\"/></g></svg>" - }, - "$:/core/images/auto-height": { - "title": "$:/core/images/auto-height", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-auto-height tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M67.987 114.356l-.029-14.477a4 4 0 00-2.067-3.494l-15.966-8.813-1.933 7.502H79.9c4.222 0 5.564-5.693 1.786-7.58L49.797 71.572 48.01 79.15h31.982c4.217 0 5.564-5.682 1.795-7.575L49.805 55.517l-1.795 7.575h31.982c4.212 0 5.563-5.67 1.805-7.57l-16.034-8.105 2.195 3.57V35.614l9.214 9.213a4 4 0 105.656-5.656l-16-16a4 4 0 00-5.656 0l-16 16a4 4 0 105.656 5.656l9.13-9.13v15.288a4 4 0 002.195 3.57l16.035 8.106 1.804-7.57H48.01c-4.217 0-5.564 5.682-1.795 7.574l31.982 16.059 1.795-7.575H48.01c-4.222 0-5.564 5.693-1.787 7.579l31.89 15.923 1.787-7.578H47.992c-4.133 0-5.552 5.504-1.933 7.501l15.966 8.813-2.067-3.494.029 14.436-9.159-9.158a4 4 0 00-5.656 5.656l16 16a4 4 0 005.656 0l16-16a4 4 0 10-5.656-5.656l-9.185 9.184zM16 20h96a4 4 0 100-8H16a4 4 0 100 8z\"/></svg>" - }, - "$:/core/images/blank": { - "title": "$:/core/images/blank", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-blank tc-image-button\" viewBox=\"0 0 128 128\"/>" - }, - "$:/core/images/bold": { - "title": "$:/core/images/bold", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-bold tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M41.146 51.81V21.87h26.353c2.51 0 4.93.21 7.26.628 2.33.418 4.392 1.165 6.185 2.24 1.793 1.076 3.227 2.57 4.302 4.482 1.076 1.913 1.614 4.363 1.614 7.35 0 5.379-1.613 9.263-4.84 11.653-3.227 2.39-7.35 3.586-12.37 3.586H41.146zM13 0v128h62.028a65.45 65.45 0 0016.762-2.151c5.438-1.434 10.278-3.645 14.52-6.633 4.244-2.988 7.62-6.842 10.13-11.563 2.51-4.721 3.764-10.308 3.764-16.762 0-8.008-1.942-14.85-5.826-20.527-3.884-5.677-9.77-9.65-17.658-11.921 5.737-2.75 10.069-6.275 12.997-10.577 2.928-4.303 4.392-9.681 4.392-16.135 0-5.976-.986-10.995-2.958-15.059-1.972-4.063-4.75-7.32-8.336-9.77-3.585-2.45-7.888-4.213-12.907-5.289C84.888.538 79.33 0 73.235 0H13zm28.146 106.129V70.992H71.8c6.095 0 10.995 1.404 14.7 4.212 3.705 2.81 5.558 7.5 5.558 14.073 0 3.347-.568 6.096-1.703 8.247-1.136 2.151-2.66 3.854-4.572 5.11-1.912 1.254-4.123 2.15-6.633 2.688-2.51.538-5.139.807-7.888.807H41.146z\"/></svg>" - }, - "$:/core/images/cancel-button": { - "title": "$:/core/images/cancel-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-cancel-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M64 76.314l-16.97 16.97a7.999 7.999 0 01-11.314 0c-3.118-3.118-3.124-8.19 0-11.313L52.686 65l-16.97-16.97a7.999 7.999 0 010-11.314c3.118-3.118 8.19-3.124 11.313 0L64 53.686l16.97-16.97a7.999 7.999 0 0111.314 0c3.118 3.118 3.124 8.19 0 11.313L75.314 65l16.97 16.97a7.999 7.999 0 010 11.314c-3.118 3.118-8.19 3.124-11.313 0L64 76.314zM64 129c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 1 0 29.654 0 65c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 17 64 17 16 38.49 16 65s21.49 48 48 48z\"/></svg>" - }, - "$:/core/images/chevron-down": { - "title": "$:/core/images/chevron-down", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-chevron-down tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M64.053 85.456a7.889 7.889 0 01-5.6-2.316L2.473 27.16a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0L64.05 66.344l50.382-50.382a7.92 7.92 0 0111.195 0c3.085 3.086 3.092 8.105 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.317z\"/><path d=\"M64.053 124.069a7.889 7.889 0 01-5.6-2.316l-55.98-55.98a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0l50.382 50.382 50.382-50.382a7.92 7.92 0 0111.195 0c3.085 3.086 3.092 8.104 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.316z\"/></g></svg>" - }, - "$:/core/images/chevron-left": { - "title": "$:/core/images/chevron-left", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-chevron-left tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M47.544 64.053c0-2.027.77-4.054 2.316-5.6l55.98-55.98a7.92 7.92 0 0111.196 0c3.085 3.086 3.092 8.105 0 11.196L66.656 64.05l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.085-8.105 3.092-11.196 0l-55.98-55.98a7.892 7.892 0 01-2.317-5.595z\"/><path d=\"M8.931 64.053c0-2.027.77-4.054 2.316-5.6l55.98-55.98a7.92 7.92 0 0111.196 0c3.085 3.086 3.092 8.105 0 11.196L28.041 64.05l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.085-8.104 3.092-11.196 0l-55.98-55.98a7.892 7.892 0 01-2.316-5.595z\"/></g></svg>" - }, - "$:/core/images/chevron-right": { - "title": "$:/core/images/chevron-right", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-chevron-right tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M83.456 63.947c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196L64.344 63.95 13.963 13.567a7.92 7.92 0 010-11.195c3.086-3.085 8.105-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.317 5.595z\"/><path d=\"M122.069 63.947c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l50.382-50.382-50.382-50.382a7.92 7.92 0 010-11.195c3.086-3.085 8.104-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.316 5.595z\"/></g></svg>" - }, - "$:/core/images/chevron-up": { - "title": "$:/core/images/chevron-up", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-chevron-up tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M63.947 44.544c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.105 3.092-11.196 0L63.95 63.656l-50.382 50.382a7.92 7.92 0 01-11.195 0c-3.085-3.086-3.092-8.105 0-11.196l55.98-55.98a7.892 7.892 0 015.595-2.317z\"/><path d=\"M63.947 5.931c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.105 3.092-11.196 0L63.95 25.041 13.567 75.423a7.92 7.92 0 01-11.195 0c-3.085-3.086-3.092-8.104 0-11.196l55.98-55.98a7.892 7.892 0 015.595-2.316z\"/></g></svg>" - }, - "$:/core/images/clone-button": { - "title": "$:/core/images/clone-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-clone-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M32.265 96v24.002A7.996 7.996 0 0040.263 128h79.74a7.996 7.996 0 007.997-7.998v-79.74a7.996 7.996 0 00-7.998-7.997H96V48h12.859a2.99 2.99 0 012.994 2.994v57.865a2.99 2.99 0 01-2.994 2.994H50.994A2.99 2.99 0 0148 108.859V96H32.265z\"/><path d=\"M40 56h-7.993C27.588 56 24 52.418 24 48c0-4.41 3.585-8 8.007-8H40v-7.993C40 27.588 43.582 24 48 24c4.41 0 8 3.585 8 8.007V40h7.993C68.412 40 72 43.582 72 48c0 4.41-3.585 8-8.007 8H56v7.993C56 68.412 52.418 72 48 72c-4.41 0-8-3.585-8-8.007V56zM8 0C3.58 0 0 3.588 0 8v80c0 4.419 3.588 8 8 8h80c4.419 0 8-3.588 8-8V8c0-4.419-3.588-8-8-8H8zM19 16A2.997 2.997 0 0016 19.001v57.998A2.997 2.997 0 0019.001 80h57.998A2.997 2.997 0 0080 76.999V19.001A2.997 2.997 0 0076.999 16H19.001z\"/></g></svg>" - }, - "$:/core/images/close-all-button": { - "title": "$:/core/images/close-all-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-close-all-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M28 111.314l-14.144 14.143a8 8 0 01-11.313-11.313L16.686 100 2.543 85.856a8 8 0 0111.313-11.313L28 88.686l14.144-14.143a8 8 0 0111.313 11.313L39.314 100l14.143 14.144a8 8 0 01-11.313 11.313L28 111.314zM28 39.314L13.856 53.457A8 8 0 012.543 42.144L16.686 28 2.543 13.856A8 8 0 0113.856 2.543L28 16.686 42.144 2.543a8 8 0 0111.313 11.313L39.314 28l14.143 14.144a8 8 0 01-11.313 11.313L28 39.314zM100 39.314L85.856 53.457a8 8 0 01-11.313-11.313L88.686 28 74.543 13.856A8 8 0 0185.856 2.543L100 16.686l14.144-14.143a8 8 0 0111.313 11.313L111.314 28l14.143 14.144a8 8 0 01-11.313 11.313L100 39.314zM100 111.314l-14.144 14.143a8 8 0 01-11.313-11.313L88.686 100 74.543 85.856a8 8 0 0111.313-11.313L100 88.686l14.144-14.143a8 8 0 0111.313 11.313L111.314 100l14.143 14.144a8 8 0 01-11.313 11.313L100 111.314z\"/></g></svg>" - }, - "$:/core/images/close-button": { - "title": "$:/core/images/close-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-close-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M65.086 75.41l-50.113 50.113c-3.121 3.121-8.192 3.126-11.316.002-3.118-3.118-3.123-8.19.002-11.316l50.114-50.114L3.659 13.982C.538 10.86.533 5.79 3.657 2.666c3.118-3.118 8.19-3.123 11.316.002l50.113 50.114L115.2 2.668c3.121-3.121 8.192-3.126 11.316-.002 3.118 3.118 3.123 8.19-.002 11.316L76.4 64.095l50.114 50.114c3.121 3.121 3.126 8.192.002 11.316-3.118 3.118-8.19 3.123-11.316-.002L65.086 75.409z\"/></svg>" - }, - "$:/core/images/close-others-button": { - "title": "$:/core/images/close-others-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-close-others-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48zm0-16c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32zm0-16c8.837 0 16-7.163 16-16s-7.163-16-16-16-16 7.163-16 16 7.163 16 16 16z\"/></svg>" - }, - "$:/core/images/copy-clipboard": { - "title": "$:/core/images/copy-clipboard", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-copy-clipboard tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"33\" height=\"8\" x=\"40\" y=\"40\" rx=\"4\"/><rect width=\"17\" height=\"8\" x=\"40\" y=\"82\" rx=\"4\"/><rect width=\"17\" height=\"8\" x=\"40\" y=\"54\" rx=\"4\"/><rect width=\"33\" height=\"8\" x=\"40\" y=\"96\" rx=\"4\"/><rect width=\"12\" height=\"8\" x=\"40\" y=\"68\" rx=\"4\"/><path d=\"M40 16H24c-4.419 0-8 3.59-8 8a8.031 8.031 0 000 .01v95.98a8.03 8.03 0 000 .01c0 4.41 3.581 8 8 8h80a7.975 7.975 0 005.652-2.34 7.958 7.958 0 002.348-5.652v-16.016c0-4.414-3.582-7.992-8-7.992-4.41 0-8 3.578-8 7.992V112H32V32h64v8.008C96 44.422 99.582 48 104 48c4.41 0 8-3.578 8-7.992V23.992a7.963 7.963 0 00-2.343-5.651A7.995 7.995 0 00104.001 16H88c0-4.41-3.585-8-8.007-8H48.007C43.588 8 40 11.582 40 16zm4-1.004A4.001 4.001 0 0148 11h32c2.21 0 4 1.797 4 3.996v4.008A4.001 4.001 0 0180 23H48c-2.21 0-4-1.797-4-3.996v-4.008z\"/><rect width=\"66\" height=\"16\" x=\"62\" y=\"64\" rx=\"8\"/><path d=\"M84.657 82.343l-16-16v11.314l16-16a8 8 0 10-11.314-11.314l-16 16a8 8 0 000 11.314l16 16a8 8 0 1011.314-11.314z\"/></g></svg>" - }, - "$:/core/images/delete-button": { - "title": "$:/core/images/delete-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-delete-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\" transform=\"translate(12)\"><rect width=\"105\" height=\"16\" y=\"11\" rx=\"8\"/><rect width=\"48\" height=\"16\" x=\"28\" rx=\"8\"/><rect width=\"16\" height=\"112\" x=\"8\" y=\"16\" rx=\"8\"/><rect width=\"88\" height=\"16\" x=\"8\" y=\"112\" rx=\"8\"/><rect width=\"16\" height=\"112\" x=\"80\" y=\"16\" rx=\"8\"/><rect width=\"16\" height=\"112\" x=\"56\" y=\"16\" rx=\"8\"/><rect width=\"16\" height=\"112\" x=\"32\" y=\"16\" rx=\"8\"/></g></svg>" - }, - "$:/core/images/done-button": { - "title": "$:/core/images/done-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-done-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M42.26 111.032c-2.051.001-4.103-.78-5.668-2.345L2.662 74.758a8 8 0 01-.005-11.32c3.118-3.117 8.192-3.12 11.32.007l28.278 28.278 72.124-72.124a8.002 8.002 0 0111.314-.001c3.118 3.118 3.124 8.19 0 11.315l-77.78 77.78a7.978 7.978 0 01-5.658 2.343z\"/></svg>" - }, - "$:/core/images/down-arrow": { - "title": "$:/core/images/down-arrow", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-down-arrow tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M64.177 100.069a7.889 7.889 0 01-5.6-2.316l-55.98-55.98a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0l50.382 50.382 50.382-50.382a7.92 7.92 0 0111.195 0c3.086 3.086 3.092 8.104 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.316z\"/></svg>" - }, - "$:/core/images/download-button": { - "title": "$:/core/images/download-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-download-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48z\" class=\"tc-image-download-button-ring\"/><path d=\"M34.35 66.43l26.892 27.205a4.57 4.57 0 006.516 0L94.65 66.43a4.7 4.7 0 000-6.593 4.581 4.581 0 00-3.258-1.365h-8.46c-2.545 0-4.608-2.087-4.608-4.661v-15.15c0-2.575-2.063-4.662-4.608-4.662H55.284c-2.545 0-4.608 2.087-4.608 4.662v15.15c0 2.574-2.063 4.661-4.608 4.661h-8.46c-2.545 0-4.608 2.087-4.608 4.662a4.69 4.69 0 001.35 3.296z\"/></g></svg>" - }, - "$:/core/images/edit-button": { - "title": "$:/core/images/edit-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-edit-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M95.627 10.059l-5.656 5.657 11.313 11.313 5.657-5.656-11.314-11.314zm5.657-5.657l1.966-1.966c3.123-3.122 8.194-3.129 11.319-.005 3.117 3.118 3.122 8.192-.005 11.32l-1.966 1.965-11.314-11.314zm-16.97 16.97l-60.25 60.25a8.12 8.12 0 00-.322.342c-.1.087-.198.179-.295.275-5.735 5.735-10.702 22.016-10.702 22.016s16.405-5.09 22.016-10.702c.095-.096.186-.193.272-.292a8.12 8.12 0 00.345-.325l60.25-60.25-11.314-11.313zM35.171 124.19c6.788-.577 13.898-2.272 23.689-5.348 1.825-.573 3.57-1.136 6.336-2.04 16-5.226 21.877-6.807 28.745-7.146 8.358-.413 13.854 2.13 17.58 8.699a4 4 0 006.959-3.946c-5.334-9.406-13.745-13.296-24.933-12.744-7.875.39-14.057 2.052-30.835 7.533-2.739.894-4.46 1.45-6.25 2.012-19.46 6.112-30.77 7.072-39.597 1.747a4 4 0 10-4.132 6.85c6.333 3.82 13.754 5.12 22.438 4.383z\"/></g></svg>" - }, - "$:/core/images/erase": { - "title": "$:/core/images/erase", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-erase tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M60.087 127.996l63.015-63.015c6.535-6.535 6.528-17.115-.003-23.646L99.466 17.702c-6.539-6.538-17.117-6.532-23.646-.003L4.898 88.62c-6.535 6.534-6.528 17.115.003 23.646l15.73 15.73h39.456zm-34.95-7.313l-14.324-14.325c-3.267-3.268-3.268-8.564-.008-11.824L46.269 59.07l35.462 35.462-26.15 26.15H25.137z\"/></svg>" - }, - "$:/core/images/excise": { - "title": "$:/core/images/excise", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-excise tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M56 107.314l-2.343 2.343a8 8 0 11-11.314-11.314l16-16a8 8 0 0111.314 0l16 16a8 8 0 11-11.314 11.314L72 107.314v14.284c0 3.536-3.582 6.402-8 6.402s-8-2.866-8-6.402v-14.284zM0 40.007C0 35.585 3.59 32 8 32c4.418 0 8 3.588 8 8.007v31.986C16 76.415 12.41 80 8 80c-4.418 0-8-3.588-8-8.007V40.007zm32 0C32 35.585 35.59 32 40 32c4.418 0 8 3.588 8 8.007v31.986C48 76.415 44.41 80 40 80c-4.418 0-8-3.588-8-8.007V40.007zm48 0C80 35.585 83.59 32 88 32c4.418 0 8 3.588 8 8.007v31.986C96 76.415 92.41 80 88 80c-4.418 0-8-3.588-8-8.007V40.007zm-24-32C56 3.585 59.59 0 64 0c4.418 0 8 3.588 8 8.007v31.986C72 44.415 68.41 48 64 48c-4.418 0-8-3.588-8-8.007V8.007zm56 32c0-4.422 3.59-8.007 8-8.007 4.418 0 8 3.588 8 8.007v31.986c0 4.422-3.59 8.007-8 8.007-4.418 0-8-3.588-8-8.007V40.007z\"/></svg>" - }, - "$:/core/images/export-button": { - "title": "$:/core/images/export-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-export-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M8.003 128H119.993a7.984 7.984 0 005.664-2.349v.007A7.975 7.975 0 00128 120V56c0-4.418-3.59-8-8-8-4.418 0-8 3.58-8 8v56H16V56c0-4.418-3.59-8-8-8-4.418 0-8 3.58-8 8v64c0 4.418 3.59 8 8 8h.003zm48.62-100.689l-8.965 8.966c-3.125 3.125-8.195 3.13-11.319.005-3.118-3.118-3.122-8.192.005-11.319L58.962 2.346A7.986 7.986 0 0164.625 0l-.006.002c2.05-.001 4.102.78 5.666 2.344l22.618 22.617c3.124 3.125 3.129 8.195.005 11.319-3.118 3.118-8.192 3.122-11.319-.005l-8.965-8.966v61.256c0 4.411-3.582 8-8 8-4.41 0-8-3.582-8-8V27.311z\"/></svg>" - }, - "$:/core/images/file": { - "title": "$:/core/images/file", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-file tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M111.968 30.5H112V120a8 8 0 01-8 8H24a8 8 0 01-8-8V8a8 8 0 018-8h57v.02a7.978 7.978 0 015.998 2.337l22.627 22.627a7.975 7.975 0 012.343 5.516zM81 8H24v112h80V30.5H89c-4.418 0-8-3.578-8-8V8z\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"36\" rx=\"4\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"52\" rx=\"4\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"68\" rx=\"4\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"84\" rx=\"4\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"100\" rx=\"4\"/><rect width=\"40\" height=\"8\" x=\"32\" y=\"20\" rx=\"4\"/></svg>" - }, - "$:/core/images/fixed-height": { - "title": "$:/core/images/fixed-height", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-fixed-height tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M60 35.657l-9.172 9.171a4 4 0 11-5.656-5.656l16-16a4 4 0 015.656 0l16 16a4 4 0 01-5.656 5.656L68 35.657v57.686l9.172-9.171a4 4 0 115.656 5.656l-16 16a4 4 0 01-5.656 0l-16-16a4 4 0 115.656-5.656L60 93.343V35.657zM16 116h96a4 4 0 100-8H16a4 4 0 100 8zm0-96h96a4 4 0 100-8H16a4 4 0 100 8z\"/></svg>" - }, - "$:/core/images/fold-all-button": { - "title": "$:/core/images/fold-all-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-fold-all tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"128\" height=\"16\" rx=\"8\"/><rect width=\"128\" height=\"16\" y=\"64\" rx=\"8\"/><path d=\"M64.03 20.004c-2.05 0-4.102.78-5.667 2.344L35.746 44.966c-3.125 3.124-3.13 8.194-.005 11.318 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.965 16.966 16.965c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.191-.005-11.318L69.687 22.348a7.986 7.986 0 00-5.663-2.346zM64.03 85.002c-2.05-.001-4.102.78-5.667 2.344l-22.617 22.617c-3.125 3.125-3.13 8.195-.005 11.319 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.966 16.966 16.966c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.192-.005-11.319L69.687 87.346A7.986 7.986 0 0064.024 85z\"/></g></svg>" - }, - "$:/core/images/fold-button": { - "title": "$:/core/images/fold-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-fold tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"128\" height=\"16\" rx=\"8\"/><path d=\"M64.03 25.004c-2.05 0-4.102.78-5.667 2.344L35.746 49.966c-3.125 3.124-3.13 8.194-.005 11.318 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.965 16.966 16.965c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.191-.005-11.318L69.687 27.348a7.986 7.986 0 00-5.663-2.346zM64.005 67.379c-2.05 0-4.102.78-5.666 2.344L35.722 92.34c-3.125 3.125-3.13 8.195-.006 11.32 3.118 3.117 8.192 3.121 11.32-.006L64 86.69l16.965 16.965c3.125 3.125 8.195 3.13 11.319.005 3.118-3.118 3.122-8.192-.005-11.319L69.663 69.723A7.986 7.986 0 0064 67.377z\"/></g></svg>" - }, - "$:/core/images/fold-others-button": { - "title": "$:/core/images/fold-others-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-fold-others tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"128\" height=\"16\" y=\"56.031\" rx=\"8\"/><path d=\"M86.632 79.976c-2.05 0-4.102.78-5.666 2.345L64 99.286 47.034 82.321a7.986 7.986 0 00-5.662-2.346l.005.001c-2.05 0-4.102.78-5.666 2.345l-22.618 22.617c-3.124 3.125-3.129 8.195-.005 11.319 3.118 3.118 8.192 3.122 11.319-.005l16.966-16.966 16.965 16.966a7.986 7.986 0 005.663 2.346l-.005-.002c2.05 0 4.102-.78 5.666-2.344l16.965-16.966 16.966 16.966c3.125 3.124 8.194 3.129 11.319.005 3.118-3.118 3.122-8.192-.005-11.319L92.289 82.321a7.986 7.986 0 00-5.663-2.346zM86.7 48.024c-2.05 0-4.102-.78-5.666-2.345L64.07 28.714 47.103 45.679a7.986 7.986 0 01-5.663 2.346l.005-.001c-2.05 0-4.101-.78-5.666-2.345L13.162 23.062c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L41.44 28.714l16.966-16.966a7.986 7.986 0 015.662-2.346l-.005.002c2.05 0 4.102.78 5.666 2.344l16.966 16.966 16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L92.358 45.679a7.986 7.986 0 01-5.663 2.346z\"/></g></svg>" - }, - "$:/core/images/folder": { - "title": "$:/core/images/folder", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-folder tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M55.694 128H8C3.58 128 0 124.414 0 119.996V48.004C0 43.584 3.584 40 7.999 40H16v-8c0-4.418 3.578-8 8-8h32a8 8 0 018 8v8h40.001c4.418 0 7.999 3.586 7.999 8.004V59.83l-8-.082v-7.749A4 4 0 0099.997 48H56V36c0-2.21-1.793-4-4.004-4H28.004A4 4 0 0024 36v12H12.003A4 4 0 008 52v64a4 4 0 004.003 4h46.76l-3.069 8z\"/><path d=\"M23.873 55.5h96.003c4.417 0 7.004 4.053 5.774 9.063l-13.344 54.374c-1.228 5.005-5.808 9.063-10.223 9.063H6.08c-4.417 0-7.003-4.053-5.774-9.063L13.65 64.563c1.228-5.005 5.808-9.063 10.223-9.063zm1.78 8.5h87.994c2.211 0 3.504 2.093 2.891 4.666l-11.12 46.668c-.614 2.577-2.902 4.666-5.115 4.666H12.31c-2.211 0-3.504-2.093-2.891-4.666l11.12-46.668C21.152 66.09 23.44 64 25.653 64z\"/></g></svg>" - }, - "$:/core/images/full-screen-button": { - "title": "$:/core/images/full-screen-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-full-screen-button tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M0 8a8 8 0 018-8h32a8 8 0 110 16H16v24a8 8 0 11-16 0V8zM128 120a8 8 0 01-8 8H88a8 8 0 110-16h24V88a8 8 0 1116 0v32zM8 128a8 8 0 01-8-8V88a8 8 0 1116 0v24h24a8 8 0 110 16H8zM120 0a8 8 0 018 8v32a8 8 0 11-16 0V16H88a8 8 0 110-16h32z\"/></svg>" - }, - "$:/core/images/github": { - "title": "$:/core/images/github", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-github tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M63.938 1.607c-35.336 0-63.994 28.69-63.994 64.084 0 28.312 18.336 52.329 43.768 60.802 3.202.59 4.37-1.388 4.37-3.088 0-1.518-.056-5.55-.087-10.897-17.802 3.871-21.558-8.591-21.558-8.591-2.911-7.404-7.108-9.375-7.108-9.375-5.81-3.973.44-3.895.44-3.895 6.424.453 9.803 6.606 9.803 6.606 5.709 9.791 14.981 6.963 18.627 5.322.582-4.138 2.236-6.963 4.063-8.564-14.211-1.617-29.153-7.117-29.153-31.672 0-6.995 2.495-12.718 6.589-17.195-.66-1.621-2.856-8.14.629-16.96 0 0 5.37-1.722 17.597 6.57 5.104-1.424 10.58-2.132 16.022-2.16 5.438.028 10.91.736 16.022 2.16 12.22-8.292 17.582-6.57 17.582-6.57 3.493 8.82 1.297 15.339.64 16.96 4.102 4.477 6.578 10.2 6.578 17.195 0 24.618-14.966 30.035-29.22 31.62 2.295 1.98 4.342 5.89 4.342 11.87 0 8.564-.079 15.476-.079 17.576 0 1.715 1.155 3.71 4.4 3.084 25.413-8.493 43.733-32.494 43.733-60.798 0-35.394-28.657-64.084-64.006-64.084\"/></svg>" - }, - "$:/core/images/gitter": { - "title": "$:/core/images/gitter", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-gitter tc-image-button\" viewBox=\"0 0 18 25\"><path d=\"M15 5h2v10h-2zM10 5h2v20h-2zM5 5h2v20H5zM0 0h2v15H0z\"/></svg>" - }, - "$:/core/images/globe": { - "title": "$:/core/images/globe", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-globe tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M72.811 37.128v2.554c0 2.196.978 6.881 0 8.832-1.466 2.928-4.65 3.54-6.394 5.867-1.182 1.577-4.618 10.601-3.69 12.92 3.969 9.922 11.534 3.187 17.962 9.293.864.821 2.887 2.273 3.296 3.296 3.29 8.223-7.576 15.009 3.757 26.3 1.245 1.24 3.813-3.817 4.079-4.614.852-2.563 6.725-5.45 9.088-7.053 2.02-1.37 4.873-2.667 6.328-4.745 2.27-3.244 1.48-7.514 3.098-10.745 2.139-4.274 3.828-9.635 5.998-13.966 3.898-7.781 4.721 2.093 5.067 2.439.358.357 1.011 0 1.517 0 .094 0 1.447.099 1.516 0 .65-.935-1.043-17.92-1.318-19.297-1.404-7.01-6.944-15.781-11.865-20.5-6.274-6.015-7.09-16.197-18.259-14.954-.204.022-5.084 10.148-7.777 13.512-3.728 4.657-2.47-4.153-6.526-4.153-.081 0-1.183-.103-1.253 0-.586.88-1.44 3.896-2.306 4.417-.265.16-1.722-.239-1.846 0-2.243 4.3 8.256 2.212 5.792 7.952-2.352 5.481-6.328-1.997-6.328 8.56M44.467 7.01c9.685 6.13.682 12.198 2.694 16.215 1.655 3.303 4.241 5.395 1.714 9.814-2.063 3.608-6.87 3.966-9.623 6.723-3.04 3.044-5.464 8.94-6.79 12.911-1.617 4.843 14.547 6.866 12.063 11.008-1.386 2.311-6.746 1.466-8.437.198-1.165-.873-3.593-.546-4.417-1.78-2.613-3.915-2.26-8.023-3.625-12.128-.938-2.822-6.313-2.12-7.844-.593-.523.522-.33 1.792-.33 2.505 0 5.285 7.12 3.316 7.12 6.46 0 14.636 3.927 6.534 11.14 11.336 10.036 6.683 7.844 7.303 14.946 14.404 3.673 3.673 7.741 3.686 9.425 9.294 1.602 5.331-9.327 5.339-11.716 7.448-1.123.991-2.813 4.146-4.219 4.615-1.792.598-3.234.496-4.944 1.78-2.427 1.82-3.9 4.932-4.02 4.81-2.148-2.147-3.52-15.479-3.89-18.257-.588-4.42-5.59-5.54-6.986-9.03-1.57-3.927 1.524-9.52-1.129-13.761-6.52-10.424-11.821-14.5-15.35-26.292-.942-3.148 3.342-6.529 4.877-8.833 1.877-2.816 2.662-5.854 4.746-8.635C22.147 24.19 40.855 9.461 43.857 8.635l.61-1.625z\"/><path d=\"M64 126c34.242 0 62-27.758 62-62 0-34.242-27.758-62-62-62C29.758 2 2 29.758 2 64c0 34.242 27.758 62 62 62zm0-6c30.928 0 56-25.072 56-56S94.928 8 64 8 8 33.072 8 64s25.072 56 56 56z\"/></g></svg>" - }, - "$:/core/images/heading-1": { - "title": "$:/core/images/heading-1", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-1 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M14 30h13.25v30.104H61.7V30h13.25v75.684H61.7V71.552H27.25v34.132H14V30zm70.335 13.78c2.544 0 5.017-.212 7.42-.636 2.403-.424 4.576-1.13 6.52-2.12 1.942-.99 3.603-2.261 4.981-3.816 1.378-1.555 2.28-3.463 2.703-5.724h9.858v74.2h-13.25V53.32H84.335v-9.54z\"/></svg>" - }, - "$:/core/images/heading-2": { - "title": "$:/core/images/heading-2", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-2 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm119.52 75.684H74.85c.07-6.148 1.555-11.519 4.452-16.112 2.897-4.593 6.855-8.586 11.872-11.978a133.725 133.725 0 017.526-5.141 59.6 59.6 0 007.208-5.353c2.19-1.908 3.993-3.975 5.406-6.201 1.413-2.226 2.155-4.788 2.226-7.685 0-1.343-.159-2.774-.477-4.293a11.357 11.357 0 00-1.855-4.24c-.919-1.307-2.19-2.403-3.816-3.286-1.625-.883-3.745-1.325-6.36-1.325-2.403 0-4.399.477-5.989 1.431-1.59.954-2.862 2.261-3.816 3.922-.954 1.66-1.66 3.622-2.12 5.883-.46 2.261-.724 4.7-.795 7.314H76.23c0-4.099.548-7.897 1.643-11.395 1.095-3.498 2.738-6.519 4.93-9.063 2.19-2.544 4.857-4.54 8.002-5.989C93.95 30.724 97.606 30 101.775 30c4.523 0 8.303.742 11.342 2.226 3.039 1.484 5.494 3.357 7.367 5.618 1.873 2.261 3.198 4.717 3.975 7.367.777 2.65 1.166 5.176 1.166 7.579 0 2.968-.46 5.653-1.378 8.056a25.942 25.942 0 01-3.71 6.625 37.5 37.5 0 01-5.3 5.565 79.468 79.468 0 01-6.148 4.77 165.627 165.627 0 01-6.36 4.24 94.28 94.28 0 00-5.883 4.028c-1.802 1.343-3.374 2.738-4.717 4.187-1.343 1.449-2.261 2.986-2.756 4.611h36.146v10.812z\"/></svg>" - }, - "$:/core/images/heading-3": { - "title": "$:/core/images/heading-3", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-3 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm88.885 32.224c1.979.07 3.957-.07 5.936-.424 1.979-.353 3.745-.972 5.3-1.855a10.365 10.365 0 003.763-3.657c.954-1.555 1.431-3.463 1.431-5.724 0-3.18-1.078-5.724-3.233-7.632-2.155-1.908-4.929-2.862-8.32-2.862-2.12 0-3.958.424-5.513 1.272a11.318 11.318 0 00-3.869 3.445c-1.025 1.449-1.784 3.074-2.279 4.876a18.335 18.335 0 00-.636 5.565H75.381c.141-3.604.813-6.943 2.014-10.017 1.201-3.074 2.844-5.742 4.93-8.003 2.084-2.261 4.61-4.028 7.578-5.3C92.871 30.636 96.228 30 99.973 30a29.2 29.2 0 018.533 1.272c2.791.848 5.3 2.085 7.526 3.71s4.01 3.692 5.353 6.201c1.343 2.509 2.014 5.388 2.014 8.639 0 3.745-.848 7.014-2.544 9.805-1.696 2.791-4.346 4.823-7.95 6.095v.212c4.24.848 7.544 2.95 9.911 6.307s3.551 7.438 3.551 12.243c0 3.533-.707 6.696-2.12 9.487a21.538 21.538 0 01-5.724 7.102c-2.403 1.943-5.194 3.445-8.374 4.505-3.18 1.06-6.537 1.59-10.07 1.59-4.31 0-8.074-.618-11.289-1.855s-5.9-2.986-8.056-5.247c-2.155-2.261-3.798-4.982-4.929-8.162-1.13-3.18-1.731-6.713-1.802-10.6h12.084c-.141 4.523.972 8.286 3.34 11.289 2.366 3.003 5.917 4.505 10.652 4.505 4.028 0 7.402-1.148 10.123-3.445 2.72-2.297 4.081-5.565 4.081-9.805 0-2.897-.565-5.194-1.696-6.89a10.97 10.97 0 00-4.452-3.869c-1.837-.883-3.904-1.431-6.2-1.643a58.067 58.067 0 00-7.05-.212v-9.01z\"/></svg>" - }, - "$:/core/images/heading-4": { - "title": "$:/core/images/heading-4", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-4 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M8 30h13.25v30.104H55.7V30h13.25v75.684H55.7V71.552H21.25v34.132H8V30zm76.59 48.548h22.471V45.9h-.212L84.59 78.548zm43.46 9.54h-9.54v17.596H107.06V88.088h-31.8V76.11l31.8-44.626h11.448v47.064h9.54v9.54z\"/></svg>" - }, - "$:/core/images/heading-5": { - "title": "$:/core/images/heading-5", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-5 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm77.755 1.484h38.372v10.812H92.765L88.95 61.164l.212.212c1.625-1.837 3.692-3.233 6.201-4.187 2.509-.954 5-1.431 7.473-1.431 3.675 0 6.96.618 9.858 1.855 2.897 1.237 5.335 2.968 7.314 5.194s3.48 4.858 4.505 7.897c1.025 3.039 1.537 6.325 1.537 9.858 0 2.968-.477 6.024-1.43 9.169a25.161 25.161 0 01-4.559 8.586c-2.085 2.58-4.752 4.7-8.003 6.36-3.25 1.66-7.137 2.491-11.66 2.491-3.604 0-6.943-.477-10.017-1.431-3.074-.954-5.777-2.385-8.109-4.293-2.332-1.908-4.187-4.258-5.565-7.049-1.378-2.791-2.138-6.06-2.279-9.805h12.084c.353 4.028 1.731 7.12 4.134 9.275 2.403 2.155 5.583 3.233 9.54 3.233 2.544 0 4.7-.424 6.466-1.272 1.767-.848 3.198-2.014 4.293-3.498 1.095-1.484 1.873-3.215 2.332-5.194.46-1.979.69-4.099.69-6.36 0-2.05-.284-4.01-.849-5.883-.565-1.873-1.413-3.516-2.544-4.929-1.13-1.413-2.597-2.544-4.399-3.392-1.802-.848-3.904-1.272-6.307-1.272-2.544 0-4.929.477-7.155 1.431-2.226.954-3.834 2.738-4.823 5.353H75.805l7.95-40.598z\"/></svg>" - }, - "$:/core/images/heading-6": { - "title": "$:/core/images/heading-6", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-6 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm106.587 20.246c-.283-3.039-1.36-5.494-3.233-7.367-1.873-1.873-4.399-2.809-7.579-2.809-2.19 0-4.08.406-5.67 1.219a12.435 12.435 0 00-4.029 3.233c-1.095 1.343-1.979 2.88-2.65 4.611a37.696 37.696 0 00-1.643 5.459 46.08 46.08 0 00-.9 5.671 722.213 722.213 0 00-.478 5.247l.212.212c1.625-2.968 3.87-5.176 6.731-6.625 2.862-1.449 5.954-2.173 9.275-2.173 3.675 0 6.96.636 9.858 1.908 2.897 1.272 5.353 3.021 7.367 5.247 2.014 2.226 3.551 4.858 4.611 7.897 1.06 3.039 1.59 6.325 1.59 9.858 0 3.604-.583 6.943-1.749 10.017-1.166 3.074-2.844 5.76-5.035 8.056-2.19 2.297-4.805 4.081-7.844 5.353-3.039 1.272-6.395 1.908-10.07 1.908-5.441 0-9.91-1.007-13.409-3.021-3.498-2.014-6.254-4.77-8.268-8.268-2.014-3.498-3.41-7.597-4.187-12.296-.777-4.7-1.166-9.77-1.166-15.211 0-4.452.477-8.94 1.431-13.462.954-4.523 2.526-8.639 4.717-12.349 2.19-3.71 5.07-6.731 8.64-9.063C92.676 31.166 97.075 30 102.304 30c2.968 0 5.76.495 8.374 1.484 2.615.99 4.93 2.367 6.943 4.134 2.014 1.767 3.657 3.887 4.93 6.36 1.271 2.473 1.978 5.23 2.12 8.268h-12.085zm-11.66 46.852c2.19 0 4.099-.442 5.724-1.325a12.869 12.869 0 004.081-3.445c1.095-1.413 1.908-3.056 2.438-4.929.53-1.873.795-3.798.795-5.777s-.265-3.887-.795-5.724c-.53-1.837-1.343-3.445-2.438-4.823-1.095-1.378-2.456-2.491-4.08-3.339-1.626-.848-3.534-1.272-5.725-1.272-2.19 0-4.116.406-5.777 1.219-1.66.813-3.056 1.908-4.187 3.286-1.13 1.378-1.979 2.986-2.544 4.823-.565 1.837-.848 3.78-.848 5.83 0 2.05.283 3.993.848 5.83.565 1.837 1.413 3.48 2.544 4.929a12.39 12.39 0 004.187 3.445c1.66.848 3.586 1.272 5.777 1.272z\"/></svg>" - }, - "$:/core/images/help": { - "title": "$:/core/images/help", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-help tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M36.055 111.441c-5.24 4.396-15.168 7.362-26.555 7.362-1.635 0-3.24-.06-4.806-.179 7.919-2.64 14.062-8.6 16.367-16.014C8.747 92.845 1.05 78.936 1.05 63.5c0-29.547 28.206-53.5 63-53.5s63 23.953 63 53.5-28.206 53.5-63 53.5c-10.055 0-19.56-2-27.994-5.559zm35.35-33.843a536.471 536.471 0 00.018-4.682 199.02 199.02 0 00-.023-3.042c.008-1.357.595-2.087 3.727-4.235.112-.077 1.085-.74 1.386-.948 3.093-2.133 5.022-3.786 6.762-6.187 2.34-3.228 3.558-7.077 3.558-11.649 0-13.292-9.86-21.952-21.455-21.952-11.103 0-22.499 9.609-24.066 22.295a6.023 6.023 0 1011.956 1.477c.806-6.527 6.972-11.726 12.11-11.726 5.265 0 9.408 3.64 9.408 9.906 0 3.634-1.1 5.153-5.111 7.919l-1.362.93c-2.682 1.84-4.227 3.1-5.7 4.931-2.109 2.62-3.242 5.717-3.258 9.314.013.892.02 1.86.022 2.981a470.766 470.766 0 01-.022 4.943 6.023 6.023 0 1012.046.12l.003-.395zm-6.027 24.499a7.529 7.529 0 100-15.058 7.529 7.529 0 000 15.058z\"/></svg>" - }, - "$:/core/images/home-button": { - "title": "$:/core/images/home-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-home-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M112.985 119.502c.01-.165.015-.331.015-.499V67.568c3.137 2.948 8.076 2.884 11.134-.174a7.999 7.999 0 00-.002-11.316L70.396 2.343A7.978 7.978 0 0064.734 0a7.957 7.957 0 00-5.656 2.343L33 28.42V8.007C33 3.585 29.41 0 25 0c-4.418 0-8 3.59-8 8.007V44.42L5.342 56.078c-3.125 3.125-3.12 8.198-.002 11.316a7.999 7.999 0 0011.316-.003l.344-.343v52.945a8.11 8.11 0 000 .007c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8a8.11 8.11 0 00-.015-.498zM97 112V51.574L64.737 19.31 33 51.048V112h64z\"/></svg>" - }, - "$:/core/images/import-button": { - "title": "$:/core/images/import-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-import-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M114.832 60.436s3.235-3.27 6.921.417c3.686 3.686.231 7.14.231 7.14l-42.153 42.92s-30.765 32.367-58.798 4.333C-7 87.213 24.59 55.623 24.59 55.623L67.363 12.85s22.725-24.6 43.587-3.738c20.862 20.862-3.96 43.09-3.96 43.09l-35.04 35.04S49.903 112.546 36.426 99.07c-13.476-13.477 11.83-35.523 11.83-35.523l35.04-35.04s3.902-3.902 7.78-.023c3.879 3.878.118 7.921.118 7.921l-35.04 35.04s-13.212 13.212-8.872 17.551c4.34 4.34 16.77-9.653 16.77-9.653l35.04-35.04s16.668-14.598 3.966-27.3c-13.893-13.892-27.565 3.702-27.565 3.702l-42.91 42.91s-23.698 23.698-3.658 43.738 43.012-4.385 43.012-4.385l42.895-42.533z\"/></svg>" - }, - "$:/core/images/info-button": { - "title": "$:/core/images/info-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-info-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\" transform=\"translate(.05)\"><path d=\"M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48z\"/><circle cx=\"64\" cy=\"32\" r=\"8\"/><rect width=\"16\" height=\"56\" x=\"56\" y=\"48\" rx=\"8\"/></g></svg>" - }, - "$:/core/images/italic": { - "title": "$:/core/images/italic", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-italic tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M66.711 0h22.41L62.408 128H40z\"/></svg>" - }, - "$:/core/images/left-arrow": { - "title": "$:/core/images/left-arrow", - "created": "20150315234410875", - "modified": "20150315235324760", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-left-arrow tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M0 64.177c0-2.026.771-4.054 2.317-5.6l55.98-55.98a7.92 7.92 0 0111.195.001c3.086 3.085 3.092 8.104.001 11.195L19.111 64.175l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.086-8.105 3.092-11.196.001l-55.98-55.98A7.892 7.892 0 010 64.177z\"/></svg>" - }, - "$:/core/images/line-width": { - "title": "$:/core/images/line-width", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-line-width tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M16 18h96a2 2 0 000-4H16a2 2 0 100 4zm0 17h96a4 4 0 100-8H16a4 4 0 100 8zm0 21h96a6 6 0 000-12H16a6 6 0 100 12zm0 29h96c5.523 0 10-4.477 10-10s-4.477-10-10-10H16c-5.523 0-10 4.477-10 10s4.477 10 10 10zm0 43h96c8.837 0 16-7.163 16-16s-7.163-16-16-16H16c-8.837 0-16 7.163-16 16s7.163 16 16 16z\"/></svg>" - }, - "$:/core/images/link": { - "title": "$:/core/images/link", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-link tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M42.263 69.38a31.919 31.919 0 006.841 10.13c12.5 12.5 32.758 12.496 45.255 0l22.627-22.628c12.502-12.501 12.497-32.758 0-45.255-12.5-12.5-32.758-12.496-45.254 0L49.104 34.255a32.333 32.333 0 00-2.666 3.019 36.156 36.156 0 0121.94.334l14.663-14.663c6.25-6.25 16.382-6.254 22.632-.004 6.248 6.249 6.254 16.373-.004 22.631l-22.62 22.62c-6.25 6.25-16.381 6.254-22.631.004a15.93 15.93 0 01-4.428-8.433 11.948 11.948 0 00-7.59 3.48l-6.137 6.137z\"/><path d=\"M86.35 59.234a31.919 31.919 0 00-6.84-10.13c-12.5-12.5-32.758-12.497-45.255 0L11.627 71.732c-12.501 12.5-12.496 32.758 0 45.254 12.5 12.5 32.758 12.497 45.255 0L79.51 94.36a32.333 32.333 0 002.665-3.02 36.156 36.156 0 01-21.94-.333l-14.663 14.663c-6.25 6.25-16.381 6.253-22.63.004-6.25-6.249-6.255-16.374.003-22.632l22.62-22.62c6.25-6.25 16.381-6.253 22.631-.003a15.93 15.93 0 014.428 8.432 11.948 11.948 0 007.59-3.48l6.137-6.136z\"/></g></svg>" - }, - "$:/core/images/linkify": { - "title": "$:/core/images/linkify", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-linkify-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"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\"/></svg>" - }, - "$:/core/images/list-bullet": { - "title": "$:/core/images/list-bullet", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-list-bullet tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M11.636 40.273c6.427 0 11.637-5.21 11.637-11.637C23.273 22.21 18.063 17 11.636 17 5.21 17 0 22.21 0 28.636c0 6.427 5.21 11.637 11.636 11.637zm0 34.909c6.427 0 11.637-5.21 11.637-11.637 0-6.426-5.21-11.636-11.637-11.636C5.21 51.91 0 57.12 0 63.545c0 6.427 5.21 11.637 11.636 11.637zm0 34.909c6.427 0 11.637-5.21 11.637-11.636 0-6.427-5.21-11.637-11.637-11.637C5.21 86.818 0 92.028 0 98.455c0 6.426 5.21 11.636 11.636 11.636zM34.91 22.818H128v11.637H34.91V22.818zm0 34.91H128v11.636H34.91V57.727zm0 34.908H128v11.637H34.91V92.636z\"/></svg>" - }, - "$:/core/images/list-number": { - "title": "$:/core/images/list-number", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-list-number tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M33.84 22.356H128v11.77H33.84v-11.77zm0 35.31H128v11.77H33.84v-11.77zm0 35.311H128v11.77H33.84v-11.77zM.38 42.631v-2.223h.998c.826 0 1.445-.14 1.858-.42.413-.28.619-.948.619-2.002V22.769c0-1.442-.193-2.336-.58-2.683-.385-.347-1.477-.52-3.275-.52v-2.143c3.502-.147 6.252-.955 8.25-2.423h2.117v22.865c0 .921.15 1.575.449 1.963.3.387.949.58 1.948.58h.998v2.223H.38zm-.3 35.356v-1.902c7.19-6.554 10.786-12.58 10.786-18.08 0-1.562-.326-2.81-.979-3.744-.652-.934-1.524-1.402-2.616-1.402-.893 0-1.655.317-2.287.952-.633.634-.95 1.364-.95 2.192 0 .974.247 1.829.74 2.563.106.16.16.28.16.36 0 .147-.16.28-.48.4-.213.08-.752.308-1.618.681-.839.374-1.358.561-1.558.561-.24 0-.512-.37-.819-1.111A6.2 6.2 0 010 57.064c0-1.949.849-3.544 2.547-4.785 1.698-1.242 3.798-1.862 6.302-1.862 2.463 0 4.53.67 6.202 2.012 1.67 1.341 2.506 3.093 2.506 5.256a8.644 8.644 0 01-.849 3.724c-.566 1.201-1.92 3.053-4.064 5.556a165.471 165.471 0 01-6.272 6.938h11.445l-1.019 5.726h-2.117c.08-.28.12-.534.12-.76 0-.388-.1-.631-.3-.731-.2-.1-.599-.15-1.198-.15H.08zm12.124 19.207c1.745.04 3.236.637 4.474 1.792 1.239 1.154 1.858 2.773 1.858 4.855 0 2.99-1.132 5.393-3.396 7.208-2.263 1.815-5 2.723-8.209 2.723-2.01 0-3.669-.384-4.974-1.151C.652 111.853 0 110.849 0 109.607c0-.774.27-1.398.809-1.872.54-.474 1.128-.71 1.768-.71.639 0 1.162.2 1.568.6.406.4.782 1.055 1.128 1.962.466 1.268 1.239 1.902 2.317 1.902 1.265 0 2.287-.477 3.066-1.431.78-.955 1.169-2.686 1.169-5.196 0-1.709-.12-3.023-.36-3.944-.24-.921-.792-1.382-1.658-1.382-.586 0-1.185.307-1.797.921-.493.494-.932.741-1.319.741-.333 0-.602-.147-.809-.44-.206-.294-.31-.574-.31-.841 0-.32.104-.594.31-.821.207-.227.69-.594 1.449-1.102 2.876-1.922 4.314-4.017 4.314-6.287 0-1.188-.306-2.092-.919-2.713a3.001 3.001 0 00-2.217-.93c-.799 0-1.525.263-2.177.79-.653.528-.979 1.158-.979 1.892 0 .641.253 1.235.76 1.782.172.2.259.367.259.5 0 .121-.57.428-1.708.922-1.139.494-1.854.74-2.147.74-.413 0-.75-.333-1.009-1-.26-.668-.39-1.282-.39-1.842 0-1.749.93-3.224 2.787-4.425 1.858-1.202 3.965-1.802 6.322-1.802 2.064 0 3.851.447 5.363 1.341 1.511.895 2.267 2.116 2.267 3.664 0 1.362-.57 2.623-1.708 3.784a13.387 13.387 0 01-3.945 2.784z\"/></svg>" - }, - "$:/core/images/list": { - "title": "$:/core/images/list", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-list tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M87.748 128H23.999c-4.418 0-7.999-3.59-7.999-8.007V8.007C16 3.585 19.588 0 24 0h80c4.419 0 8 3.59 8 8.007V104H91.25c-.965 0-1.84.392-2.473 1.025a3.476 3.476 0 00-1.029 2.476V128zm8-.12l15.88-15.88h-15.88v15.88zM40 15.508A3.502 3.502 0 0143.5 12h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 20h-55a3.498 3.498 0 01-3.5-3.509v-.982zM32 22a6 6 0 100-12 6 6 0 000 12zm8 9.509A3.502 3.502 0 0143.5 28h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 36h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 44h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 52h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 60h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 68h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 76h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 84h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 92h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 100h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.505 3.505 0 0143.497 108h33.006A3.497 3.497 0 0180 111.509v.982A3.505 3.505 0 0176.503 116H43.497A3.497 3.497 0 0140 112.491v-.982zM32 38a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12z\"/></svg>" - }, - "$:/core/images/locked-padlock": { - "title": "$:/core/images/locked-padlock", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-locked-padlock tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M96.472 64H105v32.01C105 113.674 90.674 128 73.001 128H56C38.318 128 24 113.677 24 96.01V64h8c.003-15.723.303-47.731 32.16-47.731 31.794 0 32.305 32.057 32.312 47.731zm-15.897 0H48.44c.002-16.287.142-32 15.719-32 15.684 0 16.977 16.136 16.415 32zM67.732 92.364A8.503 8.503 0 0064.5 76a8.5 8.5 0 00-3.498 16.25l-5.095 22.77H72.8l-5.07-22.656z\"/></svg>" - }, - "$:/core/images/mail": { - "title": "$:/core/images/mail", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-mail tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M122.827 104.894a7.986 7.986 0 01-2.834.516H8.007c-.812 0-1.597-.12-2.335-.345l34.163-34.163 20.842 20.842a3.998 3.998 0 003.418 1.134 4.003 4.003 0 003.395-1.134L88.594 70.64c.075.09.155.176.24.26l33.993 33.994zm5.076-6.237c.064-.406.097-.823.097-1.247v-64c0-.669-.082-1.318-.237-1.94L94.23 65.006c.09.075.177.154.261.239l33.413 33.413zm-127.698.56A8.023 8.023 0 010 97.41v-64c0-.716.094-1.41.271-2.071l33.907 33.906L.205 99.218zM5.93 25.684a8.012 8.012 0 012.078-.273h111.986c.766 0 1.507.108 2.209.308L64.083 83.837 5.93 25.683z\"/></svg>" - }, - "$:/core/images/menu-button": { - "title": "$:/core/images/menu-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-menu-button tc-image-button\" viewBox=\"0 0 128 128\"><rect width=\"128\" height=\"16\" y=\"16\" rx=\"8\"/><rect width=\"128\" height=\"16\" y=\"56\" rx=\"8\"/><rect width=\"128\" height=\"16\" y=\"96\" rx=\"8\"/></svg>" - }, - "$:/core/images/mono-block": { - "title": "$:/core/images/mono-block", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-mono-block tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M23.965 32.967h.357c.755 0 1.328.192 1.72.577.39.384.586.947.586 1.688 0 .824-.206 1.418-.618 1.782-.413.363-1.094.545-2.045.545h-6.31c-.965 0-1.65-.178-2.056-.535-.405-.356-.608-.954-.608-1.792 0-.811.203-1.391.608-1.74.406-.35 1.09-.525 2.055-.525h.734l-.86-2.453H8.471l-.902 2.453h.734c.95 0 1.632.178 2.044.535.413.356.619.933.619 1.73 0 .824-.206 1.418-.619 1.782-.412.363-1.094.545-2.044.545h-5.41c-.964 0-1.649-.182-2.054-.545-.406-.364-.608-.958-.608-1.782 0-.741.195-1.304.587-1.688.391-.385.964-.577 1.719-.577h.356l5.62-15.641H6.835c-.95 0-1.632-.182-2.044-.546-.412-.363-.619-.95-.619-1.76 0-.825.207-1.42.619-1.783.412-.363 1.094-.545 2.044-.545h7.863c1.244 0 2.118.67 2.62 2.013v.063l6.647 18.2zM12.98 17.326l-3.04 8.848h6.08l-3.04-8.848zm22.402 9.372v6.395h3.145c2.223 0 3.788-.245 4.697-.734.908-.49 1.362-1.307 1.362-2.453 0-1.16-.433-1.985-1.3-2.474-.866-.49-2.383-.734-4.55-.734h-3.354zm10.693-2.327c1.524.559 2.642 1.324 3.355 2.295.713.972 1.07 2.212 1.07 3.722 0 1.272-.308 2.432-.923 3.48-.615 1.049-1.496 1.909-2.642 2.58a7.499 7.499 0 01-2.254.849c-.832.174-2.01.262-3.533.262H30.202c-.922 0-1.583-.182-1.981-.545-.399-.364-.598-.958-.598-1.782 0-.741.189-1.304.566-1.688.378-.385.93-.577 1.657-.577h.356V17.326h-.356c-.727 0-1.28-.196-1.657-.587-.377-.392-.566-.965-.566-1.72 0-.81.203-1.401.608-1.771.406-.37 1.062-.556 1.971-.556h9.645c2.95 0 5.19.573 6.72 1.72 1.53 1.145 2.296 2.823 2.296 5.031 0 1.09-.234 2.052-.703 2.883-.468.832-1.163 1.513-2.086 2.045zM35.381 17.2v5.284h2.83c1.72 0 2.932-.203 3.638-.609.706-.405 1.06-1.09 1.06-2.054 0-.909-.319-1.573-.955-1.992-.636-.42-1.667-.63-3.093-.63h-3.48zm35.863-3.816c.28-.503.566-.86.86-1.07.293-.21.664-.314 1.111-.314.685 0 1.17.182 1.457.545.287.364.43.986.43 1.866l.042 5.452c0 .964-.157 1.614-.472 1.95-.314.335-.884.503-1.709.503-.587 0-1.037-.14-1.352-.42-.314-.28-.584-.796-.807-1.551-.364-1.328-.944-2.282-1.74-2.862-.797-.58-1.901-.87-3.313-.87-2.153 0-3.802.727-4.948 2.18-1.147 1.454-1.72 3.558-1.72 6.311 0 2.74.58 4.844 1.74 6.311 1.16 1.468 2.817 2.202 4.97 2.202 1.467 0 3.085-.49 4.854-1.468 1.768-.978 2.883-1.467 3.344-1.467.545 0 1.003.23 1.373.692.37.46.556 1.034.556 1.719 0 1.23-1.084 2.39-3.25 3.48-2.167 1.09-4.606 1.636-7.318 1.636-3.662 0-6.625-1.21-8.89-3.627-2.264-2.419-3.396-5.578-3.396-9.478 0-3.76 1.146-6.884 3.438-9.372 2.293-2.488 5.2-3.732 8.723-3.732.992 0 1.97.112 2.935.335.964.224 1.992.574 3.082 1.049zm10.22 19.583V17.326h-.356c-.755 0-1.328-.196-1.72-.587-.39-.392-.586-.965-.586-1.72 0-.81.21-1.401.629-1.771.42-.37 1.097-.556 2.034-.556h5.178c2.922 0 5.06.126 6.416.377 1.356.252 2.51.671 3.46 1.258 1.691 1.007 2.988 2.443 3.89 4.31.9 1.865 1.352 4.021 1.352 6.467 0 2.586-.514 4.847-1.541 6.783-1.028 1.936-2.485 3.4-4.372 4.393-.853.447-1.852.772-2.998.975-1.147.203-2.852.304-5.116.304h-6.269c-.965 0-1.65-.178-2.055-.535-.406-.356-.608-.954-.608-1.792 0-.741.195-1.304.587-1.688.391-.385.964-.577 1.72-.577h.356zm5.41-15.725v15.725h1.195c2.642 0 4.592-.646 5.85-1.94 1.258-1.292 1.887-3.28 1.887-5.965 0-2.641-.64-4.612-1.918-5.912-1.28-1.3-3.205-1.95-5.777-1.95-.335 0-.59.003-.765.01a7.992 7.992 0 00-.472.032zm35.067-.126h-9.75v5.368h3.69v-.252c0-.797.175-1.39.524-1.782.35-.392.88-.587 1.594-.587.629 0 1.142.178 1.54.534.4.357.598.808.598 1.353 0 .028.007.118.021.272.014.154.021.308.021.462v4.34c0 .936-.167 1.607-.503 2.013-.335.405-.88.608-1.635.608-.713 0-1.251-.19-1.615-.567-.363-.377-.545-.936-.545-1.677v-.377h-3.69v6.269h9.75v-2.495c0-.937.178-1.608.534-2.013.357-.405.94-.608 1.75-.608.798 0 1.367.2 1.71.597.342.399.513 1.073.513 2.024v5.074c0 .755-.146 1.258-.44 1.51-.293.251-.873.377-1.74.377h-17.172c-.923 0-1.583-.182-1.982-.545-.398-.364-.597-.958-.597-1.782 0-.741.189-1.304.566-1.688.377-.385.93-.577 1.656-.577h.357V17.326h-.357c-.712 0-1.261-.2-1.646-.598-.384-.398-.576-.968-.576-1.709 0-.81.203-1.401.608-1.771.405-.37 1.062-.556 1.97-.556h17.173c.853 0 1.43.13 1.73.388.3.258.45.772.45 1.54v4.698c0 .95-.174 1.631-.524 2.044-.35.412-.915.618-1.698.618-.81 0-1.394-.21-1.75-.629-.357-.419-.535-1.097-.535-2.033v-2.202zM19.77 47.641c.267-.504.55-.86.85-1.07.3-.21.675-.314 1.122-.314.685 0 1.17.181 1.457.545.287.363.43.985.43 1.866l.042 5.451c0 .965-.157 1.615-.472 1.95-.314.336-.891.504-1.73.504-.587 0-1.045-.144-1.373-.43-.329-.287-.598-.8-.807-1.541-.378-1.342-.958-2.3-1.74-2.873-.783-.573-1.88-.86-3.292-.86-2.153 0-3.799.727-4.938 2.181-1.14 1.454-1.709 3.557-1.709 6.311s.598 4.882 1.793 6.385C10.599 67.248 12.294 68 14.488 68c.503 0 1.077-.06 1.72-.179a23.809 23.809 0 002.264-.555v-3.313h-2.37c-.95 0-1.624-.175-2.023-.524-.398-.35-.597-.93-.597-1.74 0-.84.199-1.437.597-1.793.399-.357 1.073-.535 2.024-.535h7.569c.978 0 1.667.175 2.065.524.398.35.598.937.598 1.762 0 .74-.2 1.31-.598 1.708-.398.399-.975.598-1.73.598h-.335v5.242c0 .447-.05.758-.147.933-.098.174-.293.353-.587.534-.797.476-2.062.895-3.795 1.258a25.576 25.576 0 01-5.263.546c-3.662 0-6.625-1.21-8.89-3.628-2.264-2.418-3.397-5.577-3.397-9.477 0-3.76 1.147-6.884 3.44-9.372 2.292-2.488 5.199-3.732 8.721-3.732.979 0 1.954.112 2.925.335.972.224 2.003.573 3.093 1.049zm15.84 3.941v4.823h6.857v-4.823h-.336c-.754 0-1.331-.195-1.73-.587-.398-.391-.597-.964-.597-1.719 0-.825.206-1.419.619-1.782.412-.364 1.093-.545 2.044-.545h5.41c.95 0 1.624.181 2.023.545.398.363.597.957.597 1.782 0 .755-.192 1.328-.576 1.72-.385.39-.947.586-1.688.586h-.357v15.642h.357c.755 0 1.328.192 1.719.576.391.385.587.947.587 1.688 0 .825-.203 1.419-.608 1.782-.405.364-1.09.546-2.055.546h-5.41c-.964 0-1.649-.179-2.054-.535-.405-.357-.608-.954-.608-1.793 0-.74.2-1.303.598-1.688.398-.384.975-.576 1.73-.576h.335v-6.186h-6.856v6.186h.335c.755 0 1.331.192 1.73.576.398.385.597.947.597 1.688 0 .825-.206 1.419-.618 1.782-.412.364-1.094.546-2.044.546h-5.41c-.964 0-1.65-.179-2.055-.535-.405-.357-.608-.954-.608-1.793 0-.74.196-1.303.587-1.688.392-.384.965-.576 1.72-.576h.356V51.582h-.356c-.741 0-1.304-.195-1.688-.587-.385-.391-.577-.964-.577-1.719 0-.825.2-1.419.598-1.782.398-.364 1.073-.545 2.023-.545h5.41c.936 0 1.614.181 2.033.545.42.363.63.957.63 1.782 0 .755-.2 1.328-.598 1.72-.399.39-.975.586-1.73.586h-.335zm31.754 0v15.642h3.523c.95 0 1.632.178 2.044.534.412.357.618.933.618 1.73 0 .811-.21 1.402-.629 1.772-.419.37-1.097.556-2.033.556H58.433c-.95 0-1.632-.182-2.044-.546-.412-.363-.619-.957-.619-1.782 0-.81.203-1.39.608-1.74.406-.35 1.09-.524 2.055-.524h3.523V51.582h-3.523c-.95 0-1.632-.181-2.044-.545-.412-.363-.619-.95-.619-1.761 0-.825.203-1.412.608-1.761.406-.35 1.09-.524 2.055-.524h12.455c.992 0 1.684.174 2.075.524.392.35.587.936.587 1.761 0 .81-.202 1.398-.608 1.761-.405.364-1.09.545-2.054.545h-3.523zm30.496 0v11.994c0 1.873-.122 3.228-.367 4.067a5.876 5.876 0 01-1.227 2.244c-.74.852-1.768 1.495-3.082 1.929-1.314.433-2.893.65-4.738.65-1.3 0-2.555-.126-3.764-.378a16.843 16.843 0 01-3.491-1.132c-.615-.28-1.017-.643-1.206-1.09-.188-.448-.283-1.175-.283-2.18v-4.32c0-1.202.175-2.04.525-2.516.349-.475.957-.713 1.824-.713 1.244 0 1.929.915 2.054 2.747.014.321.035.566.063.733.168 1.622.545 2.73 1.133 3.324.587.594 1.523.89 2.81.89 1.593 0 2.714-.422 3.364-1.268.65-.845.975-2.386.975-4.623V51.582H88.93c-.95 0-1.632-.181-2.044-.545-.413-.363-.619-.95-.619-1.761 0-.825.2-1.412.598-1.761.398-.35 1.086-.524 2.065-.524h10.693c.979 0 1.667.174 2.065.524.399.35.598.936.598 1.761 0 .81-.206 1.398-.619 1.761-.412.364-1.093.545-2.044.545h-1.761zm14.644 0v6.353l6.48-6.478c-.728-.084-1.238-.29-1.531-.619-.294-.328-.44-.85-.44-1.562 0-.825.198-1.419.597-1.782.398-.364 1.073-.545 2.023-.545h5.137c.95 0 1.625.181 2.023.545.399.363.598.957.598 1.782 0 .769-.2 1.345-.598 1.73-.398.384-.982.576-1.75.576h-.483l-6.101 6.06c1.132.839 2.167 1.94 3.103 3.302.937 1.363 2.034 3.456 3.292 6.28h.692c.825 0 1.44.188 1.845.566.405.377.608.943.608 1.698 0 .825-.206 1.419-.619 1.782-.412.364-1.093.546-2.044.546h-2.579c-1.132 0-2.048-.762-2.746-2.286-.126-.28-.224-.503-.294-.67-.923-1.958-1.768-3.467-2.537-4.53a16.616 16.616 0 00-2.705-2.914l-1.97 1.887v3.92h.335c.755 0 1.331.193 1.73.577.398.385.597.947.597 1.688 0 .825-.206 1.419-.618 1.782-.413.364-1.094.546-2.045.546h-5.41c-.964 0-1.649-.179-2.054-.535-.405-.357-.608-.954-.608-1.793 0-.74.196-1.303.587-1.688.391-.384.965-.576 1.72-.576h.356V51.582h-.357c-.74 0-1.303-.195-1.687-.587-.385-.391-.577-.964-.577-1.719 0-.825.2-1.419.598-1.782.398-.364 1.072-.545 2.023-.545h5.41c.936 0 1.614.181 2.033.545.42.363.63.957.63 1.782 0 .755-.2 1.328-.598 1.72-.399.39-.975.586-1.73.586h-.336zM13.44 96.326l4.005-11.889c.251-.782.6-1.352 1.048-1.709.447-.356 1.041-.534 1.782-.534h3.271c.95 0 1.632.182 2.044.545.413.363.619.957.619 1.782 0 .755-.2 1.328-.598 1.72-.398.39-.975.587-1.73.587h-.335l.587 15.641h.357c.754 0 1.32.192 1.698.577.377.384.566.947.566 1.687 0 .825-.2 1.42-.598 1.783-.398.363-1.072.545-2.023.545h-4.718c-.95 0-1.624-.178-2.023-.535-.398-.356-.597-.954-.597-1.793 0-.74.192-1.303.576-1.687.385-.385.954-.577 1.709-.577h.335l-.293-12.79-3.061 9.52c-.224.712-.542 1.226-.954 1.54-.413.315-.982.472-1.709.472-.727 0-1.303-.157-1.73-.472-.426-.314-.751-.828-.975-1.54l-3.04-9.52-.294 12.79h.336c.755 0 1.324.192 1.709.577.384.384.576.947.576 1.687 0 .825-.202 1.42-.608 1.783-.405.363-1.076.545-2.013.545H2.621c-.937 0-1.608-.182-2.013-.545-.405-.364-.608-.958-.608-1.783 0-.74.192-1.303.577-1.687.384-.385.954-.577 1.708-.577h.336l.608-15.641h-.336c-.754 0-1.331-.196-1.73-.588-.398-.39-.597-.964-.597-1.719 0-.825.206-1.419.619-1.782.412-.363 1.093-.545 2.044-.545h3.27c.728 0 1.311.175 1.752.524.44.35.8.923 1.08 1.72l4.109 11.888zm30.454 2.054V86.828H42.74c-.922 0-1.583-.182-1.981-.546-.398-.363-.598-.95-.598-1.76 0-.812.2-1.402.598-1.773.398-.37 1.059-.555 1.981-.555h5.955c.909 0 1.566.185 1.97.555.406.37.609.961.609 1.772 0 .741-.192 1.31-.577 1.709-.384.398-.933.598-1.646.598h-.356v19.038c0 .657-.07 1.069-.21 1.237-.14.167-.454.251-.943.251h-2.097c-.67 0-1.143-.07-1.415-.21-.273-.14-.507-.384-.703-.733l-8.722-15.327v11.385h1.216c.909 0 1.559.175 1.95.524.392.35.587.93.587 1.74 0 .825-.199 1.42-.597 1.783-.399.363-1.045.545-1.94.545h-6.017c-.909 0-1.566-.182-1.971-.545-.406-.364-.608-.958-.608-1.783 0-.74.188-1.303.566-1.687.377-.385.936-.577 1.677-.577h.336V86.828h-.336c-.713 0-1.265-.2-1.656-.598-.392-.398-.587-.968-.587-1.709 0-.81.206-1.401.618-1.772.413-.37 1.066-.555 1.96-.555h3.44c.824 0 1.383.108 1.677.325.293.216.622.653.985 1.31l7.989 14.551zM64.66 86.366c-1.803 0-3.218.727-4.245 2.18-1.028 1.455-1.541 3.474-1.541 6.06 0 2.586.517 4.613 1.551 6.08 1.034 1.468 2.446 2.202 4.235 2.202 1.804 0 3.222-.73 4.257-2.19 1.034-1.461 1.551-3.492 1.551-6.092 0-2.586-.513-4.605-1.54-6.06-1.028-1.453-2.45-2.18-4.268-2.18zm0-4.864c3.44 0 6.27 1.23 8.492 3.69 2.223 2.46 3.334 5.598 3.334 9.414 0 3.844-1.104 6.99-3.313 9.436-2.208 2.446-5.046 3.669-8.513 3.669-3.424 0-6.255-1.234-8.491-3.701-2.237-2.467-3.355-5.602-3.355-9.404 0-3.83 1.108-6.971 3.323-9.424 2.216-2.454 5.057-3.68 8.523-3.68zM87.461 98.17v4.298h2.16c.908 0 1.555.175 1.94.524.384.35.576.93.576 1.74 0 .825-.196 1.42-.587 1.783-.392.363-1.035.545-1.93.545h-7.254c-.922 0-1.583-.182-1.981-.545-.399-.364-.598-.958-.598-1.783 0-.74.189-1.303.566-1.687.378-.385.93-.577 1.657-.577h.356V86.828h-.356c-.713 0-1.262-.2-1.646-.598-.385-.398-.577-.968-.577-1.709 0-.81.203-1.401.608-1.772.406-.37 1.063-.555 1.971-.555h8.66c3.424 0 6.014.657 7.768 1.97 1.754 1.315 2.631 3.25 2.631 5.809 0 2.697-.873 4.738-2.62 6.122-1.748 1.384-4.34 2.076-7.78 2.076h-3.564zm0-11.343v6.625h2.977c1.65 0 2.89-.28 3.722-.839.832-.559 1.248-1.397 1.248-2.516 0-1.048-.43-1.855-1.29-2.421-.86-.566-2.086-.85-3.68-.85h-2.977zm27.267 20.568l-1.636 1.636a12.37 12.37 0 011.772-.44c.58-.098 1.15-.147 1.709-.147 1.104 0 2.268.164 3.491.492 1.223.329 1.967.493 2.233.493.447 0 1.03-.15 1.75-.45.72-.301 1.206-.452 1.458-.452.517 0 .947.2 1.29.598.342.398.513.898.513 1.5 0 .796-.472 1.474-1.415 2.033-.944.56-2.1.839-3.47.839-.937 0-2.139-.22-3.607-.66-1.467-.441-2.53-.661-3.187-.661-.992 0-2.11.272-3.354.817-1.244.546-2.013.818-2.307.818a2.14 2.14 0 01-1.53-.597c-.42-.399-.63-.878-.63-1.437 0-.391.134-.807.4-1.247.265-.44.733-1.01 1.404-1.709l2.118-2.139c-2.335-.852-4.194-2.386-5.578-4.602-1.384-2.215-2.075-4.763-2.075-7.642 0-3.802 1.104-6.909 3.312-9.32 2.209-2.411 5.053-3.617 8.534-3.617 3.467 0 6.304 1.209 8.513 3.627 2.208 2.418 3.312 5.522 3.312 9.31 0 3.774-1.097 6.884-3.291 9.33-2.195 2.446-4.977 3.67-8.345 3.67a22.5 22.5 0 01-1.384-.043zm1.195-21.03c-1.803 0-3.218.727-4.246 2.18-1.027 1.455-1.54 3.474-1.54 6.06 0 2.586.516 4.613 1.55 6.08 1.035 1.468 2.447 2.202 4.236 2.202 1.803 0 3.222-.73 4.256-2.19 1.035-1.461 1.552-3.492 1.552-6.092 0-2.586-.514-4.605-1.541-6.06-1.028-1.453-2.45-2.18-4.267-2.18z\"/></svg>" - }, - "$:/core/images/mono-line": { - "title": "$:/core/images/mono-line", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-mono-line tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M60.437 84.523h.908c1.922 0 3.381.489 4.378 1.468.997.979 1.495 2.411 1.495 4.298 0 2.1-.525 3.612-1.575 4.538-1.05.925-2.785 1.388-5.206 1.388h-16.07c-2.456 0-4.2-.454-5.232-1.361-1.032-.908-1.548-2.43-1.548-4.565 0-2.065.516-3.542 1.548-4.432 1.032-.89 2.776-1.334 5.232-1.334h1.869l-2.19-6.247H20.983l-2.296 6.247h1.87c2.42 0 4.155.453 5.205 1.361 1.05.908 1.575 2.376 1.575 4.405 0 2.1-.525 3.612-1.575 4.538-1.05.925-2.785 1.388-5.206 1.388H6.781c-2.456 0-4.2-.463-5.233-1.388C.516 93.9 0 92.389 0 90.289c0-1.887.498-3.32 1.495-4.298.997-.979 2.456-1.468 4.378-1.468h.908l14.308-39.83h-4.271c-2.42 0-4.156-.462-5.206-1.387-1.05-.926-1.575-2.42-1.575-4.485 0-2.1.525-3.613 1.575-4.538 1.05-.926 2.785-1.388 5.206-1.388h20.021c3.168 0 5.392 1.708 6.674 5.125v.16l16.924 46.343zm-27.976-39.83L24.72 67.225h15.483l-7.742-22.53zM89.506 68.56v16.284h8.008c5.66 0 9.646-.623 11.96-1.869 2.313-1.245 3.47-3.328 3.47-6.246 0-2.955-1.103-5.055-3.31-6.3-2.207-1.246-6.069-1.869-11.586-1.869h-8.542zm27.229-5.926c3.88 1.423 6.727 3.372 8.542 5.846 1.815 2.474 2.723 5.633 2.723 9.477 0 3.239-.783 6.193-2.35 8.862-1.565 2.67-3.808 4.859-6.726 6.567-1.709.997-3.622 1.718-5.74 2.163-2.118.445-5.116.667-8.996.667h-27.87c-2.349 0-4.03-.463-5.045-1.388-1.014-.926-1.521-2.438-1.521-4.538 0-1.887.48-3.32 1.441-4.298.961-.979 2.367-1.468 4.218-1.468h.907v-39.83h-.907c-1.851 0-3.257-.498-4.218-1.494-.961-.997-1.441-2.456-1.441-4.378 0-2.065.516-3.568 1.548-4.512 1.032-.943 2.705-1.414 5.018-1.414h24.56c7.51 0 13.214 1.459 17.111 4.377 3.898 2.92 5.847 7.19 5.847 12.814 0 2.776-.597 5.223-1.789 7.341-1.192 2.118-2.963 3.853-5.312 5.206zm-27.23-18.26v13.455h7.208c4.378 0 7.466-.516 9.264-1.549 1.797-1.032 2.696-2.776 2.696-5.232 0-2.313-.81-4.004-2.43-5.072-1.619-1.068-4.244-1.602-7.874-1.602h-8.863z\"/></svg>" - }, - "$:/core/images/new-button": { - "title": "$:/core/images/new-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-new-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M56 72H8.007C3.591 72 0 68.418 0 64c0-4.41 3.585-8 8.007-8H56V8.007C56 3.591 59.582 0 64 0c4.41 0 8 3.585 8 8.007V56h47.993c4.416 0 8.007 3.582 8.007 8 0 4.41-3.585 8-8.007 8H72v47.993c0 4.416-3.582 8.007-8 8.007-4.41 0-8-3.585-8-8.007V72z\"/></svg>" - }, - "$:/core/images/new-here-button": { - "title": "$:/core/images/new-here-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-new-here-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M55.838 20.935l-3.572.938c-3.688.968-8.23 4.43-10.136 7.731L3.37 96.738c-1.905 3.3-.771 7.524 2.534 9.432l33.717 19.466c3.297 1.904 7.53.78 9.435-2.521l38.76-67.134c1.905-3.3 2.632-8.963 1.623-12.646L83.285 20.88c-1.009-3.68-4.821-5.884-8.513-4.915l-7.603 1.995.043.287c.524 3.394 2.053 7.498 4.18 11.55.418.163.829.36 1.23.59a8.864 8.864 0 014.438 8.169c.104.132.21.264.316.395l-.386.318a8.663 8.663 0 01-1.082 3.137c-2.42 4.192-7.816 5.608-12.051 3.163-4.12-2.379-5.624-7.534-3.476-11.671-2.177-4.394-3.788-8.874-4.543-12.964z\"/><path d=\"M69.554 44.76c-5.944-7.476-10.74-17.196-11.955-25.059-1.68-10.875 3.503-18.216 15.082-18.04 10.407.158 19.975 5.851 24.728 13.785 5.208 8.695 2.95 17.868-6.855 20.496l-2.037-7.601c4.232-1.134 4.999-4.248 2.24-8.853-3.37-5.626-10.465-9.848-18.146-9.965-6.392-.097-8.31 2.62-7.323 9.01.999 6.465 5.318 15.138 10.582 21.65l-.072.06c.559 1.553-4.17 6.44-5.938 4.888l-.005.004-.028-.034a1.323 1.323 0 01-.124-.135 2.618 2.618 0 01-.149-.205z\"/><rect width=\"16\" height=\"48\" x=\"96\" y=\"80\" rx=\"8\"/><rect width=\"48\" height=\"16\" x=\"80\" y=\"96\" rx=\"8\"/></g></svg>" - }, - "$:/core/images/new-image-button": { - "title": "$:/core/images/new-image-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-new-image-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M81.362 73.627l15.826-27.41a2.626 2.626 0 00-.962-3.59l-50.01-28.872a2.626 2.626 0 00-3.588.961L30.058 36.49l10.04-5.261c3.042-1.595 6.771.114 7.55 3.46l3.607 17.702 9.88.85a5.25 5.25 0 014.571 3.77c.034.115.1.344.199.671.165.553.353 1.172.562 1.843.595 1.914 1.23 3.85 1.872 5.678.207.588.412 1.156.614 1.701.625 1.685 1.209 3.114 1.725 4.207.255.54.485.977.726 1.427.214.212.547.425 1.011.622 1.141.482 2.784.74 4.657.758.864.008 1.71-.034 2.492-.11.448-.043.753-.085.871-.104.315-.053.625-.077.927-.076zM37.47 2.649A5.257 5.257 0 0144.649.725l63.645 36.746a5.257 5.257 0 011.923 7.178L73.47 108.294a5.257 5.257 0 01-7.177 1.923L2.649 73.47a5.257 5.257 0 01-1.924-7.177L37.471 2.649zm42.837 50.49a5.25 5.25 0 105.25-9.092 5.25 5.25 0 00-5.25 9.093zM96 112h-7.993c-4.419 0-8.007-3.582-8.007-8 0-4.41 3.585-8 8.007-8H96v-7.993C96 83.588 99.582 80 104 80c4.41 0 8 3.585 8 8.007V96h7.993c4.419 0 8.007 3.582 8.007 8 0 4.41-3.585 8-8.007 8H112v7.993c0 4.419-3.582 8.007-8 8.007-4.41 0-8-3.585-8-8.007V112zM33.347 51.791c7.428 7.948 9.01 10.69 7.449 13.394-1.56 2.703-13.838-2.328-16.094 1.58-2.256 3.908-.907 3.258-2.437 5.908l19.73 11.39s-5.605-8.255-4.235-10.628c2.515-4.356 8.77-1.256 10.365-4.019 2.414-4.181-5.103-9.639-14.778-17.625z\"/></svg>" - }, - "$:/core/images/new-journal-button": { - "title": "$:/core/images/new-journal-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-new-journal-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M102.545 112.818v11.818c0 1.306 1.086 2.364 2.425 2.364h6.06c1.34 0 2.425-1.058 2.425-2.364v-11.818h12.12c1.34 0 2.425-1.058 2.425-2.363v-5.91c0-1.305-1.085-2.363-2.424-2.363h-12.121V90.364c0-1.306-1.086-2.364-2.425-2.364h-6.06c-1.34 0-2.425 1.058-2.425 2.364v11.818h-12.12c-1.34 0-2.425 1.058-2.425 2.363v5.91c0 1.305 1.085 2.363 2.424 2.363h12.121zM60.016 4.965c-4.781-2.76-10.897-1.118-13.656 3.66L5.553 79.305A9.993 9.993 0 009.21 92.963l51.04 29.468c4.78 2.76 10.897 1.118 13.655-3.66l40.808-70.681a9.993 9.993 0 00-3.658-13.656L60.016 4.965zm-3.567 27.963a6 6 0 106-10.393 6 6 0 00-6 10.393zm31.697 17.928a6 6 0 106-10.392 6 6 0 00-6 10.392z\"/><text class=\"tc-fill-background\" font-family=\"Helvetica\" font-size=\"47.172\" font-weight=\"bold\" transform=\"rotate(30 25.742 95.82)\"><tspan x=\"42\" y=\"77.485\" text-anchor=\"middle\"><<now \"DD\">></tspan></text></g></svg>" - }, - "$:/core/images/opacity": { - "title": "$:/core/images/opacity", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-opacity tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M102.362 65a51.595 51.595 0 01-1.942 6H82.584a35.867 35.867 0 002.997-6h16.78zm.472-2c.423-1.961.734-3.963.929-6H87.656a35.78 35.78 0 01-1.368 6h16.546zm-3.249 10a51.847 51.847 0 01-3.135 6H75.812a36.205 36.205 0 005.432-6h18.341zm-4.416 8c-1.424 2.116-3 4.12-4.71 6H60.46a35.843 35.843 0 0012.874-6h21.834zm-7.513-34h16.107C101.247 20.627 79.033 0 52 0 23.281 0 0 23.281 0 52c0 25.228 17.965 46.26 41.8 51h20.4a51.66 51.66 0 0015.875-6H39v-2h42.25a52.257 52.257 0 007.288-6H39v-2h4.539C27.739 83.194 16 68.968 16 52c0-19.882 16.118-36 36-36 18.186 0 33.222 13.484 35.656 31zm.22 2h16.039a52.823 52.823 0 010 6H87.877a36.483 36.483 0 000-6z\"/><path d=\"M76 128c28.719 0 52-23.281 52-52s-23.281-52-52-52-52 23.281-52 52 23.281 52 52 52zm0-16c19.882 0 36-16.118 36-36S95.882 40 76 40 40 56.118 40 76s16.118 36 36 36z\"/><path d=\"M37 58h53v4H37v-4zm3-8h53v4H40v-4zm0-8h53v4H40v-4zm-8 24h53v4H32v-4zm-2 8h53v4H30v-4zm-3 8h53v4H27v-4z\"/></g></svg>" - }, - "$:/core/images/open-window": { - "title": "$:/core/images/open-window", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-open-window tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M16 112h88.994c3.87 0 7.006 3.59 7.006 8 0 4.418-3.142 8-7.006 8H7.006C3.136 128 0 124.41 0 120a9.321 9.321 0 010-.01V24.01C0 19.586 3.59 16 8 16c4.418 0 8 3.584 8 8.01V112z\"/><path d=\"M96 43.196V56a8 8 0 1016 0V24c0-4.41-3.585-8-8.007-8H72.007C67.588 16 64 19.582 64 24c0 4.41 3.585 8 8.007 8H84.57l-36.3 36.299a8 8 0 00-.001 11.316c3.117 3.117 8.19 3.123 11.316-.003L96 43.196zM32 7.999C32 3.581 35.588 0 40 0h80c4.419 0 8 3.588 8 8v80c0 4.419-3.588 8-8 8H40c-4.419 0-8-3.588-8-8V8z\"/></g></svg>" - }, - "$:/core/images/options-button": { - "title": "$:/core/images/options-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-options-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M110.488 76a47.712 47.712 0 01-5.134 12.384l6.724 6.724c3.123 3.123 3.132 8.192.011 11.313l-5.668 5.668c-3.12 3.12-8.186 3.117-11.313-.01l-6.724-6.725c-3.82 2.258-7.98 4-12.384 5.134v9.505c0 4.417-3.578 8.007-7.992 8.007h-8.016C55.58 128 52 124.415 52 119.993v-9.505a47.712 47.712 0 01-12.384-5.134l-6.724 6.725c-3.123 3.122-8.192 3.131-11.313.01l-5.668-5.668c-3.12-3.12-3.116-8.186.01-11.313l6.725-6.724c-2.257-3.82-4-7.98-5.134-12.384H8.007C3.591 76 0 72.422 0 68.01v-8.017C0 55.58 3.585 52 8.007 52h9.505a47.712 47.712 0 015.134-12.383l-6.724-6.725c-3.123-3.122-3.132-8.191-.011-11.312l5.668-5.669c3.12-3.12 8.186-3.116 11.313.01l6.724 6.725c3.82-2.257 7.98-4 12.384-5.134V8.007C52 3.591 55.578 0 59.992 0h8.016C72.42 0 76 3.585 76 8.007v9.505a47.712 47.712 0 0112.384 5.134l6.724-6.724c3.123-3.123 8.192-3.132 11.313-.01l5.668 5.668c3.12 3.12 3.116 8.186-.01 11.312l-6.725 6.725c2.257 3.82 4 7.979 5.134 12.383h9.505c4.416 0 8.007 3.578 8.007 7.992v8.017c0 4.411-3.585 7.991-8.007 7.991h-9.505zM64 96c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32z\"/></svg>" - }, - "$:/core/images/paint": { - "title": "$:/core/images/paint", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-paint tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M83.527 76.19C90.43 69.287 91.892 59 87.91 50.665l37.903-37.902c2.919-2.92 2.913-7.659 0-10.572a7.474 7.474 0 00-10.572 0L77.338 40.093c-8.335-3.982-18.622-2.521-25.526 4.383l31.715 31.715zm-2.643 2.644L49.169 47.119S8.506 81.243 0 80.282c0 0 3.782 5.592 6.827 8.039 14.024-5.69 37.326-24.6 37.326-24.6l.661.66S19.45 90.222 9.18 92.047c1.222 1.44 4.354 4.053 6.247 5.776 5.417-1.488 34.733-28.57 34.733-28.57l.661.66-32.407 31.022 5.285 5.286L56.106 75.2l.662.66s-27.864 30.536-28.684 32.432c0 0 6.032 6.853 7.569 7.824.702-2.836 27.884-33.485 27.884-33.485l.661.66s-20.597 23.755-24.964 36.732c3.21 3.549 7.5 5.137 10.926 6.298-2.19-11.817 30.724-47.487 30.724-47.487z\"/></svg>" - }, - "$:/core/images/palette": { - "title": "$:/core/images/palette", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-palette tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M80.247 39.182a93.52 93.52 0 00-16.228-1.4C28.662 37.781 0 57.131 0 81.002c0 9.642 4.676 18.546 12.58 25.735C23.504 91.19 26.34 72.395 36.89 63.562c15.183-12.713 26.538-7.828 26.538-7.828l16.82-16.552zm26.535 9.655c13.049 7.913 21.257 19.392 21.257 32.166 0 9.35.519 17.411-11.874 25.08-10.797 6.681-3.824-6.536-11.844-10.898s-19.946 1.308-18.213 7.906c3.2 12.181 19.422 11.455 6.314 16.658-13.107 5.202-18.202 4.476-28.403 4.476-7.821 0-15.315-.947-22.243-2.68 9.844-4.197 27.88-12.539 33.354-19.456C82.788 92.409 87.37 80 83.324 72.484c-.194-.359 11.215-11.668 23.458-23.647zM1.134 123.867l-.66.002c33.479-14.94 22.161-64.226 58.818-64.226.317 1.418.644 2.944 1.062 4.494-25.907-4.166-23.567 48.031-59.22 59.73zm.713-.007c38.872-.506 78.152-22.347 78.152-44.813-9.27 0-14.073-3.48-16.816-7.942-16.597-7.003-30.365 45.715-61.336 52.755zm65.351-64.008c-4.45 4.115 4.886 16.433 11.318 11.318l45.27-45.27c11.317-11.318 0-22.635-11.318-11.318-11.317 11.318-33.518 34.405-45.27 45.27z\"/></svg>" - }, - "$:/core/images/permalink-button": { - "title": "$:/core/images/permalink-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-permalink-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M80.483 48l-7.387 32h-25.58l7.388-32h25.58zm3.694-16l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L100.598 32h3.403c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8h-7.096l-7.387 32H104c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H85.824l-5.624 24.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L69.402 96h-25.58L38.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L27.402 96h-3.403C19.59 96 16 92.418 16 88c0-4.41 3.581-8 8-8h7.096l7.387-32H24C19.59 48 16 44.418 16 40c0-4.41 3.581-8 8-8h18.177l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L58.598 32h25.58z\"/></svg>" - }, - "$:/core/images/permaview-button": { - "title": "$:/core/images/permaview-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-permaview-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M81.483 48l-1.846 8h-5.58l1.847-8h5.58zm3.694-16l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L101.598 32h2.403c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8h-6.096l-1.847 8h7.944c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H92.364l-1.846 8H104c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H86.824l-5.624 24.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L70.402 96h-5.58L59.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L48.402 96h-5.58L37.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L26.402 96h-2.403C19.59 96 16 92.418 16 88c0-4.41 3.581-8 8-8h6.096l1.847-8h-7.944C19.59 72 16 68.418 16 64c0-4.41 3.581-8 8-8h11.637l1.846-8H24C19.59 48 16 44.418 16 40c0-4.41 3.581-8 8-8h17.177l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L57.598 32h5.58L68.8 7.642c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L79.598 32h5.58zM53.904 48l-1.847 8h5.58l1.846-8h-5.579zm22.039 24l-1.847 8h-5.58l1.847-8h5.58zm-27.58 0l-1.846 8h5.579l1.847-8h-5.58z\"/></svg>" - }, - "$:/core/images/picture": { - "title": "$:/core/images/picture", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-picture tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M112 68.233v-48.23A4.001 4.001 0 00107.997 16H20.003A4.001 4.001 0 0016 20.003v38.31l9.241-14.593c2.8-4.422 9.023-5.008 12.6-1.186l18.247 20.613 13.687-6.407a8 8 0 018.903 1.492 264.97 264.97 0 002.92 2.739 249.44 249.44 0 006.798 6.066 166.5 166.5 0 002.106 1.778c2.108 1.747 3.967 3.188 5.482 4.237.748.518 1.383.92 2.044 1.33.444.117 1.046.144 1.809.05 1.873-.233 4.238-1.144 6.723-2.547a36.016 36.016 0 003.205-2.044c.558-.4.93-.686 1.07-.802.376-.31.765-.577 1.165-.806zM0 8.007A8.01 8.01 0 018.007 0h111.986A8.01 8.01 0 01128 8.007v111.986a8.01 8.01 0 01-8.007 8.007H8.007A8.01 8.01 0 010 119.993V8.007zM95 42a8 8 0 100-16 8 8 0 000 16zM32 76c15.859 4.83 20.035 7.244 20.035 12S32 95.471 32 102.347c0 6.876 1.285 4.99 1.285 9.653H68s-13.685-6.625-13.685-10.8c0-7.665 10.615-8.34 10.615-13.2 0-7.357-14.078-8.833-32.93-12z\"/></svg>" - }, - "$:/core/images/plugin-generic-language": { - "title": "$:/core/images/plugin-generic-language", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M61.207 68.137c-4.324 2.795-6.999 6.656-6.999 10.921 0 7.906 9.19 14.424 21.042 15.336 2.162 3.902 8.598 6.785 16.318 7.01-5.126-1.125-9.117-3.742-10.62-7.01C92.805 93.487 102 86.967 102 79.059c0-8.53-10.699-15.445-23.896-15.445-6.599 0-12.572 1.729-16.897 4.524zm12.794-14.158c-4.324 2.795-10.298 4.524-16.897 4.524-2.619 0-5.14-.272-7.497-.775-3.312 2.25-8.383 3.69-14.067 3.69l-.255-.002c4.119-.892 7.511-2.747 9.478-5.13-6.925-2.704-11.555-7.617-11.555-13.228 0-8.53 10.699-15.445 23.896-15.445C70.301 27.613 81 34.528 81 43.058c0 4.265-2.675 8.126-6.999 10.921zM64 0l54.56 32v64L64 128 9.44 96V32L64 0z\"/></svg>" - }, - "$:/core/images/plugin-generic-plugin": { - "title": "$:/core/images/plugin-generic-plugin", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M40.397 76.446V95.34h14.12l-.001-.005a6.912 6.912 0 005.364-11.593l.046-.023a6.912 6.912 0 119.979.526l.086.055a6.914 6.914 0 004.408 10.948l-.023.092h21.32V75.568l-.15.038a6.912 6.912 0 00-11.593-5.364l-.022-.046a6.912 6.912 0 11.526-9.979l.055-.086a6.914 6.914 0 0010.948-4.408c.079.018.158.038.236.059v-15.74h-21.32l.023-.094a6.914 6.914 0 01-4.408-10.947 10.23 10.23 0 00-.086-.055 6.912 6.912 0 10-9.979-.526l-.046.023a6.912 6.912 0 01-5.364 11.593l.001.005h-14.12v12.847A6.912 6.912 0 0129.5 59.843l-.054.086a6.912 6.912 0 10-.526 9.979l.023.046a6.912 6.912 0 0111.455 6.492zM64 0l54.56 32v64L64 128 9.44 96V32L64 0z\"/></svg>" - }, - "$:/core/images/plugin-generic-theme": { - "title": "$:/core/images/plugin-generic-theme", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M29.408 91.472L51.469 69.41l-.004-.005a2.22 2.22 0 01.004-3.146c.87-.87 2.281-.872 3.147-.005l9.465 9.464a2.22 2.22 0 01-.005 3.147c-.87.87-2.28.871-3.147.005l-.005-.005-22.061 22.062a6.686 6.686 0 11-9.455-9.455zM60.802 66.38c-2.436-2.704-4.465-5.091-5.817-6.869-6.855-9.014-10.313-4.268-14.226 0-3.913 4.268 1.03 7.726-2.683 10.741-3.713 3.015-3.484 4.06-9.752-1.455-6.267-5.516-6.7-7.034-3.823-10.181 2.877-3.147 5.281 1.808 11.159-3.785 5.877-5.593.94-10.55.94-10.55s12.237-25.014 28.588-23.167c16.351 1.848-6.186-2.392-11.792 17.226-2.4 8.4.447 6.42 4.998 9.968 1.394 1.086 6.03 4.401 11.794 8.685l20.677-20.676 1.615-4.766 7.84-4.689 3.151 3.152-4.688 7.84-4.766 1.615-20.224 20.223c12.663 9.547 28.312 22.146 28.312 26.709 0 7.217-3.071 11.526-9.535 9.164-4.693-1.715-18.768-15.192-28.753-25.897l-2.893 2.893-3.151-3.152 3.029-3.029zM63.953 0l54.56 32v64l-54.56 32-54.56-32V32l54.56-32z\"/></svg>" - }, - "$:/core/images/preview-closed": { - "title": "$:/core/images/preview-closed", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-preview-closed tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M.088 64a7.144 7.144 0 001.378 5.458C16.246 88.818 39.17 100.414 64 100.414c24.83 0 47.753-11.596 62.534-30.956A7.144 7.144 0 00127.912 64C110.582 78.416 88.304 87.086 64 87.086 39.696 87.086 17.418 78.416.088 64z\"/><rect width=\"4\" height=\"16\" x=\"62\" y=\"96\" rx=\"4\"/><rect width=\"4\" height=\"16\" x=\"78\" y=\"93\" rx=\"4\" transform=\"rotate(-5 80 101)\"/><rect width=\"4\" height=\"16\" x=\"46\" y=\"93\" rx=\"4\" transform=\"rotate(5 48 101)\"/><rect width=\"4\" height=\"16\" x=\"30\" y=\"88\" rx=\"4\" transform=\"rotate(10 32 96)\"/><rect width=\"4\" height=\"16\" x=\"94\" y=\"88\" rx=\"4\" transform=\"rotate(-10 96 96)\"/><rect width=\"4\" height=\"16\" x=\"110\" y=\"80\" rx=\"4\" transform=\"rotate(-20 112 88)\"/><rect width=\"4\" height=\"16\" x=\"14\" y=\"80\" rx=\"4\" transform=\"rotate(20 16 88)\"/></g></svg>" - }, - "$:/core/images/preview-open": { - "title": "$:/core/images/preview-open", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-preview-open tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M64.11 99.588c-24.83 0-47.754-11.596-62.534-30.957a7.148 7.148 0 010-8.675C16.356 40.596 39.28 29 64.11 29c24.83 0 47.753 11.596 62.534 30.956a7.148 7.148 0 010 8.675c-14.78 19.36-37.703 30.957-62.534 30.957zm46.104-32.007c1.44-1.524 1.44-3.638 0-5.162C99.326 50.9 82.439 44 64.147 44S28.968 50.9 18.08 62.42c-1.44 1.523-1.44 3.637 0 5.16C28.968 79.1 45.855 86 64.147 86s35.179-6.9 46.067-18.42z\"/><path d=\"M63.5 88C76.479 88 87 77.479 87 64.5S76.479 41 63.5 41 40 51.521 40 64.5 50.521 88 63.5 88z\"/></g></svg>" - }, - "$:/core/images/print-button": { - "title": "$:/core/images/print-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-print-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M112 71V30.5h-.032c-.035-2-.816-3.99-2.343-5.516L86.998 2.357A7.978 7.978 0 0081 .02V0H24a8 8 0 00-8 8v63h8V8h57v14.5c0 4.422 3.582 8 8 8h15V71h8z\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"36\" rx=\"4\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"52\" rx=\"4\"/><rect width=\"40\" height=\"8\" x=\"32\" y=\"20\" rx=\"4\"/><path d=\"M0 80.005C0 71.165 7.156 64 16 64h96c8.836 0 16 7.155 16 16.005v31.99c0 8.84-7.156 16.005-16 16.005H16c-8.836 0-16-7.155-16-16.005v-31.99zM104 96a8 8 0 100-16 8 8 0 000 16z\"/></g></svg>" - }, - "$:/core/images/quote": { - "title": "$:/core/images/quote", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-quote tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M51.219 117.713V62.199H27.427c0-8.891 1.683-16.401 5.047-22.53 3.365-6.127 9.613-10.754 18.745-13.878V2c-7.45.961-14.36 3.184-20.728 6.669-6.368 3.484-11.835 7.87-16.401 13.157C9.524 27.113 5.98 33.241 3.456 40.21.933 47.18-.21 54.63.03 62.56v55.153H51.22zm76.781 0V62.199h-23.791c0-8.891 1.682-16.401 5.046-22.53 3.365-6.127 9.613-10.754 18.745-13.878V2c-7.45.961-14.359 3.184-20.727 6.669-6.369 3.484-11.836 7.87-16.402 13.157-4.566 5.287-8.11 11.415-10.634 18.384-2.523 6.97-3.665 14.42-3.424 22.35v55.153H128z\"/></svg>" - }, - "$:/core/images/refresh-button": { - "title": "$:/core/images/refresh-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-refresh-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M106.369 39.433c10.16 20.879 6.57 46.764-10.771 64.106-21.87 21.87-57.327 21.87-79.196 0-21.87-21.87-21.87-57.326 0-79.196a8 8 0 1111.314 11.314c-15.621 15.62-15.621 40.947 0 56.568 15.62 15.621 40.947 15.621 56.568 0C97.72 78.79 99.6 58.175 89.924 42.73l-6.44 12.264a8 8 0 11-14.166-7.437L84.435 18.76a8 8 0 0110.838-3.345l28.873 15.345a8 8 0 11-7.51 14.129l-10.267-5.457zm-8.222-12.368c-.167-.19-.336-.38-.506-.57l.96-.296-.454.866z\"/></svg>" - }, - "$:/core/images/right-arrow": { - "title": "$:/core/images/right-arrow", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-right-arrow tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M99.069 64.173c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l50.382-50.382-50.382-50.382a7.92 7.92 0 010-11.195c3.086-3.085 8.104-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.316 5.595z\"/></svg>" - }, - "$:/core/images/rotate-left": { - "title": "$:/core/images/rotate-left", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-rotate-left tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"32\" height=\"80\" rx=\"8\"/><rect width=\"80\" height=\"32\" x=\"48\" y=\"96\" rx=\"8\"/><path d=\"M61.32 36.65c19.743 2.45 35.023 19.287 35.023 39.693a4 4 0 01-8 0c0-15.663-11.254-28.698-26.117-31.46l3.916 3.916a4 4 0 11-5.657 5.657L49.172 43.142a4 4 0 010-5.657l11.313-11.313a4 4 0 115.657 5.656l-4.821 4.822z\"/></g></svg>" - }, - "$:/core/images/save-button": { - "title": "$:/core/images/save-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-save-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M120.783 34.33c4.641 8.862 7.266 18.948 7.266 29.646 0 35.347-28.653 64-64 64-35.346 0-64-28.653-64-64 0-35.346 28.654-64 64-64 18.808 0 35.72 8.113 47.43 21.03l2.68-2.68c3.13-3.13 8.197-3.132 11.321-.008 3.118 3.118 3.121 8.193-.007 11.32l-4.69 4.691zm-12.058 12.058a47.876 47.876 0 013.324 17.588c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48c14.39 0 27.3 6.332 36.098 16.362L58.941 73.544 41.976 56.578c-3.127-3.127-8.201-3.123-11.32-.005-3.123 3.124-3.119 8.194.006 11.319l22.617 22.617a7.992 7.992 0 005.659 2.347c2.05 0 4.101-.783 5.667-2.349l44.12-44.12z\"/></svg>" - }, - "$:/core/images/size": { - "title": "$:/core/images/size", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-size tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M92.343 26l-9.171 9.172a4 4 0 105.656 5.656l16-16a4 4 0 000-5.656l-16-16a4 4 0 10-5.656 5.656L92.343 18H22a4 4 0 00-4 4v70.343l-9.172-9.171a4 4 0 10-5.656 5.656l16 16a4 4 0 005.656 0l16-16a4 4 0 10-5.656-5.656L26 92.343V22l-4 4h70.343zM112 52v64l4-4H52a4 4 0 100 8h64a4 4 0 004-4V52a4 4 0 10-8 0z\"/></svg>" - }, - "$:/core/images/spiral": { - "title": "$:/core/images/spiral", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-spiral tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M64.534 68.348c3.39 0 6.097-2.62 6.476-5.968l-4.755-.538 4.75.583c.377-3.07-1.194-6.054-3.89-7.78-2.757-1.773-6.34-2.01-9.566-.7-3.46 1.403-6.14 4.392-7.35 8.148l-.01.026c-1.3 4.08-.72 8.64 1.58 12.52 2.5 4.2 6.77 7.2 11.76 8.27 5.37 1.15 11.11-.05 15.83-3.31 5.04-3.51 8.46-9.02 9.45-15.3 1.05-6.7-.72-13.63-4.92-19.19l.02.02c-4.42-5.93-11.2-9.82-18.78-10.78-7.96-1.01-16.13 1.31-22.59 6.43-6.81 5.39-11.18 13.41-12.11 22.26-.98 9.27 1.87 18.65 7.93 26.02 6.32 7.69 15.6 12.56 25.74 13.48 10.54.96 21.15-2.42 29.45-9.4l.01-.01c8.58-7.25 13.94-17.78 14.86-29.21.94-11.84-2.96-23.69-10.86-32.9-8.19-9.5-19.95-15.36-32.69-16.27-13.16-.94-26.24 3.49-36.34 12.34l.01-.01c-10.41 9.08-16.78 22.1-17.68 36.15-.93 14.44 4.03 28.77 13.79 39.78 10.03 11.32 24.28 18.2 39.6 19.09 15.73.92 31.31-4.56 43.24-15.234 12.23-10.954 19.61-26.44 20.5-43.074a4.785 4.785 0 00-4.52-5.03 4.778 4.778 0 00-5.03 4.52c-.75 14.1-7 27.2-17.33 36.45-10.03 8.98-23.11 13.58-36.3 12.81-12.79-.75-24.67-6.48-33-15.89-8.07-9.11-12.17-20.94-11.41-32.827.74-11.52 5.942-22.15 14.43-29.54l.01-.01c8.18-7.17 18.74-10.75 29.35-9.998 10.21.726 19.6 5.41 26.11 12.96 6.24 7.273 9.32 16.61 8.573 25.894-.718 8.9-4.88 17.064-11.504 22.66l.01-.007c-6.36 5.342-14.44 7.92-22.425 7.19-7.604-.68-14.52-4.314-19.21-10.027-4.44-5.4-6.517-12.23-5.806-18.94.67-6.3 3.76-11.977 8.54-15.766 4.46-3.54 10.05-5.128 15.44-4.44 5.03.63 9.46 3.18 12.32 7.01l.02.024c2.65 3.5 3.75 7.814 3.1 11.92-.59 3.71-2.58 6.925-5.45 8.924-2.56 1.767-5.61 2.403-8.38 1.81-2.42-.516-4.42-1.92-5.53-3.79-.93-1.56-1.15-3.3-.69-4.75l-4.56-1.446L59.325 65c.36-1.12 1.068-1.905 1.84-2.22.25-.103.48-.14.668-.13.06.006.11.015.14.025.01 0 .01 0-.01-.01a1.047 1.047 0 01-.264-.332c-.15-.29-.23-.678-.18-1.11l-.005.04c.15-1.332 1.38-2.523 3.035-2.523-2.65 0-4.79 2.144-4.79 4.787s2.14 4.785 4.78 4.785z\"/></svg>" - }, - "$:/core/images/stamp": { - "title": "$:/core/images/stamp", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-stamp tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M49.733 64H16.01C11.584 64 8 67.583 8 72.003V97h112V72.003A8 8 0 00111.99 64H78.267A22.813 22.813 0 0175.5 53.077c0-6.475 2.687-12.324 7.009-16.497A22.818 22.818 0 0087 22.952C87 10.276 76.703 0 64 0S41 10.276 41 22.952c0 5.103 1.669 9.817 4.491 13.628 4.322 4.173 7.009 10.022 7.009 16.497 0 3.954-1.002 7.675-2.767 10.923zM8 104h112v8H8v-8z\"/></svg>" - }, - "$:/core/images/star-filled": { - "title": "$:/core/images/star-filled", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-star-filled tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M61.836 96.823l37.327 27.287c2.72 1.99 6.379-.69 5.343-3.912L90.29 75.988l-1.26 3.91 37.285-27.345c2.718-1.993 1.32-6.327-2.041-6.33l-46.113-.036 3.3 2.416L67.176 4.416c-1.04-3.221-5.563-3.221-6.604 0L46.29 48.603l3.3-2.416-46.113.036c-3.362.003-4.759 4.337-2.04 6.33L38.72 79.898l-1.26-3.91-14.216 44.21c-1.036 3.223 2.622 5.901 5.343 3.912l37.326-27.287h-4.078z\"/></svg>" - }, - "$:/core/images/storyview-classic": { - "title": "$:/core/images/storyview-classic", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-storyview-classic tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16C19.581 16 16 19.578 16 23.992v16.016C16 44.422 19.588 48 24 48h80c4.419 0 8-3.578 8-7.992V23.992c0-4.414-3.588-7.992-8-7.992H24zm0 48C19.581 64 16 67.59 16 72c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24zm0 32C19.581 96 16 99.59 16 104c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24z\"/></svg>" - }, - "$:/core/images/storyview-pop": { - "title": "$:/core/images/storyview-pop", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-storyview-pop tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16C19.581 16 16 19.578 16 23.992v16.016C16 44.422 19.588 48 24 48h80c4.419 0 8-3.578 8-7.992V23.992c0-4.414-3.588-7.992-8-7.992H24zm-7.99 40C11.587 56 8 59.578 8 63.992v16.016C8 84.422 11.584 88 16.01 88h95.98c4.424 0 8.01-3.578 8.01-7.992V63.992c0-4.414-3.584-7.992-8.01-7.992H16.01zM24 96C19.581 96 16 99.59 16 104c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24zm0-32C19.581 64 16 67.59 16 72c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24z\"/></svg>" - }, - "$:/core/images/storyview-zoomin": { - "title": "$:/core/images/storyview-zoomin", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-storyview-zoomin tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16A8 8 0 0016 24.009V71.99C16 76.414 19.588 80 24 80h80a8 8 0 008-8.009V24.01c0-4.423-3.588-8.009-8-8.009H24z\"/></svg>" - }, - "$:/core/images/strikethrough": { - "title": "$:/core/images/strikethrough", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-strikethrough tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M92.794 38.726h15.422c-.229-6.74-1.514-12.538-3.856-17.393-2.342-4.855-5.54-8.881-9.596-12.08-4.055-3.199-8.767-5.54-14.136-7.025C75.258.743 69.433 0 63.15 0a62.76 62.76 0 00-16.364 2.142C41.474 3.57 36.733 5.74 32.564 8.653c-4.17 2.913-7.511 6.626-10.025 11.138-2.513 4.512-3.77 9.853-3.77 16.022 0 5.597 1.115 10.252 3.342 13.965 2.228 3.712 5.198 6.74 8.91 9.081 3.713 2.342 7.911 4.227 12.595 5.655a194.641 194.641 0 0014.308 3.77c4.855 1.085 9.624 2.142 14.308 3.17 4.683 1.028 8.881 2.37 12.594 4.027 3.713 1.656 6.683 3.798 8.91 6.425 2.228 2.628 3.342 6.055 3.342 10.281 0 4.456-.914 8.111-2.742 10.967a19.953 19.953 0 01-7.197 6.768c-2.97 1.657-6.311 2.828-10.024 3.513a60.771 60.771 0 01-11.052 1.028c-4.57 0-9.025-.571-13.366-1.713-4.34-1.143-8.139-2.913-11.394-5.312-3.256-2.4-5.884-5.455-7.883-9.168-1.999-3.712-2.998-8.139-2.998-13.28H15c0 7.426 1.342 13.852 4.027 19.278 2.684 5.426 6.34 9.881 10.966 13.365 4.627 3.484 9.996 6.083 16.107 7.797 6.112 1.713 12.595 2.57 19.449 2.57 5.597 0 11.223-.657 16.878-1.97 5.655-1.314 10.767-3.428 15.336-6.34 4.57-2.914 8.31-6.683 11.224-11.31 2.913-4.626 4.37-10.195 4.37-16.707 0-6.054-1.115-11.08-3.342-15.079-2.228-3.998-5.198-7.31-8.91-9.938-3.713-2.627-7.911-4.712-12.595-6.254a170.83 170.83 0 00-14.308-4.027 549.669 549.669 0 00-14.308-3.17c-4.683-.971-8.881-2.2-12.594-3.684-3.713-1.485-6.683-3.399-8.91-5.74-2.228-2.342-3.342-5.398-3.342-9.168 0-3.998.771-7.34 2.313-10.024 1.543-2.685 3.599-4.826 6.17-6.426 2.57-1.599 5.51-2.741 8.824-3.427a49.767 49.767 0 0110.11-1.028c8.453 0 15.393 1.97 20.819 5.912 5.426 3.94 8.596 10.31 9.51 19.106z\"/><path d=\"M5 54h118v16H5z\"/></g></svg>" - }, - "$:/core/images/subscript": { - "title": "$:/core/images/subscript", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-subscript tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M2.272 16h19.91l21.649 33.675L66.414 16h18.708L53.585 61.969l33.809 49.443H67.082L43.296 74.93l-24.187 36.48H0L33.808 61.97 2.272 16zM127.91 128.412H85.328c.059-5.168 1.306-9.681 3.741-13.542 2.435-3.86 5.761-7.216 9.978-10.066a112.388 112.388 0 016.325-4.321 50.09 50.09 0 006.058-4.499c1.841-1.603 3.356-3.34 4.543-5.211 1.188-1.871 1.812-4.024 1.871-6.46 0-1.128-.133-2.33-.4-3.607a9.545 9.545 0 00-1.56-3.564c-.772-1.098-1.84-2.019-3.207-2.761-1.366-.743-3.148-1.114-5.345-1.114-2.02 0-3.697.4-5.033 1.203-1.337.801-2.406 1.9-3.208 3.296-.801 1.396-1.395 3.044-1.781 4.944-.386 1.9-.609 3.95-.668 6.147H86.486c0-3.445.46-6.637 1.38-9.577.921-2.94 2.302-5.478 4.143-7.617 1.841-2.138 4.083-3.815 6.726-5.033 2.643-1.217 5.716-1.826 9.22-1.826 3.802 0 6.979.623 9.533 1.87 2.554 1.248 4.617 2.822 6.191 4.722 1.574 1.9 2.688 3.965 3.341 6.192.653 2.227.98 4.35.98 6.37 0 2.494-.386 4.75-1.158 6.77a21.803 21.803 0 01-3.118 5.568 31.516 31.516 0 01-4.454 4.677 66.788 66.788 0 01-5.167 4.009 139.198 139.198 0 01-5.346 3.563 79.237 79.237 0 00-4.944 3.386c-1.514 1.128-2.836 2.3-3.964 3.518-1.129 1.218-1.9 2.51-2.317 3.876h30.379v9.087z\"/></svg>" - }, - "$:/core/images/superscript": { - "title": "$:/core/images/superscript", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-superscript tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M2.272 16h19.91l21.649 33.675L66.414 16h18.708L53.585 61.969l33.809 49.443H67.082L43.296 74.93l-24.187 36.48H0L33.808 61.97 2.272 16zM127.91 63.412H85.328c.059-5.168 1.306-9.681 3.741-13.542 2.435-3.86 5.761-7.216 9.978-10.066a112.388 112.388 0 016.325-4.321 50.09 50.09 0 006.058-4.499c1.841-1.603 3.356-3.34 4.543-5.211 1.188-1.871 1.812-4.024 1.871-6.46 0-1.128-.133-2.33-.4-3.607a9.545 9.545 0 00-1.56-3.564c-.772-1.098-1.84-2.019-3.207-2.761-1.366-.743-3.148-1.114-5.345-1.114-2.02 0-3.697.4-5.033 1.203-1.337.801-2.406 1.9-3.208 3.296-.801 1.396-1.395 3.044-1.781 4.944-.386 1.9-.609 3.95-.668 6.147H86.486c0-3.445.46-6.637 1.38-9.577.921-2.94 2.302-5.478 4.143-7.617 1.841-2.138 4.083-3.815 6.726-5.033 2.643-1.217 5.716-1.826 9.22-1.826 3.802 0 6.979.623 9.533 1.87 2.554 1.248 4.617 2.822 6.191 4.722 1.574 1.9 2.688 3.965 3.341 6.192.653 2.227.98 4.35.98 6.37 0 2.494-.386 4.75-1.158 6.77a21.803 21.803 0 01-3.118 5.568 31.516 31.516 0 01-4.454 4.677 66.788 66.788 0 01-5.167 4.009 139.198 139.198 0 01-5.346 3.563 79.237 79.237 0 00-4.944 3.386c-1.514 1.128-2.836 2.3-3.964 3.518-1.129 1.218-1.9 2.51-2.317 3.876h30.379v9.087z\"/></svg>" - }, - "$:/core/images/tag-button": { - "title": "$:/core/images/tag-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-tag-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M18.164 47.66l.004 4.105c.003 3.823 2.19 9.097 4.885 11.792l61.85 61.85c2.697 2.697 7.068 2.69 9.769-.01L125.767 94.3a6.903 6.903 0 00.01-9.77L63.928 22.683c-2.697-2.697-7.976-4.88-11.796-4.881l-27.076-.007a6.902 6.902 0 00-6.91 6.91l.008 9.96.287.033c3.73.411 8.489-.044 13.365-1.153a9.702 9.702 0 0111.14-3.662l.291-.13.128.285a9.7 9.7 0 013.3 2.17c3.796 3.796 3.801 9.945.012 13.734-3.618 3.618-9.386 3.777-13.204.482-5.365 1.122-10.674 1.596-15.309 1.237z\"/><path d=\"M47.633 39.532l.023.051c-9.689 4.356-21.584 6.799-30.396 5.828C5.273 44.089-1.028 36.43 2.443 24.078 5.562 12.976 14.3 4.361 24.047 1.548c10.68-3.083 19.749 1.968 19.749 13.225h-8.623c0-4.859-3.078-6.573-8.735-4.94-6.91 1.995-13.392 8.383-15.694 16.577-1.915 6.818.417 9.653 7.46 10.43 7.126.785 17.531-1.352 25.917-5.121l.027.06.036-.017c1.76-.758 6.266 6.549 3.524 7.74a2.8 2.8 0 01-.075.03z\"/></g></svg>" - }, - "$:/core/images/theme-button": { - "title": "$:/core/images/theme-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-theme-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M55.854 66.945a122.626 122.626 0 01-3.9-4.819c-11.064-14.548-16.645-6.888-22.96 0-6.315 6.888 1.664 12.47-4.33 17.335-5.993 4.866-5.623 6.552-15.737-2.35-10.115-8.9-10.815-11.351-6.172-16.43 4.644-5.08 8.524 2.918 18.01-6.108 9.485-9.026 1.517-17.026 1.517-17.026S42.03-2.824 68.42.157c26.39 2.982-9.984-3.86-19.031 27.801-3.874 13.556.72 10.362 8.066 16.087 1.707 1.33 6.428 4.732 12.671 9.318-6.129 5.879-11.157 10.669-14.273 13.582zm11.641 12.947c16.013 17.036 37.742 37.726 45.117 40.42 10.432 3.813 15.388-3.141 15.388-14.79 0-7.151-23.83-26.542-43.924-41.769-7.408 7.156-13.376 12.953-16.58 16.139z\"/><path d=\"M11.069 109.828L46.31 74.587a3.56 3.56 0 115.037-5.032l15.098 15.098a3.56 3.56 0 11-5.032 5.037l-35.24 35.241c-4.171 4.17-10.933 4.17-15.104 0-4.17-4.17-4.17-10.933 0-15.103zM124.344 6.622l5.034 5.034-7.49 12.524-7.613 2.58L61.413 79.62l-5.034-5.034 52.861-52.862 2.58-7.614 12.524-7.49z\"/></g></svg>" - }, - "$:/core/images/timestamp-off": { - "title": "$:/core/images/timestamp-off", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-timestamp-off tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10a5 5 0 010-10H66.69a5 5 0 015 5c.006 2.757-2.238 5-5 5H49.705z\"/><path d=\"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\"/></g></svg>" - }, - "$:/core/images/timestamp-on": { - "title": "$:/core/images/timestamp-on", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-timestamp-on tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10a5 5 0 010-10H66.69a5 5 0 015 5c.006 2.757-2.238 5-5 5H49.705z\"/><path d=\"M13.41 27.178a5.005 5.005 0 01-7.045-.613 5.008 5.008 0 01.616-7.047l9.95-8.348a5 5 0 016.429 7.661l-9.95 8.348zm89.573 0a5.005 5.005 0 007.045-.613 5.008 5.008 0 00-.616-7.047l-9.95-8.348a5 5 0 00-6.428 7.661l9.95 8.348zM65.097 71.072c0 3.826-3.09 6.928-6.897 6.928-3.804.006-6.9-3.102-6.903-6.928 0 0 4.76-39.072 6.903-39.072s6.897 39.072 6.897 39.072z\"/></g></svg>" - }, - "$:/core/images/tip": { - "title": "$:/core/images/tip", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-tip tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M64 128.242c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64-35.346 0-64 28.654-64 64 0 35.346 28.654 64 64 64zm11.936-36.789c-.624 4.129-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349C54.33 94.05 58.824 95.82 64 95.82c5.175 0 9.67-1.769 11.936-4.366zm0 4.492c-.624 4.13-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zm0 4.456c-.624 4.129-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zm0 4.492c-.624 4.13-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zM64.3 24.242c11.618 0 23.699 7.82 23.699 24.2S75.92 71.754 75.92 83.576c0 5.873-5.868 9.26-11.92 9.26s-12.027-3.006-12.027-9.26C51.973 71.147 40 65.47 40 48.442s12.683-24.2 24.301-24.2z\"/></svg>" - }, - "$:/core/images/transcludify": { - "title": "$:/core/images/transcludify", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-transcludify-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M0 59.482c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 002.75-.932 6.762 6.762 0 002.306-1.907c.651-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 00-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 00-2.75-1.02C1.36 67.377.591 67.288 0 67.288v-7.806zm24.66 0c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 002.75-.932 6.762 6.762 0 002.306-1.907c.65-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 00-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 00-2.75-1.02c-.946-.177-1.715-.266-2.306-.266v-7.806zm43.965-3.538L80.6 52.041l2.306 7.097-12.063 3.903 7.628 10.378-6.12 4.435-7.63-10.467-7.45 10.201-5.943-4.524 7.628-10.023-12.152-4.17 2.306-7.096 12.064 4.17V43.347h7.451v12.596zm34.425 11.344c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 00-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 00.71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 00-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 002.262 2.084 8.868 8.868 0 002.75 1.02c.946.177 1.745.266 2.395.266v7.806zm24.66 0c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 00-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 00.71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 00-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 002.262 2.084 8.868 8.868 0 002.75 1.02c.946.177 1.745.266 2.395.266v7.806z\"/></svg>" - }, - "$:/core/images/twitter": { - "title": "$:/core/images/twitter", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-twitter tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M41.626 115.803A73.376 73.376 0 012 104.235c2.022.238 4.08.36 6.166.36 12.111 0 23.258-4.117 32.105-11.023-11.312-.208-20.859-7.653-24.148-17.883a25.98 25.98 0 0011.674-.441C15.971 72.881 7.061 62.474 7.061 49.997c0-.108 0-.216.002-.323a25.824 25.824 0 0011.709 3.22c-6.936-4.617-11.5-12.5-11.5-21.433 0-4.719 1.274-9.142 3.5-12.945 12.75 15.579 31.797 25.83 53.281 26.904-.44-1.884-.67-3.85-.67-5.868 0-14.22 11.575-25.75 25.852-25.75a25.865 25.865 0 0118.869 8.132 51.892 51.892 0 0016.415-6.248c-1.93 6.012-6.029 11.059-11.366 14.246A51.844 51.844 0 00128 25.878a52.428 52.428 0 01-12.9 13.33c.05 1.104.075 2.214.075 3.33 0 34.028-26 73.265-73.549 73.265\"/></svg>" - }, - "$:/core/images/underline": { - "title": "$:/core/images/underline", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-underline tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M7 117.421h114.248V128H7v-10.579zm97.871-18.525V0h-16.26v55.856c0 4.463-.605 8.576-1.816 12.338-1.212 3.762-3.03 7.046-5.452 9.851-2.423 2.806-5.452 4.974-9.086 6.504-3.635 1.53-7.939 2.296-12.912 2.296-6.25 0-11.159-1.786-14.73-5.356-3.57-3.571-5.356-8.417-5.356-14.538V0H23v65.038c0 5.356.542 10.234 1.626 14.633 1.084 4.4 2.965 8.194 5.643 11.382 2.678 3.188 6.185 5.643 10.52 7.365 4.337 1.721 9.756 2.582 16.26 2.582 7.27 0 13.582-1.435 18.938-4.304 5.356-2.87 9.755-7.365 13.199-13.486h.382v15.686h15.303z\"/></svg>" - }, - "$:/core/images/unfold-all-button": { - "title": "$:/core/images/unfold-all-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-unfold-all tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"128\" height=\"16\" rx=\"8\"/><rect width=\"128\" height=\"16\" y=\"64\" rx=\"8\"/><path d=\"M63.945 60.624c-2.05 0-4.101-.78-5.666-2.345L35.662 35.662c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L63.94 41.314l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.603 58.279a7.986 7.986 0 01-5.663 2.346zM64.004 124.565c-2.05 0-4.102-.78-5.666-2.345L35.721 99.603c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.191-3.122 11.318.005L64 105.255l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.662 122.22a7.986 7.986 0 01-5.663 2.346z\"/></g></svg>" - }, - "$:/core/images/unfold-button": { - "title": "$:/core/images/unfold-button", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-unfold tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"128\" height=\"16\" rx=\"8\"/><path d=\"M63.945 63.624c-2.05 0-4.101-.78-5.666-2.345L35.662 38.662c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L63.94 44.314l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.603 61.279a7.986 7.986 0 01-5.663 2.346zM64.004 105.682c-2.05.001-4.102-.78-5.666-2.344L35.721 80.721c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.191-3.122 11.318.005L64 86.373l16.966-16.966c3.124-3.125 8.194-3.13 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319l-22.617 22.617a7.986 7.986 0 01-5.663 2.346z\"/></g></svg>" - }, - "$:/core/images/unlocked-padlock": { - "title": "$:/core/images/unlocked-padlock", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-unlocked-padlock tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M48.627 64H105v32.01C105 113.674 90.674 128 73.001 128H56C38.318 128 24 113.677 24 96.01V64h6.136c-10.455-12.651-27.364-35.788-4.3-55.142 24.636-20.672 45.835 4.353 55.777 16.201 9.943 11.85-2.676 22.437-12.457 9.892-9.78-12.545-21.167-24.146-33.207-14.043-12.041 10.104-1.757 22.36 8.813 34.958 2.467 2.94 3.641 5.732 3.865 8.134zm19.105 28.364A8.503 8.503 0 0064.5 76a8.5 8.5 0 00-3.498 16.25l-5.095 22.77H72.8l-5.07-22.656z\"/></svg>" - }, - "$:/core/images/up-arrow": { - "title": "$:/core/images/up-arrow", - "created": "20150316000544368", - "modified": "20150316000831867", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-up-arrow tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M63.892.281c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.104 3.092-11.196 0L63.894 19.393 13.513 69.774a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l55.98-55.98A7.892 7.892 0 0163.893.28z\"/></svg>" - }, - "$:/core/images/video": { - "title": "$:/core/images/video", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-video tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M64 12c-34.91 0-55.273 2.917-58.182 5.833C2.91 20.75 0 41.167 0 64.5c0 23.333 2.91 43.75 5.818 46.667C8.728 114.083 29.091 117 64 117c34.91 0 55.273-2.917 58.182-5.833C125.09 108.25 128 87.833 128 64.5c0-23.333-2.91-43.75-5.818-46.667C119.272 14.917 98.909 12 64 12zm-9.084 32.618c-3.813-2.542-6.905-.879-6.905 3.698v31.368c0 4.585 3.099 6.235 6.905 3.698l22.168-14.779c3.813-2.542 3.806-6.669 0-9.206L54.916 44.618z\"/></svg>" - }, - "$:/core/images/warning": { - "title": "$:/core/images/warning", - "tags": "$:/tags/Image", - "text": "<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-warning tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M57.072 11c3.079-5.333 10.777-5.333 13.856 0l55.426 96c3.079 5.333-.77 12-6.928 12H8.574c-6.158 0-10.007-6.667-6.928-12l55.426-96zM64 37c-4.418 0-8 3.582-8 7.994v28.012C56 77.421 59.59 81 64 81c4.418 0 8-3.582 8-7.994V44.994C72 40.579 68.41 37 64 37zm0 67a8 8 0 100-16 8 8 0 000 16z\"/></svg>" - }, - "$:/language/Buttons/AdvancedSearch/Caption": { - "title": "$:/language/Buttons/AdvancedSearch/Caption", - "text": "advanced search" - }, - "$:/language/Buttons/AdvancedSearch/Hint": { - "title": "$:/language/Buttons/AdvancedSearch/Hint", - "text": "Advanced search" - }, - "$:/language/Buttons/Cancel/Caption": { - "title": "$:/language/Buttons/Cancel/Caption", - "text": "cancel" - }, - "$:/language/Buttons/Cancel/Hint": { - "title": "$:/language/Buttons/Cancel/Hint", - "text": "Discard changes to this tiddler" - }, - "$:/language/Buttons/Clone/Caption": { - "title": "$:/language/Buttons/Clone/Caption", - "text": "clone" - }, - "$:/language/Buttons/Clone/Hint": { - "title": "$:/language/Buttons/Clone/Hint", - "text": "Clone this tiddler" - }, - "$:/language/Buttons/Close/Caption": { - "title": "$:/language/Buttons/Close/Caption", - "text": "close" - }, - "$:/language/Buttons/Close/Hint": { - "title": "$:/language/Buttons/Close/Hint", - "text": "Close this tiddler" - }, - "$:/language/Buttons/CloseAll/Caption": { - "title": "$:/language/Buttons/CloseAll/Caption", - "text": "close all" - }, - "$:/language/Buttons/CloseAll/Hint": { - "title": "$:/language/Buttons/CloseAll/Hint", - "text": "Close all tiddlers" - }, - "$:/language/Buttons/CloseOthers/Caption": { - "title": "$:/language/Buttons/CloseOthers/Caption", - "text": "close others" - }, - "$:/language/Buttons/CloseOthers/Hint": { - "title": "$:/language/Buttons/CloseOthers/Hint", - "text": "Close other tiddlers" - }, - "$:/language/Buttons/ControlPanel/Caption": { - "title": "$:/language/Buttons/ControlPanel/Caption", - "text": "control panel" - }, - "$:/language/Buttons/ControlPanel/Hint": { - "title": "$:/language/Buttons/ControlPanel/Hint", - "text": "Open control panel" - }, - "$:/language/Buttons/CopyToClipboard/Caption": { - "title": "$:/language/Buttons/CopyToClipboard/Caption", - "text": "copy to clipboard" - }, - "$:/language/Buttons/CopyToClipboard/Hint": { - "title": "$:/language/Buttons/CopyToClipboard/Hint", - "text": "Copy this text to the clipboard" - }, - "$:/language/Buttons/Delete/Caption": { - "title": "$:/language/Buttons/Delete/Caption", - "text": "delete" - }, - "$:/language/Buttons/Delete/Hint": { - "title": "$:/language/Buttons/Delete/Hint", - "text": "Delete this tiddler" - }, - "$:/language/Buttons/Edit/Caption": { - "title": "$:/language/Buttons/Edit/Caption", - "text": "edit" - }, - "$:/language/Buttons/Edit/Hint": { - "title": "$:/language/Buttons/Edit/Hint", - "text": "Edit this tiddler" - }, - "$:/language/Buttons/Encryption/Caption": { - "title": "$:/language/Buttons/Encryption/Caption", - "text": "encryption" - }, - "$:/language/Buttons/Encryption/Hint": { - "title": "$:/language/Buttons/Encryption/Hint", - "text": "Set or clear a password for saving this wiki" - }, - "$:/language/Buttons/Encryption/ClearPassword/Caption": { - "title": "$:/language/Buttons/Encryption/ClearPassword/Caption", - "text": "clear password" - }, - "$:/language/Buttons/Encryption/ClearPassword/Hint": { - "title": "$:/language/Buttons/Encryption/ClearPassword/Hint", - "text": "Clear the password and save this wiki without encryption" - }, - "$:/language/Buttons/Encryption/SetPassword/Caption": { - "title": "$:/language/Buttons/Encryption/SetPassword/Caption", - "text": "set password" - }, - "$:/language/Buttons/Encryption/SetPassword/Hint": { - "title": "$:/language/Buttons/Encryption/SetPassword/Hint", - "text": "Set a password for saving this wiki with encryption" - }, - "$:/language/Buttons/ExportPage/Caption": { - "title": "$:/language/Buttons/ExportPage/Caption", - "text": "export all" - }, - "$:/language/Buttons/ExportPage/Hint": { - "title": "$:/language/Buttons/ExportPage/Hint", - "text": "Export all tiddlers" - }, - "$:/language/Buttons/ExportTiddler/Caption": { - "title": "$:/language/Buttons/ExportTiddler/Caption", - "text": "export tiddler" - }, - "$:/language/Buttons/ExportTiddler/Hint": { - "title": "$:/language/Buttons/ExportTiddler/Hint", - "text": "Export tiddler" - }, - "$:/language/Buttons/ExportTiddlers/Caption": { - "title": "$:/language/Buttons/ExportTiddlers/Caption", - "text": "export tiddlers" - }, - "$:/language/Buttons/ExportTiddlers/Hint": { - "title": "$:/language/Buttons/ExportTiddlers/Hint", - "text": "Export tiddlers" - }, - "$:/language/Buttons/SidebarSearch/Hint": { - "title": "$:/language/Buttons/SidebarSearch/Hint", - "text": "Select the sidebar search field" - }, - "$:/language/Buttons/Fold/Caption": { - "title": "$:/language/Buttons/Fold/Caption", - "text": "fold tiddler" - }, - "$:/language/Buttons/Fold/Hint": { - "title": "$:/language/Buttons/Fold/Hint", - "text": "Fold the body of this tiddler" - }, - "$:/language/Buttons/Fold/FoldBar/Caption": { - "title": "$:/language/Buttons/Fold/FoldBar/Caption", - "text": "fold-bar" - }, - "$:/language/Buttons/Fold/FoldBar/Hint": { - "title": "$:/language/Buttons/Fold/FoldBar/Hint", - "text": "Optional bars to fold and unfold tiddlers" - }, - "$:/language/Buttons/Unfold/Caption": { - "title": "$:/language/Buttons/Unfold/Caption", - "text": "unfold tiddler" - }, - "$:/language/Buttons/Unfold/Hint": { - "title": "$:/language/Buttons/Unfold/Hint", - "text": "Unfold the body of this tiddler" - }, - "$:/language/Buttons/FoldOthers/Caption": { - "title": "$:/language/Buttons/FoldOthers/Caption", - "text": "fold other tiddlers" - }, - "$:/language/Buttons/FoldOthers/Hint": { - "title": "$:/language/Buttons/FoldOthers/Hint", - "text": "Fold the bodies of other opened tiddlers" - }, - "$:/language/Buttons/FoldAll/Caption": { - "title": "$:/language/Buttons/FoldAll/Caption", - "text": "fold all tiddlers" - }, - "$:/language/Buttons/FoldAll/Hint": { - "title": "$:/language/Buttons/FoldAll/Hint", - "text": "Fold the bodies of all opened tiddlers" - }, - "$:/language/Buttons/UnfoldAll/Caption": { - "title": "$:/language/Buttons/UnfoldAll/Caption", - "text": "unfold all tiddlers" - }, - "$:/language/Buttons/UnfoldAll/Hint": { - "title": "$:/language/Buttons/UnfoldAll/Hint", - "text": "Unfold the bodies of all opened tiddlers" - }, - "$:/language/Buttons/FullScreen/Caption": { - "title": "$:/language/Buttons/FullScreen/Caption", - "text": "full-screen" - }, - "$:/language/Buttons/FullScreen/Hint": { - "title": "$:/language/Buttons/FullScreen/Hint", - "text": "Enter or leave full-screen mode" - }, - "$:/language/Buttons/Help/Caption": { - "title": "$:/language/Buttons/Help/Caption", - "text": "help" - }, - "$:/language/Buttons/Help/Hint": { - "title": "$:/language/Buttons/Help/Hint", - "text": "Show help panel" - }, - "$:/language/Buttons/Import/Caption": { - "title": "$:/language/Buttons/Import/Caption", - "text": "import" - }, - "$:/language/Buttons/Import/Hint": { - "title": "$:/language/Buttons/Import/Hint", - "text": "Import many types of file including text, image, TiddlyWiki or JSON" - }, - "$:/language/Buttons/Info/Caption": { - "title": "$:/language/Buttons/Info/Caption", - "text": "info" - }, - "$:/language/Buttons/Info/Hint": { - "title": "$:/language/Buttons/Info/Hint", - "text": "Show information for this tiddler" - }, - "$:/language/Buttons/Home/Caption": { - "title": "$:/language/Buttons/Home/Caption", - "text": "home" - }, - "$:/language/Buttons/Home/Hint": { - "title": "$:/language/Buttons/Home/Hint", - "text": "Open the default tiddlers" - }, - "$:/language/Buttons/Language/Caption": { - "title": "$:/language/Buttons/Language/Caption", - "text": "language" - }, - "$:/language/Buttons/Language/Hint": { - "title": "$:/language/Buttons/Language/Hint", - "text": "Choose the user interface language" - }, - "$:/language/Buttons/Manager/Caption": { - "title": "$:/language/Buttons/Manager/Caption", - "text": "tiddler manager" - }, - "$:/language/Buttons/Manager/Hint": { - "title": "$:/language/Buttons/Manager/Hint", - "text": "Open tiddler manager" - }, - "$:/language/Buttons/More/Caption": { - "title": "$:/language/Buttons/More/Caption", - "text": "more" - }, - "$:/language/Buttons/More/Hint": { - "title": "$:/language/Buttons/More/Hint", - "text": "More actions" - }, - "$:/language/Buttons/NewHere/Caption": { - "title": "$:/language/Buttons/NewHere/Caption", - "text": "new here" - }, - "$:/language/Buttons/NewHere/Hint": { - "title": "$:/language/Buttons/NewHere/Hint", - "text": "Create a new tiddler tagged with this one" - }, - "$:/language/Buttons/NewJournal/Caption": { - "title": "$:/language/Buttons/NewJournal/Caption", - "text": "new journal" - }, - "$:/language/Buttons/NewJournal/Hint": { - "title": "$:/language/Buttons/NewJournal/Hint", - "text": "Create a new journal tiddler" - }, - "$:/language/Buttons/NewJournalHere/Caption": { - "title": "$:/language/Buttons/NewJournalHere/Caption", - "text": "new journal here" - }, - "$:/language/Buttons/NewJournalHere/Hint": { - "title": "$:/language/Buttons/NewJournalHere/Hint", - "text": "Create a new journal tiddler tagged with this one" - }, - "$:/language/Buttons/NewImage/Caption": { - "title": "$:/language/Buttons/NewImage/Caption", - "text": "new image" - }, - "$:/language/Buttons/NewImage/Hint": { - "title": "$:/language/Buttons/NewImage/Hint", - "text": "Create a new image tiddler" - }, - "$:/language/Buttons/NewMarkdown/Caption": { - "title": "$:/language/Buttons/NewMarkdown/Caption", - "text": "new Markdown tiddler" - }, - "$:/language/Buttons/NewMarkdown/Hint": { - "title": "$:/language/Buttons/NewMarkdown/Hint", - "text": "Create a new Markdown tiddler" - }, - "$:/language/Buttons/NewTiddler/Caption": { - "title": "$:/language/Buttons/NewTiddler/Caption", - "text": "new tiddler" - }, - "$:/language/Buttons/NewTiddler/Hint": { - "title": "$:/language/Buttons/NewTiddler/Hint", - "text": "Create a new tiddler" - }, - "$:/language/Buttons/OpenWindow/Caption": { - "title": "$:/language/Buttons/OpenWindow/Caption", - "text": "open in new window" - }, - "$:/language/Buttons/OpenWindow/Hint": { - "title": "$:/language/Buttons/OpenWindow/Hint", - "text": "Open tiddler in new window" - }, - "$:/language/Buttons/Palette/Caption": { - "title": "$:/language/Buttons/Palette/Caption", - "text": "palette" - }, - "$:/language/Buttons/Palette/Hint": { - "title": "$:/language/Buttons/Palette/Hint", - "text": "Choose the colour palette" - }, - "$:/language/Buttons/Permalink/Caption": { - "title": "$:/language/Buttons/Permalink/Caption", - "text": "permalink" - }, - "$:/language/Buttons/Permalink/Hint": { - "title": "$:/language/Buttons/Permalink/Hint", - "text": "Set browser address bar to a direct link to this tiddler" - }, - "$:/language/Buttons/Permaview/Caption": { - "title": "$:/language/Buttons/Permaview/Caption", - "text": "permaview" - }, - "$:/language/Buttons/Permaview/Hint": { - "title": "$:/language/Buttons/Permaview/Hint", - "text": "Set browser address bar to a direct link to all the tiddlers in this story" - }, - "$:/language/Buttons/Print/Caption": { - "title": "$:/language/Buttons/Print/Caption", - "text": "print page" - }, - "$:/language/Buttons/Print/Hint": { - "title": "$:/language/Buttons/Print/Hint", - "text": "Print the current page" - }, - "$:/language/Buttons/Refresh/Caption": { - "title": "$:/language/Buttons/Refresh/Caption", - "text": "refresh" - }, - "$:/language/Buttons/Refresh/Hint": { - "title": "$:/language/Buttons/Refresh/Hint", - "text": "Perform a full refresh of the wiki" - }, - "$:/language/Buttons/Save/Caption": { - "title": "$:/language/Buttons/Save/Caption", - "text": "ok" - }, - "$:/language/Buttons/Save/Hint": { - "title": "$:/language/Buttons/Save/Hint", - "text": "Confirm changes to this tiddler" - }, - "$:/language/Buttons/SaveWiki/Caption": { - "title": "$:/language/Buttons/SaveWiki/Caption", - "text": "save changes" - }, - "$:/language/Buttons/SaveWiki/Hint": { - "title": "$:/language/Buttons/SaveWiki/Hint", - "text": "Save changes" - }, - "$:/language/Buttons/StoryView/Caption": { - "title": "$:/language/Buttons/StoryView/Caption", - "text": "storyview" - }, - "$:/language/Buttons/StoryView/Hint": { - "title": "$:/language/Buttons/StoryView/Hint", - "text": "Choose the story visualisation" - }, - "$:/language/Buttons/HideSideBar/Caption": { - "title": "$:/language/Buttons/HideSideBar/Caption", - "text": "hide sidebar" - }, - "$:/language/Buttons/HideSideBar/Hint": { - "title": "$:/language/Buttons/HideSideBar/Hint", - "text": "Hide sidebar" - }, - "$:/language/Buttons/ShowSideBar/Caption": { - "title": "$:/language/Buttons/ShowSideBar/Caption", - "text": "show sidebar" - }, - "$:/language/Buttons/ShowSideBar/Hint": { - "title": "$:/language/Buttons/ShowSideBar/Hint", - "text": "Show sidebar" - }, - "$:/language/Buttons/TagManager/Caption": { - "title": "$:/language/Buttons/TagManager/Caption", - "text": "tag manager" - }, - "$:/language/Buttons/TagManager/Hint": { - "title": "$:/language/Buttons/TagManager/Hint", - "text": "Open tag manager" - }, - "$:/language/Buttons/Timestamp/Caption": { - "title": "$:/language/Buttons/Timestamp/Caption", - "text": "timestamps" - }, - "$:/language/Buttons/Timestamp/Hint": { - "title": "$:/language/Buttons/Timestamp/Hint", - "text": "Choose whether modifications update timestamps" - }, - "$:/language/Buttons/Timestamp/On/Caption": { - "title": "$:/language/Buttons/Timestamp/On/Caption", - "text": "timestamps are on" - }, - "$:/language/Buttons/Timestamp/On/Hint": { - "title": "$:/language/Buttons/Timestamp/On/Hint", - "text": "Update timestamps when tiddlers are modified" - }, - "$:/language/Buttons/Timestamp/Off/Caption": { - "title": "$:/language/Buttons/Timestamp/Off/Caption", - "text": "timestamps are off" - }, - "$:/language/Buttons/Timestamp/Off/Hint": { - "title": "$:/language/Buttons/Timestamp/Off/Hint", - "text": "Don't update timestamps when tiddlers are modified" - }, - "$:/language/Buttons/Theme/Caption": { - "title": "$:/language/Buttons/Theme/Caption", - "text": "theme" - }, - "$:/language/Buttons/Theme/Hint": { - "title": "$:/language/Buttons/Theme/Hint", - "text": "Choose the display theme" - }, - "$:/language/Buttons/Bold/Caption": { - "title": "$:/language/Buttons/Bold/Caption", - "text": "bold" - }, - "$:/language/Buttons/Bold/Hint": { - "title": "$:/language/Buttons/Bold/Hint", - "text": "Apply bold formatting to selection" - }, - "$:/language/Buttons/Clear/Caption": { - "title": "$:/language/Buttons/Clear/Caption", - "text": "clear" - }, - "$:/language/Buttons/Clear/Hint": { - "title": "$:/language/Buttons/Clear/Hint", - "text": "Clear image to solid colour" - }, - "$:/language/Buttons/EditorHeight/Caption": { - "title": "$:/language/Buttons/EditorHeight/Caption", - "text": "editor height" - }, - "$:/language/Buttons/EditorHeight/Caption/Auto": { - "title": "$:/language/Buttons/EditorHeight/Caption/Auto", - "text": "Automatically adjust height to fit content" - }, - "$:/language/Buttons/EditorHeight/Caption/Fixed": { - "title": "$:/language/Buttons/EditorHeight/Caption/Fixed", - "text": "Fixed height:" - }, - "$:/language/Buttons/EditorHeight/Hint": { - "title": "$:/language/Buttons/EditorHeight/Hint", - "text": "Choose the height of the text editor" - }, - "$:/language/Buttons/Excise/Caption": { - "title": "$:/language/Buttons/Excise/Caption", - "text": "excise" - }, - "$:/language/Buttons/Excise/Caption/Excise": { - "title": "$:/language/Buttons/Excise/Caption/Excise", - "text": "Perform excision" - }, - "$:/language/Buttons/Excise/Caption/MacroName": { - "title": "$:/language/Buttons/Excise/Caption/MacroName", - "text": "Macro name:" - }, - "$:/language/Buttons/Excise/Caption/NewTitle": { - "title": "$:/language/Buttons/Excise/Caption/NewTitle", - "text": "Title of new tiddler:" - }, - "$:/language/Buttons/Excise/Caption/Replace": { - "title": "$:/language/Buttons/Excise/Caption/Replace", - "text": "Replace excised text with:" - }, - "$:/language/Buttons/Excise/Caption/Replace/Macro": { - "title": "$:/language/Buttons/Excise/Caption/Replace/Macro", - "text": "macro" - }, - "$:/language/Buttons/Excise/Caption/Replace/Link": { - "title": "$:/language/Buttons/Excise/Caption/Replace/Link", - "text": "link" - }, - "$:/language/Buttons/Excise/Caption/Replace/Transclusion": { - "title": "$:/language/Buttons/Excise/Caption/Replace/Transclusion", - "text": "transclusion" - }, - "$:/language/Buttons/Excise/Caption/Tag": { - "title": "$:/language/Buttons/Excise/Caption/Tag", - "text": "Tag new tiddler with the title of this tiddler" - }, - "$:/language/Buttons/Excise/Caption/TiddlerExists": { - "title": "$:/language/Buttons/Excise/Caption/TiddlerExists", - "text": "Warning: tiddler already exists" - }, - "$:/language/Buttons/Excise/Hint": { - "title": "$:/language/Buttons/Excise/Hint", - "text": "Excise the selected text into a new tiddler" - }, - "$:/language/Buttons/Heading1/Caption": { - "title": "$:/language/Buttons/Heading1/Caption", - "text": "heading 1" - }, - "$:/language/Buttons/Heading1/Hint": { - "title": "$:/language/Buttons/Heading1/Hint", - "text": "Apply heading level 1 formatting to lines containing selection" - }, - "$:/language/Buttons/Heading2/Caption": { - "title": "$:/language/Buttons/Heading2/Caption", - "text": "heading 2" - }, - "$:/language/Buttons/Heading2/Hint": { - "title": "$:/language/Buttons/Heading2/Hint", - "text": "Apply heading level 2 formatting to lines containing selection" - }, - "$:/language/Buttons/Heading3/Caption": { - "title": "$:/language/Buttons/Heading3/Caption", - "text": "heading 3" - }, - "$:/language/Buttons/Heading3/Hint": { - "title": "$:/language/Buttons/Heading3/Hint", - "text": "Apply heading level 3 formatting to lines containing selection" - }, - "$:/language/Buttons/Heading4/Caption": { - "title": "$:/language/Buttons/Heading4/Caption", - "text": "heading 4" - }, - "$:/language/Buttons/Heading4/Hint": { - "title": "$:/language/Buttons/Heading4/Hint", - "text": "Apply heading level 4 formatting to lines containing selection" - }, - "$:/language/Buttons/Heading5/Caption": { - "title": "$:/language/Buttons/Heading5/Caption", - "text": "heading 5" - }, - "$:/language/Buttons/Heading5/Hint": { - "title": "$:/language/Buttons/Heading5/Hint", - "text": "Apply heading level 5 formatting to lines containing selection" - }, - "$:/language/Buttons/Heading6/Caption": { - "title": "$:/language/Buttons/Heading6/Caption", - "text": "heading 6" - }, - "$:/language/Buttons/Heading6/Hint": { - "title": "$:/language/Buttons/Heading6/Hint", - "text": "Apply heading level 6 formatting to lines containing selection" - }, - "$:/language/Buttons/Italic/Caption": { - "title": "$:/language/Buttons/Italic/Caption", - "text": "italic" - }, - "$:/language/Buttons/Italic/Hint": { - "title": "$:/language/Buttons/Italic/Hint", - "text": "Apply italic formatting to selection" - }, - "$:/language/Buttons/LineWidth/Caption": { - "title": "$:/language/Buttons/LineWidth/Caption", - "text": "line width" - }, - "$:/language/Buttons/LineWidth/Hint": { - "title": "$:/language/Buttons/LineWidth/Hint", - "text": "Set line width for painting" - }, - "$:/language/Buttons/Link/Caption": { - "title": "$:/language/Buttons/Link/Caption", - "text": "link" - }, - "$:/language/Buttons/Link/Hint": { - "title": "$:/language/Buttons/Link/Hint", - "text": "Create wikitext link" - }, - "$:/language/Buttons/Linkify/Caption": { - "title": "$:/language/Buttons/Linkify/Caption", - "text": "wikilink" - }, - "$:/language/Buttons/Linkify/Hint": { - "title": "$:/language/Buttons/Linkify/Hint", - "text": "Wrap selection in square brackets" - }, - "$:/language/Buttons/ListBullet/Caption": { - "title": "$:/language/Buttons/ListBullet/Caption", - "text": "bulleted list" - }, - "$:/language/Buttons/ListBullet/Hint": { - "title": "$:/language/Buttons/ListBullet/Hint", - "text": "Apply bulleted list formatting to lines containing selection" - }, - "$:/language/Buttons/ListNumber/Caption": { - "title": "$:/language/Buttons/ListNumber/Caption", - "text": "numbered list" - }, - "$:/language/Buttons/ListNumber/Hint": { - "title": "$:/language/Buttons/ListNumber/Hint", - "text": "Apply numbered list formatting to lines containing selection" - }, - "$:/language/Buttons/MonoBlock/Caption": { - "title": "$:/language/Buttons/MonoBlock/Caption", - "text": "monospaced block" - }, - "$:/language/Buttons/MonoBlock/Hint": { - "title": "$:/language/Buttons/MonoBlock/Hint", - "text": "Apply monospaced block formatting to lines containing selection" - }, - "$:/language/Buttons/MonoLine/Caption": { - "title": "$:/language/Buttons/MonoLine/Caption", - "text": "monospaced" - }, - "$:/language/Buttons/MonoLine/Hint": { - "title": "$:/language/Buttons/MonoLine/Hint", - "text": "Apply monospaced character formatting to selection" - }, - "$:/language/Buttons/Opacity/Caption": { - "title": "$:/language/Buttons/Opacity/Caption", - "text": "opacity" - }, - "$:/language/Buttons/Opacity/Hint": { - "title": "$:/language/Buttons/Opacity/Hint", - "text": "Set painting opacity" - }, - "$:/language/Buttons/Paint/Caption": { - "title": "$:/language/Buttons/Paint/Caption", - "text": "paint colour" - }, - "$:/language/Buttons/Paint/Hint": { - "title": "$:/language/Buttons/Paint/Hint", - "text": "Set painting colour" - }, - "$:/language/Buttons/Picture/Caption": { - "title": "$:/language/Buttons/Picture/Caption", - "text": "picture" - }, - "$:/language/Buttons/Picture/Hint": { - "title": "$:/language/Buttons/Picture/Hint", - "text": "Insert picture" - }, - "$:/language/Buttons/Preview/Caption": { - "title": "$:/language/Buttons/Preview/Caption", - "text": "preview" - }, - "$:/language/Buttons/Preview/Hint": { - "title": "$:/language/Buttons/Preview/Hint", - "text": "Show preview pane" - }, - "$:/language/Buttons/PreviewType/Caption": { - "title": "$:/language/Buttons/PreviewType/Caption", - "text": "preview type" - }, - "$:/language/Buttons/PreviewType/Hint": { - "title": "$:/language/Buttons/PreviewType/Hint", - "text": "Choose preview type" - }, - "$:/language/Buttons/Quote/Caption": { - "title": "$:/language/Buttons/Quote/Caption", - "text": "quote" - }, - "$:/language/Buttons/Quote/Hint": { - "title": "$:/language/Buttons/Quote/Hint", - "text": "Apply quoted text formatting to lines containing selection" - }, - "$:/language/Buttons/RotateLeft/Caption": { - "title": "$:/language/Buttons/RotateLeft/Caption", - "text": "rotate left" - }, - "$:/language/Buttons/RotateLeft/Hint": { - "title": "$:/language/Buttons/RotateLeft/Hint", - "text": "Rotate image left by 90 degrees" - }, - "$:/language/Buttons/Size/Caption": { - "title": "$:/language/Buttons/Size/Caption", - "text": "image size" - }, - "$:/language/Buttons/Size/Caption/Height": { - "title": "$:/language/Buttons/Size/Caption/Height", - "text": "Height:" - }, - "$:/language/Buttons/Size/Caption/Resize": { - "title": "$:/language/Buttons/Size/Caption/Resize", - "text": "Resize image" - }, - "$:/language/Buttons/Size/Caption/Width": { - "title": "$:/language/Buttons/Size/Caption/Width", - "text": "Width:" - }, - "$:/language/Buttons/Size/Hint": { - "title": "$:/language/Buttons/Size/Hint", - "text": "Set image size" - }, - "$:/language/Buttons/Stamp/Caption": { - "title": "$:/language/Buttons/Stamp/Caption", - "text": "stamp" - }, - "$:/language/Buttons/Stamp/Caption/New": { - "title": "$:/language/Buttons/Stamp/Caption/New", - "text": "Add your own" - }, - "$:/language/Buttons/Stamp/Hint": { - "title": "$:/language/Buttons/Stamp/Hint", - "text": "Insert a preconfigured snippet of text" - }, - "$:/language/Buttons/Stamp/New/Title": { - "title": "$:/language/Buttons/Stamp/New/Title", - "text": "Name as shown in menu" - }, - "$:/language/Buttons/Stamp/New/Text": { - "title": "$:/language/Buttons/Stamp/New/Text", - "text": "Text of snippet. (Remember to add a descriptive title in the caption field)." - }, - "$:/language/Buttons/Strikethrough/Caption": { - "title": "$:/language/Buttons/Strikethrough/Caption", - "text": "strikethrough" - }, - "$:/language/Buttons/Strikethrough/Hint": { - "title": "$:/language/Buttons/Strikethrough/Hint", - "text": "Apply strikethrough formatting to selection" - }, - "$:/language/Buttons/Subscript/Caption": { - "title": "$:/language/Buttons/Subscript/Caption", - "text": "subscript" - }, - "$:/language/Buttons/Subscript/Hint": { - "title": "$:/language/Buttons/Subscript/Hint", - "text": "Apply subscript formatting to selection" - }, - "$:/language/Buttons/Superscript/Caption": { - "title": "$:/language/Buttons/Superscript/Caption", - "text": "superscript" - }, - "$:/language/Buttons/Superscript/Hint": { - "title": "$:/language/Buttons/Superscript/Hint", - "text": "Apply superscript formatting to selection" - }, - "$:/language/Buttons/ToggleSidebar/Hint": { - "title": "$:/language/Buttons/ToggleSidebar/Hint", - "text": "Toggle the sidebar visibility" - }, - "$:/language/Buttons/Transcludify/Caption": { - "title": "$:/language/Buttons/Transcludify/Caption", - "text": "transclusion" - }, - "$:/language/Buttons/Transcludify/Hint": { - "title": "$:/language/Buttons/Transcludify/Hint", - "text": "Wrap selection in curly brackets" - }, - "$:/language/Buttons/Underline/Caption": { - "title": "$:/language/Buttons/Underline/Caption", - "text": "underline" - }, - "$:/language/Buttons/Underline/Hint": { - "title": "$:/language/Buttons/Underline/Hint", - "text": "Apply underline formatting to selection" - }, - "$:/language/ControlPanel/Advanced/Caption": { - "title": "$:/language/ControlPanel/Advanced/Caption", - "text": "Advanced" - }, - "$:/language/ControlPanel/Advanced/Hint": { - "title": "$:/language/ControlPanel/Advanced/Hint", - "text": "Internal information about this TiddlyWiki" - }, - "$:/language/ControlPanel/Appearance/Caption": { - "title": "$:/language/ControlPanel/Appearance/Caption", - "text": "Appearance" - }, - "$:/language/ControlPanel/Appearance/Hint": { - "title": "$:/language/ControlPanel/Appearance/Hint", - "text": "Ways to customise the appearance of your TiddlyWiki." - }, - "$:/language/ControlPanel/Basics/AnimDuration/Prompt": { - "title": "$:/language/ControlPanel/Basics/AnimDuration/Prompt", - "text": "Animation duration" - }, - "$:/language/ControlPanel/Basics/AutoFocus/Prompt": { - "title": "$:/language/ControlPanel/Basics/AutoFocus/Prompt", - "text": "Default focus field for new tiddlers" - }, - "$:/language/ControlPanel/Basics/Caption": { - "title": "$:/language/ControlPanel/Basics/Caption", - "text": "Basics" - }, - "$:/language/ControlPanel/Basics/DefaultTiddlers/BottomHint": { - "title": "$:/language/ControlPanel/Basics/DefaultTiddlers/BottomHint", - "text": "Use [[double square brackets]] for titles with spaces. Or you can choose to <$button set=\"$:/DefaultTiddlers\" setTo=\"[list[$:/StoryList]]\">retain story ordering</$button>" - }, - "$:/language/ControlPanel/Basics/DefaultTiddlers/Prompt": { - "title": "$:/language/ControlPanel/Basics/DefaultTiddlers/Prompt", - "text": "Default tiddlers" - }, - "$:/language/ControlPanel/Basics/DefaultTiddlers/TopHint": { - "title": "$:/language/ControlPanel/Basics/DefaultTiddlers/TopHint", - "text": "Choose which tiddlers are displayed at startup" - }, - "$:/language/ControlPanel/Basics/Language/Prompt": { - "title": "$:/language/ControlPanel/Basics/Language/Prompt", - "text": "Hello! Current language:" - }, - "$:/language/ControlPanel/Basics/NewJournal/Title/Prompt": { - "title": "$:/language/ControlPanel/Basics/NewJournal/Title/Prompt", - "text": "Title of new journal tiddlers" - }, - "$:/language/ControlPanel/Basics/NewJournal/Text/Prompt": { - "title": "$:/language/ControlPanel/Basics/NewJournal/Text/Prompt", - "text": "Text for new journal tiddlers" - }, - "$:/language/ControlPanel/Basics/NewJournal/Tags/Prompt": { - "title": "$:/language/ControlPanel/Basics/NewJournal/Tags/Prompt", - "text": "Tags for new journal tiddlers" - }, - "$:/language/ControlPanel/Basics/NewTiddler/Title/Prompt": { - "title": "$:/language/ControlPanel/Basics/NewTiddler/Title/Prompt", - "text": "Title of new tiddlers" - }, - "$:/language/ControlPanel/Basics/NewTiddler/Tags/Prompt": { - "title": "$:/language/ControlPanel/Basics/NewTiddler/Tags/Prompt", - "text": "Tags for new tiddlers" - }, - "$:/language/ControlPanel/Basics/OverriddenShadowTiddlers/Prompt": { - "title": "$:/language/ControlPanel/Basics/OverriddenShadowTiddlers/Prompt", - "text": "Number of overridden shadow tiddlers" - }, - "$:/language/ControlPanel/Basics/RemoveTags": { - "title": "$:/language/ControlPanel/Basics/RemoveTags", - "text": "Update to current format" - }, - "$:/language/ControlPanel/Basics/RemoveTags/Hint": { - "title": "$:/language/ControlPanel/Basics/RemoveTags/Hint", - "text": "Update the tags configuration to the latest format" - }, - "$:/language/ControlPanel/Basics/ShadowTiddlers/Prompt": { - "title": "$:/language/ControlPanel/Basics/ShadowTiddlers/Prompt", - "text": "Number of shadow tiddlers" - }, - "$:/language/ControlPanel/Basics/Subtitle/Prompt": { - "title": "$:/language/ControlPanel/Basics/Subtitle/Prompt", - "text": "Subtitle" - }, - "$:/language/ControlPanel/Basics/SystemTiddlers/Prompt": { - "title": "$:/language/ControlPanel/Basics/SystemTiddlers/Prompt", - "text": "Number of system tiddlers" - }, - "$:/language/ControlPanel/Basics/Tags/Prompt": { - "title": "$:/language/ControlPanel/Basics/Tags/Prompt", - "text": "Number of tags" - }, - "$:/language/ControlPanel/Basics/Tiddlers/Prompt": { - "title": "$:/language/ControlPanel/Basics/Tiddlers/Prompt", - "text": "Number of tiddlers" - }, - "$:/language/ControlPanel/Basics/Title/Prompt": { - "title": "$:/language/ControlPanel/Basics/Title/Prompt", - "text": "Title of this ~TiddlyWiki" - }, - "$:/language/ControlPanel/Basics/Username/Prompt": { - "title": "$:/language/ControlPanel/Basics/Username/Prompt", - "text": "Username for signing edits" - }, - "$:/language/ControlPanel/Basics/Version/Prompt": { - "title": "$:/language/ControlPanel/Basics/Version/Prompt", - "text": "~TiddlyWiki version" - }, - "$:/language/ControlPanel/EditorTypes/Caption": { - "title": "$:/language/ControlPanel/EditorTypes/Caption", - "text": "Editor Types" - }, - "$:/language/ControlPanel/EditorTypes/Editor/Caption": { - "title": "$:/language/ControlPanel/EditorTypes/Editor/Caption", - "text": "Editor" - }, - "$:/language/ControlPanel/EditorTypes/Hint": { - "title": "$:/language/ControlPanel/EditorTypes/Hint", - "text": "These tiddlers determine which editor is used to edit specific tiddler types." - }, - "$:/language/ControlPanel/EditorTypes/Type/Caption": { - "title": "$:/language/ControlPanel/EditorTypes/Type/Caption", - "text": "Type" - }, - "$:/language/ControlPanel/Info/Caption": { - "title": "$:/language/ControlPanel/Info/Caption", - "text": "Info" - }, - "$:/language/ControlPanel/Info/Hint": { - "title": "$:/language/ControlPanel/Info/Hint", - "text": "Information about this TiddlyWiki" - }, - "$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt": { - "title": "$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt", - "text": "Type shortcut here" - }, - "$:/language/ControlPanel/KeyboardShortcuts/Add/Caption": { - "title": "$:/language/ControlPanel/KeyboardShortcuts/Add/Caption", - "text": "add shortcut" - }, - "$:/language/ControlPanel/KeyboardShortcuts/Caption": { - "title": "$:/language/ControlPanel/KeyboardShortcuts/Caption", - "text": "Keyboard Shortcuts" - }, - "$:/language/ControlPanel/KeyboardShortcuts/Hint": { - "title": "$:/language/ControlPanel/KeyboardShortcuts/Hint", - "text": "Manage keyboard shortcut assignments" - }, - "$:/language/ControlPanel/KeyboardShortcuts/NoShortcuts/Caption": { - "title": "$:/language/ControlPanel/KeyboardShortcuts/NoShortcuts/Caption", - "text": "No keyboard shortcuts assigned" - }, - "$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint": { - "title": "$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint", - "text": "remove keyboard shortcut" - }, - "$:/language/ControlPanel/KeyboardShortcuts/Platform/All": { - "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/All", - "text": "All platforms" - }, - "$:/language/ControlPanel/KeyboardShortcuts/Platform/Mac": { - "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/Mac", - "text": "Macintosh platform only" - }, - "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonMac": { - "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonMac", - "text": "Non-Macintosh platforms only" - }, - "$:/language/ControlPanel/KeyboardShortcuts/Platform/Linux": { - "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/Linux", - "text": "Linux platform only" - }, - "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonLinux": { - "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonLinux", - "text": "Non-Linux platforms only" - }, - "$:/language/ControlPanel/KeyboardShortcuts/Platform/Windows": { - "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/Windows", - "text": "Windows platform only" - }, - "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonWindows": { - "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonWindows", - "text": "Non-Windows platforms only" - }, - "$:/language/ControlPanel/LayoutSwitcher/Caption": { - "title": "$:/language/ControlPanel/LayoutSwitcher/Caption", - "text": "Layout" - }, - "$:/language/ControlPanel/LoadedModules/Caption": { - "title": "$:/language/ControlPanel/LoadedModules/Caption", - "text": "Loaded Modules" - }, - "$:/language/ControlPanel/LoadedModules/Hint": { - "title": "$:/language/ControlPanel/LoadedModules/Hint", - "text": "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." - }, - "$:/language/ControlPanel/Palette/Caption": { - "title": "$:/language/ControlPanel/Palette/Caption", - "text": "Palette" - }, - "$:/language/ControlPanel/Palette/Editor/Clone/Caption": { - "title": "$:/language/ControlPanel/Palette/Editor/Clone/Caption", - "text": "clone" - }, - "$:/language/ControlPanel/Palette/Editor/Clone/Prompt": { - "title": "$:/language/ControlPanel/Palette/Editor/Clone/Prompt", - "text": "It is recommended that you clone this shadow palette before editing it" - }, - "$:/language/ControlPanel/Palette/Editor/Delete/Hint": { - "title": "$:/language/ControlPanel/Palette/Editor/Delete/Hint", - "text": "delete this entry from the current palette" - }, - "$:/language/ControlPanel/Palette/Editor/Names/External/Show": { - "title": "$:/language/ControlPanel/Palette/Editor/Names/External/Show", - "text": "Show color names that are not part of the current palette" - }, - "$:/language/ControlPanel/Palette/Editor/Prompt/Modified": { - "title": "$:/language/ControlPanel/Palette/Editor/Prompt/Modified", - "text": "This shadow palette has been modified" - }, - "$:/language/ControlPanel/Palette/Editor/Prompt": { - "title": "$:/language/ControlPanel/Palette/Editor/Prompt", - "text": "Editing" - }, - "$:/language/ControlPanel/Palette/Editor/Reset/Caption": { - "title": "$:/language/ControlPanel/Palette/Editor/Reset/Caption", - "text": "reset" - }, - "$:/language/ControlPanel/Palette/HideEditor/Caption": { - "title": "$:/language/ControlPanel/Palette/HideEditor/Caption", - "text": "hide editor" - }, - "$:/language/ControlPanel/Palette/Prompt": { - "title": "$:/language/ControlPanel/Palette/Prompt", - "text": "Current palette:" - }, - "$:/language/ControlPanel/Palette/ShowEditor/Caption": { - "title": "$:/language/ControlPanel/Palette/ShowEditor/Caption", - "text": "show editor" - }, - "$:/language/ControlPanel/Parsing/Caption": { - "title": "$:/language/ControlPanel/Parsing/Caption", - "text": "Parsing" - }, - "$:/language/ControlPanel/Parsing/Hint": { - "title": "$:/language/ControlPanel/Parsing/Hint", - "text": "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 <$text text=\"TiddlyWiki\"/> from functioning correctly. Use [[safe mode|https://tiddlywiki.com/#SafeMode]] to restore normal operation." - }, - "$:/language/ControlPanel/Parsing/Block/Caption": { - "title": "$:/language/ControlPanel/Parsing/Block/Caption", - "text": "Block Parse Rules" - }, - "$:/language/ControlPanel/Parsing/Inline/Caption": { - "title": "$:/language/ControlPanel/Parsing/Inline/Caption", - "text": "Inline Parse Rules" - }, - "$:/language/ControlPanel/Parsing/Pragma/Caption": { - "title": "$:/language/ControlPanel/Parsing/Pragma/Caption", - "text": "Pragma Parse Rules" - }, - "$:/language/ControlPanel/Plugins/Add/Caption": { - "title": "$:/language/ControlPanel/Plugins/Add/Caption", - "text": "Get more plugins" - }, - "$:/language/ControlPanel/Plugins/Add/Hint": { - "title": "$:/language/ControlPanel/Plugins/Add/Hint", - "text": "Install plugins from the official library" - }, - "$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint": { - "title": "$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint", - "text": "This plugin is already installed at version <$text text=<<installedVersion>>/>" - }, - "$:/language/ControlPanel/Plugins/AlsoRequires": { - "title": "$:/language/ControlPanel/Plugins/AlsoRequires", - "text": "Also requires:" - }, - "$:/language/ControlPanel/Plugins/Caption": { - "title": "$:/language/ControlPanel/Plugins/Caption", - "text": "Plugins" - }, - "$:/language/ControlPanel/Plugins/Disable/Caption": { - "title": "$:/language/ControlPanel/Plugins/Disable/Caption", - "text": "disable" - }, - "$:/language/ControlPanel/Plugins/Disable/Hint": { - "title": "$:/language/ControlPanel/Plugins/Disable/Hint", - "text": "Disable this plugin when reloading page" - }, - "$:/language/ControlPanel/Plugins/Disabled/Status": { - "title": "$:/language/ControlPanel/Plugins/Disabled/Status", - "text": "(disabled)" - }, - "$:/language/ControlPanel/Plugins/Downgrade/Caption": { - "title": "$:/language/ControlPanel/Plugins/Downgrade/Caption", - "text": "downgrade" - }, - "$:/language/ControlPanel/Plugins/Empty/Hint": { - "title": "$:/language/ControlPanel/Plugins/Empty/Hint", - "text": "None" - }, - "$:/language/ControlPanel/Plugins/Enable/Caption": { - "title": "$:/language/ControlPanel/Plugins/Enable/Caption", - "text": "enable" - }, - "$:/language/ControlPanel/Plugins/Enable/Hint": { - "title": "$:/language/ControlPanel/Plugins/Enable/Hint", - "text": "Enable this plugin when reloading page" - }, - "$:/language/ControlPanel/Plugins/Install/Caption": { - "title": "$:/language/ControlPanel/Plugins/Install/Caption", - "text": "install" - }, - "$:/language/ControlPanel/Plugins/Installed/Hint": { - "title": "$:/language/ControlPanel/Plugins/Installed/Hint", - "text": "Currently installed plugins:" - }, - "$:/language/ControlPanel/Plugins/Languages/Caption": { - "title": "$:/language/ControlPanel/Plugins/Languages/Caption", - "text": "Languages" - }, - "$:/language/ControlPanel/Plugins/Languages/Hint": { - "title": "$:/language/ControlPanel/Plugins/Languages/Hint", - "text": "Language pack plugins" - }, - "$:/language/ControlPanel/Plugins/NoInfoFound/Hint": { - "title": "$:/language/ControlPanel/Plugins/NoInfoFound/Hint", - "text": "No ''\"<$text text=<<currentTab>>/>\"'' found" - }, - "$:/language/ControlPanel/Plugins/NotInstalled/Hint": { - "title": "$:/language/ControlPanel/Plugins/NotInstalled/Hint", - "text": "This plugin is not currently installed" - }, - "$:/language/ControlPanel/Plugins/OpenPluginLibrary": { - "title": "$:/language/ControlPanel/Plugins/OpenPluginLibrary", - "text": "open plugin library" - }, - "$:/language/ControlPanel/Plugins/ClosePluginLibrary": { - "title": "$:/language/ControlPanel/Plugins/ClosePluginLibrary", - "text": "close plugin library" - }, - "$:/language/ControlPanel/Plugins/PluginWillRequireReload": { - "title": "$:/language/ControlPanel/Plugins/PluginWillRequireReload", - "text": "(requires reload)" - }, - "$:/language/ControlPanel/Plugins/Plugins/Caption": { - "title": "$:/language/ControlPanel/Plugins/Plugins/Caption", - "text": "Plugins" - }, - "$:/language/ControlPanel/Plugins/Plugins/Hint": { - "title": "$:/language/ControlPanel/Plugins/Plugins/Hint", - "text": "Plugins" - }, - "$:/language/ControlPanel/Plugins/Reinstall/Caption": { - "title": "$:/language/ControlPanel/Plugins/Reinstall/Caption", - "text": "reinstall" - }, - "$:/language/ControlPanel/Plugins/Themes/Caption": { - "title": "$:/language/ControlPanel/Plugins/Themes/Caption", - "text": "Themes" - }, - "$:/language/ControlPanel/Plugins/Themes/Hint": { - "title": "$:/language/ControlPanel/Plugins/Themes/Hint", - "text": "Theme plugins" - }, - "$:/language/ControlPanel/Plugins/Update/Caption": { - "title": "$:/language/ControlPanel/Plugins/Update/Caption", - "text": "update" - }, - "$:/language/ControlPanel/Plugins/Updates/Caption": { - "title": "$:/language/ControlPanel/Plugins/Updates/Caption", - "text": "Updates" - }, - "$:/language/ControlPanel/Plugins/Updates/Hint": { - "title": "$:/language/ControlPanel/Plugins/Updates/Hint", - "text": "Available updates to installed plugins" - }, - "$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption": { - "title": "$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption", - "text": "Update <<update-count>> plugins" - }, - "$:/language/ControlPanel/Plugins/SubPluginPrompt": { - "title": "$:/language/ControlPanel/Plugins/SubPluginPrompt", - "text": "With <<count>> sub-plugins available" - }, - "$:/language/ControlPanel/Saving/Caption": { - "title": "$:/language/ControlPanel/Saving/Caption", - "text": "Saving" - }, - "$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Description": { - "title": "$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Description", - "text": "Permit automatic saving for the download saver" - }, - "$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Hint": { - "title": "$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Hint", - "text": "Enable Autosave for Download Saver" - }, - "$:/language/ControlPanel/Saving/DownloadSaver/Caption": { - "title": "$:/language/ControlPanel/Saving/DownloadSaver/Caption", - "text": "Download Saver" - }, - "$:/language/ControlPanel/Saving/DownloadSaver/Hint": { - "title": "$:/language/ControlPanel/Saving/DownloadSaver/Hint", - "text": "These settings apply to the HTML5-compatible download saver" - }, - "$:/language/ControlPanel/Saving/General/Caption": { - "title": "$:/language/ControlPanel/Saving/General/Caption", - "text": "General" - }, - "$:/language/ControlPanel/Saving/General/Hint": { - "title": "$:/language/ControlPanel/Saving/General/Hint", - "text": "These settings apply to all the loaded savers" - }, - "$:/language/ControlPanel/Saving/Hint": { - "title": "$:/language/ControlPanel/Saving/Hint", - "text": "Settings used for saving the entire TiddlyWiki as a single file via a saver module" - }, - "$:/language/ControlPanel/Saving/GitService/Branch": { - "title": "$:/language/ControlPanel/Saving/GitService/Branch", - "text": "Target branch for saving" - }, - "$:/language/ControlPanel/Saving/GitService/CommitMessage": { - "title": "$:/language/ControlPanel/Saving/GitService/CommitMessage", - "text": "Saved by TiddlyWiki" - }, - "$:/language/ControlPanel/Saving/GitService/Description": { - "title": "$:/language/ControlPanel/Saving/GitService/Description", - "text": "These settings are only used when saving to <<service-name>>" - }, - "$:/language/ControlPanel/Saving/GitService/Filename": { - "title": "$:/language/ControlPanel/Saving/GitService/Filename", - "text": "Filename of target file (e.g. `index.html`)" - }, - "$:/language/ControlPanel/Saving/GitService/Path": { - "title": "$:/language/ControlPanel/Saving/GitService/Path", - "text": "Path to target file (e.g. `/wiki/`)" - }, - "$:/language/ControlPanel/Saving/GitService/Repo": { - "title": "$:/language/ControlPanel/Saving/GitService/Repo", - "text": "Target repository (e.g. `Jermolene/TiddlyWiki5`)" - }, - "$:/language/ControlPanel/Saving/GitService/ServerURL": { - "title": "$:/language/ControlPanel/Saving/GitService/ServerURL", - "text": "Server API URL" - }, - "$:/language/ControlPanel/Saving/GitService/UserName": { - "title": "$:/language/ControlPanel/Saving/GitService/UserName", - "text": "Username" - }, - "$:/language/ControlPanel/Saving/GitService/GitHub/Caption": { - "title": "$:/language/ControlPanel/Saving/GitService/GitHub/Caption", - "text": "~GitHub Saver" - }, - "$:/language/ControlPanel/Saving/GitService/GitHub/Password": { - "title": "$:/language/ControlPanel/Saving/GitService/GitHub/Password", - "text": "Password, OAUTH token, or personal access token (see [[GitHub help page|https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line]] for details)" - }, - "$:/language/ControlPanel/Saving/GitService/GitLab/Caption": { - "title": "$:/language/ControlPanel/Saving/GitService/GitLab/Caption", - "text": "~GitLab Saver" - }, - "$:/language/ControlPanel/Saving/GitService/GitLab/Password": { - "title": "$:/language/ControlPanel/Saving/GitService/GitLab/Password", - "text": "Personal access token for API (see [[GitLab help page|https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html]] for details)" - }, - "$:/language/ControlPanel/Saving/GitService/Gitea/Caption": { - "title": "$:/language/ControlPanel/Saving/GitService/Gitea/Caption", - "text": "Gitea Saver" - }, - "$:/language/ControlPanel/Saving/GitService/Gitea/Password": { - "title": "$:/language/ControlPanel/Saving/GitService/Gitea/Password", - "text": "Personal access token for API (via Gitea’s web interface: `Settings | Applications | Generate New Token`)" - }, - "$:/language/ControlPanel/Saving/TiddlySpot/Advanced/Heading": { - "title": "$:/language/ControlPanel/Saving/TiddlySpot/Advanced/Heading", - "text": "Advanced Settings" - }, - "$:/language/ControlPanel/Saving/TiddlySpot/BackupDir": { - "title": "$:/language/ControlPanel/Saving/TiddlySpot/BackupDir", - "text": "Backup Directory" - }, - "$:/language/ControlPanel/Saving/TiddlySpot/ControlPanel": { - "title": "$:/language/ControlPanel/Saving/TiddlySpot/ControlPanel", - "text": "~TiddlySpot Control Panel" - }, - "$:/language/ControlPanel/Saving/TiddlySpot/Backups": { - "title": "$:/language/ControlPanel/Saving/TiddlySpot/Backups", - "text": "Backups" - }, - "$:/language/ControlPanel/Saving/TiddlySpot/Caption": { - "title": "$:/language/ControlPanel/Saving/TiddlySpot/Caption", - "text": "~TiddlySpot Saver" - }, - "$:/language/ControlPanel/Saving/TiddlySpot/Description": { - "title": "$:/language/ControlPanel/Saving/TiddlySpot/Description", - "text": "These settings are only used when saving to http://tiddlyspot.com or a compatible remote server" - }, - "$:/language/ControlPanel/Saving/TiddlySpot/Filename": { - "title": "$:/language/ControlPanel/Saving/TiddlySpot/Filename", - "text": "Upload Filename" - }, - "$:/language/ControlPanel/Saving/TiddlySpot/Heading": { - "title": "$:/language/ControlPanel/Saving/TiddlySpot/Heading", - "text": "~TiddlySpot" - }, - "$:/language/ControlPanel/Saving/TiddlySpot/Hint": { - "title": "$:/language/ControlPanel/Saving/TiddlySpot/Hint", - "text": "//The server URL defaults to `http://<wikiname>.tiddlyspot.com/store.cgi` and can be changed to use a custom server address, e.g. `http://example.com/store.php`.//" - }, - "$:/language/ControlPanel/Saving/TiddlySpot/Password": { - "title": "$:/language/ControlPanel/Saving/TiddlySpot/Password", - "text": "Password" - }, - "$:/language/ControlPanel/Saving/TiddlySpot/ReadOnly": { - "title": "$:/language/ControlPanel/Saving/TiddlySpot/ReadOnly", - "text": "The ~TiddlySpot service is currently only available in read-only form. Please see http://tiddlyspot.com/ for the latest details. The ~TiddlySpot saver can still be used to save to compatible servers." - }, - "$:/language/ControlPanel/Saving/TiddlySpot/ServerURL": { - "title": "$:/language/ControlPanel/Saving/TiddlySpot/ServerURL", - "text": "Server URL" - }, - "$:/language/ControlPanel/Saving/TiddlySpot/UploadDir": { - "title": "$:/language/ControlPanel/Saving/TiddlySpot/UploadDir", - "text": "Upload Directory" - }, - "$:/language/ControlPanel/Saving/TiddlySpot/UserName": { - "title": "$:/language/ControlPanel/Saving/TiddlySpot/UserName", - "text": "Wiki Name" - }, - "$:/language/ControlPanel/Settings/AutoSave/Caption": { - "title": "$:/language/ControlPanel/Settings/AutoSave/Caption", - "text": "Autosave" - }, - "$:/language/ControlPanel/Settings/AutoSave/Disabled/Description": { - "title": "$:/language/ControlPanel/Settings/AutoSave/Disabled/Description", - "text": "Do not save changes automatically" - }, - "$:/language/ControlPanel/Settings/AutoSave/Enabled/Description": { - "title": "$:/language/ControlPanel/Settings/AutoSave/Enabled/Description", - "text": "Save changes automatically" - }, - "$:/language/ControlPanel/Settings/AutoSave/Hint": { - "title": "$:/language/ControlPanel/Settings/AutoSave/Hint", - "text": "Attempt to automatically save changes during editing when using a supporting saver" - }, - "$:/language/ControlPanel/Settings/CamelCase/Caption": { - "title": "$:/language/ControlPanel/Settings/CamelCase/Caption", - "text": "Camel Case Wiki Links" - }, - "$:/language/ControlPanel/Settings/CamelCase/Hint": { - "title": "$:/language/ControlPanel/Settings/CamelCase/Hint", - "text": "You can globally disable automatic linking of ~CamelCase phrases. Requires reload to take effect" - }, - "$:/language/ControlPanel/Settings/CamelCase/Description": { - "title": "$:/language/ControlPanel/Settings/CamelCase/Description", - "text": "Enable automatic ~CamelCase linking" - }, - "$:/language/ControlPanel/Settings/Caption": { - "title": "$:/language/ControlPanel/Settings/Caption", - "text": "Settings" - }, - "$:/language/ControlPanel/Settings/EditorToolbar/Caption": { - "title": "$:/language/ControlPanel/Settings/EditorToolbar/Caption", - "text": "Editor Toolbar" - }, - "$:/language/ControlPanel/Settings/EditorToolbar/Hint": { - "title": "$:/language/ControlPanel/Settings/EditorToolbar/Hint", - "text": "Enable or disable the editor toolbar:" - }, - "$:/language/ControlPanel/Settings/EditorToolbar/Description": { - "title": "$:/language/ControlPanel/Settings/EditorToolbar/Description", - "text": "Show editor toolbar" - }, - "$:/language/ControlPanel/Settings/InfoPanelMode/Caption": { - "title": "$:/language/ControlPanel/Settings/InfoPanelMode/Caption", - "text": "Tiddler Info Panel Mode" - }, - "$:/language/ControlPanel/Settings/InfoPanelMode/Hint": { - "title": "$:/language/ControlPanel/Settings/InfoPanelMode/Hint", - "text": "Control when the tiddler info panel closes:" - }, - "$:/language/ControlPanel/Settings/InfoPanelMode/Popup/Description": { - "title": "$:/language/ControlPanel/Settings/InfoPanelMode/Popup/Description", - "text": "Tiddler info panel closes automatically" - }, - "$:/language/ControlPanel/Settings/InfoPanelMode/Sticky/Description": { - "title": "$:/language/ControlPanel/Settings/InfoPanelMode/Sticky/Description", - "text": "Tiddler info panel stays open until explicitly closed" - }, - "$:/language/ControlPanel/Settings/Hint": { - "title": "$:/language/ControlPanel/Settings/Hint", - "text": "These settings let you customise the behaviour of TiddlyWiki." - }, - "$:/language/ControlPanel/Settings/NavigationAddressBar/Caption": { - "title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Caption", - "text": "Navigation Address Bar" - }, - "$:/language/ControlPanel/Settings/NavigationAddressBar/Hint": { - "title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Hint", - "text": "Behaviour of the browser address bar when navigating to a tiddler:" - }, - "$:/language/ControlPanel/Settings/NavigationAddressBar/No/Description": { - "title": "$:/language/ControlPanel/Settings/NavigationAddressBar/No/Description", - "text": "Do not update the address bar" - }, - "$:/language/ControlPanel/Settings/NavigationAddressBar/Permalink/Description": { - "title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Permalink/Description", - "text": "Include the target tiddler" - }, - "$:/language/ControlPanel/Settings/NavigationAddressBar/Permaview/Description": { - "title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Permaview/Description", - "text": "Include the target tiddler and the current story sequence" - }, - "$:/language/ControlPanel/Settings/NavigationHistory/Caption": { - "title": "$:/language/ControlPanel/Settings/NavigationHistory/Caption", - "text": "Navigation History" - }, - "$:/language/ControlPanel/Settings/NavigationHistory/Hint": { - "title": "$:/language/ControlPanel/Settings/NavigationHistory/Hint", - "text": "Update browser history when navigating to a tiddler:" - }, - "$:/language/ControlPanel/Settings/NavigationHistory/No/Description": { - "title": "$:/language/ControlPanel/Settings/NavigationHistory/No/Description", - "text": "Do not update history" - }, - "$:/language/ControlPanel/Settings/NavigationHistory/Yes/Description": { - "title": "$:/language/ControlPanel/Settings/NavigationHistory/Yes/Description", - "text": "Update history" - }, - "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption": { - "title": "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption", - "text": "Permalink/permaview Mode" - }, - "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Hint": { - "title": "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Hint", - "text": "Choose how permalink/permaview is handled:" - }, - "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/CopyToClipboard/Description": { - "title": "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/CopyToClipboard/Description", - "text": "Copy permalink/permaview URL to clipboard" - }, - "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/UpdateAddressBar/Description": { - "title": "$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/UpdateAddressBar/Description", - "text": "Update address bar with permalink/permaview URL" - }, - "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption": { - "title": "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption", - "text": "Performance Instrumentation" - }, - "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Hint": { - "title": "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Hint", - "text": "Displays performance statistics in the browser developer console. Requires reload to take effect" - }, - "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Description": { - "title": "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Description", - "text": "Enable performance instrumentation" - }, - "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption": { - "title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption", - "text": "Toolbar Button Style" - }, - "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Hint": { - "title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Hint", - "text": "Choose the style for toolbar buttons:" - }, - "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless": { - "title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless", - "text": "Borderless" - }, - "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed": { - "title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed", - "text": "Boxed" - }, - "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded": { - "title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded", - "text": "Rounded" - }, - "$:/language/ControlPanel/Settings/ToolbarButtons/Caption": { - "title": "$:/language/ControlPanel/Settings/ToolbarButtons/Caption", - "text": "Toolbar Buttons" - }, - "$:/language/ControlPanel/Settings/ToolbarButtons/Hint": { - "title": "$:/language/ControlPanel/Settings/ToolbarButtons/Hint", - "text": "Default toolbar button appearance:" - }, - "$:/language/ControlPanel/Settings/ToolbarButtons/Icons/Description": { - "title": "$:/language/ControlPanel/Settings/ToolbarButtons/Icons/Description", - "text": "Include icon" - }, - "$:/language/ControlPanel/Settings/ToolbarButtons/Text/Description": { - "title": "$:/language/ControlPanel/Settings/ToolbarButtons/Text/Description", - "text": "Include text" - }, - "$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption": { - "title": "$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption", - "text": "Default Sidebar Tab" - }, - "$:/language/ControlPanel/Settings/DefaultSidebarTab/Hint": { - "title": "$:/language/ControlPanel/Settings/DefaultSidebarTab/Hint", - "text": "Specify which sidebar tab is displayed by default" - }, - "$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption": { - "title": "$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption", - "text": "Default More Sidebar Tab" - }, - "$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Hint": { - "title": "$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Hint", - "text": "Specify which More sidebar tab is displayed by default" - }, - "$:/language/ControlPanel/Settings/LinkToBehaviour/Caption": { - "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/Caption", - "text": "Tiddler Opening Behaviour" - }, - "$:/language/ControlPanel/Settings/LinkToBehaviour/InsideRiver/Hint": { - "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/InsideRiver/Hint", - "text": "Navigation from //within// the story river" - }, - "$:/language/ControlPanel/Settings/LinkToBehaviour/OutsideRiver/Hint": { - "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OutsideRiver/Hint", - "text": "Navigation from //outside// the story river" - }, - "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAbove": { - "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAbove", - "text": "Open above the current tiddler" - }, - "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenBelow": { - "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenBelow", - "text": "Open below the current tiddler" - }, - "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtTop": { - "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtTop", - "text": "Open at the top of the story river" - }, - "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtBottom": { - "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtBottom", - "text": "Open at the bottom of the story river" - }, - "$:/language/ControlPanel/Settings/TitleLinks/Caption": { - "title": "$:/language/ControlPanel/Settings/TitleLinks/Caption", - "text": "Tiddler Titles" - }, - "$:/language/ControlPanel/Settings/TitleLinks/Hint": { - "title": "$:/language/ControlPanel/Settings/TitleLinks/Hint", - "text": "Optionally display tiddler titles as links" - }, - "$:/language/ControlPanel/Settings/TitleLinks/No/Description": { - "title": "$:/language/ControlPanel/Settings/TitleLinks/No/Description", - "text": "Do not display tiddler titles as links" - }, - "$:/language/ControlPanel/Settings/TitleLinks/Yes/Description": { - "title": "$:/language/ControlPanel/Settings/TitleLinks/Yes/Description", - "text": "Display tiddler titles as links" - }, - "$:/language/ControlPanel/Settings/MissingLinks/Caption": { - "title": "$:/language/ControlPanel/Settings/MissingLinks/Caption", - "text": "Wiki Links" - }, - "$:/language/ControlPanel/Settings/MissingLinks/Hint": { - "title": "$:/language/ControlPanel/Settings/MissingLinks/Hint", - "text": "Choose whether to link to tiddlers that do not exist yet" - }, - "$:/language/ControlPanel/Settings/MissingLinks/Description": { - "title": "$:/language/ControlPanel/Settings/MissingLinks/Description", - "text": "Enable links to missing tiddlers" - }, - "$:/language/ControlPanel/StoryView/Caption": { - "title": "$:/language/ControlPanel/StoryView/Caption", - "text": "Story View" - }, - "$:/language/ControlPanel/StoryView/Prompt": { - "title": "$:/language/ControlPanel/StoryView/Prompt", - "text": "Current view:" - }, - "$:/language/ControlPanel/Stylesheets/Caption": { - "title": "$:/language/ControlPanel/Stylesheets/Caption", - "text": "Stylesheets" - }, - "$:/language/ControlPanel/Stylesheets/Expand/Caption": { - "title": "$:/language/ControlPanel/Stylesheets/Expand/Caption", - "text": "Expand All" - }, - "$:/language/ControlPanel/Stylesheets/Hint": { - "title": "$:/language/ControlPanel/Stylesheets/Hint", - "text": "This is the rendered CSS of the current stylesheet tiddlers tagged with <<tag \"$:/tags/Stylesheet\">>" - }, - "$:/language/ControlPanel/Stylesheets/Restore/Caption": { - "title": "$:/language/ControlPanel/Stylesheets/Restore/Caption", - "text": "Restore" - }, - "$:/language/ControlPanel/Theme/Caption": { - "title": "$:/language/ControlPanel/Theme/Caption", - "text": "Theme" - }, - "$:/language/ControlPanel/Theme/Prompt": { - "title": "$:/language/ControlPanel/Theme/Prompt", - "text": "Current theme:" - }, - "$:/language/ControlPanel/TiddlerFields/Caption": { - "title": "$:/language/ControlPanel/TiddlerFields/Caption", - "text": "Tiddler Fields" - }, - "$:/language/ControlPanel/TiddlerFields/Hint": { - "title": "$:/language/ControlPanel/TiddlerFields/Hint", - "text": "This is the full set of TiddlerFields in use in this wiki (including system tiddlers but excluding shadow tiddlers)." - }, - "$:/language/ControlPanel/Toolbars/Caption": { - "title": "$:/language/ControlPanel/Toolbars/Caption", - "text": "Toolbars" - }, - "$:/language/ControlPanel/Toolbars/EditToolbar/Caption": { - "title": "$:/language/ControlPanel/Toolbars/EditToolbar/Caption", - "text": "Edit Toolbar" - }, - "$:/language/ControlPanel/Toolbars/EditToolbar/Hint": { - "title": "$:/language/ControlPanel/Toolbars/EditToolbar/Hint", - "text": "Choose which buttons are displayed for tiddlers in edit mode. Drag and drop to change the ordering" - }, - "$:/language/ControlPanel/Toolbars/Hint": { - "title": "$:/language/ControlPanel/Toolbars/Hint", - "text": "Select which toolbar buttons are displayed" - }, - "$:/language/ControlPanel/Toolbars/PageControls/Caption": { - "title": "$:/language/ControlPanel/Toolbars/PageControls/Caption", - "text": "Page Toolbar" - }, - "$:/language/ControlPanel/Toolbars/PageControls/Hint": { - "title": "$:/language/ControlPanel/Toolbars/PageControls/Hint", - "text": "Choose which buttons are displayed on the main page toolbar. Drag and drop to change the ordering" - }, - "$:/language/ControlPanel/Toolbars/EditorToolbar/Caption": { - "title": "$:/language/ControlPanel/Toolbars/EditorToolbar/Caption", - "text": "Editor Toolbar" - }, - "$:/language/ControlPanel/Toolbars/EditorToolbar/Hint": { - "title": "$:/language/ControlPanel/Toolbars/EditorToolbar/Hint", - "text": "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" - }, - "$:/language/ControlPanel/Toolbars/ViewToolbar/Caption": { - "title": "$:/language/ControlPanel/Toolbars/ViewToolbar/Caption", - "text": "View Toolbar" - }, - "$:/language/ControlPanel/Toolbars/ViewToolbar/Hint": { - "title": "$:/language/ControlPanel/Toolbars/ViewToolbar/Hint", - "text": "Choose which buttons are displayed for tiddlers in view mode. Drag and drop to change the ordering" - }, - "$:/language/ControlPanel/Tools/Download/Full/Caption": { - "title": "$:/language/ControlPanel/Tools/Download/Full/Caption", - "text": "Download full wiki" - }, - "$:/language/Date/DaySuffix/1": { - "title": "$:/language/Date/DaySuffix/1", - "text": "st" - }, - "$:/language/Date/DaySuffix/2": { - "title": "$:/language/Date/DaySuffix/2", - "text": "nd" - }, - "$:/language/Date/DaySuffix/3": { - "title": "$:/language/Date/DaySuffix/3", - "text": "rd" - }, - "$:/language/Date/DaySuffix/4": { - "title": "$:/language/Date/DaySuffix/4", - "text": "th" - }, - "$:/language/Date/DaySuffix/5": { - "title": "$:/language/Date/DaySuffix/5", - "text": "th" - }, - "$:/language/Date/DaySuffix/6": { - "title": "$:/language/Date/DaySuffix/6", - "text": "th" - }, - "$:/language/Date/DaySuffix/7": { - "title": "$:/language/Date/DaySuffix/7", - "text": "th" - }, - "$:/language/Date/DaySuffix/8": { - "title": "$:/language/Date/DaySuffix/8", - "text": "th" - }, - "$:/language/Date/DaySuffix/9": { - "title": "$:/language/Date/DaySuffix/9", - "text": "th" - }, - "$:/language/Date/DaySuffix/10": { - "title": "$:/language/Date/DaySuffix/10", - "text": "th" - }, - "$:/language/Date/DaySuffix/11": { - "title": "$:/language/Date/DaySuffix/11", - "text": "th" - }, - "$:/language/Date/DaySuffix/12": { - "title": "$:/language/Date/DaySuffix/12", - "text": "th" - }, - "$:/language/Date/DaySuffix/13": { - "title": "$:/language/Date/DaySuffix/13", - "text": "th" - }, - "$:/language/Date/DaySuffix/14": { - "title": "$:/language/Date/DaySuffix/14", - "text": "th" - }, - "$:/language/Date/DaySuffix/15": { - "title": "$:/language/Date/DaySuffix/15", - "text": "th" - }, - "$:/language/Date/DaySuffix/16": { - "title": "$:/language/Date/DaySuffix/16", - "text": "th" - }, - "$:/language/Date/DaySuffix/17": { - "title": "$:/language/Date/DaySuffix/17", - "text": "th" - }, - "$:/language/Date/DaySuffix/18": { - "title": "$:/language/Date/DaySuffix/18", - "text": "th" - }, - "$:/language/Date/DaySuffix/19": { - "title": "$:/language/Date/DaySuffix/19", - "text": "th" - }, - "$:/language/Date/DaySuffix/20": { - "title": "$:/language/Date/DaySuffix/20", - "text": "th" - }, - "$:/language/Date/DaySuffix/21": { - "title": "$:/language/Date/DaySuffix/21", - "text": "st" - }, - "$:/language/Date/DaySuffix/22": { - "title": "$:/language/Date/DaySuffix/22", - "text": "nd" - }, - "$:/language/Date/DaySuffix/23": { - "title": "$:/language/Date/DaySuffix/23", - "text": "rd" - }, - "$:/language/Date/DaySuffix/24": { - "title": "$:/language/Date/DaySuffix/24", - "text": "th" - }, - "$:/language/Date/DaySuffix/25": { - "title": "$:/language/Date/DaySuffix/25", - "text": "th" - }, - "$:/language/Date/DaySuffix/26": { - "title": "$:/language/Date/DaySuffix/26", - "text": "th" - }, - "$:/language/Date/DaySuffix/27": { - "title": "$:/language/Date/DaySuffix/27", - "text": "th" - }, - "$:/language/Date/DaySuffix/28": { - "title": "$:/language/Date/DaySuffix/28", - "text": "th" - }, - "$:/language/Date/DaySuffix/29": { - "title": "$:/language/Date/DaySuffix/29", - "text": "th" - }, - "$:/language/Date/DaySuffix/30": { - "title": "$:/language/Date/DaySuffix/30", - "text": "th" - }, - "$:/language/Date/DaySuffix/31": { - "title": "$:/language/Date/DaySuffix/31", - "text": "st" - }, - "$:/language/Date/Long/Day/0": { - "title": "$:/language/Date/Long/Day/0", - "text": "Sunday" - }, - "$:/language/Date/Long/Day/1": { - "title": "$:/language/Date/Long/Day/1", - "text": "Monday" - }, - "$:/language/Date/Long/Day/2": { - "title": "$:/language/Date/Long/Day/2", - "text": "Tuesday" - }, - "$:/language/Date/Long/Day/3": { - "title": "$:/language/Date/Long/Day/3", - "text": "Wednesday" - }, - "$:/language/Date/Long/Day/4": { - "title": "$:/language/Date/Long/Day/4", - "text": "Thursday" - }, - "$:/language/Date/Long/Day/5": { - "title": "$:/language/Date/Long/Day/5", - "text": "Friday" - }, - "$:/language/Date/Long/Day/6": { - "title": "$:/language/Date/Long/Day/6", - "text": "Saturday" - }, - "$:/language/Date/Long/Month/1": { - "title": "$:/language/Date/Long/Month/1", - "text": "January" - }, - "$:/language/Date/Long/Month/2": { - "title": "$:/language/Date/Long/Month/2", - "text": "February" - }, - "$:/language/Date/Long/Month/3": { - "title": "$:/language/Date/Long/Month/3", - "text": "March" - }, - "$:/language/Date/Long/Month/4": { - "title": "$:/language/Date/Long/Month/4", - "text": "April" - }, - "$:/language/Date/Long/Month/5": { - "title": "$:/language/Date/Long/Month/5", - "text": "May" - }, - "$:/language/Date/Long/Month/6": { - "title": "$:/language/Date/Long/Month/6", - "text": "June" - }, - "$:/language/Date/Long/Month/7": { - "title": "$:/language/Date/Long/Month/7", - "text": "July" - }, - "$:/language/Date/Long/Month/8": { - "title": "$:/language/Date/Long/Month/8", - "text": "August" - }, - "$:/language/Date/Long/Month/9": { - "title": "$:/language/Date/Long/Month/9", - "text": "September" - }, - "$:/language/Date/Long/Month/10": { - "title": "$:/language/Date/Long/Month/10", - "text": "October" - }, - "$:/language/Date/Long/Month/11": { - "title": "$:/language/Date/Long/Month/11", - "text": "November" - }, - "$:/language/Date/Long/Month/12": { - "title": "$:/language/Date/Long/Month/12", - "text": "December" - }, - "$:/language/Date/Period/am": { - "title": "$:/language/Date/Period/am", - "text": "am" - }, - "$:/language/Date/Period/pm": { - "title": "$:/language/Date/Period/pm", - "text": "pm" - }, - "$:/language/Date/Short/Day/0": { - "title": "$:/language/Date/Short/Day/0", - "text": "Sun" - }, - "$:/language/Date/Short/Day/1": { - "title": "$:/language/Date/Short/Day/1", - "text": "Mon" - }, - "$:/language/Date/Short/Day/2": { - "title": "$:/language/Date/Short/Day/2", - "text": "Tue" - }, - "$:/language/Date/Short/Day/3": { - "title": "$:/language/Date/Short/Day/3", - "text": "Wed" - }, - "$:/language/Date/Short/Day/4": { - "title": "$:/language/Date/Short/Day/4", - "text": "Thu" - }, - "$:/language/Date/Short/Day/5": { - "title": "$:/language/Date/Short/Day/5", - "text": "Fri" - }, - "$:/language/Date/Short/Day/6": { - "title": "$:/language/Date/Short/Day/6", - "text": "Sat" - }, - "$:/language/Date/Short/Month/1": { - "title": "$:/language/Date/Short/Month/1", - "text": "Jan" - }, - "$:/language/Date/Short/Month/2": { - "title": "$:/language/Date/Short/Month/2", - "text": "Feb" - }, - "$:/language/Date/Short/Month/3": { - "title": "$:/language/Date/Short/Month/3", - "text": "Mar" - }, - "$:/language/Date/Short/Month/4": { - "title": "$:/language/Date/Short/Month/4", - "text": "Apr" - }, - "$:/language/Date/Short/Month/5": { - "title": "$:/language/Date/Short/Month/5", - "text": "May" - }, - "$:/language/Date/Short/Month/6": { - "title": "$:/language/Date/Short/Month/6", - "text": "Jun" - }, - "$:/language/Date/Short/Month/7": { - "title": "$:/language/Date/Short/Month/7", - "text": "Jul" - }, - "$:/language/Date/Short/Month/8": { - "title": "$:/language/Date/Short/Month/8", - "text": "Aug" - }, - "$:/language/Date/Short/Month/9": { - "title": "$:/language/Date/Short/Month/9", - "text": "Sep" - }, - "$:/language/Date/Short/Month/10": { - "title": "$:/language/Date/Short/Month/10", - "text": "Oct" - }, - "$:/language/Date/Short/Month/11": { - "title": "$:/language/Date/Short/Month/11", - "text": "Nov" - }, - "$:/language/Date/Short/Month/12": { - "title": "$:/language/Date/Short/Month/12", - "text": "Dec" - }, - "$:/language/RelativeDate/Future/Days": { - "title": "$:/language/RelativeDate/Future/Days", - "text": "<<period>> days from now" - }, - "$:/language/RelativeDate/Future/Hours": { - "title": "$:/language/RelativeDate/Future/Hours", - "text": "<<period>> hours from now" - }, - "$:/language/RelativeDate/Future/Minutes": { - "title": "$:/language/RelativeDate/Future/Minutes", - "text": "<<period>> minutes from now" - }, - "$:/language/RelativeDate/Future/Months": { - "title": "$:/language/RelativeDate/Future/Months", - "text": "<<period>> months from now" - }, - "$:/language/RelativeDate/Future/Second": { - "title": "$:/language/RelativeDate/Future/Second", - "text": "1 second from now" - }, - "$:/language/RelativeDate/Future/Seconds": { - "title": "$:/language/RelativeDate/Future/Seconds", - "text": "<<period>> seconds from now" - }, - "$:/language/RelativeDate/Future/Years": { - "title": "$:/language/RelativeDate/Future/Years", - "text": "<<period>> years from now" - }, - "$:/language/RelativeDate/Past/Days": { - "title": "$:/language/RelativeDate/Past/Days", - "text": "<<period>> days ago" - }, - "$:/language/RelativeDate/Past/Hours": { - "title": "$:/language/RelativeDate/Past/Hours", - "text": "<<period>> hours ago" - }, - "$:/language/RelativeDate/Past/Minutes": { - "title": "$:/language/RelativeDate/Past/Minutes", - "text": "<<period>> minutes ago" - }, - "$:/language/RelativeDate/Past/Months": { - "title": "$:/language/RelativeDate/Past/Months", - "text": "<<period>> months ago" - }, - "$:/language/RelativeDate/Past/Second": { - "title": "$:/language/RelativeDate/Past/Second", - "text": "1 second ago" - }, - "$:/language/RelativeDate/Past/Seconds": { - "title": "$:/language/RelativeDate/Past/Seconds", - "text": "<<period>> seconds ago" - }, - "$:/language/RelativeDate/Past/Years": { - "title": "$:/language/RelativeDate/Past/Years", - "text": "<<period>> years ago" - }, - "$:/language/Docs/ModuleTypes/allfilteroperator": { - "title": "$:/language/Docs/ModuleTypes/allfilteroperator", - "text": "A sub-operator for the ''all'' filter operator." - }, - "$:/language/Docs/ModuleTypes/animation": { - "title": "$:/language/Docs/ModuleTypes/animation", - "text": "Animations that may be used with the RevealWidget." - }, - "$:/language/Docs/ModuleTypes/authenticator": { - "title": "$:/language/Docs/ModuleTypes/authenticator", - "text": "Defines how requests are authenticated by the built-in HTTP server." - }, - "$:/language/Docs/ModuleTypes/bitmapeditoroperation": { - "title": "$:/language/Docs/ModuleTypes/bitmapeditoroperation", - "text": "A bitmap editor toolbar operation." - }, - "$:/language/Docs/ModuleTypes/command": { - "title": "$:/language/Docs/ModuleTypes/command", - "text": "Commands that can be executed under Node.js." - }, - "$:/language/Docs/ModuleTypes/config": { - "title": "$:/language/Docs/ModuleTypes/config", - "text": "Data to be inserted into `$tw.config`." - }, - "$:/language/Docs/ModuleTypes/filteroperator": { - "title": "$:/language/Docs/ModuleTypes/filteroperator", - "text": "Individual filter operator methods." - }, - "$:/language/Docs/ModuleTypes/global": { - "title": "$:/language/Docs/ModuleTypes/global", - "text": "Global data to be inserted into `$tw`." - }, - "$:/language/Docs/ModuleTypes/info": { - "title": "$:/language/Docs/ModuleTypes/info", - "text": "Publishes system information via the [[$:/temp/info-plugin]] pseudo-plugin." - }, - "$:/language/Docs/ModuleTypes/isfilteroperator": { - "title": "$:/language/Docs/ModuleTypes/isfilteroperator", - "text": "Operands for the ''is'' filter operator." - }, - "$:/language/Docs/ModuleTypes/library": { - "title": "$:/language/Docs/ModuleTypes/library", - "text": "Generic module type for general purpose JavaScript modules." - }, - "$:/language/Docs/ModuleTypes/macro": { - "title": "$:/language/Docs/ModuleTypes/macro", - "text": "JavaScript macro definitions." - }, - "$:/language/Docs/ModuleTypes/parser": { - "title": "$:/language/Docs/ModuleTypes/parser", - "text": "Parsers for different content types." - }, - "$:/language/Docs/ModuleTypes/route": { - "title": "$:/language/Docs/ModuleTypes/route", - "text": "Defines how individual URL patterns are handled by the built-in HTTP server." - }, - "$:/language/Docs/ModuleTypes/saver": { - "title": "$:/language/Docs/ModuleTypes/saver", - "text": "Savers handle different methods for saving files from the browser." - }, - "$:/language/Docs/ModuleTypes/startup": { - "title": "$:/language/Docs/ModuleTypes/startup", - "text": "Startup functions." - }, - "$:/language/Docs/ModuleTypes/storyview": { - "title": "$:/language/Docs/ModuleTypes/storyview", - "text": "Story views customise the animation and behaviour of list widgets." - }, - "$:/language/Docs/ModuleTypes/texteditoroperation": { - "title": "$:/language/Docs/ModuleTypes/texteditoroperation", - "text": "A text editor toolbar operation." - }, - "$:/language/Docs/ModuleTypes/tiddlerdeserializer": { - "title": "$:/language/Docs/ModuleTypes/tiddlerdeserializer", - "text": "Converts different content types into tiddlers." - }, - "$:/language/Docs/ModuleTypes/tiddlerfield": { - "title": "$:/language/Docs/ModuleTypes/tiddlerfield", - "text": "Defines the behaviour of an individual tiddler field." - }, - "$:/language/Docs/ModuleTypes/tiddlermethod": { - "title": "$:/language/Docs/ModuleTypes/tiddlermethod", - "text": "Adds methods to the `$tw.Tiddler` prototype." - }, - "$:/language/Docs/ModuleTypes/upgrader": { - "title": "$:/language/Docs/ModuleTypes/upgrader", - "text": "Applies upgrade processing to tiddlers during an upgrade/import." - }, - "$:/language/Docs/ModuleTypes/utils": { - "title": "$:/language/Docs/ModuleTypes/utils", - "text": "Adds methods to `$tw.utils`." - }, - "$:/language/Docs/ModuleTypes/utils-node": { - "title": "$:/language/Docs/ModuleTypes/utils-node", - "text": "Adds Node.js-specific methods to `$tw.utils`." - }, - "$:/language/Docs/ModuleTypes/widget": { - "title": "$:/language/Docs/ModuleTypes/widget", - "text": "Widgets encapsulate DOM rendering and refreshing." - }, - "$:/language/Docs/ModuleTypes/wikimethod": { - "title": "$:/language/Docs/ModuleTypes/wikimethod", - "text": "Adds methods to `$tw.Wiki`." - }, - "$:/language/Docs/ModuleTypes/wikirule": { - "title": "$:/language/Docs/ModuleTypes/wikirule", - "text": "Individual parser rules for the main WikiText parser." - }, - "$:/language/Docs/PaletteColours/alert-background": { - "title": "$:/language/Docs/PaletteColours/alert-background", - "text": "Alert background" - }, - "$:/language/Docs/PaletteColours/alert-border": { - "title": "$:/language/Docs/PaletteColours/alert-border", - "text": "Alert border" - }, - "$:/language/Docs/PaletteColours/alert-highlight": { - "title": "$:/language/Docs/PaletteColours/alert-highlight", - "text": "Alert highlight" - }, - "$:/language/Docs/PaletteColours/alert-muted-foreground": { - "title": "$:/language/Docs/PaletteColours/alert-muted-foreground", - "text": "Alert muted foreground" - }, - "$:/language/Docs/PaletteColours/background": { - "title": "$:/language/Docs/PaletteColours/background", - "text": "General background" - }, - "$:/language/Docs/PaletteColours/blockquote-bar": { - "title": "$:/language/Docs/PaletteColours/blockquote-bar", - "text": "Blockquote bar" - }, - "$:/language/Docs/PaletteColours/button-background": { - "title": "$:/language/Docs/PaletteColours/button-background", - "text": "Default button background" - }, - "$:/language/Docs/PaletteColours/button-border": { - "title": "$:/language/Docs/PaletteColours/button-border", - "text": "Default button border" - }, - "$:/language/Docs/PaletteColours/button-foreground": { - "title": "$:/language/Docs/PaletteColours/button-foreground", - "text": "Default button foreground" - }, - "$:/language/Docs/PaletteColours/dirty-indicator": { - "title": "$:/language/Docs/PaletteColours/dirty-indicator", - "text": "Unsaved changes indicator" - }, - "$:/language/Docs/PaletteColours/code-background": { - "title": "$:/language/Docs/PaletteColours/code-background", - "text": "Code background" - }, - "$:/language/Docs/PaletteColours/code-border": { - "title": "$:/language/Docs/PaletteColours/code-border", - "text": "Code border" - }, - "$:/language/Docs/PaletteColours/code-foreground": { - "title": "$:/language/Docs/PaletteColours/code-foreground", - "text": "Code foreground" - }, - "$:/language/Docs/PaletteColours/download-background": { - "title": "$:/language/Docs/PaletteColours/download-background", - "text": "Download button background" - }, - "$:/language/Docs/PaletteColours/download-foreground": { - "title": "$:/language/Docs/PaletteColours/download-foreground", - "text": "Download button foreground" - }, - "$:/language/Docs/PaletteColours/dragger-background": { - "title": "$:/language/Docs/PaletteColours/dragger-background", - "text": "Dragger background" - }, - "$:/language/Docs/PaletteColours/dragger-foreground": { - "title": "$:/language/Docs/PaletteColours/dragger-foreground", - "text": "Dragger foreground" - }, - "$:/language/Docs/PaletteColours/dropdown-background": { - "title": "$:/language/Docs/PaletteColours/dropdown-background", - "text": "Dropdown background" - }, - "$:/language/Docs/PaletteColours/dropdown-border": { - "title": "$:/language/Docs/PaletteColours/dropdown-border", - "text": "Dropdown border" - }, - "$:/language/Docs/PaletteColours/dropdown-tab-background-selected": { - "title": "$:/language/Docs/PaletteColours/dropdown-tab-background-selected", - "text": "Dropdown tab background for selected tabs" - }, - "$:/language/Docs/PaletteColours/dropdown-tab-background": { - "title": "$:/language/Docs/PaletteColours/dropdown-tab-background", - "text": "Dropdown tab background" - }, - "$:/language/Docs/PaletteColours/dropzone-background": { - "title": "$:/language/Docs/PaletteColours/dropzone-background", - "text": "Dropzone background" - }, - "$:/language/Docs/PaletteColours/external-link-background-hover": { - "title": "$:/language/Docs/PaletteColours/external-link-background-hover", - "text": "External link background hover" - }, - "$:/language/Docs/PaletteColours/external-link-background-visited": { - "title": "$:/language/Docs/PaletteColours/external-link-background-visited", - "text": "External link background visited" - }, - "$:/language/Docs/PaletteColours/external-link-background": { - "title": "$:/language/Docs/PaletteColours/external-link-background", - "text": "External link background" - }, - "$:/language/Docs/PaletteColours/external-link-foreground-hover": { - "title": "$:/language/Docs/PaletteColours/external-link-foreground-hover", - "text": "External link foreground hover" - }, - "$:/language/Docs/PaletteColours/external-link-foreground-visited": { - "title": "$:/language/Docs/PaletteColours/external-link-foreground-visited", - "text": "External link foreground visited" - }, - "$:/language/Docs/PaletteColours/external-link-foreground": { - "title": "$:/language/Docs/PaletteColours/external-link-foreground", - "text": "External link foreground" - }, - "$:/language/Docs/PaletteColours/foreground": { - "title": "$:/language/Docs/PaletteColours/foreground", - "text": "General foreground" - }, - "$:/language/Docs/PaletteColours/menubar-background": { - "title": "$:/language/Docs/PaletteColours/menubar-background", - "text": "Menu bar background" - }, - "$:/language/Docs/PaletteColours/menubar-foreground": { - "title": "$:/language/Docs/PaletteColours/menubar-foreground", - "text": "Menu bar foreground" - }, - "$:/language/Docs/PaletteColours/message-background": { - "title": "$:/language/Docs/PaletteColours/message-background", - "text": "Message box background" - }, - "$:/language/Docs/PaletteColours/message-border": { - "title": "$:/language/Docs/PaletteColours/message-border", - "text": "Message box border" - }, - "$:/language/Docs/PaletteColours/message-foreground": { - "title": "$:/language/Docs/PaletteColours/message-foreground", - "text": "Message box foreground" - }, - "$:/language/Docs/PaletteColours/modal-backdrop": { - "title": "$:/language/Docs/PaletteColours/modal-backdrop", - "text": "Modal backdrop" - }, - "$:/language/Docs/PaletteColours/modal-background": { - "title": "$:/language/Docs/PaletteColours/modal-background", - "text": "Modal background" - }, - "$:/language/Docs/PaletteColours/modal-border": { - "title": "$:/language/Docs/PaletteColours/modal-border", - "text": "Modal border" - }, - "$:/language/Docs/PaletteColours/modal-footer-background": { - "title": "$:/language/Docs/PaletteColours/modal-footer-background", - "text": "Modal footer background" - }, - "$:/language/Docs/PaletteColours/modal-footer-border": { - "title": "$:/language/Docs/PaletteColours/modal-footer-border", - "text": "Modal footer border" - }, - "$:/language/Docs/PaletteColours/modal-header-border": { - "title": "$:/language/Docs/PaletteColours/modal-header-border", - "text": "Modal header border" - }, - "$:/language/Docs/PaletteColours/muted-foreground": { - "title": "$:/language/Docs/PaletteColours/muted-foreground", - "text": "General muted foreground" - }, - "$:/language/Docs/PaletteColours/notification-background": { - "title": "$:/language/Docs/PaletteColours/notification-background", - "text": "Notification background" - }, - "$:/language/Docs/PaletteColours/notification-border": { - "title": "$:/language/Docs/PaletteColours/notification-border", - "text": "Notification border" - }, - "$:/language/Docs/PaletteColours/page-background": { - "title": "$:/language/Docs/PaletteColours/page-background", - "text": "Page background" - }, - "$:/language/Docs/PaletteColours/pre-background": { - "title": "$:/language/Docs/PaletteColours/pre-background", - "text": "Preformatted code background" - }, - "$:/language/Docs/PaletteColours/pre-border": { - "title": "$:/language/Docs/PaletteColours/pre-border", - "text": "Preformatted code border" - }, - "$:/language/Docs/PaletteColours/primary": { - "title": "$:/language/Docs/PaletteColours/primary", - "text": "General primary" - }, - "$:/language/Docs/PaletteColours/select-tag-background": { - "title": "$:/language/Docs/PaletteColours/select-tag-background", - "text": "`<select>` element background" - }, - "$:/language/Docs/PaletteColours/select-tag-foreground": { - "title": "$:/language/Docs/PaletteColours/select-tag-foreground", - "text": "`<select>` element text" - }, - "$:/language/Docs/PaletteColours/sidebar-button-foreground": { - "title": "$:/language/Docs/PaletteColours/sidebar-button-foreground", - "text": "Sidebar button foreground" - }, - "$:/language/Docs/PaletteColours/sidebar-controls-foreground-hover": { - "title": "$:/language/Docs/PaletteColours/sidebar-controls-foreground-hover", - "text": "Sidebar controls foreground hover" - }, - "$:/language/Docs/PaletteColours/sidebar-controls-foreground": { - "title": "$:/language/Docs/PaletteColours/sidebar-controls-foreground", - "text": "Sidebar controls foreground" - }, - "$:/language/Docs/PaletteColours/sidebar-foreground-shadow": { - "title": "$:/language/Docs/PaletteColours/sidebar-foreground-shadow", - "text": "Sidebar foreground shadow" - }, - "$:/language/Docs/PaletteColours/sidebar-foreground": { - "title": "$:/language/Docs/PaletteColours/sidebar-foreground", - "text": "Sidebar foreground" - }, - "$:/language/Docs/PaletteColours/sidebar-muted-foreground-hover": { - "title": "$:/language/Docs/PaletteColours/sidebar-muted-foreground-hover", - "text": "Sidebar muted foreground hover" - }, - "$:/language/Docs/PaletteColours/sidebar-muted-foreground": { - "title": "$:/language/Docs/PaletteColours/sidebar-muted-foreground", - "text": "Sidebar muted foreground" - }, - "$:/language/Docs/PaletteColours/sidebar-tab-background-selected": { - "title": "$:/language/Docs/PaletteColours/sidebar-tab-background-selected", - "text": "Sidebar tab background for selected tabs" - }, - "$:/language/Docs/PaletteColours/sidebar-tab-background": { - "title": "$:/language/Docs/PaletteColours/sidebar-tab-background", - "text": "Sidebar tab background" - }, - "$:/language/Docs/PaletteColours/sidebar-tab-border-selected": { - "title": "$:/language/Docs/PaletteColours/sidebar-tab-border-selected", - "text": "Sidebar tab border for selected tabs" - }, - "$:/language/Docs/PaletteColours/sidebar-tab-border": { - "title": "$:/language/Docs/PaletteColours/sidebar-tab-border", - "text": "Sidebar tab border" - }, - "$:/language/Docs/PaletteColours/sidebar-tab-divider": { - "title": "$:/language/Docs/PaletteColours/sidebar-tab-divider", - "text": "Sidebar tab divider" - }, - "$:/language/Docs/PaletteColours/sidebar-tab-foreground-selected": { - "title": "$:/language/Docs/PaletteColours/sidebar-tab-foreground-selected", - "text": "Sidebar tab foreground for selected tabs" - }, - "$:/language/Docs/PaletteColours/sidebar-tab-foreground": { - "title": "$:/language/Docs/PaletteColours/sidebar-tab-foreground", - "text": "Sidebar tab foreground" - }, - "$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground-hover": { - "title": "$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground-hover", - "text": "Sidebar tiddler link foreground hover" - }, - "$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground": { - "title": "$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground", - "text": "Sidebar tiddler link foreground" - }, - "$:/language/Docs/PaletteColours/site-title-foreground": { - "title": "$:/language/Docs/PaletteColours/site-title-foreground", - "text": "Site title foreground" - }, - "$:/language/Docs/PaletteColours/static-alert-foreground": { - "title": "$:/language/Docs/PaletteColours/static-alert-foreground", - "text": "Static alert foreground" - }, - "$:/language/Docs/PaletteColours/tab-background-selected": { - "title": "$:/language/Docs/PaletteColours/tab-background-selected", - "text": "Tab background for selected tabs" - }, - "$:/language/Docs/PaletteColours/tab-background": { - "title": "$:/language/Docs/PaletteColours/tab-background", - "text": "Tab background" - }, - "$:/language/Docs/PaletteColours/tab-border-selected": { - "title": "$:/language/Docs/PaletteColours/tab-border-selected", - "text": "Tab border for selected tabs" - }, - "$:/language/Docs/PaletteColours/tab-border": { - "title": "$:/language/Docs/PaletteColours/tab-border", - "text": "Tab border" - }, - "$:/language/Docs/PaletteColours/tab-divider": { - "title": "$:/language/Docs/PaletteColours/tab-divider", - "text": "Tab divider" - }, - "$:/language/Docs/PaletteColours/tab-foreground-selected": { - "title": "$:/language/Docs/PaletteColours/tab-foreground-selected", - "text": "Tab foreground for selected tabs" - }, - "$:/language/Docs/PaletteColours/tab-foreground": { - "title": "$:/language/Docs/PaletteColours/tab-foreground", - "text": "Tab foreground" - }, - "$:/language/Docs/PaletteColours/table-border": { - "title": "$:/language/Docs/PaletteColours/table-border", - "text": "Table border" - }, - "$:/language/Docs/PaletteColours/table-footer-background": { - "title": "$:/language/Docs/PaletteColours/table-footer-background", - "text": "Table footer background" - }, - "$:/language/Docs/PaletteColours/table-header-background": { - "title": "$:/language/Docs/PaletteColours/table-header-background", - "text": "Table header background" - }, - "$:/language/Docs/PaletteColours/tag-background": { - "title": "$:/language/Docs/PaletteColours/tag-background", - "text": "Tag background" - }, - "$:/language/Docs/PaletteColours/tag-foreground": { - "title": "$:/language/Docs/PaletteColours/tag-foreground", - "text": "Tag foreground" - }, - "$:/language/Docs/PaletteColours/tiddler-background": { - "title": "$:/language/Docs/PaletteColours/tiddler-background", - "text": "Tiddler background" - }, - "$:/language/Docs/PaletteColours/tiddler-border": { - "title": "$:/language/Docs/PaletteColours/tiddler-border", - "text": "Tiddler border" - }, - "$:/language/Docs/PaletteColours/tiddler-controls-foreground-hover": { - "title": "$:/language/Docs/PaletteColours/tiddler-controls-foreground-hover", - "text": "Tiddler controls foreground hover" - }, - "$:/language/Docs/PaletteColours/tiddler-controls-foreground-selected": { - "title": "$:/language/Docs/PaletteColours/tiddler-controls-foreground-selected", - "text": "Tiddler controls foreground for selected controls" - }, - "$:/language/Docs/PaletteColours/tiddler-controls-foreground": { - "title": "$:/language/Docs/PaletteColours/tiddler-controls-foreground", - "text": "Tiddler controls foreground" - }, - "$:/language/Docs/PaletteColours/tiddler-editor-background": { - "title": "$:/language/Docs/PaletteColours/tiddler-editor-background", - "text": "Tiddler editor background" - }, - "$:/language/Docs/PaletteColours/tiddler-editor-border-image": { - "title": "$:/language/Docs/PaletteColours/tiddler-editor-border-image", - "text": "Tiddler editor border image" - }, - "$:/language/Docs/PaletteColours/tiddler-editor-border": { - "title": "$:/language/Docs/PaletteColours/tiddler-editor-border", - "text": "Tiddler editor border" - }, - "$:/language/Docs/PaletteColours/tiddler-editor-fields-even": { - "title": "$:/language/Docs/PaletteColours/tiddler-editor-fields-even", - "text": "Tiddler editor background for even fields" - }, - "$:/language/Docs/PaletteColours/tiddler-editor-fields-odd": { - "title": "$:/language/Docs/PaletteColours/tiddler-editor-fields-odd", - "text": "Tiddler editor background for odd fields" - }, - "$:/language/Docs/PaletteColours/tiddler-info-background": { - "title": "$:/language/Docs/PaletteColours/tiddler-info-background", - "text": "Tiddler info panel background" - }, - "$:/language/Docs/PaletteColours/tiddler-info-border": { - "title": "$:/language/Docs/PaletteColours/tiddler-info-border", - "text": "Tiddler info panel border" - }, - "$:/language/Docs/PaletteColours/tiddler-info-tab-background": { - "title": "$:/language/Docs/PaletteColours/tiddler-info-tab-background", - "text": "Tiddler info panel tab background" - }, - "$:/language/Docs/PaletteColours/tiddler-link-background": { - "title": "$:/language/Docs/PaletteColours/tiddler-link-background", - "text": "Tiddler link background" - }, - "$:/language/Docs/PaletteColours/tiddler-link-foreground": { - "title": "$:/language/Docs/PaletteColours/tiddler-link-foreground", - "text": "Tiddler link foreground" - }, - "$:/language/Docs/PaletteColours/tiddler-subtitle-foreground": { - "title": "$:/language/Docs/PaletteColours/tiddler-subtitle-foreground", - "text": "Tiddler subtitle foreground" - }, - "$:/language/Docs/PaletteColours/tiddler-title-foreground": { - "title": "$:/language/Docs/PaletteColours/tiddler-title-foreground", - "text": "Tiddler title foreground" - }, - "$:/language/Docs/PaletteColours/toolbar-new-button": { - "title": "$:/language/Docs/PaletteColours/toolbar-new-button", - "text": "Toolbar 'new tiddler' button foreground" - }, - "$:/language/Docs/PaletteColours/toolbar-options-button": { - "title": "$:/language/Docs/PaletteColours/toolbar-options-button", - "text": "Toolbar 'options' button foreground" - }, - "$:/language/Docs/PaletteColours/toolbar-save-button": { - "title": "$:/language/Docs/PaletteColours/toolbar-save-button", - "text": "Toolbar 'save' button foreground" - }, - "$:/language/Docs/PaletteColours/toolbar-info-button": { - "title": "$:/language/Docs/PaletteColours/toolbar-info-button", - "text": "Toolbar 'info' button foreground" - }, - "$:/language/Docs/PaletteColours/toolbar-edit-button": { - "title": "$:/language/Docs/PaletteColours/toolbar-edit-button", - "text": "Toolbar 'edit' button foreground" - }, - "$:/language/Docs/PaletteColours/toolbar-close-button": { - "title": "$:/language/Docs/PaletteColours/toolbar-close-button", - "text": "Toolbar 'close' button foreground" - }, - "$:/language/Docs/PaletteColours/toolbar-delete-button": { - "title": "$:/language/Docs/PaletteColours/toolbar-delete-button", - "text": "Toolbar 'delete' button foreground" - }, - "$:/language/Docs/PaletteColours/toolbar-cancel-button": { - "title": "$:/language/Docs/PaletteColours/toolbar-cancel-button", - "text": "Toolbar 'cancel' button foreground" - }, - "$:/language/Docs/PaletteColours/toolbar-done-button": { - "title": "$:/language/Docs/PaletteColours/toolbar-done-button", - "text": "Toolbar 'done' button foreground" - }, - "$:/language/Docs/PaletteColours/untagged-background": { - "title": "$:/language/Docs/PaletteColours/untagged-background", - "text": "Untagged pill background" - }, - "$:/language/Docs/PaletteColours/very-muted-foreground": { - "title": "$:/language/Docs/PaletteColours/very-muted-foreground", - "text": "Very muted foreground" - }, - "$:/language/EditTemplate/Body/External/Hint": { - "title": "$:/language/EditTemplate/Body/External/Hint", - "text": "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" - }, - "$:/language/EditTemplate/Body/Placeholder": { - "title": "$:/language/EditTemplate/Body/Placeholder", - "text": "Type the text for this tiddler" - }, - "$:/language/EditTemplate/Body/Preview/Type/Output": { - "title": "$:/language/EditTemplate/Body/Preview/Type/Output", - "text": "output" - }, - "$:/language/EditTemplate/Field/Remove/Caption": { - "title": "$:/language/EditTemplate/Field/Remove/Caption", - "text": "remove field" - }, - "$:/language/EditTemplate/Field/Remove/Hint": { - "title": "$:/language/EditTemplate/Field/Remove/Hint", - "text": "Remove field" - }, - "$:/language/EditTemplate/Field/Dropdown/Caption": { - "title": "$:/language/EditTemplate/Field/Dropdown/Caption", - "text": "field list" - }, - "$:/language/EditTemplate/Field/Dropdown/Hint": { - "title": "$:/language/EditTemplate/Field/Dropdown/Hint", - "text": "Show field list" - }, - "$:/language/EditTemplate/Fields/Add/Button": { - "title": "$:/language/EditTemplate/Fields/Add/Button", - "text": "add" - }, - "$:/language/EditTemplate/Fields/Add/Button/Hint": { - "title": "$:/language/EditTemplate/Fields/Add/Button/Hint", - "text": "Add the new field to the tiddler" - }, - "$:/language/EditTemplate/Fields/Add/Name/Placeholder": { - "title": "$:/language/EditTemplate/Fields/Add/Name/Placeholder", - "text": "field name" - }, - "$:/language/EditTemplate/Fields/Add/Prompt": { - "title": "$:/language/EditTemplate/Fields/Add/Prompt", - "text": "Add a new field:" - }, - "$:/language/EditTemplate/Fields/Add/Value/Placeholder": { - "title": "$:/language/EditTemplate/Fields/Add/Value/Placeholder", - "text": "field value" - }, - "$:/language/EditTemplate/Fields/Add/Dropdown/System": { - "title": "$:/language/EditTemplate/Fields/Add/Dropdown/System", - "text": "System fields" - }, - "$:/language/EditTemplate/Fields/Add/Dropdown/User": { - "title": "$:/language/EditTemplate/Fields/Add/Dropdown/User", - "text": "User fields" - }, - "$:/language/EditTemplate/Shadow/Warning": { - "title": "$:/language/EditTemplate/Shadow/Warning", - "text": "This is a shadow tiddler. Any changes you make will override the default version from the plugin <<pluginLink>>" - }, - "$:/language/EditTemplate/Shadow/OverriddenWarning": { - "title": "$:/language/EditTemplate/Shadow/OverriddenWarning", - "text": "This is a modified shadow tiddler. You can revert to the default version in the plugin <<pluginLink>> by deleting this tiddler" - }, - "$:/language/EditTemplate/Tags/Add/Button": { - "title": "$:/language/EditTemplate/Tags/Add/Button", - "text": "add" - }, - "$:/language/EditTemplate/Tags/Add/Button/Hint": { - "title": "$:/language/EditTemplate/Tags/Add/Button/Hint", - "text": "add tag" - }, - "$:/language/EditTemplate/Tags/Add/Placeholder": { - "title": "$:/language/EditTemplate/Tags/Add/Placeholder", - "text": "tag name" - }, - "$:/language/EditTemplate/Tags/ClearInput/Caption": { - "title": "$:/language/EditTemplate/Tags/ClearInput/Caption", - "text": "clear input" - }, - "$:/language/EditTemplate/Tags/ClearInput/Hint": { - "title": "$:/language/EditTemplate/Tags/ClearInput/Hint", - "text": "Clear tag input" - }, - "$:/language/EditTemplate/Tags/Dropdown/Caption": { - "title": "$:/language/EditTemplate/Tags/Dropdown/Caption", - "text": "tag list" - }, - "$:/language/EditTemplate/Tags/Dropdown/Hint": { - "title": "$:/language/EditTemplate/Tags/Dropdown/Hint", - "text": "Show tag list" - }, - "$:/language/EditTemplate/Title/BadCharacterWarning": { - "title": "$:/language/EditTemplate/Title/BadCharacterWarning", - "text": "Warning: avoid using any of the characters <<bad-chars>> in tiddler titles" - }, - "$:/language/EditTemplate/Title/Exists/Prompt": { - "title": "$:/language/EditTemplate/Title/Exists/Prompt", - "text": "Target tiddler already exists" - }, - "$:/language/EditTemplate/Title/Relink/Prompt": { - "title": "$:/language/EditTemplate/Title/Relink/Prompt", - "text": "Update ''<$text text=<<fromTitle>>/>'' to ''<$text text=<<toTitle>>/>'' in the //tags// and //list// fields of other tiddlers" - }, - "$:/language/EditTemplate/Title/References/Prompt": { - "title": "$:/language/EditTemplate/Title/References/Prompt", - "text": "The following references to this tiddler will not be automatically updated:" - }, - "$:/language/EditTemplate/Type/Dropdown/Caption": { - "title": "$:/language/EditTemplate/Type/Dropdown/Caption", - "text": "content type list" - }, - "$:/language/EditTemplate/Type/Dropdown/Hint": { - "title": "$:/language/EditTemplate/Type/Dropdown/Hint", - "text": "Show content type list" - }, - "$:/language/EditTemplate/Type/Delete/Caption": { - "title": "$:/language/EditTemplate/Type/Delete/Caption", - "text": "delete content type" - }, - "$:/language/EditTemplate/Type/Delete/Hint": { - "title": "$:/language/EditTemplate/Type/Delete/Hint", - "text": "Delete content type" - }, - "$:/language/EditTemplate/Type/Placeholder": { - "title": "$:/language/EditTemplate/Type/Placeholder", - "text": "content type" - }, - "$:/language/EditTemplate/Type/Prompt": { - "title": "$:/language/EditTemplate/Type/Prompt", - "text": "Type:" - }, - "$:/language/Exporters/StaticRiver": { - "title": "$:/language/Exporters/StaticRiver", - "text": "Static HTML" - }, - "$:/language/Exporters/JsonFile": { - "title": "$:/language/Exporters/JsonFile", - "text": "JSON file" - }, - "$:/language/Exporters/CsvFile": { - "title": "$:/language/Exporters/CsvFile", - "text": "CSV file" - }, - "$:/language/Exporters/TidFile": { - "title": "$:/language/Exporters/TidFile", - "text": "\".tid\" file" - }, - "$:/language/Docs/Fields/_canonical_uri": { - "title": "$:/language/Docs/Fields/_canonical_uri", - "text": "The full URI of an external image tiddler" - }, - "$:/language/Docs/Fields/bag": { - "title": "$:/language/Docs/Fields/bag", - "text": "The name of the bag from which a tiddler came" - }, - "$:/language/Docs/Fields/caption": { - "title": "$:/language/Docs/Fields/caption", - "text": "The text to be displayed on a tab or button" - }, - "$:/language/Docs/Fields/color": { - "title": "$:/language/Docs/Fields/color", - "text": "The CSS color value associated with a tiddler" - }, - "$:/language/Docs/Fields/component": { - "title": "$:/language/Docs/Fields/component", - "text": "The name of the component responsible for an [[alert tiddler|AlertMechanism]]" - }, - "$:/language/Docs/Fields/current-tiddler": { - "title": "$:/language/Docs/Fields/current-tiddler", - "text": "Used to cache the top tiddler in a [[history list|HistoryMechanism]]" - }, - "$:/language/Docs/Fields/created": { - "title": "$:/language/Docs/Fields/created", - "text": "The date a tiddler was created" - }, - "$:/language/Docs/Fields/creator": { - "title": "$:/language/Docs/Fields/creator", - "text": "The name of the person who created a tiddler" - }, - "$:/language/Docs/Fields/dependents": { - "title": "$:/language/Docs/Fields/dependents", - "text": "For a plugin, lists the dependent plugin titles" - }, - "$:/language/Docs/Fields/description": { - "title": "$:/language/Docs/Fields/description", - "text": "The descriptive text for a plugin, or a modal dialogue" - }, - "$:/language/Docs/Fields/draft.of": { - "title": "$:/language/Docs/Fields/draft.of", - "text": "For draft tiddlers, contains the title of the tiddler of which this is a draft" - }, - "$:/language/Docs/Fields/draft.title": { - "title": "$:/language/Docs/Fields/draft.title", - "text": "For draft tiddlers, contains the proposed new title of the tiddler" - }, - "$:/language/Docs/Fields/footer": { - "title": "$:/language/Docs/Fields/footer", - "text": "The footer text for a wizard" - }, - "$:/language/Docs/Fields/hide-body": { - "title": "$:/language/Docs/Fields/hide-body", - "text": "The view template will hide bodies of tiddlers if set to: ''yes''" - }, - "$:/language/Docs/Fields/icon": { - "title": "$:/language/Docs/Fields/icon", - "text": "The title of the tiddler containing the icon associated with a tiddler" - }, - "$:/language/Docs/Fields/library": { - "title": "$:/language/Docs/Fields/library", - "text": "Indicates that a tiddler should be saved as a JavaScript library if set to: ''yes''" - }, - "$:/language/Docs/Fields/list": { - "title": "$:/language/Docs/Fields/list", - "text": "An ordered list of tiddler titles associated with a tiddler" - }, - "$:/language/Docs/Fields/list-before": { - "title": "$:/language/Docs/Fields/list-before", - "text": "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" - }, - "$:/language/Docs/Fields/list-after": { - "title": "$:/language/Docs/Fields/list-after", - "text": "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" - }, - "$:/language/Docs/Fields/modified": { - "title": "$:/language/Docs/Fields/modified", - "text": "The date and time at which a tiddler was last modified" - }, - "$:/language/Docs/Fields/modifier": { - "title": "$:/language/Docs/Fields/modifier", - "text": "The tiddler title associated with the person who last modified a tiddler" - }, - "$:/language/Docs/Fields/name": { - "title": "$:/language/Docs/Fields/name", - "text": "The human readable name associated with a plugin tiddler" - }, - "$:/language/Docs/Fields/plugin-priority": { - "title": "$:/language/Docs/Fields/plugin-priority", - "text": "A numerical value indicating the priority of a plugin tiddler" - }, - "$:/language/Docs/Fields/plugin-type": { - "title": "$:/language/Docs/Fields/plugin-type", - "text": "The type of plugin in a plugin tiddler" - }, - "$:/language/Docs/Fields/revision": { - "title": "$:/language/Docs/Fields/revision", - "text": "The revision of the tiddler held at the server" - }, - "$:/language/Docs/Fields/released": { - "title": "$:/language/Docs/Fields/released", - "text": "Date of a TiddlyWiki release" - }, - "$:/language/Docs/Fields/source": { - "title": "$:/language/Docs/Fields/source", - "text": "The source URL associated with a tiddler" - }, - "$:/language/Docs/Fields/subtitle": { - "title": "$:/language/Docs/Fields/subtitle", - "text": "The subtitle text for a wizard" - }, - "$:/language/Docs/Fields/tags": { - "title": "$:/language/Docs/Fields/tags", - "text": "A list of tags associated with a tiddler" - }, - "$:/language/Docs/Fields/text": { - "title": "$:/language/Docs/Fields/text", - "text": "The body text of a tiddler" - }, - "$:/language/Docs/Fields/throttle.refresh": { - "title": "$:/language/Docs/Fields/throttle.refresh", - "text": "If present, throttles refreshes of this tiddler" - }, - "$:/language/Docs/Fields/title": { - "title": "$:/language/Docs/Fields/title", - "text": "The unique name of a tiddler" - }, - "$:/language/Docs/Fields/toc-link": { - "title": "$:/language/Docs/Fields/toc-link", - "text": "Suppresses the tiddler's link in a Table of Contents tree if set to: ''no''" - }, - "$:/language/Docs/Fields/type": { - "title": "$:/language/Docs/Fields/type", - "text": "The content type of a tiddler" - }, - "$:/language/Docs/Fields/version": { - "title": "$:/language/Docs/Fields/version", - "text": "Version information for a plugin" - }, - "$:/language/Docs/Fields/_is_skinny": { - "title": "$:/language/Docs/Fields/_is_skinny", - "text": "If present, indicates that the tiddler text field must be loaded from the server" - }, - "$:/language/Filters/AllTiddlers": { - "title": "$:/language/Filters/AllTiddlers", - "text": "All tiddlers except system tiddlers" - }, - "$:/language/Filters/RecentSystemTiddlers": { - "title": "$:/language/Filters/RecentSystemTiddlers", - "text": "Recently modified tiddlers, including system tiddlers" - }, - "$:/language/Filters/RecentTiddlers": { - "title": "$:/language/Filters/RecentTiddlers", - "text": "Recently modified tiddlers" - }, - "$:/language/Filters/AllTags": { - "title": "$:/language/Filters/AllTags", - "text": "All tags except system tags" - }, - "$:/language/Filters/Missing": { - "title": "$:/language/Filters/Missing", - "text": "Missing tiddlers" - }, - "$:/language/Filters/Drafts": { - "title": "$:/language/Filters/Drafts", - "text": "Draft tiddlers" - }, - "$:/language/Filters/Orphans": { - "title": "$:/language/Filters/Orphans", - "text": "Orphan tiddlers" - }, - "$:/language/Filters/SystemTiddlers": { - "title": "$:/language/Filters/SystemTiddlers", - "text": "System tiddlers" - }, - "$:/language/Filters/ShadowTiddlers": { - "title": "$:/language/Filters/ShadowTiddlers", - "text": "Shadow tiddlers" - }, - "$:/language/Filters/OverriddenShadowTiddlers": { - "title": "$:/language/Filters/OverriddenShadowTiddlers", - "text": "Overridden shadow tiddlers" - }, - "$:/language/Filters/SessionTiddlers": { - "title": "$:/language/Filters/SessionTiddlers", - "text": "Tiddlers modified since the wiki was loaded" - }, - "$:/language/Filters/SystemTags": { - "title": "$:/language/Filters/SystemTags", - "text": "System tags" - }, - "$:/language/Filters/StoryList": { - "title": "$:/language/Filters/StoryList", - "text": "Tiddlers in the story river, excluding <$text text=\"$:/AdvancedSearch\"/>" - }, - "$:/language/Filters/TypedTiddlers": { - "title": "$:/language/Filters/TypedTiddlers", - "text": "Non wiki-text tiddlers" - }, - "GettingStarted": { - "title": "GettingStarted", - "text": "\\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<div class=\"tc-control-panel\">\n\n|<$link to=\"$:/SiteTitle\"><<lingo Title/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteTitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/SiteSubtitle\"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteSubtitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/DefaultTiddlers\"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit tag=\"textarea\" tiddler=\"$:/DefaultTiddlers\"/><br>//<<lingo DefaultTiddlers/BottomHint>>// |\n</div>\n\nSee the [[control panel|$:/ControlPanel]] for more options.\n" - }, - "$:/language/Help/build": { - "title": "$:/language/Help/build", - "description": "Automatically run configured commands", - "text": "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 <target> [<target> ...]\n```\n\nBuild targets are defined in the `tiddlywiki.info` file of a wiki folder.\n\n" - }, - "$:/language/Help/clearpassword": { - "title": "$:/language/Help/clearpassword", - "description": "Clear a password for subsequent crypto operations", - "text": "Clear the password for subsequent crypto operations\n\n```\n--clearpassword\n```\n" - }, - "$:/language/Help/default": { - "title": "$:/language/Help/default", - "text": "\\define commandTitle()\n$:/language/Help/$(command)$\n\\end\n```\nusage: tiddlywiki [<wikifolder>] [--<command> [<args>...]...]\n```\n\nAvailable commands:\n\n<ul>\n<$list filter=\"[commands[]sort[title]]\" variable=\"command\">\n<li><$link to=<<commandTitle>>><$macrocall $name=\"command\" $type=\"text/plain\" $output=\"text/plain\"/></$link>: <$transclude tiddler=<<commandTitle>> field=\"description\"/></li>\n</$list>\n</ul>\n\nTo get detailed help on a command:\n\n```\ntiddlywiki --help <command>\n```\n" - }, - "$:/language/Help/deletetiddlers": { - "title": "$:/language/Help/deletetiddlers", - "description": "Deletes a group of tiddlers", - "text": "<<.from-version \"5.1.20\">> Deletes a group of tiddlers identified by a filter.\n\n```\n--deletetiddlers <filter>\n```\n" - }, - "$:/language/Help/editions": { - "title": "$:/language/Help/editions", - "description": "Lists the available editions of TiddlyWiki", - "text": "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" - }, - "$:/language/Help/fetch": { - "title": "$:/language/Help/fetch", - "description": "Fetch tiddlers from wiki by URL", - "text": "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 <url> <import-filter> <transform-filter>\n--fetch files <url-filter> <import-filter> <transform-filter>\n--fetch raw-file <url> <transform-filter>\n--fetch raw-files <url-filter> <transform-filter>\n```\n\nThe \"file\" and \"files\" 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 \"raw-file\" and \"raw-files\" variants fetch the specified files and then store the raw file data in tiddlers, without applying the import logic.\n\nWith the \"file\" and \"raw-file\" variants only a single file is fetched and the first parameter is the URL of the file to read.\n\nWith the \"files\" and \"raw-files\" 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 \"remote-server\" that have a field \"url\" the filter `[tag[remote-server]get[url]]` will retrieve all the available URLs.\n\nFor the \"file\" and \"files\" variants, the `<import-filter>` parameter specifies a filter determining which tiddlers are imported. It defaults to `[all[tiddlers]]` if not provided.\n\nFor all variants, the `<transform-filter>` 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 \"https://tiddlywiki.com/\" \"[!is[system]]\" \"\" --rendertiddler \"$:/core/templates/exporters/JsonFile\" output.json text/plain \"\" exportFilter \"[!is[system]]\"\n```\n\nThe following example retrieves the \"favicon\" file from tiddlywiki.com and saves it in a file called \"output.ico\". Note that the intermediate tiddler \"Icon Tiddler\" is quoted in the \"--fetch\" command because it is being used as a transformation filter to replace the default title, while there are no quotes for the \"--savetiddler\" command because it is being used directly as a title.\n\n```\ntiddlywiki --verbose --fetch raw-file \"https://tiddlywiki.com/favicon.ico\" \"[[Icon Tiddler]]\" --savetiddler \"Icon Tiddler\" output.ico\n```\n\n" - }, - "$:/language/Help/help": { - "title": "$:/language/Help/help", - "description": "Display help for TiddlyWiki commands", - "text": "Displays help text for a command:\n\n```\n--help [<command>]\n```\n\nIf the command name is omitted then a list of available commands is displayed.\n" - }, - "$:/language/Help/import": { - "title": "$:/language/Help/import", - "description": "Import tiddlers from a file", - "text": "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 <filepath> <deserializer> [<title>] [<encoding>]\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 \"utf8\", but can be \"base64\" for importing binary files.\n\nNote that TiddlyWiki will not import an older version of an already loaded plugin.\n" - }, - "$:/language/Help/init": { - "title": "$:/language/Help/init", - "description": "Initialise a new wiki folder", - "text": "Initialise an empty [[WikiFolder|WikiFolders]] with a copy of the specified edition.\n\n```\n--init <edition> [<edition> ...]\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 \"edition\" 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" - }, - "$:/language/Help/listen": { - "title": "$:/language/Help/listen", - "description": "Provides an HTTP server interface to TiddlyWiki", - "text": "Serves a wiki over HTTP.\n\nThe listen command uses NamedCommandParameters:\n\n```\n--listen [<name>=<value>]...\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 \"127.0.0.1\" aka \"localhost\")\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 \"8080\")\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 \"yes\" to disable CSRF checks (defaults to \"no\")\n* ''root-tiddler'' - the tiddler to serve at the root (defaults to \"$:/core/save/all\")\n* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to \"text/plain\")\n* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to \"text/html\")\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 \"debug\" to view request details (defaults to \"none\")\n* ''gzip'' - set to \"yes\" to enable gzip compression for some http endpoints (defaults to \"no\")\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" - }, - "$:/language/Help/load": { - "title": "$:/language/Help/load", - "description": "Load tiddlers from a file", - "text": "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 <filepath> [noerror]\n--load <dirpath> [noerror]\n```\n\nBy default, the load command raises an error if no tiddlers are found. The error can be suppressed by providing the optional \"noerror\" parameter.\n\nTo load tiddlers from an encrypted TiddlyWiki file you should first specify the password with the PasswordCommand. For example:\n\n```\ntiddlywiki ./MyWiki --password pa55w0rd --load my_encrypted_wiki.html\n```\n\nNote that TiddlyWiki will not load an older version of an already loaded plugin.\n" - }, - "$:/language/Help/makelibrary": { - "title": "$:/language/Help/makelibrary", - "description": "Construct library plugin required by upgrade process", - "text": "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 <title>\n```\n\nThe title argument defaults to `$:/UpgradeLibrary`.\n" - }, - "$:/language/Help/notfound": { - "title": "$:/language/Help/notfound", - "text": "No such help item" - }, - "$:/language/Help/output": { - "title": "$:/language/Help/output", - "description": "Set the base output directory for subsequent commands", - "text": "Sets the base output directory for subsequent commands. The default output directory is the `output` subdirectory of the edition directory.\n\n```\n--output <pathname>\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" - }, - "$:/language/Help/password": { - "title": "$:/language/Help/password", - "description": "Set a password for subsequent crypto operations", - "text": "Set a password for subsequent crypto operations\n\n```\n--password <password>\n```\n\n''Note'': This should not be used for serving TiddlyWiki with password protection. Instead, see the password option under the [[ServerCommand]].\n" - }, - "$:/language/Help/render": { - "title": "$:/language/Help/render", - "description": "Renders individual tiddlers to files", - "text": "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 \"currentTiddler\" 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 <tiddler-filter> [<filename-filter>] [<render-type>] [<template>] [<name>] [<value>]\n```\n\n* ''tiddler-filter'': A filter identifying the tiddler(s) to be rendered\n* ''filename-filter'': Optional filter transforming tiddler titles into pathnames. If omitted, defaults to `[is[tiddler]addsuffix[.html]]`, which uses the unchanged tiddler title as the filename\n* ''render-type'': Optional render type: `text/html` (the default) returns the full HTML text and `text/plain` just returns the text content (ie it ignores HTML tags and other unprintable material)\n* ''template'': Optional template through which each tiddler is rendered\n* ''name'': Name of optional variable\n* ''value'': Value of optional variable\n\nBy default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.\n\nNotes:\n\n* The output directory is not cleared of any existing files\n* Any missing directories in the path to the filename are automatically created.\n* When referring to a tiddler with spaces in its title, take care to use both the quotes required by your shell and also TiddlyWiki's double square brackets : `--render \"[[Motovun Jack.jpg]]\"`\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 \"[!is[system]]\" \"[encodeuricomponent[]addprefix[tiddlers/]addsuffix[.html]]\"` -- renders all non-system tiddlers as files in the subdirectory \"tiddlers\" with URL-encoded titles and the extension HTML\n\n" - }, - "$:/language/Help/rendertiddler": { - "title": "$:/language/Help/rendertiddler", - "description": "Render an individual tiddler as a specified ContentType", - "text": "(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 \"currentTiddler\" 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 <title> <filename> [<type>] [<template>] [<name>] [<value>]\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 \"$:/core/templates/exporters/JsonFile\" output.json text/plain \"\" exportFilter \"[tag[done]]\"\n```\n" - }, - "$:/language/Help/rendertiddlers": { - "title": "$:/language/Help/rendertiddlers", - "description": "Render tiddlers matching a filter to a specified ContentType", - "text": "(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 '<filter>' <template> <pathname> [<type>] [<extension>] [\"noclean\"]\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" - }, - "$:/language/Help/save": { - "title": "$:/language/Help/save", - "description": "Saves individual raw tiddlers to files", - "text": "Saves individual tiddlers identified by a filter in their raw text or binary format to the specified files.\n\n```\n--save <tiddler-filter> <filename-filter>\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 \"[[Motovun Jack.jpg]]\"`\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 \"[!is[system]is[image]]\" \"[encodeuricomponent[]addprefix[tiddlers/]]\"` -- saves all non-system image tiddlers as files in the subdirectory \"tiddlers\" with URL-encoded titles\n" - }, - "$:/language/Help/savetiddler": { - "title": "$:/language/Help/savetiddler", - "description": "Saves a raw tiddler to a file", - "text": "(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 <title> <filename>\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" - }, - "$:/language/Help/savetiddlers": { - "title": "$:/language/Help/savetiddlers", - "description": "Saves a group of raw tiddlers to a directory", - "text": "(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 <filter> <pathname> [\"noclean\"]\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" - }, - "$:/language/Help/savewikifolder": { - "title": "$:/language/Help/savewikifolder", - "description": "Saves a wiki to a new wiki folder", - "text": "<<.from-version \"5.1.20\">> Saves the current wiki as a wiki folder, including tiddlers, plugins and configuration:\n\n```\n--savewikifolder <wikifolderpath> [<filter>]\n```\n\n* The target wiki folder must be empty or non-existent\n* The filter specifies which tiddlers should be included. It is optional, defaulting to `[all[tiddlers]]`\n* Plugins from the official plugin library are replaced with references to those plugins in the `tiddlywiki.info` file\n* Custom plugins are unpacked into their own folder\n\nA common usage is to convert a TiddlyWiki HTML file into a wiki folder:\n\n```\ntiddlywiki --load ./mywiki.html --savewikifolder ./mywikifolder\n```\n" - }, - "$:/language/Help/server": { - "title": "$:/language/Help/server", - "description": "Provides an HTTP server interface to TiddlyWiki (deprecated in favour of the new listen command)", - "text": "Legacy command to serve a wiki over HTTP.\n\n```\n--server <port> <root-tiddler> <root-render-type> <root-serve-type> <username> <password> <host> <path-prefix> <debug-level>\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 \"8080\")\n* ''root-tiddler'' - the tiddler to serve at the root (defaults to \"$:/core/save/all\")\n* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to \"text/plain\")\n* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to \"text/html\")\n* ''username'' - the default username for signing edits\n* ''password'' - optional password for basic authentication\n* ''host'' - optional hostname to serve from (defaults to \"127.0.0.1\" aka \"localhost\")\n* ''path-prefix'' - optional prefix for paths\n* ''debug-level'' - optional debug level; set to \"debug\" to view request details (defaults to \"none\")\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 \"\" \"\" 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 \"MY_PORT_NUMBER\":\n\n```\n--server MY_PORT_NUMBER $:/core/save/all text/plain text/html MyUserName passw0rd\n```\n" - }, - "$:/language/Help/setfield": { - "title": "$:/language/Help/setfield", - "description": "Prepares external tiddlers for use", - "text": "//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 <filter> <fieldname> <templatetitle> <rendertype>\n```\n\nThe parameters are:\n\n* ''filter'' - filter identifying the tiddlers to be affected\n* ''fieldname'' - the field to modify (defaults to \"text\")\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 \"text/plain\"; \"text/html\" can be used to include HTML tags)\n" - }, - "$:/language/Help/unpackplugin": { - "title": "$:/language/Help/unpackplugin", - "description": "Unpack the payload tiddlers from a plugin", - "text": "Extract the payload tiddlers from a plugin, creating them as ordinary tiddlers:\n\n```\n--unpackplugin <title>\n```\n" - }, - "$:/language/Help/verbose": { - "title": "$:/language/Help/verbose", - "description": "Triggers verbose output mode", - "text": "Triggers verbose output, useful for debugging\n\n```\n--verbose\n```\n" - }, - "$:/language/Help/version": { - "title": "$:/language/Help/version", - "description": "Displays the version number of TiddlyWiki", - "text": "Displays the version number of TiddlyWiki.\n\n```\n--version\n```\n" - }, - "$:/language/Import/Imported/Hint": { - "title": "$:/language/Import/Imported/Hint", - "text": "The following tiddlers were imported:" - }, - "$:/language/Import/Listing/Cancel/Caption": { - "title": "$:/language/Import/Listing/Cancel/Caption", - "text": "Cancel" - }, - "$:/language/Import/Listing/Hint": { - "title": "$:/language/Import/Listing/Hint", - "text": "These tiddlers are ready to import:" - }, - "$:/language/Import/Listing/Import/Caption": { - "title": "$:/language/Import/Listing/Import/Caption", - "text": "Import" - }, - "$:/language/Import/Listing/Select/Caption": { - "title": "$:/language/Import/Listing/Select/Caption", - "text": "Select" - }, - "$:/language/Import/Listing/Status/Caption": { - "title": "$:/language/Import/Listing/Status/Caption", - "text": "Status" - }, - "$:/language/Import/Listing/Title/Caption": { - "title": "$:/language/Import/Listing/Title/Caption", - "text": "Title" - }, - "$:/language/Import/Listing/Preview": { - "title": "$:/language/Import/Listing/Preview", - "text": "Preview:" - }, - "$:/language/Import/Listing/Preview/Text": { - "title": "$:/language/Import/Listing/Preview/Text", - "text": "Text" - }, - "$:/language/Import/Listing/Preview/TextRaw": { - "title": "$:/language/Import/Listing/Preview/TextRaw", - "text": "Text (Raw)" - }, - "$:/language/Import/Listing/Preview/Fields": { - "title": "$:/language/Import/Listing/Preview/Fields", - "text": "Fields" - }, - "$:/language/Import/Listing/Preview/Diff": { - "title": "$:/language/Import/Listing/Preview/Diff", - "text": "Diff" - }, - "$:/language/Import/Listing/Preview/DiffFields": { - "title": "$:/language/Import/Listing/Preview/DiffFields", - "text": "Diff (Fields)" - }, - "$:/language/Import/Listing/Rename/Tooltip": { - "title": "$:/language/Import/Listing/Rename/Tooltip", - "text": "Rename tiddler before importing" - }, - "$:/language/Import/Listing/Rename/Prompt": { - "title": "$:/language/Import/Listing/Rename/Prompt", - "text": "Rename to:" - }, - "$:/language/Import/Listing/Rename/ConfirmRename": { - "title": "$:/language/Import/Listing/Rename/ConfirmRename", - "text": "Rename tiddler" - }, - "$:/language/Import/Listing/Rename/CancelRename": { - "title": "$:/language/Import/Listing/Rename/CancelRename", - "text": "Cancel" - }, - "$:/language/Import/Listing/Rename/OverwriteWarning": { - "title": "$:/language/Import/Listing/Rename/OverwriteWarning", - "text": "A tiddler with this title already exists." - }, - "$:/language/Import/Upgrader/Plugins/Suppressed/Incompatible": { - "title": "$:/language/Import/Upgrader/Plugins/Suppressed/Incompatible", - "text": "Blocked incompatible or obsolete plugin." - }, - "$:/language/Import/Upgrader/Plugins/Suppressed/Version": { - "title": "$:/language/Import/Upgrader/Plugins/Suppressed/Version", - "text": "Blocked plugin (due to incoming <<incoming>> not being newer than existing <<existing>>)." - }, - "$:/language/Import/Upgrader/Plugins/Upgraded": { - "title": "$:/language/Import/Upgrader/Plugins/Upgraded", - "text": "Upgraded plugin from <<incoming>> to <<upgraded>>." - }, - "$:/language/Import/Upgrader/State/Suppressed": { - "title": "$:/language/Import/Upgrader/State/Suppressed", - "text": "Blocked temporary state tiddler." - }, - "$:/language/Import/Upgrader/System/Suppressed": { - "title": "$:/language/Import/Upgrader/System/Suppressed", - "text": "Blocked system tiddler." - }, - "$:/language/Import/Upgrader/System/Warning": { - "title": "$:/language/Import/Upgrader/System/Warning", - "text": "Core module tiddler." - }, - "$:/language/Import/Upgrader/System/Alert": { - "title": "$:/language/Import/Upgrader/System/Alert", - "text": "You are about to import a tiddler that will overwrite a core module tiddler. This is not recommended as it may make the system unstable." - }, - "$:/language/Import/Upgrader/ThemeTweaks/Created": { - "title": "$:/language/Import/Upgrader/ThemeTweaks/Created", - "text": "Migrated theme tweak from <$text text=<<from>>/>." - }, - "$:/language/AboveStory/ClassicPlugin/Warning": { - "title": "$:/language/AboveStory/ClassicPlugin/Warning", - "text": "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:" - }, - "$:/language/BinaryWarning/Prompt": { - "title": "$:/language/BinaryWarning/Prompt", - "text": "This tiddler contains binary data" - }, - "$:/language/ClassicWarning/Hint": { - "title": "$:/language/ClassicWarning/Hint", - "text": "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." - }, - "$:/language/ClassicWarning/Upgrade/Caption": { - "title": "$:/language/ClassicWarning/Upgrade/Caption", - "text": "upgrade" - }, - "$:/language/CloseAll/Button": { - "title": "$:/language/CloseAll/Button", - "text": "close all" - }, - "$:/language/ColourPicker/Recent": { - "title": "$:/language/ColourPicker/Recent", - "text": "Recent:" - }, - "$:/language/ConfirmCancelTiddler": { - "title": "$:/language/ConfirmCancelTiddler", - "text": "Do you wish to discard changes to the tiddler \"<$text text=<<title>>/>\"?" - }, - "$:/language/ConfirmDeleteTiddler": { - "title": "$:/language/ConfirmDeleteTiddler", - "text": "Do you wish to delete the tiddler \"<$text text=<<title>>/>\"?" - }, - "$:/language/ConfirmOverwriteTiddler": { - "title": "$:/language/ConfirmOverwriteTiddler", - "text": "Do you wish to overwrite the tiddler \"<$text text=<<title>>/>\"?" - }, - "$:/language/ConfirmEditShadowTiddler": { - "title": "$:/language/ConfirmEditShadowTiddler", - "text": "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 \"<$text text=<<title>>/>\"?" - }, - "$:/language/ConfirmAction": { - "title": "$:/language/ConfirmAction", - "text": "Do you wish to proceed?" - }, - "$:/language/Count": { - "title": "$:/language/Count", - "text": "count" - }, - "$:/language/DefaultNewTiddlerTitle": { - "title": "$:/language/DefaultNewTiddlerTitle", - "text": "New Tiddler" - }, - "$:/language/Diffs/CountMessage": { - "title": "$:/language/Diffs/CountMessage", - "text": "<<diff-count>> differences" - }, - "$:/language/DropMessage": { - "title": "$:/language/DropMessage", - "text": "Drop here (or use the 'Escape' key to cancel)" - }, - "$:/language/Encryption/Cancel": { - "title": "$:/language/Encryption/Cancel", - "text": "Cancel" - }, - "$:/language/Encryption/ConfirmClearPassword": { - "title": "$:/language/Encryption/ConfirmClearPassword", - "text": "Do you wish to clear the password? This will remove the encryption applied when saving this wiki" - }, - "$:/language/Encryption/PromptSetPassword": { - "title": "$:/language/Encryption/PromptSetPassword", - "text": "Set a new password for this TiddlyWiki" - }, - "$:/language/Encryption/Username": { - "title": "$:/language/Encryption/Username", - "text": "Username" - }, - "$:/language/Encryption/Password": { - "title": "$:/language/Encryption/Password", - "text": "Password" - }, - "$:/language/Encryption/RepeatPassword": { - "title": "$:/language/Encryption/RepeatPassword", - "text": "Repeat password" - }, - "$:/language/Encryption/PasswordNoMatch": { - "title": "$:/language/Encryption/PasswordNoMatch", - "text": "Passwords do not match" - }, - "$:/language/Encryption/SetPassword": { - "title": "$:/language/Encryption/SetPassword", - "text": "Set password" - }, - "$:/language/Error/Caption": { - "title": "$:/language/Error/Caption", - "text": "Error" - }, - "$:/language/Error/EditConflict": { - "title": "$:/language/Error/EditConflict", - "text": "File changed on server" - }, - "$:/language/Error/Filter": { - "title": "$:/language/Error/Filter", - "text": "Filter error" - }, - "$:/language/Error/FilterSyntax": { - "title": "$:/language/Error/FilterSyntax", - "text": "Syntax error in filter expression" - }, - "$:/language/Error/FilterRunPrefix": { - "title": "$:/language/Error/FilterRunPrefix", - "text": "Filter Error: Unknown prefix for filter run" - }, - "$:/language/Error/IsFilterOperator": { - "title": "$:/language/Error/IsFilterOperator", - "text": "Filter Error: Unknown operand for the 'is' filter operator" - }, - "$:/language/Error/FormatFilterOperator": { - "title": "$:/language/Error/FormatFilterOperator", - "text": "Filter Error: Unknown suffix for the 'format' filter operator" - }, - "$:/language/Error/LoadingPluginLibrary": { - "title": "$:/language/Error/LoadingPluginLibrary", - "text": "Error loading plugin library" - }, - "$:/language/Error/NetworkErrorAlert": { - "title": "$:/language/Error/NetworkErrorAlert", - "text": "`<h2>''Network Error''</h2>It looks like the connection to the server has been lost. This may indicate a problem with your network connection. Please attempt to restore network connectivity before continuing.<br><br>''Any unsaved changes will be automatically synchronised when connectivity is restored''.`" - }, - "$:/language/Error/RecursiveTransclusion": { - "title": "$:/language/Error/RecursiveTransclusion", - "text": "Recursive transclusion error in transclude widget" - }, - "$:/language/Error/RetrievingSkinny": { - "title": "$:/language/Error/RetrievingSkinny", - "text": "Error retrieving skinny tiddler list" - }, - "$:/language/Error/SavingToTWEdit": { - "title": "$:/language/Error/SavingToTWEdit", - "text": "Error saving to TWEdit" - }, - "$:/language/Error/WhileSaving": { - "title": "$:/language/Error/WhileSaving", - "text": "Error while saving" - }, - "$:/language/Error/XMLHttpRequest": { - "title": "$:/language/Error/XMLHttpRequest", - "text": "XMLHttpRequest error code" - }, - "$:/language/InternalJavaScriptError/Title": { - "title": "$:/language/InternalJavaScriptError/Title", - "text": "Internal JavaScript Error" - }, - "$:/language/InternalJavaScriptError/Hint": { - "title": "$:/language/InternalJavaScriptError/Hint", - "text": "Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser" - }, - "$:/language/InvalidFieldName": { - "title": "$:/language/InvalidFieldName", - "text": "Illegal characters in field name \"<$text text=<<fieldName>>/>\". Fields can only contain lowercase letters, digits and the characters underscore (`_`), hyphen (`-`) and period (`.`)" - }, - "$:/language/LayoutSwitcher/Description": { - "title": "$:/language/LayoutSwitcher/Description", - "text": "Open the layout switcher" - }, - "$:/language/LazyLoadingWarning": { - "title": "$:/language/LazyLoadingWarning", - "text": "<p>Trying to load external content from ''<$text text={{!!_canonical_uri}}/>''</p><p>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</p>" - }, - "$:/language/LoginToTiddlySpace": { - "title": "$:/language/LoginToTiddlySpace", - "text": "Login to TiddlySpace" - }, - "$:/language/Manager/Controls/FilterByTag/None": { - "title": "$:/language/Manager/Controls/FilterByTag/None", - "text": "(none)" - }, - "$:/language/Manager/Controls/FilterByTag/Prompt": { - "title": "$:/language/Manager/Controls/FilterByTag/Prompt", - "text": "Filter by tag:" - }, - "$:/language/Manager/Controls/Order/Prompt": { - "title": "$:/language/Manager/Controls/Order/Prompt", - "text": "Reverse order" - }, - "$:/language/Manager/Controls/Search/Placeholder": { - "title": "$:/language/Manager/Controls/Search/Placeholder", - "text": "Search" - }, - "$:/language/Manager/Controls/Search/Prompt": { - "title": "$:/language/Manager/Controls/Search/Prompt", - "text": "Search:" - }, - "$:/language/Manager/Controls/Show/Option/Tags": { - "title": "$:/language/Manager/Controls/Show/Option/Tags", - "text": "tags" - }, - "$:/language/Manager/Controls/Show/Option/Tiddlers": { - "title": "$:/language/Manager/Controls/Show/Option/Tiddlers", - "text": "tiddlers" - }, - "$:/language/Manager/Controls/Show/Prompt": { - "title": "$:/language/Manager/Controls/Show/Prompt", - "text": "Show:" - }, - "$:/language/Manager/Controls/Sort/Prompt": { - "title": "$:/language/Manager/Controls/Sort/Prompt", - "text": "Sort by:" - }, - "$:/language/Manager/Item/Colour": { - "title": "$:/language/Manager/Item/Colour", - "text": "Colour" - }, - "$:/language/Manager/Item/Fields": { - "title": "$:/language/Manager/Item/Fields", - "text": "Fields" - }, - "$:/language/Manager/Item/Icon/None": { - "title": "$:/language/Manager/Item/Icon/None", - "text": "(none)" - }, - "$:/language/Manager/Item/Icon": { - "title": "$:/language/Manager/Item/Icon", - "text": "Icon" - }, - "$:/language/Manager/Item/RawText": { - "title": "$:/language/Manager/Item/RawText", - "text": "Raw text" - }, - "$:/language/Manager/Item/Tags": { - "title": "$:/language/Manager/Item/Tags", - "text": "Tags" - }, - "$:/language/Manager/Item/Tools": { - "title": "$:/language/Manager/Item/Tools", - "text": "Tools" - }, - "$:/language/Manager/Item/WikifiedText": { - "title": "$:/language/Manager/Item/WikifiedText", - "text": "Wikified text" - }, - "$:/language/MissingTiddler/Hint": { - "title": "$:/language/MissingTiddler/Hint", - "text": "Missing tiddler \"<$text text=<<currentTiddler>>/>\" -- click {{||$:/core/ui/Buttons/edit}} to create" - }, - "$:/language/No": { - "title": "$:/language/No", - "text": "No" - }, - "$:/language/OfficialPluginLibrary": { - "title": "$:/language/OfficialPluginLibrary", - "text": "Official ~TiddlyWiki Plugin Library" - }, - "$:/language/OfficialPluginLibrary/Hint": { - "title": "$:/language/OfficialPluginLibrary/Hint", - "text": "The official ~TiddlyWiki plugin library at tiddlywiki.com. Plugins, themes and language packs are maintained by the core team." - }, - "$:/language/PageTemplate/Description": { - "title": "$:/language/PageTemplate/Description", - "text": "the default ~TiddlyWiki layout" - }, - "$:/language/PageTemplate/Name": { - "title": "$:/language/PageTemplate/Name", - "text": "Default ~PageTemplate" - }, - "$:/language/PluginReloadWarning": { - "title": "$:/language/PluginReloadWarning", - "text": "Please save {{$:/core/ui/Buttons/save-wiki}} and reload {{$:/core/ui/Buttons/refresh}} to allow changes to ~JavaScript plugins to take effect" - }, - "$:/language/RecentChanges/DateFormat": { - "title": "$:/language/RecentChanges/DateFormat", - "text": "DDth MMM YYYY" - }, - "$:/language/Shortcuts/Input/AdvancedSearch/Hint": { - "title": "$:/language/Shortcuts/Input/AdvancedSearch/Hint", - "text": "Open the ~AdvancedSearch panel from within the sidebar search field" - }, - "$:/language/Shortcuts/Input/Accept/Hint": { - "title": "$:/language/Shortcuts/Input/Accept/Hint", - "text": "Accept the selected item" - }, - "$:/language/Shortcuts/Input/AcceptVariant/Hint": { - "title": "$:/language/Shortcuts/Input/AcceptVariant/Hint", - "text": "Accept the selected item (variant)" - }, - "$:/language/Shortcuts/Input/Cancel/Hint": { - "title": "$:/language/Shortcuts/Input/Cancel/Hint", - "text": "Clear the input field" - }, - "$:/language/Shortcuts/Input/Down/Hint": { - "title": "$:/language/Shortcuts/Input/Down/Hint", - "text": "Select the next item" - }, - "$:/language/Shortcuts/Input/Tab-Left/Hint": { - "title": "$:/language/Shortcuts/Input/Tab-Left/Hint", - "text": "Select the previous Tab" - }, - "$:/language/Shortcuts/Input/Tab-Right/Hint": { - "title": "$:/language/Shortcuts/Input/Tab-Right/Hint", - "text": "Select the next Tab" - }, - "$:/language/Shortcuts/Input/Up/Hint": { - "title": "$:/language/Shortcuts/Input/Up/Hint", - "text": "Select the previous item" - }, - "$:/language/Shortcuts/SidebarLayout/Hint": { - "title": "$:/language/Shortcuts/SidebarLayout/Hint", - "text": "Change the sidebar layout" - }, - "$:/language/Switcher/Subtitle/theme": { - "title": "$:/language/Switcher/Subtitle/theme", - "text": "Switch Theme" - }, - "$:/language/Switcher/Subtitle/layout": { - "title": "$:/language/Switcher/Subtitle/layout", - "text": "Switch Layout" - }, - "$:/language/Switcher/Subtitle/language": { - "title": "$:/language/Switcher/Subtitle/language", - "text": "Switch Language" - }, - "$:/language/Switcher/Subtitle/palette": { - "title": "$:/language/Switcher/Subtitle/palette", - "text": "Switch Palette" - }, - "$:/language/SystemTiddler/Tooltip": { - "title": "$:/language/SystemTiddler/Tooltip", - "text": "This is a system tiddler" - }, - "$:/language/SystemTiddlers/Include/Prompt": { - "title": "$:/language/SystemTiddlers/Include/Prompt", - "text": "Include system tiddlers" - }, - "$:/language/TagManager/Colour/Heading": { - "title": "$:/language/TagManager/Colour/Heading", - "text": "Colour" - }, - "$:/language/TagManager/Count/Heading": { - "title": "$:/language/TagManager/Count/Heading", - "text": "Count" - }, - "$:/language/TagManager/Icon/Heading": { - "title": "$:/language/TagManager/Icon/Heading", - "text": "Icon" - }, - "$:/language/TagManager/Icons/None": { - "title": "$:/language/TagManager/Icons/None", - "text": "None" - }, - "$:/language/TagManager/Info/Heading": { - "title": "$:/language/TagManager/Info/Heading", - "text": "Info" - }, - "$:/language/TagManager/Tag/Heading": { - "title": "$:/language/TagManager/Tag/Heading", - "text": "Tag" - }, - "$:/language/Tiddler/DateFormat": { - "title": "$:/language/Tiddler/DateFormat", - "text": "DDth MMM YYYY at hh12:0mmam" - }, - "$:/language/UnsavedChangesWarning": { - "title": "$:/language/UnsavedChangesWarning", - "text": "You have unsaved changes in TiddlyWiki" - }, - "$:/language/Yes": { - "title": "$:/language/Yes", - "text": "Yes" - }, - "$:/language/Modals/Download": { - "title": "$:/language/Modals/Download", - "subtitle": "Download changes", - "footer": "<$button message=\"tm-close-tiddler\">Close</$button>", - "help": "https://tiddlywiki.com/static/DownloadingChanges.html", - "text": "Your browser only supports manual saving.\n\nTo save your modified wiki, right click on the download link below and select \"Download file\" or \"Save file\", 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" - }, - "$:/language/Modals/SaveInstructions": { - "title": "$:/language/Modals/SaveInstructions", - "subtitle": "Save your work", - "footer": "<$button message=\"tm-close-tiddler\">Close</$button>", - "help": "https://tiddlywiki.com/static/SavingChanges.html", - "text": "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" - }, - "$:/config/NewJournal/Title": { - "title": "$:/config/NewJournal/Title", - "text": "DDth MMM YYYY" - }, - "$:/config/NewJournal/Text": { - "title": "$:/config/NewJournal/Text", - "text": "" - }, - "$:/config/NewJournal/Tags": { - "title": "$:/config/NewJournal/Tags", - "text": "Journal\n" - }, - "$:/language/Notifications/Save/Done": { - "title": "$:/language/Notifications/Save/Done", - "text": "Saved wiki" - }, - "$:/language/Notifications/Save/Starting": { - "title": "$:/language/Notifications/Save/Starting", - "text": "Starting to save wiki" - }, - "$:/language/Notifications/CopiedToClipboard/Succeeded": { - "title": "$:/language/Notifications/CopiedToClipboard/Succeeded", - "text": "Copied to clipboard!" - }, - "$:/language/Notifications/CopiedToClipboard/Failed": { - "title": "$:/language/Notifications/CopiedToClipboard/Failed", - "text": "Failed to copy to clipboard!" - }, - "$:/language/Search/DefaultResults/Caption": { - "title": "$:/language/Search/DefaultResults/Caption", - "text": "List" - }, - "$:/language/Search/Filter/Caption": { - "title": "$:/language/Search/Filter/Caption", - "text": "Filter" - }, - "$:/language/Search/Filter/Hint": { - "title": "$:/language/Search/Filter/Hint", - "text": "Search via a [[filter expression|https://tiddlywiki.com/static/Filters.html]]" - }, - "$:/language/Search/Filter/Matches": { - "title": "$:/language/Search/Filter/Matches", - "text": "//<small><<resultCount>> matches</small>//" - }, - "$:/language/Search/Matches": { - "title": "$:/language/Search/Matches", - "text": "//<small><<resultCount>> matches</small>//" - }, - "$:/language/Search/Matches/All": { - "title": "$:/language/Search/Matches/All", - "text": "All matches:" - }, - "$:/language/Search/Matches/Title": { - "title": "$:/language/Search/Matches/Title", - "text": "Title matches:" - }, - "$:/language/Search/Search": { - "title": "$:/language/Search/Search", - "text": "Search" - }, - "$:/language/Search/Search/TooShort": { - "title": "$:/language/Search/Search/TooShort", - "text": "Search text too short" - }, - "$:/language/Search/Shadows/Caption": { - "title": "$:/language/Search/Shadows/Caption", - "text": "Shadows" - }, - "$:/language/Search/Shadows/Hint": { - "title": "$:/language/Search/Shadows/Hint", - "text": "Search for shadow tiddlers" - }, - "$:/language/Search/Shadows/Matches": { - "title": "$:/language/Search/Shadows/Matches", - "text": "//<small><<resultCount>> matches</small>//" - }, - "$:/language/Search/Standard/Caption": { - "title": "$:/language/Search/Standard/Caption", - "text": "Standard" - }, - "$:/language/Search/Standard/Hint": { - "title": "$:/language/Search/Standard/Hint", - "text": "Search for standard tiddlers" - }, - "$:/language/Search/Standard/Matches": { - "title": "$:/language/Search/Standard/Matches", - "text": "//<small><<resultCount>> matches</small>//" - }, - "$:/language/Search/System/Caption": { - "title": "$:/language/Search/System/Caption", - "text": "System" - }, - "$:/language/Search/System/Hint": { - "title": "$:/language/Search/System/Hint", - "text": "Search for system tiddlers" - }, - "$:/language/Search/System/Matches": { - "title": "$:/language/Search/System/Matches", - "text": "//<small><<resultCount>> matches</small>//" - }, - "$:/language/SideBar/All/Caption": { - "title": "$:/language/SideBar/All/Caption", - "text": "All" - }, - "$:/language/SideBar/Contents/Caption": { - "title": "$:/language/SideBar/Contents/Caption", - "text": "Contents" - }, - "$:/language/SideBar/Drafts/Caption": { - "title": "$:/language/SideBar/Drafts/Caption", - "text": "Drafts" - }, - "$:/language/SideBar/Explorer/Caption": { - "title": "$:/language/SideBar/Explorer/Caption", - "text": "Explorer" - }, - "$:/language/SideBar/Missing/Caption": { - "title": "$:/language/SideBar/Missing/Caption", - "text": "Missing" - }, - "$:/language/SideBar/More/Caption": { - "title": "$:/language/SideBar/More/Caption", - "text": "More" - }, - "$:/language/SideBar/Open/Caption": { - "title": "$:/language/SideBar/Open/Caption", - "text": "Open" - }, - "$:/language/SideBar/Orphans/Caption": { - "title": "$:/language/SideBar/Orphans/Caption", - "text": "Orphans" - }, - "$:/language/SideBar/Recent/Caption": { - "title": "$:/language/SideBar/Recent/Caption", - "text": "Recent" - }, - "$:/language/SideBar/Shadows/Caption": { - "title": "$:/language/SideBar/Shadows/Caption", - "text": "Shadows" - }, - "$:/language/SideBar/System/Caption": { - "title": "$:/language/SideBar/System/Caption", - "text": "System" - }, - "$:/language/SideBar/Tags/Caption": { - "title": "$:/language/SideBar/Tags/Caption", - "text": "Tags" - }, - "$:/language/SideBar/Tags/Untagged/Caption": { - "title": "$:/language/SideBar/Tags/Untagged/Caption", - "text": "untagged" - }, - "$:/language/SideBar/Tools/Caption": { - "title": "$:/language/SideBar/Tools/Caption", - "text": "Tools" - }, - "$:/language/SideBar/Types/Caption": { - "title": "$:/language/SideBar/Types/Caption", - "text": "Types" - }, - "$:/SiteSubtitle": { - "title": "$:/SiteSubtitle", - "text": "a non-linear personal web notebook" - }, - "$:/SiteTitle": { - "title": "$:/SiteTitle", - "text": "My ~TiddlyWiki" - }, - "$:/language/Snippets/ListByTag": { - "title": "$:/language/Snippets/ListByTag", - "tags": "$:/tags/TextEditor/Snippet", - "caption": "List of tiddlers by tag", - "text": "<<list-links \"[tag[task]sort[title]]\">>\n" - }, - "$:/language/Snippets/MacroDefinition": { - "title": "$:/language/Snippets/MacroDefinition", - "tags": "$:/tags/TextEditor/Snippet", - "caption": "Macro definition", - "text": "\\define macroName(param1:\"default value\",param2)\nText of the macro\n\\end\n" - }, - "$:/language/Snippets/Table4x3": { - "title": "$:/language/Snippets/Table4x3", - "tags": "$:/tags/TextEditor/Snippet", - "caption": "Table with 4 columns by 3 rows", - "text": "|! |!Alpha |!Beta |!Gamma |!Delta |\n|!One | | | | |\n|!Two | | | | |\n|!Three | | | | |\n" - }, - "$:/language/Snippets/TableOfContents": { - "title": "$:/language/Snippets/TableOfContents", - "tags": "$:/tags/TextEditor/Snippet", - "caption": "Table of Contents", - "text": "<div class=\"tc-table-of-contents\">\n\n<<toc-selective-expandable 'TableOfContents'>>\n\n</div>" - }, - "$:/language/ThemeTweaks/ThemeTweaks": { - "title": "$:/language/ThemeTweaks/ThemeTweaks", - "text": "Theme Tweaks" - }, - "$:/language/ThemeTweaks/ThemeTweaks/Hint": { - "title": "$:/language/ThemeTweaks/ThemeTweaks/Hint", - "text": "You can tweak certain aspects of the ''Vanilla'' theme." - }, - "$:/language/ThemeTweaks/Options": { - "title": "$:/language/ThemeTweaks/Options", - "text": "Options" - }, - "$:/language/ThemeTweaks/Options/SidebarLayout": { - "title": "$:/language/ThemeTweaks/Options/SidebarLayout", - "text": "Sidebar layout" - }, - "$:/language/ThemeTweaks/Options/SidebarLayout/Fixed-Fluid": { - "title": "$:/language/ThemeTweaks/Options/SidebarLayout/Fixed-Fluid", - "text": "Fixed story, fluid sidebar" - }, - "$:/language/ThemeTweaks/Options/SidebarLayout/Fluid-Fixed": { - "title": "$:/language/ThemeTweaks/Options/SidebarLayout/Fluid-Fixed", - "text": "Fluid story, fixed sidebar" - }, - "$:/language/ThemeTweaks/Options/StickyTitles": { - "title": "$:/language/ThemeTweaks/Options/StickyTitles", - "text": "Sticky titles" - }, - "$:/language/ThemeTweaks/Options/StickyTitles/Hint": { - "title": "$:/language/ThemeTweaks/Options/StickyTitles/Hint", - "text": "Causes tiddler titles to \"stick\" to the top of the browser window" - }, - "$:/language/ThemeTweaks/Options/CodeWrapping": { - "title": "$:/language/ThemeTweaks/Options/CodeWrapping", - "text": "Wrap long lines in code blocks" - }, - "$:/language/ThemeTweaks/Settings": { - "title": "$:/language/ThemeTweaks/Settings", - "text": "Settings" - }, - "$:/language/ThemeTweaks/Settings/FontFamily": { - "title": "$:/language/ThemeTweaks/Settings/FontFamily", - "text": "Font family" - }, - "$:/language/ThemeTweaks/Settings/CodeFontFamily": { - "title": "$:/language/ThemeTweaks/Settings/CodeFontFamily", - "text": "Code font family" - }, - "$:/language/ThemeTweaks/Settings/EditorFontFamily": { - "title": "$:/language/ThemeTweaks/Settings/EditorFontFamily", - "text": "Editor font family" - }, - "$:/language/ThemeTweaks/Settings/BackgroundImage": { - "title": "$:/language/ThemeTweaks/Settings/BackgroundImage", - "text": "Page background image" - }, - "$:/language/ThemeTweaks/Settings/BackgroundImageAttachment": { - "title": "$:/language/ThemeTweaks/Settings/BackgroundImageAttachment", - "text": "Page background image attachment" - }, - "$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Scroll": { - "title": "$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Scroll", - "text": "Scroll with tiddlers" - }, - "$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Fixed": { - "title": "$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Fixed", - "text": "Fixed to window" - }, - "$:/language/ThemeTweaks/Settings/BackgroundImageSize": { - "title": "$:/language/ThemeTweaks/Settings/BackgroundImageSize", - "text": "Page background image size" - }, - "$:/language/ThemeTweaks/Settings/BackgroundImageSize/Auto": { - "title": "$:/language/ThemeTweaks/Settings/BackgroundImageSize/Auto", - "text": "Auto" - }, - "$:/language/ThemeTweaks/Settings/BackgroundImageSize/Cover": { - "title": "$:/language/ThemeTweaks/Settings/BackgroundImageSize/Cover", - "text": "Cover" - }, - "$:/language/ThemeTweaks/Settings/BackgroundImageSize/Contain": { - "title": "$:/language/ThemeTweaks/Settings/BackgroundImageSize/Contain", - "text": "Contain" - }, - "$:/language/ThemeTweaks/Metrics": { - "title": "$:/language/ThemeTweaks/Metrics", - "text": "Sizes" - }, - "$:/language/ThemeTweaks/Metrics/FontSize": { - "title": "$:/language/ThemeTweaks/Metrics/FontSize", - "text": "Font size" - }, - "$:/language/ThemeTweaks/Metrics/LineHeight": { - "title": "$:/language/ThemeTweaks/Metrics/LineHeight", - "text": "Line height" - }, - "$:/language/ThemeTweaks/Metrics/BodyFontSize": { - "title": "$:/language/ThemeTweaks/Metrics/BodyFontSize", - "text": "Font size for tiddler body" - }, - "$:/language/ThemeTweaks/Metrics/BodyLineHeight": { - "title": "$:/language/ThemeTweaks/Metrics/BodyLineHeight", - "text": "Line height for tiddler body" - }, - "$:/language/ThemeTweaks/Metrics/StoryLeft": { - "title": "$:/language/ThemeTweaks/Metrics/StoryLeft", - "text": "Story left position" - }, - "$:/language/ThemeTweaks/Metrics/StoryLeft/Hint": { - "title": "$:/language/ThemeTweaks/Metrics/StoryLeft/Hint", - "text": "how far the left margin of the story river<br>(tiddler area) is from the left of the page" - }, - "$:/language/ThemeTweaks/Metrics/StoryTop": { - "title": "$:/language/ThemeTweaks/Metrics/StoryTop", - "text": "Story top position" - }, - "$:/language/ThemeTweaks/Metrics/StoryTop/Hint": { - "title": "$:/language/ThemeTweaks/Metrics/StoryTop/Hint", - "text": "how far the top margin of the story river<br>is from the top of the page" - }, - "$:/language/ThemeTweaks/Metrics/StoryRight": { - "title": "$:/language/ThemeTweaks/Metrics/StoryRight", - "text": "Story right" - }, - "$:/language/ThemeTweaks/Metrics/StoryRight/Hint": { - "title": "$:/language/ThemeTweaks/Metrics/StoryRight/Hint", - "text": "how far the left margin of the sidebar <br>is from the left of the page" - }, - "$:/language/ThemeTweaks/Metrics/StoryWidth": { - "title": "$:/language/ThemeTweaks/Metrics/StoryWidth", - "text": "Story width" - }, - "$:/language/ThemeTweaks/Metrics/StoryWidth/Hint": { - "title": "$:/language/ThemeTweaks/Metrics/StoryWidth/Hint", - "text": "the overall width of the story river" - }, - "$:/language/ThemeTweaks/Metrics/TiddlerWidth": { - "title": "$:/language/ThemeTweaks/Metrics/TiddlerWidth", - "text": "Tiddler width" - }, - "$:/language/ThemeTweaks/Metrics/TiddlerWidth/Hint": { - "title": "$:/language/ThemeTweaks/Metrics/TiddlerWidth/Hint", - "text": "within the story river" - }, - "$:/language/ThemeTweaks/Metrics/SidebarBreakpoint": { - "title": "$:/language/ThemeTweaks/Metrics/SidebarBreakpoint", - "text": "Sidebar breakpoint" - }, - "$:/language/ThemeTweaks/Metrics/SidebarBreakpoint/Hint": { - "title": "$:/language/ThemeTweaks/Metrics/SidebarBreakpoint/Hint", - "text": "the minimum page width at which the story<br>river and sidebar will appear side by side" - }, - "$:/language/ThemeTweaks/Metrics/SidebarWidth": { - "title": "$:/language/ThemeTweaks/Metrics/SidebarWidth", - "text": "Sidebar width" - }, - "$:/language/ThemeTweaks/Metrics/SidebarWidth/Hint": { - "title": "$:/language/ThemeTweaks/Metrics/SidebarWidth/Hint", - "text": "the width of the sidebar in fluid-fixed layout" - }, - "$:/language/TiddlerInfo/Advanced/Caption": { - "title": "$:/language/TiddlerInfo/Advanced/Caption", - "text": "Advanced" - }, - "$:/language/TiddlerInfo/Advanced/PluginInfo/Empty/Hint": { - "title": "$:/language/TiddlerInfo/Advanced/PluginInfo/Empty/Hint", - "text": "none" - }, - "$:/language/TiddlerInfo/Advanced/PluginInfo/Heading": { - "title": "$:/language/TiddlerInfo/Advanced/PluginInfo/Heading", - "text": "Plugin Details" - }, - "$:/language/TiddlerInfo/Advanced/PluginInfo/Hint": { - "title": "$:/language/TiddlerInfo/Advanced/PluginInfo/Hint", - "text": "This plugin contains the following shadow tiddlers:" - }, - "$:/language/TiddlerInfo/Advanced/ShadowInfo/Heading": { - "title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/Heading", - "text": "Shadow Status" - }, - "$:/language/TiddlerInfo/Advanced/ShadowInfo/NotShadow/Hint": { - "title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/NotShadow/Hint", - "text": "The tiddler <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> is not a shadow tiddler" - }, - "$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Hint": { - "title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Hint", - "text": "The tiddler <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> is a shadow tiddler" - }, - "$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Source": { - "title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Source", - "text": "It is defined in the plugin <$link to=<<pluginTiddler>>><$text text=<<pluginTiddler>>/></$link>" - }, - "$:/language/TiddlerInfo/Advanced/ShadowInfo/OverriddenShadow/Hint": { - "title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/OverriddenShadow/Hint", - "text": "It is overridden by an ordinary tiddler" - }, - "$:/language/TiddlerInfo/Fields/Caption": { - "title": "$:/language/TiddlerInfo/Fields/Caption", - "text": "Fields" - }, - "$:/language/TiddlerInfo/List/Caption": { - "title": "$:/language/TiddlerInfo/List/Caption", - "text": "List" - }, - "$:/language/TiddlerInfo/List/Empty": { - "title": "$:/language/TiddlerInfo/List/Empty", - "text": "This tiddler does not have a list" - }, - "$:/language/TiddlerInfo/Listed/Caption": { - "title": "$:/language/TiddlerInfo/Listed/Caption", - "text": "Listed" - }, - "$:/language/TiddlerInfo/Listed/Empty": { - "title": "$:/language/TiddlerInfo/Listed/Empty", - "text": "This tiddler is not listed by any others" - }, - "$:/language/TiddlerInfo/References/Caption": { - "title": "$:/language/TiddlerInfo/References/Caption", - "text": "Backlinks" - }, - "$:/language/TiddlerInfo/References/Empty": { - "title": "$:/language/TiddlerInfo/References/Empty", - "text": "No tiddlers link to this one" - }, - "$:/language/TiddlerInfo/Tagging/Caption": { - "title": "$:/language/TiddlerInfo/Tagging/Caption", - "text": "Tagging" - }, - "$:/language/TiddlerInfo/Tagging/Empty": { - "title": "$:/language/TiddlerInfo/Tagging/Empty", - "text": "No tiddlers are tagged with this one" - }, - "$:/language/TiddlerInfo/Tools/Caption": { - "title": "$:/language/TiddlerInfo/Tools/Caption", - "text": "Tools" - }, - "$:/language/Docs/Types/application/javascript": { - "title": "$:/language/Docs/Types/application/javascript", - "description": "JavaScript code", - "name": "application/javascript", - "group": "Developer", - "group-sort": "2" - }, - "$:/language/Docs/Types/application/json": { - "title": "$:/language/Docs/Types/application/json", - "description": "JSON data", - "name": "application/json", - "group": "Developer", - "group-sort": "2" - }, - "$:/language/Docs/Types/application/x-tiddler-dictionary": { - "title": "$:/language/Docs/Types/application/x-tiddler-dictionary", - "description": "Data dictionary", - "name": "application/x-tiddler-dictionary", - "group": "Developer", - "group-sort": "2" - }, - "$:/language/Docs/Types/image/gif": { - "title": "$:/language/Docs/Types/image/gif", - "description": "GIF image", - "name": "image/gif", - "group": "Image", - "group-sort": "1" - }, - "$:/language/Docs/Types/image/jpeg": { - "title": "$:/language/Docs/Types/image/jpeg", - "description": "JPEG image", - "name": "image/jpeg", - "group": "Image", - "group-sort": "1" - }, - "$:/language/Docs/Types/image/png": { - "title": "$:/language/Docs/Types/image/png", - "description": "PNG image", - "name": "image/png", - "group": "Image", - "group-sort": "1" - }, - "$:/language/Docs/Types/image/svg+xml": { - "title": "$:/language/Docs/Types/image/svg+xml", - "description": "Structured Vector Graphics image", - "name": "image/svg+xml", - "group": "Image", - "group-sort": "1" - }, - "$:/language/Docs/Types/image/x-icon": { - "title": "$:/language/Docs/Types/image/x-icon", - "description": "ICO format icon file", - "name": "image/x-icon", - "group": "Image", - "group-sort": "1" - }, - "$:/language/Docs/Types/text/css": { - "title": "$:/language/Docs/Types/text/css", - "description": "Static stylesheet", - "name": "text/css", - "group": "Developer", - "group-sort": "2" - }, - "$:/language/Docs/Types/text/html": { - "title": "$:/language/Docs/Types/text/html", - "description": "HTML markup", - "name": "text/html", - "group": "Text", - "group-sort": "0" - }, - "$:/language/Docs/Types/text/plain": { - "title": "$:/language/Docs/Types/text/plain", - "description": "Plain text", - "name": "text/plain", - "group": "Text", - "group-sort": "0" - }, - "$:/language/Docs/Types/text/vnd.tiddlywiki": { - "title": "$:/language/Docs/Types/text/vnd.tiddlywiki", - "description": "TiddlyWiki 5", - "name": "text/vnd.tiddlywiki", - "group": "Text", - "group-sort": "0" - }, - "$:/language/Docs/Types/text/x-tiddlywiki": { - "title": "$:/language/Docs/Types/text/x-tiddlywiki", - "description": "TiddlyWiki Classic", - "name": "text/x-tiddlywiki", - "group": "Text", - "group-sort": "0" - }, - "$:/languages/en-GB/icon": { - "title": "$:/languages/en-GB/icon", - "type": "image/svg+xml", - "text": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 60 30\" width=\"1200\" height=\"600\">\n<clipPath id=\"t\">\n\t<path d=\"M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z\"/>\n</clipPath>\n<path d=\"M0,0 v30 h60 v-30 z\" fill=\"#00247d\"/>\n<path d=\"M0,0 L60,30 M60,0 L0,30\" stroke=\"#fff\" stroke-width=\"6\"/>\n<path d=\"M0,0 L60,30 M60,0 L0,30\" clip-path=\"url(#t)\" stroke=\"#cf142b\" stroke-width=\"4\"/>\n<path d=\"M30,0 v30 M0,15 h60\" stroke=\"#fff\" stroke-width=\"10\"/>\n<path d=\"M30,0 v30 M0,15 h60\" stroke=\"#cf142b\" stroke-width=\"6\"/>\n</svg>\n" - }, - "$:/languages/en-GB": { - "title": "$:/languages/en-GB", - "name": "en-GB", - "description": "English (British)", - "author": "JeremyRuston", - "core-version": ">=5.0.0\"", - "text": "Stub pseudo-plugin for the default language" - }, - "$:/core/modules/commander.js": { - "title": "$:/core/modules/commander.js", - "text": "/*\\\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\"use strict\";\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(\"path\");\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 + \"\\n\");\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 >= 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) !== \"--\") {\n\t\t\tthis.callback(\"Missing command: \" + 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 < this.commandTokens.length && \n\t\t\t\tthis.commandTokens[this.nextToken].substr(0,2) !== \"--\") {\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(\"Unknown command: \" + commandName);\n\t\t\t} else {\n\t\t\t\tif(this.verbose) {\n\t\t\t\t\tthis.streams.output.write(\"Executing command: \" + commandName + \" \" + params.join(\" \") + \"\\n\");\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 === \"string\") {\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(\"=\");\n\t\tif(index < 1) {\n\t\t\terrors.push(\"malformed named parameter: '\" + param + \"'\");\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(\"missing mandatory parameter: '\" + mandatoryParameter + \"'\");\n\t\t}\n\t});\n\t// Return any errors\n\tif(errors.length > 0) {\n\t\treturn errors.join(\" and\\n\");\n\t} else {\n\t\treturn paramsByName;\t\t\n\t}\n};\n\nCommander.initCommands = function(moduleType) {\n\tmoduleType = moduleType || \"command\";\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", - "type": "application/javascript", - "module-type": "global" - }, - "$:/core/modules/commands/build.js": { - "title": "$:/core/modules/commands/build.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"build\",\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 \"No build targets defined\";\n\t}\n\t// Loop through each of the specified targets\n\tvar targets;\n\tif(this.params.length > 0) {\n\t\ttargets = this.params;\n\t} else {\n\t\ttargets = Object.keys(buildTargets);\n\t}\n\tfor(var targetIndex=0; targetIndex<targets.length; targetIndex++) {\n\t\tvar target = targets[targetIndex],\n\t\t\tcommands = buildTargets[target];\n\t\tif(!commands) {\n\t\t\treturn \"Build target '\" + target + \"' not found\";\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", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/clearpassword.js": { - "title": "$:/core/modules/commands/clearpassword.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"clearpassword\",\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", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/deletetiddlers.js": { - "title": "$:/core/modules/commands/deletetiddlers.js", - "text": "/*\\\ntitle: $:/core/modules/commands/deletetiddlers.js\ntype: application/javascript\nmodule-type: command\n\nCommand to delete tiddlers\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"deletetiddlers\",\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 < 1) {\n\t\treturn \"Missing filter\";\n\t}\n\tvar self = this,\n\t\twiki = this.commander.wiki,\n\t\tfilter = this.params[0],\n\t\ttiddlers = wiki.filterTiddlers(filter);\n\t$tw.utils.each(tiddlers,function(title) {\n\t\twiki.deleteTiddler(title);\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/editions.js": { - "title": "$:/core/modules/commands/editions.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"editions\",\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(\"Available editions:\\n\\n\");\n\tvar editionInfo = $tw.utils.getEditionInfo();\n\t$tw.utils.each(editionInfo,function(info,name) {\n\t\tself.commander.streams.output.write(\" \" + name + \": \" + info.description + \"\\n\");\n\t});\n\tthis.commander.streams.output.write(\"\\n\");\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/fetch.js": { - "title": "$:/core/modules/commands/fetch.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"fetch\",\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 < 2) {\n\t\treturn \"Missing subcommand and url\";\n\t}\n\tswitch(this.params[0]) {\n\t\tcase \"raw-file\":\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] || \"\",\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"file\":\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] || \"\",\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"raw-files\":\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] || \"\",\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"files\":\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] || \"\",\n\t\t\t\tcallback: this.callback\n\t\t\t});\n\t\t\tbreak;\n\t}\n\treturn null;\n};\n\nCommand.prototype.fetchFiles = function(options) {\n\tvar self = this;\n\t// Get the list of URLs\n\tvar urls;\n\tif(options.url) {\n\t\turls = [options.url]\n\t} else if(options.urlFilter) {\n\t\turls = this.commander.wiki.filterTiddlers(options.urlFilter);\n\t} else {\n\t\treturn \"Missing URL\";\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 < 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 > 10) {\n\t\treturn callback(\"Error too many redirects retrieving \" + url);\n\t}\n\tvar self = this,\n\t\tlib = url.substr(0,8) === \"https://\" ? require(\"https\") : require(\"http\");\n\tlib.get(url).on(\"response\",function(response) {\n\t var type = (response.headers[\"content-type\"] || \"\").split(\";\")[0],\n\t \tdata = [];\n\t self.commander.write(\"Reading \" + url + \": \");\n\t response.on(\"data\",function(chunk) {\n\t data.push(chunk);\n\t self.commander.write(\".\");\n\t });\n\t response.on(\"end\",function() {\n\t self.commander.write(\"\\n\");\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(\"Error \" + response.statusCode + \" retrieving \" + url)\t \t\t\n\t \t}\n\t }\n\t \t});\n\t \tresponse.on(\"error\",function(e) {\n\t\t\tconsole.log(\"Error on GET request: \" + 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 : \"utf8\";\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 || \"text/html\",body.toString(\"utf8\"),{});\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 || \"[all[tiddlers]]\");\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])) || [\"\"])[0];\n\t\t\t\tif(transformedTitle) {\n\t\t\t\t\tself.commander.log(\"Importing \" + title + \" as \" + 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(\"Importing \" + 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(\"Imported \" + count + \" tiddlers\")\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/help.js": { - "title": "$:/core/modules/commands/help.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"help\",\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] || \"default\",\n\t\thelpBase = \"$:/language/Help/\",\n\t\ttext;\n\tif(!this.commander.wiki.getTiddler(helpBase + subhelp)) {\n\t\tsubhelp = \"notfound\";\n\t}\n\t// Wikify the help as formatted text (ie block elements generate newlines)\n\ttext = this.commander.wiki.renderTiddler(\"text/plain-formatted\",helpBase + subhelp);\n\t// Remove any leading linebreaks\n\ttext = text.replace(/^(\\r?\\n)*/g,\"\");\n\tthis.commander.streams.output.write(text);\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/import.js": { - "title": "$:/core/modules/commands/import.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"import\",\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(\"fs\"),\n\t\tpath = require(\"path\");\n\tif(this.params.length < 2) {\n\t\treturn \"Missing parameters\";\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] || \"utf8\",\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 + \" tiddler(s) imported\");\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/init.js": { - "title": "$:/core/modules/commands/init.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"init\",\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(\"fs\"),\n\t\tpath = require(\"path\");\n\t// Check that we don't already have a valid wiki folder\n\tif($tw.boot.wikiTiddlersPath || ($tw.utils.isDirectory($tw.boot.wikiPath) && !$tw.utils.isDirectoryEmpty($tw.boot.wikiPath))) {\n\t\treturn \"Wiki folder is not empty\";\n\t}\n\t// Loop through each of the specified editions\n\tvar editions = this.params.length > 0 ? this.params : [\"empty\"];\n\tfor(var editionIndex=0; editionIndex<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 \"Edition '\" + editionName + \"' not found\";\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(\"Copied edition '\" + editionName + \"' to \" + $tw.boot.wikiPath + \"\\n\");\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 + \"/tiddlywiki.info\",\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", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/listen.js": { - "title": "$:/core/modules/commands/listen.js", - "text": "/*\\\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\"use strict\";\n\nvar Server = require(\"$:/core/modules/server/server.js\").Server;\n\nexports.info = {\n\tname: \"listen\",\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(\"Warning: Wiki folder '\" + $tw.boot.wikiPath + \"' does not exist or is missing a tiddlywiki.info file\");\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(\"th-server-command-post-start\",this.server,nodeServer,\"tiddlywiki\");\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/load.js": { - "title": "$:/core/modules/commands/load.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"load\",\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(\"fs\"),\n\t\tpath = require(\"path\");\n\tif(this.params.length < 1) {\n\t\treturn \"Missing filename\";\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 && self.params[1] !== \"noerror\") {\n\t\tself.callback(\"No tiddlers found in file \\\"\" + self.params[0] + \"\\\"\");\n\t} else {\n\t\tself.callback(null);\n\t}\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/makelibrary.js": { - "title": "$:/core/modules/commands/makelibrary.js", - "text": "/*\\\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 \"library\"\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"makelibrary\",\n\tsynchronous: true\n};\n\nvar UPGRADE_LIBRARY_TITLE = \"$:/UpgradeLibrary\";\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(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\tupgradeLibraryTitle = this.params[0] || UPGRADE_LIBRARY_TITLE,\n\t\ttiddlers = {};\n\t// Collect up the library plugins\n\tvar collectPlugins = function(folder) {\n\t\t\tvar pluginFolders = $tw.utils.getSubdirectories(folder) || [];\n\t\t\tfor(var p=0; p<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,\"./\" + pluginFolders[p]));\n\t\t\t\t\tif(pluginFields && pluginFields.title) {\n\t\t\t\t\t\ttiddlers[pluginFields.title] = pluginFields;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tcollectPublisherPlugins = function(folder) {\n\t\t\tvar publisherFolders = $tw.utils.getSubdirectories(folder) || [];\n\t\t\tfor(var t=0; t<publisherFolders.length; t++) {\n\t\t\t\tif(!$tw.boot.excludeRegExp.test(publisherFolders[t])) {\n\t\t\t\t\tcollectPlugins(path.resolve(folder,\"./\" + publisherFolders[t]));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.pluginsPath,$tw.config.pluginsEnvVar),collectPublisherPlugins);\n\t$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.themesPath,$tw.config.themesEnvVar),collectPublisherPlugins);\n\t$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.languagesPath,$tw.config.languagesEnvVar),collectPlugins);\n\t// Save the upgrade library tiddler\n\tvar pluginFields = {\n\t\ttitle: upgradeLibraryTitle,\n\t\ttype: \"application/json\",\n\t\t\"plugin-type\": \"library\",\n\t\t\"text\": JSON.stringify({tiddlers: tiddlers})\n\t};\n\twiki.addTiddler(new $tw.Tiddler(pluginFields));\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/output.js": { - "title": "$:/core/modules/commands/output.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"output\",\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(\"fs\"),\n\t\tpath = require(\"path\");\n\tif(this.params.length < 1) {\n\t\treturn \"Missing output path\";\n\t}\n\tthis.commander.outputPath = path.resolve(process.cwd(),this.params[0]);\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/password.js": { - "title": "$:/core/modules/commands/password.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"password\",\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 < 1) {\n\t\treturn \"Missing password\";\n\t}\n\t$tw.crypto.setPassword(this.params[0]);\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/render.js": { - "title": "$:/core/modules/commands/render.js", - "text": "/*\\\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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.info = {\n\tname: \"render\",\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 < 1) {\n\t\treturn \"Missing tiddler filter\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\twiki = this.commander.wiki,\n\t\ttiddlerFilter = this.params[0],\n\t\tfilenameFilter = this.params[1] || \"[is[tiddler]addsuffix[.html]]\",\n\t\ttype = this.params[2] || \"text/html\",\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 || \"\";\n\t\t}\n\t\tvar widgetNode = wiki.makeWidget(parser,{variables: variables}),\n\t\t\tcontainer = $tw.fakeDocument.createElement(\"div\");\n\t\twidgetNode.render(container,null);\n\t\tvar text = type === \"text/html\" ? 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(\"Rendering \\\"\" + title + \"\\\" to \\\"\" + filepath + \"\\\"\");\n\t\t}\n\t\t$tw.utils.createFileDirectories(filepath);\n\t\tfs.writeFileSync(filepath,text,\"utf8\");\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/rendertiddler.js": { - "title": "$:/core/modules/commands/rendertiddler.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"rendertiddler\",\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 < 2) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\ttitle = this.params[0],\n\t\tfilename = path.resolve(this.commander.outputPath,this.params[1]),\n\t\ttype = this.params[2] || \"text/html\",\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 && value) {\n\t\tvariables[name] = value;\n\t}\n\tfs.writeFile(filename,this.commander.wiki.renderTiddler(type,title,{variables: variables}),\"utf8\",function(err) {\n\t\tself.callback(err);\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/rendertiddlers.js": { - "title": "$:/core/modules/commands/rendertiddlers.js", - "text": "/*\\\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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.info = {\n\tname: \"rendertiddlers\",\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 < 2) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\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] || \"text/html\",\n\t\textension = this.params[4] || \".html\",\n\t\tdeleteDirectory = (this.params[5] || \"\").toLowerCase() !== \"noclean\",\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(\"div\");\n\t\twidgetNode.render(container,null);\n\t\tvar text = type === \"text/html\" ? container.innerHTML : container.textContent,\n\t\t\texportPath = null;\n\t\tif($tw.utils.hop($tw.macros,\"tv-get-export-path\")) {\n\t\t\tvar macroPath = $tw.macros[\"tv-get-export-path\"].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,\"utf8\");\n\t});\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/save.js": { - "title": "$:/core/modules/commands/save.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"save\",\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 < 1) {\n\t\treturn \"Missing filename filter\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\n\t\twiki = this.commander.wiki,\n\t\ttiddlerFilter = this.params[0],\n\t\tfilenameFilter = this.params[1] || \"[is[tiddler]]\",\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 || \"text/vnd.tiddlywiki\",\n\t\t\tcontentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: \"utf8\"},\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(\"Saving \\\"\" + title + \"\\\" to \\\"\" + filepath + \"\\\"\");\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", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/savelibrarytiddlers.js": { - "title": "$:/core/modules/commands/savelibrarytiddlers.js", - "text": "/*\\\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 <tiddler> <tiddler-filter> <pathname> <skinnylisting>\n\nThe tiddler identifies the bundle tiddler that contains the subtiddlers.\n\nThe tiddler filter specifies the plugins to be included.\n\nThe pathname specifies the pathname to the folder in which the JSON files should be saved. The filename is the URL encoded title of the subtiddler.\n\nThe skinnylisting specifies the title of the tiddler to which a JSON catalogue of the subtiddlers will be saved. The JSON file contains the same data as the bundle tiddler but with the `text` field removed.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"savelibrarytiddlers\",\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 < 2) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\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 \"'\" + containerTitle + \"' is not a tiddler bundle\";\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) + \".json\");\n\t\t$tw.utils.createFileDirectories(pathname);\n\t\tfs.writeFileSync(pathname,JSON.stringify(tiddler),\"utf8\");\n\t\t// Collect the skinny list data\n\t\tvar pluginTiddlers = JSON.parse(tiddler.text),\n\t\t\treadmeContent = (pluginTiddlers.tiddlers[title + \"/readme\"] || {}).text,\n\t\t\tdoesRequireReload = !!self.commander.wiki.doesPluginInfoRequireReload(pluginTiddlers),\n\t\t\ticonTiddler = pluginTiddlers.tiddlers[title + \"/icon\"] || {},\n\t\t\ticonType = iconTiddler.type,\n\t\t\ticonText = iconTiddler.text,\n\t\t\ticonContent;\n\t\tif(iconType && iconText) {\n\t\t\ticonContent = $tw.utils.makeDataUri(iconText,iconType);\n\t\t}\n\t\tskinnyList.push($tw.utils.extend({},tiddler,{\n\t\t\ttext: undefined,\n\t\t\treadme: readmeContent,\n\t\t\t\"requires-reload\": doesRequireReload ? \"yes\" : \"no\",\n\t\t\ticon: iconContent\n\t\t}));\n\t});\n\t// Save the catalogue tiddler\n\tif(skinnyListTitle) {\n\t\tself.commander.wiki.setTiddlerData(skinnyListTitle,skinnyList);\n\t}\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/savetiddler.js": { - "title": "$:/core/modules/commands/savetiddler.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"savetiddler\",\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 < 2) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\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 || \"text/vnd.tiddlywiki\",\n\t\t\tcontentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: \"utf8\"};\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 \"Missing tiddler: \" + title;\n\t}\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/savetiddlers.js": { - "title": "$:/core/modules/commands/savetiddlers.js", - "text": "/*\\\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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.info = {\n\tname: \"savetiddlers\",\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 < 1) {\n\t\treturn \"Missing filename\";\n\t}\n\tvar self = this,\n\t\tfs = require(\"fs\"),\n\t\tpath = require(\"path\"),\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] || \"\").toLowerCase() !== \"noclean\",\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 || \"text/vnd.tiddlywiki\",\n\t\t\tcontentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: \"utf8\"},\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", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/savewikifolder.js": { - "title": "$:/core/modules/commands/savewikifolder.js", - "text": "/*\\\ntitle: $:/core/modules/commands/savewikifolder.js\ntype: application/javascript\nmodule-type: command\n\nCommand to save the current wiki as a wiki folder\n\n--savewikifolder <wikifolderpath> [<filter>]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.info = {\n\tname: \"savewikifolder\",\n\tsynchronous: true\n};\n\nvar fs,path;\nif($tw.node) {\n\tfs = require(\"fs\");\n\tpath = require(\"path\");\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 < 1) {\n\t\treturn \"Missing wiki folder path\";\n\t}\n\tvar wikifoldermaker = new WikiFolderMaker(this.params[0],this.params[1],this.commander);\n\treturn wikifoldermaker.save();\n};\n\nfunction WikiFolderMaker(wikiFolderPath,wikiFilter,commander) {\n\tthis.wikiFolderPath = wikiFolderPath;\n\tthis.wikiFilter = wikiFilter || \"[all[tiddlers]]\";\n\tthis.commander = commander;\n\tthis.wiki = commander.wiki;\n\tthis.savedPaths = []; // So that we can detect filename clashes\n}\n\nWikiFolderMaker.prototype.log = function(str) {\n\tif(this.commander.verbose) {\n\t\tconsole.log(str);\n\t}\n};\n\nWikiFolderMaker.prototype.tiddlersToIgnore = [\n\t\"$:/boot/boot.css\",\n\t\"$:/boot/boot.js\",\n\t\"$:/boot/bootprefix.js\",\n\t\"$:/core\",\n\t\"$:/library/sjcl.js\",\n\t\"$:/temp/info-plugin\"\n];\n\n/*\nReturns null if successful, or an error string if there was an error\n*/\nWikiFolderMaker.prototype.save = function() {\n\tvar self = this;\n\t// Check that the output directory doesn't exist\n\tif(fs.existsSync(this.wikiFolderPath) && !$tw.utils.isDirectoryEmpty(this.wikiFolderPath)) {\n\t\treturn \"The unpackwiki command requires that the output wiki folder be empty\";\n\t}\n\t// Get the tiddlers from the source wiki\n\tvar tiddlerTitles = this.wiki.filterTiddlers(this.wikiFilter);\n\t// Initialise a new tiddlwiki.info file\n\tvar newWikiInfo = {};\n\t// Process each incoming tiddler in turn\n\t$tw.utils.each(tiddlerTitles,function(title) {\n\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\tif(tiddler) {\n\t\t\tif(self.tiddlersToIgnore.indexOf(title) !== -1) {\n\t\t\t\t// Ignore the core plugin and the ephemeral info plugin\n\t\t\t\tself.log(\"Ignoring tiddler: \" + title);\n\t\t\t} else {\n\t\t\t\tvar type = tiddler.fields.type,\n\t\t\t\t\tpluginType = tiddler.fields[\"plugin-type\"];\n\t\t\t\tif(type === \"application/json\" && pluginType) {\n\t\t\t\t\t// Plugin tiddler\n\t\t\t\t\tvar libraryDetails = self.findPluginInLibrary(title);\n\t\t\t\t\tif(libraryDetails) {\n\t\t\t\t\t\t// A plugin from the core library\n\t\t\t\t\t\tself.log(\"Adding built-in plugin: \" + libraryDetails.name);\n\t\t\t\t\t\tnewWikiInfo[libraryDetails.type] = newWikiInfo[libraryDetails.type] || [];\n\t\t\t\t\t\t$tw.utils.pushTop(newWikiInfo[libraryDetails.type],libraryDetails.name);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// A custom plugin\n\t\t\t\t\t\tself.log(\"Processing custom plugin: \" + title);\n\t\t\t\t\t\tself.saveCustomPlugin(tiddler);\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t// Ordinary tiddler\n\t\t\t\t\tself.saveTiddler(\"tiddlers\",tiddler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\t// Save the tiddlywiki.info file\n\tthis.saveJSONFile(\"tiddlywiki.info\",newWikiInfo);\n\tself.log(\"Writing tiddlywiki.info: \" + JSON.stringify(newWikiInfo,null,$tw.config.preferences.jsonSpaces));\n\treturn null;\n};\n\n/*\nTest whether the specified tiddler is a plugin in the plugin library\n*/\nWikiFolderMaker.prototype.findPluginInLibrary = function(title) {\n\tvar parts = title.split(\"/\"),\n\t\tpluginPath, type, name;\n\tif(parts[0] === \"$:\") {\n\t\tif(parts[1] === \"languages\" && parts.length === 3) {\n\t\t\tpluginPath = \"languages\" + path.sep + parts[2];\n\t\t\ttype = parts[1];\n\t\t\tname = parts[2];\n\t\t} else if(parts[1] === \"plugins\" || parts[1] === \"themes\" && parts.length === 4) {\n\t\t\tpluginPath = parts[1] + path.sep + parts[2] + path.sep + parts[3];\n\t\t\ttype = parts[1];\n\t\t\tname = parts[2] + \"/\" + parts[3];\n\t\t}\n\t}\n\tif(pluginPath && type && name) {\n\t\tpluginPath = path.resolve($tw.boot.bootPath,\"..\",pluginPath);\n\t\tif(fs.existsSync(pluginPath)) {\n\t\t\treturn {\n\t\t\t\tpluginPath: pluginPath,\n\t\t\t\ttype: type,\n\t\t\t\tname: name\n\t\t\t};\n\t\t}\n\t}\n\treturn false;\n};\n\nWikiFolderMaker.prototype.saveCustomPlugin = function(pluginTiddler) {\n\tvar self = this,\n\t\tpluginTitle = pluginTiddler.fields.title,\n\t\ttitleParts = pluginTitle.split(\"/\"),\n\t\tdirectory = $tw.utils.generateTiddlerFilepath(titleParts[titleParts.length - 1],{\n\t\t\tdirectory: path.resolve(this.wikiFolderPath,pluginTiddler.fields[\"plugin-type\"] + \"s\")\n\t\t}),\n\t\tpluginInfo = pluginTiddler.getFieldStrings({exclude: [\"text\",\"type\"]});\n\tthis.saveJSONFile(directory + path.sep + \"plugin.info\",pluginInfo);\n\tself.log(\"Writing \" + directory + path.sep + \"plugin.info: \" + JSON.stringify(pluginInfo,null,$tw.config.preferences.jsonSpaces));\n\tvar pluginTiddlers = JSON.parse(pluginTiddler.fields.text).tiddlers; // A hashmap of tiddlers in the plugin\n\t$tw.utils.each(pluginTiddlers,function(tiddler) {\n\t\tself.saveTiddler(directory,new $tw.Tiddler(tiddler));\n\t});\n};\n\nWikiFolderMaker.prototype.saveTiddler = function(directory,tiddler) {\n\tvar fileInfo = $tw.utils.generateTiddlerFileInfo(tiddler,{\n\t\tdirectory: path.resolve(this.wikiFolderPath,directory),\n\t\twiki: this.wiki\n\t});\n\t$tw.utils.saveTiddlerToFileSync(tiddler,fileInfo);\n};\n\nWikiFolderMaker.prototype.saveJSONFile = function(filename,json) {\n\tthis.saveTextFile(filename,JSON.stringify(json,null,$tw.config.preferences.jsonSpaces));\n};\n\nWikiFolderMaker.prototype.saveTextFile = function(filename,data) {\n\tthis.saveFile(filename,\"utf8\",data);\n};\n\nWikiFolderMaker.prototype.saveFile = function(filename,encoding,data) {\n\tvar filepath = path.resolve(this.wikiFolderPath,filename);\n\t$tw.utils.createFileDirectories(filepath);\n\tfs.writeFileSync(filepath,data,encoding);\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/server.js": { - "title": "$:/core/modules/commands/server.js", - "text": "/*\\\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\"use strict\";\n\nvar Server = require(\"$:/core/modules/server/server.js\").Server;\n\nexports.info = {\n\tname: \"server\",\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(\"Warning: Wiki folder '\" + $tw.boot.wikiPath + \"' does not exist or is missing a tiddlywiki.info file\");\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\"root-tiddler\": this.params[1],\n\t\t\t\"root-render-type\": this.params[2],\n\t\t\t\"root-serve-type\": this.params[3],\n\t\t\tusername: this.params[4],\n\t\t\tpassword: this.params[5],\n\t\t\t\"path-prefix\": this.params[7],\n\t\t\t\"debug-level\": this.params[8]\n\t\t}\n\t});\n\tvar nodeServer = this.server.listen();\n\t$tw.hooks.invokeHook(\"th-server-command-post-start\",this.server,nodeServer,\"tiddlywiki\");\n\treturn null;\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/setfield.js": { - "title": "$:/core/modules/commands/setfield.js", - "text": "/*\\\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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.info = {\n\tname: \"setfield\",\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 < 4) {\n\t\treturn \"Missing parameters\";\n\t}\n\tvar self = this,\n\t\twiki = this.commander.wiki,\n\t\tfilter = this.params[0],\n\t\tfieldname = this.params[1] || \"text\",\n\t\ttemplatetitle = this.params[2],\n\t\trendertype = this.params[3] || \"text/plain\",\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(\"div\");\n\t\t\twidgetNode.render(container,null);\n\t\t\tnewFields[fieldname] = rendertype === \"text/html\" ? 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", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/unpackplugin.js": { - "title": "$:/core/modules/commands/unpackplugin.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"unpackplugin\",\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 < 1) {\n\t\treturn \"Missing plugin name\";\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 \"Plugin '\" + title + \"' not found\";\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", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/verbose.js": { - "title": "$:/core/modules/commands/verbose.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"verbose\",\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(\"Boot log:\\n \" + $tw.boot.logMessages.join(\"\\n \") + \"\\n\");\n\treturn null; // No error\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/commands/version.js": { - "title": "$:/core/modules/commands/version.js", - "text": "/*\\\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\"use strict\";\n\nexports.info = {\n\tname: \"version\",\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 + \"\\n\");\n\treturn null; // No error\n};\n\nexports.Command = Command;\n\n})();\n", - "type": "application/javascript", - "module-type": "command" - }, - "$:/core/modules/config.js": { - "title": "$:/core/modules/config.js", - "text": "/*\\\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\"use strict\";\n\nexports.preferences = {};\n\nexports.preferences.notificationDuration = 3 * 1000;\nexports.preferences.jsonSpaces = 4;\n\nexports.textPrimitives = {\n\tupperLetter: \"[A-Z\\u00c0-\\u00d6\\u00d8-\\u00de\\u0150\\u0170]\",\n\tlowerLetter: \"[a-z\\u00df-\\u00f6\\u00f8-\\u00ff\\u0151\\u0171]\",\n\tanyLetter: \"[A-Za-z0-9\\u00c0-\\u00d6\\u00d8-\\u00de\\u00df-\\u00f6\\u00f8-\\u00ff\\u0150\\u0170\\u0151\\u0171]\",\n\tblockPrefixLetters:\t\"[A-Za-z0-9-_\\u00c0-\\u00d6\\u00d8-\\u00de\\u00df-\\u00f6\\u00f8-\\u00ff\\u0150\\u0170\\u0151\\u0171]\"\n};\n\nexports.textPrimitives.unWikiLink = \"~\";\nexports.textPrimitives.wikiLink = exports.textPrimitives.upperLetter + \"+\" +\n\texports.textPrimitives.lowerLetter + \"+\" +\n\texports.textPrimitives.upperLetter +\n\texports.textPrimitives.anyLetter + \"*\";\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 = \"area,base,br,col,command,embed,hr,img,input,keygen,link,meta,param,source,track,wbr\".split(\",\");\n\nexports.htmlBlockElements = \"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\".split(\",\");\n\nexports.htmlUnsafeElements = \"script\".split(\",\");\n\n})();\n", - "type": "application/javascript", - "module-type": "config" - }, - "$:/core/modules/deserializers.js": { - "title": "$:/core/modules/deserializers.js", - "text": "/*\\\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\"use strict\";\n\n/*\nUtility function to parse an old-style tiddler DIV in a *.tid file. It looks like this:\n\n<div title=\"Title\" creator=\"JoeBloggs\" modifier=\"JoeBloggs\" created=\"201102111106\" modified=\"201102111310\" tags=\"myTag [[my long tag]]\">\n<pre>The text of the tiddler (without the expected HTML encoding).\n</pre>\n</div>\n\nNote that the field attributes are HTML encoded, but that the body of the <PRE> 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 > 1) {\n\t\tfor(var f=1; f<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*<div\\s+([^>]*)>(\\s*<pre>)?/gi,\n\t\tendRegExp,\n\t\tmatch = startRegExp.exec(text);\n\tif(match) {\n\t\t// Old-style DIVs don't have the <pre> tag\n\t\tif(match[2]) {\n\t\t\tendRegExp = /<\\/pre>\\s*<\\/div>\\s*$/gi;\n\t\t} else {\n\t\t\tendRegExp = /<\\/div>\\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*(?:\"([^\"]*)\"|'([^']*)')/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[\"application/x-tiddler-html-div\"] = function(text,fields) {\n\treturn [parseTiddlerDiv(text,fields)];\n};\n\nexports[\"application/json\"] = 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: \"JSON error: \" + e,\n\t\t\ttext: \"\"\n\t\t}]\n\t}\n\tif(!$tw.utils.isArray(incoming)) {\n\t\tincoming = [incoming];\n\t}\n\tfor(var t=0; t<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] === \"string\") {\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[\"text/html\"] = function(text,fields) {\n\t// Check if we've got a store area\n\tvar storeAreaMarkerRegExp = /<div id=[\"']?storeArea['\"]?( style=[\"']?display:none;[\"']?)?>/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 = /<div id=[\"']?systemArea['\"]?( style=[\"']?display:none;[\"']?)?>/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 = \"text/html\";\n\treturn [result];\n}\n\nfunction deserializeTiddlyWikiFile(text,storeAreaEnd,isTiddlyWiki5,fields) {\n\tvar results = [],\n\t\tendOfDivRegExp = /(<\\/div>\\s*)/gi,\n\t\tstartPos = storeAreaEnd,\n\t\tdefaultType = isTiddlyWiki5 ? undefined : \"text/x-tiddlywiki\";\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 === \"string\") {\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", - "type": "application/javascript", - "module-type": "tiddlerdeserializer" - }, - "$:/core/modules/editor/engines/framed.js": { - "title": "$:/core/modules/editor/engines/framed.js", - "text": "/*\\\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\"use strict\";\n\nvar HEIGHT_VALUE_TITLE = \"$:/config/TextEditor/EditorHeight/Height\";\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(\"textarea\");\n\tif(this.widget.editClass) {\n\t\tthis.dummyTextArea.className = this.widget.editClass;\n\t}\n\tthis.dummyTextArea.setAttribute(\"hidden\",\"true\");\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(\"iframe\");\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(\"\");\n\tthis.iframeDoc.close();\n\t// Style the iframe\n\tthis.iframeNode.className = this.dummyTextArea.className;\n\tthis.iframeNode.style.border = \"none\";\n\tthis.iframeNode.style.padding = \"0\";\n\tthis.iframeNode.style.resize = \"none\";\n\tthis.iframeDoc.body.style.margin = \"0\";\n\tthis.iframeDoc.body.style.padding = \"0\";\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 = \"input\";\n\t}\n\tthis.domNode = this.iframeDoc.createElement(tag);\n\t// Set the text\n\tif(this.widget.editTag === \"textarea\") {\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(\"type\",this.widget.editType);\n\t}\n\tif(this.widget.editPlaceholder) {\n\t\tthis.domNode.setAttribute(\"placeholder\",this.widget.editPlaceholder);\n\t}\n\tif(this.widget.editSize) {\n\t\tthis.domNode.setAttribute(\"size\",this.widget.editSize);\n\t}\n\tif(this.widget.editRows) {\n\t\tthis.domNode.setAttribute(\"rows\",this.widget.editRows);\n\t}\n\tif(this.widget.editTabIndex) {\n\t\tthis.iframeNode.setAttribute(\"tabindex\",this.widget.editTabIndex);\n\t}\n\tif(this.widget.editAutoComplete) {\n\t\tthis.domNode.setAttribute(\"autocomplete\",this.widget.editAutoComplete);\n\t}\n\tif(this.widget.isDisabled === \"yes\") {\n\t\tthis.domNode.setAttribute(\"disabled\",true);\n\t}\t\n\t// Copy the styles from the dummy textarea\n\tthis.copyStyles();\n\t// Add event listeners\n\t$tw.utils.addEventListeners(this.domNode,[\n\t\t{name: \"click\",handlerObject: this,handlerMethod: \"handleClickEvent\"},\n\t\t{name: \"input\",handlerObject: this,handlerMethod: \"handleInputEvent\"},\n\t\t{name: \"keydown\",handlerObject: this.widget,handlerMethod: \"handleKeydownEvent\"},\n\t\t{name: \"focus\",handlerObject: this,handlerMethod: \"handleFocusEvent\"}\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 = \"block\";\n\tthis.domNode.style.width = \"100%\";\n\tthis.domNode.style.margin = \"0\";\n\t// In Chrome setting -webkit-text-fill-color overrides the placeholder text colour\n\tthis.domNode.style[\"-webkit-text-fill-color\"] = \"currentcolor\";\n};\n\n/*\nSet the text of the engine if it doesn't currently have focus\n*/\nFramedEngine.prototype.setText = function(text,type) {\n\tif(!this.domNode.isTiddlyWikiFakeDom) {\n\t\tif(this.domNode.ownerDocument.activeElement !== this.domNode) {\n\t\t\tthis.updateDomNodeText(text);\n\t\t}\n\t\t// Fix the height if needed\n\t\tthis.fixHeight();\n\t}\n};\n\n/*\nUpdate the DomNode with the new text\n*/\nFramedEngine.prototype.updateDomNodeText = function(text) {\n\tthis.domNode.value = text;\n};\n\n/*\nGet the text of the engine\n*/\nFramedEngine.prototype.getText = function() {\n\treturn this.domNode.value;\n};\n\n/*\nFix the height of textarea to fit content\n*/\nFramedEngine.prototype.fixHeight = function() {\n\t// Make sure styles are updated\n\tthis.copyStyles();\n\t// Adjust height\n\tif(this.widget.editTag === \"textarea\") {\n\t\tif(this.widget.editAutoHeight) {\n\t\t\tif(this.domNode && !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) + \"px\"; // +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,\"400px\"),10);\n\t\t\tfixedHeight = Math.max(fixedHeight,20);\n\t\t\tthis.domNode.style.height = fixedHeight + \"px\";\n\t\t\tthis.iframeNode.style.height = (fixedHeight + 14) + \"px\";\n\t\t}\n\t}\n};\n\n/*\nFocus the engine node\n*/\nFramedEngine.prototype.focus = function() {\n\tif(this.domNode.focus && this.domNode.select) {\n\t\tthis.domNode.focus();\n\t\tthis.domNode.select();\n\t}\n};\n\n/*\nHandle a focus event\n*/\nFramedEngine.prototype.handleFocusEvent = function(event) {\n\tif(this.widget.editCancelPopups) {\n\t\t$tw.popup.cancel(0);\t\n\t}\n};\n\n/*\nHandle a click\n*/\nFramedEngine.prototype.handleClickEvent = function(event) {\n\tthis.fixHeight();\n\treturn true;\n};\n\n/*\nHandle a dom \"input\" event which occurs when the text has changed\n*/\nFramedEngine.prototype.handleInputEvent = function(event) {\n\tthis.widget.saveChanges(this.getText());\n\tthis.fixHeight();\n\tif(this.widget.editInputActions) {\n\t\tthis.widget.invokeActionString(this.widget.editInputActions);\n\t}\n\treturn true;\n};\n\n/*\nCreate a blank structure representing a text operation\n*/\nFramedEngine.prototype.createTextOperation = function() {\n\tvar operation = {\n\t\ttext: this.domNode.value,\n\t\tselStart: this.domNode.selectionStart,\n\t\tselEnd: this.domNode.selectionEnd,\n\t\tcutStart: null,\n\t\tcutEnd: null,\n\t\treplacement: null,\n\t\tnewSelStart: null,\n\t\tnewSelEnd: null\n\t};\n\toperation.selection = operation.text.substring(operation.selStart,operation.selEnd);\n\treturn operation;\n};\n\n/*\nExecute a text operation\n*/\nFramedEngine.prototype.executeTextOperation = function(operation) {\n\t// Perform the required changes to the text area and the underlying tiddler\n\tvar newText = operation.text;\n\tif(operation.replacement !== null) {\n\t\tnewText = operation.text.substring(0,operation.cutStart) + operation.replacement + operation.text.substring(operation.cutEnd);\n\t\t// Attempt to use a execCommand to modify the value of the control\n\t\tif(this.iframeDoc.queryCommandSupported(\"insertText\") && this.iframeDoc.queryCommandSupported(\"delete\") && !$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 === \"\") {\n\t\t\t\tthis.iframeDoc.execCommand(\"delete\",false,\"\");\n\t\t\t} else {\n\t\t\t\tthis.iframeDoc.execCommand(\"insertText\",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", - "type": "application/javascript", - "module-type": "library" - }, - "$:/core/modules/editor/engines/simple.js": { - "title": "$:/core/modules/editor/engines/simple.js", - "text": "/*\\\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\"use strict\";\n\nvar HEIGHT_VALUE_TITLE = \"$:/config/TextEditor/EditorHeight/Height\";\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 = \"input\";\n\t}\n\tthis.domNode = this.widget.document.createElement(tag);\n\t// Set the text\n\tif(this.widget.editTag === \"textarea\") {\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(\"type\",this.widget.editType);\n\t}\n\tif(this.widget.editPlaceholder) {\n\t\tthis.domNode.setAttribute(\"placeholder\",this.widget.editPlaceholder);\n\t}\n\tif(this.widget.editSize) {\n\t\tthis.domNode.setAttribute(\"size\",this.widget.editSize);\n\t}\n\tif(this.widget.editRows) {\n\t\tthis.domNode.setAttribute(\"rows\",this.widget.editRows);\n\t}\n\tif(this.widget.editClass) {\n\t\tthis.domNode.className = this.widget.editClass;\n\t}\n\tif(this.widget.editTabIndex) {\n\t\tthis.domNode.setAttribute(\"tabindex\",this.widget.editTabIndex);\n\t}\n\tif(this.widget.editAutoComplete) {\n\t\tthis.domNode.setAttribute(\"autocomplete\",this.widget.editAutoComplete);\n\t}\n\tif(this.widget.isDisabled === \"yes\") {\n\t\tthis.domNode.setAttribute(\"disabled\",true);\n\t}\n\t// Add an input event handler\n\t$tw.utils.addEventListeners(this.domNode,[\n\t\t{name: \"focus\", handlerObject: this, handlerMethod: \"handleFocusEvent\"},\n\t\t{name: \"input\", handlerObject: this, handlerMethod: \"handleInputEvent\"}\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 === \"\") {\n\t\t\tthis.updateDomNodeText(text);\n\t\t}\n\t\t// Fix the height if needed\n\t\tthis.fixHeight();\n\t}\n};\n\n/*\nUpdate the DomNode with the new text\n*/\nSimpleEngine.prototype.updateDomNodeText = function(text) {\n\tthis.domNode.value = text;\n};\n\n/*\nGet the text of the engine\n*/\nSimpleEngine.prototype.getText = function() {\n\treturn this.domNode.value;\n};\n\n/*\nFix the height of textarea to fit content\n*/\nSimpleEngine.prototype.fixHeight = function() {\n\tif(this.widget.editTag === \"textarea\") {\n\t\tif(this.widget.editAutoHeight) {\n\t\t\tif(this.domNode && !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,\"400px\"),10);\n\t\t\tfixedHeight = Math.max(fixedHeight,20);\n\t\t\tthis.domNode.style.height = fixedHeight + \"px\";\n\t\t}\n\t}\n};\n\n/*\nFocus the engine node\n*/\nSimpleEngine.prototype.focus = function() {\n\tif(this.domNode.focus && this.domNode.select) {\n\t\tthis.domNode.focus();\n\t\tthis.domNode.select();\n\t}\n};\n\n/*\nHandle a dom \"input\" event which occurs when the text has changed\n*/\nSimpleEngine.prototype.handleInputEvent = function(event) {\n\tthis.widget.saveChanges(this.getText());\n\tthis.fixHeight();\n\tif(this.widget.editInputActions) {\n\t\tthis.widget.invokeActionString(this.widget.editInputActions);\n\t}\n\treturn true;\n};\n\n/*\nHandle a dom \"focus\" event\n*/\nSimpleEngine.prototype.handleFocusEvent = function(event) {\n\tif(this.widget.editCancelPopups) {\n\t\t$tw.popup.cancel(0);\n\t}\n\tif(this.widget.editFocusPopup) {\n\t\t$tw.popup.triggerPopup({\n\t\t\tdomNode: this.domNode,\n\t\t\ttitle: this.widget.editFocusPopup,\n\t\t\twiki: this.widget.wiki,\n\t\t\tforce: true\n\t\t});\n\t}\n\treturn true;\n};\n\n/*\nCreate a blank structure representing a text operation\n*/\nSimpleEngine.prototype.createTextOperation = function() {\n\treturn null;\n};\n\n/*\nExecute a text operation\n*/\nSimpleEngine.prototype.executeTextOperation = function(operation) {\n};\n\nexports.SimpleEngine = SimpleEngine;\n\n})();\n", - "type": "application/javascript", - "module-type": "library" - }, - "$:/core/modules/editor/factory.js": { - "title": "$:/core/modules/editor/factory.js", - "text": "/*\\\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\"use strict\";\n\nvar DEFAULT_MIN_TEXT_AREA_HEIGHT = \"100px\"; // Minimum height of textareas in pixels\n\n// Configuration tiddlers\nvar HEIGHT_MODE_TITLE = \"$:/config/TextEditor/EditorHeight/Mode\";\nvar ENABLE_TOOLBAR_TITLE = \"$:/config/TextEditor/EnableToolbar\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"texteditoroperation\",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(\"div\");\n\t\t\tthis.toolbarNode.className = \"tc-editor-toolbar\";\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 === \"true\" || this.editFocus === \"yes\") {\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: \"tm-edit-text-operation\", handler: \"handleEditTextOperationMessage\"}\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 = \"text/plain\",\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 === \"text\") {\n\t\t\t\t\ttype = tiddler.fields.type || \"text/vnd.tiddlywiki\";\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 \"text\":\n\t\t\t\t\t\tvalue = \"Type the text for the tiddler '\" + this.editTitle + \"'\";\n\t\t\t\t\t\ttype = \"text/vnd.tiddlywiki\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"title\":\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 = \"\";\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 || \"\", 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(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\t\tthis.editField = this.getAttribute(\"field\",\"text\");\n\t\tthis.editIndex = this.getAttribute(\"index\");\n\t\tthis.editDefault = this.getAttribute(\"default\");\n\t\tthis.editClass = this.getAttribute(\"class\");\n\t\tthis.editPlaceholder = this.getAttribute(\"placeholder\");\n\t\tthis.editSize = this.getAttribute(\"size\");\n\t\tthis.editRows = this.getAttribute(\"rows\");\n\t\tthis.editAutoHeight = this.wiki.getTiddlerText(HEIGHT_MODE_TITLE,\"auto\");\n\t\tthis.editAutoHeight = this.getAttribute(\"autoHeight\",this.editAutoHeight === \"auto\" ? \"yes\" : \"no\") === \"yes\";\n\t\tthis.editMinHeight = this.getAttribute(\"minHeight\",DEFAULT_MIN_TEXT_AREA_HEIGHT);\n\t\tthis.editFocusPopup = this.getAttribute(\"focusPopup\");\n\t\tthis.editFocus = this.getAttribute(\"focus\");\n\t\tthis.editTabIndex = this.getAttribute(\"tabindex\");\n\t\tthis.editCancelPopups = this.getAttribute(\"cancelPopups\",\"\") === \"yes\";\n\t\tthis.editInputActions = this.getAttribute(\"inputActions\");\n\t\tthis.editRefreshTitle = this.getAttribute(\"refreshTitle\");\n\t\tthis.editAutoComplete = this.getAttribute(\"autocomplete\");\n\t\tthis.isDisabled = this.getAttribute(\"disabled\",\"no\");\n\t\t// Get the default editor element tag and type\n\t\tvar tag,type;\n\t\tif(this.editField === \"text\") {\n\t\t\ttag = \"textarea\";\n\t\t} else {\n\t\t\ttag = \"input\";\n\t\t\tvar fieldModule = $tw.Tiddler.fieldModules[this.editField];\n\t\t\tif(fieldModule && fieldModule.editTag) {\n\t\t\t\ttag = fieldModule.editTag;\n\t\t\t}\n\t\t\tif(fieldModule && fieldModule.editType) {\n\t\t\t\ttype = fieldModule.editType;\n\t\t\t}\n\t\t\ttype = type || \"text\";\n\t\t}\n\t\t// Get the rest of our parameters\n\t\tthis.editTag = this.getAttribute(\"tag\",tag) || \"input\";\n\t\tthis.editType = this.getAttribute(\"type\",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,\"yes\");\n\t\tthis.editShowToolbar = (this.editShowToolbar === \"yes\") && !!(this.children && this.children.length > 0) && (!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[\"default\"] || changedAttributes[\"class\"] || changedAttributes.placeholder || changedAttributes.size || changedAttributes.autoHeight || changedAttributes.minHeight || changedAttributes.focusPopup || changedAttributes.rows || changedAttributes.tabindex || changedAttributes.cancelPopups || changedAttributes.inputActions || changedAttributes.refreshTitle || changedAttributes.autocomplete || changedTiddlers[HEIGHT_MODE_TITLE] || changedTiddlers[ENABLE_TOOLBAR_TITLE] || changedAttributes.disabled) {\n\t\t\tthis.refreshSelf();\n\t\t\treturn true;\n\t\t} else if (changedTiddlers[this.editRefreshTitle]) {\n\t\t\tthis.engine.updateDomNodeText(this.getEditInfo().value);\n\t\t} else if(changedTiddlers[this.editTitle]) {\n\t\t\tvar editInfo = this.getEditInfo();\n\t\t\tthis.updateEditor(editInfo.value,editInfo.type);\n\t\t}\n\t\tthis.engine.fixHeight();\n\t\tif(this.editShowToolbar) {\n\t\t\treturn this.refreshChildren(changedTiddlers);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t};\n\n\t/*\n\tUpdate the editor with new text. This method is separate from updateEditorDomNode()\n\tso that subclasses can override updateEditor() and still use updateEditorDomNode()\n\t*/\n\tEditTextWidget.prototype.updateEditor = function(text,type) {\n\t\tthis.updateEditorDomNode(text,type);\n\t};\n\n\t/*\n\tUpdate the editor dom node with new text\n\t*/\n\tEditTextWidget.prototype.updateEditorDomNode = function(text,type) {\n\t\tthis.engine.setText(text,type);\n\t};\n\n\t/*\n\tSave changes back to the tiddler store\n\t*/\n\tEditTextWidget.prototype.saveChanges = function(text) {\n\t\tvar editInfo = this.getEditInfo();\n\t\tif(text !== editInfo.value) {\n\t\t\teditInfo.update(text);\n\t\t}\n\t};\n\n\t/*\n\tHandle a dom \"keydown\" 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(\"[data-tw-keyboard-shortcut]\");\n\t\t\tfor(var index=0; index<shortcutElements.length; index++) {\n\t\t\t\tvar el = shortcutElements[index],\n\t\t\t\t\tshortcutData = el.getAttribute(\"data-tw-keyboard-shortcut\"),\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(\"Events\");\n\t\t\t\t clickEvent.initEvent(\"click\",true,false);\n\t\t\t\t el.dispatchEvent(clickEvent);\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Propogate the event to the container\n\t\tif(this.propogateKeydownEvent(event)) {\n\t\t\t// Ignore the keydown if it was already handled\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t\treturn true;\n\t\t}\n\t\t// Otherwise, process the keydown normally\n\t\treturn false;\n\t};\n\n\t/*\n\tPropogate keydown events to our container for the keyboard widgets benefit\n\t*/\n\tEditTextWidget.prototype.propogateKeydownEvent = function(event) {\n\t\tvar newEvent = this.document.createEventObject ? this.document.createEventObject() : this.document.createEvent(\"Events\");\n\t\tif(newEvent.initEvent) {\n\t\t\tnewEvent.initEvent(\"keydown\", 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", - "type": "application/javascript", - "module-type": "library" - }, - "$:/core/modules/editor/operations/bitmap/clear.js": { - "title": "$:/core/modules/editor/operations/bitmap/clear.js", - "text": "/*\\\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\"use strict\";\n\nexports[\"clear\"] = function(event) {\n\tvar ctx = this.canvasDomNode.getContext(\"2d\");\n\tctx.globalAlpha = 1;\n\tctx.fillStyle = event.paramObject.colour || \"white\";\n\tctx.fillRect(0,0,this.canvasDomNode.width,this.canvasDomNode.height);\n\t// Save changes\n\tthis.strokeEnd();\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "bitmapeditoroperation" - }, - "$:/core/modules/editor/operations/bitmap/resize.js": { - "title": "$:/core/modules/editor/operations/bitmap/resize.js", - "text": "/*\\\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\"use strict\";\n\nexports[\"resize\"] = 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 > 0 && newHeight > 0 && !(newWidth === this.currCanvas.width && 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", - "type": "application/javascript", - "module-type": "bitmapeditoroperation" - }, - "$:/core/modules/editor/operations/bitmap/rotate-left.js": { - "title": "$:/core/modules/editor/operations/bitmap/rotate-left.js", - "text": "/*\\\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\"use strict\";\n\nexports[\"rotate-left\"] = 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", - "type": "application/javascript", - "module-type": "bitmapeditoroperation" - }, - "$:/core/modules/editor/operations/text/excise.js": { - "title": "$:/core/modules/editor/operations/text/excise.js", - "text": "/*\\\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\"use strict\";\n\nexports[\"excise\"] = function(event,operation) {\n\tvar editTiddler = this.wiki.getTiddler(this.editTitle),\n\t\teditTiddlerTitle = this.editTitle;\n\tif(editTiddler && editTiddler.fields[\"draft.of\"]) {\n\t\teditTiddlerTitle = editTiddler.fields[\"draft.of\"];\n\t}\n\tvar excisionTitle = event.paramObject.title || this.wiki.generateNewTitle(\"New Excision\");\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 === \"yes\" ? [editTiddlerTitle] : []\n\t\t}\n\t));\n\toperation.replacement = excisionTitle;\n\tswitch(event.paramObject.type || \"transclude\") {\n\t\tcase \"transclude\":\n\t\t\toperation.replacement = \"{{\" + operation.replacement+ \"}}\";\n\t\t\tbreak;\n\t\tcase \"link\":\n\t\t\toperation.replacement = \"[[\" + operation.replacement+ \"]]\";\n\t\t\tbreak;\n\t\tcase \"macro\":\n\t\t\toperation.replacement = \"<<\" + (event.paramObject.macro || \"translink\") + \" \\\"\\\"\\\"\" + operation.replacement + \"\\\"\\\"\\\">>\";\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", - "type": "application/javascript", - "module-type": "texteditoroperation" - }, - "$:/core/modules/editor/operations/text/make-link.js": { - "title": "$:/core/modules/editor/operations/text/make-link.js", - "text": "/*\\\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\"use strict\";\n\nexports[\"make-link\"] = function(event,operation) {\n\tif(operation.selection) {\n\t\toperation.replacement = \"[[\" + operation.selection + \"|\" + event.paramObject.text + \"]]\";\n\t\toperation.cutStart = operation.selStart;\n\t\toperation.cutEnd = operation.selEnd;\n\t} else {\n\t\toperation.replacement = \"[[\" + event.paramObject.text + \"]]\";\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", - "type": "application/javascript", - "module-type": "texteditoroperation" - }, - "$:/core/modules/editor/operations/text/prefix-lines.js": { - "title": "$:/core/modules/editor/operations/text/prefix-lines.js", - "text": "/*\\\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\"use strict\";\n\nexports[\"prefix-lines\"] = function(event,operation) {\n\tvar targetCount = parseInt(event.paramObject.count + \"\",10);\n\t// Cut just past the preceding line break, or the start of the text\n\toperation.cutStart = $tw.utils.findPrecedingLineBreak(operation.text,operation.selStart);\n\t// Cut to just past the following line break, or to the end of the text\n\toperation.cutEnd = $tw.utils.findFollowingLineBreak(operation.text,operation.selEnd);\n\t// Compose the required prefix\n\tvar prefix = $tw.utils.repeat(event.paramObject.character,targetCount);\n\t// Process each line\n\tvar lines = operation.text.substring(operation.cutStart,operation.cutEnd).split(/\\r?\\n/mg);\n\t$tw.utils.each(lines,function(line,index) {\n\t\t// Remove and count any existing prefix characters\n\t\tvar count = 0;\n\t\twhile(line.charAt(0) === event.paramObject.character) {\n\t\t\tline = line.substring(1);\n\t\t\tcount++;\n\t\t}\n\t\t// Remove any whitespace\n\t\twhile(line.charAt(0) === \" \") {\n\t\t\tline = line.substring(1);\n\t\t}\n\t\t// We're done if we removed the exact required prefix, otherwise add it\n\t\tif(count !== targetCount) {\n\t\t\t// Apply the prefix\n\t\t\tline = prefix + \" \" + 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(\"\\n\");\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", - "type": "application/javascript", - "module-type": "texteditoroperation" - }, - "$:/core/modules/editor/operations/text/replace-all.js": { - "title": "$:/core/modules/editor/operations/text/replace-all.js", - "text": "/*\\\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\"use strict\";\n\nexports[\"replace-all\"] = 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", - "type": "application/javascript", - "module-type": "texteditoroperation" - }, - "$:/core/modules/editor/operations/text/replace-selection.js": { - "title": "$:/core/modules/editor/operations/text/replace-selection.js", - "text": "/*\\\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\"use strict\";\n\nexports[\"replace-selection\"] = 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", - "type": "application/javascript", - "module-type": "texteditoroperation" - }, - "$:/core/modules/editor/operations/text/save-selection.js": { - "title": "$:/core/modules/editor/operations/text/save-selection.js", - "text": "/*\\\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\"use strict\";\n\nexports[\"save-selection\"] = function(event,operation) {\n\tvar tiddler = event.paramObject.tiddler,\n\t\tfield = event.paramObject.field || \"text\";\n\tif(tiddler && field) {\n\t\tthis.wiki.setText(tiddler,field,null,operation.text.substring(operation.selStart,operation.selEnd));\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "texteditoroperation" - }, - "$:/core/modules/editor/operations/text/wrap-lines.js": { - "title": "$:/core/modules/editor/operations/text/wrap-lines.js", - "text": "/*\\\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\"use strict\";\n\nexports[\"wrap-lines\"] = 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 + \"\\n\" +\n\t\t\t\toperation.text.substring(operation.cutStart,operation.cutEnd) + \"\\n\" +\n\t\t\t\tevent.paramObject.suffix + \"\\n\";\n\toperation.newSelStart = operation.cutStart + event.paramObject.prefix.length + 1;\n\toperation.newSelEnd = operation.newSelStart + (operation.cutEnd - operation.cutStart);\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "texteditoroperation" - }, - "$:/core/modules/editor/operations/text/wrap-selection.js": { - "title": "$:/core/modules/editor/operations/text/wrap-selection.js", - "text": "/*\\\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\"use strict\";\n\nexports[\"wrap-selection\"] = function(event,operation) {\n\tif(operation.selStart === operation.selEnd) {\n\t\t// No selection; check if we're within the prefix/suffix\n\t\tif(operation.text.substring(operation.selStart - event.paramObject.prefix.length,operation.selStart + event.paramObject.suffix.length) === event.paramObject.prefix + event.paramObject.suffix) {\n\t\t\t// Remove the prefix and suffix\n\t\t\toperation.cutStart = operation.selStart - event.paramObject.prefix.length;\n\t\t\toperation.cutEnd = operation.selEnd + event.paramObject.suffix.length;\n\t\t\toperation.replacement = \"\";\n\t\t\toperation.newSelStart = operation.cutStart;\n\t\t\toperation.newSelEnd = operation.newSelStart;\n\t\t} else {\n\t\t\t// Wrap the cursor instead\n\t\t\toperation.cutStart = operation.selStart;\n\t\t\toperation.cutEnd = operation.selEnd;\n\t\t\toperation.replacement = event.paramObject.prefix + event.paramObject.suffix;\n\t\t\toperation.newSelStart = operation.selStart + event.paramObject.prefix.length;\n\t\t\toperation.newSelEnd = operation.newSelStart;\n\t\t}\n\t} else if(operation.text.substring(operation.selStart,operation.selStart + event.paramObject.prefix.length) === event.paramObject.prefix && 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", - "type": "application/javascript", - "module-type": "texteditoroperation" - }, - "$:/core/modules/filterrunprefixes/all.js": { - "title": "$:/core/modules/filterrunprefixes/all.js", - "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/all.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\nUnion of sets without de-duplication.\nEquivalent to = filter run prefix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter prefix function\n*/\nexports.all = function(operationSubFunction) {\n\treturn function(results,source,widget) {\n\t\tresults.push.apply(results, operationSubFunction(source,widget));\n\t};\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filterrunprefix" - }, - "$:/core/modules/filterrunprefixes/and.js": { - "title": "$:/core/modules/filterrunprefixes/and.js", - "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/and.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\nIntersection of sets.\nEquivalent to + filter run prefix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter prefix function\n*/\nexports.and = function(operationSubFunction,options) {\n\treturn function(results,source,widget) {\n\t\t// This replaces all the elements of the array, but keeps the actual array so that references to it are preserved\n\t\tsource = options.wiki.makeTiddlerIterator(results.toArray());\n\t\tresults.clear();\n\t\tresults.pushTop(operationSubFunction(source,widget));\n\t};\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filterrunprefix" - }, - "$:/core/modules/filterrunprefixes/else.js": { - "title": "$:/core/modules/filterrunprefixes/else.js", - "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/else.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\nEquivalent to ~ filter run prefix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter prefix function\n*/\nexports.else = function(operationSubFunction) {\n\treturn function(results,source,widget) {\n\t\tif(results.length === 0) {\n\t\t\t// Main result so far is empty\n\t\t\tresults.pushTop(operationSubFunction(source,widget));\n\t\t}\n\t};\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filterrunprefix" - }, - "$:/core/modules/filterrunprefixes/except.js": { - "title": "$:/core/modules/filterrunprefixes/except.js", - "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/except.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\nDifference of sets.\nEquivalent to - filter run prefix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter prefix function\n*/\nexports.except = function(operationSubFunction) {\n\treturn function(results,source,widget) {\n\t\tresults.remove(operationSubFunction(source,widget));\n\t};\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filterrunprefix" - }, - "$:/core/modules/filterrunprefixes/filter.js": { - "title": "$:/core/modules/filterrunprefixes/filter.js", - "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/filter.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.filter = function(operationSubFunction,options) {\n\treturn function(results,source,widget) {\n\t\tif(results.length > 0) {\n\t\t\tvar resultsToRemove = [];\n\t\t\tresults.each(function(result) {\n\t\t\t\tvar filtered = operationSubFunction(options.wiki.makeTiddlerIterator([result]),widget);\n\t\t\t\tif(filtered.length === 0) {\n\t\t\t\t\tresultsToRemove.push(result);\n\t\t\t\t}\n\t\t\t});\n\t\t\tresults.remove(resultsToRemove);\n\t\t}\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filterrunprefix" - }, - "$:/core/modules/filterrunprefixes/intersection.js": { - "title": "$:/core/modules/filterrunprefixes/intersection.js", - "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/intersection.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter prefix function\n*/\nexports.intersection = function(operationSubFunction) {\n\treturn function(results,source,widget) {\n\t\tif(results.length !== 0) {\n\t\t\tvar secondRunResults = operationSubFunction(source,widget);\n\t\t\tvar firstRunResults = results.toArray();\n\t\t\tresults.clear();\n\t\t\t$tw.utils.each(firstRunResults,function(title) {\n\t\t\t\tif(secondRunResults.indexOf(title) !== -1) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filterrunprefix" - }, - "$:/core/modules/filterrunprefixes/or.js": { - "title": "$:/core/modules/filterrunprefixes/or.js", - "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/or.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\nEquivalent to a filter run with no prefix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter prefix function\n*/\nexports.or = function(operationSubFunction) {\n\treturn function(results,source,widget) {\n\t\tresults.pushTop(operationSubFunction(source,widget));\n\t};\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filterrunprefix" - }, - "$:/core/modules/filterrunprefixes/reduce.js": { - "title": "$:/core/modules/filterrunprefixes/reduce.js", - "text": "/*\\\ntitle: $:/core/modules/filterrunprefixes/reduce.js\ntype: application/javascript\nmodule-type: filterrunprefix\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter prefix function\n*/\nexports.reduce = function(operationSubFunction,options) {\n\treturn function(results,source,widget) {\n\t\tif(results.length > 0) {\n\t\t\tvar accumulator = \"\";\n\t\t\tvar index = 0;\n\t\t\tresults.each(function(title) {\n\t\t\t\tvar list = operationSubFunction(options.wiki.makeTiddlerIterator([title]),{\n\t\t\t\t\t\tgetVariable: function(name) {\n\t\t\t\t\t\t\tswitch(name) {\n\t\t\t\t\t\t\t\tcase \"currentTiddler\":\n\t\t\t\t\t\t\t\t\treturn \"\" + title;\n\t\t\t\t\t\t\t\tcase \"accumulator\":\n\t\t\t\t\t\t\t\t\treturn \"\" + accumulator;\n\t\t\t\t\t\t\t\tcase \"index\":\n\t\t\t\t\t\t\t\t\treturn \"\" + index;\n\t\t\t\t\t\t\t\tcase \"revIndex\":\n\t\t\t\t\t\t\t\t\treturn \"\" + (results.length - 1 - index);\n\t\t\t\t\t\t\t\tcase \"length\":\n\t\t\t\t\t\t\t\t\treturn \"\" + results.length;\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn widget.getVariable(name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\tif(list.length > 0) {\n\t\t\t\t\taccumulator = \"\" + list[0];\n\t\t\t\t}\n\t\t\t\t++index;\n\t\t\t});\n\t\t\tresults.clear();\n\t\t\tresults.push(accumulator);\t\n\t\t}\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filterrunprefix" - }, - "$:/core/modules/filters/addprefix.js": { - "title": "$:/core/modules/filters/addprefix.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/addsuffix.js": { - "title": "$:/core/modules/filters/addsuffix.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/after.js": { - "title": "$:/core/modules/filters/after.js", - "text": "/*\\\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\"use strict\";\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 > (results.length - 2)) {\n\t\treturn [];\n\t} else {\n\t\treturn [results[index + 1]];\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/all/current.js": { - "title": "$:/core/modules/filters/all/current.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.current = function(source,prefix,options) {\n\tvar currTiddlerTitle = options.widget && options.widget.getVariable(\"currentTiddler\");\n\tif(currTiddlerTitle) {\n\t\treturn [currTiddlerTitle];\n\t} else {\n\t\treturn [];\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "allfilteroperator" - }, - "$:/core/modules/filters/all/missing.js": { - "title": "$:/core/modules/filters/all/missing.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.missing = function(source,prefix,options) {\n\treturn options.wiki.getMissingTitles();\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "allfilteroperator" - }, - "$:/core/modules/filters/all/orphans.js": { - "title": "$:/core/modules/filters/all/orphans.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.orphans = function(source,prefix,options) {\n\treturn options.wiki.getOrphanTitles();\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "allfilteroperator" - }, - "$:/core/modules/filters/all/shadows.js": { - "title": "$:/core/modules/filters/all/shadows.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.shadows = function(source,prefix,options) {\n\treturn options.wiki.allShadowTitles();\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "allfilteroperator" - }, - "$:/core/modules/filters/all/tags.js": { - "title": "$:/core/modules/filters/all/tags.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.tags = function(source,prefix,options) {\n\treturn Object.keys(options.wiki.getTagMap());\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "allfilteroperator" - }, - "$:/core/modules/filters/all/tiddlers.js": { - "title": "$:/core/modules/filters/all/tiddlers.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.tiddlers = function(source,prefix,options) {\n\treturn options.wiki.allTitles();\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "allfilteroperator" - }, - "$:/core/modules/filters/all.js": { - "title": "$:/core/modules/filters/all.js", - "text": "/*\\\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\"use strict\";\n\nvar allFilterOperators;\n\nfunction getAllFilterOperators() {\n\tif(!allFilterOperators) {\n\t\tallFilterOperators = {};\n\t\t$tw.modules.applyMethods(\"allfilteroperator\",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(\"+\");\n\t// Check for common optimisations\n\tif(subops.length === 1 && subops[0] === \"\") {\n\t\treturn source;\n\t} else if(subops.length === 1 && subops[0] === \"tiddlers\") {\n\t\treturn options.wiki.each;\n\t} else if(subops.length === 1 && subops[0] === \"shadows\") {\n\t\treturn options.wiki.eachShadow;\n\t} else if(subops.length === 2 && subops[0] === \"tiddlers\" && subops[1] === \"shadows\") {\n\t\treturn options.wiki.eachTiddlerPlusShadows;\n\t} else if(subops.length === 2 && subops[0] === \"shadows\" && subops[1] === \"tiddlers\") {\n\t\treturn options.wiki.eachShadowPlusTiddlers;\n\t}\n\t// Do it the hard way\n\tfor(var t=0; t<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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/backlinks.js": { - "title": "$:/core/modules/filters/backlinks.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/before.js": { - "title": "$:/core/modules/filters/before.js", - "text": "/*\\\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\"use strict\";\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 <= 0) {\n\t\treturn [];\n\t} else {\n\t\treturn [results[index - 1]];\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/commands.js": { - "title": "$:/core/modules/filters/commands.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/compare.js": { - "title": "$:/core/modules/filters/compare.js", - "text": "/*\\\ntitle: $:/core/modules/filters/compare.js\ntype: application/javascript\nmodule-type: filteroperator\n\nGeneral purpose comparison operator\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.compare = function(source,operator,options) {\n\tvar suffixes = operator.suffixes || [],\n\t\ttype = (suffixes[0] || [])[0],\n\t\tmode = (suffixes[1] || [])[0],\n\t\ttypeFn = $tw.utils.makeCompareFunction(type,{defaultType: \"number\"}),\n\t\tmodeFn = modes[mode] || modes.eq,\n\t\tinvert = operator.prefix === \"!\",\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tif(modeFn(typeFn(title,operator.operand)) !== invert) {\n\t\t\tresults.push(title);\n\t\t}\n\t});\n\treturn results;\n};\n\nvar modes = {\n\t\"eq\": function(value) {return value === 0;},\n\t\"ne\": function(value) {return value !== 0;},\n\t\"gteq\": function(value) {return value >= 0;},\n\t\"gt\": function(value) {return value > 0;},\n\t\"lteq\": function(value) {return value <= 0;},\n\t\"lt\": function(value) {return value < 0;}\n}\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/contains.js": { - "title": "$:/core/modules/filters/contains.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.contains = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldname = (operator.suffix || \"list\").toLowerCase();\n\tif(operator.prefix === \"!\") {\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/count.js": { - "title": "$:/core/modules/filters/count.js", - "text": "/*\\\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\"use strict\";\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 + \"\"];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/days.js": { - "title": "$:/core/modules/filters/days.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.days = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldName = operator.suffix || \"modified\",\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 === \"!\") {\n\t\ttargetTimeStamp = targetTimeStamp - 1000*60*60*24*dayIntervalSign;\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler && 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 && 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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/duplicateslugs.js": { - "title": "$:/core/modules/filters/duplicateslugs.js", - "text": "/*\\\ntitle: $:/core/modules/filters/duplicateslugs.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter function for [duplicateslugs[]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.duplicateslugs = function(source,operator,options) {\n\tvar slugs = Object.create(null), // Hashmap by slug of title, replaced with \"true\" if the duplicate title has already been output\n\t\tresults = [];\n\tsource(function(tiddler,title) {\n\t\tvar slug = options.wiki.slugify(title);\n\t\tif(slug in slugs) {\n\t\t\tif(slugs[slug] !== true) {\n\t\t\t\tresults.push(slugs[slug]);\n\t\t\t\tslugs[slug] = true;\n\t\t\t}\n\t\t\tresults.push(title);\n\t\t} else {\n\t\t\tslugs[slug] = title;\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/each.js": { - "title": "$:/core/modules/filters/each.js", - "text": "/*\\\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 \"list\", 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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.each = function(source,operator,options) {\n\tvar results =[] ,\n\tvalue,values = {},\n\tfield = operator.operand || \"title\";\n\tif(operator.suffix === \"value\" && field === \"title\") {\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 !== \"list-item\") {\n\t\tif(field === \"title\") {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler && !$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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/eachday.js": { - "title": "$:/core/modules/filters/eachday.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.eachday = function(source,operator,options) {\n\tvar results = [],\n\t\tvalues = [],\n\t\tfieldName = operator.operand || \"modified\";\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 && 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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/editiondescription.js": { - "title": "$:/core/modules/filters/editiondescription.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.editiondescription = function(source,operator,options) {\n\tvar results = [];\n\tif($tw.node) {\n\t\tvar editionInfo = $tw.utils.getEditionInfo();\n\t\tif(editionInfo) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif($tw.utils.hop(editionInfo,title)) {\n\t\t\t\t\tresults.push(editionInfo[title].description || \"\");\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/editions.js": { - "title": "$:/core/modules/filters/editions.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.editions = function(source,operator,options) {\n\tvar results = [];\n\tif($tw.node) {\n\t\tvar editionInfo = $tw.utils.getEditionInfo();\n\t\tif(editionInfo) {\n\t\t\t$tw.utils.each(editionInfo,function(info,name) {\n\t\t\t\tresults.push(name);\n\t\t\t});\n\t\t}\n\t\tresults.sort();\n\t}\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/else.js": { - "title": "$:/core/modules/filters/else.js", - "text": "/*\\\ntitle: $:/core/modules/filters/else.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for replacing an empty input list with a constant, passing a non-empty input list straight through\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.else = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\tif(results.length === 0) {\n\t\treturn [operator.operand];\n\t} else {\n\t\treturn results;\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/decodeuricomponent.js": { - "title": "$:/core/modules/filters/decodeuricomponent.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter functions\n*/\n\nexports.decodeuricomponent = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar value = title;\n\t\ttry {\n\t\t\tvalue = decodeURIComponent(title);\n\t\t} catch(e) {\n\t\t}\n\t\tresults.push(value);\n\t});\n\treturn results;\n};\n\nexports.encodeuricomponent = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(encodeURIComponent(title));\n\t});\n\treturn results;\n};\n\nexports.decodeuri = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar value = title;\n\t\ttry {\n\t\t\tvalue = decodeURI(title);\n\t\t} catch(e) {\n\t\t}\n\t\tresults.push(value);\n\t});\n\treturn results;\n};\n\nexports.encodeuri = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(encodeURI(title));\n\t});\n\treturn results;\n};\n\nexports.decodehtml = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.htmlDecode(title));\n\t});\n\treturn results;\n};\n\nexports.encodehtml = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.htmlEncode(title));\n\t});\n\treturn results;\n};\n\nexports.stringify = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.stringify(title,(operator.suffix === \"rawunicode\")));\n\t});\n\treturn results;\n};\n\nexports.jsonstringify = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.jsonStringify(title,(operator.suffix === \"rawunicode\")));\n\t});\n\treturn results;\n};\n\nexports.escaperegexp = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push($tw.utils.escapeRegExp(title));\n\t});\n\treturn results;\n};\n\nexports.escapecss = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\t// escape any character with a special meaning in CSS using CSS.escape()\n\t\tresults.push(CSS.escape(title));\n\t});\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/enlist.js": { - "title": "$:/core/modules/filters/enlist.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.enlist = function(source,operator,options) {\n\tvar allowDuplicates = false;\n\tswitch(operator.suffix) {\n\t\tcase \"raw\":\n\t\t\tallowDuplicates = true;\n\t\t\tbreak;\n\t\tcase \"dedupe\":\n\t\t\tallowDuplicates = false;\n\t\t\tbreak;\n\t}\n\tvar list = $tw.utils.parseStringArray(operator.operand,allowDuplicates);\n\tif(operator.prefix === \"!\") {\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/field.js": { - "title": "$:/core/modules/filters/field.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.field = function(source,operator,options) {\n\tvar results = [],indexedResults,\n\t\tfieldname = (operator.suffix || operator.operator || \"title\").toLowerCase();\n\tif(operator.prefix === \"!\") {\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 && !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 && 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 && !!operator.regexp.exec(text)) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tif(source.byField && operator.operand) {\n\t\t\t\tindexedResults = source.byField(fieldname,operator.operand);\n\t\t\t\tif(indexedResults) {\n\t\t\t\t\treturn indexedResults\n\t\t\t\t}\n\t\t\t}\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler) {\n\t\t\t\t\tvar text = tiddler.getFieldString(fieldname);\n\t\t\t\t\tif(text !== null && 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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/fields.js": { - "title": "$:/core/modules/filters/fields.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.fields = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldName,\n\t\tsuffixes = (operator.suffixes || [])[0] || [],\n\t\toperand = $tw.utils.parseStringArray(operator.operand);\n\t\n\tsource(function(tiddler,title) {\n\t\tif(tiddler) {\n\t\t\tif(suffixes.indexOf(\"include\") !== -1) {\n\t\t\t\tfor(fieldName in tiddler.fields) {\n\t\t\t\t\t(operand.indexOf(fieldName) !== -1) ? $tw.utils.pushTop(results,fieldName) : \"\";\n\t\t\t\t}\n\t\t\t} else if (suffixes.indexOf(\"exclude\") !== -1) {\n\t\t\t\tfor(fieldName in tiddler.fields) {\n\t\t\t\t\t(operand.indexOf(fieldName) !== -1) ? \"\" : $tw.utils.pushTop(results,fieldName);\n\t\t\t\t}\n\t\t\t} // else if\n\t\t\telse {\n\t\t\t\tfor(fieldName in tiddler.fields) {\n\t\t\t\t\t$tw.utils.pushTop(results,fieldName);\n\t\t\t\t}\n\t\t\t} // else\n\t\t} // if (tiddler)\n\t});\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/filter.js": { - "title": "$:/core/modules/filters/filter.js", - "text": "/*\\\ntitle: $:/core/modules/filters/filter.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator returning those input titles that pass a subfilter\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.filter = function(source,operator,options) {\n\tvar filterFn = options.wiki.compileFilter(operator.operand),\n\t\tresults = [],\n\t\ttarget = operator.prefix !== \"!\";\n\tsource(function(tiddler,title) {\n\t\tvar list = filterFn.call(options.wiki,options.wiki.makeTiddlerIterator([title]));\n\t\tif((list.length > 0) === target) {\n\t\t\tresults.push(title);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/format/date.js": { - "title": "$:/core/modules/filters/format/date.js", - "text": "/*\\\ntitle: $:/core/modules/filters/format/date.js\ntype: application/javascript\nmodule-type: formatfilteroperator\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.date = function(source,operand,options) {\n\tvar results = [];\t\n\tsource(function(tiddler,title) {\n\t\tvar value = $tw.utils.parseDate(title);\n\t\tif(value && $tw.utils.isDate(value) && value.toString() !== \"Invalid Date\") {\n\t\t\tresults.push($tw.utils.formatDateString(value,operand || \"YYYY MM DD 0hh:0mm\"));\n\t\t}\n\t});\t\n\treturn results;\n};\n\n})();", - "type": "application/javascript", - "module-type": "formatfilteroperator" - }, - "$:/core/modules/filters/format/relativedate.js": { - "title": "$:/core/modules/filters/format/relativedate.js", - "text": "/*\\\ntitle: $:/core/modules/filters/format/relativedate.js\ntype: application/javascript\nmodule-type: formatfilteroperator\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.relativedate = function(source,operand,options) {\n\tvar results = [];\t\n\tsource(function(tiddler,title) {\n\t\tvar value = $tw.utils.parseDate(title);\n\t\tif(value && $tw.utils.isDate(value) && value.toString() !== \"Invalid Date\") {\n\t\t\tresults.push($tw.utils.getRelativeDate((new Date()) - (new Date(value))).description);\n\t\t}\n\t});\t\n\treturn results;\n};\n\n})();", - "type": "application/javascript", - "module-type": "formatfilteroperator" - }, - "$:/core/modules/filters/format.js": { - "title": "$:/core/modules/filters/format.js", - "text": "/*\\\ntitle: $:/core/modules/filters/format.js\ntype: application/javascript\nmodule-type: filteroperator\nFilter operator for formatting strings\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar formatFilterOperators;\n\nfunction getFormatFilterOperators() {\n\tif(!formatFilterOperators) {\n\t\tformatFilterOperators = {};\n\t\t$tw.modules.applyMethods(\"formatfilteroperator\",formatFilterOperators);\n\t}\n\treturn formatFilterOperators;\n}\n\n/*\nExport our filter function\n*/\nexports.format = function(source,operator,options) {\n\t// Dispatch to the correct formatfilteroperator\n\tvar formatFilterOperators = getFormatFilterOperators();\n\tif(operator.suffix) {\n\t\tvar formatFilterOperator = formatFilterOperators[operator.suffix];\n\t\tif(formatFilterOperator) {\n\t\t\treturn formatFilterOperator(source,operator.operand,options);\n\t\t} else {\n\t\t\treturn [$tw.language.getString(\"Error/FormatFilterOperator\")];\n\t\t}\n\t} else {\n\t\t// Return all unchanged if the suffix is missing\n\t\tvar results = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tresults.push(title);\n\t\t});\n\t\treturn results;\n\t}\n};\n\n})();", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/get.js": { - "title": "$:/core/modules/filters/get.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/getindex.js": { - "title": "$:/core/modules/filters/getindex.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/getvariable.js": { - "title": "$:/core/modules/filters/getvariable.js", - "text": "/*\\\ntitle: $:/core/modules/filters/getvariable.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for replacing input values by the value of the variable with the same name, or blank if the variable is missing\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.getvariable = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(options.widget.getVariable(title) || \"\");\n\t});\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/has.js": { - "title": "$:/core/modules/filters/has.js", - "text": "/*\\\ntitle: $:/core/modules/filters/has.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking if a tiddler has the specified field or index\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.has = function(source,operator,options) {\n\tvar results = [],\n\t\tinvert = operator.prefix === \"!\";\n\n\tif(operator.suffix === \"field\") {\n\t\tif(invert) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(!tiddler || (tiddler && (!$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 && $tw.utils.hop(tiddler.fields,operator.operand)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\telse if(operator.suffix === \"index\") {\n\t\tif(invert) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(!tiddler || (tiddler && (!$tw.utils.hop(options.wiki.getTiddlerDataCached(tiddler,Object.create(null)),operator.operand)))) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler && $tw.utils.hop(options.wiki.getTiddlerDataCached(tiddler,Object.create(null)),operator.operand)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\telse {\n\t\tif(invert) {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(!tiddler || !$tw.utils.hop(tiddler.fields,operator.operand) || (tiddler.fields[operator.operand].length === 0)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddler && $tw.utils.hop(tiddler.fields,operator.operand) && (tiddler.fields[operator.operand].length !== 0)) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\t\t\t\t\n\t\t}\n\t}\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/haschanged.js": { - "title": "$:/core/modules/filters/haschanged.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.haschanged = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \"!\") {\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) > 0) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/indexes.js": { - "title": "$:/core/modules/filters/indexes.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/insertbefore.js": { - "title": "$:/core/modules/filters/insertbefore.js", - "text": "/*\\\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\"use strict\";\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 && options.widget.getVariable(operator.suffix || \"currentTiddler\");\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/is/binary.js": { - "title": "$:/core/modules/filters/is/binary.js", - "text": "/*\\\ntitle: $:/core/modules/filters/is/binary.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[binary]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.binary = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!options.wiki.isBinaryTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(options.wiki.isBinaryTiddler(title)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "isfilteroperator" - }, - "$:/core/modules/filters/is/blank.js": { - "title": "$:/core/modules/filters/is/blank.js", - "text": "/*\\\ntitle: $:/core/modules/filters/is/blank.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[blank]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.blank = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!title) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "isfilteroperator" - }, - "$:/core/modules/filters/is/current.js": { - "title": "$:/core/modules/filters/is/current.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.current = function(source,prefix,options) {\n\tvar results = [],\n\t\tcurrTiddlerTitle = options.widget && options.widget.getVariable(\"currentTiddler\");\n\tif(prefix === \"!\") {\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", - "type": "application/javascript", - "module-type": "isfilteroperator" - }, - "$:/core/modules/filters/is/draft.js": { - "title": "$:/core/modules/filters/is/draft.js", - "text": "/*\\\ntitle: $:/core/modules/filters/is/draft.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[draft]] analagous to [has[draft.of]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.draft = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!tiddler || !$tw.utils.hop(tiddler.fields,\"draft.of\")) {\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 && $tw.utils.hop(tiddler.fields,\"draft.of\") && (tiddler.fields[\"draft.of\"].length !== 0)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\t\t\t\t\n\t}\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "isfilteroperator" - }, - "$:/core/modules/filters/is/image.js": { - "title": "$:/core/modules/filters/is/image.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.image = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\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", - "type": "application/javascript", - "module-type": "isfilteroperator" - }, - "$:/core/modules/filters/is/missing.js": { - "title": "$:/core/modules/filters/is/missing.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.missing = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\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", - "type": "application/javascript", - "module-type": "isfilteroperator" - }, - "$:/core/modules/filters/is/orphan.js": { - "title": "$:/core/modules/filters/is/orphan.js", - "text": "/*\\\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\"use strict\";\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 === \"!\") {\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", - "type": "application/javascript", - "module-type": "isfilteroperator" - }, - "$:/core/modules/filters/is/shadow.js": { - "title": "$:/core/modules/filters/is/shadow.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.shadow = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\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", - "type": "application/javascript", - "module-type": "isfilteroperator" - }, - "$:/core/modules/filters/is/system.js": { - "title": "$:/core/modules/filters/is/system.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.system = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\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", - "type": "application/javascript", - "module-type": "isfilteroperator" - }, - "$:/core/modules/filters/is/tag.js": { - "title": "$:/core/modules/filters/is/tag.js", - "text": "/*\\\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\"use strict\";\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 === \"!\") {\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", - "type": "application/javascript", - "module-type": "isfilteroperator" - }, - "$:/core/modules/filters/is/tiddler.js": { - "title": "$:/core/modules/filters/is/tiddler.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.tiddler = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\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", - "type": "application/javascript", - "module-type": "isfilteroperator" - }, - "$:/core/modules/filters/is/variable.js": { - "title": "$:/core/modules/filters/is/variable.js", - "text": "/*\\\ntitle: $:/core/modules/filters/is/variable.js\ntype: application/javascript\nmodule-type: isfilteroperator\n\nFilter function for [is[variable]]\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.variable = function(source,prefix,options) {\n\tvar results = [];\n\tif(prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(!(title in options.widget.variables)) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(title in options.widget.variables) {\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "isfilteroperator" - }, - "$:/core/modules/filters/is.js": { - "title": "$:/core/modules/filters/is.js", - "text": "/*\\\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\"use strict\";\n\nvar isFilterOperators;\n\nfunction getIsFilterOperators() {\n\tif(!isFilterOperators) {\n\t\tisFilterOperators = {};\n\t\t$tw.modules.applyMethods(\"isfilteroperator\",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(\"Error/IsFilterOperator\")];\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})();", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/limit.js": { - "title": "$:/core/modules/filters/limit.js", - "text": "/*\\\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\"use strict\";\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 === \"!\") {\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/links.js": { - "title": "$:/core/modules/filters/links.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/list.js": { - "title": "$:/core/modules/filters/list.js", - "text": "/*\\\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\"use strict\";\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 && options.widget.getVariable(\"currentTiddler\"),\n\t\tlist = options.wiki.getTiddlerList(tr.title || currTiddlerTitle,tr.field,tr.index);\n\tif(operator.prefix === \"!\") {\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/listed.js": { - "title": "$:/core/modules/filters/listed.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.listed = function(source,operator,options) {\n\tvar field = operator.operand || \"list\",\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/listops.js": { - "title": "$:/core/modules/filters/listops.js", - "text": "/*\\\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\"use strict\";\n\n/*\nOrder a list\n*/\nexports.order = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.operand.toLowerCase() === \"reverse\") {\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/lookup.js": { - "title": "$:/core/modules/filters/lookup.js", - "text": "/*\\\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:<field>[<prefix>]]\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.lookup = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(options.wiki.getTiddlerText(operator.operand + title) || operator.suffix);\n\t});\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/match.js": { - "title": "$:/core/modules/filters/match.js", - "text": "/*\\\ntitle: $:/core/modules/filters/match.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for checking if a title matches a string\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.match = function(source,operator,options) {\n\tvar results = [],\n\t\tsuffixes = (operator.suffixes || [])[0] || [];\n\tif(suffixes.indexOf(\"caseinsensitive\") !== -1) {\n\t\tif(operator.prefix === \"!\") {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title.toLowerCase() !== (operator.operand || \"\").toLowerCase()) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title.toLowerCase() === (operator.operand || \"\").toLowerCase()) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t} else {\n\t\tif(operator.prefix === \"!\") {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title !== operator.operand) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(title === operator.operand) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/math.js": { - "title": "$:/core/modules/filters/math.js", - "text": "/*\\\ntitle: $:/core/modules/filters/math.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operators for math. Unary/binary operators work on each item in turn, and return a new item list.\n\nSum/product/maxall/minall operate on the entire list, returning a single item.\n\nNote that strings are converted to numbers automatically. Trailing non-digits are ignored.\n\n* \"\" converts to 0\n* \"12kk\" converts to 12\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.negate = makeNumericBinaryOperator(\n\tfunction(a) {return -a}\n);\n\nexports.abs = makeNumericBinaryOperator(\n\tfunction(a) {return Math.abs(a)}\n);\n\nexports.ceil = makeNumericBinaryOperator(\n\tfunction(a) {return Math.ceil(a)}\n);\n\nexports.floor = makeNumericBinaryOperator(\n\tfunction(a) {return Math.floor(a)}\n);\n\nexports.round = makeNumericBinaryOperator(\n\tfunction(a) {return Math.round(a)}\n);\n\nexports.trunc = makeNumericBinaryOperator(\n\tfunction(a) {return Math.trunc(a)}\n);\n\nexports.untrunc = makeNumericBinaryOperator(\n\tfunction(a) {return Math.ceil(Math.abs(a)) * Math.sign(a)}\n);\n\nexports.sign = makeNumericBinaryOperator(\n\tfunction(a) {return Math.sign(a)}\n);\n\nexports.add = makeNumericBinaryOperator(\n\tfunction(a,b) {return a + b;}\n);\n\nexports.subtract = makeNumericBinaryOperator(\n\tfunction(a,b) {return a - b;}\n);\n\nexports.multiply = makeNumericBinaryOperator(\n\tfunction(a,b) {return a * b;}\n);\n\nexports.divide = makeNumericBinaryOperator(\n\tfunction(a,b) {return a / b;}\n);\n\nexports.remainder = makeNumericBinaryOperator(\n\tfunction(a,b) {return a % b;}\n);\n\nexports.max = makeNumericBinaryOperator(\n\tfunction(a,b) {return Math.max(a,b);}\n);\n\nexports.min = makeNumericBinaryOperator(\n\tfunction(a,b) {return Math.min(a,b);}\n);\n\nexports.fixed = makeNumericBinaryOperator(\n\tfunction(a,b) {return Number.prototype.toFixed.call(a,Math.min(Math.max(b,0),100));}\n);\n\nexports.precision = makeNumericBinaryOperator(\n\tfunction(a,b) {return Number.prototype.toPrecision.call(a,Math.min(Math.max(b,1),100));}\n);\n\nexports.exponential = makeNumericBinaryOperator(\n\tfunction(a,b) {return Number.prototype.toExponential.call(a,Math.min(Math.max(b,0),100));}\n);\n\nexports.power = makeNumericBinaryOperator(\n\tfunction(a,b) {return Math.pow(a,b);}\n);\n\nexports.log = makeNumericBinaryOperator(\n\tfunction(a,b) {\n\t\tif(b) {\n\t\t\treturn Math.log(a)/Math.log(b);\n\t\t} else {\n\t\t\treturn Math.log(a);\n\t\t}\n\t}\n);\n\nexports.sum = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return accumulator + value},\n\t0 // Initial value\n);\n\nexports.product = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return accumulator * value},\n\t1 // Initial value\n);\n\nexports.maxall = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return Math.max(accumulator,value)},\n\t-Infinity // Initial value\n);\n\nexports.minall = makeNumericReducingOperator(\n\tfunction(accumulator,value) {return Math.min(accumulator,value)},\n\tInfinity // Initial value\n);\n\nfunction makeNumericBinaryOperator(fnCalc) {\n\treturn function(source,operator,options) {\n\t\tvar result = [],\n\t\t\tnumOperand = $tw.utils.parseNumber(operator.operand);\n\t\tsource(function(tiddler,title) {\n\t\t\tresult.push($tw.utils.stringifyNumber(fnCalc($tw.utils.parseNumber(title),numOperand)));\n\t\t});\n\t\treturn result;\n\t};\n}\n\nfunction makeNumericReducingOperator(fnCalc,initialValue) {\n\tinitialValue = initialValue || 0;\n\treturn function(source,operator,options) {\n\t\tvar result = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tresult.push(title);\n\t\t});\n\t\treturn [$tw.utils.stringifyNumber(result.reduce(function(accumulator,currentValue) {\n\t\t\treturn fnCalc(accumulator,$tw.utils.parseNumber(currentValue));\n\t\t},initialValue))];\n\t};\n}\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/minlength.js": { - "title": "$:/core/modules/filters/minlength.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.minlength = function(source,operator,options) {\n\tvar results = [],\n\t\tminLength = parseInt(operator.operand || \"\",10) || 0;\n\tsource(function(tiddler,title) {\n\t\tif(title.length >= minLength) {\n\t\t\tresults.push(title);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/modules.js": { - "title": "$:/core/modules/filters/modules.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/moduletypes.js": { - "title": "$:/core/modules/filters/moduletypes.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/next.js": { - "title": "$:/core/modules/filters/next.js", - "text": "/*\\\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\"use strict\";\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 > 0 && match < list.length) {\n\t\t\tresults.push(list[match]);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/plugintiddlers.js": { - "title": "$:/core/modules/filters/plugintiddlers.js", - "text": "/*\\\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\"use strict\";\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 && 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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/prefix.js": { - "title": "$:/core/modules/filters/prefix.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.prefix = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \"!\") {\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/previous.js": { - "title": "$:/core/modules/filters/previous.js", - "text": "/*\\\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\"use strict\";\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 >= 0) {\n\t\t\tresults.push(list[match]);\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/range.js": { - "title": "$:/core/modules/filters/range.js", - "text": "/*\\\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\"use strict\";\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<parts.length; i++) {\n\t\t// Validate real number\n\t\tif(!/^\\s*[+-]?((\\d+(\\.\\d*)?)|(\\.\\d+))\\s*$/.test(parts[i])) {\n\t\t\treturn [\"range: bad number \\\"\" + parts[i] + \"\\\"\"];\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 >= 1) {\n\t\t\t\tbeg = 1;\n\t\t\t}\n\t\t\telse if (end <= -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 [\"range: increment 0 causes infinite loop\"];\n\t}\n\t// May need to count backwards\n\tvar direction = ((end < beg) ? -1 : 1);\n\tinc *= direction;\n\t// Estimate number of resulting elements\n\tif((end - beg) / inc > 10000) {\n\t\treturn [\"range: too many steps (over 10K)\"];\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<beg) {\n\t\tfor(i=beg; i>end; i+=inc) {\n\t\t\tresults.push(i.toFixed(fixed));\n\t\t\tif(--safety<0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t} else {\n\t\tfor(i=beg; i<end; i+=inc) {\n\t\t\tresults.push(i.toFixed(fixed));\n\t\t\tif(--safety<0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tif(safety<0) {\n\t\treturn [\"range: unexpectedly large output\"];\n\t}\n\t// Reverse?\n\tif(operator.prefix === \"!\") {\n\t\tresults.reverse();\n\t}\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/reduce.js": { - "title": "$:/core/modules/filters/reduce.js", - "text": "/*\\\ntitle: $:/core/modules/filters/reduce.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator evaluates a subfilter for each item, making the running total available in the variable `accumulator`, and the current index available in the variable `index`\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.reduce = function(source,operator,options) {\n\t// Accumulate the list\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(title);\n\t});\n\t// Run the filter over each item\n\tvar filterFn = options.wiki.compileFilter(operator.operand),\n\t\taccumulator = operator.operands[1] || \"\";\n\tfor(var index=0; index<results.length; index++) {\n\t\tvar title = results[index],\n\t\t\tlist = filterFn.call(options.wiki,options.wiki.makeTiddlerIterator([title]),{\n\t\t\t\tgetVariable: function(name) {\n\t\t\t\t\tswitch(name) {\n\t\t\t\t\t\tcase \"currentTiddler\":\n\t\t\t\t\t\t\treturn \"\" + title;\n\t\t\t\t\t\tcase \"accumulator\":\n\t\t\t\t\t\t\treturn \"\" + accumulator;\n\t\t\t\t\t\tcase \"index\":\n\t\t\t\t\t\t\treturn \"\" + index;\n\t\t\t\t\t\tcase \"revIndex\":\n\t\t\t\t\t\t\treturn \"\" + (results.length - 1 - index);\n\t\t\t\t\t\tcase \"length\":\n\t\t\t\t\t\t\treturn \"\" + results.length;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\treturn options.widget.getVariable(name);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\tif(list.length > 0) {\n\t\t\taccumulator = \"\" + list[0];\n\t\t}\n\t}\n\tif(results.length > 0) {\n\t\treturn [accumulator];\n\t} else {\n\t\treturn [];\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/regexp.js": { - "title": "$:/core/modules/filters/regexp.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.regexp = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldname = (operator.suffix || \"title\").toLowerCase(),\n\t\tregexpString, regexp, flags = \"\", 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 === \"title\") {\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 [\"\" + e];\n\t}\n\t// Process the incoming tiddlers\n\tif(operator.prefix === \"!\") {\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/removeprefix.js": { - "title": "$:/core/modules/filters/removeprefix.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/removesuffix.js": { - "title": "$:/core/modules/filters/removesuffix.js", - "text": "/*\\\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\"use strict\";\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 && 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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/sameday.js": { - "title": "$:/core/modules/filters/sameday.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.sameday = function(source,operator,options) {\n\tvar results = [],\n\t\tfieldName = operator.suffix || \"modified\",\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/search.js": { - "title": "$:/core/modules/filters/search.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.search = function(source,operator,options) {\n\tvar invert = operator.prefix === \"!\";\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] || \"\", \n\t\t\tfirstChar = firstField.charAt(0),\n\t\t\tfields;\n\t\tif(firstChar === \"-\") {\n\t\t\tfields = [firstField.slice(1)].concat(fieldList.slice(1));\n\t\t\texcludeFields = true;\n\t\t} else if(fieldList[0] === \"*\"){\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(\"casesensitive\"),\n\t\t\tliteral: hasFlag(\"literal\"),\n\t\t\twhitespace: hasFlag(\"whitespace\"),\n\t\t\tanchored: hasFlag(\"anchored\"),\n\t\t\tregexp: hasFlag(\"regexp\"),\n\t\t\twords: hasFlag(\"words\")\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/shadowsource.js": { - "title": "$:/core/modules/filters/shadowsource.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/slugify.js": { - "title": "$:/core/modules/filters/slugify.js", - "text": "/*\\\ntitle: $:/core/modules/filters/slugify.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for slugifying a tiddler title\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.slugify = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(options.wiki.slugify(title));\n\t});\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/sort.js": { - "title": "$:/core/modules/filters/sort.js", - "text": "/*\\\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\"use strict\";\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 || \"title\",operator.prefix === \"!\",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 || \"title\",operator.prefix === \"!\",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 || \"title\", operator.prefix === \"!\",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 || \"title\",operator.prefix === \"!\",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 || \"title\",operator.prefix === \"!\",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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/sortsub.js": { - "title": "$:/core/modules/filters/sortsub.js", - "text": "/*\\\ntitle: $:/core/modules/filters/sortsub.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for sorting by a subfilter\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.sortsub = function(source,operator,options) {\n\t// Compile the subfilter\n\tvar filterFn = options.wiki.compileFilter(operator.operand);\n\t// Collect the input titles and the corresponding sort keys\n\tvar inputTitles = [],\n\t\tsortKeys = [];\n\tsource(function(tiddler,title) {\n\t\tinputTitles.push(title);\n\t\tvar r = filterFn.call(options.wiki,function(iterator) {\n\t\t\titerator(options.wiki.getTiddler(title),title);\n\t\t},{\n\t\t\tgetVariable: function(name) {\n\t\t\t\tif(name === \"currentTiddler\") {\n\t\t\t\t\treturn title;\n\t\t\t\t} else {\n\t\t\t\t\treturn options.widget.getVariable(name);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tsortKeys.push(r[0] || \"\");\n\t});\n\t// Rather than sorting the titles array, we'll sort the indexes so that we can consult both arrays\n\tvar indexes = new Array(inputTitles.length);\n\tfor(var t=0; t<inputTitles.length; t++) {\n\t\tindexes[t] = t;\n\t}\n\t// Sort the indexes\n\tvar compareFn = $tw.utils.makeCompareFunction(operator.suffix,{defaultType: \"string\",invert: operator.prefix === \"!\"});\n\tindexes = indexes.sort(function(a,b) {\n\t\treturn compareFn(sortKeys[a],sortKeys[b]);\n\t});\n\t// Make the results array in order\n\tvar results = [];\n\t$tw.utils.each(indexes,function(index) {\n\t\tresults.push(inputTitles[index]);\n\t});\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/splitbefore.js": { - "title": "$:/core/modules/filters/splitbefore.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/storyviews.js": { - "title": "$:/core/modules/filters/storyviews.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.storyviews = function(source,operator,options) {\n\tvar results = [],\n\t\tstoryviews = {};\n\t$tw.modules.applyMethods(\"storyview\",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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/strings.js": { - "title": "$:/core/modules/filters/strings.js", - "text": "/*\\\ntitle: $:/core/modules/filters/strings.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operators for strings. Unary/binary operators work on each item in turn, and return a new item list.\n\nSum/product/maxall/minall operate on the entire list, returning a single item.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.length = makeStringBinaryOperator(\n\tfunction(a) {return [\"\" + (\"\" + a).length];}\n);\n\nexports.uppercase = makeStringBinaryOperator(\n\tfunction(a) {return [(\"\" + a).toUpperCase()];}\n);\n\nexports.lowercase = makeStringBinaryOperator(\n\tfunction(a) {return [(\"\" + a).toLowerCase()];}\n);\n\nexports.sentencecase = makeStringBinaryOperator(\n\tfunction(a) {return [$tw.utils.toSentenceCase(a)];}\n);\n\nexports.titlecase = makeStringBinaryOperator(\n\tfunction(a) {return [$tw.utils.toTitleCase(a)];}\n);\n\nexports.trim = function(source,operator,options) {\n\tvar result = [],\n\t\tsuffix = operator.suffix || \"\",\n\t\toperand = (operator.operand || \"\"),\n\t\tfnCalc;\n\tif(suffix === \"prefix\") {\n\t\tfnCalc = function(a,b) {return [$tw.utils.trimPrefix(a,b)];}\n\t} else if(suffix === \"suffix\") {\n\t\tfnCalc = function(a,b) {return [$tw.utils.trimSuffix(a,b)];}\n\t} else {\n\t\tif(operand === \"\") {\n\t\t\tfnCalc = function(a) {return [$tw.utils.trim(a)];}\n\t\t} else {\n\t\t\tfnCalc = function(a,b) {return [$tw.utils.trimSuffix($tw.utils.trimPrefix(a,b),b)];}\n\t\t}\n\t}\n\tsource(function(tiddler,title) {\n\t\tArray.prototype.push.apply(result,fnCalc(title,operand));\n\t});\n\treturn result;\n};\n\nexports.split = makeStringBinaryOperator(\n\tfunction(a,b) {return (\"\" + a).split(b);}\n);\n\nexports[\"enlist-input\"] = makeStringBinaryOperator(\n\tfunction(a,o,s) {return $tw.utils.parseStringArray(\"\" + a,(s === \"raw\"));}\n);\n\nexports.join = makeStringReducingOperator(\n\tfunction(accumulator,value,operand) {\n\t\tif(accumulator === null) {\n\t\t\treturn value;\n\t\t} else {\n\t\t\treturn accumulator + operand + value;\n\t\t}\n\t},null\n);\n\nfunction makeStringBinaryOperator(fnCalc) {\n\treturn function(source,operator,options) {\n\t\tvar result = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tArray.prototype.push.apply(result,fnCalc(title,operator.operand || \"\",operator.suffix || \"\"));\n\t\t});\n\t\treturn result;\n\t};\n}\n\nfunction makeStringReducingOperator(fnCalc,initialValue) {\n\treturn function(source,operator,options) {\n\t\tvar result = [];\n\t\tsource(function(tiddler,title) {\n\t\t\tresult.push(title);\n\t\t});\n\t\tif(result.length === 0) {\n\t\t\treturn [];\n\t\t}\n\t\treturn [result.reduce(function(accumulator,currentValue) {\n\t\t\treturn fnCalc(accumulator,currentValue,operator.operand || \"\");\n\t\t},initialValue) || \"\"];\n\t};\n}\n\nexports.splitregexp = function(source,operator,options) {\n\tvar result = [],\n\t\tsuffix = operator.suffix || \"\",\n\t\tflags = (suffix.indexOf(\"m\") !== -1 ? \"m\" : \"\") + (suffix.indexOf(\"i\") !== -1 ? \"i\" : \"\"),\n\t\tregExp;\n\ttry {\n\t\tregExp = new RegExp(operator.operand || \"\",flags);\t\t\n\t} catch(ex) {\n\t\treturn [\"RegExp error: \" + ex];\n\t}\n\tsource(function(tiddler,title) {\n\t\tArray.prototype.push.apply(result,title.split(regExp));\n\t});\t\t\n\treturn result;\n};\n\nexports[\"search-replace\"] = function(source,operator,options) {\n\tvar results = [],\n\t\tsuffixes = operator.suffixes || [],\n\t\tflagSuffix = (suffixes[0] ? (suffixes[0][0] || \"\") : \"\"),\n\t\tflags = (flagSuffix.indexOf(\"g\") !== -1 ? \"g\" : \"\") + (flagSuffix.indexOf(\"i\") !== -1 ? \"i\" : \"\"),\n\t\tisRegExp = (suffixes[1] && suffixes[1][0] === \"regexp\") ? true : false,\n\t\tsearchTerm,\n\t\tregExp;\n\t\n\tsource(function(tiddler,title) {\n\t\tif(title && (operator.operands.length > 1)) {\n\t\t\t//Escape regexp characters if the operand is not a regular expression\n\t\t\tsearchTerm = isRegExp ? operator.operand : $tw.utils.escapeRegExp(operator.operand);\n\t\t\ttry {\n\t\t\t\tregExp = new RegExp(searchTerm,flags);\n\t\t\t} catch(ex) {\n\t\t\t\treturn [\"RegExp error: \" + ex];\n\t\t\t}\n\t\t\tresults.push(\n\t\t\t\ttitle.replace(regExp,operator.operands[1])\n\t\t\t);\n\t\t} else {\n\t\t\tresults.push(title);\n\t\t}\n\t});\n\treturn results;\n};\n\nexports.pad = function(source,operator,options) {\n\tvar results = [],\n\t\ttargetLength = operator.operand ? parseInt(operator.operand) : 0,\n\t\tfill = operator.operands[1] || \"0\";\n\n\tsource(function(tiddler,title) {\n\t\tif(title && title.length) {\n\t\t\tif(title.length >= targetLength) {\n\t\t\t\tresults.push(title);\n\t\t\t} else {\n\t\t\t\tvar padString = \"\",\n\t\t\t\t\tpadStringLength = targetLength - title.length;\n\t\t\t\twhile (padStringLength > padString.length) {\n\t\t\t\t\tpadString += fill;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//make sure we do not exceed the specified length\n\t\t\t\tpadString = padString.slice(0,padStringLength);\n\t\t\t\tif(operator.suffix && (operator.suffix === \"suffix\")) {\n\t\t\t\t\ttitle = title + padString;\n\t\t\t\t} else {\n\t\t\t\t\ttitle = padString + title;\n\t\t\t\t}\n\t\t\t\tresults.push(title);\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n}\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/subfilter.js": { - "title": "$:/core/modules/filters/subfilter.js", - "text": "/*\\\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\"use strict\";\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 === \"!\") {\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/subtiddlerfields.js": { - "title": "$:/core/modules/filters/subtiddlerfields.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/suffix.js": { - "title": "$:/core/modules/filters/suffix.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.suffix = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \"!\") {\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/tag.js": { - "title": "$:/core/modules/filters/tag.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.tag = function(source,operator,options) {\n\tvar results = [],indexedResults;\n\tif((operator.suffix || \"\").toLowerCase() === \"strict\" && !operator.operand) {\n\t\t// New semantics:\n\t\t// Always return copy of input if operator.operand is missing\n\t\tsource(function(tiddler,title) {\n\t\t\tresults.push(title);\n\t\t});\n\t} else {\n\t\t// Old semantics:\n\t\tvar tiddlers;\n\t\tif(operator.prefix === \"!\") {\n\t\t\t// Returns a copy of the input if operator.operand is missing\n\t\t\ttiddlers = options.wiki.getTiddlersWithTag(operator.operand);\n\t\t\tsource(function(tiddler,title) {\n\t\t\t\tif(tiddlers.indexOf(title) === -1) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\t// Returns empty results if operator.operand is missing\n\t\t\tif(source.byTag) {\n\t\t\t\tindexedResults = source.byTag(operator.operand);\n\t\t\t\tif(indexedResults) {\n\t\t\t\t\treturn indexedResults;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttiddlers = options.wiki.getTiddlersWithTag(operator.operand);\n\t\t\t\tsource(function(tiddler,title) {\n\t\t\t\t\tif(tiddlers.indexOf(title) !== -1) {\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tresults = options.wiki.sortByList(results,operator.operand);\n\t\t\t}\n\t\t}\t\t\n\t}\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/tagging.js": { - "title": "$:/core/modules/filters/tagging.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/tags.js": { - "title": "$:/core/modules/filters/tags.js", - "text": "/*\\\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\"use strict\";\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 && tiddler.fields.tags) {\n\t\t\tfor(t=0, length=tiddler.fields.tags.length; t<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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/then.js": { - "title": "$:/core/modules/filters/then.js", - "text": "/*\\\ntitle: $:/core/modules/filters/then.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for replacing any titles with a constant\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.then = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tresults.push(operator.operand);\n\t});\n\treturn results;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/title.js": { - "title": "$:/core/modules/filters/title.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.title = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler && 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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/untagged.js": { - "title": "$:/core/modules/filters/untagged.js", - "text": "/*\\\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\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.untagged = function(source,operator,options) {\n\tvar results = [];\n\tif(operator.prefix === \"!\") {\n\t\tsource(function(tiddler,title) {\n\t\t\tif(tiddler && $tw.utils.isArray(tiddler.fields.tags) && tiddler.fields.tags.length > 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(\"tags\") || ($tw.utils.isArray(tiddler.fields.tags) && 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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/variables.js": { - "title": "$:/core/modules/filters/variables.js", - "text": "/*\\\ntitle: $:/core/modules/filters/variables.js\ntype: application/javascript\nmodule-type: filteroperator\n\nFilter operator for returning the names of the active variables\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.variables = function(source,operator,options) {\n\tvar names = [];\n\tfor(var variable in options.widget.variables) {\n\t\tnames.push(variable);\n\t}\n\treturn names.sort();\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/wikiparserrules.js": { - "title": "$:/core/modules/filters/wikiparserrules.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters/x-listops.js": { - "title": "$:/core/modules/filters/x-listops.js", - "text": "/*\\\ntitle: $:/core/modules/filters/x-listops.js\ntype: application/javascript\nmodule-type: filteroperator\n\nExtended filter operators to manipulate the current list.\n\n\\*/\n(function () {\n\n\t/*jslint node: true, browser: true */\n\t/*global $tw: false */\n\t\"use strict\";\n\n\t/*\n\tFetch titles from the current list\n\t*/\n\tvar prepare_results = function (source) {\n\tvar results = [];\n\t\tsource(function (tiddler, title) {\n\t\t\tresults.push(title);\n\t\t});\n\t\treturn results;\n\t};\n\n\t/*\n\tMoves a number of items from the tail of the current list before the item named in the operand\n\t*/\n\texports.putbefore = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1);\n\t\treturn (index === -1) ?\n\t\t\tresults.slice(0, -1) :\n\t\t\tresults.slice(0, index).concat(results.slice(-count)).concat(results.slice(index, -count));\n\t};\n\n\t/*\n\tMoves a number of items from the tail of the current list after the item named in the operand\n\t*/\n\texports.putafter = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1);\n\t\treturn (index === -1) ?\n\t\t\tresults.slice(0, -1) :\n\t\t\tresults.slice(0, index + 1).concat(results.slice(-count)).concat(results.slice(index + 1, -count));\n\t};\n\n\t/*\n\tReplaces the item named in the operand with a number of items from the tail of the current list\n\t*/\n\texports.replace = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1);\n\t\treturn (index === -1) ?\n\t\t\tresults.slice(0, -count) :\n\t\t\tresults.slice(0, index).concat(results.slice(-count)).concat(results.slice(index + 1, -count));\n\t};\n\n\t/*\n\tMoves a number of items from the tail of the current list to the head of the list\n\t*/\n\texports.putfirst = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1);\n\t\treturn results.slice(-count).concat(results.slice(0, -count));\n\t};\n\n\t/*\n\tMoves a number of items from the head of the current list to the tail of the list\n\t*/\n\texports.putlast = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1);\n\t\treturn results.slice(count).concat(results.slice(0, count));\n\t};\n\n\t/*\n\tMoves the item named in the operand a number of places forward or backward in the list\n\t*/\n\texports.move = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,1),\n\t\t\tmarker = results.splice(index, 1),\n\t\t\toffset = (index + count) > 0 ? index + count : 0;\n\t\treturn results.slice(0, offset).concat(marker).concat(results.slice(offset));\n\t};\n\n\t/*\n\tReturns the items from the current list that are after the item named in the operand\n\t*/\n\texports.allafter = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand);\n\t\treturn (index === -1) ? [] :\n\t\t\t(operator.suffix) ? results.slice(index) :\n\t\t\tresults.slice(index + 1);\n\t};\n\n\t/*\n\tReturns the items from the current list that are before the item named in the operand\n\t*/\n\texports.allbefore = function (source, operator) {\n\t\tvar results = prepare_results(source),\n\t\t\tindex = results.indexOf(operator.operand);\n\t\treturn (index === -1) ? [] :\n\t\t\t(operator.suffix) ? results.slice(0, index + 1) :\n\t\t\tresults.slice(0, index);\n\t};\n\n\t/*\n\tAppends the items listed in the operand array to the tail of the current list\n\t*/\n\texports.append = function (source, operator) {\n\t\tvar append = $tw.utils.parseStringArray(operator.operand, \"true\"),\n\t\t\tresults = prepare_results(source),\n\t\t\tcount = parseInt(operator.suffix) || append.length;\n\t\treturn (append.length === 0) ? results :\n\t\t\t(operator.prefix) ? results.concat(append.slice(-count)) :\n\t\t\tresults.concat(append.slice(0, count));\n\t};\n\n\t/*\n\tPrepends the items listed in the operand array to the head of the current list\n\t*/\n\texports.prepend = function (source, operator) {\n\t\tvar prepend = $tw.utils.parseStringArray(operator.operand, \"true\"),\n\t\t\tresults = prepare_results(source),\n\t\t\tcount = $tw.utils.getInt(operator.suffix,prepend.length);\n\t\treturn (prepend.length === 0) ? results :\n\t\t\t(operator.prefix) ? prepend.slice(-count).concat(results) :\n\t\t\tprepend.slice(0, count).concat(results);\n\t};\n\n\t/*\n\tReturns all items from the current list except the items listed in the operand array\n\t*/\n\texports.remove = function (source, operator) {\n\t\tvar array = $tw.utils.parseStringArray(operator.operand, \"true\"),\n\t\t\tresults = prepare_results(source),\n\t\t\tcount = parseInt(operator.suffix) || array.length,\n\t\t\tp,\n\t\t\tlen,\n\t\t\tindex;\n\t\tlen = array.length - 1;\n\t\tfor (p = 0; p < count; ++p) {\n\t\t\tif (operator.prefix) {\n\t\t\t\tindex = results.indexOf(array[len - p]);\n\t\t\t} else {\n\t\t\t\tindex = results.indexOf(array[p]);\n\t\t\t}\n\t\t\tif (index !== -1) {\n\t\t\t\tresults.splice(index, 1);\n\t\t\t}\n\t\t}\n\t\treturn results;\n\t};\n\n\t/*\n\tReturns all items from the current list sorted in the order of the items in the operand array\n\t*/\n\texports.sortby = function (source, operator) {\n\t\tvar results = prepare_results(source);\n\t\tif (!results || results.length < 2) {\n\t\t\treturn results;\n\t\t}\n\t\tvar lookup = $tw.utils.parseStringArray(operator.operand, \"true\");\n\t\tresults.sort(function (a, b) {\n\t\t\treturn lookup.indexOf(a) - lookup.indexOf(b);\n\t\t});\n\t\treturn results;\n\t};\n\n\t/*\n\tRemoves all duplicate items from the current list\n\t*/\n\texports.unique = function (source, operator) {\n\t\tvar results = prepare_results(source);\n\t\tvar set = results.reduce(function (a, b) {\n\t\t\tif (a.indexOf(b) < 0) {\n\t\t\t\ta.push(b);\n\t\t\t}\n\t\t\treturn a;\n\t\t}, []);\n\t\treturn set;\n\t};\n\n\tvar cycleValueInArray = function(results,operands,stepSize) {\n\t\tvar resultsIndex,\n\t\t\tstep = stepSize || 1,\n\t\t\ti = 0,\n\t\t\topLength = operands.length,\n\t\t\tnextOperandIndex;\t\t\n\t\tfor(i; i < opLength; i++) {\n\t\t\tresultsIndex = results.indexOf(operands[i]);\n\t\t\tif(resultsIndex !== -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(resultsIndex !== -1) {\n\t\t\ti = i + step;\n\t\t\tnextOperandIndex = (i < opLength ? i : i - opLength);\n\t\t\tif(operands.length > 1) {\n\t\t\t\tresults.splice(resultsIndex,1,operands[nextOperandIndex]);\n\t\t\t} else {\n\t\t\t\tresults.splice(resultsIndex,1);\n\t\t\t}\n\t\t} else {\n\t\t\tresults.push(operands[0]);\n\t\t}\n\t\treturn results;\t\t\n\t}\n\n\t/*\n\tToggles an item in the current list.\n\t*/\t\n\texports.toggle = function(source,operator) {\n\t\treturn cycleValueInArray(prepare_results(source),operator.operands);\n\t}\n\n\texports.cycle = function(source,operator) {\n\t\tvar results = prepare_results(source),\n\t\t\toperands = (operator.operand.length ? $tw.utils.parseStringArray(operator.operand, \"true\") : [\"\"]),\n\t\t\tstep = $tw.utils.getInt(operator.operands[1]||\"\",1);\n\t\tif(step < 0) {\n\t\t\toperands.reverse();\n\t\t\tstep = Math.abs(step);\n\t\t}\t\n\t\treturn cycleValueInArray(results,operands,step);\n\t}\n\t\n})();\n", - "type": "application/javascript", - "module-type": "filteroperator" - }, - "$:/core/modules/filters.js": { - "title": "$:/core/modules/filters.js", - "text": "/*\\\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\"use strict\";\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++) !== \"[\") {\n\t\tthrow \"Missing [ in filter expression\";\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) === \"!\") {\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(/[\\[\\{<\\/]/);\n\t\tif(nextBracketPos === -1) {\n\t\t\tthrow \"Missing [ in filter expression\";\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 > -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) || \"field\";\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(\":\"),function(subsuffix) {\n\t\t\t\toperator.suffixes.push([]);\n\t\t\t\t$tw.utils.each(subsuffix.split(\",\"),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 === \"\") {\n\t\t\toperator.operator = \"title\";\n\t\t}\n\t\toperator.operands = [];\n\t\tfunction parseOperand(bracketType) {\n\t\t\tvar operand = {};\n\t\t\tswitch (bracketType) {\n\t\t\t\tcase \"{\": // Curly brackets\n\t\t\t\t\toperand.indirect = true;\n\t\t\t\t\tnextBracketPos = filterString.indexOf(\"}\",p);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"[\": // Square brackets\n\t\t\t\t\tnextBracketPos = filterString.indexOf(\"]\",p);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\": // Angle brackets\n\t\t\t\t\toperand.variable = true;\n\t\t\t\t\tnextBracketPos = filterString.indexOf(\">\",p);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\": // regexp brackets\n\t\t\t\t\tvar rex = /^((?:[^\\\\\\/]*|\\\\.)*)\\/(?:\\(([mygi]+)\\))?/g,\n\t\t\t\t\t\trexMatch = rex.exec(filterString.substring(p));\n\t\t\t\t\tif(rexMatch) {\n\t\t\t\t\t\toperator.regexp = new RegExp(rexMatch[1], rexMatch[2]);\n\t// DEPRECATION WARNING\n\tconsole.log(\"WARNING: Filter\",operator.operator,\"has a deprecated regexp operand\",operator.regexp);\n\t\t\t\t\t\tnextBracketPos = p + rex.lastIndex - 1;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthrow \"Unterminated regular expression in filter expression\";\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(nextBracketPos === -1) {\n\t\t\t\tthrow \"Missing closing bracket in filter expression\";\n\t\t\t}\n\t\t\tif(!operator.regexp) {\n\t\t\t\toperand.text = filterString.substring(p,nextBracketPos);\n\t\t\t\toperator.operands.push(operand);\n\t\t\t}\n\t\t\tp = nextBracketPos + 1;\n\t\t}\n\t\t\n\t\tp = nextBracketPos + 1;\n\t\tparseOperand(bracket);\n\t\t\n\t\t// Check for multiple operands\n\t\twhile(filterString.charAt(p) === \",\") {\n\t\t\tp++;\n\t\t\tif(/^[\\[\\{<\\/]/.test(filterString.substring(p))) {\n\t\t\t\tnextBracketPos = p;\n\t\t\t\tp++;\n\t\t\t\tparseOperand(filterString.charAt(nextBracketPos));\n\t\t\t} else {\n\t\t\t\tthrow \"Missing [ in filter expression\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Push this operator\n\t\toperators.push(operator);\n\t} while(filterString.charAt(p) !== \"]\");\n\t// Skip the ending square bracket\n\tif(filterString.charAt(p++) !== \"]\") {\n\t\tthrow \"Missing ] in filter expression\";\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 || \"\";\n\tvar results = [], // Array of arrays of operator nodes {operator:,operand:}\n\t\tp = 0, // Current position in the filter string\n\t\tmatch;\n\tvar whitespaceRegExp = /(\\s+)/mg,\n\t\toperandRegExp = /((?:\\+|\\-|~|=|\\:(\\w+))?)(?:(\\[)|(?:\"([^\"]*)\")|(?:'([^']*)')|([^\\s\\[\\]]+))/mg;\n\twhile(p < filterString.length) {\n\t\t// Skip any whitespace\n\t\twhitespaceRegExp.lastIndex = p;\n\t\tmatch = whitespaceRegExp.exec(filterString);\n\t\tif(match && 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 < 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(\"Error/FilterSyntax\");\n\t\t\t}\n\t\t\tvar operation = {\n\t\t\t\tprefix: \"\",\n\t\t\t\toperators: []\n\t\t\t};\n\t\t\tif(match[1]) {\n\t\t\t\toperation.prefix = match[1];\n\t\t\t\tp = p + operation.prefix.length;\n\t\t\t\tif(match[2]) {\n\t\t\t\t\toperation.namedPrefix = match[2];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(match[3]) { // Opening square bracket\n\t\t\t\tp = parseFilterOperation(operation.operators,filterString,p);\n\t\t\t} else {\n\t\t\t\tp = match.index + match[0].length;\n\t\t\t}\n\t\t\tif(match[4] || match[5] || match[6]) { // Double quoted string, single quoted string or unquoted title\n\t\t\t\toperation.operators.push(\n\t\t\t\t\t{operator: \"title\", operands: [{text: match[4] || match[5] || match[6]}]}\n\t\t\t\t);\n\t\t\t}\n\t\t\tresults.push(operation);\n\t\t}\n\t}\n\treturn results;\n};\n\nexports.getFilterOperators = function() {\n\tif(!this.filterOperators) {\n\t\t$tw.Wiki.prototype.filterOperators = {};\n\t\t$tw.modules.applyMethods(\"filteroperator\",this.filterOperators);\n\t}\n\treturn this.filterOperators;\n};\n\nexports.getFilterRunPrefixes = function() {\n\tif(!this.filterRunPrefixes) {\n\t\t$tw.Wiki.prototype.filterRunPrefixes = {};\n\t\t$tw.modules.applyMethods(\"filterrunprefix\",this.filterRunPrefixes);\n\t}\n\treturn this.filterRunPrefixes;\n}\n\nexports.filterTiddlers = function(filterString,widget,source) {\n\tvar fn = this.compileFilter(filterString);\n\treturn fn.call(this,source,widget);\n};\n\n/*\nCompile a filter into a function with the signature fn(source,widget) where:\nsource: an iterator function for the source tiddlers, called source(iterator), where iterator is called as iterator(tiddler,title)\nwidget: an optional widget node for retrieving the current tiddler etc.\n*/\nexports.compileFilter = function(filterString) {\n\tvar filterParseTree;\n\ttry {\n\t\tfilterParseTree = this.parseFilter(filterString);\n\t} catch(e) {\n\t\treturn function(source,widget) {\n\t\t\treturn [$tw.language.getString(\"Error/Filter\") + \": \" + 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 && widget.getVariable(\"currentTiddler\");\n\t\t\t$tw.utils.each(operation.operators,function(operator) {\n\t\t\t\tvar operands = [],\n\t\t\t\t\toperatorFunction;\n\t\t\t\tif(!operator.operator) {\n\t\t\t\t\toperatorFunction = filterOperators.title;\n\t\t\t\t} else if(!filterOperators[operator.operator]) {\n\t\t\t\t\toperatorFunction = filterOperators.field;\n\t\t\t\t} else {\n\t\t\t\t\toperatorFunction = filterOperators[operator.operator];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$tw.utils.each(operator.operands,function(operand) {\n\t\t\t\t\tif(operand.indirect) {\n\t\t\t\t\t\toperand.value = self.getTextReference(operand.text,\"\",currTiddlerTitle);\n\t\t\t\t\t} else if(operand.variable) {\n\t\t\t\t\t\toperand.value = widget.getVariable(operand.text,{defaultValue: \"\"});\n\t\t\t\t\t} else {\n\t\t\t\t\t\toperand.value = operand.text;\n\t\t\t\t\t}\n\t\t\t\t\toperands.push(operand.value);\n\t\t\t\t});\n\n\t\t\t\t// Invoke the appropriate filteroperator module\n\t\t\t\tresults = operatorFunction(accumulator,{\n\t\t\t\t\t\t\toperator: operator.operator,\n\t\t\t\t\t\t\toperand: operands.length > 0 ? operands[0] : undefined,\n\t\t\t\t\t\t\toperands: operands,\n\t\t\t\t\t\t\tprefix: operator.prefix,\n\t\t\t\t\t\t\tsuffix: operator.suffix,\n\t\t\t\t\t\t\tsuffixes: operator.suffixes,\n\t\t\t\t\t\t\tregexp: operator.regexp\n\t\t\t\t\t\t},{\n\t\t\t\t\t\t\twiki: self,\n\t\t\t\t\t\t\twidget: widget\n\t\t\t\t\t\t});\n\t\t\t\tif($tw.utils.isArray(results)) {\n\t\t\t\t\taccumulator = self.makeTiddlerIterator(results);\n\t\t\t\t} else {\n\t\t\t\t\taccumulator = results;\n\t\t\t\t}\n\t\t\t});\n\t\t\tif($tw.utils.isArray(results)) {\n\t\t\t\treturn results;\n\t\t\t} else {\n\t\t\t\tvar resultArray = [];\n\t\t\t\tresults(function(tiddler,title) {\n\t\t\t\t\tresultArray.push(title);\n\t\t\t\t});\n\t\t\t\treturn resultArray;\n\t\t\t}\n\t\t};\n\t\tvar filterRunPrefixes = self.getFilterRunPrefixes();\n\t\t// Wrap the operator functions in a wrapper function that depends on the prefix\n\t\toperationFunctions.push((function() {\n\t\t\tvar options = {wiki: self};\n\t\t\tswitch(operation.prefix || \"\") {\n\t\t\t\tcase \"\": // No prefix means that the operation is unioned into the result\n\t\t\t\t\treturn filterRunPrefixes[\"or\"](operationSubFunction, options);\n\t\t\t\tcase \"=\": // The results of the operation are pushed into the result without deduplication\n\t\t\t\t\treturn filterRunPrefixes[\"all\"](operationSubFunction, options);\n\t\t\t\tcase \"-\": // The results of this operation are removed from the main result\n\t\t\t\t\treturn filterRunPrefixes[\"except\"](operationSubFunction, options);\n\t\t\t\tcase \"+\": // This operation is applied to the main results so far\n\t\t\t\t\treturn filterRunPrefixes[\"and\"](operationSubFunction, options);\n\t\t\t\tcase \"~\": // This operation is unioned into the result only if the main result so far is empty\n\t\t\t\t\treturn filterRunPrefixes[\"else\"](operationSubFunction, options);\n\t\t\t\tdefault: \n\t\t\t\t\tif(operation.namedPrefix && filterRunPrefixes[operation.namedPrefix]) {\n\t\t\t\t\t\treturn filterRunPrefixes[operation.namedPrefix](operationSubFunction, options);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn function(results,source,widget) {\n\t\t\t\t\t\t\tresults.clear();\n\t\t\t\t\t\t\tresults.push($tw.language.getString(\"Error/FilterRunPrefix\"));\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(\"filter: \" + filterString,function filterFunction(source,widget) {\n\t\tif(!source) {\n\t\t\tsource = self.each;\n\t\t} else if(typeof source === \"object\") { // Array or hashmap\n\t\t\tsource = self.makeTiddlerIterator(source);\n\t\t}\n\t\tvar results = new $tw.utils.LinkedList();\n\t\t$tw.utils.each(operationFunctions,function(operationFunction) {\n\t\t\toperationFunction(results,source,widget);\n\t\t});\n\t\treturn results.toArray();\n\t});\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikimethod" - }, - "$:/core/modules/indexers/backlinks-indexer.js": { - "title": "$:/core/modules/indexers/backlinks-indexer.js", - "text": "/*\\\ntitle: $:/core/modules/indexers/backlinks-indexer.js\ntype: application/javascript\nmodule-type: indexer\n\nIndexes the tiddlers' backlinks\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global modules: false */\n\"use strict\";\n\n\nfunction BacklinksIndexer(wiki) {\n\tthis.wiki = wiki;\n}\n\nBacklinksIndexer.prototype.init = function() {\n\tthis.index = null;\n}\n\nBacklinksIndexer.prototype.rebuild = function() {\n\tthis.index = null;\n}\n\nBacklinksIndexer.prototype._getLinks = function(tiddler) {\n\tvar parser = this.wiki.parseText(tiddler.fields.type, tiddler.fields.text, {});\n\tif(parser) {\n\t\treturn this.wiki.extractLinks(parser.tree);\n\t}\n\treturn [];\n}\n\nBacklinksIndexer.prototype.update = function(updateDescriptor) {\n\tif(!this.index) {\n\t\treturn;\n\t}\n\tvar newLinks = [],\n\t oldLinks = [],\n\t self = this;\n\tif(updateDescriptor.old.exists) {\n\t\toldLinks = this._getLinks(updateDescriptor.old.tiddler);\n\t}\n\tif(updateDescriptor.new.exists) {\n\t\tnewLinks = this._getLinks(updateDescriptor.new.tiddler);\n\t}\n\n\t$tw.utils.each(oldLinks,function(link) {\n\t\tif(self.index[link]) {\n\t\t\tdelete self.index[link][updateDescriptor.old.tiddler.fields.title];\n\t\t}\n\t});\n\t$tw.utils.each(newLinks,function(link) {\n\t\tif(!self.index[link]) {\n\t\t\tself.index[link] = Object.create(null);\n\t\t}\n\t\tself.index[link][updateDescriptor.new.tiddler.fields.title] = true;\n\t});\n}\n\nBacklinksIndexer.prototype.lookup = function(title) {\n\tif(!this.index) {\n\t\tthis.index = Object.create(null);\n\t\tvar self = this;\n\t\tthis.wiki.forEachTiddler(function(title,tiddler) {\n\t\t\tvar links = self._getLinks(tiddler);\n\t\t\t$tw.utils.each(links, function(link) {\n\t\t\t\tif(!self.index[link]) {\n\t\t\t\t\tself.index[link] = Object.create(null);\n\t\t\t\t}\n\t\t\t\tself.index[link][title] = true;\n\t\t\t});\n\t\t});\n\t}\n\tif(this.index[title]) {\n\t\treturn Object.keys(this.index[title]);\n\t} else {\n\t\treturn [];\n\t}\n}\n\nexports.BacklinksIndexer = BacklinksIndexer;\n\n})();\n", - "type": "application/javascript", - "module-type": "indexer" - }, - "$:/core/modules/indexers/field-indexer.js": { - "title": "$:/core/modules/indexers/field-indexer.js", - "text": "/*\\\ntitle: $:/core/modules/indexers/field-indexer.js\ntype: application/javascript\nmodule-type: indexer\n\nIndexes the tiddlers with each field value\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global modules: false */\n\"use strict\";\n\nvar DEFAULT_MAXIMUM_INDEXED_VALUE_LENGTH = 128;\n\nfunction FieldIndexer(wiki) {\n\tthis.wiki = wiki;\n}\n\nFieldIndexer.prototype.init = function() {\n\tthis.index = null;\n\tthis.maxIndexedValueLength = DEFAULT_MAXIMUM_INDEXED_VALUE_LENGTH;\n\tthis.addIndexMethods();\n}\n\n// Provided for testing\nFieldIndexer.prototype.setMaxIndexedValueLength = function(length) {\n\tthis.index = null;\n\tthis.maxIndexedValueLength = length;\n};\n\nFieldIndexer.prototype.addIndexMethods = function() {\n\tvar self = this;\n\tthis.wiki.each.byField = function(name,value) {\n\t\tvar titles = self.wiki.allTitles(),\n\t\t\tlookup = self.lookup(name,value);\n\t\treturn lookup && lookup.filter(function(title) {\n\t\t\treturn titles.indexOf(title) !== -1;\n\t\t});\n\t};\n\tthis.wiki.eachShadow.byField = function(name,value) {\n\t\tvar titles = self.wiki.allShadowTitles(),\n\t\t\tlookup = self.lookup(name,value);\n\t\treturn lookup && lookup.filter(function(title) {\n\t\t\treturn titles.indexOf(title) !== -1;\n\t\t});\n\t};\n\tthis.wiki.eachTiddlerPlusShadows.byField = function(name,value) {\n\t\tvar lookup = self.lookup(name,value);\n\t\treturn lookup ? lookup.slice(0) : null;\n\t};\n\tthis.wiki.eachShadowPlusTiddlers.byField = function(name,value) {\n\t\tvar lookup = self.lookup(name,value);\n\t\treturn lookup ? lookup.slice(0) : null;\n\t};\n};\n\n/*\nTear down and then rebuild the index as if all tiddlers have changed\n*/\nFieldIndexer.prototype.rebuild = function() {\n\t// Invalidate the index so that it will be rebuilt when it is next used\n\tthis.index = null;\n};\n\n/*\nBuild the index for a particular field\n*/\nFieldIndexer.prototype.buildIndexForField = function(name) {\n\tvar self = this;\n\t// Hashmap by field name of hashmap by field value of array of tiddler titles\n\tthis.index = this.index || Object.create(null);\n\tthis.index[name] = Object.create(null);\n\tvar baseIndex = this.index[name];\n\t// Update the index for each tiddler\n\tthis.wiki.eachTiddlerPlusShadows(function(tiddler,title) {\n\t\tif(name in tiddler.fields) {\n\t\t\tvar value = tiddler.getFieldString(name);\n\t\t\t// Skip any values above the maximum length\n\t\t\tif(value.length < self.maxIndexedValueLength) {\n\t\t\t\tbaseIndex[value] = baseIndex[value] || [];\n\t\t\t\tbaseIndex[value].push(title);\n\t\t\t}\n\t\t}\n\t});\n};\n\n/*\nUpdate the index in the light of a tiddler value changing; note that the title must be identical. (Renames are handled as a separate delete and create)\nupdateDescriptor: {old: {tiddler: <tiddler>, shadow: <boolean>, exists: <boolean>},new: {tiddler: <tiddler>, shadow: <boolean>, exists: <boolean>}}\n*/\nFieldIndexer.prototype.update = function(updateDescriptor) {\n\tvar self = this;\n\t// Don't do anything if the index hasn't been built yet\n\tif(this.index === null) {\n\t\treturn;\n\t}\n\t// Remove the old tiddler from the index\n\tif(updateDescriptor.old.tiddler) {\n\t\t$tw.utils.each(this.index,function(indexEntry,name) {\n\t\t\tif(name in updateDescriptor.old.tiddler.fields) {\n\t\t\t\tvar value = updateDescriptor.old.tiddler.getFieldString(name),\n\t\t\t\t\ttiddlerList = indexEntry[value];\n\t\t\t\tif(tiddlerList) {\n\t\t\t\t\tvar index = tiddlerList.indexOf(updateDescriptor.old.tiddler.fields.title);\n\t\t\t\t\tif(index !== -1) {\n\t\t\t\t\t\ttiddlerList.splice(index,1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\t// Add the new tiddler to the index\n\tif(updateDescriptor[\"new\"].tiddler) {\n\t\t$tw.utils.each(this.index,function(indexEntry,name) {\n\t\t\tif(name in updateDescriptor[\"new\"].tiddler.fields) {\n\t\t\t\tvar value = updateDescriptor[\"new\"].tiddler.getFieldString(name);\n\t\t\t\tif(value.length < self.maxIndexedValueLength) {\n\t\t\t\t\tindexEntry[value] = indexEntry[value] || [];\n\t\t\t\t\tindexEntry[value].push(updateDescriptor[\"new\"].tiddler.fields.title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\t\t\n\t}\n};\n\n// Lookup the given field returning a list of tiddler titles\nFieldIndexer.prototype.lookup = function(name,value) {\n\t// Fail the lookup if the value is too long\n\tif(value.length >= this.maxIndexedValueLength) {\n\t\treturn null;\n\t}\n\t// Update the index if it has yet to be built\n\tif(this.index === null || !this.index[name]) {\n\t\tthis.buildIndexForField(name);\n\t}\n\treturn this.index[name][value] || [];\n};\n\nexports.FieldIndexer = FieldIndexer;\n\n})();\n", - "type": "application/javascript", - "module-type": "indexer" - }, - "$:/core/modules/indexers/tag-indexer.js": { - "title": "$:/core/modules/indexers/tag-indexer.js", - "text": "/*\\\ntitle: $:/core/modules/indexers/tag-indexer.js\ntype: application/javascript\nmodule-type: indexer\n\nIndexes the tiddlers with each tag\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global modules: false */\n\"use strict\";\n\nfunction TagIndexer(wiki) {\n\tthis.wiki = wiki;\n}\n\nTagIndexer.prototype.init = function() {\n\tthis.subIndexers = [\n\t\tnew TagSubIndexer(this,\"each\"),\n\t\tnew TagSubIndexer(this,\"eachShadow\"),\n\t\tnew TagSubIndexer(this,\"eachTiddlerPlusShadows\"),\n\t\tnew TagSubIndexer(this,\"eachShadowPlusTiddlers\")\n\t];\n\t$tw.utils.each(this.subIndexers,function(subIndexer) {\n\t\tsubIndexer.addIndexMethod();\n\t});\n};\n\nTagIndexer.prototype.rebuild = function() {\n\t$tw.utils.each(this.subIndexers,function(subIndexer) {\n\t\tsubIndexer.rebuild();\n\t});\n};\n\nTagIndexer.prototype.update = function(updateDescriptor) {\n\t$tw.utils.each(this.subIndexers,function(subIndexer) {\n\t\tsubIndexer.update(updateDescriptor);\n\t});\n};\n\nfunction TagSubIndexer(indexer,iteratorMethod) {\n\tthis.indexer = indexer;\n\tthis.iteratorMethod = iteratorMethod;\n\tthis.index = null; // Hashmap of tag title to {isSorted: bool, titles: [array]} or null if not yet initialised\n}\n\nTagSubIndexer.prototype.addIndexMethod = function() {\n\tvar self = this;\n\tthis.indexer.wiki[this.iteratorMethod].byTag = function(tag) {\n\t\treturn self.lookup(tag).slice(0);\n\t};\n};\n\nTagSubIndexer.prototype.rebuild = function() {\n\tvar self = this;\n\t// Hashmap by tag of array of {isSorted:, titles:[]}\n\tthis.index = Object.create(null);\n\t// Add all the tags\n\tthis.indexer.wiki[this.iteratorMethod](function(tiddler,title) {\n\t\t$tw.utils.each(tiddler.fields.tags,function(tag) {\n\t\t\tif(!self.index[tag]) {\n\t\t\t\tself.index[tag] = {isSorted: false, titles: [title]};\n\t\t\t} else {\n\t\t\t\tself.index[tag].titles.push(title);\n\t\t\t}\n\t\t});\t\t\n\t});\n};\n\nTagSubIndexer.prototype.update = function(updateDescriptor) {\n\tthis.index = null;\n};\n\nTagSubIndexer.prototype.lookup = function(tag) {\n\t// Update the index if it has yet to be built\n\tif(this.index === null) {\n\t\tthis.rebuild();\n\t}\n\tvar indexRecord = this.index[tag];\n\tif(indexRecord) {\n\t\tif(!indexRecord.isSorted) {\n\t\t\tif(this.indexer.wiki.sortByList) {\n\t\t\t\tindexRecord.titles = this.indexer.wiki.sortByList(indexRecord.titles,tag);\n\t\t\t}\t\t\t\n\t\t\tindexRecord.isSorted = true;\n\t\t}\n\t\treturn indexRecord.titles;\n\t} else {\n\t\treturn [];\n\t}\n};\n\n\nexports.TagIndexer = TagIndexer;\n\n})();\n", - "type": "application/javascript", - "module-type": "indexer" - }, - "$:/core/modules/info/platform.js": { - "title": "$:/core/modules/info/platform.js", - "text": "/*\\\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\"use strict\";\n\nexports.getInfoTiddlerFields = function(updateInfoTiddlersCallback) {\n\tvar mapBoolean = function(value) {return value ? \"yes\" : \"no\";},\n\t\tinfoTiddlerFields = [];\n\t// Basics\n\tinfoTiddlerFields.push({title: \"$:/info/browser\", text: mapBoolean(!!$tw.browser)});\n\tinfoTiddlerFields.push({title: \"$:/info/node\", text: mapBoolean(!!$tw.node)});\n\tinfoTiddlerFields.push({title: \"$:/info/startup-timestamp\", text: $tw.utils.stringifyDate(new Date())});\n\tif($tw.browser) {\n\t\t// Document location\n\t\tvar setLocationProperty = function(name,value) {\n\t\t\t\tinfoTiddlerFields.push({title: \"$:/info/url/\" + name, text: value});\t\t\t\n\t\t\t},\n\t\t\tlocation = document.location;\n\t\tsetLocationProperty(\"full\", (location.toString()).split(\"#\")[0]);\n\t\tsetLocationProperty(\"host\", location.host);\n\t\tsetLocationProperty(\"hostname\", location.hostname);\n\t\tsetLocationProperty(\"protocol\", location.protocol);\n\t\tsetLocationProperty(\"port\", location.port);\n\t\tsetLocationProperty(\"pathname\", location.pathname);\n\t\tsetLocationProperty(\"search\", location.search);\n\t\tsetLocationProperty(\"origin\", location.origin);\n\t\t// Screen size\n\t\tinfoTiddlerFields.push({title: \"$:/info/browser/screen/width\", text: window.screen.width.toString()});\n\t\tinfoTiddlerFields.push({title: \"$:/info/browser/screen/height\", text: window.screen.height.toString()});\n \t\t// Dark mode through event listener on MediaQueryList\n \t\tvar mqList = window.matchMedia(\"(prefers-color-scheme: dark)\"),\n \t\t\tgetDarkModeTiddler = function() {return {title: \"$:/info/darkmode\", text: mqList.matches ? \"yes\" : \"no\"};};\n \t\tinfoTiddlerFields.push(getDarkModeTiddler());\n \t\tmqList.addListener(function(event) {\n \t\t\tupdateInfoTiddlersCallback([getDarkModeTiddler()]);\n \t\t});\n\t\t// Language\n\t\tinfoTiddlerFields.push({title: \"$:/info/browser/language\", text: navigator.language || \"\"});\n\t}\n\treturn infoTiddlerFields;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "info" - }, - "$:/core/modules/keyboard.js": { - "title": "$:/core/modules/keyboard.js", - "text": "/*\\\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\"use strict\";\n\nvar namedKeys = {\n\t\"cancel\": 3,\n\t\"help\": 6,\n\t\"backspace\": 8,\n\t\"tab\": 9,\n\t\"clear\": 12,\n\t\"return\": 13,\n\t\"enter\": 13,\n\t\"pause\": 19,\n\t\"escape\": 27,\n\t\"space\": 32,\n\t\"page_up\": 33,\n\t\"page_down\": 34,\n\t\"end\": 35,\n\t\"home\": 36,\n\t\"left\": 37,\n\t\"up\": 38,\n\t\"right\": 39,\n\t\"down\": 40,\n\t\"printscreen\": 44,\n\t\"insert\": 45,\n\t\"delete\": 46,\n\t\"0\": 48,\n\t\"1\": 49,\n\t\"2\": 50,\n\t\"3\": 51,\n\t\"4\": 52,\n\t\"5\": 53,\n\t\"6\": 54,\n\t\"7\": 55,\n\t\"8\": 56,\n\t\"9\": 57,\n\t\"firefoxsemicolon\": 59,\n\t\"firefoxequals\": 61,\n\t\"a\": 65,\n\t\"b\": 66,\n\t\"c\": 67,\n\t\"d\": 68,\n\t\"e\": 69,\n\t\"f\": 70,\n\t\"g\": 71,\n\t\"h\": 72,\n\t\"i\": 73,\n\t\"j\": 74,\n\t\"k\": 75,\n\t\"l\": 76,\n\t\"m\": 77,\n\t\"n\": 78,\n\t\"o\": 79,\n\t\"p\": 80,\n\t\"q\": 81,\n\t\"r\": 82,\n\t\"s\": 83,\n\t\"t\": 84,\n\t\"u\": 85,\n\t\"v\": 86,\n\t\"w\": 87,\n\t\"x\": 88,\n\t\"y\": 89,\n\t\"z\": 90,\n\t\"numpad0\": 96,\n\t\"numpad1\": 97,\n\t\"numpad2\": 98,\n\t\"numpad3\": 99,\n\t\"numpad4\": 100,\n\t\"numpad5\": 101,\n\t\"numpad6\": 102,\n\t\"numpad7\": 103,\n\t\"numpad8\": 104,\n\t\"numpad9\": 105,\n\t\"multiply\": 106,\n\t\"add\": 107,\n\t\"separator\": 108,\n\t\"subtract\": 109,\n\t\"decimal\": 110,\n\t\"divide\": 111,\n\t\"f1\": 112,\n\t\"f2\": 113,\n\t\"f3\": 114,\n\t\"f4\": 115,\n\t\"f5\": 116,\n\t\"f6\": 117,\n\t\"f7\": 118,\n\t\"f8\": 119,\n\t\"f9\": 120,\n\t\"f10\": 121,\n\t\"f11\": 122,\n\t\"f12\": 123,\n\t\"f13\": 124,\n\t\"f14\": 125,\n\t\"f15\": 126,\n\t\"f16\": 127,\n\t\"f17\": 128,\n\t\"f18\": 129,\n\t\"f19\": 130,\n\t\"f20\": 131,\n\t\"f21\": 132,\n\t\"f22\": 133,\n\t\"f23\": 134,\n\t\"f24\": 135,\n\t\"firefoxminus\": 173,\n\t\"semicolon\": 186,\n\t\"equals\": 187,\n\t\"comma\": 188,\n\t\"dash\": 189,\n\t\"period\": 190,\n\t\"slash\": 191,\n\t\"backquote\": 192,\n\t\"openbracket\": 219,\n\t\"backslash\": 220,\n\t\"closebracket\": 221,\n\t\"quote\": 222\n};\n\nfunction KeyboardManager(options) {\n\tvar self = this;\n\toptions = options || \"\";\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 \"meta\" key\n\tthis.metaKeyName = $tw.platform.isMac ? \"cmd-\" : \"win-\";\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 = [\"shortcuts\"];\n\tthis.lookupNames.push($tw.platform.isMac ? \"shortcuts-mac\" : \"shortcuts-not-mac\")\n\tthis.lookupNames.push($tw.platform.isWindows ? \"shortcuts-windows\" : \"shortcuts-not-windows\");\n\tthis.lookupNames.push($tw.platform.isLinux ? \"shortcuts-linux\" : \"shortcuts-not-linux\");\n\tthis.updateShortcutLists(this.getShortcutTiddlerList());\n\t$tw.wiki.addEventListener(\"change\",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<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 === \"ctrl\") {\n\t\t\tinfo.ctrlKey = true;\n\t\t} else if(s === \"shift\") {\n\t\t\tinfo.shiftKey = true;\n\t\t} else if(s === \"alt\") {\n\t\t\tinfo.altKey = true;\n\t\t} else if(s === \"meta\" || s === \"cmd\" || s === \"win\") {\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 === \"string\" && keyDescriptors === \"\") {\n\t\treturn [];\n\t}\n\tif(!$tw.utils.isArray(keyDescriptors)) {\n\t\tkeyDescriptors = keyDescriptors.split(\" \");\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) === \"((\" && keyDescriptor.substr(-2,2) === \"))\") {\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(\"$:/config/\" + configName + \"/\" + 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 ? \"ctrl-\" : \"\") + \n\t\t\t\t (keyInfo.shiftKey ? \"shift-\" : \"\") + \n\t\t\t\t (keyInfo.altKey ? \"alt-\" : \"\") + \n\t\t\t\t (keyInfo.metaKey ? self.metaKeyName : \"\") + \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 &&\n\t\t\tevent.keyCode === keyInfo.keyCode && \n\t\t\tevent.shiftKey === keyInfo.shiftKey && \n\t\t\tevent.altKey === keyInfo.altKey && \n\t\t\tevent.ctrlKey === keyInfo.ctrlKey && \n\t\t\tevent.metaKey === keyInfo.metaKey;\n};\n\nKeyboardManager.prototype.checkKeyDescriptors = function(event,keyInfoArray) {\n\tfor(var t=0; t<keyInfoArray.length; t++) {\n\t\tif(this.checkKeyDescriptor(event,keyInfoArray[t])) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n\nKeyboardManager.prototype.getEventModifierKeyDescriptor = function(event) {\n\treturn event.ctrlKey && !event.shiftKey && !event.altKey && !event.metaKey ? \"ctrl\" : \n\t\tevent.shiftKey && !event.ctrlKey && !event.altKey && !event.metaKey ? \"shift\" : \n\t\tevent.ctrlKey && event.shiftKey && !event.altKey && !event.metaKey ? \"ctrl-shift\" : \n\t\tevent.altKey && !event.shiftKey && !event.ctrlKey && !event.metaKey ? \"alt\" : \n\t\tevent.altKey && event.shiftKey && !event.ctrlKey && !event.metaKey ? \"alt-shift\" : \n\t\tevent.altKey && event.ctrlKey && !event.shiftKey && !event.metaKey ? \"ctrl-alt\" : \n\t\tevent.altKey && event.shiftKey && event.ctrlKey && !event.metaKey ? \"ctrl-alt-shift\" : \n\t\tevent.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey ? \"meta\" : \n\t\tevent.metaKey && event.ctrlKey && !event.shiftKey && !event.altKey ? \"meta-ctrl\" :\n\t\tevent.metaKey && event.ctrlKey && event.shiftKey && !event.altKey ? \"meta-ctrl-shift\" :\n\t\tevent.metaKey && event.ctrlKey & event.shiftKey && event.altKey ? \"meta-ctrl-alt-shift\" : \"normal\";\n};\n\nKeyboardManager.prototype.getShortcutTiddlerList = function() {\n\treturn $tw.wiki.getTiddlersWithTag(\"$:/tags/KeyboardShortcut\");\n};\n\nKeyboardManager.prototype.updateShortcutLists = function(tiddlerList) {\n\tthis.shortcutTiddlers = tiddlerList;\n\tfor(var i=0; i<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<this.shortcutTiddlers.length; i++) {\n\t\tif(this.shortcutParsedList[i] !== undefined && 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 = \"$:/config/\" + platformDescriptor + \"/\";\n\t\tObject.keys(changedTiddlers).forEach(function(configTiddler) {\n\t\t\tvar configString = configTiddler.substr(0, configTiddler.lastIndexOf(\"/\") + 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", - "type": "application/javascript", - "module-type": "global" - }, - "$:/core/modules/language.js": { - "title": "$:/core/modules/language.js", - "text": "/*\\\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\"use strict\";\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 || \"\";\n\tthis.wiki = options.wiki || $tw.wiki;\n}\n\n/*\nReturn a wikified translateable string. The title is automatically prefixed with \"$:/language/\"\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 = \"$:/language/\" + title;\n\treturn this.wiki.renderTiddler(\"text/plain\",title,{variables: options.variables});\n};\n\n/*\nReturn a raw, unwikified translateable string. The title is automatically prefixed with \"$:/language/\"\n*/\nLanguage.prototype.getRawString = function(title) {\n\ttitle = \"$:/language/\" + title;\n\treturn this.wiki.getTiddlerText(title);\n};\n\nexports.Language = Language;\n\n})();\n", - "type": "application/javascript", - "module-type": "global" - }, - "$:/core/modules/macros/changecount.js": { - "title": "$:/core/modules/macros/changecount.js", - "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"changecount\";\n\nexports.params = [];\n\n/*\nRun the macro\n*/\nexports.run = function() {\n\treturn this.wiki.getChangeCount(this.getVariable(\"currentTiddler\")) + \"\";\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "macro" - }, - "$:/core/modules/macros/contrastcolour.js": { - "title": "$:/core/modules/macros/contrastcolour.js", - "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"contrastcolour\";\n\nexports.params = [\n\t{name: \"target\"},\n\t{name: \"fallbackTarget\"},\n\t{name: \"colourA\"},\n\t{name: \"colourB\"}\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 && !rgbColourB) {\n\t\treturn rgbColourA;\n\t}\n\tif(rgbColourB && !rgbColourA) {\n\t\treturn rgbColourB;\n\t}\n\tif(!rgbColourA && !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) > Math.abs(brightnessTarget - brightnessB) ? colourA : colourB;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "macro" - }, - "$:/core/modules/macros/csvtiddlers.js": { - "title": "$:/core/modules/macros/csvtiddlers.js", - "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"csvtiddlers\";\n\nexports.params = [\n\t{name: \"filter\"},\n\t{name: \"format\"},\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<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\"title text modified modifier created creator\".split(\" \").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(\",\"));\n\t// Output each tiddler\n\tfor(var t=0;t<tiddlers.length; t++) {\n\t\trow = [];\n\t\ttiddler = this.wiki.getTiddler(tiddlers[t]);\n\t\t\tfor(f=0; f<fields.length; f++) {\n\t\t\t\trow.push(quoteAndEscape(tiddler ? tiddler.getFieldString(fields[f]) || \"\" : \"\"));\n\t\t\t}\n\t\toutput.push(row.join(\",\"));\n\t}\n\treturn output.join(\"\\n\");\n};\n\nfunction quoteAndEscape(value) {\n\treturn \"\\\"\" + value.replace(/\"/mg,\"\\\"\\\"\") + \"\\\"\";\n}\n\n})();\n", - "type": "application/javascript", - "module-type": "macro" - }, - "$:/core/modules/macros/displayshortcuts.js": { - "title": "$:/core/modules/macros/displayshortcuts.js", - "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"displayshortcuts\";\n\nexports.params = [\n\t{name: \"shortcuts\"},\n\t{name: \"prefix\"},\n\t{name: \"separator\"},\n\t{name: \"suffix\"}\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 > 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 \"\";\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "macro" - }, - "$:/core/modules/macros/jsontiddler.js": { - "title": "$:/core/modules/macros/jsontiddler.js", - "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"jsontiddler\";\n\nexports.params = [\n\t{name: \"title\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(title) {\n\ttitle = title || this.getVariable(\"currentTiddler\");\n\tvar tiddler = !!title && 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", - "type": "application/javascript", - "module-type": "macro" - }, - "$:/core/modules/macros/jsontiddlers.js": { - "title": "$:/core/modules/macros/jsontiddlers.js", - "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"jsontiddlers\";\n\nexports.params = [\n\t{name: \"filter\"},\n\t{name: \"spaces\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(filter,spaces) {\n\treturn this.wiki.getTiddlersAsJson(filter,$tw.utils.parseInt(spaces));\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "macro" - }, - "$:/core/modules/macros/makedatauri.js": { - "title": "$:/core/modules/macros/makedatauri.js", - "text": "/*\\\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<<makedatauri text:\"Text to be converted\" type:\"text/vnd.tiddlywiki\">>\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"makedatauri\";\n\nexports.params = [\n\t{name: \"text\"},\n\t{name: \"type\"},\n\t{name: \"_canonical_uri\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(text,type,_canonical_uri) {\n\treturn $tw.utils.makeDataUri(text,type,_canonical_uri);\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "macro" - }, - "$:/core/modules/macros/now.js": { - "title": "$:/core/modules/macros/now.js", - "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"now\";\n\nexports.params = [\n\t{name: \"format\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(format) {\n\treturn $tw.utils.formatDateString(new Date(),format || \"0hh:0mm, DDth MMM YYYY\");\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "macro" - }, - "$:/core/modules/macros/qualify.js": { - "title": "$:/core/modules/macros/qualify.js", - "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"qualify\";\n\nexports.params = [\n\t{name: \"title\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(title) {\n\treturn title + \"-\" + this.getStateQualifier();\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "macro" - }, - "$:/core/modules/macros/resolvepath.js": { - "title": "$:/core/modules/macros/resolvepath.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"resolvepath\";\n\nexports.params = [\n\t{name: \"source\"},\n\t{name: \"root\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(source, root) {\n\treturn $tw.utils.resolvePath(source, root);\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "macro" - }, - "$:/core/modules/macros/unusedtitle.js": { - "title": "$:/core/modules/macros/unusedtitle.js", - "text": "/*\\\ntitle: $:/core/modules/macros/unusedtitle.js\ntype: application/javascript\nmodule-type: macro\nMacro to return a new title that is unused in the wiki. It can be given a name as a base.\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"unusedtitle\";\n\nexports.params = [\n\t{name: \"baseName\"},\n\t{name: \"options\"}\n];\n\n/*\nRun the macro\n*/\nexports.run = function(baseName, options) {\n\tif(!baseName) {\n\t\tbaseName = $tw.language.getString(\"DefaultNewTiddlerTitle\");\n\t}\n\treturn this.wiki.generateNewTitle(baseName, options);\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "macro" - }, - "$:/core/modules/macros/version.js": { - "title": "$:/core/modules/macros/version.js", - "text": "/*\\\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\"use strict\";\n\n/*\nInformation about this macro\n*/\n\nexports.name = \"version\";\n\nexports.params = [];\n\n/*\nRun the macro\n*/\nexports.run = function() {\n\treturn $tw.version;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "macro" - }, - "$:/core/modules/parsers/audioparser.js": { - "title": "$:/core/modules/parsers/audioparser.js", - "text": "/*\\\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\"use strict\";\n\nvar AudioParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \"element\",\n\t\t\ttag: \"audio\",\n\t\t\tattributes: {\n\t\t\t\tcontrols: {type: \"string\", value: \"controls\"},\n\t\t\t\tstyle: {type: \"string\", value: \"width: 100%; object-fit: contain\"}\n\t\t\t}\n\t\t},\n\t\tsrc;\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \"string\", value: options._canonical_uri};\n\t} else if(text) {\n\t\telement.attributes.src = {type: \"string\", value: \"data:\" + type + \";base64,\" + text};\n\t}\n\tthis.tree = [element];\n};\n\nexports[\"audio/ogg\"] = AudioParser;\nexports[\"audio/mpeg\"] = AudioParser;\nexports[\"audio/mp3\"] = AudioParser;\nexports[\"audio/mp4\"] = AudioParser;\n\n})();\n\n", - "type": "application/javascript", - "module-type": "parser" - }, - "$:/core/modules/parsers/binaryparser.js": { - "title": "$:/core/modules/parsers/binaryparser.js", - "text": "/*\\\ntitle: $:/core/modules/parsers/binaryparser.js\ntype: application/javascript\nmodule-type: parser\n\nThe binary parser parses a binary tiddler into a warning message and download link\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar BINARY_WARNING_MESSAGE = \"$:/core/ui/BinaryWarning\";\nvar EXPORT_BUTTON_IMAGE = \"$:/core/images/export-button\";\n\nvar BinaryParser = function(type,text,options) {\n\t// Transclude the binary data tiddler warning message\n\tvar warn = {\n\t\ttype: \"element\",\n\t\ttag: \"p\",\n\t\tchildren: [{\n\t\t\ttype: \"transclude\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", value: BINARY_WARNING_MESSAGE}\n\t\t\t}\n\t\t}]\n\t};\n\t// Create download link based on binary tiddler title\n\tvar link = {\n\t\ttype: \"element\",\n\t\ttag: \"a\",\n\t\tattributes: {\n\t\t\ttitle: {type: \"indirect\", textReference: \"!!title\"},\n\t\t\tdownload: {type: \"indirect\", textReference: \"!!title\"}\n\t\t},\n\t\tchildren: [{\n\t\t\ttype: \"transclude\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", value: EXPORT_BUTTON_IMAGE}\n\t\t\t}\n\t\t}]\n\t};\n\t// Set the link href to external or internal data URI\n\tif(options._canonical_uri) {\n\t\tlink.attributes.href = {\n\t\t\ttype: \"string\", \n\t\t\tvalue: options._canonical_uri\n\t\t};\n\t} else if(text) {\n\t\tlink.attributes.href = {\n\t\t\ttype: \"string\", \n\t\t\tvalue: \"data:\" + type + \";base64,\" + text\n\t\t};\n\t}\n\t// Combine warning message and download link in a div\n\tvar element = {\n\t\ttype: \"element\",\n\t\ttag: \"div\",\n\t\tattributes: {\n\t\t\tclass: {type: \"string\", value: \"tc-binary-warning\"}\n\t\t},\n\t\tchildren: [warn, link]\n\t}\n\tthis.tree = [element];\n};\n\nexports[\"application/octet-stream\"] = BinaryParser;\n\n})();\n\n", - "type": "application/javascript", - "module-type": "parser" - }, - "$:/core/modules/parsers/csvparser.js": { - "title": "$:/core/modules/parsers/csvparser.js", - "text": "/*\\\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\"use strict\";\n\nvar CsvParser = function(type,text,options) {\n\t// Table framework\n\tthis.tree = [{\n\t\t\"type\": \"scrollable\", \"children\": [{\n\t\t\t\"type\": \"element\", \"tag\": \"table\", \"children\": [{\n\t\t\t\t\"type\": \"element\", \"tag\": \"tbody\", \"children\": []\n\t\t\t}], \"attributes\": {\n\t\t\t\t\"class\": {\"type\": \"string\", \"value\": \"tc-csv-table\"}\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 = \"th\";\n\tfor(var line=0; line<lines.length; line++) {\n\t\tvar lineText = lines[line];\n\t\tif(lineText) {\n\t\t\tvar row = {\n\t\t\t\t\t\"type\": \"element\", \"tag\": \"tr\", \"children\": []\n\t\t\t\t};\n\t\t\tvar columns = lineText.split(\",\");\n\t\t\tfor(var column=0; column<columns.length; column++) {\n\t\t\t\trow.children.push({\n\t\t\t\t\t\t\"type\": \"element\", \"tag\": tag, \"children\": [{\n\t\t\t\t\t\t\t\"type\": \"text\",\n\t\t\t\t\t\t\t\"text\": columns[column]\n\t\t\t\t\t\t}]\n\t\t\t\t\t});\n\t\t\t}\n\t\t\ttag = \"td\";\n\t\t\tthis.tree[0].children[0].children[0].children.push(row);\n\t\t}\n\t}\n};\n\nexports[\"text/csv\"] = CsvParser;\n\n})();\n\n", - "type": "application/javascript", - "module-type": "parser" - }, - "$:/core/modules/parsers/htmlparser.js": { - "title": "$:/core/modules/parsers/htmlparser.js", - "text": "/*\\\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\"use strict\";\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 = \"data:text/html;charset=utf-8,\" + encodeURIComponent(text);\n\t}\n\tthis.tree = [{\n\t\ttype: \"element\",\n\t\ttag: \"iframe\",\n\t\tattributes: {\n\t\t\tsrc: {type: \"string\", value: src},\n\t\t\tsandbox: {type: \"string\", value: \"\"}\n\t\t}\n\t}];\n};\n\nexports[\"text/html\"] = HtmlParser;\n\n})();\n\n", - "type": "application/javascript", - "module-type": "parser" - }, - "$:/core/modules/parsers/imageparser.js": { - "title": "$:/core/modules/parsers/imageparser.js", - "text": "/*\\\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\"use strict\";\n\nvar ImageParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \"element\",\n\t\t\ttag: \"img\",\n\t\t\tattributes: {}\n\t\t};\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \"string\", value: options._canonical_uri};\n\t} else if(text) {\n\t\tif(type === \"image/svg+xml\" || type === \".svg\") {\n\t\t\telement.attributes.src = {type: \"string\", value: \"data:image/svg+xml,\" + encodeURIComponent(text)};\n\t\t} else {\n\t\t\telement.attributes.src = {type: \"string\", value: \"data:\" + type + \";base64,\" + text};\n\t\t}\n\t}\n\tthis.tree = [element];\n};\n\nexports[\"image/svg+xml\"] = ImageParser;\nexports[\"image/jpg\"] = ImageParser;\nexports[\"image/jpeg\"] = ImageParser;\nexports[\"image/png\"] = ImageParser;\nexports[\"image/gif\"] = ImageParser;\nexports[\"image/webp\"] = ImageParser;\nexports[\"image/heic\"] = ImageParser;\nexports[\"image/heif\"] = ImageParser;\nexports[\"image/x-icon\"] = ImageParser;\n\n})();\n\n", - "type": "application/javascript", - "module-type": "parser" - }, - "$:/core/modules/utils/parseutils.js": { - "title": "$:/core/modules/utils/parseutils.js", - "text": "/*\\\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\"use strict\";\n\n/*\nLook for a whitespace token. Returns null if not found, otherwise returns {type: \"whitespace\", 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 === \" \") || (c === \"\\f\") || (c === \"\\n\") || (c === \"\\r\") || (c === \"\\t\") || (c === \"\\v\") || (c === \"\\u00a0\")) { // 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: \"whitespace\",\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 === \" \") || (c === \"\\f\") || (c === \"\\n\") || (c === \"\\r\") || (c === \"\\t\") || (c === \"\\v\") || (c === \"\\u00a0\")) { // 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: \"token\", 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: \"token\",\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: \"regexp\", match:, start:, end:,}\n*/\nexports.parseTokenRegExp = function(source,pos,reToken) {\n\tvar node = {\n\t\ttype: \"regexp\",\n\t\tstart: pos\n\t};\n\treToken.lastIndex = pos;\n\tnode.match = reToken.exec(source);\n\tif(node.match && 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: \"string\", value:, start:, end:,}\n*/\nexports.parseStringLiteral = function(source,pos) {\n\tvar node = {\n\t\ttype: \"string\",\n\t\tstart: pos\n\t};\n\tvar reString = /(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\")|(?:'([^']*)')/g;\n\treString.lastIndex = pos;\n\tvar match = reString.exec(source);\n\tif(match && 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: \"macro-parameter\", name:, value:, start:, end:}\n*/\nexports.parseMacroParameter = function(source,pos) {\n\tvar node = {\n\t\ttype: \"macro-parameter\",\n\t\tstart: pos\n\t};\n\t// Define our regexp\n\tvar reMacroParameter = /(?:([A-Za-z0-9\\-_]+)\\s*:)?(?:\\s*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\\s>\"'=]+)))/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\"\"\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: \"macrocall\", name:, parameters:, start:, end:}\n*/\nexports.parseMacroInvocation = function(source,pos) {\n\tvar node = {\n\t\ttype: \"macrocall\",\n\t\tstart: pos,\n\t\tparams: []\n\t};\n\t// Define our regexps\n\tvar reMacroName = /([^\\s>\"'=]+)/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,\"<<\");\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,\">>\");\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: \"attribute\", name:, valueType: \"string|indirect|macro\", 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>\"'=]+)/g,\n\t\treUnquotedAttribute = /([^\\/\\s<>\"'=]+)/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,\"=\");\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 = \"string\";\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 = \"filtered\";\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 = \"indirect\";\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 = \"string\";\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 = \"macro\";\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 = \"string\";\n\t\t\t\t\t\t\tnode.value = \"true\";\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 = \"string\";\n\t\tnode.value = \"true\";\n\t}\n\t// Update the end position\n\tnode.end = pos;\n\treturn node;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/parsers/pdfparser.js": { - "title": "$:/core/modules/parsers/pdfparser.js", - "text": "/*\\\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\"use strict\";\n\nvar ImageParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \"element\",\n\t\t\ttag: \"embed\",\n\t\t\tattributes: {}\n\t\t},\n\t\tsrc;\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \"string\", value: options._canonical_uri};\n\t} else if(text) {\n\t\telement.attributes.src = {type: \"string\", value: \"data:application/pdf;base64,\" + text};\n\t}\n\tthis.tree = [element];\n};\n\nexports[\"application/pdf\"] = ImageParser;\n\n})();\n\n", - "type": "application/javascript", - "module-type": "parser" - }, - "$:/core/modules/parsers/textparser.js": { - "title": "$:/core/modules/parsers/textparser.js", - "text": "/*\\\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\"use strict\";\n\nvar TextParser = function(type,text,options) {\n\tthis.tree = [{\n\t\ttype: \"codeblock\",\n\t\tattributes: {\n\t\t\tcode: {type: \"string\", value: text},\n\t\t\tlanguage: {type: \"string\", value: type}\n\t\t}\n\t}];\n};\n\nexports[\"text/plain\"] = TextParser;\nexports[\"text/x-tiddlywiki\"] = TextParser;\nexports[\"application/javascript\"] = TextParser;\nexports[\"application/json\"] = TextParser;\nexports[\"text/css\"] = TextParser;\nexports[\"application/x-tiddler-dictionary\"] = TextParser;\n\n})();\n\n", - "type": "application/javascript", - "module-type": "parser" - }, - "$:/core/modules/parsers/videoparser.js": { - "title": "$:/core/modules/parsers/videoparser.js", - "text": "/*\\\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\"use strict\";\n\nvar VideoParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \"element\",\n\t\t\ttag: \"video\",\n\t\t\tattributes: {\n\t\t\t\tcontrols: {type: \"string\", value: \"controls\"},\n\t\t\t\tstyle: {type: \"string\", value: \"width: 100%; object-fit: contain\"}\n\t\t\t}\n\t\t},\n\t\tsrc;\n\tif(options._canonical_uri) {\n\t\telement.attributes.src = {type: \"string\", value: options._canonical_uri};\n\t} else if(text) {\n\t\telement.attributes.src = {type: \"string\", value: \"data:\" + type + \";base64,\" + text};\n\t}\n\tthis.tree = [element];\n};\n\nexports[\"video/ogg\"] = VideoParser;\nexports[\"video/webm\"] = VideoParser;\nexports[\"video/mp4\"] = VideoParser;\nexports[\"video/quicktime\"] = VideoParser;\n\n})();\n", - "type": "application/javascript", - "module-type": "parser" - }, - "$:/core/modules/parsers/wikiparser/rules/codeblock.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/codeblock.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"codeblock\";\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: \"codeblock\",\n\t\t\tattributes: {\n\t\t\t\t\tcode: {type: \"string\", value: text},\n\t\t\t\t\tlanguage: {type: \"string\", value: this.match[1]}\n\t\t\t}\n\t}];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/codeinline.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/codeinline.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"codeinline\";\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], \"mg\");\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: \"element\",\n\t\ttag: \"code\",\n\t\tchildren: [{\n\t\t\ttype: \"text\",\n\t\t\ttext: text\n\t\t}]\n\t}];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/commentblock.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/commentblock.js", - "text": "/*\\\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<!-- This is a comment -->\n```\n\nNote that the syntax for comments is simplified to an opening \"<!--\" sequence and a closing \"-->\" 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\"use strict\";\n\nexports.name = \"commentblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\tthis.matchRegExp = /<!--/mg;\n\tthis.endMatchRegExp = /-->/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", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/commentinline.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/commentinline.js", - "text": "/*\\\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<!-- This is a comment -->\n```\n\nNote that the syntax for comments is simplified to an opening \"<!--\" sequence and a closing \"-->\" 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\"use strict\";\n\nexports.name = \"commentinline\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\tthis.matchRegExp = /<!--/mg;\n\tthis.endMatchRegExp = /-->/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", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/dash.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/dash.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"dash\";\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 ? \"–\" : \"—\";\n\treturn [{\n\t\ttype: \"entity\",\n\t\tentity: dash\n\t}];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/emphasis/bold.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/emphasis/bold.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"bold\";\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: \"element\",\n\t\ttag: \"strong\",\n\t\tchildren: tree\n\t}];\n};\n\n})();", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/emphasis/italic.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/emphasis/italic.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"italic\";\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: \"element\",\n\t\ttag: \"em\",\n\t\tchildren: tree\n\t}];\n};\n\n})();", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"strikethrough\";\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: \"element\",\n\t\ttag: \"strike\",\n\t\tchildren: tree\n\t}];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"subscript\";\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: \"element\",\n\t\ttag: \"sub\",\n\t\tchildren: tree\n\t}];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"superscript\";\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: \"element\",\n\t\ttag: \"sup\",\n\t\tchildren: tree\n\t}];\n};\n\n})();", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"underscore\";\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: \"element\",\n\t\ttag: \"u\",\n\t\tchildren: tree\n\t}];\n};\n\n})();", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/entity.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/entity.js", - "text": "/*\\\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: ©\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"entity\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /(&#?[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: \"entity\", entity: this.match[0]}];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/extlink.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/extlink.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"extlink\";\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<>{}\\[\\]`|\"\\\\^]+(?:\\/|\\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) === \"~\") {\n\t\treturn [{type: \"text\", text: this.match[0].substr(1)}];\n\t} else {\n\t\treturn [{\n\t\t\ttype: \"element\",\n\t\t\ttag: \"a\",\n\t\t\tattributes: {\n\t\t\t\thref: {type: \"string\", value: this.match[0]},\n\t\t\t\t\"class\": {type: \"string\", value: \"tc-tiddlylink-external\"},\n\t\t\t\ttarget: {type: \"string\", value: \"_blank\"},\n\t\t\t\trel: {type: \"string\", value: \"noopener noreferrer\"}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\", text: this.match[0]\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"filteredtranscludeblock\";\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: \"list\",\n\t\tattributes: {\n\t\t\tfilter: {type: \"string\", value: filter}\n\t\t},\n\t\tisBlock: true\n\t};\n\tif(tooltip) {\n\t\tnode.attributes.tooltip = {type: \"string\", value: tooltip};\n\t}\n\tif(template) {\n\t\tnode.attributes.template = {type: \"string\", value: template};\n\t}\n\tif(style) {\n\t\tnode.attributes.style = {type: \"string\", value: style};\n\t}\n\tif(classes) {\n\t\tnode.attributes.itemClass = {type: \"string\", value: classes.split(\".\").join(\" \")};\n\t}\n\treturn [node];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"filteredtranscludeinline\";\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: \"list\",\n\t\tattributes: {\n\t\t\tfilter: {type: \"string\", value: filter}\n\t\t}\n\t};\n\tif(tooltip) {\n\t\tnode.attributes.tooltip = {type: \"string\", value: tooltip};\n\t}\n\tif(template) {\n\t\tnode.attributes.template = {type: \"string\", value: template};\n\t}\n\tif(style) {\n\t\tnode.attributes.style = {type: \"string\", value: style};\n\t}\n\tif(classes) {\n\t\tnode.attributes.itemClass = {type: \"string\", value: classes.split(\".\").join(\" \")};\n\t}\n\treturn [node];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js", - "text": "/*\\\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\"\"\"\nThis is some text\nThat is set like\nIt is a Poem\nWhen it is\nClearly\nNot\n\"\"\"\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"hardlinebreaks\";\nexports.types = {inline: 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\tvar reEnd = /(\"\"\")|(\\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: \"element\", tag: \"br\"});\n\t\t\t}\n\t\t}\n\t} while(match && !match[1]);\n\t// Return the nodes\n\treturn tree;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/heading.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/heading.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"heading\";\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: \"element\",\n\t\ttag: \"h\" + headingLevel, \n\t\tattributes: {\n\t\t\t\"class\": {type: \"string\", value: classes.join(\" \")}\n\t\t},\n\t\tchildren: tree\n\t}];\n};\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/horizrule.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/horizrule.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"horizrule\";\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: \"element\", tag: \"hr\"}];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/html.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/html.js", - "text": "/*\\\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<aside>\nThis is an HTML5 aside element\n</aside>\n\n<$slider target=\"MyTiddler\">\nThis is a widget invocation\n</$slider>\n\n}}}\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"html\";\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 && !!$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 && $tw.config.htmlVoidElements.indexOf(tag.tag) === -1) {\n\t\t\tvar reEndString = \"</\" + $tw.utils.escapeRegExp(tag.tag) + \">\",\n\t\t\t\treEnd = new RegExp(\"(\" + reEndString + \")\",\"mg\");\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 && 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: \"element\", 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: \"element\",\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,\"<\");\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(\"$\") !== -1) {\n\t\treturn null;\n\t}\n\tif(node.tag.charAt(0) === \"$\") {\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 >\n\tif(!$tw.utils.parseWhiteSpace(source,pos) && !(source.charAt(pos) === \"/\") && !(source.charAt(pos) === \">\") ) {\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,\"/\");\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,\">\");\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 = /<([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 && 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 !== \"element\") {\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) === \"-\") {\n\t\treturn false;\n\t} else {\n\t\t// Otherwise it's OK\n\t\treturn true;\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/image.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/image.js", - "text": "/*\\\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 `<$image>` widget.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"image\";\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: \"image\",\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: \"image\", attributes: [], isSelfClosing:, start:, end:,}\n*/\nexports.parseImage = function(source,pos) {\n\tvar token,\n\t\tnode = {\n\t\t\ttype: \"image\",\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,\"[img\");\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) !== \"[\") {\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) !== \"[\") {\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,\"[\");\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: \"string\", value: token.match[1].trim()};\n\t}\n\tnode.attributes.source = {type: \"string\", value: (token.match[2] || \"\").trim()};\n\t// Update the end position\n\tnode.end = pos;\n\treturn node;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/import.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/import.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"import\";\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: \"importvariables\",\n\t\tattributes: {\n\t\t\tfilter: {type: \"string\", value: match[1]}\n\t\t},\n\t\tchildren: []\n\t}];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/list.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/list.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"list\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /([\\*#;:>]+)/mg;\n};\n\nvar listTypes = {\n\t\"*\": {listTag: \"ul\", itemTag: \"li\"},\n\t\"#\": {listTag: \"ol\", itemTag: \"li\"},\n\t\";\": {listTag: \"dl\", itemTag: \"dt\"},\n\t\":\": {listTag: \"dl\", itemTag: \"dd\"},\n\t\">\": {listTag: \"blockquote\", itemTag: \"div\"}\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 = /([\\*#;:>]+)/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 > 0 && 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<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 > t && 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 <= t) {\n\t\t\t\tvar listElement = {type: \"element\", tag: listInfo.listTag, children: [\n\t\t\t\t\t{type: \"element\", 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: \"element\", tag: listInfo.itemTag, children: []});\n\t\t\t}\n\t\t}\n\t\tif(listStack.length > 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 > 0) {\n\t\t\t$tw.utils.addClassToParseTreeNode(lastListItem,classes.join(\" \"));\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", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/macrocallblock.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/macrocallblock.js", - "text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/macrocallblock.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki rule for block macro calls\n\n```\n<<name value value2>>\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"macrocallblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /<<([^>\\s]+)(?:\\s*)((?:[^>]|(?:>(?!>)))*?)>>(?:\\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*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\"'\\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: \"macrocall\",\n\t\tname: macroName,\n\t\tparams: params,\n\t\tisBlock: true\n\t}];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/macrocallinline.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/macrocallinline.js", - "text": "/*\\\ntitle: $:/core/modules/parsers/wikiparser/rules/macrocallinline.js\ntype: application/javascript\nmodule-type: wikirule\n\nWiki rule for macro calls\n\n```\n<<name value value2>>\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"macrocallinline\";\nexports.types = {inline: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /<<([^\\s>]+)\\s*([\\s\\S]*?)>>/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*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\"'\\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: \"macrocall\",\n\t\tname: macroName,\n\t\tparams: params\n\t}];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/macrodef.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/macrodef.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"macrodef\";\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 !== \"\") {\n\t\tvar reParam = /\\s*([A-Za-z0-9\\-_]+)(?:\\s*:\\s*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\"'\\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[\"default\"] = 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 = \"\";\n\t}\n\t// Save the macro definition\n\treturn [{\n\t\ttype: \"set\",\n\t\tattributes: {\n\t\t\tname: {type: \"string\", value: this.match[1]},\n\t\t\tvalue: {type: \"string\", value: text}\n\t\t},\n\t\tchildren: [],\n\t\tparams: params,\n\t\tisMacroDefinition: true\n\t}];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/prettyextlink.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/prettyextlink.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"prettyextlink\";\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: \"element\", tag: \"a\", attributes: [], isSelfClosing:, start:, end:,}\n*/\nexports.parseLink = function(source,pos) {\n\tvar token,\n\t\ttextNode = {\n\t\t\ttype: \"text\"\n\t\t},\n\t\tnode = {\n\t\t\ttype: \"element\",\n\t\t\ttag: \"a\",\n\t\t\tstart: pos,\n\t\t\tattributes: {\n\t\t\t\t\"class\": {type: \"string\", value: \"tc-tiddlylink-external\"},\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,\"[ext[\");\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(\"]]\",pos);\n\tif(closePos === -1) {\n\t\treturn null;\n\t}\n\t// Look for a `|` separating the tooltip\n\tvar splitPos = source.indexOf(\"|\",pos);\n\tif(splitPos === -1 || splitPos > 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: \"string\", value: URL};\n\tnode.attributes.target = {type: \"string\", value: \"_blank\"};\n\tnode.attributes.rel = {type: \"string\", value: \"noopener noreferrer\"};\n\t// Update the end position\n\tnode.end = closePos + 2;\n\treturn node;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/prettylink.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/prettylink.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"prettylink\";\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: \"element\",\n\t\t\ttag: \"a\",\n\t\t\tattributes: {\n\t\t\t\thref: {type: \"string\", value: link},\n\t\t\t\t\"class\": {type: \"string\", value: \"tc-tiddlylink-external\"},\n\t\t\t\ttarget: {type: \"string\", value: \"_blank\"},\n\t\t\t\trel: {type: \"string\", value: \"noopener noreferrer\"}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\", text: text\n\t\t\t}]\n\t\t}];\n\t} else {\n\t\treturn [{\n\t\t\ttype: \"link\",\n\t\t\tattributes: {\n\t\t\t\tto: {type: \"string\", value: link}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\", text: text\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/quoteblock.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/quoteblock.js", - "text": "/*\\\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<<<.optionalClass(es) optional cited from\n\ta quote\n\t<<<\n\t\n\t<<<.optionalClass(es)\n\ta quote\n\t<<< optional cited from\n```\n\nQuotes can be quoted by putting more <s\n\n```\n\t<<<\n\tQuote Level 1\n\t\n\t<<<<\n\tQuoteLevel 2\n\t<<<<\n\t\n\t<<<\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = \"quoteblock\";\nexports.types = {block: 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\tvar classes = [\"tc-quote\"];\n\t// Get all the details of the match\n\tvar reEndString = \"^\" + this.match[1] + \"(?!<)\";\n\t// Move past the <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 > 0) {\n\t\ttree.unshift({\n\t\t\ttype: \"element\",\n\t\t\ttag: \"cite\",\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 > 0) {\n\t\ttree.push({\n\t\t\ttype: \"element\",\n\t\t\ttag: \"cite\",\n\t\t\tchildren: cite\n\t\t});\n\t}\n\t// Return the blockquote element\n\treturn [{\n\t\ttype: \"element\",\n\t\ttag: \"blockquote\",\n\t\tattributes: {\n\t\t\tclass: { type: \"string\", value: classes.join(\" \") },\n\t\t},\n\t\tchildren: tree\n\t}];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/rules.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/rules.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"rules\";\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 && 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 > 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", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/styleblock.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/styleblock.js", - "text": "/*\\\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 `<ul>` 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\"use strict\";\n\nexports.name = \"styleblock\";\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 = \"^@@(?:\\\\r?\\\\n)?\";\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(\".\").join(\" \"));\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 && this.match.index === this.parser.pos);\n\t// Parse the body\n\tvar tree = this.parser.parseBlocks(reEndString);\n\tfor(var t=0; t<tree.length; t++) {\n\t\tif(classes.length > 0) {\n\t\t\t$tw.utils.addClassToParseTreeNode(tree[t],classes.join(\" \"));\n\t\t}\n\t\tif(styles.length > 0) {\n\t\t\t$tw.utils.addAttributeToParseTreeNode(tree[t],\"style\",styles.join(\"\"));\n\t\t}\n\t}\n\treturn tree;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/styleinline.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/styleinline.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"styleinline\";\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(\".\").join(\" \") : 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: \"element\",\n\t\ttag: \"span\",\n\t\tattributes: {\n\t\t\t\"class\": {type: \"string\", value: \"tc-inline-style\"}\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,\"style\",stylesString);\n\t}\n\treturn [node];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/syslink.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/syslink.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"syslink\";\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\"~?\\\\$:\\\\/[\" +\n\t\t$tw.config.textPrimitives.anyLetter.substr(1,$tw.config.textPrimitives.anyLetter.length - 2) +\n\t\t\"\\/._-]+\",\n\t\t\"mg\"\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) === \"~\") {\n\t\treturn [{type: \"text\", text: match.substr(1)}];\n\t} else {\n\t\treturn [{\n\t\t\ttype: \"link\",\n\t\t\tattributes: {\n\t\t\t\tto: {type: \"string\", value: match}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\",\n\t\t\t\ttext: match\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/table.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/table.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"table\";\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 && cellMatch.index === this.parser.pos) {\n\t\tif(cellMatch[1] === \"~\") {\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,\"rowspan\",last.rowSpanCount);\n\t\t\t\tvAlign = $tw.utils.getAttributeValueFromParseTreeNode(last.element,\"valign\",\"center\");\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(last.element,\"valign\",vAlign);\n\t\t\t\tif(colSpanCount > 1) {\n\t\t\t\t\t$tw.utils.addAttributeToParseTreeNode(last.element,\"colspan\",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] === \">\") {\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] === \"<\" && prevCell) {\n\t\t\tcolSpanCount = 1 + $tw.utils.getAttributeValueFromParseTreeNode(prevCell,\"colspan\",1);\n\t\t\t$tw.utils.addAttributeToParseTreeNode(prevCell,\"colspan\",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 && colSpanCount > 1) {\n\t\t\t\tif(prevCell.attributes && prevCell.attributes && 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,\"colspan\",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 = \"top\";\n\t\t\t} else if(this.parser.source.substr(this.parser.pos).search(/^,([^,]|,,)/) === 0) {\n\t\t\t\tvAlign = \"bottom\";\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 === \" \") {\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 === \"!\") {\n\t\t\t\tthis.parser.pos++;\n\t\t\t\tcell = {type: \"element\", tag: \"th\", children: []};\n\t\t\t} else {\n\t\t\t\tcell = {type: \"element\", tag: \"td\", 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 > 1) {\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(cell,\"colspan\",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,\"valign\",vAlign);\n\t\t\t}\n\t\t\tif(this.parser.source.substr(this.parser.pos - 2,1) === \" \") { // spaceRight\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(cell,\"align\",spaceLeft ? \"center\" : \"left\");\n\t\t\t} else if(spaceLeft) {\n\t\t\t\t$tw.utils.addAttributeToParseTreeNode(cell,\"align\",\"right\");\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 = {\"c\":\"caption\", \"h\":\"thead\", \"\":\"tbody\", \"f\":\"tfoot\"},\n\t\ttable = {type: \"element\", tag: \"table\", 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 && 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 === \"k\") {\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: \"element\", 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 === \"c\") {\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 ? \"top\" : \"bottom\";\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: \"element\", tag: \"tr\", children: []};\n\t\t\t\t$tw.utils.addClassToParseTreeNode(theRow,rowCount%2 ? \"oddRow\" : \"evenRow\");\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", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/transcludeblock.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/transcludeblock.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"transcludeblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\{\\{([^\\{\\}\\|]*)(?:\\|\\|([^\\|\\{\\}]+))?\\}\\}(?:\\r?\\n|$)/mg;\n};\n\nexports.parse = function() {\n\t// Move past the match\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// Get the match details\n\tvar template = $tw.utils.trim(this.match[2]),\n\t\ttextRef = $tw.utils.trim(this.match[1]);\n\t// Prepare the transclude widget\n\tvar transcludeNode = {\n\t\t\ttype: \"transclude\",\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: \"tiddler\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", 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: \"string\", 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: \"string\", value: targetTitle};\n\t\t\tif(targetField) {\n\t\t\t\ttranscludeNode.attributes.field = {type: \"string\", value: targetField};\n\t\t\t}\n\t\t\tif(targetIndex) {\n\t\t\t\ttranscludeNode.attributes.index = {type: \"string\", 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", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/transcludeinline.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/transcludeinline.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"transcludeinline\";\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: \"transclude\",\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: \"tiddler\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", 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: \"string\", 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: \"string\", value: targetTitle};\n\t\t\tif(targetField) {\n\t\t\t\ttranscludeNode.attributes.field = {type: \"string\", value: targetField};\n\t\t\t}\n\t\t\tif(targetIndex) {\n\t\t\t\ttranscludeNode.attributes.index = {type: \"string\", 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", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/typedblock.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/typedblock.js", - "text": "/*\\\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<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"150\" height=\"100\">\n <circle cx=\"100\" cy=\"50\" r=\"40\" stroke=\"black\" stroke-width=\"2\" fill=\"red\" />\n</svg>\n$$$\n\n$$$text/vnd.tiddlywiki>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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nexports.name = \"typedblock\";\nexports.types = {block: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\t// Regexp to match\n\tthis.matchRegExp = /\\$\\$\\$([^ >\\r\\n]*)(?: *> *([^ \\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: \"text/plain\"});\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 <PRE> tag\n\t\tvar widgetNode = this.parser.wiki.makeWidget(parser),\n\t\t\tcontainer = $tw.fakeDocument.createElement(\"div\");\n\t\twidgetNode.render(container,null);\n\t\ttext = renderType === \"text/html\" ? container.innerHTML : container.textContent;\n\t\treturn [{\n\t\t\ttype: \"element\",\n\t\t\ttag: \"pre\",\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\",\n\t\t\t\ttext: text\n\t\t\t}]\n\t\t}];\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/whitespace.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/whitespace.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"whitespace\";\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 && 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 \"trim\":\n\t\t\t\tself.parser.configTrimWhiteSpace = true;\n\t\t\t\tbreak;\n\t\t\tcase \"notrim\":\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", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/rules/wikilink.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/wikilink.js", - "text": "/*\\\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\"use strict\";\n\nexports.name = \"wikilink\";\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 + \"?\" + $tw.config.textPrimitives.wikiLink,\"mg\");\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: \"text\", 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 > 0) {\n\t\tvar preRegExp = new RegExp($tw.config.textPrimitives.blockPrefixLetters,\"mg\");\n\t\tpreRegExp.lastIndex = this.match.index-1;\n\t\tvar preMatch = preRegExp.exec(this.parser.source);\n\t\tif(preMatch && preMatch.index === this.match.index-1) {\n\t\t\treturn [{type: \"text\", text: linkText}];\n\t\t}\n\t}\n\treturn [{\n\t\ttype: \"link\",\n\t\tattributes: {\n\t\t\tto: {type: \"string\", value: linkText}\n\t\t},\n\t\tchildren: [{\n\t\t\ttype: \"text\",\n\t\t\ttext: linkText\n\t\t}]\n\t}];\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "wikirule" - }, - "$:/core/modules/parsers/wikiparser/wikiparser.js": { - "title": "$:/core/modules/parsers/wikiparser/wikiparser.js", - "text": "/*\\\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: \"element\", tag: <string>, attributes: {}, children: []} - an HTML element\n\t{type: \"text\", text: <string>} - a text node\n\t{type: \"entity\", value: <string>} - an entity\n\t{type: \"raw\", html: <string>} - raw HTML\n\nAttributes are stored as hashmaps of the following objects:\n\n\t{type: \"string\", value: <string>} - literal string\n\t{type: \"indirect\", textReference: <textReference>} - indirect through a text reference\n\t{type: \"macro\", macro: <TBD>} - indirect through a macro invocation\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\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 && (text || \"\") === \"\" && options._canonical_uri) {\n\t\tthis.loadRemoteTiddler(options._canonical_uri);\n\t\ttext = $tw.language.getRawString(\"LazyLoadingWarning\");\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(\"wikirule\",\"pragma\",$tw.WikiRuleBase);\n\t\tthis.setupRules(WikiParser.prototype.pragmaRuleClasses,\"$:/config/WikiParserRules/Pragmas/\");\n\t}\n\tif(!this.blockRuleClasses) {\n\t\tWikiParser.prototype.blockRuleClasses = $tw.modules.createClassesFromModules(\"wikirule\",\"block\",$tw.WikiRuleBase);\n\t\tthis.setupRules(WikiParser.prototype.blockRuleClasses,\"$:/config/WikiParserRules/Block/\");\n\t}\n\tif(!this.inlineRuleClasses) {\n\t\tWikiParser.prototype.inlineRuleClasses = $tw.modules.createClassesFromModules(\"wikirule\",\"inline\",$tw.WikiRuleBase);\n\t\tthis.setupRules(WikiParser.prototype.inlineRuleClasses,\"$:/config/WikiParserRules/Inline/\");\n\t}\n\t// Save the parse text\n\tthis.type = type || \"text/vnd.tiddlywiki\";\n\tthis.source = text || \"\";\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,\"pragma\",0);\n\t// Instantiate the parser block and inline rules\n\tthis.blockRules = this.instantiateRules(this.blockRuleClasses,\"block\",0);\n\tthis.inlineRules = this.instantiateRules(this.inlineRuleClasses,\"inline\",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: \"GET\",\n\t\tcallback: function(err,data) {\n\t\t\tif(!err) {\n\t\t\t\tvar tiddlers = self.wiki.deserializeTiddlers(\".tid\",data,self.wiki.getCreationFields());\n\t\t\t\t$tw.utils.each(tiddlers,function(tiddler) {\n\t\t\t\t\ttiddler[\"_canonical_uri\"] = 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,\"enable\") !== \"enable\") {\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 && 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<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 && ruleInfo.matchIndex < 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 && ruleInfo.matchIndex <= 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 >= 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 > 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(\"(\" + terminatorRegExpString + \"|\\\\r?\\\\n\\\\r?\\\\n)\",\"mg\") : /(\\r?\\n\\r?\\n)/mg;\n\tthis.skipWhitespace();\n\tif(this.pos >= 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 && 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: \"element\", tag: \"p\", 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 < 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(\"(\" + terminatorRegExpString + \")\",\"mg\"),\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 < this.sourceLength && !(match && 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 && 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 < this.sourceLength && nextMatch) {\n\t\t// Process the text preceding the run rule\n\t\tif(nextMatch.matchIndex > 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 < 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 < this.sourceLength && (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 >= terminatorMatch.index) {\n\t\t\t\tif(terminatorMatch.index > 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 > 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 < 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: \"text\", 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 && match.index === this.pos) {\n\t\tthis.pos = match.index + match[0].length;\n\t\tclassNames.push(match[1]);\n\t\tmatch = classRegExp.exec(this.source);\n\t}\n\treturn classNames;\n};\n\n/*\nAmend the rules used by this instance of the parser\n\ttype: `only` keeps just the named rules, `except` keeps all but the named rules\n\tnames: array of rule names\n*/\nWikiParser.prototype.amendRules = function(type,names) {\n\tnames = names || [];\n\t// Define the filter function\n\tvar target;\n\tif(type === \"only\") {\n\t\ttarget = true;\n\t} else if(type === \"except\") {\n\t\ttarget = false;\n\t} else {\n\t\treturn;\n\t}\n\t// Define a function to process each of our rule arrays\n\tvar processRuleArray = function(ruleArray) {\n\t\tfor(var t=ruleArray.length-1; t>=0; t--) {\n\t\t\tif((names.indexOf(ruleArray[t].rule.name) === -1) === target) {\n\t\t\t\truleArray.splice(t,1);\n\t\t\t}\n\t\t}\n\t};\n\t// Process each rule array\n\tprocessRuleArray(this.pragmaRules);\n\tprocessRuleArray(this.blockRules);\n\tprocessRuleArray(this.inlineRules);\n};\n\nexports[\"text/vnd.tiddlywiki\"] = WikiParser;\n\n})();\n\n", - "type": "application/javascript", - "module-type": "parser" - }, - "$:/core/modules/parsers/wikiparser/rules/wikirulebase.js": { - "title": "$:/core/modules/parsers/wikiparser/rules/wikirulebase.js", - "text": "/*\\\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\"use strict\";\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", - "type": "application/javascript", - "module-type": "global" - }, - "$:/core/modules/pluginswitcher.js": { - "title": "$:/core/modules/pluginswitcher.js", - "text": "/*\\\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\"use strict\";\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(\"change\",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) && index < 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 && tiddler.isPlugin() && 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 || \"\");\n\t\t\t\t$tw.utils.each(dependents,function(title) {\n\t\t\t\t\taccumulatePlugin(title);\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\taccumulatePlugin(selectedPluginTitle);\n\t// Read the plugin info for the incoming plugins\n\tvar changes = $tw.wiki.readPluginInfo(plugins);\n\t// Unregister any existing theme tiddlers\n\tvar unregisteredTiddlers = $tw.wiki.unregisterPluginTiddlers(this.pluginType);\n\t// Register any new theme tiddlers\n\tvar registeredTiddlers = $tw.wiki.registerPluginTiddlers(this.pluginType,plugins);\n\t// Unpack the current theme tiddlers\n\t$tw.wiki.unpackPluginTiddlers();\n\t// Call the switch handler\n\tif(this.onSwitch) {\n\t\tthis.onSwitch(plugins);\n\t}\n};\n\nexports.PluginSwitcher = PluginSwitcher;\n\n})();\n", - "type": "application/javascript", - "module-type": "global" - }, - "$:/core/modules/saver-handler.js": { - "title": "$:/core/modules/saver-handler.js", - "text": "/*\\\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\"use strict\";\n\n/*\nInstantiate the saver handler with the following options:\nwiki: wiki to be synced\ndirtyTracking: true if dirty tracking should be performed\n*/\nfunction SaverHandler(options) {\n\tvar self = this;\n\tthis.wiki = options.wiki;\n\tthis.dirtyTracking = options.dirtyTracking;\n\tthis.preloadDirty = options.preloadDirty || [];\n\tthis.pendingAutoSave = false;\n\t// Make a logger\n\tthis.logger = new $tw.utils.Logger(\"saver-handler\");\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 && this.dirtyTracking) {\n\t\t// Compile the dirty tiddler filter\n\t\tthis.filterFn = this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter));\n\t\t// Count of changes that have not yet been saved\n\t\tvar filteredChanges = self.filterFn.call(self.wiki,function(iterator) {\n\t\t\t\t$tw.utils.each(self.preloadDirty,function(title) {\n\t\t\t\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\t\t\t\titerator(tiddler,title);\n\t\t\t\t});\n\t\t});\n\t\tthis.numChanges = filteredChanges.length;\n\t\t// Listen out for changes to tiddlers\n\t\tthis.wiki.addEventListener(\"change\",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 && self.wiki.getSizeOfTiddlerEventQueue() === 0) {\n\t\t\t\t// Check if we're dirty\n\t\t\t\tif(self.numChanges > 0) {\n\t\t\t\t\tself.saveWiki({\n\t\t\t\t\t\tmethod: \"autosave\",\n\t\t\t\t\t\tdownloadType: \"text/plain\"\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(\"tm-auto-save-wiki\",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 > 0) {\n\t\t\t\t\tself.saveWiki({\n\t\t\t\t\t\tmethod: \"autosave\",\n\t\t\t\t\t\tdownloadType: \"text/plain\"\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 \"pending autosave\" 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(\"UnsavedChangesWarning\");\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(\"tm-save-wiki\",function(event) {\n\t\t\tself.saveWiki({\n\t\t\t\ttemplate: event.param,\n\t\t\t\tdownloadType: \"text/plain\",\n\t\t\t\tvariables: event.paramObject\n\t\t\t});\n\t\t});\n\t\t$tw.rootWidget.addEventListener(\"tm-download-file\",function(event) {\n\t\t\tself.saveWiki({\n\t\t\t\tmethod: \"download\",\n\t\t\t\ttemplate: event.param,\n\t\t\t\tdownloadType: \"text/plain\",\n\t\t\t\tvariables: event.paramObject\n\t\t\t});\n\t\t});\n\t}\n}\n\nSaverHandler.prototype.titleSyncFilter = \"$:/config/SaverFilter\";\nSaverHandler.prototype.titleAutoSave = \"$:/config/AutoSave\";\nSaverHandler.prototype.titleSavedNotification = \"$:/language/Notifications/Save/Done\";\n\n/*\nSelect the appropriate saver modules and set them up\n*/\nSaverHandler.prototype.initSavers = function(moduleType) {\n\tmoduleType = moduleType || \"saver\";\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 < b.info.priority) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tif(a.info.priority > 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: \"save\", \"autosave\" or \"download\"\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 || \"save\";\n\t// Ignore autosave if disabled\n\tif(method === \"autosave\" && ($tw.config.disableAutoSave || this.wiki.getTiddlerText(this.titleAutoSave,\"yes\") !== \"yes\")) {\n\t\treturn false;\n\t}\n\tvar\tvariables = options.variables || {},\n\t\ttemplate = options.template || \"$:/core/save/all\",\n\t\tdownloadType = options.downloadType || \"text/plain\",\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(\"Error/WhileSaving\") + \":\\n\\n\" + 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 !== \"download\") {\n\t\t\t\t\tself.numChanges = 0;\n\t\t\t\t\tself.updateDirtyStatus();\n\t\t\t\t}\n\t\t\t\t$tw.notifier.display(self.titleSavedNotification);\n\t\t\t\tif(options.callback) {\n\t\t\t\t\toptions.callback();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t// Call the highest priority saver that supports this method\n\tfor(var t=this.savers.length-1; t>=0; t--) {\n\t\tvar saver = this.savers[t];\n\t\tif(saver.info.capabilities.indexOf(method) !== -1 && saver.save(text,method,callback,{variables: {filename: variables.filename}})) {\n\t\t\tthis.logger.log(\"Saving wiki with method\",method,\"through saver\",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 > 0;\n};\n\n/*\nUpdate the document body with the class \"tc-dirty\" if the wiki has unsaved/unsynced changes\n*/\nSaverHandler.prototype.updateDirtyStatus = function() {\n\tvar self = this;\n\tif($tw.browser) {\n\t\t$tw.utils.toggleClass(document.body,\"tc-dirty\",this.isDirty());\n\t\t$tw.utils.each($tw.windows,function(win) {\n\t\t\t$tw.utils.toggleClass(win.document.body,\"tc-dirty\",self.isDirty());\n\t\t});\n\t}\n};\n\nexports.SaverHandler = SaverHandler;\n\n})();\n", - "type": "application/javascript", - "module-type": "global" - }, - "$:/core/modules/savers/andtidwiki.js": { - "title": "$:/core/modules/savers/andtidwiki.js", - "text": "/*\\\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\"use strict\";\n\nvar AndTidWiki = function(wiki) {\n};\n\nAndTidWiki.prototype.save = function(text,method,callback,options) {\n\tvar filename = options && options.variables ? options.variables.filename : null;\n\tif (method === \"download\") {\n\t\t// Support download\n\t\tif (window.twi.saveDownload) {\n\t\t\ttry {\n\t\t\t\twindow.twi.saveDownload(text,filename);\n\t\t\t} catch(err) {\n\t\t\t\tif (err.message === \"Method not found\") {\n\t\t\t\t\twindow.twi.saveDownload(text);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tvar link = document.createElement(\"a\");\n\t\t\tlink.setAttribute(\"href\",\"data:text/plain,\" + encodeURIComponent(text));\n\t\t\tif (filename) {\n\t\t\t link.setAttribute(\"download\",filename);\n\t\t\t}\n\t\t\tdocument.body.appendChild(link);\n\t\t\tlink.click();\n\t\t\tdocument.body.removeChild(link);\n\t\t}\n\t} else if (window.twi.saveWiki) {\n\t\t// Direct save in Tiddloid\n\t\twindow.twi.saveWiki(text);\n\t} else {\n\t\t// Get the pathname of this document\n\t\tvar pathname = decodeURIComponent(document.location.toString().split(\"#\")[0]);\n\t\t// Strip the file://\n\t\tif(pathname.indexOf(\"file://\") === 0) {\n\t\t\tpathname = pathname.substr(7);\n\t\t}\n\t\t// Strip any query or location part\n\t\tvar p = pathname.indexOf(\"?\");\n\t\tif(p !== -1) {\n\t\t\tpathname = pathname.substr(0,p);\n\t\t}\n\t\tp = pathname.indexOf(\"#\");\n\t\tif(p !== -1) {\n\t\t\tpathname = pathname.substr(0,p);\n\t\t}\n\t\t// Save the file\n\t\twindow.twi.saveFile(pathname,text);\n\t}\n\t// Call the callback\n\tcallback(null);\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nAndTidWiki.prototype.info = {\n\tname: \"andtidwiki\",\n\tpriority: 1600,\n\tcapabilities: [\"save\", \"autosave\", \"download\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!window.twi && !!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", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/savers/beaker.js": { - "title": "$:/core/modules/savers/beaker.js", - "text": "/*\\\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 >= V0.7.2\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\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(\"\" + window.location),\n\t\tpathname = (\"\" + window.location.pathname).split(\"#\")[0];\n\tdat.stat(pathname).then(function(value) {\n\t\tif(value.isDirectory()) {\n\t\t\tpathname = pathname + \"/index.html\";\n\t\t}\n\t\tdat.writeFile(pathname,text,\"utf8\").then(function(value) {\n\t\t\tcallback(null);\n\t\t},function(reason) {\n\t\t\tcallback(\"Beaker Saver Write Error: \" + reason);\n\t\t});\n\t},function(reason) {\n\t\tcallback(\"Beaker Saver Stat Error: \" + reason);\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nBeakerSaver.prototype.info = {\n\tname: \"beaker\",\n\tpriority: 3000,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!window.DatArchive && location.protocol===\"dat:\";\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new BeakerSaver(wiki);\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/savers/custom.js": { - "title": "$:/core/modules/savers/custom.js", - "text": "/*\\\ntitle: $:/core/modules/savers/custom.js\ntype: application/javascript\nmodule-type: saver\n\nLooks for `window.$tw.customSaver` first on the current window, then\non the parent window (of an iframe). If present, the saver must define\n\tsave: function(text,method,callback) { ... }\nand the saver may define\n\tpriority: number\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar findSaver = function(window) {\n\ttry {\n\t\treturn window && window.$tw && window.$tw.customSaver;\n\t} catch (err) {\n\t\t// Catching the exception is the most reliable way to detect cross-origin iframe errors.\n\t\t// For example, instead of saying that `window.parent.$tw` is undefined, Firefox will throw\n\t\t// Uncaught DOMException: Permission denied to access property \"$tw\" on cross-origin object\n\t\tconsole.log({ msg: \"custom saver is disabled\", reason: err });\n\t\treturn null;\n\t}\n}\nvar saver = findSaver(window) || findSaver(window.parent) || {};\n\nvar CustomSaver = function(wiki) {\n};\n\nCustomSaver.prototype.save = function(text,method,callback) {\n\treturn saver.save(text, method, callback);\n};\n\n/*\nInformation about this saver\n*/\nCustomSaver.prototype.info = {\n\tname: \"custom\",\n\tpriority: saver.priority || 4000,\n\tcapabilities: [\"save\",\"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!(saver.save);\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new CustomSaver(wiki);\n};\n})();\n", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/savers/download.js": { - "title": "$:/core/modules/savers/download.js", - "text": "/*\\\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\"use strict\";\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(\"/\");\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 = \"tiddlywiki.html\";\n\t}\n\t// Set up the link\n\tvar link = document.createElement(\"a\");\n\tif(Blob !== undefined) {\n\t\tvar blob = new Blob([text], {type: \"text/html\"});\n\t\tlink.setAttribute(\"href\", URL.createObjectURL(blob));\n\t} else {\n\t\tlink.setAttribute(\"href\",\"data:text/html,\" + encodeURIComponent(text));\n\t}\n\tlink.setAttribute(\"download\",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: \"download\",\n\tpriority: 100\n};\n\nObject.defineProperty(DownloadSaver.prototype.info, \"capabilities\", {\n\tget: function() {\n\t\tvar capabilities = [\"save\", \"download\"];\n\t\tif(($tw.wiki.getTextReference(\"$:/config/DownloadSaver/AutoSave\") || \"\").toLowerCase() === \"yes\") {\n\t\t\tcapabilities.push(\"autosave\");\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(\"a\").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", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/savers/fsosaver.js": { - "title": "$:/core/modules/savers/fsosaver.js", - "text": "/*\\\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\"use strict\";\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 !== \"\" && /^\\/\\\\[^\\\\]+\\\\[^\\\\]+/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 = \"\\\\\\\\\" + 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(\"Scripting.FileSystemObject\");\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: \"FSOSaver\",\n\tpriority: 120,\n\tcapabilities: [\"save\", \"autosave\"]\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 === \"file:\") && !!(new ActiveXObject(\"Scripting.FileSystemObject\"));\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", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/savers/gitea.js": { - "title": "$:/core/modules/savers/gitea.js", - "text": "/*\\\ntitle: $:/core/modules/savers/gitea.js\ntype: application/javascript\nmodule-type: saver\n\nSaves wiki by pushing a commit to the gitea\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar GiteaSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nGiteaSaver.prototype.save = function(text,method,callback) {\n\tvar self = this,\n\t\tusername = this.wiki.getTiddlerText(\"$:/Gitea/Username\"),\n\t\tpassword = $tw.utils.getPassword(\"Gitea\"),\n\t\trepo = this.wiki.getTiddlerText(\"$:/Gitea/Repo\"),\n\t\tpath = this.wiki.getTiddlerText(\"$:/Gitea/Path\",\"\"),\n\t\tfilename = this.wiki.getTiddlerText(\"$:/Gitea/Filename\"),\n\t\tbranch = this.wiki.getTiddlerText(\"$:/Gitea/Branch\") || \"master\",\n\t\tendpoint = this.wiki.getTiddlerText(\"$:/Gitea/ServerURL\") || \"https://gitea\",\n\t\theaders = {\n\t\t\t\"Accept\": \"application/json\",\n\t\t\t\"Content-Type\": \"application/json;charset=UTF-8\",\n\t\t\t\"Authorization\": \"token \" + password\n\t\t};\n\t// Bail if we don't have everything we need\n\tif(!username || !password || !repo || !filename) {\n\t\treturn false;\n\t}\n\t// Make sure the path start and ends with a slash\n\tif(path.substring(0,1) !== \"/\") {\n\t\tpath = \"/\" + path;\n\t}\n\tif(path.substring(path.length - 1) !== \"/\") {\n\t\tpath = path + \"/\";\n\t}\n\t// Compose the base URI\n\tvar uri = endpoint + \"/repos/\" + repo + \"/contents\" + path;\n\t// Perform a get request to get the details (inc shas) of files in the same path as our file\n\t$tw.utils.httpRequest({\n\t\turl: uri,\n\t\ttype: \"GET\",\n\t\theaders: headers,\n\t\tdata: {\n\t\t\tref: branch\n\t\t},\n\t\tcallback: function(err,getResponseDataJson,xhr) {\n\t\t\tvar getResponseData,sha = \"\";\n\t\t\tif(err && xhr.status !== 404) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tvar use_put = true;\n\t\t\tif(xhr.status !== 404) {\n\t\t\t\tgetResponseData = JSON.parse(getResponseDataJson);\n\t\t\t\t$tw.utils.each(getResponseData,function(details) {\n\t\t\t\t\tif(details.name === filename) {\n\t\t\t\t\t\tsha = details.sha;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tif(sha === \"\"){\n\t\t\t\t\tuse_put = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar data = {\n\t\t\t\tmessage: $tw.language.getRawString(\"ControlPanel/Saving/GitService/CommitMessage\"),\n\t\t\t\tcontent: $tw.utils.base64Encode(text),\n\t\t\t\tsha: sha\n\t\t\t};\n\t\t\t$tw.utils.httpRequest({\n\t\t\t\turl: endpoint + \"/repos/\" + repo + \"/branches/\" + branch,\n\t\t\t\ttype: \"GET\",\n\t\t\t\theaders: headers,\n\t\t\t\tcallback: function(err,getResponseDataJson,xhr) {\n\t\t\t\t\tif(xhr.status === 404) {\n\t\t\t\t\t\tcallback(\"Please ensure the branch in the Gitea repo exists\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdata[\"branch\"] = branch;\n\t\t\t\t\t\tself.upload(uri + filename, use_put?\"PUT\":\"POST\", headers, data, callback);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\treturn true;\n};\n\nGiteaSaver.prototype.upload = function(uri,method,headers,data,callback) {\n\t$tw.utils.httpRequest({\n\t\turl: uri,\n\t\ttype: method,\n\t\theaders: headers,\n\t\tdata: JSON.stringify(data),\n\t\tcallback: function(err,putResponseDataJson,xhr) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tvar putResponseData = JSON.parse(putResponseDataJson);\n\t\t\tcallback(null);\n\t\t}\n\t});\n};\n\n/*\nInformation about this saver\n*/\nGiteaSaver.prototype.info = {\n\tname: \"Gitea\",\n\tpriority: 2000,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new GiteaSaver(wiki);\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/savers/github.js": { - "title": "$:/core/modules/savers/github.js", - "text": "/*\\\ntitle: $:/core/modules/savers/github.js\ntype: application/javascript\nmodule-type: saver\n\nSaves wiki by pushing a commit to the GitHub v3 REST API\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar GitHubSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nGitHubSaver.prototype.save = function(text,method,callback) {\n\tvar self = this,\n\t\tusername = this.wiki.getTiddlerText(\"$:/GitHub/Username\"),\n\t\tpassword = $tw.utils.getPassword(\"github\"),\n\t\trepo = this.wiki.getTiddlerText(\"$:/GitHub/Repo\"),\n\t\tpath = this.wiki.getTiddlerText(\"$:/GitHub/Path\",\"\"),\n\t\tfilename = this.wiki.getTiddlerText(\"$:/GitHub/Filename\"),\n\t\tbranch = this.wiki.getTiddlerText(\"$:/GitHub/Branch\") || \"main\",\n\t\tendpoint = this.wiki.getTiddlerText(\"$:/GitHub/ServerURL\") || \"https://api.github.com\",\n\t\theaders = {\n\t\t\t\"Accept\": \"application/vnd.github.v3+json\",\n\t\t\t\"Content-Type\": \"application/json;charset=UTF-8\",\n\t\t\t\"Authorization\": \"Basic \" + window.btoa(username + \":\" + password),\n\t\t\t\"If-None-Match\": \"\"\n\t\t};\n\t// Bail if we don't have everything we need\n\tif(!username || !password || !repo || !filename) {\n\t\treturn false;\n\t}\n\t// Make sure the path start and ends with a slash\n\tif(path.substring(0,1) !== \"/\") {\n\t\tpath = \"/\" + path;\n\t}\n\tif(path.substring(path.length - 1) !== \"/\") {\n\t\tpath = path + \"/\";\n\t}\n\t// Compose the base URI\n\tvar uri = endpoint + \"/repos/\" + repo + \"/contents\" + path;\n\t// Perform a get request to get the details (inc shas) of files in the same path as our file\n\t$tw.utils.httpRequest({\n\t\turl: uri,\n\t\ttype: \"GET\",\n\t\theaders: headers,\n\t\tdata: {\n\t\t\tref: branch\n\t\t},\n\t\tcallback: function(err,getResponseDataJson,xhr) {\n\t\t\tvar getResponseData,sha = \"\";\n\t\t\tif(err && xhr.status !== 404) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tif(xhr.status !== 404) {\n\t\t\t\tgetResponseData = JSON.parse(getResponseDataJson);\n\t\t\t\t$tw.utils.each(getResponseData,function(details) {\n\t\t\t\t\tif(details.name === filename) {\n\t\t\t\t\t\tsha = details.sha;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tvar data = {\n\t\t\t\tmessage: $tw.language.getRawString(\"ControlPanel/Saving/GitService/CommitMessage\"),\n\t\t\t\tcontent: $tw.utils.base64Encode(text),\n\t\t\t\tbranch: branch,\n\t\t\t\tsha: sha\n\t\t\t};\n\t\t\t// Perform a PUT request to save the file\n\t\t\t$tw.utils.httpRequest({\n\t\t\t\turl: uri + filename,\n\t\t\t\ttype: \"PUT\",\n\t\t\t\theaders: headers,\n\t\t\t\tdata: JSON.stringify(data),\n\t\t\t\tcallback: function(err,putResponseDataJson,xhr) {\n\t\t\t\t\tif(err) {\n\t\t\t\t\t\treturn callback(err);\n\t\t\t\t\t}\n\t\t\t\t\tvar putResponseData = JSON.parse(putResponseDataJson);\n\t\t\t\t\tcallback(null);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nGitHubSaver.prototype.info = {\n\tname: \"github\",\n\tpriority: 2000,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new GitHubSaver(wiki);\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/savers/gitlab.js": { - "title": "$:/core/modules/savers/gitlab.js", - "text": "/*\\\ntitle: $:/core/modules/savers/gitlab.js\ntype: application/javascript\nmodule-type: saver\n\nSaves wiki by pushing a commit to the GitLab REST API\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: true */\n\"use strict\";\n\n/*\nSelect the appropriate saver module and set it up\n*/\nvar GitLabSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nGitLabSaver.prototype.save = function(text,method,callback) {\n\t/* See https://docs.gitlab.com/ee/api/repository_files.html */\n\tvar self = this,\n\t\tusername = this.wiki.getTiddlerText(\"$:/GitLab/Username\"),\n\t\tpassword = $tw.utils.getPassword(\"gitlab\"),\n\t\trepo = this.wiki.getTiddlerText(\"$:/GitLab/Repo\"),\n\t\tpath = this.wiki.getTiddlerText(\"$:/GitLab/Path\",\"\"),\n\t\tfilename = this.wiki.getTiddlerText(\"$:/GitLab/Filename\"),\n\t\tbranch = this.wiki.getTiddlerText(\"$:/GitLab/Branch\") || \"master\",\n\t\tendpoint = this.wiki.getTiddlerText(\"$:/GitLab/ServerURL\") || \"https://gitlab.com/api/v4\",\n\t\theaders = {\n\t\t\t\"Content-Type\": \"application/json;charset=UTF-8\",\n\t\t\t\"Private-Token\": password\n\t\t};\n\t// Bail if we don't have everything we need\n\tif(!username || !password || !repo || !filename) {\n\t\treturn false;\n\t}\n\t// Make sure the path start and ends with a slash\n\tif(path.substring(0,1) !== \"/\") {\n\t\tpath = \"/\" + path;\n\t}\n\tif(path.substring(path.length - 1) !== \"/\") {\n\t\tpath = path + \"/\";\n\t}\n\t// Compose the base URI\n\tvar uri = endpoint + \"/projects/\" + encodeURIComponent(repo) + \"/repository/\";\n\t// Perform a get request to get the details (inc shas) of files in the same path as our file\n\t$tw.utils.httpRequest({\n\t\turl: uri + \"tree/?path=\" + encodeURIComponent(path.replace(/^\\/+|\\/$/g, '')) + \"&branch=\" + encodeURIComponent(branch.replace(/^\\/+|\\/$/g, '')),\n\t\ttype: \"GET\",\n\t\theaders: headers,\n\t\tcallback: function(err,getResponseDataJson,xhr) {\n\t\t\tvar getResponseData,sha = \"\";\n\t\t\tif(err && xhr.status !== 404) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tvar requestType = \"POST\";\n\t\t\tif(xhr.status !== 404) {\n\t\t\t\tgetResponseData = JSON.parse(getResponseDataJson);\n\t\t\t\t$tw.utils.each(getResponseData,function(details) {\n\t\t\t\t\tif(details.name === filename) {\n\t\t\t\t\t\trequestType = \"PUT\";\n\t\t\t\t\t\tsha = details.sha;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tvar data = {\n\t\t\t\tcommit_message: $tw.language.getRawString(\"ControlPanel/Saving/GitService/CommitMessage\"),\n\t\t\t\tcontent: text,\n\t\t\t\tbranch: branch,\n\t\t\t\tsha: sha\n\t\t\t};\n\t\t\t// Perform a request to save the file\n\t\t\t$tw.utils.httpRequest({\n\t\t\t\turl: uri + \"files/\" + encodeURIComponent(path.replace(/^\\/+/, '') + filename),\n\t\t\t\ttype: requestType,\n\t\t\t\theaders: headers,\n\t\t\t\tdata: JSON.stringify(data),\n\t\t\t\tcallback: function(err,putResponseDataJson,xhr) {\n\t\t\t\t\tif(err) {\n\t\t\t\t\t\treturn callback(err);\n\t\t\t\t\t}\n\t\t\t\t\tvar putResponseData = JSON.parse(putResponseDataJson);\n\t\t\t\t\tcallback(null);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nGitLabSaver.prototype.info = {\n\tname: \"gitlab\",\n\tpriority: 2000,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn true;\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new GitLabSaver(wiki);\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/savers/hyperdrive.js": { - "title": "$:/core/modules/savers/hyperdrive.js", - "text": "/*\\\ntitle: $:/core/modules/savers/hyperdrive.js\ntype: application/javascript\nmodule-type: saver\n\nSaves files using the Hyperdrive Protocol (https://hypercore-protocol.org/#hyperdrive) Beaker browser beta-1.0 and later (https://beakerbrowser.com)\nCompatible with beaker >= V1.0.0\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nSet up the saver\n*/\nvar HyperdriveSaver = function(wiki) {\n\tthis.wiki = wiki;\n};\n\nHyperdriveSaver.prototype.save = function(text,method,callback) {\n\tvar dat = beaker.hyperdrive.drive(\"\" + window.location),\n\t\tpathname = (\"\" + window.location.pathname).split(\"#\")[0];\n\tdat.stat(pathname).then(function(value) {\n\t\tif(value.isDirectory()) {\n\t\t\tpathname = pathname + \"/index.html\";\n\t\t}\n\t\tdat.writeFile(pathname,text,\"utf8\").then(function(value) {\n\t\t\tcallback(null);\n\t\t},function(reason) {\n\t\t\tcallback(\"Hyperdrive Saver Write Error: \" + reason);\n\t\t});\n\t},function(reason) {\n\t\tcallback(\"Hyperdrive Saver Stat Error: \" + reason);\n\t});\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nHyperdriveSaver.prototype.info = {\n\tname: \"beaker-1.x\",\n\tpriority: 3000,\n\tcapabilities: [\"save\", \"autosave\"]\n};\n\n/*\nStatic method that returns true if this saver is capable of working\n*/\nexports.canSave = function(wiki) {\n\treturn !!window.beaker && !!beaker.hyperdrive && location.protocol===\"hyper:\";\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new HyperdriveSaver(wiki);\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/savers/manualdownload.js": { - "title": "$:/core/modules/savers/manualdownload.js", - "text": "/*\\\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\"use strict\";\n\n// Title of the tiddler containing the download message\nvar downloadInstructionsTitle = \"$:/language/Modals/Download\";\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: \"data:text/html,\" + 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: \"manualdownload\",\n\tpriority: 0,\n\tcapabilities: [\"save\", \"download\"]\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", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/savers/msdownload.js": { - "title": "$:/core/modules/savers/msdownload.js", - "text": "/*\\\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\"use strict\";\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 = \"tiddlywiki.html\",\n\t\tp = document.location.pathname.lastIndexOf(\"/\");\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: \"text/html\"});\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: \"msdownload\",\n\tpriority: 110,\n\tcapabilities: [\"save\", \"download\"]\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", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/savers/put.js": { - "title": "$:/core/modules/savers/put.js", - "text": "/*\\\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\"use strict\";\n\n/*\nRetrieve ETag if available\n*/\nvar retrieveETag = function(self) {\n\tvar headers = {\n\t\tAccept: \"*/*;charset=UTF-8\"\n\t};\n\t$tw.utils.httpRequest({\n\t\turl: self.uri(),\n\t\ttype: \"HEAD\",\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(\"ETag\");\n\t\t\tif(!etag) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tself.etag = etag.replace(/^W\\//,\"\");\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: \"OPTIONS\",\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 && !!xhr.getResponseHeader(\"dav\");\n\t\t\t}\n\t\t}\n\t});\n\tretrieveETag(this);\n};\n\nPutSaver.prototype.uri = function() {\n\treturn document.location.toString().split(\"#\")[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\"Content-Type\": \"text/html;charset=UTF-8\"\n\t};\n\tif(this.etag) {\n\t\theaders[\"If-Match\"] = this.etag;\n\t}\n\t$tw.utils.httpRequest({\n\t\turl: this.uri(),\n\t\ttype: \"PUT\",\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: \"XMLHttpRequest error code: 412\"\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(\"Error/EditConflict\");\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(\"ETag\");\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: \"put\",\n\tpriority: 2000,\n\tcapabilities: [\"save\",\"autosave\"]\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", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/savers/tiddlyfox.js": { - "title": "$:/core/modules/savers/tiddlyfox.js", - "text": "/*\\\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\"use strict\";\n\nvar TiddlyFoxSaver = function(wiki) {\n};\n\nTiddlyFoxSaver.prototype.save = function(text,method,callback) {\n\tvar messageBox = document.getElementById(\"tiddlyfox-message-box\");\n\tif(messageBox) {\n\t\t// Get the pathname of this document\n\t\tvar pathname = document.location.toString().split(\"#\")[0];\n\t\t// Replace file://localhost/ with file:///\n\t\tif(pathname.indexOf(\"file://localhost/\") === 0) {\n\t\t\tpathname = \"file://\" + pathname.substr(16);\n\t\t}\n\t\t// Windows path file:///x:/blah/blah --> 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,\"\\\\\");\n\t\t// Firefox Windows network path file://///server/share/blah/blah --> //server/share/blah/blah\n\t\t} else if(pathname.indexOf(\"file://///\") === 0) {\n\t\t\tpathname = \"\\\\\\\\\" + unescape(pathname.substr(10)).replace(/\\//g,\"\\\\\");\n\t\t// Mac/Unix local path file:///path/path --> /path/path\n\t\t} else if(pathname.indexOf(\"file:///\") === 0) {\n\t\t\tpathname = unescape(pathname.substr(7));\n\t\t// Mac/Unix local path file:/path/path --> /path/path\n\t\t} else if(pathname.indexOf(\"file:/\") === 0) {\n\t\t\tpathname = unescape(pathname.substr(5));\n\t\t// Otherwise Windows networth path file://server/share/path/path --> \\\\server\\share\\path\\path\n\t\t} else {\n\t\t\tpathname = \"\\\\\\\\\" + unescape(pathname.substr(7)).replace(new RegExp(\"/\",\"g\"),\"\\\\\");\n\t\t}\n\t\t// Create the message element and put it in the message box\n\t\tvar message = document.createElement(\"div\");\n\t\tmessage.setAttribute(\"data-tiddlyfox-path\",decodeURIComponent(pathname));\n\t\tmessage.setAttribute(\"data-tiddlyfox-content\",text);\n\t\tmessageBox.appendChild(message);\n\t\t// Add an event handler for when the file has been saved\n\t\tmessage.addEventListener(\"tiddlyfox-have-saved-file\",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(\"Events\");\n\t\tevent.initEvent(\"tiddlyfox-save-file\",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: \"tiddlyfox\",\n\tpriority: 1500,\n\tcapabilities: [\"save\", \"autosave\"]\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", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/savers/tiddlyie.js": { - "title": "$:/core/modules/savers/tiddlyie.js", - "text": "/*\\\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\"use strict\";\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) != \"undefined\") {\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,\"\\\\\");\n\t\t} else if(document.hostname !== \"\" && /^\\/[^\\/]+\\/[^\\/]+/i.test(pathname)) {\t// test for \\\\server\\share\\blah... - ^/[^/]+/[^/]+\n\t\t\t// Convert slashes to backslashes\n\t\t\tpathname = pathname.replace(/\\//g,\"\\\\\");\n\t\t\t// reconstruct UNC path\n\t\t\tpathname = \"\\\\\\\\\" + 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: \"tiddlyiesaver\",\n\tpriority: 1500,\n\tcapabilities: [\"save\"]\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 === \"file:\");\n};\n\n/*\nCreate an instance of this saver\n*/\nexports.create = function(wiki) {\n\treturn new TiddlyIESaver(wiki);\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/savers/twedit.js": { - "title": "$:/core/modules/savers/twedit.js", - "text": "/*\\\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\"use strict\";\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 !== \"object\") {\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(\"?\");\n\tif(p !== -1) {\n\t\tpathname = pathname.substr(0,p);\n\t}\n\tp = pathname.indexOf(\"#\");\n\tif(p !== -1) {\n\t\tpathname = pathname.substr(0,p);\n\t}\n\t// Remove the leading \"/Documents\" from path\n\tvar prefix = \"/Documents\";\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(\"Error/SavingToTWEdit\") + \": \" + 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: \"twedit\",\n\tpriority: 1600,\n\tcapabilities: [\"save\", \"autosave\"]\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: \"TiddlyWiki\"};\n}\n\n})();\n", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/savers/upload.js": { - "title": "$:/core/modules/savers/upload.js", - "text": "/*\\\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\"use strict\";\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(\"$:/UploadBackupDir\") || \".\",\n\t\tusername = this.wiki.getTextReference(\"$:/UploadName\"),\n\t\tpassword = $tw.utils.getPassword(\"upload\"),\n\t\tuploadDir = this.wiki.getTextReference(\"$:/UploadDir\") || \".\",\n\t\tuploadFilename = this.wiki.getTextReference(\"$:/UploadFilename\") || \"index.html\",\n\t\turl = this.wiki.getTextReference(\"$:/UploadURL\");\n\t// Bail out if we don't have the bits we need\n\tif(!username || username.toString().trim() === \"\" || !password || password.toString().trim() === \"\") {\n\t\treturn false;\n\t}\n\t// Construct the url if not provided\n\tif(!url) {\n\t\turl = \"http://\" + username + \".tiddlyspot.com/store.cgi\";\n\t}\n\t// Assemble the header\n\tvar boundary = \"---------------------------\" + \"AaB03x\";\t\n\tvar uploadFormName = \"UploadPlugin\";\n\tvar head = [];\n\thead.push(\"--\" + boundary + \"\\r\\nContent-disposition: form-data; name=\\\"UploadPlugin\\\"\\r\\n\");\n\thead.push(\"backupDir=\" + backupDir + \";user=\" + username + \";password=\" + password + \";uploaddir=\" + uploadDir + \";;\"); \n\thead.push(\"\\r\\n\" + \"--\" + boundary);\n\thead.push(\"Content-disposition: form-data; name=\\\"userfile\\\"; filename=\\\"\" + uploadFilename + \"\\\"\");\n\thead.push(\"Content-Type: text/html;charset=UTF-8\");\n\thead.push(\"Content-Length: \" + text.length + \"\\r\\n\");\n\thead.push(\"\");\n\t// Assemble the tail and the data itself\n\tvar tail = \"\\r\\n--\" + boundary + \"--\\r\\n\",\n\t\tdata = head.join(\"\\r\\n\") + text + tail;\n\t// Do the HTTP post\n\tvar http = new XMLHttpRequest();\n\thttp.open(\"POST\",url,true,username,password);\n\thttp.setRequestHeader(\"Content-Type\",\"multipart/form-data; charset=UTF-8; boundary=\" + boundary);\n\thttp.onreadystatechange = function() {\n\t\tif(http.readyState == 4 && http.status == 200) {\n\t\t\tif(http.responseText.substr(0,4) === \"0 - \") {\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(\"Error/Caption\") + \":\" + ex);\n\t}\n\t$tw.notifier.display(\"$:/language/Notifications/Save/Starting\");\n\treturn true;\n};\n\n/*\nInformation about this saver\n*/\nUploadSaver.prototype.info = {\n\tname: \"upload\",\n\tpriority: 2000,\n\tcapabilities: [\"save\", \"autosave\"]\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", - "type": "application/javascript", - "module-type": "saver" - }, - "$:/core/modules/server/authenticators/basic.js": { - "title": "$:/core/modules/server/authenticators/basic.js", - "text": "/*\\\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\"use strict\";\n\nif($tw.node) {\n\tvar util = require(\"util\"),\n\t\tfs = require(\"fs\"),\n\t\turl = require(\"url\"),\n\t\tpath = require(\"path\");\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(\"credentials\");\n\tif(this.credentialsFilepath) {\n\t\tvar resolveCredentialsFilepath = path.resolve(this.server.boot.wikiPath,this.credentialsFilepath);\n\t\tif(fs.existsSync(resolveCredentialsFilepath) && !fs.statSync(resolveCredentialsFilepath).isDirectory()) {\n\t\t\tvar credentialsText = fs.readFileSync(resolveCredentialsFilepath,\"utf8\"),\n\t\t\t\tcredentialsData = $tw.utils.parseCsvStringWithHeader(credentialsText);\n\t\t\tif(typeof credentialsData === \"string\") {\n\t\t\t\treturn \"Error: \" + credentialsData + \" reading credentials from '\" + resolveCredentialsFilepath + \"'\";\n\t\t\t} else {\n\t\t\t\tthis.credentialsData = credentialsData;\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"Error: Unable to load user credentials from '\" + resolveCredentialsFilepath + \"'\";\n\t\t}\n\t}\n\t// Add the hardcoded username and password if specified\n\tif(this.server.get(\"username\") && this.server.get(\"password\")) {\n\t\tthis.credentialsData = this.credentialsData || [];\n\t\tthis.credentialsData.push({\n\t\t\tusername: this.server.get(\"username\"),\n\t\t\tpassword: this.server.get(\"password\")\n\t\t});\n\t}\n\treturn this.credentialsData.length > 0;\n};\n\n/*\nReturns true if the request is authenticated and assigns the \"authenticatedUsername\" 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 || \"\";\n\tif(!header && 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() || \"\",\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 && 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,\"Authentication required\",{\n\t\t\t\"WWW-Authenticate\": 'Basic realm=\"Please provide your username and password to login to ' + state.server.servername + '\"'\n\t\t});\n\t\tresponse.end();\n\t\treturn false;\n\t}\n};\n\nexports.AuthenticatorClass = BasicAuthenticator;\n\n})();\n", - "type": "application/javascript", - "module-type": "authenticator" - }, - "$:/core/modules/server/authenticators/header.js": { - "title": "$:/core/modules/server/authenticators/header.js", - "text": "/*\\\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\"use strict\";\n\nfunction HeaderAuthenticator(server) {\n\tthis.server = server;\n\tthis.header = server.get(\"authenticated-user-header\") ? server.get(\"authenticated-user-header\").toLowerCase() : undefined;\n}\n\n/*\nReturns true if the authenticator is active, false if it is inactive, or a string if there is an error\n*/\nHeaderAuthenticator.prototype.init = function() {\n\treturn !!this.header;\n};\n\n/*\nReturns true if the request is authenticated and assigns the \"authenticatedUsername\" 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 && !state.allowAnon) {\n\t\tresponse.writeHead(401,\"Authorization header required to login to '\" + state.server.servername + \"'\");\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", - "type": "application/javascript", - "module-type": "authenticator" - }, - "$:/core/modules/server/routes/delete-tiddler.js": { - "title": "$:/core/modules/server/routes/delete-tiddler.js", - "text": "/*\\\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\"use strict\";\n\nexports.method = \"DELETE\";\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, \"OK\", {\n\t\t\"Content-Type\": \"text/plain\"\n\t});\n\tresponse.end();\n};\n\n}());\n", - "type": "application/javascript", - "module-type": "route" - }, - "$:/core/modules/server/routes/get-favicon.js": { - "title": "$:/core/modules/server/routes/get-favicon.js", - "text": "/*\\\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\"use strict\";\n\nexports.method = \"GET\";\n\nexports.path = /^\\/favicon.ico$/;\n\nexports.handler = function(request,response,state) {\n\tresponse.writeHead(200, {\"Content-Type\": \"image/x-icon\"});\n\tvar buffer = state.wiki.getTiddlerText(\"$:/favicon.ico\",\"\");\n\tresponse.end(buffer,\"base64\");\n};\n\n}());\n", - "type": "application/javascript", - "module-type": "route" - }, - "$:/core/modules/server/routes/get-file.js": { - "title": "$:/core/modules/server/routes/get-file.js", - "text": "/*\\\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\"use strict\";\n\nexports.method = \"GET\";\n\nexports.path = /^\\/files\\/(.+)$/;\n\nexports.handler = function(request,response,state) {\n\tvar path = require(\"path\"),\n\t\tfs = require(\"fs\"),\n\t\tutil = require(\"util\"),\n\t\tsuppliedFilename = decodeURIComponent(state.params[0]),\n\t\tfilename = path.resolve(state.boot.wikiPath,\"files\",suppliedFilename),\n\t\textension = path.extname(filename);\n\tfs.readFile(filename,function(err,content) {\n\t\tvar status,content,type = \"text/plain\";\n\t\tif(err) {\n\t\t\tconsole.log(\"Error accessing file \" + filename + \": \" + err.toString());\n\t\t\tstatus = 404;\n\t\t\tcontent = \"File '\" + suppliedFilename + \"' not found\";\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 : \"application/octet-stream\");\n\t\t}\n\t\tresponse.writeHead(status,{\n\t\t\t\"Content-Type\": type\n\t\t});\n\t\tresponse.end(content);\n\t});\n};\n\n}());\n", - "type": "application/javascript", - "module-type": "route" - }, - "$:/core/modules/server/routes/get-index.js": { - "title": "$:/core/modules/server/routes/get-index.js", - "text": "/*\\\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\"use strict\";\n\nvar zlib = require(\"zlib\");\n\nexports.method = \"GET\";\n\nexports.path = /^\\/$/;\n\nexports.handler = function(request,response,state) {\n\tvar acceptEncoding = request.headers[\"accept-encoding\"];\n\tif(!acceptEncoding) {\n\t\tacceptEncoding = \"\";\n\t}\n\tvar text = state.wiki.renderTiddler(state.server.get(\"root-render-type\"),state.server.get(\"root-tiddler\")),\n\t\tresponseHeaders = {\n\t\t\"Content-Type\": state.server.get(\"root-serve-type\")\n\t};\n\t/*\n\tIf the gzip=yes flag for `listen` is set, check if the user agent permits\n\tcompression. If so, compress our response. Note that we use the synchronous\n\tfunctions from zlib to stay in the imperative style. The current `Server`\n\tdoesn't depend on this, and we may just as well use the async versions.\n\t*/\n\tif(state.server.enableGzip) {\n\t\tif (/\\bdeflate\\b/.test(acceptEncoding)) {\n\t\t\tresponseHeaders[\"Content-Encoding\"] = \"deflate\";\n\t\t\ttext = zlib.deflateSync(text);\n\t\t} else if (/\\bgzip\\b/.test(acceptEncoding)) {\n\t\t\tresponseHeaders[\"Content-Encoding\"] = \"gzip\";\n\t\t\ttext = zlib.gzipSync(text);\n\t\t}\n\t}\n\tresponse.writeHead(200,responseHeaders);\n\tresponse.end(text);\n};\n\n}());\n", - "type": "application/javascript", - "module-type": "route" - }, - "$:/core/modules/server/routes/get-login-basic.js": { - "title": "$:/core/modules/server/routes/get-login-basic.js", - "text": "/*\\\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\"use strict\";\n\nexports.method = \"GET\";\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\"WWW-Authenticate\": 'Basic realm=\"Please provide your username and password to login to ' + state.server.servername + '\"'\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: \"/\"\n\t\t});\n\t\tresponse.end();\n\t}\n};\n\n}());\n", - "type": "application/javascript", - "module-type": "route" - }, - "$:/core/modules/server/routes/get-status.js": { - "title": "$:/core/modules/server/routes/get-status.js", - "text": "/*\\\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\"use strict\";\n\nexports.method = \"GET\";\n\nexports.path = /^\\/status$/;\n\nexports.handler = function(request,response,state) {\n\tresponse.writeHead(200, {\"Content-Type\": \"application/json\"});\n\tvar text = JSON.stringify({\n\t\tusername: state.authenticatedUsername || state.server.get(\"anon-username\") || \"\",\n\t\tanonymous: !state.authenticatedUsername,\n\t\tread_only: !state.server.isAuthorized(\"writers\",state.authenticatedUsername),\n\t\tspace: {\n\t\t\trecipe: \"default\"\n\t\t},\n\t\ttiddlywiki_version: $tw.version\n\t});\n\tresponse.end(text,\"utf8\");\n};\n\n}());\n", - "type": "application/javascript", - "module-type": "route" - }, - "$:/core/modules/server/routes/get-tiddler-html.js": { - "title": "$:/core/modules/server/routes/get-tiddler-html.js", - "text": "/*\\\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\"use strict\";\n\nexports.method = \"GET\";\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(\"_render_type\"),\n\t\t\trenderTemplate = tiddler.getFieldString(\"_render_template\");\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(\"system-tiddler-render-type\");\n\t\t\trenderTemplate = renderTemplate || state.server.get(\"system-tiddler-render-template\");\n\t\t} else {\n\t\t\trenderType = renderType || state.server.get(\"tiddler-render-type\");\n\t\t\trenderTemplate = renderTemplate || state.server.get(\"tiddler-render-template\");\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,\"utf8\");\n\t} else {\n\t\tresponse.writeHead(404);\n\t\tresponse.end();\n\t}\n};\n\n}());\n", - "type": "application/javascript", - "module-type": "route" - }, - "$:/core/modules/server/routes/get-tiddler.js": { - "title": "$:/core/modules/server/routes/get-tiddler.js", - "text": "/*\\\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\"use strict\";\n\nexports.method = \"GET\";\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\"bag\", \"created\", \"creator\", \"modified\", \"modifier\", \"permissions\", \"recipe\", \"revision\", \"tags\", \"text\", \"title\", \"type\", \"uri\"\n\t\t];\n\tif(tiddler) {\n\t\t$tw.utils.each(tiddler.fields,function(field,name) {\n\t\t\tvar value = tiddler.getFieldString(name);\n\t\t\tif(knownFields.indexOf(name) !== -1) {\n\t\t\t\ttiddlerFields[name] = value;\n\t\t\t} else {\n\t\t\t\ttiddlerFields.fields = tiddlerFields.fields || {};\n\t\t\t\ttiddlerFields.fields[name] = value;\n\t\t\t}\n\t\t});\n\t\ttiddlerFields.revision = state.wiki.getChangeCount(title);\n\t\ttiddlerFields.bag = \"default\";\n\t\ttiddlerFields.type = tiddlerFields.type || \"text/vnd.tiddlywiki\";\n\t\tresponse.writeHead(200, {\"Content-Type\": \"application/json\"});\n\t\tresponse.end(JSON.stringify(tiddlerFields),\"utf8\");\n\t} else {\n\t\tresponse.writeHead(404);\n\t\tresponse.end();\n\t}\n};\n\n}());\n", - "type": "application/javascript", - "module-type": "route" - }, - "$:/core/modules/server/routes/get-tiddlers-json.js": { - "title": "$:/core/modules/server/routes/get-tiddlers-json.js", - "text": "/*\\\ntitle: $:/core/modules/server/routes/get-tiddlers-json.js\ntype: application/javascript\nmodule-type: route\n\nGET /recipes/default/tiddlers.json?filter=<filter>\n\n\\*/\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar DEFAULT_FILTER = \"[all[tiddlers]!is[system]sort[title]]\";\n\nexports.method = \"GET\";\n\nexports.path = /^\\/recipes\\/default\\/tiddlers.json$/;\n\nexports.handler = function(request,response,state) {\n\tvar filter = state.queryParameters.filter || DEFAULT_FILTER;\n\tif(state.wiki.getTiddlerText(\"$:/config/Server/AllowAllExternalFilters\") !== \"yes\") {\n\t\tif(state.wiki.getTiddlerText(\"$:/config/Server/ExternalFilters/\" + filter) !== \"yes\") {\n\t\t\tconsole.log(\"Blocked attempt to GET /recipes/default/tiddlers.json with filter: \" + filter);\n\t\t\tresponse.writeHead(403);\n\t\t\tresponse.end();\n\t\t\treturn;\n\t\t}\n\t}\n\tif(state.wiki.getTiddlerText(\"$:/config/SyncSystemTiddlersFromServer\") === \"no\") {\n\t\tfilter += \"+[!is[system]]\";\n\t}\n\tvar excludeFields = (state.queryParameters.exclude || \"text\").split(\",\"),\n\t\ttitles = state.wiki.filterTiddlers(filter);\n\tresponse.writeHead(200, {\"Content-Type\": \"application/json\"});\n\tvar tiddlers = [];\n\t$tw.utils.each(titles,function(title) {\n\t\tvar tiddler = state.wiki.getTiddler(title);\n\t\tif(tiddler) {\n\t\t\tvar tiddlerFields = tiddler.getFieldStrings({exclude: excludeFields});\n\t\t\ttiddlerFields.revision = state.wiki.getChangeCount(title);\n\t\t\ttiddlerFields.type = tiddlerFields.type || \"text/vnd.tiddlywiki\";\n\t\t\ttiddlers.push(tiddlerFields);\n\t\t}\n\t});\n\tvar text = JSON.stringify(tiddlers);\n\tresponse.end(text,\"utf8\");\n};\n\n}());\n", - "type": "application/javascript", - "module-type": "route" - }, - "$:/core/modules/server/routes/put-tiddler.js": { - "title": "$:/core/modules/server/routes/put-tiddler.js", - "text": "/*\\\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\"use strict\";\n\nexports.method = \"PUT\";\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, \"OK\",{\n\t\tEtag: \"\\\"default/\" + encodeURIComponent(title) + \"/\" + changeCount + \":\\\"\",\n\t\t\"Content-Type\": \"text/plain\"\n\t});\n\tresponse.end();\n};\n\n}());\n", - "type": "application/javascript", - "module-type": "route" - }, - "$:/core/modules/server/server.js": { - "title": "$:/core/modules/server/server.js", - "text": "/*\\\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\"use strict\";\n\nif($tw.node) {\n\tvar util = require(\"util\"),\n\t\tfs = require(\"fs\"),\n\t\turl = require(\"url\"),\n\t\tpath = require(\"path\"),\n\t\tquerystring = require(\"querystring\");\n}\n\n/*\nA simple HTTP server with regexp-based routes\noptions: variables - optional hashmap of variables to set (a misnomer - they are really constant parameters)\n\t\t routes - optional array of routes to use\n\t\t wiki - reference to wiki object\n*/\nfunction Server(options) {\n\tvar self = this;\n\tthis.routes = options.routes || [];\n\tthis.authenticators = options.authenticators || [];\n\tthis.wiki = options.wiki;\n\tthis.boot = options.boot || $tw.boot;\n\tthis.servername = $tw.utils.transliterateToSafeASCII(this.wiki.getTiddlerText(\"$:/SiteTitle\") || \"TiddlyWiki5\");\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(\"csrf-disable\") === \"yes\";\n\t// Initialize Gzip compression\n\tthis.enableGzip = this.get(\"gzip\") === \"yes\";\n\t// Initialise authorization\n\tvar authorizedUserName = (this.get(\"username\") && this.get(\"password\")) ? this.get(\"username\") : \"(anon)\";\n\tthis.authorizationPrincipals = {\n\t\treaders: (this.get(\"readers\") || authorizedUserName).split(\",\").map($tw.utils.trim),\n\t\twriters: (this.get(\"writers\") || authorizedUserName).split(\",\").map($tw.utils.trim)\n\t}\n\t// Load and initialise authenticators\n\t$tw.modules.forEachModuleOfType(\"authenticator\", function(title,authenticatorDefinition) {\n\t\t// console.log(\"Loading server route \" + title);\n\t\tself.addAuthenticator(authenticatorDefinition.AuthenticatorClass);\n\t});\n\t// Load route handlers\n\t$tw.modules.forEachModuleOfType(\"route\", function(title,routeDefinition) {\n\t\t// console.log(\"Loading server route \" + title);\n\t\tself.addRoute(routeDefinition);\n\t});\n\t// Initialise the http vs https\n\tthis.listenOptions = null;\n\tthis.protocol = \"http\";\n\tvar tlsKeyFilepath = this.get(\"tls-key\"),\n\t\ttlsCertFilepath = this.get(\"tls-cert\");\n\tif(tlsCertFilepath && tlsKeyFilepath) {\n\t\tthis.listenOptions = {\n\t\t\tkey: fs.readFileSync(path.resolve(this.boot.wikiPath,tlsKeyFilepath),\"utf8\"),\n\t\t\tcert: fs.readFileSync(path.resolve(this.boot.wikiPath,tlsCertFilepath),\"utf8\")\n\t\t};\n\t\tthis.protocol = \"https\";\n\t}\n\tthis.transport = require(this.protocol);\n}\n\nServer.prototype.defaultVariables = {\n\tport: \"8080\",\n\thost: \"127.0.0.1\",\n\t\"root-tiddler\": \"$:/core/save/all\",\n\t\"root-render-type\": \"text/plain\",\n\t\"root-serve-type\": \"text/html\",\n\t\"tiddler-render-type\": \"text/html\",\n\t\"tiddler-render-template\": \"$:/core/templates/server/static.tiddler.html\",\n\t\"system-tiddler-render-type\": \"text/plain\",\n\t\"system-tiddler-render-template\": \"$:/core/templates/wikified-tiddler\",\n\t\"debug-level\": \"none\",\n\t\"gzip\": \"no\"\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 === \"string\") {\n\t\t$tw.utils.error(\"Error: \" + result);\n\t} else if(result) {\n\t\t// Only use the authenticator if it initialised successfully\n\t\tthis.authenticators.push(authenticator);\n\t}\n};\n\nServer.prototype.findMatchingRoute = function(request,state) {\n\tfor(var t=0; t<this.routes.length; t++) {\n\t\tvar potentialRoute = this.routes[t],\n\t\t\tpathRegExp = potentialRoute.path,\n\t\t\tpathname = state.urlInfo.pathname,\n\t\t\tmatch;\n\t\tif(state.pathPrefix) {\n\t\t\tif(pathname.substr(0,state.pathPrefix.length) === state.pathPrefix) {\n\t\t\t\tpathname = pathname.substr(state.pathPrefix.length) || \"/\";\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 && request.method === potentialRoute.method) {\n\t\t\tstate.params = [];\n\t\t\tfor(var p=1; p<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\"GET\": \"readers\",\n\t\"OPTIONS\": \"readers\",\n\t\"HEAD\": \"readers\",\n\t\"PUT\": \"writers\",\n\t\"POST\": \"writers\",\n\t\"DELETE\": \"writers\"\n};\n\n/*\nCheck whether a given user is authorized for the specified authorizationType (\"readers\" or \"writers\"). 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(\"(anon)\") !== -1 || (username && (principals.indexOf(\"(authenticated)\") !== -1 || principals.indexOf(username) !== -1));\n}\n\nServer.prototype.requestHandler = function(request,response,options) {\n\toptions = options || {};\n\t// Compose the state object\n\tvar self = this;\n\tvar state = {};\n\tstate.wiki = options.wiki || self.wiki;\n\tstate.boot = options.boot || self.boot;\n\tstate.server = self;\n\tstate.urlInfo = url.parse(request.url);\n\tstate.queryParameters = querystring.parse(state.urlInfo.query);\n\tstate.pathPrefix = options.pathPrefix || this.get(\"path-prefix\") || \"\";\n\t// Get the principals authorized to access this resource\n\tvar authorizationType = this.methodMappings[request.method] || \"readers\";\n\t// Check for the CSRF header if this is a write\n\tif(!this.csrfDisable && authorizationType === \"writers\" && request.headers[\"x-requested-with\"] !== \"TiddlyWiki\") {\n\t\tresponse.writeHead(403,\"'X-Requested-With' header required to login to '\" + this.servername + \"'\");\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 > 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,\"'\" + state.authenticatedUsername + \"' is not authorized to access '\" + this.servername + \"'\");\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(\"debug-level\") !== \"none\") {\n\t\tconsole.log(\"Request path:\",JSON.stringify(state.urlInfo));\n\t\tconsole.log(\"Request headers:\",JSON.stringify(request.headers));\n\t\tconsole.log(\"authenticatedUsername:\",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 === \"stream\" || request.method === \"GET\" || request.method === \"HEAD\") {\n\t\t// Let the route handle the request stream itself\n\t\troute.handler(request,response,state);\n\t} else if(route.bodyFormat === \"string\" || !route.bodyFormat) {\n\t\t// Set the encoding for the incoming request\n\t\trequest.setEncoding(\"utf8\");\n\t\tvar data = \"\";\n\t\trequest.on(\"data\",function(chunk) {\n\t\t\tdata += chunk.toString();\n\t\t});\n\t\trequest.on(\"end\",function() {\n\t\t\tstate.data = data;\n\t\t\troute.handler(request,response,state);\n\t\t});\n\t} else if(route.bodyFormat === \"buffer\") {\n\t\tvar data = [];\n\t\trequest.on(\"data\",function(chunk) {\n\t\t\tdata.push(chunk);\n\t\t});\n\t\trequest.on(\"end\",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,\"Invalid bodyFormat \" + route.bodyFormat + \" in route \" + route.method + \" \" + route.path.source);\n\t\tresponse.end();\n\t}\n};\n\n/*\nListen for requests\nport: optional port number (falls back to value of \"port\" variable)\nhost: optional host address (falls back to value of \"host\" variable)\nprefix: optional prefix (falls back to value of \"path-prefix\" variable)\n*/\nServer.prototype.listen = function(port,host,prefix) {\n\tvar self = this;\n\t// Handle defaults for port and host\n\tport = port || this.get(\"port\");\n\thost = host || this.get(\"host\");\n\tprefix = prefix || this.get(\"path-prefix\") || \"\";\n\t// Check for the port being a string and look it up as an environment variable\n\tif(parseInt(port,10).toString() !== port) {\n\t\tport = process.env[port] || 8080;\n\t}\n\t// Warn if required plugins are missing\n\tif(!this.wiki.getTiddler(\"$:/plugins/tiddlywiki/tiddlyweb\") || !this.wiki.getTiddler(\"$:/plugins/tiddlywiki/filesystem\")) {\n\t\t$tw.utils.warning(\"Warning: Plugins required for client-server operation (\\\"tiddlywiki/filesystem\\\" and \\\"tiddlywiki/tiddlyweb\\\") are missing from tiddlywiki.info file\");\n\t}\n\t// Create the server\n\tvar server;\n\tif(this.listenOptions) {\n\t\tserver = this.transport.createServer(this.listenOptions,this.requestHandler.bind(this));\n\t} else {\n\t\tserver = this.transport.createServer(this.requestHandler.bind(this));\n\t}\n\t// Display the port number after we've started listening (the port number might have been specified as zero, in which case we will get an assigned port)\n\tserver.on(\"listening\",function() {\n\t\tvar address = server.address();\n\t\t$tw.utils.log(\"Serving on \" + self.protocol + \"://\" + address.address + \":\" + address.port + prefix,\"brown/orange\");\n\t\t$tw.utils.log(\"(press ctrl-C to exit)\",\"red\");\n\t});\n\t// Listen\n\treturn server.listen(port,host);\n};\n\nexports.Server = Server;\n\n})();\n", - "type": "application/javascript", - "module-type": "library" - }, - "$:/core/modules/browser-messaging.js": { - "title": "$:/core/modules/browser-messaging.js", - "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"browser-messaging\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\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(\"iframe\");\n\t\tiframeInfo = {\n\t\t\turl: url,\n\t\t\tstatus: \"loading\",\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 = \"none\";\n\t\tiframe.setAttribute(\"library\",\"true\");\n\t\tdocument.body.appendChild(iframe);\n\t\t// Set up onload\n\t\tiframe.onload = function() {\n\t\t\tiframeInfo.status = \"loaded\";\n\t\t\tsaveIFrameInfoTiddler(iframeInfo);\n\t\t\tcallback(null,iframeInfo);\n\t\t};\n\t\tiframe.onerror = function() {\n\t\t\tcallback(\"Cannot load iframe\");\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(\"library\") === \"true\" &&\n\t\t iframe.getAttribute(\"src\") === 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: \"$:/temp/ServerConnection/\" + iframeInfo.url,\n\t\ttext: iframeInfo.status,\n\t\ttags: [\"$:/tags/ServerConnection\"],\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:\"loading/loaded\",domNode:}\n\t};\n\t// Listen for widget messages to control loading the plugin library\n\t$tw.rootWidget.addEventListener(\"tm-load-plugin-library\",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(\"Error/LoadingPluginLibrary\") + \": \" + url);\n\t\t\t\t} else {\n\t\t\t\t\tiframeInfo.domNode.contentWindow.postMessage({\n\t\t\t\t\t\tverb: \"GET\",\n\t\t\t\t\t\turl: \"recipes/library/tiddlers.json\",\n\t\t\t\t\t\tcookies: {\n\t\t\t\t\t\t\ttype: \"save-info\",\n\t\t\t\t\t\t\tinfoTitlePrefix: paramObject.infoTitlePrefix || \"$:/temp/RemoteAssetInfo/\",\n\t\t\t\t\t\t\turl: url\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\t// Listen for widget messages to control unloading the plugin library\n\t$tw.rootWidget.addEventListener(\"tm-unload-plugin-library\",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(\"[[$:/temp/ServerConnection/\" + url + \"]] [prefix[$:/temp/RemoteAssetInfo/\" + url + \"/]]\"),\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(\"tm-load-plugin-from-library\",function(event) {\n\t\tvar paramObject = event.paramObject || {},\n\t\t\turl = paramObject.url,\n\t\t\ttitle = paramObject.title;\n\t\tif(url && title) {\n\t\t\tloadIFrame(url,function(err,iframeInfo) {\n\t\t\t\tif(err) {\n\t\t\t\t\talert($tw.language.getString(\"Error/LoadingPluginLibrary\") + \": \" + url);\n\t\t\t\t} else {\n\t\t\t\t\tiframeInfo.domNode.contentWindow.postMessage({\n\t\t\t\t\t\tverb: \"GET\",\n\t\t\t\t\t\turl: \"recipes/library/tiddlers/\" + encodeURIComponent(title) + \".json\",\n\t\t\t\t\t\tcookies: {\n\t\t\t\t\t\t\ttype: \"save-tiddler\",\n\t\t\t\t\t\t\turl: url\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\t// Listen for window messages from other windows\n\twindow.addEventListener(\"message\",function listener(event){\n\t\t// console.log(\"browser-messaging: \",document.location.toString())\n\t\t// console.log(\"browser-messaging: Received message from\",event.origin);\n\t\t// console.log(\"browser-messaging: Message content\",event.data);\n\t\tswitch(event.data.verb) {\n\t\t\tcase \"GET-RESPONSE\":\n\t\t\t\tif(event.data.status.charAt(0) === \"2\") {\n\t\t\t\t\tif(event.data.cookies) {\n\t\t\t\t\t\tif(event.data.cookies.type === \"save-info\") {\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 + \"/\" + tiddler.title,\n\t\t\t\t\t\t\t\t\t\"original-title\": tiddler.title,\n\t\t\t\t\t\t\t\t\ttext: \"\",\n\t\t\t\t\t\t\t\t\ttype: \"text/vnd.tiddlywiki\",\n\t\t\t\t\t\t\t\t\t\"original-type\": tiddler.type,\n\t\t\t\t\t\t\t\t\t\"plugin-type\": undefined,\n\t\t\t\t\t\t\t\t\t\"original-plugin-type\": tiddler[\"plugin-type\"],\n\t\t\t\t\t\t\t\t\t\"module-type\": undefined,\n\t\t\t\t\t\t\t\t\t\"original-module-type\": tiddler[\"module-type\"],\n\t\t\t\t\t\t\t\t\ttags: [\"$:/tags/RemoteAssetInfo\"],\n\t\t\t\t\t\t\t\t\t\"original-tags\": $tw.utils.stringifyList(tiddler.tags || []),\n\t\t\t\t\t\t\t\t\t\"server-url\": 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 === \"save-tiddler\") {\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", - "type": "application/javascript", - "module-type": "startup" - }, - "$:/core/modules/startup/commands.js": { - "title": "$:/core/modules/startup/commands.js", - "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"commands\";\nexports.platforms = [\"node\"];\nexports.after = [\"story\"];\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(\"Error: \" + 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", - "type": "application/javascript", - "module-type": "startup" - }, - "$:/core/modules/startup/CSSescape.js": { - "title": "$:/core/modules/startup/CSSescape.js", - "text": "/*\\\ntitle: $:/core/modules/startup/CSSescape.js\ntype: application/javascript\nmodule-type: startup\n\nPolyfill for CSS.escape()\n\n\\*/\n(function(root,factory){\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"css-escape\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\n/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */\n// https://github.com/umdjs/umd/blob/master/returnExports.js\nexports.startup = factory(root);\n}(typeof global != 'undefined' ? global : this, function(root) {\n\n\tif (root.CSS && root.CSS.escape) {\n\t\treturn;\n\t}\n\n\t// https://drafts.csswg.org/cssom/#serialize-an-identifier\n\tvar cssEscape = function(value) {\n\t\tif (arguments.length == 0) {\n\t\t\tthrow new TypeError('`CSS.escape` requires an argument.');\n\t\t}\n\t\tvar string = String(value);\n\t\tvar length = string.length;\n\t\tvar index = -1;\n\t\tvar codeUnit;\n\t\tvar result = '';\n\t\tvar firstCodeUnit = string.charCodeAt(0);\n\t\twhile (++index < length) {\n\t\t\tcodeUnit = string.charCodeAt(index);\n\t\t\t// Note: there’s no need to special-case astral symbols, surrogate\n\t\t\t// pairs, or lone surrogates.\n\n\t\t\t// If the character is NULL (U+0000), then the REPLACEMENT CHARACTER\n\t\t\t// (U+FFFD).\n\t\t\tif (codeUnit == 0x0000) {\n\t\t\t\tresult += '\\uFFFD';\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\t// If the character is in the range [\\1-\\1F] (U+0001 to U+001F) or is\n\t\t\t\t// U+007F, […]\n\t\t\t\t(codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F ||\n\t\t\t\t// If the character is the first character and is in the range [0-9]\n\t\t\t\t// (U+0030 to U+0039), […]\n\t\t\t\t(index == 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) ||\n\t\t\t\t// If the character is the second character and is in the range [0-9]\n\t\t\t\t// (U+0030 to U+0039) and the first character is a `-` (U+002D), […]\n\t\t\t\t(\n\t\t\t\t\tindex == 1 &&\n\t\t\t\t\tcodeUnit >= 0x0030 && codeUnit <= 0x0039 &&\n\t\t\t\t\tfirstCodeUnit == 0x002D\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\t// https://drafts.csswg.org/cssom/#escape-a-character-as-code-point\n\t\t\t\tresult += '\\\\' + codeUnit.toString(16) + ' ';\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\t// If the character is the first character and is a `-` (U+002D), and\n\t\t\t\t// there is no second character, […]\n\t\t\t\tindex == 0 &&\n\t\t\t\tlength == 1 &&\n\t\t\t\tcodeUnit == 0x002D\n\t\t\t) {\n\t\t\t\tresult += '\\\\' + string.charAt(index);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If the character is not handled by one of the above rules and is\n\t\t\t// greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or\n\t\t\t// is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to\n\t\t\t// U+005A), or [a-z] (U+0061 to U+007A), […]\n\t\t\tif (\n\t\t\t\tcodeUnit >= 0x0080 ||\n\t\t\t\tcodeUnit == 0x002D ||\n\t\t\t\tcodeUnit == 0x005F ||\n\t\t\t\tcodeUnit >= 0x0030 && codeUnit <= 0x0039 ||\n\t\t\t\tcodeUnit >= 0x0041 && codeUnit <= 0x005A ||\n\t\t\t\tcodeUnit >= 0x0061 && codeUnit <= 0x007A\n\t\t\t) {\n\t\t\t\t// the character itself\n\t\t\t\tresult += string.charAt(index);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Otherwise, the escaped character.\n\t\t\t// https://drafts.csswg.org/cssom/#escape-a-character\n\t\t\tresult += '\\\\' + string.charAt(index);\n\n\t\t}\n\t\treturn result;\n\t};\n\n\tif (!root.CSS) {\n\t\troot.CSS = {};\n\t}\n\n\troot.CSS.escape = cssEscape;\n\n}));\n", - "type": "application/javascript", - "module-type": "startup" - }, - "$:/core/modules/startup/favicon.js": { - "title": "$:/core/modules/startup/favicon.js", - "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"favicon\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\t\t\n// Favicon tiddler\nvar FAVICON_TITLE = \"$:/favicon.ico\";\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(\"change\",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(\"faviconLink\");\n\t\tfaviconLink.setAttribute(\"href\",$tw.utils.makeDataUri(tiddler.fields.text,tiddler.fields.type,tiddler.fields._canonical_uri));\n\t}\n}\n\n})();\n", - "type": "application/javascript", - "module-type": "startup" - }, - "$:/core/modules/startup/info.js": { - "title": "$:/core/modules/startup/info.js", - "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"info\";\nexports.before = [\"startup\"];\nexports.after = [\"load-modules\"];\nexports.synchronous = true;\n\nvar TITLE_INFO_PLUGIN = \"$:/temp/info-plugin\";\n\nexports.startup = function() {\n\t// Function to bake the info plugin with new tiddlers\n\tvar updateInfoPlugin = function(tiddlerFieldsArray) {\n\t\t// Get the existing tiddlers\n\t\tvar json = $tw.wiki.getTiddlerData(TITLE_INFO_PLUGIN,{tiddlers: {}});\n\t\t// Add the new ones\n\t\t$tw.utils.each(tiddlerFieldsArray,function(fields) {\n\t\t\tif(fields && fields.title) {\n\t\t\t\tjson.tiddlers[fields.title] = fields;\n\t\t\t}\n\t\t});\n\t\t// Bake the info tiddlers into a plugin. We use the non-standard plugin-type \"info\" because ordinary plugins are only registered asynchronously after being loaded dynamically\n\t\tvar fields = {\n\t\t\ttitle: TITLE_INFO_PLUGIN,\n\t\t\ttype: \"application/json\",\n\t\t\t\"plugin-type\": \"info\",\n\t\t\ttext: JSON.stringify(json,null,$tw.config.preferences.jsonSpaces)\n\t\t};\n\t\t$tw.wiki.addTiddler(new $tw.Tiddler(fields));\n\n\t};\n\t// Collect up the info tiddlers\n\tvar tiddlerFieldsArray = [];\n\t// Give each info module a chance to provide as many info tiddlers as they want as an array, and give them a callback for dynamically updating them\n\t$tw.modules.forEachModuleOfType(\"info\",function(title,moduleExports) {\n\t\tif(moduleExports && moduleExports.getInfoTiddlerFields) {\n\t\t\tArray.prototype.push.apply(tiddlerFieldsArray,moduleExports.getInfoTiddlerFields(updateInfoPlugin));\n\t\t}\n\t});\n\tupdateInfoPlugin(tiddlerFieldsArray);\n\tvar changes = $tw.wiki.readPluginInfo([TITLE_INFO_PLUGIN]);\n\t$tw.wiki.registerPluginTiddlers(\"info\",[TITLE_INFO_PLUGIN]);\n\t$tw.wiki.unpackPluginTiddlers();\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "startup" - }, - "$:/core/modules/startup/load-modules.js": { - "title": "$:/core/modules/startup/load-modules.js", - "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"load-modules\";\nexports.synchronous = true;\n\nexports.startup = function() {\n\t// Load modules\n\t$tw.modules.applyMethods(\"utils\",$tw.utils);\n\tif($tw.node) {\n\t\t$tw.modules.applyMethods(\"utils-node\",$tw.utils);\n\t}\n\t$tw.modules.applyMethods(\"global\",$tw);\n\t$tw.modules.applyMethods(\"config\",$tw.config);\n\t$tw.Tiddler.fieldModules = $tw.modules.getModulesByTypeAsHashmap(\"tiddlerfield\");\n\t$tw.modules.applyMethods(\"tiddlermethod\",$tw.Tiddler.prototype);\n\t$tw.modules.applyMethods(\"wikimethod\",$tw.Wiki.prototype);\n\t$tw.wiki.addIndexersToWiki();\n\t$tw.modules.applyMethods(\"tiddlerdeserializer\",$tw.Wiki.tiddlerDeserializerModules);\n\t$tw.macros = $tw.modules.getModulesByTypeAsHashmap(\"macro\");\n\t$tw.wiki.initParsers();\n\t$tw.Commander.initCommands();\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "startup" - }, - "$:/core/modules/startup/password.js": { - "title": "$:/core/modules/startup/password.js", - "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"password\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\nexports.startup = function() {\n\t$tw.rootWidget.addEventListener(\"tm-set-password\",function(event) {\n\t\t$tw.passwordPrompt.createPrompt({\n\t\t\tserviceName: $tw.language.getString(\"Encryption/PromptSetPassword\"),\n\t\t\tnoUserName: true,\n\t\t\tsubmitText: $tw.language.getString(\"Encryption/SetPassword\"),\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(\"tm-clear-password\",function(event) {\n\t\tif($tw.browser) {\n\t\t\tif(!confirm($tw.language.getString(\"Encryption/ConfirmClearPassword\"))) {\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(\"change\",function(changes) {\n\t\tif($tw.utils.hop(changes,\"$:/isEncrypted\")) {\n\t\t\t$tw.crypto.updateCryptoStateTiddler();\n\t\t}\n\t});\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "startup" - }, - "$:/core/modules/startup/plugins.js": { - "title": "$:/core/modules/startup/plugins.js", - "text": "/*\\\ntitle: $:/core/modules/startup/plugins.js\ntype: application/javascript\nmodule-type: startup\n\nStartup logic concerned with managing plugins\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"plugins\";\nexports.after = [\"load-modules\"];\nexports.synchronous = true;\n\nvar TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE = \"$:/status/RequireReloadDueToPluginChange\";\n\nvar PREFIX_CONFIG_REGISTER_PLUGIN_TYPE = \"$:/config/RegisterPluginType/\";\n\nexports.startup = function() {\n\t$tw.wiki.addTiddler({title: TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE,text: \"no\"});\n\t$tw.wiki.addEventListener(\"change\",function(changes) {\n\t\t// Work out which of the changed tiddlers are plugins that we need to reregister\n\t\tvar changesToProcess = [],\n\t\t\trequireReloadDueToPluginChange = false;\n\t\t$tw.utils.each(Object.keys(changes),function(title) {\n\t\t\tvar tiddler = $tw.wiki.getTiddler(title),\n\t\t\t\trequiresReload = $tw.wiki.doesPluginRequireReload(title);\n\t\t\tif(requiresReload) {\n\t\t\t\trequireReloadDueToPluginChange = true;\n\t\t\t} else if(tiddler) {\n\t\t\t\tvar pluginType = tiddler.fields[\"plugin-type\"];\n\t\t\t\tif($tw.wiki.getTiddlerText(PREFIX_CONFIG_REGISTER_PLUGIN_TYPE + (tiddler.fields[\"plugin-type\"] || \"\"),\"no\") === \"yes\") {\n\t\t\t\t\tchangesToProcess.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t// Issue warning if any of the tiddlers require a reload\n\t\tif(requireReloadDueToPluginChange) {\n\t\t\t$tw.wiki.addTiddler({title: TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE,text: \"yes\"});\n\t\t}\n\t\t// Read or delete the plugin info of the changed tiddlers\n\t\tif(changesToProcess.length > 0) {\n\t\t\tvar changes = $tw.wiki.readPluginInfo(changesToProcess);\n\t\t\tif(changes.modifiedPlugins.length > 0 || changes.deletedPlugins.length > 0) {\n\t\t\t\tvar changedShadowTiddlers = {};\n\t\t\t\t// Collect the shadow tiddlers of any deleted plugins\n\t\t\t\t$tw.utils.each(changes.deletedPlugins,function(pluginTitle) {\n\t\t\t\t\tvar pluginInfo = $tw.wiki.getPluginInfo(pluginTitle);\n\t\t\t\t\tif(pluginInfo) {\n\t\t\t\t\t\t$tw.utils.each(Object.keys(pluginInfo.tiddlers),function(title) {\n\t\t\t\t\t\t\tchangedShadowTiddlers[title] = true;\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t// Collect the shadow tiddlers of any modified plugins\n\t\t\t\t$tw.utils.each(changes.modifiedPlugins,function(pluginTitle) {\n\t\t\t\t\tvar pluginInfo = $tw.wiki.getPluginInfo(pluginTitle);\n\t\t\t\t\tif(pluginInfo) {\n\t\t\t\t\t\t$tw.utils.each(Object.keys(pluginInfo.tiddlers),function(title) {\n\t\t\t\t\t\t\tchangedShadowTiddlers[title] = false;\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t// (Re-)register any modified plugins\n\t\t\t\t$tw.wiki.registerPluginTiddlers(null,changes.modifiedPlugins);\n\t\t\t\t// Unregister any deleted plugins\n\t\t\t\t$tw.wiki.unregisterPluginTiddlers(null,changes.deletedPlugins);\n\t\t\t\t// Unpack the shadow tiddlers\n\t\t\t\t$tw.wiki.unpackPluginTiddlers();\n\t\t\t\t// Queue change events for the changed shadow tiddlers\n\t\t\t\t$tw.utils.each(Object.keys(changedShadowTiddlers),function(title) {\n\t\t\t\t\t$tw.wiki.enqueueTiddlerEvent(title,changedShadowTiddlers[title]);\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t});\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "startup" - }, - "$:/core/modules/startup/render.js": { - "title": "$:/core/modules/startup/render.js", - "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"render\";\nexports.platforms = [\"browser\"];\nexports.after = [\"story\"];\nexports.synchronous = true;\n\n// Default story and history lists\nvar PAGE_TITLE_TITLE = \"$:/core/wiki/title\";\nvar PAGE_STYLESHEET_TITLE = \"$:/core/ui/PageStylesheet\";\nvar PAGE_TEMPLATE_TITLE = \"$:/core/ui/RootTemplate\";\n\n// Time (in ms) that we defer refreshing changes to draft tiddlers\nvar DRAFT_TIDDLER_TIMEOUT_TITLE = \"$:/config/Drafts/TypingTimeout\";\nvar THROTTLE_REFRESH_TIMEOUT = 400;\n\nexports.startup = function() {\n\t// Set up the title\n\t$tw.titleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TITLE_TITLE,{document: $tw.fakeDocument, parseAsInline: true});\n\t$tw.titleContainer = $tw.fakeDocument.createElement(\"div\");\n\t$tw.titleWidgetNode.render($tw.titleContainer,null);\n\tdocument.title = $tw.titleContainer.textContent;\n\t$tw.wiki.addEventListener(\"change\",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(\"style\");\n\t$tw.styleWidgetNode.render($tw.styleContainer,null);\n\t$tw.styleElement = document.createElement(\"style\");\n\t$tw.styleElement.innerHTML = $tw.styleContainer.textContent;\n\tdocument.head.insertBefore($tw.styleElement,document.head.firstChild);\n\t$tw.wiki.addEventListener(\"change\",$tw.perf.report(\"styleRefresh\",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(\"mainRender\",function() {\n\t\t$tw.pageWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TEMPLATE_TITLE,{document: document, parentWidget: $tw.rootWidget, recursionMarker: \"no\"});\n\t\t$tw.pageContainer = document.createElement(\"div\");\n\t\t$tw.utils.addClass($tw.pageContainer,\"tc-page-container-wrapper\");\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(\"th-page-refreshed\");\n\t})();\n\t// Remove any splash screen elements\n\tvar removeList = document.querySelectorAll(\".tc-remove-when-wiki-loaded\");\n\t$tw.utils.each(removeList,function(removeItem) {\n\t\tif(removeItem.parentNode) {\n\t\t\tremoveItem.parentNode.removeChild(removeItem);\n\t\t}\n\t});\n\t// Prepare refresh mechanism\n\tvar deferredChanges = Object.create(null),\n\t\ttimerId;\n\tfunction refresh() {\n\t\t// Process the refresh\n\t\t$tw.hooks.invokeHook(\"th-page-refreshing\");\n\t\t$tw.pageWidgetNode.refresh(deferredChanges);\n\t\tdeferredChanges = Object.create(null);\n\t\t$tw.hooks.invokeHook(\"th-page-refreshed\");\n\t}\n\t// Add the change event handler\n\t$tw.wiki.addEventListener(\"change\",$tw.perf.report(\"mainRefresh\",function(changes) {\n\t\t// Check if only tiddlers that are throttled have changed\n\t\tvar onlyThrottledTiddlersHaveChanged = true;\n\t\tfor(var title in changes) {\n\t\t\tvar tiddler = $tw.wiki.getTiddler(title);\n\t\t\tif(!tiddler || !(tiddler.hasField(\"draft.of\") || tiddler.hasField(\"throttle.refresh\"))) {\n\t\t\t\tonlyThrottledTiddlersHaveChanged = false;\n\t\t\t}\n\t\t}\n\t\t// Defer the change if only drafts have changed\n\t\tif(timerId) {\n\t\t\tclearTimeout(timerId);\n\t\t}\n\t\ttimerId = null;\n\t\tif(onlyThrottledTiddlersHaveChanged) {\n\t\t\tvar timeout = parseInt($tw.wiki.getTiddlerText(DRAFT_TIDDLER_TIMEOUT_TITLE,\"\"),10);\n\t\t\tif(isNaN(timeout)) {\n\t\t\t\ttimeout = THROTTLE_REFRESH_TIMEOUT;\n\t\t\t}\n\t\t\ttimerId = setTimeout(refresh,timeout);\n\t\t\t$tw.utils.extend(deferredChanges,changes);\n\t\t} else {\n\t\t\t$tw.utils.extend(deferredChanges,changes);\n\t\t\trefresh();\n\t\t}\n\t}));\n\t// Fix up the link between the root widget and the page container\n\t$tw.rootWidget.domNodes = [$tw.pageContainer];\n\t$tw.rootWidget.children = [$tw.pageWidgetNode];\n\t// Run any post-render startup actions\n\t$tw.rootWidget.invokeActionsByTag(\"$:/tags/StartupAction/PostRender\");\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "startup" - }, - "$:/core/modules/startup/rootwidget.js": { - "title": "$:/core/modules/startup/rootwidget.js", - "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"rootwidget\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.before = [\"story\"];\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(\"tm-modal\",function(event) {\n\t\t$tw.modal.display(event.param,{variables: event.paramObject, event: event});\n\t});\n\t$tw.rootWidget.addEventListener(\"tm-show-switcher\",function(event) {\n\t\t$tw.modal.display(\"$:/core/ui/SwitcherModal\",{variables: event.paramObject, event: event});\n\t});\t\n\t// Install the notification mechanism\n\t$tw.notifier = new $tw.utils.Notifier($tw.wiki);\n\t$tw.rootWidget.addEventListener(\"tm-notify\",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(\"tm-copy-to-clipboard\",function(event) {\n\t\t$tw.utils.copyToClipboard(event.param);\n\t});\n\t// Install the tm-focus-selector message\n\t$tw.rootWidget.addEventListener(\"tm-focus-selector\",function(event) {\n\t\tvar selector = event.param || \"\",\n\t\t\telement;\n\t\ttry {\n\t\t\telement = document.querySelector(selector);\n\t\t} catch(e) {\n\t\t\tconsole.log(\"Error in selector: \",selector)\n\t\t}\n\t\tif(element && element.focus) {\n\t\t\telement.focus(event.paramObject);\n\t\t}\n\t});\n\t// Install the scroller\n\t$tw.pageScroller = new $tw.utils.PageScroller();\n\t$tw.rootWidget.addEventListener(\"tm-scroll\",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(\"tm-full-screen\",function(event) {\n\t\t\tvar fullScreenDocument = event.event ? event.event.target.ownerDocument : document;\n\t\t\tif(event.param === \"enter\") {\n\t\t\t\tfullScreenDocument.documentElement[fullscreen._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT);\n\t\t\t} else if(event.param === \"exit\") {\n\t\t\t\tfullScreenDocument[fullscreen._exitFullscreen]();\n\t\t\t} else {\n\t\t\t\tif(fullScreenDocument[fullscreen._fullscreenElement]) {\n\t\t\t\t\tfullScreenDocument[fullscreen._exitFullscreen]();\n\t\t\t\t} else {\n\t\t\t\t\tfullScreenDocument.documentElement[fullscreen._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t}\n\t// If we're being viewed on a data: URI then give instructions for how to save\n\tif(document.location.protocol === \"data:\") {\n\t\t$tw.rootWidget.dispatchEvent({\n\t\t\ttype: \"tm-modal\",\n\t\t\tparam: \"$:/language/Modals/SaveInstructions\"\n\t\t});\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "startup" - }, - "$:/core/modules/startup.js": { - "title": "$:/core/modules/startup.js", - "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"startup\";\nexports.after = [\"load-modules\"];\nexports.synchronous = true;\n\n// Set to `true` to enable performance instrumentation\nvar PERFORMANCE_INSTRUMENTATION_CONFIG_TITLE = \"$:/config/Performance/Instrumentation\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\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(\"os\").platform()) {\n\t\t\tcase \"darwin\":\n\t\t\t\t$tw.platform.isMac = true;\n\t\t\t\tbreak;\n\t\t\tcase \"win32\":\n\t\t\t\t$tw.platform.isWindows = true;\n\t\t\t\tbreak;\n\t\t\tcase \"freebsd\":\n\t\t\t\t$tw.platform.isLinux = true;\n\t\t\t\tbreak;\n\t\t\tcase \"linux\":\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,\"no\") === \"yes\");\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: \"widget\",\n\t\tchildren: []\n\t},{\n\t\twiki: $tw.wiki,\n\t\tdocument: $tw.browser ? document : $tw.fakeDocument\n\t});\n\t// Execute any startup actions\n\t$tw.rootWidget.invokeActionsByTag(\"$:/tags/StartupAction\");\n\tif($tw.browser) {\n\t\t$tw.rootWidget.invokeActionsByTag(\"$:/tags/StartupAction/Browser\");\t\t\n\t}\n\tif($tw.node) {\n\t\t$tw.rootWidget.invokeActionsByTag(\"$:/tags/StartupAction/Node\");\t\t\n\t}\n\t// Kick off the language manager and switcher\n\t$tw.language = new $tw.Language();\n\t$tw.languageSwitcher = new $tw.PluginSwitcher({\n\t\twiki: $tw.wiki,\n\t\tpluginType: \"language\",\n\t\tcontrollerTitle: \"$:/language\",\n\t\tdefaultPlugins: [\n\t\t\t\"$:/languages/en-GB\"\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(\"dir\",pluginTiddler.getFieldString(\"text-direction\") || \"auto\");\n\t\t\t\t} else {\n\t\t\t\t\tdocument.documentElement.removeAttribute(\"dir\");\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: \"theme\",\n\t\tcontrollerTitle: \"$:/theme\",\n\t\tdefaultPlugins: [\n\t\t\t\"$:/themes/tiddlywiki/snowwhite\",\n\t\t\t\"$:/themes/tiddlywiki/vanilla\"\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: \"keydown\",\n\t\t\thandlerObject: $tw.keyboardManager,\n\t\t\thandlerMethod: \"handleKeydownEvent\"\n\t\t}]);\n\t}\n\t// Clear outstanding tiddler store change events to avoid an unnecessary refresh cycle at startup\n\t$tw.wiki.clearTiddlerEventQueue();\n\t// Find a working syncadaptor\n\t$tw.syncadaptor = undefined;\n\t$tw.modules.forEachModuleOfType(\"syncadaptor\",function(title,module) {\n\t\tif(!$tw.syncadaptor && module.adaptorClass) {\n\t\t\t$tw.syncadaptor = new module.adaptorClass({wiki: $tw.wiki});\n\t\t}\n\t});\n\t// Set up the syncer object if we've got a syncadaptor\n\tif($tw.syncadaptor) {\n\t\t$tw.syncer = new $tw.Syncer({wiki: $tw.wiki, syncadaptor: $tw.syncadaptor});\n\t}\n\t// Setup the saver handler\n\t$tw.saverHandler = new $tw.SaverHandler({\n\t\twiki: $tw.wiki,\n\t\tdirtyTracking: !$tw.syncadaptor,\n\t\tpreloadDirty: $tw.boot.preloadDirty || []\n\t});\n\t// Host-specific startup\n\tif($tw.browser) {\n\t\t// Install the popup manager\n\t\t$tw.popup = new $tw.utils.Popup();\n\t\t// Install the animator\n\t\t$tw.anim = new $tw.utils.Animator();\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "startup" - }, - "$:/core/modules/startup/story.js": { - "title": "$:/core/modules/startup/story.js", - "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"story\";\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\n// Default story and history lists\nvar DEFAULT_STORY_TITLE = \"$:/StoryList\";\nvar DEFAULT_HISTORY_TITLE = \"$:/HistoryList\";\n\n// Default tiddlers\nvar DEFAULT_TIDDLERS_TITLE = \"$:/DefaultTiddlers\";\n\n// Config\nvar CONFIG_UPDATE_ADDRESS_BAR = \"$:/config/Navigation/UpdateAddressBar\"; // Can be \"no\", \"permalink\", \"permaview\"\nvar CONFIG_UPDATE_HISTORY = \"$:/config/Navigation/UpdateHistory\"; // Can be \"yes\" or \"no\"\nvar CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD = \"$:/config/Navigation/Permalinkview/CopyToClipboard\"; // Can be \"yes\" (default) or \"no\"\nvar CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR = \"$:/config/Navigation/Permalinkview/UpdateAddressBar\"; // Can be \"yes\" (default) or \"no\"\n\n\n// Links to help, if there is no param\nvar HELP_OPEN_EXTERNAL_WINDOW = \"http://tiddlywiki.com/#WidgetMessage%3A%20tm-open-external-window\";\n\nexports.startup = function() {\n\t// Open startup tiddlers\n\topenStartupTiddlers({\n\t\tdisableHistory: $tw.boot.disableStartupNavigation\n\t});\n\tif($tw.browser) {\n\t\t// Set up location hash update\n\t\t$tw.wiki.addEventListener(\"change\",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,\"permaview\").trim(),\n\t\t\t\t\tupdateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,\"no\").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(\"hashchange\",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(\"tm-browser-refresh\",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(\"tm-open-external-window\",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(\"tm-print\",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(\"tm-home\",function(event) {\n\t\t\twindow.location.hash = \"\";\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(\"th-opening-default-tiddlers-list\",storyList);\n\t\t\t$tw.wiki.addTiddler({title: DEFAULT_STORY_TITLE, text: \"\", 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(\"tm-permalink\",function(event) {\n\t\t\tupdateLocationHash({\n\t\t\t\tupdateAddressBar: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR,\"yes\").trim() === \"yes\" ? \"permalink\" : \"none\",\n\t\t\t\tupdateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,\"no\").trim(),\n\t\t\t\ttargetTiddler: event.param || event.tiddlerTitle,\n\t\t\t\tcopyToClipboard: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD,\"yes\").trim() === \"yes\" ? \"permalink\" : \"none\"\n\t\t\t});\n\t\t});\n\t\t// Listen for the tm-permaview message\n\t\t$tw.rootWidget.addEventListener(\"tm-permaview\",function(event) {\n\t\t\tupdateLocationHash({\n\t\t\t\tupdateAddressBar: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR,\"yes\").trim() === \"yes\" ? \"permaview\" : \"none\",\n\t\t\t\tupdateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,\"no\").trim(),\n\t\t\t\ttargetTiddler: event.param || event.tiddlerTitle,\n\t\t\t\tcopyToClipboard: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD,\"yes\").trim() === \"yes\" ? \"permaview\" : \"none\"\n\t\t\t});\t\t\t\t\n\t\t});\n\t}\n};\n\n/*\nProcess the location hash to open the specified tiddlers. Options:\ndisableHistory: if true $:/History is NOT updated\ndefaultToCurrentStory: If true, the current story is retained as the default, instead of opening the default tiddlers\n*/\nfunction openStartupTiddlers(options) {\n\toptions = options || {};\n\t// Work out the target tiddler and the story filter. \"null\" means \"unspecified\"\n\tvar target = null,\n\t\tstoryFilter = null;\n\tif($tw.locationHash.length > 1) {\n\t\tvar hash = $tw.locationHash.substr(1),\n\t\t\tsplit = hash.indexOf(\":\");\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 && target !== \"\") {\n\t\t\t\tstoryFilter = \"\";\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(\"th-opening-default-tiddlers-list\",storyList);\n\t// If the target tiddler isn't included then splice it in at the top\n\tif(target && 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: \"\", list: storyList},$tw.wiki.getModificationFields());\n\t// Update history\n\tvar story = new $tw.Story({\n\t\twiki: $tw.wiki,\n\t\tstoryTitle: DEFAULT_STORY_TITLE,\n\t\thistoryTitle: DEFAULT_HISTORY_TITLE\n\t});\n\tif(!options.disableHistory) {\n\t\t// If a target tiddler was specified add it to the history stack\n\t\tif(target && target !== \"\") {\n\t\t\t// The target tiddler doesn't need double square brackets, but we'll silently remove them if they're present\n\t\t\tif(target.indexOf(\"[[\") === 0 && target.substr(-2) === \"]]\") {\n\t\t\t\ttarget = target.substr(2,target.length - 4);\n\t\t\t}\n\t\t\tstory.addToHistory(target);\n\t\t} else if(storyList.length > 0) {\n\t\t\tstory.addToHistory(storyList[0]);\n\t\t}\t\t\n\t}\n}\n\n/*\noptions: See below\noptions.updateAddressBar: \"permalink\", \"permaview\" or \"no\" (defaults to \"permaview\")\noptions.updateHistory: \"yes\" or \"no\" (defaults to \"no\")\noptions.copyToClipboard: \"permalink\", \"permaview\" or \"no\" (defaults to \"no\")\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 = \"\";\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 > 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 = \"\";\n\t\t}\n\t}\n\t// Assemble the location hash\n\tswitch(options.updateAddressBar) {\n\t\tcase \"permalink\":\n\t\t\t$tw.locationHash = \"#\" + encodeURIComponent(targetTiddler);\n\t\t\tbreak;\n\t\tcase \"permaview\":\n\t\t\t$tw.locationHash = \"#\" + encodeURIComponent(targetTiddler) + \":\" + 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 \"permalink\":\n\t\t\t$tw.utils.copyToClipboard($tw.utils.getLocationPath() + \"#\" + encodeURIComponent(targetTiddler));\n\t\t\tbreak;\n\t\tcase \"permaview\":\n\t\t\t$tw.utils.copyToClipboard($tw.utils.getLocationPath() + \"#\" + encodeURIComponent(targetTiddler) + \":\" + 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 === \"yes\") {\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(\"#\")[0] + $tw.locationHash);\n\t\t}\n\t}\n}\n\n})();\n", - "type": "application/javascript", - "module-type": "startup" - }, - "$:/core/modules/startup/windows.js": { - "title": "$:/core/modules/startup/windows.js", - "text": "/*\\\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\"use strict\";\n\n// Export name and synchronous status\nexports.name = \"windows\";\nexports.platforms = [\"browser\"];\nexports.after = [\"startup\"];\nexports.synchronous = true;\n\n// Global to keep track of open windows (hashmap by title)\n$tw.windows = {};\n\nexports.startup = function() {\n\t// Handle open window message\n\t$tw.rootWidget.addEventListener(\"tm-open-window\",function(event) {\n\t\t// Get the parameters\n\t\tvar refreshHandler,\n\t\t\ttitle = event.param || event.tiddlerTitle,\n\t\t\tparamObject = event.paramObject || {},\n\t\t\twindowTitle = paramObject.windowTitle || title,\n\t\t\ttemplate = paramObject.template || \"$:/core/templates/single.tiddler.window\",\n\t\t\twidth = paramObject.width || \"700\",\n\t\t\theight = paramObject.height || \"600\",\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(\"\",\"external-\" + title,\"scrollbars,width=\" + width + \",height=\" + height),\n\t\t\tsrcDocument = srcWindow.document;\n\t\t}\n\t\tcatch(e) {\n\t\t\treturn;\n\t\t}\n\t\t$tw.windows[title] = srcWindow;\n\t\t// Check for reopening the same window\n\t\tif(srcWindow.haveInitialisedWindow) {\n\t\t\treturn;\n\t\t}\n\t\t// Initialise the document\n\t\tsrcDocument.write(\"<html><head></head><body class='tc-body tc-single-tiddler-window'></body></html>\");\n\t\tsrcDocument.close();\n\t\tsrcDocument.title = windowTitle;\n\t\tsrcWindow.addEventListener(\"beforeunload\",function(event) {\n\t\t\tdelete $tw.windows[title];\n\t\t\t$tw.wiki.removeEventListener(\"change\",refreshHandler);\n\t\t},false);\n\t\t// Set up the styles\n\t\tvar styleWidgetNode = $tw.wiki.makeTranscludeWidget(\"$:/core/ui/PageStylesheet\",{\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(\"style\");\n\t\tstyleWidgetNode.render(styleContainer,null);\n\t\tvar styleElement = srcDocument.createElement(\"style\");\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(\"change\",refreshHandler);\n\t\t// Listen for keyboard shortcuts\n\t\t$tw.utils.addEventListeners(srcDocument,[{\n\t\t\tname: \"keydown\",\n\t\t\thandlerObject: $tw.keyboardManager,\n\t\t\thandlerMethod: \"handleKeydownEvent\"\n\t\t}]);\n\t\tsrcWindow.document.documentElement.addEventListener(\"click\",$tw.popup,true);\n\t\tsrcWindow.haveInitialisedWindow = true;\n\t});\n\t// Close open windows when unloading main window\n\t$tw.addUnloadTask(function() {\n\t\t$tw.utils.each($tw.windows,function(win) {\n\t\t\twin.close();\n\t\t});\n\t});\n\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "startup" - }, - "$:/core/modules/story.js": { - "title": "$:/core/modules/story.js", - "text": "/*\\\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\"use strict\";\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 || \"$:/StoryList\";\n\tthis.historyTitle = options.historyTitle || \"$:/HistoryList\";\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 >= 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 >= 0) {\n\t\t// The tiddler is added from inside the river\n\t\t// Determine where to insert the tiddler; Fallback is \"below\"\n\t\tswitch(options.openLinkFromInsideRiver) {\n\t\t\tcase \"top\":\n\t\t\t\tslot = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"bottom\":\n\t\t\t\tslot = storyList.length;\n\t\t\t\tbreak;\n\t\t\tcase \"above\":\n\t\t\t\tslot = fromIndex;\n\t\t\t\tbreak;\n\t\t\tcase \"below\": // 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 \"top\"\n\t\tif(options.openLinkFromOutsideRiver === \"bottom\") {\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,{\"current-tiddler\": 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", - "type": "application/javascript", - "module-type": "global" - }, - "$:/core/modules/storyviews/classic.js": { - "title": "$:/core/modules/storyviews/classic.js", - "text": "/*\\\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\"use strict\";\n\nvar easing = \"cubic-bezier(0.645, 0.045, 0.355, 1)\"; // From http://easings.net/#easeInOutCubic\n\nvar ClassicStoryView = function(listWidget) {\n\tthis.listWidget = listWidget;\n};\n\nClassicStoryView.prototype.navigateTo = function(historyInfo) {\n\tvar duration = $tw.utils.getAnimationDuration()\n\tvar listElementIndex = this.listWidget.findListItem(0,historyInfo.title);\n\tif(listElementIndex === undefined) {\n\t\treturn;\n\t}\n\tvar listItemWidget = this.listWidget.children[listElementIndex],\n\t\ttargetElement = listItemWidget.findFirstDomNode();\n\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\tif(!(targetElement instanceof Element)) {\n\t\treturn;\n\t}\n\tif(duration) {\n\t\t// Scroll the node into view\n\t\tthis.listWidget.dispatchEvent({type: \"tm-scroll\", target: targetElement});\t\n\t} else {\n\t\ttargetElement.scrollIntoView();\n\t}\n};\n\nClassicStoryView.prototype.insert = function(widget) {\n\tvar duration = $tw.utils.getAnimationDuration();\n\tif(duration) {\n\t\tvar targetElement = widget.findFirstDomNode();\n\t\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\t\tif(!(targetElement instanceof Element)) {\n\t\t\treturn;\n\t\t}\n\t\t// Get the current height of the tiddler\n\t\tvar computedStyle = window.getComputedStyle(targetElement),\n\t\t\tcurrMarginBottom = parseInt(computedStyle.marginBottom,10),\n\t\t\tcurrMarginTop = parseInt(computedStyle.marginTop,10),\n\t\t\tcurrHeight = targetElement.offsetHeight + currMarginTop;\n\t\t// Reset the margin once the transition is over\n\t\tsetTimeout(function() {\n\t\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t\t{transition: \"none\"},\n\t\t\t\t{marginBottom: \"\"}\n\t\t\t]);\n\t\t},duration);\n\t\t// Set up the initial position of the element\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: \"none\"},\n\t\t\t{marginBottom: (-currHeight) + \"px\"},\n\t\t\t{opacity: \"0.0\"}\n\t\t]);\n\t\t$tw.utils.forceLayout(targetElement);\n\t\t// Transition to the final position\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: \"opacity \" + duration + \"ms \" + easing + \", \" +\n\t\t\t\t\t\t\"margin-bottom \" + duration + \"ms \" + easing},\n\t\t\t{marginBottom: currMarginBottom + \"px\"},\n\t\t\t{opacity: \"1.0\"}\n\t]);\n\t}\n};\n\nClassicStoryView.prototype.remove = function(widget) {\n\tvar duration = $tw.utils.getAnimationDuration();\n\tif(duration) {\n\t\tvar targetElement = widget.findFirstDomNode(),\n\t\t\tremoveElement = function() {\n\t\t\t\twidget.removeChildDomNodes();\n\t\t\t};\n\t\t// Abandon if the list entry isn't a DOM element (it might be a text node)\n\t\tif(!(targetElement instanceof Element)) {\n\t\t\tremoveElement();\n\t\t\treturn;\n\t\t}\n\t\t// Get the current height of the tiddler\n\t\tvar currWidth = targetElement.offsetWidth,\n\t\t\tcomputedStyle = window.getComputedStyle(targetElement),\n\t\t\tcurrMarginBottom = parseInt(computedStyle.marginBottom,10),\n\t\t\tcurrMarginTop = parseInt(computedStyle.marginTop,10),\n\t\t\tcurrHeight = targetElement.offsetHeight + currMarginTop;\n\t\t// Remove the dom nodes of the widget at the end of the transition\n\t\tsetTimeout(removeElement,duration);\n\t\t// Animate the closure\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: \"none\"},\n\t\t\t{transform: \"translateX(0px)\"},\n\t\t\t{marginBottom: currMarginBottom + \"px\"},\n\t\t\t{opacity: \"1.0\"}\n\t\t]);\n\t\t$tw.utils.forceLayout(targetElement);\n\t\t$tw.utils.setStyle(targetElement,[\n\t\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms \" + easing + \", \" +\n\t\t\t\t\t\t\"opacity \" + duration + \"ms \" + easing + \", \" +\n\t\t\t\t\t\t\"margin-bottom \" + duration + \"ms \" + easing},\n\t\t\t{transform: \"translateX(-\" + currWidth + \"px)\"},\n\t\t\t{marginBottom: (-currHeight) + \"px\"},\n\t\t\t{opacity: \"0.0\"}\n\t\t]);\n\t} else {\n\t\twidget.removeChildDomNodes();\n\t}\n};\n\nexports.classic = ClassicStoryView;\n\n})();", - "type": "application/javascript", - "module-type": "storyview" - }, - "$:/core/modules/storyviews/pop.js": { - "title": "$:/core/modules/storyviews/pop.js", - "text": "/*\\\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\"use strict\";\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: \"tm-scroll\", 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: \"none\"},\n\t\t\t{transform: \"none\"}\n\t\t]);\n\t\t$tw.utils.setStyle(widget.document.body,[\n\t\t\t{\"overflow-x\": \"\"}\n\t\t]);\n\t},duration);\n\t// Prevent the page from overscrolling due to the zoom factor\n\t$tw.utils.setStyle(widget.document.body,[\n\t\t{\"overflow-x\": \"hidden\"}\n\t]);\n\t// Set up the initial position of the element\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transition: \"none\"},\n\t\t{transform: \"scale(2)\"},\n\t\t{opacity: \"0.0\"}\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(\"transform\") + \" \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"opacity \" + duration + \"ms ease-in-out\"},\n\t\t{transform: \"scale(1)\"},\n\t\t{opacity: \"1.0\"}\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 && 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: \"none\"},\n\t\t{transform: \"scale(1)\"},\n\t\t{opacity: \"1.0\"}\n\t]);\n\t$tw.utils.forceLayout(targetElement);\n\t$tw.utils.setStyle(targetElement,[\n\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"opacity \" + duration + \"ms ease-in-out\"},\n\t\t{transform: \"scale(0.1)\"},\n\t\t{opacity: \"0.0\"}\n\t]);\n};\n\nexports.pop = PopStoryView;\n\n})();\n", - "type": "application/javascript", - "module-type": "storyview" - }, - "$:/core/modules/storyviews/zoomin.js": { - "title": "$:/core/modules/storyviews/zoomin.js", - "text": "/*\\\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\"use strict\";\n\nvar easing = \"cubic-bezier(0.645, 0.045, 0.355, 1)\"; // 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 > 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 && targetTiddler !== itemWidget.parseTreeNode.itemTitle) || (!targetTiddler && index)) {\n\t\t\tdomNode.style.display = \"none\";\n\t\t} else {\n\t\t\tself.currentTiddlerDomNode = domNode;\n\t\t}\n\t\t$tw.utils.addClass(domNode,\"tc-storyview-zoomin-tiddler\");\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,\"tc-storyview-zoomin-tiddler\");\n\t$tw.utils.setStyle(targetElement,[\n\t\t{display: \"block\"},\n\t\t{transformOrigin: \"0 0\"},\n\t\t{transform: \"translateX(0px) translateY(0px) scale(1)\"},\n\t\t{transition: \"none\"},\n\t\t{opacity: \"0.0\"}\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: \"translateX(\" + x + \"px) translateY(\" + y + \"px) scale(\" + scale + \")\"}\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(\"transform\") + \" \" + duration + \"ms \" + easing + \", opacity \" + duration + \"ms \" + easing},\n\t\t{opacity: \"1.0\"},\n\t\t{transform: \"translateX(0px) translateY(0px) scale(1)\"},\n\t\t{zIndex: \"500\"},\n\t]);\n\t// Transform the previous tiddler out of the way and then hide it\n\tif(prevCurrentTiddler && 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(\"transform\") + \" \" + duration + \"ms \" + easing + \", opacity \" + duration + \"ms \" + easing},\n\t\t\t{opacity: \"0.0\"},\n\t\t\t{transformOrigin: \"0 0\"},\n\t\t\t{transform: \"translateX(\" + x + \"px) translateY(\" + y + \"px) scale(\" + scale + \")\"},\n\t\t\t{zIndex: \"0\"}\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 = \"none\";\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 \"tc-title\"\n*/\nfunction findTitleDomNode(widget,targetClass) {\n\ttargetClass = targetClass || \"tc-title\";\n\tvar domNode = widget.findFirstDomNode();\n\tif(domNode && domNode.querySelector) {\n\t\treturn domNode.querySelector(\".\" + 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,\"tc-storyview-zoomin-tiddler\");\n\t$tw.utils.setStyle(targetElement,[\n\t\t{display: \"none\"}\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 != \"block\" ) {\n\t\tremoveElement();\n\t\treturn;\n\t}\n\t// Set up the tiddler that is being closed\n\t$tw.utils.addClass(targetElement,\"tc-storyview-zoomin-tiddler\");\n\t$tw.utils.setStyle(targetElement,[\n\t\t{display: \"block\"},\n\t\t{transformOrigin: \"50% 50%\"},\n\t\t{transform: \"translateX(0px) translateY(0px) scale(1)\"},\n\t\t{transition: \"none\"},\n\t\t{zIndex: \"0\"}\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 && toWidget.findFirstDomNode();\n\t// Set up the tiddler we're moving back in\n\tif(toWidgetDomNode) {\n\t\t$tw.utils.addClass(toWidgetDomNode,\"tc-storyview-zoomin-tiddler\");\n\t\t$tw.utils.setStyle(toWidgetDomNode,[\n\t\t\t{display: \"block\"},\n\t\t\t{transformOrigin: \"50% 50%\"},\n\t\t\t{transform: \"translateX(0px) translateY(0px) scale(10)\"},\n\t\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms \" + easing + \", opacity \" + duration + \"ms \" + easing},\n\t\t\t{opacity: \"0\"},\n\t\t\t{zIndex: \"500\"}\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: \"50% 50%\"},\n\t\t{transform: \"translateX(0px) translateY(0px) scale(0.1)\"},\n\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms \" + easing + \", opacity \" + duration + \"ms \" + easing},\n\t\t{opacity: \"0\"},\n\t\t{zIndex: \"0\"}\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: \"translateX(0px) translateY(0px) scale(1)\"},\n\t\t\t{opacity: \"1\"}\n\t\t]);\n\t}\n\treturn true; // Indicate that we'll delete the DOM node\n};\n\nexports.zoomin = ZoominListView;\n\n})();\n", - "type": "application/javascript", - "module-type": "storyview" - }, - "$:/core/modules/syncer.js": { - "title": "$:/core/modules/syncer.js", - "text": "/*\\\ntitle: $:/core/modules/syncer.js\ntype: application/javascript\nmodule-type: global\n\nThe syncer tracks changes to the store and synchronises them to a remote data store represented as a \"sync adaptor\"\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nDefaults\n*/\nSyncer.prototype.titleIsLoggedIn = \"$:/status/IsLoggedIn\";\nSyncer.prototype.titleIsAnonymous = \"$:/status/IsAnonymous\";\nSyncer.prototype.titleIsReadOnly = \"$:/status/IsReadOnly\";\nSyncer.prototype.titleUserName = \"$:/status/UserName\";\nSyncer.prototype.titleSyncFilter = \"$:/config/SyncFilter\";\nSyncer.prototype.titleSyncPollingInterval = \"$:/config/SyncPollingInterval\";\nSyncer.prototype.titleSyncDisableLazyLoading = \"$:/config/SyncDisableLazyLoading\";\nSyncer.prototype.titleSavedNotification = \"$:/language/Notifications/Save/Done\";\nSyncer.prototype.titleSyncThrottleInterval = \"$:/config/SyncThrottleInterval\";\nSyncer.prototype.taskTimerInterval = 1 * 1000; // Interval for sync timer\nSyncer.prototype.throttleInterval = 1 * 1000; // Defer saving tiddlers if they've changed in the last 1s...\nSyncer.prototype.errorRetryInterval = 5 * 1000; // Interval to retry after an error\nSyncer.prototype.fallbackInterval = 10 * 1000; // Unless the task is older than 10s\nSyncer.prototype.pollTimerInterval = 60 * 1000; // Interval for polling for changes from the adaptor\n\n/*\nInstantiate the syncer with the following options:\nsyncadaptor: reference to syncadaptor to be used\nwiki: wiki to be synced\n*/\nfunction Syncer(options) {\n\tvar self = this;\n\tthis.wiki = options.wiki;\n\t// Save parameters\n\tthis.syncadaptor = options.syncadaptor;\n\tthis.disableUI = !!options.disableUI;\n\tthis.titleIsLoggedIn = options.titleIsLoggedIn || this.titleIsLoggedIn;\n\tthis.titleUserName = options.titleUserName || this.titleUserName;\n\tthis.titleSyncFilter = options.titleSyncFilter || this.titleSyncFilter;\n\tthis.titleSavedNotification = options.titleSavedNotification || this.titleSavedNotification;\n\tthis.taskTimerInterval = options.taskTimerInterval || this.taskTimerInterval;\n\tthis.throttleInterval = options.throttleInterval || parseInt(this.wiki.getTiddlerText(this.titleSyncThrottleInterval,\"\"),10) || this.throttleInterval;\n\tthis.errorRetryInterval = options.errorRetryInterval || this.errorRetryInterval;\n\tthis.fallbackInterval = options.fallbackInterval || this.fallbackInterval;\n\tthis.pollTimerInterval = options.pollTimerInterval || parseInt(this.wiki.getTiddlerText(this.titleSyncPollingInterval,\"\"),10) || this.pollTimerInterval;\n\tthis.logging = \"logging\" in options ? options.logging : true;\n\t// Make a logger\n\tthis.logger = new $tw.utils.Logger(\"syncer\" + ($tw.browser ? \"-browser\" : \"\") + ($tw.node ? \"-server\" : \"\") + (this.syncadaptor.name ? (\"-\" + this.syncadaptor.name) : \"\"),{\n\t\tcolour: \"cyan\",\n\t\tenable: this.logging,\n\t\tsaveHistory: true\n\t});\n\t// Make another logger for connection errors\n\tthis.loggerConnection = new $tw.utils.Logger(\"syncer\" + ($tw.browser ? \"-browser\" : \"\") + ($tw.node ? \"-server\" : \"\") + (this.syncadaptor.name ? (\"-\" + this.syncadaptor.name) : \"\") + \"-connection\",{\n\t\tcolour: \"cyan\",\n\t\tenable: this.logging\n\t});\n\t// Ask the syncadaptor to use the main logger\n\tif(this.syncadaptor.setLoggerSaveBuffer) {\n\t\tthis.syncadaptor.setLoggerSaveBuffer(this.logger);\n\t}\n\t// Compile the dirty tiddler filter\n\tthis.filterFn = this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter));\n\t// Record information for known tiddlers\n\tthis.readTiddlerInfo();\n\tthis.titlesToBeLoaded = {}; // Hashmap of titles of tiddlers that need loading from the server\n\tthis.titlesHaveBeenLazyLoaded = {}; // Hashmap of titles of tiddlers that have already been lazily loaded from the server\n\t// Timers\n\tthis.taskTimerId = null; // Timer for task dispatch\n\tthis.pollTimerId = null; // Timer for polling server\n\t// Number of outstanding requests\n\tthis.numTasksInProgress = 0;\n\t// Listen out for changes to tiddlers\n\tthis.wiki.addEventListener(\"change\",function(changes) {\n\t\t// Filter the changes to just include ones that are being synced\n\t\tvar filteredChanges = self.getSyncedTiddlers(function(callback) {\n\t\t\t$tw.utils.each(changes,function(change,title) {\n\t\t\t\tvar tiddler = self.wiki.tiddlerExists(title) && self.wiki.getTiddler(title);\n\t\t\t\tcallback(tiddler,title);\n\t\t\t});\n\t\t});\n\t\tif(filteredChanges.length > 0) {\n\t\t\tself.processTaskQueue();\n\t\t} else {\n\t\t\t// Look for deletions of tiddlers we're already syncing\t\n\t\t\tvar outstandingDeletion = false\n\t\t\t$tw.utils.each(changes,function(change,title,object) {\n\t\t\t\tif(change.deleted && $tw.utils.hop(self.tiddlerInfo,title)) {\n\t\t\t\t\toutstandingDeletion = true;\n\t\t\t\t}\n\t\t\t});\n\t\t\tif(outstandingDeletion) {\n\t\t\t\tself.processTaskQueue();\n\t\t\t}\n\t\t}\n\t});\n\t// Browser event handlers\n\tif($tw.browser && !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(\"UnsavedChangesWarning\");\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(\"tm-login\",function(event) {\n\t\t\tvar username = event && event.paramObject && event.paramObject.username,\n\t\t\t\tpassword = event && event.paramObject && event.paramObject.password;\n\t\t\tif(username && password) {\n\t\t\t\t// Login with username and password\n\t\t\t\tself.login(username,password,function() {});\n\t\t\t} else {\n\t\t\t\t// No username and password, so we display a prompt\n\t\t\t\tself.handleLoginEvent();\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t$tw.rootWidget.addEventListener(\"tm-logout\",function() {\n\t\t\tself.handleLogoutEvent();\n\t\t});\n\t\t$tw.rootWidget.addEventListener(\"tm-server-refresh\",function() {\n\t\t\tself.handleRefreshEvent();\n\t\t});\n\t\t$tw.rootWidget.addEventListener(\"tm-copy-syncer-logs-to-clipboard\",function() {\n\t\t\t$tw.utils.copyToClipboard($tw.utils.getSystemInfo() + \"\\n\\nLog:\\n\" + self.logger.getBuffer());\n\t\t});\n\t}\n\t// Listen out for lazyLoad events\n\tif(!this.disableUI && this.wiki.getTiddlerText(this.titleSyncDisableLazyLoading) !== \"yes\") {\n\t\tthis.wiki.addEventListener(\"lazyLoad\",function(title) {\n\t\t\tself.handleLazyLoadEvent(title);\n\t\t});\t\t\n\t}\n\t// Get the login status\n\tthis.getStatus(function(err,isLoggedIn) {\n\t\t// Do a sync from the server\n\t\tself.syncFromServer();\n\t});\n}\n\n/*\nShow a generic network error alert\n*/\nSyncer.prototype.displayError = function(msg,err) {\n\tif(err === ($tw.language.getString(\"Error/XMLHttpRequest\") + \": 0\")) {\n\t\tthis.loggerConnection.alert($tw.language.getString(\"Error/NetworkErrorAlert\"));\n\t\tthis.logger.log(msg + \":\",err);\n\t} else {\n\t\tthis.logger.alert(msg + \":\",err);\n\t}\n};\n\n/*\nReturn an array of the tiddler titles that are subjected to syncing\n*/\nSyncer.prototype.getSyncedTiddlers = function(source) {\n\treturn this.filterFn.call(this.wiki,source);\n};\n\n/*\nReturn an array of the tiddler titles that are subjected to syncing\n*/\nSyncer.prototype.getTiddlerRevision = function(title) {\n\tif(this.syncadaptor && this.syncadaptor.getTiddlerRevision) {\n\t\treturn this.syncadaptor.getTiddlerRevision(title);\n\t} else {\n\t\treturn this.wiki.getTiddler(title).fields.revision;\t\n\t} \n};\n\n/*\nRead (or re-read) the latest tiddler info from the store\n*/\nSyncer.prototype.readTiddlerInfo = function() {\n\t// Hashmap by title of {revision:,changeCount:,adaptorInfo:}\n\t// \"revision\" is the revision of the tiddler last seen on the server, and \"changecount\" is the corresponding local changecount\n\tthis.tiddlerInfo = {};\n\t// Record information for known tiddlers\n\tvar self = this,\n\t\ttiddlers = this.getSyncedTiddlers();\n\t$tw.utils.each(tiddlers,function(title) {\n\t\tvar tiddler = self.wiki.getTiddler(title);\n\t\tif(tiddler) {\n\t\t\tself.tiddlerInfo[title] = {\n\t\t\t\trevision: self.getTiddlerRevision(title),\n\t\t\t\tadaptorInfo: self.syncadaptor && self.syncadaptor.getTiddlerInfo(tiddler),\n\t\t\t\tchangeCount: self.wiki.getChangeCount(title)\n\t\t\t};\n\t\t}\n\t});\n};\n\n/*\nChecks whether the wiki is dirty (ie the window shouldn't be closed)\n*/\nSyncer.prototype.isDirty = function() {\n\tthis.logger.log(\"Checking dirty status\");\n\t// Check tiddlers that are in the store and included in the filter function\n\tvar titles = this.getSyncedTiddlers();\n\tfor(var index=0; index<titles.length; index++) {\n\t\tvar title = titles[index],\n\t\t\ttiddlerInfo = this.tiddlerInfo[title];\n\t\tif(this.wiki.tiddlerExists(title)) {\n\t\t\tif(tiddlerInfo) {\n\t\t\t\t// If the tiddler is known on the server and has been modified locally then it needs to be saved to the server\n\t\t\t\tif(this.wiki.getChangeCount(title) > tiddlerInfo.changeCount) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// If the tiddler isn't known on the server then it needs to be saved to the server\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\t// Check tiddlers that are known from the server but not currently in the store\n\ttitles = Object.keys(this.tiddlerInfo);\n\tfor(index=0; index<titles.length; index++) {\n\t\tif(!this.wiki.tiddlerExists(titles[index])) {\n\t\t\t// There must be a pending delete\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n\n/*\nUpdate the document body with the class \"tc-dirty\" if the wiki has unsaved/unsynced changes\n*/\nSyncer.prototype.updateDirtyStatus = function() {\n\tif($tw.browser && !this.disableUI) {\n\t\tvar dirty = this.isDirty();\n\t\t$tw.utils.toggleClass(document.body,\"tc-dirty\",dirty);\n\t\tif(!dirty) {\n\t\t\tthis.loggerConnection.clearAlerts();\n\t\t}\n\t}\n};\n\n/*\nSave an incoming tiddler in the store, and updates the associated tiddlerInfo\n*/\nSyncer.prototype.storeTiddler = function(tiddlerFields) {\n\t// Save the tiddler\n\tvar tiddler = new $tw.Tiddler(tiddlerFields);\n\tthis.wiki.addTiddler(tiddler);\n\t// Save the tiddler revision and changeCount details\n\tthis.tiddlerInfo[tiddlerFields.title] = {\n\t\trevision: this.getTiddlerRevision(tiddlerFields.title),\n\t\tadaptorInfo: this.syncadaptor.getTiddlerInfo(tiddler),\n\t\tchangeCount: this.wiki.getChangeCount(tiddlerFields.title)\n\t};\n};\n\nSyncer.prototype.getStatus = function(callback) {\n\tvar self = this;\n\t// Check if the adaptor supports getStatus()\n\tif(this.syncadaptor && this.syncadaptor.getStatus) {\n\t\t// Mark us as not logged in\n\t\tthis.wiki.addTiddler({title: this.titleIsLoggedIn,text: \"no\"});\n\t\t// Get login status\n\t\tthis.syncadaptor.getStatus(function(err,isLoggedIn,username,isReadOnly,isAnonymous) {\n\t\t\tif(err) {\n\t\t\t\tself.logger.alert(err);\n\t\t\t} else {\n\t\t\t\t// Set the various status tiddlers\n\t\t\t\tself.wiki.addTiddler({title: self.titleIsReadOnly,text: isReadOnly ? \"yes\" : \"no\"});\n\t\t\t\tself.wiki.addTiddler({title: self.titleIsAnonymous,text: isAnonymous ? \"yes\" : \"no\"});\n\t\t\t\tself.wiki.addTiddler({title: self.titleIsLoggedIn,text: isLoggedIn ? \"yes\" : \"no\"});\n\t\t\t\tif(isLoggedIn) {\n\t\t\t\t\tself.wiki.addTiddler({title: self.titleUserName,text: username || \"\"});\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Invoke the callback\n\t\t\tif(callback) {\n\t\t\t\tcallback(err,isLoggedIn,username);\n\t\t\t}\n\t\t});\n\t} else {\n\t\tcallback(null,true,\"UNAUTHENTICATED\");\n\t}\n};\n\n/*\nSynchronise from the server by reading the skinny tiddler list and queuing up loads for any tiddlers that we don't already have up to date\n*/\nSyncer.prototype.syncFromServer = function() {\n\tvar self = this,\n\t\tcancelNextSync = function() {\n\t\t\tif(self.pollTimerId) {\n\t\t\t\tclearTimeout(self.pollTimerId);\n\t\t\t\tself.pollTimerId = null;\n\t\t\t}\n\t\t},\n\t\ttriggerNextSync = function() {\n\t\t\tself.pollTimerId = setTimeout(function() {\n\t\t\t\tself.pollTimerId = null;\n\t\t\t\tself.syncFromServer.call(self);\n\t\t\t},self.pollTimerInterval);\n\t\t},\n\t\tsyncSystemFromServer = (self.wiki.getTiddlerText(\"$:/config/SyncSystemTiddlersFromServer\") === \"yes\" ? true : false);\n\tif(this.syncadaptor && this.syncadaptor.getUpdatedTiddlers) {\n\t\tthis.logger.log(\"Retrieving updated tiddler list\");\n\t\tcancelNextSync();\n\t\tthis.syncadaptor.getUpdatedTiddlers(self,function(err,updates) {\n\t\t\ttriggerNextSync();\n\t\t\tif(err) {\n\t\t\t\tself.displayError($tw.language.getString(\"Error/RetrievingSkinny\"),err);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(updates) {\n\t\t\t\t$tw.utils.each(updates.modifications,function(title) {\n\t\t\t\t\tself.titlesToBeLoaded[title] = true;\n\t\t\t\t});\n\t\t\t\t$tw.utils.each(updates.deletions,function(title) {\n\t\t\t\t\tif(syncSystemFromServer || !self.wiki.isSystemTiddler(title)) {\n\t\t\t\t\t\tdelete self.tiddlerInfo[title];\n\t\t\t\t\t\tself.logger.log(\"Deleting tiddler missing from server:\",title);\n\t\t\t\t\t\tself.wiki.deleteTiddler(title);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tif(updates.modifications.length > 0 || updates.deletions.length > 0) {\n\t\t\t\t\tself.processTaskQueue();\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t} else if(this.syncadaptor && this.syncadaptor.getSkinnyTiddlers) {\n\t\tthis.logger.log(\"Retrieving skinny tiddler list\");\n\t\tcancelNextSync();\n\t\tthis.syncadaptor.getSkinnyTiddlers(function(err,tiddlers) {\n\t\t\ttriggerNextSync();\n\t\t\t// Check for errors\n\t\t\tif(err) {\n\t\t\t\tself.displayError($tw.language.getString(\"Error/RetrievingSkinny\"),err);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Keep track of which tiddlers we already know about have been reported this time\n\t\t\tvar previousTitles = Object.keys(self.tiddlerInfo);\n\t\t\t// Process each incoming tiddler\n\t\t\tfor(var t=0; t<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 + \"\",\n\t\t\t\t\ttiddler = self.wiki.tiddlerExists(tiddlerFields.title) && self.wiki.getTiddler(tiddlerFields.title),\n\t\t\t\t\ttiddlerInfo = self.tiddlerInfo[tiddlerFields.title],\n\t\t\t\t\tcurrRevision = tiddlerInfo ? tiddlerInfo.revision : null,\n\t\t\t\t\tindexInPreviousTitles = previousTitles.indexOf(tiddlerFields.title);\n\t\t\t\tif(indexInPreviousTitles !== -1) {\n\t\t\t\t\tpreviousTitles.splice(indexInPreviousTitles,1);\n\t\t\t\t}\n\t\t\t\t// Ignore the incoming tiddler if it's the same as the revision we've already got\n\t\t\t\tif(currRevision !== incomingRevision) {\n\t\t\t\t\t// Only load the skinny version if we don't already have a fat version of the tiddler\n\t\t\t\t\tif(!tiddler || tiddler.fields.text === undefined) {\n\t\t\t\t\t\tself.storeTiddler(tiddlerFields);\n\t\t\t\t\t}\n\t\t\t\t\t// Do a full load of this tiddler\n\t\t\t\t\tself.titlesToBeLoaded[tiddlerFields.title] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Delete any tiddlers that were previously reported but missing this time\n\t\t\t$tw.utils.each(previousTitles,function(title) {\n\t\t\t\tif(syncSystemFromServer || !self.wiki.isSystemTiddler(title)) {\n\t\t\t\t\tdelete self.tiddlerInfo[title];\n\t\t\t\t\tself.logger.log(\"Deleting tiddler missing from server:\",title);\n\t\t\t\t\tself.wiki.deleteTiddler(title);\n\t\t\t\t}\n\t\t\t});\n\t\t\tself.processTaskQueue();\n\t\t});\n\t}\n};\n\n/*\nForce load a tiddler from the server\n*/\nSyncer.prototype.enqueueLoadTiddler = function(title) {\n\tthis.titlesToBeLoaded[title] = true;\n\tthis.processTaskQueue();\n};\n\n/*\nLazily load a skinny tiddler if we can\n*/\nSyncer.prototype.handleLazyLoadEvent = function(title) {\n\t// Ignore if the syncadaptor doesn't handle it\n\tif(!this.syncadaptor.supportsLazyLoading) {\n\t\treturn;\n\t}\n\t// Don't lazy load the same tiddler twice\n\tif(!this.titlesHaveBeenLazyLoaded[title]) {\n\t\t// Don't lazy load if the tiddler isn't included in the sync filter\n\t\tif(this.getSyncedTiddlers().indexOf(title) !== -1) {\n\t\t\t// Mark the tiddler as needing loading, and having already been lazily loaded\n\t\t\tthis.titlesToBeLoaded[title] = true;\n\t\t\tthis.titlesHaveBeenLazyLoaded[title] = true;\n\t\t}\n\t}\n};\n\n/*\nDispay a password prompt and allow the user to login\n*/\nSyncer.prototype.handleLoginEvent = function() {\n\tvar self = this;\n\tthis.getStatus(function(err,isLoggedIn,username) {\n\t\tif(!err && !isLoggedIn) {\n\t\t\tif(self.syncadaptor && self.syncadaptor.displayLoginPrompt) {\n\t\t\t\tself.syncadaptor.displayLoginPrompt(self);\n\t\t\t} else {\n\t\t\t\tself.displayLoginPrompt();\n\t\t\t}\n\t\t}\n\t});\n};\n\n/*\nDispay a password prompt\n*/\nSyncer.prototype.displayLoginPrompt = function() {\n\tvar self = this;\n\tvar promptInfo = $tw.passwordPrompt.createPrompt({\n\t\tserviceName: $tw.language.getString(\"LoginToTiddlySpace\"),\n\t\tcallback: function(data) {\n\t\t\tself.login(data.username,data.password,function(err,isLoggedIn) {\n\t\t\t\tself.syncFromServer();\n\t\t\t});\n\t\t\treturn true; // Get rid of the password prompt\n\t\t}\n\t});\n};\n\n/*\nAttempt to login to TiddlyWeb.\n\tusername: username\n\tpassword: password\n\tcallback: invoked with arguments (err,isLoggedIn)\n*/\nSyncer.prototype.login = function(username,password,callback) {\n\tthis.logger.log(\"Attempting to login as\",username);\n\tvar self = this;\n\tif(this.syncadaptor.login) {\n\t\tthis.syncadaptor.login(username,password,function(err) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tself.getStatus(function(err,isLoggedIn,username) {\n\t\t\t\tif(callback) {\n\t\t\t\t\tcallback(err,isLoggedIn);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t} else {\n\t\tcallback(null,true);\n\t}\n};\n\n/*\nAttempt to log out of TiddlyWeb\n*/\nSyncer.prototype.handleLogoutEvent = function() {\n\tthis.logger.log(\"Attempting to logout\");\n\tvar self = this;\n\tif(this.syncadaptor.logout) {\n\t\tthis.syncadaptor.logout(function(err) {\n\t\t\tif(err) {\n\t\t\t\tself.logger.alert(err);\n\t\t\t} else {\n\t\t\t\tself.getStatus();\n\t\t\t}\n\t\t});\n\t}\n};\n\n/*\nImmediately refresh from the server\n*/\nSyncer.prototype.handleRefreshEvent = function() {\n\tthis.syncFromServer();\n};\n\n/*\nProcess the next task\n*/\nSyncer.prototype.processTaskQueue = function() {\n\tvar self = this;\n\t// Only process a task if the sync adaptor is fully initialised and we're not already performing\n\t// a task. If we are already performing a task then we'll dispatch the next one when it completes\n\tif((!this.syncadaptor.isReady || this.syncadaptor.isReady()) && this.numTasksInProgress === 0) {\n\t\t// Choose the next task to perform\n\t\tvar task = this.chooseNextTask();\n\t\t// Perform the task if we had one\n\t\tif(typeof task === \"object\" && task !== null) {\n\t\t\tthis.numTasksInProgress += 1;\n\t\t\ttask.run(function(err) {\n\t\t\t\tself.numTasksInProgress -= 1;\n\t\t\t\tif(err) {\n\t\t\t\t\tself.displayError(\"Sync error while processing \" + task.type + \" of '\" + task.title + \"'\",err);\n\t\t\t\t\tself.updateDirtyStatus();\n\t\t\t\t\tself.triggerTimeout(self.errorRetryInterval);\n\t\t\t\t} else {\n\t\t\t\t\tself.updateDirtyStatus();\n\t\t\t\t\t// Process the next task\n\t\t\t\t\tself.processTaskQueue.call(self);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\t// No task is ready so update the status\n\t\t\tthis.updateDirtyStatus();\n\t\t\t// And trigger a timeout if there is a pending task\n\t\t\tif(task === true) {\n\t\t\t\tthis.triggerTimeout();\t\t\t\t\n\t\t\t}\n\t\t}\n\t} else {\n\t\tthis.updateDirtyStatus();\t\t\n\t}\n};\n\nSyncer.prototype.triggerTimeout = function(interval) {\n\tvar self = this;\n\tif(!this.taskTimerId) {\n\t\tthis.taskTimerId = setTimeout(function() {\n\t\t\tself.taskTimerId = null;\n\t\t\tself.processTaskQueue.call(self);\n\t\t},interval || self.taskTimerInterval);\n\t}\n};\n\n/*\nChoose the next sync task. We prioritise saves, then deletes, then loads from the server\n\nReturns either a task object, null if there's no upcoming tasks, or the boolean true if there are pending tasks that aren't yet due\n*/\nSyncer.prototype.chooseNextTask = function() {\n\tvar thresholdLastSaved = (new Date()) - this.throttleInterval,\n\t\thavePending = null;\n\t// First we look for tiddlers that have been modified locally and need saving back to the server\n\tvar titles = this.getSyncedTiddlers();\n\tfor(var index=0; index<titles.length; index++) {\n\t\tvar title = titles[index],\n\t\t\ttiddler = this.wiki.tiddlerExists(title) && this.wiki.getTiddler(title),\n\t\t\ttiddlerInfo = this.tiddlerInfo[title];\n\t\tif(tiddler) {\n\t\t\t// If the tiddler is not known on the server, or has been modified locally no more recently than the threshold then it needs to be saved to the server\n\t\t\tvar hasChanged = !tiddlerInfo || this.wiki.getChangeCount(title) > tiddlerInfo.changeCount,\n\t\t\t\tisReadyToSave = !tiddlerInfo || !tiddlerInfo.timestampLastSaved || tiddlerInfo.timestampLastSaved < thresholdLastSaved;\n\t\t\tif(hasChanged) {\n\t\t\t\tif(isReadyToSave) {\n\t\t\t\t\treturn new SaveTiddlerTask(this,title); \t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\thavePending = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t// Second, we check tiddlers that are known from the server but not currently in the store, and so need deleting on the server\n\ttitles = Object.keys(this.tiddlerInfo);\n\tfor(index=0; index<titles.length; index++) {\n\t\ttitle = titles[index];\n\t\ttiddlerInfo = this.tiddlerInfo[title];\n\t\ttiddler = this.wiki.tiddlerExists(title) && this.wiki.getTiddler(title);\n\t\tif(!tiddler) {\n\t\t\treturn new DeleteTiddlerTask(this,title);\n\t\t}\n\t}\n\t// Check for tiddlers that need loading\n\ttitle = Object.keys(this.titlesToBeLoaded)[0];\n\tif(title) {\n\t\tdelete this.titlesToBeLoaded[title];\n\t\treturn new LoadTiddlerTask(this,title);\n\t}\n\t// No tasks are ready\n\treturn havePending;\n};\n\nfunction SaveTiddlerTask(syncer,title) {\n\tthis.syncer = syncer;\n\tthis.title = title;\n\tthis.type = \"save\";\n}\n\nSaveTiddlerTask.prototype.run = function(callback) {\n\tvar self = this,\n\t\tchangeCount = this.syncer.wiki.getChangeCount(this.title),\n\t\ttiddler = this.syncer.wiki.tiddlerExists(this.title) && this.syncer.wiki.getTiddler(this.title);\n\tthis.syncer.logger.log(\"Dispatching 'save' task:\",this.title);\n\tif(tiddler) {\n\t\tthis.syncer.syncadaptor.saveTiddler(tiddler,function(err,adaptorInfo,revision) {\n\t\t\t// If there's an error, exit without changing any internal state\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\t// Adjust the info stored about this tiddler\n\t\t\tself.syncer.tiddlerInfo[self.title] = {\n\t\t\t\tchangeCount: changeCount,\n\t\t\t\tadaptorInfo: adaptorInfo,\n\t\t\t\trevision: revision,\n\t\t\t\ttimestampLastSaved: new Date()\n\t\t\t};\n\t\t\t// Invoke the callback\n\t\t\tcallback(null);\n\t\t},{\n\t\t\ttiddlerInfo: self.syncer.tiddlerInfo[self.title]\n\t\t});\n\t} else {\n\t\tthis.syncer.logger.log(\" Not Dispatching 'save' task:\",this.title,\"tiddler does not exist\");\n\t\t$tw.utils.nextTick(callback(null));\n\t}\n};\n\nfunction DeleteTiddlerTask(syncer,title) {\n\tthis.syncer = syncer;\n\tthis.title = title;\n\tthis.type = \"delete\";\n}\n\nDeleteTiddlerTask.prototype.run = function(callback) {\n\tvar self = this;\n\tthis.syncer.logger.log(\"Dispatching 'delete' task:\",this.title);\n\tthis.syncer.syncadaptor.deleteTiddler(this.title,function(err) {\n\t\t// If there's an error, exit without changing any internal state\n\t\tif(err) {\n\t\t\treturn callback(err);\n\t\t}\n\t\t// Remove the info stored about this tiddler\n\t\tdelete self.syncer.tiddlerInfo[self.title];\n\t\tif($tw.boot.files){\n\t\t\t// Remove the tiddler from $tw.boot.files\n\t\t\tdelete $tw.boot.files[self.title];\n\t\t}\n\t\t// Invoke the callback\n\t\tcallback(null);\n\t},{\n\t\ttiddlerInfo: self.syncer.tiddlerInfo[this.title]\n\t});\n};\n\nfunction LoadTiddlerTask(syncer,title) {\n\tthis.syncer = syncer;\n\tthis.title = title;\n\tthis.type = \"load\";\n}\n\nLoadTiddlerTask.prototype.run = function(callback) {\n\tvar self = this;\n\tthis.syncer.logger.log(\"Dispatching 'load' task:\",this.title);\n\tthis.syncer.syncadaptor.loadTiddler(this.title,function(err,tiddlerFields) {\n\t\t// If there's an error, exit without changing any internal state\n\t\tif(err) {\n\t\t\treturn callback(err);\n\t\t}\n\t\t// Update the info stored about this tiddler\n\t\tif(tiddlerFields) {\n\t\t\tself.syncer.storeTiddler(tiddlerFields);\n\t\t}\n\t\t// Invoke the callback\n\t\tcallback(null);\n\t});\n};\n\nexports.Syncer = Syncer;\n\n})();\n", - "type": "application/javascript", - "module-type": "global" - }, - "$:/core/modules/tiddler.js": { - "title": "$:/core/modules/tiddler.js", - "text": "/*\\\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\"use strict\";\n\nexports.hasTag = function(tag) {\n\treturn this.fields.tags && this.fields.tags.indexOf(tag) !== -1;\n};\n\nexports.isPlugin = function() {\n\treturn this.fields.type === \"application/json\" && this.hasField(\"plugin-type\");\n};\n\nexports.isDraft = function() {\n\treturn this.hasField(\"draft.of\");\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 \"\";\n\t}\n\t// Parse the field with the associated module (if any)\n\tvar fieldModule = $tw.Tiddler.fieldModules[field];\n\tif(fieldModule && fieldModule.stringify) {\n\t\treturn fieldModule.stringify.call(this,value);\n\t} else {\n\t\treturn value.toString();\n\t}\n};\n\n/*\nGet the value of a field as a list\n*/\nexports.getFieldList = function(field) {\n\tvar value = this.fields[field];\n\t// Check for a missing field\n\tif(value === undefined || value === null) {\n\t\treturn [];\n\t}\n\treturn $tw.utils.parseStringArray(value);\n};\n\n/*\nGet all the fields as a hashmap of strings. Options:\n\texclude: an array of field names to exclude\n*/\nexports.getFieldStrings = function(options) {\n\toptions = options || {};\n\tvar exclude = options.exclude || [];\n\tvar fields = {};\n\tfor(var field in this.fields) {\n\t\tif($tw.utils.hop(this.fields,field)) {\n\t\t\tif(exclude.indexOf(field) === -1) {\n\t\t\t\tfields[field] = this.getFieldString(field);\n\t\t\t}\n\t\t}\n\t}\n\treturn fields;\n};\n\n/*\nGet all the fields as a name:value block. Options:\n\texclude: an array of field names to exclude\n*/\nexports.getFieldStringBlock = function(options) {\n\toptions = options || {};\n\tvar exclude = options.exclude || [],\n\t\tfields = Object.keys(this.fields).sort(),\n\t\tresult = [];\n\tfor(var t=0; t<fields.length; t++) {\n\t\tvar field = fields[t];\n\t\tif(exclude.indexOf(field) === -1) {\n\t\t\tresult.push(field + \": \" + this.getFieldString(field));\n\t\t}\n\t}\n\treturn result.join(\"\\n\");\n};\n\nexports.getFieldDay = function(field) {\n\tif(this.cache && this.cache.day && $tw.utils.hop(this.cache.day,field) ) {\n\t\treturn this.cache.day[field];\n\t}\n\tvar day = \"\";\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", - "type": "application/javascript", - "module-type": "tiddlermethod" - }, - "$:/core/modules/upgraders/plugins.js": { - "title": "$:/core/modules/upgraders/plugins.js", - "text": "/*\\\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\"use strict\";\n\nvar UPGRADE_LIBRARY_TITLE = \"$:/UpgradeLibrary\";\n\nvar BLOCKED_PLUGINS = {\n\t\"$:/themes/tiddlywiki/stickytitles\": {\n\t\tversions: [\"*\"]\n\t},\n\t\"$:/plugins/tiddlywiki/fullscreen\": {\n\t\tversions: [\"*\"]\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 && incomingTiddler[\"plugin-type\"]) {\n\t\t\t// Check whether the plugin contains JS modules\n\t\t\tvar requiresReload = wiki.doesPluginInfoRequireReload(JSON.parse(incomingTiddler.text)) ? (wiki.getTiddlerText(\"$:/language/ControlPanel/Plugins/PluginWillRequireReload\") + \" \") : \"\";\n\t\t\tmessages[title] = requiresReload;\n\t\t\tif(incomingTiddler.version) {\n\t\t\t\t// Upgrade the incoming plugin if it is in the upgrade library\n\t\t\t\tvar libraryTiddler = getLibraryTiddler(title);\n\t\t\t\tif(libraryTiddler && libraryTiddler[\"plugin-type\"] && libraryTiddler.version) {\n\t\t\t\t\ttiddlers[title] = libraryTiddler;\n\t\t\t\t\tmessages[title] = requiresReload + $tw.language.getString(\"Import/Upgrader/Plugins/Upgraded\",{variables: {incoming: incomingTiddler.version, upgraded: libraryTiddler.version}});\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// Suppress the incoming plugin if it is older than the currently installed one\n\t\t\t\tvar existingTiddler = wiki.getTiddler(title);\n\t\t\t\tif(existingTiddler && existingTiddler.hasField(\"plugin-type\") && existingTiddler.hasField(\"version\")) {\n\t\t\t\t\t// Reject the incoming plugin by blanking all its fields\n\t\t\t\t\tif($tw.utils.checkVersions(existingTiddler.fields.version,incomingTiddler.version)) {\n\t\t\t\t\t\ttiddlers[title] = Object.create(null);\n\t\t\t\t\t\tmessages[title] = $tw.language.getString(\"Import/Upgrader/Plugins/Suppressed/Version\",{variables: {incoming: incomingTiddler.version, existing: existingTiddler.fields.version}});\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Check whether the plugin is on the blocked list\n\t\t\tvar blockInfo = BLOCKED_PLUGINS[title];\n\t\t\tif(blockInfo) {\n\t\t\t\tif(blockInfo.versions.indexOf(\"*\") !== -1 || (incomingTiddler.version && 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(\"Import/Upgrader/Plugins/Suppressed/Incompatible\");\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", - "type": "application/javascript", - "module-type": "upgrader" - }, - "$:/core/modules/upgraders/system.js": { - "title": "$:/core/modules/upgraders/system.js", - "text": "/*\\\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\"use strict\";\n\nvar DONT_IMPORT_LIST = [\"$:/StoryList\",\"$:/HistoryList\"],\n\tDONT_IMPORT_PREFIX_LIST = [\"$:/temp/\",\"$:/state/\",\"$:/Import\"],\n\tWARN_IMPORT_PREFIX_LIST = [\"$:/core/modules/\"];\n\nexports.upgrade = function(wiki,titles,tiddlers) {\n\tvar self = this,\n\t\tmessages = {},\n\t\tshowAlert = false;\n\t// Check for tiddlers on our list\n\t$tw.utils.each(titles,function(title) {\n\t\tif(DONT_IMPORT_LIST.indexOf(title) !== -1) {\n\t\t\ttiddlers[title] = Object.create(null);\n\t\t\tmessages[title] = $tw.language.getString(\"Import/Upgrader/System/Suppressed\");\n\t\t} else {\n\t\t\tfor(var t=0; t<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(\"Import/Upgrader/State/Suppressed\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(var t=0; t<WARN_IMPORT_PREFIX_LIST.length; t++) {\n\t\t\t\tvar prefix = WARN_IMPORT_PREFIX_LIST[t];\n\t\t\t\tif(title.substr(0,prefix.length) === prefix && wiki.isShadowTiddler(title)) {\n\t\t\t\t\tshowAlert = true;\n\t\t\t\t\tmessages[title] = $tw.language.getString(\"Import/Upgrader/System/Warning\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\tif(showAlert) {\n\t\tvar logger = new $tw.utils.Logger(\"import\");\n\t\tlogger.alert($tw.language.getString(\"Import/Upgrader/System/Alert\"));\n\t}\n\treturn messages;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "upgrader" - }, - "$:/core/modules/upgraders/themetweaks.js": { - "title": "$:/core/modules/upgraders/themetweaks.js", - "text": "/*\\\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\"use strict\";\n\nvar MAPPINGS = {\n\t\"$:/themes/tiddlywiki/vanilla/metrics\": {\n\t\t\"fontsize\": \"$:/themes/tiddlywiki/vanilla/metrics/fontsize\",\n\t\t\"lineheight\": \"$:/themes/tiddlywiki/vanilla/metrics/lineheight\",\n\t\t\"storyleft\": \"$:/themes/tiddlywiki/vanilla/metrics/storyleft\",\n\t\t\"storytop\": \"$:/themes/tiddlywiki/vanilla/metrics/storytop\",\n\t\t\"storyright\": \"$:/themes/tiddlywiki/vanilla/metrics/storyright\",\n\t\t\"storywidth\": \"$:/themes/tiddlywiki/vanilla/metrics/storywidth\",\n\t\t\"tiddlerwidth\": \"$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth\"\n\t},\n\t\"$:/themes/tiddlywiki/vanilla/settings\": {\n\t\t\"fontfamily\": \"$:/themes/tiddlywiki/vanilla/settings/fontfamily\"\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(\"Import/Upgrader/ThemeTweaks/Created\",{variables: {\n\t\t\t\t\t\tfrom: title + \"##\" + 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", - "type": "application/javascript", - "module-type": "upgrader" - }, - "$:/core/modules/utils/base64-utf8/base64-utf8.module.js": { - "text": "(function(){// From https://gist.github.com/Nijikokun/5192472\n//\n// UTF8 Module\n//\n// Cleaner and modularized utf-8 encoding and decoding library for javascript.\n//\n// copyright: MIT\n// author: Nijiko Yonskai, @nijikokun, nijikokun@gmail.com\n!function(r,e,o,t){void 0!==o.module&&o.module.exports?o.module.exports=e.apply(o):void 0!==o.define&&\"function\"===o.define&&o.define.amd?define(\"utf8\",[],e):o.utf8=e.apply(o)}(0,function(){return{encode:function(r){if(\"string\"!=typeof r)return r;r=r.replace(/\\r\\n/g,\"\\n\");for(var e,o=\"\",t=0;t<r.length;t++)if((e=r.charCodeAt(t))<128)o+=String.fromCharCode(e);else if(e>127&&e<2048)o+=String.fromCharCode(e>>6|192),o+=String.fromCharCode(63&e|128);else if(e>55295&&e<57344&&r.length>t+1){var i=e,n=r.charCodeAt(t+1);t++;var d=65536+(i-55296<<10|n-56320);o+=String.fromCharCode(d>>18|240),o+=String.fromCharCode(d>>12&63|128),o+=String.fromCharCode(d>>6&63|128),o+=String.fromCharCode(63&d|128)}else o+=String.fromCharCode(e>>12|224),o+=String.fromCharCode(e>>6&63|128),o+=String.fromCharCode(63&e|128);return o},decode:function(r){if(\"string\"!=typeof r)return r;for(var e=\"\",o=0,t=0;o<r.length;)if((t=r.charCodeAt(o))<128)e+=String.fromCharCode(t),o++;else if(t>191&&t<224)e+=String.fromCharCode((31&t)<<6|63&r.charCodeAt(o+1)),o+=2;else if(t>223&&t<240)e+=String.fromCharCode((15&t)<<12|(63&r.charCodeAt(o+1))<<6|63&r.charCodeAt(o+2)),o+=3;else{var i=(7&t)<<18|(63&r.charCodeAt(o+1))<<12|(63&r.charCodeAt(o+2))<<6|63&r.charCodeAt(o+3);e+=String.fromCharCode(55296+(i-65536>>10))+String.fromCharCode(56320+(i-65536&1023)),o+=4}return e}}},this),function(r,e,o,t){if(void 0!==o.module&&o.module.exports){if(t&&o.require)for(var i=0;i<t.length;i++)o[t[i]]=o.require(t[i]);o.module.exports=e.apply(o)}else void 0!==o.define&&\"function\"===o.define&&o.define.amd?define(\"base64\",t||[],e):o.base64=e.apply(o)}(0,function(r){var e=r||this.utf8,o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";return{encode:function(r){if(void 0===e)throw{error:\"MissingMethod\",message:\"UTF8 Module is missing.\"};if(\"string\"!=typeof r)return r;r=e.encode(r);for(var t,i,n,d,f,a,h,C=\"\",c=0;c<r.length;)d=(t=r.charCodeAt(c++))>>2,f=(3&t)<<4|(i=r.charCodeAt(c++))>>4,a=(15&i)<<2|(n=r.charCodeAt(c++))>>6,h=63&n,isNaN(i)?a=h=64:isNaN(n)&&(h=64),C+=o.charAt(d)+o.charAt(f)+o.charAt(a)+o.charAt(h);return C},decode:function(r){if(void 0===e)throw{error:\"MissingMethod\",message:\"UTF8 Module is missing.\"};if(\"string\"!=typeof r)return r;r=r.replace(/[^A-Za-z0-9\\+\\/\\=]/g,\"\");for(var t,i,n,d,f,a,h=\"\",C=0;C<r.length;)t=o.indexOf(r.charAt(C++))<<2|(d=o.indexOf(r.charAt(C++)))>>4,i=(15&d)<<4|(f=o.indexOf(r.charAt(C++)))>>2,n=(3&f)<<6|(a=o.indexOf(r.charAt(C++))),h+=String.fromCharCode(t),64!=f&&(h+=String.fromCharCode(i)),64!=a&&(h+=String.fromCharCode(n));return e.decode(h)}}},this,[\"utf8\"]);}).call(exports);", - "type": "application/javascript", - "title": "$:/core/modules/utils/base64-utf8/base64-utf8.module.js", - "module-type": "library" - }, - "$:/core/modules/utils/crypto.js": { - "title": "$:/core/modules/utils/crypto.js", - "text": "/*\\\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\"use strict\";\n\n/*\nLook for an encrypted store area in the text of a TiddlyWiki file\n*/\nexports.extractEncryptedStoreArea = function(text) {\n\tvar encryptedStoreAreaStartMarker = \"<pre id=\\\"encryptedStoreArea\\\" type=\\\"text/plain\\\" style=\\\"display:none;\\\">\",\n\t\tencryptedStoreAreaStart = text.indexOf(encryptedStoreAreaStartMarker);\n\tif(encryptedStoreAreaStart !== -1) {\n\t\tvar encryptedStoreAreaEnd = text.indexOf(\"</pre>\",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 !== \"$:/isEncrypted\") {\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: \"Enter a password to decrypt the imported TiddlyWiki\",\n\t\t\tnoUserName: true,\n\t\t\tcanCancel: true,\n\t\t\tsubmitText: \"Decrypt\",\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", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/csv.js": { - "title": "$:/core/modules/utils/csv.js", - "text": "/*\\\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\"use strict\";\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 || \",\",\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 !== \"\";\n\t\t});\n\tif(rows.length < 1) {\n\t\treturn \"Missing header row\";\n\t}\n\tvar headings = rows[0].split(separator),\n\t\tresults = [];\n\tfor(var row=1; row<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 \"Malformed CSV row '\" + rows[row] + \"'\";\n\t\t}\n\t\tfor(var column=0; column<columns.length; column++) {\n\t\t\tvar columnName = headings[column];\n\t\t\tcolumnResult[columnName] = $tw.utils.trim(columns[column] || \"\");\n\t\t}\n\t\tresults.push(columnResult);\t\t\t\n\t}\n\treturn results;\n}\n\n})();\n", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/diff-match-patch/diff_match_patch.js": { - "text": "(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){\"undefined\"==typeof d&&(d=0>=this.Diff_Timeout?Number.MAX_VALUE:(new Date).getTime()+1E3*this.Diff_Timeout);if(null==a||null==b)throw Error(\"Null input. (diff_main)\");if(a==b)return a?[[DIFF_EQUAL,a]]:[];\"undefined\"==typeof c&&(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&&a.unshift([DIFF_EQUAL,c]);g&&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>b.length?a:b,f=a.length>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>b.length&&(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&&100<a.length&&100<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,\"\"]);for(var e=d=b=0,f=\"\",g=\"\";b<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<=d&&1<=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<=e;e--)a.splice(b,0,d[e]);b+=\nd.length}d=e=0;g=f=\"\"}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<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<f&&!((new Date).getTime()>c);t++){for(var v=-t+p;v<=t-x;v+=2){var n=f+v;var r=v==-t||v!=t&&h[n-1]<h[n+1]?h[n+1]:h[n-1]+1;for(var y=r-v;r<d&&y<e&&a.charAt(r)==b.charAt(y);)r++,y++;h[n]=r;if(r>d)x+=2;else if(y>e)p+=2;else if(m&&(n=f+k-v,0<=n&&n<g&&-1!=l[n])){var u=d-l[n];if(r>=\nu)return this.diff_bisectSplit_(a,b,r,y,c)}}for(v=-t+w;v<=t-q;v+=2){n=f+v;u=v==-t||v!=t&&l[n-1]<l[n+1]?l[n+1]:l[n-1]+1;for(r=u-v;u<d&&r<e&&a.charAt(d-u-1)==b.charAt(e-r-1);)u++,r++;l[n]=u;if(u>d)q+=2;else if(r>e)w+=2;else if(!m&&(n=f+k-v,0<=n&&n<g&&-1!=h[n]&&(r=h[n],y=f+r-n,u=d-u,r>=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=\"\",c=0,f=-1,g=d.length;f<a.length-1;){f=a.indexOf(\"\\n\",c);-1==f&&(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]=\"\";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<a.length;c++){for(var d=a[c][1],e=[],f=0;f<d.length;f++)e[f]=b[d.charCodeAt(f)];a[c][1]=e.join(\"\")}};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<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<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>d?a=a.substring(c-d):c<d&&(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=\"\",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<u+p&&(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>=a.length?[h,k,l,m,g]:null}if(0>=this.Diff_Timeout)return null;\nvar d=a.length>b.length?a:b,e=a.length>b.length?b:a;if(4>d.length||2*e.length<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>d[4].length?g:d:d:g;else return null;if(a.length>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<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&&e.length<=Math.max(g,h)&&e.length<=Math.max(l,k)&&(a.splice(c[d-1],0,[DIFF_DELETE,e]),a[c[d-1]+1][0]=DIFF_INSERT,d--,d--,f=0<d?c[d-1]:-1,k=l=h=g=0,e=null,b=!0)),f++;b&&this.diff_cleanupMerge(a);this.diff_cleanupSemanticLossless(a);for(f=1;f<a.length;){if(a[f-1][0]==\nDIFF_DELETE&&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>=e){if(d>=b.length/2||d>=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>=b.length/2||e>=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&&c.match(diff_match_patch.whitespaceRegex_),h=f&&d.match(diff_match_patch.whitespaceRegex_);c=g&&c.match(diff_match_patch.linebreakRegex_);d=h&&d.match(diff_match_patch.linebreakRegex_);var k=c&&a.match(diff_match_patch.blanklineEndRegex_),l=d&&b.match(diff_match_patch.blanklineStartRegex_);\nreturn k||l?5:c||d?4:e&&!g&&h?3:g||h?2:e||f?1:0}for(var c=1;c<a.length-1;){if(a[c-1][0]==DIFF_EQUAL&&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>=k&&(k=m,g=d,h=e,l=f)}a[c-1][1]!=g&&(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<a.length;)a[f][0]==DIFF_EQUAL?(a[f][1].length<this.Diff_EditCost&&(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&&(g&&h&&l&&k||e.length<this.Diff_EditCost/2&&3==g+h+l+k)&&(a.splice(c[d-1],0,[DIFF_DELETE,e]),a[c[d-1]+1][0]=DIFF_INSERT,d--,e=null,g&&h?(l=k=!0,d=0):(d--,f=0<d?c[d-1]:-1,l=k=!1),b=!0)),f++;b&&this.diff_cleanupMerge(a)};\ndiff_match_patch.prototype.diff_cleanupMerge=function(a){a.push([DIFF_EQUAL,\"\"]);for(var b=0,c=0,d=0,e=\"\",f=\"\",g;b<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<c+d?(0!==c&&0!==d&&(g=this.diff_commonPrefix(f,e),0!==g&&(0<b-c-d&&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&&(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&&a[b-1][0]==DIFF_EQUAL?(a[b-1][1]+=a[b][1],a.splice(b,1)):b++,c=d=0,f=e=\"\"}\"\"===a[a.length-1][1]&&a.pop();c=!1;for(b=1;b<a.length-1;)a[b-1][0]==DIFF_EQUAL&&a[b+1][0]==DIFF_EQUAL&&(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]&&(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&&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<a.length;g++){a[g][0]!==DIFF_INSERT&&(c+=a[g][1].length);a[g][0]!==DIFF_DELETE&&(d+=a[g][1].length);if(c>b)break;e=c;f=d}return a.length!=g&&a[g][0]===DIFF_DELETE?f:f+(b-e)};\ndiff_match_patch.prototype.diff_prettyHtml=function(a){for(var b=[],c=/&/g,d=/</g,e=/>/g,f=/\\n/g,g=0;g<a.length;g++){var h=a[g][0],l=a[g][1].replace(c,\"&\").replace(d,\"<\").replace(e,\">\").replace(f,\"¶<br>\");switch(h){case DIFF_INSERT:b[g]='<ins style=\"background:#e6ffe6;\">'+l+\"</ins>\";break;case DIFF_DELETE:b[g]='<del style=\"background:#ffe6e6;\">'+l+\"</del>\";break;case DIFF_EQUAL:b[g]=\"<span>\"+l+\"</span>\"}}return b.join(\"\")};\ndiff_match_patch.prototype.diff_text1=function(a){for(var b=[],c=0;c<a.length;c++)a[c][0]!==DIFF_INSERT&&(b[c]=a[c][1]);return b.join(\"\")};diff_match_patch.prototype.diff_text2=function(a){for(var b=[],c=0;c<a.length;c++)a[c][0]!==DIFF_DELETE&&(b[c]=a[c][1]);return b.join(\"\")};\ndiff_match_patch.prototype.diff_levenshtein=function(a){for(var b=0,c=0,d=0,e=0;e<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<a.length;c++)switch(a[c][0]){case DIFF_INSERT:b[c]=\"+\"+encodeURI(a[c][1]);break;case DIFF_DELETE:b[c]=\"-\"+a[c][1].length;break;case DIFF_EQUAL:b[c]=\"=\"+a[c][1].length}return b.join(\"\\t\").replace(/%20/g,\" \")};\ndiff_match_patch.prototype.diff_fromDelta=function(a,b){for(var c=[],d=0,e=0,f=b.split(/\\t/g),g=0;g<f.length;g++){var h=f[g].substring(1);switch(f[g].charAt(0)){case \"+\":try{c[d++]=[DIFF_INSERT,decodeURI(h)]}catch(k){throw Error(\"Illegal escape in diff_fromDelta: \"+h);}break;case \"-\":case \"=\":var l=parseInt(h,10);if(isNaN(l)||0>l)throw Error(\"Invalid number in diff_fromDelta: \"+h);h=a.substring(e,e+=l);\"=\"==f[g].charAt(0)?c[d++]=[DIFF_EQUAL,h]:c[d++]=[DIFF_DELETE,h];break;default:if(f[g])throw Error(\"Invalid diff operation in diff_fromDelta: \"+\nf[g]);}}if(e!=a.length)throw Error(\"Delta length (\"+e+\") does not equal source text length (\"+a.length+\").\");return c};diff_match_patch.prototype.match_main=function(a,b,c){if(null==a||null==b||null==c)throw Error(\"Null input. (match_main)\");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>this.Match_MaxBits)throw Error(\"Pattern too long for this browser.\");var e=this.match_alphabet_(b),f=this,g=this.Match_Threshold,h=a.indexOf(b,c);-1!=h&&(g=Math.min(d(0,h),g),h=a.lastIndexOf(b,c+b.length),-1!=h&&(g=Math.min(d(0,h),g)));var l=1<<b.length-1;h=-1;for(var k,m,p=b.length+a.length,x,w=0;w<b.length;w++){k=0;for(m=p;k<m;)d(w,\nc+m)<=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<<w)-1;q>=k;q--){var t=e[a.charAt(q-1)];m[q]=0===w?(m[q+1]<<1|1)&t:(m[q+1]<<1|1)&t|(x[q+1]|x[q])<<1|1|x[q+1];if(m[q]&l&&(t=d(w,q-1),t<=g))if(g=t,h=q-1,h>c)k=Math.max(1,2*c-h);else break}if(d(w+1,c)>g)break;x=m}return h};\ndiff_match_patch.prototype.match_alphabet_=function(a){for(var b={},c=0;c<a.length;c++)b[a.charAt(c)]=0;for(c=0;c<a.length;c++)b[a.charAt(c)]|=1<<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)&&c.length<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))&&a.diffs.unshift([DIFF_EQUAL,c]);(d=b.substring(a.start2+a.length1,a.start2+a.length1+d))&&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(\"string\"==typeof a&&\"string\"==typeof b&&\"undefined\"==typeof c){var d=a;b=this.diff_main(d,b,!0);2<b.length&&(this.diff_cleanupSemantic(b),this.diff_cleanupEfficiency(b))}else if(a&&\"object\"==typeof a&&\"undefined\"==typeof b&&\"undefined\"==typeof c)b=a,d=this.diff_text1(b);else if(\"string\"==typeof a&&b&&\"object\"==typeof b&&\"undefined\"==typeof c)d=a;else if(\"string\"==typeof a&&\"string\"==typeof b&&c&&\"object\"==typeof c)d=a,b=c;else throw Error(\"Unknown call format to patch_make.\");\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<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<=2*this.Patch_Margin&&e&&b.length!=l+1?(a.diffs[e++]=b[l],a.length1+=m.length,a.length2+=m.length):\nm.length>=2*this.Patch_Margin&&e&&(this.patch_addContext_(a,h),c.push(a),a=new diff_match_patch.patch_obj,e=0,h=d,f=g)}k!==DIFF_INSERT&&(f+=m.length);k!==DIFF_DELETE&&(g+=m.length)}e&&(this.patch_addContext_(a,h),c.push(a));return c};\ndiff_match_patch.prototype.patch_deepCopy=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=new diff_match_patch.patch_obj;e.diffs=[];for(var f=0;f<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<a.length;f++){var g=a[f].start2+d,h=this.diff_text1(a[f].diffs),l=-1;if(h.length>this.Match_MaxBits){var k=this.match_main(b,h.substring(0,this.Match_MaxBits),g);-1!=k&&(l=this.match_main(b,h.substring(h.length-this.Match_MaxBits),g+h.length-this.Match_MaxBits),-1==l||k>=l)&&(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>this.Match_MaxBits&&this.diff_levenshtein(g)/h.length>this.Patch_DeleteThreshold)e[f]=!1;else{this.diff_cleanupSemanticLossless(g);h=0;var m;for(l=0;l<a[f].diffs.length;l++){var p=a[f].diffs[l];p[0]!==DIFF_EQUAL&&(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&&(b=b.substring(0,k+m)+b.substring(k+this.diff_xIndex(g,h+p[1].length)));p[0]!==DIFF_DELETE&&(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=\"\",d=1;d<=b;d++)c+=String.fromCharCode(d);for(d=0;d<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>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>e[e.length-1][1].length&&(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<a.length;c++)if(!(a[c].length1<=b)){var d=a[c];a.splice(c--,1);for(var e=d.start1,f=d.start2,g=\"\";0!==d.diffs.length;){var h=new diff_match_patch.patch_obj,l=!0;h.start1=e-g.length;h.start2=f-g.length;\"\"!==g&&(h.length1=h.length2=g.length,h.diffs.push([DIFF_EQUAL,g]));for(;0!==d.diffs.length&&h.length1<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&&1==h.diffs.length&&h.diffs[0][0]==DIFF_EQUAL&&k.length>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);\"\"!==k&&(h.length1+=k.length,h.length2+=k.length,0!==h.diffs.length&&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<a.length;c++)b[c]=a[c];return b.join(\"\")};\ndiff_match_patch.prototype.patch_fromText=function(a){var b=[];if(!a)return b;a=a.split(\"\\n\");for(var c=0,d=/^@@ -(\\d+),?(\\d*) \\+(\\d+),?(\\d*) @@$/;c<a.length;){var e=a[c].match(d);if(!e)throw Error(\"Invalid patch string: \"+a[c]);var f=new diff_match_patch.patch_obj;b.push(f);f.start1=parseInt(e[1],10);\"\"===e[2]?(f.start1--,f.length1=1):\"0\"==e[2]?f.length1=0:(f.start1--,f.length1=parseInt(e[2],10));f.start2=parseInt(e[3],10);\"\"===e[4]?(f.start2--,f.length2=1):\"0\"==e[4]?f.length2=0:(f.start2--,f.length2=\nparseInt(e[4],10));for(c++;c<a.length;){e=a[c].charAt(0);try{var g=decodeURI(a[c].substring(1))}catch(h){throw Error(\"Illegal escape in patch_fromText: \"+g);}if(\"-\"==e)f.diffs.push([DIFF_DELETE,g]);else if(\"+\"==e)f.diffs.push([DIFF_INSERT,g]);else if(\" \"==e)f.diffs.push([DIFF_EQUAL,g]);else if(\"@\"==e)break;else if(\"\"!==e)throw Error('Invalid patch mode \"'+e+'\" 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=[\"@@ -\"+(0===this.length1?this.start1+\",0\":1==this.length1?this.start1+1:this.start1+1+\",\"+this.length1)+\" +\"+(0===this.length2?this.start2+\",0\":1==this.length2?this.start2+1:this.start2+1+\",\"+this.length2)+\" @@\\n\"],b,c=0;c<this.diffs.length;c++){switch(this.diffs[c][0]){case DIFF_INSERT:b=\"+\";break;case DIFF_DELETE:b=\"-\";break;case DIFF_EQUAL:b=\" \"}a[c+1]=b+encodeURI(this.diffs[c][1])+\"\\n\"}return a.join(\"\").replace(/%20/g,\" \")};\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);", - "type": "application/javascript", - "title": "$:/core/modules/utils/diff-match-patch/diff_match_patch.js", - "module-type": "library" - }, - "$:/core/modules/utils/dom/animations/slide.js": { - "title": "$:/core/modules/utils/dom/animations/slide.js", - "text": "/*\\\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\"use strict\";\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: \"none\"},\n\t\t\t{marginBottom: \"\"},\n\t\t\t{marginTop: \"\"},\n\t\t\t{paddingBottom: \"\"},\n\t\t\t{paddingTop: \"\"},\n\t\t\t{height: \"auto\"},\n\t\t\t{opacity: \"\"}\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: \"none\"},\n\t\t{marginTop: \"0px\"},\n\t\t{marginBottom: \"0px\"},\n\t\t{paddingTop: \"0px\"},\n\t\t{paddingBottom: \"0px\"},\n\t\t{height: \"0px\"},\n\t\t{opacity: \"0\"}\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: \"margin-top \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"margin-bottom \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"padding-top \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"padding-bottom \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"height \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"opacity \" + duration + \"ms ease-in-out\"},\n\t\t{marginBottom: currMarginBottom + \"px\"},\n\t\t{marginTop: currMarginTop + \"px\"},\n\t\t{paddingBottom: currPaddingBottom + \"px\"},\n\t\t{paddingTop: currPaddingTop + \"px\"},\n\t\t{height: currHeight + \"px\"},\n\t\t{opacity: \"1\"}\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: \"none\"},\n\t\t\t{marginBottom: \"\"},\n\t\t\t{marginTop: \"\"},\n\t\t\t{paddingBottom: \"\"},\n\t\t\t{paddingTop: \"\"},\n\t\t\t{height: \"auto\"},\n\t\t\t{opacity: \"\"}\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 + \"px\"},\n\t\t{opacity: \"1\"}\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: \"margin-top \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"margin-bottom \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"padding-top \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"padding-bottom \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"height \" + duration + \"ms ease-in-out, \" +\n\t\t\t\t\t\"opacity \" + duration + \"ms ease-in-out\"},\n\t\t{marginTop: \"0px\"},\n\t\t{marginBottom: \"0px\"},\n\t\t{paddingTop: \"0px\"},\n\t\t{paddingBottom: \"0px\"},\n\t\t{height: \"0px\"},\n\t\t{opacity: \"0\"}\n\t]);\n}\n\nexports.slide = {\n\topen: slideOpen,\n\tclose: slideClosed\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "animation" - }, - "$:/core/modules/utils/dom/animator.js": { - "title": "$:/core/modules/utils/dom/animator.js", - "text": "/*\\\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\"use strict\";\n\nfunction Animator() {\n\t// Get the registered animation modules\n\tthis.animations = {};\n\t$tw.modules.applyMethods(\"animation\",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", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/dom/browser.js": { - "title": "$:/core/modules/utils/dom/browser.js", - "text": "/*\\\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\"use strict\";\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<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\"background-color\" --> \"backgroundColor\"\n\t\"transition\" --> \"webkitTransition\"\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 && document.body.style[propertyName] === undefined) {\n\t\tvar prefixes = [\"O\",\"MS\",\"Moz\",\"webkit\"];\n\t\tfor(var t=0; t<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\"backgroundColor\" --> \"background-color\"\n\t\"webkitTransform\" --> \"-webkit-transform\"\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(\"webkit\") === 0) {\n\t\tstyleName = \"-\" + styleName;\n\t} else if(styleName.indexOf(\"-m-s\") === 0) {\n\t\tstyleName = \"-ms\" + 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\"transform\" --> \"webkitTransform\" --> \"-webkit-transform\"\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\"animationEnd\" --> \"webkitAnimationEnd\"\n*/\n\nvar eventNameCache = {}; // We'll cache the conversions\n\nvar eventNameMappings = {\n\t\"transitionEnd\": {\n\t\tcorrespondingCssProperty: \"transition\",\n\t\tmappings: {\n\t\t\ttransition: \"transitionend\",\n\t\t\tOTransition: \"oTransitionEnd\",\n\t\t\tMSTransition: \"msTransitionEnd\",\n\t\t\tMozTransition: \"transitionend\",\n\t\t\twebkitTransition: \"webkitTransitionEnd\"\n\t\t}\n\t},\n\t\"animationEnd\": {\n\t\tcorrespondingCssProperty: \"animation\",\n\t\tmappings: {\n\t\t\tanimation: \"animationend\",\n\t\t\tOAnimation: \"oAnimationEnd\",\n\t\t\tMSAnimation: \"msAnimationEnd\",\n\t\t\tMozAnimation: \"animationend\",\n\t\t\twebkitAnimation: \"webkitAnimationEnd\"\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\"_requestFullscreen\": db.webkitRequestFullscreen !== undefined ? \"webkitRequestFullscreen\" :\n\t\t\t\t\t\t\tdb.mozRequestFullScreen !== undefined ? \"mozRequestFullScreen\" :\n\t\t\t\t\t\t\tdb.msRequestFullscreen !== undefined ? \"msRequestFullscreen\" :\n\t\t\t\t\t\t\tdb.requestFullscreen !== undefined ? \"requestFullscreen\" : \"\",\n\t\t\"_exitFullscreen\": d.webkitExitFullscreen !== undefined ? \"webkitExitFullscreen\" :\n\t\t\t\t\t\t\td.mozCancelFullScreen !== undefined ? \"mozCancelFullScreen\" :\n\t\t\t\t\t\t\td.msExitFullscreen !== undefined ? \"msExitFullscreen\" :\n\t\t\t\t\t\t\td.exitFullscreen !== undefined ? \"exitFullscreen\" : \"\",\n\t\t\"_fullscreenElement\": d.webkitFullscreenElement !== undefined ? \"webkitFullscreenElement\" :\n\t\t\t\t\t\t\td.mozFullScreenElement !== undefined ? \"mozFullScreenElement\" :\n\t\t\t\t\t\t\td.msFullscreenElement !== undefined ? \"msFullscreenElement\" :\n\t\t\t\t\t\t\td.fullscreenElement !== undefined ? \"fullscreenElement\" : \"\",\n\t\t\"_fullscreenChange\": d.webkitFullscreenElement !== undefined ? \"webkitfullscreenchange\" :\n\t\t\t\t\t\t\td.mozFullScreenElement !== undefined ? \"mozfullscreenchange\" :\n\t\t\t\t\t\t\td.msFullscreenElement !== undefined ? \"MSFullscreenChange\" :\n\t\t\t\t\t\t\td.fullscreenElement !== undefined ? \"fullscreenchange\" : \"\"\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", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/dom/csscolorparser.js": { - "title": "$:/core/modules/utils/dom/csscolorparser.js", - "text": "// (c) Dean McNamee <dean@gmail.com>, 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 \"Software\"), 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 \"AS IS\", 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 \"transparent\": [0,0,0,0], \"aliceblue\": [240,248,255,1],\n \"antiquewhite\": [250,235,215,1], \"aqua\": [0,255,255,1],\n \"aquamarine\": [127,255,212,1], \"azure\": [240,255,255,1],\n \"beige\": [245,245,220,1], \"bisque\": [255,228,196,1],\n \"black\": [0,0,0,1], \"blanchedalmond\": [255,235,205,1],\n \"blue\": [0,0,255,1], \"blueviolet\": [138,43,226,1],\n \"brown\": [165,42,42,1], \"burlywood\": [222,184,135,1],\n \"cadetblue\": [95,158,160,1], \"chartreuse\": [127,255,0,1],\n \"chocolate\": [210,105,30,1], \"coral\": [255,127,80,1],\n \"cornflowerblue\": [100,149,237,1], \"cornsilk\": [255,248,220,1],\n \"crimson\": [220,20,60,1], \"cyan\": [0,255,255,1],\n \"darkblue\": [0,0,139,1], \"darkcyan\": [0,139,139,1],\n \"darkgoldenrod\": [184,134,11,1], \"darkgray\": [169,169,169,1],\n \"darkgreen\": [0,100,0,1], \"darkgrey\": [169,169,169,1],\n \"darkkhaki\": [189,183,107,1], \"darkmagenta\": [139,0,139,1],\n \"darkolivegreen\": [85,107,47,1], \"darkorange\": [255,140,0,1],\n \"darkorchid\": [153,50,204,1], \"darkred\": [139,0,0,1],\n \"darksalmon\": [233,150,122,1], \"darkseagreen\": [143,188,143,1],\n \"darkslateblue\": [72,61,139,1], \"darkslategray\": [47,79,79,1],\n \"darkslategrey\": [47,79,79,1], \"darkturquoise\": [0,206,209,1],\n \"darkviolet\": [148,0,211,1], \"deeppink\": [255,20,147,1],\n \"deepskyblue\": [0,191,255,1], \"dimgray\": [105,105,105,1],\n \"dimgrey\": [105,105,105,1], \"dodgerblue\": [30,144,255,1],\n \"firebrick\": [178,34,34,1], \"floralwhite\": [255,250,240,1],\n \"forestgreen\": [34,139,34,1], \"fuchsia\": [255,0,255,1],\n \"gainsboro\": [220,220,220,1], \"ghostwhite\": [248,248,255,1],\n \"gold\": [255,215,0,1], \"goldenrod\": [218,165,32,1],\n \"gray\": [128,128,128,1], \"green\": [0,128,0,1],\n \"greenyellow\": [173,255,47,1], \"grey\": [128,128,128,1],\n \"honeydew\": [240,255,240,1], \"hotpink\": [255,105,180,1],\n \"indianred\": [205,92,92,1], \"indigo\": [75,0,130,1],\n \"ivory\": [255,255,240,1], \"khaki\": [240,230,140,1],\n \"lavender\": [230,230,250,1], \"lavenderblush\": [255,240,245,1],\n \"lawngreen\": [124,252,0,1], \"lemonchiffon\": [255,250,205,1],\n \"lightblue\": [173,216,230,1], \"lightcoral\": [240,128,128,1],\n \"lightcyan\": [224,255,255,1], \"lightgoldenrodyellow\": [250,250,210,1],\n \"lightgray\": [211,211,211,1], \"lightgreen\": [144,238,144,1],\n \"lightgrey\": [211,211,211,1], \"lightpink\": [255,182,193,1],\n \"lightsalmon\": [255,160,122,1], \"lightseagreen\": [32,178,170,1],\n \"lightskyblue\": [135,206,250,1], \"lightslategray\": [119,136,153,1],\n \"lightslategrey\": [119,136,153,1], \"lightsteelblue\": [176,196,222,1],\n \"lightyellow\": [255,255,224,1], \"lime\": [0,255,0,1],\n \"limegreen\": [50,205,50,1], \"linen\": [250,240,230,1],\n \"magenta\": [255,0,255,1], \"maroon\": [128,0,0,1],\n \"mediumaquamarine\": [102,205,170,1], \"mediumblue\": [0,0,205,1],\n \"mediumorchid\": [186,85,211,1], \"mediumpurple\": [147,112,219,1],\n \"mediumseagreen\": [60,179,113,1], \"mediumslateblue\": [123,104,238,1],\n \"mediumspringgreen\": [0,250,154,1], \"mediumturquoise\": [72,209,204,1],\n \"mediumvioletred\": [199,21,133,1], \"midnightblue\": [25,25,112,1],\n \"mintcream\": [245,255,250,1], \"mistyrose\": [255,228,225,1],\n \"moccasin\": [255,228,181,1], \"navajowhite\": [255,222,173,1],\n \"navy\": [0,0,128,1], \"oldlace\": [253,245,230,1],\n \"olive\": [128,128,0,1], \"olivedrab\": [107,142,35,1],\n \"orange\": [255,165,0,1], \"orangered\": [255,69,0,1],\n \"orchid\": [218,112,214,1], \"palegoldenrod\": [238,232,170,1],\n \"palegreen\": [152,251,152,1], \"paleturquoise\": [175,238,238,1],\n \"palevioletred\": [219,112,147,1], \"papayawhip\": [255,239,213,1],\n \"peachpuff\": [255,218,185,1], \"peru\": [205,133,63,1],\n \"pink\": [255,192,203,1], \"plum\": [221,160,221,1],\n \"powderblue\": [176,224,230,1], \"purple\": [128,0,128,1],\n \"red\": [255,0,0,1], \"rosybrown\": [188,143,143,1],\n \"royalblue\": [65,105,225,1], \"saddlebrown\": [139,69,19,1],\n \"salmon\": [250,128,114,1], \"sandybrown\": [244,164,96,1],\n \"seagreen\": [46,139,87,1], \"seashell\": [255,245,238,1],\n \"sienna\": [160,82,45,1], \"silver\": [192,192,192,1],\n \"skyblue\": [135,206,235,1], \"slateblue\": [106,90,205,1],\n \"slategray\": [112,128,144,1], \"slategrey\": [112,128,144,1],\n \"snow\": [255,250,250,1], \"springgreen\": [0,255,127,1],\n \"steelblue\": [70,130,180,1], \"tan\": [210,180,140,1],\n \"teal\": [0,128,128,1], \"thistle\": [216,191,216,1],\n \"tomato\": [255,99,71,1], \"turquoise\": [64,224,208,1],\n \"violet\": [238,130,238,1], \"wheat\": [245,222,179,1],\n \"white\": [255,255,255,1], \"whitesmoke\": [245,245,245,1],\n \"yellow\": [255,255,0,1], \"yellowgreen\": [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 < 0 ? 0 : i > 255 ? 255 : i;\n}\n\nfunction clamp_css_float(f) { // Clamp to float 0.0 .. 1.0.\n return f < 0 ? 0 : f > 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 < 0) h += 1;\n else if (h > 1) h -= 1;\n\n if (h * 6 < 1) return m1 + (m2 - m1) * h * 6;\n if (h * 2 < 1) return m2;\n if (h * 3 < 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 >= 0 && iv <= 0xfff)) return null; // Covers NaN.\n return [((iv & 0xf00) >> 4) | ((iv & 0xf00) >> 8),\n (iv & 0xf0) | ((iv & 0xf0) >> 4),\n (iv & 0xf) | ((iv & 0xf) << 4),\n 1];\n } else if (str.length === 7) {\n var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.\n if (!(iv >= 0 && iv <= 0xffffff)) return null; // Covers NaN.\n return [(iv & 0xff0000) >> 16,\n (iv & 0xff00) >> 8,\n iv & 0xff,\n 1];\n }\n\n return null;\n }\n\n var op = str.indexOf('('), ep = str.indexOf(')');\n if (op !== -1 && 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 <= 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", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/dom.js": { - "title": "$:/core/modules/utils/dom.js", - "text": "/*\\\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\"use strict\";\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 && a.contains(b) :\n\t\t!!(a.compareDocumentPosition(b) & 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 && el.hasAttribute && el.hasAttribute(\"class\") && el.getAttribute(\"class\").split(\" \").indexOf(className) !== -1;\n};\n\nexports.addClass = function(el,className) {\n\tvar c = (el.getAttribute(\"class\") || \"\").split(\" \");\n\tif(c.indexOf(className) === -1) {\n\t\tc.push(className);\n\t\tel.setAttribute(\"class\",c.join(\" \"));\n\t}\n};\n\nexports.removeClass = function(el,className) {\n\tvar c = (el.getAttribute(\"class\") || \"\").split(\" \"),\n\t\tp = c.indexOf(className);\n\tif(p !== -1) {\n\t\tc.splice(p,1);\n\t\tel.setAttribute(\"class\",c.join(\" \"));\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(\"scrollX\" 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 = \"auto\";\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 + \"px\";\n\t\t// Make sure that the dimensions of the textarea are recalculated\n\t\t$tw.utils.forceLayout(domNode);\n\t\t// Set the container to the position we registered at the beginning\n\t\tcontainer.scrollTop = scrollTop;\n\t}\n\treturn newHeight;\n};\n\n/*\nGets the bounding rectangle of an element in absolute page coordinates\n*/\nexports.getBoundingPageRect = function(element) {\n\tvar scrollPos = $tw.utils.getScrollPosition(element.ownerDocument.defaultView),\n\t\tclientRect = element.getBoundingClientRect();\n\treturn {\n\t\tleft: clientRect.left + scrollPos.x,\n\t\twidth: clientRect.width,\n\t\tright: clientRect.right + scrollPos.x,\n\t\ttop: clientRect.top + scrollPos.y,\n\t\theight: clientRect.height,\n\t\tbottom: clientRect.bottom + scrollPos.y\n\t};\n};\n\n/*\nSaves a named password in the browser\n*/\nexports.savePassword = function(name,password) {\n\tvar done = false;\n\ttry {\n\t\twindow.localStorage.setItem(\"tw5-password-\" + name,password);\n\t\tdone = true;\n\t} catch(e) {\n\t}\n\tif(!done) {\n\t\t$tw.savedPasswords = $tw.savedPasswords || Object.create(null);\n\t\t$tw.savedPasswords[name] = password;\n\t}\n};\n\n/*\nRetrieve a named password from the browser\n*/\nexports.getPassword = function(name) {\n\tvar value;\n\ttry {\n\t\tvalue = window.localStorage.getItem(\"tw5-password-\" + name);\n\t} catch(e) {\n\t}\n\tif(value !== undefined) {\n\t\treturn value;\n\t} else {\n\t\treturn ($tw.savedPasswords || Object.create(null))[name] || \"\";\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,\"pulse\");\n\t},false);\n\t// Apply the pulse class\n\t$tw.utils.removeClass(element,\"pulse\");\n\t$tw.utils.forceLayout(element);\n\t$tw.utils.addClass(element,\"pulse\");\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<textAreaStyles.length; t++) {\n\t\tname = textAreaStyles[t];\n\t\tstyleDefs.push(name + \": \" + textAreaStyles.getPropertyValue(name) + \";\");\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(\"\");\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(\"textarea\");\n\ttextArea.style.position = \"fixed\";\n\ttextArea.style.top = 0;\n\ttextArea.style.left = 0;\n\ttextArea.style.fontSize = \"12pt\";\n\ttextArea.style.width = \"2em\";\n\ttextArea.style.height = \"2em\";\n\ttextArea.style.padding = 0;\n\ttextArea.style.border = \"none\";\n\ttextArea.style.outline = \"none\";\n\ttextArea.style.boxShadow = \"none\";\n\ttextArea.style.background = \"transparent\";\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(\"copy\");\n\t} catch (err) {\n\t}\n\tif(!options.doNotNotify) {\n\t\t$tw.notifier.display(succeeded ? \"$:/language/Notifications/CopiedToClipboard/Succeeded\" : \"$:/language/Notifications/CopiedToClipboard/Failed\");\n\t}\n\tdocument.body.removeChild(textArea);\n};\n\nexports.getLocationPath = function() {\n\treturn window.location.toString().split(\"#\")[0];\n};\n\n\n})();\n", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/dom/dragndrop.js": { - "title": "$:/core/modules/utils/dom/dragndrop.js", - "text": "/*\\\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\"use strict\";\n\n/*\nOptions:\n\ndomNode: dom node to make draggable\ndragImageType: \"pill\" or \"dom\"\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 || \"dom\",\n\t\tdragImage,\n\t\tdomNode = options.domNode;\n\t// Make the dom node draggable (not necessary for anchor tags)\n\tif((domNode.tagName || \"\").toLowerCase() !== \"a\") {\n\t\tdomNode.setAttribute(\"draggable\",\"true\");\t\t\n\t}\n\t// Add event handlers\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \"dragstart\", 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 && options.dragTiddlerFn(),\n\t\t\t\tdragFilter = options.dragFilterFn && 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 > 0 && 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,\"tc-dragging\");\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(\"div\");\n\t\t\t\tdragImage.className = \"tc-tiddler-dragger\";\n\t\t\t\tvar inner = options.widget.document.createElement(\"div\");\n\t\t\t\tinner.className = \"tc-tiddler-dragger-inner\";\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 + \" tiddlers\"\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 = \"all\";\n\t\t\t\tif(dataTransfer.setDragImage) {\n\t\t\t\t\tif(dragImageType === \"pill\") {\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 > 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 = \"[\" + jsonData.join(\",\") + \"]\";\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(\"text/vnd.tiddler\",jsonData);\n\t\t\t\t\tdataTransfer.setData(\"text/plain\",titleString);\n\t\t\t\t\tdataTransfer.setData(\"text/x-moz-url\",\"data:text/vnd.tiddler,\" + encodeURIComponent(jsonData));\n\t\t\t\t}\n\t\t\t\tdataTransfer.setData(\"URL\",\"data:text/vnd.tiddler,\" + encodeURIComponent(jsonData));\n\t\t\t\tdataTransfer.setData(\"Text\",titleString);\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t\treturn false;\n\t\t}},\n\t\t{name: \"dragend\", 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 && options.dragTiddlerFn(),\n\t\t\t\t\tdragFilter = options.dragFilterFn && 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,\"tc-dragging\");\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(\"Available data types:\");\n\t\tfor(var type=0; type<dataTransfer.types.length; type++) {\n\t\t\tconsole.log(\"type\",dataTransfer.types[type],dataTransfer.getData(dataTransfer.types[type]))\n\t\t}\n\t}\n\tfor(var t=0; t<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 !== \"\" && data !== null) {\n\t\t\t\tif($tw.log.IMPORT) {\n\t\t\t\t\tconsole.log(\"Importing data type '\" + dataType.type + \"', data: '\" + data + \"'\")\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: \"text/vnd.tiddler\", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn parseJSONTiddlers(data,fallbackTitle);\n\t}},\n\t{type: \"URL\", 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: \"text/x-moz-url\", 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: \"text/html\", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn [{title: fallbackTitle, text: data}];\n\t}},\n\t{type: \"text/plain\", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn [{title: fallbackTitle, text: data}];\n\t}},\n\t{type: \"Text\", IECompatible: true, toTiddlerFieldsArray: function(data,fallbackTitle) {\n\t\treturn [{title: fallbackTitle, text: data}];\n\t}},\n\t{type: \"text/uri-list\", 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", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/dom/http.js": { - "title": "$:/core/modules/utils/dom/http.js", - "text": "/*\\\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\"use strict\";\n\n/*\nA quick and dirty HTTP function; to be refactored later. Options are:\n\turl: URL to retrieve\n\theaders: hashmap of headers to send\n\ttype: GET, PUT, POST etc\n\tcallback: function invoked with (err,data,xhr)\n\treturnProp: string name of the property to return as first argument of callback\n*/\nexports.httpRequest = function(options) {\n\tvar type = options.type || \"GET\",\n\t\turl = options.url,\n\t\theaders = options.headers || {accept: \"application/json\"},\n\t\thasHeader = function(targetHeader) {\n\t\t\ttargetHeader = targetHeader.toLowerCase();\n\t\t\tvar result = false;\n\t\t\t$tw.utils.each(headers,function(header,headerTitle,object) {\n\t\t\t\tif(headerTitle.toLowerCase() === targetHeader) {\n\t\t\t\t\tresult = true;\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn result;\n\t\t},\n\t\treturnProp = options.returnProp || \"responseText\",\n\t\trequest = new XMLHttpRequest(),\n\t\tdata = \"\",\n\t\tf,results;\n\t// Massage the data hashmap into a string\n\tif(options.data) {\n\t\tif(typeof options.data === \"string\") { // 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 + \"=\" + encodeURIComponent(dataItem));\n\t\t\t});\n\t\t\tif(type === \"GET\" || type === \"HEAD\") {\n\t\t\t\turl += \"?\" + results.join(\"&\");\n\t\t\t} else {\n\t\t\t\tdata = results.join(\"&\");\n\t\t\t}\n\t\t}\n\t}\n\t// Set up the state change handler\n\trequest.onreadystatechange = function() {\n\t\tif(this.readyState === 4) {\n\t\t\tif(this.status === 200 || this.status === 201 || this.status === 204) {\n\t\t\t\t// Success!\n\t\t\t\toptions.callback(null,this[returnProp],this);\n\t\t\t\treturn;\n\t\t\t}\n\t\t// Something went wrong\n\t\toptions.callback($tw.language.getString(\"Error/XMLHttpRequest\") + \": \" + this.status,null,this);\n\t\t}\n\t};\n\t// Make the request\n\trequest.open(type,url,true);\n\tif(headers) {\n\t\t$tw.utils.each(headers,function(header,headerTitle,object) {\n\t\t\trequest.setRequestHeader(headerTitle,header);\n\t\t});\n\t}\n\tif(data && !hasHeader(\"Content-Type\")) {\n\t\trequest.setRequestHeader(\"Content-Type\",\"application/x-www-form-urlencoded; charset=UTF-8\");\n\t}\n\tif(!hasHeader(\"X-Requested-With\")) {\n\t\trequest.setRequestHeader(\"X-Requested-With\",\"TiddlyWiki\");\n\t}\n\ttry {\n\t\trequest.send(data);\n\t} catch(e) {\n\t\toptions.callback(e,null,this);\n\t}\n\treturn request;\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/dom/keyboard.js": { - "title": "$:/core/modules/utils/dom/keyboard.js", - "text": "/*\\\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\"use strict\";\n\n[\"parseKeyDescriptor\",\"checkKeyDescriptor\"].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", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/dom/modal.js": { - "title": "$:/core/modules/utils/dom/modal.js", - "text": "/*\\\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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\nvar navigator = require(\"$:/core/modules/widgets/navigator.js\");\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 && (options.variables.rootwindow === \"true\" ||\n\t\t\t\toptions.variables.rootwindow === \"yes\") ? document :\n\t\t\t\t(options.event.event && options.event.event.target ? options.event.event.target.ownerDocument : document);\n\tthis.srcWindow = this.srcDocument.defaultView;\n\tvar self = this,\n\t\trefreshHandler,\n\t\tduration = $tw.utils.getAnimationDuration(),\n\t\ttiddler = this.wiki.getTiddler(title);\n\t// Don't do anything if the tiddler doesn't exist\n\tif(!tiddler) {\n\t\treturn;\n\t}\n\t// Create the variables\n\tvar variables = $tw.utils.extend({\n\t\t\tcurrentTiddler: title,\n\t\t\t\"tv-story-list\": (options.event && options.event.widget ? options.event.widget.getVariable(\"tv-story-list\") : \"\"),\n\t\t\t\"tv-history-list\": (options.event && options.event.widget ? options.event.widget.getVariable(\"tv-history-list\") : \"\")\n\t\t},options.variables);\n\n\t// Create the wrapper divs\n\tvar wrapper = this.srcDocument.createElement(\"div\"),\n\t\tmodalBackdrop = this.srcDocument.createElement(\"div\"),\n\t\tmodalWrapper = this.srcDocument.createElement(\"div\"),\n\t\tmodalHeader = this.srcDocument.createElement(\"div\"),\n\t\theaderTitle = this.srcDocument.createElement(\"h3\"),\n\t\tmodalBody = this.srcDocument.createElement(\"div\"),\n\t\tmodalLink = this.srcDocument.createElement(\"a\"),\n\t\tmodalFooter = this.srcDocument.createElement(\"div\"),\n\t\tmodalFooterHelp = this.srcDocument.createElement(\"span\"),\n\t\tmodalFooterButtons = this.srcDocument.createElement(\"span\");\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,\"tc-modal-wrapper\");\n\tif(tiddler.fields && tiddler.fields.class) {\n\t\t$tw.utils.addClass(wrapper,tiddler.fields.class);\n\t}\n\t$tw.utils.addClass(modalBackdrop,\"tc-modal-backdrop\");\n\t$tw.utils.addClass(modalWrapper,\"tc-modal\");\n\t$tw.utils.addClass(modalHeader,\"tc-modal-header\");\n\t$tw.utils.addClass(modalBody,\"tc-modal-body\");\n\t$tw.utils.addClass(modalFooter,\"tc-modal-footer\");\n\t// Join them together\n\twrapper.appendChild(modalBackdrop);\n\twrapper.appendChild(modalWrapper);\n\tmodalHeader.appendChild(headerTitle);\n\tmodalWrapper.appendChild(modalHeader);\n\tmodalWrapper.appendChild(modalBody);\n\tmodalFooter.appendChild(modalFooterHelp);\n\tmodalFooter.appendChild(modalFooterButtons);\n\tmodalWrapper.appendChild(modalFooter);\n\tvar navigatorTree = {\n\t\t\"type\": \"navigator\",\n\t\t\"attributes\": {\n\t\t\t\"story\": {\n\t\t\t\t\"name\": \"story\",\n\t\t\t\t\"type\": \"string\",\n\t\t\t\t\"value\": variables[\"tv-story-list\"]\n\t\t\t},\n\t\t\t\"history\": {\n\t\t\t\t\"name\": \"history\",\n\t\t\t\t\"type\": \"string\",\n\t\t\t\t\"value\": variables[\"tv-history-list\"]\n\t\t\t}\n\t\t},\n\t\t\"tag\": \"$navigator\",\n\t\t\"isBlock\": true,\n\t\t\"children\": []\n\t};\n\tvar navigatorWidgetNode = new navigator.navigator(navigatorTree, {\n\t\twiki: this.wiki,\n\t\tdocument : this.srcDocument,\n\t\tparentWidget: $tw.rootWidget\n\t});\n\tnavigatorWidgetNode.render(modalBody,null);\n\t\n\t// Render the title of the message\n\tvar headerWidgetNode = this.wiki.makeTranscludeWidget(title,{\n\t\tfield: \"subtitle\",\n\t\tmode: \"inline\",\n\t\tchildren: [{\n\t\t\ttype: \"text\",\n\t\t\tattributes: {\n\t\t\t\ttext: {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tvalue: title\n\t\t}}}],\n\t\tparentWidget: navigatorWidgetNode,\n\t\tdocument: this.srcDocument,\n\t\tvariables: variables,\n\t\timportPageMacros: true\n\t});\n\theaderWidgetNode.render(headerTitle,null);\n\t// Render the body of the message\n\tvar bodyWidgetNode = this.wiki.makeTranscludeWidget(title,{\n\t\tparentWidget: navigatorWidgetNode,\n\t\tdocument: this.srcDocument,\n\t\tvariables: variables,\n\t\timportPageMacros: true\n\t});\n\n\tbodyWidgetNode.render(modalBody,null);\n\t// Setup the link if present\n\tif(options.downloadLink) {\n\t\tmodalLink.href = options.downloadLink;\n\t\tmodalLink.appendChild(this.srcDocument.createTextNode(\"Right-click to save changes\"));\n\t\tmodalBody.appendChild(modalLink);\n\t}\n\t// Render the footer of the message\n\tif(tiddler.fields && tiddler.fields.help) {\n\t\tvar link = this.srcDocument.createElement(\"a\");\n\t\tlink.setAttribute(\"href\",tiddler.fields.help);\n\t\tlink.setAttribute(\"target\",\"_blank\");\n\t\tlink.setAttribute(\"rel\",\"noopener noreferrer\");\n\t\tlink.appendChild(this.srcDocument.createTextNode(\"Help\"));\n\t\tmodalFooterHelp.appendChild(link);\n\t\tmodalFooterHelp.style.float = \"left\";\n\t}\n\tvar footerWidgetNode = this.wiki.makeTranscludeWidget(title,{\n\t\tfield: \"footer\",\n\t\tmode: \"inline\",\n\t\tchildren: [{\n\t\t\ttype: \"button\",\n\t\t\tattributes: {\n\t\t\t\tmessage: {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tvalue: \"tm-close-tiddler\"\n\t\t\t\t}\n\t\t\t},\n\t\t\tchildren: [{\n\t\t\t\ttype: \"text\",\n\t\t\t\tattributes: {\n\t\t\t\t\ttext: {\n\t\t\t\t\t\ttype: \"string\",\n\t\t\t\t\t\tvalue: $tw.language.getString(\"Buttons/Close/Caption\")\n\t\t\t}}}\n\t\t]}],\n\t\tparentWidget: navigatorWidgetNode,\n\t\tdocument: this.srcDocument,\n\t\tvariables: variables,\n\t\timportPageMacros: true\n\t});\n\tfooterWidgetNode.render(modalFooterButtons,null);\n\t// Set up the refresh handler\n\trefreshHandler = function(changes) {\n\t\theaderWidgetNode.refresh(changes,modalHeader,null);\n\t\tbodyWidgetNode.refresh(changes,modalBody,null);\n\t\tfooterWidgetNode.refresh(changes,modalFooterButtons,null);\n\t};\n\tthis.wiki.addEventListener(\"change\",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(\"change\",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: \"0\"}\n\t\t]);\n\t\t$tw.utils.setStyle(modalWrapper,[\n\t\t\t{transform: \"translateY(\" + self.srcWindow.innerHeight + \"px)\"}\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(\"tm-close-tiddler\",closeHandler,false);\n\tbodyWidgetNode.addEventListener(\"tm-close-tiddler\",closeHandler,false);\n\tfooterWidgetNode.addEventListener(\"tm-close-tiddler\",closeHandler,false);\n\t// Set the initial styles for the message\n\t$tw.utils.setStyle(modalBackdrop,[\n\t\t{opacity: \"0\"}\n\t]);\n\t$tw.utils.setStyle(modalWrapper,[\n\t\t{transformOrigin: \"0% 0%\"},\n\t\t{transform: \"translateY(\" + (-this.srcWindow.innerHeight) + \"px)\"}\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: \"opacity \" + duration + \"ms ease-out\"}\n\t]);\n\t$tw.utils.setStyle(modalWrapper,[\n\t\t{transition: $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms ease-in-out\"}\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: \"0.7\"}\n\t]);\n\t$tw.utils.setStyle(modalWrapper,[\n\t\t{transform: \"translateY(0px)\"}\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,\"tc-modal-displayed\",this.modalCount > 0);\n\t}\n};\n\nexports.Modal = Modal;\n\n})();\n", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/dom/notifier.js": { - "title": "$:/core/modules/utils/dom/notifier.js", - "text": "/*\\\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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\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(\"div\"),\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,\"tc-notification\");\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(\"change\",refreshHandler);\n\t// Set the initial styles for the notification\n\t$tw.utils.setStyle(notification,[\n\t\t{opacity: \"0\"},\n\t\t{transformOrigin: \"0% 0%\"},\n\t\t{transform: \"translateY(\" + (-window.innerHeight) + \"px)\"},\n\t\t{transition: \"opacity \" + duration + \"ms ease-out, \" + $tw.utils.roundTripPropertyName(\"transform\") + \" \" + duration + \"ms ease-in-out\"}\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: \"1.0\"},\n\t\t{transform: \"translateY(0px)\"}\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(\"change\",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: \"0.0\"},\n\t\t\t{transform: \"translateX(\" + (notification.offsetWidth) + \"px)\"}\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", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/dom/popup.js": { - "title": "$:/core/modules/utils/dom/popup.js", - "text": "/*\\\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\"use strict\";\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<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 === \"click\") {\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,\"tc-popup-handle\")) {\n\t\t\tisHandle = true;\n\t\t\tpopupCount++;\n\t\t}\n\t\tif($tw.utils.hasClass(node,\"tc-popup-keep\")) {\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,\"tc-popup\")) {\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 && this.findPopup(options.title) === -1) {\n\t\tthis.popups.push({\n\t\t\ttitle: options.title,\n\t\t\twiki: options.wiki,\n\t\t\tdomNode: options.domNode,\n\t\t\tnoStateReference: options.noStateReference\n\t\t});\n\t}\n\t// Set the state tiddler\n\tvar rect;\n\tif(options.domNodeRect) {\n\t\trect = options.domNodeRect;\n\t} else {\n\t\trect = {\n\t\t\tleft: options.domNode.offsetLeft,\n\t\t\ttop: options.domNode.offsetTop,\n\t\t\twidth: options.domNode.offsetWidth,\n\t\t\theight: options.domNode.offsetHeight\n\t\t};\n\t}\n\tvar popupRect = \"(\" + rect.left + \",\" + rect.top + \",\" + \n\t\t\t\trect.width + \",\" + rect.height + \")\";\n\tif(options.noStateReference) {\n\t\toptions.wiki.setText(options.title,\"text\",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 > 0) {\n\t\tthis.rootElement.addEventListener(\"click\",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<numPopups; t++) {\n\t\tvar popup = this.popups.pop();\n\t\tif(popup.title) {\n\t\t\tif(popup.noStateReference) {\n\t\t\t\tpopup.wiki.deleteTiddler(popup.title);\n\t\t\t} else {\n\t\t\t\tpopup.wiki.deleteTiddler($tw.utils.parseTextReference(popup.title).title);\n \t\t}\n\t\t}\n\t}\n\tif(this.popups.length === 0) {\n\t\tthis.rootElement.removeEventListener(\"click\",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", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/dom/scroller.js": { - "title": "$:/core/modules/utils/dom/scroller.js", - "text": "/*\\\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\"use strict\";\n\n/*\nEvent handler for when the `tm-scroll` event hits the document body\n*/\nvar PageScroller = function() {\n\tthis.idRequestFrame = null;\n\tthis.requestAnimationFrame = window.requestAnimationFrame ||\n\t\twindow.webkitRequestAnimationFrame ||\n\t\twindow.mozRequestAnimationFrame ||\n\t\tfunction(callback) {\n\t\t\treturn window.setTimeout(callback, 1000/60);\n\t\t};\n\tthis.cancelAnimationFrame = window.cancelAnimationFrame ||\n\t\twindow.webkitCancelAnimationFrame ||\n\t\twindow.webkitCancelRequestAnimationFrame ||\n\t\twindow.mozCancelAnimationFrame ||\n\t\twindow.mozCancelRequestAnimationFrame ||\n\t\tfunction(id) {\n\t\t\twindow.clearTimeout(id);\n\t\t};\n};\n\nPageScroller.prototype.isScrolling = function() {\n\treturn this.idRequestFrame !== null;\n}\n\nPageScroller.prototype.cancelScroll = function(srcWindow) {\n\tif(this.idRequestFrame) {\n\t\tthis.cancelAnimationFrame.call(srcWindow,this.idRequestFrame);\n\t\tthis.idRequestFrame = null;\n\t}\n};\n\n/*\nHandle an event\n*/\nPageScroller.prototype.handleEvent = function(event) {\n\tif(event.type === \"tm-scroll\") {\n\t\tif(event.paramObject && event.paramObject.selector) {\n\t\t\tthis.scrollSelectorIntoView(null,event.paramObject.selector);\n\t\t} else {\n\t\t\tthis.scrollIntoView(event.target);\t\t\t\n\t\t}\n\t\treturn false; // Event was handled\n\t}\n\treturn true;\n};\n\n/*\nHandle a scroll event hitting the page document\n*/\nPageScroller.prototype.scrollIntoView = function(element,callback) {\n\tvar self = this,\n\t\tduration = $tw.utils.getAnimationDuration(),\n\t srcWindow = element ? element.ownerDocument.defaultView : window;\n\t// Now get ready to scroll the body\n\tthis.cancelScroll(srcWindow);\n\tthis.startTime = Date.now();\n\t// Get the height of any position:fixed toolbars\n\tvar toolbar = srcWindow.document.querySelector(\".tc-adjust-top-of-scroll\"),\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 < 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 <= 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 >= 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 < 1) {\n\t\t\t\tself.idRequestFrame = self.requestAnimationFrame.call(srcWindow,drawFrame);\n\t\t\t}\n\t\t};\n\tdrawFrame();\n};\n\nPageScroller.prototype.scrollSelectorIntoView = function(baseElement,selector,callback) {\n\tbaseElement = baseElement || document.body;\n\tvar element = baseElement.querySelector(selector);\n\tif(element) {\n\t\tthis.scrollIntoView(element,callback);\t\t\n\t}\n};\n\nexports.PageScroller = PageScroller;\n\n})();\n", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/edition-info.js": { - "title": "$:/core/modules/utils/edition-info.js", - "text": "/*\\\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\"use strict\";\n\nvar fs = require(\"fs\"),\n\tpath = require(\"path\");\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<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<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] && $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,\"tiddlywiki.info\"),\"utf8\"));\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", - "type": "application/javascript", - "module-type": "utils-node" - }, - "$:/core/modules/utils/fakedom.js": { - "title": "$:/core/modules/utils/fakedom.js", - "text": "/*\\\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\"use strict\";\n\n// Sequence number used to enable us to track objects for testing\nvar sequenceNumber = null;\n\nvar bumpSequenceNumber = function(object) {\n\tif(sequenceNumber !== null) {\n\t\tobject.sequenceNumber = sequenceNumber++;\n\t}\n};\n\nvar TW_Node = function (){\n\tthrow TypeError(\"Illegal constructor\");\n};\n\nObject.defineProperty(TW_Node.prototype, 'ELEMENT_NODE', {\n\tget: function() {\n\t\treturn 1;\n\t}\n});\n\nObject.defineProperty(TW_Node.prototype, 'TEXT_NODE', {\n\tget: function() {\n\t\treturn 3;\n\t}\n});\n\nvar TW_TextNode = function(text) {\n\tbumpSequenceNumber(this);\n\tthis.textContent = text + \"\";\n};\n\nTW_TextNode.prototype = Object.create(TW_Node.prototype);\n\nObject.defineProperty(TW_TextNode.prototype, \"nodeType\", {\n\tget: function() {\n\t\treturn this.TEXT_NODE;\n\t}\n});\n\nObject.defineProperty(TW_TextNode.prototype, \"formattedTextContent\", {\n\tget: function() {\n\t\treturn this.textContent.replace(/(\\r?\\n)/g,\"\");\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 || \"http://www.w3.org/1999/xhtml\";\n};\n\nTW_Element.prototype = Object.create(TW_Node.prototype);\n\nObject.defineProperty(TW_Element.prototype, \"style\", {\n\tget: function() {\n\t\treturn this._style;\n\t},\n\tset: function(str) {\n\t\tvar self = this;\n\t\tstr = str || \"\";\n\t\t$tw.utils.each(str.split(\";\"),function(declaration) {\n\t\t\tvar parts = declaration.split(\":\"),\n\t\t\t\tname = $tw.utils.trim(parts[0]),\n\t\t\t\tvalue = $tw.utils.trim(parts[1]);\n\t\t\tif(name && value) {\n\t\t\t\tself._style[$tw.utils.convertStyleNameToPropertyName(name)] = value;\n\t\t\t}\n\t\t});\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"nodeType\", {\n\tget: function() {\n\t\treturn this.ELEMENT_NODE;\n\t}\n});\n\nTW_Element.prototype.getAttribute = function(name) {\n\tif(this.isRaw) {\n\t\tthrow \"Cannot getAttribute on a raw TW_Element\";\n\t}\n\treturn this.attributes[name];\n};\n\nTW_Element.prototype.setAttribute = function(name,value) {\n\tif(this.isRaw) {\n\t\tthrow \"Cannot setAttribute on a raw TW_Element\";\n\t}\n\tthis.attributes[name] = value + \"\";\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 \"Cannot removeAttribute on a raw TW_Element\";\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, \"childNodes\", {\n\tget: function() {\n\t\treturn this.children;\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"firstChild\", {\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, \"tagName\", {\n\tget: function() {\n\t\treturn this.tag || \"\";\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"className\", {\n\tget: function() {\n\t\treturn this.attributes[\"class\"] || \"\";\n\t},\n\tset: function(value) {\n\t\tthis.attributes[\"class\"] = value + \"\";\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"value\", {\n\tget: function() {\n\t\treturn this.attributes.value || \"\";\n\t},\n\tset: function(value) {\n\t\tthis.attributes.value = value + \"\";\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"outerHTML\", {\n\tget: function() {\n\t\tvar output = [],attr,a,v;\n\t\toutput.push(\"<\",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<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(\" \",attr[a],\"=\\\"\",$tw.utils.htmlEncode(v),\"\\\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(this._style) {\n\t\t\tvar style = [];\n\t\t\tfor(var s in this._style) {\n\t\t\t\tstyle.push($tw.utils.convertPropertyNameToStyleName(s) + \":\" + this._style[s] + \";\");\n\t\t\t}\n\t\t\tif(style.length > 0) {\n\t\t\t\toutput.push(\" style=\\\"\",style.join(\"\"),\"\\\"\");\n\t\t\t}\n\t\t}\n\t\toutput.push(\">\");\n\t\tif($tw.config.htmlVoidElements.indexOf(this.tag) === -1) {\n\t\t\toutput.push(this.innerHTML);\n\t\t\toutput.push(\"</\",this.tag,\">\");\n\t\t}\n\t\treturn output.join(\"\");\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"innerHTML\", {\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(\"\");\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, \"textInnerHTML\", {\n\tset: function(value) {\n\t\tif(this.isRaw) {\n\t\t\tthis.rawTextContent = value;\n\t\t} else {\n\t\t\tthrow \"Cannot set textInnerHTML of a non-raw TW_Element\";\n\t\t}\n\t}\n});\n\nObject.defineProperty(TW_Element.prototype, \"textContent\", {\n\tget: function() {\n\t\tif(this.isRaw) {\n\t\t\tif(this.rawTextContent === null) {\n\t\t\t\treturn \"\";\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(\"\");\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, \"formattedTextContent\", {\n\tget: function() {\n\t\tif(this.isRaw) {\n\t\t\treturn \"\";\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(\"\\n\");\n\t\t\t}\n\t\t\tif(this.tag === \"li\") {\n\t\t\t\tb.push(\"* \");\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(\"\\n\");\n\t\t\t}\n\t\t\treturn b.join(\"\");\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: \"CSS1Compat\", // For KaTeX to know that we're not a browser in quirks mode\n\tisTiddlyWikiFakeDom: true\n};\n\nexports.fakeDocument = document;\n\n})();\n", - "type": "application/javascript", - "module-type": "global" - }, - "$:/core/modules/utils/filesystem.js": { - "title": "$:/core/modules/utils/filesystem.js", - "text": "/*\\\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\"use strict\";\n\nvar fs = require(\"fs\"),\n\tpath = require(\"path\");\n\n/*\nReturn the subdirectories of a path\n*/\nexports.getSubdirectories = function(dirPath) {\n\tif(!$tw.utils.isDirectory(dirPath)) {\n\t\treturn null;\n\t}\n\tvar subdirs = [];\n\t$tw.utils.each(fs.readdirSync(dirPath),function(item) {\n\t\tif($tw.utils.isDirectory(path.resolve(dirPath,item))) {\n\t\t\tsubdirs.push(item);\n\t\t}\n\t});\n\treturn subdirs;\n}\n\n/*\nRecursively (and synchronously) copy a directory and all its content\n*/\nexports.copyDirectory = function(srcPath,dstPath) {\n\t// Remove any trailing path separators\n\tsrcPath = path.resolve($tw.utils.removeTrailingSeparator(srcPath));\n\tdstPath = path.resolve($tw.utils.removeTrailingSeparator(dstPath));\n\t// Check that neither director is within the other\n\tif(srcPath.substring(0,dstPath.length) === dstPath || dstPath.substring(0,srcPath.length) === srcPath) {\n\t\treturn \"Cannot copy nested directories\";\n\t}\n\t// Create the destination directory\n\tvar err = $tw.utils.createDirectory(dstPath);\n\tif(err) {\n\t\treturn err;\n\t}\n\t// Function to copy a folder full of files\n\tvar copy = function(srcPath,dstPath) {\n\t\tvar srcStats = fs.lstatSync(srcPath),\n\t\t\tdstExists = fs.existsSync(dstPath);\n\t\tif(srcStats.isFile()) {\n\t\t\t$tw.utils.copyFile(srcPath,dstPath);\n\t\t} else if(srcStats.isDirectory()) {\n\t\t\tvar items = fs.readdirSync(srcPath);\n\t\t\tfor(var t=0; t<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,\"r\"),\n\t\tdstFile = fs.openSync(dstPath,\"w\"),\n\t\tbytesRead = 1,\n\t\tpos = 0;\n\twhile (bytesRead > 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 \"Error creating directory '\" + subDirPath + \"'\";\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<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) && 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) !== \".\") {\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 > 0) {\n\t\t\treturn callback(null);\n\t\t}\n\t\tfs.rmdir(dirpath,function(err) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tself.deleteEmptyDirs(path.dirname(dirpath),callback);\n\t\t});\n\t});\n};\n\n/*\nCreate a fileInfo object for saving a tiddler:\n\tfilepath: the absolute path to the file containing the tiddler\n\ttype: the type of the tiddler file on disk (NOT the type of the tiddler)\n\thasMetaFile: true if the file also has a companion .meta file\n\tisEditableFile: true if the tiddler was loaded via non-standard options & marked editable\nOptions include:\n\tdirectory: absolute path of root directory to which we are saving\n\tpathFilters: optional array of filters to be used to generate the base path\n\textFilters: optional array of filters to be used to generate the base path\n\twiki: optional wiki for evaluating the pathFilters,\n\tfileInfo: an existing fileInfo to check against\n\toriginalpath: a preferred filepath if no pathFilters match\n*/\nexports.generateTiddlerFileInfo = function(tiddler,options) {\n\tvar fileInfo = {}, metaExt;\n\t// Propagate the isEditableFile flag\n\tif(options.fileInfo) {\n\t\tfileInfo.isEditableFile = options.fileInfo.isEditableFile || false;\n\t}\n\t// Check if the tiddler has any unsafe fields that can't be expressed in a .tid or .meta file: containing control characters, or leading/trailing whitespace\n\tvar hasUnsafeFields = false;\n\t$tw.utils.each(tiddler.getFieldStrings(),function(value,fieldName) {\n\t\tif(fieldName !== \"text\") {\n\t\t\thasUnsafeFields = hasUnsafeFields || /[\\x00-\\x1F]/mg.test(value);\n\t\t\thasUnsafeFields = hasUnsafeFields || ($tw.utils.trim(value) !== value);\n\t\t}\n\t});\n\t// Check for field values \n\tif(hasUnsafeFields) {\n\t\t// Save as a JSON file\n\t\tfileInfo.type = \"application/json\";\n\t\tfileInfo.hasMetaFile = false;\n\t} else {\n\t\t// Save as a .tid or a text/binary file plus a .meta file\n\t\tvar tiddlerType = tiddler.fields.type || \"text/vnd.tiddlywiki\";\n\t\tif(tiddlerType === \"text/vnd.tiddlywiki\") {\n\t\t\t// Save as a .tid file\n\t\t\tfileInfo.type = \"application/x-tiddler\";\n\t\t\tfileInfo.hasMetaFile = false;\n\t\t} else {\n\t\t\t// Save as a text/binary file and a .meta file\n\t\t\tfileInfo.type = tiddlerType;\n\t\t\tfileInfo.hasMetaFile = true;\n\t\t}\n\t\tif(options.extFilters) {\n\t\t\t// Check for extension override\n\t\t\tmetaExt = $tw.utils.generateTiddlerExtension(tiddler.fields.title,{\n\t\t\t\textFilters: options.extFilters,\n\t\t\t\twiki: options.wiki\n\t\t\t});\n\t\t\tif(metaExt){\n\t\t\t\tif(metaExt === \".tid\") {\n\t\t\t\t\t// Overriding to the .tid extension needs special handling\n\t\t\t\t\tfileInfo.type = \"application/x-tiddler\";\n\t\t\t\t\tfileInfo.hasMetaFile = false;\n\t\t\t\t} else if (metaExt === \".json\") {\n\t\t\t\t\t// Overriding to the .json extension needs special handling\n\t\t\t\t\tfileInfo.type = \"application/json\";\n\t\t\t\t\tfileInfo.hasMetaFile = false;\n\t\t\t\t} else {\n\t\t\t\t\t//If the new type matches a known extention, use that MIME type's encoding\n\t\t\t\t\tvar extInfo = $tw.utils.getFileExtensionInfo(metaExt);\n\t\t\t\t\tfileInfo.type = extInfo ? extInfo.type : null;\n\t\t\t\t\tfileInfo.encoding = $tw.utils.getTypeEncoding(metaExt);\n\t\t\t\t\tfileInfo.hasMetaFile = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t// Take the file extension from the tiddler content type or metaExt\n\tvar contentTypeInfo = $tw.config.contentTypeInfo[fileInfo.type] || {extension: \"\"};\n\t// Generate the filepath\n\tfileInfo.filepath = $tw.utils.generateTiddlerFilepath(tiddler.fields.title,{\n\t\textension: metaExt || contentTypeInfo.extension,\n\t\tdirectory: options.directory,\n\t\tpathFilters: options.pathFilters,\n\t\twiki: options.wiki,\n\t\tfileInfo: options.fileInfo,\n\t\toriginalpath: options.originalpath\n\t});\n\treturn fileInfo;\n};\n\n/*\nGenerate the file extension for saving a tiddler\nOptions include:\n\textFilters: optional array of filters to be used to generate the extention\n\twiki: optional wiki for evaluating the extFilters\n*/\nexports.generateTiddlerExtension = function(title,options) {\n\tvar self = this,\n\t\textension;\n\t// Check if any of the extFilters applies\n\tif(options.extFilters && options.wiki) { \n\t\t$tw.utils.each(options.extFilters,function(filter) {\n\t\t\tif(!extension) {\n\t\t\t\tvar source = options.wiki.makeTiddlerIterator([title]),\n\t\t\t\t\tresult = options.wiki.filterTiddlers(filter,null,source);\n\t\t\t\tif(result.length > 0) {\n\t\t\t\t\textension = result[0];\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\treturn extension;\n};\n\n/*\nGenerate the filepath for saving a tiddler\nOptions include:\n\textension: file extension to be added the finished filepath\n\tdirectory: absolute path of root directory to which we are saving\n\tpathFilters: optional array of filters to be used to generate the base path\n\twiki: optional wiki for evaluating the pathFilters\n\tfileInfo: an existing fileInfo object to check against\n*/\nexports.generateTiddlerFilepath = function(title,options) {\n\tvar self = this,\n\t\tdirectory = options.directory || \"\",\n\t\textension = options.extension || \"\",\n\t\toriginalpath = options.originalpath || \"\",\n\t\tfilepath;\t\n\t// Check if any of the pathFilters applies\n\tif(options.pathFilters && options.wiki) {\n\t\t$tw.utils.each(options.pathFilters,function(filter) {\n\t\t\tif(!filepath) {\n\t\t\t\tvar source = options.wiki.makeTiddlerIterator([title]),\n\t\t\t\t\tresult = options.wiki.filterTiddlers(filter,null,source);\n\t\t\t\tif(result.length > 0) {\n\t\t\t\t\tfilepath = result[0];\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\tif(!filepath && originalpath !== \"\") {\n\t\t//Use the originalpath without the extension\n\t\tvar ext = path.extname(originalpath);\n\t\tfilepath = originalpath.substring(0,originalpath.length - ext.length);\n\t} else if(!filepath) {\n\t\tfilepath = title;\n\t\t// If the filepath already ends in the extension then remove it\n\t\tif(filepath.substring(filepath.length - extension.length) === extension) {\n\t\t\tfilepath = filepath.substring(0,filepath.length - extension.length);\n\t\t}\n\t\t// Remove any forward or backward slashes so we don't create directories\n\t\tfilepath = filepath.replace(/\\/|\\\\/g,\"_\");\n\t}\n\t//If the path does not start with \".\" or \"..\" and a path seperator, then\n\tif(!/^\\.{1,2}[/\\\\]/g.test(filepath)) {\n\t\t// Don't let the filename start with any dots because such files are invisible on *nix\n\t\tfilepath = filepath.replace(/^\\.+/g,\"_\");\n\t}\n\t// Remove any characters that can't be used in cross-platform filenames\n\tfilepath = $tw.utils.transliterate(filepath.replace(/<|>|~|\\:|\\\"|\\||\\?|\\*|\\^/g,\"_\"));\n\t// Truncate the filename if it is too long\n\tif(filepath.length > 200) {\n\t\tfilepath = filepath.substr(0,200);\n\t}\n\t// If the resulting filename is blank (eg because the title is just punctuation characters)\n\tif(!filepath) {\n\t\t// ...then just use the character codes of the title\n\t\tfilepath = \"\";\t\n\t\t$tw.utils.each(title.split(\"\"),function(char) {\n\t\t\tif(filepath) {\n\t\t\t\tfilepath += \"-\";\n\t\t\t}\n\t\t\tfilepath += char.charCodeAt(0).toString();\n\t\t});\n\t}\n\t// Add a uniquifier if the file already exists\n\tvar fullPath, oldPath = (options.fileInfo) ? options.fileInfo.filepath : undefined,\n\t\tcount = 0;\n\tdo {\n\t\tfullPath = path.resolve(directory,filepath + (count ? \"_\" + count : \"\") + extension);\n\t\tif(oldPath && oldPath == fullPath) {\n\t\t\tbreak;\n\t\t}\n\t\tcount++;\n\t} while(fs.existsSync(fullPath));\n\t// If the last write failed with an error, or if path does not start with:\n\t//\tthe resolved options.directory, the resolved wikiPath directory, or the wikiTiddlersPath directory, \n\t//\tthen encodeURIComponent() and resolve to tiddler directory\n\tvar newPath = fullPath,\n\t\tencode = (options.fileInfo || {writeError: false}).writeError == true;\n\tif(!encode){\n\t\tencode = !(fullPath.indexOf(path.resolve(directory)) == 0 ||\n\t\t\tfullPath.indexOf(path.resolve($tw.boot.wikiPath)) == 0 ||\n\t\t\tfullPath.indexOf($tw.boot.wikiTiddlersPath) == 0);\n\t\t}\n\tif(encode){\n\t\tfullPath = path.resolve(directory, encodeURIComponent(fullPath));\n\t}\n\t// Call hook to allow plugins to modify the final path\n\tfullPath = $tw.hooks.invokeHook(\"th-make-tiddler-path\", newPath, fullPath);\n\t// Return the full path to the file\n\treturn fullPath;\n};\n\n/*\nSave a tiddler to a file described by the fileInfo:\n\tfilepath: the absolute path to the file containing the tiddler\n\ttype: the type of the tiddler file (NOT the type of the tiddler)\n\thasMetaFile: true if the file also has a companion .meta file\n*/\nexports.saveTiddlerToFile = function(tiddler,fileInfo,callback) {\n\t$tw.utils.createDirectory(path.dirname(fileInfo.filepath));\n\tif(fileInfo.hasMetaFile) {\n\t\t// Save the tiddler as a separate body and meta file\n\t\tvar typeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || \"text/plain\"] || {encoding: \"utf8\"};\n\t\tfs.writeFile(fileInfo.filepath,tiddler.fields.text,typeInfo.encoding,function(err) {\n\t\t\tif(err) {\n\t\t\t\treturn callback(err);\n\t\t\t}\n\t\t\tfs.writeFile(fileInfo.filepath + \".meta\",tiddler.getFieldStringBlock({exclude: [\"text\",\"bag\"]}),\"utf8\",callback);\n\t\t});\n\t} else {\n\t\t// Save the tiddler as a self contained templated file\n\t\tif(fileInfo.type === \"application/x-tiddler\") {\n\t\t\tfs.writeFile(fileInfo.filepath,tiddler.getFieldStringBlock({exclude: [\"text\",\"bag\"]}) + (!!tiddler.fields.text ? \"\\n\\n\" + tiddler.fields.text : \"\"),\"utf8\",callback);\n\t\t} else {\n\t\t\tfs.writeFile(fileInfo.filepath,JSON.stringify([tiddler.getFieldStrings({exclude: [\"bag\"]})],null,$tw.config.preferences.jsonSpaces),\"utf8\",callback);\n\t\t}\n\t}\n};\n\n/*\nSave a tiddler to a file described by the fileInfo:\n\tfilepath: the absolute path to the file containing the tiddler\n\ttype: the type of the tiddler file (NOT the type of the tiddler)\n\thasMetaFile: true if the file also has a companion .meta file\n*/\nexports.saveTiddlerToFileSync = function(tiddler,fileInfo) {\n\t$tw.utils.createDirectory(path.dirname(fileInfo.filepath));\n\tif(fileInfo.hasMetaFile) {\n\t\t// Save the tiddler as a separate body and meta file\n\t\tvar typeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || \"text/plain\"] || {encoding: \"utf8\"};\n\t\tfs.writeFileSync(fileInfo.filepath,tiddler.fields.text,typeInfo.encoding);\n\t\tfs.writeFileSync(fileInfo.filepath + \".meta\",tiddler.getFieldStringBlock({exclude: [\"text\",\"bag\"]}),\"utf8\");\n\t} else {\n\t\t// Save the tiddler as a self contained templated file\n\t\tif(fileInfo.type === \"application/x-tiddler\") {\n\t\t\tfs.writeFileSync(fileInfo.filepath,tiddler.getFieldStringBlock({exclude: [\"text\",\"bag\"]}) + (!!tiddler.fields.text ? \"\\n\\n\" + tiddler.fields.text : \"\"),\"utf8\");\n\t\t} else {\n\t\t\tfs.writeFileSync(fileInfo.filepath,JSON.stringify([tiddler.getFieldStrings({exclude: [\"bag\"]})],null,$tw.config.preferences.jsonSpaces),\"utf8\");\n\t\t}\n\t}\n};\n\n/*\nDelete a file described by the fileInfo if it exits\n*/\nexports.deleteTiddlerFile = function(fileInfo, callback) {\n\t//Only attempt to delete files that exist on disk\n\tif(!fileInfo.filepath || !fs.existsSync(fileInfo.filepath)) {\n\t\treturn callback(null);\n\t}\n\t// Delete the file\n\tfs.unlink(fileInfo.filepath,function(err) {\n\t\tif(err) {\n\t\t\treturn callback(err);\n\t\t}\t\n\t\t// Delete the metafile if present\n\t\tif(fileInfo.hasMetaFile && fs.existsSync(fileInfo.filepath + \".meta\")) {\n\t\t\tfs.unlink(fileInfo.filepath + \".meta\",function(err) {\n\t\t\t\tif(err) {\n\t\t\t\t\treturn callback(err);\n\t\t\t\t}\n\t\t\t\treturn $tw.utils.deleteEmptyDirs(path.dirname(fileInfo.filepath),callback);\n\t\t\t});\n\t\t} else {\n\t\t\treturn $tw.utils.deleteEmptyDirs(path.dirname(fileInfo.filepath),callback);\n\t\t}\n\t});\n};\n\n/*\nCleanup old files on disk, by comparing the options values:\n\tadaptorInfo from $tw.syncer.tiddlerInfo\n\tbootInfo from $tw.boot.files\n*/\nexports.cleanupTiddlerFiles = function(options, callback) {\n\tvar adaptorInfo = options.adaptorInfo || {},\n\tbootInfo = options.bootInfo || {},\n\ttitle = options.title || \"undefined\";\n\tif(adaptorInfo.filepath && bootInfo.filepath && adaptorInfo.filepath !== bootInfo.filepath) {\n\t\treturn $tw.utils.deleteTiddlerFile(adaptorInfo, function(err){\n\t\t\tif(err) {\n\t\t\t\tif ((err.code == \"EPERM\" || err.code == \"EACCES\") && err.syscall == \"unlink\") {\n\t\t\t\t\t// Error deleting the previous file on disk, should fail gracefully\n\t\t\t\t\t$tw.syncer.displayError(\"Server desynchronized. Error cleaning up previous file for tiddler: \"+title, err);\n\t\t\t\t\treturn callback(null);\n\t\t\t\t} else {\n\t\t\t\t\treturn callback(err);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn callback(null);\n\t\t});\n\t} else {\n\t\treturn callback(null);\n\t}\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "utils-node" - }, - "$:/core/modules/utils/linkedlist.js": { - "title": "$:/core/modules/utils/linkedlist.js", - "text": "/*\\\nmodule-type: utils\ntitle: $:/core/modules/utils/linkedlist.js\ntype: application/javascript\n\nThis is a doubly-linked indexed list intended for manipulation, particularly\npushTop, which it does with significantly better performance than an array.\n\n\\*/\n(function(){\n\nfunction LinkedList() {\n\tthis.clear();\n};\n\nLinkedList.prototype.clear = function() {\n\tthis.index = Object.create(null);\n\t// LinkedList performs the duty of both the head and tail node\n\tthis.next = this;\n\tthis.prev = this;\n\tthis.length = 0;\n};\n\nLinkedList.prototype.remove = function(value) {\n\tif($tw.utils.isArray(value)) {\n\t\tfor(var t=0; t<value.length; t++) {\n\t\t\t_removeOne(this,value[t]);\n\t\t}\n\t} else {\n\t\t_removeOne(this,value);\n\t}\n};\n\nLinkedList.prototype.push = function(/* values */) {\n\tfor(var i = 0; i < arguments.length; i++) {\n\t\tvar value = arguments[i];\n\t\tvar node = {value: value};\n\t\tvar preexistingNode = this.index[value];\n\t\t_linkToEnd(this,node);\n\t\tif(preexistingNode) {\n\t\t\t// We want to keep pointing to the first instance, but we want\n\t\t\t// to have that instance (or chain of instances) point to the\n\t\t\t// new one.\n\t\t\twhile (preexistingNode.copy) {\n\t\t\t\tpreexistingNode = preexistingNode.copy;\n\t\t\t}\n\t\t\tpreexistingNode.copy = node;\n\t\t} else {\n\t\t\tthis.index[value] = node;\n\t\t}\n\t}\n};\n\nLinkedList.prototype.pushTop = function(value) {\n\tif($tw.utils.isArray(value)) {\n\t\tfor(var t=0; t<value.length; t++) {\n\t\t\t_removeOne(this,value[t]);\n\t\t}\n\t\tthis.push.apply(this,value);\n\t} else {\n\t\tvar node = _removeOne(this,value);\n\t\tif(!node) {\n\t\t\tnode = {value: value};\n\t\t\tthis.index[value] = node;\n\t\t} else {\n\t\t\t// Put this node at the end of the copy chain.\n\t\t\tvar preexistingNode = node;\n\t\t\twhile(preexistingNode.copy) {\n\t\t\t\tpreexistingNode = preexistingNode.copy;\n\t\t\t}\n\t\t\t// The order of these three statements is important,\n\t\t\t// because sometimes preexistingNode == node.\n\t\t\tpreexistingNode.copy = node;\n\t\t\tthis.index[value] = node.copy;\n\t\t\tnode.copy = undefined;\n\t\t}\n\t\t_linkToEnd(this,node);\n\t}\n};\n\nLinkedList.prototype.each = function(callback) {\n\tfor(var ptr = this.next; ptr !== this; ptr = ptr.next) {\n\t\tcallback(ptr.value);\n\t}\n};\n\nLinkedList.prototype.toArray = function() {\n\tvar output = [];\n\tfor(var ptr = this.next; ptr !== this; ptr = ptr.next) {\n\t\toutput.push(ptr.value);\n\t}\n\treturn output;\n};\n\nfunction _removeOne(list,value) {\n\tvar node = list.index[value];\n\tif(node) {\n\t\tnode.prev.next = node.next;\n\t\tnode.next.prev = node.prev;\n\t\tlist.length -= 1;\n\t\t// Point index to the next instance of the same value, maybe nothing.\n\t\tlist.index[value] = node.copy;\n\t}\n\treturn node;\n};\n\nfunction _linkToEnd(list,node) {\n\t// Sticks the given node onto the end of the list.\n\tlist.prev.next = node;\n\tnode.prev = list.prev;\n\tlist.prev = node;\n\tnode.next = list;\n\tlist.length += 1;\n};\n\nexports.LinkedList = LinkedList;\n\n})();\n", - "module-type": "utils", - "type": "application/javascript" - }, - "$:/core/modules/utils/logger.js": { - "title": "$:/core/modules/utils/logger.js", - "text": "/*\\\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\"use strict\";\n\nvar ALERT_TAG = \"$:/tags/Alert\";\n\n/*\nMake a new logger\n*/\nfunction Logger(componentName,options) {\n\toptions = options || {};\n\tthis.componentName = componentName || \"\";\n\tthis.colour = options.colour || \"white\";\n\tthis.enable = \"enable\" in options ? options.enable : true;\n\tthis.save = \"save\" in options ? options.save : true;\n\tthis.saveLimit = options.saveLimit || 100 * 1024;\n\tthis.saveBufferLogger = this;\n\tthis.buffer = \"\";\n\tthis.alertCount = 0;\n}\n\nLogger.prototype.setSaveBuffer = function(logger) {\n\tthis.saveBufferLogger = logger;\n};\n\n/*\nLog a message\n*/\nLogger.prototype.log = function(/* args */) {\n\tvar self = this;\n\tif(this.enable) {\n\t\tif(this.saveBufferLogger.save) {\n\t\t\tthis.saveBufferLogger.buffer += $tw.utils.formatDateString(new Date(),\"YYYY MM DD 0hh:0mm:0ss.0XXX\") + \":\";\n\t\t\t$tw.utils.each(Array.prototype.slice.call(arguments,0),function(arg,index) {\n\t\t\t\tself.saveBufferLogger.buffer += \" \" + arg;\n\t\t\t});\n\t\t\tthis.saveBufferLogger.buffer += \"\\n\";\n\t\t\tthis.saveBufferLogger.buffer = this.saveBufferLogger.buffer.slice(-this.saveBufferLogger.saveLimit);\t\t\t\n\t\t}\n\t\tif(console !== undefined && console.log !== undefined) {\n\t\t\treturn Function.apply.call(console.log, console, [$tw.utils.terminalColour(this.colour),this.componentName + \":\"].concat(Array.prototype.slice.call(arguments,0)).concat($tw.utils.terminalColour()));\n\t\t}\n\t} \n};\n\n/*\nRead the message buffer\n*/\nLogger.prototype.getBuffer = function() {\n\treturn this.saveBufferLogger.buffer;\n};\n\n/*\nLog a structure as a table\n*/\nLogger.prototype.table = function(value) {\n\t(console.table || console.log)(value);\n};\n\n/*\nAlert a message\n*/\nLogger.prototype.alert = function(/* args */) {\n\tif(this.enable) {\n\t\t// Prepare the text of the alert\n\t\tvar text = Array.prototype.join.call(arguments,\" \");\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 && tiddler.fields.component === self.componentName && tiddler.fields.modified && (!alertFields || tiddler.fields.modified < 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(\"$:/temp/alerts/alert\",{prefix: \"\"}),\n\t\t\t\t\ttext: text,\n\t\t\t\t\ttags: [ALERT_TAG],\n\t\t\t\t\tcomponent: this.componentName\n\t\t\t\t};\n\t\t\t\texistingCount = 0;\n\t\t\t\tthis.alertCount += 1;\n\t\t\t}\n\t\t\talertFields.modified = new Date();\n\t\t\tif(++existingCount > 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(\"\\x1b[1;33m\" + text + \"\\x1b[0m\");\n\t\t}\t\t\n\t}\n};\n\n/*\nClear outstanding alerts\n*/\nLogger.prototype.clearAlerts = function() {\n\tvar self = this;\n\tif($tw.browser && this.alertCount > 0) {\n\t\t$tw.utils.each($tw.wiki.getTiddlersWithTag(ALERT_TAG),function(title) {\n\t\t\tvar tiddler = $tw.wiki.getTiddler(title);\n\t\t\tif(tiddler.fields.component === self.componentName) {\n\t\t\t\t$tw.wiki.deleteTiddler(title);\n\t\t\t}\n\t\t});\n\t\tthis.alertCount = 0;\n\t}\n};\n\nexports.Logger = Logger;\n\n})();\n", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/parsetree.js": { - "title": "$:/core/modules/utils/parsetree.js", - "text": "/*\\\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\"use strict\";\n\nexports.addAttributeToParseTreeNode = function(node,name,value) {\n\tnode.attributes = node.attributes || {};\n\tnode.attributes[name] = {type: \"string\", value: value};\n};\n\nexports.getAttributeValueFromParseTreeNode = function(node,name,defaultValue) {\n\tif(node.attributes && node.attributes[name] && 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[\"class\"] = node.attributes[\"class\"] || {type: \"string\", value: \"\"};\n\tif(node.attributes[\"class\"].type === \"string\") {\n\t\tif(node.attributes[\"class\"].value !== \"\") {\n\t\t\tclasses = node.attributes[\"class\"].value.split(\" \");\n\t\t}\n\t\tif(classString !== \"\") {\n\t\t\t$tw.utils.pushTop(classes,classString.split(\" \"));\n\t\t}\n\t\tnode.attributes[\"class\"].value = classes.join(\" \");\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: \"string\", value: \"\"};\n\t\tif(node.attributes.style.type === \"string\") {\n\t\t\tnode.attributes.style.value += name + \":\" + value + \";\";\n\t\t}\n};\n\nexports.findParseTreeNode = function(nodeArray,search) {\n\tfor(var t=0; t<nodeArray.length; t++) {\n\t\tif(nodeArray[t].type === search.type && 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 === \"text\") {\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(\"\");\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/performance.js": { - "title": "$:/core/modules/utils/performance.js", - "text": "/*\\\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\"use strict\";\n\nfunction Performance(enabled) {\n\tthis.enabled = !!enabled;\n\tthis.measures = {}; // Hashmap by measurement name of {time:, invocations:}\n\tthis.logger = new $tw.utils.Logger(\"performance\");\n\tthis.showGreeting();\n}\n\nPerformance.prototype.showGreeting = function() {\n\tif($tw.browser) {\n\t\tthis.logger.log(\"Execute $tw.perf.log(); to see filter execution timings\");\t\t\n\t}\n};\n\n/*\nWrap performance reporting around a top level function\n*/\nPerformance.prototype.report = function(name,fn) {\n\tvar self = this;\n\tif(this.enabled) {\n\t\treturn function() {\n\t\t\tvar startTime = $tw.utils.timer(),\n\t\t\t\tresult = fn.apply(this,arguments);\n\t\t\tself.logger.log(name + \": \" + $tw.utils.timer(startTime).toFixed(2) + \"ms\");\n\t\t\treturn result;\n\t\t};\n\t} else {\n\t\treturn fn;\n\t}\n};\n\nPerformance.prototype.log = function() {\n\tvar self = this,\n\t\ttotalTime = 0,\n\t\torderedMeasures = Object.keys(this.measures).sort(function(a,b) {\n\t\t\tif(self.measures[a].time > self.measures[b].time) {\n\t\t\t\treturn -1;\n\t\t\t} else if (self.measures[a].time < self.measures[b].time) {\n\t\t\t\treturn + 1;\n\t\t\t} else {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t$tw.utils.each(orderedMeasures,function(name) {\n\t\ttotalTime += self.measures[name].time;\n\t});\n\tvar results = []\n\t$tw.utils.each(orderedMeasures,function(name) {\n\t\tvar measure = self.measures[name];\n\t\tresults.push({name: name,invocations: measure.invocations, avgTime: measure.time / measure.invocations, totalTime: measure.time, percentTime: (measure.time / totalTime) * 100})\n\t});\n\tself.logger.table(results);\n};\n\n/*\nWrap performance measurements around a subfunction\n*/\nPerformance.prototype.measure = function(name,fn) {\n\tvar self = this;\n\tif(this.enabled) {\n\t\treturn function() {\n\t\t\tvar startTime = $tw.utils.timer(),\n\t\t\t\tresult = fn.apply(this,arguments);\n\t\t\tif(!(name in self.measures)) {\n\t\t\t\tself.measures[name] = {time: 0, invocations: 0};\n\t\t\t}\n\t\t\tself.measures[name].time += $tw.utils.timer(startTime);\n\t\t\tself.measures[name].invocations++;\n\t\t\treturn result;\n\t\t};\n\t} else {\n\t\treturn fn;\n\t}\n};\n\nexports.Performance = Performance;\n\n})();\n", - "type": "application/javascript", - "module-type": "global" - }, - "$:/core/modules/utils/pluginmaker.js": { - "title": "$:/core/modules/utils/pluginmaker.js", - "text": "/*\\\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\"use strict\";\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 \"No such tiddler as \" + 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 \"Cannot parse plugin tiddler \" + title + \"\\n\" + $tw.language.getString(\"Error/Caption\") + \": \" + 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>=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(\"version\") || \"0.0.0\") || {\n\t\t\tmajor: \"0\",\n\t\t\tminor: \"0\",\n\t\t\tpatch: \"0\"\n\t\t};\n\tpluginVersion.patch++;\n\tvar version = pluginVersion.major + \".\" + pluginVersion.minor + \".\" + pluginVersion.patch;\n\tif(pluginVersion.prerelease) {\n\t\tversion += \"-\" + pluginVersion.prerelease;\n\t}\n\tif(pluginVersion.build) {\n\t\tversion += \"+\" + 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: \"tm-auto-save-wiki\"});\n\t// Return a heartwarming confirmation\n\treturn \"Plugin \" + title + \" successfully saved\";\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/transliterate.js": { - "title": "$:/core/modules/utils/transliterate.js", - "text": "/*\\\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\"use strict\";\n\n/*\nTransliterate string to ASCII\n\n(Some pairs taken from http://semplicewebsites.com/removing-accents-javascript)\n*/\nexports.transliterationPairs = {\n\t\"Á\":\"A\",\n\t\"Ă\":\"A\",\n\t\"Ắ\":\"A\",\n\t\"Ặ\":\"A\",\n\t\"Ằ\":\"A\",\n\t\"Ẳ\":\"A\",\n\t\"Ẵ\":\"A\",\n\t\"Ǎ\":\"A\",\n\t\"Â\":\"A\",\n\t\"Ấ\":\"A\",\n\t\"Ậ\":\"A\",\n\t\"Ầ\":\"A\",\n\t\"Ẩ\":\"A\",\n\t\"Ẫ\":\"A\",\n\t\"Ä\":\"A\",\n\t\"Ǟ\":\"A\",\n\t\"Ȧ\":\"A\",\n\t\"Ǡ\":\"A\",\n\t\"Ạ\":\"A\",\n\t\"Ȁ\":\"A\",\n\t\"À\":\"A\",\n\t\"Ả\":\"A\",\n\t\"Ȃ\":\"A\",\n\t\"Ā\":\"A\",\n\t\"Ą\":\"A\",\n\t\"Å\":\"A\",\n\t\"Ǻ\":\"A\",\n\t\"Ḁ\":\"A\",\n\t\"Ⱥ\":\"A\",\n\t\"Ã\":\"A\",\n\t\"Ꜳ\":\"AA\",\n\t\"Æ\":\"AE\",\n\t\"Ǽ\":\"AE\",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z\",\n\t\"ff\":\"ff\",\n\t\"ffi\":\"ffi\",\n\t\"ffl\":\"ffl\",\n\t\"fi\":\"fi\",\n\t\"fl\":\"fl\",\n\t\"ij\":\"ij\",\n\t\"œ\":\"oe\",\n\t\"st\":\"st\",\n\t\"ₐ\":\"a\",\n\t\"ₑ\":\"e\",\n\t\"ᵢ\":\"i\",\n\t\"ⱼ\":\"j\",\n\t\"ₒ\":\"o\",\n\t\"ᵣ\":\"r\",\n\t\"ᵤ\":\"u\",\n\t\"ᵥ\":\"v\",\n\t\"ₓ\":\"x\",\n\t\"Ё\":\"YO\",\n\t\"Й\":\"I\",\n\t\"Ц\":\"TS\",\n\t\"У\":\"U\",\n\t\"К\":\"K\",\n\t\"Е\":\"E\",\n\t\"Н\":\"N\",\n\t\"Г\":\"G\",\n\t\"Ш\":\"SH\",\n\t\"Щ\":\"SCH\",\n\t\"З\":\"Z\",\n\t\"Х\":\"H\",\n\t\"Ъ\":\"'\",\n\t\"ё\":\"yo\",\n\t\"й\":\"i\",\n\t\"ц\":\"ts\",\n\t\"у\":\"u\",\n\t\"к\":\"k\",\n\t\"е\":\"e\",\n\t\"н\":\"n\",\n\t\"г\":\"g\",\n\t\"ш\":\"sh\",\n\t\"щ\":\"sch\",\n\t\"з\":\"z\",\n\t\"х\":\"h\",\n\t\"ъ\":\"'\",\n\t\"Ф\":\"F\",\n\t\"Ы\":\"I\",\n\t\"В\":\"V\",\n\t\"А\":\"a\",\n\t\"П\":\"P\",\n\t\"Р\":\"R\",\n\t\"О\":\"O\",\n\t\"Л\":\"L\",\n\t\"Д\":\"D\",\n\t\"Ж\":\"ZH\",\n\t\"Э\":\"E\",\n\t\"ф\":\"f\",\n\t\"ы\":\"i\",\n\t\"в\":\"v\",\n\t\"а\":\"a\",\n\t\"п\":\"p\",\n\t\"р\":\"r\",\n\t\"о\":\"o\",\n\t\"л\":\"l\",\n\t\"д\":\"d\",\n\t\"ж\":\"zh\",\n\t\"э\":\"e\",\n\t\"Я\":\"Ya\",\n\t\"Ч\":\"CH\",\n\t\"С\":\"S\",\n\t\"М\":\"M\",\n\t\"И\":\"I\",\n\t\"Т\":\"T\",\n\t\"Ь\":\"'\",\n\t\"Б\":\"B\",\n\t\"Ю\":\"YU\",\n\t\"я\":\"ya\",\n\t\"ч\":\"ch\",\n\t\"с\":\"s\",\n\t\"м\":\"m\",\n\t\"и\":\"i\",\n\t\"т\":\"t\",\n\t\"ь\":\"'\",\n\t\"б\":\"b\",\n\t\"ю\":\"yu\"\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] || \"\"\n\t});\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/utils/utils.js": { - "title": "$:/core/modules/utils/utils.js", - "text": "/*\\\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\"use strict\";\n\nvar base64utf8 = require(\"$:/core/modules/utils/base64-utf8/base64-utf8.module.js\");\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 && $tw.node && 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 \"\\x1b[\" + code + \"m\";\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"\\x1b[0m\"; // Cancel colour\n\t\t}\n\t}\n\treturn \"\";\n};\n\nexports.terminalColourLookup = {\n\t\"black\": \"0;30\",\n\t\"red\": \"0;31\",\n\t\"green\": \"0;32\",\n\t\"brown/orange\": \"0;33\",\n\t\"blue\": \"0;34\",\n\t\"purple\": \"0;35\",\n\t\"cyan\": \"0;36\",\n\t\"light gray\": \"0;37\"\n};\n\n/*\nDisplay a warning, in colour if we're on a terminal\n*/\nexports.warning = function(text) {\n\texports.log(text,\"brown/orange\");\n};\n\n/*\nLog a table of name: value pairs\n*/\nexports.logTable = function(data) {\n\tif(console.table) {\n\t\tconsole.table(data);\n\t} else {\n\t\t$tw.utils.each(data,function(value,name) {\n\t\t\tconsole.log(name + \": \" + value);\n\t\t});\n\t}\n}\n\n/*\nReturn the integer represented by the str (string).\nReturn the dflt (default) parameter if str is not a base-10 number.\n*/\nexports.getInt = function(str,deflt) {\n\tvar i = parseInt(str,10);\n\treturn isNaN(i) ? deflt : i;\n}\n\n/*\nRepeatedly replaces a substring within a string. Like String.prototype.replace, but without any of the default special handling of $ sequences in the replace string\n*/\nexports.replaceString = function(text,search,replace) {\n\treturn text.replace(search,function() {\n\t\treturn replace;\n\t});\n};\n\n/*\nRepeats a string\n*/\nexports.repeat = function(str,count) {\n\tvar result = \"\";\n\tfor(var t=0;t<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 === \"string\") {\n\t\treturn str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n\t} else {\n\t\treturn str;\n\t}\n};\n\nexports.trimPrefix = function(str,unwanted) {\n\tif(typeof str === \"string\" && typeof unwanted === \"string\") {\n\t\tif(unwanted === \"\") {\n\t\t\treturn str.replace(/^\\s\\s*/, '');\n\t\t} else {\n\t\t\t// Safely regexp-escape the unwanted text\n\t\t\tunwanted = unwanted.replace(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n\t\t\tvar regex = new RegExp('^(' + unwanted + ')+');\n\t\t\treturn str.replace(regex, '');\n\t\t}\n\t} else {\n\t\treturn str;\n\t}\n};\n\nexports.trimSuffix = function(str,unwanted) {\n\tif(typeof str === \"string\" && typeof unwanted === \"string\") {\n\t\tif(unwanted === \"\") {\n\t\t\treturn str.replace(/\\s\\s*$/, '');\n\t\t} else {\n\t\t\t// Safely regexp-escape the unwanted text\n\t\t\tunwanted = unwanted.replace(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n\t\t\tvar regex = new RegExp('(' + unwanted + ')+$');\n\t\t\treturn str.replace(regex, '');\n\t\t}\n\t} else {\n\t\treturn str;\n\t}\n};\n\n/*\nConvert a string to sentence case (ie capitalise first letter)\n*/\nexports.toSentenceCase = function(str) {\n\treturn (str || \"\").replace(/^\\S/, function(c) {return c.toUpperCase();});\n}\n\n/*\nConvert a string to title case (ie capitalise each initial letter)\n*/\nexports.toTitleCase = function(str) {\n\treturn (str || \"\").replace(/(^|\\s)\\S/g, function(c) {return c.toUpperCase();});\n}\n\t\n/*\nFind the line break preceding a given position in a string\nReturns position immediately after that line break, or the start of the string\n*/\nexports.findPrecedingLineBreak = function(text,pos) {\n\tvar result = text.lastIndexOf(\"\\n\",pos - 1);\n\tif(result === -1) {\n\t\tresult = 0;\n\t} else {\n\t\tresult++;\n\t\tif(text.charAt(result) === \"\\r\") {\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(\"\\n\",pos);\n\tif(result === -1) {\n\t\tresult = text.length;\n\t} else {\n\t\tif(text.charAt(result) === \"\\r\") {\n\t\t\tresult++;\n\t\t}\n\t}\n\treturn result;\n};\n\n/*\nReturn the number of keys in an object\n*/\nexports.count = function(object) {\n\treturn Object.keys(object || {}).length;\n};\n\n/*\nDetermine whether an array-item is an object-property\n*/\nexports.hopArray = function(object,array) {\n\tfor(var i=0; i<array.length; i++) {\n\t\tif($tw.utils.hop(object,array[i])) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n\n/*\nRemove entries from an array\n\tarray: array to modify\n\tvalue: a single value to remove, or an array of values to remove\n*/\nexports.removeArrayEntries = function(array,value) {\n\tvar t,p;\n\tif($tw.utils.isArray(value)) {\n\t\tfor(t=0; t<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 === \"object\") {\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) && (typeof property === \"object\") && !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 = \"\",\n\t\tt = template,\n\t\tmatches = [\n\t\t\t[/^0hh12/, function() {\n\t\t\t\treturn $tw.utils.pad($tw.utils.getHours12(date));\n\t\t\t}],\n\t\t\t[/^wYYYY/, function() {\n\t\t\t\treturn $tw.utils.pad($tw.utils.getYearForWeekNo(date),4);\n\t\t\t}],\n\t\t\t[/^hh12/, function() {\n\t\t\t\treturn $tw.utils.getHours12(date);\n\t\t\t}],\n\t\t\t[/^DDth/, function() {\n\t\t\t\treturn date.getDate() + $tw.utils.getDaySuffix(date);\n\t\t\t}],\n\t\t\t[/^YYYY/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getFullYear(),4);\n\t\t\t}],\n\t\t\t[/^aYYYY/, function() {\n\t\t\t\treturn $tw.utils.pad(Math.abs(date.getFullYear()),4);\n\t\t\t}],\n\t\t\t[/^\\{era:([^,\\|}]*)\\|([^}\\|]*)\\|([^}]*)\\}/, function(match) {\n\t\t\t\tvar year = date.getFullYear();\n\t\t\t\treturn year === 0 ? match[2] : (year < 0 ? match[1] : match[3]);\n\t\t\t}],\n\t\t\t[/^0hh/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getHours());\n\t\t\t}],\n\t\t\t[/^0mm/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getMinutes());\n\t\t\t}],\n\t\t\t[/^0ss/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getSeconds());\n\t\t\t}],\n\t\t\t[/^0XXX/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getMilliseconds(),3);\n\t\t\t}],\n\t\t\t[/^0DD/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getDate());\n\t\t\t}],\n\t\t\t[/^0MM/, function() {\n\t\t\t\treturn $tw.utils.pad(date.getMonth()+1);\n\t\t\t}],\n\t\t\t[/^0WW/, function() {\n\t\t\t\treturn $tw.utils.pad($tw.utils.getWeek(date));\n\t\t\t}],\n\t\t\t[/^ddd/, function() {\n\t\t\t\treturn $tw.language.getString(\"Date/Short/Day/\" + date.getDay());\n\t\t\t}],\n\t\t\t[/^mmm/, function() {\n\t\t\t\treturn $tw.language.getString(\"Date/Short/Month/\" + (date.getMonth() + 1));\n\t\t\t}],\n\t\t\t[/^DDD/, function() {\n\t\t\t\treturn $tw.language.getString(\"Date/Long/Day/\" + date.getDay());\n\t\t\t}],\n\t\t\t[/^MMM/, function() {\n\t\t\t\treturn $tw.language.getString(\"Date/Long/Month/\" + (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 < 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(\"[UTC]\") == 0 ) {\n\t\tif(t == \"[UTC]YYYY0MM0DD0hh0mm0ssXXX\")\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 = \"\";\n\t\t$tw.utils.each(matches, function(m) {\n\t\t\tvar match = m[0].exec(t);\n\t\t\tif(match) {\n\t\t\t\tmatchString = m[1].call(null,match);\n\t\t\t\tt = t.substr(match[0].length);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\tif(matchString) {\n\t\t\tresult += matchString;\n\t\t} else {\n\t\t\tresult += t.charAt(0);\n\t\t\tt = t.substr(1);\n\t\t}\n\t}\n\tresult = result.replace(/\\\\(.)/g,\"$1\");\n\treturn result;\n};\n\nexports.getAmPm = function(date) {\n\treturn $tw.language.getString(\"Date/Period/\" + (date.getHours() >= 12 ? \"pm\" : \"am\"));\n};\n\nexports.getDaySuffix = function(date) {\n\treturn $tw.language.getString(\"Date/DaySuffix/\" + 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 > 12 ? h-12 : ( h > 0 ? h : 12 );\n};\n\n/*\nConvert a date delta in milliseconds into a string representation of \"23 seconds ago\", \"27 minutes ago\" 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 < 0) {\n\t\tdelta = -1 * delta;\n\t\tfuturep = true;\n\t}\n\tvar units = [\n\t\t{name: \"Years\", duration: 365 * 24 * 60 * 60 * 1000},\n\t\t{name: \"Months\", duration: (365/12) * 24 * 60 * 60 * 1000},\n\t\t{name: \"Days\", duration: 24 * 60 * 60 * 1000},\n\t\t{name: \"Hours\", duration: 60 * 60 * 1000},\n\t\t{name: \"Minutes\", duration: 60 * 1000},\n\t\t{name: \"Seconds\", duration: 1000}\n\t];\n\tfor(var t=0; t<units.length; t++) {\n\t\tvar result = Math.floor(delta / units[t].duration);\n\t\tif(result >= 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\"RelativeDate/\" + (futurep ? \"Future\" : \"Past\") + \"/\" + 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\"RelativeDate/\" + (futurep ? \"Future\" : \"Past\") + \"/Second\",\n\t\t\t{variables:\n\t\t\t\t{period: \"1\"}\n\t\t\t}\n\t\t),\n\t\tupdatePeriod: 1000\n\t};\n};\n\n// Convert & to \"&\", < to \"<\", > to \">\", \" to \""\"\nexports.htmlEncode = function(s) {\n\tif(s) {\n\t\treturn s.toString().replace(/&/mg,\"&\").replace(/</mg,\"<\").replace(/>/mg,\">\").replace(/\\\"/mg,\""\");\n\t} else {\n\t\treturn \"\";\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 & and the ;\n\t\tc;\n\tif(e.charAt(0) === \"#\") {\n\t\tif(e.charAt(1) === \"x\" || e.charAt(1) === \"X\") {\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,\"\\n\").replace(/\\\\b/mg,\" \").replace(/\\\\s/mg,\"\\\\\").replace(/\\r/mg,\"\");\n};\n\n/*\n * Returns an escape sequence for given character. Uses \\x for characters <=\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 \"action\" nodes.\n */\n// Copied from peg.js, thanks to David Majda\nexports.escape = function(ch) {\n\tvar charCode = ch.charCodeAt(0);\n\tif(charCode <= 0xFF) {\n\t\treturn '\\\\x' + $tw.utils.pad(charCode.toString(16).toUpperCase());\n\t} else {\n\t\treturn '\\\\u' + $tw.utils.pad(charCode.toString(16).toUpperCase(),4);\n\t}\n};\n\n// Turns a string into a legal JavaScript string\n// Copied from peg.js, thanks to David Majda\nexports.stringify = function(s, rawUnicode) {\n\t/*\n\t* ECMA-262, 5th ed., 7.8.4: All characters may appear literally in a string\n\t* literal except for the closing quote character, backslash, carriage return,\n\t* line separator, paragraph separator, and line feed. Any character may\n\t* appear in the form of an escape sequence.\n\t*\n\t* For portability, we also escape all non-ASCII characters.\n\t*/\n\tvar regex = rawUnicode ? /[\\x00-\\x1f]/g : /[\\x00-\\x1f\\x80-\\uFFFF]/g;\n\treturn (s || \"\")\n\t\t.replace(/\\\\/g, '\\\\\\\\') // backslash\n\t\t.replace(/\"/g, '\\\\\"') // double quote character\n\t\t.replace(/'/g, \"\\\\'\") // single quote character\n\t\t.replace(/\\r/g, '\\\\r') // carriage return\n\t\t.replace(/\\n/g, '\\\\n') // line feed\n\t\t.replace(regex, exports.escape); // non-ASCII characters\n};\n\n// Turns a string into a legal JSON string\n// Derived from peg.js, thanks to David Majda\nexports.jsonStringify = function(s, rawUnicode) {\n\t// See http://www.json.org/\n\tvar regex = rawUnicode ? /[\\x00-\\x1f]/g : /[\\x00-\\x1f\\x80-\\uFFFF]/g;\n\treturn (s || \"\")\n\t\t.replace(/\\\\/g, '\\\\\\\\') // backslash\n\t\t.replace(/\"/g, '\\\\\"') // double quote character\n\t\t.replace(/\\r/g, '\\\\r') // carriage return\n\t\t.replace(/\\n/g, '\\\\n') // line feed\n\t\t.replace(/\\x08/g, '\\\\b') // backspace\n\t\t.replace(/\\x0c/g, '\\\\f') // formfeed\n\t\t.replace(/\\t/g, '\\\\t') // tab\n\t\t.replace(regex,function(s) {\n\t\t\treturn '\\\\u' + $tw.utils.pad(s.charCodeAt(0).toString(16).toUpperCase(),4);\n\t\t}); // non-ASCII characters\n};\n\n/*\nEscape the RegExp special characters with a preceding backslash\n*/\nexports.escapeRegExp = function(s) {\n return s.replace(/[\\-\\/\\\\\\^\\$\\*\\+\\?\\.\\(\\)\\|\\[\\]\\{\\}]/g, '\\\\$&');\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<>{}\\[\\]`|\"\\\\^]+(?:\\/|\\b)/i;\n\treturn externalRegExp.test(to);\n};\n\nexports.nextTick = function(fn) {\n/*global window: false */\n\tif(typeof process === \"undefined\") {\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 (\"backgroundColor\" --> \"background-color\")\n*/\nexports.hyphenateCss = function(propName) {\n\treturn propName.replace(/([A-Z])/g, function(match0,match1) {\n\t\treturn \"-\" + 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 && 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 !== \"string\") {\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(\"meta\");\n\t\tfor(var t=0; t<metatags.length; t++) {\n\t\t\tvar m = metatags[t];\n\t\t\tif(m.name === \"tiddlywiki-version\") {\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(\"$:/config/AnimationDuration\",\"400\"),10) || 0;\n};\n\n/*\nHash a string to a number\nDerived from http://stackoverflow.com/a/15710692\n*/\nexports.hashString = function(str) {\n\treturn str.split(\"\").reduce(function(a,b) {\n\t\ta = ((a << 5) - a) + b.charCodeAt(0);\n\t\treturn a & a;\n\t},0);\n};\n\n/*\nDecode a base64 string\n*/\nexports.base64Decode = function(string64) {\n\treturn base64utf8.base64.decode.call(base64utf8,string64);\n};\n\n/*\nEncode a string to base64\n*/\nexports.base64Encode = function(string64) {\n\treturn base64utf8.base64.encode.call(base64utf8,string64);\n};\n\n/*\nConvert a hashmap into a tiddler dictionary format sequence of name:value pairs\n*/\nexports.makeTiddlerDictionary = function(data) {\n\tvar output = [];\n\tfor(var name in data) {\n\t\toutput.push(name + \": \" + data[name]);\n\t}\n\treturn output.join(\"\\n\");\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 !== \"undefined\") {\n\t\tm = m - base;\n\t}\n\treturn m;\n};\n\n/*\nConvert text and content type to a data URI\n*/\nexports.makeDataUri = function(text,type,_canonical_uri) {\n\ttype = type || \"text/vnd.tiddlywiki\";\n\tvar typeInfo = $tw.config.contentTypeInfo[type] || $tw.config.contentTypeInfo[\"text/plain\"],\n\t\tisBase64 = typeInfo.encoding === \"base64\",\n\t\tparts = [];\n\tif(_canonical_uri) {\n\t\tparts.push(_canonical_uri);\n\t} else {\n\t\tparts.push(\"data:\");\n\t\tparts.push(type);\n\t\tparts.push(isBase64 ? \";base64\" : \"\");\n\t\tparts.push(\",\");\n\t\tparts.push(isBase64 ? text : encodeURIComponent(text));\t\t\n\t}\n\treturn parts.join(\"\");\n};\n\n/*\nUseful for finding out the fully escaped CSS selector equivalent to a given tag. For example:\n\n$tw.utils.tagToCssSelector(\"$:/tags/Stylesheet\") --> tc-tagged-\\%24\\%3A\\%2Ftags\\%2FStylesheet\n*/\nexports.tagToCssSelector = function(tagName) {\n\treturn \"tc-tagged-\" + encodeURIComponent(tagName).replace(/[!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^`{\\|}~,]/mg,function(c) {\n\t\treturn \"\\\\\" + 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 > 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 > 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 && lastIndex === position;\n\t}\n};\n\n/*\nReturn system information useful for debugging\n*/\nexports.getSystemInfo = function(str,ending,position) {\n\tvar results = [],\n\t\tsave = function(desc,value) {\n\t\t\tresults.push(desc + \": \" + value);\n\t\t};\n\tif($tw.browser) {\n\t\tsave(\"User Agent\",navigator.userAgent);\n\t\tsave(\"Online Status\",window.navigator.onLine);\n\t}\n\tif($tw.node) {\n\t\tsave(\"Node Version\",process.version);\n\t}\n\treturn results.join(\"\\n\");\n};\n\nexports.parseNumber = function(str) {\n\treturn parseFloat(str) || 0;\n};\n\nexports.parseInt = function(str) {\n\treturn parseInt(str,10) || 0;\n};\n\nexports.stringifyNumber = function(num) {\n\treturn num + \"\";\n};\n\nexports.makeCompareFunction = function(type,options) {\n\toptions = options || {};\n\tvar gt = options.invert ? -1 : +1,\n\t\tlt = options.invert ? +1 : -1,\n\t\tcompare = function(a,b) {\n\t\t\tif(a > b) {\n\t\t\t\treturn gt ;\n\t\t\t} else if(a < b) {\n\t\t\t\treturn lt;\n\t\t\t} else {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t},\n\t\ttypes = {\n\t\t\t\"number\": function(a,b) {\n\t\t\t\treturn compare($tw.utils.parseNumber(a),$tw.utils.parseNumber(b));\n\t\t\t},\n\t\t\t\"integer\": function(a,b) {\n\t\t\t\treturn compare($tw.utils.parseInt(a),$tw.utils.parseInt(b));\n\t\t\t},\n\t\t\t\"string\": function(a,b) {\n\t\t\t\treturn compare(\"\" + a,\"\" +b);\n\t\t\t},\n\t\t\t\"date\": function(a,b) {\n\t\t\t\tvar dateA = $tw.utils.parseDate(a),\n\t\t\t\t\tdateB = $tw.utils.parseDate(b);\n\t\t\t\tif(!isFinite(dateA)) {\n\t\t\t\t\tdateA = new Date(0);\n\t\t\t\t}\n\t\t\t\tif(!isFinite(dateB)) {\n\t\t\t\t\tdateB = new Date(0);\n\t\t\t\t}\n\t\t\t\treturn compare(dateA,dateB);\n\t\t\t},\n\t\t\t\"version\": function(a,b) {\n\t\t\t\treturn $tw.utils.compareVersions(a,b);\n\t\t\t}\n\t\t};\n\treturn (types[type] || types[options.defaultType] || types.number);\n};\n\n})();\n", - "type": "application/javascript", - "module-type": "utils" - }, - "$:/core/modules/widgets/action-confirm.js": { - "title": "$:/core/modules/widgets/action-confirm.js", - "text": "/*\\\n\ntitle: $:/core/modules/widgets/action-confirm.js\ntype: application/javascript\nmodule-type: widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ConfirmWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nConfirmWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nConfirmWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.parentDomNode = parent;\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nConfirmWidget.prototype.execute = function() {\n\tthis.message = this.getAttribute(\"$message\",$tw.language.getString(\"ConfirmAction\"));\n\tthis.prompt = (this.getAttribute(\"$prompt\",\"yes\") == \"no\" ? false : true);\n\tthis.makeChildWidgets();\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nConfirmWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\"$message\"] || changedAttributes[\"$prompt\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nConfirmWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tvar invokeActions = true,\n\t\thandled = true;\n\tif(this.prompt) {\n\t\tinvokeActions = confirm(this.message);\n\t}\n\tif(invokeActions) {\n\t\thandled = this.invokeActions(triggeringWidget,event);\n\t}\n\treturn handled;\n};\n\nConfirmWidget.prototype.allowActionPropagation = function() {\n\treturn false;\n};\n\nexports[\"action-confirm\"] = ConfirmWidget;\n\n})();", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/action-createtiddler.js": { - "title": "$:/core/modules/widgets/action-createtiddler.js", - "text": "/*\\\ntitle: $:/core/modules/widgets/action-createtiddler.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to create a new tiddler with a unique name and specified fields.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw:false, require:false, exports:false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$basetitle\");\n\tthis.hasBase = !!this.actionBaseTitle;\n\tthis.actionSaveTitle = this.getAttribute(\"$savetitle\");\n\tthis.actionSaveDraftTitle = this.getAttribute(\"$savedrafttitle\");\n\tthis.actionTimestamp = this.getAttribute(\"$timestamp\",\"yes\") === \"yes\";\n\t//Following params are new since 5.1.22\n\tthis.actionTemplate = this.getAttribute(\"$template\");\n\tthis.useTemplate = !!this.actionTemplate;\n\tthis.actionOverwrite = this.getAttribute(\"$overwrite\",\"no\");\n\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nCreateTiddlerWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif($tw.utils.count(changedAttributes) > 0) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nCreateTiddlerWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tvar title = this.wiki.getTiddlerText(\"$:/language/DefaultNewTiddlerTitle\"), // Get the initial new-tiddler title\n\t\tfields = {},\n\t\tcreationFields,\n\t\tmodificationFields;\n\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\tif(name.charAt(0) !== \"$\") {\n\t\t\tfields[name] = attribute;\n\t\t}\n\t});\n\tif(this.actionTimestamp) {\n\t\tcreationFields = this.wiki.getCreationFields();\n\t\tmodificationFields = this.wiki.getModificationFields();\n\t}\n\tif(this.hasBase && this.actionOverwrite === \"no\") {\n\t\ttitle = this.wiki.generateNewTitle(this.actionBaseTitle);\n\t} else if (this.hasBase && this.actionOverwrite === \"yes\") {\n\t\ttitle = this.actionBaseTitle\n\t}\n\t// NO $basetitle BUT $template parameter is available\n\t// the title MUST be unique, otherwise the template would be overwritten\n\tif (!this.hasBase && this.useTemplate) {\n\t\ttitle = this.wiki.generateNewTitle(this.actionTemplate);\n\t} else if (!this.hasBase && !this.useTemplate) {\n\t\t// If NO $basetitle AND NO $template use initial title\n\t\t// DON'T overwrite any stuff\n\t\ttitle = this.wiki.generateNewTitle(title);\n\t}\n\tvar templateTiddler = this.wiki.getTiddler(this.actionTemplate) || {};\n\tvar tiddler = this.wiki.addTiddler(new $tw.Tiddler(templateTiddler.fields,creationFields,fields,modificationFields,{title: title}));\n\tif(this.actionSaveTitle) {\n\t\tthis.wiki.setTextReference(this.actionSaveTitle,title,this.getVariable(\"currentTiddler\"));\n\t}\n\tif(this.actionSaveDraftTitle) {\n\t\tthis.wiki.setTextReference(this.actionSaveDraftTitle,this.wiki.generateDraftTitle(title),this.getVariable(\"currentTiddler\"));\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\"action-createtiddler\"] = CreateTiddlerWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/action-deletefield.js": { - "title": "$:/core/modules/widgets/action-deletefield.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.actionField = this.getAttribute(\"$field\");\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[\"$tiddler\"]) {\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 && tiddler) {\n\t\tremoveFields[this.actionField] = undefined;\n\t\tif(this.actionField in tiddler.fields) {\n\t\t\thasChanged = true;\n\t\t}\n\t}\n\tif(tiddler) {\n\t\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\t\tif(name.charAt(0) !== \"$\" && name !== \"title\") {\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[\"action-deletefield\"] = DeleteFieldWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/action-deletetiddler.js": { - "title": "$:/core/modules/widgets/action-deletetiddler.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$filter\");\n\tthis.actionTiddler = this.getAttribute(\"$tiddler\");\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[\"$filter\"] || changedAttributes[\"$tiddler\"]) {\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<tiddlers.length; t++) {\n\t\tthis.wiki.deleteTiddler(tiddlers[t]);\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\"action-deletetiddler\"] = DeleteTiddlerWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/action-listops.js": { - "title": "$:/core/modules/widgets/action-listops.js", - "text": "/*\\\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\"use strict\";\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$tiddler\", this.getVariable(\n\t\t\"currentTiddler\"));\n\tthis.filter = this.getAttribute(\"$filter\");\n\tthis.subfilter = this.getAttribute(\"$subfilter\");\n\tthis.listField = this.getAttribute(\"$field\", \"list\");\n\tthis.listIndex = this.getAttribute(\"$index\");\n\tthis.filtertags = this.getAttribute(\"$tags\");\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 = \"!!\",\n\t\tlist = this.listField;\n\tif(this.listIndex) {\n\t\tfield = undefined;\n\t\tindex = this.listIndex;\n\t\ttype = \"##\";\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 = \"[list[\" + this.target + type + list + \"]] \" + 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 = \"[list[\" + this.target + \"!!tags]] \" + 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,\"tags\",undefined,$tw.utils.stringifyList(newtags));\t\t\t\n\t\t}\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\"action-listops\"] = ActionListopsWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/action-log.js": { - "title": "$:/core/modules/widgets/action-log.js", - "text": "/*\\\ntitle: $:/core/modules/widgets/action-log.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to log debug messages\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar LogWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nLogWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nLogWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\nLogWidget.prototype.execute = function(){\n\tthis.message = this.getAttribute(\"$$message\",\"debug\");\n\tthis.logAll = this.getAttribute(\"$$all\",\"no\") === \"yes\" ? true : false;\n\tthis.filter = this.getAttribute(\"$$filter\");\n}\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nLogWidget.prototype.refresh = function(changedTiddlers) {\n\tthis.refreshSelf();\n\treturn true;\n};\n\n/*\nInvoke the action associated with this widget\n*/\nLogWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\tthis.log();\n\treturn true; // Action was invoked\n};\n\nLogWidget.prototype.log = function() {\n\tvar data = {},\n\t\tdataCount,\n\t\tallVars = {},\n\t\tfilteredVars;\n\n\t$tw.utils.each(this.attributes,function(attribute,name) {\n\t\tif(name.substring(0,2) !== \"$$\") {\n\t\t\tdata[name] = attribute;\n\t\t}\t\t\n\t});\n\n\tfor(var v in this.variables) {\n\t\tallVars[v] = this.getVariable(v,{defaultValue:\"\"});\n\t}\t\n\tif(this.filter) {\n\t\tfilteredVars = this.wiki.compileFilter(this.filter).call(this.wiki,this.wiki.makeTiddlerIterator(allVars));\n\t\t$tw.utils.each(filteredVars,function(name) {\n\t\t\tdata[name] = allVars[name];\n\t\t});\t\t\n\t}\n\tdataCount = $tw.utils.count(data);\n\n\tconsole.group(this.message);\n\tif(dataCount > 0) {\n\t\t$tw.utils.logTable(data);\n\t}\n\tif(this.logAll || !dataCount) {\n\t\tconsole.groupCollapsed(\"All variables\");\n\t\t$tw.utils.logTable(allVars);\n\t\tconsole.groupEnd();\n\t}\n\tconsole.groupEnd();\n}\n\nexports[\"action-log\"] = LogWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/action-navigate.js": { - "title": "$:/core/modules/widgets/action-navigate.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$to\");\n\tthis.actionScroll = this.getAttribute(\"$scroll\");\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[\"$to\"] || changedAttributes[\"$scroll\"]) {\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 && triggeringWidget.getBoundingClientRect && triggeringWidget.getBoundingClientRect(),\n\t\tsuppressNavigation = event.metaKey || event.ctrlKey || (event.button === 1);\n\tif(this.actionScroll === \"yes\") {\n\t\tsuppressNavigation = false;\n\t} else if(this.actionScroll === \"no\") {\n\t\tsuppressNavigation = true;\n\t}\n\tthis.dispatchEvent({\n\t\ttype: \"tm-navigate\",\n\t\tnavigateTo: this.actionTo === undefined ? this.getVariable(\"currentTiddler\") : this.actionTo,\n\t\tnavigateFromTitle: this.getVariable(\"storyTiddler\"),\n\t\tnavigateFromNode: triggeringWidget,\n\t\tnavigateFromClientRect: bounds && { 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[\"action-navigate\"] = NavigateWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/action-popup.js": { - "title": "$:/core/modules/widgets/action-popup.js", - "text": "/*\\\ntitle: $:/core/modules/widgets/action-popup.js\ntype: application/javascript\nmodule-type: widget\n\nAction widget to trigger a popup.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ActionPopupWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nActionPopupWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nActionPopupWidget.prototype.render = function(parent,nextSibling) {\n\tthis.computeAttributes();\n\tthis.execute();\n};\n\n/*\nCompute the internal state of the widget\n*/\nActionPopupWidget.prototype.execute = function() {\n\tthis.actionState = this.getAttribute(\"$state\");\n\tthis.actionCoords = this.getAttribute(\"$coords\");\n};\n\n/*\nRefresh the widget by ensuring our attributes are up to date\n*/\nActionPopupWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\"$state\"] || changedAttributes[\"$coords\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nInvoke the action associated with this widget\n*/\nActionPopupWidget.prototype.invokeAction = function(triggeringWidget,event) {\n\t// Trigger the popup\n\tvar popupLocationRegExp = /^\\((-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+)\\)$/,\n\t\tmatch = popupLocationRegExp.exec(this.actionCoords || \"\");\n\tif(match) {\n\t\t$tw.popup.triggerPopup({\n\t\t\tdomNode: null,\n\t\t\tdomNodeRect: {\n\t\t\t\tleft: parseFloat(match[1]),\n\t\t\t\ttop: parseFloat(match[2]),\n\t\t\t\twidth: parseFloat(match[3]),\n\t\t\t\theight: parseFloat(match[4])\n\t\t\t},\n\t\t\ttitle: this.actionState,\n\t\t\twiki: this.wiki\n\t\t});\n\t} else {\n\t\t$tw.popup.cancel(0);\n\t}\n\treturn true; // Action was invoked\n};\n\nexports[\"action-popup\"] = ActionPopupWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/action-sendmessage.js": { - "title": "$:/core/modules/widgets/action-sendmessage.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$message\");\n\tthis.actionParam = this.getAttribute(\"$param\");\n\tthis.actionName = this.getAttribute(\"$name\");\n\tthis.actionValue = this.getAttribute(\"$value\",\"\");\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) !== \"$\") {\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(\"currentTiddler\"),\n\t\tnavigateFromTitle: this.getVariable(\"storyTiddler\"),\n\t\tevent: event\n\t});\n\treturn true; // Action was invoked\n};\n\nexports[\"action-sendmessage\"] = SendMessageWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/action-setfield.js": { - "title": "$:/core/modules/widgets/action-setfield.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.actionField = this.getAttribute(\"$field\");\n\tthis.actionIndex = this.getAttribute(\"$index\");\n\tthis.actionValue = this.getAttribute(\"$value\");\n\tthis.actionTimestamp = this.getAttribute(\"$timestamp\",\"yes\") === \"yes\";\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[\"$tiddler\"] || changedAttributes[\"$field\"] || changedAttributes[\"$index\"] || changedAttributes[\"$value\"]) {\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 == \"string\") || (typeof this.actionIndex == \"string\") || (typeof this.actionValue == \"string\")) {\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) !== \"$\") {\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[\"action-setfield\"] = SetFieldWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/browse.js": { - "title": "$:/core/modules/widgets/browse.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"input\");\n\tdomNode.setAttribute(\"type\",\"file\");\n\tif(this.browseMultiple) {\n\t\tdomNode.setAttribute(\"multiple\",\"multiple\");\n\t}\n\tif(this.tooltip) {\n\t\tdomNode.setAttribute(\"title\",this.tooltip);\n\t}\n\t// Nw.js supports \"nwsaveas\" to force a \"save as\" dialogue that allows a new or existing file to be selected\n\tif(this.nwsaveas) {\n\t\tdomNode.setAttribute(\"nwsaveas\",this.nwsaveas);\n\t}\n\tif(this.accept) {\n\t\tdomNode.setAttribute(\"accept\",this.accept);\n\t}\n\t// Nw.js supports \"webkitdirectory\" and \"nwdirectory\" to allow a directory to be selected\n\tif(this.webkitdirectory) {\n\t\tdomNode.setAttribute(\"webkitdirectory\",this.webkitdirectory);\n\t}\n\tif(this.nwdirectory) {\n\t\tdomNode.setAttribute(\"nwdirectory\",this.nwdirectory);\n\t}\n\t// Add a click event handler\n\tdomNode.addEventListener(\"change\",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: \"tm-import-tiddlers\", 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(\"multiple\");\n\tthis.deserializer = this.getAttribute(\"deserializer\");\n\tthis.message = this.getAttribute(\"message\");\n\tthis.param = this.getAttribute(\"param\");\n\tthis.tooltip = this.getAttribute(\"tooltip\");\n\tthis.nwsaveas = this.getAttribute(\"nwsaveas\");\n\tthis.accept = this.getAttribute(\"accept\");\n\tthis.webkitdirectory = this.getAttribute(\"webkitdirectory\");\n\tthis.nwdirectory = this.getAttribute(\"nwdirectory\");\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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/button.js": { - "title": "$:/core/modules/widgets/button.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ButtonWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nButtonWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nButtonWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this,\n\t\ttag = \"button\",\n\t\tdomNode;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create element\n\tif(this.buttonTag && $tw.config.htmlUnsafeElements.indexOf(this.buttonTag) === -1) {\n\t\ttag = this.buttonTag;\n\t}\n\tdomNode = this.document.createElement(tag);\n\tthis.domNode = domNode;\n\t// Assign classes\n\tvar classes = this[\"class\"].split(\" \") || [],\n\t\tisPoppedUp = (this.popup || this.popupTitle) && this.isPoppedUp();\n\tif(this.selectedClass) {\n\t\tif((this.set || this.setTitle) && this.setTo && this.isSelected()) {\n\t\t\t$tw.utils.pushTop(classes,this.selectedClass.split(\" \"));\n\t\t}\n\t\tif(isPoppedUp) {\n\t\t\t$tw.utils.pushTop(classes,this.selectedClass.split(\" \"));\n\t\t}\n\t}\n\tif(isPoppedUp) {\n\t\t$tw.utils.pushTop(classes,\"tc-popup-handle\");\n\t}\n\tdomNode.className = classes.join(\" \");\n\t// Assign other attributes\n\tif(this.style) {\n\t\tdomNode.setAttribute(\"style\",this.style);\n\t}\n\tif(this.tooltip) {\n\t\tdomNode.setAttribute(\"title\",this.tooltip);\n\t}\n\tif(this[\"aria-label\"]) {\n\t\tdomNode.setAttribute(\"aria-label\",this[\"aria-label\"]);\n\t}\n\t// Set the tabindex\n\tif(this.tabIndex) {\n\t\tdomNode.setAttribute(\"tabindex\",this.tabIndex);\n\t}\n\tif(this.isDisabled === \"yes\") {\n\t\tdomNode.setAttribute(\"disabled\",true);\n\t}\n\t// Add a click event handler\n\tdomNode.addEventListener(\"click\",function (event) {\n\t\tvar handled = false;\n\t\tif(self.invokeActions(self,event)) {\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.to) {\n\t\t\tself.navigateTo(event);\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.message) {\n\t\t\tself.dispatchMessage(event);\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.popup || self.popupTitle) {\n\t\t\tself.triggerPopup(event);\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.set || self.setTitle) {\n\t\t\tself.setTiddler();\n\t\t\thandled = true;\n\t\t}\n\t\tif(self.actions) {\n\t\t\tvar modifierKey = $tw.keyboardManager.getEventModifierKeyDescriptor(event);\n\t\t\tself.invokeActionString(self.actions,self,event,{modifier: modifierKey});\n\t\t}\n\t\tif(handled) {\n\t\t\tevent.preventDefault();\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\treturn handled;\n\t},false);\n\t// Make it draggable if required\n\tif(this.dragTiddler || this.dragFilter) {\n\t\t$tw.utils.makeDraggable({\n\t\t\tdomNode: domNode,\n\t\t\tdragTiddlerFn: function() {return self.dragTiddler;},\n\t\t\tdragFilterFn: function() {return self.dragFilter;},\n\t\t\twidget: this\n\t\t});\n\t}\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nWe don't allow actions to propagate because we trigger actions ourselves\n*/\nButtonWidget.prototype.allowActionPropagation = function() {\n\treturn false;\n};\n\nButtonWidget.prototype.getBoundingClientRect = function() {\n\treturn this.domNodes[0].getBoundingClientRect();\n};\n\nButtonWidget.prototype.isSelected = function() {\n return this.setTitle ? (this.setField ? this.wiki.getTiddler(this.setTitle).getFieldString(this.setField) === this.setTo :\n\t\t(this.setIndex ? this.wiki.extractTiddlerDataItem(this.setTitle,this.setIndex) === this.setTo :\n\t\t\tthis.wiki.getTiddlerText(this.setTitle))) || this.defaultSetValue || this.getVariable(\"currentTiddler\") :\n\t\tthis.wiki.getTextReference(this.set,this.defaultSetValue,this.getVariable(\"currentTiddler\")) === 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 && 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: \"tm-navigate\",\n\t\tnavigateTo: this.to,\n\t\tnavigateFromTitle: this.getVariable(\"storyTiddler\"),\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(\"currentTiddler\"), 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,\"text\",undefined,this.setTo));\n\t} else {\n\t\tthis.wiki.setTextReference(this.set,this.setTo,this.getVariable(\"currentTiddler\"));\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(\"actions\");\n\tthis.to = this.getAttribute(\"to\");\n\tthis.message = this.getAttribute(\"message\");\n\tthis.param = this.getAttribute(\"param\");\n\tthis.set = this.getAttribute(\"set\");\n\tthis.setTo = this.getAttribute(\"setTo\");\n\tthis.popup = this.getAttribute(\"popup\");\n\tthis.hover = this.getAttribute(\"hover\");\n\tthis[\"aria-label\"] = this.getAttribute(\"aria-label\");\n\tthis.tooltip = this.getAttribute(\"tooltip\");\n\tthis.style = this.getAttribute(\"style\");\n\tthis[\"class\"] = this.getAttribute(\"class\",\"\");\n\tthis.selectedClass = this.getAttribute(\"selectedClass\");\n\tthis.defaultSetValue = this.getAttribute(\"default\",\"\");\n\tthis.buttonTag = this.getAttribute(\"tag\");\n\tthis.dragTiddler = this.getAttribute(\"dragTiddler\");\n\tthis.dragFilter = this.getAttribute(\"dragFilter\");\n\tthis.setTitle = this.getAttribute(\"setTitle\");\n\tthis.setField = this.getAttribute(\"setField\");\n\tthis.setIndex = this.getAttribute(\"setIndex\");\n\tthis.popupTitle = this.getAttribute(\"popupTitle\");\n\tthis.tabIndex = this.getAttribute(\"tabindex\");\n\tthis.isDisabled = this.getAttribute(\"disabled\",\"no\");\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\nButtonWidget.prototype.updateDomNodeClasses = function() {\n\tvar domNodeClasses = this.domNode.className.split(\" \"),\n\t\toldClasses = this.class.split(\" \"),\n\t\tnewClasses;\t\n\tthis[\"class\"] = this.getAttribute(\"class\",\"\");\n\tnewClasses = this.class.split(\" \");\n\t//Remove classes assigned from the old value of class attribute\n\t$tw.utils.each(oldClasses,function(oldClass){\n\t\tvar i = domNodeClasses.indexOf(oldClass);\n\t\tif(i !== -1) {\n\t\t\tdomNodeClasses.splice(i,1);\n\t\t}\n\t});\n\t//Add new classes from updated class attribute.\n\t$tw.utils.pushTop(domNodeClasses,newClasses);\n\tthis.domNode.className = domNodeClasses.join(\" \");\n}\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nButtonWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.actions || changedAttributes.to || changedAttributes.message || changedAttributes.param || changedAttributes.set || changedAttributes.setTo || changedAttributes.popup || changedAttributes.hover || changedAttributes.selectedClass || changedAttributes.style || changedAttributes.dragFilter || changedAttributes.dragTiddler || (this.set && changedTiddlers[this.set]) || (this.popup && changedTiddlers[this.popup]) || (this.popupTitle && changedTiddlers[this.popupTitle]) || changedAttributes.setTitle || changedAttributes.setField || changedAttributes.setIndex || changedAttributes.popupTitle || changedAttributes.disabled) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else if(changedAttributes[\"class\"]) {\n\t\tthis.updateDomNodeClasses();\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.button = ButtonWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/checkbox.js": { - "title": "$:/core/modules/widgets/checkbox.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"label\");\n\tthis.labelDomNode.setAttribute(\"class\",this.checkboxClass);\n\tthis.inputDomNode = this.document.createElement(\"input\");\n\tthis.inputDomNode.setAttribute(\"type\",\"checkbox\");\n\tif(this.getValue()) {\n\t\tthis.inputDomNode.setAttribute(\"checked\",\"true\");\n\t}\n\tif(this.isDisabled === \"yes\") {\n\t\tthis.inputDomNode.setAttribute(\"disabled\",true);\n\t}\n\tthis.labelDomNode.appendChild(this.inputDomNode);\n\tthis.spanDomNode = this.document.createElement(\"span\");\n\tthis.labelDomNode.appendChild(this.spanDomNode);\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(this.inputDomNode,[\n\t\t{name: \"change\", handlerObject: this, handlerMethod: \"handleChangeEvent\"}\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] || \"\";\n\t\t\t} else {\n\t\t\t\tvalue = this.checkboxDefault || \"\";\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 || \"\");\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: \"\"},\n\t\tnewFields = {title: this.checkboxTitle},\n\t\thasChanged = false,\n\t\ttagCheck = false,\n\t\thasTag = tiddler && tiddler.hasTag(this.checkboxTag),\n\t\tvalue = checked ? this.checkboxChecked : this.checkboxUnchecked;\n\tif(this.checkboxTag && this.checkboxInvertTag === \"yes\") {\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 && (!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 === \"yes\" && !checked) {\n\t\t\tnewFields.tags.push(this.checkboxTag);\n\t\t} else if(this.checkboxInvertTag !== \"yes\" && 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,\"\",this.checkboxIndex,value);\n\t\t} else {\n\t\t\tthis.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),fallbackFields,tiddler,newFields,this.wiki.getModificationFields()));\n\t\t}\n\t}\n\t// Trigger actions\n\tif(this.checkboxActions) {\n\t\tthis.invokeActionString(this.checkboxActions,this,event);\n\t}\n\tif(this.checkboxCheckActions && checked) {\n\t\tthis.invokeActionString(this.checkboxCheckActions,this,event);\n\t}\n\tif(this.checkboxUncheckActions && !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(\"actions\");\n\tthis.checkboxCheckActions = this.getAttribute(\"checkactions\");\n\tthis.checkboxUncheckActions = this.getAttribute(\"uncheckactions\");\n\tthis.checkboxTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.checkboxTag = this.getAttribute(\"tag\");\n\tthis.checkboxField = this.getAttribute(\"field\");\n\tthis.checkboxIndex = this.getAttribute(\"index\");\n\tthis.checkboxChecked = this.getAttribute(\"checked\");\n\tthis.checkboxUnchecked = this.getAttribute(\"unchecked\");\n\tthis.checkboxDefault = this.getAttribute(\"default\");\n\tthis.checkboxClass = this.getAttribute(\"class\",\"\");\n\tthis.checkboxInvertTag = this.getAttribute(\"invertTag\",\"\");\n\tthis.isDisabled = this.getAttribute(\"disabled\",\"no\");\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[\"default\"] || changedAttributes[\"class\"] || changedAttributes.disabled) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\tvar refreshed = false;\n\t\tif(changedTiddlers[this.checkboxTitle]) {\n\t\t\tthis.inputDomNode.checked = this.getValue();\n\t\t\trefreshed = true;\n\t\t}\n\t\treturn this.refreshChildren(changedTiddlers) || refreshed;\n\t}\n};\n\nexports.checkbox = CheckboxWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/codeblock.js": { - "title": "$:/core/modules/widgets/codeblock.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"code\"),\n\t\tdomNode = this.document.createElement(\"pre\");\n\tcodeNode.appendChild(this.document.createTextNode(this.getAttribute(\"code\")));\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(\"language\");\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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/count.js": { - "title": "$:/core/modules/widgets/count.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"filter\");\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 = \"0\";\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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/diff-text.js": { - "title": "$:/core/modules/widgets/diff-text.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget,\n\tdmp = require(\"$:/core/modules/utils/diff-match-patch/diff_match_patch.js\");\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\"\\n\": \"↩︎\\n\",\n\t\"\\r\": \"⇠\",\n\t\"\\t\": \"⇥\\t\"\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(\"source\"),this.getAttribute(\"dest\"));\n\t// Apply required cleanup\n\tswitch(this.getAttribute(\"cleanup\",\"semantic\")) {\n\t\tcase \"none\":\n\t\t\t// No cleanup\n\t\t\tbreak;\n\t\tcase \"efficiency\":\n\t\t\tdmpObject.diff_cleanupEfficiency(diffs);\n\t\t\tbreak;\n\t\tdefault: // case \"semantic\"\n\t\t\tdmpObject.diff_cleanupSemantic(diffs);\n\t\t\tbreak;\n\t}\n\t// Create the elements\n\tvar domContainer = this.document.createElement(\"div\"), \n\t\tdomDiff = this.createDiffDom(diffs);\n\tparent.insertBefore(domContainer,nextSibling);\n\t// Set variables\n\tthis.setVariable(\"diff-count\",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(\"pre\"),\n\t\tdomCode = this.document.createElement(\"code\");\n\t$tw.utils.each(diffs,function(diff) {\n\t\tvar tag = diff[0] === dmp.DIFF_INSERT ? \"ins\" : (diff[0] === dmp.DIFF_DELETE ? \"del\" : \"span\"),\n\t\t\tclassName = diff[0] === dmp.DIFF_INSERT ? \"tc-diff-insert\" : (diff[0] === dmp.DIFF_DELETE ? \"tc-diff-delete\" : \"tc-diff-equal\"),\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 < 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(\"span\");\n\t\t\tspan.className = \"tc-diff-invisible\";\n\t\t\tprintable = self.invisibleCharacters[match[0]] || (\"[0x\" + match[0].charCodeAt(0).toString(16) + \"]\");\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 < 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 && this.parseTreeNode.children && this.parseTreeNode.children.length > 0) {\n\t\tparseTreeNodes = this.parseTreeNode.children;\n\t} else {\n\t\tparseTreeNodes = [{\n\t\t\ttype: \"transclude\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", value: \"$:/language/Diffs/CountMessage\"}\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[\"diff-text\"] = DiffTextWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/draggable.js": { - "title": "$:/core/modules/widgets/draggable.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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 = \"div\";\n\t}\n\t// Create our element\n\tvar domNode = this.document.createElement(tag);\n\t// Assign classes\n\tvar classes = [\"tc-draggable\"];\n\tif(this.draggableClasses) {\n\t\tclasses.push(this.draggableClasses);\n\t}\n\tdomNode.setAttribute(\"class\",classes.join(\" \"));\n\t// Add event handlers\n\t$tw.utils.makeDraggable({\n\t\tdomNode: domNode,\n\t\tdragTiddlerFn: function() {return self.getAttribute(\"tiddler\");},\n\t\tdragFilterFn: function() {return self.getAttribute(\"filter\");},\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(\"tag\",\"div\");\n\tthis.draggableClasses = this.getAttribute(\"class\");\n\tthis.startActions = this.getAttribute(\"startactions\");\n\tthis.endActions = this.getAttribute(\"endactions\");\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nDraggableWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tag || changedAttributes[\"class\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.draggable = DraggableWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/droppable.js": { - "title": "$:/core/modules/widgets/droppable.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar DroppableWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nDroppableWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nDroppableWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this,\n\t\ttag = this.parseTreeNode.isBlock ? \"div\" : \"span\",\n\t\tdomNode;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\tif(this.droppableTag && $tw.config.htmlUnsafeElements.indexOf(this.droppableTag) === -1) {\n\t\ttag = this.droppableTag;\n\t}\n\t// Create element and assign classes\n\tdomNode = this.document.createElement(tag);\n\tthis.domNode = domNode;\n\tthis.assignDomNodeClasses();\n\t// Add event handlers\n\tif(this.droppableEnable) {\n\t\t$tw.utils.addEventListeners(domNode,[\n\t\t\t{name: \"dragenter\", handlerObject: this, handlerMethod: \"handleDragEnterEvent\"},\n\t\t\t{name: \"dragover\", handlerObject: this, handlerMethod: \"handleDragOverEvent\"},\n\t\t\t{name: \"dragleave\", handlerObject: this, handlerMethod: \"handleDragLeaveEvent\"},\n\t\t\t{name: \"drop\", handlerObject: this, handlerMethod: \"handleDropEvent\"}\n\t\t]);\t\t\n\t} else {\n\t\t$tw.utils.addClass(this.domNode,this.disabledClass);\n\t}\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n\t// Stack of outstanding enter/leave events\n\tthis.currentlyEntered = [];\n};\n\nDroppableWidget.prototype.enterDrag = function(event) {\n\tif(this.currentlyEntered.indexOf(event.target) === -1) {\n\t\tthis.currentlyEntered.push(event.target);\n\t}\n\t// If we're entering for the first time we need to apply highlighting\n\t$tw.utils.addClass(this.domNodes[0],\"tc-dragover\");\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 && this.currentlyEntered[0] === $tw.dragInProgress)) {\n\t\tthis.currentlyEntered = [];\n\t\tif(this.domNodes[0]) {\n\t\t\t$tw.utils.removeClass(this.domNodes[0],\"tc-dragover\");\n\t\t}\n\t}\n};\n\nDroppableWidget.prototype.handleDragEnterEvent = function(event) {\n\tthis.enterDrag(event);\n\t// Tell the browser that we're ready to handle the drop\n\tevent.preventDefault();\n\t// Tell the browser not to ripple the drag up to any parent drop handlers\n\tevent.stopPropagation();\n\treturn false;\n};\n\nDroppableWidget.prototype.handleDragOverEvent = function(event) {\n\t// Check for being over a TEXTAREA or INPUT\n\tif([\"TEXTAREA\",\"INPUT\"].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([\"TEXTAREA\",\"INPUT\"].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],\"tc-dragover\");\n\t// Try to import the various data types we understand\n\t$tw.utils.importDataTransfer(dataTransfer,null,function(fieldsArray) {\n\t\tfieldsArray.forEach(function(fields) {\n\t\t\tself.performActions(fields.title || fields.text,event);\n\t\t});\n\t});\n\t// Tell the browser that we handled the drop\n\tevent.preventDefault();\n\t// Stop the drop ripple up to any parent handlers\n\tevent.stopPropagation();\n\treturn false;\n};\n\nDroppableWidget.prototype.performActions = function(title,event) {\n\tif(this.droppableActions) {\n\t\tvar modifierKey = $tw.keyboardManager.getEventModifierKeyDescriptor(event);\n\t\tthis.invokeActionString(this.droppableActions,this,event,{actionTiddler: title, modifier: modifierKey});\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nDroppableWidget.prototype.execute = function() {\n\tthis.droppableActions = this.getAttribute(\"actions\");\n\tthis.droppableEffect = this.getAttribute(\"effect\",\"copy\");\n\tthis.droppableTag = this.getAttribute(\"tag\");\n\tthis.droppableEnable = (this.getAttribute(\"enable\") || \"yes\") === \"yes\";\n\tthis.disabledClass = this.getAttribute(\"disabledClass\",\"\");\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\nDroppableWidget.prototype.assignDomNodeClasses = function() {\n\tvar classes = this.getAttribute(\"class\",\"\").split(\" \");\n\tclasses.push(\"tc-droppable\");\n\tthis.domNode.className = classes.join(\" \");\t\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nDroppableWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tag || changedAttributes.enable || changedAttributes.disabledClass || changedAttributes.actions || changedAttributes.effect) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else if(changedAttributes[\"class\"]) {\n\t\tthis.assignDomNodeClasses();\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.droppable = DroppableWidget;\n\n})();", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/dropzone.js": { - "title": "$:/core/modules/widgets/dropzone.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"div\");\n\tdomNode.className = this.dropzoneClass || \"tc-dropzone\";\n\t// Add event handlers\n\tif(this.dropzoneEnable) {\n\t\t$tw.utils.addEventListeners(domNode,[\n\t\t\t{name: \"dragenter\", handlerObject: this, handlerMethod: \"handleDragEnterEvent\"},\n\t\t\t{name: \"dragover\", handlerObject: this, handlerMethod: \"handleDragOverEvent\"},\n\t\t\t{name: \"dragleave\", handlerObject: this, handlerMethod: \"handleDragLeaveEvent\"},\n\t\t\t{name: \"drop\", handlerObject: this, handlerMethod: \"handleDropEvent\"},\n\t\t\t{name: \"paste\", handlerObject: this, handlerMethod: \"handlePasteEvent\"},\n\t\t\t{name: \"dragend\", handlerObject: this, handlerMethod: \"handleDragEndEvent\"}\n\t\t]);\t\t\n\t}\n\tdomNode.addEventListener(\"click\",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],\"tc-dragover\");\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],\"tc-dragover\");\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([\"TEXTAREA\",\"INPUT\"].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 = \"copy\"; // Explicitly show this is a copy\n};\n\nDropZoneWidget.prototype.handleDragLeaveEvent = function(event) {\n\tthis.leaveDrag(event);\n};\n\nDropZoneWidget.prototype.handleDragEndEvent = function(event) {\n\t$tw.utils.removeClass(this.domNodes[0],\"tc-dragover\");\n};\n\nDropZoneWidget.prototype.handleDropEvent = function(event) {\n\tvar self = this,\n\t\treadFileCallback = function(tiddlerFieldsArray) {\n\t\t\tself.dispatchEvent({type: \"tm-import-tiddlers\", param: JSON.stringify(tiddlerFieldsArray), autoOpenOnImport: self.autoOpenOnImport, importTitle: self.importTitle});\n\t\t};\n\tthis.leaveDrag(event);\n\t// Check for being over a TEXTAREA or INPUT\n\tif([\"TEXTAREA\",\"INPUT\"].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],\"tc-dragover\");\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(\"Untitled\"),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: \"tm-import-tiddlers\", param: JSON.stringify(tiddlerFieldsArray), autoOpenOnImport: self.autoOpenOnImport, importTitle: self.importTitle});\n\t\t};\n\t// Let the browser handle it if we're in a textarea or input box\n\tif([\"TEXTAREA\",\"INPUT\"].indexOf(event.target.tagName) == -1 && !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<items.length; t++) {\n\t\t\tvar item = items[t];\n\t\t\tif(item.kind === \"file\") {\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 === \"string\") {\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(\"Untitled\"),\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(\"Importing string '\" + str + \"', type: '\" + type + \"'\");\n\t\t\t\t\t}\n\t\t\t\t\tself.dispatchEvent({type: \"tm-import-tiddlers\", param: JSON.stringify([tiddlerFields]), autoOpenOnImport: self.autoOpenOnImport, importTitle: self.importTitle});\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\t// Tell the browser that we've handled the paste\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nDropZoneWidget.prototype.execute = function() {\n\tthis.dropzoneClass = this.getAttribute(\"class\");\n\tthis.dropzoneDeserializer = this.getAttribute(\"deserializer\");\n\tthis.dropzoneEnable = (this.getAttribute(\"enable\") || \"yes\") === \"yes\";\n\tthis.autoOpenOnImport = this.getAttribute(\"autoOpenOnImport\");\n\tthis.importTitle = this.getAttribute(\"importTitle\");\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nDropZoneWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.enable || changedAttributes.autoOpenOnImport || changedAttributes.importTitle || changedAttributes.deserializer || changedAttributes.class) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.dropzone = DropZoneWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/edit-binary.js": { - "title": "$:/core/modules/widgets/edit-binary.js", - "text": "/*\\\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\"use strict\";\n\nvar BINARY_WARNING_MESSAGE = \"$:/core/ui/BinaryWarning\";\nvar EXPORT_BUTTON_IMAGE = \"$:/core/images/export-button\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar EditBinaryWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEditBinaryWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEditBinaryWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nEditBinaryWidget.prototype.execute = function() {\n\t// Get our parameters\n\tvar editTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tvar tiddler = this.wiki.getTiddler(editTitle);\n\tvar type = tiddler.fields.type;\n\tvar text = tiddler.fields.text;\n\t// Transclude the binary data tiddler warning message\n\tvar warn = {\n\t\ttype: \"element\",\n\t\ttag: \"p\",\n\t\tchildren: [{\n\t\t\ttype: \"transclude\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", value: BINARY_WARNING_MESSAGE}\n\t\t\t}\n\t\t}]\n\t};\n\t// Create download link based on draft tiddler title\n\tvar link = {\n\t\ttype: \"element\",\n\t\ttag: \"a\",\n\t\tattributes: {\n\t\t\ttitle: {type: \"indirect\", textReference: \"!!draft.title\"},\n\t\t\tdownload: {type: \"indirect\", textReference: \"!!draft.title\"}\n\t\t},\n\t\tchildren: [{\n\t\ttype: \"transclude\",\n\t\t\tattributes: {\n\t\t\t\ttiddler: {type: \"string\", value: EXPORT_BUTTON_IMAGE}\n\t\t\t}\n\t\t}]\n\t};\n\t// Set the link href to internal data URI (no external)\n\tif(text) {\n\t\tlink.attributes.href = {\n\t\t\ttype: \"string\", \n\t\t\tvalue: \"data:\" + type + \";base64,\" + text\n\t\t};\n\t}\n\t// Combine warning message and download link in a div\n\tvar element = {\n\t\ttype: \"element\",\n\t\ttag: \"div\",\n\t\tattributes: {\n\t\t\tclass: {type: \"string\", value: \"tc-binary-warning\"}\n\t\t},\n\t\tchildren: [warn, link]\n\t}\n\t// Construct the child widgets\n\tthis.makeChildWidgets([element]);\n};\n\n/*\nRefresh by refreshing our child widget\n*/\nEditBinaryWidget.prototype.refresh = function(changedTiddlers) {\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports[\"edit-binary\"] = EditBinaryWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/edit-bitmap.js": { - "title": "$:/core/modules/widgets/edit-bitmap.js", - "text": "/*\\\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\"use strict\";\n\n// Default image sizes\nvar DEFAULT_IMAGE_WIDTH = 600,\n\tDEFAULT_IMAGE_HEIGHT = 370,\n\tDEFAULT_IMAGE_TYPE = \"image/png\";\n\n// Configuration tiddlers\nvar LINE_WIDTH_TITLE = \"$:/config/BitmapEditor/LineWidth\",\n\tLINE_COLOUR_TITLE = \"$:/config/BitmapEditor/Colour\",\n\tLINE_OPACITY_TITLE = \"$:/config/BitmapEditor/Opacity\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"bitmapeditoroperation\",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(\"div\");\n\tthis.toolbarNode.className = \"tc-editor-toolbar\";\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(\"canvas\",{\n\t\tdocument: this.document,\n\t\t\"class\":\"tc-edit-bitmapeditor\",\n\t\teventListeners: [{\n\t\t\tname: \"touchstart\", handlerObject: this, handlerMethod: \"handleTouchStartEvent\"\n\t\t},{\n\t\t\tname: \"touchmove\", handlerObject: this, handlerMethod: \"handleTouchMoveEvent\"\n\t\t},{\n\t\t\tname: \"touchend\", handlerObject: this, handlerMethod: \"handleTouchEndEvent\"\n\t\t},{\n\t\t\tname: \"mousedown\", handlerObject: this, handlerMethod: \"handleMouseDownEvent\"\n\t\t},{\n\t\t\tname: \"mousemove\", handlerObject: this, handlerMethod: \"handleMouseMoveEvent\"\n\t\t},{\n\t\t\tname: \"mouseup\", handlerObject: this, handlerMethod: \"handleMouseUpEvent\"\n\t\t}]\n\t});\n\t// Set the width and height variables\n\tthis.setVariable(\"tv-bitmap-editor-width\",this.canvasDomNode.width + \"px\");\n\tthis.setVariable(\"tv-bitmap-editor-height\",this.canvasDomNode.height + \"px\");\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: \"tm-edit-bitmap-operation\", handler: \"handleEditBitmapOperationMessage\"}\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(\"tiddler\",this.getVariable(\"currentTiddler\"));\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(\"tv-bitmap-editor-width\",this.canvasDomNode.width + \"px\");\n\tthis.setVariable(\"tv-bitmap-editor-height\",this.canvasDomNode.height + \"px\");\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(\"canvas\");\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(\"canvas\");\n\t\tself.initCanvas(self.currCanvas,DEFAULT_IMAGE_WIDTH,DEFAULT_IMAGE_HEIGHT);\n\t\t// Set the width and height input boxes\n\t\tself.refreshToolbar();\n\t};\n\t// Get the current bitmap into an image object\n\tif(tiddler && tiddler.fields.type && tiddler.fields.text) {\n\t\tcurrImage.src = \"data:\" + tiddler.fields.type + \";base64,\" + tiddler.fields.text;\t\t\n\t} else {\n\t\tcurrImage.width = DEFAULT_IMAGE_WIDTH;\n\t\tcurrImage.height = DEFAULT_IMAGE_HEIGHT;\n\t\tcurrImage.onerror();\n\t}\n};\n\nEditBitmapWidget.prototype.initCanvas = function(canvas,width,height,image) {\n\tcanvas.width = width;\n\tcanvas.height = height;\n\tvar ctx = canvas.getContext(\"2d\");\n\tif(image) {\n\t\tctx.drawImage(image,0,0);\n\t} else {\n\t\tctx.fillStyle = \"#fff\";\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(\"canvas\");\n\tthis.initCanvas(newCanvas,newWidth,newHeight);\n\t// Copy the old image\n\tvar ctx = newCanvas.getContext(\"2d\");\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(\"2d\");\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(\"canvas\"),\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(\"2d\");\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(\"2d\");\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(\"2d\"),\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,\"1.0\"));\n\tctx.strokeStyle = this.wiki.getTiddlerText(LINE_COLOUR_TITLE,\"#ff0\");\n\tctx.lineWidth = parseFloat(this.wiki.getTiddlerText(LINE_WIDTH_TITLE,\"3\"));\n\tctx.lineCap = \"round\";\n\tctx.lineJoin = \"round\";\n\tctx.beginPath();\n\tctx.moveTo(this.stroke[0].x,this.stroke[0].y);\n\tfor(t=1; t<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(\"2d\");\n\tctx.drawImage(this.canvasDomNode,0,0);\n\t// Save the image into the tiddler\n\tthis.saveChanges();\n};\n\nEditBitmapWidget.prototype.saveChanges = function() {\n\tvar tiddler = this.wiki.getTiddler(this.editTitle) || new $tw.Tiddler({title: this.editTitle,type: DEFAULT_IMAGE_TYPE});\n\t// data URIs look like \"data:<type>;base64,<text>\"\n\tvar dataURL = this.canvasDomNode.toDataURL(tiddler.fields.type),\n\t\tposColon = dataURL.indexOf(\":\"),\n\t\tposSemiColon = dataURL.indexOf(\";\"),\n\t\tposComma = dataURL.indexOf(\",\"),\n\t\ttype = dataURL.substring(posColon+1,posSemiColon),\n\t\ttext = dataURL.substring(posComma+1);\n\tvar update = {type: type, text: text};\n\tthis.wiki.addTiddler(new $tw.Tiddler(this.wiki.getModificationFields(),tiddler,update,this.wiki.getCreationFields()));\n};\n\nexports[\"edit-bitmap\"] = EditBitmapWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/edit-shortcut.js": { - "title": "$:/core/modules/widgets/edit-shortcut.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"input\");\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(\"style\",this.shortcutStyle);\n\t}\n\tif(this.shortcutTooltip) {\n\t\tthis.inputNode.setAttribute(\"title\",this.shortcutTooltip);\n\t}\n\tif(this.shortcutPlaceholder) {\n\t\tthis.inputNode.setAttribute(\"placeholder\",this.shortcutPlaceholder);\n\t}\n\tif(this.shortcutAriaLabel) {\n\t\tthis.inputNode.setAttribute(\"aria-label\",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: \"keydown\", handlerObject: this, handlerMethod: \"handleKeydownEvent\"}\n\t]);\n\t// Link into the DOM\n\tparent.insertBefore(this.inputNode,nextSibling);\n\tthis.domNodes.push(this.inputNode);\n\t// Focus the input Node if focus === \"yes\" or focus === \"true\"\n\tif(this.shortcutFocus === \"yes\" || this.shortcutFocus === \"true\") {\n\t\tthis.focus();\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nEditShortcutWidget.prototype.execute = function() {\n\tthis.shortcutTiddler = this.getAttribute(\"tiddler\");\n\tthis.shortcutField = this.getAttribute(\"field\");\n\tthis.shortcutIndex = this.getAttribute(\"index\");\n\tthis.shortcutPlaceholder = this.getAttribute(\"placeholder\");\n\tthis.shortcutDefault = this.getAttribute(\"default\",\"\");\n\tthis.shortcutClass = this.getAttribute(\"class\");\n\tthis.shortcutStyle = this.getAttribute(\"style\");\n\tthis.shortcutTooltip = this.getAttribute(\"tooltip\");\n\tthis.shortcutAriaLabel = this.getAttribute(\"aria-label\");\n\tthis.shortcutFocus = this.getAttribute(\"focus\");\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 && $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 \"keydown\" event\n*/\nEditShortcutWidget.prototype.handleKeydownEvent = function(event) {\n\t// Ignore shift, ctrl, meta, alt\n\tif(event.keyCode && $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 > 0) {\n\t\t\tthis.wiki.setText(this.shortcutTiddler,this.shortcutField,this.shortcutIndex,value[0]);\n\t\t}\n\t\t// Ignore the keydown if it was already handled\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\t\treturn true;\t\t\n\t} else {\n\t\treturn false;\n\t}\n};\n\n/*\nfocus the input node\n*/\nEditShortcutWidget.prototype.focus = function() {\n\tif(this.inputNode.focus && this.inputNode.select) {\n\t\tthis.inputNode.focus();\n\t\tthis.inputNode.select();\n\t}\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget needed re-rendering\n*/\nEditShortcutWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.placeholder || changedAttributes[\"default\"] || changedAttributes[\"class\"] || changedAttributes.style || changedAttributes.tooltip || changedAttributes[\"aria-label\"] || changedAttributes.focus) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else if(changedTiddlers[this.shortcutTiddler]) {\n\t\tthis.updateInputNode();\n\t\treturn true;\n\t} else {\n\t\treturn false;\t\n\t}\n};\n\nexports[\"edit-shortcut\"] = EditShortcutWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/edit-text.js": { - "title": "$:/core/modules/widgets/edit-text.js", - "text": "/*\\\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\"use strict\";\n\nvar editTextWidgetFactory = require(\"$:/core/modules/editor/factory.js\").editTextWidgetFactory,\n\tFramedEngine = require(\"$:/core/modules/editor/engines/framed.js\").FramedEngine,\n\tSimpleEngine = require(\"$:/core/modules/editor/engines/simple.js\").SimpleEngine;\n\nexports[\"edit-text\"] = editTextWidgetFactory(FramedEngine,SimpleEngine);\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/edit.js": { - "title": "$:/core/modules/widgets/edit.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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 = \"$:/config/EditorTypeMappings/\";\n\n/*\nCompute the internal state of the widget\n*/\nEditWidget.prototype.execute = function() {\n\t// Get our parameters\n\tthis.editTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.editField = this.getAttribute(\"field\",\"text\");\n\tthis.editIndex = this.getAttribute(\"index\");\n\tthis.editClass = this.getAttribute(\"class\");\n\tthis.editPlaceholder = this.getAttribute(\"placeholder\");\n\tthis.editTabIndex = this.getAttribute(\"tabindex\");\n\tthis.editFocus = this.getAttribute(\"focus\",\"\");\n\tthis.editCancelPopups = this.getAttribute(\"cancelPopups\",\"\");\n\tthis.editInputActions = this.getAttribute(\"inputActions\");\n\tthis.editRefreshTitle = this.getAttribute(\"refreshTitle\");\n\tthis.editAutoComplete = this.getAttribute(\"autocomplete\");\n\t// Choose the appropriate edit widget\n\tthis.editorType = this.getEditorType();\n\t// Make the child widgets\n\tthis.makeChildWidgets([{\n\t\ttype: \"edit-\" + this.editorType,\n\t\tattributes: this.parseTreeNode.attributes,\n\t\tchildren: this.parseTreeNode.children\n\t}]);\n};\n\nEditWidget.prototype.getEditorType = function() {\n\t// Get the content type of the thing we're editing\n\tvar type;\n\tif(this.editField === \"text\") {\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 || \"text/vnd.tiddlywiki\";\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 && typeInfo.encoding === \"base64\") {\n\t\t\teditorType = \"binary\";\n\t\t} else {\n\t\t\teditorType = \"text\";\n\t\t}\n\t}\n\treturn editorType;\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nEditWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\t// Refresh if an attribute has changed, or the type associated with the target tiddler has changed\n\tif(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.tabindex || changedAttributes.cancelPopups || changedAttributes.inputActions || changedAttributes.refreshTitle || changedAttributes.autocomplete || (changedTiddlers[this.editTitle] && this.getEditorType() !== this.editorType)) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.edit = EditWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/element.js": { - "title": "$:/core/modules/widgets/element.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ElementWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nElementWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nElementWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\t// Neuter blacklisted elements\n\tthis.tag = this.parseTreeNode.tag;\n\tif($tw.config.htmlUnsafeElements.indexOf(this.tag) !== -1) {\n\t\tthis.tag = \"safe-\" + this.tag;\n\t}\n\t// Adjust headings by the current base level\n\tvar headingLevel = [\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"].indexOf(this.tag);\n\tif(headingLevel !== -1) {\n\t\tvar baseLevel = parseInt(this.getVariable(\"tv-adjust-heading-level\",\"0\"),10) || 0;\n\t\theadingLevel = Math.min(Math.max(headingLevel + 1 + baseLevel,1),6);\n\t\tthis.tag = \"h\" + headingLevel;\n\t}\n\t// Select the namespace for the tag\n\tvar tagNamespaces = {\n\t\t\tsvg: \"http://www.w3.org/2000/svg\",\n\t\t\tmath: \"http://www.w3.org/1998/Math/MathML\",\n\t\t\tbody: \"http://www.w3.org/1999/xhtml\"\n\t\t};\n\tthis.namespace = tagNamespaces[this.tag];\n\tif(this.namespace) {\n\t\tthis.setVariable(\"namespace\",this.namespace);\n\t} else {\n\t\tthis.namespace = this.getVariable(\"namespace\",{defaultValue: \"http://www.w3.org/1999/xhtml\"});\n\t}\n\t// Invoke the th-rendering-element hook\n\tvar parseTreeNodes = $tw.hooks.invokeHook(\"th-rendering-element\",null,this);\n\tthis.isReplaced = !!parseTreeNodes;\n\tif(parseTreeNodes) {\n\t\t// Use the parse tree nodes provided by the hook\n\t\tthis.makeChildWidgets(parseTreeNodes);\n\t\tthis.renderChildren(this.parentDomNode,null);\n\t\treturn;\n\t}\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n\t// Create the DOM node and render children\n\tvar domNode = this.document.createElementNS(this.namespace,this.tag);\n\tthis.assignAttributes(domNode,{excludeEventAttributes: true});\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nElementWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes(),\n\t\thasChangedAttributes = $tw.utils.count(changedAttributes) > 0;\n\tif(hasChangedAttributes) {\n\t\tif(!this.isReplaced) {\n\t\t\t// Update our attributes\n\t\t\tthis.assignAttributes(this.domNodes[0],{excludeEventAttributes: true});\t\t\t\n\t\t} else {\n\t\t\t// If we were replaced then completely refresh ourselves\n\t\t\treturn this.refreshSelf();\n\t\t}\n\t}\n\treturn this.refreshChildren(changedTiddlers) || hasChangedAttributes;\n};\n\nexports.element = ElementWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/encrypt.js": { - "title": "$:/core/modules/widgets/encrypt.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"filter\",\"[!is[system]]\");\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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/entity.js": { - "title": "$:/core/modules/widgets/entity.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar EntityWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEntityWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEntityWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tvar entityString = this.getAttribute(\"entity\",this.parseTreeNode.entity || \"\"),\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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/eventcatcher.js": { - "title": "$:/core/modules/widgets/eventcatcher.js", - "text": "/*\\\ntitle: $:/core/modules/widgets/eventcatcher.js\ntype: application/javascript\nmodule-type: widget\n\nEvent handler widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar EventWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nEventWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nEventWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create element\n\tvar tag = this.parseTreeNode.isBlock ? \"div\" : \"span\";\n\tif(this.elementTag && $tw.config.htmlUnsafeElements.indexOf(this.elementTag) === -1) {\n\t\ttag = this.elementTag;\n\t}\t\n\tvar domNode = this.document.createElement(tag);\n\tthis.domNode = domNode;\n\t// Assign classes\n\tthis.assignDomNodeClasses();\t\n\t// Add our event handler\n\t$tw.utils.each(this.types,function(type) {\n\t\tdomNode.addEventListener(type,function(event) {\n\t\t\tvar selector = self.getAttribute(\"selector\"),\n\t\t\t\tactions = self.getAttribute(\"actions-\"+type),\n\t\t\t\tselectedNode = event.target,\n\t\t\t\tselectedNodeRect,\n\t\t\t\tcatcherNodeRect,\n\t\t\t\tvariables = {};\n\t\t\tif(selector) {\n\t\t\t\t// Search ancestors for a node that matches the selector\n\t\t\t\twhile(!selectedNode.matches(selector) && selectedNode !== domNode) {\n\t\t\t\t\tselectedNode = selectedNode.parentNode;\n\t\t\t\t}\n\t\t\t\t// If we found one, copy the attributes as variables, otherwise exit\n\t\t\t\tif(selectedNode.matches(selector)) {\n\t\t\t\t\t$tw.utils.each(selectedNode.attributes,function(attribute) {\n\t\t\t\t\t\tvariables[\"dom-\" + attribute.name] = attribute.value.toString();\n\t\t\t\t\t});\n\t\t\t\t\t//Add a variable with a popup coordinate string for the selected node\n\t\t\t\t\tvariables[\"tv-popup-coords\"] = \"(\" + selectedNode.offsetLeft + \",\" + selectedNode.offsetTop +\",\" + selectedNode.offsetWidth + \",\" + selectedNode.offsetHeight + \")\";\n\t\t\t\t\t\n\t\t\t\t\t//Add variables for offset of selected node\n\t\t\t\t\tvariables[\"tv-selectednode-posx\"] = selectedNode.offsetLeft.toString();\n\t\t\t\t\tvariables[\"tv-selectednode-posy\"] = selectedNode.offsetTop.toString();\n\t\t\t\t\tvariables[\"tv-selectednode-width\"] = selectedNode.offsetWidth.toString();\n\t\t\t\t\tvariables[\"tv-selectednode-height\"] = selectedNode.offsetHeight.toString();\n\n\t\t\t\t\t//Add variables for event X and Y position relative to selected node\n\t\t\t\t\tselectedNodeRect = selectedNode.getBoundingClientRect();\t\t\t\t\n\t\t\t\t\tvariables[\"event-fromselected-posx\"] = (event.clientX - selectedNodeRect.left).toString();\n\t\t\t\t\tvariables[\"event-fromselected-posy\"] = (event.clientY - selectedNodeRect.top).toString();\n\n\t\t\t\t\t//Add variables for event X and Y position relative to event catcher node\n\t\t\t\t\tcatcherNodeRect = self.domNode.getBoundingClientRect();\n\t\t\t\t\tvariables[\"event-fromcatcher-posx\"] = (event.clientX - catcherNodeRect.left).toString();\n\t\t\t\t\tvariables[\"event-fromcatcher-posy\"] = (event.clientY - catcherNodeRect.top).toString();\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Execute our actions with the variables\n\t\t\tif(actions) {\n\t\t\t\t// Add a variable for the modifier key\n\t\t\t\tvariables.modifier = $tw.keyboardManager.getEventModifierKeyDescriptor(event);\n\t\t\t\t// Add a variable for the mouse button\n\t\t\t\tif(\"button\" in event) {\n\t\t\t\t\tif(event.button === 0) {\n\t\t\t\t\t\tvariables[\"event-mousebutton\"] = \"left\";\n\t\t\t\t\t} else if(event.button === 1) {\n\t\t\t\t\t\tvariables[\"event-mousebutton\"] = \"middle\";\n\t\t\t\t\t} else if(event.button === 2) {\n\t\t\t\t\t\tvariables[\"event-mousebutton\"] = \"right\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tvariables[\"event-type\"] = event.type.toString();\n\t\t\t\tif(typeof event.detail === \"object\" && !!event.detail) {\n\t\t\t\t\t$tw.utils.each(event.detail,function(detailValue,detail) {\n\t\t\t\t\t\tvariables[\"event-detail-\" + detail] = detailValue.toString();\n\t\t\t\t\t});\n\t\t\t\t} else if(!!event.detail) {\n\t\t\t\t\tvariables[\"event-detail\"] = event.detail.toString();\n\t\t\t\t}\n\t\t\t\tself.invokeActionString(actions,self,event,variables);\n\t\t\t\tevent.preventDefault();\n\t\t\t\tevent.stopPropagation();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t},false);\n\t});\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\n/*\nCompute the internal state of the widget\n*/\nEventWidget.prototype.execute = function() {\n\tvar self = this;\n\t// Get attributes that require a refresh on change\n\tthis.types = this.getAttribute(\"events\",\"\").split(\" \");\n\tthis.elementTag = this.getAttribute(\"tag\");\n\t// Make child widgets\n\tthis.makeChildWidgets();\n};\n\nEventWidget.prototype.assignDomNodeClasses = function() {\n\tvar classes = this.getAttribute(\"class\",\"\").split(\" \");\n\tclasses.push(\"tc-eventcatcher\");\n\tthis.domNode.className = classes.join(\" \");\t\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nEventWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes[\"events\"] || changedAttributes[\"tag\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else if(changedAttributes[\"class\"]) {\n\t\tthis.assignDomNodeClasses();\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.eventcatcher = EventWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/fieldmangler.js": { - "title": "$:/core/modules/widgets/fieldmangler.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar FieldManglerWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.addEventListeners([\n\t\t{type: \"tm-remove-field\", handler: \"handleRemoveFieldEvent\"},\n\t\t{type: \"tm-add-field\", handler: \"handleAddFieldEvent\"},\n\t\t{type: \"tm-remove-tag\", handler: \"handleRemoveTagEvent\"},\n\t\t{type: \"tm-add-tag\", handler: \"handleAddTagEvent\"}\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(\"tiddler\",this.getVariable(\"currentTiddler\"));\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\"InvalidFieldName\",\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 && tiddler) {\n\t\t\t\t\tvalue = tiddler.fields[trimmedName];\n\t\t\t\t}\n\t\t\t\taddition[trimmedName] = value || \"\";\n\t\t\t}\n\t\t\treturn;\n\t\t};\n\taddition.title = this.mangleTitle;\n\tif(typeof event.param === \"string\") {\n\t\taddField(event.param,\"\");\n\t}\n\tif(typeof event.paramObject === \"object\") {\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 && 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 && typeof event.param === \"string\") {\n\t\tvar tag = event.param.trim();\n\t\tif(tag !== \"\") {\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 === \"string\" && event.param.trim() !== \"\" && this.mangleTitle.trim() !== \"\") {\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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/fields.js": { - "title": "$:/core/modules/widgets/fields.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.template = this.getAttribute(\"template\");\n\tthis.sort = this.getAttribute(\"sort\",\"yes\") === \"yes\";\n\tthis.sortReverse = this.getAttribute(\"sortReverse\",\"no\") === \"yes\";\n\tthis.exclude = this.getAttribute(\"exclude\");\n\tthis.include = this.getAttribute(\"include\",null);\n\tthis.stripTitlePrefix = this.getAttribute(\"stripTitlePrefix\",\"no\") === \"yes\";\n\t// Get the value to display\n\tvar tiddler = this.wiki.getTiddler(this.tiddlerTitle);\n\n\t// Get the inclusion and exclusion list\n\tvar excludeArr = (this.exclude) ? this.exclude.split(\" \") : [\"text\"];\n\t// Include takes precedence\n\tvar includeArr = (this.include) ? this.include.split(\" \") : null;\n\n\t// Compose the template\n\tvar text = [];\n\tif(this.template && tiddler) {\n\t\tvar fields = [];\n\t\tif (includeArr) { // Include takes precedence\n\t\t\tfor(var i=0; i<includeArr.length; i++) {\n\t\t\t\tif(tiddler.fields[includeArr[i]]) {\n\t\t\t\t\tfields.push(includeArr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor(var fieldName in tiddler.fields) {\n\t\t\t\tif(excludeArr.indexOf(fieldName) === -1) {\n\t\t\t\t\tfields.push(fieldName);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (this.sort) fields.sort();\n\t\tif (this.sortReverse) fields.reverse();\n\t\tfor(var f=0, fmax=fields.length; f<fmax; f++) {\n\t\t\tfieldName = fields[f];\n\t\t\tvar row = this.template,\n\t\t\t\tvalue = tiddler.getFieldString(fieldName);\n\t\t\tif(this.stripTitlePrefix && fieldName === \"title\") {\n\t\t\t\tvar reStrip = /^\\{[^\\}]+\\}(.+)/mg,\n\t\t\t\t\treMatch = reStrip.exec(value);\n\t\t\t\tif(reMatch) {\n\t\t\t\t\tvalue = reMatch[1];\n\t\t\t\t}\n\t\t\t}\n\t\t\trow = $tw.utils.replaceString(row,\"$name$\",fieldName);\n\t\t\trow = $tw.utils.replaceString(row,\"$value$\",value);\n\t\t\trow = $tw.utils.replaceString(row,\"$encoded_value$\",$tw.utils.htmlEncode(value));\n\t\t\ttext.push(row);\n\t\t}\n\t}\n\tthis.text = text.join(\"\");\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nFieldsWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif( changedAttributes.tiddler || changedAttributes.template || changedAttributes.exclude ||\n\t\tchangedAttributes.include || changedAttributes.sort || changedAttributes.sortReverse ||\n\t\tchangedTiddlers[this.tiddlerTitle] || changedAttributes.stripTitlePrefix) {\n\t\t\tthis.refreshSelf();\n\t\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n};\n\nexports.fields = FieldsWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/image.js": { - "title": "$:/core/modules/widgets/image.js", - "text": "/*\\\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<$image src=\"TiddlerTitle\" width=\"320\" height=\"400\" class=\"classnames\">\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 `<img>` tag.\n\nTiddlers that have a _canonical_uri field generate an HTML `<img>` tag with the src attribute containing the URI.\n\nTiddlers that contain image data generate an HTML `<img>` 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 \"px\" suffix.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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 = \"img\", src = \"\",\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(\"tv-get-export-image-link\",{params: [{name: \"src\",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 \"application/pdf\":\n\t\t\t\t\t\ttag = \"embed\";\n\t\t\t\t\t\tsrc = \"data:application/pdf;base64,\" + text;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"image/svg+xml\":\n\t\t\t\t\t\tsrc = \"data:image/svg+xml,\" + encodeURIComponent(text);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tsrc = \"data:\" + type + \";base64,\" + 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 \"application/pdf\":\n\t\t\t\t\t\ttag = \"embed\";\n\t\t\t\t\t\tsrc = _canonical_uri;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"image/svg+xml\":\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(\"src\",src);\n\tif(this.imageClass) {\n\t\tdomNode.setAttribute(\"class\",this.imageClass);\t\t\n\t}\n\tif(this.imageWidth) {\n\t\tdomNode.setAttribute(\"width\",this.imageWidth);\n\t}\n\tif(this.imageHeight) {\n\t\tdomNode.setAttribute(\"height\",this.imageHeight);\n\t}\n\tif(this.imageTooltip) {\n\t\tdomNode.setAttribute(\"title\",this.imageTooltip);\t\t\n\t}\n\tif(this.imageAlt) {\n\t\tdomNode.setAttribute(\"alt\",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(\"source\");\n\tthis.imageWidth = this.getAttribute(\"width\");\n\tthis.imageHeight = this.getAttribute(\"height\");\n\tthis.imageClass = this.getAttribute(\"class\");\n\tthis.imageTooltip = this.getAttribute(\"tooltip\");\n\tthis.imageAlt = this.getAttribute(\"alt\");\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[\"class\"] || 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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/importvariables.js": { - "title": "$:/core/modules/widgets/importvariables.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ImportVariablesWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nImportVariablesWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nImportVariablesWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nImportVariablesWidget.prototype.execute = function(tiddlerList) {\n\tvar widgetPointer = this;\n\t// Got to flush all the accumulated variables\n\tthis.variables = new this.variablesConstructor();\n\t// Get our parameters\n\tthis.filter = this.getAttribute(\"filter\");\n\t// Compute the filter\n\tthis.tiddlerList = tiddlerList || this.wiki.filterTiddlers(this.filter,this);\n\t// Accumulate the <$set> widgets from each tiddler\n\t$tw.utils.each(this.tiddlerList,function(title) {\n\t\tvar parser = widgetPointer.wiki.parseTiddler(title);\n\t\tif(parser) {\n\t\t\tvar parseTreeNode = parser.tree[0];\n\t\t\twhile(parseTreeNode && parseTreeNode.type === \"set\") {\n\t\t\t\tvar node = {\n\t\t\t\t\ttype: \"set\",\n\t\t\t\t\tattributes: parseTreeNode.attributes,\n\t\t\t\t\tparams: parseTreeNode.params,\n\t\t\t\t\tisMacroDefinition: parseTreeNode.isMacroDefinition\n\t\t\t\t};\n\t\t\t\tif (parseTreeNode.isMacroDefinition) {\n\t\t\t\t\t// Macro definitions can be folded into\n\t\t\t\t\t// current widget instead of adding\n\t\t\t\t\t// another link to the chain.\n\t\t\t\t\tvar widget = widgetPointer.makeChildWidget(node);\n\t\t\t\t\twidget.computeAttributes();\n\t\t\t\t\twidget.execute();\n\t\t\t\t\t// We SHALLOW copy over all variables\n\t\t\t\t\t// in widget. We can't use\n\t\t\t\t\t// $tw.utils.assign, because that copies\n\t\t\t\t\t// up the prototype chain, which we\n\t\t\t\t\t// don't want.\n\t\t\t\t\t$tw.utils.each(Object.keys(widget.variables), function(key) {\n\t\t\t\t\t\twidgetPointer.variables[key] = widget.variables[key];\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\twidgetPointer.children = [widgetPointer.makeChildWidget(node)];\n\t\t\t\t\t// No more regenerating children for\n\t\t\t\t\t// this widget. If it needs to refresh,\n\t\t\t\t\t// it'll do so along with the the whole\n\t\t\t\t\t// importvariable tree.\n\t\t\t\t\tif (widgetPointer != this) {\n\t\t\t\t\t\twidgetPointer.makeChildWidgets = function(){};\n\t\t\t\t\t}\n\t\t\t\t\twidgetPointer = widgetPointer.children[0];\n\t\t\t\t}\n\t\t\t\tparseTreeNode = parseTreeNode.children && parseTreeNode.children[0];\n\t\t\t}\n\t\t} \n\t});\n\n\tif (widgetPointer != this) {\n\t\twidgetPointer.parseTreeNode.children = this.parseTreeNode.children;\n\t} else {\n\t\twidgetPointer.makeChildWidgets();\n\t}\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nImportVariablesWidget.prototype.refresh = function(changedTiddlers) {\n\t// Recompute our attributes and the filter list\n\tvar changedAttributes = this.computeAttributes(),\n\t\ttiddlerList = this.wiki.filterTiddlers(this.getAttribute(\"filter\"),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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/keyboard.js": { - "title": "$:/core/modules/widgets/keyboard.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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 ? \"div\" : \"span\";\n\tif(this.tag && $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[\"class\"] || \"\").split(\" \");\n\tclasses.push(\"tc-keyboard\");\n\tdomNode.className = classes.join(\" \");\n\t// Add a keyboard event handler\n\tdomNode.addEventListener(\"keydown\",function (event) {\n\t\tif($tw.keyboardManager.checkKeyDescriptors(event,self.keyInfoArray)) {\n\t\t\tvar handled = self.invokeActions(self,event);\n\t\t\tif(self.actions) {\n\t\t\t\tself.invokeActionString(self.actions,self,event);\n\t\t\t}\n\t\t\tself.dispatchMessage(event);\n\t\t\tif(handled || self.actions || self.message) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t},false);\n\t// Insert element\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tthis.domNodes.push(domNode);\n};\n\nKeyboardWidget.prototype.dispatchMessage = function(event) {\n\tthis.dispatchEvent({type: this.message, param: this.param, tiddlerTitle: this.getVariable(\"currentTiddler\")});\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(\"actions\",\"\");\n\tthis.message = this.getAttribute(\"message\",\"\");\n\tthis.param = this.getAttribute(\"param\",\"\");\n\tthis.key = this.getAttribute(\"key\",\"\");\n\tthis.tag = this.getAttribute(\"tag\",\"\");\n\tthis.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key);\n\tthis[\"class\"] = this.getAttribute(\"class\",\"\");\n\tif(this.key.substr(0,2) === \"((\" && this.key.substr(-2,2) === \"))\") {\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(\"$:/config/\" + platformDescriptor + \"/\" + 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[\"class\"] || 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 && $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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/link.js": { - "title": "$:/core/modules/widgets/link.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"tv-wikilinks\"),\n\t\tuseWikiLinks = wikiLinksMacro ? (wikiLinksMacro.trim() !== \"no\") : true,\n\t\tmissingLinksEnabled = !(this.hideMissingLinks && this.isMissing && !this.isShadow);\n\t// Render the link if required\n\tif(useWikiLinks && 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(\"span\");\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 = \"a\";\n\t}\n\t// Create our element\n\tvar namespace = this.getVariable(\"namespace\",{defaultValue: \"http://www.w3.org/1999/xhtml\"}),\n\t\tdomNode = this.document.createElementNS(namespace,tag);\n\t// Assign classes\n\tvar classes = [];\n\tif(this.overrideClasses === undefined) {\n\t\tclasses.push(\"tc-tiddlylink\");\n\t\tif(this.isShadow) {\n\t\t\tclasses.push(\"tc-tiddlylink-shadow\");\n\t\t}\n\t\tif(this.isMissing && !this.isShadow) {\n\t\t\tclasses.push(\"tc-tiddlylink-missing\");\n\t\t} else {\n\t\t\tif(!this.isMissing) {\n\t\t\t\tclasses.push(\"tc-tiddlylink-resolves\");\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 !== \"\") {\n\t\tclasses.push(this.overrideClasses)\n\t}\n\tif(classes.length > 0) {\n\t\tdomNode.setAttribute(\"class\",classes.join(\" \"));\n\t}\n\t// Set an href\n\tvar wikilinkTransformFilter = this.getVariable(\"tv-filter-export-link\"),\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(\"tv-wikilink-template\"),\n\t\t\twikiLinkTemplate = wikiLinkTemplateMacro ? wikiLinkTemplateMacro.trim() : \"#$uri_encoded$\";\n\t\twikiLinkText = $tw.utils.replaceString(wikiLinkTemplate,\"$uri_encoded$\",encodeURIComponent(this.to));\n\t\twikiLinkText = $tw.utils.replaceString(wikiLinkText,\"$uri_doubleencoded$\",encodeURIComponent(encodeURIComponent(this.to)));\n\t}\n\t// Override with the value of tv-get-export-link if defined\n\twikiLinkText = this.getVariable(\"tv-get-export-link\",{params: [{name: \"to\",value: this.to}],defaultValue: wikiLinkText});\n\tif(tag === \"a\") {\n\t\tvar namespaceHref = (namespace === \"http://www.w3.org/2000/svg\") ? \"http://www.w3.org/1999/xlink\" : undefined;\n\t\tdomNode.setAttributeNS(namespaceHref,\"href\",wikiLinkText);\n\t}\n\t// Set the tabindex\n\tif(this.tabIndex) {\n\t\tdomNode.setAttribute(\"tabindex\",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 \"<$transclude field='tooltip'><$transclude field='title'/></$transclude>\"\n\tvar tooltipWikiText = this.tooltip || this.getVariable(\"tv-wikilink-tooltip\");\n\tif(tooltipWikiText) {\n\t\tvar tooltipText = this.wiki.renderText(\"text/plain\",\"text/vnd.tiddlywiki\",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(\"title\",tooltipText);\n\t}\n\tif(this[\"aria-label\"]) {\n\t\tdomNode.setAttribute(\"aria-label\",this[\"aria-label\"]);\n\t}\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \"click\", handlerObject: this, handlerMethod: \"handleClickEvent\"},\n\t]);\n\t// Make the link draggable if required\n\tif(this.draggable === \"yes\") {\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: \"tm-navigate\",\n\t\tnavigateTo: this.to,\n\t\tnavigateFromTitle: this.getVariable(\"storyTiddler\"),\n\t\tnavigateFromNode: this,\n\t\tnavigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height\n\t\t},\n\t\tnavigateSuppressNavigation: event.metaKey || event.ctrlKey || (event.button === 1),\n\t\tmetaKey: event.metaKey,\n\t\tctrlKey: event.ctrlKey,\n\t\taltKey: event.altKey,\n\t\tshiftKey: event.shiftKey,\n\t\tevent: event\n\t});\n\tif(this.domNodes[0].hasAttribute(\"href\")) {\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(\"to\",this.getVariable(\"currentTiddler\"));\n\tthis.tooltip = this.getAttribute(\"tooltip\");\n\tthis[\"aria-label\"] = this.getAttribute(\"aria-label\");\n\tthis.linkClasses = this.getAttribute(\"class\");\n\tthis.overrideClasses = this.getAttribute(\"overrideClass\");\n\tthis.tabIndex = this.getAttribute(\"tabindex\");\n\tthis.draggable = this.getAttribute(\"draggable\",\"yes\");\n\tthis.linkTag = this.getAttribute(\"tag\",\"a\");\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(\"tv-show-missing-links\") || \"yes\") === \"no\";\n\t// Make the child widgets\n\tvar templateTree;\n\tif(this.parseTreeNode.children && this.parseTreeNode.children.length > 0) {\n\t\ttemplateTree = this.parseTreeNode.children;\n\t} else {\n\t\t// Default template is a link to the title\n\t\ttemplateTree = [{type: \"text\", text: this.to}];\n\t}\n\tthis.makeChildWidgets(templateTree);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nLinkWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.to || changedTiddlers[this.to] || changedAttributes[\"aria-label\"] || 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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/linkcatcher.js": { - "title": "$:/core/modules/widgets/linkcatcher.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar LinkCatcherWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.addEventListeners([\n\t\t{type: \"tm-navigate\", handler: \"handleNavigateEvent\"}\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(\"to\");\n\tthis.catchMessage = this.getAttribute(\"message\");\n\tthis.catchSet = this.getAttribute(\"set\");\n\tthis.catchSetTo = this.getAttribute(\"setTo\");\n\tthis.catchActions = this.getAttribute(\"actions\");\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(\"currentTiddler\"));\n\t\t}\n\t\tif(this.catchMessage && this.parentWidget) {\n\t\t\tthis.parentWidget.dispatchEvent({\n\t\t\t\ttype: this.catchMessage,\n\t\t\t\tparam: event.navigateTo,\n\t\t\t\tnavigateTo: event.navigateTo\n\t\t\t});\n\t\t}\n\t\tif(this.catchSet) {\n\t\t\tvar tiddler = this.wiki.getTiddler(this.catchSet);\n\t\t\tthis.wiki.addTiddler(new $tw.Tiddler(tiddler,{title: this.catchSet, text: this.catchSetTo}));\n\t\t}\n\t\tif(this.catchActions) {\n\t\t\tthis.executingActions = true;\n\t\t\tvar modifierKey = $tw.keyboardManager.getEventModifierKeyDescriptor(event);\n\t\t\tthis.invokeActionString(this.catchActions,this,event,{navigateTo: event.navigateTo, modifier: modifierKey});\n\t\t\tthis.executingActions = false;\n\t\t}\n\t} else {\n\t\t// This is a navigate event generated by the actions of this linkcatcher, so we don't trap it again, but just pass it to the parent\n\t\tthis.parentWidget.dispatchEvent({\n\t\t\ttype: \"tm-navigate\",\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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/list.js": { - "title": "$:/core/modules/widgets/list.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"storyview\",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 && !StoryView) {\n\t\tStoryView = this.storyViews[\"classic\"];\n\t}\n\tif(StoryView && !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(\"template\");\n\tthis.editTemplate = this.getAttribute(\"editTemplate\");\n\tthis.variableName = this.getAttribute(\"variable\",\"currentTiddler\");\n\tthis.storyViewName = this.getAttribute(\"storyview\");\n\tthis.historyTitle = this.getAttribute(\"history\");\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 = \"[!is[system]sort[title]]\";\n\treturn this.wiki.filterTiddlers(this.getAttribute(\"filter\",defaultFilter),this);\n};\n\nListWidget.prototype.getEmptyMessage = function() {\n\tvar parser,\n\t\temptyMessage = this.getAttribute(\"emptyMessage\",\"\");\n\t// this.wiki.parseText() calls \n\t// new Parser(..), which should only be done, if needed, because it's heavy!\n\tif (emptyMessage === \"\") {\n\t\treturn [];\n\t}\n\tparser = this.wiki.parseText(\"text/vnd.tiddlywiki\",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 && tiddler.hasField(\"draft.of\"),\n\t\ttemplate = this.template,\n\t\ttemplateTree;\n\tif(isDraft && this.editTemplate) {\n\t\ttemplate = this.editTemplate;\n\t}\n\t// Compose the transclusion of the template\n\tif(template) {\n\t\ttemplateTree = [{type: \"transclude\", attributes: {tiddler: {type: \"string\", value: template}}}];\n\t} else {\n\t\tif(this.parseTreeNode.children && this.parseTreeNode.children.length > 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: \"element\", tag: this.parseTreeNode.isBlock ? \"div\" : \"span\", children: [{type: \"link\", attributes: {to: {type: \"string\", value: title}}, children: [\n\t\t\t\t\t{type: \"text\", text: title}\n\t\t\t]}]}];\n\t\t}\n\t}\n\t// Return the list item\n\treturn {type: \"listitem\", 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 && 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 && changedTiddlers[this.historyTitle]) {\n\t\t\tthis.handleHistoryChanges();\n\t\t}\n\t}\n\t// Call the storyview\n\tif(this.storyview && 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 < newHistory.length && entry < this.history.length && 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 < newHistory.length) {\n\t\tif(this.storyview && 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>=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<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>=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>=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 < 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 && 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 && 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})();", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/log.js": { - "title": "$:/core/modules/widgets/log.js", - "text": "/*\\\ntitle: $:/core/modules/widgets/log.js\ntype: application/javascript\nmodule-type: widget-subclass\n\nWidget to log debug messages\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.baseClass = \"action-log\";\n\nexports.name = \"log\";\n\nexports.constructor = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n}\n\nexports.prototype = {};\n\nexports.prototype.render = function(event) {\n\tObject.getPrototypeOf(Object.getPrototypeOf(this)).render.call(this,event);\t\n\tObject.getPrototypeOf(Object.getPrototypeOf(this)).log.call(this);\n}\n\n})();", - "type": "application/javascript", - "module-type": "widget-subclass" - }, - "$:/core/modules/widgets/macrocall.js": { - "title": "$:/core/modules/widgets/macrocall.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"$type\",\"text/vnd.tiddlywiki\");\n\tthis.renderOutput = this.getAttribute(\"$output\",\"text/html\");\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) !== \"$\") {\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(\"$name\"),\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 === \"text/html\") {\n\t\t// If so we'll return the parsed macro\n\t\t// Check if we've already cached parsing this macro\n\t\tvar mode = this.parseTreeNode.isBlock ? \"blockParser\" : \"inlineParser\",\n\t\t\tparser;\n\t\tif(variableInfo.srcVariable && variableInfo.srcVariable[mode]) {\n\t\t\tparser = variableInfo.srcVariable[mode];\n\t\t} else {\n\t\t\tparser = this.wiki.parseText(this.parseType,text,\n\t\t\t\t\t\t\t\t{parseAsInline: !this.parseTreeNode.isBlock});\n\t\t\tif(variableInfo.isCacheable && variableInfo.srcVariable) {\n\t\t\t\tvariableInfo.srcVariable[mode] = parser;\n\t\t\t}\n\t\t}\n\t\tvar parseTreeNodes = parser ? parser.tree : [];\n\t\t// Wrap the parse tree in a vars widget assigning the parameters to variables named \"__paramname__\"\n\t\tvar attributes = {};\n\t\t$tw.utils.each(variableInfo.params,function(param) {\n\t\t\tvar name = \"__\" + param.name + \"__\";\n\t\t\tattributes[name] = {\n\t\t\t\tname: name,\n\t\t\t\ttype: \"string\",\n\t\t\t\tvalue: param.value\n\t\t\t};\n\t\t});\n\t\tparseTreeNodes = [{\n\t\t\ttype: \"vars\",\n\t\t\tattributes: attributes,\n\t\t\tchildren: parseTreeNodes\n\t\t}];\n\t} else if(this.renderOutput === \"text/raw\") {\n\t\tparseTreeNodes = [{type: \"text\", text: text}];\n\t} else {\n\t\t// Otherwise, we'll render the text\n\t\tvar plainText = this.wiki.renderText(\"text/plain\",this.parseType,text,{parentWidget: this});\n\t\tparseTreeNodes = [{type: \"text\", 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) > 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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/navigator.js": { - "title": "$:/core/modules/widgets/navigator.js", - "text": "/*\\\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\"use strict\";\n\nvar IMPORT_TITLE = \"$:/Import\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar NavigatorWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.addEventListeners([\n\t\t{type: \"tm-navigate\", handler: \"handleNavigateEvent\"},\n\t\t{type: \"tm-edit-tiddler\", handler: \"handleEditTiddlerEvent\"},\n\t\t{type: \"tm-delete-tiddler\", handler: \"handleDeleteTiddlerEvent\"},\n\t\t{type: \"tm-save-tiddler\", handler: \"handleSaveTiddlerEvent\"},\n\t\t{type: \"tm-cancel-tiddler\", handler: \"handleCancelTiddlerEvent\"},\n\t\t{type: \"tm-close-tiddler\", handler: \"handleCloseTiddlerEvent\"},\n\t\t{type: \"tm-close-all-tiddlers\", handler: \"handleCloseAllTiddlersEvent\"},\n\t\t{type: \"tm-close-other-tiddlers\", handler: \"handleCloseOtherTiddlersEvent\"},\n\t\t{type: \"tm-new-tiddler\", handler: \"handleNewTiddlerEvent\"},\n\t\t{type: \"tm-import-tiddlers\", handler: \"handleImportTiddlersEvent\"},\n\t\t{type: \"tm-perform-import\", handler: \"handlePerformImportEvent\"},\n\t\t{type: \"tm-fold-tiddler\", handler: \"handleFoldTiddlerEvent\"},\n\t\t{type: \"tm-fold-other-tiddlers\", handler: \"handleFoldOtherTiddlersEvent\"},\n\t\t{type: \"tm-fold-all-tiddlers\", handler: \"handleFoldAllTiddlersEvent\"},\n\t\t{type: \"tm-unfold-all-tiddlers\", handler: \"handleUnfoldAllTiddlersEvent\"},\n\t\t{type: \"tm-rename-tiddler\", handler: \"handleRenameTiddlerEvent\"}\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(\"story\");\n\tthis.historyTitle = this.getAttribute(\"history\");\n\tthis.setVariable(\"tv-story-list\",this.storyTitle);\n\tthis.setVariable(\"tv-history-list\",this.historyTitle);\n\tthis.story = new $tw.Story({\n\t\twiki: this.wiki,\n\t\tstoryTitle: this.storyTitle,\n\t\thistoryTitle: this.historyTitle\n\t});\n\t// Construct the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nNavigatorWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.story || changedAttributes.history) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nNavigatorWidget.prototype.getStoryList = function() {\n\treturn this.storyTitle ? this.wiki.getTiddlerList(this.storyTitle) : null;\n};\n\nNavigatorWidget.prototype.saveStoryList = function(storyList) {\n\tif(this.storyTitle) {\n\t\tvar storyTiddler = this.wiki.getTiddler(this.storyTitle);\n\t\tthis.wiki.addTiddler(new $tw.Tiddler(\n\t\t\t{title: this.storyTitle},\n\t\t\tstoryTiddler,\n\t\t\t{list: storyList}\n\t\t));\t\t\n\t}\n};\n\nNavigatorWidget.prototype.removeTitleFromStory = function(storyList,title) {\n\tif(storyList) {\n\t\tvar p = storyList.indexOf(title);\n\t\twhile(p !== -1) {\n\t\t\tstoryList.splice(p,1);\n\t\t\tp = storyList.indexOf(title);\n\t\t}\t\t\n\t}\n};\n\nNavigatorWidget.prototype.replaceFirstTitleInStory = function(storyList,oldTitle,newTitle) {\n\tif(storyList) {\n\t\tvar pos = storyList.indexOf(oldTitle);\n\t\tif(pos !== -1) {\n\t\t\tstoryList[pos] = newTitle;\n\t\t\tdo {\n\t\t\t\tpos = storyList.indexOf(oldTitle,pos + 1);\n\t\t\t\tif(pos !== -1) {\n\t\t\t\t\tstoryList.splice(pos,1);\n\t\t\t\t}\n\t\t\t} while(pos !== -1);\n\t\t} else {\n\t\t\tstoryList.splice(0,0,newTitle);\n\t\t}\t\t\n\t}\n};\n\nNavigatorWidget.prototype.addToStory = function(title,fromTitle) {\n\tif(this.storyTitle) {\n\t\tthis.story.addToStory(title,fromTitle,{\n\t\t\topenLinkFromInsideRiver: this.getAttribute(\"openLinkFromInsideRiver\",\"top\"),\n\t\t\topenLinkFromOutsideRiver: this.getAttribute(\"openLinkFromOutsideRiver\",\"top\")\n\t\t});\n\t}\n};\n\n/*\nAdd a new record to the top of the history stack\ntitle: a title string or an array of title strings\nfromPageRect: page coordinates of the origin of the navigation\n*/\nNavigatorWidget.prototype.addToHistory = function(title,fromPageRect) {\n\tthis.story.addToHistory(title,fromPageRect,this.historyTitle);\n};\n\n/*\nHandle a tm-navigate event\n*/\nNavigatorWidget.prototype.handleNavigateEvent = function(event) {\n\tevent = $tw.hooks.invokeHook(\"th-navigating\",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(\"th-editing-tiddler\",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) && !self.wiki.tiddlerExists(title);\n\t}\n\tfunction confirmEditShadow(title) {\n\t\treturn confirm($tw.language.getString(\n\t\t\t\"ConfirmEditShadowTiddler\",\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) && !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 !== \"yes\") {\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[\"draft.of\"] : \"\",\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 || \"\") !== \"\") && !confirm($tw.language.getString(\n\t\t\t\t\"ConfirmDeleteTiddler\",\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(\"th-deleting-tiddler\",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(\"th-deleting-tiddler\",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: \"tm-auto-save-wiki\"});\n\treturn false;\n};\n\n/*\nCreate/reuse the draft tiddler for a given title\n*/\nNavigatorWidget.prototype.makeDraftTiddler = function(targetTitle) {\n\t// See if there is already a draft tiddler for this tiddler\n\tvar draftTitle = this.wiki.findDraft(targetTitle);\n\tif(draftTitle) {\n\t\treturn this.wiki.getTiddler(draftTitle);\n\t}\n\t// Get the current value of the tiddler we're editing\n\tvar tiddler = this.wiki.getTiddler(targetTitle);\n\t// Save the initial value of the draft tiddler\n\tdraftTitle = this.generateDraftTitle(targetTitle);\n\tvar draftTiddler = new $tw.Tiddler({\n\t\t\t\ttext: \"\",\n\t\t\t},\n\t\t\ttiddler,\n\t\t\t{\n\t\t\t\ttitle: draftTitle,\n\t\t\t\t\"draft.title\": targetTitle,\n\t\t\t\t\"draft.of\": targetTitle\n\t\t\t},\n\t\t\tthis.wiki.getModificationFields()\n\t\t);\n\tthis.wiki.addTiddler(draftTiddler);\n\treturn draftTiddler;\n};\n\n/*\nGenerate a title for the draft of a given tiddler\n*/\nNavigatorWidget.prototype.generateDraftTitle = function(title) {\n\treturn this.wiki.generateDraftTitle(title);\n};\n\n// Take a tiddler out of edit mode, saving the changes\nNavigatorWidget.prototype.handleSaveTiddlerEvent = function(event) {\n\tvar title = event.param || event.tiddlerTitle,\n\t\ttiddler = this.wiki.getTiddler(title),\n\t\tstoryList = this.getStoryList();\n\t// Replace the original tiddler with the draft\n\tif(tiddler) {\n\t\tvar draftTitle = (tiddler.fields[\"draft.title\"] || \"\").trim(),\n\t\t\tdraftOf = (tiddler.fields[\"draft.of\"] || \"\").trim();\n\t\tif(draftTitle) {\n\t\t\tvar isRename = draftOf !== draftTitle,\n\t\t\t\tisConfirmed = true;\n\t\t\tif(isRename && this.wiki.tiddlerExists(draftTitle)) {\n\t\t\t\tisConfirmed = confirm($tw.language.getString(\n\t\t\t\t\t\"ConfirmOverwriteTiddler\",\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\"draft.title\": undefined,\n\t\t\t\t\t\"draft.of\": undefined\n\t\t\t\t},this.wiki.getModificationFields());\n\t\t\t\tnewTiddler = $tw.hooks.invokeHook(\"th-saving-tiddler\",newTiddler,tiddler);\n\t\t\t\tthis.wiki.addTiddler(newTiddler);\n\t\t\t\t// If enabled, relink references to renamed tiddler\n\t\t\t\tvar shouldRelink = this.getAttribute(\"relinkOnRename\",\"no\").toLowerCase().trim() === \"yes\";\n\t\t\t\tif(isRename && shouldRelink && this.wiki.tiddlerExists(draftOf)) {\n\t\t\t\t\tthis.wiki.relinkTiddler(draftOf,draftTitle);\n\t\t\t\t}\n\t\t\t\t// Remove the draft tiddler\n\t\t\t\tthis.wiki.deleteTiddler(title);\n\t\t\t\t// Remove the original tiddler if we're renaming it\n\t\t\t\tif(isRename) {\n\t\t\t\t\tthis.wiki.deleteTiddler(draftOf);\n\t\t\t\t}\n\t\t\t\t// #2381 always remove new title & 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 !== \"yes\") {\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: \"tm-auto-save-wiki\"});\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(\"th-cancelling-tiddler\", 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 && draftTiddler.fields[\"draft.of\"];\n\tif(draftTiddler && 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\"ConfirmCancelTiddler\",\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 !== \"yes\") {\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(\"th-new-tiddler\", 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 === \"string\") {\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(\"DefaultNewTiddlerTitle\"));\n\t}\n\t// Get the specified additional fields\n\tif(typeof event.paramObject === \"object\") {\n\t\tadditionalFields = event.paramObject;\n\t}\n\tif(typeof event.param === \"object\") { // Backwards compatibility with 5.1.3\n\t\tadditionalFields = event.param;\n\t}\n\tif(additionalFields && 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] === \"\") {\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(\"DefaultNewTiddlerTitle\"));\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 && existingTiddler.fields.tags) {\n\t\t$tw.utils.pushTop(mergedTags,existingTiddler.fields.tags);\n\t}\n\tif(additionalFields && additionalFields.tags) {\n\t\t// Merge tags\n\t\tmergedTags = $tw.utils.pushTop(mergedTags,$tw.utils.parseStringArray(additionalFields.tags));\n\t}\n\tif(templateTiddler && 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: \"\",\n\t\t\t\"draft.title\": 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\"draft.of\": 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 && storyList.indexOf(draftTitle) === -1) {\n\t\tvar slot = storyList.indexOf(event.navigateFromTitle);\n\t\tif(slot === -1) {\n\t\t\tslot = this.getAttribute(\"openLinkFromOutsideRiver\",\"top\") === \"bottom\" ? storyList.length - 1 : slot;\n\t\t}\n\t\tstoryList.splice(slot + 1,0,draftTitle);\n\t}\n\tif(storyList && storyList.indexOf(title) !== -1) {\n\t\tstoryList.splice(storyList.indexOf(title),1);\n\t}\n\tthis.saveStoryList(storyList);\n\t// Add a new record to the top of the history stack\n\tthis.addToHistory(draftTitle);\n\treturn false;\n};\n\n// Import JSON tiddlers into a pending import tiddler\nNavigatorWidget.prototype.handleImportTiddlersEvent = function(event) {\n\t// Get the tiddlers\n\tvar tiddlers = [];\n\ttry {\n\t\ttiddlers = JSON.parse(event.param);\n\t} catch(e) {\n\t}\n\t// Get the current $:/Import tiddler\n\tvar importTitle = event.importTitle ? event.importTitle : IMPORT_TITLE,\n\t\timportTiddler = this.wiki.getTiddler(importTitle),\n\t\timportData = this.wiki.getTiddlerData(importTitle,{}),\n\t\tnewFields = new Object({\n\t\t\ttitle: importTitle,\n\t\t\ttype: \"application/json\",\n\t\t\t\"plugin-type\": \"import\",\n\t\t\t\"status\": \"pending\"\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[\"message-\" + 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[\"selection-\" + title] = \"unchecked\";\n\t\t\tnewFields[\"suppressed-\" + title] = \"yes\";\n\t\t}\n\t});\n\t// Save the $:/Import tiddler\n\tnewFields.text = JSON.stringify(importData,null,$tw.config.preferences.jsonSpaces);\n\tthis.wiki.addTiddler(new $tw.Tiddler(importTiddler,newFields));\n\t// Update the story and history details\n\tvar autoOpenOnImport = event.autoOpenOnImport ? event.autoOpenOnImport : this.getVariable(\"tv-auto-open-on-import\"); \n\tif(autoOpenOnImport !== \"no\") {\n\t\tvar storyList = this.getStoryList(),\n\t\t\thistory = [];\n\t\t// Add it to the story\n\t\tif(storyList && storyList.indexOf(importTitle) === -1) {\n\t\t\tstoryList.unshift(importTitle);\n\t\t}\n\t\t// And to history\n\t\thistory.push(importTitle);\n\t\t// Save the updated story and history\n\t\tthis.saveStoryList(storyList);\n\t\tthis.addToHistory(history);\n\t}\n\treturn false;\n};\n\n//\nNavigatorWidget.prototype.handlePerformImportEvent = function(event) {\n\tvar self = this,\n\t\timportTiddler = this.wiki.getTiddler(event.param),\n\t\timportData = this.wiki.getTiddlerDataCached(event.param,{tiddlers: {}}),\n\t\timportReport = [];\n\t// Add the tiddlers to the store\n\timportReport.push($tw.language.getString(\"Import/Imported/Hint\") + \"\\n\");\n\t$tw.utils.each(importData.tiddlers,function(tiddlerFields) {\n\t\tvar title = tiddlerFields.title;\n\t\tif(title && importTiddler && importTiddler.fields[\"selection-\" + title] !== \"unchecked\") {\n\t\t\tif($tw.utils.hop(importTiddler.fields,[\"rename-\" + title])) {\n\t\t\t\tvar tiddler = new $tw.Tiddler(tiddlerFields,{title : importTiddler.fields[\"rename-\" + title]});\n\t\t\t} else {\n\t\t\t\tvar tiddler = new $tw.Tiddler(tiddlerFields);\n\t\t\t}\n\t\t\ttiddler = $tw.hooks.invokeHook(\"th-importing-tiddler\",tiddler);\n\t\t\tself.wiki.addTiddler(tiddler);\n\t\t\timportReport.push(\"# [[\" + tiddler.fields.title + \"]]\");\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(\"\\n\"),\n\t\t\"status\": \"complete\"\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: \"tm-auto-save-wiki\"});\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,\"show\") === \"show\" ? \"hide\" : \"show\";\n\t\tthis.wiki.setText(paramObject.foldedState,\"text\",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,\"text\",null,event.param === title ? \"show\" : \"hide\");\n\t});\n};\n\nNavigatorWidget.prototype.handleFoldAllTiddlersEvent = function(event) {\n\tvar self = this,\n\t\tparamObject = event.paramObject || {},\n\t\tprefix = paramObject.foldedStatePrefix || \"$:/state/folded/\";\n\t$tw.utils.each(this.getStoryList(),function(title) {\n\t\tself.wiki.setText(prefix + title,\"text\",null,\"hide\");\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,\"text\",null,\"show\");\n\t});\n};\n\nNavigatorWidget.prototype.handleRenameTiddlerEvent = function(event) {\n\tvar options = {},\n\t\tparamObject = event.paramObject || {},\n\t\tfrom = paramObject.from || event.tiddlerTitle,\n\t\tto = paramObject.to;\n\toptions.dontRenameInTags = (paramObject.renameInTags === \"false\" || paramObject.renameInTags === \"no\") ? true : false;\n\toptions.dontRenameInLists = (paramObject.renameInLists === \"false\" || paramObject.renameInLists === \"no\") ? true : false;\n\tthis.wiki.renameTiddler(from,to,options);\n};\n\nexports.navigator = NavigatorWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/password.js": { - "title": "$:/core/modules/widgets/password.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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) || \"\" : \"\";\n\t// Create our element\n\tvar domNode = this.document.createElement(\"input\");\n\tdomNode.setAttribute(\"type\",\"password\");\n\tdomNode.setAttribute(\"value\",password);\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(domNode,[\n\t\t{name: \"change\", handlerObject: this, handlerMethod: \"handleChangeEvent\"}\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(\"name\",\"\");\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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/qualify.js": { - "title": "$:/core/modules/widgets/qualify.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"name\");\n\tthis.qualifyTitle = this.getAttribute(\"title\");\n\t// Set context variable\n\tif(this.qualifyName) {\n\t\tthis.setVariable(this.qualifyName,this.qualifyTitle + \"-\" + 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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/radio.js": { - "title": "$:/core/modules/widgets/radio.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\nvar RadioWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nRadioWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nRadioWidget.prototype.render = function(parent,nextSibling) {\n\t// Save the parent dom node\n\tthis.parentDomNode = parent;\n\t// Compute our attributes\n\tthis.computeAttributes();\n\t// Execute our logic\n\tthis.execute();\n\tvar isChecked = this.getValue() === this.radioValue;\n\t// Create our elements\n\tthis.labelDomNode = this.document.createElement(\"label\");\n\tthis.labelDomNode.setAttribute(\"class\",\n\t\t\"tc-radio \" + this.radioClass + (isChecked ? \" tc-radio-selected\" : \"\")\n\t);\n\tthis.inputDomNode = this.document.createElement(\"input\");\n\tthis.inputDomNode.setAttribute(\"type\",\"radio\");\n\tif(isChecked) {\n\t\tthis.inputDomNode.setAttribute(\"checked\",\"true\");\n\t}\n\tif(this.isDisabled === \"yes\") {\n\t\tthis.inputDomNode.setAttribute(\"disabled\",true);\n\t}\n\tthis.labelDomNode.appendChild(this.inputDomNode);\n\tthis.spanDomNode = this.document.createElement(\"span\");\n\tthis.labelDomNode.appendChild(this.spanDomNode);\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(this.inputDomNode,[\n\t\t{name: \"change\", handlerObject: this, handlerMethod: \"handleChangeEvent\"}\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 && 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,\"\",this.radioIndex,this.radioValue);\n\t} else {\n\t\tvar tiddler = this.wiki.getTiddler(this.radioTitle),\n\t\t\taddition = {};\n\t\taddition[this.radioField] = this.radioValue;\n\t\tthis.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),{title: this.radioTitle},tiddler,addition,this.wiki.getModificationFields()));\n\t}\n};\n\nRadioWidget.prototype.handleChangeEvent = function(event) {\n\tif(this.inputDomNode.checked) {\n\t\tthis.setValue();\n\t}\n\t// Trigger actions\n\tif(this.radioActions) {\n\t\tthis.invokeActionString(this.radioActions,this,event,{\"actionValue\": this.radioValue});\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nRadioWidget.prototype.execute = function() {\n\t// Get the parameters from the attributes\n\tthis.radioTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.radioField = this.getAttribute(\"field\",\"text\");\n\tthis.radioIndex = this.getAttribute(\"index\");\n\tthis.radioValue = this.getAttribute(\"value\");\n\tthis.radioClass = this.getAttribute(\"class\",\"\");\n\tthis.isDisabled = this.getAttribute(\"disabled\",\"no\");\n\tthis.radioActions = this.getAttribute(\"actions\",\"\");\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nRadioWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(($tw.utils.count(changedAttributes) > 0) || changedTiddlers[this.radioTitle]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\nexports.radio = RadioWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/range.js": { - "title": "$:/core/modules/widgets/range.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"input\");\n\tthis.inputDomNode.setAttribute(\"type\",\"range\");\n\tthis.inputDomNode.setAttribute(\"class\",this.elementClass);\n\tif(this.minValue){\n\t\tthis.inputDomNode.setAttribute(\"min\", this.minValue);\n\t}\n\tif(this.maxValue){\n\t\tthis.inputDomNode.setAttribute(\"max\", this.maxValue);\n\t}\n\tif(this.increment){\n\t\tthis.inputDomNode.setAttribute(\"step\", this.increment);\n\t}\n\tif(this.isDisabled === \"yes\") {\n\t\tthis.inputDomNode.setAttribute(\"disabled\",true);\n\t}\n\tthis.inputDomNode.value = this.getValue();\n\t// Add a click event handler\n\t$tw.utils.addEventListeners(this.inputDomNode,[\n\t\t{name:\"mousedown\", handlerObject:this, handlerMethod:\"handleMouseDownEvent\"},\n\t\t{name:\"mouseup\", handlerObject:this, handlerMethod:\"handleMouseUpEvent\"},\n\t\t{name:\"change\", handlerObject:this, handlerMethod:\"handleChangeEvent\"},\n\t\t{name:\"input\", handlerObject:this, handlerMethod:\"handleInputEvent\"},\n\t]);\n\t// Insert the label into the DOM and render any children\n\tparent.insertBefore(this.inputDomNode,nextSibling);\n\tthis.domNodes.push(this.inputDomNode);\n};\n\nRangeWidget.prototype.getValue = function() {\n\tvar tiddler = this.wiki.getTiddler(this.tiddlerTitle),\n\t\tfieldName = this.tiddlerField,\n\t\tvalue = this.defaultValue;\n\tif(tiddler) {\n\t\tif(this.tiddlerIndex) {\n\t\t\tvalue = this.wiki.extractTiddlerDataItem(tiddler,this.tiddlerIndex,this.defaultValue);\n\t\t} else {\n\t\t\tif($tw.utils.hop(tiddler.fields,fieldName)) {\n\t\t\t\tvalue = tiddler.fields[fieldName] || \"\";\n\t\t\t} else {\n\t\t\t\tvalue = this.defaultValue;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\nRangeWidget.prototype.getActionVariables = function(options) {\n\toptions = options || {};\n\tvar hasChanged = (this.startValue !== this.inputDomNode.value) ? \"yes\" : \"no\";\n\t// Trigger actions. Use variables = {key:value, key:value ...}\n\t// the \"value\" is needed.\n\treturn $tw.utils.extend({\"actionValue\": this.inputDomNode.value, \"actionValueHasChanged\": hasChanged}, options);\n}\n\n// actionsStart\nRangeWidget.prototype.handleMouseDownEvent = function(event) {\n\tthis.mouseDown = true; // TODO remove once IE is gone.\n\tthis.startValue = this.inputDomNode.value; // TODO remove this line once IE is gone!\n\tthis.handleEvent(event);\n\t// Trigger actions\n\tif(this.actionsMouseDown) {\n\t\tvar variables = this.getActionVariables() // TODO this line will go into the function call below.\n\t\tthis.invokeActionString(this.actionsMouseDown,this,event,variables);\n\t}\n}\n\n// actionsStop\nRangeWidget.prototype.handleMouseUpEvent = function(event) {\n\tthis.mouseDown = false; // TODO remove once IE is gone.\n\tthis.handleEvent(event);\n\t// Trigger actions\n\tif(this.actionsMouseUp) {\n\t\tvar variables = this.getActionVariables()\n\t\tthis.invokeActionString(this.actionsMouseUp,this,event,variables);\n\t}\n\t// TODO remove the following if() once IE is gone!\n\tif ($tw.browser.isIE) {\n\t\tif (this.startValue !== this.inputDomNode.value) {\n\t\t\tthis.handleChangeEvent(event);\n\t\t\tthis.startValue = this.inputDomNode.value;\n\t\t}\n\t}\n}\n\nRangeWidget.prototype.handleChangeEvent = function(event) {\n\tif (this.mouseDown) { // TODO refactor this function once IE is gone.\n\t\tthis.handleInputEvent(event);\n\t}\n};\n\nRangeWidget.prototype.handleInputEvent = function(event) {\n\tthis.handleEvent(event);\n\t// Trigger actions\n\tif(this.actionsInput) {\n\t\t// \"tiddler\" parameter may be missing. See .execute() below\n\t\tvar variables = this.getActionVariables({\"actionValueHasChanged\": \"yes\"}) // TODO this line will go into the function call below.\n\t\tthis.invokeActionString(this.actionsInput,this,event,variables);\n\t}\n};\n\nRangeWidget.prototype.handleEvent = function(event) {\n\tif(this.getValue() !== this.inputDomNode.value) {\n\t\tif(this.tiddlerIndex) {\n\t\t\tthis.wiki.setText(this.tiddlerTitle,\"\",this.tiddlerIndex,this.inputDomNode.value);\n\t\t} else {\n\t\t\tthis.wiki.setText(this.tiddlerTitle,this.tiddlerField,null,this.inputDomNode.value);\n\t\t}\n\t}\n};\n\n/*\nCompute the internal state of the widget\n*/\nRangeWidget.prototype.execute = function() {\n\t// TODO remove the next 1 lines once IE is gone!\n\tthis.mouseUp = true; // Needed for IE10\n\t// Get the parameters from the attributes\n\tthis.tiddlerTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.tiddlerField = this.getAttribute(\"field\",\"text\");\n\tthis.tiddlerIndex = this.getAttribute(\"index\");\n\tthis.minValue = this.getAttribute(\"min\");\n\tthis.maxValue = this.getAttribute(\"max\");\n\tthis.increment = this.getAttribute(\"increment\");\n\tthis.defaultValue = this.getAttribute(\"default\",\"\");\n\tthis.elementClass = this.getAttribute(\"class\",\"\");\n\tthis.isDisabled = this.getAttribute(\"disabled\",\"no\");\n\t// Actions since 5.1.23\n\t// Next 2 only fire once!\n\tthis.actionsMouseDown = this.getAttribute(\"actionsStart\",\"\");\n\tthis.actionsMouseUp = this.getAttribute(\"actionsStop\",\"\");\n\t// Input fires very often!\n\tthis.actionsInput = this.getAttribute(\"actions\",\"\");\n\t// Make the child widgets\n\tthis.makeChildWidgets();\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nRangeWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif($tw.utils.count(changedAttributes) > 0) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\tvar refreshed = false;\n\t\tif(changedTiddlers[this.tiddlerTitle]) {\n\t\t\tvar value = this.getValue();\n\t\t\tif(this.inputDomNode.value !== value) {\n\t\t\t\tthis.inputDomNode.value = value;\n\t\t\t}\n\t\t\trefreshed = true;\n\t\t}\n\t\treturn this.refreshChildren(changedTiddlers) || refreshed;\n\t}\n};\n\nexports.range = RangeWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/raw.js": { - "title": "$:/core/modules/widgets/raw.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"div\");\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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/reveal.js": { - "title": "$:/core/modules/widgets/reveal.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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 ? \"div\" : \"span\";\n\tif(this.revealTag && $tw.config.htmlUnsafeElements.indexOf(this.revealTag) === -1) {\n\t\ttag = this.revealTag;\n\t}\n\tvar domNode = this.document.createElement(tag);\n\tthis.domNode = domNode;\n\tthis.assignDomNodeClasses();\n\tif(this.style) {\n\t\tdomNode.setAttribute(\"style\",this.style);\n\t}\n\tparent.insertBefore(domNode,nextSibling);\n\tthis.renderChildren(domNode,null);\n\tif(!domNode.isTiddlyWikiFakeDom && this.type === \"popup\" && this.isOpen) {\n\t\tthis.positionPopup(domNode);\n\t\t$tw.utils.addClass(domNode,\"tc-popup\"); // Make sure that clicks don't dismiss popups within the revealed content\n\t}\n\tif(!this.isOpen) {\n\t\tdomNode.setAttribute(\"hidden\",\"true\");\n\t}\n\tthis.domNodes.push(domNode);\n};\n\nRevealWidget.prototype.positionPopup = function(domNode) {\n\tdomNode.style.position = \"absolute\";\n\tdomNode.style.zIndex = \"1000\";\n\tvar left,top;\n\tswitch(this.position) {\n\t\tcase \"left\":\n\t\t\tleft = this.popup.left - domNode.offsetWidth;\n\t\t\ttop = this.popup.top;\n\t\t\tbreak;\n\t\tcase \"above\":\n\t\t\tleft = this.popup.left;\n\t\t\ttop = this.popup.top - domNode.offsetHeight;\n\t\t\tbreak;\n\t\tcase \"aboveright\":\n\t\t\tleft = this.popup.left + this.popup.width;\n\t\t\ttop = this.popup.top + this.popup.height - domNode.offsetHeight;\n\t\t\tbreak;\n\t\tcase \"belowright\":\n\t\t\tleft = this.popup.left + this.popup.width;\n\t\t\ttop = this.popup.top + this.popup.height;\n\t\t\tbreak;\t\t\t\n\t\tcase \"right\":\n\t\t\tleft = this.popup.left + this.popup.width;\n\t\t\ttop = this.popup.top;\n\t\t\tbreak;\n\t\tcase \"belowleft\":\n\t\t\tleft = this.popup.left + this.popup.width - domNode.offsetWidth;\n\t\t\ttop = this.popup.top + this.popup.height;\n\t\t\tbreak;\n\t\tcase \"aboveleft\":\n\t\t\tleft = this.popup.left - domNode.offsetWidth;\n\t\t\ttop = this.popup.top - domNode.offsetHeight;\n\t\t\tbreak;\t\t\t\n\t\tdefault: // Below\n\t\t\tleft = this.popup.left;\n\t\t\ttop = this.popup.top + this.popup.height;\n\t\t\tbreak;\n\t}\n\tif(!this.positionAllowNegative) {\n\t\tleft = Math.max(0,left);\n\t\ttop = Math.max(0,top);\n\t}\n\tdomNode.style.left = left + \"px\";\n\tdomNode.style.top = top + \"px\";\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(\"state\");\n\tthis.revealTag = this.getAttribute(\"tag\");\n\tthis.type = this.getAttribute(\"type\");\n\tthis.text = this.getAttribute(\"text\");\n\tthis.position = this.getAttribute(\"position\");\n\tthis.positionAllowNegative = this.getAttribute(\"positionAllowNegative\") === \"yes\";\n\t// class attribute handled in assignDomNodeClasses()\n\tthis.style = this.getAttribute(\"style\",\"\");\n\tthis[\"default\"] = this.getAttribute(\"default\",\"\");\n\tthis.animate = this.getAttribute(\"animate\",\"no\");\n\tthis.retain = this.getAttribute(\"retain\",\"no\");\n\tthis.openAnimation = this.animate === \"no\" ? undefined : \"open\";\n\tthis.closeAnimation = this.animate === \"no\" ? undefined : \"close\";\n\tthis.updatePopupPosition = this.getAttribute(\"updatePopupPosition\",\"no\") === \"yes\";\n\t// Compute the title of the state tiddler and read it\n\tthis.stateTiddlerTitle = this.state;\n\tthis.stateTitle = this.getAttribute(\"stateTitle\");\n\tthis.stateField = this.getAttribute(\"stateField\");\n\tthis.stateIndex = this.getAttribute(\"stateIndex\");\n\tthis.readState();\n\t// Construct the child widgets\n\tvar childNodes = this.isOpen ? this.parseTreeNode.children : [];\n\tthis.hasChildNodes = this.isOpen;\n\tthis.makeChildWidgets(childNodes);\n};\n\n/*\nRead the state tiddler\n*/\nRevealWidget.prototype.readState = function() {\n\t// Read the information from the state tiddler\n\tvar state,\n\t defaultState = this[\"default\"];\n\tif(this.stateTitle) {\n\t\tvar stateTitleTiddler = this.wiki.getTiddler(this.stateTitle);\n\t\tif(this.stateField) {\n\t\t\tstate = stateTitleTiddler ? stateTitleTiddler.getFieldString(this.stateField) || defaultState : defaultState;\n\t\t} else if(this.stateIndex) {\n\t\t\tstate = stateTitleTiddler ? this.wiki.extractTiddlerDataItem(this.stateTitle,this.stateIndex) || defaultState : defaultState;\n\t\t} else if(stateTitleTiddler) {\n\t\t\tstate = this.wiki.getTiddlerText(this.stateTitle) || defaultState;\n\t\t} else {\n\t\t\tstate = defaultState;\n\t\t}\n\t} else {\n\t\tstate = this.stateTiddlerTitle ? this.wiki.getTextReference(this.state,this[\"default\"],this.getVariable(\"currentTiddler\")) : this[\"default\"];\n\t}\n\tif(state === null) {\n\t\tstate = this[\"default\"];\n\t}\n\tswitch(this.type) {\n\t\tcase \"popup\":\n\t\t\tthis.readPopupState(state);\n\t\t\tbreak;\n\t\tcase \"match\":\n\t\t\tthis.isOpen = this.text === state;\n\t\t\tbreak;\n\t\tcase \"nomatch\":\n\t\t\tthis.isOpen = this.text !== state;\n\t\t\tbreak;\n\t\tcase \"lt\":\n\t\t\tthis.isOpen = !!(this.compareStateText(state) < 0);\n\t\t\tbreak;\n\t\tcase \"gt\":\n\t\t\tthis.isOpen = !!(this.compareStateText(state) > 0);\n\t\t\tbreak;\n\t\tcase \"lteq\":\n\t\t\tthis.isOpen = !(this.compareStateText(state) > 0);\n\t\t\tbreak;\n\t\tcase \"gteq\":\n\t\t\tthis.isOpen = !(this.compareStateText(state) < 0);\n\t\t\tbreak;\n\t}\n};\n\nRevealWidget.prototype.compareStateText = function(state) {\n\treturn state.localeCompare(this.text,undefined,{numeric: true,sensitivity: \"case\"});\n};\n\nRevealWidget.prototype.readPopupState = function(state) {\n\tvar popupLocationRegExp = /^\\((-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+)\\)$/,\n\t\tmatch = popupLocationRegExp.exec(state);\n\t// Check if the state matches the location regexp\n\tif(match) {\n\t\t// If so, we're open\n\t\tthis.isOpen = true;\n\t\t// Get the location\n\t\tthis.popup = {\n\t\t\tleft: parseFloat(match[1]),\n\t\t\ttop: parseFloat(match[2]),\n\t\t\twidth: parseFloat(match[3]),\n\t\t\theight: parseFloat(match[4])\n\t\t};\n\t} else {\n\t\t// If not, we're closed\n\t\tthis.isOpen = false;\n\t}\n};\n\nRevealWidget.prototype.assignDomNodeClasses = function() {\n\tvar classes = this.getAttribute(\"class\",\"\").split(\" \");\n\tclasses.push(\"tc-reveal\");\n\tthis.domNode.className = classes.join(\" \");\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nRevealWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.state || changedAttributes.type || changedAttributes.text || changedAttributes.position || changedAttributes.positionAllowNegative || changedAttributes[\"default\"] || changedAttributes.animate || changedAttributes.stateTitle || changedAttributes.stateField || changedAttributes.stateIndex) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t} else {\n\t\tvar currentlyOpen = this.isOpen;\n\t\tthis.readState();\n\t\tif(this.isOpen !== currentlyOpen) {\n\t\t\tif(this.retain === \"yes\") {\n\t\t\t\tthis.updateState();\n\t\t\t} else {\n\t\t\t\tthis.refreshSelf();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if(this.type === \"popup\" && this.updatePopupPosition && (changedTiddlers[this.state] || changedTiddlers[this.stateTitle])) {\n\t\t\tthis.positionPopup(this.domNode);\n\t\t}\n\t\tif(changedAttributes.style) {\n\t\t\tthis.domNode.style = this.getAttribute(\"style\",\"\");\n\t\t}\n\t\tif(changedAttributes[\"class\"]) {\n\t\t\tthis.assignDomNodeClasses();\n\t\t}\t\t\n\t\treturn this.refreshChildren(changedTiddlers);\n\t}\n};\n\n/*\nCalled by refresh() to dynamically show or hide the content\n*/\nRevealWidget.prototype.updateState = function() {\n\tvar self = this;\n\t// Read the current state\n\tthis.readState();\n\t// Construct the child nodes if needed\n\tvar domNode = this.domNodes[0];\n\tif(this.isOpen && !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 && this.type === \"popup\" && this.isOpen) {\n\t\tthis.positionPopup(domNode);\n\t\t$tw.utils.addClass(domNode,\"tc-popup\"); // Make sure that clicks don't dismiss popups within the revealed content\n\n\t}\n\tif(this.isOpen) {\n\t\tdomNode.removeAttribute(\"hidden\");\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(\"hidden\",\"true\");\n\t\t\t}\n\t\t}});\n\t}\n};\n\nexports.reveal = RevealWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/scrollable.js": { - "title": "$:/core/modules/widgets/scrollable.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ScrollableWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.scaleFactor = 1;\n\tthis.addEventListeners([\n\t\t{type: \"tm-scroll\", handler: \"handleScrollEvent\"}\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 <= this.outerDomNode.offsetWidth && this.outerDomNode.scrollHeight <= this.outerDomNode.offsetHeight && this.fallthrough === \"yes\") {\n\t\treturn true;\n\t}\n\tif(event.paramObject && event.paramObject.selector) {\n\t\tthis.scrollSelectorIntoView(null,event.paramObject.selector);\n\t} else {\n\t\tthis.scrollIntoView(event.target);\t\t\t\n\t}\n\treturn false; // Handled event\n};\n\n/*\nScroll an element into view\n*/\nScrollableWidget.prototype.scrollIntoView = function(element) {\n\tvar duration = $tw.utils.getAnimationDuration(),\n\tsrcWindow = element ? element.ownerDocument.defaultView : window;\n\tthis.cancelScroll();\n\tthis.startTime = Date.now();\n\tvar scrollPosition = {\n\t\tx: this.outerDomNode.scrollLeft,\n\t\ty: this.outerDomNode.scrollTop\n\t};\n\t// Get the client bounds of the element and adjust by the scroll position\n\tvar scrollableBounds = this.outerDomNode.getBoundingClientRect(),\n\t\tclientTargetBounds = element.getBoundingClientRect(),\n\t\tbounds = {\n\t\t\tleft: clientTargetBounds.left + scrollPosition.x - scrollableBounds.left,\n\t\t\ttop: clientTargetBounds.top + scrollPosition.y - scrollableBounds.top,\n\t\t\twidth: clientTargetBounds.width,\n\t\t\theight: clientTargetBounds.height\n\t\t};\n\t// We'll consider the horizontal and vertical scroll directions separately via this function\n\tvar getEndPos = function(targetPos,targetSize,currentPos,currentSize) {\n\t\t\t// If the target is already visible then stay where we are\n\t\t\tif(targetPos >= currentPos && (targetPos + targetSize) <= (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 <= 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 < currentSize && currentPos < (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 < 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 <= 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 >= 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 < 1) {\n\t\t\t\tself.idRequestFrame = self.requestAnimationFrame.call(srcWindow,drawFrame);\n\t\t\t}\n\t\t};\n\t\tdrawFrame();\n\t}\n};\n\nScrollableWidget.prototype.scrollSelectorIntoView = function(baseElement,selector,callback) {\n\tbaseElement = baseElement || document.body;\n\tvar element = baseElement.querySelector(selector);\n\tif(element) {\n\t\tthis.scrollIntoView(element,callback);\t\t\n\t}\n};\n\n/*\nRender this widget into the DOM\n*/\nScrollableWidget.prototype.render = function(parent,nextSibling) {\n\tvar self = this;\n\t// Remember parent\n\tthis.parentDomNode = parent;\n\t// Compute attributes and execute state\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Create elements\n\tthis.outerDomNode = this.document.createElement(\"div\");\n\t$tw.utils.setStyle(this.outerDomNode,[\n\t\t{overflowY: \"auto\"},\n\t\t{overflowX: \"auto\"},\n\t\t{webkitOverflowScrolling: \"touch\"}\n\t]);\n\tthis.innerDomNode = this.document.createElement(\"div\");\n\tthis.outerDomNode.appendChild(this.innerDomNode);\n\t// Assign classes\n\tthis.outerDomNode.className = this[\"class\"] || \"\";\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(\"fallthrough\",\"yes\");\n\tthis[\"class\"] = this.getAttribute(\"class\");\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[\"class\"]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn this.refreshChildren(changedTiddlers);\n};\n\nexports.scrollable = ScrollableWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/select.js": { - "title": "$:/core/modules/widgets/select.js", - "text": "/*\\\ntitle: $:/core/modules/widgets/select.js\ntype: application/javascript\nmodule-type: widget\n\nSelect widget:\n\n```\n<$select tiddler=\"MyTiddler\" field=\"text\">\n<$list filter=\"[tag[chapter]]\">\n<option value=<<currentTiddler>>>\n<$view field=\"description\"/>\n</option>\n</$list>\n</$select>\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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: \"change\", handlerObject: this, handlerMethod: \"handleChangeEvent\"}\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 === \"text\") {\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 === \"title\") {\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 ? \"\" : 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 < select.children.length; i++){\n\t\t\tselect.children[i].selected = values.indexOf(select.children[i].value) !== -1\n\t\t}\n\t} else {\n\t\tvar domNode = this.getSelectDomNode();\n\t\tif(domNode.value !== value) {\n\t\t\tdomNode.value = value;\n\t\t}\n\t}\n};\n\n/*\nGet the DOM node of the select element\n*/\nSelectWidget.prototype.getSelectDomNode = function() {\n\treturn this.children[0].domNodes[0];\n};\n\n// Return an array of the selected opion values\n// select is an HTML select element\nSelectWidget.prototype.getSelectValues = function() {\n\tvar select, result, options, opt;\n\tselect = this.getSelectDomNode();\n\tresult = [];\n\toptions = select && select.options;\n\tfor (var i=0; i<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(\"actions\");\n\tthis.selectTitle = this.getAttribute(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.selectField = this.getAttribute(\"field\",\"text\");\n\tthis.selectIndex = this.getAttribute(\"index\");\n\tthis.selectClass = this.getAttribute(\"class\");\n\tthis.selectDefault = this.getAttribute(\"default\");\n\tthis.selectMultiple = this.getAttribute(\"multiple\", false);\n\tthis.selectSize = this.getAttribute(\"size\");\n\tthis.selectTooltip = this.getAttribute(\"tooltip\");\n\t// Make the child widgets\n\tvar selectNode = {\n\t\ttype: \"element\",\n\t\ttag: \"select\",\n\t\tchildren: this.parseTreeNode.children\n\t};\n\tif(this.selectClass) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\"class\",this.selectClass);\n\t}\n\tif(this.selectMultiple) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\"multiple\",\"multiple\");\n\t}\n\tif(this.selectSize) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\"size\",this.selectSize);\n\t}\n\tif(this.selectTooltip) {\n\t\t$tw.utils.addAttributeToParseTreeNode(selectNode,\"title\",this.selectTooltip);\n\t}\n\tthis.makeChildWidgets([selectNode]);\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nSelectWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\t// If we're using a different tiddler/field/index then completely refresh ourselves\n\tif(changedAttributes.selectTitle || changedAttributes.selectField || changedAttributes.selectIndex || changedAttributes.selectTooltip) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t// If the target tiddler value has changed, just update setting and refresh the children\n\t} else {\n\t\tvar childrenRefreshed = this.refreshChildren(changedTiddlers);\n\t\tif(changedTiddlers[this.selectTitle] || childrenRefreshed) {\n\t\t\tthis.setSelectValue();\n\t\t} \n\t\treturn childrenRefreshed;\n\t}\n};\n\nexports.select = SelectWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/set.js": { - "title": "$:/core/modules/widgets/set.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"name\",\"currentTiddler\");\n\tthis.setFilter = this.getAttribute(\"filter\");\n\tthis.setSelect = this.getAttribute(\"select\");\n\tthis.setTiddler = this.getAttribute(\"tiddler\");\n\tthis.setSubTiddler = this.getAttribute(\"subtiddler\");\n\tthis.setField = this.getAttribute(\"field\");\n\tthis.setIndex = this.getAttribute(\"index\");\n\tthis.setValue = this.getAttribute(\"value\");\n\tthis.setEmptyValue = this.getAttribute(\"emptyValue\");\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] || \"\";\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 && this.setEmptyValue !== undefined) {\n\t\t\tvalue = this.setEmptyValue;\n\t\t}\n\t} else if(!value && this.setEmptyValue) {\n\t\tvalue = this.setEmptyValue;\n\t}\n\treturn value || \"\";\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 && changedTiddlers[this.setTiddler]) || changedAttributes.field || changedAttributes.index || changedAttributes.value || changedAttributes.emptyValue ||\n\t (this.setFilter && 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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/text.js": { - "title": "$:/core/modules/widgets/text.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"text\",this.parseTreeNode.text || \"\");\n\ttext = text.replace(/\\r/mg,\"\");\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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/tiddler.js": { - "title": "$:/core/modules/widgets/tiddler.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"currentTiddler\",this.tiddlerState.currentTiddler);\n\tthis.setVariable(\"missingTiddlerClass\",this.tiddlerState.missingTiddlerClass);\n\tthis.setVariable(\"shadowTiddlerClass\",this.tiddlerState.shadowTiddlerClass);\n\tthis.setVariable(\"systemTiddlerClass\",this.tiddlerState.systemTiddlerClass);\n\tthis.setVariable(\"tiddlerTagClasses\",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(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\t// Compute the state\n\tvar state = {\n\t\tcurrentTiddler: this.tiddlerTitle || \"\",\n\t\tmissingTiddlerClass: (this.wiki.tiddlerExists(this.tiddlerTitle) || this.wiki.isShadowTiddler(this.tiddlerTitle)) ? \"tc-tiddler-exists\" : \"tc-tiddler-missing\",\n\t\tshadowTiddlerClass: this.wiki.isShadowTiddler(this.tiddlerTitle) ? \"tc-tiddler-shadow\" : \"\",\n\t\tsystemTiddlerClass: this.wiki.isSystemTiddler(this.tiddlerTitle) ? \"tc-tiddler-system\" : \"\",\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(\"tc-tagged-\" + encodeURIComponent(tag));\n\t\t});\n\t\treturn tags.join(\" \");\n\t} else {\n\t\treturn \"\";\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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/transclude.js": { - "title": "$:/core/modules/widgets/transclude.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.transcludeSubTiddler = this.getAttribute(\"subtiddler\");\n\tthis.transcludeField = this.getAttribute(\"field\");\n\tthis.transcludeIndex = this.getAttribute(\"index\");\n\tthis.transcludeMode = this.getAttribute(\"mode\");\n\tthis.recursionMarker = this.getAttribute(\"recursionMarker\",\"yes\");\n\t// Parse the text reference\n\tvar parseAsInline = !this.parseTreeNode.isBlock;\n\tif(this.transcludeMode === \"inline\") {\n\t\tparseAsInline = true;\n\t} else if(this.transcludeMode === \"block\") {\n\t\tparseAsInline = false;\n\t}\n\tvar parser = this.wiki.parseTextReference(\n\t\t\t\t\t\tthis.transcludeTitle,\n\t\t\t\t\t\tthis.transcludeField,\n\t\t\t\t\t\tthis.transcludeIndex,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tparseAsInline: parseAsInline,\n\t\t\t\t\t\t\tsubTiddler: this.transcludeSubTiddler\n\t\t\t\t\t\t}),\n\t\tparseTreeNodes = parser ? parser.tree : this.parseTreeNode.children;\n\t// Set context variables for recursion detection\n\tvar recursionMarker = this.makeRecursionMarker();\n\tif(this.recursionMarker === \"yes\") {\n\t\tthis.setVariable(\"transclusion\",recursionMarker);\n\t}\n\t// Check for recursion\n\tif(parser) {\n\t\tif(this.parentWidget && this.parentWidget.hasVariable(\"transclusion\",recursionMarker)) {\n\t\t\tparseTreeNodes = [{type: \"element\", tag: \"span\", attributes: {\n\t\t\t\t\"class\": {type: \"string\", value: \"tc-error\"}\n\t\t\t}, children: [\n\t\t\t\t{type: \"text\", text: $tw.language.getString(\"Error/RecursiveTransclusion\")}\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(\"{\");\n\toutput.push(this.getVariable(\"currentTiddler\",{defaultValue: \"\"}));\n\toutput.push(\"|\");\n\toutput.push(this.transcludeTitle || \"\");\n\toutput.push(\"|\");\n\toutput.push(this.transcludeField || \"\");\n\toutput.push(\"|\");\n\toutput.push(this.transcludeIndex || \"\");\n\toutput.push(\"|\");\n\toutput.push(this.transcludeSubTiddler || \"\");\n\toutput.push(\"}\");\n\treturn output.join(\"\");\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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/vars.js": { - "title": "$:/core/modules/widgets/vars.js", - "text": "/*\\\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<$vars greeting=\"Hi\" me={{!!title}} sentence=<<helloworld>>>\n <<greeting>>! I am <<me>> and I say: <<sentence>>\n</$vars>\n```\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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) !== \"$\") {\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[\"vars\"] = VarsWidget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/view.js": { - "title": "$:/core/modules/widgets/view.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"tiddler\",this.getVariable(\"currentTiddler\"));\n\tthis.viewSubtiddler = this.getAttribute(\"subtiddler\");\n\tthis.viewField = this.getAttribute(\"field\",\"text\");\n\tthis.viewIndex = this.getAttribute(\"index\");\n\tthis.viewFormat = this.getAttribute(\"format\",\"text\");\n\tthis.viewTemplate = this.getAttribute(\"template\",\"\");\n\tthis.viewMode = this.getAttribute(\"mode\",\"block\");\n\tswitch(this.viewFormat) {\n\t\tcase \"htmlwikified\":\n\t\t\tthis.text = this.getValueAsHtmlWikified(this.viewMode);\n\t\t\tbreak;\n\t\tcase \"plainwikified\":\n\t\t\tthis.text = this.getValueAsPlainWikified(this.viewMode);\n\t\t\tbreak;\n\t\tcase \"htmlencodedplainwikified\":\n\t\t\tthis.text = this.getValueAsHtmlEncodedPlainWikified(this.viewMode);\n\t\t\tbreak;\n\t\tcase \"htmlencoded\":\n\t\t\tthis.text = this.getValueAsHtmlEncoded();\n\t\t\tbreak;\n\t\tcase \"urlencoded\":\n\t\t\tthis.text = this.getValueAsUrlEncoded();\n\t\t\tbreak;\n\t\tcase \"doubleurlencoded\":\n\t\t\tthis.text = this.getValueAsDoubleUrlEncoded();\n\t\t\tbreak;\n\t\tcase \"date\":\n\t\t\tthis.text = this.getValueAsDate(this.viewTemplate);\n\t\t\tbreak;\n\t\tcase \"relativedate\":\n\t\t\tthis.text = this.getValueAsRelativeDate();\n\t\t\tbreak;\n\t\tcase \"stripcomments\":\n\t\t\tthis.text = this.getValueAsStrippedComments();\n\t\t\tbreak;\n\t\tcase \"jsencoded\":\n\t\t\tthis.text = this.getValueAsJsEncoded();\n\t\t\tbreak;\n\t\tdefault: // \"text\"\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 ? \"\" : 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 === \"text\" && !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 === \"title\") {\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(\"text/html\",\"text/vnd.tiddlywiki\",this.getValueAsText(),{\n\t\tparseAsInline: mode !== \"block\",\n\t\tparentWidget: this\n\t});\n};\n\nViewWidget.prototype.getValueAsPlainWikified = function(mode) {\n\treturn this.wiki.renderText(\"text/plain\",\"text/vnd.tiddlywiki\",this.getValueAsText(),{\n\t\tparseAsInline: mode !== \"block\",\n\t\tparentWidget: this\n\t});\n};\n\nViewWidget.prototype.getValueAsHtmlEncodedPlainWikified = function(mode) {\n\treturn $tw.utils.htmlEncode(this.wiki.renderText(\"text/plain\",\"text/vnd.tiddlywiki\",this.getValueAsText(),{\n\t\tparseAsInline: mode !== \"block\",\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 || \"YYYY MM DD 0hh:0mm\";\n\tvar value = $tw.utils.parseDate(this.getValue());\n\tif(value && $tw.utils.isDate(value) && value.toString() !== \"Invalid Date\") {\n\t\treturn $tw.utils.formatDateString(value,format);\n\t} else {\n\t\treturn \"\";\n\t}\n};\n\nViewWidget.prototype.getValueAsRelativeDate = function(format) {\n\tvar value = $tw.utils.parseDate(this.getValue());\n\tif(value && $tw.utils.isDate(value) && value.toString() !== \"Invalid Date\") {\n\t\treturn $tw.utils.getRelativeDate((new Date()) - (new Date(value))).description;\n\t} else {\n\t\treturn \"\";\n\t}\n};\n\nViewWidget.prototype.getValueAsStrippedComments = function() {\n\tvar lines = this.getValueAsText().split(\"\\n\"),\n\t\tout = [];\n\tfor(var line=0; line<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(\"\\n\");\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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/widget.js": { - "title": "$:/core/modules/widgets/widget.js", - "text": "/*\\\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\"use strict\";\n\n/*\nCreate a widget object for a parse tree node\n\tparseTreeNode: reference to the parse tree node to be rendered\n\toptions: see below\nOptions include:\n\twiki: mandatory reference to wiki associated with this render tree\n\tparentWidget: optional reference to a parent renderer node for the context chain\n\tdocument: optional document object to use instead of global document\n*/\nvar Widget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInitialise widget properties. These steps are pulled out of the constructor so that we can reuse them in subclasses\n*/\nWidget.prototype.initialise = function(parseTreeNode,options) {\n\t// Bail if parseTreeNode is undefined, meaning that the widget constructor was called without any arguments so that it can be subclassed\n\tif(parseTreeNode === undefined) {\n\t\treturn;\n\t}\n\toptions = options || {};\n\t// Save widget info\n\tthis.parseTreeNode = parseTreeNode;\n\tthis.wiki = options.wiki;\n\tthis.parentWidget = options.parentWidget;\n\tthis.variablesConstructor = function() {};\n\tthis.variablesConstructor.prototype = this.parentWidget ? this.parentWidget.variables : {};\n\tthis.variables = new this.variablesConstructor();\n\tthis.document = options.document;\n\tthis.attributes = {};\n\tthis.children = [];\n\tthis.domNodes = [];\n\tthis.eventListeners = {};\n\t// Hashmap of the widget classes\n\tif(!this.widgetClasses) {\n\t\t// Get widget classes\n\t\tWidget.prototype.widgetClasses = $tw.modules.applyMethods(\"widget\");\n\t\t// Process any subclasses\n\t\t$tw.modules.forEachModuleOfType(\"widget-subclass\",function(title,module) {\n\t\t\tif(module.baseClass) {\n\t\t\t\tvar baseClass = Widget.prototype.widgetClasses[module.baseClass];\n\t\t\t\tif(!baseClass) {\n\t\t\t\t\tthrow \"Module '\" + title + \"' is attemping to extend a non-existent base class '\" + module.baseClass + \"'\";\n\t\t\t\t}\n\t\t\t\tvar subClass = module.constructor;\n\t\t\t\tsubClass.prototype = new baseClass();\n\t\t\t\t$tw.utils.extend(subClass.prototype,module.prototype);\n\t\t\t\tWidget.prototype.widgetClasses[module.name || module.baseClass] = subClass;\n\t\t\t}\n\t\t});\n\t}\n};\n\n/*\nRender this widget into the DOM\n*/\nWidget.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.execute();\n\tthis.renderChildren(parent,nextSibling);\n};\n\n/*\nCompute the internal state of the widget\n*/\nWidget.prototype.execute = function() {\n\tthis.makeChildWidgets();\n};\n\n/*\nSet the value of a context variable\nname: name of the variable\nvalue: value of the variable\nparams: array of {name:, default:} for each parameter\nisMacroDefinition: true if the variable is set via a \\define macro pragma (and hence should have variable substitution performed)\n*/\nWidget.prototype.setVariable = function(name,value,params,isMacroDefinition) {\n\tthis.variables[name] = {value: value, params: params, isMacroDefinition: !!isMacroDefinition};\n};\n\n/*\nGet the prevailing value of a context variable\nname: name of variable\noptions: see below\nOptions include\nparams: array of {name:, value:} for each parameter\ndefaultValue: default value if the variable is not defined\n\nReturns an object with the following fields:\n\nparams: array of {name:,value:} of parameters passed to wikitext variables\ntext: text of variable, with parameters properly substituted\n*/\nWidget.prototype.getVariableInfo = function(name,options) {\n\toptions = options || {};\n\tvar actualParams = options.params || [],\n\t\tparentWidget = this.parentWidget;\n\t// Check for the variable defined in the parent widget (or an ancestor in the prototype chain)\n\tif(parentWidget && name in parentWidget.variables) {\n\t\tvar variable = parentWidget.variables[name],\n\t\t\toriginalValue = variable.value,\n\t\t\tvalue = originalValue,\n\t\t\tparams = this.resolveVariableParameters(variable.params,actualParams);\n\t\t// Substitute any parameters specified in the definition\n\t\t$tw.utils.each(params,function(param) {\n\t\t\tvalue = $tw.utils.replaceString(value,new RegExp(\"\\\\$\" + $tw.utils.escapeRegExp(param.name) + \"\\\\$\",\"mg\"),param.value);\n\t\t});\n\t\t// Only substitute variable references if this variable was defined with the \\define pragma\n\t\tif(variable.isMacroDefinition) {\n\t\t\tvalue = this.substituteVariableReferences(value);\t\t\t\n\t\t}\n\t\treturn {\n\t\t\ttext: value,\n\t\t\tparams: params,\n\t\t\tsrcVariable: variable,\n\t\t\tisCacheable: originalValue === value\n\t\t};\n\t}\n\t// If the variable doesn't exist in the parent widget then look for a macro module\n\treturn {\n\t\ttext: this.evaluateMacroModule(name,actualParams,options.defaultValue)\n\t};\n};\n\n/*\nSimplified version of getVariableInfo() that just returns the text\n*/\nWidget.prototype.getVariable = function(name,options) {\n\treturn this.getVariableInfo(name,options).text;\n};\n\nWidget.prototype.resolveVariableParameters = function(formalParams,actualParams) {\n\tformalParams = formalParams || [];\n\tactualParams = actualParams || [];\n\tvar nextAnonParameter = 0, // Next candidate anonymous parameter in macro call\n\t\tparamInfo, paramValue,\n\t\tresults = [];\n\t// Step through each of the parameters in the macro definition\n\tfor(var p=0; p<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<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 < actualParams.length && actualParams[nextAnonParameter].name) {\n\t\t\tnextAnonParameter++;\n\t\t}\n\t\tif(paramValue === undefined && nextAnonParameter < 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[\"default\"] || \"\";\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 || \"\").replace(/\\$\\(([^\\)\\$]+)\\)\\$/g,function(match,p1,offset,string) {\n\t\treturn self.getVariable(p1,{defaultValue: \"\"});\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 > 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<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<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 < actualParams.length && actualParams[nextAnonParameter].name) {\n\t\t\t\t\tnextAnonParameter++;\n\t\t\t\t}\n\t\t\t\tif(paramValue === undefined && nextAnonParameter < 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[\"default\"] || \"\";\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<actualParams.length; ++i) {\n\t\t\targs.push(actualParams[i].value);\n\t\t}\n\t\treturn (macro.run.apply(this,args) || \"\").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) && 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 || \"transclusion\";\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 && 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(\"\"));\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 === \"filtered\") {\n\t\t\tvalue = self.wiki.filterTiddlers(attribute.filter,self)[0] || \"\";\n\t\t} else if(attribute.type === \"indirect\") {\n\t\t\tvalue = self.wiki.getTextReference(attribute.textReference,\"\",self.getVariable(\"currentTiddler\"));\n\t\t} else if(attribute.type === \"macro\") {\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 \"on\"\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 && a.substr(0,2) === \"on\") {\n\t\t\tv = undefined;\n\t\t}\n\t\tif(v !== undefined) {\n\t\t\tvar b = a.split(\":\");\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 && b[0] == \"xlink\"){\n\t\t\t\t\tdomNode.setAttributeNS(\"http://www.w3.org/1999/xlink\",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 && 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: \"text\", text: \"Undefined widget '\" + parseTreeNode.type + \"'\"};\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 && index < 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 && index > 0) {\n\t\t\treturn this.parentWidget.children[index-1];\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nRender the children of this widget into the DOM\n*/\nWidget.prototype.renderChildren = function(parent,nextSibling) {\n\tvar children = this.children;\n\tfor(var i = 0; i < children.length; i++) {\n\t\tchildren[i].render(parent,nextSibling);\n\t};\n};\n\n/*\nAdd a list of event listeners from an array [{type:,handler:},...]\n*/\nWidget.prototype.addEventListeners = function(listeners) {\n\tvar self = this;\n\t$tw.utils.each(listeners,function(listenerInfo) {\n\t\tself.addEventListener(listenerInfo.type,listenerInfo.handler);\n\t});\n};\n\n/*\nAdd an event listener\n*/\nWidget.prototype.addEventListener = function(type,handler) {\n\tvar self = this;\n\tif(typeof handler === \"string\") { // The handler is a method name on this widget\n\t\tthis.eventListeners[type] = function(event) {\n\t\t\treturn self[handler].call(self,event);\n\t\t};\n\t} else { // The handler is a function\n\t\tthis.eventListeners[type] = function(event) {\n\t\t\treturn handler.call(self,event);\n\t\t};\n\t}\n};\n\n/*\nDispatch an event to a widget. If the widget doesn't handle the event then it is also dispatched to the parent widget\n*/\nWidget.prototype.dispatchEvent = function(event) {\n\tevent.widget = event.widget || this;\n\t// Dispatch the event if this widget handles it\n\tvar listener = this.eventListeners[event.type];\n\tif(listener) {\n\t\t// Don't propagate the event if the listener returned false\n\t\tif(!listener(event)) {\n\t\t\treturn false;\n\t\t}\n\t}\n\t// Dispatch the event to the parent widget\n\tif(this.parentWidget) {\n\t\treturn this.parentWidget.dispatchEvent(event);\n\t}\n\treturn true;\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nWidget.prototype.refresh = function(changedTiddlers) {\n\treturn this.refreshChildren(changedTiddlers);\n};\n\n/*\nRebuild a previously rendered widget\n*/\nWidget.prototype.refreshSelf = function() {\n\tvar nextSibling = this.findNextSiblingDomNode();\n\tthis.removeChildDomNodes();\n\tthis.render(this.parentDomNode,nextSibling);\n};\n\n/*\nRefresh all the children of a widget\n*/\nWidget.prototype.refreshChildren = function(changedTiddlers) {\n\tvar children = this.children,\n\t\trefreshed = false;\n\tfor (var i = 0; i < children.length; i++) {\n\t\trefreshed = children[i].refresh(changedTiddlers) || refreshed;\n\t}\n\treturn refreshed;\n};\n\n/*\nFind the next sibling in the DOM to this widget. This is done by scanning the widget tree through all next siblings and their descendents that share the same parent DOM node\n*/\nWidget.prototype.findNextSiblingDomNode = function(startIndex) {\n\t// Refer to this widget by its index within its parents children\n\tvar parent = this.parentWidget,\n\t\tindex = startIndex !== undefined ? startIndex : parent.children.indexOf(this);\nif(index === -1) {\n\tthrow \"node not found in parents children\";\n}\n\t// Look for a DOM node in the later siblings\n\twhile(++index < 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 && 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 > 0) {\n\t\treturn this.domNodes[0];\n\t}\n\t// Otherwise, recursively call our children\n\tfor(var t=0; t<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 > 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<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() && 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 || \"\";\n\tvar parser = this.wiki.parseText(\"text/vnd.tiddlywiki\",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(\"div\");\n\twidgetNode.render(container,null);\n\treturn widgetNode.invokeActions(this,event);\n};\n\n/*\nExecute action tiddlers by tag\n*/\nWidget.prototype.invokeActionsByTag = function(tag,event,variables) {\n\tvar self = this;\n\t$tw.utils.each(self.wiki.filterTiddlers(\"[all[shadows+tiddlers]tag[\" + tag + \"]!has[draft.of]]\"),function(title) {\n\t\tself.invokeActionString(self.wiki.getTiddlerText(title),self,event,variables);\n\t});\n};\n\nWidget.prototype.allowActionPropagation = function() {\n\treturn true;\n};\n\nexports.widget = Widget;\n\n})();\n", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/widgets/wikify.js": { - "title": "$:/core/modules/widgets/wikify.js", - "text": "/*\\\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\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").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(\"name\");\n\tthis.wikifyText = this.getAttribute(\"text\");\n\tthis.wikifyType = this.getAttribute(\"type\");\n\tthis.wikifyMode = this.getAttribute(\"mode\",\"block\");\n\tthis.wikifyOutput = this.getAttribute(\"output\",\"text\");\n\t// Create the parse tree\n\tthis.wikifyParser = this.wiki.parseText(this.wikifyType,this.wikifyText,{\n\t\t\tparseAsInline: this.wikifyMode === \"inline\"\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(\"div\");\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 \"text\":\n\t\t\tresult = this.wikifyContainer.textContent;\n\t\t\tbreak;\n\t\tcase \"formattedtext\":\n\t\t\tresult = this.wikifyContainer.formattedTextContent;\n\t\t\tbreak;\n\t\tcase \"html\":\n\t\t\tresult = this.wikifyContainer.innerHTML;\n\t\t\tbreak;\n\t\tcase \"parsetree\":\n\t\t\tresult = JSON.stringify(this.wikifyParser.tree,0,$tw.config.preferences.jsonSpaces);\n\t\t\tbreak;\n\t\tcase \"widgettree\":\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 \"element\":\n\t\t\t\t\tresultNode.tag = widgetNode.parseTreeNode.tag;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"text\":\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 > 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 > 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", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/core/modules/wiki-bulkops.js": { - "title": "$:/core/modules/wiki-bulkops.js", - "text": "/*\\\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\"use strict\";\n\n/*\nRename a tiddler, and relink any tags or lists that reference it.\n*/\nfunction renameTiddler(fromTitle,toTitle,options) {\n\tfromTitle = (fromTitle || \"\").trim();\n\ttoTitle = (toTitle || \"\").trim();\n\toptions = options || {};\n\tif(fromTitle && toTitle && 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(\"th-renaming-tiddler\",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 || \"\").trim();\n\ttoTitle = (toTitle || \"\").trim();\n\toptions = options || {};\n\tif(fromTitle && toTitle && fromTitle !== toTitle) {\n\t\tthis.each(function(tiddler,title) {\n\t\t\tvar type = tiddler.fields.type || \"\";\n\t\t\t// Don't touch plugins or JavaScript modules\n\t\t\tif(!tiddler.fields[\"plugin-type\"] && type !== \"application/javascript\") {\n\t\t\t\tvar tags = tiddler.fields.tags ? tiddler.fields.tags.slice(0) : undefined,\n\t\t\t\t\tlist = tiddler.fields.list ? tiddler.fields.list.slice(0) : undefined,\n\t\t\t\t\tisModified = false;\n\t\t\t\tif(!options.dontRenameInTags) {\n\t\t\t\t\t// Rename tags\n\t\t\t\t\t$tw.utils.each(tags,function (title,index) {\n\t\t\t\t\t\tif(title === fromTitle) {\nconsole.log(\"Renaming tag '\" + tags[index] + \"' to '\" + toTitle + \"' of tiddler '\" + tiddler.fields.title + \"'\");\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(\"Renaming list item '\" + list[index] + \"' to '\" + toTitle + \"' of tiddler '\" + tiddler.fields.title + \"'\");\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(\"th-relinking-tiddler\",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", - "type": "application/javascript", - "module-type": "wikimethod" - }, - "$:/core/modules/wiki.js": { - "title": "$:/core/modules/wiki.js", - "text": "/*\\\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\"use strict\";\n\nvar widget = require(\"$:/core/modules/widgets/widget.js\");\n\nvar USER_NAME_TITLE = \"$:/status/UserName\",\n\tTIMESTAMP_DISABLE_TITLE = \"$:/config/TimestampDisable\";\n\n/*\nAdd available indexers to this wiki\n*/\nexports.addIndexersToWiki = function() {\n\tvar self = this;\n\t$tw.utils.each($tw.modules.applyMethods(\"indexer\"),function(Indexer,name) {\n\t\tself.addIndexer(new Indexer(self),name);\n\t});\n};\n\n/*\nGet the value of a text reference. Text references can have any of these forms:\n\t<tiddlertitle>\n\t<tiddlertitle>!!<fieldname>\n\t!!<fieldname> - specifies a field of the current tiddlers\n\t<tiddlertitle>##<index>\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 === \"title\") { // Special case so we can return the title of a non-existent tiddler\n\t\t\treturn title;\n\t\t} else if(tiddler && $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 || \"text\"] = 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 && !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 && $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<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 ? \"deleted\" : \"modified\"] = 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) > 0) {\n\t\t\t\tself.dispatchEvent(\"change\",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 || \" \") + \n\t\t\t(++c);\n\t}\n\treturn title;\n};\n\nexports.isSystemTiddler = function(title) {\n\treturn title && title.indexOf(\"$:/\") === 0;\n};\n\nexports.isTemporaryTiddler = function(title) {\n\treturn title && title.indexOf(\"$:/temp/\") === 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 || \"text/vnd.tiddlywiki\"];\n\t\treturn !!contentTypeInfo && contentTypeInfo.flags.indexOf(\"image\") !== -1;\n\t} else {\n\t\treturn null;\n\t}\n};\n\nexports.isBinaryTiddler = function(title) {\n\tvar tiddler = this.getTiddler(title);\n\tif(tiddler) {\t\t\n\t\tvar contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || \"text/vnd.tiddlywiki\"];\n\t\treturn !!contentTypeInfo && contentTypeInfo.encoding === \"base64\";\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 && tiddler.hasField(\"plugin-type\") && tiddler.hasField(\"version\") && existingTiddler && existingTiddler.hasField(\"plugin-type\") && existingTiddler.hasField(\"version\")) {\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,\"\").toLowerCase() !== \"yes\") {\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,\"\").toLowerCase() !== \"yes\") {\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 || \"title\",\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() || \"\",\n\t\t\tbb = b.fields[sortField].toLowerCase() || \"\";\n\t\tif(aa < bb) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tif(aa > 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<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) && !isNaN(y) ? (isDescending ? -1 : 1) :\n\t\t\t\t\t!isNaN(x) && 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 !== \"title\") {\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] || \"\";\n\t\t\t} else {\n\t\t\t\ta = \"\";\n\t\t\t}\n\t\t\tif(tiddlerB) {\n\t\t\t\tb = tiddlerB.fields[sortField] || \"\";\n\t\t\t} else {\n\t\t\t\tb = \"\";\n\t\t\t}\n\t\t}\n\t\tx = Number(a);\n\t\ty = Number(b);\n\t\tif(isNumeric && (!isNaN(x) || !isNaN(y))) {\n\t\t\treturn compareNumbers(x,y);\n\t\t} else if($tw.utils.isDate(a) && $tw.utils.isDate(b)) {\n\t\t\treturn isDescending ? b - a : a - b;\n\t\t} else if(isAlphaNumeric) {\n\t\t\treturn isDescending ? b.localeCompare(a,undefined,{numeric: true,sensitivity: \"base\"}) : a.localeCompare(b,undefined,{numeric: true,sensitivity: \"base\"});\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 >= 2 ? arguments[arg++] : {},\n\t\tcallback = arguments[arg++],\n\t\ttitles = this.getTiddlers(options),\n\t\tt, tiddler;\n\tfor(t=0; t<titles.length; t++) {\n\t\ttiddler = this.getTiddler(titles[t]);\n\t\tif(tiddler) {\n\t\t\tcallback.call(this,tiddler.fields.title,tiddler);\n\t\t}\n\t}\n};\n\n/*\nReturn an array of tiddler titles that are directly linked within the given parse tree\n */\nexports.extractLinks = function(parseTreeRoot) {\n\t// Count up the links\n\tvar links = [],\n\t\tcheckParseTree = function(parseTree) {\n\t\t\tfor(var t=0; t<parseTree.length; t++) {\n\t\t\t\tvar parseTreeNode = parseTree[t];\n\t\t\t\tif(parseTreeNode.type === \"link\" && parseTreeNode.attributes.to && parseTreeNode.attributes.to.type === \"string\") {\n\t\t\t\t\tvar value = parseTreeNode.attributes.to.value;\n\t\t\t\t\tif(links.indexOf(value) === -1) {\n\t\t\t\t\t\tlinks.push(value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(parseTreeNode.children) {\n\t\t\t\t\tcheckParseTree(parseTreeNode.children);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\tcheckParseTree(parseTreeRoot);\n\treturn links;\n};\n\n/*\nReturn an array of tiddler titles that are directly linked from the specified tiddler\n*/\nexports.getTiddlerLinks = function(title) {\n\tvar self = this;\n\t// We'll cache the links so they only get computed if the tiddler changes\n\treturn this.getCacheForTiddler(title,\"links\",function() {\n\t\t// Parse the tiddler\n\t\tvar parser = self.parseTiddler(title);\n\t\tif(parser) {\n\t\t\treturn self.extractLinks(parser.tree);\n\t\t}\n\t\treturn [];\n\t});\n};\n\n/*\nReturn an array of tiddler titles that link to the specified tiddler\n*/\nexports.getTiddlerBacklinks = function(targetTitle) {\n\tvar self = this,\n\t\tbacklinksIndexer = this.getIndexer(\"BacklinksIndexer\"),\n\t\tbacklinks = backlinksIndexer && backlinksIndexer.lookup(targetTitle);\n\n\tif(!backlinks) {\n\t\tbacklinks = [];\n\t\tthis.forEachTiddler(function(title,tiddler) {\n\t\t\tvar links = self.getTiddlerLinks(title);\n\t\t\tif(links.indexOf(targetTitle) !== -1) {\n\t\t\t\tbacklinks.push(title);\n\t\t\t}\n\t\t});\n\t}\n\treturn backlinks;\n};\n\n/*\nReturn a hashmap of tiddler titles that are referenced but not defined. Each value is the number of times the missing tiddler is referenced\n*/\nexports.getMissingTitles = function() {\n\tvar self = this,\n\t\tmissing = [];\n// We should cache the missing tiddler list, even if we recreate it every time any tiddler is modified\n\tthis.forEachTiddler(function(title,tiddler) {\n\t\tvar links = self.getTiddlerLinks(title);\n\t\t$tw.utils.each(links,function(link) {\n\t\t\tif((!self.tiddlerExists(link) && !self.isShadowTiddler(link)) && missing.indexOf(link) === -1) {\n\t\t\t\tmissing.push(link);\n\t\t\t}\n\t\t});\n\t});\n\treturn missing;\n};\n\nexports.getOrphanTitles = function() {\n\tvar self = this,\n\t\torphans = this.getTiddlers();\n\tthis.forEachTiddler(function(title,tiddler) {\n\t\tvar links = self.getTiddlerLinks(title);\n\t\t$tw.utils.each(links,function(link) {\n\t\t\tvar p = orphans.indexOf(link);\n\t\t\tif(p !== -1) {\n\t\t\t\torphans.splice(p,1);\n\t\t\t}\n\t\t});\n\t});\n\treturn orphans; // Todo\n};\n\n/*\nRetrieves a list of the tiddler titles that are tagged with a given tag\n*/\nexports.getTiddlersWithTag = function(tag) {\n\t// Try to use the indexer\n\tvar self = this,\n\t\ttagIndexer = this.getIndexer(\"TagIndexer\"),\n\t\tresults = tagIndexer && tagIndexer.subIndexers[3].lookup(tag);\n\tif(!results) {\n\t\t// If not available, perform a manual scan\n\t\tresults = this.getGlobalCache(\"taglist-\" + tag,function() {\n\t\t\tvar tagmap = self.getTagMap();\n\t\t\treturn self.sortByList(tagmap[tag],tag);\n\t\t});\n\t}\n\treturn results;\n};\n\n/*\nGet a hashmap by tag of arrays of tiddler titles\n*/\nexports.getTagMap = function() {\n\tvar self = this;\n\treturn this.getGlobalCache(\"tagmap\",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<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 || \"list\";\n\tvar titles = [];\n\tthis.each(function(tiddler,title) {\n\t\tvar list = $tw.utils.parseStringArray(tiddler.fields[fieldName]);\n\t\tif(list && list.indexOf(targetTitle) !== -1) {\n\t\t\ttitles.push(title);\n\t\t}\n\t});\n\treturn titles;\n};\n\n/*\nSorts an array of tiddler titles according to an ordered list\n*/\nexports.sortByList = function(array,listTitle) {\n\tvar self = this,\n\t\treplacedTitles = Object.create(null);\n\t// Given a title, this function will place it in the correct location\n\t// within titles.\n\tfunction moveItemInList(title) {\n\t\tif(!$tw.utils.hop(replacedTitles, title)) {\n\t\t\treplacedTitles[title] = true;\n\t\t\tvar newPos = -1,\n\t\t\t\ttiddler = self.getTiddler(title);\n\t\t\tif(tiddler) {\n\t\t\t\tvar beforeTitle = tiddler.fields[\"list-before\"],\n\t\t\t\t\tafterTitle = tiddler.fields[\"list-after\"];\n\t\t\t\tif(beforeTitle === \"\") {\n\t\t\t\t\tnewPos = 0;\n\t\t\t\t} else if(afterTitle === \"\") {\n\t\t\t\t\tnewPos = titles.length;\n\t\t\t\t} else if(beforeTitle) {\n\t\t\t\t\t// if this title is placed relative\n\t\t\t\t\t// to another title, make sure that\n\t\t\t\t\t// title is placed before we place\n\t\t\t\t\t// this one.\n\t\t\t\t\tmoveItemInList(beforeTitle);\n\t\t\t\t\tnewPos = titles.indexOf(beforeTitle);\n\t\t\t\t} else if(afterTitle) {\n\t\t\t\t\t// Same deal\n\t\t\t\t\tmoveItemInList(afterTitle);\n\t\t\t\t\tnewPos = titles.indexOf(afterTitle);\n\t\t\t\t\tif(newPos >= 0) {\n\t\t\t\t\t\t++newPos;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If a new position is specified, let's move it\n\t\t\t\tif (newPos !== -1) {\n\t\t\t\t\t// get its current Pos, and make sure\n\t\t\t\t\t// sure that it's _actually_ in the list\n\t\t\t\t\t// and that it would _actually_ move\n\t\t\t\t\t// (#4275) We don't bother calling\n\t\t\t\t\t// indexOf unless we have a new\n\t\t\t\t\t// position to work with\n\t\t\t\t\tvar currPos = titles.indexOf(title);\n\t\t\t\t\tif(currPos >= 0 && newPos !== currPos) {\n\t\t\t\t\t\t// move it!\n\t\t\t\t\t\ttitles.splice(currPos,1);\n\t\t\t\t\t\tif(newPos >= currPos) {\n\t\t\t\t\t\t\tnewPos--;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttitles.splice(newPos,0,title);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tvar list = this.getTiddlerList(listTitle);\n\tif(!array || array.length === 0) {\n\t\treturn [];\n\t} else {\n\t\tvar titles = [], t, title;\n\t\t// First place any entries that are present in the list\n\t\tfor(t=0; t<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<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<sortedTitles.length; t++) {\n\t\t\ttitle = sortedTitles[t];\n\t\t\tmoveItemInList(title);\n\t\t}\n\t\treturn titles;\n\t}\n};\n\nexports.getSubTiddler = function(title,subTiddlerTitle) {\n\tvar bundleInfo = this.getPluginInfo(title) || this.getTiddlerDataCached(title);\n\tif(bundleInfo && bundleInfo.tiddlers) {\n\t\tvar subTiddler = bundleInfo.tiddlers[subTiddlerTitle];\n\t\tif(subTiddler) {\n\t\t\treturn new $tw.Tiddler(subTiddler);\n\t\t}\n\t}\n\treturn null;\n};\n\n/*\nRetrieve a tiddler as a JSON string of the fields\n*/\nexports.getTiddlerAsJson = function(title) {\n\tvar tiddler = this.getTiddler(title);\n\tif(tiddler) {\n\t\tvar fields = Object.create(null);\n\t\t$tw.utils.each(tiddler.fields,function(value,name) {\n\t\t\tfields[name] = tiddler.getFieldString(name);\n\t\t});\n\t\treturn JSON.stringify(fields);\n\t} else {\n\t\treturn JSON.stringify({title: title});\n\t}\n};\n\nexports.getTiddlersAsJson = function(filter,spaces) {\n\tvar tiddlers = this.filterTiddlers(filter),\n\t\tspaces = (spaces === undefined) ? $tw.config.preferences.jsonSpaces : spaces,\n\t\tdata = [];\n\tfor(var t=0;t<tiddlers.length; t++) {\n\t\tvar tiddler = this.getTiddler(tiddlers[t]);\n\t\tif(tiddler) {\n\t\t\tvar fields = new Object();\n\t\t\tfor(var field in tiddler.fields) {\n\t\t\t\tfields[field] = tiddler.getFieldString(field);\n\t\t\t}\n\t\t\tdata.push(fields);\n\t\t}\n\t}\n\treturn JSON.stringify(data,null,spaces);\n};\n\n/*\nGet the content of a tiddler as a JavaScript object. How this is done depends on the type of the tiddler:\n\napplication/json: the tiddler JSON is parsed into an object\napplication/x-tiddler-dictionary: the tiddler is parsed as sequence of name:value pairs\n\nOther types currently just return null.\n\ntitleOrTiddler: string tiddler title or a tiddler object\ndefaultData: default data to be returned if the tiddler is missing or doesn't contain data\n\nNote that the same value is returned for repeated calls for the same tiddler data. The value is frozen to prevent modification; otherwise modifications would be visible to all callers\n*/\nexports.getTiddlerDataCached = function(titleOrTiddler,defaultData) {\n\tvar self = this,\n\t\ttiddler = titleOrTiddler;\n\tif(!(tiddler instanceof $tw.Tiddler)) {\n\t\ttiddler = this.getTiddler(tiddler);\t\n\t}\n\tif(tiddler) {\n\t\treturn this.getCacheForTiddler(tiddler.fields.title,\"data\",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 && tiddler.fields.text) {\n\t\tswitch(tiddler.fields.type) {\n\t\t\tcase \"application/json\":\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 \"application/x-tiddler-dictionary\":\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 && $tw.utils.hop(data,index)) {\n\t\ttext = data[index];\n\t}\n\tif(typeof text === \"string\" || typeof text === \"number\") {\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 \"application/json\" 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 && existingTiddler.fields.type === \"application/x-tiddler-dictionary\") {\n\t\tnewFields.text = $tw.utils.makeTiddlerDictionary(data);\n\t} else {\n\t\tnewFields.type = \"application/json\";\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,\"\"));\n\t}\n\tfield = field || \"list\";\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 && 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(\"parser\",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[\"application/octet-stream\"]) {\n\t\tObject.keys($tw.config.contentTypeInfo).forEach(function(type) {\n\t\t\tif(!$tw.utils.hop($tw.Wiki.parsers,type) && $tw.config.contentTypeInfo[type].encoding === \"base64\") {\n\t\t\t\t$tw.Wiki.parsers[type] = $tw.Wiki.parsers[\"application/octet-stream\"];\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 || \"\";\n\toptions = options || {};\n\t// Select a parser\n\tvar Parser = $tw.Wiki.parsers[type];\n\tif(!Parser && $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 || \"text/vnd.tiddlywiki\"];\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 ? \"inlineParseTree\" : \"blockParseTree\",\n\t\ttiddler = this.getTiddler(title),\n\t\tself = this;\n\treturn tiddler ? this.getCacheForTiddler(title,cacheType,function() {\n\t\t\tif(tiddler.hasField(\"_canonical_uri\")) {\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 === \"text\" || (!field && !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 === \"text\" || (!field && !index)) {\n\t\tif(tiddler && 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 === \"title\") {\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(\"text/vnd.tiddlywiki\",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(\"text/vnd.tiddlywiki\",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: \"widget\",\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: \"set\",\n\t\t\tattributes: {\n\t\t\t\tname: {type: \"string\", value: name},\n\t\t\t\tvalue: {type: \"string\", 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 \"text\")\noptions.mode: transclusion mode \"inline\" or \"block\"\noptions.recursionMarker : optional flag to set a recursion marker, defaults to \"yes\"\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 \"[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\" to options.importVariables\n*/\nexports.makeTranscludeWidget = function(title,options) {\n\toptions = options || {};\n\tvar parseTreeDiv = {tree: [{\n\t\t\ttype: \"element\",\n\t\t\ttag: \"div\",\n\t\t\tchildren: []}]},\n\t\tparseTreeImportVariables = {\n\t\t\ttype: \"importvariables\",\n\t\t\tattributes: {\n\t\t\t\tfilter: {\n\t\t\t\t\tname: \"filter\",\n\t\t\t\t\ttype: \"string\"\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: \"transclude\",\n\t\t\tattributes: {\n\t\t\t\trecursionMarker: {\n\t\t\t\t\tname: \"recursionMarker\",\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tvalue: options.recursionMarker || \"yes\"\n\t\t\t\t\t},\n\t\t\t\ttiddler: {\n\t\t\t\t\tname: \"tiddler\",\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tvalue: title\n\t\t\t\t}\n\t\t\t},\n\t\t\tisBlock: !options.parseAsInline};\n\tif(options.importVariables || options.importPageMacros) {\n\t\tif(options.importVariables) {\n\t\t\tparseTreeImportVariables.attributes.filter.value = options.importVariables;\n\t\t} else if(options.importPageMacros) {\n\t\t\tparseTreeImportVariables.attributes.filter.value = \"[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\";\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: \"string\", value: options.field};\n\t}\n\tif(options.mode) {\n\t\tparseTreeTransclude.attributes.mode = {type: \"string\", value: options.mode};\n\t}\n\tif(options.children) {\n\t\tparseTreeTransclude.children = options.children;\n\t}\n\treturn this.makeWidget(parseTreeDiv,options);\n};\n\n/*\nParse text in a specified format and render it into another format\n\toutputType: content type for the output\n\ttextType: content type of the input text\n\ttext: input text\n\toptions: see below\nOptions include:\nvariables: hashmap of variables to set\nparentWidget: optional parent widget for the root node\n*/\nexports.renderText = function(outputType,textType,text,options) {\n\toptions = options || {};\n\tvar parser = this.parseText(textType,text,options),\n\t\twidgetNode = this.makeWidget(parser,options);\n\tvar container = $tw.fakeDocument.createElement(\"div\");\n\twidgetNode.render(container,null);\n\treturn outputType === \"text/html\" ? 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(\"div\");\n\twidgetNode.render(container,null);\n\treturn outputType === \"text/html\" ? container.innerHTML : (outputType === \"text/plain-formatted\" ? container.formattedTextContent : container.textContent);\n};\n\n/*\nReturn an array of tiddler titles that match a search string\n\ttext: The text string to search for\n\toptions: see below\nOptions available:\n\tsource: an iterator function for the source tiddlers, called source(iterator), where iterator is called as iterator(tiddler,title)\n\texclude: An array of tiddler titles to exclude from the search\n\tinvert: If true returns tiddlers that do not contain the specified string\n\tcaseSensitive: If true forces a case sensitive search\n\tfield: If specified, restricts the search to the specified field, or an array of field names\n\tanchored: If true, forces all but regexp searches to be anchored to the start of text\n\texcludeField: If true, the field options are inverted to specify the fields that are not to be searched\n\tThe search mode is determined by the first of these boolean flags to be true\n\t\tliteral: searches for literal string\n\t\twhitespace: same as literal except runs of whitespace are treated as a single space\n\t\tregexp: treats the search term as a regular expression\n\t\twords: (default) treats search string as a list of tokens, and matches if all tokens are found, regardless of adjacency or ordering\n*/\nexports.search = function(text,options) {\n\toptions = options || {};\n\tvar self = this,\n\t\tt,\n\t\tinvert = !!options.invert;\n\t// Convert the search string into a regexp for each term\n\tvar terms, searchTermsRegExps,\n\t\tflags = options.caseSensitive ? \"\" : \"i\",\n\t\tanchor = options.anchored ? \"^\" : \"\";\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(\"(\" + anchor + $tw.utils.escapeRegExp(text) + \")\",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(\"(\" + anchor + terms.join(\"\\\\s+\") + \")\",flags)];\n\t} else if(options.regexp) {\n\t\ttry {\n\t\t\tsearchTermsRegExps = [new RegExp(\"(\" + text + \")\",flags)];\t\t\t\n\t\t} catch(e) {\n\t\t\tsearchTermsRegExps = null;\n\t\t\tconsole.log(\"Regexp error parsing /(\" + text + \")/\" + flags + \": \",e);\n\t\t}\n\t} else {\n\t\tterms = text.split(/ +/);\n\t\tif(terms.length === 1 && terms[0] === \"\") {\n\t\t\tsearchTermsRegExps = null;\n\t\t} else {\n\t\t\tsearchTermsRegExps = [];\n\t\t\tfor(t=0; t<terms.length; t++) {\n\t\t\t\tsearchTermsRegExps.push(new RegExp(\"(\" + anchor + $tw.utils.escapeRegExp(terms[t]) + \")\",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 && !options.excludeField) {\n\t\tfields.push(\"title\");\n\t\tfields.push(\"tags\");\n\t\tfields.push(\"text\");\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: \"\", type: \"text/vnd.tiddlywiki\"});\n\t\t}\n\t\tvar contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type] || $tw.config.contentTypeInfo[\"text/vnd.tiddlywiki\"],\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>0 && fieldIndex<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 === \"text\" && contentTypeInfo.encoding !== \"utf8\") {\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<str.length; s++) {\n\t\t\t\t\t\tfor(t=0; t<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<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<options.exclude.length; t++) {\n\t\t\tvar p = results.indexOf(options.exclude[t]);\n\t\t\tif(p !== -1) {\n\t\t\t\tresults.splice(p,1);\n\t\t\t}\n\t\t}\n\t}\n\treturn results;\n};\n\n/*\nTrigger a load for a tiddler if it is skinny. Returns the text, or undefined if the tiddler is missing, null if the tiddler is being lazily loaded.\n*/\nexports.getTiddlerText = function(title,defaultText) {\n\tvar tiddler = this.getTiddler(title);\n\t// Return undefined if the tiddler isn't found\n\tif(!tiddler) {\n\t\treturn defaultText;\n\t}\n\tif(!tiddler.hasField(\"_is_skinny\")) {\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(\"lazyLoad\",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,\"\");\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 === \"function\") {\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<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 === \"function\") {\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 === \"\" || !type) {\n\t\tvar dotPos = file.name.lastIndexOf(\".\");\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 === \"base64\" : false;\n\t// Log some debugging information\n\tif($tw.log.IMPORT) {\n\t\tconsole.log(\"Importing file '\" + file.name + \"', type: '\" + type + \"', isBinary: \" + isBinary);\n\t}\n\t// Give the hook a chance to process the drag\n\tif($tw.hooks.invokeHook(\"th-importing-file\",{\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 || \"Untitled\"};\n\t\tif(isBinary) {\n\t\t\tvar commaPos = text.indexOf(\",\");\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[\"draft.title\"] && tiddler.fields[\"draft.of\"] === 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 = [\"created\", \"modified\", \"title\", \"draft.title\", \"draft.of\"],\n\t\torigTiddler = this.getTiddler(tiddler.fields[\"draft.of\"]) || new $tw.Tiddler({text:\"\", tags:[]}),\n\t\ttitleModified = tiddler.fields[\"draft.title\"] !== tiddler.fields[\"draft.of\"];\n\treturn titleModified || !tiddler.isEqual(origTiddler,ignoredFields);\n};\n\n/*\nAdd a new record to the top of the history stack\ntitle: a title string or an array of title strings\nfromPageRect: page coordinates of the origin of the navigation\nhistoryTitle: title of history tiddler (defaults to $:/HistoryList)\n*/\nexports.addToHistory = function(title,fromPageRect,historyTitle) {\n\tvar story = new $tw.Story({wiki: this, historyTitle: historyTitle});\n\tstory.addToHistory(title,fromPageRect);\t\n\tconsole.log(\"$tw.wiki.addToHistory() is deprecated since V5.1.23! Use the this.story.addToHistory() from the story-object!\")\n};\n\n/*\nAdd a new tiddler to the story river\ntitle: a title string or an array of title strings\nfromTitle: the title of the tiddler from which the navigation originated\nstoryTitle: title of story tiddler (defaults to $:/StoryList)\noptions: see story.js\n*/\nexports.addToStory = function(title,fromTitle,storyTitle,options) {\n\tvar story = new $tw.Story({wiki: this, storyTitle: storyTitle});\n\tstory.addToStory(title,fromTitle,options);\n\tconsole.log(\"$tw.wiki.addToStory() is deprecated since V5.1.23! Use the this.story.addToStory() from the story-object!\")\n};\n\n/*\nGenerate a title for the draft of a given tiddler\n*/\nexports.generateDraftTitle = function(title) {\n\tvar c = 0,\n\t\tdraftTitle,\n\t\tusername = this.getTiddlerText(\"$:/status/UserName\"),\n\t\tattribution = username ? \" by \" + username : \"\";\n\tdo {\n\t\tdraftTitle = \"Draft \" + (c ? (c + 1) + \" \" : \"\") + \"of '\" + title + \"'\" + attribution;\n\t\tc++;\n\t} while(this.tiddlerExists(draftTitle));\n\treturn draftTitle;\n};\n\n/*\nInvoke the available upgrader modules\ntitles: array of tiddler titles to be processed\ntiddlers: hashmap by title of tiddler fields of pending import tiddlers. These can be modified by the upgraders. An entry with no fields indicates a tiddler that was pending import has been suppressed. When entries are added to the pending import the tiddlers hashmap may have entries that are not present in the titles array\nReturns a hashmap of messages keyed by tiddler title.\n*/\nexports.invokeUpgraders = function(titles,tiddlers) {\n\t// Collect up the available upgrader modules\n\tvar self = this;\n\tif(!this.upgraderModules) {\n\t\tthis.upgraderModules = [];\n\t\t$tw.modules.forEachModuleOfType(\"upgrader\",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<this.upgraderModules.length; t++) {\n\t\tvar upgrader = this.upgraderModules[t],\n\t\t\tupgraderMessages = upgrader.upgrade(this,titles,tiddlers);\n\t\t$tw.utils.extend(messages,upgraderMessages);\n\t}\n\treturn messages;\n};\n\n// Determine whether a plugin by title is dynamically loadable\nexports.doesPluginRequireReload = function(title) {\n\treturn this.doesPluginInfoRequireReload(this.getPluginInfo(title) || this.getTiddlerDataCached(title));\n};\n\n// Determine whether a plugin info structure is dynamically loadable\nexports.doesPluginInfoRequireReload = function(pluginInfo) {\n\tif(pluginInfo) {\n\t\tvar foundModule = false;\n\t\t$tw.utils.each(pluginInfo.tiddlers,function(tiddler) {\n\t\t\tif(tiddler.type === \"application/javascript\" && $tw.utils.hop(tiddler,\"module-type\")) {\n\t\t\t\tfoundModule = true;\n\t\t\t}\n\t\t});\n\t\treturn foundModule;\n\t} else {\n\t\treturn null;\n\t}\n};\n\nexports.slugify = function(title,options) {\n\tvar tiddler = this.getTiddler(title),\n\t\tslug;\n\tif(tiddler && tiddler.fields.slug) {\n\t\tslug = tiddler.fields.slug;\n\t} else {\n\t\tslug = $tw.utils.transliterate(title.toString().toLowerCase()) // Replace diacritics with basic lowercase ASCII\n\t\t\t.replace(/\\s+/g,\"-\") // Replace spaces with -\n\t\t\t.replace(/[^\\w\\-\\.]+/g,\"\") // Remove all non-word chars except dash and dot\n\t\t\t.replace(/\\-\\-+/g,\"-\") // Replace multiple - with single -\n\t\t\t.replace(/^-+/,\"\") // Trim - from start of text\n\t\t\t.replace(/-+$/,\"\"); // Trim - from end of text\n\t}\n\t// If the resulting slug is blank (eg because the title is just punctuation characters)\n\tif(!slug) {\n\t\t// ...then just use the character codes of the title\n\t\tvar result = [];\n\t\t$tw.utils.each(title.split(\"\"),function(char) {\n\t\t\tresult.push(char.charCodeAt(0).toString());\n\t\t});\n\t\tslug = result.join(\"-\");\n\t}\n\treturn slug;\n};\n\n})();\n\n", - "type": "application/javascript", - "module-type": "wikimethod" - }, - "$:/palettes/Blanca": { - "title": "$:/palettes/Blanca", - "name": "Blanca", - "description": "A clean white palette to let you focus", - "tags": "$:/tags/Palette", - "type": "application/x-tiddler-dictionary", - "text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #66cccc\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\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: <<colour foreground>>\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: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #7897f3\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #eeeeee\ntab-border-selected: #cccccc\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ffeedd\ntag-foreground: #000\ntiddler-background: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\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" - }, - "$:/palettes/Blue": { - "title": "$:/palettes/Blue", - "name": "Blue", - "description": "A blue theme", - "tags": "$:/tags/Palette", - "type": "application/x-tiddler-dictionary", - "text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #fff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour foreground>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\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: <<colour foreground>>\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: <<colour page-background>>\nsidebar-tab-background: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #5959c0\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: #ccccdd\ntab-border-selected: #ccccdd\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #eeeeff\ntag-foreground: #000\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\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" - }, - "$:/palettes/Muted": { - "title": "$:/palettes/Muted", - "name": "Muted", - "description": "Bright tiddlers on a muted background", - "tags": "$:/tags/Palette", - "type": "application/x-tiddler-dictionary", - "text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\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: <<colour foreground>>\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: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #d5ad34\ntag-foreground: #ffffff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\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" - }, - "$:/palettes/ContrastLight": { - "title": "$:/palettes/ContrastLight", - "name": "Contrast (Light)", - "description": "High contrast and unambiguous (light version)", - "tags": "$:/tags/Palette", - "type": "application/x-tiddler-dictionary", - "text": "alert-background: #f00\nalert-border: <<colour background>>\nalert-highlight: <<colour foreground>>\nalert-muted-foreground: #800\nbackground: #fff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background: <<colour background>>\nbutton-foreground: <<colour foreground>>\nbutton-border: <<colour foreground>>\ncode-background: <<colour background>>\ncode-border: <<colour foreground>>\ncode-foreground: <<colour foreground>>\ndirty-indicator: #f00\ndownload-background: #080\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: <<colour foreground>>\ndropdown-tab-background: <<colour foreground>>\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: <<colour foreground>>\nmessage-border: <<colour background>>\nmessage-foreground: <<colour background>>\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: <<colour foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour foreground>>\nmodal-header-border: <<colour foreground>>\nmuted-foreground: <<colour foreground>>\nnotification-background: <<colour background>>\nnotification-border: <<colour foreground>>\npage-background: <<colour background>>\npre-background: <<colour background>>\npre-border: <<colour foreground>>\nprimary: #00f\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: <<colour background>>\nsidebar-controls-foreground: <<colour foreground>>\nsidebar-foreground-shadow: rgba(0,0,0, 0)\nsidebar-foreground: <<colour foreground>>\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: <<colour foreground>>\nsidebar-tab-background-selected: <<colour background>>\nsidebar-tab-background: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: <<colour foreground>>\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: <<colour foreground>>\nsidebar-tiddler-link-foreground: <<colour primary>>\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: <<colour foreground>>\ntab-border-selected: <<colour foreground>>\ntab-border: <<colour foreground>>\ntab-divider: <<colour foreground>>\ntab-foreground-selected: <<colour foreground>>\ntab-foreground: <<colour background>>\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #000\ntag-foreground: #fff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour foreground>>\ntiddler-controls-foreground-hover: #ddd\ntiddler-controls-foreground-selected: #fdd\ntiddler-controls-foreground: <<colour foreground>>\ntiddler-editor-background: <<colour background>>\ntiddler-editor-border-image: <<colour foreground>>\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: <<colour background>>\ntiddler-editor-fields-odd: <<colour background>>\ntiddler-info-background: <<colour background>>\ntiddler-info-border: <<colour foreground>>\ntiddler-info-tab-background: <<colour background>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour foreground>>\ntiddler-title-foreground: <<colour foreground>>\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: <<colour foreground>>\nvery-muted-foreground: #888888\n" - }, - "$:/palettes/ContrastDark": { - "title": "$:/palettes/ContrastDark", - "name": "Contrast (Dark)", - "description": "High contrast and unambiguous (dark version)", - "tags": "$:/tags/Palette", - "type": "application/x-tiddler-dictionary", - "text": "alert-background: #f00\nalert-border: <<colour background>>\nalert-highlight: <<colour foreground>>\nalert-muted-foreground: #800\nbackground: #000\nblockquote-bar: <<colour muted-foreground>>\nbutton-background: <<colour background>>\nbutton-foreground: <<colour foreground>>\nbutton-border: <<colour foreground>>\ncode-background: <<colour background>>\ncode-border: <<colour foreground>>\ncode-foreground: <<colour foreground>>\ndirty-indicator: #f00\ndownload-background: #080\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: <<colour foreground>>\ndropdown-tab-background: <<colour foreground>>\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: <<colour foreground>>\nmessage-border: <<colour background>>\nmessage-foreground: <<colour background>>\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: <<colour foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour foreground>>\nmodal-header-border: <<colour foreground>>\nmuted-foreground: <<colour foreground>>\nnotification-background: <<colour background>>\nnotification-border: <<colour foreground>>\npage-background: <<colour background>>\npre-background: <<colour background>>\npre-border: <<colour foreground>>\nprimary: #00f\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: <<colour background>>\nsidebar-controls-foreground: <<colour foreground>>\nsidebar-foreground-shadow: rgba(0,0,0, 0)\nsidebar-foreground: <<colour foreground>>\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: <<colour foreground>>\nsidebar-tab-background-selected: <<colour background>>\nsidebar-tab-background: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: <<colour foreground>>\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: <<colour foreground>>\nsidebar-tiddler-link-foreground: <<colour primary>>\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: <<colour foreground>>\ntab-border-selected: <<colour foreground>>\ntab-border: <<colour foreground>>\ntab-divider: <<colour foreground>>\ntab-foreground-selected: <<colour foreground>>\ntab-foreground: <<colour background>>\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #fff\ntag-foreground: #000\ntiddler-background: <<colour background>>\ntiddler-border: <<colour foreground>>\ntiddler-controls-foreground-hover: #ddd\ntiddler-controls-foreground-selected: #fdd\ntiddler-controls-foreground: <<colour foreground>>\ntiddler-editor-background: <<colour background>>\ntiddler-editor-border-image: <<colour foreground>>\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: <<colour background>>\ntiddler-editor-fields-odd: <<colour background>>\ntiddler-info-background: <<colour background>>\ntiddler-info-border: <<colour foreground>>\ntiddler-info-tab-background: <<colour background>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour foreground>>\ntiddler-title-foreground: <<colour foreground>>\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: <<colour foreground>>\nvery-muted-foreground: #888888\n" - }, - "$:/palettes/CupertinoDark": { - "title": "$:/palettes/CupertinoDark", - "tags": "$:/tags/Palette", - "name": "Cupertino Dark", - "description": "A macOS inspired dark palette", - "type": "application/x-tiddler-dictionary", - "text": "alert-background: #FF453A\nalert-border: #FF453A\nalert-highlight: #FFD60A\nalert-muted-foreground: <<colour muted-foreground>>\nbackground: #282828\nblockquote-bar: <<colour page-background>>\nbutton-foreground: <<colour background>>\ncode-background: <<colour pre-background>>\ncode-border: <<colour pre-border>>\ncode-foreground: rgba(255, 255, 255, 0.54)\ndirty-indicator: #FF453A\ndownload-background: <<colour primary>>\ndownload-foreground: <<colour foreground>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour tiddler-info-background>>\ndropdown-border: <<colour dropdown-background>>\ndropdown-tab-background-selected: #3F638B\ndropdown-tab-background: #323232\ndropzone-background: #30D158\nexternal-link-background-hover: transparent\nexternal-link-background-visited: transparent\nexternal-link-background: transparent\nexternal-link-foreground-hover: \nexternal-link-foreground-visited: #BF5AF2\nexternal-link-foreground: #32D74B\nforeground: #FFFFFF\nmenubar-background: #464646\nmenubar-foreground: #ffffff\nmessage-background: <<colour background>>\nmessage-border: <<colour very-muted-foreground>>\nmessage-foreground: rgba(255, 255, 255, 0.54)\nmodal-backdrop: <<colour page-background>>\nmodal-background: <<colour background>>\nmodal-border: <<colour very-muted-foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour background>>\nmodal-header-border: <<colour very-muted-foreground>>\nmuted-foreground: #98989D\nnotification-background: <<colour dropdown-background>>\nnotification-border: <<colour dropdown-background>>\npage-background: #323232\npre-background: #464646\npre-border: transparent\nprimary: #0A84FF\nselect-tag-background: <<colour background>>\nselect-tag-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour background>>\nsidebar-controls-foreground-hover: #FF9F0A\nsidebar-controls-foreground: #8E8E93\nsidebar-foreground-shadow: transparent\nsidebar-foreground: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground-hover: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground: rgba(255, 255, 255, 0.38)\nsidebar-tab-background-selected: #3F638B\nsidebar-tab-background: <<colour background>>\nsidebar-tab-border-selected: <<colour background>>\nsidebar-tab-border: <<colour background>>\nsidebar-tab-divider: <<colour background>>\nsidebar-tab-foreground-selected: rgba(255, 255, 255, 0.87)\nsidebar-tab-foreground: rgba(255, 255, 255, 0.54)\nsidebar-tiddler-link-foreground-hover: rgba(255, 255, 255, 0.7)\nsidebar-tiddler-link-foreground: rgba(255, 255, 255, 0.54)\nsite-title-foreground: #ffffff\nstatic-alert-foreground: #B4B4B4\ntab-background-selected: #3F638B\ntab-background: <<colour page-background>>\ntab-border-selected: <<colour page-background>>\ntab-border: <<colour page-background>>\ntab-divider: <<colour page-background>>\ntab-foreground-selected: rgba(255, 255, 255, 0.87)\ntab-foreground: rgba(255, 255, 255, 0.54)\ntable-border: #464646\ntable-footer-background: <<colour tiddler-editor-fields-odd>>\ntable-header-background: <<colour tiddler-editor-fields-even>>\ntag-background: #48484A\ntag-foreground: #323232\ntiddler-background: <<colour background>>\ntiddler-border: transparent\ntiddler-controls-foreground-hover: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground-selected: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground: #48484A\ntiddler-editor-background: transparent\ntiddler-editor-border-image: \ntiddler-editor-border: rgba(255, 255, 255, 0.08)\ntiddler-editor-fields-even: rgba(255, 255, 255, 0.1)\ntiddler-editor-fields-odd: rgba(255, 255, 255, 0.04)\ntiddler-info-background: #1E1E1E\ntiddler-info-border: #1E1E1E\ntiddler-info-tab-background: #3F638B\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour muted-foreground>>\ntiddler-title-foreground: #FFFFFF\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: <<colour very-muted-foreground>>\nvery-muted-foreground: #464646\nselection-background: #3F638B\nselection-foreground: #ffffff\nwikilist-background: <<colour page-background>>\nwikilist-button-background: #3F638B\nwikilist-button-foreground: <<colour foreground>>\nwikilist-button-open: #32D74B\nwikilist-button-open-hover: #32D74B\nwikilist-button-reveal: #0A84FF\nwikilist-button-reveal-hover: #0A84FF\nwikilist-button-remove: #FF453A\nwikilist-button-remove-hover: #FF453A\nwikilist-droplink-dragover: #32D74B\nwikilist-item: <<colour background>>\nwikilist-toolbar-background: <<colour background>>\nwikilist-title: <<colour foreground>>\nwikilist-title-svg: <<colour foreground>>\nwikilist-toolbar-foreground: <<colour foreground>>\nwikilist-url: <<colour muted-foreground>>\n" - }, - "$:/palettes/DarkPhotos": { - "title": "$:/palettes/DarkPhotos", - "created": "20150402111612188", - "description": "Good with dark photo backgrounds", - "modified": "20150402112344080", - "name": "DarkPhotos", - "tags": "$:/tags/Palette", - "type": "application/x-tiddler-dictionary", - "text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background: \nbutton-foreground: \nbutton-border: \ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\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: <<colour foreground>>\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: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: rgba(255,255,255, 0.2)\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\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: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ec6\ntag-foreground: #ffffff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\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" - }, - "$:/palettes/DesertSand": { - "title": "$:/palettes/DesertSand", - "tags": "$:/tags/Palette", - "name": "Desert Sand", - "description": "A desert sand palette", - "type": "application/x-tiddler-dictionary", - "text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #E9E0C7\nblockquote-bar: <<colour muted-foreground>>\nbutton-foreground: <<colour foreground>>\ncode-background: #F3EDDF\ncode-border: #C3BAA1\ncode-foreground: #ab3250\ndiff-delete-background: #bd8b8b\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #91c093\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: #ad3434\ndownload-background: #6ca16c\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: #E9E0C7\ndropdown-tab-background: #BAB29C\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #313163\nexternal-link-foreground: #555592\nforeground: #2D2A23\nmenubar-background: #CDC2A6\nmenubar-foreground: #5A5446\nmessage-background: #ECE5CF\nmessage-border: #D6CBAA\nmessage-foreground: #5f6e7d\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #8A8885\nmodal-footer-background: #CDC2A6\nmodal-footer-border: #9D998E\nmodal-header-border: #9D998E\nmuted-foreground: #9D998E\nnotification-background: #F0E9D7\nnotification-border: #939189\npage-background: #e0d3af\npre-background: #D6CBAA\npre-border: #CDC2A6\nprimary: #5B6F55\nselection-background: #9D947B\nselection-foreground: <<colour foreground>>\nselect-tag-background: #F0E9D7\nselect-tag-foreground: #2D2A23\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #2D2A23\nsidebar-controls-foreground: #867F69\nsidebar-foreground-shadow: transparent\nsidebar-foreground: #867F69\nsidebar-muted-foreground-hover: #706A58\nsidebar-muted-foreground: #B3A98C\nsidebar-tab-background-selected: #e0d3af\nsidebar-tab-background: #A6A193\nsidebar-tab-border-selected: #C3BAA1\nsidebar-tab-border: #C3BAA1\nsidebar-tab-divider: #CDC2A6\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: #2D2A23\nsidebar-tiddler-link-foreground-hover: #433F35\nsidebar-tiddler-link-foreground: #706A58\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #A6A193\ntab-background-selected: #E9E0C7\ntab-background: #A6A193\ntab-border-selected: #C3BAA1\ntab-border: #C3BAA1\ntab-divider: #CDC2A6\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #2D2A23\ntable-border: #9D998E\ntable-footer-background: #8A8885\ntable-header-background: #B0AA98\ntag-background: #706A58\ntag-foreground: #E3D7B7\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: #9D947B\ntiddler-controls-foreground-selected: #706A58\ntiddler-controls-foreground: #C3BAA1\ntiddler-editor-background: #E9E0C7\ntiddler-editor-border-image: #A6A193\ntiddler-editor-border: #A6A193\ntiddler-editor-fields-even: #D6CBAA\ntiddler-editor-fields-odd: #C3BAA1\ntiddler-info-background: #E3D7B7\ntiddler-info-border: #BAB29C\ntiddler-info-tab-background: #E9E0C7\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #867F69\ntiddler-title-foreground: #374464\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #8A8885\nvery-muted-foreground: #CDC2A6\nwikilist-background: <<colour page-background>>\nwikilist-item: #CDC2A6\nwikilist-info: #161512\nwikilist-title: #433F35\nwikilist-title-svg: <<colour wikilist-title>>\nwikilist-url: #706A58\nwikilist-button-open: #7db66a\nwikilist-button-open-hover: #56a556\nwikilist-button-reveal: #5a6c9e\nwikilist-button-reveal-hover: #454591\nwikilist-button-remove: #bc5972\nwikilist-button-remove-hover: #814040\nwikilist-toolbar-background: #CDC2A6\nwikilist-toolbar-foreground: #2D2A23\nwikilist-droplink-dragover: rgba(255,192,192,0.5)\nwikilist-button-background: #A6A193\nwikilist-button-foreground: #161512\n" - }, - "$:/palettes/GruvboxDark": { - "title": "$:/palettes/GruvboxDark", - "name": "Gruvbox Dark", - "description": "Retro groove color scheme", - "tags": "$:/tags/Palette", - "type": "application/x-tiddler-dictionary", - "license": "https://github.com/morhetz/gruvbox", - "text": "alert-background: #cc241d\nalert-border: #cc241d\nalert-highlight: #d79921\nalert-muted-foreground: #504945\nbackground: #3c3836\nblockquote-bar: <<colour muted-foreground>>\nbutton-foreground: <<colour page-background>>\ncode-background: #504945\ncode-border: #504945\ncode-foreground: #fb4934\ndiff-delete-background: #fb4934\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #b8bb26\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: #fb4934\ndownload-background: #b8bb26\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: #665c54\ndropdown-border: <<colour background>>\ndropdown-tab-background-selected: #ebdbb2\ndropdown-tab-background: #665c54\ndropzone-background: #98971a\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #d3869b\nexternal-link-foreground: #8ec07c\nforeground: #fbf1c7\nmenubar-background: #504945\nmenubar-foreground: <<colour foreground>>\nmessage-background: #83a598\nmessage-border: #83a598\nmessage-foreground: #3c3836\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #504945\nmodal-footer-background: #3c3836\nmodal-footer-border: #3c3836\nmodal-header-border: #3c3836\nmuted-foreground: #d5c4a1\nnotification-background: <<colour primary>>\nnotification-border: <<colour primary>>\npage-background: #282828\npre-background: #504945\npre-border: #504945\nprimary: #d79921\nselect-tag-background: #665c54\nselect-tag-foreground: <<colour foreground>>\nselection-background: #458588\nselection-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour page-background>>\nsidebar-controls-foreground-hover: #7c6f64\nsidebar-controls-foreground: #504945\nsidebar-foreground-shadow: transparent\nsidebar-foreground: #fbf1c7\nsidebar-muted-foreground-hover: #7c6f64\nsidebar-muted-foreground: #504945\nsidebar-tab-background-selected: #bdae93\nsidebar-tab-background: #3c3836\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: #bdae93\nsidebar-tab-divider: <<colour page-background>>\nsidebar-tab-foreground-selected: #282828\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #458588\nsidebar-tiddler-link-foreground: #98971a\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #B48EAD\ntab-background-selected: #ebdbb2\ntab-background: #665c54\ntab-border-selected: #665c54\ntab-border: #665c54\ntab-divider: #bdae93\ntab-foreground-selected: #282828\ntab-foreground: #ebdbb2\ntable-border: #7c6f64\ntable-footer-background: #665c54\ntable-header-background: #504945\ntag-background: #d3869b\ntag-foreground: #282828\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: #7c6f64\ntiddler-controls-foreground-selected: <<colour primary>>\ntiddler-controls-foreground: #665c54\ntiddler-editor-background: #32302f\ntiddler-editor-border-image: #282828\ntiddler-editor-border: #282828\ntiddler-editor-fields-even: #504945\ntiddler-editor-fields-odd: #7c6f64\ntiddler-info-background: #32302f\ntiddler-info-border: #ebdbb2\ntiddler-info-tab-background: #ebdbb2\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #7c6f64\ntiddler-title-foreground: #a89984\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #504945\nvery-muted-foreground: #bdae93\nwikilist-background: <<colour page-background>>\nwikilist-button-background: #acacac\nwikilist-button-foreground: <<colour button-foreground>>\nwikilist-item: <<colour background>>\nwikilist-toolbar-background: <<colour background>>\nwikilist-toolbar-foreground: <<colour foreground>>\nwikilist-title: <<colour foreground>>\nwikilist-title-svg: <<colour wikilist-title>>\nwikilist-url: <<colour muted-foreground>>\nwikilist-button-open-hover: <<colour primary>>\nwikilist-button-open: <<colour dropzone-background>>\nwikilist-button-remove: <<colour dirty-indicator>>\nwikilist-button-remove-hover: <<colour alert-background>>\nwikilist-droplink-dragover: <<colour dropzone-background>>\nwikilist-button-reveal: <<colour sidebar-tiddler-link-foreground-hover>>\nwikilist-button-reveal-hover: <<colour message-background>>\n" - }, - "$:/palettes/Nord": { - "title": "$:/palettes/Nord", - "name": "Nord", - "description": "An arctic, north-bluish color palette.", - "tags": "$:/tags/Palette", - "type": "application/x-tiddler-dictionary", - "license": "MIT, arcticicestudio, https://github.com/arcticicestudio/nord/blob/develop/LICENSE.md", - "text": "alert-background: #D08770\nalert-border: #D08770\nalert-highlight: #B48EAD\nalert-muted-foreground: #4C566A\nbackground: #3b4252\nblockquote-bar: <<colour muted-foreground>>\nbutton-foreground: <<colour page-background>>\ncode-background: #2E3440\ncode-border: #2E3440\ncode-foreground: #BF616A\ndiff-delete-background: #BF616A\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #A3BE8C\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: #BF616A\ndownload-background: #A3BE8C\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour background>>\ndropdown-tab-background-selected: #ECEFF4\ndropdown-tab-background: #4C566A\ndropzone-background: #A3BE8C\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #5E81AC\nexternal-link-foreground: #8FBCBB\nforeground: #d8dee9\nmenubar-background: #2E3440\nmenubar-foreground: #d8dee9\nmessage-background: #2E3440\nmessage-border: #2E3440\nmessage-foreground: #547599\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #3b4252\nmodal-footer-background: #3b4252\nmodal-footer-border: #3b4252\nmodal-header-border: #3b4252\nmuted-foreground: #4C566A\nnotification-background: <<colour primary>>\nnotification-border: #EBCB8B\npage-background: #2e3440\npre-background: #2E3440\npre-border: #2E3440\nprimary: #5E81AC\nselect-tag-background: #3b4252\nselect-tag-foreground: <<colour foreground>>\nselection-background: #5E81AC\nselection-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour page-background>>\nsidebar-controls-foreground-hover: #D8DEE9\nsidebar-controls-foreground: #4C566A\nsidebar-foreground-shadow: transparent\nsidebar-foreground: #D8DEE9\nsidebar-muted-foreground-hover: #4C566A\nsidebar-muted-foreground: #4C566A\nsidebar-tab-background-selected: #ECEFF4\nsidebar-tab-background: #4C566A\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: #4C566A\nsidebar-tab-divider: <<colour page-background>>\nsidebar-tab-foreground-selected: #4C566A\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #A3BE8C\nsidebar-tiddler-link-foreground: #81A1C1\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #B48EAD\ntab-background-selected: #ECEFF4\ntab-background: #4C566A\ntab-border-selected: #4C566A\ntab-border: #4C566A\ntab-divider: #4C566A\ntab-foreground-selected: #4C566A\ntab-foreground: #D8DEE9\ntable-border: #4C566A\ntable-footer-background: #2e3440\ntable-header-background: #2e3440\ntag-background: #A3BE8C\ntag-foreground: #4C566A\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: \ntiddler-controls-foreground-selected: #EBCB8B\ntiddler-controls-foreground: #4C566A\ntiddler-editor-background: #2e3440\ntiddler-editor-border-image: #2e3440\ntiddler-editor-border: #3b4252\ntiddler-editor-fields-even: #2e3440\ntiddler-editor-fields-odd: #2e3440\ntiddler-info-background: #2e3440\ntiddler-info-border: #2e3440\ntiddler-info-tab-background: #2e3440\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #4C566A\ntiddler-title-foreground: #81A1C1\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #2d3038\nvery-muted-foreground: #2d3038\nwikilist-background: <<colour page-background>>\nwikilist-toolbar-background: <<colour background>>\nwikilist-item: <<colour background>>\nwikilist-title: <<colour foreground>>\nwikilist-info: <<colour muted-foreground>>\nwikilist-button-open: #A3BE8C\nwikilist-button-open-hover: #A3BE8C\nwikilist-button-reveal: #81A1C1\nwikilist-button-reveal-hover: #81A1C1\nwikilist-button-remove: #B48EAD\nwikilist-button-remove-hover: #B48EAD\n" - }, - "$:/palettes/Rocker": { - "title": "$:/palettes/Rocker", - "name": "Rocker", - "description": "A dark theme", - "tags": "$:/tags/Palette", - "type": "application/x-tiddler-dictionary", - "text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\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: <<colour foreground>>\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: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #ffbb99\nsidebar-tiddler-link-foreground: #cc0000\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ffbb99\ntag-foreground: #000\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\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" - }, - "$:/palettes/SolarFlare": { - "title": "$:/palettes/SolarFlare", - "name": "Solar Flare", - "description": "Warm, relaxing earth colours", - "tags": "$:/tags/Palette", - "type": "application/x-tiddler-dictionary", - "text": ": 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: <<colour background>>\n dragger-foreground: <<colour background>>\n dropdown-background: <<colour background>>\n modal-background: <<colour background>>\n sidebar-foreground-shadow: <<colour background>>\n tiddler-background: <<colour background>>\n tiddler-border: <<colour background>>\n tiddler-link-background: <<colour background>>\n tab-background-selected: <<colour background>>\n dropdown-tab-background-selected: <<colour tab-background-selected>>\nforeground: #657b83\n dragger-background: <<colour foreground>>\n tab-foreground: <<colour foreground>>\n tab-foreground-selected: <<colour tab-foreground>>\n sidebar-tab-foreground-selected: <<colour tab-foreground-selected>>\n sidebar-tab-foreground: <<colour tab-foreground>>\n sidebar-button-foreground: <<colour foreground>>\n sidebar-controls-foreground: <<colour foreground>>\n sidebar-foreground: <<colour foreground>>\n: base03\n: base02\n: base01\n alert-muted-foreground: <<colour base01>>\n: base00\n code-foreground: <<colour base00>>\n message-foreground: <<colour base00>>\n tag-foreground: <<colour base00>>\n: base0\n sidebar-tiddler-link-foreground: <<colour base0>>\n: base1\n muted-foreground: <<colour base1>>\n blockquote-bar: <<colour muted-foreground>>\n dropdown-border: <<colour muted-foreground>>\n sidebar-muted-foreground: <<colour muted-foreground>>\n tiddler-title-foreground: <<colour muted-foreground>>\n site-title-foreground: <<colour tiddler-title-foreground>>\n: base2\n modal-footer-background: <<colour base2>>\n page-background: <<colour base2>>\n modal-backdrop: <<colour page-background>>\n notification-background: <<colour page-background>>\n code-background: <<colour page-background>>\n code-border: <<colour code-background>>\n pre-background: <<colour page-background>>\n pre-border: <<colour pre-background>>\n sidebar-tab-background-selected: <<colour page-background>>\n table-header-background: <<colour base2>>\n tag-background: <<colour base2>>\n tiddler-editor-background: <<colour base2>>\n tiddler-info-background: <<colour base2>>\n tiddler-info-tab-background: <<colour base2>>\n tab-background: <<colour base2>>\n dropdown-tab-background: <<colour tab-background>>\n: base3\n alert-background: <<colour base3>>\n message-background: <<colour base3>>\n: yellow\n: orange\n: red\n: magenta\n alert-highlight: <<colour magenta>>\n: violet\n external-link-foreground: <<colour violet>>\n: blue\n: cyan\n: green\n: base10\n tiddler-controls-foreground: <<colour base10>>\n: violet-muted\n external-link-foreground-visited: <<colour violet-muted>>\n: blue-muted\n primary: <<colour blue-muted>>\n download-background: <<colour primary>>\n tiddler-link-foreground: <<colour primary>>\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: <<colour tab-border>>\n modal-header-border: <<colour tab-border>>\n notification-border: <<colour tab-border>>\n sidebar-tab-border: <<colour tab-border>>\n tab-border-selected: <<colour tab-border>>\n sidebar-tab-border-selected: <<colour tab-border-selected>>\ntab-divider: #d8d8d8\n sidebar-tab-divider: <<colour tab-divider>>\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" - }, - "$:/palettes/SolarizedDark": { - "title": "$:/palettes/SolarizedDark", - "tags": "$:/tags/Palette", - "type": "application/x-tiddler-dictionary", - "description": "Precision dark colors for machines and people", - "license": "MIT, Ethan Schoonover, https://github.com/altercation/solarized/blob/master/LICENSE", - "name": "SolarizedDark", - "text": "alert-background: #073642\nalert-border: #93a1a1\nalert-highlight: #d33682\nalert-muted-foreground: #d33682\nbackground: #073642\nblockquote-bar: #d33682\nbutton-background: #073642\nbutton-border: #586e75\nbutton-foreground: #93a1a1\ncode-background: #073642\ncode-border: #586e75\ncode-foreground: #93a1a1\ndirty-indicator: inherit\ndownload-background: #859900\ndownload-foreground: #073642\ndragger-background: #073642\ndragger-foreground: #839496\ndropdown-background: #073642\ndropdown-border: #93a1a1\ndropdown-tab-background: #002b36\ndropdown-tab-background-selected: #073642\ndropzone-background: #859900\nexternal-link-background: inherit\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-foreground: #268bd2\nexternal-link-foreground-hover:\nexternal-link-foreground-visited: #268bd2\nforeground: #839496\nmessage-background: #002b36\nmessage-border: #586e75\nmessage-foreground: #839496\nmodal-backdrop: #657b83\nmodal-background: #002b36\nmodal-border: #586e75\nmodal-footer-background: #073642\nmodal-footer-border: #586e75\nmodal-header-border: #586e75\nmuted-foreground: #93a1a1\nnotification-background: #002b36\nnotification-border: #586e75\npage-background: #073642\npre-background: inherit\npre-border: #657b83\nprimary: #859900\nselect-tag-background: #002b36\nselect-tag-foreground: #839496\nsidebar-button-foreground: #93a1a1\nsidebar-controls-foreground: #93a1a1\nsidebar-controls-foreground-hover: #eee8d5\nsidebar-foreground: #93a1a1\nsidebar-foreground-shadow: transparent\nsidebar-muted-foreground: #839496\nsidebar-muted-foreground-hover: #93a1a1\nsidebar-tab-background: #002b36\nsidebar-tab-background-selected: #073642\nsidebar-tab-border: #073642\nsidebar-tab-border-selected: #839496\nsidebar-tab-divider: #002b36\nsidebar-tab-foreground: #657b83\nsidebar-tab-foreground-selected: #93a1a1\nsidebar-tiddler-link-foreground: #2aa198\nsidebar-tiddler-link-foreground-hover: #eee8d5\nsite-title-foreground: #d33682\nstatic-alert-foreground: #93a1a1\ntab-background: #073642\ntab-background-selected: #002b36\ntab-border: #586e75\ntab-border-selected: #93a1a1\ntab-divider: #93a1a1\ntab-foreground: #839496\ntab-foreground-selected: #93a1a1\ntable-border: #586e75\ntable-footer-background: #073642\ntable-header-background: #073642\ntag-background: #b58900\ntag-foreground: #002b36\ntiddler-background: #002b36\ntiddler-border: #586e75\ntiddler-controls-foreground: inherit\ntiddler-controls-foreground-hover: #d33682\ntiddler-controls-foreground-selected: #2aa198\ntiddler-editor-background: #002b36\ntiddler-editor-border: #073642\ntiddler-editor-border-image: #002b36\ntiddler-editor-fields-even: #002b36\ntiddler-editor-fields-odd: #073642\ntiddler-info-background: #073642\ntiddler-info-border: #657b83\ntiddler-info-tab-background: #002b36\ntiddler-link-background: #002b36\ntiddler-link-foreground: #2aa198\ntiddler-subtitle-foreground: #839496\ntiddler-title-foreground: #d33682\ntoolbar-cancel-button: #839496\ntoolbar-close-button: #839496\ntoolbar-delete-button: #dc322f\ntoolbar-done-button: #839496\ntoolbar-edit-button: #839496\ntoolbar-info-button: #839496\ntoolbar-new-button: #839496\ntoolbar-options-button: #839496\ntoolbar-save-button: inherit\nuntagged-background: #586e75\nvery-muted-foreground: #586e75\n" - }, - "$:/palettes/SolarizedLight": { - "title": "$:/palettes/SolarizedLight", - "tags": "$:/tags/Palette", - "type": "application/x-tiddler-dictionary", - "description": "Precision colors for machines and people", - "license": "MIT, Ethan Schoonover, https://github.com/altercation/solarized/blob/master/LICENSE", - "name": "SolarizedLight", - "text": "alert-background: #eee8d5\nalert-border: #586e75\nalert-highlight: #d33682\nalert-muted-foreground: #d33682\nbackground: #eee8d5\nblockquote-bar: #d33682\nbutton-background: #eee8d5\nbutton-border: #93a1a1\nbutton-foreground: #586e75\ncode-background: #eee8d5\ncode-border: #93a1a1\ncode-foreground: #586e75\ndirty-indicator: inherit\ndownload-background: #859900\ndownload-foreground: #eee8d5\ndragger-background: #eee8d5\ndragger-foreground: #657b83\ndropdown-background: #eee8d5\ndropdown-border: #586e75\ndropdown-tab-background: #fdf6e3\ndropdown-tab-background-selected: #eee8d5\ndropzone-background: #859900\nexternal-link-background: inherit\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-foreground: #268bd2\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #268bd2\nforeground: #657b83\nmessage-background: #fdf6e3\nmessage-border: #93a1a1\nmessage-foreground: #657b83\nmodal-backdrop: #839496\nmodal-background: #fdf6e3\nmodal-border: #93a1a1\nmodal-footer-background: #eee8d5\nmodal-footer-border: #93a1a1\nmodal-header-border: #93a1a1\nmuted-foreground: #586e75\nnotification-background: #fdf6e3\nnotification-border: #93a1a1\npage-background: #eee8d5\npre-background: #eee8d5\npre-border: #839496\nprimary: #859900\nselect-tag-background: #fdf6e3\nselect-tag-foreground: #657b83\nsidebar-button-foreground: #586e75\nsidebar-controls-foreground: #586e75\nsidebar-controls-foreground-hover: #d33682\nsidebar-foreground: #586e75\nsidebar-foreground-shadow: transparent\nsidebar-muted-foreground: #657b83\nsidebar-muted-foreground-hover: #586e75\nsidebar-tab-background: #fdf6e3\nsidebar-tab-background-selected: #eee8d5\nsidebar-tab-border: #eee8d5\nsidebar-tab-border-selected: #657b83\nsidebar-tab-divider: #fdf6e3\nsidebar-tab-foreground: #839496\nsidebar-tab-foreground-selected: #586e75\nsidebar-tiddler-link-foreground: #2aa198\nsidebar-tiddler-link-foreground-hover: #002b36\nsite-title-foreground: #d33682\nstatic-alert-foreground: #586e75\ntab-background: #eee8d5\ntab-background-selected: #fdf6e3\ntab-border: #93a1a1\ntab-border-selected: #586e75\ntab-divider: #586e75\ntab-foreground: #657b83\ntab-foreground-selected: #586e75\ntable-border: #93a1a1\ntable-footer-background: #eee8d5\ntable-header-background: #eee8d5\ntag-background: #b58900\ntag-foreground: #fdf6e3\ntiddler-background: #fdf6e3\ntiddler-border: #93a1a1\ntiddler-controls-foreground: inherit\ntiddler-controls-foreground-hover: #d33682\ntiddler-controls-foreground-selected: #2aa198\ntiddler-editor-background: #fdf6e3\ntiddler-editor-border: #eee8d5\ntiddler-editor-border-image: #fdf6e3\ntiddler-editor-fields-even: #fdf6e3\ntiddler-editor-fields-odd: #eee8d5\ntiddler-info-background: #eee8d5\ntiddler-info-border: #839496\ntiddler-info-tab-background: #fdf6e3\ntiddler-link-background: #fdf6e3\ntiddler-link-foreground: #2aa198\ntiddler-subtitle-foreground: #657b83\ntiddler-title-foreground: #d33682\ntoolbar-cancel-button: #657b83\ntoolbar-close-button: #657b83\ntoolbar-delete-button: #dc322f\ntoolbar-done-button: #657b83\ntoolbar-edit-button: #657b83\ntoolbar-info-button: #657b83\ntoolbar-new-button: #657b83\ntoolbar-options-button: #657b83\ntoolbar-save-button: inherit\nuntagged-background: #586e75\nvery-muted-foreground: #93a1a1\n" - }, - "$:/palettes/SpartanDay": { - "title": "$:/palettes/SpartanDay", - "tags": "$:/tags/Palette", - "type": "application/x-tiddler-dictionary", - "description": "Cold, spartan day colors", - "name": "Spartan Day", - "text": "alert-background: <<colour background>>\nalert-border: <<colour very-muted-foreground>>\nalert-highlight: <<colour very-muted-foreground>>\nalert-muted-foreground: <<colour muted-foreground>>\nbackground: #FAFAFA\nblockquote-bar: <<colour page-background>>\nbutton-background: transparent\nbutton-foreground: inherit\nbutton-border: <<colour tag-background>>\ncode-background: #ececec\ncode-border: #ececec\ncode-foreground: \ndirty-indicator: #c80000\ndownload-background: <<colour primary>>\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: #FFFFFF\ndropdown-border: <<colour dropdown-background>>\ndropdown-tab-background-selected: <<colour dropdown-background>>\ndropdown-tab-background: #F5F5F5\ndropzone-background: <<colour tag-background>>\nexternal-link-background-hover: transparent\nexternal-link-background-visited: transparent\nexternal-link-background: transparent\nexternal-link-foreground-hover: \nexternal-link-foreground-visited: \nexternal-link-foreground: \nforeground: rgba(0, 0, 0, 0.87)\nmessage-background: <<colour background>>\nmessage-border: <<colour very-muted-foreground>>\nmessage-foreground: rgba(0, 0, 0, 0.54)\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: <<colour very-muted-foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour very-muted-foreground>>\nmodal-header-border: <<colour very-muted-foreground>>\nmuted-foreground: rgba(0, 0, 0, 0.54)\nnotification-background: <<colour dropdown-background>>\nnotification-border: <<colour dropdown-background>>\npage-background: #f4f4f4\npre-background: #ececec\npre-border: #ececec\nprimary: #3949ab\nselect-tag-background: <<colour background>>\nselect-tag-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #aeaeae\nsidebar-controls-foreground: #c6c6c6\nsidebar-foreground-shadow: transparent\nsidebar-foreground: rgba(0, 0, 0, 0.54)\nsidebar-muted-foreground-hover: rgba(0, 0, 0, 0.54)\nsidebar-muted-foreground: rgba(0, 0, 0, 0.38)\nsidebar-tab-background-selected: <<colour page-background>>\nsidebar-tab-background: transparent\nsidebar-tab-border-selected: <<colour table-border>>\nsidebar-tab-border: transparent\nsidebar-tab-divider: <<colour table-border>>\nsidebar-tab-foreground-selected: rgba(0, 0, 0, 0.87)\nsidebar-tab-foreground: rgba(0, 0, 0, 0.54)\nsidebar-tiddler-link-foreground-hover: rgba(0, 0, 0, 0.87)\nsidebar-tiddler-link-foreground: rgba(0, 0, 0, 0.54)\nsite-title-foreground: rgba(0, 0, 0, 0.87)\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: transparent\ntab-border-selected: <<colour table-border>>\ntab-border: transparent\ntab-divider: <<colour table-border>>\ntab-foreground-selected: rgba(0, 0, 0, 0.87)\ntab-foreground: rgba(0, 0, 0, 0.54)\ntable-border: #d8d8d8\ntable-footer-background: <<colour tiddler-editor-fields-odd>>\ntable-header-background: <<colour tiddler-editor-fields-even>>\ntag-background: #ec6\ntag-foreground: <<colour button-foreground>>\ntiddler-background: <<colour background>>\ntiddler-border: #f9f9f9\ntiddler-controls-foreground-hover: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground-selected: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground: <<colour sidebar-controls-foreground>>\ntiddler-editor-background: transparent\ntiddler-editor-border-image: \ntiddler-editor-border: #e8e7e7\ntiddler-editor-fields-even: rgba(0, 0, 0, 0.1)\ntiddler-editor-fields-odd: rgba(0, 0, 0, 0.04)\ntiddler-info-background: #F5F5F5\ntiddler-info-border: #F5F5F5\ntiddler-info-tab-background: <<colour tiddler-editor-fields-odd>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour muted-foreground>>\ntiddler-title-foreground: #000000\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: <<colour very-muted-foreground>>\nvery-muted-foreground: rgba(0, 0, 0, 0.12)\n" - }, - "$:/palettes/SpartanNight": { - "title": "$:/palettes/SpartanNight", - "tags": "$:/tags/Palette", - "type": "application/x-tiddler-dictionary", - "description": "Dark spartan colors", - "name": "Spartan Night", - "text": "alert-background: <<colour background>>\nalert-border: <<colour very-muted-foreground>>\nalert-highlight: <<colour very-muted-foreground>>\nalert-muted-foreground: <<colour muted-foreground>>\nbackground: #303030\nblockquote-bar: <<colour page-background>>\nbutton-background: transparent\nbutton-foreground: inherit\nbutton-border: <<colour tag-background>>\ncode-background: <<colour pre-background>>\ncode-border: <<colour pre-border>>\ncode-foreground: rgba(255, 255, 255, 0.54)\ndirty-indicator: #c80000\ndownload-background: <<colour primary>>\ndownload-foreground: <<colour foreground>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: #424242\ndropdown-border: <<colour dropdown-background>>\ndropdown-tab-background-selected: <<colour dropdown-background>>\ndropdown-tab-background: #050505\ndropzone-background: <<colour tag-background>>\nexternal-link-background-hover: transparent\nexternal-link-background-visited: transparent\nexternal-link-background: transparent\nexternal-link-foreground-hover: \nexternal-link-foreground-visited: #7c318c\nexternal-link-foreground: #9e3eb3\nforeground: rgba(255, 255, 255, 0.7)\nmessage-background: <<colour background>>\nmessage-border: <<colour very-muted-foreground>>\nmessage-foreground: rgba(255, 255, 255, 0.54)\nmodal-backdrop: <<colour page-background>>\nmodal-background: <<colour background>>\nmodal-border: <<colour very-muted-foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour background>>\nmodal-header-border: <<colour very-muted-foreground>>\nmuted-foreground: rgba(255, 255, 255, 0.54)\nnotification-background: <<colour dropdown-background>>\nnotification-border: <<colour dropdown-background>>\npage-background: #212121\npre-background: #2a2a2a\npre-border: transparent\nprimary: #5656f3\nselect-tag-background: <<colour background>>\nselect-tag-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #494949\nsidebar-controls-foreground: #5d5d5d\nsidebar-foreground-shadow: transparent\nsidebar-foreground: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground-hover: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground: rgba(255, 255, 255, 0.38)\nsidebar-tab-background-selected: <<colour page-background>>\nsidebar-tab-background: transparent\nsidebar-tab-border-selected: <<colour table-border>>\nsidebar-tab-border: transparent\nsidebar-tab-divider: <<colour table-border>>\nsidebar-tab-foreground-selected: rgba(255, 255, 255, 0.87)\nsidebar-tab-foreground: rgba(255, 255, 255, 0.54)\nsidebar-tiddler-link-foreground-hover: rgba(255, 255, 255, 0.7)\nsidebar-tiddler-link-foreground: rgba(255, 255, 255, 0.54)\nsite-title-foreground: rgba(255, 255, 255, 0.7)\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: transparent\ntab-border-selected: <<colour table-border>>\ntab-border: transparent\ntab-divider: <<colour table-border>>\ntab-foreground-selected: rgba(255, 255, 255, 0.87)\ntab-foreground: rgba(255, 255, 255, 0.54)\ntable-border: #3a3a3a\ntable-footer-background: <<colour tiddler-editor-fields-odd>>\ntable-header-background: <<colour tiddler-editor-fields-even>>\ntag-background: #ec6\ntag-foreground: <<colour button-foreground>>\ntiddler-background: <<colour background>>\ntiddler-border: rgb(55,55,55)\ntiddler-controls-foreground-hover: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground-selected: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground: <<colour sidebar-controls-foreground>>\ntiddler-editor-background: transparent\ntiddler-editor-border-image: \ntiddler-editor-border: rgba(255, 255, 255, 0.08)\ntiddler-editor-fields-even: rgba(255, 255, 255, 0.1)\ntiddler-editor-fields-odd: rgba(255, 255, 255, 0.04)\ntiddler-info-background: #454545\ntiddler-info-border: #454545\ntiddler-info-tab-background: <<colour tiddler-editor-fields-odd>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour muted-foreground>>\ntiddler-title-foreground: #FFFFFF\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: <<colour very-muted-foreground>>\nvery-muted-foreground: rgba(255, 255, 255, 0.12)\n" - }, - "$:/palettes/Twilight": { - "title": "$:/palettes/Twilight", - "tags": "$:/tags/Palette", - "author": "Thomas Elmiger", - "type": "application/x-tiddler-dictionary", - "name": "Twilight", - "description": "Delightful, soft darkness.", - "text": "alert-background: rgb(255, 255, 102)\nalert-border: rgb(232, 232, 125)\nalert-highlight: rgb(255, 51, 51)\nalert-muted-foreground: rgb(224, 82, 82)\nbackground: rgb(38, 38, 38)\nblockquote-bar: rgba(240, 196, 117, 0.7)\nbutton-background: rgb(63, 63, 63)\nbutton-border: rgb(127, 127, 127)\nbutton-foreground: rgb(179, 179, 179)\ncode-background: rgba(0,0,0,0.03)\ncode-border: rgba(0,0,0,0.08)\ncode-foreground: rgb(255, 94, 94)\ndiff-delete-background: #ffc9c9\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #aaefad\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: rgb(255, 94, 94)\ndownload-background: #19a974\ndownload-foreground: rgb(38, 38, 38)\ndragger-background: rgb(179, 179, 179)\ndragger-foreground: rgb(38, 38, 38)\ndropdown-background: rgb(38, 38, 38)\ndropdown-border: rgb(255, 255, 255)\ndropdown-tab-background: rgba(0,0,0,.1)\ndropdown-tab-background-selected: rgba(255,255,255,1)\ndropzone-background: #9eebcf\nexternal-link-background: inherit\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-foreground: rgb(179, 179, 255)\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: rgb(153, 153, 255)\nforeground: rgb(179, 179, 179)\nmessage-background: <<colour tag-foreground>>\nmessage-border: #96ccff\nmessage-foreground: <<colour tag-background>>\nmodal-backdrop: rgb(179, 179, 179)\nmodal-background: rgb(38, 38, 38)\nmodal-border: rgba(0,0,0,.5)\nmodal-footer-background: #f4f4f4\nmodal-footer-border: rgba(0,0,0,.1)\nmodal-header-border: rgba(0,0,0,.2)\nmuted-foreground: rgb(255, 255, 255)\nnotification-background: <<colour tag-foreground>>\nnotification-border: <<colour tag-background>>\npage-background: rgb(26, 26, 26)\npre-background: rgb(25, 25, 25)\npre-border: rgba(0,0,0,.2)\nprimary: rgb(255, 201, 102)\nselect-tag-background: \nselect-tag-foreground: \nsidebar-button-foreground: rgb(179, 179, 179)\nsidebar-controls-foreground: rgb(153, 153, 153)\nsidebar-controls-foreground-hover: <<colour tiddler-controls-foreground-hover>>\nsidebar-foreground: rgb(141, 141, 141)\nsidebar-foreground-shadow: transparent\nsidebar-muted-foreground: rgba(0, 0, 0, 0.5)\nsidebar-muted-foreground-hover: rgb(141, 141, 141)\nsidebar-tab-background: rgba(141, 141, 141, 0.2)\nsidebar-tab-background-selected: rgb(26, 26, 26)\nsidebar-tab-border: rgb(127, 127, 127)\nsidebar-tab-border-selected: rgb(127, 127, 127)\nsidebar-tab-divider: rgb(127, 127, 127)\nsidebar-tab-foreground: rgb(179, 179, 179)\nsidebar-tab-foreground-selected: rgb(179, 179, 179)\nsidebar-tiddler-link-foreground: rgb(179, 179, 179)\nsidebar-tiddler-link-foreground-hover: rgb(115, 115, 115)\nsite-title-foreground: rgb(255, 201, 102)\nstatic-alert-foreground: rgba(0,0,0,.3)\ntab-background: rgba(0,0,0,0.125)\ntab-background-selected: rgb(38, 38, 38)\ntab-border: rgb(255, 201, 102)\ntab-border-selected: rgb(255, 201, 102)\ntab-divider: rgb(255, 201, 102)\ntab-foreground: rgb(179, 179, 179)\ntab-foreground-selected: rgb(179, 179, 179)\ntable-border: rgba(255,255,255,.3)\ntable-footer-background: rgba(0,0,0,.4)\ntable-header-background: rgba(0,0,0,.1)\ntag-background: rgb(255, 201, 102)\ntag-foreground: rgb(25, 25, 25)\ntiddler-background: rgb(38, 38, 38)\ntiddler-border: rgba(240, 196, 117, 0.7)\ntiddler-controls-foreground: rgb(128, 128, 128)\ntiddler-controls-foreground-hover: rgba(255, 255, 255, 0.8)\ntiddler-controls-foreground-selected: rgba(255, 255, 255, 0.9)\ntiddler-editor-background: rgb(33, 33, 33)\ntiddler-editor-border: rgb(63, 63, 63)\ntiddler-editor-border-image: rgb(25, 25, 25)\ntiddler-editor-fields-even: rgb(33, 33, 33)\ntiddler-editor-fields-odd: rgb(28, 28, 28)\ntiddler-info-background: rgb(43, 43, 43)\ntiddler-info-border: rgb(25, 25, 25)\ntiddler-info-tab-background: rgb(43, 43, 43)\ntiddler-link-background: rgb(38, 38, 38)\ntiddler-link-foreground: rgb(204, 204, 255)\ntiddler-subtitle-foreground: rgb(255, 255, 255)\ntiddler-title-foreground: rgb(255, 192, 76)\ntoolbar-cancel-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-done-button: \ntoolbar-edit-button: \ntoolbar-info-button: \ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \nuntagged-background: rgb(255, 255, 255)\nvery-muted-foreground: rgba(240, 196, 117, 0.7)\n" - }, - "$:/palettes/Vanilla": { - "title": "$:/palettes/Vanilla", - "name": "Vanilla", - "description": "Pale and unobtrusive", - "tags": "$:/tags/Palette", - "type": "application/x-tiddler-dictionary", - "text": "alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndiff-delete-background: #ffc9c9\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #aaefad\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #999999\nmodal-footer-background: #f5f5f5\nmodal-footer-border: #dddddd\nmodal-header-border: #eeeeee\nmuted-foreground: #bbb\nnotification-background: #ffffdd\nnotification-border: #999999\npage-background: #f4f4f4\npre-background: #f5f5f5\npre-border: #cccccc\nprimary: #5778d8\nselection-background:\nselection-foreground:\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\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: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: #e4e4e4\nsidebar-tab-foreground-selected:\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #999999\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ec6\ntag-foreground: #ffffff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #c0c0c0\ntiddler-title-foreground: #182955\ntoolbar-new-button:\ntoolbar-options-button:\ntoolbar-save-button:\ntoolbar-info-button:\ntoolbar-edit-button:\ntoolbar-close-button:\ntoolbar-delete-button:\ntoolbar-cancel-button:\ntoolbar-done-button:\nuntagged-background: #999999\nvery-muted-foreground: #888888\nwikilist-background: #e5e5e5\nwikilist-item: #fff\nwikilist-info: #000\nwikilist-title: #666\nwikilist-title-svg: <<colour wikilist-title>>\nwikilist-url: #aaa\nwikilist-button-open: #4fb82b\nwikilist-button-open-hover: green\nwikilist-button-reveal: #5778d8\nwikilist-button-reveal-hover: blue\nwikilist-button-remove: #d85778\nwikilist-button-remove-hover: red\nwikilist-toolbar-background: #d3d3d3\nwikilist-toolbar-foreground: #888\nwikilist-droplink-dragover: rgba(255,192,192,0.5)\nwikilist-button-background: #acacac\nwikilist-button-foreground: #000\n" - }, - "$:/core/readme": { - "title": "$:/core/readme", - "text": "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" - }, - "$:/library/sjcl.js/license": { - "title": "$:/library/sjcl.js/license", - "type": "text/plain", - "text": "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 \"AS\nIS\" 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" - }, - "$:/core/templates/MOTW.html": { - "title": "$:/core/templates/MOTW.html", - "text": "\\rules only filteredtranscludeinline transcludeinline entity\n<!-- The following comment is called a MOTW comment and is necessary for the TiddlyIE Internet Explorer extension -->\n<!-- saved from url=(0021)https://tiddlywiki.com --> " - }, - "$:/core/templates/alltiddlers.template.html": { - "title": "$:/core/templates/alltiddlers.template.html", - "type": "text/vnd.tiddlywiki-html", - "text": "<!-- This template is provided for backwards compatibility with older versions of TiddlyWiki -->\n\n<$set name=\"exportFilter\" value=\"[!is[system]sort[title]]\">\n\n{{$:/core/templates/exporters/StaticRiver}}\n\n</$set>\n" - }, - "$:/core/templates/canonical-uri-external-image": { - "title": "$:/core/templates/canonical-uri-external-image", - "text": "<!--\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-->\n./images/<$view field=\"title\" format=\"doubleurlencoded\"/>" - }, - "$:/core/templates/canonical-uri-external-raw": { - "title": "$:/core/templates/canonical-uri-external-raw", - "text": "<!--\n\nThis template is used to assign the ''_canonical_uri'' field to external raw files that are stored in the same directory\n\n-->\n<$view field=\"title\" format=\"doubleurlencoded\"/>" - }, - "$:/core/templates/canonical-uri-external-text": { - "title": "$:/core/templates/canonical-uri-external-text", - "text": "<!--\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-->\n./text/<$view field=\"title\" format=\"doubleurlencoded\"/>.tid" - }, - "$:/core/templates/css-tiddler": { - "title": "$:/core/templates/css-tiddler", - "text": "<!--\n\nThis template is used for saving CSS tiddlers as a style tag with data attributes representing the tiddler fields.\n\n-->`<style`<$fields template=' data-tiddler-$name$=\"$encoded_value$\"'></$fields>` type=\"text/css\">`<$view field=\"text\" format=\"text\" />`</style>`" - }, - "$:/core/templates/exporters/CsvFile": { - "title": "$:/core/templates/exporters/CsvFile", - "tags": "$:/tags/Exporter", - "description": "{{$:/language/Exporters/CsvFile}}", - "extension": ".csv", - "text": "<$macrocall $name=\"csvtiddlers\" filter=<<exportFilter>> format=\"quoted-comma-sep\" $output=\"text/raw\"/>\n" - }, - "$:/core/templates/exporters/JsonFile": { - "title": "$:/core/templates/exporters/JsonFile", - "tags": "$:/tags/Exporter", - "description": "{{$:/language/Exporters/JsonFile}}", - "extension": ".json", - "text": "<$macrocall $name=\"jsontiddlers\" filter=<<exportFilter>> $output=\"text/raw\"/>\n" - }, - "$:/core/templates/exporters/StaticRiver": { - "title": "$:/core/templates/exporters/StaticRiver", - "tags": "$:/tags/Exporter", - "description": "{{$:/language/Exporters/StaticRiver}}", - "extension": ".html", - "text": "\\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<!doctype html>\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"{{$:/core/templates/version}}\" />\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>{{$:/core/wiki/title}}</title>\n<div id=\"styleArea\">\n{{$:/boot/boot.css||$:/core/templates/css-tiddler}}\n</div>\n<style type=\"text/css\">\n{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}\n</style>\n</head>\n<body class=\"tc-body\">\n{{$:/StaticBanner||$:/core/templates/html-tiddler}}\n<section class=\"tc-story-river tc-static-story-river\">\n{{$:/core/templates/exporters/StaticRiver/Content||$:/core/templates/html-tiddler}}\n</section>\n</body>\n</html>\n" - }, - "$:/core/templates/exporters/StaticRiver/Content": { - "title": "$:/core/templates/exporters/StaticRiver/Content", - "text": "\\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<<renderContent>>\n" - }, - "$:/core/templates/exporters/TidFile": { - "title": "$:/core/templates/exporters/TidFile", - "tags": "$:/tags/Exporter", - "description": "{{$:/language/Exporters/TidFile}}", - "extension": ".tid", - "condition": "[<count>compare:lte[1]]", - "text": "\\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<<renderContent>>" - }, - "$:/core/save/all-external-js": { - "title": "$:/core/save/all-external-js", - "text": "\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[prefix[$:/temp/]] -[prefix[$:/HistoryList]] -[status[pending]plugin-type[import]] -[[$:/core]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$\n\\end\n{{$:/core/templates/tiddlywiki5-external-js.html}}\n" - }, - "$:/core/templates/tiddlywiki5.js": { - "title": "$:/core/templates/tiddlywiki5.js", - "text": "\\rules only filteredtranscludeinline transcludeinline codeinline\n\n/*\n{{ $:/core/copyright.txt ||$:/core/templates/plain-text-tiddler}}\n`*/\n`<!--~~ Library modules ~~-->\n{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/plain-text-tiddler}}}\n<!--~~ Boot prefix ~~-->\n{{ $:/boot/bootprefix.js ||$:/core/templates/plain-text-tiddler}}\n<!--~~ Core plugin ~~-->\n{{$:/core/templates/tiddlywiki5.js/tiddlers}}\n<!--~~ Boot kernel ~~-->\n{{ $:/boot/boot.js ||$:/core/templates/plain-text-tiddler}}\n" - }, - "$:/core/templates/tiddlywiki5.js/tiddlers": { - "title": "$:/core/templates/tiddlywiki5.js/tiddlers", - "text": "`\n$tw.preloadTiddlerArray(`<$text text=<<jsontiddlers \"[[$:/core]]\">>/>`);\n`\n" - }, - "$:/core/templates/tiddlywiki5-external-js.html": { - "title": "$:/core/templates/tiddlywiki5-external-js.html", - "text": "\\rules only filteredtranscludeinline transcludeinline\n<!doctype html>\n{{$:/core/templates/MOTW.html}}<html lang=\"`<$text text={{{ [{$:/language}get[name]] }}}/>`\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<!--~~ Raw markup for the top of the head section ~~-->\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}}\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\"/>\n<meta name=\"application-name\" content=\"TiddlyWiki\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"{{$:/core/templates/version}}\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\" />\n<meta name=\"copyright\" content=\"{{$:/core/copyright.txt}}\" />\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>{{$:/core/wiki/title}}</title>\n<!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~-->\n\n<!--~~ Raw markup ~~-->\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</head>\n<body class=\"tc-body\">\n<!--~~ Raw markup for the top of the body section ~~-->\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}}\n<!--~~ Static styles ~~-->\n<div id=\"styleArea\">\n{{$:/boot/boot.css||$:/core/templates/css-tiddler}}\n</div>\n<!--~~ Static content for Google and browsers without JavaScript ~~-->\n<noscript>\n<div id=\"splashArea\">\n{{$:/core/templates/static.area}}\n</div>\n</noscript>\n<!--~~ Ordinary tiddlers ~~-->\n{{$:/core/templates/store.area.template.html}}\n<!--~~ Raw markup for the bottom of the body section ~~-->\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}}\n</body>\n<script src=\"%24%3A%2Fcore%2Ftemplates%2Ftiddlywiki5.js\" onerror=\"alert('Error: Cannot load tiddlywiki.js');\"></script>\n</html>\n" - }, - "$:/core/templates/html-div-skinny-tiddler": { - "title": "$:/core/templates/html-div-skinny-tiddler", - "text": "<!--\n\nThis template is a variant of $:/core/templates/html-div-tiddler used for saving skinny tiddlers (with no text field)\n\n-->`<div`<$fields template=' $name$=\"$encoded_value$\"'></$fields>`>\n<pre></pre>\n</div>`\n" - }, - "$:/core/templates/html-div-tiddler": { - "title": "$:/core/templates/html-div-tiddler", - "text": "<!--\n\nThis template is used for saving tiddlers as an HTML DIV tag with attributes representing the tiddler fields.\n\n-->`<div`<$fields template=' $name$=\"$encoded_value$\"'></$fields>`>\n<pre>`<$view field=\"text\" format=\"htmlencoded\" />`</pre>\n</div>`\n" - }, - "$:/core/templates/html-tiddler": { - "title": "$:/core/templates/html-tiddler", - "text": "<!--\n\nThis template is used for saving tiddlers as raw HTML\n\n--><$view field=\"text\" format=\"htmlwikified\" />" - }, - "$:/core/templates/javascript-tiddler": { - "title": "$:/core/templates/javascript-tiddler", - "text": "<!--\n\nThis template is used for saving JavaScript tiddlers as a script tag with data attributes representing the tiddler fields.\n\n-->`<script`<$fields template=' data-tiddler-$name$=\"$encoded_value$\"'></$fields>` type=\"text/javascript\">`<$view field=\"text\" format=\"text\" />`</script>`" - }, - "$:/core/templates/json-tiddler": { - "title": "$:/core/templates/json-tiddler", - "text": "<!--\n\nThis template is used for saving tiddlers as raw JSON\n\n--><$text text=<<jsontiddler>>/>" - }, - "$:/core/templates/module-tiddler": { - "title": "$:/core/templates/module-tiddler", - "text": "<!--\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-->`<script`<$fields template=' data-tiddler-$name$=\"$encoded_value$\"'></$fields>` type=\"text/javascript\" data-module=\"yes\">$tw.modules.define(\"`<$view field=\"title\" format=\"jsencoded\" />`\",\"`<$view field=\"module-type\" format=\"jsencoded\" />`\",function(module,exports,require) {`<$view field=\"text\" format=\"text\" />`});\n</script>`" - }, - "$:/core/templates/plain-text-tiddler": { - "title": "$:/core/templates/plain-text-tiddler", - "text": "<$view field=\"text\" format=\"text\" />" - }, - "$:/core/templates/raw-static-tiddler": { - "title": "$:/core/templates/raw-static-tiddler", - "text": "<!--\n\nThis template is used for saving tiddlers as static HTML\n\n--><$view field=\"text\" format=\"plainwikified\" />" - }, - "$:/core/save/all": { - "title": "$:/core/save/all", - "text": "\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[prefix[$:/temp/]] -[prefix[$:/HistoryList]] -[status[pending]plugin-type[import]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$\n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n" - }, - "$:/core/save/empty": { - "title": "$:/core/save/empty", - "text": "\\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" - }, - "$:/core/save/lazy-all": { - "title": "$:/core/save/lazy-all", - "text": "\\define saveTiddlerFilter()\n[is[system]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] \n\\end\n\\define skinnySaveTiddlerFilter()\n[!is[system]]\n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n" - }, - "$:/core/save/lazy-images": { - "title": "$:/core/save/lazy-images", - "text": "\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[!is[system]is[image]] +[sort[title]] \n\\end\n\\define skinnySaveTiddlerFilter()\n[is[image]]\n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n" - }, - "$:/core/templates/server/static.sidebar.wikitext": { - "title": "$:/core/templates/server/static.sidebar.wikitext", - "text": "\\whitespace trim\n<div class=\"tc-sidebar-scrollable\" style=\"overflow: auto;\">\n<div class=\"tc-sidebar-header\">\n<h1 class=\"tc-site-title\">\n<$transclude tiddler=\"$:/SiteTitle\"/>\n</h1>\n<div class=\"tc-site-subtitle\">\n<$transclude tiddler=\"$:/SiteSubtitle\"/>\n</div>\n<h2>\n</h2>\n<div class=\"tc-sidebar-lists\">\n<$list filter={{$:/DefaultTiddlers}}>\n<div class=\"tc-menu-list-subitem\">\n<$link><$text text=<<currentTiddler>>/></$link>\n</div>\n</$list>\n</div>\n<!-- Currently disabled the recent list as it is unweildy when the responsive narrow view kicks in\n<h2>\n{{$:/language/SideBar/Recent/Caption}}\n</h2>\n<div class=\"tc-sidebar-lists\">\n<$macrocall $name=\"timeline\" format={{$:/language/RecentChanges/DateFormat}}/>\n</div>\n</div>\n</div>\n-->\n" - }, - "$:/core/templates/server/static.tiddler.html": { - "title": "$:/core/templates/server/static.tiddler.html", - "text": "\\whitespace trim\n\\define tv-wikilink-template() $uri_encoded$\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content={{$:/core/templates/version}} />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<link rel=\"stylesheet\" href=\"%24%3A%2Fcore%2Ftemplates%2Fstatic.template.css\">\n<title><$view field=\"caption\" format=\"plainwikified\"><$view field=\"title\"/></$view>: <$view tiddler=\"$:/core/wiki/title\" format=\"plainwikified\"/></title>\n</head>\n<body class=\"tc-body\">\n<$transclude tiddler=\"$:/core/templates/server/static.sidebar.wikitext\" mode=\"inline\"/>\n<section class=\"tc-story-river\">\n<div class=\"tc-tiddler-frame\">\n<$transclude tiddler=\"$:/core/templates/server/static.tiddler.wikitext\" mode=\"inline\"/>\n</div>\n</section>\n</body>\n</html>" - }, - "$:/core/templates/server/static.tiddler.wikitext": { - "title": "$:/core/templates/server/static.tiddler.wikitext", - "text": "\\whitespace trim\n<div class=\"tc-tiddler-title\">\n<div class=\"tc-titlebar\">\n<h2><$text text=<<currentTiddler>>/></h2>\n</div>\n</div>\n<div class=\"tc-subtitle\">\n<$link to={{!!modifier}}>\n<$view field=\"modifier\"/>\n</$link> <$view field=\"modified\" format=\"date\" template={{$:/language/Tiddler/DateFormat}}/>\n</div>\n<div class=\"tc-tags-wrapper\">\n<$list filter=\"[all[current]tags[]sort[title]]\">\n<a href={{{ [<currentTiddler>encodeuricomponent[]] }}}>\n<$macrocall $name=\"tag-pill\" tag=<<currentTiddler>>/>\n</a>\n</$list>\n</div>\n<div class=\"tc-tiddler-body\">\n<$transclude mode=\"block\"/>\n</div>\n" - }, - "$:/core/templates/single.tiddler.window": { - "title": "$:/core/templates/single.tiddler.window", - "text": "\\whitespace trim\n\\define containerClasses()\ntc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$\n\\end\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n<$vars\n\ttv-config-toolbar-icons={{$:/config/Toolbar/Icons}}\n\ttv-config-toolbar-text={{$:/config/Toolbar/Text}}\n\ttv-config-toolbar-class={{$:/config/Toolbar/ButtonClass}}\n\ttv-show-missing-links={{$:/config/MissingLinks}}\n\tstoryviewTitle={{$:/view}}\n\tlanguageTitle={{{ [{$:/language}get[name]] }}}>\n\n<div class=<<containerClasses>>>\n\n<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\">\n\n<$transclude mode=\"block\"/>\n\n</$navigator>\n\n</div>\n\n</$vars>\n" - }, - "$:/core/templates/split-recipe": { - "title": "$:/core/templates/split-recipe", - "text": "<$list filter=\"[!is[system]]\">\ntiddler: <$view field=\"title\" format=\"urlencoded\"/>.tid\n</$list>\n" - }, - "$:/core/templates/static-tiddler": { - "title": "$:/core/templates/static-tiddler", - "text": "<a name=<<currentTiddler>>>\n<$transclude tiddler=\"$:/core/ui/ViewTemplate\"/>\n</a>" - }, - "$:/core/templates/static.area": { - "title": "$:/core/templates/static.area", - "text": "<$reveal type=\"nomatch\" state=\"$:/isEncrypted\" text=\"yes\">\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</$reveal>\n<$reveal type=\"match\" state=\"$:/isEncrypted\" text=\"yes\">\nThis file contains an encrypted ~TiddlyWiki. Enable ~JavaScript and enter the decryption password when prompted.\n</$reveal>\n<!-- ensure splash screen isn't shown when JS is disabled -->\n`<style>\n.tc-remove-when-wiki-loaded {display: none;}\n</style>`\n" - }, - "$:/core/templates/static.content": { - "title": "$:/core/templates/static.content", - "text": "<!-- For Google, and people without JavaScript-->\nThis [[TiddlyWiki|https://tiddlywiki.com]] contains the following tiddlers:\n\n<ul>\n<$list filter=<<saveTiddlerFilter>>>\n<li><$view field=\"title\" format=\"text\"></$view></li>\n</$list>\n</ul>\n" - }, - "$:/core/templates/static.template.css": { - "title": "$:/core/templates/static.template.css", - "text": "{{$:/boot/boot.css||$:/core/templates/plain-text-tiddler}}\n\n{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}\n" - }, - "$:/core/templates/static.template.html": { - "title": "$:/core/templates/static.template.html", - "type": "text/vnd.tiddlywiki-html", - "text": "\\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<!doctype html>\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"{{$:/core/templates/version}}\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>{{$:/core/wiki/title}}</title>\n<div id=\"styleArea\">\n{{$:/boot/boot.css||$:/core/templates/css-tiddler}}\n</div>\n<style type=\"text/css\">\n{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}\n</style>\n</head>\n<body class=\"tc-body\">\n{{$:/StaticBanner||$:/core/templates/html-tiddler}}\n{{$:/core/ui/PageTemplate||$:/core/templates/html-tiddler}}\n</body>\n</html>\n" - }, - "$:/core/templates/static.tiddler.html": { - "title": "$:/core/templates/static.tiddler.html", - "text": "\\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`<!doctype html>\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"`{{$:/core/templates/version}}`\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<link rel=\"stylesheet\" href=\"static.css\">\n<title>`<$view field=\"caption\"><$view field=\"title\"/></$view>: {{$:/core/wiki/title}}`</title>\n</head>\n<body class=\"tc-body\">\n`{{$:/StaticBanner||$:/core/templates/html-tiddler}}`\n<section class=\"tc-story-river tc-static-story-river\">\n`<$view tiddler=\"$:/core/ui/ViewTemplate\" format=\"htmlwikified\"/>`\n</section>\n</body>\n</html>\n`\n" - }, - "$:/core/templates/store.area.template.html": { - "title": "$:/core/templates/store.area.template.html", - "text": "<$reveal type=\"nomatch\" state=\"$:/isEncrypted\" text=\"yes\">\n`<div id=\"storeArea\" style=\"display:none;\">`\n<$list filter=<<saveTiddlerFilter>> template=\"$:/core/templates/html-div-tiddler\"/>\n<$list filter={{{ [<skinnySaveTiddlerFilter>] }}} template=\"$:/core/templates/html-div-skinny-tiddler\"/>\n`</div>`\n</$reveal>\n<$reveal type=\"match\" state=\"$:/isEncrypted\" text=\"yes\">\n`<!--~~ Encrypted tiddlers ~~-->`\n`<pre id=\"encryptedStoreArea\" type=\"text/plain\" style=\"display:none;\">`\n<$encrypt filter=<<saveTiddlerFilter>>/>\n`</pre>`\n</$reveal>" - }, - "$:/core/templates/tid-tiddler": { - "title": "$:/core/templates/tid-tiddler", - "text": "<!--\n\nThis template is used for saving tiddlers in TiddlyWeb *.tid format\n\n--><$fields exclude='text bag' template='$name$: $value$\n'></$fields>`\n`<$view field=\"text\" format=\"text\" />" - }, - "$:/core/templates/tiddler-metadata": { - "title": "$:/core/templates/tiddler-metadata", - "text": "<!--\n\nThis template is used for saving tiddler metadata *.meta files\n\n--><$fields exclude='text bag' template='$name$: $value$\n'></$fields>" - }, - "$:/core/templates/tiddlywiki5.html": { - "title": "$:/core/templates/tiddlywiki5.html", - "text": "<$set name=\"saveTiddlerAndShadowsFilter\" filter=\"[subfilter<saveTiddlerFilter>] [subfilter<saveTiddlerFilter>plugintiddlers[]]\">\n`<!doctype html>\n`{{$:/core/templates/MOTW.html}}`<html lang=\"`<$text text={{{ [{$:/language}get[name]] }}}/>`\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<!--~~ Raw markup for the top of the head section ~~-->\n`{{{ [<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}}`\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\"/>\n<meta name=\"application-name\" content=\"TiddlyWiki\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"`{{$:/core/templates/version}}`\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\" />\n<meta name=\"copyright\" content=\"`{{$:/core/copyright.txt}}`\" />\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>`{{$:/core/wiki/title}}`</title>\n<!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~-->\n\n<!--~~ Raw markup ~~-->\n`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/core/wiki/rawmarkup]] ||$:/core/templates/plain-text-tiddler}}}\n{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkup]] ||$:/core/templates/plain-text-tiddler}}}\n{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified]] ||$:/core/templates/raw-static-tiddler}}}`\n</head>\n<body class=\"tc-body\">\n<!--~~ Raw markup for the top of the body section ~~-->\n`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}}`\n<!--~~ Static styles ~~-->\n<div id=\"styleArea\">\n`{{$:/boot/boot.css||$:/core/templates/css-tiddler}}`\n</div>\n<!--~~ Static content for Google and browsers without JavaScript ~~-->\n<noscript>\n<div id=\"splashArea\">\n`{{$:/core/templates/static.area}}`\n</div>\n</noscript>\n<!--~~ Ordinary tiddlers ~~-->\n`{{$:/core/templates/store.area.template.html}}`\n<!--~~ Library modules ~~-->\n<div id=\"libraryModules\" style=\"display:none;\">\n`{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/javascript-tiddler}}}`\n</div>\n<!--~~ Boot kernel prologue ~~-->\n<div id=\"bootKernelPrefix\" style=\"display:none;\">\n`{{ $:/boot/bootprefix.js ||$:/core/templates/javascript-tiddler}}`\n</div>\n<!--~~ Boot kernel ~~-->\n<div id=\"bootKernel\" style=\"display:none;\">\n`{{ $:/boot/boot.js ||$:/core/templates/javascript-tiddler}}`\n</div>\n<!--~~ Raw markup for the bottom of the body section ~~-->\n`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}}`\n</body>\n</html>`\n" - }, - "$:/core/templates/version": { - "title": "$:/core/templates/version", - "text": "<<version>>" - }, - "$:/core/templates/wikified-tiddler": { - "title": "$:/core/templates/wikified-tiddler", - "text": "<$transclude />" - }, - "$:/core/ui/AboveStory/tw2-plugin-check": { - "title": "$:/core/ui/AboveStory/tw2-plugin-check", - "tags": "$:/tags/AboveStory", - "text": "\\define lingo-base() $:/language/AboveStory/ClassicPlugin/\n<$list filter=\"[all[system+tiddlers]tag[systemConfig]limit[1]]\">\n\n<div class=\"tc-message-box\">\n\n<<lingo Warning>>\n\n<ul>\n\n<$list filter=\"[all[system+tiddlers]tag[systemConfig]]\">\n\n<li>\n\n<$link><$view field=\"title\"/></$link>\n\n</li>\n\n</$list>\n\n</ul>\n\n</div>\n\n</$list>\n" - }, - "$:/core/ui/Actions/new-image": { - "title": "$:/core/ui/Actions/new-image", - "tags": "$:/tags/Actions", - "description": "create a new image tiddler", - "text": "\\define get-type()\nimage/$(imageType)$\n\\end\n\\define get-tags() $(textFieldTags)$ $(tagsFieldTags)$\n<$vars imageType={{$:/config/NewImageType}} textFieldTags={{$:/config/NewJournal/Tags}} tagsFieldTags={{$:/config/NewJournal/Tags!!tags}}>\n<$action-sendmessage $message=\"tm-new-tiddler\" type=<<get-type>> tags=<<get-tags>>/>\n</$vars>\n" - }, - "$:/core/ui/Actions/new-journal": { - "title": "$:/core/ui/Actions/new-journal", - "tags": "$:/tags/Actions", - "description": "create a new journal tiddler", - "text": "\\define get-tags() $(textFieldTags)$ $(tagsFieldTags)$\n<$vars journalTitleTemplate={{$:/config/NewJournal/Title}} textFieldTags={{$:/config/NewJournal/Tags}} tagsFieldTags={{$:/config/NewJournal/Tags!!tags}} journalText={{$:/config/NewJournal/Text}}>\n<$wikify name=\"journalTitle\" text=\"\"\"<$macrocall $name=\"now\" format=<<journalTitleTemplate>>/>\"\"\">\n<$reveal type=\"nomatch\" state=<<journalTitle>> text=\"\">\n<$action-sendmessage $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<get-tags>> text={{{ [<journalTitle>get[]] }}}/>\n</$reveal>\n<$reveal type=\"match\" state=<<journalTitle>> text=\"\">\n<$action-sendmessage $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<get-tags>> text=<<journalText>>/>\n</$reveal>\n</$wikify>\n</$vars>\n" - }, - "$:/core/ui/Actions/new-tiddler": { - "title": "$:/core/ui/Actions/new-tiddler", - "tags": "$:/tags/Actions", - "description": "create a new empty tiddler", - "text": "\\define get-tags() $(textFieldTags)$ $(tagsFieldTags)$\n<$vars textFieldTags={{$:/config/NewTiddler/Tags}} tagsFieldTags={{$:/config/NewTiddler/Tags!!tags}}>\n<$action-sendmessage $message=\"tm-new-tiddler\" tags=<<get-tags>>/>\n</$vars>\n" - }, - "$:/core/ui/AdvancedSearch/Filter": { - "title": "$:/core/ui/AdvancedSearch/Filter", - "tags": "$:/tags/AdvancedSearch", - "caption": "{{$:/language/Search/Filter/Caption}}", - "text": "\\define lingo-base() $:/language/Search/\n\\define set-next-input-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab--1498284803\" tag=\"$:/tags/AdvancedSearch\" beforeafter=\"$beforeafter$\" defaultState=\"$:/core/ui/AdvancedSearch/System\" actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define cancel-search-actions() <$list filter=\"[{$:/temp/advancedsearch/input}!match{$:/temp/advancedsearch}]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\" />\"\"\"><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text={{$:/temp/advancedsearch}}/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/></$list>\n\n\\define input-accept-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\"\"\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\n\n\\define input-accept-variant-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\"\"\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\n\n<<lingo Filter/Hint>>\n\n<div class=\"tc-search tc-advanced-search\">\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">>>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=\"$:/temp/advancedsearch/input\" storeTitle=\"$:/temp/advancedsearch\" \n\t\trefreshTitle=\"$:/temp/advancedsearch/refresh\" selectionStateTitle=\"$:/temp/advancedsearch/selected-item\" type=\"search\" \n\t\ttag=\"input\" focus={{$:/config/Search/AutoFocus}} configTiddlerFilter=\"[[$:/temp/advancedsearch]]\" firstSearchFilterField=\"text\" \n\t\tinputAcceptActions=<<input-accept-actions>> inputAcceptVariantActions=<<input-accept-variant-actions>> \n\t\tinputCancelActions=<<cancel-search-actions>>/>\n</$keyboard>\n</$keyboard>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch/FilterButton]!has[draft.of]]\"><$transclude/></$list>\n</div>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$set name=\"resultCount\" value=\"\"\"<$count filter={{$:/temp/advancedsearch}}/>\"\"\">\n<div class=\"tc-search-results\">\n<<lingo Filter/Matches>>\n<$list filter={{$:/temp/advancedsearch}}>\n<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}>\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</span>\n</$list>\n</div>\n</$set>\n</$reveal>\n" - }, - "$:/core/ui/AdvancedSearch/Filter/FilterButtons/clear": { - "title": "$:/core/ui/AdvancedSearch/Filter/FilterButtons/clear", - "tags": "$:/tags/AdvancedSearch/FilterButton", - "text": "<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<<cancel-search-actions>>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\".tc-advanced-search input\"\"\" />\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n" - }, - "$:/core/ui/AdvancedSearch/Filter/FilterButtons/delete": { - "title": "$:/core/ui/AdvancedSearch/Filter/FilterButtons/delete", - "tags": "$:/tags/AdvancedSearch/FilterButton", - "text": "<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button popup=<<qualify \"$:/state/filterDeleteDropdown\">> class=\"tc-btn-invisible\">\n{{$:/core/images/delete-button}}\n</$button>\n</$reveal>\n\n<$reveal state=<<qualify \"$:/state/filterDeleteDropdown\">> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n<div class=\"tc-block-dropdown-wrapper\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<div class=\"tc-dropdown-item-plain\">\n<$set name=\"resultCount\" value=\"\"\"<$count filter={{$:/temp/advancedsearch}}/>\"\"\">\nAre you sure you wish to delete <<resultCount>> tiddler(s)?\n</$set>\n</div>\n<div class=\"tc-dropdown-item-plain\">\n<$button class=\"tc-btn\">\n<$action-deletetiddler $filter={{$:/temp/advancedsearch}}/>\nDelete these tiddlers\n</$button>\n</div>\n</div>\n</div>\n</$reveal>\n" - }, - "$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown": { - "title": "$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown", - "tags": "$:/tags/AdvancedSearch/FilterButton", - "text": "<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/filterDropdown\">> class=\"tc-btn-invisible\">\n{{$:/core/images/down-arrow}}\n</$button>\n</span>\n\n<$reveal state=<<qualify \"$:/state/filterDropdown\">> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$linkcatcher actions=\"\"\"<$action-setfield $tiddler=\"$:/temp/advancedsearch\" text=<<navigateTo>>/><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text=<<navigateTo>>/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/><$action-sendmessage $message=\"tm-focus-selector\" $param='.tc-advanced-search input' />\"\"\">\n<div class=\"tc-block-dropdown-wrapper\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Filter]]\"><$link to={{!!filter}}><$transclude field=\"description\"/></$link>\n</$list>\n</div>\n</div>\n</$linkcatcher>\n</$set>\n</$reveal>\n" - }, - "$:/core/ui/AdvancedSearch/Filter/FilterButtons/export": { - "title": "$:/core/ui/AdvancedSearch/Filter/FilterButtons/export", - "tags": "$:/tags/AdvancedSearch/FilterButton", - "text": "<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$macrocall $name=\"exportButton\" exportFilter={{$:/temp/advancedsearch}} lingoBase=\"$:/language/Buttons/ExportTiddlers/\"/>\n</$reveal>\n" - }, - "$:/core/ui/AdvancedSearch/Shadows": { - "title": "$:/core/ui/AdvancedSearch/Shadows", - "tags": "$:/tags/AdvancedSearch", - "caption": "{{$:/language/Search/Shadows/Caption}}", - "first-search-filter": "[all[shadows]search<userInput>sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]]", - "text": "\\define lingo-base() $:/language/Search/\n\n\\define set-next-input-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab--1498284803\" tag=\"$:/tags/AdvancedSearch\" beforeafter=\"$beforeafter$\" defaultState=\"$:/core/ui/AdvancedSearch/System\" actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define cancel-search-actions() <$list filter=\"[{$:/temp/advancedsearch}!match{$:/temp/advancedsearch/input}]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\" />\"\"\"><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text={{$:/temp/advancedsearch}}/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/></$list><$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\".tc-advanced-search input\"\"\"/>\n\n\\define input-accept-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\"\"\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\n\n\\define input-accept-variant-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\"\"\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\n\n<<lingo Shadows/Hint>>\n\n<div class=\"tc-search\">\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">>>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=\"$:/temp/advancedsearch/input\" storeTitle=\"$:/temp/advancedsearch\"\n\t\trefreshTitle=\"$:/temp/advancedsearch/refresh\" selectionStateTitle=\"$:/temp/advancedsearch/selected-item\" type=\"search\"\n\t\ttag=\"input\" focus={{$:/config/Search/AutoFocus}} configTiddlerFilter=\"[[$:/core/ui/AdvancedSearch/Shadows]]\"\n\t\tinputCancelActions=<<cancel-search-actions>> inputAcceptActions=<<input-accept-actions>> \n\t\tinputAcceptVariantActions=<<input-accept-variant-actions>> filterMinLength={{$:/config/Search/MinLength}}/>\n</$keyboard>\n</$keyboard>\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<<cancel-search-actions>>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[all[shadows]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]]\"/>\"\"\">\n\n<div class=\"tc-search-results\">\n\n<<lingo Shadows/Matches>>\n\n<$list filter=\"[all[shadows]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]]\">\n<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}>\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</span>\n</$list>\n\n</div>\n\n</$set>\n\n</$list>\n\n</$reveal>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"match\" text=\"\">\n\n</$reveal>\n" - }, - "$:/core/ui/AdvancedSearch/Standard": { - "title": "$:/core/ui/AdvancedSearch/Standard", - "tags": "$:/tags/AdvancedSearch", - "caption": "{{$:/language/Search/Standard/Caption}}", - "text": "\\define lingo-base() $:/language/Search/\n\\define set-next-input-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab--1498284803\" tag=\"$:/tags/AdvancedSearch\" beforeafter=\"$beforeafter$\" defaultState=\"$:/core/ui/AdvancedSearch/System\" actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define next-search-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab/search-results/advancedsearch\" tag=\"$:/tags/SearchResults\" beforeafter=\"$beforeafter$\" defaultState={{$:/config/SearchResults/Default}} actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/standard/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define cancel-search-actions() <$list filter=\"[{$:/temp/advancedsearch}!match{$:/temp/advancedsearch/input}]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\" />\"\"\"><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text={{$:/temp/advancedsearch}}/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/></$list><$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\".tc-advanced-search input\"\"\"/>\n\n\\define input-accept-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\"\"\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\n\n\\define input-accept-variant-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\"\"\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\n\n<<lingo Standard/Hint>>\n\n<div class=\"tc-search\">\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">>>\n<$keyboard key=\"shift-alt-Right\" actions=<<next-search-tab>>>\n<$keyboard key=\"shift-alt-Left\" actions=<<next-search-tab \"before\">>>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=\"$:/temp/advancedsearch/input\" storeTitle=\"$:/temp/advancedsearch\"\n\t\trefreshTitle=\"$:/temp/advancedsearch/refresh\" selectionStateTitle=\"$:/temp/advancedsearch/selected-item\" type=\"search\"\n\t\ttag=\"input\" focus={{$:/config/Search/AutoFocus}} inputCancelActions=<<cancel-search-actions>> \n\t\tinputAcceptActions=<<input-accept-actions>> inputAcceptVariantActions=<<input-accept-variant-actions>> \n\t\tconfigTiddlerFilter=\"[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]\"\n\t\tfilterMinLength={{$:/config/Search/MinLength}}/>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<<cancel-search-actions>>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n<$vars userInput={{{ [[$:/temp/advancedsearch]get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}} searchListState=\"$:/temp/advancedsearch/selected-item\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\" emptyMessage=\"\"\"\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\">\n<$transclude/>\n</$list>\n\"\"\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\" default={{$:/config/SearchResults/Default}} actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/standard/currentTab\" text=<<currentTab>>/>\"\"\" explicitState=\"$:/state/tab/search-results/advancedsearch\" />\n</$list>\n</$vars>\n</$list>\n</$reveal>\n" - }, - "$:/core/ui/AdvancedSearch/System": { - "title": "$:/core/ui/AdvancedSearch/System", - "tags": "$:/tags/AdvancedSearch", - "caption": "{{$:/language/Search/System/Caption}}", - "first-search-filter": "[is[system]search<userInput>sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]", - "text": "\\define lingo-base() $:/language/Search/\n\\define set-next-input-tab(beforeafter:\"after\",stateTitle,tag,defaultState,currentTabTiddler) <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab--1498284803\" tag=\"$:/tags/AdvancedSearch\" beforeafter=\"$beforeafter$\" defaultState=\"$:/core/ui/AdvancedSearch/System\" actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define cancel-search-actions() <$list filter=\"[{$:/temp/advancedsearch}!match{$:/temp/advancedsearch/input}]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\" />\"\"\"><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text={{$:/temp/advancedsearch}}/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/></$list><$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\".tc-advanced-search input\"\"\"/>\n\n\\define input-accept-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\"\"\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\n\n\\define input-accept-variant-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\"\"\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\n\n<<lingo System/Hint>>\n\n<div class=\"tc-search\">\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">>>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=\"$:/temp/advancedsearch/input\" storeTitle=\"$:/temp/advancedsearch\"\n\t\trefreshTitle=\"$:/temp/advancedsearch/refresh\" selectionStateTitle=\"$:/temp/advancedsearch/selected-item\"\n\t\ttype=\"search\" tag=\"input\" focus={{$:/config/Search/AutoFocus}} configTiddlerFilter=\"[[$:/core/ui/AdvancedSearch/System]]\"\n\t\tinputCancelActions=<<cancel-search-actions>> inputAcceptActions=<<input-accept-actions>> \n\t\tinputAcceptVariantActions=<<input-accept-variant-actions>> filterMinLength={{$:/config/Search/MinLength}}/>\n</$keyboard>\n</$keyboard>\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<<cancel-search-actions>>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]\"/>\"\"\">\n\n<div class=\"tc-search-results\">\n\n<<lingo System/Matches>>\n\n<$list filter=\"[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]\">\n<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}>\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</span>\n</$list>\n\n</div>\n\n</$set>\n\n</$list>\n\n</$reveal>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"match\" text=\"\">\n\n</$reveal>\n" - }, - "$:/AdvancedSearch": { - "title": "$:/AdvancedSearch", - "icon": "$:/core/images/advanced-search-button", - "color": "#bbb", - "text": "<div class=\"tc-advanced-search\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch]!has[draft.of]]\" default=\"$:/core/ui/AdvancedSearch/System\" actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/currentTab\" text=<<currentTab>>/>\"\"\" explicitState=\"$:/state/tab--1498284803\"/>\n</div>\n" - }, - "$:/core/ui/AlertTemplate": { - "title": "$:/core/ui/AlertTemplate", - "text": "<div class=\"tc-alert\">\n<div class=\"tc-alert-toolbar\">\n<$button class=\"tc-btn-invisible\"><$action-deletetiddler $tiddler=<<currentTiddler>>/>{{$:/core/images/cancel-button}}</$button>\n</div>\n<div class=\"tc-alert-subtitle\">\n<$wikify name=\"format\" text=<<lingo Tiddler/DateFormat>>>\n<$view field=\"component\"/> - <$view field=\"modified\" format=\"date\" template=<<format>>/> <$reveal type=\"nomatch\" state=\"!!count\" text=\"\"><span class=\"tc-alert-highlight\">({{$:/language/Count}}: <$view field=\"count\"/>)</span></$reveal>\n</$wikify>\n</div>\n<div class=\"tc-alert-body\">\n\n<$transclude/>\n\n</div>\n</div>\n" - }, - "$:/core/ui/BinaryWarning": { - "title": "$:/core/ui/BinaryWarning", - "text": "\\define lingo-base() $:/language/BinaryWarning/\n<<lingo Prompt>>\n" - }, - "$:/core/ui/Components/plugin-info": { - "title": "$:/core/ui/Components/plugin-info", - "text": "\\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<div class=\"tc-plugin-info-chunk tc-plugin-info-toggle\">\n<$reveal type=\"nomatch\" state=<<popup-state>> text=\"yes\" default=\"\"\"$default-popup-state$\"\"\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"yes\">\n{{$:/core/images/chevron-right}}\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<popup-state>> text=\"yes\" default=\"\"\"$default-popup-state$\"\"\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"no\">\n{{$:/core/images/chevron-down}}\n</$button>\n</$reveal>\n</div>\n<div class=\"tc-plugin-info-chunk tc-plugin-info-icon\">\n<$transclude tiddler=<<currentTiddler>> subtiddler=<<plugin-icon-title>>>\n<$transclude tiddler=\"$:/core/images/plugin-generic-$type$\"/>\n</$transclude>\n</div>\n<div class=\"tc-plugin-info-chunk tc-plugin-info-description\">\n<h1>\n''<$text text={{{ [<currentTiddler>get[name]] ~[<currentTiddler>split[/]last[1]] }}}/>'': <$view field=\"description\"><$view field=\"title\"/></$view> $disabledMessage$\n</h1>\n<h2>\n<$view field=\"title\"/>\n</h2>\n<h2>\n<div><em><$view field=\"version\"/></em></div>\n</h2>\n</div>\n\\end\n\n\\define plugin-info(type,default-popup-state)\n<$set name=\"popup-state\" value=<<popup-state-macro>>>\n<$reveal type=\"nomatch\" state=<<plugin-disable-title>> text=\"yes\">\n<$link to={{!!title}} class=\"tc-plugin-info\">\n<<plugin-table-body type:\"$type$\" default-popup-state:\"\"\"$default-popup-state$\"\"\">>\n</$link>\n</$reveal>\n<$reveal type=\"match\" state=<<plugin-disable-title>> text=\"yes\">\n<$link to={{!!title}} class=\"tc-plugin-info tc-plugin-info-disabled\">\n<<plugin-table-body type:\"$type$\" default-popup-state:\"\"\"$default-popup-state$\"\"\" disabledMessage:\"<$macrocall $name='lingo' title='Disabled/Status'/>\">>\n</$link>\n</$reveal>\n<$reveal type=\"match\" text=\"yes\" state=<<popup-state>> default=\"\"\"$default-popup-state$\"\"\">\n<div class=\"tc-plugin-info-dropdown\">\n<div class=\"tc-plugin-info-dropdown-body\">\n<$list filter=\"[all[current]] -[[$:/core]]\">\n<div style=\"float:right;\">\n<$reveal type=\"nomatch\" state=<<plugin-disable-title>> text=\"yes\">\n<$button set=<<plugin-disable-title>> setTo=\"yes\" tooltip={{$:/language/ControlPanel/Plugins/Disable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Disable/Caption}}>\n<<lingo Disable/Caption>>\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<plugin-disable-title>> text=\"yes\">\n<$button set=<<plugin-disable-title>> setTo=\"no\" tooltip={{$:/language/ControlPanel/Plugins/Enable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Enable/Caption}}>\n<<lingo Enable/Caption>>\n</$button>\n</$reveal>\n</div>\n</$list>\n<$set name=\"tabsList\" filter=\"[<currentTiddler>list[]] contents\">\n<$macrocall $name=\"tabs\" state=<<tabs-state-macro>> tabsList=<<tabsList>> default={{{ [enlist<tabsList>] }}} template=\"$:/core/ui/PluginInfo\"/>\n</$set>\n</div>\n</div>\n</$reveal>\n</$set>\n\\end\n\n<$macrocall $name=\"plugin-info\" type=<<plugin-type>> default-popup-state=<<default-popup-state>>/>\n" - }, - "$:/core/ui/Components/tag-link": { - "title": "$:/core/ui/Components/tag-link", - "text": "<$link>\n<$set name=\"backgroundColor\" value={{!!color}}>\n<span style=<<tag-styles>> class=\"tc-tag-label\">\n<$view field=\"title\" format=\"text\"/>\n</span>\n</$set>\n</$link>" - }, - "$:/core/ui/ControlPanel/Advanced": { - "title": "$:/core/ui/ControlPanel/Advanced", - "tags": "$:/tags/ControlPanel/Info", - "caption": "{{$:/language/ControlPanel/Advanced/Caption}}", - "text": "{{$:/language/ControlPanel/Advanced/Hint}}\n\n<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Advanced]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/TiddlerFields\" explicitState=\"$:/state/tab--959111941\"/>\n</div>\n" - }, - "$:/core/ui/ControlPanel/Appearance": { - "title": "$:/core/ui/ControlPanel/Appearance", - "tags": "$:/tags/ControlPanel", - "caption": "{{$:/language/ControlPanel/Appearance/Caption}}", - "text": "{{$:/language/ControlPanel/Appearance/Hint}}\n\n<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Appearance]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Theme\" explicitState=\"$:/state/tab--1963855381\"/>\n</div>\n" - }, - "$:/core/ui/ControlPanel/Basics": { - "title": "$:/core/ui/ControlPanel/Basics", - "tags": "$:/tags/ControlPanel/Info", - "caption": "{{$:/language/ControlPanel/Basics/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Basics/\n\n\\define show-filter-count(filter)\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" $value=\"\"\"$filter$\"\"\"/>\n<$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" $value=\"\"\"$filter$\"\"\"/>\n<$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/>\n<$action-setfield $tiddler=\"$:/state/tab--1498284803\" $value=\"$:/core/ui/AdvancedSearch/Filter\"/>\n<$action-navigate $to=\"$:/AdvancedSearch\"/>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=\".tc-advanced-search input\"/>\n''<$count filter=\"\"\"$filter$\"\"\"/>''\n{{$:/core/images/advanced-search-button}}\n</$button>\n\\end\n\n|<<lingo Version/Prompt>> |''<<version>>'' |\n|<$link to=\"$:/SiteTitle\"><<lingo Title/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteTitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/SiteSubtitle\"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteSubtitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/status/UserName\"><<lingo Username/Prompt>></$link> |<$edit-text tiddler=\"$:/status/UserName\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/config/AnimationDuration\"><<lingo AnimDuration/Prompt>></$link> |<$edit-text tiddler=\"$:/config/AnimationDuration\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/DefaultTiddlers\"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit tag=\"textarea\" tiddler=\"$:/DefaultTiddlers\" class=\"tc-edit-texteditor\"/><br>//<<lingo DefaultTiddlers/BottomHint>>// |\n|<$link to=\"$:/language/DefaultNewTiddlerTitle\"><<lingo NewTiddler/Title/Prompt>></$link> |<$edit-text tiddler=\"$:/language/DefaultNewTiddlerTitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/config/NewJournal/Title\"><<lingo NewJournal/Title/Prompt>></$link> |<$edit-text tiddler=\"$:/config/NewJournal/Title\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/config/NewJournal/Text\"><<lingo NewJournal/Text/Prompt>></$link> |<$edit tiddler=\"$:/config/NewJournal/Text\" tag=\"textarea\" class=\"tc-edit-texteditor\" default=\"\"/> |\n|<$link to=\"$:/config/NewTiddler/Tags\"><<lingo NewTiddler/Tags/Prompt>></$link> |<$vars currentTiddler=\"$:/config/NewTiddler/Tags\" tagField=\"text\">{{||$:/core/ui/EditTemplate/tags}}<$list filter=\"[<currentTiddler>tags[]] +[limit[1]]\" variable=\"ignore\"><$button tooltip={{$:/language/ControlPanel/Basics/RemoveTags/Hint}}><<lingo RemoveTags>><$action-listops $tiddler=<<currentTiddler>> $field=\"text\" $subfilter={{{ [<currentTiddler>get[tags]] }}}/><$action-setfield $tiddler=<<currentTiddler>> tags=\"\"/></$button></$list></$vars> |\n|<$link to=\"$:/config/NewJournal/Tags\"><<lingo NewJournal/Tags/Prompt>></$link> |<$vars currentTiddler=\"$:/config/NewJournal/Tags\" tagField=\"text\">{{||$:/core/ui/EditTemplate/tags}}<$list filter=\"[<currentTiddler>tags[]] +[limit[1]]\" variable=\"ignore\"><$button tooltip={{$:/language/ControlPanel/Basics/RemoveTags/Hint}}><<lingo RemoveTags>><$action-listops $tiddler=<<currentTiddler>> $field=\"text\" $subfilter={{{ [<currentTiddler>get[tags]] }}}/><$action-setfield $tiddler=<<currentTiddler>> tags=\"\"/></$button></$list></$vars> |\n|<$link to=\"$:/config/AutoFocus\"><<lingo AutoFocus/Prompt>></$link> |{{$:/snippets/minifocusswitcher}} |\n|<<lingo Language/Prompt>> |{{$:/snippets/minilanguageswitcher}} |\n|<<lingo Tiddlers/Prompt>> |<<show-filter-count \"[!is[system]sort[title]]\">> |\n|<<lingo Tags/Prompt>> |<<show-filter-count \"[tags[]sort[title]]\">> |\n|<<lingo SystemTiddlers/Prompt>> |<<show-filter-count \"[is[system]sort[title]]\">> |\n|<<lingo ShadowTiddlers/Prompt>> |<<show-filter-count \"[all[shadows]sort[title]]\">> |\n|<<lingo OverriddenShadowTiddlers/Prompt>> |<<show-filter-count \"[is[tiddler]is[shadow]sort[title]]\">> |\n" - }, - "$:/core/ui/ControlPanel/EditorTypes": { - "title": "$:/core/ui/ControlPanel/EditorTypes", - "tags": "$:/tags/ControlPanel/Advanced", - "caption": "{{$:/language/ControlPanel/EditorTypes/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/EditorTypes/\n\n<<lingo Hint>>\n\n<table>\n<tbody>\n<tr>\n<th><<lingo Type/Caption>></th>\n<th><<lingo Editor/Caption>></th>\n</tr>\n<$list filter=\"[all[shadows+tiddlers]prefix[$:/config/EditorTypeMappings/]sort[title]]\">\n<tr>\n<td>\n<$link>\n<$list filter=\"[all[current]removeprefix[$:/config/EditorTypeMappings/]]\">\n<$text text={{!!title}}/>\n</$list>\n</$link>\n</td>\n<td>\n<$view field=\"text\"/>\n</td>\n</tr>\n</$list>\n</tbody>\n</table>\n" - }, - "$:/core/ui/ControlPanel/Info": { - "title": "$:/core/ui/ControlPanel/Info", - "tags": "$:/tags/ControlPanel", - "caption": "{{$:/language/ControlPanel/Info/Caption}}", - "text": "{{$:/language/ControlPanel/Info/Hint}}\n\n<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Info]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Basics\" explicitState=\"$:/state/tab--2112689675\"/>\n</div>\n" - }, - "$:/core/ui/ControlPanel/KeyboardShortcuts": { - "title": "$:/core/ui/ControlPanel/KeyboardShortcuts", - "tags": "$:/tags/ControlPanel", - "caption": "{{$:/language/ControlPanel/KeyboardShortcuts/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/KeyboardShortcuts/\n\n\\define new-shortcut(title)\n<div class=\"tc-dropdown-item-plain\">\n<$edit-shortcut tiddler=\"$title$\" placeholder={{$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt}} focus=\"true\" style=\"width:auto;\"/> <$button>\n<<lingo Add/Caption>>\n<$action-listops\n\t$tiddler=\"$(shortcutTitle)$\"\n\t$field=\"text\"\n\t$subfilter=\"[{$title$}]\"\n/>\n<$action-deletetiddler\n\t$tiddler=\"$title$\"\n/>\n</$button>\n</div>\n\\end\n\n\\define shortcut-list-item(caption)\n<td>\n</td>\n<td style=\"text-align:right;font-size:0.7em;\">\n<<lingo Platform/$caption$>>\n</td>\n<td>\n<div style=\"position:relative;\">\n<$button popup=<<qualify \"$:/state/dropdown/$(shortcutTitle)$\">> class=\"tc-btn-invisible\">\n{{$:/core/images/edit-button}}\n</$button>\n<$macrocall $name=\"displayshortcuts\" $output=\"text/html\" shortcuts={{$(shortcutTitle)$}} prefix=\"<kbd>\" separator=\"</kbd> <kbd>\" suffix=\"</kbd>\"/>\n\n<$reveal state=<<qualify \"$:/state/dropdown/$(shortcutTitle)$\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-block-dropdown-wrapper\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown tc-popup-keep\">\n<$list filter=\"[list[$(shortcutTitle)$!!text]sort[title]]\" variable=\"shortcut\" emptyMessage=\"\"\"\n<div class=\"tc-dropdown-item-plain\">\n//<<lingo NoShortcuts/Caption>>//\n</div>\n\"\"\">\n<div class=\"tc-dropdown-item-plain\">\n<$button class=\"tc-btn-invisible\" tooltip={{$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint}}>\n<$action-listops\n\t$tiddler=\"$(shortcutTitle)$\"\n\t$field=\"text\"\n\t$subfilter=\"+[remove<shortcut>]\"\n/>\n<small>{{$:/core/images/close-button}}</small>\n</$button>\n<kbd>\n<$macrocall $name=\"displayshortcuts\" $output=\"text/html\" shortcuts=<<shortcut>>/>\n</kbd>\n</div>\n</$list>\n<hr/>\n<$macrocall $name=\"new-shortcut\" title=<<qualify \"$:/state/new-shortcut/$(shortcutTitle)$\">>/>\n</div>\n</div>\n</$reveal>\n</div>\n</td>\n\\end\n\n\\define shortcut-list(caption,prefix)\n<tr>\n<$list filter=\"[[$prefix$$(shortcutName)$]]\" variable=\"shortcutTitle\">\n<<shortcut-list-item \"$caption$\">>\n</$list>\n</tr>\n\\end\n\n\\define shortcut-editor()\n<<shortcut-list \"All\" \"$:/config/shortcuts/\">>\n<<shortcut-list \"Mac\" \"$:/config/shortcuts-mac/\">>\n<<shortcut-list \"NonMac\" \"$:/config/shortcuts-not-mac/\">>\n<<shortcut-list \"Linux\" \"$:/config/shortcuts-linux/\">>\n<<shortcut-list \"NonLinux\" \"$:/config/shortcuts-not-linux/\">>\n<<shortcut-list \"Windows\" \"$:/config/shortcuts-windows/\">>\n<<shortcut-list \"NonWindows\" \"$:/config/shortcuts-not-windows/\">>\n\\end\n\n\\define shortcut-preview()\n<$macrocall $name=\"displayshortcuts\" $output=\"text/html\" shortcuts={{$(shortcutPrefix)$$(shortcutName)$}} prefix=\"<kbd>\" separator=\"</kbd> <kbd>\" suffix=\"</kbd>\"/>\n\\end\n\n\\define shortcut-item-inner()\n<tr>\n<td>\n<$reveal type=\"nomatch\" state=<<dropdownStateTitle>> text=\"open\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield\n\t$tiddler=<<dropdownStateTitle>>\n\t$value=\"open\"\n/>\n{{$:/core/images/right-arrow}}\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<dropdownStateTitle>> text=\"open\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield\n\t$tiddler=<<dropdownStateTitle>>\n\t$value=\"close\"\n/>\n{{$:/core/images/down-arrow}}\n</$button>\n</$reveal>\n''<$text text=<<shortcutName>>/>''\n</td>\n<td>\n<$transclude tiddler=\"$:/config/ShortcutInfo/$(shortcutName)$\"/>\n</td>\n<td>\n<$list filter=\"$:/config/shortcuts/ $:/config/shortcuts-mac/ $:/config/shortcuts-not-mac/ $:/config/shortcuts-linux/ $:/config/shortcuts-not-linux/ $:/config/shortcuts-windows/ $:/config/shortcuts-not-windows/\" variable=\"shortcutPrefix\">\n<<shortcut-preview>>\n</$list>\n</td>\n</tr>\n<$set name=\"dropdownState\" value={{$(dropdownStateTitle)$}}>\n<$list filter=\"[<dropdownState>match[open]]\" variable=\"listItem\">\n<<shortcut-editor>>\n</$list>\n</$set>\n\\end\n\n\\define shortcut-item()\n<$set name=\"dropdownStateTitle\" value=<<qualify \"$:/state/dropdown/keyboardshortcut/$(shortcutName)$\">>>\n<<shortcut-item-inner>>\n</$set>\n\\end\n\n<table>\n<tbody>\n<$list filter=\"[all[shadows+tiddlers]removeprefix[$:/config/ShortcutInfo/]]\" variable=\"shortcutName\">\n<<shortcut-item>>\n</$list>\n</tbody>\n</table>\n" - }, - "$:/core/ui/ControlPanel/LoadedModules": { - "title": "$:/core/ui/ControlPanel/LoadedModules", - "tags": "$:/tags/ControlPanel/Advanced", - "caption": "{{$:/language/ControlPanel/LoadedModules/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/\n<<lingo LoadedModules/Hint>>\n\n{{$:/snippets/modules}}\n" - }, - "$:/core/ui/ControlPanel/Modals/AddPlugins": { - "title": "$:/core/ui/ControlPanel/Modals/AddPlugins", - "subtitle": "{{$:/core/images/download-button}} {{$:/language/ControlPanel/Plugins/Add/Caption}}", - "text": "\\define install-plugin-actions()\n<$action-sendmessage $message=\"tm-load-plugin-from-library\" url={{!!url}} title={{$(assetInfo)$!!original-title}}/>\n<$set name=\"url\" value={{!!url}}>\n<$set name=\"currentTiddler\" value=<<assetInfo>>>\n<$list filter=\"[enlist{!!dependents}] [{!!parent-plugin}] +[sort[name]]\" variable=\"dependency\">\n<$action-sendmessage $message=\"tm-load-plugin-from-library\" url=<<url>> title=<<dependency>>/>\n</$list>\n</$set>\n</$set>\n\\end\n\n\\define install-plugin-button()\n<div>\n<$set name=\"libraryVersion\" value={{{ [<assetInfo>get[version]] }}}>\n<$set name=\"installedVersion\" value={{{ [<assetInfo>get[original-title]get[version]] }}}>\n<$set name=\"reinstall-type\" value={{{ [<libraryVersion>compare:version:eq<installedVersion>then[tc-reinstall]] [<libraryVersion>compare:version:gt<installedVersion>then[tc-reinstall-upgrade]] [<libraryVersion>compare:version:lt<installedVersion>then[tc-reinstall-downgrade]] }}}>\n<$button actions=<<install-plugin-actions>> class={{{ [<assetInfo>get[original-title]has[version]then<reinstall-type>] tc-btn-invisible tc-install-plugin +[join[ ]] }}}>\n{{$:/core/images/download-button}}\n<$list filter=\"[<assetInfo>get[original-title]get[version]]\" variable=\"ignore\" emptyMessage=\"{{$:/language/ControlPanel/Plugins/Install/Caption}}\">\n<$list filter=\"[<libraryVersion>compare:version:gt<installedVersion>]\" variable=\"ignore\" emptyMessage=\"\"\"\n<$list filter=\"[<libraryVersion>compare:version:lt<installedVersion>]\" variable=\"ignore\" emptyMessage=\"{{$:/language/ControlPanel/Plugins/Reinstall/Caption}}\">\n{{$:/language/ControlPanel/Plugins/Downgrade/Caption}}\n</$list>\n\"\"\">\n{{$:/language/ControlPanel/Plugins/Update/Caption}}\n</$list>\n</$list>\n</$button>\n<div>\n</div>\n<$reveal stateTitle=<<assetInfo>> stateField=\"requires-reload\" type=\"match\" text=\"yes\">{{$:/language/ControlPanel/Plugins/PluginWillRequireReload}}</$reveal>\n</$set>\n</$set>\n</$set>\n</div>\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<$set name=\"popup-state\" value=<<popup-state-macro>>>\n<div class=\"tc-plugin-info\">\n<div class=\"tc-plugin-info-chunk tc-plugin-info-toggle\">\n<$reveal type=\"nomatch\" state=<<popup-state>> text=\"yes\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"yes\">\n{{$:/core/images/chevron-right}}\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<popup-state>> text=\"yes\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"no\">\n{{$:/core/images/chevron-down}}\n</$button>\n</$reveal>\n</div>\n<div class=\"tc-plugin-info-chunk tc-plugin-info-icon\">\n<$list filter=\"[<assetInfo>has[icon]]\" emptyMessage=\"\"\"<$transclude tiddler=\"$:/core/images/plugin-generic-$type$\"/>\"\"\">\n<img src={{$(assetInfo)$!!icon}}/>\n</$list>\n</div>\n<div class=\"tc-plugin-info-chunk tc-plugin-info-description\">\n<h1><strong><$text text={{{ [<assetInfo>get[name]] ~[<assetInfo>get[original-title]split[/]last[1]] }}}/></strong>: <$view tiddler=<<assetInfo>> field=\"description\"/></h1>\n<h2><$view tiddler=<<assetInfo>> field=\"original-title\"/></h2>\n<div><em><$view tiddler=<<assetInfo>> field=\"version\"/></em></div>\n<$list filter=\"[<assetInfo>get[original-title]get[version]]\" variable=\"installedVersion\"><div><em>{{$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint}}</em></div></$list>\n</div>\n<div class=\"tc-plugin-info-chunk tc-plugin-info-buttons\">\n<<install-plugin-button>>\n</div>\n</div>\n<$set name=\"original-title\" value={{{ [<assetInfo>get[original-title]] }}}>\n<$reveal type=\"match\" text=\"yes\" state=<<popup-state>>>\n<div class=\"tc-plugin-info-dropdown\">\n<$list filter=\"[enlist{!!dependents}] [<currentTiddler>get[parent-plugin]] +[limit[1]] ~[<assetInfo>get[original-title]!is[tiddler]]\" variable=\"ignore\">\n<div class=\"tc-plugin-info-dropdown-message\">\n<$list filter=\"[<assetInfo>get[original-title]!is[tiddler]]\">\n{{$:/language/ControlPanel/Plugins/NotInstalled/Hint}}\n</$list>\n<$set name=\"currentTiddler\" value=<<assetInfo>>>\n<$list filter=\"[enlist{!!dependents}] [<currentTiddler>get[parent-plugin]] +[limit[1]]\" variable=\"ignore\">\n<div>\n{{$:/language/ControlPanel/Plugins/AlsoRequires}}\n<$list filter=\"[enlist{!!dependents}] [{!!parent-plugin}] +[sort[name]]\" variable=\"dependency\">\n<$text text=<<dependency>>/>\n</$list>\n</div>\n</$list>\n</$set>\n</div>\n</$list>\n<div class=\"tc-plugin-info-dropdown-body\">\n<$transclude tiddler=<<assetInfo>> field=\"readme\" mode=\"block\"/>\n</div>\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>limit[1]]\" variable=\"ignore\">\n<div class=\"tc-plugin-info-sub-plugins\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>sort[name]]\" variable=\"assetInfo\">\n<<display-plugin-info \"$type$\">>\n</$list>\n</div>\n</$list>\n</div>\n</$reveal>\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>limit[1]]\" variable=\"ignore\">\n<$reveal type=\"nomatch\" text=\"yes\" state=<<popup-state>> tag=\"div\" class=\"tc-plugin-info-sub-plugin-indicator\">\n<$wikify name=\"count\" text=\"\"\"<$count filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>]\"/>\"\"\">\n<$button class=\"tc-btn-invisible\" set=<<popup-state>> setTo=\"yes\">\n{{$:/language/ControlPanel/Plugins/SubPluginPrompt}}\n</$button>\n</$wikify>\n</$reveal>\n</$list>\n</$set>\n</$set>\n\\end\n\n\\define load-plugin-library-button()\n<$list filter=\"[<currentTiddler>get[enabled]else[yes]match[yes]]\" variable=\"ignore\">\n<$button class=\"tc-btn-big-green\">\n<$action-sendmessage $message=\"tm-load-plugin-library\" url={{!!url}} infoTitlePrefix=\"$:/temp/RemoteAssetInfo/\"/>\n{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Plugins/OpenPluginLibrary}}\n</$button>\n</$list>\n\\end\n\n\\define display-server-assets(type)\n{{$:/language/Search/Search}}: <$edit-text tiddler=\"\"\"$:/temp/RemoteAssetSearch/$(currentTiddler)$\"\"\" default=\"\" type=\"search\" tag=\"input\"/>\n<$reveal state=\"\"\"$:/temp/RemoteAssetSearch/$(currentTiddler)$\"\"\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"\"\"$:/temp/RemoteAssetSearch/$(currentTiddler)$\"\"\" $field=\"text\" $value=\"\"/>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n<div class=\"tc-plugin-library-listing\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]search:author,description,original-title,readme,title{$:/temp/RemoteAssetSearch/$(currentTiddler)$}sort[name]]\" variable=\"assetInfo\">\n<$list filter=\"[[$:/temp/RemoteAssetSearch/$(currentTiddler)$]has[text]] ~[<assetInfo>!has[parent-plugin]]\" variable=\"ignore\"><!-- Hide sub-plugins if we're not searching -->\n<<display-plugin-info \"$type$\">>\n</$list>\n</$list>\n</div>\n\\end\n\n\\define display-server-connection()\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/ServerConnection]suffix{!!url}]\" variable=\"connectionTiddler\" emptyMessage=<<load-plugin-library-button>>>\n\n<$set name=\"transclusion\" value=<<connectionTiddler>>>\n\n<<tabs \"[[$:/core/ui/ControlPanel/Plugins/Add/Updates]] [[$:/core/ui/ControlPanel/Plugins/Add/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Add/Themes]] [[$:/core/ui/ControlPanel/Plugins/Add/Languages]]\" \"$:/core/ui/ControlPanel/Plugins/Add/Plugins\">>\n\n</$set>\n\n</$list>\n\\end\n\n\\define close-library-button()\n<$reveal type='nomatch' state='$:/temp/ServerConnection/$(PluginLibraryURL)$' text=''>\n<$button class='tc-btn-big-green'>\n<$action-sendmessage $message=\"tm-unload-plugin-library\" url={{!!url}}/>\n{{$:/core/images/chevron-left}} {{$:/language/ControlPanel/Plugins/ClosePluginLibrary}}\n<$action-deletetiddler $filter=\"[prefix[$:/temp/ServerConnection/$(PluginLibraryURL)$]][prefix[$:/temp/RemoteAssetInfo/$(PluginLibraryURL)$]]\"/>\n</$button>\n</$reveal>\n\\end\n\n\\define plugin-library-listing()\n<div class=\"tc-tab-set\">\n<$set name=\"defaultTab\" value={{{ [all[tiddlers+shadows]tag[$:/tags/PluginLibrary]] }}}>\n<div class=\"tc-tab-buttons\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]\">\n<$button set=<<qualify \"$:/state/addplugins/tab\">> setTo=<<currentTiddler>> default=<<defaultTab>> selectedClass=\"tc-tab-selected\">\n<$set name=\"tv-wikilinks\" value=\"no\">\n<$transclude field=\"caption\"/>\n</$set>\n</$button>\n</$list>\n</div>\n<div class=\"tc-tab-divider\"/>\n<div class=\"tc-tab-content\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]\">\n<$reveal type=\"match\" state=<<qualify \"$:/state/addplugins/tab\">> text=<<currentTiddler>> default=<<defaultTab>>>\n<h2><$link><$transclude field=\"caption\"><$view field=\"title\"/></$transclude></$link></h2>\n//<$view field=\"url\"/>//\n<$transclude mode=\"block\"/>\n<$set name=PluginLibraryURL value={{!!url}}>\n<<close-library-button>>\n</$set>\n<<display-server-connection>>\n</$reveal>\n</$list>\n</div>\n</$set>\n</div>\n\\end\n\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n<div>\n<<plugin-library-listing>>\n</div>\n" - }, - "$:/core/ui/ControlPanel/Palette": { - "title": "$:/core/ui/ControlPanel/Palette", - "tags": "$:/tags/ControlPanel/Appearance", - "caption": "{{$:/language/ControlPanel/Palette/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Palette/\n\n{{$:/snippets/paletteswitcher}}\n\n<$reveal type=\"nomatch\" state=\"$:/state/ShowPaletteEditor\" text=\"yes\">\n\n<$button set=\"$:/state/ShowPaletteEditor\" setTo=\"yes\"><<lingo ShowEditor/Caption>></$button>\n\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/state/ShowPaletteEditor\" text=\"yes\">\n\n<$button set=\"$:/state/ShowPaletteEditor\" setTo=\"no\"><<lingo HideEditor/Caption>></$button>\n{{$:/PaletteManager}}\n\n</$reveal>\n\n" - }, - "$:/core/ui/ControlPanel/Parsing": { - "title": "$:/core/ui/ControlPanel/Parsing", - "tags": "$:/tags/ControlPanel/Advanced", - "caption": "{{$:/language/ControlPanel/Parsing/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Parsing/\n\n\\define toggle(Type)\n<$checkbox\ntiddler=\"\"\"$:/config/WikiParserRules/$Type$/$(rule)$\"\"\"\nfield=\"text\"\nchecked=\"enable\"\nunchecked=\"disable\"\ndefault=\"enable\">\n<<rule>>\n</$checkbox>\n\\end\n\n\\define rules(type,Type)\n<$list filter=\"[wikiparserrules[$type$]]\" variable=\"rule\">\n<dd><<toggle $Type$>></dd>\n</$list>\n\\end\n\n<<lingo Hint>>\n\n<dl>\n<dt><<lingo Pragma/Caption>></dt>\n<<rules pragma Pragma>>\n<dt><<lingo Inline/Caption>></dt>\n<<rules inline Inline>>\n<dt><<lingo Block/Caption>></dt>\n<<rules block Block>>\n</dl>" - }, - "$:/core/ui/ControlPanel/Plugins/Add/Languages": { - "title": "$:/core/ui/ControlPanel/Plugins/Add/Languages", - "caption": "{{$:/language/ControlPanel/Plugins/Languages/Caption}} (<$count filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[language]]\"/>)", - "text": "<<display-server-assets language>>\n" - }, - "$:/core/ui/ControlPanel/Plugins/Add/Plugins": { - "title": "$:/core/ui/ControlPanel/Plugins/Add/Plugins", - "caption": "{{$:/language/ControlPanel/Plugins/Plugins/Caption}} (<$count filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[plugin]]\"/>)", - "text": "<<display-server-assets plugin>>\n" - }, - "$:/core/ui/ControlPanel/Plugins/Add/Themes": { - "title": "$:/core/ui/ControlPanel/Plugins/Add/Themes", - "caption": "{{$:/language/ControlPanel/Plugins/Themes/Caption}} (<$count filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[theme]]\"/>)", - "text": "<<display-server-assets theme>>\n" - }, - "$:/core/ui/ControlPanel/Plugins/Add/Updates": { - "title": "$:/core/ui/ControlPanel/Plugins/Add/Updates", - "caption": "<$importvariables filter=\"$:/core/ui/ControlPanel/Plugins/Add/Updates\">{{$:/language/ControlPanel/Plugins/Updates/Caption}} (<<update-count>>)</$importvariables>", - "text": "\\define each-updateable-plugin(body)\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}sort[title]]\" variable=\"assetInfo\">\n<$set name=\"libraryVersion\" value={{{ [<assetInfo>get[version]] }}}>\n<$list filter=\"[<assetInfo>get[original-title]has[version]!version<libraryVersion>]\" variable=\"ignore\">\n<$set name=\"installedVersion\" value={{{ [<assetInfo>get[original-title]get[version]] }}}>\n<$list filter=\"[<installedversion>!match<libraryVersion>]\" variable=\"ignore\">\n$body$\n</$list>\n</$set>\n</$list>\n</$set>\n</$list>\n\\end\n\n\\define update-all-actions()\n<$macrocall $name=\"each-updateable-plugin\" body=\"\"\"\n<<install-plugin-actions>>\n\"\"\"/>\n\\end\n\n\\define update-count()\n<$wikify name=\"count-filter\" text=<<each-updateable-plugin \"[[<$text text=<<assetInfo>>/>]]\">>><$count filter=<<count-filter>>/></$wikify>\n\\end\n\n<$button actions=<<update-all-actions>> class=\"tc-btn-invisible tc-install-plugin tc-reinstall-upgrade\">\n{{$:/core/images/download-button}} {{||$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption}}\n</$button>\n\n<div class=\"tc-plugin-library-listing\">\n<$macrocall $name=\"each-updateable-plugin\" body=\"\"\"\n<$macrocall $name=\"display-plugin-info\" type={{{ [<assetInfo>get[original-plugin-type]] }}}/>\n\"\"\"/>\n</div>\n" - }, - "$:/core/ui/ControlPanel/Plugins/AddPlugins": { - "title": "$:/core/ui/ControlPanel/Plugins/AddPlugins", - "text": "\\define lingo-base() $:/language/ControlPanel/Plugins/\n\n<$button message=\"tm-modal\" param=\"$:/core/ui/ControlPanel/Modals/AddPlugins\" tooltip={{$:/language/ControlPanel/Plugins/Add/Hint}} class=\"tc-btn-big-green tc-primary-btn\">\n{{$:/core/images/download-button}} <<lingo Add/Caption>>\n</$button>\n" - }, - "$:/core/ui/ControlPanel/Plugins/Installed/Languages": { - "title": "$:/core/ui/ControlPanel/Plugins/Installed/Languages", - "caption": "{{$:/language/ControlPanel/Plugins/Languages/Caption}} (<$count filter=\"[!has[draft.of]plugin-type[language]]\"/>)", - "text": "<<plugin-table language>>\n" - }, - "$:/core/ui/ControlPanel/Plugins/Installed/Plugins": { - "title": "$:/core/ui/ControlPanel/Plugins/Installed/Plugins", - "caption": "{{$:/language/ControlPanel/Plugins/Plugins/Caption}} (<$count filter=\"[!has[draft.of]plugin-type[plugin]]\"/>)", - "text": "<<plugin-table plugin>>\n" - }, - "$:/core/ui/ControlPanel/Plugins/Installed/Themes": { - "title": "$:/core/ui/ControlPanel/Plugins/Installed/Themes", - "caption": "{{$:/language/ControlPanel/Plugins/Themes/Caption}} (<$count filter=\"[!has[draft.of]plugin-type[theme]]\"/>)", - "text": "<<plugin-table theme>>\n" - }, - "$:/core/ui/ControlPanel/Plugins": { - "title": "$:/core/ui/ControlPanel/Plugins", - "tags": "$:/tags/ControlPanel", - "caption": "{{$:/language/ControlPanel/Plugins/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Plugins/\n\n\\define plugin-table(type)\n<$set name=\"plugin-type\" value=\"\"\"$type$\"\"\">\n<$set name=\"qualified-state\" value=<<qualify \"$:/state/plugin-info\">>>\n<$list filter=\"[!has[draft.of]plugin-type[$type$]sort[name]]\" emptyMessage=<<lingo \"Empty/Hint\">> template=\"$:/core/ui/Components/plugin-info\"/>\n</$set>\n</$set>\n\\end\n\n{{$:/core/ui/ControlPanel/Plugins/AddPlugins}}\n\n<<lingo Installed/Hint>>\n\n<$macrocall $name=\"tabs\" tabsList=\"[[$:/core/ui/ControlPanel/Plugins/Installed/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Installed/Themes]] [[$:/core/ui/ControlPanel/Plugins/Installed/Languages]]\" default=\"$:/core/ui/ControlPanel/Plugins/Installed/Plugins\" explicitState=\"$:/state/tab--86143343\"/>\n" - }, - "$:/core/ui/ControlPanel/Saving/DownloadSaver": { - "title": "$:/core/ui/ControlPanel/Saving/DownloadSaver", - "tags": "$:/tags/ControlPanel/Saving", - "caption": "{{$:/language/ControlPanel/Saving/DownloadSaver/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Saving/DownloadSaver/\n\n<<lingo Hint>>\n\n!! <$link to=\"$:/config/DownloadSaver/AutoSave\"><<lingo AutoSave/Hint>></$link>\n\n<$checkbox tiddler=\"$:/config/DownloadSaver/AutoSave\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> <<lingo AutoSave/Description>> </$checkbox>\n" - }, - "$:/core/ui/ControlPanel/Saving/General": { - "title": "$:/core/ui/ControlPanel/Saving/General", - "tags": "$:/tags/ControlPanel/Saving", - "caption": "{{$:/language/ControlPanel/Saving/General/Caption}}", - "list-before": "", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/\n\n{{$:/language/ControlPanel/Saving/General/Hint}}\n\n!! <$link to=\"$:/config/AutoSave\"><<lingo AutoSave/Caption>></$link>\n\n<<lingo AutoSave/Hint>>\n\n<$radio tiddler=\"$:/config/AutoSave\" value=\"yes\"> <<lingo AutoSave/Enabled/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/AutoSave\" value=\"no\"> <<lingo AutoSave/Disabled/Description>> </$radio>\n" - }, - "$:/core/ui/ControlPanel/Saving/GitHub": { - "title": "$:/core/ui/ControlPanel/Saving/GitHub", - "tags": "$:/tags/ControlPanel/Saving", - "caption": "{{$:/language/ControlPanel/Saving/GitService/GitHub/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Saving/GitService/\n\\define service-name() ~GitHub\n\n<<lingo Description>>\n\n|<<lingo UserName>> |<$edit-text tiddler=\"$:/GitHub/Username\" default=\"\" tag=\"input\"/> |\n|<<lingo GitHub/Password>> |<$password name=\"github\"/> |\n|<<lingo Repo>> |<$edit-text tiddler=\"$:/GitHub/Repo\" default=\"\" tag=\"input\"/> |\n|<<lingo Branch>> |<$edit-text tiddler=\"$:/GitHub/Branch\" default=\"master\" tag=\"input\"/> |\n|<<lingo Path>> |<$edit-text tiddler=\"$:/GitHub/Path\" default=\"\" tag=\"input\"/> |\n|<<lingo Filename>> |<$edit-text tiddler=\"$:/GitHub/Filename\" default=\"\" tag=\"input\"/> |\n|<<lingo ServerURL>> |<$edit-text tiddler=\"$:/GitHub/ServerURL\" default=\"https://api.github.com\" tag=\"input\"/> |" - }, - "$:/core/ui/ControlPanel/Saving/GitLab": { - "title": "$:/core/ui/ControlPanel/Saving/GitLab", - "tags": "$:/tags/ControlPanel/Saving", - "caption": "{{$:/language/ControlPanel/Saving/GitService/GitLab/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Saving/GitService/\n\\define service-name() ~GitLab\n\n<<lingo Description>>\n\n|<<lingo UserName>> |<$edit-text tiddler=\"$:/GitLab/Username\" default=\"\" tag=\"input\"/> |\n|<<lingo GitLab/Password>> |<$password name=\"gitlab\"/> |\n|<<lingo Repo>> |<$edit-text tiddler=\"$:/GitLab/Repo\" default=\"\" tag=\"input\"/> |\n|<<lingo Branch>> |<$edit-text tiddler=\"$:/GitLab/Branch\" default=\"master\" tag=\"input\"/> |\n|<<lingo Path>> |<$edit-text tiddler=\"$:/GitLab/Path\" default=\"\" tag=\"input\"/> |\n|<<lingo Filename>> |<$edit-text tiddler=\"$:/GitLab/Filename\" default=\"\" tag=\"input\"/> |\n|<<lingo ServerURL>> |<$edit-text tiddler=\"$:/GitLab/ServerURL\" default=\"https://gitlab.com/api/v4\" tag=\"input\"/> |" - }, - "$:/core/ui/ControlPanel/Saving/TiddlySpot": { - "title": "$:/core/ui/ControlPanel/Saving/TiddlySpot", - "tags": "$:/tags/ControlPanel/Saving", - "caption": "{{$:/language/ControlPanel/Saving/TiddlySpot/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Saving/TiddlySpot/\n\n\\define siteURL(path)\nhttp://$(userName)$.tiddlyspot.com/$path$/\n\\end\n\\define siteLink(path)\n<$reveal type=\"nomatch\" state=\"$:/UploadName\" text=\"\">\n<$set name=\"userName\" value={{$:/UploadName}}>\n<$reveal type=\"match\" state=\"$:/UploadURL\" text=\"\">\n<<siteURL $path$>>\n</$reveal>\n<$reveal type=\"nomatch\" state=\"$:/UploadURL\" text=\"\">\n<$macrocall $name=resolvePath source={{$:/UploadBackupDir}} root={{$:/UploadURL}}>>\n</$reveal>\n</$set>\n</$reveal>\n\\end\n\n<div class=\"tc-message-box\">\n\n<<lingo ReadOnly>>\n\n</div>\n\n<<lingo Description>>\n\n|<<lingo UserName>> |<$edit-text tiddler=\"$:/UploadName\" default=\"\" tag=\"input\"/> |\n|<<lingo Password>> |<$password name=\"upload\"/> |\n|<<lingo Backups>> |<<siteLink backup>> |\n|<<lingo ControlPanel>> |<<siteLink controlpanel>> |\n\n''<<lingo Advanced/Heading>>''\n\n|<<lingo ServerURL>> |<$edit-text tiddler=\"$:/UploadURL\" default=\"\" tag=\"input\"/> |\n|<<lingo Filename>> |<$edit-text tiddler=\"$:/UploadFilename\" default=\"index.html\" tag=\"input\"/> |\n|<<lingo UploadDir>> |<$edit-text tiddler=\"$:/UploadDir\" default=\".\" tag=\"input\"/> |\n|<<lingo BackupDir>> |<$edit-text tiddler=\"$:/UploadBackupDir\" default=\".\" tag=\"input\"/> |\n\n<<lingo TiddlySpot/Hint>>\n" - }, - "$:/core/ui/ControlPanel/Saving/Gitea": { - "title": "$:/core/ui/ControlPanel/Saving/Gitea", - "tags": "$:/tags/ControlPanel/Saving", - "caption": "{{$:/language/ControlPanel/Saving/GitService/Gitea/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Saving/GitService/\n\\define service-name() ~Gitea\n\n<<lingo Description>>\n\n|<<lingo UserName>> |<$edit-text tiddler=\"$:/Gitea/Username\" default=\"\" tag=\"input\"/> |\n|<<lingo Gitea/Password>> |<$password name=\"Gitea\"/> |\n|<<lingo Repo>> |<$edit-text tiddler=\"$:/Gitea/Repo\" default=\"\" tag=\"input\"/> |\n|<<lingo Branch>> |<$edit-text tiddler=\"$:/Gitea/Branch\" default=\"master\" tag=\"input\"/> |\n|<<lingo Path>> |<$edit-text tiddler=\"$:/Gitea/Path\" default=\"\" tag=\"input\"/> |\n|<<lingo Filename>> |<$edit-text tiddler=\"$:/Gitea/Filename\" default=\"\" tag=\"input\"/> |\n|<<lingo ServerURL>> |<$edit-text tiddler=\"$:/Gitea/ServerURL\" default=\"https://gitea/api/v1\" tag=\"input\"/> |\n" - }, - "$:/core/ui/ControlPanel/Saving": { - "title": "$:/core/ui/ControlPanel/Saving", - "tags": "$:/tags/ControlPanel", - "caption": "{{$:/language/ControlPanel/Saving/Caption}}", - "text": "{{$:/language/ControlPanel/Saving/Hint}}\n\n<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Saving]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Saving/General\" explicitState=\"$:/state/tab-2065006209\"/>\n</div>\n" - }, - "$:/core/buttonstyles/Borderless": { - "title": "$:/core/buttonstyles/Borderless", - "tags": "$:/tags/ToolbarButtonStyle", - "caption": "{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless}}", - "text": "tc-btn-invisible" - }, - "$:/core/buttonstyles/Boxed": { - "title": "$:/core/buttonstyles/Boxed", - "tags": "$:/tags/ToolbarButtonStyle", - "caption": "{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed}}", - "text": "tc-btn-boxed" - }, - "$:/core/buttonstyles/Rounded": { - "title": "$:/core/buttonstyles/Rounded", - "tags": "$:/tags/ToolbarButtonStyle", - "caption": "{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded}}", - "text": "tc-btn-rounded" - }, - "$:/core/ui/ControlPanel/Settings/CamelCase": { - "title": "$:/core/ui/ControlPanel/Settings/CamelCase", - "tags": "$:/tags/ControlPanel/Settings", - "caption": "{{$:/language/ControlPanel/Settings/CamelCase/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/CamelCase/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/WikiParserRules/Inline/wikilink\" field=\"text\" checked=\"enable\" unchecked=\"disable\" default=\"enable\"> <$link to=\"$:/config/WikiParserRules/Inline/wikilink\"><<lingo Description>></$link> </$checkbox>\n" - }, - "$:/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab": { - "title": "$:/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab", - "caption": "{{$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption}}", - "tags": "$:/tags/ControlPanel/Settings", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/DefaultMoreSidebarTab/\n\n<$link to=\"$:/config/DefaultMoreSidebarTab\"><<lingo Hint>></$link>\n\n<$select tiddler=\"$:/config/DefaultMoreSidebarTab\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]\">\n<option value=<<currentTiddler>>><$transclude field=\"caption\"><$text text=<<currentTiddler>>/></$transclude></option>\n</$list>\n</$select>\n" - }, - "$:/core/ui/ControlPanel/Settings/DefaultSidebarTab": { - "title": "$:/core/ui/ControlPanel/Settings/DefaultSidebarTab", - "caption": "{{$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption}}", - "tags": "$:/tags/ControlPanel/Settings", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/DefaultSidebarTab/\n\n<$link to=\"$:/config/DefaultSidebarTab\"><<lingo Hint>></$link>\n\n<$select tiddler=\"$:/config/DefaultSidebarTab\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]\">\n<option value=<<currentTiddler>>><$transclude field=\"caption\"><$text text=<<currentTiddler>>/></$transclude></option>\n</$list>\n</$select>\n" - }, - "$:/core/ui/ControlPanel/Settings/EditorToolbar": { - "title": "$:/core/ui/ControlPanel/Settings/EditorToolbar", - "tags": "$:/tags/ControlPanel/Settings", - "caption": "{{$:/language/ControlPanel/Settings/EditorToolbar/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/EditorToolbar/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/TextEditor/EnableToolbar\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/TextEditor/EnableToolbar\"><<lingo Description>></$link> </$checkbox>\n\n" - }, - "$:/core/ui/ControlPanel/Settings/InfoPanelMode": { - "title": "$:/core/ui/ControlPanel/Settings/InfoPanelMode", - "tags": "$:/tags/ControlPanel/Settings", - "caption": "{{$:/language/ControlPanel/Settings/InfoPanelMode/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/InfoPanelMode/\n<$link to=\"$:/config/TiddlerInfo/Mode\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/TiddlerInfo/Mode\" value=\"popup\"> <<lingo Popup/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/TiddlerInfo/Mode\" value=\"sticky\"> <<lingo Sticky/Description>> </$radio>\n" - }, - "$:/core/ui/ControlPanel/Settings/LinkToBehaviour": { - "title": "$:/core/ui/ControlPanel/Settings/LinkToBehaviour", - "tags": "$:/tags/ControlPanel/Settings", - "caption": "{{$:/language/ControlPanel/Settings/LinkToBehaviour/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/LinkToBehaviour/\n\n<$link to=\"$:/config/Navigation/openLinkFromInsideRiver\"><<lingo \"InsideRiver/Hint\">></$link>\n\n<$select tiddler=\"$:/config/Navigation/openLinkFromInsideRiver\">\n <option value=\"above\"><<lingo \"OpenAbove\">></option>\n <option value=\"below\"><<lingo \"OpenBelow\">></option>\n <option value=\"top\"><<lingo \"OpenAtTop\">></option>\n <option value=\"bottom\"><<lingo \"OpenAtBottom\">></option>\n</$select>\n\n<$link to=\"$:/config/Navigation/openLinkFromOutsideRiver\"><<lingo \"OutsideRiver/Hint\">></$link>\n\n<$select tiddler=\"$:/config/Navigation/openLinkFromOutsideRiver\">\n <option value=\"top\"><<lingo \"OpenAtTop\">></option>\n <option value=\"bottom\"><<lingo \"OpenAtBottom\">></option>\n</$select>\n" - }, - "$:/core/ui/ControlPanel/Settings/MissingLinks": { - "title": "$:/core/ui/ControlPanel/Settings/MissingLinks", - "tags": "$:/tags/ControlPanel/Settings", - "caption": "{{$:/language/ControlPanel/Settings/MissingLinks/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/MissingLinks/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/MissingLinks\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/MissingLinks\"><<lingo Description>></$link> </$checkbox>\n\n" - }, - "$:/core/ui/ControlPanel/Settings/NavigationAddressBar": { - "title": "$:/core/ui/ControlPanel/Settings/NavigationAddressBar", - "tags": "$:/tags/ControlPanel/Settings", - "caption": "{{$:/language/ControlPanel/Settings/NavigationAddressBar/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/NavigationAddressBar/\n\n<$link to=\"$:/config/Navigation/UpdateAddressBar\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateAddressBar\" value=\"permaview\"> <<lingo Permaview/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateAddressBar\" value=\"permalink\"> <<lingo Permalink/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateAddressBar\" value=\"no\"> <<lingo No/Description>> </$radio>\n" - }, - "$:/core/ui/ControlPanel/Settings/NavigationHistory": { - "title": "$:/core/ui/ControlPanel/Settings/NavigationHistory", - "tags": "$:/tags/ControlPanel/Settings", - "caption": "{{$:/language/ControlPanel/Settings/NavigationHistory/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/NavigationHistory/\n<$link to=\"$:/config/Navigation/UpdateHistory\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateHistory\" value=\"yes\"> <<lingo Yes/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateHistory\" value=\"no\"> <<lingo No/Description>> </$radio>\n" - }, - "$:/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode": { - "title": "$:/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode", - "tags": "$:/tags/ControlPanel/Settings", - "caption": "{{$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/NavigationPermalinkviewMode/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/Navigation/Permalinkview/CopyToClipboard\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/Navigation/Permalinkview/CopyToClipboard\"><<lingo CopyToClipboard/Description>></$link> </$checkbox>\n\n<$checkbox tiddler=\"$:/config/Navigation/Permalinkview/UpdateAddressBar\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/Navigation/Permalinkview/UpdateAddressBar\"><<lingo UpdateAddressBar/Description>></$link> </$checkbox>\n" - }, - "$:/core/ui/ControlPanel/Settings/PerformanceInstrumentation": { - "title": "$:/core/ui/ControlPanel/Settings/PerformanceInstrumentation", - "tags": "$:/tags/ControlPanel/Settings", - "caption": "{{$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/PerformanceInstrumentation/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/Performance/Instrumentation\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> <$link to=\"$:/config/Performance/Instrumentation\"><<lingo Description>></$link> </$checkbox>\n" - }, - "$:/core/ui/ControlPanel/Settings/TitleLinks": { - "title": "$:/core/ui/ControlPanel/Settings/TitleLinks", - "tags": "$:/tags/ControlPanel/Settings", - "caption": "{{$:/language/ControlPanel/Settings/TitleLinks/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/TitleLinks/\n<$link to=\"$:/config/Tiddlers/TitleLinks\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/Tiddlers/TitleLinks\" value=\"yes\"> <<lingo Yes/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Tiddlers/TitleLinks\" value=\"no\"> <<lingo No/Description>> </$radio>\n" - }, - "$:/core/ui/ControlPanel/Settings/ToolbarButtonStyle": { - "title": "$:/core/ui/ControlPanel/Settings/ToolbarButtonStyle", - "tags": "$:/tags/ControlPanel/Settings", - "caption": "{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtonStyle/\n<$link to=\"$:/config/Toolbar/ButtonClass\"><<lingo \"Hint\">></$link>\n\n<$select tiddler=\"$:/config/Toolbar/ButtonClass\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ToolbarButtonStyle]]\">\n<option value={{!!text}}>{{!!caption}}</option>\n</$list>\n</$select>\n" - }, - "$:/core/ui/ControlPanel/Settings/ToolbarButtons": { - "title": "$:/core/ui/ControlPanel/Settings/ToolbarButtons", - "tags": "$:/tags/ControlPanel/Settings", - "caption": "{{$:/language/ControlPanel/Settings/ToolbarButtons/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtons/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/Toolbar/Icons\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/Toolbar/Icons\"><<lingo Icons/Description>></$link> </$checkbox>\n\n<$checkbox tiddler=\"$:/config/Toolbar/Text\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> <$link to=\"$:/config/Toolbar/Text\"><<lingo Text/Description>></$link> </$checkbox>\n" - }, - "$:/core/ui/ControlPanel/Settings": { - "title": "$:/core/ui/ControlPanel/Settings", - "tags": "$:/tags/ControlPanel", - "caption": "{{$:/language/ControlPanel/Settings/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/Settings/\n\n<<lingo Hint>>\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Settings]]\">\n\n<div style=\"border-top:1px solid #eee;\">\n\n!! <$link><$transclude field=\"caption\"/></$link>\n\n<$transclude/>\n\n</div>\n\n</$list>\n" - }, - "$:/core/ui/ControlPanel/StoryView": { - "title": "$:/core/ui/ControlPanel/StoryView", - "tags": "$:/tags/ControlPanel/Appearance", - "caption": "{{$:/language/ControlPanel/StoryView/Caption}}", - "text": "{{$:/snippets/viewswitcher}}\n" - }, - "$:/core/ui/ControlPanel/Stylesheets": { - "title": "$:/core/ui/ControlPanel/Stylesheets", - "tags": "$:/tags/ControlPanel/Advanced", - "caption": "{{$:/language/ControlPanel/Stylesheets/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/\n\n<<lingo Stylesheets/Hint>>\n\n{{$:/snippets/peek-stylesheets}}\n" - }, - "$:/core/ui/ControlPanel/Theme": { - "title": "$:/core/ui/ControlPanel/Theme", - "tags": "$:/tags/ControlPanel/Appearance", - "caption": "{{$:/language/ControlPanel/Theme/Caption}}", - "text": "{{$:/snippets/themeswitcher}}\n" - }, - "$:/core/ui/ControlPanel/TiddlerFields": { - "title": "$:/core/ui/ControlPanel/TiddlerFields", - "tags": "$:/tags/ControlPanel/Advanced", - "caption": "{{$:/language/ControlPanel/TiddlerFields/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/\n\n<<lingo TiddlerFields/Hint>>\n\n{{$:/snippets/allfields}}" - }, - "$:/core/ui/ControlPanel/Toolbars/EditToolbar": { - "title": "$:/core/ui/ControlPanel/Toolbars/EditToolbar", - "tags": "$:/tags/ControlPanel/Toolbars", - "caption": "{{$:/language/ControlPanel/Toolbars/EditToolbar/Caption}}", - "text": "\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/EditToolbarButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/EditToolbar/Hint}}\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/EditToolbar\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/ItemTemplate\"/>\n\n</$set>\n\n</$set>" - }, - "$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate": { - "title": "$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate", - "text": "\\define config-title()\n$(config-base)$$(currentTiddler)$\n\\end\n\n<$draggable tiddler=<<currentTiddler>>>\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <span class=\"tc-icon-wrapper\"><$transclude tiddler={{!!icon}}/></span> <$transclude field=\"caption\"/> -- <i class=\"tc-muted\"><$transclude field=\"description\"/></i>\n</$draggable>\n" - }, - "$:/core/ui/ControlPanel/Toolbars/EditorToolbar": { - "title": "$:/core/ui/ControlPanel/Toolbars/EditorToolbar", - "tags": "$:/tags/ControlPanel/Toolbars", - "caption": "{{$:/language/ControlPanel/Toolbars/EditorToolbar/Caption}}", - "text": "\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/EditorToolbarButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/EditorToolbar/Hint}}\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/EditorToolbar\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate\"/>\n" - }, - "$:/core/ui/ControlPanel/Toolbars/ItemTemplate": { - "title": "$:/core/ui/ControlPanel/Toolbars/ItemTemplate", - "text": "\\define config-title()\n$(config-base)$$(currentTiddler)$\n\\end\n\n<$draggable tiddler=<<currentTiddler>>>\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <span class=\"tc-icon-wrapper\"> <$transclude field=\"caption\"/> <i class=\"tc-muted\">-- <$transclude field=\"description\"/></i></span>\n</$draggable>\n" - }, - "$:/core/ui/ControlPanel/Toolbars/PageControls": { - "title": "$:/core/ui/ControlPanel/Toolbars/PageControls", - "tags": "$:/tags/ControlPanel/Toolbars", - "caption": "{{$:/language/ControlPanel/Toolbars/PageControls/Caption}}", - "text": "\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/PageControlButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/PageControls/Hint}}\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/PageControls\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/ItemTemplate\"/>\n\n</$set>\n\n</$set>\n" - }, - "$:/core/ui/ControlPanel/Toolbars/ViewToolbar": { - "title": "$:/core/ui/ControlPanel/Toolbars/ViewToolbar", - "tags": "$:/tags/ControlPanel/Toolbars", - "caption": "{{$:/language/ControlPanel/Toolbars/ViewToolbar/Caption}}", - "text": "\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/ViewToolbarButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/ViewToolbar/Hint}}\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/ViewToolbar\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/ItemTemplate\"/>\n\n</$set>\n\n</$set>\n" - }, - "$:/core/ui/ControlPanel/Toolbars": { - "title": "$:/core/ui/ControlPanel/Toolbars", - "tags": "$:/tags/ControlPanel/Appearance", - "caption": "{{$:/language/ControlPanel/Toolbars/Caption}}", - "text": "{{$:/language/ControlPanel/Toolbars/Hint}}\n\n<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Toolbars]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Toolbars/ViewToolbar\" class=\"tc-vertical\" explicitState=\"$:/state/tabs/controlpanel/toolbars-1345989671\"/>\n</div>\n" - }, - "$:/ControlPanel": { - "title": "$:/ControlPanel", - "icon": "$:/core/images/options-button", - "color": "#bbb", - "text": "<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Info\" explicitState=\"$:/state/tab-1749438307\"/>\n</div>\n" - }, - "$:/core/ui/DefaultSearchResultList": { - "title": "$:/core/ui/DefaultSearchResultList", - "tags": "$:/tags/SearchResults", - "caption": "{{$:/language/Search/DefaultResults/Caption}}", - "first-search-filter": "[!is[system]search:title<userInput>sort[title]limit[250]]", - "second-search-filter": "[!is[system]search<userInput>sort[title]limit[250]]", - "text": "\\define searchResultList()\n//<small>{{$:/language/Search/Matches/Title}}</small>//\n\n<$list filter=\"[<userInput>minlength[1]]\" variable=\"ignore\">\n<$list filter={{{ [<configTiddler>get[first-search-filter]] }}}>\n<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[<searchListState>get[text]] +[then[]else[tc-list-item-selected]] }}}>\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</span>\n</$list>\n</$list>\n\n//<small>{{$:/language/Search/Matches/All}}</small>//\n\n<$list filter=\"[<userInput>minlength[1]]\" variable=\"ignore\">\n<$list filter={{{ [<configTiddler>get[second-search-filter]] }}}>\n<span class={{{[<currentTiddler>addsuffix[-secondaryList]] -[<searchListState>get[text]] +[then[]else[tc-list-item-selected]] }}}>\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</span>\n</$list>\n</$list>\n\n\\end\n<<searchResultList>>\n" - }, - "$:/core/ui/EditTemplate/body/preview/diffs-current": { - "title": "$:/core/ui/EditTemplate/body/preview/diffs-current", - "tags": "$:/tags/EditPreview", - "caption": "differences from current", - "list-after": "$:/core/ui/EditTemplate/body/preview/output", - "text": "<$list filter=\"[<currentTiddler>!is[image]]\" emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}>\n\n<$macrocall $name=\"compareTiddlerText\" sourceTiddlerTitle={{!!draft.of}} destTiddlerTitle=<<currentTiddler>>/>\n\n</$list>\n\n" - }, - "$:/core/ui/EditTemplate/body/preview/diffs-shadow": { - "title": "$:/core/ui/EditTemplate/body/preview/diffs-shadow", - "tags": "$:/tags/EditPreview", - "caption": "differences from shadow (if any)", - "list-after": "$:/core/ui/EditTemplate/body/preview/output", - "text": "<$list filter=\"[<currentTiddler>!is[image]]\" emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}>\n\n<$macrocall $name=\"compareTiddlerText\" sourceTiddlerTitle={{{ [{!!draft.of}shadowsource[]] }}} sourceSubTiddlerTitle={{!!draft.of}} destTiddlerTitle=<<currentTiddler>>/>\n\n</$list>\n\n" - }, - "$:/core/ui/EditTemplate/body/preview/output": { - "title": "$:/core/ui/EditTemplate/body/preview/output", - "tags": "$:/tags/EditPreview", - "caption": "{{$:/language/EditTemplate/Body/Preview/Type/Output}}", - "text": "\\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]]\n<$set name=\"tv-tiddler-preview\" value=\"yes\">\n\n<$transclude />\n\n</$set>\n" - }, - "$:/state/showeditpreview": { - "title": "$:/state/showeditpreview", - "text": "no" - }, - "$:/core/ui/EditTemplate/body/editor": { - "title": "$:/core/ui/EditTemplate/body/editor", - "text": "<$edit\n\n field=\"text\"\n class=\"tc-edit-texteditor tc-edit-texteditor-body\"\n placeholder={{$:/language/EditTemplate/Body/Placeholder}}\n tabindex={{$:/config/EditTabIndex}}\n focus={{{ [{$:/config/AutoFocus}match[text]then[true]] ~[[false]] }}}\n cancelPopups=\"yes\"\n\n><$set\n\n name=\"targetTiddler\"\n value=<<currentTiddler>>\n\n><$list\n\n filter=\"[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]]\"\n\n><$reveal\n\n type=\"nomatch\"\n state=<<config-visibility-title>>\n text=\"hide\"\n class=\"tc-text-editor-toolbar-item-wrapper\"\n\n><$transclude\n\n tiddler=\"$:/core/ui/EditTemplate/body/toolbar/button\"\n mode=\"inline\"\n\n/></$reveal></$list></$set></$edit>\n" - }, - "$:/core/ui/EditTemplate/body/toolbar/button": { - "title": "$:/core/ui/EditTemplate/body/toolbar/button", - "text": "\\define toolbar-button-icon()\n<$list\n\n filter=\"[all[current]!has[custom-icon]]\"\n variable=\"no-custom-icon\"\n\n><$transclude\n\n tiddler={{!!icon}}\n\n/></$list>\n\\end\n\n\\define toolbar-button-tooltip()\n{{!!description}}<$macrocall $name=\"displayshortcuts\" $output=\"text/plain\" shortcuts={{!!shortcuts}} prefix=\"` - [\" separator=\"] [\" suffix=\"]`\"/>\n\\end\n\n\\define toolbar-button()\n<$list\n\n filter={{!!condition}}\n variable=\"list-condition\"\n\n><$wikify\n\n name=\"tooltip-text\"\n text=<<toolbar-button-tooltip>>\n mode=\"inline\"\n output=\"text\"\n\n><$list\n\n filter=\"[all[current]!has[dropdown]]\"\n variable=\"no-dropdown\"\n\n><$button\n\n class=\"tc-btn-invisible $(buttonClasses)$\"\n tooltip=<<tooltip-text>>\n actions={{!!actions}}\n\n><span\n\n data-tw-keyboard-shortcut={{!!shortcuts}}\n\n/><<toolbar-button-icon>><$transclude\n\n tiddler=<<currentTiddler>>\n field=\"text\"\n\n/></$button></$list><$list\n\n filter=\"[all[current]has[dropdown]]\"\n variable=\"dropdown\"\n\n><$set\n\n name=\"dropdown-state\"\n value=<<qualify \"$:/state/EditorToolbarDropdown\">>\n\n><$button\n\n popup=<<dropdown-state>>\n class=\"tc-popup-keep tc-btn-invisible $(buttonClasses)$\"\n selectedClass=\"tc-selected\"\n tooltip=<<tooltip-text>>\n actions={{!!actions}}\n\n><span\n\n data-tw-keyboard-shortcut={{!!shortcuts}}\n\n/><<toolbar-button-icon>><$transclude\n\n tiddler=<<currentTiddler>>\n field=\"text\"\n\n/></$button><$reveal\n\n state=<<dropdown-state>>\n type=\"popup\"\n position=\"below\"\n animate=\"yes\"\n tag=\"span\"\n\n><div\n\n class=\"tc-drop-down tc-popup-keep\"\n\n><$transclude\n\n tiddler={{!!dropdown}}\n mode=\"block\"\n\n/></div></$reveal></$set></$list></$wikify></$list>\n\\end\n\n\\define toolbar-button-outer()\n<$set\n\n name=\"buttonClasses\"\n value={{!!button-classes}}\n\n><<toolbar-button>></$set>\n\\end\n\n<<toolbar-button-outer>>" - }, - "$:/core/ui/EditTemplate/body": { - "title": "$:/core/ui/EditTemplate/body", - "tags": "$:/tags/EditTemplate", - "text": "\\define lingo-base() $:/language/EditTemplate/Body/\n\\define config-visibility-title()\n$:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$\n\\end\n<$list filter=\"[all[current]has[_canonical_uri]]\">\n\n<div class=\"tc-message-box\">\n\n<<lingo External/Hint>>\n\n<a href={{!!_canonical_uri}}><$text text={{!!_canonical_uri}}/></a>\n\n<$edit-text field=\"_canonical_uri\" class=\"tc-edit-fields\" tabindex={{$:/config/EditTabIndex}} cancelPopups=\"yes\"></$edit-text>\n\n</div>\n\n</$list>\n\n<$list filter=\"[all[current]!has[_canonical_uri]]\">\n\n<$reveal state=\"$:/state/showeditpreview\" type=\"match\" text=\"yes\">\n\n<div class=\"tc-tiddler-preview\">\n\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/editor\" mode=\"inline\"/>\n\n<div class=\"tc-tiddler-preview-preview\">\n\n<$transclude tiddler={{$:/state/editpreviewtype}} mode=\"inline\">\n\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/preview/output\" mode=\"inline\"/>\n\n</$transclude>\n\n</div>\n\n</div>\n\n</$reveal>\n\n<$reveal state=\"$:/state/showeditpreview\" type=\"nomatch\" text=\"yes\">\n\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/editor\" mode=\"inline\"/>\n\n</$reveal>\n\n</$list>\n" - }, - "$:/core/ui/EditTemplate/controls": { - "title": "$:/core/ui/EditTemplate/controls", - "tags": "$:/tags/EditTemplate", - "text": "\\define config-title()\n$:/config/EditToolbarButtons/Visibility/$(listItem)$\n\\end\n<div class=\"tc-tiddler-title tc-tiddler-edit-title\">\n<$view field=\"title\"/>\n<span class=\"tc-tiddler-controls tc-titlebar\"><$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]\" variable=\"listItem\"><$reveal type=\"nomatch\" state=<<config-title>> text=\"hide\"><$transclude tiddler=<<listItem>>/></$reveal></$list></span>\n<div style=\"clear: both;\"></div>\n</div>\n" - }, - "$:/core/ui/EditTemplate/fields": { - "title": "$:/core/ui/EditTemplate/fields", - "tags": "$:/tags/EditTemplate", - "text": "\\define lingo-base() $:/language/EditTemplate/\n\\define config-title()\n$:/config/EditTemplateFields/Visibility/$(currentField)$\n\\end\n\n\\define config-filter()\n[[hide]] -[title{$(config-title)$}]\n\\end\n\n\\define current-tiddler-new-field-selector()\n[data-tiddler-title=\"$(currentTiddlerCSSescaped)$\"] .tc-edit-field-add-name-wrapper input\n\\end\n\n\\define new-field-actions()\n<$action-sendmessage $message=\"tm-add-field\" $name={{{ [<newFieldNameTiddler>get[text]] }}} $value={{{ [<newFieldValueTiddler>get[text]] }}}/>\n<$action-deletetiddler $filter=\"[<newFieldNameTiddler>] [<newFieldValueTiddler>] [<storeTitle>] [<searchListState>]\"/>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=<<current-tiddler-new-field-selector>>/>\n\\end\n\n\\define delete-state-tiddlers() <$action-deletetiddler $filter=\"[<newFieldNameTiddler>] [<storeTitle>] [<searchListState>]\"/>\n\n\\define cancel-search-actions-inner()\n<$list filter=\"[<storeTitle>has[text]] [<newFieldNameTiddler>has[text]]\" variable=\"ignore\" emptyMessage=\"\"\"<<cancel-delete-tiddler-actions \"cancel\">>\"\"\">\n<<delete-state-tiddlers>>\n</$list>\n\\end\n\n\\define cancel-search-actions()\n<$set name=\"userInput\" value={{{ [<storeTitle>get[text]] }}}>\n<$list filter=\"[<newFieldNameTiddler>get[text]!match<userInput>]\" emptyMessage=\"\"\"<<cancel-search-actions-inner>>\"\"\">\n<$action-setfield $tiddler=<<newFieldNameTiddler>> text=<<userInput>>/><$action-setfield $tiddler=<<refreshTitle>> text=\"yes\"/>\n</$list>\n</$set>\n\\end\n\n\\define new-field()\n<$vars name={{{ [<newFieldNameTiddler>get[text]] }}}>\n<$reveal type=\"nomatch\" text=\"\" default=<<name>>>\n<$button tooltip=<<lingo Fields/Add/Button/Hint>>>\n<$action-sendmessage $message=\"tm-add-field\"\n$name=<<name>>\n$value={{{ [<newFieldValueTiddler>get[text]] }}}/>\n<$action-deletetiddler $filter=\"[<newFieldNameTiddler>] [<newFieldValueTiddler>] [<storeTitle>] [<searchListState>]\"/>\n<<lingo Fields/Add/Button>>\n</$button>\n</$reveal>\n<$reveal type=\"match\" text=\"\" default=<<name>>>\n<$button>\n<<lingo Fields/Add/Button>>\n</$button>\n</$reveal>\n</$vars>\n\\end\n\\whitespace trim\n\n<div class=\"tc-edit-fields\">\n<table class={{{ [all[current]fields[]] :filter[lookup[$:/config/EditTemplateFields/Visibility/]!match[hide]] +[count[]!match[0]] +[then[tc-edit-fields]] ~[[tc-edit-fields tc-edit-fields-small]] }}}>\n<tbody>\n<$list filter=\"[all[current]fields[]] +[sort[title]]\" variable=\"currentField\" storyview=\"pop\">\n<$list filter=<<config-filter>> variable=\"temp\">\n<tr class=\"tc-edit-field\">\n<td class=\"tc-edit-field-name\">\n<$text text=<<currentField>>/>:</td>\n<td class=\"tc-edit-field-value\">\n<$keyboard key=\"((delete-field))\" actions=\"\"\"<$action-deletefield $field=<<currentField>>/><$set name=\"currentTiddlerCSSescaped\" value={{{ [<currentTiddler>escapecss[]] }}}><$action-sendmessage $message=\"tm-focus-selector\" $param=<<current-tiddler-new-field-selector>>/></$set>\"\"\">\n<$edit-text tiddler=<<currentTiddler>> field=<<currentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} tabindex={{$:/config/EditTabIndex}} cancelPopups=\"yes\"/>\n</$keyboard>\n</td>\n<td class=\"tc-edit-field-remove\">\n<$button class=\"tc-btn-invisible\" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>\n<$action-deletefield $field=<<currentField>>/><$set name=\"currentTiddlerCSSescaped\" value={{{ [<currentTiddler>escapecss[]] }}}><$action-sendmessage $message=\"tm-focus-selector\" $param=<<current-tiddler-new-field-selector>>/></$set>\n{{$:/core/images/delete-button}}\n</$button>\n</td>\n</tr>\n</$list>\n</$list>\n</tbody>\n</table>\n</div>\n\n<$fieldmangler>\n<div class=\"tc-edit-field-add\">\n<em class=\"tc-edit tc-big-gap-right\">\n<<lingo Fields/Add/Prompt>>\n</em>\n<$vars refreshTitle=<<qualify \"$:/temp/fieldname/refresh\">> storeTitle=<<newFieldNameInputTiddler>> searchListState=<<newFieldNameSelectionTiddler>>>\n<div class=\"tc-edit-field-add-name-wrapper\">\n<$macrocall $name=\"keyboard-driven-input\" tiddler=<<newFieldNameTiddler>> storeTitle=<<storeTitle>> refreshTitle=<<refreshTitle>>\n\t\tselectionStateTitle=<<searchListState>> tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}}\n\t\tfocusPopup=<<qualify \"$:/state/popup/field-dropdown\">> class=\"tc-edit-texteditor tc-popup-handle\" tabindex={{$:/config/EditTabIndex}}\n\t\tfocus={{{ [{$:/config/AutoFocus}match[fields]then[true]] ~[[false]] }}} cancelPopups=\"yes\"\n\t\tconfigTiddlerFilter=\"[[$:/config/EditMode/fieldname-filter]]\" inputCancelActions=<<cancel-search-actions>> />\n<$button popup=<<qualify \"$:/state/popup/field-dropdown\">> class=\"tc-btn-invisible tc-btn-dropdown tc-small-gap\" tooltip={{$:/language/EditTemplate/Field/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Field/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button>\n<$reveal state=<<qualify \"$:/state/popup/field-dropdown\">> type=\"nomatch\" text=\"\" default=\"\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$linkcatcher to=<<newFieldNameTiddler>>>\n<div class=\"tc-dropdown-item\">\n<<lingo Fields/Add/Dropdown/User>>\n</div>\n<$set name=\"newFieldName\" value={{{ [<storeTitle>get[text]] }}}>\n<$list filter=\"[!is[shadow]!is[system]fields[]search:title<newFieldName>sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type\" variable=\"currentField\">\n<$list filter=\"[<currentField>addsuffix[-primaryList]] -[<searchListState>get[text]]\" emptyMessage=\"\"\"<$link to=<<currentField>> class=\"tc-list-item-selected\"><$text text=<<currentField>>/></$link>\"\"\">\n<$link to=<<currentField>>>\n<$text text=<<currentField>>/>\n</$link>\n</$list>\n</$list>\n<div class=\"tc-dropdown-item\">\n<<lingo Fields/Add/Dropdown/System>>\n</div>\n<$list filter=\"[fields[]search:title<newFieldName>sort[]] -[!is[shadow]!is[system]fields[]]\" variable=\"currentField\">\n<$list filter=\"[<currentField>addsuffix[-secondaryList]] -[<searchListState>get[text]]\" emptyMessage=\"\"\"<$link to=<<currentField>> class=\"tc-list-item-selected\"><$text text=<<currentField>>/></$link>\"\"\">\n<$link to=<<currentField>>>\n<$text text=<<currentField>>/>\n</$link>\n</$list>\n</$list>\n</$set>\n</$linkcatcher>\n</$set>\n</div>\n</$reveal>\n</div>\n<span class=\"tc-edit-field-add-value tc-small-gap-right\">\n<$set name=\"currentTiddlerCSSescaped\" value={{{ [<currentTiddler>escapecss[]] }}}>\n<$keyboard key=\"((add-field))\" actions=<<new-field-actions>>>\n<$edit-text tiddler=<<newFieldValueTiddler>> tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class=\"tc-edit-texteditor\" tabindex={{$:/config/EditTabIndex}} cancelPopups=\"yes\"/>\n</$keyboard>\n</$set>\n</span>\n<span class=\"tc-edit-field-add-button\">\n<$macrocall $name=\"new-field\"/>\n</span>\n</$vars>\n</div>\n</$fieldmangler>\n" - }, - "$:/core/ui/EditTemplate/shadow": { - "title": "$:/core/ui/EditTemplate/shadow", - "tags": "$:/tags/EditTemplate", - "text": "\\define lingo-base() $:/language/EditTemplate/Shadow/\n\\define pluginLinkBody()\n<$link to=\"\"\"$(pluginTitle)$\"\"\">\n<$text text=\"\"\"$(pluginTitle)$\"\"\"/>\n</$link>\n\\end\n<$list filter=\"[all[current]get[draft.of]is[shadow]!is[tiddler]]\">\n\n<$list filter=\"[all[current]shadowsource[]]\" variable=\"pluginTitle\">\n\n<$set name=\"pluginLink\" value=<<pluginLinkBody>>>\n<div class=\"tc-message-box\">\n\n<<lingo Warning>>\n\n</div>\n</$set>\n</$list>\n\n</$list>\n\n<$list filter=\"[all[current]get[draft.of]is[shadow]is[tiddler]]\">\n\n<$list filter=\"[all[current]shadowsource[]]\" variable=\"pluginTitle\">\n\n<$set name=\"pluginLink\" value=<<pluginLinkBody>>>\n<div class=\"tc-message-box\">\n\n<<lingo OverriddenWarning>>\n\n</div>\n</$set>\n</$list>\n\n</$list>" - }, - "$:/core/ui/EditTemplate/tags": { - "title": "$:/core/ui/EditTemplate/tags", - "tags": "$:/tags/EditTemplate", - "text": "\\whitespace trim\n\n\\define lingo-base() $:/language/EditTemplate/\n\n\\define tag-styles()\nbackground-color:$(backgroundColor)$;\nfill:$(foregroundColor)$;\ncolor:$(foregroundColor)$;\n\\end\n\n\\define tag-body-inner(colour,fallbackTarget,colourA,colourB,icon,tagField:\"tags\")\n\\whitespace trim\n<$vars foregroundColor=<<contrastcolour target:\"\"\"$colour$\"\"\" fallbackTarget:\"\"\"$fallbackTarget$\"\"\" colourA:\"\"\"$colourA$\"\"\" colourB:\"\"\"$colourB$\"\"\">> backgroundColor=\"\"\"$colour$\"\"\">\n<span style=<<tag-styles>> class=\"tc-tag-label tc-tag-list-item\">\n<$transclude tiddler=\"\"\"$icon$\"\"\"/><$view field=\"title\" format=\"text\" />\n<$button class=\"tc-btn-invisible tc-remove-tag-button\"><$action-listops $tiddler=<<saveTiddler>> $field=<<__tagField__>> $subfilter=\"-[{!!title}]\"/>{{$:/core/images/close-button}}</$button>\n</span>\n</$vars>\n\\end\n\n\\define tag-body(colour,palette,icon,tagField:\"tags\")\n<$macrocall $name=\"tag-body-inner\" colour=\"\"\"$colour$\"\"\" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} icon=\"\"\"$icon$\"\"\" tagField=<<__tagField__>>/>\n\\end\n\n\\define edit-tags-template(tagField:\"tags\")\n\\whitespace trim\n<div class=\"tc-edit-tags\">\n<$list filter=\"[list[!!$tagField$]sort[title]]\" storyview=\"pop\">\n<$macrocall $name=\"tag-body\" colour={{!!color}} palette={{$:/palette}} icon={{!!icon}} tagField=<<__tagField__>>/>\n</$list>\n<$vars tabIndex={{$:/config/EditTabIndex}} cancelPopups=\"yes\">\n<$macrocall $name=\"tag-picker\" tagField=<<__tagField__>>/>\n</$vars>\n</div>\n\\end\n<$set name=\"saveTiddler\" value=<<currentTiddler>>>\n<$macrocall $name=\"edit-tags-template\" tagField=<<tagField>>/>\n</$set>\n" - }, - "$:/core/ui/EditTemplate/title": { - "title": "$:/core/ui/EditTemplate/title", - "tags": "$:/tags/EditTemplate", - "text": "<$edit-text field=\"draft.title\" class=\"tc-titlebar tc-edit-texteditor\" focus={{{ [{$:/config/AutoFocus}match[title]then[true]] ~[[false]] }}} tabindex={{$:/config/EditTabIndex}} cancelPopups=\"yes\"/>\n\n<$vars pattern=\"\"\"[\\|\\[\\]{}]\"\"\" bad-chars=\"\"\"`| [ ] { }`\"\"\">\n\n<$list filter=\"[all[current]regexp:draft.title<pattern>]\" variable=\"listItem\">\n\n<div class=\"tc-message-box\">\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}\n\n</div>\n\n</$list>\n\n</$vars>\n\n<$reveal state=\"!!draft.title\" type=\"nomatch\" text={{!!draft.of}} tag=\"div\">\n\n<$list filter=\"[{!!draft.title}!is[missing]]\" variable=\"listItem\">\n\n<div class=\"tc-message-box\">\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}\n\n</div>\n\n</$list>\n\n<$list filter=\"[{!!draft.of}!is[missing]]\" variable=\"listItem\">\n\n<$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}>\n\n<$checkbox tiddler=\"$:/config/RelinkOnRename\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> {{$:/language/EditTemplate/Title/Relink/Prompt}}</$checkbox>\n\n<$list filter=\"[title<fromTitle>backlinks[]limit[1]]\" variable=\"listItem\">\n\n<$vars stateTiddler=<<qualify \"$:/state/edit/references\">> >\n\n<$reveal type=\"nomatch\" state=<<stateTiddler>> text=\"show\">\n<$button set=<<stateTiddler>> setTo=\"show\" class=\"tc-btn-invisible\">{{$:/core/images/right-arrow}} \n<<lingo EditTemplate/Title/References/Prompt>></$button>\n</$reveal>\n<$reveal type=\"match\" state=<<stateTiddler>> text=\"show\">\n<$button set=<<stateTiddler>> setTo=\"hide\" class=\"tc-btn-invisible\">{{$:/core/images/down-arrow}} \n<<lingo EditTemplate/Title/References/Prompt>></$button>\n</$reveal>\n\n<$reveal type=\"match\" state=<<stateTiddler>> text=\"show\">\n<$tiddler tiddler=<<fromTitle>> >\n<$transclude tiddler=\"$:/core/ui/TiddlerInfo/References\"/>\n</$tiddler>\n</$reveal>\n\n</$vars>\n\n</$list>\n\n</$vars>\n\n</$list>\n\n</$reveal>\n" - }, - "$:/core/ui/EditTemplate/type": { - "title": "$:/core/ui/EditTemplate/type", - "tags": "$:/tags/EditTemplate", - "first-search-filter": "[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]sort[description]sort[group-sort]removeprefix[$:/language/Docs/Types/]search<userInput>]", - "text": "\\define lingo-base() $:/language/EditTemplate/\n\\define input-cancel-actions() <$list filter=\"[<storeTitle>get[text]] [<currentTiddler>get[type]] +[limit[1]]\" emptyMessage=\"\"\"<<cancel-delete-tiddler-actions \"cancel\">>\"\"\"><$action-sendmessage $message=\"tm-remove-field\" $param=\"type\"/><$action-deletetiddler $filter=\"[<typeInputTiddler>] [<refreshTitle>] [<typeSelectionTiddler>]\"/></$list>\n\\whitespace trim\n<$set name=\"refreshTitle\" value=<<qualify \"$:/temp/type-search/refresh\">>>\n<div class=\"tc-edit-type-selector-wrapper\">\n<em class=\"tc-edit tc-big-gap-right\"><<lingo Type/Prompt>></em>\n<div class=\"tc-type-selector-dropdown-wrapper\">\n<div class=\"tc-type-selector\"><$fieldmangler>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=<<currentTiddler>> storeTitle=<<typeInputTiddler>> refreshTitle=<<refreshTitle>> selectionStateTitle=<<typeSelectionTiddler>> field=\"type\" tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=<<qualify \"$:/state/popup/type-dropdown\">> class=\"tc-edit-typeeditor tc-edit-texteditor tc-popup-handle\" tabindex={{$:/config/EditTabIndex}} focus={{{ [{$:/config/AutoFocus}match[type]then[true]] ~[[false]] }}} cancelPopups=\"yes\" configTiddlerFilter=\"[[$:/core/ui/EditTemplate/type]]\" inputCancelActions=<<input-cancel-actions>>/><$button popup=<<qualify \"$:/state/popup/type-dropdown\">> class=\"tc-btn-invisible tc-btn-dropdown tc-small-gap\" tooltip={{$:/language/EditTemplate/Type/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Type/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button><$button message=\"tm-remove-field\" param=\"type\" class=\"tc-btn-invisible tc-btn-icon\" tooltip={{$:/language/EditTemplate/Type/Delete/Hint}} aria-label={{$:/language/EditTemplate/Type/Delete/Caption}}>{{$:/core/images/delete-button}}<$action-deletetiddler $filter=\"[<storeTitle>] [<refreshTitle>] [<selectionStateTitle>]\"/></$button>\n</$fieldmangler></div>\n\n<div class=\"tc-block-dropdown-wrapper\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$reveal state=<<qualify \"$:/state/popup/type-dropdown\">> type=\"nomatch\" text=\"\" default=\"\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<$linkcatcher to=\"!!type\">\n<$list filter='[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]each[group]sort[group-sort]]'>\n<div class=\"tc-dropdown-item\">\n<$text text={{!!group}}/>\n</div>\n<$set name=\"userInput\" value={{{ [<typeInputTiddler>get[text]] }}}>\n<$list filter=\"[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]group{!!group}] +[sort[description]] +[removeprefix[$:/language/Docs/Types/]] +[search<userInput>]\"><span class={{{ [<currentTiddler>addsuffix[-primaryList]] -[<typeSelectionTiddler>get[text]] +[then[]else[tc-list-item-selected]] }}}><$link to={{{ [<currentTiddler>addprefix[$:/language/Docs/Types/]get[name]] }}}><$view tiddler={{{ [<currentTiddler>addprefix[$:/language/Docs/Types/]] }}} field=\"description\"/> (<$view tiddler={{{ [<currentTiddler>addprefix[$:/language/Docs/Types/]] }}} field=\"name\"/>)</$link></span>\n</$list>\n</$set>\n</$list>\n</$linkcatcher>\n</div>\n</$reveal>\n</$set>\n</div>\n</div>\n</div>\n</$set>\n" - }, - "$:/core/ui/EditTemplate": { - "title": "$:/core/ui/EditTemplate", - "text": "\\define delete-edittemplate-state-tiddlers() <$action-deletetiddler $filter=\"[<newFieldNameTiddler>] [<newFieldValueTiddler>] [<newFieldNameInputTiddler>] [<newFieldNameSelectionTiddler>] [<newTagNameTiddler>] [<newTagNameInputTiddler>] [<newTagNameSelectionTiddler>] [<typeInputTiddler>] [<typeSelectionTiddler>]\"/>\n\\define save-tiddler-actions()\n<$action-sendmessage $message=\"tm-add-tag\" $param={{{ [<newTagNameTiddler>get[text]] }}}/>\n<$action-sendmessage $message=\"tm-add-field\" $name={{{ [<newFieldNameTiddler>get[text]] }}} $value={{{ [<newFieldValueTiddler>get[text]] }}}/>\n<<delete-edittemplate-state-tiddlers>>\n<$action-sendmessage $message=\"tm-save-tiddler\"/>\n\\end\n\\define cancel-delete-tiddler-actions(message)\n<<delete-edittemplate-state-tiddlers>>\n<$action-sendmessage $message=\"tm-$message$-tiddler\"/>\n\\end\n<div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-edit-frame [<currentTiddler>is[tiddler]then[tc-tiddler-exists]] [<currentTiddler>is[missing]!is[shadow]then[tc-tiddler-missing]] [<currentTiddler>is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [<currentTiddler>is[system]then[tc-tiddler-system]] [{!!class}] [<currentTiddler>tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}>\n<$fieldmangler>\n<$vars storyTiddler=<<currentTiddler>> newTagNameTiddler=<<qualify \"$:/temp/NewTagName\">> newFieldNameTiddler=<<qualify \"$:/temp/NewFieldName\">> newFieldValueTiddler=<<qualify \"$:/temp/NewFieldValue\">> newFieldNameInputTiddler=<<qualify \"$:/temp/NewFieldName/input\">> newFieldNameSelectionTiddler=<<qualify \"$:/temp/NewFieldName/selected-item\">> newTagNameInputTiddler=<<qualify \"$:/temp/NewTagName/input\">> newTagNameSelectionTiddler=<<qualify \"$:/temp/NewTagName/selected-item\">> typeInputTiddler=<<qualify \"$:/temp/Type/input\">> typeSelectionTiddler=<<qualify \"$:/temp/Type/selected-item\">>>\n<$keyboard key=\"((cancel-edit-tiddler))\" actions=<<cancel-delete-tiddler-actions \"cancel\">>>\n<$keyboard key=\"((save-tiddler))\" actions=<<save-tiddler-actions>>>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditTemplate]!has[draft.of]]\" variable=\"listItem\">\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n<$transclude tiddler=<<listItem>>/>\n</$set>\n</$list>\n</$keyboard>\n</$keyboard>\n</$vars>\n</$fieldmangler>\n</div>\n" - }, - "$:/core/ui/Buttons/cancel": { - "title": "$:/core/ui/Buttons/cancel", - "tags": "$:/tags/EditToolbar", - "caption": "{{$:/core/images/cancel-button}} {{$:/language/Buttons/Cancel/Caption}}", - "description": "{{$:/language/Buttons/Cancel/Hint}}", - "text": "\\whitespace trim\n<$button actions=<<cancel-delete-tiddler-actions \"cancel\">> tooltip={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/cancel-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Cancel/Caption}}/></span>\n</$list>\n</$button>\n" - }, - "$:/core/ui/Buttons/delete": { - "title": "$:/core/ui/Buttons/delete", - "tags": "$:/tags/EditToolbar $:/tags/ViewToolbar", - "caption": "{{$:/core/images/delete-button}} {{$:/language/Buttons/Delete/Caption}}", - "description": "{{$:/language/Buttons/Delete/Hint}}", - "text": "\\whitespace trim\n<$button actions=<<cancel-delete-tiddler-actions \"delete\">> tooltip={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/delete-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Delete/Caption}}/></span>\n</$list>\n</$button>\n" - }, - "$:/core/ui/Buttons/save": { - "title": "$:/core/ui/Buttons/save", - "tags": "$:/tags/EditToolbar", - "caption": "{{$:/core/images/done-button}} {{$:/language/Buttons/Save/Caption}}", - "description": "{{$:/language/Buttons/Save/Hint}}", - "text": "\\define save-tiddler-button()\n\\whitespace trim\n<$fieldmangler><$button tooltip={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<<tv-config-toolbar-class>>>\n<<save-tiddler-actions>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/done-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Save/Caption}}/></span>\n</$list>\n</$button></$fieldmangler>\n\\end\n<<save-tiddler-button>>\n" - }, - "$:/core/ui/EditorToolbar/bold": { - "title": "$:/core/ui/EditorToolbar/bold", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/bold", - "caption": "{{$:/language/Buttons/Bold/Caption}}", - "description": "{{$:/language/Buttons/Bold/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((bold))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"''\"\n\tsuffix=\"''\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/clear-dropdown": { - "title": "$:/core/ui/EditorToolbar/clear-dropdown", - "text": "''{{$:/language/Buttons/Clear/Hint}}''\n\n<div class=\"tc-colour-chooser\">\n\n<$macrocall $name=\"colour-picker\" actions=\"\"\"\n\n<$action-sendmessage\n\t$message=\"tm-edit-bitmap-operation\"\n\t$param=\"clear\"\n\tcolour=<<colour-picker-value>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n\"\"\"/>\n\n</div>\n" - }, - "$:/core/ui/EditorToolbar/clear": { - "title": "$:/core/ui/EditorToolbar/clear", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/erase", - "caption": "{{$:/language/Buttons/Clear/Caption}}", - "description": "{{$:/language/Buttons/Clear/Hint}}", - "condition": "[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]", - "dropdown": "$:/core/ui/EditorToolbar/clear-dropdown", - "text": "" - }, - "$:/core/ui/EditorToolbar/editor-height-dropdown": { - "title": "$:/core/ui/EditorToolbar/editor-height-dropdown", - "text": "\\define lingo-base() $:/language/Buttons/EditorHeight/\n''<<lingo Hint>>''\n\n<$radio tiddler=\"$:/config/TextEditor/EditorHeight/Mode\" value=\"auto\"> {{$:/core/images/auto-height}} <<lingo Caption/Auto>></$radio>\n\n<$radio tiddler=\"$:/config/TextEditor/EditorHeight/Mode\" value=\"fixed\"> {{$:/core/images/fixed-height}} <<lingo Caption/Fixed>> <$edit-text tag=\"input\" tiddler=\"$:/config/TextEditor/EditorHeight/Height\" default=\"100px\"/></$radio>\n" - }, - "$:/core/ui/EditorToolbar/editor-height": { - "title": "$:/core/ui/EditorToolbar/editor-height", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/fixed-height", - "custom-icon": "yes", - "caption": "{{$:/language/Buttons/EditorHeight/Caption}}", - "description": "{{$:/language/Buttons/EditorHeight/Hint}}", - "condition": "[<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] [<targetTiddler>get[type]match[application/javascript]] [<targetTiddler>get[type]match[application/json]] [<targetTiddler>get[type]match[application/x-tiddler-dictionary]] [<targetTiddler>get[type]match[image/svg+xml]] +[first[]]", - "dropdown": "$:/core/ui/EditorToolbar/editor-height-dropdown", - "text": "<$reveal tag=\"span\" state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"fixed\">\n{{$:/core/images/fixed-height}}\n</$reveal>\n<$reveal tag=\"span\" state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"auto\">\n{{$:/core/images/auto-height}}\n</$reveal>\n" - }, - "$:/core/ui/EditorToolbar/excise-dropdown": { - "title": "$:/core/ui/EditorToolbar/excise-dropdown", - "text": "\\define lingo-base() $:/language/Buttons/Excise/\n\n\\define body(config-title)\n''<<lingo Hint>>''\n\n<<lingo Caption/NewTitle>> <$edit-text tag=\"input\" tiddler=\"$config-title$/new-title\" default=\"\" focus=\"true\"/>\n\n<$set name=\"new-title\" value={{$config-title$/new-title}}>\n<$list filter=\"\"\"[<new-title>is[tiddler]]\"\"\">\n<div class=\"tc-error\">\n<<lingo Caption/TiddlerExists>>\n</div>\n</$list>\n</$set>\n\n<$checkbox tiddler=\"\"\"$config-title$/tagnew\"\"\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"false\"> <<lingo Caption/Tag>></$checkbox>\n\n<<lingo Caption/Replace>> <$select tiddler=\"\"\"$config-title$/type\"\"\" default=\"transclude\">\n<option value=\"link\"><<lingo Caption/Replace/Link>></option>\n<option value=\"transclude\"><<lingo Caption/Replace/Transclusion>></option>\n<option value=\"macro\"><<lingo Caption/Replace/Macro>></option>\n</$select>\n\n<$reveal state=\"\"\"$config-title$/type\"\"\" type=\"match\" text=\"macro\">\n<<lingo Caption/MacroName>> <$edit-text tag=\"input\" tiddler=\"\"\"$config-title$/macro-title\"\"\" default=\"translink\"/>\n</$reveal>\n\n<$button>\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"excise\"\n\ttitle={{$config-title$/new-title}}\n\ttype={{$config-title$/type}}\n\tmacro={{$config-title$/macro-title}}\n\ttagnew={{$config-title$/tagnew}}\n/>\n<$action-deletetiddler\n\t$tiddler=\"$config-title$/new-title\"\n/>\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n<<lingo Caption/Excise>>\n</$button>\n\\end\n\n<$macrocall $name=\"body\" config-title=<<qualify \"$:/state/Excise/\">>/>\n" - }, - "$:/core/ui/EditorToolbar/excise": { - "title": "$:/core/ui/EditorToolbar/excise", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/excise", - "caption": "{{$:/language/Buttons/Excise/Caption}}", - "description": "{{$:/language/Buttons/Excise/Hint}}", - "condition": "[<targetTiddler>type[]] [<targetTiddler>type[text/vnd.tiddlywiki]] +[first[]]", - "shortcuts": "((excise))", - "dropdown": "$:/core/ui/EditorToolbar/excise-dropdown", - "text": "" - }, - "$:/core/ui/EditorToolbar/heading-1": { - "title": "$:/core/ui/EditorToolbar/heading-1", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/heading-1", - "caption": "{{$:/language/Buttons/Heading1/Caption}}", - "description": "{{$:/language/Buttons/Heading1/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "button-classes": "tc-text-editor-toolbar-item-start-group", - "shortcuts": "((heading-1))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"1\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/heading-2": { - "title": "$:/core/ui/EditorToolbar/heading-2", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/heading-2", - "caption": "{{$:/language/Buttons/Heading2/Caption}}", - "description": "{{$:/language/Buttons/Heading2/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((heading-2))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"2\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/heading-3": { - "title": "$:/core/ui/EditorToolbar/heading-3", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/heading-3", - "caption": "{{$:/language/Buttons/Heading3/Caption}}", - "description": "{{$:/language/Buttons/Heading3/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((heading-3))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"3\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/heading-4": { - "title": "$:/core/ui/EditorToolbar/heading-4", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/heading-4", - "caption": "{{$:/language/Buttons/Heading4/Caption}}", - "description": "{{$:/language/Buttons/Heading4/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((heading-4))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"4\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/heading-5": { - "title": "$:/core/ui/EditorToolbar/heading-5", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/heading-5", - "caption": "{{$:/language/Buttons/Heading5/Caption}}", - "description": "{{$:/language/Buttons/Heading5/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((heading-5))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"5\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/heading-6": { - "title": "$:/core/ui/EditorToolbar/heading-6", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/heading-6", - "caption": "{{$:/language/Buttons/Heading6/Caption}}", - "description": "{{$:/language/Buttons/Heading6/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((heading-6))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"6\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/italic": { - "title": "$:/core/ui/EditorToolbar/italic", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/italic", - "caption": "{{$:/language/Buttons/Italic/Caption}}", - "description": "{{$:/language/Buttons/Italic/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((italic))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"//\"\n\tsuffix=\"//\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/line-width-dropdown": { - "title": "$:/core/ui/EditorToolbar/line-width-dropdown", - "text": "\\define lingo-base() $:/language/Buttons/LineWidth/\n\n\\define toolbar-line-width-inner()\n<$button tag=\"a\" tooltip=\"\"\"$(line-width)$\"\"\">\n\n<$action-setfield\n\t$tiddler=\"$:/config/BitmapEditor/LineWidth\"\n\t$value=\"$(line-width)$\"\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<div style=\"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;\"/>\n\n<span style=\"margin-left: 8px;\">\n\n<$text text=\"\"\"$(line-width)$\"\"\"/>\n\n<$reveal state=\"$:/config/BitmapEditor/LineWidth\" type=\"match\" text=\"\"\"$(line-width)$\"\"\" tag=\"span\">\n\n<$entity entity=\" \"/>\n\n<$entity entity=\"✓\"/>\n\n</$reveal>\n\n</span>\n\n</$button>\n\\end\n\n''<<lingo Hint>>''\n\n<$list filter={{$:/config/BitmapEditor/LineWidths}} variable=\"line-width\">\n\n<<toolbar-line-width-inner>>\n\n</$list>\n" - }, - "$:/core/ui/EditorToolbar/line-width": { - "title": "$:/core/ui/EditorToolbar/line-width", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/line-width", - "caption": "{{$:/language/Buttons/LineWidth/Caption}}", - "description": "{{$:/language/Buttons/LineWidth/Hint}}", - "condition": "[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]", - "dropdown": "$:/core/ui/EditorToolbar/line-width-dropdown", - "text": "<$text text={{$:/config/BitmapEditor/LineWidth}}/>\n" - }, - "$:/core/ui/EditorToolbar/link-dropdown": { - "title": "$:/core/ui/EditorToolbar/link-dropdown", - "text": "\\define lingo-base() $:/language/Buttons/Link/\n\n\\define add-link-actions()\n<$action-sendmessage $message=\"tm-edit-text-operation\" $param=\"make-link\" text={{$(linkTiddler)$}} />\n<$action-deletetiddler $filter=\"[<dropdown-state>] [<searchTiddler>] [<linkTiddler>] [<storeTitle>] [<searchListState>]\"/>\n\\end\n\n\\define get-focus-selector() [data-tiddler-title=\"$(cssEscapedTitle)$\"] .tc-create-wikitext-link input\n\n\\define cancel-search-actions-inner()\n<$set name=\"userInput\" value={{{ [<storeTitle>get[text]] }}}><$list filter=\"[<searchTiddler>get[text]!match<userInput>]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[<searchTiddler>] [<linkTiddler>] [<storeTitle>] [<searchListState>]\"/>\"\"\"><$action-setfield $tiddler=<<searchTiddler>> text=<<userInput>>/><$action-setfield $tiddler=<<refreshTitle>> text=\"yes\"/></$list></$set>\n\\end\n\n\\define cancel-search-actions() <$list filter=\"[<storeTitle>!has[text]] +[<searchTiddler>!has[text]]\" emptyMessage=\"\"\"<<cancel-search-actions-inner>>\"\"\"><$action-sendmessage $message=\"tm-edit-text-operation\" $param=\"wrap-selection\" prefix=\"\" suffix=\"\"/></$list>\n\n\\define external-link()\n<$button class=\"tc-btn-invisible\" style=\"width: auto; display: inline-block; background-colour: inherit;\" actions=<<add-link-actions>>>\n{{$:/core/images/chevron-right}}\n</$button>\n\\end\n\n\\define set-next-input-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab/search-results/sidebar\" tag=\"$:/tags/SearchResults\" beforeafter=\"$beforeafter$\" defaultState={{$:/config/SearchResults/Default}} actions=\"\"\"<$action-setfield $tiddler=\"$:/state/search/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define body(config-title)\n''<<lingo Hint>>''\n\n<$vars searchTiddler=\"\"\"$config-title$/search\"\"\" linkTiddler=\"\"\"$config-title$/link\"\"\" linktext=\"\" searchListState=<<qualify \"$:/temp/link-search/selected-item\">> refreshTitle=<<qualify \"$:/temp/link-search/refresh\">> storeTitle=<<qualify \"$:/temp/link-search/input\">>>\n\n<$vars linkTiddler=<<searchTiddler>>>\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">> class=\"tc-create-wikitext-link\">\n<$macrocall $name=\"keyboard-driven-input\" tiddler=<<searchTiddler>> storeTitle=<<storeTitle>>\n\t\tselectionStateTitle=<<searchListState>> refreshTitle=<<refreshTitle>> type=\"search\" filterMinLength=\"1\"\n\t\ttag=\"input\" focus=\"true\" class=\"tc-popup-handle\" inputCancelActions=<<cancel-search-actions>> \n\t\tinputAcceptActions=<<add-link-actions>> placeholder={{$:/language/Search/Search}} default=\"\" \n\t\tconfigTiddlerFilter=\"[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]\" />\n</$keyboard>\n</$keyboard>\n<$reveal tag=\"span\" state=<<storeTitle>> type=\"nomatch\" text=\"\">\n<<external-link>>\n<$button class=\"tc-btn-invisible\" style=\"width: auto; display: inline-block; background-colour: inherit;\">\n<<cancel-search-actions>><$set name=\"cssEscapedTitle\" value={{{ [<storyTiddler>escapecss[]] }}}><$action-sendmessage $message=\"tm-focus-selector\" $param=<<get-focus-selector>>/></$set>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</$vars>\n\n<$reveal tag=\"div\" state=<<storeTitle>> type=\"nomatch\" text=\"\">\n\n<$linkcatcher actions=<<add-link-actions>> to=<<linkTiddler>>>\n\n<$vars userInput={{{ [<storeTitle>get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}}>\n\n{{$:/core/ui/SearchResults}}\n\n</$vars>\n\n</$linkcatcher>\n\n</$reveal>\n\n</$vars>\n\n\\end\n\n<$macrocall $name=\"body\" config-title=<<qualify \"$:/state/Link/\">>/>\n" - }, - "$:/core/ui/EditorToolbar/link": { - "title": "$:/core/ui/EditorToolbar/link", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/link", - "caption": "{{$:/language/Buttons/Link/Caption}}", - "description": "{{$:/language/Buttons/Link/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "button-classes": "tc-text-editor-toolbar-item-start-group", - "shortcuts": "((link))", - "dropdown": "$:/core/ui/EditorToolbar/link-dropdown", - "text": "" - }, - "$:/core/ui/EditorToolbar/linkify": { - "title": "$:/core/ui/EditorToolbar/linkify", - "caption": "{{$:/language/Buttons/Linkify/Caption}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "description": "{{$:/language/Buttons/Linkify/Hint}}", - "icon": "$:/core/images/linkify", - "list-before": "$:/core/ui/EditorToolbar/mono-block", - "shortcuts": "((linkify))", - "tags": "$:/tags/EditorToolbar", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"[[\"\n\tsuffix=\"]]\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/list-bullet": { - "title": "$:/core/ui/EditorToolbar/list-bullet", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/list-bullet", - "caption": "{{$:/language/Buttons/ListBullet/Caption}}", - "description": "{{$:/language/Buttons/ListBullet/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((list-bullet))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"*\"\n\tcount=\"1\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/list-number": { - "title": "$:/core/ui/EditorToolbar/list-number", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/list-number", - "caption": "{{$:/language/Buttons/ListNumber/Caption}}", - "description": "{{$:/language/Buttons/ListNumber/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((list-number))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"#\"\n\tcount=\"1\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/mono-block": { - "title": "$:/core/ui/EditorToolbar/mono-block", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/mono-block", - "caption": "{{$:/language/Buttons/MonoBlock/Caption}}", - "description": "{{$:/language/Buttons/MonoBlock/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "button-classes": "tc-text-editor-toolbar-item-start-group", - "shortcuts": "((mono-block))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-lines\"\n\tprefix=\"\n```\"\n\tsuffix=\"```\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/mono-line": { - "title": "$:/core/ui/EditorToolbar/mono-line", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/mono-line", - "caption": "{{$:/language/Buttons/MonoLine/Caption}}", - "description": "{{$:/language/Buttons/MonoLine/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((mono-line))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"`\"\n\tsuffix=\"`\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/more-dropdown": { - "title": "$:/core/ui/EditorToolbar/more-dropdown", - "text": "\\define config-title()\n$:/config/EditorToolbarButtons/Visibility/$(toolbarItem)$\n\\end\n\n\\define conditional-button()\n<$list filter={{$(toolbarItem)$!!condition}} variable=\"condition\">\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/toolbar/button\" mode=\"inline\"/> <$transclude tiddler=<<toolbarItem>> field=\"description\"/>\n</$list>\n\\end\n\n<div class=\"tc-text-editor-toolbar-more\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]] -[[$:/core/ui/EditorToolbar/more]]\">\n<$reveal type=\"match\" state=<<config-visibility-title>> text=\"hide\" tag=\"div\">\n<<conditional-button>>\n</$reveal>\n</$list>\n</div>\n" - }, - "$:/core/ui/EditorToolbar/more": { - "title": "$:/core/ui/EditorToolbar/more", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/down-arrow", - "caption": "{{$:/language/Buttons/More/Caption}}", - "description": "{{$:/language/Buttons/More/Hint}}", - "condition": "[<targetTiddler>]", - "dropdown": "$:/core/ui/EditorToolbar/more-dropdown", - "text": "" - }, - "$:/core/ui/EditorToolbar/opacity-dropdown": { - "title": "$:/core/ui/EditorToolbar/opacity-dropdown", - "text": "\\define lingo-base() $:/language/Buttons/Opacity/\n\n\\define toolbar-opacity-inner()\n<$button tag=\"a\" tooltip=\"\"\"$(opacity)$\"\"\">\n\n<$action-setfield\n\t$tiddler=\"$:/config/BitmapEditor/Opacity\"\n\t$value=\"$(opacity)$\"\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<div style=\"display: inline-block; vertical-align: middle; background-color: $(current-paint-colour)$; opacity: $(opacity)$; width: 1em; height: 1em; border-radius: 50%;\"/>\n\n<span style=\"margin-left: 8px;\">\n\n<$text text=\"\"\"$(opacity)$\"\"\"/>\n\n<$reveal state=\"$:/config/BitmapEditor/Opacity\" type=\"match\" text=\"\"\"$(opacity)$\"\"\" tag=\"span\">\n\n<$entity entity=\" \"/>\n\n<$entity entity=\"✓\"/>\n\n</$reveal>\n\n</span>\n\n</$button>\n\\end\n\n\\define toolbar-opacity()\n''<<lingo Hint>>''\n\n<$list filter={{$:/config/BitmapEditor/Opacities}} variable=\"opacity\">\n\n<<toolbar-opacity-inner>>\n\n</$list>\n\\end\n\n<$set name=\"current-paint-colour\" value={{$:/config/BitmapEditor/Colour}}>\n\n<$set name=\"current-opacity\" value={{$:/config/BitmapEditor/Opacity}}>\n\n<<toolbar-opacity>>\n\n</$set>\n\n</$set>\n" - }, - "$:/core/ui/EditorToolbar/opacity": { - "title": "$:/core/ui/EditorToolbar/opacity", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/opacity", - "caption": "{{$:/language/Buttons/Opacity/Caption}}", - "description": "{{$:/language/Buttons/Opacity/Hint}}", - "condition": "[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]", - "dropdown": "$:/core/ui/EditorToolbar/opacity-dropdown", - "text": "<$text text={{$:/config/BitmapEditor/Opacity}}/>\n" - }, - "$:/core/ui/EditorToolbar/paint-dropdown": { - "title": "$:/core/ui/EditorToolbar/paint-dropdown", - "text": "''{{$:/language/Buttons/Paint/Hint}}''\n\n<$macrocall $name=\"colour-picker\" actions=\"\"\"\n\n<$action-setfield\n\t$tiddler=\"$:/config/BitmapEditor/Colour\"\n\t$value=<<colour-picker-value>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n\"\"\"/>\n" - }, - "$:/core/ui/EditorToolbar/paint": { - "title": "$:/core/ui/EditorToolbar/paint", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/paint", - "caption": "{{$:/language/Buttons/Paint/Caption}}", - "description": "{{$:/language/Buttons/Paint/Hint}}", - "condition": "[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]", - "dropdown": "$:/core/ui/EditorToolbar/paint-dropdown", - "text": "\\define toolbar-paint()\n<div style=\"display: inline-block; vertical-align: middle; background-color: $(colour-picker-value)$; width: 1em; height: 1em; border-radius: 50%;\"/>\n\\end\n<$set name=\"colour-picker-value\" value={{$:/config/BitmapEditor/Colour}}>\n<<toolbar-paint>>\n</$set>\n" - }, - "$:/core/ui/EditorToolbar/picture-dropdown": { - "title": "$:/core/ui/EditorToolbar/picture-dropdown", - "text": "\\define replacement-text()\n[img[$(imageTitle)$]]\n\\end\n\n''{{$:/language/Buttons/Picture/Hint}}''\n\n<$macrocall $name=\"image-picker\" actions=\"\"\"\n\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"replace-selection\"\n\ttext=<<replacement-text>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n\"\"\"/>\n" - }, - "$:/core/ui/EditorToolbar/picture": { - "title": "$:/core/ui/EditorToolbar/picture", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/picture", - "caption": "{{$:/language/Buttons/Picture/Caption}}", - "description": "{{$:/language/Buttons/Picture/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((picture))", - "dropdown": "$:/core/ui/EditorToolbar/picture-dropdown", - "text": "" - }, - "$:/core/ui/EditorToolbar/preview-type-dropdown": { - "title": "$:/core/ui/EditorToolbar/preview-type-dropdown", - "text": "\\define preview-type-button()\n<$button tag=\"a\">\n\n<$action-setfield $tiddler=\"$:/state/editpreviewtype\" $value=\"$(previewType)$\"/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<$transclude tiddler=<<previewType>> field=\"caption\" mode=\"inline\">\n\n<$view tiddler=<<previewType>> field=\"title\" mode=\"inline\"/>\n\n</$transclude> \n\n<$reveal tag=\"span\" state=\"$:/state/editpreviewtype\" type=\"match\" text=<<previewType>> default=\"$:/core/ui/EditTemplate/body/preview/output\">\n\n<$entity entity=\" \"/>\n\n<$entity entity=\"✓\"/>\n\n</$reveal>\n\n</$button>\n\\end\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditPreview]!has[draft.of]]\" variable=\"previewType\">\n\n<<preview-type-button>>\n\n</$list>\n" - }, - "$:/core/ui/EditorToolbar/preview-type": { - "title": "$:/core/ui/EditorToolbar/preview-type", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/chevron-down", - "caption": "{{$:/language/Buttons/PreviewType/Caption}}", - "description": "{{$:/language/Buttons/PreviewType/Hint}}", - "condition": "[all[shadows+tiddlers]tag[$:/tags/EditPreview]!has[draft.of]butfirst[]limit[1]]", - "button-classes": "tc-text-editor-toolbar-item-adjunct", - "dropdown": "$:/core/ui/EditorToolbar/preview-type-dropdown" - }, - "$:/core/ui/EditorToolbar/preview": { - "title": "$:/core/ui/EditorToolbar/preview", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/preview-open", - "custom-icon": "yes", - "caption": "{{$:/language/Buttons/Preview/Caption}}", - "description": "{{$:/language/Buttons/Preview/Hint}}", - "condition": "[<targetTiddler>]", - "button-classes": "tc-text-editor-toolbar-item-start-group", - "shortcuts": "((preview))", - "text": "<$reveal state=\"$:/state/showeditpreview\" type=\"match\" text=\"yes\" tag=\"span\">\n{{$:/core/images/preview-open}}\n<$action-setfield $tiddler=\"$:/state/showeditpreview\" $value=\"no\"/>\n</$reveal>\n<$reveal state=\"$:/state/showeditpreview\" type=\"nomatch\" text=\"yes\" tag=\"span\">\n{{$:/core/images/preview-closed}}\n<$action-setfield $tiddler=\"$:/state/showeditpreview\" $value=\"yes\"/>\n</$reveal>\n" - }, - "$:/core/ui/EditorToolbar/quote": { - "title": "$:/core/ui/EditorToolbar/quote", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/quote", - "caption": "{{$:/language/Buttons/Quote/Caption}}", - "description": "{{$:/language/Buttons/Quote/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((quote))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-lines\"\n\tprefix=\"\n<<<\"\n\tsuffix=\"<<<\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/rotate-left": { - "title": "$:/core/ui/EditorToolbar/rotate-left", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/rotate-left", - "caption": "{{$:/language/Buttons/RotateLeft/Caption}}", - "description": "{{$:/language/Buttons/RotateLeft/Hint}}", - "condition": "[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-bitmap-operation\"\n\t$param=\"rotate-left\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/size-dropdown": { - "title": "$:/core/ui/EditorToolbar/size-dropdown", - "text": "\\define lingo-base() $:/language/Buttons/Size/\n\n\\define toolbar-button-size-preset(config-title)\n<$set name=\"width\" filter=\"$(sizePair)$ +[first[]]\">\n\n<$set name=\"height\" filter=\"$(sizePair)$ +[last[]]\">\n\n<$button tag=\"a\">\n\n<$action-setfield\n\t$tiddler=\"\"\"$config-title$/new-width\"\"\"\n\t$value=<<width>>\n/>\n\n<$action-setfield\n\t$tiddler=\"\"\"$config-title$/new-height\"\"\"\n\t$value=<<height>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=\"\"\"$config-title$/presets-popup\"\"\"\n/>\n\n<$text text=<<width>>/> × <$text text=<<height>>/>\n\n</$button>\n\n</$set>\n\n</$set>\n\\end\n\n\\define toolbar-button-size(config-title)\n''{{$:/language/Buttons/Size/Hint}}''\n\n<<lingo Caption/Width>> <$edit-text tag=\"input\" tiddler=\"\"\"$config-title$/new-width\"\"\" default=<<tv-bitmap-editor-width>> focus=\"true\" size=\"8\"/> <<lingo Caption/Height>> <$edit-text tag=\"input\" tiddler=\"\"\"$config-title$/new-height\"\"\" default=<<tv-bitmap-editor-height>> size=\"8\"/> <$button popup=\"\"\"$config-title$/presets-popup\"\"\" class=\"tc-btn-invisible tc-popup-keep\" style=\"width: auto; display: inline-block; background-colour: inherit;\" selectedClass=\"tc-selected\">\n{{$:/core/images/down-arrow}}\n</$button>\n\n<$reveal tag=\"span\" state=\"\"\"$config-title$/presets-popup\"\"\" type=\"popup\" position=\"belowleft\" animate=\"yes\">\n\n<div class=\"tc-drop-down tc-popup-keep\">\n\n<$list filter={{$:/config/BitmapEditor/ImageSizes}} variable=\"sizePair\">\n\n<$macrocall $name=\"toolbar-button-size-preset\" config-title=\"$config-title$\"/>\n\n</$list>\n\n</div>\n\n</$reveal>\n\n<$button>\n<$action-sendmessage\n\t$message=\"tm-edit-bitmap-operation\"\n\t$param=\"resize\"\n\twidth={{$config-title$/new-width}}\n\theight={{$config-title$/new-height}}\n/>\n<$action-deletetiddler\n\t$tiddler=\"\"\"$config-title$/new-width\"\"\"\n/>\n<$action-deletetiddler\n\t$tiddler=\"\"\"$config-title$/new-height\"\"\"\n/>\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n<<lingo Caption/Resize>>\n</$button>\n\\end\n\n<$macrocall $name=\"toolbar-button-size\" config-title=<<qualify \"$:/state/Size/\">>/>\n" - }, - "$:/core/ui/EditorToolbar/size": { - "title": "$:/core/ui/EditorToolbar/size", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/size", - "caption": "{{$:/language/Buttons/Size/Caption}}", - "description": "{{$:/language/Buttons/Size/Hint}}", - "condition": "[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]", - "dropdown": "$:/core/ui/EditorToolbar/size-dropdown", - "text": "" - }, - "$:/core/ui/EditorToolbar/stamp-dropdown": { - "title": "$:/core/ui/EditorToolbar/stamp-dropdown", - "text": "\\define toolbar-button-stamp-inner()\n<$button tag=\"a\">\n\n<$list filter=\"[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]]\">\n\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"replace-selection\"\n\ttext={{$(snippetTitle)$}}\n/>\n\n</$list>\n\n\n<$list filter=\"[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]]\">\n\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix={{{ [[$(snippetTitle)$]addsuffix[/prefix]get[text]] }}}\nsuffix={{{ [[$(snippetTitle)$]addsuffix[/suffix]get[text]] }}}\n/>\n\n</$list>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<$transclude tiddler=<<snippetTitle>> field=\"caption\" mode=\"inline\">\n\n<$view tiddler=<<snippetTitle>> field=\"title\" />\n\n</$transclude>\n\n</$button>\n\\end\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TextEditor/Snippet]!has[draft.of]sort[caption]]\" variable=\"snippetTitle\">\n\n<<toolbar-button-stamp-inner>>\n\n</$list>\n\n----\n\n<$button tag=\"a\">\n\n<$action-sendmessage\n\t$message=\"tm-new-tiddler\"\n\ttags=\"$:/tags/TextEditor/Snippet\"\n\tcaption={{$:/language/Buttons/Stamp/New/Title}}\n\ttext={{$:/language/Buttons/Stamp/New/Text}}\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<em>\n\n<$text text={{$:/language/Buttons/Stamp/Caption/New}}/>\n\n</em>\n\n</$button>\n" - }, - "$:/core/ui/EditorToolbar/stamp": { - "title": "$:/core/ui/EditorToolbar/stamp", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/stamp", - "caption": "{{$:/language/Buttons/Stamp/Caption}}", - "description": "{{$:/language/Buttons/Stamp/Hint}}", - "condition": "[<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] [<targetTiddler>get[type]match[application/javascript]] [<targetTiddler>get[type]match[application/json]] [<targetTiddler>get[type]match[application/x-tiddler-dictionary]] [<targetTiddler>get[type]match[image/svg+xml]] +[first[]]", - "shortcuts": "((stamp))", - "dropdown": "$:/core/ui/EditorToolbar/stamp-dropdown", - "text": "" - }, - "$:/core/ui/EditorToolbar/strikethrough": { - "title": "$:/core/ui/EditorToolbar/strikethrough", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/strikethrough", - "caption": "{{$:/language/Buttons/Strikethrough/Caption}}", - "description": "{{$:/language/Buttons/Strikethrough/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((strikethrough))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"~~\"\n\tsuffix=\"~~\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/subscript": { - "title": "$:/core/ui/EditorToolbar/subscript", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/subscript", - "caption": "{{$:/language/Buttons/Subscript/Caption}}", - "description": "{{$:/language/Buttons/Subscript/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((subscript))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\",,\"\n\tsuffix=\",,\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/superscript": { - "title": "$:/core/ui/EditorToolbar/superscript", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/superscript", - "caption": "{{$:/language/Buttons/Superscript/Caption}}", - "description": "{{$:/language/Buttons/Superscript/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((superscript))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"^^\"\n\tsuffix=\"^^\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/transcludify": { - "title": "$:/core/ui/EditorToolbar/transcludify", - "caption": "{{$:/language/Buttons/Transcludify/Caption}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "description": "{{$:/language/Buttons/Transcludify/Hint}}", - "icon": "$:/core/images/transcludify", - "list-before": "$:/core/ui/EditorToolbar/mono-block", - "shortcuts": "((transcludify))", - "tags": "$:/tags/EditorToolbar", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"{{\"\n\tsuffix=\"}}\"\n/>\n" - }, - "$:/core/ui/EditorToolbar/underline": { - "title": "$:/core/ui/EditorToolbar/underline", - "tags": "$:/tags/EditorToolbar", - "icon": "$:/core/images/underline", - "caption": "{{$:/language/Buttons/Underline/Caption}}", - "description": "{{$:/language/Buttons/Underline/Hint}}", - "condition": "[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]", - "shortcuts": "((underline))", - "text": "<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"__\"\n\tsuffix=\"__\"\n/>\n" - }, - "$:/core/Filters/AllTags": { - "title": "$:/core/Filters/AllTags", - "tags": "$:/tags/Filter", - "filter": "[tags[]!is[system]sort[title]]", - "description": "{{$:/language/Filters/AllTags}}", - "text": "" - }, - "$:/core/Filters/AllTiddlers": { - "title": "$:/core/Filters/AllTiddlers", - "tags": "$:/tags/Filter", - "filter": "[!is[system]sort[title]]", - "description": "{{$:/language/Filters/AllTiddlers}}", - "text": "" - }, - "$:/core/Filters/Drafts": { - "title": "$:/core/Filters/Drafts", - "tags": "$:/tags/Filter", - "filter": "[has[draft.of]sort[title]]", - "description": "{{$:/language/Filters/Drafts}}", - "text": "" - }, - "$:/core/Filters/Missing": { - "title": "$:/core/Filters/Missing", - "tags": "$:/tags/Filter", - "filter": "[all[missing]sort[title]]", - "description": "{{$:/language/Filters/Missing}}", - "text": "" - }, - "$:/core/Filters/Orphans": { - "title": "$:/core/Filters/Orphans", - "tags": "$:/tags/Filter", - "filter": "[all[orphans]sort[title]]", - "description": "{{$:/language/Filters/Orphans}}", - "text": "" - }, - "$:/core/Filters/OverriddenShadowTiddlers": { - "title": "$:/core/Filters/OverriddenShadowTiddlers", - "tags": "$:/tags/Filter", - "filter": "[is[shadow]]", - "description": "{{$:/language/Filters/OverriddenShadowTiddlers}}", - "text": "" - }, - "$:/core/Filters/RecentSystemTiddlers": { - "title": "$:/core/Filters/RecentSystemTiddlers", - "tags": "$:/tags/Filter", - "filter": "[has[modified]!sort[modified]limit[50]]", - "description": "{{$:/language/Filters/RecentSystemTiddlers}}", - "text": "" - }, - "$:/core/Filters/RecentTiddlers": { - "title": "$:/core/Filters/RecentTiddlers", - "tags": "$:/tags/Filter", - "filter": "[!is[system]has[modified]!sort[modified]limit[50]]", - "description": "{{$:/language/Filters/RecentTiddlers}}", - "text": "" - }, - "$:/core/Filters/SessionTiddlers": { - "title": "$:/core/Filters/SessionTiddlers", - "tags": "$:/tags/Filter", - "filter": "[haschanged[]]", - "description": "{{$:/language/Filters/SessionTiddlers}}", - "text": "" - }, - "$:/core/Filters/ShadowTiddlers": { - "title": "$:/core/Filters/ShadowTiddlers", - "tags": "$:/tags/Filter", - "filter": "[all[shadows]sort[title]]", - "description": "{{$:/language/Filters/ShadowTiddlers}}", - "text": "" - }, - "$:/core/Filters/StoryList": { - "title": "$:/core/Filters/StoryList", - "tags": "$:/tags/Filter", - "filter": "[list[$:/StoryList]] -$:/AdvancedSearch", - "description": "{{$:/language/Filters/StoryList}}", - "text": "" - }, - "$:/core/Filters/SystemTags": { - "title": "$:/core/Filters/SystemTags", - "tags": "$:/tags/Filter", - "filter": "[all[shadows+tiddlers]tags[]is[system]sort[title]]", - "description": "{{$:/language/Filters/SystemTags}}", - "text": "" - }, - "$:/core/Filters/SystemTiddlers": { - "title": "$:/core/Filters/SystemTiddlers", - "tags": "$:/tags/Filter", - "filter": "[is[system]sort[title]]", - "description": "{{$:/language/Filters/SystemTiddlers}}", - "text": "" - }, - "$:/core/Filters/TypedTiddlers": { - "title": "$:/core/Filters/TypedTiddlers", - "tags": "$:/tags/Filter", - "filter": "[!is[system]has[type]each[type]sort[type]] -[type[text/vnd.tiddlywiki]]", - "description": "{{$:/language/Filters/TypedTiddlers}}", - "text": "" - }, - "$:/core/ui/ImportListing": { - "title": "$:/core/ui/ImportListing", - "text": "\\define lingo-base() $:/language/Import/\n\n\\define messageField() message-$(payloadTiddler)$\n\n\\define payloadTitleFilter() [<currentTiddler>get<renameField>minlength[1]else<payloadTiddler>]\n\n\\define overWriteWarning()\n<$list filter=\"[<currentTiddler>!has<suppressedField>]\">\n<$text text={{{[subfilter<payloadTitleFilter>!is[tiddler]then[]] ~[<lingo-base>addsuffix[Listing/Rename/OverwriteWarning]get[text]]}}}/>\n</$list>\n\\end\n\n\\define selectionField() selection-$(payloadTiddler)$\n\n\\define renameField() rename-$(payloadTiddler)$\n\n\\define suppressedField() suppressed-$(payloadTiddler)$\n\n\\define newImportTitleTiddler() $:/temp/NewImportTitle-$(payloadTiddler)$\n\n\\define previewPopupState() $(currentTiddler)$!!popup-$(payloadTiddler)$\n\n\\define renameFieldState() $(currentTiddler)$!!state-rename-$(payloadTiddler)$\n\n\\define select-all-actions()\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" variable=\"payloadTiddler\">\n<$action-setfield $field={{{ [<payloadTiddler>addprefix[selection-]] }}} $value={{$:/state/import/select-all}}/>\n</$list>\n\\end\n\n<table class=\"tc-import-table\">\n<tbody>\n<tr>\n<th align=\"left\">\n<$checkbox tiddler=\"$:/state/import/select-all\" field=\"text\" checked=\"checked\" unchecked=\"unchecked\" default=\"checked\" actions=<<select-all-actions>>>\n<<lingo Listing/Select/Caption>>\n</$checkbox>\n</th>\n<th>\n<<lingo Listing/Title/Caption>>\n</th>\n<th>\n<<lingo Listing/Status/Caption>>\n</th>\n</tr>\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" variable=\"payloadTiddler\">\n<tr class={{{[<currentTiddler>has<suppressedField>then[tc-row-disabled]] ~[subfilter<payloadTitleFilter>is[tiddler]then[tc-row-warning]] }}}>\n<td>\n<$checkbox field=<<selectionField>> checked=\"checked\" unchecked=\"unchecked\" default=\"checked\" disabled={{{[<currentTiddler>has<suppressedField>then[yes]else[no]]}}}/>\n</td>\n<td>\n<$reveal type=\"nomatch\" state=<<renameFieldState>> text=\"yes\" tag=\"div\">\n<$reveal type=\"nomatch\" state=<<previewPopupState>> text=\"yes\" tag=\"div\" class=\"tc-flex\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown tc-flex-grow-1 tc-word-break\" set=<<previewPopupState>> setTo=\"yes\" disabled={{{[<currentTiddler>has<suppressedField>then[yes]else[no]]}}}>\n<span class=\"tc-small-gap-right\">{{$:/core/images/right-arrow}}</span><$text text={{{[subfilter<payloadTitleFilter>]}}}/>\n</$button>\n<$list filter=\"[<currentTiddler>!has<suppressedField>]\"><$button class=\"tc-btn-invisible\" set=<<renameFieldState>> setTo=\"yes\" tooltip={{{[<lingo-base>addsuffix[Listing/Rename/Tooltip]get[text]]}}}>{{$:/core/images/edit-button}}</$button></$list>\n</$reveal>\n<$reveal type=\"match\" state=<<previewPopupState>> text=\"yes\" tag=\"div\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<previewPopupState>> setTo=\"no\">\n<span class=\"tc-small-gap-right\">{{$:/core/images/down-arrow}}</span><$text text={{{[subfilter<payloadTitleFilter>]}}}/>\n</$button>\n</$reveal>\n</$reveal>\n<$reveal type=\"match\" state=<<renameFieldState>> text=\"yes\" tag=\"div\">\n<$text text={{{[<lingo-base>addsuffix[Listing/Rename/Prompt]get[text]]}}}/>\n</$reveal>\n</td>\n<td>\n<$view field=<<messageField>>/>\n<<overWriteWarning>>\n</td>\n</tr>\n<$reveal type=\"match\" state=<<renameFieldState>> text=\"yes\" tag=\"tr\">\n<td colspan=\"3\">\n<div class=\"tc-flex\">\n<$edit-text tiddler=<<newImportTitleTiddler>> default={{{[subfilter<payloadTitleFilter>]}}} tag=\"input\" class=\"tc-import-rename tc-flex-grow-1\"/><span class=\"tc-small-gap-left\"><$button class=\"tc-btn-invisible\" set=<<renameFieldState>> setTo=\"no\" tooltip={{{[<lingo-base>addsuffix[Listing/Rename/CancelRename]get[text]]}}}>{{$:/core/images/close-button}}<$action-deletetiddler $tiddler=<<newImportTitleTiddler>>/></$button><span class=\"tc-small-gap-right\"/></span><$button class=\"tc-btn-invisible\" set=<<renameFieldState>> setTo=\"no\" tooltip={{{[<lingo-base>addsuffix[Listing/Rename/ConfirmRename]get[text]]}}}>{{$:/core/images/done-button}}<$action-setfield $field=<<renameField>> $value={{{[<newImportTitleTiddler>get[text]minlength[1]else<payloadTiddler>]}}} /><$action-deletetiddler $tiddler=<<newImportTitleTiddler>>/></$button>\n</div>\n</td>\n</$reveal>\n<tr>\n<td colspan=\"3\">\n<$reveal type=\"match\" text=\"yes\" state=<<previewPopupState>> tag=\"div\">\n<$list filter=\"[{$:/state/importpreviewtype}has[text]]\" variable=\"listItem\" emptyMessage={{$:/core/ui/ImportPreviews/Text}}>\n<$transclude tiddler={{$:/state/importpreviewtype}}/>\n</$list>\n</$reveal>\n</td>\n</tr>\n</$list>\n</tbody>\n</table>\n" - }, - "$:/core/ui/ImportPreviews/Diff": { - "title": "$:/core/ui/ImportPreviews/Diff", - "tags": "$:/tags/ImportPreview", - "caption": "{{$:/language/Import/Listing/Preview/Diff}}", - "text": "<$macrocall $name=\"compareTiddlerText\" sourceTiddlerTitle=<<payloadTiddler>> destTiddlerTitle=<<currentTiddler>> destSubTiddlerTitle=<<payloadTiddler>>/>\n" - }, - "$:/core/ui/ImportPreviews/DiffFields": { - "title": "$:/core/ui/ImportPreviews/DiffFields", - "tags": "$:/tags/ImportPreview", - "caption": "{{$:/language/Import/Listing/Preview/DiffFields}}", - "text": "<$macrocall $name=\"compareTiddlers\" sourceTiddlerTitle=<<payloadTiddler>> destTiddlerTitle=<<currentTiddler>> destSubTiddlerTitle=<<payloadTiddler>> exclude=\"text\"/>\n" - }, - "$:/core/ui/ImportPreviews/Fields": { - "title": "$:/core/ui/ImportPreviews/Fields", - "tags": "$:/tags/ImportPreview", - "caption": "{{$:/language/Import/Listing/Preview/Fields}}", - "text": "<table class=\"tc-view-field-table\">\n<tbody>\n<$list filter=\"[<payloadTiddler>subtiddlerfields<currentTiddler>sort[]] -text\" variable=\"fieldName\">\n<tr class=\"tc-view-field\">\n<td class=\"tc-view-field-name\">\n<$text text=<<fieldName>>/>\n</td>\n<td class=\"tc-view-field-value\">\n<$view field=<<fieldName>> tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>>/>\n</td>\n</tr>\n</$list>\n</tbody>\n</table>\n" - }, - "$:/core/ui/ImportPreviews/Text": { - "title": "$:/core/ui/ImportPreviews/Text", - "tags": "$:/tags/ImportPreview", - "caption": "{{$:/language/Import/Listing/Preview/Text}}", - "text": "<$transclude tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>> mode=\"block\"/>\n" - }, - "$:/core/ui/ImportPreviews/TextRaw": { - "title": "$:/core/ui/ImportPreviews/TextRaw", - "tags": "$:/tags/ImportPreview", - "caption": "{{$:/language/Import/Listing/Preview/TextRaw}}", - "text": "<pre><code><$view tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>> /></code></pre>" - }, - "$:/core/ui/KeyboardShortcuts/advanced-search": { - "title": "$:/core/ui/KeyboardShortcuts/advanced-search", - "tags": "$:/tags/KeyboardShortcut", - "key": "((advanced-search))", - "text": "<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\">\n<$action-navigate $to=\"$:/AdvancedSearch\"/>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\"[data-tiddler-title=\"$:/AdvancedSearch\"] .tc-search input\"\"\" preventScroll=\"true\"/>\n</$navigator>\n" - }, - "$:/core/ui/KeyboardShortcuts/change-sidebar-layout": { - "title": "$:/core/ui/KeyboardShortcuts/change-sidebar-layout", - "tags": "$:/tags/KeyboardShortcut", - "key": "((change-sidebar-layout))", - "text": "<$list filter=\"[{$:/themes/tiddlywiki/vanilla/options/sidebarlayout}match[fixed-fluid]]\" \nemptyMessage=\"\"\"<$action-setfield $tiddler=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\" text=\"fixed-fluid\"/>\"\"\">\n<$action-setfield $tiddler=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\" text=\"fluid-fixed\"/>\n</$list>\n" - }, - "$:/core/ui/KeyboardShortcuts/new-image": { - "title": "$:/core/ui/KeyboardShortcuts/new-image", - "tags": "$:/tags/KeyboardShortcut", - "key": "((new-image))", - "text": "<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n{{$:/core/ui/Actions/new-image}}\n</$navigator>\n" - }, - "$:/core/ui/KeyboardShortcuts/new-journal": { - "title": "$:/core/ui/KeyboardShortcuts/new-journal", - "tags": "$:/tags/KeyboardShortcut", - "key": "((new-journal))", - "text": "<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n{{$:/core/ui/Actions/new-journal}}\n</$navigator>\n" - }, - "$:/core/ui/KeyboardShortcuts/new-tiddler": { - "title": "$:/core/ui/KeyboardShortcuts/new-tiddler", - "tags": "$:/tags/KeyboardShortcut", - "key": "((new-tiddler))", - "text": "<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n{{$:/core/ui/Actions/new-tiddler}}\n</$navigator>\n" - }, - "$:/core/ui/KeyboardShortcuts/save-wiki": { - "title": "$:/core/ui/KeyboardShortcuts/save-wiki", - "tags": "$:/tags/KeyboardShortcut", - "key": "((save-wiki))", - "text": "<$wikify name=\"site-title\" text={{$:/config/SaveWikiButton/Filename}}>\n<$action-sendmessage $message=\"tm-save-wiki\" $param={{$:/config/SaveWikiButton/Template}} filename=<<site-title>>/>\n</$wikify>\n" - }, - "$:/core/ui/KeyboardShortcuts/sidebar-search": { - "title": "$:/core/ui/KeyboardShortcuts/sidebar-search", - "tags": "$:/tags/KeyboardShortcut", - "key": "((sidebar-search))", - "text": "<$action-sendmessage $message=\"tm-focus-selector\" $param=\".tc-search input\"/>\n" - }, - "$:/core/ui/KeyboardShortcuts/switcher": { - "title": "$:/core/ui/KeyboardShortcuts/switcher", - "tags": "$:/tags/KeyboardShortcut", - "key": "((layout-switcher))", - "text": "<$action-sendmessage $message=\"tm-show-switcher\" switch=\"layout\"/>" - }, - "$:/core/ui/KeyboardShortcuts/toggle-sidebar": { - "title": "$:/core/ui/KeyboardShortcuts/toggle-sidebar", - "tags": "$:/tags/KeyboardShortcut", - "key": "((toggle-sidebar))", - "text": "<$list filter=\"[[$:/state/sidebar]is[missing]] [{$:/state/sidebar}removeprefix[yes]]\" emptyMessage=\"\"\"\n<$action-setfield $tiddler=\"$:/state/sidebar\" text=\"yes\"/>\n\"\"\">\n<$action-setfield $tiddler=\"$:/state/sidebar\" text=\"no\"/>\n</$list>\n" - }, - "$:/snippets/LayoutSwitcher": { - "title": "$:/snippets/LayoutSwitcher", - "tags": "$:/tags/ControlPanel/Appearance", - "caption": "{{$:/language/ControlPanel/LayoutSwitcher/Caption}}", - "text": "<$linkcatcher to=\"$:/layout\">\n<div class=\"tc-chooser\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/Layout]] [[$:/core/ui/PageTemplate]] +[!is[draft]sort[name]]\">\n<$list filter=\"[{$:/layout}!has[text]]\" variable=\"ignore\" emptyMessage=\"\"\"\n<$set name=\"cls\" filter=\"[all[current]field:title{$:/layout}]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>><$link to={{!!title}}>''<$transclude field=\"name\"/>'' - <$transclude field=\"description\"/></$link></div>\n</$set>\n\"\"\">\n<$set name=\"cls\" filter=\"[all[current]field:title[$:/core/ui/PageTemplate]]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>><$link to={{!!title}}>''<$transclude field=\"name\"/>'' - <$transclude field=\"description\"/></$link></div>\n</$set>\n</$list>\n</$list>\n</div>\n</$linkcatcher>\n" - }, - "$:/core/ui/ListItemTemplate": { - "title": "$:/core/ui/ListItemTemplate", - "text": "<div class=\"tc-menu-list-item\">\n<$link />\n</div>" - }, - "$:/Manager/ItemMain/Fields": { - "title": "$:/Manager/ItemMain/Fields", - "tags": "$:/tags/Manager/ItemMain", - "caption": "{{$:/language/Manager/Item/Fields}}", - "text": "<table>\n<tbody>\n<$list filter=\"[all[current]fields[]sort[title]] -text\" template=\"$:/core/ui/TiddlerFieldTemplate\" variable=\"listItem\"/>\n</tbody>\n</table>\n" - }, - "$:/Manager/ItemMain/RawText": { - "title": "$:/Manager/ItemMain/RawText", - "tags": "$:/tags/Manager/ItemMain", - "caption": "{{$:/language/Manager/Item/RawText}}", - "text": "<pre><code><$view/></code></pre>\n" - }, - "$:/Manager/ItemMain/WikifiedText": { - "title": "$:/Manager/ItemMain/WikifiedText", - "tags": "$:/tags/Manager/ItemMain", - "caption": "{{$:/language/Manager/Item/WikifiedText}}", - "text": "<$transclude mode=\"block\"/>\n" - }, - "$:/Manager/ItemSidebar/Colour": { - "title": "$:/Manager/ItemSidebar/Colour", - "tags": "$:/tags/Manager/ItemSidebar", - "caption": "{{$:/language/Manager/Item/Colour}}", - "text": "\\define swatch-styles()\nheight: 1em;\nbackground-color: $(colour)$\n\\end\n\n<$vars colour={{!!color}}>\n<p style=<<swatch-styles>>/>\n</$vars>\n<p>\n<$edit-text field=\"color\" tag=\"input\" type=\"color\"/> / <$edit-text field=\"color\" tag=\"input\" type=\"text\" size=\"9\"/>\n</p>\n" - }, - "$:/Manager/ItemSidebar/Icon": { - "title": "$:/Manager/ItemSidebar/Icon", - "tags": "$:/tags/Manager/ItemSidebar", - "caption": "{{$:/language/Manager/Item/Icon}}", - "text": "<p>\n<div class=\"tc-manager-icon-editor\">\n<$button popup=<<qualify \"$:/state/popup/image-picker\">> class=\"tc-btn-invisible\">\n<$transclude tiddler={{!!icon}}>\n{{$:/language/Manager/Item/Icon/None}}\n</$transclude>\n</$button>\n<div class=\"tc-block-dropdown-wrapper\" style=\"position: static;\">\n<$reveal state=<<qualify \"$:/state/popup/image-picker\">> type=\"nomatch\" text=\"\" default=\"\" tag=\"div\" class=\"tc-popup\">\n<div class=\"tc-block-dropdown tc-popup-keep\" style=\"width: 80%; left: 10%; right: 10%; padding: 0.5em;\">\n<$macrocall $name=\"image-picker-include-tagged-images\" actions=\"\"\"\n<$action-setfield $field=\"icon\" $value=<<imageTitle>>/>\n<$action-deletetiddler $tiddler=<<qualify \"$:/state/popup/image-picker\">>/>\n\"\"\"/>\n</div>\n</$reveal>\n</div>\n</div>\n</p>\n" - }, - "$:/Manager/ItemSidebar/Tags": { - "title": "$:/Manager/ItemSidebar/Tags", - "tags": "$:/tags/Manager/ItemSidebar", - "caption": "{{$:/language/Manager/Item/Tags}}", - "text": "\\whitespace trim\n\\define tag-checkbox-actions()\n<$action-listops\n\t$tiddler=\"$:/config/Manager/RecentTags\"\n\t$subfilter=\"[<tag>] [list[$:/config/Manager/RecentTags]] +[limit[12]]\"\n/>\n\\end\n\n\\define tag-picker-actions()\n<<tag-checkbox-actions>>\n\\end\n\n<p>\n<$list filter=\"[all[current]tags[]] [list[$:/config/Manager/RecentTags]] +[sort[title]] \" variable=\"tag\" storyview=\"pop\">\n<div>\n<$checkbox tiddler=<<currentTiddler>> tag=<<tag>> actions=<<tag-checkbox-actions>>>\n<$macrocall $name=\"tag-pill\" tag=<<tag>>/>\n</$checkbox>\n</div>\n</$list>\n</p>\n<p>\n<$fieldmangler>\n<$macrocall $name=\"tag-picker\" actions=<<tag-picker-actions>>/>\n</$fieldmangler>\n</p>\n" - }, - "$:/Manager/ItemSidebar/Tools": { - "title": "$:/Manager/ItemSidebar/Tools", - "tags": "$:/tags/Manager/ItemSidebar", - "caption": "{{$:/language/Manager/Item/Tools}}", - "text": "<p>\n<$button to=<<currentTiddler>>>{{$:/core/images/link}} open</$button>\n</p>\n<p>\n<$button message=\"tm-edit-tiddler\" param=<<currentTiddler>>>{{$:/core/images/edit-button}} edit</$button>\n</p>\n" - }, - "$:/Manager": { - "title": "$:/Manager", - "icon": "$:/core/images/list", - "color": "#bbb", - "text": "\\define lingo-base() $:/language/Manager/\n\n\\define list-item-content-item()\n<div class=\"tc-manager-list-item-content-item\">\n\t<$vars state-title=\"\"\"$:/state/popup/manager/item/$(listItem)$\"\"\">\n\t\t<$reveal state=<<state-title>> type=\"match\" text=\"show\" default=\"show\" tag=\"div\">\n\t\t\t<$button set=<<state-title>> setTo=\"hide\" class=\"tc-btn-invisible tc-manager-list-item-content-item-heading\">\n\t\t\t\t{{$:/core/images/down-arrow}} <$transclude tiddler=<<listItem>> field=\"caption\"/>\n\t\t\t</$button>\n\t\t</$reveal>\n\t\t<$reveal state=<<state-title>> type=\"nomatch\" text=\"show\" default=\"show\" tag=\"div\">\n\t\t\t<$button set=<<state-title>> setTo=\"show\" class=\"tc-btn-invisible tc-manager-list-item-content-item-heading\">\n\t\t\t\t{{$:/core/images/right-arrow}} <$transclude tiddler=<<listItem>> field=\"caption\"/>\n\t\t\t</$button>\n\t\t</$reveal>\n\t\t<$reveal state=<<state-title>> type=\"match\" text=\"show\" default=\"show\" tag=\"div\" class=\"tc-manager-list-item-content-item-body\">\n\t\t\t<$transclude tiddler=<<listItem>>/>\n\t\t</$reveal>\n\t</$vars>\n</div>\n\\end\n\n<div class=\"tc-manager-wrapper\">\n\t<div class=\"tc-manager-controls\">\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/Show/Prompt>> <$select tiddler=\"$:/config/Manager/Show\" default=\"tiddlers\">\n\t\t\t\t<option value=\"tiddlers\"><<lingo Controls/Show/Option/Tiddlers>></option>\n\t\t\t\t<option value=\"tags\"><<lingo Controls/Show/Option/Tags>></option>\n\t\t\t</$select>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/Search/Prompt>> <$edit-text tiddler=\"$:/config/Manager/Filter\" tag=\"input\" default=\"\" placeholder={{$:/language/Manager/Controls/Search/Placeholder}}/>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/FilterByTag/Prompt>> <$select tiddler=\"$:/config/Manager/Tag\" default=\"\">\n\t\t\t\t<option value=\"\"><<lingo Controls/FilterByTag/None>></option>\n\t\t\t\t<$list filter=\"[!is{$:/config/Manager/System}tags[]!is[system]sort[title]]\" variable=\"tag\">\n\t\t\t\t\t<option value=<<tag>>><$text text=<<tag>>/></option>\n\t\t\t\t</$list>\n\t\t\t</$select>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/Sort/Prompt>> <$select tiddler=\"$:/config/Manager/Sort\" default=\"title\">\n\t\t\t\t<optgroup label=\"Common\">\n\t\t\t\t\t<$list filter=\"title modified modifier created creator created\" variable=\"field\">\n\t\t\t\t\t\t<option value=<<field>>><$text text=<<field>>/></option>\n\t\t\t\t\t</$list>\n\t\t\t\t</optgroup>\n\t\t\t\t<optgroup label=\"All\">\n\t\t\t\t\t<$list filter=\"[all{$:/config/Manager/Show}!is{$:/config/Manager/System}fields[]sort[title]] -title -modified -modifier -created -creator -created\" variable=\"field\">\n\t\t\t\t\t\t<option value=<<field>>><$text text=<<field>>/></option>\n\t\t\t\t\t</$list>\n\t\t\t\t</optgroup>\n\t\t\t</$select>\n\t\t\t<$checkbox tiddler=\"$:/config/Manager/Order\" field=\"text\" checked=\"reverse\" unchecked=\"forward\" default=\"forward\">\n\t\t\t\t<<lingo Controls/Order/Prompt>>\n\t\t\t</$checkbox>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<$checkbox tiddler=\"$:/config/Manager/System\" field=\"text\" checked=\"\" unchecked=\"system\" default=\"system\">\n\t\t\t\t{{$:/language/SystemTiddlers/Include/Prompt}}\n\t\t\t</$checkbox>\n\t\t</div>\n\t</div>\n\t<div class=\"tc-manager-list\">\n\t\t<$list filter=\"[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}]\">\n\t\t\t<$vars transclusion=<<currentTiddler>>>\n\t\t\t\t<div style=\"tc-manager-list-item\">\n\t\t\t\t\t<$button popup=<<qualify \"$:/state/manager/popup\">> class=\"tc-btn-invisible tc-manager-list-item-heading\" selectedClass=\"tc-manager-list-item-heading-selected\">\n\t\t\t\t\t\t<$text text=<<currentTiddler>>/>\n\t\t\t\t\t</$button>\n\t\t\t\t\t<$reveal state=<<qualify \"$:/state/manager/popup\">> type=\"nomatch\" text=\"\" default=\"\" tag=\"div\" class=\"tc-manager-list-item-content tc-popup-handle\">\n\t\t\t\t\t\t<div class=\"tc-manager-list-item-content-tiddler\">\n\t\t\t\t\t\t\t<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Manager/ItemMain]!has[draft.of]]\" variable=\"listItem\">\n\t\t\t\t\t\t\t\t<<list-item-content-item>>\n\t\t\t\t\t\t\t</$list>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"tc-manager-list-item-content-sidebar\">\n\t\t\t\t\t\t\t<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Manager/ItemSidebar]!has[draft.of]]\" variable=\"listItem\">\n\t\t\t\t\t\t\t\t<<list-item-content-item>>\n\t\t\t\t\t\t\t</$list>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</$reveal>\n\t\t\t\t</div>\n\t\t\t</$vars>\n\t\t</$list>\n\t</div>\n</div>\n" - }, - "$:/core/ui/MissingTemplate": { - "title": "$:/core/ui/MissingTemplate", - "text": "<div class=\"tc-tiddler-missing\">\n<$button popup=<<qualify \"$:/state/popup/missing\">> class=\"tc-btn-invisible tc-missing-tiddler-label\">\n<$view field=\"title\" format=\"text\" />\n</$button>\n<$reveal state=<<qualify \"$:/state/popup/missing\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n<hr>\n<$list filter=\"[all[current]backlinks[]sort[title]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n</div>\n</$reveal>\n</div>\n" - }, - "$:/core/ui/MoreSideBar/All": { - "title": "$:/core/ui/MoreSideBar/All", - "tags": "$:/tags/MoreSideBar", - "caption": "{{$:/language/SideBar/All/Caption}}", - "text": "<$list filter={{$:/core/Filters/AllTiddlers!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n" - }, - "$:/core/ui/MoreSideBar/Drafts": { - "title": "$:/core/ui/MoreSideBar/Drafts", - "tags": "$:/tags/MoreSideBar", - "caption": "{{$:/language/SideBar/Drafts/Caption}}", - "text": "<$list filter={{$:/core/Filters/Drafts!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n" - }, - "$:/core/ui/MoreSideBar/Explorer": { - "title": "$:/core/ui/MoreSideBar/Explorer", - "tags": "$:/tags/MoreSideBar", - "caption": "{{$:/language/SideBar/Explorer/Caption}}", - "text": "<<tree \"$:/\">>\n" - }, - "$:/core/ui/MoreSideBar/Missing": { - "title": "$:/core/ui/MoreSideBar/Missing", - "tags": "$:/tags/MoreSideBar", - "caption": "{{$:/language/SideBar/Missing/Caption}}", - "text": "<$list filter={{$:/core/Filters/Missing!!filter}} template=\"$:/core/ui/MissingTemplate\"/>\n" - }, - "$:/core/ui/MoreSideBar/Orphans": { - "title": "$:/core/ui/MoreSideBar/Orphans", - "tags": "$:/tags/MoreSideBar", - "caption": "{{$:/language/SideBar/Orphans/Caption}}", - "text": "<$list filter={{$:/core/Filters/Orphans!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n" - }, - "$:/core/ui/MoreSideBar/Plugins": { - "title": "$:/core/ui/MoreSideBar/Plugins", - "tags": "$:/tags/MoreSideBar", - "caption": "{{$:/language/ControlPanel/Plugins/Caption}}", - "text": "\n{{$:/language/ControlPanel/Plugins/Installed/Hint}}\n\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/MoreSideBar/Plugins]!has[draft.of]]\" default=\"$:/core/ui/MoreSideBar/Plugins/Plugins\" explicitState=\"$:/state/tab-1163638994\"/>\n" - }, - "$:/core/ui/MoreSideBar/Recent": { - "title": "$:/core/ui/MoreSideBar/Recent", - "tags": "$:/tags/MoreSideBar", - "caption": "{{$:/language/SideBar/Recent/Caption}}", - "text": "<$macrocall $name=\"timeline\" format={{$:/language/RecentChanges/DateFormat}}/>\n" - }, - "$:/core/ui/MoreSideBar/Shadows": { - "title": "$:/core/ui/MoreSideBar/Shadows", - "tags": "$:/tags/MoreSideBar", - "caption": "{{$:/language/SideBar/Shadows/Caption}}", - "text": "<$list filter={{$:/core/Filters/ShadowTiddlers!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n" - }, - "$:/core/ui/MoreSideBar/System": { - "title": "$:/core/ui/MoreSideBar/System", - "tags": "$:/tags/MoreSideBar", - "caption": "{{$:/language/SideBar/System/Caption}}", - "text": "<$list filter={{$:/core/Filters/SystemTiddlers!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n" - }, - "$:/core/ui/MoreSideBar/Tags": { - "title": "$:/core/ui/MoreSideBar/Tags", - "tags": "$:/tags/MoreSideBar", - "caption": "{{$:/language/SideBar/Tags/Caption}}", - "text": "<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n{{$:/core/ui/Buttons/tag-manager}}\n\n</$set>\n\n</$set>\n\n</$set>\n\n<$list filter={{$:/core/Filters/AllTags!!filter}}>\n\n<$transclude tiddler=\"$:/core/ui/TagTemplate\"/>\n\n</$list>\n\n<hr class=\"tc-untagged-separator\">\n\n{{$:/core/ui/UntaggedTemplate}}\n" - }, - "$:/core/ui/MoreSideBar/Types": { - "title": "$:/core/ui/MoreSideBar/Types", - "tags": "$:/tags/MoreSideBar", - "caption": "{{$:/language/SideBar/Types/Caption}}", - "text": "<$list filter={{$:/core/Filters/TypedTiddlers!!filter}}>\n<div class=\"tc-menu-list-item\">\n<$view field=\"type\"/>\n<$list filter=\"[type{!!type}!is[system]sort[title]]\">\n<div class=\"tc-menu-list-subitem\">\n<$link to={{!!title}}><$view field=\"title\"/></$link>\n</div>\n</$list>\n</div>\n</$list>\n" - }, - "$:/core/ui/MoreSideBar/Plugins/Languages": { - "title": "$:/core/ui/MoreSideBar/Plugins/Languages", - "tags": "$:/tags/MoreSideBar/Plugins", - "caption": "{{$:/language/ControlPanel/Plugins/Languages/Caption}}", - "text": "<$list filter=\"[!has[draft.of]plugin-type[language]sort[description]]\" template=\"$:/core/ui/PluginListItemTemplate\" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/>\n" - }, - "$:/core/ui/MoreSideBar/Plugins/Plugins": { - "title": "$:/core/ui/MoreSideBar/Plugins/Plugins", - "tags": "$:/tags/MoreSideBar/Plugins", - "caption": "{{$:/language/ControlPanel/Plugins/Plugins/Caption}}", - "text": "<$list filter=\"[!has[draft.of]plugin-type[plugin]sort[description]]\" template=\"$:/core/ui/PluginListItemTemplate\" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}>>/>\n" - }, - "$:/core/ui/MoreSideBar/Plugins/Theme": { - "title": "$:/core/ui/MoreSideBar/Plugins/Theme", - "tags": "$:/tags/MoreSideBar/Plugins", - "caption": "{{$:/language/ControlPanel/Plugins/Themes/Caption}}", - "text": "<$list filter=\"[!has[draft.of]plugin-type[theme]sort[description]]\" template=\"$:/core/ui/PluginListItemTemplate\" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/>\n" - }, - "$:/core/ui/Buttons/advanced-search": { - "title": "$:/core/ui/Buttons/advanced-search", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/advanced-search-button}} {{$:/language/Buttons/AdvancedSearch/Caption}}", - "description": "{{$:/language/Buttons/AdvancedSearch/Hint}}", - "text": "\\whitespace trim\n\\define advanced-search-button(class)\n<$button to=\"$:/AdvancedSearch\" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/advanced-search-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/AdvancedSearch/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/AdvancedSearch]]\" emptyMessage=<<advanced-search-button>>>\n<<advanced-search-button \"tc-selected\">>\n</$list>\n" - }, - "$:/core/ui/Buttons/close-all": { - "title": "$:/core/ui/Buttons/close-all", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/close-all-button}} {{$:/language/Buttons/CloseAll/Caption}}", - "description": "{{$:/language/Buttons/CloseAll/Hint}}", - "text": "<$button message=\"tm-close-all-tiddlers\" tooltip={{$:/language/Buttons/CloseAll/Hint}} aria-label={{$:/language/Buttons/CloseAll/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/close-all-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/CloseAll/Caption}}/></span>\n</$list>\n</$button>" - }, - "$:/core/ui/Buttons/control-panel": { - "title": "$:/core/ui/Buttons/control-panel", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/options-button}} {{$:/language/Buttons/ControlPanel/Caption}}", - "description": "{{$:/language/Buttons/ControlPanel/Hint}}", - "text": "\\whitespace trim\n\\define control-panel-button(class)\n<$button to=\"$:/ControlPanel\" tooltip={{$:/language/Buttons/ControlPanel/Hint}} aria-label={{$:/language/Buttons/ControlPanel/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/options-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/ControlPanel/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/ControlPanel]]\" emptyMessage=<<control-panel-button>>>\n<<control-panel-button \"tc-selected\">>\n</$list>\n" - }, - "$:/core/ui/Buttons/encryption": { - "title": "$:/core/ui/Buttons/encryption", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/locked-padlock}} {{$:/language/Buttons/Encryption/Caption}}", - "description": "{{$:/language/Buttons/Encryption/Hint}}", - "text": "\\whitespace trim\n<$reveal type=\"match\" state=\"$:/isEncrypted\" text=\"yes\">\n<$button message=\"tm-clear-password\" tooltip={{$:/language/Buttons/Encryption/ClearPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/ClearPassword/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/locked-padlock}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Encryption/ClearPassword/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>\n<$reveal type=\"nomatch\" state=\"$:/isEncrypted\" text=\"yes\">\n<$button message=\"tm-set-password\" tooltip={{$:/language/Buttons/Encryption/SetPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/SetPassword/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/unlocked-padlock}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Encryption/SetPassword/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>\n" - }, - "$:/core/ui/Buttons/export-page": { - "title": "$:/core/ui/Buttons/export-page", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/export-button}} {{$:/language/Buttons/ExportPage/Caption}}", - "description": "{{$:/language/Buttons/ExportPage/Hint}}", - "text": "<$macrocall $name=\"exportButton\" exportFilter=\"[!is[system]sort[title]]\" lingoBase=\"$:/language/Buttons/ExportPage/\"/>" - }, - "$:/core/ui/Buttons/fold-all": { - "title": "$:/core/ui/Buttons/fold-all", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/fold-all-button}} {{$:/language/Buttons/FoldAll/Caption}}", - "description": "{{$:/language/Buttons/FoldAll/Hint}}", - "text": "<$button tooltip={{$:/language/Buttons/FoldAll/Hint}} aria-label={{$:/language/Buttons/FoldAll/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-all-tiddlers\" $param=<<currentTiddler>> foldedStatePrefix=\"$:/state/folded/\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/fold-all-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/FoldAll/Caption}}/></span>\n</$list>\n</$button>" - }, - "$:/core/ui/Buttons/full-screen": { - "title": "$:/core/ui/Buttons/full-screen", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/full-screen-button}} {{$:/language/Buttons/FullScreen/Caption}}", - "description": "{{$:/language/Buttons/FullScreen/Hint}}", - "text": "<$button message=\"tm-full-screen\" tooltip={{$:/language/Buttons/FullScreen/Hint}} aria-label={{$:/language/Buttons/FullScreen/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/full-screen-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/FullScreen/Caption}}/></span>\n</$list>\n</$button>" - }, - "$:/core/ui/Buttons/home": { - "title": "$:/core/ui/Buttons/home", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/home-button}} {{$:/language/Buttons/Home/Caption}}", - "description": "{{$:/language/Buttons/Home/Hint}}", - "text": "<$button message=\"tm-home\" tooltip={{$:/language/Buttons/Home/Hint}} aria-label={{$:/language/Buttons/Home/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/home-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Home/Caption}}/></span>\n</$list>\n</$button>" - }, - "$:/core/ui/Buttons/import": { - "title": "$:/core/ui/Buttons/import", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/import-button}} {{$:/language/Buttons/Import/Caption}}", - "description": "{{$:/language/Buttons/Import/Hint}}", - "text": "<div class=\"tc-file-input-wrapper\">\n<$button tooltip={{$:/language/Buttons/Import/Hint}} aria-label={{$:/language/Buttons/Import/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/import-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Import/Caption}}/></span>\n</$list>\n</$button>\n<$browse tooltip={{$:/language/Buttons/Import/Hint}}/>\n</div>" - }, - "$:/core/ui/Buttons/language": { - "title": "$:/core/ui/Buttons/language", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/globe}} {{$:/language/Buttons/Language/Caption}}", - "description": "{{$:/language/Buttons/Language/Hint}}", - "text": "\\whitespace trim\n\\define flag-title()\n$(languagePluginTitle)$/icon\n\\end\n<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/language\">> tooltip={{$:/language/Buttons/Language/Hint}} aria-label={{$:/language/Buttons/Language/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n<span class=\"tc-image-button\">\n<$set name=\"languagePluginTitle\" value={{$:/language}}>\n<$image source=<<flag-title>>/>\n</$set>\n</span>\n</$list>\n<$text text=\" \"/>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Language/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/language\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n{{$:/snippets/languageswitcher}}\n</div>\n</$reveal>\n" - }, - "$:/core/ui/Buttons/manager": { - "title": "$:/core/ui/Buttons/manager", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/list}} {{$:/language/Buttons/Manager/Caption}}", - "description": "{{$:/language/Buttons/Manager/Hint}}", - "text": "\\whitespace trim\n\\define manager-button(class)\n<$button to=\"$:/Manager\" tooltip={{$:/language/Buttons/Manager/Hint}} aria-label={{$:/language/Buttons/Manager/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/list}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Manager/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/Manager]]\" emptyMessage=<<manager-button>>>\n<<manager-button \"tc-selected\">>\n</$list>\n" - }, - "$:/core/ui/Buttons/more-page-actions": { - "title": "$:/core/ui/Buttons/more-page-actions", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}", - "description": "{{$:/language/Buttons/More/Hint}}", - "text": "\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n<$button popup=<<qualify \"$:/state/popup/more\">> tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/down-arrow}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/More/Caption}}/></span>\n</$list>\n</$button><$reveal state=<<qualify \"$:/state/popup/more\">> type=\"popup\" position=\"below\" animate=\"yes\">\n\n<div class=\"tc-drop-down\">\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"tc-btn-invisible\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]] -[[$:/core/ui/Buttons/more-page-actions]]\" variable=\"listItem\">\n\n<$reveal type=\"match\" state=<<config-title>> text=\"hide\">\n\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$set>\n\n</$reveal>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n\n</div>\n\n</$reveal>" - }, - "$:/core/ui/Buttons/new-image": { - "title": "$:/core/ui/Buttons/new-image", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/new-image-button}} {{$:/language/Buttons/NewImage/Caption}}", - "description": "{{$:/language/Buttons/NewImage/Hint}}", - "text": "\\whitespace trim\n<$button tooltip={{$:/language/Buttons/NewImage/Hint}} aria-label={{$:/language/Buttons/NewImage/Caption}} class=<<tv-config-toolbar-class>> actions={{$:/core/ui/Actions/new-image}}>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-image-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/NewImage/Caption}}/></span>\n</$list>\n</$button>\n" - }, - "$:/core/ui/Buttons/new-journal": { - "title": "$:/core/ui/Buttons/new-journal", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournal/Caption}}", - "description": "{{$:/language/Buttons/NewJournal/Hint}}", - "text": "\\whitespace trim\n\\define journalButton()\n<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=<<tv-config-toolbar-class>> actions={{$:/core/ui/Actions/new-journal}}>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-journal-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/NewJournal/Caption}}/></span>\n</$list>\n</$button>\n\\end\n<<journalButton>>\n" - }, - "$:/core/ui/Buttons/new-tiddler": { - "title": "$:/core/ui/Buttons/new-tiddler", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/new-button}} {{$:/language/Buttons/NewTiddler/Caption}}", - "description": "{{$:/language/Buttons/NewTiddler/Hint}}", - "text": "\\whitespace trim\n<$button actions={{$:/core/ui/Actions/new-tiddler}} tooltip={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/NewTiddler/Caption}}/></span>\n</$list>\n</$button>\n" - }, - "$:/core/ui/Buttons/palette": { - "title": "$:/core/ui/Buttons/palette", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/palette}} {{$:/language/Buttons/Palette/Caption}}", - "description": "{{$:/language/Buttons/Palette/Hint}}", - "text": "\\whitespace trim\n<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/palette\">> tooltip={{$:/language/Buttons/Palette/Hint}} aria-label={{$:/language/Buttons/Palette/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/palette}}\n</$list>\n<$text text=\" \"/>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Palette/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/palette\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\" style=\"font-size:0.7em;\">\n{{$:/snippets/paletteswitcher}}\n</div>\n</$reveal>\n" - }, - "$:/core/ui/Buttons/print": { - "title": "$:/core/ui/Buttons/print", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/print-button}} {{$:/language/Buttons/Print/Caption}}", - "description": "{{$:/language/Buttons/Print/Hint}}", - "text": "<$button message=\"tm-print\" tooltip={{$:/language/Buttons/Print/Hint}} aria-label={{$:/language/Buttons/Print/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/print-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Print/Caption}}/></span>\n</$list>\n</$button>" - }, - "$:/core/ui/Buttons/refresh": { - "title": "$:/core/ui/Buttons/refresh", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/refresh-button}} {{$:/language/Buttons/Refresh/Caption}}", - "description": "{{$:/language/Buttons/Refresh/Hint}}", - "text": "<$button message=\"tm-browser-refresh\" tooltip={{$:/language/Buttons/Refresh/Hint}} aria-label={{$:/language/Buttons/Refresh/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/refresh-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Refresh/Caption}}/></span>\n</$list>\n</$button>" - }, - "$:/core/ui/Buttons/save-wiki": { - "title": "$:/core/ui/Buttons/save-wiki", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/save-button}} {{$:/language/Buttons/SaveWiki/Caption}}", - "description": "{{$:/language/Buttons/SaveWiki/Hint}}", - "text": "<$button tooltip={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=<<tv-config-toolbar-class>>>\n<$wikify name=\"site-title\" text={{$:/config/SaveWikiButton/Filename}}>\n<$action-sendmessage $message=\"tm-save-wiki\" $param={{$:/config/SaveWikiButton/Template}} filename=<<site-title>>/>\n</$wikify>\n<span class=\"tc-dirty-indicator\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/save-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/SaveWiki/Caption}}/></span>\n</$list>\n</span>\n</$button>" - }, - "$:/core/ui/Buttons/storyview": { - "title": "$:/core/ui/Buttons/storyview", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/storyview-classic}} {{$:/language/Buttons/StoryView/Caption}}", - "description": "{{$:/language/Buttons/StoryView/Hint}}", - "text": "\\whitespace trim\n\\define icon()\n$:/core/images/storyview-$(storyview)$\n\\end\n<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/storyview\">> tooltip={{$:/language/Buttons/StoryView/Hint}} aria-label={{$:/language/Buttons/StoryView/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n<$set name=\"storyview\" value={{$:/view}}>\n<$transclude tiddler=<<icon>>/>\n</$set>\n</$list>\n<$text text=\" \"/>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/StoryView/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/storyview\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n{{$:/snippets/viewswitcher}}\n</div>\n</$reveal>\n" - }, - "$:/core/ui/Buttons/tag-manager": { - "title": "$:/core/ui/Buttons/tag-manager", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/tag-button}} {{$:/language/Buttons/TagManager/Caption}}", - "description": "{{$:/language/Buttons/TagManager/Hint}}", - "text": "\\whitespace trim\n\\define control-panel-button(class)\n<$button to=\"$:/TagManager\" tooltip={{$:/language/Buttons/TagManager/Hint}} aria-label={{$:/language/Buttons/TagManager/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/tag-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/TagManager/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/TagManager]]\" emptyMessage=<<control-panel-button>>>\n<<control-panel-button \"tc-selected\">>\n</$list>\n" - }, - "$:/core/ui/Buttons/theme": { - "title": "$:/core/ui/Buttons/theme", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/theme-button}} {{$:/language/Buttons/Theme/Caption}}", - "description": "{{$:/language/Buttons/Theme/Hint}}", - "text": "\\whitespace trim\n<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/theme\">> tooltip={{$:/language/Buttons/Theme/Hint}} aria-label={{$:/language/Buttons/Theme/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/theme-button}}\n</$list>\n<$text text=\" \"/>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Theme/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/theme\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n<$linkcatcher to=\"$:/theme\">\n{{$:/snippets/themeswitcher}}\n</$linkcatcher>\n</div>\n</$reveal>\n" - }, - "$:/core/ui/Buttons/timestamp": { - "title": "$:/core/ui/Buttons/timestamp", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/timestamp-on}} {{$:/language/Buttons/Timestamp/Caption}}", - "description": "{{$:/language/Buttons/Timestamp/Hint}}", - "text": "\\whitespace trim\n<$reveal type=\"nomatch\" state=\"$:/config/TimestampDisable\" text=\"yes\">\n<$button tooltip={{$:/language/Buttons/Timestamp/On/Hint}} aria-label={{$:/language/Buttons/Timestamp/On/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-setfield $tiddler=\"$:/config/TimestampDisable\" $value=\"yes\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/timestamp-on}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Timestamp/On/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/config/TimestampDisable\" text=\"yes\">\n<$button tooltip={{$:/language/Buttons/Timestamp/Off/Hint}} aria-label={{$:/language/Buttons/Timestamp/Off/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-setfield $tiddler=\"$:/config/TimestampDisable\" $value=\"no\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/timestamp-off}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Timestamp/Off/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>\n" - }, - "$:/core/ui/Buttons/unfold-all": { - "title": "$:/core/ui/Buttons/unfold-all", - "tags": "$:/tags/PageControls", - "caption": "{{$:/core/images/unfold-all-button}} {{$:/language/Buttons/UnfoldAll/Caption}}", - "description": "{{$:/language/Buttons/UnfoldAll/Hint}}", - "text": "<$button tooltip={{$:/language/Buttons/UnfoldAll/Hint}} aria-label={{$:/language/Buttons/UnfoldAll/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-unfold-all-tiddlers\" $param=<<currentTiddler>> foldedStatePrefix=\"$:/state/folded/\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/unfold-all-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/UnfoldAll/Caption}}/></span>\n</$list>\n</$button>" - }, - "$:/core/ui/PageTemplate/pagecontrols": { - "title": "$:/core/ui/PageTemplate/pagecontrols", - "text": "\\whitespace trim\n\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n<div class=\"tc-page-controls\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]\" variable=\"listItem\">\n<$set name=\"hidden\" value=<<config-title>>>\n<$list filter=\"[<hidden>!text[hide]]\" storyview=\"pop\" variable=\"ignore\">\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n</$set>\n</$list>\n</$set>\n</$list>\n</div>\n" - }, - "$:/core/ui/PageStylesheet": { - "title": "$:/core/ui/PageStylesheet", - "text": "\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n<$set name=\"currentTiddler\" value={{$:/language}}>\n\n<$set name=\"languageTitle\" value={{!!name}}>\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]\">\n<$transclude mode=\"block\"/>\n</$list>\n\n</$set>\n\n</$set>\n" - }, - "$:/core/ui/PageTemplate/alerts": { - "title": "$:/core/ui/PageTemplate/alerts", - "tags": "$:/tags/PageTemplate", - "text": "<div class=\"tc-alerts\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Alert]!has[draft.of]]\" template=\"$:/core/ui/AlertTemplate\" storyview=\"pop\"/>\n\n</div>\n" - }, - "$:/core/ui/PageTemplate/drafts": { - "title": "$:/core/ui/PageTemplate/drafts", - "tags": "$:/tags/PageTemplate", - "text": "\\whitespace trim\n<$reveal state=\"$:/status/IsReadOnly\" type=\"nomatch\" text=\"yes\" tag=\"div\" class=\"tc-drafts-list\">\n<$list filter=\"[has[draft.of]!sort[modified]] -[list[$:/StoryList]]\">\n<$link>\n{{$:/core/images/edit-button}} <$text text=<<currentTiddler>>/>\n</$link>\n</$list>\n</$reveal>\n" - }, - "$:/core/ui/PageTemplate/pluginreloadwarning": { - "title": "$:/core/ui/PageTemplate/pluginreloadwarning", - "tags": "$:/tags/PageTemplate", - "text": "\\define lingo-base() $:/language/\n\n<$list filter=\"[{$:/status/RequireReloadDueToPluginChange}match[yes]]\">\n\n<$reveal type=\"nomatch\" state=\"$:/temp/HidePluginWarning\" text=\"yes\">\n\n<div class=\"tc-plugin-reload-warning\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n<<lingo PluginReloadWarning>> <$button set=\"$:/temp/HidePluginWarning\" setTo=\"yes\" class=\"tc-btn-invisible\">{{$:/core/images/close-button}}</$button>\n\n</$set>\n\n</div>\n\n</$reveal>\n\n</$list>\n" - }, - "$:/core/ui/PageTemplate/sidebar": { - "title": "$:/core/ui/PageTemplate/sidebar", - "tags": "$:/tags/PageTemplate", - "text": "\\whitespace trim\n\\define config-title()\n$:/config/SideBarSegments/Visibility/$(listItem)$\n\\end\n\n<$scrollable fallthrough=\"no\" class=\"tc-sidebar-scrollable\">\n\n<div class=\"tc-sidebar-header\">\n\n<$reveal state=\"$:/state/sidebar\" type=\"match\" text=\"yes\" default=\"yes\" retain=\"yes\" animate=\"yes\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SideBarSegment]!has[draft.of]]\" variable=\"listItem\">\n\n<$reveal type=\"nomatch\" state=<<config-title>> text=\"hide\" tag=\"div\">\n\n<$transclude tiddler=<<listItem>> mode=\"block\"/>\n\n</$reveal>\n\n</$list>\n\n</$reveal>\n\n</div>\n\n</$scrollable>\n" - }, - "$:/core/ui/PageTemplate/story": { - "title": "$:/core/ui/PageTemplate/story", - "tags": "$:/tags/PageTemplate", - "text": "\\whitespace trim\n<section class=\"tc-story-river\">\n\n<section class=\"story-backdrop\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/AboveStory]!has[draft.of]]\">\n\n<$transclude/>\n\n</$list>\n\n</section>\n\n<$list filter=\"[list[$:/StoryList]]\" history=\"$:/HistoryList\" template={{$:/config/ui/ViewTemplate}} editTemplate={{$:/config/ui/EditTemplate}} storyview={{$:/view}} emptyMessage={{$:/config/EmptyStoryMessage}}/>\n\n<section class=\"story-frontdrop\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/BelowStory]!has[draft.of]]\">\n\n<$transclude/>\n\n</$list>\n\n</section>\n\n</section>\n" - }, - "$:/core/ui/PageTemplate/topleftbar": { - "title": "$:/core/ui/PageTemplate/topleftbar", - "tags": "$:/tags/PageTemplate", - "text": "<span class=\"tc-topbar tc-topbar-left\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TopLeftBar]!has[draft.of]]\" variable=\"listItem\" storyview=\"pop\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$list>\n\n</span>\n" - }, - "$:/core/ui/PageTemplate/toprightbar": { - "title": "$:/core/ui/PageTemplate/toprightbar", - "tags": "$:/tags/PageTemplate", - "text": "<span class=\"tc-topbar tc-topbar-right\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TopRightBar]!has[draft.of]]\" variable=\"listItem\" storyview=\"pop\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$list>\n\n</span>\n" - }, - "$:/core/ui/PageTemplate": { - "title": "$:/core/ui/PageTemplate", - "name": "{{$:/language/PageTemplate/Name}}", - "description": "{{$:/language/PageTemplate/Description}}", - "text": "\\whitespace trim\n\\define containerClasses()\ntc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$\n\\end\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n<$vars\n\ttv-config-toolbar-icons={{$:/config/Toolbar/Icons}}\n\ttv-config-toolbar-text={{$:/config/Toolbar/Text}}\n\ttv-config-toolbar-class={{$:/config/Toolbar/ButtonClass}}\n\ttv-enable-drag-and-drop={{$:/config/DragAndDrop/Enable}}\n\ttv-show-missing-links={{$:/config/MissingLinks}}\n\tstoryviewTitle={{$:/view}}\n\tlanguageTitle={{{ [{$:/language}get[name]] }}}>\n\n<div class=<<containerClasses>>>\n\n<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n\n<$dropzone enable=<<tv-enable-drag-and-drop>>>\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageTemplate]!has[draft.of]]\" variable=\"listItem\">\n\n<$transclude tiddler=<<listItem>>/>\n\n</$list>\n\n</$dropzone>\n\n</$navigator>\n\n</div>\n\n</$vars>\n" - }, - "$:/PaletteManager": { - "title": "$:/PaletteManager", - "text": "\\define lingo-base() $:/language/ControlPanel/Palette/Editor/\n\\define describePaletteColour(colour)\n<$transclude tiddler=\"$:/language/Docs/PaletteColours/$colour$\"><$text text=\"$colour$\"/></$transclude>\n\\end\n\\define edit-colour-placeholder()\n edit $(colourName)$\n\\end\n\\define colour-tooltip(showhide) $showhide$ editor for $(newColourName)$ \n\\define resolve-colour(macrocall)\n\\import $:/core/macros/utils\n\\whitespace trim\n<$wikify name=\"name\" text=\"\"\"$macrocall$\"\"\">\n<<name>>\n</$wikify>\n\\end\n\\define delete-colour-index-actions() <$action-setfield $index=<<colourName>>/>\n\\define palette-manager-colour-row-segment()\n\\whitespace trim\n<$edit-text index=<<colourName>> tag=\"input\" placeholder=<<edit-colour-placeholder>> default=\"\"/>\n<br>\n<$edit-text index=<<colourName>> type=\"color\" tag=\"input\" class=\"tc-palette-manager-colour-input\"/>\n<$list filter=\"[<currentTiddler>getindex<colourName>removeprefix[<<]removesuffix[>>]] [<currentTiddler>getindex<colourName>removeprefix[<$]removesuffix[/>]]\" variable=\"ignore\">\n<$set name=\"state\" value={{{ [[$:/state/palettemanager/]addsuffix<currentTiddler>addsuffix[/]addsuffix<colourName>] }}}>\n<$wikify name=\"newColourName\" text=\"\"\"<$macrocall $name=\"resolve-colour\" macrocall={{{ [<currentTiddler>getindex<colourName>] }}}/>\"\"\">\n<$reveal state=<<state>> type=\"nomatch\" text=\"show\">\n<$button tooltip=<<colour-tooltip show>> aria-label=<<colour-tooltip show>> class=\"tc-btn-invisible\" set=<<state>> setTo=\"show\">{{$:/core/images/down-arrow}}<$text text=<<newColourName>> class=\"tc-small-gap-left\"/></$button><br>\n</$reveal>\n<$reveal state=<<state>> type=\"match\" text=\"show\">\n<$button tooltip=<<colour-tooltip hide>> aria-label=<<colour-tooltip show>> class=\"tc-btn-invisible\" actions=\"\"\"<$action-deletetiddler $tiddler=<<state>>/>\"\"\">{{$:/core/images/up-arrow}}<$text text=<<newColourName>> class=\"tc-small-gap-left\"/></$button><br>\n</$reveal>\n<$reveal state=<<state>> type=\"match\" text=\"show\">\n<$set name=\"colourName\" value=<<newColourName>>>\n<br>\n<<palette-manager-colour-row-segment>>\n<br><br>\n</$set>\n</$reveal>\n</$wikify>\n</$set>\n</$list>\n\\end\n\\define palette-manager-colour-row()\n\\whitespace trim\n<tr>\n<td>\n<span style=\"float:right;\">\n<$button tooltip={{$:/language/ControlPanel/Palette/Editor/Delete/Hint}} aria-label=<<lingo Delete/Hint>> class=\"tc-btn-invisible\" actions=<<delete-colour-index-actions>>>\n{{$:/core/images/delete-button}}</$button>\n</span>\n''<$macrocall $name=\"describePaletteColour\" colour=<<colourName>>/>''<br/>\n<$macrocall $name=\"colourName\" $output=\"text/plain\"/>\n</td>\n<td>\n<<palette-manager-colour-row-segment>>\n</td>\n</tr>\n\\end\n\\define palette-manager-table()\n\\whitespace trim\n<table>\n<tbody>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Palette]indexes[]]\" variable=\"colourName\">\n<$list filter=\"[<currentTiddler>indexes[]removeprefix<colourName>suffix[]]\" variable=\"ignore\" emptyMessage=\"\"\"\n<$list filter=\"[{$:/state/palettemanager/showexternal}removeprefix[yes]suffix[]]\" variable=\"ignore\">\n<<palette-manager-colour-row>>\n</$list>\n\"\"\">\n<<palette-manager-colour-row>>\n</$list>\n</$list>\n</tbody>\n</table>\n\\end\n<$set name=\"currentTiddler\" value={{$:/palette}}>\n\n<<lingo Prompt>> <$link to={{$:/palette}}><$macrocall $name=\"currentTiddler\" $output=\"text/plain\"/></$link>\n\n<$list filter=\"[all[current]is[shadow]is[tiddler]]\" variable=\"listItem\">\n<<lingo Prompt/Modified>>\n<$button message=\"tm-delete-tiddler\" param={{$:/palette}}><<lingo Reset/Caption>></$button>\n</$list>\n\n<$list filter=\"[all[current]is[shadow]!is[tiddler]]\" variable=\"listItem\">\n<<lingo Clone/Prompt>>\n</$list>\n\n<$button message=\"tm-new-tiddler\" param={{$:/palette}}><<lingo Clone/Caption>></$button>\n\n<$checkbox tiddler=\"$:/state/palettemanager/showexternal\" field=\"text\" checked=\"yes\" unchecked=\"no\"><span class=\"tc-small-gap-left\"><<lingo Names/External/Show>></span></$checkbox>\n\n<<palette-manager-table>>\n" - }, - "$:/core/ui/PluginInfo": { - "title": "$:/core/ui/PluginInfo", - "text": "\\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<$transclude tiddler=<<localised-info-tiddler-title>> mode=\"block\">\n<$transclude tiddler=<<currentTiddler>> subtiddler=<<localised-info-tiddler-title>> mode=\"block\">\n<$transclude tiddler=<<currentTiddler>> subtiddler=<<info-tiddler-title>> mode=\"block\">\n<$transclude tiddler=<<default-tiddler-title>> mode=\"block\">\n{{$:/language/ControlPanel/Plugin/NoInfoFound/Hint}}\n</$transclude>\n</$transclude>\n</$transclude>\n</$transclude>\n" - }, - "$:/core/ui/PluginInfo/Default/contents": { - "title": "$:/core/ui/PluginInfo/Default/contents", - "text": "\\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/\n<<lingo Hint>>\n<ul>\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" emptyMessage=<<lingo Empty/Hint>>>\n<li>\n<$link />\n</li>\n</$list>\n</ul>\n" - }, - "$:/core/ui/PluginListItemTemplate": { - "title": "$:/core/ui/PluginListItemTemplate", - "text": "<div class=\"tc-menu-list-item\">\n<$link to={{!!title}}><$view field=\"description\"><$view field=\"title\"/></$view></$link>\n</div>" - }, - "$:/core/ui/RootTemplate": { - "title": "$:/core/ui/RootTemplate", - "text": "<$transclude tiddler={{{ [{$:/layout}has[text]] ~[[$:/core/ui/PageTemplate]] }}} mode=\"inline\"/>\n\n" - }, - "$:/core/ui/SearchResults": { - "title": "$:/core/ui/SearchResults", - "text": "<div class=\"tc-search-results\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\" emptyMessage=\"\"\"\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\">\n<$transclude mode=\"block\"/>\n</$list>\n\"\"\">\n\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\" default={{$:/config/SearchResults/Default}} actions=\"\"\"<$action-setfield $tiddler=\"$:/state/search/currentTab\" text=<<currentTab>>/>\"\"\" explicitState=\"$:/state/tab/search-results/sidebar\"/>\n\n</$list>\n\n</div>\n" - }, - "$:/core/ui/SideBar/More": { - "title": "$:/core/ui/SideBar/More", - "tags": "$:/tags/SideBar", - "caption": "{{$:/language/SideBar/More/Caption}}", - "text": "<div class=\"tc-more-sidebar\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]\" default={{$:/config/DefaultMoreSidebarTab}} state=\"$:/state/tab/moresidebar\" class=\"tc-vertical tc-sidebar-tabs-more\" explicitState=\"$:/state/tab/moresidebar-1850697562\"/>\n</div>\n" - }, - "$:/core/ui/SideBar/Open": { - "title": "$:/core/ui/SideBar/Open", - "tags": "$:/tags/SideBar", - "caption": "{{$:/language/SideBar/Open/Caption}}", - "text": "\\whitespace trim\n\\define lingo-base() $:/language/CloseAll/\n\n\\define drop-actions()\n<$action-listops $tiddler=<<tv-story-list>> $subfilter=\"+[insertbefore:currentTiddler<actionTiddler>]\"/>\n\\end\n\n\\define placeholder()\n<div class=\"tc-droppable-placeholder\"/>\n\\end\n\n\\define droppable-item(button)\n\\whitespace trim\n<$droppable actions=<<drop-actions>> enable=<<tv-allow-drag-and-drop>>>\n<<placeholder>>\n<div>\n$button$\n</div>\n</$droppable>\n\\end\n\n<div class=\"tc-sidebar-tab-open\">\n<$list filter=\"[list<tv-story-list>]\" history=<<tv-history-list>> storyview=\"pop\">\n<div class=\"tc-sidebar-tab-open-item\">\n<$macrocall $name=\"droppable-item\" button=\"\"\"<$button message=\"tm-close-tiddler\" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=\"tc-btn-invisible tc-btn-mini tc-small-gap-right\">{{$:/core/images/close-button}}</$button><$link to={{!!title}}><$view field=\"title\"/></$link>\"\"\"/>\n</div>\n</$list>\n<$tiddler tiddler=\"\">\n<div>\n<$macrocall $name=\"droppable-item\" button=\"\"\"<$button message=\"tm-close-all-tiddlers\" class=\"tc-btn-invisible tc-btn-mini\"><<lingo Button>></$button>\"\"\"/>\n</div>\n</$tiddler>\n</div>\n" - }, - "$:/core/ui/SideBar/Recent": { - "title": "$:/core/ui/SideBar/Recent", - "tags": "$:/tags/SideBar", - "caption": "{{$:/language/SideBar/Recent/Caption}}", - "text": "<$macrocall $name=\"timeline\" format={{$:/language/RecentChanges/DateFormat}}/>\n" - }, - "$:/core/ui/SideBar/Tools": { - "title": "$:/core/ui/SideBar/Tools", - "tags": "$:/tags/SideBar", - "caption": "{{$:/language/SideBar/Tools/Caption}}", - "text": "\\define lingo-base() $:/language/ControlPanel/\n\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n\n<<lingo Basics/Version/Prompt>> <<version>>\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]\" variable=\"listItem\">\n\n<div style=\"position:relative;\" class={{{ [<listItem>encodeuricomponent[]addprefix[tc-btn-]] }}}>\n\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <$transclude tiddler=<<listItem>>/> <i class=\"tc-muted\"><$transclude tiddler=<<listItem>> field=\"description\"/></i>\n\n</div>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n" - }, - "$:/core/ui/SideBarLists": { - "title": "$:/core/ui/SideBarLists", - "text": "<$transclude tiddler=\"$:/core/ui/SideBarSegments/search\"/>\n\n<$transclude tiddler=\"$:/core/ui/SideBarSegments/tabs\"/>\n\n" - }, - "$:/core/ui/SideBarSegments/page-controls": { - "title": "$:/core/ui/SideBarSegments/page-controls", - "tags": "$:/tags/SideBarSegment", - "text": "{{||$:/core/ui/PageTemplate/pagecontrols}}\n" - }, - "$:/core/ui/SideBarSegments/search": { - "title": "$:/core/ui/SideBarSegments/search", - "tags": "$:/tags/SideBarSegment", - "text": "\\whitespace trim\n\n\\define count-popup-button()\n\\whitespace trim\n<$button popup=<<qualify \"$:/state/popup/search-dropdown\">> class=\"tc-btn-invisible\">\n{{$:/core/images/down-arrow}}\n<$list filter=\"[{$(searchTiddler)$}minlength{$:/config/Search/MinLength}limit[1]]\" variable=\"listItem\">\n<$vars userInput={{{ [<searchTiddler>get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}} replaceRegexp=\"limit\\[\\d+\\]\">\n<$vars primaryListFilter={{{ [<configTiddler>get[first-search-filter]search-replace:g:regexp<replaceRegexp>,[]] }}} secondaryListFilter={{{ [<configTiddler>get[second-search-filter]search-replace:g:regexp<replaceRegexp>,[]] }}}>\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[subfilter<primaryListFilter>] [subfilter<secondaryListFilter>]\"/>\"\"\">\n{{$:/language/Search/Matches}}\n</$set>\n</$vars>\n</$vars>\n</$list>\n</$button>\n\\end\n\n\\define search-results-list()\n\\whitespace trim\n<$vars userInput={{$(searchTiddler)$}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}}>\n<$list filter=\"[<userInput>minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n\n<$tiddler tiddler=<<configTiddler>>>\n\n{{$:/core/ui/SearchResults}}\n\n</$tiddler>\n\n</$list>\n</$vars>\n\\end\n\n\\define cancel-search-actions() <$list filter=\"[<searchTiddler>get[text]!match{$:/temp/search}]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[[$:/temp/search]] [<searchTiddler>] [<searchListState>]\"/>\"\"\"><$action-setfield $tiddler=\"$:/temp/search\" text={{{ [<searchTiddler>get[text]] }}}/><$action-setfield $tiddler=\"$:/temp/search/refresh\" text=\"yes\"/></$list>\n\n\\define input-accept-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\"\"\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\n\n\\define input-accept-variant-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\"\"\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\n\n\\define set-next-input-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab/search-results/sidebar\" tag=\"$:/tags/SearchResults\" beforeafter=\"$beforeafter$\" defaultState={{$:/config/SearchResults/Default}} actions=\"\"\"<$action-setfield $tiddler=\"$:/state/search/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define advanced-search-actions() <$action-setfield $tiddler=\"$:/temp/advancedsearch\" text={{$:/temp/search/input}}/><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text={{$:/temp/search/input}}/><<delete-state-tiddlers>><$action-navigate $to=\"$:/AdvancedSearch\"/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/><$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\"[data-tiddler-title=\"$:/AdvancedSearch\"] .tc-search input\"\"\" preventScroll=\"true\"/><$action-deletetiddler $filter=\"$:/temp/search $:/temp/search/input $:/temp/search/refresh [<searchListState>]\"/>\n\n<div class=\"tc-sidebar-lists tc-sidebar-search\">\n\n<$vars editTiddler=\"$:/temp/search\" searchTiddler=\"$:/temp/search/input\" searchListState=<<qualify \"$:/state/search-list/selected-item\">>>\n<div class=\"tc-search\">\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">>>\n<$keyboard key=\"((advanced-search-sidebar))\" actions=<<advanced-search-actions>>>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=<<editTiddler>> storeTitle=<<searchTiddler>> \n\t\tselectionStateTitle=<<searchListState>> refreshTitle=\"$:/temp/search/refresh\" type=\"search\" \n\t\ttag=\"input\" focus={{$:/config/Search/AutoFocus}} focusPopup=<<qualify \"$:/state/popup/search-dropdown\">> \n\t\tclass=\"tc-popup-handle\" filterMinLength={{$:/config/Search/MinLength}} inputCancelActions=<<cancel-search-actions>> \n\t\tinputAcceptActions=<<input-accept-actions>> inputAcceptVariantActions=<<input-accept-variant-actions>> cancelPopups=\"yes\" \n\t\tconfigTiddlerFilter=\"[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]\"/>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n<$reveal state=<<searchTiddler>> type=\"nomatch\" text=\"\">\n<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"tc-btn-invisible\">\n<<advanced-search-actions>>\n{{$:/core/images/advanced-search-button}}\n</$button>\n<$button class=\"tc-btn-invisible\">\n<<cancel-search-actions>><$action-sendmessage $message=\"tm-focus-selector\" $param=\".tc-search input\"/>\n{{$:/core/images/close-button}}\n</$button>\n<<count-popup-button>>\n</$reveal>\n<$reveal state=<<searchTiddler>> type=\"match\" text=\"\">\n<$button to=\"$:/AdvancedSearch\" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"tc-btn-invisible\">\n{{$:/core/images/advanced-search-button}}\n</$button>\n</$reveal>\n</div>\n\n<$reveal tag=\"div\" class=\"tc-block-dropdown-wrapper\" state=<<searchTiddler>> type=\"nomatch\" text=\"\">\n\n<$reveal tag=\"div\" class=\"tc-block-dropdown tc-search-drop-down tc-popup-handle\" state=<<qualify \"$:/state/popup/search-dropdown\">> type=\"nomatch\" text=\"\" default=\"\">\n\n<<search-results-list>>\n\n</$reveal>\n\n</$reveal>\n\n</$vars>\n\n</div>\n" - }, - "$:/core/ui/SideBarSegments/site-subtitle": { - "title": "$:/core/ui/SideBarSegments/site-subtitle", - "tags": "$:/tags/SideBarSegment", - "text": "<div class=\"tc-site-subtitle\">\n\n<$transclude tiddler=\"$:/SiteSubtitle\" mode=\"inline\"/>\n\n</div>\n" - }, - "$:/core/ui/SideBarSegments/site-title": { - "title": "$:/core/ui/SideBarSegments/site-title", - "tags": "$:/tags/SideBarSegment", - "text": "<h1 class=\"tc-site-title\">\n\n<$transclude tiddler=\"$:/SiteTitle\" mode=\"inline\"/>\n\n</h1>\n" - }, - "$:/core/ui/SideBarSegments/tabs": { - "title": "$:/core/ui/SideBarSegments/tabs", - "tags": "$:/tags/SideBarSegment", - "text": "<div class=\"tc-sidebar-lists tc-sidebar-tabs\">\n\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]\" default={{$:/config/DefaultSidebarTab}} state=\"$:/state/tab/sidebar\" class=\"tc-sidebar-tabs-main\" explicitState=\"$:/state/tab/sidebar--595412856\"/>\n\n</div>\n" - }, - "$:/core/ui/SwitcherModal": { - "title": "$:/core/ui/SwitcherModal", - "subtitle": "<$text text={{{[<switch>lookup[$:/language/Switcher/Subtitle/]]}}}/>", - "class": "tc-modal-centered", - "text": "<$tiddler tiddler={{{[<switch>lookup[$:/config/SwitcherTargets/]]}}}>\n\n\n<$transclude/>\n\n\n</$tiddler>" - }, - "$:/TagManager": { - "title": "$:/TagManager", - "icon": "$:/core/images/tag-button", - "color": "#bbb", - "text": "\\define lingo-base() $:/language/TagManager/\n\\define iconEditorTab(type)\n\\whitespace trim\n<$link to=\"\"><<lingo Icons/None>></$link>\n<$list filter=\"[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[sort[title]] +[$type$is[system]]\">\n<$link to={{!!title}}>\n<$transclude/> <$view field=\"title\"/>\n</$link>\n</$list>\n\\end\n\\define iconEditor(title)\n\\whitespace trim\n<div class=\"tc-drop-down-wrapper\">\n<$button popupTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} class=\"tc-btn-invisible tc-btn-dropdown\">{{$:/core/images/down-arrow}}</$button>\n<$reveal stateTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} type=\"popup\" position=\"belowleft\" text=\"\" default=\"\">\n<div class=\"tc-drop-down\">\n<$linkcatcher actions=\"\"\"<$action-setfield $tiddler=<<__title__>> icon=<<navigateTo>>/>\"\"\">\n<<iconEditorTab type:\"!\">>\n<hr/>\n<<iconEditorTab type:\"\">>\n</$linkcatcher>\n</div>\n</$reveal>\n</div>\n\\end\n\\define toggleButton(state)\n\\whitespace trim\n<$reveal stateTitle=<<__state__>> type=\"match\" text=\"closed\" default=\"closed\">\n<$button setTitle=<<__state__>> setTo=\"open\" class=\"tc-btn-invisible tc-btn-dropdown\" selectedClass=\"tc-selected\">\n{{$:/core/images/info-button}}\n</$button>\n</$reveal>\n<$reveal stateTitle=<<__state__>> type=\"match\" text=\"open\" default=\"closed\">\n<$button setTitle=<<__state__>> setTo=\"closed\" class=\"tc-btn-invisible tc-btn-dropdown\" selectedClass=\"tc-selected\">\n{{$:/core/images/info-button}}\n</$button>\n</$reveal>\n\\end\n\\whitespace trim\n<table class=\"tc-tag-manager-table\">\n<tbody>\n<tr>\n<th><<lingo Colour/Heading>></th>\n<th class=\"tc-tag-manager-tag\"><<lingo Tag/Heading>></th>\n<th><<lingo Count/Heading>></th>\n<th><<lingo Icon/Heading>></th>\n<th><<lingo Info/Heading>></th>\n</tr>\n<$list filter=\"[tags[]!is[system]sort[title]]\">\n<tr>\n<td><$edit-text field=\"color\" tag=\"input\" type=\"color\"/></td>\n<td>{{||$:/core/ui/TagTemplate}}</td>\n<td><$count filter=\"[all[current]tagging[]]\"/></td>\n<td>\n<$macrocall $name=\"iconEditor\" title={{!!title}}/>\n</td>\n<td>\n<$macrocall $name=\"toggleButton\" state={{{ [[$:/state/tag-manager/]addsuffix<currentTiddler>] }}} /> \n</td>\n</tr>\n<tr>\n<td></td>\n<td colspan=\"4\">\n<$reveal stateTitle={{{ [[$:/state/tag-manager/]addsuffix<currentTiddler>] }}} type=\"match\" text=\"open\" default=\"\">\n<table>\n<tbody>\n<tr><td><<lingo Colour/Heading>></td><td><$edit-text field=\"color\" tag=\"input\" type=\"text\" size=\"9\"/></td></tr>\n<tr><td><<lingo Icon/Heading>></td><td><$edit-text field=\"icon\" tag=\"input\" size=\"45\"/></td></tr>\n</tbody>\n</table>\n</$reveal>\n</td>\n</tr>\n</$list>\n<tr>\n<td></td>\n<td style=\"position:relative;\">\n{{$:/core/ui/UntaggedTemplate}}\n</td>\n<td>\n<small class=\"tc-menu-list-count\"><$count filter=\"[untagged[]!is[system]] -[tags[]]\"/></small>\n</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n" - }, - "$:/core/ui/TagPickerTagTemplate": { - "title": "$:/core/ui/TagPickerTagTemplate", - "text": "\\whitespace trim\n<$button class=<<button-classes>> tag=\"a\" tooltip={{$:/language/EditTemplate/Tags/Add/Button/Hint}}>\n<$list filter=\"[<saveTiddler>minlength[1]]\">\n<$action-listops $tiddler=<<saveTiddler>> $field=<<tagField>> $subfilter=\"[<tag>]\"/>\n</$list>\n<$set name=\"currentTiddlerCSSEscaped\" value={{{ [<saveTiddler>escapecss[]] }}}>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=<<get-tagpicker-focus-selector>> preventScroll=\"true\"/>\n</$set>\n<<delete-tag-state-tiddlers>>\n<$list filter=\"[<refreshTitle>minlength[1]]\">\n<$action-setfield $tiddler=<<refreshTitle>> text=\"yes\"/>\n</$list>\n<<actions>>\n<$set name=\"backgroundColor\" value={{!!color}}>\n<$wikify name=\"foregroundColor\" text=\"\"\"<$macrocall $name=\"contrastcolour\" target={{!!color}} fallbackTarget=<<fallbackTarget>> colourA=<<colourA>> colourB=<<colourB>>/>\"\"\">\n<span class=\"tc-tag-label tc-btn-invisible\" style=<<tag-pill-styles>>>\n<$transclude tiddler={{!!icon}}/><$view field=\"title\" format=\"text\"/>\n</span>\n</$wikify>\n</$set>\n</$button>\n" - }, - "$:/core/ui/TagTemplate": { - "title": "$:/core/ui/TagTemplate", - "text": "\\whitespace trim\n<span class=\"tc-tag-list-item\">\n<$set name=\"transclusion\" value=<<currentTiddler>>>\n<$macrocall $name=\"tag-pill-body\" tag=<<currentTiddler>> icon={{!!icon}} colour={{!!color}} palette={{$:/palette}} element-tag=\"\"\"$button\"\"\" element-attributes=\"\"\"popup=<<qualify \"$:/state/popup/tag\">> dragFilter='[all[current]tagging[]]' tag='span'\"\"\"/>\n<$reveal state=<<qualify \"$:/state/popup/tag\">> type=\"popup\" position=\"below\" animate=\"yes\" class=\"tc-drop-down\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</$set>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]\" variable=\"listItem\"> \n<$transclude tiddler=<<listItem>>/> \n</$list>\n<hr>\n<$macrocall $name=\"list-tagged-draggable\" tag=<<currentTiddler>>/>\n</$reveal>\n</$set>\n</span>\n" - }, - "$:/core/ui/TiddlerFieldTemplate": { - "title": "$:/core/ui/TiddlerFieldTemplate", - "text": "<tr class=\"tc-view-field\">\n<td class=\"tc-view-field-name\">\n<$text text=<<listItem>>/>\n</td>\n<td class=\"tc-view-field-value\">\n<$view field=<<listItem>>/>\n</td>\n</tr>" - }, - "$:/core/ui/TiddlerFields": { - "title": "$:/core/ui/TiddlerFields", - "text": "<table class=\"tc-view-field-table\">\n<tbody>\n<$list filter=\"[all[current]fields[]sort[title]] -text\" template=\"$:/core/ui/TiddlerFieldTemplate\" variable=\"listItem\"/>\n</tbody>\n</table>\n" - }, - "$:/core/ui/TiddlerInfo/Advanced/PluginInfo": { - "title": "$:/core/ui/TiddlerInfo/Advanced/PluginInfo", - "tags": "$:/tags/TiddlerInfo/Advanced", - "text": "\\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/\n<$list filter=\"[all[current]has[plugin-type]]\">\n\n! <<lingo Heading>>\n\n<<lingo Hint>>\n<ul>\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" emptyMessage=<<lingo Empty/Hint>>>\n<li>\n<$link to={{!!title}}>\n<$view field=\"title\"/>\n</$link>\n</li>\n</$list>\n</ul>\n\n</$list>\n" - }, - "$:/core/ui/TiddlerInfo/Advanced/ShadowInfo": { - "title": "$:/core/ui/TiddlerInfo/Advanced/ShadowInfo", - "tags": "$:/tags/TiddlerInfo/Advanced", - "text": "\\define lingo-base() $:/language/TiddlerInfo/Advanced/ShadowInfo/\n<$set name=\"infoTiddler\" value=<<currentTiddler>>>\n\n''<<lingo Heading>>''\n\n<$list filter=\"[all[current]!is[shadow]]\">\n\n<<lingo NotShadow/Hint>>\n\n</$list>\n\n<$list filter=\"[all[current]is[shadow]]\">\n\n<<lingo Shadow/Hint>>\n\n<$list filter=\"[all[current]shadowsource[]]\">\n\n<$set name=\"pluginTiddler\" value=<<currentTiddler>>>\n<<lingo Shadow/Source>>\n</$set>\n\n</$list>\n\n<$list filter=\"[all[current]is[shadow]is[tiddler]]\">\n\n<<lingo OverriddenShadow/Hint>>\n\n</$list>\n\n\n</$list>\n</$set>\n" - }, - "$:/core/ui/TiddlerInfo/Advanced": { - "title": "$:/core/ui/TiddlerInfo/Advanced", - "tags": "$:/tags/TiddlerInfo", - "caption": "{{$:/language/TiddlerInfo/Advanced/Caption}}", - "text": "<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo/Advanced]!has[draft.of]]\" variable=\"listItem\">\n\n<$transclude tiddler=<<listItem>> mode=\"block\"/>\n</$list>\n" - }, - "$:/core/ui/TiddlerInfo/Fields": { - "title": "$:/core/ui/TiddlerInfo/Fields", - "tags": "$:/tags/TiddlerInfo", - "caption": "{{$:/language/TiddlerInfo/Fields/Caption}}", - "text": "<$transclude tiddler=\"$:/core/ui/TiddlerFields\"/>\n" - }, - "$:/core/ui/TiddlerInfo/List": { - "title": "$:/core/ui/TiddlerInfo/List", - "tags": "$:/tags/TiddlerInfo", - "caption": "{{$:/language/TiddlerInfo/List/Caption}}", - "text": "\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[list{!!title}]\" emptyMessage=<<lingo List/Empty>> template=\"$:/core/ui/ListItemTemplate\"/>\n" - }, - "$:/core/ui/TiddlerInfo/Listed": { - "title": "$:/core/ui/TiddlerInfo/Listed", - "tags": "$:/tags/TiddlerInfo", - "caption": "{{$:/language/TiddlerInfo/Listed/Caption}}", - "text": "\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[all[current]listed[]!is[system]]\" emptyMessage=<<lingo Listed/Empty>> template=\"$:/core/ui/ListItemTemplate\"/>\n" - }, - "$:/core/ui/TiddlerInfo/References": { - "title": "$:/core/ui/TiddlerInfo/References", - "tags": "$:/tags/TiddlerInfo", - "caption": "{{$:/language/TiddlerInfo/References/Caption}}", - "text": "\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[all[current]backlinks[]sort[title]]\" emptyMessage=<<lingo References/Empty>> template=\"$:/core/ui/ListItemTemplate\">\n</$list>" - }, - "$:/core/ui/TiddlerInfo/Tagging": { - "title": "$:/core/ui/TiddlerInfo/Tagging", - "tags": "$:/tags/TiddlerInfo", - "caption": "{{$:/language/TiddlerInfo/Tagging/Caption}}", - "text": "\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[all[current]tagging[]]\" emptyMessage=<<lingo Tagging/Empty>> template=\"$:/core/ui/ListItemTemplate\"/>\n" - }, - "$:/core/ui/TiddlerInfo/Tools": { - "title": "$:/core/ui/TiddlerInfo/Tools", - "tags": "$:/tags/TiddlerInfo", - "caption": "{{$:/language/TiddlerInfo/Tools/Caption}}", - "text": "\\define lingo-base() $:/language/TiddlerInfo/\n\\define config-title()\n$:/config/ViewToolbarButtons/Visibility/$(listItem)$\n\\end\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]\" variable=\"listItem\">\n\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <$transclude tiddler=<<listItem>>/> <i class=\"tc-muted\"><$transclude tiddler=<<listItem>> field=\"description\"/></i>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n" - }, - "$:/core/ui/TiddlerInfo": { - "title": "$:/core/ui/TiddlerInfo", - "text": "<div style=\"position:relative;\">\n<div class=\"tc-tiddler-controls\" style=\"position:absolute;right:0;\">\n<$reveal state=\"$:/config/TiddlerInfo/Mode\" type=\"match\" text=\"sticky\">\n<$button set=<<tiddlerInfoState>> setTo=\"\" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=\"tc-btn-invisible\">\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n</div>\n\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo]!has[draft.of]]\" default={{$:/config/TiddlerInfo/Default}}/>\n" - }, - "$:/core/ui/TopBar/menu": { - "title": "$:/core/ui/TopBar/menu", - "tags": "$:/tags/TopRightBar", - "text": "<$list filter=\"[[$:/state/sidebar]get[text]] +[else[yes]!match[no]]\" variable=\"ignore\">\n<$button set=\"$:/state/sidebar\" setTo=\"no\" tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class=\"tc-btn-invisible tc-hide-sidebar-btn\">{{$:/core/images/chevron-right}}</$button>\n</$list>\n<$list filter=\"[[$:/state/sidebar]get[text]] +[else[yes]match[no]]\" variable=\"ignore\">\n<$button set=\"$:/state/sidebar\" setTo=\"yes\" tooltip={{$:/language/Buttons/ShowSideBar/Hint}} aria-label={{$:/language/Buttons/ShowSideBar/Caption}} class=\"tc-btn-invisible tc-show-sidebar-btn\">{{$:/core/images/chevron-left}}</$button>\n</$list>\n" - }, - "$:/core/ui/UntaggedTemplate": { - "title": "$:/core/ui/UntaggedTemplate", - "text": "\\define lingo-base() $:/language/SideBar/\n<$button popup=<<qualify \"$:/state/popup/tag\">> class=\"tc-btn-invisible tc-untagged-label tc-tag-label\">\n<<lingo Tags/Untagged/Caption>>\n</$button>\n<$reveal state=<<qualify \"$:/state/popup/tag\">> type=\"popup\" position=\"below\">\n<div class=\"tc-drop-down\">\n<$list filter=\"[untagged[]!is[system]] -[tags[]] +[sort[title]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n</div>\n</$reveal>\n" - }, - "$:/core/ui/ViewTemplate/body": { - "title": "$:/core/ui/ViewTemplate/body", - "tags": "$:/tags/ViewTemplate", - "text": "<$reveal tag=\"div\" class=\"tc-tiddler-body\" type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" retain=\"yes\" animate=\"yes\">\n\n<$list filter=\"[all[current]!has[plugin-type]!field:hide-body[yes]]\">\n\n<$transclude>\n\n<$transclude tiddler=\"$:/language/MissingTiddler/Hint\"/>\n\n</$transclude>\n\n</$list>\n\n</$reveal>\n" - }, - "$:/core/ui/ViewTemplate/classic": { - "title": "$:/core/ui/ViewTemplate/classic", - "tags": "$:/tags/ViewTemplate $:/tags/EditTemplate", - "text": "\\define lingo-base() $:/language/ClassicWarning/\n<$list filter=\"[all[current]type[text/x-tiddlywiki]]\">\n<div class=\"tc-message-box\">\n\n<<lingo Hint>>\n\n<$button set=\"!!type\" setTo=\"text/vnd.tiddlywiki\"><<lingo Upgrade/Caption>></$button>\n\n</div>\n</$list>\n" - }, - "$:/core/ui/ViewTemplate/import": { - "title": "$:/core/ui/ViewTemplate/import", - "tags": "$:/tags/ViewTemplate", - "text": "\\define lingo-base() $:/language/Import/\n\n\\define buttons()\n<$button message=\"tm-delete-tiddler\" param=<<currentTiddler>>><<lingo Listing/Cancel/Caption>></$button>\n<$button message=\"tm-perform-import\" param=<<currentTiddler>>><<lingo Listing/Import/Caption>></$button>\n<<lingo Listing/Preview>> <$select tiddler=\"$:/state/importpreviewtype\" default=\"$:/core/ui/ImportPreviews/Text\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ImportPreview]!has[draft.of]]\">\n<option value=<<currentTiddler>>>{{!!caption}}</option>\n</$list>\n</$select>\n\\end\n\n<$list filter=\"[all[current]field:plugin-type[import]]\">\n\n<div class=\"tc-import\">\n\n<<lingo Listing/Hint>>\n\n<<buttons>>\n\n{{||$:/core/ui/ImportListing}}\n\n<<buttons>>\n\n</div>\n\n</$list>\n" - }, - "$:/core/ui/ViewTemplate/plugin": { - "title": "$:/core/ui/ViewTemplate/plugin", - "tags": "$:/tags/ViewTemplate", - "text": "<$reveal tag=\"div\" class=\"tc-tiddler-plugin-info\" type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" retain=\"yes\" animate=\"yes\">\n\n<$list filter=\"[all[current]has[plugin-type]] -[all[current]field:plugin-type[import]]\">\n<$set name=\"plugin-type\" value={{!!plugin-type}}>\n<$set name=\"default-popup-state\" value=\"yes\">\n<$set name=\"qualified-state\" value=<<qualify \"$:/state/plugin-info\">>>\n{{||$:/core/ui/Components/plugin-info}}\n</$set>\n</$set>\n</$set>\n</$list>\n</$reveal>" - }, - "$:/core/ui/ViewTemplate/subtitle": { - "title": "$:/core/ui/ViewTemplate/subtitle", - "tags": "$:/tags/ViewTemplate", - "text": "\\whitespace trim\n<$reveal type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" tag=\"div\" retain=\"yes\" animate=\"yes\">\n<div class=\"tc-subtitle\">\n<$link to={{!!modifier}} />\n<$view field=\"modified\" format=\"date\" template={{$:/language/Tiddler/DateFormat}}/>\n</div>\n</$reveal>\n" - }, - "$:/core/ui/ViewTemplate/tags": { - "title": "$:/core/ui/ViewTemplate/tags", - "tags": "$:/tags/ViewTemplate", - "text": "<$reveal type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" tag=\"div\" retain=\"yes\" animate=\"yes\">\n<div class=\"tc-tags-wrapper\"><$list filter=\"[all[current]tags[]sort[title]]\" template=\"$:/core/ui/TagTemplate\" storyview=\"pop\"/></div>\n</$reveal>\n" - }, - "$:/core/ui/ViewTemplate/title": { - "title": "$:/core/ui/ViewTemplate/title", - "tags": "$:/tags/ViewTemplate", - "text": "\\whitespace trim\n\\define title-styles()\nfill:$(foregroundColor)$;\n\\end\n\\define config-title()\n$:/config/ViewToolbarButtons/Visibility/$(listItem)$\n\\end\n<div class=\"tc-tiddler-title\">\n<div class=\"tc-titlebar\">\n<span class=\"tc-tiddler-controls\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]\" variable=\"listItem\"><$reveal type=\"nomatch\" state=<<config-title>> text=\"hide\"><$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\"><$transclude tiddler=<<listItem>>/></$set></$reveal></$list>\n</span>\n<$set name=\"tv-wikilinks\" value={{$:/config/Tiddlers/TitleLinks}}>\n<$link>\n<$set name=\"foregroundColor\" value={{!!color}}>\n<$list filter=\"[all[current]has[icon]]~[[$:/config/DefaultTiddlerIcon]has[text]]\">\n<span class=\"tc-tiddler-title-icon\" style=<<title-styles>>>\n<$transclude tiddler={{!!icon}}>\n<$transclude tiddler={{$:/config/DefaultTiddlerIcon}}/>\n</$transclude>\n</span>\n</$list>\n</$set>\n<$list filter=\"[all[current]removeprefix[$:/]]\">\n<h2 class=\"tc-title\" title={{$:/language/SystemTiddler/Tooltip}}>\n<span class=\"tc-system-title-prefix\">$:/</span><$text text=<<currentTiddler>>/>\n</h2>\n</$list>\n<$list filter=\"[all[current]!prefix[$:/]]\">\n<h2 class=\"tc-title\">\n<$view field=\"title\"/>\n</h2>\n</$list>\n</$link>\n</$set>\n</div>\n\n<$reveal type=\"nomatch\" text=\"\" default=\"\" state=<<tiddlerInfoState>> class=\"tc-tiddler-info tc-popup-handle\" animate=\"yes\" retain=\"yes\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TiddlerInfoSegment]!has[draft.of]] [[$:/core/ui/TiddlerInfo]]\" variable=\"listItem\"><$transclude tiddler=<<listItem>> mode=\"block\"/></$list>\n\n</$reveal>\n</div>" - }, - "$:/core/ui/ViewTemplate/unfold": { - "title": "$:/core/ui/ViewTemplate/unfold", - "tags": "$:/tags/ViewTemplate", - "text": "<$reveal tag=\"div\" type=\"nomatch\" state=\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar\" text=\"hide\">\n<$reveal tag=\"div\" type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" default=\"show\" retain=\"yes\" animate=\"yes\">\n<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=\"tc-fold-banner\">\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n{{$:/core/images/chevron-up}}\n</$button>\n</$reveal>\n<$reveal tag=\"div\" type=\"nomatch\" stateTitle=<<folded-state>> text=\"show\" default=\"show\" retain=\"yes\" animate=\"yes\">\n<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=\"tc-unfold-banner\">\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n{{$:/core/images/chevron-down}}\n</$button>\n</$reveal>\n</$reveal>\n" - }, - "$:/core/ui/ViewTemplate": { - "title": "$:/core/ui/ViewTemplate", - "text": "\\define folded-state()\n$:/state/folded/$(currentTiddler)$\n\\end\n\\define cancel-delete-tiddler-actions(message) <$action-sendmessage $message=\"tm-$message$-tiddler\"/>\n\\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]]\n<$vars storyTiddler=<<currentTiddler>> tiddlerInfoState=<<qualify \"$:/state/popup/tiddler-info\">>><div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-view-frame [<currentTiddler>is[tiddler]then[tc-tiddler-exists]] [<currentTiddler>is[missing]!is[shadow]then[tc-tiddler-missing]] [<currentTiddler>is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [<currentTiddler>is[shadow]is[tiddler]then[tc-tiddler-overridden-shadow]] [<currentTiddler>is[system]then[tc-tiddler-system]] [{!!class}] [<currentTiddler>tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}><$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]\" variable=\"listItem\"><$transclude tiddler=<<listItem>>/></$list>\n</div>\n</$vars>\n" - }, - "$:/core/ui/Buttons/clone": { - "title": "$:/core/ui/Buttons/clone", - "tags": "$:/tags/ViewToolbar", - "caption": "{{$:/core/images/clone-button}} {{$:/language/Buttons/Clone/Caption}}", - "description": "{{$:/language/Buttons/Clone/Hint}}", - "text": "\\whitespace trim\n<$button message=\"tm-new-tiddler\" param=<<currentTiddler>> tooltip={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/clone-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Clone/Caption}}/>\n</span>\n</$list>\n</$button>" - }, - "$:/core/ui/Buttons/close-others": { - "title": "$:/core/ui/Buttons/close-others", - "tags": "$:/tags/ViewToolbar", - "caption": "{{$:/core/images/close-others-button}} {{$:/language/Buttons/CloseOthers/Caption}}", - "description": "{{$:/language/Buttons/CloseOthers/Hint}}", - "text": "\\whitespace trim\n<$button message=\"tm-close-other-tiddlers\" param=<<currentTiddler>> tooltip={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/close-others-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/CloseOthers/Caption}}/>\n</span>\n</$list>\n</$button>" - }, - "$:/core/ui/Buttons/close": { - "title": "$:/core/ui/Buttons/close", - "tags": "$:/tags/ViewToolbar", - "caption": "{{$:/core/images/close-button}} {{$:/language/Buttons/Close/Caption}}", - "description": "{{$:/language/Buttons/Close/Hint}}", - "text": "\\whitespace trim\n<$button message=\"tm-close-tiddler\" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/close-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/Close/Caption}}/>\n</span>\n</$list>\n</$button>" - }, - "$:/core/ui/Buttons/edit": { - "title": "$:/core/ui/Buttons/edit", - "tags": "$:/tags/ViewToolbar", - "caption": "{{$:/core/images/edit-button}} {{$:/language/Buttons/Edit/Caption}}", - "description": "{{$:/language/Buttons/Edit/Hint}}", - "text": "\\whitespace trim\n<$button message=\"tm-edit-tiddler\" tooltip={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/edit-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Edit/Caption}}/>\n</span>\n</$list>\n</$button>" - }, - "$:/core/ui/Buttons/export-tiddler": { - "title": "$:/core/ui/Buttons/export-tiddler", - "tags": "$:/tags/ViewToolbar", - "caption": "{{$:/core/images/export-button}} {{$:/language/Buttons/ExportTiddler/Caption}}", - "description": "{{$:/language/Buttons/ExportTiddler/Hint}}", - "text": "\\define makeExportFilter()\n[[$(currentTiddler)$]]\n\\end\n<$macrocall $name=\"exportButton\" exportFilter=<<makeExportFilter>> lingoBase=\"$:/language/Buttons/ExportTiddler/\" baseFilename=<<currentTiddler>>/>" - }, - "$:/core/ui/Buttons/fold-bar": { - "title": "$:/core/ui/Buttons/fold-bar", - "tags": "$:/tags/ViewToolbar", - "caption": "{{$:/core/images/chevron-up}} {{$:/language/Buttons/Fold/FoldBar/Caption}}", - "description": "{{$:/language/Buttons/Fold/FoldBar/Hint}}", - "text": "<!-- This dummy toolbar button is here to allow visibility of the fold-bar to be controlled as if it were a toolbar button -->" - }, - "$:/core/ui/Buttons/fold-others": { - "title": "$:/core/ui/Buttons/fold-others", - "tags": "$:/tags/ViewToolbar", - "caption": "{{$:/core/images/fold-others-button}} {{$:/language/Buttons/FoldOthers/Caption}}", - "description": "{{$:/language/Buttons/FoldOthers/Hint}}", - "text": "\\whitespace trim\n<$button tooltip={{$:/language/Buttons/FoldOthers/Hint}} aria-label={{$:/language/Buttons/FoldOthers/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-other-tiddlers\" $param=<<currentTiddler>> foldedStatePrefix=\"$:/state/folded/\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/fold-others-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/FoldOthers/Caption}}/>\n</span>\n</$list>\n</$button>" - }, - "$:/core/ui/Buttons/fold": { - "title": "$:/core/ui/Buttons/fold", - "tags": "$:/tags/ViewToolbar", - "caption": "{{$:/core/images/fold-button}} {{$:/language/Buttons/Fold/Caption}}", - "description": "{{$:/language/Buttons/Fold/Hint}}", - "text": "\\whitespace trim\n<$reveal type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" default=\"show\">\n<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/fold-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Fold/Caption}}/>\n</span>\n</$list>\n</$button>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<folded-state>> text=\"hide\" default=\"show\">\n<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/unfold-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Unfold/Caption}}/>\n</span>\n</$list>\n</$button>\n</$reveal>\n" - }, - "$:/core/ui/Buttons/info": { - "title": "$:/core/ui/Buttons/info", - "tags": "$:/tags/ViewToolbar", - "caption": "{{$:/core/images/info-button}} {{$:/language/Buttons/Info/Caption}}", - "description": "{{$:/language/Buttons/Info/Hint}}", - "text": "\\whitespace trim\n\\define button-content()\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/info-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/Info/Caption}}/>\n</span>\n</$list>\n\\end\n<$reveal state=\"$:/config/TiddlerInfo/Mode\" type=\"match\" text=\"popup\">\n<$button popup=<<tiddlerInfoState>> tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$macrocall $name=\"button-content\" mode=\"inline\"/>\n</$button>\n</$reveal>\n<$reveal state=\"$:/config/TiddlerInfo/Mode\" type=\"match\" text=\"sticky\">\n<$reveal state=<<tiddlerInfoState>> type=\"match\" text=\"\" default=\"\">\n<$button set=<<tiddlerInfoState>> setTo=\"yes\" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$macrocall $name=\"button-content\" mode=\"inline\"/>\n</$button>\n</$reveal>\n<$reveal state=<<tiddlerInfoState>> type=\"nomatch\" text=\"\" default=\"\">\n<$button set=<<tiddlerInfoState>> setTo=\"\" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$macrocall $name=\"button-content\" mode=\"inline\"/>\n</$button>\n</$reveal>\n</$reveal>" - }, - "$:/core/ui/Buttons/more-tiddler-actions": { - "title": "$:/core/ui/Buttons/more-tiddler-actions", - "tags": "$:/tags/ViewToolbar", - "caption": "{{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}", - "description": "{{$:/language/Buttons/More/Hint}}", - "text": "\\whitespace trim\n\\define config-title()\n$:/config/ViewToolbarButtons/Visibility/$(listItem)$\n\\end\n<$button popup=<<qualify \"$:/state/popup/more\">> tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/down-arrow}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/More/Caption}}/>\n</span>\n</$list>\n</$button>\n<$reveal state=<<qualify \"$:/state/popup/more\">> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n\n<div class=\"tc-drop-down\">\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"tc-btn-invisible\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]\" variable=\"listItem\">\n\n<$reveal type=\"match\" state=<<config-title>> text=\"hide\">\n\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$set>\n\n</$reveal>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n\n</div>\n\n</$reveal>" - }, - "$:/core/ui/Buttons/new-here": { - "title": "$:/core/ui/Buttons/new-here", - "tags": "$:/tags/ViewToolbar", - "caption": "{{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Caption}}", - "description": "{{$:/language/Buttons/NewHere/Hint}}", - "text": "\\whitespace trim\n\\define newHereActions()\n<$set name=\"tags\" filter=\"[<currentTiddler>] [{$:/config/NewTiddler/Tags}]\">\n<$action-sendmessage $message=\"tm-new-tiddler\" tags=<<tags>>/>\n</$set>\n\\end\n\\define newHereButton()\n<$button actions=<<newHereActions>> tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-here-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/NewHere/Caption}}/>\n</span>\n</$list>\n</$button>\n\\end\n<<newHereButton>>\n" - }, - "$:/core/ui/Buttons/new-journal-here": { - "title": "$:/core/ui/Buttons/new-journal-here", - "tags": "$:/tags/ViewToolbar", - "caption": "{{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournalHere/Caption}}", - "description": "{{$:/language/Buttons/NewJournalHere/Hint}}", - "text": "\\whitespace trim\n\\define journalButtonTags()\n[[$(currentTiddlerTag)$]] $(journalTags)$\n\\end\n\\define journalButton()\n<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=<<tv-config-toolbar-class>>>\n<$wikify name=\"journalTitle\" text=\"\"\"<$macrocall $name=\"now\" format=<<journalTitleTemplate>>/>\"\"\">\n<$action-sendmessage $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<journalButtonTags>>/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-journal-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/NewJournalHere/Caption}}/>\n</span>\n</$list>\n</$wikify>\n</$button>\n\\end\n<$set name=\"journalTitleTemplate\" value={{$:/config/NewJournal/Title}}>\n<$set name=\"journalTags\" value={{$:/config/NewJournal/Tags}}>\n<$set name=\"currentTiddlerTag\" value=<<currentTiddler>>>\n<<journalButton>>\n</$set>\n</$set>\n</$set>\n" - }, - "$:/core/ui/Buttons/open-window": { - "title": "$:/core/ui/Buttons/open-window", - "tags": "$:/tags/ViewToolbar", - "caption": "{{$:/core/images/open-window}} {{$:/language/Buttons/OpenWindow/Caption}}", - "description": "{{$:/language/Buttons/OpenWindow/Hint}}", - "text": "\\whitespace trim\n<$button message=\"tm-open-window\" tooltip={{$:/language/Buttons/OpenWindow/Hint}} aria-label={{$:/language/Buttons/OpenWindow/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/open-window}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/OpenWindow/Caption}}/>\n</span>\n</$list>\n</$button>" - }, - "$:/core/ui/Buttons/permalink": { - "title": "$:/core/ui/Buttons/permalink", - "tags": "$:/tags/ViewToolbar", - "caption": "{{$:/core/images/permalink-button}} {{$:/language/Buttons/Permalink/Caption}}", - "description": "{{$:/language/Buttons/Permalink/Hint}}", - "text": "\\whitespace trim\n<$button message=\"tm-permalink\" tooltip={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/permalink-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Permalink/Caption}}/>\n</span>\n</$list>\n</$button>" - }, - "$:/core/ui/Buttons/permaview": { - "title": "$:/core/ui/Buttons/permaview", - "tags": "$:/tags/ViewToolbar $:/tags/PageControls", - "caption": "{{$:/core/images/permaview-button}} {{$:/language/Buttons/Permaview/Caption}}", - "description": "{{$:/language/Buttons/Permaview/Hint}}", - "text": "\\whitespace trim\n<$button message=\"tm-permaview\" tooltip={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/permaview-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Permaview/Caption}}/>\n</span>\n</$list>\n</$button>" - }, - "$:/DefaultTiddlers": { - "title": "$:/DefaultTiddlers", - "text": "GettingStarted\n" - }, - "$:/temp/advancedsearch": { - "title": "$:/temp/advancedsearch", - "text": "" - }, - "$:/snippets/allfields": { - "title": "$:/snippets/allfields", - "text": "\\define renderfield(title)\n<tr class=\"tc-view-field\"><td class=\"tc-view-field-name\">''$title$'':</td><td class=\"tc-view-field-value\">//{{$:/language/Docs/Fields/$title$}}//</td></tr>\n\\end\n<table class=\"tc-view-field-table\"><tbody><$list filter=\"[fields[]sort[title]]\" variable=\"listItem\"><$macrocall $name=\"renderfield\" title=<<listItem>>/></$list>\n</tbody></table>\n" - }, - "$:/config/AnimationDuration": { - "title": "$:/config/AnimationDuration", - "text": "400" - }, - "$:/config/AutoFocus": { - "title": "$:/config/AutoFocus", - "text": "title" - }, - "$:/config/AutoSave": { - "title": "$:/config/AutoSave", - "text": "yes" - }, - "$:/config/BitmapEditor/Colour": { - "title": "$:/config/BitmapEditor/Colour", - "text": "#444" - }, - "$:/config/BitmapEditor/ImageSizes": { - "title": "$:/config/BitmapEditor/ImageSizes", - "text": "[[62px 100px]] [[100px 62px]] [[124px 200px]] [[200px 124px]] [[248px 400px]] [[371px 600px]] [[400px 248px]] [[556px 900px]] [[600px 371px]] [[742px 1200px]] [[900px 556px]] [[1200px 742px]]" - }, - "$:/config/BitmapEditor/LineWidth": { - "title": "$:/config/BitmapEditor/LineWidth", - "text": "3px" - }, - "$:/config/BitmapEditor/LineWidths": { - "title": "$:/config/BitmapEditor/LineWidths", - "text": "0.25px 0.5px 1px 2px 3px 4px 6px 8px 10px 16px 20px 28px 40px 56px 80px" - }, - "$:/config/BitmapEditor/Opacities": { - "title": "$:/config/BitmapEditor/Opacities", - "text": "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" - }, - "$:/config/BitmapEditor/Opacity": { - "title": "$:/config/BitmapEditor/Opacity", - "text": "1.0" - }, - "$:/config/DefaultMoreSidebarTab": { - "title": "$:/config/DefaultMoreSidebarTab", - "text": "$:/core/ui/MoreSideBar/Tags" - }, - "$:/config/DefaultSidebarTab": { - "title": "$:/config/DefaultSidebarTab", - "text": "$:/core/ui/SideBar/Open" - }, - "$:/config/DownloadSaver/AutoSave": { - "title": "$:/config/DownloadSaver/AutoSave", - "text": "no" - }, - "$:/config/Drafts/TypingTimeout": { - "title": "$:/config/Drafts/TypingTimeout", - "text": "400" - }, - "$:/config/EditMode/fieldname-filter": { - "title": "$:/config/EditMode/fieldname-filter", - "first-search-filter": "[!is[shadow]!is[system]fields[]search:title<userInput>sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type", - "second-search-filter": "[fields[]search:title<userInput>sort[]] -[!is[shadow]!is[system]fields[]]" - }, - "$:/config/EditTabIndex": { - "title": "$:/config/EditTabIndex", - "text": "1\n" - }, - "$:/config/EditTemplateFields/Visibility/title": { - "title": "$:/config/EditTemplateFields/Visibility/title", - "text": "hide" - }, - "$:/config/EditTemplateFields/Visibility/tags": { - "title": "$:/config/EditTemplateFields/Visibility/tags", - "text": "hide" - }, - "$:/config/EditTemplateFields/Visibility/text": { - "title": "$:/config/EditTemplateFields/Visibility/text", - "text": "hide" - }, - "$:/config/EditTemplateFields/Visibility/creator": { - "title": "$:/config/EditTemplateFields/Visibility/creator", - "text": "hide" - }, - "$:/config/EditTemplateFields/Visibility/created": { - "title": "$:/config/EditTemplateFields/Visibility/created", - "text": "hide" - }, - "$:/config/EditTemplateFields/Visibility/modified": { - "title": "$:/config/EditTemplateFields/Visibility/modified", - "text": "hide" - }, - "$:/config/EditTemplateFields/Visibility/modifier": { - "title": "$:/config/EditTemplateFields/Visibility/modifier", - "text": "hide" - }, - "$:/config/EditTemplateFields/Visibility/type": { - "title": "$:/config/EditTemplateFields/Visibility/type", - "text": "hide" - }, - "$:/config/EditTemplateFields/Visibility/draft.title": { - "title": "$:/config/EditTemplateFields/Visibility/draft.title", - "text": "hide" - }, - "$:/config/EditTemplateFields/Visibility/draft.of": { - "title": "$:/config/EditTemplateFields/Visibility/draft.of", - "text": "hide" - }, - "$:/config/EditTemplateFields/Visibility/revision": { - "title": "$:/config/EditTemplateFields/Visibility/revision", - "text": "hide" - }, - "$:/config/EditTemplateFields/Visibility/bag": { - "title": "$:/config/EditTemplateFields/Visibility/bag", - "text": "hide" - }, - "$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4": { - "title": "$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4", - "text": "hide" - }, - "$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-5": { - "title": "$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-5", - "text": "hide" - }, - "$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-6": { - "title": "$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-6", - "text": "hide" - }, - "$:/config/EditorTypeMappings/image/gif": { - "title": "$:/config/EditorTypeMappings/image/gif", - "text": "bitmap" - }, - "$:/config/EditorTypeMappings/image/webp": { - "title": "$:/config/EditorTypeMappings/image/webp", - "text": "bitmap" - }, - "$:/config/EditorTypeMappings/image/heic": { - "title": "$:/config/EditorTypeMappings/image/heic", - "text": "bitmap" - }, - "$:/config/EditorTypeMappings/image/heif": { - "title": "$:/config/EditorTypeMappings/image/heif", - "text": "bitmap" - }, - "$:/config/EditorTypeMappings/image/jpeg": { - "title": "$:/config/EditorTypeMappings/image/jpeg", - "text": "bitmap" - }, - "$:/config/EditorTypeMappings/image/jpg": { - "title": "$:/config/EditorTypeMappings/image/jpg", - "text": "bitmap" - }, - "$:/config/EditorTypeMappings/image/png": { - "title": "$:/config/EditorTypeMappings/image/png", - "text": "bitmap" - }, - "$:/config/EditorTypeMappings/image/x-icon": { - "title": "$:/config/EditorTypeMappings/image/x-icon", - "text": "bitmap" - }, - "$:/config/EditorTypeMappings/text/vnd.tiddlywiki": { - "title": "$:/config/EditorTypeMappings/text/vnd.tiddlywiki", - "text": "text" - }, - "$:/config/Manager/Show": { - "title": "$:/config/Manager/Show", - "text": "tiddlers" - }, - "$:/config/Manager/Filter": { - "title": "$:/config/Manager/Filter", - "text": "" - }, - "$:/config/Manager/Order": { - "title": "$:/config/Manager/Order", - "text": "forward" - }, - "$:/config/Manager/Sort": { - "title": "$:/config/Manager/Sort", - "text": "title" - }, - "$:/config/Manager/System": { - "title": "$:/config/Manager/System", - "text": "system" - }, - "$:/config/Manager/Tag": { - "title": "$:/config/Manager/Tag", - "text": "" - }, - "$:/state/popup/manager/item/$:/Manager/ItemMain/RawText": { - "title": "$:/state/popup/manager/item/$:/Manager/ItemMain/RawText", - "text": "hide" - }, - "$:/config/MissingLinks": { - "title": "$:/config/MissingLinks", - "text": "yes" - }, - "$:/config/Navigation/UpdateAddressBar": { - "title": "$:/config/Navigation/UpdateAddressBar", - "text": "no" - }, - "$:/config/Navigation/UpdateHistory": { - "title": "$:/config/Navigation/UpdateHistory", - "text": "no" - }, - "$:/config/NewImageType": { - "title": "$:/config/NewImageType", - "text": "jpeg" - }, - "$:/config/OfficialPluginLibrary": { - "title": "$:/config/OfficialPluginLibrary", - "tags": "$:/tags/PluginLibrary", - "url": "https://tiddlywiki.com/library/v5.1.23/index.html", - "caption": "{{$:/language/OfficialPluginLibrary}}", - "text": "{{$:/language/OfficialPluginLibrary/Hint}}\n" - }, - "$:/config/Navigation/openLinkFromInsideRiver": { - "title": "$:/config/Navigation/openLinkFromInsideRiver", - "text": "below" - }, - "$:/config/Navigation/openLinkFromOutsideRiver": { - "title": "$:/config/Navigation/openLinkFromOutsideRiver", - "text": "top" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/close-all": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/close-all", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/encryption": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/encryption", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/export-page": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/export-page", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/fold-all": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/fold-all", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/full-screen": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/full-screen", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/refresh": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/refresh", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/import": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/import", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/language": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/language", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/tag-manager": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/tag-manager", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/manager": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/manager", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-journal": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-journal", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-image": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-image", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/palette": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/palette", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/permaview": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/permaview", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/print": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/print", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/storyview": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/storyview", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/timestamp": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/timestamp", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/theme": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/theme", - "text": "hide" - }, - "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/unfold-all": { - "title": "$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/unfold-all", - "text": "hide" - }, - "$:/config/Performance/Instrumentation": { - "title": "$:/config/Performance/Instrumentation", - "text": "no" - }, - "$:/config/RegisterPluginType/plugin": { - "title": "$:/config/RegisterPluginType/plugin", - "text": "yes" - }, - "$:/config/RegisterPluginType/theme": { - "title": "$:/config/RegisterPluginType/theme", - "text": "no" - }, - "$:/config/RegisterPluginType/language": { - "title": "$:/config/RegisterPluginType/language", - "text": "no" - }, - "$:/config/RegisterPluginType/info": { - "title": "$:/config/RegisterPluginType/info", - "text": "yes" - }, - "$:/config/RegisterPluginType/import": { - "title": "$:/config/RegisterPluginType/import", - "text": "no" - }, - "$:/config/SaveWikiButton/Template": { - "title": "$:/config/SaveWikiButton/Template", - "text": "$:/core/save/all" - }, - "$:/config/SaverFilter": { - "title": "$:/config/SaverFilter", - "text": "[all[]] -[prefix[$:/HistoryList]] -[prefix[$:/StoryList]] -[status[pending]plugin-type[import]] -[[$:/isEncrypted]] -[[$:/UploadName]] -[prefix[$:/state/]] -[prefix[$:/temp/]]\n" - }, - "$:/config/Search/AutoFocus": { - "title": "$:/config/Search/AutoFocus", - "text": "true" - }, - "$:/config/Search/MinLength": { - "title": "$:/config/Search/MinLength", - "text": "3" - }, - "$:/config/SearchResults/Default": { - "title": "$:/config/SearchResults/Default", - "text": "$:/core/ui/DefaultSearchResultList" - }, - "$:/config/Server/ExternalFilters/[all[tiddlers]!is[system]sort[title]]": { - "title": "$:/config/Server/ExternalFilters/[all[tiddlers]!is[system]sort[title]]", - "text": "yes" - }, - "$:/config/ShortcutInfo/add-field": { - "title": "$:/config/ShortcutInfo/add-field", - "text": "{{$:/language/EditTemplate/Fields/Add/Button/Hint}}" - }, - "$:/config/ShortcutInfo/advanced-search": { - "title": "$:/config/ShortcutInfo/advanced-search", - "text": "{{$:/language/Buttons/AdvancedSearch/Hint}}" - }, - "$:/config/ShortcutInfo/advanced-search-sidebar": { - "title": "$:/config/ShortcutInfo/advanced-search-sidebar", - "text": "{{$:/language/Shortcuts/Input/AdvancedSearch/Hint}}" - }, - "$:/config/ShortcutInfo/bold": { - "title": "$:/config/ShortcutInfo/bold", - "text": "{{$:/language/Buttons/Bold/Hint}}" - }, - "$:/config/ShortcutInfo/cancel-edit-tiddler": { - "title": "$:/config/ShortcutInfo/cancel-edit-tiddler", - "text": "{{$:/language/Buttons/Cancel/Hint}}" - }, - "$:/config/ShortcutInfo/change-sidebar-layout": { - "title": "$:/config/ShortcutInfo/change-sidebar-layout", - "text": "{{$:/language/Shortcuts/SidebarLayout/Hint}}" - }, - "$:/config/ShortcutInfo/delete-field": { - "title": "$:/config/ShortcutInfo/delete-field", - "text": "{{$:/language/EditTemplate/Field/Remove/Hint}}" - }, - "$:/config/ShortcutInfo/excise": { - "title": "$:/config/ShortcutInfo/excise", - "text": "{{$:/language/Buttons/Excise/Hint}}" - }, - "$:/config/ShortcutInfo/heading-1": { - "title": "$:/config/ShortcutInfo/heading-1", - "text": "{{$:/language/Buttons/Heading1/Hint}}" - }, - "$:/config/ShortcutInfo/heading-2": { - "title": "$:/config/ShortcutInfo/heading-2", - "text": "{{$:/language/Buttons/Heading2/Hint}}" - }, - "$:/config/ShortcutInfo/heading-3": { - "title": "$:/config/ShortcutInfo/heading-3", - "text": "{{$:/language/Buttons/Heading3/Hint}}" - }, - "$:/config/ShortcutInfo/heading-4": { - "title": "$:/config/ShortcutInfo/heading-4", - "text": "{{$:/language/Buttons/Heading4/Hint}}" - }, - "$:/config/ShortcutInfo/heading-5": { - "title": "$:/config/ShortcutInfo/heading-5", - "text": "{{$:/language/Buttons/Heading5/Hint}}" - }, - "$:/config/ShortcutInfo/heading-6": { - "title": "$:/config/ShortcutInfo/heading-6", - "text": "{{$:/language/Buttons/Heading6/Hint}}" - }, - "$:/config/ShortcutInfo/input-accept": { - "title": "$:/config/ShortcutInfo/input-accept", - "text": "{{$:/language/Shortcuts/Input/Accept/Hint}}" - }, - "$:/config/ShortcutInfo/input-accept-variant": { - "title": "$:/config/ShortcutInfo/input-accept-variant", - "text": "{{$:/language/Shortcuts/Input/AcceptVariant/Hint}}" - }, - "$:/config/ShortcutInfo/input-cancel": { - "title": "$:/config/ShortcutInfo/input-cancel", - "text": "{{$:/language/Shortcuts/Input/Cancel/Hint}}" - }, - "$:/config/ShortcutInfo/input-down": { - "title": "$:/config/ShortcutInfo/input-down", - "text": "{{$:/language/Shortcuts/Input/Down/Hint}}" - }, - "$:/config/ShortcutInfo/input-tab-left": { - "title": "$:/config/ShortcutInfo/input-tab-left", - "text": "{{$:/language/Shortcuts/Input/Tab-Left/Hint}}" - }, - "$:/config/ShortcutInfo/input-tab-right": { - "title": "$:/config/ShortcutInfo/input-tab-right", - "text": "{{$:/language/Shortcuts/Input/Tab-Right/Hint}}" - }, - "$:/config/ShortcutInfo/input-up": { - "title": "$:/config/ShortcutInfo/input-up", - "text": "{{$:/language/Shortcuts/Input/Up/Hint}}" - }, - "$:/config/ShortcutInfo/italic": { - "title": "$:/config/ShortcutInfo/italic", - "text": "{{$:/language/Buttons/Italic/Hint}}" - }, - "$:/config/ShortcutInfo/layout-switcher": { - "title": "$:/config/ShortcutInfo/layout-switcher", - "text": "{{$:/language/LayoutSwitcher/Description}}" - }, - "$:/config/ShortcutInfo/link": { - "title": "$:/config/ShortcutInfo/link", - "text": "{{$:/language/Buttons/Link/Hint}}" - }, - "$:/config/ShortcutInfo/linkify": { - "title": "$:/config/ShortcutInfo/linkify", - "text": "{{$:/language/Buttons/Linkify/Hint}}" - }, - "$:/config/ShortcutInfo/list-bullet": { - "title": "$:/config/ShortcutInfo/list-bullet", - "text": "{{$:/language/Buttons/ListBullet/Hint}}" - }, - "$:/config/ShortcutInfo/list-number": { - "title": "$:/config/ShortcutInfo/list-number", - "text": "{{$:/language/Buttons/ListNumber/Hint}}" - }, - "$:/config/ShortcutInfo/mono-block": { - "title": "$:/config/ShortcutInfo/mono-block", - "text": "{{$:/language/Buttons/MonoBlock/Hint}}" - }, - "$:/config/ShortcutInfo/mono-line": { - "title": "$:/config/ShortcutInfo/mono-line", - "text": "{{$:/language/Buttons/MonoLine/Hint}}" - }, - "$:/config/ShortcutInfo/new-image": { - "title": "$:/config/ShortcutInfo/new-image", - "text": "{{$:/language/Buttons/NewImage/Hint}}" - }, - "$:/config/ShortcutInfo/new-journal": { - "title": "$:/config/ShortcutInfo/new-journal", - "text": "{{$:/language/Buttons/NewJournal/Hint}}" - }, - "$:/config/ShortcutInfo/new-tiddler": { - "title": "$:/config/ShortcutInfo/new-tiddler", - "text": "{{$:/language/Buttons/NewTiddler/Hint}}" - }, - "$:/config/ShortcutInfo/picture": { - "title": "$:/config/ShortcutInfo/picture", - "text": "{{$:/language/Buttons/Picture/Hint}}" - }, - "$:/config/ShortcutInfo/preview": { - "title": "$:/config/ShortcutInfo/preview", - "text": "{{$:/language/Buttons/Preview/Hint}}" - }, - "$:/config/ShortcutInfo/quote": { - "title": "$:/config/ShortcutInfo/quote", - "text": "{{$:/language/Buttons/Quote/Hint}}" - }, - "$:/config/ShortcutInfo/save-tiddler": { - "title": "$:/config/ShortcutInfo/save-tiddler", - "text": "{{$:/language/Buttons/Save/Hint}}" - }, - "$:/config/ShortcutInfo/save-wiki": { - "title": "$:/config/ShortcutInfo/save-wiki", - "text": "{{$:/language/Buttons/SaveWiki/Hint}}" - }, - "$:/config/ShortcutInfo/sidebar-search": { - "title": "$:/config/ShortcutInfo/sidebar-search", - "text": "{{$:/language/Buttons/SidebarSearch/Hint}}" - }, - "$:/config/ShortcutInfo/stamp": { - "title": "$:/config/ShortcutInfo/stamp", - "text": "{{$:/language/Buttons/Stamp/Hint}}" - }, - "$:/config/ShortcutInfo/strikethrough": { - "title": "$:/config/ShortcutInfo/strikethrough", - "text": "{{$:/language/Buttons/Strikethrough/Hint}}" - }, - "$:/config/ShortcutInfo/subscript": { - "title": "$:/config/ShortcutInfo/subscript", - "text": "{{$:/language/Buttons/Subscript/Hint}}" - }, - "$:/config/ShortcutInfo/superscript": { - "title": "$:/config/ShortcutInfo/superscript", - "text": "{{$:/language/Buttons/Superscript/Hint}}" - }, - "$:/config/ShortcutInfo/toggle-sidebar": { - "title": "$:/config/ShortcutInfo/toggle-sidebar", - "text": "{{$:/language/Buttons/ToggleSidebar/Hint}}" - }, - "$:/config/ShortcutInfo/transcludify": { - "title": "$:/config/ShortcutInfo/transcludify", - "text": "{{$:/language/Buttons/Transcludify/Hint}}" - }, - "$:/config/ShortcutInfo/underline": { - "title": "$:/config/ShortcutInfo/underline", - "text": "{{$:/language/Buttons/Underline/Hint}}" - }, - "$:/config/SwitcherTargets/layout": { - "title": "$:/config/SwitcherTargets/layout", - "text": "$:/snippets/LayoutSwitcher" - }, - "$:/config/SwitcherTargets/language": { - "title": "$:/config/SwitcherTargets/language", - "text": "$:/snippets/languageswitcher" - }, - "$:/config/SwitcherTargets/palette": { - "title": "$:/config/SwitcherTargets/palette", - "text": "$:/core/ui/ControlPanel/Palette" - }, - "$:/config/SwitcherTargets/theme": { - "title": "$:/config/SwitcherTargets/theme", - "text": "$:/core/ui/ControlPanel/Theme" - }, - "$:/config/SyncFilter": { - "title": "$:/config/SyncFilter", - "text": "[is[tiddler]] -[[$:/core]] -[[$:/library/sjcl.js]] -[prefix[$:/boot/]] -[prefix[$:/HistoryList]] -[status[pending]plugin-type[import]] -[[$:/isEncrypted]] -[prefix[$:/status/]] -[prefix[$:/state/]] -[prefix[$:/temp/]]\n" - }, - "$:/config/SyncSystemTiddlersFromServer": { - "title": "$:/config/SyncSystemTiddlersFromServer", - "text": "no" - }, - "$:/config/Tags/MinLength": { - "title": "$:/config/Tags/MinLength", - "text": "0" - }, - "$:/config/TextEditor/EditorHeight/Height": { - "title": "$:/config/TextEditor/EditorHeight/Height", - "text": "400px" - }, - "$:/config/TextEditor/EditorHeight/Mode": { - "title": "$:/config/TextEditor/EditorHeight/Mode", - "text": "auto" - }, - "$:/config/TiddlerInfo/Default": { - "title": "$:/config/TiddlerInfo/Default", - "text": "$:/core/ui/TiddlerInfo/Fields" - }, - "$:/config/TiddlerInfo/Mode": { - "title": "$:/config/TiddlerInfo/Mode", - "text": "popup" - }, - "$:/config/Tiddlers/TitleLinks": { - "title": "$:/config/Tiddlers/TitleLinks", - "text": "no" - }, - "$:/config/Toolbar/ButtonClass": { - "title": "$:/config/Toolbar/ButtonClass", - "text": "tc-btn-invisible" - }, - "$:/config/Toolbar/Icons": { - "title": "$:/config/Toolbar/Icons", - "text": "yes" - }, - "$:/config/Toolbar/Text": { - "title": "$:/config/Toolbar/Text", - "text": "no" - }, - "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone": { - "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone", - "text": "hide" - }, - "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/close-others": { - "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/close-others", - "text": "hide" - }, - "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/export-tiddler": { - "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/export-tiddler", - "text": "hide" - }, - "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/info": { - "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/info", - "text": "hide" - }, - "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/more-tiddler-actions": { - "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/more-tiddler-actions", - "text": "show" - }, - "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here": { - "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here", - "text": "hide" - }, - "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-journal-here": { - "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-journal-here", - "text": "hide" - }, - "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/open-window": { - "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/open-window", - "text": "hide" - }, - "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permalink": { - "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permalink", - "text": "hide" - }, - "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permaview": { - "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permaview", - "text": "hide" - }, - "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/delete": { - "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/delete", - "text": "hide" - }, - "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold": { - "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold", - "text": "hide" - }, - "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar": { - "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar", - "text": "hide" - }, - "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-others": { - "title": "$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-others", - "text": "hide" - }, - "$:/config/shortcuts-mac/bold": { - "title": "$:/config/shortcuts-mac/bold", - "text": "meta-B" - }, - "$:/config/shortcuts-mac/input-tab-left": { - "title": "$:/config/shortcuts-mac/input-tab-left", - "text": "ctrl-Left" - }, - "$:/config/shortcuts-mac/input-tab-right": { - "title": "$:/config/shortcuts-mac/input-tab-right", - "text": "ctrl-Right" - }, - "$:/config/shortcuts-mac/italic": { - "title": "$:/config/shortcuts-mac/italic", - "text": "meta-I" - }, - "$:/config/shortcuts-mac/underline": { - "title": "$:/config/shortcuts-mac/underline", - "text": "meta-U" - }, - "$:/config/shortcuts-mac/new-image": { - "title": "$:/config/shortcuts-mac/new-image", - "text": "ctrl-I" - }, - "$:/config/shortcuts-mac/new-journal": { - "title": "$:/config/shortcuts-mac/new-journal", - "text": "ctrl-J" - }, - "$:/config/shortcuts-mac/new-tiddler": { - "title": "$:/config/shortcuts-mac/new-tiddler", - "text": "ctrl-N" - }, - "$:/config/shortcuts-mac/save-wiki": { - "title": "$:/config/shortcuts-mac/save-wiki", - "text": "meta-S" - }, - "$:/config/shortcuts-not-mac/bold": { - "title": "$:/config/shortcuts-not-mac/bold", - "text": "ctrl-B" - }, - "$:/config/shortcuts-not-mac/italic": { - "title": "$:/config/shortcuts-not-mac/italic", - "text": "ctrl-I" - }, - "$:/config/shortcuts-not-mac/underline": { - "title": "$:/config/shortcuts-not-mac/underline", - "text": "ctrl-U" - }, - "$:/config/shortcuts-not-mac/new-image": { - "title": "$:/config/shortcuts-not-mac/new-image", - "text": "alt-I" - }, - "$:/config/shortcuts-not-mac/new-journal": { - "title": "$:/config/shortcuts-not-mac/new-journal", - "text": "alt-J" - }, - "$:/config/shortcuts-not-mac/new-tiddler": { - "title": "$:/config/shortcuts-not-mac/new-tiddler", - "text": "alt-N" - }, - "$:/config/shortcuts/add-field": { - "title": "$:/config/shortcuts/add-field", - "text": "enter" - }, - "$:/config/shortcuts/advanced-search": { - "title": "$:/config/shortcuts/advanced-search", - "text": "ctrl-shift-A" - }, - "$:/config/shortcuts/advanced-search-sidebar": { - "title": "$:/config/shortcuts/advanced-search-sidebar", - "text": "alt-Enter" - }, - "$:/config/shortcuts/cancel-edit-tiddler": { - "title": "$:/config/shortcuts/cancel-edit-tiddler", - "text": "escape" - }, - "$:/config/shortcuts/change-sidebar-layout": { - "title": "$:/config/shortcuts/change-sidebar-layout", - "text": "shift-alt-Down" - }, - "$:/config/shortcuts/delete-field": { - "title": "$:/config/shortcuts/delete-field", - "text": "shift-alt-D" - }, - "$:/config/shortcuts/excise": { - "title": "$:/config/shortcuts/excise", - "text": "ctrl-E" - }, - "$:/config/shortcuts/sidebar-search": { - "title": "$:/config/shortcuts/sidebar-search", - "text": "ctrl-shift-F" - }, - "$:/config/shortcuts/heading-1": { - "title": "$:/config/shortcuts/heading-1", - "text": "ctrl-1" - }, - "$:/config/shortcuts/heading-2": { - "title": "$:/config/shortcuts/heading-2", - "text": "ctrl-2" - }, - "$:/config/shortcuts/heading-3": { - "title": "$:/config/shortcuts/heading-3", - "text": "ctrl-3" - }, - "$:/config/shortcuts/heading-4": { - "title": "$:/config/shortcuts/heading-4", - "text": "ctrl-4" - }, - "$:/config/shortcuts/heading-5": { - "title": "$:/config/shortcuts/heading-5", - "text": "ctrl-5" - }, - "$:/config/shortcuts/heading-6": { - "title": "$:/config/shortcuts/heading-6", - "text": "ctrl-6" - }, - "$:/config/shortcuts/input-accept": { - "title": "$:/config/shortcuts/input-accept", - "text": "Enter" - }, - "$:/config/shortcuts/input-accept-variant": { - "title": "$:/config/shortcuts/input-accept-variant", - "text": "ctrl-Enter" - }, - "$:/config/shortcuts/input-cancel": { - "title": "$:/config/shortcuts/input-cancel", - "text": "Escape" - }, - "$:/config/shortcuts/input-down": { - "title": "$:/config/shortcuts/input-down", - "text": "Down" - }, - "$:/config/shortcuts/input-tab-left": { - "title": "$:/config/shortcuts/input-tab-left", - "text": "alt-Left" - }, - "$:/config/shortcuts/input-tab-right": { - "title": "$:/config/shortcuts/input-tab-right", - "text": "alt-Right" - }, - "$:/config/shortcuts/input-up": { - "title": "$:/config/shortcuts/input-up", - "text": "Up" - }, - "$:/config/shortcuts/layout-switcher": { - "title": "$:/config/shortcuts/layout-switcher", - "text": "ctrl-shift-L" - }, - "$:/config/shortcuts/link": { - "title": "$:/config/shortcuts/link", - "text": "ctrl-L" - }, - "$:/config/shortcuts/linkify": { - "title": "$:/config/shortcuts/linkify", - "text": "alt-shift-L" - }, - "$:/config/shortcuts/list-bullet": { - "title": "$:/config/shortcuts/list-bullet", - "text": "ctrl-shift-L" - }, - "$:/config/shortcuts/list-number": { - "title": "$:/config/shortcuts/list-number", - "text": "ctrl-shift-N" - }, - "$:/config/shortcuts/mono-block": { - "title": "$:/config/shortcuts/mono-block", - "text": "ctrl-shift-M" - }, - "$:/config/shortcuts/mono-line": { - "title": "$:/config/shortcuts/mono-line", - "text": "ctrl-M" - }, - "$:/config/shortcuts/picture": { - "title": "$:/config/shortcuts/picture", - "text": "ctrl-shift-I" - }, - "$:/config/shortcuts/preview": { - "title": "$:/config/shortcuts/preview", - "text": "alt-P" - }, - "$:/config/shortcuts/quote": { - "title": "$:/config/shortcuts/quote", - "text": "ctrl-Q" - }, - "$:/config/shortcuts/save-tiddler": { - "title": "$:/config/shortcuts/save-tiddler", - "text": "ctrl+enter" - }, - "$:/config/shortcuts/save-wiki": { - "title": "$:/config/shortcuts/save-wiki", - "text": "ctrl-S" - }, - "$:/config/shortcuts/stamp": { - "title": "$:/config/shortcuts/stamp", - "text": "ctrl-S" - }, - "$:/config/shortcuts/strikethrough": { - "title": "$:/config/shortcuts/strikethrough", - "text": "ctrl-T" - }, - "$:/config/shortcuts/subscript": { - "title": "$:/config/shortcuts/subscript", - "text": "ctrl-shift-B" - }, - "$:/config/shortcuts/superscript": { - "title": "$:/config/shortcuts/superscript", - "text": "ctrl-shift-P" - }, - "$:/config/shortcuts/toggle-sidebar": { - "title": "$:/config/shortcuts/toggle-sidebar", - "text": "alt-shift-S" - }, - "$:/config/shortcuts/transcludify": { - "title": "$:/config/shortcuts/transcludify", - "text": "alt-shift-T" - }, - "$:/config/ui/EditTemplate": { - "title": "$:/config/ui/EditTemplate", - "text": "$:/core/ui/EditTemplate" - }, - "$:/config/ui/ViewTemplate": { - "title": "$:/config/ui/ViewTemplate", - "text": "$:/core/ui/ViewTemplate" - }, - "$:/config/WikiParserRules/Inline/wikilink": { - "title": "$:/config/WikiParserRules/Inline/wikilink", - "text": "enable" - }, - "$:/snippets/currpalettepreview": { - "title": "$:/snippets/currpalettepreview", - "text": "\\define resolve-colour(macrocall)\n\\import $:/core/macros/utils\n\\whitespace trim\n<$wikify name=\"name\" text=\"\"\"$macrocall$\"\"\">\n<<name>>\n</$wikify>\n\\end\n\\define swatchStyle()\nbackground-color: $(swatchColour)$;\n\\end\n\\define swatch-inner()\n<$set name=\"swatchColour\" value={{##$(colourResolved)$}}>\n<$list filter=\"[<swatchColour>!prefix[<<colour ]!suffix[>>]]\" variable=\"ignore\">\n<div class=\"tc-swatch\" style=<<swatchStyle>> title=<<swatchTitle>>/>\n</$list>\n<$list filter=\"[<swatchColour>prefix[<<colour ]suffix[>>]]\" variable=\"ignore\">\n<$wikify name=\"colourResolved\" text=\"\"\"<$macrocall $name=\"resolve-colour\" macrocall=<<swatchColour>>/>\"\"\">\n<<swatch-inner>>\n</$wikify>\n</$list>\n</$set>\n\\end\n\\define swatch()\n<$set name=\"swatchColour\" value={{##$(colour)$}}>\n<$set name=\"swatchTitle\" value=<<colour>>>\n<$list filter=\"[<swatchColour>!prefix[<<colour ]!suffix[>>]]\" variable=\"ignore\">\n<div class=\"tc-swatch\" style=<<swatchStyle>> title=<<swatchTitle>>/>\n</$list>\n<$list filter=\"[<swatchColour>prefix[<<colour ]suffix[>>]]\" variable=\"ignore\">\n<$wikify name=\"colourResolved\" text=\"\"\"<$macrocall $name=\"resolve-colour\" macrocall=<<swatchColour>>/>\"\"\">\n<<swatch-inner>>\n</$wikify>\n</$list>\n</$set>\n</$set>\n\\end\n<div class=\"tc-swatches-horiz\"><$list filter=\"\nforeground\nbackground\nmuted-foreground\nprimary\npage-background\ntab-background\ntiddler-info-background\n\" variable=\"colour\"><<swatch>></$list></div>\n" - }, - "$:/snippets/download-wiki-button": { - "title": "$:/snippets/download-wiki-button", - "text": "\\define lingo-base() $:/language/ControlPanel/Tools/Download/\n<$button class=\"tc-btn-big-green\">\n<$action-sendmessage $message=\"tm-download-file\" $param=\"$:/core/save/all\" filename=\"index.html\"/>\n<<lingo Full/Caption>> {{$:/core/images/save-button}}\n</$button>" - }, - "$:/language": { - "title": "$:/language", - "text": "$:/languages/en-GB" - }, - "$:/snippets/languageswitcher": { - "title": "$:/snippets/languageswitcher", - "text": "\\define flag-title()\n$(languagePluginTitle)$/icon\n\\end\n\n<$linkcatcher to=\"$:/language\">\n<div class=\"tc-chooser tc-language-chooser\">\n<$list filter=\"[[$:/languages/en-GB]] [plugin-type[language]sort[description]]\">\n<$set name=\"cls\" filter=\"[all[current]field:title{$:/language}]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>>\n<$link>\n<span class=\"tc-image-button\">\n<$set name=\"languagePluginTitle\" value=<<currentTiddler>>>\n<$transclude subtiddler=<<flag-title>>>\n<$list filter=\"[all[current]field:title[$:/languages/en-GB]]\">\n<$transclude tiddler=\"$:/languages/en-GB/icon\"/>\n</$list>\n</$transclude>\n</$set>\n</span>\n<$view field=\"description\">\n<$view field=\"name\">\n<$view field=\"title\"/>\n</$view>\n</$view>\n</$link>\n</div>\n</$set>\n</$list>\n</div>\n</$linkcatcher>" - }, - "$:/core/macros/CSS": { - "title": "$:/core/macros/CSS", - "tags": "$:/tags/Macro", - "text": "\\define colour(name)\n<$transclude tiddler={{$:/palette}} index=\"$name$\"><$transclude tiddler=\"$:/palettes/Vanilla\" index=\"$name$\"><$transclude tiddler=\"$:/config/DefaultColourMappings/$name$\"/></$transclude></$transclude>\n\\end\n\n\\define color(name)\n<<colour $name$>>\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<$macrocall $name=\"makedatauri\" type={{$title$!!type}} text={{$title$}} _canonical_uri={{$title$!!_canonical_uri}}/>\n\\end\n\n\\define if-sidebar(text)\n<$reveal state=\"$:/state/sidebar\" type=\"match\" text=\"yes\" default=\"yes\">$text$</$reveal>\n\\end\n\n\\define if-no-sidebar(text)\n<$reveal state=\"$:/state/sidebar\" type=\"nomatch\" text=\"yes\" default=\"yes\">$text$</$reveal>\n\\end\n\n\\define if-background-attachment(text)\n<$reveal state=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\" type=\"nomatch\" text=\"\">$text$</$reveal>\n\\end\n" - }, - "$:/core/macros/colour-picker": { - "title": "$:/core/macros/colour-picker", - "tags": "$:/tags/Macro", - "text": "\\define colour-picker-update-recent()\n<$action-listops\n\t$tiddler=\"$:/config/ColourPicker/Recent\"\n\t$subfilter=\"$(colour-picker-value)$ [list[$:/config/ColourPicker/Recent]remove[$(colour-picker-value)$]] +[limit[8]]\"\n/>\n\\end\n\n\\define colour-picker-inner(actions)\n<$button tag=\"a\" tooltip=\"\"\"$(colour-picker-value)$\"\"\">\n\n$(colour-picker-update-recent)$\n\n$actions$\n\n<span style=\"display:inline-block; background-color: $(colour-picker-value)$; width: 100%; height: 100%; border-radius: 50%;\"/>\n\n</$button>\n\\end\n\n\\define colour-picker-recent-inner(actions)\n<$set name=\"colour-picker-value\" value=\"$(recentColour)$\">\n<$macrocall $name=\"colour-picker-inner\" actions=\"\"\"$actions$\"\"\"/>\n</$set>\n\\end\n\n\\define colour-picker-recent(actions)\n{{$:/language/ColourPicker/Recent}} <$list filter=\"[list[$:/config/ColourPicker/Recent]]\" variable=\"recentColour\">\n<$macrocall $name=\"colour-picker-recent-inner\" actions=\"\"\"$actions$\"\"\"/></$list>\n\\end\n\n\\define colour-picker(actions)\n<div class=\"tc-colour-chooser\">\n\n<$macrocall $name=\"colour-picker-recent\" actions=\"\"\"$actions$\"\"\"/>\n\n---\n\n<$list filter=\"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\" variable=\"colour-picker-value\">\n<$macrocall $name=\"colour-picker-inner\" actions=\"\"\"$actions$\"\"\"/>\n</$list>\n\n---\n\n<$edit-text tiddler=\"$:/config/ColourPicker/New\" tag=\"input\" default=\"\" placeholder=\"\"/>\n<$edit-text tiddler=\"$:/config/ColourPicker/New\" type=\"color\" tag=\"input\"/>\n<$set name=\"colour-picker-value\" value={{$:/config/ColourPicker/New}}>\n<$macrocall $name=\"colour-picker-inner\" actions=\"\"\"$actions$\"\"\"/>\n</$set>\n\n</div>\n\n\\end\n" - }, - "$:/core/macros/copy-to-clipboard": { - "title": "$:/core/macros/copy-to-clipboard", - "tags": "$:/tags/Macro", - "text": "\\define copy-to-clipboard(src,class:\"tc-btn-invisible\",style)\n<$button class=<<__class__>> style=<<__style__>> message=\"tm-copy-to-clipboard\" param=<<__src__>> tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>\n{{$:/core/images/copy-clipboard}} <$text text={{$:/language/Buttons/CopyToClipboard/Caption}}/>\n</$button>\n\\end\n\n\\define copy-to-clipboard-above-right(src,class:\"tc-btn-invisible\",style)\n<div style=\"position: relative;\">\n<div style=\"position: absolute; bottom: 0; right: 0;\">\n<$macrocall $name=\"copy-to-clipboard\" src=<<__src__>> class=<<__class__>> style=<<__style__>>/>\n</div>\n</div>\n\\end\n\n" - }, - "$:/core/macros/diff": { - "title": "$:/core/macros/diff", - "tags": "$:/tags/Macro", - "text": "\\define compareTiddlerText(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle)\n<$set name=\"source\" tiddler=<<__sourceTiddlerTitle__>> subtiddler=<<__sourceSubTiddlerTitle__>>>\n<$set name=\"dest\" tiddler=<<__destTiddlerTitle__>> subtiddler=<<__destSubTiddlerTitle__>>>\n<$diff-text source=<<source>> dest=<<dest>>/>\n</$set>\n</$set>\n\\end\n\n\\define compareTiddlers(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle,exclude)\n<table class=\"tc-diff-tiddlers\">\n<tbody>\n<$set name=\"sourceFields\" filter=\"[<__sourceTiddlerTitle__>fields[]sort[]]\">\n<$set name=\"destFields\" filter=\"[<__destSubTiddlerTitle__>subtiddlerfields<__destTiddlerTitle__>sort[]]\">\n<$list filter=\"[enlist<sourceFields>] [enlist<destFields>] -[enlist<__exclude__>] +[sort[]]\" variable=\"fieldName\">\n<tr>\n<th>\n<$text text=<<fieldName>>/> \n</th>\n<td>\n<$set name=\"source\" tiddler=<<__sourceTiddlerTitle__>> subtiddler=<<__sourceSubTiddlerTitle__>> field=<<fieldName>>>\n<$set name=\"dest\" tiddler=<<__destTiddlerTitle__>> subtiddler=<<__destSubTiddlerTitle__>> field=<<fieldName>>>\n<$diff-text source=<<source>> dest=<<dest>>>\n</$diff-text>\n</$set>\n</$set>\n</td>\n</tr>\n</$list>\n</$set>\n</$set>\n</tbody>\n</table>\n\\end\n" - }, - "$:/core/macros/dumpvariables": { - "title": "$:/core/macros/dumpvariables", - "tags": "$:/tags/Macro", - "text": "\\define dumpvariables()\n<ul>\n<$list filter=\"[variables[]]\" variable=\"varname\">\n<li>\n<strong><code><$text text=<<varname>>/></code></strong>:<br/>\n<$codeblock code={{{ [<varname>getvariable[]] }}}/>\n</li>\n</$list>\n</ul>\n\\end\n" - }, - "$:/core/macros/export": { - "title": "$:/core/macros/export", - "tags": "$:/tags/Macro", - "text": "\\define exportButtonFilename(baseFilename)\n$baseFilename$$(extension)$\n\\end\n\n\\define exportButton(exportFilter:\"[!is[system]sort[title]]\",lingoBase,baseFilename:\"tiddlers\")\n<span class=\"tc-popup-keep\"><$button popup=<<qualify \"$:/state/popup/export\">> tooltip={{$lingoBase$Hint}} aria-label={{$lingoBase$Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/export-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$lingoBase$Caption}}/></span>\n</$list>\n</$button></span><$reveal state=<<qualify \"$:/state/popup/export\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n<$set name=\"count\" value={{{ [subfilter<__exportFilter__>count[]] }}}>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Exporter]]\">\n<$list filter=\"[<currentTiddler>has[condition]subfilter{!!condition}limit[1]] ~[<currentTiddler>!has[condition]then[true]]\" variable=\"ignore\">\n<$set name=\"extension\" value={{!!extension}}>\n<$button class=\"tc-btn-invisible\">\n<$action-sendmessage $message=\"tm-download-file\" $param=<<currentTiddler>> exportFilter=<<__exportFilter__>> filename=<<exportButtonFilename \"\"\"$baseFilename$\"\"\">>/>\n<$action-deletetiddler $tiddler=<<qualify \"$:/state/popup/export\">>/>\n<$transclude field=\"description\"/>\n</$button>\n</$set>\n</$list>\n</$list>\n</$set>\n</div>\n</$reveal>\n\\end\n" - }, - "$:/core/macros/image-picker": { - "title": "$:/core/macros/image-picker", - "created": "20170715180840889", - "modified": "20170715180914005", - "tags": "$:/tags/Macro", - "type": "text/vnd.tiddlywiki", - "text": "\\define image-picker-thumbnail(actions)\n<$button tag=\"a\" tooltip=\"\"\"$(imageTitle)$\"\"\">\n$actions$\n<$transclude tiddler=<<imageTitle>>/>\n</$button>\n\\end\n\n\\define image-picker-list(filter,actions)\n<$list filter=\"\"\"$filter$\"\"\" variable=\"imageTitle\">\n<$macrocall $name=\"image-picker-thumbnail\" actions=\"\"\"$actions$\"\"\"/>\n</$list>\n\\end\n\n\\define image-picker(actions,filter:\"[all[shadows+tiddlers]is[image]] -[type[application/pdf]] +[!has[draft.of]$subfilter$sort[title]]\",subfilter:\"\")\n<div class=\"tc-image-chooser\">\n<$vars state-system=<<qualify \"$:/state/image-picker/system\">>>\n<$checkbox tiddler=<<state-system>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"hide\">\n{{$:/language/SystemTiddlers/Include/Prompt}}\n</$checkbox>\n<$reveal state=<<state-system>> type=\"match\" text=\"hide\" default=\"hide\" tag=\"div\">\n<$macrocall $name=\"image-picker-list\" filter=\"\"\"$filter$ +[!is[system]]\"\"\" actions=\"\"\"$actions$\"\"\"/>\n</$reveal>\n<$reveal state=<<state-system>> type=\"nomatch\" text=\"hide\" default=\"hide\" tag=\"div\">\n<$macrocall $name=\"image-picker-list\" filter=\"\"\"$filter$\"\"\" actions=\"\"\"$actions$\"\"\"/>\n</$reveal>\n</$vars>\n</div>\n\\end\n\n\\define image-picker-include-tagged-images(actions)\n<$macrocall $name=\"image-picker\" filter=\"[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[!has[draft.of]sort[title]]\" actions=\"\"\"$actions$\"\"\"/>\n\\end\n" - }, - "$:/core/macros/keyboard-driven-input": { - "title": "$:/core/macros/keyboard-driven-input", - "tags": "$:/tags/Macro", - "text": "\\define change-input-tab(stateTitle,tag,beforeafter,defaultState,actions)\n<$set name=\"tabsList\" filter=\"[all[shadows+tiddlers]tag<__tag__>!has[draft.of]]\">\n<$vars currentState={{{ [<__stateTitle__>!is[missing]get[text]] ~[<__defaultState__>] }}} firstTab={{{ [enlist<tabsList>nth[1]] }}} lastTab={{{ [enlist<tabsList>last[]] }}}>\n<$set name=\"nextTab\" value={{{ [all[shadows+tiddlers]tag<__tag__>!has[draft.of]$beforeafter$<currentState>] ~[[$beforeafter$]removeprefix[after]suffix[]addprefix<firstTab>] ~[[$beforeafter$]removeprefix[before]suffix[]addprefix<lastTab>] }}}>\n<$action-setfield $tiddler=<<__stateTitle__>> text=<<nextTab>>/>\n$actions$\n</$set>\n</$vars>\n</$set>\n\\end\n\n\\define keyboard-input-actions()\n<$list filter=\"[<__index__>match[]]\">\n<$action-setfield $tiddler=<<__storeTitle__>> text={{{ [<__tiddler__>get<__field__>] }}}/>\n</$list>\n<$list filter=\"[<__index__>!match[]]\">\n<$action-setfield $tiddler=<<__storeTitle__>> text={{{ [<__tiddler__>getindex<__index__>] }}}/>\n</$list>\n\\end\n\n\\define input-next-actions-inner()\n<$list filter=\"[<nextItem>minlength[1]]\" variable=\"ignore\">\n<$action-setfield $tiddler=<<__selectionStateTitle__>> text=<<nextItem>>/>\n<$list filter=\"[<__index__>match[]]\">\n<$action-setfield $tiddler=<<__tiddler__>> $field=<<__field__>> $value={{{ [<nextItem>] +[splitregexp[(?:.(?!-))+$]] }}}/>\n</$list>\n<$list filter=\"[<__index__>!match[]]\">\n<$action-setfield $tiddler=<<__tiddler__>> $index=<<__index__>> $value={{{ [<nextItem>] +[splitregexp[(?:.(?!-))+$]] }}}/>\n</$list>\n<$action-setfield $tiddler=<<__refreshTitle__>> text=\"yes\"/>\n</$list>\n\\end\n\n\\define input-next-actions(afterOrBefore:\"after\",reverse:\"\")\n<$list filter=\"[<__storeTitle__>get[text]minlength<__filterMinLength__>] [<__filterMinLength__>match[0]] +[limit[1]]\" variable=\"ignore\">\n<$vars userInput={{{ [<__storeTitle__>get[text]] }}} selectedItem={{{ [<__selectionStateTitle__>get[text]] }}}>\n<$set name=\"configTiddler\" value={{{ [subfilter<__configTiddlerFilter__>] }}}>\n<$vars primaryListFilter={{{ [<configTiddler>get<__firstSearchFilterField__>] }}} secondaryListFilter={{{ [<configTiddler>get<__secondSearchFilterField__>] }}}>\n<$set name=\"filteredList\" filter=\"[subfilter<primaryListFilter>addsuffix[-primaryList]] =[subfilter<secondaryListFilter>addsuffix[-secondaryList]]\">\n<$vars nextItem={{{ [enlist<filteredList>$afterOrBefore$<selectedItem>] ~[enlist<filteredList>$reverse$nth[1]] }}} firstItem={{{ [enlist<filteredList>nth[1]] }}} lastItem={{{ [enlist<filteredList>last[]] }}}>\n<$list filter=\"[<selectedItem>match<firstItem>!match<lastItem>]\" variable=\"ignore\">\n<$set name=\"nextItem\" value={{{ [[$afterOrBefore$]match[before]then<userInput>addsuffix[-userInput]] ~[<nextItem>] }}}>\n<<input-next-actions-inner>>\n</$set>\n</$list>\n<$list filter=\"[<selectedItem>match<lastItem>!match<firstItem>]\" variable=\"ignore\">\n<$set name=\"nextItem\" value={{{ [[$afterOrBefore$]match[after]then<userInput>addsuffix[-userInput]] ~[<nextItem>] }}}>\n<<input-next-actions-inner>>\n</$set>\n</$list>\n<$list filter=\"[<selectedItem>match<firstItem>match<lastItem>]\" variable=\"ignore\">\n<$set name=\"nextItem\" value={{{ [<userInput>addsuffix[-userInput]] }}}>\n<<input-next-actions-inner>>\n</$set>\n</$list>\n<$list filter=\"[<selectedItem>!match<firstItem>!match<lastItem>]\" variable=\"ignore\">\n<<input-next-actions-inner>>\n</$list>\n</$vars>\n</$set>\n</$vars>\n</$set>\n</$vars>\n</$list>\n\\end\n\n\\define keyboard-driven-input(tiddler,storeTitle,field:\"text\",index:\"\",tag:\"input\",type,focus:\"\",inputAcceptActions,inputAcceptVariantActions,inputCancelActions,placeholder:\"\",default:\"\",class,focusPopup,rows,minHeight,tabindex,size,autoHeight,filterMinLength:\"0\",refreshTitle,selectionStateTitle,cancelPopups:\"\",configTiddlerFilter,firstSearchFilterField:\"first-search-filter\",secondSearchFilterField:\"second-search-filter\")\n\\whitespace trim\n<$keyboard key=\"((input-accept))\" actions=<<__inputAcceptActions__>>>\n<$keyboard key=\"((input-accept-variant))\" actions=<<__inputAcceptVariantActions__>>>\n<$keyboard key=\"((input-up))\" actions=<<input-next-actions \"before\" \"reverse[]\">>>\n<$keyboard key=\"((input-down))\" actions=<<input-next-actions>>>\n<$keyboard key=\"((input-cancel))\" actions=<<__inputCancelActions__>>>\n<$edit-text tiddler=<<__tiddler__>> field=<<__field__>> index=<<__index__>> \n\t\tinputActions=<<keyboard-input-actions>> tag=<<__tag__>> class=<<__class__>> \n\t\tplaceholder=<<__placeholder__>> default=<<__default__>> focusPopup=<<__focusPopup__>> \n\t\tfocus=<<__focus__>> type=<<__type__>> rows=<<__rows__>> minHeight=<<__minHeight__>> \n\t\ttabindex=<<__tabindex__>> size=<<__size__>> autoHeight=<<__autoHeight__>> \n\t\trefreshTitle=<<__refreshTitle__>> cancelPopups=<<__cancelPopups__>>/>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n\\end\n" - }, - "$:/core/macros/lingo": { - "title": "$:/core/macros/lingo", - "tags": "$:/tags/Macro", - "text": "\\define lingo-base()\n$:/language/\n\\end\n\n\\define lingo(title)\n{{$(lingo-base)$$title$}}\n\\end\n" - }, - "$:/core/macros/list": { - "title": "$:/core/macros/list", - "tags": "$:/tags/Macro", - "text": "\\define list-links(filter,type:\"ul\",subtype:\"li\",class:\"\",emptyMessage)\n\\whitespace trim\n<$type$ class=\"$class$\">\n<$list filter=\"$filter$\" emptyMessage=<<__emptyMessage__>>>\n<$subtype$>\n<$link to={{!!title}}>\n<$transclude field=\"caption\">\n<$view field=\"title\"/>\n</$transclude>\n</$link>\n</$subtype$>\n</$list>\n</$type$>\n\\end\n\n\\define list-links-draggable-drop-actions()\n<$action-listops $tiddler=<<targetTiddler>> $field=<<targetField>> $subfilter=\"+[insertbefore:currentTiddler<actionTiddler>]\"/>\n\\end\n\n\\define list-links-draggable(tiddler,field:\"list\",type:\"ul\",subtype:\"li\",class:\"\",itemTemplate)\n\\whitespace trim\n<span class=\"tc-links-draggable-list\">\n<$vars targetTiddler=\"\"\"$tiddler$\"\"\" targetField=\"\"\"$field$\"\"\">\n<$type$ class=\"$class$\">\n<$list filter=\"[list[$tiddler$!!$field$]]\">\n<$droppable actions=<<list-links-draggable-drop-actions>> tag=\"\"\"$subtype$\"\"\" enable=<<tv-enable-drag-and-drop>>>\n<div class=\"tc-droppable-placeholder\"/>\n<div>\n<$transclude tiddler=\"\"\"$itemTemplate$\"\"\">\n<$link to={{!!title}}>\n<$transclude field=\"caption\">\n<$view field=\"title\"/>\n</$transclude>\n</$link>\n</$transclude>\n</div>\n</$droppable>\n</$list>\n<$tiddler tiddler=\"\">\n<$droppable actions=<<list-links-draggable-drop-actions>> tag=\"div\" enable=<<tv-enable-drag-and-drop>>>\n<div class=\"tc-droppable-placeholder\">\n{{$:/core/images/blank}}\n</div>\n<div style=\"height:0.5em;\"/>\n</$droppable>\n</$tiddler>\n</$type$>\n</$vars>\n</span>\n\\end\n\n\\define list-tagged-draggable-drop-actions(tag)\n<!-- Save the current ordering of the tiddlers with this tag -->\n<$set name=\"order\" filter=\"[<__tag__>tagging[]]\">\n<!-- Remove any list-after or list-before fields from the tiddlers with this tag -->\n<$list filter=\"[<__tag__>tagging[]]\">\n<$action-deletefield $field=\"list-before\"/>\n<$action-deletefield $field=\"list-after\"/>\n</$list>\n<!-- Save the new order to the Tag Tiddler -->\n<$action-listops $tiddler=<<__tag__>> $field=\"list\" $filter=\"+[enlist<order>] +[insertbefore:currentTiddler<actionTiddler>]\"/>\n<!-- Make sure the newly added item has the right tag -->\n<!-- Removing this line makes dragging tags within the dropdown work as intended -->\n<!--<$action-listops $tiddler=<<actionTiddler>> $tags=<<__tag__>>/>-->\n<!-- Using the following 5 lines as replacement makes dragging titles from outside into the dropdown apply the tag -->\n<$list filter=\"[<actionTiddler>!contains:tags<__tag__>]\">\n<$fieldmangler tiddler=<<actionTiddler>>>\n<$action-sendmessage $message=\"tm-add-tag\" $param=<<__tag__>>/>\n</$fieldmangler>\n</$list>\n</$set>\n\\end\n\n\\define list-tagged-draggable(tag,subFilter,emptyMessage,itemTemplate,elementTag:\"div\",storyview:\"\")\n\\whitespace trim\n<span class=\"tc-tagged-draggable-list\">\n<$set name=\"tag\" value=<<__tag__>>>\n<$list filter=\"[<__tag__>tagging[]$subFilter$]\" emptyMessage=<<__emptyMessage__>> storyview=<<__storyview__>>>\n<$elementTag$ class=\"tc-menu-list-item\">\n<$droppable actions=\"\"\"<$macrocall $name=\"list-tagged-draggable-drop-actions\" tag=<<__tag__>>/>\"\"\" enable=<<tv-enable-drag-and-drop>>>\n<$elementTag$ class=\"tc-droppable-placeholder\"/>\n<$elementTag$>\n<$transclude tiddler=\"\"\"$itemTemplate$\"\"\">\n<$link to={{!!title}}>\n<$view field=\"title\"/>\n</$link>\n</$transclude>\n</$elementTag$>\n</$droppable>\n</$elementTag$>\n</$list>\n<$tiddler tiddler=\"\">\n<$droppable actions=\"\"\"<$macrocall $name=\"list-tagged-draggable-drop-actions\" tag=<<__tag__>>/>\"\"\" enable=<<tv-enable-drag-and-drop>>>\n<$elementTag$ class=\"tc-droppable-placeholder\"/>\n<$elementTag$ style=\"height:0.5em;\">\n</$elementTag$>\n</$droppable>\n</$tiddler>\n</$set>\n</span>\n\\end\n" - }, - "$:/core/macros/tabs": { - "title": "$:/core/macros/tabs", - "tags": "$:/tags/Macro", - "text": "\\define tabs(tabsList,default,state:\"$:/state/tab\",class,template,buttonTemplate,retain,actions,explicitState)\n<$set name=\"qualifiedState\" value=<<qualify \"$state$\">>>\n<$vars tabsState={{{ [<__explicitState__>minlength[1]] ~[<qualifiedState>] }}}>\n<div class=\"tc-tab-set $class$\">\n<div class=\"tc-tab-buttons $class$\">\n<$list filter=\"$tabsList$\" variable=\"currentTab\" storyview=\"pop\"><$set name=\"save-currentTiddler\" value=<<currentTiddler>>><$tiddler tiddler=<<currentTab>>><$button set=<<tabsState>> setTo=<<currentTab>> default=\"$default$\" selectedClass=\"tc-tab-selected\" tooltip={{!!tooltip}}>\n<$tiddler tiddler=<<save-currentTiddler>>>\n<$set name=\"tv-wikilinks\" value=\"no\">\n<$transclude tiddler=\"$buttonTemplate$\" mode=\"inline\">\n<$transclude tiddler=<<currentTab>> field=\"caption\">\n<$macrocall $name=\"currentTab\" $type=\"text/plain\" $output=\"text/plain\"/>\n</$transclude>\n</$transclude>\n</$set></$tiddler>$actions$</$button></$tiddler></$set></$list>\n</div>\n<div class=\"tc-tab-divider $class$\"/>\n<div class=\"tc-tab-content $class$\">\n<$list filter=\"$tabsList$\" variable=\"currentTab\">\n\n<$reveal type=\"match\" state=<<tabsState>> text=<<currentTab>> default=\"$default$\" retain=\"\"\"$retain$\"\"\">\n\n<$transclude tiddler=\"$template$\" mode=\"block\">\n\n<$transclude tiddler=<<currentTab>> mode=\"block\"/>\n\n</$transclude>\n\n</$reveal>\n\n</$list>\n</div>\n</div>\n</$vars>\n</$set>\n\\end\n" - }, - "$:/core/macros/tag-picker": { - "title": "$:/core/macros/tag-picker", - "tags": "$:/tags/Macro", - "first-search-filter": "[tags[]!is[system]search:title<userInput>sort[]]", - "second-search-filter": "[tags[]is[system]search:title<userInput>sort[]]", - "text": "\\define get-tagpicker-focus-selector() [data-tiddler-title=\"$(currentTiddlerCSSEscaped)$\"] .tc-add-tag-name input\n\n\\define delete-tag-state-tiddlers() <$action-deletetiddler $filter=\"[<newTagNameTiddler>] [<storeTitle>] [<tagSelectionState>]\"/>\n\n\\define add-tag-actions(actions,tagField:\"tags\")\n<$set name=\"tag\" value={{{ [<__tiddler__>get[text]] }}}>\n<$list filter=\"[<saveTiddler>!contains:$tagField$<tag>!match[]]\" variable=\"ignore\" emptyMessage=\"\"\"\n<$action-listops $tiddler=<<saveTiddler>> $field=<<__tagField__>> $subfilter=\"-[<tag>]\"/>\n\"\"\">\n<$action-listops $tiddler=<<saveTiddler>> $field=<<__tagField__>> $subfilter=\"[<tag>]\"/>\n$actions$\n</$list>\n</$set>\n<<delete-tag-state-tiddlers>>\n<$action-setfield $tiddler=<<refreshTitle>> text=\"yes\"/>\n\\end\n\n\\define clear-tags-actions-inner()\n<$list filter=\"[<storeTitle>has[text]] [<newTagNameTiddler>has[text]]\" variable=\"ignore\" emptyMessage=\"\"\"<<cancel-delete-tiddler-actions \"cancel\">>\"\"\">\n<<delete-tag-state-tiddlers>>\n</$list>\n\\end\n\n\\define clear-tags-actions()\n<$set name=\"userInput\" value={{{ [<storeTitle>get[text]] }}}>\n<$list filter=\"[<newTagNameTiddler>get[text]!match<userInput>]\" emptyMessage=\"\"\"<<clear-tags-actions-inner>>\"\"\">\n<$action-setfield $tiddler=<<newTagNameTiddler>> text=<<userInput>>/><$action-setfield $tiddler=<<refreshTitle>> text=\"yes\"/>\n</$list>\n</$set>\n\\end\n\n\\define tag-picker-inner(actions,tagField:\"tags\")\n\\whitespace trim\n<$vars newTagNameInputTiddlerQualified=<<qualify \"$:/temp/NewTagName/input\">> newTagNameSelectionTiddlerQualified=<<qualify \"$:/temp/NewTagName/selected-item\">> fallbackTarget={{$(palette)$##tag-background}} colourA={{$(palette)$##foreground}} colourB={{$(palette)$##background}}>\n<$vars storeTitle={{{ [<newTagNameInputTiddler>!match[]] ~[<newTagNameInputTiddlerQualified>] }}} tagSelectionState={{{ [<newTagNameSelectionTiddler>!match[]] ~[<newTagNameSelectionTiddlerQualified>] }}}>\n<$vars refreshTitle=<<qualify \"$:/temp/NewTagName/refresh\">> nonSystemTagsFilter=\"[tags[]!is[system]search:title<userInput>sort[]]\" systemTagsFilter=\"[tags[]is[system]search:title<userInput>sort[]]\">\n<div class=\"tc-edit-add-tag\">\n<div>\n<span class=\"tc-add-tag-name tc-small-gap-right\">\n<$macrocall $name=\"keyboard-driven-input\" tiddler=<<newTagNameTiddler>> storeTitle=<<storeTitle>> refreshTitle=<<refreshTitle>>\n\t\tselectionStateTitle=<<tagSelectionState>> inputAcceptActions=\"\"\"<$macrocall $name=\"add-tag-actions\" actions=<<__actions__>> tagField=<<__tagField__>>/>\"\"\"\n\t\tinputCancelActions=<<clear-tags-actions>> tag=\"input\" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}}\n\t\tfocusPopup=<<qualify \"$:/state/popup/tags-auto-complete\">> class=\"tc-edit-texteditor tc-popup-handle\" tabindex=<<tabIndex>> \n\t\tfocus={{{ [{$:/config/AutoFocus}match[tags]then[true]] ~[[false]] }}} filterMinLength={{$:/config/Tags/MinLength}} \n\t\tcancelPopups=<<cancelPopups>> configTiddlerFilter=\"[[$:/core/macros/tag-picker]]\"/>\n</span><$button popup=<<qualify \"$:/state/popup/tags-auto-complete\">> class=\"tc-btn-invisible tc-btn-dropdown\" tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button><$reveal state=<<storeTitle>> type=\"nomatch\" text=\"\"><$button class=\"tc-btn-invisible tc-small-gap tc-btn-dropdown\" tooltip={{$:/language/EditTemplate/Tags/ClearInput/Hint}} aria-label={{$:/language/EditTemplate/Tags/ClearInput/Caption}}>{{$:/core/images/close-button}}<<delete-tag-state-tiddlers>></$button></$reveal><span class=\"tc-add-tag-button tc-small-gap-left\">\n<$set name=\"tag\" value={{{ [<newTagNameTiddler>get[text]] }}}>\n<$button set=<<newTagNameTiddler>> setTo=\"\" class=\"\">\n<$action-listops $tiddler=<<saveTiddler>> $field=<<__tagField__>> $subfilter=\"[<tag>]\"/>\n$actions$\n<$set name=\"currentTiddlerCSSEscaped\" value={{{ [<saveTiddler>escapecss[]] }}}>\n<<delete-tag-state-tiddlers>><$action-sendmessage $message=\"tm-focus-selector\" $param=<<get-tagpicker-focus-selector>>/>\n</$set>\n{{$:/language/EditTemplate/Tags/Add/Button}}\n</$button>\n</$set>\n</span>\n</div>\n<div class=\"tc-block-dropdown-wrapper\">\n<$reveal state=<<qualify \"$:/state/popup/tags-auto-complete\">> type=\"nomatch\" text=\"\" default=\"\">\n<div class=\"tc-block-dropdown tc-block-tags-dropdown\">\n<$set name=\"userInput\" value={{{ [<storeTitle>get[text]] }}}>\n<$list filter=\"[<userInput>minlength{$:/config/Tags/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n<$list filter=<<nonSystemTagsFilter>> variable=\"tag\">\n<$list filter=\"[<tag>addsuffix[-primaryList]] -[<tagSelectionState>get[text]]\" emptyMessage=\"\"\"<$vars button-classes=\"tc-btn-invisible tc-tag-button-selected\" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<<tag>>>{{||$:/core/ui/TagPickerTagTemplate}}</$vars>\"\"\">\n<$vars button-classes=\"tc-btn-invisible\" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<<tag>>>{{||$:/core/ui/TagPickerTagTemplate}}</$vars>\n</$list>\n</$list></$list>\n<hr>\n<$list filter=\"[<userInput>minlength{$:/config/Tags/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n<$list filter=<<systemTagsFilter>> variable=\"tag\">\n<$list filter=\"[<tag>addsuffix[-secondaryList]] -[<tagSelectionState>get[text]]\" emptyMessage=\"\"\"<$vars button-classes=\"tc-btn-invisible tc-tag-button-selected\" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<<tag>>>{{||$:/core/ui/TagPickerTagTemplate}}</$vars>\"\"\">\n<$vars button-classes=\"tc-btn-invisible\" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<<tag>>>{{||$:/core/ui/TagPickerTagTemplate}}</$vars>\n</$list>\n</$list></$list>\n</$set>\n</div>\n</$reveal>\n</div>\n</div>\n</$vars>\n</$vars>\n</$vars>\n\\end\n\\define tag-picker(actions,tagField:\"tags\")\n\\whitespace trim\n<$vars saveTiddler=<<currentTiddler>> palette={{$:/palette}}>\n<$list filter=\"[<newTagNameTiddler>match[]]\" emptyMessage=\"\"\"<$macrocall $name=\"tag-picker-inner\" actions=<<__actions__>> tagField=<<__tagField__>>/>\"\"\">\n<$set name=\"newTagNameTiddler\" value=<<qualify \"$:/temp/NewTagName\">>>\n<$macrocall $name=\"tag-picker-inner\" actions=<<__actions__>> tagField=<<__tagField__>>/>\n</$set>\n</$list>\n</$vars>\n\\end\n" - }, - "$:/core/macros/tag": { - "title": "$:/core/macros/tag", - "tags": "$:/tags/Macro", - "text": "\\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<$vars foregroundColor=<<contrastcolour target:\"\"\"$colour$\"\"\" fallbackTarget:\"\"\"$fallbackTarget$\"\"\" colourA:\"\"\"$colourA$\"\"\" colourB:\"\"\"$colourB$\"\"\">> backgroundColor=\"\"\"$colour$\"\"\">\n<$element-tag$ $element-attributes$ class=\"tc-tag-label tc-btn-invisible\" style=<<tag-pill-styles>>>\n$actions$<$transclude tiddler=\"\"\"$icon$\"\"\"/><$view tiddler=<<__tag__>> field=\"title\" format=\"text\" />\n</$element-tag$>\n</$vars>\n\\end\n\n\\define tag-pill-body(tag,icon,colour,palette,element-tag,element-attributes,actions)\n<$macrocall $name=\"tag-pill-inner\" tag=<<__tag__>> icon=\"\"\"$icon$\"\"\" colour=\"\"\"$colour$\"\"\" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} element-tag=\"\"\"$element-tag$\"\"\" element-attributes=\"\"\"$element-attributes$\"\"\" actions=\"\"\"$actions$\"\"\"/>\n\\end\n\n\\define tag-pill(tag,element-tag:\"span\",element-attributes:\"\",actions:\"\")\n<span class=\"tc-tag-list-item\">\n<$macrocall $name=\"tag-pill-body\" tag=<<__tag__>> icon={{{ [<__tag__>get[icon]] }}} colour={{{ [<__tag__>get[color]] }}} palette={{$:/palette}} element-tag=\"\"\"$element-tag$\"\"\" element-attributes=\"\"\"$element-attributes$\"\"\" actions=\"\"\"$actions$\"\"\"/>\n</span>\n\\end\n\n\\define tag(tag)\n{{$tag$||$:/core/ui/TagTemplate}}\n\\end\n" - }, - "$:/core/macros/thumbnails": { - "title": "$:/core/macros/thumbnails", - "tags": "$:/tags/Macro", - "text": "\\define thumbnail(link,icon,color,background-color,image,caption,width:\"280\",height:\"157\")\n<$link to=\"\"\"$link$\"\"\"><div class=\"tc-thumbnail-wrapper\">\n<div class=\"tc-thumbnail-image\" style=\"width:$width$px;height:$height$px;\"><$reveal type=\"nomatch\" text=\"\" default=\"\"\"$image$\"\"\" tag=\"div\" style=\"width:$width$px;height:$height$px;\">\n[img[$image$]]\n</$reveal><$reveal type=\"match\" text=\"\" default=\"\"\"$image$\"\"\" tag=\"div\" class=\"tc-thumbnail-background\" style=\"width:$width$px;height:$height$px;background-color:$background-color$;\"></$reveal></div><div class=\"tc-thumbnail-icon\" style=\"fill:$color$;color:$color$;\">\n$icon$\n</div><div class=\"tc-thumbnail-caption\">\n$caption$\n</div>\n</div></$link>\n\\end\n\n\\define thumbnail-right(link,icon,color,background-color,image,caption,width:\"280\",height:\"157\")\n<div class=\"tc-thumbnail-right-wrapper\"><<thumbnail \"\"\"$link$\"\"\" \"\"\"$icon$\"\"\" \"\"\"$color$\"\"\" \"\"\"$background-color$\"\"\" \"\"\"$image$\"\"\" \"\"\"$caption$\"\"\" \"\"\"$width$\"\"\" \"\"\"$height$\"\"\">></div>\n\\end\n\n\\define list-thumbnails(filter,width:\"280\",height:\"157\")\n<$list filter=\"\"\"$filter$\"\"\"><$macrocall $name=\"thumbnail\" link={{!!link}} icon={{!!icon}} color={{!!color}} background-color={{!!background-color}} image={{!!image}} caption={{!!caption}} width=\"\"\"$width$\"\"\" height=\"\"\"$height$\"\"\"/></$list>\n\\end\n" - }, - "$:/core/macros/timeline": { - "title": "$:/core/macros/timeline", - "created": "20141212105914482", - "modified": "20141212110330815", - "tags": "$:/tags/Macro", - "text": "\\define timeline-title()\n\\whitespace trim\n<!-- 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 -->\n<$view field=\"title\"/>\n\\end\n\\define timeline(limit:\"100\",format:\"DDth MMM YYYY\",subfilter:\"\",dateField:\"modified\")\n<div class=\"tc-timeline\">\n<$list filter=\"[!is[system]$subfilter$has[$dateField$]!sort[$dateField$]limit[$limit$]eachday[$dateField$]]\">\n<div class=\"tc-menu-list-item\">\n<$view field=\"$dateField$\" format=\"date\" template=\"$format$\"/>\n<$list filter=\"[sameday:$dateField${!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]\">\n<div class=\"tc-menu-list-subitem\">\n<$link to={{!!title}}><<timeline-title>></$link>\n</div>\n</$list>\n</div>\n</$list>\n</div>\n\\end\n" - }, - "$:/core/macros/toc": { - "title": "$:/core/macros/toc", - "tags": "$:/tags/Macro", - "text": "\\define toc-caption()\n<$set name=\"tv-wikilinks\" value=\"no\">\n <$transclude field=\"caption\">\n <$view field=\"title\"/>\n </$transclude>\n</$set>\n\\end\n\n\\define toc-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<ol class=\"tc-toc\">\n <$list filter=\"\"\"[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]\"\"\">\n <$vars item=<<currentTiddler>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>\n <$set name=\"excluded\" filter=\"\"\"[enlist<__exclude__>] [<__tag__>]\"\"\">\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$list filter=\"[all[current]toc-link[no]]\" emptyMessage=\"<$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}><$view field='caption'><$view field='title'/></$view></$link>\">\n <<toc-caption>>\n </$list>\n <$macrocall $name=\"toc-body\" tag=<<item>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<excluded>> path=<<path>>/>\n </li>\n </$set>\n </$set>\n </$vars>\n </$list>\n</ol>\n\\end\n\n\\define toc(tag,sort:\"\",itemClassFilter:\"\")\n<$macrocall $name=\"toc-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> />\n\\end\n\n\\define toc-linked-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<!-- helper function -->\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}>\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n </$button>\n </$reveal>\n <<toc-caption>>\n </$link>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-unlinked-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<!-- helper function -->\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-expandable-empty-message()\n<$macrocall $name=\"toc-linked-expandable-body\" tag=<<tag>> sort=<<sort>> itemClassFilter=<<itemClassFilter>> exclude=<<excluded>> path=<<path>>/>\n\\end\n\n\\define toc-expandable(tag,sort:\"\",itemClassFilter:\"\",exclude,path)\n<$vars tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>\n <$set name=\"excluded\" filter=\"\"\"[enlist<__exclude__>] [<__tag__>]\"\"\">\n <ol class=\"tc-toc toc-expandable\">\n <$list filter=\"\"\"[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]\"\"\">\n <$list filter=\"[all[current]toc-link[no]]\" emptyMessage=<<toc-expandable-empty-message>> >\n <$macrocall $name=\"toc-unlinked-expandable-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=\"\"\"itemClassFilter\"\"\" exclude=<<excluded>> path=<<path>> />\n </$list>\n </$list>\n </ol>\n </$set>\n</$vars>\n\\end\n\n\\define toc-linked-selective-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\" >\n <li class=<<toc-item-class>>>\n <$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}>\n <$list filter=\"[all[current]tagging[]$sort$limit[1]]\" variable=\"ignore\" emptyMessage=\"<$button class='tc-btn-invisible'>{{$:/core/images/blank}}</$button>\">\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n </$button>\n </$reveal>\n </$list>\n <<toc-caption>>\n </$link>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-selective-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-unlinked-selective-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$list filter=\"[all[current]tagging[]$sort$limit[1]]\" variable=\"ignore\" emptyMessage=\"<$button class='tc-btn-invisible'>{{$:/core/images/blank}}</$button> <$view field='caption'><$view field='title'/></$view>\">\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n </$list>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-selective-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-selective-expandable-empty-message()\n<$macrocall $name=\"toc-linked-selective-expandable-body\" tag=<<tag>> sort=<<sort>> itemClassFilter=<<itemClassFilter>> exclude=<<excluded>> path=<<path>>/>\n\\end\n\n\\define toc-selective-expandable(tag,sort:\"\",itemClassFilter,exclude,path)\n<$vars tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>\n <$set name=\"excluded\" filter=\"\"\"[enlist<__exclude__>] [<__tag__>]\"\"\">\n <ol class=\"tc-toc toc-selective-expandable\">\n <$list filter=\"\"\"[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]\"\"\">\n <$list filter=\"[all[current]toc-link[no]]\" variable=\"ignore\" emptyMessage=<<toc-selective-expandable-empty-message>> >\n <$macrocall $name=\"toc-unlinked-selective-expandable-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<excluded>> path=<<path>>/>\n </$list>\n </$list>\n </ol>\n </$set>\n</$vars>\n\\end\n\n\\define toc-tabbed-external-nav(tag,sort:\"\",selectedTiddler:\"$:/temp/toc/selectedTiddler\",unselectedText,missingText,template:\"\")\n<$tiddler tiddler={{{ [<__selectedTiddler__>get[text]] }}}>\n <div class=\"tc-tabbed-table-of-contents\">\n <$linkcatcher to=<<__selectedTiddler__>>>\n <div class=\"tc-table-of-contents\">\n <$macrocall $name=\"toc-selective-expandable\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=\"[all[current]] -[<__selectedTiddler__>get[text]]\"/>\n </div>\n </$linkcatcher>\n <div class=\"tc-tabbed-table-of-contents-content\">\n <$reveal stateTitle=<<__selectedTiddler__>> type=\"nomatch\" text=\"\">\n <$transclude mode=\"block\" tiddler=<<__template__>>>\n <h1><<toc-caption>></h1>\n <$transclude mode=\"block\">$missingText$</$transclude>\n </$transclude>\n </$reveal>\n <$reveal stateTitle=<<__selectedTiddler__>> type=\"match\" text=\"\">\n $unselectedText$\n </$reveal>\n </div>\n </div>\n</$tiddler>\n\\end\n\n\\define toc-tabbed-internal-nav(tag,sort:\"\",selectedTiddler:\"$:/temp/toc/selectedTiddler\",unselectedText,missingText,template:\"\")\n<$linkcatcher to=<<__selectedTiddler__>>>\n <$macrocall $name=\"toc-tabbed-external-nav\" tag=<<__tag__>> sort=<<__sort__>> selectedTiddler=<<__selectedTiddler__>> unselectedText=<<__unselectedText__>> missingText=<<__missingText__>> template=<<__template__>>/>\n</$linkcatcher>\n\\end\n\n" - }, - "$:/core/macros/translink": { - "title": "$:/core/macros/translink", - "tags": "$:/tags/Macro", - "text": "\\define translink(title,mode:\"block\")\n<div style=\"border:1px solid #ccc; padding: 0.5em; background: black; foreground; white;\">\n<$link to=\"\"\"$title$\"\"\">\n<$text text=\"\"\"$title$\"\"\"/>\n</$link>\n<div style=\"border:1px solid #ccc; padding: 0.5em; background: white; foreground; black;\">\n<$transclude tiddler=\"\"\"$title$\"\"\" mode=\"$mode$\">\n\"<$text text=\"\"\"$title$\"\"\"/>\" is missing\n</$transclude>\n</div>\n</div>\n\\end\n" - }, - "$:/core/macros/tree": { - "title": "$:/core/macros/tree", - "tags": "$:/tags/Macro", - "text": "\\define leaf-link(full-title,chunk,separator: \"/\")\n<$link to=<<__full-title__>>><$text text=<<__chunk__>>/></$link>\n\\end\n\n\\define leaf-node(prefix,chunk)\n<li>\n<$list filter=\"[<__prefix__>addsuffix<__chunk__>is[shadow]] [<__prefix__>addsuffix<__chunk__>is[tiddler]]\" variable=\"full-title\">\n<$list filter=\"[<full-title>removeprefix<__prefix__>]\" variable=\"chunk\">\n<span>{{$:/core/images/file}}</span> <$macrocall $name=\"leaf-link\" full-title=<<full-title>> chunk=<<chunk>>/>\n</$list>\n</$list>\n</li>\n\\end\n\n\\define branch-node(prefix,chunk,separator: \"/\")\n<li>\n<$set name=\"reveal-state\" value={{{ [[$:/state/tree/]addsuffix<__prefix__>addsuffix<__chunk__>] }}}>\n<$reveal type=\"nomatch\" stateTitle=<<reveal-state>> text=\"show\">\n<$button setTitle=<<reveal-state>> setTo=\"show\" class=\"tc-btn-invisible\">\n{{$:/core/images/folder}} <$text text=<<__chunk__>>/>\n</$button>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<reveal-state>> text=\"show\">\n<$button setTitle=<<reveal-state>> setTo=\"hide\" class=\"tc-btn-invisible\">\n{{$:/core/images/folder}} <$text text=<<__chunk__>>/>\n</$button>\n</$reveal>\n<span>(<$count filter=\"[all[shadows+tiddlers]removeprefix<__prefix__>removeprefix<__chunk__>] -[<__prefix__>addsuffix<__chunk__>]\"/>)</span>\n<$reveal type=\"match\" stateTitle=<<reveal-state>> text=\"show\">\n<$macrocall $name=\"tree-node\" prefix={{{ [<__prefix__>addsuffix<__chunk__>] }}} separator=<<__separator__>>/>\n</$reveal>\n</$set>\n</li>\n\\end\n\n\\define tree-node(prefix,separator: \"/\")\n<ol>\n<$list filter=\"[all[shadows+tiddlers]removeprefix<__prefix__>splitbefore<__separator__>sort[]!suffix<__separator__>]\" variable=\"chunk\">\n<$macrocall $name=\"leaf-node\" prefix=<<__prefix__>> chunk=<<chunk>> separator=<<__separator__>>/>\n</$list>\n<$list filter=\"[all[shadows+tiddlers]removeprefix<__prefix__>splitbefore<__separator__>sort[]suffix<__separator__>]\" variable=\"chunk\">\n<$macrocall $name=\"branch-node\" prefix=<<__prefix__>> chunk=<<chunk>> separator=<<__separator__>>/>\n</$list>\n</ol>\n\\end\n\n\\define tree(prefix: \"$:/\",separator: \"/\")\n<div class=\"tc-tree\">\n<span><$text text=<<__prefix__>>/></span>\n<div>\n<$macrocall $name=\"tree-node\" prefix=<<__prefix__>> separator=<<__separator__>>/>\n</div>\n</div>\n\\end\n" - }, - "$:/core/macros/utils": { - "title": "$:/core/macros/utils", - "text": "\\define colour(colour)\n$colour$\n\\end\n" - }, - "$:/snippets/minifocusswitcher": { - "title": "$:/snippets/minifocusswitcher", - "text": "<$select tiddler=\"$:/config/AutoFocus\">\n<$list filter=\"title tags text type fields\">\n<option value=<<currentTiddler>>><<currentTiddler>></option>\n</$list>\n</$select>\n" - }, - "$:/snippets/minilanguageswitcher": { - "title": "$:/snippets/minilanguageswitcher", - "text": "<$select tiddler=\"$:/language\">\n<$list filter=\"[[$:/languages/en-GB]] [plugin-type[language]sort[title]]\">\n<option value=<<currentTiddler>>><$view field=\"description\"><$view field=\"name\"><$view field=\"title\"/></$view></$view></option>\n</$list>\n</$select>" - }, - "$:/snippets/minithemeswitcher": { - "title": "$:/snippets/minithemeswitcher", - "text": "\\define lingo-base() $:/language/ControlPanel/Theme/\n<<lingo Prompt>> <$select tiddler=\"$:/theme\">\n<$list filter=\"[plugin-type[theme]sort[title]]\">\n<option value=<<currentTiddler>>><$view field=\"name\"><$view field=\"title\"/></$view></option>\n</$list>\n</$select>" - }, - "$:/snippets/modules": { - "title": "$:/snippets/modules", - "text": "\\define describeModuleType(type)\n{{$:/language/Docs/ModuleTypes/$type$}}\n\\end\n<$list filter=\"[moduletypes[]]\">\n\n!! <$macrocall $name=\"currentTiddler\" $type=\"text/plain\" $output=\"text/plain\"/>\n\n<$macrocall $name=\"describeModuleType\" type=<<currentTiddler>>/>\n\n<ul><$list filter=\"[all[current]modules[]]\"><li><$link><<currentTiddler>></$link>\n</li>\n</$list>\n</ul>\n</$list>\n" - }, - "$:/palette": { - "title": "$:/palette", - "text": "$:/palettes/Vanilla" - }, - "$:/snippets/paletteeditor": { - "title": "$:/snippets/paletteeditor", - "text": "<$transclude tiddler=\"$:/PaletteManager\"/>\n" - }, - "$:/snippets/palettepreview": { - "title": "$:/snippets/palettepreview", - "text": "<$set name=\"currentTiddler\" value={{$:/palette}}>\n{{||$:/snippets/currpalettepreview}}\n</$set>\n" - }, - "$:/snippets/paletteswitcher": { - "title": "$:/snippets/paletteswitcher", - "text": "<$linkcatcher to=\"$:/palette\">\n<div class=\"tc-chooser\"><$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]\"><$set name=\"cls\" filter=\"[all[current]prefix{$:/palette}]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>><$link to={{!!title}}>''<$view field=\"name\" format=\"text\"/>'' - <$view field=\"description\" format=\"text\"/>{{||$:/snippets/currpalettepreview}}</$link>\n</div></$set>\n</$list>\n</div>\n</$linkcatcher>\n" - }, - "$:/snippets/peek-stylesheets": { - "title": "$:/snippets/peek-stylesheets", - "text": "\\define expandable-stylesheets-list()\n<ol>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]\">\n<$vars state=<<qualify \"$:/state/peek-stylesheets/open/\">>>\n<$set name=\"state\" value={{{ [<state>addsuffix<currentTiddler>] }}}>\n<li>\n<$reveal type=\"match\" state=<<state>> text=\"yes\" tag=\"span\">\n<$button set=<<state>> setTo=\"no\" class=\"tc-btn-invisible\">\n{{$:/core/images/down-arrow}}\n</$button>\n</$reveal>\n<$reveal type=\"nomatch\" state=<<state>> text=\"yes\" tag=\"span\">\n<$button set=<<state>> setTo=\"yes\" class=\"tc-btn-invisible\">\n{{$:/core/images/right-arrow}}\n</$button>\n</$reveal>\n<$link>\n<$view field=\"title\"/>\n</$link>\n<$reveal type=\"match\" state=<<state>> text=\"yes\" tag=\"div\">\n<$set name=\"source\" tiddler=<<currentTiddler>>>\n<$wikify name=\"styles\" text=<<source>>>\n<pre>\n<code>\n<$text text=<<styles>>/>\n</code>\n</pre>\n</$wikify>\n</$set>\n</$reveal>\n</li>\n</$set>\n</$vars>\n</$list>\n</ol>\n\\end\n\n\\define stylesheets-list()\n<ol>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]\">\n<li>\n<$link>\n<$view field=\"title\"/>\n</$link>\n<$set name=\"source\" tiddler=<<currentTiddler>>>\n<$wikify name=\"styles\" text=<<source>>>\n<pre>\n<code>\n<$text text=<<styles>>/>\n</code>\n</pre>\n</$wikify>\n</$set>\n</li>\n</$list>\n</ol>\n\\end\n\n<$vars modeState=<<qualify \"$:/state/peek-stylesheets/mode/\">>>\n\n<$reveal type=\"nomatch\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<$button set=<<modeState>> setTo=\"expanded\" class=\"tc-btn-invisible\">{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Stylesheets/Expand/Caption}}</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<$button set=<<modeState>> setTo=\"restored\" class=\"tc-btn-invisible\">{{$:/core/images/chevron-down}} {{$:/language/ControlPanel/Stylesheets/Restore/Caption}}</$button>\n</$reveal>\n\n<$reveal type=\"nomatch\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<<expandable-stylesheets-list>>\n</$reveal>\n<$reveal type=\"match\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<<stylesheets-list>>\n</$reveal>\n\n</$vars>\n" - }, - "$:/temp/search": { - "title": "$:/temp/search", - "text": "" - }, - "$:/tags/AdvancedSearch": { - "title": "$:/tags/AdvancedSearch", - "list": "[[$:/core/ui/AdvancedSearch/Standard]] [[$:/core/ui/AdvancedSearch/System]] [[$:/core/ui/AdvancedSearch/Shadows]] [[$:/core/ui/AdvancedSearch/Filter]]" - }, - "$:/tags/AdvancedSearch/FilterButton": { - "title": "$:/tags/AdvancedSearch/FilterButton", - "list": "$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown $:/core/ui/AdvancedSearch/Filter/FilterButtons/clear $:/core/ui/AdvancedSearch/Filter/FilterButtons/export $:/core/ui/AdvancedSearch/Filter/FilterButtons/delete" - }, - "$:/tags/ControlPanel": { - "title": "$:/tags/ControlPanel", - "list": "$:/core/ui/ControlPanel/Info $:/core/ui/ControlPanel/Appearance $:/core/ui/ControlPanel/Settings $:/core/ui/ControlPanel/Saving $:/core/ui/ControlPanel/Plugins $:/core/ui/ControlPanel/Tools $:/core/ui/ControlPanel/Internals" - }, - "$:/tags/ControlPanel/Info": { - "title": "$:/tags/ControlPanel/Info", - "list": "$:/core/ui/ControlPanel/Basics $:/core/ui/ControlPanel/Advanced" - }, - "$:/tags/ControlPanel/Plugins": { - "title": "$:/tags/ControlPanel/Plugins", - "list": "[[$:/core/ui/ControlPanel/Plugins/Installed]] [[$:/core/ui/ControlPanel/Plugins/Add]]" - }, - "$:/tags/EditTemplate": { - "title": "$:/tags/EditTemplate", - "list": "[[$:/core/ui/EditTemplate/controls]] [[$:/core/ui/EditTemplate/title]] [[$:/core/ui/EditTemplate/tags]] [[$:/core/ui/EditTemplate/shadow]] [[$:/core/ui/ViewTemplate/classic]] [[$:/core/ui/EditTemplate/body]] [[$:/core/ui/EditTemplate/type]] [[$:/core/ui/EditTemplate/fields]]" - }, - "$:/tags/EditToolbar": { - "title": "$:/tags/EditToolbar", - "list": "[[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/cancel]] [[$:/core/ui/Buttons/save]]" - }, - "$:/tags/EditorToolbar": { - "title": "$:/tags/EditorToolbar", - "list": "$:/core/ui/EditorToolbar/paint $:/core/ui/EditorToolbar/opacity $:/core/ui/EditorToolbar/line-width $:/core/ui/EditorToolbar/rotate-left $:/core/ui/EditorToolbar/clear $:/core/ui/EditorToolbar/bold $:/core/ui/EditorToolbar/italic $:/core/ui/EditorToolbar/strikethrough $:/core/ui/EditorToolbar/underline $:/core/ui/EditorToolbar/superscript $:/core/ui/EditorToolbar/subscript $:/core/ui/EditorToolbar/mono-line $:/core/ui/EditorToolbar/mono-block $:/core/ui/EditorToolbar/quote $:/core/ui/EditorToolbar/list-bullet $:/core/ui/EditorToolbar/list-number $:/core/ui/EditorToolbar/heading-1 $:/core/ui/EditorToolbar/heading-2 $:/core/ui/EditorToolbar/heading-3 $:/core/ui/EditorToolbar/heading-4 $:/core/ui/EditorToolbar/heading-5 $:/core/ui/EditorToolbar/heading-6 $:/core/ui/EditorToolbar/link $:/core/ui/EditorToolbar/excise $:/core/ui/EditorToolbar/picture $:/core/ui/EditorToolbar/stamp $:/core/ui/EditorToolbar/size $:/core/ui/EditorToolbar/editor-height $:/core/ui/EditorToolbar/more $:/core/ui/EditorToolbar/preview $:/core/ui/EditorToolbar/preview-type" - }, - "$:/tags/Manager/ItemMain": { - "title": "$:/tags/Manager/ItemMain", - "list": "$:/Manager/ItemMain/WikifiedText $:/Manager/ItemMain/RawText $:/Manager/ItemMain/Fields" - }, - "$:/tags/Manager/ItemSidebar": { - "title": "$:/tags/Manager/ItemSidebar", - "list": "$:/Manager/ItemSidebar/Tags $:/Manager/ItemSidebar/Colour $:/Manager/ItemSidebar/Icon $:/Manager/ItemSidebar/Tools" - }, - "$:/tags/MoreSideBar": { - "title": "$:/tags/MoreSideBar", - "list": "[[$:/core/ui/MoreSideBar/All]] [[$:/core/ui/MoreSideBar/Recent]] [[$:/core/ui/MoreSideBar/Tags]] [[$:/core/ui/MoreSideBar/Missing]] [[$:/core/ui/MoreSideBar/Drafts]] [[$:/core/ui/MoreSideBar/Orphans]] [[$:/core/ui/MoreSideBar/Types]] [[$:/core/ui/MoreSideBar/System]] [[$:/core/ui/MoreSideBar/Shadows]] [[$:/core/ui/MoreSideBar/Explorer]] [[$:/core/ui/MoreSideBar/Plugins]]", - "text": "" - }, - "$:/tags/PageControls": { - "title": "$:/tags/PageControls", - "list": "[[$:/core/ui/Buttons/home]] [[$:/core/ui/Buttons/close-all]] [[$:/core/ui/Buttons/fold-all]] [[$:/core/ui/Buttons/unfold-all]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/new-tiddler]] [[$:/core/ui/Buttons/new-journal]] [[$:/core/ui/Buttons/new-image]] [[$:/core/ui/Buttons/import]] [[$:/core/ui/Buttons/export-page]] [[$:/core/ui/Buttons/control-panel]] [[$:/core/ui/Buttons/advanced-search]] [[$:/core/ui/Buttons/manager]] [[$:/core/ui/Buttons/tag-manager]] [[$:/core/ui/Buttons/language]] [[$:/core/ui/Buttons/palette]] [[$:/core/ui/Buttons/theme]] [[$:/core/ui/Buttons/storyview]] [[$:/core/ui/Buttons/encryption]] [[$:/core/ui/Buttons/timestamp]] [[$:/core/ui/Buttons/full-screen]] [[$:/core/ui/Buttons/print]] [[$:/core/ui/Buttons/save-wiki]] [[$:/core/ui/Buttons/refresh]] [[$:/core/ui/Buttons/more-page-actions]]" - }, - "$:/tags/PageTemplate": { - "title": "$:/tags/PageTemplate", - "list": "[[$:/core/ui/PageTemplate/topleftbar]] [[$:/core/ui/PageTemplate/toprightbar]] [[$:/core/ui/PageTemplate/sidebar]] [[$:/core/ui/PageTemplate/story]] [[$:/core/ui/PageTemplate/alerts]]", - "text": "" - }, - "$:/tags/PluginLibrary": { - "title": "$:/tags/PluginLibrary", - "list": "$:/config/OfficialPluginLibrary" - }, - "$:/tags/SideBar": { - "title": "$:/tags/SideBar", - "list": "[[$:/core/ui/SideBar/Open]] [[$:/core/ui/SideBar/Recent]] [[$:/core/ui/SideBar/Tools]] [[$:/core/ui/SideBar/More]]", - "text": "" - }, - "$:/tags/SideBarSegment": { - "title": "$:/tags/SideBarSegment", - "list": "[[$:/core/ui/SideBarSegments/site-title]] [[$:/core/ui/SideBarSegments/site-subtitle]] [[$:/core/ui/SideBarSegments/page-controls]] [[$:/core/ui/SideBarSegments/search]] [[$:/core/ui/SideBarSegments/tabs]]" - }, - "$:/tags/TiddlerInfo": { - "title": "$:/tags/TiddlerInfo", - "list": "[[$:/core/ui/TiddlerInfo/Tools]] [[$:/core/ui/TiddlerInfo/References]] [[$:/core/ui/TiddlerInfo/Tagging]] [[$:/core/ui/TiddlerInfo/List]] [[$:/core/ui/TiddlerInfo/Listed]] [[$:/core/ui/TiddlerInfo/Fields]]", - "text": "" - }, - "$:/tags/TiddlerInfo/Advanced": { - "title": "$:/tags/TiddlerInfo/Advanced", - "list": "[[$:/core/ui/TiddlerInfo/Advanced/ShadowInfo]] [[$:/core/ui/TiddlerInfo/Advanced/PluginInfo]]" - }, - "$:/tags/ViewTemplate": { - "title": "$:/tags/ViewTemplate", - "list": "[[$:/core/ui/ViewTemplate/title]] [[$:/core/ui/ViewTemplate/unfold]] [[$:/core/ui/ViewTemplate/subtitle]] [[$:/core/ui/ViewTemplate/tags]] [[$:/core/ui/ViewTemplate/classic]] [[$:/core/ui/ViewTemplate/body]]" - }, - "$:/tags/ViewToolbar": { - "title": "$:/tags/ViewToolbar", - "list": "[[$:/core/ui/Buttons/more-tiddler-actions]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/new-here]] [[$:/core/ui/Buttons/new-journal-here]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/export-tiddler]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/open-window]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]] [[$:/core/ui/Buttons/fold-others]] [[$:/core/ui/Buttons/fold]]" - }, - "$:/snippets/themeswitcher": { - "title": "$:/snippets/themeswitcher", - "text": "<$linkcatcher to=\"$:/theme\">\n<div class=\"tc-chooser\"><$list filter=\"[plugin-type[theme]sort[title]]\"><$set name=\"cls\" filter=\"[all[current]field:title{$:/theme}] [[$:/theme]!has[text]addsuffix[s/tiddlywiki/vanilla]field:title<currentTiddler>] +[limit[1]]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>><$link to={{!!title}}>''<$view field=\"name\" format=\"text\"/>'' <$view field=\"description\" format=\"text\"/></$link></div>\n</$set>\n</$list>\n</div>\n</$linkcatcher>" - }, - "$:/core/wiki/title": { - "title": "$:/core/wiki/title", - "text": "{{$:/SiteTitle}} --- {{$:/SiteSubtitle}}" - }, - "$:/view": { - "title": "$:/view", - "text": "classic" - }, - "$:/snippets/viewswitcher": { - "title": "$:/snippets/viewswitcher", - "text": "\\define icon()\n$:/core/images/storyview-$(storyview)$\n\\end\n<$linkcatcher to=\"$:/view\">\n<div class=\"tc-chooser tc-viewswitcher\">\n<$list filter=\"[storyviews[]]\" variable=\"storyview\">\n<$set name=\"cls\" filter=\"[<storyview>prefix{$:/view}]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>>\n<$link to=<<storyview>>><$transclude tiddler=<<icon>>/><$text text=<<storyview>>/></$link>\n</div>\n</$set>\n</$list>\n</div>\n</$linkcatcher>" - } - } -}-
tc-btn-invisible-
tc-btn-boxed-
tc-btn-rounded-
TiddlyWiki created by Jeremy Ruston, (jeremy [at] jermolene [dot] com) - -Copyright (c) 2004-2007, Jeremy Ruston -Copyright (c) 2007-2020, UnaMesa Association -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.-
<svg width="22pt" height="22pt" viewBox="0 0 128 128"><path d="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" fill-rule="evenodd"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-add-comment tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M56 56H36a8 8 0 100 16h20v20a8 8 0 1016 0V72h20a8 8 0 100-16H72V36a8 8 0 10-16 0v20zm-12.595 58.362c-6.683 7.659-20.297 12.903-36.006 12.903-2.196 0-4.35-.102-6.451-.3 9.652-3.836 17.356-12.24 21.01-22.874C8.516 94.28 0 79.734 0 63.5 0 33.953 28.206 10 63 10s63 23.953 63 53.5S97.794 117 63 117c-6.841 0-13.428-.926-19.595-2.638z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-advanced-search-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M74.565 87.985A47.776 47.776 0 0148 96C21.49 96 0 74.51 0 48S21.49 0 48 0s48 21.49 48 48c0 9.854-2.97 19.015-8.062 26.636l34.347 34.347a9.443 9.443 0 010 13.36 9.446 9.446 0 01-13.36 0l-34.36-34.358zM48 80c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32z"/><circle cx="48" cy="48" r="8"/><circle cx="28" cy="48" r="8"/><circle cx="68" cy="48" r="8"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-auto-height tc-image-button" viewBox="0 0 128 128"><path d="M67.987 114.356l-.029-14.477a4 4 0 00-2.067-3.494l-15.966-8.813-1.933 7.502H79.9c4.222 0 5.564-5.693 1.786-7.58L49.797 71.572 48.01 79.15h31.982c4.217 0 5.564-5.682 1.795-7.575L49.805 55.517l-1.795 7.575h31.982c4.212 0 5.563-5.67 1.805-7.57l-16.034-8.105 2.195 3.57V35.614l9.214 9.213a4 4 0 105.656-5.656l-16-16a4 4 0 00-5.656 0l-16 16a4 4 0 105.656 5.656l9.13-9.13v15.288a4 4 0 002.195 3.57l16.035 8.106 1.804-7.57H48.01c-4.217 0-5.564 5.682-1.795 7.574l31.982 16.059 1.795-7.575H48.01c-4.222 0-5.564 5.693-1.787 7.579l31.89 15.923 1.787-7.578H47.992c-4.133 0-5.552 5.504-1.933 7.501l15.966 8.813-2.067-3.494.029 14.436-9.159-9.158a4 4 0 00-5.656 5.656l16 16a4 4 0 005.656 0l16-16a4 4 0 10-5.656-5.656l-9.185 9.184zM16 20h96a4 4 0 100-8H16a4 4 0 100 8z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-blank tc-image-button" viewBox="0 0 128 128"/>-
<svg width="22pt" height="22pt" class="tc-image-bold tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M41.146 51.81V21.87h26.353c2.51 0 4.93.21 7.26.628 2.33.418 4.392 1.165 6.185 2.24 1.793 1.076 3.227 2.57 4.302 4.482 1.076 1.913 1.614 4.363 1.614 7.35 0 5.379-1.613 9.263-4.84 11.653-3.227 2.39-7.35 3.586-12.37 3.586H41.146zM13 0v128h62.028a65.45 65.45 0 0016.762-2.151c5.438-1.434 10.278-3.645 14.52-6.633 4.244-2.988 7.62-6.842 10.13-11.563 2.51-4.721 3.764-10.308 3.764-16.762 0-8.008-1.942-14.85-5.826-20.527-3.884-5.677-9.77-9.65-17.658-11.921 5.737-2.75 10.069-6.275 12.997-10.577 2.928-4.303 4.392-9.681 4.392-16.135 0-5.976-.986-10.995-2.958-15.059-1.972-4.063-4.75-7.32-8.336-9.77-3.585-2.45-7.888-4.213-12.907-5.289C84.888.538 79.33 0 73.235 0H13zm28.146 106.129V70.992H71.8c6.095 0 10.995 1.404 14.7 4.212 3.705 2.81 5.558 7.5 5.558 14.073 0 3.347-.568 6.096-1.703 8.247-1.136 2.151-2.66 3.854-4.572 5.11-1.912 1.254-4.123 2.15-6.633 2.688-2.51.538-5.139.807-7.888.807H41.146z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-cancel-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M64 76.314l-16.97 16.97a7.999 7.999 0 01-11.314 0c-3.118-3.118-3.124-8.19 0-11.313L52.686 65l-16.97-16.97a7.999 7.999 0 010-11.314c3.118-3.118 8.19-3.124 11.313 0L64 53.686l16.97-16.97a7.999 7.999 0 0111.314 0c3.118 3.118 3.124 8.19 0 11.313L75.314 65l16.97 16.97a7.999 7.999 0 010 11.314c-3.118 3.118-8.19 3.124-11.313 0L64 76.314zM64 129c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 1 0 29.654 0 65c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 17 64 17 16 38.49 16 65s21.49 48 48 48z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-chevron-down tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M64.053 85.456a7.889 7.889 0 01-5.6-2.316L2.473 27.16a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0L64.05 66.344l50.382-50.382a7.92 7.92 0 0111.195 0c3.085 3.086 3.092 8.105 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.317z"/><path d="M64.053 124.069a7.889 7.889 0 01-5.6-2.316l-55.98-55.98a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0l50.382 50.382 50.382-50.382a7.92 7.92 0 0111.195 0c3.085 3.086 3.092 8.104 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.316z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-chevron-left tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M47.544 64.053c0-2.027.77-4.054 2.316-5.6l55.98-55.98a7.92 7.92 0 0111.196 0c3.085 3.086 3.092 8.105 0 11.196L66.656 64.05l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.085-8.105 3.092-11.196 0l-55.98-55.98a7.892 7.892 0 01-2.317-5.595z"/><path d="M8.931 64.053c0-2.027.77-4.054 2.316-5.6l55.98-55.98a7.92 7.92 0 0111.196 0c3.085 3.086 3.092 8.105 0 11.196L28.041 64.05l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.085-8.104 3.092-11.196 0l-55.98-55.98a7.892 7.892 0 01-2.316-5.595z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-chevron-right tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M83.456 63.947c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196L64.344 63.95 13.963 13.567a7.92 7.92 0 010-11.195c3.086-3.085 8.105-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.317 5.595z"/><path d="M122.069 63.947c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l50.382-50.382-50.382-50.382a7.92 7.92 0 010-11.195c3.086-3.085 8.104-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.316 5.595z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-chevron-up tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M63.947 44.544c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.105 3.092-11.196 0L63.95 63.656l-50.382 50.382a7.92 7.92 0 01-11.195 0c-3.085-3.086-3.092-8.105 0-11.196l55.98-55.98a7.892 7.892 0 015.595-2.317z"/><path d="M63.947 5.931c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.105 3.092-11.196 0L63.95 25.041 13.567 75.423a7.92 7.92 0 01-11.195 0c-3.085-3.086-3.092-8.104 0-11.196l55.98-55.98a7.892 7.892 0 015.595-2.316z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-clone-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M32.265 96v24.002A7.996 7.996 0 0040.263 128h79.74a7.996 7.996 0 007.997-7.998v-79.74a7.996 7.996 0 00-7.998-7.997H96V48h12.859a2.99 2.99 0 012.994 2.994v57.865a2.99 2.99 0 01-2.994 2.994H50.994A2.99 2.99 0 0148 108.859V96H32.265z"/><path d="M40 56h-7.993C27.588 56 24 52.418 24 48c0-4.41 3.585-8 8.007-8H40v-7.993C40 27.588 43.582 24 48 24c4.41 0 8 3.585 8 8.007V40h7.993C68.412 40 72 43.582 72 48c0 4.41-3.585 8-8.007 8H56v7.993C56 68.412 52.418 72 48 72c-4.41 0-8-3.585-8-8.007V56zM8 0C3.58 0 0 3.588 0 8v80c0 4.419 3.588 8 8 8h80c4.419 0 8-3.588 8-8V8c0-4.419-3.588-8-8-8H8zM19 16A2.997 2.997 0 0016 19.001v57.998A2.997 2.997 0 0019.001 80h57.998A2.997 2.997 0 0080 76.999V19.001A2.997 2.997 0 0076.999 16H19.001z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-close-all-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M28 111.314l-14.144 14.143a8 8 0 01-11.313-11.313L16.686 100 2.543 85.856a8 8 0 0111.313-11.313L28 88.686l14.144-14.143a8 8 0 0111.313 11.313L39.314 100l14.143 14.144a8 8 0 01-11.313 11.313L28 111.314zM28 39.314L13.856 53.457A8 8 0 012.543 42.144L16.686 28 2.543 13.856A8 8 0 0113.856 2.543L28 16.686 42.144 2.543a8 8 0 0111.313 11.313L39.314 28l14.143 14.144a8 8 0 01-11.313 11.313L28 39.314zM100 39.314L85.856 53.457a8 8 0 01-11.313-11.313L88.686 28 74.543 13.856A8 8 0 0185.856 2.543L100 16.686l14.144-14.143a8 8 0 0111.313 11.313L111.314 28l14.143 14.144a8 8 0 01-11.313 11.313L100 39.314zM100 111.314l-14.144 14.143a8 8 0 01-11.313-11.313L88.686 100 74.543 85.856a8 8 0 0111.313-11.313L100 88.686l14.144-14.143a8 8 0 0111.313 11.313L111.314 100l14.143 14.144a8 8 0 01-11.313 11.313L100 111.314z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-close-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M65.086 75.41l-50.113 50.113c-3.121 3.121-8.192 3.126-11.316.002-3.118-3.118-3.123-8.19.002-11.316l50.114-50.114L3.659 13.982C.538 10.86.533 5.79 3.657 2.666c3.118-3.118 8.19-3.123 11.316.002l50.113 50.114L115.2 2.668c3.121-3.121 8.192-3.126 11.316-.002 3.118 3.118 3.123 8.19-.002 11.316L76.4 64.095l50.114 50.114c3.121 3.121 3.126 8.192.002 11.316-3.118 3.118-8.19 3.123-11.316-.002L65.086 75.409z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-close-others-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48zm0-16c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32zm0-16c8.837 0 16-7.163 16-16s-7.163-16-16-16-16 7.163-16 16 7.163 16 16 16z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-copy-clipboard tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><rect width="33" height="8" x="40" y="40" rx="4"/><rect width="17" height="8" x="40" y="82" rx="4"/><rect width="17" height="8" x="40" y="54" rx="4"/><rect width="33" height="8" x="40" y="96" rx="4"/><rect width="12" height="8" x="40" y="68" rx="4"/><path d="M40 16H24c-4.419 0-8 3.59-8 8a8.031 8.031 0 000 .01v95.98a8.03 8.03 0 000 .01c0 4.41 3.581 8 8 8h80a7.975 7.975 0 005.652-2.34 7.958 7.958 0 002.348-5.652v-16.016c0-4.414-3.582-7.992-8-7.992-4.41 0-8 3.578-8 7.992V112H32V32h64v8.008C96 44.422 99.582 48 104 48c4.41 0 8-3.578 8-7.992V23.992a7.963 7.963 0 00-2.343-5.651A7.995 7.995 0 00104.001 16H88c0-4.41-3.585-8-8.007-8H48.007C43.588 8 40 11.582 40 16zm4-1.004A4.001 4.001 0 0148 11h32c2.21 0 4 1.797 4 3.996v4.008A4.001 4.001 0 0180 23H48c-2.21 0-4-1.797-4-3.996v-4.008z"/><rect width="66" height="16" x="62" y="64" rx="8"/><path d="M84.657 82.343l-16-16v11.314l16-16a8 8 0 10-11.314-11.314l-16 16a8 8 0 000 11.314l16 16a8 8 0 1011.314-11.314z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-delete-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd" transform="translate(12)"><rect width="105" height="16" y="11" rx="8"/><rect width="48" height="16" x="28" rx="8"/><rect width="16" height="112" x="8" y="16" rx="8"/><rect width="88" height="16" x="8" y="112" rx="8"/><rect width="16" height="112" x="80" y="16" rx="8"/><rect width="16" height="112" x="56" y="16" rx="8"/><rect width="16" height="112" x="32" y="16" rx="8"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-done-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M42.26 111.032c-2.051.001-4.103-.78-5.668-2.345L2.662 74.758a8 8 0 01-.005-11.32c3.118-3.117 8.192-3.12 11.32.007l28.278 28.278 72.124-72.124a8.002 8.002 0 0111.314-.001c3.118 3.118 3.124 8.19 0 11.315l-77.78 77.78a7.978 7.978 0 01-5.658 2.343z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-down-arrow tc-image-button" viewBox="0 0 128 128"><path d="M64.177 100.069a7.889 7.889 0 01-5.6-2.316l-55.98-55.98a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0l50.382 50.382 50.382-50.382a7.92 7.92 0 0111.195 0c3.086 3.086 3.092 8.104 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.316z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-download-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48z" class="tc-image-download-button-ring"/><path d="M34.35 66.43l26.892 27.205a4.57 4.57 0 006.516 0L94.65 66.43a4.7 4.7 0 000-6.593 4.581 4.581 0 00-3.258-1.365h-8.46c-2.545 0-4.608-2.087-4.608-4.661v-15.15c0-2.575-2.063-4.662-4.608-4.662H55.284c-2.545 0-4.608 2.087-4.608 4.662v15.15c0 2.574-2.063 4.661-4.608 4.661h-8.46c-2.545 0-4.608 2.087-4.608 4.662a4.69 4.69 0 001.35 3.296z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-edit-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M95.627 10.059l-5.656 5.657 11.313 11.313 5.657-5.656-11.314-11.314zm5.657-5.657l1.966-1.966c3.123-3.122 8.194-3.129 11.319-.005 3.117 3.118 3.122 8.192-.005 11.32l-1.966 1.965-11.314-11.314zm-16.97 16.97l-60.25 60.25a8.12 8.12 0 00-.322.342c-.1.087-.198.179-.295.275-5.735 5.735-10.702 22.016-10.702 22.016s16.405-5.09 22.016-10.702c.095-.096.186-.193.272-.292a8.12 8.12 0 00.345-.325l60.25-60.25-11.314-11.313zM35.171 124.19c6.788-.577 13.898-2.272 23.689-5.348 1.825-.573 3.57-1.136 6.336-2.04 16-5.226 21.877-6.807 28.745-7.146 8.358-.413 13.854 2.13 17.58 8.699a4 4 0 006.959-3.946c-5.334-9.406-13.745-13.296-24.933-12.744-7.875.39-14.057 2.052-30.835 7.533-2.739.894-4.46 1.45-6.25 2.012-19.46 6.112-30.77 7.072-39.597 1.747a4 4 0 10-4.132 6.85c6.333 3.82 13.754 5.12 22.438 4.383z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-erase tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M60.087 127.996l63.015-63.015c6.535-6.535 6.528-17.115-.003-23.646L99.466 17.702c-6.539-6.538-17.117-6.532-23.646-.003L4.898 88.62c-6.535 6.534-6.528 17.115.003 23.646l15.73 15.73h39.456zm-34.95-7.313l-14.324-14.325c-3.267-3.268-3.268-8.564-.008-11.824L46.269 59.07l35.462 35.462-26.15 26.15H25.137z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-excise tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M56 107.314l-2.343 2.343a8 8 0 11-11.314-11.314l16-16a8 8 0 0111.314 0l16 16a8 8 0 11-11.314 11.314L72 107.314v14.284c0 3.536-3.582 6.402-8 6.402s-8-2.866-8-6.402v-14.284zM0 40.007C0 35.585 3.59 32 8 32c4.418 0 8 3.588 8 8.007v31.986C16 76.415 12.41 80 8 80c-4.418 0-8-3.588-8-8.007V40.007zm32 0C32 35.585 35.59 32 40 32c4.418 0 8 3.588 8 8.007v31.986C48 76.415 44.41 80 40 80c-4.418 0-8-3.588-8-8.007V40.007zm48 0C80 35.585 83.59 32 88 32c4.418 0 8 3.588 8 8.007v31.986C96 76.415 92.41 80 88 80c-4.418 0-8-3.588-8-8.007V40.007zm-24-32C56 3.585 59.59 0 64 0c4.418 0 8 3.588 8 8.007v31.986C72 44.415 68.41 48 64 48c-4.418 0-8-3.588-8-8.007V8.007zm56 32c0-4.422 3.59-8.007 8-8.007 4.418 0 8 3.588 8 8.007v31.986c0 4.422-3.59 8.007-8 8.007-4.418 0-8-3.588-8-8.007V40.007z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-export-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M8.003 128H119.993a7.984 7.984 0 005.664-2.349v.007A7.975 7.975 0 00128 120V56c0-4.418-3.59-8-8-8-4.418 0-8 3.58-8 8v56H16V56c0-4.418-3.59-8-8-8-4.418 0-8 3.58-8 8v64c0 4.418 3.59 8 8 8h.003zm48.62-100.689l-8.965 8.966c-3.125 3.125-8.195 3.13-11.319.005-3.118-3.118-3.122-8.192.005-11.319L58.962 2.346A7.986 7.986 0 0164.625 0l-.006.002c2.05-.001 4.102.78 5.666 2.344l22.618 22.617c3.124 3.125 3.129 8.195.005 11.319-3.118 3.118-8.192 3.122-11.319-.005l-8.965-8.966v61.256c0 4.411-3.582 8-8 8-4.41 0-8-3.582-8-8V27.311z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-cui-cib-facebook tc-image-button" viewBox="0 0 32 32"><path style="fill:#000000;" d="M32 16c0-8.839-7.167-16-16-16-8.839 0-16 7.161-16 16 0 7.984 5.849 14.604 13.5 15.803v-11.177h-4.063v-4.625h4.063v-3.527c0-4.009 2.385-6.223 6.041-6.223 1.751 0 3.584 0.312 3.584 0.312v3.937h-2.021c-1.984 0-2.604 1.235-2.604 2.5v3h4.437l-0.713 4.625h-3.724v11.177c7.645-1.199 13.5-7.819 13.5-15.803z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-file tc-image-button" viewBox="0 0 128 128"><path d="M111.968 30.5H112V120a8 8 0 01-8 8H24a8 8 0 01-8-8V8a8 8 0 018-8h57v.02a7.978 7.978 0 015.998 2.337l22.627 22.627a7.975 7.975 0 012.343 5.516zM81 8H24v112h80V30.5H89c-4.418 0-8-3.578-8-8V8z"/><rect width="64" height="8" x="32" y="36" rx="4"/><rect width="64" height="8" x="32" y="52" rx="4"/><rect width="64" height="8" x="32" y="68" rx="4"/><rect width="64" height="8" x="32" y="84" rx="4"/><rect width="64" height="8" x="32" y="100" rx="4"/><rect width="40" height="8" x="32" y="20" rx="4"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-fixed-height tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M60 35.657l-9.172 9.171a4 4 0 11-5.656-5.656l16-16a4 4 0 015.656 0l16 16a4 4 0 01-5.656 5.656L68 35.657v57.686l9.172-9.171a4 4 0 115.656 5.656l-16 16a4 4 0 01-5.656 0l-16-16a4 4 0 115.656-5.656L60 93.343V35.657zM16 116h96a4 4 0 100-8H16a4 4 0 100 8zm0-96h96a4 4 0 100-8H16a4 4 0 100 8z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-fold-all tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><rect width="128" height="16" rx="8"/><rect width="128" height="16" y="64" rx="8"/><path d="M64.03 20.004c-2.05 0-4.102.78-5.667 2.344L35.746 44.966c-3.125 3.124-3.13 8.194-.005 11.318 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.965 16.966 16.965c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.191-.005-11.318L69.687 22.348a7.986 7.986 0 00-5.663-2.346zM64.03 85.002c-2.05-.001-4.102.78-5.667 2.344l-22.617 22.617c-3.125 3.125-3.13 8.195-.005 11.319 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.966 16.966 16.966c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.192-.005-11.319L69.687 87.346A7.986 7.986 0 0064.024 85z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-fold tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><rect width="128" height="16" rx="8"/><path d="M64.03 25.004c-2.05 0-4.102.78-5.667 2.344L35.746 49.966c-3.125 3.124-3.13 8.194-.005 11.318 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.965 16.966 16.965c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.191-.005-11.318L69.687 27.348a7.986 7.986 0 00-5.663-2.346zM64.005 67.379c-2.05 0-4.102.78-5.666 2.344L35.722 92.34c-3.125 3.125-3.13 8.195-.006 11.32 3.118 3.117 8.192 3.121 11.32-.006L64 86.69l16.965 16.965c3.125 3.125 8.195 3.13 11.319.005 3.118-3.118 3.122-8.192-.005-11.319L69.663 69.723A7.986 7.986 0 0064 67.377z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-fold-others tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><rect width="128" height="16" y="56.031" rx="8"/><path d="M86.632 79.976c-2.05 0-4.102.78-5.666 2.345L64 99.286 47.034 82.321a7.986 7.986 0 00-5.662-2.346l.005.001c-2.05 0-4.102.78-5.666 2.345l-22.618 22.617c-3.124 3.125-3.129 8.195-.005 11.319 3.118 3.118 8.192 3.122 11.319-.005l16.966-16.966 16.965 16.966a7.986 7.986 0 005.663 2.346l-.005-.002c2.05 0 4.102-.78 5.666-2.344l16.965-16.966 16.966 16.966c3.125 3.124 8.194 3.129 11.319.005 3.118-3.118 3.122-8.192-.005-11.319L92.289 82.321a7.986 7.986 0 00-5.663-2.346zM86.7 48.024c-2.05 0-4.102-.78-5.666-2.345L64.07 28.714 47.103 45.679a7.986 7.986 0 01-5.663 2.346l.005-.001c-2.05 0-4.101-.78-5.666-2.345L13.162 23.062c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L41.44 28.714l16.966-16.966a7.986 7.986 0 015.662-2.346l-.005.002c2.05 0 4.102.78 5.666 2.344l16.966 16.966 16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L92.358 45.679a7.986 7.986 0 01-5.663 2.346z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-folder tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M55.694 128H8C3.58 128 0 124.414 0 119.996V48.004C0 43.584 3.584 40 7.999 40H16v-8c0-4.418 3.578-8 8-8h32a8 8 0 018 8v8h40.001c4.418 0 7.999 3.586 7.999 8.004V59.83l-8-.082v-7.749A4 4 0 0099.997 48H56V36c0-2.21-1.793-4-4.004-4H28.004A4 4 0 0024 36v12H12.003A4 4 0 008 52v64a4 4 0 004.003 4h46.76l-3.069 8z"/><path d="M23.873 55.5h96.003c4.417 0 7.004 4.053 5.774 9.063l-13.344 54.374c-1.228 5.005-5.808 9.063-10.223 9.063H6.08c-4.417 0-7.003-4.053-5.774-9.063L13.65 64.563c1.228-5.005 5.808-9.063 10.223-9.063zm1.78 8.5h87.994c2.211 0 3.504 2.093 2.891 4.666l-11.12 46.668c-.614 2.577-2.902 4.666-5.115 4.666H12.31c-2.211 0-3.504-2.093-2.891-4.666l11.12-46.668C21.152 66.09 23.44 64 25.653 64z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-full-screen-button tc-image-button" viewBox="0 0 128 128"><path d="M0 8a8 8 0 018-8h32a8 8 0 110 16H16v24a8 8 0 11-16 0V8zM128 120a8 8 0 01-8 8H88a8 8 0 110-16h24V88a8 8 0 1116 0v32zM8 128a8 8 0 01-8-8V88a8 8 0 1116 0v24h24a8 8 0 110 16H8zM120 0a8 8 0 018 8v32a8 8 0 11-16 0V16H88a8 8 0 110-16h32z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-github tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M63.938 1.607c-35.336 0-63.994 28.69-63.994 64.084 0 28.312 18.336 52.329 43.768 60.802 3.202.59 4.37-1.388 4.37-3.088 0-1.518-.056-5.55-.087-10.897-17.802 3.871-21.558-8.591-21.558-8.591-2.911-7.404-7.108-9.375-7.108-9.375-5.81-3.973.44-3.895.44-3.895 6.424.453 9.803 6.606 9.803 6.606 5.709 9.791 14.981 6.963 18.627 5.322.582-4.138 2.236-6.963 4.063-8.564-14.211-1.617-29.153-7.117-29.153-31.672 0-6.995 2.495-12.718 6.589-17.195-.66-1.621-2.856-8.14.629-16.96 0 0 5.37-1.722 17.597 6.57 5.104-1.424 10.58-2.132 16.022-2.16 5.438.028 10.91.736 16.022 2.16 12.22-8.292 17.582-6.57 17.582-6.57 3.493 8.82 1.297 15.339.64 16.96 4.102 4.477 6.578 10.2 6.578 17.195 0 24.618-14.966 30.035-29.22 31.62 2.295 1.98 4.342 5.89 4.342 11.87 0 8.564-.079 15.476-.079 17.576 0 1.715 1.155 3.71 4.4 3.084 25.413-8.493 43.733-32.494 43.733-60.798 0-35.394-28.657-64.084-64.006-64.084"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-gitter tc-image-button" viewBox="0 0 18 25"><path d="M15 5h2v10h-2zM10 5h2v20h-2zM5 5h2v20H5zM0 0h2v15H0z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-globe tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M72.811 37.128v2.554c0 2.196.978 6.881 0 8.832-1.466 2.928-4.65 3.54-6.394 5.867-1.182 1.577-4.618 10.601-3.69 12.92 3.969 9.922 11.534 3.187 17.962 9.293.864.821 2.887 2.273 3.296 3.296 3.29 8.223-7.576 15.009 3.757 26.3 1.245 1.24 3.813-3.817 4.079-4.614.852-2.563 6.725-5.45 9.088-7.053 2.02-1.37 4.873-2.667 6.328-4.745 2.27-3.244 1.48-7.514 3.098-10.745 2.139-4.274 3.828-9.635 5.998-13.966 3.898-7.781 4.721 2.093 5.067 2.439.358.357 1.011 0 1.517 0 .094 0 1.447.099 1.516 0 .65-.935-1.043-17.92-1.318-19.297-1.404-7.01-6.944-15.781-11.865-20.5-6.274-6.015-7.09-16.197-18.259-14.954-.204.022-5.084 10.148-7.777 13.512-3.728 4.657-2.47-4.153-6.526-4.153-.081 0-1.183-.103-1.253 0-.586.88-1.44 3.896-2.306 4.417-.265.16-1.722-.239-1.846 0-2.243 4.3 8.256 2.212 5.792 7.952-2.352 5.481-6.328-1.997-6.328 8.56M44.467 7.01c9.685 6.13.682 12.198 2.694 16.215 1.655 3.303 4.241 5.395 1.714 9.814-2.063 3.608-6.87 3.966-9.623 6.723-3.04 3.044-5.464 8.94-6.79 12.911-1.617 4.843 14.547 6.866 12.063 11.008-1.386 2.311-6.746 1.466-8.437.198-1.165-.873-3.593-.546-4.417-1.78-2.613-3.915-2.26-8.023-3.625-12.128-.938-2.822-6.313-2.12-7.844-.593-.523.522-.33 1.792-.33 2.505 0 5.285 7.12 3.316 7.12 6.46 0 14.636 3.927 6.534 11.14 11.336 10.036 6.683 7.844 7.303 14.946 14.404 3.673 3.673 7.741 3.686 9.425 9.294 1.602 5.331-9.327 5.339-11.716 7.448-1.123.991-2.813 4.146-4.219 4.615-1.792.598-3.234.496-4.944 1.78-2.427 1.82-3.9 4.932-4.02 4.81-2.148-2.147-3.52-15.479-3.89-18.257-.588-4.42-5.59-5.54-6.986-9.03-1.57-3.927 1.524-9.52-1.129-13.761-6.52-10.424-11.821-14.5-15.35-26.292-.942-3.148 3.342-6.529 4.877-8.833 1.877-2.816 2.662-5.854 4.746-8.635C22.147 24.19 40.855 9.461 43.857 8.635l.61-1.625z"/><path d="M64 126c34.242 0 62-27.758 62-62 0-34.242-27.758-62-62-62C29.758 2 2 29.758 2 64c0 34.242 27.758 62 62 62zm0-6c30.928 0 56-25.072 56-56S94.928 8 64 8 8 33.072 8 64s25.072 56 56 56z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-heading-1 tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M14 30h13.25v30.104H61.7V30h13.25v75.684H61.7V71.552H27.25v34.132H14V30zm70.335 13.78c2.544 0 5.017-.212 7.42-.636 2.403-.424 4.576-1.13 6.52-2.12 1.942-.99 3.603-2.261 4.981-3.816 1.378-1.555 2.28-3.463 2.703-5.724h9.858v74.2h-13.25V53.32H84.335v-9.54z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-heading-2 tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm119.52 75.684H74.85c.07-6.148 1.555-11.519 4.452-16.112 2.897-4.593 6.855-8.586 11.872-11.978a133.725 133.725 0 017.526-5.141 59.6 59.6 0 007.208-5.353c2.19-1.908 3.993-3.975 5.406-6.201 1.413-2.226 2.155-4.788 2.226-7.685 0-1.343-.159-2.774-.477-4.293a11.357 11.357 0 00-1.855-4.24c-.919-1.307-2.19-2.403-3.816-3.286-1.625-.883-3.745-1.325-6.36-1.325-2.403 0-4.399.477-5.989 1.431-1.59.954-2.862 2.261-3.816 3.922-.954 1.66-1.66 3.622-2.12 5.883-.46 2.261-.724 4.7-.795 7.314H76.23c0-4.099.548-7.897 1.643-11.395 1.095-3.498 2.738-6.519 4.93-9.063 2.19-2.544 4.857-4.54 8.002-5.989C93.95 30.724 97.606 30 101.775 30c4.523 0 8.303.742 11.342 2.226 3.039 1.484 5.494 3.357 7.367 5.618 1.873 2.261 3.198 4.717 3.975 7.367.777 2.65 1.166 5.176 1.166 7.579 0 2.968-.46 5.653-1.378 8.056a25.942 25.942 0 01-3.71 6.625 37.5 37.5 0 01-5.3 5.565 79.468 79.468 0 01-6.148 4.77 165.627 165.627 0 01-6.36 4.24 94.28 94.28 0 00-5.883 4.028c-1.802 1.343-3.374 2.738-4.717 4.187-1.343 1.449-2.261 2.986-2.756 4.611h36.146v10.812z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-heading-3 tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm88.885 32.224c1.979.07 3.957-.07 5.936-.424 1.979-.353 3.745-.972 5.3-1.855a10.365 10.365 0 003.763-3.657c.954-1.555 1.431-3.463 1.431-5.724 0-3.18-1.078-5.724-3.233-7.632-2.155-1.908-4.929-2.862-8.32-2.862-2.12 0-3.958.424-5.513 1.272a11.318 11.318 0 00-3.869 3.445c-1.025 1.449-1.784 3.074-2.279 4.876a18.335 18.335 0 00-.636 5.565H75.381c.141-3.604.813-6.943 2.014-10.017 1.201-3.074 2.844-5.742 4.93-8.003 2.084-2.261 4.61-4.028 7.578-5.3C92.871 30.636 96.228 30 99.973 30a29.2 29.2 0 018.533 1.272c2.791.848 5.3 2.085 7.526 3.71s4.01 3.692 5.353 6.201c1.343 2.509 2.014 5.388 2.014 8.639 0 3.745-.848 7.014-2.544 9.805-1.696 2.791-4.346 4.823-7.95 6.095v.212c4.24.848 7.544 2.95 9.911 6.307s3.551 7.438 3.551 12.243c0 3.533-.707 6.696-2.12 9.487a21.538 21.538 0 01-5.724 7.102c-2.403 1.943-5.194 3.445-8.374 4.505-3.18 1.06-6.537 1.59-10.07 1.59-4.31 0-8.074-.618-11.289-1.855s-5.9-2.986-8.056-5.247c-2.155-2.261-3.798-4.982-4.929-8.162-1.13-3.18-1.731-6.713-1.802-10.6h12.084c-.141 4.523.972 8.286 3.34 11.289 2.366 3.003 5.917 4.505 10.652 4.505 4.028 0 7.402-1.148 10.123-3.445 2.72-2.297 4.081-5.565 4.081-9.805 0-2.897-.565-5.194-1.696-6.89a10.97 10.97 0 00-4.452-3.869c-1.837-.883-3.904-1.431-6.2-1.643a58.067 58.067 0 00-7.05-.212v-9.01z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-heading-4 tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M8 30h13.25v30.104H55.7V30h13.25v75.684H55.7V71.552H21.25v34.132H8V30zm76.59 48.548h22.471V45.9h-.212L84.59 78.548zm43.46 9.54h-9.54v17.596H107.06V88.088h-31.8V76.11l31.8-44.626h11.448v47.064h9.54v9.54z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-heading-5 tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm77.755 1.484h38.372v10.812H92.765L88.95 61.164l.212.212c1.625-1.837 3.692-3.233 6.201-4.187 2.509-.954 5-1.431 7.473-1.431 3.675 0 6.96.618 9.858 1.855 2.897 1.237 5.335 2.968 7.314 5.194s3.48 4.858 4.505 7.897c1.025 3.039 1.537 6.325 1.537 9.858 0 2.968-.477 6.024-1.43 9.169a25.161 25.161 0 01-4.559 8.586c-2.085 2.58-4.752 4.7-8.003 6.36-3.25 1.66-7.137 2.491-11.66 2.491-3.604 0-6.943-.477-10.017-1.431-3.074-.954-5.777-2.385-8.109-4.293-2.332-1.908-4.187-4.258-5.565-7.049-1.378-2.791-2.138-6.06-2.279-9.805h12.084c.353 4.028 1.731 7.12 4.134 9.275 2.403 2.155 5.583 3.233 9.54 3.233 2.544 0 4.7-.424 6.466-1.272 1.767-.848 3.198-2.014 4.293-3.498 1.095-1.484 1.873-3.215 2.332-5.194.46-1.979.69-4.099.69-6.36 0-2.05-.284-4.01-.849-5.883-.565-1.873-1.413-3.516-2.544-4.929-1.13-1.413-2.597-2.544-4.399-3.392-1.802-.848-3.904-1.272-6.307-1.272-2.544 0-4.929.477-7.155 1.431-2.226.954-3.834 2.738-4.823 5.353H75.805l7.95-40.598z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-heading-6 tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm106.587 20.246c-.283-3.039-1.36-5.494-3.233-7.367-1.873-1.873-4.399-2.809-7.579-2.809-2.19 0-4.08.406-5.67 1.219a12.435 12.435 0 00-4.029 3.233c-1.095 1.343-1.979 2.88-2.65 4.611a37.696 37.696 0 00-1.643 5.459 46.08 46.08 0 00-.9 5.671 722.213 722.213 0 00-.478 5.247l.212.212c1.625-2.968 3.87-5.176 6.731-6.625 2.862-1.449 5.954-2.173 9.275-2.173 3.675 0 6.96.636 9.858 1.908 2.897 1.272 5.353 3.021 7.367 5.247 2.014 2.226 3.551 4.858 4.611 7.897 1.06 3.039 1.59 6.325 1.59 9.858 0 3.604-.583 6.943-1.749 10.017-1.166 3.074-2.844 5.76-5.035 8.056-2.19 2.297-4.805 4.081-7.844 5.353-3.039 1.272-6.395 1.908-10.07 1.908-5.441 0-9.91-1.007-13.409-3.021-3.498-2.014-6.254-4.77-8.268-8.268-2.014-3.498-3.41-7.597-4.187-12.296-.777-4.7-1.166-9.77-1.166-15.211 0-4.452.477-8.94 1.431-13.462.954-4.523 2.526-8.639 4.717-12.349 2.19-3.71 5.07-6.731 8.64-9.063C92.676 31.166 97.075 30 102.304 30c2.968 0 5.76.495 8.374 1.484 2.615.99 4.93 2.367 6.943 4.134 2.014 1.767 3.657 3.887 4.93 6.36 1.271 2.473 1.978 5.23 2.12 8.268h-12.085zm-11.66 46.852c2.19 0 4.099-.442 5.724-1.325a12.869 12.869 0 004.081-3.445c1.095-1.413 1.908-3.056 2.438-4.929.53-1.873.795-3.798.795-5.777s-.265-3.887-.795-5.724c-.53-1.837-1.343-3.445-2.438-4.823-1.095-1.378-2.456-2.491-4.08-3.339-1.626-.848-3.534-1.272-5.725-1.272-2.19 0-4.116.406-5.777 1.219-1.66.813-3.056 1.908-4.187 3.286-1.13 1.378-1.979 2.986-2.544 4.823-.565 1.837-.848 3.78-.848 5.83 0 2.05.283 3.993.848 5.83.565 1.837 1.413 3.48 2.544 4.929a12.39 12.39 0 004.187 3.445c1.66.848 3.586 1.272 5.777 1.272z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-help tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M36.055 111.441c-5.24 4.396-15.168 7.362-26.555 7.362-1.635 0-3.24-.06-4.806-.179 7.919-2.64 14.062-8.6 16.367-16.014C8.747 92.845 1.05 78.936 1.05 63.5c0-29.547 28.206-53.5 63-53.5s63 23.953 63 53.5-28.206 53.5-63 53.5c-10.055 0-19.56-2-27.994-5.559zm35.35-33.843a536.471 536.471 0 00.018-4.682 199.02 199.02 0 00-.023-3.042c.008-1.357.595-2.087 3.727-4.235.112-.077 1.085-.74 1.386-.948 3.093-2.133 5.022-3.786 6.762-6.187 2.34-3.228 3.558-7.077 3.558-11.649 0-13.292-9.86-21.952-21.455-21.952-11.103 0-22.499 9.609-24.066 22.295a6.023 6.023 0 1011.956 1.477c.806-6.527 6.972-11.726 12.11-11.726 5.265 0 9.408 3.64 9.408 9.906 0 3.634-1.1 5.153-5.111 7.919l-1.362.93c-2.682 1.84-4.227 3.1-5.7 4.931-2.109 2.62-3.242 5.717-3.258 9.314.013.892.02 1.86.022 2.981a470.766 470.766 0 01-.022 4.943 6.023 6.023 0 1012.046.12l.003-.395zm-6.027 24.499a7.529 7.529 0 100-15.058 7.529 7.529 0 000 15.058z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-home-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M112.985 119.502c.01-.165.015-.331.015-.499V67.568c3.137 2.948 8.076 2.884 11.134-.174a7.999 7.999 0 00-.002-11.316L70.396 2.343A7.978 7.978 0 0064.734 0a7.957 7.957 0 00-5.656 2.343L33 28.42V8.007C33 3.585 29.41 0 25 0c-4.418 0-8 3.59-8 8.007V44.42L5.342 56.078c-3.125 3.125-3.12 8.198-.002 11.316a7.999 7.999 0 0011.316-.003l.344-.343v52.945a8.11 8.11 0 000 .007c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8a8.11 8.11 0 00-.015-.498zM97 112V51.574L64.737 19.31 33 51.048V112h64z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-import-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M114.832 60.436s3.235-3.27 6.921.417c3.686 3.686.231 7.14.231 7.14l-42.153 42.92s-30.765 32.367-58.798 4.333C-7 87.213 24.59 55.623 24.59 55.623L67.363 12.85s22.725-24.6 43.587-3.738c20.862 20.862-3.96 43.09-3.96 43.09l-35.04 35.04S49.903 112.546 36.426 99.07c-13.476-13.477 11.83-35.523 11.83-35.523l35.04-35.04s3.902-3.902 7.78-.023c3.879 3.878.118 7.921.118 7.921l-35.04 35.04s-13.212 13.212-8.872 17.551c4.34 4.34 16.77-9.653 16.77-9.653l35.04-35.04s16.668-14.598 3.966-27.3c-13.893-13.892-27.565 3.702-27.565 3.702l-42.91 42.91s-23.698 23.698-3.658 43.738 43.012-4.385 43.012-4.385l42.895-42.533z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-info-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd" transform="translate(.05)"><path d="M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48z"/><circle cx="64" cy="32" r="8"/><rect width="16" height="56" x="56" y="48" rx="8"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-cui-cib-instagram tc-image-button" viewBox="0 0 32 32"><path style="fill:#000000;" d="M16 0c-4.349 0-4.891 0.021-6.593 0.093-1.709 0.084-2.865 0.349-3.885 0.745-1.052 0.412-1.948 0.959-2.833 1.849-0.891 0.885-1.443 1.781-1.849 2.833-0.396 1.020-0.661 2.176-0.745 3.885-0.077 1.703-0.093 2.244-0.093 6.593s0.021 4.891 0.093 6.593c0.084 1.704 0.349 2.865 0.745 3.885 0.412 1.052 0.959 1.948 1.849 2.833 0.885 0.891 1.781 1.443 2.833 1.849 1.020 0.391 2.181 0.661 3.885 0.745 1.703 0.077 2.244 0.093 6.593 0.093s4.891-0.021 6.593-0.093c1.704-0.084 2.865-0.355 3.885-0.745 1.052-0.412 1.948-0.959 2.833-1.849 0.891-0.885 1.443-1.776 1.849-2.833 0.391-1.020 0.661-2.181 0.745-3.885 0.077-1.703 0.093-2.244 0.093-6.593s-0.021-4.891-0.093-6.593c-0.084-1.704-0.355-2.871-0.745-3.885-0.412-1.052-0.959-1.948-1.849-2.833-0.885-0.891-1.776-1.443-2.833-1.849-1.020-0.396-2.181-0.661-3.885-0.745-1.703-0.077-2.244-0.093-6.593-0.093zM16 2.88c4.271 0 4.781 0.021 6.469 0.093 1.557 0.073 2.405 0.333 2.968 0.553 0.751 0.291 1.276 0.635 1.844 1.197 0.557 0.557 0.901 1.088 1.192 1.839 0.22 0.563 0.48 1.411 0.553 2.968 0.072 1.688 0.093 2.199 0.093 6.469s-0.021 4.781-0.099 6.469c-0.084 1.557-0.344 2.405-0.563 2.968-0.303 0.751-0.641 1.276-1.199 1.844-0.563 0.557-1.099 0.901-1.844 1.192-0.556 0.22-1.416 0.48-2.979 0.553-1.697 0.072-2.197 0.093-6.479 0.093s-4.781-0.021-6.48-0.099c-1.557-0.084-2.416-0.344-2.979-0.563-0.76-0.303-1.281-0.641-1.839-1.199-0.563-0.563-0.921-1.099-1.197-1.844-0.224-0.556-0.48-1.416-0.563-2.979-0.057-1.677-0.084-2.197-0.084-6.459 0-4.26 0.027-4.781 0.084-6.479 0.083-1.563 0.339-2.421 0.563-2.979 0.276-0.761 0.635-1.281 1.197-1.844 0.557-0.557 1.079-0.917 1.839-1.199 0.563-0.219 1.401-0.479 2.964-0.557 1.697-0.061 2.197-0.083 6.473-0.083zM16 7.787c-4.541 0-8.213 3.677-8.213 8.213 0 4.541 3.677 8.213 8.213 8.213 4.541 0 8.213-3.677 8.213-8.213 0-4.541-3.677-8.213-8.213-8.213zM16 21.333c-2.948 0-5.333-2.385-5.333-5.333s2.385-5.333 5.333-5.333c2.948 0 5.333 2.385 5.333 5.333s-2.385 5.333-5.333 5.333zM26.464 7.459c0 1.063-0.865 1.921-1.923 1.921-1.063 0-1.921-0.859-1.921-1.921 0-1.057 0.864-1.917 1.921-1.917s1.923 0.86 1.923 1.917z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-italic tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M66.711 0h22.41L62.408 128H40z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-left-arrow tc-image-button" viewBox="0 0 128 128"><path d="M0 64.177c0-2.026.771-4.054 2.317-5.6l55.98-55.98a7.92 7.92 0 0111.195.001c3.086 3.085 3.092 8.104.001 11.195L19.111 64.175l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.086-8.105 3.092-11.196.001l-55.98-55.98A7.892 7.892 0 010 64.177z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-line-width tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M16 18h96a2 2 0 000-4H16a2 2 0 100 4zm0 17h96a4 4 0 100-8H16a4 4 0 100 8zm0 21h96a6 6 0 000-12H16a6 6 0 100 12zm0 29h96c5.523 0 10-4.477 10-10s-4.477-10-10-10H16c-5.523 0-10 4.477-10 10s4.477 10 10 10zm0 43h96c8.837 0 16-7.163 16-16s-7.163-16-16-16H16c-8.837 0-16 7.163-16 16s7.163 16 16 16z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-link tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M42.263 69.38a31.919 31.919 0 006.841 10.13c12.5 12.5 32.758 12.496 45.255 0l22.627-22.628c12.502-12.501 12.497-32.758 0-45.255-12.5-12.5-32.758-12.496-45.254 0L49.104 34.255a32.333 32.333 0 00-2.666 3.019 36.156 36.156 0 0121.94.334l14.663-14.663c6.25-6.25 16.382-6.254 22.632-.004 6.248 6.249 6.254 16.373-.004 22.631l-22.62 22.62c-6.25 6.25-16.381 6.254-22.631.004a15.93 15.93 0 01-4.428-8.433 11.948 11.948 0 00-7.59 3.48l-6.137 6.137z"/><path d="M86.35 59.234a31.919 31.919 0 00-6.84-10.13c-12.5-12.5-32.758-12.497-45.255 0L11.627 71.732c-12.501 12.5-12.496 32.758 0 45.254 12.5 12.5 32.758 12.497 45.255 0L79.51 94.36a32.333 32.333 0 002.665-3.02 36.156 36.156 0 01-21.94-.333l-14.663 14.663c-6.25 6.25-16.381 6.253-22.63.004-6.25-6.249-6.255-16.374.003-22.632l22.62-22.62c6.25-6.25 16.381-6.253 22.631-.003a15.93 15.93 0 014.428 8.432 11.948 11.948 0 007.59-3.48l6.137-6.136z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-linkify-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="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"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-list tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M87.748 128H23.999c-4.418 0-7.999-3.59-7.999-8.007V8.007C16 3.585 19.588 0 24 0h80c4.419 0 8 3.59 8 8.007V104H91.25c-.965 0-1.84.392-2.473 1.025a3.476 3.476 0 00-1.029 2.476V128zm8-.12l15.88-15.88h-15.88v15.88zM40 15.508A3.502 3.502 0 0143.5 12h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 20h-55a3.498 3.498 0 01-3.5-3.509v-.982zM32 22a6 6 0 100-12 6 6 0 000 12zm8 9.509A3.502 3.502 0 0143.5 28h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 36h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 44h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 52h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 60h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 68h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 76h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 84h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 92h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 100h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.505 3.505 0 0143.497 108h33.006A3.497 3.497 0 0180 111.509v.982A3.505 3.505 0 0176.503 116H43.497A3.497 3.497 0 0140 112.491v-.982zM32 38a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-list-bullet tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M11.636 40.273c6.427 0 11.637-5.21 11.637-11.637C23.273 22.21 18.063 17 11.636 17 5.21 17 0 22.21 0 28.636c0 6.427 5.21 11.637 11.636 11.637zm0 34.909c6.427 0 11.637-5.21 11.637-11.637 0-6.426-5.21-11.636-11.637-11.636C5.21 51.91 0 57.12 0 63.545c0 6.427 5.21 11.637 11.636 11.637zm0 34.909c6.427 0 11.637-5.21 11.637-11.636 0-6.427-5.21-11.637-11.637-11.637C5.21 86.818 0 92.028 0 98.455c0 6.426 5.21 11.636 11.636 11.636zM34.91 22.818H128v11.637H34.91V22.818zm0 34.91H128v11.636H34.91V57.727zm0 34.908H128v11.637H34.91V92.636z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-list-number tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M33.84 22.356H128v11.77H33.84v-11.77zm0 35.31H128v11.77H33.84v-11.77zm0 35.311H128v11.77H33.84v-11.77zM.38 42.631v-2.223h.998c.826 0 1.445-.14 1.858-.42.413-.28.619-.948.619-2.002V22.769c0-1.442-.193-2.336-.58-2.683-.385-.347-1.477-.52-3.275-.52v-2.143c3.502-.147 6.252-.955 8.25-2.423h2.117v22.865c0 .921.15 1.575.449 1.963.3.387.949.58 1.948.58h.998v2.223H.38zm-.3 35.356v-1.902c7.19-6.554 10.786-12.58 10.786-18.08 0-1.562-.326-2.81-.979-3.744-.652-.934-1.524-1.402-2.616-1.402-.893 0-1.655.317-2.287.952-.633.634-.95 1.364-.95 2.192 0 .974.247 1.829.74 2.563.106.16.16.28.16.36 0 .147-.16.28-.48.4-.213.08-.752.308-1.618.681-.839.374-1.358.561-1.558.561-.24 0-.512-.37-.819-1.111A6.2 6.2 0 010 57.064c0-1.949.849-3.544 2.547-4.785 1.698-1.242 3.798-1.862 6.302-1.862 2.463 0 4.53.67 6.202 2.012 1.67 1.341 2.506 3.093 2.506 5.256a8.644 8.644 0 01-.849 3.724c-.566 1.201-1.92 3.053-4.064 5.556a165.471 165.471 0 01-6.272 6.938h11.445l-1.019 5.726h-2.117c.08-.28.12-.534.12-.76 0-.388-.1-.631-.3-.731-.2-.1-.599-.15-1.198-.15H.08zm12.124 19.207c1.745.04 3.236.637 4.474 1.792 1.239 1.154 1.858 2.773 1.858 4.855 0 2.99-1.132 5.393-3.396 7.208-2.263 1.815-5 2.723-8.209 2.723-2.01 0-3.669-.384-4.974-1.151C.652 111.853 0 110.849 0 109.607c0-.774.27-1.398.809-1.872.54-.474 1.128-.71 1.768-.71.639 0 1.162.2 1.568.6.406.4.782 1.055 1.128 1.962.466 1.268 1.239 1.902 2.317 1.902 1.265 0 2.287-.477 3.066-1.431.78-.955 1.169-2.686 1.169-5.196 0-1.709-.12-3.023-.36-3.944-.24-.921-.792-1.382-1.658-1.382-.586 0-1.185.307-1.797.921-.493.494-.932.741-1.319.741-.333 0-.602-.147-.809-.44-.206-.294-.31-.574-.31-.841 0-.32.104-.594.31-.821.207-.227.69-.594 1.449-1.102 2.876-1.922 4.314-4.017 4.314-6.287 0-1.188-.306-2.092-.919-2.713a3.001 3.001 0 00-2.217-.93c-.799 0-1.525.263-2.177.79-.653.528-.979 1.158-.979 1.892 0 .641.253 1.235.76 1.782.172.2.259.367.259.5 0 .121-.57.428-1.708.922-1.139.494-1.854.74-2.147.74-.413 0-.75-.333-1.009-1-.26-.668-.39-1.282-.39-1.842 0-1.749.93-3.224 2.787-4.425 1.858-1.202 3.965-1.802 6.322-1.802 2.064 0 3.851.447 5.363 1.341 1.511.895 2.267 2.116 2.267 3.664 0 1.362-.57 2.623-1.708 3.784a13.387 13.387 0 01-3.945 2.784z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-locked-padlock tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M96.472 64H105v32.01C105 113.674 90.674 128 73.001 128H56C38.318 128 24 113.677 24 96.01V64h8c.003-15.723.303-47.731 32.16-47.731 31.794 0 32.305 32.057 32.312 47.731zm-15.897 0H48.44c.002-16.287.142-32 15.719-32 15.684 0 16.977 16.136 16.415 32zM67.732 92.364A8.503 8.503 0 0064.5 76a8.5 8.5 0 00-3.498 16.25l-5.095 22.77H72.8l-5.07-22.656z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-mail tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M122.827 104.894a7.986 7.986 0 01-2.834.516H8.007c-.812 0-1.597-.12-2.335-.345l34.163-34.163 20.842 20.842a3.998 3.998 0 003.418 1.134 4.003 4.003 0 003.395-1.134L88.594 70.64c.075.09.155.176.24.26l33.993 33.994zm5.076-6.237c.064-.406.097-.823.097-1.247v-64c0-.669-.082-1.318-.237-1.94L94.23 65.006c.09.075.177.154.261.239l33.413 33.413zm-127.698.56A8.023 8.023 0 010 97.41v-64c0-.716.094-1.41.271-2.071l33.907 33.906L.205 99.218zM5.93 25.684a8.012 8.012 0 012.078-.273h111.986c.766 0 1.507.108 2.209.308L64.083 83.837 5.93 25.683z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-menu-button tc-image-button" viewBox="0 0 128 128"><rect width="128" height="16" y="16" rx="8"/><rect width="128" height="16" y="56" rx="8"/><rect width="128" height="16" y="96" rx="8"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-mono-block tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M23.965 32.967h.357c.755 0 1.328.192 1.72.577.39.384.586.947.586 1.688 0 .824-.206 1.418-.618 1.782-.413.363-1.094.545-2.045.545h-6.31c-.965 0-1.65-.178-2.056-.535-.405-.356-.608-.954-.608-1.792 0-.811.203-1.391.608-1.74.406-.35 1.09-.525 2.055-.525h.734l-.86-2.453H8.471l-.902 2.453h.734c.95 0 1.632.178 2.044.535.413.356.619.933.619 1.73 0 .824-.206 1.418-.619 1.782-.412.363-1.094.545-2.044.545h-5.41c-.964 0-1.649-.182-2.054-.545-.406-.364-.608-.958-.608-1.782 0-.741.195-1.304.587-1.688.391-.385.964-.577 1.719-.577h.356l5.62-15.641H6.835c-.95 0-1.632-.182-2.044-.546-.412-.363-.619-.95-.619-1.76 0-.825.207-1.42.619-1.783.412-.363 1.094-.545 2.044-.545h7.863c1.244 0 2.118.67 2.62 2.013v.063l6.647 18.2zM12.98 17.326l-3.04 8.848h6.08l-3.04-8.848zm22.402 9.372v6.395h3.145c2.223 0 3.788-.245 4.697-.734.908-.49 1.362-1.307 1.362-2.453 0-1.16-.433-1.985-1.3-2.474-.866-.49-2.383-.734-4.55-.734h-3.354zm10.693-2.327c1.524.559 2.642 1.324 3.355 2.295.713.972 1.07 2.212 1.07 3.722 0 1.272-.308 2.432-.923 3.48-.615 1.049-1.496 1.909-2.642 2.58a7.499 7.499 0 01-2.254.849c-.832.174-2.01.262-3.533.262H30.202c-.922 0-1.583-.182-1.981-.545-.399-.364-.598-.958-.598-1.782 0-.741.189-1.304.566-1.688.378-.385.93-.577 1.657-.577h.356V17.326h-.356c-.727 0-1.28-.196-1.657-.587-.377-.392-.566-.965-.566-1.72 0-.81.203-1.401.608-1.771.406-.37 1.062-.556 1.971-.556h9.645c2.95 0 5.19.573 6.72 1.72 1.53 1.145 2.296 2.823 2.296 5.031 0 1.09-.234 2.052-.703 2.883-.468.832-1.163 1.513-2.086 2.045zM35.381 17.2v5.284h2.83c1.72 0 2.932-.203 3.638-.609.706-.405 1.06-1.09 1.06-2.054 0-.909-.319-1.573-.955-1.992-.636-.42-1.667-.63-3.093-.63h-3.48zm35.863-3.816c.28-.503.566-.86.86-1.07.293-.21.664-.314 1.111-.314.685 0 1.17.182 1.457.545.287.364.43.986.43 1.866l.042 5.452c0 .964-.157 1.614-.472 1.95-.314.335-.884.503-1.709.503-.587 0-1.037-.14-1.352-.42-.314-.28-.584-.796-.807-1.551-.364-1.328-.944-2.282-1.74-2.862-.797-.58-1.901-.87-3.313-.87-2.153 0-3.802.727-4.948 2.18-1.147 1.454-1.72 3.558-1.72 6.311 0 2.74.58 4.844 1.74 6.311 1.16 1.468 2.817 2.202 4.97 2.202 1.467 0 3.085-.49 4.854-1.468 1.768-.978 2.883-1.467 3.344-1.467.545 0 1.003.23 1.373.692.37.46.556 1.034.556 1.719 0 1.23-1.084 2.39-3.25 3.48-2.167 1.09-4.606 1.636-7.318 1.636-3.662 0-6.625-1.21-8.89-3.627-2.264-2.419-3.396-5.578-3.396-9.478 0-3.76 1.146-6.884 3.438-9.372 2.293-2.488 5.2-3.732 8.723-3.732.992 0 1.97.112 2.935.335.964.224 1.992.574 3.082 1.049zm10.22 19.583V17.326h-.356c-.755 0-1.328-.196-1.72-.587-.39-.392-.586-.965-.586-1.72 0-.81.21-1.401.629-1.771.42-.37 1.097-.556 2.034-.556h5.178c2.922 0 5.06.126 6.416.377 1.356.252 2.51.671 3.46 1.258 1.691 1.007 2.988 2.443 3.89 4.31.9 1.865 1.352 4.021 1.352 6.467 0 2.586-.514 4.847-1.541 6.783-1.028 1.936-2.485 3.4-4.372 4.393-.853.447-1.852.772-2.998.975-1.147.203-2.852.304-5.116.304h-6.269c-.965 0-1.65-.178-2.055-.535-.406-.356-.608-.954-.608-1.792 0-.741.195-1.304.587-1.688.391-.385.964-.577 1.72-.577h.356zm5.41-15.725v15.725h1.195c2.642 0 4.592-.646 5.85-1.94 1.258-1.292 1.887-3.28 1.887-5.965 0-2.641-.64-4.612-1.918-5.912-1.28-1.3-3.205-1.95-5.777-1.95-.335 0-.59.003-.765.01a7.992 7.992 0 00-.472.032zm35.067-.126h-9.75v5.368h3.69v-.252c0-.797.175-1.39.524-1.782.35-.392.88-.587 1.594-.587.629 0 1.142.178 1.54.534.4.357.598.808.598 1.353 0 .028.007.118.021.272.014.154.021.308.021.462v4.34c0 .936-.167 1.607-.503 2.013-.335.405-.88.608-1.635.608-.713 0-1.251-.19-1.615-.567-.363-.377-.545-.936-.545-1.677v-.377h-3.69v6.269h9.75v-2.495c0-.937.178-1.608.534-2.013.357-.405.94-.608 1.75-.608.798 0 1.367.2 1.71.597.342.399.513 1.073.513 2.024v5.074c0 .755-.146 1.258-.44 1.51-.293.251-.873.377-1.74.377h-17.172c-.923 0-1.583-.182-1.982-.545-.398-.364-.597-.958-.597-1.782 0-.741.189-1.304.566-1.688.377-.385.93-.577 1.656-.577h.357V17.326h-.357c-.712 0-1.261-.2-1.646-.598-.384-.398-.576-.968-.576-1.709 0-.81.203-1.401.608-1.771.405-.37 1.062-.556 1.97-.556h17.173c.853 0 1.43.13 1.73.388.3.258.45.772.45 1.54v4.698c0 .95-.174 1.631-.524 2.044-.35.412-.915.618-1.698.618-.81 0-1.394-.21-1.75-.629-.357-.419-.535-1.097-.535-2.033v-2.202zM19.77 47.641c.267-.504.55-.86.85-1.07.3-.21.675-.314 1.122-.314.685 0 1.17.181 1.457.545.287.363.43.985.43 1.866l.042 5.451c0 .965-.157 1.615-.472 1.95-.314.336-.891.504-1.73.504-.587 0-1.045-.144-1.373-.43-.329-.287-.598-.8-.807-1.541-.378-1.342-.958-2.3-1.74-2.873-.783-.573-1.88-.86-3.292-.86-2.153 0-3.799.727-4.938 2.181-1.14 1.454-1.709 3.557-1.709 6.311s.598 4.882 1.793 6.385C10.599 67.248 12.294 68 14.488 68c.503 0 1.077-.06 1.72-.179a23.809 23.809 0 002.264-.555v-3.313h-2.37c-.95 0-1.624-.175-2.023-.524-.398-.35-.597-.93-.597-1.74 0-.84.199-1.437.597-1.793.399-.357 1.073-.535 2.024-.535h7.569c.978 0 1.667.175 2.065.524.398.35.598.937.598 1.762 0 .74-.2 1.31-.598 1.708-.398.399-.975.598-1.73.598h-.335v5.242c0 .447-.05.758-.147.933-.098.174-.293.353-.587.534-.797.476-2.062.895-3.795 1.258a25.576 25.576 0 01-5.263.546c-3.662 0-6.625-1.21-8.89-3.628-2.264-2.418-3.397-5.577-3.397-9.477 0-3.76 1.147-6.884 3.44-9.372 2.292-2.488 5.199-3.732 8.721-3.732.979 0 1.954.112 2.925.335.972.224 2.003.573 3.093 1.049zm15.84 3.941v4.823h6.857v-4.823h-.336c-.754 0-1.331-.195-1.73-.587-.398-.391-.597-.964-.597-1.719 0-.825.206-1.419.619-1.782.412-.364 1.093-.545 2.044-.545h5.41c.95 0 1.624.181 2.023.545.398.363.597.957.597 1.782 0 .755-.192 1.328-.576 1.72-.385.39-.947.586-1.688.586h-.357v15.642h.357c.755 0 1.328.192 1.719.576.391.385.587.947.587 1.688 0 .825-.203 1.419-.608 1.782-.405.364-1.09.546-2.055.546h-5.41c-.964 0-1.649-.179-2.054-.535-.405-.357-.608-.954-.608-1.793 0-.74.2-1.303.598-1.688.398-.384.975-.576 1.73-.576h.335v-6.186h-6.856v6.186h.335c.755 0 1.331.192 1.73.576.398.385.597.947.597 1.688 0 .825-.206 1.419-.618 1.782-.412.364-1.094.546-2.044.546h-5.41c-.964 0-1.65-.179-2.055-.535-.405-.357-.608-.954-.608-1.793 0-.74.196-1.303.587-1.688.392-.384.965-.576 1.72-.576h.356V51.582h-.356c-.741 0-1.304-.195-1.688-.587-.385-.391-.577-.964-.577-1.719 0-.825.2-1.419.598-1.782.398-.364 1.073-.545 2.023-.545h5.41c.936 0 1.614.181 2.033.545.42.363.63.957.63 1.782 0 .755-.2 1.328-.598 1.72-.399.39-.975.586-1.73.586h-.335zm31.754 0v15.642h3.523c.95 0 1.632.178 2.044.534.412.357.618.933.618 1.73 0 .811-.21 1.402-.629 1.772-.419.37-1.097.556-2.033.556H58.433c-.95 0-1.632-.182-2.044-.546-.412-.363-.619-.957-.619-1.782 0-.81.203-1.39.608-1.74.406-.35 1.09-.524 2.055-.524h3.523V51.582h-3.523c-.95 0-1.632-.181-2.044-.545-.412-.363-.619-.95-.619-1.761 0-.825.203-1.412.608-1.761.406-.35 1.09-.524 2.055-.524h12.455c.992 0 1.684.174 2.075.524.392.35.587.936.587 1.761 0 .81-.202 1.398-.608 1.761-.405.364-1.09.545-2.054.545h-3.523zm30.496 0v11.994c0 1.873-.122 3.228-.367 4.067a5.876 5.876 0 01-1.227 2.244c-.74.852-1.768 1.495-3.082 1.929-1.314.433-2.893.65-4.738.65-1.3 0-2.555-.126-3.764-.378a16.843 16.843 0 01-3.491-1.132c-.615-.28-1.017-.643-1.206-1.09-.188-.448-.283-1.175-.283-2.18v-4.32c0-1.202.175-2.04.525-2.516.349-.475.957-.713 1.824-.713 1.244 0 1.929.915 2.054 2.747.014.321.035.566.063.733.168 1.622.545 2.73 1.133 3.324.587.594 1.523.89 2.81.89 1.593 0 2.714-.422 3.364-1.268.65-.845.975-2.386.975-4.623V51.582H88.93c-.95 0-1.632-.181-2.044-.545-.413-.363-.619-.95-.619-1.761 0-.825.2-1.412.598-1.761.398-.35 1.086-.524 2.065-.524h10.693c.979 0 1.667.174 2.065.524.399.35.598.936.598 1.761 0 .81-.206 1.398-.619 1.761-.412.364-1.093.545-2.044.545h-1.761zm14.644 0v6.353l6.48-6.478c-.728-.084-1.238-.29-1.531-.619-.294-.328-.44-.85-.44-1.562 0-.825.198-1.419.597-1.782.398-.364 1.073-.545 2.023-.545h5.137c.95 0 1.625.181 2.023.545.399.363.598.957.598 1.782 0 .769-.2 1.345-.598 1.73-.398.384-.982.576-1.75.576h-.483l-6.101 6.06c1.132.839 2.167 1.94 3.103 3.302.937 1.363 2.034 3.456 3.292 6.28h.692c.825 0 1.44.188 1.845.566.405.377.608.943.608 1.698 0 .825-.206 1.419-.619 1.782-.412.364-1.093.546-2.044.546h-2.579c-1.132 0-2.048-.762-2.746-2.286-.126-.28-.224-.503-.294-.67-.923-1.958-1.768-3.467-2.537-4.53a16.616 16.616 0 00-2.705-2.914l-1.97 1.887v3.92h.335c.755 0 1.331.193 1.73.577.398.385.597.947.597 1.688 0 .825-.206 1.419-.618 1.782-.413.364-1.094.546-2.045.546h-5.41c-.964 0-1.649-.179-2.054-.535-.405-.357-.608-.954-.608-1.793 0-.74.196-1.303.587-1.688.391-.384.965-.576 1.72-.576h.356V51.582h-.357c-.74 0-1.303-.195-1.687-.587-.385-.391-.577-.964-.577-1.719 0-.825.2-1.419.598-1.782.398-.364 1.072-.545 2.023-.545h5.41c.936 0 1.614.181 2.033.545.42.363.63.957.63 1.782 0 .755-.2 1.328-.598 1.72-.399.39-.975.586-1.73.586h-.336zM13.44 96.326l4.005-11.889c.251-.782.6-1.352 1.048-1.709.447-.356 1.041-.534 1.782-.534h3.271c.95 0 1.632.182 2.044.545.413.363.619.957.619 1.782 0 .755-.2 1.328-.598 1.72-.398.39-.975.587-1.73.587h-.335l.587 15.641h.357c.754 0 1.32.192 1.698.577.377.384.566.947.566 1.687 0 .825-.2 1.42-.598 1.783-.398.363-1.072.545-2.023.545h-4.718c-.95 0-1.624-.178-2.023-.535-.398-.356-.597-.954-.597-1.793 0-.74.192-1.303.576-1.687.385-.385.954-.577 1.709-.577h.335l-.293-12.79-3.061 9.52c-.224.712-.542 1.226-.954 1.54-.413.315-.982.472-1.709.472-.727 0-1.303-.157-1.73-.472-.426-.314-.751-.828-.975-1.54l-3.04-9.52-.294 12.79h.336c.755 0 1.324.192 1.709.577.384.384.576.947.576 1.687 0 .825-.202 1.42-.608 1.783-.405.363-1.076.545-2.013.545H2.621c-.937 0-1.608-.182-2.013-.545-.405-.364-.608-.958-.608-1.783 0-.74.192-1.303.577-1.687.384-.385.954-.577 1.708-.577h.336l.608-15.641h-.336c-.754 0-1.331-.196-1.73-.588-.398-.39-.597-.964-.597-1.719 0-.825.206-1.419.619-1.782.412-.363 1.093-.545 2.044-.545h3.27c.728 0 1.311.175 1.752.524.44.35.8.923 1.08 1.72l4.109 11.888zm30.454 2.054V86.828H42.74c-.922 0-1.583-.182-1.981-.546-.398-.363-.598-.95-.598-1.76 0-.812.2-1.402.598-1.773.398-.37 1.059-.555 1.981-.555h5.955c.909 0 1.566.185 1.97.555.406.37.609.961.609 1.772 0 .741-.192 1.31-.577 1.709-.384.398-.933.598-1.646.598h-.356v19.038c0 .657-.07 1.069-.21 1.237-.14.167-.454.251-.943.251h-2.097c-.67 0-1.143-.07-1.415-.21-.273-.14-.507-.384-.703-.733l-8.722-15.327v11.385h1.216c.909 0 1.559.175 1.95.524.392.35.587.93.587 1.74 0 .825-.199 1.42-.597 1.783-.399.363-1.045.545-1.94.545h-6.017c-.909 0-1.566-.182-1.971-.545-.406-.364-.608-.958-.608-1.783 0-.74.188-1.303.566-1.687.377-.385.936-.577 1.677-.577h.336V86.828h-.336c-.713 0-1.265-.2-1.656-.598-.392-.398-.587-.968-.587-1.709 0-.81.206-1.401.618-1.772.413-.37 1.066-.555 1.96-.555h3.44c.824 0 1.383.108 1.677.325.293.216.622.653.985 1.31l7.989 14.551zM64.66 86.366c-1.803 0-3.218.727-4.245 2.18-1.028 1.455-1.541 3.474-1.541 6.06 0 2.586.517 4.613 1.551 6.08 1.034 1.468 2.446 2.202 4.235 2.202 1.804 0 3.222-.73 4.257-2.19 1.034-1.461 1.551-3.492 1.551-6.092 0-2.586-.513-4.605-1.54-6.06-1.028-1.453-2.45-2.18-4.268-2.18zm0-4.864c3.44 0 6.27 1.23 8.492 3.69 2.223 2.46 3.334 5.598 3.334 9.414 0 3.844-1.104 6.99-3.313 9.436-2.208 2.446-5.046 3.669-8.513 3.669-3.424 0-6.255-1.234-8.491-3.701-2.237-2.467-3.355-5.602-3.355-9.404 0-3.83 1.108-6.971 3.323-9.424 2.216-2.454 5.057-3.68 8.523-3.68zM87.461 98.17v4.298h2.16c.908 0 1.555.175 1.94.524.384.35.576.93.576 1.74 0 .825-.196 1.42-.587 1.783-.392.363-1.035.545-1.93.545h-7.254c-.922 0-1.583-.182-1.981-.545-.399-.364-.598-.958-.598-1.783 0-.74.189-1.303.566-1.687.378-.385.93-.577 1.657-.577h.356V86.828h-.356c-.713 0-1.262-.2-1.646-.598-.385-.398-.577-.968-.577-1.709 0-.81.203-1.401.608-1.772.406-.37 1.063-.555 1.971-.555h8.66c3.424 0 6.014.657 7.768 1.97 1.754 1.315 2.631 3.25 2.631 5.809 0 2.697-.873 4.738-2.62 6.122-1.748 1.384-4.34 2.076-7.78 2.076h-3.564zm0-11.343v6.625h2.977c1.65 0 2.89-.28 3.722-.839.832-.559 1.248-1.397 1.248-2.516 0-1.048-.43-1.855-1.29-2.421-.86-.566-2.086-.85-3.68-.85h-2.977zm27.267 20.568l-1.636 1.636a12.37 12.37 0 011.772-.44c.58-.098 1.15-.147 1.709-.147 1.104 0 2.268.164 3.491.492 1.223.329 1.967.493 2.233.493.447 0 1.03-.15 1.75-.45.72-.301 1.206-.452 1.458-.452.517 0 .947.2 1.29.598.342.398.513.898.513 1.5 0 .796-.472 1.474-1.415 2.033-.944.56-2.1.839-3.47.839-.937 0-2.139-.22-3.607-.66-1.467-.441-2.53-.661-3.187-.661-.992 0-2.11.272-3.354.817-1.244.546-2.013.818-2.307.818a2.14 2.14 0 01-1.53-.597c-.42-.399-.63-.878-.63-1.437 0-.391.134-.807.4-1.247.265-.44.733-1.01 1.404-1.709l2.118-2.139c-2.335-.852-4.194-2.386-5.578-4.602-1.384-2.215-2.075-4.763-2.075-7.642 0-3.802 1.104-6.909 3.312-9.32 2.209-2.411 5.053-3.617 8.534-3.617 3.467 0 6.304 1.209 8.513 3.627 2.208 2.418 3.312 5.522 3.312 9.31 0 3.774-1.097 6.884-3.291 9.33-2.195 2.446-4.977 3.67-8.345 3.67a22.5 22.5 0 01-1.384-.043zm1.195-21.03c-1.803 0-3.218.727-4.246 2.18-1.027 1.455-1.54 3.474-1.54 6.06 0 2.586.516 4.613 1.55 6.08 1.035 1.468 2.447 2.202 4.236 2.202 1.803 0 3.222-.73 4.256-2.19 1.035-1.461 1.552-3.492 1.552-6.092 0-2.586-.514-4.605-1.541-6.06-1.028-1.453-2.45-2.18-4.267-2.18z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-mono-line tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M60.437 84.523h.908c1.922 0 3.381.489 4.378 1.468.997.979 1.495 2.411 1.495 4.298 0 2.1-.525 3.612-1.575 4.538-1.05.925-2.785 1.388-5.206 1.388h-16.07c-2.456 0-4.2-.454-5.232-1.361-1.032-.908-1.548-2.43-1.548-4.565 0-2.065.516-3.542 1.548-4.432 1.032-.89 2.776-1.334 5.232-1.334h1.869l-2.19-6.247H20.983l-2.296 6.247h1.87c2.42 0 4.155.453 5.205 1.361 1.05.908 1.575 2.376 1.575 4.405 0 2.1-.525 3.612-1.575 4.538-1.05.925-2.785 1.388-5.206 1.388H6.781c-2.456 0-4.2-.463-5.233-1.388C.516 93.9 0 92.389 0 90.289c0-1.887.498-3.32 1.495-4.298.997-.979 2.456-1.468 4.378-1.468h.908l14.308-39.83h-4.271c-2.42 0-4.156-.462-5.206-1.387-1.05-.926-1.575-2.42-1.575-4.485 0-2.1.525-3.613 1.575-4.538 1.05-.926 2.785-1.388 5.206-1.388h20.021c3.168 0 5.392 1.708 6.674 5.125v.16l16.924 46.343zm-27.976-39.83L24.72 67.225h15.483l-7.742-22.53zM89.506 68.56v16.284h8.008c5.66 0 9.646-.623 11.96-1.869 2.313-1.245 3.47-3.328 3.47-6.246 0-2.955-1.103-5.055-3.31-6.3-2.207-1.246-6.069-1.869-11.586-1.869h-8.542zm27.229-5.926c3.88 1.423 6.727 3.372 8.542 5.846 1.815 2.474 2.723 5.633 2.723 9.477 0 3.239-.783 6.193-2.35 8.862-1.565 2.67-3.808 4.859-6.726 6.567-1.709.997-3.622 1.718-5.74 2.163-2.118.445-5.116.667-8.996.667h-27.87c-2.349 0-4.03-.463-5.045-1.388-1.014-.926-1.521-2.438-1.521-4.538 0-1.887.48-3.32 1.441-4.298.961-.979 2.367-1.468 4.218-1.468h.907v-39.83h-.907c-1.851 0-3.257-.498-4.218-1.494-.961-.997-1.441-2.456-1.441-4.378 0-2.065.516-3.568 1.548-4.512 1.032-.943 2.705-1.414 5.018-1.414h24.56c7.51 0 13.214 1.459 17.111 4.377 3.898 2.92 5.847 7.19 5.847 12.814 0 2.776-.597 5.223-1.789 7.341-1.192 2.118-2.963 3.853-5.312 5.206zm-27.23-18.26v13.455h7.208c4.378 0 7.466-.516 9.264-1.549 1.797-1.032 2.696-2.776 2.696-5.232 0-2.313-.81-4.004-2.43-5.072-1.619-1.068-4.244-1.602-7.874-1.602h-8.863z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-new-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M56 72H8.007C3.591 72 0 68.418 0 64c0-4.41 3.585-8 8.007-8H56V8.007C56 3.591 59.582 0 64 0c4.41 0 8 3.585 8 8.007V56h47.993c4.416 0 8.007 3.582 8.007 8 0 4.41-3.585 8-8.007 8H72v47.993c0 4.416-3.582 8.007-8 8.007-4.41 0-8-3.585-8-8.007V72z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-new-here-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M55.838 20.935l-3.572.938c-3.688.968-8.23 4.43-10.136 7.731L3.37 96.738c-1.905 3.3-.771 7.524 2.534 9.432l33.717 19.466c3.297 1.904 7.53.78 9.435-2.521l38.76-67.134c1.905-3.3 2.632-8.963 1.623-12.646L83.285 20.88c-1.009-3.68-4.821-5.884-8.513-4.915l-7.603 1.995.043.287c.524 3.394 2.053 7.498 4.18 11.55.418.163.829.36 1.23.59a8.864 8.864 0 014.438 8.169c.104.132.21.264.316.395l-.386.318a8.663 8.663 0 01-1.082 3.137c-2.42 4.192-7.816 5.608-12.051 3.163-4.12-2.379-5.624-7.534-3.476-11.671-2.177-4.394-3.788-8.874-4.543-12.964z"/><path d="M69.554 44.76c-5.944-7.476-10.74-17.196-11.955-25.059-1.68-10.875 3.503-18.216 15.082-18.04 10.407.158 19.975 5.851 24.728 13.785 5.208 8.695 2.95 17.868-6.855 20.496l-2.037-7.601c4.232-1.134 4.999-4.248 2.24-8.853-3.37-5.626-10.465-9.848-18.146-9.965-6.392-.097-8.31 2.62-7.323 9.01.999 6.465 5.318 15.138 10.582 21.65l-.072.06c.559 1.553-4.17 6.44-5.938 4.888l-.005.004-.028-.034a1.323 1.323 0 01-.124-.135 2.618 2.618 0 01-.149-.205z"/><rect width="16" height="48" x="96" y="80" rx="8"/><rect width="48" height="16" x="80" y="96" rx="8"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-new-image-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M81.362 73.627l15.826-27.41a2.626 2.626 0 00-.962-3.59l-50.01-28.872a2.626 2.626 0 00-3.588.961L30.058 36.49l10.04-5.261c3.042-1.595 6.771.114 7.55 3.46l3.607 17.702 9.88.85a5.25 5.25 0 014.571 3.77c.034.115.1.344.199.671.165.553.353 1.172.562 1.843.595 1.914 1.23 3.85 1.872 5.678.207.588.412 1.156.614 1.701.625 1.685 1.209 3.114 1.725 4.207.255.54.485.977.726 1.427.214.212.547.425 1.011.622 1.141.482 2.784.74 4.657.758.864.008 1.71-.034 2.492-.11.448-.043.753-.085.871-.104.315-.053.625-.077.927-.076zM37.47 2.649A5.257 5.257 0 0144.649.725l63.645 36.746a5.257 5.257 0 011.923 7.178L73.47 108.294a5.257 5.257 0 01-7.177 1.923L2.649 73.47a5.257 5.257 0 01-1.924-7.177L37.471 2.649zm42.837 50.49a5.25 5.25 0 105.25-9.092 5.25 5.25 0 00-5.25 9.093zM96 112h-7.993c-4.419 0-8.007-3.582-8.007-8 0-4.41 3.585-8 8.007-8H96v-7.993C96 83.588 99.582 80 104 80c4.41 0 8 3.585 8 8.007V96h7.993c4.419 0 8.007 3.582 8.007 8 0 4.41-3.585 8-8.007 8H112v7.993c0 4.419-3.582 8.007-8 8.007-4.41 0-8-3.585-8-8.007V112zM33.347 51.791c7.428 7.948 9.01 10.69 7.449 13.394-1.56 2.703-13.838-2.328-16.094 1.58-2.256 3.908-.907 3.258-2.437 5.908l19.73 11.39s-5.605-8.255-4.235-10.628c2.515-4.356 8.77-1.256 10.365-4.019 2.414-4.181-5.103-9.639-14.778-17.625z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-new-journal-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M102.545 112.818v11.818c0 1.306 1.086 2.364 2.425 2.364h6.06c1.34 0 2.425-1.058 2.425-2.364v-11.818h12.12c1.34 0 2.425-1.058 2.425-2.363v-5.91c0-1.305-1.085-2.363-2.424-2.363h-12.121V90.364c0-1.306-1.086-2.364-2.425-2.364h-6.06c-1.34 0-2.425 1.058-2.425 2.364v11.818h-12.12c-1.34 0-2.425 1.058-2.425 2.363v5.91c0 1.305 1.085 2.363 2.424 2.363h12.121zM60.016 4.965c-4.781-2.76-10.897-1.118-13.656 3.66L5.553 79.305A9.993 9.993 0 009.21 92.963l51.04 29.468c4.78 2.76 10.897 1.118 13.655-3.66l40.808-70.681a9.993 9.993 0 00-3.658-13.656L60.016 4.965zm-3.567 27.963a6 6 0 106-10.393 6 6 0 00-6 10.393zm31.697 17.928a6 6 0 106-10.392 6 6 0 00-6 10.392z"/><text class="tc-fill-background" font-family="Helvetica" font-size="47.172" font-weight="bold" transform="rotate(30 25.742 95.82)"><tspan x="42" y="77.485" text-anchor="middle"><<now "DD">></tspan></text></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-opacity tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M102.362 65a51.595 51.595 0 01-1.942 6H82.584a35.867 35.867 0 002.997-6h16.78zm.472-2c.423-1.961.734-3.963.929-6H87.656a35.78 35.78 0 01-1.368 6h16.546zm-3.249 10a51.847 51.847 0 01-3.135 6H75.812a36.205 36.205 0 005.432-6h18.341zm-4.416 8c-1.424 2.116-3 4.12-4.71 6H60.46a35.843 35.843 0 0012.874-6h21.834zm-7.513-34h16.107C101.247 20.627 79.033 0 52 0 23.281 0 0 23.281 0 52c0 25.228 17.965 46.26 41.8 51h20.4a51.66 51.66 0 0015.875-6H39v-2h42.25a52.257 52.257 0 007.288-6H39v-2h4.539C27.739 83.194 16 68.968 16 52c0-19.882 16.118-36 36-36 18.186 0 33.222 13.484 35.656 31zm.22 2h16.039a52.823 52.823 0 010 6H87.877a36.483 36.483 0 000-6z"/><path d="M76 128c28.719 0 52-23.281 52-52s-23.281-52-52-52-52 23.281-52 52 23.281 52 52 52zm0-16c19.882 0 36-16.118 36-36S95.882 40 76 40 40 56.118 40 76s16.118 36 36 36z"/><path d="M37 58h53v4H37v-4zm3-8h53v4H40v-4zm0-8h53v4H40v-4zm-8 24h53v4H32v-4zm-2 8h53v4H30v-4zm-3 8h53v4H27v-4z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-open-window tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M16 112h88.994c3.87 0 7.006 3.59 7.006 8 0 4.418-3.142 8-7.006 8H7.006C3.136 128 0 124.41 0 120a9.321 9.321 0 010-.01V24.01C0 19.586 3.59 16 8 16c4.418 0 8 3.584 8 8.01V112z"/><path d="M96 43.196V56a8 8 0 1016 0V24c0-4.41-3.585-8-8.007-8H72.007C67.588 16 64 19.582 64 24c0 4.41 3.585 8 8.007 8H84.57l-36.3 36.299a8 8 0 00-.001 11.316c3.117 3.117 8.19 3.123 11.316-.003L96 43.196zM32 7.999C32 3.581 35.588 0 40 0h80c4.419 0 8 3.588 8 8v80c0 4.419-3.588 8-8 8H40c-4.419 0-8-3.588-8-8V8z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-options-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M110.488 76a47.712 47.712 0 01-5.134 12.384l6.724 6.724c3.123 3.123 3.132 8.192.011 11.313l-5.668 5.668c-3.12 3.12-8.186 3.117-11.313-.01l-6.724-6.725c-3.82 2.258-7.98 4-12.384 5.134v9.505c0 4.417-3.578 8.007-7.992 8.007h-8.016C55.58 128 52 124.415 52 119.993v-9.505a47.712 47.712 0 01-12.384-5.134l-6.724 6.725c-3.123 3.122-8.192 3.131-11.313.01l-5.668-5.668c-3.12-3.12-3.116-8.186.01-11.313l6.725-6.724c-2.257-3.82-4-7.98-5.134-12.384H8.007C3.591 76 0 72.422 0 68.01v-8.017C0 55.58 3.585 52 8.007 52h9.505a47.712 47.712 0 015.134-12.383l-6.724-6.725c-3.123-3.122-3.132-8.191-.011-11.312l5.668-5.669c3.12-3.12 8.186-3.116 11.313.01l6.724 6.725c3.82-2.257 7.98-4 12.384-5.134V8.007C52 3.591 55.578 0 59.992 0h8.016C72.42 0 76 3.585 76 8.007v9.505a47.712 47.712 0 0112.384 5.134l6.724-6.724c3.123-3.123 8.192-3.132 11.313-.01l5.668 5.668c3.12 3.12 3.116 8.186-.01 11.312l-6.725 6.725c2.257 3.82 4 7.979 5.134 12.383h9.505c4.416 0 8.007 3.578 8.007 7.992v8.017c0 4.411-3.585 7.991-8.007 7.991h-9.505zM64 96c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-paint tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M83.527 76.19C90.43 69.287 91.892 59 87.91 50.665l37.903-37.902c2.919-2.92 2.913-7.659 0-10.572a7.474 7.474 0 00-10.572 0L77.338 40.093c-8.335-3.982-18.622-2.521-25.526 4.383l31.715 31.715zm-2.643 2.644L49.169 47.119S8.506 81.243 0 80.282c0 0 3.782 5.592 6.827 8.039 14.024-5.69 37.326-24.6 37.326-24.6l.661.66S19.45 90.222 9.18 92.047c1.222 1.44 4.354 4.053 6.247 5.776 5.417-1.488 34.733-28.57 34.733-28.57l.661.66-32.407 31.022 5.285 5.286L56.106 75.2l.662.66s-27.864 30.536-28.684 32.432c0 0 6.032 6.853 7.569 7.824.702-2.836 27.884-33.485 27.884-33.485l.661.66s-20.597 23.755-24.964 36.732c3.21 3.549 7.5 5.137 10.926 6.298-2.19-11.817 30.724-47.487 30.724-47.487z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-palette tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M80.247 39.182a93.52 93.52 0 00-16.228-1.4C28.662 37.781 0 57.131 0 81.002c0 9.642 4.676 18.546 12.58 25.735C23.504 91.19 26.34 72.395 36.89 63.562c15.183-12.713 26.538-7.828 26.538-7.828l16.82-16.552zm26.535 9.655c13.049 7.913 21.257 19.392 21.257 32.166 0 9.35.519 17.411-11.874 25.08-10.797 6.681-3.824-6.536-11.844-10.898s-19.946 1.308-18.213 7.906c3.2 12.181 19.422 11.455 6.314 16.658-13.107 5.202-18.202 4.476-28.403 4.476-7.821 0-15.315-.947-22.243-2.68 9.844-4.197 27.88-12.539 33.354-19.456C82.788 92.409 87.37 80 83.324 72.484c-.194-.359 11.215-11.668 23.458-23.647zM1.134 123.867l-.66.002c33.479-14.94 22.161-64.226 58.818-64.226.317 1.418.644 2.944 1.062 4.494-25.907-4.166-23.567 48.031-59.22 59.73zm.713-.007c38.872-.506 78.152-22.347 78.152-44.813-9.27 0-14.073-3.48-16.816-7.942-16.597-7.003-30.365 45.715-61.336 52.755zm65.351-64.008c-4.45 4.115 4.886 16.433 11.318 11.318l45.27-45.27c11.317-11.318 0-22.635-11.318-11.318-11.317 11.318-33.518 34.405-45.27 45.27z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-permalink-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M80.483 48l-7.387 32h-25.58l7.388-32h25.58zm3.694-16l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L100.598 32h3.403c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8h-7.096l-7.387 32H104c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H85.824l-5.624 24.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L69.402 96h-25.58L38.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L27.402 96h-3.403C19.59 96 16 92.418 16 88c0-4.41 3.581-8 8-8h7.096l7.387-32H24C19.59 48 16 44.418 16 40c0-4.41 3.581-8 8-8h18.177l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L58.598 32h25.58z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-permaview-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M81.483 48l-1.846 8h-5.58l1.847-8h5.58zm3.694-16l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L101.598 32h2.403c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8h-6.096l-1.847 8h7.944c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H92.364l-1.846 8H104c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H86.824l-5.624 24.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L70.402 96h-5.58L59.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L48.402 96h-5.58L37.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L26.402 96h-2.403C19.59 96 16 92.418 16 88c0-4.41 3.581-8 8-8h6.096l1.847-8h-7.944C19.59 72 16 68.418 16 64c0-4.41 3.581-8 8-8h11.637l1.846-8H24C19.59 48 16 44.418 16 40c0-4.41 3.581-8 8-8h17.177l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L57.598 32h5.58L68.8 7.642c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L79.598 32h5.58zM53.904 48l-1.847 8h5.58l1.846-8h-5.579zm22.039 24l-1.847 8h-5.58l1.847-8h5.58zm-27.58 0l-1.846 8h5.579l1.847-8h-5.58z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-picture tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M112 68.233v-48.23A4.001 4.001 0 00107.997 16H20.003A4.001 4.001 0 0016 20.003v38.31l9.241-14.593c2.8-4.422 9.023-5.008 12.6-1.186l18.247 20.613 13.687-6.407a8 8 0 018.903 1.492 264.97 264.97 0 002.92 2.739 249.44 249.44 0 006.798 6.066 166.5 166.5 0 002.106 1.778c2.108 1.747 3.967 3.188 5.482 4.237.748.518 1.383.92 2.044 1.33.444.117 1.046.144 1.809.05 1.873-.233 4.238-1.144 6.723-2.547a36.016 36.016 0 003.205-2.044c.558-.4.93-.686 1.07-.802.376-.31.765-.577 1.165-.806zM0 8.007A8.01 8.01 0 018.007 0h111.986A8.01 8.01 0 01128 8.007v111.986a8.01 8.01 0 01-8.007 8.007H8.007A8.01 8.01 0 010 119.993V8.007zM95 42a8 8 0 100-16 8 8 0 000 16zM32 76c15.859 4.83 20.035 7.244 20.035 12S32 95.471 32 102.347c0 6.876 1.285 4.99 1.285 9.653H68s-13.685-6.625-13.685-10.8c0-7.665 10.615-8.34 10.615-13.2 0-7.357-14.078-8.833-32.93-12z"/></svg>-
<svg width="22pt" height="22pt" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M61.207 68.137c-4.324 2.795-6.999 6.656-6.999 10.921 0 7.906 9.19 14.424 21.042 15.336 2.162 3.902 8.598 6.785 16.318 7.01-5.126-1.125-9.117-3.742-10.62-7.01C92.805 93.487 102 86.967 102 79.059c0-8.53-10.699-15.445-23.896-15.445-6.599 0-12.572 1.729-16.897 4.524zm12.794-14.158c-4.324 2.795-10.298 4.524-16.897 4.524-2.619 0-5.14-.272-7.497-.775-3.312 2.25-8.383 3.69-14.067 3.69l-.255-.002c4.119-.892 7.511-2.747 9.478-5.13-6.925-2.704-11.555-7.617-11.555-13.228 0-8.53 10.699-15.445 23.896-15.445C70.301 27.613 81 34.528 81 43.058c0 4.265-2.675 8.126-6.999 10.921zM64 0l54.56 32v64L64 128 9.44 96V32L64 0z"/></svg>-
<svg width="22pt" height="22pt" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M40.397 76.446V95.34h14.12l-.001-.005a6.912 6.912 0 005.364-11.593l.046-.023a6.912 6.912 0 119.979.526l.086.055a6.914 6.914 0 004.408 10.948l-.023.092h21.32V75.568l-.15.038a6.912 6.912 0 00-11.593-5.364l-.022-.046a6.912 6.912 0 11.526-9.979l.055-.086a6.914 6.914 0 0010.948-4.408c.079.018.158.038.236.059v-15.74h-21.32l.023-.094a6.914 6.914 0 01-4.408-10.947 10.23 10.23 0 00-.086-.055 6.912 6.912 0 10-9.979-.526l-.046.023a6.912 6.912 0 01-5.364 11.593l.001.005h-14.12v12.847A6.912 6.912 0 0129.5 59.843l-.054.086a6.912 6.912 0 10-.526 9.979l.023.046a6.912 6.912 0 0111.455 6.492zM64 0l54.56 32v64L64 128 9.44 96V32L64 0z"/></svg>-
<svg width="22pt" height="22pt" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M29.408 91.472L51.469 69.41l-.004-.005a2.22 2.22 0 01.004-3.146c.87-.87 2.281-.872 3.147-.005l9.465 9.464a2.22 2.22 0 01-.005 3.147c-.87.87-2.28.871-3.147.005l-.005-.005-22.061 22.062a6.686 6.686 0 11-9.455-9.455zM60.802 66.38c-2.436-2.704-4.465-5.091-5.817-6.869-6.855-9.014-10.313-4.268-14.226 0-3.913 4.268 1.03 7.726-2.683 10.741-3.713 3.015-3.484 4.06-9.752-1.455-6.267-5.516-6.7-7.034-3.823-10.181 2.877-3.147 5.281 1.808 11.159-3.785 5.877-5.593.94-10.55.94-10.55s12.237-25.014 28.588-23.167c16.351 1.848-6.186-2.392-11.792 17.226-2.4 8.4.447 6.42 4.998 9.968 1.394 1.086 6.03 4.401 11.794 8.685l20.677-20.676 1.615-4.766 7.84-4.689 3.151 3.152-4.688 7.84-4.766 1.615-20.224 20.223c12.663 9.547 28.312 22.146 28.312 26.709 0 7.217-3.071 11.526-9.535 9.164-4.693-1.715-18.768-15.192-28.753-25.897l-2.893 2.893-3.151-3.152 3.029-3.029zM63.953 0l54.56 32v64l-54.56 32-54.56-32V32l54.56-32z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-preview-closed tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M.088 64a7.144 7.144 0 001.378 5.458C16.246 88.818 39.17 100.414 64 100.414c24.83 0 47.753-11.596 62.534-30.956A7.144 7.144 0 00127.912 64C110.582 78.416 88.304 87.086 64 87.086 39.696 87.086 17.418 78.416.088 64z"/><rect width="4" height="16" x="62" y="96" rx="4"/><rect width="4" height="16" x="78" y="93" rx="4" transform="rotate(-5 80 101)"/><rect width="4" height="16" x="46" y="93" rx="4" transform="rotate(5 48 101)"/><rect width="4" height="16" x="30" y="88" rx="4" transform="rotate(10 32 96)"/><rect width="4" height="16" x="94" y="88" rx="4" transform="rotate(-10 96 96)"/><rect width="4" height="16" x="110" y="80" rx="4" transform="rotate(-20 112 88)"/><rect width="4" height="16" x="14" y="80" rx="4" transform="rotate(20 16 88)"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-preview-open tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M64.11 99.588c-24.83 0-47.754-11.596-62.534-30.957a7.148 7.148 0 010-8.675C16.356 40.596 39.28 29 64.11 29c24.83 0 47.753 11.596 62.534 30.956a7.148 7.148 0 010 8.675c-14.78 19.36-37.703 30.957-62.534 30.957zm46.104-32.007c1.44-1.524 1.44-3.638 0-5.162C99.326 50.9 82.439 44 64.147 44S28.968 50.9 18.08 62.42c-1.44 1.523-1.44 3.637 0 5.16C28.968 79.1 45.855 86 64.147 86s35.179-6.9 46.067-18.42z"/><path d="M63.5 88C76.479 88 87 77.479 87 64.5S76.479 41 63.5 41 40 51.521 40 64.5 50.521 88 63.5 88z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-print-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M112 71V30.5h-.032c-.035-2-.816-3.99-2.343-5.516L86.998 2.357A7.978 7.978 0 0081 .02V0H24a8 8 0 00-8 8v63h8V8h57v14.5c0 4.422 3.582 8 8 8h15V71h8z"/><rect width="64" height="8" x="32" y="36" rx="4"/><rect width="64" height="8" x="32" y="52" rx="4"/><rect width="40" height="8" x="32" y="20" rx="4"/><path d="M0 80.005C0 71.165 7.156 64 16 64h96c8.836 0 16 7.155 16 16.005v31.99c0 8.84-7.156 16.005-16 16.005H16c-8.836 0-16-7.155-16-16.005v-31.99zM104 96a8 8 0 100-16 8 8 0 000 16z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-quote tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M51.219 117.713V62.199H27.427c0-8.891 1.683-16.401 5.047-22.53 3.365-6.127 9.613-10.754 18.745-13.878V2c-7.45.961-14.36 3.184-20.728 6.669-6.368 3.484-11.835 7.87-16.401 13.157C9.524 27.113 5.98 33.241 3.456 40.21.933 47.18-.21 54.63.03 62.56v55.153H51.22zm76.781 0V62.199h-23.791c0-8.891 1.682-16.401 5.046-22.53 3.365-6.127 9.613-10.754 18.745-13.878V2c-7.45.961-14.359 3.184-20.727 6.669-6.369 3.484-11.836 7.87-16.402 13.157-4.566 5.287-8.11 11.415-10.634 18.384-2.523 6.97-3.665 14.42-3.424 22.35v55.153H128z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-refresh-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M106.369 39.433c10.16 20.879 6.57 46.764-10.771 64.106-21.87 21.87-57.327 21.87-79.196 0-21.87-21.87-21.87-57.326 0-79.196a8 8 0 1111.314 11.314c-15.621 15.62-15.621 40.947 0 56.568 15.62 15.621 40.947 15.621 56.568 0C97.72 78.79 99.6 58.175 89.924 42.73l-6.44 12.264a8 8 0 11-14.166-7.437L84.435 18.76a8 8 0 0110.838-3.345l28.873 15.345a8 8 0 11-7.51 14.129l-10.267-5.457zm-8.222-12.368c-.167-.19-.336-.38-.506-.57l.96-.296-.454.866z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-right-arrow tc-image-button" viewBox="0 0 128 128"><path d="M99.069 64.173c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l50.382-50.382-50.382-50.382a7.92 7.92 0 010-11.195c3.086-3.085 8.104-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.316 5.595z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-rotate-left tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><rect width="32" height="80" rx="8"/><rect width="80" height="32" x="48" y="96" rx="8"/><path d="M61.32 36.65c19.743 2.45 35.023 19.287 35.023 39.693a4 4 0 01-8 0c0-15.663-11.254-28.698-26.117-31.46l3.916 3.916a4 4 0 11-5.657 5.657L49.172 43.142a4 4 0 010-5.657l11.313-11.313a4 4 0 115.657 5.656l-4.821 4.822z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-save-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M120.783 34.33c4.641 8.862 7.266 18.948 7.266 29.646 0 35.347-28.653 64-64 64-35.346 0-64-28.653-64-64 0-35.346 28.654-64 64-64 18.808 0 35.72 8.113 47.43 21.03l2.68-2.68c3.13-3.13 8.197-3.132 11.321-.008 3.118 3.118 3.121 8.193-.007 11.32l-4.69 4.691zm-12.058 12.058a47.876 47.876 0 013.324 17.588c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48c14.39 0 27.3 6.332 36.098 16.362L58.941 73.544 41.976 56.578c-3.127-3.127-8.201-3.123-11.32-.005-3.123 3.124-3.119 8.194.006 11.319l22.617 22.617a7.992 7.992 0 005.659 2.347c2.05 0 4.101-.783 5.667-2.349l44.12-44.12z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-size tc-image-button" viewBox="0 0 128 128"><path d="M92.343 26l-9.171 9.172a4 4 0 105.656 5.656l16-16a4 4 0 000-5.656l-16-16a4 4 0 10-5.656 5.656L92.343 18H22a4 4 0 00-4 4v70.343l-9.172-9.171a4 4 0 10-5.656 5.656l16 16a4 4 0 005.656 0l16-16a4 4 0 10-5.656-5.656L26 92.343V22l-4 4h70.343zM112 52v64l4-4H52a4 4 0 100 8h64a4 4 0 004-4V52a4 4 0 10-8 0z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-spiral tc-image-button" viewBox="0 0 128 128"><path d="M64.534 68.348c3.39 0 6.097-2.62 6.476-5.968l-4.755-.538 4.75.583c.377-3.07-1.194-6.054-3.89-7.78-2.757-1.773-6.34-2.01-9.566-.7-3.46 1.403-6.14 4.392-7.35 8.148l-.01.026c-1.3 4.08-.72 8.64 1.58 12.52 2.5 4.2 6.77 7.2 11.76 8.27 5.37 1.15 11.11-.05 15.83-3.31 5.04-3.51 8.46-9.02 9.45-15.3 1.05-6.7-.72-13.63-4.92-19.19l.02.02c-4.42-5.93-11.2-9.82-18.78-10.78-7.96-1.01-16.13 1.31-22.59 6.43-6.81 5.39-11.18 13.41-12.11 22.26-.98 9.27 1.87 18.65 7.93 26.02 6.32 7.69 15.6 12.56 25.74 13.48 10.54.96 21.15-2.42 29.45-9.4l.01-.01c8.58-7.25 13.94-17.78 14.86-29.21.94-11.84-2.96-23.69-10.86-32.9-8.19-9.5-19.95-15.36-32.69-16.27-13.16-.94-26.24 3.49-36.34 12.34l.01-.01c-10.41 9.08-16.78 22.1-17.68 36.15-.93 14.44 4.03 28.77 13.79 39.78 10.03 11.32 24.28 18.2 39.6 19.09 15.73.92 31.31-4.56 43.24-15.234 12.23-10.954 19.61-26.44 20.5-43.074a4.785 4.785 0 00-4.52-5.03 4.778 4.778 0 00-5.03 4.52c-.75 14.1-7 27.2-17.33 36.45-10.03 8.98-23.11 13.58-36.3 12.81-12.79-.75-24.67-6.48-33-15.89-8.07-9.11-12.17-20.94-11.41-32.827.74-11.52 5.942-22.15 14.43-29.54l.01-.01c8.18-7.17 18.74-10.75 29.35-9.998 10.21.726 19.6 5.41 26.11 12.96 6.24 7.273 9.32 16.61 8.573 25.894-.718 8.9-4.88 17.064-11.504 22.66l.01-.007c-6.36 5.342-14.44 7.92-22.425 7.19-7.604-.68-14.52-4.314-19.21-10.027-4.44-5.4-6.517-12.23-5.806-18.94.67-6.3 3.76-11.977 8.54-15.766 4.46-3.54 10.05-5.128 15.44-4.44 5.03.63 9.46 3.18 12.32 7.01l.02.024c2.65 3.5 3.75 7.814 3.1 11.92-.59 3.71-2.58 6.925-5.45 8.924-2.56 1.767-5.61 2.403-8.38 1.81-2.42-.516-4.42-1.92-5.53-3.79-.93-1.56-1.15-3.3-.69-4.75l-4.56-1.446L59.325 65c.36-1.12 1.068-1.905 1.84-2.22.25-.103.48-.14.668-.13.06.006.11.015.14.025.01 0 .01 0-.01-.01a1.047 1.047 0 01-.264-.332c-.15-.29-.23-.678-.18-1.11l-.005.04c.15-1.332 1.38-2.523 3.035-2.523-2.65 0-4.79 2.144-4.79 4.787s2.14 4.785 4.78 4.785z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-stamp tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M49.733 64H16.01C11.584 64 8 67.583 8 72.003V97h112V72.003A8 8 0 00111.99 64H78.267A22.813 22.813 0 0175.5 53.077c0-6.475 2.687-12.324 7.009-16.497A22.818 22.818 0 0087 22.952C87 10.276 76.703 0 64 0S41 10.276 41 22.952c0 5.103 1.669 9.817 4.491 13.628 4.322 4.173 7.009 10.022 7.009 16.497 0 3.954-1.002 7.675-2.767 10.923zM8 104h112v8H8v-8z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-star-filled tc-image-button" viewBox="0 0 128 128"><path d="M61.836 96.823l37.327 27.287c2.72 1.99 6.379-.69 5.343-3.912L90.29 75.988l-1.26 3.91 37.285-27.345c2.718-1.993 1.32-6.327-2.041-6.33l-46.113-.036 3.3 2.416L67.176 4.416c-1.04-3.221-5.563-3.221-6.604 0L46.29 48.603l3.3-2.416-46.113.036c-3.362.003-4.759 4.337-2.04 6.33L38.72 79.898l-1.26-3.91-14.216 44.21c-1.036 3.223 2.622 5.901 5.343 3.912l37.326-27.287h-4.078z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-storyview-classic tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16C19.581 16 16 19.578 16 23.992v16.016C16 44.422 19.588 48 24 48h80c4.419 0 8-3.578 8-7.992V23.992c0-4.414-3.588-7.992-8-7.992H24zm0 48C19.581 64 16 67.59 16 72c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24zm0 32C19.581 96 16 99.59 16 104c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-storyview-pop tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16C19.581 16 16 19.578 16 23.992v16.016C16 44.422 19.588 48 24 48h80c4.419 0 8-3.578 8-7.992V23.992c0-4.414-3.588-7.992-8-7.992H24zm-7.99 40C11.587 56 8 59.578 8 63.992v16.016C8 84.422 11.584 88 16.01 88h95.98c4.424 0 8.01-3.578 8.01-7.992V63.992c0-4.414-3.584-7.992-8.01-7.992H16.01zM24 96C19.581 96 16 99.59 16 104c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24zm0-32C19.581 64 16 67.59 16 72c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-storyview-zoomin tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16A8 8 0 0016 24.009V71.99C16 76.414 19.588 80 24 80h80a8 8 0 008-8.009V24.01c0-4.423-3.588-8.009-8-8.009H24z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-strikethrough tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M92.794 38.726h15.422c-.229-6.74-1.514-12.538-3.856-17.393-2.342-4.855-5.54-8.881-9.596-12.08-4.055-3.199-8.767-5.54-14.136-7.025C75.258.743 69.433 0 63.15 0a62.76 62.76 0 00-16.364 2.142C41.474 3.57 36.733 5.74 32.564 8.653c-4.17 2.913-7.511 6.626-10.025 11.138-2.513 4.512-3.77 9.853-3.77 16.022 0 5.597 1.115 10.252 3.342 13.965 2.228 3.712 5.198 6.74 8.91 9.081 3.713 2.342 7.911 4.227 12.595 5.655a194.641 194.641 0 0014.308 3.77c4.855 1.085 9.624 2.142 14.308 3.17 4.683 1.028 8.881 2.37 12.594 4.027 3.713 1.656 6.683 3.798 8.91 6.425 2.228 2.628 3.342 6.055 3.342 10.281 0 4.456-.914 8.111-2.742 10.967a19.953 19.953 0 01-7.197 6.768c-2.97 1.657-6.311 2.828-10.024 3.513a60.771 60.771 0 01-11.052 1.028c-4.57 0-9.025-.571-13.366-1.713-4.34-1.143-8.139-2.913-11.394-5.312-3.256-2.4-5.884-5.455-7.883-9.168-1.999-3.712-2.998-8.139-2.998-13.28H15c0 7.426 1.342 13.852 4.027 19.278 2.684 5.426 6.34 9.881 10.966 13.365 4.627 3.484 9.996 6.083 16.107 7.797 6.112 1.713 12.595 2.57 19.449 2.57 5.597 0 11.223-.657 16.878-1.97 5.655-1.314 10.767-3.428 15.336-6.34 4.57-2.914 8.31-6.683 11.224-11.31 2.913-4.626 4.37-10.195 4.37-16.707 0-6.054-1.115-11.08-3.342-15.079-2.228-3.998-5.198-7.31-8.91-9.938-3.713-2.627-7.911-4.712-12.595-6.254a170.83 170.83 0 00-14.308-4.027 549.669 549.669 0 00-14.308-3.17c-4.683-.971-8.881-2.2-12.594-3.684-3.713-1.485-6.683-3.399-8.91-5.74-2.228-2.342-3.342-5.398-3.342-9.168 0-3.998.771-7.34 2.313-10.024 1.543-2.685 3.599-4.826 6.17-6.426 2.57-1.599 5.51-2.741 8.824-3.427a49.767 49.767 0 0110.11-1.028c8.453 0 15.393 1.97 20.819 5.912 5.426 3.94 8.596 10.31 9.51 19.106z"/><path d="M5 54h118v16H5z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-subscript tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M2.272 16h19.91l21.649 33.675L66.414 16h18.708L53.585 61.969l33.809 49.443H67.082L43.296 74.93l-24.187 36.48H0L33.808 61.97 2.272 16zM127.91 128.412H85.328c.059-5.168 1.306-9.681 3.741-13.542 2.435-3.86 5.761-7.216 9.978-10.066a112.388 112.388 0 016.325-4.321 50.09 50.09 0 006.058-4.499c1.841-1.603 3.356-3.34 4.543-5.211 1.188-1.871 1.812-4.024 1.871-6.46 0-1.128-.133-2.33-.4-3.607a9.545 9.545 0 00-1.56-3.564c-.772-1.098-1.84-2.019-3.207-2.761-1.366-.743-3.148-1.114-5.345-1.114-2.02 0-3.697.4-5.033 1.203-1.337.801-2.406 1.9-3.208 3.296-.801 1.396-1.395 3.044-1.781 4.944-.386 1.9-.609 3.95-.668 6.147H86.486c0-3.445.46-6.637 1.38-9.577.921-2.94 2.302-5.478 4.143-7.617 1.841-2.138 4.083-3.815 6.726-5.033 2.643-1.217 5.716-1.826 9.22-1.826 3.802 0 6.979.623 9.533 1.87 2.554 1.248 4.617 2.822 6.191 4.722 1.574 1.9 2.688 3.965 3.341 6.192.653 2.227.98 4.35.98 6.37 0 2.494-.386 4.75-1.158 6.77a21.803 21.803 0 01-3.118 5.568 31.516 31.516 0 01-4.454 4.677 66.788 66.788 0 01-5.167 4.009 139.198 139.198 0 01-5.346 3.563 79.237 79.237 0 00-4.944 3.386c-1.514 1.128-2.836 2.3-3.964 3.518-1.129 1.218-1.9 2.51-2.317 3.876h30.379v9.087z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-superscript tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M2.272 16h19.91l21.649 33.675L66.414 16h18.708L53.585 61.969l33.809 49.443H67.082L43.296 74.93l-24.187 36.48H0L33.808 61.97 2.272 16zM127.91 63.412H85.328c.059-5.168 1.306-9.681 3.741-13.542 2.435-3.86 5.761-7.216 9.978-10.066a112.388 112.388 0 016.325-4.321 50.09 50.09 0 006.058-4.499c1.841-1.603 3.356-3.34 4.543-5.211 1.188-1.871 1.812-4.024 1.871-6.46 0-1.128-.133-2.33-.4-3.607a9.545 9.545 0 00-1.56-3.564c-.772-1.098-1.84-2.019-3.207-2.761-1.366-.743-3.148-1.114-5.345-1.114-2.02 0-3.697.4-5.033 1.203-1.337.801-2.406 1.9-3.208 3.296-.801 1.396-1.395 3.044-1.781 4.944-.386 1.9-.609 3.95-.668 6.147H86.486c0-3.445.46-6.637 1.38-9.577.921-2.94 2.302-5.478 4.143-7.617 1.841-2.138 4.083-3.815 6.726-5.033 2.643-1.217 5.716-1.826 9.22-1.826 3.802 0 6.979.623 9.533 1.87 2.554 1.248 4.617 2.822 6.191 4.722 1.574 1.9 2.688 3.965 3.341 6.192.653 2.227.98 4.35.98 6.37 0 2.494-.386 4.75-1.158 6.77a21.803 21.803 0 01-3.118 5.568 31.516 31.516 0 01-4.454 4.677 66.788 66.788 0 01-5.167 4.009 139.198 139.198 0 01-5.346 3.563 79.237 79.237 0 00-4.944 3.386c-1.514 1.128-2.836 2.3-3.964 3.518-1.129 1.218-1.9 2.51-2.317 3.876h30.379v9.087z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-tag-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M18.164 47.66l.004 4.105c.003 3.823 2.19 9.097 4.885 11.792l61.85 61.85c2.697 2.697 7.068 2.69 9.769-.01L125.767 94.3a6.903 6.903 0 00.01-9.77L63.928 22.683c-2.697-2.697-7.976-4.88-11.796-4.881l-27.076-.007a6.902 6.902 0 00-6.91 6.91l.008 9.96.287.033c3.73.411 8.489-.044 13.365-1.153a9.702 9.702 0 0111.14-3.662l.291-.13.128.285a9.7 9.7 0 013.3 2.17c3.796 3.796 3.801 9.945.012 13.734-3.618 3.618-9.386 3.777-13.204.482-5.365 1.122-10.674 1.596-15.309 1.237z"/><path d="M47.633 39.532l.023.051c-9.689 4.356-21.584 6.799-30.396 5.828C5.273 44.089-1.028 36.43 2.443 24.078 5.562 12.976 14.3 4.361 24.047 1.548c10.68-3.083 19.749 1.968 19.749 13.225h-8.623c0-4.859-3.078-6.573-8.735-4.94-6.91 1.995-13.392 8.383-15.694 16.577-1.915 6.818.417 9.653 7.46 10.43 7.126.785 17.531-1.352 25.917-5.121l.027.06.036-.017c1.76-.758 6.266 6.549 3.524 7.74a2.8 2.8 0 01-.075.03z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-fa-telegram-plane tc-image-button" viewBox="0 0 448 512"><path style="fill:#000000;" d="M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-theme-button tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M55.854 66.945a122.626 122.626 0 01-3.9-4.819c-11.064-14.548-16.645-6.888-22.96 0-6.315 6.888 1.664 12.47-4.33 17.335-5.993 4.866-5.623 6.552-15.737-2.35-10.115-8.9-10.815-11.351-6.172-16.43 4.644-5.08 8.524 2.918 18.01-6.108 9.485-9.026 1.517-17.026 1.517-17.026S42.03-2.824 68.42.157c26.39 2.982-9.984-3.86-19.031 27.801-3.874 13.556.72 10.362 8.066 16.087 1.707 1.33 6.428 4.732 12.671 9.318-6.129 5.879-11.157 10.669-14.273 13.582zm11.641 12.947c16.013 17.036 37.742 37.726 45.117 40.42 10.432 3.813 15.388-3.141 15.388-14.79 0-7.151-23.83-26.542-43.924-41.769-7.408 7.156-13.376 12.953-16.58 16.139z"/><path d="M11.069 109.828L46.31 74.587a3.56 3.56 0 115.037-5.032l15.098 15.098a3.56 3.56 0 11-5.032 5.037l-35.24 35.241c-4.171 4.17-10.933 4.17-15.104 0-4.17-4.17-4.17-10.933 0-15.103zM124.344 6.622l5.034 5.034-7.49 12.524-7.613 2.58L61.413 79.62l-5.034-5.034 52.861-52.862 2.58-7.614 12.524-7.49z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-timestamp-off tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10a5 5 0 010-10H66.69a5 5 0 015 5c.006 2.757-2.238 5-5 5H49.705z"/><path d="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"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-timestamp-on tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><path d="M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10a5 5 0 010-10H66.69a5 5 0 015 5c.006 2.757-2.238 5-5 5H49.705z"/><path d="M13.41 27.178a5.005 5.005 0 01-7.045-.613 5.008 5.008 0 01.616-7.047l9.95-8.348a5 5 0 016.429 7.661l-9.95 8.348zm89.573 0a5.005 5.005 0 007.045-.613 5.008 5.008 0 00-.616-7.047l-9.95-8.348a5 5 0 00-6.428 7.661l9.95 8.348zM65.097 71.072c0 3.826-3.09 6.928-6.897 6.928-3.804.006-6.9-3.102-6.903-6.928 0 0 4.76-39.072 6.903-39.072s6.897 39.072 6.897 39.072z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-tip tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M64 128.242c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64-35.346 0-64 28.654-64 64 0 35.346 28.654 64 64 64zm11.936-36.789c-.624 4.129-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349C54.33 94.05 58.824 95.82 64 95.82c5.175 0 9.67-1.769 11.936-4.366zm0 4.492c-.624 4.13-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zm0 4.456c-.624 4.129-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zm0 4.492c-.624 4.13-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zM64.3 24.242c11.618 0 23.699 7.82 23.699 24.2S75.92 71.754 75.92 83.576c0 5.873-5.868 9.26-11.92 9.26s-12.027-3.006-12.027-9.26C51.973 71.147 40 65.47 40 48.442s12.683-24.2 24.301-24.2z"/></svg>-
<svg width="22pt" height="22pt" class="tc-transcludify-button tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M0 59.482c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 002.75-.932 6.762 6.762 0 002.306-1.907c.651-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 00-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 00-2.75-1.02C1.36 67.377.591 67.288 0 67.288v-7.806zm24.66 0c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 002.75-.932 6.762 6.762 0 002.306-1.907c.65-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 00-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 00-2.75-1.02c-.946-.177-1.715-.266-2.306-.266v-7.806zm43.965-3.538L80.6 52.041l2.306 7.097-12.063 3.903 7.628 10.378-6.12 4.435-7.63-10.467-7.45 10.201-5.943-4.524 7.628-10.023-12.152-4.17 2.306-7.096 12.064 4.17V43.347h7.451v12.596zm34.425 11.344c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 00-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 00.71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 00-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 002.262 2.084 8.868 8.868 0 002.75 1.02c.946.177 1.745.266 2.395.266v7.806zm24.66 0c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 00-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 00.71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 00-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 002.262 2.084 8.868 8.868 0 002.75 1.02c.946.177 1.745.266 2.395.266v7.806z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-twitter tc-image-button" viewBox="0 0 128 128"><path style="fill:#000000;" d="M41.626 115.803A73.376 73.376 0 012 104.235c2.022.238 4.08.36 6.166.36 12.111 0 23.258-4.117 32.105-11.023-11.312-.208-20.859-7.653-24.148-17.883a25.98 25.98 0 0011.674-.441C15.971 72.881 7.061 62.474 7.061 49.997c0-.108 0-.216.002-.323a25.824 25.824 0 0011.709 3.22c-6.936-4.617-11.5-12.5-11.5-21.433 0-4.719 1.274-9.142 3.5-12.945 12.75 15.579 31.797 25.83 53.281 26.904-.44-1.884-.67-3.85-.67-5.868 0-14.22 11.575-25.75 25.852-25.75a25.865 25.865 0 0118.869 8.132 51.892 51.892 0 0016.415-6.248c-1.93 6.012-6.029 11.059-11.366 14.246A51.844 51.844 0 00128 25.878a52.428 52.428 0 01-12.9 13.33c.05 1.104.075 2.214.075 3.33 0 34.028-26 73.265-73.549 73.265"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-underline tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M7 117.421h114.248V128H7v-10.579zm97.871-18.525V0h-16.26v55.856c0 4.463-.605 8.576-1.816 12.338-1.212 3.762-3.03 7.046-5.452 9.851-2.423 2.806-5.452 4.974-9.086 6.504-3.635 1.53-7.939 2.296-12.912 2.296-6.25 0-11.159-1.786-14.73-5.356-3.57-3.571-5.356-8.417-5.356-14.538V0H23v65.038c0 5.356.542 10.234 1.626 14.633 1.084 4.4 2.965 8.194 5.643 11.382 2.678 3.188 6.185 5.643 10.52 7.365 4.337 1.721 9.756 2.582 16.26 2.582 7.27 0 13.582-1.435 18.938-4.304 5.356-2.87 9.755-7.365 13.199-13.486h.382v15.686h15.303z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-unfold-all tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><rect width="128" height="16" rx="8"/><rect width="128" height="16" y="64" rx="8"/><path d="M63.945 60.624c-2.05 0-4.101-.78-5.666-2.345L35.662 35.662c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L63.94 41.314l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.603 58.279a7.986 7.986 0 01-5.663 2.346zM64.004 124.565c-2.05 0-4.102-.78-5.666-2.345L35.721 99.603c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.191-3.122 11.318.005L64 105.255l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.662 122.22a7.986 7.986 0 01-5.663 2.346z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-unfold tc-image-button" viewBox="0 0 128 128"><g fill-rule="evenodd"><rect width="128" height="16" rx="8"/><path d="M63.945 63.624c-2.05 0-4.101-.78-5.666-2.345L35.662 38.662c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L63.94 44.314l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.603 61.279a7.986 7.986 0 01-5.663 2.346zM64.004 105.682c-2.05.001-4.102-.78-5.666-2.344L35.721 80.721c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.191-3.122 11.318.005L64 86.373l16.966-16.966c3.124-3.125 8.194-3.13 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319l-22.617 22.617a7.986 7.986 0 01-5.663 2.346z"/></g></svg>-
<svg width="22pt" height="22pt" class="tc-image-unlocked-padlock tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M48.627 64H105v32.01C105 113.674 90.674 128 73.001 128H56C38.318 128 24 113.677 24 96.01V64h6.136c-10.455-12.651-27.364-35.788-4.3-55.142 24.636-20.672 45.835 4.353 55.777 16.201 9.943 11.85-2.676 22.437-12.457 9.892-9.78-12.545-21.167-24.146-33.207-14.043-12.041 10.104-1.757 22.36 8.813 34.958 2.467 2.94 3.641 5.732 3.865 8.134zm19.105 28.364A8.503 8.503 0 0064.5 76a8.5 8.5 0 00-3.498 16.25l-5.095 22.77H72.8l-5.07-22.656z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-up-arrow tc-image-button" viewBox="0 0 128 128"><path d="M63.892.281c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.104 3.092-11.196 0L63.894 19.393 13.513 69.774a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l55.98-55.98A7.892 7.892 0 0163.893.28z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-video tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M64 12c-34.91 0-55.273 2.917-58.182 5.833C2.91 20.75 0 41.167 0 64.5c0 23.333 2.91 43.75 5.818 46.667C8.728 114.083 29.091 117 64 117c34.91 0 55.273-2.917 58.182-5.833C125.09 108.25 128 87.833 128 64.5c0-23.333-2.91-43.75-5.818-46.667C119.272 14.917 98.909 12 64 12zm-9.084 32.618c-3.813-2.542-6.905-.879-6.905 3.698v31.368c0 4.585 3.099 6.235 6.905 3.698l22.168-14.779c3.813-2.542 3.806-6.669 0-9.206L54.916 44.618z"/></svg>-
<svg width="22pt" height="22pt" class="tc-image-warning tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M57.072 11c3.079-5.333 10.777-5.333 13.856 0l55.426 96c3.079 5.333-.77 12-6.928 12H8.574c-6.158 0-10.007-6.667-6.928-12l55.426-96zM64 37c-4.418 0-8 3.582-8 7.994v28.012C56 77.421 59.59 81 64 81c4.418 0 8-3.582 8-7.994V44.994C72 40.579 68.41 37 64 37zm0 67a8 8 0 100-16 8 8 0 000 16z"/></svg>-
<svg class="tc-image-social-whatsapp tc-image-button" width="22pt" height="22pt" viewBox="0 0 38 38.295997619628906"><path fill-rule="evenodd" d="M28.092 22.894c-.468-.256-2.766-1.496-3.196-1.671-.43-.175-.745-.267-1.08.199-.336.463-1.289 1.502-1.578 1.81-.29.307-.57.335-1.036.079-.468-.256-1.984-.817-3.741-2.506-1.368-1.315-2.266-2.91-2.526-3.397-.26-.487-.002-.736.245-.964.223-.205.498-.538.746-.807.248-.27.336-.465.506-.776.17-.313.102-.593-.008-.836-.11-.243-.975-2.621-1.336-3.59-.361-.967-.764-.823-1.042-.834-.277-.01-.594-.062-.911-.074-.318-.012-.838.088-1.292.549-.454.459-1.728 1.565-1.815 3.908-.088 2.343 1.533 4.671 1.759 4.997.226.327 3.096 5.405 7.865 7.494 4.77 2.088 4.794 1.452 5.67 1.405.875-.046 2.86-1.047 3.299-2.143.439-1.097.474-2.05.362-2.254-.112-.202-.425-.334-.891-.59zm-8.747 11.29c-3.154 0-6.092-.946-8.544-2.567l-5.968 1.91 1.94-5.767a15.447 15.447 0 0 1-2.957-9.105c0-8.564 6.966-15.53 15.529-15.53 8.563 0 15.53 6.966 15.53 15.53 0 8.563-6.967 15.53-15.53 15.53zm0-34.184C9.042 0 .69 8.352.69 18.655c0 3.525.979 6.82 2.677 9.633L0 38.296l10.329-3.306a18.577 18.577 0 0 0 9.016 2.32C29.647 37.31 38 28.957 38 18.655 38 8.352 29.647 0 19.345 0z"/></svg>-
\define colour-picker-update-recent() -<$action-listops - $tiddler="$:/config/ColourPicker/Recent" - $subfilter="$(colour-picker-value)$ [list[$:/config/ColourPicker/Recent]remove[$(colour-picker-value)$]] +[limit[8]]" -/> -\end - -\define colour-picker-inner(actions) -<$button tag="a" tooltip="""$(colour-picker-value)$"""> - -$(colour-picker-update-recent)$ - -$actions$ - -<span style="display:inline-block; background-color: $(colour-picker-value)$; width: 100%; height: 100%; border-radius: 50%;"/> - -</$button> -\end - -\define colour-picker-recent-inner(actions) -<$set name="colour-picker-value" value="$(recentColour)$"> -<$macrocall $name="colour-picker-inner" actions="""$actions$"""/> -</$set> -\end - -\define colour-picker-recent(actions) -{{$:/language/ColourPicker/Recent}} <$list filter="[list[$:/config/ColourPicker/Recent]]" variable="recentColour"> -<$macrocall $name="colour-picker-recent-inner" actions="""$actions$"""/></$list> -\end - -\define colour-picker(actions) -<div class="tc-colour-chooser"> - -<$macrocall $name="colour-picker-recent" actions="""$actions$"""/> - ---- - -<$list filter="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" variable="colour-picker-value"> -<$macrocall $name="colour-picker-inner" actions="""$actions$"""/> -</$list> - ---- - -<$edit-text tiddler="$:/config/ColourPicker/New" tag="input" default="" placeholder=""/> -<$edit-text tiddler="$:/config/ColourPicker/New" type="color" tag="input"/> -<$set name="colour-picker-value" value={{$:/config/ColourPicker/New}}> -<$macrocall $name="colour-picker-inner" actions="""$actions$"""/> -</$set> - -</div> - -\end --
\define copy-to-clipboard(src,class:"tc-btn-invisible",style) -<$button class=<<__class__>> style=<<__style__>> message="tm-copy-to-clipboard" param=<<__src__>> tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}> -{{$:/core/images/copy-clipboard}} <$text text={{$:/language/Buttons/CopyToClipboard/Caption}}/> -</$button> -\end - -\define copy-to-clipboard-above-right(src,class:"tc-btn-invisible",style) -<div style="position: relative;"> -<div style="position: absolute; bottom: 0; right: 0;"> -<$macrocall $name="copy-to-clipboard" src=<<__src__>> class=<<__class__>> style=<<__style__>>/> -</div> -</div> -\end - --
\define colour(name) -<$transclude tiddler={{$:/palette}} index="$name$"><$transclude tiddler="$:/palettes/Vanilla" index="$name$"><$transclude tiddler="$:/config/DefaultColourMappings/$name$"/></$transclude></$transclude> -\end - -\define color(name) -<<colour $name$>> -\end - -\define box-shadow(shadow) -`` - -webkit-box-shadow: $shadow$; - -moz-box-shadow: $shadow$; - box-shadow: $shadow$; -`` -\end - -\define filter(filter) -`` - -webkit-filter: $filter$; - -moz-filter: $filter$; - filter: $filter$; -`` -\end - -\define transition(transition) -`` - -webkit-transition: $transition$; - -moz-transition: $transition$; - transition: $transition$; -`` -\end - -\define transform-origin(origin) -`` - -webkit-transform-origin: $origin$; - -moz-transform-origin: $origin$; - transform-origin: $origin$; -`` -\end - -\define background-linear-gradient(gradient) -`` -background-image: linear-gradient($gradient$); -background-image: -o-linear-gradient($gradient$); -background-image: -moz-linear-gradient($gradient$); -background-image: -webkit-linear-gradient($gradient$); -background-image: -ms-linear-gradient($gradient$); -`` -\end - -\define column-count(columns) -`` --moz-column-count: $columns$; --webkit-column-count: $columns$; -column-count: $columns$; -`` -\end - -\define datauri(title) -<$macrocall $name="makedatauri" type={{$title$!!type}} text={{$title$}} _canonical_uri={{$title$!!_canonical_uri}}/> -\end - -\define if-sidebar(text) -<$reveal state="$:/state/sidebar" type="match" text="yes" default="yes">$text$</$reveal> -\end - -\define if-no-sidebar(text) -<$reveal state="$:/state/sidebar" type="nomatch" text="yes" default="yes">$text$</$reveal> -\end - -\define if-background-attachment(text) -<$reveal state="$:/themes/tiddlywiki/vanilla/settings/backgroundimage" type="nomatch" text="">$text$</$reveal> -\end --
\define compareTiddlerText(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle) -<$set name="source" tiddler=<<__sourceTiddlerTitle__>> subtiddler=<<__sourceSubTiddlerTitle__>>> -<$set name="dest" tiddler=<<__destTiddlerTitle__>> subtiddler=<<__destSubTiddlerTitle__>>> -<$diff-text source=<<source>> dest=<<dest>>/> -</$set> -</$set> -\end - -\define compareTiddlers(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle,exclude) -<table class="tc-diff-tiddlers"> -<tbody> -<$set name="sourceFields" filter="[<__sourceTiddlerTitle__>fields[]sort[]]"> -<$set name="destFields" filter="[<__destSubTiddlerTitle__>subtiddlerfields<__destTiddlerTitle__>sort[]]"> -<$list filter="[enlist<sourceFields>] [enlist<destFields>] -[enlist<__exclude__>] +[sort[]]" variable="fieldName"> -<tr> -<th> -<$text text=<<fieldName>>/> -</th> -<td> -<$set name="source" tiddler=<<__sourceTiddlerTitle__>> subtiddler=<<__sourceSubTiddlerTitle__>> field=<<fieldName>>> -<$set name="dest" tiddler=<<__destTiddlerTitle__>> subtiddler=<<__destSubTiddlerTitle__>> field=<<fieldName>>> -<$diff-text source=<<source>> dest=<<dest>>> -</$diff-text> -</$set> -</$set> -</td> -</tr> -</$list> -</$set> -</$set> -</tbody> -</table> -\end --
\define dumpvariables() -<ul> -<$list filter="[variables[]]" variable="varname"> -<li> -<strong><code><$text text=<<varname>>/></code></strong>:<br/> -<$codeblock code={{{ [<varname>getvariable[]] }}}/> -</li> -</$list> -</ul> -\end --
\define exportButtonFilename(baseFilename) -$baseFilename$$(extension)$ -\end - -\define exportButton(exportFilter:"[!is[system]sort[title]]",lingoBase,baseFilename:"tiddlers") -<span class="tc-popup-keep"><$button popup=<<qualify "$:/state/popup/export">> tooltip={{$lingoBase$Hint}} aria-label={{$lingoBase$Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected"> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/export-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$lingoBase$Caption}}/></span> -</$list> -</$button></span><$reveal state=<<qualify "$:/state/popup/export">> type="popup" position="below" animate="yes"> -<div class="tc-drop-down"> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/Exporter]]"> -<$set name="extension" value={{!!extension}}> -<$button class="tc-btn-invisible"> -<$action-sendmessage $message="tm-download-file" $param=<<currentTiddler>> exportFilter="""$exportFilter$""" filename=<<exportButtonFilename """$baseFilename$""">>/> -<$action-deletetiddler $tiddler=<<qualify "$:/state/popup/export">>/> -<$transclude field="description"/> -</$button> -</$set> -</$list> -</div> -</$reveal> -\end --
\define image-picker-thumbnail(actions) -<$button tag="a" tooltip="""$(imageTitle)$"""> -$actions$ -<$transclude tiddler=<<imageTitle>>/> -</$button> -\end - -\define image-picker-list(filter,actions) -<$list filter="""$filter$""" variable="imageTitle"> -<$macrocall $name="image-picker-thumbnail" actions="""$actions$"""/> -</$list> -\end - -\define image-picker(actions,filter:"[all[shadows+tiddlers]is[image]] -[type[application/pdf]] +[!has[draft.of]$subfilter$sort[title]]",subfilter:"") -<div class="tc-image-chooser"> -<$vars state-system=<<qualify "$:/state/image-picker/system">>> -<$checkbox tiddler=<<state-system>> field="text" checked="show" unchecked="hide" default="hide"> -{{$:/language/SystemTiddlers/Include/Prompt}} -</$checkbox> -<$reveal state=<<state-system>> type="match" text="hide" default="hide" tag="div"> -<$macrocall $name="image-picker-list" filter="""$filter$ +[!is[system]]""" actions="""$actions$"""/> -</$reveal> -<$reveal state=<<state-system>> type="nomatch" text="hide" default="hide" tag="div"> -<$macrocall $name="image-picker-list" filter="""$filter$""" actions="""$actions$"""/> -</$reveal> -</$vars> -</div> -\end - -\define image-picker-include-tagged-images(actions) -<$macrocall $name="image-picker" filter="[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[!has[draft.of]sort[title]]" actions="""$actions$"""/> -\end --
\define lingo-base() -$:/language/ -\end - -\define lingo(title) -{{$(lingo-base)$$title$}} -\end --
\define list-links(filter,type:"ul",subtype:"li",class:"",emptyMessage) -\whitespace trim -<$type$ class="$class$"> -<$list filter="$filter$" emptyMessage=<<__emptyMessage__>>> -<$subtype$> -<$link to={{!!title}}> -<$transclude field="caption"> -<$view field="title"/> -</$transclude> -</$link> -</$subtype$> -</$list> -</$type$> -\end - -\define list-links-draggable-drop-actions() -<$action-listops $tiddler=<<targetTiddler>> $field=<<targetField>> $subfilter="+[insertbefore:currentTiddler<actionTiddler>]"/> -\end - -\define list-links-draggable(tiddler,field:"list",type:"ul",subtype:"li",class:"",itemTemplate) -\whitespace trim -<span class="tc-links-draggable-list"> -<$vars targetTiddler="""$tiddler$""" targetField="""$field$"""> -<$type$ class="$class$"> -<$list filter="[list[$tiddler$!!$field$]]"> -<$droppable actions=<<list-links-draggable-drop-actions>> tag="""$subtype$""" enable=<<tv-enable-drag-and-drop>>> -<div class="tc-droppable-placeholder"/> -<div> -<$transclude tiddler="""$itemTemplate$"""> -<$link to={{!!title}}> -<$transclude field="caption"> -<$view field="title"/> -</$transclude> -</$link> -</$transclude> -</div> -</$droppable> -</$list> -</$type$> -<$tiddler tiddler=""> -<$droppable actions=<<list-links-draggable-drop-actions>> tag="div" enable=<<tv-enable-drag-and-drop>>> -<div class="tc-droppable-placeholder"> - -</div> -<div style="height:0.5em;"/> -</$droppable> -</$tiddler> -</$vars> -</span> -\end - -\define list-tagged-draggable-drop-actions(tag) -<!-- Save the current ordering of the tiddlers with this tag --> -<$set name="order" filter="[<__tag__>tagging[]]"> -<!-- Remove any list-after or list-before fields from the tiddlers with this tag --> -<$list filter="[<__tag__>tagging[]]"> -<$action-deletefield $field="list-before"/> -<$action-deletefield $field="list-after"/> -</$list> -<!-- Save the new order to the Tag Tiddler --> -<$action-listops $tiddler=<<__tag__>> $field="list" $filter="+[enlist<order>] +[insertbefore:currentTiddler<actionTiddler>]"/> -<!-- Make sure the newly added item has the right tag --> -<!-- Removing this line makes dragging tags within the dropdown work as intended --> -<!--<$action-listops $tiddler=<<actionTiddler>> $tags=<<__tag__>>/>--> -<!-- Using the following 5 lines as replacement makes dragging titles from outside into the dropdown apply the tag --> -<$list filter="[<actionTiddler>!contains:tags<__tag__>]"> -<$fieldmangler tiddler=<<actionTiddler>>> -<$action-sendmessage $message="tm-add-tag" $param=<<__tag__>>/> -</$fieldmangler> -</$list> -</$set> -\end - -\define list-tagged-draggable(tag,subFilter,emptyMessage,itemTemplate,elementTag:"div",storyview:"") -\whitespace trim -<span class="tc-tagged-draggable-list"> -<$set name="tag" value=<<__tag__>>> -<$list filter="[<__tag__>tagging[]$subFilter$]" emptyMessage=<<__emptyMessage__>> storyview=<<__storyview__>>> -<$elementTag$ class="tc-menu-list-item"> -<$droppable actions="""<$macrocall $name="list-tagged-draggable-drop-actions" tag=<<__tag__>>/>""" enable=<<tv-enable-drag-and-drop>>> -<$elementTag$ class="tc-droppable-placeholder"/> -<$elementTag$> -<$transclude tiddler="""$itemTemplate$"""> -<$link to={{!!title}}> -<$view field="title"/> -</$link> -</$transclude> -</$elementTag$> -</$droppable> -</$elementTag$> -</$list> -<$tiddler tiddler=""> -<$droppable actions="""<$macrocall $name="list-tagged-draggable-drop-actions" tag=<<__tag__>>/>""" enable=<<tv-enable-drag-and-drop>>> -<$elementTag$ class="tc-droppable-placeholder"/> -<$elementTag$ style="height:0.5em;"> -</$elementTag$> -</$droppable> -</$tiddler> -</$set> -</span> -\end --
\define tabs(tabsList,default,state:"$:/state/tab",class,template,buttonTemplate,retain) -<div class="tc-tab-set $class$"> -<div class="tc-tab-buttons $class$"> -<$list filter="$tabsList$" variable="currentTab" storyview="pop"><$set name="save-currentTiddler" value=<<currentTiddler>>><$tiddler tiddler=<<currentTab>>><$button set=<<qualify "$state$">> setTo=<<currentTab>> default="$default$" selectedClass="tc-tab-selected" tooltip={{!!tooltip}}> -<$tiddler tiddler=<<save-currentTiddler>>> -<$set name="tv-wikilinks" value="no"> -<$transclude tiddler="$buttonTemplate$" mode="inline"> -<$transclude tiddler=<<currentTab>> field="caption"> -<$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/> -</$transclude> -</$transclude> -</$set></$tiddler></$button></$tiddler></$set></$list> -</div> -<div class="tc-tab-divider $class$"/> -<div class="tc-tab-content $class$"> -<$list filter="$tabsList$" variable="currentTab"> - -<$reveal type="match" state=<<qualify "$state$">> text=<<currentTab>> default="$default$" retain="""$retain$"""> - -<$transclude tiddler="$template$" mode="block"> - -<$transclude tiddler=<<currentTab>> mode="block"/> - -</$transclude> - -</$reveal> - -</$list> -</div> -</div> -\end --
\define tag-pill-styles() -background-color:$(backgroundColor)$; -fill:$(foregroundColor)$; -color:$(foregroundColor)$; -\end - -\define tag-pill-inner(tag,icon,colour,fallbackTarget,colourA,colourB,element-tag,element-attributes,actions) -<$vars foregroundColor=<<contrastcolour target:"""$colour$""" fallbackTarget:"""$fallbackTarget$""" colourA:"""$colourA$""" colourB:"""$colourB$""">> backgroundColor="""$colour$"""> -<$element-tag$ $element-attributes$ class="tc-tag-label tc-btn-invisible" style=<<tag-pill-styles>>> -$actions$<$transclude tiddler="""$icon$"""/><$view tiddler=<<__tag__>> field="title" format="text" /> -</$element-tag$> -</$vars> -\end - -\define tag-pill-body(tag,icon,colour,palette,element-tag,element-attributes,actions) -<$macrocall $name="tag-pill-inner" tag=<<__tag__>> icon="""$icon$""" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} element-tag="""$element-tag$""" element-attributes="""$element-attributes$""" actions="""$actions$"""/> -\end - -\define tag-pill(tag,element-tag:"span",element-attributes:"",actions:"") -<span class="tc-tag-list-item"> -<$macrocall $name="tag-pill-body" tag=<<__tag__>> icon={{{ [<__tag__>get[icon]] }}} colour={{{ [<__tag__>get[color]] }}} palette={{$:/palette}} element-tag="""$element-tag$""" element-attributes="""$element-attributes$""" actions="""$actions$"""/> -</span> -\end - -\define tag(tag) -{{$tag$||$:/core/ui/TagTemplate}} -\end --
\define add-tag-actions() -<$action-sendmessage $message="tm-add-tag" $param={{{ [<newTagNameTiddler>get[text]] }}}/> -<$action-deletetiddler $tiddler=<<newTagNameTiddler>>/> -\end - -\define tag-button() -<$button class="tc-btn-invisible" tag="a" tooltip={{$:/language/EditTemplate/Tags/Add/Button/Hint}}> -<$action-sendmessage $message="tm-add-tag" $param=<<tag>>/> -<$action-deletetiddler $tiddler=<<newTagNameTiddler>>/> -<$macrocall $name="tag-pill" tag=<<tag>>/> -</$button> -\end - -\define tag-picker-inner() -\whitespace trim -<div class="tc-edit-add-tag"> -<span class="tc-add-tag-name"> -<$keyboard key="ENTER" actions=<<add-tag-actions>>> -<$edit-text tiddler=<<newTagNameTiddler>> tag="input" default="" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} focusPopup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-edit-texteditor tc-popup-handle" tabindex=<<tabIndex>> focus={{{ [{$:/config/AutoFocus}match[tags]then[true]] ~[[false]] }}}/> -</$keyboard> -</span> <$button popup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-btn-invisible" tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button> <span class="tc-add-tag-button"> -<$set name="tag" value={{{ [<newTagNameTiddler>get[text]] }}}> -<$button set="$:/temp/NewTagName" setTo="" class=""> -<<add-tag-actions>> -<$action-deletetiddler $tiddler=<<newTagNameTiddler>>/> -{{$:/language/EditTemplate/Tags/Add/Button}} -</$button> -</$set> -</span> -</div> -<div class="tc-block-dropdown-wrapper"> -<$reveal state=<<qualify "$:/state/popup/tags-auto-complete">> type="nomatch" text="" default=""> -<div class="tc-block-dropdown"> -<$set name="newTagName" value={{{ [<newTagNameTiddler>get[text]] }}}> -<$list filter="[<newTagName>minlength{$:/config/Tags/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem"> -<$list filter="[tags[]!is[system]search:title<newTagName>sort[]]" variable="tag"> -<<tag-button>> -</$list></$list> -<hr> -<$list filter="[<newTagName>minlength{$:/config/Tags/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem"> -<$list filter="[tags[]is[system]search:title<newTagName>sort[]]" variable="tag"> -<<tag-button>> -</$list></$list> -</$set> -</div> -</$reveal> -</div> -\end -\define tag-picker() -\whitespace trim -<$list filter="[<newTagNameTiddler>match[]]" emptyMessage=<<tag-picker-inner>>> -<$set name="newTagNameTiddler" value=<<qualify "$:/temp/NewTagName">>> -<<tag-picker-inner>> -</$set> -</$list> -\end --
\define thumbnail(link,icon,color,background-color,image,caption,width:"280",height:"157") -<$link to="""$link$"""><div class="tc-thumbnail-wrapper"> -<div class="tc-thumbnail-image" style="width:$width$px;height:$height$px;"><$reveal type="nomatch" text="" default="""$image$""" tag="div" style="width:$width$px;height:$height$px;"> -[img[$image$]] -</$reveal><$reveal type="match" text="" default="""$image$""" tag="div" class="tc-thumbnail-background" style="width:$width$px;height:$height$px;background-color:$background-color$;"></$reveal></div><div class="tc-thumbnail-icon" style="fill:$color$;color:$color$;"> -$icon$ -</div><div class="tc-thumbnail-caption"> -$caption$ -</div> -</div></$link> -\end - -\define thumbnail-right(link,icon,color,background-color,image,caption,width:"280",height:"157") -<div class="tc-thumbnail-right-wrapper"><<thumbnail """$link$""" """$icon$""" """$color$""" """$background-color$""" """$image$""" """$caption$""" """$width$""" """$height$""">></div> -\end - -\define list-thumbnails(filter,width:"280",height:"157") -<$list filter="""$filter$"""><$macrocall $name="thumbnail" link={{!!link}} icon={{!!icon}} color={{!!color}} background-color={{!!background-color}} image={{!!image}} caption={{!!caption}} width="""$width$""" height="""$height$"""/></$list> -\end --
\define timeline-title() -\whitespace trim -<!-- Override this macro with a global macro - of the same name if you need to change - how titles are displayed on the timeline - --> -<$view field="title"/> -\end -\define timeline(limit:"100",format:"DDth MMM YYYY",subfilter:"",dateField:"modified") -<div class="tc-timeline"> -<$list filter="[!is[system]$subfilter$has[$dateField$]!sort[$dateField$]limit[$limit$]eachday[$dateField$]]"> -<div class="tc-menu-list-item"> -<$view field="$dateField$" format="date" template="$format$"/> -<$list filter="[sameday:$dateField${!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]"> -<div class="tc-menu-list-subitem"> -<$link to={{!!title}}><<timeline-title>></$link> -</div> -</$list> -</div> -</$list> -</div> -\end --
\define toc-caption() -<$set name="tv-wikilinks" value="no"> - <$transclude field="caption"> - <$view field="title"/> - </$transclude> -</$set> -\end - -\define toc-body(tag,sort:"",itemClassFilter,exclude,path) -<ol class="tc-toc"> - <$list filter="""[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]"""> - <$vars item=<<currentTiddler>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}> - <$set name="excluded" filter="""[enlist<__exclude__>] [<__tag__>]"""> - <$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item"> - <li class=<<toc-item-class>>> - <$list filter="[all[current]toc-link[no]]" emptyMessage="<$link><$view field='caption'><$view field='title'/></$view></$link>"> - <<toc-caption>> - </$list> - <$macrocall $name="toc-body" tag=<<item>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<excluded>> path=<<path>>/> - </li> - </$set> - </$set> - </$vars> - </$list> -</ol> -\end - -\define toc(tag,sort:"",itemClassFilter:"") -<$macrocall $name="toc-body" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> /> -\end - -\define toc-linked-expandable-body(tag,sort:"",itemClassFilter,exclude,path) -<!-- helper function --> -<$qualify name="toc-state" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}> - <$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item"> - <li class=<<toc-item-class>>> - <$link> - <$reveal type="nomatch" stateTitle=<<toc-state>> text="open"> - <$button setTitle=<<toc-state>> setTo="open" class="tc-btn-invisible tc-popup-keep"> - {{$:/core/images/right-arrow}} - </$button> - </$reveal> - <$reveal type="match" stateTitle=<<toc-state>> text="open"> - <$button setTitle=<<toc-state>> setTo="close" class="tc-btn-invisible tc-popup-keep"> - {{$:/core/images/down-arrow}} - </$button> - </$reveal> - <<toc-caption>> - </$link> - <$reveal type="match" stateTitle=<<toc-state>> text="open"> - <$macrocall $name="toc-expandable" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/> - </$reveal> - </li> - </$set> -</$qualify> -\end - -\define toc-unlinked-expandable-body(tag,sort:"",itemClassFilter,exclude,path) -<!-- helper function --> -<$qualify name="toc-state" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}> - <$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item"> - <li class=<<toc-item-class>>> - <$reveal type="nomatch" stateTitle=<<toc-state>> text="open"> - <$button setTitle=<<toc-state>> setTo="open" class="tc-btn-invisible tc-popup-keep"> - {{$:/core/images/right-arrow}} - <<toc-caption>> - </$button> - </$reveal> - <$reveal type="match" stateTitle=<<toc-state>> text="open"> - <$button setTitle=<<toc-state>> setTo="close" class="tc-btn-invisible tc-popup-keep"> - {{$:/core/images/down-arrow}} - <<toc-caption>> - </$button> - </$reveal> - <$reveal type="match" stateTitle=<<toc-state>> text="open"> - <$macrocall $name="toc-expandable" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/> - </$reveal> - </li> - </$set> -</$qualify> -\end - -\define toc-expandable-empty-message() -<$macrocall $name="toc-linked-expandable-body" tag=<<tag>> sort=<<sort>> itemClassFilter=<<itemClassFilter>> exclude=<<excluded>> path=<<path>>/> -\end - -\define toc-expandable(tag,sort:"",itemClassFilter:"",exclude,path) -<$vars tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}> - <$set name="excluded" filter="""[enlist<__exclude__>] [<__tag__>]"""> - <ol class="tc-toc toc-expandable"> - <$list filter="""[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]"""> - <$list filter="[all[current]toc-link[no]]" emptyMessage=<<toc-expandable-empty-message>> > - <$macrocall $name="toc-unlinked-expandable-body" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter="""itemClassFilter""" exclude=<<excluded>> path=<<path>> /> - </$list> - </$list> - </ol> - </$set> -</$vars> -\end - -\define toc-linked-selective-expandable-body(tag,sort:"",itemClassFilter,exclude,path) -<$qualify name="toc-state" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}> - <$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item" > - <li class=<<toc-item-class>>> - <$link> - <$list filter="[all[current]tagging[]$sort$limit[1]]" variable="ignore" emptyMessage="<$button class='tc-btn-invisible'>{{$:/core/images/blank}}</$button>"> - <$reveal type="nomatch" stateTitle=<<toc-state>> text="open"> - <$button setTitle=<<toc-state>> setTo="open" class="tc-btn-invisible tc-popup-keep"> - {{$:/core/images/right-arrow}} - </$button> - </$reveal> - <$reveal type="match" stateTitle=<<toc-state>> text="open"> - <$button setTitle=<<toc-state>> setTo="close" class="tc-btn-invisible tc-popup-keep"> - {{$:/core/images/down-arrow}} - </$button> - </$reveal> - </$list> - <<toc-caption>> - </$link> - <$reveal type="match" stateTitle=<<toc-state>> text="open"> - <$macrocall $name="toc-selective-expandable" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/> - </$reveal> - </li> - </$set> -</$qualify> -\end - -\define toc-unlinked-selective-expandable-body(tag,sort:"",itemClassFilter,exclude,path) -<$qualify name="toc-state" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}> - <$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item"> - <li class=<<toc-item-class>>> - <$list filter="[all[current]tagging[]$sort$limit[1]]" variable="ignore" emptyMessage="<$button class='tc-btn-invisible'>{{$:/core/images/blank}}</$button> <$view field='caption'><$view field='title'/></$view>"> - <$reveal type="nomatch" stateTitle=<<toc-state>> text="open"> - <$button setTitle=<<toc-state>> setTo="open" class="tc-btn-invisible tc-popup-keep"> - {{$:/core/images/right-arrow}} - <<toc-caption>> - </$button> - </$reveal> - <$reveal type="match" stateTitle=<<toc-state>> text="open"> - <$button setTitle=<<toc-state>> setTo="close" class="tc-btn-invisible tc-popup-keep"> - {{$:/core/images/down-arrow}} - <<toc-caption>> - </$button> - </$reveal> - </$list> - <$reveal type="match" stateTitle=<<toc-state>> text="open"> - <$macrocall $name="toc-selective-expandable" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/> - </$reveal> - </li> - </$set> -</$qualify> -\end - -\define toc-selective-expandable-empty-message() -<$macrocall $name="toc-linked-selective-expandable-body" tag=<<tag>> sort=<<sort>> itemClassFilter=<<itemClassFilter>> exclude=<<excluded>> path=<<path>>/> -\end - -\define toc-selective-expandable(tag,sort:"",itemClassFilter,exclude,path) -<$vars tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}> - <$set name="excluded" filter="""[enlist<__exclude__>] [<__tag__>]"""> - <ol class="tc-toc toc-selective-expandable"> - <$list filter="""[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]"""> - <$list filter="[all[current]toc-link[no]]" variable="ignore" emptyMessage=<<toc-selective-expandable-empty-message>> > - <$macrocall $name="toc-unlinked-selective-expandable-body" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<excluded>> path=<<path>>/> - </$list> - </$list> - </ol> - </$set> -</$vars> -\end - -\define toc-tabbed-external-nav(tag,sort:"",selectedTiddler:"$:/temp/toc/selectedTiddler",unselectedText,missingText,template:"") -<$tiddler tiddler={{{ [<__selectedTiddler__>get[text]] }}}> - <div class="tc-tabbed-table-of-contents"> - <$linkcatcher to=<<__selectedTiddler__>>> - <div class="tc-table-of-contents"> - <$macrocall $name="toc-selective-expandable" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter="[all[current]] -[<__selectedTiddler__>get[text]]"/> - </div> - </$linkcatcher> - <div class="tc-tabbed-table-of-contents-content"> - <$reveal stateTitle=<<__selectedTiddler__>> type="nomatch" text=""> - <$transclude mode="block" tiddler=<<__template__>>> - <h1><<toc-caption>></h1> - <$transclude mode="block">$missingText$</$transclude> - </$transclude> - </$reveal> - <$reveal stateTitle=<<__selectedTiddler__>> type="match" text=""> - $unselectedText$ - </$reveal> - </div> - </div> -</$tiddler> -\end - -\define toc-tabbed-internal-nav(tag,sort:"",selectedTiddler:"$:/temp/toc/selectedTiddler",unselectedText,missingText,template:"") -<$linkcatcher to=<<__selectedTiddler__>>> - <$macrocall $name="toc-tabbed-external-nav" tag=<<__tag__>> sort=<<__sort__>> selectedTiddler=<<__selectedTiddler__>> unselectedText=<<__unselectedText__>> missingText=<<__missingText__>> template=<<__template__>>/> -</$linkcatcher> -\end - --
\define translink(title,mode:"block") -<div style="border:1px solid #ccc; padding: 0.5em; background: black; foreground; white;"> -<$link to="""$title$"""> -<$text text="""$title$"""/> -</$link> -<div style="border:1px solid #ccc; padding: 0.5em; background: white; foreground; black;"> -<$transclude tiddler="""$title$""" mode="$mode$"> -"<$text text="""$title$"""/>" is missing -</$transclude> -</div> -</div> -\end --
\define leaf-link(full-title,chunk,separator: "/") -<$link to=<<__full-title__>>><$text text=<<__chunk__>>/></$link> -\end - -\define leaf-node(prefix,chunk) -<li> -<$list filter="[<__prefix__>addsuffix<__chunk__>is[shadow]] [<__prefix__>addsuffix<__chunk__>is[tiddler]]" variable="full-title"> -<$list filter="[<full-title>removeprefix<__prefix__>]" variable="chunk"> -<span>{{$:/core/images/file}}</span> <$macrocall $name="leaf-link" full-title=<<full-title>> chunk=<<chunk>>/> -</$list> -</$list> -</li> -\end - -\define branch-node(prefix,chunk,separator: "/") -<li> -<$set name="reveal-state" value={{{ [[$:/state/tree/]addsuffix<__prefix__>addsuffix<__chunk__>] }}}> -<$reveal type="nomatch" stateTitle=<<reveal-state>> text="show"> -<$button setTitle=<<reveal-state>> setTo="show" class="tc-btn-invisible"> -{{$:/core/images/folder}} <$text text=<<__chunk__>>/> -</$button> -</$reveal> -<$reveal type="match" stateTitle=<<reveal-state>> text="show"> -<$button setTitle=<<reveal-state>> setTo="hide" class="tc-btn-invisible"> -{{$:/core/images/folder}} <$text text=<<__chunk__>>/> -</$button> -</$reveal> -<span>(<$count filter="[all[shadows+tiddlers]removeprefix<__prefix__>removeprefix<__chunk__>] -[<__prefix__>addsuffix<__chunk__>]"/>)</span> -<$reveal type="match" stateTitle=<<reveal-state>> text="show"> -<$macrocall $name="tree-node" prefix={{{ [<__prefix__>addsuffix<__chunk__>] }}} separator=<<__separator__>>/> -</$reveal> -</$set> -</li> -\end - -\define tree-node(prefix,separator: "/") -<ol> -<$list filter="[all[shadows+tiddlers]removeprefix<__prefix__>splitbefore<__separator__>sort[]!suffix<__separator__>]" variable="chunk"> -<$macrocall $name="leaf-node" prefix=<<__prefix__>> chunk=<<chunk>> separator=<<__separator__>>/> -</$list> -<$list filter="[all[shadows+tiddlers]removeprefix<__prefix__>splitbefore<__separator__>sort[]suffix<__separator__>]" variable="chunk"> -<$macrocall $name="branch-node" prefix=<<__prefix__>> chunk=<<chunk>> separator=<<__separator__>>/> -</$list> -</ol> -\end - -\define tree(prefix: "$:/",separator: "/") -<div class="tc-tree"> -<span><$text text=<<__prefix__>>/></span> -<div> -<$macrocall $name="tree-node" prefix=<<__prefix__>> separator=<<__separator__>>/> -</div> -</div> -\end --
\define colour(colour) -$colour$ -\end --
/*\ -title: $:/core/modules/browser-messaging.js -type: application/javascript -module-type: startup - -Browser message handling - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Export name and synchronous status -exports.name = "browser-messaging"; -exports.platforms = ["browser"]; -exports.after = ["startup"]; -exports.synchronous = true; - -/* -Load a specified url as an iframe and call the callback when it is loaded. If the url is already loaded then the existing iframe instance is used -*/ -function loadIFrame(url,callback) { - // Check if iframe already exists - var iframeInfo = $tw.browserMessaging.iframeInfoMap[url]; - if(iframeInfo) { - // We've already got the iframe - callback(null,iframeInfo); - } else { - // Create the iframe and save it in the list - var iframe = document.createElement("iframe"); - iframeInfo = { - url: url, - status: "loading", - domNode: iframe - }; - $tw.browserMessaging.iframeInfoMap[url] = iframeInfo; - saveIFrameInfoTiddler(iframeInfo); - // Add the iframe to the DOM and hide it - iframe.style.display = "none"; - iframe.setAttribute("library","true"); - document.body.appendChild(iframe); - // Set up onload - iframe.onload = function() { - iframeInfo.status = "loaded"; - saveIFrameInfoTiddler(iframeInfo); - callback(null,iframeInfo); - }; - iframe.onerror = function() { - callback("Cannot load iframe"); - }; - try { - iframe.src = url; - } catch(ex) { - callback(ex); - } - } -} - -/* -Unload library iframe for given url -*/ -function unloadIFrame(url){ - $tw.utils.each(document.getElementsByTagName('iframe'), function(iframe) { - if(iframe.getAttribute("library") === "true" && - iframe.getAttribute("src") === url) { - iframe.parentNode.removeChild(iframe); - } - }); -} - -function saveIFrameInfoTiddler(iframeInfo) { - $tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getCreationFields(),{ - title: "$:/temp/ServerConnection/" + iframeInfo.url, - text: iframeInfo.status, - tags: ["$:/tags/ServerConnection"], - url: iframeInfo.url - },$tw.wiki.getModificationFields())); -} - -exports.startup = function() { - // Initialise the store of iframes we've created - $tw.browserMessaging = { - iframeInfoMap: {} // Hashmap by URL of {url:,status:"loading/loaded",domNode:} - }; - // Listen for widget messages to control loading the plugin library - $tw.rootWidget.addEventListener("tm-load-plugin-library",function(event) { - var paramObject = event.paramObject || {}, - url = paramObject.url; - if(url) { - loadIFrame(url,function(err,iframeInfo) { - if(err) { - alert($tw.language.getString("Error/LoadingPluginLibrary") + ": " + url); - } else { - iframeInfo.domNode.contentWindow.postMessage({ - verb: "GET", - url: "recipes/library/tiddlers.json", - cookies: { - type: "save-info", - infoTitlePrefix: paramObject.infoTitlePrefix || "$:/temp/RemoteAssetInfo/", - url: url - } - },"*"); - } - }); - } - }); - // Listen for widget messages to control unloading the plugin library - $tw.rootWidget.addEventListener("tm-unload-plugin-library",function(event) { - var paramObject = event.paramObject || {}, - url = paramObject.url; - $tw.browserMessaging.iframeInfoMap[url] = undefined; - if(url) { - unloadIFrame(url); - $tw.utils.each( - $tw.wiki.filterTiddlers("[[$:/temp/ServerConnection/" + url + "]] [prefix[$:/temp/RemoteAssetInfo/" + url + "/]]"), - function(title) { - $tw.wiki.deleteTiddler(title); - } - ); - } - }); - $tw.rootWidget.addEventListener("tm-load-plugin-from-library",function(event) { - var paramObject = event.paramObject || {}, - url = paramObject.url, - title = paramObject.title; - if(url && title) { - loadIFrame(url,function(err,iframeInfo) { - if(err) { - alert($tw.language.getString("Error/LoadingPluginLibrary") + ": " + url); - } else { - iframeInfo.domNode.contentWindow.postMessage({ - verb: "GET", - url: "recipes/library/tiddlers/" + encodeURIComponent(title) + ".json", - cookies: { - type: "save-tiddler", - url: url - } - },"*"); - } - }); - } - }); - // Listen for window messages from other windows - window.addEventListener("message",function listener(event){ - // console.log("browser-messaging: ",document.location.toString()) - // console.log("browser-messaging: Received message from",event.origin); - // console.log("browser-messaging: Message content",event.data); - switch(event.data.verb) { - case "GET-RESPONSE": - if(event.data.status.charAt(0) === "2") { - if(event.data.cookies) { - if(event.data.cookies.type === "save-info") { - var tiddlers = JSON.parse(event.data.body); - $tw.utils.each(tiddlers,function(tiddler) { - $tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getCreationFields(),tiddler,{ - title: event.data.cookies.infoTitlePrefix + event.data.cookies.url + "/" + tiddler.title, - "original-title": tiddler.title, - text: "", - type: "text/vnd.tiddlywiki", - "original-type": tiddler.type, - "plugin-type": undefined, - "original-plugin-type": tiddler["plugin-type"], - "module-type": undefined, - "original-module-type": tiddler["module-type"], - tags: ["$:/tags/RemoteAssetInfo"], - "original-tags": $tw.utils.stringifyList(tiddler.tags || []), - "server-url": event.data.cookies.url - },$tw.wiki.getModificationFields())); - }); - } else if(event.data.cookies.type === "save-tiddler") { - var tiddler = JSON.parse(event.data.body); - $tw.wiki.addTiddler(new $tw.Tiddler(tiddler)); - } - } - } - break; - } - },false); -}; - -})(); --
/*\ -title: $:/core/modules/commander.js -type: application/javascript -module-type: global - -The $tw.Commander class is a command interpreter - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Parse a sequence of commands - commandTokens: an array of command string tokens - wiki: reference to the wiki store object - streams: {output:, error:}, each of which has a write(string) method - callback: a callback invoked as callback(err) where err is null if there was no error -*/ -var Commander = function(commandTokens,callback,wiki,streams) { - var path = require("path"); - this.commandTokens = commandTokens; - this.nextToken = 0; - this.callback = callback; - this.wiki = wiki; - this.streams = streams; - this.outputPath = path.resolve($tw.boot.wikiPath,$tw.config.wikiOutputSubDir); -}; - -/* -Log a string if verbose flag is set -*/ -Commander.prototype.log = function(str) { - if(this.verbose) { - this.streams.output.write(str + "\n"); - } -}; - -/* -Write a string if verbose flag is set -*/ -Commander.prototype.write = function(str) { - if(this.verbose) { - this.streams.output.write(str); - } -}; - -/* -Add a string of tokens to the command queue -*/ -Commander.prototype.addCommandTokens = function(commandTokens) { - var params = commandTokens.slice(0); - params.unshift(0); - params.unshift(this.nextToken); - Array.prototype.splice.apply(this.commandTokens,params); -}; - -/* -Execute the sequence of commands and invoke a callback on completion -*/ -Commander.prototype.execute = function() { - this.executeNextCommand(); -}; - -/* -Execute the next command in the sequence -*/ -Commander.prototype.executeNextCommand = function() { - var self = this; - // Invoke the callback if there are no more commands - if(this.nextToken >= this.commandTokens.length) { - this.callback(null); - } else { - // Get and check the command token - var commandName = this.commandTokens[this.nextToken++]; - if(commandName.substr(0,2) !== "--") { - this.callback("Missing command: " + commandName); - } else { - commandName = commandName.substr(2); // Trim off the -- - // Accumulate the parameters to the command - var params = []; - while(this.nextToken < this.commandTokens.length && - this.commandTokens[this.nextToken].substr(0,2) !== "--") { - params.push(this.commandTokens[this.nextToken++]); - } - // Get the command info - var command = $tw.commands[commandName], - c,err; - if(!command) { - this.callback("Unknown command: " + commandName); - } else { - if(this.verbose) { - this.streams.output.write("Executing command: " + commandName + " " + params.join(" ") + "\n"); - } - // Parse named parameters if required - if(command.info.namedParameterMode) { - params = this.extractNamedParameters(params,command.info.mandatoryParameters); - if(typeof params === "string") { - return this.callback(params); - } - } - if(command.info.synchronous) { - // Synchronous command - c = new command.Command(params,this); - err = c.execute(); - if(err) { - this.callback(err); - } else { - this.executeNextCommand(); - } - } else { - // Asynchronous command - c = new command.Command(params,this,function(err) { - if(err) { - self.callback(err); - } else { - self.executeNextCommand(); - } - }); - err = c.execute(); - if(err) { - this.callback(err); - } - } - } - } - } -}; - -/* -Given an array of parameter strings `params` in name:value format, and an array of mandatory parameter names in `mandatoryParameters`, returns a hashmap of values or a string if error -*/ -Commander.prototype.extractNamedParameters = function(params,mandatoryParameters) { - mandatoryParameters = mandatoryParameters || []; - var errors = [], - paramsByName = Object.create(null); - // Extract the parameters - $tw.utils.each(params,function(param) { - var index = param.indexOf("="); - if(index < 1) { - errors.push("malformed named parameter: '" + param + "'"); - } - paramsByName[param.slice(0,index)] = $tw.utils.trim(param.slice(index+1)); - }); - // Check the mandatory parameters are present - $tw.utils.each(mandatoryParameters,function(mandatoryParameter) { - if(!$tw.utils.hop(paramsByName,mandatoryParameter)) { - errors.push("missing mandatory parameter: '" + mandatoryParameter + "'"); - } - }); - // Return any errors - if(errors.length > 0) { - return errors.join(" and\n"); - } else { - return paramsByName; - } -}; - -Commander.initCommands = function(moduleType) { - moduleType = moduleType || "command"; - $tw.commands = {}; - $tw.modules.forEachModuleOfType(moduleType,function(title,module) { - var c = $tw.commands[module.info.name] = {}; - // Add the methods defined by the module - for(var f in module) { - if($tw.utils.hop(module,f)) { - c[f] = module[f]; - } - } - }); -}; - -exports.Commander = Commander; - -})(); --
/*\ -title: $:/core/modules/commands/build.js -type: application/javascript -module-type: command - -Command to build a build target - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "build", - synchronous: true -}; - -var Command = function(params,commander) { - this.params = params; - this.commander = commander; -}; - -Command.prototype.execute = function() { - // Get the build targets defined in the wiki - var buildTargets = $tw.boot.wikiInfo.build; - if(!buildTargets) { - return "No build targets defined"; - } - // Loop through each of the specified targets - var targets; - if(this.params.length > 0) { - targets = this.params; - } else { - targets = Object.keys(buildTargets); - } - for(var targetIndex=0; targetIndex<targets.length; targetIndex++) { - var target = targets[targetIndex], - commands = buildTargets[target]; - if(!commands) { - return "Build target '" + target + "' not found"; - } - // Add the commands to the queue - this.commander.addCommandTokens(commands); - } - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/clearpassword.js -type: application/javascript -module-type: command - -Clear password for crypto operations - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "clearpassword", - synchronous: true -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - $tw.crypto.setPassword(null); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/deletetiddlers.js -type: application/javascript -module-type: command - -Command to delete tiddlers - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "deletetiddlers", - synchronous: true -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - if(this.params.length < 1) { - return "Missing filter"; - } - var self = this, - wiki = this.commander.wiki, - filter = this.params[0], - tiddlers = wiki.filterTiddlers(filter); - $tw.utils.each(tiddlers,function(title) { - wiki.deleteTiddler(title); - }); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/editions.js -type: application/javascript -module-type: command - -Command to list the available editions - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "editions", - synchronous: true -}; - -var Command = function(params,commander) { - this.params = params; - this.commander = commander; -}; - -Command.prototype.execute = function() { - var self = this; - // Output the list - this.commander.streams.output.write("Available editions:\n\n"); - var editionInfo = $tw.utils.getEditionInfo(); - $tw.utils.each(editionInfo,function(info,name) { - self.commander.streams.output.write(" " + name + ": " + info.description + "\n"); - }); - this.commander.streams.output.write("\n"); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/fetch.js -type: application/javascript -module-type: command - -Commands to fetch external tiddlers - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "fetch", - synchronous: false -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - if(this.params.length < 2) { - return "Missing subcommand and url"; - } - switch(this.params[0]) { - case "raw-file": - return this.fetchFiles({ - raw: true, - url: this.params[1], - transformFilter: this.params[2] || "", - callback: this.callback - }); - break; - case "file": - return this.fetchFiles({ - url: this.params[1], - importFilter: this.params[2], - transformFilter: this.params[3] || "", - callback: this.callback - }); - break; - case "raw-files": - return this.fetchFiles({ - raw: true, - urlFilter: this.params[1], - transformFilter: this.params[2] || "", - callback: this.callback - }); - break; - case "files": - return this.fetchFiles({ - urlFilter: this.params[1], - importFilter: this.params[2], - transformFilter: this.params[3] || "", - callback: this.callback - }); - break; - } - return null; -}; - -Command.prototype.fetchFiles = function(options) { - var self = this; - // Get the list of URLs - var urls; - if(options.url) { - urls = [options.url] - } else if(options.urlFilter) { - urls = $tw.wiki.filterTiddlers(options.urlFilter); - } else { - return "Missing URL"; - } - // Process each URL in turn - var next = 0; - var getNextFile = function(err) { - if(err) { - return options.callback(err); - } - if(next < urls.length) { - self.fetchFile(urls[next++],options,getNextFile); - } else { - options.callback(null); - } - }; - getNextFile(null); - // Success - return null; -}; - -Command.prototype.fetchFile = function(url,options,callback,redirectCount) { - if(redirectCount > 10) { - return callback("Error too many redirects retrieving " + url); - } - var self = this, - lib = url.substr(0,8) === "https://" ? require("https") : require("http"); - lib.get(url).on("response",function(response) { - var type = (response.headers["content-type"] || "").split(";")[0], - data = []; - self.commander.write("Reading " + url + ": "); - response.on("data",function(chunk) { - data.push(chunk); - self.commander.write("."); - }); - response.on("end",function() { - self.commander.write("\n"); - if(response.statusCode === 200) { - self.processBody(Buffer.concat(data),type,options,url); - callback(null); - } else { - if(response.statusCode === 302 || response.statusCode === 303 || response.statusCode === 307) { - return self.fetchFile(response.headers.location,options,callback,redirectCount + 1); - } else { - return callback("Error " + response.statusCode + " retrieving " + url) - } - } - }); - response.on("error",function(e) { - console.log("Error on GET request: " + e); - callback(e); - }); - }); - return null; -}; - -Command.prototype.processBody = function(body,type,options,url) { - var self = this; - // Collect the tiddlers in a wiki - var incomingWiki = new $tw.Wiki(); - if(options.raw) { - var typeInfo = type ? $tw.config.contentTypeInfo[type] : null, - encoding = typeInfo ? typeInfo.encoding : "utf8"; - incomingWiki.addTiddler(new $tw.Tiddler({ - title: url, - type: type, - text: body.toString(encoding) - })); - } else { - // Deserialise the file to extract the tiddlers - var tiddlers = this.commander.wiki.deserializeTiddlers(type || "text/html",body.toString("utf8"),{}); - $tw.utils.each(tiddlers,function(tiddler) { - incomingWiki.addTiddler(new $tw.Tiddler(tiddler)); - }); - } - // Filter the tiddlers to select the ones we want - var filteredTitles = incomingWiki.filterTiddlers(options.importFilter || "[all[tiddlers]]"); - // Import the selected tiddlers - var count = 0; - incomingWiki.each(function(tiddler,title) { - if(filteredTitles.indexOf(title) !== -1) { - var newTiddler; - if(options.transformFilter) { - var transformedTitle = (incomingWiki.filterTiddlers(options.transformFilter,null,self.commander.wiki.makeTiddlerIterator([title])) || [""])[0]; - if(transformedTitle) { - self.commander.log("Importing " + title + " as " + transformedTitle) - newTiddler = new $tw.Tiddler(tiddler,{title: transformedTitle}); - } - } else { - self.commander.log("Importing " + title) - newTiddler = tiddler; - } - self.commander.wiki.importTiddler(newTiddler); - count++; - } - }); - self.commander.log("Imported " + count + " tiddlers") -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/help.js -type: application/javascript -module-type: command - -Help command - -\*/ -(function(){ - -/*jshint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "help", - synchronous: true -}; - -var Command = function(params,commander) { - this.params = params; - this.commander = commander; -}; - -Command.prototype.execute = function() { - var subhelp = this.params[0] || "default", - helpBase = "$:/language/Help/", - text; - if(!this.commander.wiki.getTiddler(helpBase + subhelp)) { - subhelp = "notfound"; - } - // Wikify the help as formatted text (ie block elements generate newlines) - text = this.commander.wiki.renderTiddler("text/plain-formatted",helpBase + subhelp); - // Remove any leading linebreaks - text = text.replace(/^(\r?\n)*/g,""); - this.commander.streams.output.write(text); -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/import.js -type: application/javascript -module-type: command - -Command to import tiddlers from a file - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "import", - synchronous: true -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - var self = this, - fs = require("fs"), - path = require("path"); - if(this.params.length < 2) { - return "Missing parameters"; - } - var filename = self.params[0], - deserializer = self.params[1], - title = self.params[2] || filename, - encoding = self.params[3] || "utf8", - text = fs.readFileSync(filename,encoding), - tiddlers = this.commander.wiki.deserializeTiddlers(null,text,{title: title},{deserializer: deserializer}); - $tw.utils.each(tiddlers,function(tiddler) { - self.commander.wiki.importTiddler(new $tw.Tiddler(tiddler)); - }); - this.commander.log(tiddlers.length + " tiddler(s) imported"); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/init.js -type: application/javascript -module-type: command - -Command to initialise an empty wiki folder - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "init", - synchronous: true -}; - -var Command = function(params,commander) { - this.params = params; - this.commander = commander; -}; - -Command.prototype.execute = function() { - var fs = require("fs"), - path = require("path"); - // Check that we don't already have a valid wiki folder - if($tw.boot.wikiTiddlersPath || ($tw.utils.isDirectory($tw.boot.wikiPath) && !$tw.utils.isDirectoryEmpty($tw.boot.wikiPath))) { - return "Wiki folder is not empty"; - } - // Loop through each of the specified editions - var editions = this.params.length > 0 ? this.params : ["empty"]; - for(var editionIndex=0; editionIndex<editions.length; editionIndex++) { - var editionName = editions[editionIndex]; - // Check the edition exists - var editionPath = $tw.findLibraryItem(editionName,$tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar)); - if(!$tw.utils.isDirectory(editionPath)) { - return "Edition '" + editionName + "' not found"; - } - // Copy the edition content - var err = $tw.utils.copyDirectory(editionPath,$tw.boot.wikiPath); - if(!err) { - this.commander.streams.output.write("Copied edition '" + editionName + "' to " + $tw.boot.wikiPath + "\n"); - } else { - return err; - } - } - // Tweak the tiddlywiki.info to remove any included wikis - var packagePath = $tw.boot.wikiPath + "/tiddlywiki.info", - packageJson = JSON.parse(fs.readFileSync(packagePath)); - delete packageJson.includeWikis; - fs.writeFileSync(packagePath,JSON.stringify(packageJson,null,$tw.config.preferences.jsonSpaces)); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/listen.js -type: application/javascript -module-type: command - -Listen for HTTP requests and serve tiddlers - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Server = require("$:/core/modules/server/server.js").Server; - -exports.info = { - name: "listen", - synchronous: true, - namedParameterMode: true, - mandatoryParameters: [], -}; - -var Command = function(params,commander,callback) { - var self = this; - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - var self = this; - if(!$tw.boot.wikiTiddlersPath) { - $tw.utils.warning("Warning: Wiki folder '" + $tw.boot.wikiPath + "' does not exist or is missing a tiddlywiki.info file"); - } - // Set up server - this.server = new Server({ - wiki: this.commander.wiki, - variables: self.params - }); - var nodeServer = this.server.listen(); - $tw.hooks.invokeHook("th-server-command-post-start",this.server,nodeServer,"tiddlywiki"); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/load.js -type: application/javascript -module-type: command - -Command to load tiddlers from a file or directory - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "load", - synchronous: false -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - var self = this, - fs = require("fs"), - path = require("path"); - if(this.params.length < 1) { - return "Missing filename"; - } - var tiddlers = $tw.loadTiddlersFromPath(self.params[0]), - count = 0; - $tw.utils.each(tiddlers,function(tiddlerInfo) { - $tw.utils.each(tiddlerInfo.tiddlers,function(tiddler) { - self.commander.wiki.importTiddler(new $tw.Tiddler(tiddler)); - count++; - }); - }); - if(!count && self.params[1] !== "noerror") { - self.callback("No tiddlers found in file \"" + self.params[0] + "\""); - } else { - self.callback(null); - } - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/makelibrary.js -type: application/javascript -module-type: command - -Command to pack all of the plugins in the library into a plugin tiddler of type "library" - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "makelibrary", - synchronous: true -}; - -var UPGRADE_LIBRARY_TITLE = "$:/UpgradeLibrary"; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - var wiki = this.commander.wiki, - fs = require("fs"), - path = require("path"), - upgradeLibraryTitle = this.params[0] || UPGRADE_LIBRARY_TITLE, - tiddlers = {}; - // Collect up the library plugins - var collectPlugins = function(folder) { - var pluginFolders = fs.readdirSync(folder); - for(var p=0; p<pluginFolders.length; p++) { - if(!$tw.boot.excludeRegExp.test(pluginFolders[p])) { - pluginFields = $tw.loadPluginFolder(path.resolve(folder,"./" + pluginFolders[p])); - if(pluginFields && pluginFields.title) { - tiddlers[pluginFields.title] = pluginFields; - } - } - } - }, - collectPublisherPlugins = function(folder) { - var publisherFolders = fs.readdirSync(folder); - for(var t=0; t<publisherFolders.length; t++) { - if(!$tw.boot.excludeRegExp.test(publisherFolders[t])) { - collectPlugins(path.resolve(folder,"./" + publisherFolders[t])); - } - } - }; - $tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.pluginsPath,$tw.config.pluginsEnvVar),collectPublisherPlugins); - $tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.themesPath,$tw.config.themesEnvVar),collectPublisherPlugins); - $tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.languagesPath,$tw.config.languagesEnvVar),collectPlugins); - // Save the upgrade library tiddler - var pluginFields = { - title: upgradeLibraryTitle, - type: "application/json", - "plugin-type": "library", - "text": JSON.stringify({tiddlers: tiddlers}) - }; - wiki.addTiddler(new $tw.Tiddler(pluginFields)); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/output.js -type: application/javascript -module-type: command - -Command to set the default output location (defaults to current working directory) - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "output", - synchronous: true -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - var fs = require("fs"), - path = require("path"); - if(this.params.length < 1) { - return "Missing output path"; - } - this.commander.outputPath = path.resolve(process.cwd(),this.params[0]); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/password.js -type: application/javascript -module-type: command - -Save password for crypto operations - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "password", - synchronous: true -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - if(this.params.length < 1) { - return "Missing password"; - } - $tw.crypto.setPassword(this.params[0]); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/render.js -type: application/javascript -module-type: command - -Render individual tiddlers and save the results to the specified files - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var widget = require("$:/core/modules/widgets/widget.js"); - -exports.info = { - name: "render", - synchronous: true -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - if(this.params.length < 1) { - return "Missing tiddler filter"; - } - var self = this, - fs = require("fs"), - path = require("path"), - wiki = this.commander.wiki, - tiddlerFilter = this.params[0], - filenameFilter = this.params[1] || "[is[tiddler]addsuffix[.html]]", - type = this.params[2] || "text/html", - template = this.params[3], - varName = this.params[4], - varValue = this.params[5], - tiddlers = wiki.filterTiddlers(tiddlerFilter); - $tw.utils.each(tiddlers,function(title) { - var parser = wiki.parseTiddler(template || title), - variables = {currentTiddler: title}; - if(varName) { - variables[varName] = varValue || ""; - } - var widgetNode = wiki.makeWidget(parser,{variables: variables}), - container = $tw.fakeDocument.createElement("div"); - widgetNode.render(container,null); - var text = type === "text/html" ? container.innerHTML : container.textContent, - filepath = path.resolve(self.commander.outputPath,wiki.filterTiddlers(filenameFilter,$tw.rootWidget,wiki.makeTiddlerIterator([title]))[0]); - if(self.commander.verbose) { - console.log("Rendering \"" + title + "\" to \"" + filepath + "\""); - } - $tw.utils.createFileDirectories(filepath); - fs.writeFileSync(filepath,text,"utf8"); - }); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/rendertiddler.js -type: application/javascript -module-type: command - -Command to render a tiddler and save it to a file - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "rendertiddler", - synchronous: false -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - if(this.params.length < 2) { - return "Missing filename"; - } - var self = this, - fs = require("fs"), - path = require("path"), - title = this.params[0], - filename = path.resolve(this.commander.outputPath,this.params[1]), - type = this.params[2] || "text/html", - template = this.params[3], - name = this.params[4], - value = this.params[5], - variables = {}; - $tw.utils.createFileDirectories(filename); - if(template) { - variables.currentTiddler = title; - title = template; - } - if(name && value) { - variables[name] = value; - } - fs.writeFile(filename,this.commander.wiki.renderTiddler(type,title,{variables: variables}),"utf8",function(err) { - self.callback(err); - }); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/rendertiddlers.js -type: application/javascript -module-type: command - -Command to render several tiddlers to a folder of files - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var widget = require("$:/core/modules/widgets/widget.js"); - -exports.info = { - name: "rendertiddlers", - synchronous: true -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - if(this.params.length < 2) { - return "Missing filename"; - } - var self = this, - fs = require("fs"), - path = require("path"), - wiki = this.commander.wiki, - filter = this.params[0], - template = this.params[1], - outputPath = this.commander.outputPath, - pathname = path.resolve(outputPath,this.params[2]), - type = this.params[3] || "text/html", - extension = this.params[4] || ".html", - deleteDirectory = (this.params[5] || "").toLowerCase() !== "noclean", - tiddlers = wiki.filterTiddlers(filter); - if(deleteDirectory) { - $tw.utils.deleteDirectory(pathname); - } - $tw.utils.each(tiddlers,function(title) { - var parser = wiki.parseTiddler(template), - widgetNode = wiki.makeWidget(parser,{variables: {currentTiddler: title}}), - container = $tw.fakeDocument.createElement("div"); - widgetNode.render(container,null); - var text = type === "text/html" ? container.innerHTML : container.textContent, - exportPath = null; - if($tw.utils.hop($tw.macros,"tv-get-export-path")) { - var macroPath = $tw.macros["tv-get-export-path"].run.apply(self,[title]); - if(macroPath) { - exportPath = path.resolve(outputPath,macroPath + extension); - } - } - var finalPath = exportPath || path.resolve(pathname,encodeURIComponent(title) + extension); - $tw.utils.createFileDirectories(finalPath); - fs.writeFileSync(finalPath,text,"utf8"); - }); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/save.js -type: application/javascript -module-type: command - -Saves individual tiddlers in their raw text or binary format to the specified files - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "save", - synchronous: true -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - if(this.params.length < 1) { - return "Missing filename filter"; - } - var self = this, - fs = require("fs"), - path = require("path"), - wiki = this.commander.wiki, - tiddlerFilter = this.params[0], - filenameFilter = this.params[1] || "[is[tiddler]]", - tiddlers = wiki.filterTiddlers(tiddlerFilter); - $tw.utils.each(tiddlers,function(title) { - var tiddler = self.commander.wiki.getTiddler(title), - type = tiddler.fields.type || "text/vnd.tiddlywiki", - contentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: "utf8"}, - filepath = path.resolve(self.commander.outputPath,wiki.filterTiddlers(filenameFilter,$tw.rootWidget,wiki.makeTiddlerIterator([title]))[0]); - if(self.commander.verbose) { - console.log("Saving \"" + title + "\" to \"" + filepath + "\""); - } - $tw.utils.createFileDirectories(filepath); - fs.writeFileSync(filepath,tiddler.fields.text,contentTypeInfo.encoding); - }); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/savelibrarytiddlers.js -type: application/javascript -module-type: command - -Command to save the subtiddlers of a bundle tiddler as a series of JSON files - ---savelibrarytiddlers <tiddler> <pathname> <skinnylisting> - -The tiddler identifies the bundle tiddler that contains the subtiddlers. - -The pathname specifies the pathname to the folder in which the JSON files should be saved. The filename is the URL encoded title of the subtiddler. - -The skinnylisting specifies the title of the tiddler to which a JSON catalogue of the subtiddlers will be saved. The JSON file contains the same data as the bundle tiddler but with the `text` field removed. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "savelibrarytiddlers", - synchronous: true -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - if(this.params.length < 2) { - return "Missing filename"; - } - var self = this, - fs = require("fs"), - path = require("path"), - containerTitle = this.params[0], - filter = this.params[1], - basepath = this.params[2], - skinnyListTitle = this.params[3]; - // Get the container tiddler as data - var containerData = self.commander.wiki.getTiddlerDataCached(containerTitle,undefined); - if(!containerData) { - return "'" + containerTitle + "' is not a tiddler bundle"; - } - // Filter the list of plugins - var pluginList = []; - $tw.utils.each(containerData.tiddlers,function(tiddler,title) { - pluginList.push(title); - }); - var filteredPluginList; - if(filter) { - filteredPluginList = self.commander.wiki.filterTiddlers(filter,null,self.commander.wiki.makeTiddlerIterator(pluginList)); - } else { - filteredPluginList = pluginList; - } - // Iterate through the plugins - var skinnyList = []; - $tw.utils.each(filteredPluginList,function(title) { - var tiddler = containerData.tiddlers[title]; - // Save each JSON file and collect the skinny data - var pathname = path.resolve(self.commander.outputPath,basepath + encodeURIComponent(title) + ".json"); - $tw.utils.createFileDirectories(pathname); - fs.writeFileSync(pathname,JSON.stringify(tiddler),"utf8"); - // Collect the skinny list data - var pluginTiddlers = JSON.parse(tiddler.text), - readmeContent = (pluginTiddlers.tiddlers[title + "/readme"] || {}).text, - doesRequireReload = !!$tw.wiki.doesPluginInfoRequireReload(pluginTiddlers), - iconTiddler = pluginTiddlers.tiddlers[title + "/icon"] || {}, - iconType = iconTiddler.type, - iconText = iconTiddler.text, - iconContent; - if(iconType && iconText) { - iconContent = $tw.utils.makeDataUri(iconText,iconType); - } - skinnyList.push($tw.utils.extend({},tiddler,{ - text: undefined, - readme: readmeContent, - "requires-reload": doesRequireReload ? "yes" : "no", - icon: iconContent - })); - }); - // Save the catalogue tiddler - if(skinnyListTitle) { - self.commander.wiki.setTiddlerData(skinnyListTitle,skinnyList); - } - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/savetiddler.js -type: application/javascript -module-type: command - -Command to save the content of a tiddler to a file - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "savetiddler", - synchronous: false -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - if(this.params.length < 2) { - return "Missing filename"; - } - var self = this, - fs = require("fs"), - path = require("path"), - title = this.params[0], - filename = path.resolve(this.commander.outputPath,this.params[1]), - tiddler = this.commander.wiki.getTiddler(title); - if(tiddler) { - var type = tiddler.fields.type || "text/vnd.tiddlywiki", - contentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: "utf8"}; - $tw.utils.createFileDirectories(filename); - fs.writeFile(filename,tiddler.fields.text,contentTypeInfo.encoding,function(err) { - self.callback(err); - }); - } else { - return "Missing tiddler: " + title; - } - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/savetiddlers.js -type: application/javascript -module-type: command - -Command to save several tiddlers to a folder of files - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var widget = require("$:/core/modules/widgets/widget.js"); - -exports.info = { - name: "savetiddlers", - synchronous: true -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - if(this.params.length < 1) { - return "Missing filename"; - } - var self = this, - fs = require("fs"), - path = require("path"), - wiki = this.commander.wiki, - filter = this.params[0], - pathname = path.resolve(this.commander.outputPath,this.params[1]), - deleteDirectory = (this.params[2] || "").toLowerCase() !== "noclean", - tiddlers = wiki.filterTiddlers(filter); - if(deleteDirectory) { - $tw.utils.deleteDirectory(pathname); - } - $tw.utils.createDirectory(pathname); - $tw.utils.each(tiddlers,function(title) { - var tiddler = self.commander.wiki.getTiddler(title), - type = tiddler.fields.type || "text/vnd.tiddlywiki", - contentTypeInfo = $tw.config.contentTypeInfo[type] || {encoding: "utf8"}, - filename = path.resolve(pathname,encodeURIComponent(title)); - fs.writeFileSync(filename,tiddler.fields.text,contentTypeInfo.encoding); - }); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/savewikifolder.js -type: application/javascript -module-type: command - -Command to save the current wiki as a wiki folder - ---savewikifolder <wikifolderpath> [<filter>] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "savewikifolder", - synchronous: true -}; - -var fs,path; -if($tw.node) { - fs = require("fs"); - path = require("path"); -} - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - if(this.params.length < 1) { - return "Missing wiki folder path"; - } - var wikifoldermaker = new WikiFolderMaker(this.params[0],this.params[1],this.commander); - return wikifoldermaker.save(); -}; - -function WikiFolderMaker(wikiFolderPath,wikiFilter,commander) { - this.wikiFolderPath = wikiFolderPath; - this.wikiFilter = wikiFilter || "[all[tiddlers]]"; - this.commander = commander; - this.wiki = commander.wiki; - this.savedPaths = []; // So that we can detect filename clashes -} - -WikiFolderMaker.prototype.log = function(str) { - if(this.commander.verbose) { - console.log(str); - } -}; - -WikiFolderMaker.prototype.tiddlersToIgnore = [ - "$:/boot/boot.css", - "$:/boot/boot.js", - "$:/boot/bootprefix.js", - "$:/core", - "$:/library/sjcl.js", - "$:/temp/info-plugin" -]; - -/* -Returns null if successful, or an error string if there was an error -*/ -WikiFolderMaker.prototype.save = function() { - var self = this; - // Check that the output directory doesn't exist - if(fs.existsSync(this.wikiFolderPath) && !$tw.utils.isDirectoryEmpty(this.wikiFolderPath)) { - return "The unpackwiki command requires that the output wiki folder be empty"; - } - // Get the tiddlers from the source wiki - var tiddlerTitles = this.wiki.filterTiddlers(this.wikiFilter); - // Initialise a new tiddlwiki.info file - var newWikiInfo = {}; - // Process each incoming tiddler in turn - $tw.utils.each(tiddlerTitles,function(title) { - var tiddler = self.wiki.getTiddler(title); - if(tiddler) { - if(self.tiddlersToIgnore.indexOf(title) !== -1) { - // Ignore the core plugin and the ephemeral info plugin - self.log("Ignoring tiddler: " + title); - } else { - var type = tiddler.fields.type, - pluginType = tiddler.fields["plugin-type"]; - if(type === "application/json" && pluginType) { - // Plugin tiddler - var libraryDetails = self.findPluginInLibrary(title); - if(libraryDetails) { - // A plugin from the core library - self.log("Adding built-in plugin: " + libraryDetails.name); - newWikiInfo[libraryDetails.type] = newWikiInfo[libraryDetails.type] || []; - $tw.utils.pushTop(newWikiInfo[libraryDetails.type],libraryDetails.name); - } else { - // A custom plugin - self.log("Processing custom plugin: " + title); - self.saveCustomPlugin(tiddler); - } - } else { - // Ordinary tiddler - self.saveTiddler("tiddlers",tiddler); - } - } - } - }); - // Save the tiddlywiki.info file - this.saveJSONFile("tiddlywiki.info",newWikiInfo); - self.log("Writing tiddlywiki.info: " + JSON.stringify(newWikiInfo,null,$tw.config.preferences.jsonSpaces)); - return null; -}; - -/* -Test whether the specified tiddler is a plugin in the plugin library -*/ -WikiFolderMaker.prototype.findPluginInLibrary = function(title) { - var parts = title.split("/"), - pluginPath, type, name; - if(parts[0] === "$:") { - if(parts[1] === "languages" && parts.length === 3) { - pluginPath = "languages" + path.sep + parts[2]; - type = parts[1]; - name = parts[2]; - } else if(parts[1] === "plugins" || parts[1] === "themes" && parts.length === 4) { - pluginPath = parts[1] + path.sep + parts[2] + path.sep + parts[3]; - type = parts[1]; - name = parts[2] + "/" + parts[3]; - } - } - if(pluginPath && type && name) { - pluginPath = path.resolve($tw.boot.bootPath,"..",pluginPath); - if(fs.existsSync(pluginPath)) { - return { - pluginPath: pluginPath, - type: type, - name: name - }; - } - } - return false; -}; - -WikiFolderMaker.prototype.saveCustomPlugin = function(pluginTiddler) { - var self = this, - pluginTitle = pluginTiddler.fields.title, - titleParts = pluginTitle.split("/"), - directory = $tw.utils.generateTiddlerFilepath(titleParts[titleParts.length - 1],{ - directory: path.resolve(this.wikiFolderPath,pluginTiddler.fields["plugin-type"] + "s") - }), - pluginInfo = pluginTiddler.getFieldStrings({exclude: ["text","type"]}); - this.saveJSONFile(directory + path.sep + "plugin.info",pluginInfo); - self.log("Writing " + directory + path.sep + "plugin.info: " + JSON.stringify(pluginInfo,null,$tw.config.preferences.jsonSpaces)); - var pluginTiddlers = JSON.parse(pluginTiddler.fields.text).tiddlers; // A hashmap of tiddlers in the plugin - $tw.utils.each(pluginTiddlers,function(tiddler) { - self.saveTiddler(directory,new $tw.Tiddler(tiddler)); - }); -}; - -WikiFolderMaker.prototype.saveTiddler = function(directory,tiddler) { - var fileInfo = $tw.utils.generateTiddlerFileInfo(tiddler,{ - directory: path.resolve(this.wikiFolderPath,directory), - wiki: this.wiki - }); - $tw.utils.saveTiddlerToFileSync(tiddler,fileInfo); -}; - -WikiFolderMaker.prototype.saveJSONFile = function(filename,json) { - this.saveTextFile(filename,JSON.stringify(json,null,$tw.config.preferences.jsonSpaces)); -}; - -WikiFolderMaker.prototype.saveTextFile = function(filename,data) { - this.saveFile(filename,"utf8",data); -}; - -WikiFolderMaker.prototype.saveFile = function(filename,encoding,data) { - var filepath = path.resolve(this.wikiFolderPath,filename); - $tw.utils.createFileDirectories(filepath); - fs.writeFileSync(filepath,data,encoding); -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/server.js -type: application/javascript -module-type: command - -Deprecated legacy command for serving tiddlers - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Server = require("$:/core/modules/server/server.js").Server; - -exports.info = { - name: "server", - synchronous: true -}; - -var Command = function(params,commander,callback) { - var self = this; - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - if(!$tw.boot.wikiTiddlersPath) { - $tw.utils.warning("Warning: Wiki folder '" + $tw.boot.wikiPath + "' does not exist or is missing a tiddlywiki.info file"); - } - // Set up server - this.server = new Server({ - wiki: this.commander.wiki, - variables: { - port: this.params[0], - host: this.params[6], - "root-tiddler": this.params[1], - "root-render-type": this.params[2], - "root-serve-type": this.params[3], - username: this.params[4], - password: this.params[5], - "path-prefix": this.params[7], - "debug-level": this.params[8] - } - }); - var nodeServer = this.server.listen(); - $tw.hooks.invokeHook("th-server-command-post-start",this.server,nodeServer,"tiddlywiki"); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/setfield.js -type: application/javascript -module-type: command - -Command to modify selected tiddlers to set a field to the text of a template tiddler that has been wikified with the selected tiddler as the current tiddler. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var widget = require("$:/core/modules/widgets/widget.js"); - -exports.info = { - name: "setfield", - synchronous: true -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - if(this.params.length < 4) { - return "Missing parameters"; - } - var self = this, - wiki = this.commander.wiki, - filter = this.params[0], - fieldname = this.params[1] || "text", - templatetitle = this.params[2], - rendertype = this.params[3] || "text/plain", - tiddlers = wiki.filterTiddlers(filter); - $tw.utils.each(tiddlers,function(title) { - var parser = wiki.parseTiddler(templatetitle), - newFields = {}, - tiddler = wiki.getTiddler(title); - if(parser) { - var widgetNode = wiki.makeWidget(parser,{variables: {currentTiddler: title}}); - var container = $tw.fakeDocument.createElement("div"); - widgetNode.render(container,null); - newFields[fieldname] = rendertype === "text/html" ? container.innerHTML : container.textContent; - } else { - newFields[fieldname] = undefined; - } - wiki.addTiddler(new $tw.Tiddler(tiddler,newFields)); - }); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/unpackplugin.js -type: application/javascript -module-type: command - -Command to extract the shadow tiddlers from within a plugin - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "unpackplugin", - synchronous: true -}; - -var Command = function(params,commander,callback) { - this.params = params; - this.commander = commander; - this.callback = callback; -}; - -Command.prototype.execute = function() { - if(this.params.length < 1) { - return "Missing plugin name"; - } - var self = this, - title = this.params[0], - pluginData = this.commander.wiki.getTiddlerDataCached(title); - if(!pluginData) { - return "Plugin '" + title + "' not found"; - } - $tw.utils.each(pluginData.tiddlers,function(tiddler) { - self.commander.wiki.addTiddler(new $tw.Tiddler(tiddler)); - }); - return null; -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/verbose.js -type: application/javascript -module-type: command - -Verbose command - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "verbose", - synchronous: true -}; - -var Command = function(params,commander) { - this.params = params; - this.commander = commander; -}; - -Command.prototype.execute = function() { - this.commander.verbose = true; - // Output the boot message log - this.commander.streams.output.write("Boot log:\n " + $tw.boot.logMessages.join("\n ") + "\n"); - return null; // No error -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/commands/version.js -type: application/javascript -module-type: command - -Version command - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "version", - synchronous: true -}; - -var Command = function(params,commander) { - this.params = params; - this.commander = commander; -}; - -Command.prototype.execute = function() { - this.commander.streams.output.write($tw.version + "\n"); - return null; // No error -}; - -exports.Command = Command; - -})(); --
/*\ -title: $:/core/modules/config.js -type: application/javascript -module-type: config - -Core configuration constants - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.preferences = {}; - -exports.preferences.notificationDuration = 3 * 1000; -exports.preferences.jsonSpaces = 4; - -exports.textPrimitives = { - upperLetter: "[A-Z\u00c0-\u00d6\u00d8-\u00de\u0150\u0170]", - lowerLetter: "[a-z\u00df-\u00f6\u00f8-\u00ff\u0151\u0171]", - anyLetter: "[A-Za-z0-9\u00c0-\u00d6\u00d8-\u00de\u00df-\u00f6\u00f8-\u00ff\u0150\u0170\u0151\u0171]", - blockPrefixLetters: "[A-Za-z0-9-_\u00c0-\u00d6\u00d8-\u00de\u00df-\u00f6\u00f8-\u00ff\u0150\u0170\u0151\u0171]" -}; - -exports.textPrimitives.unWikiLink = "~"; -exports.textPrimitives.wikiLink = exports.textPrimitives.upperLetter + "+" + - exports.textPrimitives.lowerLetter + "+" + - exports.textPrimitives.upperLetter + - exports.textPrimitives.anyLetter + "*"; - -exports.htmlEntities = {quot:34, amp:38, apos:39, lt:60, gt:62, nbsp:160, iexcl:161, cent:162, pound:163, curren:164, yen:165, brvbar:166, sect:167, uml:168, copy:169, ordf:170, laquo:171, not:172, shy:173, reg:174, macr:175, deg:176, plusmn:177, sup2:178, sup3:179, acute:180, micro:181, para:182, middot:183, cedil:184, sup1:185, ordm:186, raquo:187, frac14:188, frac12:189, frac34:190, iquest:191, Agrave:192, Aacute:193, Acirc:194, Atilde:195, Auml:196, Aring:197, AElig:198, Ccedil:199, Egrave:200, Eacute:201, Ecirc:202, Euml:203, Igrave:204, Iacute:205, Icirc:206, Iuml:207, ETH:208, Ntilde:209, Ograve:210, Oacute:211, Ocirc:212, Otilde:213, Ouml:214, times:215, Oslash:216, Ugrave:217, Uacute:218, Ucirc:219, Uuml:220, Yacute:221, THORN:222, szlig:223, agrave:224, aacute:225, acirc:226, atilde:227, auml:228, aring:229, aelig:230, ccedil:231, egrave:232, eacute:233, ecirc:234, euml:235, igrave:236, iacute:237, icirc:238, iuml:239, eth:240, ntilde:241, ograve:242, oacute:243, ocirc:244, otilde:245, ouml:246, divide:247, oslash:248, ugrave:249, uacute:250, ucirc:251, uuml:252, yacute:253, thorn:254, yuml:255, OElig:338, oelig:339, Scaron:352, scaron:353, Yuml:376, fnof:402, circ:710, tilde:732, Alpha:913, Beta:914, Gamma:915, Delta:916, Epsilon:917, Zeta:918, Eta:919, Theta:920, Iota:921, Kappa:922, Lambda:923, Mu:924, Nu:925, Xi:926, Omicron:927, Pi:928, Rho:929, Sigma:931, Tau:932, Upsilon:933, Phi:934, Chi:935, Psi:936, Omega:937, alpha:945, beta:946, gamma:947, delta:948, epsilon:949, zeta:950, eta:951, theta:952, iota:953, kappa:954, lambda:955, mu:956, nu:957, xi:958, omicron:959, pi:960, rho:961, sigmaf:962, sigma:963, tau:964, upsilon:965, phi:966, chi:967, psi:968, omega:969, thetasym:977, upsih:978, piv:982, ensp:8194, emsp:8195, thinsp:8201, zwnj:8204, zwj:8205, lrm:8206, rlm:8207, ndash:8211, mdash:8212, lsquo:8216, rsquo:8217, sbquo:8218, ldquo:8220, rdquo:8221, bdquo:8222, dagger:8224, Dagger:8225, bull:8226, hellip:8230, permil:8240, prime:8242, Prime:8243, lsaquo:8249, rsaquo:8250, oline:8254, frasl:8260, euro:8364, image:8465, weierp:8472, real:8476, trade:8482, alefsym:8501, larr:8592, uarr:8593, rarr:8594, darr:8595, harr:8596, crarr:8629, lArr:8656, uArr:8657, rArr:8658, dArr:8659, hArr:8660, forall:8704, part:8706, exist:8707, empty:8709, nabla:8711, isin:8712, notin:8713, ni:8715, prod:8719, sum:8721, minus:8722, lowast:8727, radic:8730, prop:8733, infin:8734, ang:8736, and:8743, or:8744, cap:8745, cup:8746, int:8747, there4:8756, sim:8764, cong:8773, asymp:8776, ne:8800, equiv:8801, le:8804, ge:8805, sub:8834, sup:8835, nsub:8836, sube:8838, supe:8839, oplus:8853, otimes:8855, perp:8869, sdot:8901, lceil:8968, rceil:8969, lfloor:8970, rfloor:8971, lang:9001, rang:9002, loz:9674, spades:9824, clubs:9827, hearts:9829, diams:9830 }; - -exports.htmlVoidElements = "area,base,br,col,command,embed,hr,img,input,keygen,link,meta,param,source,track,wbr".split(","); - -exports.htmlBlockElements = "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".split(","); - -exports.htmlUnsafeElements = "script".split(","); - -})(); --
/*\ -title: $:/core/modules/deserializers.js -type: application/javascript -module-type: tiddlerdeserializer - -Functions to deserialise tiddlers from a block of text - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Utility function to parse an old-style tiddler DIV in a *.tid file. It looks like this: - -<div title="Title" creator="JoeBloggs" modifier="JoeBloggs" created="201102111106" modified="201102111310" tags="myTag [[my long tag]]"> -<pre>The text of the tiddler (without the expected HTML encoding). -</pre> -</div> - -Note that the field attributes are HTML encoded, but that the body of the <PRE> tag is not encoded. - -When these tiddler DIVs are encountered within a TiddlyWiki HTML file then the body is encoded in the usual way. -*/ -var parseTiddlerDiv = function(text /* [,fields] */) { - // Slot together the default results - var result = {}; - if(arguments.length > 1) { - for(var f=1; f<arguments.length; f++) { - var fields = arguments[f]; - for(var t in fields) { - result[t] = fields[t]; - } - } - } - // Parse the DIV body - var startRegExp = /^\s*<div\s+([^>]*)>(\s*<pre>)?/gi, - endRegExp, - match = startRegExp.exec(text); - if(match) { - // Old-style DIVs don't have the <pre> tag - if(match[2]) { - endRegExp = /<\/pre>\s*<\/div>\s*$/gi; - } else { - endRegExp = /<\/div>\s*$/gi; - } - var endMatch = endRegExp.exec(text); - if(endMatch) { - // Extract the text - result.text = text.substring(match.index + match[0].length,endMatch.index); - // Process the attributes - var attrRegExp = /\s*([^=\s]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/gi, - attrMatch; - do { - attrMatch = attrRegExp.exec(match[1]); - if(attrMatch) { - var name = attrMatch[1]; - var value = attrMatch[2] !== undefined ? attrMatch[2] : attrMatch[3]; - result[name] = value; - } - } while(attrMatch); - return result; - } - } - return undefined; -}; - -exports["application/x-tiddler-html-div"] = function(text,fields) { - return [parseTiddlerDiv(text,fields)]; -}; - -exports["application/json"] = function(text,fields) { - var incoming, - results = []; - try { - incoming = JSON.parse(text); - } catch(e) { - incoming = [{ - title: "JSON error: " + e, - text: "" - }] - } - if(!$tw.utils.isArray(incoming)) { - incoming = [incoming]; - } - for(var t=0; t<incoming.length; t++) { - var incomingFields = incoming[t], - fields = {}; - for(var f in incomingFields) { - if(typeof incomingFields[f] === "string") { - fields[f] = incomingFields[f]; - } - } - results.push(fields); - } - return results; -}; - -/* -Parse an HTML file into tiddlers. There are three possibilities: -# A TiddlyWiki classic HTML file containing `text/x-tiddlywiki` tiddlers -# A TiddlyWiki5 HTML file containing `text/vnd.tiddlywiki` tiddlers -# An ordinary HTML file -*/ -exports["text/html"] = function(text,fields) { - // Check if we've got a store area - var storeAreaMarkerRegExp = /<div id=["']?storeArea['"]?( style=["']?display:none;["']?)?>/gi, - match = storeAreaMarkerRegExp.exec(text); - if(match) { - // If so, it's either a classic TiddlyWiki file or an unencrypted TW5 file - // First read the normal tiddlers - var results = deserializeTiddlyWikiFile(text,storeAreaMarkerRegExp.lastIndex,!!match[1],fields); - // Then any system tiddlers - var systemAreaMarkerRegExp = /<div id=["']?systemArea['"]?( style=["']?display:none;["']?)?>/gi, - sysMatch = systemAreaMarkerRegExp.exec(text); - if(sysMatch) { - results.push.apply(results,deserializeTiddlyWikiFile(text,systemAreaMarkerRegExp.lastIndex,!!sysMatch[1],fields)); - } - return results; - } else { - // Check whether we've got an encrypted file - var encryptedStoreArea = $tw.utils.extractEncryptedStoreArea(text); - if(encryptedStoreArea) { - // If so, attempt to decrypt it using the current password - return $tw.utils.decryptStoreArea(encryptedStoreArea); - } else { - // It's not a TiddlyWiki so we'll return the entire HTML file as a tiddler - return deserializeHtmlFile(text,fields); - } - } -}; - -function deserializeHtmlFile(text,fields) { - var result = {}; - $tw.utils.each(fields,function(value,name) { - result[name] = value; - }); - result.text = text; - result.type = "text/html"; - return [result]; -} - -function deserializeTiddlyWikiFile(text,storeAreaEnd,isTiddlyWiki5,fields) { - var results = [], - endOfDivRegExp = /(<\/div>\s*)/gi, - startPos = storeAreaEnd, - defaultType = isTiddlyWiki5 ? undefined : "text/x-tiddlywiki"; - endOfDivRegExp.lastIndex = startPos; - var match = endOfDivRegExp.exec(text); - while(match) { - var endPos = endOfDivRegExp.lastIndex, - tiddlerFields = parseTiddlerDiv(text.substring(startPos,endPos),fields,{type: defaultType}); - if(!tiddlerFields) { - break; - } - $tw.utils.each(tiddlerFields,function(value,name) { - if(typeof value === "string") { - tiddlerFields[name] = $tw.utils.htmlDecode(value); - } - }); - if(tiddlerFields.text !== null) { - results.push(tiddlerFields); - } - startPos = endPos; - match = endOfDivRegExp.exec(text); - } - return results; -} - -})(); --
/*\ -title: $:/core/modules/editor/engines/framed.js -type: application/javascript -module-type: library - -Text editor engine based on a simple input or textarea within an iframe. This is done so that the selection is preserved even when clicking away from the textarea - -\*/ -(function(){ - -/*jslint node: true,browser: true */ -/*global $tw: false */ -"use strict"; - -var HEIGHT_VALUE_TITLE = "$:/config/TextEditor/EditorHeight/Height"; - -function FramedEngine(options) { - // Save our options - options = options || {}; - this.widget = options.widget; - this.value = options.value; - this.parentNode = options.parentNode; - this.nextSibling = options.nextSibling; - // Create our hidden dummy text area for reading styles - this.dummyTextArea = this.widget.document.createElement("textarea"); - if(this.widget.editClass) { - this.dummyTextArea.className = this.widget.editClass; - } - this.dummyTextArea.setAttribute("hidden","true"); - this.parentNode.insertBefore(this.dummyTextArea,this.nextSibling); - this.widget.domNodes.push(this.dummyTextArea); - // Create the iframe - this.iframeNode = this.widget.document.createElement("iframe"); - this.parentNode.insertBefore(this.iframeNode,this.nextSibling); - this.iframeDoc = this.iframeNode.contentWindow.document; - // (Firefox requires us to put some empty content in the iframe) - this.iframeDoc.open(); - this.iframeDoc.write(""); - this.iframeDoc.close(); - // Style the iframe - this.iframeNode.className = this.dummyTextArea.className; - this.iframeNode.style.border = "none"; - this.iframeNode.style.padding = "0"; - this.iframeNode.style.resize = "none"; - this.iframeNode.style["background-color"] = this.widget.wiki.extractTiddlerDataItem(this.widget.wiki.getTiddlerText("$:/palette"),"tiddler-editor-background"); - this.iframeDoc.body.style.margin = "0"; - this.iframeDoc.body.style.padding = "0"; - this.widget.domNodes.push(this.iframeNode); - // Construct the textarea or input node - var tag = this.widget.editTag; - if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) { - tag = "input"; - } - this.domNode = this.iframeDoc.createElement(tag); - // Set the text - if(this.widget.editTag === "textarea") { - this.domNode.appendChild(this.iframeDoc.createTextNode(this.value)); - } else { - this.domNode.value = this.value; - } - // Set the attributes - if(this.widget.editType) { - this.domNode.setAttribute("type",this.widget.editType); - } - if(this.widget.editPlaceholder) { - this.domNode.setAttribute("placeholder",this.widget.editPlaceholder); - } - if(this.widget.editSize) { - this.domNode.setAttribute("size",this.widget.editSize); - } - if(this.widget.editRows) { - this.domNode.setAttribute("rows",this.widget.editRows); - } - if(this.widget.editTabIndex) { - this.iframeNode.setAttribute("tabindex",this.widget.editTabIndex); - } - // Copy the styles from the dummy textarea - this.copyStyles(); - // Add event listeners - $tw.utils.addEventListeners(this.domNode,[ - {name: "click",handlerObject: this,handlerMethod: "handleClickEvent"}, - {name: "input",handlerObject: this,handlerMethod: "handleInputEvent"}, - {name: "keydown",handlerObject: this.widget,handlerMethod: "handleKeydownEvent"} - ]); - // Insert the element into the DOM - this.iframeDoc.body.appendChild(this.domNode); -} - -/* -Copy styles from the dummy text area to the textarea in the iframe -*/ -FramedEngine.prototype.copyStyles = function() { - // Copy all styles - $tw.utils.copyStyles(this.dummyTextArea,this.domNode); - // Override the ones that should not be set the same as the dummy textarea - this.domNode.style.display = "block"; - this.domNode.style.width = "100%"; - this.domNode.style.margin = "0"; - this.domNode.style["background-color"] = this.widget.wiki.extractTiddlerDataItem(this.widget.wiki.getTiddlerText("$:/palette"),"tiddler-editor-background"); - // In Chrome setting -webkit-text-fill-color overrides the placeholder text colour - this.domNode.style["-webkit-text-fill-color"] = "currentcolor"; -}; - -/* -Set the text of the engine if it doesn't currently have focus -*/ -FramedEngine.prototype.setText = function(text,type) { - if(!this.domNode.isTiddlyWikiFakeDom) { - if(this.domNode.ownerDocument.activeElement !== this.domNode) { - this.domNode.value = text; - } - // Fix the height if needed - this.fixHeight(); - } -}; - -/* -Get the text of the engine -*/ -FramedEngine.prototype.getText = function() { - return this.domNode.value; -}; - -/* -Fix the height of textarea to fit content -*/ -FramedEngine.prototype.fixHeight = function() { - // Make sure styles are updated - this.copyStyles(); - // Adjust height - if(this.widget.editTag === "textarea") { - if(this.widget.editAutoHeight) { - if(this.domNode && !this.domNode.isTiddlyWikiFakeDom) { - var newHeight = $tw.utils.resizeTextAreaToFit(this.domNode,this.widget.editMinHeight); - this.iframeNode.style.height = (newHeight + 14) + "px"; // +14 for the border on the textarea - } - } else { - var fixedHeight = parseInt(this.widget.wiki.getTiddlerText(HEIGHT_VALUE_TITLE,"400px"),10); - fixedHeight = Math.max(fixedHeight,20); - this.domNode.style.height = fixedHeight + "px"; - this.iframeNode.style.height = (fixedHeight + 14) + "px"; - } - } -}; - -/* -Focus the engine node -*/ -FramedEngine.prototype.focus = function() { - if(this.domNode.focus && this.domNode.select) { - this.domNode.focus(); - this.domNode.select(); - } -}; - -/* -Handle a click -*/ -FramedEngine.prototype.handleClickEvent = function(event) { - this.fixHeight(); - return true; -}; - -/* -Handle a dom "input" event which occurs when the text has changed -*/ -FramedEngine.prototype.handleInputEvent = function(event) { - this.widget.saveChanges(this.getText()); - this.fixHeight(); - return true; -}; - -/* -Create a blank structure representing a text operation -*/ -FramedEngine.prototype.createTextOperation = function() { - var operation = { - text: this.domNode.value, - selStart: this.domNode.selectionStart, - selEnd: this.domNode.selectionEnd, - cutStart: null, - cutEnd: null, - replacement: null, - newSelStart: null, - newSelEnd: null - }; - operation.selection = operation.text.substring(operation.selStart,operation.selEnd); - return operation; -}; - -/* -Execute a text operation -*/ -FramedEngine.prototype.executeTextOperation = function(operation) { - // Perform the required changes to the text area and the underlying tiddler - var newText = operation.text; - if(operation.replacement !== null) { - newText = operation.text.substring(0,operation.cutStart) + operation.replacement + operation.text.substring(operation.cutEnd); - // Attempt to use a execCommand to modify the value of the control - if(this.iframeDoc.queryCommandSupported("insertText") && this.iframeDoc.queryCommandSupported("delete") && !$tw.browser.isFirefox) { - this.domNode.focus(); - this.domNode.setSelectionRange(operation.cutStart,operation.cutEnd); - if(operation.replacement === "") { - this.iframeDoc.execCommand("delete",false,""); - } else { - this.iframeDoc.execCommand("insertText",false,operation.replacement); - } - } else { - this.domNode.value = newText; - } - this.domNode.focus(); - this.domNode.setSelectionRange(operation.newSelStart,operation.newSelEnd); - } - this.domNode.focus(); - return newText; -}; - -exports.FramedEngine = FramedEngine; - -})(); --
/*\ -title: $:/core/modules/editor/engines/simple.js -type: application/javascript -module-type: library - -Text editor engine based on a simple input or textarea tag - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var HEIGHT_VALUE_TITLE = "$:/config/TextEditor/EditorHeight/Height"; - -function SimpleEngine(options) { - // Save our options - options = options || {}; - this.widget = options.widget; - this.value = options.value; - this.parentNode = options.parentNode; - this.nextSibling = options.nextSibling; - // Construct the textarea or input node - var tag = this.widget.editTag; - if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) { - tag = "input"; - } - this.domNode = this.widget.document.createElement(tag); - // Set the text - if(this.widget.editTag === "textarea") { - this.domNode.appendChild(this.widget.document.createTextNode(this.value)); - } else { - this.domNode.value = this.value; - } - // Set the attributes - if(this.widget.editType) { - this.domNode.setAttribute("type",this.widget.editType); - } - if(this.widget.editPlaceholder) { - this.domNode.setAttribute("placeholder",this.widget.editPlaceholder); - } - if(this.widget.editSize) { - this.domNode.setAttribute("size",this.widget.editSize); - } - if(this.widget.editRows) { - this.domNode.setAttribute("rows",this.widget.editRows); - } - if(this.widget.editClass) { - this.domNode.className = this.widget.editClass; - } - if(this.widget.editTabIndex) { - this.domNode.setAttribute("tabindex",this.widget.editTabIndex); - } - // Add an input event handler - $tw.utils.addEventListeners(this.domNode,[ - {name: "focus", handlerObject: this, handlerMethod: "handleFocusEvent"}, - {name: "input", handlerObject: this, handlerMethod: "handleInputEvent"} - ]); - // Insert the element into the DOM - this.parentNode.insertBefore(this.domNode,this.nextSibling); - this.widget.domNodes.push(this.domNode); -} - -/* -Set the text of the engine if it doesn't currently have focus -*/ -SimpleEngine.prototype.setText = function(text,type) { - if(!this.domNode.isTiddlyWikiFakeDom) { - if(this.domNode.ownerDocument.activeElement !== this.domNode || text === "") { - this.domNode.value = text; - } - // Fix the height if needed - this.fixHeight(); - } -}; - -/* -Get the text of the engine -*/ -SimpleEngine.prototype.getText = function() { - return this.domNode.value; -}; - -/* -Fix the height of textarea to fit content -*/ -SimpleEngine.prototype.fixHeight = function() { - if(this.widget.editTag === "textarea") { - if(this.widget.editAutoHeight) { - if(this.domNode && !this.domNode.isTiddlyWikiFakeDom) { - $tw.utils.resizeTextAreaToFit(this.domNode,this.widget.editMinHeight); - } - } else { - var fixedHeight = parseInt(this.widget.wiki.getTiddlerText(HEIGHT_VALUE_TITLE,"400px"),10); - fixedHeight = Math.max(fixedHeight,20); - this.domNode.style.height = fixedHeight + "px"; - } - } -}; - -/* -Focus the engine node -*/ -SimpleEngine.prototype.focus = function() { - if(this.domNode.focus && this.domNode.select) { - this.domNode.focus(); - this.domNode.select(); - } -}; - -/* -Handle a dom "input" event which occurs when the text has changed -*/ -SimpleEngine.prototype.handleInputEvent = function(event) { - this.widget.saveChanges(this.getText()); - this.fixHeight(); - return true; -}; - -/* -Handle a dom "focus" event -*/ -SimpleEngine.prototype.handleFocusEvent = function(event) { - if(this.widget.editFocusPopup) { - $tw.popup.triggerPopup({ - domNode: this.domNode, - title: this.widget.editFocusPopup, - wiki: this.widget.wiki, - force: true - }); - } - return true; -}; - -/* -Create a blank structure representing a text operation -*/ -SimpleEngine.prototype.createTextOperation = function() { - return null; -}; - -/* -Execute a text operation -*/ -SimpleEngine.prototype.executeTextOperation = function(operation) { -}; - -exports.SimpleEngine = SimpleEngine; - -})(); --
/*\ -title: $:/core/modules/editor/factory.js -type: application/javascript -module-type: library - -Factory for constructing text editor widgets with specified engines for the toolbar and non-toolbar cases - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var DEFAULT_MIN_TEXT_AREA_HEIGHT = "100px"; // Minimum height of textareas in pixels - -// Configuration tiddlers -var HEIGHT_MODE_TITLE = "$:/config/TextEditor/EditorHeight/Mode"; -var ENABLE_TOOLBAR_TITLE = "$:/config/TextEditor/EnableToolbar"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -function editTextWidgetFactory(toolbarEngine,nonToolbarEngine) { - - var EditTextWidget = function(parseTreeNode,options) { - // Initialise the editor operations if they've not been done already - if(!this.editorOperations) { - EditTextWidget.prototype.editorOperations = {}; - $tw.modules.applyMethods("texteditoroperation",this.editorOperations); - } - this.initialise(parseTreeNode,options); - }; - - /* - Inherit from the base widget class - */ - EditTextWidget.prototype = new Widget(); - - /* - Render this widget into the DOM - */ - EditTextWidget.prototype.render = function(parent,nextSibling) { - // Save the parent dom node - this.parentDomNode = parent; - // Compute our attributes - this.computeAttributes(); - // Execute our logic - this.execute(); - // Create the wrapper for the toolbar and render its content - if(this.editShowToolbar) { - this.toolbarNode = this.document.createElement("div"); - this.toolbarNode.className = "tc-editor-toolbar"; - parent.insertBefore(this.toolbarNode,nextSibling); - this.renderChildren(this.toolbarNode,null); - this.domNodes.push(this.toolbarNode); - } - // Create our element - var editInfo = this.getEditInfo(), - Engine = this.editShowToolbar ? toolbarEngine : nonToolbarEngine; - this.engine = new Engine({ - widget: this, - value: editInfo.value, - type: editInfo.type, - parentNode: parent, - nextSibling: nextSibling - }); - // Call the postRender hook - if(this.postRender) { - this.postRender(); - } - // Fix height - this.engine.fixHeight(); - // Focus if required - if(this.editFocus === "true" || this.editFocus === "yes") { - this.engine.focus(); - } - // Add widget message listeners - this.addEventListeners([ - {type: "tm-edit-text-operation", handler: "handleEditTextOperationMessage"} - ]); - }; - - /* - Get the tiddler being edited and current value - */ - EditTextWidget.prototype.getEditInfo = function() { - // Get the edit value - var self = this, - value, - type = "text/plain", - update; - if(this.editIndex) { - value = this.wiki.extractTiddlerDataItem(this.editTitle,this.editIndex,this.editDefault); - update = function(value) { - var data = self.wiki.getTiddlerData(self.editTitle,{}); - if(data[self.editIndex] !== value) { - data[self.editIndex] = value; - self.wiki.setTiddlerData(self.editTitle,data); - } - }; - } else { - // Get the current tiddler and the field name - var tiddler = this.wiki.getTiddler(this.editTitle); - if(tiddler) { - // If we've got a tiddler, the value to display is the field string value - value = tiddler.getFieldString(this.editField); - if(this.editField === "text") { - type = tiddler.fields.type || "text/vnd.tiddlywiki"; - } - } else { - // Otherwise, we need to construct a default value for the editor - switch(this.editField) { - case "text": - value = "Type the text for the tiddler '" + this.editTitle + "'"; - type = "text/vnd.tiddlywiki"; - break; - case "title": - value = this.editTitle; - break; - default: - value = ""; - break; - } - if(this.editDefault !== undefined) { - value = this.editDefault; - } - } - update = function(value) { - var tiddler = self.wiki.getTiddler(self.editTitle), - updateFields = { - title: self.editTitle - }; - updateFields[self.editField] = value; - self.wiki.addTiddler(new $tw.Tiddler(self.wiki.getCreationFields(),tiddler,updateFields,self.wiki.getModificationFields())); - }; - } - if(this.editType) { - type = this.editType; - } - return {value: value || "", type: type, update: update}; - }; - - /* - Handle an edit text operation message from the toolbar - */ - EditTextWidget.prototype.handleEditTextOperationMessage = function(event) { - // Prepare information about the operation - var operation = this.engine.createTextOperation(); - // Invoke the handler for the selected operation - var handler = this.editorOperations[event.param]; - if(handler) { - handler.call(this,event,operation); - } - // Execute the operation via the engine - var newText = this.engine.executeTextOperation(operation); - // Fix the tiddler height and save changes - this.engine.fixHeight(); - this.saveChanges(newText); - }; - - /* - Compute the internal state of the widget - */ - EditTextWidget.prototype.execute = function() { - // Get our parameters - this.editTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler")); - this.editField = this.getAttribute("field","text"); - this.editIndex = this.getAttribute("index"); - this.editDefault = this.getAttribute("default"); - this.editClass = this.getAttribute("class"); - this.editPlaceholder = this.getAttribute("placeholder"); - this.editSize = this.getAttribute("size"); - this.editRows = this.getAttribute("rows"); - this.editAutoHeight = this.wiki.getTiddlerText(HEIGHT_MODE_TITLE,"auto"); - this.editAutoHeight = this.getAttribute("autoHeight",this.editAutoHeight === "auto" ? "yes" : "no") === "yes"; - this.editMinHeight = this.getAttribute("minHeight",DEFAULT_MIN_TEXT_AREA_HEIGHT); - this.editFocusPopup = this.getAttribute("focusPopup"); - this.editFocus = this.getAttribute("focus"); - this.editTabIndex = this.getAttribute("tabindex"); - // Get the default editor element tag and type - var tag,type; - if(this.editField === "text") { - tag = "textarea"; - } else { - tag = "input"; - var fieldModule = $tw.Tiddler.fieldModules[this.editField]; - if(fieldModule && fieldModule.editTag) { - tag = fieldModule.editTag; - } - if(fieldModule && fieldModule.editType) { - type = fieldModule.editType; - } - type = type || "text"; - } - // Get the rest of our parameters - this.editTag = this.getAttribute("tag",tag) || "input"; - this.editType = this.getAttribute("type",type); - // Make the child widgets - this.makeChildWidgets(); - // Determine whether to show the toolbar - this.editShowToolbar = this.wiki.getTiddlerText(ENABLE_TOOLBAR_TITLE,"yes"); - this.editShowToolbar = (this.editShowToolbar === "yes") && !!(this.children && this.children.length > 0) && (!this.document.isTiddlyWikiFakeDom); - }; - - /* - Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering - */ - EditTextWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - // Completely rerender if any of our attributes have changed - if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes["default"] || changedAttributes["class"] || changedAttributes.placeholder || changedAttributes.size || changedAttributes.autoHeight || changedAttributes.minHeight || changedAttributes.focusPopup || changedAttributes.rows || changedAttributes.tabindex || changedTiddlers[HEIGHT_MODE_TITLE] || changedTiddlers[ENABLE_TOOLBAR_TITLE]) { - this.refreshSelf(); - return true; - } else if(changedTiddlers[this.editTitle]) { - var editInfo = this.getEditInfo(); - this.updateEditor(editInfo.value,editInfo.type); - } - this.engine.fixHeight(); - if(this.editShowToolbar) { - return this.refreshChildren(changedTiddlers); - } else { - return false; - } - }; - - /* - Update the editor with new text. This method is separate from updateEditorDomNode() - so that subclasses can override updateEditor() and still use updateEditorDomNode() - */ - EditTextWidget.prototype.updateEditor = function(text,type) { - this.updateEditorDomNode(text,type); - }; - - /* - Update the editor dom node with new text - */ - EditTextWidget.prototype.updateEditorDomNode = function(text,type) { - this.engine.setText(text,type); - }; - - /* - Save changes back to the tiddler store - */ - EditTextWidget.prototype.saveChanges = function(text) { - var editInfo = this.getEditInfo(); - if(text !== editInfo.value) { - editInfo.update(text); - } - }; - - /* - Handle a dom "keydown" event, which we'll bubble up to our container for the keyboard widgets benefit - */ - EditTextWidget.prototype.handleKeydownEvent = function(event) { - // Check for a keyboard shortcut - if(this.toolbarNode) { - var shortcutElements = this.toolbarNode.querySelectorAll("[data-tw-keyboard-shortcut]"); - for(var index=0; index<shortcutElements.length; index++) { - var el = shortcutElements[index], - shortcutData = el.getAttribute("data-tw-keyboard-shortcut"), - keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(shortcutData,{ - wiki: this.wiki - }); - if($tw.keyboardManager.checkKeyDescriptors(event,keyInfoArray)) { - var clickEvent = this.document.createEvent("Events"); - clickEvent.initEvent("click",true,false); - el.dispatchEvent(clickEvent); - event.preventDefault(); - event.stopPropagation(); - return true; - } - } - } - // Propogate the event to the container - if(this.propogateKeydownEvent(event)) { - // Ignore the keydown if it was already handled - event.preventDefault(); - event.stopPropagation(); - return true; - } - // Otherwise, process the keydown normally - return false; - }; - - /* - Propogate keydown events to our container for the keyboard widgets benefit - */ - EditTextWidget.prototype.propogateKeydownEvent = function(event) { - var newEvent = this.document.createEventObject ? this.document.createEventObject() : this.document.createEvent("Events"); - if(newEvent.initEvent) { - newEvent.initEvent("keydown", true, true); - } - newEvent.keyCode = event.keyCode; - newEvent.which = event.which; - newEvent.metaKey = event.metaKey; - newEvent.ctrlKey = event.ctrlKey; - newEvent.altKey = event.altKey; - newEvent.shiftKey = event.shiftKey; - return !this.parentDomNode.dispatchEvent(newEvent); - }; - - return EditTextWidget; - -} - -exports.editTextWidgetFactory = editTextWidgetFactory; - -})(); --
/*\ -title: $:/core/modules/editor/operations/bitmap/clear.js -type: application/javascript -module-type: bitmapeditoroperation - -Bitmap editor operation to clear the image - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports["clear"] = function(event) { - var ctx = this.canvasDomNode.getContext("2d"); - ctx.globalAlpha = 1; - ctx.fillStyle = event.paramObject.colour || "white"; - ctx.fillRect(0,0,this.canvasDomNode.width,this.canvasDomNode.height); - // Save changes - this.strokeEnd(); -}; - -})(); --
/*\ -title: $:/core/modules/editor/operations/bitmap/resize.js -type: application/javascript -module-type: bitmapeditoroperation - -Bitmap editor operation to resize the image - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports["resize"] = function(event) { - // Get the new width - var newWidth = parseInt(event.paramObject.width || this.canvasDomNode.width,10), - newHeight = parseInt(event.paramObject.height || this.canvasDomNode.height,10); - // Update if necessary - if(newWidth > 0 && newHeight > 0 && !(newWidth === this.currCanvas.width && newHeight === this.currCanvas.height)) { - this.changeCanvasSize(newWidth,newHeight); - } - // Update the input controls - this.refreshToolbar(); - // Save the image into the tiddler - this.saveChanges(); -}; - -})(); --
/*\ -title: $:/core/modules/editor/operations/bitmap/rotate-left.js -type: application/javascript -module-type: bitmapeditoroperation - -Bitmap editor operation to rotate the image left by 90 degrees - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports["rotate-left"] = function(event) { - // Rotate the canvas left by 90 degrees - this.rotateCanvasLeft(); - // Update the input controls - this.refreshToolbar(); - // Save the image into the tiddler - this.saveChanges(); -}; - -})(); --
/*\ -title: $:/core/modules/editor/operations/text/excise.js -type: application/javascript -module-type: texteditoroperation - -Text editor operation to excise the selection to a new tiddler - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports["excise"] = function(event,operation) { - var editTiddler = this.wiki.getTiddler(this.editTitle), - editTiddlerTitle = this.editTitle; - if(editTiddler && editTiddler.fields["draft.of"]) { - editTiddlerTitle = editTiddler.fields["draft.of"]; - } - var excisionTitle = event.paramObject.title || this.wiki.generateNewTitle("New Excision"); - this.wiki.addTiddler(new $tw.Tiddler( - this.wiki.getCreationFields(), - this.wiki.getModificationFields(), - { - title: excisionTitle, - text: operation.selection, - tags: event.paramObject.tagnew === "yes" ? [editTiddlerTitle] : [] - } - )); - operation.replacement = excisionTitle; - switch(event.paramObject.type || "transclude") { - case "transclude": - operation.replacement = "{{" + operation.replacement+ "}}"; - break; - case "link": - operation.replacement = "[[" + operation.replacement+ "]]"; - break; - case "macro": - operation.replacement = "<<" + (event.paramObject.macro || "translink") + " \"\"\"" + operation.replacement + "\"\"\">>"; - break; - } - operation.cutStart = operation.selStart; - operation.cutEnd = operation.selEnd; - operation.newSelStart = operation.selStart; - operation.newSelEnd = operation.selStart + operation.replacement.length; -}; - -})(); --
/*\ -title: $:/core/modules/editor/operations/text/make-link.js -type: application/javascript -module-type: texteditoroperation - -Text editor operation to make a link - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports["make-link"] = function(event,operation) { - if(operation.selection) { - operation.replacement = "[[" + operation.selection + "|" + event.paramObject.text + "]]"; - operation.cutStart = operation.selStart; - operation.cutEnd = operation.selEnd; - } else { - operation.replacement = "[[" + event.paramObject.text + "]]"; - operation.cutStart = operation.selStart; - operation.cutEnd = operation.selEnd; - } - operation.newSelStart = operation.selStart + operation.replacement.length; - operation.newSelEnd = operation.newSelStart; -}; - -})(); --
/*\ -title: $:/core/modules/editor/operations/text/prefix-lines.js -type: application/javascript -module-type: texteditoroperation - -Text editor operation to add a prefix to the selected lines - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports["prefix-lines"] = function(event,operation) { - var targetCount = parseInt(event.paramObject.count + "",10); - // Cut just past the preceding line break, or the start of the text - operation.cutStart = $tw.utils.findPrecedingLineBreak(operation.text,operation.selStart); - // Cut to just past the following line break, or to the end of the text - operation.cutEnd = $tw.utils.findFollowingLineBreak(operation.text,operation.selEnd); - // Compose the required prefix - var prefix = $tw.utils.repeat(event.paramObject.character,targetCount); - // Process each line - var lines = operation.text.substring(operation.cutStart,operation.cutEnd).split(/\r?\n/mg); - $tw.utils.each(lines,function(line,index) { - // Remove and count any existing prefix characters - var count = 0; - while(line.charAt(0) === event.paramObject.character) { - line = line.substring(1); - count++; - } - // Remove any whitespace - while(line.charAt(0) === " ") { - line = line.substring(1); - } - // We're done if we removed the exact required prefix, otherwise add it - if(count !== targetCount) { - // Apply the prefix - line = prefix + " " + line; - } - // Save the modified line - lines[index] = line; - }); - // Stitch the replacement text together and set the selection - operation.replacement = lines.join("\n"); - if(lines.length === 1) { - operation.newSelStart = operation.cutStart + operation.replacement.length; - operation.newSelEnd = operation.newSelStart; - } else { - operation.newSelStart = operation.cutStart; - operation.newSelEnd = operation.newSelStart + operation.replacement.length; - } -}; - -})(); --
/*\ -title: $:/core/modules/editor/operations/text/replace-all.js -type: application/javascript -module-type: texteditoroperation - -Text editor operation to replace the entire text - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports["replace-all"] = function(event,operation) { - operation.cutStart = 0; - operation.cutEnd = operation.text.length; - operation.replacement = event.paramObject.text; - operation.newSelStart = 0; - operation.newSelEnd = operation.replacement.length; -}; - -})(); --
/*\ -title: $:/core/modules/editor/operations/text/replace-selection.js -type: application/javascript -module-type: texteditoroperation - -Text editor operation to replace the selection - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports["replace-selection"] = function(event,operation) { - operation.replacement = event.paramObject.text; - operation.cutStart = operation.selStart; - operation.cutEnd = operation.selEnd; - operation.newSelStart = operation.selStart; - operation.newSelEnd = operation.selStart + operation.replacement.length; -}; - -})(); --
/*\ -title: $:/core/modules/editor/operations/text/save-selection.js -type: application/javascript -module-type: texteditoroperation - -Text editor operation to save the current selection in a specified tiddler - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports["save-selection"] = function(event,operation) { - var tiddler = event.paramObject.tiddler, - field = event.paramObject.field || "text"; - if(tiddler && field) { - this.wiki.setText(tiddler,field,null,operation.text.substring(operation.selStart,operation.selEnd)); - } -}; - -})(); --
/*\ -title: $:/core/modules/editor/operations/text/wrap-lines.js -type: application/javascript -module-type: texteditoroperation - -Text editor operation to wrap the selected lines with a prefix and suffix - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports["wrap-lines"] = function(event,operation) { - // Cut just past the preceding line break, or the start of the text - operation.cutStart = $tw.utils.findPrecedingLineBreak(operation.text,operation.selStart); - // Cut to just past the following line break, or to the end of the text - operation.cutEnd = $tw.utils.findFollowingLineBreak(operation.text,operation.selEnd); - // Add the prefix and suffix - operation.replacement = event.paramObject.prefix + "\n" + - operation.text.substring(operation.cutStart,operation.cutEnd) + "\n" + - event.paramObject.suffix + "\n"; - operation.newSelStart = operation.cutStart + event.paramObject.prefix.length + 1; - operation.newSelEnd = operation.newSelStart + (operation.cutEnd - operation.cutStart); -}; - -})(); --
/*\ -title: $:/core/modules/editor/operations/text/wrap-selection.js -type: application/javascript -module-type: texteditoroperation - -Text editor operation to wrap the selection with the specified prefix and suffix - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports["wrap-selection"] = function(event,operation) { - if(operation.selStart === operation.selEnd) { - // No selection; check if we're within the prefix/suffix - if(operation.text.substring(operation.selStart - event.paramObject.prefix.length,operation.selStart + event.paramObject.suffix.length) === event.paramObject.prefix + event.paramObject.suffix) { - // Remove the prefix and suffix - operation.cutStart = operation.selStart - event.paramObject.prefix.length; - operation.cutEnd = operation.selEnd + event.paramObject.suffix.length; - operation.replacement = ""; - operation.newSelStart = operation.cutStart; - operation.newSelEnd = operation.newSelStart; - } else { - // Wrap the cursor instead - operation.cutStart = operation.selStart; - operation.cutEnd = operation.selEnd; - operation.replacement = event.paramObject.prefix + event.paramObject.suffix; - operation.newSelStart = operation.selStart + event.paramObject.prefix.length; - operation.newSelEnd = operation.newSelStart; - } - } else if(operation.text.substring(operation.selStart,operation.selStart + event.paramObject.prefix.length) === event.paramObject.prefix && operation.text.substring(operation.selEnd - event.paramObject.suffix.length,operation.selEnd) === event.paramObject.suffix) { - // Prefix and suffix are already present, so remove them - operation.cutStart = operation.selStart; - operation.cutEnd = operation.selEnd; - operation.replacement = operation.selection.substring(event.paramObject.prefix.length,operation.selection.length - event.paramObject.suffix.length); - operation.newSelStart = operation.selStart; - operation.newSelEnd = operation.selStart + operation.replacement.length; - } else { - // Add the prefix and suffix - operation.cutStart = operation.selStart; - operation.cutEnd = operation.selEnd; - operation.replacement = event.paramObject.prefix + operation.selection + event.paramObject.suffix; - operation.newSelStart = operation.selStart; - operation.newSelEnd = operation.selStart + operation.replacement.length; - } -}; - -})(); --
/*\ -title: $:/core/modules/filters.js -type: application/javascript -module-type: wikimethod - -Adds tiddler filtering methods to the $tw.Wiki object. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Parses an operation (i.e. a run) within a filter string - operators: Array of array of operator nodes into which results should be inserted - filterString: filter string - p: start position within the string -Returns the new start position, after the parsed operation -*/ -function parseFilterOperation(operators,filterString,p) { - var nextBracketPos, operator; - // Skip the starting square bracket - if(filterString.charAt(p++) !== "[") { - throw "Missing [ in filter expression"; - } - // Process each operator in turn - do { - operator = {}; - // Check for an operator prefix - if(filterString.charAt(p) === "!") { - operator.prefix = filterString.charAt(p++); - } - // Get the operator name - nextBracketPos = filterString.substring(p).search(/[\[\{<\/]/); - if(nextBracketPos === -1) { - throw "Missing [ in filter expression"; - } - nextBracketPos += p; - var bracket = filterString.charAt(nextBracketPos); - operator.operator = filterString.substring(p,nextBracketPos); - // Any suffix? - var colon = operator.operator.indexOf(':'); - if(colon > -1) { - // The raw suffix for older filters - operator.suffix = operator.operator.substring(colon + 1); - operator.operator = operator.operator.substring(0,colon) || "field"; - // The processed suffix for newer filters - operator.suffixes = []; - $tw.utils.each(operator.suffix.split(":"),function(subsuffix) { - operator.suffixes.push([]); - $tw.utils.each(subsuffix.split(","),function(entry) { - entry = $tw.utils.trim(entry); - if(entry) { - operator.suffixes[operator.suffixes.length - 1].push(entry); - } - }); - }); - } - // Empty operator means: title - else if(operator.operator === "") { - operator.operator = "title"; - } - - p = nextBracketPos + 1; - switch (bracket) { - case "{": // Curly brackets - operator.indirect = true; - nextBracketPos = filterString.indexOf("}",p); - break; - case "[": // Square brackets - nextBracketPos = filterString.indexOf("]",p); - break; - case "<": // Angle brackets - operator.variable = true; - nextBracketPos = filterString.indexOf(">",p); - break; - case "/": // regexp brackets - var rex = /^((?:[^\\\/]*|\\.)*)\/(?:\(([mygi]+)\))?/g, - rexMatch = rex.exec(filterString.substring(p)); - if(rexMatch) { - operator.regexp = new RegExp(rexMatch[1], rexMatch[2]); -// DEPRECATION WARNING -console.log("WARNING: Filter",operator.operator,"has a deprecated regexp operand",operator.regexp); - nextBracketPos = p + rex.lastIndex - 1; - } - else { - throw "Unterminated regular expression in filter expression"; - } - break; - } - - if(nextBracketPos === -1) { - throw "Missing closing bracket in filter expression"; - } - if(!operator.regexp) { - operator.operand = filterString.substring(p,nextBracketPos); - } - p = nextBracketPos + 1; - - // Push this operator - operators.push(operator); - } while(filterString.charAt(p) !== "]"); - // Skip the ending square bracket - if(filterString.charAt(p++) !== "]") { - throw "Missing ] in filter expression"; - } - // Return the parsing position - return p; -} - -/* -Parse a filter string -*/ -exports.parseFilter = function(filterString) { - filterString = filterString || ""; - var results = [], // Array of arrays of operator nodes {operator:,operand:} - p = 0, // Current position in the filter string - match; - var whitespaceRegExp = /(\s+)/mg, - operandRegExp = /((?:\+|\-|~|=)?)(?:(\[)|(?:"([^"]*)")|(?:'([^']*)')|([^\s\[\]]+))/mg; - while(p < filterString.length) { - // Skip any whitespace - whitespaceRegExp.lastIndex = p; - match = whitespaceRegExp.exec(filterString); - if(match && match.index === p) { - p = p + match[0].length; - } - // Match the start of the operation - if(p < filterString.length) { - operandRegExp.lastIndex = p; - match = operandRegExp.exec(filterString); - if(!match || match.index !== p) { - throw $tw.language.getString("Error/FilterSyntax"); - } - var operation = { - prefix: "", - operators: [] - }; - if(match[1]) { - operation.prefix = match[1]; - p++; - } - if(match[2]) { // Opening square bracket - p = parseFilterOperation(operation.operators,filterString,p); - } else { - p = match.index + match[0].length; - } - if(match[3] || match[4] || match[5]) { // Double quoted string, single quoted string or unquoted title - operation.operators.push( - {operator: "title", operand: match[3] || match[4] || match[5]} - ); - } - results.push(operation); - } - } - return results; -}; - -exports.getFilterOperators = function() { - if(!this.filterOperators) { - $tw.Wiki.prototype.filterOperators = {}; - $tw.modules.applyMethods("filteroperator",this.filterOperators); - } - return this.filterOperators; -}; - -exports.filterTiddlers = function(filterString,widget,source) { - var fn = this.compileFilter(filterString); - return fn.call(this,source,widget); -}; - -/* -Compile a filter into a function with the signature fn(source,widget) where: -source: an iterator function for the source tiddlers, called source(iterator), where iterator is called as iterator(tiddler,title) -widget: an optional widget node for retrieving the current tiddler etc. -*/ -exports.compileFilter = function(filterString) { - var filterParseTree; - try { - filterParseTree = this.parseFilter(filterString); - } catch(e) { - return function(source,widget) { - return [$tw.language.getString("Error/Filter") + ": " + e]; - }; - } - // Get the hashmap of filter operator functions - var filterOperators = this.getFilterOperators(); - // Assemble array of functions, one for each operation - var operationFunctions = []; - // Step through the operations - var self = this; - $tw.utils.each(filterParseTree,function(operation) { - // Create a function for the chain of operators in the operation - var operationSubFunction = function(source,widget) { - var accumulator = source, - results = [], - currTiddlerTitle = widget && widget.getVariable("currentTiddler"); - $tw.utils.each(operation.operators,function(operator) { - var operand = operator.operand, - operatorFunction; - if(!operator.operator) { - operatorFunction = filterOperators.title; - } else if(!filterOperators[operator.operator]) { - operatorFunction = filterOperators.field; - } else { - operatorFunction = filterOperators[operator.operator]; - } - if(operator.indirect) { - operand = self.getTextReference(operator.operand,"",currTiddlerTitle); - } - if(operator.variable) { - operand = widget.getVariable(operator.operand,{defaultValue: ""}); - } - // Invoke the appropriate filteroperator module - results = operatorFunction(accumulator,{ - operator: operator.operator, - operand: operand, - prefix: operator.prefix, - suffix: operator.suffix, - suffixes: operator.suffixes, - regexp: operator.regexp - },{ - wiki: self, - widget: widget - }); - if($tw.utils.isArray(results)) { - accumulator = self.makeTiddlerIterator(results); - } else { - accumulator = results; - } - }); - if($tw.utils.isArray(results)) { - return results; - } else { - var resultArray = []; - results(function(tiddler,title) { - resultArray.push(title); - }); - return resultArray; - } - }; - // Wrap the operator functions in a wrapper function that depends on the prefix - operationFunctions.push((function() { - switch(operation.prefix || "") { - case "": // No prefix means that the operation is unioned into the result - return function(results,source,widget) { - $tw.utils.pushTop(results,operationSubFunction(source,widget)); - }; - case "=": // The results of the operation are pushed into the result without deduplication - return function(results,source,widget) { - Array.prototype.push.apply(results,operationSubFunction(source,widget)); - }; - case "-": // The results of this operation are removed from the main result - return function(results,source,widget) { - $tw.utils.removeArrayEntries(results,operationSubFunction(source,widget)); - }; - case "+": // This operation is applied to the main results so far - return function(results,source,widget) { - // This replaces all the elements of the array, but keeps the actual array so that references to it are preserved - source = self.makeTiddlerIterator(results); - results.splice(0,results.length); - $tw.utils.pushTop(results,operationSubFunction(source,widget)); - }; - case "~": // This operation is unioned into the result only if the main result so far is empty - return function(results,source,widget) { - if(results.length === 0) { - // Main result so far is empty - $tw.utils.pushTop(results,operationSubFunction(source,widget)); - } - }; - } - })()); - }); - // Return a function that applies the operations to a source iterator of tiddler titles - return $tw.perf.measure("filter: " + filterString,function filterFunction(source,widget) { - if(!source) { - source = self.each; - } else if(typeof source === "object") { // Array or hashmap - source = self.makeTiddlerIterator(source); - } - var results = []; - $tw.utils.each(operationFunctions,function(operationFunction) { - operationFunction(results,source,widget); - }); - return results; - }); -}; - -})(); --
/*\ -title: $:/core/modules/filters/addprefix.js -type: application/javascript -module-type: filteroperator - -Filter operator for adding a prefix to each title in the list. This is -especially useful in contexts where only a filter expression is allowed -and macro substitution isn't available. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.addprefix = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push(operator.operand + title); - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/addsuffix.js -type: application/javascript -module-type: filteroperator - -Filter operator for adding a suffix to each title in the list. This is -especially useful in contexts where only a filter expression is allowed -and macro substitution isn't available. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.addsuffix = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push(title + operator.operand); - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/after.js -type: application/javascript -module-type: filteroperator - -Filter operator returning the tiddler from the current list that is after the tiddler named in the operand. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.after = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push(title); - }); - var index = results.indexOf(operator.operand); - if(index === -1 || index > (results.length - 2)) { - return []; - } else { - return [results[index + 1]]; - } -}; - -})(); --
/*\ -title: $:/core/modules/filters/all.js -type: application/javascript -module-type: filteroperator - -Filter operator for selecting tiddlers - -[all[shadows+tiddlers]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var allFilterOperators; - -function getAllFilterOperators() { - if(!allFilterOperators) { - allFilterOperators = {}; - $tw.modules.applyMethods("allfilteroperator",allFilterOperators); - } - return allFilterOperators; -} - -/* -Export our filter function -*/ -exports.all = function(source,operator,options) { - // Get our suboperators - var allFilterOperators = getAllFilterOperators(); - // Cycle through the suboperators accumulating their results - var results = [], - subops = operator.operand.split("+"); - // Check for common optimisations - if(subops.length === 1 && subops[0] === "") { - return source; - } else if(subops.length === 1 && subops[0] === "tiddlers") { - return options.wiki.each; - } else if(subops.length === 1 && subops[0] === "shadows") { - return options.wiki.eachShadow; - } else if(subops.length === 2 && subops[0] === "tiddlers" && subops[1] === "shadows") { - return options.wiki.eachTiddlerPlusShadows; - } else if(subops.length === 2 && subops[0] === "shadows" && subops[1] === "tiddlers") { - return options.wiki.eachShadowPlusTiddlers; - } - // Do it the hard way - for(var t=0; t<subops.length; t++) { - var subop = allFilterOperators[subops[t]]; - if(subop) { - $tw.utils.pushTop(results,subop(source,operator.prefix,options)); - } - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/all/current.js -type: application/javascript -module-type: allfilteroperator - -Filter function for [all[current]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.current = function(source,prefix,options) { - var currTiddlerTitle = options.widget && options.widget.getVariable("currentTiddler"); - if(currTiddlerTitle) { - return [currTiddlerTitle]; - } else { - return []; - } -}; - -})(); --
/*\ -title: $:/core/modules/filters/all/missing.js -type: application/javascript -module-type: allfilteroperator - -Filter function for [all[missing]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.missing = function(source,prefix,options) { - return options.wiki.getMissingTitles(); -}; - -})(); --
/*\ -title: $:/core/modules/filters/all/orphans.js -type: application/javascript -module-type: allfilteroperator - -Filter function for [all[orphans]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.orphans = function(source,prefix,options) { - return options.wiki.getOrphanTitles(); -}; - -})(); --
/*\ -title: $:/core/modules/filters/all/shadows.js -type: application/javascript -module-type: allfilteroperator - -Filter function for [all[shadows]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.shadows = function(source,prefix,options) { - return options.wiki.allShadowTitles(); -}; - -})(); --
/*\ -title: $:/core/modules/filters/all/tags.js -type: application/javascript -module-type: allfilteroperator - -Filter function for [all[tags]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.tags = function(source,prefix,options) { - return Object.keys(options.wiki.getTagMap()); -}; - -})(); --
/*\ -title: $:/core/modules/filters/all/tiddlers.js -type: application/javascript -module-type: allfilteroperator - -Filter function for [all[tiddlers]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.tiddlers = function(source,prefix,options) { - return options.wiki.allTitles(); -}; - -})(); --
/*\ -title: $:/core/modules/filters/backlinks.js -type: application/javascript -module-type: filteroperator - -Filter operator for returning all the backlinks from a tiddler - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.backlinks = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - $tw.utils.pushTop(results,options.wiki.getTiddlerBacklinks(title)); - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/before.js -type: application/javascript -module-type: filteroperator - -Filter operator returning the tiddler from the current list that is before the tiddler named in the operand. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.before = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push(title); - }); - var index = results.indexOf(operator.operand); - if(index <= 0) { - return []; - } else { - return [results[index - 1]]; - } -}; - -})(); --
/*\ -title: $:/core/modules/filters/commands.js -type: application/javascript -module-type: filteroperator - -Filter operator for returning the names of the commands available in this wiki - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.commands = function(source,operator,options) { - var results = []; - $tw.utils.each($tw.commands,function(commandInfo,name) { - results.push(name); - }); - results.sort(); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/compare.js -type: application/javascript -module-type: filteroperator - -General purpose comparison operator - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.compare = function(source,operator,options) { - var suffixes = operator.suffixes || [], - type = (suffixes[0] || [])[0], - mode = (suffixes[1] || [])[0], - typeFn = types[type] || types.number, - modeFn = modes[mode] || modes.eq, - invert = operator.prefix === "!", - results = []; - source(function(tiddler,title) { - if(modeFn(typeFn(title,operator.operand)) !== invert) { - results.push(title); - } - }); - return results; -}; - -var types = { - "number": function(a,b) { - return compare($tw.utils.parseNumber(a),$tw.utils.parseNumber(b)); - }, - "integer": function(a,b) { - return compare($tw.utils.parseInt(a),$tw.utils.parseInt(b)); - }, - "string": function(a,b) { - return compare("" + a,"" +b); - }, - "date": function(a,b) { - var dateA = $tw.utils.parseDate(a), - dateB = $tw.utils.parseDate(b); - if(!isFinite(dateA)) { - dateA = new Date(0); - } - if(!isFinite(dateB)) { - dateB = new Date(0); - } - return compare(dateA,dateB); - }, - "version": function(a,b) { - return $tw.utils.compareVersions(a,b); - } -}; - -function compare(a,b) { - if(a > b) { - return +1; - } else if(a < b) { - return -1; - } else { - return 0; - } -}; - -var modes = { - "eq": function(value) {return value === 0;}, - "ne": function(value) {return value !== 0;}, - "gteq": function(value) {return value >= 0;}, - "gt": function(value) {return value > 0;}, - "lteq": function(value) {return value <= 0;}, - "lt": function(value) {return value < 0;} -} - -})(); --
/*\ -title: $:/core/modules/filters/contains.js -type: application/javascript -module-type: filteroperator - -Filter operator for finding values in array fields - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.contains = function(source,operator,options) { - var results = [], - fieldname = (operator.suffix || "list").toLowerCase(); - if(operator.prefix === "!") { - source(function(tiddler,title) { - if(tiddler) { - var list = tiddler.getFieldList(fieldname); - if(list.indexOf(operator.operand) === -1) { - results.push(title); - } - } else { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(tiddler) { - var list = tiddler.getFieldList(fieldname); - if(list.indexOf(operator.operand) !== -1) { - results.push(title); - } - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/count.js -type: application/javascript -module-type: filteroperator - -Filter operator returning the number of entries in the current list. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.count = function(source,operator,options) { - var count = 0; - source(function(tiddler,title) { - count++; - }); - return [count + ""]; -}; - -})(); --
/*\ -title: $:/core/modules/filters/days.js -type: application/javascript -module-type: filteroperator - -Filter operator that selects tiddlers with a specified date field within a specified date interval. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.days = function(source,operator,options) { - var results = [], - fieldName = operator.suffix || "modified", - dayInterval = (parseInt(operator.operand,10)||0), - dayIntervalSign = $tw.utils.sign(dayInterval), - targetTimeStamp = (new Date()).setHours(0,0,0,0) + 1000*60*60*24*dayInterval, - isWithinDays = function(dateField) { - var sign = $tw.utils.sign(targetTimeStamp - (new Date(dateField)).setHours(0,0,0,0)); - return sign === 0 || sign === dayIntervalSign; - }; - - if(operator.prefix === "!") { - targetTimeStamp = targetTimeStamp - 1000*60*60*24*dayIntervalSign; - source(function(tiddler,title) { - if(tiddler && tiddler.fields[fieldName]) { - if(!isWithinDays($tw.utils.parseDate(tiddler.fields[fieldName]))) { - results.push(title); - } - } - }); - } else { - source(function(tiddler,title) { - if(tiddler && tiddler.fields[fieldName]) { - if(isWithinDays($tw.utils.parseDate(tiddler.fields[fieldName]))) { - results.push(title); - } - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/decodeuricomponent.js -type: application/javascript -module-type: filteroperator - -Filter operator for applying decodeURIComponent() to each item. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter functions -*/ - -exports.decodeuricomponent = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - var value = title; - try { - value = decodeURIComponent(title); - } catch(e) { - } - results.push(value); - }); - return results; -}; - -exports.encodeuricomponent = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push(encodeURIComponent(title)); - }); - return results; -}; - -exports.decodeuri = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - var value = title; - try { - value = decodeURI(title); - } catch(e) { - } - results.push(value); - }); - return results; -}; - -exports.encodeuri = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push(encodeURI(title)); - }); - return results; -}; - -exports.decodehtml = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push($tw.utils.htmlDecode(title)); - }); - return results; -}; - -exports.encodehtml = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push($tw.utils.htmlEncode(title)); - }); - return results; -}; - -exports.stringify = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push($tw.utils.stringify(title)); - }); - return results; -}; - -exports.jsonstringify = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push($tw.utils.jsonStringify(title)); - }); - return results; -}; - -exports.escaperegexp = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push($tw.utils.escapeRegExp(title)); - }); - return results; -}; - -exports.escapecss = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - // escape any character with a special meaning in CSS using CSS.escape() - results.push(CSS.escape(title)); - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/each.js -type: application/javascript -module-type: filteroperator - -Filter operator that selects one tiddler for each unique value of the specified field. -With suffix "list", selects all tiddlers that are values in a specified list field. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.each = function(source,operator,options) { - var results =[] , - value,values = {}, - field = operator.operand || "title"; - if(operator.suffix === "value" && field === "title") { - source(function(tiddler,title) { - if(!$tw.utils.hop(values,title)) { - values[title] = true; - results.push(title); - } - }); - } else if(operator.suffix !== "list-item") { - if(field === "title") { - source(function(tiddler,title) { - if(tiddler && !$tw.utils.hop(values,title)) { - values[title] = true; - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(tiddler) { - value = tiddler.getFieldString(field); - if(!$tw.utils.hop(values,value)) { - values[value] = true; - results.push(title); - } - } - }); - } - } else { - source(function(tiddler,title) { - if(tiddler) { - $tw.utils.each( - options.wiki.getTiddlerList(title,field), - function(value) { - if(!$tw.utils.hop(values,value)) { - values[value] = true; - results.push(value); - } - } - ); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/eachday.js -type: application/javascript -module-type: filteroperator - -Filter operator that selects one tiddler for each unique day covered by the specified date field - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.eachday = function(source,operator,options) { - var results = [], - values = [], - fieldName = operator.operand || "modified"; - // Function to convert a date/time to a date integer - var toDate = function(value) { - value = (new Date(value)).setHours(0,0,0,0); - return value+0; - }; - source(function(tiddler,title) { - if(tiddler && tiddler.fields[fieldName]) { - var value = toDate($tw.utils.parseDate(tiddler.fields[fieldName])); - if(values.indexOf(value) === -1) { - values.push(value); - results.push(title); - } - } - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/editiondescription.js -type: application/javascript -module-type: filteroperator - -Filter operator for returning the descriptions of the specified edition names - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.editiondescription = function(source,operator,options) { - var results = [], - editionInfo = $tw.utils.getEditionInfo(); - if(editionInfo) { - source(function(tiddler,title) { - if($tw.utils.hop(editionInfo,title)) { - results.push(editionInfo[title].description || ""); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/editions.js -type: application/javascript -module-type: filteroperator - -Filter operator for returning the names of the available editions in this wiki - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.editions = function(source,operator,options) { - var results = [], - editionInfo = $tw.utils.getEditionInfo(); - if(editionInfo) { - $tw.utils.each(editionInfo,function(info,name) { - results.push(name); - }); - } - results.sort(); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/else.js -type: application/javascript -module-type: filteroperator - -Filter operator for replacing an empty input list with a constant, passing a non-empty input list straight through - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.else = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push(title); - }); - if(results.length === 0) { - return [operator.operand]; - } else { - return results; - } -}; - -})(); --
/*\ -title: $:/core/modules/filters/enlist.js -type: application/javascript -module-type: filteroperator - -Filter operator returning its operand parsed as a list - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.enlist = function(source,operator,options) { - var allowDuplicates = false; - switch(operator.suffix) { - case "raw": - allowDuplicates = true; - break; - case "dedupe": - allowDuplicates = false; - break; - } - var list = $tw.utils.parseStringArray(operator.operand,allowDuplicates); - if(operator.prefix === "!") { - var results = []; - source(function(tiddler,title) { - if(list.indexOf(title) === -1) { - results.push(title); - } - }); - return results; - } else { - return list; - } -}; - -})(); --
/*\ -title: $:/core/modules/filters/field.js -type: application/javascript -module-type: filteroperator - -Filter operator for comparing fields for equality - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.field = function(source,operator,options) { - var results = [],indexedResults, - fieldname = (operator.suffix || operator.operator || "title").toLowerCase(); - if(operator.prefix === "!") { - if(operator.regexp) { - source(function(tiddler,title) { - if(tiddler) { - var text = tiddler.getFieldString(fieldname); - if(text !== null && !operator.regexp.exec(text)) { - results.push(title); - } - } else { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(tiddler) { - var text = tiddler.getFieldString(fieldname); - if(text !== null && text !== operator.operand) { - results.push(title); - } - } else { - results.push(title); - } - }); - } - } else { - if(operator.regexp) { - source(function(tiddler,title) { - if(tiddler) { - var text = tiddler.getFieldString(fieldname); - if(text !== null && !!operator.regexp.exec(text)) { - results.push(title); - } - } - }); - } else { - if(source.byField && operator.operand) { - indexedResults = source.byField(fieldname,operator.operand); - if(indexedResults) { - return indexedResults - } - } - source(function(tiddler,title) { - if(tiddler) { - var text = tiddler.getFieldString(fieldname); - if(text !== null && text === operator.operand) { - results.push(title); - } - } - }); - } - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/fields.js -type: application/javascript -module-type: filteroperator - -Filter operator for returning the names of the fields on the selected tiddlers - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.fields = function(source,operator,options) { - var results = [], - fieldName, - suffixes = (operator.suffixes || [])[0] || [], - operand = $tw.utils.parseStringArray(operator.operand); - - source(function(tiddler,title) { - if(tiddler) { - if(suffixes.indexOf("include") !== -1) { - for(fieldName in tiddler.fields) { - (operand.indexOf(fieldName) !== -1) ? $tw.utils.pushTop(results,fieldName) : ""; - } - } else if (suffixes.indexOf("exclude") !== -1) { - for(fieldName in tiddler.fields) { - (operand.indexOf(fieldName) !== -1) ? "" : $tw.utils.pushTop(results,fieldName); - } - } // else if - else { - for(fieldName in tiddler.fields) { - $tw.utils.pushTop(results,fieldName); - } - } // else - } // if (tiddler) - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/get.js -type: application/javascript -module-type: filteroperator - -Filter operator for replacing tiddler titles by the value of the field specified in the operand. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.get = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - if(tiddler) { - var value = tiddler.getFieldString(operator.operand); - if(value) { - results.push(value); - } - } - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/getindex.js -type: application/javascript -module-type: filteroperator - -returns the value at a given index of datatiddlers - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.getindex = function(source,operator,options) { - var data,title,results = []; - if(operator.operand){ - source(function(tiddler,title) { - title = tiddler ? tiddler.fields.title : title; - data = options.wiki.extractTiddlerDataItem(tiddler,operator.operand); - if(data) { - results.push(data); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/getvariable.js -type: application/javascript -module-type: filteroperator - -Filter operator for replacing input values by the value of the variable with the same name, or blank if the variable is missing - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.getvariable = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push(options.widget.getVariable(title) || ""); - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/has.js -type: application/javascript -module-type: filteroperator - -Filter operator for checking if a tiddler has the specified field or index - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.has = function(source,operator,options) { - var results = [], - invert = operator.prefix === "!"; - - if(operator.suffix === "field") { - if(invert) { - source(function(tiddler,title) { - if(!tiddler || (tiddler && (!$tw.utils.hop(tiddler.fields,operator.operand)))) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(tiddler && $tw.utils.hop(tiddler.fields,operator.operand)) { - results.push(title); - } - }); - } - } - else if(operator.suffix === "index") { - if(invert) { - source(function(tiddler,title) { - if(!tiddler || (tiddler && (!$tw.utils.hop($tw.wiki.getTiddlerDataCached(tiddler,Object.create(null)),operator.operand)))) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(tiddler && $tw.utils.hop($tw.wiki.getTiddlerDataCached(tiddler,Object.create(null)),operator.operand)) { - results.push(title); - } - }); - } - } - else { - if(invert) { - source(function(tiddler,title) { - if(!tiddler || !$tw.utils.hop(tiddler.fields,operator.operand) || (tiddler.fields[operator.operand] === "")) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(tiddler && $tw.utils.hop(tiddler.fields,operator.operand) && !(tiddler.fields[operator.operand] === "" || tiddler.fields[operator.operand].length === 0)) { - results.push(title); - } - }); - } - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/haschanged.js -type: application/javascript -module-type: filteroperator - -Filter operator returns tiddlers from the list that have a non-zero changecount. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.haschanged = function(source,operator,options) { - var results = []; - if(operator.prefix === "!") { - source(function(tiddler,title) { - if(options.wiki.getChangeCount(title) === 0) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(options.wiki.getChangeCount(title) > 0) { - results.push(title); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/indexes.js -type: application/javascript -module-type: filteroperator - -Filter operator for returning the indexes of a data tiddler - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.indexes = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - var data = options.wiki.getTiddlerDataCached(title); - if(data) { - $tw.utils.pushTop(results,Object.keys(data)); - } - }); - results.sort(); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/insertbefore.js -type: application/javascript -module-type: filteroperator - -Insert an item before another item in a list - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Order a list -*/ -exports.insertbefore = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push(title); - }); - var target = options.widget && options.widget.getVariable(operator.suffix || "currentTiddler"); - if(target !== operator.operand) { - // Remove the entry from the list if it is present - var pos = results.indexOf(operator.operand); - if(pos !== -1) { - results.splice(pos,1); - } - // Insert the entry before the target marker - pos = results.indexOf(target); - if(pos !== -1) { - results.splice(pos,0,operator.operand); - } else { - results.push(operator.operand); - } - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/is.js -type: application/javascript -module-type: filteroperator - -Filter operator for checking tiddler properties - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var isFilterOperators; - -function getIsFilterOperators() { - if(!isFilterOperators) { - isFilterOperators = {}; - $tw.modules.applyMethods("isfilteroperator",isFilterOperators); - } - return isFilterOperators; -} - -/* -Export our filter function -*/ -exports.is = function(source,operator,options) { - // Dispatch to the correct isfilteroperator - var isFilterOperators = getIsFilterOperators(); - if(operator.operand) { - var isFilterOperator = isFilterOperators[operator.operand]; - if(isFilterOperator) { - return isFilterOperator(source,operator.prefix,options); - } else { - return [$tw.language.getString("Error/IsFilterOperator")]; - } - } else { - // Return all tiddlers if the operand is missing - var results = []; - source(function(tiddler,title) { - results.push(title); - }); - return results; - } -}; - -})();-
/*\ -title: $:/core/modules/filters/is/binary.js -type: application/javascript -module-type: isfilteroperator - -Filter function for [is[binary]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.binary = function(source,prefix,options) { - var results = []; - if(prefix === "!") { - source(function(tiddler,title) { - if(!options.wiki.isBinaryTiddler(title)) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(options.wiki.isBinaryTiddler(title)) { - results.push(title); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/is/blank.js -type: application/javascript -module-type: isfilteroperator - -Filter function for [is[blank]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.blank = function(source,prefix,options) { - var results = []; - if(prefix === "!") { - source(function(tiddler,title) { - if(title) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(!title) { - results.push(title); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/is/current.js -type: application/javascript -module-type: isfilteroperator - -Filter function for [is[current]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.current = function(source,prefix,options) { - var results = [], - currTiddlerTitle = options.widget && options.widget.getVariable("currentTiddler"); - if(prefix === "!") { - source(function(tiddler,title) { - if(title !== currTiddlerTitle) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(title === currTiddlerTitle) { - results.push(title); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/is/image.js -type: application/javascript -module-type: isfilteroperator - -Filter function for [is[image]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.image = function(source,prefix,options) { - var results = []; - if(prefix === "!") { - source(function(tiddler,title) { - if(!options.wiki.isImageTiddler(title)) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(options.wiki.isImageTiddler(title)) { - results.push(title); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/is/missing.js -type: application/javascript -module-type: isfilteroperator - -Filter function for [is[missing]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.missing = function(source,prefix,options) { - var results = []; - if(prefix === "!") { - source(function(tiddler,title) { - if(options.wiki.tiddlerExists(title)) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(!options.wiki.tiddlerExists(title)) { - results.push(title); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/is/orphan.js -type: application/javascript -module-type: isfilteroperator - -Filter function for [is[orphan]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.orphan = function(source,prefix,options) { - var results = [], - orphanTitles = options.wiki.getOrphanTitles(); - if(prefix === "!") { - source(function(tiddler,title) { - if(orphanTitles.indexOf(title) === -1) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(orphanTitles.indexOf(title) !== -1) { - results.push(title); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/is/shadow.js -type: application/javascript -module-type: isfilteroperator - -Filter function for [is[shadow]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.shadow = function(source,prefix,options) { - var results = []; - if(prefix === "!") { - source(function(tiddler,title) { - if(!options.wiki.isShadowTiddler(title)) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(options.wiki.isShadowTiddler(title)) { - results.push(title); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/is/system.js -type: application/javascript -module-type: isfilteroperator - -Filter function for [is[system]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.system = function(source,prefix,options) { - var results = []; - if(prefix === "!") { - source(function(tiddler,title) { - if(!options.wiki.isSystemTiddler(title)) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(options.wiki.isSystemTiddler(title)) { - results.push(title); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/is/tag.js -type: application/javascript -module-type: isfilteroperator - -Filter function for [is[tag]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.tag = function(source,prefix,options) { - var results = [], - tagMap = options.wiki.getTagMap(); - if(prefix === "!") { - source(function(tiddler,title) { - if(!$tw.utils.hop(tagMap,title)) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if($tw.utils.hop(tagMap,title)) { - results.push(title); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/is/tiddler.js -type: application/javascript -module-type: isfilteroperator - -Filter function for [is[tiddler]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.tiddler = function(source,prefix,options) { - var results = []; - if(prefix === "!") { - source(function(tiddler,title) { - if(!options.wiki.tiddlerExists(title)) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(options.wiki.tiddlerExists(title)) { - results.push(title); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/is/variable.js -type: application/javascript -module-type: isfilteroperator - -Filter function for [is[variable]] - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.variable = function(source,prefix,options) { - var results = []; - if(prefix === "!") { - source(function(tiddler,title) { - if(!(title in options.widget.variables)) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(title in options.widget.variables) { - results.push(title); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/limit.js -type: application/javascript -module-type: filteroperator - -Filter operator for chopping the results to a specified maximum number of entries - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.limit = function(source,operator,options) { - var results = []; - // Convert to an array - source(function(tiddler,title) { - results.push(title); - }); - // Slice the array if necessary - var limit = Math.min(results.length,parseInt(operator.operand,10)); - if(operator.prefix === "!") { - results = results.slice(-limit); - } else { - results = results.slice(0,limit); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/links.js -type: application/javascript -module-type: filteroperator - -Filter operator for returning all the links from a tiddler - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.links = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - $tw.utils.pushTop(results,options.wiki.getTiddlerLinks(title)); - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/list.js -type: application/javascript -module-type: filteroperator - -Filter operator returning the tiddlers whose title is listed in the operand tiddler - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.list = function(source,operator,options) { - var results = [], - tr = $tw.utils.parseTextReference(operator.operand), - currTiddlerTitle = options.widget && options.widget.getVariable("currentTiddler"), - list = options.wiki.getTiddlerList(tr.title || currTiddlerTitle,tr.field,tr.index); - if(operator.prefix === "!") { - source(function(tiddler,title) { - if(list.indexOf(title) === -1) { - results.push(title); - } - }); - } else { - results = list; - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/listed.js -type: application/javascript -module-type: filteroperator - -Filter operator returning all tiddlers that have the selected tiddlers in a list - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.listed = function(source,operator,options) { - var field = operator.operand || "list", - results = []; - source(function(tiddler,title) { - $tw.utils.pushTop(results,options.wiki.findListingsOfTiddler(title,field)); - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/listops.js -type: application/javascript -module-type: filteroperator - -Filter operators for manipulating the current selection list - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Order a list -*/ -exports.order = function(source,operator,options) { - var results = []; - if(operator.operand.toLowerCase() === "reverse") { - source(function(tiddler,title) { - results.unshift(title); - }); - } else { - source(function(tiddler,title) { - results.push(title); - }); - } - return results; -}; - -/* -Reverse list -*/ -exports.reverse = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.unshift(title); - }); - return results; -}; - -/* -First entry/entries in list -*/ -exports.first = function(source,operator,options) { - var count = $tw.utils.getInt(operator.operand,1), - results = []; - source(function(tiddler,title) { - results.push(title); - }); - return results.slice(0,count); -}; - -/* -Last entry/entries in list -*/ -exports.last = function(source,operator,options) { - var count = $tw.utils.getInt(operator.operand,1), - results = []; - source(function(tiddler,title) { - results.push(title); - }); - return results.slice(-count); -}; - -/* -All but the first entry/entries of the list -*/ -exports.rest = function(source,operator,options) { - var count = $tw.utils.getInt(operator.operand,1), - results = []; - source(function(tiddler,title) { - results.push(title); - }); - return results.slice(count); -}; -exports.butfirst = exports.rest; -exports.bf = exports.rest; - -/* -All but the last entry/entries of the list -*/ -exports.butlast = function(source,operator,options) { - var count = $tw.utils.getInt(operator.operand,1), - results = []; - source(function(tiddler,title) { - results.push(title); - }); - return results.slice(0,-count); -}; -exports.bl = exports.butlast; - -/* -The nth member of the list -*/ -exports.nth = function(source,operator,options) { - var count = $tw.utils.getInt(operator.operand,1), - results = []; - source(function(tiddler,title) { - results.push(title); - }); - return results.slice(count - 1,count); -}; - -})(); --
/*\ -title: $:/core/modules/filters/lookup.js -type: application/javascript -module-type: filteroperator - -Filter operator that looks up values via a title prefix - -[lookup:<field>[<prefix>]] - -Prepends the prefix to the selected items and returns the specified field value - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.lookup = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push(options.wiki.getTiddlerText(operator.operand + title) || options.wiki.getTiddlerText(operator.operand + operator.suffix)); - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/match.js -type: application/javascript -module-type: filteroperator - -Filter operator for checking if a title matches a string - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.match = function(source,operator,options) { - var results = [], - suffixes = (operator.suffixes || [])[0] || []; - if(suffixes.indexOf("caseinsensitive") !== -1) { - if(operator.prefix === "!") { - source(function(tiddler,title) { - if(title.toLowerCase() !== (operator.operand || "").toLowerCase()) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(title.toLowerCase() === (operator.operand || "").toLowerCase()) { - results.push(title); - } - }); - } - } else { - if(operator.prefix === "!") { - source(function(tiddler,title) { - if(title !== operator.operand) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(title === operator.operand) { - results.push(title); - } - }); - } - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/math.js -type: application/javascript -module-type: filteroperator - -Filter operators for math. Unary/binary operators work on each item in turn, and return a new item list. - -Sum/product/maxall/minall operate on the entire list, returning a single item. - -Note that strings are converted to numbers automatically. Trailing non-digits are ignored. - -* "" converts to 0 -* "12kk" converts to 12 - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.negate = makeNumericBinaryOperator( - function(a) {return -a} -); - -exports.abs = makeNumericBinaryOperator( - function(a) {return Math.abs(a)} -); - -exports.ceil = makeNumericBinaryOperator( - function(a) {return Math.ceil(a)} -); - -exports.floor = makeNumericBinaryOperator( - function(a) {return Math.floor(a)} -); - -exports.round = makeNumericBinaryOperator( - function(a) {return Math.round(a)} -); - -exports.trunc = makeNumericBinaryOperator( - function(a) {return Math.trunc(a)} -); - -exports.untrunc = makeNumericBinaryOperator( - function(a) {return Math.ceil(Math.abs(a)) * Math.sign(a)} -); - -exports.sign = makeNumericBinaryOperator( - function(a) {return Math.sign(a)} -); - -exports.add = makeNumericBinaryOperator( - function(a,b) {return a + b;} -); - -exports.subtract = makeNumericBinaryOperator( - function(a,b) {return a - b;} -); - -exports.multiply = makeNumericBinaryOperator( - function(a,b) {return a * b;} -); - -exports.divide = makeNumericBinaryOperator( - function(a,b) {return a / b;} -); - -exports.remainder = makeNumericBinaryOperator( - function(a,b) {return a % b;} -); - -exports.max = makeNumericBinaryOperator( - function(a,b) {return Math.max(a,b);} -); - -exports.min = makeNumericBinaryOperator( - function(a,b) {return Math.min(a,b);} -); - -exports.fixed = makeNumericBinaryOperator( - function(a,b) {return Number.prototype.toFixed.call(a,Math.min(Math.max(b,0),100));} -); - -exports.precision = makeNumericBinaryOperator( - function(a,b) {return Number.prototype.toPrecision.call(a,Math.min(Math.max(b,1),100));} -); - -exports.exponential = makeNumericBinaryOperator( - function(a,b) {return Number.prototype.toExponential.call(a,Math.min(Math.max(b,0),100));} -); - -exports.sum = makeNumericReducingOperator( - function(accumulator,value) {return accumulator + value}, - 0 // Initial value -); - -exports.product = makeNumericReducingOperator( - function(accumulator,value) {return accumulator * value}, - 1 // Initial value -); - -exports.maxall = makeNumericReducingOperator( - function(accumulator,value) {return Math.max(accumulator,value)}, - -Infinity // Initial value -); - -exports.minall = makeNumericReducingOperator( - function(accumulator,value) {return Math.min(accumulator,value)}, - Infinity // Initial value -); - -function makeNumericBinaryOperator(fnCalc) { - return function(source,operator,options) { - var result = [], - numOperand = $tw.utils.parseNumber(operator.operand); - source(function(tiddler,title) { - result.push($tw.utils.stringifyNumber(fnCalc($tw.utils.parseNumber(title),numOperand))); - }); - return result; - }; -} - -function makeNumericReducingOperator(fnCalc,initialValue) { - initialValue = initialValue || 0; - return function(source,operator,options) { - var result = []; - source(function(tiddler,title) { - result.push(title); - }); - return [$tw.utils.stringifyNumber(result.reduce(function(accumulator,currentValue) { - return fnCalc(accumulator,$tw.utils.parseNumber(currentValue)); - },initialValue))]; - }; -} - -})(); --
/*\ -title: $:/core/modules/filters/minlength.js -type: application/javascript -module-type: filteroperator - -Filter operator for filtering out titles that don't meet the minimum length in the operand - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.minlength = function(source,operator,options) { - var results = [], - minLength = parseInt(operator.operand || "",10) || 0; - source(function(tiddler,title) { - if(title.length >= minLength) { - results.push(title); - } - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/modules.js -type: application/javascript -module-type: filteroperator - -Filter operator for returning the titles of the modules of a given type in this wiki - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.modules = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - $tw.utils.each($tw.modules.types[title],function(moduleInfo,moduleName) { - results.push(moduleName); - }); - }); - results.sort(); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/moduletypes.js -type: application/javascript -module-type: filteroperator - -Filter operator for returning the names of the module types in this wiki - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.moduletypes = function(source,operator,options) { - var results = []; - $tw.utils.each($tw.modules.types,function(moduleInfo,type) { - results.push(type); - }); - results.sort(); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/next.js -type: application/javascript -module-type: filteroperator - -Filter operator returning the tiddler whose title occurs next in the list supplied in the operand tiddler - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.next = function(source,operator,options) { - var results = [], - list = options.wiki.getTiddlerList(operator.operand); - source(function(tiddler,title) { - var match = list.indexOf(title); - // increment match and then test if result is in range - match++; - if(match > 0 && match < list.length) { - results.push(list[match]); - } - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/plugintiddlers.js -type: application/javascript -module-type: filteroperator - -Filter operator for returning the titles of the shadow tiddlers within a plugin - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.plugintiddlers = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - var pluginInfo = options.wiki.getPluginInfo(title) || options.wiki.getTiddlerDataCached(title,{tiddlers:[]}); - if(pluginInfo && pluginInfo.tiddlers) { - $tw.utils.each(pluginInfo.tiddlers,function(fields,title) { - results.push(title); - }); - } - }); - results.sort(); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/prefix.js -type: application/javascript -module-type: filteroperator - -Filter operator for checking if a title starts with a prefix - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.prefix = function(source,operator,options) { - var results = []; - if(operator.prefix === "!") { - source(function(tiddler,title) { - if(title.substr(0,operator.operand.length) !== operator.operand) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(title.substr(0,operator.operand.length) === operator.operand) { - results.push(title); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/previous.js -type: application/javascript -module-type: filteroperator - -Filter operator returning the tiddler whose title occurs immediately prior in the list supplied in the operand tiddler - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.previous = function(source,operator,options) { - var results = [], - list = options.wiki.getTiddlerList(operator.operand); - source(function(tiddler,title) { - var match = list.indexOf(title); - // increment match and then test if result is in range - match--; - if(match >= 0) { - results.push(list[match]); - } - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/range.js -type: application/javascript -module-type: filteroperator - -Filter operator for generating a numeric range. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.range = function(source,operator,options) { - var results = []; - // Split the operand into numbers delimited by these symbols - var parts = operator.operand.split(/[,:;]/g), - beg, end, inc, i, fixed = 0; - for (i=0; i<parts.length; i++) { - // Validate real number - if(!/^\s*[+-]?((\d+(\.\d*)?)|(\.\d+))\s*$/.test(parts[i])) { - return ["range: bad number \"" + parts[i] + "\""]; - } - // Count digits; the most precise number determines decimal places in output. - var frac = /\.\d+/.exec(parts[i]); - if(frac) { - fixed = Math.max(fixed,frac[0].length-1); - } - parts[i] = parseFloat(parts[i]); - } - switch(parts.length) { - case 1: - end = parts[0]; - if (end >= 1) { - beg = 1; - } - else if (end <= -1) { - beg = -1; - } - else { - return []; - } - inc = 1; - break; - case 2: - beg = parts[0]; - end = parts[1]; - inc = 1; - break; - case 3: - beg = parts[0]; - end = parts[1]; - inc = Math.abs(parts[2]); - break; - } - if(inc === 0) { - return ["range: increment 0 causes infinite loop"]; - } - // May need to count backwards - var direction = ((end < beg) ? -1 : 1); - inc *= direction; - // Estimate number of resulting elements - if((end - beg) / inc > 10000) { - return ["range: too many steps (over 10K)"]; - } - // Avoid rounding error on last step - end += direction * 0.5 * Math.pow(0.1,fixed); - var safety = 10010; - // Enumerate the range - if (end<beg) { - for(i=beg; i>end; i+=inc) { - results.push(i.toFixed(fixed)); - if(--safety<0) { - break; - } - } - } else { - for(i=beg; i<end; i+=inc) { - results.push(i.toFixed(fixed)); - if(--safety<0) { - break; - } - } - } - if(safety<0) { - return ["range: unexpectedly large output"]; - } - // Reverse? - if(operator.prefix === "!") { - results.reverse(); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/regexp.js -type: application/javascript -module-type: filteroperator - -Filter operator for regexp matching - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.regexp = function(source,operator,options) { - var results = [], - fieldname = (operator.suffix || "title").toLowerCase(), - regexpString, regexp, flags = "", match, - getFieldString = function(tiddler,title) { - if(tiddler) { - return tiddler.getFieldString(fieldname); - } else if(fieldname === "title") { - return title; - } else { - return null; - } - }; - // Process flags and construct regexp - regexpString = operator.operand; - match = /^\(\?([gim]+)\)/.exec(regexpString); - if(match) { - flags = match[1]; - regexpString = regexpString.substr(match[0].length); - } else { - match = /\(\?([gim]+)\)$/.exec(regexpString); - if(match) { - flags = match[1]; - regexpString = regexpString.substr(0,regexpString.length - match[0].length); - } - } - try { - regexp = new RegExp(regexpString,flags); - } catch(e) { - return ["" + e]; - } - // Process the incoming tiddlers - if(operator.prefix === "!") { - source(function(tiddler,title) { - var text = getFieldString(tiddler,title); - if(text !== null) { - if(!regexp.exec(text)) { - results.push(title); - } - } - }); - } else { - source(function(tiddler,title) { - var text = getFieldString(tiddler,title); - if(text !== null) { - if(!!regexp.exec(text)) { - results.push(title); - } - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/removeprefix.js -type: application/javascript -module-type: filteroperator - -Filter operator for removing a prefix from each title in the list. Titles that do not start with the prefix are removed. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.removeprefix = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - if(title.substr(0,operator.operand.length) === operator.operand) { - results.push(title.substr(operator.operand.length)); - } - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/removesuffix.js -type: application/javascript -module-type: filteroperator - -Filter operator for removing a suffix from each title in the list. Titles that do not end with the suffix are removed. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.removesuffix = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - if(title && title.substr(-operator.operand.length) === operator.operand) { - results.push(title.substr(0,title.length - operator.operand.length)); - } - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/sameday.js -type: application/javascript -module-type: filteroperator - -Filter operator that selects tiddlers with a modified date field on the same day as the provided value. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.sameday = function(source,operator,options) { - var results = [], - fieldName = operator.suffix || "modified", - targetDate = (new Date($tw.utils.parseDate(operator.operand))).setHours(0,0,0,0); - // Function to convert a date/time to a date integer - source(function(tiddler,title) { - if(tiddler) { - if(tiddler.getFieldDay(fieldName) === targetDate) { - results.push(title); - } - } - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/search.js -type: application/javascript -module-type: filteroperator - -Filter operator for searching for the text in the operand tiddler - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.search = function(source,operator,options) { - var invert = operator.prefix === "!"; - if(operator.suffixes) { - var hasFlag = function(flag) { - return (operator.suffixes[1] || []).indexOf(flag) !== -1; - }, - excludeFields = false, - fieldList = operator.suffixes[0] || [], - firstField = fieldList[0] || "", - firstChar = firstField.charAt(0), - fields; - if(firstChar === "-") { - fields = [firstField.slice(1)].concat(fieldList.slice(1)); - excludeFields = true; - } else if(fieldList[0] === "*"){ - fields = []; - excludeFields = true; - } else { - fields = fieldList.slice(0); - } - return options.wiki.search(operator.operand,{ - source: source, - invert: invert, - field: fields, - excludeField: excludeFields, - caseSensitive: hasFlag("casesensitive"), - literal: hasFlag("literal"), - whitespace: hasFlag("whitespace"), - anchored: hasFlag("anchored"), - regexp: hasFlag("regexp"), - words: hasFlag("words") - }); - } else { - return options.wiki.search(operator.operand,{ - source: source, - invert: invert - }); - } -}; - -})(); --
/*\ -title: $:/core/modules/filters/shadowsource.js -type: application/javascript -module-type: filteroperator - -Filter operator for returning the source plugins for shadow tiddlers - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.shadowsource = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - var source = options.wiki.getShadowSource(title); - if(source) { - $tw.utils.pushTop(results,source); - } - }); - results.sort(); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/sort.js -type: application/javascript -module-type: filteroperator - -Filter operator for sorting - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.sort = function(source,operator,options) { - var results = prepare_results(source); - options.wiki.sortTiddlers(results,operator.operand || "title",operator.prefix === "!",false,false); - return results; -}; - -exports.nsort = function(source,operator,options) { - var results = prepare_results(source); - options.wiki.sortTiddlers(results,operator.operand || "title",operator.prefix === "!",false,true); - return results; -}; - -exports.sortan = function(source, operator, options) { - var results = prepare_results(source); - options.wiki.sortTiddlers(results, operator.operand || "title", operator.prefix === "!",false,false,true); - return results; -}; - -exports.sortcs = function(source,operator,options) { - var results = prepare_results(source); - options.wiki.sortTiddlers(results,operator.operand || "title",operator.prefix === "!",true,false); - return results; -}; - -exports.nsortcs = function(source,operator,options) { - var results = prepare_results(source); - options.wiki.sortTiddlers(results,operator.operand || "title",operator.prefix === "!",true,true); - return results; -}; - -var prepare_results = function (source) { - var results = []; - source(function(tiddler,title) { - results.push(title); - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/splitbefore.js -type: application/javascript -module-type: filteroperator - -Filter operator that splits each result on the first occurance of the specified separator and returns the unique values. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.splitbefore = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - var parts = title.split(operator.operand); - if(parts.length === 1) { - $tw.utils.pushTop(results,parts[0]); - } else { - $tw.utils.pushTop(results,parts[0] + operator.operand); - } - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/storyviews.js -type: application/javascript -module-type: filteroperator - -Filter operator for returning the names of the story views in this wiki - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.storyviews = function(source,operator,options) { - var results = [], - storyviews = {}; - $tw.modules.applyMethods("storyview",storyviews); - $tw.utils.each(storyviews,function(info,name) { - results.push(name); - }); - results.sort(); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/strings.js -type: application/javascript -module-type: filteroperator - -Filter operators for strings. Unary/binary operators work on each item in turn, and return a new item list. - -Sum/product/maxall/minall operate on the entire list, returning a single item. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.length = makeStringBinaryOperator( - function(a) {return ["" + ("" + a).length];} -); - -exports.uppercase = makeStringBinaryOperator( - function(a) {return [("" + a).toUpperCase()];} -); - -exports.lowercase = makeStringBinaryOperator( - function(a) {return [("" + a).toLowerCase()];} -); - -exports.sentencecase = makeStringBinaryOperator( - function(a) {return [$tw.utils.toSentenceCase(a)];} -); - -exports.titlecase = makeStringBinaryOperator( - function(a) {return [$tw.utils.toTitleCase(a)];} -); - -exports.trim = makeStringBinaryOperator( - function(a) {return [$tw.utils.trim(a)];} -); - -exports.split = makeStringBinaryOperator( - function(a,b) {return ("" + a).split(b);} -); - -exports.join = makeStringReducingOperator( - function(accumulator,value,operand) { - if(accumulator === null) { - return value; - } else { - return accumulator + operand + value; - } - },null -); - -function makeStringBinaryOperator(fnCalc) { - return function(source,operator,options) { - var result = []; - source(function(tiddler,title) { - Array.prototype.push.apply(result,fnCalc(title,operator.operand || "")); - }); - return result; - }; -} - -function makeStringReducingOperator(fnCalc,initialValue) { - return function(source,operator,options) { - var result = []; - source(function(tiddler,title) { - result.push(title); - }); - return [result.reduce(function(accumulator,currentValue) { - return fnCalc(accumulator,currentValue,operator.operand || ""); - },initialValue) || ""]; - }; -} - -exports.splitregexp = function(source,operator,options) { - var result = [], - suffix = operator.suffix || "", - flags = (suffix.indexOf("m") !== -1 ? "m" : "") + (suffix.indexOf("i") !== -1 ? "i" : ""), - regExp; - try { - regExp = new RegExp(operator.operand || "",flags); - } catch(ex) { - return ["RegExp error: " + ex]; - } - source(function(tiddler,title) { - Array.prototype.push.apply(result,title.split(regExp)); - }); - return result; -}; - -})(); --
/*\ -title: $:/core/modules/filters/subfilter.js -type: application/javascript -module-type: filteroperator - -Filter operator returning its operand evaluated as a filter - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.subfilter = function(source,operator,options) { - var list = options.wiki.filterTiddlers(operator.operand,options.widget,source); - if(operator.prefix === "!") { - var results = []; - source(function(tiddler,title) { - if(list.indexOf(title) === -1) { - results.push(title); - } - }); - return results; - } else { - return list; - } -}; - -})(); --
/*\ -title: $:/core/modules/filters/subtiddlerfields.js -type: application/javascript -module-type: filteroperator - -Filter operator for returning the names of the fields on the selected subtiddlers of the plugin named in the operand - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.subtiddlerfields = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - var subtiddler = options.wiki.getSubTiddler(operator.operand,title); - if(subtiddler) { - for(var fieldName in subtiddler.fields) { - $tw.utils.pushTop(results,fieldName); - } - } - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/suffix.js -type: application/javascript -module-type: filteroperator - -Filter operator for checking if a title ends with a suffix - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.suffix = function(source,operator,options) { - var results = []; - if(operator.prefix === "!") { - source(function(tiddler,title) { - if(title.substr(-operator.operand.length) !== operator.operand) { - results.push(title); - } - }); - } else { - source(function(tiddler,title) { - if(title.substr(-operator.operand.length) === operator.operand) { - results.push(title); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/tag.js -type: application/javascript -module-type: filteroperator - -Filter operator for checking for the presence of a tag - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.tag = function(source,operator,options) { - var results = [],indexedResults; - if((operator.suffix || "").toLowerCase() === "strict" && !operator.operand) { - // New semantics: - // Always return copy of input if operator.operand is missing - source(function(tiddler,title) { - results.push(title); - }); - } else { - // Old semantics: - var tiddlers; - if(operator.prefix === "!") { - // Returns a copy of the input if operator.operand is missing - tiddlers = options.wiki.getTiddlersWithTag(operator.operand); - source(function(tiddler,title) { - if(tiddlers.indexOf(title) === -1) { - results.push(title); - } - }); - } else { - // Returns empty results if operator.operand is missing - if(source.byTag) { - indexedResults = source.byTag(operator.operand); - if(indexedResults) { - return indexedResults; - } - } else { - tiddlers = options.wiki.getTiddlersWithTag(operator.operand); - source(function(tiddler,title) { - if(tiddlers.indexOf(title) !== -1) { - results.push(title); - } - }); - results = options.wiki.sortByList(results,operator.operand); - } - } - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/tagging.js -type: application/javascript -module-type: filteroperator - -Filter operator returning all tiddlers that are tagged with the selected tiddlers - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.tagging = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - $tw.utils.pushTop(results,options.wiki.getTiddlersWithTag(title)); - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/tags.js -type: application/javascript -module-type: filteroperator - -Filter operator returning all the tags of the selected tiddlers - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.tags = function(source,operator,options) { - var tags = {}; - source(function(tiddler,title) { - var t, length; - if(tiddler && tiddler.fields.tags) { - for(t=0, length=tiddler.fields.tags.length; t<length; t++) { - tags[tiddler.fields.tags[t]] = true; - } - } - }); - return Object.keys(tags); -}; - -})(); --
/*\ -title: $:/core/modules/filters/then.js -type: application/javascript -module-type: filteroperator - -Filter operator for replacing any titles with a constant - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.then = function(source,operator,options) { - var results = []; - source(function(tiddler,title) { - results.push(operator.operand); - }); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/title.js -type: application/javascript -module-type: filteroperator - -Filter operator for comparing title fields for equality - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.title = function(source,operator,options) { - var results = []; - if(operator.prefix === "!") { - source(function(tiddler,title) { - if(tiddler && tiddler.fields.title !== operator.operand) { - results.push(title); - } - }); - } else { - results.push(operator.operand); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/untagged.js -type: application/javascript -module-type: filteroperator - -Filter operator returning all the selected tiddlers that are untagged - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.untagged = function(source,operator,options) { - var results = []; - if(operator.prefix === "!") { - source(function(tiddler,title) { - if(tiddler && $tw.utils.isArray(tiddler.fields.tags) && tiddler.fields.tags.length > 0) { - $tw.utils.pushTop(results,title); - } - }); - } else { - source(function(tiddler,title) { - if(!tiddler || !tiddler.hasField("tags") || ($tw.utils.isArray(tiddler.fields.tags) && tiddler.fields.tags.length === 0)) { - $tw.utils.pushTop(results,title); - } - }); - } - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/variables.js -type: application/javascript -module-type: filteroperator - -Filter operator for returning the names of the active variables - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.variables = function(source,operator,options) { - var names = []; - for(var variable in options.widget.variables) { - names.push(variable); - } - return names.sort(); -}; - -})(); --
/*\ -title: $:/core/modules/filters/wikiparserrules.js -type: application/javascript -module-type: filteroperator - -Filter operator for returning the names of the wiki parser rules in this wiki - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Export our filter function -*/ -exports.wikiparserrules = function(source,operator,options) { - var results = [], - operand = operator.operand; - $tw.utils.each($tw.modules.types.wikirule,function(mod) { - var exp = mod.exports; - if(!operand || exp.types[operand]) { - results.push(exp.name); - } - }); - results.sort(); - return results; -}; - -})(); --
/*\ -title: $:/core/modules/filters/x-listops.js -type: application/javascript -module-type: filteroperator - -Extended filter operators to manipulate the current list. - -\*/ -(function () { - - /*jslint node: true, browser: true */ - /*global $tw: false */ - "use strict"; - - /* - Fetch titles from the current list - */ - var prepare_results = function (source) { - var results = []; - source(function (tiddler, title) { - results.push(title); - }); - return results; - }; - - /* - Moves a number of items from the tail of the current list before the item named in the operand - */ - exports.putbefore = function (source, operator) { - var results = prepare_results(source), - index = results.indexOf(operator.operand), - count = $tw.utils.getInt(operator.suffix,1); - return (index === -1) ? - results.slice(0, -1) : - results.slice(0, index).concat(results.slice(-count)).concat(results.slice(index, -count)); - }; - - /* - Moves a number of items from the tail of the current list after the item named in the operand - */ - exports.putafter = function (source, operator) { - var results = prepare_results(source), - index = results.indexOf(operator.operand), - count = $tw.utils.getInt(operator.suffix,1); - return (index === -1) ? - results.slice(0, -1) : - results.slice(0, index + 1).concat(results.slice(-count)).concat(results.slice(index + 1, -count)); - }; - - /* - Replaces the item named in the operand with a number of items from the tail of the current list - */ - exports.replace = function (source, operator) { - var results = prepare_results(source), - index = results.indexOf(operator.operand), - count = $tw.utils.getInt(operator.suffix,1); - return (index === -1) ? - results.slice(0, -count) : - results.slice(0, index).concat(results.slice(-count)).concat(results.slice(index + 1, -count)); - }; - - /* - Moves a number of items from the tail of the current list to the head of the list - */ - exports.putfirst = function (source, operator) { - var results = prepare_results(source), - count = $tw.utils.getInt(operator.suffix,1); - return results.slice(-count).concat(results.slice(0, -count)); - }; - - /* - Moves a number of items from the head of the current list to the tail of the list - */ - exports.putlast = function (source, operator) { - var results = prepare_results(source), - count = $tw.utils.getInt(operator.suffix,1); - return results.slice(count).concat(results.slice(0, count)); - }; - - /* - Moves the item named in the operand a number of places forward or backward in the list - */ - exports.move = function (source, operator) { - var results = prepare_results(source), - index = results.indexOf(operator.operand), - count = $tw.utils.getInt(operator.suffix,1), - marker = results.splice(index, 1), - offset = (index + count) > 0 ? index + count : 0; - return results.slice(0, offset).concat(marker).concat(results.slice(offset)); - }; - - /* - Returns the items from the current list that are after the item named in the operand - */ - exports.allafter = function (source, operator) { - var results = prepare_results(source), - index = results.indexOf(operator.operand); - return (index === -1) ? [] : - (operator.suffix) ? results.slice(index) : - results.slice(index + 1); - }; - - /* - Returns the items from the current list that are before the item named in the operand - */ - exports.allbefore = function (source, operator) { - var results = prepare_results(source), - index = results.indexOf(operator.operand); - return (index === -1) ? [] : - (operator.suffix) ? results.slice(0, index + 1) : - results.slice(0, index); - }; - - /* - Appends the items listed in the operand array to the tail of the current list - */ - exports.append = function (source, operator) { - var append = $tw.utils.parseStringArray(operator.operand, "true"), - results = prepare_results(source), - count = parseInt(operator.suffix) || append.length; - return (append.length === 0) ? results : - (operator.prefix) ? results.concat(append.slice(-count)) : - results.concat(append.slice(0, count)); - }; - - /* - Prepends the items listed in the operand array to the head of the current list - */ - exports.prepend = function (source, operator) { - var prepend = $tw.utils.parseStringArray(operator.operand, "true"), - results = prepare_results(source), - count = $tw.utils.getInt(operator.suffix,prepend.length); - return (prepend.length === 0) ? results : - (operator.prefix) ? prepend.slice(-count).concat(results) : - prepend.slice(0, count).concat(results); - }; - - /* - Returns all items from the current list except the items listed in the operand array - */ - exports.remove = function (source, operator) { - var array = $tw.utils.parseStringArray(operator.operand, "true"), - results = prepare_results(source), - count = parseInt(operator.suffix) || array.length, - p, - len, - index; - len = array.length - 1; - for (p = 0; p < count; ++p) { - if (operator.prefix) { - index = results.indexOf(array[len - p]); - } else { - index = results.indexOf(array[p]); - } - if (index !== -1) { - results.splice(index, 1); - } - } - return results; - }; - - /* - Returns all items from the current list sorted in the order of the items in the operand array - */ - exports.sortby = function (source, operator) { - var results = prepare_results(source); - if (!results || results.length < 2) { - return results; - } - var lookup = $tw.utils.parseStringArray(operator.operand, "true"); - results.sort(function (a, b) { - return lookup.indexOf(a) - lookup.indexOf(b); - }); - return results; - }; - - /* - Removes all duplicate items from the current list - */ - exports.unique = function (source, operator) { - var results = prepare_results(source); - var set = results.reduce(function (a, b) { - if (a.indexOf(b) < 0) { - a.push(b); - } - return a; - }, []); - return set; - }; -})(); --
/*\ -title: $:/core/modules/indexers/backlinks-indexer.js -type: application/javascript -module-type: indexer - -Indexes the tiddlers' backlinks - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global modules: false */ -"use strict"; - - -function BacklinksIndexer(wiki) { - this.wiki = wiki; -} - -BacklinksIndexer.prototype.init = function() { - this.index = null; -} - -BacklinksIndexer.prototype.rebuild = function() { - this.index = null; -} - -BacklinksIndexer.prototype._getLinks = function(tiddler) { - var parser = this.wiki.parseText(tiddler.fields.type, tiddler.fields.text, {}); - if(parser) { - return this.wiki.extractLinks(parser.tree); - } - return []; -} - -BacklinksIndexer.prototype.update = function(updateDescriptor) { - if(!this.index) { - return; - } - var newLinks = [], - oldLinks = [], - self = this; - if(updateDescriptor.old.exists) { - oldLinks = this._getLinks(updateDescriptor.old.tiddler); - } - if(updateDescriptor.new.exists) { - newLinks = this._getLinks(updateDescriptor.new.tiddler); - } - - $tw.utils.each(oldLinks,function(link) { - if(self.index[link]) { - delete self.index[link][updateDescriptor.old.tiddler.fields.title]; - } - }); - $tw.utils.each(newLinks,function(link) { - if(!self.index[link]) { - self.index[link] = Object.create(null); - } - self.index[link][updateDescriptor.new.tiddler.fields.title] = true; - }); -} - -BacklinksIndexer.prototype.lookup = function(title) { - if(!this.index) { - this.index = Object.create(null); - var self = this; - this.wiki.forEachTiddler(function(title,tiddler) { - var links = self._getLinks(tiddler); - $tw.utils.each(links, function(link) { - if(!self.index[link]) { - self.index[link] = Object.create(null); - } - self.index[link][title] = true; - }); - }); - } - if(this.index[title]) { - return Object.keys(this.index[title]); - } else { - return []; - } -} - -exports.BacklinksIndexer = BacklinksIndexer; - -})(); --
/*\ -title: $:/core/modules/indexers/field-indexer.js -type: application/javascript -module-type: indexer - -Indexes the tiddlers with each field value - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global modules: false */ -"use strict"; - -var DEFAULT_MAXIMUM_INDEXED_VALUE_LENGTH = 128; - -function FieldIndexer(wiki) { - this.wiki = wiki; -} - -FieldIndexer.prototype.init = function() { - this.index = null; - this.maxIndexedValueLength = DEFAULT_MAXIMUM_INDEXED_VALUE_LENGTH; - this.addIndexMethods(); -} - -// Provided for testing -FieldIndexer.prototype.setMaxIndexedValueLength = function(length) { - this.index = null; - this.maxIndexedValueLength = length; -}; - -FieldIndexer.prototype.addIndexMethods = function() { - var self = this; - this.wiki.each.byField = function(name,value) { - var titles = self.wiki.allTitles(), - lookup = self.lookup(name,value); - return lookup && lookup.filter(function(title) { - return titles.indexOf(title) !== -1; - }); - }; - this.wiki.eachShadow.byField = function(name,value) { - var titles = self.wiki.allShadowTitles(), - lookup = self.lookup(name,value); - return lookup && lookup.filter(function(title) { - return titles.indexOf(title) !== -1; - }); - }; - this.wiki.eachTiddlerPlusShadows.byField = function(name,value) { - var lookup = self.lookup(name,value); - return lookup ? lookup.slice(0) : null; - }; - this.wiki.eachShadowPlusTiddlers.byField = function(name,value) { - var lookup = self.lookup(name,value); - return lookup ? lookup.slice(0) : null; - }; -}; - -/* -Tear down and then rebuild the index as if all tiddlers have changed -*/ -FieldIndexer.prototype.rebuild = function() { - // Invalidate the index so that it will be rebuilt when it is next used - this.index = null; -}; - -/* -Build the index for a particular field -*/ -FieldIndexer.prototype.buildIndexForField = function(name) { - var self = this; - // Hashmap by field name of hashmap by field value of array of tiddler titles - this.index = this.index || Object.create(null); - this.index[name] = Object.create(null); - var baseIndex = this.index[name]; - // Update the index for each tiddler - this.wiki.eachTiddlerPlusShadows(function(tiddler,title) { - if(name in tiddler.fields) { - var value = tiddler.getFieldString(name); - // Skip any values above the maximum length - if(value.length < self.maxIndexedValueLength) { - baseIndex[value] = baseIndex[value] || []; - baseIndex[value].push(title); - } - } - }); -}; - -/* -Update the index in the light of a tiddler value changing; note that the title must be identical. (Renames are handled as a separate delete and create) -updateDescriptor: {old: {tiddler: <tiddler>, shadow: <boolean>, exists: <boolean>},new: {tiddler: <tiddler>, shadow: <boolean>, exists: <boolean>}} -*/ -FieldIndexer.prototype.update = function(updateDescriptor) { - var self = this; - // Don't do anything if the index hasn't been built yet - if(this.index === null) { - return; - } - // Remove the old tiddler from the index - if(updateDescriptor.old.tiddler) { - $tw.utils.each(this.index,function(indexEntry,name) { - if(name in updateDescriptor.old.tiddler.fields) { - var value = updateDescriptor.old.tiddler.getFieldString(name), - tiddlerList = indexEntry[value]; - if(tiddlerList) { - var index = tiddlerList.indexOf(updateDescriptor.old.tiddler.fields.title); - if(index !== -1) { - tiddlerList.splice(index,1); - } - } - } - }); - } - // Add the new tiddler to the index - if(updateDescriptor["new"].tiddler) { - $tw.utils.each(this.index,function(indexEntry,name) { - if(name in updateDescriptor["new"].tiddler.fields) { - var value = updateDescriptor["new"].tiddler.getFieldString(name); - if(value.length < self.maxIndexedValueLength) { - indexEntry[value] = indexEntry[value] || []; - indexEntry[value].push(updateDescriptor["new"].tiddler.fields.title); - } - } - }); - } -}; - -// Lookup the given field returning a list of tiddler titles -FieldIndexer.prototype.lookup = function(name,value) { - // Fail the lookup if the value is too long - if(value.length >= this.maxIndexedValueLength) { - return null; - } - // Update the index if it has yet to be built - if(this.index === null || !this.index[name]) { - this.buildIndexForField(name); - } - return this.index[name][value] || []; -}; - -exports.FieldIndexer = FieldIndexer; - -})(); --
/*\ -title: $:/core/modules/indexers/tag-indexer.js -type: application/javascript -module-type: indexer - -Indexes the tiddlers with each tag - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global modules: false */ -"use strict"; - -function TagIndexer(wiki) { - this.wiki = wiki; -} - -TagIndexer.prototype.init = function() { - this.subIndexers = [ - new TagSubIndexer(this,"each"), - new TagSubIndexer(this,"eachShadow"), - new TagSubIndexer(this,"eachTiddlerPlusShadows"), - new TagSubIndexer(this,"eachShadowPlusTiddlers") - ]; - $tw.utils.each(this.subIndexers,function(subIndexer) { - subIndexer.addIndexMethod(); - }); -}; - -TagIndexer.prototype.rebuild = function() { - $tw.utils.each(this.subIndexers,function(subIndexer) { - subIndexer.rebuild(); - }); -}; - -TagIndexer.prototype.update = function(updateDescriptor) { - $tw.utils.each(this.subIndexers,function(subIndexer) { - subIndexer.update(updateDescriptor); - }); -}; - -function TagSubIndexer(indexer,iteratorMethod) { - this.indexer = indexer; - this.iteratorMethod = iteratorMethod; - this.index = null; // Hashmap of tag title to {isSorted: bool, titles: [array]} or null if not yet initialised -} - -TagSubIndexer.prototype.addIndexMethod = function() { - var self = this; - this.indexer.wiki[this.iteratorMethod].byTag = function(tag) { - return self.lookup(tag).slice(0); - }; -}; - -TagSubIndexer.prototype.rebuild = function() { - var self = this; - // Hashmap by tag of array of {isSorted:, titles:[]} - this.index = Object.create(null); - // Add all the tags - this.indexer.wiki[this.iteratorMethod](function(tiddler,title) { - $tw.utils.each(tiddler.fields.tags,function(tag) { - if(!self.index[tag]) { - self.index[tag] = {isSorted: false, titles: [title]}; - } else { - self.index[tag].titles.push(title); - } - }); - }); -}; - -TagSubIndexer.prototype.update = function(updateDescriptor) { - this.index = null; -}; - -TagSubIndexer.prototype.lookup = function(tag) { - // Update the index if it has yet to be built - if(this.index === null) { - this.rebuild(); - } - var indexRecord = this.index[tag]; - if(indexRecord) { - if(!indexRecord.isSorted) { - if(this.indexer.wiki.sortByList) { - indexRecord.titles = this.indexer.wiki.sortByList(indexRecord.titles,tag); - } - indexRecord.isSorted = true; - } - return indexRecord.titles; - } else { - return []; - } -}; - - -exports.TagIndexer = TagIndexer; - -})(); --
/*\ -title: $:/core/modules/info/platform.js -type: application/javascript -module-type: info - -Initialise basic platform $:/info/ tiddlers - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.getInfoTiddlerFields = function() { - var mapBoolean = function(value) {return value ? "yes" : "no";}, - infoTiddlerFields = []; - // Basics - infoTiddlerFields.push({title: "$:/info/browser", text: mapBoolean(!!$tw.browser)}); - infoTiddlerFields.push({title: "$:/info/node", text: mapBoolean(!!$tw.node)}); - if($tw.browser) { - // Document location - var setLocationProperty = function(name,value) { - infoTiddlerFields.push({title: "$:/info/url/" + name, text: value}); - }, - location = document.location; - setLocationProperty("full", (location.toString()).split("#")[0]); - setLocationProperty("host", location.host); - setLocationProperty("hostname", location.hostname); - setLocationProperty("protocol", location.protocol); - setLocationProperty("port", location.port); - setLocationProperty("pathname", location.pathname); - setLocationProperty("search", location.search); - setLocationProperty("origin", location.origin); - // Screen size - infoTiddlerFields.push({title: "$:/info/browser/screen/width", text: window.screen.width.toString()}); - infoTiddlerFields.push({title: "$:/info/browser/screen/height", text: window.screen.height.toString()}); - // Language - infoTiddlerFields.push({title: "$:/info/browser/language", text: navigator.language || ""}); - } - return infoTiddlerFields; -}; - -})(); --
/*\ -title: $:/core/modules/keyboard.js -type: application/javascript -module-type: global - -Keyboard handling utilities - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var namedKeys = { - "cancel": 3, - "help": 6, - "backspace": 8, - "tab": 9, - "clear": 12, - "return": 13, - "enter": 13, - "pause": 19, - "escape": 27, - "space": 32, - "page_up": 33, - "page_down": 34, - "end": 35, - "home": 36, - "left": 37, - "up": 38, - "right": 39, - "down": 40, - "printscreen": 44, - "insert": 45, - "delete": 46, - "0": 48, - "1": 49, - "2": 50, - "3": 51, - "4": 52, - "5": 53, - "6": 54, - "7": 55, - "8": 56, - "9": 57, - "firefoxsemicolon": 59, - "firefoxequals": 61, - "a": 65, - "b": 66, - "c": 67, - "d": 68, - "e": 69, - "f": 70, - "g": 71, - "h": 72, - "i": 73, - "j": 74, - "k": 75, - "l": 76, - "m": 77, - "n": 78, - "o": 79, - "p": 80, - "q": 81, - "r": 82, - "s": 83, - "t": 84, - "u": 85, - "v": 86, - "w": 87, - "x": 88, - "y": 89, - "z": 90, - "numpad0": 96, - "numpad1": 97, - "numpad2": 98, - "numpad3": 99, - "numpad4": 100, - "numpad5": 101, - "numpad6": 102, - "numpad7": 103, - "numpad8": 104, - "numpad9": 105, - "multiply": 106, - "add": 107, - "separator": 108, - "subtract": 109, - "decimal": 110, - "divide": 111, - "f1": 112, - "f2": 113, - "f3": 114, - "f4": 115, - "f5": 116, - "f6": 117, - "f7": 118, - "f8": 119, - "f9": 120, - "f10": 121, - "f11": 122, - "f12": 123, - "f13": 124, - "f14": 125, - "f15": 126, - "f16": 127, - "f17": 128, - "f18": 129, - "f19": 130, - "f20": 131, - "f21": 132, - "f22": 133, - "f23": 134, - "f24": 135, - "firefoxminus": 173, - "semicolon": 186, - "equals": 187, - "comma": 188, - "dash": 189, - "period": 190, - "slash": 191, - "backquote": 192, - "openbracket": 219, - "backslash": 220, - "closebracket": 221, - "quote": 222 -}; - -function KeyboardManager(options) { - var self = this; - options = options || ""; - // Save the named key hashmap - this.namedKeys = namedKeys; - // Create a reverse mapping of code to keyname - this.keyNames = []; - $tw.utils.each(namedKeys,function(keyCode,name) { - self.keyNames[keyCode] = name.substr(0,1).toUpperCase() + name.substr(1); - }); - // Save the platform-specific name of the "meta" key - this.metaKeyName = $tw.platform.isMac ? "cmd-" : "win-"; - this.shortcutKeysList = [], // Stores the shortcut-key descriptors - this.shortcutActionList = [], // Stores the corresponding action strings - this.shortcutParsedList = []; // Stores the parsed key descriptors - this.lookupNames = ["shortcuts"]; - this.lookupNames.push($tw.platform.isMac ? "shortcuts-mac" : "shortcuts-not-mac") - this.lookupNames.push($tw.platform.isWindows ? "shortcuts-windows" : "shortcuts-not-windows"); - this.lookupNames.push($tw.platform.isLinux ? "shortcuts-linux" : "shortcuts-not-linux"); - this.updateShortcutLists(this.getShortcutTiddlerList()); - $tw.wiki.addEventListener("change",function(changes) { - self.handleShortcutChanges(changes); - }); -} - -/* -Return an array of keycodes for the modifier keys ctrl, shift, alt, meta -*/ -KeyboardManager.prototype.getModifierKeys = function() { - return [ - 16, // Shift - 17, // Ctrl - 18, // Alt - 20, // CAPS LOCK - 91, // Meta (left) - 93, // Meta (right) - 224 // Meta (Firefox) - ] -}; - -/* -Parses a key descriptor into the structure: -{ - keyCode: numeric keycode - shiftKey: boolean - altKey: boolean - ctrlKey: boolean - metaKey: boolean -} -Key descriptors have the following format: - ctrl+enter - ctrl+shift+alt+A -*/ -KeyboardManager.prototype.parseKeyDescriptor = function(keyDescriptor) { - var components = keyDescriptor.split(/\+|\-/), - info = { - keyCode: 0, - shiftKey: false, - altKey: false, - ctrlKey: false, - metaKey: false - }; - for(var t=0; t<components.length; t++) { - var s = components[t].toLowerCase(), - c = s.charCodeAt(0); - // Look for modifier keys - if(s === "ctrl") { - info.ctrlKey = true; - } else if(s === "shift") { - info.shiftKey = true; - } else if(s === "alt") { - info.altKey = true; - } else if(s === "meta" || s === "cmd" || s === "win") { - info.metaKey = true; - } - // Replace named keys with their code - if(this.namedKeys[s]) { - info.keyCode = this.namedKeys[s]; - } - } - if(info.keyCode) { - return info; - } else { - return null; - } -}; - -/* -Parse a list of key descriptors into an array of keyInfo objects. The key descriptors can be passed as an array of strings or a space separated string -*/ -KeyboardManager.prototype.parseKeyDescriptors = function(keyDescriptors,options) { - var self = this; - options = options || {}; - options.stack = options.stack || []; - var wiki = options.wiki || $tw.wiki; - if(typeof keyDescriptors === "string" && keyDescriptors === "") { - return []; - } - if(!$tw.utils.isArray(keyDescriptors)) { - keyDescriptors = keyDescriptors.split(" "); - } - var result = []; - $tw.utils.each(keyDescriptors,function(keyDescriptor) { - // Look for a named shortcut - if(keyDescriptor.substr(0,2) === "((" && keyDescriptor.substr(-2,2) === "))") { - if(options.stack.indexOf(keyDescriptor) === -1) { - options.stack.push(keyDescriptor); - var name = keyDescriptor.substring(2,keyDescriptor.length - 2), - lookupName = function(configName) { - var keyDescriptors = wiki.getTiddlerText("$:/config/" + configName + "/" + name); - if(keyDescriptors) { - result.push.apply(result,self.parseKeyDescriptors(keyDescriptors,options)); - } - }; - $tw.utils.each(self.lookupNames,function(platformDescriptor) { - lookupName(platformDescriptor); - }); - } - } else { - result.push(self.parseKeyDescriptor(keyDescriptor)); - } - }); - return result; -}; - -KeyboardManager.prototype.getPrintableShortcuts = function(keyInfoArray) { - var self = this, - result = []; - $tw.utils.each(keyInfoArray,function(keyInfo) { - if(keyInfo) { - result.push((keyInfo.ctrlKey ? "ctrl-" : "") + - (keyInfo.shiftKey ? "shift-" : "") + - (keyInfo.altKey ? "alt-" : "") + - (keyInfo.metaKey ? self.metaKeyName : "") + - (self.keyNames[keyInfo.keyCode])); - } - }); - return result; -} - -KeyboardManager.prototype.checkKeyDescriptor = function(event,keyInfo) { - return keyInfo && - event.keyCode === keyInfo.keyCode && - event.shiftKey === keyInfo.shiftKey && - event.altKey === keyInfo.altKey && - event.ctrlKey === keyInfo.ctrlKey && - event.metaKey === keyInfo.metaKey; -}; - -KeyboardManager.prototype.checkKeyDescriptors = function(event,keyInfoArray) { - for(var t=0; t<keyInfoArray.length; t++) { - if(this.checkKeyDescriptor(event,keyInfoArray[t])) { - return true; - } - } - return false; -}; - -KeyboardManager.prototype.getShortcutTiddlerList = function() { - return $tw.wiki.getTiddlersWithTag("$:/tags/KeyboardShortcut"); -}; - -KeyboardManager.prototype.updateShortcutLists = function(tiddlerList) { - this.shortcutTiddlers = tiddlerList; - for(var i=0; i<tiddlerList.length; i++) { - var title = tiddlerList[i], - tiddlerFields = $tw.wiki.getTiddler(title).fields; - this.shortcutKeysList[i] = tiddlerFields.key !== undefined ? tiddlerFields.key : undefined; - this.shortcutActionList[i] = tiddlerFields.text; - this.shortcutParsedList[i] = this.shortcutKeysList[i] !== undefined ? this.parseKeyDescriptors(this.shortcutKeysList[i]) : undefined; - } -}; - -KeyboardManager.prototype.handleKeydownEvent = function(event) { - var key, action; - for(var i=0; i<this.shortcutTiddlers.length; i++) { - if(this.shortcutParsedList[i] !== undefined && this.checkKeyDescriptors(event,this.shortcutParsedList[i])) { - key = this.shortcutParsedList[i]; - action = this.shortcutActionList[i]; - } - } - if(key !== undefined) { - event.preventDefault(); - event.stopPropagation(); - $tw.rootWidget.invokeActionString(action,$tw.rootWidget); - return true; - } - return false; -}; - -KeyboardManager.prototype.detectNewShortcuts = function(changedTiddlers) { - var shortcutConfigTiddlers = [], - handled = false; - $tw.utils.each(this.lookupNames,function(platformDescriptor) { - var descriptorString = "$:/config/" + platformDescriptor + "/"; - Object.keys(changedTiddlers).forEach(function(configTiddler) { - var configString = configTiddler.substr(0, configTiddler.lastIndexOf("/") + 1); - if(configString === descriptorString) { - shortcutConfigTiddlers.push(configTiddler); - handled = true; - } - }); - }); - if(handled) { - return $tw.utils.hopArray(changedTiddlers,shortcutConfigTiddlers); - } else { - return false; - } -}; - -KeyboardManager.prototype.handleShortcutChanges = function(changedTiddlers) { - var newList = this.getShortcutTiddlerList(); - var hasChanged = $tw.utils.hopArray(changedTiddlers,this.shortcutTiddlers) ? true : - ($tw.utils.hopArray(changedTiddlers,newList) ? true : - (this.detectNewShortcuts(changedTiddlers)) - ); - // Re-cache shortcuts if something changed - if(hasChanged) { - this.updateShortcutLists(newList); - } -}; - -exports.KeyboardManager = KeyboardManager; - -})(); --
/*\ -title: $:/core/modules/language.js -type: application/javascript -module-type: global - -The $tw.Language() manages translateable strings - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Create an instance of the language manager. Options include: -wiki: wiki from which to retrieve translation tiddlers -*/ -function Language(options) { - options = options || ""; - this.wiki = options.wiki || $tw.wiki; -} - -/* -Return a wikified translateable string. The title is automatically prefixed with "$:/language/" -Options include: -variables: optional hashmap of variables to supply to the language wikification -*/ -Language.prototype.getString = function(title,options) { - options = options || {}; - title = "$:/language/" + title; - return this.wiki.renderTiddler("text/plain",title,{variables: options.variables}); -}; - -/* -Return a raw, unwikified translateable string. The title is automatically prefixed with "$:/language/" -*/ -Language.prototype.getRawString = function(title) { - title = "$:/language/" + title; - return this.wiki.getTiddlerText(title); -}; - -exports.Language = Language; - -})(); --
/*\ -title: $:/core/modules/macros/changecount.js -type: application/javascript -module-type: macro - -Macro to return the changecount for the current tiddler - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Information about this macro -*/ - -exports.name = "changecount"; - -exports.params = []; - -/* -Run the macro -*/ -exports.run = function() { - return this.wiki.getChangeCount(this.getVariable("currentTiddler")) + ""; -}; - -})(); --
/*\ -title: $:/core/modules/macros/contrastcolour.js -type: application/javascript -module-type: macro - -Macro to choose which of two colours has the highest contrast with a base colour - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Information about this macro -*/ - -exports.name = "contrastcolour"; - -exports.params = [ - {name: "target"}, - {name: "fallbackTarget"}, - {name: "colourA"}, - {name: "colourB"} -]; - -/* -Run the macro -*/ -exports.run = function(target,fallbackTarget,colourA,colourB) { - var rgbTarget = $tw.utils.parseCSSColor(target) || $tw.utils.parseCSSColor(fallbackTarget); - if(!rgbTarget) { - return colourA; - } - var rgbColourA = $tw.utils.parseCSSColor(colourA), - rgbColourB = $tw.utils.parseCSSColor(colourB); - if(rgbColourA && !rgbColourB) { - return rgbColourA; - } - if(rgbColourB && !rgbColourA) { - return rgbColourB; - } - if(!rgbColourA && !rgbColourB) { - // If neither colour is readable, return a crude inverse of the target - return [255 - rgbTarget[0],255 - rgbTarget[1],255 - rgbTarget[2],rgbTarget[3]]; - } - // Colour brightness formula derived from http://www.w3.org/WAI/ER/WD-AERT/#color-contrast - var brightnessTarget = rgbTarget[0] * 0.299 + rgbTarget[1] * 0.587 + rgbTarget[2] * 0.114, - brightnessA = rgbColourA[0] * 0.299 + rgbColourA[1] * 0.587 + rgbColourA[2] * 0.114, - brightnessB = rgbColourB[0] * 0.299 + rgbColourB[1] * 0.587 + rgbColourB[2] * 0.114; - return Math.abs(brightnessTarget - brightnessA) > Math.abs(brightnessTarget - brightnessB) ? colourA : colourB; -}; - -})(); --
/*\ -title: $:/core/modules/macros/csvtiddlers.js -type: application/javascript -module-type: macro - -Macro to output tiddlers matching a filter to CSV - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Information about this macro -*/ - -exports.name = "csvtiddlers"; - -exports.params = [ - {name: "filter"}, - {name: "format"}, -]; - -/* -Run the macro -*/ -exports.run = function(filter,format) { - var self = this, - tiddlers = this.wiki.filterTiddlers(filter), - tiddler, - fields = [], - t,f; - // Collect all the fields - for(t=0;t<tiddlers.length; t++) { - tiddler = this.wiki.getTiddler(tiddlers[t]); - for(f in tiddler.fields) { - if(fields.indexOf(f) === -1) { - fields.push(f); - } - } - } - // Sort the fields and bring the standard ones to the front - fields.sort(); - "title text modified modifier created creator".split(" ").reverse().forEach(function(value,index) { - var p = fields.indexOf(value); - if(p !== -1) { - fields.splice(p,1); - fields.unshift(value) - } - }); - // Output the column headings - var output = [], row = []; - fields.forEach(function(value) { - row.push(quoteAndEscape(value)) - }); - output.push(row.join(",")); - // Output each tiddler - for(var t=0;t<tiddlers.length; t++) { - row = []; - tiddler = this.wiki.getTiddler(tiddlers[t]); - for(f=0; f<fields.length; f++) { - row.push(quoteAndEscape(tiddler ? tiddler.getFieldString(fields[f]) || "" : "")); - } - output.push(row.join(",")); - } - return output.join("\n"); -}; - -function quoteAndEscape(value) { - return "\"" + value.replace(/"/mg,"\"\"") + "\""; -} - -})(); --
/*\ -title: $:/core/modules/macros/displayshortcuts.js -type: application/javascript -module-type: macro - -Macro to display a list of keyboard shortcuts in human readable form. Notably, it resolves named shortcuts like `((bold))` to the underlying keystrokes. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Information about this macro -*/ - -exports.name = "displayshortcuts"; - -exports.params = [ - {name: "shortcuts"}, - {name: "prefix"}, - {name: "separator"}, - {name: "suffix"} -]; - -/* -Run the macro -*/ -exports.run = function(shortcuts,prefix,separator,suffix) { - var shortcutArray = $tw.keyboardManager.getPrintableShortcuts($tw.keyboardManager.parseKeyDescriptors(shortcuts,{ - wiki: this.wiki - })); - if(shortcutArray.length > 0) { - shortcutArray.sort(function(a,b) { - return a.toLowerCase().localeCompare(b.toLowerCase()); - }) - return prefix + shortcutArray.join(separator) + suffix; - } else { - return ""; - } -}; - -})(); --
/*\ -title: $:/core/modules/macros/jsontiddler.js -type: application/javascript -module-type: macro - -Macro to output a single tiddler to JSON - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Information about this macro -*/ - -exports.name = "jsontiddler"; - -exports.params = [ - {name: "title"} -]; - -/* -Run the macro -*/ -exports.run = function(title) { - title = title || this.getVariable("currentTiddler"); - var tiddler = !!title && this.wiki.getTiddler(title), - fields = new Object(); - if(tiddler) { - for(var field in tiddler.fields) { - fields[field] = tiddler.getFieldString(field); - } - } - return JSON.stringify(fields,null,$tw.config.preferences.jsonSpaces); -}; - -})(); --
/*\ -title: $:/core/modules/macros/jsontiddlers.js -type: application/javascript -module-type: macro - -Macro to output tiddlers matching a filter to JSON - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Information about this macro -*/ - -exports.name = "jsontiddlers"; - -exports.params = [ - {name: "filter"}, - {name: "spaces"} -]; - -/* -Run the macro -*/ -exports.run = function(filter,spaces) { - return this.wiki.getTiddlersAsJson(filter,$tw.utils.parseInt(spaces)); -}; - -})(); --
/*\ -title: $:/core/modules/macros/makedatauri.js -type: application/javascript -module-type: macro - -Macro to convert a string of text to a data URI - -<<makedatauri text:"Text to be converted" type:"text/vnd.tiddlywiki">> - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Information about this macro -*/ - -exports.name = "makedatauri"; - -exports.params = [ - {name: "text"}, - {name: "type"}, - {name: "_canonical_uri"} -]; - -/* -Run the macro -*/ -exports.run = function(text,type,_canonical_uri) { - return $tw.utils.makeDataUri(text,type,_canonical_uri); -}; - -})(); --
/*\ -title: $:/core/modules/macros/now.js -type: application/javascript -module-type: macro - -Macro to return a formatted version of the current time - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Information about this macro -*/ - -exports.name = "now"; - -exports.params = [ - {name: "format"} -]; - -/* -Run the macro -*/ -exports.run = function(format) { - return $tw.utils.formatDateString(new Date(),format || "0hh:0mm, DDth MMM YYYY"); -}; - -})(); --
/*\ -title: $:/core/modules/macros/qualify.js -type: application/javascript -module-type: macro - -Macro to qualify a state tiddler title according - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Information about this macro -*/ - -exports.name = "qualify"; - -exports.params = [ - {name: "title"} -]; - -/* -Run the macro -*/ -exports.run = function(title) { - return title + "-" + this.getStateQualifier(); -}; - -})(); --
/*\ -title: $:/core/modules/macros/resolvepath.js -type: application/javascript -module-type: macro - -Resolves a relative path for an absolute rootpath. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "resolvepath"; - -exports.params = [ - {name: "source"}, - {name: "root"} -]; - -/* -Run the macro -*/ -exports.run = function(source, root) { - return $tw.utils.resolvePath(source, root); -}; - -})(); --
/*\ -title: $:/core/modules/macros/unusedtitle.js -type: application/javascript -module-type: macro -Macro to return a new title that is unused in the wiki. It can be given a name as a base. -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Information about this macro -*/ - -exports.name = "unusedtitle"; - -exports.params = [ - {name: "baseName"}, - {name: "options"} -]; - -/* -Run the macro -*/ -exports.run = function(baseName, options) { - if(!baseName) { - baseName = $tw.language.getString("DefaultNewTiddlerTitle"); - } - return this.wiki.generateNewTitle(baseName, options); -}; - -})(); --
/*\ -title: $:/core/modules/macros/version.js -type: application/javascript -module-type: macro - -Macro to return the TiddlyWiki core version number - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Information about this macro -*/ - -exports.name = "version"; - -exports.params = []; - -/* -Run the macro -*/ -exports.run = function() { - return $tw.version; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/audioparser.js -type: application/javascript -module-type: parser - -The audio parser parses an audio tiddler into an embeddable HTML element - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var AudioParser = function(type,text,options) { - var element = { - type: "element", - tag: "audio", - attributes: { - controls: {type: "string", value: "controls"}, - style: {type: "string", value: "width: 100%; object-fit: contain"} - } - }, - src; - if(options._canonical_uri) { - element.attributes.src = {type: "string", value: options._canonical_uri}; - } else if(text) { - element.attributes.src = {type: "string", value: "data:" + type + ";base64," + text}; - } - this.tree = [element]; -}; - -exports["audio/ogg"] = AudioParser; -exports["audio/mpeg"] = AudioParser; -exports["audio/mp3"] = AudioParser; -exports["audio/mp4"] = AudioParser; - -})(); - --
/*\ -title: $:/core/modules/parsers/binaryparser.js -type: application/javascript -module-type: parser - -The binary parser parses a binary tiddler into a warning message and download link - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var BINARY_WARNING_MESSAGE = "$:/core/ui/BinaryWarning"; -var EXPORT_BUTTON_IMAGE = "$:/core/images/export-button"; - -var BinaryParser = function(type,text,options) { - // Transclude the binary data tiddler warning message - var warn = { - type: "element", - tag: "p", - children: [{ - type: "transclude", - attributes: { - tiddler: {type: "string", value: BINARY_WARNING_MESSAGE} - } - }] - }; - // Create download link based on binary tiddler title - var link = { - type: "element", - tag: "a", - attributes: { - title: {type: "indirect", textReference: "!!title"}, - download: {type: "indirect", textReference: "!!title"} - }, - children: [{ - type: "transclude", - attributes: { - tiddler: {type: "string", value: EXPORT_BUTTON_IMAGE} - } - }] - }; - // Set the link href to external or internal data URI - if(options._canonical_uri) { - link.attributes.href = { - type: "string", - value: options._canonical_uri - }; - } else if(text) { - link.attributes.href = { - type: "string", - value: "data:" + type + ";base64," + text - }; - } - // Combine warning message and download link in a div - var element = { - type: "element", - tag: "div", - attributes: { - class: {type: "string", value: "tc-binary-warning"} - }, - children: [warn, link] - } - this.tree = [element]; -}; - -exports["application/octet-stream"] = BinaryParser; - -})(); - --
/*\ -title: $:/core/modules/parsers/csvparser.js -type: application/javascript -module-type: parser - -The CSV text parser processes CSV files into a table wrapped in a scrollable widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var CsvParser = function(type,text,options) { - // Table framework - this.tree = [{ - "type": "scrollable", "children": [{ - "type": "element", "tag": "table", "children": [{ - "type": "element", "tag": "tbody", "children": [] - }], "attributes": { - "class": {"type": "string", "value": "tc-csv-table"} - } - }] - }]; - // Split the text into lines - var lines = text.split(/\r?\n/mg), - tag = "th"; - for(var line=0; line<lines.length; line++) { - var lineText = lines[line]; - if(lineText) { - var row = { - "type": "element", "tag": "tr", "children": [] - }; - var columns = lineText.split(","); - for(var column=0; column<columns.length; column++) { - row.children.push({ - "type": "element", "tag": tag, "children": [{ - "type": "text", - "text": columns[column] - }] - }); - } - tag = "td"; - this.tree[0].children[0].children[0].children.push(row); - } - } -}; - -exports["text/csv"] = CsvParser; - -})(); - --
/*\ -title: $:/core/modules/parsers/htmlparser.js -type: application/javascript -module-type: parser - -The HTML parser displays text as raw HTML - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var HtmlParser = function(type,text,options) { - var src; - if(options._canonical_uri) { - src = options._canonical_uri; - } else if(text) { - src = "data:text/html;charset=utf-8," + encodeURIComponent(text); - } - this.tree = [{ - type: "element", - tag: "iframe", - attributes: { - src: {type: "string", value: src}, - sandbox: {type: "string", value: ""} - } - }]; -}; - -exports["text/html"] = HtmlParser; - -})(); - --
/*\ -title: $:/core/modules/parsers/imageparser.js -type: application/javascript -module-type: parser - -The image parser parses an image into an embeddable HTML element - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var ImageParser = function(type,text,options) { - var element = { - type: "element", - tag: "img", - attributes: {} - }; - if(options._canonical_uri) { - element.attributes.src = {type: "string", value: options._canonical_uri}; - } else if(text) { - if(type === "image/svg+xml" || type === ".svg") { - element.attributes.src = {type: "string", value: "data:image/svg+xml," + encodeURIComponent(text)}; - } else { - element.attributes.src = {type: "string", value: "data:" + type + ";base64," + text}; - } - } - this.tree = [element]; -}; - -exports["image/svg+xml"] = ImageParser; -exports["image/jpg"] = ImageParser; -exports["image/jpeg"] = ImageParser; -exports["image/png"] = ImageParser; -exports["image/gif"] = ImageParser; -exports["image/webp"] = ImageParser; -exports["image/heic"] = ImageParser; -exports["image/heif"] = ImageParser; -exports["image/x-icon"] = ImageParser; - -})(); - --
/*\ -title: $:/core/modules/parsers/pdfparser.js -type: application/javascript -module-type: parser - -The PDF parser embeds a PDF viewer - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var ImageParser = function(type,text,options) { - var element = { - type: "element", - tag: "embed", - attributes: {} - }, - src; - if(options._canonical_uri) { - element.attributes.src = {type: "string", value: options._canonical_uri}; - } else if(text) { - element.attributes.src = {type: "string", value: "data:application/pdf;base64," + text}; - } - this.tree = [element]; -}; - -exports["application/pdf"] = ImageParser; - -})(); - --
/*\ -title: $:/core/modules/parsers/textparser.js -type: application/javascript -module-type: parser - -The plain text parser processes blocks of source text into a degenerate parse tree consisting of a single text node - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var TextParser = function(type,text,options) { - this.tree = [{ - type: "codeblock", - attributes: { - code: {type: "string", value: text}, - language: {type: "string", value: type} - } - }]; -}; - -exports["text/plain"] = TextParser; -exports["text/x-tiddlywiki"] = TextParser; -exports["application/javascript"] = TextParser; -exports["application/json"] = TextParser; -exports["text/css"] = TextParser; -exports["application/x-tiddler-dictionary"] = TextParser; - -})(); - --
/*\ -title: $:/core/modules/parsers/videoparser.js -type: application/javascript -module-type: parser - -The video parser parses a video tiddler into an embeddable HTML element - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var VideoParser = function(type,text,options) { - var element = { - type: "element", - tag: "video", - attributes: { - controls: {type: "string", value: "controls"}, - style: {type: "string", value: "width: 100%; object-fit: contain"} - } - }, - src; - if(options._canonical_uri) { - element.attributes.src = {type: "string", value: options._canonical_uri}; - } else if(text) { - element.attributes.src = {type: "string", value: "data:" + type + ";base64," + text}; - } - this.tree = [element]; -}; - -exports["video/ogg"] = VideoParser; -exports["video/webm"] = VideoParser; -exports["video/mp4"] = VideoParser; -exports["video/quicktime"] = VideoParser; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/codeblock.js -type: application/javascript -module-type: wikirule - -Wiki text rule for code blocks. For example: - -``` - ``` - This text will not be //wikified// - ``` -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "codeblock"; -exports.types = {block: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match and get language if defined - this.matchRegExp = /```([\w-]*)\r?\n/mg; -}; - -exports.parse = function() { - var reEnd = /(\r?\n```$)/mg; - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - - // Look for the end of the block - reEnd.lastIndex = this.parser.pos; - var match = reEnd.exec(this.parser.source), - text; - // Process the block - if(match) { - text = this.parser.source.substring(this.parser.pos,match.index); - this.parser.pos = match.index + match[0].length; - } else { - text = this.parser.source.substr(this.parser.pos); - this.parser.pos = this.parser.sourceLength; - } - // Return the $codeblock widget - return [{ - type: "codeblock", - attributes: { - code: {type: "string", value: text}, - language: {type: "string", value: this.match[1]} - } - }]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/codeinline.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for code runs. For example: - -``` - This is a `code run`. - This is another ``code run`` -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "codeinline"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /(``?)/mg; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - var reEnd = new RegExp(this.match[1], "mg"); - // Look for the end marker - reEnd.lastIndex = this.parser.pos; - var match = reEnd.exec(this.parser.source), - text; - // Process the text - if(match) { - text = this.parser.source.substring(this.parser.pos,match.index); - this.parser.pos = match.index + match[0].length; - } else { - text = this.parser.source.substr(this.parser.pos); - this.parser.pos = this.parser.sourceLength; - } - return [{ - type: "element", - tag: "code", - children: [{ - type: "text", - text: text - }] - }]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/commentblock.js -type: application/javascript -module-type: wikirule - -Wiki text block rule for HTML comments. For example: - -``` -<!-- This is a comment --> -``` - -Note that the syntax for comments is simplified to an opening "<!--" sequence and a closing "-->" sequence -- HTML itself implements a more complex format (see http://ostermiller.org/findhtmlcomment.html) - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "commentblock"; -exports.types = {block: true}; - -exports.init = function(parser) { - this.parser = parser; - this.matchRegExp = /<!--/mg; - this.endMatchRegExp = /-->/mg; -}; - -exports.findNextMatch = function(startPos) { - this.matchRegExp.lastIndex = startPos; - this.match = this.matchRegExp.exec(this.parser.source); - if(this.match) { - this.endMatchRegExp.lastIndex = startPos + this.match[0].length; - this.endMatch = this.endMatchRegExp.exec(this.parser.source); - if(this.endMatch) { - return this.match.index; - } - } - return undefined; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.endMatchRegExp.lastIndex; - // Don't return any elements - return []; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/commentinline.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for HTML comments. For example: - -``` -<!-- This is a comment --> -``` - -Note that the syntax for comments is simplified to an opening "<!--" sequence and a closing "-->" sequence -- HTML itself implements a more complex format (see http://ostermiller.org/findhtmlcomment.html) - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "commentinline"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - this.matchRegExp = /<!--/mg; - this.endMatchRegExp = /-->/mg; -}; - -exports.findNextMatch = function(startPos) { - this.matchRegExp.lastIndex = startPos; - this.match = this.matchRegExp.exec(this.parser.source); - if(this.match) { - this.endMatchRegExp.lastIndex = startPos + this.match[0].length; - this.endMatch = this.endMatchRegExp.exec(this.parser.source); - if(this.endMatch) { - return this.match.index; - } - } - return undefined; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.endMatchRegExp.lastIndex; - // Don't return any elements - return []; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/dash.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for dashes. For example: - -``` -This is an en-dash: -- - -This is an em-dash: --- -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "dash"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /-{2,3}(?!-)/mg; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - var dash = this.match[0].length === 2 ? "–" : "—"; - return [{ - type: "entity", - entity: dash - }]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/emphasis/bold.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for emphasis - bold. For example: - -``` - This is ''bold'' text -``` - -This wikiparser can be modified using the rules eg: - -``` -\rules except bold -\rules only bold -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "bold"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /''/mg; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - - // Parse the run including the terminator - var tree = this.parser.parseInlineRun(/''/mg,{eatTerminator: true}); - - // Return the classed span - return [{ - type: "element", - tag: "strong", - children: tree - }]; -}; - -})();-
/*\ -title: $:/core/modules/parsers/wikiparser/rules/emphasis/italic.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for emphasis - italic. For example: - -``` - This is //italic// text -``` - -This wikiparser can be modified using the rules eg: - -``` -\rules except italic -\rules only italic -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "italic"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /\/\//mg; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - - // Parse the run including the terminator - var tree = this.parser.parseInlineRun(/\/\//mg,{eatTerminator: true}); - - // Return the classed span - return [{ - type: "element", - tag: "em", - children: tree - }]; -}; - -})();-
/*\ -title: $:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for emphasis - strikethrough. For example: - -``` - This is ~~strikethrough~~ text -``` - -This wikiparser can be modified using the rules eg: - -``` -\rules except strikethrough -\rules only strikethrough -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "strikethrough"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /~~/mg; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - - // Parse the run including the terminator - var tree = this.parser.parseInlineRun(/~~/mg,{eatTerminator: true}); - - // Return the classed span - return [{ - type: "element", - tag: "strike", - children: tree - }]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for emphasis - subscript. For example: - -``` - This is ,,subscript,, text -``` - -This wikiparser can be modified using the rules eg: - -``` -\rules except subscript -\rules only subscript -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "subscript"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /,,/mg; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - - // Parse the run including the terminator - var tree = this.parser.parseInlineRun(/,,/mg,{eatTerminator: true}); - - // Return the classed span - return [{ - type: "element", - tag: "sub", - children: tree - }]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for emphasis - superscript. For example: - -``` - This is ^^superscript^^ text -``` - -This wikiparser can be modified using the rules eg: - -``` -\rules except superscript -\rules only superscript -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "superscript"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /\^\^/mg; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - - // Parse the run including the terminator - var tree = this.parser.parseInlineRun(/\^\^/mg,{eatTerminator: true}); - - // Return the classed span - return [{ - type: "element", - tag: "sup", - children: tree - }]; -}; - -})();-
/*\ -title: $:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for emphasis - underscore. For example: - -``` - This is __underscore__ text -``` - -This wikiparser can be modified using the rules eg: - -``` -\rules except underscore -\rules only underscore -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "underscore"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /__/mg; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - - // Parse the run including the terminator - var tree = this.parser.parseInlineRun(/__/mg,{eatTerminator: true}); - - // Return the classed span - return [{ - type: "element", - tag: "u", - children: tree - }]; -}; - -})();-
/*\ -title: $:/core/modules/parsers/wikiparser/rules/entity.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for HTML entities. For example: - -``` - This is a copyright symbol: © -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "entity"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /(&#?[a-zA-Z0-9]{2,8};)/mg; -}; - -/* -Parse the most recent match -*/ -exports.parse = function() { - // Get all the details of the match - var entityString = this.match[1]; - // Move past the macro call - this.parser.pos = this.matchRegExp.lastIndex; - // Return the entity - return [{type: "entity", entity: this.match[0]}]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/extlink.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for external links. For example: - -``` -An external link: https://www.tiddlywiki.com/ - -A suppressed external link: ~http://www.tiddlyspace.com/ -``` - -External links can be suppressed by preceding them with `~`. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "extlink"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /~?(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\s<>{}\[\]`|"\\^]+(?:\/|\b)/mg; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - // Create the link unless it is suppressed - if(this.match[0].substr(0,1) === "~") { - return [{type: "text", text: this.match[0].substr(1)}]; - } else { - return [{ - type: "element", - tag: "a", - attributes: { - href: {type: "string", value: this.match[0]}, - "class": {type: "string", value: "tc-tiddlylink-external"}, - target: {type: "string", value: "_blank"}, - rel: {type: "string", value: "noopener noreferrer"} - }, - children: [{ - type: "text", text: this.match[0] - }] - }]; - } -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js -type: application/javascript -module-type: wikirule - -Wiki text rule for block-level filtered transclusion. For example: - -``` -{{{ [tag[docs]] }}} -{{{ [tag[docs]] |tooltip}}} -{{{ [tag[docs]] ||TemplateTitle}}} -{{{ [tag[docs]] |tooltip||TemplateTitle}}} -{{{ [tag[docs]] }}width:40;height:50;}.class.class -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "filteredtranscludeblock"; -exports.types = {block: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /\{\{\{([^\|]+?)(?:\|([^\|\{\}]+))?(?:\|\|([^\|\{\}]+))?\}\}([^\}]*)\}(?:\.(\S+))?(?:\r?\n|$)/mg; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - // Get the match details - var filter = this.match[1], - tooltip = this.match[2], - template = $tw.utils.trim(this.match[3]), - style = this.match[4], - classes = this.match[5]; - // Return the list widget - var node = { - type: "list", - attributes: { - filter: {type: "string", value: filter} - }, - isBlock: true - }; - if(tooltip) { - node.attributes.tooltip = {type: "string", value: tooltip}; - } - if(template) { - node.attributes.template = {type: "string", value: template}; - } - if(style) { - node.attributes.style = {type: "string", value: style}; - } - if(classes) { - node.attributes.itemClass = {type: "string", value: classes.split(".").join(" ")}; - } - return [node]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js -type: application/javascript -module-type: wikirule - -Wiki text rule for inline filtered transclusion. For example: - -``` -{{{ [tag[docs]] }}} -{{{ [tag[docs]] |tooltip}}} -{{{ [tag[docs]] ||TemplateTitle}}} -{{{ [tag[docs]] |tooltip||TemplateTitle}}} -{{{ [tag[docs]] }}width:40;height:50;}.class.class -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "filteredtranscludeinline"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /\{\{\{([^\|]+?)(?:\|([^\|\{\}]+))?(?:\|\|([^\|\{\}]+))?\}\}([^\}]*)\}(?:\.(\S+))?/mg; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - // Get the match details - var filter = this.match[1], - tooltip = this.match[2], - template = $tw.utils.trim(this.match[3]), - style = this.match[4], - classes = this.match[5]; - // Return the list widget - var node = { - type: "list", - attributes: { - filter: {type: "string", value: filter} - } - }; - if(tooltip) { - node.attributes.tooltip = {type: "string", value: tooltip}; - } - if(template) { - node.attributes.template = {type: "string", value: template}; - } - if(style) { - node.attributes.style = {type: "string", value: style}; - } - if(classes) { - node.attributes.itemClass = {type: "string", value: classes.split(".").join(" ")}; - } - return [node]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for marking areas with hard line breaks. For example: - -``` -""" -This is some text -That is set like -It is a Poem -When it is -Clearly -Not -""" -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "hardlinebreaks"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /"""(?:\r?\n)?/mg; -}; - -exports.parse = function() { - var reEnd = /(""")|(\r?\n)/mg, - tree = [], - match; - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - do { - // Parse the run up to the terminator - tree.push.apply(tree,this.parser.parseInlineRun(reEnd,{eatTerminator: false})); - // Redo the terminator match - reEnd.lastIndex = this.parser.pos; - match = reEnd.exec(this.parser.source); - if(match) { - this.parser.pos = reEnd.lastIndex; - // Add a line break if the terminator was a line break - if(match[2]) { - tree.push({type: "element", tag: "br"}); - } - } - } while(match && !match[1]); - // Return the nodes - return tree; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/heading.js -type: application/javascript -module-type: wikirule - -Wiki text block rule for headings - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "heading"; -exports.types = {block: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /(!{1,6})/mg; -}; - -/* -Parse the most recent match -*/ -exports.parse = function() { - // Get all the details of the match - var headingLevel = this.match[1].length; - // Move past the !s - this.parser.pos = this.matchRegExp.lastIndex; - // Parse any classes, whitespace and then the heading itself - var classes = this.parser.parseClasses(); - this.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true}); - var tree = this.parser.parseInlineRun(/(\r?\n)/mg); - // Return the heading - return [{ - type: "element", - tag: "h" + headingLevel, - attributes: { - "class": {type: "string", value: classes.join(" ")} - }, - children: tree - }]; -}; -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/horizrule.js -type: application/javascript -module-type: wikirule - -Wiki text block rule for rules. For example: - -``` ---- -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "horizrule"; -exports.types = {block: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /-{3,}\r?(?:\n|$)/mg; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - return [{type: "element", tag: "hr"}]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/html.js -type: application/javascript -module-type: wikirule - -Wiki rule for HTML elements and widgets. For example: - -{{{ -<aside> -This is an HTML5 aside element -</aside> - -<$slider target="MyTiddler"> -This is a widget invocation -</$slider> - -}}} - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "html"; -exports.types = {inline: true, block: true}; - -exports.init = function(parser) { - this.parser = parser; -}; - -exports.findNextMatch = function(startPos) { - // Find the next tag - this.nextTag = this.findNextTag(this.parser.source,startPos,{ - requireLineBreak: this.is.block - }); - return this.nextTag ? this.nextTag.start : undefined; -}; - -/* -Parse the most recent match -*/ -exports.parse = function() { - // Retrieve the most recent match so that recursive calls don't overwrite it - var tag = this.nextTag; - this.nextTag = null; - // Advance the parser position to past the tag - this.parser.pos = tag.end; - // Check for an immediately following double linebreak - var hasLineBreak = !tag.isSelfClosing && !!$tw.utils.parseTokenRegExp(this.parser.source,this.parser.pos,/([^\S\n\r]*\r?\n(?:[^\S\n\r]*\r?\n|$))/g); - // Set whether we're in block mode - tag.isBlock = this.is.block || hasLineBreak; - // Parse the body if we need to - if(!tag.isSelfClosing && $tw.config.htmlVoidElements.indexOf(tag.tag) === -1) { - var reEndString = "</" + $tw.utils.escapeRegExp(tag.tag) + ">", - reEnd = new RegExp("(" + reEndString + ")","mg"); - if(hasLineBreak) { - tag.children = this.parser.parseBlocks(reEndString); - } else { - tag.children = this.parser.parseInlineRun(reEnd); - } - reEnd.lastIndex = this.parser.pos; - var endMatch = reEnd.exec(this.parser.source); - if(endMatch && endMatch.index === this.parser.pos) { - this.parser.pos = endMatch.index + endMatch[0].length; - } - } - // Return the tag - return [tag]; -}; - -/* -Look for an HTML tag. Returns null if not found, otherwise returns {type: "element", name:, attributes: [], isSelfClosing:, start:, end:,} -*/ -exports.parseTag = function(source,pos,options) { - options = options || {}; - var token, - node = { - type: "element", - start: pos, - attributes: {} - }; - // Define our regexps - var reTagName = /([a-zA-Z0-9\-\$]+)/g; - // Skip whitespace - pos = $tw.utils.skipWhiteSpace(source,pos); - // Look for a less than sign - token = $tw.utils.parseTokenString(source,pos,"<"); - if(!token) { - return null; - } - pos = token.end; - // Get the tag name - token = $tw.utils.parseTokenRegExp(source,pos,reTagName); - if(!token) { - return null; - } - node.tag = token.match[1]; - if(node.tag.slice(1).indexOf("$") !== -1) { - return null; - } - if(node.tag.charAt(0) === "$") { - node.type = node.tag.substr(1); - } - pos = token.end; - // Check that the tag is terminated by a space, / or > - if(!$tw.utils.parseWhiteSpace(source,pos) && !(source.charAt(pos) === "/") && !(source.charAt(pos) === ">") ) { - return null; - } - // Process attributes - var attribute = $tw.utils.parseAttribute(source,pos); - while(attribute) { - node.attributes[attribute.name] = attribute; - pos = attribute.end; - // Get the next attribute - attribute = $tw.utils.parseAttribute(source,pos); - } - // Skip whitespace - pos = $tw.utils.skipWhiteSpace(source,pos); - // Look for a closing slash - token = $tw.utils.parseTokenString(source,pos,"/"); - if(token) { - pos = token.end; - node.isSelfClosing = true; - } - // Look for a greater than sign - token = $tw.utils.parseTokenString(source,pos,">"); - if(!token) { - return null; - } - pos = token.end; - // Check for a required line break - if(options.requireLineBreak) { - token = $tw.utils.parseTokenRegExp(source,pos,/([^\S\n\r]*\r?\n(?:[^\S\n\r]*\r?\n|$))/g); - if(!token) { - return null; - } - } - // Update the end position - node.end = pos; - return node; -}; - -exports.findNextTag = function(source,pos,options) { - // A regexp for finding candidate HTML tags - var reLookahead = /<([a-zA-Z\-\$]+)/g; - // Find the next candidate - reLookahead.lastIndex = pos; - var match = reLookahead.exec(source); - while(match) { - // Try to parse the candidate as a tag - var tag = this.parseTag(source,match.index,options); - // Return success - if(tag && this.isLegalTag(tag)) { - return tag; - } - // Look for the next match - reLookahead.lastIndex = match.index + 1; - match = reLookahead.exec(source); - } - // Failed - return null; -}; - -exports.isLegalTag = function(tag) { - // Widgets are always OK - if(tag.type !== "element") { - return true; - // If it's an HTML tag that starts with a dash then it's not legal - } else if(tag.tag.charAt(0) === "-") { - return false; - } else { - // Otherwise it's OK - return true; - } -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/image.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for embedding images. For example: - -``` -[img[https://tiddlywiki.com/fractalveg.jpg]] -[img width=23 height=24 [https://tiddlywiki.com/fractalveg.jpg]] -[img width={{!!width}} height={{!!height}} [https://tiddlywiki.com/fractalveg.jpg]] -[img[Description of image|https://tiddlywiki.com/fractalveg.jpg]] -[img[TiddlerTitle]] -[img[Description of image|TiddlerTitle]] -``` - -Generates the `<$image>` widget. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "image"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; -}; - -exports.findNextMatch = function(startPos) { - // Find the next tag - this.nextImage = this.findNextImage(this.parser.source,startPos); - return this.nextImage ? this.nextImage.start : undefined; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.nextImage.end; - var node = { - type: "image", - attributes: this.nextImage.attributes - }; - return [node]; -}; - -/* -Find the next image from the current position -*/ -exports.findNextImage = function(source,pos) { - // A regexp for finding candidate HTML tags - var reLookahead = /(\[img)/g; - // Find the next candidate - reLookahead.lastIndex = pos; - var match = reLookahead.exec(source); - while(match) { - // Try to parse the candidate as a tag - var tag = this.parseImage(source,match.index); - // Return success - if(tag) { - return tag; - } - // Look for the next match - reLookahead.lastIndex = match.index + 1; - match = reLookahead.exec(source); - } - // Failed - return null; -}; - -/* -Look for an image at the specified position. Returns null if not found, otherwise returns {type: "image", attributes: [], isSelfClosing:, start:, end:,} -*/ -exports.parseImage = function(source,pos) { - var token, - node = { - type: "image", - start: pos, - attributes: {} - }; - // Skip whitespace - pos = $tw.utils.skipWhiteSpace(source,pos); - // Look for the `[img` - token = $tw.utils.parseTokenString(source,pos,"[img"); - if(!token) { - return null; - } - pos = token.end; - // Skip whitespace - pos = $tw.utils.skipWhiteSpace(source,pos); - // Process attributes - if(source.charAt(pos) !== "[") { - var attribute = $tw.utils.parseAttribute(source,pos); - while(attribute) { - node.attributes[attribute.name] = attribute; - pos = attribute.end; - pos = $tw.utils.skipWhiteSpace(source,pos); - if(source.charAt(pos) !== "[") { - // Get the next attribute - attribute = $tw.utils.parseAttribute(source,pos); - } else { - attribute = null; - } - } - } - // Skip whitespace - pos = $tw.utils.skipWhiteSpace(source,pos); - // Look for the `[` after the attributes - token = $tw.utils.parseTokenString(source,pos,"["); - if(!token) { - return null; - } - pos = token.end; - // Skip whitespace - pos = $tw.utils.skipWhiteSpace(source,pos); - // Get the source up to the terminating `]]` - token = $tw.utils.parseTokenRegExp(source,pos,/(?:([^|\]]*?)\|)?([^\]]+?)\]\]/g); - if(!token) { - return null; - } - pos = token.end; - if(token.match[1]) { - node.attributes.tooltip = {type: "string", value: token.match[1].trim()}; - } - node.attributes.source = {type: "string", value: (token.match[2] || "").trim()}; - // Update the end position - node.end = pos; - return node; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/import.js -type: application/javascript -module-type: wikirule - -Wiki pragma rule for importing variable definitions - -``` -\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "import"; -exports.types = {pragma: true}; - -/* -Instantiate parse rule -*/ -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /^\\import[^\S\n]/mg; -}; - -/* -Parse the most recent match -*/ -exports.parse = function() { - var self = this; - // Move past the pragma invocation - this.parser.pos = this.matchRegExp.lastIndex; - // Parse the filter terminated by a line break - var reMatch = /(.*)(\r?\n)|$/mg; - reMatch.lastIndex = this.parser.pos; - var match = reMatch.exec(this.parser.source); - this.parser.pos = reMatch.lastIndex; - // Parse tree nodes to return - return [{ - type: "importvariables", - attributes: { - filter: {type: "string", value: match[1]} - }, - children: [] - }]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/list.js -type: application/javascript -module-type: wikirule - -Wiki text block rule for lists. For example: - -``` -* This is an unordered list -* It has two items - -# This is a numbered list -## With a subitem -# And a third item - -; This is a term that is being defined -: This is the definition of that term -``` - -Note that lists can be nested arbitrarily: - -``` -#** One -#* Two -#** Three -#**** Four -#**# Five -#**## Six -## Seven -### Eight -## Nine -``` - -A CSS class can be applied to a list item as follows: - -``` -* List item one -*.active List item two has the class `active` -* List item three -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "list"; -exports.types = {block: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /([\*#;:>]+)/mg; -}; - -var listTypes = { - "*": {listTag: "ul", itemTag: "li"}, - "#": {listTag: "ol", itemTag: "li"}, - ";": {listTag: "dl", itemTag: "dt"}, - ":": {listTag: "dl", itemTag: "dd"}, - ">": {listTag: "blockquote", itemTag: "div"} -}; - -/* -Parse the most recent match -*/ -exports.parse = function() { - // Array of parse tree nodes for the previous row of the list - var listStack = []; - // Cycle through the items in the list - while(true) { - // Match the list marker - var reMatch = /([\*#;:>]+)/mg; - reMatch.lastIndex = this.parser.pos; - var match = reMatch.exec(this.parser.source); - if(!match || match.index !== this.parser.pos) { - break; - } - // Check whether the list type of the top level matches - var listInfo = listTypes[match[0].charAt(0)]; - if(listStack.length > 0 && listStack[0].tag !== listInfo.listTag) { - break; - } - // Move past the list marker - this.parser.pos = match.index + match[0].length; - // Walk through the list markers for the current row - for(var t=0; t<match[0].length; t++) { - listInfo = listTypes[match[0].charAt(t)]; - // Remove any stacked up element if we can't re-use it because the list type doesn't match - if(listStack.length > t && listStack[t].tag !== listInfo.listTag) { - listStack.splice(t,listStack.length - t); - } - // Construct the list element or reuse the previous one at this level - if(listStack.length <= t) { - var listElement = {type: "element", tag: listInfo.listTag, children: [ - {type: "element", tag: listInfo.itemTag, children: []} - ]}; - // Link this list element into the last child item of the parent list item - if(t) { - var prevListItem = listStack[t-1].children[listStack[t-1].children.length-1]; - prevListItem.children.push(listElement); - } - // Save this element in the stack - listStack[t] = listElement; - } else if(t === (match[0].length - 1)) { - listStack[t].children.push({type: "element", tag: listInfo.itemTag, children: []}); - } - } - if(listStack.length > match[0].length) { - listStack.splice(match[0].length,listStack.length - match[0].length); - } - // Process the body of the list item into the last list item - var lastListChildren = listStack[listStack.length-1].children, - lastListItem = lastListChildren[lastListChildren.length-1], - classes = this.parser.parseClasses(); - this.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true}); - var tree = this.parser.parseInlineRun(/(\r?\n)/mg); - lastListItem.children.push.apply(lastListItem.children,tree); - if(classes.length > 0) { - $tw.utils.addClassToParseTreeNode(lastListItem,classes.join(" ")); - } - // Consume any whitespace following the list item - this.parser.skipWhitespace(); - } - // Return the root element of the list - return [listStack[0]]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/macrocallblock.js -type: application/javascript -module-type: wikirule - -Wiki rule for block macro calls - -``` -<<name value value2>> -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "macrocallblock"; -exports.types = {block: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /<<([^>\s]+)(?:\s*)((?:[^>]|(?:>(?!>)))*?)>>(?:\r?\n|$)/mg; -}; - -/* -Parse the most recent match -*/ -exports.parse = function() { - // Get all the details of the match - var macroName = this.match[1], - paramString = this.match[2]; - // Move past the macro call - this.parser.pos = this.matchRegExp.lastIndex; - var params = [], - reParam = /\s*(?:([A-Za-z0-9\-_]+)\s*:)?(?:\s*(?:"""([\s\S]*?)"""|"([^"]*)"|'([^']*)'|\[\[([^\]]*)\]\]|([^"'\s]+)))/mg, - paramMatch = reParam.exec(paramString); - while(paramMatch) { - // Process this parameter - var paramInfo = { - value: paramMatch[2] || paramMatch[3] || paramMatch[4] || paramMatch[5] || paramMatch[6] - }; - if(paramMatch[1]) { - paramInfo.name = paramMatch[1]; - } - params.push(paramInfo); - // Find the next match - paramMatch = reParam.exec(paramString); - } - return [{ - type: "macrocall", - name: macroName, - params: params, - isBlock: true - }]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/macrocallinline.js -type: application/javascript -module-type: wikirule - -Wiki rule for macro calls - -``` -<<name value value2>> -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "macrocallinline"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /<<([^\s>]+)\s*([\s\S]*?)>>/mg; -}; - -/* -Parse the most recent match -*/ -exports.parse = function() { - // Get all the details of the match - var macroName = this.match[1], - paramString = this.match[2]; - // Move past the macro call - this.parser.pos = this.matchRegExp.lastIndex; - var params = [], - reParam = /\s*(?:([A-Za-z0-9\-_]+)\s*:)?(?:\s*(?:"""([\s\S]*?)"""|"([^"]*)"|'([^']*)'|\[\[([^\]]*)\]\]|([^"'\s]+)))/mg, - paramMatch = reParam.exec(paramString); - while(paramMatch) { - // Process this parameter - var paramInfo = { - value: paramMatch[2] || paramMatch[3] || paramMatch[4] || paramMatch[5]|| paramMatch[6] - }; - if(paramMatch[1]) { - paramInfo.name = paramMatch[1]; - } - params.push(paramInfo); - // Find the next match - paramMatch = reParam.exec(paramString); - } - return [{ - type: "macrocall", - name: macroName, - params: params - }]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/macrodef.js -type: application/javascript -module-type: wikirule - -Wiki pragma rule for macro definitions - -``` -\define name(param:defaultvalue,param2:defaultvalue) -definition text, including $param$ markers -\end -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "macrodef"; -exports.types = {pragma: true}; - -/* -Instantiate parse rule -*/ -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /^\\define\s+([^(\s]+)\(\s*([^)]*)\)(\s*\r?\n)?/mg; -}; - -/* -Parse the most recent match -*/ -exports.parse = function() { - // Move past the macro name and parameters - this.parser.pos = this.matchRegExp.lastIndex; - // Parse the parameters - var paramString = this.match[2], - params = []; - if(paramString !== "") { - var reParam = /\s*([A-Za-z0-9\-_]+)(?:\s*:\s*(?:"""([\s\S]*?)"""|"([^"]*)"|'([^']*)'|\[\[([^\]]*)\]\]|([^"'\s]+)))?/mg, - paramMatch = reParam.exec(paramString); - while(paramMatch) { - // Save the parameter details - var paramInfo = {name: paramMatch[1]}, - defaultValue = paramMatch[2] || paramMatch[3] || paramMatch[4] || paramMatch[5] || paramMatch[6]; - if(defaultValue) { - paramInfo["default"] = defaultValue; - } - params.push(paramInfo); - // Look for the next parameter - paramMatch = reParam.exec(paramString); - } - } - // Is this a multiline definition? - var reEnd; - if(this.match[3]) { - // If so, the end of the body is marked with \end - reEnd = /(\r?\n\\end[^\S\n\r]*(?:$|\r?\n))/mg; - } else { - // Otherwise, the end of the definition is marked by the end of the line - reEnd = /($|\r?\n)/mg; - // Move past any whitespace - this.parser.pos = $tw.utils.skipWhiteSpace(this.parser.source,this.parser.pos); - } - // Find the end of the definition - reEnd.lastIndex = this.parser.pos; - var text, - endMatch = reEnd.exec(this.parser.source); - if(endMatch) { - text = this.parser.source.substring(this.parser.pos,endMatch.index); - this.parser.pos = endMatch.index + endMatch[0].length; - } else { - // We didn't find the end of the definition, so we'll make it blank - text = ""; - } - // Save the macro definition - return [{ - type: "set", - attributes: { - name: {type: "string", value: this.match[1]}, - value: {type: "string", value: text} - }, - children: [], - params: params, - isMacroDefinition: true - }]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/prettyextlink.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for external links. For example: - -``` -[ext[https://tiddlywiki.com/fractalveg.jpg]] -[ext[Tooltip|https://tiddlywiki.com/fractalveg.jpg]] -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "prettyextlink"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; -}; - -exports.findNextMatch = function(startPos) { - // Find the next tag - this.nextLink = this.findNextLink(this.parser.source,startPos); - return this.nextLink ? this.nextLink.start : undefined; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.nextLink.end; - return [this.nextLink]; -}; - -/* -Find the next link from the current position -*/ -exports.findNextLink = function(source,pos) { - // A regexp for finding candidate links - var reLookahead = /(\[ext\[)/g; - // Find the next candidate - reLookahead.lastIndex = pos; - var match = reLookahead.exec(source); - while(match) { - // Try to parse the candidate as a link - var link = this.parseLink(source,match.index); - // Return success - if(link) { - return link; - } - // Look for the next match - reLookahead.lastIndex = match.index + 1; - match = reLookahead.exec(source); - } - // Failed - return null; -}; - -/* -Look for an link at the specified position. Returns null if not found, otherwise returns {type: "element", tag: "a", attributes: [], isSelfClosing:, start:, end:,} -*/ -exports.parseLink = function(source,pos) { - var token, - textNode = { - type: "text" - }, - node = { - type: "element", - tag: "a", - start: pos, - attributes: { - "class": {type: "string", value: "tc-tiddlylink-external"}, - }, - children: [textNode] - }; - // Skip whitespace - pos = $tw.utils.skipWhiteSpace(source,pos); - // Look for the `[ext[` - token = $tw.utils.parseTokenString(source,pos,"[ext["); - if(!token) { - return null; - } - pos = token.end; - // Look ahead for the terminating `]]` - var closePos = source.indexOf("]]",pos); - if(closePos === -1) { - return null; - } - // Look for a `|` separating the tooltip - var splitPos = source.indexOf("|",pos); - if(splitPos === -1 || splitPos > closePos) { - splitPos = null; - } - // Pull out the tooltip and URL - var tooltip, URL; - if(splitPos) { - URL = source.substring(splitPos + 1,closePos).trim(); - textNode.text = source.substring(pos,splitPos).trim(); - } else { - URL = source.substring(pos,closePos).trim(); - textNode.text = URL; - } - node.attributes.href = {type: "string", value: URL}; - node.attributes.target = {type: "string", value: "_blank"}; - node.attributes.rel = {type: "string", value: "noopener noreferrer"}; - // Update the end position - node.end = closePos + 2; - return node; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/prettylink.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for pretty links. For example: - -``` -[[Introduction]] - -[[Link description|TiddlerTitle]] -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "prettylink"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /\[\[(.*?)(?:\|(.*?))?\]\]/mg; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - // Process the link - var text = this.match[1], - link = this.match[2] || text; - if($tw.utils.isLinkExternal(link)) { - return [{ - type: "element", - tag: "a", - attributes: { - href: {type: "string", value: link}, - "class": {type: "string", value: "tc-tiddlylink-external"}, - target: {type: "string", value: "_blank"}, - rel: {type: "string", value: "noopener noreferrer"} - }, - children: [{ - type: "text", text: text - }] - }]; - } else { - return [{ - type: "link", - attributes: { - to: {type: "string", value: link} - }, - children: [{ - type: "text", text: text - }] - }]; - } -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/quoteblock.js -type: application/javascript -module-type: wikirule - -Wiki text rule for quote blocks. For example: - -``` - <<<.optionalClass(es) optional cited from - a quote - <<< - - <<<.optionalClass(es) - a quote - <<< optional cited from -``` - -Quotes can be quoted by putting more <s - -``` - <<< - Quote Level 1 - - <<<< - QuoteLevel 2 - <<<< - - <<< -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "quoteblock"; -exports.types = {block: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /(<<<+)/mg; -}; - -exports.parse = function() { - var classes = ["tc-quote"]; - // Get all the details of the match - var reEndString = "^" + this.match[1] + "(?!<)"; - // Move past the <s - this.parser.pos = this.matchRegExp.lastIndex; - - // Parse any classes, whitespace and then the optional cite itself - classes.push.apply(classes, this.parser.parseClasses()); - this.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true}); - var cite = this.parser.parseInlineRun(/(\r?\n)/mg); - // before handling the cite, parse the body of the quote - var tree= this.parser.parseBlocks(reEndString); - // If we got a cite, put it before the text - if(cite.length > 0) { - tree.unshift({ - type: "element", - tag: "cite", - children: cite - }); - } - // Parse any optional cite - this.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true}); - cite = this.parser.parseInlineRun(/(\r?\n)/mg); - // If we got a cite, push it - if(cite.length > 0) { - tree.push({ - type: "element", - tag: "cite", - children: cite - }); - } - // Return the blockquote element - return [{ - type: "element", - tag: "blockquote", - attributes: { - class: { type: "string", value: classes.join(" ") }, - }, - children: tree - }]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/rules.js -type: application/javascript -module-type: wikirule - -Wiki pragma rule for rules specifications - -``` -\rules except ruleone ruletwo rulethree -\rules only ruleone ruletwo rulethree -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "rules"; -exports.types = {pragma: true}; - -/* -Instantiate parse rule -*/ -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /^\\rules[^\S\n]/mg; -}; - -/* -Parse the most recent match -*/ -exports.parse = function() { - // Move past the pragma invocation - this.parser.pos = this.matchRegExp.lastIndex; - // Parse whitespace delimited tokens terminated by a line break - var reMatch = /[^\S\n]*(\S+)|(\r?\n)/mg, - tokens = []; - reMatch.lastIndex = this.parser.pos; - var match = reMatch.exec(this.parser.source); - while(match && match.index === this.parser.pos) { - this.parser.pos = reMatch.lastIndex; - // Exit if we've got the line break - if(match[2]) { - break; - } - // Process the token - if(match[1]) { - tokens.push(match[1]); - } - // Match the next token - match = reMatch.exec(this.parser.source); - } - // Process the tokens - if(tokens.length > 0) { - this.parser.amendRules(tokens[0],tokens.slice(1)); - } - // No parse tree nodes to return - return []; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/styleblock.js -type: application/javascript -module-type: wikirule - -Wiki text block rule for assigning styles and classes to paragraphs and other blocks. For example: - -``` -@@.myClass -@@background-color:red; -This paragraph will have the CSS class `myClass`. - -* The `<ul>` around this list will also have the class `myClass` -* List item 2 - -@@ -``` - -Note that classes and styles can be mixed subject to the rule that styles must precede classes. For example - -``` -@@.myFirstClass.mySecondClass -@@width:100px;.myThirdClass -This is a paragraph -@@ -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "styleblock"; -exports.types = {block: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /@@((?:[^\.\r\n\s:]+:[^\r\n;]+;)+)?(?:\.([^\r\n\s]+))?\r?\n/mg; -}; - -exports.parse = function() { - var reEndString = "^@@(?:\\r?\\n)?"; - var classes = [], styles = []; - do { - // Get the class and style - if(this.match[1]) { - styles.push(this.match[1]); - } - if(this.match[2]) { - classes.push(this.match[2].split(".").join(" ")); - } - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - // Look for another line of classes and styles - this.match = this.matchRegExp.exec(this.parser.source); - } while(this.match && this.match.index === this.parser.pos); - // Parse the body - var tree = this.parser.parseBlocks(reEndString); - for(var t=0; t<tree.length; t++) { - if(classes.length > 0) { - $tw.utils.addClassToParseTreeNode(tree[t],classes.join(" ")); - } - if(styles.length > 0) { - $tw.utils.addAttributeToParseTreeNode(tree[t],"style",styles.join("")); - } - } - return tree; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/styleinline.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for assigning styles and classes to inline runs. For example: - -``` -@@.myClass This is some text with a class@@ -@@background-color:red;This is some text with a background colour@@ -@@width:100px;.myClass This is some text with a class and a width@@ -``` - - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "styleinline"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /@@((?:[^\.\r\n\s:]+:[^\r\n;]+;)+)?(\.(?:[^\r\n\s]+)\s+)?/mg; -}; - -exports.parse = function() { - var reEnd = /@@/g; - // Get the styles and class - var stylesString = this.match[1], - classString = this.match[2] ? this.match[2].split(".").join(" ") : undefined; - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - // Parse the run up to the terminator - var tree = this.parser.parseInlineRun(reEnd,{eatTerminator: true}); - // Return the classed span - var node = { - type: "element", - tag: "span", - attributes: { - "class": {type: "string", value: "tc-inline-style"} - }, - children: tree - }; - if(classString) { - $tw.utils.addClassToParseTreeNode(node,classString); - } - if(stylesString) { - $tw.utils.addAttributeToParseTreeNode(node,"style",stylesString); - } - return [node]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/syslink.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for system tiddler links. -Can be suppressed preceding them with `~`. -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "syslink"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = new RegExp( - "~?\\$:\\/[" + - $tw.config.textPrimitives.anyLetter.substr(1,$tw.config.textPrimitives.anyLetter.length - 2) + - "\/._-]+", - "mg" - ); -}; - -exports.parse = function() { - var match = this.match[0]; - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - // Create the link unless it is suppressed - if(match.substr(0,1) === "~") { - return [{type: "text", text: match.substr(1)}]; - } else { - return [{ - type: "link", - attributes: { - to: {type: "string", value: match} - }, - children: [{ - type: "text", - text: match - }] - }]; - } -}; - -})();-
/*\ -title: $:/core/modules/parsers/wikiparser/rules/table.js -type: application/javascript -module-type: wikirule - -Wiki text block rule for tables. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "table"; -exports.types = {block: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /^\|(?:[^\n]*)\|(?:[fhck]?)\r?(?:\n|$)/mg; -}; - -var processRow = function(prevColumns) { - var cellRegExp = /(?:\|([^\n\|]*)\|)|(\|[fhck]?\r?(?:\n|$))/mg, - cellTermRegExp = /((?:\x20*)\|)/mg, - tree = [], - col = 0, - colSpanCount = 1, - prevCell, - vAlign; - // Match a single cell - cellRegExp.lastIndex = this.parser.pos; - var cellMatch = cellRegExp.exec(this.parser.source); - while(cellMatch && cellMatch.index === this.parser.pos) { - if(cellMatch[1] === "~") { - // Rowspan - var last = prevColumns[col]; - if(last) { - last.rowSpanCount++; - $tw.utils.addAttributeToParseTreeNode(last.element,"rowspan",last.rowSpanCount); - vAlign = $tw.utils.getAttributeValueFromParseTreeNode(last.element,"valign","center"); - $tw.utils.addAttributeToParseTreeNode(last.element,"valign",vAlign); - if(colSpanCount > 1) { - $tw.utils.addAttributeToParseTreeNode(last.element,"colspan",colSpanCount); - colSpanCount = 1; - } - } - // Move to just before the `|` terminating the cell - this.parser.pos = cellRegExp.lastIndex - 1; - } else if(cellMatch[1] === ">") { - // Colspan - colSpanCount++; - // Move to just before the `|` terminating the cell - this.parser.pos = cellRegExp.lastIndex - 1; - } else if(cellMatch[1] === "<" && prevCell) { - colSpanCount = 1 + $tw.utils.getAttributeValueFromParseTreeNode(prevCell,"colspan",1); - $tw.utils.addAttributeToParseTreeNode(prevCell,"colspan",colSpanCount); - colSpanCount = 1; - // Move to just before the `|` terminating the cell - this.parser.pos = cellRegExp.lastIndex - 1; - } else if(cellMatch[2]) { - // End of row - if(prevCell && colSpanCount > 1) { - if(prevCell.attributes && prevCell.attributes && prevCell.attributes.colspan) { - colSpanCount += prevCell.attributes.colspan.value; - } else { - colSpanCount -= 1; - } - $tw.utils.addAttributeToParseTreeNode(prevCell,"colspan",colSpanCount); - } - this.parser.pos = cellRegExp.lastIndex - 1; - break; - } else { - // For ordinary cells, step beyond the opening `|` - this.parser.pos++; - // Look for a space at the start of the cell - var spaceLeft = false; - vAlign = null; - if(this.parser.source.substr(this.parser.pos).search(/^\^([^\^]|\^\^)/) === 0) { - vAlign = "top"; - } else if(this.parser.source.substr(this.parser.pos).search(/^,([^,]|,,)/) === 0) { - vAlign = "bottom"; - } - if(vAlign) { - this.parser.pos++; - } - var chr = this.parser.source.substr(this.parser.pos,1); - while(chr === " ") { - spaceLeft = true; - this.parser.pos++; - chr = this.parser.source.substr(this.parser.pos,1); - } - // Check whether this is a heading cell - var cell; - if(chr === "!") { - this.parser.pos++; - cell = {type: "element", tag: "th", children: []}; - } else { - cell = {type: "element", tag: "td", children: []}; - } - tree.push(cell); - // Record information about this cell - prevCell = cell; - prevColumns[col] = {rowSpanCount:1,element:cell}; - // Check for a colspan - if(colSpanCount > 1) { - $tw.utils.addAttributeToParseTreeNode(cell,"colspan",colSpanCount); - colSpanCount = 1; - } - // Parse the cell - cell.children = this.parser.parseInlineRun(cellTermRegExp,{eatTerminator: true}); - // Set the alignment for the cell - if(vAlign) { - $tw.utils.addAttributeToParseTreeNode(cell,"valign",vAlign); - } - if(this.parser.source.substr(this.parser.pos - 2,1) === " ") { // spaceRight - $tw.utils.addAttributeToParseTreeNode(cell,"align",spaceLeft ? "center" : "left"); - } else if(spaceLeft) { - $tw.utils.addAttributeToParseTreeNode(cell,"align","right"); - } - // Move back to the closing `|` - this.parser.pos--; - } - col++; - cellRegExp.lastIndex = this.parser.pos; - cellMatch = cellRegExp.exec(this.parser.source); - } - return tree; -}; - -exports.parse = function() { - var rowContainerTypes = {"c":"caption", "h":"thead", "":"tbody", "f":"tfoot"}, - table = {type: "element", tag: "table", children: []}, - rowRegExp = /^\|([^\n]*)\|([fhck]?)\r?(?:\n|$)/mg, - rowTermRegExp = /(\|(?:[fhck]?)\r?(?:\n|$))/mg, - prevColumns = [], - currRowType, - rowContainer, - rowCount = 0; - // Match the row - rowRegExp.lastIndex = this.parser.pos; - var rowMatch = rowRegExp.exec(this.parser.source); - while(rowMatch && rowMatch.index === this.parser.pos) { - var rowType = rowMatch[2]; - // Check if it is a class assignment - if(rowType === "k") { - $tw.utils.addClassToParseTreeNode(table,rowMatch[1]); - this.parser.pos = rowMatch.index + rowMatch[0].length; - } else { - // Otherwise, create a new row if this one is of a different type - if(rowType !== currRowType) { - rowContainer = {type: "element", tag: rowContainerTypes[rowType], children: []}; - table.children.push(rowContainer); - currRowType = rowType; - } - // Is this a caption row? - if(currRowType === "c") { - // If so, move past the opening `|` of the row - this.parser.pos++; - // Move the caption to the first row if it isn't already - if(table.children.length !== 1) { - table.children.pop(); // Take rowContainer out of the children array - table.children.splice(0,0,rowContainer); // Insert it at the bottom - } - // Set the alignment - TODO: figure out why TW did this -// rowContainer.attributes.align = rowCount === 0 ? "top" : "bottom"; - // Parse the caption - rowContainer.children = this.parser.parseInlineRun(rowTermRegExp,{eatTerminator: true}); - } else { - // Create the row - var theRow = {type: "element", tag: "tr", children: []}; - $tw.utils.addClassToParseTreeNode(theRow,rowCount%2 ? "oddRow" : "evenRow"); - rowContainer.children.push(theRow); - // Process the row - theRow.children = processRow.call(this,prevColumns); - this.parser.pos = rowMatch.index + rowMatch[0].length; - // Increment the row count - rowCount++; - } - } - rowMatch = rowRegExp.exec(this.parser.source); - } - return [table]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/transcludeblock.js -type: application/javascript -module-type: wikirule - -Wiki text rule for block-level transclusion. For example: - -``` -{{MyTiddler}} -{{MyTiddler||TemplateTitle}} -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "transcludeblock"; -exports.types = {block: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /\{\{([^\{\}\|]*)(?:\|\|([^\|\{\}]+))?\}\}(?:\r?\n|$)/mg; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - // Get the match details - var template = $tw.utils.trim(this.match[2]), - textRef = $tw.utils.trim(this.match[1]); - // Prepare the transclude widget - var transcludeNode = { - type: "transclude", - attributes: {}, - isBlock: true - }; - // Prepare the tiddler widget - var tr, targetTitle, targetField, targetIndex, tiddlerNode; - if(textRef) { - tr = $tw.utils.parseTextReference(textRef); - targetTitle = tr.title; - targetField = tr.field; - targetIndex = tr.index; - tiddlerNode = { - type: "tiddler", - attributes: { - tiddler: {type: "string", value: targetTitle} - }, - isBlock: true, - children: [transcludeNode] - }; - } - if(template) { - transcludeNode.attributes.tiddler = {type: "string", value: template}; - if(textRef) { - return [tiddlerNode]; - } else { - return [transcludeNode]; - } - } else { - if(textRef) { - transcludeNode.attributes.tiddler = {type: "string", value: targetTitle}; - if(targetField) { - transcludeNode.attributes.field = {type: "string", value: targetField}; - } - if(targetIndex) { - transcludeNode.attributes.index = {type: "string", value: targetIndex}; - } - return [tiddlerNode]; - } else { - return [transcludeNode]; - } - } -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/transcludeinline.js -type: application/javascript -module-type: wikirule - -Wiki text rule for inline-level transclusion. For example: - -``` -{{MyTiddler}} -{{MyTiddler||TemplateTitle}} -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "transcludeinline"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /\{\{([^\{\}\|]*)(?:\|\|([^\|\{\}]+))?\}\}/mg; -}; - -exports.parse = function() { - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - // Get the match details - var template = $tw.utils.trim(this.match[2]), - textRef = $tw.utils.trim(this.match[1]); - // Prepare the transclude widget - var transcludeNode = { - type: "transclude", - attributes: {} - }; - // Prepare the tiddler widget - var tr, targetTitle, targetField, targetIndex, tiddlerNode; - if(textRef) { - tr = $tw.utils.parseTextReference(textRef); - targetTitle = tr.title; - targetField = tr.field; - targetIndex = tr.index; - tiddlerNode = { - type: "tiddler", - attributes: { - tiddler: {type: "string", value: targetTitle} - }, - children: [transcludeNode] - }; - } - if(template) { - transcludeNode.attributes.tiddler = {type: "string", value: template}; - if(textRef) { - return [tiddlerNode]; - } else { - return [transcludeNode]; - } - } else { - if(textRef) { - transcludeNode.attributes.tiddler = {type: "string", value: targetTitle}; - if(targetField) { - transcludeNode.attributes.field = {type: "string", value: targetField}; - } - if(targetIndex) { - transcludeNode.attributes.index = {type: "string", value: targetIndex}; - } - return [tiddlerNode]; - } else { - return [transcludeNode]; - } - } -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/typedblock.js -type: application/javascript -module-type: wikirule - -Wiki text rule for typed blocks. For example: - -``` -$$$.js -This will be rendered as JavaScript -$$$ - -$$$.svg -<svg xmlns="http://www.w3.org/2000/svg" width="150" height="100"> - <circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red" /> -</svg> -$$$ - -$$$text/vnd.tiddlywiki>text/html -This will be rendered as an //HTML representation// of WikiText -$$$ -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var widget = require("$:/core/modules/widgets/widget.js"); - -exports.name = "typedblock"; -exports.types = {block: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /\$\$\$([^ >\r\n]*)(?: *> *([^ \r\n]+))?\r?\n/mg; -}; - -exports.parse = function() { - var reEnd = /\r?\n\$\$\$\r?(?:\n|$)/mg; - // Save the type - var parseType = this.match[1], - renderType = this.match[2]; - // Move past the match - this.parser.pos = this.matchRegExp.lastIndex; - // Look for the end of the block - reEnd.lastIndex = this.parser.pos; - var match = reEnd.exec(this.parser.source), - text; - // Process the block - if(match) { - text = this.parser.source.substring(this.parser.pos,match.index); - this.parser.pos = match.index + match[0].length; - } else { - text = this.parser.source.substr(this.parser.pos); - this.parser.pos = this.parser.sourceLength; - } - // Parse the block according to the specified type - var parser = this.parser.wiki.parseText(parseType,text,{defaultType: "text/plain"}); - // If there's no render type, just return the parse tree - if(!renderType) { - return parser.tree; - } else { - // Otherwise, render to the rendertype and return in a <PRE> tag - var widgetNode = this.parser.wiki.makeWidget(parser), - container = $tw.fakeDocument.createElement("div"); - widgetNode.render(container,null); - text = renderType === "text/html" ? container.innerHTML : container.textContent; - return [{ - type: "element", - tag: "pre", - children: [{ - type: "text", - text: text - }] - }]; - } -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/whitespace.js -type: application/javascript -module-type: wikirule - -Wiki pragma rule for whitespace specifications - -``` -\whitespace trim -\whitespace notrim -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "whitespace"; -exports.types = {pragma: true}; - -/* -Instantiate parse rule -*/ -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = /^\\whitespace[^\S\n]/mg; -}; - -/* -Parse the most recent match -*/ -exports.parse = function() { - var self = this; - // Move past the pragma invocation - this.parser.pos = this.matchRegExp.lastIndex; - // Parse whitespace delimited tokens terminated by a line break - var reMatch = /[^\S\n]*(\S+)|(\r?\n)/mg, - tokens = []; - reMatch.lastIndex = this.parser.pos; - var match = reMatch.exec(this.parser.source); - while(match && match.index === this.parser.pos) { - this.parser.pos = reMatch.lastIndex; - // Exit if we've got the line break - if(match[2]) { - break; - } - // Process the token - if(match[1]) { - tokens.push(match[1]); - } - // Match the next token - match = reMatch.exec(this.parser.source); - } - // Process the tokens - $tw.utils.each(tokens,function(token) { - switch(token) { - case "trim": - self.parser.configTrimWhiteSpace = true; - break; - case "notrim": - self.parser.configTrimWhiteSpace = false; - break; - } - }); - // No parse tree nodes to return - return []; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/wikilink.js -type: application/javascript -module-type: wikirule - -Wiki text inline rule for wiki links. For example: - -``` -AWikiLink -AnotherLink -~SuppressedLink -``` - -Precede a camel case word with `~` to prevent it from being recognised as a link. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.name = "wikilink"; -exports.types = {inline: true}; - -exports.init = function(parser) { - this.parser = parser; - // Regexp to match - this.matchRegExp = new RegExp($tw.config.textPrimitives.unWikiLink + "?" + $tw.config.textPrimitives.wikiLink,"mg"); -}; - -/* -Parse the most recent match -*/ -exports.parse = function() { - // Get the details of the match - var linkText = this.match[0]; - // Move past the macro call - this.parser.pos = this.matchRegExp.lastIndex; - // If the link starts with the unwikilink character then just output it as plain text - if(linkText.substr(0,1) === $tw.config.textPrimitives.unWikiLink) { - return [{type: "text", text: linkText.substr(1)}]; - } - // If the link has been preceded with a blocked letter then don't treat it as a link - if(this.match.index > 0) { - var preRegExp = new RegExp($tw.config.textPrimitives.blockPrefixLetters,"mg"); - preRegExp.lastIndex = this.match.index-1; - var preMatch = preRegExp.exec(this.parser.source); - if(preMatch && preMatch.index === this.match.index-1) { - return [{type: "text", text: linkText}]; - } - } - return [{ - type: "link", - attributes: { - to: {type: "string", value: linkText} - }, - children: [{ - type: "text", - text: linkText - }] - }]; -}; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/rules/wikirulebase.js -type: application/javascript -module-type: global - -Base class for wiki parser rules - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -This constructor is always overridden with a blank constructor, and so shouldn't be used -*/ -var WikiRuleBase = function() { -}; - -/* -To be overridden by individual rules -*/ -WikiRuleBase.prototype.init = function(parser) { - this.parser = parser; -}; - -/* -Default implementation of findNextMatch uses RegExp matching -*/ -WikiRuleBase.prototype.findNextMatch = function(startPos) { - this.matchRegExp.lastIndex = startPos; - this.match = this.matchRegExp.exec(this.parser.source); - return this.match ? this.match.index : undefined; -}; - -exports.WikiRuleBase = WikiRuleBase; - -})(); --
/*\ -title: $:/core/modules/parsers/wikiparser/wikiparser.js -type: application/javascript -module-type: parser - -The wiki text parser processes blocks of source text into a parse tree. - -The parse tree is made up of nested arrays of these JavaScript objects: - - {type: "element", tag: <string>, attributes: {}, children: []} - an HTML element - {type: "text", text: <string>} - a text node - {type: "entity", value: <string>} - an entity - {type: "raw", html: <string>} - raw HTML - -Attributes are stored as hashmaps of the following objects: - - {type: "string", value: <string>} - literal string - {type: "indirect", textReference: <textReference>} - indirect through a text reference - {type: "macro", macro: <TBD>} - indirect through a macro invocation - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var WikiParser = function(type,text,options) { - this.wiki = options.wiki; - var self = this; - // Check for an externally linked tiddler - if($tw.browser && (text || "") === "" && options._canonical_uri) { - this.loadRemoteTiddler(options._canonical_uri); - text = $tw.language.getRawString("LazyLoadingWarning"); - } - // Initialise the classes if we don't have them already - if(!this.pragmaRuleClasses) { - WikiParser.prototype.pragmaRuleClasses = $tw.modules.createClassesFromModules("wikirule","pragma",$tw.WikiRuleBase); - this.setupRules(WikiParser.prototype.pragmaRuleClasses,"$:/config/WikiParserRules/Pragmas/"); - } - if(!this.blockRuleClasses) { - WikiParser.prototype.blockRuleClasses = $tw.modules.createClassesFromModules("wikirule","block",$tw.WikiRuleBase); - this.setupRules(WikiParser.prototype.blockRuleClasses,"$:/config/WikiParserRules/Block/"); - } - if(!this.inlineRuleClasses) { - WikiParser.prototype.inlineRuleClasses = $tw.modules.createClassesFromModules("wikirule","inline",$tw.WikiRuleBase); - this.setupRules(WikiParser.prototype.inlineRuleClasses,"$:/config/WikiParserRules/Inline/"); - } - // Save the parse text - this.type = type || "text/vnd.tiddlywiki"; - this.source = text || ""; - this.sourceLength = this.source.length; - // Flag for ignoring whitespace - this.configTrimWhiteSpace = false; - // Set current parse position - this.pos = 0; - // Instantiate the pragma parse rules - this.pragmaRules = this.instantiateRules(this.pragmaRuleClasses,"pragma",0); - // Instantiate the parser block and inline rules - this.blockRules = this.instantiateRules(this.blockRuleClasses,"block",0); - this.inlineRules = this.instantiateRules(this.inlineRuleClasses,"inline",0); - // Parse any pragmas - this.tree = []; - var topBranch = this.parsePragmas(); - // Parse the text into inline runs or blocks - if(options.parseAsInline) { - topBranch.push.apply(topBranch,this.parseInlineRun()); - } else { - topBranch.push.apply(topBranch,this.parseBlocks()); - } - // Return the parse tree -}; - -/* -*/ -WikiParser.prototype.loadRemoteTiddler = function(url) { - var self = this; - $tw.utils.httpRequest({ - url: url, - type: "GET", - callback: function(err,data) { - if(!err) { - var tiddlers = self.wiki.deserializeTiddlers(".tid",data,self.wiki.getCreationFields()); - $tw.utils.each(tiddlers,function(tiddler) { - tiddler["_canonical_uri"] = url; - }); - if(tiddlers) { - self.wiki.addTiddlers(tiddlers); - } - } - } - }); -}; - -/* -*/ -WikiParser.prototype.setupRules = function(proto,configPrefix) { - var self = this; - if(!$tw.safemode) { - $tw.utils.each(proto,function(object,name) { - if(self.wiki.getTiddlerText(configPrefix + name,"enable") !== "enable") { - delete proto[name]; - } - }); - } -}; - -/* -Instantiate an array of parse rules -*/ -WikiParser.prototype.instantiateRules = function(classes,type,startPos) { - var rulesInfo = [], - self = this; - $tw.utils.each(classes,function(RuleClass) { - // Instantiate the rule - var rule = new RuleClass(self); - rule.is = {}; - rule.is[type] = true; - rule.init(self); - var matchIndex = rule.findNextMatch(startPos); - if(matchIndex !== undefined) { - rulesInfo.push({ - rule: rule, - matchIndex: matchIndex - }); - } - }); - return rulesInfo; -}; - -/* -Skip any whitespace at the current position. Options are: - treatNewlinesAsNonWhitespace: true if newlines are NOT to be treated as whitespace -*/ -WikiParser.prototype.skipWhitespace = function(options) { - options = options || {}; - var whitespaceRegExp = options.treatNewlinesAsNonWhitespace ? /([^\S\n]+)/mg : /(\s+)/mg; - whitespaceRegExp.lastIndex = this.pos; - var whitespaceMatch = whitespaceRegExp.exec(this.source); - if(whitespaceMatch && whitespaceMatch.index === this.pos) { - this.pos = whitespaceRegExp.lastIndex; - } -}; - -/* -Get the next match out of an array of parse rule instances -*/ -WikiParser.prototype.findNextMatch = function(rules,startPos) { - // Find the best matching rule by finding the closest match position - var matchingRule, - matchingRulePos = this.sourceLength; - // Step through each rule - for(var t=0; t<rules.length; t++) { - var ruleInfo = rules[t]; - // Ask the rule to get the next match if we've moved past the current one - if(ruleInfo.matchIndex !== undefined && ruleInfo.matchIndex < startPos) { - ruleInfo.matchIndex = ruleInfo.rule.findNextMatch(startPos); - } - // Adopt this match if it's closer than the current best match - if(ruleInfo.matchIndex !== undefined && ruleInfo.matchIndex <= matchingRulePos) { - matchingRule = ruleInfo; - matchingRulePos = ruleInfo.matchIndex; - } - } - return matchingRule; -}; - -/* -Parse any pragmas at the beginning of a block of parse text -*/ -WikiParser.prototype.parsePragmas = function() { - var currentTreeBranch = this.tree; - while(true) { - // Skip whitespace - this.skipWhitespace(); - // Check for the end of the text - if(this.pos >= this.sourceLength) { - break; - } - // Check if we've arrived at a pragma rule match - var nextMatch = this.findNextMatch(this.pragmaRules,this.pos); - // If not, just exit - if(!nextMatch || nextMatch.matchIndex !== this.pos) { - break; - } - // Process the pragma rule - var subTree = nextMatch.rule.parse(); - if(subTree.length > 0) { - // Quick hack; we only cope with a single parse tree node being returned, which is true at the moment - currentTreeBranch.push.apply(currentTreeBranch,subTree); - subTree[0].children = []; - currentTreeBranch = subTree[0].children; - } - } - return currentTreeBranch; -}; - -/* -Parse a block from the current position - terminatorRegExpString: optional regular expression string that identifies the end of plain paragraphs. Must not include capturing parenthesis -*/ -WikiParser.prototype.parseBlock = function(terminatorRegExpString) { - var terminatorRegExp = terminatorRegExpString ? new RegExp("(" + terminatorRegExpString + "|\\r?\\n\\r?\\n)","mg") : /(\r?\n\r?\n)/mg; - this.skipWhitespace(); - if(this.pos >= this.sourceLength) { - return []; - } - // Look for a block rule that applies at the current position - var nextMatch = this.findNextMatch(this.blockRules,this.pos); - if(nextMatch && nextMatch.matchIndex === this.pos) { - return nextMatch.rule.parse(); - } - // Treat it as a paragraph if we didn't find a block rule - return [{type: "element", tag: "p", children: this.parseInlineRun(terminatorRegExp)}]; -}; - -/* -Parse a series of blocks of text until a terminating regexp is encountered or the end of the text - terminatorRegExpString: terminating regular expression -*/ -WikiParser.prototype.parseBlocks = function(terminatorRegExpString) { - if(terminatorRegExpString) { - return this.parseBlocksTerminated(terminatorRegExpString); - } else { - return this.parseBlocksUnterminated(); - } -}; - -/* -Parse a block from the current position to the end of the text -*/ -WikiParser.prototype.parseBlocksUnterminated = function() { - var tree = []; - while(this.pos < this.sourceLength) { - tree.push.apply(tree,this.parseBlock()); - } - return tree; -}; - -/* -Parse blocks of text until a terminating regexp is encountered -*/ -WikiParser.prototype.parseBlocksTerminated = function(terminatorRegExpString) { - var terminatorRegExp = new RegExp("(" + terminatorRegExpString + ")","mg"), - tree = []; - // Skip any whitespace - this.skipWhitespace(); - // Check if we've got the end marker - terminatorRegExp.lastIndex = this.pos; - var match = terminatorRegExp.exec(this.source); - // Parse the text into blocks - while(this.pos < this.sourceLength && !(match && match.index === this.pos)) { - var blocks = this.parseBlock(terminatorRegExpString); - tree.push.apply(tree,blocks); - // Skip any whitespace - this.skipWhitespace(); - // Check if we've got the end marker - terminatorRegExp.lastIndex = this.pos; - match = terminatorRegExp.exec(this.source); - } - if(match && match.index === this.pos) { - this.pos = match.index + match[0].length; - } - return tree; -}; - -/* -Parse a run of text at the current position - terminatorRegExp: a regexp at which to stop the run - options: see below -Options available: - eatTerminator: move the parse position past any encountered terminator (default false) -*/ -WikiParser.prototype.parseInlineRun = function(terminatorRegExp,options) { - if(terminatorRegExp) { - return this.parseInlineRunTerminated(terminatorRegExp,options); - } else { - return this.parseInlineRunUnterminated(options); - } -}; - -WikiParser.prototype.parseInlineRunUnterminated = function(options) { - var tree = []; - // Find the next occurrence of an inline rule - var nextMatch = this.findNextMatch(this.inlineRules,this.pos); - // Loop around the matches until we've reached the end of the text - while(this.pos < this.sourceLength && nextMatch) { - // Process the text preceding the run rule - if(nextMatch.matchIndex > this.pos) { - this.pushTextWidget(tree,this.source.substring(this.pos,nextMatch.matchIndex)); - this.pos = nextMatch.matchIndex; - } - // Process the run rule - tree.push.apply(tree,nextMatch.rule.parse()); - // Look for the next run rule - nextMatch = this.findNextMatch(this.inlineRules,this.pos); - } - // Process the remaining text - if(this.pos < this.sourceLength) { - this.pushTextWidget(tree,this.source.substr(this.pos)); - } - this.pos = this.sourceLength; - return tree; -}; - -WikiParser.prototype.parseInlineRunTerminated = function(terminatorRegExp,options) { - options = options || {}; - var tree = []; - // Find the next occurrence of the terminator - terminatorRegExp.lastIndex = this.pos; - var terminatorMatch = terminatorRegExp.exec(this.source); - // Find the next occurrence of a inlinerule - var inlineRuleMatch = this.findNextMatch(this.inlineRules,this.pos); - // Loop around until we've reached the end of the text - while(this.pos < this.sourceLength && (terminatorMatch || inlineRuleMatch)) { - // Return if we've found the terminator, and it precedes any inline rule match - if(terminatorMatch) { - if(!inlineRuleMatch || inlineRuleMatch.matchIndex >= terminatorMatch.index) { - if(terminatorMatch.index > this.pos) { - this.pushTextWidget(tree,this.source.substring(this.pos,terminatorMatch.index)); - } - this.pos = terminatorMatch.index; - if(options.eatTerminator) { - this.pos += terminatorMatch[0].length; - } - return tree; - } - } - // Process any inline rule, along with the text preceding it - if(inlineRuleMatch) { - // Preceding text - if(inlineRuleMatch.matchIndex > this.pos) { - this.pushTextWidget(tree,this.source.substring(this.pos,inlineRuleMatch.matchIndex)); - this.pos = inlineRuleMatch.matchIndex; - } - // Process the inline rule - tree.push.apply(tree,inlineRuleMatch.rule.parse()); - // Look for the next inline rule - inlineRuleMatch = this.findNextMatch(this.inlineRules,this.pos); - // Look for the next terminator match - terminatorRegExp.lastIndex = this.pos; - terminatorMatch = terminatorRegExp.exec(this.source); - } - } - // Process the remaining text - if(this.pos < this.sourceLength) { - this.pushTextWidget(tree,this.source.substr(this.pos)); - } - this.pos = this.sourceLength; - return tree; -}; - -/* -Push a text widget onto an array, respecting the configTrimWhiteSpace setting -*/ -WikiParser.prototype.pushTextWidget = function(array,text) { - if(this.configTrimWhiteSpace) { - text = $tw.utils.trim(text); - } - if(text) { - array.push({type: "text", text: text}); - } -}; - -/* -Parse zero or more class specifiers `.classname` -*/ -WikiParser.prototype.parseClasses = function() { - var classRegExp = /\.([^\s\.]+)/mg, - classNames = []; - classRegExp.lastIndex = this.pos; - var match = classRegExp.exec(this.source); - while(match && match.index === this.pos) { - this.pos = match.index + match[0].length; - classNames.push(match[1]); - match = classRegExp.exec(this.source); - } - return classNames; -}; - -/* -Amend the rules used by this instance of the parser - type: `only` keeps just the named rules, `except` keeps all but the named rules - names: array of rule names -*/ -WikiParser.prototype.amendRules = function(type,names) { - names = names || []; - // Define the filter function - var keepFilter; - if(type === "only") { - keepFilter = function(name) { - return names.indexOf(name) !== -1; - }; - } else if(type === "except") { - keepFilter = function(name) { - return names.indexOf(name) === -1; - }; - } else { - return; - } - // Define a function to process each of our rule arrays - var processRuleArray = function(ruleArray) { - for(var t=ruleArray.length-1; t>=0; t--) { - if(!keepFilter(ruleArray[t].rule.name)) { - ruleArray.splice(t,1); - } - } - }; - // Process each rule array - processRuleArray(this.pragmaRules); - processRuleArray(this.blockRules); - processRuleArray(this.inlineRules); -}; - -exports["text/vnd.tiddlywiki"] = WikiParser; - -})(); - --
/*\ -title: $:/core/modules/pluginswitcher.js -type: application/javascript -module-type: global - -Manages switching plugins for themes and languages. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -options: -wiki: wiki store to be used -pluginType: type of plugin to be switched -controllerTitle: title of tiddler used to control switching of this resource -defaultPlugins: array of default plugins to be used if nominated plugin isn't found -onSwitch: callback when plugin is switched (single parameter is array of plugin titles) -*/ -function PluginSwitcher(options) { - this.wiki = options.wiki; - this.pluginType = options.pluginType; - this.controllerTitle = options.controllerTitle; - this.defaultPlugins = options.defaultPlugins || []; - this.onSwitch = options.onSwitch; - // Switch to the current plugin - this.switchPlugins(); - // Listen for changes to the selected plugin - var self = this; - this.wiki.addEventListener("change",function(changes) { - if($tw.utils.hop(changes,self.controllerTitle)) { - self.switchPlugins(); - } - }); -} - -PluginSwitcher.prototype.switchPlugins = function() { - // Get the name of the current theme - var selectedPluginTitle = this.wiki.getTiddlerText(this.controllerTitle); - // If it doesn't exist, then fallback to one of the default themes - var index = 0; - while(!this.wiki.getTiddler(selectedPluginTitle) && index < this.defaultPlugins.length) { - selectedPluginTitle = this.defaultPlugins[index++]; - } - // Accumulate the titles of the plugins that we need to load - var plugins = [], - self = this, - accumulatePlugin = function(title) { - var tiddler = self.wiki.getTiddler(title); - if(tiddler && tiddler.isPlugin() && plugins.indexOf(title) === -1) { - plugins.push(title); - var pluginInfo = JSON.parse(self.wiki.getTiddlerText(title)), - dependents = $tw.utils.parseStringArray(tiddler.fields.dependents || ""); - $tw.utils.each(dependents,function(title) { - accumulatePlugin(title); - }); - } - }; - accumulatePlugin(selectedPluginTitle); - // Read the plugin info for the incoming plugins - var changes = $tw.wiki.readPluginInfo(plugins); - // Unregister any existing theme tiddlers - var unregisteredTiddlers = $tw.wiki.unregisterPluginTiddlers(this.pluginType); - // Register any new theme tiddlers - var registeredTiddlers = $tw.wiki.registerPluginTiddlers(this.pluginType,plugins); - // Unpack the current theme tiddlers - $tw.wiki.unpackPluginTiddlers(); - // Call the switch handler - if(this.onSwitch) { - this.onSwitch(plugins); - } -}; - -exports.PluginSwitcher = PluginSwitcher; - -})(); --
/*\ -title: $:/core/modules/saver-handler.js -type: application/javascript -module-type: global - -The saver handler tracks changes to the store and handles saving the entire wiki via saver modules. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Instantiate the saver handler with the following options: -wiki: wiki to be synced -dirtyTracking: true if dirty tracking should be performed -*/ -function SaverHandler(options) { - var self = this; - this.wiki = options.wiki; - this.dirtyTracking = options.dirtyTracking; - this.preloadDirty = options.preloadDirty || []; - this.pendingAutoSave = false; - // Make a logger - this.logger = new $tw.utils.Logger("saver-handler"); - // Initialise our savers - if($tw.browser) { - this.initSavers(); - } - // Only do dirty tracking if required - if($tw.browser && this.dirtyTracking) { - // Compile the dirty tiddler filter - this.filterFn = this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter)); - // Count of changes that have not yet been saved - var filteredChanges = self.filterFn.call(self.wiki,function(iterator) { - $tw.utils.each(self.preloadDirty,function(title) { - var tiddler = self.wiki.getTiddler(title); - iterator(tiddler,title); - }); - }); - this.numChanges = filteredChanges.length; - // Listen out for changes to tiddlers - this.wiki.addEventListener("change",function(changes) { - // Filter the changes so that we only count changes to tiddlers that we care about - var filteredChanges = self.filterFn.call(self.wiki,function(iterator) { - $tw.utils.each(changes,function(change,title) { - var tiddler = self.wiki.getTiddler(title); - iterator(tiddler,title); - }); - }); - // Adjust the number of changes - self.numChanges += filteredChanges.length; - self.updateDirtyStatus(); - // Do any autosave if one is pending and there's no more change events - if(self.pendingAutoSave && self.wiki.getSizeOfTiddlerEventQueue() === 0) { - // Check if we're dirty - if(self.numChanges > 0) { - self.saveWiki({ - method: "autosave", - downloadType: "text/plain" - }); - } - self.pendingAutoSave = false; - } - }); - // Listen for the autosave event - $tw.rootWidget.addEventListener("tm-auto-save-wiki",function(event) { - // Do the autosave unless there are outstanding tiddler change events - if(self.wiki.getSizeOfTiddlerEventQueue() === 0) { - // Check if we're dirty - if(self.numChanges > 0) { - self.saveWiki({ - method: "autosave", - downloadType: "text/plain" - }); - } - } else { - // Otherwise put ourselves in the "pending autosave" state and wait for the change event before we do the autosave - self.pendingAutoSave = true; - } - }); - // Set up our beforeunload handler - $tw.addUnloadTask(function(event) { - var confirmationMessage; - if(self.isDirty()) { - confirmationMessage = $tw.language.getString("UnsavedChangesWarning"); - event.returnValue = confirmationMessage; // Gecko - } - return confirmationMessage; - }); - } - // Install the save action handlers - if($tw.browser) { - $tw.rootWidget.addEventListener("tm-save-wiki",function(event) { - self.saveWiki({ - template: event.param, - downloadType: "text/plain", - variables: event.paramObject - }); - }); - $tw.rootWidget.addEventListener("tm-download-file",function(event) { - self.saveWiki({ - method: "download", - template: event.param, - downloadType: "text/plain", - variables: event.paramObject - }); - }); - } -} - -SaverHandler.prototype.titleSyncFilter = "$:/config/SaverFilter"; -SaverHandler.prototype.titleAutoSave = "$:/config/AutoSave"; -SaverHandler.prototype.titleSavedNotification = "$:/language/Notifications/Save/Done"; - -/* -Select the appropriate saver modules and set them up -*/ -SaverHandler.prototype.initSavers = function(moduleType) { - moduleType = moduleType || "saver"; - // Instantiate the available savers - this.savers = []; - var self = this; - $tw.modules.forEachModuleOfType(moduleType,function(title,module) { - if(module.canSave(self)) { - self.savers.push(module.create(self.wiki)); - } - }); - // Sort the savers into priority order - this.savers.sort(function(a,b) { - if(a.info.priority < b.info.priority) { - return -1; - } else { - if(a.info.priority > b.info.priority) { - return +1; - } else { - return 0; - } - } - }); -}; - -/* -Save the wiki contents. Options are: - method: "save", "autosave" or "download" - template: the tiddler containing the template to save - downloadType: the content type for the saved file -*/ -SaverHandler.prototype.saveWiki = function(options) { - options = options || {}; - var self = this, - method = options.method || "save"; - // Ignore autosave if disabled - if(method === "autosave" && this.wiki.getTiddlerText(this.titleAutoSave,"yes") !== "yes") { - return false; - } - var variables = options.variables || {}, - template = options.template || "$:/core/save/all", - downloadType = options.downloadType || "text/plain", - text = this.wiki.renderTiddler(downloadType,template,options), - callback = function(err) { - if(err) { - alert($tw.language.getString("Error/WhileSaving") + ":\n\n" + err); - } else { - // Clear the task queue if we're saving (rather than downloading) - if(method !== "download") { - self.numChanges = 0; - self.updateDirtyStatus(); - } - $tw.notifier.display(self.titleSavedNotification); - if(options.callback) { - options.callback(); - } - } - }; - // Call the highest priority saver that supports this method - for(var t=this.savers.length-1; t>=0; t--) { - var saver = this.savers[t]; - if(saver.info.capabilities.indexOf(method) !== -1 && saver.save(text,method,callback,{variables: {filename: variables.filename}})) { - this.logger.log("Saving wiki with method",method,"through saver",saver.info.name); - return true; - } - } - return false; -}; - -/* -Checks whether the wiki is dirty (ie the window shouldn't be closed) -*/ -SaverHandler.prototype.isDirty = function() { - return this.numChanges > 0; -}; - -/* -Update the document body with the class "tc-dirty" if the wiki has unsaved/unsynced changes -*/ -SaverHandler.prototype.updateDirtyStatus = function() { - if($tw.browser) { - $tw.utils.toggleClass(document.body,"tc-dirty",this.isDirty()); - } -}; - -exports.SaverHandler = SaverHandler; - -})(); --
/*\ -title: $:/core/modules/savers/andtidwiki.js -type: application/javascript -module-type: saver - -Handles saving changes via the AndTidWiki Android app - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false, netscape: false, Components: false */ -"use strict"; - -var AndTidWiki = function(wiki) { -}; - -AndTidWiki.prototype.save = function(text,method,callback,options) { - var filename = options && options.variables ? options.variables.filename : null; - if (method === "download") { - // Support download - if (window.twi.saveDownload) { - try { - window.twi.saveDownload(text,filename); - } catch(err) { - if (err.message === "Method not found") { - window.twi.saveDownload(text); - } - } - } else { - var link = document.createElement("a"); - link.setAttribute("href","data:text/plain," + encodeURIComponent(text)); - if (filename) { - link.setAttribute("download",filename); - } - document.body.appendChild(link); - link.click(); - document.body.removeChild(link); - } - } else if (window.twi.saveWiki) { - // Direct save in Tiddloid - window.twi.saveWiki(text); - } else { - // Get the pathname of this document - var pathname = decodeURIComponent(document.location.toString().split("#")[0]); - // Strip the file:// - if(pathname.indexOf("file://") === 0) { - pathname = pathname.substr(7); - } - // Strip any query or location part - var p = pathname.indexOf("?"); - if(p !== -1) { - pathname = pathname.substr(0,p); - } - p = pathname.indexOf("#"); - if(p !== -1) { - pathname = pathname.substr(0,p); - } - // Save the file - window.twi.saveFile(pathname,text); - } - // Call the callback - callback(null); - return true; -}; - -/* -Information about this saver -*/ -AndTidWiki.prototype.info = { - name: "andtidwiki", - priority: 1600, - capabilities: ["save", "autosave", "download"] -}; - -/* -Static method that returns true if this saver is capable of working -*/ -exports.canSave = function(wiki) { - return !!window.twi && !!window.twi.saveFile; -}; - -/* -Create an instance of this saver -*/ -exports.create = function(wiki) { - return new AndTidWiki(wiki); -}; - -})(); --
/*\ -title: $:/core/modules/savers/beaker.js -type: application/javascript -module-type: saver - -Saves files using the Beaker browser's (https://beakerbrowser.com) Dat protocol (https://datproject.org/) -Compatible with beaker >= V0.7.2 - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Set up the saver -*/ -var BeakerSaver = function(wiki) { - this.wiki = wiki; -}; - -BeakerSaver.prototype.save = function(text,method,callback) { - var dat = new DatArchive("" + window.location), - pathname = ("" + window.location.pathname).split("#")[0]; - dat.stat(pathname).then(function(value) { - if(value.isDirectory()) { - pathname = pathname + "/index.html"; - } - dat.writeFile(pathname,text,"utf8").then(function(value) { - callback(null); - },function(reason) { - callback("Beaker Saver Write Error: " + reason); - }); - },function(reason) { - callback("Beaker Saver Stat Error: " + reason); - }); - return true; -}; - -/* -Information about this saver -*/ -BeakerSaver.prototype.info = { - name: "beaker", - priority: 3000, - capabilities: ["save", "autosave"] -}; - -/* -Static method that returns true if this saver is capable of working -*/ -exports.canSave = function(wiki) { - return !!window.DatArchive && location.protocol==="dat:"; -}; - -/* -Create an instance of this saver -*/ -exports.create = function(wiki) { - return new BeakerSaver(wiki); -}; - -})(); --
/*\ -title: $:/core/modules/savers/download.js -type: application/javascript -module-type: saver - -Handles saving changes via HTML5's download APIs - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Select the appropriate saver module and set it up -*/ -var DownloadSaver = function(wiki) { -}; - -DownloadSaver.prototype.save = function(text,method,callback,options) { - options = options || {}; - // Get the current filename - var filename = options.variables.filename; - if(!filename) { - var p = document.location.pathname.lastIndexOf("/"); - if(p !== -1) { - // We decode the pathname because document.location is URL encoded by the browser - filename = decodeURIComponent(document.location.pathname.substr(p+1)); - } - } - if(!filename) { - filename = "tiddlywiki.html"; - } - // Set up the link - var link = document.createElement("a"); - if(Blob !== undefined) { - var blob = new Blob([text], {type: "text/html"}); - link.setAttribute("href", URL.createObjectURL(blob)); - } else { - link.setAttribute("href","data:text/html," + encodeURIComponent(text)); - } - link.setAttribute("download",filename); - document.body.appendChild(link); - link.click(); - document.body.removeChild(link); - // Callback that we succeeded - callback(null); - return true; -}; - -/* -Information about this saver -*/ -DownloadSaver.prototype.info = { - name: "download", - priority: 100 -}; - -Object.defineProperty(DownloadSaver.prototype.info, "capabilities", { - get: function() { - var capabilities = ["save", "download"]; - if(($tw.wiki.getTextReference("$:/config/DownloadSaver/AutoSave") || "").toLowerCase() === "yes") { - capabilities.push("autosave"); - } - return capabilities; - } -}); - -/* -Static method that returns true if this saver is capable of working -*/ -exports.canSave = function(wiki) { - return document.createElement("a").download !== undefined; -}; - -/* -Create an instance of this saver -*/ -exports.create = function(wiki) { - return new DownloadSaver(wiki); -}; - -})(); --
/*\ -title: $:/core/modules/savers/fsosaver.js -type: application/javascript -module-type: saver - -Handles saving changes via MS FileSystemObject ActiveXObject - -Note: Since TiddlyWiki's markup contains the MOTW, the FileSystemObject normally won't be available. -However, if the wiki is loaded as an .HTA file (Windows HTML Applications) then the FSO can be used. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Select the appropriate saver module and set it up -*/ -var FSOSaver = function(wiki) { -}; - -FSOSaver.prototype.save = function(text,method,callback) { - // Get the pathname of this document - var pathname = unescape(document.location.pathname); - // Test for a Windows path of the form /x:\blah... - if(/^\/[A-Z]\:\\[^\\]+/i.test(pathname)) { // ie: ^/[a-z]:/[^/]+ - // Remove the leading slash - pathname = pathname.substr(1); - } else if(document.location.hostname !== "" && /^\/\\[^\\]+\\[^\\]+/i.test(pathname)) { // test for \\server\share\blah... - ^/[^/]+/[^/]+ - // Remove the leading slash - pathname = pathname.substr(1); - // reconstruct UNC path - pathname = "\\\\" + document.location.hostname + pathname; - } else { - return false; - } - // Save the file (as UTF-16) - var fso = new ActiveXObject("Scripting.FileSystemObject"); - var file = fso.OpenTextFile(pathname,2,-1,-1); - file.Write(text); - file.Close(); - // Callback that we succeeded - callback(null); - return true; -}; - -/* -Information about this saver -*/ -FSOSaver.prototype.info = { - name: "FSOSaver", - priority: 120, - capabilities: ["save", "autosave"] -}; - -/* -Static method that returns true if this saver is capable of working -*/ -exports.canSave = function(wiki) { - try { - return (window.location.protocol === "file:") && !!(new ActiveXObject("Scripting.FileSystemObject")); - } catch(e) { return false; } -}; - -/* -Create an instance of this saver -*/ -exports.create = function(wiki) { - return new FSOSaver(wiki); -}; - -})(); --
/*\ -title: $:/core/modules/savers/gitea.js -type: application/javascript -module-type: saver - -Saves wiki by pushing a commit to the gitea - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Select the appropriate saver module and set it up -*/ -var GiteaSaver = function(wiki) { - this.wiki = wiki; -}; - -GiteaSaver.prototype.save = function(text,method,callback) { - var self = this, - username = this.wiki.getTiddlerText("$:/Gitea/Username"), - password = $tw.utils.getPassword("Gitea"), - repo = this.wiki.getTiddlerText("$:/Gitea/Repo"), - path = this.wiki.getTiddlerText("$:/Gitea/Path",""), - filename = this.wiki.getTiddlerText("$:/Gitea/Filename"), - branch = this.wiki.getTiddlerText("$:/Gitea/Branch") || "master", - endpoint = this.wiki.getTiddlerText("$:/Gitea/ServerURL") || "https://gitea", - headers = { - "Accept": "application/json", - "Content-Type": "application/json;charset=UTF-8", - "Authorization": "Basic " + window.btoa(username + ":" + password) - }; - // Bail if we don't have everything we need - if(!username || !password || !repo || !path || !filename) { - return false; - } - // Make sure the path start and ends with a slash - if(path.substring(0,1) !== "/") { - path = "/" + path; - } - if(path.substring(path.length - 1) !== "/") { - path = path + "/"; - } - // Compose the base URI - var uri = endpoint + "/repos/" + repo + "/contents" + path; - // Perform a get request to get the details (inc shas) of files in the same path as our file - $tw.utils.httpRequest({ - url: uri, - type: "GET", - headers: headers, - data: { - ref: branch - }, - callback: function(err,getResponseDataJson,xhr) { - var getResponseData,sha = ""; - if(err && xhr.status !== 404) { - return callback(err); - } - var use_put = true; - if(xhr.status !== 404) { - getResponseData = JSON.parse(getResponseDataJson); - $tw.utils.each(getResponseData,function(details) { - if(details.name === filename) { - sha = details.sha; - } - }); - if(sha === ""){ - use_put = false; - } - } - var data = { - message: $tw.language.getRawString("ControlPanel/Saving/GitService/CommitMessage"), - content: $tw.utils.base64Encode(text), - sha: sha - }; - $tw.utils.httpRequest({ - url: endpoint + "/repos/" + repo + "/branches/" + branch, - type: "GET", - headers: headers, - callback: function(err,getResponseDataJson,xhr) { - if(xhr.status === 404) { - callback("Please ensure the branch in the Gitea repo exists"); - }else{ - data["branch"] = branch; - self.upload(uri + filename, use_put?"PUT":"POST", headers, data, callback); - } - } - }); - } - }); - return true; -}; - -GiteaSaver.prototype.upload = function(uri,method,headers,data,callback) { - $tw.utils.httpRequest({ - url: uri, - type: method, - headers: headers, - data: JSON.stringify(data), - callback: function(err,putResponseDataJson,xhr) { - if(err) { - return callback(err); - } - var putResponseData = JSON.parse(putResponseDataJson); - callback(null); - } - }); -}; - -/* -Information about this saver -*/ -GiteaSaver.prototype.info = { - name: "Gitea", - priority: 2000, - capabilities: ["save", "autosave"] -}; - -/* -Static method that returns true if this saver is capable of working -*/ -exports.canSave = function(wiki) { - return true; -}; - -/* -Create an instance of this saver -*/ -exports.create = function(wiki) { - return new GiteaSaver(wiki); -}; - -})(); --
/*\ -title: $:/core/modules/savers/github.js -type: application/javascript -module-type: saver - -Saves wiki by pushing a commit to the GitHub v3 REST API - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Select the appropriate saver module and set it up -*/ -var GitHubSaver = function(wiki) { - this.wiki = wiki; -}; - -GitHubSaver.prototype.save = function(text,method,callback) { - var self = this, - username = this.wiki.getTiddlerText("$:/GitHub/Username"), - password = $tw.utils.getPassword("github"), - repo = this.wiki.getTiddlerText("$:/GitHub/Repo"), - path = this.wiki.getTiddlerText("$:/GitHub/Path",""), - filename = this.wiki.getTiddlerText("$:/GitHub/Filename"), - branch = this.wiki.getTiddlerText("$:/GitHub/Branch") || "master", - endpoint = this.wiki.getTiddlerText("$:/GitHub/ServerURL") || "https://api.github.com", - headers = { - "Accept": "application/vnd.github.v3+json", - "Content-Type": "application/json;charset=UTF-8", - "Authorization": "Basic " + window.btoa(username + ":" + password) - }; - // Bail if we don't have everything we need - if(!username || !password || !repo || !path || !filename) { - return false; - } - // Make sure the path start and ends with a slash - if(path.substring(0,1) !== "/") { - path = "/" + path; - } - if(path.substring(path.length - 1) !== "/") { - path = path + "/"; - } - // Compose the base URI - var uri = endpoint + "/repos/" + repo + "/contents" + path; - // Perform a get request to get the details (inc shas) of files in the same path as our file - $tw.utils.httpRequest({ - url: uri, - type: "GET", - headers: headers, - data: { - ref: branch - }, - callback: function(err,getResponseDataJson,xhr) { - var getResponseData,sha = ""; - if(err && xhr.status !== 404) { - return callback(err); - } - if(xhr.status !== 404) { - getResponseData = JSON.parse(getResponseDataJson); - $tw.utils.each(getResponseData,function(details) { - if(details.name === filename) { - sha = details.sha; - } - }); - } - var data = { - message: $tw.language.getRawString("ControlPanel/Saving/GitService/CommitMessage"), - content: $tw.utils.base64Encode(text), - branch: branch, - sha: sha - }; - // Perform a PUT request to save the file - $tw.utils.httpRequest({ - url: uri + filename, - type: "PUT", - headers: headers, - data: JSON.stringify(data), - callback: function(err,putResponseDataJson,xhr) { - if(err) { - return callback(err); - } - var putResponseData = JSON.parse(putResponseDataJson); - callback(null); - } - }); - } - }); - return true; -}; - -/* -Information about this saver -*/ -GitHubSaver.prototype.info = { - name: "github", - priority: 2000, - capabilities: ["save", "autosave"] -}; - -/* -Static method that returns true if this saver is capable of working -*/ -exports.canSave = function(wiki) { - return true; -}; - -/* -Create an instance of this saver -*/ -exports.create = function(wiki) { - return new GitHubSaver(wiki); -}; - -})(); --
/*\ -title: $:/core/modules/savers/gitlab.js -type: application/javascript -module-type: saver - -Saves wiki by pushing a commit to the GitLab REST API - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: true */ -"use strict"; - -/* -Select the appropriate saver module and set it up -*/ -var GitLabSaver = function(wiki) { - this.wiki = wiki; -}; - -GitLabSaver.prototype.save = function(text,method,callback) { - /* See https://docs.gitlab.com/ee/api/repository_files.html */ - var self = this, - username = this.wiki.getTiddlerText("$:/GitLab/Username"), - password = $tw.utils.getPassword("gitlab"), - repo = this.wiki.getTiddlerText("$:/GitLab/Repo"), - path = this.wiki.getTiddlerText("$:/GitLab/Path",""), - filename = this.wiki.getTiddlerText("$:/GitLab/Filename"), - branch = this.wiki.getTiddlerText("$:/GitLab/Branch") || "master", - endpoint = this.wiki.getTiddlerText("$:/GitLab/ServerURL") || "https://gitlab.com/api/v4", - headers = { - "Content-Type": "application/json;charset=UTF-8", - "Private-Token": password - }; - // Bail if we don't have everything we need - if(!username || !password || !repo || !path || !filename) { - return false; - } - // Make sure the path start and ends with a slash - if(path.substring(0,1) !== "/") { - path = "/" + path; - } - if(path.substring(path.length - 1) !== "/") { - path = path + "/"; - } - // Compose the base URI - var uri = endpoint + "/projects/" + encodeURIComponent(repo) + "/repository/"; - // Perform a get request to get the details (inc shas) of files in the same path as our file - $tw.utils.httpRequest({ - url: uri + "tree/?path=" + encodeURIComponent(path.replace(/^\/+|\/$/g, '')) + "&branch=" + encodeURIComponent(branch.replace(/^\/+|\/$/g, '')), - type: "GET", - headers: headers, - callback: function(err,getResponseDataJson,xhr) { - var getResponseData,sha = ""; - if(err && xhr.status !== 404) { - return callback(err); - } - var requestType = "POST"; - if(xhr.status !== 404) { - getResponseData = JSON.parse(getResponseDataJson); - $tw.utils.each(getResponseData,function(details) { - if(details.name === filename) { - requestType = "PUT"; - sha = details.sha; - } - }); - } - var data = { - commit_message: $tw.language.getRawString("ControlPanel/Saving/GitService/CommitMessage"), - content: text, - branch: branch, - sha: sha - }; - // Perform a request to save the file - $tw.utils.httpRequest({ - url: uri + "files/" + encodeURIComponent(path.replace(/^\/+/, '') + filename), - type: requestType, - headers: headers, - data: JSON.stringify(data), - callback: function(err,putResponseDataJson,xhr) { - if(err) { - return callback(err); - } - var putResponseData = JSON.parse(putResponseDataJson); - callback(null); - } - }); - } - }); - return true; -}; - -/* -Information about this saver -*/ -GitLabSaver.prototype.info = { - name: "gitlab", - priority: 2000, - capabilities: ["save", "autosave"] -}; - -/* -Static method that returns true if this saver is capable of working -*/ -exports.canSave = function(wiki) { - return true; -}; - -/* -Create an instance of this saver -*/ -exports.create = function(wiki) { - return new GitLabSaver(wiki); -}; - -})(); --
/*\ -title: $:/core/modules/savers/manualdownload.js -type: application/javascript -module-type: saver - -Handles saving changes via HTML5's download APIs - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Title of the tiddler containing the download message -var downloadInstructionsTitle = "$:/language/Modals/Download"; - -/* -Select the appropriate saver module and set it up -*/ -var ManualDownloadSaver = function(wiki) { -}; - -ManualDownloadSaver.prototype.save = function(text,method,callback) { - $tw.modal.display(downloadInstructionsTitle,{ - downloadLink: "data:text/html," + encodeURIComponent(text) - }); - // Callback that we succeeded - callback(null); - return true; -}; - -/* -Information about this saver -*/ -ManualDownloadSaver.prototype.info = { - name: "manualdownload", - priority: 0, - capabilities: ["save", "download"] -}; - -/* -Static method that returns true if this saver is capable of working -*/ -exports.canSave = function(wiki) { - return true; -}; - -/* -Create an instance of this saver -*/ -exports.create = function(wiki) { - return new ManualDownloadSaver(wiki); -}; - -})(); --
/*\ -title: $:/core/modules/savers/msdownload.js -type: application/javascript -module-type: saver - -Handles saving changes via window.navigator.msSaveBlob() - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Select the appropriate saver module and set it up -*/ -var MsDownloadSaver = function(wiki) { -}; - -MsDownloadSaver.prototype.save = function(text,method,callback) { - // Get the current filename - var filename = "tiddlywiki.html", - p = document.location.pathname.lastIndexOf("/"); - if(p !== -1) { - filename = document.location.pathname.substr(p+1); - } - // Set up the link - var blob = new Blob([text], {type: "text/html"}); - window.navigator.msSaveBlob(blob,filename); - // Callback that we succeeded - callback(null); - return true; -}; - -/* -Information about this saver -*/ -MsDownloadSaver.prototype.info = { - name: "msdownload", - priority: 110, - capabilities: ["save", "download"] -}; - -/* -Static method that returns true if this saver is capable of working -*/ -exports.canSave = function(wiki) { - return !!window.navigator.msSaveBlob; -}; - -/* -Create an instance of this saver -*/ -exports.create = function(wiki) { - return new MsDownloadSaver(wiki); -}; - -})(); --
/*\ -title: $:/core/modules/savers/put.js -type: application/javascript -module-type: saver - -Saves wiki by performing a PUT request to the server - -Works with any server which accepts a PUT request -to the current URL, such as a WebDAV server. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Retrieve ETag if available -*/ -var retrieveETag = function(self) { - var headers = { - Accept: "*/*;charset=UTF-8" - }; - $tw.utils.httpRequest({ - url: self.uri(), - type: "HEAD", - headers: headers, - callback: function(err,data,xhr) { - if(err) { - return; - } - var etag = xhr.getResponseHeader("ETag"); - if(!etag) { - return; - } - self.etag = etag.replace(/^W\//,""); - } - }); -}; - - -/* -Select the appropriate saver module and set it up -*/ -var PutSaver = function(wiki) { - this.wiki = wiki; - var self = this; - var uri = this.uri(); - // Async server probe. Until probe finishes, save will fail fast - // See also https://github.com/Jermolene/TiddlyWiki5/issues/2276 - $tw.utils.httpRequest({ - url: uri, - type: "OPTIONS", - callback: function(err,data,xhr) { - // Check DAV header http://www.webdav.org/specs/rfc2518.html#rfc.section.9.1 - if(!err) { - self.serverAcceptsPuts = xhr.status === 200 && !!xhr.getResponseHeader("dav"); - } - } - }); - retrieveETag(this); -}; - -PutSaver.prototype.uri = function() { - return document.location.toString().split("#")[0]; -}; - -// TODO: in case of edit conflict -// Prompt: Do you want to save over this? Y/N -// Merging would be ideal, and may be possible using future generic merge flow -PutSaver.prototype.save = function(text,method,callback) { - if(!this.serverAcceptsPuts) { - return false; - } - var self = this; - var headers = { - "Content-Type": "text/html;charset=UTF-8" - }; - if(this.etag) { - headers["If-Match"] = this.etag; - } - $tw.utils.httpRequest({ - url: this.uri(), - type: "PUT", - headers: headers, - data: text, - callback: function(err,data,xhr) { - if(err) { - // response is textual: "XMLHttpRequest error code: 412" - var status = Number(err.substring(err.indexOf(':') + 2, err.length)) - if(status === 412) { // edit conflict - var message = $tw.language.getString("Error/EditConflict"); - callback(message); - } else { - callback(err); // fail - } - } else { - self.etag = xhr.getResponseHeader("ETag"); - if(self.etag == null) { - retrieveETag(self); - } - callback(null); // success - } - } - }); - return true; -}; - -/* -Information about this saver -*/ -PutSaver.prototype.info = { - name: "put", - priority: 2000, - capabilities: ["save","autosave"] -}; - -/* -Static method that returns true if this saver is capable of working -*/ -exports.canSave = function(wiki) { - return /^https?:/.test(location.protocol); -}; - -/* -Create an instance of this saver -*/ -exports.create = function(wiki) { - return new PutSaver(wiki); -}; - -})(); --
/*\ -title: $:/core/modules/savers/tiddlyfox.js -type: application/javascript -module-type: saver - -Handles saving changes via the TiddlyFox file extension - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false, netscape: false, Components: false */ -"use strict"; - -var TiddlyFoxSaver = function(wiki) { -}; - -TiddlyFoxSaver.prototype.save = function(text,method,callback) { - var messageBox = document.getElementById("tiddlyfox-message-box"); - if(messageBox) { - // Get the pathname of this document - var pathname = document.location.toString().split("#")[0]; - // Replace file://localhost/ with file:/// - if(pathname.indexOf("file://localhost/") === 0) { - pathname = "file://" + pathname.substr(16); - } - // Windows path file:///x:/blah/blah --> x:\blah\blah - if(/^file\:\/\/\/[A-Z]\:\//i.test(pathname)) { - // Remove the leading slash and convert slashes to backslashes - pathname = pathname.substr(8).replace(/\//g,"\\"); - // Firefox Windows network path file://///server/share/blah/blah --> //server/share/blah/blah - } else if(pathname.indexOf("file://///") === 0) { - pathname = "\\\\" + unescape(pathname.substr(10)).replace(/\//g,"\\"); - // Mac/Unix local path file:///path/path --> /path/path - } else if(pathname.indexOf("file:///") === 0) { - pathname = unescape(pathname.substr(7)); - // Mac/Unix local path file:/path/path --> /path/path - } else if(pathname.indexOf("file:/") === 0) { - pathname = unescape(pathname.substr(5)); - // Otherwise Windows networth path file://server/share/path/path --> \\server\share\path\path - } else { - pathname = "\\\\" + unescape(pathname.substr(7)).replace(new RegExp("/","g"),"\\"); - } - // Create the message element and put it in the message box - var message = document.createElement("div"); - message.setAttribute("data-tiddlyfox-path",decodeURIComponent(pathname)); - message.setAttribute("data-tiddlyfox-content",text); - messageBox.appendChild(message); - // Add an event handler for when the file has been saved - message.addEventListener("tiddlyfox-have-saved-file",function(event) { - callback(null); - }, false); - // Create and dispatch the custom event to the extension - var event = document.createEvent("Events"); - event.initEvent("tiddlyfox-save-file",true,false); - message.dispatchEvent(event); - return true; - } else { - return false; - } -}; - -/* -Information about this saver -*/ -TiddlyFoxSaver.prototype.info = { - name: "tiddlyfox", - priority: 1500, - capabilities: ["save", "autosave"] -}; - -/* -Static method that returns true if this saver is capable of working -*/ -exports.canSave = function(wiki) { - return true; -}; - -/* -Create an instance of this saver -*/ -exports.create = function(wiki) { - return new TiddlyFoxSaver(wiki); -}; - -})(); --
/*\ -title: $:/core/modules/savers/tiddlyie.js -type: application/javascript -module-type: saver - -Handles saving changes via Internet Explorer BHO extenion (TiddlyIE) - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Select the appropriate saver module and set it up -*/ -var TiddlyIESaver = function(wiki) { -}; - -TiddlyIESaver.prototype.save = function(text,method,callback) { - // Check existence of TiddlyIE BHO extension (note: only works after document is complete) - if(typeof(window.TiddlyIE) != "undefined") { - // Get the pathname of this document - var pathname = unescape(document.location.pathname); - // Test for a Windows path of the form /x:/blah... - if(/^\/[A-Z]\:\/[^\/]+/i.test(pathname)) { // ie: ^/[a-z]:/[^/]+ (is this better?: ^/[a-z]:/[^/]+(/[^/]+)*\.[^/]+ ) - // Remove the leading slash - pathname = pathname.substr(1); - // Convert slashes to backslashes - pathname = pathname.replace(/\//g,"\\"); - } else if(document.hostname !== "" && /^\/[^\/]+\/[^\/]+/i.test(pathname)) { // test for \\server\share\blah... - ^/[^/]+/[^/]+ - // Convert slashes to backslashes - pathname = pathname.replace(/\//g,"\\"); - // reconstruct UNC path - pathname = "\\\\" + document.location.hostname + pathname; - } else return false; - // Prompt the user to save the file - window.TiddlyIE.save(pathname, text); - // Callback that we succeeded - callback(null); - return true; - } else { - return false; - } -}; - -/* -Information about this saver -*/ -TiddlyIESaver.prototype.info = { - name: "tiddlyiesaver", - priority: 1500, - capabilities: ["save"] -}; - -/* -Static method that returns true if this saver is capable of working -*/ -exports.canSave = function(wiki) { - return (window.location.protocol === "file:"); -}; - -/* -Create an instance of this saver -*/ -exports.create = function(wiki) { - return new TiddlyIESaver(wiki); -}; - -})(); --
/*\ -title: $:/core/modules/savers/twedit.js -type: application/javascript -module-type: saver - -Handles saving changes via the TWEdit iOS app - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false, netscape: false, Components: false */ -"use strict"; - -var TWEditSaver = function(wiki) { -}; - -TWEditSaver.prototype.save = function(text,method,callback) { - // Bail if we're not running under TWEdit - if(typeof DeviceInfo !== "object") { - return false; - } - // Get the pathname of this document - var pathname = decodeURIComponent(document.location.pathname); - // Strip any query or location part - var p = pathname.indexOf("?"); - if(p !== -1) { - pathname = pathname.substr(0,p); - } - p = pathname.indexOf("#"); - if(p !== -1) { - pathname = pathname.substr(0,p); - } - // Remove the leading "/Documents" from path - var prefix = "/Documents"; - if(pathname.indexOf(prefix) === 0) { - pathname = pathname.substr(prefix.length); - } - // Error handler - var errorHandler = function(event) { - // Error - callback($tw.language.getString("Error/SavingToTWEdit") + ": " + event.target.error.code); - }; - // Get the file system - window.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(fileSystem) { - // Now we've got the filesystem, get the fileEntry - fileSystem.root.getFile(pathname, {create: true}, function(fileEntry) { - // Now we've got the fileEntry, create the writer - fileEntry.createWriter(function(writer) { - writer.onerror = errorHandler; - writer.onwrite = function() { - callback(null); - }; - writer.position = 0; - writer.write(text); - },errorHandler); - }, errorHandler); - }, errorHandler); - return true; -}; - -/* -Information about this saver -*/ -TWEditSaver.prototype.info = { - name: "twedit", - priority: 1600, - capabilities: ["save", "autosave"] -}; - -/* -Static method that returns true if this saver is capable of working -*/ -exports.canSave = function(wiki) { - return true; -}; - -/* -Create an instance of this saver -*/ -exports.create = function(wiki) { - return new TWEditSaver(wiki); -}; - -/////////////////////////// Hack -// HACK: This ensures that TWEdit recognises us as a TiddlyWiki document -if($tw.browser) { - window.version = {title: "TiddlyWiki"}; -} - -})(); --
/*\ -title: $:/core/modules/savers/upload.js -type: application/javascript -module-type: saver - -Handles saving changes via upload to a server. - -Designed to be compatible with BidiX's UploadPlugin at http://tiddlywiki.bidix.info/#UploadPlugin - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Select the appropriate saver module and set it up -*/ -var UploadSaver = function(wiki) { - this.wiki = wiki; -}; - -UploadSaver.prototype.save = function(text,method,callback) { - // Get the various parameters we need - var backupDir = this.wiki.getTextReference("$:/UploadBackupDir") || ".", - username = this.wiki.getTextReference("$:/UploadName"), - password = $tw.utils.getPassword("upload"), - uploadDir = this.wiki.getTextReference("$:/UploadDir") || ".", - uploadFilename = this.wiki.getTextReference("$:/UploadFilename") || "index.html", - url = this.wiki.getTextReference("$:/UploadURL"); - // Bail out if we don't have the bits we need - if(!username || username.toString().trim() === "" || !password || password.toString().trim() === "") { - return false; - } - // Construct the url if not provided - if(!url) { - url = "http://" + username + ".tiddlyspot.com/store.cgi"; - } - // Assemble the header - var boundary = "---------------------------" + "AaB03x"; - var uploadFormName = "UploadPlugin"; - var head = []; - head.push("--" + boundary + "\r\nContent-disposition: form-data; name=\"UploadPlugin\"\r\n"); - head.push("backupDir=" + backupDir + ";user=" + username + ";password=" + password + ";uploaddir=" + uploadDir + ";;"); - head.push("\r\n" + "--" + boundary); - head.push("Content-disposition: form-data; name=\"userfile\"; filename=\"" + uploadFilename + "\""); - head.push("Content-Type: text/html;charset=UTF-8"); - head.push("Content-Length: " + text.length + "\r\n"); - head.push(""); - // Assemble the tail and the data itself - var tail = "\r\n--" + boundary + "--\r\n", - data = head.join("\r\n") + text + tail; - // Do the HTTP post - var http = new XMLHttpRequest(); - http.open("POST",url,true,username,password); - http.setRequestHeader("Content-Type","multipart/form-data; charset=UTF-8; boundary=" + boundary); - http.onreadystatechange = function() { - if(http.readyState == 4 && http.status == 200) { - if(http.responseText.substr(0,4) === "0 - ") { - callback(null); - } else { - callback(http.responseText); - } - } - }; - try { - http.send(data); - } catch(ex) { - return callback($tw.language.getString("Error/Caption") + ":" + ex); - } - $tw.notifier.display("$:/language/Notifications/Save/Starting"); - return true; -}; - -/* -Information about this saver -*/ -UploadSaver.prototype.info = { - name: "upload", - priority: 2000, - capabilities: ["save", "autosave"] -}; - -/* -Static method that returns true if this saver is capable of working -*/ -exports.canSave = function(wiki) { - return true; -}; - -/* -Create an instance of this saver -*/ -exports.create = function(wiki) { - return new UploadSaver(wiki); -}; - -})(); --
/*\ -title: $:/core/modules/server/authenticators/basic.js -type: application/javascript -module-type: authenticator - -Authenticator for WWW basic authentication - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -if($tw.node) { - var util = require("util"), - fs = require("fs"), - url = require("url"), - path = require("path"); -} - -function BasicAuthenticator(server) { - this.server = server; - this.credentialsData = []; -} - -/* -Returns true if the authenticator is active, false if it is inactive, or a string if there is an error -*/ -BasicAuthenticator.prototype.init = function() { - // Read the credentials data - this.credentialsFilepath = this.server.get("credentials"); - if(this.credentialsFilepath) { - var resolveCredentialsFilepath = path.resolve($tw.boot.wikiPath,this.credentialsFilepath); - if(fs.existsSync(resolveCredentialsFilepath) && !fs.statSync(resolveCredentialsFilepath).isDirectory()) { - var credentialsText = fs.readFileSync(resolveCredentialsFilepath,"utf8"), - credentialsData = $tw.utils.parseCsvStringWithHeader(credentialsText); - if(typeof credentialsData === "string") { - return "Error: " + credentialsData + " reading credentials from '" + resolveCredentialsFilepath + "'"; - } else { - this.credentialsData = credentialsData; - } - } else { - return "Error: Unable to load user credentials from '" + resolveCredentialsFilepath + "'"; - } - } - // Add the hardcoded username and password if specified - if(this.server.get("username") && this.server.get("password")) { - this.credentialsData = this.credentialsData || []; - this.credentialsData.push({ - username: this.server.get("username"), - password: this.server.get("password") - }); - } - return this.credentialsData.length > 0; -}; - -/* -Returns true if the request is authenticated and assigns the "authenticatedUsername" state variable. -Returns false if the request couldn't be authenticated having sent an appropriate response to the browser -*/ -BasicAuthenticator.prototype.authenticateRequest = function(request,response,state) { - // Extract the incoming username and password from the request - var header = request.headers.authorization || ""; - if(!header && state.allowAnon) { - // If there's no header and anonymous access is allowed then we don't set authenticatedUsername - return true; - } - var token = header.split(/\s+/).pop() || "", - auth = $tw.utils.base64Decode(token), - parts = auth.split(/:/), - incomingUsername = parts[0], - incomingPassword = parts[1]; - // Check that at least one of the credentials matches - var matchingCredentials = this.credentialsData.find(function(credential) { - return credential.username === incomingUsername && credential.password === incomingPassword; - }); - if(matchingCredentials) { - // If so, add the authenticated username to the request state - state.authenticatedUsername = incomingUsername; - return true; - } else { - // If not, return an authentication challenge - response.writeHead(401,"Authentication required",{ - "WWW-Authenticate": 'Basic realm="Please provide your username and password to login to ' + state.server.servername + '"' - }); - response.end(); - return false; - } -}; - -exports.AuthenticatorClass = BasicAuthenticator; - -})(); --
/*\ -title: $:/core/modules/server/authenticators/header.js -type: application/javascript -module-type: authenticator - -Authenticator for trusted header authentication - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -function HeaderAuthenticator(server) { - this.server = server; - this.header = server.get("authenticated-user-header"); -} - -/* -Returns true if the authenticator is active, false if it is inactive, or a string if there is an error -*/ -HeaderAuthenticator.prototype.init = function() { - return !!this.header; -}; - -/* -Returns true if the request is authenticated and assigns the "authenticatedUsername" state variable. -Returns false if the request couldn't be authenticated having sent an appropriate response to the browser -*/ -HeaderAuthenticator.prototype.authenticateRequest = function(request,response,state) { - // Otherwise, authenticate as the username in the specified header - var username = request.headers[this.header]; - if(!username && !state.allowAnon) { - response.writeHead(401,"Authorization header required to login to '" + state.server.servername + "'"); - response.end(); - return false; - } else { - // authenticatedUsername will be undefined for anonymous users - state.authenticatedUsername = username; - return true; - } -}; - -exports.AuthenticatorClass = HeaderAuthenticator; - -})(); --
/*\ -title: $:/core/modules/server/routes/delete-tiddler.js -type: application/javascript -module-type: route - -DELETE /recipes/default/tiddlers/:title - -\*/ -(function() { - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.method = "DELETE"; - -exports.path = /^\/bags\/default\/tiddlers\/(.+)$/; - -exports.handler = function(request,response,state) { - var title = decodeURIComponent(state.params[0]); - state.wiki.deleteTiddler(title); - response.writeHead(204, "OK", { - "Content-Type": "text/plain" - }); - response.end(); -}; - -}()); --
/*\ -title: $:/core/modules/server/routes/get-favicon.js -type: application/javascript -module-type: route - -GET /favicon.ico - -\*/ -(function() { - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.method = "GET"; - -exports.path = /^\/favicon.ico$/; - -exports.handler = function(request,response,state) { - response.writeHead(200, {"Content-Type": "image/x-icon"}); - var buffer = state.wiki.getTiddlerText("$:/favicon.ico",""); - response.end(buffer,"base64"); -}; - -}()); --
/*\ -title: $:/core/modules/server/routes/get-file.js -type: application/javascript -module-type: route - -GET /files/:filepath - -\*/ -(function() { - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.method = "GET"; - -exports.path = /^\/files\/(.+)$/; - -exports.handler = function(request,response,state) { - var path = require("path"), - fs = require("fs"), - util = require("util"), - suppliedFilename = decodeURIComponent(state.params[0]), - filename = path.resolve($tw.boot.wikiPath,"files",suppliedFilename), - extension = path.extname(filename); - fs.readFile(filename,function(err,content) { - var status,content,type = "text/plain"; - if(err) { - console.log("Error accessing file " + filename + ": " + err.toString()); - status = 404; - content = "File '" + suppliedFilename + "' not found"; - } else { - status = 200; - content = content; - type = ($tw.config.fileExtensionInfo[extension] ? $tw.config.fileExtensionInfo[extension].type : "application/octet-stream"); - } - response.writeHead(status,{ - "Content-Type": type - }); - response.end(content); - }); -}; - -}()); --
/*\ -title: $:/core/modules/server/routes/get-index.js -type: application/javascript -module-type: route - -GET / - -\*/ -(function() { - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var zlib = require("zlib"); - -exports.method = "GET"; - -exports.path = /^\/$/; - -exports.handler = function(request,response,state) { - var acceptEncoding = request.headers["accept-encoding"]; - if(!acceptEncoding) { - acceptEncoding = ""; - } - var text = state.wiki.renderTiddler(state.server.get("root-render-type"),state.server.get("root-tiddler")), - responseHeaders = { - "Content-Type": state.server.get("root-serve-type") - }; - /* - If the gzip=yes flag for `listen` is set, check if the user agent permits - compression. If so, compress our response. Note that we use the synchronous - functions from zlib to stay in the imperative style. The current `Server` - doesn't depend on this, and we may just as well use the async versions. - */ - if(state.server.enableGzip) { - if (/\bdeflate\b/.test(acceptEncoding)) { - responseHeaders["Content-Encoding"] = "deflate"; - text = zlib.deflateSync(text); - } else if (/\bgzip\b/.test(acceptEncoding)) { - responseHeaders["Content-Encoding"] = "gzip"; - text = zlib.gzipSync(text); - } - } - response.writeHead(200,responseHeaders); - response.end(text); -}; - -}()); --
/*\ -title: $:/core/modules/server/routes/get-login-basic.js -type: application/javascript -module-type: route - -GET /login-basic -- force a Basic Authentication challenge - -\*/ -(function() { - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.method = "GET"; - -exports.path = /^\/login-basic$/; - -exports.handler = function(request,response,state) { - if(!state.authenticatedUsername) { - // Challenge if there's no username - response.writeHead(401,{ - "WWW-Authenticate": 'Basic realm="Please provide your username and password to login to ' + state.server.servername + '"' - }); - response.end(); - } else { - // Redirect to the root wiki if login worked - response.writeHead(302,{ - Location: "/" - }); - response.end(); - } -}; - -}()); --
/*\ -title: $:/core/modules/server/routes/get-status.js -type: application/javascript -module-type: route - -GET /status - -\*/ -(function() { - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.method = "GET"; - -exports.path = /^\/status$/; - -exports.handler = function(request,response,state) { - response.writeHead(200, {"Content-Type": "application/json"}); - var text = JSON.stringify({ - username: state.authenticatedUsername || state.server.get("anon-username") || "", - anonymous: !state.authenticatedUsername, - read_only: !state.server.isAuthorized("writers",state.authenticatedUsername), - space: { - recipe: "default" - }, - tiddlywiki_version: $tw.version - }); - response.end(text,"utf8"); -}; - -}()); --
/*\ -title: $:/core/modules/server/routes/get-tiddler-html.js -type: application/javascript -module-type: route - -GET /:title - -\*/ -(function() { - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.method = "GET"; - -exports.path = /^\/([^\/]+)$/; - -exports.handler = function(request,response,state) { - var title = decodeURIComponent(state.params[0]), - tiddler = state.wiki.getTiddler(title); - if(tiddler) { - var renderType = tiddler.getFieldString("_render_type"), - renderTemplate = tiddler.getFieldString("_render_template"); - // Tiddler fields '_render_type' and '_render_template' overwrite - // system wide settings for render type and template - if(state.wiki.isSystemTiddler(title)) { - renderType = renderType || state.server.get("system-tiddler-render-type"); - renderTemplate = renderTemplate || state.server.get("system-tiddler-render-template"); - } else { - renderType = renderType || state.server.get("tiddler-render-type"); - renderTemplate = renderTemplate || state.server.get("tiddler-render-template"); - } - var text = state.wiki.renderTiddler(renderType,renderTemplate,{parseAsInline: true, variables: {currentTiddler: title}}); - // Naughty not to set a content-type, but it's the easiest way to ensure the browser will see HTML pages as HTML, and accept plain text tiddlers as CSS or JS - response.writeHead(200); - response.end(text,"utf8"); - } else { - response.writeHead(404); - response.end(); - } -}; - -}()); --
/*\ -title: $:/core/modules/server/routes/get-tiddler.js -type: application/javascript -module-type: route - -GET /recipes/default/tiddlers/:title - -\*/ -(function() { - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.method = "GET"; - -exports.path = /^\/recipes\/default\/tiddlers\/(.+)$/; - -exports.handler = function(request,response,state) { - var title = decodeURIComponent(state.params[0]), - tiddler = state.wiki.getTiddler(title), - tiddlerFields = {}, - knownFields = [ - "bag", "created", "creator", "modified", "modifier", "permissions", "recipe", "revision", "tags", "text", "title", "type", "uri" - ]; - if(tiddler) { - $tw.utils.each(tiddler.fields,function(field,name) { - var value = tiddler.getFieldString(name); - if(knownFields.indexOf(name) !== -1) { - tiddlerFields[name] = value; - } else { - tiddlerFields.fields = tiddlerFields.fields || {}; - tiddlerFields.fields[name] = value; - } - }); - tiddlerFields.revision = state.wiki.getChangeCount(title); - tiddlerFields.bag = "default"; - tiddlerFields.type = tiddlerFields.type || "text/vnd.tiddlywiki"; - response.writeHead(200, {"Content-Type": "application/json"}); - response.end(JSON.stringify(tiddlerFields),"utf8"); - } else { - response.writeHead(404); - response.end(); - } -}; - -}()); --
/*\ -title: $:/core/modules/server/routes/get-tiddlers-json.js -type: application/javascript -module-type: route - -GET /recipes/default/tiddlers/tiddlers.json?filter=<filter> - -\*/ -(function() { - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var DEFAULT_FILTER = "[all[tiddlers]!is[system]sort[title]]"; - -exports.method = "GET"; - -exports.path = /^\/recipes\/default\/tiddlers.json$/; - -exports.handler = function(request,response,state) { - var filter = state.queryParameters.filter || DEFAULT_FILTER; - if($tw.wiki.getTiddlerText("$:/config/Server/AllowAllExternalFilters") !== "yes") { - if($tw.wiki.getTiddlerText("$:/config/Server/ExternalFilters/" + filter) !== "yes") { - console.log("Blocked attempt to GET /recipes/default/tiddlers/tiddlers.json with filter: " + filter); - response.writeHead(403); - response.end(); - return; - } - } - var excludeFields = (state.queryParameters.exclude || "text").split(","), - titles = state.wiki.filterTiddlers(filter); - response.writeHead(200, {"Content-Type": "application/json"}); - var tiddlers = []; - $tw.utils.each(titles,function(title) { - var tiddler = state.wiki.getTiddler(title); - if(tiddler) { - var tiddlerFields = tiddler.getFieldStrings({exclude: excludeFields}); - tiddlerFields.revision = state.wiki.getChangeCount(title); - tiddlerFields.type = tiddlerFields.type || "text/vnd.tiddlywiki"; - tiddlers.push(tiddlerFields); - } - }); - var text = JSON.stringify(tiddlers); - response.end(text,"utf8"); -}; - -}()); --
/*\ -title: $:/core/modules/server/routes/put-tiddler.js -type: application/javascript -module-type: route - -PUT /recipes/default/tiddlers/:title - -\*/ -(function() { - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.method = "PUT"; - -exports.path = /^\/recipes\/default\/tiddlers\/(.+)$/; - -exports.handler = function(request,response,state) { - var title = decodeURIComponent(state.params[0]), - fields = JSON.parse(state.data); - // Pull up any subfields in the `fields` object - if(fields.fields) { - $tw.utils.each(fields.fields,function(field,name) { - fields[name] = field; - }); - delete fields.fields; - } - // Remove any revision field - if(fields.revision) { - delete fields.revision; - } - state.wiki.addTiddler(new $tw.Tiddler(state.wiki.getCreationFields(),fields,{title: title},state.wiki.getModificationFields())); - var changeCount = state.wiki.getChangeCount(title).toString(); - response.writeHead(204, "OK",{ - Etag: "\"default/" + encodeURIComponent(title) + "/" + changeCount + ":\"", - "Content-Type": "text/plain" - }); - response.end(); -}; - -}()); --
/*\ -title: $:/core/modules/server/server.js -type: application/javascript -module-type: library - -Serve tiddlers over http - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -if($tw.node) { - var util = require("util"), - fs = require("fs"), - url = require("url"), - path = require("path"), - querystring = require("querystring"); -} - -/* -A simple HTTP server with regexp-based routes -options: variables - optional hashmap of variables to set (a misnomer - they are really constant parameters) - routes - optional array of routes to use - wiki - reference to wiki object -*/ -function Server(options) { - var self = this; - this.routes = options.routes || []; - this.authenticators = options.authenticators || []; - this.wiki = options.wiki; - this.servername = $tw.utils.transliterateToSafeASCII(this.wiki.getTiddlerText("$:/SiteTitle") || "TiddlyWiki5"); - // Initialise the variables - this.variables = $tw.utils.extend({},this.defaultVariables); - if(options.variables) { - for(var variable in options.variables) { - if(options.variables[variable]) { - this.variables[variable] = options.variables[variable]; - } - } - } - $tw.utils.extend({},this.defaultVariables,options.variables); - // Initialise CSRF - this.csrfDisable = this.get("csrf-disable") === "yes"; - // Initialize Gzip compression - this.enableGzip = this.get("gzip") === "yes"; - // Initialise authorization - var authorizedUserName = (this.get("username") && this.get("password")) ? this.get("username") : "(anon)"; - this.authorizationPrincipals = { - readers: (this.get("readers") || authorizedUserName).split(",").map($tw.utils.trim), - writers: (this.get("writers") || authorizedUserName).split(",").map($tw.utils.trim) - } - // Load and initialise authenticators - $tw.modules.forEachModuleOfType("authenticator", function(title,authenticatorDefinition) { - // console.log("Loading server route " + title); - self.addAuthenticator(authenticatorDefinition.AuthenticatorClass); - }); - // Load route handlers - $tw.modules.forEachModuleOfType("route", function(title,routeDefinition) { - // console.log("Loading server route " + title); - self.addRoute(routeDefinition); - }); - // Initialise the http vs https - this.listenOptions = null; - this.protocol = "http"; - var tlsKeyFilepath = this.get("tls-key"), - tlsCertFilepath = this.get("tls-cert"); - if(tlsCertFilepath && tlsKeyFilepath) { - this.listenOptions = { - key: fs.readFileSync(path.resolve($tw.boot.wikiPath,tlsKeyFilepath),"utf8"), - cert: fs.readFileSync(path.resolve($tw.boot.wikiPath,tlsCertFilepath),"utf8") - }; - this.protocol = "https"; - } - this.transport = require(this.protocol); -} - -Server.prototype.defaultVariables = { - port: "8080", - host: "127.0.0.1", - "root-tiddler": "$:/core/save/all", - "root-render-type": "text/plain", - "root-serve-type": "text/html", - "tiddler-render-type": "text/html", - "tiddler-render-template": "$:/core/templates/server/static.tiddler.html", - "system-tiddler-render-type": "text/plain", - "system-tiddler-render-template": "$:/core/templates/wikified-tiddler", - "debug-level": "none", - "gzip": "no" -}; - -Server.prototype.get = function(name) { - return this.variables[name]; -}; - -Server.prototype.addRoute = function(route) { - this.routes.push(route); -}; - -Server.prototype.addAuthenticator = function(AuthenticatorClass) { - // Instantiate and initialise the authenticator - var authenticator = new AuthenticatorClass(this), - result = authenticator.init(); - if(typeof result === "string") { - $tw.utils.error("Error: " + result); - } else if(result) { - // Only use the authenticator if it initialised successfully - this.authenticators.push(authenticator); - } -}; - -Server.prototype.findMatchingRoute = function(request,state) { - var pathprefix = this.get("path-prefix") || ""; - for(var t=0; t<this.routes.length; t++) { - var potentialRoute = this.routes[t], - pathRegExp = potentialRoute.path, - pathname = state.urlInfo.pathname, - match; - if(pathprefix) { - if(pathname.substr(0,pathprefix.length) === pathprefix) { - pathname = pathname.substr(pathprefix.length) || "/"; - match = potentialRoute.path.exec(pathname); - } else { - match = false; - } - } else { - match = potentialRoute.path.exec(pathname); - } - if(match && request.method === potentialRoute.method) { - state.params = []; - for(var p=1; p<match.length; p++) { - state.params.push(match[p]); - } - return potentialRoute; - } - } - return null; -}; - -Server.prototype.methodMappings = { - "GET": "readers", - "OPTIONS": "readers", - "HEAD": "readers", - "PUT": "writers", - "POST": "writers", - "DELETE": "writers" -}; - -/* -Check whether a given user is authorized for the specified authorizationType ("readers" or "writers"). Pass null or undefined as the username to check for anonymous access -*/ -Server.prototype.isAuthorized = function(authorizationType,username) { - var principals = this.authorizationPrincipals[authorizationType] || []; - return principals.indexOf("(anon)") !== -1 || (username && (principals.indexOf("(authenticated)") !== -1 || principals.indexOf(username) !== -1)); -} - -Server.prototype.requestHandler = function(request,response) { - // Compose the state object - var self = this; - var state = {}; - state.wiki = self.wiki; - state.server = self; - state.urlInfo = url.parse(request.url); - state.queryParameters = querystring.parse(state.urlInfo.query); - // Get the principals authorized to access this resource - var authorizationType = this.methodMappings[request.method] || "readers"; - // Check for the CSRF header if this is a write - if(!this.csrfDisable && authorizationType === "writers" && request.headers["x-requested-with"] !== "TiddlyWiki") { - response.writeHead(403,"'X-Requested-With' header required to login to '" + this.servername + "'"); - response.end(); - return; - } - // Check whether anonymous access is granted - state.allowAnon = this.isAuthorized(authorizationType,null); - // Authenticate with the first active authenticator - if(this.authenticators.length > 0) { - if(!this.authenticators[0].authenticateRequest(request,response,state)) { - // Bail if we failed (the authenticator will have sent the response) - return; - } - } - // Authorize with the authenticated username - if(!this.isAuthorized(authorizationType,state.authenticatedUsername)) { - response.writeHead(401,"'" + state.authenticatedUsername + "' is not authorized to access '" + this.servername + "'"); - response.end(); - return; - } - // Find the route that matches this path - var route = self.findMatchingRoute(request,state); - // Optionally output debug info - if(self.get("debug-level") !== "none") { - console.log("Request path:",JSON.stringify(state.urlInfo)); - console.log("Request headers:",JSON.stringify(request.headers)); - console.log("authenticatedUsername:",state.authenticatedUsername); - } - // Return a 404 if we didn't find a route - if(!route) { - response.writeHead(404); - response.end(); - return; - } - // Receive the request body if necessary and hand off to the route handler - if(route.bodyFormat === "stream" || request.method === "GET" || request.method === "HEAD") { - // Let the route handle the request stream itself - route.handler(request,response,state); - } else if(route.bodyFormat === "string" || !route.bodyFormat) { - // Set the encoding for the incoming request - request.setEncoding("utf8"); - var data = ""; - request.on("data",function(chunk) { - data += chunk.toString(); - }); - request.on("end",function() { - state.data = data; - route.handler(request,response,state); - }); - } else if(route.bodyFormat === "buffer") { - var data = []; - request.on("data",function(chunk) { - data.push(chunk); - }); - request.on("end",function() { - state.data = Buffer.concat(data); - route.handler(request,response,state); - }) - } else { - response.writeHead(400,"Invalid bodyFormat " + route.bodyFormat + " in route " + route.method + " " + route.path.source); - response.end(); - } -}; - -/* -Listen for requests -port: optional port number (falls back to value of "port" variable) -host: optional host address (falls back to value of "host" variable) -prefix: optional prefix (falls back to value of "path-prefix" variable) -*/ -Server.prototype.listen = function(port,host,prefix) { - var self = this; - // Handle defaults for port and host - port = port || this.get("port"); - host = host || this.get("host"); - prefix = prefix || this.get("path-prefix") || ""; - // Check for the port being a string and look it up as an environment variable - if(parseInt(port,10).toString() !== port) { - port = process.env[port] || 8080; - } - // Warn if required plugins are missing - if(!$tw.wiki.getTiddler("$:/plugins/tiddlywiki/tiddlyweb") || !$tw.wiki.getTiddler("$:/plugins/tiddlywiki/filesystem")) { - $tw.utils.warning("Warning: Plugins required for client-server operation (\"tiddlywiki/filesystem\" and \"tiddlywiki/tiddlyweb\") are missing from tiddlywiki.info file"); - } - // Create the server - var server; - if(this.listenOptions) { - server = this.transport.createServer(this.listenOptions,this.requestHandler.bind(this)); - } else { - server = this.transport.createServer(this.requestHandler.bind(this)); - } - // Display the port number after we've started listening (the port number might have been specified as zero, in which case we will get an assigned port) - server.on("listening",function() { - var address = server.address(); - $tw.utils.log("Serving on " + self.protocol + "://" + address.address + ":" + address.port + prefix,"brown/orange"); - $tw.utils.log("(press ctrl-C to exit)","red"); - }); - // Listen - return server.listen(port,host); -}; - -exports.Server = Server; - -})(); --
/*\ -title: $:/core/modules/startup.js -type: application/javascript -module-type: startup - -Miscellaneous startup logic for both the client and server. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Export name and synchronous status -exports.name = "startup"; -exports.after = ["load-modules"]; -exports.synchronous = true; - -// Set to `true` to enable performance instrumentation -var PERFORMANCE_INSTRUMENTATION_CONFIG_TITLE = "$:/config/Performance/Instrumentation"; - -var widget = require("$:/core/modules/widgets/widget.js"); - -exports.startup = function() { - var modules,n,m,f; - // Minimal browser detection - if($tw.browser) { - $tw.browser.isIE = (/msie|trident/i.test(navigator.userAgent)); - $tw.browser.isFirefox = !!document.mozFullScreenEnabled; - } - // Platform detection - $tw.platform = {}; - if($tw.browser) { - $tw.platform.isMac = /Mac/.test(navigator.platform); - $tw.platform.isWindows = /win/i.test(navigator.platform); - $tw.platform.isLinux = /Linux/i.test(navigator.platform); - } else { - switch(require("os").platform()) { - case "darwin": - $tw.platform.isMac = true; - break; - case "win32": - $tw.platform.isWindows = true; - break; - case "freebsd": - $tw.platform.isLinux = true; - break; - case "linux": - $tw.platform.isLinux = true; - break; - } - } - // Initialise version - $tw.version = $tw.utils.extractVersionInfo(); - // Set up the performance framework - $tw.perf = new $tw.Performance($tw.wiki.getTiddlerText(PERFORMANCE_INSTRUMENTATION_CONFIG_TITLE,"no") === "yes"); - // Create a root widget for attaching event handlers. By using it as the parentWidget for another widget tree, one can reuse the event handlers - $tw.rootWidget = new widget.widget({ - type: "widget", - children: [] - },{ - wiki: $tw.wiki, - document: $tw.browser ? document : $tw.fakeDocument - }); - // Execute any startup actions - var executeStartupTiddlers = function(tag) { - $tw.utils.each($tw.wiki.filterTiddlers("[all[shadows+tiddlers]tag[" + tag + "]!has[draft.of]]"),function(title) { - $tw.rootWidget.invokeActionString($tw.wiki.getTiddlerText(title),$tw.rootWidget); - }); - }; - executeStartupTiddlers("$:/tags/StartupAction"); - if($tw.browser) { - executeStartupTiddlers("$:/tags/StartupAction/Browser"); - } - if($tw.node) { - executeStartupTiddlers("$:/tags/StartupAction/Node"); - } - // Kick off the language manager and switcher - $tw.language = new $tw.Language(); - $tw.languageSwitcher = new $tw.PluginSwitcher({ - wiki: $tw.wiki, - pluginType: "language", - controllerTitle: "$:/language", - defaultPlugins: [ - "$:/languages/en-GB" - ], - onSwitch: function(plugins) { - if($tw.browser) { - var pluginTiddler = $tw.wiki.getTiddler(plugins[0]); - if(pluginTiddler) { - document.documentElement.setAttribute("dir",pluginTiddler.getFieldString("text-direction") || "auto"); - } else { - document.documentElement.removeAttribute("dir"); - } - } - } - }); - // Kick off the theme manager - $tw.themeManager = new $tw.PluginSwitcher({ - wiki: $tw.wiki, - pluginType: "theme", - controllerTitle: "$:/theme", - defaultPlugins: [ - "$:/themes/tiddlywiki/snowwhite", - "$:/themes/tiddlywiki/vanilla" - ] - }); - // Kick off the keyboard manager - $tw.keyboardManager = new $tw.KeyboardManager(); - // Listen for shortcuts - if($tw.browser) { - $tw.utils.addEventListeners(document,[{ - name: "keydown", - handlerObject: $tw.keyboardManager, - handlerMethod: "handleKeydownEvent" - }]); - } - // Clear outstanding tiddler store change events to avoid an unnecessary refresh cycle at startup - $tw.wiki.clearTiddlerEventQueue(); - // Find a working syncadaptor - $tw.syncadaptor = undefined; - $tw.modules.forEachModuleOfType("syncadaptor",function(title,module) { - if(!$tw.syncadaptor && module.adaptorClass) { - $tw.syncadaptor = new module.adaptorClass({wiki: $tw.wiki}); - } - }); - // Set up the syncer object if we've got a syncadaptor - if($tw.syncadaptor) { - $tw.syncer = new $tw.Syncer({wiki: $tw.wiki, syncadaptor: $tw.syncadaptor}); - } - // Setup the saver handler - $tw.saverHandler = new $tw.SaverHandler({ - wiki: $tw.wiki, - dirtyTracking: !$tw.syncadaptor, - preloadDirty: $tw.boot.preloadDirty || [] - }); - // Host-specific startup - if($tw.browser) { - // Install the popup manager - $tw.popup = new $tw.utils.Popup(); - // Install the animator - $tw.anim = new $tw.utils.Animator(); - } -}; - -})(); --
/*\ -title: $:/core/modules/startup/commands.js -type: application/javascript -module-type: startup - -Command processing - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Export name and synchronous status -exports.name = "commands"; -exports.platforms = ["node"]; -exports.after = ["story"]; -exports.synchronous = false; - -exports.startup = function(callback) { - // On the server, start a commander with the command line arguments - var commander = new $tw.Commander( - $tw.boot.argv, - function(err) { - if(err) { - return $tw.utils.error("Error: " + err); - } - callback(); - }, - $tw.wiki, - {output: process.stdout, error: process.stderr} - ); - commander.execute(); -}; - -})(); --
/*\ -title: $:/core/modules/startup/CSSescape.js -type: application/javascript -module-type: startup - -Polyfill for CSS.escape() - -\*/ -(function(root,factory){ -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Export name and synchronous status -exports.name = "css-escape"; -exports.platforms = ["browser"]; -exports.after = ["startup"]; -exports.synchronous = true; - -/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */ -// https://github.com/umdjs/umd/blob/master/returnExports.js -exports.startup = factory(root); -}(typeof global != 'undefined' ? global : this, function(root) { - - if (root.CSS && root.CSS.escape) { - return; - } - - // https://drafts.csswg.org/cssom/#serialize-an-identifier - var cssEscape = function(value) { - if (arguments.length == 0) { - throw new TypeError('`CSS.escape` requires an argument.'); - } - var string = String(value); - var length = string.length; - var index = -1; - var codeUnit; - var result = ''; - var firstCodeUnit = string.charCodeAt(0); - while (++index < length) { - codeUnit = string.charCodeAt(index); - // Note: there’s no need to special-case astral symbols, surrogate - // pairs, or lone surrogates. - - // If the character is NULL (U+0000), then the REPLACEMENT CHARACTER - // (U+FFFD). - if (codeUnit == 0x0000) { - result += '\uFFFD'; - continue; - } - - if ( - // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is - // U+007F, […] - (codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F || - // If the character is the first character and is in the range [0-9] - // (U+0030 to U+0039), […] - (index == 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) || - // If the character is the second character and is in the range [0-9] - // (U+0030 to U+0039) and the first character is a `-` (U+002D), […] - ( - index == 1 && - codeUnit >= 0x0030 && codeUnit <= 0x0039 && - firstCodeUnit == 0x002D - ) - ) { - // https://drafts.csswg.org/cssom/#escape-a-character-as-code-point - result += '\\' + codeUnit.toString(16) + ' '; - continue; - } - - if ( - // If the character is the first character and is a `-` (U+002D), and - // there is no second character, […] - index == 0 && - length == 1 && - codeUnit == 0x002D - ) { - result += '\\' + string.charAt(index); - continue; - } - - // If the character is not handled by one of the above rules and is - // greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or - // is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to - // U+005A), or [a-z] (U+0061 to U+007A), […] - if ( - codeUnit >= 0x0080 || - codeUnit == 0x002D || - codeUnit == 0x005F || - codeUnit >= 0x0030 && codeUnit <= 0x0039 || - codeUnit >= 0x0041 && codeUnit <= 0x005A || - codeUnit >= 0x0061 && codeUnit <= 0x007A - ) { - // the character itself - result += string.charAt(index); - continue; - } - - // Otherwise, the escaped character. - // https://drafts.csswg.org/cssom/#escape-a-character - result += '\\' + string.charAt(index); - - } - return result; - }; - - if (!root.CSS) { - root.CSS = {}; - } - - root.CSS.escape = cssEscape; - -})); --
/*\ -title: $:/core/modules/startup/favicon.js -type: application/javascript -module-type: startup - -Favicon handling - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Export name and synchronous status -exports.name = "favicon"; -exports.platforms = ["browser"]; -exports.after = ["startup"]; -exports.synchronous = true; - -// Favicon tiddler -var FAVICON_TITLE = "$:/favicon.ico"; - -exports.startup = function() { - // Set up the favicon - setFavicon(); - // Reset the favicon when the tiddler changes - $tw.wiki.addEventListener("change",function(changes) { - if($tw.utils.hop(changes,FAVICON_TITLE)) { - setFavicon(); - } - }); -}; - -function setFavicon() { - var tiddler = $tw.wiki.getTiddler(FAVICON_TITLE); - if(tiddler) { - var faviconLink = document.getElementById("faviconLink"); - faviconLink.setAttribute("href","data:" + tiddler.fields.type + ";base64," + tiddler.fields.text); - } -} - -})(); --
/*\ -title: $:/core/modules/startup/info.js -type: application/javascript -module-type: startup - -Initialise $:/info tiddlers via $:/temp/info-plugin pseudo-plugin - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Export name and synchronous status -exports.name = "info"; -exports.before = ["startup"]; -exports.after = ["load-modules"]; -exports.synchronous = true; - -var TITLE_INFO_PLUGIN = "$:/temp/info-plugin"; - -exports.startup = function() { - // Collect up the info tiddlers - var infoTiddlerFields = {}; - // Give each info module a chance to fill in as many info tiddlers as they want - $tw.modules.forEachModuleOfType("info",function(title,moduleExports) { - if(moduleExports && moduleExports.getInfoTiddlerFields) { - var tiddlerFieldsArray = moduleExports.getInfoTiddlerFields(infoTiddlerFields); - $tw.utils.each(tiddlerFieldsArray,function(fields) { - if(fields) { - infoTiddlerFields[fields.title] = fields; - } - }); - } - }); - // Bake the info tiddlers into a plugin. We use the non-standard plugin-type "info" because ordinary plugins are only registered asynchronously after being loaded dynamically - var fields = { - title: TITLE_INFO_PLUGIN, - type: "application/json", - "plugin-type": "info", - text: JSON.stringify({tiddlers: infoTiddlerFields},null,$tw.config.preferences.jsonSpaces) - }; - $tw.wiki.addTiddler(new $tw.Tiddler(fields)); - $tw.wiki.readPluginInfo([TITLE_INFO_PLUGIN]); - $tw.wiki.registerPluginTiddlers("info"); - $tw.wiki.unpackPluginTiddlers(); -}; - -})(); --
/*\ -title: $:/core/modules/startup/load-modules.js -type: application/javascript -module-type: startup - -Load core modules - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Export name and synchronous status -exports.name = "load-modules"; -exports.synchronous = true; - -exports.startup = function() { - // Load modules - $tw.modules.applyMethods("utils",$tw.utils); - if($tw.node) { - $tw.modules.applyMethods("utils-node",$tw.utils); - } - $tw.modules.applyMethods("global",$tw); - $tw.modules.applyMethods("config",$tw.config); - $tw.Tiddler.fieldModules = $tw.modules.getModulesByTypeAsHashmap("tiddlerfield"); - $tw.modules.applyMethods("tiddlermethod",$tw.Tiddler.prototype); - $tw.modules.applyMethods("wikimethod",$tw.Wiki.prototype); - $tw.wiki.addIndexersToWiki(); - $tw.modules.applyMethods("tiddlerdeserializer",$tw.Wiki.tiddlerDeserializerModules); - $tw.macros = $tw.modules.getModulesByTypeAsHashmap("macro"); - $tw.wiki.initParsers(); - $tw.Commander.initCommands(); -}; - -})(); --
/*\ -title: $:/core/modules/startup/password.js -type: application/javascript -module-type: startup - -Password handling - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Export name and synchronous status -exports.name = "password"; -exports.platforms = ["browser"]; -exports.after = ["startup"]; -exports.synchronous = true; - -exports.startup = function() { - $tw.rootWidget.addEventListener("tm-set-password",function(event) { - $tw.passwordPrompt.createPrompt({ - serviceName: $tw.language.getString("Encryption/PromptSetPassword"), - noUserName: true, - submitText: $tw.language.getString("Encryption/SetPassword"), - canCancel: true, - repeatPassword: true, - callback: function(data) { - if(data) { - $tw.crypto.setPassword(data.password); - } - return true; // Get rid of the password prompt - } - }); - }); - $tw.rootWidget.addEventListener("tm-clear-password",function(event) { - if($tw.browser) { - if(!confirm($tw.language.getString("Encryption/ConfirmClearPassword"))) { - return; - } - } - $tw.crypto.setPassword(null); - }); - // Ensure that $:/isEncrypted is maintained properly - $tw.wiki.addEventListener("change",function(changes) { - if($tw.utils.hop(changes,"$:/isEncrypted")) { - $tw.crypto.updateCryptoStateTiddler(); - } - }); -}; - -})(); --
/*\ -title: $:/core/modules/startup/plugins.js -type: application/javascript -module-type: startup - -Startup logic concerned with managing plugins - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Export name and synchronous status -exports.name = "plugins"; -exports.after = ["load-modules"]; -exports.synchronous = true; - -var TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE = "$:/status/RequireReloadDueToPluginChange"; - -var PREFIX_CONFIG_REGISTER_PLUGIN_TYPE = "$:/config/RegisterPluginType/"; - -exports.startup = function() { - $tw.wiki.addTiddler({title: TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE,text: "no"}); - $tw.wiki.addEventListener("change",function(changes) { - var changesToProcess = [], - requireReloadDueToPluginChange = false; - $tw.utils.each(Object.keys(changes),function(title) { - var tiddler = $tw.wiki.getTiddler(title), - requiresReload = $tw.wiki.doesPluginRequireReload(title); - if(requiresReload) { - requireReloadDueToPluginChange = true; - } else if(tiddler) { - var pluginType = tiddler.fields["plugin-type"]; - if($tw.wiki.getTiddlerText(PREFIX_CONFIG_REGISTER_PLUGIN_TYPE + (tiddler.fields["plugin-type"] || ""),"no") === "yes") { - changesToProcess.push(title); - } - } - }); - if(requireReloadDueToPluginChange) { - $tw.wiki.addTiddler({title: TITLE_REQUIRE_RELOAD_DUE_TO_PLUGIN_CHANGE,text: "yes"}); - } - // Read or delete the plugin info of the changed tiddlers - if(changesToProcess.length > 0) { - var changes = $tw.wiki.readPluginInfo(changesToProcess); - if(changes.modifiedPlugins.length > 0 || changes.deletedPlugins.length > 0) { - // (Re-)register any modified plugins - $tw.wiki.registerPluginTiddlers(null,changes.modifiedPlugins); - // Unregister any deleted plugins - $tw.wiki.unregisterPluginTiddlers(null,changes.deletedPlugins); - // Unpack the shadow tiddlers - $tw.wiki.unpackPluginTiddlers(); - } - } - }); -}; - -})(); --
/*\ -title: $:/core/modules/startup/render.js -type: application/javascript -module-type: startup - -Title, stylesheet and page rendering - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Export name and synchronous status -exports.name = "render"; -exports.platforms = ["browser"]; -exports.after = ["story"]; -exports.synchronous = true; - -// Default story and history lists -var PAGE_TITLE_TITLE = "$:/core/wiki/title"; -var PAGE_STYLESHEET_TITLE = "$:/core/ui/PageStylesheet"; -var PAGE_TEMPLATE_TITLE = "$:/core/ui/PageTemplate"; - -// Time (in ms) that we defer refreshing changes to draft tiddlers -var DRAFT_TIDDLER_TIMEOUT_TITLE = "$:/config/Drafts/TypingTimeout"; -var THROTTLE_REFRESH_TIMEOUT = 400; - -exports.startup = function() { - // Set up the title - $tw.titleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TITLE_TITLE,{document: $tw.fakeDocument, parseAsInline: true}); - $tw.titleContainer = $tw.fakeDocument.createElement("div"); - $tw.titleWidgetNode.render($tw.titleContainer,null); - document.title = $tw.titleContainer.textContent; - $tw.wiki.addEventListener("change",function(changes) { - if($tw.titleWidgetNode.refresh(changes,$tw.titleContainer,null)) { - document.title = $tw.titleContainer.textContent; - } - }); - // Set up the styles - $tw.styleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_STYLESHEET_TITLE,{document: $tw.fakeDocument}); - $tw.styleContainer = $tw.fakeDocument.createElement("style"); - $tw.styleWidgetNode.render($tw.styleContainer,null); - $tw.styleElement = document.createElement("style"); - $tw.styleElement.innerHTML = $tw.styleContainer.textContent; - document.head.insertBefore($tw.styleElement,document.head.firstChild); - $tw.wiki.addEventListener("change",$tw.perf.report("styleRefresh",function(changes) { - if($tw.styleWidgetNode.refresh(changes,$tw.styleContainer,null)) { - $tw.styleElement.innerHTML = $tw.styleContainer.textContent; - } - })); - // Display the $:/core/ui/PageTemplate tiddler to kick off the display - $tw.perf.report("mainRender",function() { - $tw.pageWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TEMPLATE_TITLE,{document: document, parentWidget: $tw.rootWidget}); - $tw.pageContainer = document.createElement("div"); - $tw.utils.addClass($tw.pageContainer,"tc-page-container-wrapper"); - document.body.insertBefore($tw.pageContainer,document.body.firstChild); - $tw.pageWidgetNode.render($tw.pageContainer,null); - $tw.hooks.invokeHook("th-page-refreshed"); - })(); - // Remove any splash screen elements - var removeList = document.querySelectorAll(".tc-remove-when-wiki-loaded"); - $tw.utils.each(removeList,function(removeItem) { - if(removeItem.parentNode) { - removeItem.parentNode.removeChild(removeItem); - } - }); - // Prepare refresh mechanism - var deferredChanges = Object.create(null), - timerId; - function refresh() { - // Process the refresh - $tw.hooks.invokeHook("th-page-refreshing"); - $tw.pageWidgetNode.refresh(deferredChanges); - deferredChanges = Object.create(null); - $tw.hooks.invokeHook("th-page-refreshed"); - } - // Add the change event handler - $tw.wiki.addEventListener("change",$tw.perf.report("mainRefresh",function(changes) { - // Check if only tiddlers that are throttled have changed - var onlyThrottledTiddlersHaveChanged = true; - for(var title in changes) { - var tiddler = $tw.wiki.getTiddler(title); - if(!tiddler || !(tiddler.hasField("draft.of") || tiddler.hasField("throttle.refresh"))) { - onlyThrottledTiddlersHaveChanged = false; - } - } - // Defer the change if only drafts have changed - if(timerId) { - clearTimeout(timerId); - } - timerId = null; - if(onlyThrottledTiddlersHaveChanged) { - var timeout = parseInt($tw.wiki.getTiddlerText(DRAFT_TIDDLER_TIMEOUT_TITLE,""),10); - if(isNaN(timeout)) { - timeout = THROTTLE_REFRESH_TIMEOUT; - } - timerId = setTimeout(refresh,timeout); - $tw.utils.extend(deferredChanges,changes); - } else { - $tw.utils.extend(deferredChanges,changes); - refresh(); - } - })); - // Fix up the link between the root widget and the page container - $tw.rootWidget.domNodes = [$tw.pageContainer]; - $tw.rootWidget.children = [$tw.pageWidgetNode]; -}; - -})(); --
/*\ -title: $:/core/modules/startup/rootwidget.js -type: application/javascript -module-type: startup - -Setup the root widget and the core root widget handlers - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Export name and synchronous status -exports.name = "rootwidget"; -exports.platforms = ["browser"]; -exports.after = ["startup"]; -exports.before = ["story"]; -exports.synchronous = true; - -exports.startup = function() { - // Install the modal message mechanism - $tw.modal = new $tw.utils.Modal($tw.wiki); - $tw.rootWidget.addEventListener("tm-modal",function(event) { - $tw.modal.display(event.param,{variables: event.paramObject, event: event}); - }); - // Install the notification mechanism - $tw.notifier = new $tw.utils.Notifier($tw.wiki); - $tw.rootWidget.addEventListener("tm-notify",function(event) { - $tw.notifier.display(event.param,{variables: event.paramObject}); - }); - // Install the copy-to-clipboard mechanism - $tw.rootWidget.addEventListener("tm-copy-to-clipboard",function(event) { - $tw.utils.copyToClipboard(event.param); - }); - // Install the tm-focus-selector message - $tw.rootWidget.addEventListener("tm-focus-selector",function(event) { - var selector = event.param || "", - element; - try { - element = document.querySelector(selector); - } catch(e) { - console.log("Error in selector: ",selector) - } - if(element && element.focus) { - element.focus(event.paramObject); - } - }); - // Install the scroller - $tw.pageScroller = new $tw.utils.PageScroller(); - $tw.rootWidget.addEventListener("tm-scroll",function(event) { - $tw.pageScroller.handleEvent(event); - }); - var fullscreen = $tw.utils.getFullScreenApis(); - if(fullscreen) { - $tw.rootWidget.addEventListener("tm-full-screen",function(event) { - var fullScreenDocument = event.event ? event.event.target.ownerDocument : document; - if(event.param === "enter") { - fullScreenDocument.documentElement[fullscreen._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT); - } else if(event.param === "exit") { - fullScreenDocument[fullscreen._exitFullscreen](); - } else { - if(fullScreenDocument[fullscreen._fullscreenElement]) { - fullScreenDocument[fullscreen._exitFullscreen](); - } else { - fullScreenDocument.documentElement[fullscreen._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT); - } - } - }); - } - // If we're being viewed on a data: URI then give instructions for how to save - if(document.location.protocol === "data:") { - $tw.rootWidget.dispatchEvent({ - type: "tm-modal", - param: "$:/language/Modals/SaveInstructions" - }); - } -}; - -})(); --
/*\ -title: $:/core/modules/startup/story.js -type: application/javascript -module-type: startup - -Load core modules - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Export name and synchronous status -exports.name = "story"; -exports.after = ["startup"]; -exports.synchronous = true; - -// Default story and history lists -var DEFAULT_STORY_TITLE = "$:/StoryList"; -var DEFAULT_HISTORY_TITLE = "$:/HistoryList"; - -// Default tiddlers -var DEFAULT_TIDDLERS_TITLE = "$:/DefaultTiddlers"; - -// Config -var CONFIG_UPDATE_ADDRESS_BAR = "$:/config/Navigation/UpdateAddressBar"; // Can be "no", "permalink", "permaview" -var CONFIG_UPDATE_HISTORY = "$:/config/Navigation/UpdateHistory"; // Can be "yes" or "no" -var CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD = "$:/config/Navigation/Permalinkview/CopyToClipboard"; // Can be "yes" (default) or "no" -var CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR = "$:/config/Navigation/Permalinkview/UpdateAddressBar"; // Can be "yes" (default) or "no" - - -// Links to help, if there is no param -var HELP_OPEN_EXTERNAL_WINDOW = "http://tiddlywiki.com/#WidgetMessage%3A%20tm-open-external-window"; - -exports.startup = function() { - // Open startup tiddlers - openStartupTiddlers({ - disableHistory: $tw.boot.disableStartupNavigation - }); - if($tw.browser) { - // Set up location hash update - $tw.wiki.addEventListener("change",function(changes) { - if($tw.utils.hop(changes,DEFAULT_STORY_TITLE) || $tw.utils.hop(changes,DEFAULT_HISTORY_TITLE)) { - updateLocationHash({ - updateAddressBar: $tw.wiki.getTiddlerText(CONFIG_UPDATE_ADDRESS_BAR,"permaview").trim(), - updateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,"no").trim() - }); - } - }); - // Listen for changes to the browser location hash - window.addEventListener("hashchange",function() { - var hash = $tw.utils.getLocationHash(); - if(hash !== $tw.locationHash) { - $tw.locationHash = hash; - openStartupTiddlers({defaultToCurrentStory: true}); - } - },false); - // Listen for the tm-browser-refresh message - $tw.rootWidget.addEventListener("tm-browser-refresh",function(event) { - window.location.reload(true); - }); - // Listen for tm-open-external-window message - $tw.rootWidget.addEventListener("tm-open-external-window",function(event) { - var paramObject = event.paramObject || {}, - strUrl = event.param || HELP_OPEN_EXTERNAL_WINDOW, - strWindowName = paramObject.windowName, - strWindowFeatures = paramObject.windowFeatures; - window.open(strUrl, strWindowName, strWindowFeatures); - }); - // Listen for the tm-print message - $tw.rootWidget.addEventListener("tm-print",function(event) { - (event.event.view || window).print(); - }); - // Listen for the tm-home message - $tw.rootWidget.addEventListener("tm-home",function(event) { - window.location.hash = ""; - var storyFilter = $tw.wiki.getTiddlerText(DEFAULT_TIDDLERS_TITLE), - storyList = $tw.wiki.filterTiddlers(storyFilter); - //invoke any hooks that might change the default story list - storyList = $tw.hooks.invokeHook("th-opening-default-tiddlers-list",storyList); - $tw.wiki.addTiddler({title: DEFAULT_STORY_TITLE, text: "", list: storyList},$tw.wiki.getModificationFields()); - if(storyList[0]) { - $tw.wiki.addToHistory(storyList[0]); - } - }); - // Listen for the tm-permalink message - $tw.rootWidget.addEventListener("tm-permalink",function(event) { - updateLocationHash({ - updateAddressBar: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR,"yes").trim() === "yes" ? "permalink" : "none", - updateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,"no").trim(), - targetTiddler: event.param || event.tiddlerTitle, - copyToClipboard: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD,"yes").trim() === "yes" ? "permalink" : "none" - }); - }); - // Listen for the tm-permaview message - $tw.rootWidget.addEventListener("tm-permaview",function(event) { - updateLocationHash({ - updateAddressBar: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_UPDATE_ADDRESS_BAR,"yes").trim() === "yes" ? "permaview" : "none", - updateHistory: $tw.wiki.getTiddlerText(CONFIG_UPDATE_HISTORY,"no").trim(), - targetTiddler: event.param || event.tiddlerTitle, - copyToClipboard: $tw.wiki.getTiddlerText(CONFIG_PERMALINKVIEW_COPY_TO_CLIPBOARD,"yes").trim() === "yes" ? "permaview" : "none" - }); - }); - } -}; - -/* -Process the location hash to open the specified tiddlers. Options: -disableHistory: if true $:/History is NOT updated -defaultToCurrentStory: If true, the current story is retained as the default, instead of opening the default tiddlers -*/ -function openStartupTiddlers(options) { - options = options || {}; - // Work out the target tiddler and the story filter. "null" means "unspecified" - var target = null, - storyFilter = null; - if($tw.locationHash.length > 1) { - var hash = $tw.locationHash.substr(1), - split = hash.indexOf(":"); - if(split === -1) { - target = decodeURIComponent(hash.trim()); - } else { - target = decodeURIComponent(hash.substr(0,split).trim()); - storyFilter = decodeURIComponent(hash.substr(split + 1).trim()); - } - } - // If the story wasn't specified use the current tiddlers or a blank story - if(storyFilter === null) { - if(options.defaultToCurrentStory) { - var currStoryList = $tw.wiki.getTiddlerList(DEFAULT_STORY_TITLE); - storyFilter = $tw.utils.stringifyList(currStoryList); - } else { - if(target && target !== "") { - storyFilter = ""; - } else { - storyFilter = $tw.wiki.getTiddlerText(DEFAULT_TIDDLERS_TITLE); - } - } - } - // Process the story filter to get the story list - var storyList = $tw.wiki.filterTiddlers(storyFilter); - // Invoke any hooks that want to change the default story list - storyList = $tw.hooks.invokeHook("th-opening-default-tiddlers-list",storyList); - // If the target tiddler isn't included then splice it in at the top - if(target && storyList.indexOf(target) === -1) { - storyList.unshift(target); - } - // Save the story list - $tw.wiki.addTiddler({title: DEFAULT_STORY_TITLE, text: "", list: storyList},$tw.wiki.getModificationFields()); - // Update history - if(!options.disableHistory) { - // If a target tiddler was specified add it to the history stack - if(target && target !== "") { - // The target tiddler doesn't need double square brackets, but we'll silently remove them if they're present - if(target.indexOf("[[") === 0 && target.substr(-2) === "]]") { - target = target.substr(2,target.length - 4); - } - $tw.wiki.addToHistory(target); - } else if(storyList.length > 0) { - $tw.wiki.addToHistory(storyList[0]); - } - } -} - -/* -options: See below -options.updateAddressBar: "permalink", "permaview" or "no" (defaults to "permaview") -options.updateHistory: "yes" or "no" (defaults to "no") -options.copyToClipboard: "permalink", "permaview" or "no" (defaults to "no") -options.targetTiddler: optional title of target tiddler for permalink -*/ -function updateLocationHash(options) { - // Get the story and the history stack - var storyList = $tw.wiki.getTiddlerList(DEFAULT_STORY_TITLE), - historyList = $tw.wiki.getTiddlerData(DEFAULT_HISTORY_TITLE,[]), - targetTiddler = ""; - if(options.targetTiddler) { - targetTiddler = options.targetTiddler; - } else { - // The target tiddler is the one at the top of the stack - if(historyList.length > 0) { - targetTiddler = historyList[historyList.length-1].title; - } - // Blank the target tiddler if it isn't present in the story - if(storyList.indexOf(targetTiddler) === -1) { - targetTiddler = ""; - } - } - // Assemble the location hash - switch(options.updateAddressBar) { - case "permalink": - $tw.locationHash = "#" + encodeURIComponent(targetTiddler); - break; - case "permaview": - $tw.locationHash = "#" + encodeURIComponent(targetTiddler) + ":" + encodeURIComponent($tw.utils.stringifyList(storyList)); - break; - } - // Copy URL to the clipboard - switch(options.copyToClipboard) { - case "permalink": - $tw.utils.copyToClipboard($tw.utils.getLocationPath() + "#" + encodeURIComponent(targetTiddler)); - break; - case "permaview": - $tw.utils.copyToClipboard($tw.utils.getLocationPath() + "#" + encodeURIComponent(targetTiddler) + ":" + encodeURIComponent($tw.utils.stringifyList(storyList))); - break; - } - // Only change the location hash if we must, thus avoiding unnecessary onhashchange events - if($tw.utils.getLocationHash() !== $tw.locationHash) { - if(options.updateHistory === "yes") { - // Assign the location hash so that history is updated - window.location.hash = $tw.locationHash; - } else { - // We use replace so that browser history isn't affected - window.location.replace(window.location.toString().split("#")[0] + $tw.locationHash); - } - } -} - -})(); --
/*\ -title: $:/core/modules/startup/windows.js -type: application/javascript -module-type: startup - -Setup root widget handlers for the messages concerned with opening external browser windows - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Export name and synchronous status -exports.name = "windows"; -exports.platforms = ["browser"]; -exports.after = ["startup"]; -exports.synchronous = true; - -// Global to keep track of open windows (hashmap by title) -var windows = {}; - -exports.startup = function() { - // Handle open window message - $tw.rootWidget.addEventListener("tm-open-window",function(event) { - // Get the parameters - var refreshHandler, - title = event.param || event.tiddlerTitle, - paramObject = event.paramObject || {}, - windowTitle = paramObject.windowTitle || title, - template = paramObject.template || "$:/core/templates/single.tiddler.window", - width = paramObject.width || "700", - height = paramObject.height || "600", - variables = $tw.utils.extend({},paramObject,{currentTiddler: title}); - // Open the window - var srcWindow, - srcDocument; - // In case that popup blockers deny opening a new window - try { - srcWindow = window.open("","external-" + title,"scrollbars,width=" + width + ",height=" + height), - srcDocument = srcWindow.document; - } - catch(e) { - return; - } - windows[title] = srcWindow; - // Check for reopening the same window - if(srcWindow.haveInitialisedWindow) { - return; - } - // Initialise the document - srcDocument.write("<html><head></head><body class='tc-body tc-single-tiddler-window'></body></html>"); - srcDocument.close(); - srcDocument.title = windowTitle; - srcWindow.addEventListener("beforeunload",function(event) { - delete windows[title]; - $tw.wiki.removeEventListener("change",refreshHandler); - },false); - // Set up the styles - var styleWidgetNode = $tw.wiki.makeTranscludeWidget("$:/core/ui/PageStylesheet",{ - document: $tw.fakeDocument, - variables: variables, - importPageMacros: true}), - styleContainer = $tw.fakeDocument.createElement("style"); - styleWidgetNode.render(styleContainer,null); - var styleElement = srcDocument.createElement("style"); - styleElement.innerHTML = styleContainer.textContent; - srcDocument.head.insertBefore(styleElement,srcDocument.head.firstChild); - // Render the text of the tiddler - var parser = $tw.wiki.parseTiddler(template), - widgetNode = $tw.wiki.makeWidget(parser,{document: srcDocument, parentWidget: $tw.rootWidget, variables: variables}); - widgetNode.render(srcDocument.body,srcDocument.body.firstChild); - // Function to handle refreshes - refreshHandler = function(changes) { - if(styleWidgetNode.refresh(changes,styleContainer,null)) { - styleElement.innerHTML = styleContainer.textContent; - } - widgetNode.refresh(changes); - }; - $tw.wiki.addEventListener("change",refreshHandler); - // Listen for keyboard shortcuts - $tw.utils.addEventListeners(srcDocument,[{ - name: "keydown", - handlerObject: $tw.keyboardManager, - handlerMethod: "handleKeydownEvent" - },{ - name: "click", - handlerObject: $tw.popup, - handlerMethod: "handleEvent" - }]); - srcWindow.haveInitialisedWindow = true; - }); - // Close open windows when unloading main window - $tw.addUnloadTask(function() { - $tw.utils.each(windows,function(win) { - win.close(); - }); - }); - -}; - -})(); --
/*\ -title: $:/core/modules/story.js -type: application/javascript -module-type: global - -Lightweight object for managing interactions with the story and history lists. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Construct Story object with options: -wiki: reference to wiki object to use to resolve tiddler titles -storyTitle: title of story list tiddler -historyTitle: title of history list tiddler -*/ -function Story(options) { - options = options || {}; - this.wiki = options.wiki || $tw.wiki; - this.storyTitle = options.storyTitle || "$:/StoryList"; - this.historyTitle = options.historyTitle || "$:/HistoryList"; -}; - -Story.prototype.navigateTiddler = function(navigateTo,navigateFromTitle,navigateFromClientRect) { - this.addToStory(navigateTo,navigateFromTitle); - this.addToHistory(navigateTo,navigateFromClientRect); -}; - -Story.prototype.getStoryList = function() { - return this.wiki.getTiddlerList(this.storyTitle) || []; -}; - -Story.prototype.addToStory = function(navigateTo,navigateFromTitle,options) { - options = options || {}; - var storyList = this.getStoryList(); - // See if the tiddler is already there - var slot = storyList.indexOf(navigateTo); - // Quit if it already exists in the story river - if(slot >= 0) { - return; - } - // First we try to find the position of the story element we navigated from - var fromIndex = storyList.indexOf(navigateFromTitle); - if(fromIndex >= 0) { - // The tiddler is added from inside the river - // Determine where to insert the tiddler; Fallback is "below" - switch(options.openLinkFromInsideRiver) { - case "top": - slot = 0; - break; - case "bottom": - slot = storyList.length; - break; - case "above": - slot = fromIndex; - break; - case "below": // Intentional fall-through - default: - slot = fromIndex + 1; - break; - } - } else { - // The tiddler is opened from outside the river. Determine where to insert the tiddler; default is "top" - if(options.openLinkFromOutsideRiver === "bottom") { - // Insert at bottom - slot = storyList.length; - } else { - // Insert at top - slot = 0; - } - } - // Add the tiddler - storyList.splice(slot,0,navigateTo); - // Save the story - this.saveStoryList(storyList); -}; - -Story.prototype.saveStoryList = function(storyList) { - var storyTiddler = this.wiki.getTiddler(this.storyTitle); - this.wiki.addTiddler(new $tw.Tiddler( - this.wiki.getCreationFields(), - {title: this.storyTitle}, - storyTiddler, - {list: storyList}, - this.wiki.getModificationFields() - )); -}; - -Story.prototype.addToHistory = function(navigateTo,navigateFromClientRect) { - var titles = $tw.utils.isArray(navigateTo) ? navigateTo : [navigateTo]; - // Add a new record to the top of the history stack - var historyList = this.wiki.getTiddlerData(this.historyTitle,[]); - $tw.utils.each(titles,function(title) { - historyList.push({title: title, fromPageRect: navigateFromClientRect}); - }); - this.wiki.setTiddlerData(this.historyTitle,historyList,{"current-tiddler": titles[titles.length-1]}); -}; - -Story.prototype.storyCloseTiddler = function(targetTitle) { -// TBD -}; - -Story.prototype.storyCloseAllTiddlers = function() { -// TBD -}; - -Story.prototype.storyCloseOtherTiddlers = function(targetTitle) { -// TBD -}; - -Story.prototype.storyEditTiddler = function(targetTitle) { -// TBD -}; - -Story.prototype.storyDeleteTiddler = function(targetTitle) { -// TBD -}; - -Story.prototype.storySaveTiddler = function(targetTitle) { -// TBD -}; - -Story.prototype.storyCancelTiddler = function(targetTitle) { -// TBD -}; - -Story.prototype.storyNewTiddler = function(targetTitle) { -// TBD -}; - -exports.Story = Story; - - -})(); --
/*\ -title: $:/core/modules/storyviews/classic.js -type: application/javascript -module-type: storyview - -Views the story as a linear sequence - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var easing = "cubic-bezier(0.645, 0.045, 0.355, 1)"; // From http://easings.net/#easeInOutCubic - -var ClassicStoryView = function(listWidget) { - this.listWidget = listWidget; -}; - -ClassicStoryView.prototype.navigateTo = function(historyInfo) { - var duration = $tw.utils.getAnimationDuration() - var listElementIndex = this.listWidget.findListItem(0,historyInfo.title); - if(listElementIndex === undefined) { - return; - } - var listItemWidget = this.listWidget.children[listElementIndex], - targetElement = listItemWidget.findFirstDomNode(); - // Abandon if the list entry isn't a DOM element (it might be a text node) - if(!(targetElement instanceof Element)) { - return; - } - if(duration) { - // Scroll the node into view - this.listWidget.dispatchEvent({type: "tm-scroll", target: targetElement}); - } else { - targetElement.scrollIntoView(); - } -}; - -ClassicStoryView.prototype.insert = function(widget) { - var duration = $tw.utils.getAnimationDuration(); - if(duration) { - var targetElement = widget.findFirstDomNode(); - // Abandon if the list entry isn't a DOM element (it might be a text node) - if(!(targetElement instanceof Element)) { - return; - } - // Get the current height of the tiddler - var computedStyle = window.getComputedStyle(targetElement), - currMarginBottom = parseInt(computedStyle.marginBottom,10), - currMarginTop = parseInt(computedStyle.marginTop,10), - currHeight = targetElement.offsetHeight + currMarginTop; - // Reset the margin once the transition is over - setTimeout(function() { - $tw.utils.setStyle(targetElement,[ - {transition: "none"}, - {marginBottom: ""} - ]); - },duration); - // Set up the initial position of the element - $tw.utils.setStyle(targetElement,[ - {transition: "none"}, - {marginBottom: (-currHeight) + "px"}, - {opacity: "0.0"} - ]); - $tw.utils.forceLayout(targetElement); - // Transition to the final position - $tw.utils.setStyle(targetElement,[ - {transition: "opacity " + duration + "ms " + easing + ", " + - "margin-bottom " + duration + "ms " + easing}, - {marginBottom: currMarginBottom + "px"}, - {opacity: "1.0"} - ]); - } -}; - -ClassicStoryView.prototype.remove = function(widget) { - var duration = $tw.utils.getAnimationDuration(); - if(duration) { - var targetElement = widget.findFirstDomNode(), - removeElement = function() { - widget.removeChildDomNodes(); - }; - // Abandon if the list entry isn't a DOM element (it might be a text node) - if(!(targetElement instanceof Element)) { - removeElement(); - return; - } - // Get the current height of the tiddler - var currWidth = targetElement.offsetWidth, - computedStyle = window.getComputedStyle(targetElement), - currMarginBottom = parseInt(computedStyle.marginBottom,10), - currMarginTop = parseInt(computedStyle.marginTop,10), - currHeight = targetElement.offsetHeight + currMarginTop; - // Remove the dom nodes of the widget at the end of the transition - setTimeout(removeElement,duration); - // Animate the closure - $tw.utils.setStyle(targetElement,[ - {transition: "none"}, - {transform: "translateX(0px)"}, - {marginBottom: currMarginBottom + "px"}, - {opacity: "1.0"} - ]); - $tw.utils.forceLayout(targetElement); - $tw.utils.setStyle(targetElement,[ - {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms " + easing + ", " + - "opacity " + duration + "ms " + easing + ", " + - "margin-bottom " + duration + "ms " + easing}, - {transform: "translateX(-" + currWidth + "px)"}, - {marginBottom: (-currHeight) + "px"}, - {opacity: "0.0"} - ]); - } else { - widget.removeChildDomNodes(); - } -}; - -exports.classic = ClassicStoryView; - -})();-
/*\ -title: $:/core/modules/storyviews/pop.js -type: application/javascript -module-type: storyview - -Animates list insertions and removals - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var PopStoryView = function(listWidget) { - this.listWidget = listWidget; -}; - -PopStoryView.prototype.navigateTo = function(historyInfo) { - var listElementIndex = this.listWidget.findListItem(0,historyInfo.title); - if(listElementIndex === undefined) { - return; - } - var listItemWidget = this.listWidget.children[listElementIndex], - targetElement = listItemWidget.findFirstDomNode(); - // Abandon if the list entry isn't a DOM element (it might be a text node) - if(!(targetElement instanceof Element)) { - return; - } - // Scroll the node into view - this.listWidget.dispatchEvent({type: "tm-scroll", target: targetElement}); -}; - -PopStoryView.prototype.insert = function(widget) { - var targetElement = widget.findFirstDomNode(), - duration = $tw.utils.getAnimationDuration(); - // Abandon if the list entry isn't a DOM element (it might be a text node) - if(!(targetElement instanceof Element)) { - return; - } - // Reset once the transition is over - setTimeout(function() { - $tw.utils.setStyle(targetElement,[ - {transition: "none"}, - {transform: "none"} - ]); - $tw.utils.setStyle(widget.document.body,[ - {"overflow-x": ""} - ]); - },duration); - // Prevent the page from overscrolling due to the zoom factor - $tw.utils.setStyle(widget.document.body,[ - {"overflow-x": "hidden"} - ]); - // Set up the initial position of the element - $tw.utils.setStyle(targetElement,[ - {transition: "none"}, - {transform: "scale(2)"}, - {opacity: "0.0"} - ]); - $tw.utils.forceLayout(targetElement); - // Transition to the final position - $tw.utils.setStyle(targetElement,[ - {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms ease-in-out, " + - "opacity " + duration + "ms ease-in-out"}, - {transform: "scale(1)"}, - {opacity: "1.0"} - ]); -}; - -PopStoryView.prototype.remove = function(widget) { - var targetElement = widget.findFirstDomNode(), - duration = $tw.utils.getAnimationDuration(), - removeElement = function() { - if(targetElement && targetElement.parentNode) { - widget.removeChildDomNodes(); - } - }; - // Abandon if the list entry isn't a DOM element (it might be a text node) - if(!(targetElement instanceof Element)) { - removeElement(); - return; - } - // Remove the element at the end of the transition - setTimeout(removeElement,duration); - // Animate the closure - $tw.utils.setStyle(targetElement,[ - {transition: "none"}, - {transform: "scale(1)"}, - {opacity: "1.0"} - ]); - $tw.utils.forceLayout(targetElement); - $tw.utils.setStyle(targetElement,[ - {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms ease-in-out, " + - "opacity " + duration + "ms ease-in-out"}, - {transform: "scale(0.1)"}, - {opacity: "0.0"} - ]); -}; - -exports.pop = PopStoryView; - -})(); --
/*\ -title: $:/core/modules/storyviews/zoomin.js -type: application/javascript -module-type: storyview - -Zooms between individual tiddlers - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var easing = "cubic-bezier(0.645, 0.045, 0.355, 1)"; // From http://easings.net/#easeInOutCubic - -var ZoominListView = function(listWidget) { - var self = this; - this.listWidget = listWidget; - // Get the index of the tiddler that is at the top of the history - var history = this.listWidget.wiki.getTiddlerDataCached(this.listWidget.historyTitle,[]), - targetTiddler; - if(history.length > 0) { - targetTiddler = history[history.length-1].title; - } - // Make all the tiddlers position absolute, and hide all but the top (or first) one - $tw.utils.each(this.listWidget.children,function(itemWidget,index) { - var domNode = itemWidget.findFirstDomNode(); - // Abandon if the list entry isn't a DOM element (it might be a text node) - if(!(domNode instanceof Element)) { - return; - } - if((targetTiddler && targetTiddler !== itemWidget.parseTreeNode.itemTitle) || (!targetTiddler && index)) { - domNode.style.display = "none"; - } else { - self.currentTiddlerDomNode = domNode; - } - $tw.utils.addClass(domNode,"tc-storyview-zoomin-tiddler"); - }); -}; - -ZoominListView.prototype.navigateTo = function(historyInfo) { - var duration = $tw.utils.getAnimationDuration(), - listElementIndex = this.listWidget.findListItem(0,historyInfo.title); - if(listElementIndex === undefined) { - return; - } - var listItemWidget = this.listWidget.children[listElementIndex], - targetElement = listItemWidget.findFirstDomNode(); - // Abandon if the list entry isn't a DOM element (it might be a text node) - if(!(targetElement instanceof Element)) { - return; - } - // Make the new tiddler be position absolute and visible so that we can measure it - $tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler"); - $tw.utils.setStyle(targetElement,[ - {display: "block"}, - {transformOrigin: "0 0"}, - {transform: "translateX(0px) translateY(0px) scale(1)"}, - {transition: "none"}, - {opacity: "0.0"} - ]); - // Get the position of the source node, or use the centre of the window as the source position - var sourceBounds = historyInfo.fromPageRect || { - left: window.innerWidth/2 - 2, - top: window.innerHeight/2 - 2, - width: window.innerWidth/8, - height: window.innerHeight/8 - }; - // Try to find the title node in the target tiddler - var titleDomNode = findTitleDomNode(listItemWidget) || listItemWidget.findFirstDomNode(), - zoomBounds = titleDomNode.getBoundingClientRect(); - // Compute the transform for the target tiddler to make the title lie over the source rectange - var targetBounds = targetElement.getBoundingClientRect(), - scale = sourceBounds.width / zoomBounds.width, - x = sourceBounds.left - targetBounds.left - (zoomBounds.left - targetBounds.left) * scale, - y = sourceBounds.top - targetBounds.top - (zoomBounds.top - targetBounds.top) * scale; - // Transform the target tiddler to its starting position - $tw.utils.setStyle(targetElement,[ - {transform: "translateX(" + x + "px) translateY(" + y + "px) scale(" + scale + ")"} - ]); - // Force layout - $tw.utils.forceLayout(targetElement); - // Apply the ending transitions with a timeout to ensure that the previously applied transformations are applied first - var self = this, - prevCurrentTiddler = this.currentTiddlerDomNode; - this.currentTiddlerDomNode = targetElement; - // Transform the target tiddler to its natural size - $tw.utils.setStyle(targetElement,[ - {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms " + easing + ", opacity " + duration + "ms " + easing}, - {opacity: "1.0"}, - {transform: "translateX(0px) translateY(0px) scale(1)"}, - {zIndex: "500"}, - ]); - // Transform the previous tiddler out of the way and then hide it - if(prevCurrentTiddler && prevCurrentTiddler !== targetElement) { - scale = zoomBounds.width / sourceBounds.width; - x = zoomBounds.left - targetBounds.left - (sourceBounds.left - targetBounds.left) * scale; - y = zoomBounds.top - targetBounds.top - (sourceBounds.top - targetBounds.top) * scale; - $tw.utils.setStyle(prevCurrentTiddler,[ - {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms " + easing + ", opacity " + duration + "ms " + easing}, - {opacity: "0.0"}, - {transformOrigin: "0 0"}, - {transform: "translateX(" + x + "px) translateY(" + y + "px) scale(" + scale + ")"}, - {zIndex: "0"} - ]); - // Hide the tiddler when the transition has finished - setTimeout(function() { - if(self.currentTiddlerDomNode !== prevCurrentTiddler) { - prevCurrentTiddler.style.display = "none"; - } - },duration); - } - // Scroll the target into view -// $tw.pageScroller.scrollIntoView(targetElement); -}; - -/* -Find the first child DOM node of a widget that has the class "tc-title" -*/ -function findTitleDomNode(widget,targetClass) { - targetClass = targetClass || "tc-title"; - var domNode = widget.findFirstDomNode(); - if(domNode && domNode.querySelector) { - return domNode.querySelector("." + targetClass); - } - return null; -} - -ZoominListView.prototype.insert = function(widget) { - var targetElement = widget.findFirstDomNode(); - // Abandon if the list entry isn't a DOM element (it might be a text node) - if(!(targetElement instanceof Element)) { - return; - } - // Make the newly inserted node position absolute and hidden - $tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler"); - $tw.utils.setStyle(targetElement,[ - {display: "none"} - ]); -}; - -ZoominListView.prototype.remove = function(widget) { - var targetElement = widget.findFirstDomNode(), - duration = $tw.utils.getAnimationDuration(), - removeElement = function() { - widget.removeChildDomNodes(); - }; - // Abandon if the list entry isn't a DOM element (it might be a text node) - if(!(targetElement instanceof Element)) { - removeElement(); - return; - } - // Abandon if hidden - if(targetElement.style.display != "block" ) { - removeElement(); - return; - } - // Set up the tiddler that is being closed - $tw.utils.addClass(targetElement,"tc-storyview-zoomin-tiddler"); - $tw.utils.setStyle(targetElement,[ - {display: "block"}, - {transformOrigin: "50% 50%"}, - {transform: "translateX(0px) translateY(0px) scale(1)"}, - {transition: "none"}, - {zIndex: "0"} - ]); - // We'll move back to the previous or next element in the story - var toWidget = widget.previousSibling(); - if(!toWidget) { - toWidget = widget.nextSibling(); - } - var toWidgetDomNode = toWidget && toWidget.findFirstDomNode(); - // Set up the tiddler we're moving back in - if(toWidgetDomNode) { - $tw.utils.addClass(toWidgetDomNode,"tc-storyview-zoomin-tiddler"); - $tw.utils.setStyle(toWidgetDomNode,[ - {display: "block"}, - {transformOrigin: "50% 50%"}, - {transform: "translateX(0px) translateY(0px) scale(10)"}, - {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms " + easing + ", opacity " + duration + "ms " + easing}, - {opacity: "0"}, - {zIndex: "500"} - ]); - this.currentTiddlerDomNode = toWidgetDomNode; - } - // Animate them both - // Force layout - $tw.utils.forceLayout(this.listWidget.parentDomNode); - // First, the tiddler we're closing - $tw.utils.setStyle(targetElement,[ - {transformOrigin: "50% 50%"}, - {transform: "translateX(0px) translateY(0px) scale(0.1)"}, - {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms " + easing + ", opacity " + duration + "ms " + easing}, - {opacity: "0"}, - {zIndex: "0"} - ]); - setTimeout(removeElement,duration); - // Now the tiddler we're going back to - if(toWidgetDomNode) { - $tw.utils.setStyle(toWidgetDomNode,[ - {transform: "translateX(0px) translateY(0px) scale(1)"}, - {opacity: "1"} - ]); - } - return true; // Indicate that we'll delete the DOM node -}; - -exports.zoomin = ZoominListView; - -})(); --
/*\ -title: $:/core/modules/syncer.js -type: application/javascript -module-type: global - -The syncer tracks changes to the store and synchronises them to a remote data store represented as a "sync adaptor" - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Defaults -*/ -Syncer.prototype.titleIsLoggedIn = "$:/status/IsLoggedIn"; -Syncer.prototype.titleIsAnonymous = "$:/status/IsAnonymous"; -Syncer.prototype.titleIsReadOnly = "$:/status/IsReadOnly"; -Syncer.prototype.titleUserName = "$:/status/UserName"; -Syncer.prototype.titleSyncFilter = "$:/config/SyncFilter"; -Syncer.prototype.titleSyncPollingInterval = "$:/config/SyncPollingInterval"; -Syncer.prototype.titleSyncDisableLazyLoading = "$:/config/SyncDisableLazyLoading"; -Syncer.prototype.titleSavedNotification = "$:/language/Notifications/Save/Done"; -Syncer.prototype.titleSyncThrottleInterval = "$:/config/SyncThrottleInterval"; -Syncer.prototype.taskTimerInterval = 1 * 1000; // Interval for sync timer -Syncer.prototype.throttleInterval = 1 * 1000; // Defer saving tiddlers if they've changed in the last 1s... -Syncer.prototype.errorRetryInterval = 5 * 1000; // Interval to retry after an error -Syncer.prototype.fallbackInterval = 10 * 1000; // Unless the task is older than 10s -Syncer.prototype.pollTimerInterval = 60 * 1000; // Interval for polling for changes from the adaptor - -/* -Instantiate the syncer with the following options: -syncadaptor: reference to syncadaptor to be used -wiki: wiki to be synced -*/ -function Syncer(options) { - var self = this; - this.wiki = options.wiki; - // Save parameters - this.syncadaptor = options.syncadaptor; - this.disableUI = !!options.disableUI; - this.titleIsLoggedIn = options.titleIsLoggedIn || this.titleIsLoggedIn; - this.titleUserName = options.titleUserName || this.titleUserName; - this.titleSyncFilter = options.titleSyncFilter || this.titleSyncFilter; - this.titleSavedNotification = options.titleSavedNotification || this.titleSavedNotification; - this.taskTimerInterval = options.taskTimerInterval || this.taskTimerInterval; - this.throttleInterval = options.throttleInterval || parseInt(this.wiki.getTiddlerText(this.titleSyncThrottleInterval,""),10) || this.throttleInterval; - this.errorRetryInterval = options.errorRetryInterval || this.errorRetryInterval; - this.fallbackInterval = options.fallbackInterval || this.fallbackInterval; - this.pollTimerInterval = options.pollTimerInterval || parseInt(this.wiki.getTiddlerText(this.titleSyncPollingInterval,""),10) || this.pollTimerInterval; - this.logging = "logging" in options ? options.logging : true; - // Make a logger - this.logger = new $tw.utils.Logger("syncer" + ($tw.browser ? "-browser" : "") + ($tw.node ? "-server" : "") + (this.syncadaptor.name ? ("-" + this.syncadaptor.name) : ""),{ - colour: "cyan", - enable: this.logging, - saveHistory: true - }); - // Make another logger for connection errors - this.loggerConnection = new $tw.utils.Logger("syncer" + ($tw.browser ? "-browser" : "") + ($tw.node ? "-server" : "") + (this.syncadaptor.name ? ("-" + this.syncadaptor.name) : "") + "-connection",{ - colour: "cyan", - enable: this.logging - }); - // Ask the syncadaptor to use the main logger - if(this.syncadaptor.setLoggerSaveBuffer) { - this.syncadaptor.setLoggerSaveBuffer(this.logger); - } - // Compile the dirty tiddler filter - this.filterFn = this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter)); - // Record information for known tiddlers - this.readTiddlerInfo(); - this.titlesToBeLoaded = {}; // Hashmap of titles of tiddlers that need loading from the server - this.titlesHaveBeenLazyLoaded = {}; // Hashmap of titles of tiddlers that have already been lazily loaded from the server - // Timers - this.taskTimerId = null; // Timer for task dispatch - this.pollTimerId = null; // Timer for polling server - // Number of outstanding requests - this.numTasksInProgress = 0; - // Listen out for changes to tiddlers - this.wiki.addEventListener("change",function(changes) { - // Filter the changes to just include ones that are being synced - var filteredChanges = self.getSyncedTiddlers(function(callback) { - $tw.utils.each(changes,function(change,title) { - var tiddler = self.wiki.tiddlerExists(title) && self.wiki.getTiddler(title); - callback(tiddler,title); - }); - }); - if(filteredChanges.length > 0) { - self.processTaskQueue(); - } else { - // Look for deletions of tiddlers we're already syncing - var outstandingDeletion = false - $tw.utils.each(changes,function(change,title,object) { - if(change.deleted && $tw.utils.hop(self.tiddlerInfo,title)) { - outstandingDeletion = true; - } - }); - if(outstandingDeletion) { - self.processTaskQueue(); - } - } - }); - // Browser event handlers - if($tw.browser && !this.disableUI) { - // Set up our beforeunload handler - $tw.addUnloadTask(function(event) { - var confirmationMessage; - if(self.isDirty()) { - confirmationMessage = $tw.language.getString("UnsavedChangesWarning"); - event.returnValue = confirmationMessage; // Gecko - } - return confirmationMessage; - }); - // Listen out for login/logout/refresh events in the browser - $tw.rootWidget.addEventListener("tm-login",function() { - self.handleLoginEvent(); - }); - $tw.rootWidget.addEventListener("tm-logout",function() { - self.handleLogoutEvent(); - }); - $tw.rootWidget.addEventListener("tm-server-refresh",function() { - self.handleRefreshEvent(); - }); - $tw.rootWidget.addEventListener("tm-copy-syncer-logs-to-clipboard",function() { - $tw.utils.copyToClipboard($tw.utils.getSystemInfo() + "\n\nLog:\n" + self.logger.getBuffer()); - }); - } - // Listen out for lazyLoad events - if(!this.disableUI && $tw.wiki.getTiddlerText(this.titleSyncDisableLazyLoading) !== "yes") { - this.wiki.addEventListener("lazyLoad",function(title) { - self.handleLazyLoadEvent(title); - }); - } - // Get the login status - this.getStatus(function(err,isLoggedIn) { - // Do a sync from the server - self.syncFromServer(); - }); -} - -/* -Show a generic network error alert -*/ -Syncer.prototype.displayError = function(msg,err) { - if(err === ($tw.language.getString("Error/XMLHttpRequest") + ": 0")) { - this.loggerConnection.alert($tw.language.getString("Error/NetworkErrorAlert")); - this.logger.log(msg + ":",err); - } else { - this.logger.alert(msg + ":",err); - } -}; - -/* -Return an array of the tiddler titles that are subjected to syncing -*/ -Syncer.prototype.getSyncedTiddlers = function(source) { - return this.filterFn.call(this.wiki,source); -}; - -/* -Return an array of the tiddler titles that are subjected to syncing -*/ -Syncer.prototype.getTiddlerRevision = function(title) { - if(this.syncadaptor && this.syncadaptor.getTiddlerRevision) { - return this.syncadaptor.getTiddlerRevision(title); - } else { - return this.wiki.getTiddler(title).fields.revision; - } -}; - -/* -Read (or re-read) the latest tiddler info from the store -*/ -Syncer.prototype.readTiddlerInfo = function() { - // Hashmap by title of {revision:,changeCount:,adaptorInfo:} - // "revision" is the revision of the tiddler last seen on the server, and "changecount" is the corresponding local changecount - this.tiddlerInfo = {}; - // Record information for known tiddlers - var self = this, - tiddlers = this.getSyncedTiddlers(); - $tw.utils.each(tiddlers,function(title) { - var tiddler = self.wiki.tiddlerExists(title) && self.wiki.getTiddler(title); - self.tiddlerInfo[title] = { - revision: self.getTiddlerRevision(title), - adaptorInfo: self.syncadaptor && self.syncadaptor.getTiddlerInfo(tiddler), - changeCount: self.wiki.getChangeCount(title) - }; - }); -}; - -/* -Checks whether the wiki is dirty (ie the window shouldn't be closed) -*/ -Syncer.prototype.isDirty = function() { - this.logger.log("Checking dirty status"); - // Check tiddlers that are in the store and included in the filter function - var titles = this.getSyncedTiddlers(); - for(var index=0; index<titles.length; index++) { - var title = titles[index], - tiddlerInfo = this.tiddlerInfo[title]; - if(this.wiki.tiddlerExists(title)) { - if(tiddlerInfo) { - // If the tiddler is known on the server and has been modified locally then it needs to be saved to the server - if($tw.wiki.getChangeCount(title) > tiddlerInfo.changeCount) { - return true; - } - } else { - // If the tiddler isn't known on the server then it needs to be saved to the server - return true; - } - } - } - // Check tiddlers that are known from the server but not currently in the store - titles = Object.keys(this.tiddlerInfo); - for(index=0; index<titles.length; index++) { - if(!this.wiki.tiddlerExists(titles[index])) { - // There must be a pending delete - return true; - } - } - return false; -}; - -/* -Update the document body with the class "tc-dirty" if the wiki has unsaved/unsynced changes -*/ -Syncer.prototype.updateDirtyStatus = function() { - if($tw.browser && !this.disableUI) { - var dirty = this.isDirty(); - $tw.utils.toggleClass(document.body,"tc-dirty",dirty); - if(!dirty) { - this.loggerConnection.clearAlerts(); - } - } -}; - -/* -Save an incoming tiddler in the store, and updates the associated tiddlerInfo -*/ -Syncer.prototype.storeTiddler = function(tiddlerFields) { - // Save the tiddler - var tiddler = new $tw.Tiddler(tiddlerFields); - this.wiki.addTiddler(tiddler); - // Save the tiddler revision and changeCount details - this.tiddlerInfo[tiddlerFields.title] = { - revision: this.getTiddlerRevision(tiddlerFields.title), - adaptorInfo: this.syncadaptor.getTiddlerInfo(tiddler), - changeCount: this.wiki.getChangeCount(tiddlerFields.title) - }; -}; - -Syncer.prototype.getStatus = function(callback) { - var self = this; - // Check if the adaptor supports getStatus() - if(this.syncadaptor && this.syncadaptor.getStatus) { - // Mark us as not logged in - this.wiki.addTiddler({title: this.titleIsLoggedIn,text: "no"}); - // Get login status - this.syncadaptor.getStatus(function(err,isLoggedIn,username,isReadOnly,isAnonymous) { - if(err) { - self.logger.alert(err); - } else { - // Set the various status tiddlers - self.wiki.addTiddler({title: self.titleIsReadOnly,text: isReadOnly ? "yes" : "no"}); - self.wiki.addTiddler({title: self.titleIsAnonymous,text: isAnonymous ? "yes" : "no"}); - self.wiki.addTiddler({title: self.titleIsLoggedIn,text: isLoggedIn ? "yes" : "no"}); - if(isLoggedIn) { - self.wiki.addTiddler({title: self.titleUserName,text: username || ""}); - } - } - // Invoke the callback - if(callback) { - callback(err,isLoggedIn,username); - } - }); - } else { - callback(null,true,"UNAUTHENTICATED"); - } -}; - -/* -Synchronise from the server by reading the skinny tiddler list and queuing up loads for any tiddlers that we don't already have up to date -*/ -Syncer.prototype.syncFromServer = function() { - var self = this, - cancelNextSync = function() { - if(self.pollTimerId) { - clearTimeout(self.pollTimerId); - self.pollTimerId = null; - } - }, - triggerNextSync = function() { - self.pollTimerId = setTimeout(function() { - self.pollTimerId = null; - self.syncFromServer.call(self); - },self.pollTimerInterval); - }; - if(this.syncadaptor && this.syncadaptor.getUpdatedTiddlers) { - this.logger.log("Retrieving updated tiddler list"); - cancelNextSync(); - this.syncadaptor.getUpdatedTiddlers(self,function(err,updates) { - triggerNextSync(); - if(err) { - self.displayError($tw.language.getString("Error/RetrievingSkinny"),err); - return; - } - if(updates) { - $tw.utils.each(updates.modifications,function(title) { - self.titlesToBeLoaded[title] = true; - }); - $tw.utils.each(updates.deletions,function(title) { - delete self.tiddlerInfo[title]; - self.logger.log("Deleting tiddler missing from server:",title); - self.wiki.deleteTiddler(title); - }); - if(updates.modifications.length > 0 || updates.deletions.length > 0) { - self.processTaskQueue(); - } - } - }); - } else if(this.syncadaptor && this.syncadaptor.getSkinnyTiddlers) { - this.logger.log("Retrieving skinny tiddler list"); - cancelNextSync(); - this.syncadaptor.getSkinnyTiddlers(function(err,tiddlers) { - triggerNextSync(); - // Check for errors - if(err) { - self.displayError($tw.language.getString("Error/RetrievingSkinny"),err); - return; - } - // Keep track of which tiddlers we already know about have been reported this time - var previousTitles = Object.keys(self.tiddlerInfo); - // Process each incoming tiddler - for(var t=0; t<tiddlers.length; t++) { - // Get the incoming tiddler fields, and the existing tiddler - var tiddlerFields = tiddlers[t], - incomingRevision = tiddlerFields.revision + "", - tiddler = self.wiki.tiddlerExists(tiddlerFields.title) && self.wiki.getTiddler(tiddlerFields.title), - tiddlerInfo = self.tiddlerInfo[tiddlerFields.title], - currRevision = tiddlerInfo ? tiddlerInfo.revision : null, - indexInPreviousTitles = previousTitles.indexOf(tiddlerFields.title); - if(indexInPreviousTitles !== -1) { - previousTitles.splice(indexInPreviousTitles,1); - } - // Ignore the incoming tiddler if it's the same as the revision we've already got - if(currRevision !== incomingRevision) { - // Only load the skinny version if we don't already have a fat version of the tiddler - if(!tiddler || tiddler.fields.text === undefined) { - self.storeTiddler(tiddlerFields); - } - // Do a full load of this tiddler - self.titlesToBeLoaded[tiddlerFields.title] = true; - } - } - // Delete any tiddlers that were previously reported but missing this time - $tw.utils.each(previousTitles,function(title) { - delete self.tiddlerInfo[title]; - self.logger.log("Deleting tiddler missing from server:",title); - self.wiki.deleteTiddler(title); - }); - self.processTaskQueue(); - }); - } -}; - -/* -Force load a tiddler from the server -*/ -Syncer.prototype.enqueueLoadTiddler = function(title) { - this.titlesToBeLoaded[title] = true; - this.processTaskQueue(); -}; - -/* -Lazily load a skinny tiddler if we can -*/ -Syncer.prototype.handleLazyLoadEvent = function(title) { - // Ignore if the syncadaptor doesn't handle it - if(!this.syncadaptor.supportsLazyLoading) { - return; - } - // Don't lazy load the same tiddler twice - if(!this.titlesHaveBeenLazyLoaded[title]) { - // Don't lazy load if the tiddler isn't included in the sync filter - if(this.getSyncedTiddlers().indexOf(title) !== -1) { - // Mark the tiddler as needing loading, and having already been lazily loaded - this.titlesToBeLoaded[title] = true; - this.titlesHaveBeenLazyLoaded[title] = true; - } - } -}; - -/* -Dispay a password prompt and allow the user to login -*/ -Syncer.prototype.handleLoginEvent = function() { - var self = this; - this.getStatus(function(err,isLoggedIn,username) { - if(!err && !isLoggedIn) { - $tw.passwordPrompt.createPrompt({ - serviceName: $tw.language.getString("LoginToTiddlySpace"), - callback: function(data) { - self.login(data.username,data.password,function(err,isLoggedIn) { - self.syncFromServer(); - }); - return true; // Get rid of the password prompt - } - }); - } - }); -}; - -/* -Attempt to login to TiddlyWeb. - username: username - password: password - callback: invoked with arguments (err,isLoggedIn) -*/ -Syncer.prototype.login = function(username,password,callback) { - this.logger.log("Attempting to login as",username); - var self = this; - if(this.syncadaptor.login) { - this.syncadaptor.login(username,password,function(err) { - if(err) { - return callback(err); - } - self.getStatus(function(err,isLoggedIn,username) { - if(callback) { - callback(err,isLoggedIn); - } - }); - }); - } else { - callback(null,true); - } -}; - -/* -Attempt to log out of TiddlyWeb -*/ -Syncer.prototype.handleLogoutEvent = function() { - this.logger.log("Attempting to logout"); - var self = this; - if(this.syncadaptor.logout) { - this.syncadaptor.logout(function(err) { - if(err) { - self.logger.alert(err); - } else { - self.getStatus(); - } - }); - } -}; - -/* -Immediately refresh from the server -*/ -Syncer.prototype.handleRefreshEvent = function() { - this.syncFromServer(); -}; - -/* -Process the next task -*/ -Syncer.prototype.processTaskQueue = function() { - var self = this; - // Only process a task if the sync adaptor is fully initialised and we're not already performing - // a task. If we are already performing a task then we'll dispatch the next one when it completes - if((!this.syncadaptor.isReady || this.syncadaptor.isReady()) && this.numTasksInProgress === 0) { - // Choose the next task to perform - var task = this.chooseNextTask(); - // Perform the task if we had one - if(typeof task === "object" && task !== null) { - this.numTasksInProgress += 1; - task.run(function(err) { - self.numTasksInProgress -= 1; - if(err) { - self.displayError("Sync error while processing " + task.type + " of '" + task.title + "'",err); - self.updateDirtyStatus(); - self.triggerTimeout(self.errorRetryInterval); - } else { - self.updateDirtyStatus(); - // Process the next task - self.processTaskQueue.call(self); - } - }); - } else { - // No task is ready so update the status - this.updateDirtyStatus(); - // And trigger a timeout if there is a pending task - if(task === true) { - this.triggerTimeout(); - } - } - } else { - this.updateDirtyStatus(); - } -}; - -Syncer.prototype.triggerTimeout = function(interval) { - var self = this; - if(!this.taskTimerId) { - this.taskTimerId = setTimeout(function() { - self.taskTimerId = null; - self.processTaskQueue.call(self); - },interval || self.taskTimerInterval); - } -}; - -/* -Choose the next sync task. We prioritise saves, then deletes, then loads from the server - -Returns either a task object, null if there's no upcoming tasks, or the boolean true if there are pending tasks that aren't yet due -*/ -Syncer.prototype.chooseNextTask = function() { - var thresholdLastSaved = (new Date()) - this.throttleInterval, - havePending = null; - // First we look for tiddlers that have been modified locally and need saving back to the server - var titles = this.getSyncedTiddlers(); - for(var index=0; index<titles.length; index++) { - var title = titles[index], - tiddler = this.wiki.tiddlerExists(title) && this.wiki.getTiddler(title), - tiddlerInfo = this.tiddlerInfo[title]; - if(tiddler) { - // If the tiddler is not known on the server, or has been modified locally no more recently than the threshold then it needs to be saved to the server - var hasChanged = !tiddlerInfo || $tw.wiki.getChangeCount(title) > tiddlerInfo.changeCount, - isReadyToSave = !tiddlerInfo || !tiddlerInfo.timestampLastSaved || tiddlerInfo.timestampLastSaved < thresholdLastSaved; - if(hasChanged) { - if(isReadyToSave) { - return new SaveTiddlerTask(this,title); - } else { - havePending = true; - } - } - } - } - // Second, we check tiddlers that are known from the server but not currently in the store, and so need deleting on the server - titles = Object.keys(this.tiddlerInfo); - for(index=0; index<titles.length; index++) { - title = titles[index]; - tiddlerInfo = this.tiddlerInfo[title]; - tiddler = this.wiki.tiddlerExists(title) && this.wiki.getTiddler(title); - if(!tiddler) { - return new DeleteTiddlerTask(this,title); - } - } - // Check for tiddlers that need loading - title = Object.keys(this.titlesToBeLoaded)[0]; - if(title) { - delete this.titlesToBeLoaded[title]; - return new LoadTiddlerTask(this,title); - } - // No tasks are ready - return havePending; -}; - -function SaveTiddlerTask(syncer,title) { - this.syncer = syncer; - this.title = title; - this.type = "save"; -} - -SaveTiddlerTask.prototype.run = function(callback) { - var self = this, - changeCount = this.syncer.wiki.getChangeCount(this.title), - tiddler = this.syncer.wiki.tiddlerExists(this.title) && this.syncer.wiki.getTiddler(this.title); - this.syncer.logger.log("Dispatching 'save' task:",this.title); - if(tiddler) { - this.syncer.syncadaptor.saveTiddler(tiddler,function(err,adaptorInfo,revision) { - // If there's an error, exit without changing any internal state - if(err) { - return callback(err); - } - // Adjust the info stored about this tiddler - self.syncer.tiddlerInfo[self.title] = { - changeCount: changeCount, - adaptorInfo: adaptorInfo, - revision: revision, - timestampLastSaved: new Date() - }; - // Invoke the callback - callback(null); - }); - } else { - this.syncer.logger.log(" Not Dispatching 'save' task:",this.title,"tiddler does not exist"); - $tw.utils.nextTick(callback(null)); - } -}; - -function DeleteTiddlerTask(syncer,title) { - this.syncer = syncer; - this.title = title; - this.type = "delete"; -} - -DeleteTiddlerTask.prototype.run = function(callback) { - var self = this; - this.syncer.logger.log("Dispatching 'delete' task:",this.title); - this.syncer.syncadaptor.deleteTiddler(this.title,function(err) { - // If there's an error, exit without changing any internal state - if(err) { - return callback(err); - } - // Remove the info stored about this tiddler - delete self.syncer.tiddlerInfo[self.title]; - // Invoke the callback - callback(null); - },{ - tiddlerInfo: self.syncer.tiddlerInfo[this.title] - }); -}; - -function LoadTiddlerTask(syncer,title) { - this.syncer = syncer; - this.title = title; - this.type = "load"; -} - -LoadTiddlerTask.prototype.run = function(callback) { - var self = this; - this.syncer.logger.log("Dispatching 'load' task:",this.title); - this.syncer.syncadaptor.loadTiddler(this.title,function(err,tiddlerFields) { - // If there's an error, exit without changing any internal state - if(err) { - return callback(err); - } - // Update the info stored about this tiddler - if(tiddlerFields) { - self.syncer.storeTiddler(tiddlerFields); - } - // Invoke the callback - callback(null); - }); -}; - -exports.Syncer = Syncer; - -})(); --
/*\ -title: $:/core/modules/tiddler.js -type: application/javascript -module-type: tiddlermethod - -Extension methods for the $tw.Tiddler object (constructor and methods required at boot time are in boot/boot.js) - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.hasTag = function(tag) { - return this.fields.tags && this.fields.tags.indexOf(tag) !== -1; -}; - -exports.isPlugin = function() { - return this.fields.type === "application/json" && this.hasField("plugin-type"); -}; - -exports.isDraft = function() { - return this.hasField("draft.of"); -}; - -exports.getFieldString = function(field) { - var value = this.fields[field]; - // Check for a missing field - if(value === undefined || value === null) { - return ""; - } - // Parse the field with the associated module (if any) - var fieldModule = $tw.Tiddler.fieldModules[field]; - if(fieldModule && fieldModule.stringify) { - return fieldModule.stringify.call(this,value); - } else { - return value.toString(); - } -}; - -/* -Get the value of a field as a list -*/ -exports.getFieldList = function(field) { - var value = this.fields[field]; - // Check for a missing field - if(value === undefined || value === null) { - return []; - } - return $tw.utils.parseStringArray(value); -}; - -/* -Get all the fields as a hashmap of strings. Options: - exclude: an array of field names to exclude -*/ -exports.getFieldStrings = function(options) { - options = options || {}; - var exclude = options.exclude || []; - var fields = {}; - for(var field in this.fields) { - if($tw.utils.hop(this.fields,field)) { - if(exclude.indexOf(field) === -1) { - fields[field] = this.getFieldString(field); - } - } - } - return fields; -}; - -/* -Get all the fields as a name:value block. Options: - exclude: an array of field names to exclude -*/ -exports.getFieldStringBlock = function(options) { - options = options || {}; - var exclude = options.exclude || [], - fields = Object.keys(this.fields).sort(), - result = []; - for(var t=0; t<fields.length; t++) { - var field = fields[t]; - if(exclude.indexOf(field) === -1) { - result.push(field + ": " + this.getFieldString(field)); - } - } - return result.join("\n"); -}; - -exports.getFieldDay = function(field) { - if(this.cache && this.cache.day && $tw.utils.hop(this.cache.day,field) ) { - return this.cache.day[field]; - } - var day = ""; - if(this.fields[field]) { - day = (new Date($tw.utils.parseDate(this.fields[field]))).setHours(0,0,0,0); - } - this.cache.day = this.cache.day || {}; - this.cache.day[field] = day; - return day; -}; - -})(); --
/*\ -title: $:/core/modules/upgraders/plugins.js -type: application/javascript -module-type: upgrader - -Upgrader module that checks that plugins are newer than any already installed version - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var UPGRADE_LIBRARY_TITLE = "$:/UpgradeLibrary"; - -var BLOCKED_PLUGINS = { - "$:/themes/tiddlywiki/stickytitles": { - versions: ["*"] - }, - "$:/plugins/tiddlywiki/fullscreen": { - versions: ["*"] - } -}; - -exports.upgrade = function(wiki,titles,tiddlers) { - var self = this, - messages = {}, - upgradeLibrary, - getLibraryTiddler = function(title) { - if(!upgradeLibrary) { - upgradeLibrary = wiki.getTiddlerData(UPGRADE_LIBRARY_TITLE,{}); - upgradeLibrary.tiddlers = upgradeLibrary.tiddlers || {}; - } - return upgradeLibrary.tiddlers[title]; - }; - - // Go through all the incoming tiddlers - $tw.utils.each(titles,function(title) { - var incomingTiddler = tiddlers[title]; - // Check if we're dealing with a plugin - if(incomingTiddler && incomingTiddler["plugin-type"]) { - // Check whether the plugin contains JS modules - var requiresReload = $tw.wiki.doesPluginInfoRequireReload(JSON.parse(incomingTiddler.text)) ? ($tw.wiki.getTiddlerText("$:/language/ControlPanel/Plugins/PluginWillRequireReload") + " ") : ""; - messages[title] = requiresReload; - if(incomingTiddler.version) { - // Upgrade the incoming plugin if it is in the upgrade library - var libraryTiddler = getLibraryTiddler(title); - if(libraryTiddler && libraryTiddler["plugin-type"] && libraryTiddler.version) { - tiddlers[title] = libraryTiddler; - messages[title] = requiresReload + $tw.language.getString("Import/Upgrader/Plugins/Upgraded",{variables: {incoming: incomingTiddler.version, upgraded: libraryTiddler.version}}); - return; - } - // Suppress the incoming plugin if it is older than the currently installed one - var existingTiddler = wiki.getTiddler(title); - if(existingTiddler && existingTiddler.hasField("plugin-type") && existingTiddler.hasField("version")) { - // Reject the incoming plugin by blanking all its fields - if($tw.utils.checkVersions(existingTiddler.fields.version,incomingTiddler.version)) { - tiddlers[title] = Object.create(null); - messages[title] = requiresReload + $tw.language.getString("Import/Upgrader/Plugins/Suppressed/Version",{variables: {incoming: incomingTiddler.version, existing: existingTiddler.fields.version}}); - return; - } - } - } - // Check whether the plugin is on the blocked list - var blockInfo = BLOCKED_PLUGINS[title]; - if(blockInfo) { - if(blockInfo.versions.indexOf("*") !== -1 || (incomingTiddler.version && blockInfo.versions.indexOf(incomingTiddler.version) !== -1)) { - tiddlers[title] = Object.create(null); - messages[title] = $tw.language.getString("Import/Upgrader/Plugins/Suppressed/Incompatible"); - return; - } - } - } - }); - return messages; -}; - -})(); --
/*\ -title: $:/core/modules/upgraders/system.js -type: application/javascript -module-type: upgrader - -Upgrader module that suppresses certain system tiddlers that shouldn't be imported - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var DONT_IMPORT_LIST = ["$:/StoryList","$:/HistoryList"], - DONT_IMPORT_PREFIX_LIST = ["$:/temp/","$:/state/","$:/Import"], - WARN_IMPORT_PREFIX_LIST = ["$:/core/modules/"]; - -exports.upgrade = function(wiki,titles,tiddlers) { - var self = this, - messages = {}, - showAlert = false; - // Check for tiddlers on our list - $tw.utils.each(titles,function(title) { - if(DONT_IMPORT_LIST.indexOf(title) !== -1) { - tiddlers[title] = Object.create(null); - messages[title] = $tw.language.getString("Import/Upgrader/System/Suppressed"); - } else { - for(var t=0; t<DONT_IMPORT_PREFIX_LIST.length; t++) { - var prefix = DONT_IMPORT_PREFIX_LIST[t]; - if(title.substr(0,prefix.length) === prefix) { - tiddlers[title] = Object.create(null); - messages[title] = $tw.language.getString("Import/Upgrader/State/Suppressed"); - } - } - for(var t=0; t<WARN_IMPORT_PREFIX_LIST.length; t++) { - var prefix = WARN_IMPORT_PREFIX_LIST[t]; - if(title.substr(0,prefix.length) === prefix && wiki.isShadowTiddler(title)) { - showAlert = true; - messages[title] = $tw.language.getString("Import/Upgrader/System/Warning"); - } - } - } - }); - if(showAlert) { - var logger = new $tw.utils.Logger("import"); - logger.alert($tw.language.getString("Import/Upgrader/System/Alert")); - } - return messages; -}; - -})(); --
/*\ -title: $:/core/modules/upgraders/themetweaks.js -type: application/javascript -module-type: upgrader - -Upgrader module that handles the change in theme tweak storage introduced in 5.0.14-beta. - -Previously, theme tweaks were stored in two data tiddlers: - -* $:/themes/tiddlywiki/vanilla/metrics -* $:/themes/tiddlywiki/vanilla/settings - -Now, each tweak is stored in its own separate tiddler. - -This upgrader copies any values from the old format to the new. The old data tiddlers are not deleted in case they have been used to store additional indexes. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var MAPPINGS = { - "$:/themes/tiddlywiki/vanilla/metrics": { - "fontsize": "$:/themes/tiddlywiki/vanilla/metrics/fontsize", - "lineheight": "$:/themes/tiddlywiki/vanilla/metrics/lineheight", - "storyleft": "$:/themes/tiddlywiki/vanilla/metrics/storyleft", - "storytop": "$:/themes/tiddlywiki/vanilla/metrics/storytop", - "storyright": "$:/themes/tiddlywiki/vanilla/metrics/storyright", - "storywidth": "$:/themes/tiddlywiki/vanilla/metrics/storywidth", - "tiddlerwidth": "$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth" - }, - "$:/themes/tiddlywiki/vanilla/settings": { - "fontfamily": "$:/themes/tiddlywiki/vanilla/settings/fontfamily" - } -}; - -exports.upgrade = function(wiki,titles,tiddlers) { - var self = this, - messages = {}; - // Check for tiddlers on our list - $tw.utils.each(titles,function(title) { - var mapping = MAPPINGS[title]; - if(mapping) { - var tiddler = new $tw.Tiddler(tiddlers[title]), - tiddlerData = wiki.getTiddlerDataCached(tiddler,{}); - for(var index in mapping) { - var mappedTitle = mapping[index]; - if(!tiddlers[mappedTitle] || tiddlers[mappedTitle].title !== mappedTitle) { - tiddlers[mappedTitle] = { - title: mappedTitle, - text: tiddlerData[index] - }; - messages[mappedTitle] = $tw.language.getString("Import/Upgrader/ThemeTweaks/Created",{variables: { - from: title + "##" + index - }}); - } - } - } - }); - return messages; -}; - -})(); --
(function(){// From https://gist.github.com/Nijikokun/5192472 -// -// UTF8 Module -// -// Cleaner and modularized utf-8 encoding and decoding library for javascript. -// -// copyright: MIT -// author: Nijiko Yonskai, @nijikokun, nijikokun@gmail.com -!function(r,e,o,t){void 0!==o.module&&o.module.exports?o.module.exports=e.apply(o):void 0!==o.define&&"function"===o.define&&o.define.amd?define("utf8",[],e):o.utf8=e.apply(o)}(0,function(){return{encode:function(r){if("string"!=typeof r)return r;r=r.replace(/\r\n/g,"\n");for(var e,o="",t=0;t<r.length;t++)(e=r.charCodeAt(t))<128?o+=String.fromCharCode(e):e>127&&e<2048?(o+=String.fromCharCode(e>>6|192),o+=String.fromCharCode(63&e|128)):(o+=String.fromCharCode(e>>12|224),o+=String.fromCharCode(e>>6&63|128),o+=String.fromCharCode(63&e|128));return o},decode:function(r){if("string"!=typeof r)return r;for(var e="",o=0,t=0;o<r.length;)(t=r.charCodeAt(o))<128?(e+=String.fromCharCode(t),o++):t>191&&t<224?(e+=String.fromCharCode((31&t)<<6|63&r.charCodeAt(o+1)),o+=2):(e+=String.fromCharCode((15&t)<<12|(63&r.charCodeAt(o+1))<<6|63&r.charCodeAt(o+2)),o+=3);return e}}},this),function(r,e,o,t){if(void 0!==o.module&&o.module.exports){if(t&&o.require)for(var n=0;n<t.length;n++)o[t[n]]=o.require(t[n]);o.module.exports=e.apply(o)}else void 0!==o.define&&"function"===o.define&&o.define.amd?define("base64",t||[],e):o.base64=e.apply(o)}(0,function(r){var e=r||this.utf8,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(r){if(void 0===e)throw{error:"MissingMethod",message:"UTF8 Module is missing."};if("string"!=typeof r)return r;r=e.encode(r);for(var t,n,i,d,f,a,h,c="",u=0;u<r.length;)d=(t=r.charCodeAt(u++))>>2,f=(3&t)<<4|(n=r.charCodeAt(u++))>>4,a=(15&n)<<2|(i=r.charCodeAt(u++))>>6,h=63&i,isNaN(n)?a=h=64:isNaN(i)&&(h=64),c+=o.charAt(d)+o.charAt(f)+o.charAt(a)+o.charAt(h);return c},decode:function(r){if(void 0===e)throw{error:"MissingMethod",message:"UTF8 Module is missing."};if("string"!=typeof r)return r;r=r.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var t,n,i,d,f,a,h="",c=0;c<r.length;)t=o.indexOf(r.charAt(c++))<<2|(d=o.indexOf(r.charAt(c++)))>>4,n=(15&d)<<4|(f=o.indexOf(r.charAt(c++)))>>2,i=(3&f)<<6|(a=o.indexOf(r.charAt(c++))),h+=String.fromCharCode(t),64!=f&&(h+=String.fromCharCode(n)),64!=a&&(h+=String.fromCharCode(i));return e.decode(h)}}},this,["utf8"]);}).call(exports);-
/*\ -title: $:/core/modules/utils/crypto.js -type: application/javascript -module-type: utils - -Utility functions related to crypto. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Look for an encrypted store area in the text of a TiddlyWiki file -*/ -exports.extractEncryptedStoreArea = function(text) { - var encryptedStoreAreaStartMarker = "<pre id=\"encryptedStoreArea\" type=\"text/plain\" style=\"display:none;\">", - encryptedStoreAreaStart = text.indexOf(encryptedStoreAreaStartMarker); - if(encryptedStoreAreaStart !== -1) { - var encryptedStoreAreaEnd = text.indexOf("</pre>",encryptedStoreAreaStart); - if(encryptedStoreAreaEnd !== -1) { - return $tw.utils.htmlDecode(text.substring(encryptedStoreAreaStart + encryptedStoreAreaStartMarker.length,encryptedStoreAreaEnd-1)); - } - } - return null; -}; - -/* -Attempt to extract the tiddlers from an encrypted store area using the current password. If the password is not provided then the password in the password store will be used -*/ -exports.decryptStoreArea = function(encryptedStoreArea,password) { - var decryptedText = $tw.crypto.decrypt(encryptedStoreArea,password); - if(decryptedText) { - var json = JSON.parse(decryptedText), - tiddlers = []; - for(var title in json) { - if(title !== "$:/isEncrypted") { - tiddlers.push(json[title]); - } - } - return tiddlers; - } else { - return null; - } -}; - - -/* -Attempt to extract the tiddlers from an encrypted store area using the current password. If that fails, the user is prompted for a password. -encryptedStoreArea: text of the TiddlyWiki encrypted store area -callback: function(tiddlers) called with the array of decrypted tiddlers - -The following configuration settings are supported: - -$tw.config.usePasswordVault: causes any password entered by the user to also be put into the system password vault -*/ -exports.decryptStoreAreaInteractive = function(encryptedStoreArea,callback,options) { - // Try to decrypt with the current password - var tiddlers = $tw.utils.decryptStoreArea(encryptedStoreArea); - if(tiddlers) { - callback(tiddlers); - } else { - // Prompt for a new password and keep trying - $tw.passwordPrompt.createPrompt({ - serviceName: "Enter a password to decrypt the imported TiddlyWiki", - noUserName: true, - canCancel: true, - submitText: "Decrypt", - callback: function(data) { - // Exit if the user cancelled - if(!data) { - return false; - } - // Attempt to decrypt the tiddlers - var tiddlers = $tw.utils.decryptStoreArea(encryptedStoreArea,data.password); - if(tiddlers) { - if($tw.config.usePasswordVault) { - $tw.crypto.setPassword(data.password); - } - callback(tiddlers); - // Exit and remove the password prompt - return true; - } else { - // We didn't decrypt everything, so continue to prompt for password - return false; - } - } - }); - } -}; - -})(); --
/*\ -title: $:/core/modules/utils/csv.js -type: application/javascript -module-type: utils - -A barebones CSV parser - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Parse a CSV string with a header row and return an array of hashmaps. -*/ -exports.parseCsvStringWithHeader = function(text,options) { - options = options || {}; - var separator = options.separator || ",", - rows = text.split(/\r?\n/mg).map(function(row) { - return $tw.utils.trim(row); - }).filter(function(row) { - return row !== ""; - }); - if(rows.length < 1) { - return "Missing header row"; - } - var headings = rows[0].split(separator), - results = []; - for(var row=1; row<rows.length; row++) { - var columns = rows[row].split(separator), - columnResult = Object.create(null); - if(columns.length !== headings.length) { - return "Malformed CSV row '" + rows[row] + "'"; - } - for(var column=0; column<columns.length; column++) { - var columnName = headings[column]; - columnResult[columnName] = $tw.utils.trim(columns[column] || ""); - } - results.push(columnResult); - } - return results; -} - -})(); --
(function(){function diff_match_patch(){this.Diff_Timeout=1;this.Diff_EditCost=4;this.Match_Threshold=.5;this.Match_Distance=1E3;this.Patch_DeleteThreshold=.5;this.Patch_Margin=4;this.Match_MaxBits=32}var DIFF_DELETE=-1,DIFF_INSERT=1,DIFF_EQUAL=0; -diff_match_patch.prototype.diff_main=function(a,b,c,d){"undefined"==typeof d&&(d=0>=this.Diff_Timeout?Number.MAX_VALUE:(new Date).getTime()+1E3*this.Diff_Timeout);if(null==a||null==b)throw Error("Null input. (diff_main)");if(a==b)return a?[[DIFF_EQUAL,a]]:[];"undefined"==typeof c&&(c=!0);var e=c,f=this.diff_commonPrefix(a,b);c=a.substring(0,f);a=a.substring(f);b=b.substring(f);f=this.diff_commonSuffix(a,b);var g=a.substring(a.length-f);a=a.substring(0,a.length-f);b=b.substring(0,b.length-f);a=this.diff_compute_(a, -b,e,d);c&&a.unshift([DIFF_EQUAL,c]);g&&a.push([DIFF_EQUAL,g]);this.diff_cleanupMerge(a);return a}; -diff_match_patch.prototype.diff_compute_=function(a,b,c,d){if(!a)return[[DIFF_INSERT,b]];if(!b)return[[DIFF_DELETE,a]];var e=a.length>b.length?a:b,f=a.length>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>b.length&&(c[0][0]=c[2][0]=DIFF_DELETE),c):1==f.length?[[DIFF_DELETE,a],[DIFF_INSERT,b]]:(e=this.diff_halfMatch_(a,b))?(b=e[1],f=e[3],a=e[4],e=this.diff_main(e[0],e[2],c,d),c=this.diff_main(b,f,c,d),e.concat([[DIFF_EQUAL, -a]],c)):c&&100<a.length&&100<b.length?this.diff_lineMode_(a,b,d):this.diff_bisect_(a,b,d)}; -diff_match_patch.prototype.diff_lineMode_=function(a,b,c){var d=this.diff_linesToChars_(a,b);a=d.chars1;b=d.chars2;d=d.lineArray;a=this.diff_main(a,b,!1,c);this.diff_charsToLines_(a,d);this.diff_cleanupSemantic(a);a.push([DIFF_EQUAL,""]);for(var e=d=b=0,f="",g="";b<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<=d&&1<=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<=e;e--)a.splice(b,0,d[e]);b+= -d.length}d=e=0;g=f=""}b++}a.pop();return a}; -diff_match_patch.prototype.diff_bisect_=function(a,b,c){for(var d=a.length,e=b.length,f=Math.ceil((d+e)/2),g=2*f,h=Array(g),l=Array(g),k=0;k<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<f&&!((new Date).getTime()>c);t++){for(var v=-t+p;v<=t-x;v+=2){var n=f+v;var r=v==-t||v!=t&&h[n-1]<h[n+1]?h[n+1]:h[n-1]+1;for(var y=r-v;r<d&&y<e&&a.charAt(r)==b.charAt(y);)r++,y++;h[n]=r;if(r>d)x+=2;else if(y>e)p+=2;else if(m&&(n=f+k-v,0<=n&&n<g&&-1!=l[n])){var u=d-l[n];if(r>= -u)return this.diff_bisectSplit_(a,b,r,y,c)}}for(v=-t+w;v<=t-q;v+=2){n=f+v;u=v==-t||v!=t&&l[n-1]<l[n+1]?l[n+1]:l[n-1]+1;for(r=u-v;u<d&&r<e&&a.charAt(d-u-1)==b.charAt(e-r-1);)u++,r++;l[n]=u;if(u>d)q+=2;else if(r>e)w+=2;else if(!m&&(n=f+k-v,0<=n&&n<g&&-1!=h[n]&&(r=h[n],y=f+r-n,u=d-u,r>=u)))return this.diff_bisectSplit_(a,b,r,y,c)}}return[[DIFF_DELETE,a],[DIFF_INSERT,b]]}; -diff_match_patch.prototype.diff_bisectSplit_=function(a,b,c,d,e){var f=a.substring(0,c),g=b.substring(0,d);a=a.substring(c);b=b.substring(d);f=this.diff_main(f,g,!1,e);e=this.diff_main(a,b,!1,e);return f.concat(e)}; -diff_match_patch.prototype.diff_linesToChars_=function(a,b){function c(a){for(var b="",c=0,f=-1,g=d.length;f<a.length-1;){f=a.indexOf("\n",c);-1==f&&(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]="";var f=c(a),g=c(b);return{chars1:f,chars2:g,lineArray:d}}; -diff_match_patch.prototype.diff_charsToLines_=function(a,b){for(var c=0;c<a.length;c++){for(var d=a[c][1],e=[],f=0;f<d.length;f++)e[f]=b[d.charCodeAt(f)];a[c][1]=e.join("")}};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<e;)a.substring(f,e)==b.substring(f,e)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e}; -diff_match_patch.prototype.diff_commonSuffix=function(a,b){if(!a||!b||a.charAt(a.length-1)!=b.charAt(b.length-1))return 0;for(var c=0,d=Math.min(a.length,b.length),e=d,f=0;c<e;)a.substring(a.length-e,a.length-f)==b.substring(b.length-e,b.length-f)?f=c=e:d=e,e=Math.floor((d-c)/2+c);return e}; -diff_match_patch.prototype.diff_commonOverlap_=function(a,b){var c=a.length,d=b.length;if(0==c||0==d)return 0;c>d?a=a.substring(c-d):c<d&&(b=b.substring(0,c));c=Math.min(c,d);if(a==b)return c;d=0;for(var e=1;;){var f=a.substring(c-e);f=b.indexOf(f);if(-1==f)return d;e+=f;if(0==f||a.substring(c-e)==b.substring(0,e))d=e,e++}}; -diff_match_patch.prototype.diff_halfMatch_=function(a,b){function c(a,b,c){for(var d=a.substring(c,c+Math.floor(a.length/4)),e=-1,g="",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<u+p&&(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>=a.length?[h,k,l,m,g]:null}if(0>=this.Diff_Timeout)return null; -var d=a.length>b.length?a:b,e=a.length>b.length?b:a;if(4>d.length||2*e.length<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>d[4].length?g:d:d:g;else return null;if(a.length>b.length){d=g[0];e=g[1];var h=g[2];var l=g[3]}else h=g[0],l=g[1],d=g[2],e=g[3];return[d,e,h,l,g[4]]}; -diff_match_patch.prototype.diff_cleanupSemantic=function(a){for(var b=!1,c=[],d=0,e=null,f=0,g=0,h=0,l=0,k=0;f<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&&e.length<=Math.max(g,h)&&e.length<=Math.max(l,k)&&(a.splice(c[d-1],0,[DIFF_DELETE,e]),a[c[d-1]+1][0]=DIFF_INSERT,d--,d--,f=0<d?c[d-1]:-1,k=l=h=g=0,e=null,b=!0)),f++;b&&this.diff_cleanupMerge(a);this.diff_cleanupSemanticLossless(a);for(f=1;f<a.length;){if(a[f-1][0]== -DIFF_DELETE&&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>=e){if(d>=b.length/2||d>=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>=b.length/2||e>=c.length/2)a.splice(f,0,[DIFF_EQUAL,b.substring(0,e)]),a[f-1][0]=DIFF_INSERT,a[f-1][1]=c.substring(0,c.length-e),a[f+1][0]=DIFF_DELETE,a[f+1][1]=b.substring(e),f++;f++}f++}}; -diff_match_patch.prototype.diff_cleanupSemanticLossless=function(a){function b(a,b){if(!a||!b)return 6;var c=a.charAt(a.length-1),d=b.charAt(0),e=c.match(diff_match_patch.nonAlphaNumericRegex_),f=d.match(diff_match_patch.nonAlphaNumericRegex_),g=e&&c.match(diff_match_patch.whitespaceRegex_),h=f&&d.match(diff_match_patch.whitespaceRegex_);c=g&&c.match(diff_match_patch.linebreakRegex_);d=h&&d.match(diff_match_patch.linebreakRegex_);var k=c&&a.match(diff_match_patch.blanklineEndRegex_),l=d&&b.match(diff_match_patch.blanklineStartRegex_); -return k||l?5:c||d?4:e&&!g&&h?3:g||h?2:e||f?1:0}for(var c=1;c<a.length-1;){if(a[c-1][0]==DIFF_EQUAL&&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>=k&&(k=m,g=d,h=e,l=f)}a[c-1][1]!=g&&(g?a[c-1][1]=g:(a.splice(c- -1,1),c--),a[c][1]=h,l?a[c+1][1]=l:(a.splice(c+1,1),c--))}c++}};diff_match_patch.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;diff_match_patch.whitespaceRegex_=/\s/;diff_match_patch.linebreakRegex_=/[\r\n]/;diff_match_patch.blanklineEndRegex_=/\n\r?\n$/;diff_match_patch.blanklineStartRegex_=/^\r?\n\r?\n/; -diff_match_patch.prototype.diff_cleanupEfficiency=function(a){for(var b=!1,c=[],d=0,e=null,f=0,g=!1,h=!1,l=!1,k=!1;f<a.length;)a[f][0]==DIFF_EQUAL?(a[f][1].length<this.Diff_EditCost&&(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&&(g&&h&&l&&k||e.length<this.Diff_EditCost/2&&3==g+h+l+k)&&(a.splice(c[d-1],0,[DIFF_DELETE,e]),a[c[d-1]+1][0]=DIFF_INSERT,d--,e=null,g&&h?(l=k=!0,d=0):(d--,f=0<d?c[d-1]:-1,l=k=!1),b=!0)),f++;b&&this.diff_cleanupMerge(a)}; -diff_match_patch.prototype.diff_cleanupMerge=function(a){a.push([DIFF_EQUAL,""]);for(var b=0,c=0,d=0,e="",f="",g;b<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<c+d?(0!==c&&0!==d&&(g=this.diff_commonPrefix(f,e),0!==g&&(0<b-c-d&&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&&(a[b][1]=f.substring(f.length- -g)+a[b][1],f=f.substring(0,f.length-g),e=e.substring(0,e.length-g))),0===c?a.splice(b-d,c+d,[DIFF_INSERT,f]):0===d?a.splice(b-c,c+d,[DIFF_DELETE,e]):a.splice(b-c-d,c+d,[DIFF_DELETE,e],[DIFF_INSERT,f]),b=b-c-d+(c?1:0)+(d?1:0)+1):0!==b&&a[b-1][0]==DIFF_EQUAL?(a[b-1][1]+=a[b][1],a.splice(b,1)):b++,c=d=0,f=e=""}""===a[a.length-1][1]&&a.pop();c=!1;for(b=1;b<a.length-1;)a[b-1][0]==DIFF_EQUAL&&a[b+1][0]==DIFF_EQUAL&&(a[b][1].substring(a[b][1].length-a[b-1][1].length)==a[b-1][1]?(a[b][1]=a[b-1][1]+a[b][1].substring(0, -a[b][1].length-a[b-1][1].length),a[b+1][1]=a[b-1][1]+a[b+1][1],a.splice(b-1,1),c=!0):a[b][1].substring(0,a[b+1][1].length)==a[b+1][1]&&(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&&this.diff_cleanupMerge(a)}; -diff_match_patch.prototype.diff_xIndex=function(a,b){var c=0,d=0,e=0,f=0,g;for(g=0;g<a.length;g++){a[g][0]!==DIFF_INSERT&&(c+=a[g][1].length);a[g][0]!==DIFF_DELETE&&(d+=a[g][1].length);if(c>b)break;e=c;f=d}return a.length!=g&&a[g][0]===DIFF_DELETE?f:f+(b-e)}; -diff_match_patch.prototype.diff_prettyHtml=function(a){for(var b=[],c=/&/g,d=/</g,e=/>/g,f=/\n/g,g=0;g<a.length;g++){var h=a[g][0],l=a[g][1].replace(c,"&").replace(d,"<").replace(e,">").replace(f,"¶<br>");switch(h){case DIFF_INSERT:b[g]='<ins style="background:#e6ffe6;">'+l+"</ins>";break;case DIFF_DELETE:b[g]='<del style="background:#ffe6e6;">'+l+"</del>";break;case DIFF_EQUAL:b[g]="<span>"+l+"</span>"}}return b.join("")}; -diff_match_patch.prototype.diff_text1=function(a){for(var b=[],c=0;c<a.length;c++)a[c][0]!==DIFF_INSERT&&(b[c]=a[c][1]);return b.join("")};diff_match_patch.prototype.diff_text2=function(a){for(var b=[],c=0;c<a.length;c++)a[c][0]!==DIFF_DELETE&&(b[c]=a[c][1]);return b.join("")}; -diff_match_patch.prototype.diff_levenshtein=function(a){for(var b=0,c=0,d=0,e=0;e<a.length;e++){var f=a[e][1];switch(a[e][0]){case DIFF_INSERT:c+=f.length;break;case DIFF_DELETE:d+=f.length;break;case DIFF_EQUAL:b+=Math.max(c,d),d=c=0}}return b+=Math.max(c,d)}; -diff_match_patch.prototype.diff_toDelta=function(a){for(var b=[],c=0;c<a.length;c++)switch(a[c][0]){case DIFF_INSERT:b[c]="+"+encodeURI(a[c][1]);break;case DIFF_DELETE:b[c]="-"+a[c][1].length;break;case DIFF_EQUAL:b[c]="="+a[c][1].length}return b.join("\t").replace(/%20/g," ")}; -diff_match_patch.prototype.diff_fromDelta=function(a,b){for(var c=[],d=0,e=0,f=b.split(/\t/g),g=0;g<f.length;g++){var h=f[g].substring(1);switch(f[g].charAt(0)){case "+":try{c[d++]=[DIFF_INSERT,decodeURI(h)]}catch(k){throw Error("Illegal escape in diff_fromDelta: "+h);}break;case "-":case "=":var l=parseInt(h,10);if(isNaN(l)||0>l)throw Error("Invalid number in diff_fromDelta: "+h);h=a.substring(e,e+=l);"="==f[g].charAt(0)?c[d++]=[DIFF_EQUAL,h]:c[d++]=[DIFF_DELETE,h];break;default:if(f[g])throw Error("Invalid diff operation in diff_fromDelta: "+ -f[g]);}}if(e!=a.length)throw Error("Delta length ("+e+") does not equal source text length ("+a.length+").");return c};diff_match_patch.prototype.match_main=function(a,b,c){if(null==a||null==b||null==c)throw Error("Null input. (match_main)");c=Math.max(0,Math.min(c,a.length));return a==b?0:a.length?a.substring(c,c+b.length)==b?c:this.match_bitap_(a,b,c):-1}; -diff_match_patch.prototype.match_bitap_=function(a,b,c){function d(a,d){var e=a/b.length,g=Math.abs(c-d);return f.Match_Distance?e+g/f.Match_Distance:g?1:e}if(b.length>this.Match_MaxBits)throw Error("Pattern too long for this browser.");var e=this.match_alphabet_(b),f=this,g=this.Match_Threshold,h=a.indexOf(b,c);-1!=h&&(g=Math.min(d(0,h),g),h=a.lastIndexOf(b,c+b.length),-1!=h&&(g=Math.min(d(0,h),g)));var l=1<<b.length-1;h=-1;for(var k,m,p=b.length+a.length,x,w=0;w<b.length;w++){k=0;for(m=p;k<m;)d(w, -c+m)<=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<<w)-1;q>=k;q--){var t=e[a.charAt(q-1)];m[q]=0===w?(m[q+1]<<1|1)&t:(m[q+1]<<1|1)&t|(x[q+1]|x[q])<<1|1|x[q+1];if(m[q]&l&&(t=d(w,q-1),t<=g))if(g=t,h=q-1,h>c)k=Math.max(1,2*c-h);else break}if(d(w+1,c)>g)break;x=m}return h}; -diff_match_patch.prototype.match_alphabet_=function(a){for(var b={},c=0;c<a.length;c++)b[a.charAt(c)]=0;for(c=0;c<a.length;c++)b[a.charAt(c)]|=1<<a.length-c-1;return b}; -diff_match_patch.prototype.patch_addContext_=function(a,b){if(0!=b.length){for(var c=b.substring(a.start2,a.start2+a.length1),d=0;b.indexOf(c)!=b.lastIndexOf(c)&&c.length<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))&&a.diffs.unshift([DIFF_EQUAL,c]);(d=b.substring(a.start2+a.length1,a.start2+a.length1+d))&&a.diffs.push([DIFF_EQUAL,d]);a.start1-=c.length;a.start2-= -c.length;a.length1+=c.length+d.length;a.length2+=c.length+d.length}}; -diff_match_patch.prototype.patch_make=function(a,b,c){if("string"==typeof a&&"string"==typeof b&&"undefined"==typeof c){var d=a;b=this.diff_main(d,b,!0);2<b.length&&(this.diff_cleanupSemantic(b),this.diff_cleanupEfficiency(b))}else if(a&&"object"==typeof a&&"undefined"==typeof b&&"undefined"==typeof c)b=a,d=this.diff_text1(b);else if("string"==typeof a&&b&&"object"==typeof b&&"undefined"==typeof c)d=a;else if("string"==typeof a&&"string"==typeof b&&c&&"object"==typeof c)d=a,b=c;else throw Error("Unknown call format to patch_make."); -if(0===b.length)return[];c=[];a=new diff_match_patch.patch_obj;for(var e=0,f=0,g=0,h=d,l=0;l<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<=2*this.Patch_Margin&&e&&b.length!=l+1?(a.diffs[e++]=b[l],a.length1+=m.length,a.length2+=m.length): -m.length>=2*this.Patch_Margin&&e&&(this.patch_addContext_(a,h),c.push(a),a=new diff_match_patch.patch_obj,e=0,h=d,f=g)}k!==DIFF_INSERT&&(f+=m.length);k!==DIFF_DELETE&&(g+=m.length)}e&&(this.patch_addContext_(a,h),c.push(a));return c}; -diff_match_patch.prototype.patch_deepCopy=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=new diff_match_patch.patch_obj;e.diffs=[];for(var f=0;f<d.diffs.length;f++)e.diffs[f]=d.diffs[f].slice();e.start1=d.start1;e.start2=d.start2;e.length1=d.length1;e.length2=d.length2;b[c]=e}return b}; -diff_match_patch.prototype.patch_apply=function(a,b){if(0==a.length)return[b,[]];a=this.patch_deepCopy(a);var c=this.patch_addPadding(a);b=c+b+c;this.patch_splitMax(a);for(var d=0,e=[],f=0;f<a.length;f++){var g=a[f].start2+d,h=this.diff_text1(a[f].diffs),l=-1;if(h.length>this.Match_MaxBits){var k=this.match_main(b,h.substring(0,this.Match_MaxBits),g);-1!=k&&(l=this.match_main(b,h.substring(h.length-this.Match_MaxBits),g+h.length-this.Match_MaxBits),-1==l||k>=l)&&(k=-1)}else k=this.match_main(b,h, -g);if(-1==k)e[f]=!1,d-=a[f].length2-a[f].length1;else if(e[f]=!0,d=k-g,g=-1==l?b.substring(k,k+h.length):b.substring(k,l+this.Match_MaxBits),h==g)b=b.substring(0,k)+this.diff_text2(a[f].diffs)+b.substring(k+h.length);else if(g=this.diff_main(h,g,!1),h.length>this.Match_MaxBits&&this.diff_levenshtein(g)/h.length>this.Patch_DeleteThreshold)e[f]=!1;else{this.diff_cleanupSemanticLossless(g);h=0;var m;for(l=0;l<a[f].diffs.length;l++){var p=a[f].diffs[l];p[0]!==DIFF_EQUAL&&(m=this.diff_xIndex(g,h));p[0]=== -DIFF_INSERT?b=b.substring(0,k+m)+p[1]+b.substring(k+m):p[0]===DIFF_DELETE&&(b=b.substring(0,k+m)+b.substring(k+this.diff_xIndex(g,h+p[1].length)));p[0]!==DIFF_DELETE&&(h+=p[1].length)}}}b=b.substring(c.length,b.length-c.length);return[b,e]}; -diff_match_patch.prototype.patch_addPadding=function(a){for(var b=this.Patch_Margin,c="",d=1;d<=b;d++)c+=String.fromCharCode(d);for(d=0;d<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>e[0][1].length){var f=b-e[0][1].length;e[0][1]=c.substring(e[0][1].length)+e[0][1];d.start1-=f;d.start2-=f;d.length1+=f;d.length2+=f}d=a[a.length-1];e=d.diffs;0==e.length||e[e.length- -1][0]!=DIFF_EQUAL?(e.push([DIFF_EQUAL,c]),d.length1+=b,d.length2+=b):b>e[e.length-1][1].length&&(f=b-e[e.length-1][1].length,e[e.length-1][1]+=c.substring(0,f),d.length1+=f,d.length2+=f);return c}; -diff_match_patch.prototype.patch_splitMax=function(a){for(var b=this.Match_MaxBits,c=0;c<a.length;c++)if(!(a[c].length1<=b)){var d=a[c];a.splice(c--,1);for(var e=d.start1,f=d.start2,g="";0!==d.diffs.length;){var h=new diff_match_patch.patch_obj,l=!0;h.start1=e-g.length;h.start2=f-g.length;""!==g&&(h.length1=h.length2=g.length,h.diffs.push([DIFF_EQUAL,g]));for(;0!==d.diffs.length&&h.length1<b-this.Patch_Margin;){g=d.diffs[0][0];var k=d.diffs[0][1];g===DIFF_INSERT?(h.length2+=k.length,f+=k.length,h.diffs.push(d.diffs.shift()), -l=!1):g===DIFF_DELETE&&1==h.diffs.length&&h.diffs[0][0]==DIFF_EQUAL&&k.length>2*b?(h.length1+=k.length,e+=k.length,l=!1,h.diffs.push([g,k]),d.diffs.shift()):(k=k.substring(0,b-h.length1-this.Patch_Margin),h.length1+=k.length,e+=k.length,g===DIFF_EQUAL?(h.length2+=k.length,f+=k.length):l=!1,h.diffs.push([g,k]),k==d.diffs[0][1]?d.diffs.shift():d.diffs[0][1]=d.diffs[0][1].substring(k.length))}g=this.diff_text2(h.diffs);g=g.substring(g.length-this.Patch_Margin);k=this.diff_text1(d.diffs).substring(0, -this.Patch_Margin);""!==k&&(h.length1+=k.length,h.length2+=k.length,0!==h.diffs.length&&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<a.length;c++)b[c]=a[c];return b.join("")}; -diff_match_patch.prototype.patch_fromText=function(a){var b=[];if(!a)return b;a=a.split("\n");for(var c=0,d=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;c<a.length;){var e=a[c].match(d);if(!e)throw Error("Invalid patch string: "+a[c]);var f=new diff_match_patch.patch_obj;b.push(f);f.start1=parseInt(e[1],10);""===e[2]?(f.start1--,f.length1=1):"0"==e[2]?f.length1=0:(f.start1--,f.length1=parseInt(e[2],10));f.start2=parseInt(e[3],10);""===e[4]?(f.start2--,f.length2=1):"0"==e[4]?f.length2=0:(f.start2--,f.length2= -parseInt(e[4],10));for(c++;c<a.length;){e=a[c].charAt(0);try{var g=decodeURI(a[c].substring(1))}catch(h){throw Error("Illegal escape in patch_fromText: "+g);}if("-"==e)f.diffs.push([DIFF_DELETE,g]);else if("+"==e)f.diffs.push([DIFF_INSERT,g]);else if(" "==e)f.diffs.push([DIFF_EQUAL,g]);else if("@"==e)break;else if(""!==e)throw Error('Invalid patch mode "'+e+'" in: '+g);c++}}return b};diff_match_patch.patch_obj=function(){this.diffs=[];this.start2=this.start1=null;this.length2=this.length1=0}; -diff_match_patch.patch_obj.prototype.toString=function(){for(var a=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],b,c=0;c<this.diffs.length;c++){switch(this.diffs[c][0]){case DIFF_INSERT:b="+";break;case DIFF_DELETE:b="-";break;case DIFF_EQUAL:b=" "}a[c+1]=b+encodeURI(this.diffs[c][1])+"\n"}return a.join("").replace(/%20/g," ")}; -this.diff_match_patch=diff_match_patch;this.DIFF_DELETE=DIFF_DELETE;this.DIFF_INSERT=DIFF_INSERT;this.DIFF_EQUAL=DIFF_EQUAL; -}).call(exports);-
/*\ -title: $:/core/modules/utils/dom.js -type: application/javascript -module-type: utils - -Various static DOM-related utility functions. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Determines whether element 'a' contains element 'b' -Code thanks to John Resig, http://ejohn.org/blog/comparing-document-position/ -*/ -exports.domContains = function(a,b) { - return a.contains ? - a !== b && a.contains(b) : - !!(a.compareDocumentPosition(b) & 16); -}; - -exports.removeChildren = function(node) { - while(node.hasChildNodes()) { - node.removeChild(node.firstChild); - } -}; - -exports.hasClass = function(el,className) { - return el && el.className && el.className.toString().split(" ").indexOf(className) !== -1; -}; - -exports.addClass = function(el,className) { - var c = el.className.split(" "); - if(c.indexOf(className) === -1) { - c.push(className); - el.className = c.join(" "); - } -}; - -exports.removeClass = function(el,className) { - var c = el.className.split(" "), - p = c.indexOf(className); - if(p !== -1) { - c.splice(p,1); - el.className = c.join(" "); - } -}; - -exports.toggleClass = function(el,className,status) { - if(status === undefined) { - status = !exports.hasClass(el,className); - } - if(status) { - exports.addClass(el,className); - } else { - exports.removeClass(el,className); - } -}; - -/* -Get the first parent element that has scrollbars or use the body as fallback. -*/ -exports.getScrollContainer = function(el) { - var doc = el.ownerDocument; - while(el.parentNode) { - el = el.parentNode; - if(el.scrollTop) { - return el; - } - } - return doc.body; -}; - -/* -Get the scroll position of the viewport -Returns: - { - x: horizontal scroll position in pixels, - y: vertical scroll position in pixels - } -*/ -exports.getScrollPosition = function(srcWindow) { - var scrollWindow = srcWindow || window; - if("scrollX" in scrollWindow) { - return {x: scrollWindow.scrollX, y: scrollWindow.scrollY}; - } else { - return {x: scrollWindow.document.documentElement.scrollLeft, y: scrollWindow.document.documentElement.scrollTop}; - } -}; - -/* -Adjust the height of a textarea to fit its content, preserving scroll position, and return the height -*/ -exports.resizeTextAreaToFit = function(domNode,minHeight) { - // Get the scroll container and register the current scroll position - var container = $tw.utils.getScrollContainer(domNode), - scrollTop = container.scrollTop; - // Measure the specified minimum height - domNode.style.height = minHeight; - var measuredHeight = domNode.offsetHeight || parseInt(minHeight,10); - // Set its height to auto so that it snaps to the correct height - domNode.style.height = "auto"; - // Calculate the revised height - var newHeight = Math.max(domNode.scrollHeight + domNode.offsetHeight - domNode.clientHeight,measuredHeight); - // Only try to change the height if it has changed - if(newHeight !== domNode.offsetHeight) { - domNode.style.height = newHeight + "px"; - // Make sure that the dimensions of the textarea are recalculated - $tw.utils.forceLayout(domNode); - // Set the container to the position we registered at the beginning - container.scrollTop = scrollTop; - } - return newHeight; -}; - -/* -Gets the bounding rectangle of an element in absolute page coordinates -*/ -exports.getBoundingPageRect = function(element) { - var scrollPos = $tw.utils.getScrollPosition(element.ownerDocument.defaultView), - clientRect = element.getBoundingClientRect(); - return { - left: clientRect.left + scrollPos.x, - width: clientRect.width, - right: clientRect.right + scrollPos.x, - top: clientRect.top + scrollPos.y, - height: clientRect.height, - bottom: clientRect.bottom + scrollPos.y - }; -}; - -/* -Saves a named password in the browser -*/ -exports.savePassword = function(name,password) { - var done = false; - try { - window.localStorage.setItem("tw5-password-" + name,password); - done = true; - } catch(e) { - } - if(!done) { - $tw.savedPasswords = $tw.savedPasswords || Object.create(null); - $tw.savedPasswords[name] = password; - } -}; - -/* -Retrieve a named password from the browser -*/ -exports.getPassword = function(name) { - var value; - try { - value = window.localStorage.getItem("tw5-password-" + name); - } catch(e) { - } - if(value !== undefined) { - return value; - } else { - return ($tw.savedPasswords || Object.create(null))[name] || ""; - } -}; - -/* -Force layout of a dom node and its descendents -*/ -exports.forceLayout = function(element) { - var dummy = element.offsetWidth; -}; - -/* -Pulse an element for debugging purposes -*/ -exports.pulseElement = function(element) { - // Event handler to remove the class at the end - element.addEventListener($tw.browser.animationEnd,function handler(event) { - element.removeEventListener($tw.browser.animationEnd,handler,false); - $tw.utils.removeClass(element,"pulse"); - },false); - // Apply the pulse class - $tw.utils.removeClass(element,"pulse"); - $tw.utils.forceLayout(element); - $tw.utils.addClass(element,"pulse"); -}; - -/* -Attach specified event handlers to a DOM node -domNode: where to attach the event handlers -events: array of event handlers to be added (see below) -Each entry in the events array is an object with these properties: -handlerFunction: optional event handler function -handlerObject: optional event handler object -handlerMethod: optionally specifies object handler method name (defaults to `handleEvent`) -*/ -exports.addEventListeners = function(domNode,events) { - $tw.utils.each(events,function(eventInfo) { - var handler; - if(eventInfo.handlerFunction) { - handler = eventInfo.handlerFunction; - } else if(eventInfo.handlerObject) { - if(eventInfo.handlerMethod) { - handler = function(event) { - eventInfo.handlerObject[eventInfo.handlerMethod].call(eventInfo.handlerObject,event); - }; - } else { - handler = eventInfo.handlerObject; - } - } - domNode.addEventListener(eventInfo.name,handler,false); - }); -}; - -/* -Get the computed styles applied to an element as an array of strings of individual CSS properties -*/ -exports.getComputedStyles = function(domNode) { - var textAreaStyles = window.getComputedStyle(domNode,null), - styleDefs = [], - name; - for(var t=0; t<textAreaStyles.length; t++) { - name = textAreaStyles[t]; - styleDefs.push(name + ": " + textAreaStyles.getPropertyValue(name) + ";"); - } - return styleDefs; -}; - -/* -Apply a set of styles passed as an array of strings of individual CSS properties -*/ -exports.setStyles = function(domNode,styleDefs) { - domNode.style.cssText = styleDefs.join(""); -}; - -/* -Copy the computed styles from a source element to a destination element -*/ -exports.copyStyles = function(srcDomNode,dstDomNode) { - $tw.utils.setStyles(dstDomNode,$tw.utils.getComputedStyles(srcDomNode)); -}; - -/* -Copy plain text to the clipboard on browsers that support it -*/ -exports.copyToClipboard = function(text,options) { - options = options || {}; - var textArea = document.createElement("textarea"); - textArea.style.position = "fixed"; - textArea.style.top = 0; - textArea.style.left = 0; - textArea.style.fontSize = "12pt"; - textArea.style.width = "2em"; - textArea.style.height = "2em"; - textArea.style.padding = 0; - textArea.style.border = "none"; - textArea.style.outline = "none"; - textArea.style.boxShadow = "none"; - textArea.style.background = "transparent"; - textArea.value = text; - document.body.appendChild(textArea); - textArea.select(); - textArea.setSelectionRange(0,text.length); - var succeeded = false; - try { - succeeded = document.execCommand("copy"); - } catch (err) { - } - if(!options.doNotNotify) { - $tw.notifier.display(succeeded ? "$:/language/Notifications/CopiedToClipboard/Succeeded" : "$:/language/Notifications/CopiedToClipboard/Failed"); - } - document.body.removeChild(textArea); -}; - -exports.getLocationPath = function() { - return window.location.toString().split("#")[0]; -}; - - -})(); --
/*\ -title: $:/core/modules/utils/dom/animations/slide.js -type: application/javascript -module-type: animation - -A simple slide animation that varies the height of the element - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -function slideOpen(domNode,options) { - options = options || {}; - var duration = options.duration || $tw.utils.getAnimationDuration(); - // Get the current height of the domNode - var computedStyle = window.getComputedStyle(domNode), - currMarginBottom = parseInt(computedStyle.marginBottom,10), - currMarginTop = parseInt(computedStyle.marginTop,10), - currPaddingBottom = parseInt(computedStyle.paddingBottom,10), - currPaddingTop = parseInt(computedStyle.paddingTop,10), - currHeight = domNode.offsetHeight; - // Reset the margin once the transition is over - setTimeout(function() { - $tw.utils.setStyle(domNode,[ - {transition: "none"}, - {marginBottom: ""}, - {marginTop: ""}, - {paddingBottom: ""}, - {paddingTop: ""}, - {height: "auto"}, - {opacity: ""} - ]); - if(options.callback) { - options.callback(); - } - },duration); - // Set up the initial position of the element - $tw.utils.setStyle(domNode,[ - {transition: "none"}, - {marginTop: "0px"}, - {marginBottom: "0px"}, - {paddingTop: "0px"}, - {paddingBottom: "0px"}, - {height: "0px"}, - {opacity: "0"} - ]); - $tw.utils.forceLayout(domNode); - // Transition to the final position - $tw.utils.setStyle(domNode,[ - {transition: "margin-top " + duration + "ms ease-in-out, " + - "margin-bottom " + duration + "ms ease-in-out, " + - "padding-top " + duration + "ms ease-in-out, " + - "padding-bottom " + duration + "ms ease-in-out, " + - "height " + duration + "ms ease-in-out, " + - "opacity " + duration + "ms ease-in-out"}, - {marginBottom: currMarginBottom + "px"}, - {marginTop: currMarginTop + "px"}, - {paddingBottom: currPaddingBottom + "px"}, - {paddingTop: currPaddingTop + "px"}, - {height: currHeight + "px"}, - {opacity: "1"} - ]); -} - -function slideClosed(domNode,options) { - options = options || {}; - var duration = options.duration || $tw.utils.getAnimationDuration(), - currHeight = domNode.offsetHeight; - // Clear the properties we've set when the animation is over - setTimeout(function() { - $tw.utils.setStyle(domNode,[ - {transition: "none"}, - {marginBottom: ""}, - {marginTop: ""}, - {paddingBottom: ""}, - {paddingTop: ""}, - {height: "auto"}, - {opacity: ""} - ]); - if(options.callback) { - options.callback(); - } - },duration); - // Set up the initial position of the element - $tw.utils.setStyle(domNode,[ - {height: currHeight + "px"}, - {opacity: "1"} - ]); - $tw.utils.forceLayout(domNode); - // Transition to the final position - $tw.utils.setStyle(domNode,[ - {transition: "margin-top " + duration + "ms ease-in-out, " + - "margin-bottom " + duration + "ms ease-in-out, " + - "padding-top " + duration + "ms ease-in-out, " + - "padding-bottom " + duration + "ms ease-in-out, " + - "height " + duration + "ms ease-in-out, " + - "opacity " + duration + "ms ease-in-out"}, - {marginTop: "0px"}, - {marginBottom: "0px"}, - {paddingTop: "0px"}, - {paddingBottom: "0px"}, - {height: "0px"}, - {opacity: "0"} - ]); -} - -exports.slide = { - open: slideOpen, - close: slideClosed -}; - -})(); --
/*\ -title: $:/core/modules/utils/dom/animator.js -type: application/javascript -module-type: utils - -Orchestrates animations and transitions - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -function Animator() { - // Get the registered animation modules - this.animations = {}; - $tw.modules.applyMethods("animation",this.animations); -} - -Animator.prototype.perform = function(type,domNode,options) { - options = options || {}; - // Find an animation that can handle this type - var chosenAnimation; - $tw.utils.each(this.animations,function(animation,name) { - if($tw.utils.hop(animation,type)) { - chosenAnimation = animation[type]; - } - }); - if(!chosenAnimation) { - chosenAnimation = function(domNode,options) { - if(options.callback) { - options.callback(); - } - }; - } - // Call the animation - chosenAnimation(domNode,options); -}; - -exports.Animator = Animator; - -})(); --
/*\ -title: $:/core/modules/utils/dom/browser.js -type: application/javascript -module-type: utils - -Browser feature detection - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Set style properties of an element - element: dom node - styles: ordered array of {name: value} pairs -*/ -exports.setStyle = function(element,styles) { - if(element.nodeType === 1) { // Element.ELEMENT_NODE - for(var t=0; t<styles.length; t++) { - for(var styleName in styles[t]) { - element.style[$tw.utils.convertStyleNameToPropertyName(styleName)] = styles[t][styleName]; - } - } - } -}; - -/* -Converts a standard CSS property name into the local browser-specific equivalent. For example: - "background-color" --> "backgroundColor" - "transition" --> "webkitTransition" -*/ - -var styleNameCache = {}; // We'll cache the style name conversions - -exports.convertStyleNameToPropertyName = function(styleName) { - // Return from the cache if we can - if(styleNameCache[styleName]) { - return styleNameCache[styleName]; - } - // Convert it by first removing any hyphens - var propertyName = $tw.utils.unHyphenateCss(styleName); - // Then check if it needs a prefix - if($tw.browser && document.body.style[propertyName] === undefined) { - var prefixes = ["O","MS","Moz","webkit"]; - for(var t=0; t<prefixes.length; t++) { - var prefixedName = prefixes[t] + propertyName.substr(0,1).toUpperCase() + propertyName.substr(1); - if(document.body.style[prefixedName] !== undefined) { - propertyName = prefixedName; - break; - } - } - } - // Put it in the cache too - styleNameCache[styleName] = propertyName; - return propertyName; -}; - -/* -Converts a JS format CSS property name back into the dashed form used in CSS declarations. For example: - "backgroundColor" --> "background-color" - "webkitTransform" --> "-webkit-transform" -*/ -exports.convertPropertyNameToStyleName = function(propertyName) { - // Rehyphenate the name - var styleName = $tw.utils.hyphenateCss(propertyName); - // If there's a webkit prefix, add a dash (other browsers have uppercase prefixes, and so get the dash automatically) - if(styleName.indexOf("webkit") === 0) { - styleName = "-" + styleName; - } else if(styleName.indexOf("-m-s") === 0) { - styleName = "-ms" + styleName.substr(4); - } - return styleName; -}; - -/* -Round trip a stylename to a property name and back again. For example: - "transform" --> "webkitTransform" --> "-webkit-transform" -*/ -exports.roundTripPropertyName = function(propertyName) { - return $tw.utils.convertPropertyNameToStyleName($tw.utils.convertStyleNameToPropertyName(propertyName)); -}; - -/* -Converts a standard event name into the local browser specific equivalent. For example: - "animationEnd" --> "webkitAnimationEnd" -*/ - -var eventNameCache = {}; // We'll cache the conversions - -var eventNameMappings = { - "transitionEnd": { - correspondingCssProperty: "transition", - mappings: { - transition: "transitionend", - OTransition: "oTransitionEnd", - MSTransition: "msTransitionEnd", - MozTransition: "transitionend", - webkitTransition: "webkitTransitionEnd" - } - }, - "animationEnd": { - correspondingCssProperty: "animation", - mappings: { - animation: "animationend", - OAnimation: "oAnimationEnd", - MSAnimation: "msAnimationEnd", - MozAnimation: "animationend", - webkitAnimation: "webkitAnimationEnd" - } - } -}; - -exports.convertEventName = function(eventName) { - if(eventNameCache[eventName]) { - return eventNameCache[eventName]; - } - var newEventName = eventName, - mappings = eventNameMappings[eventName]; - if(mappings) { - var convertedProperty = $tw.utils.convertStyleNameToPropertyName(mappings.correspondingCssProperty); - if(mappings.mappings[convertedProperty]) { - newEventName = mappings.mappings[convertedProperty]; - } - } - // Put it in the cache too - eventNameCache[eventName] = newEventName; - return newEventName; -}; - -/* -Return the names of the fullscreen APIs -*/ -exports.getFullScreenApis = function() { - var d = document, - db = d.body, - result = { - "_requestFullscreen": db.webkitRequestFullscreen !== undefined ? "webkitRequestFullscreen" : - db.mozRequestFullScreen !== undefined ? "mozRequestFullScreen" : - db.msRequestFullscreen !== undefined ? "msRequestFullscreen" : - db.requestFullscreen !== undefined ? "requestFullscreen" : "", - "_exitFullscreen": d.webkitExitFullscreen !== undefined ? "webkitExitFullscreen" : - d.mozCancelFullScreen !== undefined ? "mozCancelFullScreen" : - d.msExitFullscreen !== undefined ? "msExitFullscreen" : - d.exitFullscreen !== undefined ? "exitFullscreen" : "", - "_fullscreenElement": d.webkitFullscreenElement !== undefined ? "webkitFullscreenElement" : - d.mozFullScreenElement !== undefined ? "mozFullScreenElement" : - d.msFullscreenElement !== undefined ? "msFullscreenElement" : - d.fullscreenElement !== undefined ? "fullscreenElement" : "", - "_fullscreenChange": d.webkitFullscreenElement !== undefined ? "webkitfullscreenchange" : - d.mozFullScreenElement !== undefined ? "mozfullscreenchange" : - d.msFullscreenElement !== undefined ? "MSFullscreenChange" : - d.fullscreenElement !== undefined ? "fullscreenchange" : "" - }; - if(!result._requestFullscreen || !result._exitFullscreen || !result._fullscreenElement || !result._fullscreenChange) { - return null; - } else { - return result; - } -}; - -})(); --
// (c) Dean McNamee <dean@gmail.com>, 2012. -// -// https://github.com/deanm/css-color-parser-js -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to -// deal in the Software without restriction, including without limitation the -// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -// sell copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -// IN THE SOFTWARE. - -// http://www.w3.org/TR/css3-color/ -var kCSSColorTable = { - "transparent": [0,0,0,0], "aliceblue": [240,248,255,1], - "antiquewhite": [250,235,215,1], "aqua": [0,255,255,1], - "aquamarine": [127,255,212,1], "azure": [240,255,255,1], - "beige": [245,245,220,1], "bisque": [255,228,196,1], - "black": [0,0,0,1], "blanchedalmond": [255,235,205,1], - "blue": [0,0,255,1], "blueviolet": [138,43,226,1], - "brown": [165,42,42,1], "burlywood": [222,184,135,1], - "cadetblue": [95,158,160,1], "chartreuse": [127,255,0,1], - "chocolate": [210,105,30,1], "coral": [255,127,80,1], - "cornflowerblue": [100,149,237,1], "cornsilk": [255,248,220,1], - "crimson": [220,20,60,1], "cyan": [0,255,255,1], - "darkblue": [0,0,139,1], "darkcyan": [0,139,139,1], - "darkgoldenrod": [184,134,11,1], "darkgray": [169,169,169,1], - "darkgreen": [0,100,0,1], "darkgrey": [169,169,169,1], - "darkkhaki": [189,183,107,1], "darkmagenta": [139,0,139,1], - "darkolivegreen": [85,107,47,1], "darkorange": [255,140,0,1], - "darkorchid": [153,50,204,1], "darkred": [139,0,0,1], - "darksalmon": [233,150,122,1], "darkseagreen": [143,188,143,1], - "darkslateblue": [72,61,139,1], "darkslategray": [47,79,79,1], - "darkslategrey": [47,79,79,1], "darkturquoise": [0,206,209,1], - "darkviolet": [148,0,211,1], "deeppink": [255,20,147,1], - "deepskyblue": [0,191,255,1], "dimgray": [105,105,105,1], - "dimgrey": [105,105,105,1], "dodgerblue": [30,144,255,1], - "firebrick": [178,34,34,1], "floralwhite": [255,250,240,1], - "forestgreen": [34,139,34,1], "fuchsia": [255,0,255,1], - "gainsboro": [220,220,220,1], "ghostwhite": [248,248,255,1], - "gold": [255,215,0,1], "goldenrod": [218,165,32,1], - "gray": [128,128,128,1], "green": [0,128,0,1], - "greenyellow": [173,255,47,1], "grey": [128,128,128,1], - "honeydew": [240,255,240,1], "hotpink": [255,105,180,1], - "indianred": [205,92,92,1], "indigo": [75,0,130,1], - "ivory": [255,255,240,1], "khaki": [240,230,140,1], - "lavender": [230,230,250,1], "lavenderblush": [255,240,245,1], - "lawngreen": [124,252,0,1], "lemonchiffon": [255,250,205,1], - "lightblue": [173,216,230,1], "lightcoral": [240,128,128,1], - "lightcyan": [224,255,255,1], "lightgoldenrodyellow": [250,250,210,1], - "lightgray": [211,211,211,1], "lightgreen": [144,238,144,1], - "lightgrey": [211,211,211,1], "lightpink": [255,182,193,1], - "lightsalmon": [255,160,122,1], "lightseagreen": [32,178,170,1], - "lightskyblue": [135,206,250,1], "lightslategray": [119,136,153,1], - "lightslategrey": [119,136,153,1], "lightsteelblue": [176,196,222,1], - "lightyellow": [255,255,224,1], "lime": [0,255,0,1], - "limegreen": [50,205,50,1], "linen": [250,240,230,1], - "magenta": [255,0,255,1], "maroon": [128,0,0,1], - "mediumaquamarine": [102,205,170,1], "mediumblue": [0,0,205,1], - "mediumorchid": [186,85,211,1], "mediumpurple": [147,112,219,1], - "mediumseagreen": [60,179,113,1], "mediumslateblue": [123,104,238,1], - "mediumspringgreen": [0,250,154,1], "mediumturquoise": [72,209,204,1], - "mediumvioletred": [199,21,133,1], "midnightblue": [25,25,112,1], - "mintcream": [245,255,250,1], "mistyrose": [255,228,225,1], - "moccasin": [255,228,181,1], "navajowhite": [255,222,173,1], - "navy": [0,0,128,1], "oldlace": [253,245,230,1], - "olive": [128,128,0,1], "olivedrab": [107,142,35,1], - "orange": [255,165,0,1], "orangered": [255,69,0,1], - "orchid": [218,112,214,1], "palegoldenrod": [238,232,170,1], - "palegreen": [152,251,152,1], "paleturquoise": [175,238,238,1], - "palevioletred": [219,112,147,1], "papayawhip": [255,239,213,1], - "peachpuff": [255,218,185,1], "peru": [205,133,63,1], - "pink": [255,192,203,1], "plum": [221,160,221,1], - "powderblue": [176,224,230,1], "purple": [128,0,128,1], - "red": [255,0,0,1], "rosybrown": [188,143,143,1], - "royalblue": [65,105,225,1], "saddlebrown": [139,69,19,1], - "salmon": [250,128,114,1], "sandybrown": [244,164,96,1], - "seagreen": [46,139,87,1], "seashell": [255,245,238,1], - "sienna": [160,82,45,1], "silver": [192,192,192,1], - "skyblue": [135,206,235,1], "slateblue": [106,90,205,1], - "slategray": [112,128,144,1], "slategrey": [112,128,144,1], - "snow": [255,250,250,1], "springgreen": [0,255,127,1], - "steelblue": [70,130,180,1], "tan": [210,180,140,1], - "teal": [0,128,128,1], "thistle": [216,191,216,1], - "tomato": [255,99,71,1], "turquoise": [64,224,208,1], - "violet": [238,130,238,1], "wheat": [245,222,179,1], - "white": [255,255,255,1], "whitesmoke": [245,245,245,1], - "yellow": [255,255,0,1], "yellowgreen": [154,205,50,1]} - -function clamp_css_byte(i) { // Clamp to integer 0 .. 255. - i = Math.round(i); // Seems to be what Chrome does (vs truncation). - return i < 0 ? 0 : i > 255 ? 255 : i; -} - -function clamp_css_float(f) { // Clamp to float 0.0 .. 1.0. - return f < 0 ? 0 : f > 1 ? 1 : f; -} - -function parse_css_int(str) { // int or percentage. - if (str[str.length - 1] === '%') - return clamp_css_byte(parseFloat(str) / 100 * 255); - return clamp_css_byte(parseInt(str)); -} - -function parse_css_float(str) { // float or percentage. - if (str[str.length - 1] === '%') - return clamp_css_float(parseFloat(str) / 100); - return clamp_css_float(parseFloat(str)); -} - -function css_hue_to_rgb(m1, m2, h) { - if (h < 0) h += 1; - else if (h > 1) h -= 1; - - if (h * 6 < 1) return m1 + (m2 - m1) * h * 6; - if (h * 2 < 1) return m2; - if (h * 3 < 2) return m1 + (m2 - m1) * (2/3 - h) * 6; - return m1; -} - -function parseCSSColor(css_str) { - // Remove all whitespace, not compliant, but should just be more accepting. - var str = css_str.replace(/ /g, '').toLowerCase(); - - // Color keywords (and transparent) lookup. - if (str in kCSSColorTable) return kCSSColorTable[str].slice(); // dup. - - // #abc and #abc123 syntax. - if (str[0] === '#') { - if (str.length === 4) { - var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing. - if (!(iv >= 0 && iv <= 0xfff)) return null; // Covers NaN. - return [((iv & 0xf00) >> 4) | ((iv & 0xf00) >> 8), - (iv & 0xf0) | ((iv & 0xf0) >> 4), - (iv & 0xf) | ((iv & 0xf) << 4), - 1]; - } else if (str.length === 7) { - var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing. - if (!(iv >= 0 && iv <= 0xffffff)) return null; // Covers NaN. - return [(iv & 0xff0000) >> 16, - (iv & 0xff00) >> 8, - iv & 0xff, - 1]; - } - - return null; - } - - var op = str.indexOf('('), ep = str.indexOf(')'); - if (op !== -1 && ep + 1 === str.length) { - var fname = str.substr(0, op); - var params = str.substr(op+1, ep-(op+1)).split(','); - var alpha = 1; // To allow case fallthrough. - switch (fname) { - case 'rgba': - if (params.length !== 4) return null; - alpha = parse_css_float(params.pop()); - // Fall through. - case 'rgb': - if (params.length !== 3) return null; - return [parse_css_int(params[0]), - parse_css_int(params[1]), - parse_css_int(params[2]), - alpha]; - case 'hsla': - if (params.length !== 4) return null; - alpha = parse_css_float(params.pop()); - // Fall through. - case 'hsl': - if (params.length !== 3) return null; - var h = (((parseFloat(params[0]) % 360) + 360) % 360) / 360; // 0 .. 1 - // NOTE(deanm): According to the CSS spec s/l should only be - // percentages, but we don't bother and let float or percentage. - var s = parse_css_float(params[1]); - var l = parse_css_float(params[2]); - var m2 = l <= 0.5 ? l * (s + 1) : l + s - l * s; - var m1 = l * 2 - m2; - return [clamp_css_byte(css_hue_to_rgb(m1, m2, h+1/3) * 255), - clamp_css_byte(css_hue_to_rgb(m1, m2, h) * 255), - clamp_css_byte(css_hue_to_rgb(m1, m2, h-1/3) * 255), - alpha]; - default: - return null; - } - } - - return null; -} - -try { exports.parseCSSColor = parseCSSColor } catch(e) { } --
/*\ -title: $:/core/modules/utils/dom/dragndrop.js -type: application/javascript -module-type: utils - -Browser data transfer utilities, used with the clipboard and drag and drop - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Options: - -domNode: dom node to make draggable -dragImageType: "pill" or "dom" -dragTiddlerFn: optional function to retrieve the title of tiddler to drag -dragFilterFn: optional function to retreive the filter defining a list of tiddlers to drag -widget: widget to use as the contect for the filter -*/ -exports.makeDraggable = function(options) { - var dragImageType = options.dragImageType || "dom", - dragImage, - domNode = options.domNode; - // Make the dom node draggable (not necessary for anchor tags) - if((domNode.tagName || "").toLowerCase() !== "a") { - domNode.setAttribute("draggable","true"); - } - // Add event handlers - $tw.utils.addEventListeners(domNode,[ - {name: "dragstart", handlerFunction: function(event) { - if(event.dataTransfer === undefined) { - return false; - } - // Collect the tiddlers being dragged - var dragTiddler = options.dragTiddlerFn && options.dragTiddlerFn(), - dragFilter = options.dragFilterFn && options.dragFilterFn(), - titles = dragTiddler ? [dragTiddler] : [], - startActions = options.startActions; - if(dragFilter) { - titles.push.apply(titles,options.widget.wiki.filterTiddlers(dragFilter,options.widget)); - } - var titleString = $tw.utils.stringifyList(titles); - // Check that we've something to drag - if(titles.length > 0 && event.target === domNode) { - // Mark the drag in progress - $tw.dragInProgress = domNode; - // Set the dragging class on the element being dragged - $tw.utils.addClass(event.target,"tc-dragging"); - // Invoke drag-start actions if given - if(startActions !== undefined) { - options.widget.invokeActionString(startActions,options.widget,event,{actionTiddler: titleString}); - } - // Create the drag image elements - dragImage = options.widget.document.createElement("div"); - dragImage.className = "tc-tiddler-dragger"; - var inner = options.widget.document.createElement("div"); - inner.className = "tc-tiddler-dragger-inner"; - inner.appendChild(options.widget.document.createTextNode( - titles.length === 1 ? - titles[0] : - titles.length + " tiddlers" - )); - dragImage.appendChild(inner); - options.widget.document.body.appendChild(dragImage); - // Set the data transfer properties - var dataTransfer = event.dataTransfer; - // Set up the image - dataTransfer.effectAllowed = "all"; - if(dataTransfer.setDragImage) { - if(dragImageType === "pill") { - dataTransfer.setDragImage(dragImage.firstChild,-16,-16); - } else { - var r = domNode.getBoundingClientRect(); - dataTransfer.setDragImage(domNode,event.clientX-r.left,event.clientY-r.top); - } - } - // Set up the data transfer - if(dataTransfer.clearData) { - dataTransfer.clearData(); - } - var jsonData = []; - if(titles.length > 1) { - titles.forEach(function(title) { - jsonData.push(options.widget.wiki.getTiddlerAsJson(title)); - }); - jsonData = "[" + jsonData.join(",") + "]"; - } else { - jsonData = options.widget.wiki.getTiddlerAsJson(titles[0]); - } - // IE doesn't like these content types - if(!$tw.browser.isIE) { - dataTransfer.setData("text/vnd.tiddler",jsonData); - dataTransfer.setData("text/plain",titleString); - dataTransfer.setData("text/x-moz-url","data:text/vnd.tiddler," + encodeURIComponent(jsonData)); - } - dataTransfer.setData("URL","data:text/vnd.tiddler," + encodeURIComponent(jsonData)); - dataTransfer.setData("Text",titleString); - event.stopPropagation(); - } - return false; - }}, - {name: "dragend", handlerFunction: function(event) { - if(event.target === domNode) { - // Collect the tiddlers being dragged - var dragTiddler = options.dragTiddlerFn && options.dragTiddlerFn(), - dragFilter = options.dragFilterFn && options.dragFilterFn(), - titles = dragTiddler ? [dragTiddler] : [], - endActions = options.endActions; - if(dragFilter) { - titles.push.apply(titles,options.widget.wiki.filterTiddlers(dragFilter,options.widget)); - } - var titleString = $tw.utils.stringifyList(titles); - $tw.dragInProgress = null; - // Invoke drag-end actions if given - if(endActions !== undefined) { - options.widget.invokeActionString(endActions,options.widget,event,{actionTiddler: titleString}); - } - // Remove the dragging class on the element being dragged - $tw.utils.removeClass(event.target,"tc-dragging"); - // Delete the drag image element - if(dragImage) { - dragImage.parentNode.removeChild(dragImage); - dragImage = null; - } - } - return false; - }} - ]); -}; - -exports.importDataTransfer = function(dataTransfer,fallbackTitle,callback) { - // Try each provided data type in turn - if($tw.log.IMPORT) { - console.log("Available data types:"); - for(var type=0; type<dataTransfer.types.length; type++) { - console.log("type",dataTransfer.types[type],dataTransfer.getData(dataTransfer.types[type])) - } - } - for(var t=0; t<importDataTypes.length; t++) { - if(!$tw.browser.isIE || importDataTypes[t].IECompatible) { - // Get the data - var dataType = importDataTypes[t]; - var data = dataTransfer.getData(dataType.type); - // Import the tiddlers in the data - if(data !== "" && data !== null) { - if($tw.log.IMPORT) { - console.log("Importing data type '" + dataType.type + "', data: '" + data + "'") - } - var tiddlerFields = dataType.toTiddlerFieldsArray(data,fallbackTitle); - callback(tiddlerFields); - return; - } - } - } -}; - -var importDataTypes = [ - {type: "text/vnd.tiddler", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) { - return parseJSONTiddlers(data,fallbackTitle); - }}, - {type: "URL", IECompatible: true, toTiddlerFieldsArray: function(data,fallbackTitle) { - // Check for tiddler data URI - var match = decodeURIComponent(data).match(/^data\:text\/vnd\.tiddler,(.*)/i); - if(match) { - return parseJSONTiddlers(match[1],fallbackTitle); - } else { - return [{title: fallbackTitle, text: data}]; // As URL string - } - }}, - {type: "text/x-moz-url", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) { - // Check for tiddler data URI - var match = decodeURIComponent(data).match(/^data\:text\/vnd\.tiddler,(.*)/i); - if(match) { - return parseJSONTiddlers(match[1],fallbackTitle); - } else { - return [{title: fallbackTitle, text: data}]; // As URL string - } - }}, - {type: "text/html", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) { - return [{title: fallbackTitle, text: data}]; - }}, - {type: "text/plain", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) { - return [{title: fallbackTitle, text: data}]; - }}, - {type: "Text", IECompatible: true, toTiddlerFieldsArray: function(data,fallbackTitle) { - return [{title: fallbackTitle, text: data}]; - }}, - {type: "text/uri-list", IECompatible: false, toTiddlerFieldsArray: function(data,fallbackTitle) { - return [{title: fallbackTitle, text: data}]; - }} -]; - -function parseJSONTiddlers(json,fallbackTitle) { - var data = JSON.parse(json); - if(!$tw.utils.isArray(data)) { - data = [data]; - } - data.forEach(function(fields) { - fields.title = fields.title || fallbackTitle; - }); - return data; -}; - -})(); --
/*\ -title: $:/core/modules/utils/dom/http.js -type: application/javascript -module-type: utils - -Browser HTTP support - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -A quick and dirty HTTP function; to be refactored later. Options are: - url: URL to retrieve - headers: hashmap of headers to send - type: GET, PUT, POST etc - callback: function invoked with (err,data,xhr) - returnProp: string name of the property to return as first argument of callback -*/ -exports.httpRequest = function(options) { - var type = options.type || "GET", - url = options.url, - headers = options.headers || {accept: "application/json"}, - returnProp = options.returnProp || "responseText", - request = new XMLHttpRequest(), - data = "", - f,results; - // Massage the data hashmap into a string - if(options.data) { - if(typeof options.data === "string") { // Already a string - data = options.data; - } else { // A hashmap of strings - results = []; - $tw.utils.each(options.data,function(dataItem,dataItemTitle) { - results.push(dataItemTitle + "=" + encodeURIComponent(dataItem)); - }); - if(type === "GET" || type === "HEAD") { - url += "?" + results.join("&"); - } else { - data = results.join("&"); - } - } - } - // Set up the state change handler - request.onreadystatechange = function() { - if(this.readyState === 4) { - if(this.status === 200 || this.status === 201 || this.status === 204) { - // Success! - options.callback(null,this[returnProp],this); - return; - } - // Something went wrong - options.callback($tw.language.getString("Error/XMLHttpRequest") + ": " + this.status,null,this); - } - }; - // Make the request - request.open(type,url,true); - if(headers) { - $tw.utils.each(headers,function(header,headerTitle,object) { - request.setRequestHeader(headerTitle,header); - }); - } - if(data && !$tw.utils.hop(headers,"Content-type")) { - request.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8"); - } - if(!$tw.utils.hop(headers,"X-Requested-With")) { - request.setRequestHeader("X-Requested-With","TiddlyWiki"); - } - try { - request.send(data); - } catch(e) { - options.callback(e,null,this); - } - return request; -}; - -})(); --
/*\ -title: $:/core/modules/utils/dom/keyboard.js -type: application/javascript -module-type: utils - -Keyboard utilities; now deprecated. Instead, use $tw.keyboardManager - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -["parseKeyDescriptor","checkKeyDescriptor"].forEach(function(method) { - exports[method] = function() { - if($tw.keyboardManager) { - return $tw.keyboardManager[method].apply($tw.keyboardManager,Array.prototype.slice.call(arguments,0)); - } else { - return null - } - }; -}); - -})(); --
/*\ -title: $:/core/modules/utils/dom/modal.js -type: application/javascript -module-type: utils - -Modal message mechanism - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var widget = require("$:/core/modules/widgets/widget.js"); - -var Modal = function(wiki) { - this.wiki = wiki; - this.modalCount = 0; -}; - -/* -Display a modal dialogue - title: Title of tiddler to display - options: see below -Options include: - downloadLink: Text of a big download link to include -*/ -Modal.prototype.display = function(title,options) { - options = options || {}; - this.srcDocument = options.variables && (options.variables.rootwindow === "true" || - options.variables.rootwindow === "yes") ? document : - (options.event.event && options.event.event.target ? options.event.event.target.ownerDocument : document); - this.srcWindow = this.srcDocument.defaultView; - var self = this, - refreshHandler, - duration = $tw.utils.getAnimationDuration(), - tiddler = this.wiki.getTiddler(title); - // Don't do anything if the tiddler doesn't exist - if(!tiddler) { - return; - } - // Create the variables - var variables = $tw.utils.extend({currentTiddler: title},options.variables); - // Create the wrapper divs - var wrapper = this.srcDocument.createElement("div"), - modalBackdrop = this.srcDocument.createElement("div"), - modalWrapper = this.srcDocument.createElement("div"), - modalHeader = this.srcDocument.createElement("div"), - headerTitle = this.srcDocument.createElement("h3"), - modalBody = this.srcDocument.createElement("div"), - modalLink = this.srcDocument.createElement("a"), - modalFooter = this.srcDocument.createElement("div"), - modalFooterHelp = this.srcDocument.createElement("span"), - modalFooterButtons = this.srcDocument.createElement("span"); - // Up the modal count and adjust the body class - this.modalCount++; - this.adjustPageClass(); - // Add classes - $tw.utils.addClass(wrapper,"tc-modal-wrapper"); - if(tiddler.fields && tiddler.fields.class) { - $tw.utils.addClass(wrapper,tiddler.fields.class); - } - $tw.utils.addClass(modalBackdrop,"tc-modal-backdrop"); - $tw.utils.addClass(modalWrapper,"tc-modal"); - $tw.utils.addClass(modalHeader,"tc-modal-header"); - $tw.utils.addClass(modalBody,"tc-modal-body"); - $tw.utils.addClass(modalFooter,"tc-modal-footer"); - // Join them together - wrapper.appendChild(modalBackdrop); - wrapper.appendChild(modalWrapper); - modalHeader.appendChild(headerTitle); - modalWrapper.appendChild(modalHeader); - modalWrapper.appendChild(modalBody); - modalFooter.appendChild(modalFooterHelp); - modalFooter.appendChild(modalFooterButtons); - modalWrapper.appendChild(modalFooter); - // Render the title of the message - var headerWidgetNode = this.wiki.makeTranscludeWidget(title,{ - field: "subtitle", - mode: "inline", - children: [{ - type: "text", - attributes: { - text: { - type: "string", - value: title - }}}], - parentWidget: $tw.rootWidget, - document: this.srcDocument, - variables: variables, - importPageMacros: true - }); - headerWidgetNode.render(headerTitle,null); - // Render the body of the message - var bodyWidgetNode = this.wiki.makeTranscludeWidget(title,{ - parentWidget: $tw.rootWidget, - document: this.srcDocument, - variables: variables, - importPageMacros: true - }); - bodyWidgetNode.render(modalBody,null); - // Setup the link if present - if(options.downloadLink) { - modalLink.href = options.downloadLink; - modalLink.appendChild(this.srcDocument.createTextNode("Right-click to save changes")); - modalBody.appendChild(modalLink); - } - // Render the footer of the message - if(tiddler.fields && tiddler.fields.help) { - var link = this.srcDocument.createElement("a"); - link.setAttribute("href",tiddler.fields.help); - link.setAttribute("target","_blank"); - link.setAttribute("rel","noopener noreferrer"); - link.appendChild(this.srcDocument.createTextNode("Help")); - modalFooterHelp.appendChild(link); - modalFooterHelp.style.float = "left"; - } - var footerWidgetNode = this.wiki.makeTranscludeWidget(title,{ - field: "footer", - mode: "inline", - children: [{ - type: "button", - attributes: { - message: { - type: "string", - value: "tm-close-tiddler" - } - }, - children: [{ - type: "text", - attributes: { - text: { - type: "string", - value: $tw.language.getString("Buttons/Close/Caption") - }}} - ]}], - parentWidget: $tw.rootWidget, - document: this.srcDocument, - variables: variables, - importPageMacros: true - }); - footerWidgetNode.render(modalFooterButtons,null); - // Set up the refresh handler - refreshHandler = function(changes) { - headerWidgetNode.refresh(changes,modalHeader,null); - bodyWidgetNode.refresh(changes,modalBody,null); - footerWidgetNode.refresh(changes,modalFooterButtons,null); - }; - this.wiki.addEventListener("change",refreshHandler); - // Add the close event handler - var closeHandler = function(event) { - // Remove our refresh handler - self.wiki.removeEventListener("change",refreshHandler); - // Decrease the modal count and adjust the body class - self.modalCount--; - self.adjustPageClass(); - // Force layout and animate the modal message away - $tw.utils.forceLayout(modalBackdrop); - $tw.utils.forceLayout(modalWrapper); - $tw.utils.setStyle(modalBackdrop,[ - {opacity: "0"} - ]); - $tw.utils.setStyle(modalWrapper,[ - {transform: "translateY(" + self.srcWindow.innerHeight + "px)"} - ]); - // Set up an event for the transition end - self.srcWindow.setTimeout(function() { - if(wrapper.parentNode) { - // Remove the modal message from the DOM - self.srcDocument.body.removeChild(wrapper); - } - },duration); - // Don't let anyone else handle the tm-close-tiddler message - return false; - }; - headerWidgetNode.addEventListener("tm-close-tiddler",closeHandler,false); - bodyWidgetNode.addEventListener("tm-close-tiddler",closeHandler,false); - footerWidgetNode.addEventListener("tm-close-tiddler",closeHandler,false); - // Set the initial styles for the message - $tw.utils.setStyle(modalBackdrop,[ - {opacity: "0"} - ]); - $tw.utils.setStyle(modalWrapper,[ - {transformOrigin: "0% 0%"}, - {transform: "translateY(" + (-this.srcWindow.innerHeight) + "px)"} - ]); - // Put the message into the document - this.srcDocument.body.appendChild(wrapper); - // Set up animation for the styles - $tw.utils.setStyle(modalBackdrop,[ - {transition: "opacity " + duration + "ms ease-out"} - ]); - $tw.utils.setStyle(modalWrapper,[ - {transition: $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms ease-in-out"} - ]); - // Force layout - $tw.utils.forceLayout(modalBackdrop); - $tw.utils.forceLayout(modalWrapper); - // Set final animated styles - $tw.utils.setStyle(modalBackdrop,[ - {opacity: "0.7"} - ]); - $tw.utils.setStyle(modalWrapper,[ - {transform: "translateY(0px)"} - ]); -}; - -Modal.prototype.adjustPageClass = function() { - var windowContainer = $tw.pageContainer ? ($tw.pageContainer === this.srcDocument.body.firstChild ? $tw.pageContainer : this.srcDocument.body.firstChild) : null; - if(windowContainer) { - $tw.utils.toggleClass(windowContainer,"tc-modal-displayed",this.modalCount > 0); - } -}; - -exports.Modal = Modal; - -})(); --
/*\ -title: $:/core/modules/utils/dom/notifier.js -type: application/javascript -module-type: utils - -Notifier mechanism - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var widget = require("$:/core/modules/widgets/widget.js"); - -var Notifier = function(wiki) { - this.wiki = wiki; -}; - -/* -Display a notification - title: Title of tiddler containing the notification text - options: see below -Options include: -*/ -Notifier.prototype.display = function(title,options) { - options = options || {}; - // Create the wrapper divs - var self = this, - notification = document.createElement("div"), - tiddler = this.wiki.getTiddler(title), - duration = $tw.utils.getAnimationDuration(), - refreshHandler; - // Don't do anything if the tiddler doesn't exist - if(!tiddler) { - return; - } - // Add classes - $tw.utils.addClass(notification,"tc-notification"); - // Create the variables - var variables = $tw.utils.extend({currentTiddler: title},options.variables); - // Render the body of the notification - var widgetNode = this.wiki.makeTranscludeWidget(title,{ - parentWidget: $tw.rootWidget, - document: document, - variables: variables, - importPageMacros: true}); - widgetNode.render(notification,null); - refreshHandler = function(changes) { - widgetNode.refresh(changes,notification,null); - }; - this.wiki.addEventListener("change",refreshHandler); - // Set the initial styles for the notification - $tw.utils.setStyle(notification,[ - {opacity: "0"}, - {transformOrigin: "0% 0%"}, - {transform: "translateY(" + (-window.innerHeight) + "px)"}, - {transition: "opacity " + duration + "ms ease-out, " + $tw.utils.roundTripPropertyName("transform") + " " + duration + "ms ease-in-out"} - ]); - // Add the notification to the DOM - document.body.appendChild(notification); - // Force layout - $tw.utils.forceLayout(notification); - // Set final animated styles - $tw.utils.setStyle(notification,[ - {opacity: "1.0"}, - {transform: "translateY(0px)"} - ]); - // Set a timer to remove the notification - window.setTimeout(function() { - // Remove our change event handler - self.wiki.removeEventListener("change",refreshHandler); - // Force layout and animate the notification away - $tw.utils.forceLayout(notification); - $tw.utils.setStyle(notification,[ - {opacity: "0.0"}, - {transform: "translateX(" + (notification.offsetWidth) + "px)"} - ]); - // Remove the modal message from the DOM once the transition ends - setTimeout(function() { - if(notification.parentNode) { - document.body.removeChild(notification); - } - },duration); - },$tw.config.preferences.notificationDuration); -}; - -exports.Notifier = Notifier; - -})(); --
/*\ -title: $:/core/modules/utils/dom/popup.js -type: application/javascript -module-type: utils - -Module that creates a $tw.utils.Popup object prototype that manages popups in the browser - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Creates a Popup object with these options: - rootElement: the DOM element to which the popup zapper should be attached -*/ -var Popup = function(options) { - options = options || {}; - this.rootElement = options.rootElement || document.documentElement; - this.popups = []; // Array of {title:,wiki:,domNode:} objects -}; - -/* -Trigger a popup open or closed. Parameters are in a hashmap: - title: title of the tiddler where the popup details are stored - domNode: dom node to which the popup will be positioned (one of domNode or domNodeRect is required) - domNodeRect: rectangle to which the popup will be positioned - wiki: wiki - force: if specified, forces the popup state to true or false (instead of toggling it) - floating: if true, skips registering the popup, meaning that it will need manually clearing -*/ -Popup.prototype.triggerPopup = function(options) { - // Check if this popup is already active - var index = this.findPopup(options.title); - // Compute the new state - var state = index === -1; - if(options.force !== undefined) { - state = options.force; - } - // Show or cancel the popup according to the new state - if(state) { - this.show(options); - } else { - this.cancel(index); - } -}; - -Popup.prototype.findPopup = function(title) { - var index = -1; - for(var t=0; t<this.popups.length; t++) { - if(this.popups[t].title === title) { - index = t; - } - } - return index; -}; - -Popup.prototype.handleEvent = function(event) { - if(event.type === "click") { - // Find out what was clicked on - var info = this.popupInfo(event.target), - cancelLevel = info.popupLevel - 1; - // Don't remove the level that was clicked on if we clicked on a handle - if(info.isHandle) { - cancelLevel++; - } - // Cancel - this.cancel(cancelLevel); - } -}; - -/* -Find the popup level containing a DOM node. Returns: -popupLevel: count of the number of nested popups containing the specified element -isHandle: true if the specified element is within a popup handle -*/ -Popup.prototype.popupInfo = function(domNode) { - var isHandle = false, - popupCount = 0, - node = domNode; - // First check ancestors to see if we're within a popup handle - while(node) { - if($tw.utils.hasClass(node,"tc-popup-handle")) { - isHandle = true; - popupCount++; - } - if($tw.utils.hasClass(node,"tc-popup-keep")) { - isHandle = true; - } - node = node.parentNode; - } - // Then count the number of ancestor popups - node = domNode; - while(node) { - if($tw.utils.hasClass(node,"tc-popup")) { - popupCount++; - } - node = node.parentNode; - } - var info = { - popupLevel: popupCount, - isHandle: isHandle - }; - return info; -}; - -/* -Display a popup by adding it to the stack -*/ -Popup.prototype.show = function(options) { - // Find out what was clicked on - var info = this.popupInfo(options.domNode); - // Cancel any higher level popups - this.cancel(info.popupLevel); - - // Store the popup details if not already there - if(!options.floating && this.findPopup(options.title) === -1) { - this.popups.push({ - title: options.title, - wiki: options.wiki, - domNode: options.domNode, - noStateReference: options.noStateReference - }); - } - // Set the state tiddler - var rect; - if(options.domNodeRect) { - rect = options.domNodeRect; - } else { - rect = { - left: options.domNode.offsetLeft, - top: options.domNode.offsetTop, - width: options.domNode.offsetWidth, - height: options.domNode.offsetHeight - }; - } - var popupRect = "(" + rect.left + "," + rect.top + "," + - rect.width + "," + rect.height + ")"; - if(options.noStateReference) { - options.wiki.setText(options.title,"text",undefined,popupRect); - } else { - options.wiki.setTextReference(options.title,popupRect); - } - // Add the click handler if we have any popups - if(this.popups.length > 0) { - this.rootElement.addEventListener("click",this,true); - } -}; - -/* -Cancel all popups at or above a specified level or DOM node -level: popup level to cancel (0 cancels all popups) -*/ -Popup.prototype.cancel = function(level) { - var numPopups = this.popups.length; - level = Math.max(0,Math.min(level,numPopups)); - for(var t=level; t<numPopups; t++) { - var popup = this.popups.pop(); - if(popup.title) { - if(popup.noStateReference) { - popup.wiki.deleteTiddler(popup.title); - } else { - popup.wiki.deleteTiddler($tw.utils.parseTextReference(popup.title).title); - } - } - } - if(this.popups.length === 0) { - this.rootElement.removeEventListener("click",this,false); - } -}; - -/* -Returns true if the specified title and text identifies an active popup -*/ -Popup.prototype.readPopupState = function(text) { - var popupLocationRegExp = /^\((-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+)\)$/; - return popupLocationRegExp.test(text); -}; - -exports.Popup = Popup; - -})(); --
/*\ -title: $:/core/modules/utils/dom/scroller.js -type: application/javascript -module-type: utils - -Module that creates a $tw.utils.Scroller object prototype that manages scrolling in the browser - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Event handler for when the `tm-scroll` event hits the document body -*/ -var PageScroller = function() { - this.idRequestFrame = null; - this.requestAnimationFrame = window.requestAnimationFrame || - window.webkitRequestAnimationFrame || - window.mozRequestAnimationFrame || - function(callback) { - return window.setTimeout(callback, 1000/60); - }; - this.cancelAnimationFrame = window.cancelAnimationFrame || - window.webkitCancelAnimationFrame || - window.webkitCancelRequestAnimationFrame || - window.mozCancelAnimationFrame || - window.mozCancelRequestAnimationFrame || - function(id) { - window.clearTimeout(id); - }; -}; - -PageScroller.prototype.isScrolling = function() { - return this.idRequestFrame !== null; -} - -PageScroller.prototype.cancelScroll = function(srcWindow) { - if(this.idRequestFrame) { - this.cancelAnimationFrame.call(srcWindow,this.idRequestFrame); - this.idRequestFrame = null; - } -}; - -/* -Handle an event -*/ -PageScroller.prototype.handleEvent = function(event) { - if(event.type === "tm-scroll") { - return this.scrollIntoView(event.target); - } - return true; -}; - -/* -Handle a scroll event hitting the page document -*/ -PageScroller.prototype.scrollIntoView = function(element,callback) { - var self = this, - duration = $tw.utils.getAnimationDuration(), - srcWindow = element ? element.ownerDocument.defaultView : window; - // Now get ready to scroll the body - this.cancelScroll(srcWindow); - this.startTime = Date.now(); - // Get the height of any position:fixed toolbars - var toolbar = srcWindow.document.querySelector(".tc-adjust-top-of-scroll"), - offset = 0; - if(toolbar) { - offset = toolbar.offsetHeight; - } - // Get the client bounds of the element and adjust by the scroll position - var getBounds = function() { - var clientBounds = typeof callback === 'function' ? callback() : element.getBoundingClientRect(), - scrollPosition = $tw.utils.getScrollPosition(srcWindow); - return { - left: clientBounds.left + scrollPosition.x, - top: clientBounds.top + scrollPosition.y - offset, - width: clientBounds.width, - height: clientBounds.height - }; - }, - // We'll consider the horizontal and vertical scroll directions separately via this function - // targetPos/targetSize - position and size of the target element - // currentPos/currentSize - position and size of the current scroll viewport - // returns: new position of the scroll viewport - getEndPos = function(targetPos,targetSize,currentPos,currentSize) { - var newPos = targetPos; - // If we are scrolling within 50 pixels of the top/left then snap to zero - if(newPos < 50) { - newPos = 0; - } - return newPos; - }, - drawFrame = function drawFrame() { - var t; - if(duration <= 0) { - t = 1; - } else { - t = ((Date.now()) - self.startTime) / duration; - } - if(t >= 1) { - self.cancelScroll(srcWindow); - t = 1; - } - t = $tw.utils.slowInSlowOut(t); - var scrollPosition = $tw.utils.getScrollPosition(srcWindow), - bounds = getBounds(), - endX = getEndPos(bounds.left,bounds.width,scrollPosition.x,srcWindow.innerWidth), - endY = getEndPos(bounds.top,bounds.height,scrollPosition.y,srcWindow.innerHeight); - srcWindow.scrollTo(scrollPosition.x + (endX - scrollPosition.x) * t,scrollPosition.y + (endY - scrollPosition.y) * t); - if(t < 1) { - self.idRequestFrame = self.requestAnimationFrame.call(srcWindow,drawFrame); - } - }; - drawFrame(); -}; - -exports.PageScroller = PageScroller; - -})(); --
/*\ -title: $:/core/modules/utils/edition-info.js -type: application/javascript -module-type: utils-node - -Information about the available editions - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var fs = require("fs"), - path = require("path"); - -var editionInfo; - -exports.getEditionInfo = function() { - if(!editionInfo) { - // Enumerate the edition paths - var editionPaths = $tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar); - editionInfo = {}; - for(var editionIndex=0; editionIndex<editionPaths.length; editionIndex++) { - var editionPath = editionPaths[editionIndex]; - // Enumerate the folders - var entries = fs.readdirSync(editionPath); - for(var entryIndex=0; entryIndex<entries.length; entryIndex++) { - var entry = entries[entryIndex]; - // Check if directories have a valid tiddlywiki.info - if(!editionInfo[entry] && $tw.utils.isDirectory(path.resolve(editionPath,entry))) { - var info; - try { - info = JSON.parse(fs.readFileSync(path.resolve(editionPath,entry,"tiddlywiki.info"),"utf8")); - } catch(ex) { - } - if(info) { - editionInfo[entry] = info; - } - } - } - } - } - return editionInfo; -}; - -})(); --
/*\ -title: $:/core/modules/utils/fakedom.js -type: application/javascript -module-type: global - -A barebones implementation of DOM interfaces needed by the rendering mechanism. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Sequence number used to enable us to track objects for testing -var sequenceNumber = null; - -var bumpSequenceNumber = function(object) { - if(sequenceNumber !== null) { - object.sequenceNumber = sequenceNumber++; - } -}; - -var TW_TextNode = function(text) { - bumpSequenceNumber(this); - this.textContent = text + ""; -}; - -Object.defineProperty(TW_TextNode.prototype, "nodeType", { - get: function() { - return 3; - } -}); - -Object.defineProperty(TW_TextNode.prototype, "formattedTextContent", { - get: function() { - return this.textContent.replace(/(\r?\n)/g,""); - } -}); - -var TW_Element = function(tag,namespace) { - bumpSequenceNumber(this); - this.isTiddlyWikiFakeDom = true; - this.tag = tag; - this.attributes = {}; - this.isRaw = false; - this.children = []; - this._style = {}; - this.namespaceURI = namespace || "http://www.w3.org/1999/xhtml"; -}; - -Object.defineProperty(TW_Element.prototype, "style", { - get: function() { - return this._style; - }, - set: function(str) { - var self = this; - str = str || ""; - $tw.utils.each(str.split(";"),function(declaration) { - var parts = declaration.split(":"), - name = $tw.utils.trim(parts[0]), - value = $tw.utils.trim(parts[1]); - if(name && value) { - self._style[$tw.utils.convertStyleNameToPropertyName(name)] = value; - } - }); - } -}); - -Object.defineProperty(TW_Element.prototype, "nodeType", { - get: function() { - return 1; - } -}); - -TW_Element.prototype.getAttribute = function(name) { - if(this.isRaw) { - throw "Cannot getAttribute on a raw TW_Element"; - } - return this.attributes[name]; -}; - -TW_Element.prototype.setAttribute = function(name,value) { - if(this.isRaw) { - throw "Cannot setAttribute on a raw TW_Element"; - } - this.attributes[name] = value + ""; -}; - -TW_Element.prototype.setAttributeNS = function(namespace,name,value) { - this.setAttribute(name,value); -}; - -TW_Element.prototype.removeAttribute = function(name) { - if(this.isRaw) { - throw "Cannot removeAttribute on a raw TW_Element"; - } - if($tw.utils.hop(this.attributes,name)) { - delete this.attributes[name]; - } -}; - -TW_Element.prototype.appendChild = function(node) { - this.children.push(node); - node.parentNode = this; -}; - -TW_Element.prototype.insertBefore = function(node,nextSibling) { - if(nextSibling) { - var p = this.children.indexOf(nextSibling); - if(p !== -1) { - this.children.splice(p,0,node); - node.parentNode = this; - } else { - this.appendChild(node); - } - } else { - this.appendChild(node); - } -}; - -TW_Element.prototype.removeChild = function(node) { - var p = this.children.indexOf(node); - if(p !== -1) { - this.children.splice(p,1); - } -}; - -TW_Element.prototype.hasChildNodes = function() { - return !!this.children.length; -}; - -Object.defineProperty(TW_Element.prototype, "childNodes", { - get: function() { - return this.children; - } -}); - -Object.defineProperty(TW_Element.prototype, "firstChild", { - get: function() { - return this.children[0]; - } -}); - -TW_Element.prototype.addEventListener = function(type,listener,useCapture) { - // Do nothing -}; - -Object.defineProperty(TW_Element.prototype, "tagName", { - get: function() { - return this.tag || ""; - } -}); - -Object.defineProperty(TW_Element.prototype, "className", { - get: function() { - return this.attributes["class"] || ""; - }, - set: function(value) { - this.attributes["class"] = value + ""; - } -}); - -Object.defineProperty(TW_Element.prototype, "value", { - get: function() { - return this.attributes.value || ""; - }, - set: function(value) { - this.attributes.value = value + ""; - } -}); - -Object.defineProperty(TW_Element.prototype, "outerHTML", { - get: function() { - var output = [],attr,a,v; - output.push("<",this.tag); - if(this.attributes) { - attr = []; - for(a in this.attributes) { - attr.push(a); - } - attr.sort(); - for(a=0; a<attr.length; a++) { - v = this.attributes[attr[a]]; - if(v !== undefined) { - output.push(" ",attr[a],"=\"",$tw.utils.htmlEncode(v),"\""); - } - } - } - if(this._style) { - var style = []; - for(var s in this._style) { - style.push($tw.utils.convertPropertyNameToStyleName(s) + ":" + this._style[s] + ";"); - } - if(style.length > 0) { - output.push(" style=\"",style.join(""),"\""); - } - } - output.push(">"); - if($tw.config.htmlVoidElements.indexOf(this.tag) === -1) { - output.push(this.innerHTML); - output.push("</",this.tag,">"); - } - return output.join(""); - } -}); - -Object.defineProperty(TW_Element.prototype, "innerHTML", { - get: function() { - if(this.isRaw) { - return this.rawHTML; - } else { - var b = []; - $tw.utils.each(this.children,function(node) { - if(node instanceof TW_Element) { - b.push(node.outerHTML); - } else if(node instanceof TW_TextNode) { - b.push($tw.utils.htmlEncode(node.textContent)); - } - }); - return b.join(""); - } - }, - set: function(value) { - this.isRaw = true; - this.rawHTML = value; - this.rawTextContent = null; - } -}); - -Object.defineProperty(TW_Element.prototype, "textInnerHTML", { - set: function(value) { - if(this.isRaw) { - this.rawTextContent = value; - } else { - throw "Cannot set textInnerHTML of a non-raw TW_Element"; - } - } -}); - -Object.defineProperty(TW_Element.prototype, "textContent", { - get: function() { - if(this.isRaw) { - if(this.rawTextContent === null) { - return ""; - } else { - return this.rawTextContent; - } - } else { - var b = []; - $tw.utils.each(this.children,function(node) { - b.push(node.textContent); - }); - return b.join(""); - } - }, - set: function(value) { - this.children = [new TW_TextNode(value)]; - } -}); - -Object.defineProperty(TW_Element.prototype, "formattedTextContent", { - get: function() { - if(this.isRaw) { - return ""; - } else { - var b = [], - isBlock = $tw.config.htmlBlockElements.indexOf(this.tag) !== -1; - if(isBlock) { - b.push("\n"); - } - if(this.tag === "li") { - b.push("* "); - } - $tw.utils.each(this.children,function(node) { - b.push(node.formattedTextContent); - }); - if(isBlock) { - b.push("\n"); - } - return b.join(""); - } - } -}); - -var document = { - setSequenceNumber: function(value) { - sequenceNumber = value; - }, - createElementNS: function(namespace,tag) { - return new TW_Element(tag,namespace); - }, - createElement: function(tag) { - return new TW_Element(tag); - }, - createTextNode: function(text) { - return new TW_TextNode(text); - }, - compatMode: "CSS1Compat", // For KaTeX to know that we're not a browser in quirks mode - isTiddlyWikiFakeDom: true -}; - -exports.fakeDocument = document; - -})(); --
/*\ -title: $:/core/modules/utils/filesystem.js -type: application/javascript -module-type: utils-node - -File system utilities - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var fs = require("fs"), - path = require("path"); - -/* -Recursively (and synchronously) copy a directory and all its content -*/ -exports.copyDirectory = function(srcPath,dstPath) { - // Remove any trailing path separators - srcPath = $tw.utils.removeTrailingSeparator(srcPath); - dstPath = $tw.utils.removeTrailingSeparator(dstPath); - // Create the destination directory - var err = $tw.utils.createDirectory(dstPath); - if(err) { - return err; - } - // Function to copy a folder full of files - var copy = function(srcPath,dstPath) { - var srcStats = fs.lstatSync(srcPath), - dstExists = fs.existsSync(dstPath); - if(srcStats.isFile()) { - $tw.utils.copyFile(srcPath,dstPath); - } else if(srcStats.isDirectory()) { - var items = fs.readdirSync(srcPath); - for(var t=0; t<items.length; t++) { - var item = items[t], - err = copy(srcPath + path.sep + item,dstPath + path.sep + item); - if(err) { - return err; - } - } - } - }; - copy(srcPath,dstPath); - return null; -}; - -/* -Copy a file -*/ -var FILE_BUFFER_LENGTH = 64 * 1024, - fileBuffer; - -exports.copyFile = function(srcPath,dstPath) { - // Create buffer if required - if(!fileBuffer) { - fileBuffer = Buffer.alloc(FILE_BUFFER_LENGTH); - } - // Create any directories in the destination - $tw.utils.createDirectory(path.dirname(dstPath)); - // Copy the file - var srcFile = fs.openSync(srcPath,"r"), - dstFile = fs.openSync(dstPath,"w"), - bytesRead = 1, - pos = 0; - while (bytesRead > 0) { - bytesRead = fs.readSync(srcFile,fileBuffer,0,FILE_BUFFER_LENGTH,pos); - fs.writeSync(dstFile,fileBuffer,0,bytesRead); - pos += bytesRead; - } - fs.closeSync(srcFile); - fs.closeSync(dstFile); - return null; -}; - -/* -Remove trailing path separator -*/ -exports.removeTrailingSeparator = function(dirPath) { - var len = dirPath.length; - if(dirPath.charAt(len-1) === path.sep) { - dirPath = dirPath.substr(0,len-1); - } - return dirPath; -}; - -/* -Recursively create a directory -*/ -exports.createDirectory = function(dirPath) { - if(dirPath.substr(dirPath.length-1,1) !== path.sep) { - dirPath = dirPath + path.sep; - } - var pos = 1; - pos = dirPath.indexOf(path.sep,pos); - while(pos !== -1) { - var subDirPath = dirPath.substr(0,pos); - if(!$tw.utils.isDirectory(subDirPath)) { - try { - fs.mkdirSync(subDirPath); - } catch(e) { - return "Error creating directory '" + subDirPath + "'"; - } - } - pos = dirPath.indexOf(path.sep,pos + 1); - } - return null; -}; - -/* -Recursively create directories needed to contain a specified file -*/ -exports.createFileDirectories = function(filePath) { - return $tw.utils.createDirectory(path.dirname(filePath)); -}; - -/* -Recursively delete a directory -*/ -exports.deleteDirectory = function(dirPath) { - if(fs.existsSync(dirPath)) { - var entries = fs.readdirSync(dirPath); - for(var entryIndex=0; entryIndex<entries.length; entryIndex++) { - var currPath = dirPath + path.sep + entries[entryIndex]; - if(fs.lstatSync(currPath).isDirectory()) { - $tw.utils.deleteDirectory(currPath); - } else { - fs.unlinkSync(currPath); - } - } - fs.rmdirSync(dirPath); - } - return null; -}; - -/* -Check if a path identifies a directory -*/ -exports.isDirectory = function(dirPath) { - return fs.existsSync(dirPath) && fs.statSync(dirPath).isDirectory(); -}; - -/* -Check if a path identifies a directory that is empty -*/ -exports.isDirectoryEmpty = function(dirPath) { - if(!$tw.utils.isDirectory(dirPath)) { - return false; - } - var files = fs.readdirSync(dirPath), - empty = true; - $tw.utils.each(files,function(file,index) { - if(file.charAt(0) !== ".") { - empty = false; - } - }); - return empty; -}; - -/* -Recursively delete a tree of empty directories -*/ -exports.deleteEmptyDirs = function(dirpath,callback) { - var self = this; - fs.readdir(dirpath,function(err,files) { - if(err) { - return callback(err); - } - if(files.length > 0) { - return callback(null); - } - fs.rmdir(dirpath,function(err) { - if(err) { - return callback(err); - } - self.deleteEmptyDirs(path.dirname(dirpath),callback); - }); - }); -}; - -/* -Create a fileInfo object for saving a tiddler: - filepath: the absolute path to the file containing the tiddler - type: the type of the tiddler file (NOT the type of the tiddler) - hasMetaFile: true if the file also has a companion .meta file -Options include: - directory: absolute path of root directory to which we are saving - pathFilters: optional array of filters to be used to generate the base path - wiki: optional wiki for evaluating the pathFilters -*/ -exports.generateTiddlerFileInfo = function(tiddler,options) { - var fileInfo = {}; - // Check if the tiddler has any unsafe fields that can't be expressed in a .tid or .meta file: containing control characters, or leading/trailing whitespace - var hasUnsafeFields = false; - $tw.utils.each(tiddler.getFieldStrings(),function(value,fieldName) { - if(fieldName !== "text") { - hasUnsafeFields = hasUnsafeFields || /[\x00-\x1F]/mg.test(value); - hasUnsafeFields = hasUnsafeFields || ($tw.utils.trim(value) !== value); - } - }); - // Check for field values - if(hasUnsafeFields) { - // Save as a JSON file - fileInfo.type = "application/json"; - fileInfo.hasMetaFile = false; - } else { - // Save as a .tid or a text/binary file plus a .meta file - var tiddlerType = tiddler.fields.type || "text/vnd.tiddlywiki"; - if(tiddlerType === "text/vnd.tiddlywiki") { - // Save as a .tid file - fileInfo.type = "application/x-tiddler"; - fileInfo.hasMetaFile = false; - } else { - // Save as a text/binary file and a .meta file - fileInfo.type = tiddlerType; - fileInfo.hasMetaFile = true; - } - } - // Take the file extension from the tiddler content type - var contentTypeInfo = $tw.config.contentTypeInfo[fileInfo.type] || {extension: ""}; - // Generate the filepath - fileInfo.filepath = $tw.utils.generateTiddlerFilepath(tiddler.fields.title,{ - extension: contentTypeInfo.extension, - directory: options.directory, - pathFilters: options.pathFilters, - wiki: options.wiki - }); - return fileInfo; -}; - -/* -Generate the filepath for saving a tiddler -Options include: - extension: file extension to be added the finished filepath - directory: absolute path of root directory to which we are saving - pathFilters: optional array of filters to be used to generate the base path - wiki: optional wiki for evaluating the pathFilters -*/ -exports.generateTiddlerFilepath = function(title,options) { - var self = this, - directory = options.directory || "", - extension = options.extension || "", - filepath; - // Check if any of the pathFilters applies - if(options.pathFilters && options.wiki) { - $tw.utils.each(options.pathFilters,function(filter) { - if(!filepath) { - var source = options.wiki.makeTiddlerIterator([title]), - result = options.wiki.filterTiddlers(filter,null,source); - if(result.length > 0) { - filepath = result[0]; - } - } - }); - } - // If not, generate a base pathname - if(!filepath) { - filepath = title; - // If the filepath already ends in the extension then remove it - if(filepath.substring(filepath.length - extension.length) === extension) { - filepath = filepath.substring(0,filepath.length - extension.length); - } - // Remove any forward or backward slashes so we don't create directories - filepath = filepath.replace(/\/|\\/g,"_"); - } - // Don't let the filename start with a dot because such files are invisible on *nix - filepath = filepath.replace(/^\./g,"_"); - // Remove any characters that can't be used in cross-platform filenames - filepath = $tw.utils.transliterate(filepath.replace(/<|>|\:|\"|\||\?|\*|\^/g,"_")); - // Truncate the filename if it is too long - if(filepath.length > 200) { - filepath = filepath.substr(0,200); - } - // If the resulting filename is blank (eg because the title is just punctuation characters) - if(!filepath) { - // ...then just use the character codes of the title - filepath = ""; - $tw.utils.each(title.split(""),function(char) { - if(filepath) { - filepath += "-"; - } - filepath += char.charCodeAt(0).toString(); - }); - } - // Add a uniquifier if the file already exists - var fullPath, - count = 0; - do { - fullPath = path.resolve(directory,filepath + (count ? "_" + count : "") + extension); - count++; - } while(fs.existsSync(fullPath)); - // Return the full path to the file - return fullPath; -}; - -/* -Save a tiddler to a file described by the fileInfo: - filepath: the absolute path to the file containing the tiddler - type: the type of the tiddler file (NOT the type of the tiddler) - hasMetaFile: true if the file also has a companion .meta file -*/ -exports.saveTiddlerToFile = function(tiddler,fileInfo,callback) { - $tw.utils.createDirectory(path.dirname(fileInfo.filepath)); - if(fileInfo.hasMetaFile) { - // Save the tiddler as a separate body and meta file - var typeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || "text/plain"] || {encoding: "utf8"}; - fs.writeFile(fileInfo.filepath,tiddler.fields.text,typeInfo.encoding,function(err) { - if(err) { - return callback(err); - } - fs.writeFile(fileInfo.filepath + ".meta",tiddler.getFieldStringBlock({exclude: ["text","bag"]}),"utf8",callback); - }); - } else { - // Save the tiddler as a self contained templated file - if(fileInfo.type === "application/x-tiddler") { - fs.writeFile(fileInfo.filepath,tiddler.getFieldStringBlock({exclude: ["text","bag"]}) + (!!tiddler.fields.text ? "\n\n" + tiddler.fields.text : ""),"utf8",callback); - } else { - fs.writeFile(fileInfo.filepath,JSON.stringify([tiddler.getFieldStrings({exclude: ["bag"]})],null,$tw.config.preferences.jsonSpaces),"utf8",callback); - } - } -}; - -/* -Save a tiddler to a file described by the fileInfo: - filepath: the absolute path to the file containing the tiddler - type: the type of the tiddler file (NOT the type of the tiddler) - hasMetaFile: true if the file also has a companion .meta file -*/ -exports.saveTiddlerToFileSync = function(tiddler,fileInfo) { - $tw.utils.createDirectory(path.dirname(fileInfo.filepath)); - if(fileInfo.hasMetaFile) { - // Save the tiddler as a separate body and meta file - var typeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || "text/plain"] || {encoding: "utf8"}; - fs.writeFileSync(fileInfo.filepath,tiddler.fields.text,typeInfo.encoding); - fs.writeFileSync(fileInfo.filepath + ".meta",tiddler.getFieldStringBlock({exclude: ["text","bag"]}),"utf8"); - } else { - // Save the tiddler as a self contained templated file - if(fileInfo.type === "application/x-tiddler") { - fs.writeFileSync(fileInfo.filepath,tiddler.getFieldStringBlock({exclude: ["text","bag"]}) + (!!tiddler.fields.text ? "\n\n" + tiddler.fields.text : ""),"utf8"); - } else { - fs.writeFileSync(fileInfo.filepath,JSON.stringify([tiddler.getFieldStrings({exclude: ["bag"]})],null,$tw.config.preferences.jsonSpaces),"utf8"); - } - } -}; - -})(); --
/*\ -title: $:/core/modules/utils/logger.js -type: application/javascript -module-type: utils - -A basic logging implementation - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var ALERT_TAG = "$:/tags/Alert"; - -/* -Make a new logger -*/ -function Logger(componentName,options) { - options = options || {}; - this.componentName = componentName || ""; - this.colour = options.colour || "white"; - this.enable = "enable" in options ? options.enable : true; - this.save = "save" in options ? options.save : true; - this.saveLimit = options.saveLimit || 100 * 1024; - this.saveBufferLogger = this; - this.buffer = ""; - this.alertCount = 0; -} - -Logger.prototype.setSaveBuffer = function(logger) { - this.saveBufferLogger = logger; -}; - -/* -Log a message -*/ -Logger.prototype.log = function(/* args */) { - var self = this; - if(this.enable) { - if(this.saveBufferLogger.save) { - this.saveBufferLogger.buffer += $tw.utils.formatDateString(new Date(),"YYYY MM DD 0hh:0mm:0ss.0XXX") + ":"; - $tw.utils.each(Array.prototype.slice.call(arguments,0),function(arg,index) { - self.saveBufferLogger.buffer += " " + arg; - }); - this.saveBufferLogger.buffer += "\n"; - this.saveBufferLogger.buffer = this.saveBufferLogger.buffer.slice(-this.saveBufferLogger.saveLimit); - } - if(console !== undefined && console.log !== undefined) { - return Function.apply.call(console.log, console, [$tw.utils.terminalColour(this.colour),this.componentName + ":"].concat(Array.prototype.slice.call(arguments,0)).concat($tw.utils.terminalColour())); - } - } -}; - -/* -Read the message buffer -*/ -Logger.prototype.getBuffer = function() { - return this.saveBufferLogger.buffer; -}; - -/* -Log a structure as a table -*/ -Logger.prototype.table = function(value) { - (console.table || console.log)(value); -}; - -/* -Alert a message -*/ -Logger.prototype.alert = function(/* args */) { - if(this.enable) { - // Prepare the text of the alert - var text = Array.prototype.join.call(arguments," "); - // Create alert tiddlers in the browser - if($tw.browser) { - // Check if there is an existing alert with the same text and the same component - var existingAlerts = $tw.wiki.getTiddlersWithTag(ALERT_TAG), - alertFields, - existingCount, - self = this; - $tw.utils.each(existingAlerts,function(title) { - var tiddler = $tw.wiki.getTiddler(title); - if(tiddler.fields.text === text && tiddler.fields.component === self.componentName && tiddler.fields.modified && (!alertFields || tiddler.fields.modified < alertFields.modified)) { - alertFields = $tw.utils.extend({},tiddler.fields); - } - }); - if(alertFields) { - existingCount = alertFields.count || 1; - } else { - alertFields = { - title: $tw.wiki.generateNewTitle("$:/temp/alerts/alert",{prefix: ""}), - text: text, - tags: [ALERT_TAG], - component: this.componentName - }; - existingCount = 0; - this.alertCount += 1; - } - alertFields.modified = new Date(); - if(++existingCount > 1) { - alertFields.count = existingCount; - } else { - alertFields.count = undefined; - } - $tw.wiki.addTiddler(new $tw.Tiddler(alertFields)); - // Log the alert as well - this.log.apply(this,Array.prototype.slice.call(arguments,0)); - } else { - // Print an orange message to the console if not in the browser - console.error("\x1b[1;33m" + text + "\x1b[0m"); - } - } -}; - -/* -Clear outstanding alerts -*/ -Logger.prototype.clearAlerts = function() { - var self = this; - if($tw.browser && this.alertCount > 0) { - $tw.utils.each($tw.wiki.getTiddlersWithTag(ALERT_TAG),function(title) { - var tiddler = $tw.wiki.getTiddler(title); - if(tiddler.fields.component === self.componentName) { - $tw.wiki.deleteTiddler(title); - } - }); - this.alertCount = 0; - } -}; - -exports.Logger = Logger; - -})(); --
/*\ -title: $:/core/modules/utils/parsetree.js -type: application/javascript -module-type: utils - -Parse tree utility functions. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.addAttributeToParseTreeNode = function(node,name,value) { - node.attributes = node.attributes || {}; - node.attributes[name] = {type: "string", value: value}; -}; - -exports.getAttributeValueFromParseTreeNode = function(node,name,defaultValue) { - if(node.attributes && node.attributes[name] && node.attributes[name].value !== undefined) { - return node.attributes[name].value; - } - return defaultValue; -}; - -exports.addClassToParseTreeNode = function(node,classString) { - var classes = []; - node.attributes = node.attributes || {}; - node.attributes["class"] = node.attributes["class"] || {type: "string", value: ""}; - if(node.attributes["class"].type === "string") { - if(node.attributes["class"].value !== "") { - classes = node.attributes["class"].value.split(" "); - } - if(classString !== "") { - $tw.utils.pushTop(classes,classString.split(" ")); - } - node.attributes["class"].value = classes.join(" "); - } -}; - -exports.addStyleToParseTreeNode = function(node,name,value) { - node.attributes = node.attributes || {}; - node.attributes.style = node.attributes.style || {type: "string", value: ""}; - if(node.attributes.style.type === "string") { - node.attributes.style.value += name + ":" + value + ";"; - } -}; - -exports.findParseTreeNode = function(nodeArray,search) { - for(var t=0; t<nodeArray.length; t++) { - if(nodeArray[t].type === search.type && nodeArray[t].tag === search.tag) { - return nodeArray[t]; - } - } - return undefined; -}; - -/* -Helper to get the text of a parse tree node or array of nodes -*/ -exports.getParseTreeText = function getParseTreeText(tree) { - var output = []; - if($tw.utils.isArray(tree)) { - $tw.utils.each(tree,function(node) { - output.push(getParseTreeText(node)); - }); - } else { - if(tree.type === "text") { - output.push(tree.text); - } - if(tree.children) { - return getParseTreeText(tree.children); - } - } - return output.join(""); -}; - -})(); --
/*\ -title: $:/core/modules/utils/parseutils.js -type: application/javascript -module-type: utils - -Utility functions concerned with parsing text into tokens. - -Most functions have the following pattern: - -* The parameters are: -** `source`: the source string being parsed -** `pos`: the current parse position within the string -** Any further parameters are used to identify the token that is being parsed -* The return value is: -** null if the token was not found at the specified position -** an object representing the token with the following standard fields: -*** `type`: string indicating the type of the token -*** `start`: start position of the token in the source string -*** `end`: end position of the token in the source string -*** Any further fields required to describe the token - -The exception is `skipWhiteSpace`, which just returns the position after the whitespace. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Look for a whitespace token. Returns null if not found, otherwise returns {type: "whitespace", start:, end:,} -*/ -exports.parseWhiteSpace = function(source,pos) { - var p = pos,c; - while(true) { - c = source.charAt(p); - if((c === " ") || (c === "\f") || (c === "\n") || (c === "\r") || (c === "\t") || (c === "\v") || (c === "\u00a0")) { // Ignores some obscure unicode spaces - p++; - } else { - break; - } - } - if(p === pos) { - return null; - } else { - return { - type: "whitespace", - start: pos, - end: p - } - } -}; - -/* -Convenience wrapper for parseWhiteSpace. Returns the position after the whitespace -*/ -exports.skipWhiteSpace = function(source,pos) { - var c; - while(true) { - c = source.charAt(pos); - if((c === " ") || (c === "\f") || (c === "\n") || (c === "\r") || (c === "\t") || (c === "\v") || (c === "\u00a0")) { // Ignores some obscure unicode spaces - pos++; - } else { - return pos; - } - } -}; - -/* -Look for a given string token. Returns null if not found, otherwise returns {type: "token", value:, start:, end:,} -*/ -exports.parseTokenString = function(source,pos,token) { - var match = source.indexOf(token,pos) === pos; - if(match) { - return { - type: "token", - value: token, - start: pos, - end: pos + token.length - }; - } - return null; -}; - -/* -Look for a token matching a regex. Returns null if not found, otherwise returns {type: "regexp", match:, start:, end:,} -*/ -exports.parseTokenRegExp = function(source,pos,reToken) { - var node = { - type: "regexp", - start: pos - }; - reToken.lastIndex = pos; - node.match = reToken.exec(source); - if(node.match && node.match.index === pos) { - node.end = pos + node.match[0].length; - return node; - } else { - return null; - } -}; - -/* -Look for a string literal. Returns null if not found, otherwise returns {type: "string", value:, start:, end:,} -*/ -exports.parseStringLiteral = function(source,pos) { - var node = { - type: "string", - start: pos - }; - var reString = /(?:"""([\s\S]*?)"""|"([^"]*)")|(?:'([^']*)')/g; - reString.lastIndex = pos; - var match = reString.exec(source); - if(match && match.index === pos) { - node.value = match[1] !== undefined ? match[1] :( - match[2] !== undefined ? match[2] : match[3] - ); - node.end = pos + match[0].length; - return node; - } else { - return null; - } -}; - -/* -Look for a macro invocation parameter. Returns null if not found, or {type: "macro-parameter", name:, value:, start:, end:} -*/ -exports.parseMacroParameter = function(source,pos) { - var node = { - type: "macro-parameter", - start: pos - }; - // Define our regexp - var reMacroParameter = /(?:([A-Za-z0-9\-_]+)\s*:)?(?:\s*(?:"""([\s\S]*?)"""|"([^"]*)"|'([^']*)'|\[\[([^\]]*)\]\]|([^\s>"'=]+)))/g; - // Skip whitespace - pos = $tw.utils.skipWhiteSpace(source,pos); - // Look for the parameter - var token = $tw.utils.parseTokenRegExp(source,pos,reMacroParameter); - if(!token) { - return null; - } - pos = token.end; - // Get the parameter details - node.value = token.match[2] !== undefined ? token.match[2] : ( - token.match[3] !== undefined ? token.match[3] : ( - token.match[4] !== undefined ? token.match[4] : ( - token.match[5] !== undefined ? token.match[5] : ( - token.match[6] !== undefined ? token.match[6] : ( - "" - ) - ) - ) - ) - ); - if(token.match[1]) { - node.name = token.match[1]; - } - // Update the end position - node.end = pos; - return node; -}; - -/* -Look for a macro invocation. Returns null if not found, or {type: "macrocall", name:, parameters:, start:, end:} -*/ -exports.parseMacroInvocation = function(source,pos) { - var node = { - type: "macrocall", - start: pos, - params: [] - }; - // Define our regexps - var reMacroName = /([^\s>"'=]+)/g; - // Skip whitespace - pos = $tw.utils.skipWhiteSpace(source,pos); - // Look for a double less than sign - var token = $tw.utils.parseTokenString(source,pos,"<<"); - if(!token) { - return null; - } - pos = token.end; - // Get the macro name - var name = $tw.utils.parseTokenRegExp(source,pos,reMacroName); - if(!name) { - return null; - } - node.name = name.match[1]; - pos = name.end; - // Process parameters - var parameter = $tw.utils.parseMacroParameter(source,pos); - while(parameter) { - node.params.push(parameter); - pos = parameter.end; - // Get the next parameter - parameter = $tw.utils.parseMacroParameter(source,pos); - } - // Skip whitespace - pos = $tw.utils.skipWhiteSpace(source,pos); - // Look for a double greater than sign - token = $tw.utils.parseTokenString(source,pos,">>"); - if(!token) { - return null; - } - pos = token.end; - // Update the end position - node.end = pos; - return node; -}; - -/* -Look for an HTML attribute definition. Returns null if not found, otherwise returns {type: "attribute", name:, valueType: "string|indirect|macro", value:, start:, end:,} -*/ -exports.parseAttribute = function(source,pos) { - var node = { - start: pos - }; - // Define our regexps - var reAttributeName = /([^\/\s>"'=]+)/g, - reUnquotedAttribute = /([^\/\s<>"'=]+)/g, - reFilteredValue = /\{\{\{(.+?)\}\}\}/g, - reIndirectValue = /\{\{([^\}]+)\}\}/g; - // Skip whitespace - pos = $tw.utils.skipWhiteSpace(source,pos); - // Get the attribute name - var name = $tw.utils.parseTokenRegExp(source,pos,reAttributeName); - if(!name) { - return null; - } - node.name = name.match[1]; - pos = name.end; - // Skip whitespace - pos = $tw.utils.skipWhiteSpace(source,pos); - // Look for an equals sign - var token = $tw.utils.parseTokenString(source,pos,"="); - if(token) { - pos = token.end; - // Skip whitespace - pos = $tw.utils.skipWhiteSpace(source,pos); - // Look for a string literal - var stringLiteral = $tw.utils.parseStringLiteral(source,pos); - if(stringLiteral) { - pos = stringLiteral.end; - node.type = "string"; - node.value = stringLiteral.value; - } else { - // Look for a filtered value - var filteredValue = $tw.utils.parseTokenRegExp(source,pos,reFilteredValue); - if(filteredValue) { - pos = filteredValue.end; - node.type = "filtered"; - node.filter = filteredValue.match[1]; - } else { - // Look for an indirect value - var indirectValue = $tw.utils.parseTokenRegExp(source,pos,reIndirectValue); - if(indirectValue) { - pos = indirectValue.end; - node.type = "indirect"; - node.textReference = indirectValue.match[1]; - } else { - // Look for a unquoted value - var unquotedValue = $tw.utils.parseTokenRegExp(source,pos,reUnquotedAttribute); - if(unquotedValue) { - pos = unquotedValue.end; - node.type = "string"; - node.value = unquotedValue.match[1]; - } else { - // Look for a macro invocation value - var macroInvocation = $tw.utils.parseMacroInvocation(source,pos); - if(macroInvocation) { - pos = macroInvocation.end; - node.type = "macro"; - node.value = macroInvocation; - } else { - node.type = "string"; - node.value = "true"; - } - } - } - } - } - } else { - node.type = "string"; - node.value = "true"; - } - // Update the end position - node.end = pos; - return node; -}; - -})(); --
/*\ -title: $:/core/modules/utils/performance.js -type: application/javascript -module-type: global - -Performance measurement. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -function Performance(enabled) { - this.enabled = !!enabled; - this.measures = {}; // Hashmap by measurement name of {time:, invocations:} - this.logger = new $tw.utils.Logger("performance"); - this.showGreeting(); -} - -Performance.prototype.showGreeting = function() { - if($tw.browser) { - this.logger.log("Execute $tw.perf.log(); to see filter execution timings"); - } -}; - -/* -Wrap performance reporting around a top level function -*/ -Performance.prototype.report = function(name,fn) { - var self = this; - if(this.enabled) { - return function() { - var startTime = $tw.utils.timer(), - result = fn.apply(this,arguments); - self.logger.log(name + ": " + $tw.utils.timer(startTime).toFixed(2) + "ms"); - return result; - }; - } else { - return fn; - } -}; - -Performance.prototype.log = function() { - var self = this, - totalTime = 0, - orderedMeasures = Object.keys(this.measures).sort(function(a,b) { - if(self.measures[a].time > self.measures[b].time) { - return -1; - } else if (self.measures[a].time < self.measures[b].time) { - return + 1; - } else { - return 0; - } - }); - $tw.utils.each(orderedMeasures,function(name) { - totalTime += self.measures[name].time; - }); - var results = [] - $tw.utils.each(orderedMeasures,function(name) { - var measure = self.measures[name]; - results.push({name: name,invocations: measure.invocations, avgTime: measure.time / measure.invocations, totalTime: measure.time, percentTime: (measure.time / totalTime) * 100}) - }); - self.logger.table(results); -}; - -/* -Wrap performance measurements around a subfunction -*/ -Performance.prototype.measure = function(name,fn) { - var self = this; - if(this.enabled) { - return function() { - var startTime = $tw.utils.timer(), - result = fn.apply(this,arguments); - if(!(name in self.measures)) { - self.measures[name] = {time: 0, invocations: 0}; - } - self.measures[name].time += $tw.utils.timer(startTime); - self.measures[name].invocations++; - return result; - }; - } else { - return fn; - } -}; - -exports.Performance = Performance; - -})(); --
/*\ -title: $:/core/modules/utils/pluginmaker.js -type: application/javascript -module-type: utils - -A quick and dirty way to pack up plugins within the browser. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Repack a plugin, and then delete any non-shadow payload tiddlers -*/ -exports.repackPlugin = function(title,additionalTiddlers,excludeTiddlers) { - additionalTiddlers = additionalTiddlers || []; - excludeTiddlers = excludeTiddlers || []; - // Get the plugin tiddler - var pluginTiddler = $tw.wiki.getTiddler(title); - if(!pluginTiddler) { - throw "No such tiddler as " + title; - } - // Extract the JSON - var jsonPluginTiddler; - try { - jsonPluginTiddler = JSON.parse(pluginTiddler.fields.text); - } catch(e) { - throw "Cannot parse plugin tiddler " + title + "\n" + $tw.language.getString("Error/Caption") + ": " + e; - } - // Get the list of tiddlers - var tiddlers = Object.keys(jsonPluginTiddler.tiddlers); - // Add the additional tiddlers - $tw.utils.pushTop(tiddlers,additionalTiddlers); - // Remove any excluded tiddlers - for(var t=tiddlers.length-1; t>=0; t--) { - if(excludeTiddlers.indexOf(tiddlers[t]) !== -1) { - tiddlers.splice(t,1); - } - } - // Pack up the tiddlers into a block of JSON - var plugins = {}; - $tw.utils.each(tiddlers,function(title) { - var tiddler = $tw.wiki.getTiddler(title), - fields = {}; - $tw.utils.each(tiddler.fields,function (value,name) { - fields[name] = tiddler.getFieldString(name); - }); - plugins[title] = fields; - }); - // Retrieve and bump the version number - var pluginVersion = $tw.utils.parseVersion(pluginTiddler.getFieldString("version") || "0.0.0") || { - major: "0", - minor: "0", - patch: "0" - }; - pluginVersion.patch++; - var version = pluginVersion.major + "." + pluginVersion.minor + "." + pluginVersion.patch; - if(pluginVersion.prerelease) { - version += "-" + pluginVersion.prerelease; - } - if(pluginVersion.build) { - version += "+" + pluginVersion.build; - } - // Save the tiddler - $tw.wiki.addTiddler(new $tw.Tiddler(pluginTiddler,{text: JSON.stringify({tiddlers: plugins},null,4), version: version})); - // Delete any non-shadow constituent tiddlers - $tw.utils.each(tiddlers,function(title) { - if($tw.wiki.tiddlerExists(title)) { - $tw.wiki.deleteTiddler(title); - } - }); - // Trigger an autosave - $tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"}); - // Return a heartwarming confirmation - return "Plugin " + title + " successfully saved"; -}; - -})(); --
/*\ -title: $:/core/modules/utils/transliterate.js -type: application/javascript -module-type: utils - -Transliteration static utility functions. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Transliterate string to ASCII - -(Some pairs taken from http://semplicewebsites.com/removing-accents-javascript) -*/ -exports.transliterationPairs = { - "Á":"A", - "Ă":"A", - "Ắ":"A", - "Ặ":"A", - "Ằ":"A", - "Ẳ":"A", - "Ẵ":"A", - "Ǎ":"A", - "Â":"A", - "Ấ":"A", - "Ậ":"A", - "Ầ":"A", - "Ẩ":"A", - "Ẫ":"A", - "Ä":"A", - "Ǟ":"A", - "Ȧ":"A", - "Ǡ":"A", - "Ạ":"A", - "Ȁ":"A", - "À":"A", - "Ả":"A", - "Ȃ":"A", - "Ā":"A", - "Ą":"A", - "Å":"A", - "Ǻ":"A", - "Ḁ":"A", - "Ⱥ":"A", - "Ã":"A", - "Ꜳ":"AA", - "Æ":"AE", - "Ǽ":"AE", - "Ǣ":"AE", - "Ꜵ":"AO", - "Ꜷ":"AU", - "Ꜹ":"AV", - "Ꜻ":"AV", - "Ꜽ":"AY", - "Ḃ":"B", - "Ḅ":"B", - "Ɓ":"B", - "Ḇ":"B", - "Ƀ":"B", - "Ƃ":"B", - "Ć":"C", - "Č":"C", - "Ç":"C", - "Ḉ":"C", - "Ĉ":"C", - "Ċ":"C", - "Ƈ":"C", - "Ȼ":"C", - "Ď":"D", - "Ḑ":"D", - "Ḓ":"D", - "Ḋ":"D", - "Ḍ":"D", - "Ɗ":"D", - "Ḏ":"D", - "Dz":"D", - "Dž":"D", - "Đ":"D", - "Ƌ":"D", - "DZ":"DZ", - "DŽ":"DZ", - "É":"E", - "Ĕ":"E", - "Ě":"E", - "Ȩ":"E", - "Ḝ":"E", - "Ê":"E", - "Ế":"E", - "Ệ":"E", - "Ề":"E", - "Ể":"E", - "Ễ":"E", - "Ḙ":"E", - "Ë":"E", - "Ė":"E", - "Ẹ":"E", - "Ȅ":"E", - "È":"E", - "Ẻ":"E", - "Ȇ":"E", - "Ē":"E", - "Ḗ":"E", - "Ḕ":"E", - "Ę":"E", - "Ɇ":"E", - "Ẽ":"E", - "Ḛ":"E", - "Ꝫ":"ET", - "Ḟ":"F", - "Ƒ":"F", - "Ǵ":"G", - "Ğ":"G", - "Ǧ":"G", - "Ģ":"G", - "Ĝ":"G", - "Ġ":"G", - "Ɠ":"G", - "Ḡ":"G", - "Ǥ":"G", - "Ḫ":"H", - "Ȟ":"H", - "Ḩ":"H", - "Ĥ":"H", - "Ⱨ":"H", - "Ḧ":"H", - "Ḣ":"H", - "Ḥ":"H", - "Ħ":"H", - "Í":"I", - "Ĭ":"I", - "Ǐ":"I", - "Î":"I", - "Ï":"I", - "Ḯ":"I", - "İ":"I", - "Ị":"I", - "Ȉ":"I", - "Ì":"I", - "Ỉ":"I", - "Ȋ":"I", - "Ī":"I", - "Į":"I", - "Ɨ":"I", - "Ĩ":"I", - "Ḭ":"I", - "Ꝺ":"D", - "Ꝼ":"F", - "Ᵹ":"G", - "Ꞃ":"R", - "Ꞅ":"S", - "Ꞇ":"T", - "Ꝭ":"IS", - "Ĵ":"J", - "Ɉ":"J", - "Ḱ":"K", - "Ǩ":"K", - "Ķ":"K", - "Ⱪ":"K", - "Ꝃ":"K", - "Ḳ":"K", - "Ƙ":"K", - "Ḵ":"K", - "Ꝁ":"K", - "Ꝅ":"K", - "Ĺ":"L", - "Ƚ":"L", - "Ľ":"L", - "Ļ":"L", - "Ḽ":"L", - "Ḷ":"L", - "Ḹ":"L", - "Ⱡ":"L", - "Ꝉ":"L", - "Ḻ":"L", - "Ŀ":"L", - "Ɫ":"L", - "Lj":"L", - "Ł":"L", - "LJ":"LJ", - "Ḿ":"M", - "Ṁ":"M", - "Ṃ":"M", - "Ɱ":"M", - "Ń":"N", - "Ň":"N", - "Ņ":"N", - "Ṋ":"N", - "Ṅ":"N", - "Ṇ":"N", - "Ǹ":"N", - "Ɲ":"N", - "Ṉ":"N", - "Ƞ":"N", - "Nj":"N", - "Ñ":"N", - "NJ":"NJ", - "Ó":"O", - "Ŏ":"O", - "Ǒ":"O", - "Ô":"O", - "Ố":"O", - "Ộ":"O", - "Ồ":"O", - "Ổ":"O", - "Ỗ":"O", - "Ö":"O", - "Ȫ":"O", - "Ȯ":"O", - "Ȱ":"O", - "Ọ":"O", - "Ő":"O", - "Ȍ":"O", - "Ò":"O", - "Ỏ":"O", - "Ơ":"O", - "Ớ":"O", - "Ợ":"O", - "Ờ":"O", - "Ở":"O", - "Ỡ":"O", - "Ȏ":"O", - "Ꝋ":"O", - "Ꝍ":"O", - "Ō":"O", - "Ṓ":"O", - "Ṑ":"O", - "Ɵ":"O", - "Ǫ":"O", - "Ǭ":"O", - "Ø":"O", - "Ǿ":"O", - "Õ":"O", - "Ṍ":"O", - "Ṏ":"O", - "Ȭ":"O", - "Ƣ":"OI", - "Ꝏ":"OO", - "Ɛ":"E", - "Ɔ":"O", - "Ȣ":"OU", - "Ṕ":"P", - "Ṗ":"P", - "Ꝓ":"P", - "Ƥ":"P", - "Ꝕ":"P", - "Ᵽ":"P", - "Ꝑ":"P", - "Ꝙ":"Q", - "Ꝗ":"Q", - "Ŕ":"R", - "Ř":"R", - "Ŗ":"R", - "Ṙ":"R", - "Ṛ":"R", - "Ṝ":"R", - "Ȑ":"R", - "Ȓ":"R", - "Ṟ":"R", - "Ɍ":"R", - "Ɽ":"R", - "Ꜿ":"C", - "Ǝ":"E", - "Ś":"S", - "Ṥ":"S", - "Š":"S", - "Ṧ":"S", - "Ş":"S", - "Ŝ":"S", - "Ș":"S", - "Ṡ":"S", - "Ṣ":"S", - "Ṩ":"S", - "Ť":"T", - "Ţ":"T", - "Ṱ":"T", - "Ț":"T", - "Ⱦ":"T", - "Ṫ":"T", - "Ṭ":"T", - "Ƭ":"T", - "Ṯ":"T", - "Ʈ":"T", - "Ŧ":"T", - "Ɐ":"A", - "Ꞁ":"L", - "Ɯ":"M", - "Ʌ":"V", - "Ꜩ":"TZ", - "Ú":"U", - "Ŭ":"U", - "Ǔ":"U", - "Û":"U", - "Ṷ":"U", - "Ü":"U", - "Ǘ":"U", - "Ǚ":"U", - "Ǜ":"U", - "Ǖ":"U", - "Ṳ":"U", - "Ụ":"U", - "Ű":"U", - "Ȕ":"U", - "Ù":"U", - "Ủ":"U", - "Ư":"U", - "Ứ":"U", - "Ự":"U", - "Ừ":"U", - "Ử":"U", - "Ữ":"U", - "Ȗ":"U", - "Ū":"U", - "Ṻ":"U", - "Ų":"U", - "Ů":"U", - "Ũ":"U", - "Ṹ":"U", - "Ṵ":"U", - "Ꝟ":"V", - "Ṿ":"V", - "Ʋ":"V", - "Ṽ":"V", - "Ꝡ":"VY", - "Ẃ":"W", - "Ŵ":"W", - "Ẅ":"W", - "Ẇ":"W", - "Ẉ":"W", - "Ẁ":"W", - "Ⱳ":"W", - "Ẍ":"X", - "Ẋ":"X", - "Ý":"Y", - "Ŷ":"Y", - "Ÿ":"Y", - "Ẏ":"Y", - "Ỵ":"Y", - "Ỳ":"Y", - "Ƴ":"Y", - "Ỷ":"Y", - "Ỿ":"Y", - "Ȳ":"Y", - "Ɏ":"Y", - "Ỹ":"Y", - "Ź":"Z", - "Ž":"Z", - "Ẑ":"Z", - "Ⱬ":"Z", - "Ż":"Z", - "Ẓ":"Z", - "Ȥ":"Z", - "Ẕ":"Z", - "Ƶ":"Z", - "IJ":"IJ", - "Œ":"OE", - "ᴀ":"A", - "ᴁ":"AE", - "ʙ":"B", - "ᴃ":"B", - "ᴄ":"C", - "ᴅ":"D", - "ᴇ":"E", - "ꜰ":"F", - "ɢ":"G", - "ʛ":"G", - "ʜ":"H", - "ɪ":"I", - "ʁ":"R", - "ᴊ":"J", - "ᴋ":"K", - "ʟ":"L", - "ᴌ":"L", - "ᴍ":"M", - "ɴ":"N", - "ᴏ":"O", - "ɶ":"OE", - "ᴐ":"O", - "ᴕ":"OU", - "ᴘ":"P", - "ʀ":"R", - "ᴎ":"N", - "ᴙ":"R", - "ꜱ":"S", - "ᴛ":"T", - "ⱻ":"E", - "ᴚ":"R", - "ᴜ":"U", - "ᴠ":"V", - "ᴡ":"W", - "ʏ":"Y", - "ᴢ":"Z", - "á":"a", - "ă":"a", - "ắ":"a", - "ặ":"a", - "ằ":"a", - "ẳ":"a", - "ẵ":"a", - "ǎ":"a", - "â":"a", - "ấ":"a", - "ậ":"a", - "ầ":"a", - "ẩ":"a", - "ẫ":"a", - "ä":"a", - "ǟ":"a", - "ȧ":"a", - "ǡ":"a", - "ạ":"a", - "ȁ":"a", - "à":"a", - "ả":"a", - "ȃ":"a", - "ā":"a", - "ą":"a", - "ᶏ":"a", - "ẚ":"a", - "å":"a", - "ǻ":"a", - "ḁ":"a", - "ⱥ":"a", - "ã":"a", - "ꜳ":"aa", - "æ":"ae", - "ǽ":"ae", - "ǣ":"ae", - "ꜵ":"ao", - "ꜷ":"au", - "ꜹ":"av", - "ꜻ":"av", - "ꜽ":"ay", - "ḃ":"b", - "ḅ":"b", - "ɓ":"b", - "ḇ":"b", - "ᵬ":"b", - "ᶀ":"b", - "ƀ":"b", - "ƃ":"b", - "ɵ":"o", - "ć":"c", - "č":"c", - "ç":"c", - "ḉ":"c", - "ĉ":"c", - "ɕ":"c", - "ċ":"c", - "ƈ":"c", - "ȼ":"c", - "ď":"d", - "ḑ":"d", - "ḓ":"d", - "ȡ":"d", - "ḋ":"d", - "ḍ":"d", - "ɗ":"d", - "ᶑ":"d", - "ḏ":"d", - "ᵭ":"d", - "ᶁ":"d", - "đ":"d", - "ɖ":"d", - "ƌ":"d", - "ı":"i", - "ȷ":"j", - "ɟ":"j", - "ʄ":"j", - "dz":"dz", - "dž":"dz", - "é":"e", - "ĕ":"e", - "ě":"e", - "ȩ":"e", - "ḝ":"e", - "ê":"e", - "ế":"e", - "ệ":"e", - "ề":"e", - "ể":"e", - "ễ":"e", - "ḙ":"e", - "ë":"e", - "ė":"e", - "ẹ":"e", - "ȅ":"e", - "è":"e", - "ẻ":"e", - "ȇ":"e", - "ē":"e", - "ḗ":"e", - "ḕ":"e", - "ⱸ":"e", - "ę":"e", - "ᶒ":"e", - "ɇ":"e", - "ẽ":"e", - "ḛ":"e", - "ꝫ":"et", - "ḟ":"f", - "ƒ":"f", - "ᵮ":"f", - "ᶂ":"f", - "ǵ":"g", - "ğ":"g", - "ǧ":"g", - "ģ":"g", - "ĝ":"g", - "ġ":"g", - "ɠ":"g", - "ḡ":"g", - "ᶃ":"g", - "ǥ":"g", - "ḫ":"h", - "ȟ":"h", - "ḩ":"h", - "ĥ":"h", - "ⱨ":"h", - "ḧ":"h", - "ḣ":"h", - "ḥ":"h", - "ɦ":"h", - "ẖ":"h", - "ħ":"h", - "ƕ":"hv", - "í":"i", - "ĭ":"i", - "ǐ":"i", - "î":"i", - "ï":"i", - "ḯ":"i", - "ị":"i", - "ȉ":"i", - "ì":"i", - "ỉ":"i", - "ȋ":"i", - "ī":"i", - "į":"i", - "ᶖ":"i", - "ɨ":"i", - "ĩ":"i", - "ḭ":"i", - "ꝺ":"d", - "ꝼ":"f", - "ᵹ":"g", - "ꞃ":"r", - "ꞅ":"s", - "ꞇ":"t", - "ꝭ":"is", - "ǰ":"j", - "ĵ":"j", - "ʝ":"j", - "ɉ":"j", - "ḱ":"k", - "ǩ":"k", - "ķ":"k", - "ⱪ":"k", - "ꝃ":"k", - "ḳ":"k", - "ƙ":"k", - "ḵ":"k", - "ᶄ":"k", - "ꝁ":"k", - "ꝅ":"k", - "ĺ":"l", - "ƚ":"l", - "ɬ":"l", - "ľ":"l", - "ļ":"l", - "ḽ":"l", - "ȴ":"l", - "ḷ":"l", - "ḹ":"l", - "ⱡ":"l", - "ꝉ":"l", - "ḻ":"l", - "ŀ":"l", - "ɫ":"l", - "ᶅ":"l", - "ɭ":"l", - "ł":"l", - "lj":"lj", - "ſ":"s", - "ẜ":"s", - "ẛ":"s", - "ẝ":"s", - "ḿ":"m", - "ṁ":"m", - "ṃ":"m", - "ɱ":"m", - "ᵯ":"m", - "ᶆ":"m", - "ń":"n", - "ň":"n", - "ņ":"n", - "ṋ":"n", - "ȵ":"n", - "ṅ":"n", - "ṇ":"n", - "ǹ":"n", - "ɲ":"n", - "ṉ":"n", - "ƞ":"n", - "ᵰ":"n", - "ᶇ":"n", - "ɳ":"n", - "ñ":"n", - "nj":"nj", - "ó":"o", - "ŏ":"o", - "ǒ":"o", - "ô":"o", - "ố":"o", - "ộ":"o", - "ồ":"o", - "ổ":"o", - "ỗ":"o", - "ö":"o", - "ȫ":"o", - "ȯ":"o", - "ȱ":"o", - "ọ":"o", - "ő":"o", - "ȍ":"o", - "ò":"o", - "ỏ":"o", - "ơ":"o", - "ớ":"o", - "ợ":"o", - "ờ":"o", - "ở":"o", - "ỡ":"o", - "ȏ":"o", - "ꝋ":"o", - "ꝍ":"o", - "ⱺ":"o", - "ō":"o", - "ṓ":"o", - "ṑ":"o", - "ǫ":"o", - "ǭ":"o", - "ø":"o", - "ǿ":"o", - "õ":"o", - "ṍ":"o", - "ṏ":"o", - "ȭ":"o", - "ƣ":"oi", - "ꝏ":"oo", - "ɛ":"e", - "ᶓ":"e", - "ɔ":"o", - "ᶗ":"o", - "ȣ":"ou", - "ṕ":"p", - "ṗ":"p", - "ꝓ":"p", - "ƥ":"p", - "ᵱ":"p", - "ᶈ":"p", - "ꝕ":"p", - "ᵽ":"p", - "ꝑ":"p", - "ꝙ":"q", - "ʠ":"q", - "ɋ":"q", - "ꝗ":"q", - "ŕ":"r", - "ř":"r", - "ŗ":"r", - "ṙ":"r", - "ṛ":"r", - "ṝ":"r", - "ȑ":"r", - "ɾ":"r", - "ᵳ":"r", - "ȓ":"r", - "ṟ":"r", - "ɼ":"r", - "ᵲ":"r", - "ᶉ":"r", - "ɍ":"r", - "ɽ":"r", - "ↄ":"c", - "ꜿ":"c", - "ɘ":"e", - "ɿ":"r", - "ś":"s", - "ṥ":"s", - "š":"s", - "ṧ":"s", - "ş":"s", - "ŝ":"s", - "ș":"s", - "ṡ":"s", - "ṣ":"s", - "ṩ":"s", - "ʂ":"s", - "ᵴ":"s", - "ᶊ":"s", - "ȿ":"s", - "ɡ":"g", - "ᴑ":"o", - "ᴓ":"o", - "ᴝ":"u", - "ť":"t", - "ţ":"t", - "ṱ":"t", - "ț":"t", - "ȶ":"t", - "ẗ":"t", - "ⱦ":"t", - "ṫ":"t", - "ṭ":"t", - "ƭ":"t", - "ṯ":"t", - "ᵵ":"t", - "ƫ":"t", - "ʈ":"t", - "ŧ":"t", - "ᵺ":"th", - "ɐ":"a", - "ᴂ":"ae", - "ǝ":"e", - "ᵷ":"g", - "ɥ":"h", - "ʮ":"h", - "ʯ":"h", - "ᴉ":"i", - "ʞ":"k", - "ꞁ":"l", - "ɯ":"m", - "ɰ":"m", - "ᴔ":"oe", - "ɹ":"r", - "ɻ":"r", - "ɺ":"r", - "ⱹ":"r", - "ʇ":"t", - "ʌ":"v", - "ʍ":"w", - "ʎ":"y", - "ꜩ":"tz", - "ú":"u", - "ŭ":"u", - "ǔ":"u", - "û":"u", - "ṷ":"u", - "ü":"u", - "ǘ":"u", - "ǚ":"u", - "ǜ":"u", - "ǖ":"u", - "ṳ":"u", - "ụ":"u", - "ű":"u", - "ȕ":"u", - "ù":"u", - "ủ":"u", - "ư":"u", - "ứ":"u", - "ự":"u", - "ừ":"u", - "ử":"u", - "ữ":"u", - "ȗ":"u", - "ū":"u", - "ṻ":"u", - "ų":"u", - "ᶙ":"u", - "ů":"u", - "ũ":"u", - "ṹ":"u", - "ṵ":"u", - "ᵫ":"ue", - "ꝸ":"um", - "ⱴ":"v", - "ꝟ":"v", - "ṿ":"v", - "ʋ":"v", - "ᶌ":"v", - "ⱱ":"v", - "ṽ":"v", - "ꝡ":"vy", - "ẃ":"w", - "ŵ":"w", - "ẅ":"w", - "ẇ":"w", - "ẉ":"w", - "ẁ":"w", - "ⱳ":"w", - "ẘ":"w", - "ẍ":"x", - "ẋ":"x", - "ᶍ":"x", - "ý":"y", - "ŷ":"y", - "ÿ":"y", - "ẏ":"y", - "ỵ":"y", - "ỳ":"y", - "ƴ":"y", - "ỷ":"y", - "ỿ":"y", - "ȳ":"y", - "ẙ":"y", - "ɏ":"y", - "ỹ":"y", - "ź":"z", - "ž":"z", - "ẑ":"z", - "ʑ":"z", - "ⱬ":"z", - "ż":"z", - "ẓ":"z", - "ȥ":"z", - "ẕ":"z", - "ᵶ":"z", - "ᶎ":"z", - "ʐ":"z", - "ƶ":"z", - "ɀ":"z", - "ff":"ff", - "ffi":"ffi", - "ffl":"ffl", - "fi":"fi", - "fl":"fl", - "ij":"ij", - "œ":"oe", - "st":"st", - "ₐ":"a", - "ₑ":"e", - "ᵢ":"i", - "ⱼ":"j", - "ₒ":"o", - "ᵣ":"r", - "ᵤ":"u", - "ᵥ":"v", - "ₓ":"x", - "Ё":"YO", - "Й":"I", - "Ц":"TS", - "У":"U", - "К":"K", - "Е":"E", - "Н":"N", - "Г":"G", - "Ш":"SH", - "Щ":"SCH", - "З":"Z", - "Х":"H", - "Ъ":"'", - "ё":"yo", - "й":"i", - "ц":"ts", - "у":"u", - "к":"k", - "е":"e", - "н":"n", - "г":"g", - "ш":"sh", - "щ":"sch", - "з":"z", - "х":"h", - "ъ":"'", - "Ф":"F", - "Ы":"I", - "В":"V", - "А":"a", - "П":"P", - "Р":"R", - "О":"O", - "Л":"L", - "Д":"D", - "Ж":"ZH", - "Э":"E", - "ф":"f", - "ы":"i", - "в":"v", - "а":"a", - "п":"p", - "р":"r", - "о":"o", - "л":"l", - "д":"d", - "ж":"zh", - "э":"e", - "Я":"Ya", - "Ч":"CH", - "С":"S", - "М":"M", - "И":"I", - "Т":"T", - "Ь":"'", - "Б":"B", - "Ю":"YU", - "я":"ya", - "ч":"ch", - "с":"s", - "м":"m", - "и":"i", - "т":"t", - "ь":"'", - "б":"b", - "ю":"yu" -}; - -exports.transliterate = function(str) { - return str.replace(/[^A-Za-z0-9\[\] ]/g,function(ch) { - return exports.transliterationPairs[ch] || ch - }); -}; - -exports.transliterateToSafeASCII = function(str) { - return str.replace(/[^\x00-\x7F]/g,function(ch) { - return exports.transliterationPairs[ch] || "" - }); -}; - -})(); --
/*\ -title: $:/core/modules/utils/utils.js -type: application/javascript -module-type: utils - -Various static utility functions. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var base64utf8 = require("$:/core/modules/utils/base64-utf8/base64-utf8.module.js"); - -/* -Display a message, in colour if we're on a terminal -*/ -exports.log = function(text,colour) { - console.log($tw.node ? exports.terminalColour(colour) + text + exports.terminalColour() : text); -}; - -exports.terminalColour = function(colour) { - if(!$tw.browser && $tw.node && process.stdout.isTTY) { - if(colour) { - var code = exports.terminalColourLookup[colour]; - if(code) { - return "\x1b[" + code + "m"; - } - } else { - return "\x1b[0m"; // Cancel colour - } - } - return ""; -}; - -exports.terminalColourLookup = { - "black": "0;30", - "red": "0;31", - "green": "0;32", - "brown/orange": "0;33", - "blue": "0;34", - "purple": "0;35", - "cyan": "0;36", - "light gray": "0;37" -}; - -/* -Display a warning, in colour if we're on a terminal -*/ -exports.warning = function(text) { - exports.log(text,"brown/orange"); -}; - -/* -Return the integer represented by the str (string). -Return the dflt (default) parameter if str is not a base-10 number. -*/ -exports.getInt = function(str,deflt) { - var i = parseInt(str,10); - return isNaN(i) ? deflt : i; -} - -/* -Repeatedly replaces a substring within a string. Like String.prototype.replace, but without any of the default special handling of $ sequences in the replace string -*/ -exports.replaceString = function(text,search,replace) { - return text.replace(search,function() { - return replace; - }); -}; - -/* -Repeats a string -*/ -exports.repeat = function(str,count) { - var result = ""; - for(var t=0;t<count;t++) { - result += str; - } - return result; -}; - -/* -Trim whitespace from the start and end of a string -Thanks to Steven Levithan, http://blog.stevenlevithan.com/archives/faster-trim-javascript -*/ -exports.trim = function(str) { - if(typeof str === "string") { - return str.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); - } else { - return str; - } -}; - -/* -Convert a string to sentence case (ie capitalise first letter) -*/ -exports.toSentenceCase = function(str) { - return (str || "").replace(/^\S/, function(c) {return c.toUpperCase();}); -} - -/* -Convert a string to title case (ie capitalise each initial letter) -*/ -exports.toTitleCase = function(str) { - return (str || "").replace(/(^|\s)\S/g, function(c) {return c.toUpperCase();}); -} - -/* -Find the line break preceding a given position in a string -Returns position immediately after that line break, or the start of the string -*/ -exports.findPrecedingLineBreak = function(text,pos) { - var result = text.lastIndexOf("\n",pos - 1); - if(result === -1) { - result = 0; - } else { - result++; - if(text.charAt(result) === "\r") { - result++; - } - } - return result; -}; - -/* -Find the line break following a given position in a string -*/ -exports.findFollowingLineBreak = function(text,pos) { - // Cut to just past the following line break, or to the end of the text - var result = text.indexOf("\n",pos); - if(result === -1) { - result = text.length; - } else { - if(text.charAt(result) === "\r") { - result++; - } - } - return result; -}; - -/* -Return the number of keys in an object -*/ -exports.count = function(object) { - return Object.keys(object || {}).length; -}; - -/* -Determine whether an array-item is an object-property -*/ -exports.hopArray = function(object,array) { - for(var i=0; i<array.length; i++) { - if($tw.utils.hop(object,array[i])) { - return true; - } - } - return false; -}; - -/* -Remove entries from an array - array: array to modify - value: a single value to remove, or an array of values to remove -*/ -exports.removeArrayEntries = function(array,value) { - var t,p; - if($tw.utils.isArray(value)) { - for(t=0; t<value.length; t++) { - p = array.indexOf(value[t]); - if(p !== -1) { - array.splice(p,1); - } - } - } else { - p = array.indexOf(value); - if(p !== -1) { - array.splice(p,1); - } - } -}; - -/* -Check whether any members of a hashmap are present in another hashmap -*/ -exports.checkDependencies = function(dependencies,changes) { - var hit = false; - $tw.utils.each(changes,function(change,title) { - if($tw.utils.hop(dependencies,title)) { - hit = true; - } - }); - return hit; -}; - -exports.extend = function(object /* [, src] */) { - $tw.utils.each(Array.prototype.slice.call(arguments, 1), function(source) { - if(source) { - for(var property in source) { - object[property] = source[property]; - } - } - }); - return object; -}; - -exports.deepCopy = function(object) { - var result,t; - if($tw.utils.isArray(object)) { - // Copy arrays - result = object.slice(0); - } else if(typeof object === "object") { - result = {}; - for(t in object) { - if(object[t] !== undefined) { - result[t] = $tw.utils.deepCopy(object[t]); - } - } - } else { - result = object; - } - return result; -}; - -exports.extendDeepCopy = function(object,extendedProperties) { - var result = $tw.utils.deepCopy(object),t; - for(t in extendedProperties) { - if(extendedProperties[t] !== undefined) { - result[t] = $tw.utils.deepCopy(extendedProperties[t]); - } - } - return result; -}; - -exports.deepFreeze = function deepFreeze(object) { - var property, key; - if(object) { - Object.freeze(object); - for(key in object) { - property = object[key]; - if($tw.utils.hop(object,key) && (typeof property === "object") && !Object.isFrozen(property)) { - deepFreeze(property); - } - } - } -}; - -exports.slowInSlowOut = function(t) { - return (1 - ((Math.cos(t * Math.PI) + 1) / 2)); -}; - -exports.formatDateString = function(date,template) { - var result = "", - t = template, - matches = [ - [/^0hh12/, function() { - return $tw.utils.pad($tw.utils.getHours12(date)); - }], - [/^wYYYY/, function() { - return $tw.utils.getYearForWeekNo(date); - }], - [/^hh12/, function() { - return $tw.utils.getHours12(date); - }], - [/^DDth/, function() { - return date.getDate() + $tw.utils.getDaySuffix(date); - }], - [/^YYYY/, function() { - return date.getFullYear(); - }], - [/^0hh/, function() { - return $tw.utils.pad(date.getHours()); - }], - [/^0mm/, function() { - return $tw.utils.pad(date.getMinutes()); - }], - [/^0ss/, function() { - return $tw.utils.pad(date.getSeconds()); - }], - [/^0XXX/, function() { - return $tw.utils.pad(date.getMilliseconds(),3); - }], - [/^0DD/, function() { - return $tw.utils.pad(date.getDate()); - }], - [/^0MM/, function() { - return $tw.utils.pad(date.getMonth()+1); - }], - [/^0WW/, function() { - return $tw.utils.pad($tw.utils.getWeek(date)); - }], - [/^ddd/, function() { - return $tw.language.getString("Date/Short/Day/" + date.getDay()); - }], - [/^mmm/, function() { - return $tw.language.getString("Date/Short/Month/" + (date.getMonth() + 1)); - }], - [/^DDD/, function() { - return $tw.language.getString("Date/Long/Day/" + date.getDay()); - }], - [/^MMM/, function() { - return $tw.language.getString("Date/Long/Month/" + (date.getMonth() + 1)); - }], - [/^TZD/, function() { - var tz = date.getTimezoneOffset(), - atz = Math.abs(tz); - return (tz < 0 ? '+' : '-') + $tw.utils.pad(Math.floor(atz / 60)) + ':' + $tw.utils.pad(atz % 60); - }], - [/^wYY/, function() { - return $tw.utils.pad($tw.utils.getYearForWeekNo(date) - 2000); - }], - [/^[ap]m/, function() { - return $tw.utils.getAmPm(date).toLowerCase(); - }], - [/^hh/, function() { - return date.getHours(); - }], - [/^mm/, function() { - return date.getMinutes(); - }], - [/^ss/, function() { - return date.getSeconds(); - }], - [/^XXX/, function() { - return date.getMilliseconds(); - }], - [/^[AP]M/, function() { - return $tw.utils.getAmPm(date).toUpperCase(); - }], - [/^DD/, function() { - return date.getDate(); - }], - [/^MM/, function() { - return date.getMonth() + 1; - }], - [/^WW/, function() { - return $tw.utils.getWeek(date); - }], - [/^YY/, function() { - return $tw.utils.pad(date.getFullYear() - 2000); - }] - ]; - // If the user wants everything in UTC, shift the datestamp - // Optimize for format string that essentially means - // 'return raw UTC (tiddlywiki style) date string.' - if(t.indexOf("[UTC]") == 0 ) { - if(t == "[UTC]YYYY0MM0DD0hh0mm0ssXXX") - return $tw.utils.stringifyDate(new Date()); - var offset = date.getTimezoneOffset() ; // in minutes - date = new Date(date.getTime()+offset*60*1000) ; - t = t.substr(5) ; - } - while(t.length){ - var matchString = ""; - $tw.utils.each(matches, function(m) { - var match = m[0].exec(t); - if(match) { - matchString = m[1].call(); - t = t.substr(match[0].length); - return false; - } - }); - if(matchString) { - result += matchString; - } else { - result += t.charAt(0); - t = t.substr(1); - } - } - result = result.replace(/\\(.)/g,"$1"); - return result; -}; - -exports.getAmPm = function(date) { - return $tw.language.getString("Date/Period/" + (date.getHours() >= 12 ? "pm" : "am")); -}; - -exports.getDaySuffix = function(date) { - return $tw.language.getString("Date/DaySuffix/" + date.getDate()); -}; - -exports.getWeek = function(date) { - var dt = new Date(date.getTime()); - var d = dt.getDay(); - if(d === 0) { - d = 7; // JavaScript Sun=0, ISO Sun=7 - } - dt.setTime(dt.getTime() + (4 - d) * 86400000);// shift day to Thurs of same week to calculate weekNo - var x = new Date(dt.getFullYear(),0,1); - var n = Math.floor((dt.getTime() - x.getTime()) / 86400000); - return Math.floor(n / 7) + 1; -}; - -exports.getYearForWeekNo = function(date) { - var dt = new Date(date.getTime()); - var d = dt.getDay(); - if(d === 0) { - d = 7; // JavaScript Sun=0, ISO Sun=7 - } - dt.setTime(dt.getTime() + (4 - d) * 86400000);// shift day to Thurs of same week - return dt.getFullYear(); -}; - -exports.getHours12 = function(date) { - var h = date.getHours(); - return h > 12 ? h-12 : ( h > 0 ? h : 12 ); -}; - -/* -Convert a date delta in milliseconds into a string representation of "23 seconds ago", "27 minutes ago" etc. - delta: delta in milliseconds -Returns an object with these members: - description: string describing the delta period - updatePeriod: time in millisecond until the string will be inaccurate -*/ -exports.getRelativeDate = function(delta) { - var futurep = false; - if(delta < 0) { - delta = -1 * delta; - futurep = true; - } - var units = [ - {name: "Years", duration: 365 * 24 * 60 * 60 * 1000}, - {name: "Months", duration: (365/12) * 24 * 60 * 60 * 1000}, - {name: "Days", duration: 24 * 60 * 60 * 1000}, - {name: "Hours", duration: 60 * 60 * 1000}, - {name: "Minutes", duration: 60 * 1000}, - {name: "Seconds", duration: 1000} - ]; - for(var t=0; t<units.length; t++) { - var result = Math.floor(delta / units[t].duration); - if(result >= 2) { - return { - delta: delta, - description: $tw.language.getString( - "RelativeDate/" + (futurep ? "Future" : "Past") + "/" + units[t].name, - {variables: - {period: result.toString()} - } - ), - updatePeriod: units[t].duration - }; - } - } - return { - delta: delta, - description: $tw.language.getString( - "RelativeDate/" + (futurep ? "Future" : "Past") + "/Second", - {variables: - {period: "1"} - } - ), - updatePeriod: 1000 - }; -}; - -// Convert & to "&", < to "<", > to ">", " to """ -exports.htmlEncode = function(s) { - if(s) { - return s.toString().replace(/&/mg,"&").replace(/</mg,"<").replace(/>/mg,">").replace(/\"/mg,"""); - } else { - return ""; - } -}; - -// Converts all HTML entities to their character equivalents -exports.entityDecode = function(s) { - var converter = String.fromCodePoint || String.fromCharCode, - e = s.substr(1,s.length-2), // Strip the & and the ; - c; - if(e.charAt(0) === "#") { - if(e.charAt(1) === "x" || e.charAt(1) === "X") { - c = parseInt(e.substr(2),16); - } else { - c = parseInt(e.substr(1),10); - } - if(isNaN(c)) { - return s; - } else { - return converter(c); - } - } else { - c = $tw.config.htmlEntities[e]; - if(c) { - return converter(c); - } else { - return s; // Couldn't convert it as an entity, just return it raw - } - } -}; - -exports.unescapeLineBreaks = function(s) { - return s.replace(/\\n/mg,"\n").replace(/\\b/mg," ").replace(/\\s/mg,"\\").replace(/\r/mg,""); -}; - -/* - * Returns an escape sequence for given character. Uses \x for characters <= - * 0xFF to save space, \u for the rest. - * - * The code needs to be in sync with th code template in the compilation - * function for "action" nodes. - */ -// Copied from peg.js, thanks to David Majda -exports.escape = function(ch) { - var charCode = ch.charCodeAt(0); - if(charCode <= 0xFF) { - return '\\x' + $tw.utils.pad(charCode.toString(16).toUpperCase()); - } else { - return '\\u' + $tw.utils.pad(charCode.toString(16).toUpperCase(),4); - } -}; - -// Turns a string into a legal JavaScript string -// Copied from peg.js, thanks to David Majda -exports.stringify = function(s) { - /* - * ECMA-262, 5th ed., 7.8.4: All characters may appear literally in a string - * literal except for the closing quote character, backslash, carriage return, - * line separator, paragraph separator, and line feed. Any character may - * appear in the form of an escape sequence. - * - * For portability, we also escape all non-ASCII characters. - */ - return (s || "") - .replace(/\\/g, '\\\\') // backslash - .replace(/"/g, '\\"') // double quote character - .replace(/'/g, "\\'") // single quote character - .replace(/\r/g, '\\r') // carriage return - .replace(/\n/g, '\\n') // line feed - .replace(/[\x00-\x1f\x80-\uFFFF]/g, exports.escape); // non-ASCII characters -}; - -// Turns a string into a legal JSON string -// Derived from peg.js, thanks to David Majda -exports.jsonStringify = function(s) { - // See http://www.json.org/ - return (s || "") - .replace(/\\/g, '\\\\') // backslash - .replace(/"/g, '\\"') // double quote character - .replace(/\r/g, '\\r') // carriage return - .replace(/\n/g, '\\n') // line feed - .replace(/\x08/g, '\\b') // backspace - .replace(/\x0c/g, '\\f') // formfeed - .replace(/\t/g, '\\t') // tab - .replace(/[\x00-\x1f\x80-\uFFFF]/g,function(s) { - return '\\u' + $tw.utils.pad(s.charCodeAt(0).toString(16).toUpperCase(),4); - }); // non-ASCII characters -}; - -/* -Escape the RegExp special characters with a preceding backslash -*/ -exports.escapeRegExp = function(s) { - return s.replace(/[\-\/\\\^\$\*\+\?\.\(\)\|\[\]\{\}]/g, '\\$&'); -}; - -// Checks whether a link target is external, i.e. not a tiddler title -exports.isLinkExternal = function(to) { - var externalRegExp = /^(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\s<>{}\[\]`|"\\^]+(?:\/|\b)/i; - return externalRegExp.test(to); -}; - -exports.nextTick = function(fn) { -/*global window: false */ - if(typeof process === "undefined") { - // Apparently it would be faster to use postMessage - http://dbaron.org/log/20100309-faster-timeouts - window.setTimeout(fn,4); - } else { - process.nextTick(fn); - } -}; - -/* -Convert a hyphenated CSS property name into a camel case one -*/ -exports.unHyphenateCss = function(propName) { - return propName.replace(/-([a-z])/gi, function(match0,match1) { - return match1.toUpperCase(); - }); -}; - -/* -Convert a camelcase CSS property name into a dashed one ("backgroundColor" --> "background-color") -*/ -exports.hyphenateCss = function(propName) { - return propName.replace(/([A-Z])/g, function(match0,match1) { - return "-" + match1.toLowerCase(); - }); -}; - -/* -Parse a text reference of one of these forms: -* title -* !!field -* title!!field -* title##index -* etc -Returns an object with the following fields, all optional: -* title: tiddler title -* field: tiddler field name -* index: JSON property index -*/ -exports.parseTextReference = function(textRef) { - // Separate out the title, field name and/or JSON indices - var reTextRef = /(?:(.*?)!!(.+))|(?:(.*?)##(.+))|(.*)/mg, - match = reTextRef.exec(textRef), - result = {}; - if(match && reTextRef.lastIndex === textRef.length) { - // Return the parts - if(match[1]) { - result.title = match[1]; - } - if(match[2]) { - result.field = match[2]; - } - if(match[3]) { - result.title = match[3]; - } - if(match[4]) { - result.index = match[4]; - } - if(match[5]) { - result.title = match[5]; - } - } else { - // If we couldn't parse it - result.title = textRef - } - return result; -}; - -/* -Checks whether a string is a valid fieldname -*/ -exports.isValidFieldName = function(name) { - if(!name || typeof name !== "string") { - return false; - } - name = name.toLowerCase().trim(); - var fieldValidatorRegEx = /^[a-z0-9\-\._]+$/mg; - return fieldValidatorRegEx.test(name); -}; - -/* -Extract the version number from the meta tag or from the boot file -*/ - -// Browser version -exports.extractVersionInfo = function() { - if($tw.packageInfo) { - return $tw.packageInfo.version; - } else { - var metatags = document.getElementsByTagName("meta"); - for(var t=0; t<metatags.length; t++) { - var m = metatags[t]; - if(m.name === "tiddlywiki-version") { - return m.content; - } - } - } - return null; -}; - -/* -Get the animation duration in ms -*/ -exports.getAnimationDuration = function() { - return parseInt($tw.wiki.getTiddlerText("$:/config/AnimationDuration","400"),10) || 0; -}; - -/* -Hash a string to a number -Derived from http://stackoverflow.com/a/15710692 -*/ -exports.hashString = function(str) { - return str.split("").reduce(function(a,b) { - a = ((a << 5) - a) + b.charCodeAt(0); - return a & a; - },0); -}; - -/* -Decode a base64 string -*/ -exports.base64Decode = function(string64) { - return base64utf8.base64.decode.call(base64utf8,string64); -}; - -/* -Encode a string to base64 -*/ -exports.base64Encode = function(string64) { - return base64utf8.base64.encode.call(base64utf8,string64); -}; - -/* -Convert a hashmap into a tiddler dictionary format sequence of name:value pairs -*/ -exports.makeTiddlerDictionary = function(data) { - var output = []; - for(var name in data) { - output.push(name + ": " + data[name]); - } - return output.join("\n"); -}; - -/* -High resolution microsecond timer for profiling -*/ -exports.timer = function(base) { - var m; - if($tw.node) { - var r = process.hrtime(); - m = r[0] * 1e3 + (r[1] / 1e6); - } else if(window.performance) { - m = performance.now(); - } else { - m = Date.now(); - } - if(typeof base !== "undefined") { - m = m - base; - } - return m; -}; - -/* -Convert text and content type to a data URI -*/ -exports.makeDataUri = function(text,type,_canonical_uri) { - type = type || "text/vnd.tiddlywiki"; - var typeInfo = $tw.config.contentTypeInfo[type] || $tw.config.contentTypeInfo["text/plain"], - isBase64 = typeInfo.encoding === "base64", - parts = []; - if(_canonical_uri) { - parts.push(_canonical_uri); - } else { - parts.push("data:"); - parts.push(type); - parts.push(isBase64 ? ";base64" : ""); - parts.push(","); - parts.push(isBase64 ? text : encodeURIComponent(text)); - } - return parts.join(""); -}; - -/* -Useful for finding out the fully escaped CSS selector equivalent to a given tag. For example: - -$tw.utils.tagToCssSelector("$:/tags/Stylesheet") --> tc-tagged-\%24\%3A\%2Ftags\%2FStylesheet -*/ -exports.tagToCssSelector = function(tagName) { - return "tc-tagged-" + encodeURIComponent(tagName).replace(/[!"#$%&'()*+,\-./:;<=>?@[\\\]^`{\|}~,]/mg,function(c) { - return "\\" + c; - }); -}; - -/* -IE does not have sign function -*/ -exports.sign = Math.sign || function(x) { - x = +x; // convert to a number - if (x === 0 || isNaN(x)) { - return x; - } - return x > 0 ? 1 : -1; -}; - -/* -IE does not have an endsWith function -*/ -exports.strEndsWith = function(str,ending,position) { - if(str.endsWith) { - return str.endsWith(ending,position); - } else { - if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > str.length) { - position = str.length; - } - position -= ending.length; - var lastIndex = str.indexOf(ending, position); - return lastIndex !== -1 && lastIndex === position; - } -}; - -/* -Return system information useful for debugging -*/ -exports.getSystemInfo = function(str,ending,position) { - var results = [], - save = function(desc,value) { - results.push(desc + ": " + value); - }; - if($tw.browser) { - save("User Agent",navigator.userAgent); - save("Online Status",window.navigator.onLine); - } - if($tw.node) { - save("Node Version",process.version); - } - return results.join("\n"); -}; - -exports.parseNumber = function(str) { - return parseFloat(str) || 0; -}; - -exports.parseInt = function(str) { - return parseInt(str,10) || 0; -}; - -exports.stringifyNumber = function(num) { - return num + ""; -}; - -})(); --
/*\ -title: $:/core/modules/widgets/action-createtiddler.js -type: application/javascript -module-type: widget - -Action widget to create a new tiddler with a unique name and specified fields. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw:false, require:false, exports:false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var CreateTiddlerWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -CreateTiddlerWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -CreateTiddlerWidget.prototype.render = function(parent,nextSibling) { - this.computeAttributes(); - this.execute(); -}; - -/* -Compute the internal state of the widget -*/ -CreateTiddlerWidget.prototype.execute = function() { - this.actionBaseTitle = this.getAttribute("$basetitle"); - this.hasBase = !!this.actionBaseTitle; - this.actionSaveTitle = this.getAttribute("$savetitle"); - this.actionSaveDraftTitle = this.getAttribute("$savedrafttitle"); - this.actionTimestamp = this.getAttribute("$timestamp","yes") === "yes"; - //Following params are new since 5.1.22 - this.actionTemplate = this.getAttribute("$template"); - this.useTemplate = !!this.actionTemplate; - this.actionOverwrite = this.getAttribute("$overwrite","no"); - -}; - -/* -Refresh the widget by ensuring our attributes are up to date -*/ -CreateTiddlerWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if($tw.utils.count(changedAttributes) > 0) { - this.refreshSelf(); - return true; - } - return this.refreshChildren(changedTiddlers); -}; - -/* -Invoke the action associated with this widget -*/ -CreateTiddlerWidget.prototype.invokeAction = function(triggeringWidget,event) { - var title = this.wiki.getTiddlerText("$:/language/DefaultNewTiddlerTitle"), // Get the initial new-tiddler title - fields = {}, - creationFields, - modificationFields; - $tw.utils.each(this.attributes,function(attribute,name) { - if(name.charAt(0) !== "$") { - fields[name] = attribute; - } - }); - if(this.actionTimestamp) { - creationFields = this.wiki.getCreationFields(); - modificationFields = this.wiki.getModificationFields(); - } - if(this.hasBase && this.actionOverwrite === "no") { - title = this.wiki.generateNewTitle(this.actionBaseTitle); - } else if (this.hasBase && this.actionOverwrite === "yes") { - title = this.actionBaseTitle - } - // NO $basetitle BUT $template parameter is available - // the title MUST be unique, otherwise the template would be overwritten - if (!this.hasBase && this.useTemplate) { - title = this.wiki.generateNewTitle(this.actionTemplate); - } else if (!this.hasBase && !this.useTemplate) { - // If NO $basetitle AND NO $template use initial title - // DON'T overwrite any stuff - title = this.wiki.generateNewTitle(title); - } - var templateTiddler = this.wiki.getTiddler(this.actionTemplate) || {}; - var tiddler = this.wiki.addTiddler(new $tw.Tiddler(templateTiddler.fields,creationFields,fields,modificationFields,{title: title})); - if(this.actionSaveTitle) { - this.wiki.setTextReference(this.actionSaveTitle,title,this.getVariable("currentTiddler")); - } - if(this.actionSaveDraftTitle) { - this.wiki.setTextReference(this.actionSaveDraftTitle,this.wiki.generateDraftTitle(title),this.getVariable("currentTiddler")); - } - return true; // Action was invoked -}; - -exports["action-createtiddler"] = CreateTiddlerWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/action-deletefield.js -type: application/javascript -module-type: widget - -Action widget to delete fields of a tiddler. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var DeleteFieldWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -DeleteFieldWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -DeleteFieldWidget.prototype.render = function(parent,nextSibling) { - this.computeAttributes(); - this.execute(); -}; - -/* -Compute the internal state of the widget -*/ -DeleteFieldWidget.prototype.execute = function() { - this.actionTiddler = this.getAttribute("$tiddler",this.getVariable("currentTiddler")); - this.actionField = this.getAttribute("$field"); -}; - -/* -Refresh the widget by ensuring our attributes are up to date -*/ -DeleteFieldWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes["$tiddler"]) { - this.refreshSelf(); - return true; - } - return this.refreshChildren(changedTiddlers); -}; - -/* -Invoke the action associated with this widget -*/ -DeleteFieldWidget.prototype.invokeAction = function(triggeringWidget,event) { - var self = this, - tiddler = this.wiki.getTiddler(self.actionTiddler), - removeFields = {}, - hasChanged = false; - if(this.actionField && tiddler) { - removeFields[this.actionField] = undefined; - if(this.actionField in tiddler.fields) { - hasChanged = true; - } - } - if(tiddler) { - $tw.utils.each(this.attributes,function(attribute,name) { - if(name.charAt(0) !== "$" && name !== "title") { - removeFields[name] = undefined; - hasChanged = true; - } - }); - if(hasChanged) { - this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),tiddler,removeFields,this.wiki.getModificationFields())); - } - } - return true; // Action was invoked -}; - -exports["action-deletefield"] = DeleteFieldWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/action-deletetiddler.js -type: application/javascript -module-type: widget - -Action widget to delete a tiddler. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var DeleteTiddlerWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -DeleteTiddlerWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -DeleteTiddlerWidget.prototype.render = function(parent,nextSibling) { - this.computeAttributes(); - this.execute(); -}; - -/* -Compute the internal state of the widget -*/ -DeleteTiddlerWidget.prototype.execute = function() { - this.actionFilter = this.getAttribute("$filter"); - this.actionTiddler = this.getAttribute("$tiddler"); -}; - -/* -Refresh the widget by ensuring our attributes are up to date -*/ -DeleteTiddlerWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes["$filter"] || changedAttributes["$tiddler"]) { - this.refreshSelf(); - return true; - } - return this.refreshChildren(changedTiddlers); -}; - -/* -Invoke the action associated with this widget -*/ -DeleteTiddlerWidget.prototype.invokeAction = function(triggeringWidget,event) { - var tiddlers = []; - if(this.actionFilter) { - tiddlers = this.wiki.filterTiddlers(this.actionFilter,this); - } - if(this.actionTiddler) { - tiddlers.push(this.actionTiddler); - } - for(var t=0; t<tiddlers.length; t++) { - this.wiki.deleteTiddler(tiddlers[t]); - } - return true; // Action was invoked -}; - -exports["action-deletetiddler"] = DeleteTiddlerWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/action-listops.js -type: application/javascript -module-type: widget - -Action widget to apply list operations to any tiddler field (defaults to the 'list' field of the current tiddler) - -\*/ -(function() { - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; -var Widget = require("$:/core/modules/widgets/widget.js").widget; -var ActionListopsWidget = function(parseTreeNode, options) { - this.initialise(parseTreeNode, options); -}; -/** - * Inherit from the base widget class - */ -ActionListopsWidget.prototype = new Widget(); -/** - * Render this widget into the DOM - */ -ActionListopsWidget.prototype.render = function(parent, nextSibling) { - this.computeAttributes(); - this.execute(); -}; -/** - * Compute the internal state of the widget - */ -ActionListopsWidget.prototype.execute = function() { - // Get our parameters - this.target = this.getAttribute("$tiddler", this.getVariable( - "currentTiddler")); - this.filter = this.getAttribute("$filter"); - this.subfilter = this.getAttribute("$subfilter"); - this.listField = this.getAttribute("$field", "list"); - this.listIndex = this.getAttribute("$index"); - this.filtertags = this.getAttribute("$tags"); -}; -/** - * Refresh the widget by ensuring our attributes are up to date - */ -ActionListopsWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.$tiddler || changedAttributes.$filter || - changedAttributes.$subfilter || changedAttributes.$field || - changedAttributes.$index || changedAttributes.$tags) { - this.refreshSelf(); - return true; - } - return this.refreshChildren(changedTiddlers); -}; -/** - * Invoke the action associated with this widget - */ -ActionListopsWidget.prototype.invokeAction = function(triggeringWidget, - event) { - //Apply the specified filters to the lists - var field = this.listField, - index, - type = "!!", - list = this.listField; - if(this.listIndex) { - field = undefined; - index = this.listIndex; - type = "##"; - list = this.listIndex; - } - if(this.filter) { - this.wiki.setText(this.target, field, index, $tw.utils.stringifyList( - this.wiki - .filterTiddlers(this.filter, this))); - } - if(this.subfilter) { - var subfilter = "[list[" + this.target + type + list + "]] " + this.subfilter; - this.wiki.setText(this.target, field, index, $tw.utils.stringifyList( - this.wiki - .filterTiddlers(subfilter, this))); - } - if(this.filtertags) { - var tiddler = this.wiki.getTiddler(this.target), - oldtags = tiddler ? (tiddler.fields.tags || []).slice(0) : [], - tagfilter = "[list[" + this.target + "!!tags]] " + this.filtertags, - newtags = this.wiki.filterTiddlers(tagfilter,this); - if($tw.utils.stringifyList(oldtags.sort()) !== $tw.utils.stringifyList(newtags.sort())) { - this.wiki.setText(this.target,"tags",undefined,$tw.utils.stringifyList(newtags)); - } - } - return true; // Action was invoked -}; - -exports["action-listops"] = ActionListopsWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/action-navigate.js -type: application/javascript -module-type: widget - -Action widget to navigate to a tiddler - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var NavigateWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -NavigateWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -NavigateWidget.prototype.render = function(parent,nextSibling) { - this.computeAttributes(); - this.execute(); -}; - -/* -Compute the internal state of the widget -*/ -NavigateWidget.prototype.execute = function() { - this.actionTo = this.getAttribute("$to"); - this.actionScroll = this.getAttribute("$scroll"); -}; - -/* -Refresh the widget by ensuring our attributes are up to date -*/ -NavigateWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes["$to"] || changedAttributes["$scroll"]) { - this.refreshSelf(); - return true; - } - return this.refreshChildren(changedTiddlers); -}; - -/* -Invoke the action associated with this widget -*/ -NavigateWidget.prototype.invokeAction = function(triggeringWidget,event) { - event = event || {}; - var bounds = triggeringWidget && triggeringWidget.getBoundingClientRect && triggeringWidget.getBoundingClientRect(), - suppressNavigation = event.metaKey || event.ctrlKey || (event.button === 1); - if(this.actionScroll === "yes") { - suppressNavigation = false; - } else if(this.actionScroll === "no") { - suppressNavigation = true; - } - this.dispatchEvent({ - type: "tm-navigate", - navigateTo: this.actionTo === undefined ? this.getVariable("currentTiddler") : this.actionTo, - navigateFromTitle: this.getVariable("storyTiddler"), - navigateFromNode: triggeringWidget, - navigateFromClientRect: bounds && { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height - }, - navigateSuppressNavigation: suppressNavigation - }); - return true; // Action was invoked -}; - -exports["action-navigate"] = NavigateWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/action-popup.js -type: application/javascript -module-type: widget - -Action widget to trigger a popup. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var ActionPopupWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -ActionPopupWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -ActionPopupWidget.prototype.render = function(parent,nextSibling) { - this.computeAttributes(); - this.execute(); -}; - -/* -Compute the internal state of the widget -*/ -ActionPopupWidget.prototype.execute = function() { - this.actionState = this.getAttribute("$state"); - this.actionCoords = this.getAttribute("$coords"); -}; - -/* -Refresh the widget by ensuring our attributes are up to date -*/ -ActionPopupWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes["$state"] || changedAttributes["$coords"]) { - this.refreshSelf(); - return true; - } - return this.refreshChildren(changedTiddlers); -}; - -/* -Invoke the action associated with this widget -*/ -ActionPopupWidget.prototype.invokeAction = function(triggeringWidget,event) { - // Trigger the popup - var popupLocationRegExp = /^\((-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+)\)$/, - match = popupLocationRegExp.exec(this.actionCoords); - if(match) { - $tw.popup.triggerPopup({ - domNode: null, - domNodeRect: { - left: parseFloat(match[1]), - top: parseFloat(match[2]), - width: parseFloat(match[3]), - height: parseFloat(match[4]) - }, - title: this.actionState, - wiki: this.wiki - }); - } - return true; // Action was invoked -}; - -exports["action-popup"] = ActionPopupWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/action-sendmessage.js -type: application/javascript -module-type: widget - -Action widget to send a message - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var SendMessageWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -SendMessageWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -SendMessageWidget.prototype.render = function(parent,nextSibling) { - this.computeAttributes(); - this.execute(); -}; - -/* -Compute the internal state of the widget -*/ -SendMessageWidget.prototype.execute = function() { - this.actionMessage = this.getAttribute("$message"); - this.actionParam = this.getAttribute("$param"); - this.actionName = this.getAttribute("$name"); - this.actionValue = this.getAttribute("$value",""); -}; - -/* -Refresh the widget by ensuring our attributes are up to date -*/ -SendMessageWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(Object.keys(changedAttributes).length) { - this.refreshSelf(); - return true; - } - return this.refreshChildren(changedTiddlers); -}; - -/* -Invoke the action associated with this widget -*/ -SendMessageWidget.prototype.invokeAction = function(triggeringWidget,event) { - // Get the string parameter - var param = this.actionParam; - // Assemble the attributes as a hashmap - var paramObject = Object.create(null); - var count = 0; - $tw.utils.each(this.attributes,function(attribute,name) { - if(name.charAt(0) !== "$") { - paramObject[name] = attribute; - count++; - } - }); - // Add name/value pair if present - if(this.actionName) { - paramObject[this.actionName] = this.actionValue; - } - // Dispatch the message - this.dispatchEvent({ - type: this.actionMessage, - param: param, - paramObject: paramObject, - tiddlerTitle: this.getVariable("currentTiddler"), - navigateFromTitle: this.getVariable("storyTiddler"), - event: event - }); - return true; // Action was invoked -}; - -exports["action-sendmessage"] = SendMessageWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/action-setfield.js -type: application/javascript -module-type: widget - -Action widget to set a single field or index on a tiddler. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var SetFieldWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -SetFieldWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -SetFieldWidget.prototype.render = function(parent,nextSibling) { - this.computeAttributes(); - this.execute(); -}; - -/* -Compute the internal state of the widget -*/ -SetFieldWidget.prototype.execute = function() { - this.actionTiddler = this.getAttribute("$tiddler",this.getVariable("currentTiddler")); - this.actionField = this.getAttribute("$field"); - this.actionIndex = this.getAttribute("$index"); - this.actionValue = this.getAttribute("$value"); - this.actionTimestamp = this.getAttribute("$timestamp","yes") === "yes"; -}; - -/* -Refresh the widget by ensuring our attributes are up to date -*/ -SetFieldWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes["$tiddler"] || changedAttributes["$field"] || changedAttributes["$index"] || changedAttributes["$value"]) { - this.refreshSelf(); - return true; - } - return this.refreshChildren(changedTiddlers); -}; - -/* -Invoke the action associated with this widget -*/ -SetFieldWidget.prototype.invokeAction = function(triggeringWidget,event) { - var self = this, - options = {}; - options.suppressTimestamp = !this.actionTimestamp; - if((typeof this.actionField == "string") || (typeof this.actionIndex == "string") || (typeof this.actionValue == "string")) { - this.wiki.setText(this.actionTiddler,this.actionField,this.actionIndex,this.actionValue,options); - } - $tw.utils.each(this.attributes,function(attribute,name) { - if(name.charAt(0) !== "$") { - self.wiki.setText(self.actionTiddler,name,undefined,attribute,options); - } - }); - return true; // Action was invoked -}; - -exports["action-setfield"] = SetFieldWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/browse.js -type: application/javascript -module-type: widget - -Browse widget for browsing for files to import - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var BrowseWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -BrowseWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -BrowseWidget.prototype.render = function(parent,nextSibling) { - var self = this; - // Remember parent - this.parentDomNode = parent; - // Compute attributes and execute state - this.computeAttributes(); - this.execute(); - // Create element - var domNode = this.document.createElement("input"); - domNode.setAttribute("type","file"); - if(this.browseMultiple) { - domNode.setAttribute("multiple","multiple"); - } - if(this.tooltip) { - domNode.setAttribute("title",this.tooltip); - } - // Nw.js supports "nwsaveas" to force a "save as" dialogue that allows a new or existing file to be selected - if(this.nwsaveas) { - domNode.setAttribute("nwsaveas",this.nwsaveas); - } - // Nw.js supports "webkitdirectory" and "nwdirectory" to allow a directory to be selected - if(this.webkitdirectory) { - domNode.setAttribute("webkitdirectory",this.webkitdirectory); - } - if(this.nwdirectory) { - domNode.setAttribute("nwdirectory",this.nwdirectory); - } - // Add a click event handler - domNode.addEventListener("change",function (event) { - if(self.message) { - self.dispatchEvent({type: self.message, param: self.param, files: event.target.files}); - } else { - self.wiki.readFiles(event.target.files,{ - callback: function(tiddlerFieldsArray) { - self.dispatchEvent({type: "tm-import-tiddlers", param: JSON.stringify(tiddlerFieldsArray)}); - }, - deserializer: self.deserializer - }); - } - return false; - },false); - // Insert element - parent.insertBefore(domNode,nextSibling); - this.renderChildren(domNode,null); - this.domNodes.push(domNode); -}; - -/* -Compute the internal state of the widget -*/ -BrowseWidget.prototype.execute = function() { - this.browseMultiple = this.getAttribute("multiple"); - this.deserializer = this.getAttribute("deserializer"); - this.message = this.getAttribute("message"); - this.param = this.getAttribute("param"); - this.tooltip = this.getAttribute("tooltip"); - this.nwsaveas = this.getAttribute("nwsaveas"); - this.webkitdirectory = this.getAttribute("webkitdirectory"); - this.nwdirectory = this.getAttribute("nwdirectory"); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -BrowseWidget.prototype.refresh = function(changedTiddlers) { - return false; -}; - -exports.browse = BrowseWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/button.js -type: application/javascript -module-type: widget - -Button widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var ButtonWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -ButtonWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -ButtonWidget.prototype.render = function(parent,nextSibling) { - var self = this; - // Remember parent - this.parentDomNode = parent; - // Compute attributes and execute state - this.computeAttributes(); - this.execute(); - // Create element - var tag = "button"; - if(this.buttonTag && $tw.config.htmlUnsafeElements.indexOf(this.buttonTag) === -1) { - tag = this.buttonTag; - } - var domNode = this.document.createElement(tag); - // Assign classes - var classes = this["class"].split(" ") || [], - isPoppedUp = (this.popup || this.popupTitle) && this.isPoppedUp(); - if(this.selectedClass) { - if((this.set || this.setTitle) && this.setTo && this.isSelected()) { - $tw.utils.pushTop(classes,this.selectedClass.split(" ")); - } - if(isPoppedUp) { - $tw.utils.pushTop(classes,this.selectedClass.split(" ")); - } - } - if(isPoppedUp) { - $tw.utils.pushTop(classes,"tc-popup-handle"); - } - domNode.className = classes.join(" "); - // Assign other attributes - if(this.style) { - domNode.setAttribute("style",this.style); - } - if(this.tooltip) { - domNode.setAttribute("title",this.tooltip); - } - if(this["aria-label"]) { - domNode.setAttribute("aria-label",this["aria-label"]); - } - // Set the tabindex - if(this.tabIndex) { - domNode.setAttribute("tabindex",this.tabIndex); - } - // Add a click event handler - domNode.addEventListener("click",function (event) { - var handled = false; - if(self.invokeActions(self,event)) { - handled = true; - } - if(self.to) { - self.navigateTo(event); - handled = true; - } - if(self.message) { - self.dispatchMessage(event); - handled = true; - } - if(self.popup || self.popupTitle) { - self.triggerPopup(event); - handled = true; - } - if(self.set || self.setTitle) { - self.setTiddler(); - handled = true; - } - if(self.actions) { - self.invokeActionString(self.actions,self,event); - } - if(handled) { - event.preventDefault(); - event.stopPropagation(); - } - return handled; - },false); - // Make it draggable if required - if(this.dragTiddler || this.dragFilter) { - $tw.utils.makeDraggable({ - domNode: domNode, - dragTiddlerFn: function() {return self.dragTiddler;}, - dragFilterFn: function() {return self.dragFilter;}, - widget: this - }); - } - // Insert element - parent.insertBefore(domNode,nextSibling); - this.renderChildren(domNode,null); - this.domNodes.push(domNode); -}; - -/* -We don't allow actions to propagate because we trigger actions ourselves -*/ -ButtonWidget.prototype.allowActionPropagation = function() { - return false; -}; - -ButtonWidget.prototype.getBoundingClientRect = function() { - return this.domNodes[0].getBoundingClientRect(); -}; - -ButtonWidget.prototype.isSelected = function() { - return this.setTitle ? (this.setField ? this.wiki.getTiddler(this.setTitle).getFieldString(this.setField) === this.setTo : - (this.setIndex ? this.wiki.extractTiddlerDataItem(this.setTitle,this.setIndex) === this.setTo : - this.wiki.getTiddlerText(this.setTitle))) || this.defaultSetValue || this.getVariable("currentTiddler") : - this.wiki.getTextReference(this.set,this.defaultSetValue,this.getVariable("currentTiddler")) === this.setTo; -}; - -ButtonWidget.prototype.isPoppedUp = function() { - var tiddler = this.popupTitle ? this.wiki.getTiddler(this.popupTitle) : this.wiki.getTiddler(this.popup); - var result = tiddler && tiddler.fields.text ? $tw.popup.readPopupState(tiddler.fields.text) : false; - return result; -}; - -ButtonWidget.prototype.navigateTo = function(event) { - var bounds = this.getBoundingClientRect(); - this.dispatchEvent({ - type: "tm-navigate", - navigateTo: this.to, - navigateFromTitle: this.getVariable("storyTiddler"), - navigateFromNode: this, - navigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height - }, - navigateSuppressNavigation: event.metaKey || event.ctrlKey || (event.button === 1), - event: event - }); -}; - -ButtonWidget.prototype.dispatchMessage = function(event) { - this.dispatchEvent({type: this.message, param: this.param, tiddlerTitle: this.getVariable("currentTiddler"), event: event}); -}; - -ButtonWidget.prototype.triggerPopup = function(event) { - if(this.popupTitle) { - $tw.popup.triggerPopup({ - domNode: this.domNodes[0], - title: this.popupTitle, - wiki: this.wiki, - noStateReference: true - }); - } else { - $tw.popup.triggerPopup({ - domNode: this.domNodes[0], - title: this.popup, - wiki: this.wiki - }); - } -}; - -ButtonWidget.prototype.setTiddler = function() { - if(this.setTitle) { - this.setField ? this.wiki.setText(this.setTitle,this.setField,undefined,this.setTo) : - (this.setIndex ? this.wiki.setText(this.setTitle,undefined,this.setIndex,this.setTo) : - this.wiki.setText(this.setTitle,"text",undefined,this.setTo)); - } else { - this.wiki.setTextReference(this.set,this.setTo,this.getVariable("currentTiddler")); - } -}; - -/* -Compute the internal state of the widget -*/ -ButtonWidget.prototype.execute = function() { - // Get attributes - this.actions = this.getAttribute("actions"); - this.to = this.getAttribute("to"); - this.message = this.getAttribute("message"); - this.param = this.getAttribute("param"); - this.set = this.getAttribute("set"); - this.setTo = this.getAttribute("setTo"); - this.popup = this.getAttribute("popup"); - this.hover = this.getAttribute("hover"); - this["class"] = this.getAttribute("class",""); - this["aria-label"] = this.getAttribute("aria-label"); - this.tooltip = this.getAttribute("tooltip"); - this.style = this.getAttribute("style"); - this.selectedClass = this.getAttribute("selectedClass"); - this.defaultSetValue = this.getAttribute("default",""); - this.buttonTag = this.getAttribute("tag"); - this.dragTiddler = this.getAttribute("dragTiddler"); - this.dragFilter = this.getAttribute("dragFilter"); - this.setTitle = this.getAttribute("setTitle"); - this.setField = this.getAttribute("setField"); - this.setIndex = this.getAttribute("setIndex"); - this.popupTitle = this.getAttribute("popupTitle"); - this.tabIndex = this.getAttribute("tabindex"); - // Make child widgets - this.makeChildWidgets(); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -ButtonWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.actions || changedAttributes.to || changedAttributes.message || changedAttributes.param || changedAttributes.set || changedAttributes.setTo || changedAttributes.popup || changedAttributes.hover || changedAttributes["class"] || changedAttributes.selectedClass || changedAttributes.style || changedAttributes.dragFilter || changedAttributes.dragTiddler || (this.set && changedTiddlers[this.set]) || (this.popup && changedTiddlers[this.popup]) || (this.popupTitle && changedTiddlers[this.popupTitle]) || changedAttributes.setTitle || changedAttributes.setField || changedAttributes.setIndex || changedAttributes.popupTitle) { - this.refreshSelf(); - return true; - } - return this.refreshChildren(changedTiddlers); -}; - -exports.button = ButtonWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/checkbox.js -type: application/javascript -module-type: widget - -Checkbox widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var CheckboxWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -CheckboxWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -CheckboxWidget.prototype.render = function(parent,nextSibling) { - // Save the parent dom node - this.parentDomNode = parent; - // Compute our attributes - this.computeAttributes(); - // Execute our logic - this.execute(); - // Create our elements - this.labelDomNode = this.document.createElement("label"); - this.labelDomNode.setAttribute("class",this.checkboxClass); - this.inputDomNode = this.document.createElement("input"); - this.inputDomNode.setAttribute("type","checkbox"); - if(this.getValue()) { - this.inputDomNode.setAttribute("checked","true"); - } - this.labelDomNode.appendChild(this.inputDomNode); - this.spanDomNode = this.document.createElement("span"); - this.labelDomNode.appendChild(this.spanDomNode); - // Add a click event handler - $tw.utils.addEventListeners(this.inputDomNode,[ - {name: "change", handlerObject: this, handlerMethod: "handleChangeEvent"} - ]); - // Insert the label into the DOM and render any children - parent.insertBefore(this.labelDomNode,nextSibling); - this.renderChildren(this.spanDomNode,null); - this.domNodes.push(this.labelDomNode); -}; - -CheckboxWidget.prototype.getValue = function() { - var tiddler = this.wiki.getTiddler(this.checkboxTitle); - if(tiddler) { - if(this.checkboxTag) { - if(this.checkboxInvertTag) { - return !tiddler.hasTag(this.checkboxTag); - } else { - return tiddler.hasTag(this.checkboxTag); - } - } - if(this.checkboxField) { - var value; - if($tw.utils.hop(tiddler.fields,this.checkboxField)) { - value = tiddler.fields[this.checkboxField] || ""; - } else { - value = this.checkboxDefault || ""; - } - if(value === this.checkboxChecked) { - return true; - } - if(value === this.checkboxUnchecked) { - return false; - } - } - if(this.checkboxIndex) { - var value = this.wiki.extractTiddlerDataItem(tiddler,this.checkboxIndex,this.checkboxDefault || ""); - if(value === this.checkboxChecked) { - return true; - } - if(value === this.checkboxUnchecked) { - return false; - } - } - } else { - if(this.checkboxTag) { - return false; - } - if(this.checkboxField) { - if(this.checkboxDefault === this.checkboxChecked) { - return true; - } - if(this.checkboxDefault === this.checkboxUnchecked) { - return false; - } - } - } - return false; -}; - -CheckboxWidget.prototype.handleChangeEvent = function(event) { - var checked = this.inputDomNode.checked, - tiddler = this.wiki.getTiddler(this.checkboxTitle), - fallbackFields = {text: ""}, - newFields = {title: this.checkboxTitle}, - hasChanged = false, - tagCheck = false, - hasTag = tiddler && tiddler.hasTag(this.checkboxTag), - value = checked ? this.checkboxChecked : this.checkboxUnchecked; - if(this.checkboxTag && this.checkboxInvertTag === "yes") { - tagCheck = hasTag === checked; - } else { - tagCheck = hasTag !== checked; - } - // Set the tag if specified - if(this.checkboxTag && (!tiddler || tagCheck)) { - newFields.tags = tiddler ? (tiddler.fields.tags || []).slice(0) : []; - var pos = newFields.tags.indexOf(this.checkboxTag); - if(pos !== -1) { - newFields.tags.splice(pos,1); - } - if(this.checkboxInvertTag === "yes" && !checked) { - newFields.tags.push(this.checkboxTag); - } else if(this.checkboxInvertTag !== "yes" && checked) { - newFields.tags.push(this.checkboxTag); - } - hasChanged = true; - } - // Set the field if specified - if(this.checkboxField) { - if(!tiddler || tiddler.fields[this.checkboxField] !== value) { - newFields[this.checkboxField] = value; - hasChanged = true; - } - } - // Set the index if specified - if(this.checkboxIndex) { - var indexValue = this.wiki.extractTiddlerDataItem(this.checkboxTitle,this.checkboxIndex); - if(!tiddler || indexValue !== value) { - hasChanged = true; - } - } - if(hasChanged) { - if(this.checkboxIndex) { - this.wiki.setText(this.checkboxTitle,"",this.checkboxIndex,value); - } else { - this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),fallbackFields,tiddler,newFields,this.wiki.getModificationFields())); - } - } - // Trigger actions - if(this.checkboxActions) { - this.invokeActionString(this.checkboxActions,this,event); - } - if(this.checkboxCheckActions && checked) { - this.invokeActionString(this.checkboxCheckActions,this,event); - } - if(this.checkboxUncheckActions && !checked) { - this.invokeActionString(this.checkboxUncheckActions,this,event); - } -}; - -/* -Compute the internal state of the widget -*/ -CheckboxWidget.prototype.execute = function() { - // Get the parameters from the attributes - this.checkboxActions = this.getAttribute("actions"); - this.checkboxCheckActions = this.getAttribute("checkactions"); - this.checkboxUncheckActions = this.getAttribute("uncheckactions"); - this.checkboxTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler")); - this.checkboxTag = this.getAttribute("tag"); - this.checkboxField = this.getAttribute("field"); - this.checkboxIndex = this.getAttribute("index"); - this.checkboxChecked = this.getAttribute("checked"); - this.checkboxUnchecked = this.getAttribute("unchecked"); - this.checkboxDefault = this.getAttribute("default"); - this.checkboxClass = this.getAttribute("class",""); - this.checkboxInvertTag = this.getAttribute("invertTag",""); - // Make the child widgets - this.makeChildWidgets(); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -CheckboxWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.tiddler || changedAttributes.tag || changedAttributes.invertTag || changedAttributes.field || changedAttributes.index || changedAttributes.checked || changedAttributes.unchecked || changedAttributes["default"] || changedAttributes["class"]) { - this.refreshSelf(); - return true; - } else { - var refreshed = false; - if(changedTiddlers[this.checkboxTitle]) { - this.inputDomNode.checked = this.getValue(); - refreshed = true; - } - return this.refreshChildren(changedTiddlers) || refreshed; - } -}; - -exports.checkbox = CheckboxWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/codeblock.js -type: application/javascript -module-type: widget - -Code block node widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var CodeBlockWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -CodeBlockWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -CodeBlockWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - var codeNode = this.document.createElement("code"), - domNode = this.document.createElement("pre"); - codeNode.appendChild(this.document.createTextNode(this.getAttribute("code"))); - domNode.appendChild(codeNode); - parent.insertBefore(domNode,nextSibling); - this.domNodes.push(domNode); - if(this.postRender) { - this.postRender(); - } -}; - -/* -Compute the internal state of the widget -*/ -CodeBlockWidget.prototype.execute = function() { - this.language = this.getAttribute("language"); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -CodeBlockWidget.prototype.refresh = function(changedTiddlers) { - return false; -}; - -exports.codeblock = CodeBlockWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/count.js -type: application/javascript -module-type: widget - -Count widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var CountWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -CountWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -CountWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - var textNode = this.document.createTextNode(this.currentCount); - parent.insertBefore(textNode,nextSibling); - this.domNodes.push(textNode); -}; - -/* -Compute the internal state of the widget -*/ -CountWidget.prototype.execute = function() { - // Get parameters from our attributes - this.filter = this.getAttribute("filter"); - // Execute the filter - if(this.filter) { - this.currentCount = this.wiki.filterTiddlers(this.filter,this).length; - } else { - this.currentCount = "0"; - } -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -CountWidget.prototype.refresh = function(changedTiddlers) { - // Re-execute the filter to get the count - this.computeAttributes(); - var oldCount = this.currentCount; - this.execute(); - if(this.currentCount !== oldCount) { - // Regenerate and rerender the widget and replace the existing DOM node - this.refreshSelf(); - return true; - } else { - return false; - } - -}; - -exports.count = CountWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/diff-text.js -type: application/javascript -module-type: widget - -Widget to display a diff between two texts - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget, - dmp = require("$:/core/modules/utils/diff-match-patch/diff_match_patch.js"); - -var DiffTextWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -DiffTextWidget.prototype = new Widget(); - -DiffTextWidget.prototype.invisibleCharacters = { - "\n": "↩︎\n", - "\r": "⇠", - "\t": "⇥\t" -}; - -/* -Render this widget into the DOM -*/ -DiffTextWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - // Create the diff - var dmpObject = new dmp.diff_match_patch(), - diffs = dmpObject.diff_main(this.getAttribute("source"),this.getAttribute("dest")); - // Apply required cleanup - switch(this.getAttribute("cleanup","semantic")) { - case "none": - // No cleanup - break; - case "efficiency": - dmpObject.diff_cleanupEfficiency(diffs); - break; - default: // case "semantic" - dmpObject.diff_cleanupSemantic(diffs); - break; - } - // Create the elements - var domContainer = this.document.createElement("div"), - domDiff = this.createDiffDom(diffs); - parent.insertBefore(domContainer,nextSibling); - // Set variables - this.setVariable("diff-count",diffs.reduce(function(acc,diff) { - if(diff[0] !== dmp.DIFF_EQUAL) { - acc++; - } - return acc; - },0).toString()); - // Render child widgets - this.renderChildren(domContainer,null); - // Render the diff - domContainer.appendChild(domDiff); - // Save our container - this.domNodes.push(domContainer); -}; - -/* -Create DOM elements representing a list of diffs -*/ -DiffTextWidget.prototype.createDiffDom = function(diffs) { - var self = this; - // Create the element and assign the attributes - var domPre = this.document.createElement("pre"), - domCode = this.document.createElement("code"); - $tw.utils.each(diffs,function(diff) { - var tag = diff[0] === dmp.DIFF_INSERT ? "ins" : (diff[0] === dmp.DIFF_DELETE ? "del" : "span"), - className = diff[0] === dmp.DIFF_INSERT ? "tc-diff-insert" : (diff[0] === dmp.DIFF_DELETE ? "tc-diff-delete" : "tc-diff-equal"), - dom = self.document.createElement(tag), - text = diff[1], - currPos = 0, - re = /([\x00-\x1F])/mg, - match = re.exec(text), - span, - printable; - dom.className = className; - while(match) { - if(currPos < match.index) { - dom.appendChild(self.document.createTextNode(text.slice(currPos,match.index))); - } - span = self.document.createElement("span"); - span.className = "tc-diff-invisible"; - printable = self.invisibleCharacters[match[0]] || ("[0x" + match[0].charCodeAt(0).toString(16) + "]"); - span.appendChild(self.document.createTextNode(printable)); - dom.appendChild(span); - currPos = match.index + match[0].length; - match = re.exec(text); - } - if(currPos < text.length) { - dom.appendChild(self.document.createTextNode(text.slice(currPos))); - } - domCode.appendChild(dom); - }); - domPre.appendChild(domCode); - return domPre; -}; - -/* -Compute the internal state of the widget -*/ -DiffTextWidget.prototype.execute = function() { - // Make child widgets - var parseTreeNodes; - if(this.parseTreeNode && this.parseTreeNode.children && this.parseTreeNode.children.length > 0) { - parseTreeNodes = this.parseTreeNode.children; - } else { - parseTreeNodes = [{ - type: "transclude", - attributes: { - tiddler: {type: "string", value: "$:/language/Diffs/CountMessage"} - } - }]; - } - this.makeChildWidgets(parseTreeNodes); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -DiffTextWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.source || changedAttributes.dest || changedAttributes.cleanup) { - this.refreshSelf(); - return true; - } else { - return this.refreshChildren(changedTiddlers); - } -}; - -exports["diff-text"] = DiffTextWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/draggable.js -type: application/javascript -module-type: widget - -Draggable widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var DraggableWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -DraggableWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -DraggableWidget.prototype.render = function(parent,nextSibling) { - var self = this; - // Save the parent dom node - this.parentDomNode = parent; - // Compute our attributes - this.computeAttributes(); - // Execute our logic - this.execute(); - // Sanitise the specified tag - var tag = this.draggableTag; - if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) { - tag = "div"; - } - // Create our element - var domNode = this.document.createElement(tag); - // Assign classes - var classes = ["tc-draggable"]; - if(this.draggableClasses) { - classes.push(this.draggableClasses); - } - domNode.setAttribute("class",classes.join(" ")); - // Add event handlers - $tw.utils.makeDraggable({ - domNode: domNode, - dragTiddlerFn: function() {return self.getAttribute("tiddler");}, - dragFilterFn: function() {return self.getAttribute("filter");}, - startActions: self.startActions, - endActions: self.endActions, - widget: this - }); - // Insert the link into the DOM and render any children - parent.insertBefore(domNode,nextSibling); - this.renderChildren(domNode,null); - this.domNodes.push(domNode); -}; - -/* -Compute the internal state of the widget -*/ -DraggableWidget.prototype.execute = function() { - // Pick up our attributes - this.draggableTag = this.getAttribute("tag","div"); - this.draggableClasses = this.getAttribute("class"); - this.startActions = this.getAttribute("startactions"); - this.endActions = this.getAttribute("endactions"); - // Make the child widgets - this.makeChildWidgets(); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -DraggableWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.tag || changedAttributes["class"]) { - this.refreshSelf(); - return true; - } - return this.refreshChildren(changedTiddlers); -}; - -exports.draggable = DraggableWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/droppable.js -type: application/javascript -module-type: widget - -Droppable widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var DroppableWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -DroppableWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -DroppableWidget.prototype.render = function(parent,nextSibling) { - var self = this; - // Remember parent - this.parentDomNode = parent; - // Compute attributes and execute state - this.computeAttributes(); - this.execute(); - var tag = this.parseTreeNode.isBlock ? "div" : "span"; - if(this.droppableTag && $tw.config.htmlUnsafeElements.indexOf(this.droppableTag) === -1) { - tag = this.droppableTag; - } - // Create element and assign classes - var domNode = this.document.createElement(tag), - classes = (this["class"] || "").split(" "); - classes.push("tc-droppable"); - domNode.className = classes.join(" "); - // Add event handlers - if(this.droppableEnable) { - $tw.utils.addEventListeners(domNode,[ - {name: "dragenter", handlerObject: this, handlerMethod: "handleDragEnterEvent"}, - {name: "dragover", handlerObject: this, handlerMethod: "handleDragOverEvent"}, - {name: "dragleave", handlerObject: this, handlerMethod: "handleDragLeaveEvent"}, - {name: "drop", handlerObject: this, handlerMethod: "handleDropEvent"} - ]); - } - // Insert element - parent.insertBefore(domNode,nextSibling); - this.renderChildren(domNode,null); - this.domNodes.push(domNode); - // Stack of outstanding enter/leave events - this.currentlyEntered = []; -}; - -DroppableWidget.prototype.enterDrag = function(event) { - if(this.currentlyEntered.indexOf(event.target) === -1) { - this.currentlyEntered.push(event.target); - } - // If we're entering for the first time we need to apply highlighting - $tw.utils.addClass(this.domNodes[0],"tc-dragover"); -}; - -DroppableWidget.prototype.leaveDrag = function(event) { - var pos = this.currentlyEntered.indexOf(event.target); - if(pos !== -1) { - this.currentlyEntered.splice(pos,1); - } - // Remove highlighting if we're leaving externally. The hacky second condition is to resolve a problem with Firefox whereby there is an erroneous dragenter event if the node being dragged is within the dropzone - if(this.currentlyEntered.length === 0 || (this.currentlyEntered.length === 1 && this.currentlyEntered[0] === $tw.dragInProgress)) { - this.currentlyEntered = []; - $tw.utils.removeClass(this.domNodes[0],"tc-dragover"); - } -}; - -DroppableWidget.prototype.handleDragEnterEvent = function(event) { - this.enterDrag(event); - // Tell the browser that we're ready to handle the drop - event.preventDefault(); - // Tell the browser not to ripple the drag up to any parent drop handlers - event.stopPropagation(); - return false; -}; - -DroppableWidget.prototype.handleDragOverEvent = function(event) { - // Check for being over a TEXTAREA or INPUT - if(["TEXTAREA","INPUT"].indexOf(event.target.tagName) !== -1) { - return false; - } - // Tell the browser that we're still interested in the drop - event.preventDefault(); - // Set the drop effect - event.dataTransfer.dropEffect = this.droppableEffect; - return false; -}; - -DroppableWidget.prototype.handleDragLeaveEvent = function(event) { - this.leaveDrag(event); - return false; -}; - -DroppableWidget.prototype.handleDropEvent = function(event) { - var self = this; - this.leaveDrag(event); - // Check for being over a TEXTAREA or INPUT - if(["TEXTAREA","INPUT"].indexOf(event.target.tagName) !== -1) { - return false; - } - var dataTransfer = event.dataTransfer; - // Remove highlighting - $tw.utils.removeClass(this.domNodes[0],"tc-dragover"); - // Try to import the various data types we understand - $tw.utils.importDataTransfer(dataTransfer,null,function(fieldsArray) { - fieldsArray.forEach(function(fields) { - self.performActions(fields.title || fields.text,event); - }); - }); - // Tell the browser that we handled the drop - event.preventDefault(); - // Stop the drop ripple up to any parent handlers - event.stopPropagation(); - return false; -}; - -DroppableWidget.prototype.performActions = function(title,event) { - if(this.droppableActions) { - var modifierKey = event.ctrlKey && ! event.shiftKey ? "ctrl" : event.shiftKey && !event.ctrlKey ? "shift" : - event.ctrlKey && event.shiftKey ? "ctrl-shift" : "normal" ; - this.invokeActionString(this.droppableActions,this,event,{actionTiddler: title, modifier: modifierKey}); - } -}; - -/* -Compute the internal state of the widget -*/ -DroppableWidget.prototype.execute = function() { - this.droppableActions = this.getAttribute("actions"); - this.droppableEffect = this.getAttribute("effect","copy"); - this.droppableTag = this.getAttribute("tag"); - this.droppableClass = this.getAttribute("class"); - this.droppableEnable = (this.getAttribute("enable") || "yes") === "yes"; - // Make child widgets - this.makeChildWidgets(); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -DroppableWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes["class"] || changedAttributes.tag || changedAttributes.enable) { - this.refreshSelf(); - return true; - } - return this.refreshChildren(changedTiddlers); -}; - -exports.droppable = DroppableWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/dropzone.js -type: application/javascript -module-type: widget - -Dropzone widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var DropZoneWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -DropZoneWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -DropZoneWidget.prototype.render = function(parent,nextSibling) { - var self = this; - // Remember parent - this.parentDomNode = parent; - // Compute attributes and execute state - this.computeAttributes(); - this.execute(); - // Create element - var domNode = this.document.createElement("div"); - domNode.className = this.dropzoneClass || "tc-dropzone"; - // Add event handlers - if(this.dropzoneEnable) { - $tw.utils.addEventListeners(domNode,[ - {name: "dragenter", handlerObject: this, handlerMethod: "handleDragEnterEvent"}, - {name: "dragover", handlerObject: this, handlerMethod: "handleDragOverEvent"}, - {name: "dragleave", handlerObject: this, handlerMethod: "handleDragLeaveEvent"}, - {name: "drop", handlerObject: this, handlerMethod: "handleDropEvent"}, - {name: "paste", handlerObject: this, handlerMethod: "handlePasteEvent"}, - {name: "dragend", handlerObject: this, handlerMethod: "handleDragEndEvent"} - ]); - } - domNode.addEventListener("click",function (event) { - },false); - // Insert element - parent.insertBefore(domNode,nextSibling); - this.renderChildren(domNode,null); - this.domNodes.push(domNode); - // Stack of outstanding enter/leave events - this.currentlyEntered = []; -}; - -DropZoneWidget.prototype.enterDrag = function(event) { - if(this.currentlyEntered.indexOf(event.target) === -1) { - this.currentlyEntered.push(event.target); - } - // If we're entering for the first time we need to apply highlighting - $tw.utils.addClass(this.domNodes[0],"tc-dragover"); -}; - -DropZoneWidget.prototype.leaveDrag = function(event) { - var pos = this.currentlyEntered.indexOf(event.target); - if(pos !== -1) { - this.currentlyEntered.splice(pos,1); - } - // Remove highlighting if we're leaving externally - if(this.currentlyEntered.length === 0) { - $tw.utils.removeClass(this.domNodes[0],"tc-dragover"); - } -}; - -DropZoneWidget.prototype.handleDragEnterEvent = function(event) { - // Check for this window being the source of the drag - if($tw.dragInProgress) { - return false; - } - this.enterDrag(event); - // Tell the browser that we're ready to handle the drop - event.preventDefault(); - // Tell the browser not to ripple the drag up to any parent drop handlers - event.stopPropagation(); -}; - -DropZoneWidget.prototype.handleDragOverEvent = function(event) { - // Check for being over a TEXTAREA or INPUT - if(["TEXTAREA","INPUT"].indexOf(event.target.tagName) !== -1) { - return false; - } - // Check for this window being the source of the drag - if($tw.dragInProgress) { - return false; - } - // Tell the browser that we're still interested in the drop - event.preventDefault(); - event.dataTransfer.dropEffect = "copy"; // Explicitly show this is a copy -}; - -DropZoneWidget.prototype.handleDragLeaveEvent = function(event) { - this.leaveDrag(event); -}; - -DropZoneWidget.prototype.handleDragEndEvent = function(event) { - $tw.utils.removeClass(this.domNodes[0],"tc-dragover"); -}; - -DropZoneWidget.prototype.handleDropEvent = function(event) { - var self = this, - readFileCallback = function(tiddlerFieldsArray) { - self.dispatchEvent({type: "tm-import-tiddlers", param: JSON.stringify(tiddlerFieldsArray)}); - }; - this.leaveDrag(event); - // Check for being over a TEXTAREA or INPUT - if(["TEXTAREA","INPUT"].indexOf(event.target.tagName) !== -1) { - return false; - } - // Check for this window being the source of the drag - if($tw.dragInProgress) { - return false; - } - var self = this, - dataTransfer = event.dataTransfer; - // Remove highlighting - $tw.utils.removeClass(this.domNodes[0],"tc-dragover"); - // Import any files in the drop - var numFiles = 0; - if(dataTransfer.files) { - numFiles = this.wiki.readFiles(dataTransfer.files,{ - callback: readFileCallback, - deserializer: this.dropzoneDeserializer - }); - } - // Try to import the various data types we understand - if(numFiles === 0) { - $tw.utils.importDataTransfer(dataTransfer,this.wiki.generateNewTitle("Untitled"),readFileCallback); - } - // Tell the browser that we handled the drop - event.preventDefault(); - // Stop the drop ripple up to any parent handlers - event.stopPropagation(); -}; - -DropZoneWidget.prototype.handlePasteEvent = function(event) { - var self = this, - readFileCallback = function(tiddlerFieldsArray) { - self.dispatchEvent({type: "tm-import-tiddlers", param: JSON.stringify(tiddlerFieldsArray)}); - }; - // Let the browser handle it if we're in a textarea or input box - if(["TEXTAREA","INPUT"].indexOf(event.target.tagName) == -1 && !event.target.isContentEditable) { - var self = this, - items = event.clipboardData.items; - // Enumerate the clipboard items - for(var t = 0; t<items.length; t++) { - var item = items[t]; - if(item.kind === "file") { - // Import any files - this.wiki.readFile(item.getAsFile(),{ - callback: readFileCallback, - deserializer: this.dropzoneDeserializer - }); - } else if(item.kind === "string") { - // Create tiddlers from string items - var type = item.type; - item.getAsString(function(str) { - var tiddlerFields = { - title: self.wiki.generateNewTitle("Untitled"), - text: str, - type: type - }; - if($tw.log.IMPORT) { - console.log("Importing string '" + str + "', type: '" + type + "'"); - } - self.dispatchEvent({type: "tm-import-tiddlers", param: JSON.stringify([tiddlerFields])}); - }); - } - } - // Tell the browser that we've handled the paste - event.stopPropagation(); - event.preventDefault(); - } -}; - -/* -Compute the internal state of the widget -*/ -DropZoneWidget.prototype.execute = function() { - this.dropzoneClass = this.getAttribute("class"); - this.dropzoneDeserializer = this.getAttribute("deserializer"); - this.dropzoneEnable = (this.getAttribute("enable") || "yes") === "yes"; - // Make child widgets - this.makeChildWidgets(); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -DropZoneWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.enable) { - this.refreshSelf(); - return true; - } - return this.refreshChildren(changedTiddlers); -}; - -exports.dropzone = DropZoneWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/edit-binary.js -type: application/javascript -module-type: widget - -Edit-binary widget; placeholder for editing binary tiddlers - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var BINARY_WARNING_MESSAGE = "$:/core/ui/BinaryWarning"; -var EXPORT_BUTTON_IMAGE = "$:/core/images/export-button"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var EditBinaryWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -EditBinaryWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -EditBinaryWidget.prototype.render = function(parent,nextSibling) { - var self = this; - // Save the parent dom node - this.parentDomNode = parent; - // Compute our attributes - this.computeAttributes(); - // Execute our logic - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -/* -Compute the internal state of the widget -*/ -EditBinaryWidget.prototype.execute = function() { - // Get our parameters - var editTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler")); - var tiddler = this.wiki.getTiddler(editTitle); - var type = tiddler.fields.type; - var text = tiddler.fields.text; - // Transclude the binary data tiddler warning message - var warn = { - type: "element", - tag: "p", - children: [{ - type: "transclude", - attributes: { - tiddler: {type: "string", value: BINARY_WARNING_MESSAGE} - } - }] - }; - // Create download link based on draft tiddler title - var link = { - type: "element", - tag: "a", - attributes: { - title: {type: "indirect", textReference: "!!draft.title"}, - download: {type: "indirect", textReference: "!!draft.title"} - }, - children: [{ - type: "transclude", - attributes: { - tiddler: {type: "string", value: EXPORT_BUTTON_IMAGE} - } - }] - }; - // Set the link href to internal data URI (no external) - if(text) { - link.attributes.href = { - type: "string", - value: "data:" + type + ";base64," + text - }; - } - // Combine warning message and download link in a div - var element = { - type: "element", - tag: "div", - attributes: { - class: {type: "string", value: "tc-binary-warning"} - }, - children: [warn, link] - } - // Construct the child widgets - this.makeChildWidgets([element]); -}; - -/* -Refresh by refreshing our child widget -*/ -EditBinaryWidget.prototype.refresh = function(changedTiddlers) { - return this.refreshChildren(changedTiddlers); -}; - -exports["edit-binary"] = EditBinaryWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/edit-bitmap.js -type: application/javascript -module-type: widget - -Edit-bitmap widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -// Default image sizes -var DEFAULT_IMAGE_WIDTH = 600, - DEFAULT_IMAGE_HEIGHT = 370, - DEFAULT_IMAGE_TYPE = "image/png"; - -// Configuration tiddlers -var LINE_WIDTH_TITLE = "$:/config/BitmapEditor/LineWidth", - LINE_COLOUR_TITLE = "$:/config/BitmapEditor/Colour", - LINE_OPACITY_TITLE = "$:/config/BitmapEditor/Opacity"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var EditBitmapWidget = function(parseTreeNode,options) { - // Initialise the editor operations if they've not been done already - if(!this.editorOperations) { - EditBitmapWidget.prototype.editorOperations = {}; - $tw.modules.applyMethods("bitmapeditoroperation",this.editorOperations); - } - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -EditBitmapWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -EditBitmapWidget.prototype.render = function(parent,nextSibling) { - var self = this; - // Save the parent dom node - this.parentDomNode = parent; - // Compute our attributes - this.computeAttributes(); - // Execute our logic - this.execute(); - // Create the wrapper for the toolbar and render its content - this.toolbarNode = this.document.createElement("div"); - this.toolbarNode.className = "tc-editor-toolbar"; - parent.insertBefore(this.toolbarNode,nextSibling); - this.domNodes.push(this.toolbarNode); - // Create the on-screen canvas - this.canvasDomNode = $tw.utils.domMaker("canvas",{ - document: this.document, - "class":"tc-edit-bitmapeditor", - eventListeners: [{ - name: "touchstart", handlerObject: this, handlerMethod: "handleTouchStartEvent" - },{ - name: "touchmove", handlerObject: this, handlerMethod: "handleTouchMoveEvent" - },{ - name: "touchend", handlerObject: this, handlerMethod: "handleTouchEndEvent" - },{ - name: "mousedown", handlerObject: this, handlerMethod: "handleMouseDownEvent" - },{ - name: "mousemove", handlerObject: this, handlerMethod: "handleMouseMoveEvent" - },{ - name: "mouseup", handlerObject: this, handlerMethod: "handleMouseUpEvent" - }] - }); - // Set the width and height variables - this.setVariable("tv-bitmap-editor-width",this.canvasDomNode.width + "px"); - this.setVariable("tv-bitmap-editor-height",this.canvasDomNode.height + "px"); - // Render toolbar child widgets - this.renderChildren(this.toolbarNode,null); - // // Insert the elements into the DOM - parent.insertBefore(this.canvasDomNode,nextSibling); - this.domNodes.push(this.canvasDomNode); - // Load the image into the canvas - if($tw.browser) { - this.loadCanvas(); - } - // Add widget message listeners - this.addEventListeners([ - {type: "tm-edit-bitmap-operation", handler: "handleEditBitmapOperationMessage"} - ]); -}; - -/* -Handle an edit bitmap operation message from the toolbar -*/ -EditBitmapWidget.prototype.handleEditBitmapOperationMessage = function(event) { - // Invoke the handler - var handler = this.editorOperations[event.param]; - if(handler) { - handler.call(this,event); - } -}; - -/* -Compute the internal state of the widget -*/ -EditBitmapWidget.prototype.execute = function() { - // Get our parameters - this.editTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler")); - // Make the child widgets - this.makeChildWidgets(); -}; - -/* -Just refresh the toolbar -*/ -EditBitmapWidget.prototype.refresh = function(changedTiddlers) { - return this.refreshChildren(changedTiddlers); -}; - -/* -Set the bitmap size variables and refresh the toolbar -*/ -EditBitmapWidget.prototype.refreshToolbar = function() { - // Set the width and height variables - this.setVariable("tv-bitmap-editor-width",this.canvasDomNode.width + "px"); - this.setVariable("tv-bitmap-editor-height",this.canvasDomNode.height + "px"); - // Refresh each of our child widgets - $tw.utils.each(this.children,function(childWidget) { - childWidget.refreshSelf(); - }); -}; - -EditBitmapWidget.prototype.loadCanvas = function() { - var tiddler = this.wiki.getTiddler(this.editTitle), - currImage = new Image(); - // Set up event handlers for loading the image - var self = this; - currImage.onload = function() { - // Copy the image to the on-screen canvas - self.initCanvas(self.canvasDomNode,currImage.width,currImage.height,currImage); - // And also copy the current bitmap to the off-screen canvas - self.currCanvas = self.document.createElement("canvas"); - self.initCanvas(self.currCanvas,currImage.width,currImage.height,currImage); - // Set the width and height input boxes - self.refreshToolbar(); - }; - currImage.onerror = function() { - // Set the on-screen canvas size and clear it - self.initCanvas(self.canvasDomNode,DEFAULT_IMAGE_WIDTH,DEFAULT_IMAGE_HEIGHT); - // Set the off-screen canvas size and clear it - self.currCanvas = self.document.createElement("canvas"); - self.initCanvas(self.currCanvas,DEFAULT_IMAGE_WIDTH,DEFAULT_IMAGE_HEIGHT); - // Set the width and height input boxes - self.refreshToolbar(); - }; - // Get the current bitmap into an image object - if(tiddler && tiddler.fields.type && tiddler.fields.text) { - currImage.src = "data:" + tiddler.fields.type + ";base64," + tiddler.fields.text; - } else { - currImage.width = DEFAULT_IMAGE_WIDTH; - currImage.height = DEFAULT_IMAGE_HEIGHT; - currImage.onerror(); - } -}; - -EditBitmapWidget.prototype.initCanvas = function(canvas,width,height,image) { - canvas.width = width; - canvas.height = height; - var ctx = canvas.getContext("2d"); - if(image) { - ctx.drawImage(image,0,0); - } else { - ctx.fillStyle = "#fff"; - ctx.fillRect(0,0,canvas.width,canvas.height); - } -}; - -/* -** Change the size of the canvas, preserving the current image -*/ -EditBitmapWidget.prototype.changeCanvasSize = function(newWidth,newHeight) { - // Create and size a new canvas - var newCanvas = this.document.createElement("canvas"); - this.initCanvas(newCanvas,newWidth,newHeight); - // Copy the old image - var ctx = newCanvas.getContext("2d"); - ctx.drawImage(this.currCanvas,0,0); - // Set the new canvas as the current one - this.currCanvas = newCanvas; - // Set the size of the onscreen canvas - this.canvasDomNode.width = newWidth; - this.canvasDomNode.height = newHeight; - // Paint the onscreen canvas with the offscreen canvas - ctx = this.canvasDomNode.getContext("2d"); - ctx.drawImage(this.currCanvas,0,0); -}; - -/* -** Rotate the canvas left by 90 degrees -*/ -EditBitmapWidget.prototype.rotateCanvasLeft = function() { - // Get the current size of the image - var origWidth = this.currCanvas.width, - origHeight = this.currCanvas.height; - // Create and size a new canvas - var newCanvas = this.document.createElement("canvas"), - newWidth = origHeight, - newHeight = origWidth; - this.initCanvas(newCanvas,newWidth,newHeight); - // Copy the old image - var ctx = newCanvas.getContext("2d"); - ctx.save(); - ctx.translate(newWidth / 2,newHeight / 2); - ctx.rotate(-Math.PI / 2); - ctx.drawImage(this.currCanvas,-origWidth / 2,-origHeight / 2); - ctx.restore(); - // Set the new canvas as the current one - this.currCanvas = newCanvas; - // Set the size of the onscreen canvas - this.canvasDomNode.width = newWidth; - this.canvasDomNode.height = newHeight; - // Paint the onscreen canvas with the offscreen canvas - ctx = this.canvasDomNode.getContext("2d"); - ctx.drawImage(this.currCanvas,0,0); -}; - -EditBitmapWidget.prototype.handleTouchStartEvent = function(event) { - this.brushDown = true; - this.strokeStart(event.touches[0].clientX,event.touches[0].clientY); - event.preventDefault(); - event.stopPropagation(); - return false; -}; - -EditBitmapWidget.prototype.handleTouchMoveEvent = function(event) { - if(this.brushDown) { - this.strokeMove(event.touches[0].clientX,event.touches[0].clientY); - } - event.preventDefault(); - event.stopPropagation(); - return false; -}; - -EditBitmapWidget.prototype.handleTouchEndEvent = function(event) { - if(this.brushDown) { - this.brushDown = false; - this.strokeEnd(); - } - event.preventDefault(); - event.stopPropagation(); - return false; -}; - -EditBitmapWidget.prototype.handleMouseDownEvent = function(event) { - this.strokeStart(event.clientX,event.clientY); - this.brushDown = true; - event.preventDefault(); - event.stopPropagation(); - return false; -}; - -EditBitmapWidget.prototype.handleMouseMoveEvent = function(event) { - if(this.brushDown) { - this.strokeMove(event.clientX,event.clientY); - event.preventDefault(); - event.stopPropagation(); - return false; - } - return true; -}; - -EditBitmapWidget.prototype.handleMouseUpEvent = function(event) { - if(this.brushDown) { - this.brushDown = false; - this.strokeEnd(); - event.preventDefault(); - event.stopPropagation(); - return false; - } - return true; -}; - -EditBitmapWidget.prototype.adjustCoordinates = function(x,y) { - var canvasRect = this.canvasDomNode.getBoundingClientRect(), - scale = this.canvasDomNode.width/canvasRect.width; - return {x: (x - canvasRect.left) * scale, y: (y - canvasRect.top) * scale}; -}; - -EditBitmapWidget.prototype.strokeStart = function(x,y) { - // Start off a new stroke - this.stroke = [this.adjustCoordinates(x,y)]; -}; - -EditBitmapWidget.prototype.strokeMove = function(x,y) { - var ctx = this.canvasDomNode.getContext("2d"), - t; - // Add the new position to the end of the stroke - this.stroke.push(this.adjustCoordinates(x,y)); - // Redraw the previous image - ctx.drawImage(this.currCanvas,0,0); - // Render the stroke - ctx.globalAlpha = parseFloat(this.wiki.getTiddlerText(LINE_OPACITY_TITLE,"1.0")); - ctx.strokeStyle = this.wiki.getTiddlerText(LINE_COLOUR_TITLE,"#ff0"); - ctx.lineWidth = parseFloat(this.wiki.getTiddlerText(LINE_WIDTH_TITLE,"3")); - ctx.lineCap = "round"; - ctx.lineJoin = "round"; - ctx.beginPath(); - ctx.moveTo(this.stroke[0].x,this.stroke[0].y); - for(t=1; t<this.stroke.length-1; t++) { - var s1 = this.stroke[t], - s2 = this.stroke[t-1], - tx = (s1.x + s2.x)/2, - ty = (s1.y + s2.y)/2; - ctx.quadraticCurveTo(s2.x,s2.y,tx,ty); - } - ctx.stroke(); -}; - -EditBitmapWidget.prototype.strokeEnd = function() { - // Copy the bitmap to the off-screen canvas - var ctx = this.currCanvas.getContext("2d"); - ctx.drawImage(this.canvasDomNode,0,0); - // Save the image into the tiddler - this.saveChanges(); -}; - -EditBitmapWidget.prototype.saveChanges = function() { - var tiddler = this.wiki.getTiddler(this.editTitle) || new $tw.Tiddler({title: this.editTitle,type: DEFAULT_IMAGE_TYPE}); - // data URIs look like "data:<type>;base64,<text>" - var dataURL = this.canvasDomNode.toDataURL(tiddler.fields.type), - posColon = dataURL.indexOf(":"), - posSemiColon = dataURL.indexOf(";"), - posComma = dataURL.indexOf(","), - type = dataURL.substring(posColon+1,posSemiColon), - text = dataURL.substring(posComma+1); - var update = {type: type, text: text}; - this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getModificationFields(),tiddler,update,this.wiki.getCreationFields())); -}; - -exports["edit-bitmap"] = EditBitmapWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/edit-shortcut.js -type: application/javascript -module-type: widget - -Widget to display an editable keyboard shortcut - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var EditShortcutWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -EditShortcutWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -EditShortcutWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.inputNode = this.document.createElement("input"); - // Assign classes - if(this.shortcutClass) { - this.inputNode.className = this.shortcutClass; - } - // Assign other attributes - if(this.shortcutStyle) { - this.inputNode.setAttribute("style",this.shortcutStyle); - } - if(this.shortcutTooltip) { - this.inputNode.setAttribute("title",this.shortcutTooltip); - } - if(this.shortcutPlaceholder) { - this.inputNode.setAttribute("placeholder",this.shortcutPlaceholder); - } - if(this.shortcutAriaLabel) { - this.inputNode.setAttribute("aria-label",this.shortcutAriaLabel); - } - // Assign the current shortcut - this.updateInputNode(); - // Add event handlers - $tw.utils.addEventListeners(this.inputNode,[ - {name: "keydown", handlerObject: this, handlerMethod: "handleKeydownEvent"} - ]); - // Link into the DOM - parent.insertBefore(this.inputNode,nextSibling); - this.domNodes.push(this.inputNode); - // Focus the input Node if focus === "yes" or focus === "true" - if(this.shortcutFocus === "yes" || this.shortcutFocus === "true") { - this.focus(); - } -}; - -/* -Compute the internal state of the widget -*/ -EditShortcutWidget.prototype.execute = function() { - this.shortcutTiddler = this.getAttribute("tiddler"); - this.shortcutField = this.getAttribute("field"); - this.shortcutIndex = this.getAttribute("index"); - this.shortcutPlaceholder = this.getAttribute("placeholder"); - this.shortcutDefault = this.getAttribute("default",""); - this.shortcutClass = this.getAttribute("class"); - this.shortcutStyle = this.getAttribute("style"); - this.shortcutTooltip = this.getAttribute("tooltip"); - this.shortcutAriaLabel = this.getAttribute("aria-label"); - this.shortcutFocus = this.getAttribute("focus"); -}; - -/* -Update the value of the input node -*/ -EditShortcutWidget.prototype.updateInputNode = function() { - if(this.shortcutField) { - var tiddler = this.wiki.getTiddler(this.shortcutTiddler); - if(tiddler && $tw.utils.hop(tiddler.fields,this.shortcutField)) { - this.inputNode.value = tiddler.getFieldString(this.shortcutField); - } else { - this.inputNode.value = this.shortcutDefault; - } - } else if(this.shortcutIndex) { - this.inputNode.value = this.wiki.extractTiddlerDataItem(this.shortcutTiddler,this.shortcutIndex,this.shortcutDefault); - } else { - this.inputNode.value = this.wiki.getTiddlerText(this.shortcutTiddler,this.shortcutDefault); - } -}; - -/* -Handle a dom "keydown" event -*/ -EditShortcutWidget.prototype.handleKeydownEvent = function(event) { - // Ignore shift, ctrl, meta, alt - if(event.keyCode && $tw.keyboardManager.getModifierKeys().indexOf(event.keyCode) === -1) { - // Get the shortcut text representation - var value = $tw.keyboardManager.getPrintableShortcuts([{ - ctrlKey: event.ctrlKey, - shiftKey: event.shiftKey, - altKey: event.altKey, - metaKey: event.metaKey, - keyCode: event.keyCode - }]); - if(value.length > 0) { - this.wiki.setText(this.shortcutTiddler,this.shortcutField,this.shortcutIndex,value[0]); - } - // Ignore the keydown if it was already handled - event.preventDefault(); - event.stopPropagation(); - return true; - } else { - return false; - } -}; - -/* -focus the input node -*/ -EditShortcutWidget.prototype.focus = function() { - if(this.inputNode.focus && this.inputNode.select) { - this.inputNode.focus(); - this.inputNode.select(); - } -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget needed re-rendering -*/ -EditShortcutWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.placeholder || changedAttributes["default"] || changedAttributes["class"] || changedAttributes.style || changedAttributes.tooltip || changedAttributes["aria-label"] || changedAttributes.focus) { - this.refreshSelf(); - return true; - } else if(changedTiddlers[this.shortcutTiddler]) { - this.updateInputNode(); - return true; - } else { - return false; - } -}; - -exports["edit-shortcut"] = EditShortcutWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/edit-text.js -type: application/javascript -module-type: widget - -Edit-text widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var editTextWidgetFactory = require("$:/core/modules/editor/factory.js").editTextWidgetFactory, - FramedEngine = require("$:/core/modules/editor/engines/framed.js").FramedEngine, - SimpleEngine = require("$:/core/modules/editor/engines/simple.js").SimpleEngine; - -exports["edit-text"] = editTextWidgetFactory(FramedEngine,SimpleEngine); - -})(); --
/*\ -title: $:/core/modules/widgets/edit.js -type: application/javascript -module-type: widget - -Edit widget is a meta-widget chooses the appropriate actual editting widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var EditWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -EditWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -EditWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -// Mappings from content type to editor type are stored in tiddlers with this prefix -var EDITOR_MAPPING_PREFIX = "$:/config/EditorTypeMappings/"; - -/* -Compute the internal state of the widget -*/ -EditWidget.prototype.execute = function() { - // Get our parameters - this.editTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler")); - this.editField = this.getAttribute("field","text"); - this.editIndex = this.getAttribute("index"); - this.editClass = this.getAttribute("class"); - this.editPlaceholder = this.getAttribute("placeholder"); - this.editTabIndex = this.getAttribute("tabindex"); - this.editFocus = this.getAttribute("focus",""); - // Choose the appropriate edit widget - this.editorType = this.getEditorType(); - // Make the child widgets - this.makeChildWidgets([{ - type: "edit-" + this.editorType, - attributes: { - tiddler: {type: "string", value: this.editTitle}, - field: {type: "string", value: this.editField}, - index: {type: "string", value: this.editIndex}, - "class": {type: "string", value: this.editClass}, - "placeholder": {type: "string", value: this.editPlaceholder}, - "tabindex": {type: "string", value: this.editTabIndex}, - "focus": {type: "string", value: this.editFocus} - }, - children: this.parseTreeNode.children - }]); -}; - -EditWidget.prototype.getEditorType = function() { - // Get the content type of the thing we're editing - var type; - if(this.editField === "text") { - var tiddler = this.wiki.getTiddler(this.editTitle); - if(tiddler) { - type = tiddler.fields.type; - } - } - type = type || "text/vnd.tiddlywiki"; - var editorType = this.wiki.getTiddlerText(EDITOR_MAPPING_PREFIX + type); - if(!editorType) { - var typeInfo = $tw.config.contentTypeInfo[type]; - if(typeInfo && typeInfo.encoding === "base64") { - editorType = "binary"; - } else { - editorType = "text"; - } - } - return editorType; -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -EditWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - // Refresh if an attribute has changed, or the type associated with the target tiddler has changed - if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.tabindex || (changedTiddlers[this.editTitle] && this.getEditorType() !== this.editorType)) { - this.refreshSelf(); - return true; - } else { - return this.refreshChildren(changedTiddlers); - } -}; - -exports.edit = EditWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/element.js -type: application/javascript -module-type: widget - -Element widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var ElementWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -ElementWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -ElementWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - // Neuter blacklisted elements - var tag = this.parseTreeNode.tag; - if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) { - tag = "safe-" + tag; - } - // Adjust headings by the current base level - var headingLevel = ["h1","h2","h3","h4","h5","h6"].indexOf(tag); - if(headingLevel !== -1) { - var baseLevel = parseInt(this.getVariable("tv-adjust-heading-level","0"),10) || 0; - headingLevel = Math.min(Math.max(headingLevel + 1 + baseLevel,1),6); - tag = "h" + headingLevel; - } - // Create the DOM node - var domNode = this.document.createElementNS(this.namespace,tag); - this.assignAttributes(domNode,{excludeEventAttributes: true}); - parent.insertBefore(domNode,nextSibling); - this.renderChildren(domNode,null); - this.domNodes.push(domNode); -}; - -/* -Compute the internal state of the widget -*/ -ElementWidget.prototype.execute = function() { - // Select the namespace for the tag - var tagNamespaces = { - svg: "http://www.w3.org/2000/svg", - math: "http://www.w3.org/1998/Math/MathML", - body: "http://www.w3.org/1999/xhtml" - }; - this.namespace = tagNamespaces[this.parseTreeNode.tag]; - if(this.namespace) { - this.setVariable("namespace",this.namespace); - } else { - this.namespace = this.getVariable("namespace",{defaultValue: "http://www.w3.org/1999/xhtml"}); - } - // Make the child widgets - this.makeChildWidgets(); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -ElementWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(), - hasChangedAttributes = $tw.utils.count(changedAttributes) > 0; - if(hasChangedAttributes) { - // Update our attributes - this.assignAttributes(this.domNodes[0],{excludeEventAttributes: true}); - } - return this.refreshChildren(changedTiddlers) || hasChangedAttributes; -}; - -exports.element = ElementWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/encrypt.js -type: application/javascript -module-type: widget - -Encrypt widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var EncryptWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -EncryptWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -EncryptWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - var textNode = this.document.createTextNode(this.encryptedText); - parent.insertBefore(textNode,nextSibling); - this.domNodes.push(textNode); -}; - -/* -Compute the internal state of the widget -*/ -EncryptWidget.prototype.execute = function() { - // Get parameters from our attributes - this.filter = this.getAttribute("filter","[!is[system]]"); - // Encrypt the filtered tiddlers - var tiddlers = this.wiki.filterTiddlers(this.filter), - json = {}, - self = this; - $tw.utils.each(tiddlers,function(title) { - var tiddler = self.wiki.getTiddler(title), - jsonTiddler = {}; - for(var f in tiddler.fields) { - jsonTiddler[f] = tiddler.getFieldString(f); - } - json[title] = jsonTiddler; - }); - this.encryptedText = $tw.utils.htmlEncode($tw.crypto.encrypt(JSON.stringify(json))); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -EncryptWidget.prototype.refresh = function(changedTiddlers) { - // We don't need to worry about refreshing because the encrypt widget isn't for interactive use - return false; -}; - -exports.encrypt = EncryptWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/entity.js -type: application/javascript -module-type: widget - -HTML entity widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var EntityWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -EntityWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -EntityWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.execute(); - var entityString = this.getAttribute("entity",this.parseTreeNode.entity || ""), - textNode = this.document.createTextNode($tw.utils.entityDecode(entityString)); - parent.insertBefore(textNode,nextSibling); - this.domNodes.push(textNode); -}; - -/* -Compute the internal state of the widget -*/ -EntityWidget.prototype.execute = function() { -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -EntityWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.entity) { - this.refreshSelf(); - return true; - } else { - return false; - } -}; - -exports.entity = EntityWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/fieldmangler.js -type: application/javascript -module-type: widget - -Field mangler widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var FieldManglerWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); - this.addEventListeners([ - {type: "tm-remove-field", handler: "handleRemoveFieldEvent"}, - {type: "tm-add-field", handler: "handleAddFieldEvent"}, - {type: "tm-remove-tag", handler: "handleRemoveTagEvent"}, - {type: "tm-add-tag", handler: "handleAddTagEvent"} - ]); -}; - -/* -Inherit from the base widget class -*/ -FieldManglerWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -FieldManglerWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -/* -Compute the internal state of the widget -*/ -FieldManglerWidget.prototype.execute = function() { - // Get our parameters - this.mangleTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler")); - // Construct the child widgets - this.makeChildWidgets(); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -FieldManglerWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.tiddler) { - this.refreshSelf(); - return true; - } else { - return this.refreshChildren(changedTiddlers); - } -}; - -FieldManglerWidget.prototype.handleRemoveFieldEvent = function(event) { - var tiddler = this.wiki.getTiddler(this.mangleTitle), - deletion = {}; - deletion[event.param] = undefined; - this.wiki.addTiddler(new $tw.Tiddler(tiddler,deletion)); - return true; -}; - -FieldManglerWidget.prototype.handleAddFieldEvent = function(event) { - var tiddler = this.wiki.getTiddler(this.mangleTitle), - addition = this.wiki.getModificationFields(), - hadInvalidFieldName = false, - addField = function(name,value) { - var trimmedName = name.toLowerCase().trim(); - if(!$tw.utils.isValidFieldName(trimmedName)) { - if(!hadInvalidFieldName) { - alert($tw.language.getString( - "InvalidFieldName", - {variables: - {fieldName: trimmedName} - } - )); - hadInvalidFieldName = true; - return; - } - } else { - if(!value && tiddler) { - value = tiddler.fields[trimmedName]; - } - addition[trimmedName] = value || ""; - } - return; - }; - addition.title = this.mangleTitle; - if(typeof event.param === "string") { - addField(event.param,""); - } - if(typeof event.paramObject === "object") { - for(var name in event.paramObject) { - addField(name,event.paramObject[name]); - } - } - this.wiki.addTiddler(new $tw.Tiddler(tiddler,addition)); - return true; -}; - -FieldManglerWidget.prototype.handleRemoveTagEvent = function(event) { - var tiddler = this.wiki.getTiddler(this.mangleTitle), - modification = this.wiki.getModificationFields(); - if(tiddler && tiddler.fields.tags) { - var p = tiddler.fields.tags.indexOf(event.param); - if(p !== -1) { - modification.tags = (tiddler.fields.tags || []).slice(0); - modification.tags.splice(p,1); - if(modification.tags.length === 0) { - modification.tags = undefined; - } - this.wiki.addTiddler(new $tw.Tiddler(tiddler,modification)); - } - } - return true; -}; - -FieldManglerWidget.prototype.handleAddTagEvent = function(event) { - var tiddler = this.wiki.getTiddler(this.mangleTitle), - modification = this.wiki.getModificationFields(); - if(tiddler && typeof event.param === "string") { - var tag = event.param.trim(); - if(tag !== "") { - modification.tags = (tiddler.fields.tags || []).slice(0); - $tw.utils.pushTop(modification.tags,tag); - this.wiki.addTiddler(new $tw.Tiddler(tiddler,modification)); - } - } else if(typeof event.param === "string" && event.param.trim() !== "" && this.mangleTitle.trim() !== "") { - var tag = []; - tag.push(event.param.trim()); - this.wiki.addTiddler(new $tw.Tiddler({title: this.mangleTitle, tags: tag},modification)); - } - return true; -}; - -exports.fieldmangler = FieldManglerWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/fields.js -type: application/javascript -module-type: widget - -Fields widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var FieldsWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -FieldsWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -FieldsWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - var textNode = this.document.createTextNode(this.text); - parent.insertBefore(textNode,nextSibling); - this.domNodes.push(textNode); -}; - -/* -Compute the internal state of the widget -*/ -FieldsWidget.prototype.execute = function() { - // Get parameters from our attributes - this.tiddlerTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler")); - this.template = this.getAttribute("template"); - this.sort = this.getAttribute("sort","yes") === "yes"; - this.sortReverse = this.getAttribute("sortReverse","no") === "yes"; - this.exclude = this.getAttribute("exclude"); - this.include = this.getAttribute("include",null); - this.stripTitlePrefix = this.getAttribute("stripTitlePrefix","no") === "yes"; - // Get the value to display - var tiddler = this.wiki.getTiddler(this.tiddlerTitle); - - // Get the inclusion and exclusion list - var excludeArr = (this.exclude) ? this.exclude.split(" ") : ["text"]; - // Include takes precedence - var includeArr = (this.include) ? this.include.split(" ") : null; - - // Compose the template - var text = []; - if(this.template && tiddler) { - var fields = []; - if (includeArr) { // Include takes precedence - for(var i=0; i<includeArr.length; i++) { - if(tiddler.fields[includeArr[i]]) { - fields.push(includeArr[i]); - } - } - } else { - for(var fieldName in tiddler.fields) { - if(excludeArr.indexOf(fieldName) === -1) { - fields.push(fieldName); - } - } - } - if (this.sort) fields.sort(); - if (this.sortReverse) fields.reverse(); - for(var f=0, fmax=fields.length; f<fmax; f++) { - fieldName = fields[f]; - var row = this.template, - value = tiddler.getFieldString(fieldName); - if(this.stripTitlePrefix && fieldName === "title") { - var reStrip = /^\{[^\}]+\}(.+)/mg, - reMatch = reStrip.exec(value); - if(reMatch) { - value = reMatch[1]; - } - } - row = $tw.utils.replaceString(row,"$name$",fieldName); - row = $tw.utils.replaceString(row,"$value$",value); - row = $tw.utils.replaceString(row,"$encoded_value$",$tw.utils.htmlEncode(value)); - text.push(row); - } - } - this.text = text.join(""); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -FieldsWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if( changedAttributes.tiddler || changedAttributes.template || changedAttributes.exclude || - changedAttributes.include || changedAttributes.sort || changedAttributes.sortReverse || - changedTiddlers[this.tiddlerTitle] || changedAttributes.stripTitlePrefix) { - this.refreshSelf(); - return true; - } else { - return false; - } -}; - -exports.fields = FieldsWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/image.js -type: application/javascript -module-type: widget - -The image widget displays an image referenced with an external URI or with a local tiddler title. - -``` -<$image src="TiddlerTitle" width="320" height="400" class="classnames"> -``` - -The image source can be the title of an existing tiddler or the URL of an external image. - -External images always generate an HTML `<img>` tag. - -Tiddlers that have a _canonical_uri field generate an HTML `<img>` tag with the src attribute containing the URI. - -Tiddlers that contain image data generate an HTML `<img>` tag with the src attribute containing a base64 representation of the image. - -Tiddlers that contain wikitext could be rendered to a DIV of the usual size of a tiddler, and then transformed to the size requested. - -The width and height attributes are interpreted as a number of pixels, and do not need to include the "px" suffix. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var ImageWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -ImageWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -ImageWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - // Create element - // Determine what type of image it is - var tag = "img", src = "", - tiddler = this.wiki.getTiddler(this.imageSource); - if(!tiddler) { - // The source isn't the title of a tiddler, so we'll assume it's a URL - src = this.getVariable("tv-get-export-image-link",{params: [{name: "src",value: this.imageSource}],defaultValue: this.imageSource}); - } else { - // Check if it is an image tiddler - if(this.wiki.isImageTiddler(this.imageSource)) { - var type = tiddler.fields.type, - text = tiddler.fields.text, - _canonical_uri = tiddler.fields._canonical_uri; - // If the tiddler has body text then it doesn't need to be lazily loaded - if(text) { - // Render the appropriate element for the image type - switch(type) { - case "application/pdf": - tag = "embed"; - src = "data:application/pdf;base64," + text; - break; - case "image/svg+xml": - src = "data:image/svg+xml," + encodeURIComponent(text); - break; - default: - src = "data:" + type + ";base64," + text; - break; - } - } else if(_canonical_uri) { - switch(type) { - case "application/pdf": - tag = "embed"; - src = _canonical_uri; - break; - case "image/svg+xml": - src = _canonical_uri; - break; - default: - src = _canonical_uri; - break; - } - } else { - // Just trigger loading of the tiddler - this.wiki.getTiddlerText(this.imageSource); - } - } - } - // Create the element and assign the attributes - var domNode = this.document.createElement(tag); - domNode.setAttribute("src",src); - if(this.imageClass) { - domNode.setAttribute("class",this.imageClass); - } - if(this.imageWidth) { - domNode.setAttribute("width",this.imageWidth); - } - if(this.imageHeight) { - domNode.setAttribute("height",this.imageHeight); - } - if(this.imageTooltip) { - domNode.setAttribute("title",this.imageTooltip); - } - if(this.imageAlt) { - domNode.setAttribute("alt",this.imageAlt); - } - // Insert element - parent.insertBefore(domNode,nextSibling); - this.domNodes.push(domNode); -}; - -/* -Compute the internal state of the widget -*/ -ImageWidget.prototype.execute = function() { - // Get our parameters - this.imageSource = this.getAttribute("source"); - this.imageWidth = this.getAttribute("width"); - this.imageHeight = this.getAttribute("height"); - this.imageClass = this.getAttribute("class"); - this.imageTooltip = this.getAttribute("tooltip"); - this.imageAlt = this.getAttribute("alt"); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -ImageWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.source || changedAttributes.width || changedAttributes.height || changedAttributes["class"] || changedAttributes.tooltip || changedTiddlers[this.imageSource]) { - this.refreshSelf(); - return true; - } else { - return false; - } -}; - -exports.image = ImageWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/importvariables.js -type: application/javascript -module-type: widget - -Import variable definitions from other tiddlers - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var ImportVariablesWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -ImportVariablesWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -ImportVariablesWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -/* -Compute the internal state of the widget -*/ -ImportVariablesWidget.prototype.execute = function(tiddlerList) { - var widgetPointer = this; - // Get our parameters - this.filter = this.getAttribute("filter"); - // Compute the filter - this.tiddlerList = tiddlerList || this.wiki.filterTiddlers(this.filter,this); - // Accumulate the <$set> widgets from each tiddler - $tw.utils.each(this.tiddlerList,function(title) { - var parser = widgetPointer.wiki.parseTiddler(title); - if(parser) { - var parseTreeNode = parser.tree[0]; - while(parseTreeNode && parseTreeNode.type === "set") { - var node = { - type: "set", - attributes: parseTreeNode.attributes, - params: parseTreeNode.params, - isMacroDefinition: parseTreeNode.isMacroDefinition - }; - if (parseTreeNode.isMacroDefinition) { - // Macro definitions can be folded into - // current widget instead of adding - // another link to the chain. - var widget = widgetPointer.makeChildWidget(node); - widget.computeAttributes(); - widget.execute(); - // We SHALLOW copy over all variables - // in widget. We can't use - // $tw.utils.assign, because that copies - // up the prototype chain, which we - // don't want. - $tw.utils.each(Object.keys(widget.variables), function(key) { - widgetPointer.variables[key] = widget.variables[key]; - }); - } else { - widgetPointer.makeChildWidgets([node]); - widgetPointer = widgetPointer.children[0]; - } - parseTreeNode = parseTreeNode.children && parseTreeNode.children[0]; - } - } - }); - - if (widgetPointer != this) { - widgetPointer.parseTreeNode.children = this.parseTreeNode.children; - } else { - widgetPointer.makeChildWidgets(); - } -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -ImportVariablesWidget.prototype.refresh = function(changedTiddlers) { - // Recompute our attributes and the filter list - var changedAttributes = this.computeAttributes(), - tiddlerList = this.wiki.filterTiddlers(this.getAttribute("filter"),this); - // Refresh if the filter has changed, or the list of tiddlers has changed, or any of the tiddlers in the list has changed - function haveListedTiddlersChanged() { - var changed = false; - tiddlerList.forEach(function(title) { - if(changedTiddlers[title]) { - changed = true; - } - }); - return changed; - } - if(changedAttributes.filter || !$tw.utils.isArrayEqual(this.tiddlerList,tiddlerList) || haveListedTiddlersChanged()) { - // Compute the filter - this.removeChildDomNodes(); - this.execute(tiddlerList); - this.renderChildren(this.parentDomNode,this.findNextSiblingDomNode()); - return true; - } else { - return this.refreshChildren(changedTiddlers); - } -}; - -exports.importvariables = ImportVariablesWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/keyboard.js -type: application/javascript -module-type: widget - -Keyboard shortcut widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var KeyboardWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -KeyboardWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -KeyboardWidget.prototype.render = function(parent,nextSibling) { - var self = this; - // Remember parent - this.parentDomNode = parent; - // Compute attributes and execute state - this.computeAttributes(); - this.execute(); - var tag = this.parseTreeNode.isBlock ? "div" : "span"; - if(this.tag && $tw.config.htmlUnsafeElements.indexOf(this.tag) === -1) { - tag = this.tag; - } - // Create element - var domNode = this.document.createElement(tag); - // Assign classes - var classes = (this["class"] || "").split(" "); - classes.push("tc-keyboard"); - domNode.className = classes.join(" "); - // Add a keyboard event handler - domNode.addEventListener("keydown",function (event) { - if($tw.keyboardManager.checkKeyDescriptors(event,self.keyInfoArray)) { - self.invokeActions(self,event); - if(self.actions) { - self.invokeActionString(self.actions,self,event); - } - self.dispatchMessage(event); - event.preventDefault(); - event.stopPropagation(); - return true; - } - return false; - },false); - // Insert element - parent.insertBefore(domNode,nextSibling); - this.renderChildren(domNode,null); - this.domNodes.push(domNode); -}; - -KeyboardWidget.prototype.dispatchMessage = function(event) { - this.dispatchEvent({type: this.message, param: this.param, tiddlerTitle: this.getVariable("currentTiddler")}); -}; - -/* -Compute the internal state of the widget -*/ -KeyboardWidget.prototype.execute = function() { - var self = this; - // Get attributes - this.actions = this.getAttribute("actions",""); - this.message = this.getAttribute("message",""); - this.param = this.getAttribute("param",""); - this.key = this.getAttribute("key",""); - this.tag = this.getAttribute("tag",""); - this.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key); - this["class"] = this.getAttribute("class",""); - if(this.key.substr(0,2) === "((" && this.key.substr(-2,2) === "))") { - this.shortcutTiddlers = []; - var name = this.key.substring(2,this.key.length -2); - $tw.utils.each($tw.keyboardManager.lookupNames,function(platformDescriptor) { - self.shortcutTiddlers.push("$:/config/" + platformDescriptor + "/" + name); - }); - } - // Make child widgets - this.makeChildWidgets(); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -KeyboardWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.message || changedAttributes.param || changedAttributes.key || changedAttributes["class"] || changedAttributes.tag) { - this.refreshSelf(); - return true; - } - // Update the keyInfoArray if one of its shortcut-config-tiddlers has changed - if(this.shortcutTiddlers && $tw.utils.hopArray(changedTiddlers,this.shortcutTiddlers)) { - this.keyInfoArray = $tw.keyboardManager.parseKeyDescriptors(this.key); - } - return this.refreshChildren(changedTiddlers); -}; - -exports.keyboard = KeyboardWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/link.js -type: application/javascript -module-type: widget - -Link widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var LinkWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -LinkWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -LinkWidget.prototype.render = function(parent,nextSibling) { - // Save the parent dom node - this.parentDomNode = parent; - // Compute our attributes - this.computeAttributes(); - // Execute our logic - this.execute(); - // Get the value of the tv-wikilinks configuration macro - var wikiLinksMacro = this.getVariable("tv-wikilinks"), - useWikiLinks = wikiLinksMacro ? (wikiLinksMacro.trim() !== "no") : true, - missingLinksEnabled = !(this.hideMissingLinks && this.isMissing && !this.isShadow); - // Render the link if required - if(useWikiLinks && missingLinksEnabled) { - this.renderLink(parent,nextSibling); - } else { - // Just insert the link text - var domNode = this.document.createElement("span"); - parent.insertBefore(domNode,nextSibling); - this.renderChildren(domNode,null); - this.domNodes.push(domNode); - } -}; - -/* -Render this widget into the DOM -*/ -LinkWidget.prototype.renderLink = function(parent,nextSibling) { - var self = this; - // Sanitise the specified tag - var tag = this.linkTag; - if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) { - tag = "a"; - } - // Create our element - var domNode = this.document.createElement(tag); - // Assign classes - var classes = []; - if(this.overrideClasses === undefined) { - classes.push("tc-tiddlylink"); - if(this.isShadow) { - classes.push("tc-tiddlylink-shadow"); - } - if(this.isMissing && !this.isShadow) { - classes.push("tc-tiddlylink-missing"); - } else { - if(!this.isMissing) { - classes.push("tc-tiddlylink-resolves"); - } - } - if(this.linkClasses) { - classes.push(this.linkClasses); - } - } else if(this.overrideClasses !== "") { - classes.push(this.overrideClasses) - } - if(classes.length > 0) { - domNode.setAttribute("class",classes.join(" ")); - } - // Set an href - var wikilinkTransformFilter = this.getVariable("tv-filter-export-link"), - wikiLinkText; - if(wikilinkTransformFilter) { - // Use the filter to construct the href - wikiLinkText = this.wiki.filterTiddlers(wikilinkTransformFilter,this,function(iterator) { - iterator(self.wiki.getTiddler(self.to),self.to) - })[0]; - } else { - // Expand the tv-wikilink-template variable to construct the href - var wikiLinkTemplateMacro = this.getVariable("tv-wikilink-template"), - wikiLinkTemplate = wikiLinkTemplateMacro ? wikiLinkTemplateMacro.trim() : "#$uri_encoded$"; - wikiLinkText = $tw.utils.replaceString(wikiLinkTemplate,"$uri_encoded$",encodeURIComponent(this.to)); - wikiLinkText = $tw.utils.replaceString(wikiLinkText,"$uri_doubleencoded$",encodeURIComponent(encodeURIComponent(this.to))); - } - // Override with the value of tv-get-export-link if defined - wikiLinkText = this.getVariable("tv-get-export-link",{params: [{name: "to",value: this.to}],defaultValue: wikiLinkText}); - if(tag === "a") { - domNode.setAttribute("href",wikiLinkText); - } - // Set the tabindex - if(this.tabIndex) { - domNode.setAttribute("tabindex",this.tabIndex); - } - // Set the tooltip - // HACK: Performance issues with re-parsing the tooltip prevent us defaulting the tooltip to "<$transclude field='tooltip'><$transclude field='title'/></$transclude>" - var tooltipWikiText = this.tooltip || this.getVariable("tv-wikilink-tooltip"); - if(tooltipWikiText) { - var tooltipText = this.wiki.renderText("text/plain","text/vnd.tiddlywiki",tooltipWikiText,{ - parseAsInline: true, - variables: { - currentTiddler: this.to - }, - parentWidget: this - }); - domNode.setAttribute("title",tooltipText); - } - if(this["aria-label"]) { - domNode.setAttribute("aria-label",this["aria-label"]); - } - // Add a click event handler - $tw.utils.addEventListeners(domNode,[ - {name: "click", handlerObject: this, handlerMethod: "handleClickEvent"}, - ]); - // Make the link draggable if required - if(this.draggable === "yes") { - $tw.utils.makeDraggable({ - domNode: domNode, - dragTiddlerFn: function() {return self.to;}, - widget: this - }); - } - // Insert the link into the DOM and render any children - parent.insertBefore(domNode,nextSibling); - this.renderChildren(domNode,null); - this.domNodes.push(domNode); -}; - -LinkWidget.prototype.handleClickEvent = function(event) { - // Send the click on its way as a navigate event - var bounds = this.domNodes[0].getBoundingClientRect(); - this.dispatchEvent({ - type: "tm-navigate", - navigateTo: this.to, - navigateFromTitle: this.getVariable("storyTiddler"), - navigateFromNode: this, - navigateFromClientRect: { top: bounds.top, left: bounds.left, width: bounds.width, right: bounds.right, bottom: bounds.bottom, height: bounds.height - }, - navigateSuppressNavigation: event.metaKey || event.ctrlKey || (event.button === 1), - metaKey: event.metaKey, - ctrlKey: event.ctrlKey, - altKey: event.altKey, - shiftKey: event.shiftKey - }); - if(this.domNodes[0].hasAttribute("href")) { - event.preventDefault(); - } - event.stopPropagation(); - return false; -}; - -/* -Compute the internal state of the widget -*/ -LinkWidget.prototype.execute = function() { - // Pick up our attributes - this.to = this.getAttribute("to",this.getVariable("currentTiddler")); - this.tooltip = this.getAttribute("tooltip"); - this["aria-label"] = this.getAttribute("aria-label"); - this.linkClasses = this.getAttribute("class"); - this.overrideClasses = this.getAttribute("overrideClass"); - this.tabIndex = this.getAttribute("tabindex"); - this.draggable = this.getAttribute("draggable","yes"); - this.linkTag = this.getAttribute("tag","a"); - // Determine the link characteristics - this.isMissing = !this.wiki.tiddlerExists(this.to); - this.isShadow = this.wiki.isShadowTiddler(this.to); - this.hideMissingLinks = (this.getVariable("tv-show-missing-links") || "yes") === "no"; - // Make the child widgets - var templateTree; - if(this.parseTreeNode.children && this.parseTreeNode.children.length > 0) { - templateTree = this.parseTreeNode.children; - } else { - // Default template is a link to the title - templateTree = [{type: "text", text: this.to}]; - } - this.makeChildWidgets(templateTree); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -LinkWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.to || changedTiddlers[this.to] || changedAttributes["aria-label"] || changedAttributes.tooltip) { - this.refreshSelf(); - return true; - } - return this.refreshChildren(changedTiddlers); -}; - -exports.link = LinkWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/linkcatcher.js -type: application/javascript -module-type: widget - -Linkcatcher widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var LinkCatcherWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); - this.addEventListeners([ - {type: "tm-navigate", handler: "handleNavigateEvent"} - ]); -}; - -/* -Inherit from the base widget class -*/ -LinkCatcherWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -LinkCatcherWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -/* -Compute the internal state of the widget -*/ -LinkCatcherWidget.prototype.execute = function() { - // Get our parameters - this.catchTo = this.getAttribute("to"); - this.catchMessage = this.getAttribute("message"); - this.catchSet = this.getAttribute("set"); - this.catchSetTo = this.getAttribute("setTo"); - this.catchActions = this.getAttribute("actions"); - // Construct the child widgets - this.makeChildWidgets(); - // When executing actions we avoid trapping navigate events, so that we don't trigger ourselves recursively - this.executingActions = false; -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -LinkCatcherWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.to || changedAttributes.message || changedAttributes.set || changedAttributes.setTo) { - this.refreshSelf(); - return true; - } else { - return this.refreshChildren(changedTiddlers); - } -}; - -/* -Handle a tm-navigate event -*/ -LinkCatcherWidget.prototype.handleNavigateEvent = function(event) { - if(!this.executingActions) { - // Execute the actions - if(this.catchTo) { - this.wiki.setTextReference(this.catchTo,event.navigateTo,this.getVariable("currentTiddler")); - } - if(this.catchMessage && this.parentWidget) { - this.parentWidget.dispatchEvent({ - type: this.catchMessage, - param: event.navigateTo, - navigateTo: event.navigateTo - }); - } - if(this.catchSet) { - var tiddler = this.wiki.getTiddler(this.catchSet); - this.wiki.addTiddler(new $tw.Tiddler(tiddler,{title: this.catchSet, text: this.catchSetTo})); - } - if(this.catchActions) { - this.executingActions = true; - this.invokeActionString(this.catchActions,this,event,{navigateTo: event.navigateTo}); - this.executingActions = false; - } - } else { - // This is a navigate event generated by the actions of this linkcatcher, so we don't trap it again, but just pass it to the parent - this.parentWidget.dispatchEvent({ - type: "tm-navigate", - param: event.navigateTo, - navigateTo: event.navigateTo - }); - } - return false; -}; - -exports.linkcatcher = LinkCatcherWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/list.js -type: application/javascript -module-type: widget - -List and list item widgets - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -/* -The list widget creates list element sub-widgets that reach back into the list widget for their configuration -*/ - -var ListWidget = function(parseTreeNode,options) { - // Initialise the storyviews if they've not been done already - if(!this.storyViews) { - ListWidget.prototype.storyViews = {}; - $tw.modules.applyMethods("storyview",this.storyViews); - } - // Main initialisation inherited from widget.js - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -ListWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -ListWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); - // Construct the storyview - var StoryView = this.storyViews[this.storyViewName]; - if(this.storyViewName && !StoryView) { - StoryView = this.storyViews["classic"]; - } - if(StoryView && !this.document.isTiddlyWikiFakeDom) { - this.storyview = new StoryView(this); - } else { - this.storyview = null; - } -}; - -/* -Compute the internal state of the widget -*/ -ListWidget.prototype.execute = function() { - // Get our attributes - this.template = this.getAttribute("template"); - this.editTemplate = this.getAttribute("editTemplate"); - this.variableName = this.getAttribute("variable","currentTiddler"); - this.storyViewName = this.getAttribute("storyview"); - this.historyTitle = this.getAttribute("history"); - // Compose the list elements - this.list = this.getTiddlerList(); - var members = [], - self = this; - // Check for an empty list - if(this.list.length === 0) { - members = this.getEmptyMessage(); - } else { - $tw.utils.each(this.list,function(title,index) { - members.push(self.makeItemTemplate(title)); - }); - } - // Construct the child widgets - this.makeChildWidgets(members); - // Clear the last history - this.history = []; -}; - -ListWidget.prototype.getTiddlerList = function() { - var defaultFilter = "[!is[system]sort[title]]"; - return this.wiki.filterTiddlers(this.getAttribute("filter",defaultFilter),this); -}; - -ListWidget.prototype.getEmptyMessage = function() { - var emptyMessage = this.getAttribute("emptyMessage",""), - parser = this.wiki.parseText("text/vnd.tiddlywiki",emptyMessage,{parseAsInline: true}); - if(parser) { - return parser.tree; - } else { - return []; - } -}; - -/* -Compose the template for a list item -*/ -ListWidget.prototype.makeItemTemplate = function(title) { - // Check if the tiddler is a draft - var tiddler = this.wiki.getTiddler(title), - isDraft = tiddler && tiddler.hasField("draft.of"), - template = this.template, - templateTree; - if(isDraft && this.editTemplate) { - template = this.editTemplate; - } - // Compose the transclusion of the template - if(template) { - templateTree = [{type: "transclude", attributes: {tiddler: {type: "string", value: template}}}]; - } else { - if(this.parseTreeNode.children && this.parseTreeNode.children.length > 0) { - templateTree = this.parseTreeNode.children; - } else { - // Default template is a link to the title - templateTree = [{type: "element", tag: this.parseTreeNode.isBlock ? "div" : "span", children: [{type: "link", attributes: {to: {type: "string", value: title}}, children: [ - {type: "text", text: title} - ]}]}]; - } - } - // Return the list item - return {type: "listitem", itemTitle: title, variableName: this.variableName, children: templateTree}; -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -ListWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(), - result; - // Call the storyview - if(this.storyview && this.storyview.refreshStart) { - this.storyview.refreshStart(changedTiddlers,changedAttributes); - } - // Completely refresh if any of our attributes have changed - if(changedAttributes.filter || changedAttributes.template || changedAttributes.editTemplate || changedAttributes.emptyMessage || changedAttributes.storyview || changedAttributes.history) { - this.refreshSelf(); - result = true; - } else { - // Handle any changes to the list - result = this.handleListChanges(changedTiddlers); - // Handle any changes to the history stack - if(this.historyTitle && changedTiddlers[this.historyTitle]) { - this.handleHistoryChanges(); - } - } - // Call the storyview - if(this.storyview && this.storyview.refreshEnd) { - this.storyview.refreshEnd(changedTiddlers,changedAttributes); - } - return result; -}; - -/* -Handle any changes to the history list -*/ -ListWidget.prototype.handleHistoryChanges = function() { - // Get the history data - var newHistory = this.wiki.getTiddlerDataCached(this.historyTitle,[]); - // Ignore any entries of the history that match the previous history - var entry = 0; - while(entry < newHistory.length && entry < this.history.length && newHistory[entry].title === this.history[entry].title) { - entry++; - } - // Navigate forwards to each of the new tiddlers - while(entry < newHistory.length) { - if(this.storyview && this.storyview.navigateTo) { - this.storyview.navigateTo(newHistory[entry]); - } - entry++; - } - // Update the history - this.history = newHistory; -}; - -/* -Process any changes to the list -*/ -ListWidget.prototype.handleListChanges = function(changedTiddlers) { - // Get the new list - var prevList = this.list; - this.list = this.getTiddlerList(); - // Check for an empty list - if(this.list.length === 0) { - // Check if it was empty before - if(prevList.length === 0) { - // If so, just refresh the empty message - return this.refreshChildren(changedTiddlers); - } else { - // Replace the previous content with the empty message - for(t=this.children.length-1; t>=0; t--) { - this.removeListItem(t); - } - var nextSibling = this.findNextSiblingDomNode(); - this.makeChildWidgets(this.getEmptyMessage()); - this.renderChildren(this.parentDomNode,nextSibling); - return true; - } - } else { - // If the list was empty then we need to remove the empty message - if(prevList.length === 0) { - this.removeChildDomNodes(); - this.children = []; - } - // Cycle through the list, inserting and removing list items as needed - var hasRefreshed = false; - for(var t=0; t<this.list.length; t++) { - var index = this.findListItem(t,this.list[t]); - if(index === undefined) { - // The list item must be inserted - this.insertListItem(t,this.list[t]); - hasRefreshed = true; - } else { - // There are intervening list items that must be removed - for(var n=index-1; n>=t; n--) { - this.removeListItem(n); - hasRefreshed = true; - } - // Refresh the item we're reusing - var refreshed = this.children[t].refresh(changedTiddlers); - hasRefreshed = hasRefreshed || refreshed; - } - } - // Remove any left over items - for(t=this.children.length-1; t>=this.list.length; t--) { - this.removeListItem(t); - hasRefreshed = true; - } - return hasRefreshed; - } -}; - -/* -Find the list item with a given title, starting from a specified position -*/ -ListWidget.prototype.findListItem = function(startIndex,title) { - while(startIndex < this.children.length) { - if(this.children[startIndex].parseTreeNode.itemTitle === title) { - return startIndex; - } - startIndex++; - } - return undefined; -}; - -/* -Insert a new list item at the specified index -*/ -ListWidget.prototype.insertListItem = function(index,title) { - // Create, insert and render the new child widgets - var widget = this.makeChildWidget(this.makeItemTemplate(title)); - widget.parentDomNode = this.parentDomNode; // Hack to enable findNextSiblingDomNode() to work - this.children.splice(index,0,widget); - var nextSibling = widget.findNextSiblingDomNode(); - widget.render(this.parentDomNode,nextSibling); - // Animate the insertion if required - if(this.storyview && this.storyview.insert) { - this.storyview.insert(widget); - } - return true; -}; - -/* -Remove the specified list item -*/ -ListWidget.prototype.removeListItem = function(index) { - var widget = this.children[index]; - // Animate the removal if required - if(this.storyview && this.storyview.remove) { - this.storyview.remove(widget); - } else { - widget.removeChildDomNodes(); - } - // Remove the child widget - this.children.splice(index,1); -}; - -exports.list = ListWidget; - -var ListItemWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -ListItemWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -ListItemWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -/* -Compute the internal state of the widget -*/ -ListItemWidget.prototype.execute = function() { - // Set the current list item title - this.setVariable(this.parseTreeNode.variableName,this.parseTreeNode.itemTitle); - // Construct the child widgets - this.makeChildWidgets(); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -ListItemWidget.prototype.refresh = function(changedTiddlers) { - return this.refreshChildren(changedTiddlers); -}; - -exports.listitem = ListItemWidget; - -})();-
/*\ -title: $:/core/modules/widgets/macrocall.js -type: application/javascript -module-type: widget - -Macrocall widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var MacroCallWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -MacroCallWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -MacroCallWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -/* -Compute the internal state of the widget -*/ -MacroCallWidget.prototype.execute = function() { - // Get the parse type if specified - this.parseType = this.getAttribute("$type","text/vnd.tiddlywiki"); - this.renderOutput = this.getAttribute("$output","text/html"); - // Merge together the parameters specified in the parse tree with the specified attributes - var params = this.parseTreeNode.params ? this.parseTreeNode.params.slice(0) : []; - $tw.utils.each(this.attributes,function(attribute,name) { - if(name.charAt(0) !== "$") { - params.push({name: name, value: attribute}); - } - }); - // Get the macro value - var macroName = this.parseTreeNode.name || this.getAttribute("$name"), - variableInfo = this.getVariableInfo(macroName,{params: params}), - text = variableInfo.text, - parseTreeNodes; - // Are we rendering to HTML? - if(this.renderOutput === "text/html") { - // If so we'll return the parsed macro - var parser = this.wiki.parseText(this.parseType,text, - {parseAsInline: !this.parseTreeNode.isBlock}); - parseTreeNodes = parser ? parser.tree : []; - // Wrap the parse tree in a vars widget assigning the parameters to variables named "__paramname__" - var attributes = {}; - $tw.utils.each(variableInfo.params,function(param) { - var name = "__" + param.name + "__"; - attributes[name] = { - name: name, - type: "string", - value: param.value - }; - }); - parseTreeNodes = [{ - type: "vars", - attributes: attributes, - children: parseTreeNodes - }]; - } else { - // Otherwise, we'll render the text - var plainText = this.wiki.renderText("text/plain",this.parseType,text,{parentWidget: this}); - parseTreeNodes = [{type: "text", text: plainText}]; - } - // Construct the child widgets - this.makeChildWidgets(parseTreeNodes); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -MacroCallWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if($tw.utils.count(changedAttributes) > 0) { - // Rerender ourselves - this.refreshSelf(); - return true; - } else { - return this.refreshChildren(changedTiddlers); - } -}; - -exports.macrocall = MacroCallWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/navigator.js -type: application/javascript -module-type: widget - -Navigator widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var IMPORT_TITLE = "$:/Import"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var NavigatorWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); - this.addEventListeners([ - {type: "tm-navigate", handler: "handleNavigateEvent"}, - {type: "tm-edit-tiddler", handler: "handleEditTiddlerEvent"}, - {type: "tm-delete-tiddler", handler: "handleDeleteTiddlerEvent"}, - {type: "tm-save-tiddler", handler: "handleSaveTiddlerEvent"}, - {type: "tm-cancel-tiddler", handler: "handleCancelTiddlerEvent"}, - {type: "tm-close-tiddler", handler: "handleCloseTiddlerEvent"}, - {type: "tm-close-all-tiddlers", handler: "handleCloseAllTiddlersEvent"}, - {type: "tm-close-other-tiddlers", handler: "handleCloseOtherTiddlersEvent"}, - {type: "tm-new-tiddler", handler: "handleNewTiddlerEvent"}, - {type: "tm-import-tiddlers", handler: "handleImportTiddlersEvent"}, - {type: "tm-perform-import", handler: "handlePerformImportEvent"}, - {type: "tm-fold-tiddler", handler: "handleFoldTiddlerEvent"}, - {type: "tm-fold-other-tiddlers", handler: "handleFoldOtherTiddlersEvent"}, - {type: "tm-fold-all-tiddlers", handler: "handleFoldAllTiddlersEvent"}, - {type: "tm-unfold-all-tiddlers", handler: "handleUnfoldAllTiddlersEvent"}, - {type: "tm-rename-tiddler", handler: "handleRenameTiddlerEvent"} - ]); -}; - -/* -Inherit from the base widget class -*/ -NavigatorWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -NavigatorWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -/* -Compute the internal state of the widget -*/ -NavigatorWidget.prototype.execute = function() { - // Get our parameters - this.storyTitle = this.getAttribute("story"); - this.historyTitle = this.getAttribute("history"); - this.setVariable("tv-story-list",this.storyTitle); - this.setVariable("tv-history-list",this.historyTitle); - // Construct the child widgets - this.makeChildWidgets(); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -NavigatorWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.story || changedAttributes.history) { - this.refreshSelf(); - return true; - } else { - return this.refreshChildren(changedTiddlers); - } -}; - -NavigatorWidget.prototype.getStoryList = function() { - return this.storyTitle ? this.wiki.getTiddlerList(this.storyTitle) : null; -}; - -NavigatorWidget.prototype.saveStoryList = function(storyList) { - if(this.storyTitle) { - var storyTiddler = this.wiki.getTiddler(this.storyTitle); - this.wiki.addTiddler(new $tw.Tiddler( - {title: this.storyTitle}, - storyTiddler, - {list: storyList} - )); - } -}; - -NavigatorWidget.prototype.removeTitleFromStory = function(storyList,title) { - if(storyList) { - var p = storyList.indexOf(title); - while(p !== -1) { - storyList.splice(p,1); - p = storyList.indexOf(title); - } - } -}; - -NavigatorWidget.prototype.replaceFirstTitleInStory = function(storyList,oldTitle,newTitle) { - if(storyList) { - var pos = storyList.indexOf(oldTitle); - if(pos !== -1) { - storyList[pos] = newTitle; - do { - pos = storyList.indexOf(oldTitle,pos + 1); - if(pos !== -1) { - storyList.splice(pos,1); - } - } while(pos !== -1); - } else { - storyList.splice(0,0,newTitle); - } - } -}; - -NavigatorWidget.prototype.addToStory = function(title,fromTitle) { - if(this.storyTitle) { - this.wiki.addToStory(title,fromTitle,this.storyTitle,{ - openLinkFromInsideRiver: this.getAttribute("openLinkFromInsideRiver","top"), - openLinkFromOutsideRiver: this.getAttribute("openLinkFromOutsideRiver","top") - }); - } -}; - -/* -Add a new record to the top of the history stack -title: a title string or an array of title strings -fromPageRect: page coordinates of the origin of the navigation -*/ -NavigatorWidget.prototype.addToHistory = function(title,fromPageRect) { - this.wiki.addToHistory(title,fromPageRect,this.historyTitle); -}; - -/* -Handle a tm-navigate event -*/ -NavigatorWidget.prototype.handleNavigateEvent = function(event) { - event = $tw.hooks.invokeHook("th-navigating",event); - if(event.navigateTo) { - this.addToStory(event.navigateTo,event.navigateFromTitle); - if(!event.navigateSuppressNavigation) { - this.addToHistory(event.navigateTo,event.navigateFromClientRect); - } - } - return false; -}; - -// Close a specified tiddler -NavigatorWidget.prototype.handleCloseTiddlerEvent = function(event) { - var title = event.param || event.tiddlerTitle, - storyList = this.getStoryList(); - // Look for tiddlers with this title to close - this.removeTitleFromStory(storyList,title); - this.saveStoryList(storyList); - return false; -}; - -// Close all tiddlers -NavigatorWidget.prototype.handleCloseAllTiddlersEvent = function(event) { - this.saveStoryList([]); - return false; -}; - -// Close other tiddlers -NavigatorWidget.prototype.handleCloseOtherTiddlersEvent = function(event) { - var title = event.param || event.tiddlerTitle; - this.saveStoryList([title]); - return false; -}; - -// Place a tiddler in edit mode -NavigatorWidget.prototype.handleEditTiddlerEvent = function(event) { - var editTiddler = $tw.hooks.invokeHook("th-editing-tiddler",event); - if(!editTiddler) { - return false; - } - var self = this; - function isUnmodifiedShadow(title) { - return self.wiki.isShadowTiddler(title) && !self.wiki.tiddlerExists(title); - } - function confirmEditShadow(title) { - return confirm($tw.language.getString( - "ConfirmEditShadowTiddler", - {variables: - {title: title} - } - )); - } - var title = event.param || event.tiddlerTitle; - if(isUnmodifiedShadow(title) && !confirmEditShadow(title)) { - return false; - } - // Replace the specified tiddler with a draft in edit mode - var draftTiddler = this.makeDraftTiddler(title); - // Update the story and history if required - if(!event.paramObject || event.paramObject.suppressNavigation !== "yes") { - var draftTitle = draftTiddler.fields.title, - storyList = this.getStoryList(); - this.removeTitleFromStory(storyList,draftTitle); - this.replaceFirstTitleInStory(storyList,title,draftTitle); - this.addToHistory(draftTitle,event.navigateFromClientRect); - this.saveStoryList(storyList); - return false; - } -}; - -// Delete a tiddler -NavigatorWidget.prototype.handleDeleteTiddlerEvent = function(event) { - // Get the tiddler we're deleting - var title = event.param || event.tiddlerTitle, - tiddler = this.wiki.getTiddler(title), - storyList = this.getStoryList(), - originalTitle = tiddler ? tiddler.fields["draft.of"] : "", - originalTiddler = originalTitle ? this.wiki.getTiddler(originalTitle) : undefined, - confirmationTitle; - if(!tiddler) { - return false; - } - // Check if the tiddler we're deleting is in draft mode - if(originalTitle) { - // If so, we'll prompt for confirmation referencing the original tiddler - confirmationTitle = originalTitle; - } else { - // If not a draft, then prompt for confirmation referencing the specified tiddler - confirmationTitle = title; - } - // Seek confirmation - if((this.wiki.getTiddler(originalTitle) || (tiddler.fields.text || "") !== "") && !confirm($tw.language.getString( - "ConfirmDeleteTiddler", - {variables: - {title: confirmationTitle} - } - ))) { - return false; - } - // Delete the original tiddler - if(originalTitle) { - if(originalTiddler) { - $tw.hooks.invokeHook("th-deleting-tiddler",originalTiddler); - } - this.wiki.deleteTiddler(originalTitle); - this.removeTitleFromStory(storyList,originalTitle); - } - // Invoke the hook function and delete this tiddler - $tw.hooks.invokeHook("th-deleting-tiddler",tiddler); - this.wiki.deleteTiddler(title); - // Remove the closed tiddler from the story - this.removeTitleFromStory(storyList,title); - this.saveStoryList(storyList); - // Trigger an autosave - $tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"}); - return false; -}; - -/* -Create/reuse the draft tiddler for a given title -*/ -NavigatorWidget.prototype.makeDraftTiddler = function(targetTitle) { - // See if there is already a draft tiddler for this tiddler - var draftTitle = this.wiki.findDraft(targetTitle); - if(draftTitle) { - return this.wiki.getTiddler(draftTitle); - } - // Get the current value of the tiddler we're editing - var tiddler = this.wiki.getTiddler(targetTitle); - // Save the initial value of the draft tiddler - draftTitle = this.generateDraftTitle(targetTitle); - var draftTiddler = new $tw.Tiddler( - tiddler, - { - title: draftTitle, - "draft.title": targetTitle, - "draft.of": targetTitle - }, - this.wiki.getModificationFields() - ); - this.wiki.addTiddler(draftTiddler); - return draftTiddler; -}; - -/* -Generate a title for the draft of a given tiddler -*/ -NavigatorWidget.prototype.generateDraftTitle = function(title) { - return this.wiki.generateDraftTitle(title); -}; - -// Take a tiddler out of edit mode, saving the changes -NavigatorWidget.prototype.handleSaveTiddlerEvent = function(event) { - var title = event.param || event.tiddlerTitle, - tiddler = this.wiki.getTiddler(title), - storyList = this.getStoryList(); - // Replace the original tiddler with the draft - if(tiddler) { - var draftTitle = (tiddler.fields["draft.title"] || "").trim(), - draftOf = (tiddler.fields["draft.of"] || "").trim(); - if(draftTitle) { - var isRename = draftOf !== draftTitle, - isConfirmed = true; - if(isRename && this.wiki.tiddlerExists(draftTitle)) { - isConfirmed = confirm($tw.language.getString( - "ConfirmOverwriteTiddler", - {variables: - {title: draftTitle} - } - )); - } - if(isConfirmed) { - // Create the new tiddler and pass it through the th-saving-tiddler hook - var newTiddler = new $tw.Tiddler(this.wiki.getCreationFields(),tiddler,{ - title: draftTitle, - "draft.title": undefined, - "draft.of": undefined - },this.wiki.getModificationFields()); - newTiddler = $tw.hooks.invokeHook("th-saving-tiddler",newTiddler); - this.wiki.addTiddler(newTiddler); - // If enabled, relink references to renamed tiddler - var shouldRelink = this.getAttribute("relinkOnRename","no").toLowerCase().trim() === "yes"; - if(isRename && shouldRelink && this.wiki.tiddlerExists(draftOf)) { -console.log("Relinking '" + draftOf + "' to '" + draftTitle + "'"); - this.wiki.relinkTiddler(draftOf,draftTitle); - } - // Remove the draft tiddler - this.wiki.deleteTiddler(title); - // Remove the original tiddler if we're renaming it - if(isRename) { - this.wiki.deleteTiddler(draftOf); - } - // #2381 always remove new title & old - this.removeTitleFromStory(storyList,draftTitle); - this.removeTitleFromStory(storyList,draftOf); - if(!event.paramObject || event.paramObject.suppressNavigation !== "yes") { - // Replace the draft in the story with the original - this.replaceFirstTitleInStory(storyList,title,draftTitle); - this.addToHistory(draftTitle,event.navigateFromClientRect); - if(draftTitle !== this.storyTitle) { - this.saveStoryList(storyList); - } - } - // Trigger an autosave - $tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"}); - } - } - } - return false; -}; - -// Take a tiddler out of edit mode without saving the changes -NavigatorWidget.prototype.handleCancelTiddlerEvent = function(event) { - event = $tw.hooks.invokeHook("th-cancelling-tiddler", event); - // Flip the specified tiddler from draft back to the original - var draftTitle = event.param || event.tiddlerTitle, - draftTiddler = this.wiki.getTiddler(draftTitle), - originalTitle = draftTiddler && draftTiddler.fields["draft.of"]; - if(draftTiddler && originalTitle) { - // Ask for confirmation if the tiddler text has changed - var isConfirmed = true, - originalTiddler = this.wiki.getTiddler(originalTitle), - storyList = this.getStoryList(); - if(this.wiki.isDraftModified(draftTitle)) { - isConfirmed = confirm($tw.language.getString( - "ConfirmCancelTiddler", - {variables: - {title: draftTitle} - } - )); - } - // Remove the draft tiddler - if(isConfirmed) { - this.wiki.deleteTiddler(draftTitle); - if(!event.paramObject || event.paramObject.suppressNavigation !== "yes") { - if(originalTiddler) { - this.replaceFirstTitleInStory(storyList,draftTitle,originalTitle); - this.addToHistory(originalTitle,event.navigateFromClientRect); - } else { - this.removeTitleFromStory(storyList,draftTitle); - } - this.saveStoryList(storyList); - } - } - } - return false; -}; - -// Create a new draft tiddler -// event.param can either be the title of a template tiddler, or a hashmap of fields. -// -// The title of the newly created tiddler follows these rules: -// * If a hashmap was used and a title field was specified, use that title -// * If a hashmap was used without a title field, use a default title, if necessary making it unique with a numeric suffix -// * If a template tiddler was used, use the title of the template, if necessary making it unique with a numeric suffix -// -// If a draft of the target tiddler already exists then it is reused -NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) { - event = $tw.hooks.invokeHook("th-new-tiddler", event); - // Get the story details - var storyList = this.getStoryList(), - templateTiddler, additionalFields, title, draftTitle, existingTiddler; - // Get the template tiddler (if any) - if(typeof event.param === "string") { - // Get the template tiddler - templateTiddler = this.wiki.getTiddler(event.param); - // Generate a new title - title = this.wiki.generateNewTitle(event.param || $tw.language.getString("DefaultNewTiddlerTitle")); - } - // Get the specified additional fields - if(typeof event.paramObject === "object") { - additionalFields = event.paramObject; - } - if(typeof event.param === "object") { // Backwards compatibility with 5.1.3 - additionalFields = event.param; - } - if(additionalFields && additionalFields.title) { - title = additionalFields.title; - } - // Make a copy of the additional fields excluding any blank ones - var filteredAdditionalFields = $tw.utils.extend({},additionalFields); - Object.keys(filteredAdditionalFields).forEach(function(fieldName) { - if(filteredAdditionalFields[fieldName] === "") { - delete filteredAdditionalFields[fieldName]; - } - }); - // Generate a title if we don't have one - title = title || this.wiki.generateNewTitle($tw.language.getString("DefaultNewTiddlerTitle")); - // Find any existing draft for this tiddler - draftTitle = this.wiki.findDraft(title); - // Pull in any existing tiddler - if(draftTitle) { - existingTiddler = this.wiki.getTiddler(draftTitle); - } else { - draftTitle = this.generateDraftTitle(title); - existingTiddler = this.wiki.getTiddler(title); - } - // Merge the tags - var mergedTags = []; - if(existingTiddler && existingTiddler.fields.tags) { - $tw.utils.pushTop(mergedTags,existingTiddler.fields.tags); - } - if(additionalFields && additionalFields.tags) { - // Merge tags - mergedTags = $tw.utils.pushTop(mergedTags,$tw.utils.parseStringArray(additionalFields.tags)); - } - if(templateTiddler && templateTiddler.fields.tags) { - // Merge tags - mergedTags = $tw.utils.pushTop(mergedTags,templateTiddler.fields.tags); - } - // Save the draft tiddler - var draftTiddler = new $tw.Tiddler({ - text: "", - "draft.title": title - }, - templateTiddler, - additionalFields, - this.wiki.getCreationFields(), - existingTiddler, - filteredAdditionalFields, - { - title: draftTitle, - "draft.of": title, - tags: mergedTags - },this.wiki.getModificationFields()); - this.wiki.addTiddler(draftTiddler); - // Update the story to insert the new draft at the top and remove any existing tiddler - if(storyList && storyList.indexOf(draftTitle) === -1) { - var slot = storyList.indexOf(event.navigateFromTitle); - if(slot === -1) { - slot = this.getAttribute("openLinkFromOutsideRiver","top") === "bottom" ? storyList.length - 1 : slot; - } - storyList.splice(slot + 1,0,draftTitle); - } - if(storyList && storyList.indexOf(title) !== -1) { - storyList.splice(storyList.indexOf(title),1); - } - this.saveStoryList(storyList); - // Add a new record to the top of the history stack - this.addToHistory(draftTitle); - return false; -}; - -// Import JSON tiddlers into a pending import tiddler -NavigatorWidget.prototype.handleImportTiddlersEvent = function(event) { - // Get the tiddlers - var tiddlers = []; - try { - tiddlers = JSON.parse(event.param); - } catch(e) { - } - // Get the current $:/Import tiddler - var importTiddler = this.wiki.getTiddler(IMPORT_TITLE), - importData = this.wiki.getTiddlerData(IMPORT_TITLE,{}), - newFields = new Object({ - title: IMPORT_TITLE, - type: "application/json", - "plugin-type": "import", - "status": "pending" - }), - incomingTiddlers = []; - // Process each tiddler - importData.tiddlers = importData.tiddlers || {}; - $tw.utils.each(tiddlers,function(tiddlerFields) { - tiddlerFields.title = $tw.utils.trim(tiddlerFields.title); - var title = tiddlerFields.title; - if(title) { - incomingTiddlers.push(title); - importData.tiddlers[title] = tiddlerFields; - } - }); - // Give the active upgrader modules a chance to process the incoming tiddlers - var messages = this.wiki.invokeUpgraders(incomingTiddlers,importData.tiddlers); - $tw.utils.each(messages,function(message,title) { - newFields["message-" + title] = message; - }); - // Deselect any suppressed tiddlers - $tw.utils.each(importData.tiddlers,function(tiddler,title) { - if($tw.utils.count(tiddler) === 0) { - newFields["selection-" + title] = "unchecked"; - } - }); - // Save the $:/Import tiddler - newFields.text = JSON.stringify(importData,null,$tw.config.preferences.jsonSpaces); - this.wiki.addTiddler(new $tw.Tiddler(importTiddler,newFields)); - // Update the story and history details - if(this.getVariable("tv-auto-open-on-import") !== "no") { - var storyList = this.getStoryList(), - history = []; - // Add it to the story - if(storyList && storyList.indexOf(IMPORT_TITLE) === -1) { - storyList.unshift(IMPORT_TITLE); - } - // And to history - history.push(IMPORT_TITLE); - // Save the updated story and history - this.saveStoryList(storyList); - this.addToHistory(history); - } - return false; -}; - -// -NavigatorWidget.prototype.handlePerformImportEvent = function(event) { - var self = this, - importTiddler = this.wiki.getTiddler(event.param), - importData = this.wiki.getTiddlerDataCached(event.param,{tiddlers: {}}), - importReport = []; - // Add the tiddlers to the store - importReport.push($tw.language.getString("Import/Imported/Hint") + "\n"); - $tw.utils.each(importData.tiddlers,function(tiddlerFields) { - var title = tiddlerFields.title; - if(title && importTiddler && importTiddler.fields["selection-" + title] !== "unchecked") { - var tiddler = new $tw.Tiddler(tiddlerFields); - tiddler = $tw.hooks.invokeHook("th-importing-tiddler",tiddler); - self.wiki.addTiddler(tiddler); - importReport.push("# [[" + tiddlerFields.title + "]]"); - } - }); - // Replace the $:/Import tiddler with an import report - this.wiki.addTiddler(new $tw.Tiddler({ - title: event.param, - text: importReport.join("\n"), - "status": "complete" - })); - // Navigate to the $:/Import tiddler - this.addToHistory([event.param]); - // Trigger an autosave - $tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"}); -}; - -NavigatorWidget.prototype.handleFoldTiddlerEvent = function(event) { - var paramObject = event.paramObject || {}; - if(paramObject.foldedState) { - var foldedState = this.wiki.getTiddlerText(paramObject.foldedState,"show") === "show" ? "hide" : "show"; - this.wiki.setText(paramObject.foldedState,"text",null,foldedState); - } -}; - -NavigatorWidget.prototype.handleFoldOtherTiddlersEvent = function(event) { - var self = this, - paramObject = event.paramObject || {}, - prefix = paramObject.foldedStatePrefix; - $tw.utils.each(this.getStoryList(),function(title) { - self.wiki.setText(prefix + title,"text",null,event.param === title ? "show" : "hide"); - }); -}; - -NavigatorWidget.prototype.handleFoldAllTiddlersEvent = function(event) { - var self = this, - paramObject = event.paramObject || {}, - prefix = paramObject.foldedStatePrefix || "$:/state/folded/"; - $tw.utils.each(this.getStoryList(),function(title) { - self.wiki.setText(prefix + title,"text",null,"hide"); - }); -}; - -NavigatorWidget.prototype.handleUnfoldAllTiddlersEvent = function(event) { - var self = this, - paramObject = event.paramObject || {}, - prefix = paramObject.foldedStatePrefix; - $tw.utils.each(this.getStoryList(),function(title) { - self.wiki.setText(prefix + title,"text",null,"show"); - }); -}; - -NavigatorWidget.prototype.handleRenameTiddlerEvent = function(event) { - var paramObject = event.paramObject || {}, - from = paramObject.from || event.tiddlerTitle, - to = paramObject.to; - this.wiki.renameTiddler(from,to); -}; - -exports.navigator = NavigatorWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/password.js -type: application/javascript -module-type: widget - -Password widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var PasswordWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -PasswordWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -PasswordWidget.prototype.render = function(parent,nextSibling) { - // Save the parent dom node - this.parentDomNode = parent; - // Compute our attributes - this.computeAttributes(); - // Execute our logic - this.execute(); - // Get the current password - var password = $tw.browser ? $tw.utils.getPassword(this.passwordName) || "" : ""; - // Create our element - var domNode = this.document.createElement("input"); - domNode.setAttribute("type","password"); - domNode.setAttribute("value",password); - // Add a click event handler - $tw.utils.addEventListeners(domNode,[ - {name: "change", handlerObject: this, handlerMethod: "handleChangeEvent"} - ]); - // Insert the label into the DOM and render any children - parent.insertBefore(domNode,nextSibling); - this.renderChildren(domNode,null); - this.domNodes.push(domNode); -}; - -PasswordWidget.prototype.handleChangeEvent = function(event) { - var password = this.domNodes[0].value; - return $tw.utils.savePassword(this.passwordName,password); -}; - -/* -Compute the internal state of the widget -*/ -PasswordWidget.prototype.execute = function() { - // Get the parameters from the attributes - this.passwordName = this.getAttribute("name",""); - // Make the child widgets - this.makeChildWidgets(); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -PasswordWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.name) { - this.refreshSelf(); - return true; - } else { - return this.refreshChildren(changedTiddlers); - } -}; - -exports.password = PasswordWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/qualify.js -type: application/javascript -module-type: widget - -Qualify text to a variable - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var QualifyWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -QualifyWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -QualifyWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -/* -Compute the internal state of the widget -*/ -QualifyWidget.prototype.execute = function() { - // Get our parameters - this.qualifyName = this.getAttribute("name"); - this.qualifyTitle = this.getAttribute("title"); - // Set context variable - if(this.qualifyName) { - this.setVariable(this.qualifyName,this.qualifyTitle + "-" + this.getStateQualifier()); - } - // Construct the child widgets - this.makeChildWidgets(); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -QualifyWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.name || changedAttributes.title) { - this.refreshSelf(); - return true; - } else { - return this.refreshChildren(changedTiddlers); - } -}; - -exports.qualify = QualifyWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/radio.js -type: application/javascript -module-type: widget - -Set a field or index at a given tiddler via radio buttons - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var RadioWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -RadioWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -RadioWidget.prototype.render = function(parent,nextSibling) { - // Save the parent dom node - this.parentDomNode = parent; - // Compute our attributes - this.computeAttributes(); - // Execute our logic - this.execute(); - var isChecked = this.getValue() === this.radioValue; - // Create our elements - this.labelDomNode = this.document.createElement("label"); - this.labelDomNode.setAttribute("class", - "tc-radio " + this.radioClass + (isChecked ? " tc-radio-selected" : "") - ); - this.inputDomNode = this.document.createElement("input"); - this.inputDomNode.setAttribute("type","radio"); - if(isChecked) { - this.inputDomNode.setAttribute("checked","true"); - } - this.labelDomNode.appendChild(this.inputDomNode); - this.spanDomNode = this.document.createElement("span"); - this.labelDomNode.appendChild(this.spanDomNode); - // Add a click event handler - $tw.utils.addEventListeners(this.inputDomNode,[ - {name: "change", handlerObject: this, handlerMethod: "handleChangeEvent"} - ]); - // Insert the label into the DOM and render any children - parent.insertBefore(this.labelDomNode,nextSibling); - this.renderChildren(this.spanDomNode,null); - this.domNodes.push(this.labelDomNode); -}; - -RadioWidget.prototype.getValue = function() { - var value, - tiddler = this.wiki.getTiddler(this.radioTitle); - if (this.radioIndex) { - value = this.wiki.extractTiddlerDataItem(this.radioTitle,this.radioIndex); - } else { - value = tiddler && tiddler.getFieldString(this.radioField); - } - return value; -}; - -RadioWidget.prototype.setValue = function() { - if(this.radioIndex) { - this.wiki.setText(this.radioTitle,"",this.radioIndex,this.radioValue); - } else { - var tiddler = this.wiki.getTiddler(this.radioTitle), - addition = {}; - addition[this.radioField] = this.radioValue; - this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),{title: this.radioTitle},tiddler,addition,this.wiki.getModificationFields())); - } -}; - -RadioWidget.prototype.handleChangeEvent = function(event) { - if(this.inputDomNode.checked) { - this.setValue(); - } -}; - -/* -Compute the internal state of the widget -*/ -RadioWidget.prototype.execute = function() { - // Get the parameters from the attributes - this.radioTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler")); - this.radioField = this.getAttribute("field","text"); - this.radioIndex = this.getAttribute("index"); - this.radioValue = this.getAttribute("value"); - this.radioClass = this.getAttribute("class",""); - // Make the child widgets - this.makeChildWidgets(); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -RadioWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.value || changedAttributes["class"]) { - this.refreshSelf(); - return true; - } else { - var refreshed = false; - if(changedTiddlers[this.radioTitle]) { - this.inputDomNode.checked = this.getValue() === this.radioValue; - refreshed = true; - } - return this.refreshChildren(changedTiddlers) || refreshed; - } -}; - -exports.radio = RadioWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/range.js -type: application/javascript -module-type: widget - -Range widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var RangeWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -RangeWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -RangeWidget.prototype.render = function(parent,nextSibling) { - // Save the parent dom node - this.parentDomNode = parent; - // Compute our attributes - this.computeAttributes(); - // Execute our logic - this.execute(); - // Create our elements - this.inputDomNode = this.document.createElement("input"); - this.inputDomNode.setAttribute("type","range"); - this.inputDomNode.setAttribute("class",this.elementClass); - if(this.minValue){ - this.inputDomNode.setAttribute("min", this.minValue); - } - if(this.maxValue){ - this.inputDomNode.setAttribute("max", this.maxValue); - } - if(this.increment){ - this.inputDomNode.setAttribute("step", this.increment); - } - this.inputDomNode.value = this.getValue(); - // Add a click event handler - $tw.utils.addEventListeners(this.inputDomNode,[ - {name: "input", handlerObject: this, handlerMethod: "handleInputEvent"}, - {name: "change", handlerObject: this, handlerMethod: "handleInputEvent"} - ]); - // Insert the label into the DOM and render any children - parent.insertBefore(this.inputDomNode,nextSibling); - this.domNodes.push(this.inputDomNode); -}; - -RangeWidget.prototype.getValue = function() { - var tiddler = this.wiki.getTiddler(this.tiddlerTitle), - fieldName = this.tiddlerField || "text", - value = this.defaultValue; - if(tiddler) { - if(this.tiddlerIndex) { - value = this.wiki.extractTiddlerDataItem(tiddler,this.tiddlerIndex,this.defaultValue || ""); - } else { - if($tw.utils.hop(tiddler.fields,fieldName)) { - value = tiddler.fields[fieldName] || ""; - } else { - value = this.defaultValue || ""; - } - } - } - return value; -}; - -RangeWidget.prototype.handleInputEvent = function(event) { - if(this.getValue() !== this.inputDomNode.value) { - if(this.tiddlerIndex) { - this.wiki.setText(this.tiddlerTitle,"",this.tiddlerIndex,this.inputDomNode.value); - } else { - this.wiki.setText(this.tiddlerTitle,this.tiddlerField,null,this.inputDomNode.value); - } - } -}; - -/* -Compute the internal state of the widget -*/ -RangeWidget.prototype.execute = function() { - // Get the parameters from the attributes - this.tiddlerTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler")); - this.tiddlerField = this.getAttribute("field"); - this.tiddlerIndex = this.getAttribute("index"); - this.minValue = this.getAttribute("min"); - this.maxValue = this.getAttribute("max"); - this.increment = this.getAttribute("increment"); - this.defaultValue = this.getAttribute("default"); - this.elementClass = this.getAttribute("class",""); - // Make the child widgets - this.makeChildWidgets(); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -RangeWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes['min'] || changedAttributes['max'] || changedAttributes['increment'] || changedAttributes["default"] || changedAttributes["class"]) { - this.refreshSelf(); - return true; - } else { - var refreshed = false; - if(changedTiddlers[this.tiddlerTitle]) { - var value = this.getValue(); - if(this.inputDomNode.value !== value) { - this.inputDomNode.value = value; - } - refreshed = true; - } - return this.refreshChildren(changedTiddlers) || refreshed; - } -}; - -exports.range = RangeWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/raw.js -type: application/javascript -module-type: widget - -Raw widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var RawWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -RawWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -RawWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.execute(); - var div = this.document.createElement("div"); - div.innerHTML=this.parseTreeNode.html; - parent.insertBefore(div,nextSibling); - this.domNodes.push(div); -}; - -/* -Compute the internal state of the widget -*/ -RawWidget.prototype.execute = function() { -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -RawWidget.prototype.refresh = function(changedTiddlers) { - return false; -}; - -exports.raw = RawWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/reveal.js -type: application/javascript -module-type: widget - -Reveal widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var RevealWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -RevealWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -RevealWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - var tag = this.parseTreeNode.isBlock ? "div" : "span"; - if(this.revealTag && $tw.config.htmlUnsafeElements.indexOf(this.revealTag) === -1) { - tag = this.revealTag; - } - var domNode = this.document.createElement(tag); - var classes = this["class"].split(" ") || []; - classes.push("tc-reveal"); - domNode.className = classes.join(" "); - if(this.style) { - domNode.setAttribute("style",this.style); - } - parent.insertBefore(domNode,nextSibling); - this.renderChildren(domNode,null); - if(!domNode.isTiddlyWikiFakeDom && this.type === "popup" && this.isOpen) { - this.positionPopup(domNode); - $tw.utils.addClass(domNode,"tc-popup"); // Make sure that clicks don't dismiss popups within the revealed content - } - if(!this.isOpen) { - domNode.setAttribute("hidden","true"); - } - this.domNodes.push(domNode); -}; - -RevealWidget.prototype.positionPopup = function(domNode) { - domNode.style.position = "absolute"; - domNode.style.zIndex = "1000"; - var left,top; - switch(this.position) { - case "left": - left = this.popup.left - domNode.offsetWidth; - top = this.popup.top; - break; - case "above": - left = this.popup.left; - top = this.popup.top - domNode.offsetHeight; - break; - case "aboveright": - left = this.popup.left + this.popup.width; - top = this.popup.top + this.popup.height - domNode.offsetHeight; - break; - case "right": - left = this.popup.left + this.popup.width; - top = this.popup.top; - break; - case "belowleft": - left = this.popup.left + this.popup.width - domNode.offsetWidth; - top = this.popup.top + this.popup.height; - break; - default: // Below - left = this.popup.left; - top = this.popup.top + this.popup.height; - break; - } - if(!this.positionAllowNegative) { - left = Math.max(0,left); - top = Math.max(0,top); - } - domNode.style.left = left + "px"; - domNode.style.top = top + "px"; -}; - -/* -Compute the internal state of the widget -*/ -RevealWidget.prototype.execute = function() { - // Get our parameters - this.state = this.getAttribute("state"); - this.revealTag = this.getAttribute("tag"); - this.type = this.getAttribute("type"); - this.text = this.getAttribute("text"); - this.position = this.getAttribute("position"); - this.positionAllowNegative = this.getAttribute("positionAllowNegative") === "yes"; - this["class"] = this.getAttribute("class",""); - this.style = this.getAttribute("style",""); - this["default"] = this.getAttribute("default",""); - this.animate = this.getAttribute("animate","no"); - this.retain = this.getAttribute("retain","no"); - this.openAnimation = this.animate === "no" ? undefined : "open"; - this.closeAnimation = this.animate === "no" ? undefined : "close"; - // Compute the title of the state tiddler and read it - this.stateTiddlerTitle = this.state; - this.stateTitle = this.getAttribute("stateTitle"); - this.stateField = this.getAttribute("stateField"); - this.stateIndex = this.getAttribute("stateIndex"); - this.readState(); - // Construct the child widgets - var childNodes = this.isOpen ? this.parseTreeNode.children : []; - this.hasChildNodes = this.isOpen; - this.makeChildWidgets(childNodes); -}; - -/* -Read the state tiddler -*/ -RevealWidget.prototype.readState = function() { - // Read the information from the state tiddler - var state, - defaultState = this["default"]; - if(this.stateTitle) { - var stateTitleTiddler = this.wiki.getTiddler(this.stateTitle); - if(this.stateField) { - state = stateTitleTiddler ? stateTitleTiddler.getFieldString(this.stateField) || defaultState : defaultState; - } else if(this.stateIndex) { - state = stateTitleTiddler ? this.wiki.extractTiddlerDataItem(this.stateTitle,this.stateIndex) || defaultState : defaultState; - } else if(stateTitleTiddler) { - state = this.wiki.getTiddlerText(this.stateTitle) || defaultState; - } else { - state = defaultState; - } - } else { - state = this.stateTiddlerTitle ? this.wiki.getTextReference(this.state,this["default"],this.getVariable("currentTiddler")) : this["default"]; - } - if(state === null) { - state = this["default"]; - } - switch(this.type) { - case "popup": - this.readPopupState(state); - break; - case "match": - this.isOpen = this.text === state; - break; - case "nomatch": - this.isOpen = this.text !== state; - break; - case "lt": - this.isOpen = !!(this.compareStateText(state) < 0); - break; - case "gt": - this.isOpen = !!(this.compareStateText(state) > 0); - break; - case "lteq": - this.isOpen = !(this.compareStateText(state) > 0); - break; - case "gteq": - this.isOpen = !(this.compareStateText(state) < 0); - break; - } -}; - -RevealWidget.prototype.compareStateText = function(state) { - return state.localeCompare(this.text,undefined,{numeric: true,sensitivity: "case"}); -}; - -RevealWidget.prototype.readPopupState = function(state) { - var popupLocationRegExp = /^\((-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+),(-?[0-9\.E]+)\)$/, - match = popupLocationRegExp.exec(state); - // Check if the state matches the location regexp - if(match) { - // If so, we're open - this.isOpen = true; - // Get the location - this.popup = { - left: parseFloat(match[1]), - top: parseFloat(match[2]), - width: parseFloat(match[3]), - height: parseFloat(match[4]) - }; - } else { - // If not, we're closed - this.isOpen = false; - } -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -RevealWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.state || changedAttributes.type || changedAttributes.text || changedAttributes.position || changedAttributes.positionAllowNegative || changedAttributes["default"] || changedAttributes.animate || changedAttributes.stateTitle || changedAttributes.stateField || changedAttributes.stateIndex) { - this.refreshSelf(); - return true; - } else { - var currentlyOpen = this.isOpen; - this.readState(); - if(this.isOpen !== currentlyOpen) { - if(this.retain === "yes") { - this.updateState(); - } else { - this.refreshSelf(); - return true; - } - } - return this.refreshChildren(changedTiddlers); - } -}; - -/* -Called by refresh() to dynamically show or hide the content -*/ -RevealWidget.prototype.updateState = function() { - var self = this; - // Read the current state - this.readState(); - // Construct the child nodes if needed - var domNode = this.domNodes[0]; - if(this.isOpen && !this.hasChildNodes) { - this.hasChildNodes = true; - this.makeChildWidgets(this.parseTreeNode.children); - this.renderChildren(domNode,null); - } - // Animate our DOM node - if(!domNode.isTiddlyWikiFakeDom && this.type === "popup" && this.isOpen) { - this.positionPopup(domNode); - $tw.utils.addClass(domNode,"tc-popup"); // Make sure that clicks don't dismiss popups within the revealed content - - } - if(this.isOpen) { - domNode.removeAttribute("hidden"); - $tw.anim.perform(this.openAnimation,domNode); - } else { - $tw.anim.perform(this.closeAnimation,domNode,{callback: function() { - //make sure that the state hasn't changed during the close animation - self.readState() - if(!self.isOpen) { - domNode.setAttribute("hidden","true"); - } - }}); - } -}; - -exports.reveal = RevealWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/scrollable.js -type: application/javascript -module-type: widget - -Scrollable widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var ScrollableWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); - this.scaleFactor = 1; - this.addEventListeners([ - {type: "tm-scroll", handler: "handleScrollEvent"} - ]); - if($tw.browser) { - this.requestAnimationFrame = window.requestAnimationFrame || - window.webkitRequestAnimationFrame || - window.mozRequestAnimationFrame || - function(callback) { - return window.setTimeout(callback, 1000/60); - }; - this.cancelAnimationFrame = window.cancelAnimationFrame || - window.webkitCancelAnimationFrame || - window.webkitCancelRequestAnimationFrame || - window.mozCancelAnimationFrame || - window.mozCancelRequestAnimationFrame || - function(id) { - window.clearTimeout(id); - }; - } -}; - -/* -Inherit from the base widget class -*/ -ScrollableWidget.prototype = new Widget(); - -ScrollableWidget.prototype.cancelScroll = function() { - if(this.idRequestFrame) { - this.cancelAnimationFrame.call(window,this.idRequestFrame); - this.idRequestFrame = null; - } -}; - -/* -Handle a scroll event -*/ -ScrollableWidget.prototype.handleScrollEvent = function(event) { - // Pass the scroll event through if our offsetsize is larger than our scrollsize - if(this.outerDomNode.scrollWidth <= this.outerDomNode.offsetWidth && this.outerDomNode.scrollHeight <= this.outerDomNode.offsetHeight && this.fallthrough === "yes") { - return true; - } - this.scrollIntoView(event.target); - return false; // Handled event -}; - -/* -Scroll an element into view -*/ -ScrollableWidget.prototype.scrollIntoView = function(element) { - var duration = $tw.utils.getAnimationDuration(); - this.cancelScroll(); - this.startTime = Date.now(); - var scrollPosition = { - x: this.outerDomNode.scrollLeft, - y: this.outerDomNode.scrollTop - }; - // Get the client bounds of the element and adjust by the scroll position - var scrollableBounds = this.outerDomNode.getBoundingClientRect(), - clientTargetBounds = element.getBoundingClientRect(), - bounds = { - left: clientTargetBounds.left + scrollPosition.x - scrollableBounds.left, - top: clientTargetBounds.top + scrollPosition.y - scrollableBounds.top, - width: clientTargetBounds.width, - height: clientTargetBounds.height - }; - // We'll consider the horizontal and vertical scroll directions separately via this function - var getEndPos = function(targetPos,targetSize,currentPos,currentSize) { - // If the target is already visible then stay where we are - if(targetPos >= currentPos && (targetPos + targetSize) <= (currentPos + currentSize)) { - return currentPos; - // If the target is above/left of the current view, then scroll to its top/left - } else if(targetPos <= currentPos) { - return targetPos; - // If the target is smaller than the window and the scroll position is too far up, then scroll till the target is at the bottom of the window - } else if(targetSize < currentSize && currentPos < (targetPos + targetSize - currentSize)) { - return targetPos + targetSize - currentSize; - // If the target is big, then just scroll to the top - } else if(currentPos < targetPos) { - return targetPos; - // Otherwise, stay where we are - } else { - return currentPos; - } - }, - endX = getEndPos(bounds.left,bounds.width,scrollPosition.x,this.outerDomNode.offsetWidth), - endY = getEndPos(bounds.top,bounds.height,scrollPosition.y,this.outerDomNode.offsetHeight); - // Only scroll if necessary - if(endX !== scrollPosition.x || endY !== scrollPosition.y) { - var self = this, - drawFrame; - drawFrame = function () { - var t; - if(duration <= 0) { - t = 1; - } else { - t = ((Date.now()) - self.startTime) / duration; - } - if(t >= 1) { - self.cancelScroll(); - t = 1; - } - t = $tw.utils.slowInSlowOut(t); - self.outerDomNode.scrollLeft = scrollPosition.x + (endX - scrollPosition.x) * t; - self.outerDomNode.scrollTop = scrollPosition.y + (endY - scrollPosition.y) * t; - if(t < 1) { - self.idRequestFrame = self.requestAnimationFrame.call(window,drawFrame); - } - }; - drawFrame(); - } -}; - -/* -Render this widget into the DOM -*/ -ScrollableWidget.prototype.render = function(parent,nextSibling) { - var self = this; - // Remember parent - this.parentDomNode = parent; - // Compute attributes and execute state - this.computeAttributes(); - this.execute(); - // Create elements - this.outerDomNode = this.document.createElement("div"); - $tw.utils.setStyle(this.outerDomNode,[ - {overflowY: "auto"}, - {overflowX: "auto"}, - {webkitOverflowScrolling: "touch"} - ]); - this.innerDomNode = this.document.createElement("div"); - this.outerDomNode.appendChild(this.innerDomNode); - // Assign classes - this.outerDomNode.className = this["class"] || ""; - // Insert element - parent.insertBefore(this.outerDomNode,nextSibling); - this.renderChildren(this.innerDomNode,null); - this.domNodes.push(this.outerDomNode); -}; - -/* -Compute the internal state of the widget -*/ -ScrollableWidget.prototype.execute = function() { - // Get attributes - this.fallthrough = this.getAttribute("fallthrough","yes"); - this["class"] = this.getAttribute("class"); - // Make child widgets - this.makeChildWidgets(); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -ScrollableWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes["class"]) { - this.refreshSelf(); - return true; - } - return this.refreshChildren(changedTiddlers); -}; - -exports.scrollable = ScrollableWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/select.js -type: application/javascript -module-type: widget - -Select widget: - -``` -<$select tiddler="MyTiddler" field="text"> -<$list filter="[tag[chapter]]"> -<option value=<<currentTiddler>>> -<$view field="description"/> -</option> -</$list> -</$select> -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var SelectWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -SelectWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -SelectWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); - this.setSelectValue(); - $tw.utils.addEventListeners(this.getSelectDomNode(),[ - {name: "change", handlerObject: this, handlerMethod: "handleChangeEvent"} - ]); -}; - -/* -Handle a change event -*/ -SelectWidget.prototype.handleChangeEvent = function(event) { - // Get the new value and assign it to the tiddler - if(this.selectMultiple == false) { - var value = this.getSelectDomNode().value; - } else { - var value = this.getSelectValues() - value = $tw.utils.stringifyList(value); - } - this.wiki.setText(this.selectTitle,this.selectField,this.selectIndex,value); - // Trigger actions - if(this.selectActions) { - this.invokeActionString(this.selectActions,this,event); - } -}; - -/* -If necessary, set the value of the select element to the current value -*/ -SelectWidget.prototype.setSelectValue = function() { - var value = this.selectDefault; - // Get the value - if(this.selectIndex) { - value = this.wiki.extractTiddlerDataItem(this.selectTitle,this.selectIndex,value); - } else { - var tiddler = this.wiki.getTiddler(this.selectTitle); - if(tiddler) { - if(this.selectField === "text") { - // Calling getTiddlerText() triggers lazy loading of skinny tiddlers - value = this.wiki.getTiddlerText(this.selectTitle); - } else { - if($tw.utils.hop(tiddler.fields,this.selectField)) { - value = tiddler.getFieldString(this.selectField); - } - } - } else { - if(this.selectField === "title") { - value = this.selectTitle; - } - } - } - // Assign it to the select element if it's different than the current value - if (this.selectMultiple) { - value = value === undefined ? "" : value; - var select = this.getSelectDomNode(); - var values = Array.isArray(value) ? value : $tw.utils.parseStringArray(value); - for(var i=0; i < select.children.length; i++){ - select.children[i].selected = values.indexOf(select.children[i].value) !== -1 - } - } else { - var domNode = this.getSelectDomNode(); - if(domNode.value !== value) { - domNode.value = value; - } - } -}; - -/* -Get the DOM node of the select element -*/ -SelectWidget.prototype.getSelectDomNode = function() { - return this.children[0].domNodes[0]; -}; - -// Return an array of the selected opion values -// select is an HTML select element -SelectWidget.prototype.getSelectValues = function() { - var select, result, options, opt; - select = this.getSelectDomNode(); - result = []; - options = select && select.options; - for (var i=0; i<options.length; i++) { - opt = options[i]; - if (opt.selected) { - result.push(opt.value || opt.text); - } - } - return result; -} - -/* -Compute the internal state of the widget -*/ -SelectWidget.prototype.execute = function() { - // Get our parameters - this.selectActions = this.getAttribute("actions"); - this.selectTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler")); - this.selectField = this.getAttribute("field","text"); - this.selectIndex = this.getAttribute("index"); - this.selectClass = this.getAttribute("class"); - this.selectDefault = this.getAttribute("default"); - this.selectMultiple = this.getAttribute("multiple", false); - this.selectSize = this.getAttribute("size"); - this.selectTooltip = this.getAttribute("tooltip"); - // Make the child widgets - var selectNode = { - type: "element", - tag: "select", - children: this.parseTreeNode.children - }; - if(this.selectClass) { - $tw.utils.addAttributeToParseTreeNode(selectNode,"class",this.selectClass); - } - if(this.selectMultiple) { - $tw.utils.addAttributeToParseTreeNode(selectNode,"multiple","multiple"); - } - if(this.selectSize) { - $tw.utils.addAttributeToParseTreeNode(selectNode,"size",this.selectSize); - } - if(this.selectTooltip) { - $tw.utils.addAttributeToParseTreeNode(selectNode,"title",this.selectTooltip); - } - this.makeChildWidgets([selectNode]); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -SelectWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - // If we're using a different tiddler/field/index then completely refresh ourselves - if(changedAttributes.selectTitle || changedAttributes.selectField || changedAttributes.selectIndex || changedAttributes.selectTooltip) { - this.refreshSelf(); - return true; - // If the target tiddler value has changed, just update setting and refresh the children - } else { - var childrenRefreshed = this.refreshChildren(changedTiddlers); - if(changedTiddlers[this.selectTitle] || childrenRefreshed) { - this.setSelectValue(); - } - return childrenRefreshed; - } -}; - -exports.select = SelectWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/set.js -type: application/javascript -module-type: widget - -Set variable widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var SetWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -SetWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -SetWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -/* -Compute the internal state of the widget -*/ -SetWidget.prototype.execute = function() { - // Get our parameters - this.setName = this.getAttribute("name","currentTiddler"); - this.setFilter = this.getAttribute("filter"); - this.setSelect = this.getAttribute("select"); - this.setTiddler = this.getAttribute("tiddler"); - this.setSubTiddler = this.getAttribute("subtiddler"); - this.setField = this.getAttribute("field"); - this.setIndex = this.getAttribute("index"); - this.setValue = this.getAttribute("value"); - this.setEmptyValue = this.getAttribute("emptyValue"); - // Set context variable - this.setVariable(this.setName,this.getValue(),this.parseTreeNode.params,!!this.parseTreeNode.isMacroDefinition); - // Construct the child widgets - this.makeChildWidgets(); -}; - -/* -Get the value to be assigned -*/ -SetWidget.prototype.getValue = function() { - var value = this.setValue; - if(this.setTiddler) { - var tiddler; - if(this.setSubTiddler) { - tiddler = this.wiki.getSubTiddler(this.setTiddler,this.setSubTiddler); - } else { - tiddler = this.wiki.getTiddler(this.setTiddler); - } - if(!tiddler) { - value = this.setEmptyValue; - } else if(this.setField) { - value = tiddler.getFieldString(this.setField) || this.setEmptyValue; - } else if(this.setIndex) { - value = this.wiki.extractTiddlerDataItem(this.setTiddler,this.setIndex,this.setEmptyValue); - } else { - value = tiddler.fields.text || this.setEmptyValue ; - } - } else if(this.setFilter) { - var results = this.wiki.filterTiddlers(this.setFilter,this); - if(this.setValue == null) { - var select; - if(this.setSelect) { - select = parseInt(this.setSelect,10); - } - if(select !== undefined) { - value = results[select] || ""; - } else { - value = $tw.utils.stringifyList(results); - } - } - if(results.length === 0 && this.setEmptyValue !== undefined) { - value = this.setEmptyValue; - } - } else if(!value && this.setEmptyValue) { - value = this.setEmptyValue; - } - return value || ""; -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -SetWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.name || changedAttributes.filter || changedAttributes.select || changedAttributes.tiddler || (this.setTiddler && changedTiddlers[this.setTiddler]) || changedAttributes.field || changedAttributes.index || changedAttributes.value || changedAttributes.emptyValue || - (this.setFilter && this.getValue() != this.variables[this.setName].value)) { - this.refreshSelf(); - return true; - } else { - return this.refreshChildren(changedTiddlers); - } -}; - -exports.setvariable = SetWidget; -exports.set = SetWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/text.js -type: application/javascript -module-type: widget - -Text node widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var TextNodeWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -TextNodeWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -TextNodeWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - var text = this.getAttribute("text",this.parseTreeNode.text || ""); - text = text.replace(/\r/mg,""); - var textNode = this.document.createTextNode(text); - parent.insertBefore(textNode,nextSibling); - this.domNodes.push(textNode); -}; - -/* -Compute the internal state of the widget -*/ -TextNodeWidget.prototype.execute = function() { - // Nothing to do for a text node -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -TextNodeWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.text) { - this.refreshSelf(); - return true; - } else { - return false; - } -}; - -exports.text = TextNodeWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/tiddler.js -type: application/javascript -module-type: widget - -Tiddler widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var TiddlerWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -TiddlerWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -TiddlerWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -/* -Compute the internal state of the widget -*/ -TiddlerWidget.prototype.execute = function() { - this.tiddlerState = this.computeTiddlerState(); - this.setVariable("currentTiddler",this.tiddlerState.currentTiddler); - this.setVariable("missingTiddlerClass",this.tiddlerState.missingTiddlerClass); - this.setVariable("shadowTiddlerClass",this.tiddlerState.shadowTiddlerClass); - this.setVariable("systemTiddlerClass",this.tiddlerState.systemTiddlerClass); - this.setVariable("tiddlerTagClasses",this.tiddlerState.tiddlerTagClasses); - // Construct the child widgets - this.makeChildWidgets(); -}; - -/* -Compute the tiddler state flags -*/ -TiddlerWidget.prototype.computeTiddlerState = function() { - // Get our parameters - this.tiddlerTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler")); - // Compute the state - var state = { - currentTiddler: this.tiddlerTitle || "", - missingTiddlerClass: (this.wiki.tiddlerExists(this.tiddlerTitle) || this.wiki.isShadowTiddler(this.tiddlerTitle)) ? "tc-tiddler-exists" : "tc-tiddler-missing", - shadowTiddlerClass: this.wiki.isShadowTiddler(this.tiddlerTitle) ? "tc-tiddler-shadow" : "", - systemTiddlerClass: this.wiki.isSystemTiddler(this.tiddlerTitle) ? "tc-tiddler-system" : "", - tiddlerTagClasses: this.getTagClasses() - }; - // Compute a simple hash to make it easier to detect changes - state.hash = state.currentTiddler + state.missingTiddlerClass + state.shadowTiddlerClass + state.systemTiddlerClass + state.tiddlerTagClasses; - return state; -}; - -/* -Create a string of CSS classes derived from the tags of the current tiddler -*/ -TiddlerWidget.prototype.getTagClasses = function() { - var tiddler = this.wiki.getTiddler(this.tiddlerTitle); - if(tiddler) { - var tags = []; - $tw.utils.each(tiddler.fields.tags,function(tag) { - tags.push("tc-tagged-" + encodeURIComponent(tag)); - }); - return tags.join(" "); - } else { - return ""; - } -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -TiddlerWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(), - newTiddlerState = this.computeTiddlerState(); - if(changedAttributes.tiddler || newTiddlerState.hash !== this.tiddlerState.hash) { - this.refreshSelf(); - return true; - } else { - return this.refreshChildren(changedTiddlers); - } -}; - -exports.tiddler = TiddlerWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/transclude.js -type: application/javascript -module-type: widget - -Transclude widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var TranscludeWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -TranscludeWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -TranscludeWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -/* -Compute the internal state of the widget -*/ -TranscludeWidget.prototype.execute = function() { - // Get our parameters - this.transcludeTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler")); - this.transcludeSubTiddler = this.getAttribute("subtiddler"); - this.transcludeField = this.getAttribute("field"); - this.transcludeIndex = this.getAttribute("index"); - this.transcludeMode = this.getAttribute("mode"); - // Parse the text reference - var parseAsInline = !this.parseTreeNode.isBlock; - if(this.transcludeMode === "inline") { - parseAsInline = true; - } else if(this.transcludeMode === "block") { - parseAsInline = false; - } - var parser = this.wiki.parseTextReference( - this.transcludeTitle, - this.transcludeField, - this.transcludeIndex, - { - parseAsInline: parseAsInline, - subTiddler: this.transcludeSubTiddler - }), - parseTreeNodes = parser ? parser.tree : this.parseTreeNode.children; - // Set context variables for recursion detection - var recursionMarker = this.makeRecursionMarker(); - this.setVariable("transclusion",recursionMarker); - // Check for recursion - if(parser) { - if(this.parentWidget && this.parentWidget.hasVariable("transclusion",recursionMarker)) { - parseTreeNodes = [{type: "element", tag: "span", attributes: { - "class": {type: "string", value: "tc-error"} - }, children: [ - {type: "text", text: $tw.language.getString("Error/RecursiveTransclusion")} - ]}]; - } - } - // Construct the child widgets - this.makeChildWidgets(parseTreeNodes); -}; - -/* -Compose a string comprising the title, field and/or index to identify this transclusion for recursion detection -*/ -TranscludeWidget.prototype.makeRecursionMarker = function() { - var output = []; - output.push("{"); - output.push(this.getVariable("currentTiddler",{defaultValue: ""})); - output.push("|"); - output.push(this.transcludeTitle || ""); - output.push("|"); - output.push(this.transcludeField || ""); - output.push("|"); - output.push(this.transcludeIndex || ""); - output.push("|"); - output.push(this.transcludeSubTiddler || ""); - output.push("}"); - return output.join(""); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -TranscludeWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedTiddlers[this.transcludeTitle]) { - this.refreshSelf(); - return true; - } else { - return this.refreshChildren(changedTiddlers); - } -}; - -exports.transclude = TranscludeWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/vars.js -type: application/javascript -module-type: widget - -This widget allows multiple variables to be set in one go: - -``` -\define helloworld() Hello world! -<$vars greeting="Hi" me={{!!title}} sentence=<<helloworld>>> - <<greeting>>! I am <<me>> and I say: <<sentence>> -</$vars> -``` - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var VarsWidget = function(parseTreeNode,options) { - // Call the constructor - Widget.call(this); - // Initialise - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -VarsWidget.prototype = Object.create(Widget.prototype); - -/* -Render this widget into the DOM -*/ -VarsWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -/* -Compute the internal state of the widget -*/ -VarsWidget.prototype.execute = function() { - // Parse variables - var self = this; - $tw.utils.each(this.attributes,function(val,key) { - if(key.charAt(0) !== "$") { - self.setVariable(key,val); - } - }); - // Construct the child widgets - this.makeChildWidgets(); -}; - -/* -Refresh the widget by ensuring our attributes are up to date -*/ -VarsWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(Object.keys(changedAttributes).length) { - this.refreshSelf(); - return true; - } - return this.refreshChildren(changedTiddlers); -}; - -exports["vars"] = VarsWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/view.js -type: application/javascript -module-type: widget - -View widget - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var ViewWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -ViewWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -ViewWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - if(this.text) { - var textNode = this.document.createTextNode(this.text); - parent.insertBefore(textNode,nextSibling); - this.domNodes.push(textNode); - } else { - this.makeChildWidgets(); - this.renderChildren(parent,nextSibling); - } -}; - -/* -Compute the internal state of the widget -*/ -ViewWidget.prototype.execute = function() { - // Get parameters from our attributes - this.viewTitle = this.getAttribute("tiddler",this.getVariable("currentTiddler")); - this.viewSubtiddler = this.getAttribute("subtiddler"); - this.viewField = this.getAttribute("field","text"); - this.viewIndex = this.getAttribute("index"); - this.viewFormat = this.getAttribute("format","text"); - this.viewTemplate = this.getAttribute("template",""); - this.viewMode = this.getAttribute("mode","block"); - switch(this.viewFormat) { - case "htmlwikified": - this.text = this.getValueAsHtmlWikified(this.viewMode); - break; - case "plainwikified": - this.text = this.getValueAsPlainWikified(this.viewMode); - break; - case "htmlencodedplainwikified": - this.text = this.getValueAsHtmlEncodedPlainWikified(this.viewMode); - break; - case "htmlencoded": - this.text = this.getValueAsHtmlEncoded(); - break; - case "urlencoded": - this.text = this.getValueAsUrlEncoded(); - break; - case "doubleurlencoded": - this.text = this.getValueAsDoubleUrlEncoded(); - break; - case "date": - this.text = this.getValueAsDate(this.viewTemplate); - break; - case "relativedate": - this.text = this.getValueAsRelativeDate(); - break; - case "stripcomments": - this.text = this.getValueAsStrippedComments(); - break; - case "jsencoded": - this.text = this.getValueAsJsEncoded(); - break; - default: // "text" - this.text = this.getValueAsText(); - break; - } -}; - -/* -The various formatter functions are baked into this widget for the moment. Eventually they will be replaced by macro functions -*/ - -/* -Retrieve the value of the widget. Options are: -asString: Optionally return the value as a string -*/ -ViewWidget.prototype.getValue = function(options) { - options = options || {}; - var value = options.asString ? "" : undefined; - if(this.viewIndex) { - value = this.wiki.extractTiddlerDataItem(this.viewTitle,this.viewIndex); - } else { - var tiddler; - if(this.viewSubtiddler) { - tiddler = this.wiki.getSubTiddler(this.viewTitle,this.viewSubtiddler); - } else { - tiddler = this.wiki.getTiddler(this.viewTitle); - } - if(tiddler) { - if(this.viewField === "text" && !this.viewSubtiddler) { - // Calling getTiddlerText() triggers lazy loading of skinny tiddlers - value = this.wiki.getTiddlerText(this.viewTitle); - } else { - if($tw.utils.hop(tiddler.fields,this.viewField)) { - if(options.asString) { - value = tiddler.getFieldString(this.viewField); - } else { - value = tiddler.fields[this.viewField]; - } - } - } - } else { - if(this.viewField === "title") { - value = this.viewTitle; - } - } - } - return value; -}; - -ViewWidget.prototype.getValueAsText = function() { - return this.getValue({asString: true}); -}; - -ViewWidget.prototype.getValueAsHtmlWikified = function(mode) { - return this.wiki.renderText("text/html","text/vnd.tiddlywiki",this.getValueAsText(),{ - parseAsInline: mode !== "block", - parentWidget: this - }); -}; - -ViewWidget.prototype.getValueAsPlainWikified = function(mode) { - return this.wiki.renderText("text/plain","text/vnd.tiddlywiki",this.getValueAsText(),{ - parseAsInline: mode !== "block", - parentWidget: this - }); -}; - -ViewWidget.prototype.getValueAsHtmlEncodedPlainWikified = function(mode) { - return $tw.utils.htmlEncode(this.wiki.renderText("text/plain","text/vnd.tiddlywiki",this.getValueAsText(),{ - parseAsInline: mode !== "block", - parentWidget: this - })); -}; - -ViewWidget.prototype.getValueAsHtmlEncoded = function() { - return $tw.utils.htmlEncode(this.getValueAsText()); -}; - -ViewWidget.prototype.getValueAsUrlEncoded = function() { - return encodeURIComponent(this.getValueAsText()); -}; - -ViewWidget.prototype.getValueAsDoubleUrlEncoded = function() { - return encodeURIComponent(encodeURIComponent(this.getValueAsText())); -}; - -ViewWidget.prototype.getValueAsDate = function(format) { - format = format || "YYYY MM DD 0hh:0mm"; - var value = $tw.utils.parseDate(this.getValue()); - if(value && $tw.utils.isDate(value) && value.toString() !== "Invalid Date") { - return $tw.utils.formatDateString(value,format); - } else { - return ""; - } -}; - -ViewWidget.prototype.getValueAsRelativeDate = function(format) { - var value = $tw.utils.parseDate(this.getValue()); - if(value && $tw.utils.isDate(value) && value.toString() !== "Invalid Date") { - return $tw.utils.getRelativeDate((new Date()) - (new Date(value))).description; - } else { - return ""; - } -}; - -ViewWidget.prototype.getValueAsStrippedComments = function() { - var lines = this.getValueAsText().split("\n"), - out = []; - for(var line=0; line<lines.length; line++) { - var text = lines[line]; - if(!/^\s*\/\/#/.test(text)) { - out.push(text); - } - } - return out.join("\n"); -}; - -ViewWidget.prototype.getValueAsJsEncoded = function() { - return $tw.utils.stringify(this.getValueAsText()); -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -ViewWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.index || changedAttributes.template || changedAttributes.format || changedTiddlers[this.viewTitle]) { - this.refreshSelf(); - return true; - } else { - return false; - } -}; - -exports.view = ViewWidget; - -})(); --
/*\ -title: $:/core/modules/widgets/widget.js -type: application/javascript -module-type: widget - -Widget base class - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Create a widget object for a parse tree node - parseTreeNode: reference to the parse tree node to be rendered - options: see below -Options include: - wiki: mandatory reference to wiki associated with this render tree - parentWidget: optional reference to a parent renderer node for the context chain - document: optional document object to use instead of global document -*/ -var Widget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Initialise widget properties. These steps are pulled out of the constructor so that we can reuse them in subclasses -*/ -Widget.prototype.initialise = function(parseTreeNode,options) { - // Bail if parseTreeNode is undefined, meaning that the widget constructor was called without any arguments so that it can be subclassed - if(parseTreeNode === undefined) { - return; - } - options = options || {}; - // Save widget info - this.parseTreeNode = parseTreeNode; - this.wiki = options.wiki; - this.parentWidget = options.parentWidget; - this.variablesConstructor = function() {}; - this.variablesConstructor.prototype = this.parentWidget ? this.parentWidget.variables : {}; - this.variables = new this.variablesConstructor(); - this.document = options.document; - this.attributes = {}; - this.children = []; - this.domNodes = []; - this.eventListeners = {}; - // Hashmap of the widget classes - if(!this.widgetClasses) { - // Get widget classes - Widget.prototype.widgetClasses = $tw.modules.applyMethods("widget"); - // Process any subclasses - $tw.modules.forEachModuleOfType("widget-subclass",function(title,module) { - if(module.baseClass) { - var baseClass = Widget.prototype.widgetClasses[module.baseClass]; - if(!baseClass) { - throw "Module '" + title + "' is attemping to extend a non-existent base class '" + module.baseClass + "'"; - } - var subClass = module.constructor; - subClass.prototype = new baseClass(); - $tw.utils.extend(subClass.prototype,module.prototype); - Widget.prototype.widgetClasses[module.name || module.baseClass] = subClass; - } - }); - } -}; - -/* -Render this widget into the DOM -*/ -Widget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -/* -Compute the internal state of the widget -*/ -Widget.prototype.execute = function() { - this.makeChildWidgets(); -}; - -/* -Set the value of a context variable -name: name of the variable -value: value of the variable -params: array of {name:, default:} for each parameter -isMacroDefinition: true if the variable is set via a \define macro pragma (and hence should have variable substitution performed) -*/ -Widget.prototype.setVariable = function(name,value,params,isMacroDefinition) { - this.variables[name] = {value: value, params: params, isMacroDefinition: !!isMacroDefinition}; -}; - -/* -Get the prevailing value of a context variable -name: name of variable -options: see below -Options include -params: array of {name:, value:} for each parameter -defaultValue: default value if the variable is not defined - -Returns an object with the following fields: - -params: array of {name:,value:} of parameters passed to wikitext variables -text: text of variable, with parameters properly substituted -*/ -Widget.prototype.getVariableInfo = function(name,options) { - options = options || {}; - var actualParams = options.params || [], - parentWidget = this.parentWidget; - // Check for the variable defined in the parent widget (or an ancestor in the prototype chain) - if(parentWidget && name in parentWidget.variables) { - var variable = parentWidget.variables[name], - value = variable.value, - params = this.resolveVariableParameters(variable.params,actualParams); - // Substitute any parameters specified in the definition - $tw.utils.each(params,function(param) { - value = $tw.utils.replaceString(value,new RegExp("\\$" + $tw.utils.escapeRegExp(param.name) + "\\$","mg"),param.value); - }); - // Only substitute variable references if this variable was defined with the \define pragma - if(variable.isMacroDefinition) { - value = this.substituteVariableReferences(value); - } - return { - text: value, - params: params - }; - } - // If the variable doesn't exist in the parent widget then look for a macro module - return { - text: this.evaluateMacroModule(name,actualParams,options.defaultValue) - }; -}; - -/* -Simplified version of getVariableInfo() that just returns the text -*/ -Widget.prototype.getVariable = function(name,options) { - return this.getVariableInfo(name,options).text; -}; - -Widget.prototype.resolveVariableParameters = function(formalParams,actualParams) { - formalParams = formalParams || []; - actualParams = actualParams || []; - var nextAnonParameter = 0, // Next candidate anonymous parameter in macro call - paramInfo, paramValue, - results = []; - // Step through each of the parameters in the macro definition - for(var p=0; p<formalParams.length; p++) { - // Check if we've got a macro call parameter with the same name - paramInfo = formalParams[p]; - paramValue = undefined; - for(var m=0; m<actualParams.length; m++) { - if(actualParams[m].name === paramInfo.name) { - paramValue = actualParams[m].value; - } - } - // If not, use the next available anonymous macro call parameter - while(nextAnonParameter < actualParams.length && actualParams[nextAnonParameter].name) { - nextAnonParameter++; - } - if(paramValue === undefined && nextAnonParameter < actualParams.length) { - paramValue = actualParams[nextAnonParameter++].value; - } - // If we've still not got a value, use the default, if any - paramValue = paramValue || paramInfo["default"] || ""; - // Store the parameter name and value - results.push({name: paramInfo.name, value: paramValue}); - } - return results; -}; - -Widget.prototype.substituteVariableReferences = function(text) { - var self = this; - return (text || "").replace(/\$\(([^\)\$]+)\)\$/g,function(match,p1,offset,string) { - return self.getVariable(p1,{defaultValue: ""}); - }); -}; - -Widget.prototype.evaluateMacroModule = function(name,actualParams,defaultValue) { - if($tw.utils.hop($tw.macros,name)) { - var macro = $tw.macros[name], - args = []; - if(macro.params.length > 0) { - var nextAnonParameter = 0, // Next candidate anonymous parameter in macro call - paramInfo, paramValue; - // Step through each of the parameters in the macro definition - for(var p=0; p<macro.params.length; p++) { - // Check if we've got a macro call parameter with the same name - paramInfo = macro.params[p]; - paramValue = undefined; - for(var m=0; m<actualParams.length; m++) { - if(actualParams[m].name === paramInfo.name) { - paramValue = actualParams[m].value; - } - } - // If not, use the next available anonymous macro call parameter - while(nextAnonParameter < actualParams.length && actualParams[nextAnonParameter].name) { - nextAnonParameter++; - } - if(paramValue === undefined && nextAnonParameter < actualParams.length) { - paramValue = actualParams[nextAnonParameter++].value; - } - // If we've still not got a value, use the default, if any - paramValue = paramValue || paramInfo["default"] || ""; - // Save the parameter - args.push(paramValue); - } - } - else for(var i=0; i<actualParams.length; ++i) { - args.push(actualParams[i].value); - } - return (macro.run.apply(this,args) || "").toString(); - } else { - return defaultValue; - } -}; - -/* -Check whether a given context variable value exists in the parent chain -*/ -Widget.prototype.hasVariable = function(name,value) { - var node = this; - while(node) { - if($tw.utils.hop(node.variables,name) && node.variables[name].value === value) { - return true; - } - node = node.parentWidget; - } - return false; -}; - -/* -Construct a qualifying string based on a hash of concatenating the values of a given variable in the parent chain -*/ -Widget.prototype.getStateQualifier = function(name) { - this.qualifiers = this.qualifiers || Object.create(null); - name = name || "transclusion"; - if(this.qualifiers[name]) { - return this.qualifiers[name]; - } else { - var output = [], - node = this; - while(node && node.parentWidget) { - if($tw.utils.hop(node.parentWidget.variables,name)) { - output.push(node.getVariable(name)); - } - node = node.parentWidget; - } - var value = $tw.utils.hashString(output.join("")); - this.qualifiers[name] = value; - return value; - } -}; - -/* -Compute the current values of the attributes of the widget. Returns a hashmap of the names of the attributes that have changed -*/ -Widget.prototype.computeAttributes = function() { - var changedAttributes = {}, - self = this, - value; - $tw.utils.each(this.parseTreeNode.attributes,function(attribute,name) { - if(attribute.type === "filtered") { - value = self.wiki.filterTiddlers(attribute.filter,self)[0] || ""; - } else if(attribute.type === "indirect") { - value = self.wiki.getTextReference(attribute.textReference,"",self.getVariable("currentTiddler")); - } else if(attribute.type === "macro") { - value = self.getVariable(attribute.value.name,{params: attribute.value.params}); - } else { // String attribute - value = attribute.value; - } - // Check whether the attribute has changed - if(self.attributes[name] !== value) { - self.attributes[name] = value; - changedAttributes[name] = true; - } - }); - return changedAttributes; -}; - -/* -Check for the presence of an attribute -*/ -Widget.prototype.hasAttribute = function(name) { - return $tw.utils.hop(this.attributes,name); -}; - -/* -Get the value of an attribute -*/ -Widget.prototype.getAttribute = function(name,defaultText) { - if($tw.utils.hop(this.attributes,name)) { - return this.attributes[name]; - } else { - return defaultText; - } -}; - -/* -Assign the computed attributes of the widget to a domNode -options include: -excludeEventAttributes: ignores attributes whose name begins with "on" -*/ -Widget.prototype.assignAttributes = function(domNode,options) { - options = options || {}; - var self = this; - $tw.utils.each(this.attributes,function(v,a) { - // Check exclusions - if(options.excludeEventAttributes && a.substr(0,2) === "on") { - v = undefined; - } - if(v !== undefined) { - var b = a.split(":"); - // Setting certain attributes can cause a DOM error (eg xmlns on the svg element) - try { - if (b.length == 2 && b[0] == "xlink"){ - domNode.setAttributeNS("http://www.w3.org/1999/xlink",b[1],v); - } else { - domNode.setAttributeNS(null,a,v); - } - } catch(e) { - } - } - }); -}; - -/* -Make child widgets correspondng to specified parseTreeNodes -*/ -Widget.prototype.makeChildWidgets = function(parseTreeNodes) { - this.children = []; - var self = this; - $tw.utils.each(parseTreeNodes || (this.parseTreeNode && this.parseTreeNode.children),function(childNode) { - self.children.push(self.makeChildWidget(childNode)); - }); -}; - -/* -Construct the widget object for a parse tree node -*/ -Widget.prototype.makeChildWidget = function(parseTreeNode) { - var WidgetClass = this.widgetClasses[parseTreeNode.type]; - if(!WidgetClass) { - WidgetClass = this.widgetClasses.text; - parseTreeNode = {type: "text", text: "Undefined widget '" + parseTreeNode.type + "'"}; - } - return new WidgetClass(parseTreeNode,{ - wiki: this.wiki, - variables: {}, - parentWidget: this, - document: this.document - }); -}; - -/* -Get the next sibling of this widget -*/ -Widget.prototype.nextSibling = function() { - if(this.parentWidget) { - var index = this.parentWidget.children.indexOf(this); - if(index !== -1 && index < this.parentWidget.children.length-1) { - return this.parentWidget.children[index+1]; - } - } - return null; -}; - -/* -Get the previous sibling of this widget -*/ -Widget.prototype.previousSibling = function() { - if(this.parentWidget) { - var index = this.parentWidget.children.indexOf(this); - if(index !== -1 && index > 0) { - return this.parentWidget.children[index-1]; - } - } - return null; -}; - -/* -Render the children of this widget into the DOM -*/ -Widget.prototype.renderChildren = function(parent,nextSibling) { - var children = this.children; - for(var i = 0; i < children.length; i++) { - children[i].render(parent,nextSibling); - }; -}; - -/* -Add a list of event listeners from an array [{type:,handler:},...] -*/ -Widget.prototype.addEventListeners = function(listeners) { - var self = this; - $tw.utils.each(listeners,function(listenerInfo) { - self.addEventListener(listenerInfo.type,listenerInfo.handler); - }); -}; - -/* -Add an event listener -*/ -Widget.prototype.addEventListener = function(type,handler) { - var self = this; - if(typeof handler === "string") { // The handler is a method name on this widget - this.eventListeners[type] = function(event) { - return self[handler].call(self,event); - }; - } else { // The handler is a function - this.eventListeners[type] = function(event) { - return handler.call(self,event); - }; - } -}; - -/* -Dispatch an event to a widget. If the widget doesn't handle the event then it is also dispatched to the parent widget -*/ -Widget.prototype.dispatchEvent = function(event) { - // Dispatch the event if this widget handles it - var listener = this.eventListeners[event.type]; - if(listener) { - // Don't propagate the event if the listener returned false - if(!listener(event)) { - return false; - } - } - // Dispatch the event to the parent widget - if(this.parentWidget) { - return this.parentWidget.dispatchEvent(event); - } - return true; -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -Widget.prototype.refresh = function(changedTiddlers) { - return this.refreshChildren(changedTiddlers); -}; - -/* -Rebuild a previously rendered widget -*/ -Widget.prototype.refreshSelf = function() { - var nextSibling = this.findNextSiblingDomNode(); - this.removeChildDomNodes(); - this.render(this.parentDomNode,nextSibling); -}; - -/* -Refresh all the children of a widget -*/ -Widget.prototype.refreshChildren = function(changedTiddlers) { - var children = this.children, - refreshed = false; - for (var i = 0; i < children.length; i++) { - refreshed = children[i].refresh(changedTiddlers) || refreshed; - } - return refreshed; -}; - -/* -Find the next sibling in the DOM to this widget. This is done by scanning the widget tree through all next siblings and their descendents that share the same parent DOM node -*/ -Widget.prototype.findNextSiblingDomNode = function(startIndex) { - // Refer to this widget by its index within its parents children - var parent = this.parentWidget, - index = startIndex !== undefined ? startIndex : parent.children.indexOf(this); -if(index === -1) { - throw "node not found in parents children"; -} - // Look for a DOM node in the later siblings - while(++index < parent.children.length) { - var domNode = parent.children[index].findFirstDomNode(); - if(domNode) { - return domNode; - } - } - // Go back and look for later siblings of our parent if it has the same parent dom node - var grandParent = parent.parentWidget; - if(grandParent && parent.parentDomNode === this.parentDomNode) { - index = grandParent.children.indexOf(parent); - if(index !== -1) { - return parent.findNextSiblingDomNode(index); - } - } - return null; -}; - -/* -Find the first DOM node generated by a widget or its children -*/ -Widget.prototype.findFirstDomNode = function() { - // Return the first dom node of this widget, if we've got one - if(this.domNodes.length > 0) { - return this.domNodes[0]; - } - // Otherwise, recursively call our children - for(var t=0; t<this.children.length; t++) { - var domNode = this.children[t].findFirstDomNode(); - if(domNode) { - return domNode; - } - } - return null; -}; - -/* -Remove any DOM nodes created by this widget or its children -*/ -Widget.prototype.removeChildDomNodes = function() { - // If this widget has directly created DOM nodes, delete them and exit. This assumes that any child widgets are contained within the created DOM nodes, which would normally be the case - if(this.domNodes.length > 0) { - $tw.utils.each(this.domNodes,function(domNode) { - domNode.parentNode.removeChild(domNode); - }); - this.domNodes = []; - } else { - // Otherwise, ask the child widgets to delete their DOM nodes - $tw.utils.each(this.children,function(childWidget) { - childWidget.removeChildDomNodes(); - }); - } -}; - -/* -Invoke the action widgets that are descendents of the current widget. -*/ -Widget.prototype.invokeActions = function(triggeringWidget,event) { - var handled = false; - // For each child widget - for(var t=0; t<this.children.length; t++) { - var child = this.children[t]; - // Invoke the child if it is an action widget - if(child.invokeAction) { - child.refreshSelf(); - if(child.invokeAction(triggeringWidget,event)) { - handled = true; - } - } - // Propagate through through the child if it permits it - if(child.allowActionPropagation() && child.invokeActions(triggeringWidget,event)) { - handled = true; - } - } - return handled; -}; - -/* -Invoke the action widgets defined in a string -*/ -Widget.prototype.invokeActionString = function(actions,triggeringWidget,event,variables) { - actions = actions || ""; - var parser = this.wiki.parseText("text/vnd.tiddlywiki",actions,{ - parentWidget: this, - document: this.document - }), - widgetNode = this.wiki.makeWidget(parser,{ - parentWidget: this, - document: this.document, - variables: variables - }); - var container = this.document.createElement("div"); - widgetNode.render(container,null); - return widgetNode.invokeActions(this,event); -}; - -Widget.prototype.allowActionPropagation = function() { - return true; -}; - -exports.widget = Widget; - -})(); --
/*\ -title: $:/core/modules/widgets/wikify.js -type: application/javascript -module-type: widget - -Widget to wikify text into a variable - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var WikifyWidget = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -WikifyWidget.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -WikifyWidget.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.computeAttributes(); - this.execute(); - this.renderChildren(parent,nextSibling); -}; - -/* -Compute the internal state of the widget -*/ -WikifyWidget.prototype.execute = function() { - // Get our parameters - this.wikifyName = this.getAttribute("name"); - this.wikifyText = this.getAttribute("text"); - this.wikifyType = this.getAttribute("type"); - this.wikifyMode = this.getAttribute("mode","block"); - this.wikifyOutput = this.getAttribute("output","text"); - // Create the parse tree - this.wikifyParser = this.wiki.parseText(this.wikifyType,this.wikifyText,{ - parseAsInline: this.wikifyMode === "inline" - }); - // Create the widget tree - this.wikifyWidgetNode = this.wiki.makeWidget(this.wikifyParser,{ - document: $tw.fakeDocument, - parentWidget: this - }); - // Render the widget tree to the container - this.wikifyContainer = $tw.fakeDocument.createElement("div"); - this.wikifyWidgetNode.render(this.wikifyContainer,null); - this.wikifyResult = this.getResult(); - // Set context variable - this.setVariable(this.wikifyName,this.wikifyResult); - // Construct the child widgets - this.makeChildWidgets(); -}; - -/* -Return the result string -*/ -WikifyWidget.prototype.getResult = function() { - var result; - switch(this.wikifyOutput) { - case "text": - result = this.wikifyContainer.textContent; - break; - case "formattedtext": - result = this.wikifyContainer.formattedTextContent; - break; - case "html": - result = this.wikifyContainer.innerHTML; - break; - case "parsetree": - result = JSON.stringify(this.wikifyParser.tree,0,$tw.config.preferences.jsonSpaces); - break; - case "widgettree": - result = JSON.stringify(this.getWidgetTree(),0,$tw.config.preferences.jsonSpaces); - break; - } - return result; -}; - -/* -Return a string of the widget tree -*/ -WikifyWidget.prototype.getWidgetTree = function() { - var copyNode = function(widgetNode,resultNode) { - var type = widgetNode.parseTreeNode.type; - resultNode.type = type; - switch(type) { - case "element": - resultNode.tag = widgetNode.parseTreeNode.tag; - break; - case "text": - resultNode.text = widgetNode.parseTreeNode.text; - break; - } - if(Object.keys(widgetNode.attributes || {}).length > 0) { - resultNode.attributes = {}; - $tw.utils.each(widgetNode.attributes,function(attr,attrName) { - resultNode.attributes[attrName] = widgetNode.getAttribute(attrName); - }); - } - if(Object.keys(widgetNode.children || {}).length > 0) { - resultNode.children = []; - $tw.utils.each(widgetNode.children,function(widgetChildNode) { - var node = {}; - resultNode.children.push(node); - copyNode(widgetChildNode,node); - }); - } - }, - results = {}; - copyNode(this.wikifyWidgetNode,results); - return results; -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -WikifyWidget.prototype.refresh = function(changedTiddlers) { - var changedAttributes = this.computeAttributes(); - // Refresh ourselves entirely if any of our attributes have changed - if(changedAttributes.name || changedAttributes.text || changedAttributes.type || changedAttributes.mode || changedAttributes.output) { - this.refreshSelf(); - return true; - } else { - // Refresh the widget tree - if(this.wikifyWidgetNode.refresh(changedTiddlers)) { - // Check if there was any change - var result = this.getResult(); - if(result !== this.wikifyResult) { - // If so, save the change - this.wikifyResult = result; - this.setVariable(this.wikifyName,this.wikifyResult); - // Refresh each of our child widgets - $tw.utils.each(this.children,function(childWidget) { - childWidget.refreshSelf(); - }); - return true; - } - } - // Just refresh the children - return this.refreshChildren(changedTiddlers); - } -}; - -exports.wikify = WikifyWidget; - -})(); --
/*\ -title: $:/core/modules/wiki-bulkops.js -type: application/javascript -module-type: wikimethod - -Bulk tiddler operations such as rename. - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -/* -Rename a tiddler, and relink any tags or lists that reference it. -*/ -function renameTiddler(fromTitle,toTitle,options) { - fromTitle = (fromTitle || "").trim(); - toTitle = (toTitle || "").trim(); - options = options || {}; - if(fromTitle && toTitle && fromTitle !== toTitle) { - // Rename the tiddler itself - var oldTiddler = this.getTiddler(fromTitle), - newTiddler = new $tw.Tiddler(oldTiddler,{title: toTitle},this.getModificationFields()); - newTiddler = $tw.hooks.invokeHook("th-renaming-tiddler",newTiddler,oldTiddler); - this.addTiddler(newTiddler); - this.deleteTiddler(fromTitle); - // Rename any tags or lists that reference it - this.relinkTiddler(fromTitle,toTitle,options) - } -} - -/* -Relink any tags or lists that reference a given tiddler -*/ -function relinkTiddler(fromTitle,toTitle,options) { - var self = this; - fromTitle = (fromTitle || "").trim(); - toTitle = (toTitle || "").trim(); - options = options || {}; - if(fromTitle && toTitle && fromTitle !== toTitle) { - this.each(function(tiddler,title) { - var type = tiddler.fields.type || ""; - // Don't touch plugins or JavaScript modules - if(!tiddler.fields["plugin-type"] && type !== "application/javascript") { - var tags = tiddler.fields.tags ? tiddler.fields.tags.slice(0) : undefined, - list = tiddler.fields.list ? tiddler.fields.list.slice(0) : undefined, - isModified = false; - if(!options.dontRenameInTags) { - // Rename tags - $tw.utils.each(tags,function (title,index) { - if(title === fromTitle) { -console.log("Renaming tag '" + tags[index] + "' to '" + toTitle + "' of tiddler '" + tiddler.fields.title + "'"); - tags[index] = toTitle; - isModified = true; - } - }); - } - if(!options.dontRenameInLists) { - // Rename lists - $tw.utils.each(list,function (title,index) { - if(title === fromTitle) { -console.log("Renaming list item '" + list[index] + "' to '" + toTitle + "' of tiddler '" + tiddler.fields.title + "'"); - list[index] = toTitle; - isModified = true; - } - }); - } - if(isModified) { - var newTiddler = new $tw.Tiddler(tiddler,{tags: tags, list: list},self.getModificationFields()) - newTiddler = $tw.hooks.invokeHook("th-relinking-tiddler",newTiddler,tiddler); - self.addTiddler(newTiddler); - } - } - }); - } -}; - -exports.renameTiddler = renameTiddler; -exports.relinkTiddler = relinkTiddler; - -})(); --
/*\ -title: $:/core/modules/wiki.js -type: application/javascript -module-type: wikimethod - -Extension methods for the $tw.Wiki object - -Adds the following properties to the wiki object: - -* `eventListeners` is a hashmap by type of arrays of listener functions -* `changedTiddlers` is a hashmap describing changes to named tiddlers since wiki change events were last dispatched. Each entry is a hashmap containing two fields: - modified: true/false - deleted: true/false -* `changeCount` is a hashmap by tiddler title containing a numerical index that starts at zero and is incremented each time a tiddler is created changed or deleted -* `caches` is a hashmap by tiddler title containing a further hashmap of named cache objects. Caches are automatically cleared when a tiddler is modified or deleted -* `globalCache` is a hashmap by cache name of cache objects that are cleared whenever any tiddler change occurs - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var widget = require("$:/core/modules/widgets/widget.js"); - -var USER_NAME_TITLE = "$:/status/UserName", - TIMESTAMP_DISABLE_TITLE = "$:/config/TimestampDisable"; - -/* -Add available indexers to this wiki -*/ -exports.addIndexersToWiki = function() { - var self = this; - $tw.utils.each($tw.modules.applyMethods("indexer"),function(Indexer,name) { - self.addIndexer(new Indexer(self),name); - }); -}; - -/* -Get the value of a text reference. Text references can have any of these forms: - <tiddlertitle> - <tiddlertitle>!!<fieldname> - !!<fieldname> - specifies a field of the current tiddlers - <tiddlertitle>##<index> -*/ -exports.getTextReference = function(textRef,defaultText,currTiddlerTitle) { - var tr = $tw.utils.parseTextReference(textRef), - title = tr.title || currTiddlerTitle; - if(tr.field) { - var tiddler = this.getTiddler(title); - if(tr.field === "title") { // Special case so we can return the title of a non-existent tiddler - return title; - } else if(tiddler && $tw.utils.hop(tiddler.fields,tr.field)) { - return tiddler.getFieldString(tr.field); - } else { - return defaultText; - } - } else if(tr.index) { - return this.extractTiddlerDataItem(title,tr.index,defaultText); - } else { - return this.getTiddlerText(title,defaultText); - } -}; - -exports.setTextReference = function(textRef,value,currTiddlerTitle) { - var tr = $tw.utils.parseTextReference(textRef), - title = tr.title || currTiddlerTitle; - this.setText(title,tr.field,tr.index,value); -}; - -exports.setText = function(title,field,index,value,options) { - options = options || {}; - var creationFields = options.suppressTimestamp ? {} : this.getCreationFields(), - modificationFields = options.suppressTimestamp ? {} : this.getModificationFields(); - // Check if it is a reference to a tiddler field - if(index) { - var data = this.getTiddlerData(title,Object.create(null)); - if(value !== undefined) { - data[index] = value; - } else { - delete data[index]; - } - this.setTiddlerData(title,data,modificationFields); - } else { - var tiddler = this.getTiddler(title), - fields = {title: title}; - fields[field || "text"] = value; - this.addTiddler(new $tw.Tiddler(creationFields,tiddler,fields,modificationFields)); - } -}; - -exports.deleteTextReference = function(textRef,currTiddlerTitle) { - var tr = $tw.utils.parseTextReference(textRef), - title,tiddler,fields; - // Check if it is a reference to a tiddler - if(tr.title && !tr.field) { - this.deleteTiddler(tr.title); - // Else check for a field reference - } else if(tr.field) { - title = tr.title || currTiddlerTitle; - tiddler = this.getTiddler(title); - if(tiddler && $tw.utils.hop(tiddler.fields,tr.field)) { - fields = Object.create(null); - fields[tr.field] = undefined; - this.addTiddler(new $tw.Tiddler(tiddler,fields,this.getModificationFields())); - } - } -}; - -exports.addEventListener = function(type,listener) { - this.eventListeners = this.eventListeners || {}; - this.eventListeners[type] = this.eventListeners[type] || []; - this.eventListeners[type].push(listener); -}; - -exports.removeEventListener = function(type,listener) { - var listeners = this.eventListeners[type]; - if(listeners) { - var p = listeners.indexOf(listener); - if(p !== -1) { - listeners.splice(p,1); - } - } -}; - -exports.dispatchEvent = function(type /*, args */) { - var args = Array.prototype.slice.call(arguments,1), - listeners = this.eventListeners[type]; - if(listeners) { - for(var p=0; p<listeners.length; p++) { - var listener = listeners[p]; - listener.apply(listener,args); - } - } -}; - -/* -Causes a tiddler to be marked as changed, incrementing the change count, and triggers event handlers. -This method should be called after the changes it describes have been made to the wiki.tiddlers[] array. - title: Title of tiddler - isDeleted: defaults to false (meaning the tiddler has been created or modified), - true if the tiddler has been deleted -*/ -exports.enqueueTiddlerEvent = function(title,isDeleted) { - // Record the touch in the list of changed tiddlers - this.changedTiddlers = this.changedTiddlers || Object.create(null); - this.changedTiddlers[title] = this.changedTiddlers[title] || Object.create(null); - this.changedTiddlers[title][isDeleted ? "deleted" : "modified"] = true; - // Increment the change count - this.changeCount = this.changeCount || Object.create(null); - if($tw.utils.hop(this.changeCount,title)) { - this.changeCount[title]++; - } else { - this.changeCount[title] = 1; - } - // Trigger events - this.eventListeners = this.eventListeners || {}; - if(!this.eventsTriggered) { - var self = this; - $tw.utils.nextTick(function() { - var changes = self.changedTiddlers; - self.changedTiddlers = Object.create(null); - self.eventsTriggered = false; - if($tw.utils.count(changes) > 0) { - self.dispatchEvent("change",changes); - } - }); - this.eventsTriggered = true; - } -}; - -exports.getSizeOfTiddlerEventQueue = function() { - return $tw.utils.count(this.changedTiddlers); -}; - -exports.clearTiddlerEventQueue = function() { - this.changedTiddlers = Object.create(null); - this.changeCount = Object.create(null); -}; - -exports.getChangeCount = function(title) { - this.changeCount = this.changeCount || Object.create(null); - if($tw.utils.hop(this.changeCount,title)) { - return this.changeCount[title]; - } else { - return 0; - } -}; - -/* -Generate an unused title from the specified base -*/ -exports.generateNewTitle = function(baseTitle,options) { - options = options || {}; - var c = 0, - title = baseTitle; - while(this.tiddlerExists(title) || this.isShadowTiddler(title) || this.findDraft(title)) { - title = baseTitle + - (options.prefix || " ") + - (++c); - } - return title; -}; - -exports.isSystemTiddler = function(title) { - return title && title.indexOf("$:/") === 0; -}; - -exports.isTemporaryTiddler = function(title) { - return title && title.indexOf("$:/temp/") === 0; -}; - -exports.isImageTiddler = function(title) { - var tiddler = this.getTiddler(title); - if(tiddler) { - var contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || "text/vnd.tiddlywiki"]; - return !!contentTypeInfo && contentTypeInfo.flags.indexOf("image") !== -1; - } else { - return null; - } -}; - -exports.isBinaryTiddler = function(title) { - var tiddler = this.getTiddler(title); - if(tiddler) { - var contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type || "text/vnd.tiddlywiki"]; - return !!contentTypeInfo && contentTypeInfo.encoding === "base64"; - } else { - return null; - } -}; - -/* -Like addTiddler() except it will silently reject any plugin tiddlers that are older than the currently loaded version. Returns true if the tiddler was imported -*/ -exports.importTiddler = function(tiddler) { - var existingTiddler = this.getTiddler(tiddler.fields.title); - // Check if we're dealing with a plugin - if(tiddler && tiddler.hasField("plugin-type") && tiddler.hasField("version") && existingTiddler && existingTiddler.hasField("plugin-type") && existingTiddler.hasField("version")) { - // Reject the incoming plugin if it is older - if(!$tw.utils.checkVersions(tiddler.fields.version,existingTiddler.fields.version)) { - return false; - } - } - // Fall through to adding the tiddler - this.addTiddler(tiddler); - return true; -}; - -/* -Return a hashmap of the fields that should be set when a tiddler is created -*/ -exports.getCreationFields = function() { - if(this.getTiddlerText(TIMESTAMP_DISABLE_TITLE,"").toLowerCase() !== "yes") { - var fields = { - created: new Date() - }, - creator = this.getTiddlerText(USER_NAME_TITLE); - if(creator) { - fields.creator = creator; - } - return fields; - } else { - return {}; - } -}; - -/* -Return a hashmap of the fields that should be set when a tiddler is modified -*/ -exports.getModificationFields = function() { - if(this.getTiddlerText(TIMESTAMP_DISABLE_TITLE,"").toLowerCase() !== "yes") { - var fields = Object.create(null), - modifier = this.getTiddlerText(USER_NAME_TITLE); - fields.modified = new Date(); - if(modifier) { - fields.modifier = modifier; - } - return fields; - } else { - return {}; - } -}; - -/* -Return a sorted array of tiddler titles. Options include: -sortField: field to sort by -excludeTag: tag to exclude -includeSystem: whether to include system tiddlers (defaults to false) -*/ -exports.getTiddlers = function(options) { - options = options || Object.create(null); - var self = this, - sortField = options.sortField || "title", - tiddlers = [], t, titles = []; - this.each(function(tiddler,title) { - if(options.includeSystem || !self.isSystemTiddler(title)) { - if(!options.excludeTag || !tiddler.hasTag(options.excludeTag)) { - tiddlers.push(tiddler); - } - } - }); - tiddlers.sort(function(a,b) { - var aa = a.fields[sortField].toLowerCase() || "", - bb = b.fields[sortField].toLowerCase() || ""; - if(aa < bb) { - return -1; - } else { - if(aa > bb) { - return 1; - } else { - return 0; - } - } - }); - for(t=0; t<tiddlers.length; t++) { - titles.push(tiddlers[t].fields.title); - } - return titles; -}; - -exports.countTiddlers = function(excludeTag) { - var tiddlers = this.getTiddlers({excludeTag: excludeTag}); - return $tw.utils.count(tiddlers); -}; - -/* -Returns a function iterator(callback) that iterates through the specified titles, and invokes the callback with callback(tiddler,title) -*/ -exports.makeTiddlerIterator = function(titles) { - var self = this; - if(!$tw.utils.isArray(titles)) { - titles = Object.keys(titles); - } else { - titles = titles.slice(0); - } - return function(callback) { - titles.forEach(function(title) { - callback(self.getTiddler(title),title); - }); - }; -}; - -/* -Sort an array of tiddler titles by a specified field - titles: array of titles (sorted in place) - sortField: name of field to sort by - isDescending: true if the sort should be descending - isCaseSensitive: true if the sort should consider upper and lower case letters to be different -*/ -exports.sortTiddlers = function(titles,sortField,isDescending,isCaseSensitive,isNumeric,isAlphaNumeric) { - var self = this; - titles.sort(function(a,b) { - var x,y, - compareNumbers = function(x,y) { - var result = - isNaN(x) && !isNaN(y) ? (isDescending ? -1 : 1) : - !isNaN(x) && isNaN(y) ? (isDescending ? 1 : -1) : - (isDescending ? y - x : x - y); - return result; - }; - if(sortField !== "title") { - var tiddlerA = self.getTiddler(a), - tiddlerB = self.getTiddler(b); - if(tiddlerA) { - a = tiddlerA.fields[sortField] || ""; - } else { - a = ""; - } - if(tiddlerB) { - b = tiddlerB.fields[sortField] || ""; - } else { - b = ""; - } - } - x = Number(a); - y = Number(b); - if(isNumeric && (!isNaN(x) || !isNaN(y))) { - return compareNumbers(x,y); - } else if(isAlphaNumeric) { - return isDescending ? b.localeCompare(a,undefined,{numeric: true,sensitivity: "base"}) : a.localeCompare(b,undefined,{numeric: true,sensitivity: "base"}); - } else if($tw.utils.isDate(a) && $tw.utils.isDate(b)) { - return isDescending ? b - a : a - b; - } else { - a = String(a); - b = String(b); - if(!isCaseSensitive) { - a = a.toLowerCase(); - b = b.toLowerCase(); - } - return isDescending ? b.localeCompare(a) : a.localeCompare(b); - } - }); -}; - -/* -For every tiddler invoke a callback(title,tiddler) with `this` set to the wiki object. Options include: -sortField: field to sort by -excludeTag: tag to exclude -includeSystem: whether to include system tiddlers (defaults to false) -*/ -exports.forEachTiddler = function(/* [options,]callback */) { - var arg = 0, - options = arguments.length >= 2 ? arguments[arg++] : {}, - callback = arguments[arg++], - titles = this.getTiddlers(options), - t, tiddler; - for(t=0; t<titles.length; t++) { - tiddler = this.getTiddler(titles[t]); - if(tiddler) { - callback.call(this,tiddler.fields.title,tiddler); - } - } -}; - -/* -Return an array of tiddler titles that are directly linked within the given parse tree - */ -exports.extractLinks = function(parseTreeRoot) { - // Count up the links - var links = [], - checkParseTree = function(parseTree) { - for(var t=0; t<parseTree.length; t++) { - var parseTreeNode = parseTree[t]; - if(parseTreeNode.type === "link" && parseTreeNode.attributes.to && parseTreeNode.attributes.to.type === "string") { - var value = parseTreeNode.attributes.to.value; - if(links.indexOf(value) === -1) { - links.push(value); - } - } - if(parseTreeNode.children) { - checkParseTree(parseTreeNode.children); - } - } - }; - checkParseTree(parseTreeRoot); - return links; -}; - -/* -Return an array of tiddler titles that are directly linked from the specified tiddler -*/ -exports.getTiddlerLinks = function(title) { - var self = this; - // We'll cache the links so they only get computed if the tiddler changes - return this.getCacheForTiddler(title,"links",function() { - // Parse the tiddler - var parser = self.parseTiddler(title); - if(parser) { - return self.extractLinks(parser.tree); - } - return []; - }); -}; - -/* -Return an array of tiddler titles that link to the specified tiddler -*/ -exports.getTiddlerBacklinks = function(targetTitle) { - var self = this, - backlinksIndexer = this.getIndexer("BacklinksIndexer"), - backlinks = backlinksIndexer && backlinksIndexer.lookup(targetTitle); - - if(!backlinks) { - backlinks = []; - this.forEachTiddler(function(title,tiddler) { - var links = self.getTiddlerLinks(title); - if(links.indexOf(targetTitle) !== -1) { - backlinks.push(title); - } - }); - } - return backlinks; -}; - -/* -Return a hashmap of tiddler titles that are referenced but not defined. Each value is the number of times the missing tiddler is referenced -*/ -exports.getMissingTitles = function() { - var self = this, - missing = []; -// We should cache the missing tiddler list, even if we recreate it every time any tiddler is modified - this.forEachTiddler(function(title,tiddler) { - var links = self.getTiddlerLinks(title); - $tw.utils.each(links,function(link) { - if((!self.tiddlerExists(link) && !self.isShadowTiddler(link)) && missing.indexOf(link) === -1) { - missing.push(link); - } - }); - }); - return missing; -}; - -exports.getOrphanTitles = function() { - var self = this, - orphans = this.getTiddlers(); - this.forEachTiddler(function(title,tiddler) { - var links = self.getTiddlerLinks(title); - $tw.utils.each(links,function(link) { - var p = orphans.indexOf(link); - if(p !== -1) { - orphans.splice(p,1); - } - }); - }); - return orphans; // Todo -}; - -/* -Retrieves a list of the tiddler titles that are tagged with a given tag -*/ -exports.getTiddlersWithTag = function(tag) { - // Try to use the indexer - var self = this, - tagIndexer = this.getIndexer("TagIndexer"), - results = tagIndexer && tagIndexer.subIndexers[3].lookup(tag); - if(!results) { - // If not available, perform a manual scan - results = this.getGlobalCache("taglist-" + tag,function() { - var tagmap = self.getTagMap(); - return self.sortByList(tagmap[tag],tag); - }); - } - return results; -}; - -/* -Get a hashmap by tag of arrays of tiddler titles -*/ -exports.getTagMap = function() { - var self = this; - return this.getGlobalCache("tagmap",function() { - var tags = Object.create(null), - storeTags = function(tagArray,title) { - if(tagArray) { - for(var index=0; index<tagArray.length; index++) { - var tag = tagArray[index]; - if($tw.utils.hop(tags,tag)) { - tags[tag].push(title); - } else { - tags[tag] = [title]; - } - } - } - }, - title, tiddler; - // Collect up all the tags - self.eachShadow(function(tiddler,title) { - if(!self.tiddlerExists(title)) { - tiddler = self.getTiddler(title); - storeTags(tiddler.fields.tags,title); - } - }); - self.each(function(tiddler,title) { - storeTags(tiddler.fields.tags,title); - }); - return tags; - }); -}; - -/* -Lookup a given tiddler and return a list of all the tiddlers that include it in the specified list field -*/ -exports.findListingsOfTiddler = function(targetTitle,fieldName) { - fieldName = fieldName || "list"; - var titles = []; - this.each(function(tiddler,title) { - var list = $tw.utils.parseStringArray(tiddler.fields[fieldName]); - if(list && list.indexOf(targetTitle) !== -1) { - titles.push(title); - } - }); - return titles; -}; - -/* -Sorts an array of tiddler titles according to an ordered list -*/ -exports.sortByList = function(array,listTitle) { - var self = this, - replacedTitles = Object.create(null); - // Given a title, this function will place it in the correct location - // within titles. - function moveItemInList(title) { - if(!$tw.utils.hop(replacedTitles, title)) { - replacedTitles[title] = true; - var newPos = -1, - tiddler = self.getTiddler(title); - if(tiddler) { - var beforeTitle = tiddler.fields["list-before"], - afterTitle = tiddler.fields["list-after"]; - if(beforeTitle === "") { - newPos = 0; - } else if(afterTitle === "") { - newPos = titles.length; - } else if(beforeTitle) { - // if this title is placed relative - // to another title, make sure that - // title is placed before we place - // this one. - moveItemInList(beforeTitle); - newPos = titles.indexOf(beforeTitle); - } else if(afterTitle) { - // Same deal - moveItemInList(afterTitle); - newPos = titles.indexOf(afterTitle); - if(newPos >= 0) { - ++newPos; - } - } - // If a new position is specified, let's move it - if (newPos !== -1) { - // get its current Pos, and make sure - // sure that it's _actually_ in the list - // and that it would _actually_ move - // (#4275) We don't bother calling - // indexOf unless we have a new - // position to work with - var currPos = titles.indexOf(title); - if(currPos >= 0 && newPos !== currPos) { - // move it! - titles.splice(currPos,1); - if(newPos >= currPos) { - newPos--; - } - titles.splice(newPos,0,title); - } - } - } - } - } - var list = this.getTiddlerList(listTitle); - if(!array || array.length === 0) { - return []; - } else { - var titles = [], t, title; - // First place any entries that are present in the list - for(t=0; t<list.length; t++) { - title = list[t]; - if(array.indexOf(title) !== -1) { - titles.push(title); - } - } - // Then place any remaining entries - for(t=0; t<array.length; t++) { - title = array[t]; - if(list.indexOf(title) === -1) { - titles.push(title); - } - } - // Finally obey the list-before and list-after fields of each tiddler in turn - var sortedTitles = titles.slice(0); - for(t=0; t<sortedTitles.length; t++) { - title = sortedTitles[t]; - moveItemInList(title); - } - return titles; - } -}; - -exports.getSubTiddler = function(title,subTiddlerTitle) { - var bundleInfo = this.getPluginInfo(title) || this.getTiddlerDataCached(title); - if(bundleInfo && bundleInfo.tiddlers) { - var subTiddler = bundleInfo.tiddlers[subTiddlerTitle]; - if(subTiddler) { - return new $tw.Tiddler(subTiddler); - } - } - return null; -}; - -/* -Retrieve a tiddler as a JSON string of the fields -*/ -exports.getTiddlerAsJson = function(title) { - var tiddler = this.getTiddler(title); - if(tiddler) { - var fields = Object.create(null); - $tw.utils.each(tiddler.fields,function(value,name) { - fields[name] = tiddler.getFieldString(name); - }); - return JSON.stringify(fields); - } else { - return JSON.stringify({title: title}); - } -}; - -exports.getTiddlersAsJson = function(filter,spaces) { - var tiddlers = this.filterTiddlers(filter), - spaces = (spaces === undefined) ? $tw.config.preferences.jsonSpaces : spaces, - data = []; - for(var t=0;t<tiddlers.length; t++) { - var tiddler = this.getTiddler(tiddlers[t]); - if(tiddler) { - var fields = new Object(); - for(var field in tiddler.fields) { - fields[field] = tiddler.getFieldString(field); - } - data.push(fields); - } - } - return JSON.stringify(data,null,spaces); -}; - -/* -Get the content of a tiddler as a JavaScript object. How this is done depends on the type of the tiddler: - -application/json: the tiddler JSON is parsed into an object -application/x-tiddler-dictionary: the tiddler is parsed as sequence of name:value pairs - -Other types currently just return null. - -titleOrTiddler: string tiddler title or a tiddler object -defaultData: default data to be returned if the tiddler is missing or doesn't contain data - -Note that the same value is returned for repeated calls for the same tiddler data. The value is frozen to prevent modification; otherwise modifications would be visible to all callers -*/ -exports.getTiddlerDataCached = function(titleOrTiddler,defaultData) { - var self = this, - tiddler = titleOrTiddler; - if(!(tiddler instanceof $tw.Tiddler)) { - tiddler = this.getTiddler(tiddler); - } - if(tiddler) { - return this.getCacheForTiddler(tiddler.fields.title,"data",function() { - // Return the frozen value - var value = self.getTiddlerData(tiddler.fields.title,undefined); - $tw.utils.deepFreeze(value); - return value; - }) || defaultData; - } else { - return defaultData; - } -}; - -/* -Alternative, uncached version of getTiddlerDataCached(). The return value can be mutated freely and reused -*/ -exports.getTiddlerData = function(titleOrTiddler,defaultData) { - var tiddler = titleOrTiddler, - data; - if(!(tiddler instanceof $tw.Tiddler)) { - tiddler = this.getTiddler(tiddler); - } - if(tiddler && tiddler.fields.text) { - switch(tiddler.fields.type) { - case "application/json": - // JSON tiddler - try { - data = JSON.parse(tiddler.fields.text); - } catch(ex) { - return defaultData; - } - return data; - case "application/x-tiddler-dictionary": - return $tw.utils.parseFields(tiddler.fields.text); - } - } - return defaultData; -}; - -/* -Extract an indexed field from within a data tiddler -*/ -exports.extractTiddlerDataItem = function(titleOrTiddler,index,defaultText) { - var data = this.getTiddlerDataCached(titleOrTiddler,Object.create(null)), - text; - if(data && $tw.utils.hop(data,index)) { - text = data[index]; - } - if(typeof text === "string" || typeof text === "number") { - return text.toString(); - } else { - return defaultText; - } -}; - -/* -Set a tiddlers content to a JavaScript object. Currently this is done by setting the tiddler's type to "application/json" and setting the text to the JSON text of the data. -title: title of tiddler -data: object that can be serialised to JSON -fields: optional hashmap of additional tiddler fields to be set -*/ -exports.setTiddlerData = function(title,data,fields) { - var existingTiddler = this.getTiddler(title), - newFields = { - title: title - }; - if(existingTiddler && existingTiddler.fields.type === "application/x-tiddler-dictionary") { - newFields.text = $tw.utils.makeTiddlerDictionary(data); - } else { - newFields.type = "application/json"; - newFields.text = JSON.stringify(data,null,$tw.config.preferences.jsonSpaces); - } - this.addTiddler(new $tw.Tiddler(this.getCreationFields(),existingTiddler,fields,newFields,this.getModificationFields())); -}; - -/* -Return the content of a tiddler as an array containing each line -*/ -exports.getTiddlerList = function(title,field,index) { - if(index) { - return $tw.utils.parseStringArray(this.extractTiddlerDataItem(title,index,"")); - } - field = field || "list"; - var tiddler = this.getTiddler(title); - if(tiddler) { - return ($tw.utils.parseStringArray(tiddler.fields[field]) || []).slice(0); - } - return []; -}; - -// Return a named global cache object. Global cache objects are cleared whenever a tiddler change occurs -exports.getGlobalCache = function(cacheName,initializer) { - this.globalCache = this.globalCache || Object.create(null); - if($tw.utils.hop(this.globalCache,cacheName)) { - return this.globalCache[cacheName]; - } else { - this.globalCache[cacheName] = initializer(); - return this.globalCache[cacheName]; - } -}; - -exports.clearGlobalCache = function() { - this.globalCache = Object.create(null); -}; - -// Return the named cache object for a tiddler. If the cache doesn't exist then the initializer function is invoked to create it -exports.getCacheForTiddler = function(title,cacheName,initializer) { - this.caches = this.caches || Object.create(null); - var caches = this.caches[title]; - if(caches && caches[cacheName]) { - return caches[cacheName]; - } else { - if(!caches) { - caches = Object.create(null); - this.caches[title] = caches; - } - caches[cacheName] = initializer(); - return caches[cacheName]; - } -}; - -// Clear all caches associated with a particular tiddler, or, if the title is null, clear all the caches for all the tiddlers -exports.clearCache = function(title) { - if(title) { - this.caches = this.caches || Object.create(null); - if($tw.utils.hop(this.caches,title)) { - delete this.caches[title]; - } - } else { - this.caches = Object.create(null); - } -}; - -exports.initParsers = function(moduleType) { - // Install the parser modules - $tw.Wiki.parsers = {}; - var self = this; - $tw.modules.forEachModuleOfType("parser",function(title,module) { - for(var f in module) { - if($tw.utils.hop(module,f)) { - $tw.Wiki.parsers[f] = module[f]; // Store the parser class - } - } - }); - // Use the generic binary parser for any binary types not registered so far - if($tw.Wiki.parsers["application/octet-stream"]) { - Object.keys($tw.config.contentTypeInfo).forEach(function(type) { - if(!$tw.utils.hop($tw.Wiki.parsers,type) && $tw.config.contentTypeInfo[type].encoding === "base64") { - $tw.Wiki.parsers[type] = $tw.Wiki.parsers["application/octet-stream"]; - } - }); - } -}; - -/* -Parse a block of text of a specified MIME type - type: content type of text to be parsed - text: text - options: see below -Options include: - parseAsInline: if true, the text of the tiddler will be parsed as an inline run - _canonical_uri: optional string of the canonical URI of this content -*/ -exports.parseText = function(type,text,options) { - text = text || ""; - options = options || {}; - // Select a parser - var Parser = $tw.Wiki.parsers[type]; - if(!Parser && $tw.utils.getFileExtensionInfo(type)) { - Parser = $tw.Wiki.parsers[$tw.utils.getFileExtensionInfo(type).type]; - } - if(!Parser) { - Parser = $tw.Wiki.parsers[options.defaultType || "text/vnd.tiddlywiki"]; - } - if(!Parser) { - return null; - } - // Return the parser instance - return new Parser(type,text,{ - parseAsInline: options.parseAsInline, - wiki: this, - _canonical_uri: options._canonical_uri - }); -}; - -/* -Parse a tiddler according to its MIME type -*/ -exports.parseTiddler = function(title,options) { - options = $tw.utils.extend({},options); - var cacheType = options.parseAsInline ? "inlineParseTree" : "blockParseTree", - tiddler = this.getTiddler(title), - self = this; - return tiddler ? this.getCacheForTiddler(title,cacheType,function() { - if(tiddler.hasField("_canonical_uri")) { - options._canonical_uri = tiddler.fields._canonical_uri; - } - return self.parseText(tiddler.fields.type,tiddler.fields.text,options); - }) : null; -}; - -exports.parseTextReference = function(title,field,index,options) { - var tiddler,text; - if(options.subTiddler) { - tiddler = this.getSubTiddler(title,options.subTiddler); - } else { - tiddler = this.getTiddler(title); - if(field === "text" || (!field && !index)) { - this.getTiddlerText(title); // Force the tiddler to be lazily loaded - return this.parseTiddler(title,options); - } - } - if(field === "text" || (!field && !index)) { - if(tiddler && tiddler.fields) { - return this.parseText(tiddler.fields.type,tiddler.fields.text,options); - } else { - return null; - } - } else if(field) { - if(field === "title") { - text = title; - } else { - if(!tiddler || !tiddler.hasField(field)) { - return null; - } - text = tiddler.fields[field]; - } - return this.parseText("text/vnd.tiddlywiki",text.toString(),options); - } else if(index) { - this.getTiddlerText(title); // Force the tiddler to be lazily loaded - text = this.extractTiddlerDataItem(tiddler,index,undefined); - if(text === undefined) { - return null; - } - return this.parseText("text/vnd.tiddlywiki",text,options); - } -}; - -/* -Make a widget tree for a parse tree -parser: parser object -options: see below -Options include: -document: optional document to use -variables: hashmap of variables to set -parentWidget: optional parent widget for the root node -*/ -exports.makeWidget = function(parser,options) { - options = options || {}; - var widgetNode = { - type: "widget", - children: [] - }, - currWidgetNode = widgetNode; - // Create set variable widgets for each variable - $tw.utils.each(options.variables,function(value,name) { - var setVariableWidget = { - type: "set", - attributes: { - name: {type: "string", value: name}, - value: {type: "string", value: value} - }, - children: [] - }; - currWidgetNode.children = [setVariableWidget]; - currWidgetNode = setVariableWidget; - }); - // Add in the supplied parse tree nodes - currWidgetNode.children = parser ? parser.tree : []; - // Create the widget - return new widget.widget(widgetNode,{ - wiki: this, - document: options.document || $tw.fakeDocument, - parentWidget: options.parentWidget - }); -}; - -/* -Make a widget tree for transclusion -title: target tiddler title -options: as for wiki.makeWidget() plus: -options.field: optional field to transclude (defaults to "text") -options.mode: transclusion mode "inline" or "block" -options.children: optional array of children for the transclude widget -options.importVariables: optional importvariables filter string for macros to be included -options.importPageMacros: optional boolean; if true, equivalent to passing "[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]" to options.importVariables -*/ -exports.makeTranscludeWidget = function(title,options) { - options = options || {}; - var parseTreeDiv = {tree: [{ - type: "element", - tag: "div", - children: []}]}, - parseTreeImportVariables = { - type: "importvariables", - attributes: { - filter: { - name: "filter", - type: "string" - } - }, - isBlock: false, - children: []}, - parseTreeTransclude = { - type: "transclude", - attributes: { - tiddler: { - name: "tiddler", - type: "string", - value: title}}, - isBlock: !options.parseAsInline}; - if(options.importVariables || options.importPageMacros) { - if(options.importVariables) { - parseTreeImportVariables.attributes.filter.value = options.importVariables; - } else if(options.importPageMacros) { - parseTreeImportVariables.attributes.filter.value = "[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]"; - } - parseTreeDiv.tree[0].children.push(parseTreeImportVariables); - parseTreeImportVariables.children.push(parseTreeTransclude); - } else { - parseTreeDiv.tree[0].children.push(parseTreeTransclude); - } - if(options.field) { - parseTreeTransclude.attributes.field = {type: "string", value: options.field}; - } - if(options.mode) { - parseTreeTransclude.attributes.mode = {type: "string", value: options.mode}; - } - if(options.children) { - parseTreeTransclude.children = options.children; - } - return $tw.wiki.makeWidget(parseTreeDiv,options); -}; - -/* -Parse text in a specified format and render it into another format - outputType: content type for the output - textType: content type of the input text - text: input text - options: see below -Options include: -variables: hashmap of variables to set -parentWidget: optional parent widget for the root node -*/ -exports.renderText = function(outputType,textType,text,options) { - options = options || {}; - var parser = this.parseText(textType,text,options), - widgetNode = this.makeWidget(parser,options); - var container = $tw.fakeDocument.createElement("div"); - widgetNode.render(container,null); - return outputType === "text/html" ? container.innerHTML : container.textContent; -}; - -/* -Parse text from a tiddler and render it into another format - outputType: content type for the output - title: title of the tiddler to be rendered - options: see below -Options include: -variables: hashmap of variables to set -parentWidget: optional parent widget for the root node -*/ -exports.renderTiddler = function(outputType,title,options) { - options = options || {}; - var parser = this.parseTiddler(title,options), - widgetNode = this.makeWidget(parser,options); - var container = $tw.fakeDocument.createElement("div"); - widgetNode.render(container,null); - return outputType === "text/html" ? container.innerHTML : (outputType === "text/plain-formatted" ? container.formattedTextContent : container.textContent); -}; - -/* -Return an array of tiddler titles that match a search string - text: The text string to search for - options: see below -Options available: - source: an iterator function for the source tiddlers, called source(iterator), where iterator is called as iterator(tiddler,title) - exclude: An array of tiddler titles to exclude from the search - invert: If true returns tiddlers that do not contain the specified string - caseSensitive: If true forces a case sensitive search - field: If specified, restricts the search to the specified field, or an array of field names - anchored: If true, forces all but regexp searches to be anchored to the start of text - excludeField: If true, the field options are inverted to specify the fields that are not to be searched - The search mode is determined by the first of these boolean flags to be true - literal: searches for literal string - whitespace: same as literal except runs of whitespace are treated as a single space - regexp: treats the search term as a regular expression - words: (default) treats search string as a list of tokens, and matches if all tokens are found, regardless of adjacency or ordering -*/ -exports.search = function(text,options) { - options = options || {}; - var self = this, - t, - invert = !!options.invert; - // Convert the search string into a regexp for each term - var terms, searchTermsRegExps, - flags = options.caseSensitive ? "" : "i", - anchor = options.anchored ? "^" : ""; - if(options.literal) { - if(text.length === 0) { - searchTermsRegExps = null; - } else { - searchTermsRegExps = [new RegExp("(" + anchor + $tw.utils.escapeRegExp(text) + ")",flags)]; - } - } else if(options.whitespace) { - terms = []; - $tw.utils.each(text.split(/\s+/g),function(term) { - if(term) { - terms.push($tw.utils.escapeRegExp(term)); - } - }); - searchTermsRegExps = [new RegExp("(" + anchor + terms.join("\\s+") + ")",flags)]; - } else if(options.regexp) { - try { - searchTermsRegExps = [new RegExp("(" + text + ")",flags)]; - } catch(e) { - searchTermsRegExps = null; - console.log("Regexp error parsing /(" + text + ")/" + flags + ": ",e); - } - } else { - terms = text.split(/ +/); - if(terms.length === 1 && terms[0] === "") { - searchTermsRegExps = null; - } else { - searchTermsRegExps = []; - for(t=0; t<terms.length; t++) { - searchTermsRegExps.push(new RegExp("(" + anchor + $tw.utils.escapeRegExp(terms[t]) + ")",flags)); - } - } - } - // Accumulate the array of fields to be searched or excluded from the search - var fields = []; - if(options.field) { - if($tw.utils.isArray(options.field)) { - $tw.utils.each(options.field,function(fieldName) { - if(fieldName) { - fields.push(fieldName); - } - }); - } else { - fields.push(options.field); - } - } - // Use default fields if none specified and we're not excluding fields (excluding fields with an empty field array is the same as searching all fields) - if(fields.length === 0 && !options.excludeField) { - fields.push("title"); - fields.push("tags"); - fields.push("text"); - } - // Function to check a given tiddler for the search term - var searchTiddler = function(title) { - if(!searchTermsRegExps) { - return true; - } - var notYetFound = searchTermsRegExps.slice(); - - var tiddler = self.getTiddler(title); - if(!tiddler) { - tiddler = new $tw.Tiddler({title: title, text: "", type: "text/vnd.tiddlywiki"}); - } - var contentTypeInfo = $tw.config.contentTypeInfo[tiddler.fields.type] || $tw.config.contentTypeInfo["text/vnd.tiddlywiki"], - searchFields; - // Get the list of fields we're searching - if(options.excludeField) { - searchFields = Object.keys(tiddler.fields); - $tw.utils.each(fields,function(fieldName) { - var p = searchFields.indexOf(fieldName); - if(p !== -1) { - searchFields.splice(p,1); - } - }); - } else { - searchFields = fields; - } - for(var fieldIndex=0; notYetFound.length>0 && fieldIndex<searchFields.length; fieldIndex++) { - // Don't search the text field if the content type is binary - var fieldName = searchFields[fieldIndex]; - if(fieldName === "text" && contentTypeInfo.encoding !== "utf8") { - break; - } - var str = tiddler.fields[fieldName], - t; - if(str) { - if($tw.utils.isArray(str)) { - // If the field value is an array, test each regexp against each field array entry and fail if each regexp doesn't match at least one field array entry - for(var s=0; s<str.length; s++) { - for(t=0; t<notYetFound.length;) { - if(notYetFound[t].test(str[s])) { - notYetFound.splice(t, 1); - } else { - t++; - } - } - } - } else { - // If the field isn't an array, force it to a string and test each regexp against it and fail if any do not match - str = tiddler.getFieldString(fieldName); - for(t=0; t<notYetFound.length;) { - if(notYetFound[t].test(str)) { - notYetFound.splice(t, 1); - } else { - t++; - } - } - } - } - }; - return notYetFound.length == 0; - }; - // Loop through all the tiddlers doing the search - var results = [], - source = options.source || this.each; - source(function(tiddler,title) { - if(searchTiddler(title) !== options.invert) { - results.push(title); - } - }); - // Remove any of the results we have to exclude - if(options.exclude) { - for(t=0; t<options.exclude.length; t++) { - var p = results.indexOf(options.exclude[t]); - if(p !== -1) { - results.splice(p,1); - } - } - } - return results; -}; - -/* -Trigger a load for a tiddler if it is skinny. Returns the text, or undefined if the tiddler is missing, null if the tiddler is being lazily loaded. -*/ -exports.getTiddlerText = function(title,defaultText) { - var tiddler = this.getTiddler(title); - // Return undefined if the tiddler isn't found - if(!tiddler) { - return defaultText; - } - if(!tiddler.hasField("_is_skinny")) { - // Just return the text if we've got it - return tiddler.fields.text || ""; - } else { - // Tell any listeners about the need to lazily load this tiddler - this.dispatchEvent("lazyLoad",title); - // Indicate that the text is being loaded - return null; - } -}; - -/* -Check whether the text of a tiddler matches a given value. By default, the comparison is case insensitive, and any spaces at either end of the tiddler text is trimmed -*/ -exports.checkTiddlerText = function(title,targetText,options) { - options = options || {}; - var text = this.getTiddlerText(title,""); - if(!options.noTrim) { - text = text.trim(); - } - if(!options.caseSensitive) { - text = text.toLowerCase(); - targetText = targetText.toLowerCase(); - } - return text === targetText; -} - -/* -Read an array of browser File objects, invoking callback(tiddlerFieldsArray) once they're all read -*/ -exports.readFiles = function(files,options) { - var callback; - if(typeof options === "function") { - callback = options; - options = {}; - } else { - callback = options.callback; - } - var result = [], - outstanding = files.length, - readFileCallback = function(tiddlerFieldsArray) { - result.push.apply(result,tiddlerFieldsArray); - if(--outstanding === 0) { - callback(result); - } - }; - for(var f=0; f<files.length; f++) { - this.readFile(files[f],$tw.utils.extend({},options,{callback: readFileCallback})); - } - return files.length; -}; - -/* -Read a browser File object, invoking callback(tiddlerFieldsArray) with an array of tiddler fields objects -*/ -exports.readFile = function(file,options) { - var callback; - if(typeof options === "function") { - callback = options; - options = {}; - } else { - callback = options.callback; - } - // Get the type, falling back to the filename extension - var self = this, - type = file.type; - if(type === "" || !type) { - var dotPos = file.name.lastIndexOf("."); - if(dotPos !== -1) { - var fileExtensionInfo = $tw.utils.getFileExtensionInfo(file.name.substr(dotPos)); - if(fileExtensionInfo) { - type = fileExtensionInfo.type; - } - } - } - // Figure out if we're reading a binary file - var contentTypeInfo = $tw.config.contentTypeInfo[type], - isBinary = contentTypeInfo ? contentTypeInfo.encoding === "base64" : false; - // Log some debugging information - if($tw.log.IMPORT) { - console.log("Importing file '" + file.name + "', type: '" + type + "', isBinary: " + isBinary); - } - // Give the hook a chance to process the drag - if($tw.hooks.invokeHook("th-importing-file",{ - file: file, - type: type, - isBinary: isBinary, - callback: callback - }) !== true) { - this.readFileContent(file,type,isBinary,options.deserializer,callback); - } -}; - -/* -Lower level utility to read the content of a browser File object, invoking callback(tiddlerFieldsArray) with an array of tiddler fields objects -*/ -exports.readFileContent = function(file,type,isBinary,deserializer,callback) { - var self = this; - // Create the FileReader - var reader = new FileReader(); - // Onload - reader.onload = function(event) { - var text = event.target.result, - tiddlerFields = {title: file.name || "Untitled", type: type}; - if(isBinary) { - var commaPos = text.indexOf(","); - if(commaPos !== -1) { - text = text.substr(commaPos + 1); - } - } - // Check whether this is an encrypted TiddlyWiki file - var encryptedJson = $tw.utils.extractEncryptedStoreArea(text); - if(encryptedJson) { - // If so, attempt to decrypt it with the current password - $tw.utils.decryptStoreAreaInteractive(encryptedJson,function(tiddlers) { - callback(tiddlers); - }); - } else { - // Otherwise, just try to deserialise any tiddlers in the file - callback(self.deserializeTiddlers(type,text,tiddlerFields,{deserializer: deserializer})); - } - }; - // Kick off the read - if(isBinary) { - reader.readAsDataURL(file); - } else { - reader.readAsText(file); - } -}; - -/* -Find any existing draft of a specified tiddler -*/ -exports.findDraft = function(targetTitle) { - var draftTitle = undefined; - this.forEachTiddler({includeSystem: true},function(title,tiddler) { - if(tiddler.fields["draft.title"] && tiddler.fields["draft.of"] === targetTitle) { - draftTitle = title; - } - }); - return draftTitle; -} - -/* -Check whether the specified draft tiddler has been modified. -If the original tiddler doesn't exist, create a vanilla tiddler variable, -to check if additional fields have been added. -*/ -exports.isDraftModified = function(title) { - var tiddler = this.getTiddler(title); - if(!tiddler.isDraft()) { - return false; - } - var ignoredFields = ["created", "modified", "title", "draft.title", "draft.of"], - origTiddler = this.getTiddler(tiddler.fields["draft.of"]) || new $tw.Tiddler({text:"", tags:[]}), - titleModified = tiddler.fields["draft.title"] !== tiddler.fields["draft.of"]; - return titleModified || !tiddler.isEqual(origTiddler,ignoredFields); -}; - -/* -Add a new record to the top of the history stack -title: a title string or an array of title strings -fromPageRect: page coordinates of the origin of the navigation -historyTitle: title of history tiddler (defaults to $:/HistoryList) -*/ -exports.addToHistory = function(title,fromPageRect,historyTitle) { - var story = new $tw.Story({wiki: this, historyTitle: historyTitle}); - story.addToHistory(title,fromPageRect); -}; - -/* -Add a new tiddler to the story river -title: a title string or an array of title strings -fromTitle: the title of the tiddler from which the navigation originated -storyTitle: title of story tiddler (defaults to $:/StoryList) -options: see story.js -*/ -exports.addToStory = function(title,fromTitle,storyTitle,options) { - var story = new $tw.Story({wiki: this, storyTitle: storyTitle}); - story.addToStory(title,fromTitle,options); -}; - -/* -Generate a title for the draft of a given tiddler -*/ -exports.generateDraftTitle = function(title) { - var c = 0, - draftTitle, - username = this.getTiddlerText("$:/status/UserName"), - attribution = username ? " by " + username : ""; - do { - draftTitle = "Draft " + (c ? (c + 1) + " " : "") + "of '" + title + "'" + attribution; - c++; - } while(this.tiddlerExists(draftTitle)); - return draftTitle; -}; - -/* -Invoke the available upgrader modules -titles: array of tiddler titles to be processed -tiddlers: hashmap by title of tiddler fields of pending import tiddlers. These can be modified by the upgraders. An entry with no fields indicates a tiddler that was pending import has been suppressed. When entries are added to the pending import the tiddlers hashmap may have entries that are not present in the titles array -Returns a hashmap of messages keyed by tiddler title. -*/ -exports.invokeUpgraders = function(titles,tiddlers) { - // Collect up the available upgrader modules - var self = this; - if(!this.upgraderModules) { - this.upgraderModules = []; - $tw.modules.forEachModuleOfType("upgrader",function(title,module) { - if(module.upgrade) { - self.upgraderModules.push(module); - } - }); - } - // Invoke each upgrader in turn - var messages = {}; - for(var t=0; t<this.upgraderModules.length; t++) { - var upgrader = this.upgraderModules[t], - upgraderMessages = upgrader.upgrade(this,titles,tiddlers); - $tw.utils.extend(messages,upgraderMessages); - } - return messages; -}; - -// Determine whether a plugin by title is dynamically loadable -exports.doesPluginRequireReload = function(title) { - return this.doesPluginInfoRequireReload(this.getPluginInfo(title) || this.getTiddlerDataCached(title)); -}; - -// Determine whether a plugin info structure is dynamically loadable -exports.doesPluginInfoRequireReload = function(pluginInfo) { - if(pluginInfo) { - var foundModule = false; - $tw.utils.each(pluginInfo.tiddlers,function(tiddler) { - if(tiddler.type === "application/javascript" && $tw.utils.hop(tiddler,"module-type")) { - foundModule = true; - } - }); - return foundModule; - } else { - return null; - } -}; - -})(); - --
This plugin contains TiddlyWiki's core components, comprising: - -* JavaScript code modules -* Icons -* Templates needed to create TiddlyWiki's user interface -* British English (''en-GB'') translations of the localisable strings used by the core --
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] -\define saveTiddlerFilter() -[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$ -\end -{{$:/core/templates/tiddlywiki5.html}} --
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] -\define saveTiddlerFilter() -[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/core]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$ -\end -{{$:/core/templates/tiddlywiki5-external-js.html}} --
\define saveTiddlerFilter() -[is[system]] -[prefix[$:/state/popup/]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] -\end -{{$:/core/templates/tiddlywiki5.html}} --
\define saveTiddlerFilter() -[is[system]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] -\end -\define skinnySaveTiddlerFilter() -[!is[system]] -\end -{{$:/core/templates/tiddlywiki5.html}} --
\define saveTiddlerFilter() -[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[!is[system]is[image]] +[sort[title]] -\end -\define skinnySaveTiddlerFilter() -[is[image]] -\end -{{$:/core/templates/tiddlywiki5.html}} --
<!-- This template is provided for backwards compatibility with older versions of TiddlyWiki --> - -<$set name="exportFilter" value="[!is[system]sort[title]]"> - -{{$:/core/templates/exporters/StaticRiver}} - -</$set> --
<!-- - -This template is used to assign the ''_canonical_uri'' field to external images. - -Change the `./images/` part to a different base URI. The URI can be relative or absolute. - ---> -./images/<$view field="title" format="doubleurlencoded"/>-
<!-- - -This template is used to assign the ''_canonical_uri'' field to external raw files that are stored in the same directory - ---> -<$view field="title" format="doubleurlencoded"/>-
<!-- - -This template is used to assign the ''_canonical_uri'' field to external text files. - -Change the `./text/` part to a different base URI. The URI can be relative or absolute. - ---> -./text/<$view field="title" format="doubleurlencoded"/>.tid-
<!-- - -This template is used for saving CSS tiddlers as a style tag with data attributes representing the tiddler fields. - --->`<style`<$fields template=' data-tiddler-$name$="$encoded_value$"'></$fields>` type="text/css">`<$view field="text" format="text" />`</style>`-
\define renderContent() -<$text text=<<csvtiddlers filter:"""$(exportFilter)$""" format:"quoted-comma-sep">>/> -\end -<<renderContent>> --
\define renderContent() -<$text text=<<jsontiddlers filter:"""$(exportFilter)$""">>/> -\end -<<renderContent>> --
\define tv-wikilink-template() #$uri_encoded$ -\define tv-config-toolbar-icons() no -\define tv-config-toolbar-text() no -\define tv-config-toolbar-class() tc-btn-invisible -\rules only filteredtranscludeinline transcludeinline -<!doctype html> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> -<meta name="generator" content="TiddlyWiki" /> -<meta name="tiddlywiki-version" content="{{$:/core/templates/version}}" /> -<meta name="format-detection" content="telephone=no"> -<link id="faviconLink" rel="shortcut icon" href="favicon.ico"> -<title>{{$:/core/wiki/title}}</title> -<div id="styleArea"> -{{$:/boot/boot.css||$:/core/templates/css-tiddler}} -</div> -<style type="text/css"> -{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}} -</style> -</head> -<body class="tc-body"> -{{$:/StaticBanner||$:/core/templates/html-tiddler}} -<section class="tc-story-river"> -{{$:/core/templates/exporters/StaticRiver/Content||$:/core/templates/html-tiddler}} -</section> -</body> -</html> --
\define renderContent() -{{{ $(exportFilter)$ ||$:/core/templates/static-tiddler}}} -\end -\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] -<<renderContent>> --
\define renderContent() -{{{ $(exportFilter)$ +[limit[1]] ||$:/core/templates/tid-tiddler}}} -\end -\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] -<<renderContent>>-
<!-- - -This template is a variant of $:/core/templates/html-div-tiddler used for saving skinny tiddlers (with no text field) - --->`<div`<$fields template=' $name$="$encoded_value$"'></$fields>`> -<pre></pre> -</div>` --
<!-- - -This template is used for saving tiddlers as an HTML DIV tag with attributes representing the tiddler fields. - --->`<div`<$fields template=' $name$="$encoded_value$"'></$fields>`> -<pre>`<$view field="text" format="htmlencoded" />`</pre> -</div>` --
<!-- - -This template is used for saving tiddlers as raw HTML - ---><$view field="text" format="htmlwikified" />-
<!-- - -This template is used for saving JavaScript tiddlers as a script tag with data attributes representing the tiddler fields. - --->`<script`<$fields template=' data-tiddler-$name$="$encoded_value$"'></$fields>` type="text/javascript">`<$view field="text" format="text" />`</script>`-
<!-- - -This template is used for saving tiddlers as raw JSON - ---><$text text=<<jsontiddler>>/>-
<!-- - -This template is used for saving JavaScript tiddlers as a script tag with data attributes representing the tiddler fields. The body of the tiddler is wrapped in a call to the `$tw.modules.define` function in order to define the body of the tiddler as a module - --->`<script`<$fields template=' data-tiddler-$name$="$encoded_value$"'></$fields>` type="text/javascript" data-module="yes">$tw.modules.define("`<$view field="title" format="jsencoded" />`","`<$view field="module-type" format="jsencoded" />`",function(module,exports,require) {`<$view field="text" format="text" />`}); -</script>`-
\rules only filteredtranscludeinline transcludeinline entity -<!-- The following comment is called a MOTW comment and is necessary for the TiddlyIE Internet Explorer extension --> -<!-- saved from url=(0021)https://tiddlywiki.com --> -
<$view field="text" format="text" />-
<!-- - -This template is used for saving tiddlers as static HTML - ---><$view field="text" format="plainwikified" />-
\whitespace trim -<div class="tc-sidebar-scrollable" style="overflow: auto;"> -<div class="tc-sidebar-header"> -<h1 class="tc-site-title"> -<$transclude tiddler="$:/SiteTitle"/> -</h1> -<div class="tc-site-subtitle"> -<$transclude tiddler="$:/SiteSubtitle"/> -</div> -<h2> -</h2> -<div class="tc-sidebar-lists"> -<$list filter={{$:/DefaultTiddlers}}> -<div class="tc-menu-list-subitem"> -<$link><$text text=<<currentTiddler>>/></$link> -</div> -</$list> -</div> -<!-- Currently disabled the recent list as it is unweildy when the responsive narrow view kicks in -<h2> -{{$:/language/SideBar/Recent/Caption}} -</h2> -<div class="tc-sidebar-lists"> -<$macrocall $name="timeline" format={{$:/language/RecentChanges/DateFormat}}/> -</div> -</div> -</div> ---> --
\whitespace trim -\define tv-wikilink-template() $uri_encoded$ -\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] -<html> -<head> -<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> -<meta name="generator" content="TiddlyWiki" /> -<meta name="tiddlywiki-version" content={{$:/core/templates/version}} /> -<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"> -<link id="faviconLink" rel="shortcut icon" href="favicon.ico"> -<link rel="stylesheet" href="%24%3A%2Fcore%2Ftemplates%2Fstatic.template.css"> -<title><$view field="caption" format="plainwikified"><$view field="title"/></$view>: <$view tiddler="$:/core/wiki/title" format="plainwikified"/></title> -</head> -<body class="tc-body"> -<$transclude tiddler="$:/core/templates/server/static.sidebar.wikitext" mode="inline"/> -<section class="tc-story-river"> -<div class="tc-tiddler-frame"> -<$transclude tiddler="$:/core/templates/server/static.tiddler.wikitext" mode="inline"/> -</div> -</section> -</body> -</html>-
\whitespace trim -<div class="tc-tiddler-title"> -<div class="tc-titlebar"> -<h2><$text text=<<currentTiddler>>/></h2> -</div> -</div> -<div class="tc-subtitle"> -<$link to={{!!modifier}}> -<$view field="modifier"/> -</$link> <$view field="modified" format="date" template={{$:/language/Tiddler/DateFormat}}/> -</div> -<div class="tc-tags-wrapper"> -<$list filter="[all[current]tags[]sort[title]]"> -<a href={{{ [<currentTiddler>encodeuricomponent[]] }}}> -<$macrocall $name="tag-pill" tag=<<currentTiddler>>/> -</a> -</$list> -</div> -<div class="tc-tiddler-body"> -<$transclude mode="block"/> -</div> --
\whitespace trim -\define containerClasses() -tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$ -\end -\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] - -<$set name="tv-config-toolbar-icons" value={{$:/config/Toolbar/Icons}}> - -<$set name="tv-config-toolbar-text" value={{$:/config/Toolbar/Text}}> - -<$set name="tv-config-toolbar-class" value={{$:/config/Toolbar/ButtonClass}}> - -<$set name="tv-show-missing-links" value={{$:/config/MissingLinks}}> - -<$set name="storyviewTitle" value={{$:/view}}> - -<$set name="languageTitle" value={{{ [{$:/language}get[name]] }}}> - -<div class=<<containerClasses>>> - -<$navigator story="$:/StoryList" history="$:/HistoryList"> - -<$transclude mode="block"/> - -</$navigator> - -</div> - -</$set> - -</$set> - -</$set> - -</$set> - -</$set> - -</$set> --
<$list filter="[!is[system]]"> -tiddler: <$view field="title" format="urlencoded"/>.tid -</$list> --
<a name=<<currentTiddler>>> -<$transclude tiddler="$:/core/ui/ViewTemplate"/> -</a>-
<$reveal type="nomatch" state="$:/isEncrypted" text="yes"> -{{{ [all[shadows+tiddlers]tag[$:/tags/RawStaticContent]!has[draft.of]] ||$:/core/templates/raw-static-tiddler}}} -{{$:/core/templates/static.content||$:/core/templates/html-tiddler}} -</$reveal> -<$reveal type="match" state="$:/isEncrypted" text="yes"> -This file contains an encrypted ~TiddlyWiki. Enable ~JavaScript and enter the decryption password when prompted. -</$reveal> -<!-- ensure splash screen isn't shown when JS is disabled --> -`<style> -.tc-remove-when-wiki-loaded {display: none;} -</style>` --
<!-- For Google, and people without JavaScript--> -This [[TiddlyWiki|https://tiddlywiki.com]] contains the following tiddlers: - -<ul> -<$list filter=<<saveTiddlerFilter>>> -<li><$view field="title" format="text"></$view></li> -</$list> -</ul> --
{{$:/boot/boot.css||$:/core/templates/plain-text-tiddler}} - -{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}} --
\define tv-wikilink-template() static/$uri_doubleencoded$.html -\define tv-config-toolbar-icons() no -\define tv-config-toolbar-text() no -\define tv-config-toolbar-class() tc-btn-invisible -\rules only filteredtranscludeinline transcludeinline -<!doctype html> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> -<meta name="generator" content="TiddlyWiki" /> -<meta name="tiddlywiki-version" content="{{$:/core/templates/version}}" /> -<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"> -<link id="faviconLink" rel="shortcut icon" href="favicon.ico"> -<title>{{$:/core/wiki/title}}</title> -<div id="styleArea"> -{{$:/boot/boot.css||$:/core/templates/css-tiddler}} -</div> -<style type="text/css"> -{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}} -</style> -</head> -<body class="tc-body"> -{{$:/StaticBanner||$:/core/templates/html-tiddler}} -{{$:/core/ui/PageTemplate||$:/core/templates/html-tiddler}} -</body> -</html> --
\define tv-wikilink-template() $uri_doubleencoded$.html -\define tv-config-toolbar-icons() no -\define tv-config-toolbar-text() no -\define tv-config-toolbar-class() tc-btn-invisible -\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] -`<!doctype html> -<html> -<head> -<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> -<meta name="generator" content="TiddlyWiki" /> -<meta name="tiddlywiki-version" content="`{{$:/core/templates/version}}`" /> -<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"> -<link id="faviconLink" rel="shortcut icon" href="favicon.ico"> -<link rel="stylesheet" href="static.css"> -<title>`<$view field="caption"><$view field="title"/></$view>: {{$:/core/wiki/title}}`</title> -</head> -<body class="tc-body"> -`{{$:/StaticBanner||$:/core/templates/html-tiddler}}` -<section class="tc-story-river"> -`<$view tiddler="$:/core/ui/ViewTemplate" format="htmlwikified"/>` -</section> -</body> -</html> -`-
<$reveal type="nomatch" state="$:/isEncrypted" text="yes"> -`<div id="storeArea" style="display:none;">` -<$list filter=<<saveTiddlerFilter>> template="$:/core/templates/html-div-tiddler"/> -<$list filter={{{ [<skinnySaveTiddlerFilter>] }}} template="$:/core/templates/html-div-skinny-tiddler"/> -`</div>` -</$reveal> -<$reveal type="match" state="$:/isEncrypted" text="yes"> -`<!--~~ Encrypted tiddlers ~~-->` -`<pre id="encryptedStoreArea" type="text/plain" style="display:none;">` -<$encrypt filter=<<saveTiddlerFilter>>/> -`</pre>` -</$reveal>-
<!-- - -This template is used for saving tiddlers in TiddlyWeb *.tid format - ---><$fields exclude='text bag' template='$name$: $value$ -'></$fields>` -`<$view field="text" format="text" />-
<!-- - -This template is used for saving tiddler metadata *.meta files - ---><$fields exclude='text bag' template='$name$: $value$ -'></$fields>-
\rules only filteredtranscludeinline transcludeinline -<!doctype html> -{{$:/core/templates/MOTW.html}}<html lang="`<$text text={{{ [{$:/language}get[name]] }}}/>`"> -<head> -<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> -<!--~~ Raw markup for the top of the head section ~~--> -{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}} -<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="{{$:/core/templates/version}}" /> -<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="{{$:/core/copyright.txt}}" /> -<link id="faviconLink" rel="shortcut icon" href="favicon.ico"> -<title>{{$:/core/wiki/title}}</title> -<!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~--> - -<!--~~ Raw markup ~~--> -{{{ [all[shadows+tiddlers]tag[$:/core/wiki/rawmarkup]] [all[shadows+tiddlers]tag[$:/tags/RawMarkup]] ||$:/core/templates/plain-text-tiddler}}} -{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified]] ||$:/core/templates/raw-static-tiddler}}} -</head> -<body class="tc-body"> -<!--~~ Raw markup for the top of the body section ~~--> -{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}} -<!--~~ Static styles ~~--> -<div id="styleArea"> -{{$:/boot/boot.css||$:/core/templates/css-tiddler}} -</div> -<!--~~ Static content for Google and browsers without JavaScript ~~--> -<noscript> -<div id="splashArea"> -{{$:/core/templates/static.area}} -</div> -</noscript> -<!--~~ Ordinary tiddlers ~~--> -{{$:/core/templates/store.area.template.html}} -<!--~~ Raw markup for the bottom of the body section ~~--> -{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}} -</body> -<script src="%24%3A%2Fcore%2Ftemplates%2Ftiddlywiki5.js" onerror="alert('Error: Cannot load tiddlywiki.js');"></script> -</html> --
<$set name="saveTiddlerAndShadowsFilter" filter="[subfilter<saveTiddlerFilter>] [subfilter<saveTiddlerFilter>plugintiddlers[]]"> -`<!doctype html> -`{{$:/core/templates/MOTW.html}}`<html lang="`<$text text={{{ [{$:/language}get[name]] }}}/>`"> -<head> -<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> -<!--~~ Raw markup for the top of the head section ~~--> -`{{{ [<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}}` -<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="`{{$:/core/templates/version}}`" /> -<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="`{{$:/core/copyright.txt}}`" /> -<link id="faviconLink" rel="shortcut icon" href="favicon.ico"> -<title>`{{$:/core/wiki/title}}`</title> -<!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~--> - -<!--~~ Raw markup ~~--> -`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/core/wiki/rawmarkup]] ||$:/core/templates/plain-text-tiddler}}} -{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkup]] ||$:/core/templates/plain-text-tiddler}}} -{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified]] ||$:/core/templates/raw-static-tiddler}}}` -</head> -<body class="tc-body"> -<!--~~ Raw markup for the top of the body section ~~--> -`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}}` -<!--~~ Static styles ~~--> -<div id="styleArea"> -`{{$:/boot/boot.css||$:/core/templates/css-tiddler}}` -</div> -<!--~~ Static content for Google and browsers without JavaScript ~~--> -<noscript> -<div id="splashArea"> -`{{$:/core/templates/static.area}}` -</div> -</noscript> -<!--~~ Ordinary tiddlers ~~--> -`{{$:/core/templates/store.area.template.html}}` -<!--~~ Library modules ~~--> -<div id="libraryModules" style="display:none;"> -`{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/javascript-tiddler}}}` -</div> -<!--~~ Boot kernel prologue ~~--> -<div id="bootKernelPrefix" style="display:none;"> -`{{ $:/boot/bootprefix.js ||$:/core/templates/javascript-tiddler}}` -</div> -<!--~~ Boot kernel ~~--> -<div id="bootKernel" style="display:none;"> -`{{ $:/boot/boot.js ||$:/core/templates/javascript-tiddler}}` -</div> -<!--~~ Raw markup for the bottom of the body section ~~--> -`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}}` -</body> -</html>` --
\rules only filteredtranscludeinline transcludeinline codeinline - -/* -{{ $:/core/copyright.txt ||$:/core/templates/plain-text-tiddler}} -`*/ -`<!--~~ Library modules ~~--> -{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/plain-text-tiddler}}} -<!--~~ Boot prefix ~~--> -{{ $:/boot/bootprefix.js ||$:/core/templates/plain-text-tiddler}} -<!--~~ Core plugin ~~--> -{{$:/core/templates/tiddlywiki5.js/tiddlers}} -<!--~~ Boot kernel ~~--> -{{ $:/boot/boot.js ||$:/core/templates/plain-text-tiddler}} --
` -$tw.preloadTiddlerArray(`<$text text=<<jsontiddlers "[[$:/core]]">>/>`); -$tw.preloadTiddlerArray([{ - title: "$:/config/SaveWikiButton/Template", - text: "$:/core/save/all-external-js" -}]); -` --
<<version>>-
<$transclude />-
\define lingo-base() $:/language/AboveStory/ClassicPlugin/ -<$list filter="[all[system+tiddlers]tag[systemConfig]limit[1]]"> - -<div class="tc-message-box"> - -<<lingo Warning>> - -<ul> - -<$list filter="[all[system+tiddlers]tag[systemConfig]]"> - -<li> - -<$link><$view field="title"/></$link> - -</li> - -</$list> - -</ul> - -</div> - -</$list> --
\define get-type() -image/$(imageType)$ -\end -<$vars imageType={{$:/config/NewImageType}}> -<$action-sendmessage $message="tm-new-tiddler" type=<<get-type>> tags={{$:/config/NewTiddler/Tags!!tags}}/> -</$vars> --
<$vars journalTitleTemplate={{$:/config/NewJournal/Title}} journalTags={{$:/config/NewJournal/Tags!!tags}} journalText={{$:/config/NewJournal/Text}}> -<$wikify name="journalTitle" text="""<$macrocall $name="now" format=<<journalTitleTemplate>>/>"""> -<$reveal type="nomatch" state=<<journalTitle>> text=""> -<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<journalTags>> text={{{ [<journalTitle>get[]] }}}/> -</$reveal> -<$reveal type="match" state=<<journalTitle>> text=""> -<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<journalTags>> text=<<journalText>>/> -</$reveal> -</$wikify> -</$vars> --
<$action-sendmessage $message="tm-new-tiddler" tags={{$:/config/NewTiddler/Tags!!tags}}/> --
\define lingo-base() $:/language/Search/ -<<lingo Filter/Hint>> - -<div class="tc-search tc-advanced-search"> -<$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input" focus={{$:/config/Search/AutoFocus}}/> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch/FilterButton]!has[draft.of]]"><$transclude/></$list> -</div> - -<$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> -<$set name="resultCount" value="""<$count filter={{$:/temp/advancedsearch}}/>"""> -<div class="tc-search-results"> -<<lingo Filter/Matches>> -<$list filter={{$:/temp/advancedsearch}} template="$:/core/ui/ListItemTemplate"/> -</div> -</$set> -</$reveal> --
<$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> -<$button class="tc-btn-invisible"> -<$action-setfield $tiddler="$:/temp/advancedsearch" $field="text" $value=""/> -{{$:/core/images/close-button}} -</$button> -</$reveal> --
<$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> -<$button popup=<<qualify "$:/state/filterDeleteDropdown">> class="tc-btn-invisible"> -{{$:/core/images/delete-button}} -</$button> -</$reveal> - -<$reveal state=<<qualify "$:/state/filterDeleteDropdown">> type="popup" position="belowleft" animate="yes"> -<div class="tc-block-dropdown-wrapper"> -<div class="tc-block-dropdown tc-edit-type-dropdown"> -<div class="tc-dropdown-item-plain"> -<$set name="resultCount" value="""<$count filter={{$:/temp/advancedsearch}}/>"""> -Are you sure you wish to delete <<resultCount>> tiddler(s)? -</$set> -</div> -<div class="tc-dropdown-item-plain"> -<$button class="tc-btn"> -<$action-deletetiddler $filter={{$:/temp/advancedsearch}}/> -Delete these tiddlers -</$button> -</div> -</div> -</div> -</$reveal> --
<span class="tc-popup-keep"> -<$button popup=<<qualify "$:/state/filterDropdown">> class="tc-btn-invisible"> -{{$:/core/images/down-arrow}} -</$button> -</span> - -<$reveal state=<<qualify "$:/state/filterDropdown">> type="popup" position="belowleft" animate="yes"> -<$set name="tv-show-missing-links" value="yes"> -<$linkcatcher to="$:/temp/advancedsearch"> -<div class="tc-block-dropdown-wrapper"> -<div class="tc-block-dropdown tc-edit-type-dropdown"> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/Filter]]"><$link to={{!!filter}}><$transclude field="description"/></$link> -</$list> -</div> -</div> -</$linkcatcher> -</$set> -</$reveal> --
<$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> -<$macrocall $name="exportButton" exportFilter={{$:/temp/advancedsearch}} lingoBase="$:/language/Buttons/ExportTiddlers/"/> -</$reveal> --
\define lingo-base() $:/language/Search/ -<$linkcatcher to="$:/temp/advancedsearch"> - -<<lingo Shadows/Hint>> - -<div class="tc-search"> -<$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input" focus={{$:/config/Search/AutoFocus}}/> -<$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> -<$button class="tc-btn-invisible"> -<$action-setfield $tiddler="$:/temp/advancedsearch" $field="text" $value=""/> -{{$:/core/images/close-button}} -</$button> -</$reveal> -</div> - -</$linkcatcher> - -<$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> - -<$list filter="[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem"> - -<$set name="resultCount" value="""<$count filter="[all[shadows]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]"/>"""> - -<div class="tc-search-results"> - -<<lingo Shadows/Matches>> - -<$list filter="[all[shadows]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]" template="$:/core/ui/ListItemTemplate"/> - -</div> - -</$set> - -</$list> - -</$reveal> - -<$reveal state="$:/temp/advancedsearch" type="match" text=""> - -</$reveal> --
\define lingo-base() $:/language/Search/ -<$linkcatcher to="$:/temp/advancedsearch"> - -<<lingo Standard/Hint>> - -<div class="tc-search"> -<$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input" focus={{$:/config/Search/AutoFocus}}/> -<$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> -<$button class="tc-btn-invisible"> -<$action-setfield $tiddler="$:/temp/advancedsearch" $field="text" $value=""/> -{{$:/core/images/close-button}} -</$button> -</$reveal> -</div> - -</$linkcatcher> - -<$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> -<$list filter="[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem"> -<$set name="searchTiddler" value="$:/temp/advancedsearch"> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]" emptyMessage=""" -<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]"> -<$transclude/> -</$list> -"""> -<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]" default={{$:/config/SearchResults/Default}}/> -</$list> -</$set> -</$list> -</$reveal> --
\define lingo-base() $:/language/Search/ -<$linkcatcher to="$:/temp/advancedsearch"> - -<<lingo System/Hint>> - -<div class="tc-search"> -<$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input" focus={{$:/config/Search/AutoFocus}}/> -<$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> -<$button class="tc-btn-invisible"> -<$action-setfield $tiddler="$:/temp/advancedsearch" $field="text" $value=""/> -{{$:/core/images/close-button}} -</$button> -</$reveal> -</div> - -</$linkcatcher> - -<$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> - -<$list filter="[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem"> - -<$set name="resultCount" value="""<$count filter="[is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]"/>"""> - -<div class="tc-search-results"> - -<<lingo System/Matches>> - -<$list filter="[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]" template="$:/core/ui/ListItemTemplate"/> - -</div> - -</$set> - -</$list> - -</$reveal> - -<$reveal state="$:/temp/advancedsearch" type="match" text=""> - -</$reveal> --
<div class="tc-alert"> -<div class="tc-alert-toolbar"> -<$button class="tc-btn-invisible"><$action-deletetiddler $tiddler=<<currentTiddler>>/>{{$:/core/images/cancel-button}}</$button> -</div> -<div class="tc-alert-subtitle"> -<$wikify name="format" text=<<lingo Tiddler/DateFormat>>> -<$view field="component"/> - <$view field="modified" format="date" template=<<format>>/> <$reveal type="nomatch" state="!!count" text=""><span class="tc-alert-highlight">({{$:/language/Count}}: <$view field="count"/>)</span></$reveal> -</$wikify> -</div> -<div class="tc-alert-body"> - -<$transclude/> - -</div> -</div> --
\define lingo-base() $:/language/BinaryWarning/ -<<lingo Prompt>> --
\whitespace trim -\define control-panel-button(class) -<$button to="$:/AdvancedSearch" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="""$(tv-config-toolbar-class)$ $class$"""> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/advanced-search-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/AdvancedSearch/Caption}}/></span> -</$list> -</$button> -\end - -<$list filter="[list[$:/StoryList]] +[field:title[$:/AdvancedSearch]]" emptyMessage=<<control-panel-button>>> -<<control-panel-button "tc-selected">> -</$list> --
<$button message="tm-cancel-tiddler" tooltip={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/cancel-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/Cancel/Caption}}/></span> -</$list> -</$button>-
\whitespace trim -<$button message="tm-new-tiddler" param=<<currentTiddler>> tooltip={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/clone-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"> -<$text text=" "/> -<$text text={{$:/language/Buttons/Clone/Caption}}/> -</span> -</$list> -</$button>-
\whitespace trim -<$button message="tm-close-tiddler" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/close-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"> -<$text text={{$:/language/Buttons/Close/Caption}}/> -</span> -</$list> -</$button>-
<$button message="tm-close-all-tiddlers" tooltip={{$:/language/Buttons/CloseAll/Hint}} aria-label={{$:/language/Buttons/CloseAll/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/close-all-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/CloseAll/Caption}}/></span> -</$list> -</$button>-
\whitespace trim -<$button message="tm-close-other-tiddlers" param=<<currentTiddler>> tooltip={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/close-others-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"> -<$text text=" "/> -<$text text={{$:/language/Buttons/CloseOthers/Caption}}/> -</span> -</$list> -</$button>-
\whitespace trim -\define control-panel-button(class) -<$button to="$:/ControlPanel" tooltip={{$:/language/Buttons/ControlPanel/Hint}} aria-label={{$:/language/Buttons/ControlPanel/Caption}} class="""$(tv-config-toolbar-class)$ $class$"""> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/options-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/ControlPanel/Caption}}/></span> -</$list> -</$button> -\end - -<$list filter="[list[$:/StoryList]] +[field:title[$:/ControlPanel]]" emptyMessage=<<control-panel-button>>> -<<control-panel-button "tc-selected">> -</$list> --
<$button message="tm-delete-tiddler" tooltip={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/delete-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/Delete/Caption}}/></span> -</$list> -</$button>-
\whitespace trim -<$button message="tm-edit-tiddler" tooltip={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/edit-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"> -<$text text=" "/> -<$text text={{$:/language/Buttons/Edit/Caption}}/> -</span> -</$list> -</$button>-
\whitespace trim -<$reveal type="match" state="$:/isEncrypted" text="yes"> -<$button message="tm-clear-password" tooltip={{$:/language/Buttons/Encryption/ClearPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/ClearPassword/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/locked-padlock}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/Encryption/ClearPassword/Caption}}/></span> -</$list> -</$button> -</$reveal> -<$reveal type="nomatch" state="$:/isEncrypted" text="yes"> -<$button message="tm-set-password" tooltip={{$:/language/Buttons/Encryption/SetPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/SetPassword/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/unlocked-padlock}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/Encryption/SetPassword/Caption}}/></span> -</$list> -</$button> -</$reveal> --
<$macrocall $name="exportButton" exportFilter="[!is[system]sort[title]]" lingoBase="$:/language/Buttons/ExportPage/"/>-
\define makeExportFilter() -[[$(currentTiddler)$]] -\end -<$macrocall $name="exportButton" exportFilter=<<makeExportFilter>> lingoBase="$:/language/Buttons/ExportTiddler/" baseFilename=<<currentTiddler>>/>-
\whitespace trim -<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" default="show"> -<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=<<tv-config-toolbar-class>>> -<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/> -<$list filter="[<tv-config-toolbar-icons>match[yes]]" variable="listItem"> -{{$:/core/images/fold-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"> -<$text text=" "/> -<$text text={{$:/language/Buttons/Fold/Caption}}/> -</span> -</$list> -</$button> -</$reveal> -<$reveal type="match" stateTitle=<<folded-state>> text="hide" default="show"> -<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=<<tv-config-toolbar-class>>> -<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/> -<$list filter="[<tv-config-toolbar-icons>match[yes]]" variable="listItem"> -{{$:/core/images/unfold-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"> -<$text text=" "/> -<$text text={{$:/language/Buttons/Unfold/Caption}}/> -</span> -</$list> -</$button> -</$reveal> --
<$button tooltip={{$:/language/Buttons/FoldAll/Hint}} aria-label={{$:/language/Buttons/FoldAll/Caption}} class=<<tv-config-toolbar-class>>> -<$action-sendmessage $message="tm-fold-all-tiddlers" $param=<<currentTiddler>> foldedStatePrefix="$:/state/folded/"/> -<$list filter="[<tv-config-toolbar-icons>match[yes]]" variable="listItem"> -{{$:/core/images/fold-all-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/FoldAll/Caption}}/></span> -</$list> -</$button>-
<!-- This dummy toolbar button is here to allow visibility of the fold-bar to be controlled as if it were a toolbar button -->-
\whitespace trim -<$button tooltip={{$:/language/Buttons/FoldOthers/Hint}} aria-label={{$:/language/Buttons/FoldOthers/Caption}} class=<<tv-config-toolbar-class>>> -<$action-sendmessage $message="tm-fold-other-tiddlers" $param=<<currentTiddler>> foldedStatePrefix="$:/state/folded/"/> -<$list filter="[<tv-config-toolbar-icons>match[yes]]" variable="listItem"> -{{$:/core/images/fold-others-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"> -<$text text=" "/> -<$text text={{$:/language/Buttons/FoldOthers/Caption}}/> -</span> -</$list> -</$button>-
<$button message="tm-full-screen" tooltip={{$:/language/Buttons/FullScreen/Hint}} aria-label={{$:/language/Buttons/FullScreen/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/full-screen-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/FullScreen/Caption}}/></span> -</$list> -</$button>-
<$button message="tm-home" tooltip={{$:/language/Buttons/Home/Hint}} aria-label={{$:/language/Buttons/Home/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/home-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/Home/Caption}}/></span> -</$list> -</$button>-
<div class="tc-file-input-wrapper"> -<$button tooltip={{$:/language/Buttons/Import/Hint}} aria-label={{$:/language/Buttons/Import/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/import-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/Import/Caption}}/></span> -</$list> -</$button> -<$browse tooltip={{$:/language/Buttons/Import/Hint}}/> -</div>-
\whitespace trim -\define button-content() -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/info-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"> -<$text text={{$:/language/Buttons/Info/Caption}}/> -</span> -</$list> -\end -<$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="popup"> -<$button popup=<<tiddlerInfoState>> tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected"> -<$macrocall $name="button-content" mode="inline"/> -</$button> -</$reveal> -<$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="sticky"> -<$reveal state=<<tiddlerInfoState>> type="match" text="" default=""> -<$button set=<<tiddlerInfoState>> setTo="yes" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected"> -<$macrocall $name="button-content" mode="inline"/> -</$button> -</$reveal> -<$reveal state=<<tiddlerInfoState>> type="nomatch" text="" default=""> -<$button set=<<tiddlerInfoState>> setTo="" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected"> -<$macrocall $name="button-content" mode="inline"/> -</$button> -</$reveal> -</$reveal>-
\whitespace trim -\define flag-title() -$(languagePluginTitle)$/icon -\end -<span class="tc-popup-keep"> -<$button popup=<<qualify "$:/state/popup/language">> tooltip={{$:/language/Buttons/Language/Hint}} aria-label={{$:/language/Buttons/Language/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected"> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -<span class="tc-image-button"> -<$set name="languagePluginTitle" value={{$:/language}}> -<$image source=<<flag-title>>/> -</$set> -</span> -</$list> -<$text text=" "/> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/Language/Caption}}/></span> -</$list> -</$button> -</span> -<$reveal state=<<qualify "$:/state/popup/language">> type="popup" position="below" animate="yes"> -<div class="tc-drop-down"> -{{$:/snippets/languageswitcher}} -</div> -</$reveal> --
\whitespace trim -\define manager-button(class) -<$button to="$:/Manager" tooltip={{$:/language/Buttons/Manager/Hint}} aria-label={{$:/language/Buttons/Manager/Caption}} class="""$(tv-config-toolbar-class)$ $class$"""> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/list}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/Manager/Caption}}/></span> -</$list> -</$button> -\end - -<$list filter="[list[$:/StoryList]] +[field:title[$:/Manager]]" emptyMessage=<<manager-button>>> -<<manager-button "tc-selected">> -</$list> --
\define config-title() -$:/config/PageControlButtons/Visibility/$(listItem)$ -\end -<$button popup=<<qualify "$:/state/popup/more">> tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected"> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/down-arrow}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/More/Caption}}/></span> -</$list> -</$button><$reveal state=<<qualify "$:/state/popup/more">> type="popup" position="below" animate="yes"> - -<div class="tc-drop-down"> - -<$set name="tv-config-toolbar-icons" value="yes"> - -<$set name="tv-config-toolbar-text" value="yes"> - -<$set name="tv-config-toolbar-class" value="tc-btn-invisible"> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]] -[[$:/core/ui/Buttons/more-page-actions]]" variable="listItem"> - -<$reveal type="match" state=<<config-title>> text="hide"> - -<$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]"> - -<$transclude tiddler=<<listItem>> mode="inline"/> - -</$set> - -</$reveal> - -</$list> - -</$set> - -</$set> - -</$set> - -</div> - -</$reveal>-
\whitespace trim -\define config-title() -$:/config/ViewToolbarButtons/Visibility/$(listItem)$ -\end -<$button popup=<<qualify "$:/state/popup/more">> tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected"> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/down-arrow}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"> -<$text text=" "/> -<$text text={{$:/language/Buttons/More/Caption}}/> -</span> -</$list> -</$button> -<$reveal state=<<qualify "$:/state/popup/more">> type="popup" position="belowleft" animate="yes"> - -<div class="tc-drop-down"> - -<$set name="tv-config-toolbar-icons" value="yes"> - -<$set name="tv-config-toolbar-text" value="yes"> - -<$set name="tv-config-toolbar-class" value="tc-btn-invisible"> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]" variable="listItem"> - -<$reveal type="match" state=<<config-title>> text="hide"> - -<$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]"> - -<$transclude tiddler=<<listItem>> mode="inline"/> - -</$set> - -</$reveal> - -</$list> - -</$set> - -</$set> - -</$set> - -</div> - -</$reveal>-
\whitespace trim -\define newHereActions() -<$set name="tags" filter="[<currentTiddler>] [{$:/config/NewTiddler/Tags!!tags}]"> -<$action-sendmessage $message="tm-new-tiddler" tags=<<tags>>/> -</$set> -\end -\define newHereButton() -<$button actions=<<newHereActions>> tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/new-here-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"> -<$text text={{$:/language/Buttons/NewHere/Caption}}/> -</span> -</$list> -</$button> -\end -<<newHereButton>> --
\whitespace trim -<$button tooltip={{$:/language/Buttons/NewImage/Hint}} aria-label={{$:/language/Buttons/NewImage/Caption}} class=<<tv-config-toolbar-class>> actions={{$:/core/ui/Actions/new-image}}> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/new-image-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewImage/Caption}}/></span> -</$list> -</$button> --
\whitespace trim -\define journalButton() -<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=<<tv-config-toolbar-class>> actions={{$:/core/ui/Actions/new-journal}}> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/new-journal-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewJournal/Caption}}/></span> -</$list> -</$button> -\end -<<journalButton>> --
\whitespace trim -\define journalButtonTags() -[[$(currentTiddlerTag)$]] $(journalTags)$ -\end -\define journalButton() -<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=<<tv-config-toolbar-class>>> -<$wikify name="journalTitle" text="""<$macrocall $name="now" format=<<journalTitleTemplate>>/>"""> -<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<journalButtonTags>>/> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/new-journal-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"> -<$text text={{$:/language/Buttons/NewJournalHere/Caption}}/> -</span> -</$list> -</$wikify> -</$button> -\end -<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}> -<$set name="journalTags" value={{$:/config/NewJournal/Tags!!tags}}> -<$set name="currentTiddlerTag" value=<<currentTiddler>>> -<<journalButton>> -</$set> -</$set> -</$set> --
\whitespace trim -<$button actions={{$:/core/ui/Actions/new-tiddler}} tooltip={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/new-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewTiddler/Caption}}/></span> -</$list> -</$button> --
\whitespace trim -<$button message="tm-open-window" tooltip={{$:/language/Buttons/OpenWindow/Hint}} aria-label={{$:/language/Buttons/OpenWindow/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/open-window}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"> -<$text text=" "/> -<$text text={{$:/language/Buttons/OpenWindow/Caption}}/> -</span> -</$list> -</$button>-
\whitespace trim -<span class="tc-popup-keep"> -<$button popup=<<qualify "$:/state/popup/palette">> tooltip={{$:/language/Buttons/Palette/Hint}} aria-label={{$:/language/Buttons/Palette/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected"> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/palette}} -</$list> -<$text text=" "/> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/Palette/Caption}}/></span> -</$list> -</$button> -</span> -<$reveal state=<<qualify "$:/state/popup/palette">> type="popup" position="below" animate="yes"> -<div class="tc-drop-down" style="font-size:0.7em;"> -{{$:/snippets/paletteswitcher}} -</div> -</$reveal> --
\whitespace trim -<$button message="tm-permalink" tooltip={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/permalink-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"> -<$text text=" "/> -<$text text={{$:/language/Buttons/Permalink/Caption}}/> -</span> -</$list> -</$button>-
\whitespace trim -<$button message="tm-permaview" tooltip={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/permaview-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"> -<$text text=" "/> -<$text text={{$:/language/Buttons/Permaview/Caption}}/> -</span> -</$list> -</$button>-
<$button message="tm-print" tooltip={{$:/language/Buttons/Print/Hint}} aria-label={{$:/language/Buttons/Print/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/print-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/Print/Caption}}/></span> -</$list> -</$button>-
<$button message="tm-browser-refresh" tooltip={{$:/language/Buttons/Refresh/Hint}} aria-label={{$:/language/Buttons/Refresh/Caption}} class=<<tv-config-toolbar-class>>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/refresh-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/Refresh/Caption}}/></span> -</$list> -</$button>-
\define save-tiddler-button() -<$fieldmangler><$button tooltip={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<<tv-config-toolbar-class>>> -<<save-tiddler-actions>> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/done-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/Save/Caption}}/></span> -</$list> -</$button></$fieldmangler> -\end -<<save-tiddler-button>> --
<$button tooltip={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=<<tv-config-toolbar-class>>> -<$wikify name="site-title" text={{$:/config/SaveWikiButton/Filename}}> -<$action-sendmessage $message="tm-save-wiki" $param={{$:/config/SaveWikiButton/Template}} filename=<<site-title>>/> -</$wikify> -<span class="tc-dirty-indicator"> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/save-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/SaveWiki/Caption}}/></span> -</$list> -</span> -</$button>-
\whitespace trim -\define icon() -$:/core/images/storyview-$(storyview)$ -\end -<span class="tc-popup-keep"> -<$button popup=<<qualify "$:/state/popup/storyview">> tooltip={{$:/language/Buttons/StoryView/Hint}} aria-label={{$:/language/Buttons/StoryView/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected"> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -<$set name="storyview" value={{$:/view}}> -<$transclude tiddler=<<icon>>/> -</$set> -</$list> -<$text text=" "/> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/StoryView/Caption}}/></span> -</$list> -</$button> -</span> -<$reveal state=<<qualify "$:/state/popup/storyview">> type="popup" position="below" animate="yes"> -<div class="tc-drop-down"> -{{$:/snippets/viewswitcher}} -</div> -</$reveal> --
\whitespace trim -\define control-panel-button(class) -<$button to="$:/TagManager" tooltip={{$:/language/Buttons/TagManager/Hint}} aria-label={{$:/language/Buttons/TagManager/Caption}} class="""$(tv-config-toolbar-class)$ $class$"""> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/tag-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/TagManager/Caption}}/></span> -</$list> -</$button> -\end - -<$list filter="[list[$:/StoryList]] +[field:title[$:/TagManager]]" emptyMessage=<<control-panel-button>>> -<<control-panel-button "tc-selected">> -</$list> --
\whitespace trim -<span class="tc-popup-keep"> -<$button popup=<<qualify "$:/state/popup/theme">> tooltip={{$:/language/Buttons/Theme/Hint}} aria-label={{$:/language/Buttons/Theme/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected"> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/theme-button}} -</$list> -<$text text=" "/> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/Theme/Caption}}/></span> -</$list> -</$button> -</span> -<$reveal state=<<qualify "$:/state/popup/theme">> type="popup" position="below" animate="yes"> -<div class="tc-drop-down"> -<$linkcatcher to="$:/theme"> -{{$:/snippets/themeswitcher}} -</$linkcatcher> -</div> -</$reveal> --
\whitespace trim -<$reveal type="nomatch" state="$:/config/TimestampDisable" text="yes"> -<$button tooltip={{$:/language/Buttons/Timestamp/On/Hint}} aria-label={{$:/language/Buttons/Timestamp/On/Caption}} class=<<tv-config-toolbar-class>>> -<$action-setfield $tiddler="$:/config/TimestampDisable" $value="yes"/> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/timestamp-on}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/Timestamp/On/Caption}}/></span> -</$list> -</$button> -</$reveal> -<$reveal type="match" state="$:/config/TimestampDisable" text="yes"> -<$button tooltip={{$:/language/Buttons/Timestamp/Off/Hint}} aria-label={{$:/language/Buttons/Timestamp/Off/Caption}} class=<<tv-config-toolbar-class>>> -<$action-setfield $tiddler="$:/config/TimestampDisable" $value="no"/> -<$list filter="[<tv-config-toolbar-icons>match[yes]]"> -{{$:/core/images/timestamp-off}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/Timestamp/Off/Caption}}/></span> -</$list> -</$button> -</$reveal> --
<$button tooltip={{$:/language/Buttons/UnfoldAll/Hint}} aria-label={{$:/language/Buttons/UnfoldAll/Caption}} class=<<tv-config-toolbar-class>>> -<$action-sendmessage $message="tm-unfold-all-tiddlers" $param=<<currentTiddler>> foldedStatePrefix="$:/state/folded/"/> -<$list filter="[<tv-config-toolbar-icons>match[yes]]" variable="listItem"> -{{$:/core/images/unfold-all-button}} -</$list> -<$list filter="[<tv-config-toolbar-text>match[yes]]"> -<span class="tc-btn-text"><$text text={{$:/language/Buttons/UnfoldAll/Caption}}/></span> -</$list> -</$button>-
\define lingo-base() $:/language/ControlPanel/Plugins/ - -\define popup-state-macro() -$(qualified-state)$-$(currentTiddler)$ -\end - -\define tabs-state-macro() -$(popup-state)$-$(pluginInfoType)$ -\end - -\define plugin-icon-title() -$(currentTiddler)$/icon -\end - -\define plugin-disable-title() -$:/config/Plugins/Disabled/$(currentTiddler)$ -\end - -\define plugin-table-body(type,disabledMessage,default-popup-state) -<div class="tc-plugin-info-chunk tc-plugin-info-toggle"> -<$reveal type="nomatch" state=<<popup-state>> text="yes" default="""$default-popup-state$"""> -<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="yes"> -{{$:/core/images/chevron-right}} -</$button> -</$reveal> -<$reveal type="match" state=<<popup-state>> text="yes" default="""$default-popup-state$"""> -<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="no"> -{{$:/core/images/chevron-down}} -</$button> -</$reveal> -</div> -<div class="tc-plugin-info-chunk tc-plugin-info-icon"> -<$transclude tiddler=<<currentTiddler>> subtiddler=<<plugin-icon-title>>> -<$transclude tiddler="$:/core/images/plugin-generic-$type$"/> -</$transclude> -</div> -<div class="tc-plugin-info-chunk tc-plugin-info-description"> -<h1> -''<$text text={{{ [<currentTiddler>get[name]] ~[<currentTiddler>split[/]last[1]] }}}/>'': <$view field="description"><$view field="title"/></$view> $disabledMessage$ -</h1> -<h2> -<$view field="title"/> -</h2> -<h2> -<div><em><$view field="version"/></em></div> -</h2> -</div> -\end - -\define plugin-info(type,default-popup-state) -<$set name="popup-state" value=<<popup-state-macro>>> -<$reveal type="nomatch" state=<<plugin-disable-title>> text="yes"> -<$link to={{!!title}} class="tc-plugin-info"> -<<plugin-table-body type:"$type$" default-popup-state:"""$default-popup-state$""">> -</$link> -</$reveal> -<$reveal type="match" state=<<plugin-disable-title>> text="yes"> -<$link to={{!!title}} class="tc-plugin-info tc-plugin-info-disabled"> -<<plugin-table-body type:"$type$" default-popup-state:"""$default-popup-state$""" disabledMessage:"<$macrocall $name='lingo' title='Disabled/Status'/>">> -</$link> -</$reveal> -<$reveal type="match" text="yes" state=<<popup-state>> default="""$default-popup-state$"""> -<div class="tc-plugin-info-dropdown"> -<div class="tc-plugin-info-dropdown-body"> -<$list filter="[all[current]] -[[$:/core]]"> -<div style="float:right;"> -<$reveal type="nomatch" state=<<plugin-disable-title>> text="yes"> -<$button set=<<plugin-disable-title>> setTo="yes" tooltip={{$:/language/ControlPanel/Plugins/Disable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Disable/Caption}}> -<<lingo Disable/Caption>> -</$button> -</$reveal> -<$reveal type="match" state=<<plugin-disable-title>> text="yes"> -<$button set=<<plugin-disable-title>> setTo="no" tooltip={{$:/language/ControlPanel/Plugins/Enable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Enable/Caption}}> -<<lingo Enable/Caption>> -</$button> -</$reveal> -</div> -</$list> -<$set name="tabsList" filter="[<currentTiddler>list[]] contents"> -<$macrocall $name="tabs" state=<<tabs-state-macro>> tabsList=<<tabsList>> default={{{ [enlist<tabsList>] }}} template="$:/core/ui/PluginInfo"/> -</$set> -</div> -</div> -</$reveal> -</$set> -\end - -<$macrocall $name="plugin-info" type=<<plugin-type>> default-popup-state=<<default-popup-state>>/> --
<$link> -<$set name="backgroundColor" value={{!!color}}> -<span style=<<tag-styles>> class="tc-tag-label"> -<$view field="title" format="text"/> -</span> -</$set> -</$link>-
{{$:/language/ControlPanel/Advanced/Hint}} - -<div class="tc-control-panel"> -<<tabs "[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Advanced]!has[draft.of]]" "$:/core/ui/ControlPanel/TiddlerFields">> -</div> --
{{$:/language/ControlPanel/Appearance/Hint}} - -<div class="tc-control-panel"> -<<tabs "[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Appearance]!has[draft.of]]" "$:/core/ui/ControlPanel/Theme">> -</div> --
\define lingo-base() $:/language/ControlPanel/Basics/ - -\define show-filter-count(filter) -<$button class="tc-btn-invisible"> -<$action-setfield $tiddler="$:/temp/advancedsearch" $value="""$filter$"""/> -<$action-setfield $tiddler="$:/state/tab--1498284803" $value="$:/core/ui/AdvancedSearch/Filter"/> -<$action-navigate $to="$:/AdvancedSearch"/> -''<$count filter="""$filter$"""/>'' -{{$:/core/images/advanced-search-button}} -</$button> -\end - -|<<lingo Version/Prompt>> |''<<version>>'' | -|<$link to="$:/SiteTitle"><<lingo Title/Prompt>></$link> |<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> | -|<$link to="$:/SiteSubtitle"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> | -|<$link to="$:/status/UserName"><<lingo Username/Prompt>></$link> |<$edit-text tiddler="$:/status/UserName" default="" tag="input"/> | -|<$link to="$:/config/AnimationDuration"><<lingo AnimDuration/Prompt>></$link> |<$edit-text tiddler="$:/config/AnimationDuration" default="" tag="input"/> | -|<$link to="$:/DefaultTiddlers"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit tag="textarea" tiddler="$:/DefaultTiddlers" class="tc-edit-texteditor"/><br>//<<lingo DefaultTiddlers/BottomHint>>// | -|<$link to="$:/language/DefaultNewTiddlerTitle"><<lingo NewTiddler/Title/Prompt>></$link> |<$edit-text tiddler="$:/language/DefaultNewTiddlerTitle" default="" tag="input"/> | -|<$link to="$:/config/NewJournal/Title"><<lingo NewJournal/Title/Prompt>></$link> |<$edit-text tiddler="$:/config/NewJournal/Title" default="" tag="input"/> | -|<$link to="$:/config/NewJournal/Text"><<lingo NewJournal/Text/Prompt>></$link> |<$edit tiddler="$:/config/NewJournal/Text" tag="textarea" class="tc-edit-texteditor" default=""/> | -|<$link to="$:/config/NewTiddler/Tags"><<lingo NewTiddler/Tags/Prompt>></$link> |<$list filter="[[$:/config/NewTiddler/Tags]]" template="$:/core/ui/EditTemplate/tags"/> | -|<$link to="$:/config/NewJournal/Tags"><<lingo NewJournal/Tags/Prompt>></$link> |<$list filter="[[$:/config/NewJournal/Tags]]" template="$:/core/ui/EditTemplate/tags"/> | -|<$link to="$:/config/AutoFocus"><<lingo AutoFocus/Prompt>></$link> |{{$:/snippets/minifocusswitcher}} | -|<<lingo Language/Prompt>> |{{$:/snippets/minilanguageswitcher}} | -|<<lingo Tiddlers/Prompt>> |<<show-filter-count "[!is[system]sort[title]]">> | -|<<lingo Tags/Prompt>> |<<show-filter-count "[tags[]sort[title]]">> | -|<<lingo SystemTiddlers/Prompt>> |<<show-filter-count "[is[system]sort[title]]">> | -|<<lingo ShadowTiddlers/Prompt>> |<<show-filter-count "[all[shadows]sort[title]]">> | -|<<lingo OverriddenShadowTiddlers/Prompt>> |<<show-filter-count "[is[tiddler]is[shadow]sort[title]]">> | --
\define lingo-base() $:/language/ControlPanel/EditorTypes/ - -<<lingo Hint>> - -<table> -<tbody> -<tr> -<th><<lingo Type/Caption>></th> -<th><<lingo Editor/Caption>></th> -</tr> -<$list filter="[all[shadows+tiddlers]prefix[$:/config/EditorTypeMappings/]sort[title]]"> -<tr> -<td> -<$link> -<$list filter="[all[current]removeprefix[$:/config/EditorTypeMappings/]]"> -<$text text={{!!title}}/> -</$list> -</$link> -</td> -<td> -<$view field="text"/> -</td> -</tr> -</$list> -</tbody> -</table> --
{{$:/language/ControlPanel/Info/Hint}} - -<div class="tc-control-panel"> -<<tabs "[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Info]!has[draft.of]]" "$:/core/ui/ControlPanel/Basics">> -</div> --
\define lingo-base() $:/language/ControlPanel/KeyboardShortcuts/ - -\define new-shortcut(title) -<div class="tc-dropdown-item-plain"> -<$edit-shortcut tiddler="$title$" placeholder={{$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt}} focus="true" style="width:auto;"/> <$button> -<<lingo Add/Caption>> -<$action-listops - $tiddler="$(shortcutTitle)$" - $field="text" - $subfilter="[{$title$}]" -/> -<$action-deletetiddler - $tiddler="$title$" -/> -</$button> -</div> -\end - -\define shortcut-list-item(caption) -<td> -</td> -<td style="text-align:right;font-size:0.7em;"> -<<lingo Platform/$caption$>> -</td> -<td> -<div style="position:relative;"> -<$button popup=<<qualify "$:/state/dropdown/$(shortcutTitle)$">> class="tc-btn-invisible"> -{{$:/core/images/edit-button}} -</$button> -<$macrocall $name="displayshortcuts" $output="text/html" shortcuts={{$(shortcutTitle)$}} prefix="<kbd>" separator="</kbd> <kbd>" suffix="</kbd>"/> - -<$reveal state=<<qualify "$:/state/dropdown/$(shortcutTitle)$">> type="popup" position="below" animate="yes"> -<div class="tc-block-dropdown-wrapper"> -<div class="tc-block-dropdown tc-edit-type-dropdown tc-popup-keep"> -<$list filter="[list[$(shortcutTitle)$!!text]sort[title]]" variable="shortcut" emptyMessage=""" -<div class="tc-dropdown-item-plain"> -//<<lingo NoShortcuts/Caption>>// -</div> -"""> -<div class="tc-dropdown-item-plain"> -<$button class="tc-btn-invisible" tooltip={{$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint}}> -<$action-listops - $tiddler="$(shortcutTitle)$" - $field="text" - $subfilter="+[remove<shortcut>]" -/> -<small>{{$:/core/images/close-button}}</small> -</$button> -<kbd> -<$macrocall $name="displayshortcuts" $output="text/html" shortcuts=<<shortcut>>/> -</kbd> -</div> -</$list> -<hr/> -<$macrocall $name="new-shortcut" title=<<qualify "$:/state/new-shortcut/$(shortcutTitle)$">>/> -</div> -</div> -</$reveal> -</div> -</td> -\end - -\define shortcut-list(caption,prefix) -<tr> -<$list filter="[[$prefix$$(shortcutName)$]]" variable="shortcutTitle"> -<<shortcut-list-item "$caption$">> -</$list> -</tr> -\end - -\define shortcut-editor() -<<shortcut-list "All" "$:/config/shortcuts/">> -<<shortcut-list "Mac" "$:/config/shortcuts-mac/">> -<<shortcut-list "NonMac" "$:/config/shortcuts-not-mac/">> -<<shortcut-list "Linux" "$:/config/shortcuts-linux/">> -<<shortcut-list "NonLinux" "$:/config/shortcuts-not-linux/">> -<<shortcut-list "Windows" "$:/config/shortcuts-windows/">> -<<shortcut-list "NonWindows" "$:/config/shortcuts-not-windows/">> -\end - -\define shortcut-preview() -<$macrocall $name="displayshortcuts" $output="text/html" shortcuts={{$(shortcutPrefix)$$(shortcutName)$}} prefix="<kbd>" separator="</kbd> <kbd>" suffix="</kbd>"/> -\end - -\define shortcut-item-inner() -<tr> -<td> -<$reveal type="nomatch" state=<<dropdownStateTitle>> text="open"> -<$button class="tc-btn-invisible"> -<$action-setfield - $tiddler=<<dropdownStateTitle>> - $value="open" -/> -{{$:/core/images/right-arrow}} -</$button> -</$reveal> -<$reveal type="match" state=<<dropdownStateTitle>> text="open"> -<$button class="tc-btn-invisible"> -<$action-setfield - $tiddler=<<dropdownStateTitle>> - $value="close" -/> -{{$:/core/images/down-arrow}} -</$button> -</$reveal> -''<$text text=<<shortcutName>>/>'' -</td> -<td> -<$transclude tiddler="$:/config/ShortcutInfo/$(shortcutName)$"/> -</td> -<td> -<$list filter="$:/config/shortcuts/ $:/config/shortcuts-mac/ $:/config/shortcuts-not-mac/ $:/config/shortcuts-linux/ $:/config/shortcuts-not-linux/ $:/config/shortcuts-windows/ $:/config/shortcuts-not-windows/" variable="shortcutPrefix"> -<<shortcut-preview>> -</$list> -</td> -</tr> -<$set name="dropdownState" value={{$(dropdownStateTitle)$}}> -<$list filter="[<dropdownState>match[open]]" variable="listItem"> -<<shortcut-editor>> -</$list> -</$set> -\end - -\define shortcut-item() -<$set name="dropdownStateTitle" value=<<qualify "$:/state/dropdown/keyboardshortcut/$(shortcutName)$">>> -<<shortcut-item-inner>> -</$set> -\end - -<table> -<tbody> -<$list filter="[all[shadows+tiddlers]removeprefix[$:/config/ShortcutInfo/]]" variable="shortcutName"> -<<shortcut-item>> -</$list> -</tbody> -</table> --
\define lingo-base() $:/language/ControlPanel/ -<<lingo LoadedModules/Hint>> - -{{$:/snippets/modules}} --
\define install-plugin-actions() -<$action-sendmessage $message="tm-load-plugin-from-library" url={{!!url}} title={{$(assetInfo)$!!original-title}}/> -<$set name="url" value={{!!url}}> -<$set name="currentTiddler" value=<<assetInfo>>> -<$list filter="[enlist{!!dependents}] [{!!parent-plugin}] +[sort[title]]" variable="dependency"> -<$action-sendmessage $message="tm-load-plugin-from-library" url=<<url>> title=<<dependency>>/> -</$list> -</$set> -</$set> -\end - -\define install-plugin-button() -<div> -<$set name="libraryVersion" value={{{ [<assetInfo>get[version]] }}}> -<$set name="installedVersion" value={{{ [<assetInfo>get[original-title]get[version]] }}}> -<$set name="reinstall-type" value={{{ [<libraryVersion>compare:version:eq<installedVersion>then[tc-reinstall]] [<libraryVersion>compare:version:gt<installedVersion>then[tc-reinstall-upgrade]] [<libraryVersion>compare:version:lt<installedVersion>then[tc-reinstall-downgrade]] }}}> -<$button actions=<<install-plugin-actions>> class={{{ [<assetInfo>get[original-title]has[version]then<reinstall-type>] tc-btn-invisible tc-install-plugin +[join[ ]] }}}> -{{$:/core/images/download-button}} -<$list filter="[<assetInfo>get[original-title]get[version]]" variable="ignore" emptyMessage="{{$:/language/ControlPanel/Plugins/Install/Caption}}"> -<$list filter="[<libraryVersion>compare:version:gt<installedVersion>]" variable="ignore" emptyMessage=""" -<$list filter="[<libraryVersion>compare:version:lt<installedVersion>]" variable="ignore" emptyMessage="{{$:/language/ControlPanel/Plugins/Reinstall/Caption}}"> -{{$:/language/ControlPanel/Plugins/Downgrade/Caption}} -</$list> -"""> -{{$:/language/ControlPanel/Plugins/Update/Caption}} -</$list> -</$list> -</$button> -<div> -</div> -<$reveal stateTitle=<<assetInfo>> stateField="requires-reload" type="match" text="yes">{{$:/language/ControlPanel/Plugins/PluginWillRequireReload}}</$reveal> -</$set> -</$set> -</$set> -</div> -\end - -\define popup-state-macro() -$:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$ -\end - -\define display-plugin-info(type) -<$set name="popup-state" value=<<popup-state-macro>>> -<div class="tc-plugin-info"> -<div class="tc-plugin-info-chunk tc-plugin-info-toggle"> -<$reveal type="nomatch" state=<<popup-state>> text="yes"> -<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="yes"> -{{$:/core/images/chevron-right}} -</$button> -</$reveal> -<$reveal type="match" state=<<popup-state>> text="yes"> -<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="no"> -{{$:/core/images/chevron-down}} -</$button> -</$reveal> -</div> -<div class="tc-plugin-info-chunk tc-plugin-info-icon"> -<$list filter="[<assetInfo>has[icon]]" emptyMessage="""<$transclude tiddler="$:/core/images/plugin-generic-$type$"/>"""> -<img src={{$(assetInfo)$!!icon}}/> -</$list> -</div> -<div class="tc-plugin-info-chunk tc-plugin-info-description"> -<h1><strong><$text text={{{ [<assetInfo>get[name]] ~[<assetInfo>get[original-title]split[/]last[1]] }}}/></strong>: <$view tiddler=<<assetInfo>> field="description"/></h1> -<h2><$view tiddler=<<assetInfo>> field="original-title"/></h2> -<div><em><$view tiddler=<<assetInfo>> field="version"/></em></div> -<$list filter="[<assetInfo>get[original-title]get[version]]" variable="installedVersion"><div><em>{{$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint}}</em></div></$list> -</div> -<div class="tc-plugin-info-chunk tc-plugin-info-buttons"> -<<install-plugin-button>> -</div> -</div> -<$set name="original-title" value={{{ [<assetInfo>get[original-title]] }}}> -<$reveal type="match" text="yes" state=<<popup-state>>> -<div class="tc-plugin-info-dropdown"> -<$list filter="[enlist{!!dependents}] [<currentTiddler>get[parent-plugin]] +[limit[1]] ~[<assetInfo>get[original-title]!is[tiddler]]" variable="ignore"> -<div class="tc-plugin-info-dropdown-message"> -<$list filter="[<assetInfo>get[original-title]!is[tiddler]]"> -{{$:/language/ControlPanel/Plugins/NotInstalled/Hint}} -</$list> -<$set name="currentTiddler" value=<<assetInfo>>> -<$list filter="[enlist{!!dependents}] [<currentTiddler>get[parent-plugin]] +[limit[1]]" variable="ignore"> -<div> -{{$:/language/ControlPanel/Plugins/AlsoRequires}} -<$list filter="[enlist{!!dependents}] [{!!parent-plugin}] +[sort[title]]" variable="dependency"> -<$text text=<<dependency>>/> -</$list> -</div> -</$list> -</$set> -</div> -</$list> -<div class="tc-plugin-info-dropdown-body"> -<$transclude tiddler=<<assetInfo>> field="readme" mode="block"/> -</div> -<$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>limit[1]]" variable="ignore"> -<div class="tc-plugin-info-sub-plugins"> -<$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>sort[title]]" variable="assetInfo"> -<<display-plugin-info "$type$">> -</$list> -</div> -</$list> -</div> -</$reveal> -<$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>limit[1]]" variable="ignore"> -<$reveal type="nomatch" text="yes" state=<<popup-state>> tag="div" class="tc-plugin-info-sub-plugin-indicator"> -<$wikify name="count" text="""<$count filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>]"/>"""> -<$button class="tc-btn-invisible" set=<<popup-state>> setTo="yes"> -{{$:/language/ControlPanel/Plugins/SubPluginPrompt}} -</$button> -</$wikify> -</$reveal> -</$list> -</$set> -</$set> -\end - -\define load-plugin-library-button() -<$button class="tc-btn-big-green"> -<$action-sendmessage $message="tm-load-plugin-library" url={{!!url}} infoTitlePrefix="$:/temp/RemoteAssetInfo/"/> -{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Plugins/OpenPluginLibrary}} -</$button> -\end - -\define display-server-assets(type) -{{$:/language/Search/Search}}: <$edit-text tiddler="""$:/temp/RemoteAssetSearch/$(currentTiddler)$""" default="" type="search" tag="input"/> -<$reveal state="""$:/temp/RemoteAssetSearch/$(currentTiddler)$""" type="nomatch" text=""> -<$button class="tc-btn-invisible"> -<$action-setfield $tiddler="""$:/temp/RemoteAssetSearch/$(currentTiddler)$""" $field="text" $value=""/> -{{$:/core/images/close-button}} -</$button> -</$reveal> -<div class="tc-plugin-library-listing"> -<$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]search:author,description,original-title,readme,title{$:/temp/RemoteAssetSearch/$(currentTiddler)$}sort[title]]" variable="assetInfo"> -<$list filter="[[$:/temp/RemoteAssetSearch/$(currentTiddler)$]has[text]] ~[<assetInfo>!has[parent-plugin]]" variable="ignore"><!-- Hide sub-plugins if we're not searching --> -<<display-plugin-info "$type$">> -</$list> -</$list> -</div> -\end - -\define display-server-connection() -<$list filter="[all[tiddlers+shadows]tag[$:/tags/ServerConnection]suffix{!!url}]" variable="connectionTiddler" emptyMessage=<<load-plugin-library-button>>> - -<$set name="transclusion" value=<<connectionTiddler>>> - -<<tabs "[[$:/core/ui/ControlPanel/Plugins/Add/Updates]] [[$:/core/ui/ControlPanel/Plugins/Add/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Add/Themes]] [[$:/core/ui/ControlPanel/Plugins/Add/Languages]]" "$:/core/ui/ControlPanel/Plugins/Add/Plugins">> - -</$set> - -</$list> -\end - -\define close-library-button() -<$reveal type='nomatch' state='$:/temp/ServerConnection/$(PluginLibraryURL)$' text=''> -<$button class='tc-btn-big-green'> -<$action-sendmessage $message="tm-unload-plugin-library" url={{!!url}}/> -{{$:/core/images/chevron-left}} {{$:/language/ControlPanel/Plugins/ClosePluginLibrary}} -<$action-deletetiddler $filter="[prefix[$:/temp/ServerConnection/$(PluginLibraryURL)$]][prefix[$:/temp/RemoteAssetInfo/$(PluginLibraryURL)$]]"/> -</$button> -</$reveal> -\end - -\define plugin-library-listing() -<div class="tc-tab-set"> -<$set name="defaultTab" value={{{ [all[tiddlers+shadows]tag[$:/tags/PluginLibrary]] }}}> -<div class="tc-tab-buttons"> -<$list filter="[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]"> -<$button set=<<qualify "$:/state/addplugins/tab">> setTo=<<currentTiddler>> default=<<defaultTab>> selectedClass="tc-tab-selected"> -<$set name="tv-wikilinks" value="no"> -<$transclude field="caption"/> -</$set> -</$button> -</$list> -</div> -<div class="tc-tab-divider"/> -<div class="tc-tab-content"> -<$list filter="[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]"> -<$reveal type="match" state=<<qualify "$:/state/addplugins/tab">> text=<<currentTiddler>> default=<<defaultTab>>> -<h2><$link><$transclude field="caption"><$view field="title"/></$transclude></$link></h2> -//<$view field="url"/>// -<$transclude mode="block"/> -<$set name=PluginLibraryURL value={{!!url}}> -<<close-library-button>> -</$set> -<<display-server-connection>> -</$reveal> -</$list> -</div> -</$set> -</div> -\end - -\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] - -<div> -<<plugin-library-listing>> -</div> --
\define lingo-base() $:/language/ControlPanel/Palette/ - -{{$:/snippets/paletteswitcher}} - -<$reveal type="nomatch" state="$:/state/ShowPaletteEditor" text="yes"> - -<$button set="$:/state/ShowPaletteEditor" setTo="yes"><<lingo ShowEditor/Caption>></$button> - -</$reveal> - -<$reveal type="match" state="$:/state/ShowPaletteEditor" text="yes"> - -<$button set="$:/state/ShowPaletteEditor" setTo="no"><<lingo HideEditor/Caption>></$button> -{{$:/PaletteManager}} - -</$reveal> - --
\define lingo-base() $:/language/ControlPanel/Parsing/ - -\define toggle(Type) -<$checkbox -tiddler="""$:/config/WikiParserRules/$Type$/$(rule)$""" -field="text" -checked="enable" -unchecked="disable" -default="enable"> -<<rule>> -</$checkbox> -\end - -\define rules(type,Type) -<$list filter="[wikiparserrules[$type$]]" variable="rule"> -<dd><<toggle $Type$>></dd> -</$list> -\end - -<<lingo Hint>> - -<dl> -<dt><<lingo Pragma/Caption>></dt> -<<rules pragma Pragma>> -<dt><<lingo Inline/Caption>></dt> -<<rules inline Inline>> -<dt><<lingo Block/Caption>></dt> -<<rules block Block>> -</dl>-
\define lingo-base() $:/language/ControlPanel/Plugins/ - -\define plugin-table(type) -<$set name="plugin-type" value="""$type$"""> -<$set name="qualified-state" value=<<qualify "$:/state/plugin-info">>> -<$list filter="[!has[draft.of]plugin-type[$type$]sort[title]]" emptyMessage=<<lingo "Empty/Hint">> template="$:/core/ui/Components/plugin-info"/> -</$set> -</$set> -\end - -{{$:/core/ui/ControlPanel/Plugins/AddPlugins}} - -<<lingo Installed/Hint>> - -<<tabs "[[$:/core/ui/ControlPanel/Plugins/Installed/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Installed/Themes]] [[$:/core/ui/ControlPanel/Plugins/Installed/Languages]]" "$:/core/ui/ControlPanel/Plugins/Installed/Plugins">> --
<<display-server-assets language>> --
<<display-server-assets plugin>> --
<<display-server-assets theme>> --
\define each-updateable-plugin(body) -<$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}sort[title]]" variable="assetInfo"> -<$set name="libraryVersion" value={{{ [<assetInfo>get[version]] }}}> -<$list filter="[<assetInfo>get[original-title]has[version]!version<libraryVersion>]" variable="ignore"> -<$set name="installedVersion" value={{{ [<assetInfo>get[original-title]get[version]] }}}> -<$list filter="[<installedversion>!match<libraryVersion>]" variable="ignore"> -$body$ -</$list> -</$set> -</$list> -</$set> -</$list> -\end - -\define update-all-actions() -<$macrocall $name="each-updateable-plugin" body=""" -<<install-plugin-actions>> -"""/> -\end - -\define update-count() -<$wikify name="count-filter" text=<<each-updateable-plugin "[[<$text text=<<assetInfo>>/>]]">>><$count filter=<<count-filter>>/></$wikify> -\end - -<$button actions=<<update-all-actions>> class="tc-btn-invisible tc-install-plugin tc-reinstall-upgrade"> -{{$:/core/images/download-button}} {{||$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption}} -</$button> - -<div class="tc-plugin-library-listing"> -<$macrocall $name="each-updateable-plugin" body=""" -<$macrocall $name="display-plugin-info" type={{{ [<assetInfo>get[original-plugin-type]] }}}/> -"""/> -</div> --
\define lingo-base() $:/language/ControlPanel/Plugins/ - -<$button message="tm-modal" param="$:/core/ui/ControlPanel/Modals/AddPlugins" tooltip={{$:/language/ControlPanel/Plugins/Add/Hint}} class="tc-btn-big-green tc-primary-btn"> -{{$:/core/images/download-button}} <<lingo Add/Caption>> -</$button> --
<<plugin-table language>> --
<<plugin-table plugin>> --
<<plugin-table theme>> --
{{$:/language/ControlPanel/Saving/Hint}} - -<div class="tc-control-panel"> -<<tabs "[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Saving]!has[draft.of]]" "$:/core/ui/ControlPanel/Saving/General">> -</div> --
\define lingo-base() $:/language/ControlPanel/Saving/DownloadSaver/ - -<<lingo Hint>> - -!! <$link to="$:/config/DownloadSaver/AutoSave"><<lingo AutoSave/Hint>></$link> - -<$checkbox tiddler="$:/config/DownloadSaver/AutoSave" field="text" checked="yes" unchecked="no" default="no"> <<lingo AutoSave/Description>> </$checkbox> --
\define lingo-base() $:/language/ControlPanel/Settings/ - -{{$:/language/ControlPanel/Saving/General/Hint}} - -!! <$link to="$:/config/AutoSave"><<lingo AutoSave/Caption>></$link> - -<<lingo AutoSave/Hint>> - -<$radio tiddler="$:/config/AutoSave" value="yes"> <<lingo AutoSave/Enabled/Description>> </$radio> - -<$radio tiddler="$:/config/AutoSave" value="no"> <<lingo AutoSave/Disabled/Description>> </$radio> --
\define lingo-base() $:/language/ControlPanel/Saving/GitService/ -\define service-name() ~Gitea - -<<lingo Description>> - -|<<lingo UserName>> |<$edit-text tiddler="$:/Gitea/Username" default="" tag="input"/> | -|<<lingo Gitea/Password>> |<$password name="Gitea"/> | -|<<lingo Repo>> |<$edit-text tiddler="$:/Gitea/Repo" default="" tag="input"/> | -|<<lingo Branch>> |<$edit-text tiddler="$:/Gitea/Branch" default="master" tag="input"/> | -|<<lingo Path>> |<$edit-text tiddler="$:/Gitea/Path" default="" tag="input"/> | -|<<lingo Filename>> |<$edit-text tiddler="$:/Gitea/Filename" default="" tag="input"/> | -|<<lingo ServerURL>> |<$edit-text tiddler="$:/Gitea/ServerURL" default="https://gitea/api/v1" tag="input"/> | --
\define lingo-base() $:/language/ControlPanel/Saving/GitService/ -\define service-name() ~GitHub - -<<lingo Description>> - -|<<lingo UserName>> |<$edit-text tiddler="$:/GitHub/Username" default="" tag="input"/> | -|<<lingo GitHub/Password>> |<$password name="github"/> | -|<<lingo Repo>> |<$edit-text tiddler="$:/GitHub/Repo" default="" tag="input"/> | -|<<lingo Branch>> |<$edit-text tiddler="$:/GitHub/Branch" default="master" tag="input"/> | -|<<lingo Path>> |<$edit-text tiddler="$:/GitHub/Path" default="" tag="input"/> | -|<<lingo Filename>> |<$edit-text tiddler="$:/GitHub/Filename" default="" tag="input"/> | -|<<lingo ServerURL>> |<$edit-text tiddler="$:/GitHub/ServerURL" default="https://api.github.com" tag="input"/> |-
\define lingo-base() $:/language/ControlPanel/Saving/GitService/ -\define service-name() ~GitLab - -<<lingo Description>> - -|<<lingo UserName>> |<$edit-text tiddler="$:/GitLab/Username" default="" tag="input"/> | -|<<lingo GitLab/Password>> |<$password name="gitlab"/> | -|<<lingo Repo>> |<$edit-text tiddler="$:/GitLab/Repo" default="" tag="input"/> | -|<<lingo Branch>> |<$edit-text tiddler="$:/GitLab/Branch" default="master" tag="input"/> | -|<<lingo Path>> |<$edit-text tiddler="$:/GitLab/Path" default="" tag="input"/> | -|<<lingo Filename>> |<$edit-text tiddler="$:/GitLab/Filename" default="" tag="input"/> | -|<<lingo ServerURL>> |<$edit-text tiddler="$:/GitLab/ServerURL" default="https://gitlab.com/api/v4" tag="input"/> |-
\define lingo-base() $:/language/ControlPanel/Saving/TiddlySpot/ - -\define backupURL() -http://$(userName)$.tiddlyspot.com/backup/ -\end -\define backupLink() -<$reveal type="nomatch" state="$:/UploadName" text=""> -<$set name="userName" value={{$:/UploadName}}> -<$reveal type="match" state="$:/UploadURL" text=""> -<<backupURL>> -</$reveal> -<$reveal type="nomatch" state="$:/UploadURL" text=""> -<$macrocall $name=resolvePath source={{$:/UploadBackupDir}} root={{$:/UploadURL}}>> -</$reveal> -</$set> -</$reveal> -\end - -<<lingo Description>> - -|<<lingo UserName>> |<$edit-text tiddler="$:/UploadName" default="" tag="input"/> | -|<<lingo Password>> |<$password name="upload"/> | -|<<lingo Backups>> |<<backupLink>> | - -''<<lingo Advanced/Heading>>'' - -|<<lingo ServerURL>> |<$edit-text tiddler="$:/UploadURL" default="" tag="input"/> | -|<<lingo Filename>> |<$edit-text tiddler="$:/UploadFilename" default="index.html" tag="input"/> | -|<<lingo UploadDir>> |<$edit-text tiddler="$:/UploadDir" default="." tag="input"/> | -|<<lingo BackupDir>> |<$edit-text tiddler="$:/UploadBackupDir" default="." tag="input"/> | - -<<lingo TiddlySpot/Hint>>-
\define lingo-base() $:/language/ControlPanel/Settings/ - -<<lingo Hint>> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Settings]]"> - -<div style="border-top:1px solid #eee;"> - -!! <$link><$transclude field="caption"/></$link> - -<$transclude/> - -</div> - -</$list> --
\define lingo-base() $:/language/ControlPanel/Settings/CamelCase/ -<<lingo Hint>> - -<$checkbox tiddler="$:/config/WikiParserRules/Inline/wikilink" field="text" checked="enable" unchecked="disable" default="enable"> <$link to="$:/config/WikiParserRules/Inline/wikilink"><<lingo Description>></$link> </$checkbox> --
\define lingo-base() $:/language/ControlPanel/Settings/DefaultMoreSidebarTab/ - -<$link to="$:/config/DefaultMoreSidebarTab"><<lingo Hint>></$link> - -<$select tiddler="$:/config/DefaultMoreSidebarTab"> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]"> -<option value=<<currentTiddler>>><$transclude field="caption"><$text text=<<currentTiddler>>/></$transclude></option> -</$list> -</$select> --
\define lingo-base() $:/language/ControlPanel/Settings/DefaultSidebarTab/ - -<$link to="$:/config/DefaultSidebarTab"><<lingo Hint>></$link> - -<$select tiddler="$:/config/DefaultSidebarTab"> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]"> -<option value=<<currentTiddler>>><$transclude field="caption"><$text text=<<currentTiddler>>/></$transclude></option> -</$list> -</$select> --
\define lingo-base() $:/language/ControlPanel/Settings/EditorToolbar/ -<<lingo Hint>> - -<$checkbox tiddler="$:/config/TextEditor/EnableToolbar" field="text" checked="yes" unchecked="no" default="yes"> <$link to="$:/config/TextEditor/EnableToolbar"><<lingo Description>></$link> </$checkbox> - --
\define lingo-base() $:/language/ControlPanel/Settings/InfoPanelMode/ -<$link to="$:/config/TiddlerInfo/Mode"><<lingo Hint>></$link> - -<$radio tiddler="$:/config/TiddlerInfo/Mode" value="popup"> <<lingo Popup/Description>> </$radio> - -<$radio tiddler="$:/config/TiddlerInfo/Mode" value="sticky"> <<lingo Sticky/Description>> </$radio> --
\define lingo-base() $:/language/ControlPanel/Settings/LinkToBehaviour/ - -<$link to="$:/config/Navigation/openLinkFromInsideRiver"><<lingo "InsideRiver/Hint">></$link> - -<$select tiddler="$:/config/Navigation/openLinkFromInsideRiver"> - <option value="above"><<lingo "OpenAbove">></option> - <option value="below"><<lingo "OpenBelow">></option> - <option value="top"><<lingo "OpenAtTop">></option> - <option value="bottom"><<lingo "OpenAtBottom">></option> -</$select> - -<$link to="$:/config/Navigation/openLinkFromOutsideRiver"><<lingo "OutsideRiver/Hint">></$link> - -<$select tiddler="$:/config/Navigation/openLinkFromOutsideRiver"> - <option value="top"><<lingo "OpenAtTop">></option> - <option value="bottom"><<lingo "OpenAtBottom">></option> -</$select> --
\define lingo-base() $:/language/ControlPanel/Settings/MissingLinks/ -<<lingo Hint>> - -<$checkbox tiddler="$:/config/MissingLinks" field="text" checked="yes" unchecked="no" default="yes"> <$link to="$:/config/MissingLinks"><<lingo Description>></$link> </$checkbox> - --
\define lingo-base() $:/language/ControlPanel/Settings/NavigationAddressBar/ - -<$link to="$:/config/Navigation/UpdateAddressBar"><<lingo Hint>></$link> - -<$radio tiddler="$:/config/Navigation/UpdateAddressBar" value="permaview"> <<lingo Permaview/Description>> </$radio> - -<$radio tiddler="$:/config/Navigation/UpdateAddressBar" value="permalink"> <<lingo Permalink/Description>> </$radio> - -<$radio tiddler="$:/config/Navigation/UpdateAddressBar" value="no"> <<lingo No/Description>> </$radio> --
\define lingo-base() $:/language/ControlPanel/Settings/NavigationHistory/ -<$link to="$:/config/Navigation/UpdateHistory"><<lingo Hint>></$link> - -<$radio tiddler="$:/config/Navigation/UpdateHistory" value="yes"> <<lingo Yes/Description>> </$radio> - -<$radio tiddler="$:/config/Navigation/UpdateHistory" value="no"> <<lingo No/Description>> </$radio> --
\define lingo-base() $:/language/ControlPanel/Settings/NavigationPermalinkviewMode/ -<<lingo Hint>> - -<$checkbox tiddler="$:/config/Navigation/Permalinkview/CopyToClipboard" field="text" checked="yes" unchecked="no" default="yes"> <$link to="$:/config/Navigation/Permalinkview/CopyToClipboard"><<lingo CopyToClipboard/Description>></$link> </$checkbox> - -<$checkbox tiddler="$:/config/Navigation/Permalinkview/UpdateAddressBar" field="text" checked="yes" unchecked="no" default="yes"> <$link to="$:/config/Navigation/Permalinkview/UpdateAddressBar"><<lingo UpdateAddressBar/Description>></$link> </$checkbox> --
\define lingo-base() $:/language/ControlPanel/Settings/PerformanceInstrumentation/ -<<lingo Hint>> - -<$checkbox tiddler="$:/config/Performance/Instrumentation" field="text" checked="yes" unchecked="no" default="no"> <$link to="$:/config/Performance/Instrumentation"><<lingo Description>></$link> </$checkbox> --
\define lingo-base() $:/language/ControlPanel/Settings/TitleLinks/ -<$link to="$:/config/Tiddlers/TitleLinks"><<lingo Hint>></$link> - -<$radio tiddler="$:/config/Tiddlers/TitleLinks" value="yes"> <<lingo Yes/Description>> </$radio> - -<$radio tiddler="$:/config/Tiddlers/TitleLinks" value="no"> <<lingo No/Description>> </$radio> --
\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtons/ -<<lingo Hint>> - -<$checkbox tiddler="$:/config/Toolbar/Icons" field="text" checked="yes" unchecked="no" default="yes"> <$link to="$:/config/Toolbar/Icons"><<lingo Icons/Description>></$link> </$checkbox> - -<$checkbox tiddler="$:/config/Toolbar/Text" field="text" checked="yes" unchecked="no" default="no"> <$link to="$:/config/Toolbar/Text"><<lingo Text/Description>></$link> </$checkbox> --
\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtonStyle/ -<$link to="$:/config/Toolbar/ButtonClass"><<lingo "Hint">></$link> - -<$select tiddler="$:/config/Toolbar/ButtonClass"> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/ToolbarButtonStyle]]"> -<option value={{!!text}}>{{!!caption}}</option> -</$list> -</$select> --
{{$:/snippets/viewswitcher}} --
\define lingo-base() $:/language/ControlPanel/ - -<<lingo Stylesheets/Hint>> - -{{$:/snippets/peek-stylesheets}} --
{{$:/snippets/themeswitcher}} --
\define lingo-base() $:/language/ControlPanel/ - -<<lingo TiddlerFields/Hint>> - -{{$:/snippets/allfields}}-
{{$:/language/ControlPanel/Toolbars/Hint}} - -<div class="tc-control-panel"> -<<tabs "[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Toolbars]!has[draft.of]]" "$:/core/ui/ControlPanel/Toolbars/ViewToolbar" "$:/state/tabs/controlpanel/toolbars" "tc-vertical">> -</div> --
\define config-title() -$(config-base)$$(currentTiddler)$ -\end - -<$draggable tiddler=<<currentTiddler>>> -<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"/> <span class="tc-icon-wrapper"><$transclude tiddler={{!!icon}}/></span> <$transclude field="caption"/> -- <i class="tc-muted"><$transclude field="description"/></i> -</$draggable> --
\define lingo-base() $:/language/TiddlerInfo/ - -\define config-base() $:/config/EditorToolbarButtons/Visibility/ - -{{$:/language/ControlPanel/Toolbars/EditorToolbar/Hint}} - -<$macrocall $name="list-tagged-draggable" tag="$:/tags/EditorToolbar" itemTemplate="$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate"/> --
\define lingo-base() $:/language/TiddlerInfo/ - -\define config-base() $:/config/EditToolbarButtons/Visibility/ - -{{$:/language/ControlPanel/Toolbars/EditToolbar/Hint}} - -<$set name="tv-config-toolbar-icons" value="yes"> - -<$set name="tv-config-toolbar-text" value="yes"> - -<$macrocall $name="list-tagged-draggable" tag="$:/tags/EditToolbar" itemTemplate="$:/core/ui/ControlPanel/Toolbars/ItemTemplate"/> - -</$set> - -</$set>-
\define config-title() -$(config-base)$$(currentTiddler)$ -\end - -<$draggable tiddler=<<currentTiddler>>> -<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"/> <span class="tc-icon-wrapper"> <$transclude field="caption"/> <i class="tc-muted">-- <$transclude field="description"/></i></span> -</$draggable> --
\define lingo-base() $:/language/TiddlerInfo/ - -\define config-base() $:/config/PageControlButtons/Visibility/ - -{{$:/language/ControlPanel/Toolbars/PageControls/Hint}} - -<$set name="tv-config-toolbar-icons" value="yes"> - -<$set name="tv-config-toolbar-text" value="yes"> - -<$macrocall $name="list-tagged-draggable" tag="$:/tags/PageControls" itemTemplate="$:/core/ui/ControlPanel/Toolbars/ItemTemplate"/> - -</$set> - -</$set> --
\define lingo-base() $:/language/TiddlerInfo/ - -\define config-base() $:/config/ViewToolbarButtons/Visibility/ - -{{$:/language/ControlPanel/Toolbars/ViewToolbar/Hint}} - -<$set name="tv-config-toolbar-icons" value="yes"> - -<$set name="tv-config-toolbar-text" value="yes"> - -<$macrocall $name="list-tagged-draggable" tag="$:/tags/ViewToolbar" itemTemplate="$:/core/ui/ControlPanel/Toolbars/ItemTemplate"/> - -</$set> - -</$set> --
\define searchResultList() -//<small>{{$:/language/Search/Matches/Title}}</small>// - -<$list filter="[!is[system]search:title{$(searchTiddler)$}sort[title]limit[250]]" template="$:/core/ui/ListItemTemplate"/> - -//<small>{{$:/language/Search/Matches/All}}</small>// - -<$list filter="[!is[system]search{$(searchTiddler)$}sort[title]limit[250]]" template="$:/core/ui/ListItemTemplate"/> - -\end -<<searchResultList>> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="wrap-selection" - prefix="''" - suffix="''" -/> --
''{{$:/language/Buttons/Clear/Hint}}'' - -<div class="tc-colour-chooser"> - -<$macrocall $name="colour-picker" actions=""" - -<$action-sendmessage - $message="tm-edit-bitmap-operation" - $param="clear" - colour=<<colour-picker-value>> -/> - -<$action-deletetiddler - $tiddler=<<dropdown-state>> -/> - -"""/> - -</div> --
<$reveal tag="span" state="$:/config/TextEditor/EditorHeight/Mode" type="match" text="fixed"> -{{$:/core/images/fixed-height}} -</$reveal> -<$reveal tag="span" state="$:/config/TextEditor/EditorHeight/Mode" type="match" text="auto"> -{{$:/core/images/auto-height}} -</$reveal> --
\define lingo-base() $:/language/Buttons/EditorHeight/ -''<<lingo Hint>>'' - -<$radio tiddler="$:/config/TextEditor/EditorHeight/Mode" value="auto"> {{$:/core/images/auto-height}} <<lingo Caption/Auto>></$radio> - -<$radio tiddler="$:/config/TextEditor/EditorHeight/Mode" value="fixed"> {{$:/core/images/fixed-height}} <<lingo Caption/Fixed>> <$edit-text tag="input" tiddler="$:/config/TextEditor/EditorHeight/Height" default="100px"/></$radio> --
\define lingo-base() $:/language/Buttons/Excise/ - -\define body(config-title) -''<<lingo Hint>>'' - -<<lingo Caption/NewTitle>> <$edit-text tag="input" tiddler="$config-title$/new-title" default="" focus="true"/> - -<$set name="new-title" value={{$config-title$/new-title}}> -<$list filter="""[<new-title>is[tiddler]]"""> -<div class="tc-error"> -<<lingo Caption/TiddlerExists>> -</div> -</$list> -</$set> - -<$checkbox tiddler="""$config-title$/tagnew""" field="text" checked="yes" unchecked="no" default="false"> <<lingo Caption/Tag>></$checkbox> - -<<lingo Caption/Replace>> <$select tiddler="""$config-title$/type""" default="transclude"> -<option value="link"><<lingo Caption/Replace/Link>></option> -<option value="transclude"><<lingo Caption/Replace/Transclusion>></option> -<option value="macro"><<lingo Caption/Replace/Macro>></option> -</$select> - -<$reveal state="""$config-title$/type""" type="match" text="macro"> -<<lingo Caption/MacroName>> <$edit-text tag="input" tiddler="""$config-title$/macro-title""" default="translink"/> -</$reveal> - -<$button> -<$action-sendmessage - $message="tm-edit-text-operation" - $param="excise" - title={{$config-title$/new-title}} - type={{$config-title$/type}} - macro={{$config-title$/macro-title}} - tagnew={{$config-title$/tagnew}} -/> -<$action-deletetiddler - $tiddler="$config-title$/new-title" -/> -<$action-deletetiddler - $tiddler=<<dropdown-state>> -/> -<<lingo Caption/Excise>> -</$button> -\end - -<$macrocall $name="body" config-title=<<qualify "$:/state/Excise/">>/> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="prefix-lines" - character="!" - count="1" -/> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="prefix-lines" - character="!" - count="2" -/> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="prefix-lines" - character="!" - count="3" -/> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="prefix-lines" - character="!" - count="4" -/> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="prefix-lines" - character="!" - count="5" -/> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="prefix-lines" - character="!" - count="6" -/> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="wrap-selection" - prefix="//" - suffix="//" -/> --
<$text text={{$:/config/BitmapEditor/LineWidth}}/>-
\define lingo-base() $:/language/Buttons/LineWidth/ - -\define toolbar-line-width-inner() -<$button tag="a" tooltip="""$(line-width)$"""> - -<$action-setfield - $tiddler="$:/config/BitmapEditor/LineWidth" - $value="$(line-width)$" -/> - -<$action-deletetiddler - $tiddler=<<dropdown-state>> -/> - -<div style="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;"/> - -<span style="margin-left: 8px;"> - -<$text text="""$(line-width)$"""/> - -<$reveal state="$:/config/BitmapEditor/LineWidth" type="match" text="""$(line-width)$""" tag="span"> - -<$entity entity=" "/> - -<$entity entity="✓"/> - -</$reveal> - -</span> - -</$button> -\end - -''<<lingo Hint>>'' - -<$list filter={{$:/config/BitmapEditor/LineWidths}} variable="line-width"> - -<<toolbar-line-width-inner>> - -</$list> --
\define lingo-base() $:/language/Buttons/Link/ - -\define add-link-actions() -<$action-sendmessage $message="tm-edit-text-operation" $param="make-link" text={{$(linkTiddler)$}} /> -<$action-deletetiddler $tiddler=<<dropdown-state>> /> -<$action-deletetiddler $tiddler=<<searchTiddler>> /> -<$action-deletetiddler $tiddler=<<linkTiddler>> /> -\end - -\define external-link() -<$button class="tc-btn-invisible" style="width: auto; display: inline-block; background-colour: inherit;" actions=<<add-link-actions>>> -{{$:/core/images/chevron-right}} -</$button> -\end - -\define body(config-title) -''<<lingo Hint>>'' - -<$vars searchTiddler="""$config-title$/search""" linkTiddler="""$config-title$/link""" linktext="" > - -<$vars linkTiddler=<<searchTiddler>>> -<$keyboard key="ENTER" actions=<<add-link-actions>>> -<$edit-text tiddler=<<searchTiddler>> type="search" tag="input" focus="true" placeholder={{$:/language/Search/Search}} default=""/> -<$reveal tag="span" state=<<searchTiddler>> type="nomatch" text=""> -<<external-link>> -<$button class="tc-btn-invisible" style="width: auto; display: inline-block; background-colour: inherit;"> -<$action-setfield $tiddler=<<searchTiddler>> text="" /> -{{$:/core/images/close-button}} -</$button> -</$reveal> -</$keyboard> -</$vars> - -<$reveal tag="div" state=<<searchTiddler>> type="nomatch" text=""> - -<$linkcatcher actions=<<add-link-actions>> to=<<linkTiddler>>> - -{{$:/core/ui/SearchResults}} - -</$linkcatcher> - -</$reveal> - -</$vars> - -\end - -<$macrocall $name="body" config-title=<<qualify "$:/state/Link/">>/>-
<$action-sendmessage - $message="tm-edit-text-operation" - $param="wrap-selection" - prefix="[[" - suffix="]]" -/> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="prefix-lines" - character="*" - count="1" -/> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="prefix-lines" - character="#" - count="1" -/> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="wrap-lines" - prefix=" -```" - suffix="```" -/> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="wrap-selection" - prefix="`" - suffix="`" -/> --
\define config-title() -$:/config/EditorToolbarButtons/Visibility/$(toolbarItem)$ -\end - -\define conditional-button() -<$list filter={{$(toolbarItem)$!!condition}} variable="condition"> -<$transclude tiddler="$:/core/ui/EditTemplate/body/toolbar/button" mode="inline"/> <$transclude tiddler=<<toolbarItem>> field="description"/> -</$list> -\end - -<div class="tc-text-editor-toolbar-more"> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]] -[[$:/core/ui/EditorToolbar/more]]"> -<$reveal type="match" state=<<config-visibility-title>> text="hide" tag="div"> -<<conditional-button>> -</$reveal> -</$list> -</div> --
<$text text={{$:/config/BitmapEditor/Opacity}}/> --
\define lingo-base() $:/language/Buttons/Opacity/ - -\define toolbar-opacity-inner() -<$button tag="a" tooltip="""$(opacity)$"""> - -<$action-setfield - $tiddler="$:/config/BitmapEditor/Opacity" - $value="$(opacity)$" -/> - -<$action-deletetiddler - $tiddler=<<dropdown-state>> -/> - -<div style="display: inline-block; vertical-align: middle; background-color: $(current-paint-colour)$; opacity: $(opacity)$; width: 1em; height: 1em; border-radius: 50%;"/> - -<span style="margin-left: 8px;"> - -<$text text="""$(opacity)$"""/> - -<$reveal state="$:/config/BitmapEditor/Opacity" type="match" text="""$(opacity)$""" tag="span"> - -<$entity entity=" "/> - -<$entity entity="✓"/> - -</$reveal> - -</span> - -</$button> -\end - -\define toolbar-opacity() -''<<lingo Hint>>'' - -<$list filter={{$:/config/BitmapEditor/Opacities}} variable="opacity"> - -<<toolbar-opacity-inner>> - -</$list> -\end - -<$set name="current-paint-colour" value={{$:/config/BitmapEditor/Colour}}> - -<$set name="current-opacity" value={{$:/config/BitmapEditor/Opacity}}> - -<<toolbar-opacity>> - -</$set> - -</$set> --
\define toolbar-paint() -<div style="display: inline-block; vertical-align: middle; background-color: $(colour-picker-value)$; width: 1em; height: 1em; border-radius: 50%;"/> -\end -<$set name="colour-picker-value" value={{$:/config/BitmapEditor/Colour}}> -<<toolbar-paint>> -</$set> --
''{{$:/language/Buttons/Paint/Hint}}'' - -<$macrocall $name="colour-picker" actions=""" - -<$action-setfield - $tiddler="$:/config/BitmapEditor/Colour" - $value=<<colour-picker-value>> -/> - -<$action-deletetiddler - $tiddler=<<dropdown-state>> -/> - -"""/> --
\define replacement-text() -[img[$(imageTitle)$]] -\end - -''{{$:/language/Buttons/Picture/Hint}}'' - -<$macrocall $name="image-picker" actions=""" - -<$action-sendmessage - $message="tm-edit-text-operation" - $param="replace-selection" - text=<<replacement-text>> -/> - -<$action-deletetiddler - $tiddler=<<dropdown-state>> -/> - -"""/> --
<$reveal state="$:/state/showeditpreview" type="match" text="yes" tag="span"> -{{$:/core/images/preview-open}} -<$action-setfield $tiddler="$:/state/showeditpreview" $value="no"/> -</$reveal> -<$reveal state="$:/state/showeditpreview" type="nomatch" text="yes" tag="span"> -{{$:/core/images/preview-closed}} -<$action-setfield $tiddler="$:/state/showeditpreview" $value="yes"/> -</$reveal> --
\define preview-type-button() -<$button tag="a"> - -<$action-setfield $tiddler="$:/state/editpreviewtype" $value="$(previewType)$"/> - -<$action-deletetiddler - $tiddler=<<dropdown-state>> -/> - -<$transclude tiddler=<<previewType>> field="caption" mode="inline"> - -<$view tiddler=<<previewType>> field="title" mode="inline"/> - -</$transclude> - -<$reveal tag="span" state="$:/state/editpreviewtype" type="match" text=<<previewType>> default="$:/core/ui/EditTemplate/body/preview/output"> - -<$entity entity=" "/> - -<$entity entity="✓"/> - -</$reveal> - -</$button> -\end - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/EditPreview]!has[draft.of]]" variable="previewType"> - -<<preview-type-button>> - -</$list> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="wrap-lines" - prefix=" -<<<" - suffix="<<<" -/> --
<$action-sendmessage - $message="tm-edit-bitmap-operation" - $param="rotate-left" -/> --
\define lingo-base() $:/language/Buttons/Size/ - -\define toolbar-button-size-preset(config-title) -<$set name="width" filter="$(sizePair)$ +[first[]]"> - -<$set name="height" filter="$(sizePair)$ +[last[]]"> - -<$button tag="a"> - -<$action-setfield - $tiddler="""$config-title$/new-width""" - $value=<<width>> -/> - -<$action-setfield - $tiddler="""$config-title$/new-height""" - $value=<<height>> -/> - -<$action-deletetiddler - $tiddler="""$config-title$/presets-popup""" -/> - -<$text text=<<width>>/> × <$text text=<<height>>/> - -</$button> - -</$set> - -</$set> -\end - -\define toolbar-button-size(config-title) -''{{$:/language/Buttons/Size/Hint}}'' - -<<lingo Caption/Width>> <$edit-text tag="input" tiddler="""$config-title$/new-width""" default=<<tv-bitmap-editor-width>> focus="true" size="8"/> <<lingo Caption/Height>> <$edit-text tag="input" tiddler="""$config-title$/new-height""" default=<<tv-bitmap-editor-height>> size="8"/> <$button popup="""$config-title$/presets-popup""" class="tc-btn-invisible tc-popup-keep" style="width: auto; display: inline-block; background-colour: inherit;" selectedClass="tc-selected"> -{{$:/core/images/down-arrow}} -</$button> - -<$reveal tag="span" state="""$config-title$/presets-popup""" type="popup" position="belowleft" animate="yes"> - -<div class="tc-drop-down tc-popup-keep"> - -<$list filter={{$:/config/BitmapEditor/ImageSizes}} variable="sizePair"> - -<$macrocall $name="toolbar-button-size-preset" config-title="$config-title$"/> - -</$list> - -</div> - -</$reveal> - -<$button> -<$action-sendmessage - $message="tm-edit-bitmap-operation" - $param="resize" - width={{$config-title$/new-width}} - height={{$config-title$/new-height}} -/> -<$action-deletetiddler - $tiddler="""$config-title$/new-width""" -/> -<$action-deletetiddler - $tiddler="""$config-title$/new-height""" -/> -<$action-deletetiddler - $tiddler=<<dropdown-state>> -/> -<<lingo Caption/Resize>> -</$button> -\end - -<$macrocall $name="toolbar-button-size" config-title=<<qualify "$:/state/Size/">>/> --
\define toolbar-button-stamp-inner() -<$button tag="a"> - -<$list filter="[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]]"> - -<$action-sendmessage - $message="tm-edit-text-operation" - $param="replace-selection" - text={{$(snippetTitle)$}} -/> - -</$list> - - -<$list filter="[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]]"> - -<$action-sendmessage - $message="tm-edit-text-operation" - $param="wrap-selection" - prefix={{{ [[$(snippetTitle)$]addsuffix[/prefix]get[text]] }}} -suffix={{{ [[$(snippetTitle)$]addsuffix[/suffix]get[text]] }}} -/> - -</$list> - -<$action-deletetiddler - $tiddler=<<dropdown-state>> -/> - -<$transclude tiddler=<<snippetTitle>> field="caption" mode="inline"> - -<$view tiddler=<<snippetTitle>> field="title" /> - -</$transclude> - -</$button> -\end - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/TextEditor/Snippet]!has[draft.of]sort[caption]]" variable="snippetTitle"> - -<<toolbar-button-stamp-inner>> - -</$list> - ----- - -<$button tag="a"> - -<$action-sendmessage - $message="tm-new-tiddler" - tags="$:/tags/TextEditor/Snippet" - caption={{$:/language/Buttons/Stamp/New/Title}} - text={{$:/language/Buttons/Stamp/New/Text}} -/> - -<$action-deletetiddler - $tiddler=<<dropdown-state>> -/> - -<em> - -<$text text={{$:/language/Buttons/Stamp/Caption/New}}/> - -</em> - -</$button> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="wrap-selection" - prefix="~~" - suffix="~~" -/> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="wrap-selection" - prefix=",," - suffix=",," -/> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="wrap-selection" - prefix="^^" - suffix="^^" -/> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="wrap-selection" - prefix="{{" - suffix="}}" -/> --
<$action-sendmessage - $message="tm-edit-text-operation" - $param="wrap-selection" - prefix="__" - suffix="__" -/> --
\define save-tiddler-actions() -<$action-sendmessage $message="tm-add-tag" $param={{{ [<newTagNameTiddler>get[text]] }}}/> -<$action-deletetiddler $tiddler=<<newTagNameTiddler>>/> -<$action-sendmessage $message="tm-add-field" $name={{{ [<newFieldNameTiddler>get[text]] }}} $value={{{ [<newFieldValueTiddler>get[text]] }}}/> -<$action-deletetiddler $tiddler=<<newFieldNameTiddler>>/> -<$action-deletetiddler $tiddler=<<newFieldValueTiddler>>/> -<$action-sendmessage $message="tm-save-tiddler"/> -\end -<div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-edit-frame [<currentTiddler>is[tiddler]then[tc-tiddler-exists]] [<currentTiddler>is[missing]!is[shadow]then[tc-tiddler-missing]] [<currentTiddler>is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [<currentTiddler>is[system]then[tc-tiddler-system]] [{!!class}] [<currentTiddler>tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}> -<$fieldmangler> -<$vars storyTiddler=<<currentTiddler>> newTagNameTiddler=<<qualify "$:/temp/NewTagName">> newFieldNameTiddler=<<qualify "$:/temp/NewFieldName">> newFieldValueTiddler=<<qualify "$:/temp/NewFieldValue">>> -<$keyboard key="((cancel-edit-tiddler))" message="tm-cancel-tiddler"> -<$keyboard key="((save-tiddler))" actions=<<save-tiddler-actions>>> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/EditTemplate]!has[draft.of]]" variable="listItem"> -<$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]"> -<$transclude tiddler=<<listItem>>/> -</$set> -</$list> -</$keyboard> -</$keyboard> -</$vars> -</$fieldmangler> -</div> --
\define lingo-base() $:/language/EditTemplate/Body/ -\define config-visibility-title() -$:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$ -\end -<$list filter="[all[current]has[_canonical_uri]]"> - -<div class="tc-message-box"> - -<<lingo External/Hint>> - -<a href={{!!_canonical_uri}}><$text text={{!!_canonical_uri}}/></a> - -<$edit-text field="_canonical_uri" class="tc-edit-fields" tabindex={{$:/config/EditTabIndex}}></$edit-text> - -</div> - -</$list> - -<$list filter="[all[current]!has[_canonical_uri]]"> - -<$reveal state="$:/state/showeditpreview" type="match" text="yes"> - -<div class="tc-tiddler-preview"> - -<$transclude tiddler="$:/core/ui/EditTemplate/body/editor" mode="inline"/> - -<div class="tc-tiddler-preview-preview"> - -<$transclude tiddler={{$:/state/editpreviewtype}} mode="inline"> - -<$transclude tiddler="$:/core/ui/EditTemplate/body/preview/output" mode="inline"/> - -</$transclude> - -</div> - -</div> - -</$reveal> - -<$reveal state="$:/state/showeditpreview" type="nomatch" text="yes"> - -<$transclude tiddler="$:/core/ui/EditTemplate/body/editor" mode="inline"/> - -</$reveal> - -</$list> --
<$edit - - field="text" - class="tc-edit-texteditor tc-edit-texteditor-body" - placeholder={{$:/language/EditTemplate/Body/Placeholder}} - tabindex={{$:/config/EditTabIndex}} - focus={{{ [{$:/config/AutoFocus}match[text]then[true]] ~[[false]] }}} - -><$set - - name="targetTiddler" - value=<<currentTiddler>> - -><$list - - filter="[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]]" - -><$reveal - - type="nomatch" - state=<<config-visibility-title>> - text="hide" - class="tc-text-editor-toolbar-item-wrapper" - -><$transclude - - tiddler="$:/core/ui/EditTemplate/body/toolbar/button" - mode="inline" - -/></$reveal></$list></$set></$edit> --
<$list filter="[<currentTiddler>!is[image]]" emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}> - -<$macrocall $name="compareTiddlerText" sourceTiddlerTitle={{!!draft.of}} destTiddlerTitle=<<currentTiddler>>/> - -</$list> - --
<$list filter="[<currentTiddler>!is[image]]" emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}> - -<$macrocall $name="compareTiddlerText" sourceTiddlerTitle={{{ [{!!draft.of}shadowsource[]] }}} sourceSubTiddlerTitle={{!!draft.of}} destTiddlerTitle=<<currentTiddler>>/> - -</$list> - --
\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]] -<$set name="tv-tiddler-preview" value="yes"> - -<$transclude /> - -</$set> --
\define toolbar-button-icon() -<$list - - filter="[all[current]!has[custom-icon]]" - variable="no-custom-icon" - -><$transclude - - tiddler={{!!icon}} - -/></$list> -\end - -\define toolbar-button-tooltip() -{{!!description}}<$macrocall $name="displayshortcuts" $output="text/plain" shortcuts={{!!shortcuts}} prefix="` - [" separator="] [" suffix="]`"/> -\end - -\define toolbar-button() -<$list - - filter={{!!condition}} - variable="list-condition" - -><$wikify - - name="tooltip-text" - text=<<toolbar-button-tooltip>> - mode="inline" - output="text" - -><$list - - filter="[all[current]!has[dropdown]]" - variable="no-dropdown" - -><$button - - class="tc-btn-invisible $(buttonClasses)$" - tooltip=<<tooltip-text>> - actions={{!!actions}} - -><span - - data-tw-keyboard-shortcut={{!!shortcuts}} - -/><<toolbar-button-icon>><$transclude - - tiddler=<<currentTiddler>> - field="text" - -/></$button></$list><$list - - filter="[all[current]has[dropdown]]" - variable="dropdown" - -><$set - - name="dropdown-state" - value=<<qualify "$:/state/EditorToolbarDropdown">> - -><$button - - popup=<<dropdown-state>> - class="tc-popup-keep tc-btn-invisible $(buttonClasses)$" - selectedClass="tc-selected" - tooltip=<<tooltip-text>> - actions={{!!actions}} - -><span - - data-tw-keyboard-shortcut={{!!shortcuts}} - -/><<toolbar-button-icon>><$transclude - - tiddler=<<currentTiddler>> - field="text" - -/></$button><$reveal - - state=<<dropdown-state>> - type="popup" - position="below" - animate="yes" - tag="span" - -><div - - class="tc-drop-down tc-popup-keep" - -><$transclude - - tiddler={{!!dropdown}} - mode="block" - -/></div></$reveal></$set></$list></$wikify></$list> -\end - -\define toolbar-button-outer() -<$set - - name="buttonClasses" - value={{!!button-classes}} - -><<toolbar-button>></$set> -\end - -<<toolbar-button-outer>>-
\define config-title() -$:/config/EditToolbarButtons/Visibility/$(listItem)$ -\end -<div class="tc-tiddler-title tc-tiddler-edit-title"> -<$view field="title"/> -<span class="tc-tiddler-controls tc-titlebar"><$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<<config-title>> text="hide"><$transclude tiddler=<<listItem>>/></$reveal></$list></span> -<div style="clear: both;"></div> -</div> --
\define lingo-base() $:/language/EditTemplate/ -\define config-title() -$:/config/EditTemplateFields/Visibility/$(currentField)$ -\end - -\define config-filter() -[[hide]] -[title{$(config-title)$}] -\end - -\define current-tiddler-new-field-selector() -[data-tiddler-title="$(currentTiddlerCSSescaped)$"] .tc-edit-field-add-name input -\end - -\define new-field-actions() -<$action-sendmessage $message="tm-add-field" $name={{{ [<newFieldNameTiddler>get[text]] }}} $value={{{ [<newFieldValueTiddler>get[text]] }}}/> -<$action-deletetiddler $tiddler=<<newFieldNameTiddler>>/> -<$action-deletetiddler $tiddler=<<newFieldValueTiddler>>/> -<$action-sendmessage $message="tm-focus-selector" $param=<<current-tiddler-new-field-selector>>/> -\end - -\define new-field() -<$vars name={{{ [<newFieldNameTiddler>get[text]] }}}> -<$reveal type="nomatch" text="" default=<<name>>> -<$button tooltip=<<lingo Fields/Add/Button/Hint>>> -<$action-sendmessage $message="tm-add-field" -$name=<<name>> -$value={{{ [<newFieldValueTiddler>get[text]] }}}/> -<$action-deletetiddler $tiddler=<<newFieldNameTiddler>>/> -<$action-deletetiddler $tiddler=<<newFieldValueTiddler>>/> -<<lingo Fields/Add/Button>> -</$button> -</$reveal> -<$reveal type="match" text="" default=<<name>>> -<$button> -<<lingo Fields/Add/Button>> -</$button> -</$reveal> -</$vars> -\end -\whitespace trim - -<div class="tc-edit-fields"> -<table class="tc-edit-fields"> -<tbody> -<$list filter="[all[current]fields[]] +[sort[title]]" variable="currentField" storyview="pop"> -<$list filter=<<config-filter>> variable="temp"> -<tr class="tc-edit-field"> -<td class="tc-edit-field-name"> -<$text text=<<currentField>>/>:</td> -<td class="tc-edit-field-value"> -<$edit-text tiddler=<<currentTiddler>> field=<<currentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} tabindex={{$:/config/EditTabIndex}}/> -</td> -<td class="tc-edit-field-remove"> -<$button class="tc-btn-invisible" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}> -<$action-deletefield $field=<<currentField>>/> -{{$:/core/images/delete-button}} -</$button> -</td> -</tr> -</$list> -</$list> -</tbody> -</table> -</div> - -<$fieldmangler> -<div class="tc-edit-field-add"> -<em class="tc-edit"> -<<lingo Fields/Add/Prompt>> -</em> -<span class="tc-edit-field-add-name"> -<$edit-text tiddler=<<newFieldNameTiddler>> tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} focusPopup=<<qualify "$:/state/popup/field-dropdown">> class="tc-edit-texteditor tc-popup-handle" tabindex={{$:/config/EditTabIndex}} focus={{{ [{$:/config/AutoFocus}match[fields]then[true]] ~[[false]] }}}/> -</span> -<$button popup=<<qualify "$:/state/popup/field-dropdown">> class="tc-btn-invisible tc-btn-dropdown" tooltip={{$:/language/EditTemplate/Field/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Field/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button> -<$reveal state=<<qualify "$:/state/popup/field-dropdown">> type="nomatch" text="" default=""> -<div class="tc-block-dropdown tc-edit-type-dropdown"> -<$set name="tv-show-missing-links" value="yes"> -<$linkcatcher to=<<newFieldNameTiddler>>> -<div class="tc-dropdown-item"> -<<lingo Fields/Add/Dropdown/User>> -</div> -<$set name="newFieldName" value={{{ [<newFieldNameTiddler>get[text]] }}}> -<$list filter="[!is[shadow]!is[system]fields[]search:title<newFieldName>sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type" variable="currentField"> -<$link to=<<currentField>>> -<$text text=<<currentField>>/> -</$link> -</$list> -<div class="tc-dropdown-item"> -<<lingo Fields/Add/Dropdown/System>> -</div> -<$list filter="[fields[]search:title<newFieldName>sort[]] -[!is[shadow]!is[system]fields[]]" variable="currentField"> -<$link to=<<currentField>>> -<$text text=<<currentField>>/> -</$link> -</$list> -</$set> -</$linkcatcher> -</$set> -</div> -</$reveal> -<span class="tc-edit-field-add-value"> -<$set name="currentTiddlerCSSescaped" value={{{ [<currentTiddler>escapecss[]] }}}> -<$keyboard key="((add-field))" actions=<<new-field-actions>>> -<$edit-text tiddler=<<newFieldValueTiddler>> tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class="tc-edit-texteditor" tabindex={{$:/config/EditTabIndex}}/> -</$keyboard> -</$set> -</span> -<span class="tc-edit-field-add-button"> -<$macrocall $name="new-field"/> -</span> -</div> -</$fieldmangler> --
\define lingo-base() $:/language/EditTemplate/Shadow/ -\define pluginLinkBody() -<$link to="""$(pluginTitle)$"""> -<$text text="""$(pluginTitle)$"""/> -</$link> -\end -<$list filter="[all[current]get[draft.of]is[shadow]!is[tiddler]]"> - -<$list filter="[all[current]shadowsource[]]" variable="pluginTitle"> - -<$set name="pluginLink" value=<<pluginLinkBody>>> -<div class="tc-message-box"> - -<<lingo Warning>> - -</div> -</$set> -</$list> - -</$list> - -<$list filter="[all[current]get[draft.of]is[shadow]is[tiddler]]"> - -<$list filter="[all[current]shadowsource[]]" variable="pluginTitle"> - -<$set name="pluginLink" value=<<pluginLinkBody>>> -<div class="tc-message-box"> - -<<lingo OverriddenWarning>> - -</div> -</$set> -</$list> - -</$list>-
\whitespace trim - -\define lingo-base() $:/language/EditTemplate/ - -\define tag-styles() -background-color:$(backgroundColor)$; -fill:$(foregroundColor)$; -color:$(foregroundColor)$; -\end - -\define tag-body-inner(colour,fallbackTarget,colourA,colourB,icon) -\whitespace trim -<$vars foregroundColor=<<contrastcolour target:"""$colour$""" fallbackTarget:"""$fallbackTarget$""" colourA:"""$colourA$""" colourB:"""$colourB$""">> backgroundColor="""$colour$"""> -<span style=<<tag-styles>> class="tc-tag-label tc-tag-list-item"> -<$transclude tiddler="""$icon$"""/><$view field="title" format="text" /> -<$button message="tm-remove-tag" param={{!!title}} class="tc-btn-invisible tc-remove-tag-button">{{$:/core/images/close-button}}</$button> -</span> -</$vars> -\end - -\define tag-body(colour,palette,icon) -<$macrocall $name="tag-body-inner" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} icon="""$icon$"""/> -\end - -<div class="tc-edit-tags"> -<$fieldmangler> -<$list filter="[all[current]tags[]sort[title]]" storyview="pop"> -<$macrocall $name="tag-body" colour={{!!color}} palette={{$:/palette}} icon={{!!icon}}/> -</$list> -<$set name="tabIndex" value={{$:/config/EditTabIndex}}> -<$macrocall $name="tag-picker"/> -</$set> -</$fieldmangler> -</div> --
<$edit-text field="draft.title" class="tc-titlebar tc-edit-texteditor" focus={{{ [{$:/config/AutoFocus}match[title]then[true]] ~[[false]] }}} tabindex={{$:/config/EditTabIndex}}/> - -<$vars pattern="""[\|\[\]{}]""" bad-chars="""`| [ ] { }`"""> - -<$list filter="[all[current]regexp:draft.title<pattern>]" variable="listItem"> - -<div class="tc-message-box"> - -{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}} - -</div> - -</$list> - -</$vars> - -<$reveal state="!!draft.title" type="nomatch" text={{!!draft.of}} tag="div"> - -<$list filter="[{!!draft.title}!is[missing]]" variable="listItem"> - -<div class="tc-message-box"> - -{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}} - -</div> - -</$list> - -<$list filter="[{!!draft.of}!is[missing]]" variable="listItem"> - -<$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}> - -<$checkbox tiddler="$:/config/RelinkOnRename" field="text" checked="yes" unchecked="no" default="no"> {{$:/language/EditTemplate/Title/Relink/Prompt}}</$checkbox> - -<$list filter="[title<fromTitle>backlinks[]limit[1]]" variable="listItem"> - -<$vars stateTiddler=<<qualify "$:/state/edit/references">> > - -<$reveal type="nomatch" state=<<stateTiddler>> text="show"> -<$button set=<<stateTiddler>> setTo="show" class="tc-btn-invisible">{{$:/core/images/right-arrow}} -<<lingo EditTemplate/Title/References/Prompt>></$button> -</$reveal> -<$reveal type="match" state=<<stateTiddler>> text="show"> -<$button set=<<stateTiddler>> setTo="hide" class="tc-btn-invisible">{{$:/core/images/down-arrow}} -<<lingo EditTemplate/Title/References/Prompt>></$button> -</$reveal> - -<$reveal type="match" state=<<stateTiddler>> text="show"> -<$tiddler tiddler=<<fromTitle>> > -<$transclude tiddler="$:/core/ui/TiddlerInfo/References"/> -</$tiddler> -</$reveal> - -</$vars> - -</$list> - -</$vars> - -</$list> - -</$reveal> --
\define lingo-base() $:/language/EditTemplate/ -\whitespace trim -<div class="tc-type-selector"><$fieldmangler> -<em class="tc-edit"><<lingo Type/Prompt>></em> <$edit-text field="type" tag="input" default="" placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=<<qualify "$:/state/popup/type-dropdown">> class="tc-edit-typeeditor tc-edit-texteditor tc-popup-handle" tabindex={{$:/config/EditTabIndex}} focus={{{ [{$:/config/AutoFocus}match[type]then[true]] ~[[false]] }}}/> <$button popup=<<qualify "$:/state/popup/type-dropdown">> class="tc-btn-invisible tc-btn-dropdown" tooltip={{$:/language/EditTemplate/Type/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Type/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button> <$button message="tm-remove-field" param="type" class="tc-btn-invisible tc-btn-icon" tooltip={{$:/language/EditTemplate/Type/Delete/Hint}} aria-label={{$:/language/EditTemplate/Type/Delete/Caption}}>{{$:/core/images/delete-button}}</$button> -</$fieldmangler></div> - -<div class="tc-block-dropdown-wrapper"> -<$set name="tv-show-missing-links" value="yes"> -<$reveal state=<<qualify "$:/state/popup/type-dropdown">> type="nomatch" text="" default=""> -<div class="tc-block-dropdown tc-edit-type-dropdown"> -<$linkcatcher to="!!type"> -<$list filter='[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]each[group]sort[group-sort]]'> -<div class="tc-dropdown-item"> -<$text text={{!!group}}/> -</div> -<$list filter="[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]group{!!group}] +[sort[description]]"><$link to={{!!name}}><$view field="description"/> (<$view field="name"/>)</$link> -</$list> -</$list> -</$linkcatcher> -</div> -</$reveal> -</$set> -</div> --
\define lingo-base() $:/language/Import/ - -\define messageField() -message-$(payloadTiddler)$ -\end - -\define selectionField() -selection-$(payloadTiddler)$ -\end - -\define previewPopupState() -$(currentTiddler)$!!popup-$(payloadTiddler)$ -\end - -\define select-all-actions() -<$list filter="[all[current]plugintiddlers[]sort[title]]" variable="payloadTiddler"> -<$action-setfield $field={{{ [<payloadTiddler>addprefix[selection-]] }}} $value={{$:/state/import/select-all}}/> -</$list> -\end - -<table> -<tbody> -<tr> -<th> -<$checkbox tiddler="$:/state/import/select-all" field="text" checked="checked" unchecked="unchecked" default="checked" actions=<<select-all-actions>>> -<<lingo Listing/Select/Caption>> -</$checkbox> -</th> -<th> -<<lingo Listing/Title/Caption>> -</th> -<th> -<<lingo Listing/Status/Caption>> -</th> -</tr> -<$list filter="[all[current]plugintiddlers[]sort[title]]" variable="payloadTiddler"> -<tr> -<td> -<$checkbox field=<<selectionField>> checked="checked" unchecked="unchecked" default="checked"/> -</td> -<td> -<$reveal type="nomatch" stateTitle=<<previewPopupState>> text="yes" tag="div"> -<$button class="tc-btn-invisible tc-btn-dropdown" setTitle=<<previewPopupState>> setTo="yes"> -{{$:/core/images/right-arrow}} <$text text=<<payloadTiddler>>/> -</$button> -</$reveal> -<$reveal type="match" stateTitle=<<previewPopupState>> text="yes" tag="div"> -<$button class="tc-btn-invisible tc-btn-dropdown" setTitle=<<previewPopupState>> setTo="no"> -{{$:/core/images/down-arrow}} <$text text=<<payloadTiddler>>/> -</$button> -</$reveal> -</td> -<td> -<$view field=<<messageField>>/> -</td> -</tr> -<tr> -<td colspan="3"> -<$reveal type="match" text="yes" stateTitle=<<previewPopupState>> tag="div"> -<$list filter="[{$:/state/importpreviewtype}has[text]]" variable="listItem" emptyMessage={{$:/core/ui/ImportPreviews/Text}}> -<$transclude tiddler={{$:/state/importpreviewtype}}/> -</$list> -</$reveal> -</td> -</tr> -</$list> -</tbody> -</table> --
<$macrocall $name="compareTiddlerText" sourceTiddlerTitle=<<payloadTiddler>> destTiddlerTitle=<<currentTiddler>> destSubTiddlerTitle=<<payloadTiddler>>/> --
<$macrocall $name="compareTiddlers" sourceTiddlerTitle=<<payloadTiddler>> destTiddlerTitle=<<currentTiddler>> destSubTiddlerTitle=<<payloadTiddler>> exclude="text"/> --
<table class="tc-view-field-table"> -<tbody> -<$list filter="[<payloadTiddler>subtiddlerfields<currentTiddler>sort[]] -text" variable="fieldName"> -<tr class="tc-view-field"> -<td class="tc-view-field-name"> -<$text text=<<fieldName>>/> -</td> -<td class="tc-view-field-value"> -<$view field=<<fieldName>> tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>>/> -</td> -</tr> -</$list> -</tbody> -</table> --
<$transclude tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>> mode="block"/> --
<pre><code><$view tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>> /></code></pre>-
<$list filter="[[$:/state/sidebar]is[missing]] [{$:/state/sidebar}removeprefix[yes]]" emptyMessage=""" -<$action-setfield $tiddler="$:/state/sidebar" text="yes"/> -"""> -<$action-setfield $tiddler="$:/state/sidebar" text="no"/> -</$list> --
<$navigator story="$:/StoryList" history="$:/HistoryList"> -<$action-navigate $to="$:/AdvancedSearch"/> -<$action-sendmessage $message="tm-focus-selector" $param="""[data-tiddler-title="$:/AdvancedSearch"] .tc-search input"""/> -</$navigator> --
<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}> -{{$:/core/ui/Actions/new-image}} -</$navigator> --
<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}> -{{$:/core/ui/Actions/new-journal}} -</$navigator> --
<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}> -{{$:/core/ui/Actions/new-tiddler}} -</$navigator> --
<$action-sendmessage $message="tm-focus-selector" $param=".tc-search input"/> --
<div class="tc-menu-list-item"> -<$link /> -</div>-
<div class="tc-tiddler-missing"> -<$button popup=<<qualify "$:/state/popup/missing">> class="tc-btn-invisible tc-missing-tiddler-label"> -<$view field="title" format="text" /> -</$button> -<$reveal state=<<qualify "$:/state/popup/missing">> type="popup" position="below" animate="yes"> -<div class="tc-drop-down"> -<$transclude tiddler="$:/core/ui/ListItemTemplate"/> -<hr> -<$list filter="[all[current]backlinks[]sort[title]]" template="$:/core/ui/ListItemTemplate"/> -</div> -</$reveal> -</div> --
<$list filter={{$:/core/Filters/AllTiddlers!!filter}} template="$:/core/ui/ListItemTemplate"/> --
<$list filter={{$:/core/Filters/Drafts!!filter}} template="$:/core/ui/ListItemTemplate"/> --
<<tree "$:/">> --
<$list filter={{$:/core/Filters/Missing!!filter}} template="$:/core/ui/MissingTemplate"/> --
<$list filter={{$:/core/Filters/Orphans!!filter}} template="$:/core/ui/ListItemTemplate"/> --
{{$:/language/ControlPanel/Plugins/Installed/Hint}} - -<<tabs "[all[shadows+tiddlers]tag[$:/tags/MoreSideBar/Plugins]!has[draft.of]]" "$:/core/ui/MoreSideBar/Plugins/Plugins">> --
<$list filter="[!has[draft.of]plugin-type[language]sort[description]]" template="$:/core/ui/PluginListItemTemplate" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/> --
<$list filter="[!has[draft.of]plugin-type[plugin]sort[description]]" template="$:/core/ui/PluginListItemTemplate" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}>>/> --
<$list filter="[!has[draft.of]plugin-type[theme]sort[description]]" template="$:/core/ui/PluginListItemTemplate" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/> --
<$macrocall $name="timeline" format={{$:/language/RecentChanges/DateFormat}}/> --
<$list filter={{$:/core/Filters/ShadowTiddlers!!filter}} template="$:/core/ui/ListItemTemplate"/> --
<$list filter={{$:/core/Filters/SystemTiddlers!!filter}} template="$:/core/ui/ListItemTemplate"/> --
<$set name="tv-config-toolbar-icons" value="yes"> - -<$set name="tv-config-toolbar-text" value="yes"> - -<$set name="tv-config-toolbar-class" value=""> - -{{$:/core/ui/Buttons/tag-manager}} - -</$set> - -</$set> - -</$set> - -<$list filter={{$:/core/Filters/AllTags!!filter}}> - -<$transclude tiddler="$:/core/ui/TagTemplate"/> - -</$list> - -<hr class="tc-untagged-separator"> - -{{$:/core/ui/UntaggedTemplate}} --
<$list filter={{$:/core/Filters/TypedTiddlers!!filter}}> -<div class="tc-menu-list-item"> -<$view field="type"/> -<$list filter="[type{!!type}!is[system]sort[title]]"> -<div class="tc-menu-list-subitem"> -<$link to={{!!title}}><$view field="title"/></$link> -</div> -</$list> -</div> -</$list> --
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] - -<$set name="currentTiddler" value={{$:/language}}> - -<$set name="languageTitle" value={{!!name}}> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]"> -<$transclude mode="block"/> -</$list> - -</$set> - -</$set> --
\whitespace trim -\define containerClasses() -tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$ -\end -\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] - -<$set name="tv-config-toolbar-icons" value={{$:/config/Toolbar/Icons}}> - -<$set name="tv-config-toolbar-text" value={{$:/config/Toolbar/Text}}> - -<$set name="tv-config-toolbar-class" value={{$:/config/Toolbar/ButtonClass}}> - -<$set name="tv-enable-drag-and-drop" value={{$:/config/DragAndDrop/Enable}}> - -<$set name="tv-show-missing-links" value={{$:/config/MissingLinks}}> - -<$set name="storyviewTitle" value={{$:/view}}> - -<$set name="languageTitle" value={{{ [{$:/language}get[name]] }}}> - -<div class=<<containerClasses>>> - -<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}> - -<$dropzone enable=<<tv-enable-drag-and-drop>>> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageTemplate]!has[draft.of]]" variable="listItem"> - -<$transclude tiddler=<<listItem>>/> - -</$list> - -</$dropzone> - -</$navigator> - -</div> - -</$set> - -</$set> - -</$set> - -</$set> - -</$set> - -</$set> - -</$set> --
<div class="tc-alerts"> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/Alert]!has[draft.of]]" template="$:/core/ui/AlertTemplate" storyview="pop"/> - -</div> --
\whitespace trim -<$reveal state="$:/status/IsReadOnly" type="nomatch" text="yes" tag="div" class="tc-drafts-list"> -<$list filter="[has[draft.of]!sort[modified]] -[list[$:/StoryList]]"> -<$link> -{{$:/core/images/edit-button}} <$text text=<<currentTiddler>>/> -</$link> -</$list> -</$reveal> --
\whitespace trim -\define config-title() -$:/config/PageControlButtons/Visibility/$(listItem)$ -\end -<div class="tc-page-controls"> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem"> -<$set name="hidden" value=<<config-title>>> -<$list filter="[<hidden>!text[hide]]" storyview="pop" variable="ignore"> -<$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]"> -<$transclude tiddler=<<listItem>> mode="inline"/> -</$set> -</$list> -</$set> -</$list> -</div> --
\define lingo-base() $:/language/ - -<$list filter="[{$:/status/RequireReloadDueToPluginChange}match[yes]]"> - -<$reveal type="nomatch" state="$:/temp/HidePluginWarning" text="yes"> - -<div class="tc-plugin-reload-warning"> - -<$set name="tv-config-toolbar-class" value=""> - -<<lingo PluginReloadWarning>> <$button set="$:/temp/HidePluginWarning" setTo="yes" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> - -</$set> - -</div> - -</$reveal> - -</$list> --
\whitespace trim -\define config-title() -$:/config/SideBarSegments/Visibility/$(listItem)$ -\end - -<$scrollable fallthrough="no" class="tc-sidebar-scrollable"> - -<div class="tc-sidebar-header"> - -<$reveal state="$:/state/sidebar" type="match" text="yes" default="yes" retain="yes" animate="yes"> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/SideBarSegment]!has[draft.of]]" variable="listItem"> - -<$reveal type="nomatch" state=<<config-title>> text="hide" tag="div"> - -<$transclude tiddler=<<listItem>> mode="block"/> - -</$reveal> - -</$list> - -</$reveal> - -</div> - -</$scrollable> --
\whitespace trim -<section class="tc-story-river"> - -<section class="story-backdrop"> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/AboveStory]!has[draft.of]]"> - -<$transclude/> - -</$list> - -</section> - -<$list filter="[list[$:/StoryList]]" history="$:/HistoryList" template={{$:/config/ui/ViewTemplate}} editTemplate={{$:/config/ui/EditTemplate}} storyview={{$:/view}} emptyMessage={{$:/config/EmptyStoryMessage}}/> - -<section class="story-frontdrop"> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/BelowStory]!has[draft.of]]"> - -<$transclude/> - -</$list> - -</section> - -</section> --
<span class="tc-topbar tc-topbar-left"> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/TopLeftBar]!has[draft.of]]" variable="listItem" storyview="pop"> - -<$transclude tiddler=<<listItem>> mode="inline"/> - -</$list> - -</span> --
<span class="tc-topbar tc-topbar-right"> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/TopRightBar]!has[draft.of]]" variable="listItem" storyview="pop"> - -<$transclude tiddler=<<listItem>> mode="inline"/> - -</$list> - -</span> --
\define localised-info-tiddler-title() -$(currentTiddler)$/$(languageTitle)$/$(currentTab)$ -\end -\define info-tiddler-title() -$(currentTiddler)$/$(currentTab)$ -\end -\define default-tiddler-title() -$:/core/ui/PluginInfo/Default/$(currentTab)$ -\end -<$transclude tiddler=<<localised-info-tiddler-title>> mode="block"> -<$transclude tiddler=<<currentTiddler>> subtiddler=<<localised-info-tiddler-title>> mode="block"> -<$transclude tiddler=<<currentTiddler>> subtiddler=<<info-tiddler-title>> mode="block"> -<$transclude tiddler=<<default-tiddler-title>> mode="block"> -{{$:/language/ControlPanel/Plugin/NoInfoFound/Hint}} -</$transclude> -</$transclude> -</$transclude> -</$transclude> --
\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/ -<<lingo Hint>> -<ul> -<$list filter="[all[current]plugintiddlers[]sort[title]]" emptyMessage=<<lingo Empty/Hint>>> -<li> -<$link /> -</li> -</$list> -</ul> --
<div class="tc-menu-list-item"> -<$link to={{!!title}}><$view field="description"><$view field="title"/></$view></$link> -</div>-
<div class="tc-search-results"> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]" emptyMessage=""" -<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]"> -<$transclude mode="block"/> -</$list> -"""> - -<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]" default={{$:/config/SearchResults/Default}}/> - -</$list> - -</div> --
<div class="tc-more-sidebar"> -<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]" default={{$:/config/DefaultMoreSidebarTab}} state="$:/state/tab/moresidebar" class="tc-vertical tc-sidebar-tabs-more" /> -</div>-
\whitespace trim -\define lingo-base() $:/language/CloseAll/ - -\define drop-actions() -<$action-listops $tiddler=<<tv-story-list>> $subfilter="+[insertbefore:currentTiddler<actionTiddler>]"/> -\end - -\define placeholder() -<div class="tc-droppable-placeholder"/> -\end - -\define droppable-item(button) -\whitespace trim -<$droppable actions=<<drop-actions>> enable=<<tv-allow-drag-and-drop>>> -<<placeholder>> -<div> -$button$ -</div> -</$droppable> -\end - -<div class="tc-sidebar-tab-open"> -<$list filter="[list<tv-story-list>]" history=<<tv-history-list>> storyview="pop"> -<div class="tc-sidebar-tab-open-item"> -<$macrocall $name="droppable-item" button="""<$button message="tm-close-tiddler" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class="tc-btn-invisible tc-btn-mini">{{$:/core/images/close-button}}</$button> <$link to={{!!title}}><$view field="title"/></$link>"""/> -</div> -</$list> -<$tiddler tiddler=""> -<div> -<$macrocall $name="droppable-item" button="""<$button message="tm-close-all-tiddlers" class="tc-btn-invisible tc-btn-mini"><<lingo Button>></$button>"""/> -</div> -</$tiddler> -</div> --
<$macrocall $name="timeline" format={{$:/language/RecentChanges/DateFormat}}/> --
\define lingo-base() $:/language/ControlPanel/ -\define config-title() -$:/config/PageControlButtons/Visibility/$(listItem)$ -\end - -<<lingo Basics/Version/Prompt>> <<version>> - -<$set name="tv-config-toolbar-icons" value="yes"> - -<$set name="tv-config-toolbar-text" value="yes"> - -<$set name="tv-config-toolbar-class" value=""> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem"> - -<div style="position:relative;" class={{{ [<listItem>encodeuricomponent[]addprefix[tc-btn-]] }}}> - -<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"/> <$transclude tiddler=<<listItem>>/> <i class="tc-muted"><$transclude tiddler=<<listItem>> field="description"/></i> - -</div> - -</$list> - -</$set> - -</$set> - -</$set> --
<$transclude tiddler="$:/core/ui/SideBarSegments/search"/> - -<$transclude tiddler="$:/core/ui/SideBarSegments/tabs"/> - --
{{||$:/core/ui/PageTemplate/pagecontrols}} --
\whitespace trim -<div class="tc-sidebar-lists tc-sidebar-search"> - -<$set name="searchTiddler" value="$:/temp/search"> -<div class="tc-search"> -<$edit-text tiddler="$:/temp/search" type="search" tag="input" focus={{$:/config/Search/AutoFocus}} focusPopup=<<qualify "$:/state/popup/search-dropdown">> class="tc-popup-handle"/> -<$reveal state="$:/temp/search" type="nomatch" text=""> -<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="tc-btn-invisible"> -<$action-setfield $tiddler="$:/temp/advancedsearch" text={{$:/temp/search}}/> -<$action-setfield $tiddler="$:/temp/search" text=""/> -<$action-navigate $to="$:/AdvancedSearch"/> -{{$:/core/images/advanced-search-button}} -</$button> -<$button class="tc-btn-invisible"> -<$action-setfield $tiddler="$:/temp/search" text="" /> -{{$:/core/images/close-button}} -</$button> -<$button popup=<<qualify "$:/state/popup/search-dropdown">> class="tc-btn-invisible"> -{{$:/core/images/down-arrow}} -<$list filter="[{$:/temp/search}minlength{$:/config/Search/MinLength}limit[1]]" variable="listItem"> -<$set name="searchTerm" value={{{ [<searchTiddler>get[text]] }}}> -<$set name="resultCount" value="""<$count filter="[!is[system]search<searchTerm>]"/>"""> -{{$:/language/Search/Matches}} -</$set> -</$set> -</$list> -</$button> -</$reveal> -<$reveal state="$:/temp/search" type="match" text=""> -<$button to="$:/AdvancedSearch" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="tc-btn-invisible"> -{{$:/core/images/advanced-search-button}} -</$button> -</$reveal> -</div> - -<$reveal tag="div" class="tc-block-dropdown-wrapper" state="$:/temp/search" type="nomatch" text=""> - -<$reveal tag="div" class="tc-block-dropdown tc-search-drop-down tc-popup-handle" state=<<qualify "$:/state/popup/search-dropdown">> type="nomatch" text="" default=""> - -<$list filter="[{$:/temp/search}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem"> - -{{$:/core/ui/SearchResults}} - -</$list> - -</$reveal> - -</$reveal> - -</$set> - -</div> --
<div class="tc-site-subtitle"> - -<$transclude tiddler="$:/SiteSubtitle" mode="inline"/> - -</div> --
<h1 class="tc-site-title"> - -<$transclude tiddler="$:/SiteTitle" mode="inline"/> - -</h1> --
<div class="tc-sidebar-lists tc-sidebar-tabs"> - -<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]" default={{$:/config/DefaultSidebarTab}} state="$:/state/tab/sidebar" class="tc-sidebar-tabs-main"/> - -</div> --
\whitespace trim -<span class="tc-tag-list-item"> -<$set name="transclusion" value=<<currentTiddler>>> -<$macrocall $name="tag-pill-body" tag=<<currentTiddler>> icon={{!!icon}} colour={{!!color}} palette={{$:/palette}} element-tag="""$button""" element-attributes="""popup=<<qualify "$:/state/popup/tag">> dragFilter='[all[current]tagging[]]' tag='span'"""/> -<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" position="below" animate="yes" class="tc-drop-down"> -<$set name="tv-show-missing-links" value="yes"> -<$transclude tiddler="$:/core/ui/ListItemTemplate"/> -</$set> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]" variable="listItem"> -<$transclude tiddler=<<listItem>>/> -</$list> -<hr> -<$macrocall $name="list-tagged-draggable" tag=<<currentTiddler>>/> -</$reveal> -</$set> -</span> --
<table class="tc-view-field-table"> -<tbody> -<$list filter="[all[current]fields[]sort[title]] -text" template="$:/core/ui/TiddlerFieldTemplate" variable="listItem"/> -</tbody> -</table> --
<tr class="tc-view-field"> -<td class="tc-view-field-name"> -<$text text=<<listItem>>/> -</td> -<td class="tc-view-field-value"> -<$view field=<<listItem>>/> -</td> -</tr>-
<div style="position:relative;"> -<div class="tc-tiddler-controls" style="position:absolute;right:0;"> -<$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="sticky"> -<$button set=<<tiddlerInfoState>> setTo="" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class="tc-btn-invisible"> -{{$:/core/images/close-button}} -</$button> -</$reveal> -</div> -</div> - -<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo]!has[draft.of]]" default={{$:/config/TiddlerInfo/Default}}/>-
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo/Advanced]!has[draft.of]]" variable="listItem"> -<$transclude tiddler=<<listItem>>/> - -</$list> --
\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/ -<$list filter="[all[current]has[plugin-type]]"> - -! <<lingo Heading>> - -<<lingo Hint>> -<ul> -<$list filter="[all[current]plugintiddlers[]sort[title]]" emptyMessage=<<lingo Empty/Hint>>> -<li> -<$link to={{!!title}}> -<$view field="title"/> -</$link> -</li> -</$list> -</ul> - -</$list> --
\define lingo-base() $:/language/TiddlerInfo/Advanced/ShadowInfo/ -<$set name="infoTiddler" value=<<currentTiddler>>> - -''<<lingo Heading>>'' - -<$list filter="[all[current]!is[shadow]]"> - -<<lingo NotShadow/Hint>> - -</$list> - -<$list filter="[all[current]is[shadow]]"> - -<<lingo Shadow/Hint>> - -<$list filter="[all[current]shadowsource[]]"> - -<$set name="pluginTiddler" value=<<currentTiddler>>> -<<lingo Shadow/Source>> -</$set> - -</$list> - -<$list filter="[all[current]is[shadow]is[tiddler]]"> - -<<lingo OverriddenShadow/Hint>> - -</$list> - - -</$list> -</$set> --
<$transclude tiddler="$:/core/ui/TiddlerFields"/> --
\define lingo-base() $:/language/TiddlerInfo/ -<$list filter="[list{!!title}]" emptyMessage=<<lingo List/Empty>> template="$:/core/ui/ListItemTemplate"/> --
\define lingo-base() $:/language/TiddlerInfo/ -<$list filter="[all[current]listed[]!is[system]]" emptyMessage=<<lingo Listed/Empty>> template="$:/core/ui/ListItemTemplate"/> --
\define lingo-base() $:/language/TiddlerInfo/ -<$list filter="[all[current]backlinks[]sort[title]]" emptyMessage=<<lingo References/Empty>> template="$:/core/ui/ListItemTemplate"> -</$list>-
\define lingo-base() $:/language/TiddlerInfo/ -<$list filter="[all[current]tagging[]]" emptyMessage=<<lingo Tagging/Empty>> template="$:/core/ui/ListItemTemplate"/> --
\define lingo-base() $:/language/TiddlerInfo/ -\define config-title() -$:/config/ViewToolbarButtons/Visibility/$(listItem)$ -\end -<$set name="tv-config-toolbar-icons" value="yes"> - -<$set name="tv-config-toolbar-text" value="yes"> - -<$set name="tv-config-toolbar-class" value=""> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"> - -<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"/> <$transclude tiddler=<<listItem>>/> <i class="tc-muted"><$transclude tiddler=<<listItem>> field="description"/></i> - -</$list> - -</$set> - -</$set> - -</$set> --
<$list filter="[[$:/state/sidebar]get[text]] +[else[yes]!match[no]]" variable="ignore"> -<$button set="$:/state/sidebar" setTo="no" tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class="tc-btn-invisible">{{$:/core/images/chevron-right}}</$button> -</$list> -<$list filter="[[$:/state/sidebar]get[text]] +[else[yes]match[no]]" variable="ignore"> -<$button set="$:/state/sidebar" setTo="yes" tooltip={{$:/language/Buttons/ShowSideBar/Hint}} aria-label={{$:/language/Buttons/ShowSideBar/Caption}} class="tc-btn-invisible">{{$:/core/images/chevron-left}}</$button> -</$list> --
\define lingo-base() $:/language/SideBar/ -<$button popup=<<qualify "$:/state/popup/tag">> class="tc-btn-invisible tc-untagged-label tc-tag-label"> -<<lingo Tags/Untagged/Caption>> -</$button> -<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" position="below"> -<div class="tc-drop-down"> -<$list filter="[untagged[]!is[system]] -[tags[]] +[sort[title]]" template="$:/core/ui/ListItemTemplate"/> -</div> -</$reveal> --
\define folded-state() -$:/state/folded/$(currentTiddler)$ -\end -\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]] -<$vars storyTiddler=<<currentTiddler>> tiddlerInfoState=<<qualify "$:/state/popup/tiddler-info">>><div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-view-frame [<currentTiddler>is[tiddler]then[tc-tiddler-exists]] [<currentTiddler>is[missing]!is[shadow]then[tc-tiddler-missing]] [<currentTiddler>is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [<currentTiddler>is[shadow]is[tiddler]then[tc-tiddler-overridden-shadow]] [<currentTiddler>is[system]then[tc-tiddler-system]] [{!!class}] [<currentTiddler>tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}><$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]" variable="listItem"><$transclude tiddler=<<listItem>>/></$list> -</div> -</$vars> --
<$reveal tag="div" class="tc-tiddler-body" type="nomatch" stateTitle=<<folded-state>> text="hide" retain="yes" animate="yes"> - -<$list filter="[all[current]!has[plugin-type]!field:hide-body[yes]]"> - -<$transclude> - -<$transclude tiddler="$:/language/MissingTiddler/Hint"/> - -</$transclude> - -</$list> - -</$reveal> --
\define lingo-base() $:/language/ClassicWarning/ -<$list filter="[all[current]type[text/x-tiddlywiki]]"> -<div class="tc-message-box"> - -<<lingo Hint>> - -<$button set="!!type" setTo="text/vnd.tiddlywiki"><<lingo Upgrade/Caption>></$button> - -</div> -</$list> --
\define lingo-base() $:/language/Import/ - -\define buttons() -<$button message="tm-delete-tiddler" param=<<currentTiddler>>><<lingo Listing/Cancel/Caption>></$button> -<$button message="tm-perform-import" param=<<currentTiddler>>><<lingo Listing/Import/Caption>></$button> -<<lingo Listing/Preview>> <$select tiddler="$:/state/importpreviewtype" default="$:/core/ui/ImportPreviews/Text"> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/ImportPreview]!has[draft.of]]"> -<option value=<<currentTiddler>>>{{!!caption}}</option> -</$list> -</$select> -\end - -<$list filter="[all[current]field:plugin-type[import]]"> - -<div class="tc-import"> - -<<lingo Listing/Hint>> - -<<buttons>> - -{{||$:/core/ui/ImportListing}} - -<<buttons>> - -</div> - -</$list> --
<$list filter="[all[current]has[plugin-type]] -[all[current]field:plugin-type[import]]"> -<$set name="plugin-type" value={{!!plugin-type}}> -<$set name="default-popup-state" value="yes"> -<$set name="qualified-state" value=<<qualify "$:/state/plugin-info">>> -{{||$:/core/ui/Components/plugin-info}} -</$set> -</$set> -</$set> -</$list> --
<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes"> -<div class="tc-tags-wrapper"><$list filter="[all[current]tags[]sort[title]]" template="$:/core/ui/TagTemplate" storyview="pop"/></div> -</$reveal> --
<!-- \whitespace trim -\define title-styles() -fill:$(foregroundColor)$; -\end -\define config-title() -$:/config/ViewToolbarButtons/Visibility/$(listItem)$ -\end -<div class="tc-tiddler-title"> -<div class="tc-titlebar"> -<span class="tc-tiddler-controls"> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<<config-title>> text="hide"><$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]"><$transclude tiddler=<<listItem>>/></$set></$reveal></$list> -</span> -<$set name="tv-wikilinks" value={{$:/config/Tiddlers/TitleLinks}}> -<$link> -<$set name="foregroundColor" value={{!!color}}> -<span class="tc-tiddler-title-icon" style=<<title-styles>>> -<$transclude tiddler={{!!icon}}> -<$transclude tiddler={{$:/config/DefaultTiddlerIcon}}/> -</$transclude> -</span> -</$set> -<$list filter="[all[current]removeprefix[$:/]]"> -<h2 class="tc-title" title={{$:/language/SystemTiddler/Tooltip}}> -<span class="tc-system-title-prefix">$:/</span><$text text=<<currentTiddler>>/> -</h2> -</$list> -<$list filter="[all[current]!prefix[$:/]]"> -<h2 class="tc-title"> -<$view field="title"/> -</h2> -</$list> -</$link> -</$set> -</div> - -<$reveal type="nomatch" text="" default="" state=<<tiddlerInfoState>> class="tc-tiddler-info tc-popup-handle" animate="yes" retain="yes"> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlerInfoSegment]!has[draft.of]] [[$:/core/ui/TiddlerInfo]]" variable="listItem"><$transclude tiddler=<<listItem>> mode="block"/></$list> - -</$reveal> -</div> --->-
<$reveal tag="div" type="nomatch" state="$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar" text="hide"> -<$reveal tag="div" type="nomatch" stateTitle=<<folded-state>> text="hide" default="show" retain="yes" animate="yes"> -<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class="tc-fold-banner"> -<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/> -{{$:/core/images/chevron-up}} -</$button> -</$reveal> -<$reveal tag="div" type="nomatch" stateTitle=<<folded-state>> text="show" default="show" retain="yes" animate="yes"> -<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class="tc-unfold-banner"> -<$action-sendmessage $message="tm-fold-tiddler" $param=<<currentTiddler>> foldedState=<<folded-state>>/> -{{$:/core/images/chevron-down}} -</$button> -</$reveal> -</$reveal> --
{{$:/SiteTitle}} --- {{$:/SiteSubtitle}}-
copincha-
AAABAAEAAAAAAAEAIABxrwEAFgAAAIlQTkcNChoKAAAADUlIRFIAAAJEAAACRAgGAAAA9+A7WgAAIABJREFUeJzsvXmYXOV95/s5S51aetNuJBAYCUkgFmFs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egvwZQdT0nUELoE6SVXRCE0yCCSBAEQRCEhseMOgBBEARBEISoEUEkCIIgCELDI4JIEARBEISGRwSRIAiCIAgNjwgiQRAEQRAaHhFEgiAIgiA0PCKIBEEQBEFoeEQQCYIgCILQ8IggEgRBEASh4fn/HN4ybG2tsBkAAAAASUVORK5CYII=-
The following tiddlers were imported: - -# [[images/repo]]-
yes-
es-ES-
768-
1366-
no-
file:///media/m0/COPINCHA/proyectos/jardines-digitales/copincha.org/copincha.html-
null-
/media/m0/COPINCHA/proyectos/jardines-digitales/copincha.org/copincha.html-
file:-
no-
$:/languages/en-GB-
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:-
This tiddler contains binary data-
advanced search-
Advanced search-
bold-
Apply bold formatting to selection-
cancel-
Discard changes to this tiddler-
clear-
Clear image to solid colour-
clone-
Clone this tiddler-
close-
Close this tiddler-
close all-
Close all tiddlers-
close others-
Close other tiddlers-
control panel-
Open control panel-
copy to clipboard-
Copy this text to the clipboard-
delete-
Delete this tiddler-
edit-
Edit this tiddler-
editor height-
Automatically adjust height to fit content-
Fixed height:-
Choose the height of the text editor-
encryption-
clear password-
Clear the password and save this wiki without encryption-
Set or clear a password for saving this wiki-
set password-
Set a password for saving this wiki with encryption-
excise-
Perform excision-
Macro name:-
Title of new tiddler:-
Replace excised text with:-
link-
macro-
transclusion-
Tag new tiddler with the title of this tiddler-
Warning: tiddler already exists-
Excise the selected text into a new tiddler-
export all-
Export all tiddlers-
export tiddler-
Export tiddler-
export tiddlers-
Export tiddlers-
fold tiddler-
fold-bar-
Optional bars to fold and unfold tiddlers-
Fold the body of this tiddler-
fold all tiddlers-
Fold the bodies of all opened tiddlers-
fold other tiddlers-
Fold the bodies of other opened tiddlers-
full-screen-
Enter or leave full-screen mode-
heading 1-
Apply heading level 1 formatting to lines containing selection-
heading 2-
Apply heading level 2 formatting to lines containing selection-
heading 3-
Apply heading level 3 formatting to lines containing selection-
heading 4-
Apply heading level 4 formatting to lines containing selection-
heading 5-
Apply heading level 5 formatting to lines containing selection-
heading 6-
Apply heading level 6 formatting to lines containing selection-
help-
Show help panel-
hide sidebar-
Hide sidebar-
home-
Open the default tiddlers-
import-
Import many types of file including text, image, TiddlyWiki or JSON-
info-
Show information for this tiddler-
italic-
Apply italic formatting to selection-
language-
Choose the user interface language-
line width-
Set line width for painting-
link-
Create wikitext link-
wikilink-
Wrap selection in square brackets-
bulleted list-
Apply bulleted list formatting to lines containing selection-
numbered list-
Apply numbered list formatting to lines containing selection-
tiddler manager-
Open tiddler manager-
monospaced block-
Apply monospaced block formatting to lines containing selection-
monospaced-
Apply monospaced character formatting to selection-
more-
More actions-
new here-
Create a new tiddler tagged with this one-
new image-
Create a new image tiddler-
new journal-
Create a new journal tiddler-
new journal here-
Create a new journal tiddler tagged with this one-
new Markdown tiddler-
Create a new Markdown tiddler-
new tiddler-
Create a new tiddler-
opacity-
Set painting opacity-
open in new window-
Open tiddler in new window-
paint colour-
Set painting colour-
palette-
Choose the colour palette-
permalink-
Set browser address bar to a direct link to this tiddler-
permaview-
Set browser address bar to a direct link to all the tiddlers in this story-
picture-
Insert picture-
preview-
Show preview pane-
preview type-
Choose preview type-
print page-
Print the current page-
quote-
Apply quoted text formatting to lines containing selection-
refresh-
Perform a full refresh of the wiki-
rotate left-
Rotate image left by 90 degrees-
ok-
Confirm changes to this tiddler-
save changes-
Save changes-
show sidebar-
Show sidebar-
Select the sidebar search field-
image size-
Height:-
Resize image-
Width:-
Set image size-
stamp-
Add your own-
Insert a preconfigured snippet of text-
Text of snippet. (Remember to add a descriptive title in the caption field).-
Name as shown in menu-
storyview-
Choose the story visualisation-
strikethrough-
Apply strikethrough formatting to selection-
subscript-
Apply subscript formatting to selection-
superscript-
Apply superscript formatting to selection-
tag manager-
Open tag manager-
theme-
Choose the display theme-
timestamps-
Choose whether modifications update timestamps-
timestamps are off-
Don't update timestamps when tiddlers are modified-
timestamps are on-
Update timestamps when tiddlers are modified-
Toggle the sidebar visibility-
transclusion-
Wrap selection in curly brackets-
underline-
Apply underline formatting to selection-
unfold tiddler-
Unfold the body of this tiddler-
unfold all tiddlers-
Unfold the bodies of all opened tiddlers-
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.-
upgrade-
close all-
Recent:-
Do you wish to discard changes to the tiddler "<$text text=<<title>>/>"?-
Do you wish to delete the tiddler "<$text text=<<title>>/>"?-
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 "<$text text=<<title>>/>"?-
Do you wish to overwrite the tiddler "<$text text=<<title>>/>"?-
Advanced-
Internal information about this TiddlyWiki-
Appearance-
Ways to customise the appearance of your TiddlyWiki.-
Animation duration-
Default focus field for new tiddlers-
Basics-
Use [[double square brackets]] for titles with spaces. Or you can choose to <$button set="$:/DefaultTiddlers" setTo="[list[$:/StoryList]]">retain story ordering</$button>-
Default tiddlers-
Choose which tiddlers are displayed at startup-
Hello! Current language:-
Tags for new journal tiddlers-
Text for new journal tiddlers-
Title of new journal tiddlers-
Tags for new tiddlers-
Title of new tiddlers-
Number of overridden shadow tiddlers-
Number of shadow tiddlers-
Subtitle-
Number of system tiddlers-
Number of tags-
Number of tiddlers-
Title of this ~TiddlyWiki-
Username for signing edits-
~TiddlyWiki version-
Editor Types-
Editor-
These tiddlers determine which editor is used to edit specific tiddler types.-
Type-
Info-
Information about this TiddlyWiki-
add shortcut-
Type shortcut here-
Keyboard Shortcuts-
Manage keyboard shortcut assignments-
No keyboard shortcuts assigned-
All platforms-
Linux platform only-
Macintosh platform only-
Non-Linux platforms only-
Non-Macintosh platforms only-
Non-Windows platforms only-
Windows platform only-
remove keyboard shortcut-
Loaded Modules-
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.-
Palette-
clone-
It is recommended that you clone this shadow palette before editing it-
delete this entry from the current palette-
Show color names that are not part of the current palette-
Editing-
This shadow palette has been modified-
reset-
hide editor-
Current palette:-
show editor-
Block Parse Rules-
Parsing-
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 <$text text="TiddlyWiki"/> from functioning correctly. Use [[safe mode|https://tiddlywiki.com/#SafeMode]] to restore normal operation.-
Inline Parse Rules-
Pragma Parse Rules-
Get more plugins-
Install plugins from the official library-
This plugin is already installed at version <$text text=<<installedVersion>>/>-
Also requires:-
Plugins-
close plugin library-
disable-
Disable this plugin when reloading page-
(disabled)-
downgrade-
None-
enable-
Enable this plugin when reloading page-
install-
Currently installed plugins:-
Languages-
Language pack plugins-
No ''"<$text text=<<currentTab>>/>"'' found-
This plugin is not currently installed-
open plugin library-
Plugins-
Plugins-
(requires reload)-
reinstall-
With <<count>> sub-plugins available-
Themes-
Theme plugins-
update-
Updates-
Available updates to installed plugins-
Update <<update-count>> plugins-
Saving-
Permit automatic saving for the download saver-
Enable Autosave for Download Saver-
Download Saver-
These settings apply to the HTML5-compatible download saver-
General-
These settings apply to all the loaded savers-
Target branch for saving-
Saved by TiddlyWiki-
These settings are only used when saving to <<service-name>>-
Filename of target file (e.g. `index.html`)-
Gitea Saver-
Personal access token for API (via Gitea’s web interface: `Settings | Applications | Generate New Token`)-
~GitHub Saver-
Password, OAUTH token, or personal access token (see [[GitHub help page|https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line]] for details)-
~GitLab Saver-
Personal access token for API (see [[GitLab help page|https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html]] for details)-
Path to target file (e.g. `/wiki/`)-
Target repository (e.g. `Jermolene/TiddlyWiki5`)-
Server API URL-
Username-
Settings used for saving the entire TiddlyWiki as a single file via a saver module-
Advanced Settings-
Backup Directory-
Backups-
~TiddlySpot Saver-
These settings are only used when saving to http://tiddlyspot.com or a compatible remote server-
Upload Filename-
~TiddlySpot-
//The server URL defaults to `http://<wikiname>.tiddlyspot.com/store.cgi` and can be changed to use a custom server address, e.g. `http://example.com/store.php`.//-
Password-
Server URL-
Upload Directory-
Wiki Name-
Autosave-
Do not save changes automatically-
Save changes automatically-
Attempt to automatically save changes during editing when using a supporting saver-
Camel Case Wiki Links-
Enable automatic ~CamelCase linking-
You can globally disable automatic linking of ~CamelCase phrases. Requires reload to take effect-
Settings-
Default More Sidebar Tab-
Specify which More sidebar tab is displayed by default-
Default Sidebar Tab-
Specify which sidebar tab is displayed by default-
Editor Toolbar-
Show editor toolbar-
Enable or disable the editor toolbar:-
These settings let you customise the behaviour of TiddlyWiki.-
Tiddler Info Panel Mode-
Control when the tiddler info panel closes:-
Tiddler info panel closes automatically-
Tiddler info panel stays open until explicitly closed-
Tiddler Opening Behaviour-
Navigation from //within// the story river-
Open above the current tiddler-
Open at the bottom of the story river-
Open at the top of the story river-
Open below the current tiddler-
Navigation from //outside// the story river-
Wiki Links-
Enable links to missing tiddlers-
Choose whether to link to tiddlers that do not exist yet-
Navigation Address Bar-
Behaviour of the browser address bar when navigating to a tiddler:-
Do not update the address bar-
Include the target tiddler-
Include the target tiddler and the current story sequence-
Navigation History-
Update browser history when navigating to a tiddler:-
Do not update history-
Update history-
Permalink/permaview Mode-
Copy permalink/permaview URL to clipboard-
Choose how permalink/permaview is handled:-
Update address bar with permalink/permaview URL-
Performance Instrumentation-
Enable performance instrumentation-
Displays performance statistics in the browser developer console. Requires reload to take effect-
Tiddler Titles-
Optionally display tiddler titles as links-
Do not display tiddler titles as links-
Display tiddler titles as links-
Toolbar Buttons-
Default toolbar button appearance:-
Include icon-
Include text-
Toolbar Button Style-
Choose the style for toolbar buttons:-
Borderless-
Boxed-
Rounded-
Story View-
Current view:-
Stylesheets-
Expand All-
This is the rendered CSS of the current stylesheet tiddlers tagged with <<tag "$:/tags/Stylesheet">>-
Restore-
Theme-
Current theme:-
Tiddler Fields-
This is the full set of TiddlerFields in use in this wiki (including system tiddlers but excluding shadow tiddlers).-
Toolbars-
Editor Toolbar-
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-
Edit Toolbar-
Choose which buttons are displayed for tiddlers in edit mode. Drag and drop to change the ordering-
Select which toolbar buttons are displayed-
Page Toolbar-
Choose which buttons are displayed on the main page toolbar. Drag and drop to change the ordering-
View Toolbar-
Choose which buttons are displayed for tiddlers in view mode. Drag and drop to change the ordering-
Download full wiki-
count-
st-
th-
th-
th-
th-
th-
th-
th-
th-
th-
th-
nd-
th-
st-
nd-
rd-
th-
th-
th-
th-
th-
th-
rd-
th-
st-
th-
th-
th-
th-
th-
th-
Sunday-
Monday-
Tuesday-
Wednesday-
Thursday-
Friday-
Saturday-
January-
October-
November-
December-
February-
March-
April-
May-
June-
July-
August-
September-
am-
pm-
Sun-
Mon-
Tue-
Wed-
Thu-
Fri-
Sat-
Jan-
Oct-
Nov-
Dec-
Feb-
Mar-
Apr-
May-
Jun-
Jul-
Aug-
Sep-
New Tiddler-
<<diff-count>> differences-
The full URI of an external image tiddler-
If present, indicates that the tiddler text field must be loaded from the server-
The name of the bag from which a tiddler came-
The text to be displayed on a tab or button-
The CSS color value associated with a tiddler-
The name of the component responsible for an [[alert tiddler|AlertMechanism]]-
The date a tiddler was created-
The name of the person who created a tiddler-
Used to cache the top tiddler in a [[history list|HistoryMechanism]]-
For a plugin, lists the dependent plugin titles-
The descriptive text for a plugin, or a modal dialogue-
For draft tiddlers, contains the title of the tiddler of which this is a draft-
For draft tiddlers, contains the proposed new title of the tiddler-
The footer text for a wizard-
The view template will hide bodies of tiddlers if set to: ''yes''-
The title of the tiddler containing the icon associated with a tiddler-
Indicates that a tiddler should be saved as a JavaScript library if set to: ''yes''-
An ordered list of tiddler titles associated with a tiddler-
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-
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-
The date and time at which a tiddler was last modified-
The tiddler title associated with the person who last modified a tiddler-
The human readable name associated with a plugin tiddler-
A numerical value indicating the priority of a plugin tiddler-
The type of plugin in a plugin tiddler-
Date of a TiddlyWiki release-
The revision of the tiddler held at the server-
The source URL associated with a tiddler-
The subtitle text for a wizard-
A list of tags associated with a tiddler-
The body text of a tiddler-
If present, throttles refreshes of this tiddler-
The unique name of a tiddler-
Suppresses the tiddler's link in a Table of Contents tree if set to: ''no''-
The content type of a tiddler-
Version information for a plugin-
A sub-operator for the ''all'' filter operator.-
Animations that may be used with the RevealWidget.-
Defines how requests are authenticated by the built-in HTTP server.-
A bitmap editor toolbar operation.-
Commands that can be executed under Node.js.-
Data to be inserted into `$tw.config`.-
Individual filter operator methods.-
Global data to be inserted into `$tw`.-
Publishes system information via the [[$:/temp/info-plugin]] pseudo-plugin.-
Operands for the ''is'' filter operator.-
Generic module type for general purpose JavaScript modules.-
JavaScript macro definitions.-
Parsers for different content types.-
Defines how individual URL patterns are handled by the built-in HTTP server.-
Savers handle different methods for saving files from the browser.-
Startup functions.-
Story views customise the animation and behaviour of list widgets.-
A text editor toolbar operation.-
Converts different content types into tiddlers.-
Defines the behaviour of an individual tiddler field.-
Adds methods to the `$tw.Tiddler` prototype.-
Applies upgrade processing to tiddlers during an upgrade/import.-
Adds methods to `$tw.utils`.-
Adds Node.js-specific methods to `$tw.utils`.-
Widgets encapsulate DOM rendering and refreshing.-
Adds methods to `$tw.Wiki`.-
Individual parser rules for the main WikiText parser.-
Alert background-
Alert border-
Alert highlight-
Alert muted foreground-
General background-
Blockquote bar-
Default button background-
Default button border-
Default button foreground-
Code background-
Code border-
Code foreground-
Unsaved changes indicator-
Download button background-
Download button foreground-
Dragger background-
Dragger foreground-
Dropdown background-
Dropdown border-
Dropdown tab background-
Dropdown tab background for selected tabs-
Dropzone background-
External link background-
External link background hover-
External link background visited-
External link foreground-
External link foreground hover-
External link foreground visited-
General foreground-
Menu bar background-
Menu bar foreground-
Message box background-
Message box border-
Message box foreground-
Modal backdrop-
Modal background-
Modal border-
Modal footer background-
Modal footer border-
Modal header border-
General muted foreground-
Notification background-
Notification border-
Page background-
Preformatted code background-
Preformatted code border-
General primary-
`<select>` element background-
`<select>` element text-
Sidebar button foreground-
Sidebar controls foreground-
Sidebar controls foreground hover-
Sidebar foreground-
Sidebar foreground shadow-
Sidebar muted foreground-
Sidebar muted foreground hover-
Sidebar tab background-
Sidebar tab background for selected tabs-
Sidebar tab border-
Sidebar tab border for selected tabs-
Sidebar tab divider-
Sidebar tab foreground-
Sidebar tab foreground for selected tabs-
Sidebar tiddler link foreground-
Sidebar tiddler link foreground hover-
Site title foreground-
Static alert foreground-
Tab background-
Tab background for selected tabs-
Tab border-
Tab border for selected tabs-
Tab divider-
Tab foreground-
Tab foreground for selected tabs-
Table border-
Table footer background-
Table header background-
Tag background-
Tag foreground-
Tiddler background-
Tiddler border-
Tiddler controls foreground-
Tiddler controls foreground hover-
Tiddler controls foreground for selected controls-
Tiddler editor background-
Tiddler editor border-
Tiddler editor border image-
Tiddler editor background for even fields-
Tiddler editor background for odd fields-
Tiddler info panel background-
Tiddler info panel border-
Tiddler info panel tab background-
Tiddler link background-
Tiddler link foreground-
Tiddler subtitle foreground-
Tiddler title foreground-
Toolbar 'cancel' button foreground-
Toolbar 'close' button foreground-
Toolbar 'delete' button foreground-
Toolbar 'done' button foreground-
Toolbar 'edit' button foreground-
Toolbar 'info' button foreground-
Toolbar 'new tiddler' button foreground-
Toolbar 'options' button foreground-
Toolbar 'save' button foreground-
Untagged pill background-
Very muted foreground-
Drop here (or use the 'Escape' key to cancel)-
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-
Type the text for this tiddler-
output-
field list-
Show field list-
remove field-
Remove field-
add-
Add the new field to the tiddler-
System fields-
User fields-
field name-
Add a new field:-
field value-
This is a modified shadow tiddler. You can revert to the default version in the plugin <<pluginLink>> by deleting this tiddler-
This is a shadow tiddler. Any changes you make will override the default version from the plugin <<pluginLink>>-
add-
add tag-
tag name-
tag list-
Show tag list-
Warning: avoid using any of the characters <<bad-chars>> in tiddler titles-
Target tiddler already exists-
The following references to this tiddler will not be automatically updated:-
Update ''<$text text=<<fromTitle>>/>'' to ''<$text text=<<toTitle>>/>'' in the //tags// and //list// fields of other tiddlers-
delete content type-
Delete content type-
content type list-
Show content type list-
content type-
Type:-
Cancel-
Do you wish to clear the password? This will remove the encryption applied when saving this wiki-
Password-
Passwords do not match-
Set a new password for this TiddlyWiki-
Repeat password-
Set password-
Username-
Error-
File changed on server-
Filter error-
Syntax error in filter expression-
Filter Error: Unknown operand for the 'is' filter operator-
Error loading plugin library-
`<h2>''Network Error''</h2>It looks like the connection to the server has been lost. This may indicate a problem with your network connection. Please attempt to restore network connectivity before continuing.<br><br>''Any unsaved changes will be automatically synchronised when connectivity is restored''.`-
Recursive transclusion error in transclude widget-
Error retrieving skinny tiddler list-
Error saving to TWEdit-
Error while saving-
XMLHttpRequest error code-
CSV file-
JSON file-
Static HTML-
".tid" file-
All tags except system tags-
All tiddlers except system tiddlers-
Draft tiddlers-
Missing tiddlers-
Orphan tiddlers-
Overridden shadow tiddlers-
Recently modified tiddlers, including system tiddlers-
Recently modified tiddlers-
Tiddlers modified since the wiki was loaded-
Shadow tiddlers-
Tiddlers in the story river, excluding <$text text="$:/AdvancedSearch"/>-
System tags-
System tiddlers-
Non wiki-text tiddlers-
Build the specified build targets for the current wiki. If no build targets are specified then all available targets will be built. - -``` ---build <target> [<target> ...] -``` - -Build targets are defined in the `tiddlywiki.info` file of a wiki folder. - --
Clear the password for subsequent crypto operations - -``` ---clearpassword -``` --
\define commandTitle() -$:/language/Help/$(command)$ -\end -``` -usage: tiddlywiki [<wikifolder>] [--<command> [<args>...]...] -``` - -Available commands: - -<ul> -<$list filter="[commands[]sort[title]]" variable="command"> -<li><$link to=<<commandTitle>>><$macrocall $name="command" $type="text/plain" $output="text/plain"/></$link>: <$transclude tiddler=<<commandTitle>> field="description"/></li> -</$list> -</ul> - -To get detailed help on a command: - -``` -tiddlywiki --help <command> -``` --
<<.from-version "5.1.20">> Deletes a group of tiddlers identified by a filter. - -``` ---deletetiddlers <filter> -``` --
Lists the names and descriptions of the available editions. You can create a new wiki of a specified edition with the `--init` command. - -``` ---editions -``` --
Fetch one or more files over HTTP/HTTPS, and import the tiddlers matching a filter, optionally transforming the incoming titles. - -``` ---fetch file <url> <import-filter> <transform-filter> ---fetch files <url-filter> <import-filter> <transform-filter> ---fetch raw-file <url> <transform-filter> ---fetch raw-files <url-filter> <transform-filter> -``` - -The "file" and "files" 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 "raw-file" and "raw-files" variants fetch the specified files and then store the raw file data in tiddlers, without applying the import logic. - -With the "file" and "raw-file" variants only a single file is fetched and the first parameter is the URL of the file to read. - -With the "files" and "raw-files" 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 "remote-server" that have a field "url" the filter `[tag[remote-server]get[url]]` will retrieve all the available URLs. - -For the "file" and "files" variants, the `<import-filter>` parameter specifies a filter determining which tiddlers are imported. It defaults to `[all[tiddlers]]` if not provided. - -For all variants, the `<transform-filter>` parameter specifies an optional filter that transforms the titles of the imported tiddlers. For example, `[addprefix[$:/myimports/]]` would add the prefix `$:/myimports/` to each title. - -Preceding the `--fetch` command with `--verbose` will output progress information during the import. - -Note that TiddlyWiki will not fetch an older version of an already loaded plugin. - -The following example retrieves all the non-system tiddlers from https://tiddlywiki.com and saves them to a JSON file: - -``` -tiddlywiki --verbose --fetch file "https://tiddlywiki.com/" "[!is[system]]" "" --rendertiddler "$:/core/templates/exporters/JsonFile" output.json text/plain "" exportFilter "[!is[system]]" -``` - -The following example retrieves the "favicon" file from tiddlywiki.com and saves it in a file called "output.ico". Note that the intermediate tiddler "Icon Tiddler" is quoted in the "--fetch" command because it is being used as a transformation filter to replace the default title, while there are no quotes for the "--savetiddler" command because it is being used directly as a title. - -``` -tiddlywiki --verbose --fetch raw-file "https://tiddlywiki.com/favicon.ico" "[[Icon Tiddler]]" --savetiddler "Icon Tiddler" output.ico -``` - --
Displays help text for a command: - -``` ---help [<command>] -``` - -If the command name is omitted then a list of available commands is displayed. --
Import tiddlers from TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` or other local files. The deserializer must be explicitly specified, unlike the `load` command which infers the deserializer from the file extension. - -``` ---import <filepath> <deserializer> [<title>] [<encoding>] -``` - -The deserializers in the core include: - -* application/javascript -* application/json -* application/x-tiddler -* application/x-tiddler-html-div -* application/x-tiddlers -* text/html -* text/plain - -The title of the imported tiddler defaults to the filename. - -The encoding defaults to "utf8", but can be "base64" for importing binary files. - -Note that TiddlyWiki will not import an older version of an already loaded plugin. --
Initialise an empty [[WikiFolder|WikiFolders]] with a copy of the specified edition. - -``` ---init <edition> [<edition> ...] -``` - -For example: - -``` -tiddlywiki ./MyWikiFolder --init empty -``` - -Note: - -* The wiki folder directory will be created if necessary -* The "edition" defaults to ''empty'' -* The init command will fail if the wiki folder is not empty -* The init command removes any `includeWikis` definitions in the edition's `tiddlywiki.info` file -* When multiple editions are specified, editions initialised later will overwrite any files shared with earlier editions (so, the final `tiddlywiki.info` file will be copied from the last edition) -* `--editions` returns a list of available editions --
Serves a wiki over HTTP. - -The listen command uses NamedCommandParameters: - -``` ---listen [<name>=<value>]... -``` - -All parameters are optional with safe defaults, and can be specified in any order. The recognised parameters are: - -* ''host'' - optional hostname to serve from (defaults to "127.0.0.1" aka "localhost") -* ''path-prefix'' - optional prefix for paths -* ''port'' - port number on which to listen; non-numeric values are interpreted as a system environment variable from which the port number is extracted (defaults to "8080") -* ''credentials'' - pathname of credentials CSV file (relative to wiki folder) -* ''anon-username'' - the username for signing edits for anonymous users -* ''username'' - optional username for basic authentication -* ''password'' - optional password for basic authentication -* ''authenticated-user-header'' - optional name of header to be used for trusted authentication -* ''readers'' - comma separated list of principals allowed to read from this wiki -* ''writers'' - comma separated list of principals allowed to write to this wiki -* ''csrf-disable'' - set to "yes" to disable CSRF checks (defaults to "no") -* ''root-tiddler'' - the tiddler to serve at the root (defaults to "$:/core/save/all") -* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to "text/plain") -* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to "text/html") -* ''tls-cert'' - pathname of TLS certificate file (relative to wiki folder) -* ''tls-key'' - pathname of TLS key file (relative to wiki folder) -* ''debug-level'' - optional debug level; set to "debug" to view request details (defaults to "none") -* ''gzip'' - set to "yes" to enable gzip compression for some http endpoints (defaults to "no") - -For information on opening up your instance to the entire local network, and possible security concerns, see the WebServer tiddler at TiddlyWiki.com. - --
Load tiddlers from TiddlyWiki (`.html`), `.tiddler`, `.tid`, `.json` or other local files. The processing applied to incoming files is determined by the file extension. Use the alternative `import` command if you need to specify the deserializer and encoding explicitly. - -``` ---load <filepath> [noerror] ---load <dirpath> [noerror] -``` - -By default, the load command raises an error if no tiddlers are found. The error can be suppressed by providing the optional "noerror" parameter. - -To load tiddlers from an encrypted TiddlyWiki file you should first specify the password with the PasswordCommand. For example: - -``` -tiddlywiki ./MyWiki --password pa55w0rd --load my_encrypted_wiki.html -``` - -Note that TiddlyWiki will not load an older version of an already loaded plugin. --
Constructs the `$:/UpgradeLibrary` tiddler for the upgrade process. - -The upgrade library is formatted as an ordinary plugin tiddler with the plugin type `library`. It contains a copy of each of the plugins, themes and language packs available within the TiddlyWiki5 repository. - -This command is intended for internal use; it is only relevant to users constructing a custom upgrade procedure. - -``` ---makelibrary <title> -``` - -The title argument defaults to `$:/UpgradeLibrary`. --
No such help item-
Sets the base output directory for subsequent commands. The default output directory is the `output` subdirectory of the edition directory. - -``` ---output <pathname> -``` - -If the specified pathname is relative then it is resolved relative to the current working directory. For example `--output .` sets the output directory to the current working directory. - --
Set a password for subsequent crypto operations - -``` ---password <password> -``` - -''Note'': This should not be used for serving TiddlyWiki with password protection. Instead, see the password option under the [[ServerCommand]]. --
Render individual tiddlers identified by a filter and save the results to the specified files. - -Optionally, the title of a template tiddler can be specified. In this case, instead of directly rendering each tiddler, the template tiddler is rendered with the "currentTiddler" variable set to the title of the tiddler that is being rendered. - -A name and value for an additional variable may optionally also be specified. - -``` ---render <tiddler-filter> [<filename-filter>] [<render-type>] [<template>] [<name>] [<value>] -``` - -* ''tiddler-filter'': A filter identifying the tiddler(s) to be rendered -* ''filename-filter'': Optional filter transforming tiddler titles into pathnames. If omitted, defaults to `[is[tiddler]addsuffix[.html]]`, which uses the unchanged tiddler title as the filename -* ''render-type'': Optional render type: `text/html` (the default) returns the full HTML text and `text/plain` just returns the text content (ie it ignores HTML tags and other unprintable material) -* ''template'': Optional template through which each tiddler is rendered -* ''name'': Name of optional variable -* ''value'': Value of optional variable - -By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory. - -Notes: - -* The output directory is not cleared of any existing files -* Any missing directories in the path to the filename are automatically created. -* When referring to a tiddler with spaces in its title, take care to use both the quotes required by your shell and also TiddlyWiki's double square brackets : `--render "[[Motovun Jack.jpg]]"` -* The filename filter is evaluated with the selected items being set to the title of the tiddler currently being rendered, allowing the title to be used as the basis for computing the filename. For example `[encodeuricomponent[]addprefix[static/]]` applies URI encoding to each title, and then adds the prefix `static/` -* The `--render` command is a more flexible replacement for both the `--rendertiddler` and `--rendertiddlers` commands, which are deprecated - -Examples: - -* `--render "[!is[system]]" "[encodeuricomponent[]addprefix[tiddlers/]addsuffix[.html]]"` -- renders all non-system tiddlers as files in the subdirectory "tiddlers" with URL-encoded titles and the extension HTML - --
(Note: The `--rendertiddler` command is deprecated in favour of the new, more flexible `--render` command) - -Render an individual tiddler as a specified ContentType, defaulting to `text/html` and save it to the specified filename. - -Optionally the title of a template tiddler can be specified, in which case the template tiddler is rendered with the "currentTiddler" variable set to the tiddler that is being rendered (the first parameter value). - -A name and value for an additional variable may optionally also be specified. - -``` ---rendertiddler <title> <filename> [<type>] [<template>] [<name>] [<value>] -``` - -By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory. - -Any missing directories in the path to the filename are automatically created. - -For example, the following command saves all tiddlers matching the filter `[tag[done]]` to a JSON file titled `output.json` by employing the core template `$:/core/templates/exporters/JsonFile`. - -``` ---rendertiddler "$:/core/templates/exporters/JsonFile" output.json text/plain "" exportFilter "[tag[done]]" -``` --
(Note: The `--rendertiddlers` command is deprecated in favour of the new, more flexible `--render` command) - -Render a set of tiddlers matching a filter to separate files of a specified ContentType (defaults to `text/html`) and extension (defaults to `.html`). - -``` ---rendertiddlers <filter> <template> <pathname> [<type>] [<extension>] ["noclean"] -``` - -For example: - -``` ---rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html ./static text/plain -``` - -By default, the pathname is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory. - -Any files in the target directory are deleted unless the ''noclean'' flag is specified. The target directory is recursively created if it is missing. --
Saves individual tiddlers identified by a filter in their raw text or binary format to the specified files. - -``` ---save <tiddler-filter> <filename-filter> -``` - -* ''tiddler-filter'': A filter identifying the tiddler(s) to be saved -* ''filename-filter'': Optional filter transforming tiddler titles into pathnames. If omitted, defaults to `[is[tiddler]]`, which uses the unchanged tiddler title as the filename - -By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory. - -Notes: - -* The output directory is not cleared of any existing files -* Any missing directories in the path to the filename are automatically created. -* When saving a tiddler with spaces in its title, take care to use both the quotes required by your shell and also TiddlyWiki's double square brackets : `--save "[[Motovun Jack.jpg]]"` -* The filename filter is evaluated with the selected items being set to the title of the tiddler currently being saved, allowing the title to be used as the basis for computing the filename. For example `[encodeuricomponent[]addprefix[static/]]` applies URI encoding to each title, and then adds the prefix `static/` -* The `--save` command is a more flexible replacement for both the `--savetiddler` and `--savetiddlers` commands, which are deprecated - -Examples: - -* `--save "[!is[system]is[image]]" "[encodeuricomponent[]addprefix[tiddlers/]]"` -- saves all non-system image tiddlers as files in the subdirectory "tiddlers" with URL-encoded titles --
(Note: The `--savetiddler` command is deprecated in favour of the new, more flexible `--save` command) - -Saves an individual tiddler in its raw text or binary format to the specified filename. - -``` ---savetiddler <title> <filename> -``` - -By default, the filename is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory. - -Any missing directories in the path to the filename are automatically created. --
(Note: The `--savetiddlers` command is deprecated in favour of the new, more flexible `--save` command) - -Saves a group of tiddlers in their raw text or binary format to the specified directory. - -``` ---savetiddlers <filter> <pathname> ["noclean"] -``` - -By default, the pathname is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory. - -The output directory is cleared of existing files before saving the specified files. The deletion can be disabled by specifying the ''noclean'' flag. - -Any missing directories in the pathname are automatically created. --
<<.from-version "5.1.20">> Saves the current wiki as a wiki folder, including tiddlers, plugins and configuration: - -``` ---savewikifolder <wikifolderpath> [<filter>] -``` - -* The target wiki folder must be empty or non-existent -* The filter specifies which tiddlers should be included. It is optional, defaulting to `[all[tiddlers]]` -* Plugins from the official plugin library are replaced with references to those plugins in the `tiddlywiki.info` file -* Custom plugins are unpacked into their own folder - -A common usage is to convert a TiddlyWiki HTML file into a wiki folder: - -``` -tiddlywiki --load ./mywiki.html --savewikifolder ./mywikifolder -``` --
Legacy command to serve a wiki over HTTP. - -``` ---server <port> <root-tiddler> <root-render-type> <root-serve-type> <username> <password> <host> <path-prefix> <debug-level> -``` - -The parameters are: - -* ''port'' - port number on which to listen; non-numeric values are interpreted as a system environment variable from which the port number is extracted (defaults to "8080") -* ''root-tiddler'' - the tiddler to serve at the root (defaults to "$:/core/save/all") -* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to "text/plain") -* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to "text/html") -* ''username'' - the default username for signing edits -* ''password'' - optional password for basic authentication -* ''host'' - optional hostname to serve from (defaults to "127.0.0.1" aka "localhost") -* ''path-prefix'' - optional prefix for paths -* ''debug-level'' - optional debug level; set to "debug" to view request details (defaults to "none") - -If the password parameter is specified then the browser will prompt the user for the username and password. Note that the password is transmitted in plain text so this implementation should only be used on a trusted network or over HTTPS. - -For example: - -``` ---server 8080 $:/core/save/all text/plain text/html MyUserName passw0rd -``` - -The username and password can be specified as empty strings if you need to set the hostname or pathprefix and don't want to require a password. - - -``` ---server 8080 $:/core/save/all text/plain text/html "" "" 192.168.0.245 -``` - -Using an address like this exposes your system to the local network. For information on opening up your instance to the entire local network, and possible security concerns, see the WebServer tiddler at TiddlyWiki.com. - -To run multiple TiddlyWiki servers at the same time you'll need to put each one on a different port. It can be useful to use an environment variable to pass the port number to the Node.js process. This example references an environment variable called "MY_PORT_NUMBER": - -``` ---server MY_PORT_NUMBER $:/core/save/all text/plain text/html MyUserName passw0rd -``` --
//Note that this command is experimental and may change or be replaced before being finalised// - -Sets the specified field of a group of tiddlers to the result of wikifying a template tiddler with the `currentTiddler` variable set to the tiddler. - -``` ---setfield <filter> <fieldname> <templatetitle> <rendertype> -``` - -The parameters are: - -* ''filter'' - filter identifying the tiddlers to be affected -* ''fieldname'' - the field to modify (defaults to "text") -* ''templatetitle'' - the tiddler to wikify into the specified field. If blank or missing then the specified field is deleted -* ''rendertype'' - the text type to render (defaults to "text/plain"; "text/html" can be used to include HTML tags) --
Extract the payload tiddlers from a plugin, creating them as ordinary tiddlers: - -``` ---unpackplugin <title> -``` --
Triggers verbose output, useful for debugging - -``` ---verbose -``` --
Displays the version number of TiddlyWiki. - -``` ---version -``` --
The following tiddlers were imported:-
Cancel-
These tiddlers are ready to import:-
Import-
Preview:-
Diff-
Diff (Fields)-
Fields-
Text-
Text (Raw)-
Select-
Status-
Title-
Blocked incompatible or obsolete plugin-
Blocked plugin (due to incoming <<incoming>> being older than existing <<existing>>)-
Upgraded plugin from <<incoming>> to <<upgraded>>-
Blocked temporary state tiddler-
You are about to import a tiddler that will overwrite a core module tiddler. This is not recommended as it may make the system unstable-
Blocked system tiddler-
Core module tiddler-
Migrated theme tweak from <$text text=<<from>>/>-
Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser-
Internal JavaScript Error-
Illegal characters in field name "<$text text=<<fieldName>>/>". Fields can only contain lowercase letters, digits and the characters underscore (`_`), hyphen (`-`) and period (`.`)-
<p>Trying to load external content from ''<$text text={{!!_canonical_uri}}/>''</p><p>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</p>-
Login to TiddlySpace-
(none)-
Filter by tag:-
Reverse order-
Search-
Search:-
tags-
tiddlers-
Show:-
Sort by:-
Colour-
Fields-
Icon-
(none)-
Raw text-
Tags-
Tools-
Wikified text-
Missing tiddler "<$text text=<<currentTiddler>>/>" -- click {{||$:/core/ui/Buttons/edit}} to create-
Your browser only supports manual saving. - -To save your modified wiki, right click on the download link below and select "Download file" or "Save file", and then choose the folder and filename. - -//You can marginally speed things up by clicking the link with the control key (Windows) or the options/alt key (Mac OS X). You will not be prompted for the folder or filename, but your browser is likely to give it an unrecognisable name -- you may need to rename the file to include an `.html` extension before you can do anything useful with it.// - -On smartphones that do not allow files to be downloaded you can instead bookmark the link, and then sync your bookmarks to a desktop computer from where the wiki can be saved normally. --
Your changes to this wiki need to be saved as a ~TiddlyWiki HTML file. - -!!! Desktop browsers - -# Select ''Save As'' from the ''File'' menu -# Choose a filename and location -#* Some browsers also require you to explicitly specify the file saving format as ''Webpage, HTML only'' or similar -# Close this tab - -!!! Smartphone browsers - -# Create a bookmark to this page -#* If you've got iCloud or Google Sync set up then the bookmark will automatically sync to your desktop where you can open it and save it as above -# Close this tab - -//If you open the bookmark again in Mobile Safari you will see this message again. If you want to go ahead and use the file, just click the ''close'' button below// --
No-
Failed to copy to clipboard!-
Copied to clipboard!-
Saved wiki-
Starting to save wiki-
Official ~TiddlyWiki Plugin Library-
The official ~TiddlyWiki plugin library at tiddlywiki.com. Plugins, themes and language packs are maintained by the core team.-
Please save {{$:/core/ui/Buttons/save-wiki}} and reload {{$:/core/ui/Buttons/refresh}} to allow changes to ~JavaScript plugins to take effect-
DDth MMM YYYY-
<<period>> days from now-
<<period>> hours from now-
<<period>> minutes from now-
<<period>> months from now-
1 second from now-
<<period>> seconds from now-
<<period>> years from now-
<<period>> days ago-
<<period>> hours ago-
<<period>> minutes ago-
<<period>> months ago-
1 second ago-
<<period>> seconds ago-
<<period>> years ago-
List-
Filter-
Search via a [[filter expression|https://tiddlywiki.com/static/Filters.html]]-
//<small><<resultCount>> matches</small>//-
//<small><<resultCount>> matches</small>//-
All matches:-
Title matches:-
Search-
Search text too short-
Shadows-
Search for shadow tiddlers-
//<small><<resultCount>> matches</small>//-
Standard-
Search for standard tiddlers-
//<small><<resultCount>> matches</small>//-
System-
Search for system tiddlers-
//<small><<resultCount>> matches</small>//-
All-
Contents-
Drafts-
Explorer-
Missing-
More-
Open-
Orphans-
Recent-
Shadows-
System-
Tags-
untagged-
Tools-
Types-
<<list-links "[tag[task]sort[title]]">> --
\define macroName(param1:"default value",param2) -Text of the macro -\end --
|! |!Alpha |!Beta |!Gamma |!Delta | -|!One | | | | | -|!Two | | | | | -|!Three | | | | | --
<div class="tc-table-of-contents"> - -<<toc-selective-expandable 'TableOfContents'>> - -</div>-
This is a system tiddler-
Include system tiddlers-
Colour-
Count-
Icon-
None-
Info-
Tag-
Sizes-
Font size for tiddler body-
Line height for tiddler body-
Font size-
Line height-
Sidebar breakpoint-
the minimum page width at which the story<br>river and sidebar will appear side by side-
Sidebar width-
the width of the sidebar in fluid-fixed layout-
Story left position-
how far the left margin of the story river<br>(tiddler area) is from the left of the page-
Story right-
how far the left margin of the sidebar <br>is from the left of the page-
Story top position-
how far the top margin of the story river<br>is from the top of the page-
Story width-
the overall width of the story river-
Tiddler width-
within the story river-
Options-
Wrap long lines in code blocks-
Sidebar layout-
Fixed story, fluid sidebar-
Fluid story, fixed sidebar-
Sticky titles-
Causes tiddler titles to "stick" to the top of the browser window-
Settings-
Page background image-
Page background image attachment-
Fixed to window-
Scroll with tiddlers-
Page background image size-
Auto-
Contain-
Cover-
Code font family-
Editor font family-
Font family-
Theme Tweaks-
You can tweak certain aspects of the ''Vanilla'' theme.-
DDth MMM YYYY at hh12:0mmam-
Advanced-
none-
Plugin Details-
This plugin contains the following shadow tiddlers:-
Shadow Status-
The tiddler <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> is not a shadow tiddler-
It is overridden by an ordinary tiddler-
The tiddler <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> is a shadow tiddler-
It is defined in the plugin <$link to=<<pluginTiddler>>><$text text=<<pluginTiddler>>/></$link>-
Fields-
List-
This tiddler does not have a list-
Listed-
This tiddler is not listed by any others-
References-
No tiddlers link to this one-
Tagging-
No tiddlers are tagged with this one-
Tools-
You have unsaved changes in TiddlyWiki-
Yes-
Stub pseudo-plugin for the default language-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30" width="1200" height="600"> -<clipPath id="t"> - <path d="M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"/> -</clipPath> -<path d="M0,0 v30 h60 v-30 z" fill="#00247d"/> -<path d="M0,0 L60,30 M60,0 L0,30" stroke="#fff" stroke-width="6"/> -<path d="M0,0 L60,30 M60,0 L0,30" clip-path="url(#t)" stroke="#cf142b" stroke-width="4"/> -<path d="M30,0 v30 M0,15 h60" stroke="#fff" stroke-width="10"/> -<path d="M30,0 v30 M0,15 h60" stroke="#cf142b" stroke-width="6"/> -</svg> --
SJCL is open. You can use, modify and redistribute it under a BSD -license or under the GNU GPL, version 2.0. - ---------------------------------------------------------------------- - -http://opensource.org/licenses/BSD-2-Clause - -Copyright (c) 2009-2015, Emily Stark, Mike Hamburg and Dan Boneh at -Stanford University. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - -1. Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright -notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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. - ---------------------------------------------------------------------- - -http://opensource.org/licenses/GPL-2.0 - -The Stanford Javascript Crypto Library (hosted here on GitHub) is a -project by the Stanford Computer Security Lab to build a secure, -powerful, fast, small, easy-to-use, cross-browser library for -cryptography in Javascript. - -Copyright (c) 2009-2015, Emily Stark, Mike Hamburg and Dan Boneh at -Stanford University. - -This program is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2 of the License, or (at your -option) any later version. - -This program is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -Public License for more details. - -You should have received a copy of the GNU General Public License along -with this program; if not, write to the Free Software Foundation, Inc., -59 Temple Place, Suite 330, Boston, MA 02111-1307 USA-
\define lingo-base() $:/language/Manager/ - -\define list-item-content-item() -<div class="tc-manager-list-item-content-item"> - <$vars state-title="""$:/state/popup/manager/item/$(listItem)$"""> - <$reveal state=<<state-title>> type="match" text="show" default="show" tag="div"> - <$button set=<<state-title>> setTo="hide" class="tc-btn-invisible tc-manager-list-item-content-item-heading"> - {{$:/core/images/down-arrow}} <$transclude tiddler=<<listItem>> field="caption"/> - </$button> - </$reveal> - <$reveal state=<<state-title>> type="nomatch" text="show" default="show" tag="div"> - <$button set=<<state-title>> setTo="show" class="tc-btn-invisible tc-manager-list-item-content-item-heading"> - {{$:/core/images/right-arrow}} <$transclude tiddler=<<listItem>> field="caption"/> - </$button> - </$reveal> - <$reveal state=<<state-title>> type="match" text="show" default="show" tag="div" class="tc-manager-list-item-content-item-body"> - <$transclude tiddler=<<listItem>>/> - </$reveal> - </$vars> -</div> -\end - -<div class="tc-manager-wrapper"> - <div class="tc-manager-controls"> - <div class="tc-manager-control"> - <<lingo Controls/Show/Prompt>> <$select tiddler="$:/config/Manager/Show" default="tiddlers"> - <option value="tiddlers"><<lingo Controls/Show/Option/Tiddlers>></option> - <option value="tags"><<lingo Controls/Show/Option/Tags>></option> - </$select> - </div> - <div class="tc-manager-control"> - <<lingo Controls/Search/Prompt>> <$edit-text tiddler="$:/config/Manager/Filter" tag="input" default="" placeholder={{$:/language/Manager/Controls/Search/Placeholder}}/> - </div> - <div class="tc-manager-control"> - <<lingo Controls/FilterByTag/Prompt>> <$select tiddler="$:/config/Manager/Tag" default=""> - <option value=""><<lingo Controls/FilterByTag/None>></option> - <$list filter="[!is{$:/config/Manager/System}tags[]!is[system]sort[title]]" variable="tag"> - <option value=<<tag>>><$text text=<<tag>>/></option> - </$list> - </$select> - </div> - <div class="tc-manager-control"> - <<lingo Controls/Sort/Prompt>> <$select tiddler="$:/config/Manager/Sort" default="title"> - <optgroup label="Common"> - <$list filter="title modified modifier created creator created" variable="field"> - <option value=<<field>>><$text text=<<field>>/></option> - </$list> - </optgroup> - <optgroup label="All"> - <$list filter="[all{$:/config/Manager/Show}!is{$:/config/Manager/System}fields[]sort[title]] -title -modified -modifier -created -creator -created" variable="field"> - <option value=<<field>>><$text text=<<field>>/></option> - </$list> - </optgroup> - </$select> - <$checkbox tiddler="$:/config/Manager/Order" field="text" checked="reverse" unchecked="forward" default="forward"> - <<lingo Controls/Order/Prompt>> - </$checkbox> - </div> - <div class="tc-manager-control"> - <$checkbox tiddler="$:/config/Manager/System" field="text" checked="" unchecked="system" default="system"> - {{$:/language/SystemTiddlers/Include/Prompt}} - </$checkbox> - </div> - </div> - <div class="tc-manager-list"> - <$list filter="[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}]"> - <$vars transclusion=<<currentTiddler>>> - <div style="tc-manager-list-item"> - <$button popup=<<qualify "$:/state/manager/popup">> class="tc-btn-invisible tc-manager-list-item-heading" selectedClass="tc-manager-list-item-heading-selected"> - <$text text=<<currentTiddler>>/> - </$button> - <$reveal state=<<qualify "$:/state/manager/popup">> type="nomatch" text="" default="" tag="div" class="tc-manager-list-item-content tc-popup-handle"> - <div class="tc-manager-list-item-content-tiddler"> - <$list filter="[all[shadows+tiddlers]tag[$:/tags/Manager/ItemMain]!has[draft.of]]" variable="listItem"> - <<list-item-content-item>> - </$list> - </div> - <div class="tc-manager-list-item-content-sidebar"> - <$list filter="[all[shadows+tiddlers]tag[$:/tags/Manager/ItemSidebar]!has[draft.of]]" variable="listItem"> - <<list-item-content-item>> - </$list> - </div> - </$reveal> - </div> - </$vars> - </$list> - </div> -</div> --
<table> -<tbody> -<$list filter="[all[current]fields[]sort[title]] -text" template="$:/core/ui/TiddlerFieldTemplate" variable="listItem"/> -</tbody> -</table> --
<pre><code><$view/></code></pre> --
<$transclude mode="block"/> --
\define swatch-styles() -height: 1em; -background-color: $(colour)$ -\end - -<$vars colour={{!!color}}> -<p style=<<swatch-styles>>/> -</$vars> -<p> -<$edit-text field="color" tag="input" type="color"/> / <$edit-text field="color" tag="input" type="text" size="9"/> -</p> --
<p> -<div class="tc-manager-icon-editor"> -<$button popup=<<qualify "$:/state/popup/image-picker">> class="tc-btn-invisible"> -<$transclude tiddler={{!!icon}}> -{{$:/language/Manager/Item/Icon/None}} -</$transclude> -</$button> -<div class="tc-block-dropdown-wrapper" style="position: static;"> -<$reveal state=<<qualify "$:/state/popup/image-picker">> type="nomatch" text="" default="" tag="div" class="tc-popup"> -<div class="tc-block-dropdown tc-popup-keep" style="width: 80%; left: 10%; right: 10%; padding: 0.5em;"> -<$macrocall $name="image-picker-include-tagged-images" actions=""" -<$action-setfield $field="icon" $value=<<imageTitle>>/> -<$action-deletetiddler $tiddler=<<qualify "$:/state/popup/image-picker">>/> -"""/> -</div> -</$reveal> -</div> -</div> -</p> --
\define tag-checkbox-actions() -<$action-listops - $tiddler="$:/config/Manager/RecentTags" - $subfilter="[<tag>] [list[$:/config/Manager/RecentTags]] +[limit[12]]" -/> -\end - -\define tag-picker-actions() -<<tag-checkbox-actions>> -<$action-listops - $tiddler=<<currentTiddler>> - $field="tags" - $subfilter="[<tag>] [all[current]tags[]]" -/> -\end - -<p> -<$list filter="[all[current]tags[]] [list[$:/config/Manager/RecentTags]] +[sort[title]] " variable="tag"> -<div> -<$checkbox tiddler=<<currentTiddler>> tag=<<tag>> actions=<<tag-checkbox-actions>>> -<$macrocall $name="tag-pill" tag=<<tag>>/> -</$checkbox> -</div> -</$list> -</p> -<p> -<$macrocall $name="tag-picker" actions=<<tag-picker-actions>>/> -</p> --
<p> -<$button to=<<currentTiddler>>>{{$:/core/images/link}} open</$button> -</p> -<p> -<$button message="tm-edit-tiddler" param=<<currentTiddler>>>{{$:/core/images/edit-button}} edit</$button> -</p> --
$:/palettes/Vanilla-
\define lingo-base() $:/language/ControlPanel/Palette/Editor/ -\define describePaletteColour(colour) -<$transclude tiddler="$:/language/Docs/PaletteColours/$colour$"><$text text="$colour$"/></$transclude> -\end -\define edit-colour-placeholder() - edit $(colourName)$ -\end -\define colour-tooltip(showhide) $showhide$ editor for $(newColourName)$ -\define resolve-colour(macrocall) -\import $:/core/macros/utils -\whitespace trim -<$wikify name="name" text="""$macrocall$"""> -<<name>> -</$wikify> -\end -\define delete-colour-index-actions() <$action-setfield $index=<<colourName>>/> -\define palette-manager-colour-row-segment() -\whitespace trim -<$edit-text index=<<colourName>> tag="input" placeholder=<<edit-colour-placeholder>> default=""/> -<br> -<$edit-text index=<<colourName>> type="color" tag="input" class="tc-palette-manager-colour-input"/> -<$list filter="[<currentTiddler>getindex<colourName>removeprefix[<<]removesuffix[>>]] [<currentTiddler>getindex<colourName>removeprefix[<$]removesuffix[/>]]" variable="ignore"> -<$set name="state" value={{{ [[$:/state/palettemanager/]addsuffix<currentTiddler>addsuffix[/]addsuffix<colourName>] }}}> -<$wikify name="newColourName" text="""<$macrocall $name="resolve-colour" macrocall={{{ [<currentTiddler>getindex<colourName>] }}}/>"""> -<$reveal state=<<state>> type="nomatch" text="show"> -<$button tooltip=<<colour-tooltip show>> aria-label=<<colour-tooltip show>> class="tc-btn-invisible" set=<<state>> setTo="show">{{$:/core/images/down-arrow}} <$text text=<<newColourName>>/></$button><br> -</$reveal> -<$reveal state=<<state>> type="match" text="show"> -<$button tooltip=<<colour-tooltip hide>> aria-label=<<colour-tooltip show>> class="tc-btn-invisible" actions="""<$action-deletetiddler $tiddler=<<state>>/>""">{{$:/core/images/up-arrow}} <$text text=<<newColourName>>/></$button><br> -</$reveal> -<$reveal state=<<state>> type="match" text="show"> -<$set name="colourName" value=<<newColourName>>> -<br> -<<palette-manager-colour-row-segment>> -<br><br> -</$set> -</$reveal> -</$wikify> -</$set> -</$list> -\end -\define palette-manager-colour-row() -\whitespace trim -<tr> -<td> -<span style="float:right;"> -<$button tooltip=<<lingo Delete/Hint>> aria-label=<<lingo Delete/Hint>> class="tc-btn-invisible" actions=<<delete-colour-index-actions>>> -{{$:/core/images/delete-button}}</$button> -</span> -''<$macrocall $name="describePaletteColour" colour=<<colourName>>/>''<br/> -<$macrocall $name="colourName" $output="text/plain"/> -</td> -<td> -<<palette-manager-colour-row-segment>> -</td> -</tr> -\end -\define palette-manager-table() -\whitespace trim -<table> -<tbody> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]indexes[]]" variable="colourName"> -<$list filter="[<currentTiddler>indexes[]removeprefix<colourName>suffix[]]" variable="ignore" emptyMessage=""" -<$list filter="[{$:/state/palettemanager/showexternal}removeprefix[yes]suffix[]]" variable="ignore"> -<<palette-manager-colour-row>> -</$list> -"""> -<<palette-manager-colour-row>> -</$list> -</$list> -</tbody> -</table> -\end -<$set name="currentTiddler" value={{$:/palette}}> - -<<lingo Prompt>> <$link to={{$:/palette}}><$macrocall $name="currentTiddler" $output="text/plain"/></$link> - -<$list filter="[all[current]is[shadow]is[tiddler]]" variable="listItem"> -<<lingo Prompt/Modified>> -<$button message="tm-delete-tiddler" param={{$:/palette}}><<lingo Reset/Caption>></$button> -</$list> - -<$list filter="[all[current]is[shadow]!is[tiddler]]" variable="listItem"> -<<lingo Clone/Prompt>> -</$list> - -<$button message="tm-new-tiddler" param={{$:/palette}}><<lingo Clone/Caption>></$button> - -<$checkbox tiddler="$:/state/palettemanager/showexternal" field="text" checked="yes" unchecked="no"> <<lingo Names/External/Show>></$checkbox> - -<<palette-manager-table>> --
alert-background: #ffe476 -alert-border: #b99e2f -alert-highlight: #881122 -alert-muted-foreground: #b99e2f -background: #ffffff -blockquote-bar: <<colour muted-foreground>> -button-background: -button-foreground: -button-border: -code-background: #f7f7f9 -code-border: #e1e1e8 -code-foreground: #dd1144 -dirty-indicator: #ff0000 -download-background: #66cccc -download-foreground: <<colour background>> -dragger-background: <<colour foreground>> -dragger-foreground: <<colour background>> -dropdown-background: <<colour background>> -dropdown-border: <<colour muted-foreground>> -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: <<colour foreground>> -modal-background: <<colour background>> -modal-border: #999999 -modal-footer-background: #f5f5f5 -modal-footer-border: #dddddd -modal-header-border: #eeeeee -muted-foreground: #999999 -notification-background: #ffffdd -notification-border: #999999 -page-background: #ffffff -pre-background: #f5f5f5 -pre-border: #cccccc -primary: #7897f3 -select-tag-background: -select-tag-foreground: -sidebar-button-foreground: <<colour foreground>> -sidebar-controls-foreground-hover: #000000 -sidebar-controls-foreground: #ccc -sidebar-foreground-shadow: rgba(255,255,255, 0.8) -sidebar-foreground: #acacac -sidebar-muted-foreground-hover: #444444 -sidebar-muted-foreground: #c0c0c0 -sidebar-tab-background-selected: #ffffff -sidebar-tab-background: <<colour tab-background>> -sidebar-tab-border-selected: <<colour tab-border-selected>> -sidebar-tab-border: <<colour tab-border>> -sidebar-tab-divider: <<colour tab-divider>> -sidebar-tab-foreground-selected: -sidebar-tab-foreground: <<colour tab-foreground>> -sidebar-tiddler-link-foreground-hover: #444444 -sidebar-tiddler-link-foreground: #7897f3 -site-title-foreground: <<colour tiddler-title-foreground>> -static-alert-foreground: #aaaaaa -tab-background-selected: #ffffff -tab-background: #eeeeee -tab-border-selected: #cccccc -tab-border: #cccccc -tab-divider: #d8d8d8 -tab-foreground-selected: <<colour tab-foreground>> -tab-foreground: #666666 -table-border: #dddddd -table-footer-background: #a8a8a8 -table-header-background: #f0f0f0 -tag-background: #ffeedd -tag-foreground: #000 -tiddler-background: <<colour background>> -tiddler-border: #eee -tiddler-controls-foreground-hover: #888888 -tiddler-controls-foreground-selected: #444444 -tiddler-controls-foreground: #cccccc -tiddler-editor-background: #f8f8f8 -tiddler-editor-border-image: #ffffff -tiddler-editor-border: #cccccc -tiddler-editor-fields-even: #e0e8e0 -tiddler-editor-fields-odd: #f0f4f0 -tiddler-info-background: #f8f8f8 -tiddler-info-border: #dddddd -tiddler-info-tab-background: #f8f8f8 -tiddler-link-background: <<colour background>> -tiddler-link-foreground: <<colour primary>> -tiddler-subtitle-foreground: #c0c0c0 -tiddler-title-foreground: #ff9900 -toolbar-new-button: -toolbar-options-button: -toolbar-save-button: -toolbar-info-button: -toolbar-edit-button: -toolbar-close-button: -toolbar-delete-button: -toolbar-cancel-button: -toolbar-done-button: -untagged-background: #999999 -very-muted-foreground: #888888 --
alert-background: #ffe476 -alert-border: #b99e2f -alert-highlight: #881122 -alert-muted-foreground: #b99e2f -background: #fff -blockquote-bar: <<colour muted-foreground>> -button-background: -button-foreground: -button-border: -code-background: #f7f7f9 -code-border: #e1e1e8 -code-foreground: #dd1144 -dirty-indicator: #ff0000 -download-background: #34c734 -download-foreground: <<colour foreground>> -dragger-background: <<colour foreground>> -dragger-foreground: <<colour background>> -dropdown-background: <<colour background>> -dropdown-border: <<colour muted-foreground>> -dropdown-tab-background-selected: #fff -dropdown-tab-background: #ececec -dropzone-background: rgba(0,200,0,0.7) -external-link-background-hover: inherit -external-link-background-visited: inherit -external-link-background: inherit -external-link-foreground-hover: inherit -external-link-foreground-visited: #0000aa -external-link-foreground: #0000ee -foreground: #333353 -message-background: #ecf2ff -message-border: #cfd6e6 -message-foreground: #547599 -modal-backdrop: <<colour foreground>> -modal-background: <<colour background>> -modal-border: #999999 -modal-footer-background: #f5f5f5 -modal-footer-border: #dddddd -modal-header-border: #eeeeee -muted-foreground: #999999 -notification-background: #ffffdd -notification-border: #999999 -page-background: #ddddff -pre-background: #f5f5f5 -pre-border: #cccccc -primary: #5778d8 -select-tag-background: -select-tag-foreground: -sidebar-button-foreground: <<colour foreground>> -sidebar-controls-foreground-hover: #000000 -sidebar-controls-foreground: #ffffff -sidebar-foreground-shadow: rgba(255,255,255, 0.8) -sidebar-foreground: #acacac -sidebar-muted-foreground-hover: #444444 -sidebar-muted-foreground: #c0c0c0 -sidebar-tab-background-selected: <<colour page-background>> -sidebar-tab-background: <<colour tab-background>> -sidebar-tab-border-selected: <<colour tab-border-selected>> -sidebar-tab-border: <<colour tab-border>> -sidebar-tab-divider: <<colour tab-divider>> -sidebar-tab-foreground-selected: -sidebar-tab-foreground: <<colour tab-foreground>> -sidebar-tiddler-link-foreground-hover: #444444 -sidebar-tiddler-link-foreground: #5959c0 -site-title-foreground: <<colour tiddler-title-foreground>> -static-alert-foreground: #aaaaaa -tab-background-selected: <<colour background>> -tab-background: #ccccdd -tab-border-selected: #ccccdd -tab-border: #cccccc -tab-divider: #d8d8d8 -tab-foreground-selected: <<colour tab-foreground>> -tab-foreground: #666666 -table-border: #dddddd -table-footer-background: #a8a8a8 -table-header-background: #f0f0f0 -tag-background: #eeeeff -tag-foreground: #000 -tiddler-background: <<colour background>> -tiddler-border: <<colour background>> -tiddler-controls-foreground-hover: #666666 -tiddler-controls-foreground-selected: #444444 -tiddler-controls-foreground: #cccccc -tiddler-editor-background: #f8f8f8 -tiddler-editor-border-image: #ffffff -tiddler-editor-border: #cccccc -tiddler-editor-fields-even: #e0e8e0 -tiddler-editor-fields-odd: #f0f4f0 -tiddler-info-background: #ffffff -tiddler-info-border: #dddddd -tiddler-info-tab-background: #ffffff -tiddler-link-background: <<colour background>> -tiddler-link-foreground: <<colour primary>> -tiddler-subtitle-foreground: #c0c0c0 -tiddler-title-foreground: #5959c0 -toolbar-new-button: #5eb95e -toolbar-options-button: rgb(128, 88, 165) -toolbar-save-button: #0e90d2 -toolbar-info-button: #0e90d2 -toolbar-edit-button: rgb(243, 123, 29) -toolbar-close-button: #dd514c -toolbar-delete-button: #dd514c -toolbar-cancel-button: rgb(243, 123, 29) -toolbar-done-button: #5eb95e -untagged-background: #999999 -very-muted-foreground: #888888 --
alert-background: #f00 -alert-border: <<colour background>> -alert-highlight: <<colour foreground>> -alert-muted-foreground: #800 -background: #000 -blockquote-bar: <<colour muted-foreground>> -button-background: <<colour background>> -button-foreground: <<colour foreground>> -button-border: <<colour foreground>> -code-background: <<colour background>> -code-border: <<colour foreground>> -code-foreground: <<colour foreground>> -dirty-indicator: #f00 -download-background: #080 -download-foreground: <<colour background>> -dragger-background: <<colour foreground>> -dragger-foreground: <<colour background>> -dropdown-background: <<colour background>> -dropdown-border: <<colour muted-foreground>> -dropdown-tab-background-selected: <<colour foreground>> -dropdown-tab-background: <<colour foreground>> -dropzone-background: rgba(0,200,0,0.7) -external-link-background-hover: inherit -external-link-background-visited: inherit -external-link-background: inherit -external-link-foreground-hover: inherit -external-link-foreground-visited: #00a -external-link-foreground: #00e -foreground: #fff -message-background: <<colour foreground>> -message-border: <<colour background>> -message-foreground: <<colour background>> -modal-backdrop: <<colour foreground>> -modal-background: <<colour background>> -modal-border: <<colour foreground>> -modal-footer-background: <<colour background>> -modal-footer-border: <<colour foreground>> -modal-header-border: <<colour foreground>> -muted-foreground: <<colour foreground>> -notification-background: <<colour background>> -notification-border: <<colour foreground>> -page-background: <<colour background>> -pre-background: <<colour background>> -pre-border: <<colour foreground>> -primary: #00f -select-tag-background: -select-tag-foreground: -sidebar-button-foreground: <<colour foreground>> -sidebar-controls-foreground-hover: <<colour background>> -sidebar-controls-foreground: <<colour foreground>> -sidebar-foreground-shadow: rgba(0,0,0, 0) -sidebar-foreground: <<colour foreground>> -sidebar-muted-foreground-hover: #444444 -sidebar-muted-foreground: <<colour foreground>> -sidebar-tab-background-selected: <<colour background>> -sidebar-tab-background: <<colour tab-background>> -sidebar-tab-border-selected: <<colour tab-border-selected>> -sidebar-tab-border: <<colour tab-border>> -sidebar-tab-divider: <<colour tab-divider>> -sidebar-tab-foreground-selected: <<colour foreground>> -sidebar-tab-foreground: <<colour tab-foreground>> -sidebar-tiddler-link-foreground-hover: <<colour foreground>> -sidebar-tiddler-link-foreground: <<colour primary>> -site-title-foreground: <<colour tiddler-title-foreground>> -static-alert-foreground: #aaaaaa -tab-background-selected: <<colour background>> -tab-background: <<colour foreground>> -tab-border-selected: <<colour foreground>> -tab-border: <<colour foreground>> -tab-divider: <<colour foreground>> -tab-foreground-selected: <<colour foreground>> -tab-foreground: <<colour background>> -table-border: #dddddd -table-footer-background: #a8a8a8 -table-header-background: #f0f0f0 -tag-background: #fff -tag-foreground: #000 -tiddler-background: <<colour background>> -tiddler-border: <<colour foreground>> -tiddler-controls-foreground-hover: #ddd -tiddler-controls-foreground-selected: #fdd -tiddler-controls-foreground: <<colour foreground>> -tiddler-editor-background: <<colour background>> -tiddler-editor-border-image: <<colour foreground>> -tiddler-editor-border: #cccccc -tiddler-editor-fields-even: <<colour background>> -tiddler-editor-fields-odd: <<colour background>> -tiddler-info-background: <<colour background>> -tiddler-info-border: <<colour foreground>> -tiddler-info-tab-background: <<colour background>> -tiddler-link-background: <<colour background>> -tiddler-link-foreground: <<colour primary>> -tiddler-subtitle-foreground: <<colour foreground>> -tiddler-title-foreground: <<colour foreground>> -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: <<colour foreground>> -very-muted-foreground: #888888 --
alert-background: #f00 -alert-border: <<colour background>> -alert-highlight: <<colour foreground>> -alert-muted-foreground: #800 -background: #fff -blockquote-bar: <<colour muted-foreground>> -button-background: <<colour background>> -button-foreground: <<colour foreground>> -button-border: <<colour foreground>> -code-background: <<colour background>> -code-border: <<colour foreground>> -code-foreground: <<colour foreground>> -dirty-indicator: #f00 -download-background: #080 -download-foreground: <<colour background>> -dragger-background: <<colour foreground>> -dragger-foreground: <<colour background>> -dropdown-background: <<colour background>> -dropdown-border: <<colour muted-foreground>> -dropdown-tab-background-selected: <<colour foreground>> -dropdown-tab-background: <<colour foreground>> -dropzone-background: rgba(0,200,0,0.7) -external-link-background-hover: inherit -external-link-background-visited: inherit -external-link-background: inherit -external-link-foreground-hover: inherit -external-link-foreground-visited: #00a -external-link-foreground: #00e -foreground: #000 -message-background: <<colour foreground>> -message-border: <<colour background>> -message-foreground: <<colour background>> -modal-backdrop: <<colour foreground>> -modal-background: <<colour background>> -modal-border: <<colour foreground>> -modal-footer-background: <<colour background>> -modal-footer-border: <<colour foreground>> -modal-header-border: <<colour foreground>> -muted-foreground: <<colour foreground>> -notification-background: <<colour background>> -notification-border: <<colour foreground>> -page-background: <<colour background>> -pre-background: <<colour background>> -pre-border: <<colour foreground>> -primary: #00f -select-tag-background: -select-tag-foreground: -sidebar-button-foreground: <<colour foreground>> -sidebar-controls-foreground-hover: <<colour background>> -sidebar-controls-foreground: <<colour foreground>> -sidebar-foreground-shadow: rgba(0,0,0, 0) -sidebar-foreground: <<colour foreground>> -sidebar-muted-foreground-hover: #444444 -sidebar-muted-foreground: <<colour foreground>> -sidebar-tab-background-selected: <<colour background>> -sidebar-tab-background: <<colour tab-background>> -sidebar-tab-border-selected: <<colour tab-border-selected>> -sidebar-tab-border: <<colour tab-border>> -sidebar-tab-divider: <<colour tab-divider>> -sidebar-tab-foreground-selected: <<colour foreground>> -sidebar-tab-foreground: <<colour tab-foreground>> -sidebar-tiddler-link-foreground-hover: <<colour foreground>> -sidebar-tiddler-link-foreground: <<colour primary>> -site-title-foreground: <<colour tiddler-title-foreground>> -static-alert-foreground: #aaaaaa -tab-background-selected: <<colour background>> -tab-background: <<colour foreground>> -tab-border-selected: <<colour foreground>> -tab-border: <<colour foreground>> -tab-divider: <<colour foreground>> -tab-foreground-selected: <<colour foreground>> -tab-foreground: <<colour background>> -table-border: #dddddd -table-footer-background: #a8a8a8 -table-header-background: #f0f0f0 -tag-background: #000 -tag-foreground: #fff -tiddler-background: <<colour background>> -tiddler-border: <<colour foreground>> -tiddler-controls-foreground-hover: #ddd -tiddler-controls-foreground-selected: #fdd -tiddler-controls-foreground: <<colour foreground>> -tiddler-editor-background: <<colour background>> -tiddler-editor-border-image: <<colour foreground>> -tiddler-editor-border: #cccccc -tiddler-editor-fields-even: <<colour background>> -tiddler-editor-fields-odd: <<colour background>> -tiddler-info-background: <<colour background>> -tiddler-info-border: <<colour foreground>> -tiddler-info-tab-background: <<colour background>> -tiddler-link-background: <<colour background>> -tiddler-link-foreground: <<colour primary>> -tiddler-subtitle-foreground: <<colour foreground>> -tiddler-title-foreground: <<colour foreground>> -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: <<colour foreground>> -very-muted-foreground: #888888 --
alert-background: #ffe476 -alert-border: #b99e2f -alert-highlight: #881122 -alert-muted-foreground: #b99e2f -background: #ffffff -blockquote-bar: <<colour muted-foreground>> -button-background: -button-foreground: -button-border: -code-background: #f7f7f9 -code-border: #e1e1e8 -code-foreground: #dd1144 -dirty-indicator: #ff0000 -download-background: #34c734 -download-foreground: <<colour background>> -dragger-background: <<colour foreground>> -dragger-foreground: <<colour background>> -dropdown-background: <<colour background>> -dropdown-border: <<colour muted-foreground>> -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: <<colour foreground>> -modal-background: <<colour background>> -modal-border: #999999 -modal-footer-background: #f5f5f5 -modal-footer-border: #dddddd -modal-header-border: #eeeeee -muted-foreground: #ddd -notification-background: #ffffdd -notification-border: #999999 -page-background: #336438 -pre-background: #f5f5f5 -pre-border: #cccccc -primary: #5778d8 -select-tag-background: -select-tag-foreground: -sidebar-button-foreground: <<colour foreground>> -sidebar-controls-foreground-hover: #ccf -sidebar-controls-foreground: #fff -sidebar-foreground-shadow: rgba(0,0,0, 0.5) -sidebar-foreground: #fff -sidebar-muted-foreground-hover: #444444 -sidebar-muted-foreground: #eee -sidebar-tab-background-selected: rgba(255,255,255, 0.8) -sidebar-tab-background: rgba(255,255,255, 0.4) -sidebar-tab-border-selected: <<colour tab-border-selected>> -sidebar-tab-border: <<colour tab-border>> -sidebar-tab-divider: rgba(255,255,255, 0.2) -sidebar-tab-foreground-selected: -sidebar-tab-foreground: <<colour tab-foreground>> -sidebar-tiddler-link-foreground-hover: #aaf -sidebar-tiddler-link-foreground: #ddf -site-title-foreground: #fff -static-alert-foreground: #aaaaaa -tab-background-selected: #ffffff -tab-background: #d8d8d8 -tab-border-selected: #d8d8d8 -tab-border: #cccccc -tab-divider: #d8d8d8 -tab-foreground-selected: <<colour tab-foreground>> -tab-foreground: #666666 -table-border: #dddddd -table-footer-background: #a8a8a8 -table-header-background: #f0f0f0 -tag-background: #ec6 -tag-foreground: #ffffff -tiddler-background: <<colour background>> -tiddler-border: <<colour background>> -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: <<colour background>> -tiddler-link-foreground: <<colour primary>> -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 --
alert-background: #cc241d -alert-border: #cc241d -alert-highlight: #d79921 -alert-muted-foreground: #504945 -background: #3c3836 -blockquote-bar: <<colour muted-foreground>> -button-background: #504945 -button-foreground: #fbf1c7 -button-border: transparent -code-background: #504945 -code-border: #504945 -code-foreground: #fb4934 -diff-delete-background: #fb4934 -diff-delete-foreground: <<colour foreground>> -diff-equal-background: -diff-equal-foreground: <<colour foreground>> -diff-insert-background: #b8bb26 -diff-insert-foreground: <<colour foreground>> -diff-invisible-background: -diff-invisible-foreground: <<colour muted-foreground>> -dirty-indicator: #fb4934 -download-background: #b8bb26 -download-foreground: <<colour background>> -dragger-background: <<colour foreground>> -dragger-foreground: <<colour background>> -dropdown-background: #665c54 -dropdown-border: <<colour background>> -dropdown-tab-background-selected: #ebdbb2 -dropdown-tab-background: #665c54 -dropzone-background: #98971a -external-link-background-hover: inherit -external-link-background-visited: inherit -external-link-background: inherit -external-link-foreground-hover: inherit -external-link-foreground-visited: #d3869b -external-link-foreground: #8ec07c -foreground: #fbf1c7 -menubar-background: #504945 -menubar-foreground: <<colour foreground>> -message-background: #83a598 -message-border: #83a598 -message-foreground: #3c3836 -modal-backdrop: <<colour foreground>> -modal-background: <<colour background>> -modal-border: #504945 -modal-footer-background: #3c3836 -modal-footer-border: #3c3836 -modal-header-border: #3c3836 -muted-foreground: #d5c4a1 -notification-background: <<colour primary>> -notification-border: <<colour primary>> -page-background: #282828 -pre-background: #504945 -pre-border: #504945 -primary: #d79921 -select-tag-background: #665c54 -select-tag-foreground: <<colour foreground>> -sidebar-button-foreground: <<colour foreground>> -sidebar-controls-foreground-hover: #7c6f64 -sidebar-controls-foreground: #504945 -sidebar-foreground-shadow: transparent -sidebar-foreground: #fbf1c7 -sidebar-muted-foreground-hover: #7c6f64 -sidebar-muted-foreground: #504945 -sidebar-tab-background-selected: #bdae93 -sidebar-tab-background: #3c3836 -sidebar-tab-border-selected: <<colour tab-border-selected>> -sidebar-tab-border: #bdae93 -sidebar-tab-divider: <<colour page-background>> -sidebar-tab-foreground-selected: #282828 -sidebar-tab-foreground: <<colour tab-foreground>> -sidebar-tiddler-link-foreground-hover: #458588 -sidebar-tiddler-link-foreground: #98971a -site-title-foreground: <<colour tiddler-title-foreground>> -static-alert-foreground: #B48EAD -tab-background-selected: #ebdbb2 -tab-background: #665c54 -tab-border-selected: #665c54 -tab-border: #665c54 -tab-divider: #bdae93 -tab-foreground-selected: #282828 -tab-foreground: #ebdbb2 -table-border: #7c6f64 -table-footer-background: #665c54 -table-header-background: #504945 -tag-background: #d3869b -tag-foreground: #282828 -tiddler-background: <<colour background>> -tiddler-border: <<colour background>> -tiddler-controls-foreground-hover: #7c6f64 -tiddler-controls-foreground-selected: #7c6f64 -tiddler-controls-foreground: #665c54 -tiddler-editor-background: #282828 -tiddler-editor-border-image: #282828 -tiddler-editor-border: #282828 -tiddler-editor-fields-even: #504945 -tiddler-editor-fields-odd: #7c6f64 -tiddler-info-background: #32302f -tiddler-info-border: #ebdbb2 -tiddler-info-tab-background: #ebdbb2 -tiddler-link-background: <<colour background>> -tiddler-link-foreground: <<colour primary>> -tiddler-subtitle-foreground: #7c6f64 -tiddler-title-foreground: #a89984 -toolbar-new-button: -toolbar-options-button: -toolbar-save-button: -toolbar-info-button: -toolbar-edit-button: -toolbar-close-button: -toolbar-delete-button: -toolbar-cancel-button: -toolbar-done-button: -untagged-background: #504945 -very-muted-foreground: #bdae93 -wikilist-background: <<colour page-background>> -wikilist-button-background: <<colour button-background>> -wikilist-button-foreground: <<colour button-foreground>> -wikilist-item: <<colour background>> -wikilist-toolbar-background: <<colour background>> -wikilist-toolbar-foreground: <<colour foreground>> -wikilist-title: <<colour foreground>> -wikilist-title-svg: <<colour wikilist-title>> -wikilist-url: <<colour muted-foreground>> -wikilist-button-open-hover: <<colour primary>> -wikilist-button-open: <<colour dropzone-background>> -wikilist-button-remove: <<colour dirty-indicator>> -wikilist-button-remove-hover: <<colour alert-background>> -wikilist-droplink-dragover: <<colour dropzone-background>> -wikilist-button-reveal: <<colour sidebar-tiddler-link-foreground-hover>> -wikilist-button-reveal-hover: <<colour message-background>>-
alert-background: #ffe476 -alert-border: #b99e2f -alert-highlight: #881122 -alert-muted-foreground: #b99e2f -background: #ffffff -blockquote-bar: <<colour muted-foreground>> -button-background: -button-foreground: -button-border: -code-background: #f7f7f9 -code-border: #e1e1e8 -code-foreground: #dd1144 -dirty-indicator: #ff0000 -download-background: #34c734 -download-foreground: <<colour background>> -dragger-background: <<colour foreground>> -dragger-foreground: <<colour background>> -dropdown-background: <<colour background>> -dropdown-border: <<colour muted-foreground>> -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: <<colour foreground>> -modal-background: <<colour background>> -modal-border: #999999 -modal-footer-background: #f5f5f5 -modal-footer-border: #dddddd -modal-header-border: #eeeeee -muted-foreground: #bbb -notification-background: #ffffdd -notification-border: #999999 -page-background: #6f6f70 -pre-background: #f5f5f5 -pre-border: #cccccc -primary: #29a6ee -select-tag-background: -select-tag-foreground: -sidebar-button-foreground: <<colour foreground>> -sidebar-controls-foreground-hover: #000000 -sidebar-controls-foreground: #c2c1c2 -sidebar-foreground-shadow: rgba(255,255,255,0) -sidebar-foreground: #d3d2d4 -sidebar-muted-foreground-hover: #444444 -sidebar-muted-foreground: #c0c0c0 -sidebar-tab-background-selected: #6f6f70 -sidebar-tab-background: #666667 -sidebar-tab-border-selected: #999 -sidebar-tab-border: #515151 -sidebar-tab-divider: #999 -sidebar-tab-foreground-selected: -sidebar-tab-foreground: #999 -sidebar-tiddler-link-foreground-hover: #444444 -sidebar-tiddler-link-foreground: #d1d0d2 -site-title-foreground: <<colour tiddler-title-foreground>> -static-alert-foreground: #aaaaaa -tab-background-selected: #ffffff -tab-background: #d8d8d8 -tab-border-selected: #d8d8d8 -tab-border: #cccccc -tab-divider: #d8d8d8 -tab-foreground-selected: <<colour tab-foreground>> -tab-foreground: #666666 -table-border: #dddddd -table-footer-background: #a8a8a8 -table-header-background: #f0f0f0 -tag-background: #d5ad34 -tag-foreground: #ffffff -tiddler-background: <<colour background>> -tiddler-border: <<colour background>> -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: <<colour background>> -tiddler-link-foreground: <<colour primary>> -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 --
alert-background: #D08770 -alert-border: #D08770 -alert-highlight: #B48EAD -alert-muted-foreground: #4C566A -background: #3b4252 -blockquote-bar: <<colour muted-foreground>> -button-background: #4C566A -button-foreground: #D8DEE9 -button-border: transparent -code-background: #2E3440 -code-border: #2E3440 -code-foreground: #BF616A -diff-delete-background: #BF616A -diff-delete-foreground: <<colour foreground>> -diff-equal-background: -diff-equal-foreground: <<colour foreground>> -diff-insert-background: #A3BE8C -diff-insert-foreground: <<colour foreground>> -diff-invisible-background: -diff-invisible-foreground: <<colour muted-foreground>> -dirty-indicator: #BF616A -download-background: #A3BE8C -download-foreground: <<colour background>> -dragger-background: <<colour foreground>> -dragger-foreground: <<colour background>> -dropdown-background: <<colour background>> -dropdown-border: <<colour background>> -dropdown-tab-background-selected: #ECEFF4 -dropdown-tab-background: #4C566A -dropzone-background: #A3BE8C -external-link-background-hover: inherit -external-link-background-visited: inherit -external-link-background: inherit -external-link-foreground-hover: inherit -external-link-foreground-visited: #5E81AC -external-link-foreground: #8FBCBB -foreground: #d8dee9 -menubar-background: #2E3440 -menubar-foreground: #d8dee9 -message-background: #2E3440 -message-border: #2E3440 -message-foreground: #547599 -modal-backdrop: <<colour foreground>> -modal-background: <<colour background>> -modal-border: #3b4252 -modal-footer-background: #3b4252 -modal-footer-border: #3b4252 -modal-header-border: #3b4252 -muted-foreground: #4C566A -notification-background: <<colour primary>> -notification-border: #EBCB8B -page-background: #2e3440 -pre-background: #2E3440 -pre-border: #2E3440 -primary: #5E81AC -select-tag-background: #3b4252 -select-tag-foreground: <<colour foreground>> -sidebar-button-foreground: <<colour foreground>> -sidebar-controls-foreground-hover: #D8DEE9 -sidebar-controls-foreground: #4C566A -sidebar-foreground-shadow: transparent -sidebar-foreground: #D8DEE9 -sidebar-muted-foreground-hover: #4C566A -sidebar-muted-foreground: #4C566A -sidebar-tab-background-selected: #ECEFF4 -sidebar-tab-background: #4C566A -sidebar-tab-border-selected: <<colour tab-border-selected>> -sidebar-tab-border: #4C566A -sidebar-tab-divider: <<colour page-background>> -sidebar-tab-foreground-selected: #4C566A -sidebar-tab-foreground: <<colour tab-foreground>> -sidebar-tiddler-link-foreground-hover: #A3BE8C -sidebar-tiddler-link-foreground: #81A1C1 -site-title-foreground: <<colour tiddler-title-foreground>> -static-alert-foreground: #B48EAD -tab-background-selected: #ECEFF4 -tab-background: #4C566A -tab-border-selected: #4C566A -tab-border: #4C566A -tab-divider: #4C566A -tab-foreground-selected: #4C566A -tab-foreground: #D8DEE9 -table-border: #4C566A -table-footer-background: #2e3440 -table-header-background: #2e3440 -tag-background: #A3BE8C -tag-foreground: #4C566A -tiddler-background: <<colour background>> -tiddler-border: <<colour background>> -tiddler-controls-foreground-hover: -tiddler-controls-foreground-selected: #EBCB8B -tiddler-controls-foreground: #4C566A -tiddler-editor-background: #2e3440 -tiddler-editor-border-image: #2e3440 -tiddler-editor-border: #2e3440 -tiddler-editor-fields-even: #2e3440 -tiddler-editor-fields-odd: #2e3440 -tiddler-info-background: #2e3440 -tiddler-info-border: #2e3440 -tiddler-info-tab-background: #2e3440 -tiddler-link-background: <<colour background>> -tiddler-link-foreground: <<colour primary>> -tiddler-subtitle-foreground: #4C566A -tiddler-title-foreground: #81A1C1 -toolbar-new-button: -toolbar-options-button: -toolbar-save-button: -toolbar-info-button: -toolbar-edit-button: -toolbar-close-button: -toolbar-delete-button: -toolbar-cancel-button: -toolbar-done-button: -untagged-background: #2d3038 -very-muted-foreground: #2d3038 --
alert-background: #ffe476 -alert-border: #b99e2f -alert-highlight: #881122 -alert-muted-foreground: #b99e2f -background: #ffffff -blockquote-bar: <<colour muted-foreground>> -button-background: -button-foreground: -button-border: -code-background: #f7f7f9 -code-border: #e1e1e8 -code-foreground: #dd1144 -dirty-indicator: #ff0000 -download-background: #34c734 -download-foreground: <<colour background>> -dragger-background: <<colour foreground>> -dragger-foreground: <<colour background>> -dropdown-background: <<colour background>> -dropdown-border: <<colour muted-foreground>> -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: <<colour foreground>> -modal-background: <<colour background>> -modal-border: #999999 -modal-footer-background: #f5f5f5 -modal-footer-border: #dddddd -modal-header-border: #eeeeee -muted-foreground: #999999 -notification-background: #ffffdd -notification-border: #999999 -page-background: #000 -pre-background: #f5f5f5 -pre-border: #cccccc -primary: #cc0000 -select-tag-background: -select-tag-foreground: -sidebar-button-foreground: <<colour foreground>> -sidebar-controls-foreground-hover: #000000 -sidebar-controls-foreground: #ffffff -sidebar-foreground-shadow: rgba(255,255,255, 0.0) -sidebar-foreground: #acacac -sidebar-muted-foreground-hover: #444444 -sidebar-muted-foreground: #c0c0c0 -sidebar-tab-background-selected: #000 -sidebar-tab-background: <<colour tab-background>> -sidebar-tab-border-selected: <<colour tab-border-selected>> -sidebar-tab-border: <<colour tab-border>> -sidebar-tab-divider: <<colour tab-divider>> -sidebar-tab-foreground-selected: -sidebar-tab-foreground: <<colour tab-foreground>> -sidebar-tiddler-link-foreground-hover: #ffbb99 -sidebar-tiddler-link-foreground: #cc0000 -site-title-foreground: <<colour tiddler-title-foreground>> -static-alert-foreground: #aaaaaa -tab-background-selected: #ffffff -tab-background: #d8d8d8 -tab-border-selected: #d8d8d8 -tab-border: #cccccc -tab-divider: #d8d8d8 -tab-foreground-selected: <<colour tab-foreground>> -tab-foreground: #666666 -table-border: #dddddd -table-footer-background: #a8a8a8 -table-header-background: #f0f0f0 -tag-background: #ffbb99 -tag-foreground: #000 -tiddler-background: <<colour background>> -tiddler-border: <<colour background>> -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: <<colour background>> -tiddler-link-foreground: <<colour primary>> -tiddler-subtitle-foreground: #c0c0c0 -tiddler-title-foreground: #cc0000 -toolbar-new-button: -toolbar-options-button: -toolbar-save-button: -toolbar-info-button: -toolbar-edit-button: -toolbar-close-button: -toolbar-delete-button: -toolbar-cancel-button: -toolbar-done-button: -untagged-background: #999999 -very-muted-foreground: #888888 --
: Background Tones - -base03: #002b36 -base02: #073642 - -: Content Tones - -base01: #586e75 -base00: #657b83 -base0: #839496 -base1: #93a1a1 - -: Background Tones - -base2: #eee8d5 -base3: #fdf6e3 - -: Accent Colors - -yellow: #b58900 -orange: #cb4b16 -red: #dc322f -magenta: #d33682 -violet: #6c71c4 -blue: #268bd2 -cyan: #2aa198 -green: #859900 - -: Additional Tones (RA) - -base10: #c0c4bb -violet-muted: #7c81b0 -blue-muted: #4e7baa - -yellow-hot: #ffcc44 -orange-hot: #eb6d20 -red-hot: #ff2222 -blue-hot: #2298ee -green-hot: #98ee22 - -: Palette - -: Do not use colour macro for background and foreground -background: #fdf6e3 - download-foreground: <<colour background>> - dragger-foreground: <<colour background>> - dropdown-background: <<colour background>> - modal-background: <<colour background>> - sidebar-foreground-shadow: <<colour background>> - tiddler-background: <<colour background>> - tiddler-border: <<colour background>> - tiddler-link-background: <<colour background>> - tab-background-selected: <<colour background>> - dropdown-tab-background-selected: <<colour tab-background-selected>> -foreground: #657b83 - dragger-background: <<colour foreground>> - tab-foreground: <<colour foreground>> - tab-foreground-selected: <<colour tab-foreground>> - sidebar-tab-foreground-selected: <<colour tab-foreground-selected>> - sidebar-tab-foreground: <<colour tab-foreground>> - sidebar-button-foreground: <<colour foreground>> - sidebar-controls-foreground: <<colour foreground>> - sidebar-foreground: <<colour foreground>> -: base03 -: base02 -: base01 - alert-muted-foreground: <<colour base01>> -: base00 - code-foreground: <<colour base00>> - message-foreground: <<colour base00>> - tag-foreground: <<colour base00>> -: base0 - sidebar-tiddler-link-foreground: <<colour base0>> -: base1 - muted-foreground: <<colour base1>> - blockquote-bar: <<colour muted-foreground>> - dropdown-border: <<colour muted-foreground>> - sidebar-muted-foreground: <<colour muted-foreground>> - tiddler-title-foreground: <<colour muted-foreground>> - site-title-foreground: <<colour tiddler-title-foreground>> -: base2 - modal-footer-background: <<colour base2>> - page-background: <<colour base2>> - modal-backdrop: <<colour page-background>> - notification-background: <<colour page-background>> - code-background: <<colour page-background>> - code-border: <<colour code-background>> - pre-background: <<colour page-background>> - pre-border: <<colour pre-background>> - sidebar-tab-background-selected: <<colour page-background>> - table-header-background: <<colour base2>> - tag-background: <<colour base2>> - tiddler-editor-background: <<colour base2>> - tiddler-info-background: <<colour base2>> - tiddler-info-tab-background: <<colour base2>> - tab-background: <<colour base2>> - dropdown-tab-background: <<colour tab-background>> -: base3 - alert-background: <<colour base3>> - message-background: <<colour base3>> -: yellow -: orange -: red -: magenta - alert-highlight: <<colour magenta>> -: violet - external-link-foreground: <<colour violet>> -: blue -: cyan -: green -: base10 - tiddler-controls-foreground: <<colour base10>> -: violet-muted - external-link-foreground-visited: <<colour violet-muted>> -: blue-muted - primary: <<colour blue-muted>> - download-background: <<colour primary>> - tiddler-link-foreground: <<colour primary>> - -alert-border: #b99e2f -dirty-indicator: #ff0000 -dropzone-background: rgba(0,200,0,0.7) -external-link-background-hover: inherit -external-link-background-visited: inherit -external-link-background: inherit -external-link-foreground-hover: inherit -message-border: #cfd6e6 -modal-border: #999999 -select-tag-background: -select-tag-foreground: -sidebar-controls-foreground-hover: -sidebar-muted-foreground-hover: -sidebar-tab-background: #ded8c5 -sidebar-tiddler-link-foreground-hover: -static-alert-foreground: #aaaaaa -tab-border: #cccccc - modal-footer-border: <<colour tab-border>> - modal-header-border: <<colour tab-border>> - notification-border: <<colour tab-border>> - sidebar-tab-border: <<colour tab-border>> - tab-border-selected: <<colour tab-border>> - sidebar-tab-border-selected: <<colour tab-border-selected>> -tab-divider: #d8d8d8 - sidebar-tab-divider: <<colour tab-divider>> -table-border: #dddddd -table-footer-background: #a8a8a8 -tiddler-controls-foreground-hover: #888888 -tiddler-controls-foreground-selected: #444444 -tiddler-editor-border-image: #ffffff -tiddler-editor-border: #cccccc -tiddler-editor-fields-even: #e0e8e0 -tiddler-editor-fields-odd: #f0f4f0 -tiddler-info-border: #dddddd -tiddler-subtitle-foreground: #c0c0c0 -toolbar-new-button: -toolbar-options-button: -toolbar-save-button: -toolbar-info-button: -toolbar-edit-button: -toolbar-close-button: -toolbar-delete-button: -toolbar-cancel-button: -toolbar-done-button: -untagged-background: #999999 -very-muted-foreground: #888888 --
alert-background: #eee8d5 -alert-border: #073642 -alert-highlight: #cb4b16 -alert-muted-foreground: #586e75 -background: #fdf6e3 -blockquote-bar: <<colour muted-foreground>> -button-background: #cb4b16 -button-foreground: #fdf6e3 -button-border: transparent -code-background: #eee8d5 -code-border: #93a1a1 -code-foreground: #d33682 -diff-delete-background: #BF616A -diff-delete-foreground: <<colour foreground>> -diff-equal-background: -diff-equal-foreground: <<colour foreground>> -diff-insert-background: #859900 -diff-insert-foreground: <<colour foreground>> -diff-invisible-background: -diff-invisible-foreground: <<colour muted-foreground>> -dirty-indicator: #D08770 -download-background: #859900 -download-foreground: <<colour background>> -dragger-background: <<colour foreground>> -dragger-foreground: <<colour background>> -dropdown-background: <<colour background>> -dropdown-border: <<colour background>> -dropdown-tab-background-selected: #fdf6e3 -dropdown-tab-background: #93a1a1 -dropzone-background: #859900 -external-link-background-hover: inherit -external-link-background-visited: inherit -external-link-background: inherit -external-link-foreground-hover: #d33682 -external-link-foreground-visited: #b58900 -external-link-foreground: #cb4b16 -foreground: #839496 -message-background: #586e75 -message-border: #586e75 -message-foreground: #eee8d5 -modal-backdrop: <<colour foreground>> -modal-background: <<colour background>> -modal-border: #eee8d5 -modal-footer-background: #eee8d5 -modal-footer-border: #eee8d5 -modal-header-border: #eee8d5 -muted-foreground: #93a1a1 -notification-background: #EBCB8B -notification-border: #D08770 -page-background: #eee8d5 -pre-background: #eee8d5 -pre-border: #93a1a1 -primary: #2aa198 -select-tag-background: #eee8d5 -select-tag-foreground: <<colour foreground>> -sidebar-button-foreground: #eee8d5 -sidebar-controls-foreground-hover: #268bd2 -sidebar-controls-foreground: #586e75 -sidebar-foreground-shadow: transparent -sidebar-foreground: #839496 -sidebar-muted-foreground-hover: #657b83 -sidebar-muted-foreground: #93a1a1 -sidebar-tab-background-selected: #eee8d5 -sidebar-tab-background: #839496 -sidebar-tab-border-selected: <<colour tab-border-selected>> -sidebar-tab-border: #657b83 -sidebar-tab-divider: <<colour page-background>> -sidebar-tab-foreground-selected: #839496 -sidebar-tab-foreground: <<colour tab-foreground>> -sidebar-tiddler-link-foreground-hover: #859900 -sidebar-tiddler-link-foreground: #268bd2 -site-title-foreground: <<colour tiddler-title-foreground>> -static-alert-foreground: #dc322f -tab-background-selected: #fdf6e3 -tab-background: #839496 -tab-border-selected: #93a1a1 -tab-border: #93a1a1 -tab-divider: #fdf6e3 -tab-foreground-selected: #839496 -tab-foreground: #eee8d5 -table-border: #657b83 -table-footer-background: #657b83 -table-header-background: #93a1a1 -tag-background: #6c71c4 -tag-foreground: #eee8d5 -tiddler-background: <<colour background>> -tiddler-border: <<colour background>> -tiddler-controls-foreground-hover: #b58900 -tiddler-controls-foreground-selected: #b58900 -tiddler-controls-foreground: #073642 -tiddler-editor-background: #eee8d5 -tiddler-editor-border-image: #eee8d5 -tiddler-editor-border: #eee8d5 -tiddler-editor-fields-even: #eee8d5 -tiddler-editor-fields-odd: #fdf6e3 -tiddler-info-background: #eee8d5 -tiddler-info-border: #eee8d5 -tiddler-info-tab-background: #586e75 -tiddler-link-background: <<colour background>> -tiddler-link-foreground: <<colour primary>> -tiddler-subtitle-foreground: #586e75 -tiddler-title-foreground: #073642 -toolbar-new-button: -toolbar-options-button: -toolbar-save-button: -toolbar-info-button: -toolbar-edit-button: -toolbar-close-button: -toolbar-delete-button: -toolbar-cancel-button: -toolbar-done-button: -untagged-background: #839496 -very-muted-foreground: #93a1a1 --
alert-background: <<colour background>> -alert-border: <<colour very-muted-foreground>> -alert-highlight: <<colour very-muted-foreground>> -alert-muted-foreground: <<colour muted-foreground>> -background: #FAFAFA -blockquote-bar: <<colour page-background>> -button-background: transparent -button-foreground: inherit -button-border: <<colour tag-background>> -code-background: #ececec -code-border: #ececec -code-foreground: -dirty-indicator: #c80000 -download-background: <<colour primary>> -download-foreground: <<colour background>> -dragger-background: <<colour foreground>> -dragger-foreground: <<colour background>> -dropdown-background: #FFFFFF -dropdown-border: <<colour dropdown-background>> -dropdown-tab-background-selected: <<colour dropdown-background>> -dropdown-tab-background: #F5F5F5 -dropzone-background: <<colour tag-background>> -external-link-background-hover: transparent -external-link-background-visited: transparent -external-link-background: transparent -external-link-foreground-hover: -external-link-foreground-visited: -external-link-foreground: -foreground: rgba(0, 0, 0, 0.87) -message-background: <<colour background>> -message-border: <<colour very-muted-foreground>> -message-foreground: rgba(0, 0, 0, 0.54) -modal-backdrop: <<colour foreground>> -modal-background: <<colour background>> -modal-border: <<colour very-muted-foreground>> -modal-footer-background: <<colour background>> -modal-footer-border: <<colour very-muted-foreground>> -modal-header-border: <<colour very-muted-foreground>> -muted-foreground: rgba(0, 0, 0, 0.54) -notification-background: <<colour dropdown-background>> -notification-border: <<colour dropdown-background>> -page-background: #f4f4f4 -pre-background: #ececec -pre-border: #ececec -primary: #3949ab -select-tag-background: <<colour background>> -select-tag-foreground: <<colour foreground>> -sidebar-button-foreground: <<colour foreground>> -sidebar-controls-foreground-hover: #aeaeae -sidebar-controls-foreground: #c6c6c6 -sidebar-foreground-shadow: transparent -sidebar-foreground: rgba(0, 0, 0, 0.54) -sidebar-muted-foreground-hover: rgba(0, 0, 0, 0.54) -sidebar-muted-foreground: rgba(0, 0, 0, 0.38) -sidebar-tab-background-selected: <<colour page-background>> -sidebar-tab-background: transparent -sidebar-tab-border-selected: <<colour table-border>> -sidebar-tab-border: transparent -sidebar-tab-divider: <<colour table-border>> -sidebar-tab-foreground-selected: rgba(0, 0, 0, 0.87) -sidebar-tab-foreground: rgba(0, 0, 0, 0.54) -sidebar-tiddler-link-foreground-hover: rgba(0, 0, 0, 0.87) -sidebar-tiddler-link-foreground: rgba(0, 0, 0, 0.54) -site-title-foreground: rgba(0, 0, 0, 0.87) -static-alert-foreground: #aaaaaa -tab-background-selected: <<colour background>> -tab-background: transparent -tab-border-selected: <<colour table-border>> -tab-border: transparent -tab-divider: <<colour table-border>> -tab-foreground-selected: rgba(0, 0, 0, 0.87) -tab-foreground: rgba(0, 0, 0, 0.54) -table-border: #d8d8d8 -table-footer-background: <<colour tiddler-editor-fields-odd>> -table-header-background: <<colour tiddler-editor-fields-even>> -tag-background: #ec6 -tag-foreground: <<colour button-foreground>> -tiddler-background: <<colour background>> -tiddler-border: #f9f9f9 -tiddler-controls-foreground-hover: <<colour sidebar-controls-foreground-hover>> -tiddler-controls-foreground-selected: <<colour sidebar-controls-foreground-hover>> -tiddler-controls-foreground: <<colour sidebar-controls-foreground>> -tiddler-editor-background: transparent -tiddler-editor-border-image: -tiddler-editor-border: #e8e7e7 -tiddler-editor-fields-even: rgba(0, 0, 0, 0.1) -tiddler-editor-fields-odd: rgba(0, 0, 0, 0.04) -tiddler-info-background: #F5F5F5 -tiddler-info-border: #F5F5F5 -tiddler-info-tab-background: <<colour tiddler-editor-fields-odd>> -tiddler-link-background: <<colour background>> -tiddler-link-foreground: <<colour primary>> -tiddler-subtitle-foreground: <<colour muted-foreground>> -tiddler-title-foreground: #000000 -toolbar-new-button: -toolbar-options-button: -toolbar-save-button: -toolbar-info-button: -toolbar-edit-button: -toolbar-close-button: -toolbar-delete-button: -toolbar-cancel-button: -toolbar-done-button: -untagged-background: <<colour very-muted-foreground>> -very-muted-foreground: rgba(0, 0, 0, 0.12) --
alert-background: <<colour background>> -alert-border: <<colour very-muted-foreground>> -alert-highlight: <<colour very-muted-foreground>> -alert-muted-foreground: <<colour muted-foreground>> -background: #303030 -blockquote-bar: <<colour page-background>> -button-background: transparent -button-foreground: inherit -button-border: <<colour tag-background>> -code-background: <<colour pre-background>> -code-border: <<colour pre-border>> -code-foreground: rgba(255, 255, 255, 0.54) -dirty-indicator: #c80000 -download-background: <<colour primary>> -download-foreground: <<colour foreground>> -dragger-background: <<colour foreground>> -dragger-foreground: <<colour background>> -dropdown-background: #424242 -dropdown-border: <<colour dropdown-background>> -dropdown-tab-background-selected: <<colour dropdown-background>> -dropdown-tab-background: #050505 -dropzone-background: <<colour tag-background>> -external-link-background-hover: transparent -external-link-background-visited: transparent -external-link-background: transparent -external-link-foreground-hover: -external-link-foreground-visited: #7c318c -external-link-foreground: #9e3eb3 -foreground: rgba(255, 255, 255, 0.7) -message-background: <<colour background>> -message-border: <<colour very-muted-foreground>> -message-foreground: rgba(255, 255, 255, 0.54) -modal-backdrop: <<colour page-background>> -modal-background: <<colour background>> -modal-border: <<colour very-muted-foreground>> -modal-footer-background: <<colour background>> -modal-footer-border: <<colour background>> -modal-header-border: <<colour very-muted-foreground>> -muted-foreground: rgba(255, 255, 255, 0.54) -notification-background: <<colour dropdown-background>> -notification-border: <<colour dropdown-background>> -page-background: #212121 -pre-background: #2a2a2a -pre-border: transparent -primary: #5656f3 -select-tag-background: <<colour background>> -select-tag-foreground: <<colour foreground>> -sidebar-button-foreground: <<colour foreground>> -sidebar-controls-foreground-hover: #494949 -sidebar-controls-foreground: #5d5d5d -sidebar-foreground-shadow: transparent -sidebar-foreground: rgba(255, 255, 255, 0.54) -sidebar-muted-foreground-hover: rgba(255, 255, 255, 0.54) -sidebar-muted-foreground: rgba(255, 255, 255, 0.38) -sidebar-tab-background-selected: <<colour page-background>> -sidebar-tab-background: transparent -sidebar-tab-border-selected: <<colour table-border>> -sidebar-tab-border: transparent -sidebar-tab-divider: <<colour table-border>> -sidebar-tab-foreground-selected: rgba(255, 255, 255, 0.87) -sidebar-tab-foreground: rgba(255, 255, 255, 0.54) -sidebar-tiddler-link-foreground-hover: rgba(255, 255, 255, 0.7) -sidebar-tiddler-link-foreground: rgba(255, 255, 255, 0.54) -site-title-foreground: rgba(255, 255, 255, 0.7) -static-alert-foreground: #aaaaaa -tab-background-selected: <<colour background>> -tab-background: transparent -tab-border-selected: <<colour table-border>> -tab-border: transparent -tab-divider: <<colour table-border>> -tab-foreground-selected: rgba(255, 255, 255, 0.87) -tab-foreground: rgba(255, 255, 255, 0.54) -table-border: #3a3a3a -table-footer-background: <<colour tiddler-editor-fields-odd>> -table-header-background: <<colour tiddler-editor-fields-even>> -tag-background: #ec6 -tag-foreground: <<colour button-foreground>> -tiddler-background: <<colour background>> -tiddler-border: rgb(55,55,55) -tiddler-controls-foreground-hover: <<colour sidebar-controls-foreground-hover>> -tiddler-controls-foreground-selected: <<colour sidebar-controls-foreground-hover>> -tiddler-controls-foreground: <<colour sidebar-controls-foreground>> -tiddler-editor-background: transparent -tiddler-editor-border-image: -tiddler-editor-border: rgba(255, 255, 255, 0.08) -tiddler-editor-fields-even: rgba(255, 255, 255, 0.1) -tiddler-editor-fields-odd: rgba(255, 255, 255, 0.04) -tiddler-info-background: #454545 -tiddler-info-border: #454545 -tiddler-info-tab-background: <<colour tiddler-editor-fields-odd>> -tiddler-link-background: <<colour background>> -tiddler-link-foreground: <<colour primary>> -tiddler-subtitle-foreground: <<colour muted-foreground>> -tiddler-title-foreground: #FFFFFF -toolbar-new-button: -toolbar-options-button: -toolbar-save-button: -toolbar-info-button: -toolbar-edit-button: -toolbar-close-button: -toolbar-delete-button: -toolbar-cancel-button: -toolbar-done-button: -untagged-background: <<colour very-muted-foreground>> -very-muted-foreground: rgba(255, 255, 255, 0.12) --
alert-background: rgb(255, 255, 102) -alert-border: rgb(232, 232, 125) -alert-highlight: rgb(255, 51, 51) -alert-muted-foreground: rgb(224, 82, 82) -background: rgb(38, 38, 38) -blockquote-bar: rgba(240, 196, 117, 0.7) -button-background: rgb(63, 63, 63) -button-border: rgb(127, 127, 127) -button-foreground: rgb(179, 179, 179) -code-background: rgba(0,0,0,0.03) -code-border: rgba(0,0,0,0.08) -code-foreground: rgb(255, 94, 94) -diff-delete-background: #ffc9c9 -diff-delete-foreground: <<colour foreground>> -diff-equal-background: -diff-equal-foreground: <<colour foreground>> -diff-insert-background: #aaefad -diff-insert-foreground: <<colour foreground>> -diff-invisible-background: -diff-invisible-foreground: <<colour muted-foreground>> -dirty-indicator: rgb(255, 94, 94) -download-background: #19a974 -download-foreground: rgb(38, 38, 38) -dragger-background: rgb(179, 179, 179) -dragger-foreground: rgb(38, 38, 38) -dropdown-background: rgb(38, 38, 38) -dropdown-border: rgb(255, 255, 255) -dropdown-tab-background: rgba(0,0,0,.1) -dropdown-tab-background-selected: rgba(255,255,255,1) -dropzone-background: #9eebcf -external-link-background: inherit -external-link-background-hover: inherit -external-link-background-visited: inherit -external-link-foreground: rgb(179, 179, 255) -external-link-foreground-hover: inherit -external-link-foreground-visited: rgb(153, 153, 255) -foreground: rgb(179, 179, 179) -message-background: <<colour tag-foreground>> -message-border: #96ccff -message-foreground: <<colour tag-background>> -modal-backdrop: rgb(179, 179, 179) -modal-background: rgb(38, 38, 38) -modal-border: rgba(0,0,0,.5) -modal-footer-background: #f4f4f4 -modal-footer-border: rgba(0,0,0,.1) -modal-header-border: rgba(0,0,0,.2) -muted-foreground: rgb(255, 255, 255) -notification-background: <<colour tag-foreground>> -notification-border: <<colour tag-background>> -page-background: rgb(26, 26, 26) -pre-background: rgb(25, 25, 25) -pre-border: rgba(0,0,0,.2) -primary: rgb(255, 201, 102) -select-tag-background: -select-tag-foreground: -sidebar-button-foreground: rgb(179, 179, 179) -sidebar-controls-foreground: rgb(153, 153, 153) -sidebar-controls-foreground-hover: <<colour tiddler-controls-foreground-hover>> -sidebar-foreground: rgb(141, 141, 141) -sidebar-foreground-shadow: transparent -sidebar-muted-foreground: rgba(0, 0, 0, 0.5) -sidebar-muted-foreground-hover: rgb(141, 141, 141) -sidebar-tab-background: rgba(141, 141, 141, 0.2) -sidebar-tab-background-selected: rgb(26, 26, 26) -sidebar-tab-border: rgb(127, 127, 127) -sidebar-tab-border-selected: rgb(127, 127, 127) -sidebar-tab-divider: rgb(127, 127, 127) -sidebar-tab-foreground: rgb(179, 179, 179) -sidebar-tab-foreground-selected: rgb(179, 179, 179) -sidebar-tiddler-link-foreground: rgb(179, 179, 179) -sidebar-tiddler-link-foreground-hover: rgb(115, 115, 115) -site-title-foreground: rgb(255, 201, 102) -static-alert-foreground: rgba(0,0,0,.3) -tab-background: rgba(0,0,0,0.125) -tab-background-selected: rgb(38, 38, 38) -tab-border: rgb(255, 201, 102) -tab-border-selected: rgb(255, 201, 102) -tab-divider: rgb(255, 201, 102) -tab-foreground: rgb(179, 179, 179) -tab-foreground-selected: rgb(179, 179, 179) -table-border: rgba(255,255,255,.3) -table-footer-background: rgba(0,0,0,.4) -table-header-background: rgba(0,0,0,.1) -tag-background: rgb(255, 201, 102) -tag-foreground: rgb(25, 25, 25) -tiddler-background: rgb(38, 38, 38) -tiddler-border: rgba(240, 196, 117, 0.7) -tiddler-controls-foreground: rgb(128, 128, 128) -tiddler-controls-foreground-hover: rgba(255, 255, 255, 0.8) -tiddler-controls-foreground-selected: rgba(255, 255, 255, 0.9) -tiddler-editor-background: rgb(33, 33, 33) -tiddler-editor-border: rgb(63, 63, 63) -tiddler-editor-border-image: rgb(25, 25, 25) -tiddler-editor-fields-even: rgb(33, 33, 33) -tiddler-editor-fields-odd: rgb(28, 28, 28) -tiddler-info-background: rgb(43, 43, 43) -tiddler-info-border: rgb(25, 25, 25) -tiddler-info-tab-background: rgb(43, 43, 43) -tiddler-link-background: rgb(38, 38, 38) -tiddler-link-foreground: rgb(204, 204, 255) -tiddler-subtitle-foreground: rgb(255, 255, 255) -tiddler-title-foreground: rgb(255, 192, 76) -toolbar-cancel-button: -toolbar-close-button: -toolbar-delete-button: -toolbar-done-button: -toolbar-edit-button: -toolbar-info-button: -toolbar-new-button: -toolbar-options-button: -toolbar-save-button: -untagged-background: rgb(255, 255, 255) -very-muted-foreground: rgba(240, 196, 117, 0.7) --
alert-background: #ffe476 -alert-border: #b99e2f -alert-highlight: #881122 -alert-muted-foreground: #b99e2f -background: #ffffffbb -blockquote-bar: <<colour muted-foreground>> -button-background: -button-foreground: -button-border: -code-background: #f7f7f9dd -code-border: #e1e1e8 -code-foreground: #dd1144 -diff-delete-background: #ffc9c9 -diff-delete-foreground: <<colour foreground>> -diff-equal-background: -diff-equal-foreground: <<colour foreground>> -diff-insert-background: #aaefad -diff-insert-foreground: <<colour foreground>> -diff-invisible-background: -diff-invisible-foreground: <<colour muted-foreground>> -dirty-indicator: #ff0000 -download-background: #34c734 -download-foreground: <<colour background>> -dragger-background: <<colour foreground>> -dragger-foreground: <<colour background>> -dropdown-background: <<colour background>> -dropdown-border: <<colour muted-foreground>> -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: <<colour foreground>> -modal-background: <<colour background>> -modal-border: #999999 -modal-footer-background: #f5f5f5 -modal-footer-border: #dddddd -modal-header-border: #eeeeee -muted-foreground: #bbb -notification-background: #ffffdd -notification-border: #999999 -page-background: #f4f4f4 -pre-background: #f5f5f5 -pre-border: #cccccc -primary: #5778d8 -select-tag-background: -select-tag-foreground: -sidebar-button-foreground: <<colour foreground>> -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: <<colour tab-border-selected>> -sidebar-tab-border: <<colour tab-border>> -sidebar-tab-divider: #e4e4e4 -sidebar-tab-foreground-selected: -sidebar-tab-foreground: <<colour tab-foreground>> -sidebar-tiddler-link-foreground-hover: #444444 -sidebar-tiddler-link-foreground: #999999 -site-title-foreground: <<colour tiddler-title-foreground>> -static-alert-foreground: #aaaaaa -tab-background-selected: #ffffff -tab-background: #d8d8d8 -tab-border-selected: #d8d8d8 -tab-border: #cccccc -tab-divider: #d8d8d8 -tab-foreground-selected: <<colour tab-foreground>> -tab-foreground: #666666 -table-border: #dddddd -table-footer-background: #a8a8a8 -table-header-background: #f0f0f0 -tag-background: #ec6 -tag-foreground: #ffffff -tiddler-background: <<colour background>> -tiddler-border: <<colour background>> -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: <<colour background>> -tiddler-link-foreground: <<colour primary>> -tiddler-subtitle-foreground: #c0c0c0 -tiddler-title-foreground: #182955 -toolbar-new-button: -toolbar-options-button: -toolbar-save-button: -toolbar-info-button: -toolbar-edit-button: -toolbar-close-button: -toolbar-delete-button: -toolbar-cancel-button: -toolbar-done-button: -untagged-background: #999999 -very-muted-foreground: #888888 -wikilist-background: #e5e5e5 -wikilist-item: #fff -wikilist-info: #000 -wikilist-title: #666 -wikilist-title-svg: <<colour wikilist-title>> -wikilist-url: #aaa -wikilist-button-open: #4fb82b -wikilist-button-open-hover: green -wikilist-button-reveal: #5778d8 -wikilist-button-reveal-hover: blue -wikilist-button-remove: #d85778 -wikilist-button-remove-hover: red -wikilist-toolbar-background: #d3d3d3 -wikilist-toolbar-foreground: #888 -wikilist-droplink-dragover: rgba(255,192,192,0.5) -wikilist-button-background: #acacac -wikilist-button-foreground: #000 --
{ - "tiddlers": { - "$:/plugins/danielo515/2click2edit/ClickListener.js": { - "text": "/*\\\ntitle: $:/plugins/danielo515/2click2edit/ClickListener.js\ntype: application/javascript\nmodule-type: widget\n\nThis widgets adds an double click event listener to its parent\n\n\\*/\n\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar ClickListener = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\n/*\nInherit from the base widget class\n*/\nClickListener.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nClickListener.prototype.render = function(parent,nextSibling) {\n\tthis.parentDomNode = parent;\n\tthis.execute();\n\tvar self = this;\n /*Since the event listener have been added to the parent, the \"this\" property is pointing to the\n wrong object, we should call our edit function with our widget object set as the this property.*/\n parent.addEventListener(\"dblclick\",function(event){self.editTiddler.call(self,event)});\n};\n\nClickListener.prototype.editTiddler = function(event) {\n this.dispatchEvent({type: \"tm-edit-tiddler\", param: this.getVariable(\"currentTiddler\")}); \n};\n\n/*\nCompute the internal state of the widget\n*/\nClickListener.prototype.execute = function() {\n};\n\n/*\nSelectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering\n*/\nClickListener.prototype.refresh = function(changedTiddlers) {\n\treturn false;\n};\n\nexports.click = ClickListener;\n\n})();", - "title": "$:/plugins/danielo515/2click2edit/ClickListener.js", - "type": "application/javascript", - "module-type": "widget" - }, - "$:/plugins/danielo515/2click2edit/readme": { - "title": "$:/plugins/danielo515/2click2edit/readme", - "text": "This plugin adds the ability to edit tiddlers by double clicking on its body.\nJust try to edit any tiddler shown here by double clicking on it.\n\nThis can be considered a fast solution. It is only to fill the gap until TiddlyWiki adds support \nfor it officially.\n" - }, - "$:/plugins/danielo515/2click2edit/ui/ViewTemplate": { - "tags": "$:/tags/ViewTemplate", - "title": "$:/plugins/danielo515/2click2edit/ui/ViewTemplate", - "type": "text/vnd.tiddlywiki", - "text": "<$click>" - } - } -}-
/*\ -title: $:/plugins/danielo515/2click2edit/ClickListener.js -type: application/javascript -module-type: widget - -This widgets adds an double click event listener to its parent - -\*/ - -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -var Widget = require("$:/core/modules/widgets/widget.js").widget; - -var ClickListener = function(parseTreeNode,options) { - this.initialise(parseTreeNode,options); -}; - -/* -Inherit from the base widget class -*/ -ClickListener.prototype = new Widget(); - -/* -Render this widget into the DOM -*/ -ClickListener.prototype.render = function(parent,nextSibling) { - this.parentDomNode = parent; - this.execute(); - var self = this; - /*Since the event listener have been added to the parent, the "this" property is pointing to the - wrong object, we should call our edit function with our widget object set as the this property.*/ - parent.addEventListener("dblclick",function(event){self.editTiddler.call(self,event)}); -}; - -ClickListener.prototype.editTiddler = function(event) { - this.dispatchEvent({type: "tm-edit-tiddler", param: this.getVariable("currentTiddler")}); -}; - -/* -Compute the internal state of the widget -*/ -ClickListener.prototype.execute = function() { -}; - -/* -Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering -*/ -ClickListener.prototype.refresh = function(changedTiddlers) { - return false; -}; - -exports.click = ClickListener; - -})();-
This plugin adds the ability to edit tiddlers by double clicking on its body. -Just try to edit any tiddler shown here by double clicking on it. - -This can be considered a fast solution. It is only to fill the gap until TiddlyWiki adds support -for it officially. --
<$click>-
{ - "tiddlers": { - "$:/plugins/felixhayashi/respawn/respawn.js": { - "text": "/*\\\n\ntitle: $:/plugins/felixhayashi/respawn/respawn.js\ntype: application/javascript\nmodule-type: startup\n\n@preserve\n\n\\*/\n\n(function(){\n \n /*jslint node: true, browser: true */\n /*global $tw: false */\n \"use strict\";\n \n var configTRef = \"$:/plugins/felixhayashi/respawn/config\";\n \n var changeListener = function(changedTiddlers) {\n \n if(!changedTiddlers[\"$:/StoryList\"]) return;\n \n var tObj = $tw.wiki.getTiddler(\"$:/StoryList\");\n if(tObj && !tObj.fields[\"list\"].length) {\n \n var confTObj = $tw.wiki.getTiddler(configTRef);\n var config = confTObj ? confTObj.fields : {};\n \n window.setTimeout(function() {\n $tw.rootWidget.dispatchEvent({\n type: \"tm-home\"\n });\n }, parseInt(config.delay) || 500);\n }\n \n };\n \n exports.name = \"respawn\";\n exports.platforms = [\"browser\"];\n exports.after = [\"story\"];\n exports.synchronous = true;\n \n exports.startup = function() {\n \n $tw.wiki.addEventListener(\"change\", changeListener);\n \n };\n\n})();\n", - "title": "$:/plugins/felixhayashi/respawn/respawn.js", - "type": "application/javascript", - "module-type": "startup" - }, - "$:/plugins/felixhayashi/respawn/Configuration": { - "title": "$:/plugins/felixhayashi/respawn/Configuration", - "text": "<!-- The config output is not written to this tiddler! -->\n\nPlease see the [[GitHub page|https://github.com/felixhayashi/TW5-Respawn]] for more information on the options.\n\nYou may have to save and reload the wiki to activate changes.\n\n<table>\n <tr>\n <th align=\"left\">Delay (seconds):</th>\n <td>\n <$edit-text\n tiddler=\"$:/plugins/felixhayashi/respawn/config\"\n field=\"delay\"\n tag=\"input\"\n default=\"500\" />\n </td>\n </tr>\n</table>" - }, - "$:/plugins/felixhayashi/respawn/License": { - "title": "$:/plugins/felixhayashi/respawn/License", - "text": "This code is released under the BSD license. For the exact terms visit:\n\nhttps://github.com/felixhayashi/TW5-Respawn/blob/master/LICENSE" - }, - "$:/plugins/felixhayashi/respawn/Readme": { - "title": "$:/plugins/felixhayashi/respawn/Readme", - "text": "Please visit the [[GitHub page|https://github.com/felixhayashi/TW5-Respawn]] for more information." - } - } -}-
<!-- The config output is not written to this tiddler! --> - -Please see the [[GitHub page|https://github.com/felixhayashi/TW5-Respawn]] for more information on the options. - -You may have to save and reload the wiki to activate changes. - -<table> - <tr> - <th align="left">Delay (seconds):</th> - <td> - <$edit-text - tiddler="$:/plugins/felixhayashi/respawn/config" - field="delay" - tag="input" - default="500" /> - </td> - </tr> -</table>-
This code is released under the BSD license. For the exact terms visit: - -https://github.com/felixhayashi/TW5-Respawn/blob/master/LICENSE-
Please visit the [[GitHub page|https://github.com/felixhayashi/TW5-Respawn]] for more information.-
/*\ - -title: $:/plugins/felixhayashi/respawn/respawn.js -type: application/javascript -module-type: startup - -@preserve - -\*/ - -(function(){ - - /*jslint node: true, browser: true */ - /*global $tw: false */ - "use strict"; - - var configTRef = "$:/plugins/felixhayashi/respawn/config"; - - var changeListener = function(changedTiddlers) { - - if(!changedTiddlers["$:/StoryList"]) return; - - var tObj = $tw.wiki.getTiddler("$:/StoryList"); - if(tObj && !tObj.fields["list"].length) { - - var confTObj = $tw.wiki.getTiddler(configTRef); - var config = confTObj ? confTObj.fields : {}; - - window.setTimeout(function() { - $tw.rootWidget.dispatchEvent({ - type: "tm-home" - }); - }, parseInt(config.delay) || 500); - } - - }; - - exports.name = "respawn"; - exports.platforms = ["browser"]; - exports.after = ["story"]; - exports.synchronous = true; - - exports.startup = function() { - - $tw.wiki.addEventListener("change", changeListener); - - }; - -})(); --
{ - "tiddlers": { - "$:/plugins/flibbles/relink/js/bulkops.js": { - "text": "/*\\\nmodule-type: startup\n\nReplaces the relinkTiddler defined in $:/core/modules/wiki-bulkops.js\n\nThis is a startup instead of a wikimethods module-type because it's the only\nway to ensure this runs after the old relinkTiddler method is applied.\n\n\\*/\n(function(){\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar language = require('$:/plugins/flibbles/relink/js/language.js');\nvar utils = require(\"$:/plugins/flibbles/relink/js/utils.js\");\n\nexports.name = \"redefine-relinkTiddler\";\nexports.synchronous = true;\n// load-modules is when wikimethods are applied in\n// ``$:/core/modules/startup/load-modules.js``\nexports.after = ['load-modules'];\n\nexports.startup = function() {\n\t$tw.Wiki.prototype.relinkTiddler = relinkTiddler;\n};\n\n/** Walks through all relinkable tiddlers and relinks them.\n * This replaces the existing function in core Tiddlywiki.\n */\nfunction relinkTiddler(fromTitle, toTitle, options) {\n\toptions = options || {};\n\tvar failures = [];\n\tvar indexer = utils.getIndexer(this);\n\tvar records = indexer.relinkLookup(fromTitle, toTitle, options);\n\tfor (var title in records) {\n\t\tvar entries = records[title],\n\t\t\tchanges = Object.create(null),\n\t\t\tupdate = false,\n\t\t\tfails = false;\n\t\tfor (var field in entries) {\n\t\t\tvar entry = entries[field];\n\t\t\tfails = fails || entry.impossible;\n\t\t\tif (entry.output) {\n\t\t\t\tchanges[field] = entry.output;\n\t\t\t\tupdate = true;\n\t\t\t}\n\t\t}\n\t\tif (fails) {\n\t\t\tfailures.push(title);\n\t\t}\n\t\t// If any fields changed, update tiddler\n\t\tif (update) {\n\t\t\tconsole.log(\"Renaming '\"+fromTitle+\"' to '\"+toTitle+\"' in '\" + title + \"'\");\n\n\t\t\tvar tiddler = this.getTiddler(title);\n\t\t\tvar newTiddler = new $tw.Tiddler(tiddler,changes,this.getModificationFields())\n\t\t\tnewTiddler = $tw.hooks.invokeHook(\"th-relinking-tiddler\",newTiddler,tiddler);\n\t\t\tthis.addTiddler(newTiddler);\n\t\t\t// If the title changed, we need to perform a nested rename\n\t\t\tif (newTiddler.fields.title !== title) {\n\t\t\t\tthis.deleteTiddler(title);\n\t\t\t\tthis.relinkTiddler(title, newTiddler.fields.title,options);\n\t\t\t}\n\t\t}\n\t};\n\tif (failures.length > 0) {\n\t\tvar options = $tw.utils.extend(\n\t\t\t{ variables: {to: toTitle, from: fromTitle},\n\t\t\t wiki: this},\n\t\t\toptions );\n\t\tlanguage.reportFailures(failures, options);\n\t}\n};\n\n})();\n", - "module-type": "startup", - "title": "$:/plugins/flibbles/relink/js/bulkops.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/indexer.js": { - "text": "/*\\\nmodule-type: indexer\n\nIndexes results from tiddler reference reports so we don't have to call them\nso much.\n\n\\*/\n\n\"use strict\";\n\nvar utils = require(\"./utils.js\");\nvar TiddlerContext = utils.getContext('tiddler');\n\nfunction Indexer(wiki) {\n\tthis.wiki = wiki;\n};\n\nIndexer.prototype.init = function() {\n\tthis.rebuild();\n};\n\nIndexer.prototype.rebuild = function() {\n\tthis.index = null;\n\tthis.backIndex = null;\n\tthis.contexts = Object.create(null);\n\tthis.changedTiddlers = undefined;\n\tthis.lastRelinkFrom = undefined;\n};\n\nIndexer.prototype.update = function(updateDescriptor) {\n\tif (!this.index) {\n\t\treturn;\n\t}\n\tvar title;\n\tif (!this.changedTiddlers) {\n\t\tthis.changedTiddlers = Object.create(null);\n\t}\n\tif (updateDescriptor.old.exists) {\n\t\ttitle = updateDescriptor.old.tiddler.fields.title;\n\t\tthis.changedTiddlers[title] = {deleted: true};\n\t\tthis._purge(title);\n\t}\n\tif (updateDescriptor['new'].exists) {\n\t\t// If its the same tiddler as old, this overrides the 'deleted' entry\n\t\ttitle = updateDescriptor['new'].tiddler.fields.title;\n\t\tthis.changedTiddlers[title] = {modified: true};\n\t}\n};\n\nIndexer.prototype.lookup = function(title) {\n\tthis._upkeep();\n\treturn this.index[title];\n};\n\nIndexer.prototype.reverseLookup = function(title) {\n\tthis._upkeep();\n\treturn this.backIndex[title] || Object.create(null);\n};\n\nIndexer.prototype.relinkLookup = function(fromTitle, toTitle, options) {\n\tthis._upkeep();\n\tvar shortlist = undefined;\n\tif (this.lastRelinkFrom === fromTitle) {\n\t\tif (this.lastRelinkTo === toTitle) {\n\t\t\t// We need to reintroduce the relink cache, where temporary info\n\t\t\t// was stored.\n\t\t\toptions.cache = this.lastRelinkCache;\n\t\t\treturn this.lastRelinkResult;\n\t\t}\n\t\tshortlist = Object.keys(this.lastRelinkResult);\n\t}\n\tthis.lastRelinkResult = utils.getRelinkResults(this.wiki, fromTitle, toTitle, this.context, shortlist, options);\n\tthis.lastRelinkTo = toTitle;\n\tthis.lastRelinkFrom = fromTitle;\n\tthis.lastRelinkCache = options.cache;\n\treturn this.lastRelinkResult;\n};\n\nIndexer.prototype._upkeep = function() {\n\tvar title;\n\tif (this.changedTiddlers && (this.context.changed(this.changedTiddlers) || this.context.parent.changed(this.changedTiddlers))) {\n\t\t// If global macro context or whitelist context changed, wipe all\n\t\tthis.rebuild();\n\t}\n\tif (!this.index) {\n\t\tthis.index = Object.create(null);\n\t\tthis.backIndex = Object.create(null);\n\t\tthis.context = utils.getWikiContext(this.wiki);\n\t\tvar titles = this.wiki.getRelinkableTitles();\n\t\tfor (var i = 0; i < titles.length; i++) {\n\t\t\tthis._populate(titles[i]);\n\t\t};\n\t} else if (this.changedTiddlers) {\n\t\t// If there are cached changes, we apply them now.\n\t\tfor (title in this.contexts) {\n\t\t\tvar tiddlerContext = this.contexts[title];\n\t\t\tif (tiddlerContext.changed(this.changedTiddlers)) {\n\t\t\t\tthis._purge(title);\n\t\t\t\tthis._populate(title);\n\t\t\t\tthis._dropResults(title);\n\t\t\t\t// Wipe this change, so we don't risk updating it twice.\n\t\t\t\tthis.changedTiddlers[title] = undefined;\n\t\t\t}\n\t\t}\n\t\tfor (title in this.changedTiddlers) {\n\t\t\tvar change = this.changedTiddlers[title];\n\t\t\tif (change && change.modified) {\n\t\t\t\tthis._purge(title);\n\t\t\t\tthis._populate(title);\n\t\t\t\tthis._dropResults(title);\n\t\t\t}\n\t\t}\n\t\tthis.changedTiddlers = undefined;\n\t}\n};\n\nIndexer.prototype._purge = function(title) {\n\tfor (var entry in this.index[title]) {\n\t\tdelete this.backIndex[entry][title];\n\t}\n\tdelete this.contexts[title];\n\tdelete this.index[title];\n};\n\n// This drops the cached relink results if unsanctioned tiddlers were changed\nIndexer.prototype._dropResults = function(title) {\n\tvar tiddler = this.wiki.getTiddler(title);\n\tif (title !== this.lastRelinkFrom\n\t&& title !== this.lastRelinkTo\n\t&& (!tiddler\n\t\t|| !$tw.utils.hop(tiddler.fields, 'draft.of') // is a draft\n\t\t|| tiddler.fields['draft.of'] !== this.lastRelinkFrom // draft of target\n\t\t|| references(this.index[title], this.lastRelinkFrom))) { // draft references target\n\t\t// This is not the draft of the last relinked title,\n\t\t// so our cached results should be wiped.\n\t\tthis.lastRelinkFrom = undefined;\n\t}\n};\n\nfunction references(list, item) {\n\treturn list !== undefined && list[item];\n};\n\nIndexer.prototype._populate = function(title) {\n\t// Fetch the report for a title, and populate the indexes with result\n\tvar tiddlerContext = new TiddlerContext(this.wiki, this.context, title);\n\tvar references = utils.getTiddlerRelinkReferences(this.wiki, title, tiddlerContext);\n\tthis.index[title] = references;\n\tif (tiddlerContext.hasImports()) {\n\t\tthis.contexts[title] = tiddlerContext;\n\t}\n\tfor (var ref in references) {\n\t\tthis.backIndex[ref] = this.backIndex[ref] || Object.create(null);\n\t\tthis.backIndex[ref][title] = references[ref];\n\t}\n};\n\nexports.RelinkIndexer = Indexer;\n", - "module-type": "indexer", - "title": "$:/plugins/flibbles/relink/js/indexer.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/language.js": { - "text": "/*\\\nmodule-type: library\n\nThis handles all logging and alerts Relink emits.\n\n\\*/\n\nexports.getString = function(title, options) {\n\ttitle = \"$:/plugins/flibbles/relink/language/\" + title;\n\treturn options.wiki.renderTiddler(\"text/plain\", title, options);\n};\n\nvar logger;\n\nexports.reportFailures = function(failureList, options) {\n\tif (!logger) {\n\t\tlogger = new $tw.utils.Logger(\"Relinker\");\n\t}\n\tvar alertString = this.getString(\"Error/ReportFailedRelinks\", options)\n\tvar alreadyReported = Object.create(null);\n\tvar reportList = [];\n\t$tw.utils.each(failureList, function(f) {\n\t\tif (!alreadyReported[f]) {\n\t\t\tif ($tw.browser) {\n\t\t\t\t// This might not make the link if the title is complicated.\n\t\t\t\t// Whatever.\n\t\t\t\treportList.push(\"\\n* [[\" + f + \"]]\");\n\t\t\t} else {\n\t\t\t\treportList.push(\"\\n* \" + f);\n\t\t\t}\n\t\t\talreadyReported[f] = true;\n\t\t}\n\t});\n\tlogger.alert(alertString + \"\\n\" + reportList.join(\"\"));\n};\n", - "module-type": "library", - "title": "$:/plugins/flibbles/relink/js/language.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/mangler.js": { - "text": "/*\\\nmodule-type: widget\n\nCreates a mangler widget for field validation. This isn't meant to be used\nby the user. It's only used in Relink configuration.\n\n\\*/\n\nvar Widget = require(\"$:/core/modules/widgets/widget.js\").widget;\nvar language = require('$:/plugins/flibbles/relink/js/language.js');\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\n\nvar RelinkManglerWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n\tthis.addEventListeners([\n\t\t{type: \"relink-add-field\", handler: \"handleAddFieldEvent\"},\n\t\t{type: \"relink-add-operator\", handler: \"handleAddOperatorEvent\"},\n\t\t{type: \"relink-add-parameter\", handler: \"handleAddParameterEvent\"},\n\t\t{type: \"relink-add-attribute\", handler: \"handleAddAttributeEvent\"}\n\t]);\n};\n\nexports.relinkmangler = RelinkManglerWidget;\n\nRelinkManglerWidget.prototype = new Widget();\n\n// This wraps alert so it can be monkeypatched during testing.\nRelinkManglerWidget.prototype.alert = function(message) {\n\talert(message);\n};\n\nRelinkManglerWidget.prototype.handleAddFieldEvent = function(event) {\n\tvar param = event.paramObject;\n\tif (typeof param !== \"object\" || !param.field) {\n\t\t// Can't handle it.\n\t\treturn true;\n\t}\n\tvar trimmedName = param.field.toLowerCase().trim();\n\tif (!trimmedName) {\n\t\t// Still can't handle it, but don't warn.\n\t\treturn true;\n\t}\n\tif(!$tw.utils.isValidFieldName(trimmedName)) {\n\t\tthis.alert($tw.language.getString(\n\t\t\t\"InvalidFieldName\",\n\t\t\t{variables:\n\t\t\t\t{fieldName: trimmedName}\n\t\t\t}\n\t\t));\n\t} else {\n\t\tadd(this.wiki, \"fields\", trimmedName);\n\t}\n\treturn true;\n};\n\n/**Not much validation, even though there are definitely illegal\n * operator names. If you input on, Relink won't relink it, but it\n * won't choke on it either. Tiddlywiki will...\n */\nRelinkManglerWidget.prototype.handleAddOperatorEvent = function(event) {\n\tvar param = event.paramObject;\n\tif (param) {\n\t\tadd(this.wiki, \"operators\", param.operator);\n\t}\n\treturn true;\n};\n\nRelinkManglerWidget.prototype.handleAddParameterEvent = function(event) {\n\tvar param = event.paramObject;\n\tif (param && param.macro && param.parameter) {\n\t\tif (/\\s/.test(param.macro.trim())) {\n\t\t\tthis.alert(language.getString(\n\t\t\t\t\"Error/InvalidMacroName\",\n\t\t\t\t{ variables: {macroName: param.macro},\n\t\t\t\t wiki: this.wiki\n\t\t\t\t}\n\t\t\t));\n\t\t} else if (/[ \\/]/.test(param.parameter.trim())) {\n\t\t\tthis.alert(language.getString(\n\t\t\t\t\"Error/InvalidParameterName\",\n\t\t\t\t{ variables: {parameterName: param.parameter},\n\t\t\t\t wiki: this.wiki\n\t\t\t\t}\n\t\t\t));\n\t\t} else {\n\t\t\tadd(this.wiki, \"macros\", param.macro, param.parameter);\n\t\t}\n\t}\n\treturn true;\n};\n\nRelinkManglerWidget.prototype.handleAddAttributeEvent = function(event) {\n\tvar param = event.paramObject;\n\tif (param && param.element && param.attribute) {\n\t\tif (/[ \\/]/.test(param.element.trim())) {\n\t\t\tthis.alert(language.getString(\n\t\t\t\t\"Error/InvalidElementName\",\n\t\t\t\t{ variables: {elementName: param.element},\n\t\t\t\t wiki: this.wiki\n\t\t\t\t}\n\t\t\t));\n\t\t} else if (/[ \\/]/.test(param.attribute.trim())) {\n\t\t\tthis.alert(language.getString(\n\t\t\t\t\"Error/InvalidAttributeName\",\n\t\t\t\t{ variables: {attributeName: param.attribute},\n\t\t\t\t wiki: this.wiki\n\t\t\t\t}\n\t\t\t));\n\t\t} else {\n\t\t\tadd(this.wiki, \"attributes\", param.element, param.attribute);\n\t\t}\n\t}\n\treturn true;\n};\n\nfunction add(wiki, category/*, path parts*/) {\n\tvar path = \"$:/config/flibbles/relink/\" + category;\n\tfor (var x = 2; x < arguments.length; x++) {\n\t\tvar part = arguments[x];\n\t\t// Abort if it's falsy, or only whitespace. Also, trim spaces\n\t\tif (!part || !(part = part.trim())) {\n\t\t\treturn;\n\t\t}\n\t\tpath = path + \"/\" + part;\n\t}\n\tvar def = utils.getDefaultType(wiki);\n\twiki.addTiddler({title: path, text: def});\n};\n", - "module-type": "widget", - "title": "$:/plugins/flibbles/relink/js/mangler.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/settings.js": { - "text": "/*\\\nmodule-type: library\n\nThis handles the fetching and distribution of relink settings.\n\n\\*/\n\nvar utils = require('./utils');\n\n///// Legacy. You used to be able to access the type from utils.\nexports.getType = utils.getType;\n/////\n", - "module-type": "library", - "title": "$:/plugins/flibbles/relink/js/settings.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/utils.js": { - "text": "/*\\\nmodule-type: library\n\nUtility methods for relink.\n\n// TODO: The lists of plugins should neither be relinked nor reported.\n\\*/\n\nvar macroFilter = \"[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\";\n\n/**This works nearly identically to $tw.modules.getModulesByTypeAsHashmap\n * except that this also takes care of migrating V1 relink modules.\n */\nexports.getModulesByTypeAsHashmap = function(moduleType, nameField) {\n\tvar results = Object.create(null);\n\t$tw.modules.forEachModuleOfType(moduleType, function(title, module) {\n\t\tvar key = module[nameField];\n\t\tif (key !== undefined) {\n\t\t\tresults[key] = module;\n\t\t} else {\n\t\t\tfor (var entry in module) {\n\t\t\t\tresults[entry] = {\n\t\t\t\t\trelink: module[entry],\n\t\t\t\t\treport: function() {}};\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n};\n\nexports.getTiddlerRelinkReferences = function(wiki, title, context) {\n\tvar tiddler = wiki.getTiddler(title),\n\t\treferences = Object.create(null),\n\t\toptions = {settings: context, wiki: wiki};\n\tif (tiddler) {\n\t\ttry {\n\t\t\tfor (var relinker in getRelinkOperators()) {\n\t\t\t\tgetRelinkOperators()[relinker].report(tiddler, function(title, blurb) {\n\t\t\t\t\treferences[title] = references[title] || [];\n\t\t\t\t\treferences[title].push(blurb);\n\t\t\t\t}, options);\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tif (e.message) {\n\t\t\t\te.message = e.message + \"\\nWhen reporting '\" + title + \"' Relink references\";\n\t\t\t}\n\t\t\tthrow e;\n\t\t}\n\t}\n\treturn references;\n};\n\n/** Returns a pair like this,\n * { title: {field: entry, ... }, ... }\n */\nexports.getRelinkResults = function(wiki, fromTitle, toTitle, context, tiddlerList, options) {\n\toptions = options || {};\n\toptions.wiki = options.wiki || wiki;\n\tfromTitle = (fromTitle || \"\").trim();\n\ttoTitle = (toTitle || \"\").trim();\n\tvar changeList = Object.create(null);\n\tif(fromTitle && toTitle) {\n\t\tif (tiddlerList === undefined) {\n\t\t\ttiddlerList = wiki.getRelinkableTitles();\n\t\t}\n\t\tfor (var i = 0; i < tiddlerList.length; i++) {\n\t\t\tvar title = tiddlerList[i];\n\t\t\tvar tiddler = wiki.getTiddler(title);\n\t\t\tif(tiddler && !tiddler.fields[\"plugin-type\"]) {\n\t\t\t\ttry {\n\t\t\t\t\tvar entries = Object.create(null),\n\t\t\t\t\t\toperators = getRelinkOperators();\n\t\t\t\t\toptions.settings = new Contexts.tiddler(wiki, context, title);\n\t\t\t\t\tfor (var operation in operators) {\n\t\t\t\t\t\toperators[operation].relink(tiddler, fromTitle, toTitle, entries, options);\n\t\t\t\t\t}\n\t\t\t\t\tfor (var field in entries) {\n\t\t\t\t\t\t// So long as there is one key,\n\t\t\t\t\t\t// add it to the change list.\n\t\t\t\t\t\tchangeList[title] = entries;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {\n\t\t\t\t\t// Should we test for instanceof Error instead?: yes\n\t\t\t\t\t// Does that work in the testing environment?: no\n\t\t\t\t\tif (e.message) {\n\t\t\t\t\t\te.message = e.message + \"\\nWhen relinking '\" + title + \"'\";\n\t\t\t\t\t}\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn changeList;\n};\n\nvar Contexts = $tw.modules.applyMethods('relinkcontext');\n\nexports.getContext = function(name) {\n\treturn Contexts[name];\n};\n\nexports.getWikiContext = function(wiki) {\n\t// This gives a fresh context every time. It is up to the indexer or\n\t// the cache to preserve those contexts for as long as needed.\n\tvar whitelist = new Contexts.whitelist(wiki);\n\treturn new Contexts.import(wiki, whitelist, macroFilter);\n};\n\n/** Returns the Relink indexer, or a dummy object which pretends to be one.\n */\nexports.getIndexer = function(wiki) {\n\tif (!wiki._relink_indexer) {\n\t\twiki._relink_indexer = (wiki.getIndexer && wiki.getIndexer(\"RelinkIndexer\")) || new (require('$:/plugins/flibbles/relink/js/utils/backupIndexer.js'))(wiki);\n\t}\n\treturn wiki._relink_indexer;\n};\n\n/**Relinking supports a cache that persists throughout a whole relink op.\n * This is because the Tiddlywiki caches may get wiped multiple times\n * throughout the course of a relink.\n */\nexports.getCacheForRun = function(options, cacheName, initializer) {\n\toptions.cache = options.cache || Object.create(null);\n\tif (!$tw.utils.hop(options.cache, cacheName)) {\n\t\toptions.cache[cacheName] = initializer();\n\t}\n\treturn options.cache[cacheName];\n};\n\n/**Returns a specific relinker.\n * This is useful for wikitext rules which need to parse a filter or a list\n */\nexports.getType = function(name) {\n\tvar Handler = getFieldTypes()[name];\n\treturn Handler ? new Handler() : undefined;\n};\n\nexports.getTypes = function() {\n\t// We don't return fieldTypes, because we don't want it modified,\n\t// and we need to filter out legacy names.\n\tvar rtn = Object.create(null);\n\tfor (var type in getFieldTypes()) {\n\t\tvar typeObject = getFieldTypes()[type];\n\t\trtn[typeObject.typeName] = typeObject;\n\t}\n\treturn rtn;\n};\n\nexports.getDefaultType = function(wiki) {\n\tvar tiddler = wiki.getTiddler(\"$:/config/flibbles/relink/settings/default-type\");\n\tvar defaultType = tiddler && tiddler.fields.text;\n\t// make sure the default actually exists, otherwise default\n\treturn fieldTypes[defaultType] ? defaultType : \"title\";\n};\n\nvar fieldTypes;\n\nfunction getFieldTypes() {\n\tif (!fieldTypes) {\n\t\tfieldTypes = Object.create(null);\n\t\t$tw.modules.forEachModuleOfType(\"relinkfieldtype\", function(title, exports) {\n\t\t\tfunction NewType() {};\n\t\t\tNewType.prototype = exports;\n\t\t\tNewType.typeName = exports.name;\n\t\t\tfieldTypes[exports.name] = NewType;\n\t\t\t// For legacy, if the NewType doesn't have a report method, we add one\n\t\t\tif (!exports.report) {\n\t\t\t\texports.report = function() {};\n\t\t\t}\n\t\t\t// Also for legacy, some of the field types can go by other names\n\t\t\tif (exports.aliases) {\n\t\t\t\t$tw.utils.each(exports.aliases, function(alias) {\n\t\t\t\t\tfieldTypes[alias] = NewType;\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\treturn fieldTypes;\n}\n\nvar relinkOperators;\n\nfunction getRelinkOperators() {\n\tif (!relinkOperators) {\n\t\trelinkOperators = exports.getModulesByTypeAsHashmap('relinkoperator', 'name');\n\t}\n\treturn relinkOperators;\n};\n", - "module-type": "library", - "title": "$:/plugins/flibbles/relink/js/utils.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/wikimethods.js": { - "text": "/*\\\nmodule-type: wikimethod\n\nIntroduces some utility methods used by Relink.\n\n\\*/\n\nvar utils = require(\"./utils.js\");\n\nexports.getTiddlerRelinkReferences = function(title) {\n\treturn utils.getIndexer(this).lookup(title);\n};\n\nexports.getTiddlerRelinkBackreferences = function(title) {\n\treturn utils.getIndexer(this).reverseLookup(title);\n};\n\nexports.getRelinkableTitles = function() {\n\tvar toUpdate = \"$:/config/flibbles/relink/to-update\";\n\tvar wiki = this;\n\treturn this.getCacheForTiddler(toUpdate, \"relink-toUpdate\", function() {\n\t\tvar tiddler = wiki.getTiddler(toUpdate);\n\t\tif (tiddler) {\n\t\t\treturn wiki.compileFilter(tiddler.fields.text);\n\t\t} else {\n\t\t\treturn wiki.allTitles;\n\t\t}\n\t})();\n};\n", - "module-type": "wikimethod", - "title": "$:/plugins/flibbles/relink/js/wikimethods.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/filteroperators/all_relinkable.js": { - "text": "/*\\\nmodule-type: allfilteroperator\n\nFilter function for [all[relinkable]].\nReturns all tiddlers subject to relinking.\n\n\\*/\n\n(function() {\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.relinkable = function(source,prefix,options) {\n\treturn options.wiki.getRelinkableTitles();\n};\n\n})();\n", - "module-type": "allfilteroperator", - "title": "$:/plugins/flibbles/relink/js/filteroperators/all_relinkable.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/filteroperators/references.js": { - "text": "/*\\\nmodule-type: relinkfilteroperator\n\nGiven a title as an operand, returns all non-shadow tiddlers that have any\nsort of updatable reference to it.\n\n`relink:backreferences[]]`\n`relink:references[]]`\n\nReturns all tiddlers that reference `fromTiddler` somewhere inside them.\n\nInput is ignored. Maybe it shouldn't do this.\n\\*/\n\nvar LinkedList = $tw.utils.LinkedList;\n\nif (!LinkedList) {\n\t/* If the linked list isn't available, make a quick crappy version. */\n\tLinkedList = function() {this.array=[];};\n\n\tLinkedList.prototype.pushTop = function(array) {\n\t\t$tw.utils.pushTop(this.array, array);\n\t};\n\n\tLinkedList.prototype.toArray = function() {\n\t\treturn this.array;\n\t};\n};\n\nexports.backreferences = function(source,operator,options) {\n\tvar results = new LinkedList();\n\tsource(function(tiddler,title) {\n\t\tresults.pushTop(Object.keys(options.wiki.getTiddlerRelinkBackreferences(title,options)));\n\t});\n\treturn results.toArray();\n};\n\nexports.references = function(source,operator,options) {\n\tvar results = new LinkedList();\n\tsource(function(tiddler,title) {\n\t\tvar refs = options.wiki.getTiddlerRelinkReferences(title,options);\n\t\tif (refs) {\n\t\t\tresults.pushTop(Object.keys(refs));\n\t\t}\n\t});\n\treturn results.toArray();\n};\n", - "module-type": "relinkfilteroperator", - "title": "$:/plugins/flibbles/relink/js/filteroperators/references.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/filteroperators/relink.js": { - "text": "/*\\\nmodule-type: filteroperator\n\nThis filter acts as a namespace for several small, simple filters, such as\n\n`[relink:impossible[]]`\n\n\\*/\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar language = require('$:/plugins/flibbles/relink/js/language.js');\n\nvar relinkFilterOperators;\n\nfunction getRelinkFilterOperators() {\n\tif(!relinkFilterOperators) {\n\t\trelinkFilterOperators = {};\n\t\t$tw.modules.applyMethods(\"relinkfilteroperator\",\n\t\t relinkFilterOperators);\n\t}\n\treturn relinkFilterOperators;\n}\n\nexports.relink = function(source,operator,options) {\n\tvar suffixPair = parseSuffix(operator.suffix);\n\tvar relinkFilterOperator = getRelinkFilterOperators()[suffixPair[0]];\n\tif (relinkFilterOperator) {\n\t\tvar newOperator = $tw.utils.extend({}, operator);\n\t\tnewOperator.suffix = suffixPair[1];\n\t\treturn relinkFilterOperator(source, newOperator, options);\n\t} else {\n\t\treturn [language.getString(\"Error/RelinkFilterOperator\", options)];\n\t}\n};\n\nfunction parseSuffix(suffix) {\n\tvar index = suffix? suffix.indexOf(\":\"): -1;\n\tif (index >= 0) {\n\t\treturn [suffix.substr(0, index), suffix.substr(index+1)];\n\t} else {\n\t\treturn [suffix];\n\t}\n}\n", - "module-type": "filteroperator", - "title": "$:/plugins/flibbles/relink/js/filteroperators/relink.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/filteroperators/report.js": { - "text": "/*\\\nmodule-type: relinkfilteroperator\n\nGiven a title as an operand, returns a string for each occurrence of that title\nwithin each input title.\n\n[[title]] +[relink:report[fromTiddler]]`\n\nReturns string representation of fromTiddler occurrences in title.\n\\*/\n\nexports.report = function(source,operator,options) {\n\tvar fromTitle = operator.operand,\n\t\tresults = [];\n\tif (fromTitle) {\n\t\tvar blurbs = options.wiki.getTiddlerRelinkBackreferences(fromTitle);\n\t\tsource(function(tiddler, title) {\n\t\t\tif (blurbs[title]) {\n\t\t\t\tresults = results.concat(blurbs[title]);\n\t\t\t}\n\t\t});\n\t}\n\treturn results;\n};\n", - "module-type": "relinkfilteroperator", - "title": "$:/plugins/flibbles/relink/js/filteroperators/report.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/filteroperators/signatures.js": { - "text": "/*\\\nmodule-type: relinkfilteroperator\n\nThis filter returns all input tiddlers which are a source of\nrelink configuration.\n\n`[all[tiddlers+system]relink:source[macros]]`\n\n\\*/\n\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\n\nexports.signatures = function(source,operator,options) {\n\tvar plugin = operator.operand || null;\n\tvar set = getSet(options);\n\tif (plugin === \"$:/core\") {\n\t\t// Core doesn't actually have any settings. We mean Relink\n\t\tplugin = \"$:/plugins/flibbles/relink\";\n\t}\n\tvar signatures = [];\n\tfor (var signature in set) {\n\t\tvar source = set[signature].source;\n\t\tif (options.wiki.getShadowSource(source) === plugin) {\n\t\t\tsignatures.push(signature);\n\t\t}\n\t}\n\treturn signatures;\n};\n\nexports.type = function(source,operator,options) {\n\tvar results = [];\n\tvar set = getSet(options);\n\tsource(function(tiddler, signature) {\n\t\tif (set[signature]) {\n\t\t\tresults.push(set[signature].name);\n\t\t}\n\t});\n\treturn results;\n};\n\nexports.types = function(source,operator,options) {\n\tvar def = utils.getDefaultType(options.wiki);\n\tvar types = Object.keys(utils.getTypes());\n\ttypes.sort();\n\t// move default to front\n\ttypes.sort(function(x,y) { return x === def ? -1 : y === def ? 1 : 0; });\n\treturn types;\n};\n\nexports.source = function(source,operator,options) {\n\tvar results = [];\n\tvar category = operator.suffix;\n\tvar set = getSet(options);\n\tsource(function(tiddler, signature) {\n\t\tif (set[signature]) {\n\t\t\tresults.push(set[signature].source);\n\t\t}\n\t});\n\treturn results;\n};\n\nfunction getSet(options) {\n\treturn options.wiki.getGlobalCache(\"relink-signatures\", function() {\n\t\tvar config = utils.getWikiContext(options.wiki);\n\t\tvar set = Object.create(null);\n\t\tvar categories = {\n\t\t\tattributes: config.getAttributes(),\n\t\t\tfields: config.getFields(),\n\t\t\tmacros: config.getMacros(),\n\t\t\toperators: config.getOperators()};\n\t\t$tw.utils.each(categories, function(list, category) {\n\t\t\t$tw.utils.each(list, function(item, key) {\n\t\t\t\tset[category + \"/\" + key] = item;\n\t\t\t});\n\t\t});\n\t\treturn set;\n\t});\n};\n", - "module-type": "relinkfilteroperator", - "title": "$:/plugins/flibbles/relink/js/filteroperators/signatures.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/filteroperators/splitafter.js": { - "text": "/*\\\ntitle: $:/core/modules/filters/splitbefore.js\ntype: application/javascript\nmodule-type: relinkfilteroperator\n\nFilter operator that splits each result on the last occurance of the specified separator and returns the last bit.\n\nWhat does this have to do with relink? Nothing. I need this so I can render\nthe configuration menu. I //could// use [splitregexp[]], but then I'd be\nlimited to Tiddlywiki v5.1.20 or later.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter function\n*/\nexports.splitafter = function(source,operator,options) {\n\tvar results = [];\n\tsource(function(tiddler,title) {\n\t\tvar index = title.lastIndexOf(operator.operand);\n\t\tif(index < 0) {\n\t\t\t$tw.utils.pushTop(results,title);\n\t\t} else {\n\t\t\t$tw.utils.pushTop(results,title.substr(index+1));\n\t\t}\n\t});\n\treturn results;\n};\n\n})();\n\n", - "title": "$:/plugins/flibbles/relink/js/filteroperators/splitafter.js", - "type": "application/javascript", - "module-type": "relinkfilteroperator" - }, - "$:/plugins/flibbles/relink/js/filteroperators/wouldchange.js": { - "text": "/*\\\nmodule-type: relinkfilteroperator\n\nwouldchange: Generator.\n\nGiven each input title, it returns all the tiddlers that would be changed if the currentTiddler were to be renamed to the operand.\n\nimpossible: filters all source titles for ones that encounter errors on failure.\n\nTHESE ARE INTERNAL FILTER OPERATOR AND ARE NOT INTENDED TO BE USED BY USERS.\n\n\\*/\n\nvar language = require(\"$:/plugins/flibbles/relink/js/language.js\");\nvar utils = require(\"$:/plugins/flibbles/relink/js/utils.js\");\n\nexports.wouldchange = function(source,operator,options) {\n\tvar from = options.widget && options.widget.getVariable(\"currentTiddler\"),\n\t\tto = operator.operand,\n\t\tindexer = utils.getIndexer(options.wiki),\n\t\trecords = indexer.relinkLookup(from, to, options);\n\treturn Object.keys(records);\n};\n\nexports.impossible = function(source,operator,options) {\n\tvar from = options.widget && options.widget.getVariable(\"currentTiddler\"),\n\t\tto = operator.operand,\n\t\tresults = [],\n\t\tindexer = utils.getIndexer(options.wiki),\n\t\trecords = indexer.relinkLookup(from, to, options);\n\tsource(function(tiddler, title) {\n\t\tvar fields = records[title];\n\t\tif (fields) {\n\t\t\tfor (var field in fields) {\n\t\t\t\tif (fields[field].impossible) {\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\treturn results;\n};\n", - "module-type": "relinkfilteroperator", - "title": "$:/plugins/flibbles/relink/js/filteroperators/wouldchange.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/fieldtypes/filter.js": { - "text": "/*\\\nThis specifies logic for updating filters to reflect title changes.\n\\*/\n\nvar refHandler = require(\"$:/plugins/flibbles/relink/js/fieldtypes/reference\");\nvar Rebuilder = require(\"$:/plugins/flibbles/relink/js/utils/rebuilder\");\n\nexports.name = \"filter\";\n\nexports.report = function(filter, callback, options) {\n\t// I cheat here for now. Relink handles reporting too in cases where\n\t// fromTitle is undefined. toTitle is the callback in those cases.\n\texports.relink(filter, undefined, callback, options);\n};\n\n/**Returns undefined if no change was made.\n */\nexports.relink = function(filter, fromTitle, toTitle, options) {\n\tvar relinker = new Rebuilder(filter),\n\t\tp = 0, // Current position in the filter string\n\t\tmatch, noPrecedingWordBarrier,\n\t\twordBarrierRequired=false;\n\tvar whitespaceRegExp = /\\s+/mg,\n\t\toperandRegExp = /((?:\\+|\\-|~|=|\\:\\w+)?)(?:(\\[)|(?:\"([^\"]*)\")|(?:'([^']*)')|([^\\s\\[\\]]+))/mg,\n\t\tblurbs = [];\n\twhile(p < filter.length) {\n\t\t// Skip any whitespace\n\t\twhitespaceRegExp.lastIndex = p;\n\t\tmatch = whitespaceRegExp.exec(filter);\n\t\tnoPrecedingWordBarrier = false;\n\t\tif(match && match.index === p) {\n\t\t\tp = p + match[0].length;\n\t\t} else if (p != 0) {\n\t\t\tif (wordBarrierRequired) {\n\t\t\t\trelinker.add(' ', p, p);\n\t\t\t\twordBarrierRequired = false;\n\t\t\t} else {\n\t\t\t\tnoPrecedingWordBarrier = true;\n\t\t\t}\n\t\t}\n\t\t// Match the start of the operation\n\t\tif(p < filter.length) {\n\t\t\tvar val;\n\t\t\toperandRegExp.lastIndex = p;\n\t\t\tmatch = operandRegExp.exec(filter);\n\t\t\tif(!match || match.index !== p) {\n\t\t\t\t// It's a bad filter\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\tif(match[1]) { // prefix\n\t\t\t\tp += match[1].length;\n\t\t\t}\n\t\t\tif(match[2]) { // Opening square bracket\n\t\t\t\t// We check if this is a standalone title,\n\t\t\t\t// like `[[MyTitle]]`. We treat those like\n\t\t\t\t// `\"MyTitle\"` or `MyTitle`. Not like a run.\n\t\t\t\tvar standaloneTitle = /\\[\\[([^\\]]+)\\]\\]/g;\n\t\t\t\tstandaloneTitle.lastIndex = p;\n\t\t\t\tvar alone = standaloneTitle.exec(filter);\n\t\t\t\tif (!alone || alone.index != p) {\n\t\t\t\t\tif (fromTitle === undefined) {\n\t\t\t\t\t\t// toTitle is a callback method in this case.\n\t\t\t\t\t\tp =reportFilterOperation(filter, function(title, blurb){\n\t\t\t\t\t\t\tif (match[1]) {\n\t\t\t\t\t\t\t\tblurbs.push([title, match[1] + (blurb || '')]);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tblurbs.push([title, blurb]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},p,options.settings,options);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tp =relinkFilterOperation(relinker,fromTitle,toTitle,filter,p,options.settings,options);\n\t\t\t\t\t}\n\t\t\t\t\t// It's a legit run\n\t\t\t\t\tif (p === undefined) {\n\t\t\t\t\t\t// The filter is malformed\n\t\t\t\t\t\t// We do nothing.\n\t\t\t\t\t\treturn undefined;\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbracketTitle = alone[1];\n\t\t\t\toperandRegExp.lastIndex = standaloneTitle.lastIndex;\n\t\t\t\tval = alone[1];\n\t\t\t} else {\n\t\t\t\t// standalone Double quoted string, single\n\t\t\t\t// quoted string, or noquote ahead.\n\t\t\t\tval = match[3] || match[4] || match[5];\n\t\t\t}\n\t\t\t// From here on, we're dealing with a standalone title\n\t\t\t// expression. like `\"MyTitle\"` or `[[MyTitle]]`\n\t\t\t// We're much more flexible about relinking these.\n\t\t\tvar preference = undefined;\n\t\t\tif (match[3]) {\n\t\t\t\tpreference = '\"';\n\t\t\t} else if (match[4]) {\n\t\t\t\tpreference = \"'\";\n\t\t\t} else if (match[5]) {\n\t\t\t\tpreference = '';\n\t\t\t}\n\t\t\tif (fromTitle === undefined) {\n\t\t\t\t// Report it\n\t\t\t\tblurbs.push([val, match[1]]);\n\t\t\t} else if (val === fromTitle) {\n\t\t\t\t// Relink it\n\t\t\t\tvar entry = {name: \"title\"};\n\t\t\t\tvar newVal = wrapTitle(toTitle, preference);\n\t\t\t\tif (newVal === undefined || (options.inBraces && newVal.indexOf('}}}') >= 0)) {\n\t\t\t\t\tif (!options.placeholder) {\n\t\t\t\t\t\trelinker.impossible = true;\n\t\t\t\t\t\tp = operandRegExp.lastIndex;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tnewVal = \"[<\"+options.placeholder.getPlaceholderFor(toTitle)+\">]\";\n\t\t\t\t}\n\t\t\t\tif (newVal[0] != '[') {\n\t\t\t\t\t// not bracket enclosed\n\t\t\t\t\t// this requires whitespace\n\t\t\t\t\t// arnound it\n\t\t\t\t\tif (noPrecedingWordBarrier && !match[1]) {\n\t\t\t\t\t\trelinker.add(' ', p, p);\n\t\t\t\t\t}\n\t\t\t\t\twordBarrierRequired = true;\n\t\t\t\t}\n\t\t\t\tentry.output = toTitle;\n\t\t\t\tentry.operator = {operator: \"title\"};\n\t\t\t\tentry.quotation = preference;\n\t\t\t\tif (entry.impossible) {\n\t\t\t\t\trelinker.impossible = true;\n\t\t\t\t}\n\t\t\t\trelinker.add(newVal,p,operandRegExp.lastIndex);\n\t\t\t}\n\t\t\tp = operandRegExp.lastIndex;\n\t\t}\n\t}\n\tif (fromTitle === undefined) {\n\t\t// We delay the blurb calls until now in case it's a malformed\n\t\t// filter string. We don't want to report some, only to find out\n\t\t// it's bad.\n\t\tfor (var i = 0; i < blurbs.length; i++) {\n\t\t\ttoTitle(blurbs[i][0], blurbs[i][1]);\n\t\t}\n\t}\n\tif (relinker.changed() || relinker.impossible) {\n\t\treturn {output: relinker.results(), impossible: relinker.impossible };\n\t}\n\treturn undefined;\n};\n\n/* Same as this.relink, except this has the added constraint that the return\n * value must be able to be wrapped in curly braces. (i.e. '{{{...}}}')\n */\nexports.relinkInBraces = function(filter, fromTitle, toTitle, options) {\n\tvar braceOptions = $tw.utils.extend({inBraces: true}, options);\n\tvar entry = this.relink(filter, fromTitle, toTitle, braceOptions);\n\tif (entry && entry.output && !canBeInBraces(entry.output)) {\n\t\t// It was possible, but it won't fit in braces, so we must give up\n\t\tdelete entry.output;\n\t\tentry.impossible = true;\n\t}\n\treturn entry;\n};\n\nfunction wrapTitle(value, preference) {\n\tvar choices = {\n\t\t\"\": function(v) {return /^[^\\s\\[\\]]*[^\\s\\[\\]\\}]$/.test(v); },\n\t\t\"[\": canBePrettyOperand,\n\t\t\"'\": function(v) {return v.indexOf(\"'\") < 0; },\n\t\t'\"': function(v) {return v.indexOf('\"') < 0; }\n\t};\n\tvar wrappers = {\n\t\t\"\": function(v) {return v; },\n\t\t\"[\": function(v) {return \"[[\"+v+\"]]\"; },\n\t\t\"'\": function(v) {return \"'\"+v+\"'\"; },\n\t\t'\"': function(v) {return '\"'+v+'\"'; }\n\t};\n\tif (choices[preference]) {\n\t\tif (choices[preference](value)) {\n\t\t\treturn wrappers[preference](value);\n\t\t}\n\t}\n\tfor (var quote in choices) {\n\t\tif (choices[quote](value)) {\n\t\t\treturn wrappers[quote](value);\n\t\t}\n\t}\n\t// No quotes will work on this\n\treturn undefined;\n}\n\nfunction relinkFilterOperation(relinker, fromTitle, toTitle, filterString, p, context, options) {\n\tvar nextBracketPos, operator;\n\t// Skip the starting square bracket\n\tif(filterString.charAt(p++) !== \"[\") {\n\t\t// Missing [ in filter expression\n\t\treturn undefined;\n\t}\n\t// Process each operator in turn\n\toperator = parseOperator(filterString, p);\n\tdo {\n\t\tvar entry = undefined, type;\n\t\tif (operator === undefined) {\n\t\t\treturn undefined;\n\t\t}\n\t\tp = operator.opStart;\n\t\tswitch (operator.bracket) {\n\t\t\tcase \"{\": // Curly brackets\n\t\t\t\ttype = \"indirect\";\n\t\t\t\tnextBracketPos = filterString.indexOf(\"}\",p);\n\t\t\t\tvar operand = filterString.substring(p,nextBracketPos);\n\t\t\t\t// We've got a live reference. relink or report\n\t\t\t\tentry = refHandler.relinkInBraces(operand, fromTitle, toTitle, options);\n\t\t\t\tif (entry && entry.output) {\n\t\t\t\t\t// We don't check the context.\n\t\t\t\t\t// All indirect operands convert.\n\t\t\t\t\trelinker.add(entry.output,p,nextBracketPos);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"[\": // Square brackets\n\t\t\t\ttype = \"string\";\n\t\t\t\tnextBracketPos = filterString.indexOf(\"]\",p);\n\t\t\t\tvar operand = filterString.substring(p,nextBracketPos);\n\t\t\t\t// Check if this is a relevant operator\n\t\t\t\tvar handler = fieldType(context, operator);\n\t\t\t\tif (!handler) {\n\t\t\t\t\t// This operator isn't managed. Bye.\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tentry = handler.relink(operand, fromTitle, toTitle, options);\n\t\t\t\tif (!entry || !entry.output) {\n\t\t\t\t\t// The fromTitle wasn't in the operand.\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tvar wrapped;\n\t\t\t\tif (!canBePrettyOperand(entry.output) || (options.inBraces && entry.output.indexOf('}}}') >= 0)) {\n\t\t\t\t\tif (!options.placeholder) {\n\t\t\t\t\t\tdelete entry.output;\n\t\t\t\t\t\tentry.impossible = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tvar ph = options.placeholder.getPlaceholderFor(entry.output, handler.name);\n\t\t\t\t\twrapped = \"<\"+ph+\">\";\n\t\t\t\t} else {\n\t\t\t\t\twrapped = \"[\"+entry.output+\"]\";\n\t\t\t\t}\n\t\t\t\trelinker.add(wrapped, p-1, nextBracketPos+1);\n\t\t\t\tbreak;\n\t\t\tcase \"<\": // Angle brackets\n\t\t\t\tnextBracketPos = filterString.indexOf(\">\",p);\n\t\t\t\tbreak;\n\t\t\tcase \"/\": // regexp brackets\n\t\t\t\tvar rex = /^((?:[^\\\\\\/]*|\\\\.)*)\\/(?:\\(([mygi]+)\\))?/g,\n\t\t\t\t\trexMatch = rex.exec(filterString.substring(p));\n\t\t\t\tif(rexMatch) {\n\t\t\t\t\tnextBracketPos = p + rex.lastIndex - 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Unterminated regular expression\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t\tif (entry) {\n\t\t\tif (entry.impossible) {\n\t\t\t\trelinker.impossible = true;\n\t\t\t}\n\t\t}\n\n\t\tif(nextBracketPos === -1) {\n\t\t\t// Missing closing bracket in filter expression\n\t\t\treturn undefined;\n\t\t}\n\t\tp = nextBracketPos + 1;\n\t\t// Check for multiple operands\n\t\tswitch (filterString.charAt(p)) {\n\t\tcase ',':\n\t\t\tp++;\n\t\t\tif(/^[\\[\\{<\\/]/.test(filterString.substring(p))) {\n\t\t\t\toperator.bracket = filterString.charAt(p);\n\t\t\t\toperator.opStart = p + 1;\n\t\t\t\toperator.index++;\n\t\t\t} else {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\tcontinue;\n\t\tdefault:\n\t\t\toperator = parseOperator(filterString, p);\n\t\t\tcontinue;\n\t\tcase ']':\n\t\t}\n\t\tbreak;\n\t} while(true);\n\t// Skip the ending square bracket\n\tif(filterString.charAt(p++) !== \"]\") {\n\t\t// Missing ] in filter expression\n\t\treturn undefined;\n\t}\n\t// Return the parsing position\n\treturn p;\n}\n\nfunction reportFilterOperation(filterString, callback, p, context, options) {\n\tvar nextBracketPos, operator;\n\t// Skip the starting square bracket\n\tif(filterString.charAt(p++) !== \"[\") {\n\t\t// Missing [ in filter expression\n\t\treturn undefined;\n\t}\n\toperator = parseOperator(filterString, p);\n\t// Process each operator in turn\n\tdo {\n\t\tif (operator === undefined) {\n\t\t\treturn undefined;\n\t\t}\n\t\tp = operator.opStart;\n\t\tswitch (operator.bracket) {\n\t\t\tcase \"{\": // Curly brackets\n\t\t\t\tnextBracketPos = filterString.indexOf(\"}\",p);\n\t\t\t\tvar operand = filterString.substring(p,nextBracketPos);\n\t\t\t\t// Just report it\n\t\t\t\trefHandler.report(operand, function(title, blurb) {\n\t\t\t\t\tcallback(title, operatorBlurb(operator, '{' + (blurb || '') + '}'));\n\t\t\t\t}, options);\n\t\t\t\tbreak;\n\t\t\tcase \"[\": // Square brackets\n\t\t\t\tnextBracketPos = filterString.indexOf(\"]\",p);\n\t\t\t\tvar operand = filterString.substring(p,nextBracketPos);\n\t\t\t\t// Check if this is a relevant operator\n\t\t\t\tvar handler = fieldType(context, operator);\n\t\t\t\tif (!handler) {\n\t\t\t\t\t// This operator isn't managed. Bye.\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// We just have to report it. Nothing more.\n\t\t\t\thandler.report(operand, function(title, blurb) {\n\t\t\t\t\tcallback(title, operatorBlurb(operator, '[' + (blurb || '') + ']'));\n\t\t\t\t}, options);\n\t\t\t\tbreak;\n\n\t\t\tcase \"<\": // Angle brackets\n\t\t\t\tnextBracketPos = filterString.indexOf(\">\",p);\n\t\t\t\tbreak;\n\t\t\tcase \"/\": // regexp brackets\n\t\t\t\tvar rex = /^((?:[^\\\\\\/]*|\\\\.)*)\\/(?:\\(([mygi]+)\\))?/g,\n\t\t\t\t\trexMatch = rex.exec(filterString.substring(p));\n\t\t\t\tif(rexMatch) {\n\t\t\t\t\tnextBracketPos = p + rex.lastIndex - 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Unterminated regular expression\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif(nextBracketPos === -1) {\n\t\t\t// Missing closing bracket in filter expression\n\t\t\treturn undefined;\n\t\t}\n\t\tp = nextBracketPos + 1;\n\t\t// Check for multiple operands\n\t\tswitch (filterString.charAt(p)) {\n\t\tcase ',':\n\t\t\tp++;\n\t\t\tif(/^[\\[\\{<\\/]/.test(filterString.substring(p))) {\n\t\t\t\toperator.bracket = filterString.charAt(p);\n\t\t\t\toperator.opStart = p + 1;\n\t\t\t\toperator.index++;\n\t\t\t} else {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t\tcontinue;\n\t\tdefault:\n\t\t\toperator = parseOperator(filterString, p);\n\t\t\tcontinue;\n\t\tcase ']':\n\t\t}\n\t\tbreak;\n\t} while(true);\n\t// Skip the ending square bracket\n\tif(filterString.charAt(p++) !== \"]\") {\n\t\t// Missing ] in filter expression\n\t\treturn undefined;\n\t}\n\t// Return the parsing position\n\treturn p;\n}\n\nfunction parseOperator(filterString, p) {\n\tvar nextBracketPos, operator = {index: 1};\n\t// Check for an operator prefix\n\tif(filterString.charAt(p) === \"!\") {\n\t\toperator.prefix = \"!\";\n\t\tp++;\n\t}\n\t// Get the operator name\n\tnextBracketPos = filterString.substring(p).search(/[\\[\\{<\\/]/);\n\tif(nextBracketPos === -1) {\n\t\t// Missing [ in filter expression\n\t\treturn undefined;\n\t}\n\tnextBracketPos += p;\n\toperator.bracket = filterString.charAt(nextBracketPos);\n\toperator.operator = filterString.substring(p,nextBracketPos);\n\n\t// Any suffix?\n\tvar colon = operator.operator.indexOf(':');\n\tif(colon > -1) {\n\t\toperator.suffix = operator.operator.substring(colon + 1);\n\t\toperator.operator = operator.operator.substring(0,colon) || \"field\";\n\t}\n\t// Empty operator means: title\n\telse if(operator.operator === \"\") {\n\t\toperator.operator = \"title\";\n\t\toperator.default = true;\n\t}\n\toperator.opStart = nextBracketPos + 1;\n\treturn operator;\n};\n\nfunction operatorBlurb(operator, enquotedOperand) {\n\tvar suffix = operator.suffix ? (':' + operator.suffix) : '';\n\t// commas to indicate which number operand\n\tsuffix += (new Array(operator.index)).join(',');\n\tvar op = operator.default ? '' : operator.operator;\n\treturn '[' + (operator.prefix || '') + op + suffix + enquotedOperand + ']';\n};\n\n// Returns the relinker needed for a given operator, or returns undefined.\nfunction fieldType(context, operator) {\n\treturn (operator.suffix &&\n\t context.getOperator(operator.operator + ':' + operator.suffix, operator.index)) ||\n\t context.getOperator(operator.operator, operator.index);\n};\n\nfunction canBePrettyOperand(value) {\n\treturn value.indexOf(']') < 0;\n};\n\nfunction canBeInBraces(value) {\n\treturn value.indexOf(\"}}}\") < 0 && value.substr(value.length-2) !== '}}';\n};\n", - "module-type": "relinkfieldtype", - "title": "$:/plugins/flibbles/relink/js/fieldtypes/filter.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/fieldtypes/list.js": { - "text": "/*\\\nThis manages replacing titles that occur within stringLists, like,\n\nTiddlerA [[Tiddler with spaces]] [[Another Title]]\n\\*/\n\nexports.name = \"list\";\n\nexports.report = function(value, callback, options) {\n\tvar list = $tw.utils.parseStringArray(value);\n\tfor (var i = 0; i < list.length; i++) {\n\t\tcallback(list[i]);\n\t}\n};\n\n/**Returns undefined if no change was made.\n * Parameter: value can literally be a list. This can happen for builtin\n * types 'list' and 'tag'. In those cases, we also return list.\n */\nexports.relink = function(value, fromTitle, toTitle, options) {\n\tvar isModified = false,\n\t\tactualList = false,\n\t\tlist;\n\tif (typeof value !== \"string\") {\n\t\t// Not a string. Must be a list.\n\t\t// clone it, since we may make changes to this possibly\n\t\t// frozen list.\n\t\tlist = (value || []).slice(0);\n\t\tactualList = true;\n\t} else {\n\t\tlist = $tw.utils.parseStringArray(value || \"\");\n\t}\n\t$tw.utils.each(list,function (title,index) {\n\t\tif(title === fromTitle) {\n\t\t\tlist[index] = toTitle;\n\t\t\tisModified = true;\n\t\t}\n\t});\n\tif (isModified) {\n\t\tvar entry = {name: \"list\"};\n\t\t// It doesn't parse correctly alone, it won't\n\t\t// parse correctly in any list.\n\t\tif (!canBeListItem(toTitle)) {\n\t\t\tentry.impossible = true;\n\t\t} else if (actualList) {\n\t\t\tentry.output = list;\n\t\t} else {\n\t\t\tentry.output = $tw.utils.stringifyList(list);\n\t\t}\n\t\treturn entry;\n\t}\n\treturn undefined;\n};\n\nfunction canBeListItem(value) {\n\tvar regexp = /\\]\\][^\\S\\xA0]/m;\n\treturn !regexp.test(value);\n};\n", - "module-type": "relinkfieldtype", - "title": "$:/plugins/flibbles/relink/js/fieldtypes/list.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/fieldtypes/reference.js": { - "text": "/*\\\nThis manages replacing titles that occur inside text references,\n\ntiddlerTitle\ntiddlerTitle!!field\n!!field\ntiddlerTitle##propertyIndex\n\\*/\n\nexports.name = \"reference\";\n\nexports.report = function(value, callback, options) {\n\tif (value) {\n\t\tvar reference = $tw.utils.parseTextReference(value),\n\t\t\ttitle = reference.title,\n\t\t\tblurb;\n\t\tif (title) {\n\t\t\tif (reference.field) {\n\t\t\t\tblurb = '!!' + reference.field;\n\t\t\t} else if (reference.index) {\n\t\t\t\tblurb = '##' + reference.index;\n\t\t\t}\n\t\t\tcallback(title, blurb);\n\t\t}\n\t}\n};\n\nexports.relink = function(value, fromTitle, toTitle, options) {\n\tvar entry;\n\tif (value) {\n\t\tvar reference = $tw.utils.parseTextReference(value);\n\t\tif (reference.title === fromTitle) {\n\t\t\tif (!exports.canBePretty(toTitle)) {\n\t\t\t\tentry = {impossible: true};\n\t\t\t} else {\n\t\t\t\treference.title = toTitle;\n\t\t\t\tentry = {output: exports.toString(reference)};\n\t\t\t}\n\t\t}\n\t}\n\treturn entry;\n};\n\n/* Same as this.relink, except this has the added constraint that the return\n * value must be able to be wrapped in curly braces.\n */\nexports.relinkInBraces = function(value, fromTitle, toTitle, options) {\n\tvar log = this.relink(value, fromTitle, toTitle, options);\n\tif (log && log.output && toTitle.indexOf(\"}\") >= 0) {\n\t\tdelete log.output;\n\t\tlog.impossible = true;\n\t}\n\treturn log;\n};\n\nexports.toString = function(textReference) {\n\tvar title = textReference.title || '';\n\tif (textReference.field) {\n\t\treturn title + \"!!\" + textReference.field;\n\t} else if (textReference.index) {\n\t\treturn title + \"##\" + textReference.index;\n\t}\n\treturn title;\n};\n\nexports.canBePretty = function(title) {\n\treturn !title || (title.indexOf(\"!!\") < 0 && title.indexOf(\"##\") < 0);\n};\n", - "module-type": "relinkfieldtype", - "title": "$:/plugins/flibbles/relink/js/fieldtypes/reference.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/fieldtypes/title.js": { - "text": "/*\\\nThis specifies logic for replacing a single-tiddler field. This is the\nsimplest kind of field type. One title swaps out for the other.\n\\*/\n\n// NOTE TO MODDERS: If you're making your own field types, the name must be\n// alpha characters only.\nexports.name = 'title';\n\nexports.report = function(value, callback, options) {\n\tcallback(value);\n};\n\n/**Returns undefined if no change was made.\n */\nexports.relink = function(value, fromTitle, toTitle, options) {\n\tif (value === fromTitle) {\n\t\treturn {output: toTitle};\n\t}\n\treturn undefined;\n};\n\n// This is legacy support for when 'title' was known as 'field'\nexports.aliases = ['field', 'yes'];\n", - "module-type": "relinkfieldtype", - "title": "$:/plugins/flibbles/relink/js/fieldtypes/title.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/fieldtypes/wikitext.js": { - "text": "/*\\\nThis specifies logic for updating filters to reflect title changes.\n\\*/\n\nexports.name = \"wikitext\";\n\nvar type = 'text/vnd.tiddlywiki';\n\nvar WikiParser = require(\"$:/core/modules/parsers/wikiparser/wikiparser.js\")[type];\nvar Rebuilder = require(\"$:/plugins/flibbles/relink/js/utils/rebuilder.js\");\nvar utils = require('$:/plugins/flibbles/relink/js/utils');\nvar WikitextContext = utils.getContext('wikitext');\n\nfunction collectRules() {\n\tvar rules = Object.create(null);\n\t$tw.modules.forEachModuleOfType(\"relinkwikitextrule\", function(title, exports) {\n\t\tvar names = exports.name;\n\t\tif (typeof names === \"string\") {\n\t\t\tnames = [names];\n\t\t}\n\t\tif (names !== undefined) {\n\t\t\tfor (var i = 0; i < names.length; i++) {\n\t\t\t\trules[names[i]] = exports;\n\t\t\t}\n\t\t}\n\t});\n\treturn rules;\n}\n\nfunction WikiWalker(type, text, options) {\n\tthis.options = options;\n\tif (!this.relinkMethodsInjected) {\n\t\tvar rules = collectRules();\n\t\t$tw.utils.each([this.pragmaRuleClasses, this.blockRuleClasses, this.inlineRuleClasses], function(classList) {\n\t\t\tfor (var name in classList) {\n\t\t\t\tif (rules[name]) {\n\t\t\t\t\tdelete rules[name].name;\n\t\t\t\t\t$tw.utils.extend(classList[name].prototype, rules[name]);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tWikiWalker.prototype.relinkMethodsInjected = true;\n\t}\n\tthis.context = new WikitextContext(options.settings);\n\tWikiParser.call(this, type, text, options);\n};\n\nWikiWalker.prototype = Object.create(WikiParser.prototype);\n\nWikiWalker.prototype.parsePragmas = function() {\n\tvar entries = this.tree;\n\twhile (true) {\n\t\tthis.skipWhitespace();\n\t\tif (this.pos >= this.sourceLength) {\n\t\t\tbreak;\n\t\t}\n\t\tvar nextMatch = this.findNextMatch(this.pragmaRules, this.pos);\n\t\tif (!nextMatch || nextMatch.matchIndex !== this.pos) {\n\t\t\tbreak;\n\t\t}\n\t\tentries.push.apply(entries, this.handleRule(nextMatch));\n\t}\n\treturn entries;\n};\n\nWikiWalker.prototype.parseInlineRunUnterminated = function(options) {\n\tvar entries = [];\n\tvar nextMatch = this.findNextMatch(this.inlineRules, this.pos);\n\twhile (this.pos < this.sourceLength && nextMatch) {\n\t\tif (nextMatch.matchIndex > this.pos) {\n\t\t\tthis.pos = nextMatch.matchIndex;\n\t\t}\n\t\tentries.push.apply(entries, this.handleRule(nextMatch));\n\t\tnextMatch = this.findNextMatch(this.inlineRules, this.pos);\n\t}\n\tthis.pos = this.sourceLength;\n\treturn entries;\n};\n\nWikiWalker.prototype.parseInlineRunTerminated = function(terminatorRegExp,options) {\n\tvar entries = [];\n\toptions = options || {};\n\tterminatorRegExp.lastIndex = this.pos;\n\tvar terminatorMatch = terminatorRegExp.exec(this.source);\n\tvar inlineRuleMatch = this.findNextMatch(this.inlineRules,this.pos);\n\twhile(this.pos < this.sourceLength && (terminatorMatch || inlineRuleMatch)) {\n\t\tif (terminatorMatch) {\n\t\t\tif (!inlineRuleMatch || inlineRuleMatch.matchIndex >= terminatorMatch.index) {\n\t\t\t\tthis.pos = terminatorMatch.index;\n\t\t\t\tif (options.eatTerminator) {\n\t\t\t\t\tthis.pos += terminatorMatch[0].length;\n\t\t\t\t}\n\t\t\t\treturn entries;\n\t\t\t}\n\t\t}\n\t\tif (inlineRuleMatch) {\n\t\t\tif (inlineRuleMatch.matchIndex > this.pos) {\n\t\t\t\tthis.pos = inlineRuleMatch.matchIndex;\n\t\t\t}\n\t\t\tentries.push.apply(entries, this.handleRule(inlineRuleMatch));\n\t\t\tinlineRuleMatch = this.findNextMatch(this.inlineRules, this.pos);\n\t\t\tterminatorRegExp.lastIndex = this.pos;\n\t\t\tterminatorMatch = terminatorRegExp.exec(this.source);\n\t\t}\n\t}\n\tthis.pos = this.sourceLength;\n\treturn entries;\n\n};\n\nWikiWalker.prototype.parseBlock = function(terminatorRegExp) {\n\tvar terminatorRegExp = /(\\r?\\n\\r?\\n)/mg;\n\tthis.skipWhitespace();\n\tif (this.pos >= this.sourceLength) {\n\t\treturn [];\n\t}\n\tvar nextMatch = this.findNextMatch(this.blockRules, this.pos);\n\tif(nextMatch && nextMatch.matchIndex === this.pos) {\n\t\treturn this.handleRule(nextMatch);\n\t}\n\treturn this.parseInlineRun(terminatorRegExp);\n};\n\nWikiWalker.prototype.amendRules = function(type, names) {\n\tvar only;\n\tWikiParser.prototype.amendRules.call(this, type, names);\n\tif (type === \"only\") {\n\t\tonly = true;\n\t} else if (type === \"except\") {\n\t\tonly = false;\n\t} else {\n\t\treturn;\n\t}\n\tif (only !== (names.indexOf(\"macrodef\") >= 0) && this.options.macrodefCanBeDisabled) {\n\t\tthis.options.placeholder = undefined\n\t}\n\tif (only !== (names.indexOf(\"html\") >= 0)) {\n\t\tthis.context.allowWidgets = disabled;\n\t}\n\tif (only !== (names.indexOf(\"prettylink\") >= 0)) {\n\t\tthis.context.allowPrettylinks = disabled;\n\t}\n};\n\nfunction disabled() { return false; };\n\n/// Reporter\n\nfunction WikiReporter(type, text, callback, options) {\n\tthis.callback = callback;\n\tWikiWalker.call(this, type, text, options);\n};\n\nWikiReporter.prototype = Object.create(WikiWalker.prototype);\n\nWikiReporter.prototype.handleRule = function(ruleInfo) {\n\tif (ruleInfo.rule.report) {\n\t\truleInfo.rule.report(this.source, this.callback, this.options);\n\t} else {\n\t\tif (ruleInfo.rule.matchRegExp !== undefined) {\n\t\t\tthis.pos = ruleInfo.rule.matchRegExp.lastIndex;\n\t\t} else {\n\t\t\t// We can't easily determine the end of this\n\t\t\t// rule match. We'll \"parse\" it so that\n\t\t\t// parser.pos gets updated, but we throw away\n\t\t\t// the results.\n\t\t\truleInfo.rule.parse();\n\t\t}\n\t}\n};\n\nexports.report = function(wikitext, callback, options) {\n\t// Unfortunately it's the side-effect of creating this that reports.\n\tnew WikiReporter(options.type, wikitext, callback, options);\n};\n\n/// Relinker\n\nfunction WikiRelinker(type, text, fromTitle, toTitle, options) {\n\tthis.fromTitle = fromTitle;\n\tthis.toTitle = toTitle;\n\tthis.placeholder = options.placeholder;\n\tif (this.placeholder) {\n\t\tthis.placeholder.parser = this;\n\t}\n\tWikiWalker.call(this, type, text, options);\n};\n\nWikiRelinker.prototype = Object.create(WikiWalker.prototype);\n\nWikiRelinker.prototype.handleRule = function(ruleInfo) {\n\tif (ruleInfo.rule.relink) {\n\t\tvar start = ruleInfo.matchIndex;\n\t\tvar newEntry = ruleInfo.rule.relink(this.source, this.fromTitle, this.toTitle, this.options);\n\t\tif (newEntry !== undefined) {\n\t\t\tif (newEntry.output) {\n\t\t\t\tnewEntry.start = start;\n\t\t\t\tnewEntry.end = this.pos;\n\t\t\t}\n\t\t\treturn [newEntry];\n\t\t}\n\t} else {\n\t\tif (ruleInfo.rule.matchRegExp !== undefined) {\n\t\t\tthis.pos = ruleInfo.rule.matchRegExp.lastIndex;\n\t\t} else {\n\t\t\t// We can't easily determine the end of this\n\t\t\t// rule match. We'll \"parse\" it so that\n\t\t\t// parser.pos gets updated, but we throw away\n\t\t\t// the results.\n\t\t\truleInfo.rule.parse();\n\t\t}\n\t}\n\treturn [];\n};\n\nexports.relink = function(wikitext, fromTitle, toTitle, options) {\n\tvar parser = new WikiRelinker(options.type, wikitext, fromTitle, toTitle, options),\n\t\twikiEntry = undefined;\n\t// Now that we have an array of entries, let's produce the wikiText entry\n\t// containing them all.\n\tif (parser.tree.length > 0) {\n\t\tvar builder = new Rebuilder(wikitext);\n\t\twikiEntry = {};\n\t\tfor (var i = 0; i < parser.tree.length; i++) {\n\t\t\tvar entry = parser.tree[i];\n\t\t\tif (entry.impossible) {\n\t\t\t\twikiEntry.impossible = true;\n\t\t\t}\n\t\t\tif (entry.output) {\n\t\t\t\tbuilder.add(entry.output, entry.start, entry.end);\n\t\t\t}\n\t\t}\n\t\twikiEntry.output = builder.results();\n\t}\n\treturn wikiEntry;\n};\n", - "module-type": "relinkfieldtype", - "title": "$:/plugins/flibbles/relink/js/fieldtypes/wikitext.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/fields.js": { - "text": "/*\\\n\nHandles all fields specified in the plugin configuration. Currently, this\nonly supports single-value fields.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = 'fields';\n\nexports.report = function(tiddler, callback, options) {\n\tvar fields = options.settings.getFields();\n\t$tw.utils.each(fields, function(handler, field) {\n\t\tvar input = tiddler.fields[field];\n\t\tif (input) {\n\t\t\thandler.report(input, function(title, blurb) {\n\t\t\t\tif (blurb) {\n\t\t\t\t\tcallback(title, field + ': ' + blurb);\n\t\t\t\t} else {\n\t\t\t\t\tcallback(title, field);\n\t\t\t\t}\n\t\t\t}, options);\n\t\t}\n\t});\n};\n\nexports.relink = function(tiddler, fromTitle, toTitle, changes, options) {\n\tvar fields = options.settings.getFields();\n\t$tw.utils.each(fields, function(handler, field) {\n\t\tvar input = tiddler.fields[field];\n\t\tif (input) {\n\t\t\tvar entry = handler.relink(input, fromTitle, toTitle, options);\n\t\t\tif (entry !== undefined) {\n\t\t\t\tchanges[field] = entry;\n\t\t\t}\n\t\t}\n\t});\n};\n", - "module-type": "relinkoperator", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/fields.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text.js": { - "text": "/*\\\n\nDepending on the tiddler type, this will apply textOperators which may\nrelink titles within the body.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar defaultOperator = \"text/vnd.tiddlywiki\";\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\n\nexports.name = 'text';\n\nvar textOperators = utils.getModulesByTypeAsHashmap('relinktextoperator', 'type');\n\n// $:/DefaultTiddlers is a tiddler which has type \"text/vnd.tiddlywiki\",\n// but it lies. It doesn't contain wikitext. It contains a filter, so\n// we pretend it has a filter type.\n// If you want to be able to add more exceptions for your plugin, let me know.\nvar exceptions = {\n\t\"$:/DefaultTiddlers\": \"text/x-tiddler-filter\"\n};\n\nexports.report = function(tiddler, callback, options) {\n\tvar fields = tiddler.fields;\n\tif (fields.text) {\n\t\tvar type = exceptions[fields.title] || fields.type || defaultOperator;\n\t\tif (textOperators[type]) {\n\t\t\tvar entry = textOperators[type].report(tiddler, callback, options);\n\t\t}\n\t}\n};\n\nexports.relink = function(tiddler, fromTitle, toTitle, changes, options) {\n\tvar fields = tiddler.fields;\n\tif (fields.text) {\n\t\tvar type = exceptions[fields.title] || fields.type || defaultOperator;\n\t\tif (textOperators[type]) {\n\t\t\tvar entry = textOperators[type].relink(tiddler, fromTitle, toTitle, options);\n\t\t\tif (entry) {\n\t\t\t\tchanges.text = entry;\n\t\t\t}\n\t\t}\n\t}\n};\n", - "module-type": "relinkoperator", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/filtertext.js": { - "text": "/*\\\n\nThis relinks tiddlers which contain filters in their body, as oppose to\nwikitext.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar filterHandler = require(\"$:/plugins/flibbles/relink/js/utils\").getType('filter');\n\nexports.type = 'text/x-tiddler-filter';\n\nexports.report = function(tiddler, callback, options) {\n\treturn filterHandler.report(tiddler.fields.text, callback, options);\n};\n\nexports.relink = function(tiddler, fromTitle, toTitle, options) {\n\treturn filterHandler.relink(tiddler.fields.text, fromTitle, toTitle, options)\n};\n", - "module-type": "relinktextoperator", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/filtertext.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext.js": { - "text": "/*\\\n\nChecks for fromTitle in a tiddler's text. If found, sees if it's relevant,\nand tries to swap it out if it is.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Placeholder = require(\"$:/plugins/flibbles/relink/js/utils/placeholder.js\");\nvar wikitextHandler = require('$:/plugins/flibbles/relink/js/utils.js').getType('wikitext');\n\nexports.type = 'text/vnd.tiddlywiki';\n\nexports.report = function(tiddler, callback, options) {\n\twikitextHandler.report(tiddler.fields.text, callback, options);\n};\n\nexports.relink = function(tiddler, fromTitle, toTitle, options) {\n\tvar placeholder = new Placeholder();\n\tvar currentOptions = Object.create(options);\n\tcurrentOptions.placeholder = placeholder;\n\tvar entry = wikitextHandler.relink(tiddler.fields.text, fromTitle, toTitle, currentOptions);\n\tif (entry && entry.output) {\n\t\t// If there's output, we've also got to prepend any macros\n\t\t// that the placeholder defined.\n\t\tvar preamble = placeholder.getPreamble();\n\t\tentry.output = preamble + entry.output;\n\t}\n\treturn entry;\n};\n", - "module-type": "relinktextoperator", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/code.js": { - "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles code blocks. Or rather //doesn't// handle them, since we should\nignore their contents.\n\n\"`` [[Renamed Title]] ``\" will remain unchanged.\n\n\\*/\n\nexports.name = [\"codeinline\", \"codeblock\"];\n\nexports.relink = function(text) {\n\tvar reEnd;\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\t// I'm lazy. This relink method works for both codeblock and codeinline\n\tif (this.match[0].length > 2) {\n\t\t// Must be a codeblock\n\t\treEnd = /\\r?\\n```$/mg;\n\t} else {\n\t\t// Must be a codeinline\n\t\treEnd = new RegExp(this.match[1], \"mg\");\n\t}\n\treEnd.lastIndex = this.parser.pos;\n\tvar match = reEnd.exec(text);\n\tif (match) {\n\t\tthis.parser.pos = match.index + match[0].length;\n\t} else {\n\t\tthis.parser.pos = this.parser.sourceLength;\n\t}\n\treturn undefined;\n};\n\n// Same thing. Just skip the pos ahead.\nexports.report = exports.relink;\n", - "module-type": "relinkwikitextrule", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/code.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/comment.js": { - "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles comment blocks. Or rather //doesn't// handle them, since we should\nignore their contents.\n\n\"<!-- [[Renamed Title]] -->\" will remain unchanged.\n\n\\*/\n\nexports.name = [\"commentinline\", \"commentblock\"];\n\nexports.relink = function(text) {\n\tthis.parser.pos = this.endMatchRegExp.lastIndex;\n\treturn undefined;\n};\n\nexports.report = exports.relink;\n", - "module-type": "relinkwikitextrule", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/comment.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/filteredtransclude.js": { - "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles replacement of filtered transclusions in wiki text like,\n\n{{{ [tag[docs]] }}}\n{{{ [tag[docs]] |tooltip}}}\n{{{ [tag[docs]] ||TemplateTitle}}}\n{{{ [tag[docs]] |tooltip||TemplateTitle}}}\n{{{ [tag[docs]] }}width:40;height:50;}.class.class\n\nThis renames both the list and the template field.\n\n\\*/\n\nexports.name = ['filteredtranscludeinline', 'filteredtranscludeblock'];\n\nvar filterHandler = require(\"$:/plugins/flibbles/relink/js/utils\").getType('filter');\nvar utils = require(\"./utils.js\");\n\nexports.report = function(text, callback, options) {\n\tvar m = this.match,\n\t\tfilter = m[1],\n\t\ttemplate = $tw.utils.trim(m[3]),\n\t\tappend = template ? '||' + template + '}}}' : '}}}';\n\tfilterHandler.report(filter, function(title, blurb) {\n\t\tcallback(title, '{{{' + blurb + append);\n\t}, options);\n\tif (template) {\n\t\tcallback(template, '{{{' + $tw.utils.trim(filter).replace(/\\r?\\n/mg, ' ') + '||}}}');\n\t}\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar m = this.match,\n\t\tfilter = m[1],\n\t\ttooltip = m[2],\n\t\ttemplate = m[3],\n\t\tstyle = m[4],\n\t\tclasses = m[5],\n\t\tparser = this.parser,\n\t\tentry = {};\n\tparser.pos = this.matchRegExp.lastIndex;\n\tvar modified = false;\n\n\tvar filterEntry = filterHandler.relink(filter, fromTitle, toTitle, options);\n\tif (filterEntry !== undefined) {\n\t\tif (filterEntry.output) {\n\t\t\tfilter = filterEntry.output;\n\t\t\tmodified = true;\n\t\t}\n\t\tif (filterEntry.impossible) {\n\t\t\tentry.impossible = true;\n\t\t}\n\t}\n\n\tif ($tw.utils.trim(template) === fromTitle) {\n\t\t// preserves user-inputted whitespace\n\t\ttemplate = template.replace(fromTitle, toTitle);\n\t\tmodified = true;\n\t}\n\tif (!modified) {\n\t\tif (!entry.impossible) {\n\t\t\treturn undefined;\n\t\t}\n\t} else {\n\t\tvar output = this.makeFilteredtransclude(this.parser, filter, tooltip, template, style, classes);\n\t\tif (output === undefined) {\n\t\t\tentry.impossible = true;\n\t\t} else {\n\t\t\t// By copying over the ending newline of the original\n\t\t\t// text if present, thisrelink method thus works for\n\t\t\t// both the inline and block rule\n\t\t\tentry.output = output + utils.getEndingNewline(m[0]);\n\t\t}\n\t}\n\treturn entry;\n};\n\nexports.makeFilteredtransclude = function(parser, filter, tooltip, template, style, classes) {\n\tif (canBePretty(filter) && canBePrettyTemplate(template)) {\n\t\treturn prettyList(filter, tooltip, template, style, classes);\n\t}\n\tif (classes !== undefined) {\n\t\tclasses = classes.split('.').join(' ');\n\t}\n\treturn utils.makeWidget(parser, '$list', {\n\t\tfilter: filter,\n\t\ttooltip: tooltip,\n\t\ttemplate: template,\n\t\tstyle: style || undefined,\n\t\titemClass: classes});\n};\n\nfunction prettyList(filter, tooltip, template, style, classes) {\n\tif (tooltip === undefined) {\n\t\ttooltip = '';\n\t} else {\n\t\ttooltip = \"|\" + tooltip;\n\t}\n\tif (template === undefined) {\n\t\ttemplate = '';\n\t} else {\n\t\ttemplate = \"||\" + template;\n\t}\n\tif (classes === undefined) {\n\t\tclasses = '';\n\t} else {\n\t\tclasses = \".\" + classes;\n\t}\n\tstyle = style || '';\n\treturn \"{{{\"+filter+tooltip+template+\"}}\"+style+\"}\"+classes;\n};\n\nfunction canBePretty(filter) {\n\treturn filter.indexOf('|') < 0 && filter.indexOf('}}') < 0;\n};\n\nfunction canBePrettyTemplate(template) {\n\treturn !template || (\n\t\ttemplate.indexOf('|') < 0\n\t\t&& template.indexOf('{') < 0\n\t\t&& template.indexOf('}') < 0);\n};\n", - "module-type": "relinkwikitextrule", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/filteredtransclude.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html.js": { - "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles replacement in attributes of widgets and html elements\nThis is configurable to select exactly which attributes of which elements\nshould be changed.\n\n<$link to=\"TiddlerTitle\" />\n\n\\*/\n\nvar utils = require(\"./utils.js\");\nvar Rebuilder = require(\"$:/plugins/flibbles/relink/js/utils/rebuilder\");\nvar relinkUtils = require('$:/plugins/flibbles/relink/js/utils.js');\nvar refHandler = relinkUtils.getType('reference');\nvar filterHandler = relinkUtils.getType('filter');\nvar ImportContext = relinkUtils.getContext('import');\nvar macrocall = require(\"./macrocall.js\");\n\nexports.name = \"html\";\n\nexports.report = function(text, callback, options) {\n\tvar managedElement = this.parser.context.getAttribute(this.nextTag.tag);\n\tvar importFilterAttr;\n\tvar element = this.nextTag.tag;\n\tfor (var attributeName in this.nextTag.attributes) {\n\t\tvar attr = this.nextTag.attributes[attributeName];\n\t\tvar nextEql = text.indexOf('=', attr.start);\n\t\t// This is the rare case of changing tiddler\n\t\t// \"true\" to something else when \"true\" is\n\t\t// implicit, like <$link to /> We ignore those.\n\t\tif (nextEql < 0 || nextEql > attr.end) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (this.nextTag.tag === \"$importvariables\" && attributeName === \"filter\") {\n\t\t\timportFilterAttr = attr;\n\t\t}\n\t\tvar oldLength, quotedValue = undefined, entry;\n\t\tif (attr.type === \"string\") {\n\t\t\tvar handler = getAttributeHandler(this.parser.context, this.nextTag, attributeName, options);\n\t\t\tif (!handler) {\n\t\t\t\t// We don't manage this attribute. Bye.\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\thandler.report(attr.value, function(title, blurb) {\n\t\t\t\tif (blurb) {\n\t\t\t\t\tcallback(title, '<' + element + ' ' + attributeName + '=\"' + blurb + '\" />');\n\t\t\t\t} else {\n\t\t\t\t\tcallback(title, '<' + element + ' ' + attributeName + ' />');\n\t\t\t\t}\n\t\t\t}, options);\n\t\t} else if (attr.type === \"indirect\") {\n\t\t\tentry = refHandler.report(attr.textReference, function(title, blurb) {\n\t\t\t\tcallback(title, '<' + element + ' ' + attributeName + '={{' + (blurb || '') + '}} />');\n\t\t\t}, options);\n\t\t} else if (attr.type === \"filtered\") {\n\t\t\tentry = filterHandler.report(attr.filter, function(title, blurb) {\n\t\t\t\tcallback(title, '<' + element + ' ' + attributeName + '={{{' + blurb + '}}} />');\n\t\t\t}, options);\n\t\t} else if (attr.type === \"macro\") {\n\t\t\tvar macro = attr.value;\n\t\t\tentry = macrocall.reportAttribute(this.parser, macro, function(title, blurb) {\n\t\t\t\tcallback(title, '<' + element + ' ' + attributeName + '=' + blurb + ' />');\n\t\t\t}, options);\n\t\t}\n\t\tif (quotedValue === undefined) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (this.nextTag.tag === \"$importvariables\" && attributeName === \"filter\") {\n\t\t\t// If this is an import variable filter, we gotta\n\t\t\t// remember this new value when we import lower down.\n\t\t\timportFilterAttr = quotedValue;\n\t\t}\n\t}\n\tif (importFilterAttr) {\n\t\tprocessImportFilter(this.parser, importFilterAttr, options);\n\t}\n\tthis.parse();\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar managedElement = this.parser.context.getAttribute(this.nextTag.tag),\n\t\tbuilder = new Rebuilder(text, this.nextTag.start);\n\tvar importFilterAttr;\n\tvar widgetEntry = {};\n\twidgetEntry.attributes = Object.create(null);\n\twidgetEntry.element = this.nextTag.tag;\n\tfor (var attributeName in this.nextTag.attributes) {\n\t\tvar attr = this.nextTag.attributes[attributeName];\n\t\tvar nextEql = text.indexOf('=', attr.start);\n\t\t// This is the rare case of changing tiddler\n\t\t// \"true\" to something else when \"true\" is\n\t\t// implicit, like <$link to /> We ignore those.\n\t\tif (nextEql < 0 || nextEql > attr.end) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (this.nextTag.tag === \"$importvariables\" && attributeName === \"filter\") {\n\t\t\timportFilterAttr = attr;\n\t\t}\n\t\tvar oldLength, quotedValue = undefined, entry;\n\t\tvar nestedOptions = Object.create(options);\n\t\tnestedOptions.settings = this.parser.context;\n\t\tswitch (attr.type) {\n\t\tcase 'string':\n\t\t\tvar handler = getAttributeHandler(this.parser.context, this.nextTag, attributeName, options);\n\t\t\tif (!handler) {\n\t\t\t\t// We don't manage this attribute. Bye.\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tentry = handler.relink(attr.value, fromTitle, toTitle, nestedOptions);\n\t\t\tif (entry === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (entry.output) {\n\t\t\t\tvar quote = utils.determineQuote(text, attr);\n\t\t\t\toldLength = attr.value.length + (quote.length * 2);\n\t\t\t\tquotedValue = utils.wrapAttributeValue(entry.output,quote);\n\t\t\t\tif (quotedValue === undefined) {\n\t\t\t\t\t// The value was unquotable. We need to make\n\t\t\t\t\t// a macro in order to replace it.\n\t\t\t\t\tif (!options.placeholder) {\n\t\t\t\t\t\t// but we can't...\n\t\t\t\t\t\tentry.impossible = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar value = options.placeholder.getPlaceholderFor(entry.output,handler.name)\n\t\t\t\t\t\tquotedValue = \"<<\"+value+\">>\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'indirect':\n\t\t\tentry = refHandler.relinkInBraces(attr.textReference, fromTitle, toTitle, options);\n\t\t\tif (entry === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (entry.output) {\n\t\t\t\t// +4 for '{{' and '}}'\n\t\t\t\toldLength = attr.textReference.length + 4;\n\t\t\t\tquotedValue = \"{{\"+entry.output+\"}}\";\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'filtered':\n\t\t\tentry = filterHandler.relinkInBraces(attr.filter, fromTitle, toTitle, options);\n\t\t\tif (entry === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (entry.output) {\n\t\t\t\t// +6 for '{{{' and '}}}'\n\t\t\t\toldLength = attr.filter.length + 6;\n\t\t\t\tquotedValue = \"{{{\"+ entry.output +\"}}}\";\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'macro':\n\t\t\tvar macro = attr.value;\n\t\t\tentry = macrocall.relinkAttribute(this.parser, macro, text, fromTitle, toTitle, options);\n\t\t\tif (entry === undefined) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (entry.output) {\n\t\t\t\t// already includes '<<' and '>>'\n\t\t\t\toldLength = macro.end-macro.start;\n\t\t\t\tquotedValue = entry.output;\n\t\t\t}\n\t\t}\n\t\tif (entry.impossible) {\n\t\t\twidgetEntry.impossible = true;\n\t\t}\n\t\tif (quotedValue === undefined) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (this.nextTag.tag === \"$importvariables\" && attributeName === \"filter\") {\n\t\t\t// If this is an import variable filter, we gotta\n\t\t\t// remember this new value when we import lower down.\n\t\t\timportFilterAttr = quotedValue;\n\t\t}\n\t\t// We count backwards from the end to preserve whitespace\n\t\tvar valueStart = attr.end - oldLength;\n\t\tbuilder.add(quotedValue, valueStart, attr.end);\n\t}\n\tif (importFilterAttr) {\n\t\tprocessImportFilter(this.parser, importFilterAttr, options);\n\t}\n\tvar tag = this.parse()[0];\n\tif (tag.children) {\n\t\tfor (var i = 0; i < tag.children.length; i++) {\n\t\t\tvar child = tag.children[i];\n\t\t\tif (child.output) {\n\t\t\t\tbuilder.add(child.output, child.start, child.end);\n\t\t\t}\n\t\t\tif (child.impossible) {\n\t\t\t\twidgetEntry.impossible = true;\n\t\t\t}\n\t\t}\n\t}\n\tif (builder.changed() || widgetEntry.impossible) {\n\t\twidgetEntry.output = builder.results(this.parser.pos);\n\t\treturn widgetEntry;\n\t}\n\treturn undefined;\n};\n\n/** Returns the field handler for the given attribute of the given widget.\n * If this returns undefined, it means we don't handle it. So skip.\n */\nfunction getAttributeHandler(context, widget, attributeName, options) {\n\tif (widget.tag === \"$macrocall\") {\n\t\tvar nameAttr = widget.attributes[\"$name\"];\n\t\tif (nameAttr) {\n\t\t\tvar macro = context.getMacro(nameAttr.value);\n\t\t\tif (macro) {\n\t\t\t\treturn macro[attributeName];\n\t\t\t}\n\t\t}\n\t} else {\n\t\tvar element = context.getAttribute(widget.tag);\n\t\tif (element) {\n\t\t\treturn element[attributeName];\n\t\t}\n\t}\n\treturn undefined;\n};\n\nfunction computeAttribute(context, attribute, options) {\n\tvar value;\n\tif(attribute.type === \"filtered\") {\n\t\tvar parentWidget = context.widget;\n\t\tvalue = options.wiki.filterTiddlers(attribute.filter,parentWidget)[0] || \"\";\n\t} else if(attribute.type === \"indirect\") {\n\t\tvar parentWidget = context.widget;\n\t\tvalue = options.wiki.getTextReference(attribute.textReference,\"\",parentWidget.variables.currentTiddler.value);\n\t} else if(attribute.type === \"macro\") {\n\t\tvar parentWidget = context.widget;\n\t\tvalue = parentWidget.getVariable(attribute.value.name,{params: attribute.value.params});\n\t} else { // String attribute\n\t\tvalue = attribute.value;\n\t}\n\treturn value;\n};\n\n// This processes a <$importvariables> filter attribute and adds any new\n// variables to our parser.\nfunction processImportFilter(parser, importAttribute, options) {\n\tif (typeof importAttribute === \"string\") {\n\t\t// It was changed. Reparse it. It'll be a quoted\n\t\t// attribute value. Add a dummy attribute name.\n\t\timportAttribute = $tw.utils.parseAttribute(\"p=\"+importAttribute, 0)\n\t}\n\tvar context = parser.context;\n\tvar importFilter = computeAttribute(context, importAttribute, options);\n\tparser.context = new ImportContext(options.wiki, context, importFilter);\n};\n", - "module-type": "relinkwikitextrule", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/image.js": { - "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles replacement in wiki text inline rules, like,\n\n[img[tiddler.jpg]]\n\n[img width=23 height=24 [Description|tiddler.jpg]]\n\n\\*/\n\nvar Rebuilder = require(\"$:/plugins/flibbles/relink/js/utils/rebuilder\");\nvar refHandler = require(\"$:/plugins/flibbles/relink/js/fieldtypes/reference\");\nvar filterHandler = require(\"$:/plugins/flibbles/relink/js/utils\").getType('filter');\nvar macrocall = require(\"./macrocall.js\");\nvar utils = require(\"./utils.js\");\n\nexports.name = \"image\";\n\nexports.report = function(text, callback, options) {\n\tvar ptr = this.nextImage.start + 4; //[img\n\tvar inSource = false;\n\tfor (var attributeName in this.nextImage.attributes) {\n\t\tvar attr = this.nextImage.attributes[attributeName];\n\t\tif (attributeName === \"source\" || attributeName === \"tooltip\") {\n\t\t\tif (inSource) {\n\t\t\t\tptr = text.indexOf('|', ptr);\n\t\t\t} else {\n\t\t\t\tptr = text.indexOf('[', ptr);\n\t\t\t\tinSource = true;\n\t\t\t}\n\t\t\tptr += 1;\n\t\t}\n\t\tif (attributeName === \"source\") {\n\t\t\tvar tooltip = this.nextImage.attributes.tooltip;\n\t\t\tvar blurb = '[img[' + (tooltip ? tooltip.value : '') + ']]';\n\t\t\tcallback(attr.value, blurb);\n\t\t\tptr = text.indexOf(attr.value, ptr);\n\t\t\tptr = text.indexOf(']]', ptr) + 2;\n\t\t} else if (attributeName !== \"tooltip\") {\n\t\t\tptr = reportAttribute(this.parser, attr, callback, options);\n\t\t}\n\t}\n\tthis.parser.pos = ptr;\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar ptr = this.nextImage.start,\n\t\tbuilder = new Rebuilder(text, ptr),\n\t\tmakeWidget = false,\n\t\tskipSource = false,\n\t\timageEntry;\n\tif (this.nextImage.attributes.source.value === fromTitle && !canBePretty(toTitle, this.nextImage.attributes.tooltip)) {\n\t\tif (this.parser.context.allowWidgets() && (utils.wrapAttributeValue(toTitle) || options.placeholder)) {\n\t\t\tmakeWidget = true;\n\t\t\tbuilder.add(\"<$image\", ptr, ptr+4);\n\t\t} else {\n\t\t\t// We won't be able to make a placeholder to replace\n\t\t\t// the source attribute. We check now so we don't\n\t\t\t// prematurely convert into a widget.\n\t\t\t// Keep going in case other attributes need replacing.\n\t\t\tskipSource = true;\n\t\t}\n\t}\n\tptr += 4; //[img\n\tvar inSource = false;\n\tfor (var attributeName in this.nextImage.attributes) {\n\t\tvar attr = this.nextImage.attributes[attributeName];\n\t\tif (attributeName === \"source\" || attributeName === \"tooltip\") {\n\t\t\tif (inSource) {\n\t\t\t\tptr = text.indexOf('|', ptr);\n\t\t\t} else {\n\t\t\t\tptr = text.indexOf('[', ptr);\n\t\t\t\tinSource = true;\n\t\t\t}\n\t\t\tif (makeWidget) {\n\t\t\t\tif (\" \\t\\n\".indexOf(text[ptr-1]) >= 0) {\n\t\t\t\t\tbuilder.add('', ptr, ptr+1);\n\t\t\t\t} else {\n\t\t\t\t\tbuilder.add(' ', ptr, ptr+1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tptr += 1;\n\t\t}\n\t\tif (attributeName === \"source\") {\n\t\t\tptr = text.indexOf(attr.value, ptr);\n\t\t\tif (attr.value === fromTitle) {\n\t\t\t\tif (makeWidget) {\n\t\t\t\t\tvar quotedValue = utils.wrapAttributeValue(toTitle);\n\t\t\t\t\tif (quotedValue === undefined) {\n\t\t\t\t\t\tvar key = options.placeholder.getPlaceholderFor(toTitle);\n\t\t\t\t\t\tbuilder.add(\"source=<<\"+key+\">>\", ptr, ptr+fromTitle.length);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbuilder.add(\"source=\"+quotedValue, ptr, ptr+fromTitle.length);\n\t\t\t\t\t}\n\t\t\t\t} else if (!skipSource) {\n\t\t\t\t\tbuilder.add(toTitle, ptr, ptr+fromTitle.length);\n\t\t\t\t} else {\n\t\t\t\t\tbuilder.impossible = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tptr = text.indexOf(']]', ptr);\n\t\t\tif (makeWidget) {\n\t\t\t\tbuilder.add(\"/>\", ptr, ptr+2);\n\t\t\t}\n\t\t\tptr += 2;\n\t\t} else if (attributeName === \"tooltip\") {\n\t\t\tif (makeWidget) {\n\t\t\t\tptr = text.indexOf(attr.value, ptr);\n\t\t\t\tvar quotedValue = utils.wrapAttributeValue(attr.value);\n\t\t\t\tbuilder.add(\"tooltip=\"+quotedValue, ptr, ptr+attr.value.length);\n\t\t\t}\n\t\t} else {\n\t\t\tptr = relinkAttribute(this.parser, attr, builder, fromTitle, toTitle, options);\n\t\t}\n\t}\n\tthis.parser.pos = ptr;\n\tif (builder.changed() || builder.impossible) {\n\t\timageEntry = {\n\t\t\toutput: builder.results(ptr),\n\t\t\timpossible: builder.impossible };\n\t}\n\treturn imageEntry;\n};\n\nfunction reportAttribute(parser, attribute, callback, options) {\n\tvar text = parser.source;\n\tvar ptr = text.indexOf(attribute.name, attribute.start);\n\tvar end;\n\tptr += attribute.name.length;\n\tptr = text.indexOf('=', ptr);\n\tif (attribute.type === \"string\") {\n\t\tptr = text.indexOf(attribute.value, ptr)\n\t\tvar quote = utils.determineQuote(text, attribute);\n\t\t// ignore first quote. We already passed it\n\t\tend = ptr + quote.length + attribute.value.length;\n\t} else if (attribute.type === \"indirect\") {\n\t\tptr = text.indexOf('{{', ptr);\n\t\tvar end = ptr + attribute.textReference.length + 4;\n\t\trefHandler.report(attribute.textReference, function(title, blurb) {\n\t\t\tcallback(title, '[img ' + attribute.name + '={{' + (blurb || '') + '}}]');\n\t\t}, options);\n\t} else if (attribute.type === \"filtered\") {\n\t\tptr = text.indexOf('{{{', ptr);\n\t\tvar end = ptr + attribute.filter.length + 6;\n\t\tfilterHandler.report(attribute.filter, function(title, blurb) {\n\t\t\tcallback(title, '[img ' + attribute.name + '={{{' + blurb + '}}}]');\n\t\t}, options);\n\t} else if (attribute.type === \"macro\") {\n\t\tptr = text.indexOf(\"<<\", ptr);\n\t\tvar end = attribute.value.end;\n\t\tvar macro = attribute.value;\n\t\toldValue = attribute.value;\n\t\tmacrocall.reportAttribute(parser, macro, function(title, blurb) {\n\t\t\tcallback(title, '[img ' + attribute.name + '=' + blurb + ']');\n\t\t}, options);\n\t}\n\treturn end;\n};\n\nfunction relinkAttribute(parser, attribute, builder, fromTitle, toTitle, options) {\n\tvar text = builder.text;\n\tvar ptr = text.indexOf(attribute.name, attribute.start);\n\tvar end;\n\tptr += attribute.name.length;\n\tptr = text.indexOf('=', ptr);\n\tif (attribute.type === \"string\") {\n\t\tptr = text.indexOf(attribute.value, ptr)\n\t\tvar quote = utils.determineQuote(text, attribute);\n\t\t// ignore first quote. We already passed it\n\t\tend = ptr + quote.length + attribute.value.length;\n\t} else if (attribute.type === \"indirect\") {\n\t\tptr = text.indexOf('{{', ptr);\n\t\tvar end = ptr + attribute.textReference.length + 4;\n\t\tvar ref = refHandler.relinkInBraces(attribute.textReference, fromTitle, toTitle, options);\n\t\tif (ref) {\n\t\t\tif (ref.impossible) {\n\t\t\t\tbuilder.impossible = true;\n\t\t\t}\n\t\t\tif (ref.output) {\n\t\t\t\tbuilder.add(\"{{\"+ref.output+\"}}\", ptr, end);\n\t\t\t}\n\t\t}\n\t} else if (attribute.type === \"filtered\") {\n\t\tptr = text.indexOf('{{{', ptr);\n\t\tvar end = ptr + attribute.filter.length + 6;\n\t\tvar filter = filterHandler.relinkInBraces(attribute.filter, fromTitle, toTitle, options);\n\t\tif (filter !== undefined) {\n\t\t\tif (filter.impossible) {\n\t\t\t\tbuilder.impossible = true;\n\t\t\t}\n\t\t\tif (filter.output) {\n\t\t\t\tvar quoted = \"{{{\"+filter.output+\"}}}\";\n\t\t\t\tbuilder.add(quoted, ptr, end);\n\t\t\t}\n\t\t}\n\t} else if (attribute.type === \"macro\") {\n\t\tptr = text.indexOf(\"<<\", ptr);\n\t\tvar end = attribute.value.end;\n\t\tvar macro = attribute.value;\n\t\toldValue = attribute.value;\n\t\tvar macroEntry = macrocall.relinkAttribute(parser, macro, text, fromTitle, toTitle, options);\n\t\tif (macroEntry !== undefined) {\n\t\t\tif (macroEntry.impossible) {\n\t\t\t\tbuilder.impossible = true;\n\t\t\t}\n\t\t\tif (macroEntry.output) {\n\t\t\t\tbuilder.add(macroEntry.output, ptr, end);\n\t\t\t}\n\t\t}\n\t}\n\treturn end;\n};\n\nfunction canBePretty(title, tooltip) {\n\treturn title.indexOf(']') < 0 && (tooltip || title.indexOf('|') < 0);\n};\n", - "module-type": "relinkwikitextrule", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/image.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/import.js": { - "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles import pragmas\n\n\\import [tag[MyTiddler]]\n\\*/\n\nvar utils = require(\"$:/plugins/flibbles/relink/js/utils.js\");\nvar filterRelinker = utils.getType('filter');\nvar ImportContext = utils.getContext('import');\n\nexports.name = \"import\";\n\nexports.report = function(text, callback, options) {\n\t// This moves the pos for us\n\tvar parseTree = this.parse();\n\tvar filter = parseTree[0].attributes.filter.value || '';\n\tfilterRelinker.report(filter, function(title, blurb) {\n\t\tif (blurb) {\n\t\t\tblurb = '\\\\import ' + blurb;\n\t\t} else {\n\t\t\tblurb = '\\\\import';\n\t\t}\n\t\tcallback(title, blurb);\n\t}, options);\n\t// Before we go, we need to actually import the variables\n\t// it's calling for, and any /relink pragma\n\tthis.parser.context = new ImportContext(options.wiki, this.parser.context, filter);\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\t// In this one case, I'll let the parser parse out the filter and move\n\t// the ptr.\n\tvar start = this.matchRegExp.lastIndex,\n\t\tparseTree = this.parse(),\n\t\tfilter = parseTree[0].attributes.filter.value || '',\n\t\tentry = filterRelinker.relink(filter, fromTitle, toTitle, options);\n\tif (entry !== undefined && entry.output) {\n\t\tvar newline = text.substring(start+filter.length, this.parser.pos);\n\t\tfilter = entry.output;\n\t\tentry.output = \"\\\\import \" + filter + newline;\n\t}\n\n\t// Before we go, we need to actually import the variables\n\t// it's calling for, and any /relink pragma\n\tthis.parser.context = new ImportContext(options.wiki, this.parser.context, filter);\n\n\treturn entry;\n};\n", - "module-type": "relinkwikitextrule", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/import.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/macrocall.js": { - "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles macro calls.\n\n<<myMacro '[[MyFilter]]' 'myTitle'>>\n\n\\*/\n\nvar utils = require(\"./utils.js\");\nvar Rebuilder = require(\"$:/plugins/flibbles/relink/js/utils/rebuilder\");\nvar EntryNode = require('$:/plugins/flibbles/relink/js/utils/entry');\n\nexports.name = [\"macrocallinline\", \"macrocallblock\"];\n\n// Error thrown when a macro's definition is needed, but can't be found.\nfunction CannotFindMacroDef() {};\nCannotFindMacroDef.prototype.impossible = true;\nCannotFindMacroDef.prototype.name = \"macroparam\";\n// Failed relinks due to missing definitions aren't reported for now.\n// I may want to do something special later on.\nCannotFindMacroDef.prototype.report = function() { return []; };\n\nexports.report = function(text, callback, options) {\n\tvar macroInfo = getInfoFromRule(this);\n\tthis.parser.pos = macroInfo.end;\n\tthis.reportAttribute(this.parser, macroInfo, callback, options);\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar macroInfo = getInfoFromRule(this);\n\tvar managedMacro = this.parser.context.getMacro(macroInfo.name);\n\tthis.parser.pos = macroInfo.end;\n\tif (!managedMacro) {\n\t\t// We don't manage this macro. Bye.\n\t\treturn undefined;\n\t}\n\tvar mayBeWidget = this.parser.context.allowWidgets();\n\tvar names = getParamNames(this.parser, macroInfo.name, macroInfo.params, options);\n\tif (names === undefined) {\n\t\t// Needed the definition, and couldn't find it. So if a single\n\t\t// parameter needs to placeholder, just fail.\n\t\tmayBeWidget = false;\n\t}\n\tvar entry = relinkMacroInvocation(this.parser, macroInfo, text, fromTitle, toTitle, mayBeWidget, options);\n\tif (entry && entry.output) {\n\t\tentry.output = macroToString(entry.output, text, names, options);\n\t}\n\treturn entry;\n};\n\n/** Relinks macros that occur as attributes, like <$element attr=<<...>> />\n * Processes the same, except it can't downgrade into a widget if the title\n * is complicated.\n */\nexports.relinkAttribute = function(parser, macro, text, fromTitle, toTitle, options) {\n\tvar entry = relinkMacroInvocation(parser, macro, text, fromTitle, toTitle, false, options);\n\tif (entry && entry.output) {\n\t\tentry.output = macroToStringMacro(entry.output, text, options);\n\t}\n\treturn entry;\n};\n\n/** As in, report a macrocall invocation that is an html attribute. */\nexports.reportAttribute = function(parser, macro, callback, options) {\n\tvar managedMacro = parser.context.getMacro(macro.name);\n\tif (!managedMacro) {\n\t\t// We don't manage this macro. Bye.\n\t\treturn undefined;\n\t}\n\tfor (var managedArg in managedMacro) {\n\t\tvar index;\n\t\ttry {\n\t\t\tindex = getParamIndexWithinMacrocall(parser, macro.name, managedArg, macro.params, options);\n\t\t} catch (e) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (index < 0) {\n\t\t\t// The argument was not supplied. Move on to next.\n\t\t\tcontinue;\n\t\t}\n\t\tvar param = macro.params[index];\n\t\tvar handler = managedMacro[managedArg];\n\t\tvar nestedOptions = Object.create(options);\n\t\tnestedOptions.settings = parser.context;\n\t\tvar entry = handler.report(param.value, function(title, blurb) {\n\t\t\tvar rtn = managedArg;\n\t\t\tif (blurb) {\n\t\t\t\trtn += ': \"' + blurb + '\"';\n\t\t\t}\n\t\t\tcallback(title, '<<' + macro.name + ' ' + rtn + '>>');\n\t\t}, nestedOptions);\n\t}\n};\n\n/**Processes the given macro,\n * macro: {name:, params:, start:, end:}\n * each parameters: {name:, end:, value:}\n * Macro invocation returned is the same, but relinked, and may have new keys:\n * parameters: {type: macro, start:, newValue: (quoted replacement value)}\n * Output of the returned entry isn't a string, but a macro object. It needs\n * to be converted.\n */\nfunction relinkMacroInvocation(parser, macro, text, fromTitle, toTitle, mayBeWidget, options) {\n\tvar managedMacro = parser.context.getMacro(macro.name);\n\tvar modified = false;\n\tif (!managedMacro) {\n\t\t// We don't manage this macro. Bye.\n\t\treturn undefined;\n\t}\n\tvar outMacro = $tw.utils.extend({}, macro);\n\tvar macroEntry = {};\n\toutMacro.params = macro.params.slice();\n\tfor (var managedArg in managedMacro) {\n\t\tvar index;\n\t\ttry {\n\t\t\tindex = getParamIndexWithinMacrocall(parser, macro.name, managedArg, macro.params, options);\n\t\t} catch (e) {\n\t\t\tif (e instanceof CannotFindMacroDef) {\n\t\t\t\tmacroEntry.impossible = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tif (index < 0) {\n\t\t\t// this arg either was not supplied, or we can't find\n\t\t\t// the definition, so we can't tie it to an anonymous\n\t\t\t// argument. Either way, move on to the next.\n\t\t\tcontinue;\n\t\t}\n\t\tvar param = macro.params[index];\n\t\tvar handler = managedMacro[managedArg];\n\t\tvar nestedOptions = Object.create(options);\n\t\tnestedOptions.settings = parser.context;\n\t\tvar entry = handler.relink(param.value, fromTitle, toTitle, nestedOptions);\n\t\tif (entry === undefined) {\n\t\t\tcontinue;\n\t\t}\n\t\t// Macro parameters can only be string parameters, not\n\t\t// indirect, or macro, or filtered\n\t\tif (entry.impossible) {\n\t\t\tmacroEntry.impossible = true;\n\t\t}\n\t\tif (!entry.output) {\n\t\t\tcontinue;\n\t\t}\n\t\tvar quote = utils.determineQuote(text, param);\n\t\tvar quoted = utils.wrapParameterValue(entry.output, quote);\n\t\tvar newParam = $tw.utils.extend({}, param);\n\t\tif (quoted === undefined) {\n\t\t\tif (!mayBeWidget || !options.placeholder) {\n\t\t\t\tmacroEntry.impossible = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tvar ph = options.placeholder.getPlaceholderFor(entry.output,handler.name);\n\t\t\tnewParam.newValue = \"<<\"+ph+\">>\";\n\t\t\tnewParam.type = \"macro\";\n\t\t} else {\n\t\t\tnewParam.start = newParam.end - (newParam.value.length + (quote.length*2));\n\t\t\tnewParam.value = entry.output;\n\t\t\tnewParam.newValue = quoted;\n\t\t}\n\t\toutMacro.params[index] = newParam;\n\t\tmodified = true;\n\t}\n\tif (modified || macroEntry.impossible) {\n\t\tif (modified) {\n\t\t\tmacroEntry.output = outMacro;\n\t\t}\n\t\treturn macroEntry;\n\t}\n\treturn undefined;\n};\n\nfunction getInfoFromRule(rule) {\n\t// Get all the details of the match\n\tvar macroInfo = rule.nextCall;\n\tif (!macroInfo) {\n\t\t// rule.match is used <v5.1.24\n\t\tvar match = rule.match,\n\t\t\toffset = $tw.utils.skipWhiteSpace(match[0], match[1].length+2);\n\t\tmacroInfo = {\n\t\t\tname: match[1],\n\t\t\tstart: rule.matchRegExp.lastIndex - match[0].length,\n\t\t\tend: rule.matchRegExp.lastIndex,\n\t\t};\n\t\tmacroInfo.params = parseParams(match[2], offset+macroInfo.start);\n\t}\n\treturn macroInfo;\n};\n\nfunction mustBeAWidget(macro) {\n\tfor (var i = 0; i < macro.params.length; i++) {\n\t\tif (macro.params[i].type === \"macro\") {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false\n};\n\n/**Given a macro object ({name:, params:, start: end:}), and the text where\n * it was parsed from, returns a new macro that maintains any syntactic\n * structuring.\n */\nfunction macroToString(macro, text, names, options) {\n\tif (mustBeAWidget(macro)) {\n\t\tvar attrs = [];\n\t\tfor (var i = 0; i < macro.params.length; i++) {\n\t\t\tvar p = macro.params[i];\n\t\t\tvar val;\n\t\t\tif (p.newValue) {\n\t\t\t\tval = p.newValue;\n\t\t\t} else {\n\t\t\t\tval = utils.wrapAttributeValue(p.value);\n\t\t\t}\n\t\t\tattrs.push(\" \"+names[i]+\"=\"+val);\n\t\t}\n\t\treturn \"<$macrocall $name=\"+utils.wrapAttributeValue(macro.name)+attrs.join('')+\"/>\";\n\t} else {\n\t\treturn macroToStringMacro(macro, text, options);\n\t}\n};\n\nfunction macroToStringMacro(macro, text, options) {\n\tvar builder = new Rebuilder(text, macro.start);\n\tfor (var i = 0; i < macro.params.length; i++) {\n\t\tvar param = macro.params[i];\n\t\tif (param.newValue) {\n\t\t\tbuilder.add(param.newValue, param.start, param.end);\n\t\t}\n\t}\n\treturn builder.results(macro.end);\n};\n\n/** Returns -1 if param definitely isn't in macrocall.\n */\nfunction getParamIndexWithinMacrocall(parser, macroName, param, params, options) {\n\tvar index, i, anonsExist = false;\n\tfor (i = 0; i < params.length; i++) {\n\t\tvar name = params[i].name;\n\t\tif (name === param) {\n\t\t\treturn i;\n\t\t}\n\t\tif (name === undefined) {\n\t\t\tanonsExist = true;\n\t\t}\n\t}\n\tif (!anonsExist) {\n\t\t// If no anonymous parameters are present, and we didn't find\n\t\t// it among the named ones, it must not be there.\n\t\treturn -1;\n\t}\n\tvar expectedIndex = indexOfParameterDef(parser, macroName, param, options);\n\t// We've got to skip over all the named parameter instances.\n\tif (expectedIndex >= 0) {\n\t\tvar anonI = 0;\n\t\tfor (i = 0; i < params.length; i++) {\n\t\t\tif (params[i].name === undefined) {\n\t\t\t\tif (anonI === expectedIndex) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t\tanonI++;\n\t\t\t} else {\n\t\t\t\tvar indexOfOther = indexOfParameterDef(parser, macroName, params[i].name, options);\n\t\t\t\tif (indexOfOther < expectedIndex) {\n\t\t\t\t\tanonI++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn -1;\n};\n\n// Looks up the definition of a macro, and figures out what the expected index\n// is for the given parameter.\nfunction indexOfParameterDef(parser, macroName, paramName, options) {\n\tvar def = parser.context.getMacroDefinition(macroName);\n\tif (def === undefined) {\n\t\tthrow new CannotFindMacroDef();\n\t}\n\tvar params = def.params || [];\n\tfor (var i = 0; i < params.length; i++) {\n\t\tif (params[i].name === paramName) {\n\t\t\treturn i;\n\t\t}\n\t}\n\treturn -1;\n};\n\nfunction getParamNames(parser, macroName, params, options) {\n\tvar used = Object.create(null);\n\tvar rtn = new Array(params.length);\n\tvar anonsExist = false;\n\tvar i;\n\tfor (i = 0; i < params.length; i++) {\n\t\tvar name = params[i].name;\n\t\tif (name) {\n\t\t\trtn[i] = name;\n\t\t\tused[name] = true;\n\t\t} else {\n\t\t\tanonsExist = true;\n\t\t}\n\t}\n\tif (anonsExist) {\n\t\tvar def = parser.context.getMacroDefinition(macroName);\n\t\tif (def === undefined) {\n\t\t\t// If there are anonymous parameters, and we can't\n\t\t\t// find the definition, then we can't hope to create\n\t\t\t// a widget.\n\t\t\treturn undefined;\n\t\t}\n\t\tvar defParams = def.params || [];\n\t\tvar defPtr = 0;\n\t\tfor (i = 0; i < params.length; i++) {\n\t\t\tif (rtn[i] === undefined) {\n\t\t\t\twhile(defPtr < defParams.length && used[defParams[defPtr].name]) {\n\t\t\t\t\tdefPtr++;\n\t\t\t\t}\n\t\t\t\tif (defPtr >= defParams.length) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\trtn[i] = defParams[defPtr].name;\n\t\t\t\tused[defParams[defPtr].name] = true;\n\t\t\t}\n\t\t}\n\t}\n\treturn rtn;\n};\n\nfunction parseParams(paramString, pos) {\n\tvar params = [],\n\t\treParam = /\\s*(?:([A-Za-z0-9\\-_]+)\\s*:)?(?:\\s*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\"'\\s]+)))/mg,\n\t\tparamMatch = reParam.exec(paramString);\n\twhile(paramMatch) {\n\t\t// Process this parameter\n\t\tvar paramInfo = { };\n\t\t// We need to find the group match that isn't undefined.\n\t\tfor (var i = 2; i <= 6; i++) {\n\t\t\tif (paramMatch[i] !== undefined) {\n\t\t\t\tparamInfo.value = paramMatch[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(paramMatch[1]) {\n\t\t\tparamInfo.name = paramMatch[1];\n\t\t}\n\t\t//paramInfo.start = pos;\n\t\tparamInfo.end = reParam.lastIndex + pos;\n\t\tparams.push(paramInfo);\n\t\t// Find the next match\n\t\tparamMatch = reParam.exec(paramString);\n\t}\n\treturn params;\n};\n", - "module-type": "relinkwikitextrule", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/macrocall.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/macrodef.js": { - "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles pragma macro definitions. Except we only update placeholder macros\nthat we may have previously install.\n\n\\define relink-?() Tough title\n\n\\*/\n\nvar utils = require(\"$:/plugins/flibbles/relink/js/utils\");\nvar VariableContext = utils.getContext('variable');\n\nexports.name = \"macrodef\";\n\nexports.report = function(text, callback, options) {\n\tvar setParseTreeNode = this.parse(),\n\t\tm = this.match,\n\t\tname = m[1];\n\tthis.parser.context = new VariableContext(this.parser.context, setParseTreeNode[0]);\n\t// Parse set the pos pointer, but we don't want to skip the macro body.\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar endMatch = getBodyMatch(text, this.parser.pos, m[3]);\n\tif (endMatch) {\n\t\tvar value = endMatch[2],\n\t\t\thandler = utils.getType(getActiveType(name, m[2]) || 'wikitext');\n\t\tif (handler) {\n\t\t\tvar entry = handler.report(value, function(title, blurb) {\n\t\t\t\tvar macroStr = '\\\\define ' + name + '()';\n\t\t\t\tif (blurb) {\n\t\t\t\t\tmacroStr += ' ' + blurb;\n\t\t\t\t}\n\t\t\t\tcallback(title, macroStr);\n\t\t\t}, options);\n\t\t}\n\t\tthis.parser.pos = endMatch.index + endMatch[0].length;\n\t}\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar setParseTreeNode = this.parse(),\n\t\tentry,\n\t\tm = this.match,\n\t\tname = m[1],\n\t\tparams = m[2],\n\t\tmultiline = m[3];\n\tthis.parser.context = new VariableContext(this.parser.context, setParseTreeNode[0]);\n\t// Parse set the pos pointer, but we don't want to skip the macro body.\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar endMatch = getBodyMatch(text, this.parser.pos, multiline);\n\tif (endMatch) {\n\t\tvar value = endMatch[2],\n\t\t\ttype = getActiveType(name, params),\n\t\t\thandler = utils.getType(type || 'wikitext');\n\t\tif (handler) {\n\t\t\t// If this is an active relink placeholder, then let's remember it\n\t\t\tif (type && options.placeholder) {\n\t\t\t\toptions.placeholder.registerExisting(name, value);\n\t\t\t}\n\t\t\t// Relink the contents\n\t\t\tentry = handler.relink(value, fromTitle, toTitle, options);\n\t\t\tif (entry && entry.output) {\n\t\t\t\tentry.output = m[0] + endMatch[1] + entry.output + endMatch[0];\n\t\t\t}\n\t\t}\n\t\tthis.parser.pos = endMatch.index + endMatch[0].length;\n\t}\n\treturn entry;\n};\n\n// Return another match for the body, but tooled uniquely\n// m[1] = whitespace before body\n// m[2] = body\n// m.index + m[0].length -> end of match\nfunction getBodyMatch(text, pos, isMultiline) {\n\tvar whitespace,\n\t\tvalueRegExp;\n\tif (isMultiline) {\n\t\tvalueRegExp = /\\r?\\n\\\\end[^\\S\\n\\r]*(?:\\r?\\n|$)/mg;\n\t\twhitespace = '';\n\t} else {\n\t\tvalueRegExp = /(?:\\r?\\n|$)/mg;\n\t\tvar newPos = $tw.utils.skipWhiteSpace(text, pos);\n\t\twhitespace = text.substring(pos, newPos);\n\t\tpos = newPos;\n\t}\n\tvalueRegExp.lastIndex = pos;\n\tvar match = valueRegExp.exec(text);\n\tif (match) {\n\t\tmatch[1] = whitespace;\n\t\tmatch[2] = text.substring(pos, match.index);\n\t}\n\treturn match;\n};\n\nfunction getActiveType(macroName, parameters) {\n\tvar placeholder = /^relink-(?:(\\w+)-)?\\d+$/.exec(macroName);\n\t// normal macro or special placeholder?\n\tif (placeholder && parameters === '') {\n\t\treturn placeholder[1] || 'title';\n\t}\n\treturn undefined;\n};\n", - "module-type": "relinkwikitextrule", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/macrodef.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/prettylink.js": { - "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles replacement in wiki text inline rules, like,\n\n[[Introduction]]\n\n[[link description|TiddlerTitle]]\n\n\\*/\n\nvar utils = require(\"./utils.js\");\n\nexports.name = \"prettylink\";\n\nexports.report = function(text, callback, options) {\n\tvar text = this.match[1],\n\t\tlink = this.match[2] || text;\n\tif (!$tw.utils.isLinkExternal(link)) {\n\t\tcallback(link, '[[' + text + ']]');\n\t}\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar caption, m = this.match;\n\tif (m[2] === fromTitle) {\n\t\t// format is [[caption|MyTiddler]]\n\t\tcaption = m[1];\n\t} else if (m[2] !== undefined || m[1] !== fromTitle) {\n\t\t// format is [[MyTiddler]], and it doesn't match\n\t\treturn undefined;\n\t}\n\tvar entry = { output: utils.makePrettylink(this.parser, toTitle, caption) };\n\tif (entry.output === undefined) {\n\t\tentry.impossible = true;\n\t}\n\treturn entry;\n};\n", - "module-type": "relinkwikitextrule", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/prettylink.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/relink.js": { - "text": "/*\\\nmodule-type: wikirule\n\nThis defines the \\relink inline pragma used to locally declare\nrelink rules for macros.\n\nIt takes care of providing its own relink and report rules.\n\n\\*/\n\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\nvar language = require('$:/plugins/flibbles/relink/js/language.js');\n\nexports.name = \"relink\";\nexports.types = {pragma: true};\n\nexports.init = function(parser) {\n\tthis.parser = parser;\n\tthis.matchRegExp = /^\\\\relink[^\\S\\n]+([^(\\s]+)([^\\r\\n]*)(\\r?\\n)?/mg;\n};\n\n/**This makes the widget that the macro library will later parse to determine\n * new macro relink state.\n *\n * It's a <$set> widget so it can appear BEFORE \\define pragma and not\n * prevent that pragma from being scooped up by importvariables.\n * (importvariables stops scooping as soon as it sees something besides $set) */\nexports.parse = function() {\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tvar macroName;\n\tvar macroParams = Object.create(null);\n\tvar error = undefined;\n\tvar rtn = [];\n\tvar self = this;\n\tthis.interpretSettings(function(macro, parameter, type) {\n\t\tmacroName = macro;\n\t\tif (type && !utils.getType(type)) {\n\t\t\terror = language.getString(\"Error/UnrecognizedType\",\n\t\t\t\t{variables: {type: type}, wiki: self.parser.wiki});\n\t\t}\n\t\tmacroParams[parameter] = type;\n\t});\n\t// If no macroname. Return nothing, this rule will be ignored by parsers\n\tif (macroName) {\n\t\tvar relink = Object.create(null);\n\t\trelink[macroName] = macroParams;\n\t\trtn.push({\n\t\t\ttype: \"set\",\n\t\t\tattributes: {\n\t\t\t\tname: {type: \"string\", value: \"\"}\n\t\t\t},\n\t\t\tchildren: [],\n\t\t\tisMacroDefinition: true,\n\t\t\trelink: relink});\n\t}\n\tif (error) {\n\t\trtn.push({\n\t\t\ttype: \"element\", tag: \"span\", attributes: {\n\t\t\t\t\"class\": {\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tvalue: \"tc-error tc-relink-error\"\n\t\t\t\t}\n\t\t\t}, children: [\n\t\t\t\t{type: \"text\", text: error}\n\t\t\t]});\n\t}\n\treturn rtn;\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar parser = this.parser;\n\tvar currentTiddler = parser.context.widget.variables.currentTiddler.value;\n\tparser.pos = this.matchRegExp.lastIndex;\n\tthis.interpretSettings(function(macro, parameter, type) {\n\t\toptions.settings.addSetting(parser.wiki, macro, parameter, type, currentTiddler);\n\t});\n\t// Return nothing, because this rule is ignored by the parser\n\treturn undefined;\n};\n\nexports.interpretSettings = function(block) {\n\tvar paramString = this.match[2];\n\tif (paramString !== \"\") {\n\t\tvar macro = this.match[1];\n\t\tvar reParam = /\\s*([A-Za-z0-9\\-_]+)(?:\\s*:\\s*([^\\s]+))?/mg;\n\t\tvar paramMatch = reParam.exec(paramString);\n\t\twhile (paramMatch) {\n\t\t\tvar parameter = paramMatch[1];\n\t\t\tvar type = paramMatch[2];\n\t\t\tblock(macro, parameter, type);\n\t\t\tparamMatch = reParam.exec(paramString);\n\t\t}\n\t}\n};\n", - "module-type": "wikirule", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/relink.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/rules.js": { - "text": "/*\\\nmodule-type: relinkwikitextrule\n\nParses and acknowledges any pragma rules a tiddler has.\n\n\\rules except html wikilink\n\n\\*/\n\nexports.name = \"rules\";\n\n/**This is all we have to do. The rules rule doesn't parse. It just amends\n * the rules, which is exactly what I want it to do too.\n * It also takes care of moving the pos pointer forward.\n */\nexports.relink = function() {\n\tthis.parse();\n\treturn undefined;\n};\n\n// Same deal\nexports.report = exports.relink;\n", - "module-type": "relinkwikitextrule", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/rules.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/syslink.js": { - "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles sys links\n\n$:/sys/link\n\nbut not:\n\n~$:/sys/link\n\n\\*/\n\nvar utils = require(\"./utils.js\");\n\nexports.name = \"syslink\";\n\nexports.report = function(text, callback, options) {\n\tvar title = this.match[0];\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tif (title[0] !== \"~\") {\n\t\tcallback(title, '~' + title);\n\t}\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar entry = undefined;\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tif (this.match[0] === fromTitle && this.match[0][0] !== \"~\") {\n\t\tentry = {output: this.makeSyslink(toTitle, options)};\n\t\tif (entry.output === undefined) {\n\t\t\tentry.impossible = true;\n\t\t}\n\t}\n\treturn entry;\n};\n\nexports.makeSyslink = function(title, options) {\n\tvar match = title.match(this.matchRegExp);\n\tif (match && match[0] === title && title[0] !== \"~\") {\n\t\treturn title;\n\t} else {\n\t\treturn utils.makePrettylink(this.parser, title);\n\t}\n};\n", - "module-type": "relinkwikitextrule", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/syslink.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/transclude.js": { - "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles replacement of transclusions in wiki text like,\n\n{{RenamedTiddler}}\n{{RenamedTiddler||TemplateTitle}}\n\nThis renames both the tiddler and the template field.\n\n\\*/\n\nvar refHandler = require(\"$:/plugins/flibbles/relink/js/fieldtypes/reference\");\nvar utils = require(\"./utils.js\");\n\nexports.name = ['transcludeinline', 'transcludeblock'];\n\nexports.report = function(text, callback, options) {\n\tvar m = this.match,\n\t\trefString = $tw.utils.trim(m[1]),\n\t\tref = parseTextReference(refString);\n\t\ttemplate = $tw.utils.trim(m[2]);\n\tif (ref.title) {\n\t\tvar suffix = '';\n\t\tif (ref.index) {\n\t\t\tsuffix = '##' + ref.index;\n\t\t} else if (ref.field) {\n\t\t\tsuffix = '!!' + ref.field;\n\t\t}\n\t\tif (template) {\n\t\t\tsuffix = suffix + '||' + template;\n\t\t}\n\t\tcallback(ref.title, '{{' + suffix + '}}')\n\t}\n\tif (template) {\n\t\tcallback(template, '{{' + refString + '||}}');\n\t}\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar m = this.match,\n\t\treference = parseTextReference(m[1]),\n\t\ttemplate = m[2],\n\t\tentry = undefined,\n\t\tmodified = false;\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tif ($tw.utils.trim(reference.title) === fromTitle) {\n\t\t// preserve user's whitespace\n\t\treference.title = reference.title.replace(fromTitle, toTitle);\n\t\tmodified = true;\n\t}\n\tif ($tw.utils.trim(template) === fromTitle) {\n\t\ttemplate = template.replace(fromTitle, toTitle);\n\t\tmodified = true;\n\t}\n\tif (modified) {\n\t\tvar output = this.makeTransclude(this.parser, reference, template);\n\t\tif (output) {\n\t\t\t// Adding any newline that might have existed is\n\t\t\t// what allows this relink method to work for both\n\t\t\t// the block and inline filter wikitext rule.\n\t\t\tentry = {output: output + utils.getEndingNewline(m[0])};\n\t\t} else {\n\t\t\tentry = {impossible: true}\n\t\t}\n\t}\n\treturn entry;\n};\n\n// I have my own because the core one is deficient for my needs.\nfunction parseTextReference(textRef) {\n\t// Separate out the title, field name and/or JSON indices\n\tvar reTextRef = /^([\\w\\W]*?)(?:!!(\\S[\\w\\W]*)|##(\\S[\\w\\W]*))?$/g;\n\t\tmatch = reTextRef.exec(textRef),\n\t\tresult = {};\n\tif(match) {\n\t\t// Return the parts\n\t\tresult.title = match[1];\n\t\tresult.field = match[2];\n\t\tresult.index = match[3];\n\t} else {\n\t\t// If we couldn't parse it\n\t\tresult.title = textRef\n\t}\n\treturn result;\n};\n\n/** This converts a reference and a template into a string representation\n * of a transclude.\n */\nexports.makeTransclude = function(parser, reference, template) {\n\tvar rtn;\n\tif (!canBePrettyTemplate(template)) {\n\t\tvar widget = utils.makeWidget(parser, '$transclude', {\n\t\t\ttiddler: $tw.utils.trim(template),\n\t\t\tfield: reference.field,\n\t\t\tindex: reference.index});\n\t\tif (reference.title && widget !== undefined) {\n\t\t\trtn = utils.makeWidget(parser, '$tiddler', {tiddler: $tw.utils.trim(reference.title)}, widget);\n\t\t} else {\n\t\t\trtn = widget;\n\t\t}\n\t} else if (!canBePrettyTitle(reference.title)) {\n\t\t// This block and the next account for the 1%...\n\t\tvar reducedRef = {field: reference.field, index: reference.index};\n\t\trtn = utils.makeWidget(parser, '$tiddler', {tiddler: $tw.utils.trim(reference.title)}, prettyTransclude(reducedRef, template));\n\t} else {\n\t\t// This block takes care of 99% of all cases\n\t\trtn = prettyTransclude(reference, template);\n\t}\n\treturn rtn;\n};\n\nfunction canBePrettyTitle(value) {\n\treturn refHandler.canBePretty(value) && canBePrettyTemplate(value);\n};\n\nfunction canBePrettyTemplate(value) {\n\treturn !value || (value.indexOf('}') < 0 && value.indexOf('{') < 0 && value.indexOf('|') < 0);\n};\n\nfunction prettyTransclude(textReference, template) {\n\tif (typeof textReference !== \"string\") {\n\t\ttextReference = refHandler.toString(textReference);\n\t}\n\tif (!textReference) {\n\t\ttextReference = '';\n\t}\n\tif (template !== undefined) {\n\t\treturn \"{{\"+textReference+\"||\"+template+\"}}\";\n\t} else {\n\t\treturn \"{{\"+textReference+\"}}\";\n\t}\n};\n", - "module-type": "relinkwikitextrule", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/transclude.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/utils.js": { - "text": "/*\\\nmodule-type: library\n\nUtility methods for the wikitext relink rules.\n\n\\*/\n\nexports.makeWidget = function(parser, tag, attributes, body) {\n\tif (!parser.context.allowWidgets()) {\n\t\treturn undefined;\n\t}\n\tvar string = '<' + tag;\n\tfor (var attr in attributes) {\n\t\tvar value = attributes[attr];\n\t\tif (value !== undefined) {\n\t\t\tvar quoted = exports.wrapAttributeValue(value);\n\t\t\tif (!quoted) {\n\t\t\t\tif (!parser.options.placeholder) {\n\t\t\t\t\t// It's not possible to make this widget\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t\tvar category = getPlaceholderCategory(parser.context, tag, attr);\n\t\t\t\tquoted = '<<' + parser.placeholder.getPlaceholderFor(value, category) + '>>';\n\t\t\t}\n\t\t\tstring += ' ' + attr + '=' + quoted;\n\t\t}\n\t}\n\tif (body !== undefined) {\n\t\tstring += '>' + body + '</' + tag + '>';\n\t} else {\n\t\tstring += '/>';\n\t}\n\treturn string;\n};\n\nfunction getPlaceholderCategory(context, tag, attribute) {\n\tvar element = context.getAttribute(tag);\n\tvar rule = element && element[attribute];\n\t// titles go to relink-\\d\n\t// plaintext goes to relink-plaintext-\\d\n\t// because titles are way more common, also legacy\n\tif (rule === undefined) {\n\t\treturn 'plaintext';\n\t} else {\n\t\trule = rule.fields.text;\n\t\tif (rule === 'title') {\n\t\t\trule = undefined;\n\t\t}\n\t\treturn rule;\n\t}\n};\n\nexports.makePrettylink = function(parser, title, caption) {\n\tvar output;\n\tif (parser.context.allowPrettylinks() && canBePrettylink(title, caption)) {\n\t\tif (caption !== undefined) {\n\t\t\toutput = \"[[\" + caption + \"|\" + title + \"]]\";\n\t\t} else {\n\t\t\toutput = \"[[\" + title + \"]]\";\n\t\t}\n\t} else if (caption !== undefined) {\n\t\tvar safeCaption = sanitizeCaption(parser, caption);\n\t\tif (safeCaption !== undefined) {\n\t\t\toutput = exports.makeWidget(parser, '$link', {to: title}, safeCaption);\n\t\t}\n\t} else if (exports.shorthandPrettylinksSupported(parser.wiki)) {\n\t\toutput = exports.makeWidget(parser, '$link', {to: title});\n\t} else if (parser.context.allowWidgets() && parser.placeholder) {\n\t\t// If we don't have a caption, we must resort to\n\t\t// placeholders anyway to prevent link/caption desync\n\t\t// from later relinks.\n\t\t// It doesn't matter whether the tiddler is quotable.\n\t\tvar ph = parser.placeholder.getPlaceholderFor(title);\n\t\toutput = \"<$link to=<<\"+ph+\">>><$text text=<<\"+ph+\">>/></$link>\";\n\t}\n\treturn output;\n};\n\n/**In version 5.1.20, Tiddlywiki made it so <$link to\"something\" /> would\n * use \"something\" as a caption. This is preferable. However, Relink works\n * going back to 5.1.14, so we need to have different handling for both\n * cases.\n */\nvar _supported;\nexports.shorthandPrettylinksSupported = function(wiki) {\n\tif (_supported === undefined) {\n\t\tvar test = wiki.renderText(\"text/plain\", \"text/vnd.tiddlywiki\", \"<$link to=test/>\");\n\t\t_supported = (test === \"test\");\n\t}\n\treturn _supported;\n};\n\n/**Return true if value can be used inside a prettylink.\n */\nfunction canBePrettylink(value, customCaption) {\n\treturn value.indexOf(\"]]\") < 0 && value[value.length-1] !== ']' && (customCaption !== undefined || value.indexOf('|') < 0);\n};\n\nfunction sanitizeCaption(parser, caption) {\n\tvar plaintext = parser.wiki.renderText(\"text/plain\", \"text/vnd.tiddlywiki\", caption);\n\tif (plaintext === caption && caption.indexOf(\"</$link>\") <= 0) {\n\t\treturn caption;\n\t} else {\n\t\treturn exports.makeWidget(parser, '$text', {text: caption});\n\t}\n};\n\n/**Finds an appropriate quote mark for a given value.\n *\n *Tiddlywiki doesn't have escape characters for attribute values. Instead,\n * we just have to find the type of quotes that'll work for the given title.\n * There exist titles that simply can't be quoted.\n * If it can stick with the preference, it will.\n *\n * return: Returns the wrapped value, or undefined if it's impossible to wrap\n */\nexports.wrapAttributeValue = function(value, preference) {\n\tvar whitelist = [\"\", \"'\", '\"', '\"\"\"'];\n\tvar choices = {\n\t\t\"\": function(v) {return !/([\\/\\s<>\"'=])/.test(v) && v.length > 0; },\n\t\t\"'\": function(v) {return v.indexOf(\"'\") < 0; },\n\t\t'\"': function(v) {return v.indexOf('\"') < 0; },\n\t\t'\"\"\"': function(v) {return v.indexOf('\"\"\"') < 0 && v[v.length-1] != '\"';}\n\t};\n\tif (choices[preference] && choices[preference](value)) {\n\t\treturn wrap(value, preference);\n\t}\n\tfor (var i = 0; i < whitelist.length; i++) {\n\t\tvar quote = whitelist[i];\n\t\tif (choices[quote](value)) {\n\t\t\treturn wrap(value, quote);\n\t\t}\n\t}\n\t// No quotes will work on this\n\treturn undefined;\n};\n\n/**Like wrapAttribute value, except for macro parameters, not attributes.\n *\n * These are more permissive. Allows brackets,\n * and slashes and '<' in unquoted values.\n */\nexports.wrapParameterValue = function(value, preference) {\n\tvar whitelist = [\"\", \"'\", '\"', '[[', '\"\"\"'];\n\tvar choices = {\n\t\t\"\": function(v) {return !/([\\s>\"'=])/.test(v); },\n\t\t\"'\": function(v) {return v.indexOf(\"'\") < 0; },\n\t\t'\"': function(v) {return v.indexOf('\"') < 0; },\n\t\t\"[[\": canBePrettyOperand,\n\t\t'\"\"\"': function(v) {return v.indexOf('\"\"\"') < 0 && v[v.length-1] != '\"';}\n\t};\n\tif (choices[preference] && choices[preference](value)) {\n\t\treturn wrap(value, preference);\n\t}\n\tfor (var i = 0; i < whitelist.length; i++) {\n\t\tvar quote = whitelist[i];\n\t\tif (choices[quote](value)) {\n\t\t\treturn wrap(value, quote);\n\t\t}\n\t}\n\t// No quotes will work on this\n\treturn undefined;\n};\n\nfunction wrap(value, wrapper) {\n\tvar wrappers = {\n\t\t\"\": function(v) {return v; },\n\t\t\"'\": function(v) {return \"'\"+v+\"'\"; },\n\t\t'\"': function(v) {return '\"'+v+'\"'; },\n\t\t'\"\"\"': function(v) {return '\"\"\"'+v+'\"\"\"'; },\n\t\t\"[[\": function(v) {return \"[[\"+v+\"]]\"; }\n\t};\n\tvar chosen = wrappers[wrapper];\n\tif (chosen) {\n\t\treturn chosen(value);\n\t} else {\n\t\treturn undefined;\n\t}\n};\n\nfunction canBePrettyOperand(value) {\n\treturn value.indexOf(']') < 0;\n};\n\n/**Given some text, and a param or attribute within that text, this returns\n * what type of quotation that attribute is using.\n *\n * param: An object in the form {end:, ...}\n */\nexports.determineQuote = function(text, param) {\n\tvar pos = param.end-1;\n\tif (text[pos] === \"'\") {\n\t\treturn \"'\";\n\t}\n\tif (text[pos] === '\"') {\n\t\tif (text.substr(pos-2, 3) === '\"\"\"') {\n\t\t\treturn '\"\"\"';\n\t\t} else {\n\t\t\treturn '\"';\n\t\t}\n\t}\n\tif (text.substr(pos-1,2) === ']]' && text.substr((pos-param.value.length)-3, 2) === '[[') {\n\t\treturn \"[[\";\n\t}\n\treturn '';\n};\n\n// Finds the newline at the end of a string and returns it. Empty string if\n// none exists.\nexports.getEndingNewline = function(string) {\n\tvar l = string.length;\n\tif (string[l-1] === '\\n') {\n\t\treturn (string[l-2] === '\\r') ? \"\\r\\n\" : \"\\n\";\n\t}\n\treturn \"\";\n};\n", - "module-type": "library", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/utils.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/wikilink.js": { - "text": "/*\\\nmodule-type: relinkwikitextrule\n\nHandles CamelCase links\n\nWikiLink\n\nbut not:\n\n~WikiLink\n\n\\*/\n\nvar utils = require(\"./utils.js\");\n\nexports.name = \"wikilink\";\n\nexports.report = function(text, callback, options) {\n\tvar title = this.match[0],\n\t\tunlink = $tw.config.textPrimitives.unWikiLink;\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tif (title[0] !== unlink) {\n\t\tcallback(title, unlink + title);\n\t}\n};\n\nexports.relink = function(text, fromTitle, toTitle, options) {\n\tvar entry = undefined,\n\t\ttitle = this.match[0];\n\tthis.parser.pos = this.matchRegExp.lastIndex;\n\tif (title === fromTitle && title[0] !== $tw.config.textPrimitives.unWikiLink) {\n\t\tentry = { output: this.makeWikilink(toTitle, options) };\n\t\tif (entry.output === undefined) {\n\t\t\tentry.impossible = true;\n\t\t}\n\t}\n\treturn entry;\n};\n\nexports.makeWikilink = function(title, options) {\n\tif (title.match(this.matchRegExp) && title[0] !== $tw.config.textPrimitives.unWikiLink) {\n\t\treturn title;\n\t} else {\n\t\treturn utils.makePrettylink(this.parser, title);\n\t}\n};\n", - "module-type": "relinkwikitextrule", - "title": "$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/wikilink.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/contexts/context.js": { - "text": "/*\\\n\nBase class for relink contexts.\n\n\\*/\n\nfunction Context() {\n};\n\nexports.context = Context;\n\n// This class does no special handling of fields, operators, or attributes.\n// we pass it along to the parent.\nContext.prototype.getFields = function() {\n\treturn this.parent.getFields();\n};\n\nContext.prototype.getOperator = function(name, index) {\n\treturn this.parent.getOperator(name, index);\n};\n\nContext.prototype.getOperators = function() {\n\treturn this.parent.getOperators();\n};\n\nContext.prototype.getAttribute = function(elementName) {\n\treturn this.parent.getAttribute(elementName);\n};\n\nContext.prototype.getAttributes = function() {\n\treturn this.parent.getAttributes();\n};\n\nContext.prototype.getMacro = function(macroName) {\n\treturn this.parent.getMacro(macroName);\n};\n\nContext.prototype.getMacros = function() {\n\treturn this.parent.getMacros();\n};\n\nContext.prototype.allowPrettylinks = function() {\n\treturn this.parent.allowPrettylinks();\n};\n\nContext.prototype.allowWidgets = function() {\n\treturn this.parent.allowWidgets();\n};\n\nContext.prototype.hasImports = function(value) {\n\treturn this.parent.hasImports(value);\n};\n", - "module-type": "relinkcontext", - "title": "$:/plugins/flibbles/relink/js/contexts/context.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/contexts/import.js": { - "text": "/*\\\n\nThis handles the fetching and distribution of relink settings.\n\n\\*/\n\nvar WidgetContext = require('./widget').widget;\n\nfunction ImportContext(wiki, parent, filter) {\n\tthis.parent = parent;\n\tthis.wiki = wiki;\n\tvar importWidget = createImportWidget(filter, this.wiki, this.parent.widget);\n\tthis._compileList(importWidget.tiddlerList);\n\t// This only works if only one filter is imported\n\tthis.widget = this.getBottom(importWidget);\n\t// Trickle this up, so that any containing tiddlercontext knows that this\n\t// tiddler does some importing, and must be checked regularly.\n\tparent.hasImports(true);\n};\n\nexports.import = ImportContext;\n\nImportContext.prototype = new WidgetContext();\n\nImportContext.prototype.changed = function(changes) {\n\treturn this.widget && this.widget.refresh(changes)\n};\n\nfunction createImportWidget(filter, wiki, parent) {\n\tvar widget = wiki.makeWidget( { tree: [{\n\t\ttype: \"importvariables\",\n\t\tattributes: {\n\t\t\t\"filter\": {\n\t\t\t\ttype: \"string\",\n\t\t\t\tvalue: filter\n\t\t\t}\n\t\t}\n\t}] }, { parentWidget: parent} );\n\tif (parent) {\n\t\tparent.children.push(widget);\n\t}\n\twidget.execute();\n\twidget.renderChildren();\n\tvar importWidget = widget.children[0];\n\treturn importWidget;\n};\n\nImportContext.prototype._compileList = function(titleList) {\n\tfor (var i = 0; i < titleList.length; i++) {\n\t\tvar parser = this.wiki.parseTiddler(titleList[i]);\n\t\tif (parser) {\n\t\t\tvar parseTreeNode = parser.tree[0];\n\t\t\twhile (parseTreeNode && parseTreeNode.type === \"set\") {\n\t\t\t\tif (parseTreeNode.relink) {\n\t\t\t\t\tfor (var macroName in parseTreeNode.relink) {\n\t\t\t\t\t\tvar parameters = parseTreeNode.relink[macroName];\n\t\t\t\t\t\tfor (paramName in parameters) {\n\t\t\t\t\t\t\tthis.addSetting(this.wiki, macroName, paramName, parameters[paramName], titleList[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tparseTreeNode = parseTreeNode.children && parseTreeNode.children[0];\n\t\t\t}\n\t\t}\n\t}\n};\n", - "module-type": "relinkcontext", - "title": "$:/plugins/flibbles/relink/js/contexts/import.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/contexts/tiddler.js": { - "text": "/*\\\n\nContext for a tiddler. Defines nothing but makes an entry point to test if\na tiddler must be refreshed.\n\n\\*/\n\nvar WidgetContext = require('./widget.js').widget;\n\nfunction TiddlerContext(wiki, parentContext, title) {\n\tthis.title = title;\n\tthis.parent = parentContext;\n\tvar globalWidget = parentContext && parentContext.widget;\n\tvar parentWidget = wiki.makeWidget(null, {parentWidget: globalWidget});\n\tparentWidget.setVariable('currentTiddler', title);\n\tthis.widget = wiki.makeWidget(null, {parentWidget: parentWidget});\n};\n\nexports.tiddler = TiddlerContext;\n\nTiddlerContext.prototype = new WidgetContext();\n\nTiddlerContext.prototype.changed = function(changes) {\n\treturn this.widget && this.widget.refresh(changes);\n};\n\n// By default, a tiddler context does not use imports, unless an import\n// statement is later discovered somewhere in the fields.\nTiddlerContext.prototype.hasImports = function(value) {\n\treturn this._hasImports || (this._hasImports = value);\n};\n", - "module-type": "relinkcontext", - "title": "$:/plugins/flibbles/relink/js/contexts/tiddler.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/contexts/variable.js": { - "text": "/*\\\n\nThis handles the context for variables. Either from $set, $vars, or \\define\n\n\\*/\n\nvar WidgetContext = require('./widget').widget;\n\nfunction VariableContext(parent, setParseTreeNode) {\n\tthis.parent = parent;\n\t// Now create a new widget and attach it.\n\tvar attachPoint = parent.widget;\n\tvar setWidget = attachPoint.makeChildWidget(setParseTreeNode);\n\tattachPoint.children.push(setWidget);\n\tsetWidget.computeAttributes();\n\tsetWidget.execute();\n\t// point our widget to bottom, where any other contexts would attach to\n\tthis.widget = this.getBottom(setWidget);\n};\n\nexports.variable = VariableContext;\n\nVariableContext.prototype = new WidgetContext();\n", - "module-type": "relinkcontext", - "title": "$:/plugins/flibbles/relink/js/contexts/variable.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/contexts/whitelist.js": { - "text": "/*\\\n\nThis top-level context manages settings inside the whitelist. It never has\na parent.\n\n\\*/\n\nvar utils = require('../utils');\nvar Context = require('./context').context;\n\nvar prefix = \"$:/config/flibbles/relink/\";\n\nfunction WhitelistContext(wiki) {\n\tbuild(this, wiki);\n};\n\nexports.whitelist = WhitelistContext;\n\nWhitelistContext.prototype = new Context();\n\n/**Hot directories are directories for which if anything changes inside them,\n * then Relink must completely rebuild its index.\n * By default, this includes the whitelist settings, but relink-titles also\n * includes its rules disabling directory.\n * This is the FIRST solution I came up with to this problem. If you're\n * looking at this, please make a github issue so I have a chance to understand\n * your needs. This is currently a HACK solution.\n */\nWhitelistContext.hotDirectories = [prefix];\n\nWhitelistContext.prototype.getAttribute = function(elementName) {\n\treturn this.attributes[elementName];\n};\n\nWhitelistContext.prototype.getAttributes = function() {\n\treturn flatten(this.attributes);\n};\n\nWhitelistContext.prototype.getFields = function() {\n\treturn this.fields;\n};\n\nWhitelistContext.prototype.getOperator = function(operatorName, operandIndex) {\n\tvar op = this.operators[operatorName];\n\treturn op && op[operandIndex || 1];\n};\n\nWhitelistContext.prototype.getOperators = function() {\n\tvar signatures = Object.create(null);\n\tfor (var op in this.operators) {\n\t\tvar operandSet = this.operators[op];\n\t\tfor (var index in operandSet) {\n\t\t\tvar entry = operandSet[index];\n\t\t\tsignatures[entry.key] = entry;\n\t\t}\n\t}\n\treturn signatures;\n};\n\nWhitelistContext.prototype.getMacro = function(macroName) {\n\treturn this.macros[macroName];\n};\n\nWhitelistContext.prototype.getMacros = function() {\n\treturn flatten(this.macros);\n};\n\nWhitelistContext.prototype.changed = function(changedTiddlers) {\n\tfor (var i = 0; i < WhitelistContext.hotDirectories.length; i++) {\n\t\tvar dir = WhitelistContext.hotDirectories[i];\n\t\tfor (var title in changedTiddlers) {\n\t\t\tif (title.substr(0, dir.length) === dir) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n};\n\nWhitelistContext.prototype.hasImports = function(value) {\n\t// We don't care if imports are used. This is the global level.\n\treturn false;\n};\n\n/**Factories define methods that create settings given config tiddlers.\n * for factory method 'example', it will be called once for each:\n * \"$:/config/flibbles/relink/example/...\" tiddler that exists.\n * the argument \"key\" will be set to the contents of \"...\"\n *\n * The reason I build relink settings in this convoluted way is to minimize\n * the number of times tiddlywiki has to run through EVERY tiddler looking\n * for relink config tiddlers.\n *\n * Also, by exporting \"factories\", anyone who extends relink can patch in\n * their own factory methods to create settings that are generated exactly\n * once per rename.\n */\nvar factories = {\n\tattributes: function(attributes, data, key) {\n\t\tvar elem = root(key);\n\t\tvar attr = key.substr(elem.length+1);\n\t\tattributes[elem] = attributes[elem] || Object.create(null);\n\t\tattributes[elem][attr] = data;\n\t},\n\tfields: function(fields, data, name) {\n\t\tfields[name] = data;\n\t},\n\tmacros: function(macros, data, key) {\n\t\t// We take the last index, not the first, because macro\n\t\t// parameters can't have slashes, but macroNames can.\n\t\tvar name = dir(key);\n\t\tvar arg = key.substr(name.length+1);\n\t\tmacros[name] = macros[name] || Object.create(null);\n\t\tmacros[name][arg] = data;\n\t},\n\toperators: function(operators, data, key) {\n\t\t// We take the last index, not the first, because the operator\n\t\t// may have a slash to indicate parameter number\n\t\tvar pair = key.split('/');\n\t\tvar name = pair[0];\n\t\tdata.key = key;\n\t\toperators[name] = operators[name] || Object.create(null);\n\t\toperators[name][pair[1] || 1] = data;\n\t}\n};\n\nfunction build(settings, wiki) {\n\tfor (var name in factories) {\n\t\tsettings[name] = Object.create(null);\n\t}\n\twiki.eachShadowPlusTiddlers(function(tiddler, title) {\n\t\tif (title.substr(0, prefix.length) === prefix) {\n\t\t\tvar remainder = title.substr(prefix.length);\n\t\t\tvar category = root(remainder);\n\t\t\tvar factory = factories[category];\n\t\t\tif (factory) {\n\t\t\t\tvar name = remainder.substr(category.length+1);\n\t\t\t\tvar data = utils.getType(tiddler.fields.text.trim());\n\t\t\t\tif (data) {\n\t\t\t\t\tdata.source = title;\n\t\t\t\t\t// Secret feature. You can access a config tiddler's\n\t\t\t\t\t// fields from inside the fieldtype handler. Cool\n\t\t\t\t\t// tricks can be done with this.\n\t\t\t\t\tdata.fields = tiddler.fields;\n\t\t\t\t\tfactory(settings[category], data, name);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n};\n\n/* Returns first bit of a path. path/to/tiddler -> path\n */\nfunction root(string) {\n\tvar index = string.indexOf('/');\n\tif (index >= 0) {\n\t\treturn string.substr(0, index);\n\t}\n};\n\n/* Returns all but the last bit of a path. path/to/tiddler -> path/to\n */\nfunction dir(string) {\n\tvar index = string.lastIndexOf('/');\n\tif (index >= 0) {\n\t\treturn string.substr(0, index);\n\t}\n}\n\n/* Turns {dir: {file1: 'value1', file2: 'value2'}}\n * into {dir/file1: 'value1', dir/file2: 'value2'}\n */\nfunction flatten(set) {\n\tvar signatures = Object.create(null);\n\tfor (var outerName in set) {\n\t\tvar setItem = set[outerName];\n\t\tfor (var innerName in setItem) {\n\t\t\tsignatures[outerName + \"/\" + innerName] = setItem[innerName];\n\t\t}\n\t}\n\treturn signatures;\n};\n", - "module-type": "relinkcontext", - "title": "$:/plugins/flibbles/relink/js/contexts/whitelist.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/contexts/widget.js": { - "text": "/*\\\n\nThis is a virtual subclass of context for contexts that exist within widgets\nof a specific tiddler.\n\nAll widget contexts must have a widget member.\n\n\\*/\n\nvar Context = require('./context.js').context;\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\n\nfunction WidgetContext() {};\n\nexports.widget = WidgetContext;\n\nWidgetContext.prototype = new Context();\n\nWidgetContext.prototype.getMacroDefinition = function(variableName) {\n\t// widget.variables is prototyped, so it looks up into all its parents too\n\treturn this.widget.variables[variableName] || $tw.macros[variableName];\n};\n\nWidgetContext.prototype.addSetting = function(wiki, macroName, parameter, type, sourceTitle) {\n\tthis.macros = this.macros || Object.create(null);\n\tvar macro = this.macros[macroName];\n\ttype = type || utils.getDefaultType(wiki);\n\tif (macro === undefined) {\n\t\tmacro = this.macros[macroName] = Object.create(null);\n\t}\n\tvar handler = utils.getType(type);\n\tif (handler) {\n\t\thandler.source = sourceTitle;\n\t\t// We attach the fields of the defining tiddler for the benefit\n\t\t// of any 3rd party field types that want access to them.\n\t\tvar tiddler = wiki.getTiddler(sourceTitle);\n\t\thandler.fields = tiddler.fields;\n\t\tmacro[parameter] = handler;\n\t}\n};\n\nWidgetContext.prototype.getMacros = function() {\n\tvar signatures = this.parent.getMacros();\n\tif (this.macros) {\n\t\tfor (var macroName in this.macros) {\n\t\t\tvar macro = this.macros[macroName];\n\t\t\tfor (var param in macro) {\n\t\t\t\tsignatures[macroName + \"/\" + param] = macro[param];\n\t\t\t}\n\t\t}\n\t}\n\treturn signatures;\n};\n\n/**This does strange handling because it's possible for a macro to have\n * its individual parameters whitelisted in separate places.\n * Don't know WHY someone would do this, but it can happen.\n */\nWidgetContext.prototype.getMacro = function(macroName) {\n\tvar theseSettings = this.macros && this.macros[macroName];\n\tvar parentSettings;\n\tif (this.parent) {\n\t\tparentSettings = this.parent.getMacro(macroName);\n\t}\n\tif (theseSettings && parentSettings) {\n\t\t// gotta merge them without changing either. This is expensive,\n\t\t// but it'll happen rarely.\n\t\tvar rtnSettings = $tw.utils.extend(Object.create(null), theseSettings, parentSettings);\n\t\treturn rtnSettings;\n\t}\n\treturn theseSettings || parentSettings;\n};\n\n/**Returns the deepest descendant of the given widget.\n */\nWidgetContext.prototype.getBottom = function(widget) {\n\twhile (widget.children.length > 0) {\n\t\twidget = widget.children[0];\n\t}\n\treturn widget;\n};\n", - "module-type": "relinkcontext", - "title": "$:/plugins/flibbles/relink/js/contexts/widget.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/contexts/wikitext.js": { - "text": "/*\\\n\nContext for wikitext. It can contain rules about what's allowed in this\ncurrent layer of wikitext.\n\n\\*/\n\nvar WidgetContext = require('./widget.js').widget;\n\nfunction WikitextContext(parentContext) {\n\tthis.parent = parentContext;\n\tthis.widget = parentContext.widget;\n};\n\nexports.wikitext = WikitextContext;\n\nWikitextContext.prototype = new WidgetContext();\n\n// Unless this specific context has rules about it, widgets and prettyLInks are allowed.\nWikitextContext.prototype.allowWidgets = enabled;\nWikitextContext.prototype.allowPrettylinks = enabled;\n\nfunction enabled() { return true; };\n", - "module-type": "relinkcontext", - "title": "$:/plugins/flibbles/relink/js/contexts/wikitext.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/utils/backupIndexer.js": { - "text": "/*\\\nmodule-type: library\n\nThis is a backup indexer Relink uses if the real one is disabled, or we're\n<V5.1.23. It's not nearly as good, but it caches some.\n\n\\*/\n\n\"use strict\";\n\nvar utils = require(\"$:/plugins/flibbles/relink/js/utils.js\");\nvar TiddlerContext = utils.getContext('tiddler');\n\n// This is the indexer we use if the current wiki doesn't support indexers.\nfunction BackupIndexer(wiki) {\n\tthis.wiki = wiki;\n};\n\nmodule.exports = BackupIndexer;\n\nBackupIndexer.prototype.lookup = function(title) {\n\treturn getCache(this.wiki).lookup[title];\n};\n\nBackupIndexer.prototype.reverseLookup = function(title) {\n\tvar index = getCache(this.wiki);\n\tif (!index.reverse[title]) {\n\t\tvar record = Object.create(null);\n\t\tfor (var other in index.lookup) {\n\t\t\tif (index.lookup[other][title]) {\n\t\t\t\trecord[other] = index.lookup[other][title];\n\t\t\t}\n\t\t}\n\t\tindex.reverse[title] = record;\n\t}\n\treturn index.reverse[title];\n};\n\n/* The backup indexer doesn't bother caching relink reports. It would always\n * be called after a draft tiddler had changed, which would defeat the point.\n */\nBackupIndexer.prototype.relinkLookup = function(fromTitle, toTitle, options) {\n\tvar cache = getCache(this.wiki);\n\tif (cache.lastRelinkFrom === fromTitle && cache.lastRelinkTo === toTitle) {\n\t\toptions.cache = cache.lastRelinkCache;\n\t\treturn cache.lastRelink;\n\t}\n\tcache.lastRelink = utils.getRelinkResults(this.wiki, fromTitle, toTitle, cache.context, undefined, options);\n\tcache.lastRelinkFrom = fromTitle;\n\tcache.lastRelinkTo = toTitle;\n\tcache.lastRelinkCache = options.cache;\n\treturn cache.lastRelink;\n};\n\nfunction getCache(wiki) {\n\treturn wiki.getGlobalCache('relink', function() {\n\t\tvar tiddlerList = wiki.getRelinkableTitles();\n\t\tvar index = Object.create(null);\n\t\tvar wikiContext = utils.getWikiContext(wiki);\n\t\tfor (var i = 0; i < tiddlerList.length; i++) {\n\t\t\tvar title = tiddlerList[i];\n\t\t\tvar tiddler = wiki.getTiddler(title);\n\t\t\tif (tiddler && !tiddler.fields[\"plugin-type\"]) {\n\t\t\t\tvar context = new TiddlerContext(wiki, wikiContext, title);\n\t\t\t\tindex[title] = utils.getTiddlerRelinkReferences(wiki, title, context);\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tlookup: index,\n\t\t\treverse: Object.create(null),\n\t\t\tcontext: wikiContext};\n\t});\n};\n", - "module-type": "library", - "title": "$:/plugins/flibbles/relink/js/utils/backupIndexer.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/utils/entry.js": { - "text": "/*\\\n\nEntries are deprecated. Don't use them. These classes are here just so that\nany 3rd party modules built for Relink V1 don't break.\n\nJust return an object like, {output: \"string\", impossible: true|undefined}\n\n\\*/\n\nfunction EntryNode() {\n\tthis.children = [];\n};\n\nmodule.exports = EntryNode;\n\n/** PURE VIRTUAL\n * EntryNode.prototype.report = function() -> [\"string\", ...]\n */\n\nEntryNode.newType = function() {\n\treturn EntryNode;\n};\n\nEntryNode.prototype.add = function(entry) {\n\tthis.children.push(entry);\n};\n\nfunction EntryCollection() {\n\tthis.children = Object.create(null);\n\tthis.types = Object.create(null);\n};\n\nEntryNode.newCollection = function(name) {\n\treturn EntryCollection;\n};\n\n// Again. I reiterate. Don't use this. All this is just legacy support.\nObject.defineProperty(EntryCollection, 'impossible', {\n\tget: function() {\n\t\tvar imp = this._impossible;\n\t\tthis.eachChild(function(child) { imp = imp || child.impossible; });\n\t\treturn imp;\n\t},\n\tset: function(impossible) {\n\t\tthis._impossible = true;\n\t}\n});\n\nEntryCollection.prototype.eachChild = function(method) {\n\tfor (var child in this.children) {\n\t\tmethod(this.children[child]);\n\t}\n};\n\nEntryCollection.prototype.addChild = function(child, name, type) {\n\tthis.children[name] = child;\n\tthis.types[name] = type;\n};\n\nEntryCollection.prototype.hasChildren = function() {\n\treturn Object.keys(this.children).length > 0;\n};\n", - "module-type": "library", - "title": "$:/plugins/flibbles/relink/js/utils/entry.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/utils/placeholder.js": { - "text": "/*\\\n\nA method which doles out placeholders when requested, and constructs\nthe necessary supporting pragma when requested.\n\n\\*/\n\nvar utils = require('../utils');\n\nfunction Placeholder() {\n\tthis.placeholders = Object.create(null);\n\tthis.reverseMap = {};\n\tthis.used = Object.create(null);\n};\n\nmodule.exports = Placeholder;\n\nPlaceholder.prototype.getPlaceholderFor = function(value, category) {\n\tthis.reverseMap[category] = this.reverseMap[category] || Object.create(null);\n\tvar placeholder = this.reverseMap[category][value];\n\tif (placeholder) {\n\t\treturn placeholder;\n\t}\n\tvar config = (this.parser && this.parser.context) || utils.getWikiContext(this.parser.wiki);\n\tvar number = 0;\n\tvar prefix = \"relink-\"\n\tif (category && category !== \"title\") {\n\t\t// I don't like \"relink-title-1\". \"relink-1\" should be for\n\t\t// titles. lists, and filters can have descriptors though.\n\t\tprefix += category + \"-\";\n\t}\n\tdo {\n\t\tnumber += 1;\n\t\tplaceholder = prefix + number;\n\t} while (config.getMacroDefinition(placeholder) || this.used[placeholder]);\n\tthis.placeholders[placeholder] = value;\n\tthis.reverseMap[category][value] = placeholder;\n\tthis.used[placeholder] = true;\n\treturn placeholder;\n};\n\n// For registering placeholders that already existed\nPlaceholder.prototype.registerExisting = function(key, value) {\n\tthis.reverseMap[value] = key;\n\tthis.used[key] = true;\n};\n\nPlaceholder.prototype.getPreamble = function() {\n\tvar results = [];\n\tvar keys = Object.keys(this.placeholders);\n\tif (keys.length > 0) {\n\t\tkeys.sort();\n\t\tfor (var i = 0; i < keys.length; i++) {\n\t\t\tvar name = keys[i];\n\t\t\tvar val = this.placeholders[name];\n\t\t\tresults.push(\"\\\\define \"+name+\"() \"+val+\"\\n\");\n\t\t}\n\t}\n\treturn results.join('');\n};\n\n", - "module-type": "library", - "title": "$:/plugins/flibbles/relink/js/utils/placeholder.js", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink/js/utils/rebuilder.js": { - "text": "/*\\\n\nThis helper class aids in reconstructing an existing string with new parts.\n\n\\*/\n\nfunction Rebuilder(text, start) {\n\tthis.text = text;\n\tthis.index = start || 0;\n\tthis.pieces = [];\n};\n\nmodule.exports = Rebuilder;\n\n/**Pieces must be added consecutively.\n * Start and end are the indices in the old string specifying where to graft\n * in the new piece.\n */\nRebuilder.prototype.add = function(value, start, end) {\n\tthis.pieces.push(this.text.substring(this.index, start), value);\n\tthis.index = end;\n};\n\nRebuilder.prototype.changed = function() {\n\treturn this.pieces.length > 0;\n};\n\nRebuilder.prototype.results = function(end) {\n\tif (this.changed()) {\n\t\tthis.pieces.push(this.text.substring(this.index, end));\n\t\treturn this.pieces.join('');\n\t}\n\treturn undefined;\n};\n", - "module-type": "library", - "title": "$:/plugins/flibbles/relink/js/utils/rebuilder.js", - "type": "application/javascript" - }, - "$:/config/flibbles/relink/attributes/$button/set": { - "title": "$:/config/flibbles/relink/attributes/$button/set", - "text": "reference" - }, - "$:/config/flibbles/relink/attributes/$button/setTo": { - "title": "$:/config/flibbles/relink/attributes/$button/setTo", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$button/to": { - "title": "$:/config/flibbles/relink/attributes/$button/to", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$checkbox/tiddler": { - "title": "$:/config/flibbles/relink/attributes/$checkbox/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$checkbox/tag": { - "title": "$:/config/flibbles/relink/attributes/$checkbox/tag", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$count/filter": { - "title": "$:/config/flibbles/relink/attributes/$count/filter", - "text": "filter" - }, - "$:/config/flibbles/relink/attributes/$draggable/tiddler": { - "title": "$:/config/flibbles/relink/attributes/$draggable/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$draggable/filter": { - "title": "$:/config/flibbles/relink/attributes/$draggable/filter", - "text": "filter" - }, - "$:/config/flibbles/relink/attributes/$edit-bitmap/tiddler": { - "title": "$:/config/flibbles/relink/attributes/$edit-bitmap/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$edit-text/tiddler": { - "title": "$:/config/flibbles/relink/attributes/$edit-text/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$edit/tiddler": { - "title": "$:/config/flibbles/relink/attributes/$edit/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$encrypt/filter": { - "title": "$:/config/flibbles/relink/attributes/$encrypt/filter", - "text": "filter" - }, - "$:/config/flibbles/relink/attributes/$fieldmangler/tiddler": { - "title": "$:/config/flibbles/relink/attributes/$fieldmangler/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$fields/tiddler": { - "title": "$:/config/flibbles/relink/attributes/$fields/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$image/source": { - "title": "$:/config/flibbles/relink/attributes/$image/source", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$importvariables/filter": { - "title": "$:/config/flibbles/relink/attributes/$importvariables/filter", - "text": "filter" - }, - "$:/config/flibbles/relink/attributes/$linkcatcher/to": { - "title": "$:/config/flibbles/relink/attributes/$linkcatcher/to", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$linkcatcher/set": { - "title": "$:/config/flibbles/relink/attributes/$linkcatcher/set", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$link/to": { - "title": "$:/config/flibbles/relink/attributes/$link/to", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$list/filter": { - "title": "$:/config/flibbles/relink/attributes/$list/filter", - "text": "filter" - }, - "$:/config/flibbles/relink/attributes/$list/template": { - "title": "$:/config/flibbles/relink/attributes/$list/template", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$list/editTemplate": { - "title": "$:/config/flibbles/relink/attributes/$list/editTemplate", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$list/emptyMessage": { - "title": "$:/config/flibbles/relink/attributes/$list/emptyMessage", - "text": "wikitext" - }, - "$:/config/flibbles/relink/attributes/$list/history": { - "title": "$:/config/flibbles/relink/attributes/$list/history", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$navigator/story": { - "title": "$:/config/flibbles/relink/attributes/$navigator/story", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$navigator/history": { - "title": "$:/config/flibbles/relink/attributes/$navigator/history", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$radio/tiddler": { - "title": "$:/config/flibbles/relink/attributes/$radio/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$range/tiddler": { - "title": "$:/config/flibbles/relink/attributes/$range/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$reveal/stateTitle": { - "title": "$:/config/flibbles/relink/attributes/$reveal/stateTitle", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$select/tiddler": { - "title": "$:/config/flibbles/relink/attributes/$select/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$setvariable/tiddler": { - "title": "$:/config/flibbles/relink/attributes/$setvariable/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$setvariable/subtiddler": { - "title": "$:/config/flibbles/relink/attributes/$setvariable/subtiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$setvariable/filter": { - "title": "$:/config/flibbles/relink/attributes/$setvariable/filter", - "text": "filter" - }, - "$:/config/flibbles/relink/attributes/$set/tiddler": { - "title": "$:/config/flibbles/relink/attributes/$set/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$set/subtiddler": { - "title": "$:/config/flibbles/relink/attributes/$set/subtiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$set/filter": { - "title": "$:/config/flibbles/relink/attributes/$set/filter", - "text": "filter" - }, - "$:/config/flibbles/relink/attributes/$tiddler/tiddler": { - "title": "$:/config/flibbles/relink/attributes/$tiddler/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$transclude/tiddler": { - "title": "$:/config/flibbles/relink/attributes/$transclude/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$transclude/subtiddler": { - "title": "$:/config/flibbles/relink/attributes/$transclude/subtiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$view/tiddler": { - "title": "$:/config/flibbles/relink/attributes/$view/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/attributes/$view/subtiddler": { - "title": "$:/config/flibbles/relink/attributes/$view/subtiddler", - "text": "title" - }, - "$:/plugins/flibbles/relink/configuration": { - "title": "$:/plugins/flibbles/relink/configuration", - "text": "<div class=\"tc-control-panel\">\n<<tabs \"[all[shadows+tiddlers]tag[$:/tags/flibbles/relink/Configuration]!has[draft.of]]\" \"$:/plugins/flibbles/relink/ui/configuration/Fields\">>\n</div>\n" - }, - "$:/config/flibbles/relink/fields/caption": { - "title": "$:/config/flibbles/relink/fields/caption", - "text": "wikitext" - }, - "$:/config/flibbles/relink/fields/filter": { - "title": "$:/config/flibbles/relink/fields/filter", - "text": "filter" - }, - "$:/config/flibbles/relink/fields/list": { - "title": "$:/config/flibbles/relink/fields/list", - "text": "list" - }, - "$:/config/flibbles/relink/fields/list-after": { - "title": "$:/config/flibbles/relink/fields/list-after", - "text": "title" - }, - "$:/config/flibbles/relink/fields/list-before": { - "title": "$:/config/flibbles/relink/fields/list-before", - "text": "title" - }, - "$:/config/flibbles/relink/fields/tags": { - "title": "$:/config/flibbles/relink/fields/tags", - "text": "list" - }, - "$:/plugins/flibbles/relink/language/Buttons/Delete/Hint": { - "title": "$:/plugins/flibbles/relink/language/Buttons/Delete/Hint", - "text": "delete" - }, - "$:/plugins/flibbles/relink/language/Buttons/LinkToInline/Hint": { - "title": "$:/plugins/flibbles/relink/language/Buttons/LinkToInline/Hint", - "text": "go to defining tiddler" - }, - "$:/plugins/flibbles/relink/language/Buttons/NewAttribute/Hint": { - "title": "$:/plugins/flibbles/relink/language/Buttons/NewAttribute/Hint", - "text": "Specify a new widget/element attribute to be updated whenever a tiddler is renamed" - }, - "$:/plugins/flibbles/relink/language/Buttons/NewAttribute/Caption": { - "title": "$:/plugins/flibbles/relink/language/Buttons/NewAttribute/Caption", - "text": "add" - }, - "$:/plugins/flibbles/relink/language/Buttons/NewField/Hint": { - "title": "$:/plugins/flibbles/relink/language/Buttons/NewField/Hint", - "text": "Specify a new field to be updated whenever a tiddler is renamed" - }, - "$:/plugins/flibbles/relink/language/Buttons/NewField/Caption": { - "title": "$:/plugins/flibbles/relink/language/Buttons/NewField/Caption", - "text": "add" - }, - "$:/plugins/flibbles/relink/language/Buttons/NewOperator/Hint": { - "title": "$:/plugins/flibbles/relink/language/Buttons/NewOperator/Hint", - "text": "Specify a new filter operator to be considered whenever a tiddler is renamed" - }, - "$:/plugins/flibbles/relink/language/Buttons/NewOperator/Caption": { - "title": "$:/plugins/flibbles/relink/language/Buttons/NewOperator/Caption", - "text": "add" - }, - "$:/plugins/flibbles/relink/language/Buttons/NewParameter/Hint": { - "title": "$:/plugins/flibbles/relink/language/Buttons/NewParameter/Hint", - "text": "Specify a new macro parameter to be updated whenever a tiddler is renamed" - }, - "$:/plugins/flibbles/relink/language/Buttons/NewParameter/Caption": { - "title": "$:/plugins/flibbles/relink/language/Buttons/NewParameter/Caption", - "text": "add" - }, - "$:/plugins/flibbles/relink/language/Error/InvalidAttributeName": { - "title": "$:/plugins/flibbles/relink/language/Error/InvalidAttributeName", - "text": "Illegal characters in attribute name \"<$text text=<<attributeName>>/>\". Attributes cannot contain slashes ('/'), closing angle or square brackets ('>' or ']'), quotes or apostrophes ('\"' or \"'\"), equals ('='), or whitespace" - }, - "$:/plugins/flibbles/relink/language/Error/InvalidElementName": { - "title": "$:/plugins/flibbles/relink/language/Error/InvalidElementName", - "text": "Illegal characters in element/widget name \"<$text text=<<elementName>>/>\". Element tags can only contain letters and the characters hyphen (`-`) and dollar sign (`$`)" - }, - "$:/plugins/flibbles/relink/language/Error/InvalidMacroName": { - "title": "$:/plugins/flibbles/relink/language/Error/InvalidMacroName", - "text": "Illegal characters in macro name \"<$text text=<<macroName>>/>\". Macros cannot contain whitespace" - }, - "$:/plugins/flibbles/relink/language/Error/InvalidParameterName": { - "title": "$:/plugins/flibbles/relink/language/Error/InvalidParameterName", - "text": "Illegal characters in parameter name \"<$text text=<<parameterName>>/>\". Parameters can only contain letters, digits, and the characters underscore (`_`) and hyphen (`-`)" - }, - "$:/plugins/flibbles/relink/language/Error/RelinkFilterOperator": { - "title": "$:/plugins/flibbles/relink/language/Error/RelinkFilterOperator", - "text": "Filter Error: Unknown suffix for the 'relink' filter operator" - }, - "$:/plugins/flibbles/relink/language/Error/ReportFailedRelinks": { - "title": "$:/plugins/flibbles/relink/language/Error/ReportFailedRelinks", - "text": "Relink could not update '<<from>>' to '<<to>>' inside the following tiddlers:" - }, - "$:/plugins/flibbles/relink/language/Error/UnrecognizedType": { - "title": "$:/plugins/flibbles/relink/language/Error/UnrecognizedType", - "text": "Relink parse error: Unrecognized field type '<<type>>'" - }, - "$:/plugins/flibbles/relink/language/Help/Attributes": { - "title": "$:/plugins/flibbles/relink/language/Help/Attributes", - "text": "See the <a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Attributes]]}}}>Attributes documentation page</a> for details." - }, - "$:/plugins/flibbles/relink/language/Help/Fields": { - "title": "$:/plugins/flibbles/relink/language/Help/Fields", - "text": "See the <a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Fields]]}}}>Fields documentation page</a> for details." - }, - "$:/plugins/flibbles/relink/language/Help/Macros": { - "title": "$:/plugins/flibbles/relink/language/Help/Macros", - "text": "See the <a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Macros]]}}}>Macros documentation page</a> for details." - }, - "$:/plugins/flibbles/relink/language/Help/Operators": { - "title": "$:/plugins/flibbles/relink/language/Help/Operators", - "text": "See the <a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Operators]]}}}>Operators documentation page</a> for details." - }, - "$:/plugins/flibbles/relink/language/TiddlerInfo/References/Empty": { - "title": "$:/plugins/flibbles/relink/language/TiddlerInfo/References/Empty", - "text": "No tiddlers contain any fields, links, macros, transclusions, or widgets referencing this one" - }, - "$:/plugins/flibbles/relink/language/TiddlerInfo/References/Description": { - "title": "$:/plugins/flibbles/relink/language/TiddlerInfo/References/Description", - "text": "The following tiddlers contain fields, links, macros, transclusions, or widgets referencing this one:" - }, - "$:/plugins/flibbles/relink/language/TiddlerInfo/References/Caption": { - "title": "$:/plugins/flibbles/relink/language/TiddlerInfo/References/Caption", - "text": "//Relink// References" - }, - "$:/plugins/flibbles/relink/language/ui/Attributes/Caption": { - "title": "$:/plugins/flibbles/relink/language/ui/Attributes/Caption", - "text": "Attributes" - }, - "$:/plugins/flibbles/relink/language/ui/Fields/Caption": { - "title": "$:/plugins/flibbles/relink/language/ui/Fields/Caption", - "text": "Fields" - }, - "$:/plugins/flibbles/relink/language/ui/Macros/Caption": { - "title": "$:/plugins/flibbles/relink/language/ui/Macros/Caption", - "text": "Macros" - }, - "$:/plugins/flibbles/relink/language/ui/Operators/Caption": { - "title": "$:/plugins/flibbles/relink/language/ui/Operators/Caption", - "text": "Operators" - }, - "$:/plugins/flibbles/relink/license": { - "title": "$:/plugins/flibbles/relink/license", - "type": "text/vnd.tiddlywiki", - "text": "<a href={{$:/plugins/flibbles/relink!!demo}}>Relink Plugin</a> Copyright (c) 2019-<<now YYYY>> Cameron Fischer\n\n[[BSD 3-Clause License|https://raw.githubusercontent.com/flibbles/tw5-relink/master/LICENSE]]\n" - }, - "$:/config/flibbles/relink/macros/csvtiddlers/filter": { - "title": "$:/config/flibbles/relink/macros/csvtiddlers/filter", - "text": "filter" - }, - "$:/config/flibbles/relink/macros/datauri/title": { - "title": "$:/config/flibbles/relink/macros/datauri/title", - "text": "title" - }, - "$:/config/flibbles/relink/macros/jsontiddler/title": { - "title": "$:/config/flibbles/relink/macros/jsontiddler/title", - "text": "title" - }, - "$:/config/flibbles/relink/macros/jsontiddlers/filter": { - "title": "$:/config/flibbles/relink/macros/jsontiddlers/filter", - "text": "filter" - }, - "$:/config/flibbles/relink/macros/list-links/filter": { - "title": "$:/config/flibbles/relink/macros/list-links/filter", - "text": "filter" - }, - "$:/config/flibbles/relink/macros/list-links-draggable/tiddler": { - "title": "$:/config/flibbles/relink/macros/list-links-draggable/tiddler", - "text": "title" - }, - "$:/config/flibbles/relink/macros/list-links-draggable/itemTemplate": { - "title": "$:/config/flibbles/relink/macros/list-links-draggable/itemTemplate", - "text": "title" - }, - "$:/config/flibbles/relink/macros/list-tagged-draggable/tag": { - "title": "$:/config/flibbles/relink/macros/list-tagged-draggable/tag", - "text": "title" - }, - "$:/config/flibbles/relink/macros/list-tagged-draggable/itemTemplate": { - "title": "$:/config/flibbles/relink/macros/list-tagged-draggable/itemTemplate", - "text": "title" - }, - "$:/config/flibbles/relink/macros/tabs/buttonTemplate": { - "title": "$:/config/flibbles/relink/macros/tabs/buttonTemplate", - "text": "title" - }, - "$:/config/flibbles/relink/macros/tabs/default": { - "title": "$:/config/flibbles/relink/macros/tabs/default", - "text": "title" - }, - "$:/config/flibbles/relink/macros/tabs/tabsList": { - "title": "$:/config/flibbles/relink/macros/tabs/tabsList", - "text": "filter" - }, - "$:/config/flibbles/relink/macros/tabs/template": { - "title": "$:/config/flibbles/relink/macros/tabs/template", - "text": "title" - }, - "$:/config/flibbles/relink/macros/tag/tag": { - "title": "$:/config/flibbles/relink/macros/tag/tag", - "text": "title" - }, - "$:/config/flibbles/relink/macros/tag-pill/tag": { - "title": "$:/config/flibbles/relink/macros/tag-pill/tag", - "text": "title" - }, - "$:/config/flibbles/relink/macros/timeline/subfilter": { - "title": "$:/config/flibbles/relink/macros/timeline/subfilter", - "text": "filter" - }, - "$:/config/flibbles/relink/macros/toc/tag": { - "title": "$:/config/flibbles/relink/macros/toc/tag", - "text": "title" - }, - "$:/config/flibbles/relink/macros/toc/itemClassFilter": { - "title": "$:/config/flibbles/relink/macros/toc/itemClassFilter", - "text": "filter" - }, - "$:/config/flibbles/relink/macros/toc-expandable/tag": { - "title": "$:/config/flibbles/relink/macros/toc-expandable/tag", - "text": "title" - }, - "$:/config/flibbles/relink/macros/toc-expandable/itemClassFilter": { - "title": "$:/config/flibbles/relink/macros/toc-expandable/itemClassFilter", - "text": "filter" - }, - "$:/config/flibbles/relink/macros/toc-expandable/exclude": { - "title": "$:/config/flibbles/relink/macros/toc-expandable/exclude", - "text": "list" - }, - "$:/config/flibbles/relink/macros/toc-selective-expandable/tag": { - "title": "$:/config/flibbles/relink/macros/toc-selective-expandable/tag", - "text": "title" - }, - "$:/config/flibbles/relink/macros/toc-selective-expandable/itemClassFilter": { - "title": "$:/config/flibbles/relink/macros/toc-selective-expandable/itemClassFilter", - "text": "filter" - }, - "$:/config/flibbles/relink/macros/toc-selective-expandable/exclude": { - "title": "$:/config/flibbles/relink/macros/toc-selective-expandable/exclude", - "text": "list" - }, - "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/tag": { - "title": "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/tag", - "text": "title" - }, - "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/selectedTiddler": { - "title": "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/selectedTiddler", - "text": "title" - }, - "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/unselectedText": { - "title": "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/unselectedText", - "text": "wikitext" - }, - "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/missingText": { - "title": "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/missingText", - "text": "wikitext" - }, - "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/template": { - "title": "$:/config/flibbles/relink/macros/toc-tabbed-external-nav/template", - "text": "title" - }, - "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/tag": { - "title": "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/tag", - "text": "title" - }, - "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/selectedTiddler": { - "title": "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/selectedTiddler", - "text": "title" - }, - "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/unselectedText": { - "title": "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/unselectedText", - "text": "wikitext" - }, - "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/missingText": { - "title": "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/missingText", - "text": "wikitext" - }, - "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/template": { - "title": "$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/template", - "text": "title" - }, - "$:/config/flibbles/relink/operators/list": { - "title": "$:/config/flibbles/relink/operators/list", - "text": "reference" - }, - "$:/config/flibbles/relink/operators/tag": { - "title": "$:/config/flibbles/relink/operators/tag", - "text": "title" - }, - "$:/config/flibbles/relink/operators/title": { - "title": "$:/config/flibbles/relink/operators/title", - "text": "title" - }, - "$:/config/flibbles/relink/operators/field:title": { - "title": "$:/config/flibbles/relink/operators/field:title", - "text": "title" - }, - "$:/language/EditTemplate/Title/Impossibles/Prompt": { - "title": "$:/language/EditTemplate/Title/Impossibles/Prompt", - "text": "''Warning:'' Not all references in the following tiddlers can be updated by //Relink// due to the complexity of the new title:" - }, - "$:/language/EditTemplate/Title/References/Prompt": { - "title": "$:/language/EditTemplate/Title/References/Prompt", - "text": "The following tiddlers will be updated if relinking:" - }, - "$:/language/EditTemplate/Title/Relink/Prompt": { - "title": "$:/language/EditTemplate/Title/Relink/Prompt", - "text": "Use //Relink// to update ''<$text text=<<fromTitle>>/>'' to ''<$text text=<<toTitle>>/>'' across all other tiddlers" - }, - "$:/core/ui/EditTemplate/title": { - "title": "$:/core/ui/EditTemplate/title", - "tags": "$:/tags/EditTemplate", - "text": "<$edit-text field=\"draft.title\" class=\"tc-titlebar tc-edit-texteditor\" focus=\"true\" tabindex={{$:/config/EditTabIndex}}/>\n\n<$reveal state=\"!!draft.title\" type=\"nomatch\" text={{!!draft.of}} tag=\"div\">\n\n<$vars pattern=\"\"\"[\\|\\[\\]{}]\"\"\" bad-chars=\"\"\"`| [ ] { }`\"\"\">\n\n<$list filter=\"[all[current]regexp:draft.title<pattern>]\" variable=\"listItem\">\n\n<div class=\"tc-message-box\">\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}\n\n</div>\n\n</$list>\n\n</$vars>\n\n<$list filter=\"[{!!draft.title}!is[missing]]\" variable=\"listItem\">\n\n<div class=\"tc-message-box\">\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}\n\n</div>\n\n</$list>\n\n<$list filter=\"[{!!draft.of}!is[missing]]\" variable=\"listItem\">\n\n<$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}>\n\n<$checkbox tiddler=\"$:/config/RelinkOnRename\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> {{$:/language/EditTemplate/Title/Relink/Prompt}}</$checkbox>\n\n<$tiddler tiddler=<<fromTitle>> >\n\n<$list filter=\"[relink:wouldchange<toTitle>limit[1]]\" variable=\"listItem\">\n\n<$vars stateTiddler=<<qualify \"$:/state/edit/references\">> >\n\n<$set\n\tname=\"prompt\"\n\tfilter=\"[relink:wouldchange<toTitle>relink:impossible<toTitle>]\"\n\tvalue=\"EditTemplate/Title/Impossibles/Prompt\"\n\temptyValue=\"EditTemplate/Title/References/Prompt\" >\n<$reveal type=\"nomatch\" state=<<stateTiddler>> text=\"show\">\n<$button set=<<stateTiddler>> setTo=\"show\" class=\"tc-btn-invisible\">{{$:/core/images/right-arrow}}\n<$macrocall $name=lingo title=<<prompt>> />\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<stateTiddler>> text=\"show\">\n<$button set=<<stateTiddler>> setTo=\"hide\" class=\"tc-btn-invisible\">{{$:/core/images/down-arrow}}\n<$macrocall $name=lingo title=<<prompt>> />\n</$button>\n</$reveal>\n</$set>\n\n<$reveal type=\"match\" state=<<stateTiddler>> text=\"show\">\n<$list variable=\"listItem\" filter=\"[relink:wouldchange<toTitle>!title[$:/StoryList]sort[title]]\" template=\"$:/plugins/flibbles/relink/ui/ListItemTemplate\">\n</$list>\n</$reveal>\n\n</$vars>\n\n</$list>\n\n</$tiddler>\n\n</$vars>\n\n</$list>\n\n</$reveal>\n" - }, - "$:/config/flibbles/relink/PluginLibrary": { - "title": "$:/config/flibbles/relink/PluginLibrary", - "caption": "//Relink// Library", - "url": "https://flibbles.github.io/tw5-relink/library/index.html", - "tags": "$:/tags/PluginLibrary", - "text": "The //Relink// library contains //Relink// as well as its supplemental plugins. It is maintained by Flibbles. See the [[github page|https://github.com/flibbles/tw5-relink]] for more information.\n" - }, - "$:/plugins/flibbles/relink/readme": { - "title": "$:/plugins/flibbles/relink/readme", - "type": "text/vnd.tiddlywiki", - "text": "When renaming a tiddler, Relink can update the fields, filters, and widgets\nof all other tiddlers. However, it works through whitelisting.\n\nIt's already configured to update tiddler titles for all core widgets, filters,\nand fields, but the whitelists can be customized for each of this in the\nconfiguration panel.\n\nSee <a href={{$:/plugins/flibbles/relink!!source}}>the tw5-relink website</a> for more details and examples.\n" - }, - "$:/config/flibbles/relink/settings/default-type": { - "title": "$:/config/flibbles/relink/settings/default-type", - "text": "title" - }, - "$:/plugins/flibbles/relink/ui/ListItemTemplate": { - "title": "$:/plugins/flibbles/relink/ui/ListItemTemplate", - "text": "<$set\n\tname=\"classes\"\n\tfilter=\"[<listItem>relink:impossible<toTitle>]\"\n\tvalue=\"tc-menu-list-item tc-relink-impossible\"\n\temptyValue=\"tc-menu-list-item\">\n<div class=<<classes>>>\n<$link to=<<listItem>>><$text text=<<listItem>> /></$link>\n</div>\n</$set>\n" - }, - "$:/plugins/flibbles/relink/ui/TiddlerInfo/References": { - "title": "$:/plugins/flibbles/relink/ui/TiddlerInfo/References", - "caption": "{{$:/plugins/flibbles/relink/language/TiddlerInfo/References/Caption}}", - "tags": "$:/tags/TiddlerInfo", - "text": "\\define lingo-base() $:/plugins/flibbles/relink/language/TiddlerInfo/\n\\define filter() [all[current]relink:backreferences[]!title[$:/StoryList]!prefix[$:/temp/]sort[title]]\n<$list filter=\"[subfilter<filter>first[]]\">\n\n<<lingo References/Description>>\n</$list>\n\n<table class=\"tc-relink-references-table\">\n<tbody>\n<$list filter=<<filter>> emptyMessage=<<lingo References/Empty>> variable=\"listItem\" template=\"$:/plugins/flibbles/relink/ui/TiddlerInfo/ReferencesTemplate\" />\n</tbody>\n</table>\n" - }, - "$:/plugins/flibbles/relink/ui/TiddlerInfo/ReferencesTemplate": { - "title": "$:/plugins/flibbles/relink/ui/TiddlerInfo/ReferencesTemplate", - "text": "<tr class=\"tc-relink-references\">\n<td class=\"tc-relink-references-title\">\n<$link to=<<listItem>>/>\n</td>\n<td class=\"tc-relink-references-report\">\n<$list filter=\"[<listItem>relink:report<currentTiddler>]\">\n\n<$text text=<<currentTiddler>> />\n</$list>\n\n</td>\n</tr>\n" - }, - "$:/plugins/flibbles/relink/ui/components/button-delete": { - "title": "$:/plugins/flibbles/relink/ui/components/button-delete", - "text": "\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define prefix() $:/config/flibbles/relink/\n\n<$list filter=\"[all[current]prefix<prefix>]\" >\n<$button class=\"tc-btn-invisible\" tooltip={{$:/plugins/flibbles/relink/language/Buttons/Delete/Hint}}><$list filter=\"[all[current]is[tiddler]]\">\n<$action-deletetiddler $tiddler=<<currentTiddler>> />\n</$list><$list filter=\"[all[current]is[shadow]]\">\n<$action-setfield $tiddler=<<tiddlerName>> text=\"\" />\n</$list>\n{{$:/core/images/delete-button}}\n</$button>\n</$list><$list filter=\"[all[current]!prefix<prefix>]\">\n<$link><$button class=\"tc-btn-invisible\" tooltip={{$:/plugins/flibbles/relink/language/Buttons/LinkToInline/Hint}}>{{$:/core/images/link}}</$button></$link>\n</$list>\n" - }, - "$:/plugins/flibbles/relink/ui/components/select-fieldtype": { - "title": "$:/plugins/flibbles/relink/ui/components/select-fieldtype", - "text": "\\define prefix() $:/config/flibbles/relink/\n\n<$vars type={{{ [<signature>relink:type[]] }}} >\n<$list filter=\"[all[current]prefix<prefix>]\" >\n<$select tiddler=<<currentTiddler>> >\n<$list variable=\"option\" filter=\"[relink:types[]]\">\n<option><$text text=<<option>> /></option>\n</$list>\n</$select>\n</$list><$list filter=\"[all[current]!prefix<prefix>]\">\n<$text text=<<type>> />\n</$list>\n</$vars>\n" - }, - "$:/plugins/flibbles/relink/ui/components/tables": { - "title": "$:/plugins/flibbles/relink/ui/components/tables", - "text": "\\define .make-table(title, plugin, default-table-state:yes)\n\n<$list variable=\"render\" filter=\"[relink:signatures<__plugin__>prefix<__category__>first[]]\">\n<$set name=\"table-state\" value=<<qualify \"\"\"$:/state/flibbles/relink/tables/$title$\"\"\">>>\n<tr><th class=\"tc-relink-header-plugin\" colspan=<<column-count>> >\n<$reveal type=\"nomatch\" state=<<table-state>> text=\"yes\" default=\"\"\"$default-table-state$\"\"\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<table-state>> setTo=\"yes\">\n{{$:/core/images/right-arrow}} ''$title$''\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<table-state>> text=\"yes\" default=\"\"\"$default-table-state$\"\"\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<table-state>> setTo=\"no\">\n{{$:/core/images/down-arrow}} ''$title$''\n</$button>\n</$reveal>\n</th></tr>\n<$list\n\tvariable=\"signature\"\n\tfilter=\"[relink:signatures<__plugin__>prefix<__category__>sort[]]\">\n<$vars key={{{ [<signature>removeprefix<__category__>removeprefix[/]] }}} >\n<$tiddler tiddler={{{[<signature>relink:source[]]}}} >\n<$reveal tag=\"tr\" type=\"match\" state=<<table-state>> text=\"yes\" default=\"\"\"$default-table-state$\"\"\">\n<$macrocall $name=<<__list-row-macro__>> signature=<<signature>> />\n<td class=\"tc-relink-column-type\">{{||$:/plugins/flibbles/relink/ui/components/select-fieldtype}}</td>\n<td class=\"tc-relink-column-delete\">{{||$:/plugins/flibbles/relink/ui/components/button-delete}}</td>\n</$reveal>\n</$tiddler>\n</$vars>\n</$list>\n</$set>\n</$list>\n\\end\n\n\\define tables(category, list-row-macro, header-list)\n<$vars\n\tcolumn-count={{{[enlist<__header-list__>] [[DeleteColumn]] +[count[]]}}}>\n\n<table class=\"tc-relink-whitelist\"><tbody>\n<tr>\n<$list variable=\"header\" filter=\"[enlist<__header-list__>butlast[]]\"><th><<header>></th></$list>\n<!-- We have the last column extend into the delete/link column, which is unlabeled. -->\n<th colspan=2><$text text={{{ [enlist<__header-list__>last[]] }}} /></th>\n</tr>\n\n<<.make-table Custom \"\" yes>>\n\n<$list\n\tfilter=\"[plugin-type[plugin]![$:/core]![$:/plugins/flibbles/relink]]\">\n<$set name=\"subtitle\" value={{!!description}} emptyValue={{!!title}} >\n<$macrocall $name=\".make-table\" title=<<subtitle>> plugin=<<currentTiddler>> />\n</$set>\n</$list>\n\n<<.make-table Core \"$:/plugins/flibbles/relink\">>\n\n</tbody></table>\n</$vars>\n\\end\n" - }, - "$:/plugins/flibbles/relink/ui/configuration/Attributes": { - "title": "$:/plugins/flibbles/relink/ui/configuration/Attributes", - "caption": "{{$:/plugins/flibbles/relink/language/ui/Attributes/Caption}}", - "tags": "$:/tags/flibbles/relink/Configuration", - "text": "\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define prefix-attr() $:/config/flibbles/relink/attributes/\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define element-name-tiddler() $:/state/flibbles/relink/element-name\n\\define attribute-name-tiddler() $:/state/flibbles/relink/attribute-name\n\n\\define row()\n<$set name=\"element\"\n filter=\"[<key>splitbefore[/]removesuffix[/]]\">\n<$set name=\"attribute\"\n filter=\"[<key>removeprefix<element>removeprefix[/]]\">\n<td><$text text=<<element>> /></td>\n<td><$text text=<<attribute>> /></td>\n</$set></$set>\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Attributes}}\n\n<em class=\"tc-edit\">Add a new attribute:</em>\n<$edit-text\n\ttiddler=<<element-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"widget/element\" />\n<$edit-text\n\ttiddler=<<attribute-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"attribute\" />\n<$reveal type=\"nomatch\" text=\"\" state=<<element-name-tiddler>> >\n<$reveal type=\"nomatch\" text=\"\" state=<<attribute-name-tiddler>> >\n<$relinkmangler>\n<$button\n\ttooltip={{$(lingo-base)$NewAttribute/Hint}}\n\taria-label={{$(lingo-base)$NewAttribute/Caption}}>\n<$action-sendmessage\n\t$message=\"relink-add-attribute\"\n\telement={{$(element-name-tiddler)$}}\n\tattribute={{$(attribute-name-tiddler)$}} />\n<$action-deletetiddler $tiddler=<<attribute-name-tiddler>> />\n<$action-deletetiddler $tiddler=<<element-name-tiddler>> />\n<$text text={{$(lingo-base)$NewAttribute/Caption}}/>\n</$button>\n</$relinkmangler>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<attribute-name-tiddler>> >\n<$button>\n<$text text={{$(lingo-base)$NewAttribute/Caption}}/>\n</$button>\n</$reveal>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<element-name-tiddler>> >\n<$button>\n<$text text={{$(lingo-base)$NewAttribute/Caption}}/>\n</$button>\n</$reveal>\n\n<$macrocall\n\t$name=tables\n\tcategory=\"attributes\"\n\theader-list=\"[[Widget/HTML Element]] Attribute Type\"\n\tlist-row-macro=\"row\" />\n\\end\n\n<<body>>\n" - }, - "$:/plugins/flibbles/relink/ui/configuration/Fields": { - "title": "$:/plugins/flibbles/relink/ui/configuration/Fields", - "caption": "{{$:/plugins/flibbles/relink/language/ui/Fields/Caption}}", - "tags": "$:/tags/flibbles/relink/Configuration", - "text": "\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define field-name-tiddler() $:/state/flibbles/relink/field-name\n\n\\define row()\n<td><$text text=<<key>> /></td>\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Fields}}\n\n<em class=\"tc-edit\">Add a new field:</em>\n<$edit-text\n\ttiddler=<<field-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"field name\" />\n<$reveal type=\"nomatch\" text=\"\" state=<<field-name-tiddler>> >\n<$relinkmangler>\n<$button\n\ttooltip={{$(lingo-base)$NewField/Hint}}\n\taria-label={{$(lingo-base)$NewField/Caption}}>\n<$action-sendmessage\n\t$message=\"relink-add-field\"\n\tfield={{$(field-name-tiddler)$}} />\n<$action-deletetiddler $tiddler=<<field-name-tiddler>> />\n<$text text={{$(lingo-base)$NewField/Caption}}/>\n</$button>\n</$relinkmangler>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<field-name-tiddler>> >\n<$button>\n<$text text={{$(lingo-base)$NewField/Caption}}/>\n</$button>\n</$reveal>\n\n\n<$macrocall\n\t$name=tables\n\tcategory=\"fields\"\n\theader-list=\"[[Field Name]] [[Field Type]]\"\n\tlist-row-macro=\"row\" />\n\\end\n\n<<body>>\n" - }, - "$:/plugins/flibbles/relink/ui/configuration/Macros": { - "title": "$:/plugins/flibbles/relink/ui/configuration/Macros", - "caption": "{{$:/plugins/flibbles/relink/language/ui/Macros/Caption}}", - "tags": "$:/tags/flibbles/relink/Configuration", - "text": "\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define prefix-macro() $:/config/flibbles/relink/macros/\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define macro-name-tiddler() $:/state/flibbles/relink/macro-name\n\\define parameter-name-tiddler() $:/state/flibbles/relink/parameter-name\n\n\\define row()\n<$set name=\"parameter\"\n filter=\"[<key>relink:splitafter[/]]\">\n<$set name=\"macro\"\n filter=\"[<key>removesuffix<parameter>removesuffix[/]]\">\n<td><$text text=<<macro>> /></td>\n<td><$text text=<<parameter>> /></td>\n</$set></$set>\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Macros}}\n\n<em class=\"tc-edit\">Add a new macro parameter:</em>\n<$edit-text\n\ttiddler=<<macro-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"macro\" />\n<$edit-text\n\ttiddler=<<parameter-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"parameter\" />\n<$reveal type=\"nomatch\" text=\"\" state=<<macro-name-tiddler>> >\n<$reveal type=\"nomatch\" text=\"\" state=<<parameter-name-tiddler>> >\n<$relinkmangler>\n<$button\n\ttooltip={{$(lingo-base)$NewParameter/Hint}}\n\taria-label={{$(lingo-base)$NewParameter/Caption}}>\n<$action-sendmessage\n\t$message=\"relink-add-parameter\"\n\tmacro={{$(macro-name-tiddler)$}}\n\tparameter={{$(parameter-name-tiddler)$}} />\n<$action-deletetiddler $tiddler=<<parameter-name-tiddler>> />\n<$action-deletetiddler $tiddler=<<macro-name-tiddler>> />\n<$text text={{$(lingo-base)$NewParameter/Caption}}/>\n</$button>\n</$relinkmangler>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<parameter-name-tiddler>> >\n<$button>\n<$text text={{$(lingo-base)$NewParameter/Caption}}/>\n</$button>\n</$reveal>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<macro-name-tiddler>> >\n<$button>\n<$text text={{$(lingo-base)$NewParameter/Caption}}/>\n</$button>\n</$reveal>\n\n\n<$macrocall\n\t$name=tables\n\tcategory=\"macros\"\n\theader-list=\"Macro Parameter Type\"\n\tlist-row-macro=\"row\" />\n\\end\n\n<<body>>\n" - }, - "$:/plugins/flibbles/relink/ui/configuration/Operators": { - "title": "$:/plugins/flibbles/relink/ui/configuration/Operators", - "caption": "{{$:/plugins/flibbles/relink/language/ui/Operators/Caption}}", - "tags": "$:/tags/flibbles/relink/Configuration", - "text": "\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define operator-name-tiddler() $:/state/flibbles/relink/operator-name\n\n\\define row()\n<td><$text text=<<key>> /></td>\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Operators}}\n\n<em class=\"tc-edit\">Add a new filter operator:</em>\n<$edit-text\n\ttiddler=<<operator-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"operator name\" />\n<$reveal type=\"nomatch\" text=\"\" state=<<operator-name-tiddler>>>\n<$relinkmangler>\n<$button\n\ttooltip={{$(lingo-base)$NewOperator/Hint}}\n\taria-label={{$(lingo-base)$NewOperator/Caption}}>\n<$action-sendmessage\n\t$message=\"relink-add-operator\"\n\toperator={{$(operator-name-tiddler)$}} />\n<$action-deletetiddler $tiddler=<<operator-name-tiddler>> />\n<$text text={{$(lingo-base)$NewOperator/Caption}}/>\n</$button>\n</$relinkmangler>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<operator-name-tiddler>>>\n<$button>\n<$text text={{$(lingo-base)$NewOperator/Caption}}/>\n</$button>\n</$reveal>\n\n<$macrocall\n\t$name=tables\n\tcategory=\"operators\"\n\theader-list=\"[[Filter Operator]] [[Operand Type]]\"\n\tlist-row-macro=\"row\" />\n\\end\n\n<<body>>\n" - }, - "$:/plugins/flibbles/relink/ui/stylesheet.css": { - "title": "$:/plugins/flibbles/relink/ui/stylesheet.css", - "text": ".tc-relink-references {\n}\n\n.tc-relink-references-table {\n\twidth: 100%;\n\tborder: none;\n}\n\n.tc-relink-references-table td {\n\tborder-left: none;\n}\n\n.tc-relink-references-table tr:first-child td {\n\tborder-top: none;\n}\n\n.tc-relink-references-title {\n\ttext-align: left;\n\tvertical-align: top;\n}\n\n.tc-relink-references-occurrence {\n\tfont-style: italic;\n\ttext-align: left;\n\tfont-weight: 200;\n\tpadding-left: 25px;\n\tvertical-align: top;\n}\n\n.tc-relink-header-plugin {\n\ttext-align: left;\n}\n\n.tc-relink-header-plugin button {\n\twidth: 100%\n}\n\n.tc-relink-column-type {\n\twidth: 8em;\n}\n\n.tc-relink-column-type select {\n\twidth: 100%;\n}\n\n.tc-relink-column-delete {\n\tborder-left: none;\n\ttext-align: left;\n}\n\n.tc-relink-column-delete button {\n\tpadding-left: 1em;\n}\n\n.tc-relink-impossible a.tc-tiddlylink {\n\tcolor: red;\n}\n", - "tags": "$:/tags/Stylesheet", - "type": "text/css" - } - } -}-
{ - "tiddlers": { - "$:/plugins/flibbles/relink-titles/configuration": { - "title": "$:/plugins/flibbles/relink-titles/configuration", - "caption": "{{$:/plugins/flibbles/relink-titles/language/Caption}}", - "tags": "$:/tags/flibbles/relink/Configuration", - "text": "\\define lingo-base() $:/plugins/flibbles/relink-titles/language/\n\\define prefix() $:/config/flibbles/relink-titles/relink/\n\n<<lingo Help>>\n\n<table>\n<tbody>\n<$list filter=\"[[relinktitlesrule]modules[]]\">\n<tr>\n<td>\n<$checkbox\n\ttiddler={{{ [all[current]addprefix<prefix>] }}}\n\tfield=\"text\"\n\tchecked=\"enabled\"\n\tunchecked=\"disabled\"\n\tdefault=\"enabled\"\n> ''{{!!caption}}''</$checkbox></td><td>\n\n<$transclude field='description' />\n\n</td></tr></$list>\n</tbody></table>\n" - }, - "$:/plugins/flibbles/relink-titles/language/Caption": { - "title": "$:/plugins/flibbles/relink-titles/language/Caption", - "text": "Titles" - }, - "$:/plugins/flibbles/relink-titles/language/Directory/Caption": { - "title": "$:/plugins/flibbles/relink-titles/language/Directory/Caption", - "text": "Rename subdirectories" - }, - "$:/plugins/flibbles/relink-titles/language/Directory/Description": { - "title": "$:/plugins/flibbles/relink-titles/language/Directory/Description", - "text": "For wikis set up hierarchically using `/`, like a filesystem. This option will update all tiddlers nested inside the target tiddler. i.e. `fromTiddler/path/file` becomes `toTiddler/path/file`." - }, - "$:/plugins/flibbles/relink-titles/language/Help": { - "title": "$:/plugins/flibbles/relink-titles/language/Help", - "text": "See the <a href={{{ [{$:/plugins/flibbles/relink-titles!!demo}addsuffix[#Plugins/Titles]] }}}>//Relink-titles// documentation page</a> for details." - }, - "$:/plugins/flibbles/relink-titles/readme": { - "title": "$:/plugins/flibbles/relink-titles/readme", - "text": "Highly customizable relinking of tiddler titles //related// to the renamed tiddler.\n\n* Rename a hierarchy of subtiddlers when renaming a root tiddler.\n* Make custom filter rules to rename other tiddlers the way you want when Relinking.\n* Integrates with other plugins for plugin-specific rules.\n\nSee <a href={{$:/plugins/flibbles/relink-titles!!source}}>the tw5-relink website</a> for more details and examples.\n\n{{$:/core/images/warning}} ''Warning:'' You must use //Relink// v1.10.2 or greater with this, or this plugin may delete some tiddler bodies while trying to relink titles.\n" - }, - "$:/plugins/flibbles/relink-titles/relinkoperations/title.js": { - "title": "$:/plugins/flibbles/relink-titles/relinkoperations/title.js", - "text": "/*\\\nmodule-type: relinkoperator\ntitle: $:/plugins/flibbles/relink-titles/relinkoperations/title.js\ntype: application/javascript\n\nRenames tiddlers which have titles derived from fromTitle. Then it makes\nsure that those tiddlers are properly relinked too.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar configPrefix = \"$:/config/flibbles/relink-titles/relink/\";\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\nutils.getContext('whitelist').hotDirectories.push(configPrefix);\n\nvar titleRules = Object.create(null);\n$tw.modules.forEachModuleOfType('relinktitlesrule', function(title, module) {\n\ttitleRules[title] = module;\n});\n\nexports.name = 'title';\n\nexports.report = function(tiddler, callback, options) {\n\tvar cache = getCache(options),\n\t\trules = cache.rules;\n\tfor (var i = 0; i < rules.length; i++) {\n\t\trules[i].report(tiddler.fields.title, function(title, blurb) {\n\t\t\tcallback(title, blurb ? ('title: ' + blurb) : 'title');\n\t\t}, options);\n\t}\n};\n\nexports.relink = function(tiddler, fromTitle, toTitle, changes, options) {\n\tvar cache = getCache(options),\n\t\ttitle = tiddler.fields.title;\n\tif (!cache.touched[title]) {\n\t\tvar rules = cache.rules;\n\t\tfor (var i = 0; i < rules.length; i++) {\n\t\t\tvar rule = rules[i];\n\t\t\tvar entry = rule.relink(title, fromTitle, toTitle, options);\n\t\t\tif (entry) {\n\t\t\t\tvar result = entry.output;\n\t\t\t\tif (result && (result !== title)) {\n\t\t\t\t\tif (options.wiki.getTiddler(result) || cache.touched[result]) {\n\t\t\t\t\t\t// There's already a tiddler there. We won't clobber it.\n\t\t\t\t\t\tentry.impossible = true;\n\t\t\t\t\t\tentry.output = undefined;\n\t\t\t\t\t}\n\t\t\t\t\tcache.touched[result] = true;\n\t\t\t\t}\n\t\t\t\t// Record that we've touched this one, so we only touch it once.\n\t\t\t\t// Both its prior and latter. Neither should be touched again.\n\t\t\t\tcache.touched[title] = true;\n\t\t\t\tchanges.title = entry;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n};\n\nfunction getCache(options) {\n\treturn utils.getCacheForRun(options, 'titles', function() {\n\t\treturn {\n\t\t\trules: getRules(options.wiki),\n\t\t\ttouched: Object.create(null)\n\t\t};\n\t});\n};\n\nfunction getRules(wiki) {\n\tvar activeRules = [];\n\tfor (var rule in titleRules) {\n\t\tvar configTiddler = wiki.getTiddler(configPrefix + rule);\n\t\tif (!configTiddler || configTiddler.fields.text !== \"disabled\") {\n\t\t\tactiveRules.push(titleRules[rule]);\n\t\t}\n\t}\n\treturn activeRules;\n};\n", - "module-type": "relinkoperator", - "type": "application/javascript" - }, - "$:/plugins/flibbles/relink-titles/rules/directory": { - "title": "$:/plugins/flibbles/relink-titles/rules/directory", - "text": "/*\\\ncaption: {{$:/plugins/flibbles/relink-titles/language/Directory/Caption}}\ndescription: {{$:/plugins/flibbles/relink-titles/language/Directory/Description}}\nmodule-type: relinktitlesrule\ntitle: $:/plugins/flibbles/relink-titles/rules/directory\ntype: application/javascript\n\nHandles subdirectory renaming.\n\n\\*/\n\n/*jslint node: false, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nexports.name = 'directory';\n\n/**The report returns all parent directories of a given title which exist.\n */\nexports.report = function(title, callback, options) {\n\tvar index = -1;\n\twhile ((index = title.indexOf('/', index+1)) >= 0) {\n\t\tvar dir = title.substr(0, index);\n\t\tcallback(dir, '.' + title.substr(index));\n\t}\n};\n\n/**The relink returns the new title (if any) derived from title for a given\n * rename of fromTitle to toTitle.\n */\nexports.relink = function(title, fromTitle, toTitle, options) {\n\tvar length = fromTitle.length;\n\tif (title.charAt(length) === '/' && title.substr(0, length) === fromTitle) {\n\t\treturn {output: toTitle + title.substr(length)};\n\t}\n\treturn undefined;\n};\n", - "caption": "{{$:/plugins/flibbles/relink-titles/language/Directory/Caption}}", - "description": "{{$:/plugins/flibbles/relink-titles/language/Directory/Description}}", - "module-type": "relinktitlesrule", - "type": "application/javascript" - } - } -}-
{ - "tiddlers": { - "$:/plugins/jd/mob/config": { - "created": "20171029115120346", - "creator": "JD", - "text": "<style>\n.tc-btn-invisible { text-align: left; }\n</style>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##freshinstall\" text=\"yes\">\n<div class=\"jd-bq\">\n<p>\nThanks for installing this plugin! You can always find the latest updates <a target=\"blank\" href=\"http://j.d.simplemobile.tiddlyspot.com\">here</a>\n</p>\n<p>\nThis plugin options tiddler is also available at ''Control panel'' >> ''Appearance'' >> ''JD Mob''\n</p>\n<p>\n<$button>\n<<jdconfig freshinstall no>>\nClose message\n</$button>\n</p>\n</div>\n<br>\n<hr>\n<br>\n</$reveal>\nShow as:\n<$select tiddler=\"$:/plugins/jd/mob/config/config\" index=\"configtype\">\n<option value=\"list\">List</option>\n<option value=\"htabs\">Horizontal tabs</option>\n<option value=\"vtabs\">Vertical tabs</option>\n</$select>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##configtype\" text=\"list\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/jd/config]]\"><$transclude/><hr></$list>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##configtype\" text=\"htabs\">\n<<tabs \"[all[shadows+tiddlers]tag[$:/tags/jd/config]!has[draft.of]]\" \"$:/plugins/jd/mob/config/barpresets\">>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##configtype\" text=\"vtabs\">\n<<tabs \"[all[shadows+tiddlers]tag[$:/tags/jd/config]!has[draft.of]]\" \"$:/plugins/jd/mob/config/barpresets\" \"$:/state/tab/JDconfig\" \"tc-vertical\">>\n</$reveal>", - "title": "$:/plugins/jd/mob/config", - "tags": "$:/tags/ControlPanel/Appearance", - "subtitle": "Configure JD mobile layout", - "modifier": "JD", - "modified": "20171122151014084", - "caption": "JD Mob" - }, - "$:/plugins/jd/mob/config/fonts": { - "created": "20171031124255884", - "creator": "JD", - "text": "<style> .texte { width: calc(100% - 60px); } </style>\n\n<h2>Fonts and heights presets</h2>\n\n\n<$button class=\"tc-btn-invisible\">\n<<jdfont 38px 30px 38px 28px 20px>>\n<<jdconfig fontsize largest>>\n<<jdradbut fontsize largest>>\n</$button> Largest\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdfont 34px 26px 34px 24px 20px>>\n<<jdconfig fontsize larger>>\n<<jdradbut fontsize larger>>\n</$button> Larger\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdfont 30px 22px 30px 20px 20px>>\n<<jdconfig fontsize large>>\n<<jdradbut fontsize large>>\n</$button> Large\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdfont 26px 18px 26px 16px 20px>>\n<<jdconfig fontsize medium>>\n<<jdradbut fontsize medium>>\n</$button> Medium\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdfont 22px 14px 20px 12px 20px>>\n<<jdconfig fontsize small>>\n<<jdradbut fontsize small>>\n</$button> Small\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdfont 18px 10px 16px 8px 20px>>\n<<jdconfig fontsize smaller>>\n<<jdradbut fontsize smaller>>\n</$button> Smaller\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdfont>>\n<<jdconfig fontsize default>>\n<<jdradbut fontsize default>>\n</$button> TW5 default\n<br>\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/font-title\" caption=\"Title\" list-before=\"$:/temp/jd/mob/font/font-body\"/>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/font-body\" caption=\"Body, text buttons\" list-after=\"$:/temp/jd/mob/font/font-title\"/>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/lineheight\" caption=\"Lineheight\"/>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/font-tab-button\" caption=\"Tab buttons\"/>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/font-button\" caption=\"Image buttons\"/>\n<<jdconfig fontsize custom>>\n<<jdradbut fontsize custom>>\n</$button> Custom\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##fontsize\" text=\"custom\">\n\nInclude unit (''px'' or ''em'') when entering custom values\n\n<table style=\"width:100%\">\n<tr>\n<th style=\"width:40%\">Element</th>\n<th style=\"width:60%\">Adjust</th>\n</tr>\n<$list filter=\"[all[shadows+tiddlers]prefix[$:/temp/jd/mob/font/]!suffix[sitetitle]]\">\n<tr>\n<td><$view field=\"caption\"/></td>\n<td><$edit-text tiddler={{!!title}} field=\"temp\" placeholder={{!!text}} class=\"texte\"/>\n<$reveal type=\"match\" state=!!temp text=\"\">\n<$button class=\"tc-btn-invisible\" style=\"color:grey; cursor:not-allowed;\">✓</$button>\n<$button class=\"tc-btn-invisible\" style=\"color:grey; cursor:not-allowed;\">✕</$button>\n</$reveal>\n<$reveal type=\"nomatch\" state=!!temp text=\"\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler={{!!title}} text={{!!temp}}/>\n<$action-setfield $tiddler={{!!title}} temp=\"\"/>✓</$button>\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler={{!!title}} temp=\"\"/>✕</$button>\n</$reveal>\n</td>\n</tr>\n</$list>\n</table>\n</$reveal>\n<br><br>", - "title": "$:/plugins/jd/mob/config/fonts", - "tags": "$:/tags/jd/config", - "modifier": "JD", - "modified": "20171120143104637", - "caption": "Fonts and heights" - }, - "$:/plugins/jd/mob/readme": { - "created": "20171030143047925", - "creator": "JD", - "text": "This is a mobile layout that applies to narrow screens. It introduces the following:\n\n# A Topbar that can be any of the following:\n#* Hidden\n#* Titlebar (search, title, subtitle, menu)\n#* Mobbuttons bar\n#** Buttons tagged ''~$:/tags/jd/mobbutton''\n#* Searchbar\n#** Simple searchbar lists standard search results only\n#** Combined searchbar lists all search results (possibly slow on some devices)\n#* Control area containing ''Top Left Bar'', ''Page Control'', ''Mob-only'', and ''Top Right Bar'' buttons (in that order)\n#** ''Top Left Bar'' >> buttons tagged ''~$:/tags/TopLeftBar''\n#** ''Page control'' >> buttons tagged ''~$:/tags/PageControls''\n#** ''Mob-only'' >> other buttons tagged ''~$:/tags/jd/mobbutton''\n#** ''Top Right Bar'' >> buttons tagged ''~$:/tags/TopRightBar''\n#** Buttons you don't want to appear here should be tagged ''~$:/tags/jd/mobno'' \n\n# A Bottombar that can be any of the following:\n#* Hidden\n#* Mobbuttons bar\n#** Buttons tagged ''~$:/tags/jd/mobbutton''\n#* Control area containing ''Top Left Bar'', ''Page Control'', ''Mob-only'', and ''Top Right Bar'' buttons (in that order)\n#** ''Top Left Bar'' >> buttons tagged ''~$:/tags/TopLeftBar''\n#** ''Page control'' >> buttons tagged ''~$:/tags/PageControls''\n#** ''Mob-only'' >> other buttons tagged ''~$:/tags/jd/mobbutton''\n#** ''Top Right Bar'' >> buttons tagged ''~$:/tags/TopRightBar''\n#** Buttons you don't want to appear here should be tagged ''~$:/tags/jd/mobno'' \n\n//Note:// \n\nThis layout is tied to the ''Sidebar Breakpoint'' set at ''Control Panel'' >> ''Appearance'' >> ''Theme Tweaks''.\n\nThis layout is compatible with any core theme as of release date.\n\n<a target=\"blank\" href=\"http://j.d.simplemobile.tiddlyspot.com\">Project Homepage on Tiddlyspot</a>\n\n!! Version History\n\n!!! 2018-09-03 Release of version 1.0.4\n\n* Added ability to create tiddler out of search term via \"+\" button, or keyboard shortcut: \"ctrl+space\"\n\n[[Detailed changelog|http://j.d.simplemobile.tiddlyspot.com/#Changelog]]", - "title": "$:/plugins/jd/mob/readme", - "tags": "", - "modifier": "JD", - "modified": "20180903122259331" - }, - "$:/plugins/jd/mob/config/config": { - "created": "20171109145547252", - "creator": "JD", - "text": "freshinstall: yes\ndefaultconfirm: cancel\nconfigtype: list\nfontsize: default\nscrollbars: show\nbarpreset: 4\nstoryfix: no\ntitlebaradjust: no\ntopbar: fixedsearch\ntopbarchoice: hide\nsearchbar: yes\nradbuttop: fixedsearch\nsearchbarchoice: simple\nbottombar: controls\nradbuttopfixedsearchops: hide\nradbuttopcontrolsops: hide\nradbuttopmobbuttonsops: hide\nradbuttoptitleops: hide\nbottombarcontrolsops: hide\nbottombarmobbuttonsops: hide\nbarpreset1ops: hide\nbarpreset2ops: hide\nbarpreset3ops: hide\nbarpreset4ops: hide\nsearchbutton: simple\nfocus: show", - "type": "application/x-tiddler-dictionary", - "title": "$:/plugins/jd/mob/config/config", - "modifier": "JD", - "modified": "20171122154523597" - }, - "$:/plugins/jd/mob/config/topbar": { - "created": "20171028024424838", - "creator": "JD", - "text": "<h2>Topbar</h2>\n<$button class=tc-btn-invisible>\n<<setTopsearchbar>>\n<<tglSearch>>\n<<jdconfig searchbutton simple>>\n<<jdradbut radbuttop fixedsearch>>\n</$button> Fixed searchbar\n<<moreOps radbuttop fixedsearch searchbar>>\n<$button class=tc-btn-invisible>\n<<setTopcontrols>>\n<<tglSearch>>\n<<jdconfig searchbutton simple>>\n<<jdradbut radbuttop controls>>\n</$button> Controls\n<<moreOps radbuttop controls searchbutton>>\n<$button class=tc-btn-invisible>\n<<setTopmobbuttons>>\n<<tglSearch>>\n<<jdconfig searchbutton simple>>\n<<jdradbut radbuttop mobbuttons>>\n</$button> Mob buttons only\n<<moreOps radbuttop mobbuttons searchbutton>>\n<$button class=tc-btn-invisible>\n<<setToptitlebar>>\n<<tglSearch>>\n<<jdconfig searchbutton simple>>\n<<jdradbut radbuttop title>>\n</$button> Titlebar\n<<moreOps radbuttop title titlebar>>\n<$button class=tc-btn-invisible>\n<<setTophide>>\n<<jdradbut radbuttop hide>>\n</$button> Hidden\n<br>", - "title": "$:/plugins/jd/mob/config/topbar", - "modifier": "JD", - "modified": "20171122131221362", - "list-before": "$:/plugins/jd/mob/config/bottombar", - "caption": "Topbar style" - }, - "$:/plugins/jd/mob/config/bottombar": { - "created": "20171110164302862", - "creator": "JD", - "text": "<h2>Bottombar</h2>\n<$button class=\"tc-btn-invisible\">\n<<setBottomcontrols>>\n<<jdradbut bottombar controls>>\n</$button> Controls\n<<moreOps bottombar controls searchbutton>>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig bottombar mobbuttons>>\n<<jdradbut bottombar mobbuttons>>\n</$button> Mob buttons only\n<<moreOps bottombar mobbuttons searchbutton>>\n<$button class=\"tc-btn-invisible\">\n<<noBottom>>\n<<jdradbut bottombar hide>>\n</$button> Hidden\n<br>", - "title": "$:/plugins/jd/mob/config/bottombar", - "modifier": "JD", - "modified": "20171122131210851", - "list-after": "$:/plugins/jd/mob/config/topbar", - "caption": "Bottombar style" - }, - "$:/plugins/jd/mob/config/barpresets": { - "created": "20171113033257223", - "creator": "JD", - "text": "<h2>Topbar and bottombar presets</h2>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig barpreset 1>>\n<<setToptitlebar>>\n<<noBottom>>\n<<jdradbut barpreset 1>>\n</$button> ''Titlebar'' on top, hidden bottom\n<<moreOps barpreset 1 titlebar>>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig barpreset 2>>\n<<setTopcontrols>>\n<<noBottom>>\n<<jdradbut barpreset 2>>\n</$button> ''Controls'' on top, hidden bottom\n<<moreOps barpreset 2 searchbutton>>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig barpreset 3>>\n<<setTophide>>\n<<setBottomcontrols>>\n<<jdradbut barpreset 3>>\n</$button> Hidden top, ''Controls'' on bottom\n<<moreOps barpreset 3 searchbutton>>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig barpreset 4>>\n<<setTopsearchbar>>\n<<setBottomcontrols>>\n<<jdradbut barpreset 4>>\n</$button> ''Searchbar'' on top, ''Controls'' on bottom\n<<moreOps barpreset 4 searchbar>>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig barpreset 5>>\n<<jdradbut barpreset 5>>\n</$button> Custom topbar and bottombar\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##barpreset\" text=\"5\">\n{{$:/plugins/jd/mob/config/topbar}}\n{{$:/plugins/jd/mob/config/bottombar}}\n</$reveal>\n<br><br>", - "title": "$:/plugins/jd/mob/config/barpresets", - "tags": "$:/tags/jd/config", - "modifier": "JD", - "modified": "20171122154450000", - "caption": "Top and bottom bars" - }, - "$:/plugins/jd/mob/template/topbar": { - "text": "<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"fixedsearch\">\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##fixedsearch\" text=\"combined\">\n{{$:/plugins/jd/mob/template/combinedsearch}}\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##fixedsearch\" text=\"simple\">\n{{$:/plugins/jd/mob/template/simplesearch}}\n</$reveal>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"controls\">\n<span class=\"jd-topbar\">\n{{$:/plugins/jd/mob/template/controls}}\n</span>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"mobbuttons\">\n<span class=\"jd-topbar\">\n<div class=\"tc-page-controls\">\n{{$:/plugins/jd/mob/template/mobbuttons}}\n</div>\n</span>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"title\">\n<span class=\"jd-topbar\">\n{{$:/plugins/jd/mob/template/titlebar}}\n</span>\n</$reveal>", - "title": "$:/plugins/jd/mob/template/topbar", - "tags": "$:/tags/PageTemplate", - "modifier": "JD", - "modified": "20171118170723817", - "fixedsearch": "{{$:/plugins/jd/mob/template/combinedsearch}}", - "creator": "JD", - "created": "20171018115714311" - }, - "$:/plugins/jd/mob/template/titlebar": { - "created": "20171112032454483", - "creator": "JD", - "text": "<div class=\"jd-title-wrapper\">\n<span class=\"tc-site-title\"><$transclude tiddler=\"$:/SiteTitle\"/></span>\n<span class=\"tc-site-subtitle\"><$transclude tiddler=\"$:/SiteSubtitle\"/></span>\n</div>\n<div class=\"jd-title-controls\">\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##searchbutton\" text=\"simple\">\n{{$:/plugins/jd/mob/button/search}}\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##searchbutton\" text=\"combined\">\n{{$:/plugins/jd/mob/button/search}}\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##searchbutton\" text=\"core\">\n{{$:/core/ui/Buttons/advanced-search}}\n</$reveal>\n{{$:/core/ui/TopBar/menu}}\n</div>", - "title": "$:/plugins/jd/mob/template/titlebar", - "tags": "", - "modifier": "JD", - "modified": "20171122134204001" - }, - "$:/plugins/jd/mob/template/controls": { - "created": "20171111135718973", - "creator": "JD", - "text": "\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n<div class=\"tc-page-controls\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TopLeftBar]!has[draft.of]!tag[$:/tags/jd/mobno]]\">\n<$transclude/>\n</$list>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]!tag[$:/tags/jd/mobno]]\" variable=\"listItem\">\n<$reveal type=\"nomatch\" state=<<config-title>> text=\"hide\">\n<$transclude tiddler=<<listItem>>/>\n</$reveal>\n</$list>\n{{$:/plugins/jd/mob/template/mobbuttons}}\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TopRightBar]!has[draft.of]!tag[$:/tags/jd/mobno]]\">\n<$transclude/>\n</$list>\n</div>", - "title": "$:/plugins/jd/mob/template/controls", - "tags": "", - "modifier": "JD", - "modified": "20171119140040863" - }, - "$:/plugins/jd/mob/template/bottombar": { - "text": "<div class=\"jd-bottombar\">\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"controls\">\n{{$:/plugins/jd/mob/template/controls}}\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"mobbuttons\">\n<div class=\"tc-page-controls\">\n{{$:/plugins/jd/mob/template/mobbuttons}}\n</div>\n</$reveal>\n</div>", - "title": "$:/plugins/jd/mob/template/bottombar", - "tags": "$:/tags/PageTemplate", - "modifier": "JD", - "modified": "20171118170729880", - "creator": "JD", - "created": "20171115114644869" - }, - "$:/plugins/jd/mob/template/mobbuttons": { - "text": "\\define config-mobtitle()\n$:/config/jd/mobbutton/visibility/$(listItem)$\n\\end\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/jd/mobbutton]!has[draft.of]]\" variable=\"listItem\">\n<$reveal type=\"nomatch\" state=<<config-mobtitle>> text=\"hide\">\n<$transclude tiddler=<<listItem>>/>\n</$reveal>\n</$list>", - "title": "$:/plugins/jd/mob/template/mobbuttons", - "tags": "", - "modifier": "JD", - "modified": "20171118161831963", - "creator": "JD", - "created": "20171118055005587" - }, - "$:/plugins/jd/mob/config/mobbuttons": { - "created": "20171118051624478", - "creator": "JD", - "text": "\\define config-base() $:/config/jd/mobbutton/visibility/\n<h2>Mob buttons</h2>\n<p>Here are buttons tagged <b>~$:/tags/jd/mobbutton</b></p>\n<p>Choose which ones are displayed. Drag and drop to change the ordering</p>\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/jd/mobbutton\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/ItemTemplate\"/>\n</$set>\n</$set>\n<br>", - "title": "$:/plugins/jd/mob/config/mobbuttons", - "tags": "$:/tags/jd/config", - "modifier": "JD", - "modified": "20171122150902808", - "caption": "Mob buttons" - }, - "$:/plugins/jd/mob/button/config": { - "text": "<$button tooltip=\"Configure JD mobile layout\" class=\"tc-btn-invisible\">{{$:/core/images/theme-button}}<$action-sendmessage $message=\"tm-modal\" $param=\"$:/plugins/jd/mob/config\"/></$button>", - "title": "$:/plugins/jd/mob/button/config", - "tags": "$:/tags/jd/mobbutton", - "modifier": "JD", - "modified": "20171122114923959", - "description": "Configure JD mobile layout", - "creator": "JD", - "created": "20171117090228867", - "caption": "{{$:/core/images/theme-button}} configure JDmob" - }, - "$:/plugins/jd/mob/stylesheet": { - "created": "20171016123229521", - "creator": "JD", - "text": "@media print\n{\n.tc-sidebar-scrollable,\n.jd-search,\n.jd-topbar,\n.jd-bottombar { display: none !important; }\n}\n\n/** CONFIG RADIO BUTTONS **/\n\n.radbutton, .radbuttoff { \n display: inline-block; \n height: 12px; \n width: 12px; \n border: 2px solid <<colour muted-foreground>>; \n -webkit-transition-duration: {{$:/config/AnimationDuration}}ms;\n -moz-transition-duration: {{$:/config/AnimationDuration}}ms;\n -ms-transition-duration: {{$:/config/AnimationDuration}}ms;\n -o-transition-duration: {{$:/config/AnimationDuration}}ms;\n transition-duration: {{$:/config/AnimationDuration}}ms;\n}\n\n.radbutton { background: <<colour primary>>; }\n.radbuttoff { background: <<colour muted-foreground>>; }\n.radbutton:hover, .radbuttoff:hover { \n border: 2px solid <<colour primary>>;\n background: <<colour primary>>; \n}\n\n.jd-bq {\n margin: 5px;\n padding: 5px;\n border: 1px solid <<colour tab-border>>;\n}\n\n.jd-bq, .radbutton, .radbuttoff {\n -webkit-border-radius: 6px;\n -moz-border-radius: 6px;\n -ms-border-radius: 6px;\n -o-border-radius: 6px;\n border-radius: 6px;\n}\n\n.jd-btn-txt {\n border: none;\n background: none;\n font-size: inherit;\n text-decoration: underline;\n padding: 0;\n margin: 0;\n}\n\n.jd-btn-txt:hover {\n text-decoration: none;\n}\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) { \n.jd-topbar, \n.jd-bottombar,\n.jd-search { display: none; }\n} \n\n@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) { \n\n.tc-topbar { display: none !important; } \n\n.tc-tags-wrapper { margin: 5px 0 !important; }\n\n\n/** NOTIFICATIONS **/\n\n.tc-notification {\n position: fixed; \n top: 60px !important;\n right: 10px !important;\n z-index: {{!!z-bar}} !important;\n}\n\n.tc-modal {\n top: 50px !important;\n left: 50px !important;\n right: 50px !important;\n}\n\n.tc-modal-body { max-height: calc(100vh - 200px) !important; }\n\n.tc-modal-wrapper,\n.tc-plugin-reload-warning { z-index: {{!!z-notif}} !important; }\n\n\n/** STORY RIVER **/\n\n.tc-story-river { \n margin: 0 !important;\n padding-top: 0 !important;\n}\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##storyfix\" text=\"no\">\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"hide\">\n\n@media print\n{\n.tc-story-river { margin-top: 0 !important; }\n}\n\n@media screen\n{\n.tc-story-river { margin-top: 50px !important; }\n}\n\n</$reveal>\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n\n.tc-story-river { margin-bottom: 50px !important; }\n\n</$reveal>\n\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##storyfix\" text=\"yes\">\n\n.tc-story-river { \n width: 100% !important;\n position: fixed !important;\n left: 0 !important;\n overflow-y: auto !important;\n}\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"hide\">\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-story-river { \n top: 50px !important;\n height: calc(100% - 50px) !important;\n}\n</$reveal>\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-story-river { \n top: 50px !important; \n height: calc(100% - 100px) !important;\n}\n</$reveal>\n\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"hide\">\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-story-river { \n top: 0 !important; \n height: 100% !important;\n}\n</$reveal>\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-story-river { \n top: 0 !important; \n height: calc(100% - 50px) !important;\n}\n</$reveal>\n\n</$reveal>\n\n</$reveal>\n\n.tc-tiddler-frame {\n margin-bottom: 2px !important;\n padding: 15px 10px;\n overflow: auto;\n}\n\n\n/** POPUPS AND DROPDOWNS INSIDE VIEW AREA **/\n\n.tc-drop-down,\n.tc-block-dropdown {\n position: fixed !important;\n top: 50% !important;\n left: 50% !important;\n text-align: left;\n white-space: normal !important;\n max-height: calc(100% - 160px) !important;\n min-width: calc(100% - 90px) !important;\n max-width: calc(100% - 60px) !important;\n -webkit-transform: translate(-50%, -50%) !important;\n -moz-transform: translate(-50%, -50%) !important;\n -ms-transform: translate(-50%, -50%) !important;\n -o-transform: translate(-50%, -50%) !important;\n transform: translate(-50%, -50%) !important;\n -webkit-box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);\n -moz-box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);\n -ms-box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);\n -o-box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);\n box-shadow: 0 0 10px 5px rgba(0,0,0,0.5);\n overflow: auto !important;\n z-index: {{!!z-dropdown}} !important;\n}\n\n.tc-menu-list-item {\n padding-left: 5px;\n text-indent: -5px;\n white-space: normal !important;\n word-wrap: break-word !important;\n -webkit-word-break: break-all !important;\n -moz-word-break: break-all !important;\n -ms-word-break: break-all !important;\n -o-word-break: break-all !important;\n word-break: break-all !important;\n}\n\n.tc-edit-type-dropdown { overflow: auto; }\n\n\n/** SCROLLBARS **/\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##scrollbars\" text=\"hide\">\n\nbody { \n -ms-overflow-style: -ms-autohiding-scrollbar;\n}\n\ndiv::-webkit-scrollbar,\n.tc-edit-type-dropdown::-webkit-scrollbar,\n.tc-block-dropdown::-webkit-scrollbar,\n.tc-drop-down::-webkit-scrollbar,\n.jd-search-results::-webkit-scrollbar,\n.tc-story-river::-webkit-scrollbar,\n.tc-sidebar-scrollable::-webkit-scrollbar {\n background: transparent;\n width: 0;\n}\n\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##scrollbars\" text=\"show\">\n\nbody { \n scrollbar-face-color: <<colour background>>;\n scrollbar-arrow-color: <<colour page-background>>;\n scrollbar-track-color: <<colour page-background>>;\n scrollbar-shadow-color: <<colour page-background>>;\n}\n\ndiv::-webkit-scrollbar,\n.tc-edit-type-dropdown::-webkit-scrollbar,\n.tc-block-dropdown::-webkit-scrollbar,\n.tc-drop-down::-webkit-scrollbar,\n.tc-story-river::-webkit-scrollbar,\n.tc-sidebar-scrollable::-webkit-scrollbar {\n background: <<colour background>>;\n width: 6px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n}\n\ndiv::-webkit-scrollbar-thumb,\n.tc-edit-type-dropdown::-webkit-scrollbar-thumb,\n.tc-block-dropdown::-webkit-scrollbar-thumb,\n.tc-drop-down::-webkit-scrollbar-thumb,\n.jd-search-results::-webkit-scrollbar,\n.tc-story-river::-webkit-scrollbar-thumb,\n.tc-sidebar-scrollable::-webkit-scrollbar-thumb {\n background: <<colour page-background>>; \n width: 6px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n}\n\n.jd-search-results::-webkit-scrollbar-thumb {\n background: <<colour primary>>;\n width: 6px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n}\n\n</$reveal>\n\n\n/** FOCUS **/\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##focus\" text=\"hide\">\ntextarea:focus, select:focus, button:focus, input:focus { outline: none; }\n</$reveal>\n\n\n/** TOPBAR & BOTTOMBAR **/\n\n.jd-topbar,\n.jd-bottombar {\n width: 100%;\n position: fixed;\n left: 0;\n background: <<colour page-background>>;\n overflow: hidden;\n z-index: {{!!z-bar}};\n}\n\n.jd-topbar { top: 0; height: 50px; }\n.jd-bottombar { bottom: 0; }\n\n\n/** SEARCH **/\n\n.jd-search { z-index: {{!!z-search}}; }\n\n.jd-search-results {\n background: <<colour page-background>>;\n width: 100%;\n position: fixed;\n top: 50px;\n left: 0;\n margin: 0;\n padding: 0 10px;\n overflow-y: auto;\n z-index: {{!!z-searchwrapper}};\n}\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.jd-search-results { max-height: calc(100% - 100px); }\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.jd-search-results { max-height: calc(100% - 50px); }\n</$reveal>\n\n.jd-searchwrapper {\n background: <<colour page-background>>;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 50px;\n z-index: {{!!z-searchwrapper}};\n}\n\n.jd-searchbar {\n width: calc(100% - 20px);\n height: 30px; \n position: fixed;\n top: 0;\n left: 0;\n font-size: 16px !important;\n background: transparent !important;\n border: none;\n border-bottom: 2px solid<<colour primary>>;\n<$reveal state=\"$:/plugins/jd/mob/config/config##searchbarchoice\" type=\"match\" text=\"combined\">\n padding: 0 160px 0 10px;\n</$reveal>\n<$reveal state=\"$:/plugins/jd/mob/config/config##searchbarchoice\" type=\"match\" text=\"simple\">\n padding: 0 100px 0 10px;\n</$reveal>\n margin: 10px;\n}\n\n.jd-search-buttons {\n<$reveal state=\"$:/plugins/jd/mob/config/config##searchbarchoice\" type=\"match\" text=\"combined\">\n width: 160px; \n</$reveal>\n<$reveal state=\"$:/plugins/jd/mob/config/config##searchbarchoice\" type=\"match\" text=\"simple\">\n width: 100px; \n</$reveal>\n position: fixed; \n top: 12px;\n right: 0; \n background: <<colour page-background>>;\n border: transparent;\n margin-right: 20px; \n text-align: right;\n vertical-align: middle;\n}\n\n.jd-search-buttons {\n z-index: {{!!z-searchbuttons}};\n}\n\n.jd-search-buttons .tc-popup-keep,\n.jd-search-buttons .tc-btn-invisible {\n font-size: 18px;\n background: transparent;\n border: transparent;\n cursor: pointer;\n}\n\n.jd-search-buttons .tc-btn-invisible { margin-left: 8px; }\n\n\n/** CONTROLS **/\n\n.jd-title-controls {\n display: flex;\n justify-content: space-between;\n margin: 10px;\n}\n\n.jd-search-buttons button,\n.jd-title-controls button {\n fill: <<colour sidebar-controls-foreground>>;\n font-size: 1.6em;\n -webkit-transition-duration: {{$:/config/AnimationDuration}}ms;\n -moz-transition-duration: {{$:/config/AnimationDuration}}ms;\n -ms-transition-duration: {{$:/config/AnimationDuration}}ms;\n -o-transition-duration: {{$:/config/AnimationDuration}}ms;\n transition-duration: {{$:/config/AnimationDuration}}ms;\n}\n\n.jd-search-buttons button:hover,\n.jd-title-controls button:hover {\n fill: <<colour sidebar-controls-foreground-hover>>;\n}\n\n.jd-topbar .tc-page-controls,\n.jd-bottombar .tc-page-controls {\n display: flex;\n justify-content: space-between;\n height: 30px;\n margin: 10px;\n}\n\n.tc-page-controls button { margin: 0 !important;}\n\n\n/** TITLEBAR **/\n\n.jd-title-wrapper .tc-site-title,\n.jd-title-wrapper .tc-site-subtitle {\n position: absolute;\n left: 50%;\n text-align: center;\n -webkit-transform: translate(-50%, 50%);\n -moz-transform: translate(-50%, 50%);\n -ms-transform: translate(-50%, 50%);\n -o-transform: translate(-50%, 50%);\n transform: translate(-50%, 50%);\n}\n\n.jd-title-wrapper .tc-site-subtitle {\n width: calc(100% - 100px);\n}\n\n\n/** SIDEBAR LISTS **/\n\n.tc-sidebar-scrollable .tc-site-title,\n.tc-sidebar-scrollable .tc-site-subtitle,\n.tc-sidebar-scrollable .tc-page-controls,\n.tc-sidebar-scrollable .tc-search\n { display: none; }\n\n.tc-sidebar-header { padding: 0 !important; }\n\n<$reveal state=\"$:/state/sidebar\" type=\"nomatch\" text=\"no\">\n.tc-sidebar-scrollable {\n background: <<colour background>>;\n width: 100%;\n position: fixed;\n left: 0; \n z-index: {{!!z-sidebar}};\n overflow: auto !important;\n}\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/state/sidebar\" text=\"no\">\n\n.tc-sidebar-scrollable { display:none; }\n\n.tc-tab-set { overflow-y: auto !important; }\n\n</$reveal>\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"hide\">\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-sidebar-scrollable { \n top: 50px !important;\n height: calc(100% - 50px) !important;\n}\n\n.tc-sidebar-scrollable .tc-tab-buttons { top: 50px; }\n</$reveal>\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-sidebar-scrollable { \n top: 50px !important;\n height: calc(100% - 100px) !important;\n}\n\n.tc-sidebar-scrollable .tc-tab-buttons { top: 50px; }\n</$reveal>\n\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##topbar\" text=\"hide\">\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-sidebar-scrollable { \n top: 0 !important;\n height: 100% !important;\n}\n</$reveal>\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##bottombar\" text=\"hide\">\n.tc-sidebar-scrollable { \n top: 0 !important;\n height: calc(100% - 50px) !important;\n}\n</$reveal>\n\n</$reveal>\n\n\n/** SIDEBAR LISTS BUTTONS **/\n\n.tc-sidebar-scrollable .tc-tab-buttons { margin: 10px; }\n\n.tc-sidebar-scrollable .tc-tab-content { \n margin: 10px !important; \n border: 0 !important;\n}\n\n\n/** ADJUSTABLE FONTS AND HEIGHTS **/\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##titlebaradjust\" text=\"no\">\n.jd-title-wrapper .tc-site-title { top: -3px; font-size: 18px; }\n.jd-title-wrapper .tc-site-subtitle { top: 15px; font-size: 12px; }\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##titlebaradjust\" text=\"yes\">\n.jd-title-wrapper .tc-site-title { top: {{!!height-sitetitle}}; font-size: {{!!font-sitetitle}}; }\n.jd-title-wrapper .tc-site-subtitle { top: {{!!height-subsitetitle}}; font-size: {{!!font-subsitetitle}}; }\n</$reveal>\n\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##fontsize\" text=\"default\">\n\n.tc-tiddler-view-frame h2.tc-title,\ninput.tc-titlebar.tc-edit-texteditor { \n font-size: {{!!font-title}} !important; \n}\n\n.tc-tiddler-view-frame .tc-subtitle { \n font-size: calc({{!!font-body}} - 4px) !important; \n}\n\nh1, h1 a { \n font-size: calc({{!!font-body}} + 6px) !important; \n}\n\nh2, h2 a { \n font-size: calc({{!!font-body}} + 4px) !important; \n}\n\nh3, h3 a { \n font-size: calc({{!!font-body}} + 2px) !important; \n}\n\nh4, a, li, table,\ninput, textarea, select,\n.tc-tiddler-preview-preview p,\n.tc-tiddler-view-frame p,\n.tc-modal p,\n.tc-btn-text,\n.jd-search-results,\n.tc-tab-content,\n.tc-modal-header h3 { \n font-size: {{!!font-body}} !important; \n line-height: {{!!lineheight}} !important;\n}\n\nbutton.tc-btn-invisible.tc-remove-tag-button,\n.tc-tag-label.tc-btn-invisible { \n font-size: calc({{!!font-body}} - 4px) !important; \n}\n\n.tc-tab-buttons button,\n.tc-tab-buttons.tc-vertical button,\n.tc-sidebar-scrollable .tc-tab-buttons button,\n.tc-sidebar-scrollable .tc-tab-buttons.tc-vertical button {\n font-size: {{!!font-tab-button}} !important;\n}\n\n.tc-btn-invisible,\n.tc-tiddler-controls button, \n.tc-tiddler-controls button svg, \n.tc-tiddler-controls button img,\n.tc-image-buttons,\n.tc-page-controls { \n font-size: {{!!font-button}} !important; \n}\n\n.tc-tiddler-controls button svg, \n.tc-tiddler-controls button img,\n.tc-image-buttons { \n height: {{!!font-button}} !important; \n width: {{!!font-button}} !important; \n}\n\n</$reveal>\n\n}", - "z-sidebar": "1500", - "z-searchwrapper": "2500", - "z-searchbuttons": "4100", - "z-search": "4000", - "z-notif": "9000", - "z-dropdown": "4000", - "z-bar": "2000", - "title": "$:/plugins/jd/mob/stylesheet", - "tags": "$:/tags/Stylesheet", - "modifier": "JD", - "modified": "20180903124046078", - "lineheight": "{{$:/temp/jd/mob/font/lineheight}}", - "height-subsitetitle": "{{$:/temp/jd/mob/font/height-subsitetitle}}", - "height-sitetitle": "{{$:/temp/jd/mob/font/height-sitetitle}}", - "font-title": "{{$:/temp/jd/mob/font/font-title}}", - "font-tab-button": "{{$:/temp/jd/mob/font/font-tab-button}}", - "font-subsitetitle": "{{$:/temp/jd/mob/font/font-subsitetitle}}", - "font-sitetitle": "{{$:/temp/jd/mob/font/font-sitetitle}}", - "font-button": "{{$:/temp/jd/mob/font/font-button}}", - "font-body": "{{$:/temp/jd/mob/font/font-body}}", - "list-after": "$:/themes/tiddlywiki/vanilla/base" - }, - "$:/plugins/jd/mob/config/searchbutton": { - "created": "20171118142818660", - "creator": "JD", - "text": "<h3>Choose search button</h3>\n\n<$button class=\"tc-btn-invisible\">\n<<tglSearch show>>\n<$action-setfield $tiddler=\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\" text=\"hide\"/>\n<<jdconfig searchbarchoice simple>>\n<<jdconfig searchbutton simple>>\n<<jdradbut searchbutton simple>>\n</$button> Toggle for simple searchbar\n<br>\n<$button class=\"tc-btn-invisible\">\n<<tglSearch show>>\n<$action-setfield $tiddler=\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\" text=\"hide\"/>\n<<jdconfig searchbarchoice combined>>\n<<jdconfig searchbutton combined>>\n<<jdradbut searchbutton combined>>\n</$button> Toggle for combined searchbar\n<br>\n<$button class=\"tc-btn-invisible\">\n<<tglSearch hide>>\n<$action-setfield $tiddler=\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\" text=\"show\"/>\n<<jdconfig searchbutton core>>\n<<jdradbut searchbutton core>>\n</$button> Button to core search\n<br>\n<$button class=\"tc-btn-invisible\">\n<<tglSearch hide>>\n<$action-setfield $tiddler=\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\" text=\"hide\"/>\n<<jdconfig searchbutton hide>>\n<<jdradbut searchbutton hide>>\n</$button> Hidden\n<br><br>", - "title": "$:/plugins/jd/mob/config/searchbutton", - "tags": "", - "modifier": "JD", - "modified": "20171122125953528", - "caption": "Choose search button" - }, - "$:/plugins/jd/mob/config/titlebar": { - "created": "20171118171842911", - "creator": "JD", - "text": "<h3>Vertical position</h3>\n\n<$button class=tc-btn-invisible>\n<<jdconfig titlebaradjust no>>\n<<jdradbut titlebaradjust no>>\n</$button> Default\n<br>\n<$button class=tc-btn-invisible>\n<<jdconfig titlebaradjust yes>>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/height-sitetitle\" caption=\"Site title vertical position\" text=\"-3px\" list-after=\"$:/temp/jd/mob/font/font-sitetitle\"/>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/font-sitetitle\" caption=\"Site title font size\" text=\"18px\"/>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/height-subsitetitle\" caption=\"Site subtitle vertical position\" text=\"15px\" list-after=\"$:/temp/jd/mob/font/font-subsitetitle\"/>\n<$action-setfield $tiddler=\"$:/temp/jd/mob/font/font-subsitetitle\" caption=\"Site subtitle font size\" text=\"12px\"/>\n<<jdradbut titlebaradjust yes>>\n</$button> Custom\n\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##titlebaradjust\" text=\"yes\">\n\nInclude unit (''px'' or ''em'') when entering custom values\n\n<table style=\"width:100%\">\n<tr>\n<th style=\"width:40%\">Element</th>\n<th style=\"width:60%\">Adjust</th>\n</tr>\n<$list filter=\"[all[shadows+tiddlers]prefix[$:/temp/jd/mob/font/]suffix[sitetitle]]\">\n<tr>\n<td><$view field=\"caption\"/></td>\n<td><$edit-text tiddler={{!!title}} field=\"temp\" placeholder={{!!text}} class=\"texte\"/>\n<$reveal type=\"match\" state=!!temp text=\"\">\n<$button class=\"tc-btn-invisible\" style=\"color:grey; cursor:not-allowed;\">✓</$button>\n<$button class=\"tc-btn-invisible\" style=\"color:grey; cursor:not-allowed;\">✕</$button>\n</$reveal>\n<$reveal type=\"nomatch\" state=!!temp text=\"\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler={{!!title}} text={{!!temp}}/>\n<$action-setfield $tiddler={{!!title}} temp=\"\"/>✓</$button>\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler={{!!title}} temp=\"\"/>✕</$button>\n</$reveal>\n</td>\n</tr>\n</$list>\n</table>\n</$reveal>\n{{$:/plugins/jd/mob/config/searchbutton}}", - "title": "$:/plugins/jd/mob/config/titlebar", - "modifier": "JD", - "modified": "20171119072342630", - "caption": "Fonts and heights", - "tags": "" - }, - "$:/plugins/jd/mob/config/searchbar": { - "created": "20171118171759396", - "creator": "JD", - "text": "<h3>Choose searchbar style</h3>\n\n<$button class=\"tc-btn-invisible\">\n<<tglSearch show>>\n<<jdconfig searchbarchoice combined>>\n<<jdconfig searchbutton combined>>\n<<jdradbut searchbutton combined>>\n</$button> Combined search\n<br>\n<$button class=\"tc-btn-invisible\">\n<<tglSearch show>>\n<<jdconfig searchbarchoice simple>>\n<<jdconfig searchbutton simple>>\n<<jdradbut searchbutton simple>>\n</$button> Simple search\n<p>\n<$checkbox tiddler=\"$:/config/jd/mobbutton/visibility/$:/plugins/jd/mob/button/search\" field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> Show search button at controls\n</p>", - "title": "$:/plugins/jd/mob/config/searchbar", - "tags": "", - "modifier": "JD", - "modified": "20171122123127279", - "caption": "Choose searchbar style" - }, - "$:/plugins/jd/mob/macros": { - "created": "20171119044207910", - "creator": "JD", - "text": "\\define jdconf() $:/plugins/jd/mob/config/config\n\\define jdconfont() $:/temp/jd/mob/font/\n\\define jdconfig(config:\"\" choice:\"\")\n<$action-setfield $tiddler=<<jdconf>> $index=\"$config$\" $value=$choice$/>\n\\end\n\\define moreOps(config:\"\" choice:\"\" option:\"\")\n<$reveal type=\"match\" state=\"$(jdconf)$##$config$\" text=\"$choice$\">\n<$reveal type=\"nomatch\" state=\"$(jdconf)$##$config$$choice$ops\" text=\"show\">\n<$button class =\"jd-btn-txt\" set=\"$(jdconf)$##$config$$choice$ops\" setTo=\"show\"> Show options</$button>\n</$reveal>\n<$reveal type=\"match\" state=\"$(jdconf)$##$config$$choice$ops\" text=\"show\">\n<$button class =\"jd-btn-txt\" set=\"$(jdconf)$##$config$$choice$ops\" setTo=\"hide\"> Hide options</$button>\n<div class=\"jd-bq\">{{$:/plugins/jd/mob/config/$option$}}</div>\n</$reveal>\n</$reveal>\n<br>\n\\end\n\\define jdfont(font-title:\"\" font-body:\"\" lineheight:\"\" font-tab:\"\" font-button:\"\")\n<$action-setfield $tiddler=\"$(jdconfont)$font-title\" text=\"$font-title$\"/>\n<$action-setfield $tiddler=\"$(jdconfont)$font-body\" text=\"$font-body$\"/>\n<$action-setfield $tiddler=\"$(jdconfont)$lineheight\" text=\"$lineheight$\"/>\n<$action-setfield $tiddler=\"$(jdconfont)$font-tab-button\" text=\"$font-tab$\"/>\n<$action-setfield $tiddler=\"$(jdconfont)$font-button\" text=\"$font-button$\"/>\n\\end\n\\define jdradbut(config:\"\" choice:\"\")\n<$reveal type=\"match\" state=\"$(jdconf)$##$config$\" text=\"$choice$\"><div class=\"radbutton\"></div></$reveal>\n<$reveal type=\"nomatch\" state=\"$(jdconf)$##$config$\" text=\"$choice$\"><div class=\"radbuttoff\"></div></$reveal>\n\\end\n\\define tglSearch(choice:\"show\")\n<$action-setfield $tiddler=\"$:/config/jd/mobbutton/visibility/$:/plugins/jd/mob/button/search\" text=$choice$/>\n\\end\n\\define notPreset()\n<<jdconfig barpreset 0>>\n\\end\n\\define setTopsearchbar()\n<<jdconfig topbar fixedsearch>>\n<<jdconfig topbarchoice hide>>\n<<jdconfig searchbar yes>>\n<<jdconfig radbuttop fixedsearch>>\n\\end\n\\define setToptitlebar()\n<<jdconfig searchbar no>>\n<<jdconfig topbar title>>\n<<jdconfig topbarchoice title>>\n<<jdconfig radbuttop title>>\n\\end\n\\define setTopcontrols()\n<<jdconfig searchbar no>>\n<<jdconfig topbar controls>>\n<<jdconfig topbarchoice controls>>\n<<jdconfig radbuttop controls>>\n\\end\n\\define setTopmobbuttons()\n<<jdconfig searchbar no>>\n<<jdconfig topbar mobbuttons>>\n<<jdconfig topbarchoice mobbuttons>>\n<<jdconfig radbuttop mobbuttons>>\n\\end\n\\define setTophide()\n<<jdconfig searchbar no>>\n<<jdconfig topbar hide>>\n<<jdconfig topbarchoice hide>>\n<<jdconfig radbuttop hide>>\n\\end\n\\define noBottom()\n<<jdconfig bottombar hide>>\n\\end\n\\define setBottomcontrols()\n<<jdconfig bottombar controls>>\n\\end\n\\define setJDmobdefaults()\n<<tglSearch>>\n<<jdconfig freshinstall yes>>\n<<jdconfig configtype list>>\n<<jdfont>>\n<<jdconfig fontsize default>>\n<<jdconfig scrollbars show>>\n<<jdconfig focus show>>\n<<jdconfig storyfix no>>\n<<jdconfig titlebaradjust no>>\n<<jdconfig topbarchoice hide>>\n<<jdconfig searchbarchoice simple>>\n<<jdconfig searchbutton simple>>\n<<jdconfig barpreset 4>>\n<<setTopsearchbar>>\n<<setBottomcontrols>>\n<<jdconfig radbuttopfixedsearchops hide>>\n<<jdconfig radbuttopcontrolsops hide>>\n<<jdconfig radbuttopmobbuttonsops hide>>\n<<jdconfig radbuttoptitleops hide>>\n<<jdconfig bottombarcontrolsops hide>>\n<<jdconfig bottombarmobbuttonsops hide>>\n<<jdconfig barpreset1ops hide>>\n<<jdconfig barpreset2ops hide>>\n<<jdconfig barpreset3ops hide>>\n<<jdconfig barpreset4ops hide>>\n<$fieldmangler tiddler=\"$:/plugins/jd/mob/button/search\">\n<$action-sendmessage $message=\"tm-add-tag\" $param=\"$:/tags/jd/mobbutton\"/>\n</$fieldmangler>\n\\end", - "title": "$:/plugins/jd/mob/macros", - "tags": "$:/tags/Macro", - "modifier": "JD", - "modified": "20171122150921869" - }, - "$:/plugins/jd/mob/button/search": { - "created": "20171122115403541", - "creator": "JD", - "text": "<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##searchbar\" text=\"yes\">\n<$button class=\"tc-btn-invisible\" tooltip=\"Show searchbar\" set=\"$:/plugins/jd/mob/config/config##searchbar\" setTo=\"yes\">\n<<jdconfig topbar search>>\n{{$:/core/images/advanced-search-button}}\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##searchbar\" text=\"yes\">\n<$button class=\"tc-btn-invisible\" tooltip=\"Hide searchbar\" set=\"$:/plugins/jd/mob/config/config##searchbar\" setTo=\"no\">\n<<jdconfig topbar hide>>\n{{$:/core/images/advanced-search-button}}\n</$button>\n</$reveal>", - "title": "$:/plugins/jd/mob/button/search", - "tags": "$:/tags/jd/mobbutton", - "modifier": "JD", - "modified": "20171122154523596", - "description": "Toggle searchbar visibility", - "caption": "{{$:/core/images/advanced-search-button}} search" - }, - "$:/plugins/jd/mob/template/search": { - "created": "20171018115714311", - "creator": "JD", - "text": "\\define NewTidActions(searcharea)\n<$action-createtiddler $basetitle={{$searcharea$}} $savetitle=\"$:/temp/NewTidTitle\"/>\n<$action-sendmessage $message=\"tm-edit-tiddler\" $param={{$:/temp/NewTidTitle}}/>\n<$action-deletetiddler $tiddler=\"$:/temp/NewTidTitle\"/>\n<$action-setfield $tiddler=\"$searcharea$\" text=\"\"/>\n\\end\n\n\\define NewTidBtn(searcharea)\n<$button tooltip=\"Create new tiddler with this title\" class=\"tc-btn-invisible\" actions=<<NewTidActions \"$searcharea$\">>>\n{{$:/core/images/new-button}}\n</$button>\n\\end\n\n\\define lingo-base() $:/language/Search/\n<$reveal state=\"$:/plugins/jd/mob/config/config##searchbar\" type=\"match\" text=\"yes\" default=\"yes\" retain=\"yes\" animate=\"yes\">\n\n<$reveal state=\"$:/plugins/jd/mob/config/config##searchbarchoice\" type=\"match\" text=\"simple\">\n<div class=\"jd-search\">\n<$keyboard class=\"jd-searchwrapper\" tag=\"div\" key=\"ctrl+space\" actions=<<NewTidActions \"$:/temp/search\">>>\n<$edit-text tiddler=\"$:/temp/search\" type=\"search\" tag=\"input\" placeholder={{$:/language/Search/Search}} class=\"jd-searchbar\"/>\n</$keyboard>\n<div class=\"jd-search-buttons\">\n<$list filter=\"[[$:/temp/search]!text[]]\" variable=\"statecheck\">\n<<NewTidBtn \"$:/temp/search\">>\n</$list>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##radbuttop\" text=\"fixedsearch\">\n<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" text={{$:/temp/search}}/>\n<$action-setfield $tiddler=\"$:/temp/search\" text=\"\"/>\n<$action-navigate $to=\"$:/AdvancedSearch\"/>\n{{$:/core/images/advanced-search-button}}\n</$button>\n<$list filter=\"[[$:/temp/search]!text[]]\" variable=\"statecheck\">\n<$button class=\"tc-btn-invisible\" tooltip=\"Clear searchbar\">\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" text=\"\"/>\n<$action-setfield $tiddler=\"$:/temp/search\" text=\"\"/>\n{{$:/core/images/close-button}}\n</$button>\n</$list>\n</$reveal>\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##radbuttop\" text=\"fixedsearch\">\n<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"tc-btn-invisible\">\n<<jdconfig searchbar no>>\n<<jdconfig topbar {{$:/plugins/jd/mob/config/config##topbarchoice}}>>\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" text={{$:/temp/search}}/>\n<$action-setfield $tiddler=\"$:/temp/search\" text=\"\"/>\n<$action-navigate $to=\"$:/AdvancedSearch\"/>\n{{$:/core/images/advanced-search-button}}\n</$button>\n<$button class=\"tc-btn-invisible\" tooltip=\"Clear and hide searchbar\">\n<<jdconfig searchbar no>>\n<<jdconfig topbar {{$:/plugins/jd/mob/config/config##topbarchoice}}>>\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" text=\"\"/>\n<$action-setfield $tiddler=\"$:/temp/search\" text=\"\"/>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n<div class=\"jd-search-results\">\n<$list filter=\"[[$:/temp/search]!text[]]\" variable=\"statecheck\">\n<$scrollable fallthrough=\"no\" class=\"results\">\n<$set name=\"searchTiddler\" value=\"$:/temp/search\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\" emptyMessage=\"\"\"\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\">\n<$transclude/>\n</$list>\n\"\"\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\" default={{$:/config/SearchResults/Default}}/>\n</$list>\n</$set>\n</$scrollable>\n</$list>\n</div>\n</div>\n</$reveal>\n\n<$reveal state=\"$:/plugins/jd/mob/config/config##searchbarchoice\" type=\"match\" text=\"combined\">\n<div class=\"jd-search\">\n<$keyboard class=\"jd-searchwrapper\" tag=\"div\" key=\"ctrl+space\" actions=<<NewTidActions \"$:/temp/advancedsearch\">>>\n<$linkcatcher to=\"$:/temp/advancedsearch\">\n<$edit-text tiddler=\"$:/temp/advancedsearch\" type=\"search\" tag=\"input\" placeholder={{$:/language/Search/Search}} class=\"jd-searchbar\"/>\n</$linkcatcher>\n</$keyboard>\n<div class=\"jd-search-buttons\">\n<$list filter=\"[[$:/temp/advancedsearch]!text[]]\" variable=\"statecheck\">\n<<NewTidBtn \"$:/temp/advancedsearch\">>\n</$list>\n{{$:/core/ui/AdvancedSearch/Filter/FilterButtons/delete}}\n{{$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown}}\n{{$:/core/ui/AdvancedSearch/Filter/FilterButtons/export}}\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##radbuttop\" text=\"fixedsearch\">\n{{$:/core/ui/AdvancedSearch/Filter/FilterButtons/clear}} \n</$reveal>\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##radbuttop\" text=\"fixedsearch\">\n<$button class=\"tc-btn-invisible\" tooltip=\"Clear and hide searchbar\">\n<<jdconfig searchbar no>>\n<<jdconfig topbar {{$:/plugins/jd/mob/config/config##topbarchoice}}>>\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" text=\"\"/>\n<$action-setfield $tiddler=\"$:/temp/search\" text=\"\"/>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n<div class=\"jd-search-results\">\n<!--STANDARD-->\n<$list filter=\"[[$:/temp/advancedsearch]!text[]]\" variable=\"statecheck\">\n<br>\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"{{$:/language/Search/Search/TooShort}}\"\"\" variable=\"listItem\">\n<$set name=\"searchTiddler\" value=\"$:/temp/advancedsearch\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\" emptyMessage=\"\"\"\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\">\n<$transclude/>\n</$list>\n\"\"\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\" default={{$:/config/SearchResults/Default}}/>\n</$list>\n</$set>\n</$list>\n</$list>\n<!--STANDARD-->\n<!--FILTER-->\n<$list filter=\"[[$:/temp/advancedsearch]!text[]]\" variable=\"statecheck\">\n<br><br>\n<$set name=\"resultCount\" value=\"\"\"<$count filter={{$:/temp/advancedsearch}}/>\"\"\">\nFilter search: <<lingo Filter/Matches>>\n<$list filter={{$:/temp/advancedsearch}} template=\"$:/core/ui/ListItemTemplate\"/>\n</$set>\n</$list>\n<!--FILTER-->\n<!--SYSTEM-->\n<$list filter=\"[[$:/temp/advancedsearch]!text[]]\" variable=\"statecheck\">\n<br>\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" variable=\"listItem\">\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]\"/>\"\"\">\nSystem search: <<lingo System/Matches>>\n<$list filter=\"[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n</$set>\n</$list>\n</$list>\n<!--SYSTEM-->\n<!--SHADOWS-->\n<$list filter=\"[[$:/temp/advancedsearch]!text[]]\" variable=\"statecheck\">\n<br>\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" variable=\"listItem\">\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[all[shadows]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]]\"/>\"\"\">\nShadows search: <<lingo Shadows/Matches>>\n<$list filter=\"[all[shadows]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n</$set>\n</$list>\n</$list>\n<!--SHADOWS-->\n</div>\n</div>\n</$reveal>\n</$reveal>", - "title": "$:/plugins/jd/mob/template/search", - "tags": "$:/tags/PageTemplate", - "modifier": "JD", - "modified": "20180903123722931" - }, - "$:/plugins/jd/mob/config/misc": { - "created": "20171122140327337", - "creator": "JD", - "text": "<h2>Miscellaneous</h2>\n<h3>Config button</h3>\n<$checkbox tiddler=\"$:/config/jd/mobbutton/visibility/$:/plugins/jd/mob/button/config\" field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> Show {{$:/core/images/theme-button}} button at ''Controls'' / ''Mobbuttons''\n<br><br>\n<hr>\n<h3>Scrollbars</h3>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig scrollbars hide>>\n<<jdradbut scrollbars hide>>\n</$button> Invisible scrollbars\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig scrollbars show>>\n<<jdradbut scrollbars show>>\n</$button> Visible scrollbars\n<br><br>\n<hr>\n<h3>Focus</h3>\n<p>Here we can hide the hightlight / outline on focused text inputs and buttons</p>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig focus show>>\n<<jdradbut focus show>>\n</$button> Default\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig focus hide>>\n<<jdradbut focus hide>>\n</$button> Hide focus\n<br><br>\n<hr>\n<h3>Story river</h3>\nHere we can try to stop the fist tiddler in the story river from scrolling past the topbar\n<br>\n''Side effects:''\n<br>\n<li>For ''classic'' and ''pop'' story view: tiddlers won't automatically scroll into view on link click</li>\n<li>Browser search bar won't automatically hide on scroll up (tested on Chrome for Android)</li>\n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig storyfix yes>>\n<<jdradbut storyfix yes>>\n</$button> Apply \n<br>\n<$button class=\"tc-btn-invisible\">\n<<jdconfig storyfix no>>\n<<jdradbut storyfix no>>\n</$button> Don't apply\n<br><br>\n<hr>\n<h3>Restore defaults</h3>\n<div class=\"jd-bq\">\n<p>\nTo reset to...\n</p>\n<p>\nDefault font size, Visible scrollbars, ''Simple searchbar'' on top, ''Controls'' on bottom, ''Simple searchbar button'' on controls, Story river hack not applied...\n</p>\n<p>\nClick:\n</p>\n<p>\n<$reveal type=\"nomatch\" state=\"$:/plugins/jd/mob/config/config##defaultconfirm\" text=\"confirm\">\n<$button class=\"jd-btn-txt\">\n<<jdconfig defaultconfirm confirm>>\nRestore defaults\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/plugins/jd/mob/config/config##defaultconfirm\" text=\"confirm\">\n<$button class=\"jd-btn-txt\">\n<<setJDmobdefaults>>\n<<jdconfig defaultconfirm cancel>>\nConfirm\n</$button>\n<$button class=\"jd-btn-txt\">\n<<jdconfig defaultconfirm cancel>>\nCancel\n</$button>\n</$reveal>\n</p>\n</div>\n<br>", - "title": "$:/plugins/jd/mob/config/misc", - "tags": "$:/tags/jd/config", - "modified": "20171122141012375", - "modifier": "JD", - "caption": "Miscellaneous" - } - } -}-
a non-linear personal web notebook-
Copincha-
\define renderfield(title) -<tr class="tc-view-field"><td class="tc-view-field-name">''$title$'':</td><td class="tc-view-field-value">//{{$:/language/Docs/Fields/$title$}}//</td></tr> -\end -<table class="tc-view-field-table"><tbody><$list filter="[fields[]sort[title]]" variable="listItem"><$macrocall $name="renderfield" title=<<listItem>>/></$list> -</tbody></table> --
\define swatchStyle() -background-color: $(swatchColour)$; -\end -\define swatch() -<$set name="swatchColour" value={{##$(colour)$}} -><div class="tc-swatch" style=<<swatchStyle>> title=<<colour>>/></$set> -\end -<div class="tc-swatches-horiz"><$list filter=" -foreground -background -muted-foreground -primary -page-background -tab-background -tiddler-info-background -" variable="colour"><<swatch>></$list></div>-
\define lingo-base() $:/language/ControlPanel/Tools/Download/ -<$button class="tc-btn-big-green"> -<$action-sendmessage $message="tm-download-file" $param="$:/core/save/all" filename="index.html"/> -<<lingo Full/Caption>> {{$:/core/images/save-button}} -</$button>-
\define flag-title() -$(languagePluginTitle)$/icon -\end - -<$linkcatcher to="$:/language"> -<div class="tc-chooser tc-language-chooser"> -<$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[description]]"> -<$set name="cls" filter="[all[current]field:title{$:/language}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>> -<$link> -<span class="tc-image-button"> -<$set name="languagePluginTitle" value=<<currentTiddler>>> -<$transclude subtiddler=<<flag-title>>> -<$list filter="[all[current]field:title[$:/languages/en-GB]]"> -<$transclude tiddler="$:/languages/en-GB/icon"/> -</$list> -</$transclude> -</$set> -</span> -<$view field="description"> -<$view field="name"> -<$view field="title"/> -</$view> -</$view> -</$link> -</div> -</$set> -</$list> -</div> -</$linkcatcher>-
<$select tiddler="$:/config/AutoFocus"> -<$list filter="title tags text type fields"> -<option value=<<currentTiddler>>><<currentTiddler>></option> -</$list> -</$select> --
<$select tiddler="$:/language"> -<$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[title]]"> -<option value=<<currentTiddler>>><$view field="description"><$view field="name"><$view field="title"/></$view></$view></option> -</$list> -</$select>-
\define lingo-base() $:/language/ControlPanel/Theme/ -<<lingo Prompt>> <$select tiddler="$:/theme"> -<$list filter="[plugin-type[theme]sort[title]]"> -<option value=<<currentTiddler>>><$view field="name"><$view field="title"/></$view></option> -</$list> -</$select>-
\define describeModuleType(type) -{{$:/language/Docs/ModuleTypes/$type$}} -\end -<$list filter="[moduletypes[]]"> - -!! <$macrocall $name="currentTiddler" $type="text/plain" $output="text/plain"/> - -<$macrocall $name="describeModuleType" type=<<currentTiddler>>/> - -<ul><$list filter="[all[current]modules[]]"><li><$link><<currentTiddler>></$link> -</li> -</$list> -</ul> -</$list> --
<$transclude tiddler="$:/PaletteManager"/> --
<$set name="currentTiddler" value={{$:/palette}}> -{{||$:/snippets/currpalettepreview}} -</$set> --
<$linkcatcher to="$:/palette"> -<div class="tc-chooser"><$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]"><$set name="cls" filter="[all[current]prefix{$:/palette}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>><$link to={{!!title}}>''<$view field="name" format="text"/>'' - <$view field="description" format="text"/>{{||$:/snippets/currpalettepreview}}</$link> -</div></$set> -</$list> -</div> -</$linkcatcher> --
\define expandable-stylesheets-list() -<ol> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]"> -<$vars state=<<qualify "$:/state/peek-stylesheets/open/">>> -<$set name="state" value={{{ [<state>addsuffix<currentTiddler>] }}}> -<li> -<$reveal type="match" state=<<state>> text="yes" tag="span"> -<$button set=<<state>> setTo="no" class="tc-btn-invisible"> -{{$:/core/images/down-arrow}} -</$button> -</$reveal> -<$reveal type="nomatch" state=<<state>> text="yes" tag="span"> -<$button set=<<state>> setTo="yes" class="tc-btn-invisible"> -{{$:/core/images/right-arrow}} -</$button> -</$reveal> -<$link> -<$view field="title"/> -</$link> -<$reveal type="match" state=<<state>> text="yes" tag="div"> -<$set name="source" tiddler=<<currentTiddler>>> -<$wikify name="styles" text=<<source>>> -<pre> -<code> -<$text text=<<styles>>/> -</code> -</pre> -</$wikify> -</$set> -</$reveal> -</li> -</$set> -</$vars> -</$list> -</ol> -\end - -\define stylesheets-list() -<ol> -<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]"> -<li> -<$link> -<$view field="title"/> -</$link> -<$set name="source" tiddler=<<currentTiddler>>> -<$wikify name="styles" text=<<source>>> -<pre> -<code> -<$text text=<<styles>>/> -</code> -</pre> -</$wikify> -</$set> -</li> -</$list> -</ol> -\end - -<$vars modeState=<<qualify "$:/state/peek-stylesheets/mode/">>> - -<$reveal type="nomatch" state=<<modeState>> text="expanded" tag="div"> -<$button set=<<modeState>> setTo="expanded" class="tc-btn-invisible">{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Stylesheets/Expand/Caption}}</$button> -</$reveal> -<$reveal type="match" state=<<modeState>> text="expanded" tag="div"> -<$button set=<<modeState>> setTo="restored" class="tc-btn-invisible">{{$:/core/images/chevron-down}} {{$:/language/ControlPanel/Stylesheets/Restore/Caption}}</$button> -</$reveal> - -<$reveal type="nomatch" state=<<modeState>> text="expanded" tag="div"> -<<expandable-stylesheets-list>> -</$reveal> -<$reveal type="match" state=<<modeState>> text="expanded" tag="div"> -<<stylesheets-list>> -</$reveal> - -</$vars> --
<$linkcatcher to="$:/theme"> -<div class="tc-chooser"><$list filter="[plugin-type[theme]sort[title]]"><$set name="cls" filter="[all[current]field:title{$:/theme}] [[$:/theme]!has[text]addsuffix[s/tiddlywiki/vanilla]field:title<currentTiddler>] +[limit[1]]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>><$link to={{!!title}}>''<$view field="name" format="text"/>'' <$view field="description" format="text"/></$link></div> -</$set> -</$list> -</div> -</$linkcatcher>-
\define icon() -$:/core/images/storyview-$(storyview)$ -\end -<$linkcatcher to="$:/view"> -<div class="tc-chooser tc-viewswitcher"> -<$list filter="[storyviews[]]" variable="storyview"> -<$set name="cls" filter="[<storyview>prefix{$:/view}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>> -<$link to=<<storyview>>><$transclude tiddler=<<icon>>/><$text text=<<storyview>>/></$link> -</div> -</$set> -</$list> -</div> -</$linkcatcher>-
yes-
yes-
yes-
$:/core/ui/AdvancedSearch/System-
$:/core/ui/ControlPanel/StoryView-
$:/core/ui/ControlPanel/Basics-
$:/core/ui/ControlPanel/Plugins/Installed/Languages-
$:/core/ui/ControlPanel/EditorTypes-
$:/core/ui/ControlPanel/Appearance-
$:/core/ui/MoreSideBar/System-
$:/core/ui/SideBar/Tools-
no-
\define lingo-base() $:/language/TagManager/ -\define iconEditorTab(type) -\whitespace trim -<$link to=""><<lingo Icons/None>></$link> -<$list filter="[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[sort[title]] +[$type$is[system]]"> -<$link to={{!!title}}> -<$transclude/> <$view field="title"/> -</$link> -</$list> -\end -\define iconEditor(title) -\whitespace trim -<div class="tc-drop-down-wrapper"> -<$button popupTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}}</$button> -<$reveal stateTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} type="popup" position="belowleft" text="" default=""> -<div class="tc-drop-down"> -<$linkcatcher actions="""<$action-setfield $tiddler=<<__title__>> icon=<<navigateTo>>/>"""> -<<iconEditorTab type:"!">> -<hr/> -<<iconEditorTab type:"">> -</$linkcatcher> -</div> -</$reveal> -</div> -\end -\define toggleButton(state) -\whitespace trim -<$reveal stateTitle=<<__state__>> type="match" text="closed" default="closed"> -<$button setTitle=<<__state__>> setTo="open" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected"> -{{$:/core/images/info-button}} -</$button> -</$reveal> -<$reveal stateTitle=<<__state__>> type="match" text="open" default="closed"> -<$button setTitle=<<__state__>> setTo="closed" class="tc-btn-invisible tc-btn-dropdown" selectedClass="tc-selected"> -{{$:/core/images/info-button}} -</$button> -</$reveal> -\end -\whitespace trim -<table class="tc-tag-manager-table"> -<tbody> -<tr> -<th><<lingo Colour/Heading>></th> -<th class="tc-tag-manager-tag"><<lingo Tag/Heading>></th> -<th><<lingo Count/Heading>></th> -<th><<lingo Icon/Heading>></th> -<th><<lingo Info/Heading>></th> -</tr> -<$list filter="[tags[]!is[system]sort[title]]"> -<tr> -<td><$edit-text field="color" tag="input" type="color"/></td> -<td>{{||$:/core/ui/TagTemplate}}</td> -<td><$count filter="[all[current]tagging[]]"/></td> -<td> -<$macrocall $name="iconEditor" title={{!!title}}/> -</td> -<td> -<$macrocall $name="toggleButton" state={{{ [[$:/state/tag-manager/]addsuffix<currentTiddler>] }}} /> -</td> -</tr> -<tr> -<td></td> -<td colspan="4"> -<$reveal stateTitle={{{ [[$:/state/tag-manager/]addsuffix<currentTiddler>] }}} type="match" text="open" default=""> -<table> -<tbody> -<tr><td><<lingo Colour/Heading>></td><td><$edit-text field="color" tag="input" type="text" size="9"/></td></tr> -<tr><td><<lingo Icon/Heading>></td><td><$edit-text field="icon" tag="input" size="45"/></td></tr> -</tbody> -</table> -</$reveal> -</td> -</tr> -</$list> -<tr> -<td></td> -<td style="position:relative;"> -{{$:/core/ui/UntaggedTemplate}} -</td> -<td> -<small class="tc-menu-list-count"><$count filter="[untagged[]!is[system]] -[tags[]]"/></small> -</td> -<td></td> -<td></td> -</tr> -</tbody> -</table> --
image twitter-
{ - "tiddlers": { - "$:/info/browser": { - "title": "$:/info/browser", - "text": "yes" - }, - "$:/info/node": { - "title": "$:/info/node", - "text": "no" - }, - "$:/info/url/full": { - "title": "$:/info/url/full", - "text": "file:///media/m0/COPINCHA/proyectos/jardines-digitales/copincha.org/copincha-desarrollo.html" - }, - "$:/info/url/host": { - "title": "$:/info/url/host", - "text": "" - }, - "$:/info/url/hostname": { - "title": "$:/info/url/hostname", - "text": "" - }, - "$:/info/url/protocol": { - "title": "$:/info/url/protocol", - "text": "file:" - }, - "$:/info/url/port": { - "title": "$:/info/url/port", - "text": "" - }, - "$:/info/url/pathname": { - "title": "$:/info/url/pathname", - "text": "/media/m0/COPINCHA/proyectos/jardines-digitales/copincha.org/copincha-desarrollo.html" - }, - "$:/info/url/search": { - "title": "$:/info/url/search", - "text": "" - }, - "$:/info/url/origin": { - "title": "$:/info/url/origin", - "text": "null" - }, - "$:/info/browser/screen/width": { - "title": "$:/info/browser/screen/width", - "text": "1366" - }, - "$:/info/browser/screen/height": { - "title": "$:/info/browser/screen/height", - "text": "768" - }, - "$:/info/browser/language": { - "title": "$:/info/browser/language", - "text": "es-ES" - } - } -}-
$:/themes/tiddlywiki/seamless-
{ - "tiddlers": { - "$:/themes/tiddlywiki/seamless/base": { - "title": "$:/themes/tiddlywiki/seamless/base", - "tags": "[[$:/tags/Stylesheet]]", - "list-after": "$:/themes/tiddlywiki/vanilla/base", - "text": "\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline\n\n/*\nRules copied from Snow White\n*/\n\n.tc-page-controls button svg, .tc-tiddler-controls button svg, .tc-topbar button svg {\n\t<<transition \"fill 150ms ease-in-out\">>\n}\n\n.tc-tiddler-controls button.tc-selected svg {\n\t<<filter \"drop-shadow(0px -1px 2px rgba(0,0,0,0.25))\">>\n}\n\n.tc-drop-down {\n\tborder-radius: 4px;\n\t<<box-shadow \"2px 2px 10px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-block-dropdown {\n\tborder-radius: 4px;\n\t<<box-shadow \"2px 2px 10px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-modal-displayed {\n\t<<filter \"blur(4px)\">>\n}\n\n.tc-modal {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.3)\">>\n}\n\n.tc-modal-footer {\n\tborder-radius: 0 0 6px 6px;\n\t<<box-shadow \"inset 0 1px 0 #fff\">>;\n}\n\n.tc-alert {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.6)\">>\n}\n\n.tc-notification {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.3)\">>\n\ttext-shadow: 0 1px 0 rgba(255,255,255, 0.8);\n}\n\n.tc-message-box img {\n\t<<box-shadow \"1px 1px 3px rgba(0,0,0,0.5)\">>\n}\n\n/*\nSeamless modifications\n*/\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t/* Drop the tiddler frame padding */\n\tbody.tc-body .tc-tiddler-frame {\n\t\tpadding: 0;\n\t}\n\n\t/* Move the sidebar up so that the title lines up */\n\tbody.tc-body .tc-sidebar-scrollable {\n\t\tpadding: 43px 0 28px 42px;\n\t}\n\n\t/* Stop the tiddler info panel from bleeding into the tiddler frame padding */\n\tbody.tc-body .tc-tiddler-info {\n\t\tmargin: 0;\n\t}\n\n\t/* Stop message boxes from bleeding into the tiddler frame padding */\n\tbody.tc-body .tc-message-box {\n\t\tmargin: 21px 0 21px 0;\n\t}\n\n}\n\n/* Use the tiddler background colour for the page background */\nhtml body.tc-body {\n\tbackground-color: <<colour background>>;\n}\n\nhtml:-webkit-full-screen {\n\tbackground-color: <<colour background>>;\n}\n\n/* Adjust the colour of the page controls */\nbody.tc-body .tc-page-controls svg {\n\tfill: <<colour muted-foreground>>;\n}\n\n/* Adjust the colour of the sidebar selected tabs */\nbody.tc-body .tc-sidebar-lists .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: <<colour background>>;\n}\n" - } - } -}-
{ - "tiddlers": { - "$:/themes/tiddlywiki/snowwhite/base": { - "title": "$:/themes/tiddlywiki/snowwhite/base", - "tags": "[[$:/tags/Stylesheet]]", - "text": "\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline\n\n.tc-sidebar-header {\n\ttext-shadow: 0 1px 0 <<colour sidebar-foreground-shadow>>;\n}\n\n.tc-tiddler-info {\n\t<<box-shadow \"inset 1px 2px 3px rgba(0,0,0,0.1)\">>\n}\n\n@media screen {\n\t.tc-tiddler-frame {\n\t\t<<box-shadow \"1px 1px 5px rgba(0, 0, 0, 0.3)\">>\n\t}\n}\n\n@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\t.tc-tiddler-frame {\n\t\t<<box-shadow none>>\n\t}\n}\n\n.tc-page-controls button svg, .tc-tiddler-controls button svg, .tc-topbar button svg {\n\t<<transition \"fill 150ms ease-in-out\">>\n}\n\n.tc-tiddler-controls button.tc-selected,\n.tc-page-controls button.tc-selected {\n\t<<filter \"drop-shadow(0px -1px 2px rgba(0,0,0,0.25))\">>\n}\n\n.tc-tiddler-frame input.tc-edit-texteditor {\n\t<<box-shadow \"inset 0 1px 8px rgba(0, 0, 0, 0.15)\">>\n}\n\n.tc-edit-tags {\n\t<<box-shadow \"inset 0 1px 8px rgba(0, 0, 0, 0.15)\">>\n}\n\n.tc-tiddler-frame .tc-edit-tags input.tc-edit-texteditor {\n\t<<box-shadow \"none\">>\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<<box-shadow \"2px 2px 5px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-drop-down {\n\tborder-radius: 4px;\n\t<<box-shadow \"2px 2px 10px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-block-dropdown {\n\tborder-radius: 4px;\n\t<<box-shadow \"2px 2px 10px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-modal {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.3)\">>\n}\n\n.tc-modal-footer {\n\tborder-radius: 0 0 6px 6px;\n\t<<box-shadow \"inset 0 1px 0 #fff\">>;\n}\n\n\n.tc-alert {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.6)\">>\n}\n\n.tc-notification {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.3)\">>\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<<background-linear-gradient \"left, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.0) 100%\">>\n}\n\n.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button {\n\t<<background-linear-gradient \"left, rgba(0,0,0,0.01) 0%, rgba(0,0,0,0.1) 100%\">>\n}\n\n.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button.tc-tab-selected {\n\t<<background-linear-gradient \"left, rgba(0,0,0,0.05) 0%, rgba(255,255,255,0.05) 100%\">>\n}\n\n.tc-message-box img {\n\t<<box-shadow \"1px 1px 3px rgba(0,0,0,0.5)\">>\n}\n\n.tc-plugin-info {\n\t<<box-shadow \"1px 1px 3px rgba(0,0,0,0.5)\">>\n}\n" - } - } -}-
{ - "tiddlers": { - "$:/themes/tiddlywiki/vanilla/themetweaks": { - "title": "$:/themes/tiddlywiki/vanilla/themetweaks", - "tags": "$:/tags/ControlPanel/Appearance", - "caption": "{{$:/language/ThemeTweaks/ThemeTweaks}}", - "text": "\\define lingo-base() $:/language/ThemeTweaks/\n\n\\define replacement-text()\n[img[$(imageTitle)$]]\n\\end\n\n\\define backgroundimage-dropdown()\n<div class=\"tc-drop-down-wrapper\">\n<$button popup=<<qualify \"$:/state/popup/themetweaks/backgroundimage\">> class=\"tc-btn-invisible tc-btn-dropdown\">{{$:/core/images/down-arrow}}</$button>\n<$reveal state=<<qualify \"$:/state/popup/themetweaks/backgroundimage\">> type=\"popup\" position=\"belowleft\" text=\"\" default=\"\">\n<div class=\"tc-drop-down\">\n<$macrocall $name=\"image-picker\" actions=\"\"\"\n\n<$action-setfield\n\t$tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\"\n\t$value=<<imageTitle>>\n/>\n\n\"\"\"/>\n</div>\n</$reveal>\n</div>\n\\end\n\n\\define backgroundimageattachment-dropdown()\n<$select tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment\" default=\"scroll\">\n<option value=\"scroll\"><<lingo Settings/BackgroundImageAttachment/Scroll>></option>\n<option value=\"fixed\"><<lingo Settings/BackgroundImageAttachment/Fixed>></option>\n</$select>\n\\end\n\n\\define backgroundimagesize-dropdown()\n<$select tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize\" default=\"scroll\">\n<option value=\"auto\"><<lingo Settings/BackgroundImageSize/Auto>></option>\n<option value=\"cover\"><<lingo Settings/BackgroundImageSize/Cover>></option>\n<option value=\"contain\"><<lingo Settings/BackgroundImageSize/Contain>></option>\n</$select>\n\\end\n\n<<lingo ThemeTweaks/Hint>>\n\n! <<lingo Options>>\n\n|<$link to=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\"><<lingo Options/SidebarLayout>></$link> |<$select tiddler=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\"><option value=\"fixed-fluid\"><<lingo Options/SidebarLayout/Fixed-Fluid>></option><option value=\"fluid-fixed\"><<lingo Options/SidebarLayout/Fluid-Fixed>></option></$select> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/options/stickytitles\"><<lingo Options/StickyTitles>></$link><br>//<<lingo Options/StickyTitles/Hint>>// |<$select tiddler=\"$:/themes/tiddlywiki/vanilla/options/stickytitles\"><option value=\"no\">{{$:/language/No}}</option><option value=\"yes\">{{$:/language/Yes}}</option></$select> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/options/codewrapping\"><<lingo Options/CodeWrapping>></$link> |<$select tiddler=\"$:/themes/tiddlywiki/vanilla/options/codewrapping\"><option value=\"pre\">{{$:/language/No}}</option><option value=\"pre-wrap\">{{$:/language/Yes}}</option></$select> |\n\n! <<lingo Settings>>\n\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/fontfamily\"><<lingo Settings/FontFamily>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/fontfamily\" default=\"\" tag=\"input\"/> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/codefontfamily\"><<lingo Settings/CodeFontFamily>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/codefontfamily\" default=\"\" tag=\"input\"/> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\"><<lingo Settings/EditorFontFamily>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\" default=\"\" tag=\"input\"/> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\"><<lingo Settings/BackgroundImage>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\" default=\"\" tag=\"input\"/> |<<backgroundimage-dropdown>> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment\"><<lingo Settings/BackgroundImageAttachment>></$link> |<<backgroundimageattachment-dropdown>> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize\"><<lingo Settings/BackgroundImageSize>></$link> |<<backgroundimagesize-dropdown>> | |\n\n! <<lingo Metrics>>\n\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/fontsize\"><<lingo Metrics/FontSize>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/fontsize\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/lineheight\"><<lingo Metrics/LineHeight>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/lineheight\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize\"><<lingo Metrics/BodyFontSize>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/bodylineheight\"><<lingo Metrics/BodyLineHeight>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/bodylineheight\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storyleft\"><<lingo Metrics/StoryLeft>></$link><br>//<<lingo Metrics/StoryLeft/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storyleft\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storytop\"><<lingo Metrics/StoryTop>></$link><br>//<<lingo Metrics/StoryTop/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storytop\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storyright\"><<lingo Metrics/StoryRight>></$link><br>//<<lingo Metrics/StoryRight/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storyright\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storywidth\"><<lingo Metrics/StoryWidth>></$link><br>//<<lingo Metrics/StoryWidth/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storywidth\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth\"><<lingo Metrics/TiddlerWidth>></$link><br>//<<lingo Metrics/TiddlerWidth/Hint>>//<br> |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\"><<lingo Metrics/SidebarBreakpoint>></$link><br>//<<lingo Metrics/SidebarBreakpoint/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth\"><<lingo Metrics/SidebarWidth>></$link><br>//<<lingo Metrics/SidebarWidth/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth\" default=\"\" tag=\"input\"/> |\n" - }, - "$:/themes/tiddlywiki/vanilla/base": { - "title": "$:/themes/tiddlywiki/vanilla/base", - "tags": "[[$:/tags/Stylesheet]]", - "text": "\\define custom-background-datauri()\n<$set name=\"background\" value={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}}>\n<$list filter=\"[<background>is[image]]\">\n`background: url(`\n<$list filter=\"[<background>!has[_canonical_uri]]\">\n`\"`<$macrocall $name=\"datauri\" title={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}}/>`\"`\n</$list>\n<$list filter=\"[<background>has[_canonical_uri]]\">\n`\"`<$view tiddler={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}} field=\"_canonical_uri\"/>`\"`\n</$list>\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</$list>\n</$set>\n\\end\n\n\\define if-fluid-fixed(text,hiddenSidebarText)\n<$reveal state=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\" type=\"match\" text=\"fluid-fixed\">\n$text$\n<$reveal state=\"$:/state/sidebar\" type=\"nomatch\" text=\"yes\" default=\"yes\">\n$hiddenSidebarText$\n</$reveal>\n</$reveal>\n\\end\n\n\\define if-editor-height-fixed(then,else)\n<$reveal state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"fixed\">\n$then$\n</$reveal>\n<$reveal state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"auto\">\n$else$\n</$reveal>\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=\"search\"] {\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: <<colour button-foreground>>;\n\tbackground: <<colour button-background>>;\n\tborder-color: <<colour button-border>>;\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: <<colour page-background>>;\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<<custom-background-datauri>>\n\tcolor: <<colour foreground>>;\n\tbackground-color: <<colour page-background>>;\n\tfill: <<colour foreground>>;\n}\n\n<<if-background-attachment \"\"\"\n\nbody.tc-body {\n background-color: transparent;\n}\n\n\"\"\">>\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: <<colour pre-background>>;\n\tborder: 1px solid <<colour pre-border>>;\n\tpadding: 0 3px 2px;\n\tborder-radius: 3px;\n\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};\n}\n\ncode {\n\tcolor: <<colour code-foreground>>;\n\tbackground-color: <<colour code-background>>;\n\tborder: 1px solid <<colour code-border>>;\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 <<colour blockquote-bar>>;\n\tmargin-left: 25px;\n\tpadding-left: 10px;\n\tquotes: \"\\201C\"\"\\201D\"\"\\2018\"\"\\2019\";\n}\n\nblockquote > div {\n\tmargin-top: 1em;\n\tmargin-bottom: 1em;\n}\n\nblockquote.tc-big-quote {\n\tfont-family: Georgia, serif;\n\tposition: relative;\n\tbackground: <<colour pre-background>>;\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: \"\\2014 \\2009\";\n}\n\nblockquote.tc-big-quote:before {\n\tfont-family: Georgia, serif;\n\tcolor: <<colour blockquote-bar>>;\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: <<colour blockquote-bar>>;\n\tcontent: close-quote;\n\tfont-size: 8em;\n\tline-height: 0.1em;\n\tmargin-right: 0.25em;\n\tvertical-align: -0.4em;\n\tposition: absolute;\n right: -80px;\n bottom: -20px;\n}\n\ndl dt {\n\tfont-weight: bold;\n\tmargin-top: 6px;\n}\n\nbutton, textarea, input, select {\n\toutline-color: <<colour primary>>;\n}\n\ntextarea,\ninput[type=text],\ninput[type=search],\ninput[type=\"\"],\ninput:not([type]) {\n\tcolor: <<colour foreground>>;\n\tbackground: <<colour background>>;\n}\n\ninput[type=\"checkbox\"] {\n vertical-align: middle;\n}\n\n.tc-muted {\n\tcolor: <<colour muted-foreground>>;\n}\n\nsvg.tc-image-button {\n\tpadding: 0px 1px 1px 0px;\n}\n\n.tc-icon-wrapper > 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: <<colour foreground>>;\n\tvertical-align: middle;\n\tbackground-color: <<colour background>>;\n\tborder: solid 1px <<colour muted-foreground>>;\n\tborder-bottom-color: <<colour muted-foreground>>;\n\tborder-radius: 3px;\n\tbox-shadow: inset 0 -1px 0 <<colour muted-foreground>>;\n}\n\n/*\nMarkdown likes putting code elements inside pre elements\n*/\npre > code {\n\tpadding: 0;\n\tborder: none;\n\tbackground-color: inherit;\n\tcolor: inherit;\n}\n\ntable {\n\tborder: 1px solid <<colour table-border>>;\n\twidth: auto;\n\tmax-width: 100%;\n\tcaption-side: bottom;\n\tmargin-top: 1em;\n\tmargin-bottom: 1em;\n\t/* next 2 elements needed, since normalize 8.0.1 */\n\tborder-collapse: collapse;\n\tborder-spacing: 0;\n}\n\ntable th, table td {\n\tpadding: 0 7px 0 7px;\n\tborder-top: 1px solid <<colour table-border>>;\n\tborder-left: 1px solid <<colour table-border>>;\n}\n\ntable thead tr td, table th {\n\tbackground-color: <<colour table-header-background>>;\n\tfont-weight: bold;\n}\n\ntable tfoot tr td {\n\tbackground-color: <<colour table-footer-background>>;\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 > embed,\n.tc-tiddler-body > 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: <<colour tiddler-link-foreground>>;\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: <<colour sidebar-tiddler-link-foreground>>;\n}\n\n.tc-sidebar-lists a.tc-tiddlylink:hover {\n\tcolor: <<colour sidebar-tiddler-link-foreground-hover>>;\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: <<colour external-link-foreground>>;\n\tbackground-color: <<colour external-link-background>>;\n}\n\na.tc-tiddlylink-external:visited {\n\tcolor: <<colour external-link-foreground-visited>>;\n\tbackground-color: <<colour external-link-background-visited>>;\n}\n\na.tc-tiddlylink-external:hover {\n\tcolor: <<colour external-link-foreground-hover>>;\n\tbackground-color: <<colour external-link-background-hover>>;\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: <<colour dragger-foreground>>;\n\ttext-shadow: 0 1px 0 rgba(0, 0, 0, 1);\n\twhite-space: nowrap;\n\tvertical-align: baseline;\n\tbackground-color: <<colour dragger-background>>;\n\tborder-radius: 20px;\n}\n\n.tc-tiddler-dragger-cover {\n\tposition: absolute;\n\tbackground-color: <<colour page-background>>;\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: <<colour dropzone-background>>;\n\ttext-align: center;\n\tcontent: \"<<lingo DropMessage>>\";\n}\n\n.tc-droppable > .tc-droppable-placeholder {\n\tdisplay: none;\n}\n\n.tc-droppable.tc-dragover > .tc-droppable-placeholder {\n\tdisplay: block;\n\tborder: 2px dashed <<colour dropzone-background>>;\n}\n\n.tc-draggable {\n\tcursor: move;\n}\n\n.tc-sidebar-tab-open .tc-droppable-placeholder, .tc-tagged-draggable-list .tc-droppable-placeholder,\n.tc-links-draggable-list .tc-droppable-placeholder {\n\tline-height: 2em;\n\theight: 2em;\n}\n\n.tc-sidebar-tab-open-item {\n\tposition: relative;\n}\n\n.tc-sidebar-tab-open .tc-btn-invisible.tc-btn-mini svg {\n\tfont-size: 0.7em;\n\tfill: <<colour muted-foreground>>;\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: <<colour alert-background>>;\n\ttext-align: center;\n}\n\n/*\n** Buttons\n*/\n\nbutton svg, button img, label svg, label img {\n\tvertical-align: middle;\n}\n\n.tc-btn-invisible {\n\tpadding: 0;\n\tmargin: 0;\n\tbackground: none;\n\tborder: none;\n \tcursor: pointer;\n\tcolor: <<colour foreground>>;\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 <<colour tiddler-controls-foreground>>;\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: <<colour muted-foreground>>;\n\tcolor: <<colour background>>;\n}\n\nhtml body.tc-body .tc-btn-boxed:hover svg {\n\tfill: <<colour background>>;\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 <<colour muted-foreground>>;\n\tbackground: <<colour muted-foreground>>;\n\tcolor: <<colour background>>;\n\tborder-radius: 2em;\n}\n\nhtml body.tc-body .tc-btn-rounded svg {\n\tfont-size: 1.6666em;\n\tfill: <<colour background>>;\n}\n\n.tc-btn-rounded:hover {\n\tborder: 1px solid <<colour muted-foreground>>;\n\tbackground: <<colour background>>;\n\tcolor: <<colour muted-foreground>>;\n}\n\nhtml body.tc-body .tc-btn-rounded:hover svg {\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-btn-icon svg {\n\theight: 1em;\n\twidth: 1em;\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-btn-text {\n\tpadding: 0;\n\tmargin: 0;\n}\n\n/* used for documentation \"fake\" 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: <<colour download-background>>;\n\tcolor: <<colour download-foreground>>;\n\tfill: <<colour download-foreground>>;\n\tborder: none;\n\tborder-radius: 2px;\n\tfont-size: 1.2em;\n\tline-height: 1.4em;\n\ttext-decoration: none;\n}\n\n.tc-btn-big-green svg,\n.tc-btn-big-green img {\n\theight: 2em;\n\twidth: 2em;\n\tvertical-align: middle;\n\tfill: <<colour download-foreground>>;\n}\n\n.tc-primary-btn {\n \tbackground: <<colour primary>>;\n}\n\n.tc-sidebar-lists input {\n\tcolor: <<colour foreground>>;\n}\n\n.tc-sidebar-lists button {\n\tcolor: <<colour sidebar-button-foreground>>;\n\tfill: <<colour sidebar-button-foreground>>;\n}\n\n.tc-sidebar-lists button.tc-btn-mini {\n\tcolor: <<colour sidebar-muted-foreground>>;\n}\n\n.tc-sidebar-lists button.tc-btn-mini:hover {\n\tcolor: <<colour sidebar-muted-foreground-hover>>;\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 <<colour tiddler-info-background>>;\n\tmargin-top: 4px;\n}\n\n.tc-unfold-banner:hover {\n\tbackground: <<colour tiddler-info-background>>;\n\tborder-top: 2px solid <<colour tiddler-info-border>>;\n}\n\n.tc-unfold-banner svg, .tc-fold-banner svg {\n\theight: 0.75em;\n\tfill: <<colour tiddler-controls-foreground>>;\n}\n\n.tc-unfold-banner:hover svg, .tc-fold-banner:hover svg {\n\tfill: <<colour tiddler-controls-foreground-hover>>;\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: <<colour tiddler-info-background>>;\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: <<colour tag-foreground>>;\n\twhite-space: nowrap;\n\tvertical-align: baseline;\n\tbackground-color: <<colour tag-background>>;\n\tborder-radius: 1em;\n}\n\n.tc-sidebar-scrollable .tc-tag-label {\n\ttext-shadow: none;\n}\n\n.tc-untagged-separator {\n\twidth: 10em;\n\tleft: 0;\n\tmargin-left: 0;\n\tborder: 0;\n\theight: 1px;\n\tbackground: <<colour tab-divider>>;\n}\n\nbutton.tc-untagged-label {\n\tbackground-color: <<colour untagged-background>>;\n}\n\n.tc-tag-label svg, .tc-tag-label img {\n\theight: 1em;\n\twidth: 1em;\n\tmargin-right: 3px; \n\tmargin-bottom: 1px;\n\tvertical-align: text-bottom;\n}\n\n.tc-edit-tags button.tc-remove-tag-button svg {\n\tfont-size: 0.7em;\n\tvertical-align: middle;\n}\n\n.tc-tag-manager-table .tc-tag-label {\n\twhite-space: normal;\n}\n\n.tc-tag-manager-tag {\n\twidth: 100%;\n}\n\nbutton.tc-btn-invisible.tc-remove-tag-button {\n\toutline: none;\n}\n\n/*\n** Page layout\n*/\n\n.tc-topbar {\n\tposition: fixed;\n\tz-index: 1200;\n}\n\n.tc-topbar-left {\n\tleft: 29px;\n\ttop: 5px;\n}\n\n.tc-topbar-right {\n\ttop: 5px;\n\tright: 29px;\n}\n\n.tc-topbar button {\n\tpadding: 8px;\n}\n\n.tc-topbar svg {\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-topbar button:hover svg {\n\tfill: <<colour foreground>>;\n}\n\n.tc-sidebar-header {\n\tcolor: <<colour sidebar-foreground>>;\n\tfill: <<colour sidebar-foreground>>;\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: <<colour sidebar-foreground>>;\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: <<colour sidebar-controls-foreground>>;\n}\n\n.tc-page-controls button:hover svg, .tc-page-controls a:hover svg {\n\tfill: <<colour sidebar-controls-foreground-hover>>;\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=\"rtl\"] .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<<if-no-sidebar \"\n\n\t.tc-story-river {\n\t\twidth: calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}});\n\t}\n\n\">>\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: <<colour tiddler-background>>;\n\tborder: 1px solid <<colour tiddler-border>>;\n}\n\n{{$:/themes/tiddlywiki/vanilla/sticky}}\n\n.tc-tiddler-info {\n\tpadding: 14px 42px 14px 42px;\n\tbackground-color: <<colour tiddler-info-background>>;\n\tborder-top: 1px solid <<colour tiddler-info-border>>;\n\tborder-bottom: 1px solid <<colour tiddler-info-border>>;\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: <<colour tiddler-info-tab-background>>;\n\tborder-bottom: 1px solid <<colour tiddler-info-tab-background>>;\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<<if-no-sidebar \"\n\n\t.tc-tiddler-frame {\n\t\twidth: 100%;\n\t}\n\n\">>\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: <<colour tiddler-title-foreground>>;\n\tmargin: 0;\n}\n\n.tc-site-title {\n\tcolor: <<colour site-title-foreground>>;\n}\n\n.tc-tiddler-title-icon {\n\tvertical-align: middle;\n\tmargin-right: .1em;\n}\n\n.tc-system-title-prefix {\n\tcolor: <<colour muted-foreground>>;\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: <<colour tiddler-subtitle-foreground>>;\n\tfont-weight: 300;\n}\n\n.tc-subtitle .tc-tiddlylink {\n\tmargin-right: .3em;\n}\n\n.tc-tiddler-missing .tc-title {\n font-style: italic;\n font-weight: normal;\n}\n\n.tc-tiddler-frame .tc-tiddler-controls {\n\tfloat: right;\n}\n\n.tc-tiddler-controls .tc-drop-down {\n\tfont-size: 0.6em;\n}\n\n.tc-tiddler-controls .tc-drop-down .tc-drop-down {\n\tfont-size: 1em;\n}\n\n.tc-tiddler-controls > span > button,\n.tc-tiddler-controls > span > span > button,\n.tc-tiddler-controls > span > span > span > 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: <<colour tiddler-controls-foreground>>;\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: <<colour tiddler-controls-foreground-selected>>;\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: <<colour tiddler-controls-foreground-hover>>;\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: <<colour muted-foreground>>;\n\tmargin-top: 14px;\n}\n\n.tc-tiddler-help a.tc-tiddlylink {\n\tcolor: <<colour very-muted-foreground>>;\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 <<colour tiddler-editor-border>>;\n\tbackground-color: <<colour tiddler-editor-background>>;\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: <<colour alert-background>>;\n\tborder: 1px solid <<colour alert-border>>;\n}\n\ncanvas.tc-edit-bitmapeditor {\n\tborder: 6px solid <<colour tiddler-editor-border-image>>;\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: <<colour tiddler-background>>;\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: <<colour tiddler-controls-foreground>>;\n\tcolor: <<colour tiddler-controls-foreground-selected>>;\n\tfill: <<colour tiddler-controls-foreground-selected>>;\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: <<colour primary>>;\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: <<colour tiddler-controls-foreground-selected>>;\n\tfill: <<colour background>>;\n\tcolor: <<colour background>>;\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<<if-fluid-fixed text:\"\"\"\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\"\"\" hiddenSidebarText:\"\"\"\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\"\"\">>\n\n}\n\n/*\n** Toolbar buttons\n*/\n\n.tc-page-controls svg.tc-image-new-button {\n fill: <<colour toolbar-new-button>>;\n}\n\n.tc-page-controls svg.tc-image-options-button {\n fill: <<colour toolbar-options-button>>;\n}\n\n.tc-page-controls svg.tc-image-save-button {\n fill: <<colour toolbar-save-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-info-button {\n fill: <<colour toolbar-info-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-edit-button {\n fill: <<colour toolbar-edit-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-close-button {\n fill: <<colour toolbar-close-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-delete-button {\n fill: <<colour toolbar-delete-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-cancel-button {\n fill: <<colour toolbar-cancel-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-done-button {\n fill: <<colour toolbar-done-button>>;\n}\n\n/*\n** Tiddler edit mode\n*/\n\n.tc-tiddler-edit-frame em.tc-edit {\n\tcolor: <<colour muted-foreground>>;\n\tfont-style: normal;\n}\n\n.tc-edit-type-dropdown a.tc-tiddlylink-missing {\n\tfont-style: normal;\n}\n\n.tc-type-selector .tc-edit-typeeditor {\n\twidth: 20%;\n}\n\n.tc-edit-tags {\n\tborder: 1px solid <<colour tiddler-editor-border>>;\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 <<colour tiddler-editor-border>>;\n\tmargin: 4px 0 3px 3px;\n\tpadding: 3px 3px 3px 3px;\n}\n\n<<if-editor-height-fixed then:\"\"\"\n\n.tc-tiddler-preview-preview {\n\toverflow-y: scroll;\n\theight: {{$:/config/TextEditor/EditorHeight/Height}};\n}\n\n\"\"\">>\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 > tbody > .tc-edit-field:nth-child(odd) {\n\tbackground-color: <<colour tiddler-editor-fields-odd>>;\n}\n\n.tc-edit-fields > tbody > .tc-edit-field:nth-child(even) {\n\tbackground-color: <<colour tiddler-editor-fields-even>>;\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: <<colour muted-foreground>>;\n\tvertical-align: middle;\n}\n\n.tc-edit-field-add-name {\n\tdisplay: inline-block;\n\twidth: 15%;\n}\n\n.tc-edit-field-add-value {\n\tdisplay: inline-block;\n\twidth: 40%;\n}\n\n.tc-edit-field-add-button {\n\tdisplay: inline-block;\n\twidth: 10%;\n}\n\n/*\n** Storyview Classes\n*/\n\n.tc-viewswitcher .tc-image-button {\n\tmargin-right: .3em;\n}\n\n.tc-storyview-zoomin-tiddler {\n\tposition: absolute;\n\tdisplay: block;\n\twidth: 100%;\n}\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t.tc-storyview-zoomin-tiddler {\n\t\twidth: calc(100% - 84px);\n\t}\n\n}\n\n/*\n** Dropdowns\n*/\n\n.tc-btn-dropdown {\n\ttext-align: left;\n}\n\n.tc-btn-dropdown svg, .tc-btn-dropdown img {\n\theight: 1em;\n\twidth: 1em;\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-drop-down-wrapper {\n\tposition: relative;\n}\n\n.tc-drop-down {\n\tmin-width: 380px;\n\tborder: 1px solid <<colour dropdown-border>>;\n\tbackground-color: <<colour dropdown-background>>;\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: <<colour foreground>>;\n}\n\n.tc-drop-down button.tc-btn-invisible:hover svg {\n\tfill: <<colour foreground>>;\n}\n\n.tc-drop-down .tc-drop-down-info {\n\tpadding-left: 14px;\n}\n\n.tc-drop-down p {\n\tpadding: 0 14px 0 14px;\n}\n\n.tc-drop-down svg {\n\twidth: 1em;\n\theight: 1em;\n}\n\n.tc-drop-down img {\n\twidth: 1em;\n}\n\n.tc-drop-down a, .tc-drop-down button {\n\tdisplay: block;\n\tpadding: 0 14px 0 14px;\n\twidth: 100%;\n\ttext-align: left;\n\tcolor: <<colour foreground>>;\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: <<colour foreground>>;\n}\n\n.tc-drop-down a:hover, .tc-drop-down button:hover, .tc-drop-down .tc-file-input-wrapper:hover button {\n\tcolor: <<colour tiddler-link-background>>;\n\tbackground-color: <<colour tiddler-link-foreground>>;\n\ttext-decoration: none;\n}\n\n.tc-drop-down .tc-tab-buttons button {\n\tbackground-color: <<colour dropdown-tab-background>>;\n}\n\n.tc-drop-down .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: <<colour dropdown-tab-background-selected>>;\n\tborder-bottom: 1px solid <<colour dropdown-tab-background-selected>>;\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 <<colour dropdown-border>>;\n\tbackground-color: <<colour dropdown-background>>;\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: <<colour muted-foreground>>;\n}\n\n.tc-block-dropdown a:hover {\n\tcolor: <<colour tiddler-link-background>>;\n\tbackground-color: <<colour tiddler-link-foreground>>;\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 <<colour muted-foreground>>;\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: <<colour primary>>;\n\tpadding: 0px;\n\tborder: 3px solid <<colour primary>>;\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: <<colour modal-backdrop>>;\n}\n\n.tc-modal {\n\tz-index: 1100;\n\tbackground-color: <<colour modal-background>>;\n\tborder: 1px solid <<colour modal-border>>;\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 <<colour modal-header-border>>;\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: <<colour modal-footer-background>>;\n\tborder-top: 1px solid <<colour modal-footer-border>>;\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: <<colour notification-background>>;\n\tborder: 1px solid <<colour notification-border>>;\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: <<colour tab-foreground-selected>>;\n\tbackground-color: <<colour tab-background-selected>>;\n\tborder-left: 1px solid <<colour tab-border-selected>>;\n\tborder-top: 1px solid <<colour tab-border-selected>>;\n\tborder-right: 1px solid <<colour tab-border-selected>>;\n}\n\n.tc-tab-buttons button {\n\tcolor: <<colour tab-foreground>>;\n\tpadding: 3px 5px 3px 5px;\n\tmargin-right: 0.3em;\n\tfont-weight: 300;\n\tborder: none;\n\tbackground: inherit;\n\tbackground-color: <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-right: 1px solid <<colour tab-border>>;\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: <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\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: <<colour tab-background-selected>>;\n\tborder-right: 1px solid <<colour tab-background-selected>>;\n}\n\n.tc-tab-divider {\n\tborder-top: 1px solid <<colour tab-divider>>;\n}\n\n.tc-tab-divider.tc-vertical {\n\tdisplay: none;\n}\n\n.tc-tab-content {\n\tmargin-top: 14px;\n}\n\n.tc-tab-content.tc-vertical {\n\tdisplay: inline-block;\n\tvertical-align: top;\n\tpadding-top: 0;\n\tpadding-left: 14px;\n\tborder-left: 1px solid <<colour tab-border>>;\n\t-webkit-flex: 1 0 70%;\n\tflex: 1 0 70%;\n\toverflow: auto;\n}\n\n.tc-sidebar-lists .tc-tab-buttons {\n\tmargin-bottom: -1px;\n}\n\n.tc-sidebar-lists .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: <<colour sidebar-tab-background-selected>>;\n\tcolor: <<colour sidebar-tab-foreground-selected>>;\n\tborder-left: 1px solid <<colour sidebar-tab-border-selected>>;\n\tborder-top: 1px solid <<colour sidebar-tab-border-selected>>;\n\tborder-right: 1px solid <<colour sidebar-tab-border-selected>>;\n}\n\n.tc-sidebar-lists .tc-tab-buttons button {\n\tbackground-color: <<colour sidebar-tab-background>>;\n\tcolor: <<colour sidebar-tab-foreground>>;\n\tborder-left: 1px solid <<colour sidebar-tab-border>>;\n\tborder-top: 1px solid <<colour sidebar-tab-border>>;\n\tborder-right: 1px solid <<colour sidebar-tab-border>>;\n}\n\n.tc-sidebar-lists .tc-tab-divider {\n\tborder-top: 1px solid <<colour sidebar-tab-divider>>;\n}\n\n.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button {\n\tdisplay: block;\n\twidth: 100%;\n\tbackground-color: <<colour sidebar-tab-background>>;\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 > .tc-tab-set > .tc-tab-buttons > button.tc-tab-selected {\n\tbackground-color: <<colour sidebar-tab-background-selected>>;\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 <<colour muted-foreground>>;\n\tborder-left: 1px solid <<colour muted-foreground>>;\n\tborder-right: 1px solid <<colour muted-foreground>>;\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 <<colour muted-foreground>>;\n\tpadding: 3px;\n}\n\n.tc-manager-list-item-heading-selected {\n\tfont-weight: bold;\n\tcolor: <<colour background>>;\n\tfill: <<colour background>>;\n\tbackground-color: <<colour foreground>>;\n}\n\n.tc-manager-list-item-heading:hover {\n\tbackground: <<colour primary>>;\n\tcolor: <<colour background>>;\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: <<colour tiddler-editor-background>>;\n border-right: 0.5em solid <<colour muted-foreground>>;\n border-bottom: 0.5em solid <<colour muted-foreground>>;\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: <<colour muted-foreground>>;\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 > 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 <<colour muted-foreground>>;\n border-right: 0.5em solid <<colour muted-foreground>>;\n border-bottom: 0.5em solid <<colour muted-foreground>>;\n}\n\n.tc-manager-list-item-content-item-body > table {\n\tborder: none;\n\tpadding: 0;\n\tmargin: 0;\n}\n\n.tc-manager-list-item-content-item-body > table td {\n\tborder: none;\n}\n\n.tc-manager-icon-editor > button {\n\twidth: 100%;\n}\n\n.tc-manager-icon-editor > button > svg,\n.tc-manager-icon-editor > button > button {\n\twidth: 100%;\n\theight: auto;\n}\n\n/*\n** Alerts\n*/\n\n.tc-alerts {\n\tposition: fixed;\n\ttop: 28px;\n\tleft: 0;\n\tright: 0;\n\tmax-width: 50%;\n\tz-index: 20000;\n}\n\n.tc-alert {\n\tposition: relative;\n\tmargin: 14px;\n\tpadding: 7px;\n\tborder: 1px solid <<colour alert-border>>;\n\tbackground-color: <<colour alert-background>>;\n}\n\n.tc-alert-toolbar {\n\tposition: absolute;\n\ttop: 7px;\n\tright: 7px;\n line-height: 0;\n}\n\n.tc-alert-toolbar svg {\n\tfill: <<colour alert-muted-foreground>>;\n}\n\n.tc-alert-subtitle {\n\tcolor: <<colour alert-muted-foreground>>;\n\tfont-weight: bold;\n font-size: 0.8em;\n margin-bottom: 0.5em;\n}\n\n.tc-alert-body > p {\n\tmargin: 0;\n}\n\n.tc-alert-highlight {\n\tcolor: <<colour alert-highlight>>;\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: <<colour static-alert-foreground>>;\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 <<colour background>>;\n\tborder-bottom-none;\n\tbackground: <<colour dirty-indicator>>;\n\tcolor: <<colour background>>;\n\tfill: <<colour background>>;\n}\n\n.tc-drafts-list a:hover {\n\ttext-decoration: none;\n\tbackground: <<colour foreground>>;\n\tcolor: <<colour background>>;\n\tfill: <<colour background>>;\n}\n\n.tc-drafts-list a svg {\n\twidth: 1em;\n\theight: 1em;\n\tvertical-align: text-bottom;\n}\n\n/*\n** Control panel\n*/\n\n.tc-control-panel td {\n\tpadding: 4px;\n}\n\n.tc-control-panel table, .tc-control-panel table input, .tc-control-panel table textarea {\n\twidth: 100%;\n}\n\n.tc-plugin-info {\n\tdisplay: flex;\n\tborder: 1px solid <<colour muted-foreground>>;\n\tfill: <<colour muted-foreground>>;\n\tbackground-color: <<colour background>>;\n\tmargin: 0.5em 0 0.5em 0;\n\tpadding: 4px;\n align-items: center;\n}\n\n.tc-plugin-info-sub-plugins .tc-plugin-info {\n margin: 0.5em;\n\tbackground: <<colour background>>;\n}\n\n.tc-plugin-info-sub-plugin-indicator {\n\tmargin: -16px 1em 0 2em;\n}\n\n.tc-plugin-info-sub-plugin-indicator button {\n\tcolor: <<colour background>>;\n\tbackground: <<colour foreground>>;\n\tborder-radius: 8px;\n padding: 2px 7px;\n font-size: 0.75em;\n}\n\n.tc-plugin-info-sub-plugins .tc-plugin-info-dropdown {\n\tmargin-left: 1em;\n\tmargin-right: 1em;\n}\n\n.tc-plugin-info-disabled {\n\tbackground: -webkit-repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);\n\tbackground: repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);\n}\n\n.tc-plugin-info-disabled:hover {\n\tbackground: -webkit-repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);\n\tbackground: repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);\n}\n\na.tc-tiddlylink.tc-plugin-info:hover {\n\ttext-decoration: none;\n\tbackground-color: <<colour primary>>;\n\tcolor: <<colour background>>;\n\tfill: <<colour foreground>>;\n}\n\na.tc-tiddlylink.tc-plugin-info:hover .tc-plugin-info > .tc-plugin-info-chunk > svg {\n\tfill: <<colour foreground>>;\n}\n\n.tc-plugin-info-chunk {\n margin: 2px;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-toggle {\n\tflex-grow: 0;\n\tflex-shrink: 0;\n\tline-height: 1;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-icon {\n\tflex-grow: 0;\n\tflex-shrink: 0;\n\tline-height: 1;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description {\n\tflex-grow: 1;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-buttons {\n\tfont-size: 0.8em;\n\tline-height: 1.2;\n\tflex-grow: 0;\n\tflex-shrink: 0;\n text-align: right;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description h1 {\n\tfont-size: 1em;\n\tline-height: 1.2;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description h2 {\n\tfont-size: 0.8em;\n\tline-height: 1.2;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description div {\n\tfont-size: 0.7em;\n\tline-height: 1.2;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-toggle img, .tc-plugin-info-chunk.tc-plugin-info-toggle svg {\n\twidth: 1em;\n\theight: 1em;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-icon img, .tc-plugin-info-chunk.tc-plugin-info-icon svg {\n\twidth: 2em;\n\theight: 2em;\n}\n\n.tc-plugin-info-dropdown {\n\tborder: 1px solid <<colour muted-foreground>>;\n\tbackground: <<colour background>>;\n\tmargin-top: -8px;\n}\n\n.tc-plugin-info-dropdown-message {\n\tbackground: <<colour message-background>>;\n\tpadding: 0.5em 1em 0.5em 1em;\n\tfont-weight: bold;\n\tfont-size: 0.8em;\n}\n\n.tc-plugin-info-dropdown-body {\n\tpadding: 1em 1em 0 1em;\n\tbackground: <<colour background>>;\n}\n\n.tc-plugin-info-sub-plugins {\n\tpadding: 0.5em;\n margin: 0 1em 1em 1em;\n\tbackground: <<colour notification-background>>;\n}\n\n.tc-install-plugin {\n\tfont-weight: bold;\n\tbackground: green;\n\tcolor: white;\n\tfill: white;\n\tborder-radius: 4px;\n\tpadding: 3px;\n}\n\n.tc-install-plugin.tc-reinstall-downgrade {\n\tbackground: red;\n}\n\n.tc-install-plugin.tc-reinstall {\n\tbackground: blue;\n}\n\n.tc-install-plugin.tc-reinstall-upgrade {\n\tbackground: orange;\n}\n\n.tc-check-list {\n\tline-height: 2em;\n}\n\n.tc-check-list .tc-image-button {\n\theight: 1.5em;\n}\n\n/*\n** Message boxes\n*/\n\n.tc-message-box {\n\tborder: 1px solid <<colour message-border>>;\n\tbackground: <<colour message-background>>;\n\tpadding: 0px 21px 0px 21px;\n\tfont-size: 12px;\n\tline-height: 18px;\n\tcolor: <<colour message-foreground>>;\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 <<colour muted-foreground>>;\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 <<colour table-header-background>>;\n\tborder-left: 1px solid <<colour table-header-background>>;\n}\n\n\n.tc-chooser-item {\n\tborder-bottom: 1px solid <<colour table-header-background>>;\n\tborder-top: 1px solid <<colour table-header-background>>;\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: <<colour table-header-background>>;\n\tborder-color: <<colour table-footer-background>>;\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: <<colour foreground>>;\n}\n\n.tc-chosen > .tc-tiddlylink:before {\n\tmargin-left: -10px;\n\tposition: relative;\n\tcontent: \"» \";\n}\n\n.tc-chooser-item svg,\n.tc-chooser-item img{\n\twidth: 1em;\n\theight: 1em;\n\tvertical-align: middle;\n}\n\n.tc-language-chooser .tc-image-button img {\n\twidth: 2em;\n\tvertical-align: -0.15em;\n}\n\n/*\n** Palette swatches\n*/\n\n.tc-swatches-horiz {\n}\n\n.tc-swatches-horiz .tc-swatch {\n\tdisplay: inline-block;\n}\n\n.tc-swatch {\n\twidth: 2em;\n\theight: 2em;\n\tmargin: 0.4em;\n\tborder: 1px solid #888;\n}\n\ninput.tc-palette-manager-colour-input {\n\twidth: 100%;\n\tpadding: 0;\n}\n\n/*\n** Table of contents\n*/\n\n.tc-sidebar-lists .tc-table-of-contents {\n\twhite-space: nowrap;\n}\n\n.tc-table-of-contents button {\n\tcolor: <<colour sidebar-foreground>>;\n}\n\n.tc-table-of-contents svg {\n\twidth: 0.7em;\n\theight: 0.7em;\n\tvertical-align: middle;\n\tfill: <<colour sidebar-foreground>>;\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: <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a,\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > 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 > a {\n\tborder-top: 1px solid <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-background>>;\n\tborder-bottom: 1px solid <<colour tab-background>>;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a:hover {\n\ttext-decoration: none;\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\n\tbackground: <<colour tab-border>>;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a {\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\n\tbackground: <<colour background>>;\n\tmargin-right: -1px;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > 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 <<colour tab-border>>;\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: <<colour dirty-indicator>>;\n\tcolor: <<colour dirty-indicator>>;\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<<filter \"drop-shadow(2px 2px 4px rgba(0,0,0,0.3))\">>\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<<filter \"drop-shadow(3px 3px 4px rgba(0,0,0,0.6))\">>\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: <<colour diff-equal-background>>;\n\tcolor: <<colour diff-equal-foreground>>;\n}\n\n.tc-diff-insert {\n\tbackground-color: <<colour diff-insert-background>>;\n\tcolor: <<colour diff-insert-foreground>>;\n}\n\n.tc-diff-delete {\n\tbackground-color: <<colour diff-delete-background>>;\n\tcolor: <<colour diff-delete-foreground>>;\n}\n\n.tc-diff-invisible {\n\tbackground-color: <<colour diff-invisible-background>>;\n\tcolor: <<colour diff-invisible-foreground>>;\n}\n\n.tc-diff-tiddlers th {\n\ttext-align: right;\n\tbackground: <<colour background>>;\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: <<colour select-tag-foreground>>;\n background: <<colour select-tag-background>>;\n}\n\n/*\n** Utility classes for SVG icons\n*/\n\n.tc-fill-background {\n\tfill: <<colour background>>;\n}" - }, - "$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize": { - "title": "$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize", - "text": "15px" - }, - "$:/themes/tiddlywiki/vanilla/metrics/bodylineheight": { - "title": "$:/themes/tiddlywiki/vanilla/metrics/bodylineheight", - "text": "22px" - }, - "$:/themes/tiddlywiki/vanilla/metrics/fontsize": { - "title": "$:/themes/tiddlywiki/vanilla/metrics/fontsize", - "text": "14px" - }, - "$:/themes/tiddlywiki/vanilla/metrics/lineheight": { - "title": "$:/themes/tiddlywiki/vanilla/metrics/lineheight", - "text": "20px" - }, - "$:/themes/tiddlywiki/vanilla/metrics/storyleft": { - "title": "$:/themes/tiddlywiki/vanilla/metrics/storyleft", - "text": "0px" - }, - "$:/themes/tiddlywiki/vanilla/metrics/storytop": { - "title": "$:/themes/tiddlywiki/vanilla/metrics/storytop", - "text": "0px" - }, - "$:/themes/tiddlywiki/vanilla/metrics/storyright": { - "title": "$:/themes/tiddlywiki/vanilla/metrics/storyright", - "text": "770px" - }, - "$:/themes/tiddlywiki/vanilla/metrics/storywidth": { - "title": "$:/themes/tiddlywiki/vanilla/metrics/storywidth", - "text": "770px" - }, - "$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth": { - "title": "$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth", - "text": "686px" - }, - "$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint": { - "title": "$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint", - "text": "960px" - }, - "$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth": { - "title": "$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth", - "text": "350px" - }, - "$:/themes/tiddlywiki/vanilla/options/stickytitles": { - "title": "$:/themes/tiddlywiki/vanilla/options/stickytitles", - "text": "no" - }, - "$:/themes/tiddlywiki/vanilla/options/sidebarlayout": { - "title": "$:/themes/tiddlywiki/vanilla/options/sidebarlayout", - "text": "fixed-fluid" - }, - "$:/themes/tiddlywiki/vanilla/options/codewrapping": { - "title": "$:/themes/tiddlywiki/vanilla/options/codewrapping", - "text": "pre-wrap" - }, - "$:/themes/tiddlywiki/vanilla/reset": { - "title": "$:/themes/tiddlywiki/vanilla/reset", - "type": "text/plain", - "text": "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput { /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n" - }, - "$:/themes/tiddlywiki/vanilla/settings/fontfamily": { - "title": "$:/themes/tiddlywiki/vanilla/settings/fontfamily", - "text": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"" - }, - "$:/themes/tiddlywiki/vanilla/settings/codefontfamily": { - "title": "$:/themes/tiddlywiki/vanilla/settings/codefontfamily", - "text": "\"SFMono-Regular\",Consolas,\"Liberation Mono\",Menlo,Courier,monospace" - }, - "$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment": { - "title": "$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment", - "text": "fixed" - }, - "$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize": { - "title": "$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize", - "text": "auto" - }, - "$:/themes/tiddlywiki/vanilla/sticky": { - "title": "$:/themes/tiddlywiki/vanilla/sticky", - "text": "<$reveal state=\"$:/themes/tiddlywiki/vanilla/options/stickytitles\" type=\"match\" text=\"yes\">\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: ``<<colour tiddler-background>>``;\n\tz-index: 500;\n}\n\n``\n<$list filter=\"[range[100]]\">\n`.tc-story-river .tc-tiddler-frame:nth-child(100n+`<$text text=<<currentTiddler>>/>`) {\nz-index: `<$text text={{{ [[200]subtract<currentTiddler>] }}}/>`;\n}\n`\n</$list>\n</$reveal>\n" - } - } -}-
\define if-fluid-fixed(text,hiddenSidebarText) -<$reveal state="$:/themes/tiddlywiki/vanilla/options/sidebarlayout" type="match" text="fluid-fixed"> -$text$ -<$reveal state="$:/state/sidebar" type="nomatch" text="yes" default="yes"> -$hiddenSidebarText$ -</$reveal> -</$reveal> -\end - -\define if-editor-height-fixed(then,else) -<$reveal state="$:/config/TextEditor/EditorHeight/Mode" type="match" text="fixed"> -$then$ -</$reveal> -<$reveal state="$:/config/TextEditor/EditorHeight/Mode" type="match" text="auto"> -$else$ -</$reveal> -\end - -\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock - -/* -** Start with the normalize CSS reset, and then belay some of its effects -*/ - -{{$:/themes/tiddlywiki/vanilla/reset}} - -*, input[type="search"] { - box-sizing: border-box; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; -} - -html button { - line-height: 1.2; - color: <<colour button-foreground>>; - background: <<colour button-background>>; - border-color: <<colour button-border>>; -} - -/* -** Basic element styles -*/ - -html { - font-family: {{$:/themes/tiddlywiki/vanilla/settings/fontfamily}}; - text-rendering: optimizeLegibility; /* Enables kerning and ligatures etc. */ - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -html:-webkit-full-screen { - background-color: <<colour page-background>>; -} - -body.tc-body { - font-size: {{$:/themes/tiddlywiki/vanilla/metrics/fontsize}}; - line-height: {{$:/themes/tiddlywiki/vanilla/metrics/lineheight}}; - word-wrap: break-word; - color: <<colour foreground>>; - background-color: <<colour page-background>>; - fill: <<colour foreground>>; -} - -<<if-background-attachment """ - -body.tc-body { - background-color: transparent; -} - -""">> - -h1, h2, h3, h4, h5, h6 { - line-height: 1.2; - font-weight: 300; -} - -pre { - display: block; - padding: 14px; - margin-top: 1em; - margin-bottom: 1em; - word-break: normal; - word-wrap: break-word; - white-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}}; - background-color: <<colour pre-background>>; - border: 1px solid <<colour pre-border>>; - padding: 0 3px 2px; - border-radius: 3px; - font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}}; -} - -code { - color: <<colour code-foreground>>; - background-color: <<colour code-background>>; - border: 1px solid <<colour code-border>>; - white-space: {{$:/themes/tiddlywiki/vanilla/options/codewrapping}}; - padding: 0 3px 2px; - border-radius: 3px; - font-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}}; -} - -blockquote { - border-left: 5px solid <<colour blockquote-bar>>; - margin-left: 25px; - padding-left: 10px; - quotes: "\201C""\201D""\2018""\2019"; -} - -blockquote > div { - margin-top: 1em; - margin-bottom: 1em; -} - -blockquote.tc-big-quote { - font-family: Georgia, serif; - position: relative; - background: <<colour pre-background>>; - border-left: none; - margin-left: 50px; - margin-right: 50px; - padding: 10px; - border-radius: 8px; -} - -blockquote.tc-big-quote cite:before { - content: "\2014 \2009"; -} - -blockquote.tc-big-quote:before { - font-family: Georgia, serif; - color: <<colour blockquote-bar>>; - content: open-quote; - font-size: 8em; - line-height: 0.1em; - margin-right: 0.25em; - vertical-align: -0.4em; - position: absolute; - left: -50px; - top: 42px; -} - -blockquote.tc-big-quote:after { - font-family: Georgia, serif; - color: <<colour blockquote-bar>>; - content: close-quote; - font-size: 8em; - line-height: 0.1em; - margin-right: 0.25em; - vertical-align: -0.4em; - position: absolute; - right: -80px; - bottom: -20px; -} - -dl dt { - font-weight: bold; - margin-top: 6px; -} - -button, textarea, input, select { - outline-color: <<colour primary>>; -} - -textarea, -input[type=text], -input[type=search], -input[type=""], -input:not([type]) { - color: <<colour foreground>>; - background: <<colour background>>; -} - -input[type="checkbox"] { - vertical-align: middle; -} - -.tc-muted { - color: <<colour muted-foreground>>; -} - -svg.tc-image-button { - padding: 0px 1px 1px 0px; -} - -.tc-icon-wrapper > svg { - width: 1em; - height: 1em; -} - -kbd { - display: inline-block; - padding: 3px 5px; - font-size: 0.8em; - line-height: 1.2; - color: <<colour foreground>>; - vertical-align: middle; - background-color: <<colour background>>; - border: solid 1px <<colour muted-foreground>>; - border-bottom-color: <<colour muted-foreground>>; - border-radius: 3px; - box-shadow: inset 0 -1px 0 <<colour muted-foreground>>; -} - -/* -Markdown likes putting code elements inside pre elements -*/ -pre > code { - padding: 0; - border: none; - background-color: inherit; - color: inherit; -} - -table { - border: 1px solid <<colour table-border>>; - width: auto; - max-width: 100%; - caption-side: bottom; - margin-top: 1em; - margin-bottom: 1em; - /* next 2 elements needed, since normalize 8.0.1 */ - border-collapse: collapse; - border-spacing: 0; -} - -table th, table td { - padding: 0 7px 0 7px; - border-top: 1px solid <<colour table-border>>; - border-left: 1px solid <<colour table-border>>; -} - -table thead tr td, table th { - background-color: <<colour table-header-background>>; - font-weight: bold; -} - -table tfoot tr td { - background-color: <<colour table-footer-background>>; -} - -.tc-csv-table { - white-space: nowrap; -} - -.tc-tiddler-frame img, -.tc-tiddler-frame svg, -.tc-tiddler-frame canvas, -.tc-tiddler-frame embed, -.tc-tiddler-frame iframe { - max-width: 100%; -} - -.tc-tiddler-body > embed, -.tc-tiddler-body > iframe { - width: 100%; - height: 600px; -} - -/* -** Links -*/ - -button.tc-tiddlylink, -a.tc-tiddlylink { - text-decoration: none; - font-weight: 500; - color: <<colour tiddler-link-foreground>>; - -webkit-user-select: inherit; /* Otherwise the draggable attribute makes links impossible to select */ -} - -.tc-sidebar-lists a.tc-tiddlylink { - color: <<colour sidebar-tiddler-link-foreground>>; -} - -.tc-sidebar-lists a.tc-tiddlylink:hover { - color: <<colour sidebar-tiddler-link-foreground-hover>>; -} - -button.tc-tiddlylink:hover, -a.tc-tiddlylink:hover { - text-decoration: underline; -} - -a.tc-tiddlylink-resolves { -} - -a.tc-tiddlylink-shadow { - font-weight: bold; -} - -a.tc-tiddlylink-shadow.tc-tiddlylink-resolves { - font-weight: normal; -} - -a.tc-tiddlylink-missing { - font-style: italic; -} - -a.tc-tiddlylink-external { - text-decoration: underline; - color: <<colour external-link-foreground>>; - background-color: <<colour external-link-background>>; -} - -a.tc-tiddlylink-external:visited { - color: <<colour external-link-foreground-visited>>; - background-color: <<colour external-link-background-visited>>; -} - -a.tc-tiddlylink-external:hover { - color: <<colour external-link-foreground-hover>>; - background-color: <<colour external-link-background-hover>>; -} - -/* -** Drag and drop styles -*/ - -.tc-tiddler-dragger { - position: relative; - z-index: -10000; -} - -.tc-tiddler-dragger-inner { - position: absolute; - top: -1000px; - left: -1000px; - display: inline-block; - padding: 8px 20px; - font-size: 16.9px; - font-weight: bold; - line-height: 20px; - color: <<colour dragger-foreground>>; - text-shadow: 0 1px 0 rgba(0, 0, 0, 1); - white-space: nowrap; - vertical-align: baseline; - background-color: <<colour dragger-background>>; - border-radius: 20px; -} - -.tc-tiddler-dragger-cover { - position: absolute; - background-color: <<colour page-background>>; -} - -.tc-dropzone { - position: relative; -} - -.tc-dropzone.tc-dragover:before { - z-index: 10000; - display: block; - position: fixed; - top: 0; - left: 0; - right: 0; - background: <<colour dropzone-background>>; - text-align: center; - content: "<<lingo DropMessage>>"; -} - -.tc-droppable > .tc-droppable-placeholder { - display: none; -} - -.tc-droppable.tc-dragover > .tc-droppable-placeholder { - display: block; - border: 2px dashed <<colour dropzone-background>>; -} - -.tc-draggable { - cursor: move; -} - -.tc-sidebar-tab-open .tc-droppable-placeholder, .tc-tagged-draggable-list .tc-droppable-placeholder, -.tc-links-draggable-list .tc-droppable-placeholder { - line-height: 2em; - height: 2em; -} - -.tc-sidebar-tab-open-item { - position: relative; -} - -.tc-sidebar-tab-open .tc-btn-invisible.tc-btn-mini svg { - font-size: 0.7em; - fill: <<colour muted-foreground>>; -} - -/* -** Plugin reload warning -*/ - -.tc-plugin-reload-warning { - z-index: 1000; - display: block; - position: fixed; - top: 0; - left: 0; - right: 0; - background: <<colour alert-background>>; - text-align: center; -} - -/* -** Buttons -*/ - -button svg, button img, label svg, label img { - vertical-align: middle; -} - -.tc-btn-invisible { - padding: 0; - margin: 0; - background: none; - border: none; - cursor: pointer; - color: <<colour foreground>>; -} - -.tc-btn-boxed { - font-size: 0.6em; - padding: 0.2em; - margin: 1px; - background: none; - border: 1px solid <<colour tiddler-controls-foreground>>; - border-radius: 0.25em; -} - -html body.tc-body .tc-btn-boxed svg { - font-size: 1.6666em; -} - -.tc-btn-boxed:hover { - background: <<colour muted-foreground>>; - color: <<colour background>>; -} - -html body.tc-body .tc-btn-boxed:hover svg { - fill: <<colour background>>; -} - -.tc-btn-rounded { - font-size: 0.5em; - line-height: 2; - padding: 0em 0.3em 0.2em 0.4em; - margin: 1px; - border: 1px solid <<colour muted-foreground>>; - background: <<colour muted-foreground>>; - color: <<colour background>>; - border-radius: 2em; -} - -html body.tc-body .tc-btn-rounded svg { - font-size: 1.6666em; - fill: <<colour background>>; -} - -.tc-btn-rounded:hover { - border: 1px solid <<colour muted-foreground>>; - background: <<colour background>>; - color: <<colour muted-foreground>>; -} - -html body.tc-body .tc-btn-rounded:hover svg { - fill: <<colour muted-foreground>>; -} - -.tc-btn-icon svg { - height: 1em; - width: 1em; - fill: <<colour muted-foreground>>; -} - -.tc-btn-text { - padding: 0; - margin: 0; -} - -/* used for documentation "fake" buttons */ -.tc-btn-standard { - line-height: 1.8; - color: #667; - background-color: #e0e0e0; - border: 1px solid #888; - padding: 2px 1px 2px 1px; - margin: 1px 4px 1px 4px; -} - -.tc-btn-big-green { - display: inline-block; - padding: 8px; - margin: 4px 8px 4px 8px; - background: <<colour download-background>>; - color: <<colour download-foreground>>; - fill: <<colour download-foreground>>; - border: none; - border-radius: 2px; - font-size: 1.2em; - line-height: 1.4em; - text-decoration: none; -} - -.tc-btn-big-green svg, -.tc-btn-big-green img { - height: 2em; - width: 2em; - vertical-align: middle; - fill: <<colour download-foreground>>; -} - -.tc-primary-btn { - background: <<colour primary>>; -} - -.tc-sidebar-lists input { - color: <<colour foreground>>; -} - -.tc-sidebar-lists button { - color: <<colour sidebar-button-foreground>>; - fill: <<colour sidebar-button-foreground>>; -} - -.tc-sidebar-lists button.tc-btn-mini { - color: <<colour sidebar-muted-foreground>>; -} - -.tc-sidebar-lists button.tc-btn-mini:hover { - color: <<colour sidebar-muted-foreground-hover>>; -} - -button svg.tc-image-button, button .tc-image-button img { - height: 1em; - width: 1em; -} - -.tc-unfold-banner { - position: absolute; - padding: 0; - margin: 0; - background: none; - border: none; - width: 100%; - width: calc(100% + 2px); - margin-left: -43px; - text-align: center; - border-top: 2px solid <<colour tiddler-info-background>>; - margin-top: 4px; -} - -.tc-unfold-banner:hover { - background: <<colour tiddler-info-background>>; - border-top: 2px solid <<colour tiddler-info-border>>; -} - -.tc-unfold-banner svg, .tc-fold-banner svg { - height: 0.75em; - fill: <<colour tiddler-controls-foreground>>; -} - -.tc-unfold-banner:hover svg, .tc-fold-banner:hover svg { - fill: <<colour tiddler-controls-foreground-hover>>; -} - -.tc-fold-banner { - position: absolute; - padding: 0; - margin: 0; - background: none; - border: none; - width: 23px; - text-align: center; - margin-left: -35px; - top: 6px; - bottom: 6px; -} - -.tc-fold-banner:hover { - background: <<colour tiddler-info-background>>; -} - -@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) { - - .tc-unfold-banner { - position: static; - width: calc(100% + 59px); - } - - .tc-fold-banner { - width: 16px; - margin-left: -16px; - font-size: 0.75em; - } - -} - -/* -** Tags and missing tiddlers -*/ - -.tc-tag-list-item { - position: relative; - display: inline-block; - margin-right: 7px; -} - -.tc-tags-wrapper { - margin: 4px 0 14px 0; -} - -.tc-missing-tiddler-label { - font-style: italic; - font-weight: normal; - display: inline-block; - font-size: 11.844px; - line-height: 14px; - white-space: nowrap; - vertical-align: baseline; -} - -button.tc-tag-label, span.tc-tag-label { - display: inline-block; - padding: 0.16em 0.7em; - font-size: 0.9em; - font-weight: 400; - line-height: 1.2em; - color: <<colour tag-foreground>>; - white-space: nowrap; - vertical-align: baseline; - background-color: <<colour tag-background>>; - border-radius: 1em; -} - -.tc-sidebar-scrollable .tc-tag-label { - text-shadow: none; -} - -.tc-untagged-separator { - width: 10em; - left: 0; - margin-left: 0; - border: 0; - height: 1px; - background: <<colour tab-divider>>; -} - -button.tc-untagged-label { - background-color: <<colour untagged-background>>; -} - -.tc-tag-label svg, .tc-tag-label img { - height: 1em; - width: 1em; - margin-right: 3px; - margin-bottom: 1px; - vertical-align: text-bottom; -} - -.tc-edit-tags button.tc-remove-tag-button svg { - font-size: 0.7em; - vertical-align: middle; -} - -.tc-tag-manager-table .tc-tag-label { - white-space: normal; -} - -.tc-tag-manager-tag { - width: 100%; -} - -button.tc-btn-invisible.tc-remove-tag-button { - outline: none; -} - -/* -** Page layout -*/ - -.tc-topbar { - position: fixed; - z-index: 1200; -} - -.tc-topbar-left { - left: 29px; - top: 5px; -} - -.tc-topbar-right { - top: 5px; - right: 29px; -} - -.tc-topbar button { - padding: 8px; -} - -.tc-topbar svg { - fill: <<colour muted-foreground>>; -} - -.tc-topbar button:hover svg { - fill: <<colour foreground>>; -} - -.tc-sidebar-header { - color: <<colour sidebar-foreground>>; - fill: <<colour sidebar-foreground>>; -} - -.tc-sidebar-header .tc-title a.tc-tiddlylink-resolves { - font-weight: 300; -} - -.tc-sidebar-header .tc-sidebar-lists p { - margin-top: 3px; - margin-bottom: 3px; -} - -.tc-sidebar-header .tc-missing-tiddler-label { - color: <<colour sidebar-foreground>>; -} - -.tc-advanced-search input { - width: 60%; -} - -.tc-search a svg { - width: 1.2em; - height: 1.2em; - vertical-align: middle; -} - -.tc-page-controls { - margin-top: 14px; - font-size: 1.5em; -} - -.tc-page-controls .tc-drop-down { - font-size: 1rem; -} - -.tc-page-controls button { - margin-right: 0.5em; -} - -.tc-page-controls a.tc-tiddlylink:hover { - text-decoration: none; -} - -.tc-page-controls img { - width: 1em; -} - -.tc-page-controls svg { - fill: <<colour sidebar-controls-foreground>>; -} - -.tc-page-controls button:hover svg, .tc-page-controls a:hover svg { - fill: <<colour sidebar-controls-foreground-hover>>; -} - -.tc-menu-list-item { - white-space: nowrap; -} - -.tc-menu-list-count { - font-weight: bold; -} - -.tc-menu-list-subitem { - padding-left: 7px; -} - -.tc-story-river { - position: relative; -} - -@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) { - - .tc-sidebar-header { - padding: 14px; - min-height: 32px; - margin-top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}}; - } - - .tc-story-river { - position: relative; - padding: 0; - } -} - -@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) { - - .tc-message-box { - margin: 21px -21px 21px -21px; - } - - .tc-sidebar-scrollable { - position: fixed; - top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}}; - left: {{$:/themes/tiddlywiki/vanilla/metrics/storyright}}; - bottom: 0; - right: 0; - overflow-y: auto; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - margin: 0 0 0 -42px; - padding: 71px 0 28px 42px; - } - - html[dir="rtl"] .tc-sidebar-scrollable { - left: auto; - right: {{$:/themes/tiddlywiki/vanilla/metrics/storyright}}; - } - - .tc-story-river { - position: relative; - left: {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}; - top: {{$:/themes/tiddlywiki/vanilla/metrics/storytop}}; - width: 60%; - padding: 42px 42px 42px 42px; - } - -<<if-no-sidebar " - - .tc-story-river { - width: 60%; - } - -">> - -} - -@media print { - - body.tc-body { - background-color: transparent; - } - - .tc-sidebar-header, .tc-topbar { - display: none; - } - - .tc-story-river { - margin: 0; - padding: 0; - } - - .tc-story-river .tc-tiddler-frame { - margin: 0; - border: none; - padding: 0; - } -} - -/* -** Tiddler styles -*/ - -.tc-tiddler-frame { - position: relative; - margin-bottom: 28px; - background-color: <<colour tiddler-background>>; - border: 1px solid <<colour tiddler-border>>; -} - -{{$:/themes/tiddlywiki/vanilla/sticky}} - -.tc-tiddler-info { - padding: 14px 42px 14px 42px; - background-color: <<colour tiddler-info-background>>; - border-top: 1px solid <<colour tiddler-info-border>>; - border-bottom: 1px solid <<colour tiddler-info-border>>; -} - -.tc-tiddler-info p { - margin-top: 3px; - margin-bottom: 3px; -} - -.tc-tiddler-info .tc-tab-buttons button.tc-tab-selected { - background-color: <<colour tiddler-info-tab-background>>; - border-bottom: 1px solid <<colour tiddler-info-tab-background>>; -} - -.tc-view-field-table { - width: 100%; -} - -.tc-view-field-name { - width: 1%; /* Makes this column be as narrow as possible */ - text-align: right; - font-style: italic; - font-weight: 200; -} - -.tc-view-field-value { -} - -@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) { - .tc-tiddler-frame { - padding: 14px 14px 14px 14px; - } - - .tc-tiddler-info { - margin: 0 -14px 0 -14px; - } -} - -@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) { - .tc-tiddler-frame { - padding: 28px 42px 42px 42px; - width: {{$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth}}; - border-radius: 2px; - } - -<<if-no-sidebar " - - .tc-tiddler-frame { - width: 100%; - } - -">> - - .tc-tiddler-info { - margin: 0 -42px 0 -42px; - } -} - -.tc-site-title, -.tc-titlebar { - font-weight: 300; - font-size: 2.35em; - line-height: 1.2em; - color: <<colour tiddler-title-foreground>>; - margin: 0; -} - -.tc-site-title { - color: <<colour site-title-foreground>>; -} - -.tc-tiddler-title-icon { - vertical-align: middle; - margin-right: .1em; -} - -.tc-system-title-prefix { - color: <<colour muted-foreground>>; -} - -.tc-titlebar h2 { - font-size: 1em; - display: inline; -} - -.tc-titlebar img { - height: 1em; -} - -.tc-subtitle { - font-size: 0.9em; - color: <<colour tiddler-subtitle-foreground>>; - font-weight: 300; -} - -.tc-subtitle .tc-tiddlylink { - margin-right: .3em; -} - -.tc-tiddler-missing .tc-title { - font-style: italic; - font-weight: normal; -} - -.tc-tiddler-frame .tc-tiddler-controls { - float: right; -} - -.tc-tiddler-controls .tc-drop-down { - font-size: 0.6em; -} - -.tc-tiddler-controls .tc-drop-down .tc-drop-down { - font-size: 1em; -} - -.tc-tiddler-controls > span > button, -.tc-tiddler-controls > span > span > button, -.tc-tiddler-controls > span > span > span > button { - vertical-align: baseline; - margin-left:5px; -} - -.tc-tiddler-controls button svg, .tc-tiddler-controls button img, -.tc-search button svg, .tc-search a svg { - fill: <<colour tiddler-controls-foreground>>; -} - -.tc-tiddler-controls button svg, .tc-tiddler-controls button img { - height: 0.75em; -} - -.tc-search button svg, .tc-search a svg { - height: 1.2em; - width: 1.2em; - margin: 0 0.25em; -} - -.tc-tiddler-controls button.tc-selected svg, -.tc-page-controls button.tc-selected svg { - fill: <<colour tiddler-controls-foreground-selected>>; -} - -.tc-tiddler-controls button.tc-btn-invisible:hover svg, -.tc-search button:hover svg, .tc-search a:hover svg { - fill: <<colour tiddler-controls-foreground-hover>>; -} - -@media print { - .tc-tiddler-controls { - display: none; - } -} - -.tc-tiddler-help { /* Help prompts within tiddler template */ - color: <<colour muted-foreground>>; - margin-top: 14px; -} - -.tc-tiddler-help a.tc-tiddlylink { - color: <<colour very-muted-foreground>>; -} - -.tc-tiddler-frame .tc-edit-texteditor { - width: 100%; - margin: 4px 0 4px 0; -} - -.tc-tiddler-frame input.tc-edit-texteditor, -.tc-tiddler-frame textarea.tc-edit-texteditor, -.tc-tiddler-frame iframe.tc-edit-texteditor { - padding: 3px 3px 3px 3px; - border: 1px solid <<colour tiddler-editor-border>>; - background-color: <<colour tiddler-editor-background>>; - line-height: 1.3em; - -webkit-appearance: none; - font-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}}; -} - -.tc-tiddler-frame .tc-binary-warning { - width: 100%; - height: 5em; - text-align: center; - padding: 3em 3em 6em 3em; - background: <<colour alert-background>>; - border: 1px solid <<colour alert-border>>; -} - -canvas.tc-edit-bitmapeditor { - border: 6px solid <<colour tiddler-editor-border-image>>; - cursor: crosshair; - -moz-user-select: none; - -webkit-user-select: none; - -ms-user-select: none; - margin-top: 6px; - margin-bottom: 6px; -} - -.tc-edit-bitmapeditor-width { - display: block; -} - -.tc-edit-bitmapeditor-height { - display: block; -} - -.tc-tiddler-body { - clear: both; -} - -.tc-tiddler-frame .tc-tiddler-body { - font-size: {{$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize}}; - line-height: {{$:/themes/tiddlywiki/vanilla/metrics/bodylineheight}}; -} - -.tc-titlebar, .tc-tiddler-edit-title { - overflow: hidden; /* https://github.com/Jermolene/TiddlyWiki5/issues/282 */ -} - -html body.tc-body.tc-single-tiddler-window { - margin: 1em; - background: <<colour tiddler-background>>; -} - -.tc-single-tiddler-window img, -.tc-single-tiddler-window svg, -.tc-single-tiddler-window canvas, -.tc-single-tiddler-window embed, -.tc-single-tiddler-window iframe { - max-width: 100%; -} - -/* -** Editor -*/ - -.tc-editor-toolbar { - margin-top: 8px; -} - -.tc-editor-toolbar button { - vertical-align: middle; - background-color: <<colour tiddler-controls-foreground>>; - color: <<colour tiddler-controls-foreground-selected>>; - fill: <<colour tiddler-controls-foreground-selected>>; - border-radius: 4px; - padding: 3px; - margin: 2px 0 2px 4px; -} - -.tc-editor-toolbar button.tc-text-editor-toolbar-item-adjunct { - margin-left: 1px; - width: 1em; - border-radius: 8px; -} - -.tc-editor-toolbar button.tc-text-editor-toolbar-item-start-group { - margin-left: 11px; -} - -.tc-editor-toolbar button.tc-selected { - background-color: <<colour primary>>; -} - -.tc-editor-toolbar button svg { - width: 1.6em; - height: 1.2em; -} - -.tc-editor-toolbar button:hover { - background-color: <<colour tiddler-controls-foreground-selected>>; - fill: <<colour background>>; - color: <<colour background>>; -} - -.tc-editor-toolbar .tc-text-editor-toolbar-more { - white-space: normal; -} - -.tc-editor-toolbar .tc-text-editor-toolbar-more button { - display: inline-block; - padding: 3px; - width: auto; -} - -.tc-editor-toolbar .tc-search-results { - padding: 0; -} - -/* -** Adjustments for fluid-fixed mode -*/ - -@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) { - -<<if-fluid-fixed text:""" - - .tc-story-river { - padding-right: 0; - position: relative; - width: 60%; - left: 0; - margin-left: {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}}; - margin-right: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}}; - } - - .tc-tiddler-frame { - width: 100%; - } - - .tc-sidebar-scrollable { - left: auto; - bottom: 0; - right: 0; - width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}}; - } - - body.tc-body .tc-storyview-zoomin-tiddler { - width: 100%; - width: calc(100% - 42px); - } - -""" hiddenSidebarText:""" - - .tc-story-river { - padding-right: 3em; - margin-right: 0; - } - - body.tc-body .tc-storyview-zoomin-tiddler { - width: 100%; - width: calc(100% - 84px); - } - -""">> - -} - -/* -** Toolbar buttons -*/ - -.tc-page-controls svg.tc-image-new-button { - fill: <<colour toolbar-new-button>>; -} - -.tc-page-controls svg.tc-image-options-button { - fill: <<colour toolbar-options-button>>; -} - -.tc-page-controls svg.tc-image-save-button { - fill: <<colour toolbar-save-button>>; -} - -.tc-tiddler-controls button svg.tc-image-info-button { - fill: <<colour toolbar-info-button>>; -} - -.tc-tiddler-controls button svg.tc-image-edit-button { - fill: <<colour toolbar-edit-button>>; -} - -.tc-tiddler-controls button svg.tc-image-close-button { - fill: <<colour toolbar-close-button>>; -} - -.tc-tiddler-controls button svg.tc-image-delete-button { - fill: <<colour toolbar-delete-button>>; -} - -.tc-tiddler-controls button svg.tc-image-cancel-button { - fill: <<colour toolbar-cancel-button>>; -} - -.tc-tiddler-controls button svg.tc-image-done-button { - fill: <<colour toolbar-done-button>>; -} - -/* -** Tiddler edit mode -*/ - -.tc-tiddler-edit-frame em.tc-edit { - color: <<colour muted-foreground>>; - font-style: normal; -} - -.tc-edit-type-dropdown a.tc-tiddlylink-missing { - font-style: normal; -} - -.tc-type-selector .tc-edit-typeeditor { - width: 20%; -} - -.tc-edit-tags { - border: 1px solid <<colour tiddler-editor-border>>; - padding: 4px 8px 4px 8px; -} - -.tc-edit-add-tag { - display: inline-block; -} - -.tc-edit-add-tag .tc-add-tag-name input { - width: 50%; -} - -.tc-edit-add-tag .tc-keyboard { - display:inline; -} - -.tc-edit-tags .tc-tag-label { - display: inline-block; -} - -.tc-edit-tags-list { - margin: 14px 0 14px 0; -} - -.tc-remove-tag-button { - padding-left: 4px; -} - -.tc-tiddler-preview { - overflow: auto; -} - -.tc-tiddler-preview-preview { - float: right; - width: 49%; - border: 1px solid <<colour tiddler-editor-border>>; - margin: 4px 0 3px 3px; - padding: 3px 3px 3px 3px; -} - -<<if-editor-height-fixed then:""" - -.tc-tiddler-preview-preview { - overflow-y: scroll; - height: {{$:/config/TextEditor/EditorHeight/Height}}; -} - -""">> - -.tc-tiddler-frame .tc-tiddler-preview .tc-edit-texteditor { - width: 49%; -} - -.tc-tiddler-frame .tc-tiddler-preview canvas.tc-edit-bitmapeditor { - max-width: 49%; -} - -.tc-edit-fields { - width: 100%; -} - - -.tc-edit-fields table, .tc-edit-fields tr, .tc-edit-fields td { - border: none; - padding: 4px; -} - -.tc-edit-fields > tbody > .tc-edit-field:nth-child(odd) { - background-color: <<colour tiddler-editor-fields-odd>>; -} - -.tc-edit-fields > tbody > .tc-edit-field:nth-child(even) { - background-color: <<colour tiddler-editor-fields-even>>; -} - -.tc-edit-field-name { - text-align: right; -} - -.tc-edit-field-value input { - width: 100%; -} - -.tc-edit-field-remove { -} - -.tc-edit-field-remove svg { - height: 1em; - width: 1em; - fill: <<colour muted-foreground>>; - vertical-align: middle; -} - -.tc-edit-field-add-name { - display: inline-block; - width: 15%; -} - -.tc-edit-field-add-value { - display: inline-block; - width: 40%; -} - -.tc-edit-field-add-button { - display: inline-block; - width: 10%; -} - -/* -** Storyview Classes -*/ - -.tc-viewswitcher .tc-image-button { - margin-right: .3em; -} - -.tc-storyview-zoomin-tiddler { - position: absolute; - display: block; - width: 100%; -} - -@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) { - - .tc-storyview-zoomin-tiddler { - width: calc(100% - 84px); - } - -} - -/* -** Dropdowns -*/ - -.tc-btn-dropdown { - text-align: left; -} - -.tc-btn-dropdown svg, .tc-btn-dropdown img { - height: 1em; - width: 1em; - fill: <<colour muted-foreground>>; -} - -.tc-drop-down-wrapper { - position: relative; -} - -.tc-drop-down { - min-width: 380px; - border: 1px solid <<colour dropdown-border>>; - background-color: <<colour dropdown-background>>; - padding: 7px 0 7px 0; - margin: 4px 0 0 0; - white-space: nowrap; - text-shadow: none; - line-height: 1.4; -} - -.tc-drop-down .tc-drop-down { - margin-left: 14px; -} - -.tc-drop-down button svg, .tc-drop-down a svg { - fill: <<colour foreground>>; -} - -.tc-drop-down button.tc-btn-invisible:hover svg { - fill: <<colour foreground>>; -} - -.tc-drop-down .tc-drop-down-info { - padding-left: 14px; -} - -.tc-drop-down p { - padding: 0 14px 0 14px; -} - -.tc-drop-down svg { - width: 1em; - height: 1em; -} - -.tc-drop-down img { - width: 1em; -} - -.tc-drop-down a, .tc-drop-down button { - display: block; - padding: 0 14px 0 14px; - width: 100%; - text-align: left; - color: <<colour foreground>>; - line-height: 1.4; -} - -.tc-drop-down .tc-tab-set .tc-tab-buttons button { - display: inline-block; - width: auto; - margin-bottom: 0px; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.tc-drop-down .tc-prompt { - padding: 0 14px; -} - -.tc-drop-down .tc-chooser { - border: none; -} - -.tc-drop-down .tc-chooser .tc-swatches-horiz { - font-size: 0.4em; - padding-left: 1.2em; -} - -.tc-drop-down .tc-file-input-wrapper { - width: 100%; -} - -.tc-drop-down .tc-file-input-wrapper button { - color: <<colour foreground>>; -} - -.tc-drop-down a:hover, .tc-drop-down button:hover, .tc-drop-down .tc-file-input-wrapper:hover button { - color: <<colour tiddler-link-background>>; - background-color: <<colour tiddler-link-foreground>>; - text-decoration: none; -} - -.tc-drop-down .tc-tab-buttons button { - background-color: <<colour dropdown-tab-background>>; -} - -.tc-drop-down .tc-tab-buttons button.tc-tab-selected { - background-color: <<colour dropdown-tab-background-selected>>; - border-bottom: 1px solid <<colour dropdown-tab-background-selected>>; -} - -.tc-drop-down-bullet { - display: inline-block; - width: 0.5em; -} - -.tc-drop-down .tc-tab-contents a { - padding: 0 0.5em 0 0.5em; -} - -.tc-block-dropdown-wrapper { - position: relative; -} - -.tc-block-dropdown { - position: absolute; - min-width: 220px; - border: 1px solid <<colour dropdown-border>>; - background-color: <<colour dropdown-background>>; - padding: 7px 0; - margin: 4px 0 0 0; - white-space: nowrap; - z-index: 1000; - text-shadow: none; -} - -.tc-block-dropdown.tc-search-drop-down { - margin-left: -12px; -} - -.tc-block-dropdown a { - display: block; - padding: 4px 14px 4px 14px; -} - -.tc-block-dropdown.tc-search-drop-down a { - display: block; - padding: 0px 10px 0px 10px; -} - -.tc-drop-down .tc-dropdown-item-plain, -.tc-block-dropdown .tc-dropdown-item-plain { - padding: 4px 14px 4px 7px; -} - -.tc-drop-down .tc-dropdown-item, -.tc-block-dropdown .tc-dropdown-item { - padding: 4px 14px 4px 7px; - color: <<colour muted-foreground>>; -} - -.tc-block-dropdown a:hover { - color: <<colour tiddler-link-background>>; - background-color: <<colour tiddler-link-foreground>>; - text-decoration: none; -} - -.tc-search-results { - padding: 0 7px 0 7px; -} - -.tc-image-chooser, .tc-colour-chooser { - white-space: normal; -} - -.tc-image-chooser a, -.tc-colour-chooser a { - display: inline-block; - vertical-align: top; - text-align: center; - position: relative; -} - -.tc-image-chooser a { - border: 1px solid <<colour muted-foreground>>; - padding: 2px; - margin: 2px; - width: 4em; - height: 4em; -} - -.tc-colour-chooser a { - padding: 3px; - width: 2em; - height: 2em; - vertical-align: middle; -} - -.tc-image-chooser a:hover, -.tc-colour-chooser a:hover { - background: <<colour primary>>; - padding: 0px; - border: 3px solid <<colour primary>>; -} - -.tc-image-chooser a svg, -.tc-image-chooser a img { - display: inline-block; - width: auto; - height: auto; - max-width: 3.5em; - max-height: 3.5em; - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; - margin: auto; -} - -/* -** Modals -*/ - -.tc-modal-wrapper { - position: fixed; - overflow: auto; - overflow-y: scroll; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 900; -} - -.tc-modal-backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1000; - background-color: <<colour modal-backdrop>>; -} - -.tc-modal { - z-index: 1100; - background-color: <<colour modal-background>>; - border: 1px solid <<colour modal-border>>; -} - -@media (max-width: 55em) { - .tc-modal { - position: fixed; - top: 1em; - left: 1em; - right: 1em; - } - - .tc-modal-body { - overflow-y: auto; - max-height: 400px; - max-height: 60vh; - } -} - -@media (min-width: 55em) { - .tc-modal { - position: fixed; - top: 2em; - left: 25%; - width: 50%; - } - - .tc-modal-body { - overflow-y: auto; - max-height: 400px; - max-height: 60vh; - } -} - -.tc-modal-header { - padding: 9px 15px; - border-bottom: 1px solid <<colour modal-header-border>>; -} - -.tc-modal-header h3 { - margin: 0; - line-height: 30px; -} - -.tc-modal-header img, .tc-modal-header svg { - width: 1em; - height: 1em; -} - -.tc-modal-body { - padding: 15px; -} - -.tc-modal-footer { - padding: 14px 15px 15px; - margin-bottom: 0; - text-align: right; - background-color: <<colour modal-footer-background>>; - border-top: 1px solid <<colour modal-footer-border>>; -} - -/* -** Notifications -*/ - -.tc-notification { - position: fixed; - top: 14px; - right: 42px; - z-index: 1300; - max-width: 280px; - padding: 0 14px 0 14px; - background-color: <<colour notification-background>>; - border: 1px solid <<colour notification-border>>; -} - -/* -** Tabs -*/ - -.tc-tab-set.tc-vertical { - display: -webkit-flex; - display: flex; -} - -.tc-tab-buttons { - font-size: 0.85em; - padding-top: 1em; - margin-bottom: -2px; -} - -.tc-tab-buttons.tc-vertical { - z-index: 100; - display: block; - padding-top: 14px; - vertical-align: top; - text-align: right; - margin-bottom: inherit; - margin-right: -1px; - max-width: 33%; - -webkit-flex: 0 0 auto; - flex: 0 0 auto; -} - -.tc-tab-buttons button.tc-tab-selected { - color: <<colour tab-foreground-selected>>; - background-color: <<colour tab-background-selected>>; - border-left: 1px solid <<colour tab-border-selected>>; - border-top: 1px solid <<colour tab-border-selected>>; - border-right: 1px solid <<colour tab-border-selected>>; -} - -.tc-tab-buttons button { - color: <<colour tab-foreground>>; - padding: 3px 5px 3px 5px; - margin-right: 0.3em; - font-weight: 300; - border: none; - background: inherit; - background-color: <<colour tab-background>>; - border-left: 1px solid <<colour tab-border>>; - border-top: 1px solid <<colour tab-border>>; - border-right: 1px solid <<colour tab-border>>; - border-top-left-radius: 2px; - border-top-right-radius: 2px; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.tc-tab-buttons.tc-vertical button { - display: block; - width: 100%; - margin-top: 3px; - margin-right: 0; - text-align: right; - background-color: <<colour tab-background>>; - border-left: 1px solid <<colour tab-border>>; - border-bottom: 1px solid <<colour tab-border>>; - border-right: none; - border-top-left-radius: 2px; - border-bottom-left-radius: 2px; - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.tc-tab-buttons.tc-vertical button.tc-tab-selected { - background-color: <<colour tab-background-selected>>; - border-right: 1px solid <<colour tab-background-selected>>; -} - -.tc-tab-divider { - border-top: 1px solid <<colour tab-divider>>; -} - -.tc-tab-divider.tc-vertical { - display: none; -} - -.tc-tab-content { - margin-top: 14px; -} - -.tc-tab-content.tc-vertical { - display: inline-block; - vertical-align: top; - padding-top: 0; - padding-left: 14px; - border-left: 1px solid <<colour tab-border>>; - -webkit-flex: 1 0 70%; - flex: 1 0 70%; - overflow: auto; -} - -.tc-sidebar-lists .tc-tab-buttons { - margin-bottom: -1px; -} - -.tc-sidebar-lists .tc-tab-buttons button.tc-tab-selected { - background-color: <<colour sidebar-tab-background-selected>>; - color: <<colour sidebar-tab-foreground-selected>>; - border-left: 1px solid <<colour sidebar-tab-border-selected>>; - border-top: 1px solid <<colour sidebar-tab-border-selected>>; - border-right: 1px solid <<colour sidebar-tab-border-selected>>; -} - -.tc-sidebar-lists .tc-tab-buttons button { - background-color: <<colour sidebar-tab-background>>; - color: <<colour sidebar-tab-foreground>>; - border-left: 1px solid <<colour sidebar-tab-border>>; - border-top: 1px solid <<colour sidebar-tab-border>>; - border-right: 1px solid <<colour sidebar-tab-border>>; -} - -.tc-sidebar-lists .tc-tab-divider { - border-top: 1px solid <<colour sidebar-tab-divider>>; -} - -.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button { - display: block; - width: 100%; - background-color: <<colour sidebar-tab-background>>; - border-top: none; - border-left: none; - border-bottom: none; - border-right: 1px solid #ccc; - margin-bottom: inherit; -} - -.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button.tc-tab-selected { - background-color: <<colour sidebar-tab-background-selected>>; - border: none; -} - -/* -** Manager -*/ - -.tc-manager-wrapper { - -} - -.tc-manager-controls { - -} - -.tc-manager-control { - margin: 0.5em 0; -} - -.tc-manager-list { - width: 100%; - border-top: 1px solid <<colour muted-foreground>>; - border-left: 1px solid <<colour muted-foreground>>; - border-right: 1px solid <<colour muted-foreground>>; -} - -.tc-manager-list-item { - -} - -.tc-manager-list-item-heading { - display: block; - width: 100%; - text-align: left; - border-bottom: 1px solid <<colour muted-foreground>>; - padding: 3px; -} - -.tc-manager-list-item-heading-selected { - font-weight: bold; - color: <<colour background>>; - fill: <<colour background>>; - background-color: <<colour foreground>>; -} - -.tc-manager-list-item-heading:hover { - background: <<colour primary>>; - color: <<colour background>>; -} - -.tc-manager-list-item-content { - display: flex; -} - -.tc-manager-list-item-content-sidebar { - flex: 1 0; - background: <<colour tiddler-editor-background>>; - border-right: 0.5em solid <<colour muted-foreground>>; - border-bottom: 0.5em solid <<colour muted-foreground>>; - white-space: nowrap; -} - -.tc-manager-list-item-content-item-heading { - display: block; - width: 100%; - text-align: left; - background: <<colour muted-foreground>>; - text-transform: uppercase; - font-size: 0.6em; - font-weight: bold; - padding: 0.5em 0 0.5em 0; -} - -.tc-manager-list-item-content-item-body { - padding: 0 0.5em 0 0.5em; -} - -.tc-manager-list-item-content-item-body > pre { - margin: 0.5em 0 0.5em 0; - border: none; - background: inherit; -} - -.tc-manager-list-item-content-tiddler { - flex: 3 1; - border-left: 0.5em solid <<colour muted-foreground>>; - border-right: 0.5em solid <<colour muted-foreground>>; - border-bottom: 0.5em solid <<colour muted-foreground>>; -} - -.tc-manager-list-item-content-item-body > table { - border: none; - padding: 0; - margin: 0; -} - -.tc-manager-list-item-content-item-body > table td { - border: none; -} - -.tc-manager-icon-editor > button { - width: 100%; -} - -.tc-manager-icon-editor > button > svg, -.tc-manager-icon-editor > button > button { - width: 100%; - height: auto; -} - -/* -** Alerts -*/ - -.tc-alerts { - position: fixed; - top: 28px; - left: 0; - right: 0; - max-width: 50%; - z-index: 20000; -} - -.tc-alert { - position: relative; - margin: 14px; - padding: 7px; - border: 1px solid <<colour alert-border>>; - background-color: <<colour alert-background>>; -} - -.tc-alert-toolbar { - position: absolute; - top: 7px; - right: 7px; - line-height: 0; -} - -.tc-alert-toolbar svg { - fill: <<colour alert-muted-foreground>>; -} - -.tc-alert-subtitle { - color: <<colour alert-muted-foreground>>; - font-weight: bold; - font-size: 0.8em; - margin-bottom: 0.5em; -} - -.tc-alert-body > p { - margin: 0; -} - -.tc-alert-highlight { - color: <<colour alert-highlight>>; -} - -@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) { - - .tc-static-alert { - position: relative; - } - - .tc-static-alert-inner { - position: absolute; - z-index: 100; - } - -} - -.tc-static-alert-inner { - padding: 0 2px 2px 42px; - color: <<colour static-alert-foreground>>; -} - -/* -** Floating drafts list -*/ - -.tc-drafts-list { - z-index: 2000; - position: fixed; - font-size: 0.8em; - left: 0; - bottom: 0; -} - -.tc-drafts-list a { - margin: 0 0.5em; - padding: 4px 4px; - border-top-left-radius: 4px; - border-top-right-radius: 4px; - border: 1px solid <<colour background>>; - border-bottom-none; - background: <<colour dirty-indicator>>; - color: <<colour background>>; - fill: <<colour background>>; -} - -.tc-drafts-list a:hover { - text-decoration: none; - background: <<colour foreground>>; - color: <<colour background>>; - fill: <<colour background>>; -} - -.tc-drafts-list a svg { - width: 1em; - height: 1em; - vertical-align: text-bottom; -} - -/* -** Control panel -*/ - -.tc-control-panel td { - padding: 4px; -} - -.tc-control-panel table, .tc-control-panel table input, .tc-control-panel table textarea { - width: 100%; -} - -.tc-plugin-info { - display: flex; - border: 1px solid <<colour muted-foreground>>; - fill: <<colour muted-foreground>>; - background-color: <<colour background>>; - margin: 0.5em 0 0.5em 0; - padding: 4px; - align-items: center; -} - -.tc-plugin-info-sub-plugins .tc-plugin-info { - margin: 0.5em; - background: <<colour background>>; -} - -.tc-plugin-info-sub-plugin-indicator { - margin: -16px 1em 0 2em; -} - -.tc-plugin-info-sub-plugin-indicator button { - color: <<colour background>>; - background: <<colour foreground>>; - border-radius: 8px; - padding: 2px 7px; - font-size: 0.75em; -} - -.tc-plugin-info-sub-plugins .tc-plugin-info-dropdown { - margin-left: 1em; - margin-right: 1em; -} - -.tc-plugin-info-disabled { - background: -webkit-repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px); - background: repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px); -} - -.tc-plugin-info-disabled:hover { - background: -webkit-repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px); - background: repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px); -} - -a.tc-tiddlylink.tc-plugin-info:hover { - text-decoration: none; - background-color: <<colour primary>>; - color: <<colour background>>; - fill: <<colour foreground>>; -} - -a.tc-tiddlylink.tc-plugin-info:hover .tc-plugin-info > .tc-plugin-info-chunk > svg { - fill: <<colour foreground>>; -} - -.tc-plugin-info-chunk { - margin: 2px; -} - -.tc-plugin-info-chunk.tc-plugin-info-toggle { - flex-grow: 0; - flex-shrink: 0; - line-height: 1; -} - -.tc-plugin-info-chunk.tc-plugin-info-icon { - flex-grow: 0; - flex-shrink: 0; - line-height: 1; -} - -.tc-plugin-info-chunk.tc-plugin-info-description { - flex-grow: 1; -} - -.tc-plugin-info-chunk.tc-plugin-info-buttons { - font-size: 0.8em; - line-height: 1.2; - flex-grow: 0; - flex-shrink: 0; - text-align: right; -} - -.tc-plugin-info-chunk.tc-plugin-info-description h1 { - font-size: 1em; - line-height: 1.2; - margin: 2px 0 2px 0; -} - -.tc-plugin-info-chunk.tc-plugin-info-description h2 { - font-size: 0.8em; - line-height: 1.2; - margin: 2px 0 2px 0; -} - -.tc-plugin-info-chunk.tc-plugin-info-description div { - font-size: 0.7em; - line-height: 1.2; - margin: 2px 0 2px 0; -} - -.tc-plugin-info-chunk.tc-plugin-info-toggle img, .tc-plugin-info-chunk.tc-plugin-info-toggle svg { - width: 1em; - height: 1em; -} - -.tc-plugin-info-chunk.tc-plugin-info-icon img, .tc-plugin-info-chunk.tc-plugin-info-icon svg { - width: 2em; - height: 2em; -} - -.tc-plugin-info-dropdown { - border: 1px solid <<colour muted-foreground>>; - background: <<colour background>>; - margin-top: -8px; -} - -.tc-plugin-info-dropdown-message { - background: <<colour message-background>>; - padding: 0.5em 1em 0.5em 1em; - font-weight: bold; - font-size: 0.8em; -} - -.tc-plugin-info-dropdown-body { - padding: 1em 1em 0 1em; - background: <<colour background>>; -} - -.tc-plugin-info-sub-plugins { - padding: 0.5em; - margin: 0 1em 1em 1em; - background: <<colour notification-background>>; -} - -.tc-install-plugin { - font-weight: bold; - background: green; - color: white; - fill: white; - border-radius: 4px; - padding: 3px; -} - -.tc-install-plugin.tc-reinstall-downgrade { - background: red; -} - -.tc-install-plugin.tc-reinstall { - background: blue; -} - -.tc-install-plugin.tc-reinstall-upgrade { - background: orange; -} - -.tc-check-list { - line-height: 2em; -} - -.tc-check-list .tc-image-button { - height: 1.5em; -} - -/* -** Message boxes -*/ - -.tc-message-box { - border: 1px solid <<colour message-border>>; - background: <<colour message-background>>; - padding: 0px 21px 0px 21px; - font-size: 12px; - line-height: 18px; - color: <<colour message-foreground>>; -} - -.tc-message-box svg { - width: 1em; - height: 1em; - vertical-align: text-bottom; -} - -/* -** Pictures -*/ - -.tc-bordered-image { - border: 1px solid <<colour muted-foreground>>; - padding: 5px; - margin: 5px; -} - -/* -** Floats -*/ - -.tc-float-right { - float: right; -} - -/* -** Chooser -*/ - -.tc-chooser { - border-right: 1px solid <<colour table-header-background>>; - border-left: 1px solid <<colour table-header-background>>; -} - - -.tc-chooser-item { - border-bottom: 1px solid <<colour table-header-background>>; - border-top: 1px solid <<colour table-header-background>>; - padding: 2px 4px 2px 14px; -} - -.tc-drop-down .tc-chooser-item { - padding: 2px; -} - -.tc-chosen, -.tc-chooser-item:hover { - background-color: <<colour table-header-background>>; - border-color: <<colour table-footer-background>>; -} - -.tc-chosen .tc-tiddlylink { - cursor:default; -} - -.tc-chooser-item .tc-tiddlylink { - display: block; - text-decoration: none; - background-color: transparent; -} - -.tc-chooser-item:hover .tc-tiddlylink:hover { - text-decoration: none; -} - -.tc-drop-down .tc-chosen .tc-tiddlylink, -.tc-drop-down .tc-chooser-item .tc-tiddlylink:hover { - color: <<colour foreground>>; -} - -.tc-chosen > .tc-tiddlylink:before { - margin-left: -10px; - position: relative; - content: "» "; -} - -.tc-chooser-item svg, -.tc-chooser-item img{ - width: 1em; - height: 1em; - vertical-align: middle; -} - -.tc-language-chooser .tc-image-button img { - width: 2em; - vertical-align: -0.15em; -} - -/* -** Palette swatches -*/ - -.tc-swatches-horiz { -} - -.tc-swatches-horiz .tc-swatch { - display: inline-block; -} - -.tc-swatch { - width: 2em; - height: 2em; - margin: 0.4em; - border: 1px solid #888; -} - -input.tc-palette-manager-colour-input { - width: 100%; - padding: 0; -} - -/* -** Table of contents -*/ - -.tc-sidebar-lists .tc-table-of-contents { - white-space: nowrap; -} - -.tc-table-of-contents button { - color: <<colour sidebar-foreground>>; -} - -.tc-table-of-contents svg { - width: 0.7em; - height: 0.7em; - vertical-align: middle; - fill: <<colour sidebar-foreground>>; -} - -.tc-table-of-contents ol { - list-style-type: none; - padding-left: 0; -} - -.tc-table-of-contents ol ol { - padding-left: 1em; -} - -.tc-table-of-contents li { - font-size: 1.0em; - font-weight: bold; -} - -.tc-table-of-contents li a { - font-weight: bold; -} - -.tc-table-of-contents li li { - font-size: 0.95em; - font-weight: normal; - line-height: 1.4; -} - -.tc-table-of-contents li li a { - font-weight: normal; -} - -.tc-table-of-contents li li li { - font-size: 0.95em; - font-weight: 200; - line-height: 1.5; -} - -.tc-table-of-contents li li li li { - font-size: 0.95em; - font-weight: 200; -} - -.tc-tabbed-table-of-contents { - display: -webkit-flex; - display: flex; -} - -.tc-tabbed-table-of-contents .tc-table-of-contents { - z-index: 100; - display: inline-block; - padding-left: 1em; - max-width: 50%; - -webkit-flex: 0 0 auto; - flex: 0 0 auto; - background: <<colour tab-background>>; - border-left: 1px solid <<colour tab-border>>; - border-top: 1px solid <<colour tab-border>>; - border-bottom: 1px solid <<colour tab-border>>; -} - -.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a, -.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a { - display: block; - padding: 0.12em 1em 0.12em 0.25em; -} - -.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a { - border-top: 1px solid <<colour tab-background>>; - border-left: 1px solid <<colour tab-background>>; - border-bottom: 1px solid <<colour tab-background>>; -} - -.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a:hover { - text-decoration: none; - border-top: 1px solid <<colour tab-border>>; - border-left: 1px solid <<colour tab-border>>; - border-bottom: 1px solid <<colour tab-border>>; - background: <<colour tab-border>>; -} - -.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a { - border-top: 1px solid <<colour tab-border>>; - border-left: 1px solid <<colour tab-border>>; - border-bottom: 1px solid <<colour tab-border>>; - background: <<colour background>>; - margin-right: -1px; -} - -.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a:hover { - text-decoration: none; -} - -.tc-tabbed-table-of-contents .tc-tabbed-table-of-contents-content { - display: inline-block; - vertical-align: top; - padding-left: 1.5em; - padding-right: 1.5em; - border: 1px solid <<colour tab-border>>; - -webkit-flex: 1 0 50%; - flex: 1 0 50%; -} - -/* -** Dirty indicator -*/ - -body.tc-dirty span.tc-dirty-indicator, body.tc-dirty span.tc-dirty-indicator svg { - fill: <<colour dirty-indicator>>; - color: <<colour dirty-indicator>>; -} - -/* -** File inputs -*/ - -.tc-file-input-wrapper { - position: relative; - overflow: hidden; - display: inline-block; - vertical-align: middle; -} - -.tc-file-input-wrapper input[type=file] { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - font-size: 999px; - max-width: 100%; - max-height: 100%; - filter: alpha(opacity=0); - opacity: 0; - outline: none; - background: white; - cursor: pointer; - display: inline-block; -} - -/* -** Thumbnail macros -*/ - -.tc-thumbnail-wrapper { - position: relative; - display: inline-block; - margin: 6px; - vertical-align: top; -} - -.tc-thumbnail-right-wrapper { - float:right; - margin: 0.5em 0 0.5em 0.5em; -} - -.tc-thumbnail-image { - text-align: center; - overflow: hidden; - border-radius: 3px; -} - -.tc-thumbnail-image svg, -.tc-thumbnail-image img { - filter: alpha(opacity=1); - opacity: 1; - min-width: 100%; - min-height: 100%; - max-width: 100%; -} - -.tc-thumbnail-wrapper:hover .tc-thumbnail-image svg, -.tc-thumbnail-wrapper:hover .tc-thumbnail-image img { - filter: alpha(opacity=0.8); - opacity: 0.8; -} +
15px-
22px-
14px-
20px-
960px-
350px-
20%-
350px-
200px-
60%-
100%-
pre-wrap-
fluid-fixed-
no-
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ +
fixed-
cover-
"SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace-
-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"-
<$reveal state="$:/themes/tiddlywiki/vanilla/options/stickytitles" type="match" text="yes"> -`` -.tc-tiddler-title { - position: -webkit-sticky; - position: -moz-sticky; - position: -o-sticky; - position: -ms-sticky; - position: sticky; - top: 0px; - background: ``<<colour tiddler-background>>``; - z-index: 500; -} +
\define lingo-base() $:/language/ThemeTweaks/ +
zoomin-
<<link "Home">>-
<center>[img height=150px [copincha-logo.png]]</center> +
iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAC7XpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHja7ZddsuMoDIXfWUUvAUkIieVgfqp6B7P8PmDHN7l9Z7q7Zp6mYspABBby+QRJwvjr+wzfcFHJHJKa55JzxJVKKlzR8XheZdcU06731R5j9GoP9wDDJGjl/Gj1ml9h148Hbj/Hqz34NcJ+OboGHg5lrczo9OcgYefTTulyVMbZycXtOdSDr1e5Ju5Qrns23v70OIfW5/BsSAaVumIhYR5CEnedzghk3SQVbUaNPuYR2ioqOezGrkggyMvrPdoYnwV6EfnRC5/Vv3ufxOd62eWTlvnSCJ0vB0i/Fn9L/LSw3BHx64DJw9UXIs/uc47z7WrKUDRfGRXDQ52t/uyQPcl+LKMYbkXfdikoHmtsQN5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nbCXxtziR9qpS9bz+2c9ba235vD124e5v9HIVvok3M5plkut/TDD8TO+2GERnFV0xl5MtitfzMxwHfWIbYskLHZ4zyFgutQ7Pd8guVPim7i7xZ8HrPOsdD/NoF1WeK7jK8DnHesyHNhK8nORa6Xefphm99Abbfw5Kd93mscRugc4LoM2mYi/ZDq9VuY0JMnLshIdGmbCLLtNWC9BTdqEmY95HJlvyrA9bvZYz9+lrEuLbft6W7w6B8mYdrtN2J3RvPYCj0q3idqRE9MyDHPr0Fd9v5iyPtNtHwy0a7UAnX/kygS7E9K/Q+5N+cwh+L1jMjuHdviKx/puIH3kkXurBqzlaEu3UKYDz+Bnb/16j8r2VE7ytwC/91jv6z0MXLtsn2iXqiS0YDLApmE8xv3ch5IdxHjg5sVZR5jauJQu0kcemephHShKxt24OR7OtqNl/3//cQH1v2eAzYpLcDsA/YnUQfTnTMcReEm/L9gczFnATsyNx7wZbzcuttq6VEbwZbgd4p0ptRAVnsaP4+Ew4DMFyjGTDx6Qujo4Pi21ENhpSFGOh3nh6uB4idSjuRkKbMbN8TCkRairg+Nm20aiSVmEm1vGjABldXVwXCQ1aU5agRccFOa+gGV2cXB8gXgyIouEtGHuVjcaY6sHc3krVJI4OO60bdMmNRHjgLuoH07opghkrefgeNC2xTiphajmNOBJinE8zHNj4kgOjqvI1wNABMpFfDCCysURyXfpAMZ/kbpdJKEDE0mlh/wcD/Oi4uDYY2XsUHcLV44FToxQrimBbzgIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEII8f/4X35x5Dc8Bu6cAAAAAElFTkSuQmCC-
<div style="font-size:0.7em;text-align:center;margin:3em auto;"> -<a href="https://t.me/copincha" class="tc-btn-big" > -{{$:/core/images/telegram}}</a> -<a href="https://chat.whatsapp.com/DcpEPTEFLs1L6Gel8MAtW0" class="tc-btn-big"> -{{$:/core/images/whatsapp}}</a> -<a href="https://facebook.com/copincha" class="tc-btn-big-"> -{{$:/core/images/facebook}}</a> -<a href="https://www.instagram.com/c_o_p_i_n_c_h_a/" class="tc-btn-big">{{$:/core/images/instagram}}</a> -<a href="https://twitter.com/copincha1" class="tc-btn-big"> -{{$:/core/images/twitter}}</a> -</div>-
\define lingo-base() $:/language/ControlPanel/Basics/ -Welcome to ~TiddlyWiki and the ~TiddlyWiki community +
Los hackerspaces son lugares físicos gestionados de forma comunitaria, donde las personas se reunen y comparten su interés por la tecnología, trabajan en sus proyectos y aprenden de los demás.-
Lorem ipsum dolor sit amet, consectetur <<link "Home">> adipiscing elit. <<link "A test">> nullam tristique iaculis convallis. Aliquam euismod libero id massa luctus, sed accumsan odio blandit. Duis faucibus condimentum placerat. Ut sed tellus id ex lobortis lacinia. Aenean accumsan dui nec bibendum convallis. Aliquam erat volutpat. Integer vitae nibh ac nibh ullamcorper ultricies at nec justo. Pellentesque arcu nisl, malesuada vel gravida ut, viverra ac mauris. Ut libero eros, convallis quis ultricies sit amet, vestibulum ut ex. Phasellus eget tempus diam, ac placerat eros. Maecenas at euismod erat. Phasellus a ex faucibus massa semper dignissim. --
<svg width="22pt" height="22pt" class="tc-image-repo tc-image-button" viewBox="0 0 12 16"><path style="fill:#000000;" d="M4 9H3V8h1v1zm0-3H3v1h1V6zm0-2H3v1h1V4zm0-2H3v1h1V2zm8-1v12c0 .55-.45 1-1 1H6v2l-1.5-1.5L3 16v-2H1c-.55 0-1-.45-1-1V1c0-.55.45-1 1-1h10c.55 0 1 .45 1 1zm-1 10H1v2h2v-1h3v1h5v-2zm0-10H2v9h9V1z"/></svg>-
<style> -body.tc-body { -<$list filter="[title{!!background-image}is[image]]"> -background: url( -<$list filter="[all[current]!has[_canonical_uri]]"> -"<$macrocall $name="datauri" title={{!!background-image}} />" -</$list> -<$list filter="[all[current]has[_canonical_uri]]"> -"<$view tiddler=<<currentTiddler>> field="_canonical_uri" />" -</$list> -) no-repeat center center fixed; -background-attachment: {{!!background-image}}; --webkit-background-size: cover; --moz-background-size: cover; --o-background-size: cover; -background-size: cover; -</$list> -} -</style>-
iuhlihliu-
1-
$:/core/ui/TopBar/menu-
{{Copinchapedia}} + ++
Copincha se vale de las colaboraciones voluntarias que hacen crecer el fondo de recursos omunitarios que compartimos. + +Este fondo se basa en construir conocimiento compartido y prototipos que nos ayudana a aprender mas rapido sobre una solucion. O materiales disponibles para el prototipado. + +Material para el prototipado + +Necesidades del espacio + +Reflejamos cada contribucion de forma publica y transparente [[aqui|Registro de contribuciones]] + +! Donacion monetaria +Resumen + +! Donación material +Resumen + +! Donación de tiempo +Resumen + +! Donación de trabajo +Resumen+
{{copincha - descripción}}+
{{Copinchapedia}}+
{{Projectify Intro}} + +<$link to="$:/plugins/nico/projectify/LICENSE"><<shield label:License status:MIT>></$link> +<$link to="$:/plugins/nico/projectify"><<shield label:Release status:{{$:/plugins/nico/projectify!!version}} colour:purple>></$link> +<a href="https://tiddlywiki.com"><<shield label:~TiddlyWiki status:5.1.22+ colour:blue>></a> + +{{Léeme}} ++
250+
yes+
$:/plugins/bimlas/locator/field-templates/text+
show+
show+
hide+
hide+
hide+
show+
show+
show+
true+
default+
true+
true+
default+
$:/Sidebar/Contenidos+
hide+
{ + "author": "comment", + "responder": "comment", + "developer": "comment" +}+
{ + "keywords": "comment" +}+
{ + "tags": "comment" +}+
\define searchTerm() [search:$(field)$<userInput>] + +<$list filter="[[$:/config/field-search/data/Any Field]indexes[]sortby{$:/config/field-search/sortby}]" variable=field emptyMessage="[[- configuration needed -|$:/plugins/wikilabs/field-search/readme]]"> +{{||$:/plugins/wikilabs/field-search/templates/Results}} +</$list>+
\define searchTerm() [search:$(field)$<userInput>] +\define openConfig() +<$button> + <$action-setfield $tiddler="$:/state/tab-1749438307" text="$:/plugins/wikilabs/field-search/CP/Settings/field-search"/> + <$action-navigate $to="$:/ControlPanel"/> +- configuration needed - +</$button> +\end + +<$list filter="[[$:/config/field-search/data/Authors]indexes[]sortby{$:/config/field-search/sortby}]" variable=field emptyMessage="<<openConfig>>"> +{{||$:/plugins/wikilabs/field-search/templates/Results}} +</$list> ++
\define searchTerm() [search:$(field)$<userInput>] +\define openConfig() +<$button> + <$action-setfield $tiddler="$:/state/tab-1749438307" text="$:/plugins/wikilabs/field-search/CP/Settings/field-search"/> + <$action-navigate $to="$:/ControlPanel"/> +- configuration needed - +</$button> +\end + +<$list filter="[[$:/config/field-search/data/Keywords]indexes[]sortby{$:/config/field-search/sortby}]" variable=field emptyMessage="<<openConfig>>"> +{{||$:/plugins/wikilabs/field-search/templates/Results}} +</$list> ++
\define searchTerm() [search:$(field)$<userInput>] +\define openConfig() +<$button> + <$action-setfield $tiddler="$:/state/tab-1749438307" text="$:/plugins/wikilabs/field-search/CP/Settings/field-search"/> + <$action-navigate $to="$:/ControlPanel"/> +- configuration needed - +</$button> +\end + +<$list filter="[[$:/config/field-search/data/Tags]indexes[]sortby{$:/config/field-search/sortby}]" variable=field emptyMessage="<<openConfig>>"> +{{||$:/plugins/wikilabs/field-search/templates/Results}} +</$list> ++
Kookma plugin library is a set of plugins developed by [[Mohammad|https://github.com/kookma]]. A good recommendation is to backup your data before installing any plugins. These plugins distributed under MIT license. + +To use in other wikis, drag and drop this link to those wikis: [[Kookma Plugin Library|$:/config/KookmaPluginLibrary]]+
above+
top+
The prerelease version of the official ~TiddlyWiki plugin library at tiddlywiki.com. Plugins, themes and language packs are maintained by the core team. ++
hide+
hide+
show+
hide+
show+
hide+
hide+
hide+
show+
show+
hide+
show+
hide+
hide+
hide+
hide+
hide+
hide+
no+
yes+
Scripts in Tiddlywiki <<version>>.html+
false+
yes+
reader+
hide+
show+
hide+
hide+
show+
show+
show+
hide+
hide+
hide+
hide+
~WikiLabs plugin library latest version! ++
enable+
{"tiddlers":{"$:/Acknowledgements":{"text":"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"},"$:/core/copyright.txt":{"type":"text/plain","text":"TiddlyWiki created by Jeremy Ruston, (jeremy [at] jermolene [dot] com)\n\nCopyright (c) 2004-2007, Jeremy Ruston\nCopyright (c) 2007-2021, 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."},"$:/core/icon":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\"><path d=\"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\" fill-rule=\"evenodd\"/></svg>"},"$:/core/images/add-comment":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-add-comment tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M56 56H36a8 8 0 100 16h20v20a8 8 0 1016 0V72h20a8 8 0 100-16H72V36a8 8 0 10-16 0v20zm-12.595 58.362c-6.683 7.659-20.297 12.903-36.006 12.903-2.196 0-4.35-.102-6.451-.3 9.652-3.836 17.356-12.24 21.01-22.874C8.516 94.28 0 79.734 0 63.5 0 33.953 28.206 10 63 10s63 23.953 63 53.5S97.794 117 63 117c-6.841 0-13.428-.926-19.595-2.638z\"/></svg>"},"$:/core/images/advanced-search-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-advanced-search-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M74.565 87.985A47.776 47.776 0 0148 96C21.49 96 0 74.51 0 48S21.49 0 48 0s48 21.49 48 48c0 9.854-2.97 19.015-8.062 26.636l34.347 34.347a9.443 9.443 0 010 13.36 9.446 9.446 0 01-13.36 0l-34.36-34.358zM48 80c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32z\"/><circle cx=\"48\" cy=\"48\" r=\"8\"/><circle cx=\"28\" cy=\"48\" r=\"8\"/><circle cx=\"68\" cy=\"48\" r=\"8\"/></g></svg>"},"$:/core/images/auto-height":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-auto-height tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M67.987 114.356l-.029-14.477a4 4 0 00-2.067-3.494l-15.966-8.813-1.933 7.502H79.9c4.222 0 5.564-5.693 1.786-7.58L49.797 71.572 48.01 79.15h31.982c4.217 0 5.564-5.682 1.795-7.575L49.805 55.517l-1.795 7.575h31.982c4.212 0 5.563-5.67 1.805-7.57l-16.034-8.105 2.195 3.57V35.614l9.214 9.213a4 4 0 105.656-5.656l-16-16a4 4 0 00-5.656 0l-16 16a4 4 0 105.656 5.656l9.13-9.13v15.288a4 4 0 002.195 3.57l16.035 8.106 1.804-7.57H48.01c-4.217 0-5.564 5.682-1.795 7.574l31.982 16.059 1.795-7.575H48.01c-4.222 0-5.564 5.693-1.787 7.579l31.89 15.923 1.787-7.578H47.992c-4.133 0-5.552 5.504-1.933 7.501l15.966 8.813-2.067-3.494.029 14.436-9.159-9.158a4 4 0 00-5.656 5.656l16 16a4 4 0 005.656 0l16-16a4 4 0 10-5.656-5.656l-9.185 9.184zM16 20h96a4 4 0 100-8H16a4 4 0 100 8z\"/></svg>"},"$:/core/images/blank":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-blank tc-image-button\" viewBox=\"0 0 128 128\"/>"},"$:/core/images/bold":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-bold tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M41.146 51.81V21.87h26.353c2.51 0 4.93.21 7.26.628 2.33.418 4.392 1.165 6.185 2.24 1.793 1.076 3.227 2.57 4.302 4.482 1.076 1.913 1.614 4.363 1.614 7.35 0 5.379-1.613 9.263-4.84 11.653-3.227 2.39-7.35 3.586-12.37 3.586H41.146zM13 0v128h62.028a65.45 65.45 0 0016.762-2.151c5.438-1.434 10.278-3.645 14.52-6.633 4.244-2.988 7.62-6.842 10.13-11.563 2.51-4.721 3.764-10.308 3.764-16.762 0-8.008-1.942-14.85-5.826-20.527-3.884-5.677-9.77-9.65-17.658-11.921 5.737-2.75 10.069-6.275 12.997-10.577 2.928-4.303 4.392-9.681 4.392-16.135 0-5.976-.986-10.995-2.958-15.059-1.972-4.063-4.75-7.32-8.336-9.77-3.585-2.45-7.888-4.213-12.907-5.289C84.888.538 79.33 0 73.235 0H13zm28.146 106.129V70.992H71.8c6.095 0 10.995 1.404 14.7 4.212 3.705 2.81 5.558 7.5 5.558 14.073 0 3.347-.568 6.096-1.703 8.247-1.136 2.151-2.66 3.854-4.572 5.11-1.912 1.254-4.123 2.15-6.633 2.688-2.51.538-5.139.807-7.888.807H41.146z\"/></svg>"},"$:/core/images/cancel-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-cancel-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M64 76.314l-16.97 16.97a7.999 7.999 0 01-11.314 0c-3.118-3.118-3.124-8.19 0-11.313L52.686 65l-16.97-16.97a7.999 7.999 0 010-11.314c3.118-3.118 8.19-3.124 11.313 0L64 53.686l16.97-16.97a7.999 7.999 0 0111.314 0c3.118 3.118 3.124 8.19 0 11.313L75.314 65l16.97 16.97a7.999 7.999 0 010 11.314c-3.118 3.118-8.19 3.124-11.313 0L64 76.314zM64 129c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 1 0 29.654 0 65c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 17 64 17 16 38.49 16 65s21.49 48 48 48z\"/></svg>"},"$:/core/images/chevron-down":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-chevron-down tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M64.053 85.456a7.889 7.889 0 01-5.6-2.316L2.473 27.16a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0L64.05 66.344l50.382-50.382a7.92 7.92 0 0111.195 0c3.085 3.086 3.092 8.105 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.317z\"/><path d=\"M64.053 124.069a7.889 7.889 0 01-5.6-2.316l-55.98-55.98a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0l50.382 50.382 50.382-50.382a7.92 7.92 0 0111.195 0c3.085 3.086 3.092 8.104 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.316z\"/></g></svg>"},"$:/core/images/chevron-left":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-chevron-left tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M47.544 64.053c0-2.027.77-4.054 2.316-5.6l55.98-55.98a7.92 7.92 0 0111.196 0c3.085 3.086 3.092 8.105 0 11.196L66.656 64.05l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.085-8.105 3.092-11.196 0l-55.98-55.98a7.892 7.892 0 01-2.317-5.595z\"/><path d=\"M8.931 64.053c0-2.027.77-4.054 2.316-5.6l55.98-55.98a7.92 7.92 0 0111.196 0c3.085 3.086 3.092 8.105 0 11.196L28.041 64.05l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.085-8.104 3.092-11.196 0l-55.98-55.98a7.892 7.892 0 01-2.316-5.595z\"/></g></svg>"},"$:/core/images/chevron-right":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-chevron-right tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M83.456 63.947c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196L64.344 63.95 13.963 13.567a7.92 7.92 0 010-11.195c3.086-3.085 8.105-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.317 5.595z\"/><path d=\"M122.069 63.947c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l50.382-50.382-50.382-50.382a7.92 7.92 0 010-11.195c3.086-3.085 8.104-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.316 5.595z\"/></g></svg>"},"$:/core/images/chevron-up":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-chevron-up tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M63.947 44.544c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.105 3.092-11.196 0L63.95 63.656l-50.382 50.382a7.92 7.92 0 01-11.195 0c-3.085-3.086-3.092-8.105 0-11.196l55.98-55.98a7.892 7.892 0 015.595-2.317z\"/><path d=\"M63.947 5.931c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.105 3.092-11.196 0L63.95 25.041 13.567 75.423a7.92 7.92 0 01-11.195 0c-3.085-3.086-3.092-8.104 0-11.196l55.98-55.98a7.892 7.892 0 015.595-2.316z\"/></g></svg>"},"$:/core/images/clone-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-clone-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M32.265 96v24.002A7.996 7.996 0 0040.263 128h79.74a7.996 7.996 0 007.997-7.998v-79.74a7.996 7.996 0 00-7.998-7.997H96V48h12.859a2.99 2.99 0 012.994 2.994v57.865a2.99 2.99 0 01-2.994 2.994H50.994A2.99 2.99 0 0148 108.859V96H32.265z\"/><path d=\"M40 56h-7.993C27.588 56 24 52.418 24 48c0-4.41 3.585-8 8.007-8H40v-7.993C40 27.588 43.582 24 48 24c4.41 0 8 3.585 8 8.007V40h7.993C68.412 40 72 43.582 72 48c0 4.41-3.585 8-8.007 8H56v7.993C56 68.412 52.418 72 48 72c-4.41 0-8-3.585-8-8.007V56zM8 0C3.58 0 0 3.588 0 8v80c0 4.419 3.588 8 8 8h80c4.419 0 8-3.588 8-8V8c0-4.419-3.588-8-8-8H8zM19 16A2.997 2.997 0 0016 19.001v57.998A2.997 2.997 0 0019.001 80h57.998A2.997 2.997 0 0080 76.999V19.001A2.997 2.997 0 0076.999 16H19.001z\"/></g></svg>"},"$:/core/images/close-all-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-close-all-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M28 111.314l-14.144 14.143a8 8 0 01-11.313-11.313L16.686 100 2.543 85.856a8 8 0 0111.313-11.313L28 88.686l14.144-14.143a8 8 0 0111.313 11.313L39.314 100l14.143 14.144a8 8 0 01-11.313 11.313L28 111.314zM28 39.314L13.856 53.457A8 8 0 012.543 42.144L16.686 28 2.543 13.856A8 8 0 0113.856 2.543L28 16.686 42.144 2.543a8 8 0 0111.313 11.313L39.314 28l14.143 14.144a8 8 0 01-11.313 11.313L28 39.314zM100 39.314L85.856 53.457a8 8 0 01-11.313-11.313L88.686 28 74.543 13.856A8 8 0 0185.856 2.543L100 16.686l14.144-14.143a8 8 0 0111.313 11.313L111.314 28l14.143 14.144a8 8 0 01-11.313 11.313L100 39.314zM100 111.314l-14.144 14.143a8 8 0 01-11.313-11.313L88.686 100 74.543 85.856a8 8 0 0111.313-11.313L100 88.686l14.144-14.143a8 8 0 0111.313 11.313L111.314 100l14.143 14.144a8 8 0 01-11.313 11.313L100 111.314z\"/></g></svg>"},"$:/core/images/close-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-close-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M65.086 75.41l-50.113 50.113c-3.121 3.121-8.192 3.126-11.316.002-3.118-3.118-3.123-8.19.002-11.316l50.114-50.114L3.659 13.982C.538 10.86.533 5.79 3.657 2.666c3.118-3.118 8.19-3.123 11.316.002l50.113 50.114L115.2 2.668c3.121-3.121 8.192-3.126 11.316-.002 3.118 3.118 3.123 8.19-.002 11.316L76.4 64.095l50.114 50.114c3.121 3.121 3.126 8.192.002 11.316-3.118 3.118-8.19 3.123-11.316-.002L65.086 75.409z\"/></svg>"},"$:/core/images/close-others-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-close-others-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48zm0-16c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32zm0-16c8.837 0 16-7.163 16-16s-7.163-16-16-16-16 7.163-16 16 7.163 16 16 16z\"/></svg>"},"$:/core/images/copy-clipboard":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-copy-clipboard tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"33\" height=\"8\" x=\"40\" y=\"40\" rx=\"4\"/><rect width=\"17\" height=\"8\" x=\"40\" y=\"82\" rx=\"4\"/><rect width=\"17\" height=\"8\" x=\"40\" y=\"54\" rx=\"4\"/><rect width=\"33\" height=\"8\" x=\"40\" y=\"96\" rx=\"4\"/><rect width=\"12\" height=\"8\" x=\"40\" y=\"68\" rx=\"4\"/><path d=\"M40 16H24c-4.419 0-8 3.59-8 8a8.031 8.031 0 000 .01v95.98a8.03 8.03 0 000 .01c0 4.41 3.581 8 8 8h80a7.975 7.975 0 005.652-2.34 7.958 7.958 0 002.348-5.652v-16.016c0-4.414-3.582-7.992-8-7.992-4.41 0-8 3.578-8 7.992V112H32V32h64v8.008C96 44.422 99.582 48 104 48c4.41 0 8-3.578 8-7.992V23.992a7.963 7.963 0 00-2.343-5.651A7.995 7.995 0 00104.001 16H88c0-4.41-3.585-8-8.007-8H48.007C43.588 8 40 11.582 40 16zm4-1.004A4.001 4.001 0 0148 11h32c2.21 0 4 1.797 4 3.996v4.008A4.001 4.001 0 0180 23H48c-2.21 0-4-1.797-4-3.996v-4.008z\"/><rect width=\"66\" height=\"16\" x=\"62\" y=\"64\" rx=\"8\"/><path d=\"M84.657 82.343l-16-16v11.314l16-16a8 8 0 10-11.314-11.314l-16 16a8 8 0 000 11.314l16 16a8 8 0 1011.314-11.314z\"/></g></svg>"},"$:/core/images/delete-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-delete-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\" transform=\"translate(12)\"><rect width=\"105\" height=\"16\" y=\"11\" rx=\"8\"/><rect width=\"48\" height=\"16\" x=\"28\" rx=\"8\"/><rect width=\"16\" height=\"112\" x=\"8\" y=\"16\" rx=\"8\"/><rect width=\"88\" height=\"16\" x=\"8\" y=\"112\" rx=\"8\"/><rect width=\"16\" height=\"112\" x=\"80\" y=\"16\" rx=\"8\"/><rect width=\"16\" height=\"112\" x=\"56\" y=\"16\" rx=\"8\"/><rect width=\"16\" height=\"112\" x=\"32\" y=\"16\" rx=\"8\"/></g></svg>"},"$:/core/images/done-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-done-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M42.26 111.032c-2.051.001-4.103-.78-5.668-2.345L2.662 74.758a8 8 0 01-.005-11.32c3.118-3.117 8.192-3.12 11.32.007l28.278 28.278 72.124-72.124a8.002 8.002 0 0111.314-.001c3.118 3.118 3.124 8.19 0 11.315l-77.78 77.78a7.978 7.978 0 01-5.658 2.343z\"/></svg>"},"$:/core/images/down-arrow":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-down-arrow tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M64.177 100.069a7.889 7.889 0 01-5.6-2.316l-55.98-55.98a7.92 7.92 0 010-11.196c3.086-3.085 8.105-3.092 11.196 0l50.382 50.382 50.382-50.382a7.92 7.92 0 0111.195 0c3.086 3.086 3.092 8.104 0 11.196l-55.98 55.98a7.892 7.892 0 01-5.595 2.316z\"/></svg>"},"$:/core/images/download-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-download-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48z\" class=\"tc-image-download-button-ring\"/><path d=\"M34.35 66.43l26.892 27.205a4.57 4.57 0 006.516 0L94.65 66.43a4.7 4.7 0 000-6.593 4.581 4.581 0 00-3.258-1.365h-8.46c-2.545 0-4.608-2.087-4.608-4.661v-15.15c0-2.575-2.063-4.662-4.608-4.662H55.284c-2.545 0-4.608 2.087-4.608 4.662v15.15c0 2.574-2.063 4.661-4.608 4.661h-8.46c-2.545 0-4.608 2.087-4.608 4.662a4.69 4.69 0 001.35 3.296z\"/></g></svg>"},"$:/core/images/edit-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-edit-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M95.627 10.059l-5.656 5.657 11.313 11.313 5.657-5.656-11.314-11.314zm5.657-5.657l1.966-1.966c3.123-3.122 8.194-3.129 11.319-.005 3.117 3.118 3.122 8.192-.005 11.32l-1.966 1.965-11.314-11.314zm-16.97 16.97l-60.25 60.25a8.12 8.12 0 00-.322.342c-.1.087-.198.179-.295.275-5.735 5.735-10.702 22.016-10.702 22.016s16.405-5.09 22.016-10.702c.095-.096.186-.193.272-.292a8.12 8.12 0 00.345-.325l60.25-60.25-11.314-11.313zM35.171 124.19c6.788-.577 13.898-2.272 23.689-5.348 1.825-.573 3.57-1.136 6.336-2.04 16-5.226 21.877-6.807 28.745-7.146 8.358-.413 13.854 2.13 17.58 8.699a4 4 0 006.959-3.946c-5.334-9.406-13.745-13.296-24.933-12.744-7.875.39-14.057 2.052-30.835 7.533-2.739.894-4.46 1.45-6.25 2.012-19.46 6.112-30.77 7.072-39.597 1.747a4 4 0 10-4.132 6.85c6.333 3.82 13.754 5.12 22.438 4.383z\"/></g></svg>"},"$:/core/images/erase":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-erase tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M60.087 127.996l63.015-63.015c6.535-6.535 6.528-17.115-.003-23.646L99.466 17.702c-6.539-6.538-17.117-6.532-23.646-.003L4.898 88.62c-6.535 6.534-6.528 17.115.003 23.646l15.73 15.73h39.456zm-34.95-7.313l-14.324-14.325c-3.267-3.268-3.268-8.564-.008-11.824L46.269 59.07l35.462 35.462-26.15 26.15H25.137z\"/></svg>"},"$:/core/images/excise":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-excise tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M56 107.314l-2.343 2.343a8 8 0 11-11.314-11.314l16-16a8 8 0 0111.314 0l16 16a8 8 0 11-11.314 11.314L72 107.314v14.284c0 3.536-3.582 6.402-8 6.402s-8-2.866-8-6.402v-14.284zM0 40.007C0 35.585 3.59 32 8 32c4.418 0 8 3.588 8 8.007v31.986C16 76.415 12.41 80 8 80c-4.418 0-8-3.588-8-8.007V40.007zm32 0C32 35.585 35.59 32 40 32c4.418 0 8 3.588 8 8.007v31.986C48 76.415 44.41 80 40 80c-4.418 0-8-3.588-8-8.007V40.007zm48 0C80 35.585 83.59 32 88 32c4.418 0 8 3.588 8 8.007v31.986C96 76.415 92.41 80 88 80c-4.418 0-8-3.588-8-8.007V40.007zm-24-32C56 3.585 59.59 0 64 0c4.418 0 8 3.588 8 8.007v31.986C72 44.415 68.41 48 64 48c-4.418 0-8-3.588-8-8.007V8.007zm56 32c0-4.422 3.59-8.007 8-8.007 4.418 0 8 3.588 8 8.007v31.986c0 4.422-3.59 8.007-8 8.007-4.418 0-8-3.588-8-8.007V40.007z\"/></svg>"},"$:/core/images/export-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-export-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M8.003 128H119.993a7.984 7.984 0 005.664-2.349v.007A7.975 7.975 0 00128 120V56c0-4.418-3.59-8-8-8-4.418 0-8 3.58-8 8v56H16V56c0-4.418-3.59-8-8-8-4.418 0-8 3.58-8 8v64c0 4.418 3.59 8 8 8h.003zm48.62-100.689l-8.965 8.966c-3.125 3.125-8.195 3.13-11.319.005-3.118-3.118-3.122-8.192.005-11.319L58.962 2.346A7.986 7.986 0 0164.625 0l-.006.002c2.05-.001 4.102.78 5.666 2.344l22.618 22.617c3.124 3.125 3.129 8.195.005 11.319-3.118 3.118-8.192 3.122-11.319-.005l-8.965-8.966v61.256c0 4.411-3.582 8-8 8-4.41 0-8-3.582-8-8V27.311z\"/></svg>"},"$:/core/images/file":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-file tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M111.968 30.5H112V120a8 8 0 01-8 8H24a8 8 0 01-8-8V8a8 8 0 018-8h57v.02a7.978 7.978 0 015.998 2.337l22.627 22.627a7.975 7.975 0 012.343 5.516zM81 8H24v112h80V30.5H89c-4.418 0-8-3.578-8-8V8z\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"36\" rx=\"4\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"52\" rx=\"4\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"68\" rx=\"4\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"84\" rx=\"4\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"100\" rx=\"4\"/><rect width=\"40\" height=\"8\" x=\"32\" y=\"20\" rx=\"4\"/></svg>"},"$:/core/images/fixed-height":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-fixed-height tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M60 35.657l-9.172 9.171a4 4 0 11-5.656-5.656l16-16a4 4 0 015.656 0l16 16a4 4 0 01-5.656 5.656L68 35.657v57.686l9.172-9.171a4 4 0 115.656 5.656l-16 16a4 4 0 01-5.656 0l-16-16a4 4 0 115.656-5.656L60 93.343V35.657zM16 116h96a4 4 0 100-8H16a4 4 0 100 8zm0-96h96a4 4 0 100-8H16a4 4 0 100 8z\"/></svg>"},"$:/core/images/fold-all-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-fold-all tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"128\" height=\"16\" rx=\"8\"/><rect width=\"128\" height=\"16\" y=\"64\" rx=\"8\"/><path d=\"M64.03 20.004c-2.05 0-4.102.78-5.667 2.344L35.746 44.966c-3.125 3.124-3.13 8.194-.005 11.318 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.965 16.966 16.965c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.191-.005-11.318L69.687 22.348a7.986 7.986 0 00-5.663-2.346zM64.03 85.002c-2.05-.001-4.102.78-5.667 2.344l-22.617 22.617c-3.125 3.125-3.13 8.195-.005 11.319 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.966 16.966 16.966c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.192-.005-11.319L69.687 87.346A7.986 7.986 0 0064.024 85z\"/></g></svg>"},"$:/core/images/fold-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-fold tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"128\" height=\"16\" rx=\"8\"/><path d=\"M64.03 25.004c-2.05 0-4.102.78-5.667 2.344L35.746 49.966c-3.125 3.124-3.13 8.194-.005 11.318 3.118 3.118 8.192 3.122 11.319-.005l16.965-16.965 16.966 16.965c3.124 3.125 8.194 3.13 11.318.005 3.118-3.118 3.122-8.191-.005-11.318L69.687 27.348a7.986 7.986 0 00-5.663-2.346zM64.005 67.379c-2.05 0-4.102.78-5.666 2.344L35.722 92.34c-3.125 3.125-3.13 8.195-.006 11.32 3.118 3.117 8.192 3.121 11.32-.006L64 86.69l16.965 16.965c3.125 3.125 8.195 3.13 11.319.005 3.118-3.118 3.122-8.192-.005-11.319L69.663 69.723A7.986 7.986 0 0064 67.377z\"/></g></svg>"},"$:/core/images/fold-others-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-fold-others tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"128\" height=\"16\" y=\"56.031\" rx=\"8\"/><path d=\"M86.632 79.976c-2.05 0-4.102.78-5.666 2.345L64 99.286 47.034 82.321a7.986 7.986 0 00-5.662-2.346l.005.001c-2.05 0-4.102.78-5.666 2.345l-22.618 22.617c-3.124 3.125-3.129 8.195-.005 11.319 3.118 3.118 8.192 3.122 11.319-.005l16.966-16.966 16.965 16.966a7.986 7.986 0 005.663 2.346l-.005-.002c2.05 0 4.102-.78 5.666-2.344l16.965-16.966 16.966 16.966c3.125 3.124 8.194 3.129 11.319.005 3.118-3.118 3.122-8.192-.005-11.319L92.289 82.321a7.986 7.986 0 00-5.663-2.346zM86.7 48.024c-2.05 0-4.102-.78-5.666-2.345L64.07 28.714 47.103 45.679a7.986 7.986 0 01-5.663 2.346l.005-.001c-2.05 0-4.101-.78-5.666-2.345L13.162 23.062c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L41.44 28.714l16.966-16.966a7.986 7.986 0 015.662-2.346l-.005.002c2.05 0 4.102.78 5.666 2.344l16.966 16.966 16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L92.358 45.679a7.986 7.986 0 01-5.663 2.346z\"/></g></svg>"},"$:/core/images/folder":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-folder tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M55.694 128H8C3.58 128 0 124.414 0 119.996V48.004C0 43.584 3.584 40 7.999 40H16v-8c0-4.418 3.578-8 8-8h32a8 8 0 018 8v8h40.001c4.418 0 7.999 3.586 7.999 8.004V59.83l-8-.082v-7.749A4 4 0 0099.997 48H56V36c0-2.21-1.793-4-4.004-4H28.004A4 4 0 0024 36v12H12.003A4 4 0 008 52v64a4 4 0 004.003 4h46.76l-3.069 8z\"/><path d=\"M23.873 55.5h96.003c4.417 0 7.004 4.053 5.774 9.063l-13.344 54.374c-1.228 5.005-5.808 9.063-10.223 9.063H6.08c-4.417 0-7.003-4.053-5.774-9.063L13.65 64.563c1.228-5.005 5.808-9.063 10.223-9.063zm1.78 8.5h87.994c2.211 0 3.504 2.093 2.891 4.666l-11.12 46.668c-.614 2.577-2.902 4.666-5.115 4.666H12.31c-2.211 0-3.504-2.093-2.891-4.666l11.12-46.668C21.152 66.09 23.44 64 25.653 64z\"/></g></svg>"},"$:/core/images/full-screen-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-full-screen-button tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M0 8a8 8 0 018-8h32a8 8 0 110 16H16v24a8 8 0 11-16 0V8zM128 120a8 8 0 01-8 8H88a8 8 0 110-16h24V88a8 8 0 1116 0v32zM8 128a8 8 0 01-8-8V88a8 8 0 1116 0v24h24a8 8 0 110 16H8zM120 0a8 8 0 018 8v32a8 8 0 11-16 0V16H88a8 8 0 110-16h32z\"/></svg>"},"$:/core/images/github":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-github tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M63.938 1.607c-35.336 0-63.994 28.69-63.994 64.084 0 28.312 18.336 52.329 43.768 60.802 3.202.59 4.37-1.388 4.37-3.088 0-1.518-.056-5.55-.087-10.897-17.802 3.871-21.558-8.591-21.558-8.591-2.911-7.404-7.108-9.375-7.108-9.375-5.81-3.973.44-3.895.44-3.895 6.424.453 9.803 6.606 9.803 6.606 5.709 9.791 14.981 6.963 18.627 5.322.582-4.138 2.236-6.963 4.063-8.564-14.211-1.617-29.153-7.117-29.153-31.672 0-6.995 2.495-12.718 6.589-17.195-.66-1.621-2.856-8.14.629-16.96 0 0 5.37-1.722 17.597 6.57 5.104-1.424 10.58-2.132 16.022-2.16 5.438.028 10.91.736 16.022 2.16 12.22-8.292 17.582-6.57 17.582-6.57 3.493 8.82 1.297 15.339.64 16.96 4.102 4.477 6.578 10.2 6.578 17.195 0 24.618-14.966 30.035-29.22 31.62 2.295 1.98 4.342 5.89 4.342 11.87 0 8.564-.079 15.476-.079 17.576 0 1.715 1.155 3.71 4.4 3.084 25.413-8.493 43.733-32.494 43.733-60.798 0-35.394-28.657-64.084-64.006-64.084\"/></svg>"},"$:/core/images/gitter":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-gitter tc-image-button\" viewBox=\"0 0 18 25\"><path d=\"M15 5h2v10h-2zM10 5h2v20h-2zM5 5h2v20H5zM0 0h2v15H0z\"/></svg>"},"$:/core/images/globe":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-globe tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M72.811 37.128v2.554c0 2.196.978 6.881 0 8.832-1.466 2.928-4.65 3.54-6.394 5.867-1.182 1.577-4.618 10.601-3.69 12.92 3.969 9.922 11.534 3.187 17.962 9.293.864.821 2.887 2.273 3.296 3.296 3.29 8.223-7.576 15.009 3.757 26.3 1.245 1.24 3.813-3.817 4.079-4.614.852-2.563 6.725-5.45 9.088-7.053 2.02-1.37 4.873-2.667 6.328-4.745 2.27-3.244 1.48-7.514 3.098-10.745 2.139-4.274 3.828-9.635 5.998-13.966 3.898-7.781 4.721 2.093 5.067 2.439.358.357 1.011 0 1.517 0 .094 0 1.447.099 1.516 0 .65-.935-1.043-17.92-1.318-19.297-1.404-7.01-6.944-15.781-11.865-20.5-6.274-6.015-7.09-16.197-18.259-14.954-.204.022-5.084 10.148-7.777 13.512-3.728 4.657-2.47-4.153-6.526-4.153-.081 0-1.183-.103-1.253 0-.586.88-1.44 3.896-2.306 4.417-.265.16-1.722-.239-1.846 0-2.243 4.3 8.256 2.212 5.792 7.952-2.352 5.481-6.328-1.997-6.328 8.56M44.467 7.01c9.685 6.13.682 12.198 2.694 16.215 1.655 3.303 4.241 5.395 1.714 9.814-2.063 3.608-6.87 3.966-9.623 6.723-3.04 3.044-5.464 8.94-6.79 12.911-1.617 4.843 14.547 6.866 12.063 11.008-1.386 2.311-6.746 1.466-8.437.198-1.165-.873-3.593-.546-4.417-1.78-2.613-3.915-2.26-8.023-3.625-12.128-.938-2.822-6.313-2.12-7.844-.593-.523.522-.33 1.792-.33 2.505 0 5.285 7.12 3.316 7.12 6.46 0 14.636 3.927 6.534 11.14 11.336 10.036 6.683 7.844 7.303 14.946 14.404 3.673 3.673 7.741 3.686 9.425 9.294 1.602 5.331-9.327 5.339-11.716 7.448-1.123.991-2.813 4.146-4.219 4.615-1.792.598-3.234.496-4.944 1.78-2.427 1.82-3.9 4.932-4.02 4.81-2.148-2.147-3.52-15.479-3.89-18.257-.588-4.42-5.59-5.54-6.986-9.03-1.57-3.927 1.524-9.52-1.129-13.761-6.52-10.424-11.821-14.5-15.35-26.292-.942-3.148 3.342-6.529 4.877-8.833 1.877-2.816 2.662-5.854 4.746-8.635C22.147 24.19 40.855 9.461 43.857 8.635l.61-1.625z\"/><path d=\"M64 126c34.242 0 62-27.758 62-62 0-34.242-27.758-62-62-62C29.758 2 2 29.758 2 64c0 34.242 27.758 62 62 62zm0-6c30.928 0 56-25.072 56-56S94.928 8 64 8 8 33.072 8 64s25.072 56 56 56z\"/></g></svg>"},"$:/core/images/heading-1":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-1 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M14 30h13.25v30.104H61.7V30h13.25v75.684H61.7V71.552H27.25v34.132H14V30zm70.335 13.78c2.544 0 5.017-.212 7.42-.636 2.403-.424 4.576-1.13 6.52-2.12 1.942-.99 3.603-2.261 4.981-3.816 1.378-1.555 2.28-3.463 2.703-5.724h9.858v74.2h-13.25V53.32H84.335v-9.54z\"/></svg>"},"$:/core/images/heading-2":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-2 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm119.52 75.684H74.85c.07-6.148 1.555-11.519 4.452-16.112 2.897-4.593 6.855-8.586 11.872-11.978a133.725 133.725 0 017.526-5.141 59.6 59.6 0 007.208-5.353c2.19-1.908 3.993-3.975 5.406-6.201 1.413-2.226 2.155-4.788 2.226-7.685 0-1.343-.159-2.774-.477-4.293a11.357 11.357 0 00-1.855-4.24c-.919-1.307-2.19-2.403-3.816-3.286-1.625-.883-3.745-1.325-6.36-1.325-2.403 0-4.399.477-5.989 1.431-1.59.954-2.862 2.261-3.816 3.922-.954 1.66-1.66 3.622-2.12 5.883-.46 2.261-.724 4.7-.795 7.314H76.23c0-4.099.548-7.897 1.643-11.395 1.095-3.498 2.738-6.519 4.93-9.063 2.19-2.544 4.857-4.54 8.002-5.989C93.95 30.724 97.606 30 101.775 30c4.523 0 8.303.742 11.342 2.226 3.039 1.484 5.494 3.357 7.367 5.618 1.873 2.261 3.198 4.717 3.975 7.367.777 2.65 1.166 5.176 1.166 7.579 0 2.968-.46 5.653-1.378 8.056a25.942 25.942 0 01-3.71 6.625 37.5 37.5 0 01-5.3 5.565 79.468 79.468 0 01-6.148 4.77 165.627 165.627 0 01-6.36 4.24 94.28 94.28 0 00-5.883 4.028c-1.802 1.343-3.374 2.738-4.717 4.187-1.343 1.449-2.261 2.986-2.756 4.611h36.146v10.812z\"/></svg>"},"$:/core/images/heading-3":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-3 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm88.885 32.224c1.979.07 3.957-.07 5.936-.424 1.979-.353 3.745-.972 5.3-1.855a10.365 10.365 0 003.763-3.657c.954-1.555 1.431-3.463 1.431-5.724 0-3.18-1.078-5.724-3.233-7.632-2.155-1.908-4.929-2.862-8.32-2.862-2.12 0-3.958.424-5.513 1.272a11.318 11.318 0 00-3.869 3.445c-1.025 1.449-1.784 3.074-2.279 4.876a18.335 18.335 0 00-.636 5.565H75.381c.141-3.604.813-6.943 2.014-10.017 1.201-3.074 2.844-5.742 4.93-8.003 2.084-2.261 4.61-4.028 7.578-5.3C92.871 30.636 96.228 30 99.973 30a29.2 29.2 0 018.533 1.272c2.791.848 5.3 2.085 7.526 3.71s4.01 3.692 5.353 6.201c1.343 2.509 2.014 5.388 2.014 8.639 0 3.745-.848 7.014-2.544 9.805-1.696 2.791-4.346 4.823-7.95 6.095v.212c4.24.848 7.544 2.95 9.911 6.307s3.551 7.438 3.551 12.243c0 3.533-.707 6.696-2.12 9.487a21.538 21.538 0 01-5.724 7.102c-2.403 1.943-5.194 3.445-8.374 4.505-3.18 1.06-6.537 1.59-10.07 1.59-4.31 0-8.074-.618-11.289-1.855s-5.9-2.986-8.056-5.247c-2.155-2.261-3.798-4.982-4.929-8.162-1.13-3.18-1.731-6.713-1.802-10.6h12.084c-.141 4.523.972 8.286 3.34 11.289 2.366 3.003 5.917 4.505 10.652 4.505 4.028 0 7.402-1.148 10.123-3.445 2.72-2.297 4.081-5.565 4.081-9.805 0-2.897-.565-5.194-1.696-6.89a10.97 10.97 0 00-4.452-3.869c-1.837-.883-3.904-1.431-6.2-1.643a58.067 58.067 0 00-7.05-.212v-9.01z\"/></svg>"},"$:/core/images/heading-4":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-4 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M8 30h13.25v30.104H55.7V30h13.25v75.684H55.7V71.552H21.25v34.132H8V30zm76.59 48.548h22.471V45.9h-.212L84.59 78.548zm43.46 9.54h-9.54v17.596H107.06V88.088h-31.8V76.11l31.8-44.626h11.448v47.064h9.54v9.54z\"/></svg>"},"$:/core/images/heading-5":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-5 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm77.755 1.484h38.372v10.812H92.765L88.95 61.164l.212.212c1.625-1.837 3.692-3.233 6.201-4.187 2.509-.954 5-1.431 7.473-1.431 3.675 0 6.96.618 9.858 1.855 2.897 1.237 5.335 2.968 7.314 5.194s3.48 4.858 4.505 7.897c1.025 3.039 1.537 6.325 1.537 9.858 0 2.968-.477 6.024-1.43 9.169a25.161 25.161 0 01-4.559 8.586c-2.085 2.58-4.752 4.7-8.003 6.36-3.25 1.66-7.137 2.491-11.66 2.491-3.604 0-6.943-.477-10.017-1.431-3.074-.954-5.777-2.385-8.109-4.293-2.332-1.908-4.187-4.258-5.565-7.049-1.378-2.791-2.138-6.06-2.279-9.805h12.084c.353 4.028 1.731 7.12 4.134 9.275 2.403 2.155 5.583 3.233 9.54 3.233 2.544 0 4.7-.424 6.466-1.272 1.767-.848 3.198-2.014 4.293-3.498 1.095-1.484 1.873-3.215 2.332-5.194.46-1.979.69-4.099.69-6.36 0-2.05-.284-4.01-.849-5.883-.565-1.873-1.413-3.516-2.544-4.929-1.13-1.413-2.597-2.544-4.399-3.392-1.802-.848-3.904-1.272-6.307-1.272-2.544 0-4.929.477-7.155 1.431-2.226.954-3.834 2.738-4.823 5.353H75.805l7.95-40.598z\"/></svg>"},"$:/core/images/heading-6":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-heading-6 tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M6 30h13.25v30.104H53.7V30h13.25v75.684H53.7V71.552H19.25v34.132H6V30zm106.587 20.246c-.283-3.039-1.36-5.494-3.233-7.367-1.873-1.873-4.399-2.809-7.579-2.809-2.19 0-4.08.406-5.67 1.219a12.435 12.435 0 00-4.029 3.233c-1.095 1.343-1.979 2.88-2.65 4.611a37.696 37.696 0 00-1.643 5.459 46.08 46.08 0 00-.9 5.671 722.213 722.213 0 00-.478 5.247l.212.212c1.625-2.968 3.87-5.176 6.731-6.625 2.862-1.449 5.954-2.173 9.275-2.173 3.675 0 6.96.636 9.858 1.908 2.897 1.272 5.353 3.021 7.367 5.247 2.014 2.226 3.551 4.858 4.611 7.897 1.06 3.039 1.59 6.325 1.59 9.858 0 3.604-.583 6.943-1.749 10.017-1.166 3.074-2.844 5.76-5.035 8.056-2.19 2.297-4.805 4.081-7.844 5.353-3.039 1.272-6.395 1.908-10.07 1.908-5.441 0-9.91-1.007-13.409-3.021-3.498-2.014-6.254-4.77-8.268-8.268-2.014-3.498-3.41-7.597-4.187-12.296-.777-4.7-1.166-9.77-1.166-15.211 0-4.452.477-8.94 1.431-13.462.954-4.523 2.526-8.639 4.717-12.349 2.19-3.71 5.07-6.731 8.64-9.063C92.676 31.166 97.075 30 102.304 30c2.968 0 5.76.495 8.374 1.484 2.615.99 4.93 2.367 6.943 4.134 2.014 1.767 3.657 3.887 4.93 6.36 1.271 2.473 1.978 5.23 2.12 8.268h-12.085zm-11.66 46.852c2.19 0 4.099-.442 5.724-1.325a12.869 12.869 0 004.081-3.445c1.095-1.413 1.908-3.056 2.438-4.929.53-1.873.795-3.798.795-5.777s-.265-3.887-.795-5.724c-.53-1.837-1.343-3.445-2.438-4.823-1.095-1.378-2.456-2.491-4.08-3.339-1.626-.848-3.534-1.272-5.725-1.272-2.19 0-4.116.406-5.777 1.219-1.66.813-3.056 1.908-4.187 3.286-1.13 1.378-1.979 2.986-2.544 4.823-.565 1.837-.848 3.78-.848 5.83 0 2.05.283 3.993.848 5.83.565 1.837 1.413 3.48 2.544 4.929a12.39 12.39 0 004.187 3.445c1.66.848 3.586 1.272 5.777 1.272z\"/></svg>"},"$:/core/images/help":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-help tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M36.055 111.441c-5.24 4.396-15.168 7.362-26.555 7.362-1.635 0-3.24-.06-4.806-.179 7.919-2.64 14.062-8.6 16.367-16.014C8.747 92.845 1.05 78.936 1.05 63.5c0-29.547 28.206-53.5 63-53.5s63 23.953 63 53.5-28.206 53.5-63 53.5c-10.055 0-19.56-2-27.994-5.559zm35.35-33.843a536.471 536.471 0 00.018-4.682 199.02 199.02 0 00-.023-3.042c.008-1.357.595-2.087 3.727-4.235.112-.077 1.085-.74 1.386-.948 3.093-2.133 5.022-3.786 6.762-6.187 2.34-3.228 3.558-7.077 3.558-11.649 0-13.292-9.86-21.952-21.455-21.952-11.103 0-22.499 9.609-24.066 22.295a6.023 6.023 0 1011.956 1.477c.806-6.527 6.972-11.726 12.11-11.726 5.265 0 9.408 3.64 9.408 9.906 0 3.634-1.1 5.153-5.111 7.919l-1.362.93c-2.682 1.84-4.227 3.1-5.7 4.931-2.109 2.62-3.242 5.717-3.258 9.314.013.892.02 1.86.022 2.981a470.766 470.766 0 01-.022 4.943 6.023 6.023 0 1012.046.12l.003-.395zm-6.027 24.499a7.529 7.529 0 100-15.058 7.529 7.529 0 000 15.058z\"/></svg>"},"$:/core/images/home-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-home-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M112.985 119.502c.01-.165.015-.331.015-.499V67.568c3.137 2.948 8.076 2.884 11.134-.174a7.999 7.999 0 00-.002-11.316L70.396 2.343A7.978 7.978 0 0064.734 0a7.957 7.957 0 00-5.656 2.343L33 28.42V8.007C33 3.585 29.41 0 25 0c-4.418 0-8 3.59-8 8.007V44.42L5.342 56.078c-3.125 3.125-3.12 8.198-.002 11.316a7.999 7.999 0 0011.316-.003l.344-.343v52.945a8.11 8.11 0 000 .007c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8a8.11 8.11 0 00-.015-.498zM97 112V51.574L64.737 19.31 33 51.048V112h64z\"/></svg>"},"$:/core/images/import-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-import-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M114.832 60.436s3.235-3.27 6.921.417c3.686 3.686.231 7.14.231 7.14l-42.153 42.92s-30.765 32.367-58.798 4.333C-7 87.213 24.59 55.623 24.59 55.623L67.363 12.85s22.725-24.6 43.587-3.738c20.862 20.862-3.96 43.09-3.96 43.09l-35.04 35.04S49.903 112.546 36.426 99.07c-13.476-13.477 11.83-35.523 11.83-35.523l35.04-35.04s3.902-3.902 7.78-.023c3.879 3.878.118 7.921.118 7.921l-35.04 35.04s-13.212 13.212-8.872 17.551c4.34 4.34 16.77-9.653 16.77-9.653l35.04-35.04s16.668-14.598 3.966-27.3c-13.893-13.892-27.565 3.702-27.565 3.702l-42.91 42.91s-23.698 23.698-3.658 43.738 43.012-4.385 43.012-4.385l42.895-42.533z\"/></svg>"},"$:/core/images/info-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-info-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\" transform=\"translate(.05)\"><path d=\"M64 128c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64c0 35.346 28.654 64 64 64zm0-16c26.51 0 48-21.49 48-48S90.51 16 64 16 16 37.49 16 64s21.49 48 48 48z\"/><circle cx=\"64\" cy=\"32\" r=\"8\"/><rect width=\"16\" height=\"56\" x=\"56\" y=\"48\" rx=\"8\"/></g></svg>"},"$:/core/images/italic":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-italic tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M66.711 0h22.41L62.408 128H40z\"/></svg>"},"$:/core/images/left-arrow":{"created":"20150315234410875","modified":"20150315235324760","tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-left-arrow tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M0 64.177c0-2.026.771-4.054 2.317-5.6l55.98-55.98a7.92 7.92 0 0111.195.001c3.086 3.085 3.092 8.104.001 11.195L19.111 64.175l50.382 50.382a7.92 7.92 0 010 11.195c-3.086 3.086-8.105 3.092-11.196.001l-55.98-55.98A7.892 7.892 0 010 64.177z\"/></svg>"},"$:/core/images/line-width":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-line-width tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M16 18h96a2 2 0 000-4H16a2 2 0 100 4zm0 17h96a4 4 0 100-8H16a4 4 0 100 8zm0 21h96a6 6 0 000-12H16a6 6 0 100 12zm0 29h96c5.523 0 10-4.477 10-10s-4.477-10-10-10H16c-5.523 0-10 4.477-10 10s4.477 10 10 10zm0 43h96c8.837 0 16-7.163 16-16s-7.163-16-16-16H16c-8.837 0-16 7.163-16 16s7.163 16 16 16z\"/></svg>"},"$:/core/images/link":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-link tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M42.263 69.38a31.919 31.919 0 006.841 10.13c12.5 12.5 32.758 12.496 45.255 0l22.627-22.628c12.502-12.501 12.497-32.758 0-45.255-12.5-12.5-32.758-12.496-45.254 0L49.104 34.255a32.333 32.333 0 00-2.666 3.019 36.156 36.156 0 0121.94.334l14.663-14.663c6.25-6.25 16.382-6.254 22.632-.004 6.248 6.249 6.254 16.373-.004 22.631l-22.62 22.62c-6.25 6.25-16.381 6.254-22.631.004a15.93 15.93 0 01-4.428-8.433 11.948 11.948 0 00-7.59 3.48l-6.137 6.137z\"/><path d=\"M86.35 59.234a31.919 31.919 0 00-6.84-10.13c-12.5-12.5-32.758-12.497-45.255 0L11.627 71.732c-12.501 12.5-12.496 32.758 0 45.254 12.5 12.5 32.758 12.497 45.255 0L79.51 94.36a32.333 32.333 0 002.665-3.02 36.156 36.156 0 01-21.94-.333l-14.663 14.663c-6.25 6.25-16.381 6.253-22.63.004-6.25-6.249-6.255-16.374.003-22.632l22.62-22.62c6.25-6.25 16.381-6.253 22.631-.003a15.93 15.93 0 014.428 8.432 11.948 11.948 0 007.59-3.48l6.137-6.136z\"/></g></svg>"},"$:/core/images/linkify":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-linkify-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"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\"/></svg>"},"$:/core/images/list-bullet":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-list-bullet tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M11.636 40.273c6.427 0 11.637-5.21 11.637-11.637C23.273 22.21 18.063 17 11.636 17 5.21 17 0 22.21 0 28.636c0 6.427 5.21 11.637 11.636 11.637zm0 34.909c6.427 0 11.637-5.21 11.637-11.637 0-6.426-5.21-11.636-11.637-11.636C5.21 51.91 0 57.12 0 63.545c0 6.427 5.21 11.637 11.636 11.637zm0 34.909c6.427 0 11.637-5.21 11.637-11.636 0-6.427-5.21-11.637-11.637-11.637C5.21 86.818 0 92.028 0 98.455c0 6.426 5.21 11.636 11.636 11.636zM34.91 22.818H128v11.637H34.91V22.818zm0 34.91H128v11.636H34.91V57.727zm0 34.908H128v11.637H34.91V92.636z\"/></svg>"},"$:/core/images/list-number":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-list-number tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M33.84 22.356H128v11.77H33.84v-11.77zm0 35.31H128v11.77H33.84v-11.77zm0 35.311H128v11.77H33.84v-11.77zM.38 42.631v-2.223h.998c.826 0 1.445-.14 1.858-.42.413-.28.619-.948.619-2.002V22.769c0-1.442-.193-2.336-.58-2.683-.385-.347-1.477-.52-3.275-.52v-2.143c3.502-.147 6.252-.955 8.25-2.423h2.117v22.865c0 .921.15 1.575.449 1.963.3.387.949.58 1.948.58h.998v2.223H.38zm-.3 35.356v-1.902c7.19-6.554 10.786-12.58 10.786-18.08 0-1.562-.326-2.81-.979-3.744-.652-.934-1.524-1.402-2.616-1.402-.893 0-1.655.317-2.287.952-.633.634-.95 1.364-.95 2.192 0 .974.247 1.829.74 2.563.106.16.16.28.16.36 0 .147-.16.28-.48.4-.213.08-.752.308-1.618.681-.839.374-1.358.561-1.558.561-.24 0-.512-.37-.819-1.111A6.2 6.2 0 010 57.064c0-1.949.849-3.544 2.547-4.785 1.698-1.242 3.798-1.862 6.302-1.862 2.463 0 4.53.67 6.202 2.012 1.67 1.341 2.506 3.093 2.506 5.256a8.644 8.644 0 01-.849 3.724c-.566 1.201-1.92 3.053-4.064 5.556a165.471 165.471 0 01-6.272 6.938h11.445l-1.019 5.726h-2.117c.08-.28.12-.534.12-.76 0-.388-.1-.631-.3-.731-.2-.1-.599-.15-1.198-.15H.08zm12.124 19.207c1.745.04 3.236.637 4.474 1.792 1.239 1.154 1.858 2.773 1.858 4.855 0 2.99-1.132 5.393-3.396 7.208-2.263 1.815-5 2.723-8.209 2.723-2.01 0-3.669-.384-4.974-1.151C.652 111.853 0 110.849 0 109.607c0-.774.27-1.398.809-1.872.54-.474 1.128-.71 1.768-.71.639 0 1.162.2 1.568.6.406.4.782 1.055 1.128 1.962.466 1.268 1.239 1.902 2.317 1.902 1.265 0 2.287-.477 3.066-1.431.78-.955 1.169-2.686 1.169-5.196 0-1.709-.12-3.023-.36-3.944-.24-.921-.792-1.382-1.658-1.382-.586 0-1.185.307-1.797.921-.493.494-.932.741-1.319.741-.333 0-.602-.147-.809-.44-.206-.294-.31-.574-.31-.841 0-.32.104-.594.31-.821.207-.227.69-.594 1.449-1.102 2.876-1.922 4.314-4.017 4.314-6.287 0-1.188-.306-2.092-.919-2.713a3.001 3.001 0 00-2.217-.93c-.799 0-1.525.263-2.177.79-.653.528-.979 1.158-.979 1.892 0 .641.253 1.235.76 1.782.172.2.259.367.259.5 0 .121-.57.428-1.708.922-1.139.494-1.854.74-2.147.74-.413 0-.75-.333-1.009-1-.26-.668-.39-1.282-.39-1.842 0-1.749.93-3.224 2.787-4.425 1.858-1.202 3.965-1.802 6.322-1.802 2.064 0 3.851.447 5.363 1.341 1.511.895 2.267 2.116 2.267 3.664 0 1.362-.57 2.623-1.708 3.784a13.387 13.387 0 01-3.945 2.784z\"/></svg>"},"$:/core/images/list":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-list tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M87.748 128H23.999c-4.418 0-7.999-3.59-7.999-8.007V8.007C16 3.585 19.588 0 24 0h80c4.419 0 8 3.59 8 8.007V104H91.25c-.965 0-1.84.392-2.473 1.025a3.476 3.476 0 00-1.029 2.476V128zm8-.12l15.88-15.88h-15.88v15.88zM40 15.508A3.502 3.502 0 0143.5 12h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 20h-55a3.498 3.498 0 01-3.5-3.509v-.982zM32 22a6 6 0 100-12 6 6 0 000 12zm8 9.509A3.502 3.502 0 0143.5 28h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 36h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 44h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 52h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 60h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 68h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 76h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 84h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.502 3.502 0 0143.5 92h55c1.933 0 3.5 1.561 3.5 3.509v.982A3.502 3.502 0 0198.5 100h-55a3.498 3.498 0 01-3.5-3.509v-.982zm0 16A3.505 3.505 0 0143.497 108h33.006A3.497 3.497 0 0180 111.509v.982A3.505 3.505 0 0176.503 116H43.497A3.497 3.497 0 0140 112.491v-.982zM32 38a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12zm0 16a6 6 0 100-12 6 6 0 000 12z\"/></svg>"},"$:/core/images/locked-padlock":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-locked-padlock tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M96.472 64H105v32.01C105 113.674 90.674 128 73.001 128H56C38.318 128 24 113.677 24 96.01V64h8c.003-15.723.303-47.731 32.16-47.731 31.794 0 32.305 32.057 32.312 47.731zm-15.897 0H48.44c.002-16.287.142-32 15.719-32 15.684 0 16.977 16.136 16.415 32zM67.732 92.364A8.503 8.503 0 0064.5 76a8.5 8.5 0 00-3.498 16.25l-5.095 22.77H72.8l-5.07-22.656z\"/></svg>"},"$:/core/images/mail":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-mail tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M122.827 104.894a7.986 7.986 0 01-2.834.516H8.007c-.812 0-1.597-.12-2.335-.345l34.163-34.163 20.842 20.842a3.998 3.998 0 003.418 1.134 4.003 4.003 0 003.395-1.134L88.594 70.64c.075.09.155.176.24.26l33.993 33.994zm5.076-6.237c.064-.406.097-.823.097-1.247v-64c0-.669-.082-1.318-.237-1.94L94.23 65.006c.09.075.177.154.261.239l33.413 33.413zm-127.698.56A8.023 8.023 0 010 97.41v-64c0-.716.094-1.41.271-2.071l33.907 33.906L.205 99.218zM5.93 25.684a8.012 8.012 0 012.078-.273h111.986c.766 0 1.507.108 2.209.308L64.083 83.837 5.93 25.683z\"/></svg>"},"$:/core/images/menu-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-menu-button tc-image-button\" viewBox=\"0 0 128 128\"><rect width=\"128\" height=\"16\" y=\"16\" rx=\"8\"/><rect width=\"128\" height=\"16\" y=\"56\" rx=\"8\"/><rect width=\"128\" height=\"16\" y=\"96\" rx=\"8\"/></svg>"},"$:/core/images/minus-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-minus-button tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M64 0c35.346 0 64 28.654 64 64 0 35.346-28.654 64-64 64-35.346 0-64-28.654-64-64C0 28.654 28.654 0 64 0zm.332 16c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z\"/><rect width=\"80\" height=\"16\" x=\"24\" y=\"56\" rx=\"8\"/></svg>"},"$:/core/images/mono-block":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-mono-block tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M23.965 32.967h.357c.755 0 1.328.192 1.72.577.39.384.586.947.586 1.688 0 .824-.206 1.418-.618 1.782-.413.363-1.094.545-2.045.545h-6.31c-.965 0-1.65-.178-2.056-.535-.405-.356-.608-.954-.608-1.792 0-.811.203-1.391.608-1.74.406-.35 1.09-.525 2.055-.525h.734l-.86-2.453H8.471l-.902 2.453h.734c.95 0 1.632.178 2.044.535.413.356.619.933.619 1.73 0 .824-.206 1.418-.619 1.782-.412.363-1.094.545-2.044.545h-5.41c-.964 0-1.649-.182-2.054-.545-.406-.364-.608-.958-.608-1.782 0-.741.195-1.304.587-1.688.391-.385.964-.577 1.719-.577h.356l5.62-15.641H6.835c-.95 0-1.632-.182-2.044-.546-.412-.363-.619-.95-.619-1.76 0-.825.207-1.42.619-1.783.412-.363 1.094-.545 2.044-.545h7.863c1.244 0 2.118.67 2.62 2.013v.063l6.647 18.2zM12.98 17.326l-3.04 8.848h6.08l-3.04-8.848zm22.402 9.372v6.395h3.145c2.223 0 3.788-.245 4.697-.734.908-.49 1.362-1.307 1.362-2.453 0-1.16-.433-1.985-1.3-2.474-.866-.49-2.383-.734-4.55-.734h-3.354zm10.693-2.327c1.524.559 2.642 1.324 3.355 2.295.713.972 1.07 2.212 1.07 3.722 0 1.272-.308 2.432-.923 3.48-.615 1.049-1.496 1.909-2.642 2.58a7.499 7.499 0 01-2.254.849c-.832.174-2.01.262-3.533.262H30.202c-.922 0-1.583-.182-1.981-.545-.399-.364-.598-.958-.598-1.782 0-.741.189-1.304.566-1.688.378-.385.93-.577 1.657-.577h.356V17.326h-.356c-.727 0-1.28-.196-1.657-.587-.377-.392-.566-.965-.566-1.72 0-.81.203-1.401.608-1.771.406-.37 1.062-.556 1.971-.556h9.645c2.95 0 5.19.573 6.72 1.72 1.53 1.145 2.296 2.823 2.296 5.031 0 1.09-.234 2.052-.703 2.883-.468.832-1.163 1.513-2.086 2.045zM35.381 17.2v5.284h2.83c1.72 0 2.932-.203 3.638-.609.706-.405 1.06-1.09 1.06-2.054 0-.909-.319-1.573-.955-1.992-.636-.42-1.667-.63-3.093-.63h-3.48zm35.863-3.816c.28-.503.566-.86.86-1.07.293-.21.664-.314 1.111-.314.685 0 1.17.182 1.457.545.287.364.43.986.43 1.866l.042 5.452c0 .964-.157 1.614-.472 1.95-.314.335-.884.503-1.709.503-.587 0-1.037-.14-1.352-.42-.314-.28-.584-.796-.807-1.551-.364-1.328-.944-2.282-1.74-2.862-.797-.58-1.901-.87-3.313-.87-2.153 0-3.802.727-4.948 2.18-1.147 1.454-1.72 3.558-1.72 6.311 0 2.74.58 4.844 1.74 6.311 1.16 1.468 2.817 2.202 4.97 2.202 1.467 0 3.085-.49 4.854-1.468 1.768-.978 2.883-1.467 3.344-1.467.545 0 1.003.23 1.373.692.37.46.556 1.034.556 1.719 0 1.23-1.084 2.39-3.25 3.48-2.167 1.09-4.606 1.636-7.318 1.636-3.662 0-6.625-1.21-8.89-3.627-2.264-2.419-3.396-5.578-3.396-9.478 0-3.76 1.146-6.884 3.438-9.372 2.293-2.488 5.2-3.732 8.723-3.732.992 0 1.97.112 2.935.335.964.224 1.992.574 3.082 1.049zm10.22 19.583V17.326h-.356c-.755 0-1.328-.196-1.72-.587-.39-.392-.586-.965-.586-1.72 0-.81.21-1.401.629-1.771.42-.37 1.097-.556 2.034-.556h5.178c2.922 0 5.06.126 6.416.377 1.356.252 2.51.671 3.46 1.258 1.691 1.007 2.988 2.443 3.89 4.31.9 1.865 1.352 4.021 1.352 6.467 0 2.586-.514 4.847-1.541 6.783-1.028 1.936-2.485 3.4-4.372 4.393-.853.447-1.852.772-2.998.975-1.147.203-2.852.304-5.116.304h-6.269c-.965 0-1.65-.178-2.055-.535-.406-.356-.608-.954-.608-1.792 0-.741.195-1.304.587-1.688.391-.385.964-.577 1.72-.577h.356zm5.41-15.725v15.725h1.195c2.642 0 4.592-.646 5.85-1.94 1.258-1.292 1.887-3.28 1.887-5.965 0-2.641-.64-4.612-1.918-5.912-1.28-1.3-3.205-1.95-5.777-1.95-.335 0-.59.003-.765.01a7.992 7.992 0 00-.472.032zm35.067-.126h-9.75v5.368h3.69v-.252c0-.797.175-1.39.524-1.782.35-.392.88-.587 1.594-.587.629 0 1.142.178 1.54.534.4.357.598.808.598 1.353 0 .028.007.118.021.272.014.154.021.308.021.462v4.34c0 .936-.167 1.607-.503 2.013-.335.405-.88.608-1.635.608-.713 0-1.251-.19-1.615-.567-.363-.377-.545-.936-.545-1.677v-.377h-3.69v6.269h9.75v-2.495c0-.937.178-1.608.534-2.013.357-.405.94-.608 1.75-.608.798 0 1.367.2 1.71.597.342.399.513 1.073.513 2.024v5.074c0 .755-.146 1.258-.44 1.51-.293.251-.873.377-1.74.377h-17.172c-.923 0-1.583-.182-1.982-.545-.398-.364-.597-.958-.597-1.782 0-.741.189-1.304.566-1.688.377-.385.93-.577 1.656-.577h.357V17.326h-.357c-.712 0-1.261-.2-1.646-.598-.384-.398-.576-.968-.576-1.709 0-.81.203-1.401.608-1.771.405-.37 1.062-.556 1.97-.556h17.173c.853 0 1.43.13 1.73.388.3.258.45.772.45 1.54v4.698c0 .95-.174 1.631-.524 2.044-.35.412-.915.618-1.698.618-.81 0-1.394-.21-1.75-.629-.357-.419-.535-1.097-.535-2.033v-2.202zM19.77 47.641c.267-.504.55-.86.85-1.07.3-.21.675-.314 1.122-.314.685 0 1.17.181 1.457.545.287.363.43.985.43 1.866l.042 5.451c0 .965-.157 1.615-.472 1.95-.314.336-.891.504-1.73.504-.587 0-1.045-.144-1.373-.43-.329-.287-.598-.8-.807-1.541-.378-1.342-.958-2.3-1.74-2.873-.783-.573-1.88-.86-3.292-.86-2.153 0-3.799.727-4.938 2.181-1.14 1.454-1.709 3.557-1.709 6.311s.598 4.882 1.793 6.385C10.599 67.248 12.294 68 14.488 68c.503 0 1.077-.06 1.72-.179a23.809 23.809 0 002.264-.555v-3.313h-2.37c-.95 0-1.624-.175-2.023-.524-.398-.35-.597-.93-.597-1.74 0-.84.199-1.437.597-1.793.399-.357 1.073-.535 2.024-.535h7.569c.978 0 1.667.175 2.065.524.398.35.598.937.598 1.762 0 .74-.2 1.31-.598 1.708-.398.399-.975.598-1.73.598h-.335v5.242c0 .447-.05.758-.147.933-.098.174-.293.353-.587.534-.797.476-2.062.895-3.795 1.258a25.576 25.576 0 01-5.263.546c-3.662 0-6.625-1.21-8.89-3.628-2.264-2.418-3.397-5.577-3.397-9.477 0-3.76 1.147-6.884 3.44-9.372 2.292-2.488 5.199-3.732 8.721-3.732.979 0 1.954.112 2.925.335.972.224 2.003.573 3.093 1.049zm15.84 3.941v4.823h6.857v-4.823h-.336c-.754 0-1.331-.195-1.73-.587-.398-.391-.597-.964-.597-1.719 0-.825.206-1.419.619-1.782.412-.364 1.093-.545 2.044-.545h5.41c.95 0 1.624.181 2.023.545.398.363.597.957.597 1.782 0 .755-.192 1.328-.576 1.72-.385.39-.947.586-1.688.586h-.357v15.642h.357c.755 0 1.328.192 1.719.576.391.385.587.947.587 1.688 0 .825-.203 1.419-.608 1.782-.405.364-1.09.546-2.055.546h-5.41c-.964 0-1.649-.179-2.054-.535-.405-.357-.608-.954-.608-1.793 0-.74.2-1.303.598-1.688.398-.384.975-.576 1.73-.576h.335v-6.186h-6.856v6.186h.335c.755 0 1.331.192 1.73.576.398.385.597.947.597 1.688 0 .825-.206 1.419-.618 1.782-.412.364-1.094.546-2.044.546h-5.41c-.964 0-1.65-.179-2.055-.535-.405-.357-.608-.954-.608-1.793 0-.74.196-1.303.587-1.688.392-.384.965-.576 1.72-.576h.356V51.582h-.356c-.741 0-1.304-.195-1.688-.587-.385-.391-.577-.964-.577-1.719 0-.825.2-1.419.598-1.782.398-.364 1.073-.545 2.023-.545h5.41c.936 0 1.614.181 2.033.545.42.363.63.957.63 1.782 0 .755-.2 1.328-.598 1.72-.399.39-.975.586-1.73.586h-.335zm31.754 0v15.642h3.523c.95 0 1.632.178 2.044.534.412.357.618.933.618 1.73 0 .811-.21 1.402-.629 1.772-.419.37-1.097.556-2.033.556H58.433c-.95 0-1.632-.182-2.044-.546-.412-.363-.619-.957-.619-1.782 0-.81.203-1.39.608-1.74.406-.35 1.09-.524 2.055-.524h3.523V51.582h-3.523c-.95 0-1.632-.181-2.044-.545-.412-.363-.619-.95-.619-1.761 0-.825.203-1.412.608-1.761.406-.35 1.09-.524 2.055-.524h12.455c.992 0 1.684.174 2.075.524.392.35.587.936.587 1.761 0 .81-.202 1.398-.608 1.761-.405.364-1.09.545-2.054.545h-3.523zm30.496 0v11.994c0 1.873-.122 3.228-.367 4.067a5.876 5.876 0 01-1.227 2.244c-.74.852-1.768 1.495-3.082 1.929-1.314.433-2.893.65-4.738.65-1.3 0-2.555-.126-3.764-.378a16.843 16.843 0 01-3.491-1.132c-.615-.28-1.017-.643-1.206-1.09-.188-.448-.283-1.175-.283-2.18v-4.32c0-1.202.175-2.04.525-2.516.349-.475.957-.713 1.824-.713 1.244 0 1.929.915 2.054 2.747.014.321.035.566.063.733.168 1.622.545 2.73 1.133 3.324.587.594 1.523.89 2.81.89 1.593 0 2.714-.422 3.364-1.268.65-.845.975-2.386.975-4.623V51.582H88.93c-.95 0-1.632-.181-2.044-.545-.413-.363-.619-.95-.619-1.761 0-.825.2-1.412.598-1.761.398-.35 1.086-.524 2.065-.524h10.693c.979 0 1.667.174 2.065.524.399.35.598.936.598 1.761 0 .81-.206 1.398-.619 1.761-.412.364-1.093.545-2.044.545h-1.761zm14.644 0v6.353l6.48-6.478c-.728-.084-1.238-.29-1.531-.619-.294-.328-.44-.85-.44-1.562 0-.825.198-1.419.597-1.782.398-.364 1.073-.545 2.023-.545h5.137c.95 0 1.625.181 2.023.545.399.363.598.957.598 1.782 0 .769-.2 1.345-.598 1.73-.398.384-.982.576-1.75.576h-.483l-6.101 6.06c1.132.839 2.167 1.94 3.103 3.302.937 1.363 2.034 3.456 3.292 6.28h.692c.825 0 1.44.188 1.845.566.405.377.608.943.608 1.698 0 .825-.206 1.419-.619 1.782-.412.364-1.093.546-2.044.546h-2.579c-1.132 0-2.048-.762-2.746-2.286-.126-.28-.224-.503-.294-.67-.923-1.958-1.768-3.467-2.537-4.53a16.616 16.616 0 00-2.705-2.914l-1.97 1.887v3.92h.335c.755 0 1.331.193 1.73.577.398.385.597.947.597 1.688 0 .825-.206 1.419-.618 1.782-.413.364-1.094.546-2.045.546h-5.41c-.964 0-1.649-.179-2.054-.535-.405-.357-.608-.954-.608-1.793 0-.74.196-1.303.587-1.688.391-.384.965-.576 1.72-.576h.356V51.582h-.357c-.74 0-1.303-.195-1.687-.587-.385-.391-.577-.964-.577-1.719 0-.825.2-1.419.598-1.782.398-.364 1.072-.545 2.023-.545h5.41c.936 0 1.614.181 2.033.545.42.363.63.957.63 1.782 0 .755-.2 1.328-.598 1.72-.399.39-.975.586-1.73.586h-.336zM13.44 96.326l4.005-11.889c.251-.782.6-1.352 1.048-1.709.447-.356 1.041-.534 1.782-.534h3.271c.95 0 1.632.182 2.044.545.413.363.619.957.619 1.782 0 .755-.2 1.328-.598 1.72-.398.39-.975.587-1.73.587h-.335l.587 15.641h.357c.754 0 1.32.192 1.698.577.377.384.566.947.566 1.687 0 .825-.2 1.42-.598 1.783-.398.363-1.072.545-2.023.545h-4.718c-.95 0-1.624-.178-2.023-.535-.398-.356-.597-.954-.597-1.793 0-.74.192-1.303.576-1.687.385-.385.954-.577 1.709-.577h.335l-.293-12.79-3.061 9.52c-.224.712-.542 1.226-.954 1.54-.413.315-.982.472-1.709.472-.727 0-1.303-.157-1.73-.472-.426-.314-.751-.828-.975-1.54l-3.04-9.52-.294 12.79h.336c.755 0 1.324.192 1.709.577.384.384.576.947.576 1.687 0 .825-.202 1.42-.608 1.783-.405.363-1.076.545-2.013.545H2.621c-.937 0-1.608-.182-2.013-.545-.405-.364-.608-.958-.608-1.783 0-.74.192-1.303.577-1.687.384-.385.954-.577 1.708-.577h.336l.608-15.641h-.336c-.754 0-1.331-.196-1.73-.588-.398-.39-.597-.964-.597-1.719 0-.825.206-1.419.619-1.782.412-.363 1.093-.545 2.044-.545h3.27c.728 0 1.311.175 1.752.524.44.35.8.923 1.08 1.72l4.109 11.888zm30.454 2.054V86.828H42.74c-.922 0-1.583-.182-1.981-.546-.398-.363-.598-.95-.598-1.76 0-.812.2-1.402.598-1.773.398-.37 1.059-.555 1.981-.555h5.955c.909 0 1.566.185 1.97.555.406.37.609.961.609 1.772 0 .741-.192 1.31-.577 1.709-.384.398-.933.598-1.646.598h-.356v19.038c0 .657-.07 1.069-.21 1.237-.14.167-.454.251-.943.251h-2.097c-.67 0-1.143-.07-1.415-.21-.273-.14-.507-.384-.703-.733l-8.722-15.327v11.385h1.216c.909 0 1.559.175 1.95.524.392.35.587.93.587 1.74 0 .825-.199 1.42-.597 1.783-.399.363-1.045.545-1.94.545h-6.017c-.909 0-1.566-.182-1.971-.545-.406-.364-.608-.958-.608-1.783 0-.74.188-1.303.566-1.687.377-.385.936-.577 1.677-.577h.336V86.828h-.336c-.713 0-1.265-.2-1.656-.598-.392-.398-.587-.968-.587-1.709 0-.81.206-1.401.618-1.772.413-.37 1.066-.555 1.96-.555h3.44c.824 0 1.383.108 1.677.325.293.216.622.653.985 1.31l7.989 14.551zM64.66 86.366c-1.803 0-3.218.727-4.245 2.18-1.028 1.455-1.541 3.474-1.541 6.06 0 2.586.517 4.613 1.551 6.08 1.034 1.468 2.446 2.202 4.235 2.202 1.804 0 3.222-.73 4.257-2.19 1.034-1.461 1.551-3.492 1.551-6.092 0-2.586-.513-4.605-1.54-6.06-1.028-1.453-2.45-2.18-4.268-2.18zm0-4.864c3.44 0 6.27 1.23 8.492 3.69 2.223 2.46 3.334 5.598 3.334 9.414 0 3.844-1.104 6.99-3.313 9.436-2.208 2.446-5.046 3.669-8.513 3.669-3.424 0-6.255-1.234-8.491-3.701-2.237-2.467-3.355-5.602-3.355-9.404 0-3.83 1.108-6.971 3.323-9.424 2.216-2.454 5.057-3.68 8.523-3.68zM87.461 98.17v4.298h2.16c.908 0 1.555.175 1.94.524.384.35.576.93.576 1.74 0 .825-.196 1.42-.587 1.783-.392.363-1.035.545-1.93.545h-7.254c-.922 0-1.583-.182-1.981-.545-.399-.364-.598-.958-.598-1.783 0-.74.189-1.303.566-1.687.378-.385.93-.577 1.657-.577h.356V86.828h-.356c-.713 0-1.262-.2-1.646-.598-.385-.398-.577-.968-.577-1.709 0-.81.203-1.401.608-1.772.406-.37 1.063-.555 1.971-.555h8.66c3.424 0 6.014.657 7.768 1.97 1.754 1.315 2.631 3.25 2.631 5.809 0 2.697-.873 4.738-2.62 6.122-1.748 1.384-4.34 2.076-7.78 2.076h-3.564zm0-11.343v6.625h2.977c1.65 0 2.89-.28 3.722-.839.832-.559 1.248-1.397 1.248-2.516 0-1.048-.43-1.855-1.29-2.421-.86-.566-2.086-.85-3.68-.85h-2.977zm27.267 20.568l-1.636 1.636a12.37 12.37 0 011.772-.44c.58-.098 1.15-.147 1.709-.147 1.104 0 2.268.164 3.491.492 1.223.329 1.967.493 2.233.493.447 0 1.03-.15 1.75-.45.72-.301 1.206-.452 1.458-.452.517 0 .947.2 1.29.598.342.398.513.898.513 1.5 0 .796-.472 1.474-1.415 2.033-.944.56-2.1.839-3.47.839-.937 0-2.139-.22-3.607-.66-1.467-.441-2.53-.661-3.187-.661-.992 0-2.11.272-3.354.817-1.244.546-2.013.818-2.307.818a2.14 2.14 0 01-1.53-.597c-.42-.399-.63-.878-.63-1.437 0-.391.134-.807.4-1.247.265-.44.733-1.01 1.404-1.709l2.118-2.139c-2.335-.852-4.194-2.386-5.578-4.602-1.384-2.215-2.075-4.763-2.075-7.642 0-3.802 1.104-6.909 3.312-9.32 2.209-2.411 5.053-3.617 8.534-3.617 3.467 0 6.304 1.209 8.513 3.627 2.208 2.418 3.312 5.522 3.312 9.31 0 3.774-1.097 6.884-3.291 9.33-2.195 2.446-4.977 3.67-8.345 3.67a22.5 22.5 0 01-1.384-.043zm1.195-21.03c-1.803 0-3.218.727-4.246 2.18-1.027 1.455-1.54 3.474-1.54 6.06 0 2.586.516 4.613 1.55 6.08 1.035 1.468 2.447 2.202 4.236 2.202 1.803 0 3.222-.73 4.256-2.19 1.035-1.461 1.552-3.492 1.552-6.092 0-2.586-.514-4.605-1.541-6.06-1.028-1.453-2.45-2.18-4.267-2.18z\"/></svg>"},"$:/core/images/mono-line":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-mono-line tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M60.437 84.523h.908c1.922 0 3.381.489 4.378 1.468.997.979 1.495 2.411 1.495 4.298 0 2.1-.525 3.612-1.575 4.538-1.05.925-2.785 1.388-5.206 1.388h-16.07c-2.456 0-4.2-.454-5.232-1.361-1.032-.908-1.548-2.43-1.548-4.565 0-2.065.516-3.542 1.548-4.432 1.032-.89 2.776-1.334 5.232-1.334h1.869l-2.19-6.247H20.983l-2.296 6.247h1.87c2.42 0 4.155.453 5.205 1.361 1.05.908 1.575 2.376 1.575 4.405 0 2.1-.525 3.612-1.575 4.538-1.05.925-2.785 1.388-5.206 1.388H6.781c-2.456 0-4.2-.463-5.233-1.388C.516 93.9 0 92.389 0 90.289c0-1.887.498-3.32 1.495-4.298.997-.979 2.456-1.468 4.378-1.468h.908l14.308-39.83h-4.271c-2.42 0-4.156-.462-5.206-1.387-1.05-.926-1.575-2.42-1.575-4.485 0-2.1.525-3.613 1.575-4.538 1.05-.926 2.785-1.388 5.206-1.388h20.021c3.168 0 5.392 1.708 6.674 5.125v.16l16.924 46.343zm-27.976-39.83L24.72 67.225h15.483l-7.742-22.53zM89.506 68.56v16.284h8.008c5.66 0 9.646-.623 11.96-1.869 2.313-1.245 3.47-3.328 3.47-6.246 0-2.955-1.103-5.055-3.31-6.3-2.207-1.246-6.069-1.869-11.586-1.869h-8.542zm27.229-5.926c3.88 1.423 6.727 3.372 8.542 5.846 1.815 2.474 2.723 5.633 2.723 9.477 0 3.239-.783 6.193-2.35 8.862-1.565 2.67-3.808 4.859-6.726 6.567-1.709.997-3.622 1.718-5.74 2.163-2.118.445-5.116.667-8.996.667h-27.87c-2.349 0-4.03-.463-5.045-1.388-1.014-.926-1.521-2.438-1.521-4.538 0-1.887.48-3.32 1.441-4.298.961-.979 2.367-1.468 4.218-1.468h.907v-39.83h-.907c-1.851 0-3.257-.498-4.218-1.494-.961-.997-1.441-2.456-1.441-4.378 0-2.065.516-3.568 1.548-4.512 1.032-.943 2.705-1.414 5.018-1.414h24.56c7.51 0 13.214 1.459 17.111 4.377 3.898 2.92 5.847 7.19 5.847 12.814 0 2.776-.597 5.223-1.789 7.341-1.192 2.118-2.963 3.853-5.312 5.206zm-27.23-18.26v13.455h7.208c4.378 0 7.466-.516 9.264-1.549 1.797-1.032 2.696-2.776 2.696-5.232 0-2.313-.81-4.004-2.43-5.072-1.619-1.068-4.244-1.602-7.874-1.602h-8.863z\"/></svg>"},"$:/core/images/new-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-new-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M56 72H8.007C3.591 72 0 68.418 0 64c0-4.41 3.585-8 8.007-8H56V8.007C56 3.591 59.582 0 64 0c4.41 0 8 3.585 8 8.007V56h47.993c4.416 0 8.007 3.582 8.007 8 0 4.41-3.585 8-8.007 8H72v47.993c0 4.416-3.582 8.007-8 8.007-4.41 0-8-3.585-8-8.007V72z\"/></svg>"},"$:/core/images/new-here-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-new-here-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M55.838 20.935l-3.572.938c-3.688.968-8.23 4.43-10.136 7.731L3.37 96.738c-1.905 3.3-.771 7.524 2.534 9.432l33.717 19.466c3.297 1.904 7.53.78 9.435-2.521l38.76-67.134c1.905-3.3 2.632-8.963 1.623-12.646L83.285 20.88c-1.009-3.68-4.821-5.884-8.513-4.915l-7.603 1.995.043.287c.524 3.394 2.053 7.498 4.18 11.55.418.163.829.36 1.23.59a8.864 8.864 0 014.438 8.169c.104.132.21.264.316.395l-.386.318a8.663 8.663 0 01-1.082 3.137c-2.42 4.192-7.816 5.608-12.051 3.163-4.12-2.379-5.624-7.534-3.476-11.671-2.177-4.394-3.788-8.874-4.543-12.964z\"/><path d=\"M69.554 44.76c-5.944-7.476-10.74-17.196-11.955-25.059-1.68-10.875 3.503-18.216 15.082-18.04 10.407.158 19.975 5.851 24.728 13.785 5.208 8.695 2.95 17.868-6.855 20.496l-2.037-7.601c4.232-1.134 4.999-4.248 2.24-8.853-3.37-5.626-10.465-9.848-18.146-9.965-6.392-.097-8.31 2.62-7.323 9.01.999 6.465 5.318 15.138 10.582 21.65l-.072.06c.559 1.553-4.17 6.44-5.938 4.888l-.005.004-.028-.034a1.323 1.323 0 01-.124-.135 2.618 2.618 0 01-.149-.205z\"/><rect width=\"16\" height=\"48\" x=\"96\" y=\"80\" rx=\"8\"/><rect width=\"48\" height=\"16\" x=\"80\" y=\"96\" rx=\"8\"/></g></svg>"},"$:/core/images/new-image-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-new-image-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M81.362 73.627l15.826-27.41a2.626 2.626 0 00-.962-3.59l-50.01-28.872a2.626 2.626 0 00-3.588.961L30.058 36.49l10.04-5.261c3.042-1.595 6.771.114 7.55 3.46l3.607 17.702 9.88.85a5.25 5.25 0 014.571 3.77c.034.115.1.344.199.671.165.553.353 1.172.562 1.843.595 1.914 1.23 3.85 1.872 5.678.207.588.412 1.156.614 1.701.625 1.685 1.209 3.114 1.725 4.207.255.54.485.977.726 1.427.214.212.547.425 1.011.622 1.141.482 2.784.74 4.657.758.864.008 1.71-.034 2.492-.11.448-.043.753-.085.871-.104.315-.053.625-.077.927-.076zM37.47 2.649A5.257 5.257 0 0144.649.725l63.645 36.746a5.257 5.257 0 011.923 7.178L73.47 108.294a5.257 5.257 0 01-7.177 1.923L2.649 73.47a5.257 5.257 0 01-1.924-7.177L37.471 2.649zm42.837 50.49a5.25 5.25 0 105.25-9.092 5.25 5.25 0 00-5.25 9.093zM96 112h-7.993c-4.419 0-8.007-3.582-8.007-8 0-4.41 3.585-8 8.007-8H96v-7.993C96 83.588 99.582 80 104 80c4.41 0 8 3.585 8 8.007V96h7.993c4.419 0 8.007 3.582 8.007 8 0 4.41-3.585 8-8.007 8H112v7.993c0 4.419-3.582 8.007-8 8.007-4.41 0-8-3.585-8-8.007V112zM33.347 51.791c7.428 7.948 9.01 10.69 7.449 13.394-1.56 2.703-13.838-2.328-16.094 1.58-2.256 3.908-.907 3.258-2.437 5.908l19.73 11.39s-5.605-8.255-4.235-10.628c2.515-4.356 8.77-1.256 10.365-4.019 2.414-4.181-5.103-9.639-14.778-17.625z\"/></svg>"},"$:/core/images/new-journal-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-new-journal-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M102.545 112.818v11.818c0 1.306 1.086 2.364 2.425 2.364h6.06c1.34 0 2.425-1.058 2.425-2.364v-11.818h12.12c1.34 0 2.425-1.058 2.425-2.363v-5.91c0-1.305-1.085-2.363-2.424-2.363h-12.121V90.364c0-1.306-1.086-2.364-2.425-2.364h-6.06c-1.34 0-2.425 1.058-2.425 2.364v11.818h-12.12c-1.34 0-2.425 1.058-2.425 2.363v5.91c0 1.305 1.085 2.363 2.424 2.363h12.121zM60.016 4.965c-4.781-2.76-10.897-1.118-13.656 3.66L5.553 79.305A9.993 9.993 0 009.21 92.963l51.04 29.468c4.78 2.76 10.897 1.118 13.655-3.66l40.808-70.681a9.993 9.993 0 00-3.658-13.656L60.016 4.965zm-3.567 27.963a6 6 0 106-10.393 6 6 0 00-6 10.393zm31.697 17.928a6 6 0 106-10.392 6 6 0 00-6 10.392z\"/><text class=\"tc-fill-background\" font-family=\"Helvetica\" font-size=\"47.172\" font-weight=\"bold\" transform=\"rotate(30 25.742 95.82)\"><tspan x=\"42\" y=\"77.485\" text-anchor=\"middle\"><<now \"DD\">></tspan></text></g></svg>"},"$:/core/images/opacity":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-opacity tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M102.362 65a51.595 51.595 0 01-1.942 6H82.584a35.867 35.867 0 002.997-6h16.78zm.472-2c.423-1.961.734-3.963.929-6H87.656a35.78 35.78 0 01-1.368 6h16.546zm-3.249 10a51.847 51.847 0 01-3.135 6H75.812a36.205 36.205 0 005.432-6h18.341zm-4.416 8c-1.424 2.116-3 4.12-4.71 6H60.46a35.843 35.843 0 0012.874-6h21.834zm-7.513-34h16.107C101.247 20.627 79.033 0 52 0 23.281 0 0 23.281 0 52c0 25.228 17.965 46.26 41.8 51h20.4a51.66 51.66 0 0015.875-6H39v-2h42.25a52.257 52.257 0 007.288-6H39v-2h4.539C27.739 83.194 16 68.968 16 52c0-19.882 16.118-36 36-36 18.186 0 33.222 13.484 35.656 31zm.22 2h16.039a52.823 52.823 0 010 6H87.877a36.483 36.483 0 000-6z\"/><path d=\"M76 128c28.719 0 52-23.281 52-52s-23.281-52-52-52-52 23.281-52 52 23.281 52 52 52zm0-16c19.882 0 36-16.118 36-36S95.882 40 76 40 40 56.118 40 76s16.118 36 36 36z\"/><path d=\"M37 58h53v4H37v-4zm3-8h53v4H40v-4zm0-8h53v4H40v-4zm-8 24h53v4H32v-4zm-2 8h53v4H30v-4zm-3 8h53v4H27v-4z\"/></g></svg>"},"$:/core/images/open-window":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-open-window tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M16 112h88.994c3.87 0 7.006 3.59 7.006 8 0 4.418-3.142 8-7.006 8H7.006C3.136 128 0 124.41 0 120a9.321 9.321 0 010-.01V24.01C0 19.586 3.59 16 8 16c4.418 0 8 3.584 8 8.01V112z\"/><path d=\"M96 43.196V56a8 8 0 1016 0V24c0-4.41-3.585-8-8.007-8H72.007C67.588 16 64 19.582 64 24c0 4.41 3.585 8 8.007 8H84.57l-36.3 36.299a8 8 0 00-.001 11.316c3.117 3.117 8.19 3.123 11.316-.003L96 43.196zM32 7.999C32 3.581 35.588 0 40 0h80c4.419 0 8 3.588 8 8v80c0 4.419-3.588 8-8 8H40c-4.419 0-8-3.588-8-8V8z\"/></g></svg>"},"$:/core/images/options-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-options-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M110.488 76a47.712 47.712 0 01-5.134 12.384l6.724 6.724c3.123 3.123 3.132 8.192.011 11.313l-5.668 5.668c-3.12 3.12-8.186 3.117-11.313-.01l-6.724-6.725c-3.82 2.258-7.98 4-12.384 5.134v9.505c0 4.417-3.578 8.007-7.992 8.007h-8.016C55.58 128 52 124.415 52 119.993v-9.505a47.712 47.712 0 01-12.384-5.134l-6.724 6.725c-3.123 3.122-8.192 3.131-11.313.01l-5.668-5.668c-3.12-3.12-3.116-8.186.01-11.313l6.725-6.724c-2.257-3.82-4-7.98-5.134-12.384H8.007C3.591 76 0 72.422 0 68.01v-8.017C0 55.58 3.585 52 8.007 52h9.505a47.712 47.712 0 015.134-12.383l-6.724-6.725c-3.123-3.122-3.132-8.191-.011-11.312l5.668-5.669c3.12-3.12 8.186-3.116 11.313.01l6.724 6.725c3.82-2.257 7.98-4 12.384-5.134V8.007C52 3.591 55.578 0 59.992 0h8.016C72.42 0 76 3.585 76 8.007v9.505a47.712 47.712 0 0112.384 5.134l6.724-6.724c3.123-3.123 8.192-3.132 11.313-.01l5.668 5.668c3.12 3.12 3.116 8.186-.01 11.312l-6.725 6.725c2.257 3.82 4 7.979 5.134 12.383h9.505c4.416 0 8.007 3.578 8.007 7.992v8.017c0 4.411-3.585 7.991-8.007 7.991h-9.505zM64 96c17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32z\"/></svg>"},"$:/core/images/paint":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-paint tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M83.527 76.19C90.43 69.287 91.892 59 87.91 50.665l37.903-37.902c2.919-2.92 2.913-7.659 0-10.572a7.474 7.474 0 00-10.572 0L77.338 40.093c-8.335-3.982-18.622-2.521-25.526 4.383l31.715 31.715zm-2.643 2.644L49.169 47.119S8.506 81.243 0 80.282c0 0 3.782 5.592 6.827 8.039 14.024-5.69 37.326-24.6 37.326-24.6l.661.66S19.45 90.222 9.18 92.047c1.222 1.44 4.354 4.053 6.247 5.776 5.417-1.488 34.733-28.57 34.733-28.57l.661.66-32.407 31.022 5.285 5.286L56.106 75.2l.662.66s-27.864 30.536-28.684 32.432c0 0 6.032 6.853 7.569 7.824.702-2.836 27.884-33.485 27.884-33.485l.661.66s-20.597 23.755-24.964 36.732c3.21 3.549 7.5 5.137 10.926 6.298-2.19-11.817 30.724-47.487 30.724-47.487z\"/></svg>"},"$:/core/images/palette":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-palette tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M80.247 39.182a93.52 93.52 0 00-16.228-1.4C28.662 37.781 0 57.131 0 81.002c0 9.642 4.676 18.546 12.58 25.735C23.504 91.19 26.34 72.395 36.89 63.562c15.183-12.713 26.538-7.828 26.538-7.828l16.82-16.552zm26.535 9.655c13.049 7.913 21.257 19.392 21.257 32.166 0 9.35.519 17.411-11.874 25.08-10.797 6.681-3.824-6.536-11.844-10.898s-19.946 1.308-18.213 7.906c3.2 12.181 19.422 11.455 6.314 16.658-13.107 5.202-18.202 4.476-28.403 4.476-7.821 0-15.315-.947-22.243-2.68 9.844-4.197 27.88-12.539 33.354-19.456C82.788 92.409 87.37 80 83.324 72.484c-.194-.359 11.215-11.668 23.458-23.647zM1.134 123.867l-.66.002c33.479-14.94 22.161-64.226 58.818-64.226.317 1.418.644 2.944 1.062 4.494-25.907-4.166-23.567 48.031-59.22 59.73zm.713-.007c38.872-.506 78.152-22.347 78.152-44.813-9.27 0-14.073-3.48-16.816-7.942-16.597-7.003-30.365 45.715-61.336 52.755zm65.351-64.008c-4.45 4.115 4.886 16.433 11.318 11.318l45.27-45.27c11.317-11.318 0-22.635-11.318-11.318-11.317 11.318-33.518 34.405-45.27 45.27z\"/></svg>"},"$:/core/images/permalink-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-permalink-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M80.483 48l-7.387 32h-25.58l7.388-32h25.58zm3.694-16l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L100.598 32h3.403c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8h-7.096l-7.387 32H104c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H85.824l-5.624 24.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L69.402 96h-25.58L38.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L27.402 96h-3.403C19.59 96 16 92.418 16 88c0-4.41 3.581-8 8-8h7.096l7.387-32H24C19.59 48 16 44.418 16 40c0-4.41 3.581-8 8-8h18.177l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L58.598 32h25.58z\"/></svg>"},"$:/core/images/permaview-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-permaview-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M81.483 48l-1.846 8h-5.58l1.847-8h5.58zm3.694-16l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L101.598 32h2.403c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8h-6.096l-1.847 8h7.944c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H92.364l-1.846 8H104c4.41 0 7.999 3.582 7.999 8 0 4.41-3.581 8-8 8H86.824l-5.624 24.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L70.402 96h-5.58L59.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L48.402 96h-5.58L37.2 120.358c-.993 4.303-5.29 6.996-9.596 6.002-4.296-.992-6.988-5.293-5.994-9.602L26.402 96h-2.403C19.59 96 16 92.418 16 88c0-4.41 3.581-8 8-8h6.096l1.847-8h-7.944C19.59 72 16 68.418 16 64c0-4.41 3.581-8 8-8h11.637l1.846-8H24C19.59 48 16 44.418 16 40c0-4.41 3.581-8 8-8h17.177l5.624-24.358c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L57.598 32h5.58L68.8 7.642c.993-4.303 5.29-6.996 9.596-6.002 4.296.992 6.988 5.293 5.994 9.602L79.598 32h5.58zM53.904 48l-1.847 8h5.58l1.846-8h-5.579zm22.039 24l-1.847 8h-5.58l1.847-8h5.58zm-27.58 0l-1.846 8h5.579l1.847-8h-5.58z\"/></svg>"},"$:/core/images/picture":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-picture tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M112 68.233v-48.23A4.001 4.001 0 00107.997 16H20.003A4.001 4.001 0 0016 20.003v38.31l9.241-14.593c2.8-4.422 9.023-5.008 12.6-1.186l18.247 20.613 13.687-6.407a8 8 0 018.903 1.492 264.97 264.97 0 002.92 2.739 249.44 249.44 0 006.798 6.066 166.5 166.5 0 002.106 1.778c2.108 1.747 3.967 3.188 5.482 4.237.748.518 1.383.92 2.044 1.33.444.117 1.046.144 1.809.05 1.873-.233 4.238-1.144 6.723-2.547a36.016 36.016 0 003.205-2.044c.558-.4.93-.686 1.07-.802.376-.31.765-.577 1.165-.806zM0 8.007A8.01 8.01 0 018.007 0h111.986A8.01 8.01 0 01128 8.007v111.986a8.01 8.01 0 01-8.007 8.007H8.007A8.01 8.01 0 010 119.993V8.007zM95 42a8 8 0 100-16 8 8 0 000 16zM32 76c15.859 4.83 20.035 7.244 20.035 12S32 95.471 32 102.347c0 6.876 1.285 4.99 1.285 9.653H68s-13.685-6.625-13.685-10.8c0-7.665 10.615-8.34 10.615-13.2 0-7.357-14.078-8.833-32.93-12z\"/></svg>"},"$:/core/images/plugin-generic-language":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\" class=\"tc-image-plugin-generic-language tc-image-button\"><path fill-rule=\"evenodd\" d=\"M61.207 68.137c-4.324 2.795-6.999 6.656-6.999 10.921 0 7.906 9.19 14.424 21.042 15.336 2.162 3.902 8.598 6.785 16.318 7.01-5.126-1.125-9.117-3.742-10.62-7.01C92.805 93.487 102 86.967 102 79.059c0-8.53-10.699-15.445-23.896-15.445-6.599 0-12.572 1.729-16.897 4.524zm12.794-14.158c-4.324 2.795-10.298 4.524-16.897 4.524-2.619 0-5.14-.272-7.497-.775-3.312 2.25-8.383 3.69-14.067 3.69l-.255-.002c4.119-.892 7.511-2.747 9.478-5.13-6.925-2.704-11.555-7.617-11.555-13.228 0-8.53 10.699-15.445 23.896-15.445C70.301 27.613 81 34.528 81 43.058c0 4.265-2.675 8.126-6.999 10.921zM64 0l54.56 32v64L64 128 9.44 96V32L64 0z\"/></svg>"},"$:/core/images/plugin-generic-plugin":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\" class=\"tc-image-plugin-generic-plugin tc-image-button\"><path fill-rule=\"evenodd\" d=\"M40.397 76.446V95.34h14.12l-.001-.005a6.912 6.912 0 005.364-11.593l.046-.023a6.912 6.912 0 119.979.526l.086.055a6.914 6.914 0 004.408 10.948l-.023.092h21.32V75.568l-.15.038a6.912 6.912 0 00-11.593-5.364l-.022-.046a6.912 6.912 0 11.526-9.979l.055-.086a6.914 6.914 0 0010.948-4.408c.079.018.158.038.236.059v-15.74h-21.32l.023-.094a6.914 6.914 0 01-4.408-10.947 10.23 10.23 0 00-.086-.055 6.912 6.912 0 10-9.979-.526l-.046.023a6.912 6.912 0 01-5.364 11.593l.001.005h-14.12v12.847A6.912 6.912 0 0129.5 59.843l-.054.086a6.912 6.912 0 10-.526 9.979l.023.046a6.912 6.912 0 0111.455 6.492zM64 0l54.56 32v64L64 128 9.44 96V32L64 0z\"/></svg>"},"$:/core/images/plugin-generic-theme":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" viewBox=\"0 0 128 128\" class=\"tc-image-plugin-generic-theme tc-image-button\"><path fill-rule=\"evenodd\" d=\"M29.408 91.472L51.469 69.41l-.004-.005a2.22 2.22 0 01.004-3.146c.87-.87 2.281-.872 3.147-.005l9.465 9.464a2.22 2.22 0 01-.005 3.147c-.87.87-2.28.871-3.147.005l-.005-.005-22.061 22.062a6.686 6.686 0 11-9.455-9.455zM60.802 66.38c-2.436-2.704-4.465-5.091-5.817-6.869-6.855-9.014-10.313-4.268-14.226 0-3.913 4.268 1.03 7.726-2.683 10.741-3.713 3.015-3.484 4.06-9.752-1.455-6.267-5.516-6.7-7.034-3.823-10.181 2.877-3.147 5.281 1.808 11.159-3.785 5.877-5.593.94-10.55.94-10.55s12.237-25.014 28.588-23.167c16.351 1.848-6.186-2.392-11.792 17.226-2.4 8.4.447 6.42 4.998 9.968 1.394 1.086 6.03 4.401 11.794 8.685l20.677-20.676 1.615-4.766 7.84-4.689 3.151 3.152-4.688 7.84-4.766 1.615-20.224 20.223c12.663 9.547 28.312 22.146 28.312 26.709 0 7.217-3.071 11.526-9.535 9.164-4.693-1.715-18.768-15.192-28.753-25.897l-2.893 2.893-3.151-3.152 3.029-3.029zM63.953 0l54.56 32v64l-54.56 32-54.56-32V32l54.56-32z\"/></svg>"},"$:/core/images/plus-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-plus-button tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M64-.333c35.346 0 64 28.654 64 64 0 35.346-28.654 64-64 64-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64zM64 16c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z\"/><rect width=\"80\" height=\"16\" x=\"24\" y=\"56\" rx=\"8\"/><rect width=\"16\" height=\"80\" x=\"56\" y=\"24\" rx=\"8\"/></svg>"},"$:/core/images/preview-closed":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-preview-closed tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M.088 64a7.144 7.144 0 001.378 5.458C16.246 88.818 39.17 100.414 64 100.414c24.83 0 47.753-11.596 62.534-30.956A7.144 7.144 0 00127.912 64C110.582 78.416 88.304 87.086 64 87.086 39.696 87.086 17.418 78.416.088 64z\"/><rect width=\"4\" height=\"16\" x=\"62\" y=\"96\" rx=\"4\"/><rect width=\"4\" height=\"16\" x=\"78\" y=\"93\" rx=\"4\" transform=\"rotate(-5 80 101)\"/><rect width=\"4\" height=\"16\" x=\"46\" y=\"93\" rx=\"4\" transform=\"rotate(5 48 101)\"/><rect width=\"4\" height=\"16\" x=\"30\" y=\"88\" rx=\"4\" transform=\"rotate(10 32 96)\"/><rect width=\"4\" height=\"16\" x=\"94\" y=\"88\" rx=\"4\" transform=\"rotate(-10 96 96)\"/><rect width=\"4\" height=\"16\" x=\"110\" y=\"80\" rx=\"4\" transform=\"rotate(-20 112 88)\"/><rect width=\"4\" height=\"16\" x=\"14\" y=\"80\" rx=\"4\" transform=\"rotate(20 16 88)\"/></g></svg>"},"$:/core/images/preview-open":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-preview-open tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M64.11 99.588c-24.83 0-47.754-11.596-62.534-30.957a7.148 7.148 0 010-8.675C16.356 40.596 39.28 29 64.11 29c24.83 0 47.753 11.596 62.534 30.956a7.148 7.148 0 010 8.675c-14.78 19.36-37.703 30.957-62.534 30.957zm46.104-32.007c1.44-1.524 1.44-3.638 0-5.162C99.326 50.9 82.439 44 64.147 44S28.968 50.9 18.08 62.42c-1.44 1.523-1.44 3.637 0 5.16C28.968 79.1 45.855 86 64.147 86s35.179-6.9 46.067-18.42z\"/><path d=\"M63.5 88C76.479 88 87 77.479 87 64.5S76.479 41 63.5 41 40 51.521 40 64.5 50.521 88 63.5 88z\"/></g></svg>"},"$:/core/images/print-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-print-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M112 71V30.5h-.032c-.035-2-.816-3.99-2.343-5.516L86.998 2.357A7.978 7.978 0 0081 .02V0H24a8 8 0 00-8 8v63h8V8h57v14.5c0 4.422 3.582 8 8 8h15V71h8z\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"36\" rx=\"4\"/><rect width=\"64\" height=\"8\" x=\"32\" y=\"52\" rx=\"4\"/><rect width=\"40\" height=\"8\" x=\"32\" y=\"20\" rx=\"4\"/><path d=\"M0 80.005C0 71.165 7.156 64 16 64h96c8.836 0 16 7.155 16 16.005v31.99c0 8.84-7.156 16.005-16 16.005H16c-8.836 0-16-7.155-16-16.005v-31.99zM104 96a8 8 0 100-16 8 8 0 000 16z\"/></g></svg>"},"$:/core/images/quote":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-quote tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M51.219 117.713V62.199H27.427c0-8.891 1.683-16.401 5.047-22.53 3.365-6.127 9.613-10.754 18.745-13.878V2c-7.45.961-14.36 3.184-20.728 6.669-6.368 3.484-11.835 7.87-16.401 13.157C9.524 27.113 5.98 33.241 3.456 40.21.933 47.18-.21 54.63.03 62.56v55.153H51.22zm76.781 0V62.199h-23.791c0-8.891 1.682-16.401 5.046-22.53 3.365-6.127 9.613-10.754 18.745-13.878V2c-7.45.961-14.359 3.184-20.727 6.669-6.369 3.484-11.836 7.87-16.402 13.157-4.566 5.287-8.11 11.415-10.634 18.384-2.523 6.97-3.665 14.42-3.424 22.35v55.153H128z\"/></svg>"},"$:/core/images/refresh-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-refresh-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M106.369 39.433c10.16 20.879 6.57 46.764-10.771 64.106-21.87 21.87-57.327 21.87-79.196 0-21.87-21.87-21.87-57.326 0-79.196a8 8 0 1111.314 11.314c-15.621 15.62-15.621 40.947 0 56.568 15.62 15.621 40.947 15.621 56.568 0C97.72 78.79 99.6 58.175 89.924 42.73l-6.44 12.264a8 8 0 11-14.166-7.437L84.435 18.76a8 8 0 0110.838-3.345l28.873 15.345a8 8 0 11-7.51 14.129l-10.267-5.457zm-8.222-12.368c-.167-.19-.336-.38-.506-.57l.96-.296-.454.866z\"/></svg>"},"$:/core/images/right-arrow":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-right-arrow tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M99.069 64.173c0 2.027-.77 4.054-2.316 5.6l-55.98 55.98a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l50.382-50.382-50.382-50.382a7.92 7.92 0 010-11.195c3.086-3.085 8.104-3.092 11.196 0l55.98 55.98a7.892 7.892 0 012.316 5.595z\"/></svg>"},"$:/core/images/rotate-left":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-rotate-left tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"32\" height=\"80\" rx=\"8\"/><rect width=\"80\" height=\"32\" x=\"48\" y=\"96\" rx=\"8\"/><path d=\"M61.32 36.65c19.743 2.45 35.023 19.287 35.023 39.693a4 4 0 01-8 0c0-15.663-11.254-28.698-26.117-31.46l3.916 3.916a4 4 0 11-5.657 5.657L49.172 43.142a4 4 0 010-5.657l11.313-11.313a4 4 0 115.657 5.656l-4.821 4.822z\"/></g></svg>"},"$:/core/images/save-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-save-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M120.783 34.33c4.641 8.862 7.266 18.948 7.266 29.646 0 35.347-28.653 64-64 64-35.346 0-64-28.653-64-64 0-35.346 28.654-64 64-64 18.808 0 35.72 8.113 47.43 21.03l2.68-2.68c3.13-3.13 8.197-3.132 11.321-.008 3.118 3.118 3.121 8.193-.007 11.32l-4.69 4.691zm-12.058 12.058a47.876 47.876 0 013.324 17.588c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48c14.39 0 27.3 6.332 36.098 16.362L58.941 73.544 41.976 56.578c-3.127-3.127-8.201-3.123-11.32-.005-3.123 3.124-3.119 8.194.006 11.319l22.617 22.617a7.992 7.992 0 005.659 2.347c2.05 0 4.101-.783 5.667-2.349l44.12-44.12z\"/></svg>"},"$:/core/images/size":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-size tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M92.343 26l-9.171 9.172a4 4 0 105.656 5.656l16-16a4 4 0 000-5.656l-16-16a4 4 0 10-5.656 5.656L92.343 18H22a4 4 0 00-4 4v70.343l-9.172-9.171a4 4 0 10-5.656 5.656l16 16a4 4 0 005.656 0l16-16a4 4 0 10-5.656-5.656L26 92.343V22l-4 4h70.343zM112 52v64l4-4H52a4 4 0 100 8h64a4 4 0 004-4V52a4 4 0 10-8 0z\"/></svg>"},"$:/core/images/spiral":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-spiral tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M64.534 68.348c3.39 0 6.097-2.62 6.476-5.968l-4.755-.538 4.75.583c.377-3.07-1.194-6.054-3.89-7.78-2.757-1.773-6.34-2.01-9.566-.7-3.46 1.403-6.14 4.392-7.35 8.148l-.01.026c-1.3 4.08-.72 8.64 1.58 12.52 2.5 4.2 6.77 7.2 11.76 8.27 5.37 1.15 11.11-.05 15.83-3.31 5.04-3.51 8.46-9.02 9.45-15.3 1.05-6.7-.72-13.63-4.92-19.19l.02.02c-4.42-5.93-11.2-9.82-18.78-10.78-7.96-1.01-16.13 1.31-22.59 6.43-6.81 5.39-11.18 13.41-12.11 22.26-.98 9.27 1.87 18.65 7.93 26.02 6.32 7.69 15.6 12.56 25.74 13.48 10.54.96 21.15-2.42 29.45-9.4l.01-.01c8.58-7.25 13.94-17.78 14.86-29.21.94-11.84-2.96-23.69-10.86-32.9-8.19-9.5-19.95-15.36-32.69-16.27-13.16-.94-26.24 3.49-36.34 12.34l.01-.01c-10.41 9.08-16.78 22.1-17.68 36.15-.93 14.44 4.03 28.77 13.79 39.78 10.03 11.32 24.28 18.2 39.6 19.09 15.73.92 31.31-4.56 43.24-15.234 12.23-10.954 19.61-26.44 20.5-43.074a4.785 4.785 0 00-4.52-5.03 4.778 4.778 0 00-5.03 4.52c-.75 14.1-7 27.2-17.33 36.45-10.03 8.98-23.11 13.58-36.3 12.81-12.79-.75-24.67-6.48-33-15.89-8.07-9.11-12.17-20.94-11.41-32.827.74-11.52 5.942-22.15 14.43-29.54l.01-.01c8.18-7.17 18.74-10.75 29.35-9.998 10.21.726 19.6 5.41 26.11 12.96 6.24 7.273 9.32 16.61 8.573 25.894-.718 8.9-4.88 17.064-11.504 22.66l.01-.007c-6.36 5.342-14.44 7.92-22.425 7.19-7.604-.68-14.52-4.314-19.21-10.027-4.44-5.4-6.517-12.23-5.806-18.94.67-6.3 3.76-11.977 8.54-15.766 4.46-3.54 10.05-5.128 15.44-4.44 5.03.63 9.46 3.18 12.32 7.01l.02.024c2.65 3.5 3.75 7.814 3.1 11.92-.59 3.71-2.58 6.925-5.45 8.924-2.56 1.767-5.61 2.403-8.38 1.81-2.42-.516-4.42-1.92-5.53-3.79-.93-1.56-1.15-3.3-.69-4.75l-4.56-1.446L59.325 65c.36-1.12 1.068-1.905 1.84-2.22.25-.103.48-.14.668-.13.06.006.11.015.14.025.01 0 .01 0-.01-.01a1.047 1.047 0 01-.264-.332c-.15-.29-.23-.678-.18-1.11l-.005.04c.15-1.332 1.38-2.523 3.035-2.523-2.65 0-4.79 2.144-4.79 4.787s2.14 4.785 4.78 4.785z\"/></svg>"},"$:/core/images/stamp":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-stamp tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M49.733 64H16.01C11.584 64 8 67.583 8 72.003V97h112V72.003A8 8 0 00111.99 64H78.267A22.813 22.813 0 0175.5 53.077c0-6.475 2.687-12.324 7.009-16.497A22.818 22.818 0 0087 22.952C87 10.276 76.703 0 64 0S41 10.276 41 22.952c0 5.103 1.669 9.817 4.491 13.628 4.322 4.173 7.009 10.022 7.009 16.497 0 3.954-1.002 7.675-2.767 10.923zM8 104h112v8H8v-8z\"/></svg>"},"$:/core/images/star-filled":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-star-filled tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M61.836 96.823l37.327 27.287c2.72 1.99 6.379-.69 5.343-3.912L90.29 75.988l-1.26 3.91 37.285-27.345c2.718-1.993 1.32-6.327-2.041-6.33l-46.113-.036 3.3 2.416L67.176 4.416c-1.04-3.221-5.563-3.221-6.604 0L46.29 48.603l3.3-2.416-46.113.036c-3.362.003-4.759 4.337-2.04 6.33L38.72 79.898l-1.26-3.91-14.216 44.21c-1.036 3.223 2.622 5.901 5.343 3.912l37.326-27.287h-4.078z\"/></svg>"},"$:/core/images/storyview-classic":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-storyview-classic tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16C19.581 16 16 19.578 16 23.992v16.016C16 44.422 19.588 48 24 48h80c4.419 0 8-3.578 8-7.992V23.992c0-4.414-3.588-7.992-8-7.992H24zm0 48C19.581 64 16 67.59 16 72c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24zm0 32C19.581 96 16 99.59 16 104c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24z\"/></svg>"},"$:/core/images/storyview-pop":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-storyview-pop tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16C19.581 16 16 19.578 16 23.992v16.016C16 44.422 19.588 48 24 48h80c4.419 0 8-3.578 8-7.992V23.992c0-4.414-3.588-7.992-8-7.992H24zm-7.99 40C11.587 56 8 59.578 8 63.992v16.016C8 84.422 11.584 88 16.01 88h95.98c4.424 0 8.01-3.578 8.01-7.992V63.992c0-4.414-3.584-7.992-8.01-7.992H16.01zM24 96C19.581 96 16 99.59 16 104c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24zm0-32C19.581 64 16 67.59 16 72c0 4.418 3.588 8 8 8h80c4.419 0 8-3.59 8-8 0-4.418-3.588-8-8-8H24z\"/></svg>"},"$:/core/images/storyview-zoomin":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-storyview-zoomin tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M8.007 0A8.01 8.01 0 000 8.007v111.986A8.01 8.01 0 008.007 128h111.986a8.01 8.01 0 008.007-8.007V8.007A8.01 8.01 0 00119.993 0H8.007zm15.992 16A8 8 0 0016 24.009V71.99C16 76.414 19.588 80 24 80h80a8 8 0 008-8.009V24.01c0-4.423-3.588-8.009-8-8.009H24z\"/></svg>"},"$:/core/images/strikethrough":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-strikethrough tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M92.794 38.726h15.422c-.229-6.74-1.514-12.538-3.856-17.393-2.342-4.855-5.54-8.881-9.596-12.08-4.055-3.199-8.767-5.54-14.136-7.025C75.258.743 69.433 0 63.15 0a62.76 62.76 0 00-16.364 2.142C41.474 3.57 36.733 5.74 32.564 8.653c-4.17 2.913-7.511 6.626-10.025 11.138-2.513 4.512-3.77 9.853-3.77 16.022 0 5.597 1.115 10.252 3.342 13.965 2.228 3.712 5.198 6.74 8.91 9.081 3.713 2.342 7.911 4.227 12.595 5.655a194.641 194.641 0 0014.308 3.77c4.855 1.085 9.624 2.142 14.308 3.17 4.683 1.028 8.881 2.37 12.594 4.027 3.713 1.656 6.683 3.798 8.91 6.425 2.228 2.628 3.342 6.055 3.342 10.281 0 4.456-.914 8.111-2.742 10.967a19.953 19.953 0 01-7.197 6.768c-2.97 1.657-6.311 2.828-10.024 3.513a60.771 60.771 0 01-11.052 1.028c-4.57 0-9.025-.571-13.366-1.713-4.34-1.143-8.139-2.913-11.394-5.312-3.256-2.4-5.884-5.455-7.883-9.168-1.999-3.712-2.998-8.139-2.998-13.28H15c0 7.426 1.342 13.852 4.027 19.278 2.684 5.426 6.34 9.881 10.966 13.365 4.627 3.484 9.996 6.083 16.107 7.797 6.112 1.713 12.595 2.57 19.449 2.57 5.597 0 11.223-.657 16.878-1.97 5.655-1.314 10.767-3.428 15.336-6.34 4.57-2.914 8.31-6.683 11.224-11.31 2.913-4.626 4.37-10.195 4.37-16.707 0-6.054-1.115-11.08-3.342-15.079-2.228-3.998-5.198-7.31-8.91-9.938-3.713-2.627-7.911-4.712-12.595-6.254a170.83 170.83 0 00-14.308-4.027 549.669 549.669 0 00-14.308-3.17c-4.683-.971-8.881-2.2-12.594-3.684-3.713-1.485-6.683-3.399-8.91-5.74-2.228-2.342-3.342-5.398-3.342-9.168 0-3.998.771-7.34 2.313-10.024 1.543-2.685 3.599-4.826 6.17-6.426 2.57-1.599 5.51-2.741 8.824-3.427a49.767 49.767 0 0110.11-1.028c8.453 0 15.393 1.97 20.819 5.912 5.426 3.94 8.596 10.31 9.51 19.106z\"/><path d=\"M5 54h118v16H5z\"/></g></svg>"},"$:/core/images/subscript":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-subscript tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M2.272 16h19.91l21.649 33.675L66.414 16h18.708L53.585 61.969l33.809 49.443H67.082L43.296 74.93l-24.187 36.48H0L33.808 61.97 2.272 16zM127.91 128.412H85.328c.059-5.168 1.306-9.681 3.741-13.542 2.435-3.86 5.761-7.216 9.978-10.066a112.388 112.388 0 016.325-4.321 50.09 50.09 0 006.058-4.499c1.841-1.603 3.356-3.34 4.543-5.211 1.188-1.871 1.812-4.024 1.871-6.46 0-1.128-.133-2.33-.4-3.607a9.545 9.545 0 00-1.56-3.564c-.772-1.098-1.84-2.019-3.207-2.761-1.366-.743-3.148-1.114-5.345-1.114-2.02 0-3.697.4-5.033 1.203-1.337.801-2.406 1.9-3.208 3.296-.801 1.396-1.395 3.044-1.781 4.944-.386 1.9-.609 3.95-.668 6.147H86.486c0-3.445.46-6.637 1.38-9.577.921-2.94 2.302-5.478 4.143-7.617 1.841-2.138 4.083-3.815 6.726-5.033 2.643-1.217 5.716-1.826 9.22-1.826 3.802 0 6.979.623 9.533 1.87 2.554 1.248 4.617 2.822 6.191 4.722 1.574 1.9 2.688 3.965 3.341 6.192.653 2.227.98 4.35.98 6.37 0 2.494-.386 4.75-1.158 6.77a21.803 21.803 0 01-3.118 5.568 31.516 31.516 0 01-4.454 4.677 66.788 66.788 0 01-5.167 4.009 139.198 139.198 0 01-5.346 3.563 79.237 79.237 0 00-4.944 3.386c-1.514 1.128-2.836 2.3-3.964 3.518-1.129 1.218-1.9 2.51-2.317 3.876h30.379v9.087z\"/></svg>"},"$:/core/images/superscript":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-superscript tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M2.272 16h19.91l21.649 33.675L66.414 16h18.708L53.585 61.969l33.809 49.443H67.082L43.296 74.93l-24.187 36.48H0L33.808 61.97 2.272 16zM127.91 63.412H85.328c.059-5.168 1.306-9.681 3.741-13.542 2.435-3.86 5.761-7.216 9.978-10.066a112.388 112.388 0 016.325-4.321 50.09 50.09 0 006.058-4.499c1.841-1.603 3.356-3.34 4.543-5.211 1.188-1.871 1.812-4.024 1.871-6.46 0-1.128-.133-2.33-.4-3.607a9.545 9.545 0 00-1.56-3.564c-.772-1.098-1.84-2.019-3.207-2.761-1.366-.743-3.148-1.114-5.345-1.114-2.02 0-3.697.4-5.033 1.203-1.337.801-2.406 1.9-3.208 3.296-.801 1.396-1.395 3.044-1.781 4.944-.386 1.9-.609 3.95-.668 6.147H86.486c0-3.445.46-6.637 1.38-9.577.921-2.94 2.302-5.478 4.143-7.617 1.841-2.138 4.083-3.815 6.726-5.033 2.643-1.217 5.716-1.826 9.22-1.826 3.802 0 6.979.623 9.533 1.87 2.554 1.248 4.617 2.822 6.191 4.722 1.574 1.9 2.688 3.965 3.341 6.192.653 2.227.98 4.35.98 6.37 0 2.494-.386 4.75-1.158 6.77a21.803 21.803 0 01-3.118 5.568 31.516 31.516 0 01-4.454 4.677 66.788 66.788 0 01-5.167 4.009 139.198 139.198 0 01-5.346 3.563 79.237 79.237 0 00-4.944 3.386c-1.514 1.128-2.836 2.3-3.964 3.518-1.129 1.218-1.9 2.51-2.317 3.876h30.379v9.087z\"/></svg>"},"$:/core/images/tag-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-tag-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M18.164 47.66l.004 4.105c.003 3.823 2.19 9.097 4.885 11.792l61.85 61.85c2.697 2.697 7.068 2.69 9.769-.01L125.767 94.3a6.903 6.903 0 00.01-9.77L63.928 22.683c-2.697-2.697-7.976-4.88-11.796-4.881l-27.076-.007a6.902 6.902 0 00-6.91 6.91l.008 9.96.287.033c3.73.411 8.489-.044 13.365-1.153a9.702 9.702 0 0111.14-3.662l.291-.13.128.285a9.7 9.7 0 013.3 2.17c3.796 3.796 3.801 9.945.012 13.734-3.618 3.618-9.386 3.777-13.204.482-5.365 1.122-10.674 1.596-15.309 1.237z\"/><path d=\"M47.633 39.532l.023.051c-9.689 4.356-21.584 6.799-30.396 5.828C5.273 44.089-1.028 36.43 2.443 24.078 5.562 12.976 14.3 4.361 24.047 1.548c10.68-3.083 19.749 1.968 19.749 13.225h-8.623c0-4.859-3.078-6.573-8.735-4.94-6.91 1.995-13.392 8.383-15.694 16.577-1.915 6.818.417 9.653 7.46 10.43 7.126.785 17.531-1.352 25.917-5.121l.027.06.036-.017c1.76-.758 6.266 6.549 3.524 7.74a2.8 2.8 0 01-.075.03z\"/></g></svg>"},"$:/core/images/theme-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-theme-button tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M55.854 66.945a122.626 122.626 0 01-3.9-4.819c-11.064-14.548-16.645-6.888-22.96 0-6.315 6.888 1.664 12.47-4.33 17.335-5.993 4.866-5.623 6.552-15.737-2.35-10.115-8.9-10.815-11.351-6.172-16.43 4.644-5.08 8.524 2.918 18.01-6.108 9.485-9.026 1.517-17.026 1.517-17.026S42.03-2.824 68.42.157c26.39 2.982-9.984-3.86-19.031 27.801-3.874 13.556.72 10.362 8.066 16.087 1.707 1.33 6.428 4.732 12.671 9.318-6.129 5.879-11.157 10.669-14.273 13.582zm11.641 12.947c16.013 17.036 37.742 37.726 45.117 40.42 10.432 3.813 15.388-3.141 15.388-14.79 0-7.151-23.83-26.542-43.924-41.769-7.408 7.156-13.376 12.953-16.58 16.139z\"/><path d=\"M11.069 109.828L46.31 74.587a3.56 3.56 0 115.037-5.032l15.098 15.098a3.56 3.56 0 11-5.032 5.037l-35.24 35.241c-4.171 4.17-10.933 4.17-15.104 0-4.17-4.17-4.17-10.933 0-15.103zM124.344 6.622l5.034 5.034-7.49 12.524-7.613 2.58L61.413 79.62l-5.034-5.034 52.861-52.862 2.58-7.614 12.524-7.49z\"/></g></svg>"},"$:/core/images/timestamp-off":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-timestamp-off tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10a5 5 0 010-10H66.69a5 5 0 015 5c.006 2.757-2.238 5-5 5H49.705z\"/><path d=\"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\"/></g></svg>"},"$:/core/images/timestamp-on":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-timestamp-on tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><path d=\"M58.25 11C26.08 11 0 37.082 0 69.25s26.08 58.25 58.25 58.25c32.175 0 58.25-26.082 58.25-58.25S90.425 11 58.25 11zm0 100.5C34.914 111.5 16 92.586 16 69.25 16 45.92 34.914 27 58.25 27s42.25 18.92 42.25 42.25c0 23.336-18.914 42.25-42.25 42.25zM49.704 10a5 5 0 010-10H66.69a5 5 0 015 5c.006 2.757-2.238 5-5 5H49.705z\"/><path d=\"M13.41 27.178a5.005 5.005 0 01-7.045-.613 5.008 5.008 0 01.616-7.047l9.95-8.348a5 5 0 016.429 7.661l-9.95 8.348zm89.573 0a5.005 5.005 0 007.045-.613 5.008 5.008 0 00-.616-7.047l-9.95-8.348a5 5 0 00-6.428 7.661l9.95 8.348zM65.097 71.072c0 3.826-3.09 6.928-6.897 6.928-3.804.006-6.9-3.102-6.903-6.928 0 0 4.76-39.072 6.903-39.072s6.897 39.072 6.897 39.072z\"/></g></svg>"},"$:/core/images/tip":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-tip tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M64 128.242c35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64-35.346 0-64 28.654-64 64 0 35.346 28.654 64 64 64zm11.936-36.789c-.624 4.129-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349C54.33 94.05 58.824 95.82 64 95.82c5.175 0 9.67-1.769 11.936-4.366zm0 4.492c-.624 4.13-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zm0 4.456c-.624 4.129-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zm0 4.492c-.624 4.13-5.73 7.349-11.936 7.349-6.206 0-11.312-3.22-11.936-7.349 2.266 2.597 6.76 4.366 11.936 4.366 5.175 0 9.67-1.769 11.936-4.366zM64.3 24.242c11.618 0 23.699 7.82 23.699 24.2S75.92 71.754 75.92 83.576c0 5.873-5.868 9.26-11.92 9.26s-12.027-3.006-12.027-9.26C51.973 71.147 40 65.47 40 48.442s12.683-24.2 24.301-24.2z\"/></svg>"},"$:/core/images/transcludify":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-transcludify-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M0 59.482c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 002.75-.932 6.762 6.762 0 002.306-1.907c.651-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 00-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 00-2.75-1.02C1.36 67.377.591 67.288 0 67.288v-7.806zm24.66 0c.591 0 1.36-.089 2.306-.266a10.417 10.417 0 002.75-.932 6.762 6.762 0 002.306-1.907c.65-.828.976-1.863.976-3.104V35.709c0-2.01.414-3.74 1.242-5.19.828-1.448 1.833-2.66 3.016-3.636s2.425-1.7 3.726-2.173c1.3-.473 2.424-.71 3.37-.71h8.073v7.451h-4.88c-1.241 0-2.232.207-2.97.621-.74.414-1.302.932-1.686 1.552a4.909 4.909 0 00-.71 1.996c-.089.71-.133 1.39-.133 2.04v16.677c0 1.715-.325 3.134-.976 4.258-.65 1.123-1.434 2.025-2.35 2.705-.917.68-1.863 1.168-2.839 1.464-.976.296-1.818.473-2.528.532v.178c.71.059 1.552.207 2.528.443.976.237 1.922.68 2.839 1.33.916.651 1.7 1.583 2.35 2.795.65 1.212.976 2.853.976 4.923v16.144c0 .65.044 1.33.133 2.04.089.71.325 1.375.71 1.996.384.621.946 1.139 1.685 1.553.74.414 1.73.62 2.972.62h4.879v7.452h-8.073c-.946 0-2.07-.237-3.37-.71-1.301-.473-2.543-1.197-3.726-2.173-1.183-.976-2.188-2.188-3.016-3.637-.828-1.449-1.242-3.179-1.242-5.19V74.119c0-1.42-.325-2.572-.976-3.46-.65-.886-1.419-1.581-2.306-2.084a8.868 8.868 0 00-2.75-1.02c-.946-.177-1.715-.266-2.306-.266v-7.806zm43.965-3.538L80.6 52.041l2.306 7.097-12.063 3.903 7.628 10.378-6.12 4.435-7.63-10.467-7.45 10.201-5.943-4.524 7.628-10.023-12.152-4.17 2.306-7.096 12.064 4.17V43.347h7.451v12.596zm34.425 11.344c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 00-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 00.71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 00-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 002.262 2.084 8.868 8.868 0 002.75 1.02c.946.177 1.745.266 2.395.266v7.806zm24.66 0c-.65 0-1.449.089-2.395.266-.946.177-1.863.488-2.75.931a6.356 6.356 0 00-2.262 1.908c-.62.828-.931 1.862-.931 3.104v17.564c0 2.01-.414 3.74-1.242 5.189-.828 1.449-1.833 2.661-3.016 3.637s-2.425 1.7-3.726 2.173c-1.3.473-2.424.71-3.37.71h-8.073v-7.451h4.88c1.241 0 2.232-.207 2.97-.621.74-.414 1.302-.932 1.686-1.553a4.9 4.9 0 00.71-1.995c.089-.71.133-1.39.133-2.04V72.432c0-1.715.325-3.134.976-4.258.65-1.124 1.434-2.01 2.35-2.661.917-.65 1.863-1.124 2.839-1.42.976-.295 1.818-.502 2.528-.62v-.178c-.71-.059-1.552-.207-2.528-.443-.976-.237-1.922-.68-2.839-1.33-.916-.651-1.7-1.583-2.35-2.795-.65-1.212-.976-2.853-.976-4.923V37.66c0-.651-.044-1.331-.133-2.04a4.909 4.909 0 00-.71-1.997c-.384-.62-.946-1.138-1.685-1.552-.74-.414-1.73-.62-2.972-.62h-4.879V24h8.073c.946 0 2.07.237 3.37.71 1.301.473 2.543 1.197 3.726 2.173 1.183.976 2.188 2.188 3.016 3.637.828 1.449 1.242 3.178 1.242 5.189v16.943c0 1.419.31 2.572.931 3.46a6.897 6.897 0 002.262 2.084 8.868 8.868 0 002.75 1.02c.946.177 1.745.266 2.395.266v7.806z\"/></svg>"},"$:/core/images/twitter":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-twitter tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M41.626 115.803A73.376 73.376 0 012 104.235c2.022.238 4.08.36 6.166.36 12.111 0 23.258-4.117 32.105-11.023-11.312-.208-20.859-7.653-24.148-17.883a25.98 25.98 0 0011.674-.441C15.971 72.881 7.061 62.474 7.061 49.997c0-.108 0-.216.002-.323a25.824 25.824 0 0011.709 3.22c-6.936-4.617-11.5-12.5-11.5-21.433 0-4.719 1.274-9.142 3.5-12.945 12.75 15.579 31.797 25.83 53.281 26.904-.44-1.884-.67-3.85-.67-5.868 0-14.22 11.575-25.75 25.852-25.75a25.865 25.865 0 0118.869 8.132 51.892 51.892 0 0016.415-6.248c-1.93 6.012-6.029 11.059-11.366 14.246A51.844 51.844 0 00128 25.878a52.428 52.428 0 01-12.9 13.33c.05 1.104.075 2.214.075 3.33 0 34.028-26 73.265-73.549 73.265\"/></svg>"},"$:/core/images/underline":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-underline tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M7 117.421h114.248V128H7v-10.579zm97.871-18.525V0h-16.26v55.856c0 4.463-.605 8.576-1.816 12.338-1.212 3.762-3.03 7.046-5.452 9.851-2.423 2.806-5.452 4.974-9.086 6.504-3.635 1.53-7.939 2.296-12.912 2.296-6.25 0-11.159-1.786-14.73-5.356-3.57-3.571-5.356-8.417-5.356-14.538V0H23v65.038c0 5.356.542 10.234 1.626 14.633 1.084 4.4 2.965 8.194 5.643 11.382 2.678 3.188 6.185 5.643 10.52 7.365 4.337 1.721 9.756 2.582 16.26 2.582 7.27 0 13.582-1.435 18.938-4.304 5.356-2.87 9.755-7.365 13.199-13.486h.382v15.686h15.303z\"/></svg>"},"$:/core/images/unfold-all-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-unfold-all tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"128\" height=\"16\" rx=\"8\"/><rect width=\"128\" height=\"16\" y=\"64\" rx=\"8\"/><path d=\"M63.945 60.624c-2.05 0-4.101-.78-5.666-2.345L35.662 35.662c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L63.94 41.314l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.603 58.279a7.986 7.986 0 01-5.663 2.346zM64.004 124.565c-2.05 0-4.102-.78-5.666-2.345L35.721 99.603c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.191-3.122 11.318.005L64 105.255l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.662 122.22a7.986 7.986 0 01-5.663 2.346z\"/></g></svg>"},"$:/core/images/unfold-button":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-unfold tc-image-button\" viewBox=\"0 0 128 128\"><g fill-rule=\"evenodd\"><rect width=\"128\" height=\"16\" rx=\"8\"/><path d=\"M63.945 63.624c-2.05 0-4.101-.78-5.666-2.345L35.662 38.662c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.192-3.122 11.319.005L63.94 44.314l16.966-16.966c3.124-3.124 8.194-3.129 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319L69.603 61.279a7.986 7.986 0 01-5.663 2.346zM64.004 105.682c-2.05.001-4.102-.78-5.666-2.344L35.721 80.721c-3.125-3.125-3.13-8.195-.005-11.319 3.118-3.118 8.191-3.122 11.318.005L64 86.373l16.966-16.966c3.124-3.125 8.194-3.13 11.318-.005 3.118 3.118 3.122 8.192-.005 11.319l-22.617 22.617a7.986 7.986 0 01-5.663 2.346z\"/></g></svg>"},"$:/core/images/unlocked-padlock":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-unlocked-padlock tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M48.627 64H105v32.01C105 113.674 90.674 128 73.001 128H56C38.318 128 24 113.677 24 96.01V64h6.136c-10.455-12.651-27.364-35.788-4.3-55.142 24.636-20.672 45.835 4.353 55.777 16.201 9.943 11.85-2.676 22.437-12.457 9.892-9.78-12.545-21.167-24.146-33.207-14.043-12.041 10.104-1.757 22.36 8.813 34.958 2.467 2.94 3.641 5.732 3.865 8.134zm19.105 28.364A8.503 8.503 0 0064.5 76a8.5 8.5 0 00-3.498 16.25l-5.095 22.77H72.8l-5.07-22.656z\"/></svg>"},"$:/core/images/up-arrow":{"created":"20150316000544368","modified":"20150316000831867","tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-up-arrow tc-image-button\" viewBox=\"0 0 128 128\"><path d=\"M63.892.281c2.027 0 4.054.77 5.6 2.316l55.98 55.98a7.92 7.92 0 010 11.196c-3.086 3.085-8.104 3.092-11.196 0L63.894 19.393 13.513 69.774a7.92 7.92 0 01-11.196 0c-3.085-3.086-3.092-8.105 0-11.196l55.98-55.98A7.892 7.892 0 0163.893.28z\"/></svg>"},"$:/core/images/video":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-video tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M64 12c-34.91 0-55.273 2.917-58.182 5.833C2.91 20.75 0 41.167 0 64.5c0 23.333 2.91 43.75 5.818 46.667C8.728 114.083 29.091 117 64 117c34.91 0 55.273-2.917 58.182-5.833C125.09 108.25 128 87.833 128 64.5c0-23.333-2.91-43.75-5.818-46.667C119.272 14.917 98.909 12 64 12zm-9.084 32.618c-3.813-2.542-6.905-.879-6.905 3.698v31.368c0 4.585 3.099 6.235 6.905 3.698l22.168-14.779c3.813-2.542 3.806-6.669 0-9.206L54.916 44.618z\"/></svg>"},"$:/core/images/warning":{"tags":"$:/tags/Image","text":"<svg width=\"22pt\" height=\"22pt\" class=\"tc-image-warning tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M57.072 11c3.079-5.333 10.777-5.333 13.856 0l55.426 96c3.079 5.333-.77 12-6.928 12H8.574c-6.158 0-10.007-6.667-6.928-12l55.426-96zM64 37c-4.418 0-8 3.582-8 7.994v28.012C56 77.421 59.59 81 64 81c4.418 0 8-3.582 8-7.994V44.994C72 40.579 68.41 37 64 37zm0 67a8 8 0 100-16 8 8 0 000 16z\"/></svg>"},"$:/language/Buttons/AdvancedSearch/Caption":{"text":"advanced search"},"$:/language/Buttons/AdvancedSearch/Hint":{"text":"Advanced search"},"$:/language/Buttons/Cancel/Caption":{"text":"cancel"},"$:/language/Buttons/Cancel/Hint":{"text":"Discard changes to this tiddler"},"$:/language/Buttons/Clone/Caption":{"text":"clone"},"$:/language/Buttons/Clone/Hint":{"text":"Clone this tiddler"},"$:/language/Buttons/Close/Caption":{"text":"close"},"$:/language/Buttons/Close/Hint":{"text":"Close this tiddler"},"$:/language/Buttons/CloseAll/Caption":{"text":"close all"},"$:/language/Buttons/CloseAll/Hint":{"text":"Close all tiddlers"},"$:/language/Buttons/CloseOthers/Caption":{"text":"close others"},"$:/language/Buttons/CloseOthers/Hint":{"text":"Close other tiddlers"},"$:/language/Buttons/ControlPanel/Caption":{"text":"control panel"},"$:/language/Buttons/ControlPanel/Hint":{"text":"Open control panel"},"$:/language/Buttons/CopyToClipboard/Caption":{"text":"copy to clipboard"},"$:/language/Buttons/CopyToClipboard/Hint":{"text":"Copy this text to the clipboard"},"$:/language/Buttons/Delete/Caption":{"text":"delete"},"$:/language/Buttons/Delete/Hint":{"text":"Delete this tiddler"},"$:/language/Buttons/Edit/Caption":{"text":"edit"},"$:/language/Buttons/Edit/Hint":{"text":"Edit this tiddler"},"$:/language/Buttons/Encryption/Caption":{"text":"encryption"},"$:/language/Buttons/Encryption/Hint":{"text":"Set or clear a password for saving this wiki"},"$:/language/Buttons/Encryption/ClearPassword/Caption":{"text":"clear password"},"$:/language/Buttons/Encryption/ClearPassword/Hint":{"text":"Clear the password and save this wiki without encryption"},"$:/language/Buttons/Encryption/SetPassword/Caption":{"text":"set password"},"$:/language/Buttons/Encryption/SetPassword/Hint":{"text":"Set a password for saving this wiki with encryption"},"$:/language/Buttons/ExportPage/Caption":{"text":"export all"},"$:/language/Buttons/ExportPage/Hint":{"text":"Export all tiddlers"},"$:/language/Buttons/ExportTiddler/Caption":{"text":"export tiddler"},"$:/language/Buttons/ExportTiddler/Hint":{"text":"Export tiddler"},"$:/language/Buttons/ExportTiddlers/Caption":{"text":"export tiddlers"},"$:/language/Buttons/ExportTiddlers/Hint":{"text":"Export tiddlers"},"$:/language/Buttons/SidebarSearch/Hint":{"text":"Select the sidebar search field"},"$:/language/Buttons/Fold/Caption":{"text":"fold tiddler"},"$:/language/Buttons/Fold/Hint":{"text":"Fold the body of this tiddler"},"$:/language/Buttons/Fold/FoldBar/Caption":{"text":"fold-bar"},"$:/language/Buttons/Fold/FoldBar/Hint":{"text":"Optional bars to fold and unfold tiddlers"},"$:/language/Buttons/Unfold/Caption":{"text":"unfold tiddler"},"$:/language/Buttons/Unfold/Hint":{"text":"Unfold the body of this tiddler"},"$:/language/Buttons/FoldOthers/Caption":{"text":"fold other tiddlers"},"$:/language/Buttons/FoldOthers/Hint":{"text":"Fold the bodies of other opened tiddlers"},"$:/language/Buttons/FoldAll/Caption":{"text":"fold all tiddlers"},"$:/language/Buttons/FoldAll/Hint":{"text":"Fold the bodies of all opened tiddlers"},"$:/language/Buttons/UnfoldAll/Caption":{"text":"unfold all tiddlers"},"$:/language/Buttons/UnfoldAll/Hint":{"text":"Unfold the bodies of all opened tiddlers"},"$:/language/Buttons/FullScreen/Caption":{"text":"full-screen"},"$:/language/Buttons/FullScreen/Hint":{"text":"Enter or leave full-screen mode"},"$:/language/Buttons/Help/Caption":{"text":"help"},"$:/language/Buttons/Help/Hint":{"text":"Show help panel"},"$:/language/Buttons/Import/Caption":{"text":"import"},"$:/language/Buttons/Import/Hint":{"text":"Import many types of file including text, image, TiddlyWiki or JSON"},"$:/language/Buttons/Info/Caption":{"text":"info"},"$:/language/Buttons/Info/Hint":{"text":"Show information for this tiddler"},"$:/language/Buttons/Home/Caption":{"text":"home"},"$:/language/Buttons/Home/Hint":{"text":"Open the default tiddlers"},"$:/language/Buttons/Language/Caption":{"text":"language"},"$:/language/Buttons/Language/Hint":{"text":"Choose the user interface language"},"$:/language/Buttons/Manager/Caption":{"text":"tiddler manager"},"$:/language/Buttons/Manager/Hint":{"text":"Open tiddler manager"},"$:/language/Buttons/More/Caption":{"text":"more"},"$:/language/Buttons/More/Hint":{"text":"More actions"},"$:/language/Buttons/NewHere/Caption":{"text":"new here"},"$:/language/Buttons/NewHere/Hint":{"text":"Create a new tiddler tagged with this one"},"$:/language/Buttons/NewJournal/Caption":{"text":"new journal"},"$:/language/Buttons/NewJournal/Hint":{"text":"Create a new journal tiddler"},"$:/language/Buttons/NewJournalHere/Caption":{"text":"new journal here"},"$:/language/Buttons/NewJournalHere/Hint":{"text":"Create a new journal tiddler tagged with this one"},"$:/language/Buttons/NewImage/Caption":{"text":"new image"},"$:/language/Buttons/NewImage/Hint":{"text":"Create a new image tiddler"},"$:/language/Buttons/NewMarkdown/Caption":{"text":"new Markdown tiddler"},"$:/language/Buttons/NewMarkdown/Hint":{"text":"Create a new Markdown tiddler"},"$:/language/Buttons/NewTiddler/Caption":{"text":"new tiddler"},"$:/language/Buttons/NewTiddler/Hint":{"text":"Create a new tiddler"},"$:/language/Buttons/OpenWindow/Caption":{"text":"open in new window"},"$:/language/Buttons/OpenWindow/Hint":{"text":"Open tiddler in new window"},"$:/language/Buttons/Palette/Caption":{"text":"palette"},"$:/language/Buttons/Palette/Hint":{"text":"Choose the colour palette"},"$:/language/Buttons/Permalink/Caption":{"text":"permalink"},"$:/language/Buttons/Permalink/Hint":{"text":"Set browser address bar to a direct link to this tiddler"},"$:/language/Buttons/Permaview/Caption":{"text":"permaview"},"$:/language/Buttons/Permaview/Hint":{"text":"Set browser address bar to a direct link to all the tiddlers in this story"},"$:/language/Buttons/Print/Caption":{"text":"print page"},"$:/language/Buttons/Print/Hint":{"text":"Print the current page"},"$:/language/Buttons/Refresh/Caption":{"text":"refresh"},"$:/language/Buttons/Refresh/Hint":{"text":"Perform a full refresh of the wiki"},"$:/language/Buttons/Save/Caption":{"text":"ok"},"$:/language/Buttons/Save/Hint":{"text":"Confirm changes to this tiddler"},"$:/language/Buttons/SaveWiki/Caption":{"text":"save changes"},"$:/language/Buttons/SaveWiki/Hint":{"text":"Save changes"},"$:/language/Buttons/StoryView/Caption":{"text":"storyview"},"$:/language/Buttons/StoryView/Hint":{"text":"Choose the story visualisation"},"$:/language/Buttons/HideSideBar/Caption":{"text":"hide sidebar"},"$:/language/Buttons/HideSideBar/Hint":{"text":"Hide sidebar"},"$:/language/Buttons/ShowSideBar/Caption":{"text":"show sidebar"},"$:/language/Buttons/ShowSideBar/Hint":{"text":"Show sidebar"},"$:/language/Buttons/TagManager/Caption":{"text":"tag manager"},"$:/language/Buttons/TagManager/Hint":{"text":"Open tag manager"},"$:/language/Buttons/Timestamp/Caption":{"text":"timestamps"},"$:/language/Buttons/Timestamp/Hint":{"text":"Choose whether modifications update timestamps"},"$:/language/Buttons/Timestamp/On/Caption":{"text":"timestamps are on"},"$:/language/Buttons/Timestamp/On/Hint":{"text":"Update timestamps when tiddlers are modified"},"$:/language/Buttons/Timestamp/Off/Caption":{"text":"timestamps are off"},"$:/language/Buttons/Timestamp/Off/Hint":{"text":"Don't update timestamps when tiddlers are modified"},"$:/language/Buttons/Theme/Caption":{"text":"theme"},"$:/language/Buttons/Theme/Hint":{"text":"Choose the display theme"},"$:/language/Buttons/Bold/Caption":{"text":"bold"},"$:/language/Buttons/Bold/Hint":{"text":"Apply bold formatting to selection"},"$:/language/Buttons/Clear/Caption":{"text":"clear"},"$:/language/Buttons/Clear/Hint":{"text":"Clear image to solid colour"},"$:/language/Buttons/EditorHeight/Caption":{"text":"editor height"},"$:/language/Buttons/EditorHeight/Caption/Auto":{"text":"Automatically adjust height to fit content"},"$:/language/Buttons/EditorHeight/Caption/Fixed":{"text":"Fixed height:"},"$:/language/Buttons/EditorHeight/Hint":{"text":"Choose the height of the text editor"},"$:/language/Buttons/Excise/Caption":{"text":"excise"},"$:/language/Buttons/Excise/Caption/Excise":{"text":"Perform excision"},"$:/language/Buttons/Excise/Caption/MacroName":{"text":"Macro name:"},"$:/language/Buttons/Excise/Caption/NewTitle":{"text":"Title of new tiddler:"},"$:/language/Buttons/Excise/Caption/Replace":{"text":"Replace excised text with:"},"$:/language/Buttons/Excise/Caption/Replace/Macro":{"text":"macro"},"$:/language/Buttons/Excise/Caption/Replace/Link":{"text":"link"},"$:/language/Buttons/Excise/Caption/Replace/Transclusion":{"text":"transclusion"},"$:/language/Buttons/Excise/Caption/Tag":{"text":"Tag new tiddler with the title of this tiddler"},"$:/language/Buttons/Excise/Caption/TiddlerExists":{"text":"Warning: tiddler already exists"},"$:/language/Buttons/Excise/Hint":{"text":"Excise the selected text into a new tiddler"},"$:/language/Buttons/Heading1/Caption":{"text":"heading 1"},"$:/language/Buttons/Heading1/Hint":{"text":"Apply heading level 1 formatting to lines containing selection"},"$:/language/Buttons/Heading2/Caption":{"text":"heading 2"},"$:/language/Buttons/Heading2/Hint":{"text":"Apply heading level 2 formatting to lines containing selection"},"$:/language/Buttons/Heading3/Caption":{"text":"heading 3"},"$:/language/Buttons/Heading3/Hint":{"text":"Apply heading level 3 formatting to lines containing selection"},"$:/language/Buttons/Heading4/Caption":{"text":"heading 4"},"$:/language/Buttons/Heading4/Hint":{"text":"Apply heading level 4 formatting to lines containing selection"},"$:/language/Buttons/Heading5/Caption":{"text":"heading 5"},"$:/language/Buttons/Heading5/Hint":{"text":"Apply heading level 5 formatting to lines containing selection"},"$:/language/Buttons/Heading6/Caption":{"text":"heading 6"},"$:/language/Buttons/Heading6/Hint":{"text":"Apply heading level 6 formatting to lines containing selection"},"$:/language/Buttons/Italic/Caption":{"text":"italic"},"$:/language/Buttons/Italic/Hint":{"text":"Apply italic formatting to selection"},"$:/language/Buttons/LineWidth/Caption":{"text":"line width"},"$:/language/Buttons/LineWidth/Hint":{"text":"Set line width for painting"},"$:/language/Buttons/Link/Caption":{"text":"link"},"$:/language/Buttons/Link/Hint":{"text":"Create wikitext link"},"$:/language/Buttons/Linkify/Caption":{"text":"wikilink"},"$:/language/Buttons/Linkify/Hint":{"text":"Wrap selection in square brackets"},"$:/language/Buttons/ListBullet/Caption":{"text":"bulleted list"},"$:/language/Buttons/ListBullet/Hint":{"text":"Apply bulleted list formatting to lines containing selection"},"$:/language/Buttons/ListNumber/Caption":{"text":"numbered list"},"$:/language/Buttons/ListNumber/Hint":{"text":"Apply numbered list formatting to lines containing selection"},"$:/language/Buttons/MonoBlock/Caption":{"text":"monospaced block"},"$:/language/Buttons/MonoBlock/Hint":{"text":"Apply monospaced block formatting to lines containing selection"},"$:/language/Buttons/MonoLine/Caption":{"text":"monospaced"},"$:/language/Buttons/MonoLine/Hint":{"text":"Apply monospaced character formatting to selection"},"$:/language/Buttons/Opacity/Caption":{"text":"opacity"},"$:/language/Buttons/Opacity/Hint":{"text":"Set painting opacity"},"$:/language/Buttons/Paint/Caption":{"text":"paint colour"},"$:/language/Buttons/Paint/Hint":{"text":"Set painting colour"},"$:/language/Buttons/Picture/Caption":{"text":"picture"},"$:/language/Buttons/Picture/Hint":{"text":"Insert picture"},"$:/language/Buttons/Preview/Caption":{"text":"preview"},"$:/language/Buttons/Preview/Hint":{"text":"Show preview pane"},"$:/language/Buttons/PreviewType/Caption":{"text":"preview type"},"$:/language/Buttons/PreviewType/Hint":{"text":"Choose preview type"},"$:/language/Buttons/Quote/Caption":{"text":"quote"},"$:/language/Buttons/Quote/Hint":{"text":"Apply quoted text formatting to lines containing selection"},"$:/language/Buttons/RotateLeft/Caption":{"text":"rotate left"},"$:/language/Buttons/RotateLeft/Hint":{"text":"Rotate image left by 90 degrees"},"$:/language/Buttons/Size/Caption":{"text":"image size"},"$:/language/Buttons/Size/Caption/Height":{"text":"Height:"},"$:/language/Buttons/Size/Caption/Resize":{"text":"Resize image"},"$:/language/Buttons/Size/Caption/Width":{"text":"Width:"},"$:/language/Buttons/Size/Hint":{"text":"Set image size"},"$:/language/Buttons/Stamp/Caption":{"text":"stamp"},"$:/language/Buttons/Stamp/Caption/New":{"text":"Add your own"},"$:/language/Buttons/Stamp/Hint":{"text":"Insert a preconfigured snippet of text"},"$:/language/Buttons/Stamp/New/Title":{"text":"Name as shown in menu"},"$:/language/Buttons/Stamp/New/Text":{"text":"Text of snippet. (Remember to add a descriptive title in the caption field)."},"$:/language/Buttons/Strikethrough/Caption":{"text":"strikethrough"},"$:/language/Buttons/Strikethrough/Hint":{"text":"Apply strikethrough formatting to selection"},"$:/language/Buttons/Subscript/Caption":{"text":"subscript"},"$:/language/Buttons/Subscript/Hint":{"text":"Apply subscript formatting to selection"},"$:/language/Buttons/Superscript/Caption":{"text":"superscript"},"$:/language/Buttons/Superscript/Hint":{"text":"Apply superscript formatting to selection"},"$:/language/Buttons/ToggleSidebar/Hint":{"text":"Toggle the sidebar visibility"},"$:/language/Buttons/Transcludify/Caption":{"text":"transclusion"},"$:/language/Buttons/Transcludify/Hint":{"text":"Wrap selection in curly brackets"},"$:/language/Buttons/Underline/Caption":{"text":"underline"},"$:/language/Buttons/Underline/Hint":{"text":"Apply underline formatting to selection"},"$:/language/ControlPanel/Advanced/Caption":{"text":"Advanced"},"$:/language/ControlPanel/Advanced/Hint":{"text":"Internal information about this TiddlyWiki"},"$:/language/ControlPanel/Appearance/Caption":{"text":"Appearance"},"$:/language/ControlPanel/Appearance/Hint":{"text":"Ways to customise the appearance of your TiddlyWiki."},"$:/language/ControlPanel/Basics/AnimDuration/Prompt":{"text":"Animation duration"},"$:/language/ControlPanel/Basics/AutoFocus/Prompt":{"text":"Default focus field for new tiddlers"},"$:/language/ControlPanel/Basics/Caption":{"text":"Basics"},"$:/language/ControlPanel/Basics/DefaultTiddlers/BottomHint":{"text":"Use [[double square brackets]] for titles with spaces. Or you can choose to <$button set=\"$:/DefaultTiddlers\" setTo=\"[list[$:/StoryList]]\">retain story ordering</$button>"},"$:/language/ControlPanel/Basics/DefaultTiddlers/Prompt":{"text":"Default tiddlers"},"$:/language/ControlPanel/Basics/DefaultTiddlers/TopHint":{"text":"Choose which tiddlers are displayed at startup"},"$:/language/ControlPanel/Basics/Language/Prompt":{"text":"Hello! Current language:"},"$:/language/ControlPanel/Basics/NewJournal/Title/Prompt":{"text":"Title of new journal tiddlers"},"$:/language/ControlPanel/Basics/NewJournal/Text/Prompt":{"text":"Text for new journal tiddlers"},"$:/language/ControlPanel/Basics/NewJournal/Tags/Prompt":{"text":"Tags for new journal tiddlers"},"$:/language/ControlPanel/Basics/NewTiddler/Title/Prompt":{"text":"Title of new tiddlers"},"$:/language/ControlPanel/Basics/NewTiddler/Tags/Prompt":{"text":"Tags for new tiddlers"},"$:/language/ControlPanel/Basics/OverriddenShadowTiddlers/Prompt":{"text":"Number of overridden shadow tiddlers"},"$:/language/ControlPanel/Basics/RemoveTags":{"text":"Update to current format"},"$:/language/ControlPanel/Basics/RemoveTags/Hint":{"text":"Update the tags configuration to the latest format"},"$:/language/ControlPanel/Basics/ShadowTiddlers/Prompt":{"text":"Number of shadow tiddlers"},"$:/language/ControlPanel/Basics/Subtitle/Prompt":{"text":"Subtitle"},"$:/language/ControlPanel/Basics/SystemTiddlers/Prompt":{"text":"Number of system tiddlers"},"$:/language/ControlPanel/Basics/Tags/Prompt":{"text":"Number of tags"},"$:/language/ControlPanel/Basics/Tiddlers/Prompt":{"text":"Number of tiddlers"},"$:/language/ControlPanel/Basics/Title/Prompt":{"text":"Title of this ~TiddlyWiki"},"$:/language/ControlPanel/Basics/Username/Prompt":{"text":"Username for signing edits"},"$:/language/ControlPanel/Basics/Version/Prompt":{"text":"~TiddlyWiki version"},"$:/language/ControlPanel/EditorTypes/Caption":{"text":"Editor Types"},"$:/language/ControlPanel/EditorTypes/Editor/Caption":{"text":"Editor"},"$:/language/ControlPanel/EditorTypes/Hint":{"text":"These tiddlers determine which editor is used to edit specific tiddler types."},"$:/language/ControlPanel/EditorTypes/Type/Caption":{"text":"Type"},"$:/language/ControlPanel/Info/Caption":{"text":"Info"},"$:/language/ControlPanel/Info/Hint":{"text":"Information about this TiddlyWiki"},"$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt":{"text":"Type shortcut here"},"$:/language/ControlPanel/KeyboardShortcuts/Add/Caption":{"text":"add shortcut"},"$:/language/ControlPanel/KeyboardShortcuts/Caption":{"text":"Keyboard Shortcuts"},"$:/language/ControlPanel/KeyboardShortcuts/Hint":{"text":"Manage keyboard shortcut assignments"},"$:/language/ControlPanel/KeyboardShortcuts/NoShortcuts/Caption":{"text":"No keyboard shortcuts assigned"},"$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint":{"text":"remove keyboard shortcut"},"$:/language/ControlPanel/KeyboardShortcuts/Platform/All":{"text":"All platforms"},"$:/language/ControlPanel/KeyboardShortcuts/Platform/Mac":{"text":"Macintosh platform only"},"$:/language/ControlPanel/KeyboardShortcuts/Platform/NonMac":{"text":"Non-Macintosh platforms only"},"$:/language/ControlPanel/KeyboardShortcuts/Platform/Linux":{"text":"Linux platform only"},"$:/language/ControlPanel/KeyboardShortcuts/Platform/NonLinux":{"text":"Non-Linux platforms only"},"$:/language/ControlPanel/KeyboardShortcuts/Platform/Windows":{"text":"Windows platform only"},"$:/language/ControlPanel/KeyboardShortcuts/Platform/NonWindows":{"text":"Non-Windows platforms only"},"$:/language/ControlPanel/LayoutSwitcher/Caption":{"text":"Layout"},"$:/language/ControlPanel/LoadedModules/Caption":{"text":"Loaded Modules"},"$:/language/ControlPanel/LoadedModules/Hint":{"text":"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."},"$:/language/ControlPanel/Palette/Caption":{"text":"Palette"},"$:/language/ControlPanel/Palette/Editor/Clone/Caption":{"text":"clone"},"$:/language/ControlPanel/Palette/Editor/Clone/Prompt":{"text":"It is recommended that you clone this shadow palette before editing it"},"$:/language/ControlPanel/Palette/Editor/Delete/Hint":{"text":"delete this entry from the current palette"},"$:/language/ControlPanel/Palette/Editor/Names/External/Show":{"text":"Show color names that are not part of the current palette"},"$:/language/ControlPanel/Palette/Editor/Prompt/Modified":{"text":"This shadow palette has been modified"},"$:/language/ControlPanel/Palette/Editor/Prompt":{"text":"Editing"},"$:/language/ControlPanel/Palette/Editor/Reset/Caption":{"text":"reset"},"$:/language/ControlPanel/Palette/HideEditor/Caption":{"text":"hide editor"},"$:/language/ControlPanel/Palette/Prompt":{"text":"Current palette:"},"$:/language/ControlPanel/Palette/ShowEditor/Caption":{"text":"show editor"},"$:/language/ControlPanel/Parsing/Caption":{"text":"Parsing"},"$:/language/ControlPanel/Parsing/Hint":{"text":"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 <$text text=\"TiddlyWiki\"/> from functioning correctly. Use [[safe mode|https://tiddlywiki.com/#SafeMode]] to restore normal operation."},"$:/language/ControlPanel/Parsing/Block/Caption":{"text":"Block Parse Rules"},"$:/language/ControlPanel/Parsing/Inline/Caption":{"text":"Inline Parse Rules"},"$:/language/ControlPanel/Parsing/Pragma/Caption":{"text":"Pragma Parse Rules"},"$:/language/ControlPanel/Plugins/Add/Caption":{"text":"Get more plugins"},"$:/language/ControlPanel/Plugins/Add/Hint":{"text":"Install plugins from the official library"},"$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint":{"text":"This plugin is already installed at version <$text text=<<installedVersion>>/>"},"$:/language/ControlPanel/Plugins/AlsoRequires":{"text":"Also requires:"},"$:/language/ControlPanel/Plugins/Caption":{"text":"Plugins"},"$:/language/ControlPanel/Plugins/Disable/Caption":{"text":"disable"},"$:/language/ControlPanel/Plugins/Disable/Hint":{"text":"Disable this plugin when reloading page"},"$:/language/ControlPanel/Plugins/Disabled/Status":{"text":"(disabled)"},"$:/language/ControlPanel/Plugins/Downgrade/Caption":{"text":"downgrade"},"$:/language/ControlPanel/Plugins/Empty/Hint":{"text":"None"},"$:/language/ControlPanel/Plugins/Enable/Caption":{"text":"enable"},"$:/language/ControlPanel/Plugins/Enable/Hint":{"text":"Enable this plugin when reloading page"},"$:/language/ControlPanel/Plugins/Install/Caption":{"text":"install"},"$:/language/ControlPanel/Plugins/Installed/Hint":{"text":"Currently installed plugins:"},"$:/language/ControlPanel/Plugins/Languages/Caption":{"text":"Languages"},"$:/language/ControlPanel/Plugins/Languages/Hint":{"text":"Language pack plugins"},"$:/language/ControlPanel/Plugins/NoInfoFound/Hint":{"text":"No ''\"<$text text=<<currentTab>>/>\"'' found"},"$:/language/ControlPanel/Plugins/NotInstalled/Hint":{"text":"This plugin is not currently installed"},"$:/language/ControlPanel/Plugins/OpenPluginLibrary":{"text":"open plugin library"},"$:/language/ControlPanel/Plugins/ClosePluginLibrary":{"text":"close plugin library"},"$:/language/ControlPanel/Plugins/PluginWillRequireReload":{"text":"(requires reload)"},"$:/language/ControlPanel/Plugins/Plugins/Caption":{"text":"Plugins"},"$:/language/ControlPanel/Plugins/Plugins/Hint":{"text":"Plugins"},"$:/language/ControlPanel/Plugins/Reinstall/Caption":{"text":"reinstall"},"$:/language/ControlPanel/Plugins/Themes/Caption":{"text":"Themes"},"$:/language/ControlPanel/Plugins/Themes/Hint":{"text":"Theme plugins"},"$:/language/ControlPanel/Plugins/Update/Caption":{"text":"update"},"$:/language/ControlPanel/Plugins/Updates/Caption":{"text":"Updates"},"$:/language/ControlPanel/Plugins/Updates/Hint":{"text":"Available updates to installed plugins"},"$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption":{"text":"Update <<update-count>> plugins"},"$:/language/ControlPanel/Plugins/SubPluginPrompt":{"text":"With <<count>> sub-plugins available"},"$:/language/ControlPanel/Saving/Caption":{"text":"Saving"},"$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Description":{"text":"Permit automatic saving for the download saver"},"$:/language/ControlPanel/Saving/DownloadSaver/AutoSave/Hint":{"text":"Enable Autosave for Download Saver"},"$:/language/ControlPanel/Saving/DownloadSaver/Caption":{"text":"Download Saver"},"$:/language/ControlPanel/Saving/DownloadSaver/Hint":{"text":"These settings apply to the HTML5-compatible download saver"},"$:/language/ControlPanel/Saving/General/Caption":{"text":"General"},"$:/language/ControlPanel/Saving/General/Hint":{"text":"These settings apply to all the loaded savers"},"$:/language/ControlPanel/Saving/Hint":{"text":"Settings used for saving the entire TiddlyWiki as a single file via a saver module"},"$:/language/ControlPanel/Saving/GitService/Branch":{"text":"Target branch for saving"},"$:/language/ControlPanel/Saving/GitService/CommitMessage":{"text":"Saved by TiddlyWiki"},"$:/language/ControlPanel/Saving/GitService/Description":{"text":"These settings are only used when saving to <<service-name>>"},"$:/language/ControlPanel/Saving/GitService/Filename":{"text":"Filename of target file (e.g. `index.html`)"},"$:/language/ControlPanel/Saving/GitService/Path":{"text":"Path to target file (e.g. `/wiki/`)"},"$:/language/ControlPanel/Saving/GitService/Repo":{"text":"Target repository (e.g. `Jermolene/TiddlyWiki5`)"},"$:/language/ControlPanel/Saving/GitService/ServerURL":{"text":"Server API URL"},"$:/language/ControlPanel/Saving/GitService/UserName":{"text":"Username"},"$:/language/ControlPanel/Saving/GitService/GitHub/Caption":{"text":"~GitHub Saver"},"$:/language/ControlPanel/Saving/GitService/GitHub/Password":{"text":"Password, OAUTH token, or personal access token (see [[GitHub help page|https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line]] for details)"},"$:/language/ControlPanel/Saving/GitService/GitLab/Caption":{"text":"~GitLab Saver"},"$:/language/ControlPanel/Saving/GitService/GitLab/Password":{"text":"Personal access token for API (see [[GitLab help page|https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html]] for details)"},"$:/language/ControlPanel/Saving/GitService/Gitea/Caption":{"text":"Gitea Saver"},"$:/language/ControlPanel/Saving/GitService/Gitea/Password":{"text":"Personal access token for API (via Gitea’s web interface: `Settings | Applications | Generate New Token`)"},"$:/language/ControlPanel/Saving/TiddlySpot/Advanced/Heading":{"text":"Advanced Settings"},"$:/language/ControlPanel/Saving/TiddlySpot/BackupDir":{"text":"Backup Directory"},"$:/language/ControlPanel/Saving/TiddlySpot/ControlPanel":{"text":"~TiddlySpot Control Panel"},"$:/language/ControlPanel/Saving/TiddlySpot/Backups":{"text":"Backups"},"$:/language/ControlPanel/Saving/TiddlySpot/Caption":{"text":"~TiddlySpot Saver"},"$:/language/ControlPanel/Saving/TiddlySpot/Description":{"text":"These settings are only used when saving to [[TiddlySpot|http://tiddlyspot.com]], [[TiddlyHost|https://tiddlyhost.com]], or a compatible remote server. See [[here|https://github.com/simonbaird/tiddlyhost/wiki/TiddlySpot-Saver-configuration-for-Tiddlyhost-and-Tiddlyspot]] for information on ~TiddlySpot and ~TiddlyHost saving configuration."},"$:/language/ControlPanel/Saving/TiddlySpot/Filename":{"text":"Upload Filename"},"$:/language/ControlPanel/Saving/TiddlySpot/Heading":{"text":"~TiddlySpot"},"$:/language/ControlPanel/Saving/TiddlySpot/Hint":{"text":"//The server URL defaults to `http://<wikiname>.tiddlyspot.com/store.cgi` and can be changed to use a custom server address, e.g. `http://example.com/store.php`.//"},"$:/language/ControlPanel/Saving/TiddlySpot/Password":{"text":"Password"},"$:/language/ControlPanel/Saving/TiddlySpot/ReadOnly":{"text":"Note that [[TiddlySpot|http://tiddlyspot.com]] no longer allows the creation of new sites. For new sites you can use [[TiddlyHost|https://tiddlyhost.com]], a new hosting service which replaces ~TiddlySpot."},"$:/language/ControlPanel/Saving/TiddlySpot/ServerURL":{"text":"Server URL"},"$:/language/ControlPanel/Saving/TiddlySpot/UploadDir":{"text":"Upload Directory"},"$:/language/ControlPanel/Saving/TiddlySpot/UserName":{"text":"Wiki Name"},"$:/language/ControlPanel/Settings/AutoSave/Caption":{"text":"Autosave"},"$:/language/ControlPanel/Settings/AutoSave/Disabled/Description":{"text":"Do not save changes automatically"},"$:/language/ControlPanel/Settings/AutoSave/Enabled/Description":{"text":"Save changes automatically"},"$:/language/ControlPanel/Settings/AutoSave/Hint":{"text":"Attempt to automatically save changes during editing when using a supporting saver"},"$:/language/ControlPanel/Settings/CamelCase/Caption":{"text":"Camel Case Wiki Links"},"$:/language/ControlPanel/Settings/CamelCase/Hint":{"text":"You can globally disable automatic linking of ~CamelCase phrases. Requires reload to take effect"},"$:/language/ControlPanel/Settings/CamelCase/Description":{"text":"Enable automatic ~CamelCase linking"},"$:/language/ControlPanel/Settings/Caption":{"text":"Settings"},"$:/language/ControlPanel/Settings/EditorToolbar/Caption":{"text":"Editor Toolbar"},"$:/language/ControlPanel/Settings/EditorToolbar/Hint":{"text":"Enable or disable the editor toolbar:"},"$:/language/ControlPanel/Settings/EditorToolbar/Description":{"text":"Show editor toolbar"},"$:/language/ControlPanel/Settings/InfoPanelMode/Caption":{"text":"Tiddler Info Panel Mode"},"$:/language/ControlPanel/Settings/InfoPanelMode/Hint":{"text":"Control when the tiddler info panel closes:"},"$:/language/ControlPanel/Settings/InfoPanelMode/Popup/Description":{"text":"Tiddler info panel closes automatically"},"$:/language/ControlPanel/Settings/InfoPanelMode/Sticky/Description":{"text":"Tiddler info panel stays open until explicitly closed"},"$:/language/ControlPanel/Settings/Hint":{"text":"These settings let you customise the behaviour of TiddlyWiki."},"$:/language/ControlPanel/Settings/NavigationAddressBar/Caption":{"text":"Navigation Address Bar"},"$:/language/ControlPanel/Settings/NavigationAddressBar/Hint":{"text":"Behaviour of the browser address bar when navigating to a tiddler:"},"$:/language/ControlPanel/Settings/NavigationAddressBar/No/Description":{"text":"Do not update the address bar"},"$:/language/ControlPanel/Settings/NavigationAddressBar/Permalink/Description":{"text":"Include the target tiddler"},"$:/language/ControlPanel/Settings/NavigationAddressBar/Permaview/Description":{"text":"Include the target tiddler and the current story sequence"},"$:/language/ControlPanel/Settings/NavigationHistory/Caption":{"text":"Navigation History"},"$:/language/ControlPanel/Settings/NavigationHistory/Hint":{"text":"Update browser history when navigating to a tiddler:"},"$:/language/ControlPanel/Settings/NavigationHistory/No/Description":{"text":"Do not update history"},"$:/language/ControlPanel/Settings/NavigationHistory/Yes/Description":{"text":"Update history"},"$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption":{"text":"Permalink/permaview Mode"},"$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Hint":{"text":"Choose how permalink/permaview is handled:"},"$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/CopyToClipboard/Description":{"text":"Copy permalink/permaview URL to clipboard"},"$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/UpdateAddressBar/Description":{"text":"Update address bar with permalink/permaview URL"},"$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption":{"text":"Performance Instrumentation"},"$:/language/ControlPanel/Settings/PerformanceInstrumentation/Hint":{"text":"Displays performance statistics in the browser developer console. Requires reload to take effect"},"$:/language/ControlPanel/Settings/PerformanceInstrumentation/Description":{"text":"Enable performance instrumentation"},"$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption":{"text":"Toolbar Button Style"},"$:/language/ControlPanel/Settings/ToolbarButtonStyle/Hint":{"text":"Choose the style for toolbar buttons:"},"$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless":{"text":"Borderless"},"$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed":{"text":"Boxed"},"$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded":{"text":"Rounded"},"$:/language/ControlPanel/Settings/ToolbarButtons/Caption":{"text":"Toolbar Buttons"},"$:/language/ControlPanel/Settings/ToolbarButtons/Hint":{"text":"Default toolbar button appearance:"},"$:/language/ControlPanel/Settings/ToolbarButtons/Icons/Description":{"text":"Include icon"},"$:/language/ControlPanel/Settings/ToolbarButtons/Text/Description":{"text":"Include text"},"$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption":{"text":"Default Sidebar Tab"},"$:/language/ControlPanel/Settings/DefaultSidebarTab/Hint":{"text":"Specify which sidebar tab is displayed by default"},"$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption":{"text":"Default More Sidebar Tab"},"$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Hint":{"text":"Specify which More sidebar tab is displayed by default"},"$:/language/ControlPanel/Settings/LinkToBehaviour/Caption":{"text":"Tiddler Opening Behaviour"},"$:/language/ControlPanel/Settings/LinkToBehaviour/InsideRiver/Hint":{"text":"Navigation from //within// the story river"},"$:/language/ControlPanel/Settings/LinkToBehaviour/OutsideRiver/Hint":{"text":"Navigation from //outside// the story river"},"$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAbove":{"text":"Open above the current tiddler"},"$:/language/ControlPanel/Settings/LinkToBehaviour/OpenBelow":{"text":"Open below the current tiddler"},"$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtTop":{"text":"Open at the top of the story river"},"$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtBottom":{"text":"Open at the bottom of the story river"},"$:/language/ControlPanel/Settings/TitleLinks/Caption":{"text":"Tiddler Titles"},"$:/language/ControlPanel/Settings/TitleLinks/Hint":{"text":"Optionally display tiddler titles as links"},"$:/language/ControlPanel/Settings/TitleLinks/No/Description":{"text":"Do not display tiddler titles as links"},"$:/language/ControlPanel/Settings/TitleLinks/Yes/Description":{"text":"Display tiddler titles as links"},"$:/language/ControlPanel/Settings/MissingLinks/Caption":{"text":"Wiki Links"},"$:/language/ControlPanel/Settings/MissingLinks/Hint":{"text":"Choose whether to link to tiddlers that do not exist yet"},"$:/language/ControlPanel/Settings/MissingLinks/Description":{"text":"Enable links to missing tiddlers"},"$:/language/ControlPanel/StoryView/Caption":{"text":"Story View"},"$:/language/ControlPanel/StoryView/Prompt":{"text":"Current view:"},"$:/language/ControlPanel/Stylesheets/Caption":{"text":"Stylesheets"},"$:/language/ControlPanel/Stylesheets/Expand/Caption":{"text":"Expand All"},"$:/language/ControlPanel/Stylesheets/Hint":{"text":"This is the rendered CSS of the current stylesheet tiddlers tagged with <<tag \"$:/tags/Stylesheet\">>"},"$:/language/ControlPanel/Stylesheets/Restore/Caption":{"text":"Restore"},"$:/language/ControlPanel/Theme/Caption":{"text":"Theme"},"$:/language/ControlPanel/Theme/Prompt":{"text":"Current theme:"},"$:/language/ControlPanel/TiddlerFields/Caption":{"text":"Tiddler Fields"},"$:/language/ControlPanel/TiddlerFields/Hint":{"text":"This is the full set of TiddlerFields in use in this wiki (including system tiddlers but excluding shadow tiddlers)."},"$:/language/ControlPanel/Toolbars/Caption":{"text":"Toolbars"},"$:/language/ControlPanel/Toolbars/EditToolbar/Caption":{"text":"Edit Toolbar"},"$:/language/ControlPanel/Toolbars/EditToolbar/Hint":{"text":"Choose which buttons are displayed for tiddlers in edit mode. Drag and drop to change the ordering"},"$:/language/ControlPanel/Toolbars/Hint":{"text":"Select which toolbar buttons are displayed"},"$:/language/ControlPanel/Toolbars/PageControls/Caption":{"text":"Page Toolbar"},"$:/language/ControlPanel/Toolbars/PageControls/Hint":{"text":"Choose which buttons are displayed on the main page toolbar. Drag and drop to change the ordering"},"$:/language/ControlPanel/Toolbars/EditorToolbar/Caption":{"text":"Editor Toolbar"},"$:/language/ControlPanel/Toolbars/EditorToolbar/Hint":{"text":"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"},"$:/language/ControlPanel/Toolbars/ViewToolbar/Caption":{"text":"View Toolbar"},"$:/language/ControlPanel/Toolbars/ViewToolbar/Hint":{"text":"Choose which buttons are displayed for tiddlers in view mode. Drag and drop to change the ordering"},"$:/language/ControlPanel/Tools/Download/Full/Caption":{"text":"Download full wiki"},"$:/language/Date/DaySuffix/1":{"text":"st"},"$:/language/Date/DaySuffix/2":{"text":"nd"},"$:/language/Date/DaySuffix/3":{"text":"rd"},"$:/language/Date/DaySuffix/4":{"text":"th"},"$:/language/Date/DaySuffix/5":{"text":"th"},"$:/language/Date/DaySuffix/6":{"text":"th"},"$:/language/Date/DaySuffix/7":{"text":"th"},"$:/language/Date/DaySuffix/8":{"text":"th"},"$:/language/Date/DaySuffix/9":{"text":"th"},"$:/language/Date/DaySuffix/10":{"text":"th"},"$:/language/Date/DaySuffix/11":{"text":"th"},"$:/language/Date/DaySuffix/12":{"text":"th"},"$:/language/Date/DaySuffix/13":{"text":"th"},"$:/language/Date/DaySuffix/14":{"text":"th"},"$:/language/Date/DaySuffix/15":{"text":"th"},"$:/language/Date/DaySuffix/16":{"text":"th"},"$:/language/Date/DaySuffix/17":{"text":"th"},"$:/language/Date/DaySuffix/18":{"text":"th"},"$:/language/Date/DaySuffix/19":{"text":"th"},"$:/language/Date/DaySuffix/20":{"text":"th"},"$:/language/Date/DaySuffix/21":{"text":"st"},"$:/language/Date/DaySuffix/22":{"text":"nd"},"$:/language/Date/DaySuffix/23":{"text":"rd"},"$:/language/Date/DaySuffix/24":{"text":"th"},"$:/language/Date/DaySuffix/25":{"text":"th"},"$:/language/Date/DaySuffix/26":{"text":"th"},"$:/language/Date/DaySuffix/27":{"text":"th"},"$:/language/Date/DaySuffix/28":{"text":"th"},"$:/language/Date/DaySuffix/29":{"text":"th"},"$:/language/Date/DaySuffix/30":{"text":"th"},"$:/language/Date/DaySuffix/31":{"text":"st"},"$:/language/Date/Long/Day/0":{"text":"Sunday"},"$:/language/Date/Long/Day/1":{"text":"Monday"},"$:/language/Date/Long/Day/2":{"text":"Tuesday"},"$:/language/Date/Long/Day/3":{"text":"Wednesday"},"$:/language/Date/Long/Day/4":{"text":"Thursday"},"$:/language/Date/Long/Day/5":{"text":"Friday"},"$:/language/Date/Long/Day/6":{"text":"Saturday"},"$:/language/Date/Long/Month/1":{"text":"January"},"$:/language/Date/Long/Month/2":{"text":"February"},"$:/language/Date/Long/Month/3":{"text":"March"},"$:/language/Date/Long/Month/4":{"text":"April"},"$:/language/Date/Long/Month/5":{"text":"May"},"$:/language/Date/Long/Month/6":{"text":"June"},"$:/language/Date/Long/Month/7":{"text":"July"},"$:/language/Date/Long/Month/8":{"text":"August"},"$:/language/Date/Long/Month/9":{"text":"September"},"$:/language/Date/Long/Month/10":{"text":"October"},"$:/language/Date/Long/Month/11":{"text":"November"},"$:/language/Date/Long/Month/12":{"text":"December"},"$:/language/Date/Period/am":{"text":"am"},"$:/language/Date/Period/pm":{"text":"pm"},"$:/language/Date/Short/Day/0":{"text":"Sun"},"$:/language/Date/Short/Day/1":{"text":"Mon"},"$:/language/Date/Short/Day/2":{"text":"Tue"},"$:/language/Date/Short/Day/3":{"text":"Wed"},"$:/language/Date/Short/Day/4":{"text":"Thu"},"$:/language/Date/Short/Day/5":{"text":"Fri"},"$:/language/Date/Short/Day/6":{"text":"Sat"},"$:/language/Date/Short/Month/1":{"text":"Jan"},"$:/language/Date/Short/Month/2":{"text":"Feb"},"$:/language/Date/Short/Month/3":{"text":"Mar"},"$:/language/Date/Short/Month/4":{"text":"Apr"},"$:/language/Date/Short/Month/5":{"text":"May"},"$:/language/Date/Short/Month/6":{"text":"Jun"},"$:/language/Date/Short/Month/7":{"text":"Jul"},"$:/language/Date/Short/Month/8":{"text":"Aug"},"$:/language/Date/Short/Month/9":{"text":"Sep"},"$:/language/Date/Short/Month/10":{"text":"Oct"},"$:/language/Date/Short/Month/11":{"text":"Nov"},"$:/language/Date/Short/Month/12":{"text":"Dec"},"$:/language/RelativeDate/Future/Days":{"text":"<<period>> days from now"},"$:/language/RelativeDate/Future/Hours":{"text":"<<period>> hours from now"},"$:/language/RelativeDate/Future/Minutes":{"text":"<<period>> minutes from now"},"$:/language/RelativeDate/Future/Months":{"text":"<<period>> months from now"},"$:/language/RelativeDate/Future/Second":{"text":"1 second from now"},"$:/language/RelativeDate/Future/Seconds":{"text":"<<period>> seconds from now"},"$:/language/RelativeDate/Future/Years":{"text":"<<period>> years from now"},"$:/language/RelativeDate/Past/Days":{"text":"<<period>> days ago"},"$:/language/RelativeDate/Past/Hours":{"text":"<<period>> hours ago"},"$:/language/RelativeDate/Past/Minutes":{"text":"<<period>> minutes ago"},"$:/language/RelativeDate/Past/Months":{"text":"<<period>> months ago"},"$:/language/RelativeDate/Past/Second":{"text":"1 second ago"},"$:/language/RelativeDate/Past/Seconds":{"text":"<<period>> seconds ago"},"$:/language/RelativeDate/Past/Years":{"text":"<<period>> years ago"},"$:/language/Docs/ModuleTypes/allfilteroperator":{"text":"A sub-operator for the ''all'' filter operator."},"$:/language/Docs/ModuleTypes/animation":{"text":"Animations that may be used with the RevealWidget."},"$:/language/Docs/ModuleTypes/authenticator":{"text":"Defines how requests are authenticated by the built-in HTTP server."},"$:/language/Docs/ModuleTypes/bitmapeditoroperation":{"text":"A bitmap editor toolbar operation."},"$:/language/Docs/ModuleTypes/command":{"text":"Commands that can be executed under Node.js."},"$:/language/Docs/ModuleTypes/config":{"text":"Data to be inserted into `$tw.config`."},"$:/language/Docs/ModuleTypes/filteroperator":{"text":"Individual filter operator methods."},"$:/language/Docs/ModuleTypes/global":{"text":"Global data to be inserted into `$tw`."},"$:/language/Docs/ModuleTypes/info":{"text":"Publishes system information via the [[$:/temp/info-plugin]] pseudo-plugin."},"$:/language/Docs/ModuleTypes/isfilteroperator":{"text":"Operands for the ''is'' filter operator."},"$:/language/Docs/ModuleTypes/library":{"text":"Generic module type for general purpose JavaScript modules."},"$:/language/Docs/ModuleTypes/macro":{"text":"JavaScript macro definitions."},"$:/language/Docs/ModuleTypes/parser":{"text":"Parsers for different content types."},"$:/language/Docs/ModuleTypes/route":{"text":"Defines how individual URL patterns are handled by the built-in HTTP server."},"$:/language/Docs/ModuleTypes/saver":{"text":"Savers handle different methods for saving files from the browser."},"$:/language/Docs/ModuleTypes/startup":{"text":"Startup functions."},"$:/language/Docs/ModuleTypes/storyview":{"text":"Story views customise the animation and behaviour of list widgets."},"$:/language/Docs/ModuleTypes/texteditoroperation":{"text":"A text editor toolbar operation."},"$:/language/Docs/ModuleTypes/tiddlerdeserializer":{"text":"Converts different content types into tiddlers."},"$:/language/Docs/ModuleTypes/tiddlerfield":{"text":"Defines the behaviour of an individual tiddler field."},"$:/language/Docs/ModuleTypes/tiddlermethod":{"text":"Adds methods to the `$tw.Tiddler` prototype."},"$:/language/Docs/ModuleTypes/upgrader":{"text":"Applies upgrade processing to tiddlers during an upgrade/import."},"$:/language/Docs/ModuleTypes/utils":{"text":"Adds methods to `$tw.utils`."},"$:/language/Docs/ModuleTypes/utils-browser":{"text":"Adds browser-specific methods to `$tw.utils`."},"$:/language/Docs/ModuleTypes/utils-node":{"text":"Adds Node.js-specific methods to `$tw.utils`."},"$:/language/Docs/ModuleTypes/widget":{"text":"Widgets encapsulate DOM rendering and refreshing."},"$:/language/Docs/ModuleTypes/wikimethod":{"text":"Adds methods to `$tw.Wiki`."},"$:/language/Docs/ModuleTypes/wikirule":{"text":"Individual parser rules for the main WikiText parser."},"$:/language/Docs/PaletteColours/alert-background":{"text":"Alert background"},"$:/language/Docs/PaletteColours/alert-border":{"text":"Alert border"},"$:/language/Docs/PaletteColours/alert-highlight":{"text":"Alert highlight"},"$:/language/Docs/PaletteColours/alert-muted-foreground":{"text":"Alert muted foreground"},"$:/language/Docs/PaletteColours/background":{"text":"General background"},"$:/language/Docs/PaletteColours/blockquote-bar":{"text":"Blockquote bar"},"$:/language/Docs/PaletteColours/button-background":{"text":"Default button background"},"$:/language/Docs/PaletteColours/button-border":{"text":"Default button border"},"$:/language/Docs/PaletteColours/button-foreground":{"text":"Default button foreground"},"$:/language/Docs/PaletteColours/dirty-indicator":{"text":"Unsaved changes indicator"},"$:/language/Docs/PaletteColours/code-background":{"text":"Code background"},"$:/language/Docs/PaletteColours/code-border":{"text":"Code border"},"$:/language/Docs/PaletteColours/code-foreground":{"text":"Code foreground"},"$:/language/Docs/PaletteColours/download-background":{"text":"Download button background"},"$:/language/Docs/PaletteColours/download-foreground":{"text":"Download button foreground"},"$:/language/Docs/PaletteColours/dragger-background":{"text":"Dragger background"},"$:/language/Docs/PaletteColours/dragger-foreground":{"text":"Dragger foreground"},"$:/language/Docs/PaletteColours/dropdown-background":{"text":"Dropdown background"},"$:/language/Docs/PaletteColours/dropdown-border":{"text":"Dropdown border"},"$:/language/Docs/PaletteColours/dropdown-tab-background-selected":{"text":"Dropdown tab background for selected tabs"},"$:/language/Docs/PaletteColours/dropdown-tab-background":{"text":"Dropdown tab background"},"$:/language/Docs/PaletteColours/dropzone-background":{"text":"Dropzone background"},"$:/language/Docs/PaletteColours/external-link-background-hover":{"text":"External link background hover"},"$:/language/Docs/PaletteColours/external-link-background-visited":{"text":"External link background visited"},"$:/language/Docs/PaletteColours/external-link-background":{"text":"External link background"},"$:/language/Docs/PaletteColours/external-link-foreground-hover":{"text":"External link foreground hover"},"$:/language/Docs/PaletteColours/external-link-foreground-visited":{"text":"External link foreground visited"},"$:/language/Docs/PaletteColours/external-link-foreground":{"text":"External link foreground"},"$:/language/Docs/PaletteColours/foreground":{"text":"General foreground"},"$:/language/Docs/PaletteColours/menubar-background":{"text":"Menu bar background"},"$:/language/Docs/PaletteColours/menubar-foreground":{"text":"Menu bar foreground"},"$:/language/Docs/PaletteColours/message-background":{"text":"Message box background"},"$:/language/Docs/PaletteColours/message-border":{"text":"Message box border"},"$:/language/Docs/PaletteColours/message-foreground":{"text":"Message box foreground"},"$:/language/Docs/PaletteColours/modal-backdrop":{"text":"Modal backdrop"},"$:/language/Docs/PaletteColours/modal-background":{"text":"Modal background"},"$:/language/Docs/PaletteColours/modal-border":{"text":"Modal border"},"$:/language/Docs/PaletteColours/modal-footer-background":{"text":"Modal footer background"},"$:/language/Docs/PaletteColours/modal-footer-border":{"text":"Modal footer border"},"$:/language/Docs/PaletteColours/modal-header-border":{"text":"Modal header border"},"$:/language/Docs/PaletteColours/muted-foreground":{"text":"General muted foreground"},"$:/language/Docs/PaletteColours/notification-background":{"text":"Notification background"},"$:/language/Docs/PaletteColours/notification-border":{"text":"Notification border"},"$:/language/Docs/PaletteColours/page-background":{"text":"Page background"},"$:/language/Docs/PaletteColours/pre-background":{"text":"Preformatted code background"},"$:/language/Docs/PaletteColours/pre-border":{"text":"Preformatted code border"},"$:/language/Docs/PaletteColours/primary":{"text":"General primary"},"$:/language/Docs/PaletteColours/select-tag-background":{"text":"`<select>` element background"},"$:/language/Docs/PaletteColours/select-tag-foreground":{"text":"`<select>` element text"},"$:/language/Docs/PaletteColours/sidebar-button-foreground":{"text":"Sidebar button foreground"},"$:/language/Docs/PaletteColours/sidebar-controls-foreground-hover":{"text":"Sidebar controls foreground hover"},"$:/language/Docs/PaletteColours/sidebar-controls-foreground":{"text":"Sidebar controls foreground"},"$:/language/Docs/PaletteColours/sidebar-foreground-shadow":{"text":"Sidebar foreground shadow"},"$:/language/Docs/PaletteColours/sidebar-foreground":{"text":"Sidebar foreground"},"$:/language/Docs/PaletteColours/sidebar-muted-foreground-hover":{"text":"Sidebar muted foreground hover"},"$:/language/Docs/PaletteColours/sidebar-muted-foreground":{"text":"Sidebar muted foreground"},"$:/language/Docs/PaletteColours/sidebar-tab-background-selected":{"text":"Sidebar tab background for selected tabs"},"$:/language/Docs/PaletteColours/sidebar-tab-background":{"text":"Sidebar tab background"},"$:/language/Docs/PaletteColours/sidebar-tab-border-selected":{"text":"Sidebar tab border for selected tabs"},"$:/language/Docs/PaletteColours/sidebar-tab-border":{"text":"Sidebar tab border"},"$:/language/Docs/PaletteColours/sidebar-tab-divider":{"text":"Sidebar tab divider"},"$:/language/Docs/PaletteColours/sidebar-tab-foreground-selected":{"text":"Sidebar tab foreground for selected tabs"},"$:/language/Docs/PaletteColours/sidebar-tab-foreground":{"text":"Sidebar tab foreground"},"$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground-hover":{"text":"Sidebar tiddler link foreground hover"},"$:/language/Docs/PaletteColours/sidebar-tiddler-link-foreground":{"text":"Sidebar tiddler link foreground"},"$:/language/Docs/PaletteColours/site-title-foreground":{"text":"Site title foreground"},"$:/language/Docs/PaletteColours/static-alert-foreground":{"text":"Static alert foreground"},"$:/language/Docs/PaletteColours/tab-background-selected":{"text":"Tab background for selected tabs"},"$:/language/Docs/PaletteColours/tab-background":{"text":"Tab background"},"$:/language/Docs/PaletteColours/tab-border-selected":{"text":"Tab border for selected tabs"},"$:/language/Docs/PaletteColours/tab-border":{"text":"Tab border"},"$:/language/Docs/PaletteColours/tab-divider":{"text":"Tab divider"},"$:/language/Docs/PaletteColours/tab-foreground-selected":{"text":"Tab foreground for selected tabs"},"$:/language/Docs/PaletteColours/tab-foreground":{"text":"Tab foreground"},"$:/language/Docs/PaletteColours/table-border":{"text":"Table border"},"$:/language/Docs/PaletteColours/table-footer-background":{"text":"Table footer background"},"$:/language/Docs/PaletteColours/table-header-background":{"text":"Table header background"},"$:/language/Docs/PaletteColours/tag-background":{"text":"Tag background"},"$:/language/Docs/PaletteColours/tag-foreground":{"text":"Tag foreground"},"$:/language/Docs/PaletteColours/tiddler-background":{"text":"Tiddler background"},"$:/language/Docs/PaletteColours/tiddler-border":{"text":"Tiddler border"},"$:/language/Docs/PaletteColours/tiddler-controls-foreground-hover":{"text":"Tiddler controls foreground hover"},"$:/language/Docs/PaletteColours/tiddler-controls-foreground-selected":{"text":"Tiddler controls foreground for selected controls"},"$:/language/Docs/PaletteColours/tiddler-controls-foreground":{"text":"Tiddler controls foreground"},"$:/language/Docs/PaletteColours/tiddler-editor-background":{"text":"Tiddler editor background"},"$:/language/Docs/PaletteColours/tiddler-editor-border-image":{"text":"Tiddler editor border image"},"$:/language/Docs/PaletteColours/tiddler-editor-border":{"text":"Tiddler editor border"},"$:/language/Docs/PaletteColours/tiddler-editor-fields-even":{"text":"Tiddler editor background for even fields"},"$:/language/Docs/PaletteColours/tiddler-editor-fields-odd":{"text":"Tiddler editor background for odd fields"},"$:/language/Docs/PaletteColours/tiddler-info-background":{"text":"Tiddler info panel background"},"$:/language/Docs/PaletteColours/tiddler-info-border":{"text":"Tiddler info panel border"},"$:/language/Docs/PaletteColours/tiddler-info-tab-background":{"text":"Tiddler info panel tab background"},"$:/language/Docs/PaletteColours/tiddler-link-background":{"text":"Tiddler link background"},"$:/language/Docs/PaletteColours/tiddler-link-foreground":{"text":"Tiddler link foreground"},"$:/language/Docs/PaletteColours/tiddler-subtitle-foreground":{"text":"Tiddler subtitle foreground"},"$:/language/Docs/PaletteColours/tiddler-title-foreground":{"text":"Tiddler title foreground"},"$:/language/Docs/PaletteColours/toolbar-new-button":{"text":"Toolbar 'new tiddler' button foreground"},"$:/language/Docs/PaletteColours/toolbar-options-button":{"text":"Toolbar 'options' button foreground"},"$:/language/Docs/PaletteColours/toolbar-save-button":{"text":"Toolbar 'save' button foreground"},"$:/language/Docs/PaletteColours/toolbar-info-button":{"text":"Toolbar 'info' button foreground"},"$:/language/Docs/PaletteColours/toolbar-edit-button":{"text":"Toolbar 'edit' button foreground"},"$:/language/Docs/PaletteColours/toolbar-close-button":{"text":"Toolbar 'close' button foreground"},"$:/language/Docs/PaletteColours/toolbar-delete-button":{"text":"Toolbar 'delete' button foreground"},"$:/language/Docs/PaletteColours/toolbar-cancel-button":{"text":"Toolbar 'cancel' button foreground"},"$:/language/Docs/PaletteColours/toolbar-done-button":{"text":"Toolbar 'done' button foreground"},"$:/language/Docs/PaletteColours/untagged-background":{"text":"Untagged pill background"},"$:/language/Docs/PaletteColours/very-muted-foreground":{"text":"Very muted foreground"},"$:/language/EditTemplate/Body/External/Hint":{"text":"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"},"$:/language/EditTemplate/Body/Placeholder":{"text":"Type the text for this tiddler"},"$:/language/EditTemplate/Body/Preview/Type/Output":{"text":"output"},"$:/language/EditTemplate/Field/Remove/Caption":{"text":"remove field"},"$:/language/EditTemplate/Field/Remove/Hint":{"text":"Remove field"},"$:/language/EditTemplate/Field/Dropdown/Caption":{"text":"field list"},"$:/language/EditTemplate/Field/Dropdown/Hint":{"text":"Show field list"},"$:/language/EditTemplate/Fields/Add/Button":{"text":"add"},"$:/language/EditTemplate/Fields/Add/Button/Hint":{"text":"Add the new field to the tiddler"},"$:/language/EditTemplate/Fields/Add/Name/Placeholder":{"text":"field name"},"$:/language/EditTemplate/Fields/Add/Prompt":{"text":"Add a new field:"},"$:/language/EditTemplate/Fields/Add/Value/Placeholder":{"text":"field value"},"$:/language/EditTemplate/Fields/Add/Dropdown/System":{"text":"System fields"},"$:/language/EditTemplate/Fields/Add/Dropdown/User":{"text":"User fields"},"$:/language/EditTemplate/Shadow/Warning":{"text":"This is a shadow tiddler. Any changes you make will override the default version from the plugin <<pluginLink>>"},"$:/language/EditTemplate/Shadow/OverriddenWarning":{"text":"This is a modified shadow tiddler. You can revert to the default version in the plugin <<pluginLink>> by deleting this tiddler"},"$:/language/EditTemplate/Tags/Add/Button":{"text":"add"},"$:/language/EditTemplate/Tags/Add/Button/Hint":{"text":"add tag"},"$:/language/EditTemplate/Tags/Add/Placeholder":{"text":"tag name"},"$:/language/EditTemplate/Tags/ClearInput/Caption":{"text":"clear input"},"$:/language/EditTemplate/Tags/ClearInput/Hint":{"text":"Clear tag input"},"$:/language/EditTemplate/Tags/Dropdown/Caption":{"text":"tag list"},"$:/language/EditTemplate/Tags/Dropdown/Hint":{"text":"Show tag list"},"$:/language/EditTemplate/Title/BadCharacterWarning":{"text":"Warning: avoid using any of the characters <<bad-chars>> in tiddler titles"},"$:/language/EditTemplate/Title/Exists/Prompt":{"text":"Target tiddler already exists"},"$:/language/EditTemplate/Title/Relink/Prompt":{"text":"Update ''<$text text=<<fromTitle>>/>'' to ''<$text text=<<toTitle>>/>'' in the //tags// and //list// fields of other tiddlers"},"$:/language/EditTemplate/Title/References/Prompt":{"text":"The following references to this tiddler will not be automatically updated:"},"$:/language/EditTemplate/Type/Dropdown/Caption":{"text":"content type list"},"$:/language/EditTemplate/Type/Dropdown/Hint":{"text":"Show content type list"},"$:/language/EditTemplate/Type/Delete/Caption":{"text":"delete content type"},"$:/language/EditTemplate/Type/Delete/Hint":{"text":"Delete content type"},"$:/language/EditTemplate/Type/Placeholder":{"text":"content type"},"$:/language/EditTemplate/Type/Prompt":{"text":"Type:"},"$:/language/Exporters/StaticRiver":{"text":"Static HTML"},"$:/language/Exporters/JsonFile":{"text":"JSON file"},"$:/language/Exporters/CsvFile":{"text":"CSV file"},"$:/language/Exporters/TidFile":{"text":"\".tid\" file"},"$:/language/Docs/Fields/_canonical_uri":{"text":"The full URI of an external image tiddler"},"$:/language/Docs/Fields/bag":{"text":"The name of the bag from which a tiddler came"},"$:/language/Docs/Fields/caption":{"text":"The text to be displayed on a tab or button"},"$:/language/Docs/Fields/color":{"text":"The CSS color value associated with a tiddler"},"$:/language/Docs/Fields/component":{"text":"The name of the component responsible for an [[alert tiddler|AlertMechanism]]"},"$:/language/Docs/Fields/current-tiddler":{"text":"Used to cache the top tiddler in a [[history list|HistoryMechanism]]"},"$:/language/Docs/Fields/created":{"text":"The date a tiddler was created"},"$:/language/Docs/Fields/creator":{"text":"The name of the person who created a tiddler"},"$:/language/Docs/Fields/dependents":{"text":"For a plugin, lists the dependent plugin titles"},"$:/language/Docs/Fields/description":{"text":"The descriptive text for a plugin, or a modal dialogue"},"$:/language/Docs/Fields/draft.of":{"text":"For draft tiddlers, contains the title of the tiddler of which this is a draft"},"$:/language/Docs/Fields/draft.title":{"text":"For draft tiddlers, contains the proposed new title of the tiddler"},"$:/language/Docs/Fields/footer":{"text":"The footer text for a wizard"},"$:/language/Docs/Fields/hide-body":{"text":"The view template will hide bodies of tiddlers if set to: ''yes''"},"$:/language/Docs/Fields/icon":{"text":"The title of the tiddler containing the icon associated with a tiddler"},"$:/language/Docs/Fields/library":{"text":"Indicates that a tiddler should be saved as a JavaScript library if set to: ''yes''"},"$:/language/Docs/Fields/list":{"text":"An ordered list of tiddler titles associated with a tiddler"},"$:/language/Docs/Fields/list-before":{"text":"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"},"$:/language/Docs/Fields/list-after":{"text":"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"},"$:/language/Docs/Fields/modified":{"text":"The date and time at which a tiddler was last modified"},"$:/language/Docs/Fields/modifier":{"text":"The tiddler title associated with the person who last modified a tiddler"},"$:/language/Docs/Fields/name":{"text":"The human readable name associated with a plugin tiddler"},"$:/language/Docs/Fields/plugin-priority":{"text":"A numerical value indicating the priority of a plugin tiddler"},"$:/language/Docs/Fields/plugin-type":{"text":"The type of plugin in a plugin tiddler"},"$:/language/Docs/Fields/revision":{"text":"The revision of the tiddler held at the server"},"$:/language/Docs/Fields/released":{"text":"Date of a TiddlyWiki release"},"$:/language/Docs/Fields/source":{"text":"The source URL associated with a tiddler"},"$:/language/Docs/Fields/subtitle":{"text":"The subtitle text for a wizard"},"$:/language/Docs/Fields/tags":{"text":"A list of tags associated with a tiddler"},"$:/language/Docs/Fields/text":{"text":"The body text of a tiddler"},"$:/language/Docs/Fields/throttle.refresh":{"text":"If present, throttles refreshes of this tiddler"},"$:/language/Docs/Fields/title":{"text":"The unique name of a tiddler"},"$:/language/Docs/Fields/toc-link":{"text":"Suppresses the tiddler's link in a Table of Contents tree if set to: ''no''"},"$:/language/Docs/Fields/type":{"text":"The content type of a tiddler"},"$:/language/Docs/Fields/version":{"text":"Version information for a plugin"},"$:/language/Docs/Fields/_is_skinny":{"text":"If present, indicates that the tiddler text field must be loaded from the server"},"$:/language/Filters/AllTiddlers":{"text":"All tiddlers except system tiddlers"},"$:/language/Filters/RecentSystemTiddlers":{"text":"Recently modified tiddlers, including system tiddlers"},"$:/language/Filters/RecentTiddlers":{"text":"Recently modified tiddlers"},"$:/language/Filters/AllTags":{"text":"All tags except system tags"},"$:/language/Filters/Missing":{"text":"Missing tiddlers"},"$:/language/Filters/Drafts":{"text":"Draft tiddlers"},"$:/language/Filters/Orphans":{"text":"Orphan tiddlers"},"$:/language/Filters/SystemTiddlers":{"text":"System tiddlers"},"$:/language/Filters/ShadowTiddlers":{"text":"Shadow tiddlers"},"$:/language/Filters/OverriddenShadowTiddlers":{"text":"Overridden shadow tiddlers"},"$:/language/Filters/SessionTiddlers":{"text":"Tiddlers modified since the wiki was loaded"},"$:/language/Filters/SystemTags":{"text":"System tags"},"$:/language/Filters/StoryList":{"text":"Tiddlers in the story river, excluding <$text text=\"$:/AdvancedSearch\"/>"},"$:/language/Filters/TypedTiddlers":{"text":"Non wiki-text tiddlers"},"GettingStarted":{"text":"\\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<div class=\"tc-control-panel\">\n\n|<$link to=\"$:/SiteTitle\"><<lingo Title/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteTitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/SiteSubtitle\"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteSubtitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/DefaultTiddlers\"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit tag=\"textarea\" tiddler=\"$:/DefaultTiddlers\"/><br>//<<lingo DefaultTiddlers/BottomHint>>// |\n</div>\n\nSee the [[control panel|$:/ControlPanel]] for more options.\n"},"$:/language/Help/build":{"description":"Automatically run configured commands","text":"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 <target> [<target> ...]\n```\n\nBuild targets are defined in the `tiddlywiki.info` file of a wiki folder.\n\n"},"$:/language/Help/clearpassword":{"description":"Clear a password for subsequent crypto operations","text":"Clear the password for subsequent crypto operations\n\n```\n--clearpassword\n```\n"},"$:/language/Help/default":{"text":"\\define commandTitle()\n$:/language/Help/$(command)$\n\\end\n```\nusage: tiddlywiki [<wikifolder>] [--<command> [<args>...]...]\n```\n\nAvailable commands:\n\n<ul>\n<$list filter=\"[commands[]sort[title]]\" variable=\"command\">\n<li><$link to=<<commandTitle>>><$macrocall $name=\"command\" $type=\"text/plain\" $output=\"text/plain\"/></$link>: <$transclude tiddler=<<commandTitle>> field=\"description\"/></li>\n</$list>\n</ul>\n\nTo get detailed help on a command:\n\n```\ntiddlywiki --help <command>\n```\n"},"$:/language/Help/deletetiddlers":{"description":"Deletes a group of tiddlers","text":"<<.from-version \"5.1.20\">> Deletes a group of tiddlers identified by a filter.\n\n```\n--deletetiddlers <filter>\n```\n"},"$:/language/Help/editions":{"description":"Lists the available editions of TiddlyWiki","text":"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"},"$:/language/Help/fetch":{"description":"Fetch tiddlers from wiki by URL","text":"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 <url> <import-filter> <transform-filter>\n--fetch files <url-filter> <import-filter> <transform-filter>\n--fetch raw-file <url> <transform-filter>\n--fetch raw-files <url-filter> <transform-filter>\n```\n\nThe \"file\" and \"files\" 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 \"raw-file\" and \"raw-files\" variants fetch the specified files and then store the raw file data in tiddlers, without applying the import logic.\n\nWith the \"file\" and \"raw-file\" variants only a single file is fetched and the first parameter is the URL of the file to read.\n\nWith the \"files\" and \"raw-files\" 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 \"remote-server\" that have a field \"url\" the filter `[tag[remote-server]get[url]]` will retrieve all the available URLs.\n\nFor the \"file\" and \"files\" variants, the `<import-filter>` parameter specifies a filter determining which tiddlers are imported. It defaults to `[all[tiddlers]]` if not provided.\n\nFor all variants, the `<transform-filter>` 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 \"https://tiddlywiki.com/\" \"[!is[system]]\" \"\" --rendertiddler \"$:/core/templates/exporters/JsonFile\" output.json text/plain \"\" exportFilter \"[!is[system]]\"\n```\n\nThe following example retrieves the \"favicon\" file from tiddlywiki.com and saves it in a file called \"output.ico\". Note that the intermediate tiddler \"Icon Tiddler\" is quoted in the \"--fetch\" command because it is being used as a transformation filter to replace the default title, while there are no quotes for the \"--savetiddler\" command because it is being used directly as a title.\n\n```\ntiddlywiki --verbose --fetch raw-file \"https://tiddlywiki.com/favicon.ico\" \"[[Icon Tiddler]]\" --savetiddler \"Icon Tiddler\" output.ico\n```\n\n"},"$:/language/Help/help":{"description":"Display help for TiddlyWiki commands","text":"Displays help text for a command:\n\n```\n--help [<command>]\n```\n\nIf the command name is omitted then a list of available commands is displayed.\n"},"$:/language/Help/import":{"description":"Import tiddlers from a file","text":"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 <filepath> <deserializer> [<title>] [<encoding>]\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 \"utf8\", but can be \"base64\" for importing binary files.\n\nNote that TiddlyWiki will not import an older version of an already loaded plugin.\n"},"$:/language/Help/init":{"description":"Initialise a new wiki folder","text":"Initialise an empty [[WikiFolder|WikiFolders]] with a copy of the specified edition.\n\n```\n--init <edition> [<edition> ...]\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 \"edition\" 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"},"$:/language/Help/listen":{"description":"Provides an HTTP server interface to TiddlyWiki","text":"Serves a wiki over HTTP.\n\nThe listen command uses NamedCommandParameters:\n\n```\n--listen [<name>=<value>]...\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 \"127.0.0.1\" aka \"localhost\")\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 \"8080\")\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 \"yes\" to disable CSRF checks (defaults to \"no\")\n* ''sse-enabled'' - set to \"yes\" to enable Server-sent events (defaults to \"no\")\n* ''root-tiddler'' - the tiddler to serve at the root (defaults to \"$:/core/save/all\")\n* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to \"text/plain\")\n* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to \"text/html\")\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 \"debug\" to view request details (defaults to \"none\")\n* ''gzip'' - set to \"yes\" to enable gzip compression for some http endpoints (defaults to \"no\")\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"},"$:/language/Help/load":{"description":"Load tiddlers from a file","text":"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 <filepath> [noerror]\n--load <dirpath> [noerror]\n```\n\nBy default, the load command raises an error if no tiddlers are found. The error can be suppressed by providing the optional \"noerror\" parameter.\n\nTo load tiddlers from an encrypted TiddlyWiki file you should first specify the password with the PasswordCommand. For example:\n\n```\ntiddlywiki ./MyWiki --password pa55w0rd --load my_encrypted_wiki.html\n```\n\nNote that TiddlyWiki will not load an older version of an already loaded plugin.\n"},"$:/language/Help/makelibrary":{"description":"Construct library plugin required by upgrade process","text":"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 <title>\n```\n\nThe title argument defaults to `$:/UpgradeLibrary`.\n"},"$:/language/Help/notfound":{"text":"No such help item"},"$:/language/Help/output":{"description":"Set the base output directory for subsequent commands","text":"Sets the base output directory for subsequent commands. The default output directory is the `output` subdirectory of the edition directory.\n\n```\n--output <pathname>\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"},"$:/language/Help/password":{"description":"Set a password for subsequent crypto operations","text":"Set a password for subsequent crypto operations\n\n```\n--password <password>\n```\n\n''Note'': This should not be used for serving TiddlyWiki with password protection. Instead, see the password option under the [[ServerCommand]].\n"},"$:/language/Help/render":{"description":"Renders individual tiddlers to files","text":"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 \"currentTiddler\" 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 <tiddler-filter> [<filename-filter>] [<render-type>] [<template>] [ [<name>] [<value>] ]*\n```\n\n* ''tiddler-filter'': A filter identifying the tiddler(s) to be rendered\n* ''filename-filter'': Optional filter transforming tiddler titles into pathnames. If omitted, defaults to `[is[tiddler]addsuffix[.html]]`, which uses the unchanged tiddler title as the filename\n* ''render-type'': Optional render type: `text/html` (the default) returns the full HTML text and `text/plain` just returns the text content (ie it ignores HTML tags and other unprintable material)\n* ''template'': Optional template through which each tiddler is rendered\n* ''name'': Name of optional variables\n* ''value'': Value of optional variables\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 \"[[Motovun Jack.jpg]]\"`\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* Multiple ''name''/''value'' pairs can be used to pass more than one variable\n* The `--render` command is a more flexible replacement for both the `--rendertiddler` and `--rendertiddlers` commands, which are deprecated\n\nExamples:\n\n* `--render \"[!is[system]]\" \"[encodeuricomponent[]addprefix[tiddlers/]addsuffix[.html]]\"` -- renders all non-system tiddlers as files in the subdirectory \"tiddlers\" with URL-encoded titles and the extension HTML\n\n"},"$:/language/Help/rendertiddler":{"description":"Render an individual tiddler as a specified ContentType","text":"(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 \"currentTiddler\" 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 <title> <filename> [<type>] [<template>] [<name>] [<value>]\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 \"$:/core/templates/exporters/JsonFile\" output.json text/plain \"\" exportFilter \"[tag[done]]\"\n```\n"},"$:/language/Help/rendertiddlers":{"description":"Render tiddlers matching a filter to a specified ContentType","text":"(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 '<filter>' <template> <pathname> [<type>] [<extension>] [\"noclean\"]\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"},"$:/language/Help/save":{"description":"Saves individual raw tiddlers to files","text":"Saves individual tiddlers identified by a filter in their raw text or binary format to the specified files.\n\n```\n--save <tiddler-filter> <filename-filter>\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 \"[[Motovun Jack.jpg]]\"`\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 \"[!is[system]is[image]]\" \"[encodeuricomponent[]addprefix[tiddlers/]]\"` -- saves all non-system image tiddlers as files in the subdirectory \"tiddlers\" with URL-encoded titles\n"},"$:/language/Help/savetiddler":{"description":"Saves a raw tiddler to a file","text":"(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 <title> <filename>\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"},"$:/language/Help/savetiddlers":{"description":"Saves a group of raw tiddlers to a directory","text":"(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 <filter> <pathname> [\"noclean\"]\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"},"$:/language/Help/savewikifolder":{"description":"Saves a wiki to a new wiki folder","text":"<<.from-version \"5.1.20\">> Saves the current wiki as a wiki folder, including tiddlers, plugins and configuration:\n\n```\n--savewikifolder <wikifolderpath> [<filter>]\n```\n\n* The target wiki folder must be empty or non-existent\n* The filter specifies which tiddlers should be included. It is optional, defaulting to `[all[tiddlers]]`\n* Plugins from the official plugin library are replaced with references to those plugins in the `tiddlywiki.info` file\n* Custom plugins are unpacked into their own folder\n\nA common usage is to convert a TiddlyWiki HTML file into a wiki folder:\n\n```\ntiddlywiki --load ./mywiki.html --savewikifolder ./mywikifolder\n```\n"},"$:/language/Help/server":{"description":"Provides an HTTP server interface to TiddlyWiki (deprecated in favour of the new listen command)","text":"Legacy command to serve a wiki over HTTP.\n\n```\n--server <port> <root-tiddler> <root-render-type> <root-serve-type> <username> <password> <host> <path-prefix> <debug-level>\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 \"8080\")\n* ''root-tiddler'' - the tiddler to serve at the root (defaults to \"$:/core/save/all\")\n* ''root-render-type'' - the content type to which the root tiddler should be rendered (defaults to \"text/plain\")\n* ''root-serve-type'' - the content type with which the root tiddler should be served (defaults to \"text/html\")\n* ''username'' - the default username for signing edits\n* ''password'' - optional password for basic authentication\n* ''host'' - optional hostname to serve from (defaults to \"127.0.0.1\" aka \"localhost\")\n* ''path-prefix'' - optional prefix for paths\n* ''debug-level'' - optional debug level; set to \"debug\" to view request details (defaults to \"none\")\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 \"\" \"\" 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 \"MY_PORT_NUMBER\":\n\n```\n--server MY_PORT_NUMBER $:/core/save/all text/plain text/html MyUserName passw0rd\n```\n"},"$:/language/Help/setfield":{"description":"Prepares external tiddlers for use","text":"//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 <filter> <fieldname> <templatetitle> <rendertype>\n```\n\nThe parameters are:\n\n* ''filter'' - filter identifying the tiddlers to be affected\n* ''fieldname'' - the field to modify (defaults to \"text\")\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 \"text/plain\"; \"text/html\" can be used to include HTML tags)\n"},"$:/language/Help/unpackplugin":{"description":"Unpack the payload tiddlers from a plugin","text":"Extract the payload tiddlers from a plugin, creating them as ordinary tiddlers:\n\n```\n--unpackplugin <title>\n```\n"},"$:/language/Help/verbose":{"description":"Triggers verbose output mode","text":"Triggers verbose output, useful for debugging\n\n```\n--verbose\n```\n"},"$:/language/Help/version":{"description":"Displays the version number of TiddlyWiki","text":"Displays the version number of TiddlyWiki.\n\n```\n--version\n```\n"},"$:/language/Import/Imported/Hint":{"text":"The following tiddlers were imported:"},"$:/language/Import/Listing/Cancel/Caption":{"text":"Cancel"},"$:/language/Import/Listing/Hint":{"text":"These tiddlers are ready to import:"},"$:/language/Import/Listing/Import/Caption":{"text":"Import"},"$:/language/Import/Listing/Select/Caption":{"text":"Select"},"$:/language/Import/Listing/Status/Caption":{"text":"Status"},"$:/language/Import/Listing/Title/Caption":{"text":"Title"},"$:/language/Import/Listing/Preview":{"text":"Preview:"},"$:/language/Import/Listing/Preview/Text":{"text":"Text"},"$:/language/Import/Listing/Preview/TextRaw":{"text":"Text (Raw)"},"$:/language/Import/Listing/Preview/Fields":{"text":"Fields"},"$:/language/Import/Listing/Preview/Diff":{"text":"Diff"},"$:/language/Import/Listing/Preview/DiffFields":{"text":"Diff (Fields)"},"$:/language/Import/Listing/Rename/Tooltip":{"text":"Rename tiddler before importing"},"$:/language/Import/Listing/Rename/Prompt":{"text":"Rename to:"},"$:/language/Import/Listing/Rename/ConfirmRename":{"text":"Rename tiddler"},"$:/language/Import/Listing/Rename/CancelRename":{"text":"Cancel"},"$:/language/Import/Listing/Rename/OverwriteWarning":{"text":"A tiddler with this title already exists."},"$:/language/Import/Upgrader/Plugins/Suppressed/Incompatible":{"text":"Blocked incompatible or obsolete plugin."},"$:/language/Import/Upgrader/Plugins/Suppressed/Version":{"text":"Blocked plugin (due to incoming <<incoming>> not being newer than existing <<existing>>)."},"$:/language/Import/Upgrader/Plugins/Upgraded":{"text":"Upgraded plugin from <<incoming>> to <<upgraded>>."},"$:/language/Import/Upgrader/State/Suppressed":{"text":"Blocked temporary state tiddler."},"$:/language/Import/Upgrader/System/Suppressed":{"text":"Blocked system tiddler."},"$:/language/Import/Upgrader/System/Warning":{"text":"Core module tiddler."},"$:/language/Import/Upgrader/System/Alert":{"text":"You are about to import a tiddler that will overwrite a core module tiddler. This is not recommended as it may make the system unstable."},"$:/language/Import/Upgrader/ThemeTweaks/Created":{"text":"Migrated theme tweak from <$text text=<<from>>/>."},"$:/language/AboveStory/ClassicPlugin/Warning":{"text":"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:"},"$:/language/BinaryWarning/Prompt":{"text":"This tiddler contains binary data"},"$:/language/ClassicWarning/Hint":{"text":"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."},"$:/language/ClassicWarning/Upgrade/Caption":{"text":"upgrade"},"$:/language/CloseAll/Button":{"text":"close all"},"$:/language/ColourPicker/Recent":{"text":"Recent:"},"$:/language/ConfirmCancelTiddler":{"text":"Do you wish to discard changes to the tiddler \"<$text text=<<title>>/>\"?"},"$:/language/ConfirmDeleteTiddler":{"text":"Do you wish to delete the tiddler \"<$text text=<<title>>/>\"?"},"$:/language/ConfirmOverwriteTiddler":{"text":"Do you wish to overwrite the tiddler \"<$text text=<<title>>/>\"?"},"$:/language/ConfirmEditShadowTiddler":{"text":"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 \"<$text text=<<title>>/>\"?"},"$:/language/ConfirmAction":{"text":"Do you wish to proceed?"},"$:/language/Count":{"text":"count"},"$:/language/DefaultNewTiddlerTitle":{"text":"New Tiddler"},"$:/language/Diffs/CountMessage":{"text":"<<diff-count>> differences"},"$:/language/DropMessage":{"text":"Drop here (or use the 'Escape' key to cancel)"},"$:/language/Encryption/Cancel":{"text":"Cancel"},"$:/language/Encryption/ConfirmClearPassword":{"text":"Do you wish to clear the password? This will remove the encryption applied when saving this wiki"},"$:/language/Encryption/PromptSetPassword":{"text":"Set a new password for this TiddlyWiki"},"$:/language/Encryption/Username":{"text":"Username"},"$:/language/Encryption/Password":{"text":"Password"},"$:/language/Encryption/RepeatPassword":{"text":"Repeat password"},"$:/language/Encryption/PasswordNoMatch":{"text":"Passwords do not match"},"$:/language/Encryption/SetPassword":{"text":"Set password"},"$:/language/Error/Caption":{"text":"Error"},"$:/language/Error/EditConflict":{"text":"File changed on server"},"$:/language/Error/Filter":{"text":"Filter error"},"$:/language/Error/FilterSyntax":{"text":"Syntax error in filter expression"},"$:/language/Error/FilterRunPrefix":{"text":"Filter Error: Unknown prefix for filter run"},"$:/language/Error/IsFilterOperator":{"text":"Filter Error: Unknown operand for the 'is' filter operator"},"$:/language/Error/FormatFilterOperator":{"text":"Filter Error: Unknown suffix for the 'format' filter operator"},"$:/language/Error/LoadingPluginLibrary":{"text":"Error loading plugin library"},"$:/language/Error/NetworkErrorAlert":{"text":"`<h2>''Network Error''</h2>It looks like the connection to the server has been lost. This may indicate a problem with your network connection. Please attempt to restore network connectivity before continuing.<br><br>''Any unsaved changes will be automatically synchronised when connectivity is restored''.`"},"$:/language/Error/RecursiveTransclusion":{"text":"Recursive transclusion error in transclude widget"},"$:/language/Error/RetrievingSkinny":{"text":"Error retrieving skinny tiddler list"},"$:/language/Error/SavingToTWEdit":{"text":"Error saving to TWEdit"},"$:/language/Error/WhileSaving":{"text":"Error while saving"},"$:/language/Error/XMLHttpRequest":{"text":"XMLHttpRequest error code"},"$:/language/InternalJavaScriptError/Title":{"text":"Internal JavaScript Error"},"$:/language/InternalJavaScriptError/Hint":{"text":"Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser"},"$:/language/InvalidFieldName":{"text":"Illegal characters in field name \"<$text text=<<fieldName>>/>\". Fields can only contain lowercase letters, digits and the characters underscore (`_`), hyphen (`-`) and period (`.`)"},"$:/language/LayoutSwitcher/Description":{"text":"Open the layout switcher"},"$:/language/LazyLoadingWarning":{"text":"<p>Trying to load external content from ''<$text text={{!!_canonical_uri}}/>''</p><p>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</p>"},"$:/language/LoginToTiddlySpace":{"text":"Login to TiddlySpace"},"$:/language/Manager/Controls/FilterByTag/None":{"text":"(none)"},"$:/language/Manager/Controls/FilterByTag/Prompt":{"text":"Filter by tag:"},"$:/language/Manager/Controls/Order/Prompt":{"text":"Reverse order"},"$:/language/Manager/Controls/Search/Placeholder":{"text":"Search"},"$:/language/Manager/Controls/Search/Prompt":{"text":"Search:"},"$:/language/Manager/Controls/Show/Option/Tags":{"text":"tags"},"$:/language/Manager/Controls/Show/Option/Tiddlers":{"text":"tiddlers"},"$:/language/Manager/Controls/Show/Prompt":{"text":"Show:"},"$:/language/Manager/Controls/Sort/Prompt":{"text":"Sort by:"},"$:/language/Manager/Item/Colour":{"text":"Colour"},"$:/language/Manager/Item/Fields":{"text":"Fields"},"$:/language/Manager/Item/Icon/None":{"text":"(none)"},"$:/language/Manager/Item/Icon":{"text":"Icon"},"$:/language/Manager/Item/RawText":{"text":"Raw text"},"$:/language/Manager/Item/Tags":{"text":"Tags"},"$:/language/Manager/Item/Tools":{"text":"Tools"},"$:/language/Manager/Item/WikifiedText":{"text":"Wikified text"},"$:/language/MissingTiddler/Hint":{"text":"Missing tiddler \"<$text text=<<currentTiddler>>/>\" -- click {{||$:/core/ui/Buttons/edit}} to create"},"$:/language/No":{"text":"No"},"$:/language/OfficialPluginLibrary":{"text":"Official ~TiddlyWiki Plugin Library"},"$:/language/OfficialPluginLibrary/Hint":{"text":"The official ~TiddlyWiki plugin library at tiddlywiki.com. Plugins, themes and language packs are maintained by the core team."},"$:/language/PageTemplate/Description":{"text":"the default ~TiddlyWiki layout"},"$:/language/PageTemplate/Name":{"text":"Default ~PageTemplate"},"$:/language/PluginReloadWarning":{"text":"Please save {{$:/core/ui/Buttons/save-wiki}} and reload {{$:/core/ui/Buttons/refresh}} to allow changes to ~JavaScript plugins to take effect"},"$:/language/RecentChanges/DateFormat":{"text":"DDth MMM YYYY"},"$:/language/Shortcuts/Input/AdvancedSearch/Hint":{"text":"Open the ~AdvancedSearch panel from within the sidebar search field"},"$:/language/Shortcuts/Input/Accept/Hint":{"text":"Accept the selected item"},"$:/language/Shortcuts/Input/AcceptVariant/Hint":{"text":"Accept the selected item (variant)"},"$:/language/Shortcuts/Input/Cancel/Hint":{"text":"Clear the input field"},"$:/language/Shortcuts/Input/Down/Hint":{"text":"Select the next item"},"$:/language/Shortcuts/Input/Tab-Left/Hint":{"text":"Select the previous Tab"},"$:/language/Shortcuts/Input/Tab-Right/Hint":{"text":"Select the next Tab"},"$:/language/Shortcuts/Input/Up/Hint":{"text":"Select the previous item"},"$:/language/Shortcuts/SidebarLayout/Hint":{"text":"Change the sidebar layout"},"$:/language/Switcher/Subtitle/theme":{"text":"Switch Theme"},"$:/language/Switcher/Subtitle/layout":{"text":"Switch Layout"},"$:/language/Switcher/Subtitle/language":{"text":"Switch Language"},"$:/language/Switcher/Subtitle/palette":{"text":"Switch Palette"},"$:/language/SystemTiddler/Tooltip":{"text":"This is a system tiddler"},"$:/language/SystemTiddlers/Include/Prompt":{"text":"Include system tiddlers"},"$:/language/TagManager/Colour/Heading":{"text":"Colour"},"$:/language/TagManager/Count/Heading":{"text":"Count"},"$:/language/TagManager/Icon/Heading":{"text":"Icon"},"$:/language/TagManager/Icons/None":{"text":"None"},"$:/language/TagManager/Info/Heading":{"text":"Info"},"$:/language/TagManager/Tag/Heading":{"text":"Tag"},"$:/language/Tiddler/DateFormat":{"text":"DDth MMM YYYY at hh12:0mmam"},"$:/language/UnsavedChangesWarning":{"text":"You have unsaved changes in TiddlyWiki"},"$:/language/Yes":{"text":"Yes"},"$:/language/Modals/Download":{"subtitle":"Download changes","footer":"<$button message=\"tm-close-tiddler\">Close</$button>","help":"https://tiddlywiki.com/static/DownloadingChanges.html","text":"Your browser only supports manual saving.\n\nTo save your modified wiki, right click on the download link below and select \"Download file\" or \"Save file\", 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"},"$:/language/Modals/SaveInstructions":{"subtitle":"Save your work","footer":"<$button message=\"tm-close-tiddler\">Close</$button>","help":"https://tiddlywiki.com/static/SavingChanges.html","text":"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"},"$:/config/NewJournal/Title":{"text":"DDth MMM YYYY"},"$:/config/NewJournal/Text":{"text":""},"$:/config/NewJournal/Tags":{"text":"Journal\n"},"$:/language/Notifications/Save/Done":{"text":"Saved wiki"},"$:/language/Notifications/Save/Starting":{"text":"Starting to save wiki"},"$:/language/Notifications/CopiedToClipboard/Succeeded":{"text":"Copied to clipboard!"},"$:/language/Notifications/CopiedToClipboard/Failed":{"text":"Failed to copy to clipboard!"},"$:/language/Search/DefaultResults/Caption":{"text":"List"},"$:/language/Search/Filter/Caption":{"text":"Filter"},"$:/language/Search/Filter/Hint":{"text":"Search via a [[filter expression|https://tiddlywiki.com/static/Filters.html]]"},"$:/language/Search/Filter/Matches":{"text":"//<small><<resultCount>> matches</small>//"},"$:/language/Search/Matches":{"text":"//<small><<resultCount>> matches</small>//"},"$:/language/Search/Matches/All":{"text":"All matches:"},"$:/language/Search/Matches/Title":{"text":"Title matches:"},"$:/language/Search/Search":{"text":"Search"},"$:/language/Search/Search/TooShort":{"text":"Search text too short"},"$:/language/Search/Shadows/Caption":{"text":"Shadows"},"$:/language/Search/Shadows/Hint":{"text":"Search for shadow tiddlers"},"$:/language/Search/Shadows/Matches":{"text":"//<small><<resultCount>> matches</small>//"},"$:/language/Search/Standard/Caption":{"text":"Standard"},"$:/language/Search/Standard/Hint":{"text":"Search for standard tiddlers"},"$:/language/Search/Standard/Matches":{"text":"//<small><<resultCount>> matches</small>//"},"$:/language/Search/System/Caption":{"text":"System"},"$:/language/Search/System/Hint":{"text":"Search for system tiddlers"},"$:/language/Search/System/Matches":{"text":"//<small><<resultCount>> matches</small>//"},"$:/language/SideBar/All/Caption":{"text":"All"},"$:/language/SideBar/Contents/Caption":{"text":"Contents"},"$:/language/SideBar/Drafts/Caption":{"text":"Drafts"},"$:/language/SideBar/Explorer/Caption":{"text":"Explorer"},"$:/language/SideBar/Missing/Caption":{"text":"Missing"},"$:/language/SideBar/More/Caption":{"text":"More"},"$:/language/SideBar/Open/Caption":{"text":"Open"},"$:/language/SideBar/Orphans/Caption":{"text":"Orphans"},"$:/language/SideBar/Recent/Caption":{"text":"Recent"},"$:/language/SideBar/Shadows/Caption":{"text":"Shadows"},"$:/language/SideBar/System/Caption":{"text":"System"},"$:/language/SideBar/Tags/Caption":{"text":"Tags"},"$:/language/SideBar/Tags/Untagged/Caption":{"text":"untagged"},"$:/language/SideBar/Tools/Caption":{"text":"Tools"},"$:/language/SideBar/Types/Caption":{"text":"Types"},"$:/SiteSubtitle":{"text":"a non-linear personal web notebook"},"$:/SiteTitle":{"text":"My ~TiddlyWiki"},"$:/language/Snippets/ListByTag":{"tags":"$:/tags/TextEditor/Snippet","caption":"List of tiddlers by tag","text":"<<list-links \"[tag[task]sort[title]]\">>\n"},"$:/language/Snippets/MacroDefinition":{"tags":"$:/tags/TextEditor/Snippet","caption":"Macro definition","text":"\\define macroName(param1:\"default value\",param2)\nText of the macro\n\\end\n"},"$:/language/Snippets/Table4x3":{"tags":"$:/tags/TextEditor/Snippet","caption":"Table with 4 columns by 3 rows","text":"|! |!Alpha |!Beta |!Gamma |!Delta |\n|!One | | | | |\n|!Two | | | | |\n|!Three | | | | |\n"},"$:/language/Snippets/TableOfContents":{"tags":"$:/tags/TextEditor/Snippet","caption":"Table of Contents","text":"<div class=\"tc-table-of-contents\">\n\n<<toc-selective-expandable 'TableOfContents'>>\n\n</div>"},"$:/language/ThemeTweaks/ThemeTweaks":{"text":"Theme Tweaks"},"$:/language/ThemeTweaks/ThemeTweaks/Hint":{"text":"You can tweak certain aspects of the ''Vanilla'' theme."},"$:/language/ThemeTweaks/Options":{"text":"Options"},"$:/language/ThemeTweaks/Options/SidebarLayout":{"text":"Sidebar layout"},"$:/language/ThemeTweaks/Options/SidebarLayout/Fixed-Fluid":{"text":"Fixed story, fluid sidebar"},"$:/language/ThemeTweaks/Options/SidebarLayout/Fluid-Fixed":{"text":"Fluid story, fixed sidebar"},"$:/language/ThemeTweaks/Options/StickyTitles":{"text":"Sticky titles"},"$:/language/ThemeTweaks/Options/StickyTitles/Hint":{"text":"Causes tiddler titles to \"stick\" to the top of the browser window"},"$:/language/ThemeTweaks/Options/CodeWrapping":{"text":"Wrap long lines in code blocks"},"$:/language/ThemeTweaks/Settings":{"text":"Settings"},"$:/language/ThemeTweaks/Settings/FontFamily":{"text":"Font family"},"$:/language/ThemeTweaks/Settings/CodeFontFamily":{"text":"Code font family"},"$:/language/ThemeTweaks/Settings/EditorFontFamily":{"text":"Editor font family"},"$:/language/ThemeTweaks/Settings/BackgroundImage":{"text":"Page background image"},"$:/language/ThemeTweaks/Settings/BackgroundImageAttachment":{"text":"Page background image attachment"},"$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Scroll":{"text":"Scroll with tiddlers"},"$:/language/ThemeTweaks/Settings/BackgroundImageAttachment/Fixed":{"text":"Fixed to window"},"$:/language/ThemeTweaks/Settings/BackgroundImageSize":{"text":"Page background image size"},"$:/language/ThemeTweaks/Settings/BackgroundImageSize/Auto":{"text":"Auto"},"$:/language/ThemeTweaks/Settings/BackgroundImageSize/Cover":{"text":"Cover"},"$:/language/ThemeTweaks/Settings/BackgroundImageSize/Contain":{"text":"Contain"},"$:/language/ThemeTweaks/Metrics":{"text":"Sizes"},"$:/language/ThemeTweaks/Metrics/FontSize":{"text":"Font size"},"$:/language/ThemeTweaks/Metrics/LineHeight":{"text":"Line height"},"$:/language/ThemeTweaks/Metrics/BodyFontSize":{"text":"Font size for tiddler body"},"$:/language/ThemeTweaks/Metrics/BodyLineHeight":{"text":"Line height for tiddler body"},"$:/language/ThemeTweaks/Metrics/StoryLeft":{"text":"Story left position"},"$:/language/ThemeTweaks/Metrics/StoryLeft/Hint":{"text":"how far the left margin of the story river<br>(tiddler area) is from the left of the page"},"$:/language/ThemeTweaks/Metrics/StoryTop":{"text":"Story top position"},"$:/language/ThemeTweaks/Metrics/StoryTop/Hint":{"text":"how far the top margin of the story river<br>is from the top of the page"},"$:/language/ThemeTweaks/Metrics/StoryRight":{"text":"Story right"},"$:/language/ThemeTweaks/Metrics/StoryRight/Hint":{"text":"how far the left margin of the sidebar <br>is from the left of the page"},"$:/language/ThemeTweaks/Metrics/StoryWidth":{"text":"Story width"},"$:/language/ThemeTweaks/Metrics/StoryWidth/Hint":{"text":"the overall width of the story river"},"$:/language/ThemeTweaks/Metrics/TiddlerWidth":{"text":"Tiddler width"},"$:/language/ThemeTweaks/Metrics/TiddlerWidth/Hint":{"text":"within the story river"},"$:/language/ThemeTweaks/Metrics/SidebarBreakpoint":{"text":"Sidebar breakpoint"},"$:/language/ThemeTweaks/Metrics/SidebarBreakpoint/Hint":{"text":"the minimum page width at which the story<br>river and sidebar will appear side by side"},"$:/language/ThemeTweaks/Metrics/SidebarWidth":{"text":"Sidebar width"},"$:/language/ThemeTweaks/Metrics/SidebarWidth/Hint":{"text":"the width of the sidebar in fluid-fixed layout"},"$:/language/TiddlerInfo/Advanced/Caption":{"text":"Advanced"},"$:/language/TiddlerInfo/Advanced/PluginInfo/Empty/Hint":{"text":"none"},"$:/language/TiddlerInfo/Advanced/PluginInfo/Heading":{"text":"Plugin Details"},"$:/language/TiddlerInfo/Advanced/PluginInfo/Hint":{"text":"This plugin contains the following shadow tiddlers:"},"$:/language/TiddlerInfo/Advanced/ShadowInfo/Heading":{"text":"Shadow Status"},"$:/language/TiddlerInfo/Advanced/ShadowInfo/NotShadow/Hint":{"text":"The tiddler <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> is not a shadow tiddler"},"$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Hint":{"text":"The tiddler <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> is a shadow tiddler"},"$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Source":{"text":"It is defined in the plugin <$link to=<<pluginTiddler>>><$text text=<<pluginTiddler>>/></$link>"},"$:/language/TiddlerInfo/Advanced/ShadowInfo/OverriddenShadow/Hint":{"text":"It is overridden by an ordinary tiddler"},"$:/language/TiddlerInfo/Fields/Caption":{"text":"Fields"},"$:/language/TiddlerInfo/List/Caption":{"text":"List"},"$:/language/TiddlerInfo/List/Empty":{"text":"This tiddler does not have a list"},"$:/language/TiddlerInfo/Listed/Caption":{"text":"Listed"},"$:/language/TiddlerInfo/Listed/Empty":{"text":"This tiddler is not listed by any others"},"$:/language/TiddlerInfo/References/Caption":{"text":"Backlinks"},"$:/language/TiddlerInfo/References/Empty":{"text":"No tiddlers link to this one"},"$:/language/TiddlerInfo/Tagging/Caption":{"text":"Tagging"},"$:/language/TiddlerInfo/Tagging/Empty":{"text":"No tiddlers are tagged with this one"},"$:/language/TiddlerInfo/Tools/Caption":{"text":"Tools"},"$:/language/Docs/Types/application/javascript":{"description":"JavaScript code","name":"application/javascript","group":"Developer","group-sort":"2"},"$:/language/Docs/Types/application/json":{"description":"JSON data","name":"application/json","group":"Developer","group-sort":"2"},"$:/language/Docs/Types/application/x-tiddler-dictionary":{"description":"Data dictionary","name":"application/x-tiddler-dictionary","group":"Developer","group-sort":"2"},"$:/language/Docs/Types/image/gif":{"description":"GIF image","name":"image/gif","group":"Image","group-sort":"1"},"$:/language/Docs/Types/image/jpeg":{"description":"JPEG image","name":"image/jpeg","group":"Image","group-sort":"1"},"$:/language/Docs/Types/image/png":{"description":"PNG image","name":"image/png","group":"Image","group-sort":"1"},"$:/language/Docs/Types/image/svg+xml":{"description":"Structured Vector Graphics image","name":"image/svg+xml","group":"Image","group-sort":"1"},"$:/language/Docs/Types/image/x-icon":{"description":"ICO format icon file","name":"image/x-icon","group":"Image","group-sort":"1"},"$:/language/Docs/Types/text/css":{"description":"Static stylesheet","name":"text/css","group":"Developer","group-sort":"2"},"$:/language/Docs/Types/text/html":{"description":"HTML markup","name":"text/html","group":"Text","group-sort":"0"},"$:/language/Docs/Types/text/plain":{"description":"Plain text","name":"text/plain","group":"Text","group-sort":"0"},"$:/language/Docs/Types/text/vnd.tiddlywiki":{"description":"TiddlyWiki 5","name":"text/vnd.tiddlywiki","group":"Text","group-sort":"0"},"$:/language/Docs/Types/text/x-tiddlywiki":{"description":"TiddlyWiki Classic","name":"text/x-tiddlywiki","group":"Text","group-sort":"0"},"$:/languages/en-GB/icon":{"type":"image/svg+xml","text":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 60 30\" width=\"1200\" height=\"600\">\n<clipPath id=\"t\">\n\t<path d=\"M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z\"/>\n</clipPath>\n<path d=\"M0,0 v30 h60 v-30 z\" fill=\"#00247d\"/>\n<path d=\"M0,0 L60,30 M60,0 L0,30\" stroke=\"#fff\" stroke-width=\"6\"/>\n<path d=\"M0,0 L60,30 M60,0 L0,30\" clip-path=\"url(#t)\" stroke=\"#cf142b\" stroke-width=\"4\"/>\n<path d=\"M30,0 v30 M0,15 h60\" stroke=\"#fff\" stroke-width=\"10\"/>\n<path d=\"M30,0 v30 M0,15 h60\" stroke=\"#cf142b\" stroke-width=\"6\"/>\n</svg>\n"},"$:/languages/en-GB":{"name":"en-GB","description":"English (British)","author":"JeremyRuston","core-version":">=5.0.0\"","text":"Stub pseudo-plugin for the default language"},"$:/core/modules/commander.js":{"text":"!function(){'use strict';function t(t,e,n,o){var s=require('path');this.commandTokens=t,this.nextToken=0,this.callback=e,this.wiki=n,this.streams=o,this.outputPath=s.resolve($tw.boot.wikiPath,$tw.config.wikiOutputSubDir)}t.prototype.log=function(t){this.verbose&&this.streams.output.write(t+'\\n')},t.prototype.write=function(t){this.verbose&&this.streams.output.write(t)},t.prototype.addCommandTokens=function(t){t=t.slice(0);t.unshift(0),t.unshift(this.nextToken),Array.prototype.splice.apply(this.commandTokens,t)},t.prototype.execute=function(){this.executeNextCommand()},t.prototype.executeNextCommand=function(){var e=this;if(this.nextToken>=this.commandTokens.length)this.callback(null);else{var t=this.commandTokens[this.nextToken++];if('--'!==t.substr(0,2))this.callback('Missing command: '+t);else{t=t.substr(2);for(var n=[];this.nextToken<this.commandTokens.length&&'--'!==this.commandTokens[this.nextToken].substr(0,2);)n.push(this.commandTokens[this.nextToken++]);var o,s=$tw.commands[t];if(s){if(this.verbose&&this.streams.output.write('Executing command: '+t+' '+n.join(' ')+'\\n'),s.info.namedParameterMode&&'string'==typeof(n=this.extractNamedParameters(n,s.info.mandatoryParameters)))return this.callback(n);s.info.synchronous?(o=new s.Command(n,this).execute())?this.callback(o):this.executeNextCommand():(o=new s.Command(n,this,function(t){t?e.callback(t):e.executeNextCommand()}).execute())&&this.callback(o)}else this.callback('Unknown command: '+t)}}},t.prototype.extractNamedParameters=function(t,e){e=e||[];var n=[],o=Object.create(null);return $tw.utils.each(t,function(t){var e=t.indexOf('=');e<1&&n.push('malformed named parameter: \\''+t+'\\''),o[t.slice(0,e)]=$tw.utils.trim(t.slice(e+1))}),$tw.utils.each(e,function(t){$tw.utils.hop(o,t)||n.push('missing mandatory parameter: \\''+t+'\\'')}),0<n.length?n.join(' and\\n'):o},t.initCommands=function(t){t=t||'command',$tw.commands={},$tw.modules.forEachModuleOfType(t,function(t,e){var n,o=$tw.commands[e.info.name]={};for(n in e)$tw.utils.hop(e,n)&&(o[n]=e[n])})},exports.Commander=t}();","type":"application/javascript","module-type":"global"},"$:/core/modules/commands/build.js":{"text":"!function(){'use strict';function t(t,n){this.params=t,this.commander=n}exports.info={name:'build',synchronous:!0},t.prototype.execute=function(){var t,n=$tw.boot.wikiInfo.build;if(!n)return'No build targets defined';t=0<this.params.length?this.params:Object.keys(n);for(var e=0;e<t.length;e++){var o=t[e],r=n[o];if(!r)return'Build target \\''+o+'\\' not found';this.commander.addCommandTokens(r)}return null},exports.Command=t}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/clearpassword.js":{"text":"!function(){'use strict';function t(t,n,o){this.params=t,this.commander=n,this.callback=o}exports.info={name:'clearpassword',synchronous:!0},t.prototype.execute=function(){return $tw.crypto.setPassword(null),null},exports.Command=t}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/deletetiddlers.js":{"text":"!function(){'use strict';function t(t,e,i){this.params=t,this.commander=e,this.callback=i}exports.info={name:'deletetiddlers',synchronous:!0},t.prototype.execute=function(){if(this.params.length<1)return'Missing filter';var e=this.commander.wiki,t=this.params[0],t=e.filterTiddlers(t);return $tw.utils.each(t,function(t){e.deleteTiddler(t)}),null},exports.Command=t}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/editions.js":{"text":"!function(){'use strict';function t(t,n){this.params=t,this.commander=n}exports.info={name:'editions',synchronous:!0},t.prototype.execute=function(){var e=this;this.commander.streams.output.write('Available editions:\\n\\n');var t=$tw.utils.getEditionInfo();return $tw.utils.each(t,function(t,n){e.commander.streams.output.write(' '+n+': '+t.description+'\\n')}),this.commander.streams.output.write('\\n'),null},exports.Command=t}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/fetch.js":{"text":"!function(){'use strict';function t(t,r,e){this.params=t,this.commander=r,this.callback=e}exports.info={name:'fetch',synchronous:!1},t.prototype.execute=function(){if(this.params.length<2)return'Missing subcommand and url';switch(this.params[0]){case'raw-file':return this.fetchFiles({raw:!0,url:this.params[1],transformFilter:this.params[2]||'',callback:this.callback});case'file':return this.fetchFiles({url:this.params[1],importFilter:this.params[2],transformFilter:this.params[3]||'',callback:this.callback});case'raw-files':return this.fetchFiles({raw:!0,urlFilter:this.params[1],transformFilter:this.params[2]||'',callback:this.callback});case'files':return this.fetchFiles({urlFilter:this.params[1],importFilter:this.params[2],transformFilter:this.params[3]||'',callback:this.callback})}return null},t.prototype.fetchFiles=function(r){var e,i=this;if(r.url)e=[r.url];else{if(!r.urlFilter)return'Missing URL';e=this.commander.wiki.filterTiddlers(r.urlFilter)}var a=0,s=function(t){if(t)return r.callback(t);a<e.length?i.fetchFile(e[a++],r,s):r.callback(null)};return s(null),null},t.prototype.fetchFile=function(i,a,s,n){if(10<n)return s('Error too many redirects retrieving '+i);var l=this;return('https://'===i.substr(0,8)?require('https'):require('http')).get(i).on('response',function(t){var r=(t.headers['content-type']||'').split(';')[0],e=[];l.commander.write('Reading '+i+': '),t.on('data',function(t){e.push(t),l.commander.write('.')}),t.on('end',function(){return l.commander.write('\\n'),200!==t.statusCode?302===t.statusCode||303===t.statusCode||307===t.statusCode?l.fetchFile(t.headers.location,a,s,n+1):s('Error '+t.statusCode+' retrieving '+i):(l.processBody(Buffer.concat(e),r,a,i),void s(null))}),t.on('error',function(t){console.log('Error on GET request: '+t),s(t)})}),null},t.prototype.processBody=function(t,r,a,e){var i,s=this,n=new $tw.Wiki;a.raw?(i=(i=r?$tw.config.contentTypeInfo[r]:null)?i.encoding:'utf8',n.addTiddler(new $tw.Tiddler({title:e,type:r,text:t.toString(i)}))):(t=this.commander.wiki.deserializeTiddlers(r||'text/html',t.toString('utf8'),{}),$tw.utils.each(t,function(t){n.addTiddler(new $tw.Tiddler(t))}));var l=n.filterTiddlers(a.importFilter||'[all[tiddlers]]'),o=0;n.each(function(t,r){var e,i;-1!==l.indexOf(r)&&(a.transformFilter?(i=(n.filterTiddlers(a.transformFilter,null,s.commander.wiki.makeTiddlerIterator([r]))||[''])[0])&&(s.commander.log('Importing '+r+' as '+i),e=new $tw.Tiddler(t,{title:i})):(s.commander.log('Importing '+r),e=t),s.commander.wiki.importTiddler(e),o++)}),s.commander.log('Imported '+o+' tiddlers')},exports.Command=t}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/help.js":{"text":"!function(){'use strict';function e(e,t){this.params=e,this.commander=t}exports.info={name:'help',synchronous:!0},e.prototype.execute=function(){var e=this.params[0]||'default',t='$:/language/Help/';this.commander.wiki.getTiddler(t+e)||(e='notfound'),e=(e=this.commander.wiki.renderTiddler('text/plain-formatted',t+e)).replace(/^(\\r?\\n)*/g,''),this.commander.streams.output.write(e)},exports.Command=e}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/import.js":{"text":"!function(){'use strict';function e(e,r,i){this.params=e,this.commander=r,this.callback=i}exports.info={name:'import',synchronous:!0},e.prototype.execute=function(){var r=this,e=require('fs');require('path');if(this.params.length<2)return'Missing parameters';var i=r.params[0],t=r.params[1],a=r.params[2]||i,s=r.params[3]||'utf8',s=e.readFileSync(i,s),t=this.commander.wiki.deserializeTiddlers(null,s,{title:a},{deserializer:t});return $tw.utils.each(t,function(e){r.commander.wiki.importTiddler(new $tw.Tiddler(e))}),this.commander.log(t.length+' tiddler(s) imported'),null},exports.Command=e}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/init.js":{"text":"!function(){'use strict';function t(t,i){this.params=t,this.commander=i}exports.info={name:'init',synchronous:!0},t.prototype.execute=function(){var t=require('fs');require('path');if($tw.boot.wikiTiddlersPath||$tw.utils.isDirectory($tw.boot.wikiPath)&&!$tw.utils.isDirectoryEmpty($tw.boot.wikiPath))return'Wiki folder is not empty';for(var i=0<this.params.length?this.params:['empty'],e=0;e<i.length;e++){var r=i[e],o=$tw.findLibraryItem(r,$tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar));if(!$tw.utils.isDirectory(o))return'Edition \\''+r+'\\' not found';o=$tw.utils.copyDirectory(o,$tw.boot.wikiPath);if(o)return o;this.commander.streams.output.write('Copied edition \\''+r+'\\' to '+$tw.boot.wikiPath+'\\n')}var n=$tw.boot.wikiPath+'/tiddlywiki.info',s=JSON.parse(t.readFileSync(n));return delete s.includeWikis,t.writeFileSync(n,JSON.stringify(s,null,$tw.config.preferences.jsonSpaces)),null},exports.Command=t}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/listen.js":{"text":"!function(){'use strict';var i=require('$:/core/modules/server/server.js').Server;function e(e,i,r){this.params=e,this.commander=i,this.callback=r}exports.info={name:'listen',synchronous:!0,namedParameterMode:!0,mandatoryParameters:[]},e.prototype.execute=function(){$tw.boot.wikiTiddlersPath||$tw.utils.warning('Warning: Wiki folder \\''+$tw.boot.wikiPath+'\\' does not exist or is missing a tiddlywiki.info file'),this.server=new i({wiki:this.commander.wiki,variables:this.params});var e=this.server.listen();return $tw.hooks.invokeHook('th-server-command-post-start',this.server,e,'tiddlywiki'),null},exports.Command=e}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/load.js":{"text":"!function(){'use strict';function r(r,t,i){this.params=r,this.commander=t,this.callback=i}exports.info={name:'load',synchronous:!1},r.prototype.execute=function(){var t=this;require('fs'),require('path');if(this.params.length<1)return'Missing filename';var r=$tw.loadTiddlersFromPath(t.params[0]),i=0;return $tw.utils.each(r,function(r){$tw.utils.each(r.tiddlers,function(r){t.commander.wiki.importTiddler(new $tw.Tiddler(r)),i++})}),i||'noerror'===t.params[1]?t.callback(null):t.callback('No tiddlers found in file \"'+t.params[0]+'\"'),null},exports.Command=r}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/makelibrary.js":{"text":"!function(){'use strict';function t(t,e,i){this.params=t,this.commander=e,this.callback=i}exports.info={name:'makelibrary',synchronous:!0},t.prototype.execute=function(){function r(t){for(var e=$tw.utils.getSubdirectories(t)||[],i=0;i<e.length;i++)$tw.boot.excludeRegExp.test(e[i])||(s=$tw.loadPluginFolder(a.resolve(t,'./'+e[i])))&&s.title&&(n[s.title]=s)}function t(t){for(var e=$tw.utils.getSubdirectories(t)||[],i=0;i<e.length;i++)$tw.boot.excludeRegExp.test(e[i])||r(a.resolve(t,'./'+e[i]))}var e=this.commander.wiki,a=(require('fs'),require('path')),i=this.params[0]||'$:/UpgradeLibrary',n={};$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.pluginsPath,$tw.config.pluginsEnvVar),t),$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.themesPath,$tw.config.themesEnvVar),t),$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.languagesPath,$tw.config.languagesEnvVar),r);var s={title:i,type:'application/json','plugin-type':'library',text:JSON.stringify({tiddlers:n})};return e.addTiddler(new $tw.Tiddler(s)),null},exports.Command=t}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/output.js":{"text":"!function(){'use strict';function t(t,s,e){this.params=t,this.commander=s,this.callback=e}exports.info={name:'output',synchronous:!0},t.prototype.execute=function(){require('fs');var t=require('path');return this.params.length<1?'Missing output path':(this.commander.outputPath=t.resolve(process.cwd(),this.params[0]),null)},exports.Command=t}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/password.js":{"text":"!function(){'use strict';function s(s,t,n){this.params=s,this.commander=t,this.callback=n}exports.info={name:'password',synchronous:!0},s.prototype.execute=function(){return this.params.length<1?'Missing password':($tw.crypto.setPassword(this.params[0]),null)},exports.Command=s}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/render.js":{"text":"!function(){'use strict';function e(e,t,r){this.params=e,this.commander=t,this.callback=r}require('$:/core/modules/widgets/widget.js'),exports.info={name:'render',synchronous:!0},e.prototype.execute=function(){if(this.params.length<1)return'Missing tiddler filter';for(var i=this,s=require('fs'),n=require('path'),a=this.commander.wiki,e=this.params[0],l=this.params[1]||'[is[tiddler]addsuffix[.html]]',o=this.params[2]||'text/html',d=this.params[3],t=this.params.slice(4),e=a.filterTiddlers(e),c=Object.create(null);2<=t.length;)c[t[0]]=t[1],t=t.slice(2);return $tw.utils.each(e,function(e){var t=a.parseTiddler(d||e),r=a.makeWidget(t,{variables:$tw.utils.extend({},c,{currentTiddler:e})}),t=$tw.fakeDocument.createElement('div');r.render(t,null);r='text/html'===o?t.innerHTML:t.textContent,t=n.resolve(i.commander.outputPath,a.filterTiddlers(l,$tw.rootWidget,a.makeTiddlerIterator([e]))[0]);i.commander.verbose&&console.log('Rendering \"'+e+'\" to \"'+t+'\"'),$tw.utils.createFileDirectories(t),s.writeFileSync(t,r,'utf8')}),null},exports.Command=e}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/rendertiddler.js":{"text":"!function(){'use strict';function t(t,r,e){this.params=t,this.commander=r,this.callback=e}exports.info={name:'rendertiddler',synchronous:!1},t.prototype.execute=function(){if(this.params.length<2)return'Missing filename';var r=this,t=require('fs'),e=require('path'),i=this.params[0],s=e.resolve(this.commander.outputPath,this.params[1]),a=this.params[2]||'text/html',n=this.params[3],m=this.params[4],h=this.params[5],e={};return $tw.utils.createFileDirectories(s),n&&(e.currentTiddler=i,i=n),m&&h&&(e[m]=h),t.writeFile(s,this.commander.wiki.renderTiddler(a,i,{variables:e}),'utf8',function(t){r.callback(t)}),null},exports.Command=t}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/rendertiddlers.js":{"text":"!function(){'use strict';function e(e,t,r){this.params=e,this.commander=t,this.callback=r}require('$:/core/modules/widgets/widget.js'),exports.info={name:'rendertiddlers',synchronous:!0},e.prototype.execute=function(){if(this.params.length<2)return'Missing filename';var s=this,a=require('fs'),n=require('path'),o=this.commander.wiki,e=this.params[0],l=this.params[1],m=this.commander.outputPath,u=n.resolve(m,this.params[2]),c=this.params[3]||'text/html',h=this.params[4]||'.html',t='noclean'!==(this.params[5]||'').toLowerCase(),e=o.filterTiddlers(e);return t&&$tw.utils.deleteDirectory(u),$tw.utils.each(e,function(e){var t=o.parseTiddler(l),r=o.makeWidget(t,{variables:{currentTiddler:e}}),i=$tw.fakeDocument.createElement('div');r.render(i,null);t='text/html'===c?i.innerHTML:i.textContent,r=null;!$tw.utils.hop($tw.macros,'tv-get-export-path')||(i=$tw.macros['tv-get-export-path'].run.apply(s,[e]))&&(r=n.resolve(m,i+h));e=r||n.resolve(u,encodeURIComponent(e)+h);$tw.utils.createFileDirectories(e),a.writeFileSync(e,t,'utf8')}),null},exports.Command=e}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/save.js":{"text":"!function(){'use strict';function e(e,t,i){this.params=e,this.commander=t,this.callback=i}exports.info={name:'save',synchronous:!0},e.prototype.execute=function(){if(this.params.length<1)return'Missing filename filter';var n=this,o=require('fs'),s=require('path'),a=this.commander.wiki,e=this.params[0],d=this.params[1]||'[is[tiddler]]',e=a.filterTiddlers(e);return $tw.utils.each(e,function(e){var t=n.commander.wiki.getTiddler(e),i=t.fields.type||'text/vnd.tiddlywiki',r=$tw.config.contentTypeInfo[i]||{encoding:'utf8'},i=s.resolve(n.commander.outputPath,a.filterTiddlers(d,$tw.rootWidget,a.makeTiddlerIterator([e]))[0]);n.commander.verbose&&console.log('Saving \"'+e+'\" to \"'+i+'\"'),$tw.utils.createFileDirectories(i),o.writeFileSync(i,t.fields.text,r.encoding)}),null},exports.Command=e}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/savelibrarytiddlers.js":{"text":"!function(){'use strict';function e(e,t,i){this.params=e,this.commander=t,this.callback=i}exports.info={name:'savelibrarytiddlers',synchronous:!0},e.prototype.execute=function(){if(this.params.length<2)return'Missing filename';var n=this,d=require('fs'),o=require('path'),e=this.params[0],t=this.params[1],l=this.params[2],i=this.params[3],m=n.commander.wiki.getTiddlerDataCached(e,void 0);if(!m)return'\\''+e+'\\' is not a tiddler bundle';var r=[];$tw.utils.each(m.tiddlers,function(e,t){r.push(t)}),t=t?n.commander.wiki.filterTiddlers(t,null,n.commander.wiki.makeTiddlerIterator(r)):r;var u=[];return $tw.utils.each(t,function(e){var t=m.tiddlers[e],i=o.resolve(n.commander.outputPath,l+encodeURIComponent(e)+'.json');$tw.utils.createFileDirectories(i),d.writeFileSync(i,JSON.stringify(t),'utf8');var r,a=JSON.parse(t.text),s=(a.tiddlers[e+'/readme']||{}).text,i=!!n.commander.wiki.doesPluginInfoRequireReload(a),a=a.tiddlers[e+'/icon']||{},e=a.type,a=a.text;e&&a&&(r=$tw.utils.makeDataUri(a,e)),u.push($tw.utils.extend({},t,{text:void 0,readme:s,'requires-reload':i?'yes':'no',icon:r}))}),i&&n.commander.wiki.setTiddlerData(i,u),null},exports.Command=e}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/savetiddler.js":{"text":"!function(){'use strict';function t(t,e,i){this.params=t,this.commander=e,this.callback=i}exports.info={name:'savetiddler',synchronous:!1},t.prototype.execute=function(){if(this.params.length<2)return'Missing filename';var e=this,t=require('fs'),i=require('path'),n=this.params[0],r=i.resolve(this.commander.outputPath,this.params[1]),i=this.commander.wiki.getTiddler(n);if(!i)return'Missing tiddler: '+n;n=i.fields.type||'text/vnd.tiddlywiki',n=$tw.config.contentTypeInfo[n]||{encoding:'utf8'};return $tw.utils.createFileDirectories(r),t.writeFile(r,i.fields.text,n.encoding,function(t){e.callback(t)}),null},exports.Command=t}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/savetiddlers.js":{"text":"!function(){'use strict';function e(e,t,i){this.params=e,this.commander=t,this.callback=i}require('$:/core/modules/widgets/widget.js'),exports.info={name:'savetiddlers',synchronous:!0},e.prototype.execute=function(){if(this.params.length<1)return'Missing filename';var r=this,n=require('fs'),s=require('path'),e=this.commander.wiki,t=this.params[0],o=s.resolve(this.commander.outputPath,this.params[1]),i='noclean'!==(this.params[2]||'').toLowerCase(),t=e.filterTiddlers(t);return i&&$tw.utils.deleteDirectory(o),$tw.utils.createDirectory(o),$tw.utils.each(t,function(e){var t=r.commander.wiki.getTiddler(e),i=t.fields.type||'text/vnd.tiddlywiki',i=$tw.config.contentTypeInfo[i]||{encoding:'utf8'},e=s.resolve(o,encodeURIComponent(e));n.writeFileSync(e,t.fields.text,i.encoding)}),null},exports.Command=e}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/savewikifolder.js":{"text":"!function(){'use strict';var o,n;function i(i,e,t){this.params=i,this.commander=e,this.callback=t}function e(i,e,t){this.wikiFolderPath=i,this.wikiFilter=e||'[all[tiddlers]]',this.commander=t,this.wiki=t.wiki,this.savedPaths=[]}exports.info={name:'savewikifolder',synchronous:!0},$tw.node&&(o=require('fs'),n=require('path')),i.prototype.execute=function(){return this.params.length<1?'Missing wiki folder path':new e(this.params[0],this.params[1],this.commander).save()},e.prototype.log=function(i){this.commander.verbose&&console.log(i)},e.prototype.tiddlersToIgnore=['$:/boot/boot.css','$:/boot/boot.js','$:/boot/bootprefix.js','$:/core','$:/library/sjcl.js','$:/temp/info-plugin'],e.prototype.save=function(){var l=this;if(o.existsSync(this.wikiFolderPath)&&!$tw.utils.isDirectoryEmpty(this.wikiFolderPath))return'The unpackwiki command requires that the output wiki folder be empty';var i=this.wiki.filterTiddlers(this.wikiFilter),n={};return $tw.utils.each(i,function(i){var e,t,s=l.wiki.getTiddler(i);s&&(-1!==l.tiddlersToIgnore.indexOf(i)?l.log('Ignoring tiddler: '+i):(e=s.fields.type,t=s.fields['plugin-type'],'application/json'===e&&t?(t=l.findPluginInLibrary(i))?(l.log('Adding built-in plugin: '+t.name),n[t.type]=n[t.type]||[],$tw.utils.pushTop(n[t.type],t.name)):(l.log('Processing custom plugin: '+i),l.saveCustomPlugin(s)):l.saveTiddler('tiddlers',s)))}),this.saveJSONFile('tiddlywiki.info',n),l.log('Writing tiddlywiki.info: '+JSON.stringify(n,null,$tw.config.preferences.jsonSpaces)),null},e.prototype.findPluginInLibrary=function(i){var e,t,s,i=i.split('/');return'$:'===i[0]&&('languages'===i[1]&&3===i.length?(e='languages'+n.sep+i[2],t=i[1],s=i[2]):('plugins'===i[1]||'themes'===i[1]&&4===i.length)&&(e=i[1]+n.sep+i[2]+n.sep+i[3],t=i[1],s=i[2]+'/'+i[3])),!!(e&&t&&s&&(e=n.resolve($tw.boot.bootPath,'..',e),o.existsSync(e)))&&{pluginPath:e,type:t,name:s}},e.prototype.saveCustomPlugin=function(i){var e=this,t=i.fields.title.split('/'),s=$tw.utils.generateTiddlerFilepath(t[t.length-1],{directory:n.resolve(this.wikiFolderPath,i.fields['plugin-type']+'s')}),t=i.getFieldStrings({exclude:['text','type']});this.saveJSONFile(s+n.sep+'plugin.info',t),e.log('Writing '+s+n.sep+'plugin.info: '+JSON.stringify(t,null,$tw.config.preferences.jsonSpaces));i=JSON.parse(i.fields.text).tiddlers;$tw.utils.each(i,function(i){e.saveTiddler(s,new $tw.Tiddler(i))})},e.prototype.saveTiddler=function(i,e){var t,s;e.fields.title;this.wiki.tiddlerExists('$:/config/FileSystemPaths')&&(t=this.wiki.getTiddlerText('$:/config/FileSystemPaths','').split('\\n')),this.wiki.tiddlerExists('$:/config/FileSystemExtensions')&&(s=this.wiki.getTiddlerText('$:/config/FileSystemExtensions','').split('\\n'));var l=$tw.utils.generateTiddlerFileInfo(e,{directory:n.resolve(this.wikiFolderPath,i),pathFilters:t,extFilters:s,wiki:this.wiki,fileInfo:{}});try{$tw.utils.saveTiddlerToFileSync(e,l)}catch(i){console.log('SaveWikiFolder: Error saving file \\''+l.filepath+'\\', tiddler: \\''+e.fields.title)}},e.prototype.saveJSONFile=function(i,e){this.saveTextFile(i,JSON.stringify(e,null,$tw.config.preferences.jsonSpaces))},e.prototype.saveTextFile=function(i,e){this.saveFile(i,'utf8',e)},e.prototype.saveFile=function(i,e,t){i=n.resolve(this.wikiFolderPath,i);$tw.utils.createFileDirectories(i),o.writeFileSync(i,t,e)},exports.Command=i}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/server.js":{"text":"!function(){'use strict';var s=require('$:/core/modules/server/server.js').Server;function r(r,s,t){this.params=r,this.commander=s,this.callback=t}exports.info={name:'server',synchronous:!0},r.prototype.execute=function(){$tw.boot.wikiTiddlersPath||$tw.utils.warning('Warning: Wiki folder \\''+$tw.boot.wikiPath+'\\' does not exist or is missing a tiddlywiki.info file'),this.server=new s({wiki:this.commander.wiki,variables:{port:this.params[0],host:this.params[6],'root-tiddler':this.params[1],'root-render-type':this.params[2],'root-serve-type':this.params[3],username:this.params[4],password:this.params[5],'path-prefix':this.params[7],'debug-level':this.params[8]}});var r=this.server.listen();return $tw.hooks.invokeHook('th-server-command-post-start',this.server,r,'tiddlywiki'),null},exports.Command=r}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/setfield.js":{"text":"!function(){'use strict';function e(e,t,r){this.params=e,this.commander=t,this.callback=r}require('$:/core/modules/widgets/widget.js'),exports.info={name:'setfield',synchronous:!0},e.prototype.execute=function(){if(this.params.length<4)return'Missing parameters';var s=this.commander.wiki,e=this.params[0],a=this.params[1]||'text',n=this.params[2],d=this.params[3]||'text/plain',e=s.filterTiddlers(e);return $tw.utils.each(e,function(e){var t=s.parseTiddler(n),r={},i=s.getTiddler(e);t?(t=s.makeWidget(t,{variables:{currentTiddler:e}}),e=$tw.fakeDocument.createElement('div'),t.render(e,null),r[a]='text/html'===d?e.innerHTML:e.textContent):r[a]=void 0,s.addTiddler(new $tw.Tiddler(i,r))}),null},exports.Command=e}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/unpackplugin.js":{"text":"!function(){'use strict';function n(n,i,t){this.params=n,this.commander=i,this.callback=t}exports.info={name:'unpackplugin',synchronous:!0},n.prototype.execute=function(){if(this.params.length<1)return'Missing plugin name';var i=this,n=this.params[0],t=this.commander.wiki.getTiddlerDataCached(n);return t?($tw.utils.each(t.tiddlers,function(n){i.commander.wiki.addTiddler(new $tw.Tiddler(n))}),null):'Plugin \\''+n+'\\' not found'},exports.Command=n}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/verbose.js":{"text":"!function(){'use strict';function o(o,t){this.params=o,this.commander=t}exports.info={name:'verbose',synchronous:!0},o.prototype.execute=function(){return this.commander.verbose=!0,this.commander.streams.output.write('Boot log:\\n '+$tw.boot.logMessages.join('\\n ')+'\\n'),null},exports.Command=o}();","type":"application/javascript","module-type":"command"},"$:/core/modules/commands/version.js":{"text":"!function(){'use strict';function t(t,n){this.params=t,this.commander=n}exports.info={name:'version',synchronous:!0},t.prototype.execute=function(){return this.commander.streams.output.write($tw.version+'\\n'),null},exports.Command=t}();","type":"application/javascript","module-type":"command"},"$:/core/modules/config.js":{"text":"!function(){'use strict';exports.preferences={},exports.preferences.notificationDuration=3e3,exports.preferences.jsonSpaces=4,exports.textPrimitives={upperLetter:'[A-ZÀ-ÖØ-ÞŐŰ]',lowerLetter:'[a-zß-öø-ÿőű]',anyLetter:'[A-Za-z0-9À-ÖØ-Þß-öø-ÿŐŰőű]',blockPrefixLetters:'[A-Za-z0-9-_À-ÖØ-Þß-öø-ÿŐŰőű]'},exports.textPrimitives.unWikiLink='~',exports.textPrimitives.wikiLink=exports.textPrimitives.upperLetter+'+'+exports.textPrimitives.lowerLetter+'+'+exports.textPrimitives.upperLetter+exports.textPrimitives.anyLetter+'*',exports.htmlEntities={quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},exports.htmlVoidElements='area,base,br,col,command,embed,hr,img,input,keygen,link,meta,param,source,track,wbr'.split(','),exports.htmlBlockElements='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'.split(','),exports.htmlUnsafeElements='script'.split(',')}();","type":"application/javascript","module-type":"config"},"$:/core/modules/deserializers.js":{"text":"!function(){'use strict';function c(t){var e={};if(1<arguments.length)for(var r=1;r<arguments.length;r++){var i,n=arguments[r];for(i in n)e[i]=n[i]}var s=/^\\s*<div\\s+([^>]*)>(\\s*<pre>)?/gi.exec(t);if(s){var a=(s[2]?/<\\/pre>\\s*<\\/div>\\s*$/gi:/<\\/div>\\s*$/gi).exec(t);if(a){e.text=t.substring(s.index+s[0].length,a.index);var l,o,d,u=/\\s*([^=\\s]+)\\s*=\\s*(?:\"([^\"]*)\"|'([^']*)')/gi;do{}while((d=u.exec(s[1]))&&(l=d[1],o=void 0!==d[2]?d[2]:d[3],e[l]=o),d);return e}}}function a(t,e,r,i){var n=[],s=/(<\\/div>\\s*)/gi,a=e,l=r?void 0:'text/x-tiddlywiki';s.lastIndex=a;for(var o=s.exec(t);o;){var d=s.lastIndex,u=c(t.substring(a,d),i,{type:l});if(!u)break;$tw.utils.each(u,function(t,e){'string'==typeof t&&(u[e]=$tw.utils.htmlDecode(t))}),null!==u.text&&n.push(u),a=d,o=s.exec(t)}return n}exports['application/x-tiddler-html-div']=function(t,e){return[c(t,e)]},exports['application/json']=function(t,e){var r,i=[];try{r=JSON.parse(t)}catch(t){r=[{title:'JSON error: '+t,text:''}]}$tw.utils.isArray(r)||(r=[r]);for(var n=0;n<r.length;n++){var s,a=r[n],e={};for(s in a)'string'==typeof a[s]&&(e[s]=a[s]);i.push(e)}return i},exports['text/html']=function(t,e){var r=/<div id=[\"']?storeArea['\"]?( style=[\"']?display:none;[\"']?)?>/gi,i=r.exec(t);if(i){var n=a(t,r.lastIndex,!!i[1],e),r=/<div id=[\"']?systemArea['\"]?( style=[\"']?display:none;[\"']?)?>/gi,i=r.exec(t);return i&&n.push.apply(n,a(t,r.lastIndex,!!i[1],e)),n}var s,n=$tw.utils.extractEncryptedStoreArea(t);return n?$tw.utils.decryptStoreArea(n):(t=t,e=e,s={},$tw.utils.each(e,function(t,e){s[e]=t}),s.text=t,s.type='text/html',[s])}}();","type":"application/javascript","module-type":"tiddlerdeserializer"},"$:/core/modules/editor/engines/framed.js":{"text":"!function(){'use strict';function e(e){e=e||{},this.widget=e.widget,this.value=e.value,this.parentNode=e.parentNode,this.nextSibling=e.nextSibling,this.dummyTextArea=this.widget.document.createElement('textarea'),this.widget.editClass&&(this.dummyTextArea.className=this.widget.editClass),this.dummyTextArea.setAttribute('hidden','true'),this.parentNode.insertBefore(this.dummyTextArea,this.nextSibling),this.widget.domNodes.push(this.dummyTextArea),this.iframeNode=this.widget.document.createElement('iframe'),this.parentNode.insertBefore(this.iframeNode,this.nextSibling),this.iframeDoc=this.iframeNode.contentWindow.document,this.iframeDoc.open(),this.iframeDoc.write(''),this.iframeDoc.close(),this.iframeNode.className=this.dummyTextArea.className,this.iframeNode.style.border='none',this.iframeNode.style.padding='0',this.iframeNode.style.resize='none',this.iframeDoc.body.style.margin='0',this.iframeDoc.body.style.padding='0',this.widget.domNodes.push(this.iframeNode);e=this.widget.editTag;-1!==$tw.config.htmlUnsafeElements.indexOf(e)&&(e='input'),this.domNode=this.iframeDoc.createElement(e),'textarea'===this.widget.editTag?this.domNode.appendChild(this.iframeDoc.createTextNode(this.value)):this.domNode.value=this.value,this.widget.editType&&this.domNode.setAttribute('type',this.widget.editType),this.widget.editPlaceholder&&this.domNode.setAttribute('placeholder',this.widget.editPlaceholder),this.widget.editSize&&this.domNode.setAttribute('size',this.widget.editSize),this.widget.editRows&&this.domNode.setAttribute('rows',this.widget.editRows),this.widget.editTabIndex&&this.iframeNode.setAttribute('tabindex',this.widget.editTabIndex),this.widget.editAutoComplete&&this.domNode.setAttribute('autocomplete',this.widget.editAutoComplete),'yes'===this.widget.isDisabled&&this.domNode.setAttribute('disabled',!0),this.copyStyles(),$tw.utils.addEventListeners(this.domNode,[{name:'click',handlerObject:this,handlerMethod:'handleClickEvent'},{name:'input',handlerObject:this,handlerMethod:'handleInputEvent'},{name:'keydown',handlerObject:this.widget,handlerMethod:'handleKeydownEvent'},{name:'focus',handlerObject:this,handlerMethod:'handleFocusEvent'}]),this.iframeDoc.body.appendChild(this.domNode)}e.prototype.copyStyles=function(){$tw.utils.copyStyles(this.dummyTextArea,this.domNode),this.domNode.style.display='block',this.domNode.style.width='100%',this.domNode.style.margin='0',this.domNode.style['-webkit-text-fill-color']='currentcolor'},e.prototype.setText=function(e,t){this.domNode.isTiddlyWikiFakeDom||(this.domNode.ownerDocument.activeElement!==this.domNode&&this.updateDomNodeText(e),this.fixHeight())},e.prototype.updateDomNodeText=function(e){this.domNode.value=e},e.prototype.getText=function(){return this.domNode.value},e.prototype.fixHeight=function(){var e;this.copyStyles(),'textarea'===this.widget.editTag&&(this.widget.editAutoHeight?this.domNode&&!this.domNode.isTiddlyWikiFakeDom&&(e=$tw.utils.resizeTextAreaToFit(this.domNode,this.widget.editMinHeight),this.iframeNode.style.height=e+14+'px'):(e=parseInt(this.widget.wiki.getTiddlerText('$:/config/TextEditor/EditorHeight/Height','400px'),10),e=Math.max(e,20),this.domNode.style.height=e+'px',this.iframeNode.style.height=e+14+'px'))},e.prototype.focus=function(){this.domNode.focus&&this.domNode.select&&(this.domNode.focus(),this.domNode.select())},e.prototype.handleFocusEvent=function(e){this.widget.editCancelPopups&&$tw.popup.cancel(0)},e.prototype.handleClickEvent=function(e){return this.fixHeight(),!0},e.prototype.handleInputEvent=function(e){return this.widget.saveChanges(this.getText()),this.fixHeight(),this.widget.editInputActions&&this.widget.invokeActionString(this.widget.editInputActions),!0},e.prototype.createTextOperation=function(){var e={text:this.domNode.value,selStart:this.domNode.selectionStart,selEnd:this.domNode.selectionEnd,cutStart:null,cutEnd:null,replacement:null,newSelStart:null,newSelEnd:null};return e.selection=e.text.substring(e.selStart,e.selEnd),e},e.prototype.executeTextOperation=function(e){var t=e.text;return null!==e.replacement&&(t=e.text.substring(0,e.cutStart)+e.replacement+e.text.substring(e.cutEnd),this.iframeDoc.queryCommandSupported('insertText')&&this.iframeDoc.queryCommandSupported('delete')&&!$tw.browser.isFirefox?(this.domNode.focus(),this.domNode.setSelectionRange(e.cutStart,e.cutEnd),''===e.replacement?this.iframeDoc.execCommand('delete',!1,''):this.iframeDoc.execCommand('insertText',!1,e.replacement)):this.domNode.value=t,this.domNode.focus(),this.domNode.setSelectionRange(e.newSelStart,e.newSelEnd)),this.domNode.focus(),t},exports.FramedEngine=e}();","type":"application/javascript","module-type":"library"},"$:/core/modules/editor/engines/simple.js":{"text":"!function(){'use strict';function t(t){t=t||{},this.widget=t.widget,this.value=t.value,this.parentNode=t.parentNode,this.nextSibling=t.nextSibling;t=this.widget.editTag;-1!==$tw.config.htmlUnsafeElements.indexOf(t)&&(t='input'),this.domNode=this.widget.document.createElement(t),'textarea'===this.widget.editTag?this.domNode.appendChild(this.widget.document.createTextNode(this.value)):this.domNode.value=this.value,this.widget.editType&&this.domNode.setAttribute('type',this.widget.editType),this.widget.editPlaceholder&&this.domNode.setAttribute('placeholder',this.widget.editPlaceholder),this.widget.editSize&&this.domNode.setAttribute('size',this.widget.editSize),this.widget.editRows&&this.domNode.setAttribute('rows',this.widget.editRows),this.widget.editClass&&(this.domNode.className=this.widget.editClass),this.widget.editTabIndex&&this.domNode.setAttribute('tabindex',this.widget.editTabIndex),this.widget.editAutoComplete&&this.domNode.setAttribute('autocomplete',this.widget.editAutoComplete),'yes'===this.widget.isDisabled&&this.domNode.setAttribute('disabled',!0),$tw.utils.addEventListeners(this.domNode,[{name:'focus',handlerObject:this,handlerMethod:'handleFocusEvent'},{name:'input',handlerObject:this,handlerMethod:'handleInputEvent'}]),this.parentNode.insertBefore(this.domNode,this.nextSibling),this.widget.domNodes.push(this.domNode)}t.prototype.setText=function(t,e){this.domNode.isTiddlyWikiFakeDom||(this.domNode.ownerDocument.activeElement===this.domNode&&''!==t||this.updateDomNodeText(t),this.fixHeight())},t.prototype.updateDomNodeText=function(t){this.domNode.value=t},t.prototype.getText=function(){return this.domNode.value},t.prototype.fixHeight=function(){var t;'textarea'===this.widget.editTag&&(this.widget.editAutoHeight?this.domNode&&!this.domNode.isTiddlyWikiFakeDom&&$tw.utils.resizeTextAreaToFit(this.domNode,this.widget.editMinHeight):(t=parseInt(this.widget.wiki.getTiddlerText('$:/config/TextEditor/EditorHeight/Height','400px'),10),t=Math.max(t,20),this.domNode.style.height=t+'px'))},t.prototype.focus=function(){this.domNode.focus&&this.domNode.select&&(this.domNode.focus(),this.domNode.select())},t.prototype.handleInputEvent=function(t){return this.widget.saveChanges(this.getText()),this.fixHeight(),this.widget.editInputActions&&this.widget.invokeActionString(this.widget.editInputActions),!0},t.prototype.handleFocusEvent=function(t){return this.widget.editCancelPopups&&$tw.popup.cancel(0),this.widget.editFocusPopup&&$tw.popup.triggerPopup({domNode:this.domNode,title:this.widget.editFocusPopup,wiki:this.widget.wiki,force:!0}),!0},t.prototype.createTextOperation=function(){return null},t.prototype.executeTextOperation=function(t){},exports.SimpleEngine=t}();","type":"application/javascript","module-type":"library"},"$:/core/modules/editor/factory.js":{"text":"!function(){'use strict';var s='$:/config/TextEditor/EditorHeight/Mode',r='$:/config/TextEditor/EnableToolbar',t=require('$:/core/modules/widgets/widget.js').widget;exports.editTextWidgetFactory=function(d,o){var i=function(t,e){this.editorOperations||(i.prototype.editorOperations={},$tw.modules.applyMethods('texteditoroperation',this.editorOperations)),this.initialise(t,e)};return i.prototype=new t,i.prototype.render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute(),this.editShowToolbar&&(this.toolbarNode=this.document.createElement('div'),this.toolbarNode.className='tc-editor-toolbar',t.insertBefore(this.toolbarNode,e),this.renderChildren(this.toolbarNode,null),this.domNodes.push(this.toolbarNode));var i=this.getEditInfo(),s=this.editShowToolbar?d:o;this.engine=new s({widget:this,value:i.value,type:i.type,parentNode:t,nextSibling:e}),this.postRender&&this.postRender(),this.engine.fixHeight(),'true'!==this.editFocus&&'yes'!==this.editFocus||this.engine.focus(),this.addEventListeners([{type:'tm-edit-text-operation',handler:'handleEditTextOperationMessage'}])},i.prototype.getEditInfo=function(){var t,e,s=this,i='text/plain';if(this.editIndex)t=this.wiki.extractTiddlerDataItem(this.editTitle,this.editIndex,this.editDefault),e=function(t){var e=s.wiki.getTiddlerData(s.editTitle,{});e[s.editIndex]!==t&&(e[s.editIndex]=t,s.wiki.setTiddlerData(s.editTitle,e))};else{var d=this.wiki.getTiddler(this.editTitle);if(d)t=d.hasField(this.editField)?d.getFieldString(this.editField):this.editDefault||'','text'===this.editField&&(i=d.fields.type||'text/vnd.tiddlywiki');else{switch(this.editField){case'text':t='Type the text for the tiddler \\''+this.editTitle+'\\'',i='text/vnd.tiddlywiki';break;case'title':t=this.editTitle;break;default:t=''}void 0!==this.editDefault&&(t=this.editDefault)}e=function(t){var e=s.wiki.getTiddler(s.editTitle),i={title:s.editTitle};i[s.editField]=t,s.wiki.addTiddler(new $tw.Tiddler(s.wiki.getCreationFields(),e,i,s.wiki.getModificationFields()))}}return this.editType&&(i=this.editType),{value:t||'',type:i,update:e}},i.prototype.handleEditTextOperationMessage=function(t){var e=this.engine.createTextOperation(),i=this.editorOperations[t.param];i&&i.call(this,t,e);e=this.engine.executeTextOperation(e);this.engine.fixHeight(),this.saveChanges(e)},i.prototype.execute=function(){var t,e,i;this.editTitle=this.getAttribute('tiddler',this.getVariable('currentTiddler')),this.editField=this.getAttribute('field','text'),this.editIndex=this.getAttribute('index'),this.editDefault=this.getAttribute('default'),this.editClass=this.getAttribute('class'),this.editPlaceholder=this.getAttribute('placeholder'),this.editSize=this.getAttribute('size'),this.editRows=this.getAttribute('rows'),this.editAutoHeight=this.wiki.getTiddlerText(s,'auto'),this.editAutoHeight='yes'===this.getAttribute('autoHeight','auto'===this.editAutoHeight?'yes':'no'),this.editMinHeight=this.getAttribute('minHeight','100px'),this.editFocusPopup=this.getAttribute('focusPopup'),this.editFocus=this.getAttribute('focus'),this.editTabIndex=this.getAttribute('tabindex'),this.editCancelPopups='yes'===this.getAttribute('cancelPopups',''),this.editInputActions=this.getAttribute('inputActions'),this.editRefreshTitle=this.getAttribute('refreshTitle'),this.editAutoComplete=this.getAttribute('autocomplete'),this.isDisabled=this.getAttribute('disabled','no'),'text'===this.editField?t='textarea':(t='input',(i=$tw.Tiddler.fieldModules[this.editField])&&i.editTag&&(t=i.editTag),i&&i.editType&&(e=i.editType),e=e||'text'),this.editTag=this.getAttribute('tag',t)||'input',this.editType=this.getAttribute('type',e),this.makeChildWidgets(),this.editShowToolbar=this.wiki.getTiddlerText(r,'yes'),this.editShowToolbar='yes'===this.editShowToolbar&&!!(this.children&&0<this.children.length)&&!this.document.isTiddlyWikiFakeDom},i.prototype.refresh=function(t){var e=this.computeAttributes();return e.tiddler||e.field||e.index||e.default||e.class||e.placeholder||e.size||e.autoHeight||e.minHeight||e.focusPopup||e.rows||e.tabindex||e.cancelPopups||e.inputActions||e.refreshTitle||e.autocomplete||t[s]||t[r]||e.disabled?(this.refreshSelf(),!0):(t[this.editRefreshTitle]?this.engine.updateDomNodeText(this.getEditInfo().value):t[this.editTitle]&&(e=this.getEditInfo(),this.updateEditor(e.value,e.type)),this.engine.fixHeight(),!!this.editShowToolbar&&this.refreshChildren(t))},i.prototype.updateEditor=function(t,e){this.updateEditorDomNode(t,e)},i.prototype.updateEditorDomNode=function(t,e){this.engine.setText(t,e)},i.prototype.saveChanges=function(t){var e=this.getEditInfo();t!==e.value&&e.update(t)},i.prototype.handleKeydownEvent=function(t){if(this.toolbarNode)for(var e=this.toolbarNode.querySelectorAll('[data-tw-keyboard-shortcut]'),i=0;i<e.length;i++){var s=e[i],d=s.getAttribute('data-tw-keyboard-shortcut'),d=$tw.keyboardManager.parseKeyDescriptors(d,{wiki:this.wiki});if($tw.keyboardManager.checkKeyDescriptors(t,d)){d=this.document.createEvent('Events');return d.initEvent('click',!0,!1),s.dispatchEvent(d),t.preventDefault(),t.stopPropagation(),!0}}return!!this.propogateKeydownEvent(t)&&(t.preventDefault(),t.stopPropagation(),!0)},i.prototype.propogateKeydownEvent=function(t){var e=this.document.createEventObject?this.document.createEventObject():this.document.createEvent('Events');return e.initEvent&&e.initEvent('keydown',!0,!0),e.keyCode=t.keyCode,e.which=t.which,e.metaKey=t.metaKey,e.ctrlKey=t.ctrlKey,e.altKey=t.altKey,e.shiftKey=t.shiftKey,!this.parentDomNode.dispatchEvent(e)},i}}();","type":"application/javascript","module-type":"library"},"$:/core/modules/editor/operations/bitmap/clear.js":{"text":"!function(){'use strict';exports.clear=function(t){var e=this.canvasDomNode.getContext('2d');e.globalAlpha=1,e.fillStyle=t.paramObject.colour||'white',e.fillRect(0,0,this.canvasDomNode.width,this.canvasDomNode.height),this.strokeEnd()}}();","type":"application/javascript","module-type":"bitmapeditoroperation"},"$:/core/modules/editor/operations/bitmap/resize.js":{"text":"!function(){'use strict';exports.resize=function(t){var a=parseInt(t.paramObject.width||this.canvasDomNode.width,10),t=parseInt(t.paramObject.height||this.canvasDomNode.height,10);0<a&&0<t&&(a!==this.currCanvas.width||t!==this.currCanvas.height)&&this.changeCanvasSize(a,t),this.refreshToolbar(),this.saveChanges()}}();","type":"application/javascript","module-type":"bitmapeditoroperation"},"$:/core/modules/editor/operations/bitmap/rotate-left.js":{"text":"!function(){'use strict';exports['rotate-left']=function(t){this.rotateCanvasLeft(),this.refreshToolbar(),this.saveChanges()}}();","type":"application/javascript","module-type":"bitmapeditoroperation"},"$:/core/modules/editor/operations/text/excise.js":{"text":"!function(){'use strict';exports.excise=function(e,t){var i=this.wiki.getTiddler(this.editTitle),a=this.editTitle;i&&i.fields['draft.of']&&(a=i.fields['draft.of']);i=e.paramObject.title||this.wiki.generateNewTitle('New Excision');switch(this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),this.wiki.getModificationFields(),{title:i,text:t.selection,tags:'yes'===e.paramObject.tagnew?[a]:[]})),t.replacement=i,e.paramObject.type||'transclude'){case'transclude':t.replacement='{{'+t.replacement+'}}';break;case'link':t.replacement='[['+t.replacement+']]';break;case'macro':t.replacement='<<'+(e.paramObject.macro||'translink')+' \"\"\"'+t.replacement+'\"\"\">>'}t.cutStart=t.selStart,t.cutEnd=t.selEnd,t.newSelStart=t.selStart,t.newSelEnd=t.selStart+t.replacement.length}}();","type":"application/javascript","module-type":"texteditoroperation"},"$:/core/modules/editor/operations/text/make-link.js":{"text":"!function(){'use strict';exports['make-link']=function(e,t){t.selection?t.replacement='[['+t.selection+'|'+e.paramObject.text+']]':t.replacement='[['+e.paramObject.text+']]',t.cutStart=t.selStart,t.cutEnd=t.selEnd,t.newSelStart=t.selStart+t.replacement.length,t.newSelEnd=t.newSelStart}}();","type":"application/javascript","module-type":"texteditoroperation"},"$:/core/modules/editor/operations/text/prefix-lines.js":{"text":"!function(){'use strict';exports['prefix-lines']=function(r,t){var a=parseInt(r.paramObject.count+'',10);t.cutStart=$tw.utils.findPrecedingLineBreak(t.text,t.selStart),t.cutEnd=$tw.utils.findFollowingLineBreak(t.text,t.selEnd);var c=$tw.utils.repeat(r.paramObject.character,a),l=t.text.substring(t.cutStart,t.cutEnd).split(/\\r?\\n/gm);$tw.utils.each(l,function(t,e){for(var n=0;t.charAt(0)===r.paramObject.character;)t=t.substring(1),n++;for(;' '===t.charAt(0);)t=t.substring(1);n!==a&&(t=c+' '+t),l[e]=t}),t.replacement=l.join('\\n'),1===l.length?(t.newSelStart=t.cutStart+t.replacement.length,t.newSelEnd=t.newSelStart):(t.newSelStart=t.cutStart,t.newSelEnd=t.newSelStart+t.replacement.length)}}();","type":"application/javascript","module-type":"texteditoroperation"},"$:/core/modules/editor/operations/text/replace-all.js":{"text":"!function(){'use strict';exports['replace-all']=function(t,e){e.cutStart=0,e.cutEnd=e.text.length,e.replacement=t.paramObject.text,e.newSelStart=0,e.newSelEnd=e.replacement.length}}();","type":"application/javascript","module-type":"texteditoroperation"},"$:/core/modules/editor/operations/text/replace-selection.js":{"text":"!function(){'use strict';exports['replace-selection']=function(t,e){e.replacement=t.paramObject.text,e.cutStart=e.selStart,e.cutEnd=e.selEnd,e.newSelStart=e.selStart,e.newSelEnd=e.selStart+e.replacement.length}}();","type":"application/javascript","module-type":"texteditoroperation"},"$:/core/modules/editor/operations/text/save-selection.js":{"text":"!function(){'use strict';exports['save-selection']=function(t,e){var s=t.paramObject.tiddler,t=t.paramObject.field||'text';s&&t&&this.wiki.setText(s,t,null,e.text.substring(e.selStart,e.selEnd))}}();","type":"application/javascript","module-type":"texteditoroperation"},"$:/core/modules/editor/operations/text/wrap-lines.js":{"text":"!function(){'use strict';exports['wrap-lines']=function(t,e){e.cutStart=$tw.utils.findPrecedingLineBreak(e.text,e.selStart),e.cutEnd=$tw.utils.findFollowingLineBreak(e.text,e.selEnd),e.replacement=t.paramObject.prefix+'\\n'+e.text.substring(e.cutStart,e.cutEnd)+'\\n'+t.paramObject.suffix+'\\n',e.newSelStart=e.cutStart+t.paramObject.prefix.length+1,e.newSelEnd=e.newSelStart+(e.cutEnd-e.cutStart)}}();","type":"application/javascript","module-type":"texteditoroperation"},"$:/core/modules/editor/operations/text/wrap-selection.js":{"text":"!function(){'use strict';exports['wrap-selection']=function(t,e){e.selStart===e.selEnd?(e.text.substring(e.selStart-t.paramObject.prefix.length,e.selStart+t.paramObject.suffix.length)===t.paramObject.prefix+t.paramObject.suffix?(e.cutStart=e.selStart-t.paramObject.prefix.length,e.cutEnd=e.selEnd+t.paramObject.suffix.length,e.replacement='',e.newSelStart=e.cutStart):(e.cutStart=e.selStart,e.cutEnd=e.selEnd,e.replacement=t.paramObject.prefix+t.paramObject.suffix,e.newSelStart=e.selStart+t.paramObject.prefix.length),e.newSelEnd=e.newSelStart):(e.text.substring(e.selStart,e.selStart+t.paramObject.prefix.length)===t.paramObject.prefix&&e.text.substring(e.selEnd-t.paramObject.suffix.length,e.selEnd)===t.paramObject.suffix?(e.cutStart=e.selStart,e.cutEnd=e.selEnd,e.replacement=e.selection.substring(t.paramObject.prefix.length,e.selection.length-t.paramObject.suffix.length)):(e.cutStart=e.selStart,e.cutEnd=e.selEnd,e.replacement=t.paramObject.prefix+e.selection+t.paramObject.suffix),e.newSelStart=e.selStart,e.newSelEnd=e.selStart+e.replacement.length)}}();","type":"application/javascript","module-type":"texteditoroperation"},"$:/core/modules/filterrunprefixes/all.js":{"text":"!function(){'use strict';exports.all=function(c){return function(n,t,u){n.push.apply(n,c(t,u))}}}();","type":"application/javascript","module-type":"filterrunprefix"},"$:/core/modules/filterrunprefixes/and.js":{"text":"!function(){'use strict';exports.and=function(e,i){return function(r,t,n){t=i.wiki.makeTiddlerIterator(r.toArray()),r.clear(),r.pushTop(e(t,n))}}}();","type":"application/javascript","module-type":"filterrunprefix"},"$:/core/modules/filterrunprefixes/else.js":{"text":"!function(){'use strict';exports.else=function(u){return function(n,t,e){0===n.length&&n.pushTop(u(t,e))}}}();","type":"application/javascript","module-type":"filterrunprefix"},"$:/core/modules/filterrunprefixes/except.js":{"text":"!function(){'use strict';exports.except=function(c){return function(t,e,n){t.remove(c(e,n))}}}();","type":"application/javascript","module-type":"filterrunprefix"},"$:/core/modules/filterrunprefixes/filter.js":{"text":"!function(){'use strict';exports.filter=function(i,o){return function(t,e,n){var r;0<t.length&&(r=[],t.each(function(t){0===i(o.wiki.makeTiddlerIterator([t]),n).length&&r.push(t)}),t.remove(r))}}}();","type":"application/javascript","module-type":"filterrunprefix"},"$:/core/modules/filterrunprefixes/intersection.js":{"text":"!function(){'use strict';exports.intersection=function(r){return function(n,t,e){var i;0!==n.length&&(i=r(t,e),e=n.toArray(),n.clear(),$tw.utils.each(e,function(t){-1!==i.indexOf(t)&&n.push(t)}))}}}();","type":"application/javascript","module-type":"filterrunprefix"},"$:/core/modules/filterrunprefixes/or.js":{"text":"!function(){'use strict';exports.or=function(u){return function(n,t,o){n.pushTop(u(t,o))}}}();","type":"application/javascript","module-type":"filterrunprefix"},"$:/core/modules/filterrunprefixes/reduce.js":{"text":"!function(){'use strict';exports.reduce=function(c,i){return function(t,e,n){var u,a;0<t.length&&(u='',a=0,t.each(function(r){var e=c(i.wiki.makeTiddlerIterator([r]),{getVariable:function(e){switch(e){case'currentTiddler':return''+r;case'accumulator':return''+u;case'index':return''+a;case'revIndex':return''+(t.length-1-a);case'length':return''+t.length;default:return n.getVariable(e)}}});0<e.length&&(u=''+e[0]),++a}),t.clear(),t.push(u))}}}();","type":"application/javascript","module-type":"filterrunprefix"},"$:/core/modules/filters/addprefix.js":{"text":"!function(){'use strict';exports.addprefix=function(n,t,r){var u=[];return n(function(n,r){u.push(t.operand+r)}),u}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/addsuffix.js":{"text":"!function(){'use strict';exports.addsuffix=function(n,u,t){var r=[];return n(function(n,t){r.push(t+u.operand)}),r}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/after.js":{"text":"!function(){'use strict';exports.after=function(n,t,e){var r=[];n(function(n,t){r.push(t)});t=r.indexOf(t.operand);return-1===t||t>r.length-2?[]:[r[t+1]]}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/all/current.js":{"text":"!function(){'use strict';exports.current=function(t,e,r){r=r.widget&&r.widget.getVariable('currentTiddler');return r?[r]:[]}}();","type":"application/javascript","module-type":"allfilteroperator"},"$:/core/modules/filters/all/missing.js":{"text":"!function(){'use strict';exports.missing=function(i,s,t){return t.wiki.getMissingTitles()}}();","type":"application/javascript","module-type":"allfilteroperator"},"$:/core/modules/filters/all/orphans.js":{"text":"!function(){'use strict';exports.orphans=function(t,n,i){return i.wiki.getOrphanTitles()}}();","type":"application/javascript","module-type":"allfilteroperator"},"$:/core/modules/filters/all/shadows.js":{"text":"!function(){'use strict';exports.shadows=function(t,i,s){return s.wiki.allShadowTitles()}}();","type":"application/javascript","module-type":"allfilteroperator"},"$:/core/modules/filters/all/tags.js":{"text":"!function(){'use strict';exports.tags=function(t,e,i){return Object.keys(i.wiki.getTagMap())}}();","type":"application/javascript","module-type":"allfilteroperator"},"$:/core/modules/filters/all/tiddlers.js":{"text":"!function(){'use strict';exports.tiddlers=function(t,i,e){return e.wiki.allTitles()}}();","type":"application/javascript","module-type":"allfilteroperator"},"$:/core/modules/filters/all.js":{"text":"!function(){'use strict';var n;exports.all=function(e,r,t){var i=(n||(n={},$tw.modules.applyMethods('allfilteroperator',n)),n),l=new $tw.utils.LinkedList,s=r.operand.split('+');if(1===s.length&&''===s[0])return e;if(1===s.length&&'tiddlers'===s[0])return t.wiki.each;if(1===s.length&&'shadows'===s[0])return t.wiki.eachShadow;if(2===s.length&&'tiddlers'===s[0]&&'shadows'===s[1])return t.wiki.eachTiddlerPlusShadows;if(2===s.length&&'shadows'===s[0]&&'tiddlers'===s[1])return t.wiki.eachShadowPlusTiddlers;for(var a=0;a<s.length;a++){var d=i[s[a]];d&&l.pushTop(d(e,r.prefix,t))}return l.toArray()}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/backlinks.js":{"text":"!function(){'use strict';exports.backlinks=function(i,t,n){var s=[];return i(function(i,t){$tw.utils.pushTop(s,n.wiki.getTiddlerBacklinks(t))}),s}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/before.js":{"text":"!function(){'use strict';exports.before=function(n,e,r){var t=[];n(function(n,e){t.push(e)});e=t.indexOf(e.operand);return e<=0?[]:[t[e-1]]}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/commands.js":{"text":"!function(){'use strict';exports.commands=function(t,n,s){var c=[];return $tw.utils.each($tw.commands,function(t,n){c.push(n)}),c.sort(),c}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/compare.js":{"text":"!function(){'use strict';exports.compare=function(n,e,t){var r=e.suffixes||[],u=(r[0]||[])[0],r=(r[1]||[])[0],i=$tw.utils.makeCompareFunction(u,{defaultType:'number'}),o=a[r]||a.eq,f='!'===e.prefix,c=[];return n(function(n,t){o(i(t,e.operand))!==f&&c.push(t)}),c};var a={eq:function(n){return 0===n},ne:function(n){return 0!==n},gteq:function(n){return 0<=n},gt:function(n){return 0<n},lteq:function(n){return n<=0},lt:function(n){return n<0}}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/contains.js":{"text":"!function(){'use strict';exports.contains=function(i,t,n){var e=[],s=(t.suffix||'list').toLowerCase();return'!'===t.prefix?i(function(i,n){i&&-1!==i.getFieldList(s).indexOf(t.operand)||e.push(n)}):i(function(i,n){i&&-1!==i.getFieldList(s).indexOf(t.operand)&&e.push(n)}),e}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/count.js":{"text":"!function(){'use strict';exports.count=function(n,t,u){var c=0;return n(function(n,t){c++}),[c+'']}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/days.js":{"text":"!function(){'use strict';exports.days=function(t,e,s){function i(t){return 0===(t=$tw.utils.sign(a-new Date(t).setHours(0,0,0,0)))||t===f}var n=[],u=e.suffix||'modified',r=parseInt(e.operand,10)||0,f=$tw.utils.sign(r),a=(new Date).setHours(0,0,0,0)+864e5*r;return'!'===e.prefix?(a-=864e5*f,t(function(t,e){t&&t.fields[u]&&(i($tw.utils.parseDate(t.fields[u]))||n.push(e))})):t(function(t,e){t&&t.fields[u]&&i($tw.utils.parseDate(t.fields[u]))&&n.push(e)}),n}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/duplicateslugs.js":{"text":"!function(){'use strict';exports.duplicateslugs=function(u,t,n){var s=Object.create(null),c=[];return u(function(u,t){var i=n.wiki.slugify(t);i in s?(!0!==s[i]&&(c.push(s[i]),s[i]=!0),c.push(t)):s[i]=t}),c}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/each.js":{"text":"!function(){'use strict';exports.each=function(t,i,u){var n,s=[],e={},o=i.operand||'title';return'value'===i.suffix&&'title'===o?t(function(t,i){$tw.utils.hop(e,i)||(e[i]=!0,s.push(i))}):'list-item'!==i.suffix?t('title'===o?function(t,i){t&&!$tw.utils.hop(e,i)&&(e[i]=!0,s.push(i))}:function(t,i){t&&(n=t.getFieldString(o),$tw.utils.hop(e,n)||(e[n]=!0,s.push(i)))}):t(function(t,i){t&&$tw.utils.each(u.wiki.getTiddlerList(i,o),function(t){$tw.utils.hop(e,t)||(e[t]=!0,s.push(t))})}),s}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/eachday.js":{"text":"!function(){'use strict';exports.eachday=function(e,t,s){var i=[],n=[],u=t.operand||'modified';return e(function(e,t){e&&e.fields[u]&&(e=$tw.utils.parseDate(e.fields[u]),e=(e=new Date(e).setHours(0,0,0,0))+0,-1===n.indexOf(e)&&(n.push(e),i.push(t)))}),i}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/editiondescription.js":{"text":"!function(){'use strict';exports.editiondescription=function(t,i,n){var o,e=[];return!$tw.node||(o=$tw.utils.getEditionInfo())&&t(function(t,i){$tw.utils.hop(o,i)&&e.push(o[i].description||'')}),e}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/editions.js":{"text":"!function(){'use strict';exports.editions=function(t,n,i){var o,s=[];return $tw.node&&((o=$tw.utils.getEditionInfo())&&$tw.utils.each(o,function(t,n){s.push(n)}),s.sort()),s}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/else.js":{"text":"!function(){'use strict';exports.else=function(n,t,e){var r=[];return n(function(n,t){r.push(t)}),0===r.length?[t.operand]:r}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/decodeuricomponent.js":{"text":"!function(){'use strict';exports.decodeuricomponent=function(n,t,e){var r=[];return n(function(n,t){var e=t;try{e=decodeURIComponent(t)}catch(n){}r.push(e)}),r},exports.encodeuricomponent=function(n,t,e){var r=[];return n(function(n,t){r.push(encodeURIComponent(t))}),r},exports.decodeuri=function(n,t,e){var r=[];return n(function(n,t){var e=t;try{e=decodeURI(t)}catch(n){}r.push(e)}),r},exports.encodeuri=function(n,t,e){var r=[];return n(function(n,t){r.push(encodeURI(t))}),r},exports.decodehtml=function(n,t,e){var r=[];return n(function(n,t){r.push($tw.utils.htmlDecode(t))}),r},exports.encodehtml=function(n,t,e){var r=[];return n(function(n,t){r.push($tw.utils.htmlEncode(t))}),r},exports.stringify=function(n,e,t){var r=[];return n(function(n,t){r.push($tw.utils.stringify(t,'rawunicode'===e.suffix))}),r},exports.jsonstringify=function(n,e,t){var r=[];return n(function(n,t){r.push($tw.utils.jsonStringify(t,'rawunicode'===e.suffix))}),r},exports.escaperegexp=function(n,t,e){var r=[];return n(function(n,t){r.push($tw.utils.escapeRegExp(t))}),r},exports.escapecss=function(n,t,e){var r=[];return n(function(n,t){r.push($tw.utils.escapeCSS(t))}),r}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/enlist.js":{"text":"!function(){'use strict';exports.enlist=function(r,e,t){var i=!1;switch(e.suffix){case'raw':i=!0;break;case'dedupe':i=!1}var n=$tw.utils.parseStringArray(e.operand,i);if('!'!==e.prefix)return n;var s=[];return r(function(r,e){-1===n.indexOf(e)&&s.push(e)}),s}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/field.js":{"text":"!function(){'use strict';exports.field=function(e,i,n){var r,t=[],l=(i.suffix||i.operator||'title').toLowerCase();if('!'===i.prefix)i.regexp?e(function(e,n){e&&(null===(e=e.getFieldString(l))||i.regexp.exec(e))||t.push(n)}):e(function(e,n){e&&(null===(e=e.getFieldString(l))||e===i.operand)||t.push(n)});else if(i.regexp)e(function(e,n){!e||null!==(e=e.getFieldString(l))&&i.regexp.exec(e)&&t.push(n)});else{if(e.byField&&i.operand&&(r=e.byField(l,i.operand)))return r;e(function(e,n){!e||null!==(e=e.getFieldString(l))&&e===i.operand&&t.push(n)})}return t}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/fields.js":{"text":"!function(){'use strict';exports.fields=function(i,e,f){var s,n=[],t=(e.suffixes||[])[0]||[],u=$tw.utils.parseStringArray(e.operand);return i(function(i,e){if(i)if(-1!==t.indexOf('include'))for(s in i.fields)-1!==u.indexOf(s)&&$tw.utils.pushTop(n,s);else if(-1!==t.indexOf('exclude'))for(s in i.fields)-1===u.indexOf(s)&&$tw.utils.pushTop(n,s);else for(s in i.fields)$tw.utils.pushTop(n,s)}),n}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/filter.js":{"text":"!function(){'use strict';exports.filter=function(i,e,r){var t=r.wiki.compileFilter(e.operand),n=[],l='!'!==e.prefix;return i(function(i,e){0<t.call(r.wiki,r.wiki.makeTiddlerIterator([e])).length==l&&n.push(e)}),n}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/format/date.js":{"text":"!function(){'use strict';exports.date=function(t,n,i){var a=[];return t(function(t,i){i=$tw.utils.parseDate(i);i&&$tw.utils.isDate(i)&&'Invalid Date'!==i.toString()&&a.push($tw.utils.formatDateString(i,n||'YYYY MM DD 0hh:0mm'))}),a}}();","type":"application/javascript","module-type":"formatfilteroperator"},"$:/core/modules/filters/format/relativedate.js":{"text":"!function(){'use strict';exports.relativedate=function(t,e,i){var a=[];return t(function(t,e){e=$tw.utils.parseDate(e);e&&$tw.utils.isDate(e)&&'Invalid Date'!==e.toString()&&a.push($tw.utils.getRelativeDate(new Date-new Date(e)).description)}),a}}();","type":"application/javascript","module-type":"formatfilteroperator"},"$:/core/modules/filters/format.js":{"text":"!function(){'use strict';var f;exports.format=function(r,t,o){var e=(f||(f={},$tw.modules.applyMethods('formatfilteroperator',f)),f);if(t.suffix){e=e[t.suffix];return e?e(r,t.operand,o):[$tw.language.getString('Error/FormatFilterOperator')]}var a=[];return r(function(r,t){a.push(t)}),a}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/get.js":{"text":"!function(){'use strict';exports.get=function(t,e,n){var r=[];return t(function(t,n){!t||(t=t.getFieldString(e.operand))&&r.push(t)}),r}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/getindex.js":{"text":"!function(){'use strict';exports.getindex=function(t,i,n){var r,a=[];return i.operand&&t(function(t,e){e=t?t.fields.title:e,(r=n.wiki.extractTiddlerDataItem(t,i.operand))&&a.push(r)}),a}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/getvariable.js":{"text":"!function(){'use strict';exports.getvariable=function(t,e,i){var n=[];return t(function(t,e){n.push(i.widget.getVariable(e)||'')}),n}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/has.js":{"text":"!function(){'use strict';exports.has=function(e,i,n){var u=[],t='!'===i.prefix;return'field'===i.suffix?e(t?function(e,t){e&&(!e||$tw.utils.hop(e.fields,i.operand))||u.push(t)}:function(e,t){e&&$tw.utils.hop(e.fields,i.operand)&&u.push(t)}):'index'===i.suffix?e(t?function(e,t){e&&(!e||$tw.utils.hop(n.wiki.getTiddlerDataCached(e,Object.create(null)),i.operand))||u.push(t)}:function(e,t){e&&$tw.utils.hop(n.wiki.getTiddlerDataCached(e,Object.create(null)),i.operand)&&u.push(t)}):e(t?function(e,t){e&&$tw.utils.hop(e.fields,i.operand)&&0!==e.fields[i.operand].length||u.push(t)}:function(e,t){e&&$tw.utils.hop(e.fields,i.operand)&&0!==e.fields[i.operand].length&&u.push(t)}),u}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/haschanged.js":{"text":"!function(){'use strict';exports.haschanged=function(n,t,i){var u=[];return'!'===t.prefix?n(function(n,t){0===i.wiki.getChangeCount(t)&&u.push(t)}):n(function(n,t){0<i.wiki.getChangeCount(t)&&u.push(t)}),u}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/indexes.js":{"text":"!function(){'use strict';exports.indexes=function(t,e,i){var n=[];return t(function(t,e){e=i.wiki.getTiddlerDataCached(e);e&&$tw.utils.pushTop(n,Object.keys(e))}),n.sort(),n}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/insertbefore.js":{"text":"!function(){'use strict';exports.insertbefore=function(e,n,r){var i=[];e(function(e,n){i.push(n)});e=r.widget&&r.widget.getVariable(n.suffix||'currentTiddler');return e!==n.operand&&(-1!==(r=i.indexOf(n.operand))&&i.splice(r,1),-1!==(r=i.indexOf(e))?i.splice(r,0,n.operand):i.push(n.operand)),i}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/is/binary.js":{"text":"!function(){'use strict';exports.binary=function(i,n,r){var t=[];return i('!'===n?function(i,n){r.wiki.isBinaryTiddler(n)||t.push(n)}:function(i,n){r.wiki.isBinaryTiddler(n)&&t.push(n)}),t}}();","type":"application/javascript","module-type":"isfilteroperator"},"$:/core/modules/filters/is/blank.js":{"text":"!function(){'use strict';exports.blank=function(n,t,u){var c=[];return n('!'===t?function(n,t){t&&c.push(t)}:function(n,t){t||c.push(t)}),c}}();","type":"application/javascript","module-type":"isfilteroperator"},"$:/core/modules/filters/is/current.js":{"text":"!function(){'use strict';exports.current=function(t,n,r){var e=[],u=r.widget&&r.widget.getVariable('currentTiddler');return t('!'===n?function(t,n){n!==u&&e.push(n)}:function(t,n){n===u&&e.push(n)}),e}}();","type":"application/javascript","module-type":"isfilteroperator"},"$:/core/modules/filters/is/draft.js":{"text":"!function(){'use strict';exports.draft=function(t,f,i){var n=[];return t('!'===f?function(t,f){t&&$tw.utils.hop(t.fields,'draft.of')||n.push(f)}:function(t,f){t&&$tw.utils.hop(t.fields,'draft.of')&&0!==t.fields['draft.of'].length&&n.push(f)}),n}}();","type":"application/javascript","module-type":"isfilteroperator"},"$:/core/modules/filters/is/image.js":{"text":"!function(){'use strict';exports.image=function(i,n,e){var t=[];return i('!'===n?function(i,n){e.wiki.isImageTiddler(n)||t.push(n)}:function(i,n){e.wiki.isImageTiddler(n)&&t.push(n)}),t}}();","type":"application/javascript","module-type":"isfilteroperator"},"$:/core/modules/filters/is/missing.js":{"text":"!function(){'use strict';exports.missing=function(i,t,s){var n=[];return i('!'===t?function(i,t){s.wiki.tiddlerExists(t)&&n.push(t)}:function(i,t){s.wiki.tiddlerExists(t)||n.push(t)}),n}}();","type":"application/javascript","module-type":"isfilteroperator"},"$:/core/modules/filters/is/orphan.js":{"text":"!function(){'use strict';exports.orphan=function(n,i,t){var u=[],e=t.wiki.getOrphanTitles();return n('!'===i?function(n,i){-1===e.indexOf(i)&&u.push(i)}:function(n,i){-1!==e.indexOf(i)&&u.push(i)}),u}}();","type":"application/javascript","module-type":"isfilteroperator"},"$:/core/modules/filters/is/shadow.js":{"text":"!function(){'use strict';exports.shadow=function(i,n,o){var s=[];return i('!'===n?function(i,n){o.wiki.isShadowTiddler(n)||s.push(n)}:function(i,n){o.wiki.isShadowTiddler(n)&&s.push(n)}),s}}();","type":"application/javascript","module-type":"isfilteroperator"},"$:/core/modules/filters/is/system.js":{"text":"!function(){'use strict';exports.system=function(i,s,t){var n=[];return i('!'===s?function(i,s){t.wiki.isSystemTiddler(s)||n.push(s)}:function(i,s){t.wiki.isSystemTiddler(s)&&n.push(s)}),n}}();","type":"application/javascript","module-type":"isfilteroperator"},"$:/core/modules/filters/is/tag.js":{"text":"!function(){'use strict';exports.tag=function(t,u,i){var n=[],o=i.wiki.getTagMap();return t('!'===u?function(t,u){$tw.utils.hop(o,u)||n.push(u)}:function(t,u){$tw.utils.hop(o,u)&&n.push(u)}),n}}();","type":"application/javascript","module-type":"isfilteroperator"},"$:/core/modules/filters/is/tiddler.js":{"text":"!function(){'use strict';exports.tiddler=function(i,t,n){var s=[];return i('!'===t?function(i,t){n.wiki.tiddlerExists(t)||s.push(t)}:function(i,t){n.wiki.tiddlerExists(t)&&s.push(t)}),s}}();","type":"application/javascript","module-type":"isfilteroperator"},"$:/core/modules/filters/is/variable.js":{"text":"!function(){'use strict';exports.variable=function(i,n,t){var e=[];return i('!'===n?function(i,n){n in t.widget.variables||e.push(n)}:function(i,n){n in t.widget.variables&&e.push(n)}),e}}();","type":"application/javascript","module-type":"isfilteroperator"},"$:/core/modules/filters/is.js":{"text":"!function(){'use strict';var i;exports.is=function(r,t,e){var n=(i||(i={},$tw.modules.applyMethods('isfilteroperator',i)),i);if(t.operand){n=n[t.operand];return n?n(r,t.prefix,e):[$tw.language.getString('Error/IsFilterOperator')]}var o=[];return r(function(r,t){o.push(t)}),o}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/limit.js":{"text":"!function(){'use strict';exports.limit=function(n,t,i){var e=[];n(function(n,t){e.push(t)});n=Math.min(e.length,parseInt(t.operand,10));return e='!'===t.prefix?e.slice(-n):e.slice(0,n)}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/links.js":{"text":"!function(){'use strict';exports.links=function(i,t,n){var r=new $tw.utils.LinkedList;return i(function(i,t){r.pushTop(n.wiki.getTiddlerLinks(t))}),r.toArray()}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/list.js":{"text":"!function(){'use strict';exports.list=function(e,i,t){var r=[],n=$tw.utils.parseTextReference(i.operand),d=t.widget&&t.widget.getVariable('currentTiddler'),s=t.wiki.getTiddlerList(n.title||d,n.field,n.index);return'!'===i.prefix?e(function(e,i){-1===s.indexOf(i)&&r.push(i)}):r=s,r}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/listed.js":{"text":"!function(){'use strict';exports.listed=function(i,t,n){var s=t.operand||'list',r=[];return i(function(i,t){$tw.utils.pushTop(r,n.wiki.findListingsOfTiddler(t,s))}),r}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/listops.js":{"text":"!function(){'use strict';exports.order=function(t,n,r){var e=[];return'reverse'===n.operand.toLowerCase()?t(function(t,n){e.unshift(n)}):t(function(t,n){e.push(n)}),e},exports.reverse=function(t,n,r){var e=[];return t(function(t,n){e.unshift(n)}),e},exports.first=function(t,n,r){var n=$tw.utils.getInt(n.operand,1),e=[];return t(function(t,n){e.push(n)}),e.slice(0,n)},exports.last=function(t,n,r){var n=$tw.utils.getInt(n.operand,1),e=[];return t(function(t,n){e.push(n)}),e.slice(-n)},exports.rest=function(t,n,r){var n=$tw.utils.getInt(n.operand,1),e=[];return t(function(t,n){e.push(n)}),e.slice(n)},exports.butfirst=exports.rest,exports.bf=exports.rest,exports.butlast=function(t,n,r){var n=$tw.utils.getInt(n.operand,1),e=[];return t(function(t,n){e.push(n)}),e.slice(0,-n)},exports.bl=exports.butlast,exports.nth=function(t,n,r){var n=$tw.utils.getInt(n.operand,1),e=[];return t(function(t,n){e.push(n)}),e.slice(n-1,n)}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/lookup.js":{"text":"!function(){'use strict';exports.lookup=function(t,n,u){var e=[];return t(function(t,i){e.push(u.wiki.getTiddlerText(n.operand+i)||n.suffix||'')}),e}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/match.js":{"text":"!function(){'use strict';exports.match=function(e,o,n){var s=[];return-1!==((o.suffixes||[])[0]||[]).indexOf('caseinsensitive')?'!'===o.prefix?e(function(e,n){n.toLowerCase()!==(o.operand||'').toLowerCase()&&s.push(n)}):e(function(e,n){n.toLowerCase()===(o.operand||'').toLowerCase()&&s.push(n)}):'!'===o.prefix?e(function(e,n){n!==o.operand&&s.push(n)}):e(function(e,n){n===o.operand&&s.push(n)}),s}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/math.js":{"text":"!function(){'use strict';function t(o){return function(t,n,r){var u=[],e=$tw.utils.parseNumber(n.operand);return t(function(t,n){u.push($tw.utils.stringifyNumber(o($tw.utils.parseNumber(n),e)))}),u}}function n(e,o){return o=o||0,function(t,n,r){var u=[];return t(function(t,n){u.push(n)}),[$tw.utils.stringifyNumber(u.reduce(function(t,n){return e(t,$tw.utils.parseNumber(n))},o))]}}exports.negate=t(function(t){return-t}),exports.abs=t(function(t){return Math.abs(t)}),exports.ceil=t(function(t){return Math.ceil(t)}),exports.floor=t(function(t){return Math.floor(t)}),exports.round=t(function(t){return Math.round(t)}),exports.trunc=t(function(t){return Math.trunc(t)}),exports.untrunc=t(function(t){return Math.ceil(Math.abs(t))*Math.sign(t)}),exports.sign=t(function(t){return Math.sign(t)}),exports.add=t(function(t,n){return t+n}),exports.subtract=t(function(t,n){return t-n}),exports.multiply=t(function(t,n){return t*n}),exports.divide=t(function(t,n){return t/n}),exports.remainder=t(function(t,n){return t%n}),exports.max=t(function(t,n){return Math.max(t,n)}),exports.min=t(function(t,n){return Math.min(t,n)}),exports.fixed=t(function(t,n){return Number.prototype.toFixed.call(t,Math.min(Math.max(n,0),100))}),exports.precision=t(function(t,n){return Number.prototype.toPrecision.call(t,Math.min(Math.max(n,1),100))}),exports.exponential=t(function(t,n){return Number.prototype.toExponential.call(t,Math.min(Math.max(n,0),100))}),exports.power=t(function(t,n){return Math.pow(t,n)}),exports.log=t(function(t,n){return n?Math.log(t)/Math.log(n):Math.log(t)}),exports.sum=n(function(t,n){return t+n},0),exports.product=n(function(t,n){return t*n},1),exports.maxall=n(function(t,n){return Math.max(t,n)},-1/0),exports.minall=n(function(t,n){return Math.min(t,n)},1/0)}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/minlength.js":{"text":"!function(){'use strict';exports.minlength=function(n,t,e){var r=[],u=parseInt(t.operand||'',10)||0;return n(function(n,t){t.length>=u&&r.push(t)}),r}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/modules.js":{"text":"!function(){'use strict';exports.modules=function(t,u,n){var s=[];return t(function(t,u){$tw.utils.each($tw.modules.types[u],function(t,u){s.push(u)})}),s.sort(),s}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/moduletypes.js":{"text":"!function(){'use strict';exports.moduletypes=function(t,s,u){var e=[];return $tw.utils.each($tw.modules.types,function(t,s){e.push(s)}),e.sort(),e}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/next.js":{"text":"!function(){'use strict';exports.next=function(n,t,e){var i=[],r=e.wiki.getTiddlerList(t.operand);return n(function(n,t){t=r.indexOf(t);0<++t&&t<r.length&&i.push(r[t])}),i}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/plugintiddlers.js":{"text":"!function(){'use strict';exports.plugintiddlers=function(t,i,e){var n=[];return t(function(t,i){i=e.wiki.getPluginInfo(i)||e.wiki.getTiddlerDataCached(i,{tiddlers:[]});i&&i.tiddlers&&$tw.utils.each(i.tiddlers,function(t,i){n.push(i)})}),n.sort(),n}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/prefix.js":{"text":"!function(){'use strict';exports.prefix=function(n,t,r){var e=[];return'!'===t.prefix?n(function(n,r){r.substr(0,t.operand.length)!==t.operand&&e.push(r)}):n(function(n,r){r.substr(0,t.operand.length)===t.operand&&e.push(r)}),e}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/previous.js":{"text":"!function(){'use strict';exports.previous=function(i,n,t){var e=[],r=t.wiki.getTiddlerList(n.operand);return i(function(i,n){n=r.indexOf(n);0<=--n&&e.push(r[n])}),e}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/range.js":{"text":"!function(){'use strict';exports.range=function(e,r,t){for(var a,n,s,i=[],o=r.operand.split(/[,:;]/g),u=0,f=0;f<o.length;f++){if(!/^\\s*[+-]?((\\d+(\\.\\d*)?)|(\\.\\d+))\\s*$/.test(o[f]))return['range: bad number \"'+o[f]+'\"'];var p=/\\.\\d+/.exec(o[f]);p&&(u=Math.max(u,p[0].length-1)),o[f]=parseFloat(o[f])}switch(o.length){case 1:if(1<=(n=o[0]))a=1;else{if(!(n<=-1))return[];a=-1}s=1;break;case 2:a=o[0],n=o[1],s=1;break;case 3:a=o[0],n=o[1],s=Math.abs(o[2])}if(0===s)return['range: increment 0 causes infinite loop'];var c=n<a?-1:1;if(1e4<(n-a)/(s*=c))return['range: too many steps (over 10K)'];var g=10010;if((n+=.5*c*Math.pow(.1,u))<a)for(f=a;n<f&&(i.push(f.toFixed(u)),!(--g<0));f+=s);else for(f=a;f<n&&(i.push(f.toFixed(u)),!(--g<0));f+=s);return g<0?['range: unexpectedly large output']:('!'===r.prefix&&i.reverse(),i)}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/reduce.js":{"text":"!function(){'use strict';exports.reduce=function(e,r,t){var n=[];e(function(e,r){n.push(r)});for(var a=t.wiki.compileFilter(r.operand),i=r.operands[1]||'',u=0;u<n.length;u++){var c=n[u],l=a.call(t.wiki,t.wiki.makeTiddlerIterator([c]),{getVariable:function(e){switch(e){case'currentTiddler':return''+c;case'accumulator':return''+i;case'index':return''+u;case'revIndex':return''+(n.length-1-u);case'length':return''+n.length;default:return t.widget.getVariable(e)}}});0<l.length&&(i=''+l[0])}return 0<n.length?[i]:[]}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/regexp.js":{"text":"!function(){'use strict';exports.regexp=function(e,t,n){function r(e,t){return e?e.getFieldString(c):'title'===c?t:null}var u,i=[],c=(t.suffix||'title').toLowerCase(),l='',s=t.operand,g=/^\\(\\?([gim]+)\\)/.exec(s);g?(l=g[1],s=s.substr(g[0].length)):(g=/\\(\\?([gim]+)\\)$/.exec(s))&&(l=g[1],s=s.substr(0,s.length-g[0].length));try{u=new RegExp(s,l)}catch(e){return[''+e]}return'!'===t.prefix?e(function(e,t){e=r(e,t);null!==e&&(u.exec(e)||i.push(t))}):e(function(e,t){e=r(e,t);null!==e&&u.exec(e)&&i.push(t)}),i}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/removeprefix.js":{"text":"!function(){'use strict';exports.removeprefix=function(n,e,r){var t=[];return n(function(n,r){r.substr(0,e.operand.length)===e.operand&&t.push(r.substr(e.operand.length))}),t}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/removesuffix.js":{"text":"!function(){'use strict';exports.removesuffix=function(n,e,t){var r=[];return n(function(n,t){t&&t.substr(-e.operand.length)===e.operand&&r.push(t.substr(0,t.length-e.operand.length))}),r}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/sameday.js":{"text":"!function(){'use strict';exports.sameday=function(e,t,s){var i=[],n=t.suffix||'modified',u=new Date($tw.utils.parseDate(t.operand)).setHours(0,0,0,0);return e(function(e,t){e&&e.getFieldDay(n)===u&&i.push(t)}),i}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/search.js":{"text":"!function(){'use strict';exports.search=function(e,i,r){var s='!'===i.prefix;if(i.suffixes){var c,n=function(e){return-1!==(i.suffixes[1]||[]).indexOf(e)},t=!1,a=i.suffixes[0]||[],f=a[0]||'';return'-'===f.charAt(0)?(c=[f.slice(1)].concat(a.slice(1)),t=!0):'*'===a[0]?(c=[],t=!0):c=a.slice(0),r.wiki.search(i.operand,{source:e,invert:s,field:c,excludeField:t,caseSensitive:n('casesensitive'),literal:n('literal'),whitespace:n('whitespace'),anchored:n('anchored'),regexp:n('regexp'),words:n('words')})}return r.wiki.search(i.operand,{source:e,invert:s})}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/shadowsource.js":{"text":"!function(){'use strict';exports.shadowsource=function(t,o,u){var r=[];return t(function(t,o){o=u.wiki.getShadowSource(o);o&&$tw.utils.pushTop(r,o)}),r.sort(),r}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/slugify.js":{"text":"!function(){'use strict';exports.slugify=function(i,u,n){var t=[];return i(function(i,u){t.push(n.wiki.slugify(u))}),t}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/sort.js":{"text":"!function(){'use strict';exports.sort=function(r,t,i){r=e(r);return i.wiki.sortTiddlers(r,t.operand||'title','!'===t.prefix,!1,!1),r},exports.nsort=function(r,t,i){r=e(r);return i.wiki.sortTiddlers(r,t.operand||'title','!'===t.prefix,!1,!0),r},exports.sortan=function(r,t,i){r=e(r);return i.wiki.sortTiddlers(r,t.operand||'title','!'===t.prefix,!1,!1,!0),r},exports.sortcs=function(r,t,i){r=e(r);return i.wiki.sortTiddlers(r,t.operand||'title','!'===t.prefix,!0,!1),r},exports.nsortcs=function(r,t,i){r=e(r);return i.wiki.sortTiddlers(r,t.operand||'title','!'===t.prefix,!0,!0),r};var e=function(r){var i=[];return r(function(r,t){i.push(t)}),i}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/sortsub.js":{"text":"!function(){'use strict';exports.sortsub=function(t,r,e){var n=e.wiki.compileFilter(r.operand),u=[],a=[];t(function(t,r){u.push(r);var i=n.call(e.wiki,function(t){t(e.wiki.getTiddler(r),r)},{getVariable:function(t){return'currentTiddler'===t?r:e.widget.getVariable(t)}});a.push(i[0]||'')});for(var i=new Array(u.length),o=0;o<u.length;o++)i[o]=o;var c=$tw.utils.makeCompareFunction(r.suffix,{defaultType:'string',invert:'!'===r.prefix}),i=i.sort(function(t,r){return c(a[t],a[r])}),l=[];return $tw.utils.each(i,function(t){l.push(u[t])}),l}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/splitbefore.js":{"text":"!function(){'use strict';exports.splitbefore=function(t,o,n){var p=[];return t(function(t,n){n=n.split(o.operand);1===n.length?$tw.utils.pushTop(p,n[0]):$tw.utils.pushTop(p,n[0]+o.operand)}),p}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/storyviews.js":{"text":"!function(){'use strict';exports.storyviews=function(t,s,o){var e=[],r={};return $tw.modules.applyMethods('storyview',r),$tw.utils.each(r,function(t,s){e.push(s)}),e.sort(),e}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/strings.js":{"text":"!function(){'use strict';var u,i;function t(u){return function(t,e,r){var n=[];return t(function(t,r){Array.prototype.push.apply(n,u(r,e.operand||'',e.suffix||''))}),n}}exports.length=t(function(t){return[''+(''+t).length]}),exports.uppercase=t(function(t){return[(''+t).toUpperCase()]}),exports.lowercase=t(function(t){return[(''+t).toLowerCase()]}),exports.sentencecase=t(function(t){return[$tw.utils.toSentenceCase(t)]}),exports.titlecase=t(function(t){return[$tw.utils.toTitleCase(t)]}),exports.trim=function(t,r,e){var n=[],u=r.suffix||'',i=r.operand||'',o='prefix'===u?function(t,r){return[$tw.utils.trimPrefix(t,r)]}:'suffix'===u?function(t,r){return[$tw.utils.trimSuffix(t,r)]}:''===i?function(t){return[$tw.utils.trim(t)]}:function(t,r){return[$tw.utils.trimSuffix($tw.utils.trimPrefix(t,r),r)]};return t(function(t,r){Array.prototype.push.apply(n,o(r,i))}),n},exports.split=t(function(t,r){return(''+t).split(r)}),exports['enlist-input']=t(function(t,r,e){return $tw.utils.parseStringArray(''+t,'raw'===e)}),exports.join=(u=function(t,r,e){return null===t?r:t+e+r},i=null,function(t,e,r){var n=[];return t(function(t,r){n.push(r)}),0===n.length?[]:[n.reduce(function(t,r){return u(t,r,e.operand||'')},i)||'']}),exports.splitregexp=function(t,r,e){var n,u=[],i=r.suffix||'',o=(-1!==i.indexOf('m')?'m':'')+(-1!==i.indexOf('i')?'i':'');try{n=new RegExp(r.operand||'',o)}catch(t){return['RegExp error: '+t]}return t(function(t,r){Array.prototype.push.apply(u,r.split(n))}),u},exports['search-replace']=function(t,e,r){var n,u,i=[],o=e.suffixes||[],p=o[0]&&o[0][0]||'',s=(-1!==p.indexOf('g')?'g':'')+(-1!==p.indexOf('i')?'i':''),f=!(!o[1]||'regexp'!==o[1][0]);return t(function(t,r){if(r&&1<e.operands.length){n=f?e.operand:$tw.utils.escapeRegExp(e.operand);try{u=new RegExp(n,s)}catch(t){return['RegExp error: '+t]}i.push(r.replace(u,e.operands[1]))}else i.push(r)}),i},exports.pad=function(t,u,r){var i=[],o=u.operand?parseInt(u.operand):0,p=u.operands[1]||'0';return t(function(t,r){if(r&&r.length)if(r.length>=o)i.push(r);else{for(var e='',n=o-r.length;n>e.length;)e+=p;e=e.slice(0,n),u.suffix&&'suffix'===u.suffix?r+=e:r=e+r,i.push(r)}}),i}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/subfilter.js":{"text":"!function(){'use strict';exports.subfilter=function(i,r,e){var t=e.wiki.filterTiddlers(r.operand,e.widget,i);if('!'!==r.prefix)return t;var n=[];return i(function(i,r){-1===t.indexOf(r)&&n.push(r)}),n}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/subtiddlerfields.js":{"text":"!function(){'use strict';exports.subtiddlerfields=function(i,e,n){var u=[];return i(function(i,t){t=n.wiki.getSubTiddler(e.operand,t);if(t)for(var r in t.fields)$tw.utils.pushTop(u,r)}),u}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/suffix.js":{"text":"!function(){'use strict';exports.suffix=function(n,t,r){var u=[];return'!'===t.prefix?n(function(n,r){r.substr(-t.operand.length)!==t.operand&&u.push(r)}):n(function(n,r){r.substr(-t.operand.length)===t.operand&&u.push(r)}),u}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/tag.js":{"text":"!function(){'use strict';exports.tag=function(i,e,t){var n,r,s=[];if('strict'!==(e.suffix||'').toLowerCase()||e.operand)if('!'===e.prefix)r=t.wiki.getTiddlersWithTag(e.operand),i(function(i,e){-1===r.indexOf(e)&&s.push(e)});else if(i.byTag){if(n=i.byTag(e.operand))return n}else r=t.wiki.getTiddlersWithTag(e.operand),i(function(i,e){-1!==r.indexOf(e)&&s.push(e)}),s=t.wiki.sortByList(s,e.operand);else i(function(i,e){s.push(e)});return s}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/tagging.js":{"text":"!function(){'use strict';exports.tagging=function(t,i,n){var u=[];return t(function(t,i){$tw.utils.pushTop(u,n.wiki.getTiddlersWithTag(i))}),u}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/tags.js":{"text":"!function(){'use strict';exports.tags=function(t,s,e){var i={};return t(function(t,s){var e,f;if(t&&t.fields.tags)for(e=0,f=t.fields.tags.length;e<f;e++)i[t.fields.tags[e]]=!0}),Object.keys(i)}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/then.js":{"text":"!function(){'use strict';exports.then=function(n,r,t){var u=[];return n(function(n,t){u.push(r.operand)}),u}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/title.js":{"text":"!function(){'use strict';exports.title=function(t,n,e){var i=[];return'!'===n.prefix?t(function(t,e){t&&t.fields.title!==n.operand&&i.push(e)}):i.push(n.operand),i}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/untagged.js":{"text":"!function(){'use strict';exports.untagged=function(t,s,i){var u=[];return'!'===s.prefix?t(function(t,s){t&&$tw.utils.isArray(t.fields.tags)&&0<t.fields.tags.length&&$tw.utils.pushTop(u,s)}):t(function(t,s){t&&t.hasField('tags')&&(!$tw.utils.isArray(t.fields.tags)||0!==t.fields.tags.length)||$tw.utils.pushTop(u,s)}),u}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/variables.js":{"text":"!function(){'use strict';exports.variables=function(r,t,i){var s,e=[];for(s in i.widget.variables)e.push(s);return e.sort()}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/wikiparserrules.js":{"text":"!function(){'use strict';exports.wikiparserrules=function(t,e,r){var s=[],u=e.operand;return $tw.utils.each($tw.modules.types.wikirule,function(t){t=t.exports;u&&!t.types[u]||s.push(t.name)}),s.sort(),s}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters/x-listops.js":{"text":"!function(){'use strict';function o(e){var n=[];return e(function(e,t){n.push(t)}),n}function r(e,t,n){for(var r,n=n||1,i=0,s=t.length;i<s&&-1===(r=e.indexOf(t[i]));i++);return-1!==r?(n=(i+=n)<s?i:i-s,1<t.length?e.splice(r,1,t[n]):e.splice(r,1)):e.push(t[0]),e}exports.putbefore=function(e,t){var n=o(e),e=n.indexOf(t.operand),t=$tw.utils.getInt(t.suffix,1);return-1===e?n.slice(0,-1):n.slice(0,e).concat(n.slice(-t)).concat(n.slice(e,-t))},exports.putafter=function(e,t){var n=o(e),e=n.indexOf(t.operand),t=$tw.utils.getInt(t.suffix,1);return-1===e?n.slice(0,-1):n.slice(0,e+1).concat(n.slice(-t)).concat(n.slice(e+1,-t))},exports.replace=function(e,t){var n=o(e),e=n.indexOf(t.operand),t=$tw.utils.getInt(t.suffix,1);return-1===e?n.slice(0,-t):n.slice(0,e).concat(n.slice(-t)).concat(n.slice(e+1,-t))},exports.putfirst=function(e,t){e=o(e),t=$tw.utils.getInt(t.suffix,1);return e.slice(-t).concat(e.slice(0,-t))},exports.putlast=function(e,t){e=o(e),t=$tw.utils.getInt(t.suffix,1);return e.slice(t).concat(e.slice(0,t))},exports.move=function(e,t){var n=o(e),r=n.indexOf(t.operand),e=$tw.utils.getInt(t.suffix,1),t=n.splice(r,1),e=0<r+e?r+e:0;return n.slice(0,e).concat(t).concat(n.slice(e))},exports.allafter=function(e,t){var n=o(e),e=n.indexOf(t.operand);return-1===e?[]:t.suffix?n.slice(e):n.slice(e+1)},exports.allbefore=function(e,t){var n=o(e),e=n.indexOf(t.operand);return-1===e?[]:t.suffix?n.slice(0,e+1):n.slice(0,e)},exports.append=function(e,t){var n=$tw.utils.parseStringArray(t.operand,'true'),r=o(e),e=parseInt(t.suffix)||n.length;return 0===n.length?r:t.prefix?r.concat(n.slice(-e)):r.concat(n.slice(0,e))},exports.prepend=function(e,t){var n=$tw.utils.parseStringArray(t.operand,'true'),r=o(e),e=$tw.utils.getInt(t.suffix,n.length);return 0===n.length?r:(t.prefix?n.slice(-e):n.slice(0,e)).concat(r)},exports.remove=function(e,t){for(var n,r=$tw.utils.parseStringArray(t.operand,'true'),i=o(e),s=parseInt(t.suffix)||r.length,c=r.length-1,u=0;u<s;++u)-1!==(n=t.prefix?i.indexOf(r[c-u]):i.indexOf(r[u]))&&i.splice(n,1);return i},exports.sortby=function(e,t){e=o(e);if(!e||e.length<2)return e;var n=$tw.utils.parseStringArray(t.operand,'true');return e.sort(function(e,t){return n.indexOf(e)-n.indexOf(t)}),e},exports.unique=function(e,t){return o(e).reduce(function(e,t){return e.indexOf(t)<0&&e.push(t),e},[])},exports.toggle=function(e,t){return r(o(e),t.operands)},exports.cycle=function(e,t){var n=o(e),e=t.operand.length?$tw.utils.parseStringArray(t.operand,'true'):[''],t=$tw.utils.getInt(t.operands[1]||'',1);return t<0&&(e.reverse(),t=Math.abs(t)),r(n,e,t)}}();","type":"application/javascript","module-type":"filteroperator"},"$:/core/modules/filters.js":{"text":"!function(){'use strict';exports.parseFilter=function(e){e=e||'';for(var r,t=[],i=0,s=/(\\s+)/gm,n=/((?:\\+|\\-|~|=|\\:(\\w+))?)(?:(\\[)|(?:\"([^\"]*)\")|(?:'([^']*)')|([^\\s\\[\\]]+))/gm;i<e.length;)if(s.lastIndex=i,(r=s.exec(e))&&r.index===i&&(i+=r[0].length),i<e.length){if(n.lastIndex=i,!(r=n.exec(e))||r.index!==i)throw $tw.language.getString('Error/FilterSyntax');var a={prefix:'',operators:[]};r[1]&&(a.prefix=r[1],i+=a.prefix.length,r[2]&&(a.namedPrefix=r[2])),i=r[3]?function(e,s,n){var a,o;if('['!==s.charAt(n++))throw'Missing [ in filter expression';do{if(o={},'!'===s.charAt(n)&&(o.prefix=s.charAt(n++)),-1===(a=s.substring(n).search(/[\\[\\{<\\/]/)))throw'Missing [ in filter expression';a+=n;var r=s.charAt(a);o.operator=s.substring(n,a);var t=o.operator.indexOf(':');-1<t?(o.suffix=o.operator.substring(t+1),o.operator=o.operator.substring(0,t)||'field',o.suffixes=[],$tw.utils.each(o.suffix.split(':'),function(e){o.suffixes.push([]),$tw.utils.each(e.split(','),function(e){(e=$tw.utils.trim(e))&&o.suffixes[o.suffixes.length-1].push(e)})})):''===o.operator&&(o.operator='title'),o.operands=[];var i=function(e){var r={};switch(e){case'{':r.indirect=!0,a=s.indexOf('}',n);break;case'[':a=s.indexOf(']',n);break;case'<':r.variable=!0,a=s.indexOf('>',n);break;case'/':var t=/^((?:[^\\\\\\/]|\\\\.)*)\\/(?:\\(([mygi]+)\\))?/g,i=t.exec(s.substring(n));if(!i)throw'Unterminated regular expression in filter expression';o.regexp=new RegExp(i[1],i[2]),console.log('WARNING: Filter',o.operator,'has a deprecated regexp operand',o.regexp),a=n+t.lastIndex-1}if(-1===a)throw'Missing closing bracket in filter expression';o.regexp||(r.text=s.substring(n,a),o.operands.push(r)),n=a+1};for(n=a+1,i(r);','===s.charAt(n);){if(n++,!/^[\\[\\{<\\/]/.test(s.substring(n)))throw'Missing [ in filter expression';a=n,n++,i(s.charAt(a))}}while(e.push(o),']'!==s.charAt(n));if(']'!==s.charAt(n++))throw'Missing ] in filter expression';return n}(a.operators,e,i):r.index+r[0].length,(r[4]||r[5]||r[6])&&a.operators.push({operator:'title',operands:[{text:r[4]||r[5]||r[6]}]}),t.push(a)}return t},exports.getFilterOperators=function(){return this.filterOperators||($tw.Wiki.prototype.filterOperators={},$tw.modules.applyMethods('filteroperator',this.filterOperators)),this.filterOperators},exports.getFilterRunPrefixes=function(){return this.filterRunPrefixes||($tw.Wiki.prototype.filterRunPrefixes={},$tw.modules.applyMethods('filterrunprefix',this.filterRunPrefixes)),this.filterRunPrefixes},exports.filterTiddlers=function(e,r,t){return this.compileFilter(e).call(this,t,r)},exports.compileFilter=function(e){var r;try{r=this.parseFilter(e)}catch(t){return function(e,r){return[$tw.language.getString('Error/Filter')+': '+t]}}var o=this.getFilterOperators(),s=[],f=this;return $tw.utils.each(r,function(r){function t(e,i){var s=e,n=[],a=i&&i.getVariable('currentTiddler');if($tw.utils.each(r.operators,function(e){var r=[],t=e.operator?o[e.operator]||o.field:o.title;$tw.utils.each(e.operands,function(e){e.indirect?e.value=f.getTextReference(e.text,'',a):e.variable?e.value=i.getVariable(e.text,{defaultValue:''}):e.value=e.text,r.push(e.value)}),n=t(s,{operator:e.operator,operand:0<r.length?r[0]:void 0,operands:r,prefix:e.prefix,suffix:e.suffix,suffixes:e.suffixes,regexp:e.regexp},{wiki:f,widget:i}),s=$tw.utils.isArray(n)?f.makeTiddlerIterator(n):n}),$tw.utils.isArray(n))return n;var t=[];return n(function(e,r){t.push(r)}),t}var i=f.getFilterRunPrefixes();s.push(function(){var e={wiki:f};switch(r.prefix||''){case'':return i.or(t,e);case'=':return i.all(t,e);case'-':return i.except(t,e);case'+':return i.and(t,e);case'~':return i.else(t,e);default:return r.namedPrefix&&i[r.namedPrefix]?i[r.namedPrefix](t,e):function(e,r,t){e.clear(),e.push($tw.language.getString('Error/FilterRunPrefix'))}}}())}),$tw.perf.measure('filter: '+e,function(r,t){r?'object'==typeof r&&(r=f.makeTiddlerIterator(r)):r=f.each;var i=new $tw.utils.LinkedList;return $tw.utils.each(s,function(e){e(i,r,t)}),i.toArray()})}}();","type":"application/javascript","module-type":"wikimethod"},"$:/core/modules/indexers/backlinks-indexer.js":{"text":"!function(){'use strict';function t(t){this.wiki=t}t.prototype.init=function(){this.index=null},t.prototype.rebuild=function(){this.index=null},t.prototype._getLinks=function(t){t=this.wiki.parseText(t.fields.type,t.fields.text,{});return t?this.wiki.extractLinks(t.tree):[]},t.prototype.update=function(i){var t,e,n;this.index&&(t=[],e=[],n=this,i.old.exists&&(e=this._getLinks(i.old.tiddler)),i.new.exists&&(t=this._getLinks(i.new.tiddler)),$tw.utils.each(e,function(t){n.index[t]&&delete n.index[t][i.old.tiddler.fields.title]}),$tw.utils.each(t,function(t){n.index[t]||(n.index[t]=Object.create(null)),n.index[t][i.new.tiddler.fields.title]=!0}))},t.prototype.lookup=function(t){var e;return this.index||(this.index=Object.create(null),(e=this).wiki.forEachTiddler(function(i,t){t=e._getLinks(t);$tw.utils.each(t,function(t){e.index[t]||(e.index[t]=Object.create(null)),e.index[t][i]=!0})})),this.index[t]?Object.keys(this.index[t]):[]},exports.BacklinksIndexer=t}();","type":"application/javascript","module-type":"indexer"},"$:/core/modules/indexers/field-indexer.js":{"text":"!function(){'use strict';function i(i){this.wiki=i}i.prototype.init=function(){this.index=null,this.maxIndexedValueLength=128,this.addIndexMethods()},i.prototype.setMaxIndexedValueLength=function(i){this.index=null,this.maxIndexedValueLength=i},i.prototype.addIndexMethods=function(){var n=this;this.wiki.each.byField=function(i,e){var t=n.wiki.allTitles(),e=n.lookup(i,e);return e&&e.filter(function(i){return-1!==t.indexOf(i)})},this.wiki.eachShadow.byField=function(i,e){var t=n.wiki.allShadowTitles(),e=n.lookup(i,e);return e&&e.filter(function(i){return-1!==t.indexOf(i)})},this.wiki.eachTiddlerPlusShadows.byField=function(i,e){e=n.lookup(i,e);return e?e.slice(0):null},this.wiki.eachShadowPlusTiddlers.byField=function(i,e){e=n.lookup(i,e);return e?e.slice(0):null}},i.prototype.rebuild=function(){this.index=null},i.prototype.buildIndexForField=function(t){var n=this;this.index=this.index||Object.create(null),this.index[t]=Object.create(null);var d=this.index[t];this.wiki.eachTiddlerPlusShadows(function(i,e){t in i.fields&&((i=i.getFieldString(t)).length<n.maxIndexedValueLength&&(d[i]=d[i]||[],d[i].push(e)))})},i.prototype.update=function(t){var n=this;null!==this.index&&(t.old.tiddler&&$tw.utils.each(this.index,function(i,e){e in t.old.tiddler.fields&&(!(i=i[t.old.tiddler.getFieldString(e)])||-1!==(e=i.indexOf(t.old.tiddler.fields.title))&&i.splice(e,1))}),t.new.tiddler&&$tw.utils.each(this.index,function(i,e){e in t.new.tiddler.fields&&((e=t.new.tiddler.getFieldString(e)).length<n.maxIndexedValueLength&&(i[e]=i[e]||[],i[e].push(t.new.tiddler.fields.title)))}))},i.prototype.lookup=function(i,e){return e.length>=this.maxIndexedValueLength?null:(null!==this.index&&this.index[i]||this.buildIndexForField(i),this.index[i][e]||[])},exports.FieldIndexer=i}();","type":"application/javascript","module-type":"indexer"},"$:/core/modules/indexers/tag-indexer.js":{"text":"!function(){'use strict';function t(t){this.wiki=t}function i(t,i){this.indexer=t,this.iteratorMethod=i,this.index=null}t.prototype.init=function(){this.subIndexers=[new i(this,'each'),new i(this,'eachShadow'),new i(this,'eachTiddlerPlusShadows'),new i(this,'eachShadowPlusTiddlers')],$tw.utils.each(this.subIndexers,function(t){t.addIndexMethod()})},t.prototype.rebuild=function(){$tw.utils.each(this.subIndexers,function(t){t.rebuild()})},t.prototype.update=function(i){$tw.utils.each(this.subIndexers,function(t){t.update(i)})},i.prototype.addIndexMethod=function(){var i=this;this.indexer.wiki[this.iteratorMethod].byTag=function(t){return i.lookup(t).slice(0)}},i.prototype.rebuild=function(){var e=this;this.index=Object.create(null),this.indexer.wiki[this.iteratorMethod](function(t,i){$tw.utils.each(t.fields.tags,function(t){e.index[t]?e.index[t].titles.push(i):e.index[t]={isSorted:!1,titles:[i]}})})},i.prototype.update=function(t){this.index=null},i.prototype.lookup=function(t){null===this.index&&this.rebuild();var i=this.index[t];return i?(i.isSorted||(this.indexer.wiki.sortByList&&(i.titles=this.indexer.wiki.sortByList(i.titles,t)),i.isSorted=!0),i.titles):[]},exports.TagIndexer=t}();","type":"application/javascript","module-type":"indexer"},"$:/core/modules/info/platform.js":{"text":"!function(){'use strict';exports.getInfoTiddlerFields=function(e){var t,o,n,i=function(t){return t?'yes':'no'},r=[];return r.push({title:'$:/info/browser',text:i(!!$tw.browser)}),r.push({title:'$:/info/node',text:i(!!$tw.node)}),r.push({title:'$:/info/startup-timestamp',text:$tw.utils.stringifyDate(new Date)}),$tw.browser&&((t=function(t,e){r.push({title:'$:/info/url/'+t,text:e})})('full',(i=document.location).toString().split('#')[0]),t('host',i.host),t('hostname',i.hostname),t('protocol',i.protocol),t('port',i.port),t('pathname',i.pathname),t('search',i.search),t('origin',i.origin),r.push({title:'$:/info/browser/screen/width',text:window.screen.width.toString()}),r.push({title:'$:/info/browser/screen/height',text:window.screen.height.toString()}),o=window.matchMedia('(prefers-color-scheme: dark)'),n=function(){return{title:'$:/info/darkmode',text:o.matches?'yes':'no'}},r.push(n()),o.addListener(function(t){e([n()])}),r.push({title:'$:/info/browser/language',text:navigator.language||''})),r}}();","type":"application/javascript","module-type":"info"},"$:/core/modules/keyboard.js":{"text":"!function(){'use strict';var e={cancel:3,help:6,backspace:8,tab:9,clear:12,return:13,enter:13,pause:19,escape:27,space:32,page_up:33,page_down:34,end:35,home:36,left:37,up:38,right:39,down:40,printscreen:44,insert:45,delete:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,firefoxsemicolon:59,firefoxequals:61,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,separator:108,subtract:109,decimal:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,f13:124,f14:125,f15:126,f16:127,f17:128,f18:129,f19:130,f20:131,f21:132,f22:133,f23:134,f24:135,firefoxminus:173,semicolon:186,equals:187,comma:188,dash:189,period:190,slash:191,backquote:192,openbracket:219,backslash:220,closebracket:221,quote:222};function t(t){var s=this;this.namedKeys=e,this.keyNames=[],$tw.utils.each(e,function(t,e){s.keyNames[t]=e.substr(0,1).toUpperCase()+e.substr(1)}),this.metaKeyName=$tw.platform.isMac?'cmd-':'win-',this.shortcutKeysList=[],this.shortcutActionList=[],this.shortcutParsedList=[],this.lookupNames=['shortcuts'],this.lookupNames.push($tw.platform.isMac?'shortcuts-mac':'shortcuts-not-mac'),this.lookupNames.push($tw.platform.isWindows?'shortcuts-windows':'shortcuts-not-windows'),this.lookupNames.push($tw.platform.isLinux?'shortcuts-linux':'shortcuts-not-linux'),this.updateShortcutLists(this.getShortcutTiddlerList()),$tw.wiki.addEventListener('change',function(t){s.handleShortcutChanges(t)})}t.prototype.getModifierKeys=function(){return[16,17,18,20,91,93,224]},t.prototype.parseKeyDescriptor=function(t){for(var e=t.split(/\\+|\\-/),s={keyCode:0,shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1},r=0;r<e.length;r++){var i=e[r].toLowerCase();i.charCodeAt(0);'ctrl'===i?s.ctrlKey=!0:'shift'===i?s.shiftKey=!0:'alt'===i?s.altKey=!0:'meta'!==i&&'cmd'!==i&&'win'!==i||(s.metaKey=!0),this.namedKeys[i]&&(s.keyCode=this.namedKeys[i])}return s.keyCode?s:null},t.prototype.parseKeyDescriptors=function(t,s){var r=this;(s=s||{}).stack=s.stack||[];var i=s.wiki||$tw.wiki;if('string'==typeof t&&''===t)return[];$tw.utils.isArray(t)||(t=t.split(' '));var o=[];return $tw.utils.each(t,function(t){var e;'(('===t.substr(0,2)&&'))'===t.substr(-2,2)?-1===s.stack.indexOf(t)&&(s.stack.push(t),e=t.substring(2,t.length-2),$tw.utils.each(r.lookupNames,function(t){t=t,(t=i.getTiddlerText('$:/config/'+t+'/'+e))&&o.push.apply(o,r.parseKeyDescriptors(t,s))})):o.push(r.parseKeyDescriptor(t))}),o},t.prototype.getPrintableShortcuts=function(t){var e=this,s=[];return $tw.utils.each(t,function(t){t&&s.push((t.ctrlKey?'ctrl-':'')+(t.shiftKey?'shift-':'')+(t.altKey?'alt-':'')+(t.metaKey?e.metaKeyName:'')+e.keyNames[t.keyCode])}),s},t.prototype.checkKeyDescriptor=function(t,e){return e&&t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey},t.prototype.checkKeyDescriptors=function(t,e){for(var s=0;s<e.length;s++)if(this.checkKeyDescriptor(t,e[s]))return!0;return!1},t.prototype.getEventModifierKeyDescriptor=function(t){return!t.ctrlKey||t.shiftKey||t.altKey||t.metaKey?!t.shiftKey||t.ctrlKey||t.altKey||t.metaKey?t.ctrlKey&&t.shiftKey&&!t.altKey&&!t.metaKey?'ctrl-shift':!t.altKey||t.shiftKey||t.ctrlKey||t.metaKey?t.altKey&&t.shiftKey&&!t.ctrlKey&&!t.metaKey?'alt-shift':t.altKey&&t.ctrlKey&&!t.shiftKey&&!t.metaKey?'ctrl-alt':t.altKey&&t.shiftKey&&t.ctrlKey&&!t.metaKey?'ctrl-alt-shift':!t.metaKey||t.ctrlKey||t.shiftKey||t.altKey?t.metaKey&&t.ctrlKey&&!t.shiftKey&&!t.altKey?'meta-ctrl':t.metaKey&&t.ctrlKey&&t.shiftKey&&!t.altKey?'meta-ctrl-shift':t.metaKey&&t.ctrlKey&t.shiftKey&&t.altKey?'meta-ctrl-alt-shift':'normal':'meta':'alt':'shift':'ctrl'},t.prototype.getShortcutTiddlerList=function(){return $tw.wiki.getTiddlersWithTag('$:/tags/KeyboardShortcut')},t.prototype.updateShortcutLists=function(t){this.shortcutTiddlers=t;for(var e=0;e<t.length;e++){var s=t[e],s=$tw.wiki.getTiddler(s).fields;this.shortcutKeysList[e]=void 0!==s.key?s.key:void 0,this.shortcutActionList[e]=s.text,this.shortcutParsedList[e]=void 0!==this.shortcutKeysList[e]?this.parseKeyDescriptors(this.shortcutKeysList[e]):void 0}},t.prototype.handleKeydownEvent=function(t){for(var e,s,r=0;r<this.shortcutTiddlers.length;r++)void 0!==this.shortcutParsedList[r]&&this.checkKeyDescriptors(t,this.shortcutParsedList[r])&&(e=this.shortcutParsedList[r],s=this.shortcutActionList[r]);return void 0!==e&&(t.preventDefault(),t.stopPropagation(),$tw.rootWidget.invokeActionString(s,$tw.rootWidget),!0)},t.prototype.detectNewShortcuts=function(s){var r=[],i=!1;return $tw.utils.each(this.lookupNames,function(t){var e='$:/config/'+t+'/';Object.keys(s).forEach(function(t){t.substr(0,t.lastIndexOf('/')+1)===e&&(r.push(t),i=!0)})}),!!i&&$tw.utils.hopArray(s,r)},t.prototype.handleShortcutChanges=function(t){var e=this.getShortcutTiddlerList();!$tw.utils.hopArray(t,this.shortcutTiddlers)&&(!$tw.utils.hopArray(t,e)&&!this.detectNewShortcuts(t))||this.updateShortcutLists(e)},exports.KeyboardManager=t}();","type":"application/javascript","module-type":"global"},"$:/core/modules/language.js":{"text":"!function(){'use strict';function i(i){i=i||'',this.wiki=i.wiki||$tw.wiki}i.prototype.getString=function(i,t){return t=t||{},i='$:/language/'+i,this.wiki.renderTiddler('text/plain',i,{variables:t.variables})},i.prototype.getRawString=function(i){return i='$:/language/'+i,this.wiki.getTiddlerText(i)},exports.Language=i}();","type":"application/javascript","module-type":"global"},"$:/core/modules/macros/changecount.js":{"text":"!function(){'use strict';exports.name='changecount',exports.params=[],exports.run=function(){return this.wiki.getChangeCount(this.getVariable('currentTiddler'))+''}}();","type":"application/javascript","module-type":"macro"},"$:/core/modules/macros/contrastcolour.js":{"text":"!function(){'use strict';exports.name='contrastcolour',exports.params=[{name:'target'},{name:'fallbackTarget'},{name:'colourA'},{name:'colourB'}],exports.run=function(r,t,a,e){var o=$tw.utils.parseCSSColor(r)||$tw.utils.parseCSSColor(t);if(!o)return a;r=$tw.utils.parseCSSColor(a),t=$tw.utils.parseCSSColor(e);if(r&&!t)return r;if(t&&!r)return t;if(!r&&!t)return[255-o[0],255-o[1],255-o[2],o[3]];o=.299*o[0]+.587*o[1]+.114*o[2],r=.299*r[0]+.587*r[1]+.114*r[2],t=.299*t[0]+.587*t[1]+.114*t[2];return Math.abs(o-r)>Math.abs(o-t)?a:e}}();","type":"application/javascript","module-type":"macro"},"$:/core/modules/macros/csvtiddlers.js":{"text":"!function(){'use strict';function a(e){return'\"'+e.replace(/\"/gm,'\"\"')+'\"'}exports.name='csvtiddlers',exports.params=[{name:'filter'},{name:'format'}],exports.run=function(e,i){var r,t,n=this.wiki.filterTiddlers(e),s=[];for(d=0;d<n.length;d++)for(t in(r=this.wiki.getTiddler(n[d])).fields)-1===s.indexOf(t)&&s.push(t);s.sort(),'title text modified modifier created creator'.split(' ').reverse().forEach(function(e,i){var r=s.indexOf(e);-1!==r&&(s.splice(r,1),s.unshift(e))});var o=[],f=[];s.forEach(function(e){f.push(a(e))}),o.push(f.join(','));for(var d=0;d<n.length;d++){for(f=[],r=this.wiki.getTiddler(n[d]),t=0;t<s.length;t++)f.push(a(r&&r.getFieldString(s[t])||''));o.push(f.join(','))}return o.join('\\n')}}();","type":"application/javascript","module-type":"macro"},"$:/core/modules/macros/displayshortcuts.js":{"text":"!function(){'use strict';exports.name='displayshortcuts',exports.params=[{name:'shortcuts'},{name:'prefix'},{name:'separator'},{name:'suffix'}],exports.run=function(e,r,t,a){e=$tw.keyboardManager.getPrintableShortcuts($tw.keyboardManager.parseKeyDescriptors(e,{wiki:this.wiki}));return 0<e.length?(e.sort(function(e,r){return e.toLowerCase().localeCompare(r.toLowerCase())}),r+e.join(t)+a):''}}();","type":"application/javascript","module-type":"macro"},"$:/core/modules/macros/jsontiddler.js":{"text":"!function(){'use strict';exports.name='jsontiddler',exports.params=[{name:'title'}],exports.run=function(e){var r=!!(e=e||this.getVariable('currentTiddler'))&&this.wiki.getTiddler(e),t=new Object;if(r)for(var i in r.fields)t[i]=r.getFieldString(i);return JSON.stringify(t,null,$tw.config.preferences.jsonSpaces)}}();","type":"application/javascript","module-type":"macro"},"$:/core/modules/macros/jsontiddlers.js":{"text":"!function(){'use strict';exports.name='jsontiddlers',exports.params=[{name:'filter'},{name:'spaces'}],exports.run=function(s,t){return this.wiki.getTiddlersAsJson(s,$tw.utils.parseInt(t))}}();","type":"application/javascript","module-type":"macro"},"$:/core/modules/macros/makedatauri.js":{"text":"!function(){'use strict';exports.name='makedatauri',exports.params=[{name:'text'},{name:'type'},{name:'_canonical_uri'}],exports.run=function(t,a,e){return $tw.utils.makeDataUri(t,a,e)}}();","type":"application/javascript","module-type":"macro"},"$:/core/modules/macros/now.js":{"text":"!function(){'use strict';exports.name='now',exports.params=[{name:'format'}],exports.run=function(t){return $tw.utils.formatDateString(new Date,t||'0hh:0mm, DDth MMM YYYY')}}();","type":"application/javascript","module-type":"macro"},"$:/core/modules/macros/qualify.js":{"text":"!function(){'use strict';exports.name='qualify',exports.params=[{name:'title'}],exports.run=function(t){return t+'-'+this.getStateQualifier()}}();","type":"application/javascript","module-type":"macro"},"$:/core/modules/macros/resolvepath.js":{"text":"!function(){'use strict';exports.name='resolvepath',exports.params=[{name:'source'},{name:'root'}],exports.run=function(e,t){return $tw.utils.resolvePath(e,t)}}();","type":"application/javascript","module-type":"macro"},"$:/core/modules/macros/unusedtitle.js":{"text":"!function(){'use strict';exports.name='unusedtitle',exports.params=[{name:'baseName'},{name:'options'}],exports.run=function(e,t){return e=e||$tw.language.getString('DefaultNewTiddlerTitle'),this.wiki.generateNewTitle(e,t)}}();","type":"application/javascript","module-type":"macro"},"$:/core/modules/macros/version.js":{"text":"!function(){'use strict';exports.name='version',exports.params=[],exports.run=function(){return $tw.version}}();","type":"application/javascript","module-type":"macro"},"$:/core/modules/parsers/audioparser.js":{"text":"!function(){'use strict';function t(t,e,i){var a={type:'element',tag:'audio',attributes:{controls:{type:'string',value:'controls'},style:{type:'string',value:'width: 100%; object-fit: contain'}}};i._canonical_uri?a.attributes.src={type:'string',value:i._canonical_uri}:e&&(a.attributes.src={type:'string',value:'data:'+t+';base64,'+e}),this.tree=[a]}exports['audio/ogg']=t,exports['audio/mpeg']=t,exports['audio/mp3']=t,exports['audio/mp4']=t}();","type":"application/javascript","module-type":"parser"},"$:/core/modules/parsers/binaryparser.js":{"text":"!function(){'use strict';exports['application/octet-stream']=function(t,e,i){var r={type:'element',tag:'p',children:[{type:'transclude',attributes:{tiddler:{type:'string',value:'$:/core/ui/BinaryWarning'}}}]},a={type:'element',tag:'a',attributes:{title:{type:'indirect',textReference:'!!title'},download:{type:'indirect',textReference:'!!title'}},children:[{type:'transclude',attributes:{tiddler:{type:'string',value:'$:/core/images/export-button'}}}]};i._canonical_uri?a.attributes.href={type:'string',value:i._canonical_uri}:e&&(a.attributes.href={type:'string',value:'data:'+t+';base64,'+e});a={type:'element',tag:'div',attributes:{class:{type:'string',value:'tc-binary-warning'}},children:[r,a]};this.tree=[a]}}();","type":"application/javascript","module-type":"parser"},"$:/core/modules/parsers/csvparser.js":{"text":"!function(){'use strict';exports['text/csv']=function(t,e,l){this.tree=[{type:'scrollable',children:[{type:'element',tag:'table',children:[{type:'element',tag:'tbody',children:[]}],attributes:{class:{type:'string',value:'tc-csv-table'}}}]}];for(var r=e.split(/\\r?\\n/gm),n='th',i=0;i<r.length;i++){var c=r[i];if(c){for(var h={type:'element',tag:'tr',children:[]},s=c.split(','),a=0;a<s.length;a++)h.children.push({type:'element',tag:n,children:[{type:'text',text:s[a]}]});n='td',this.tree[0].children[0].children[0].children.push(h)}}}}();","type":"application/javascript","module-type":"parser"},"$:/core/modules/parsers/htmlparser.js":{"text":"!function(){'use strict';exports['text/html']=function(t,e,i){var n;i._canonical_uri?n=i._canonical_uri:e&&(n='data:text/html;charset=utf-8,'+encodeURIComponent(e)),this.tree=[{type:'element',tag:'iframe',attributes:{src:{type:'string',value:n}}}],'yes'!==$tw.wiki.getTiddlerText('$:/config/HtmlParser/DisableSandbox','no')&&(this.tree[0].attributes.sandbox={type:'string',value:$tw.wiki.getTiddlerText('$:/config/HtmlParser/SandboxTokens','')})}}();","type":"application/javascript","module-type":"parser"},"$:/core/modules/parsers/imageparser.js":{"text":"!function(){'use strict';function e(e,t,i){var a={type:'element',tag:'img',attributes:{}};i._canonical_uri?a.attributes.src={type:'string',value:i._canonical_uri}:t&&(a.attributes.src='image/svg+xml'===e||'.svg'===e?{type:'string',value:'data:image/svg+xml,'+encodeURIComponent(t)}:{type:'string',value:'data:'+e+';base64,'+t}),this.tree=[a]}exports['image/svg+xml']=e,exports['image/jpg']=e,exports['image/jpeg']=e,exports['image/png']=e,exports['image/gif']=e,exports['image/webp']=e,exports['image/heic']=e,exports['image/heif']=e,exports['image/x-icon']=e,exports['image/vnd.microsoft.icon']=e}();","type":"application/javascript","module-type":"parser"},"$:/core/modules/utils/parseutils.js":{"text":"!function(){'use strict';exports.parseWhiteSpace=function(t,e){for(var r,a=e;' '===(r=t.charAt(a))||'\\f'===r||'\\n'===r||'\\r'===r||'\\t'===r||'\\v'===r||' '===r;)a++;return a===e?null:{type:'whitespace',start:e,end:a}},exports.skipWhiteSpace=function(t,e){for(var r;;){if(' '!==(r=t.charAt(e))&&'\\f'!==r&&'\\n'!==r&&'\\r'!==r&&'\\t'!==r&&'\\v'!==r&&' '!==r)return e;e++}},exports.parseTokenString=function(t,e,r){return t.indexOf(r,e)===e?{type:'token',value:r,start:e,end:e+r.length}:null},exports.parseTokenRegExp=function(t,e,r){var a={type:'regexp',start:e};return r.lastIndex=e,a.match=r.exec(t),a.match&&a.match.index===e?(a.end=e+a.match[0].length,a):null},exports.parseStringLiteral=function(t,e){var r={type:'string',start:e},a=/(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\")|(?:'([^']*)')/g;a.lastIndex=e;t=a.exec(t);return t&&t.index===e?(r.value=void 0!==t[1]?t[1]:void 0!==t[2]?t[2]:t[3],r.end=e+t[0].length,r):null},exports.parseMacroParameter=function(t,e){var r={type:'macro-parameter',start:e};e=$tw.utils.skipWhiteSpace(t,e);t=$tw.utils.parseTokenRegExp(t,e,/(?:([A-Za-z0-9\\-_]+)\\s*:)?(?:\\s*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|((?:(?:>(?!>))|[^\\s>\"'])+)))/g);return t?(e=t.end,r.value=void 0!==t.match[2]?t.match[2]:void 0!==t.match[3]?t.match[3]:void 0!==t.match[4]?t.match[4]:void 0!==t.match[5]?t.match[5]:void 0!==t.match[6]?t.match[6]:'',t.match[1]&&(r.name=t.match[1]),r.end=e,r):null},exports.parseMacroInvocation=function(t,e){var r={type:'macrocall',start:e,params:[]};e=$tw.utils.skipWhiteSpace(t,e);var a=$tw.utils.parseTokenString(t,e,'<<');if(!a)return null;e=a.end;var n=$tw.utils.parseTokenRegExp(t,e,/([^\\s>\"'=]+)/g);if(!n)return null;r.name=n.match[1],e=n.end;for(var s=$tw.utils.parseMacroParameter(t,e);s;)r.params.push(s),e=s.end,s=$tw.utils.parseMacroParameter(t,e);return e=$tw.utils.skipWhiteSpace(t,e),(a=$tw.utils.parseTokenString(t,e,'>>'))?(e=a.end,r.end=e,r):null},exports.parseAttribute=function(t,e){var r={start:e};e=$tw.utils.skipWhiteSpace(t,e);var a=$tw.utils.parseTokenRegExp(t,e,/([^\\/\\s>\"'=]+)/g);if(!a)return null;r.name=a.match[1],e=a.end,e=$tw.utils.skipWhiteSpace(t,e);a=$tw.utils.parseTokenString(t,e,'=');return a?(e=a.end,e=$tw.utils.skipWhiteSpace(t,e),(a=$tw.utils.parseStringLiteral(t,e))?(e=a.end,r.type='string',r.value=a.value):(a=$tw.utils.parseTokenRegExp(t,e,/\\{\\{\\{(.+?)\\}\\}\\}/g))?(e=a.end,r.type='filtered',r.filter=a.match[1]):(a=$tw.utils.parseTokenRegExp(t,e,/\\{\\{([^\\}]+)\\}\\}/g))?(e=a.end,r.type='indirect',r.textReference=a.match[1]):(a=$tw.utils.parseTokenRegExp(t,e,/([^\\/\\s<>\"'=]+)/g))?(e=a.end,r.type='string',r.value=a.match[1]):(t=$tw.utils.parseMacroInvocation(t,e))?(e=t.end,r.type='macro',r.value=t):(r.type='string',r.value='true')):(r.type='string',r.value='true'),r.end=e,r}}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/parsers/pdfparser.js":{"text":"!function(){'use strict';exports['application/pdf']=function(t,a,e){var i={type:'element',tag:'embed',attributes:{}};e._canonical_uri?i.attributes.src={type:'string',value:e._canonical_uri}:a&&(i.attributes.src={type:'string',value:'data:application/pdf;base64,'+a}),this.tree=[i]}}();","type":"application/javascript","module-type":"parser"},"$:/core/modules/parsers/textparser.js":{"text":"!function(){'use strict';function t(t,e,i){this.tree=[{type:'codeblock',attributes:{code:{type:'string',value:e},language:{type:'string',value:t}}}]}exports['text/plain']=t,exports['text/x-tiddlywiki']=t,exports['application/javascript']=t,exports['application/json']=t,exports['text/css']=t,exports['application/x-tiddler-dictionary']=t}();","type":"application/javascript","module-type":"parser"},"$:/core/modules/parsers/videoparser.js":{"text":"!function(){'use strict';function t(t,e,i){var o={type:'element',tag:'video',attributes:{controls:{type:'string',value:'controls'},style:{type:'string',value:'width: 100%; object-fit: contain'}}};i._canonical_uri?o.attributes.src={type:'string',value:i._canonical_uri}:e&&(o.attributes.src={type:'string',value:'data:'+t+';base64,'+e}),this.tree=[o]}exports['video/ogg']=t,exports['video/webm']=t,exports['video/mp4']=t,exports['video/quicktime']=t}();","type":"application/javascript","module-type":"parser"},"$:/core/modules/parsers/wikiparser/rules/codeblock.js":{"text":"!function(){'use strict';exports.name='codeblock',exports.types={block:!0},exports.init=function(s){this.parser=s,this.matchRegExp=/```([\\w-]*)\\r?\\n/gm},exports.parse=function(){var s=/(\\r?\\n```$)/gm;this.parser.pos=this.matchRegExp.lastIndex,s.lastIndex=this.parser.pos;var e,s=s.exec(this.parser.source);return s?(e=this.parser.source.substring(this.parser.pos,s.index),this.parser.pos=s.index+s[0].length):(e=this.parser.source.substr(this.parser.pos),this.parser.pos=this.parser.sourceLength),[{type:'codeblock',attributes:{code:{type:'string',value:e},language:{type:'string',value:this.match[1]}}}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/codeinline.js":{"text":"!function(){'use strict';exports.name='codeinline',exports.types={inline:!0},exports.init=function(s){this.parser=s,this.matchRegExp=/(``?)/gm},exports.parse=function(){this.parser.pos=this.matchRegExp.lastIndex;var s=new RegExp(this.match[1],'mg');s.lastIndex=this.parser.pos;var e,s=s.exec(this.parser.source);return s?(e=this.parser.source.substring(this.parser.pos,s.index),this.parser.pos=s.index+s[0].length):(e=this.parser.source.substr(this.parser.pos),this.parser.pos=this.parser.sourceLength),[{type:'element',tag:'code',children:[{type:'text',text:e}]}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/commentblock.js":{"text":"!function(){'use strict';exports.name='commentblock',exports.types={block:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/<!--/gm,this.endMatchRegExp=/-->/gm},exports.findNextMatch=function(t){if(this.matchRegExp.lastIndex=t,this.match=this.matchRegExp.exec(this.parser.source),this.match&&(this.endMatchRegExp.lastIndex=this.match.index+this.match[0].length,this.endMatch=this.endMatchRegExp.exec(this.parser.source),this.endMatch))return this.match.index},exports.parse=function(){return this.parser.pos=this.endMatchRegExp.lastIndex,[]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/commentinline.js":{"text":"!function(){'use strict';exports.name='commentinline',exports.types={inline:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/<!--/gm,this.endMatchRegExp=/-->/gm},exports.findNextMatch=function(t){if(this.matchRegExp.lastIndex=t,this.match=this.matchRegExp.exec(this.parser.source),this.match&&(this.endMatchRegExp.lastIndex=this.match.index+this.match[0].length,this.endMatch=this.endMatchRegExp.exec(this.parser.source),this.endMatch))return this.match.index},exports.parse=function(){return this.parser.pos=this.endMatchRegExp.lastIndex,[]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/dash.js":{"text":"!function(){'use strict';exports.name='dash',exports.types={inline:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/-{2,3}(?!-)/gm},exports.parse=function(){return this.parser.pos=this.matchRegExp.lastIndex,[{type:'entity',entity:2===this.match[0].length?'–':'—'}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/emphasis/bold.js":{"text":"!function(){'use strict';exports.name='bold',exports.types={inline:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/''/gm},exports.parse=function(){return this.parser.pos=this.matchRegExp.lastIndex,[{type:'element',tag:'strong',children:this.parser.parseInlineRun(/''/gm,{eatTerminator:!0})}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/emphasis/italic.js":{"text":"!function(){'use strict';exports.name='italic',exports.types={inline:!0},exports.init=function(e){this.parser=e,this.matchRegExp=/\\/\\//gm},exports.parse=function(){return this.parser.pos=this.matchRegExp.lastIndex,[{type:'element',tag:'em',children:this.parser.parseInlineRun(/\\/\\//gm,{eatTerminator:!0})}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/emphasis/strikethrough.js":{"text":"!function(){'use strict';exports.name='strikethrough',exports.types={inline:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/~~/gm},exports.parse=function(){return this.parser.pos=this.matchRegExp.lastIndex,[{type:'element',tag:'strike',children:this.parser.parseInlineRun(/~~/gm,{eatTerminator:!0})}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/emphasis/subscript.js":{"text":"!function(){'use strict';exports.name='subscript',exports.types={inline:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/,,/gm},exports.parse=function(){return this.parser.pos=this.matchRegExp.lastIndex,[{type:'element',tag:'sub',children:this.parser.parseInlineRun(/,,/gm,{eatTerminator:!0})}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/emphasis/superscript.js":{"text":"!function(){'use strict';exports.name='superscript',exports.types={inline:!0},exports.init=function(e){this.parser=e,this.matchRegExp=/\\^\\^/gm},exports.parse=function(){return this.parser.pos=this.matchRegExp.lastIndex,[{type:'element',tag:'sup',children:this.parser.parseInlineRun(/\\^\\^/gm,{eatTerminator:!0})}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/emphasis/underscore.js":{"text":"!function(){'use strict';exports.name='underscore',exports.types={inline:!0},exports.init=function(e){this.parser=e,this.matchRegExp=/__/gm},exports.parse=function(){return this.parser.pos=this.matchRegExp.lastIndex,[{type:'element',tag:'u',children:this.parser.parseInlineRun(/__/gm,{eatTerminator:!0})}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/entity.js":{"text":"!function(){'use strict';exports.name='entity',exports.types={inline:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/(&#?[a-zA-Z0-9]{2,8};)/gm},exports.parse=function(){this.match[1];return this.parser.pos=this.matchRegExp.lastIndex,[{type:'entity',entity:this.match[0]}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/extlink.js":{"text":"!function(){'use strict';exports.name='extlink',exports.types={inline:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/~?(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\\s<>{}\\[\\]`|\"\\\\^]+(?:\\/|\\b)/gm},exports.parse=function(){return this.parser.pos=this.matchRegExp.lastIndex,'~'===this.match[0].substr(0,1)?[{type:'text',text:this.match[0].substr(1)}]:[{type:'element',tag:'a',attributes:{href:{type:'string',value:this.match[0]},class:{type:'string',value:'tc-tiddlylink-external'},target:{type:'string',value:'_blank'},rel:{type:'string',value:'noopener noreferrer'}},children:[{type:'text',text:this.match[0]}]}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/filteredtranscludeblock.js":{"text":"!function(){'use strict';exports.name='filteredtranscludeblock',exports.types={block:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/\\{\\{\\{([^\\|]+?)(?:\\|([^\\|\\{\\}]+))?(?:\\|\\|([^\\|\\{\\}]+))?\\}\\}([^\\}]*)\\}(?:\\.(\\S+))?(?:\\r?\\n|$)/gm},exports.parse=function(){this.parser.pos=this.matchRegExp.lastIndex;var t=this.match[1],s=this.match[2],e=$tw.utils.trim(this.match[3]),i=this.match[4],r=this.match[5],t={type:'list',attributes:{filter:{type:'string',value:t}},isBlock:!0};return s&&(t.attributes.tooltip={type:'string',value:s}),e&&(t.attributes.template={type:'string',value:e}),i&&(t.attributes.style={type:'string',value:i}),r&&(t.attributes.itemClass={type:'string',value:r.split('.').join(' ')}),[t]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/filteredtranscludeinline.js":{"text":"!function(){'use strict';exports.name='filteredtranscludeinline',exports.types={inline:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/\\{\\{\\{([^\\|]+?)(?:\\|([^\\|\\{\\}]+))?(?:\\|\\|([^\\|\\{\\}]+))?\\}\\}([^\\}]*)\\}(?:\\.(\\S+))?/gm},exports.parse=function(){this.parser.pos=this.matchRegExp.lastIndex;var t=this.match[1],e=this.match[2],i=$tw.utils.trim(this.match[3]),s=this.match[4],r=this.match[5],t={type:'list',attributes:{filter:{type:'string',value:t}}};return e&&(t.attributes.tooltip={type:'string',value:e}),i&&(t.attributes.template={type:'string',value:i}),s&&(t.attributes.style={type:'string',value:s}),r&&(t.attributes.itemClass={type:'string',value:r.split('.').join(' ')}),[t]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/hardlinebreaks.js":{"text":"!function(){'use strict';exports.name='hardlinebreaks',exports.types={inline:!0},exports.init=function(e){this.parser=e,this.matchRegExp=/\"\"\"(?:\\r?\\n)?/gm},exports.parse=function(){var e,s=/(\"\"\")|(\\r?\\n)/gm,r=[];for(this.parser.pos=this.matchRegExp.lastIndex;r.push.apply(r,this.parser.parseInlineRun(s,{eatTerminator:!1})),s.lastIndex=this.parser.pos,(e=s.exec(this.parser.source))&&(this.parser.pos=s.lastIndex,e[2]&&r.push({type:'element',tag:'br'})),e&&!e[1];);return r}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/heading.js":{"text":"!function(){'use strict';exports.name='heading',exports.types={block:!0},exports.init=function(e){this.parser=e,this.matchRegExp=/(!{1,6})/gm},exports.parse=function(){var e=this.match[1].length;this.parser.pos=this.matchRegExp.lastIndex;var s=this.parser.parseClasses();this.parser.skipWhitespace({treatNewlinesAsNonWhitespace:!0});var t=this.parser.parseInlineRun(/(\\r?\\n)/gm);return[{type:'element',tag:'h'+e,attributes:{class:{type:'string',value:s.join(' ')}},children:t}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/horizrule.js":{"text":"!function(){'use strict';exports.name='horizrule',exports.types={block:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/-{3,}\\r?(?:\\n|$)/gm},exports.parse=function(){return this.parser.pos=this.matchRegExp.lastIndex,[{type:'element',tag:'hr'}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/html.js":{"text":"!function(){'use strict';exports.name='html',exports.types={inline:!0,block:!0},exports.init=function(t){this.parser=t},exports.findNextMatch=function(t){return this.nextTag=this.findNextTag(this.parser.source,t,{requireLineBreak:this.is.block}),this.nextTag?this.nextTag.start:void 0},exports.parse=function(){var t=this.nextTag;this.nextTag=null,this.parser.pos=t.end;var e,r=!t.isSelfClosing&&!!$tw.utils.parseTokenRegExp(this.parser.source,this.parser.pos,/([^\\S\\n\\r]*\\r?\\n(?:[^\\S\\n\\r]*\\r?\\n|$))/g);return t.isBlock=this.is.block||r,t.isSelfClosing||-1!==$tw.config.htmlVoidElements.indexOf(t.tag)||(e='</'+$tw.utils.escapeRegExp(t.tag)+'>',r?t.children=this.parser.parseBlocks(e):(e=new RegExp('('+e+')','mg'),t.children=this.parser.parseInlineRun(e,{eatTerminator:!0}))),[t]},exports.parseTag=function(t,e,r){r=r||{};var n,s={type:'element',start:e,attributes:{}};if(e=$tw.utils.skipWhiteSpace(t,e),!(n=$tw.utils.parseTokenString(t,e,'<')))return null;if(e=n.end,!(n=$tw.utils.parseTokenRegExp(t,e,/([a-zA-Z0-9\\-\\$]+)/g)))return null;if(s.tag=n.match[1],-1!==s.tag.slice(1).indexOf('$'))return null;if('$'===s.tag.charAt(0)&&(s.type=s.tag.substr(1)),e=n.end,!$tw.utils.parseWhiteSpace(t,e)&&'/'!==t.charAt(e)&&'>'!==t.charAt(e))return null;for(var i=$tw.utils.parseAttribute(t,e);i;)e=(s.attributes[i.name]=i).end,i=$tw.utils.parseAttribute(t,e);return e=$tw.utils.skipWhiteSpace(t,e),(n=$tw.utils.parseTokenString(t,e,'/'))&&(e=n.end,s.isSelfClosing=!0),(n=$tw.utils.parseTokenString(t,e,'>'))?(e=n.end,r.requireLineBreak&&!(n=$tw.utils.parseTokenRegExp(t,e,/([^\\S\\n\\r]*\\r?\\n(?:[^\\S\\n\\r]*\\r?\\n|$))/g))?null:(s.end=e,s)):null},exports.findNextTag=function(t,e,r){var n=/<([a-zA-Z\\-\\$]+)/g;n.lastIndex=e;for(var s=n.exec(t);s;){var i=this.parseTag(t,s.index,r);if(i&&this.isLegalTag(i))return i;n.lastIndex=s.index+1,s=n.exec(t)}return null},exports.isLegalTag=function(t){return'element'!==t.type||'-'!==t.tag.charAt(0)}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/image.js":{"text":"!function(){'use strict';exports.name='image',exports.types={inline:!0},exports.init=function(t){this.parser=t},exports.findNextMatch=function(t){return this.nextImage=this.findNextImage(this.parser.source,t),this.nextImage?this.nextImage.start:void 0},exports.parse=function(){return this.parser.pos=this.nextImage.end,[{type:'image',attributes:this.nextImage.attributes}]},exports.findNextImage=function(t,e){var i=/(\\[img)/g;i.lastIndex=e;for(var r=i.exec(t);r;){var s=this.parseImage(t,r.index);if(s)return s;i.lastIndex=r.index+1,r=i.exec(t)}return null},exports.parseImage=function(t,e){var i,r={type:'image',start:e,attributes:{}};if(e=$tw.utils.skipWhiteSpace(t,e),!(i=$tw.utils.parseTokenString(t,e,'[img')))return null;if(e=i.end,e=$tw.utils.skipWhiteSpace(t,e),'['!==t.charAt(e))for(var s=$tw.utils.parseAttribute(t,e);s;)e=(r.attributes[s.name]=s).end,e=$tw.utils.skipWhiteSpace(t,e),s='['!==t.charAt(e)?$tw.utils.parseAttribute(t,e):null;return e=$tw.utils.skipWhiteSpace(t,e),(i=$tw.utils.parseTokenString(t,e,'['))?(e=i.end,e=$tw.utils.skipWhiteSpace(t,e),(i=$tw.utils.parseTokenRegExp(t,e,/(?:([^|\\]]*?)\\|)?([^\\]]+?)\\]\\]/g))?(e=i.end,i.match[1]&&(r.attributes.tooltip={type:'string',value:i.match[1].trim()}),r.attributes.source={type:'string',value:(i.match[2]||'').trim()},r.end=e,r):null):null}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/import.js":{"text":"!function(){'use strict';exports.name='import',exports.types={pragma:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/^\\\\import[^\\S\\n]/gm},exports.parse=function(){this.parser.pos=this.matchRegExp.lastIndex;var t=/(.*)(\\r?\\n)|$/gm;t.lastIndex=this.parser.pos;var r=t.exec(this.parser.source);return this.parser.pos=t.lastIndex,[{type:'importvariables',attributes:{filter:{type:'string',value:r[1]}},children:[]}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/list.js":{"text":"!function(){'use strict';exports.name='list',exports.types={block:!0},exports.init=function(e){this.parser=e,this.matchRegExp=/([\\*#;:>]+)/gm};var h={'*':{listTag:'ul',itemTag:'li'},'#':{listTag:'ol',itemTag:'li'},';':{listTag:'dl',itemTag:'dt'},':':{listTag:'dl',itemTag:'dd'},'>':{listTag:'blockquote',itemTag:'div'}};exports.parse=function(){for(var e=[];;){var t=/([\\*#;:>]+)/gm;t.lastIndex=this.parser.pos;var s=t.exec(this.parser.source);if(!s||s.index!==this.parser.pos)break;var i=h[s[0].charAt(0)];if(0<e.length&&e[0].tag!==i.listTag)break;this.parser.pos=s.index+s[0].length;for(var r=0;r<s[0].length;r++){var a,i=h[s[0].charAt(r)];e.length>r&&e[r].tag!==i.listTag&&e.splice(r,e.length-r),e.length<=r?(a={type:'element',tag:i.listTag,children:[{type:'element',tag:i.itemTag,children:[]}]},r&&e[r-1].children[e[r-1].children.length-1].children.push(a),e[r]=a):r===s[0].length-1&&e[r].children.push({type:'element',tag:i.itemTag,children:[]})}e.length>s[0].length&&e.splice(s[0].length,e.length-s[0].length);var l=e[e.length-1].children,n=l[l.length-1],t=this.parser.parseClasses();this.parser.skipWhitespace({treatNewlinesAsNonWhitespace:!0});l=this.parser.parseInlineRun(/(\\r?\\n)/gm);n.children.push.apply(n.children,l),0<t.length&&$tw.utils.addClassToParseTreeNode(n,t.join(' ')),this.parser.skipWhitespace()}return[e[0]]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/macrocallblock.js":{"text":"!function(){'use strict';exports.name='macrocallblock',exports.types={block:!0},exports.init=function(r){this.parser=r},exports.findNextMatch=function(r){for(var t=r;0<=(t=this.parser.source.indexOf('<<',t));){var s=$tw.utils.parseMacroInvocation(this.parser.source,t);if(s){var e=this.parser.source.charAt(s.end);if(''===e||'\\n'===e||'\\r'===e&&'\\n'===this.parser.source.charAt(s.end+1))return this.nextCall=s,t}t+=2}},exports.parse=function(){var r=this.nextCall;return r.isBlock=!0,this.nextCall=null,this.parser.pos=r.end,[r]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/macrocallinline.js":{"text":"!function(){'use strict';exports.name='macrocallinline',exports.types={inline:!0},exports.init=function(t){this.parser=t},exports.findNextMatch=function(t){for(var e=t;0<=(e=this.parser.source.indexOf('<<',e));){if(this.nextCall=$tw.utils.parseMacroInvocation(this.parser.source,e),this.nextCall)return e;e+=2}},exports.parse=function(){var t=this.nextCall;return this.nextCall=null,this.parser.pos=t.end,[t]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/macrodef.js":{"text":"!function(){'use strict';exports.name='macrodef',exports.types={pragma:!0},exports.init=function(s){this.parser=s,this.matchRegExp=/^\\\\define\\s+([^(\\s]+)\\(\\s*([^)]*)\\)(\\s*\\r?\\n)?/gm},exports.parse=function(){this.parser.pos=this.matchRegExp.lastIndex;var s=this.match[2],e=[];if(''!==s)for(var r=/\\s*([A-Za-z0-9\\-_]+)(?:\\s*:\\s*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\"'\\s]+)))?/gm,t=r.exec(s);t;){var a={name:t[1]},i=t[2]||t[3]||t[4]||t[5]||t[6];i&&(a.default=i),e.push(a),t=r.exec(s)}this.match[3]?n=/(\\r?\\n\\\\end[^\\S\\n\\r]*(?:$|\\r?\\n))/gm:(n=/($|\\r?\\n)/gm,this.parser.pos=$tw.utils.skipWhiteSpace(this.parser.source,this.parser.pos)),n.lastIndex=this.parser.pos;var p,n=n.exec(this.parser.source);return n?(p=this.parser.source.substring(this.parser.pos,n.index),this.parser.pos=n.index+n[0].length):p='',[{type:'set',attributes:{name:{type:'string',value:this.match[1]},value:{type:'string',value:p}},children:[],params:e,isMacroDefinition:!0}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/prettyextlink.js":{"text":"!function(){'use strict';exports.name='prettyextlink',exports.types={inline:!0},exports.init=function(t){this.parser=t},exports.findNextMatch=function(t){return this.nextLink=this.findNextLink(this.parser.source,t),this.nextLink?this.nextLink.start:void 0},exports.parse=function(){return this.parser.pos=this.nextLink.end,[this.nextLink]},exports.findNextLink=function(t,e){var n=/(\\[ext\\[)/g;n.lastIndex=e;for(var r=n.exec(t);r;){var i=this.parseLink(t,r.index);if(i)return i;n.lastIndex=r.index+1,r=n.exec(t)}return null},exports.parseLink=function(t,e){var n={type:'text'},r={type:'element',tag:'a',start:e,attributes:{class:{type:'string',value:'tc-tiddlylink-external'}},children:[n]};if(e=$tw.utils.skipWhiteSpace(t,e),!(a=$tw.utils.parseTokenString(t,e,'[ext[')))return null;e=a.end;var i=t.indexOf(']]',e);if(-1===i)return null;var s,a=t.indexOf('|',e);return(-1===a||i<a)&&(a=null),a?(s=t.substring(a+1,i).trim(),n.text=t.substring(e,a).trim()):(s=t.substring(e,i).trim(),n.text=s),r.attributes.href={type:'string',value:s},r.attributes.target={type:'string',value:'_blank'},r.attributes.rel={type:'string',value:'noopener noreferrer'},r.end=i+2,r}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/prettylink.js":{"text":"!function(){'use strict';exports.name='prettylink',exports.types={inline:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/\\[\\[(.*?)(?:\\|(.*?))?\\]\\]/gm},exports.parse=function(){this.parser.pos=this.matchRegExp.lastIndex;var t=this.match[1],e=this.match[2]||t;return $tw.utils.isLinkExternal(e)?[{type:'element',tag:'a',attributes:{href:{type:'string',value:e},class:{type:'string',value:'tc-tiddlylink-external'},target:{type:'string',value:'_blank'},rel:{type:'string',value:'noopener noreferrer'}},children:[{type:'text',text:t}]}]:[{type:'link',attributes:{to:{type:'string',value:e}},children:[{type:'text',text:t}]}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/quoteblock.js":{"text":"!function(){'use strict';exports.name='quoteblock',exports.types={block:!0},exports.init=function(e){this.parser=e,this.matchRegExp=/(<<<+)/gm},exports.parse=function(){var e=['tc-quote'],t='^'+this.match[1]+'(?!<)';this.parser.pos=this.matchRegExp.lastIndex,e.push.apply(e,this.parser.parseClasses()),this.parser.skipWhitespace({treatNewlinesAsNonWhitespace:!0});var s=this.parser.parseInlineRun(/(\\r?\\n)/gm),t=this.parser.parseBlocks(t);return 0<s.length&&t.unshift({type:'element',tag:'cite',children:s}),this.parser.skipWhitespace({treatNewlinesAsNonWhitespace:!0}),0<(s=this.parser.parseInlineRun(/(\\r?\\n)/gm)).length&&t.push({type:'element',tag:'cite',children:s}),[{type:'element',tag:'blockquote',attributes:{class:{type:'string',value:e.join(' ')}},children:t}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/rules.js":{"text":"!function(){'use strict';exports.name='rules',exports.types={pragma:!0},exports.init=function(s){this.parser=s,this.matchRegExp=/^\\\\rules[^\\S\\n]/gm},exports.parse=function(){this.parser.pos=this.matchRegExp.lastIndex;var s=/[^\\S\\n]*(\\S+)|(\\r?\\n)/gm,e=[];s.lastIndex=this.parser.pos;for(var r=s.exec(this.parser.source);r&&r.index===this.parser.pos&&(this.parser.pos=s.lastIndex,!r[2]);)r[1]&&e.push(r[1]),r=s.exec(this.parser.source);return 0<e.length&&this.parser.amendRules(e[0],e.slice(1)),[]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/styleblock.js":{"text":"!function(){'use strict';exports.name='styleblock',exports.types={block:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/@@((?:[^\\.\\r\\n\\s:]+:[^\\r\\n;]+;)+)?(?:\\.([^\\r\\n\\s]+))?\\r?\\n/gm},exports.parse=function(){for(var t=[],s=[];this.match[1]&&s.push(this.match[1]),this.match[2]&&t.push(this.match[2].split('.').join(' ')),this.parser.pos=this.matchRegExp.lastIndex,this.match=this.matchRegExp.exec(this.parser.source),this.match&&this.match.index===this.parser.pos;);for(var e=this.parser.parseBlocks('^@@(?:\\\\r?\\\\n)?'),r=0;r<e.length;r++)0<t.length&&$tw.utils.addClassToParseTreeNode(e[r],t.join(' ')),0<s.length&&$tw.utils.addAttributeToParseTreeNode(e[r],'style',s.join(''));return e}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/styleinline.js":{"text":"!function(){'use strict';exports.name='styleinline',exports.types={inline:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/@@((?:[^\\.\\r\\n\\s:]+:[^\\r\\n;]+;)+)?(\\.(?:[^\\r\\n\\s]+)\\s+)?/gm},exports.parse=function(){var t=this.match[1],e=this.match[2]?this.match[2].split('.').join(' '):void 0;this.parser.pos=this.matchRegExp.lastIndex;var s={type:'element',tag:'span',attributes:{class:{type:'string',value:'tc-inline-style'}},children:this.parser.parseInlineRun(/@@/g,{eatTerminator:!0})};return e&&$tw.utils.addClassToParseTreeNode(s,e),t&&$tw.utils.addAttributeToParseTreeNode(s,'style',t),[s]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/syslink.js":{"text":"!function(){'use strict';exports.name='syslink',exports.types={inline:!0},exports.init=function(t){this.parser=t,this.matchRegExp=new RegExp('~?\\\\$:\\\\/['+$tw.config.textPrimitives.anyLetter.substr(1,$tw.config.textPrimitives.anyLetter.length-2)+'/._-]+','mg')},exports.parse=function(){var t=this.match[0];return this.parser.pos=this.matchRegExp.lastIndex,'~'===t.substr(0,1)?[{type:'text',text:t.substr(1)}]:[{type:'link',attributes:{to:{type:'string',value:t}},children:[{type:'text',text:t}]}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/table.js":{"text":"!function(){'use strict';function h(e){var t,r=/(?:\\|([^\\n\\|]*)\\|)|(\\|[fhck]?\\r?(?:\\n|$))/gm,s=/((?:\\x20*)\\|)/gm,a=[],i=0,o=1;r.lastIndex=this.parser.pos;for(var p=r.exec(this.parser.source);p&&p.index===this.parser.pos;){if('~'===p[1]){var n=e[i];n&&(n.rowSpanCount++,$tw.utils.addAttributeToParseTreeNode(n.element,'rowspan',n.rowSpanCount),h=$tw.utils.getAttributeValueFromParseTreeNode(n.element,'valign','center'),$tw.utils.addAttributeToParseTreeNode(n.element,'valign',h),1<o&&($tw.utils.addAttributeToParseTreeNode(n.element,'colspan',o),o=1)),this.parser.pos=r.lastIndex-1}else if('>'===p[1])o++,this.parser.pos=r.lastIndex-1;else if('<'===p[1]&&t)o=1+$tw.utils.getAttributeValueFromParseTreeNode(t,'colspan',1),$tw.utils.addAttributeToParseTreeNode(t,'colspan',o),o=1,this.parser.pos=r.lastIndex-1;else{if(p[2]){t&&1<o&&(t.attributes&&t.attributes&&t.attributes.colspan?o+=t.attributes.colspan.value:--o,$tw.utils.addAttributeToParseTreeNode(t,'colspan',o)),this.parser.pos=r.lastIndex-1;break}this.parser.pos++;var l=!1,h=null;0===this.parser.source.substr(this.parser.pos).search(/^\\^([^\\^]|\\^\\^)/)?h='top':0===this.parser.source.substr(this.parser.pos).search(/^,([^,]|,,)/)&&(h='bottom'),h&&this.parser.pos++;for(var d=this.parser.source.substr(this.parser.pos,1);' '===d;)l=!0,this.parser.pos++,d=this.parser.source.substr(this.parser.pos,1);n='!'===d?(this.parser.pos++,{type:'element',tag:'th',children:[]}):{type:'element',tag:'td',children:[]},a.push(n),t=n,e[i]={rowSpanCount:1,element:n},1<o&&($tw.utils.addAttributeToParseTreeNode(n,'colspan',o),o=1),n.children=this.parser.parseInlineRun(s,{eatTerminator:!0}),h&&$tw.utils.addAttributeToParseTreeNode(n,'valign',h),' '===this.parser.source.substr(this.parser.pos-2,1)?$tw.utils.addAttributeToParseTreeNode(n,'align',l?'center':'left'):l&&$tw.utils.addAttributeToParseTreeNode(n,'align','right'),this.parser.pos--}i++,r.lastIndex=this.parser.pos,p=r.exec(this.parser.source)}return a}exports.name='table',exports.types={block:!0},exports.init=function(e){this.parser=e,this.matchRegExp=/^\\|(?:[^\\n]*)\\|(?:[fhck]?)\\r?(?:\\n|$)/gm},exports.parse=function(){var e,t,r={c:'caption',h:'thead','':'tbody',f:'tfoot'},s={type:'element',tag:'table',children:[]},a=/^\\|([^\\n]*)\\|([fhck]?)\\r?(?:\\n|$)/gm,i=/(\\|(?:[fhck]?)\\r?(?:\\n|$))/gm,o=[],p=0;a.lastIndex=this.parser.pos;for(var n=a.exec(this.parser.source);n&&n.index===this.parser.pos;){var l=n[2];'k'===l?($tw.utils.addClassToParseTreeNode(s,n[1]),this.parser.pos=n.index+n[0].length):(l!==e&&(t={type:'element',tag:r[l],children:[]},s.children.push(t),e=l),'c'===e?(this.parser.pos++,1!==s.children.length&&(s.children.pop(),s.children.splice(0,0,t)),t.children=this.parser.parseInlineRun(i,{eatTerminator:!0})):(l={type:'element',tag:'tr',children:[]},$tw.utils.addClassToParseTreeNode(l,p%2?'oddRow':'evenRow'),t.children.push(l),l.children=h.call(this,o),this.parser.pos=n.index+n[0].length,p++)),n=a.exec(this.parser.source)}return[s]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/transcludeblock.js":{"text":"!function(){'use strict';exports.name='transcludeblock',exports.types={block:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/\\{\\{([^\\{\\}\\|]*)(?:\\|\\|([^\\|\\{\\}]+))?\\}\\}(?:\\r?\\n|$)/gm},exports.parse=function(){this.parser.pos=this.matchRegExp.lastIndex;var t,e,i,s,r=$tw.utils.trim(this.match[2]),a=$tw.utils.trim(this.match[1]),l={type:'transclude',attributes:{},isBlock:!0};return a&&(t=(s=$tw.utils.parseTextReference(a)).title,e=s.field,i=s.index,s={type:'tiddler',attributes:{tiddler:{type:'string',value:t}},isBlock:!0,children:[l]}),r?(l.attributes.tiddler={type:'string',value:r},a?[s]:[l]):a?(l.attributes.tiddler={type:'string',value:t},e&&(l.attributes.field={type:'string',value:e}),i&&(l.attributes.index={type:'string',value:i}),[s]):[l]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/transcludeinline.js":{"text":"!function(){'use strict';exports.name='transcludeinline',exports.types={inline:!0},exports.init=function(t){this.parser=t,this.matchRegExp=/\\{\\{([^\\{\\}\\|]*)(?:\\|\\|([^\\|\\{\\}]+))?\\}\\}/gm},exports.parse=function(){this.parser.pos=this.matchRegExp.lastIndex;var t,e,i,r,s=$tw.utils.trim(this.match[2]),n=$tw.utils.trim(this.match[1]),a={type:'transclude',attributes:{}};return n&&(t=(r=$tw.utils.parseTextReference(n)).title,e=r.field,i=r.index,r={type:'tiddler',attributes:{tiddler:{type:'string',value:t}},children:[a]}),s?(a.attributes.tiddler={type:'string',value:s},n?[r]:[a]):n?(a.attributes.tiddler={type:'string',value:t},e&&(a.attributes.field={type:'string',value:e}),i&&(a.attributes.index={type:'string',value:i}),[r]):[a]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/typedblock.js":{"text":"!function(){'use strict';require('$:/core/modules/widgets/widget.js'),exports.name='typedblock',exports.types={block:!0},exports.init=function(e){this.parser=e,this.matchRegExp=/\\$\\$\\$([^ >\\r\\n]*)(?: *> *([^ \\r\\n]+))?\\r?\\n/gm},exports.parse=function(){var e=/\\r?\\n\\$\\$\\$\\r?(?:\\n|$)/gm,t=this.match[1],r=this.match[2];this.parser.pos=this.matchRegExp.lastIndex,e.lastIndex=this.parser.pos;var s,i=e.exec(this.parser.source);i?(s=this.parser.source.substring(this.parser.pos,i.index),this.parser.pos=i.index+i[0].length):(s=this.parser.source.substr(this.parser.pos),this.parser.pos=this.parser.sourceLength);e=this.parser.wiki.parseText(t,s,{defaultType:'text/plain'});if(r){i=this.parser.wiki.makeWidget(e),t=$tw.fakeDocument.createElement('div');return i.render(t,null),[{type:'element',tag:'pre',children:[{type:'text',text:s='text/html'===r?t.innerHTML:t.textContent}]}]}return e.tree}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/whitespace.js":{"text":"!function(){'use strict';exports.name='whitespace',exports.types={pragma:!0},exports.init=function(s){this.parser=s,this.matchRegExp=/^\\\\whitespace[^\\S\\n]/gm},exports.parse=function(){var e=this;this.parser.pos=this.matchRegExp.lastIndex;var s=/[^\\S\\n]*(\\S+)|(\\r?\\n)/gm,r=[];s.lastIndex=this.parser.pos;for(var t=s.exec(this.parser.source);t&&t.index===this.parser.pos&&(this.parser.pos=s.lastIndex,!t[2]);)t[1]&&r.push(t[1]),t=s.exec(this.parser.source);return $tw.utils.each(r,function(s){switch(s){case'trim':e.parser.configTrimWhiteSpace=!0;break;case'notrim':e.parser.configTrimWhiteSpace=!1}}),[]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/rules/wikilink.js":{"text":"!function(){'use strict';exports.name='wikilink',exports.types={inline:!0},exports.init=function(t){this.parser=t,this.matchRegExp=new RegExp($tw.config.textPrimitives.unWikiLink+'?'+$tw.config.textPrimitives.wikiLink,'mg')},exports.parse=function(){var t=this.match[0];if(this.parser.pos=this.matchRegExp.lastIndex,t.substr(0,1)===$tw.config.textPrimitives.unWikiLink)return[{type:'text',text:t.substr(1)}];if(0<this.match.index){var i=new RegExp($tw.config.textPrimitives.blockPrefixLetters,'mg');i.lastIndex=this.match.index-1;i=i.exec(this.parser.source);if(i&&i.index===this.match.index-1)return[{type:'text',text:t}]}return[{type:'link',attributes:{to:{type:'string',value:t}},children:[{type:'text',text:t}]}]}}();","type":"application/javascript","module-type":"wikirule"},"$:/core/modules/parsers/wikiparser/wikiparser.js":{"text":"!function(){'use strict';var r=function(s,e,t){this.wiki=t.wiki;var i,n;$tw.browser&&''===(e||'')&&t._canonical_uri&&(this.loadRemoteTiddler(t._canonical_uri),e=$tw.language.getRawString('LazyLoadingWarning')),this.type=s||'text/vnd.tiddlywiki',this.source=e||'',this.sourceLength=this.source.length,this.configTrimWhiteSpace=!1,this.pos=0,this.tree=[],e=t.rules?(i=t.rules.pragma,n=t.rules.block,t.rules.inline):(this.pragmaRuleClasses||(r.prototype.pragmaRuleClasses=$tw.modules.createClassesFromModules('wikirule','pragma',$tw.WikiRuleBase),this.setupRules(r.prototype.pragmaRuleClasses,'$:/config/WikiParserRules/Pragmas/')),i=this.pragmaRuleClasses,this.blockRuleClasses||(r.prototype.blockRuleClasses=$tw.modules.createClassesFromModules('wikirule','block',$tw.WikiRuleBase),this.setupRules(r.prototype.blockRuleClasses,'$:/config/WikiParserRules/Block/')),n=this.blockRuleClasses,this.inlineRuleClasses||(r.prototype.inlineRuleClasses=$tw.modules.createClassesFromModules('wikirule','inline',$tw.WikiRuleBase),this.setupRules(r.prototype.inlineRuleClasses,'$:/config/WikiParserRules/Inline/')),this.inlineRuleClasses),this.pragmaRules=this.instantiateRules(i,'pragma',0),this.blockRules=this.instantiateRules(n,'block',0),this.inlineRules=this.instantiateRules(e,'inline',0);e=this.parsePragmas();t.parseAsInline?e.push.apply(e,this.parseInlineRun()):e.push.apply(e,this.parseBlocks())};r.prototype.loadRemoteTiddler=function(t){var i=this;$tw.utils.httpRequest({url:t,type:'GET',callback:function(s,e){s||(e=i.wiki.deserializeTiddlers('.tid',e,i.wiki.getCreationFields()),$tw.utils.each(e,function(s){s._canonical_uri=t}),e&&i.wiki.addTiddlers(e))}})},r.prototype.setupRules=function(t,i){var n=this;$tw.safemode||$tw.utils.each(t,function(s,e){'enable'!==n.wiki.getTiddlerText(i+e,'enable')&&delete t[e]})},r.prototype.instantiateRules=function(s,t,i){var n=[],r=this;return $tw.utils.each(s,function(s){var e=new s(r);e.is={},e.is[t]=!0,e.init(r);s=e.findNextMatch(i);void 0!==s&&n.push({rule:e,matchIndex:s})}),n},r.prototype.skipWhitespace=function(s){var e=(s=s||{}).treatNewlinesAsNonWhitespace?/([^\\S\\n]+)/gm:/(\\s+)/gm;e.lastIndex=this.pos;s=e.exec(this.source);s&&s.index===this.pos&&(this.pos=e.lastIndex)},r.prototype.findNextMatch=function(s,e){for(var t,i=this.sourceLength,n=0;n<s.length;n++){var r=s[n];void 0!==r.matchIndex&&r.matchIndex<e&&(r.matchIndex=r.rule.findNextMatch(e)),void 0!==r.matchIndex&&r.matchIndex<=i&&(i=(t=r).matchIndex)}return t},r.prototype.parsePragmas=function(){for(var s=this.tree;this.skipWhitespace(),!(this.pos>=this.sourceLength);){var e=this.findNextMatch(this.pragmaRules,this.pos);if(!e||e.matchIndex!==this.pos)break;e=e.rule.parse();0<e.length&&(s.push.apply(s,e),e[0].children=[],s=e[0].children)}return s},r.prototype.parseBlock=function(s){var e=s?new RegExp('('+s+'|\\\\r?\\\\n\\\\r?\\\\n)','mg'):/(\\r?\\n\\r?\\n)/gm;if(this.skipWhitespace(),this.pos>=this.sourceLength)return[];s=this.findNextMatch(this.blockRules,this.pos);return s&&s.matchIndex===this.pos?s.rule.parse():[{type:'element',tag:'p',children:this.parseInlineRun(e)}]},r.prototype.parseBlocks=function(s){return s?this.parseBlocksTerminated(s):this.parseBlocksUnterminated()},r.prototype.parseBlocksUnterminated=function(){for(var s=[];this.pos<this.sourceLength;)s.push.apply(s,this.parseBlock());return s},r.prototype.parseBlocksTerminated=function(s){var e=new RegExp('('+s+')','mg'),t=[];this.skipWhitespace(),e.lastIndex=this.pos;for(var i=e.exec(this.source);this.pos<this.sourceLength&&(!i||i.index!==this.pos);){var n=this.parseBlock(s);t.push.apply(t,n),this.skipWhitespace(),e.lastIndex=this.pos,i=e.exec(this.source)}return i&&i.index===this.pos&&(this.pos=i.index+i[0].length),t},r.prototype.parseInlineRun=function(s,e){return s?this.parseInlineRunTerminated(s,e):this.parseInlineRunUnterminated(e)},r.prototype.parseInlineRunUnterminated=function(s){for(var e=[],t=this.findNextMatch(this.inlineRules,this.pos);this.pos<this.sourceLength&&t;)t.matchIndex>this.pos&&(this.pushTextWidget(e,this.source.substring(this.pos,t.matchIndex)),this.pos=t.matchIndex),e.push.apply(e,t.rule.parse()),t=this.findNextMatch(this.inlineRules,this.pos);return this.pos<this.sourceLength&&this.pushTextWidget(e,this.source.substr(this.pos)),this.pos=this.sourceLength,e},r.prototype.parseInlineRunTerminated=function(s,e){e=e||{};var t=[];s.lastIndex=this.pos;for(var i=s.exec(this.source),n=this.findNextMatch(this.inlineRules,this.pos);this.pos<this.sourceLength&&(i||n);){if(i&&(!n||n.matchIndex>=i.index))return i.index>this.pos&&this.pushTextWidget(t,this.source.substring(this.pos,i.index)),this.pos=i.index,e.eatTerminator&&(this.pos+=i[0].length),t;n&&(n.matchIndex>this.pos&&(this.pushTextWidget(t,this.source.substring(this.pos,n.matchIndex)),this.pos=n.matchIndex),t.push.apply(t,n.rule.parse()),n=this.findNextMatch(this.inlineRules,this.pos),s.lastIndex=this.pos,i=s.exec(this.source))}return this.pos<this.sourceLength&&this.pushTextWidget(t,this.source.substr(this.pos)),this.pos=this.sourceLength,t},r.prototype.pushTextWidget=function(s,e){this.configTrimWhiteSpace&&(e=$tw.utils.trim(e)),e&&s.push({type:'text',text:e})},r.prototype.parseClasses=function(){var s=/\\.([^\\s\\.]+)/gm,e=[];s.lastIndex=this.pos;for(var t=s.exec(this.source);t&&t.index===this.pos;)this.pos=t.index+t[0].length,e.push(t[1]),t=s.exec(this.source);return e},r.prototype.amendRules=function(s,t){var i;if(t=t||[],'only'===s)i=!0;else{if('except'!==s)return;i=!1}s=function(s){for(var e=s.length-1;0<=e;e--)-1===t.indexOf(s[e].rule.name)===i&&s.splice(e,1)};s(this.pragmaRules),s(this.blockRules),s(this.inlineRules)},exports['text/vnd.tiddlywiki']=r}();","type":"application/javascript","module-type":"parser"},"$:/core/modules/parsers/wikiparser/rules/wikirulebase.js":{"text":"!function(){'use strict';function t(){}t.prototype.init=function(t){this.parser=t},t.prototype.findNextMatch=function(t){return this.matchRegExp.lastIndex=t,this.match=this.matchRegExp.exec(this.parser.source),this.match?this.match.index:void 0},exports.WikiRuleBase=t}();","type":"application/javascript","module-type":"global"},"$:/core/modules/pluginswitcher.js":{"text":"!function(){'use strict';function i(i){this.wiki=i.wiki,this.pluginType=i.pluginType,this.controllerTitle=i.controllerTitle,this.defaultPlugins=i.defaultPlugins||[],this.onSwitch=i.onSwitch,this.switchPlugins();var t=this;this.wiki.addEventListener('change',function(i){$tw.utils.hop(i,t.controllerTitle)&&t.switchPlugins()})}i.prototype.switchPlugins=function(){for(var i=this.wiki.getTiddlerText(this.controllerTitle),t=0;!this.wiki.getTiddler(i)&&t<this.defaultPlugins.length;)i=this.defaultPlugins[t++];var e=[],n=this,s=function(i){var t=n.wiki.getTiddler(i);t&&t.isPlugin()&&-1===e.indexOf(i)&&(e.push(i),JSON.parse(n.wiki.getTiddlerText(i)),t=$tw.utils.parseStringArray(t.fields.dependents||''),$tw.utils.each(t,function(i){s(i)}))};s(i);$tw.wiki.readPluginInfo(e),$tw.wiki.unregisterPluginTiddlers(this.pluginType),$tw.wiki.registerPluginTiddlers(this.pluginType,e);$tw.wiki.unpackPluginTiddlers(),this.onSwitch&&this.onSwitch(e)},exports.PluginSwitcher=i}();","type":"application/javascript","module-type":"global"},"$:/core/modules/saver-handler.js":{"text":"!function(){'use strict';function t(t){var n=this;this.wiki=t.wiki,this.dirtyTracking=t.dirtyTracking,this.preloadDirty=t.preloadDirty||[],this.pendingAutoSave=!1,this.logger=new $tw.utils.Logger('saver-handler'),$tw.browser&&this.initSavers(),$tw.browser&&this.dirtyTracking&&(this.filterFn=this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter)),t=n.filterFn.call(n.wiki,function(e){$tw.utils.each(n.preloadDirty,function(t){var i=n.wiki.getTiddler(t);e(i,t)})}),this.numChanges=t.length,this.wiki.addEventListener('change',function(t){var i=n.filterFn.call(n.wiki,function(a){$tw.utils.each(t,function(t,i){var e=n.wiki.getTiddler(i);a(e,i)})});n.numChanges+=i.length,n.updateDirtyStatus(),n.pendingAutoSave&&0===n.wiki.getSizeOfTiddlerEventQueue()&&(0<n.numChanges&&n.saveWiki({method:'autosave',downloadType:'text/plain'}),n.pendingAutoSave=!1)}),$tw.rootWidget.addEventListener('tm-auto-save-wiki',function(t){0===n.wiki.getSizeOfTiddlerEventQueue()?0<n.numChanges&&n.saveWiki({method:'autosave',downloadType:'text/plain'}):n.pendingAutoSave=!0}),$tw.addUnloadTask(function(t){var i;return n.isDirty()&&(i=$tw.language.getString('UnsavedChangesWarning'),t.returnValue=i),i})),$tw.browser&&($tw.rootWidget.addEventListener('tm-save-wiki',function(t){n.saveWiki({template:t.param,downloadType:'text/plain',variables:t.paramObject})}),$tw.rootWidget.addEventListener('tm-download-file',function(t){n.saveWiki({method:'download',template:t.param,downloadType:'text/plain',variables:t.paramObject})}))}t.prototype.titleSyncFilter='$:/config/SaverFilter',t.prototype.titleAutoSave='$:/config/AutoSave',t.prototype.titleSavedNotification='$:/language/Notifications/Save/Done',t.prototype.initSavers=function(t){t=t||'saver',this.savers=[];var e=this;$tw.modules.forEachModuleOfType(t,function(t,i){i.canSave(e)&&e.savers.push(i.create(e.wiki))}),this.savers.sort(function(t,i){return t.info.priority<i.info.priority?-1:t.info.priority>i.info.priority?1:0})},t.prototype.saveWiki=function(i){var e=this,a=(i=i||{}).method||'save';if('autosave'===a&&($tw.config.disableAutoSave||'yes'!==this.wiki.getTiddlerText(this.titleAutoSave,'yes')))return!1;for(var t=i.variables||{},n=i.template||'$:/core/save/all',r=i.downloadType||'text/plain',o=this.wiki.renderTiddler(r,n,i),s=function(t){t?alert($tw.language.getString('Error/WhileSaving')+':\\n\\n'+t):('download'!==a&&(e.numChanges=0,e.updateDirtyStatus()),$tw.notifier.display(e.titleSavedNotification),i.callback&&i.callback())},l=this.savers.length-1;0<=l;l--){var d=this.savers[l];if(-1!==d.info.capabilities.indexOf(a)&&d.save(o,a,s,{variables:{filename:t.filename}}))return this.logger.log('Saving wiki with method',a,'through saver',d.info.name),!0}return!1},t.prototype.isDirty=function(){return 0<this.numChanges},t.prototype.updateDirtyStatus=function(){var i=this;$tw.browser&&($tw.utils.toggleClass(document.body,'tc-dirty',this.isDirty()),$tw.utils.each($tw.windows,function(t){$tw.utils.toggleClass(t.document.body,'tc-dirty',i.isDirty())}))},exports.SaverHandler=t}();","type":"application/javascript","module-type":"global"},"$:/core/modules/savers/andtidwiki.js":{"text":"!function(){'use strict';function t(e){}t.prototype.save=function(t,e,i,n){var o=n&&n.variables?n.variables.filename:null;if('download'===e)if(window.twi.saveDownload)try{window.twi.saveDownload(t,o)}catch(e){'Method not found'===e.message&&window.twi.saveDownload(t)}else{var a=document.createElement('a');a.setAttribute('href','data:text/plain,'+encodeURIComponent(t)),o&&a.setAttribute('download',o),document.body.appendChild(a),a.click(),document.body.removeChild(a)}else window.twi.saveWiki?window.twi.saveWiki(t):(0===(e=decodeURIComponent(document.location.toString().split('#')[0])).indexOf('file://')&&(e=e.substr(7)),-1!==(a=e.indexOf('?'))&&(e=e.substr(0,a)),-1!==(a=e.indexOf('#'))&&(e=e.substr(0,a)),window.twi.saveFile(e,t));return i(null),!0},t.prototype.info={name:'andtidwiki',priority:1600,capabilities:['save','autosave','download']},exports.canSave=function(e){return!!window.twi&&!!window.twi.saveFile},exports.create=function(e){return new t}}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/savers/beaker.js":{"text":"!function(){'use strict';function e(t){this.wiki=t}e.prototype.save=function(e,t,n){var i=new DatArchive(''+window.location),o=(''+window.location.pathname).split('#')[0];return i.stat(o).then(function(t){t.isDirectory()&&(o+='/index.html'),i.writeFile(o,e,'utf8').then(function(t){n(null)},function(t){n('Beaker Saver Write Error: '+t)})},function(t){n('Beaker Saver Stat Error: '+t)}),!0},e.prototype.info={name:'beaker',priority:3e3,capabilities:['save','autosave']},exports.canSave=function(t){return!!window.DatArchive&&'dat:'===location.protocol},exports.create=function(t){return new e(t)}}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/savers/custom.js":{"text":"!function(){'use strict';function t(t){try{return t&&t.$tw&&t.$tw.customSaver}catch(t){return console.log({msg:'custom saver is disabled',reason:t}),null}}function e(t){}var r=t(window)||t(window.parent)||{};e.prototype.save=function(t,e,n){return r.save(t,e,n)},e.prototype.info={name:'custom',priority:r.priority||4e3,capabilities:['save','autosave']},exports.canSave=function(t){return!!r.save},exports.create=function(t){return new e}}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/savers/download.js":{"text":"!function(){'use strict';function t(e){}t.prototype.save=function(e,t,o,n){var a=(n=n||{}).variables.filename;a||-1!==(r=document.location.pathname.lastIndexOf('/'))&&(a=decodeURIComponent(document.location.pathname.substr(r+1))),a=a||'tiddlywiki.html';var r,n=document.createElement('a');return void 0!==Blob?(r=new Blob([e],{type:'text/html'}),n.setAttribute('href',URL.createObjectURL(r))):n.setAttribute('href','data:text/html,'+encodeURIComponent(e)),n.setAttribute('download',a),document.body.appendChild(n),n.click(),document.body.removeChild(n),o(null),!0},t.prototype.info={name:'download',priority:100},Object.defineProperty(t.prototype.info,'capabilities',{get:function(){var e=['save','download'];return'yes'===($tw.wiki.getTextReference('$:/config/DownloadSaver/AutoSave')||'').toLowerCase()&&e.push('autosave'),e}}),exports.canSave=function(e){return void 0!==document.createElement('a').download},exports.create=function(e){return new t}}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/savers/fsosaver.js":{"text":"!function(){'use strict';function e(t){}e.prototype.save=function(t,e,n){var i=unescape(document.location.pathname);if(/^\\/[A-Z]\\:\\\\[^\\\\]+/i.test(i))i=i.substr(1);else{if(''===document.location.hostname||!/^\\/\\\\[^\\\\]+\\\\[^\\\\]+/i.test(i))return!1;i=i.substr(1),i='\\\\\\\\'+document.location.hostname+i}i=new ActiveXObject('Scripting.FileSystemObject').OpenTextFile(i,2,-1,-1);return i.Write(t),i.Close(),n(null),!0},e.prototype.info={name:'FSOSaver',priority:120,capabilities:['save','autosave']},exports.canSave=function(t){try{return'file:'===window.location.protocol&&!!new ActiveXObject('Scripting.FileSystemObject')}catch(t){return!1}},exports.create=function(t){return new e}}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/savers/gitea.js":{"text":"!function(){'use strict';function e(t){this.wiki=t}e.prototype.save=function(r,t,o){var u=this,e=this.wiki.getTiddlerText('$:/Gitea/Username'),i=$tw.utils.getPassword('Gitea'),c=this.wiki.getTiddlerText('$:/Gitea/Repo'),a=this.wiki.getTiddlerText('$:/Gitea/Path',''),l=this.wiki.getTiddlerText('$:/Gitea/Filename'),p=this.wiki.getTiddlerText('$:/Gitea/Branch')||'master',h=this.wiki.getTiddlerText('$:/Gitea/ServerURL')||'https://gitea',d={Accept:'application/json','Content-Type':'application/json;charset=UTF-8',Authorization:'token '+i};if(!(e&&i&&c&&l))return!1;'/'!==a.substring(0,1)&&(a='/'+a),'/'!==a.substring(a.length-1)&&(a+='/');var g=h+'/repos/'+c+'/contents'+a;return $tw.utils.httpRequest({url:g,type:'GET',headers:d,data:{ref:p},callback:function(t,e,i){var a='';if(t&&404!==i.status)return o(t);var s=!0;404!==i.status&&(e=JSON.parse(e),$tw.utils.each(e,function(t){t.name===l&&(a=t.sha)}),''===a&&(s=!1));var n={message:$tw.language.getRawString('ControlPanel/Saving/GitService/CommitMessage'),content:$tw.utils.base64Encode(r),sha:a};$tw.utils.httpRequest({url:h+'/repos/'+c+'/branches/'+p,type:'GET',headers:d,callback:function(t,e,i){404===i.status?o('Please ensure the branch in the Gitea repo exists'):(n.branch=p,u.upload(g+l,s?'PUT':'POST',d,n,o))}})}}),!0},e.prototype.upload=function(t,e,i,a,s){$tw.utils.httpRequest({url:t,type:e,headers:i,data:JSON.stringify(a),callback:function(t,e,i){if(t)return s(t);JSON.parse(e);s(null)}})},e.prototype.info={name:'Gitea',priority:2e3,capabilities:['save','autosave']},exports.canSave=function(t){return!0},exports.create=function(t){return new e(t)}}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/savers/github.js":{"text":"!function(){'use strict';function e(t){this.wiki=t}e.prototype.save=function(r,t,s){var e=this.wiki.getTiddlerText('$:/GitHub/Username'),i=$tw.utils.getPassword('github'),a=this.wiki.getTiddlerText('$:/GitHub/Repo'),n=this.wiki.getTiddlerText('$:/GitHub/Path',''),u=this.wiki.getTiddlerText('$:/GitHub/Filename'),o=this.wiki.getTiddlerText('$:/GitHub/Branch')||'main',c=this.wiki.getTiddlerText('$:/GitHub/ServerURL')||'https://api.github.com',l={Accept:'application/vnd.github.v3+json','Content-Type':'application/json;charset=UTF-8',Authorization:'Basic '+window.btoa(e+':'+i),'If-None-Match':''};if(!(e&&i&&a&&u))return!1;'/'!==n.substring(0,1)&&(n='/'+n),'/'!==n.substring(n.length-1)&&(n+='/');var h=c+'/repos/'+a+'/contents'+n;return $tw.utils.httpRequest({url:h,type:'GET',headers:l,data:{ref:o},callback:function(t,e,i){var a='';if(t&&404!==i.status)return s(t);404!==i.status&&(n=JSON.parse(e),$tw.utils.each(n,function(t){t.name===u&&(a=t.sha)}));var n={message:$tw.language.getRawString('ControlPanel/Saving/GitService/CommitMessage'),content:$tw.utils.base64Encode(r),branch:o,sha:a};$tw.utils.httpRequest({url:h+u,type:'PUT',headers:l,data:JSON.stringify(n),callback:function(t,e,i){if(t)return s(t);JSON.parse(e);s(null)}})}}),!0},e.prototype.info={name:'github',priority:2e3,capabilities:['save','autosave']},exports.canSave=function(t){return!0},exports.create=function(t){return new e(t)}}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/savers/gitlab.js":{"text":"!function(){'use strict';function e(t){this.wiki=t}e.prototype.save=function(s,t,o){var e=this.wiki.getTiddlerText('$:/GitLab/Username'),i=$tw.utils.getPassword('gitlab'),a=this.wiki.getTiddlerText('$:/GitLab/Repo'),c=this.wiki.getTiddlerText('$:/GitLab/Path',''),l=this.wiki.getTiddlerText('$:/GitLab/Filename'),p=this.wiki.getTiddlerText('$:/GitLab/Branch')||'master',n=this.wiki.getTiddlerText('$:/GitLab/ServerURL')||'https://gitlab.com/api/v4',u={'Content-Type':'application/json;charset=UTF-8','Private-Token':i};if(!(e&&i&&a&&l))return!1;'/'!==c.substring(0,1)&&(c='/'+c),'/'!==c.substring(c.length-1)&&(c+='/');var g=n+'/projects/'+encodeURIComponent(a)+'/repository/';return $tw.utils.httpRequest({url:g+'tree/?path='+encodeURIComponent(c.replace(/^\\/+|\\/$/g,''))+'&branch='+encodeURIComponent(p.replace(/^\\/+|\\/$/g,'')),type:'GET',headers:u,callback:function(t,e,i){var a='';if(t&&404!==i.status)return o(t);var n='POST';404!==i.status&&(r=JSON.parse(e),$tw.utils.each(r,function(t){t.name===l&&(n='PUT',a=t.sha)}));var r={commit_message:$tw.language.getRawString('ControlPanel/Saving/GitService/CommitMessage'),content:s,branch:p,sha:a};$tw.utils.httpRequest({url:g+'files/'+encodeURIComponent(c.replace(/^\\/+/,'')+l),type:n,headers:u,data:JSON.stringify(r),callback:function(t,e,i){if(t)return o(t);JSON.parse(e);o(null)}})}}),!0},e.prototype.info={name:'gitlab',priority:2e3,capabilities:['save','autosave']},exports.canSave=function(t){return!0},exports.create=function(t){return new e(t)}}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/savers/hyperdrive.js":{"text":"!function(){'use strict';function r(e){this.wiki=e}r.prototype.save=function(r,e,t){var i=beaker.hyperdrive.drive(''+window.location),n=(''+window.location.pathname).split('#')[0];return i.stat(n).then(function(e){e.isDirectory()&&(n+='/index.html'),i.writeFile(n,r,'utf8').then(function(e){t(null)},function(e){t('Hyperdrive Saver Write Error: '+e)})},function(e){t('Hyperdrive Saver Stat Error: '+e)}),!0},r.prototype.info={name:'beaker-1.x',priority:3e3,capabilities:['save','autosave']},exports.canSave=function(e){return!!window.beaker&&!!beaker.hyperdrive&&'hyper:'===location.protocol},exports.create=function(e){return new r(e)}}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/savers/manualdownload.js":{"text":"!function(){'use strict';function o(n){}o.prototype.save=function(n,o,t){return $tw.modal.display('$:/language/Modals/Download',{downloadLink:'data:text/html,'+encodeURIComponent(n)}),t(null),!0},o.prototype.info={name:'manualdownload',priority:0,capabilities:['save','download']},exports.canSave=function(n){return!0},exports.create=function(n){return new o}}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/savers/msdownload.js":{"text":"!function(){'use strict';function n(t){}n.prototype.save=function(t,n,o){var e='tiddlywiki.html',a=document.location.pathname.lastIndexOf('/');-1!==a&&(e=document.location.pathname.substr(a+1));t=new Blob([t],{type:'text/html'});return window.navigator.msSaveBlob(t,e),o(null),!0},n.prototype.info={name:'msdownload',priority:110,capabilities:['save','download']},exports.canSave=function(t){return!!window.navigator.msSaveBlob},exports.create=function(t){return new n}}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/savers/put.js":{"text":"!function(){'use strict';function a(n){$tw.utils.httpRequest({url:n.uri(),type:'HEAD',headers:{Accept:'*/*;charset=UTF-8'},callback:function(t,e,r){t||(r=r.getResponseHeader('ETag'))&&(n.etag=r.replace(/^W\\//,''))}})}function e(t){this.wiki=t;var n=this,t=this.uri();$tw.utils.httpRequest({url:t,type:'OPTIONS',callback:function(t,e,r){t||(n.serverAcceptsPuts=200===r.status&&!!r.getResponseHeader('dav'))}}),a(this)}e.prototype.uri=function(){return document.location.toString().split('#')[0]},e.prototype.save=function(t,e,s){if(!this.serverAcceptsPuts)return!1;var i=this,r={'Content-Type':'text/html;charset=UTF-8'};return this.etag&&(r['If-Match']=this.etag),$tw.utils.httpRequest({url:this.uri(),type:'PUT',headers:r,data:t,callback:function(t,e,r){var n;t?412===Number(t.substring(t.indexOf(':')+2,t.length))?(n=$tw.language.getString('Error/EditConflict'),s(n)):s(t):(i.etag=r.getResponseHeader('ETag'),null==i.etag&&a(i),s(null))}}),!0},e.prototype.info={name:'put',priority:2e3,capabilities:['save','autosave']},exports.canSave=function(t){return/^https?:/.test(location.protocol)},exports.create=function(t){return new e(t)}}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/savers/tiddlyfox.js":{"text":"!function(){'use strict';function t(e){}t.prototype.save=function(e,t,n){var i=document.getElementById('tiddlyfox-message-box');if(i){var a=document.location.toString().split('#')[0];0===a.indexOf('file://localhost/')&&(a='file://'+a.substr(16)),a=/^file\\:\\/\\/\\/[A-Z]\\:\\//i.test(a)?a.substr(8).replace(/\\//g,'\\\\'):0===a.indexOf('file://///')?'\\\\\\\\'+unescape(a.substr(10)).replace(/\\//g,'\\\\'):0===a.indexOf('file:///')?unescape(a.substr(7)):0===a.indexOf('file:/')?unescape(a.substr(5)):'\\\\\\\\'+unescape(a.substr(7)).replace(new RegExp('/','g'),'\\\\');var s=document.createElement('div');s.setAttribute('data-tiddlyfox-path',decodeURIComponent(a)),s.setAttribute('data-tiddlyfox-content',e),i.appendChild(s),s.addEventListener('tiddlyfox-have-saved-file',function(e){n(null)},!1);i=document.createEvent('Events');return i.initEvent('tiddlyfox-save-file',!0,!1),s.dispatchEvent(i),!0}return!1},t.prototype.info={name:'tiddlyfox',priority:1500,capabilities:['save','autosave']},exports.canSave=function(e){return!0},exports.create=function(e){return new t}}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/savers/tiddlyie.js":{"text":"!function(){'use strict';function t(e){}t.prototype.save=function(e,t,n){if(void 0===window.TiddlyIE)return!1;var o=unescape(document.location.pathname);if(/^\\/[A-Z]\\:\\/[^\\/]+/i.test(o))o=(o=o.substr(1)).replace(/\\//g,'\\\\');else{if(''===document.hostname||!/^\\/[^\\/]+\\/[^\\/]+/i.test(o))return!1;o=o.replace(/\\//g,'\\\\'),o='\\\\\\\\'+document.location.hostname+o}return window.TiddlyIE.save(o,e),n(null),!0},t.prototype.info={name:'tiddlyiesaver',priority:1500,capabilities:['save']},exports.canSave=function(e){return'file:'===window.location.protocol},exports.create=function(e){return new t}}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/savers/twedit.js":{"text":"!function(){'use strict';function e(t){}e.prototype.save=function(e,t,n){if('object'!=typeof DeviceInfo)return!1;var o=decodeURIComponent(document.location.pathname),i=o.indexOf('?');-1!==i&&(o=o.substr(0,i)),-1!==(i=o.indexOf('#'))&&(o=o.substr(0,i));i='/Documents';0===o.indexOf(i)&&(o=o.substr(i.length));function r(t){n($tw.language.getString('Error/SavingToTWEdit')+': '+t.target.error.code)}return window.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(t){t.root.getFile(o,{create:!0},function(t){t.createWriter(function(t){t.onerror=r,t.onwrite=function(){n(null)},t.position=0,t.write(e)},r)},r)},r),!0},e.prototype.info={name:'twedit',priority:1600,capabilities:['save','autosave']},exports.canSave=function(t){return!0},exports.create=function(t){return new e},$tw.browser&&(window.version={title:'TiddlyWiki'})}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/savers/upload.js":{"text":"!function(){'use strict';function e(t){this.wiki=t}e.prototype.save=function(t,e,n){var i=this.wiki.getTextReference('$:/UploadBackupDir')||'.',r=this.wiki.getTextReference('$:/UploadName'),a=$tw.utils.getPassword('upload'),o=this.wiki.getTextReference('$:/UploadDir')||'.',s=this.wiki.getTextReference('$:/UploadFilename')||'index.html',p=this.wiki.getTextReference('$:/UploadWithUrlOnly')||'no',u=this.wiki.getTextReference('$:/UploadURL');if('yes'===p){if(!u||''===u.toString().trim())return!1}else if(!r||''===r.toString().trim()||!a||''===a.toString().trim())return!1;u=u||'http://'+r+'.tiddlyspot.com/store.cgi';var l='---------------------------AaB03x',p=[];p.push('--'+l+'\\r\\nContent-disposition: form-data; name=\"UploadPlugin\"\\r\\n'),p.push('backupDir='+i+';user='+r+';password='+a+';uploaddir='+o+';;'),p.push('\\r\\n--'+l),p.push('Content-disposition: form-data; name=\"userfile\"; filename=\"'+s+'\"'),p.push('Content-Type: text/html;charset=UTF-8'),p.push('Content-Length: '+t.length+'\\r\\n'),p.push('');var d=p.join('\\r\\n')+t+'\\r\\n-----------------------------AaB03x--\\r\\n',c=new XMLHttpRequest;c.open('POST',u,!0,r,a),c.setRequestHeader('Content-Type','multipart/form-data; charset=UTF-8; boundary='+l),c.onreadystatechange=function(){4==c.readyState&&200==c.status&&('0 - '===c.responseText.substr(0,4)?n(null):n(c.responseText))};try{c.send(d)}catch(t){return n($tw.language.getString('Error/Caption')+':'+t)}return $tw.notifier.display('$:/language/Notifications/Save/Starting'),!0},e.prototype.info={name:'upload',priority:2e3,capabilities:['save','autosave']},exports.canSave=function(t){return!0},exports.create=function(t){return new e(t)}}();","type":"application/javascript","module-type":"saver"},"$:/core/modules/server/authenticators/basic.js":{"text":"!function(){'use strict';var r,s;function e(e){this.server=e,this.credentialsData=[]}$tw.node&&(require('util'),r=require('fs'),require('url'),s=require('path')),e.prototype.init=function(){if(this.credentialsFilepath=this.server.get('credentials'),this.credentialsFilepath){var e=s.resolve(this.server.boot.wikiPath,this.credentialsFilepath);if(!r.existsSync(e)||r.statSync(e).isDirectory())return'Error: Unable to load user credentials from \\''+e+'\\'';var t=r.readFileSync(e,'utf8'),t=$tw.utils.parseCsvStringWithHeader(t);if('string'==typeof t)return'Error: '+t+' reading credentials from \\''+e+'\\'';this.credentialsData=t}return this.server.get('username')&&this.server.get('password')&&(this.credentialsData=this.credentialsData||[],this.credentialsData.push({username:this.server.get('username'),password:this.server.get('password')})),0<this.credentialsData.length},e.prototype.authenticateRequest=function(e,t,r){e=e.headers.authorization||'';if(!e&&r.allowAnon)return!0;var e=e.split(/\\s+/).pop()||'',e=$tw.utils.base64Decode(e).split(/:/),s=e[0],i=e[1];return this.credentialsData.find(function(e){return e.username===s&&e.password===i})?(r.authenticatedUsername=s,!0):(t.writeHead(401,'Authentication required',{'WWW-Authenticate':'Basic realm=\"Please provide your username and password to login to '+r.server.servername+'\"'}),t.end(),!1)},exports.AuthenticatorClass=e}();","type":"application/javascript","module-type":"authenticator"},"$:/core/modules/server/authenticators/header.js":{"text":"!function(){'use strict';function e(e){this.server=e,this.header=e.get('authenticated-user-header')?e.get('authenticated-user-header').toLowerCase():void 0}e.prototype.init=function(){return!!this.header},e.prototype.authenticateRequest=function(e,t,r){e=e.headers[this.header];return e||r.allowAnon?(r.authenticatedUsername=e,!0):(t.writeHead(401,'Authorization header required to login to \\''+r.server.servername+'\\''),t.end(),!1)},exports.AuthenticatorClass=e}();","type":"application/javascript","module-type":"authenticator"},"$:/core/modules/server/routes/delete-tiddler.js":{"text":"!function(){'use strict';exports.method='DELETE',exports.path=/^\\/bags\\/default\\/tiddlers\\/(.+)$/,exports.handler=function(e,t,d){var n=decodeURIComponent(d.params[0]);d.wiki.deleteTiddler(n),t.writeHead(204,'OK',{'Content-Type':'text/plain'}),t.end()}}();","type":"application/javascript","module-type":"route"},"$:/core/modules/server/routes/get-favicon.js":{"text":"!function(){'use strict';exports.method='GET',exports.path=/^\\/favicon.ico$/,exports.handler=function(e,t,i){t.writeHead(200,{'Content-Type':'image/x-icon'});i=i.wiki.getTiddlerText('$:/favicon.ico','');t.end(i,'base64')}}();","type":"application/javascript","module-type":"route"},"$:/core/modules/server/routes/get-file.js":{"text":"!function(){'use strict';exports.method='GET',exports.path=/^\\/files\\/(.+)$/,exports.handler=function(e,i,t){var o=require('path'),n=require('fs'),r=(require('util'),decodeURIComponent(t.params[0])),a=o.resolve(t.boot.wikiPath,'files',r),s=o.extname(a);n.readFile(a,function(e,t){var o,n='text/plain';e?(console.log('Error accessing file '+a+': '+e.toString()),o=404,t='File \\''+r+'\\' not found'):(o=200,n=$tw.config.fileExtensionInfo[s]?$tw.config.fileExtensionInfo[s].type:'application/octet-stream'),i.writeHead(o,{'Content-Type':n}),i.end(t)})}}();","type":"application/javascript","module-type":"route"},"$:/core/modules/server/routes/get-index.js":{"text":"!function(){'use strict';var d=require('zlib');exports.method='GET',exports.path=/^\\/$/,exports.handler=function(e,t,r){var n=(n=e.headers['accept-encoding'])||'',o=r.wiki.renderTiddler(r.server.get('root-render-type'),r.server.get('root-tiddler')),e={'Content-Type':r.server.get('root-serve-type')};r.server.enableGzip&&(/\\bdeflate\\b/.test(n)?(e['Content-Encoding']='deflate',o=d.deflateSync(o)):/\\bgzip\\b/.test(n)&&(e['Content-Encoding']='gzip',o=d.gzipSync(o))),t.writeHead(200,e),t.end(o)}}();","type":"application/javascript","module-type":"route"},"$:/core/modules/server/routes/get-login-basic.js":{"text":"!function(){'use strict';exports.method='GET',exports.path=/^\\/login-basic$/,exports.handler=function(e,t,a){var r;a.authenticatedUsername?(r=$tw.syncadaptor&&$tw.syncadaptor.host?$tw.syncadaptor.host:'/',t.writeHead(302,{Location:r})):t.writeHead(401,{'WWW-Authenticate':'Basic realm=\"Please provide your username and password to login to '+a.server.servername+'\"'}),t.end()}}();","type":"application/javascript","module-type":"route"},"$:/core/modules/server/routes/get-status.js":{"text":"!function(){'use strict';exports.method='GET',exports.path=/^\\/status$/,exports.handler=function(e,t,n){t.writeHead(200,{'Content-Type':'application/json'});n=JSON.stringify({username:n.authenticatedUsername||n.server.get('anon-username')||'',anonymous:!n.authenticatedUsername,read_only:!n.server.isAuthorized('writers',n.authenticatedUsername),sse_enabled:'yes'===n.server.get('sse-enabled'),space:{recipe:'default'},tiddlywiki_version:$tw.version});t.end(n,'utf8')}}();","type":"application/javascript","module-type":"route"},"$:/core/modules/server/routes/get-tiddler-html.js":{"text":"!function(){'use strict';exports.method='GET',exports.path=/^\\/([^\\/]+)$/,exports.handler=function(e,r,t){var d,i=decodeURIComponent(t.params[0]),n=t.wiki.getTiddler(i);n?(d=n.getFieldString('_render_type'),n=n.getFieldString('_render_template'),n=t.wiki.isSystemTiddler(i)?(d=d||t.server.get('system-tiddler-render-type'),n||t.server.get('system-tiddler-render-template')):(d=d||t.server.get('tiddler-render-type'),n||t.server.get('tiddler-render-template')),i=t.wiki.renderTiddler(d,n,{parseAsInline:!0,variables:{currentTiddler:i}}),r.writeHead(200),r.end(i,'utf8')):(r.writeHead(404),r.end())}}();","type":"application/javascript","module-type":"route"},"$:/core/modules/server/routes/get-tiddler.js":{"text":"!function(){'use strict';exports.method='GET',exports.path=/^\\/recipes\\/default\\/tiddlers\\/(.+)$/,exports.handler=function(e,i,t){var d=decodeURIComponent(t.params[0]),n=t.wiki.getTiddler(d),r={},s=['bag','created','creator','modified','modifier','permissions','recipe','revision','tags','text','title','type','uri'];n?($tw.utils.each(n.fields,function(e,i){var t=n.getFieldString(i);-1!==s.indexOf(i)?r[i]=t:(r.fields=r.fields||{},r.fields[i]=t)}),r.revision=t.wiki.getChangeCount(d),r.bag='default',r.type=r.type||'text/vnd.tiddlywiki',i.writeHead(200,{'Content-Type':'application/json'}),i.end(JSON.stringify(r),'utf8')):(i.writeHead(404),i.end())}}();","type":"application/javascript","module-type":"route"},"$:/core/modules/server/routes/get-tiddlers-json.js":{"text":"!function(){'use strict';exports.method='GET',exports.path=/^\\/recipes\\/default\\/tiddlers.json$/,exports.handler=function(e,t,i){var r=i.queryParameters.filter||'[all[tiddlers]!is[system]sort[title]]';if('yes'!==i.wiki.getTiddlerText('$:/config/Server/AllowAllExternalFilters')&&'yes'!==i.wiki.getTiddlerText('$:/config/Server/ExternalFilters/'+r))return console.log('Blocked attempt to GET /recipes/default/tiddlers.json with filter: '+r),t.writeHead(403),void t.end();'no'===i.wiki.getTiddlerText('$:/config/SyncSystemTiddlersFromServer')&&(r+='+[!is[system]]');var l=(i.queryParameters.exclude||'text').split(','),r=i.wiki.filterTiddlers(r);t.writeHead(200,{'Content-Type':'application/json'});var s=[];$tw.utils.each(r,function(e){var t=i.wiki.getTiddler(e);t&&((t=t.getFieldStrings({exclude:l})).revision=i.wiki.getChangeCount(e),t.type=t.type||'text/vnd.tiddlywiki',s.push(t))});r=JSON.stringify(s);t.end(r,'utf8')}}();","type":"application/javascript","module-type":"route"},"$:/core/modules/server/routes/put-tiddler.js":{"text":"!function(){'use strict';exports.method='PUT',exports.path=/^\\/recipes\\/default\\/tiddlers\\/(.+)$/,exports.handler=function(e,t,i){var d=decodeURIComponent(i.params[0]),n=JSON.parse(i.data);n.fields&&($tw.utils.each(n.fields,function(e,t){n[t]=e}),delete n.fields),n.revision&&delete n.revision,i.wiki.addTiddler(new $tw.Tiddler(i.wiki.getCreationFields(),n,{title:d},i.wiki.getModificationFields()));i=i.wiki.getChangeCount(d).toString();t.writeHead(204,'OK',{Etag:'\"default/'+encodeURIComponent(d)+'/'+i+':\"','Content-Type':'text/plain'}),t.end()}}();","type":"application/javascript","module-type":"route"},"$:/core/modules/server/server-sent-events.js":{"text":"!function(){'use strict';function i(e,t){this.handler=t,this.prefix=e}i.prototype.getExports=function(){return{bodyFormat:'stream',method:'GET',path:new RegExp('^/events/'+this.prefix+'$'),handler:this.handleEventRequest.bind(this)}},i.prototype.handleEventRequest=function(e,t,n){i.prototype.isEventStreamRequest(e)?(t.writeHead(200,{'Content-Type':'text/event-stream','Cache-Control':'no-cache',Connection:'keep-alive'}),this.handler(e,n,this.emit.bind(this,t),this.end.bind(this,t))):(t.writeHead(406,'Not Acceptable',{}),t.end())},i.prototype.isEventStreamRequest=function(e){return e.headers.accept&&e.headers.accept.match(/^text\\/event-stream/)},i.prototype.emit=function(e,t,n){if('string'!=typeof t||-1!==t.indexOf('\\n'))throw new Error('Type must be a single-line string');if('string'!=typeof n||-1!==n.indexOf('\\n'))throw new Error('Data must be a single-line string');e.write('event: '+t+'\\ndata: '+n+'\\n\\n','utf8')},i.prototype.end=function(e){e.end()},exports.ServerSentEvents=i}();","type":"application/javascript","module-type":"library"},"$:/core/modules/server/server.js":{"text":"!function(){'use strict';var o,n,a,d;function t(t){var i=this;if(this.routes=t.routes||[],this.authenticators=t.authenticators||[],this.wiki=t.wiki,this.boot=t.boot||$tw.boot,this.servername=$tw.utils.transliterateToSafeASCII(this.wiki.getTiddlerText('$:/SiteTitle')||'TiddlyWiki5'),this.variables=$tw.utils.extend({},this.defaultVariables),t.variables)for(var e in t.variables)t.variables[e]&&(this.variables[e]=t.variables[e]);$tw.utils.extend({},this.defaultVariables,t.variables),this.csrfDisable='yes'===this.get('csrf-disable'),this.enableGzip='yes'===this.get('gzip');var r=this.get('username')&&this.get('password')?this.get('username'):'(anon)';this.authorizationPrincipals={readers:(this.get('readers')||r).split(',').map($tw.utils.trim),writers:(this.get('writers')||r).split(',').map($tw.utils.trim)},$tw.modules.forEachModuleOfType('authenticator',function(t,e){i.addAuthenticator(e.AuthenticatorClass)}),$tw.modules.forEachModuleOfType('route',function(t,e){i.addRoute(e)}),this.listenOptions=null,this.protocol='http';var s=this.get('tls-key'),r=this.get('tls-cert');r&&s&&(this.listenOptions={key:o.readFileSync(a.resolve(this.boot.wikiPath,s),'utf8'),cert:o.readFileSync(a.resolve(this.boot.wikiPath,r),'utf8')},this.protocol='https'),this.transport=require(this.protocol)}$tw.node&&(require('util'),o=require('fs'),n=require('url'),a=require('path'),d=require('querystring')),t.prototype.defaultVariables={port:'8080',host:'127.0.0.1','root-tiddler':'$:/core/save/all','root-render-type':'text/plain','root-serve-type':'text/html','tiddler-render-type':'text/html','tiddler-render-template':'$:/core/templates/server/static.tiddler.html','system-tiddler-render-type':'text/plain','system-tiddler-render-template':'$:/core/templates/wikified-tiddler','debug-level':'none',gzip:'no'},t.prototype.get=function(t){return this.variables[t]},t.prototype.addRoute=function(t){this.routes.push(t)},t.prototype.addAuthenticator=function(t){var e=new t(this),t=e.init();'string'==typeof t?$tw.utils.error('Error: '+t):t&&this.authenticators.push(e)},t.prototype.findMatchingRoute=function(t,e){for(var i=0;i<this.routes.length;i++){var r=this.routes[i],s=(r.path,e.urlInfo.pathname),o=e.pathPrefix?s.substr(0,e.pathPrefix.length)===e.pathPrefix&&(s=s.substr(e.pathPrefix.length)||'/',r.path.exec(s)):r.path.exec(s);if(o&&t.method===r.method){e.params=[];for(var a=1;a<o.length;a++)e.params.push(o[a]);return r}}return null},t.prototype.methodMappings={GET:'readers',OPTIONS:'readers',HEAD:'readers',PUT:'writers',POST:'writers',DELETE:'writers'},t.prototype.isAuthorized=function(t,e){t=this.authorizationPrincipals[t]||[];return-1!==t.indexOf('(anon)')||e&&(-1!==t.indexOf('(authenticated)')||-1!==t.indexOf(e))},t.prototype.requestHandler=function(t,e,i){i=i||{};var r=this,s={};s.wiki=i.wiki||r.wiki,s.boot=i.boot||r.boot,s.server=r,s.urlInfo=n.parse(t.url),s.queryParameters=d.parse(s.urlInfo.query),s.pathPrefix=i.pathPrefix||this.get('path-prefix')||'';i=this.methodMappings[t.method]||'readers';if(!this.csrfDisable&&'writers'===i&&'TiddlyWiki'!==t.headers['x-requested-with'])return e.writeHead(403,'\\'X-Requested-With\\' header required to login to \\''+this.servername+'\\''),void e.end();if(s.allowAnon=this.isAuthorized(i,null),!(0<this.authenticators.length)||this.authenticators[0].authenticateRequest(t,e,s)){if(!this.isAuthorized(i,s.authenticatedUsername))return e.writeHead(401,'\\''+s.authenticatedUsername+'\\' is not authorized to access \\''+this.servername+'\\''),void e.end();var o,a=r.findMatchingRoute(t,s);if('none'!==r.get('debug-level')&&(console.log('Request path:',JSON.stringify(s.urlInfo)),console.log('Request headers:',JSON.stringify(t.headers)),console.log('authenticatedUsername:',s.authenticatedUsername)),!a)return e.writeHead(404),void e.end();'stream'===a.bodyFormat||'GET'===t.method||'HEAD'===t.method?a.handler(t,e,s):'string'!==a.bodyFormat&&a.bodyFormat?'buffer'===a.bodyFormat?(o=[],t.on('data',function(t){o.push(t)}),t.on('end',function(){s.data=Buffer.concat(o),a.handler(t,e,s)})):(e.writeHead(400,'Invalid bodyFormat '+a.bodyFormat+' in route '+a.method+' '+a.path.source),e.end()):(t.setEncoding('utf8'),o='',t.on('data',function(t){o+=t.toString()}),t.on('end',function(){s.data=o,a.handler(t,e,s)}))}},t.prototype.listen=function(t,e,i){var r,s=this;return t=t||this.get('port'),e=e||this.get('host'),i=i||this.get('path-prefix')||'',parseInt(t,10).toString()!==t&&(t=process.env[t]||8080),this.wiki.getTiddler('$:/plugins/tiddlywiki/tiddlyweb')&&this.wiki.getTiddler('$:/plugins/tiddlywiki/filesystem')||$tw.utils.warning('Warning: Plugins required for client-server operation (\"tiddlywiki/filesystem\" and \"tiddlywiki/tiddlyweb\") are missing from tiddlywiki.info file'),(r=this.listenOptions?this.transport.createServer(this.listenOptions,this.requestHandler.bind(this)):this.transport.createServer(this.requestHandler.bind(this))).on('listening',function(){var t=r.address();$tw.utils.log('Serving on '+s.protocol+'://'+t.address+':'+t.port+i,'brown/orange'),$tw.utils.log('(press ctrl-C to exit)','red')}),r.listen(t,e)},exports.Server=t}();","type":"application/javascript","module-type":"library"},"$:/core/modules/browser-messaging.js":{"text":"!function(){'use strict';function e(t,e){if(r=$tw.browserMessaging.iframeInfoMap[t])e(null,r);else{var i=document.createElement('iframe'),r={url:t,status:'loading',domNode:i};o($tw.browserMessaging.iframeInfoMap[t]=r),i.style.display='none',i.setAttribute('library','true'),document.body.appendChild(i),i.onload=function(){r.status='loaded',o(r),e(null,r)},i.onerror=function(){e('Cannot load iframe')};try{i.src=t}catch(t){e(t)}}}function o(t){$tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getCreationFields(),{title:'$:/temp/ServerConnection/'+t.url,text:t.status,tags:['$:/tags/ServerConnection'],url:t.url},$tw.wiki.getModificationFields()))}exports.name='browser-messaging',exports.platforms=['browser'],exports.after=['startup'],exports.synchronous=!0,exports.startup=function(){$tw.browserMessaging={iframeInfoMap:{}},$tw.rootWidget.addEventListener('tm-load-plugin-library',function(t){var i=t.paramObject||{},r=i.url;r&&e(r,function(t,e){t?alert($tw.language.getString('Error/LoadingPluginLibrary')+': '+r):e.domNode.contentWindow.postMessage({verb:'GET',url:'recipes/library/tiddlers.json',cookies:{type:'save-info',infoTitlePrefix:i.infoTitlePrefix||'$:/temp/RemoteAssetInfo/',url:r}},'*')})}),$tw.rootWidget.addEventListener('tm-unload-plugin-library',function(t){var e,t=(t.paramObject||{}).url;$tw.browserMessaging.iframeInfoMap[t]=void 0,t&&(e=t,$tw.utils.each(document.getElementsByTagName('iframe'),function(t){'true'===t.getAttribute('library')&&t.getAttribute('src')===e&&t.parentNode.removeChild(t)}),$tw.utils.each($tw.wiki.filterTiddlers('[[$:/temp/ServerConnection/'+t+']] [prefix[$:/temp/RemoteAssetInfo/'+t+'/]]'),function(t){$tw.wiki.deleteTiddler(t)}))}),$tw.rootWidget.addEventListener('tm-load-plugin-from-library',function(t){var t=t.paramObject||{},i=t.url,r=t.title;i&&r&&e(i,function(t,e){t?alert($tw.language.getString('Error/LoadingPluginLibrary')+': '+i):e.domNode.contentWindow.postMessage({verb:'GET',url:'recipes/library/tiddlers/'+encodeURIComponent(r)+'.json',cookies:{type:'save-tiddler',url:i}},'*')})}),window.addEventListener('message',function(e){var t;'GET-RESPONSE'===e.data.verb&&'2'===e.data.status.charAt(0)&&e.data.cookies&&('save-info'===e.data.cookies.type?(t=JSON.parse(e.data.body),$tw.utils.each(t,function(t){$tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getCreationFields(),t,{title:e.data.cookies.infoTitlePrefix+e.data.cookies.url+'/'+t.title,'original-title':t.title,text:'',type:'text/vnd.tiddlywiki','original-type':t.type,'plugin-type':void 0,'original-plugin-type':t['plugin-type'],'module-type':void 0,'original-module-type':t['module-type'],tags:['$:/tags/RemoteAssetInfo'],'original-tags':$tw.utils.stringifyList(t.tags||[]),'server-url':e.data.cookies.url},$tw.wiki.getModificationFields()))})):'save-tiddler'===e.data.cookies.type&&(t=JSON.parse(e.data.body),$tw.wiki.addTiddler(new $tw.Tiddler(t))))},!1)}}();","type":"application/javascript","module-type":"startup"},"$:/core/modules/startup/commands.js":{"text":"!function(){'use strict';exports.name='commands',exports.platforms=['node'],exports.after=['story'],exports.synchronous=!1,exports.startup=function(t){new $tw.Commander($tw.boot.argv,function(r){if(r)return $tw.utils.error('Error: '+r);t()},$tw.wiki,{output:process.stdout,error:process.stderr}).execute()}}();","type":"application/javascript","module-type":"startup"},"$:/core/modules/startup/favicon.js":{"text":"!function(){'use strict';exports.name='favicon',exports.platforms=['browser'],exports.after=['startup'],exports.synchronous=!0;var e='$:/favicon.ico';function i(){var t=$tw.wiki.getTiddler(e);t&&document.getElementById('faviconLink').setAttribute('href',$tw.utils.makeDataUri(t.fields.text,t.fields.type,t.fields._canonical_uri))}exports.startup=function(){i(),$tw.wiki.addEventListener('change',function(t){$tw.utils.hop(t,e)&&i()})}}();","type":"application/javascript","module-type":"startup"},"$:/core/modules/startup/info.js":{"text":"!function(){'use strict';exports.name='info',exports.before=['startup'],exports.after=['load-modules'],exports.synchronous=!0;var r='$:/temp/info-plugin';exports.startup=function(){function e(t){var i=$tw.wiki.getTiddlerData(r,{tiddlers:{}});$tw.utils.each(t,function(t){t&&t.title&&(i.tiddlers[t.title]=t)}),t={title:r,type:'application/json','plugin-type':'info',text:JSON.stringify(i,null,$tw.config.preferences.jsonSpaces)},$tw.wiki.addTiddler(new $tw.Tiddler(t))}var n=[];$tw.modules.forEachModuleOfType('info',function(t,i){i&&i.getInfoTiddlerFields&&Array.prototype.push.apply(n,i.getInfoTiddlerFields(e))}),e(n);$tw.wiki.readPluginInfo([r]);$tw.wiki.registerPluginTiddlers('info',[r]),$tw.wiki.unpackPluginTiddlers()}}();","type":"application/javascript","module-type":"startup"},"$:/core/modules/startup/load-modules.js":{"text":"!function(){'use strict';exports.name='load-modules',exports.synchronous=!0,exports.startup=function(){$tw.modules.applyMethods('utils',$tw.utils),$tw.node&&$tw.modules.applyMethods('utils-node',$tw.utils),$tw.browser&&$tw.modules.applyMethods('utils-browser',$tw.utils),$tw.modules.applyMethods('global',$tw),$tw.modules.applyMethods('config',$tw.config),$tw.Tiddler.fieldModules=$tw.modules.getModulesByTypeAsHashmap('tiddlerfield'),$tw.modules.applyMethods('tiddlermethod',$tw.Tiddler.prototype),$tw.modules.applyMethods('wikimethod',$tw.Wiki.prototype),$tw.wiki.addIndexersToWiki(),$tw.modules.applyMethods('tiddlerdeserializer',$tw.Wiki.tiddlerDeserializerModules),$tw.macros=$tw.modules.getModulesByTypeAsHashmap('macro'),$tw.wiki.initParsers(),$tw.Commander.initCommands()}}();","type":"application/javascript","module-type":"startup"},"$:/core/modules/startup/password.js":{"text":"!function(){'use strict';exports.name='password',exports.platforms=['browser'],exports.after=['startup'],exports.synchronous=!0,exports.startup=function(){$tw.rootWidget.addEventListener('tm-set-password',function(t){$tw.passwordPrompt.createPrompt({serviceName:$tw.language.getString('Encryption/PromptSetPassword'),noUserName:!0,submitText:$tw.language.getString('Encryption/SetPassword'),canCancel:!0,repeatPassword:!0,callback:function(t){return t&&$tw.crypto.setPassword(t.password),!0}})}),$tw.rootWidget.addEventListener('tm-clear-password',function(t){$tw.browser&&!confirm($tw.language.getString('Encryption/ConfirmClearPassword'))||$tw.crypto.setPassword(null)}),$tw.wiki.addEventListener('change',function(t){$tw.utils.hop(t,'$:/isEncrypted')&&$tw.crypto.updateCryptoStateTiddler()})}}();","type":"application/javascript","module-type":"startup"},"$:/core/modules/startup/plugins.js":{"text":"!function(){'use strict';exports.name='plugins',exports.after=['load-modules'],exports.synchronous=!0;var l='$:/status/RequireReloadDueToPluginChange';exports.startup=function(){$tw.wiki.addTiddler({title:l,text:'no'}),$tw.wiki.addEventListener('change',function(e){var i,t=[],n=!1;$tw.utils.each(Object.keys(e),function(e){var i=$tw.wiki.getTiddler(e);$tw.wiki.doesPluginRequireReload(e)?n=!0:i&&(i.fields['plugin-type'],'yes'===$tw.wiki.getTiddlerText('$:/config/RegisterPluginType/'+(i.fields['plugin-type']||''),'no')&&t.push(e))}),n&&$tw.wiki.addTiddler({title:l,text:'yes'}),0<t.length&&(0<(e=$tw.wiki.readPluginInfo(t)).modifiedPlugins.length||0<e.deletedPlugins.length)&&(i={},$tw.utils.each(e.deletedPlugins,function(e){e=$tw.wiki.getPluginInfo(e);e&&$tw.utils.each(Object.keys(e.tiddlers),function(e){i[e]=!0})}),$tw.utils.each(e.modifiedPlugins,function(e){e=$tw.wiki.getPluginInfo(e);e&&$tw.utils.each(Object.keys(e.tiddlers),function(e){i[e]=!1})}),$tw.wiki.registerPluginTiddlers(null,e.modifiedPlugins),$tw.wiki.unregisterPluginTiddlers(null,e.deletedPlugins),$tw.wiki.unpackPluginTiddlers(),$tw.utils.each(Object.keys(i),function(e){$tw.wiki.enqueueTiddlerEvent(e,i[e])}))})}}();","type":"application/javascript","module-type":"startup"},"$:/core/modules/startup/render.js":{"text":"!function(){'use strict';exports.name='render',exports.platforms=['browser'],exports.after=['story'],exports.synchronous=!0,exports.startup=function(){$tw.titleWidgetNode=$tw.wiki.makeTranscludeWidget('$:/core/wiki/title',{document:$tw.fakeDocument,parseAsInline:!0}),$tw.titleContainer=$tw.fakeDocument.createElement('div'),$tw.titleWidgetNode.render($tw.titleContainer,null),document.title=$tw.titleContainer.textContent,$tw.wiki.addEventListener('change',function(e){$tw.titleWidgetNode.refresh(e,$tw.titleContainer,null)&&(document.title=$tw.titleContainer.textContent)}),$tw.styleWidgetNode=$tw.wiki.makeTranscludeWidget('$:/core/ui/PageStylesheet',{document:$tw.fakeDocument}),$tw.styleContainer=$tw.fakeDocument.createElement('style'),$tw.styleWidgetNode.render($tw.styleContainer,null),$tw.styleElement=document.createElement('style'),$tw.styleElement.innerHTML=$tw.styleContainer.textContent,document.head.insertBefore($tw.styleElement,document.head.firstChild),$tw.wiki.addEventListener('change',$tw.perf.report('styleRefresh',function(e){$tw.styleWidgetNode.refresh(e,$tw.styleContainer,null)&&($tw.styleElement.innerHTML=$tw.styleContainer.textContent)})),$tw.perf.report('mainRender',function(){$tw.pageWidgetNode=$tw.wiki.makeTranscludeWidget('$:/core/ui/RootTemplate',{document:document,parentWidget:$tw.rootWidget,recursionMarker:'no'}),$tw.pageContainer=document.createElement('div'),$tw.utils.addClass($tw.pageContainer,'tc-page-container-wrapper'),document.body.insertBefore($tw.pageContainer,document.body.firstChild),$tw.pageWidgetNode.render($tw.pageContainer,null),$tw.hooks.invokeHook('th-page-refreshed')})();var e=document.querySelectorAll('.tc-remove-when-wiki-loaded');$tw.utils.each(e,function(e){e.parentNode&&e.parentNode.removeChild(e)});var i,a=Object.create(null);function d(){$tw.hooks.invokeHook('th-page-refreshing'),$tw.pageWidgetNode.refresh(a),a=Object.create(null),$tw.hooks.invokeHook('th-page-refreshed')}$tw.wiki.addEventListener('change',$tw.perf.report('mainRefresh',function(e){var t,n,o=!0;for(t in e){var r=$tw.wiki.getTiddler(t);r&&(r.hasField('draft.of')||r.hasField('throttle.refresh'))||(o=!1)}i&&clearTimeout(i),i=null,o?(n=parseInt($tw.wiki.getTiddlerText('$:/config/Drafts/TypingTimeout',''),10),isNaN(n)&&(n=400),i=setTimeout(d,n),$tw.utils.extend(a,e)):($tw.utils.extend(a,e),d())})),$tw.rootWidget.domNodes=[$tw.pageContainer],$tw.rootWidget.children=[$tw.pageWidgetNode],$tw.rootWidget.invokeActionsByTag('$:/tags/StartupAction/PostRender')}}();","type":"application/javascript","module-type":"startup"},"$:/core/modules/startup/rootwidget.js":{"text":"!function(){'use strict';exports.name='rootwidget',exports.platforms=['browser'],exports.after=['startup'],exports.before=['story'],exports.synchronous=!0,exports.startup=function(){$tw.modal=new $tw.utils.Modal($tw.wiki),$tw.rootWidget.addEventListener('tm-modal',function(t){$tw.modal.display(t.param,{variables:t.paramObject,event:t})}),$tw.rootWidget.addEventListener('tm-show-switcher',function(t){$tw.modal.display('$:/core/ui/SwitcherModal',{variables:t.paramObject,event:t})}),$tw.notifier=new $tw.utils.Notifier($tw.wiki),$tw.rootWidget.addEventListener('tm-notify',function(t){$tw.notifier.display(t.param,{variables:t.paramObject})}),$tw.rootWidget.addEventListener('tm-copy-to-clipboard',function(t){$tw.utils.copyToClipboard(t.param)}),$tw.rootWidget.addEventListener('tm-focus-selector',function(t){var e,o=t.param||'';try{e=document.querySelector(o)}catch(t){console.log('Error in selector: ',o)}e&&e.focus&&e.focus(t.paramObject)}),$tw.pageScroller=new $tw.utils.PageScroller,$tw.rootWidget.addEventListener('tm-scroll',function(t){$tw.pageScroller.handleEvent(t)});var o=$tw.utils.getFullScreenApis();o&&$tw.rootWidget.addEventListener('tm-full-screen',function(t){var e=t.event?t.event.target.ownerDocument:document;'enter'!==t.param&&('exit'===t.param||e[o._fullscreenElement])?e[o._exitFullscreen]():e.documentElement[o._requestFullscreen](Element.ALLOW_KEYBOARD_INPUT)}),'data:'===document.location.protocol&&$tw.rootWidget.dispatchEvent({type:'tm-modal',param:'$:/language/Modals/SaveInstructions'})}}();","type":"application/javascript","module-type":"startup"},"$:/core/modules/startup.js":{"text":"!function(){'use strict';exports.name='startup',exports.after=['load-modules'],exports.synchronous=!0;var t=require('$:/core/modules/widgets/widget.js');exports.startup=function(){if($tw.browser&&($tw.browser.isIE=/msie|trident/i.test(navigator.userAgent),$tw.browser.isFirefox=!!document.mozFullScreenEnabled),$tw.platform={},$tw.browser)$tw.platform.isMac=/Mac/.test(navigator.platform),$tw.platform.isWindows=/win/i.test(navigator.platform),$tw.platform.isLinux=/Linux/i.test(navigator.platform);else switch(require('os').platform()){case'darwin':$tw.platform.isMac=!0;break;case'win32':$tw.platform.isWindows=!0;break;case'freebsd':case'linux':$tw.platform.isLinux=!0}$tw.version=$tw.utils.extractVersionInfo(),$tw.perf=new $tw.Performance('yes'===$tw.wiki.getTiddlerText('$:/config/Performance/Instrumentation','no')),$tw.rootWidget=new t.widget({type:'widget',children:[]},{wiki:$tw.wiki,document:$tw.browser?document:$tw.fakeDocument}),$tw.rootWidget.invokeActionsByTag('$:/tags/StartupAction'),$tw.browser&&$tw.rootWidget.invokeActionsByTag('$:/tags/StartupAction/Browser'),$tw.node&&$tw.rootWidget.invokeActionsByTag('$:/tags/StartupAction/Node'),$tw.language=new $tw.Language,$tw.languageSwitcher=new $tw.PluginSwitcher({wiki:$tw.wiki,pluginType:'language',controllerTitle:'$:/language',defaultPlugins:['$:/languages/en-GB'],onSwitch:function(t){$tw.browser&&((t=$tw.wiki.getTiddler(t[0]))?document.documentElement.setAttribute('dir',t.getFieldString('text-direction')||'auto'):document.documentElement.removeAttribute('dir'))}}),$tw.themeManager=new $tw.PluginSwitcher({wiki:$tw.wiki,pluginType:'theme',controllerTitle:'$:/theme',defaultPlugins:['$:/themes/tiddlywiki/snowwhite','$:/themes/tiddlywiki/vanilla']}),$tw.keyboardManager=new $tw.KeyboardManager,$tw.browser&&$tw.utils.addEventListeners(document,[{name:'keydown',handlerObject:$tw.keyboardManager,handlerMethod:'handleKeydownEvent'}]),$tw.wiki.clearTiddlerEventQueue(),$tw.syncadaptor=void 0,$tw.modules.forEachModuleOfType('syncadaptor',function(t,e){!$tw.syncadaptor&&e.adaptorClass&&($tw.syncadaptor=new e.adaptorClass({wiki:$tw.wiki}))}),$tw.syncadaptor&&($tw.syncer=new $tw.Syncer({wiki:$tw.wiki,syncadaptor:$tw.syncadaptor})),$tw.saverHandler=new $tw.SaverHandler({wiki:$tw.wiki,dirtyTracking:!$tw.syncadaptor,preloadDirty:$tw.boot.preloadDirty||[]}),$tw.browser&&($tw.popup=new $tw.utils.Popup,$tw.anim=new $tw.utils.Animator)}}();","type":"application/javascript","module-type":"startup"},"$:/core/modules/startup/story.js":{"text":"!function(){'use strict';exports.name='story',exports.after=['startup'],exports.synchronous=!0;var r='$:/StoryList',a='$:/HistoryList',s='$:/DefaultTiddlers',i='$:/config/Navigation/UpdateHistory',e='$:/config/Navigation/Permalinkview/CopyToClipboard',o='$:/config/Navigation/Permalinkview/UpdateAddressBar';function n(t){t=t||{};var i,e,o=null,n=null;1<$tw.locationHash.length&&(-1===(e=(i=$tw.locationHash.substr(1)).indexOf(':'))?o=decodeURIComponent(i.trim()):(o=decodeURIComponent(i.substr(0,e).trim()),n=decodeURIComponent(i.substr(e+1).trim()))),null===n&&(n=t.defaultToCurrentStory?(d=$tw.wiki.getTiddlerList(r),$tw.utils.stringifyList(d)):o&&''!==o?'':$tw.wiki.getTiddlerText(s));var d=$tw.wiki.filterTiddlers(n),d=$tw.hooks.invokeHook('th-opening-default-tiddlers-list',d);o&&-1===d.indexOf(o)&&d.unshift(o),$tw.wiki.addTiddler({title:r,text:'',list:d},$tw.wiki.getModificationFields());n=new $tw.Story({wiki:$tw.wiki,storyTitle:r,historyTitle:a});t.disableHistory||(o&&''!==o?(0===o.indexOf('[[')&&']]'===o.substr(-2)&&(o=o.substr(2,o.length-4)),n.addToHistory(o)):0<d.length&&n.addToHistory(d[0]))}function d(t){var i=$tw.wiki.getTiddlerList(r),e=$tw.wiki.getTiddlerData(a,[]),o='';switch(t.targetTiddler?o=t.targetTiddler:(0<e.length&&(o=e[e.length-1].title),-1===i.indexOf(o)&&(o='')),t.updateAddressBar){case'permalink':$tw.locationHash='#'+encodeURIComponent(o);break;case'permaview':$tw.locationHash='#'+encodeURIComponent(o)+':'+encodeURIComponent($tw.utils.stringifyList(i))}switch(t.copyToClipboard){case'permalink':$tw.utils.copyToClipboard($tw.utils.getLocationPath()+'#'+encodeURIComponent(o));break;case'permaview':$tw.utils.copyToClipboard($tw.utils.getLocationPath()+'#'+encodeURIComponent(o)+':'+encodeURIComponent($tw.utils.stringifyList(i)))}$tw.utils.getLocationHash()!==$tw.locationHash&&('yes'===t.updateHistory?window.location.hash=$tw.locationHash:window.location.replace(window.location.toString().split('#')[0]+$tw.locationHash))}exports.startup=function(){n({disableHistory:$tw.boot.disableStartupNavigation}),$tw.browser&&($tw.wiki.addEventListener('change',function(t){($tw.utils.hop(t,r)||$tw.utils.hop(t,a))&&d({updateAddressBar:$tw.wiki.getTiddlerText('$:/config/Navigation/UpdateAddressBar','permaview').trim(),updateHistory:$tw.wiki.getTiddlerText(i,'no').trim()})}),window.addEventListener('hashchange',function(){var t=$tw.utils.getLocationHash();t!==$tw.locationHash&&($tw.locationHash=t,n({defaultToCurrentStory:!0}))},!1),$tw.rootWidget.addEventListener('tm-browser-refresh',function(t){window.location.reload(!0)}),$tw.rootWidget.addEventListener('tm-open-external-window',function(t){var i=t.paramObject||{},e=t.param||'http://tiddlywiki.com/#WidgetMessage%3A%20tm-open-external-window',t=i.windowName,i=i.windowFeatures;window.open(e,t,i)}),$tw.rootWidget.addEventListener('tm-print',function(t){(t.event.view||window).print()}),$tw.rootWidget.addEventListener('tm-home',function(t){window.location.hash='';var i=$tw.wiki.getTiddlerText(s),i=$tw.wiki.filterTiddlers(i),i=$tw.hooks.invokeHook('th-opening-default-tiddlers-list',i);$tw.wiki.addTiddler({title:r,text:'',list:i},$tw.wiki.getModificationFields()),i[0]&&$tw.wiki.addToHistory(i[0])}),$tw.rootWidget.addEventListener('tm-permalink',function(t){d({updateAddressBar:'yes'===$tw.wiki.getTiddlerText(o,'yes').trim()?'permalink':'none',updateHistory:$tw.wiki.getTiddlerText(i,'no').trim(),targetTiddler:t.param||t.tiddlerTitle,copyToClipboard:'yes'===$tw.wiki.getTiddlerText(e,'yes').trim()?'permalink':'none'})}),$tw.rootWidget.addEventListener('tm-permaview',function(t){d({updateAddressBar:'yes'===$tw.wiki.getTiddlerText(o,'yes').trim()?'permaview':'none',updateHistory:$tw.wiki.getTiddlerText(i,'no').trim(),targetTiddler:t.param||t.tiddlerTitle,copyToClipboard:'yes'===$tw.wiki.getTiddlerText(e,'yes').trim()?'permaview':'none'})}))}}();","type":"application/javascript","module-type":"startup"},"$:/core/modules/startup/windows.js":{"text":"!function(){'use strict';exports.name='windows',exports.platforms=['browser'],exports.after=['startup'],exports.synchronous=!0,$tw.windows={},exports.startup=function(){$tw.rootWidget.addEventListener('tm-open-window',function(e){var t,n,i,d,r,o,a,s=e.param||e.tiddlerTitle,w=e.paramObject||{},l=w.windowTitle||s,e=w.template||'$:/core/templates/single.tiddler.window',c=w.width||'700',u=w.height||'600',w=$tw.utils.extend({},w,{currentTiddler:s});try{i=(n=window.open('','external-'+s,'scrollbars,width='+c+',height='+u)).document}catch(e){return}($tw.windows[s]=n).haveInitialisedWindow||(i.write('<html><head></head><body class=\\'tc-body tc-single-tiddler-window\\'></body></html>'),i.close(),i.title=l,n.addEventListener('beforeunload',function(e){delete $tw.windows[s],$tw.wiki.removeEventListener('change',t)},!1),d=$tw.wiki.makeTranscludeWidget('$:/core/ui/PageStylesheet',{document:$tw.fakeDocument,variables:w,importPageMacros:!0}),r=$tw.fakeDocument.createElement('style'),d.render(r,null),(o=i.createElement('style')).innerHTML=r.textContent,i.head.insertBefore(o,i.head.firstChild),e=$tw.wiki.parseTiddler(e),(a=$tw.wiki.makeWidget(e,{document:i,parentWidget:$tw.rootWidget,variables:w})).render(i.body,i.body.firstChild),t=function(e){d.refresh(e,r,null)&&(o.innerHTML=r.textContent),a.refresh(e)},$tw.wiki.addEventListener('change',t),$tw.utils.addEventListeners(i,[{name:'keydown',handlerObject:$tw.keyboardManager,handlerMethod:'handleKeydownEvent'}]),n.document.documentElement.addEventListener('click',$tw.popup,!0),n.haveInitialisedWindow=!0)}),$tw.addUnloadTask(function(){$tw.utils.each($tw.windows,function(e){e.close()})})}}();","type":"application/javascript","module-type":"startup"},"$:/core/modules/story.js":{"text":"!function(){'use strict';function t(t){t=t||{},this.wiki=t.wiki||$tw.wiki,this.storyTitle=t.storyTitle||'$:/StoryList',this.historyTitle=t.historyTitle||'$:/HistoryList'}t.prototype.navigateTiddler=function(t,i,e){this.addToStory(t,i),this.addToHistory(t,e)},t.prototype.getStoryList=function(){return this.wiki.getTiddlerList(this.storyTitle)||[]},t.prototype.addToStory=function(t,i,e){e=e||{};var o=this.getStoryList(),r=o.indexOf(t);if(!(0<=r)){var s=o.indexOf(i);if(0<=s)switch(e.openLinkFromInsideRiver){case'top':r=0;break;case'bottom':r=o.length;break;case'above':r=s;break;case'below':default:r=s+1}else r='bottom'===e.openLinkFromOutsideRiver?o.length:0;o.splice(r,0,t),this.saveStoryList(o)}},t.prototype.saveStoryList=function(t){var i=this.wiki.getTiddler(this.storyTitle);this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),{title:this.storyTitle},i,{list:t},this.wiki.getModificationFields()))},t.prototype.addToHistory=function(t,i){var t=$tw.utils.isArray(t)?t:[t],e=this.wiki.getTiddlerData(this.historyTitle,[]);$tw.utils.each(t,function(t){e.push({title:t,fromPageRect:i})}),this.wiki.setTiddlerData(this.historyTitle,e,{'current-tiddler':t[t.length-1]})},t.prototype.storyCloseTiddler=function(t){},t.prototype.storyCloseAllTiddlers=function(){},t.prototype.storyCloseOtherTiddlers=function(t){},t.prototype.storyEditTiddler=function(t){},t.prototype.storyDeleteTiddler=function(t){},t.prototype.storySaveTiddler=function(t){},t.prototype.storyCancelTiddler=function(t){},t.prototype.storyNewTiddler=function(t){},exports.Story=t}();","type":"application/javascript","module-type":"global"},"$:/core/modules/storyviews/classic.js":{"text":"!function(){'use strict';function t(t){this.listWidget=t}var a='cubic-bezier(0.645, 0.045, 0.355, 1)';t.prototype.navigateTo=function(t){var i=$tw.utils.getAnimationDuration(),t=this.listWidget.findListItem(0,t.title);void 0===t||(t=this.listWidget.children[t].findFirstDomNode())instanceof Element&&(i?this.listWidget.dispatchEvent({type:'tm-scroll',target:t}):t.scrollIntoView())},t.prototype.insert=function(t){var i,o,e=$tw.utils.getAnimationDuration();!e||(i=t.findFirstDomNode())instanceof Element&&(o=window.getComputedStyle(i),t=parseInt(o.marginBottom,10),o=parseInt(o.marginTop,10),o=i.offsetHeight+o,setTimeout(function(){$tw.utils.setStyle(i,[{transition:'none'},{marginBottom:''}])},e),$tw.utils.setStyle(i,[{transition:'none'},{marginBottom:-o+'px'},{opacity:'0.0'}]),$tw.utils.forceLayout(i),$tw.utils.setStyle(i,[{transition:'opacity '+e+'ms '+a+', margin-bottom '+e+'ms '+a},{marginBottom:t+'px'},{opacity:'1.0'}]))},t.prototype.remove=function(t){var i,o,e,n,s,r=$tw.utils.getAnimationDuration();r?(o=function(){t.removeChildDomNodes()},(i=t.findFirstDomNode())instanceof Element?(e=i.offsetWidth,s=window.getComputedStyle(i),n=parseInt(s.marginBottom,10),s=parseInt(s.marginTop,10),s=i.offsetHeight+s,setTimeout(o,r),$tw.utils.setStyle(i,[{transition:'none'},{transform:'translateX(0px)'},{marginBottom:n+'px'},{opacity:'1.0'}]),$tw.utils.forceLayout(i),$tw.utils.setStyle(i,[{transition:$tw.utils.roundTripPropertyName('transform')+' '+r+'ms '+a+', opacity '+r+'ms '+a+', margin-bottom '+r+'ms '+a},{transform:'translateX(-'+e+'px)'},{marginBottom:-s+'px'},{opacity:'0.0'}])):o()):t.removeChildDomNodes()},exports.classic=t}();","type":"application/javascript","module-type":"storyview"},"$:/core/modules/storyviews/pop.js":{"text":"!function(){'use strict';function t(t){this.listWidget=t}t.prototype.navigateTo=function(t){t=this.listWidget.findListItem(0,t.title);void 0===t||(t=this.listWidget.children[t].findFirstDomNode())instanceof Element&&this.listWidget.dispatchEvent({type:'tm-scroll',target:t})},t.prototype.insert=function(t){var e=t.findFirstDomNode(),i=$tw.utils.getAnimationDuration();e instanceof Element&&(setTimeout(function(){$tw.utils.setStyle(e,[{transition:'none'},{transform:'none'}]),$tw.utils.setStyle(t.document.body,[{'overflow-x':''}])},i),$tw.utils.setStyle(t.document.body,[{'overflow-x':'hidden'}]),$tw.utils.setStyle(e,[{transition:'none'},{transform:'scale(2)'},{opacity:'0.0'}]),$tw.utils.forceLayout(e),$tw.utils.setStyle(e,[{transition:$tw.utils.roundTripPropertyName('transform')+' '+i+'ms ease-in-out, opacity '+i+'ms ease-in-out'},{transform:'scale(1)'},{opacity:'1.0'}]))},t.prototype.remove=function(t){function e(){i&&i.parentNode&&t.removeChildDomNodes()}var i=t.findFirstDomNode(),o=$tw.utils.getAnimationDuration();i instanceof Element?(setTimeout(e,o),$tw.utils.setStyle(i,[{transition:'none'},{transform:'scale(1)'},{opacity:'1.0'}]),$tw.utils.forceLayout(i),$tw.utils.setStyle(i,[{transition:$tw.utils.roundTripPropertyName('transform')+' '+o+'ms ease-in-out, opacity '+o+'ms ease-in-out'},{transform:'scale(0.1)'},{opacity:'0.0'}])):e()},exports.pop=t}();","type":"application/javascript","module-type":"storyview"},"$:/core/modules/storyviews/zoomin.js":{"text":"!function(){'use strict';function t(t){var n,s=this;this.listWidget=t,0<(t=this.listWidget.wiki.getTiddlerDataCached(this.listWidget.historyTitle,[])).length&&(n=t[t.length-1].title),$tw.utils.each(this.listWidget.children,function(t,i){var e=t.findFirstDomNode();e instanceof Element&&(n&&n!==t.parseTreeNode.itemTitle||!n&&i?e.style.display='none':s.currentTiddlerDomNode=e,$tw.utils.addClass(e,'tc-storyview-zoomin-tiddler'))})}var m='cubic-bezier(0.645, 0.045, 0.355, 1)';t.prototype.navigateTo=function(t){var i,e,n,s,r,o,l,a=$tw.utils.getAnimationDuration(),d=this.listWidget.findListItem(0,t.title);void 0===d||(i=(r=this.listWidget.children[d]).findFirstDomNode())instanceof Element&&($tw.utils.addClass(i,'tc-storyview-zoomin-tiddler'),$tw.utils.setStyle(i,[{display:'block'},{transformOrigin:'0 0'},{transform:'translateX(0px) translateY(0px) scale(1)'},{transition:'none'},{opacity:'0.0'}]),e=t.fromPageRect||{left:window.innerWidth/2-2,top:window.innerHeight/2-2,width:window.innerWidth/8,height:window.innerHeight/8},n=(function(t,i){i=i||'tc-title';t=t.findFirstDomNode();if(t&&t.querySelector)return t.querySelector('.'+i);return null}(r)||r.findFirstDomNode()).getBoundingClientRect(),s=i.getBoundingClientRect(),d=e.width/n.width,t=e.left-s.left-(n.left-s.left)*d,r=e.top-s.top-(n.top-s.top)*d,$tw.utils.setStyle(i,[{transform:'translateX('+t+'px) translateY('+r+'px) scale('+d+')'}]),$tw.utils.forceLayout(i),l=(o=this).currentTiddlerDomNode,this.currentTiddlerDomNode=i,$tw.utils.setStyle(i,[{transition:$tw.utils.roundTripPropertyName('transform')+' '+a+'ms '+m+', opacity '+a+'ms '+m},{opacity:'1.0'},{transform:'translateX(0px) translateY(0px) scale(1)'},{zIndex:'500'}]),l&&l!==i&&(d=n.width/e.width,t=n.left-s.left-(e.left-s.left)*d,r=n.top-s.top-(e.top-s.top)*d,$tw.utils.setStyle(l,[{transition:$tw.utils.roundTripPropertyName('transform')+' '+a+'ms '+m+', opacity '+a+'ms '+m},{opacity:'0.0'},{transformOrigin:'0 0'},{transform:'translateX('+t+'px) translateY('+r+'px) scale('+d+')'},{zIndex:'0'}]),setTimeout(function(){o.currentTiddlerDomNode!==l&&(l.style.display='none')},a)))},t.prototype.insert=function(t){t=t.findFirstDomNode();t instanceof Element&&($tw.utils.addClass(t,'tc-storyview-zoomin-tiddler'),$tw.utils.setStyle(t,[{display:'none'}]))},t.prototype.remove=function(t){function i(){t.removeChildDomNodes()}var e=t.findFirstDomNode(),n=$tw.utils.getAnimationDuration();if(e instanceof Element){if('block'==e.style.display){$tw.utils.addClass(e,'tc-storyview-zoomin-tiddler'),$tw.utils.setStyle(e,[{display:'block'},{transformOrigin:'50% 50%'},{transform:'translateX(0px) translateY(0px) scale(1)'},{transition:'none'},{zIndex:'0'}]);var s=t.previousSibling(),s=(s=s||t.nextSibling())&&s.findFirstDomNode();return s&&($tw.utils.addClass(s,'tc-storyview-zoomin-tiddler'),$tw.utils.setStyle(s,[{display:'block'},{transformOrigin:'50% 50%'},{transform:'translateX(0px) translateY(0px) scale(10)'},{transition:$tw.utils.roundTripPropertyName('transform')+' '+n+'ms '+m+', opacity '+n+'ms '+m},{opacity:'0'},{zIndex:'500'}]),this.currentTiddlerDomNode=s),$tw.utils.forceLayout(this.listWidget.parentDomNode),$tw.utils.setStyle(e,[{transformOrigin:'50% 50%'},{transform:'translateX(0px) translateY(0px) scale(0.1)'},{transition:$tw.utils.roundTripPropertyName('transform')+' '+n+'ms '+m+', opacity '+n+'ms '+m},{opacity:'0'},{zIndex:'0'}]),setTimeout(i,n),s&&$tw.utils.setStyle(s,[{transform:'translateX(0px) translateY(0px) scale(1)'},{opacity:'1'}]),!0}i()}else i()},exports.zoomin=t}();","type":"application/javascript","module-type":"storyview"},"$:/core/modules/syncer.js":{"text":"!function(){'use strict';function t(t){var n=this;this.wiki=t.wiki,this.syncadaptor=t.syncadaptor,this.disableUI=!!t.disableUI,this.titleIsLoggedIn=t.titleIsLoggedIn||this.titleIsLoggedIn,this.titleUserName=t.titleUserName||this.titleUserName,this.titleSyncFilter=t.titleSyncFilter||this.titleSyncFilter,this.titleSavedNotification=t.titleSavedNotification||this.titleSavedNotification,this.taskTimerInterval=t.taskTimerInterval||this.taskTimerInterval,this.throttleInterval=t.throttleInterval||parseInt(this.wiki.getTiddlerText(this.titleSyncThrottleInterval,''),10)||this.throttleInterval,this.errorRetryInterval=t.errorRetryInterval||this.errorRetryInterval,this.fallbackInterval=t.fallbackInterval||this.fallbackInterval,this.pollTimerInterval=t.pollTimerInterval||parseInt(this.wiki.getTiddlerText(this.titleSyncPollingInterval,''),10)||this.pollTimerInterval,this.logging=!('logging'in t)||t.logging,this.logger=new $tw.utils.Logger('syncer'+($tw.browser?'-browser':'')+($tw.node?'-server':'')+(this.syncadaptor.name?'-'+this.syncadaptor.name:''),{colour:'cyan',enable:this.logging,saveHistory:!0}),this.loggerConnection=new $tw.utils.Logger('syncer'+($tw.browser?'-browser':'')+($tw.node?'-server':'')+(this.syncadaptor.name?'-'+this.syncadaptor.name:'')+'-connection',{colour:'cyan',enable:this.logging}),this.syncadaptor.setLoggerSaveBuffer&&this.syncadaptor.setLoggerSaveBuffer(this.logger),this.filterFn=this.wiki.compileFilter(this.wiki.getTiddlerText(this.titleSyncFilter)),this.readTiddlerInfo(),this.titlesToBeLoaded={},this.titlesHaveBeenLazyLoaded={},this.taskTimerId=null,this.pollTimerId=null,this.numTasksInProgress=0,this.wiki.addEventListener('change',function(t){var r;0<n.getSyncedTiddlers(function(r){$tw.utils.each(t,function(t,e){var i=n.wiki.tiddlerExists(e)&&n.wiki.getTiddler(e);r(i,e)})}).length?n.processTaskQueue():(r=!1,$tw.utils.each(t,function(t,e,i){t.deleted&&$tw.utils.hop(n.tiddlerInfo,e)&&(r=!0)}),r&&n.processTaskQueue())}),$tw.browser&&!this.disableUI&&($tw.addUnloadTask(function(t){var e;return n.isDirty()&&(e=$tw.language.getString('UnsavedChangesWarning'),t.returnValue=e),e}),$tw.rootWidget.addEventListener('tm-login',function(t){var e=t&&t.paramObject&&t.paramObject.username,t=t&&t.paramObject&&t.paramObject.password;e&&t?n.login(e,t,function(){}):n.handleLoginEvent()}),$tw.rootWidget.addEventListener('tm-logout',function(){n.handleLogoutEvent()}),$tw.rootWidget.addEventListener('tm-server-refresh',function(){n.handleRefreshEvent()}),$tw.rootWidget.addEventListener('tm-copy-syncer-logs-to-clipboard',function(){$tw.utils.copyToClipboard($tw.utils.getSystemInfo()+'\\n\\nLog:\\n'+n.logger.getBuffer())})),this.disableUI||'yes'===this.wiki.getTiddlerText(this.titleSyncDisableLazyLoading)||this.wiki.addEventListener('lazyLoad',function(t){n.handleLazyLoadEvent(t)}),this.getStatus(function(t,e){n.syncFromServer()})}function d(t,e){this.syncer=t,this.title=e,this.type='save'}function g(t,e){this.syncer=t,this.title=e,this.type='delete'}function c(t,e){this.syncer=t,this.title=e,this.type='load'}t.prototype.titleIsLoggedIn='$:/status/IsLoggedIn',t.prototype.titleIsAnonymous='$:/status/IsAnonymous',t.prototype.titleIsReadOnly='$:/status/IsReadOnly',t.prototype.titleUserName='$:/status/UserName',t.prototype.titleSyncFilter='$:/config/SyncFilter',t.prototype.titleSyncDisablePolling='$:/config/SyncDisablePolling',t.prototype.titleSyncPollingInterval='$:/config/SyncPollingInterval',t.prototype.titleSyncDisableLazyLoading='$:/config/SyncDisableLazyLoading',t.prototype.titleSavedNotification='$:/language/Notifications/Save/Done',t.prototype.titleSyncThrottleInterval='$:/config/SyncThrottleInterval',t.prototype.taskTimerInterval=1e3,t.prototype.throttleInterval=1e3,t.prototype.errorRetryInterval=5e3,t.prototype.fallbackInterval=1e4,t.prototype.pollTimerInterval=6e4,t.prototype.displayError=function(t,e){e===$tw.language.getString('Error/XMLHttpRequest')+': 0'?(this.loggerConnection.alert($tw.language.getString('Error/NetworkErrorAlert')),this.logger.log(t+':',e)):this.logger.alert(t+':',e)},t.prototype.getSyncedTiddlers=function(t){return this.filterFn.call(this.wiki,t)},t.prototype.getTiddlerRevision=function(t){return this.syncadaptor&&this.syncadaptor.getTiddlerRevision?this.syncadaptor.getTiddlerRevision(t):this.wiki.getTiddler(t).fields.revision},t.prototype.readTiddlerInfo=function(){this.tiddlerInfo={};var i=this,t=this.getSyncedTiddlers();$tw.utils.each(t,function(t){var e=i.wiki.getTiddler(t);e&&(i.tiddlerInfo[t]={revision:i.getTiddlerRevision(t),adaptorInfo:i.syncadaptor&&i.syncadaptor.getTiddlerInfo(e),changeCount:i.wiki.getChangeCount(t)})})},t.prototype.isDirty=function(){this.logger.log('Checking dirty status');for(var t=this.getSyncedTiddlers(),e=0;e<t.length;e++){var i=t[e],r=this.tiddlerInfo[i];if(this.wiki.tiddlerExists(i)){if(!r)return!0;if(this.wiki.getChangeCount(i)>r.changeCount)return!0}}for(t=Object.keys(this.tiddlerInfo),e=0;e<t.length;e++)if(!this.wiki.tiddlerExists(t[e]))return!0;return!1},t.prototype.updateDirtyStatus=function(){var t;$tw.browser&&!this.disableUI&&(t=this.isDirty(),$tw.utils.toggleClass(document.body,'tc-dirty',t),t||this.loggerConnection.clearAlerts())},t.prototype.storeTiddler=function(t){var e=new $tw.Tiddler(t);this.wiki.addTiddler(e),this.tiddlerInfo[t.title]={revision:this.getTiddlerRevision(t.title),adaptorInfo:this.syncadaptor.getTiddlerInfo(e),changeCount:this.wiki.getChangeCount(t.title)}},t.prototype.getStatus=function(o){var l=this;this.syncadaptor&&this.syncadaptor.getStatus?(this.wiki.addTiddler({title:this.titleIsLoggedIn,text:'no'}),this.syncadaptor.getStatus(function(t,e,i,r,n,s){t?l.logger.alert(t):(l.wiki.addTiddler({title:l.titleIsReadOnly,text:r?'yes':'no'}),l.wiki.addTiddler({title:l.titleIsAnonymous,text:n?'yes':'no'}),l.wiki.addTiddler({title:l.titleIsLoggedIn,text:e?'yes':'no'}),e&&l.wiki.addTiddler({title:l.titleUserName,text:i||''}),s&&l.wiki.addTiddler({title:l.titleSyncDisablePolling,text:'yes'})),o&&o(t,e,i)})):o(null,!0,'UNAUTHENTICATED')},t.prototype.syncFromServer=function(){function t(){g.pollTimerId&&(clearTimeout(g.pollTimerId),g.pollTimerId=null)}function d(){e&&(g.pollTimerId=setTimeout(function(){g.pollTimerId=null,g.syncFromServer.call(g)},g.pollTimerInterval))}var g=this,c='yes'===g.wiki.getTiddlerText('$:/config/SyncSystemTiddlersFromServer'),e='yes'!==g.wiki.getTiddlerText(g.titleSyncDisablePolling);this.syncadaptor&&this.syncadaptor.getUpdatedTiddlers?(this.logger.log('Retrieving updated tiddler list'),t(),this.syncadaptor.getUpdatedTiddlers(g,function(t,e){d(),t?g.displayError($tw.language.getString('Error/RetrievingSkinny'),t):e&&($tw.utils.each(e.modifications,function(t){g.titlesToBeLoaded[t]=!0}),$tw.utils.each(e.deletions,function(t){!c&&g.wiki.isSystemTiddler(t)||(delete g.tiddlerInfo[t],g.logger.log('Deleting tiddler missing from server:',t),g.wiki.deleteTiddler(t))}),(0<e.modifications.length||0<e.deletions.length)&&g.processTaskQueue())})):this.syncadaptor&&this.syncadaptor.getSkinnyTiddlers&&(this.logger.log('Retrieving skinny tiddler list'),t(),this.syncadaptor.getSkinnyTiddlers(function(t,e){if(d(),t)g.displayError($tw.language.getString('Error/RetrievingSkinny'),t);else{for(var i=Object.keys(g.tiddlerInfo),r=0;r<e.length;r++){var n=e[r],s=n.revision+'',o=g.wiki.tiddlerExists(n.title)&&g.wiki.getTiddler(n.title),l=g.tiddlerInfo[n.title],a=l?l.revision:null,l=i.indexOf(n.title);-1!==l&&i.splice(l,1),a!==s&&(o&&void 0!==o.fields.text||g.storeTiddler(n),g.titlesToBeLoaded[n.title]=!0)}$tw.utils.each(i,function(t){!c&&g.wiki.isSystemTiddler(t)||(delete g.tiddlerInfo[t],g.logger.log('Deleting tiddler missing from server:',t),g.wiki.deleteTiddler(t))}),g.processTaskQueue()}}))},t.prototype.enqueueLoadTiddler=function(t){this.titlesToBeLoaded[t]=!0,this.processTaskQueue()},t.prototype.handleLazyLoadEvent=function(t){this.syncadaptor.supportsLazyLoading&&(this.titlesHaveBeenLazyLoaded[t]||-1!==this.getSyncedTiddlers().indexOf(t)&&(this.titlesToBeLoaded[t]=!0,this.titlesHaveBeenLazyLoaded[t]=!0))},t.prototype.handleLoginEvent=function(){var r=this;this.getStatus(function(t,e,i){t||e||(r.syncadaptor&&r.syncadaptor.displayLoginPrompt?r.syncadaptor.displayLoginPrompt(r):r.displayLoginPrompt())})},t.prototype.displayLoginPrompt=function(){var i=this;$tw.passwordPrompt.createPrompt({serviceName:$tw.language.getString('LoginToTiddlySpace'),callback:function(t){return i.login(t.username,t.password,function(t,e){i.syncFromServer()}),!0}})},t.prototype.login=function(t,e,r){this.logger.log('Attempting to login as',t);var i=this;this.syncadaptor.login?this.syncadaptor.login(t,e,function(t){return t?r(t):void i.getStatus(function(t,e,i){r&&r(t,e)})}):r(null,!0)},t.prototype.handleLogoutEvent=function(){this.logger.log('Attempting to logout');var e=this;this.syncadaptor.logout&&this.syncadaptor.logout(function(t){t?e.logger.alert(t):e.getStatus()})},t.prototype.handleRefreshEvent=function(){this.syncFromServer()},t.prototype.processTaskQueue=function(){var e,i=this;this.syncadaptor.isReady&&!this.syncadaptor.isReady()||0!==this.numTasksInProgress?this.updateDirtyStatus():'object'==typeof(e=this.chooseNextTask())&&null!==e?(this.numTasksInProgress+=1,e.run(function(t){--i.numTasksInProgress,t?(i.displayError('Sync error while processing '+e.type+' of \\''+e.title+'\\'',t),i.updateDirtyStatus(),i.triggerTimeout(i.errorRetryInterval)):(i.updateDirtyStatus(),i.processTaskQueue.call(i))})):(this.updateDirtyStatus(),!0===e&&this.triggerTimeout())},t.prototype.triggerTimeout=function(t){var e=this;this.taskTimerId||(this.taskTimerId=setTimeout(function(){e.taskTimerId=null,e.processTaskQueue.call(e)},t||e.taskTimerInterval))},t.prototype.chooseNextTask=function(){for(var t=new Date-this.throttleInterval,e=null,i=this.getSyncedTiddlers(),r=0;r<i.length;r++){var n=i[r],s=this.wiki.tiddlerExists(n)&&this.wiki.getTiddler(n),o=this.tiddlerInfo[n];if(s){var l=!o||this.wiki.getChangeCount(n)>o.changeCount,a=!o||!o.timestampLastSaved||o.timestampLastSaved<t;if(l){if(a)return new d(this,n);e=!0}}}for(i=Object.keys(this.tiddlerInfo),r=0;r<i.length;r++)if(n=i[r],o=this.tiddlerInfo[n],!(s=this.wiki.tiddlerExists(n)&&this.wiki.getTiddler(n)))return new g(this,n);return(n=Object.keys(this.titlesToBeLoaded)[0])?(delete this.titlesToBeLoaded[n],new c(this,n)):e},d.prototype.run=function(r){var n=this,s=this.syncer.wiki.getChangeCount(this.title),t=this.syncer.wiki.tiddlerExists(this.title)&&this.syncer.wiki.getTiddler(this.title);this.syncer.logger.log('Dispatching \\'save\\' task:',this.title),t?this.syncer.syncadaptor.saveTiddler(t,function(t,e,i){return t?r(t):(n.syncer.tiddlerInfo[n.title]={changeCount:s,adaptorInfo:e,revision:i,timestampLastSaved:new Date},void r(null))},{tiddlerInfo:n.syncer.tiddlerInfo[n.title]}):(this.syncer.logger.log(' Not Dispatching \\'save\\' task:',this.title,'tiddler does not exist'),$tw.utils.nextTick(r(null)))},g.prototype.run=function(e){var i=this;this.syncer.logger.log('Dispatching \\'delete\\' task:',this.title),this.syncer.syncadaptor.deleteTiddler(this.title,function(t){return t?e(t):(delete i.syncer.tiddlerInfo[i.title],void e(null))},{tiddlerInfo:i.syncer.tiddlerInfo[this.title]})},c.prototype.run=function(i){var r=this;this.syncer.logger.log('Dispatching \\'load\\' task:',this.title),this.syncer.syncadaptor.loadTiddler(this.title,function(t,e){return t?i(t):(e&&r.syncer.storeTiddler(e),void i(null))})},exports.Syncer=t}();","type":"application/javascript","module-type":"global"},"$:/core/modules/tiddler.js":{"text":"!function(){'use strict';exports.hasTag=function(t){return this.fields.tags&&-1!==this.fields.tags.indexOf(t)},exports.isPlugin=function(){return'application/json'===this.fields.type&&this.hasField('plugin-type')},exports.isDraft=function(){return this.hasField('draft.of')},exports.getFieldString=function(t){var i=this.fields[t];if(null==i)return'';t=$tw.Tiddler.fieldModules[t];return t&&t.stringify?t.stringify.call(this,i):i.toString()},exports.getFieldList=function(t){t=this.fields[t];return null==t?[]:$tw.utils.parseStringArray(t)},exports.getFieldStrings=function(t){var i,e=(t=t||{}).exclude||[],s={};for(i in this.fields)$tw.utils.hop(this.fields,i)&&-1===e.indexOf(i)&&(s[i]=this.getFieldString(i));return s},exports.getFieldStringBlock=function(t){for(var i=(t=t||{}).exclude||[],e=Object.keys(this.fields).sort(),s=[],r=0;r<e.length;r++){var n=e[r];-1===i.indexOf(n)&&s.push(n+': '+this.getFieldString(n))}return s.join('\\n')},exports.getFieldDay=function(t){if(this.cache&&this.cache.day&&$tw.utils.hop(this.cache.day,t))return this.cache.day[t];var i='';return this.fields[t]&&(i=new Date($tw.utils.parseDate(this.fields[t])).setHours(0,0,0,0)),this.cache.day=this.cache.day||{},this.cache.day[t]=i}}();","type":"application/javascript","module-type":"tiddlermethod"},"$:/core/modules/upgraders/plugins.js":{"text":"!function(){'use strict';var a={'$:/themes/tiddlywiki/stickytitles':{versions:['*']},'$:/plugins/tiddlywiki/fullscreen':{versions:['*']}};exports.upgrade=function(s,e,t){var l,d={};return $tw.utils.each(e,function(e){var i=t[e];if(i&&i['plugin-type']){var r=s.doesPluginInfoRequireReload(JSON.parse(i.text))?s.getTiddlerText('$:/language/ControlPanel/Plugins/PluginWillRequireReload')+' ':'';if(d[e]=r,i.version){var n=(n=e,l||((l=s.getTiddlerData('$:/UpgradeLibrary',{})).tiddlers=l.tiddlers||{}),l.tiddlers[n]);if(n&&n['plugin-type']&&n.version)return t[e]=n,void(d[e]=r+$tw.language.getString('Import/Upgrader/Plugins/Upgraded',{variables:{incoming:i.version,upgraded:n.version}}));n=s.getTiddler(e);if(n&&n.hasField('plugin-type')&&n.hasField('version')&&$tw.utils.checkVersions(n.fields.version,i.version))return t[e]=Object.create(null),void(d[e]=$tw.language.getString('Import/Upgrader/Plugins/Suppressed/Version',{variables:{incoming:i.version,existing:n.fields.version}}))}n=a[e];n&&(-1!==n.versions.indexOf('*')||i.version&&-1!==n.versions.indexOf(i.version))&&(t[e]=Object.create(null),d[e]=$tw.language.getString('Import/Upgrader/Plugins/Suppressed/Incompatible'))}}),d}}();","type":"application/javascript","module-type":"upgrader"},"$:/core/modules/upgraders/system.js":{"text":"!function(){'use strict';var i=['$:/StoryList','$:/HistoryList'],l=['$:/temp/','$:/state/','$:/Import'],u=['$:/core/modules/'];exports.upgrade=function(g,t,a){var n={},s=!1;return $tw.utils.each(t,function(t){if(-1!==i.indexOf(t))a[t]=Object.create(null),n[t]=$tw.language.getString('Import/Upgrader/System/Suppressed');else{for(var e=0;e<l.length;e++){var r=l[e];t.substr(0,r.length)===r&&(a[t]=Object.create(null),n[t]=$tw.language.getString('Import/Upgrader/State/Suppressed'))}for(e=0;e<u.length;e++){r=u[e];t.substr(0,r.length)===r&&g.isShadowTiddler(t)&&(s=!0,n[t]=$tw.language.getString('Import/Upgrader/System/Warning'))}}}),s&&new $tw.utils.Logger('import').alert($tw.language.getString('Import/Upgrader/System/Alert')),n}}();","type":"application/javascript","module-type":"upgrader"},"$:/core/modules/upgraders/themetweaks.js":{"text":"!function(){'use strict';var h={'$:/themes/tiddlywiki/vanilla/metrics':{fontsize:'$:/themes/tiddlywiki/vanilla/metrics/fontsize',lineheight:'$:/themes/tiddlywiki/vanilla/metrics/lineheight',storyleft:'$:/themes/tiddlywiki/vanilla/metrics/storyleft',storytop:'$:/themes/tiddlywiki/vanilla/metrics/storytop',storyright:'$:/themes/tiddlywiki/vanilla/metrics/storyright',storywidth:'$:/themes/tiddlywiki/vanilla/metrics/storywidth',tiddlerwidth:'$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth'},'$:/themes/tiddlywiki/vanilla/settings':{fontfamily:'$:/themes/tiddlywiki/vanilla/settings/fontfamily'}};exports.upgrade=function(s,t,d){var n={};return $tw.utils.each(t,function(t){var i=h[t];if(i){var e,l=new $tw.Tiddler(d[t]),r=s.getTiddlerDataCached(l,{});for(e in i){var a=i[e];d[a]&&d[a].title===a||(d[a]={title:a,text:r[e]},n[a]=$tw.language.getString('Import/Upgrader/ThemeTweaks/Created',{variables:{from:t+'##'+e}}))}}}),n}}();","type":"application/javascript","module-type":"upgrader"},"$:/core/modules/utils/base64-utf8/base64-utf8.module.js":{"text":"(function(){var r,e;r=function(){return{encode:function(r){if('string'!=typeof r)return r;r=r.replace(/\\r\\n/g,'\\n');for(var e,o,t,n='',i=0;i<r.length;i++)(e=r.charCodeAt(i))<128?n+=String.fromCharCode(e):127<e&&e<2048?(n+=String.fromCharCode(e>>6|192),n+=String.fromCharCode(63&e|128)):55295<e&&e<57344&&r.length>i+1?(o=e,t=r.charCodeAt(i+1),i++,t=65536+(o-55296<<10|t-56320),n+=String.fromCharCode(t>>18|240),n+=String.fromCharCode(t>>12&63|128),n+=String.fromCharCode(t>>6&63|128),n+=String.fromCharCode(63&t|128)):(n+=String.fromCharCode(e>>12|224),n+=String.fromCharCode(e>>6&63|128),n+=String.fromCharCode(63&e|128));return n},decode:function(r){if('string'!=typeof r)return r;for(var e,o,t='',n=0;n<r.length;)(e=r.charCodeAt(n))<128?(t+=String.fromCharCode(e),n++):191<e&&e<224?(t+=String.fromCharCode((31&e)<<6|63&r.charCodeAt(n+1)),n+=2):223<e&&e<240?(t+=String.fromCharCode((15&e)<<12|(63&r.charCodeAt(n+1))<<6|63&r.charCodeAt(n+2)),n+=3):(o=(7&e)<<18|(63&r.charCodeAt(n+1))<<12|(63&r.charCodeAt(n+2))<<6|63&r.charCodeAt(n+3),t+=String.fromCharCode(55296+(o-65536>>10))+String.fromCharCode(56320+(o-65536&1023)),n+=4);return t}}},void 0!==(e=this).module&&e.module.exports?e.module.exports=r.apply(e):void 0!==e.define&&'function'===e.define&&e.define.amd?define('utf8',[],r):e.utf8=r.apply(e),function(r,e,o){if(void 0!==e.module&&e.module.exports){if(e.require)for(var t=0;t<o.length;t++)e[o[t]]=e.require(o[t]);e.module.exports=r.apply(e)}else void 0!==e.define&&'function'===e.define&&e.define.amd?define('base64',o,r):e.base64=r.apply(e)}(function(r){var h=r||this.utf8,C='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';return{encode:function(r){if(void 0===h)throw{error:'MissingMethod',message:'UTF8 Module is missing.'};if('string'!=typeof r)return r;r=h.encode(r);for(var e,o,t,n,i,d,a='',f=0;f<r.length;)t=(d=r.charCodeAt(f++))>>2,n=(3&d)<<4|(e=r.charCodeAt(f++))>>4,i=(15&e)<<2|(o=r.charCodeAt(f++))>>6,d=63&o,isNaN(e)?i=d=64:isNaN(o)&&(d=64),a+=C.charAt(t)+C.charAt(n)+C.charAt(i)+C.charAt(d);return a},decode:function(r){if(void 0===h)throw{error:'MissingMethod',message:'UTF8 Module is missing.'};if('string'!=typeof r)return r;r=r.replace(/[^A-Za-z0-9\\+\\/\\=]/g,'');for(var e,o,t,n,i,d='',a=0;a<r.length;)e=C.indexOf(r.charAt(a++))<<2|(t=C.indexOf(r.charAt(a++)))>>4,o=(15&t)<<4|(n=C.indexOf(r.charAt(a++)))>>2,t=(3&n)<<6|(i=C.indexOf(r.charAt(a++))),d+=String.fromCharCode(e),64!=n&&(d+=String.fromCharCode(o)),64!=i&&(d+=String.fromCharCode(t));return h.decode(d)}}},this,['utf8'])}).call(exports);","type":"application/javascript","module-type":"library"},"$:/core/modules/utils/crypto.js":{"text":"!function(){'use strict';exports.extractEncryptedStoreArea=function(t){var r='<pre id=\"encryptedStoreArea\" type=\"text/plain\" style=\"display:none;\">',e=t.indexOf(r);if(-1!==e){var n=t.indexOf('</pre>',e);if(-1!==n)return $tw.utils.htmlDecode(t.substring(e+r.length,n-1))}return null},exports.decryptStoreArea=function(t,r){r=$tw.crypto.decrypt(t,r);if(r){var e,n=JSON.parse(r),s=[];for(e in n)'$:/isEncrypted'!==e&&s.push(n[e]);return s}return null},exports.decryptStoreAreaInteractive=function(e,n,t){var r=$tw.utils.decryptStoreArea(e);r?n(r):$tw.passwordPrompt.createPrompt({serviceName:'Enter a password to decrypt the imported TiddlyWiki',noUserName:!0,canCancel:!0,submitText:'Decrypt',callback:function(t){if(!t)return!1;var r=$tw.utils.decryptStoreArea(e,t.password);return!!r&&($tw.config.usePasswordVault&&$tw.crypto.setPassword(t.password),n(r),!0)}})}}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/csv.js":{"text":"!function(){'use strict';exports.parseCsvStringWithHeader=function(r,t){var e=(t=t||{}).separator||',',n=r.split(/\\r?\\n/gm).map(function(r){return $tw.utils.trim(r)}).filter(function(r){return''!==r});if(n.length<1)return'Missing header row';for(var i=n[0].split(e),l=[],s=1;s<n.length;s++){var u=n[s].split(e),a=Object.create(null);if(u.length!==i.length)return'Malformed CSV row \\''+n[s]+'\\'';for(var o=0;o<u.length;o++)a[i[o]]=$tw.utils.trim(u[o]||'');l.push(a)}return l}}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/diff-match-patch/diff_match_patch.js":{"text":"(function(){function o(){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 x=-1;o.prototype.diff_main=function(t,e,n,i){if(void 0===i&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout),null==t||null==e)throw Error('Null input. (diff_main)');if(t==e)return t?[[0,t]]:[];void 0===n&&(n=!0);var r=n,h=this.diff_commonPrefix(t,e);n=t.substring(0,h),t=t.substring(h),e=e.substring(h),h=this.diff_commonSuffix(t,e);var s=t.substring(t.length-h);return t=t.substring(0,t.length-h),e=e.substring(0,e.length-h),t=this.diff_compute_(t,e,r,i),n&&t.unshift([0,n]),s&&t.push([0,s]),this.diff_cleanupMerge(t),t},o.prototype.diff_compute_=function(t,e,n,i){if(!t)return[[1,e]];if(!e)return[[x,t]];var r=t.length>e.length?t:e,h=t.length>e.length?e:t,s=r.indexOf(h);return-1!=s?(n=[[1,r.substring(0,s)],[0,h],[1,r.substring(s+h.length)]],t.length>e.length&&(n[0][0]=n[2][0]=x),n):1==h.length?[[x,t],[1,e]]:(r=this.diff_halfMatch_(t,e))?(e=r[1],h=r[3],t=r[4],r=this.diff_main(r[0],r[2],n,i),n=this.diff_main(e,h,n,i),r.concat([[0,t]],n)):n&&100<t.length&&100<e.length?this.diff_lineMode_(t,e,i):this.diff_bisect_(t,e,i)},o.prototype.diff_lineMode_=function(t,e,n){var i=this.diff_linesToChars_(t,e);t=i.chars1,e=i.chars2,i=i.lineArray,t=this.diff_main(t,e,!1,n),this.diff_charsToLines_(t,i),this.diff_cleanupSemantic(t),t.push([0,'']);for(var r=i=e=0,h='',s='';e<t.length;){switch(t[e][0]){case 1:r++,s+=t[e][1];break;case x:i++,h+=t[e][1];break;case 0:if(1<=i&&1<=r){for(t.splice(e-i-r,i+r),e=e-i-r,r=(i=this.diff_main(h,s,!1,n)).length-1;0<=r;r--)t.splice(e,0,i[r]);e+=i.length}i=r=0,s=h=''}e++}return t.pop(),t},o.prototype.diff_bisect_=function(t,e,n){for(var i=t.length,r=e.length,h=Math.ceil((i+r)/2),s=2*h,a=Array(s),f=Array(s),l=0;l<s;l++)a[l]=-1,f[l]=-1;a[h+1]=0;for(var g=(f[h+1]=0)!=(l=i-r)%2,o=0,c=0,u=0,p=0,d=0;d<h&&!((new Date).getTime()>n);d++){for(var _=-d+o;_<=d-c;_+=2){for(var b=h+_,m=_==-d||_!=d&&a[b-1]<a[b+1]?a[b+1]:a[b-1]+1,v=m-_;m<i&&v<r&&t.charAt(m)==e.charAt(v);)m++,v++;if(i<(a[b]=m))c+=2;else if(r<v)o+=2;else if(g&&(0<=(b=h+l-_)&&b<s&&-1!=f[b])){var M=i-f[b];if(M<=m)return this.diff_bisectSplit_(t,e,m,v,n)}}for(_=-d+u;_<=d-p;_+=2){for(b=h+_,m=(M=_==-d||_!=d&&f[b-1]<f[b+1]?f[b+1]:f[b-1]+1)-_;M<i&&m<r&&t.charAt(i-M-1)==e.charAt(r-m-1);)M++,m++;if(i<(f[b]=M))p+=2;else if(r<m)u+=2;else if(!g&&(0<=(b=h+l-_)&&b<s&&-1!=a[b]&&(v=h+(m=a[b])-b,(M=i-M)<=m)))return this.diff_bisectSplit_(t,e,m,v,n)}}return[[x,t],[1,e]]},o.prototype.diff_bisectSplit_=function(t,e,n,i,r){var h=t.substring(0,n),s=e.substring(0,i);return t=t.substring(n),e=e.substring(i),h=this.diff_main(h,s,!1,r),r=this.diff_main(t,e,!1,r),h.concat(r)},o.prototype.diff_linesToChars_=function(t,e){function n(t){for(var e='',n=0,i=-1,r=s.length;i<t.length-1;){-1==(i=t.indexOf('\\n',n))&&(i=t.length-1);var h=t.substring(n,i+1),n=i+1;(a.hasOwnProperty?a.hasOwnProperty(h):void 0!==a[h])?e+=String.fromCharCode(a[h]):(e+=String.fromCharCode(r),a[h]=r,s[r++]=h)}return e}var s=[],a={};return s[0]='',{chars1:n(t),chars2:n(e),lineArray:s}},o.prototype.diff_charsToLines_=function(t,e){for(var n=0;n<t.length;n++){for(var i=t[n][1],r=[],h=0;h<i.length;h++)r[h]=e[i.charCodeAt(h)];t[n][1]=r.join('')}},o.prototype.diff_commonPrefix=function(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,i=Math.min(t.length,e.length),r=i,h=0;n<r;)t.substring(h,r)==e.substring(h,r)?h=n=r:i=r,r=Math.floor((i-n)/2+n);return r},o.prototype.diff_commonSuffix=function(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,i=Math.min(t.length,e.length),r=i,h=0;n<r;)t.substring(t.length-r,t.length-h)==e.substring(e.length-r,e.length-h)?h=n=r:i=r,r=Math.floor((i-n)/2+n);return r},o.prototype.diff_commonOverlap_=function(t,e){var n=t.length,i=e.length;if(0==n||0==i)return 0;if(i<n?t=t.substring(n-i):n<i&&(e=e.substring(0,n)),n=Math.min(n,i),t==e)return n;i=0;for(var r=1;;){var h=t.substring(n-r);if(-1==(h=e.indexOf(h)))return i;r+=h,0!=h&&t.substring(n-r)!=e.substring(0,r)||(i=r,r++)}},o.prototype.diff_halfMatch_=function(t,e){function n(t,e,n){for(var i,r,h,s,a=t.substring(n,n+Math.floor(t.length/4)),f=-1,l='';-1!=(f=e.indexOf(a,f+1));){var g=c.diff_commonPrefix(t.substring(n),e.substring(f)),o=c.diff_commonSuffix(t.substring(0,n),e.substring(0,f));l.length<o+g&&(l=e.substring(f-o,f)+e.substring(f,f+g),i=t.substring(0,n-o),r=t.substring(n+g),h=e.substring(0,f-o),s=e.substring(f+g))}return 2*l.length>=t.length?[i,r,h,s,l]:null}if(this.Diff_Timeout<=0)return null;var i=t.length>e.length?t:e,r=t.length>e.length?e:t;if(i.length<4||2*r.length<i.length)return null;var h,s,c=this,a=n(i,r,Math.ceil(i.length/4)),i=n(i,r,Math.ceil(i.length/2));return a||i?(a=!i||a&&a[4].length>i[4].length?a:i,t.length>e.length?(i=a[0],r=a[1],h=a[2],s=a[3]):(h=a[0],s=a[1],i=a[2],r=a[3]),[i,r,h,s,a[4]]):null},o.prototype.diff_cleanupSemantic=function(t){for(var e=!1,n=[],i=0,r=null,h=0,s=0,a=0,f=0,l=0;h<t.length;)0==t[h][0]?(s=f,a=l,l=f=0,r=t[n[i++]=h][1]):(1==t[h][0]?f+=t[h][1].length:l+=t[h][1].length,r&&r.length<=Math.max(s,a)&&r.length<=Math.max(f,l)&&(t.splice(n[i-1],0,[x,r]),t[n[i-1]+1][0]=1,i--,h=0<--i?n[i-1]:-1,l=f=a=s=0,e=!(r=null))),h++;for(e&&this.diff_cleanupMerge(t),this.diff_cleanupSemanticLossless(t),h=1;h<t.length;)t[h-1][0]==x&&1==t[h][0]&&(e=t[h-1][1],n=t[h][1],i=this.diff_commonOverlap_(e,n),(r=this.diff_commonOverlap_(n,e))<=i?(i>=e.length/2||i>=n.length/2)&&(t.splice(h,0,[0,n.substring(0,i)]),t[h-1][1]=e.substring(0,e.length-i),t[h+1][1]=n.substring(i),h++):(r>=e.length/2||r>=n.length/2)&&(t.splice(h,0,[0,e.substring(0,r)]),t[h-1][0]=1,t[h-1][1]=n.substring(0,n.length-r),t[h+1][0]=x,t[h+1][1]=e.substring(r),h++),h++),h++},o.prototype.diff_cleanupSemanticLossless=function(t){function e(t,e){if(!t||!e)return 6;var n=t.charAt(t.length-1),i=e.charAt(0),r=n.match(o.nonAlphaNumericRegex_),h=i.match(o.nonAlphaNumericRegex_),s=r&&n.match(o.whitespaceRegex_),a=h&&i.match(o.whitespaceRegex_),n=s&&n.match(o.linebreakRegex_),i=a&&i.match(o.linebreakRegex_),t=n&&t.match(o.blanklineEndRegex_),e=i&&e.match(o.blanklineStartRegex_);return t||e?5:n||i?4:r&&!s&&a?3:s||a?2:r||h?1:0}for(var n=1;n<t.length-1;){if(0==t[n-1][0]&&0==t[n+1][0]){var i,r=t[n-1][1],h=t[n][1],s=t[n+1][1],a=this.diff_commonSuffix(r,h);a&&(i=h.substring(h.length-a),r=r.substring(0,r.length-a),h=i+h.substring(0,h.length-a),s=i+s);for(var f=s,l=e(a=r,i=h)+e(h,s);h.charAt(0)===s.charAt(0);){r+=h.charAt(0),h=h.substring(1)+s.charAt(0),s=s.substring(1);var g=e(r,h)+e(h,s);l<=g&&(l=g,a=r,i=h,f=s)}t[n-1][1]!=a&&(a?t[n-1][1]=a:(t.splice(n-1,1),n--),t[n][1]=i,f?t[n+1][1]=f:(t.splice(n+1,1),n--))}n++}},o.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,o.whitespaceRegex_=/\\s/,o.linebreakRegex_=/[\\r\\n]/,o.blanklineEndRegex_=/\\n\\r?\\n$/,o.blanklineStartRegex_=/^\\r?\\n\\r?\\n/,o.prototype.diff_cleanupEfficiency=function(t){for(var e=!1,n=[],i=0,r=null,h=0,s=!1,a=!1,f=!1,l=!1;h<t.length;)0==t[h][0]?(r=t[h][1].length<this.Diff_EditCost&&(f||l)?(s=f,a=l,t[n[i++]=h][1]):(i=0,null),f=l=!1):(t[h][0]==x?l=!0:f=!0,r&&(s&&a&&f&&l||r.length<this.Diff_EditCost/2&&3==s+a+f+l)&&(t.splice(n[i-1],0,[x,r]),t[n[i-1]+1][0]=1,i--,r=null,s&&a?(f=l=!0,i=0):(h=0<--i?n[i-1]:-1,f=l=!1),e=!0)),h++;e&&this.diff_cleanupMerge(t)},o.prototype.diff_cleanupMerge=function(t){t.push([0,'']);for(var e,n=0,i=0,r=0,h='',s='';n<t.length;)switch(t[n][0]){case 1:r++,s+=t[n][1],n++;break;case x:i++,h+=t[n][1],n++;break;case 0:1<i+r?(0!==i&&0!==r&&(0!==(e=this.diff_commonPrefix(s,h))&&(0<n-i-r&&0==t[n-i-r-1][0]?t[n-i-r-1][1]+=s.substring(0,e):(t.splice(0,0,[0,s.substring(0,e)]),n++),s=s.substring(e),h=h.substring(e)),0!==(e=this.diff_commonSuffix(s,h))&&(t[n][1]=s.substring(s.length-e)+t[n][1],s=s.substring(0,s.length-e),h=h.substring(0,h.length-e))),0===i?t.splice(n-r,i+r,[1,s]):0===r?t.splice(n-i,i+r,[x,h]):t.splice(n-i-r,i+r,[x,h],[1,s]),n=n-i-r+(i?1:0)+(r?1:0)+1):0!==n&&0==t[n-1][0]?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,i=r=0,s=h=''}for(''===t[t.length-1][1]&&t.pop(),i=!1,n=1;n<t.length-1;)0==t[n-1][0]&&0==t[n+1][0]&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)==t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),i=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),i=!0)),n++;i&&this.diff_cleanupMerge(t)},o.prototype.diff_xIndex=function(t,e){for(var n=0,i=0,r=0,h=0,s=0;s<t.length&&(1!==t[s][0]&&(n+=t[s][1].length),t[s][0]!==x&&(i+=t[s][1].length),!(e<n));s++)r=n,h=i;return t.length!=s&&t[s][0]===x?h:h+(e-r)},o.prototype.diff_prettyHtml=function(t){for(var e=[],n=/&/g,i=/</g,r=/>/g,h=/\\n/g,s=0;s<t.length;s++){var a=t[s][0],f=t[s][1].replace(n,'&').replace(i,'<').replace(r,'>').replace(h,'¶<br>');switch(a){case 1:e[s]='<ins style=\"background:#e6ffe6;\">'+f+'</ins>';break;case x:e[s]='<del style=\"background:#ffe6e6;\">'+f+'</del>';break;case 0:e[s]='<span>'+f+'</span>'}}return e.join('')},o.prototype.diff_text1=function(t){for(var e=[],n=0;n<t.length;n++)1!==t[n][0]&&(e[n]=t[n][1]);return e.join('')},o.prototype.diff_text2=function(t){for(var e=[],n=0;n<t.length;n++)t[n][0]!==x&&(e[n]=t[n][1]);return e.join('')},o.prototype.diff_levenshtein=function(t){for(var e=0,n=0,i=0,r=0;r<t.length;r++){var h=t[r][1];switch(t[r][0]){case 1:n+=h.length;break;case x:i+=h.length;break;case 0:e+=Math.max(n,i),i=n=0}}return e+Math.max(n,i)},o.prototype.diff_toDelta=function(t){for(var e=[],n=0;n<t.length;n++)switch(t[n][0]){case 1:e[n]='+'+encodeURI(t[n][1]);break;case x:e[n]='-'+t[n][1].length;break;case 0:e[n]='='+t[n][1].length}return e.join('\\t').replace(/%20/g,' ')},o.prototype.diff_fromDelta=function(t,e){for(var n=[],i=0,r=0,h=e.split(/\\t/g),s=0;s<h.length;s++){var a=h[s].substring(1);switch(h[s].charAt(0)){case'+':try{n[i++]=[1,decodeURI(a)]}catch(t){throw Error('Illegal escape in diff_fromDelta: '+a)}break;case'-':case'=':var f=parseInt(a,10);if(isNaN(f)||f<0)throw Error('Invalid number in diff_fromDelta: '+a);a=t.substring(r,r+=f),'='==h[s].charAt(0)?n[i++]=[0,a]:n[i++]=[x,a];break;default:if(h[s])throw Error('Invalid diff operation in diff_fromDelta: '+h[s])}}if(r!=t.length)throw Error('Delta length ('+r+') does not equal source text length ('+t.length+').');return n},o.prototype.match_main=function(t,e,n){if(null==t||null==e||null==n)throw Error('Null input. (match_main)');return n=Math.max(0,Math.min(n,t.length)),t==e?0:t.length?t.substring(n,n+e.length)==e?n:this.match_bitap_(t,e,n):-1},o.prototype.match_bitap_=function(t,n,i){function e(t,e){t/=n.length,e=Math.abs(i-e);return h.Match_Distance?t+e/h.Match_Distance:e?1:t}if(n.length>this.Match_MaxBits)throw Error('Pattern too long for this browser.');var r=this.match_alphabet_(n),h=this,s=this.Match_Threshold;-1!=(g=t.indexOf(n,i))&&(s=Math.min(e(0,g),s),-1!=(g=t.lastIndexOf(n,i+n.length))&&(s=Math.min(e(0,g),s)));for(var a,f,l=1<<n.length-1,g=-1,o=n.length+t.length,c=0;c<n.length;c++){for(a=0,u=o;a<u;)e(c,i+u)<=s?a=u:o=u,u=Math.floor((o-a)/2+a);o=u,a=Math.max(1,i-u+1);var u,p=Math.min(i+u,t.length)+n.length;for((u=Array(p+2))[p+1]=(1<<c)-1;a<=p;p--){var d=r[t.charAt(p-1)];if(u[p]=0===c?(u[p+1]<<1|1)&d:(u[p+1]<<1|1)&d|(f[p+1]|f[p])<<1|1|f[p+1],u[p]&l&&(d=e(c,p-1))<=s){if(s=d,!(i<(g=p-1)))break;a=Math.max(1,2*i-g)}}if(e(c+1,i)>s)break;f=u}return g},o.prototype.match_alphabet_=function(t){for(var e={},n=0;n<t.length;n++)e[t.charAt(n)]=0;for(n=0;n<t.length;n++)e[t.charAt(n)]|=1<<t.length-n-1;return e},o.prototype.patch_addContext_=function(t,e){if(0!=e.length){for(var n=e.substring(t.start2,t.start2+t.length1),i=0;e.indexOf(n)!=e.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)i+=this.Patch_Margin,n=e.substring(t.start2-i,t.start2+t.length1+i);i+=this.Patch_Margin,(n=e.substring(t.start2-i,t.start2))&&t.diffs.unshift([0,n]),(i=e.substring(t.start2+t.length1,t.start2+t.length1+i))&&t.diffs.push([0,i]),t.start1-=n.length,t.start2-=n.length,t.length1+=n.length+i.length,t.length2+=n.length+i.length}},o.prototype.patch_make=function(t,e,n){if('string'==typeof t&&'string'==typeof e&&void 0===n){var i=t;2<(e=this.diff_main(i,e,!0)).length&&(this.diff_cleanupSemantic(e),this.diff_cleanupEfficiency(e))}else if(t&&'object'==typeof t&&void 0===e&&void 0===n)e=t,i=this.diff_text1(e);else if('string'==typeof t&&e&&'object'==typeof e&&void 0===n)i=t;else{if('string'!=typeof t||'string'!=typeof e||!n||'object'!=typeof n)throw Error('Unknown call format to patch_make.');i=t,e=n}if(0===e.length)return[];n=[],t=new o.patch_obj;for(var r=0,h=0,s=0,a=i,f=0;f<e.length;f++){var l=e[f][0],g=e[f][1];switch(r||0===l||(t.start1=h,t.start2=s),l){case 1:t.diffs[r++]=e[f],t.length2+=g.length,i=i.substring(0,s)+g+i.substring(s);break;case x:t.length1+=g.length,t.diffs[r++]=e[f],i=i.substring(0,s)+i.substring(s+g.length);break;case 0:g.length<=2*this.Patch_Margin&&r&&e.length!=f+1?(t.diffs[r++]=e[f],t.length1+=g.length,t.length2+=g.length):g.length>=2*this.Patch_Margin&&r&&(this.patch_addContext_(t,a),n.push(t),t=new o.patch_obj,r=0,a=i,h=s)}1!==l&&(h+=g.length),l!==x&&(s+=g.length)}return r&&(this.patch_addContext_(t,a),n.push(t)),n},o.prototype.patch_deepCopy=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n],r=new o.patch_obj;r.diffs=[];for(var h=0;h<i.diffs.length;h++)r.diffs[h]=i.diffs[h].slice();r.start1=i.start1,r.start2=i.start2,r.length1=i.length1,r.length2=i.length2,e[n]=r}return e},o.prototype.patch_apply=function(t,e){if(0==t.length)return[e,[]];t=this.patch_deepCopy(t);var n=this.patch_addPadding(t);e=n+e+n,this.patch_splitMax(t);for(var i=0,r=[],h=0;h<t.length;h++){var s,a,f=t[h].start2+i,l=this.diff_text1(t[h].diffs),g=-1;if(l.length>this.Match_MaxBits?-1!=(s=this.match_main(e,l.substring(0,this.Match_MaxBits),f))&&(-1==(g=this.match_main(e,l.substring(l.length-this.Match_MaxBits),f+l.length-this.Match_MaxBits))||g<=s)&&(s=-1):s=this.match_main(e,l,f),-1==s)r[h]=!1,i-=t[h].length2-t[h].length1;else if(r[h]=!0,i=s-f,l==(f=-1==g?e.substring(s,s+l.length):e.substring(s,g+this.Match_MaxBits)))e=e.substring(0,s)+this.diff_text2(t[h].diffs)+e.substring(s+l.length);else if(f=this.diff_main(l,f,!1),l.length>this.Match_MaxBits&&this.diff_levenshtein(f)/l.length>this.Patch_DeleteThreshold)r[h]=!1;else for(this.diff_cleanupSemanticLossless(f),g=l=0;g<t[h].diffs.length;g++){var o=t[h].diffs[g];0!==o[0]&&(a=this.diff_xIndex(f,l)),1===o[0]?e=e.substring(0,s+a)+o[1]+e.substring(s+a):o[0]===x&&(e=e.substring(0,s+a)+e.substring(s+this.diff_xIndex(f,l+o[1].length))),o[0]!==x&&(l+=o[1].length)}}return[e=e.substring(n.length,e.length-n.length),r]},o.prototype.patch_addPadding=function(t){for(var e=this.Patch_Margin,n='',i=1;i<=e;i++)n+=String.fromCharCode(i);for(i=0;i<t.length;i++)t[i].start1+=e,t[i].start2+=e;var r,h=(i=t[0]).diffs;return 0==h.length||0!=h[0][0]?(h.unshift([0,n]),i.start1-=e,i.start2-=e,i.length1+=e,i.length2+=e):e>h[0][1].length&&(r=e-h[0][1].length,h[0][1]=n.substring(h[0][1].length)+h[0][1],i.start1-=r,i.start2-=r,i.length1+=r,i.length2+=r),0==(h=(i=t[t.length-1]).diffs).length||0!=h[h.length-1][0]?(h.push([0,n]),i.length1+=e,i.length2+=e):e>h[h.length-1][1].length&&(r=e-h[h.length-1][1].length,h[h.length-1][1]+=n.substring(0,r),i.length1+=r,i.length2+=r),n},o.prototype.patch_splitMax=function(t){for(var e=this.Match_MaxBits,n=0;n<t.length;n++)if(!(t[n].length1<=e)){var i=t[n];t.splice(n--,1);for(var r=i.start1,h=i.start2,s='';0!==i.diffs.length;){var a=new o.patch_obj,f=!0;for(a.start1=r-s.length,a.start2=h-s.length,''!==s&&(a.length1=a.length2=s.length,a.diffs.push([0,s]));0!==i.diffs.length&&a.length1<e-this.Patch_Margin;){s=i.diffs[0][0];var l=i.diffs[0][1];1===s?(a.length2+=l.length,h+=l.length,a.diffs.push(i.diffs.shift()),f=!1):s===x&&1==a.diffs.length&&0==a.diffs[0][0]&&l.length>2*e?(a.length1+=l.length,r+=l.length,f=!1,a.diffs.push([s,l]),i.diffs.shift()):(l=l.substring(0,e-a.length1-this.Patch_Margin),a.length1+=l.length,r+=l.length,0===s?(a.length2+=l.length,h+=l.length):f=!1,a.diffs.push([s,l]),l==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(l.length))}s=(s=this.diff_text2(a.diffs)).substring(s.length-this.Patch_Margin),''!==(l=this.diff_text1(i.diffs).substring(0,this.Patch_Margin))&&(a.length1+=l.length,a.length2+=l.length,0!==a.diffs.length&&0===a.diffs[a.diffs.length-1][0]?a.diffs[a.diffs.length-1][1]+=l:a.diffs.push([0,l])),f||t.splice(++n,0,a)}}},o.prototype.patch_toText=function(t){for(var e=[],n=0;n<t.length;n++)e[n]=t[n];return e.join('')},o.prototype.patch_fromText=function(t){var e=[];if(!t)return e;t=t.split('\\n');for(var n=0,i=/^@@ -(\\d+),?(\\d*) \\+(\\d+),?(\\d*) @@$/;n<t.length;){var r=t[n].match(i);if(!r)throw Error('Invalid patch string: '+t[n]);var h=new o.patch_obj;for(e.push(h),h.start1=parseInt(r[1],10),''===r[2]?(h.start1--,h.length1=1):'0'==r[2]?h.length1=0:(h.start1--,h.length1=parseInt(r[2],10)),h.start2=parseInt(r[3],10),''===r[4]?(h.start2--,h.length2=1):'0'==r[4]?h.length2=0:(h.start2--,h.length2=parseInt(r[4],10)),n++;n<t.length;){r=t[n].charAt(0);try{var s=decodeURI(t[n].substring(1))}catch(t){throw Error('Illegal escape in patch_fromText: '+s)}if('-'==r)h.diffs.push([x,s]);else if('+'==r)h.diffs.push([1,s]);else if(' '==r)h.diffs.push([0,s]);else{if('@'==r)break;if(''!==r)throw Error('Invalid patch mode \"'+r+'\" in: '+s)}n++}}return e},(o.patch_obj=function(){this.diffs=[],this.start2=this.start1=null,this.length2=this.length1=0}).prototype.toString=function(){for(var t,e=['@@ -'+(0===this.length1?this.start1+',0':1==this.length1?this.start1+1:this.start1+1+','+this.length1)+' +'+(0===this.length2?this.start2+',0':1==this.length2?this.start2+1:this.start2+1+','+this.length2)+' @@\\n'],n=0;n<this.diffs.length;n++){switch(this.diffs[n][0]){case 1:t='+';break;case x:t='-';break;case 0:t=' '}e[n+1]=t+encodeURI(this.diffs[n][1])+'\\n'}return e.join('').replace(/%20/g,' ')},this.diff_match_patch=o,this.DIFF_DELETE=x,this.DIFF_INSERT=1,this.DIFF_EQUAL=0}).call(exports);","type":"application/javascript","module-type":"library"},"$:/core/modules/utils/dom/animations/slide.js":{"text":"!function(){'use strict';exports.slide={open:function(t,o){var i=(o=o||{}).duration||$tw.utils.getAnimationDuration(),n=window.getComputedStyle(t),a=parseInt(n.marginBottom,10),e=parseInt(n.marginTop,10),p=parseInt(n.paddingBottom,10),s=parseInt(n.paddingTop,10),n=t.offsetHeight;setTimeout(function(){$tw.utils.setStyle(t,[{transition:'none'},{marginBottom:''},{marginTop:''},{paddingBottom:''},{paddingTop:''},{height:'auto'},{opacity:''}]),o.callback&&o.callback()},i),$tw.utils.setStyle(t,[{transition:'none'},{marginTop:'0px'},{marginBottom:'0px'},{paddingTop:'0px'},{paddingBottom:'0px'},{height:'0px'},{opacity:'0'}]),$tw.utils.forceLayout(t),$tw.utils.setStyle(t,[{transition:'margin-top '+i+'ms ease-in-out, margin-bottom '+i+'ms ease-in-out, padding-top '+i+'ms ease-in-out, padding-bottom '+i+'ms ease-in-out, height '+i+'ms ease-in-out, opacity '+i+'ms ease-in-out'},{marginBottom:a+'px'},{marginTop:e+'px'},{paddingBottom:p+'px'},{paddingTop:s+'px'},{height:n+'px'},{opacity:'1'}])},close:function(t,o){var i=(o=o||{}).duration||$tw.utils.getAnimationDuration(),n=t.offsetHeight;setTimeout(function(){$tw.utils.setStyle(t,[{transition:'none'},{marginBottom:''},{marginTop:''},{paddingBottom:''},{paddingTop:''},{height:'auto'},{opacity:''}]),o.callback&&o.callback()},i),$tw.utils.setStyle(t,[{height:n+'px'},{opacity:'1'}]),$tw.utils.forceLayout(t),$tw.utils.setStyle(t,[{transition:'margin-top '+i+'ms ease-in-out, margin-bottom '+i+'ms ease-in-out, padding-top '+i+'ms ease-in-out, padding-bottom '+i+'ms ease-in-out, height '+i+'ms ease-in-out, opacity '+i+'ms ease-in-out'},{marginTop:'0px'},{marginBottom:'0px'},{paddingTop:'0px'},{paddingBottom:'0px'},{height:'0px'},{opacity:'0'}])}}}();","type":"application/javascript","module-type":"animation"},"$:/core/modules/utils/dom/animator.js":{"text":"!function(){'use strict';function t(){this.animations={},$tw.modules.applyMethods('animation',this.animations)}t.prototype.perform=function(n,t,i){var o;i=i||{},$tw.utils.each(this.animations,function(t,i){$tw.utils.hop(t,n)&&(o=t[n])}),(o=o||function(t,i){i.callback&&i.callback()})(t,i)},exports.Animator=t}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/dom/browser.js":{"text":"!function(){'use strict';exports.setStyle=function(e,n){if(1===e.nodeType)for(var t=0;t<n.length;t++)for(var r in n[t])e.style[$tw.utils.convertStyleNameToPropertyName(r)]=n[t][r]};var l={};exports.convertStyleNameToPropertyName=function(e){if(l[e])return l[e];var n=$tw.utils.unHyphenateCss(e);if($tw.browser&&void 0===document.body.style[n])for(var t=['O','MS','Moz','webkit'],r=0;r<t.length;r++){var i=t[r]+n.substr(0,1).toUpperCase()+n.substr(1);if(void 0!==document.body.style[i]){n=i;break}}return l[e]=n},exports.convertPropertyNameToStyleName=function(e){e=$tw.utils.hyphenateCss(e);return 0===e.indexOf('webkit')?e='-'+e:0===e.indexOf('-m-s')&&(e='-ms'+e.substr(4)),e},exports.roundTripPropertyName=function(e){return $tw.utils.convertPropertyNameToStyleName($tw.utils.convertStyleNameToPropertyName(e))};var i={},o={transitionEnd:{correspondingCssProperty:'transition',mappings:{transition:'transitionend',OTransition:'oTransitionEnd',MSTransition:'msTransitionEnd',MozTransition:'transitionend',webkitTransition:'webkitTransitionEnd'}},animationEnd:{correspondingCssProperty:'animation',mappings:{animation:'animationend',OAnimation:'oAnimationEnd',MSAnimation:'msAnimationEnd',MozAnimation:'animationend',webkitAnimation:'webkitAnimationEnd'}}};exports.convertEventName=function(e){if(i[e])return i[e];var n,t=e,r=o[e];return r&&(n=$tw.utils.convertStyleNameToPropertyName(r.correspondingCssProperty),r.mappings[n]&&(t=r.mappings[n])),i[e]=t},exports.getFullScreenApis=function(){var e=document,n=e.body,e={_requestFullscreen:void 0!==n.webkitRequestFullscreen?'webkitRequestFullscreen':void 0!==n.mozRequestFullScreen?'mozRequestFullScreen':void 0!==n.msRequestFullscreen?'msRequestFullscreen':void 0!==n.requestFullscreen?'requestFullscreen':'',_exitFullscreen:void 0!==e.webkitExitFullscreen?'webkitExitFullscreen':void 0!==e.mozCancelFullScreen?'mozCancelFullScreen':void 0!==e.msExitFullscreen?'msExitFullscreen':void 0!==e.exitFullscreen?'exitFullscreen':'',_fullscreenElement:void 0!==e.webkitFullscreenElement?'webkitFullscreenElement':void 0!==e.mozFullScreenElement?'mozFullScreenElement':void 0!==e.msFullscreenElement?'msFullscreenElement':void 0!==e.fullscreenElement?'fullscreenElement':'',_fullscreenChange:void 0!==e.webkitFullscreenElement?'webkitfullscreenchange':void 0!==e.mozFullScreenElement?'mozfullscreenchange':void 0!==e.msFullscreenElement?'MSFullscreenChange':void 0!==e.fullscreenElement?'fullscreenchange':''};return e._requestFullscreen&&e._exitFullscreen&&e._fullscreenElement&&e._fullscreenChange?e:null}}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/dom/csscolorparser.js":{"text":"var s={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function g(e){return(e=Math.round(e))<0?0:255<e?255:e}function r(e){return e<0?0:1<e?1:e}function d(e){return'%'===e[e.length-1]?g(parseFloat(e)/100*255):g(parseInt(e))}function h(e){return'%'===e[e.length-1]?r(parseFloat(e)/100):r(parseFloat(e))}function c(e,r,l){return l<0?l+=1:1<l&&--l,6*l<1?e+(r-e)*l*6:2*l<1?r:3*l<2?e+(r-e)*(2/3-l)*6:e}try{exports.parseCSSColor=function(e){var r=e.replace(/ /g,'').toLowerCase();if(r in s)return s[r].slice();if('#'===r[0])return 4===r.length?0<=(a=parseInt(r.substr(1),16))&&a<=4095?[(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,1]:null:7===r.length&&0<=(a=parseInt(r.substr(1),16))&&a<=16777215?[(16711680&a)>>16,(65280&a)>>8,255&a,1]:null;var l=r.indexOf('('),e=r.indexOf(')');if(-1!==l&&e+1===r.length){var a=r.substr(0,l),n=r.substr(l+1,e-(l+1)).split(','),t=1;switch(a){case'rgba':if(4!==n.length)return null;t=h(n.pop());case'rgb':return 3!==n.length?null:[d(n[0]),d(n[1]),d(n[2]),t];case'hsla':if(4!==n.length)return null;t=h(n.pop());case'hsl':if(3!==n.length)return null;var i=(parseFloat(n[0])%360+360)%360/360,o=h(n[1]),u=h(n[2]),o=u<=.5?u*(o+1):u+o-u*o,u=2*u-o;return[g(255*c(u,o,i+1/3)),g(255*c(u,o,i)),g(255*c(u,o,i-1/3)),t];default:return null}}return null}}catch(e){}","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/dom.js":{"text":"!function(){'use strict';exports.domContains=function(t,e){return t.contains?t!==e&&t.contains(e):!!(16&t.compareDocumentPosition(e))},exports.removeChildren=function(t){for(;t.hasChildNodes();)t.removeChild(t.firstChild)},exports.hasClass=function(t,e){return t&&t.hasAttribute&&t.hasAttribute('class')&&-1!==t.getAttribute('class').split(' ').indexOf(e)},exports.addClass=function(t,e){var o=(t.getAttribute('class')||'').split(' ');-1===o.indexOf(e)&&(o.push(e),t.setAttribute('class',o.join(' ')))},exports.removeClass=function(t,e){var o=(t.getAttribute('class')||'').split(' '),e=o.indexOf(e);-1!==e&&(o.splice(e,1),t.setAttribute('class',o.join(' ')))},exports.toggleClass=function(t,e,o){void 0===o&&(o=!exports.hasClass(t,e)),o?exports.addClass(t,e):exports.removeClass(t,e)},exports.getScrollContainer=function(t){for(var e=t.ownerDocument;t.parentNode;)if((t=t.parentNode).scrollTop)return t;return e.body},exports.getScrollPosition=function(t){t=t||window;return'scrollX'in t?{x:t.scrollX,y:t.scrollY}:{x:t.document.documentElement.scrollLeft,y:t.document.documentElement.scrollTop}},exports.resizeTextAreaToFit=function(t,e){var o=$tw.utils.getScrollContainer(t),s=o.scrollTop;t.style.height=e;e=t.offsetHeight||parseInt(e,10);t.style.height='auto';e=Math.max(t.scrollHeight+t.offsetHeight-t.clientHeight,e);return e!==t.offsetHeight&&(t.style.height=e+'px',$tw.utils.forceLayout(t),o.scrollTop=s),e},exports.getBoundingPageRect=function(t){var e=$tw.utils.getScrollPosition(t.ownerDocument.defaultView),t=t.getBoundingClientRect();return{left:t.left+e.x,width:t.width,right:t.right+e.x,top:t.top+e.y,height:t.height,bottom:t.bottom+e.y}},exports.savePassword=function(t,e){var o=!1;try{window.localStorage.setItem('tw5-password-'+t,e),o=!0}catch(t){}o||($tw.savedPasswords=$tw.savedPasswords||Object.create(null),$tw.savedPasswords[t]=e)},exports.getPassword=function(t){var e;try{e=window.localStorage.getItem('tw5-password-'+t)}catch(t){}return void 0!==e?e:($tw.savedPasswords||Object.create(null))[t]||''},exports.forceLayout=function(t){t.offsetWidth},exports.pulseElement=function(o){o.addEventListener($tw.browser.animationEnd,function t(e){o.removeEventListener($tw.browser.animationEnd,t,!1),$tw.utils.removeClass(o,'pulse')},!1),$tw.utils.removeClass(o,'pulse'),$tw.utils.forceLayout(o),$tw.utils.addClass(o,'pulse')},exports.addEventListeners=function(o,t){$tw.utils.each(t,function(e){var t;e.handlerFunction?t=e.handlerFunction:e.handlerObject&&(t=e.handlerMethod?function(t){e.handlerObject[e.handlerMethod].call(e.handlerObject,t)}:e.handlerObject),o.addEventListener(e.name,t,!1)})},exports.getComputedStyles=function(t){for(var e,o=window.getComputedStyle(t,null),s=[],n=0;n<o.length;n++)e=o[n],s.push(e+': '+o.getPropertyValue(e)+';');return s},exports.setStyles=function(t,e){t.style.cssText=e.join('')},exports.copyStyles=function(t,e){$tw.utils.setStyles(e,$tw.utils.getComputedStyles(t))},exports.copyToClipboard=function(t,e){e=e||{};var o=document.createElement('textarea');o.style.position='fixed',o.style.top=0,o.style.left=0,o.style.fontSize='12pt',o.style.width='2em',o.style.height='2em',o.style.padding=0,o.style.border='none',o.style.outline='none',o.style.boxShadow='none',o.style.background='transparent',o.value=t,document.body.appendChild(o),o.select(),o.setSelectionRange(0,t.length);var s=!1;try{s=document.execCommand('copy')}catch(t){}e.doNotNotify||$tw.notifier.display(s?'$:/language/Notifications/CopiedToClipboard/Succeeded':'$:/language/Notifications/CopiedToClipboard/Failed'),document.body.removeChild(o)},exports.getLocationPath=function(){return window.location.toString().split('#')[0]}}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/dom/dragndrop.js":{"text":"!function(){'use strict';exports.makeDraggable=function(n){var l,o=n.dragImageType||'dom',s=n.domNode;'a'!==(s.tagName||'').toLowerCase()&&s.setAttribute('draggable','true'),$tw.utils.addEventListeners(s,[{name:'dragstart',handlerFunction:function(t){if(void 0===t.dataTransfer)return!1;var e=n.dragTiddlerFn&&n.dragTiddlerFn(),r=n.dragFilterFn&&n.dragFilterFn(),i=e?[e]:[],d=n.startActions;r&&i.push.apply(i,n.widget.wiki.filterTiddlers(r,n.widget));var a,e=$tw.utils.stringifyList(i);return 0<i.length&&t.target===s&&($tw.dragInProgress=s,$tw.utils.addClass(t.target,'tc-dragging'),void 0!==d&&n.widget.invokeActionString(d,n.widget,t,{actionTiddler:e}),(l=n.widget.document.createElement('div')).className='tc-tiddler-dragger',(r=n.widget.document.createElement('div')).className='tc-tiddler-dragger-inner',r.appendChild(n.widget.document.createTextNode(1===i.length?i[0]:i.length+' tiddlers')),l.appendChild(r),n.widget.document.body.appendChild(l),(d=t.dataTransfer).effectAllowed='all',d.setDragImage&&('pill'===o?d.setDragImage(l.firstChild,-16,-16):(r=s.getBoundingClientRect(),d.setDragImage(s,t.clientX-r.left,t.clientY-r.top))),d.clearData&&d.clearData(),a=[],a=1<i.length?(i.forEach(function(t){a.push(n.widget.wiki.getTiddlerAsJson(t))}),'['+a.join(',')+']'):n.widget.wiki.getTiddlerAsJson(i[0]),$tw.browser.isIE||(d.setData('text/vnd.tiddler',a),d.setData('text/plain',e),d.setData('text/x-moz-url','data:text/vnd.tiddler,'+encodeURIComponent(a))),d.setData('URL','data:text/vnd.tiddler,'+encodeURIComponent(a)),d.setData('Text',e),t.stopPropagation()),!1}},{name:'dragend',handlerFunction:function(t){var e,r,i;return t.target===s&&(r=n.dragTiddlerFn&&n.dragTiddlerFn(),e=n.dragFilterFn&&n.dragFilterFn(),i=r?[r]:[],r=n.endActions,e&&i.push.apply(i,n.widget.wiki.filterTiddlers(e,n.widget)),i=$tw.utils.stringifyList(i),$tw.dragInProgress=null,void 0!==r&&n.widget.invokeActionString(r,n.widget,t,{actionTiddler:i}),$tw.utils.removeClass(t.target,'tc-dragging'),l&&(l.parentNode.removeChild(l),l=null)),!1}}])};var l=[{type:'text/vnd.tiddler',IECompatible:!(exports.importDataTransfer=function(t,e,r){if($tw.log.IMPORT){console.log('Available data types:');for(var i=0;i<t.types.length;i++)console.log('type',t.types[i],t.getData(t.types[i]))}for(var d=0;d<l.length;d++)if(!$tw.browser.isIE||l[d].IECompatible){var a=l[d],n=t.getData(a.type);if(''!==n&&null!==n)return $tw.log.IMPORT&&console.log('Importing data type \\''+a.type+'\\', data: \\''+n+'\\''),void r(a.toTiddlerFieldsArray(n,e))}}),toTiddlerFieldsArray:i},{type:'URL',IECompatible:!0,toTiddlerFieldsArray:function(t,e){var r=decodeURIComponent(t).match(/^data\\:text\\/vnd\\.tiddler,(.*)/i);return r?i(r[1],e):[{title:e,text:t}]}},{type:'text/x-moz-url',IECompatible:!1,toTiddlerFieldsArray:function(t,e){var r=decodeURIComponent(t).match(/^data\\:text\\/vnd\\.tiddler,(.*)/i);return r?i(r[1],e):[{title:e,text:t}]}},{type:'text/html',IECompatible:!1,toTiddlerFieldsArray:function(t,e){return[{title:e,text:t}]}},{type:'text/plain',IECompatible:!1,toTiddlerFieldsArray:function(t,e){return[{title:e,text:t}]}},{type:'Text',IECompatible:!0,toTiddlerFieldsArray:function(t,e){return[{title:e,text:t}]}},{type:'text/uri-list',IECompatible:!1,toTiddlerFieldsArray:function(t,e){return[{title:e,text:t}]}}];function i(t,e){t=JSON.parse(t);return $tw.utils.isArray(t)||(t=[t]),t.forEach(function(t){t.title=t.title||e}),t}}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/dom/http.js":{"text":"!function(){'use strict';exports.httpRequest=function(e){function t(a){a=a.toLowerCase();var n=!1;return $tw.utils.each(i,function(t,e,s){e.toLowerCase()===a&&(n=!0)}),n}var s,a=e.type||'GET',n=e.url,i=e.headers||{accept:'application/json'},u=e.returnProp||'responseText',o=new XMLHttpRequest,r='';e.data&&('string'==typeof e.data?r=e.data:(s=[],$tw.utils.each(e.data,function(t,e){s.push(e+'='+encodeURIComponent(t))}),'GET'===a||'HEAD'===a?n+='?'+s.join('&'):r=s.join('&'))),o.onreadystatechange=function(){4===this.readyState&&(200!==this.status&&201!==this.status&&204!==this.status?e.callback($tw.language.getString('Error/XMLHttpRequest')+': '+this.status,null,this):e.callback(null,this[u],this))},o.open(a,n,!0),i&&$tw.utils.each(i,function(t,e,s){o.setRequestHeader(e,t)}),r&&!t('Content-Type')&&o.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'),t('X-Requested-With')||o.setRequestHeader('X-Requested-With','TiddlyWiki');try{o.send(r)}catch(t){e.callback(t,null,this)}return o}}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/dom/keyboard.js":{"text":"!function(){'use strict';['parseKeyDescriptor','checkKeyDescriptor'].forEach(function(r){exports[r]=function(){return $tw.keyboardManager?$tw.keyboardManager[r].apply($tw.keyboardManager,Array.prototype.slice.call(arguments,0)):null}})}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/dom/modal.js":{"text":"!function(){'use strict';function t(t){this.wiki=t,this.modalCount=0}require('$:/core/modules/widgets/widget.js');var C=require('$:/core/modules/widgets/navigator.js');t.prototype.display=function(t,e){e=e||{},this.srcDocument=(!e.variables||'true'!==e.variables.rootwindow&&'yes'!==e.variables.rootwindow)&&e.event&&e.event.event&&e.event.event.target?e.event.event.target.ownerDocument:document,this.srcWindow=this.srcDocument.defaultView;var i,s,r,n,a,l,o,d,c,u,m,h,p,w,g,v=this,y=$tw.utils.getAnimationDuration(),f=this.wiki.getTiddler(t);f&&(g=$tw.utils.extend({currentTiddler:t,'tv-story-list':e.event&&e.event.widget?e.event.widget.getVariable('tv-story-list'):'','tv-history-list':e.event&&e.event.widget?e.event.widget.getVariable('tv-history-list'):''},e.variables),s=this.srcDocument.createElement('div'),r=this.srcDocument.createElement('div'),n=this.srcDocument.createElement('div'),a=this.srcDocument.createElement('div'),l=this.srcDocument.createElement('h3'),o=this.srcDocument.createElement('div'),p=this.srcDocument.createElement('a'),u=this.srcDocument.createElement('div'),d=this.srcDocument.createElement('span'),c=this.srcDocument.createElement('span'),this.modalCount++,this.adjustPageClass(),$tw.utils.addClass(s,'tc-modal-wrapper'),f.fields&&f.fields.class&&$tw.utils.addClass(s,f.fields.class),$tw.utils.addClass(r,'tc-modal-backdrop'),$tw.utils.addClass(n,'tc-modal'),$tw.utils.addClass(a,'tc-modal-header'),$tw.utils.addClass(o,'tc-modal-body'),$tw.utils.addClass(u,'tc-modal-footer'),s.appendChild(r),s.appendChild(n),a.appendChild(l),n.appendChild(a),n.appendChild(o),u.appendChild(d),u.appendChild(c),n.appendChild(u),u={type:'navigator',attributes:{story:{name:'story',type:'string',value:g['tv-story-list']},history:{name:'history',type:'string',value:g['tv-history-list']}},tag:'$navigator',isBlock:!0,children:[]},(u=new C.navigator(u,{wiki:this.wiki,document:this.srcDocument,parentWidget:$tw.rootWidget})).render(o,null),(m=this.wiki.makeTranscludeWidget(t,{field:'subtitle',mode:'inline',children:[{type:'text',attributes:{text:{type:'string',value:t}}}],parentWidget:u,document:this.srcDocument,variables:g,importPageMacros:!0})).render(l,null),(h=this.wiki.makeTranscludeWidget(t,{parentWidget:u,document:this.srcDocument,variables:g,importPageMacros:!0})).render(o,null),e.downloadLink&&(p.href=e.downloadLink,p.appendChild(this.srcDocument.createTextNode('Right-click to save changes')),o.appendChild(p)),f.fields&&f.fields.help&&((p=this.srcDocument.createElement('a')).setAttribute('href',f.fields.help),p.setAttribute('target','_blank'),p.setAttribute('rel','noopener noreferrer'),p.appendChild(this.srcDocument.createTextNode('Help')),d.appendChild(p),d.style.float='left'),(w=this.wiki.makeTranscludeWidget(t,{field:'footer',mode:'inline',children:[{type:'button',attributes:{message:{type:'string',value:'tm-close-tiddler'}},children:[{type:'text',attributes:{text:{type:'string',value:$tw.language.getString('Buttons/Close/Caption')}}}]}],parentWidget:u,document:this.srcDocument,variables:g,importPageMacros:!0})).render(c,null),i=function(t){m.refresh(t,a,null),h.refresh(t,o,null),w.refresh(t,c,null)},this.wiki.addEventListener('change',i),g=function(t){return v.wiki.removeEventListener('change',i),v.modalCount--,v.adjustPageClass(),$tw.utils.forceLayout(r),$tw.utils.forceLayout(n),$tw.utils.setStyle(r,[{opacity:'0'}]),$tw.utils.setStyle(n,[{transform:'translateY('+v.srcWindow.innerHeight+'px)'}]),v.srcWindow.setTimeout(function(){s.parentNode&&v.srcDocument.body.removeChild(s)},y),!1},m.addEventListener('tm-close-tiddler',g,!1),h.addEventListener('tm-close-tiddler',g,!1),w.addEventListener('tm-close-tiddler',g,!1),$tw.utils.setStyle(r,[{opacity:'0'}]),$tw.utils.setStyle(n,[{transformOrigin:'0% 0%'},{transform:'translateY('+-this.srcWindow.innerHeight+'px)'}]),this.srcDocument.body.appendChild(s),$tw.utils.setStyle(r,[{transition:'opacity '+y+'ms ease-out'}]),$tw.utils.setStyle(n,[{transition:$tw.utils.roundTripPropertyName('transform')+' '+y+'ms ease-in-out'}]),$tw.utils.forceLayout(r),$tw.utils.forceLayout(n),$tw.utils.setStyle(r,[{opacity:'0.7'}]),$tw.utils.setStyle(n,[{transform:'translateY(0px)'}]))},t.prototype.adjustPageClass=function(){var t=$tw.pageContainer?$tw.pageContainer===this.srcDocument.body.firstChild?$tw.pageContainer:this.srcDocument.body.firstChild:null;t&&$tw.utils.toggleClass(t,'tc-modal-displayed',0<this.modalCount)},exports.Modal=t}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/dom/notifier.js":{"text":"!function(){'use strict';function t(t){this.wiki=t}require('$:/core/modules/widgets/widget.js'),t.prototype.display=function(t,e){e=e||{};var i,n,o=this,r=document.createElement('div'),s=this.wiki.getTiddler(t),a=$tw.utils.getAnimationDuration();s&&($tw.utils.addClass(r,'tc-notification'),e=$tw.utils.extend({currentTiddler:t},e.variables),(n=this.wiki.makeTranscludeWidget(t,{parentWidget:$tw.rootWidget,document:document,variables:e,importPageMacros:!0})).render(r,null),i=function(t){n.refresh(t,r,null)},this.wiki.addEventListener('change',i),$tw.utils.setStyle(r,[{opacity:'0'},{transformOrigin:'0% 0%'},{transform:'translateY('+-window.innerHeight+'px)'},{transition:'opacity '+a+'ms ease-out, '+$tw.utils.roundTripPropertyName('transform')+' '+a+'ms ease-in-out'}]),document.body.appendChild(r),$tw.utils.forceLayout(r),$tw.utils.setStyle(r,[{opacity:'1.0'},{transform:'translateY(0px)'}]),window.setTimeout(function(){o.wiki.removeEventListener('change',i),$tw.utils.forceLayout(r),$tw.utils.setStyle(r,[{opacity:'0.0'},{transform:'translateX('+r.offsetWidth+'px)'}]),setTimeout(function(){r.parentNode&&document.body.removeChild(r)},a)},$tw.config.preferences.notificationDuration))},exports.Notifier=t}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/dom/popup.js":{"text":"!function(){'use strict';function t(t){t=t||{},this.rootElement=t.rootElement||document.documentElement,this.popups=[]}t.prototype.triggerPopup=function(t){var e=this.findPopup(t.title),o=-1===e;void 0!==t.force&&(o=t.force),o?this.show(t):this.cancel(e)},t.prototype.findPopup=function(t){for(var e=-1,o=0;o<this.popups.length;o++)this.popups[o].title===t&&(e=o);return e},t.prototype.handleEvent=function(t){var e;'click'===t.type&&(t=(e=this.popupInfo(t.target)).popupLevel-1,e.isHandle&&t++,this.cancel(t))},t.prototype.popupInfo=function(t){for(var e=!1,o=0,p=t;p;)$tw.utils.hasClass(p,'tc-popup-handle')&&(e=!0,o++),$tw.utils.hasClass(p,'tc-popup-keep')&&(e=!0),p=p.parentNode;for(p=t;p;)$tw.utils.hasClass(p,'tc-popup')&&o++,p=p.parentNode;return{popupLevel:o,isHandle:e}},t.prototype.show=function(t){var e=this.popupInfo(t.domNode);this.cancel(e.popupLevel),t.floating||-1!==this.findPopup(t.title)||this.popups.push({title:t.title,wiki:t.wiki,domNode:t.domNode,noStateReference:t.noStateReference});e='('+(e=t.domNodeRect||{left:t.domNode.offsetLeft,top:t.domNode.offsetTop,width:t.domNode.offsetWidth,height:t.domNode.offsetHeight}).left+','+e.top+','+e.width+','+e.height+')';t.noStateReference?t.wiki.setText(t.title,'text',void 0,e):t.wiki.setTextReference(t.title,e),0<this.popups.length&&this.rootElement.addEventListener('click',this,!0)},t.prototype.cancel=function(t){for(var e=this.popups.length,o=t=Math.max(0,Math.min(t,e));o<e;o++){var p=this.popups.pop();p.title&&(p.noStateReference?p.wiki.deleteTiddler(p.title):p.wiki.deleteTiddler($tw.utils.parseTextReference(p.title).title))}0===this.popups.length&&this.rootElement.removeEventListener('click',this,!1)},t.prototype.readPopupState=function(t){return/^\\((-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+)\\)$/.test(t)},exports.Popup=t}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/dom/scroller.js":{"text":"!function(){'use strict';function t(){this.idRequestFrame=null,this.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},this.cancelAnimationFrame=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelAnimationFrame||window.mozCancelRequestAnimationFrame||function(t){window.clearTimeout(t)}}t.prototype.isScrolling=function(){return null!==this.idRequestFrame},t.prototype.cancelScroll=function(t){this.idRequestFrame&&(this.cancelAnimationFrame.call(t,this.idRequestFrame),this.idRequestFrame=null)},t.prototype.handleEvent=function(t){return'tm-scroll'!==t.type||(t.paramObject&&t.paramObject.selector?this.scrollSelectorIntoView(null,t.paramObject.selector):this.scrollIntoView(t.target),!1)},t.prototype.scrollIntoView=function(r,l){var a=this,c=$tw.utils.getAnimationDuration(),s=r?r.ownerDocument.defaultView:window;this.cancelScroll(s),this.startTime=Date.now();var t=s.document.querySelector('.tc-adjust-top-of-scroll'),u=0;t&&(u=t.offsetHeight);function m(t,e,i,n){return t<50&&(t=0),t}(function t(){var e=c<=0?1:(Date.now()-a.startTime)/c;1<=e&&(a.cancelScroll(s),e=1),e=$tw.utils.slowInSlowOut(e);var i,n,o=$tw.utils.getScrollPosition(s),n=(i='function'==typeof l?l():r.getBoundingClientRect(),n=$tw.utils.getScrollPosition(s),{left:i.left+n.x,top:i.top+n.y-u,width:i.width,height:i.height}),i=m(n.left,0,o.x,s.innerWidth),n=m(n.top,0,o.y,s.innerHeight);s.scrollTo(o.x+(i-o.x)*e,o.y+(n-o.y)*e),e<1&&(a.idRequestFrame=a.requestAnimationFrame.call(s,t))})()},t.prototype.scrollSelectorIntoView=function(t,e,i){e=(t=t||document.body).querySelector(e);e&&this.scrollIntoView(e,i)},exports.PageScroller=t}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/edition-info.js":{"text":"!function(){'use strict';var f,s=require('fs'),c=require('path');exports.getEditionInfo=function(){if(!f){var r=$tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar);f={};for(var t=0;t<r.length;t++)for(var i=r[t],e=s.readdirSync(i),n=0;n<e.length;n++){var a,o=e[n];if(!f[o]&&$tw.utils.isDirectory(c.resolve(i,o))){try{a=JSON.parse(s.readFileSync(c.resolve(i,o,'tiddlywiki.info'),'utf8'))}catch(r){}a&&(f[o]=a)}}}return f}}();","type":"application/javascript","module-type":"utils-node"},"$:/core/modules/utils/escapecss.js":{"text":"!function(){'use strict';exports.escapeCSS=$tw.browser&&window.CSS&&window.CSS.escape?window.CSS.escape:function(e){if(0==arguments.length)throw new TypeError('`CSS.escape` requires an argument.');for(var r,t=String(e),n=t.length,o=-1,S='',a=t.charCodeAt(0);++o<n;)0!=(r=t.charCodeAt(o))?S+=1<=r&&r<=31||127==r||0==o&&48<=r&&r<=57||1==o&&48<=r&&r<=57&&45==a?'\\\\'+r.toString(16)+' ':(0!=o||1!=n||45!=r)&&(128<=r||45==r||95==r||48<=r&&r<=57||65<=r&&r<=90||97<=r&&r<=122)?t.charAt(o):'\\\\'+t.charAt(o):S+='�';return S}}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/fakedom.js":{"text":"!function(){'use strict';function n(t){null!==e&&(t.sequenceNumber=e++)}var e=null,t=function(){throw TypeError('Illegal constructor')};function i(t){n(this),this.textContent=t+''}function r(t,e){n(this),this.isTiddlyWikiFakeDom=!0,this.tag=t,this.attributes={},this.isRaw=!1,this.children=[],this._style={},this.namespaceURI=e||'http://www.w3.org/1999/xhtml'}Object.defineProperty(t.prototype,'ELEMENT_NODE',{get:function(){return 1}}),Object.defineProperty(t.prototype,'TEXT_NODE',{get:function(){return 3}}),i.prototype=Object.create(t.prototype),Object.defineProperty(i.prototype,'nodeType',{get:function(){return this.TEXT_NODE}}),Object.defineProperty(i.prototype,'formattedTextContent',{get:function(){return this.textContent.replace(/(\\r?\\n)/g,'')}}),r.prototype=Object.create(t.prototype),Object.defineProperty(r.prototype,'style',{get:function(){return this._style},set:function(t){var n=this;t=t||'',$tw.utils.each(t.split(';'),function(t){var e=t.split(':'),t=$tw.utils.trim(e[0]),e=$tw.utils.trim(e[1]);t&&e&&(n._style[$tw.utils.convertStyleNameToPropertyName(t)]=e)})}}),Object.defineProperty(r.prototype,'nodeType',{get:function(){return this.ELEMENT_NODE}}),r.prototype.getAttribute=function(t){if(this.isRaw)throw'Cannot getAttribute on a raw TW_Element';return this.attributes[t]},r.prototype.setAttribute=function(t,e){if(this.isRaw)throw'Cannot setAttribute on a raw TW_Element';this.attributes[t]=e+''},r.prototype.setAttributeNS=function(t,e,n){this.setAttribute(e,n)},r.prototype.removeAttribute=function(t){if(this.isRaw)throw'Cannot removeAttribute on a raw TW_Element';$tw.utils.hop(this.attributes,t)&&delete this.attributes[t]},r.prototype.appendChild=function(t){this.children.push(t),t.parentNode=this},r.prototype.insertBefore=function(t,e){var n;e&&-1!==(n=this.children.indexOf(e))?(this.children.splice(n,0,t),t.parentNode=this):this.appendChild(t)},r.prototype.removeChild=function(t){t=this.children.indexOf(t);-1!==t&&this.children.splice(t,1)},r.prototype.hasChildNodes=function(){return!!this.children.length},Object.defineProperty(r.prototype,'childNodes',{get:function(){return this.children}}),Object.defineProperty(r.prototype,'firstChild',{get:function(){return this.children[0]}}),r.prototype.addEventListener=function(t,e,n){},Object.defineProperty(r.prototype,'tagName',{get:function(){return this.tag||''}}),Object.defineProperty(r.prototype,'className',{get:function(){return this.attributes.class||''},set:function(t){this.attributes.class=t+''}}),Object.defineProperty(r.prototype,'value',{get:function(){return this.attributes.value||''},set:function(t){this.attributes.value=t+''}}),Object.defineProperty(r.prototype,'outerHTML',{get:function(){var t,e,n,i=[];if(i.push('<',this.tag),this.attributes){for(e in t=[],this.attributes)t.push(e);for(t.sort(),e=0;e<t.length;e++)void 0!==(n=this.attributes[t[e]])&&i.push(' ',t[e],'=\"',$tw.utils.htmlEncode(n),'\"')}if(this._style){var r,o=[];for(r in this._style)o.push($tw.utils.convertPropertyNameToStyleName(r)+':'+this._style[r]+';');0<o.length&&i.push(' style=\"',o.join(''),'\"')}return i.push('>'),-1===$tw.config.htmlVoidElements.indexOf(this.tag)&&(i.push(this.innerHTML),i.push('</',this.tag,'>')),i.join('')}}),Object.defineProperty(r.prototype,'innerHTML',{get:function(){if(this.isRaw)return this.rawHTML;var e=[];return $tw.utils.each(this.children,function(t){t instanceof r?e.push(t.outerHTML):t instanceof i&&e.push($tw.utils.htmlEncode(t.textContent))}),e.join('')},set:function(t){this.isRaw=!0,this.rawHTML=t,this.rawTextContent=null}}),Object.defineProperty(r.prototype,'textInnerHTML',{set:function(t){if(!this.isRaw)throw'Cannot set textInnerHTML of a non-raw TW_Element';this.rawTextContent=t}}),Object.defineProperty(r.prototype,'textContent',{get:function(){if(this.isRaw)return null===this.rawTextContent?'':this.rawTextContent;var e=[];return $tw.utils.each(this.children,function(t){e.push(t.textContent)}),e.join('')},set:function(t){this.children=[new i(t)]}}),Object.defineProperty(r.prototype,'formattedTextContent',{get:function(){if(this.isRaw)return'';var e=[],t=-1!==$tw.config.htmlBlockElements.indexOf(this.tag);return t&&e.push('\\n'),'li'===this.tag&&e.push('* '),$tw.utils.each(this.children,function(t){e.push(t.formattedTextContent)}),t&&e.push('\\n'),e.join('')}}),t={setSequenceNumber:function(t){e=t},createElementNS:function(t,e){return new r(e,t)},createElement:function(t){return new r(t)},createTextNode:function(t){return new i(t)},compatMode:'CSS1Compat',isTiddlyWikiFakeDom:!0},exports.fakeDocument=t}();","type":"application/javascript","module-type":"global"},"$:/core/modules/utils/filesystem.js":{"text":"!function(){'use strict';var o,u=require('fs'),f=require('path');exports.getSubdirectories=function(t){if(!$tw.utils.isDirectory(t))return null;var i=[];return $tw.utils.each(u.readdirSync(t),function(e){$tw.utils.isDirectory(f.resolve(t,e))&&i.push(e)}),i},exports.copyDirectory=function(e,t){if(e=f.resolve($tw.utils.removeTrailingSeparator(e)),t=f.resolve($tw.utils.removeTrailingSeparator(t)),e.substring(0,t.length)===t||t.substring(0,e.length)===e)return'Cannot copy nested directories';var i=$tw.utils.createDirectory(t);if(i)return i;var o=function(e,t){var i=u.lstatSync(e);u.existsSync(t);if(i.isFile())$tw.utils.copyFile(e,t);else if(i.isDirectory())for(var r=u.readdirSync(e),n=0;n<r.length;n++){var l=r[n],l=o(e+f.sep+l,t+f.sep+l);if(l)return l}};return o(e,t),null},exports.copyFile=function(e,t){o=o||Buffer.alloc(65536),$tw.utils.createDirectory(f.dirname(t));for(var i=u.openSync(e,'r'),r=u.openSync(t,'w'),n=1,l=0;0<n;)n=u.readSync(i,o,0,65536,l),u.writeSync(r,o,0,n),l+=n;return u.closeSync(i),u.closeSync(r),null},exports.removeTrailingSeparator=function(e){var t=e.length;return e.charAt(t-1)===f.sep&&(e=e.substr(0,t-1)),e},exports.createDirectory=function(e){e.substr(e.length-1,1)!==f.sep&&(e+=f.sep);for(var t=1,t=e.indexOf(f.sep,t);-1!==t;){var i=e.substr(0,t);if(!$tw.utils.isDirectory(i))try{u.mkdirSync(i)}catch(e){return'Error creating directory \\''+i+'\\''}t=e.indexOf(f.sep,t+1)}return null},exports.createFileDirectories=function(e){return $tw.utils.createDirectory(f.dirname(e))},exports.deleteDirectory=function(e){if(u.existsSync(e)){for(var t=u.readdirSync(e),i=0;i<t.length;i++){var r=e+f.sep+t[i];u.lstatSync(r).isDirectory()?$tw.utils.deleteDirectory(r):u.unlinkSync(r)}u.rmdirSync(e)}return null},exports.isDirectory=function(e){return u.existsSync(e)&&u.statSync(e).isDirectory()},exports.isDirectoryEmpty=function(e){if(!$tw.utils.isDirectory(e))return!1;var e=u.readdirSync(e),i=!0;return $tw.utils.each(e,function(e,t){'.'!==e.charAt(0)&&(i=!1)}),i},exports.deleteEmptyDirs=function(i,r){var n=this;u.readdir(i,function(e,t){return e?r(e):0<t.length?r(null):void u.rmdir(i,function(e){return e?r(e):void n.deleteEmptyDirs(f.dirname(i),r)})})},exports.generateTiddlerFileInfo=function(e,t){var i={};t.fileInfo&&t.fileInfo.isEditableFile&&(i.isEditableFile=!0,i.originalpath=t.fileInfo.originalpath);var r,n,l=!1;$tw.utils.each(e.getFieldStrings(),function(e,t){'text'!==t&&(l=(l=l||/[\\x00-\\x1F]/gm.test(e))||$tw.utils.trim(e)!==e)}),l?(i.type='application/json',i.hasMetaFile=!1):('text/vnd.tiddlywiki'===(r=e.fields.type||'text/vnd.tiddlywiki')?(i.type='application/x-tiddler',i.hasMetaFile=!1):(i.type=r,i.hasMetaFile=!0),t.extFilters&&(n=$tw.utils.generateTiddlerExtension(e.fields.title,{extFilters:t.extFilters,wiki:t.wiki}))&&('.tid'===n?(i.type='application/x-tiddler',i.hasMetaFile=!1):'.json'===n?(i.type='application/json',i.hasMetaFile=!1):(o=$tw.utils.getFileExtensionInfo(n),i.type=o?o.type:null,i.encoding=$tw.utils.getTypeEncoding(n),i.hasMetaFile=!0)));var o=$tw.config.contentTypeInfo[i.type]||{extension:''};return i.filepath=$tw.utils.generateTiddlerFilepath(e.fields.title,{extension:n||o.extension,directory:t.directory,pathFilters:t.pathFilters,wiki:t.wiki,fileInfo:t.fileInfo}),i},exports.generateTiddlerExtension=function(i,r){var n;return r.extFilters&&r.wiki&&$tw.utils.each(r.extFilters,function(e){var t;n||(t=r.wiki.makeTiddlerIterator([i]),0<(t=r.wiki.filterTiddlers(e,null,t)).length&&(n=t[0]))}),n},exports.generateTiddlerFilepath=function(i,r){var n,e=r.directory||'',t=r.extension||'',l=r.fileInfo&&r.fileInfo.originalpath?r.fileInfo.originalpath:'';r.pathFilters&&r.wiki&&$tw.utils.each(r.pathFilters,function(e){var t;n||(t=r.wiki.makeTiddlerIterator([i]),0<(t=r.wiki.filterTiddlers(e,null,t)).length&&(n=t[0]))}),n=(n=(n=!n&&l?(c=f.extname(l),l.substring(0,l.length-c.length)):n||(n=i).replace(/\\/|\\\\/g,'_')).replace(/^(con|prn|aux|nul|com[0-9]|lpt[0-9])$/i,'_$1_')).replace(/^ +/,function(e){return e.replace(/ /g,'_')}),/^\\.{1,2}[/\\\\]/g.test(n)||(n=n.replace(/^\\.+/g,function(e){return e.replace(/\\./g,'_')})),n=n.replace(/[\\x00-\\x1f\\x80-\\x9f]/g,'_'),n=$tw.utils.transliterate(n.replace(/<|>|~|\\:|\\\"|\\||\\?|\\*|\\^/g,'_')),32<(t=t.replace(/[\\. ]+$/,function(e){return e.replace(/[\\. ]/g,'_')})).length&&(t=t.substr(0,32)),n.substring(n.length-t.length)===t&&(n=n.substring(0,n.length-t.length)),200<n.length&&(n=n.substr(0,200)),n&&!/^_+$/g.test(n)||(n='',$tw.utils.each(i.split(''),function(e){n&&(n+='-'),n+=e.charCodeAt(0).toString()}));for(var o,a=r.fileInfo?r.fileInfo.filepath:void 0,s=0;o=f.resolve(e,n+(s?'_'+s:'')+t),(!a||a!=o)&&(s++,u.existsSync(o)););var c=$tw.hooks.invokeHook('th-make-tiddler-path',o,o);return(1==(r.fileInfo||{writeError:!1}).writeError||!(0==c.indexOf($tw.boot.wikiTiddlersPath)||0==c.indexOf(f.resolve(e))||0==c.indexOf(f.resolve($tw.boot.wikiPath))||0==c.indexOf(f.resolve($tw.boot.wikiTiddlersPath,l))))&&(c=f.resolve(e,encodeURIComponent(o))),c},exports.saveTiddlerToFile=function(t,i,r){var e;$tw.utils.createDirectory(f.dirname(i.filepath)),i.hasMetaFile?(e=$tw.config.contentTypeInfo[t.fields.type||'text/plain']||{encoding:'utf8'},u.writeFile(i.filepath,t.fields.text||'',e.encoding,function(e){return e?r(e):void u.writeFile(i.filepath+'.meta',t.getFieldStringBlock({exclude:['text','bag']}),'utf8',function(e){return e?r(e):r(null,i)})})):'application/x-tiddler'===i.type?u.writeFile(i.filepath,t.getFieldStringBlock({exclude:['text','bag']})+(t.fields.text?'\\n\\n'+t.fields.text:''),'utf8',function(e){return e?r(e):r(null,i)}):u.writeFile(i.filepath,JSON.stringify([t.getFieldStrings({exclude:['bag']})],null,$tw.config.preferences.jsonSpaces),'utf8',function(e){return e?r(e):r(null,i)})},exports.saveTiddlerToFileSync=function(e,t){var i;return $tw.utils.createDirectory(f.dirname(t.filepath)),t.hasMetaFile?(i=$tw.config.contentTypeInfo[e.fields.type||'text/plain']||{encoding:'utf8'},u.writeFileSync(t.filepath,e.fields.text||'',i.encoding),u.writeFileSync(t.filepath+'.meta',e.getFieldStringBlock({exclude:['text','bag']}),'utf8')):'application/x-tiddler'===t.type?u.writeFileSync(t.filepath,e.getFieldStringBlock({exclude:['text','bag']})+(e.fields.text?'\\n\\n'+e.fields.text:''),'utf8'):u.writeFileSync(t.filepath,JSON.stringify([e.getFieldStrings({exclude:['bag']})],null,$tw.config.preferences.jsonSpaces),'utf8'),t},exports.deleteTiddlerFile=function(t,i){if(!t.filepath||!u.existsSync(t.filepath))return $tw.syncer.displayError('Server deleteTiddlerFile task failed for filepath: '+t.filepath),i(null,t);u.unlink(t.filepath,function(e){return e?i(e):t.hasMetaFile&&u.existsSync(t.filepath+'.meta')?void u.unlink(t.filepath+'.meta',function(e){return e?i(e):$tw.utils.deleteEmptyDirs(f.dirname(t.filepath),function(e){return e?i(e):i(null,t)})}):$tw.utils.deleteEmptyDirs(f.dirname(t.filepath),function(e){return e?i(e):i(null,t)})})},exports.cleanupTiddlerFiles=function(e,t){var i=e.adaptorInfo||{},r=e.bootInfo||{},n=e.title||'undefined';if(!i.filepath||!r.filepath||i.filepath===r.filepath)return t(null,r);$tw.utils.deleteTiddlerFile(i,function(e){return e?'EPERM'!=e.code&&'EACCES'!=e.code||'unlink'!=e.syscall?t(e):($tw.syncer.displayError('Server desynchronized. Error cleaning up previous file for tiddler: \"'+n+'\"',e),t(null,r)):t(null,r)})}}();","type":"application/javascript","module-type":"utils-node"},"$:/core/modules/utils/linkedlist.js":{"text":"function t(){this.clear()}function i(t,e){var i,r=t.prev[e],n=t.next[e],o=r,s=n;if('object'==typeof n&&(s=n[0],o=r[0]),t.first===e)t.first=s;else{if(void 0===o)return;'object'==typeof t.next[o]?void 0===s?t.next[o].pop():(i=t.next[o].indexOf(e),t.next[o][i]=s):t.next[o]=s}void 0!==s?'object'==typeof t.prev[s]?void 0===o?t.prev[s].shift():(i=t.prev[s].indexOf(e),t.prev[s][i]=o):t.prev[s]=o:t.last=o,'object'==typeof n?(n.shift(),r.shift()):(t.next[e]=void 0,t.prev[e]=void 0),--t.length}function r(t,e){void 0===t.first?t.first=e:(t.first===e||void 0!==t.prev[e]?('string'==typeof t.next[e]?(t.next[e]=[t.next[e]],t.prev[e]=[t.prev[e]]):void 0===t.next[e]&&(t.next[e]=[],t.prev[e]=[t.prev[e]]),t.prev[e].push(t.last)):t.prev[e]=t.last,'object'==typeof t.next[t.last]?t.next[t.last].push(e):t.next[t.last]=e),t.last=e,t.length+=1}function n(t){if('string'!=typeof t)throw'Linked List only accepts string values, not '+t}t.prototype.clear=function(){this.next=Object.create(null),this.prev=Object.create(null),this.first=void 0,this.last=void 0,this.length=0},t.prototype.remove=function(t){if($tw.utils.isArray(t)){for(var e=0;e<t.length;e++)n(t[e]);for(e=0;e<t.length;e++)i(this,t[e])}else n(t),i(this,t)},t.prototype.push=function(){var t=arguments;$tw.utils.isArray(t[0])&&(t=t[0]);for(var e=0;e<t.length;e++)n(t[e]);for(e=0;e<t.length;e++)r(this,t[e]);return this.length},t.prototype.pushTop=function(t){if($tw.utils.isArray(t)){for(var e=0;e<t.length;e++)n(t[e]);for(e=0;e<t.length;e++)i(this,t[e]);for(e=0;e<t.length;e++)r(this,t[e])}else n(t),i(this,t),r(this,t)},t.prototype.each=function(t){for(var e=Object.create(null),i=this.first;void 0!==i;){t(i);var r,n=this.next[i],i='object'==typeof n?(r=e[i]||0,e[i]=r+1,n[r]):n}},t.prototype.toArray=function(){var e=new Array(this.length),i=0;return this.each(function(t){e[i++]=t}),e},exports.LinkedList=t;","module-type":"utils","type":"application/javascript"},"$:/core/modules/utils/logger.js":{"text":"!function(){'use strict';var s='$:/tags/Alert';function e(e,t){t=t||{},this.componentName=e||'',this.colour=t.colour||'white',this.enable=!('enable'in t)||t.enable,this.save=!('save'in t)||t.save,this.saveLimit=t.saveLimit||102400,(this.saveBufferLogger=this).buffer='',this.alertCount=0}e.prototype.setSaveBuffer=function(e){this.saveBufferLogger=e},e.prototype.log=function(){var i=this;if(this.enable&&(this.saveBufferLogger.save&&(this.saveBufferLogger.buffer+=$tw.utils.formatDateString(new Date,'YYYY MM DD 0hh:0mm:0ss.0XXX')+':',$tw.utils.each(Array.prototype.slice.call(arguments,0),function(e,t){i.saveBufferLogger.buffer+=' '+e}),this.saveBufferLogger.buffer+='\\n',this.saveBufferLogger.buffer=this.saveBufferLogger.buffer.slice(-this.saveBufferLogger.saveLimit)),void 0!==console&&void 0!==console.log))return Function.apply.call(console.log,console,[$tw.utils.terminalColour(this.colour),this.componentName+':'].concat(Array.prototype.slice.call(arguments,0)).concat($tw.utils.terminalColour()))},e.prototype.getBuffer=function(){return this.saveBufferLogger.buffer},e.prototype.table=function(e){(console.table||console.log)(e)},e.prototype.alert=function(){var t,e,i,o,r;this.enable&&(t=Array.prototype.join.call(arguments,' '),$tw.browser?(e=$tw.wiki.getTiddlersWithTag(s),r=this,$tw.utils.each(e,function(e){e=$tw.wiki.getTiddler(e);e.fields.text===t&&e.fields.component===r.componentName&&e.fields.modified&&(!i||e.fields.modified<i.modified)&&(i=$tw.utils.extend({},e.fields))}),i?o=i.count||1:(i={title:$tw.wiki.generateNewTitle('$:/temp/alerts/alert',{prefix:''}),text:t,tags:[s],component:this.componentName},o=0,this.alertCount+=1),i.modified=new Date,1<++o?i.count=o:i.count=void 0,$tw.wiki.addTiddler(new $tw.Tiddler(i)),this.log.apply(this,Array.prototype.slice.call(arguments,0))):console.error('\u001b[1;33m'+t+'\u001b[0m'))},e.prototype.clearAlerts=function(){var t=this;$tw.browser&&0<this.alertCount&&($tw.utils.each($tw.wiki.getTiddlersWithTag(s),function(e){$tw.wiki.getTiddler(e).fields.component===t.componentName&&$tw.wiki.deleteTiddler(e)}),this.alertCount=0)},exports.Logger=e}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/parsetree.js":{"text":"!function(){'use strict';exports.addAttributeToParseTreeNode=function(t,e,s){t.attributes=t.attributes||{},t.attributes[e]={type:'string',value:s}},exports.getAttributeValueFromParseTreeNode=function(t,e,s){return t.attributes&&t.attributes[e]&&void 0!==t.attributes[e].value?t.attributes[e].value:s},exports.addClassToParseTreeNode=function(t,e){var s=[];t.attributes=t.attributes||{},t.attributes.class=t.attributes.class||{type:'string',value:''},'string'===t.attributes.class.type&&(''!==t.attributes.class.value&&(s=t.attributes.class.value.split(' ')),''!==e&&$tw.utils.pushTop(s,e.split(' ')),t.attributes.class.value=s.join(' '))},exports.addStyleToParseTreeNode=function(t,e,s){t.attributes=t.attributes||{},t.attributes.style=t.attributes.style||{type:'string',value:''},'string'===t.attributes.style.type&&(t.attributes.style.value+=e+':'+s+';')},exports.findParseTreeNode=function(t,e){for(var s=0;s<t.length;s++)if(t[s].type===e.type&&t[s].tag===e.tag)return t[s]},exports.getParseTreeText=function e(t){var s=[];if($tw.utils.isArray(t))$tw.utils.each(t,function(t){s.push(e(t))});else if('text'===t.type&&s.push(t.text),t.children)return e(t.children);return s.join('')}}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/performance.js":{"text":"!function(){'use strict';function e(e){this.enabled=!!e,this.measures={},this.logger=new $tw.utils.Logger('performance'),this.showGreeting()}e.prototype.showGreeting=function(){$tw.browser&&this.logger.log('Execute $tw.perf.log(); to see filter execution timings')},e.prototype.report=function(i,s){var r=this;return this.enabled?function(){var e=$tw.utils.timer(),t=s.apply(this,arguments);return r.logger.log(i+': '+$tw.utils.timer(e).toFixed(2)+'ms'),t}:s},e.prototype.log=function(){var i=this,s=0,e=Object.keys(this.measures).sort(function(e,t){return i.measures[e].time>i.measures[t].time?-1:i.measures[e].time<i.measures[t].time?1:0});$tw.utils.each(e,function(e){s+=i.measures[e].time});var r=[];$tw.utils.each(e,function(e){var t=i.measures[e];r.push({name:e,invocations:t.invocations,avgTime:t.time/t.invocations,totalTime:t.time,percentTime:t.time/s*100})}),i.logger.table(r)},e.prototype.measure=function(i,s){var r=this;return this.enabled?function(){var e=$tw.utils.timer(),t=s.apply(this,arguments);return i in r.measures||(r.measures[i]={time:0,invocations:0}),r.measures[i].time+=$tw.utils.timer(e),r.measures[i].invocations++,t}:s},exports.Performance=e}();","type":"application/javascript","module-type":"global"},"$:/core/modules/utils/pluginmaker.js":{"text":"!function(){'use strict';exports.repackPlugin=function(i,t,e){t=t||[],e=e||[];var r,l=$tw.wiki.getTiddler(i);if(!l)throw'No such tiddler as '+i;try{r=JSON.parse(l.fields.text)}catch(t){throw'Cannot parse plugin tiddler '+i+'\\n'+$tw.language.getString('Error/Caption')+': '+t}var s=Object.keys(r.tiddlers);$tw.utils.pushTop(s,t);for(var d=s.length-1;0<=d;d--)-1!==e.indexOf(s[d])&&s.splice(d,1);var n={};$tw.utils.each(s,function(t){var e=$tw.wiki.getTiddler(t),r={};$tw.utils.each(e.fields,function(t,i){r[i]=e.getFieldString(i)}),n[t]=r});var a=$tw.utils.parseVersion(l.getFieldString('version')||'0.0.0')||{major:'0',minor:'0',patch:'0'};a.patch++;t=a.major+'.'+a.minor+'.'+a.patch;return a.prerelease&&(t+='-'+a.prerelease),a.build&&(t+='+'+a.build),$tw.wiki.addTiddler(new $tw.Tiddler(l,{text:JSON.stringify({tiddlers:n},null,4),version:t})),$tw.utils.each(s,function(t){$tw.wiki.tiddlerExists(t)&&$tw.wiki.deleteTiddler(t)}),$tw.rootWidget.dispatchEvent({type:'tm-auto-save-wiki'}),'Plugin '+i+' successfully saved'}}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/transliterate.js":{"text":"!function(){'use strict';exports.transliterationPairs={'Á':'A','Ă':'A','Ắ':'A','Ặ':'A','Ằ':'A','Ẳ':'A','Ẵ':'A','Ǎ':'A','Â':'A','Ấ':'A','Ậ':'A','Ầ':'A','Ẩ':'A','Ẫ':'A','Ä':'A','Ǟ':'A','Ȧ':'A','Ǡ':'A','Ạ':'A','Ȁ':'A','À':'A','Ả':'A','Ȃ':'A','Ā':'A','Ą':'A','Å':'A','Ǻ':'A','Ḁ':'A','Ⱥ':'A','Ã':'A','Ꜳ':'AA','Æ':'AE','Ǽ':'AE','Ǣ':'AE','Ꜵ':'AO','Ꜷ':'AU','Ꜹ':'AV','Ꜻ':'AV','Ꜽ':'AY','Ḃ':'B','Ḅ':'B','Ɓ':'B','Ḇ':'B','Ƀ':'B','Ƃ':'B','Ć':'C','Č':'C','Ç':'C','Ḉ':'C','Ĉ':'C','Ċ':'C','Ƈ':'C','Ȼ':'C','Ď':'D','Ḑ':'D','Ḓ':'D','Ḋ':'D','Ḍ':'D','Ɗ':'D','Ḏ':'D','Dz':'D','Dž':'D','Đ':'D','Ƌ':'D','DZ':'DZ','DŽ':'DZ','É':'E','Ĕ':'E','Ě':'E','Ȩ':'E','Ḝ':'E','Ê':'E','Ế':'E','Ệ':'E','Ề':'E','Ể':'E','Ễ':'E','Ḙ':'E','Ë':'E','Ė':'E','Ẹ':'E','Ȅ':'E','È':'E','Ẻ':'E','Ȇ':'E','Ē':'E','Ḗ':'E','Ḕ':'E','Ę':'E','Ɇ':'E','Ẽ':'E','Ḛ':'E','Ꝫ':'ET','Ḟ':'F','Ƒ':'F','Ǵ':'G','Ğ':'G','Ǧ':'G','Ģ':'G','Ĝ':'G','Ġ':'G','Ɠ':'G','Ḡ':'G','Ǥ':'G','Ḫ':'H','Ȟ':'H','Ḩ':'H','Ĥ':'H','Ⱨ':'H','Ḧ':'H','Ḣ':'H','Ḥ':'H','Ħ':'H','Í':'I','Ĭ':'I','Ǐ':'I','Î':'I','Ï':'I','Ḯ':'I','İ':'I','Ị':'I','Ȉ':'I','Ì':'I','Ỉ':'I','Ȋ':'I','Ī':'I','Į':'I','Ɨ':'I','Ĩ':'I','Ḭ':'I','Ꝺ':'D','Ꝼ':'F','Ᵹ':'G','Ꞃ':'R','Ꞅ':'S','Ꞇ':'T','Ꝭ':'IS','Ĵ':'J','Ɉ':'J','Ḱ':'K','Ǩ':'K','Ķ':'K','Ⱪ':'K','Ꝃ':'K','Ḳ':'K','Ƙ':'K','Ḵ':'K','Ꝁ':'K','Ꝅ':'K','Ĺ':'L','Ƚ':'L','Ľ':'L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','Ɯ':'M','Ʌ':'V','Ꜩ':'TZ','Ú':'U','Ŭ':'U','Ǔ':'U','Û':'U','Ṷ':'U','Ü':'U','Ǘ':'U','Ǚ':'U','Ǜ':'U','Ǖ':'U','Ṳ':'U','Ụ':'U','Ű':'U','Ȕ':'U','Ù':'U','Ủ':'U','Ư':'U','Ứ':'U','Ự':'U','Ừ':'U','Ử':'U','Ữ':'U','Ȗ':'U','Ū':'U','Ṻ':'U','Ų':'U','Ů':'U','Ũ':'U','Ṹ':'U','Ṵ':'U','Ꝟ':'V','Ṿ':'V','Ʋ':'V','Ṽ':'V','Ꝡ':'VY','Ẃ':'W','Ŵ':'W','Ẅ':'W','Ẇ':'W','Ẉ':'W','Ẁ':'W','Ⱳ':'W','Ẍ':'X','Ẋ':'X','Ý':'Y','Ŷ':'Y','Ÿ':'Y','Ẏ':'Y','Ỵ':'Y','Ỳ':'Y','Ƴ':'Y','Ỷ':'Y','Ỿ':'Y','Ȳ':'Y','Ɏ':'Y','Ỹ':'Y','Ź':'Z','Ž':'Z','Ẑ':'Z','Ⱬ':'Z','Ż':'Z','Ẓ':'Z','Ȥ':'Z','Ẕ':'Z','Ƶ':'Z','IJ':'IJ','Œ':'OE','ᴀ':'A','ᴁ':'AE','ʙ':'B','ᴃ':'B','ᴄ':'C','ᴅ':'D','ᴇ':'E','ꜰ':'F','ɢ':'G','ʛ':'G','ʜ':'H','ɪ':'I','ʁ':'R','ᴊ':'J','ᴋ':'K','ʟ':'L','ᴌ':'L','ᴍ':'M','ɴ':'N','ᴏ':'O','ɶ':'OE','ᴐ':'O','ᴕ':'OU','ᴘ':'P','ʀ':'R','ᴎ':'N','ᴙ':'R','ꜱ':'S','ᴛ':'T','ⱻ':'E','ᴚ':'R','ᴜ':'U','ᴠ':'V','ᴡ':'W','ʏ':'Y','ᴢ':'Z','á':'a','ă':'a','ắ':'a','ặ':'a','ằ':'a','ẳ':'a','ẵ':'a','ǎ':'a','â':'a','ấ':'a','ậ':'a','ầ':'a','ẩ':'a','ẫ':'a','ä':'a','ǟ':'a','ȧ':'a','ǡ':'a','ạ':'a','ȁ':'a','à':'a','ả':'a','ȃ':'a','ā':'a','ą':'a','ᶏ':'a','ẚ':'a','å':'a','ǻ':'a','ḁ':'a','ⱥ':'a','ã':'a','ꜳ':'aa','æ':'ae','ǽ':'ae','ǣ':'ae','ꜵ':'ao','ꜷ':'au','ꜹ':'av','ꜻ':'av','ꜽ':'ay','ḃ':'b','ḅ':'b','ɓ':'b','ḇ':'b','ᵬ':'b','ᶀ':'b','ƀ':'b','ƃ':'b','ɵ':'o','ć':'c','č':'c','ç':'c','ḉ':'c','ĉ':'c','ɕ':'c','ċ':'c','ƈ':'c','ȼ':'c','ď':'d','ḑ':'d','ḓ':'d','ȡ':'d','ḋ':'d','ḍ':'d','ɗ':'d','ᶑ':'d','ḏ':'d','ᵭ':'d','ᶁ':'d','đ':'d','ɖ':'d','ƌ':'d','ı':'i','ȷ':'j','ɟ':'j','ʄ':'j','dz':'dz','dž':'dz','é':'e','ĕ':'e','ě':'e','ȩ':'e','ḝ':'e','ê':'e','ế':'e','ệ':'e','ề':'e','ể':'e','ễ':'e','ḙ':'e','ë':'e','ė':'e','ẹ':'e','ȅ':'e','è':'e','ẻ':'e','ȇ':'e','ē':'e','ḗ':'e','ḕ':'e','ⱸ':'e','ę':'e','ᶒ':'e','ɇ':'e','ẽ':'e','ḛ':'e','ꝫ':'et','ḟ':'f','ƒ':'f','ᵮ':'f','ᶂ':'f','ǵ':'g','ğ':'g','ǧ':'g','ģ':'g','ĝ':'g','ġ':'g','ɠ':'g','ḡ':'g','ᶃ':'g','ǥ':'g','ḫ':'h','ȟ':'h','ḩ':'h','ĥ':'h','ⱨ':'h','ḧ':'h','ḣ':'h','ḥ':'h','ɦ':'h','ẖ':'h','ħ':'h','ƕ':'hv','í':'i','ĭ':'i','ǐ':'i','î':'i','ï':'i','ḯ':'i','ị':'i','ȉ':'i','ì':'i','ỉ':'i','ȋ':'i','ī':'i','į':'i','ᶖ':'i','ɨ':'i','ĩ':'i','ḭ':'i','ꝺ':'d','ꝼ':'f','ᵹ':'g','ꞃ':'r','ꞅ':'s','ꞇ':'t','ꝭ':'is','ǰ':'j','ĵ':'j','ʝ':'j','ɉ':'j','ḱ':'k','ǩ':'k','ķ':'k','ⱪ':'k','ꝃ':'k','ḳ':'k','ƙ':'k','ḵ':'k','ᶄ':'k','ꝁ':'k','ꝅ':'k','ĺ':'l','ƚ':'l','ɬ':'l','ľ':'l','ļ':'l','ḽ':'l','ȴ':'l','ḷ':'l','ḹ':'l','ⱡ':'l','ꝉ':'l','ḻ':'l','ŀ':'l','ɫ':'l','ᶅ':'l','ɭ':'l','ł':'l','lj':'lj','ſ':'s','ẜ':'s','ẛ':'s','ẝ':'s','ḿ':'m','ṁ':'m','ṃ':'m','ɱ':'m','ᵯ':'m','ᶆ':'m','ń':'n','ň':'n','ņ':'n','ṋ':'n','ȵ':'n','ṅ':'n','ṇ':'n','ǹ':'n','ɲ':'n','ṉ':'n','ƞ':'n','ᵰ':'n','ᶇ':'n','ɳ':'n','ñ':'n','nj':'nj','ó':'o','ŏ':'o','ǒ':'o','ô':'o','ố':'o','ộ':'o','ồ':'o','ổ':'o','ỗ':'o','ö':'o','ȫ':'o','ȯ':'o','ȱ':'o','ọ':'o','ő':'o','ȍ':'o','ò':'o','ỏ':'o','ơ':'o','ớ':'o','ợ':'o','ờ':'o','ở':'o','ỡ':'o','ȏ':'o','ꝋ':'o','ꝍ':'o','ⱺ':'o','ō':'o','ṓ':'o','ṑ':'o','ǫ':'o','ǭ':'o','ø':'o','ǿ':'o','õ':'o','ṍ':'o','ṏ':'o','ȭ':'o','ƣ':'oi','ꝏ':'oo','ɛ':'e','ᶓ':'e','ɔ':'o','ᶗ':'o','ȣ':'ou','ṕ':'p','ṗ':'p','ꝓ':'p','ƥ':'p','ᵱ':'p','ᶈ':'p','ꝕ':'p','ᵽ':'p','ꝑ':'p','ꝙ':'q','ʠ':'q','ɋ':'q','ꝗ':'q','ŕ':'r','ř':'r','ŗ':'r','ṙ':'r','ṛ':'r','ṝ':'r','ȑ':'r','ɾ':'r','ᵳ':'r','ȓ':'r','ṟ':'r','ɼ':'r','ᵲ':'r','ᶉ':'r','ɍ':'r','ɽ':'r','ↄ':'c','ꜿ':'c','ɘ':'e','ɿ':'r','ś':'s','ṥ':'s','š':'s','ṧ':'s','ş':'s','ŝ':'s','ș':'s','ṡ':'s','ṣ':'s','ṩ':'s','ʂ':'s','ᵴ':'s','ᶊ':'s','ȿ':'s','ɡ':'g','ᴑ':'o','ᴓ':'o','ᴝ':'u','ť':'t','ţ':'t','ṱ':'t','ț':'t','ȶ':'t','ẗ':'t','ⱦ':'t','ṫ':'t','ṭ':'t','ƭ':'t','ṯ':'t','ᵵ':'t','ƫ':'t','ʈ':'t','ŧ':'t','ᵺ':'th','ɐ':'a','ᴂ':'ae','ǝ':'e','ᵷ':'g','ɥ':'h','ʮ':'h','ʯ':'h','ᴉ':'i','ʞ':'k','ꞁ':'l','ɯ':'m','ɰ':'m','ᴔ':'oe','ɹ':'r','ɻ':'r','ɺ':'r','ⱹ':'r','ʇ':'t','ʌ':'v','ʍ':'w','ʎ':'y','ꜩ':'tz','ú':'u','ŭ':'u','ǔ':'u','û':'u','ṷ':'u','ü':'u','ǘ':'u','ǚ':'u','ǜ':'u','ǖ':'u','ṳ':'u','ụ':'u','ű':'u','ȕ':'u','ù':'u','ủ':'u','ư':'u','ứ':'u','ự':'u','ừ':'u','ử':'u','ữ':'u','ȗ':'u','ū':'u','ṻ':'u','ų':'u','ᶙ':'u','ů':'u','ũ':'u','ṹ':'u','ṵ':'u','ᵫ':'ue','ꝸ':'um','ⱴ':'v','ꝟ':'v','ṿ':'v','ʋ':'v','ᶌ':'v','ⱱ':'v','ṽ':'v','ꝡ':'vy','ẃ':'w','ŵ':'w','ẅ':'w','ẇ':'w','ẉ':'w','ẁ':'w','ⱳ':'w','ẘ':'w','ẍ':'x','ẋ':'x','ᶍ':'x','ý':'y','ŷ':'y','ÿ':'y','ẏ':'y','ỵ':'y','ỳ':'y','ƴ':'y','ỷ':'y','ỿ':'y','ȳ':'y','ẙ':'y','ɏ':'y','ỹ':'y','ź':'z','ž':'z','ẑ':'z','ʑ':'z','ⱬ':'z','ż':'z','ẓ':'z','ȥ':'z','ẕ':'z','ᵶ':'z','ᶎ':'z','ʐ':'z','ƶ':'z','ɀ':'z','ff':'ff','ffi':'ffi','ffl':'ffl','fi':'fi','fl':'fl','ij':'ij','œ':'oe','st':'st','ₐ':'a','ₑ':'e','ᵢ':'i','ⱼ':'j','ₒ':'o','ᵣ':'r','ᵤ':'u','ᵥ':'v','ₓ':'x','Ё':'YO','Й':'I','Ц':'TS','У':'U','К':'K','Е':'E','Н':'N','Г':'G','Ш':'SH','Щ':'SCH','З':'Z','Х':'H','Ъ':'\\'','ё':'yo','й':'i','ц':'ts','у':'u','к':'k','е':'e','н':'n','г':'g','ш':'sh','щ':'sch','з':'z','х':'h','ъ':'\\'','Ф':'F','Ы':'I','В':'V','А':'a','П':'P','Р':'R','О':'O','Л':'L','Д':'D','Ж':'ZH','Э':'E','ф':'f','ы':'i','в':'v','а':'a','п':'p','р':'r','о':'o','л':'l','д':'d','ж':'zh','э':'e','Я':'Ya','Ч':'CH','С':'S','М':'M','И':'I','Т':'T','Ь':'\\'','Б':'B','Ю':'YU','я':'ya','ч':'ch','с':'s','м':'m','и':'i','т':'t','ь':'\\'','б':'b','ю':'yu'},exports.transliterate=function(o){return o.replace(/[^A-Za-z0-9\\[\\] ]/g,function(o){return exports.transliterationPairs[o]||o})},exports.transliterateToSafeASCII=function(o){return o.replace(/[^\\x00-\\x7F]/g,function(o){return exports.transliterationPairs[o]||''})}}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/utils/utils.js":{"text":"!function(){'use strict';var t=require('$:/core/modules/utils/base64-utf8/base64-utf8.module.js');exports.log=function(e,t){console.log($tw.node?exports.terminalColour(t)+e+exports.terminalColour():e)},exports.terminalColour=function(e){if(!$tw.browser&&$tw.node&&process.stdout.isTTY){if(!e)return'\u001b[0m';e=exports.terminalColourLookup[e];if(e)return'\u001b['+e+'m'}return''},exports.terminalColourLookup={black:'0;30',red:'0;31',green:'0;32','brown/orange':'0;33',blue:'0;34',purple:'0;35',cyan:'0;36','light gray':'0;37'},exports.warning=function(e){exports.log(e,'brown/orange')},exports.logTable=function(e){console.table?console.table(e):$tw.utils.each(e,function(e,t){console.log(t+': '+e)})},exports.getInt=function(e,t){e=parseInt(e,10);return isNaN(e)?t:e},exports.replaceString=function(e,t,r){return e.replace(t,function(){return r})},exports.repeat=function(e,t){for(var r='',n=0;n<t;n++)r+=e;return r},exports.trim=function(e){return'string'==typeof e?e.replace(/^\\s\\s*/,'').replace(/\\s\\s*$/,''):e},exports.trimPrefix=function(e,t){if('string'!=typeof e||'string'!=typeof t)return e;if(''===t)return e.replace(/^\\s\\s*/,'');t=t.replace(/[\\\\^$*+?.()|[\\]{}]/g,'\\\\$&');t=new RegExp('^('+t+')+');return e.replace(t,'')},exports.trimSuffix=function(e,t){if('string'!=typeof e||'string'!=typeof t)return e;if(''===t)return e.replace(/\\s\\s*$/,'');t=t.replace(/[\\\\^$*+?.()|[\\]{}]/g,'\\\\$&');t=new RegExp('('+t+')+$');return e.replace(t,'')},exports.toSentenceCase=function(e){return(e||'').replace(/^\\S/,function(e){return e.toUpperCase()})},exports.toTitleCase=function(e){return(e||'').replace(/(^|\\s)\\S/g,function(e){return e.toUpperCase()})},exports.findPrecedingLineBreak=function(e,t){t=e.lastIndexOf('\\n',t-1);return-1===t?t=0:(t++,'\\r'===e.charAt(t)&&t++),t},exports.findFollowingLineBreak=function(e,t){t=e.indexOf('\\n',t);return-1===t?t=e.length:'\\r'===e.charAt(t)&&t++,t},exports.count=function(e){return Object.keys(e||{}).length},exports.hopArray=function(e,t){for(var r=0;r<t.length;r++)if($tw.utils.hop(e,t[r]))return!0;return!1},exports.removeArrayEntries=function(e,t){var r,n;if($tw.utils.isArray(t))for(r=0;r<t.length;r++)-1!==(n=e.indexOf(t[r]))&&e.splice(n,1);else-1!==(n=e.indexOf(t))&&e.splice(n,1)},exports.checkDependencies=function(r,e){var n=!1;return $tw.utils.each(e,function(e,t){$tw.utils.hop(r,t)&&(n=!0)}),n},exports.extend=function(r){return $tw.utils.each(Array.prototype.slice.call(arguments,1),function(e){if(e)for(var t in e)r[t]=e[t]}),r},exports.deepCopy=function(e){var t,r;if($tw.utils.isArray(e))t=e.slice(0);else if('object'==typeof e)for(r in t={},e)void 0!==e[r]&&(t[r]=$tw.utils.deepCopy(e[r]));else t=e;return t},exports.extendDeepCopy=function(e,t){var r,n=$tw.utils.deepCopy(e);for(r in t)void 0!==t[r]&&(n[r]=$tw.utils.deepCopy(t[r]));return n},exports.deepFreeze=function e(t){var r,n;if(t)for(n in Object.freeze(t),t)r=t[n],$tw.utils.hop(t,n)&&'object'==typeof r&&!Object.isFrozen(r)&&e(r)},exports.slowInSlowOut=function(e){return 1-(Math.cos(e*Math.PI)+1)/2},exports.formatDateString=function(r,e){var t='',n=e,o=[[/^0hh12/,function(){return $tw.utils.pad($tw.utils.getHours12(r))}],[/^wYYYY/,function(){return $tw.utils.pad($tw.utils.getYearForWeekNo(r),4)}],[/^hh12/,function(){return $tw.utils.getHours12(r)}],[/^DDth/,function(){return r.getDate()+$tw.utils.getDaySuffix(r)}],[/^YYYY/,function(){return $tw.utils.pad(r.getFullYear(),4)}],[/^aYYYY/,function(){return $tw.utils.pad(Math.abs(r.getFullYear()),4)}],[/^\\{era:([^,\\|}]*)\\|([^}\\|]*)\\|([^}]*)\\}/,function(e){var t=r.getFullYear();return 0===t?e[2]:t<0?e[1]:e[3]}],[/^0hh/,function(){return $tw.utils.pad(r.getHours())}],[/^0mm/,function(){return $tw.utils.pad(r.getMinutes())}],[/^0ss/,function(){return $tw.utils.pad(r.getSeconds())}],[/^0XXX/,function(){return $tw.utils.pad(r.getMilliseconds(),3)}],[/^0DD/,function(){return $tw.utils.pad(r.getDate())}],[/^0MM/,function(){return $tw.utils.pad(r.getMonth()+1)}],[/^0WW/,function(){return $tw.utils.pad($tw.utils.getWeek(r))}],[/^ddd/,function(){return $tw.language.getString('Date/Short/Day/'+r.getDay())}],[/^mmm/,function(){return $tw.language.getString('Date/Short/Month/'+(r.getMonth()+1))}],[/^DDD/,function(){return $tw.language.getString('Date/Long/Day/'+r.getDay())}],[/^MMM/,function(){return $tw.language.getString('Date/Long/Month/'+(r.getMonth()+1))}],[/^TZD/,function(){var e=r.getTimezoneOffset(),t=Math.abs(e);return(e<0?'+':'-')+$tw.utils.pad(Math.floor(t/60))+':'+$tw.utils.pad(t%60)}],[/^wYY/,function(){return $tw.utils.pad($tw.utils.getYearForWeekNo(r)-2e3)}],[/^[ap]m/,function(){return $tw.utils.getAmPm(r).toLowerCase()}],[/^hh/,function(){return r.getHours()}],[/^mm/,function(){return r.getMinutes()}],[/^ss/,function(){return r.getSeconds()}],[/^XXX/,function(){return r.getMilliseconds()}],[/^[AP]M/,function(){return $tw.utils.getAmPm(r).toUpperCase()}],[/^DD/,function(){return r.getDate()}],[/^MM/,function(){return r.getMonth()+1}],[/^WW/,function(){return $tw.utils.getWeek(r)}],[/^YY/,function(){return $tw.utils.pad(r.getFullYear()-2e3)}]];if(0==n.indexOf('[UTC]')){if('[UTC]YYYY0MM0DD0hh0mm0ssXXX'==n)return $tw.utils.stringifyDate(new Date);e=r.getTimezoneOffset();r=new Date(r.getTime()+60*e*1e3),n=n.substr(5)}for(;n.length;){var i='';$tw.utils.each(o,function(e){var t=e[0].exec(n);if(t)return i=e[1].call(null,t),n=n.substr(t[0].length),!1}),i?t+=i:(t+=n.charAt(0),n=n.substr(1))}return t=t.replace(/\\\\(.)/g,'$1')},exports.getAmPm=function(e){return $tw.language.getString('Date/Period/'+(12<=e.getHours()?'pm':'am'))},exports.getDaySuffix=function(e){return $tw.language.getString('Date/DaySuffix/'+e.getDate())},exports.getWeek=function(e){var t=new Date(e.getTime()),e=t.getDay();0===e&&(e=7),t.setTime(t.getTime()+864e5*(4-e));e=new Date(t.getFullYear(),0,1),e=Math.floor((t.getTime()-e.getTime())/864e5);return Math.floor(e/7)+1},exports.getYearForWeekNo=function(e){var t=new Date(e.getTime()),e=t.getDay();return 0===e&&(e=7),t.setTime(t.getTime()+864e5*(4-e)),t.getFullYear()},exports.getHours12=function(e){e=e.getHours();return 12<e?e-12:0<e?e:12},exports.getRelativeDate=function(e){var t=!1;e<0&&(e*=-1,t=!0);for(var r=[{name:'Years',duration:31536e6},{name:'Months',duration:2628e6},{name:'Days',duration:864e5},{name:'Hours',duration:36e5},{name:'Minutes',duration:6e4},{name:'Seconds',duration:1e3}],n=0;n<r.length;n++){var o=Math.floor(e/r[n].duration);if(2<=o)return{delta:e,description:$tw.language.getString('RelativeDate/'+(t?'Future':'Past')+'/'+r[n].name,{variables:{period:o.toString()}}),updatePeriod:r[n].duration}}return{delta:e,description:$tw.language.getString('RelativeDate/'+(t?'Future':'Past')+'/Second',{variables:{period:'1'}}),updatePeriod:1e3}},exports.htmlEncode=function(e){return e?e.toString().replace(/&/gm,'&').replace(/</gm,'<').replace(/>/gm,'>').replace(/\\\"/gm,'"'):''},exports.htmlTextEncode=function(e){return e?e.toString().replace(/&/gm,'&').replace(/</gm,'<').replace(/>/gm,'>'):''},exports.entityDecode=function(e){var t,r=String.fromCodePoint||String.fromCharCode,n=e.substr(1,e.length-2);return'#'===n.charAt(0)?(t='x'===n.charAt(1)||'X'===n.charAt(1)?parseInt(n.substr(2),16):parseInt(n.substr(1),10),isNaN(t)?e:r(t)):(t=$tw.config.htmlEntities[n])?r(t):e},exports.unescapeLineBreaks=function(e){return e.replace(/\\\\n/gm,'\\n').replace(/\\\\b/gm,' ').replace(/\\\\s/gm,'\\\\').replace(/\\r/gm,'')},exports.escape=function(e){e=e.charCodeAt(0);return e<=255?'\\\\x'+$tw.utils.pad(e.toString(16).toUpperCase()):'\\\\u'+$tw.utils.pad(e.toString(16).toUpperCase(),4)},exports.stringify=function(e,t){t=t?/[\\x00-\\x1f]/g:/[\\x00-\\x1f\\x80-\\uFFFF]/g;return(e||'').replace(/\\\\/g,'\\\\\\\\').replace(/\"/g,'\\\\\"').replace(/'/g,'\\\\\\'').replace(/\\r/g,'\\\\r').replace(/\\n/g,'\\\\n').replace(t,exports.escape)},exports.jsonStringify=function(e,t){t=t?/[\\x00-\\x1f]/g:/[\\x00-\\x1f\\x80-\\uFFFF]/g;return(e||'').replace(/\\\\/g,'\\\\\\\\').replace(/\"/g,'\\\\\"').replace(/\\r/g,'\\\\r').replace(/\\n/g,'\\\\n').replace(/\\x08/g,'\\\\b').replace(/\\x0c/g,'\\\\f').replace(/\\t/g,'\\\\t').replace(t,function(e){return'\\\\u'+$tw.utils.pad(e.charCodeAt(0).toString(16).toUpperCase(),4)})},exports.escapeRegExp=function(e){return e.replace(/[\\-\\/\\\\\\^\\$\\*\\+\\?\\.\\(\\)\\|\\[\\]\\{\\}]/g,'\\\\$&')},exports.isLinkExternal=function(e){return/^(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\\s<>{}\\[\\]`|\"\\\\^]+(?:\\/|\\b)/i.test(e)},exports.nextTick=function(e){'undefined'==typeof process?window.setTimeout(e,0):process.nextTick(e)},exports.unHyphenateCss=function(e){return e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()})},exports.hyphenateCss=function(e){return e.replace(/([A-Z])/g,function(e,t){return'-'+t.toLowerCase()})},exports.parseTextReference=function(e){var t=/(?:(.*?)!!(.+))|(?:(.*?)##(.+))|(.*)/gm,r=t.exec(e),n={};return r&&t.lastIndex===e.length?(r[1]&&(n.title=r[1]),r[2]&&(n.field=r[2]),r[3]&&(n.title=r[3]),r[4]&&(n.index=r[4]),r[5]&&(n.title=r[5])):n.title=e,n},exports.isValidFieldName=function(e){if(!e||'string'!=typeof e)return!1;e=e.toLowerCase().trim();return/^[a-z0-9\\-\\._]+$/gm.test(e)},exports.extractVersionInfo=function(){if($tw.packageInfo)return $tw.packageInfo.version;for(var e=document.getElementsByTagName('meta'),t=0;t<e.length;t++){var r=e[t];if('tiddlywiki-version'===r.name)return r.content}return null},exports.getAnimationDuration=function(){return parseInt($tw.wiki.getTiddlerText('$:/config/AnimationDuration','400'),10)||0},exports.hashString=function(e){return e.split('').reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0)},exports.base64Decode=function(e){return t.base64.decode.call(t,e)},exports.base64Encode=function(e){return t.base64.encode.call(t,e)},exports.makeTiddlerDictionary=function(e){var t,r=[];for(t in e)r.push(t+': '+e[t]);return r.join('\\n')},exports.timer=function(e){var t;return t=$tw.node?1e3*(t=process.hrtime())[0]+t[1]/1e6:(window.performance?performance:Date).now(),void 0!==e&&(t-=e),t},exports.makeDataUri=function(e,t,r){t=t||'text/vnd.tiddlywiki';var n='base64'===($tw.config.contentTypeInfo[t]||$tw.config.contentTypeInfo['text/plain']).encoding,o=[];return r?o.push(r):(o.push('data:'),o.push(t),o.push(n?';base64':''),o.push(','),o.push(n?e:encodeURIComponent(e))),o.join('')},exports.tagToCssSelector=function(e){return'tc-tagged-'+encodeURIComponent(e).replace(/[!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^`{\\|}~,]/gm,function(e){return'\\\\'+e})},exports.sign=Math.sign||function(e){return 0===(e=+e)||isNaN(e)?e:0<e?1:-1},exports.strEndsWith=function(e,t,r){if(e.endsWith)return e.endsWith(t,r);('number'!=typeof r||!isFinite(r)||Math.floor(r)!==r||r>e.length)&&(r=e.length),r-=t.length;t=e.indexOf(t,r);return-1!==t&&t===r},exports.getSystemInfo=function(e,t,r){function n(e,t){o.push(e+': '+t)}var o=[];return $tw.browser&&(n('User Agent',navigator.userAgent),n('Online Status',window.navigator.onLine)),$tw.node&&n('Node Version',process.version),o.join('\\n')},exports.parseNumber=function(e){return parseFloat(e)||0},exports.parseInt=function(e){return parseInt(e,10)||0},exports.stringifyNumber=function(e){return e+''},exports.makeCompareFunction=function(e,t){function r(e,t){return t<e?n:e<t?o:0}var n=(t=t||{}).invert?-1:1,o=t.invert?1:-1,i={number:function(e,t){return r($tw.utils.parseNumber(e),$tw.utils.parseNumber(t))},integer:function(e,t){return r($tw.utils.parseInt(e),$tw.utils.parseInt(t))},string:function(e,t){return r(''+e,''+t)},date:function(e,t){e=$tw.utils.parseDate(e),t=$tw.utils.parseDate(t);return isFinite(e)||(e=new Date(0)),isFinite(t)||(t=new Date(0)),r(e,t)},version:function(e,t){return $tw.utils.compareVersions(e,t)}};return i[e]||i[t.defaultType]||i.number}}();","type":"application/javascript","module-type":"utils"},"$:/core/modules/widgets/action-confirm.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.computeAttributes(),this.execute(),this.parentDomNode=t,this.renderChildren(t,e)},t.prototype.execute=function(){this.message=this.getAttribute('$message',$tw.language.getString('ConfirmAction')),this.prompt='no'!=this.getAttribute('$prompt','yes'),this.makeChildWidgets()},t.prototype.refresh=function(t){var e=this.computeAttributes();return e.$message||e.$prompt?(this.refreshSelf(),!0):this.refreshChildren(t)},t.prototype.invokeAction=function(t,e){var i=!0,r=!0;return this.prompt&&(i=confirm(this.message)),i&&(r=this.invokeActions(t,e)),r},t.prototype.allowActionPropagation=function(){return!1},exports['action-confirm']=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/action-createtiddler.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.computeAttributes(),this.execute()},t.prototype.execute=function(){this.actionBaseTitle=this.getAttribute('$basetitle'),this.hasBase=!!this.actionBaseTitle,this.actionSaveTitle=this.getAttribute('$savetitle'),this.actionSaveDraftTitle=this.getAttribute('$savedrafttitle'),this.actionTimestamp='yes'===this.getAttribute('$timestamp','yes'),this.actionTemplate=this.getAttribute('$template'),this.useTemplate=!!this.actionTemplate,this.actionOverwrite=this.getAttribute('$overwrite','no')},t.prototype.refresh=function(t){var e=this.computeAttributes();return 0<$tw.utils.count(e)?(this.refreshSelf(),!0):this.refreshChildren(t)},t.prototype.invokeAction=function(t,e){var i,s,a=this.wiki.getTiddlerText('$:/language/DefaultNewTiddlerTitle'),r={};$tw.utils.each(this.attributes,function(t,e){'$'!==e.charAt(0)&&(r[e]=t)}),this.actionTimestamp&&(i=this.wiki.getCreationFields(),s=this.wiki.getModificationFields()),this.hasBase&&'no'===this.actionOverwrite?a=this.wiki.generateNewTitle(this.actionBaseTitle):this.hasBase&&'yes'===this.actionOverwrite&&(a=this.actionBaseTitle),!this.hasBase&&this.useTemplate?a=this.wiki.generateNewTitle(this.actionTemplate):this.hasBase||this.useTemplate||(a=this.wiki.generateNewTitle(a));var h=this.wiki.getTiddler(this.actionTemplate)||{};this.wiki.addTiddler(new $tw.Tiddler(h.fields,i,r,s,{title:a}));return this.actionSaveTitle&&this.wiki.setTextReference(this.actionSaveTitle,a,this.getVariable('currentTiddler')),this.actionSaveDraftTitle&&this.wiki.setTextReference(this.actionSaveDraftTitle,this.wiki.generateDraftTitle(a),this.getVariable('currentTiddler')),!0},exports['action-createtiddler']=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/action-deletefield.js":{"text":"!function(){'use strict';function t(t,i){this.initialise(t,i)}var i=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new i).render=function(t,i){this.computeAttributes(),this.execute()},t.prototype.execute=function(){this.actionTiddler=this.getAttribute('$tiddler',this.getVariable('currentTiddler')),this.actionField=this.getAttribute('$field')},t.prototype.refresh=function(t){return this.computeAttributes().$tiddler?(this.refreshSelf(),!0):this.refreshChildren(t)},t.prototype.invokeAction=function(t,i){var e=this.wiki.getTiddler(this.actionTiddler),r={},d=!1;return this.actionField&&e&&(r[this.actionField]=void 0,this.actionField in e.fields&&(d=!0)),e&&($tw.utils.each(this.attributes,function(t,i){'$'!==i.charAt(0)&&'title'!==i&&(r[i]=void 0,d=!0)}),d&&this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),e,r,this.wiki.getModificationFields()))),!0},exports['action-deletefield']=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/action-deletetiddler.js":{"text":"!function(){'use strict';function t(t,i){this.initialise(t,i)}var i=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new i).render=function(t,i){this.computeAttributes(),this.execute()},t.prototype.execute=function(){this.actionFilter=this.getAttribute('$filter'),this.actionTiddler=this.getAttribute('$tiddler')},t.prototype.refresh=function(t){var i=this.computeAttributes();return i.$filter||i.$tiddler?(this.refreshSelf(),!0):this.refreshChildren(t)},t.prototype.invokeAction=function(t,i){var e=[];this.actionFilter&&(e=this.wiki.filterTiddlers(this.actionFilter,this)),this.actionTiddler&&e.push(this.actionTiddler);for(var r=0;r<e.length;r++)this.wiki.deleteTiddler(e[r]);return!0},exports['action-deletetiddler']=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/action-listops.js":{"text":"!function(){'use strict';function t(t,i){this.initialise(t,i)}var i=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new i).render=function(t,i){this.computeAttributes(),this.execute()},t.prototype.execute=function(){this.target=this.getAttribute('$tiddler',this.getVariable('currentTiddler')),this.filter=this.getAttribute('$filter'),this.subfilter=this.getAttribute('$subfilter'),this.listField=this.getAttribute('$field','list'),this.listIndex=this.getAttribute('$index'),this.filtertags=this.getAttribute('$tags')},t.prototype.refresh=function(t){var i=this.computeAttributes();return i.$tiddler||i.$filter||i.$subfilter||i.$field||i.$index||i.$tags?(this.refreshSelf(),!0):this.refreshChildren(t)},t.prototype.invokeAction=function(t,i){var s,e,r=this.listField,l='!!',h=this.listField;return this.listIndex&&(r=void 0,e=this.listIndex,l='##',h=this.listIndex),this.filter&&this.wiki.setText(this.target,r,e,$tw.utils.stringifyList(this.wiki.filterTiddlers(this.filter,this))),this.subfilter&&(s='[list['+this.target+l+h+']] '+this.subfilter,this.wiki.setText(this.target,r,e,$tw.utils.stringifyList(this.wiki.filterTiddlers(s,this)))),this.filtertags&&(s=(e=this.wiki.getTiddler(this.target))?(e.fields.tags||[]).slice(0):[],e='[list['+this.target+'!!tags]] '+this.filtertags,e=this.wiki.filterTiddlers(e,this),$tw.utils.stringifyList(s.sort())!==$tw.utils.stringifyList(e.sort())&&this.wiki.setText(this.target,'tags',void 0,$tw.utils.stringifyList(e))),!0},exports['action-listops']=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/action-log.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.computeAttributes(),this.execute()},t.prototype.execute=function(){this.message=this.getAttribute('$$message','debug'),this.logAll='yes'===this.getAttribute('$$all','no'),this.filter=this.getAttribute('$$filter')},t.prototype.refresh=function(t){return this.refreshSelf(),!0},t.prototype.invokeAction=function(t,e){return this.log(),!0},t.prototype.log=function(){var t,e,i={},s={};for(e in $tw.utils.each(this.attributes,function(t,e){'$$'!==e.substring(0,2)&&(i[e]=t)}),this.variables)s[e]=this.getVariable(e,{defaultValue:''});this.filter&&(t=this.wiki.compileFilter(this.filter).call(this.wiki,this.wiki.makeTiddlerIterator(s)),$tw.utils.each(t,function(t){i[t]=s[t]})),t=$tw.utils.count(i),console.group(this.message),0<t&&$tw.utils.logTable(i),!this.logAll&&t||(console.groupCollapsed('All variables'),$tw.utils.logTable(s),console.groupEnd()),console.groupEnd()},exports['action-log']=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/action-navigate.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.computeAttributes(),this.execute()},t.prototype.execute=function(){this.actionTo=this.getAttribute('$to'),this.actionScroll=this.getAttribute('$scroll')},t.prototype.refresh=function(t){var e=this.computeAttributes();return e.$to||e.$scroll?(this.refreshSelf(),!0):this.refreshChildren(t)},t.prototype.invokeAction=function(t,e){e=e||{};var i=t&&t.getBoundingClientRect&&t.getBoundingClientRect(),e=e.metaKey||e.ctrlKey||1===e.button;return'yes'===this.actionScroll?e=!1:'no'===this.actionScroll&&(e=!0),this.dispatchEvent({type:'tm-navigate',navigateTo:void 0===this.actionTo?this.getVariable('currentTiddler'):this.actionTo,navigateFromTitle:this.getVariable('storyTiddler'),navigateFromNode:t,navigateFromClientRect:i&&{top:i.top,left:i.left,width:i.width,right:i.right,bottom:i.bottom,height:i.height},navigateSuppressNavigation:e}),!0},exports['action-navigate']=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/action-popup.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.computeAttributes(),this.execute()},t.prototype.execute=function(){this.actionState=this.getAttribute('$state'),this.actionCoords=this.getAttribute('$coords')},t.prototype.refresh=function(t){var e=this.computeAttributes();return e.$state||e.$coords?(this.refreshSelf(),!0):this.refreshChildren(t)},t.prototype.invokeAction=function(t,e){var i=/^\\((-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+)\\)$/.exec(this.actionCoords||'');return i?$tw.popup.triggerPopup({domNode:null,domNodeRect:{left:parseFloat(i[1]),top:parseFloat(i[2]),width:parseFloat(i[3]),height:parseFloat(i[4])},title:this.actionState,wiki:this.wiki}):$tw.popup.cancel(0),!0},exports['action-popup']=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/action-sendmessage.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.computeAttributes(),this.execute()},t.prototype.execute=function(){this.actionMessage=this.getAttribute('$message'),this.actionParam=this.getAttribute('$param'),this.actionName=this.getAttribute('$name'),this.actionValue=this.getAttribute('$value','')},t.prototype.refresh=function(t){var e=this.computeAttributes();return Object.keys(e).length?(this.refreshSelf(),!0):this.refreshChildren(t)},t.prototype.invokeAction=function(t,e){var i=this.actionParam,s=Object.create(null);return $tw.utils.each(this.attributes,function(t,e){'$'!==e.charAt(0)&&(s[e]=t,0)}),this.actionName&&(s[this.actionName]=this.actionValue),this.dispatchEvent({type:this.actionMessage,param:i,paramObject:s,tiddlerTitle:this.getVariable('currentTiddler'),navigateFromTitle:this.getVariable('storyTiddler'),event:e}),!0},exports['action-sendmessage']=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/action-setfield.js":{"text":"!function(){'use strict';function t(t,i){this.initialise(t,i)}var i=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new i).render=function(t,i){this.computeAttributes(),this.execute()},t.prototype.execute=function(){this.actionTiddler=this.getAttribute('$tiddler',this.getVariable('currentTiddler')),this.actionField=this.getAttribute('$field'),this.actionIndex=this.getAttribute('$index'),this.actionValue=this.getAttribute('$value'),this.actionTimestamp='yes'===this.getAttribute('$timestamp','yes')},t.prototype.refresh=function(t){var i=this.computeAttributes();return i.$tiddler||i.$field||i.$index||i.$value?(this.refreshSelf(),!0):this.refreshChildren(t)},t.prototype.invokeAction=function(t,i){var e=this,s={};return s.suppressTimestamp=!this.actionTimestamp,'string'!=typeof this.actionField&&'string'!=typeof this.actionIndex&&'string'!=typeof this.actionValue||this.wiki.setText(this.actionTiddler,this.actionField,this.actionIndex,this.actionValue,s),$tw.utils.each(this.attributes,function(t,i){'$'!==i.charAt(0)&&e.wiki.setText(e.actionTiddler,i,void 0,t,s)}),!0},exports['action-setfield']=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/browse.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){var i=this;this.parentDomNode=t,this.computeAttributes(),this.execute();var s=this.document.createElement('input');s.setAttribute('type','file'),this.browseMultiple&&s.setAttribute('multiple','multiple'),this.tooltip&&s.setAttribute('title',this.tooltip),this.nwsaveas&&s.setAttribute('nwsaveas',this.nwsaveas),this.accept&&s.setAttribute('accept',this.accept),this.webkitdirectory&&s.setAttribute('webkitdirectory',this.webkitdirectory),this.nwdirectory&&s.setAttribute('nwdirectory',this.nwdirectory),s.addEventListener('change',function(t){return i.message?i.dispatchEvent({type:i.message,param:i.param,files:t.target.files}):i.wiki.readFiles(t.target.files,{callback:function(t){i.dispatchEvent({type:'tm-import-tiddlers',param:JSON.stringify(t)})},deserializer:i.deserializer}),!1},!1),t.insertBefore(s,e),this.renderChildren(s,null),this.domNodes.push(s)},t.prototype.execute=function(){this.browseMultiple=this.getAttribute('multiple'),this.deserializer=this.getAttribute('deserializer'),this.message=this.getAttribute('message'),this.param=this.getAttribute('param'),this.tooltip=this.getAttribute('tooltip'),this.nwsaveas=this.getAttribute('nwsaveas'),this.accept=this.getAttribute('accept'),this.webkitdirectory=this.getAttribute('webkitdirectory'),this.nwdirectory=this.getAttribute('nwdirectory')},t.prototype.refresh=function(t){return!1},exports.browse=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/button.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){var i,s=this,o='button';this.parentDomNode=t,this.computeAttributes(),this.execute(),this.buttonTag&&-1===$tw.config.htmlUnsafeElements.indexOf(this.buttonTag)&&(o=this.buttonTag),i=this.document.createElement(o),this.domNode=i;var h=this.class.split(' ')||[],o=(this.popup||this.popupTitle)&&this.isPoppedUp();this.selectedClass&&((this.set||this.setTitle)&&this.setTo&&this.isSelected()&&$tw.utils.pushTop(h,this.selectedClass.split(' ')),o&&$tw.utils.pushTop(h,this.selectedClass.split(' '))),o&&$tw.utils.pushTop(h,'tc-popup-handle'),i.className=h.join(' '),this.style&&i.setAttribute('style',this.style),this.tooltip&&i.setAttribute('title',this.tooltip),this['aria-label']&&i.setAttribute('aria-label',this['aria-label']),(this.popup||this.popupTitle)&&i.setAttribute('aria-expanded',o?'true':'false'),this.tabIndex&&i.setAttribute('tabindex',this.tabIndex),'yes'===this.isDisabled&&i.setAttribute('disabled',!0),i.addEventListener('click',function(t){var e,i=!1;return s.invokeActions(s,t)&&(i=!0),s.to&&(s.navigateTo(t),i=!0),s.message&&(s.dispatchMessage(t),i=!0),(s.popup||s.popupTitle)&&(s.triggerPopup(t),i=!0),(s.set||s.setTitle)&&(s.setTiddler(),i=!0),s.actions&&(e=$tw.keyboardManager.getEventModifierKeyDescriptor(t),s.invokeActionString(s.actions,s,t,{modifier:e})),i&&(t.preventDefault(),t.stopPropagation()),i},!1),(this.dragTiddler||this.dragFilter)&&$tw.utils.makeDraggable({domNode:i,dragTiddlerFn:function(){return s.dragTiddler},dragFilterFn:function(){return s.dragFilter},widget:this}),t.insertBefore(i,e),this.renderChildren(i,null),this.domNodes.push(i)},t.prototype.allowActionPropagation=function(){return!1},t.prototype.getBoundingClientRect=function(){return this.domNodes[0].getBoundingClientRect()},t.prototype.isSelected=function(){return this.setTitle?(this.setField?this.wiki.getTiddler(this.setTitle).getFieldString(this.setField)===this.setTo:this.setIndex?this.wiki.extractTiddlerDataItem(this.setTitle,this.setIndex)===this.setTo:this.wiki.getTiddlerText(this.setTitle))||this.defaultSetValue||this.getVariable('currentTiddler'):this.wiki.getTextReference(this.set,this.defaultSetValue,this.getVariable('currentTiddler'))===this.setTo},t.prototype.isPoppedUp=function(){var t=this.popupTitle?this.wiki.getTiddler(this.popupTitle):this.wiki.getTiddler(this.popup);return!(!t||!t.fields.text)&&$tw.popup.readPopupState(t.fields.text)},t.prototype.navigateTo=function(t){var e=this.getBoundingClientRect();this.dispatchEvent({type:'tm-navigate',navigateTo:this.to,navigateFromTitle:this.getVariable('storyTiddler'),navigateFromNode:this,navigateFromClientRect:{top:e.top,left:e.left,width:e.width,right:e.right,bottom:e.bottom,height:e.height},navigateSuppressNavigation:t.metaKey||t.ctrlKey||1===t.button,event:t})},t.prototype.dispatchMessage=function(t){this.dispatchEvent({type:this.message,param:this.param,tiddlerTitle:this.getVariable('currentTiddler'),event:t})},t.prototype.triggerPopup=function(t){this.popupTitle?$tw.popup.triggerPopup({domNode:this.domNodes[0],title:this.popupTitle,wiki:this.wiki,noStateReference:!0}):$tw.popup.triggerPopup({domNode:this.domNodes[0],title:this.popup,wiki:this.wiki})},t.prototype.setTiddler=function(){this.setTitle?this.setField?this.wiki.setText(this.setTitle,this.setField,void 0,this.setTo):this.setIndex?this.wiki.setText(this.setTitle,void 0,this.setIndex,this.setTo):this.wiki.setText(this.setTitle,'text',void 0,this.setTo):this.wiki.setTextReference(this.set,this.setTo,this.getVariable('currentTiddler'))},t.prototype.execute=function(){this.actions=this.getAttribute('actions'),this.to=this.getAttribute('to'),this.message=this.getAttribute('message'),this.param=this.getAttribute('param'),this.set=this.getAttribute('set'),this.setTo=this.getAttribute('setTo'),this.popup=this.getAttribute('popup'),this.hover=this.getAttribute('hover'),this['aria-label']=this.getAttribute('aria-label'),this.tooltip=this.getAttribute('tooltip'),this.style=this.getAttribute('style'),this.class=this.getAttribute('class',''),this.selectedClass=this.getAttribute('selectedClass'),this.defaultSetValue=this.getAttribute('default',''),this.buttonTag=this.getAttribute('tag'),this.dragTiddler=this.getAttribute('dragTiddler'),this.dragFilter=this.getAttribute('dragFilter'),this.setTitle=this.getAttribute('setTitle'),this.setField=this.getAttribute('setField'),this.setIndex=this.getAttribute('setIndex'),this.popupTitle=this.getAttribute('popupTitle'),this.tabIndex=this.getAttribute('tabindex'),this.isDisabled=this.getAttribute('disabled','no'),this.makeChildWidgets()},t.prototype.updateDomNodeClasses=function(){var t,e=this.domNode.className.split(' '),i=this.class.split(' ');this.class=this.getAttribute('class',''),t=this.class.split(' '),$tw.utils.each(i,function(t){t=e.indexOf(t);-1!==t&&e.splice(t,1)}),$tw.utils.pushTop(e,t),this.domNode.className=e.join(' ')},t.prototype.refresh=function(t){var e=this.computeAttributes();return e.actions||e.to||e.message||e.param||e.set||e.setTo||e.popup||e.hover||e.selectedClass||e.style||e.dragFilter||e.dragTiddler||this.set&&t[this.set]||this.popup&&t[this.popup]||this.popupTitle&&t[this.popupTitle]||e.setTitle||e.setField||e.setIndex||e.popupTitle||e.disabled?(this.refreshSelf(),!0):(e.class&&this.updateDomNodeClasses(),this.refreshChildren(t))},exports.button=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/checkbox.js":{"text":"!function(){'use strict';function e(e,t){this.initialise(e,t)}var t=require('$:/core/modules/widgets/widget.js').widget;(e.prototype=new t).render=function(e,t){this.parentDomNode=e,this.computeAttributes(),this.execute(),this.labelDomNode=this.document.createElement('label'),this.labelDomNode.setAttribute('class',this.checkboxClass),this.inputDomNode=this.document.createElement('input'),this.inputDomNode.setAttribute('type','checkbox'),this.getValue()&&this.inputDomNode.setAttribute('checked','true'),'yes'===this.isDisabled&&this.inputDomNode.setAttribute('disabled',!0),this.labelDomNode.appendChild(this.inputDomNode),this.spanDomNode=this.document.createElement('span'),this.labelDomNode.appendChild(this.spanDomNode),$tw.utils.addEventListeners(this.inputDomNode,[{name:'change',handlerObject:this,handlerMethod:'handleChangeEvent'}]),e.insertBefore(this.labelDomNode,t),this.renderChildren(this.spanDomNode,null),this.domNodes.push(this.labelDomNode)},e.prototype.getValue=function(){var e,t=this.wiki.getTiddler(this.checkboxTitle);if(t){if(this.checkboxTag)return this.checkboxInvertTag?!t.hasTag(this.checkboxTag):t.hasTag(this.checkboxTag);if(this.checkboxField){if((e=$tw.utils.hop(t.fields,this.checkboxField)?t.fields[this.checkboxField]||'':this.checkboxDefault||'')===this.checkboxChecked)return!0;if(e===this.checkboxUnchecked)return!1}if(this.checkboxIndex){if((e=this.wiki.extractTiddlerDataItem(t,this.checkboxIndex,this.checkboxDefault||''))===this.checkboxChecked)return!0;if(e===this.checkboxUnchecked)return!1}}else{if(this.checkboxTag)return!1;if(this.checkboxField){if(this.checkboxDefault===this.checkboxChecked)return!0;if(this.checkboxDefault===this.checkboxUnchecked)return!1}}return!1},e.prototype.handleChangeEvent=function(e){var t,i=this.inputDomNode.checked,h=this.wiki.getTiddler(this.checkboxTitle),c={title:this.checkboxTitle},s=!1,o=!1,n=h&&h.hasTag(this.checkboxTag),d=i?this.checkboxChecked:this.checkboxUnchecked,o=this.checkboxTag&&'yes'===this.checkboxInvertTag?n===i:n!==i;!this.checkboxTag||h&&!o||(c.tags=h?(h.fields.tags||[]).slice(0):[],-1!==(t=c.tags.indexOf(this.checkboxTag))&&c.tags.splice(t,1),('yes'===this.checkboxInvertTag&&!i||'yes'!==this.checkboxInvertTag&&i)&&c.tags.push(this.checkboxTag),s=!0),this.checkboxField&&(h&&h.fields[this.checkboxField]===d||(c[this.checkboxField]=d,s=!0)),this.checkboxIndex&&(t=this.wiki.extractTiddlerDataItem(this.checkboxTitle,this.checkboxIndex),h&&t===d||(s=!0)),s&&(this.checkboxIndex?this.wiki.setText(this.checkboxTitle,'',this.checkboxIndex,d):this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),{text:''},h,c,this.wiki.getModificationFields()))),this.checkboxActions&&this.invokeActionString(this.checkboxActions,this,e),this.checkboxCheckActions&&i&&this.invokeActionString(this.checkboxCheckActions,this,e),this.checkboxUncheckActions&&!i&&this.invokeActionString(this.checkboxUncheckActions,this,e)},e.prototype.execute=function(){this.checkboxActions=this.getAttribute('actions'),this.checkboxCheckActions=this.getAttribute('checkactions'),this.checkboxUncheckActions=this.getAttribute('uncheckactions'),this.checkboxTitle=this.getAttribute('tiddler',this.getVariable('currentTiddler')),this.checkboxTag=this.getAttribute('tag'),this.checkboxField=this.getAttribute('field'),this.checkboxIndex=this.getAttribute('index'),this.checkboxChecked=this.getAttribute('checked'),this.checkboxUnchecked=this.getAttribute('unchecked'),this.checkboxDefault=this.getAttribute('default'),this.checkboxClass=this.getAttribute('class',''),this.checkboxInvertTag=this.getAttribute('invertTag',''),this.isDisabled=this.getAttribute('disabled','no'),this.makeChildWidgets()},e.prototype.refresh=function(e){var t=this.computeAttributes();if(t.tiddler||t.tag||t.invertTag||t.field||t.index||t.checked||t.unchecked||t.default||t.class||t.disabled)return this.refreshSelf(),!0;t=!1;return e[this.checkboxTitle]&&(this.inputDomNode.checked=this.getValue(),t=!0),this.refreshChildren(e)||t},exports.checkbox=e}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/codeblock.js":{"text":"!function(){'use strict';function e(e,t){this.initialise(e,t)}var t=require('$:/core/modules/widgets/widget.js').widget;(e.prototype=new t).render=function(e,t){this.parentDomNode=e,this.computeAttributes(),this.execute();var i=this.document.createElement('code'),o=this.document.createElement('pre');i.appendChild(this.document.createTextNode(this.getAttribute('code'))),o.appendChild(i),e.insertBefore(o,t),this.domNodes.push(o),this.postRender&&this.postRender()},e.prototype.execute=function(){this.language=this.getAttribute('language')},e.prototype.refresh=function(e){return!1},exports.codeblock=e}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/count.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute();var i=this.document.createTextNode(this.currentCount);t.insertBefore(i,e),this.domNodes.push(i)},t.prototype.execute=function(){this.filter=this.getAttribute('filter'),this.filter?this.currentCount=this.wiki.filterTiddlers(this.filter,this).length:this.currentCount='0'},t.prototype.refresh=function(t){this.computeAttributes();var e=this.currentCount;return this.execute(),this.currentCount!==e&&(this.refreshSelf(),!0)},exports.count=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/diff-text.js":{"text":"!function(){'use strict';function e(e,t){this.initialise(e,t)}var t=require('$:/core/modules/widgets/widget.js').widget,f=require('$:/core/modules/utils/diff-match-patch/diff_match_patch.js');(e.prototype=new t).invisibleCharacters={'\\n':'↩︎\\n','\\r':'⇠','\\t':'⇥\\t'},e.prototype.render=function(e,t){this.parentDomNode=e,this.computeAttributes(),this.execute();var i=new f.diff_match_patch,r=i.diff_main(this.getAttribute('source'),this.getAttribute('dest'));switch(this.getAttribute('cleanup','semantic')){case'none':break;case'efficiency':i.diff_cleanupEfficiency(r);break;default:i.diff_cleanupSemantic(r)}var n=this.document.createElement('div'),s=this.createDiffDom(r);e.insertBefore(n,t),this.setVariable('diff-count',r.reduce(function(e,t){return t[0]!==f.DIFF_EQUAL&&e++,e},0).toString()),this.renderChildren(n,null),n.appendChild(s),this.domNodes.push(n)},e.prototype.createDiffDom=function(e){var h=this,t=this.document.createElement('pre'),u=this.document.createElement('code');return $tw.utils.each(e,function(e){var t,i,r=e[0]===f.DIFF_INSERT?'ins':e[0]===f.DIFF_DELETE?'del':'span',n=e[0]===f.DIFF_INSERT?'tc-diff-insert':e[0]===f.DIFF_DELETE?'tc-diff-delete':'tc-diff-equal',s=h.document.createElement(r),c=e[1],d=0,a=/([\\x00-\\x1F])/gm,o=a.exec(c);for(s.className=n;o;)d<o.index&&s.appendChild(h.document.createTextNode(c.slice(d,o.index))),(t=h.document.createElement('span')).className='tc-diff-invisible',i=h.invisibleCharacters[o[0]]||'[0x'+o[0].charCodeAt(0).toString(16)+']',t.appendChild(h.document.createTextNode(i)),s.appendChild(t),d=o.index+o[0].length,o=a.exec(c);d<c.length&&s.appendChild(h.document.createTextNode(c.slice(d))),u.appendChild(s)}),t.appendChild(u),t},e.prototype.execute=function(){var e=this.parseTreeNode&&this.parseTreeNode.children&&0<this.parseTreeNode.children.length?this.parseTreeNode.children:[{type:'transclude',attributes:{tiddler:{type:'string',value:'$:/language/Diffs/CountMessage'}}}];this.makeChildWidgets(e)},e.prototype.refresh=function(e){var t=this.computeAttributes();return t.source||t.dest||t.cleanup?(this.refreshSelf(),!0):this.refreshChildren(e)},exports['diff-text']=e}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/draggable.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){var i=this;this.parentDomNode=t,this.computeAttributes(),this.execute();var s=this.draggableTag;-1!==$tw.config.htmlUnsafeElements.indexOf(s)&&(s='div');var r=this.document.createElement(s),s=['tc-draggable'];this.draggableClasses&&s.push(this.draggableClasses),r.setAttribute('class',s.join(' ')),$tw.utils.makeDraggable({domNode:r,dragTiddlerFn:function(){return i.getAttribute('tiddler')},dragFilterFn:function(){return i.getAttribute('filter')},startActions:i.startActions,endActions:i.endActions,widget:this}),t.insertBefore(r,e),this.renderChildren(r,null),this.domNodes.push(r)},t.prototype.execute=function(){this.draggableTag=this.getAttribute('tag','div'),this.draggableClasses=this.getAttribute('class'),this.startActions=this.getAttribute('startactions'),this.endActions=this.getAttribute('endactions'),this.makeChildWidgets()},t.prototype.refresh=function(t){var e=this.computeAttributes();return e.tag||e.class?(this.refreshSelf(),!0):this.refreshChildren(t)},exports.draggable=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/droppable.js":{"text":"!function(){'use strict';function e(e,t){this.initialise(e,t)}var t=require('$:/core/modules/widgets/widget.js').widget;(e.prototype=new t).render=function(e,t){var r=this.parseTreeNode.isBlock?'div':'span';this.parentDomNode=e,this.computeAttributes(),this.execute(),this.droppableTag&&-1===$tw.config.htmlUnsafeElements.indexOf(this.droppableTag)&&(r=this.droppableTag),r=this.document.createElement(r),this.domNode=r,this.assignDomNodeClasses(),this.droppableEnable?$tw.utils.addEventListeners(r,[{name:'dragenter',handlerObject:this,handlerMethod:'handleDragEnterEvent'},{name:'dragover',handlerObject:this,handlerMethod:'handleDragOverEvent'},{name:'dragleave',handlerObject:this,handlerMethod:'handleDragLeaveEvent'},{name:'drop',handlerObject:this,handlerMethod:'handleDropEvent'}]):$tw.utils.addClass(this.domNode,this.disabledClass),e.insertBefore(r,t),this.renderChildren(r,null),this.domNodes.push(r),this.currentlyEntered=[]},e.prototype.enterDrag=function(e){-1===this.currentlyEntered.indexOf(e.target)&&this.currentlyEntered.push(e.target),$tw.utils.addClass(this.domNodes[0],'tc-dragover')},e.prototype.leaveDrag=function(e){e=this.currentlyEntered.indexOf(e.target);-1!==e&&this.currentlyEntered.splice(e,1),(0===this.currentlyEntered.length||1===this.currentlyEntered.length&&this.currentlyEntered[0]===$tw.dragInProgress)&&(this.currentlyEntered=[],this.domNodes[0]&&$tw.utils.removeClass(this.domNodes[0],'tc-dragover'))},e.prototype.handleDragEnterEvent=function(e){return this.enterDrag(e),e.preventDefault(),e.stopPropagation(),!1},e.prototype.handleDragOverEvent=function(e){return-1!==['TEXTAREA','INPUT'].indexOf(e.target.tagName)||(e.preventDefault(),e.dataTransfer.dropEffect=this.droppableEffect),!1},e.prototype.handleDragLeaveEvent=function(e){return this.leaveDrag(e),!1},e.prototype.handleDropEvent=function(t){var r=this;if(this.leaveDrag(t),-1!==['TEXTAREA','INPUT'].indexOf(t.target.tagName))return!1;var e=t.dataTransfer;return $tw.utils.removeClass(this.domNodes[0],'tc-dragover'),$tw.utils.importDataTransfer(e,null,function(e){e.forEach(function(e){r.performActions(e.title||e.text,t)})}),t.preventDefault(),t.stopPropagation(),!1},e.prototype.performActions=function(e,t){var r;this.droppableActions&&(r=$tw.keyboardManager.getEventModifierKeyDescriptor(t),this.invokeActionString(this.droppableActions,this,t,{actionTiddler:e,modifier:r}))},e.prototype.execute=function(){this.droppableActions=this.getAttribute('actions'),this.droppableEffect=this.getAttribute('effect','copy'),this.droppableTag=this.getAttribute('tag'),this.droppableEnable='yes'===(this.getAttribute('enable')||'yes'),this.disabledClass=this.getAttribute('disabledClass',''),this.makeChildWidgets()},e.prototype.assignDomNodeClasses=function(){var e=this.getAttribute('class','').split(' ');e.push('tc-droppable'),this.domNode.className=e.join(' ')},e.prototype.refresh=function(e){var t=this.computeAttributes();return t.tag||t.enable||t.disabledClass||t.actions||t.effect?(this.refreshSelf(),!0):(t.class&&this.assignDomNodeClasses(),this.refreshChildren(e))},exports.droppable=e}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/dropzone.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute();var r=this.document.createElement('div');r.className=this.dropzoneClass||'tc-dropzone',this.dropzoneEnable&&$tw.utils.addEventListeners(r,[{name:'dragenter',handlerObject:this,handlerMethod:'handleDragEnterEvent'},{name:'dragover',handlerObject:this,handlerMethod:'handleDragOverEvent'},{name:'dragleave',handlerObject:this,handlerMethod:'handleDragLeaveEvent'},{name:'drop',handlerObject:this,handlerMethod:'handleDropEvent'},{name:'paste',handlerObject:this,handlerMethod:'handlePasteEvent'},{name:'dragend',handlerObject:this,handlerMethod:'handleDragEndEvent'}]),r.addEventListener('click',function(t){},!1),t.insertBefore(r,e),this.renderChildren(r,null),this.domNodes.push(r),this.currentlyEntered=[]},t.prototype.enterDrag=function(t){-1===this.currentlyEntered.indexOf(t.target)&&this.currentlyEntered.push(t.target),$tw.utils.addClass(this.domNodes[0],'tc-dragover')},t.prototype.leaveDrag=function(t){t=this.currentlyEntered.indexOf(t.target);-1!==t&&this.currentlyEntered.splice(t,1),0===this.currentlyEntered.length&&$tw.utils.removeClass(this.domNodes[0],'tc-dragover')},t.prototype.handleDragEnterEvent=function(t){if($tw.dragInProgress)return!1;this.enterDrag(t),t.preventDefault(),t.stopPropagation()},t.prototype.handleDragOverEvent=function(t){return-1===['TEXTAREA','INPUT'].indexOf(t.target.tagName)&&(!$tw.dragInProgress&&(t.preventDefault(),void(t.dataTransfer.dropEffect='copy')))},t.prototype.handleDragLeaveEvent=function(t){this.leaveDrag(t)},t.prototype.handleDragEndEvent=function(t){$tw.utils.removeClass(this.domNodes[0],'tc-dragover')},t.prototype.filterByContentTypes=function(t){var e,r=[],i=[];return $tw.utils.each(t,function(t){i.push(t.type)}),e=this.wiki.filterTiddlers(this.contentTypesFilter,this,this.wiki.makeTiddlerIterator(i)),$tw.utils.each(t,function(t){-1!==e.indexOf(t.type)&&r.push(t)}),r},t.prototype.readFileCallback=function(t){this.contentTypesFilter&&(t=this.filterByContentTypes(t)),t.length&&(this.dispatchEvent({type:'tm-import-tiddlers',param:JSON.stringify(t),autoOpenOnImport:this.autoOpenOnImport,importTitle:this.importTitle}),this.actions&&this.invokeActionString(this.actions,this,event,{importTitle:this.importTitle}))},t.prototype.handleDropEvent=function(t){function e(t){r.readFileCallback(t)}var r=this;if(this.leaveDrag(t),-1!==['TEXTAREA','INPUT'].indexOf(t.target.tagName))return!1;if($tw.dragInProgress)return!1;var r=this,i=t.dataTransfer;$tw.utils.removeClass(this.domNodes[0],'tc-dragover');var n=0;i.files&&(n=this.wiki.readFiles(i.files,{callback:e,deserializer:this.dropzoneDeserializer})),0===n&&$tw.utils.importDataTransfer(i,this.wiki.generateNewTitle('Untitled'),e),t.preventDefault(),t.stopPropagation()},t.prototype.handlePasteEvent=function(t){function r(t){i.readFileCallback(t)}var i=this;if(-1==['TEXTAREA','INPUT'].indexOf(t.target.tagName)&&!t.target.isContentEditable){for(var i=this,e=t.clipboardData.items,n=0;n<e.length;n++){var s,a=e[n];'file'===a.kind?this.wiki.readFile(a.getAsFile(),{callback:r,deserializer:this.dropzoneDeserializer}):'string'===a.kind&&(s=a.type,a.getAsString(function(t){var e={title:i.wiki.generateNewTitle('Untitled'),text:t,type:s};$tw.log.IMPORT&&console.log('Importing string \\''+t+'\\', type: \\''+s+'\\''),r([e])}))}t.stopPropagation(),t.preventDefault()}},t.prototype.execute=function(){this.dropzoneClass=this.getAttribute('class'),this.dropzoneDeserializer=this.getAttribute('deserializer'),this.dropzoneEnable='yes'===(this.getAttribute('enable')||'yes'),this.autoOpenOnImport=this.getAttribute('autoOpenOnImport'),this.importTitle=this.getAttribute('importTitle','$:/Import'),this.actions=this.getAttribute('actions'),this.contentTypesFilter=this.getAttribute('contentTypesFilter'),this.makeChildWidgets()},t.prototype.refresh=function(t){var e=this.computeAttributes();return 0<$tw.utils.count(e)?(this.refreshSelf(),!0):this.refreshChildren(t)},exports.dropzone=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/edit-binary.js":{"text":"!function(){'use strict';function e(e,t){this.initialise(e,t)}var t=require('$:/core/modules/widgets/widget.js').widget;(e.prototype=new t).render=function(e,t){this.parentDomNode=e,this.computeAttributes(),this.execute(),this.renderChildren(e,t)},e.prototype.execute=function(){var e=this.getAttribute('tiddler',this.getVariable('currentTiddler')),t=this.wiki.getTiddler(e),i=t.fields.type,r=t.fields.text,e={type:'element',tag:'p',children:[{type:'transclude',attributes:{tiddler:{type:'string',value:'$:/core/ui/BinaryWarning'}}}]},t={type:'element',tag:'a',attributes:{title:{type:'indirect',textReference:'!!draft.title'},download:{type:'indirect',textReference:'!!draft.title'}},children:[{type:'transclude',attributes:{tiddler:{type:'string',value:'$:/core/images/export-button'}}}]};r&&(t.attributes.href={type:'string',value:'data:'+i+';base64,'+r});t={type:'element',tag:'div',attributes:{class:{type:'string',value:'tc-binary-warning'}},children:[e,t]};this.makeChildWidgets([t])},e.prototype.refresh=function(e){return this.refreshChildren(e)},exports['edit-binary']=e}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/edit-bitmap.js":{"text":"!function(){'use strict';function i(t,e){this.initialise(t,e)}var t=require('$:/core/modules/widgets/widget.js').widget;(i.prototype=new t).render=function(t,e){this.editorOperations||(i.prototype.editorOperations={},$tw.modules.applyMethods('bitmapeditoroperation',this.editorOperations)),this.parentDomNode=t,this.computeAttributes(),this.execute(),this.toolbarNode=this.document.createElement('div'),this.toolbarNode.className='tc-editor-toolbar',t.insertBefore(this.toolbarNode,e),this.domNodes.push(this.toolbarNode),this.canvasDomNode=$tw.utils.domMaker('canvas',{document:this.document,class:'tc-edit-bitmapeditor',eventListeners:[{name:'touchstart',handlerObject:this,handlerMethod:'handleTouchStartEvent'},{name:'touchmove',handlerObject:this,handlerMethod:'handleTouchMoveEvent'},{name:'touchend',handlerObject:this,handlerMethod:'handleTouchEndEvent'},{name:'mousedown',handlerObject:this,handlerMethod:'handleMouseDownEvent'},{name:'mousemove',handlerObject:this,handlerMethod:'handleMouseMoveEvent'},{name:'mouseup',handlerObject:this,handlerMethod:'handleMouseUpEvent'}]}),this.setVariable('tv-bitmap-editor-width',this.canvasDomNode.width+'px'),this.setVariable('tv-bitmap-editor-height',this.canvasDomNode.height+'px'),this.renderChildren(this.toolbarNode,null),t.insertBefore(this.canvasDomNode,e),this.domNodes.push(this.canvasDomNode),$tw.browser&&this.loadCanvas(),this.addEventListeners([{type:'tm-edit-bitmap-operation',handler:'handleEditBitmapOperationMessage'}])},i.prototype.handleEditBitmapOperationMessage=function(t){var e=this.editorOperations[t.param];e&&e.call(this,t)},i.prototype.execute=function(){this.editTitle=this.getAttribute('tiddler',this.getVariable('currentTiddler')),this.makeChildWidgets()},i.prototype.refresh=function(t){return this.refreshChildren(t)},i.prototype.refreshToolbar=function(){this.setVariable('tv-bitmap-editor-width',this.canvasDomNode.width+'px'),this.setVariable('tv-bitmap-editor-height',this.canvasDomNode.height+'px'),$tw.utils.each(this.children,function(t){t.refreshSelf()})},i.prototype.loadCanvas=function(){var t=this.wiki.getTiddler(this.editTitle),e=new Image,i=this;e.onload=function(){i.initCanvas(i.canvasDomNode,e.width,e.height,e),i.currCanvas=i.document.createElement('canvas'),i.initCanvas(i.currCanvas,e.width,e.height,e),i.refreshToolbar()},e.onerror=function(){i.initCanvas(i.canvasDomNode,600,370),i.currCanvas=i.document.createElement('canvas'),i.initCanvas(i.currCanvas,600,370),i.refreshToolbar()},t&&t.fields.type&&t.fields.text?e.src='data:'+t.fields.type+';base64,'+t.fields.text:(e.width=600,e.height=370,e.onerror())},i.prototype.initCanvas=function(t,e,i,o){t.width=e,t.height=i;i=t.getContext('2d');o?i.drawImage(o,0,0):(i.fillStyle='#fff',i.fillRect(0,0,t.width,t.height))},i.prototype.changeCanvasSize=function(t,e){var i=this.document.createElement('canvas');this.initCanvas(i,t,e);var o=i.getContext('2d');o.drawImage(this.currCanvas,0,0),this.currCanvas=i,this.canvasDomNode.width=t,this.canvasDomNode.height=e,(o=this.canvasDomNode.getContext('2d')).drawImage(this.currCanvas,0,0)},i.prototype.rotateCanvasLeft=function(){var t=this.currCanvas.width,e=this.currCanvas.height,i=this.document.createElement('canvas'),o=e,a=t;this.initCanvas(i,o,a);var n=i.getContext('2d');n.save(),n.translate(o/2,a/2),n.rotate(-Math.PI/2),n.drawImage(this.currCanvas,-t/2,-e/2),n.restore(),this.currCanvas=i,this.canvasDomNode.width=o,this.canvasDomNode.height=a,(n=this.canvasDomNode.getContext('2d')).drawImage(this.currCanvas,0,0)},i.prototype.handleTouchStartEvent=function(t){return this.brushDown=!0,this.strokeStart(t.touches[0].clientX,t.touches[0].clientY),t.preventDefault(),t.stopPropagation(),!1},i.prototype.handleTouchMoveEvent=function(t){return this.brushDown&&this.strokeMove(t.touches[0].clientX,t.touches[0].clientY),t.preventDefault(),t.stopPropagation(),!1},i.prototype.handleTouchEndEvent=function(t){return this.brushDown&&(this.brushDown=!1,this.strokeEnd()),t.preventDefault(),t.stopPropagation(),!1},i.prototype.handleMouseDownEvent=function(t){return this.strokeStart(t.clientX,t.clientY),this.brushDown=!0,t.preventDefault(),t.stopPropagation(),!1},i.prototype.handleMouseMoveEvent=function(t){return!this.brushDown||(this.strokeMove(t.clientX,t.clientY),t.preventDefault(),t.stopPropagation(),!1)},i.prototype.handleMouseUpEvent=function(t){return!this.brushDown||(this.brushDown=!1,this.strokeEnd(),t.preventDefault(),t.stopPropagation(),!1)},i.prototype.adjustCoordinates=function(t,e){var i=this.canvasDomNode.getBoundingClientRect(),o=this.canvasDomNode.width/i.width;return{x:(t-i.left)*o,y:(e-i.top)*o}},i.prototype.strokeStart=function(t,e){this.stroke=[this.adjustCoordinates(t,e)]},i.prototype.strokeMove=function(t,e){var i,o=this.canvasDomNode.getContext('2d');for(this.stroke.push(this.adjustCoordinates(t,e)),o.drawImage(this.currCanvas,0,0),o.globalAlpha=parseFloat(this.wiki.getTiddlerText('$:/config/BitmapEditor/Opacity','1.0')),o.strokeStyle=this.wiki.getTiddlerText('$:/config/BitmapEditor/Colour','#ff0'),o.lineWidth=parseFloat(this.wiki.getTiddlerText('$:/config/BitmapEditor/LineWidth','3')),o.lineCap='round',o.lineJoin='round',o.beginPath(),o.moveTo(this.stroke[0].x,this.stroke[0].y),i=1;i<this.stroke.length-1;i++){var a=this.stroke[i],n=this.stroke[i-1],s=(a.x+n.x)/2,a=(a.y+n.y)/2;o.quadraticCurveTo(n.x,n.y,s,a)}o.stroke()},i.prototype.strokeEnd=function(){this.currCanvas.getContext('2d').drawImage(this.canvasDomNode,0,0),this.saveChanges()},i.prototype.saveChanges=function(){var t=this.wiki.getTiddler(this.editTitle)||new $tw.Tiddler({title:this.editTitle,type:'image/png'}),e=this.canvasDomNode.toDataURL(t.fields.type),i=e.indexOf(':'),o=e.indexOf(';'),a=e.indexOf(','),a={type:e.substring(i+1,o),text:e.substring(a+1)};this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getModificationFields(),t,a,this.wiki.getCreationFields()))},exports['edit-bitmap']=i}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/edit-shortcut.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute(),this.inputNode=this.document.createElement('input'),this.shortcutClass&&(this.inputNode.className=this.shortcutClass),this.shortcutStyle&&this.inputNode.setAttribute('style',this.shortcutStyle),this.shortcutTooltip&&this.inputNode.setAttribute('title',this.shortcutTooltip),this.shortcutPlaceholder&&this.inputNode.setAttribute('placeholder',this.shortcutPlaceholder),this.shortcutAriaLabel&&this.inputNode.setAttribute('aria-label',this.shortcutAriaLabel),this.updateInputNode(),$tw.utils.addEventListeners(this.inputNode,[{name:'keydown',handlerObject:this,handlerMethod:'handleKeydownEvent'}]),t.insertBefore(this.inputNode,e),this.domNodes.push(this.inputNode),'yes'!==this.shortcutFocus&&'true'!==this.shortcutFocus||this.focus()},t.prototype.execute=function(){this.shortcutTiddler=this.getAttribute('tiddler'),this.shortcutField=this.getAttribute('field'),this.shortcutIndex=this.getAttribute('index'),this.shortcutPlaceholder=this.getAttribute('placeholder'),this.shortcutDefault=this.getAttribute('default',''),this.shortcutClass=this.getAttribute('class'),this.shortcutStyle=this.getAttribute('style'),this.shortcutTooltip=this.getAttribute('tooltip'),this.shortcutAriaLabel=this.getAttribute('aria-label'),this.shortcutFocus=this.getAttribute('focus')},t.prototype.updateInputNode=function(){var t;this.shortcutField?(t=this.wiki.getTiddler(this.shortcutTiddler))&&$tw.utils.hop(t.fields,this.shortcutField)?this.inputNode.value=t.getFieldString(this.shortcutField):this.inputNode.value=this.shortcutDefault:this.shortcutIndex?this.inputNode.value=this.wiki.extractTiddlerDataItem(this.shortcutTiddler,this.shortcutIndex,this.shortcutDefault):this.inputNode.value=this.wiki.getTiddlerText(this.shortcutTiddler,this.shortcutDefault)},t.prototype.handleKeydownEvent=function(t){if(t.keyCode&&-1===$tw.keyboardManager.getModifierKeys().indexOf(t.keyCode)){var e=$tw.keyboardManager.getPrintableShortcuts([{ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,keyCode:t.keyCode}]);return 0<e.length&&this.wiki.setText(this.shortcutTiddler,this.shortcutField,this.shortcutIndex,e[0]),t.preventDefault(),t.stopPropagation(),!0}return!1},t.prototype.focus=function(){this.inputNode.focus&&this.inputNode.select&&(this.inputNode.focus(),this.inputNode.select())},t.prototype.refresh=function(t){var e=this.computeAttributes();return e.tiddler||e.field||e.index||e.placeholder||e.default||e.class||e.style||e.tooltip||e['aria-label']||e.focus?(this.refreshSelf(),!0):!!t[this.shortcutTiddler]&&(this.updateInputNode(),!0)},exports['edit-shortcut']=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/edit-text.js":{"text":"!function(){'use strict';var e=require('$:/core/modules/editor/factory.js').editTextWidgetFactory,r=require('$:/core/modules/editor/engines/framed.js').FramedEngine,i=require('$:/core/modules/editor/engines/simple.js').SimpleEngine;exports['edit-text']=e(r,i)}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/edit.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute(),this.renderChildren(t,e)},t.prototype.execute=function(){this.editTitle=this.getAttribute('tiddler',this.getVariable('currentTiddler')),this.editField=this.getAttribute('field','text'),this.editIndex=this.getAttribute('index'),this.editClass=this.getAttribute('class'),this.editPlaceholder=this.getAttribute('placeholder'),this.editTabIndex=this.getAttribute('tabindex'),this.editFocus=this.getAttribute('focus',''),this.editCancelPopups=this.getAttribute('cancelPopups',''),this.editInputActions=this.getAttribute('inputActions'),this.editRefreshTitle=this.getAttribute('refreshTitle'),this.editAutoComplete=this.getAttribute('autocomplete'),this.editorType=this.getEditorType(),this.makeChildWidgets([{type:'edit-'+this.editorType,attributes:this.parseTreeNode.attributes,children:this.parseTreeNode.children}])},t.prototype.getEditorType=function(){'text'!==this.editField||(e=this.wiki.getTiddler(this.editTitle))&&(t=e.fields.type),t=t||'text/vnd.tiddlywiki';var t,e=this.wiki.getTiddlerText('$:/config/EditorTypeMappings/'+t);return e||(e=(t=$tw.config.contentTypeInfo[t])&&'base64'===t.encoding?'binary':'text'),e},t.prototype.refresh=function(t){var e=this.computeAttributes();return e.tiddler||e.field||e.index||e.tabindex||e.cancelPopups||e.inputActions||e.refreshTitle||e.autocomplete||t[this.editTitle]&&this.getEditorType()!==this.editorType?(this.refreshSelf(),!0):this.refreshChildren(t)},exports.edit=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/element.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.tag=this.parseTreeNode.tag,-1!==$tw.config.htmlUnsafeElements.indexOf(this.tag)&&(this.tag='safe-'+this.tag);var i,s=['h1','h2','h3','h4','h5','h6'].indexOf(this.tag);-1!==s&&(i=parseInt(this.getVariable('tv-adjust-heading-level','0'),10)||0,s=Math.min(Math.max(s+1+i,1),6),this.tag='h'+s);this.namespace={svg:'http://www.w3.org/2000/svg',math:'http://www.w3.org/1998/Math/MathML',body:'http://www.w3.org/1999/xhtml'}[this.tag],this.namespace?this.setVariable('namespace',this.namespace):this.namespace=this.getVariable('namespace',{defaultValue:'http://www.w3.org/1999/xhtml'});s=$tw.hooks.invokeHook('th-rendering-element',null,this);if(this.isReplaced=!!s,s)return this.makeChildWidgets(s),void this.renderChildren(this.parentDomNode,null);this.makeChildWidgets();s=this.document.createElementNS(this.namespace,this.tag);this.assignAttributes(s,{excludeEventAttributes:!0}),t.insertBefore(s,e),this.renderChildren(s,null),this.domNodes.push(s)},t.prototype.refresh=function(t){var e=this.computeAttributes(),e=0<$tw.utils.count(e);if(e){if(this.isReplaced)return this.refreshSelf();this.assignAttributes(this.domNodes[0],{excludeEventAttributes:!0})}return this.refreshChildren(t)||e},exports.element=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/encrypt.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute();var i=this.document.createTextNode(this.encryptedText);t.insertBefore(i,e),this.domNodes.push(i)},t.prototype.execute=function(){this.filter=this.getAttribute('filter','[!is[system]]');var t=this.wiki.filterTiddlers(this.filter),s={},n=this;$tw.utils.each(t,function(t){var e,i=n.wiki.getTiddler(t),r={};for(e in i.fields)r[e]=i.getFieldString(e);s[t]=r}),this.encryptedText=$tw.utils.htmlEncode($tw.crypto.encrypt(JSON.stringify(s)))},t.prototype.refresh=function(t){return!1},exports.encrypt=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/entity.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute();var i=this.getAttribute('entity',this.parseTreeNode.entity||''),i=this.document.createTextNode($tw.utils.entityDecode(i));t.insertBefore(i,e),this.domNodes.push(i)},t.prototype.execute=function(){},t.prototype.refresh=function(t){return!!this.computeAttributes().entity&&(this.refreshSelf(),!0)},exports.entity=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/eventcatcher.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){var a=this;this.parentDomNode=t,this.computeAttributes(),this.execute();var i=this.parseTreeNode.isBlock?'div':'span';this.elementTag&&-1===$tw.config.htmlUnsafeElements.indexOf(this.elementTag)&&(i=this.elementTag);var d=this.document.createElement(i);this.domNode=d,this.assignDomNodeClasses(),$tw.utils.each(this.types,function(r){d.addEventListener(r,function(t){var e,i=a.getAttribute('selector'),o=a.getAttribute('actions-'+r),s=t.target,n={};if(i){for(;!s.matches(i)&&s!==d;)s=s.parentNode;if(!s.matches(i))return!1;$tw.utils.each(s.attributes,function(t){n['dom-'+t.name]=t.value.toString()}),n['tv-popup-coords']='('+s.offsetLeft+','+s.offsetTop+','+s.offsetWidth+','+s.offsetHeight+')',n['tv-selectednode-posx']=s.offsetLeft.toString(),n['tv-selectednode-posy']=s.offsetTop.toString(),n['tv-selectednode-width']=s.offsetWidth.toString(),n['tv-selectednode-height']=s.offsetHeight.toString(),e=s.getBoundingClientRect(),n['event-fromselected-posx']=(t.clientX-e.left).toString(),n['event-fromselected-posy']=(t.clientY-e.top).toString(),e=a.domNode.getBoundingClientRect(),n['event-fromcatcher-posx']=(t.clientX-e.left).toString(),n['event-fromcatcher-posy']=(t.clientY-e.top).toString()}return!!o&&(n.modifier=$tw.keyboardManager.getEventModifierKeyDescriptor(t),'button'in t&&(0===t.button?n['event-mousebutton']='left':1===t.button?n['event-mousebutton']='middle':2===t.button&&(n['event-mousebutton']='right')),n['event-type']=t.type.toString(),'object'==typeof t.detail&&t.detail?$tw.utils.each(t.detail,function(t,e){n['event-detail-'+e]=t.toString()}):t.detail&&(n['event-detail']=t.detail.toString()),a.invokeActionString(o,a,t,n),t.preventDefault(),t.stopPropagation(),!0)},!1)}),t.insertBefore(d,e),this.renderChildren(d,null),this.domNodes.push(d)},t.prototype.execute=function(){this.types=this.getAttribute('events','').split(' '),this.elementTag=this.getAttribute('tag'),this.makeChildWidgets()},t.prototype.assignDomNodeClasses=function(){var t=this.getAttribute('class','').split(' ');t.push('tc-eventcatcher'),this.domNode.className=t.join(' ')},t.prototype.refresh=function(t){var e=this.computeAttributes();return e.events||e.tag?(this.refreshSelf(),!0):(e.class&&this.assignDomNodeClasses(),this.refreshChildren(t))},exports.eventcatcher=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/fieldmangler.js":{"text":"!function(){'use strict';function e(e,t){this.initialise(e,t)}var t=require('$:/core/modules/widgets/widget.js').widget;(e.prototype=new t).render=function(e,t){this.addEventListeners([{type:'tm-remove-field',handler:'handleRemoveFieldEvent'},{type:'tm-add-field',handler:'handleAddFieldEvent'},{type:'tm-remove-tag',handler:'handleRemoveTagEvent'},{type:'tm-add-tag',handler:'handleAddTagEvent'}]),this.parentDomNode=e,this.computeAttributes(),this.execute(),this.renderChildren(e,t)},e.prototype.execute=function(){this.mangleTitle=this.getAttribute('tiddler',this.getVariable('currentTiddler')),this.makeChildWidgets()},e.prototype.refresh=function(e){return this.computeAttributes().tiddler?(this.refreshSelf(),!0):this.refreshChildren(e)},e.prototype.handleRemoveFieldEvent=function(e){var t=this.wiki.getTiddler(this.mangleTitle),i={};return i[e.param]=void 0,this.wiki.addTiddler(new $tw.Tiddler(t,i)),!1},e.prototype.handleAddFieldEvent=function(e){function t(e,t){if(e=e.toLowerCase().trim(),$tw.utils.isValidFieldName(e))!t&&i&&(t=i.fields[e]),d[e]=t||'';else if(!r)return alert($tw.language.getString('InvalidFieldName',{variables:{fieldName:e}})),r=!0,0}var i=this.wiki.getTiddler(this.mangleTitle),d=this.wiki.getModificationFields(),r=!1;if(d.title=this.mangleTitle,'string'==typeof e.param&&t(e.param,''),'object'==typeof e.paramObject)for(var a in e.paramObject)t(a,e.paramObject[a]);return this.wiki.addTiddler(new $tw.Tiddler(i,d)),!1},e.prototype.handleRemoveTagEvent=function(e){var t=this.wiki.getTiddler(this.mangleTitle),i=this.wiki.getModificationFields();return t&&t.fields.tags&&(-1!==(e=t.fields.tags.indexOf(e.param))&&(i.tags=(t.fields.tags||[]).slice(0),i.tags.splice(e,1),0===i.tags.length&&(i.tags=void 0),this.wiki.addTiddler(new $tw.Tiddler(t,i)))),!1},e.prototype.handleAddTagEvent=function(e){var t,i=this.wiki.getTiddler(this.mangleTitle),d=this.wiki.getModificationFields();return i&&'string'==typeof e.param?''!==(t=e.param.trim())&&(d.tags=(i.fields.tags||[]).slice(0),$tw.utils.pushTop(d.tags,t),this.wiki.addTiddler(new $tw.Tiddler(i,d))):'string'==typeof e.param&&''!==e.param.trim()&&''!==this.mangleTitle.trim()&&((t=[]).push(e.param.trim()),this.wiki.addTiddler(new $tw.Tiddler({title:this.mangleTitle,tags:t},d))),!1},exports.fieldmangler=e}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/fields.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute();var i=this.document.createTextNode(this.text);t.insertBefore(i,e),this.domNodes.push(i)},t.prototype.execute=function(){this.tiddlerTitle=this.getAttribute('tiddler',this.getVariable('currentTiddler')),this.template=this.getAttribute('template'),this.sort='yes'===this.getAttribute('sort','yes'),this.sortReverse='yes'===this.getAttribute('sortReverse','no'),this.exclude=this.getAttribute('exclude'),this.include=this.getAttribute('include',null),this.stripTitlePrefix='yes'===this.getAttribute('stripTitlePrefix','no');var t=this.wiki.getTiddler(this.tiddlerTitle),e=this.exclude?this.exclude.split(' '):['text'],i=this.include?this.include.split(' '):null,s=[];if(this.template&&t){var r=[];if(i)for(var l=0;l<i.length;l++)t.fields[i[l]]&&r.push(i[l]);else for(var h in t.fields)-1===e.indexOf(h)&&r.push(h);this.sort&&r.sort(),this.sortReverse&&r.reverse();for(var u=0,d=r.length;u<d;u++){h=r[u];var o,n=this.template,c=t.getFieldString(h);this.stripTitlePrefix&&'title'===h&&((o=/^\\{[^\\}]+\\}(.+)/gm.exec(c))&&(c=o[1])),n=$tw.utils.replaceString(n,'$name$',h),n=$tw.utils.replaceString(n,'$value$',c),n=$tw.utils.replaceString(n,'$encoded_value$',$tw.utils.htmlEncode(c)),s.push(n)}}this.text=s.join('')},t.prototype.refresh=function(t){var e=this.computeAttributes();return!!(e.tiddler||e.template||e.exclude||e.include||e.sort||e.sortReverse||t[this.tiddlerTitle]||e.stripTitlePrefix)&&(this.refreshSelf(),!0)},exports.fields=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/image.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute();var i='img',s='',a=this.wiki.getTiddler(this.imageSource);if(a){if(this.wiki.isImageTiddler(this.imageSource)){var h=a.fields.type,r=a.fields.text,g=a.fields._canonical_uri;if(r)switch(h){case'application/pdf':i='embed',s='data:application/pdf;base64,'+r;break;case'image/svg+xml':s='data:image/svg+xml,'+encodeURIComponent(r);break;default:s='data:'+h+';base64,'+r}else if(g)switch(h){case'application/pdf':i='embed',s=g;break;case'image/svg+xml':default:s=g}else this.wiki.getTiddlerText(this.imageSource)}}else s=this.getVariable('tv-get-export-image-link',{params:[{name:'src',value:this.imageSource}],defaultValue:this.imageSource});a=this.document.createElement(i);a.setAttribute('src',s),this.imageClass&&a.setAttribute('class',this.imageClass),this.imageWidth&&a.setAttribute('width',this.imageWidth),this.imageHeight&&a.setAttribute('height',this.imageHeight),this.imageTooltip&&a.setAttribute('title',this.imageTooltip),this.imageAlt&&a.setAttribute('alt',this.imageAlt),t.insertBefore(a,e),this.domNodes.push(a)},t.prototype.execute=function(){this.imageSource=this.getAttribute('source'),this.imageWidth=this.getAttribute('width'),this.imageHeight=this.getAttribute('height'),this.imageClass=this.getAttribute('class'),this.imageTooltip=this.getAttribute('tooltip'),this.imageAlt=this.getAttribute('alt')},t.prototype.refresh=function(t){var e=this.computeAttributes();return!!(e.source||e.width||e.height||e.class||e.tooltip||t[this.imageSource])&&(this.refreshSelf(),!0)},exports.image=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/importvariables.js":{"text":"!function(){'use strict';function i(i,t){this.initialise(i,t)}var t=require('$:/core/modules/widgets/widget.js').widget;(i.prototype=new t).render=function(i,t){this.parentDomNode=i,this.computeAttributes(),this.execute(),this.renderChildren(i,t)},i.prototype.execute=function(i){var s=this;this.variables=new this.variablesConstructor,this.filter=this.getAttribute('filter'),this.tiddlerList=i||this.wiki.filterTiddlers(this.filter,this),$tw.utils.each(this.tiddlerList,function(i){i=s.wiki.parseTiddler(i);if(i)for(var t=i.tree[0];t&&'set'===t.type;){var e,r={type:'set',attributes:t.attributes,params:t.params,isMacroDefinition:t.isMacroDefinition};t.isMacroDefinition?((e=s.makeChildWidget(r)).computeAttributes(),e.execute(),$tw.utils.each(Object.keys(e.variables),function(i){s.variables[i]=e.variables[i]})):(s.children=[s.makeChildWidget(r)],s!=this&&(s.makeChildWidgets=function(){}),s=s.children[0]),t=t.children&&t.children[0]}}),s!=this?s.parseTreeNode.children=this.parseTreeNode.children:s.makeChildWidgets()},i.prototype.refresh=function(t){var e,i=this.computeAttributes(),r=this.wiki.filterTiddlers(this.getAttribute('filter'),this);return i.filter||!$tw.utils.isArrayEqual(this.tiddlerList,r)||(e=!1,r.forEach(function(i){t[i]&&(e=!0)}),e)?(this.removeChildDomNodes(),this.execute(r),this.renderChildren(this.parentDomNode,this.findNextSiblingDomNode()),!0):this.refreshChildren(t)},exports.importvariables=i}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/keyboard.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){var s=this;this.parentDomNode=t,this.computeAttributes(),this.execute();var i=this.parseTreeNode.isBlock?'div':'span';this.tag&&-1===$tw.config.htmlUnsafeElements.indexOf(this.tag)&&(i=this.tag);var r=this.document.createElement(i),i=(this.class||'').split(' ');i.push('tc-keyboard'),r.className=i.join(' '),r.addEventListener('keydown',function(t){if($tw.keyboardManager.checkKeyDescriptors(t,s.keyInfoArray)){var e=s.invokeActions(s,t);return s.actions&&s.invokeActionString(s.actions,s,t),s.dispatchMessage(t),(e||s.actions||s.message)&&(t.preventDefault(),t.stopPropagation()),!0}return!1},!1),t.insertBefore(r,e),this.renderChildren(r,null),this.domNodes.push(r)},t.prototype.dispatchMessage=function(t){this.dispatchEvent({type:this.message,param:this.param,tiddlerTitle:this.getVariable('currentTiddler')})},t.prototype.execute=function(){var e,s=this;this.actions=this.getAttribute('actions',''),this.message=this.getAttribute('message',''),this.param=this.getAttribute('param',''),this.key=this.getAttribute('key',''),this.tag=this.getAttribute('tag',''),this.keyInfoArray=$tw.keyboardManager.parseKeyDescriptors(this.key),this.class=this.getAttribute('class',''),'(('===this.key.substr(0,2)&&'))'===this.key.substr(-2,2)&&(this.shortcutTiddlers=[],e=this.key.substring(2,this.key.length-2),$tw.utils.each($tw.keyboardManager.lookupNames,function(t){s.shortcutTiddlers.push('$:/config/'+t+'/'+e)})),this.makeChildWidgets()},t.prototype.refresh=function(t){var e=this.computeAttributes();return e.message||e.param||e.key||e.class||e.tag?(this.refreshSelf(),!0):(this.shortcutTiddlers&&$tw.utils.hopArray(t,this.shortcutTiddlers)&&(this.keyInfoArray=$tw.keyboardManager.parseKeyDescriptors(this.key)),this.refreshChildren(t))},exports.keyboard=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/link.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute();var i=this.getVariable('tv-wikilinks'),s=!i||'no'!==i.trim(),i=!(this.hideMissingLinks&&this.isMissing&&!this.isShadow);s&&i?this.renderLink(t,e):(i=this.document.createElement('span'),t.insertBefore(i,e),this.renderChildren(i,null),this.domNodes.push(i))},t.prototype.renderLink=function(t,e){var i=this,s=this.linkTag;-1!==$tw.config.htmlUnsafeElements.indexOf(s)&&(s='a');var r=this.getVariable('namespace',{defaultValue:'http://www.w3.org/1999/xhtml'}),h=this.document.createElementNS(r,s),a=[];void 0===this.overrideClasses?(a.push('tc-tiddlylink'),this.isShadow&&a.push('tc-tiddlylink-shadow'),this.isMissing&&!this.isShadow?a.push('tc-tiddlylink-missing'):this.isMissing||a.push('tc-tiddlylink-resolves'),this.linkClasses&&a.push(this.linkClasses)):''!==this.overrideClasses&&a.push(this.overrideClasses),0<a.length&&h.setAttribute('class',a.join(' '));a=this.getVariable('tv-filter-export-link');n=a?this.wiki.filterTiddlers(a,this,function(t){t(i.wiki.getTiddler(i.to),i.to)})[0]:(n=(n=this.getVariable('tv-wikilink-template'))?n.trim():'#$uri_encoded$',n=$tw.utils.replaceString(n,'$uri_encoded$',encodeURIComponent(this.to)),$tw.utils.replaceString(n,'$uri_doubleencoded$',encodeURIComponent(encodeURIComponent(this.to)))),n=this.getVariable('tv-get-export-link',{params:[{name:'to',value:this.to}],defaultValue:n}),'a'===s&&(r='http://www.w3.org/2000/svg'===r?'http://www.w3.org/1999/xlink':void 0,h.setAttributeNS(r,'href',n)),this.tabIndex&&h.setAttribute('tabindex',this.tabIndex);var n=this.tooltip||this.getVariable('tv-wikilink-tooltip');n&&(n=this.wiki.renderText('text/plain','text/vnd.tiddlywiki',n,{parseAsInline:!0,variables:{currentTiddler:this.to},parentWidget:this}),h.setAttribute('title',n)),this['aria-label']&&h.setAttribute('aria-label',this['aria-label']),$tw.utils.addEventListeners(h,[{name:'click',handlerObject:this,handlerMethod:'handleClickEvent'}]),'yes'===this.draggable&&$tw.utils.makeDraggable({domNode:h,dragTiddlerFn:function(){return i.to},widget:this}),t.insertBefore(h,e),this.renderChildren(h,null),this.domNodes.push(h)},t.prototype.handleClickEvent=function(t){var e=this.domNodes[0].getBoundingClientRect();return this.dispatchEvent({type:'tm-navigate',navigateTo:this.to,navigateFromTitle:this.getVariable('storyTiddler'),navigateFromNode:this,navigateFromClientRect:{top:e.top,left:e.left,width:e.width,right:e.right,bottom:e.bottom,height:e.height},navigateSuppressNavigation:t.metaKey||t.ctrlKey||1===t.button,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey,event:t}),this.domNodes[0].hasAttribute('href')&&t.preventDefault(),t.stopPropagation(),!1},t.prototype.execute=function(){var t;this.to=this.getAttribute('to',this.getVariable('currentTiddler')),this.tooltip=this.getAttribute('tooltip'),this['aria-label']=this.getAttribute('aria-label'),this.linkClasses=this.getAttribute('class'),this.overrideClasses=this.getAttribute('overrideClass'),this.tabIndex=this.getAttribute('tabindex'),this.draggable=this.getAttribute('draggable','yes'),this.linkTag=this.getAttribute('tag','a'),this.isMissing=!this.wiki.tiddlerExists(this.to),this.isShadow=this.wiki.isShadowTiddler(this.to),this.hideMissingLinks='no'===(this.getVariable('tv-show-missing-links')||'yes'),t=this.parseTreeNode.children&&0<this.parseTreeNode.children.length?this.parseTreeNode.children:[{type:'text',text:this.to}],this.makeChildWidgets(t)},t.prototype.refresh=function(t){var e=this.computeAttributes();return e.to||t[this.to]||e['aria-label']||e.tooltip?(this.refreshSelf(),!0):this.refreshChildren(t)},exports.link=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/linkcatcher.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.addEventListeners([{type:'tm-navigate',handler:'handleNavigateEvent'}]),this.parentDomNode=t,this.computeAttributes(),this.execute(),this.renderChildren(t,e)},t.prototype.execute=function(){this.catchTo=this.getAttribute('to'),this.catchMessage=this.getAttribute('message'),this.catchSet=this.getAttribute('set'),this.catchSetTo=this.getAttribute('setTo'),this.catchActions=this.getAttribute('actions'),this.makeChildWidgets(),this.executingActions=!1},t.prototype.refresh=function(t){var e=this.computeAttributes();return e.to||e.message||e.set||e.setTo?(this.refreshSelf(),!0):this.refreshChildren(t)},t.prototype.handleNavigateEvent=function(t){var e;return this.executingActions?this.parentWidget.dispatchEvent({type:'tm-navigate',param:t.navigateTo,navigateTo:t.navigateTo}):(this.catchTo&&this.wiki.setTextReference(this.catchTo,t.navigateTo,this.getVariable('currentTiddler')),this.catchMessage&&this.parentWidget&&this.parentWidget.dispatchEvent({type:this.catchMessage,param:t.navigateTo,navigateTo:t.navigateTo}),this.catchSet&&(e=this.wiki.getTiddler(this.catchSet),this.wiki.addTiddler(new $tw.Tiddler(e,{title:this.catchSet,text:this.catchSetTo}))),this.catchActions&&(this.executingActions=!0,e=$tw.keyboardManager.getEventModifierKeyDescriptor(t),this.invokeActionString(this.catchActions,this,t,{navigateTo:t.navigateTo,modifier:e}),this.executingActions=!1)),!1},exports.linkcatcher=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/list.js":{"text":"!function(){'use strict';function i(t,e){this.initialise(t,e)}var t=require('$:/core/modules/widgets/widget.js').widget;function e(t,e){this.initialise(t,e)}(i.prototype=new t).render=function(t,e){this.storyViews||(i.prototype.storyViews={},$tw.modules.applyMethods('storyview',this.storyViews)),this.parentDomNode=t,this.computeAttributes(),this.execute(),this.renderChildren(t,e);e=this.storyViews[this.storyViewName];this.storyViewName&&!e&&(e=this.storyViews.classic),e&&!this.document.isTiddlyWikiFakeDom?this.storyview=new e(this):this.storyview=null},i.prototype.execute=function(){this.template=this.getAttribute('template'),this.editTemplate=this.getAttribute('editTemplate'),this.variableName=this.getAttribute('variable','currentTiddler'),this.indexName=this.getAttribute('index'),this.storyViewName=this.getAttribute('storyview'),this.historyTitle=this.getAttribute('history'),this.list=this.getTiddlerList();var i=[],s=this;0===this.list.length?i=this.getEmptyMessage():$tw.utils.each(this.list,function(t,e){i.push(s.makeItemTemplate(t,e))}),this.makeChildWidgets(i),this.history=[]},i.prototype.getTiddlerList=function(){return this.wiki.filterTiddlers(this.getAttribute('filter','[!is[system]sort[title]]'),this)},i.prototype.getEmptyMessage=function(){var t=this.getAttribute('emptyMessage','');return''!==t&&(t=this.wiki.parseText('text/vnd.tiddlywiki',t,{parseAsInline:!0}))?t.tree:[]},i.prototype.makeItemTemplate=function(t,e){var i=this.wiki.getTiddler(t),s=i&&i.hasField('draft.of'),i=this.template;s&&this.editTemplate&&(i=this.editTemplate),i=i?[{type:'transclude',attributes:{tiddler:{type:'string',value:i}}}]:this.parseTreeNode.children&&0<this.parseTreeNode.children.length?this.parseTreeNode.children:[{type:'element',tag:this.parseTreeNode.isBlock?'div':'span',children:[{type:'link',attributes:{to:{type:'string',value:t}},children:[{type:'text',text:t}]}]}];i={type:'listitem',itemTitle:t,variableName:this.variableName,children:i};return this.indexName&&(i.index=e.toString(),i.indexName=this.indexName,i.isFirst=0===e,i.isLast=e===this.list.length-1),i},i.prototype.refresh=function(t){var e,i=this.computeAttributes();return this.storyview&&this.storyview.refreshStart&&this.storyview.refreshStart(t,i),i.filter||i.variable||i.index||i.template||i.editTemplate||i.emptyMessage||i.storyview||i.history?(this.refreshSelf(),e=!0):(e=this.handleListChanges(t),this.historyTitle&&t[this.historyTitle]&&this.handleHistoryChanges()),this.storyview&&this.storyview.refreshEnd&&this.storyview.refreshEnd(t,i),e},i.prototype.handleHistoryChanges=function(){for(var t=this.wiki.getTiddlerDataCached(this.historyTitle,[]),e=0;e<t.length&&e<this.history.length&&t[e].title===this.history[e].title;)e++;for(;e<t.length;)this.storyview&&this.storyview.navigateTo&&this.storyview.navigateTo(t[e]),e++;this.history=t},i.prototype.handleListChanges=function(t){var e=this.list;if(this.list=this.getTiddlerList(),0===this.list.length){if(0===e.length)return this.refreshChildren(t);for(s=this.children.length-1;0<=s;s--)this.removeListItem(s);var i=this.findNextSiblingDomNode();return this.makeChildWidgets(this.getEmptyMessage()),this.renderChildren(this.parentDomNode,i),!0}0===e.length&&(this.removeChildDomNodes(),this.children=[]);var s,r=!1;if(this.indexName)for(s=0;s<this.list.length;s++)r=r||!this.children[s]||this.children[s].parseTreeNode.itemTitle!==this.list[s]?(this.children[s]&&this.removeListItem(s),this.insertListItem(s,this.list[s]),!0):(n=this.children[s].refresh(t),r||n);else for(s=0;s<this.list.length;s++){var h=this.findListItem(s,this.list[s]);if(void 0===h)this.insertListItem(s,this.list[s]),r=!0;else{for(var o=h-1;s<=o;o--)this.removeListItem(o),r=!0;var n=this.children[s].refresh(t);r=r||n}}for(s=this.children.length-1;s>=this.list.length;s--)this.removeListItem(s),r=!0;return r},i.prototype.findListItem=function(t,e){for(;t<this.children.length;){if(this.children[t].parseTreeNode.itemTitle===e)return t;t++}},i.prototype.insertListItem=function(t,e){e=this.makeChildWidget(this.makeItemTemplate(e,t));e.parentDomNode=this.parentDomNode,this.children.splice(t,0,e);t=e.findNextSiblingDomNode();return e.render(this.parentDomNode,t),this.storyview&&this.storyview.insert&&this.storyview.insert(e),!0},i.prototype.removeListItem=function(t){var e=this.children[t];this.storyview&&this.storyview.remove?this.storyview.remove(e):e.removeChildDomNodes(),this.children.splice(t,1)},exports.list=i,(e.prototype=new t).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute(),this.renderChildren(t,e)},e.prototype.execute=function(){this.setVariable(this.parseTreeNode.variableName,this.parseTreeNode.itemTitle),this.parseTreeNode.indexName&&(this.setVariable(this.parseTreeNode.indexName,this.parseTreeNode.index),this.setVariable(this.parseTreeNode.indexName+'-first',this.parseTreeNode.isFirst?'yes':'no'),this.setVariable(this.parseTreeNode.indexName+'-last',this.parseTreeNode.isLast?'yes':'no')),this.makeChildWidgets()},e.prototype.refresh=function(t){return this.refreshChildren(t)},exports.listitem=e}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/log.js":{"text":"!function(){'use strict';exports.baseClass='action-log',exports.name='log',exports.constructor=function(t,e){this.initialise(t,e)},exports.prototype={},exports.prototype.render=function(t){Object.getPrototypeOf(Object.getPrototypeOf(this)).render.call(this,t),Object.getPrototypeOf(Object.getPrototypeOf(this)).log.call(this)}}();","type":"application/javascript","module-type":"widget-subclass"},"$:/core/modules/widgets/macrocall.js":{"text":"!function(){'use strict';function e(e,t){this.initialise(e,t)}var t=require('$:/core/modules/widgets/widget.js').widget;(e.prototype=new t).render=function(e,t){this.parentDomNode=e,this.computeAttributes(),this.execute(),this.renderChildren(e,t)},e.prototype.execute=function(){this.parseType=this.getAttribute('$type','text/vnd.tiddlywiki'),this.renderOutput=this.getAttribute('$output','text/html');var r=this.parseTreeNode.params?this.parseTreeNode.params.slice(0):[];$tw.utils.each(this.attributes,function(e,t){'$'!==t.charAt(0)&&r.push({name:t,value:e})});var e,i,t=this.parseTreeNode.name||this.getAttribute('$name'),s=this.getVariableInfo(t,{params:r}),a=s.text;e='text/html'===this.renderOutput?(t=this.parseTreeNode.isBlock?'blockParser':'inlineParser',s.srcVariable&&s.srcVariable[t]?e=s.srcVariable[t]:(e=this.wiki.parseText(this.parseType,a,{parseAsInline:!this.parseTreeNode.isBlock}),s.isCacheable&&s.srcVariable&&(s.srcVariable[t]=e)),e=e?e.tree:[],i={},$tw.utils.each(s.params,function(e){var t='__'+e.name+'__';i[t]={name:t,type:'string',value:e.value}}),[{type:'vars',attributes:i,children:e}]):'text/raw'===this.renderOutput?[{type:'text',text:a}]:[{type:'text',text:this.wiki.renderText('text/plain',this.parseType,a,{parentWidget:this})}],this.makeChildWidgets(e)},e.prototype.refresh=function(e){var t=this.computeAttributes();return 0<$tw.utils.count(t)?(this.refreshSelf(),!0):this.refreshChildren(e)},exports.macrocall=e}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/messagecatcher.js":{"text":"!function(){'use strict';function e(e,t){this.initialise(e,t)}var t=require('$:/core/modules/widgets/widget.js').widget;(e.prototype=new t).render=function(e,t){this.parentDomNode=e,this.computeAttributes(),this.execute(),this.messageType&&this.addEventListeners([{type:this.messageType,handler:'handleEvent'}]),this.renderChildren(e,null)},e.prototype.execute=function(){this.messageType=this.getAttribute('type'),this.messageActions=this.getAttribute('actions'),this.makeChildWidgets()},e.prototype.handleEvent=function(e){var t;return this.messageActions&&(t=function(e,i){i=i||'';var s={};return $tw.utils.each(e,function(e,t){-1!==['string','boolean','number'].indexOf(typeof e)&&(s[i+t]=e.toString())}),s},t=$tw.utils.extend({},t(e.paramObject,'event-paramObject-'),t(e,'event-'),{modifier:$tw.keyboardManager.getEventModifierKeyDescriptor(e)}),this.invokeActionString(this.messageActions,this,e,t)),!1},e.prototype.refresh=function(e){return this.computeAttributes().type?(this.refreshSelf(),!0):this.refreshChildren(e)},exports.messagecatcher=e}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/navigator.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.addEventListeners([{type:'tm-navigate',handler:'handleNavigateEvent'},{type:'tm-edit-tiddler',handler:'handleEditTiddlerEvent'},{type:'tm-delete-tiddler',handler:'handleDeleteTiddlerEvent'},{type:'tm-save-tiddler',handler:'handleSaveTiddlerEvent'},{type:'tm-cancel-tiddler',handler:'handleCancelTiddlerEvent'},{type:'tm-close-tiddler',handler:'handleCloseTiddlerEvent'},{type:'tm-close-all-tiddlers',handler:'handleCloseAllTiddlersEvent'},{type:'tm-close-other-tiddlers',handler:'handleCloseOtherTiddlersEvent'},{type:'tm-new-tiddler',handler:'handleNewTiddlerEvent'},{type:'tm-import-tiddlers',handler:'handleImportTiddlersEvent'},{type:'tm-perform-import',handler:'handlePerformImportEvent'},{type:'tm-fold-tiddler',handler:'handleFoldTiddlerEvent'},{type:'tm-fold-other-tiddlers',handler:'handleFoldOtherTiddlersEvent'},{type:'tm-fold-all-tiddlers',handler:'handleFoldAllTiddlersEvent'},{type:'tm-unfold-all-tiddlers',handler:'handleUnfoldAllTiddlersEvent'},{type:'tm-rename-tiddler',handler:'handleRenameTiddlerEvent'}]),this.parentDomNode=t,this.computeAttributes(),this.execute(),this.renderChildren(t,e)},t.prototype.execute=function(){this.storyTitle=this.getAttribute('story'),this.historyTitle=this.getAttribute('history'),this.setVariable('tv-story-list',this.storyTitle),this.setVariable('tv-history-list',this.historyTitle),this.story=new $tw.Story({wiki:this.wiki,storyTitle:this.storyTitle,historyTitle:this.historyTitle}),this.makeChildWidgets()},t.prototype.refresh=function(t){var e=this.computeAttributes();return e.story||e.history?(this.refreshSelf(),!0):this.refreshChildren(t)},t.prototype.getStoryList=function(){return this.storyTitle?this.wiki.getTiddlerList(this.storyTitle):null},t.prototype.saveStoryList=function(t){var e;this.storyTitle&&(e=this.wiki.getTiddler(this.storyTitle),this.wiki.addTiddler(new $tw.Tiddler({title:this.storyTitle},e,{list:t})))},t.prototype.removeTitleFromStory=function(t,e){if(t)for(var i=t.indexOf(e);-1!==i;)t.splice(i,1),i=t.indexOf(e)},t.prototype.replaceFirstTitleInStory=function(t,e,i){if(t){var r=t.indexOf(e);if(-1!==r)for(t[r]=i;-1!==(r=t.indexOf(e,r+1))&&t.splice(r,1),-1!==r;);else t.splice(0,0,i)}},t.prototype.addToStory=function(t,e){this.storyTitle&&this.story.addToStory(t,e,{openLinkFromInsideRiver:this.getAttribute('openLinkFromInsideRiver','top'),openLinkFromOutsideRiver:this.getAttribute('openLinkFromOutsideRiver','top')})},t.prototype.addToHistory=function(t,e){this.story.addToHistory(t,e,this.historyTitle)},t.prototype.handleNavigateEvent=function(t){return(t=$tw.hooks.invokeHook('th-navigating',t)).navigateTo&&(this.addToStory(t.navigateTo,t.navigateFromTitle),t.navigateSuppressNavigation||this.addToHistory(t.navigateTo,t.navigateFromClientRect)),!1},t.prototype.handleCloseTiddlerEvent=function(t){var e=t.param||t.tiddlerTitle,t=this.getStoryList();return this.removeTitleFromStory(t,e),this.saveStoryList(t),!1},t.prototype.handleCloseAllTiddlersEvent=function(t){return this.saveStoryList([]),!1},t.prototype.handleCloseOtherTiddlersEvent=function(t){t=t.param||t.tiddlerTitle;return this.saveStoryList([t]),!1},t.prototype.handleEditTiddlerEvent=function(t){if(!$tw.hooks.invokeHook('th-editing-tiddler',t))return!1;var e=this;var i,r,d=t.param||t.tiddlerTitle;if(r=d,e.wiki.isShadowTiddler(r)&&!e.wiki.tiddlerExists(r)&&(i=d,!confirm($tw.language.getString('ConfirmEditShadowTiddler',{variables:{title:i}}))))return!1;var s=this.makeDraftTiddler(d);if(!t.paramObject||'yes'!==t.paramObject.suppressNavigation){var l=s.fields.title,s=this.getStoryList();return this.removeTitleFromStory(s,l),this.replaceFirstTitleInStory(s,d,l),this.addToHistory(l,t.navigateFromClientRect),this.saveStoryList(s),!1}},t.prototype.handleDeleteTiddlerEvent=function(t){var e=t.param||t.tiddlerTitle,i=this.wiki.getTiddler(e),r=this.getStoryList(),d=i?i.fields['draft.of']:'',s=d?this.wiki.getTiddler(d):void 0;return!!i&&(t=d||e,(!this.wiki.getTiddler(d)&&''===(i.fields.text||'')||confirm($tw.language.getString('ConfirmDeleteTiddler',{variables:{title:t}})))&&(d&&(s&&$tw.hooks.invokeHook('th-deleting-tiddler',s),this.wiki.deleteTiddler(d),this.removeTitleFromStory(r,d)),$tw.hooks.invokeHook('th-deleting-tiddler',i),this.wiki.deleteTiddler(e),this.removeTitleFromStory(r,e),this.saveStoryList(r),$tw.rootWidget.dispatchEvent({type:'tm-auto-save-wiki'})),!1)},t.prototype.makeDraftTiddler=function(t){if(i=this.wiki.findDraft(t))return this.wiki.getTiddler(i);var e=this.wiki.getTiddler(t),i=this.generateDraftTitle(t),t=new $tw.Tiddler({text:''},e,{title:i,'draft.title':t,'draft.of':t},this.wiki.getModificationFields());return this.wiki.addTiddler(t),t},t.prototype.generateDraftTitle=function(t){return this.wiki.generateDraftTitle(t)},t.prototype.handleSaveTiddlerEvent=function(t){var e,i,r,d,s=t.param||t.tiddlerTitle,l=this.wiki.getTiddler(s),o=this.getStoryList();return l&&(e=(l.fields['draft.title']||'').trim(),i=(l.fields['draft.of']||'').trim(),e&&(d=!0,(r=i!==e)&&this.wiki.tiddlerExists(e)&&(d=confirm($tw.language.getString('ConfirmOverwriteTiddler',{variables:{title:e}}))),d&&(d=new $tw.Tiddler(this.wiki.getCreationFields(),l,{title:e,'draft.title':void 0,'draft.of':void 0},this.wiki.getModificationFields()),d=$tw.hooks.invokeHook('th-saving-tiddler',d,l),this.wiki.addTiddler(d),d='yes'===this.getAttribute('relinkOnRename','no').toLowerCase().trim(),r&&d&&this.wiki.tiddlerExists(i)&&this.wiki.relinkTiddler(i,e),this.wiki.deleteTiddler(s),r&&this.wiki.deleteTiddler(i),this.removeTitleFromStory(o,e),this.removeTitleFromStory(o,i),t.paramObject&&'yes'===t.paramObject.suppressNavigation||(this.replaceFirstTitleInStory(o,s,e),this.addToHistory(e,t.navigateFromClientRect),e!==this.storyTitle&&this.saveStoryList(o)),$tw.rootWidget.dispatchEvent({type:'tm-auto-save-wiki'})))),!1},t.prototype.handleCancelTiddlerEvent=function(t){var e,i,r=(t=$tw.hooks.invokeHook('th-cancelling-tiddler',t)).param||t.tiddlerTitle,d=this.wiki.getTiddler(r),s=d&&d.fields['draft.of'];return d&&s&&(e=!0,i=this.wiki.getTiddler(s),d=this.getStoryList(),this.wiki.isDraftModified(r)&&(e=confirm($tw.language.getString('ConfirmCancelTiddler',{variables:{title:r}}))),e&&(this.wiki.deleteTiddler(r),t.paramObject&&'yes'===t.paramObject.suppressNavigation||(i?(this.replaceFirstTitleInStory(d,r,s),this.addToHistory(s,t.navigateFromClientRect)):this.removeTitleFromStory(d,r),this.saveStoryList(d)))),!1},t.prototype.handleNewTiddlerEvent=function(t){t=$tw.hooks.invokeHook('th-new-tiddler',t);var e,i,r,d,s,l=this.getStoryList();'string'==typeof t.param&&(e=this.wiki.getTiddler(t.param),r=this.wiki.generateNewTitle(t.param||$tw.language.getString('DefaultNewTiddlerTitle'))),'object'==typeof t.paramObject&&(i=t.paramObject),'object'==typeof t.param&&(i=t.param),i&&i.title&&(r=i.title);var o=$tw.utils.extend({},i);Object.keys(o).forEach(function(t){''===o[t]&&delete o[t]}),r=r||this.wiki.generateNewTitle($tw.language.getString('DefaultNewTiddlerTitle'));var n=[];(s=(d=this.wiki.findDraft(r))?this.wiki.getTiddler(d):(d=this.generateDraftTitle(r),this.wiki.getTiddler(r)))&&s.fields.tags&&$tw.utils.pushTop(n,s.fields.tags),i&&i.tags&&(n=$tw.utils.pushTop(n,$tw.utils.parseStringArray(i.tags))),e&&e.fields.tags&&(n=$tw.utils.pushTop(n,e.fields.tags));n=new $tw.Tiddler({text:'','draft.title':r},e,i,this.wiki.getCreationFields(),s,o,{title:d,'draft.of':r,tags:n},this.wiki.getModificationFields());return this.wiki.addTiddler(n),l&&-1===l.indexOf(d)&&(-1===(t=l.indexOf(t.navigateFromTitle))&&(t='bottom'===this.getAttribute('openLinkFromOutsideRiver','top')?l.length-1:t),l.splice(t+1,0,d)),l&&-1!==l.indexOf(r)&&l.splice(l.indexOf(r),1),this.saveStoryList(l),this.addToHistory(d),!1},t.prototype.handleImportTiddlersEvent=function(t){var e=[];try{e=JSON.parse(t.param)}catch(t){}var i=t.importTitle||'$:/Import',r=this.wiki.getTiddler(i),d=this.wiki.getTiddlerData(i,{}),s=new Object({title:i,type:'application/json','plugin-type':'import',status:'pending'}),l=[];d.tiddlers=d.tiddlers||{},$tw.utils.each(e,function(t){t.title=$tw.utils.trim(t.title);var e=t.title;e&&(l.push(e),d.tiddlers[e]=t)});var o=this.wiki.invokeUpgraders(l,d.tiddlers);return $tw.utils.each(o,function(t,e){s['message-'+e]=t}),$tw.utils.each(d.tiddlers,function(t,e){0===$tw.utils.count(t)&&(s['selection-'+e]='unchecked',s['suppressed-'+e]='yes')}),s.text=JSON.stringify(d,null,$tw.config.preferences.jsonSpaces),this.wiki.addTiddler(new $tw.Tiddler(r,s)),'no'!==(t.autoOpenOnImport||this.getVariable('tv-auto-open-on-import'))&&(o=[],(r=this.getStoryList())&&-1===r.indexOf(i)&&r.unshift(i),o.push(i),this.saveStoryList(r),this.addToHistory(o)),!1},t.prototype.handlePerformImportEvent=function(t){var i=this,r=this.wiki.getTiddler(t.param),e=this.wiki.getTiddlerDataCached(t.param,{tiddlers:{}}),d=[];d.push($tw.language.getString('Import/Imported/Hint')+'\\n'),$tw.utils.each(e.tiddlers,function(t){var e=t.title;e&&r&&'unchecked'!==r.fields['selection-'+e]&&(t=$tw.utils.hop(r.fields,['rename-'+e])?new $tw.Tiddler(t,{title:r.fields['rename-'+e]}):new $tw.Tiddler(t),t=$tw.hooks.invokeHook('th-importing-tiddler',t),i.wiki.addTiddler(t),d.push('# [['+t.fields.title+']]'))}),this.wiki.addTiddler(new $tw.Tiddler({title:t.param,text:d.join('\\n'),status:'complete'})),this.addToHistory([t.param]),$tw.rootWidget.dispatchEvent({type:'tm-auto-save-wiki'})},t.prototype.handleFoldTiddlerEvent=function(t){var e=t.paramObject||{};e.foldedState&&(t='show'===this.wiki.getTiddlerText(e.foldedState,'show')?'hide':'show',this.wiki.setText(e.foldedState,'text',null,t))},t.prototype.handleFoldOtherTiddlersEvent=function(e){var i=this,r=(e.paramObject||{}).foldedStatePrefix;$tw.utils.each(this.getStoryList(),function(t){i.wiki.setText(r+t,'text',null,e.param===t?'show':'hide')})},t.prototype.handleFoldAllTiddlersEvent=function(t){var e=this,i=(t.paramObject||{}).foldedStatePrefix||'$:/state/folded/';$tw.utils.each(this.getStoryList(),function(t){e.wiki.setText(i+t,'text',null,'hide')})},t.prototype.handleUnfoldAllTiddlersEvent=function(t){var e=this,i=(t.paramObject||{}).foldedStatePrefix;$tw.utils.each(this.getStoryList(),function(t){e.wiki.setText(i+t,'text',null,'show')})},t.prototype.handleRenameTiddlerEvent=function(t){var e={},i=t.paramObject||{},r=i.from||t.tiddlerTitle,t=i.to;e.dontRenameInTags='false'===i.renameInTags||'no'===i.renameInTags,e.dontRenameInLists='false'===i.renameInLists||'no'===i.renameInLists,this.wiki.renameTiddler(r,t,e)},exports.navigator=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/password.js":{"text":"!function(){'use strict';function e(e,t){this.initialise(e,t)}var t=require('$:/core/modules/widgets/widget.js').widget;(e.prototype=new t).render=function(e,t){this.parentDomNode=e,this.computeAttributes(),this.execute();var s=$tw.browser&&$tw.utils.getPassword(this.passwordName)||'',r=this.document.createElement('input');r.setAttribute('type','password'),r.setAttribute('value',s),$tw.utils.addEventListeners(r,[{name:'change',handlerObject:this,handlerMethod:'handleChangeEvent'}]),e.insertBefore(r,t),this.renderChildren(r,null),this.domNodes.push(r)},e.prototype.handleChangeEvent=function(e){var t=this.domNodes[0].value;return $tw.utils.savePassword(this.passwordName,t)},e.prototype.execute=function(){this.passwordName=this.getAttribute('name',''),this.makeChildWidgets()},e.prototype.refresh=function(e){return this.computeAttributes().name?(this.refreshSelf(),!0):this.refreshChildren(e)},exports.password=e}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/qualify.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute(),this.renderChildren(t,e)},t.prototype.execute=function(){this.qualifyName=this.getAttribute('name'),this.qualifyTitle=this.getAttribute('title'),this.qualifyName&&this.setVariable(this.qualifyName,this.qualifyTitle+'-'+this.getStateQualifier()),this.makeChildWidgets()},t.prototype.refresh=function(t){var e=this.computeAttributes();return e.name||e.title?(this.refreshSelf(),!0):this.refreshChildren(t)},exports.qualify=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/radio.js":{"text":"!function(){'use strict';function t(t,i){this.initialise(t,i)}var i=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new i).render=function(t,i){this.parentDomNode=t,this.computeAttributes(),this.execute();var e=this.getValue()===this.radioValue;this.labelDomNode=this.document.createElement('label'),this.labelDomNode.setAttribute('class','tc-radio '+this.radioClass+(e?' tc-radio-selected':'')),this.inputDomNode=this.document.createElement('input'),this.inputDomNode.setAttribute('type','radio'),e&&(this.inputDomNode.checked=!0),'yes'===this.isDisabled&&this.inputDomNode.setAttribute('disabled',!0),this.labelDomNode.appendChild(this.inputDomNode),this.spanDomNode=this.document.createElement('span'),this.labelDomNode.appendChild(this.spanDomNode),$tw.utils.addEventListeners(this.inputDomNode,[{name:'change',handlerObject:this,handlerMethod:'handleChangeEvent'}]),t.insertBefore(this.labelDomNode,i),this.renderChildren(this.spanDomNode,null),this.domNodes.push(this.labelDomNode)},t.prototype.getValue=function(){var t=this.wiki.getTiddler(this.radioTitle),t=t?this.radioIndex?this.wiki.extractTiddlerDataItem(this.radioTitle,this.radioIndex):t.getFieldString(this.radioField):this.radioDefault;return t},t.prototype.setValue=function(){var t,i;this.radioIndex?this.wiki.setText(this.radioTitle,'',this.radioIndex,this.radioValue):(t=this.wiki.getTiddler(this.radioTitle),(i={})[this.radioField]=this.radioValue,this.wiki.addTiddler(new $tw.Tiddler(this.wiki.getCreationFields(),{title:this.radioTitle},t,i,this.wiki.getModificationFields())))},t.prototype.handleChangeEvent=function(t){this.inputDomNode.checked&&this.setValue(),this.radioActions&&this.invokeActionString(this.radioActions,this,t,{actionValue:this.radioValue})},t.prototype.execute=function(){this.radioTitle=this.getAttribute('tiddler',this.getVariable('currentTiddler')),this.radioField=this.getAttribute('field','text'),this.radioIndex=this.getAttribute('index'),this.radioValue=this.getAttribute('value'),this.radioClass=this.getAttribute('class',''),this.radioDefault=this.getAttribute('default'),this.isDisabled=this.getAttribute('disabled','no'),this.radioActions=this.getAttribute('actions',''),this.makeChildWidgets()},t.prototype.refresh=function(t){var i=this.computeAttributes();return 0<$tw.utils.count(i)?(this.refreshSelf(),!0):(t[this.radioTitle]&&(this.inputDomNode.checked=this.getValue()===this.radioValue),this.refreshChildren(t))},exports.radio=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/range.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute(),this.inputDomNode=this.document.createElement('input'),this.inputDomNode.setAttribute('type','range'),this.inputDomNode.setAttribute('class',this.elementClass),this.minValue&&this.inputDomNode.setAttribute('min',this.minValue),this.maxValue&&this.inputDomNode.setAttribute('max',this.maxValue),this.increment&&this.inputDomNode.setAttribute('step',this.increment),'yes'===this.isDisabled&&this.inputDomNode.setAttribute('disabled',!0),this.inputDomNode.value=this.getValue(),$tw.utils.addEventListeners(this.inputDomNode,[{name:'mousedown',handlerObject:this,handlerMethod:'handleMouseDownEvent'},{name:'mouseup',handlerObject:this,handlerMethod:'handleMouseUpEvent'},{name:'change',handlerObject:this,handlerMethod:'handleChangeEvent'},{name:'input',handlerObject:this,handlerMethod:'handleInputEvent'}]),t.insertBefore(this.inputDomNode,e),this.domNodes.push(this.inputDomNode)},t.prototype.getValue=function(){var t=this.wiki.getTiddler(this.tiddlerTitle),e=this.tiddlerField,i=this.defaultValue;return t&&(i=this.tiddlerIndex?this.wiki.extractTiddlerDataItem(t,this.tiddlerIndex,this.defaultValue):$tw.utils.hop(t.fields,e)?t.fields[e]||'':this.defaultValue),i},t.prototype.getActionVariables=function(t){t=t||{};var e=this.startValue!==this.inputDomNode.value?'yes':'no';return $tw.utils.extend({actionValue:this.inputDomNode.value,actionValueHasChanged:e},t)},t.prototype.handleMouseDownEvent=function(t){var e;this.mouseDown=!0,this.startValue=this.inputDomNode.value,this.handleEvent(t),this.actionsMouseDown&&(e=this.getActionVariables(),this.invokeActionString(this.actionsMouseDown,this,t,e))},t.prototype.handleMouseUpEvent=function(t){var e;this.mouseDown=!1,this.handleEvent(t),this.actionsMouseUp&&(e=this.getActionVariables(),this.invokeActionString(this.actionsMouseUp,this,t,e)),$tw.browser.isIE&&this.startValue!==this.inputDomNode.value&&(this.handleChangeEvent(t),this.startValue=this.inputDomNode.value)},t.prototype.handleChangeEvent=function(t){this.mouseDown&&this.handleInputEvent(t)},t.prototype.handleInputEvent=function(t){var e;this.handleEvent(t),this.actionsInput&&(e=this.getActionVariables({actionValueHasChanged:'yes'}),this.invokeActionString(this.actionsInput,this,t,e))},t.prototype.handleEvent=function(t){this.getValue()!==this.inputDomNode.value&&(this.tiddlerIndex?this.wiki.setText(this.tiddlerTitle,'',this.tiddlerIndex,this.inputDomNode.value):this.wiki.setText(this.tiddlerTitle,this.tiddlerField,null,this.inputDomNode.value))},t.prototype.execute=function(){this.mouseUp=!0,this.tiddlerTitle=this.getAttribute('tiddler',this.getVariable('currentTiddler')),this.tiddlerField=this.getAttribute('field','text'),this.tiddlerIndex=this.getAttribute('index'),this.minValue=this.getAttribute('min'),this.maxValue=this.getAttribute('max'),this.increment=this.getAttribute('increment'),this.defaultValue=this.getAttribute('default',''),this.elementClass=this.getAttribute('class',''),this.isDisabled=this.getAttribute('disabled','no'),this.actionsMouseDown=this.getAttribute('actionsStart',''),this.actionsMouseUp=this.getAttribute('actionsStop',''),this.actionsInput=this.getAttribute('actions',''),this.makeChildWidgets()},t.prototype.refresh=function(t){var e=this.computeAttributes();if(0<$tw.utils.count(e))return this.refreshSelf(),!0;var i=!1;return t[this.tiddlerTitle]&&(e=this.getValue(),this.inputDomNode.value!==e&&(this.inputDomNode.value=e),i=!0),this.refreshChildren(t)||i},exports.range=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/raw.js":{"text":"!function(){'use strict';function e(e,t){this.initialise(e,t)}var t=require('$:/core/modules/widgets/widget.js').widget;(e.prototype=new t).render=function(e,t){this.parentDomNode=e,this.execute();var r=this.document.createElement('div');r.innerHTML=this.parseTreeNode.html,e.insertBefore(r,t),this.domNodes.push(r)},e.prototype.execute=function(){},e.prototype.refresh=function(e){return!1},exports.raw=e}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/reveal.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute();var i=this.parseTreeNode.isBlock?'div':'span';this.revealTag&&-1===$tw.config.htmlUnsafeElements.indexOf(this.revealTag)&&(i=this.revealTag);i=this.document.createElement(i);this.domNode=i,this.assignDomNodeClasses(),this.style&&i.setAttribute('style',this.style),t.insertBefore(i,e),this.renderChildren(i,null),!i.isTiddlyWikiFakeDom&&'popup'===this.type&&this.isOpen&&(this.positionPopup(i),$tw.utils.addClass(i,'tc-popup')),this.isOpen||i.setAttribute('hidden','true'),this.domNodes.push(i)},t.prototype.positionPopup=function(t){var e,i;switch(t.style.position='absolute',t.style.zIndex='1000',this.position){case'left':e=this.popup.left-t.offsetWidth,i=this.popup.top;break;case'above':e=this.popup.left,i=this.popup.top-t.offsetHeight;break;case'aboveright':e=this.popup.left+this.popup.width,i=this.popup.top+this.popup.height-t.offsetHeight;break;case'belowright':e=this.popup.left+this.popup.width,i=this.popup.top+this.popup.height;break;case'right':e=this.popup.left+this.popup.width,i=this.popup.top;break;case'belowleft':e=this.popup.left+this.popup.width-t.offsetWidth,i=this.popup.top+this.popup.height;break;case'aboveleft':e=this.popup.left-t.offsetWidth,i=this.popup.top-t.offsetHeight;break;default:e=this.popup.left,i=this.popup.top+this.popup.height}this.positionAllowNegative||(e=Math.max(0,e),i=Math.max(0,i)),t.style.left=e+'px',t.style.top=i+'px'},t.prototype.execute=function(){this.state=this.getAttribute('state'),this.revealTag=this.getAttribute('tag'),this.type=this.getAttribute('type'),this.text=this.getAttribute('text'),this.position=this.getAttribute('position'),this.positionAllowNegative='yes'===this.getAttribute('positionAllowNegative'),this.style=this.getAttribute('style',''),this.default=this.getAttribute('default',''),this.animate=this.getAttribute('animate','no'),this.retain=this.getAttribute('retain','no'),this.openAnimation='no'===this.animate?void 0:'open',this.closeAnimation='no'===this.animate?void 0:'close',this.updatePopupPosition='yes'===this.getAttribute('updatePopupPosition','no'),this.stateTiddlerTitle=this.state,this.stateTitle=this.getAttribute('stateTitle'),this.stateField=this.getAttribute('stateField'),this.stateIndex=this.getAttribute('stateIndex'),this.readState();var t=this.isOpen?this.parseTreeNode.children:[];this.hasChildNodes=this.isOpen,this.makeChildWidgets(t)},t.prototype.readState=function(){var t,e,i=this.default;switch(null===(e=this.stateTitle?(t=this.wiki.getTiddler(this.stateTitle),this.stateField?t&&t.getFieldString(this.stateField)||i:this.stateIndex?t&&this.wiki.extractTiddlerDataItem(this.stateTitle,this.stateIndex)||i:t&&this.wiki.getTiddlerText(this.stateTitle)||i):this.stateTiddlerTitle?this.wiki.getTextReference(this.state,this.default,this.getVariable('currentTiddler')):this.default)&&(e=this.default),this.type){case'popup':this.readPopupState(e);break;case'match':this.isOpen=this.text===e;break;case'nomatch':this.isOpen=this.text!==e;break;case'lt':this.isOpen=!!(this.compareStateText(e)<0);break;case'gt':this.isOpen=!!(0<this.compareStateText(e));break;case'lteq':this.isOpen=!(0<this.compareStateText(e));break;case'gteq':this.isOpen=!(this.compareStateText(e)<0)}},t.prototype.compareStateText=function(t){return t.localeCompare(this.text,void 0,{numeric:!0,sensitivity:'case'})},t.prototype.readPopupState=function(t){t=/^\\((-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+),(-?[0-9\\.E]+)\\)$/.exec(t);t?(this.isOpen=!0,this.popup={left:parseFloat(t[1]),top:parseFloat(t[2]),width:parseFloat(t[3]),height:parseFloat(t[4])}):this.isOpen=!1},t.prototype.assignDomNodeClasses=function(){var t=this.getAttribute('class','').split(' ');t.push('tc-reveal'),this.domNode.className=t.join(' ')},t.prototype.refresh=function(t){var e=this.computeAttributes();if(e.state||e.type||e.text||e.position||e.positionAllowNegative||e.default||e.animate||e.stateTitle||e.stateField||e.stateIndex)return this.refreshSelf(),!0;var i=this.isOpen;if(this.readState(),this.isOpen!==i){if('yes'!==this.retain)return this.refreshSelf(),!0;this.updateState()}else'popup'===this.type&&this.updatePopupPosition&&(t[this.state]||t[this.stateTitle])&&this.positionPopup(this.domNode);return e.style&&(this.domNode.style=this.getAttribute('style','')),e.class&&this.assignDomNodeClasses(),this.refreshChildren(t)},t.prototype.updateState=function(){var t=this;this.readState();var e=this.domNodes[0];this.isOpen&&!this.hasChildNodes&&(this.hasChildNodes=!0,this.makeChildWidgets(this.parseTreeNode.children),this.renderChildren(e,null)),!e.isTiddlyWikiFakeDom&&'popup'===this.type&&this.isOpen&&(this.positionPopup(e),$tw.utils.addClass(e,'tc-popup')),this.isOpen?(e.removeAttribute('hidden'),$tw.anim.perform(this.openAnimation,e)):$tw.anim.perform(this.closeAnimation,e,{callback:function(){t.readState(),t.isOpen||e.setAttribute('hidden','true')}})},exports.reveal=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/scrollable.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).cancelScroll=function(){this.idRequestFrame&&(this.cancelAnimationFrame.call(window,this.idRequestFrame),this.idRequestFrame=null)},t.prototype.handleScrollEvent=function(t){return this.outerDomNode.scrollWidth<=this.outerDomNode.offsetWidth&&this.outerDomNode.scrollHeight<=this.outerDomNode.offsetHeight&&'yes'===this.fallthrough||(t.paramObject&&t.paramObject.selector?this.scrollSelectorIntoView(null,t.paramObject.selector):this.scrollIntoView(t.target),!1)},t.prototype.scrollIntoView=function(t){var e=$tw.utils.getAnimationDuration(),o=t?t.ownerDocument.defaultView:window;this.cancelScroll(),this.startTime=Date.now();var i,r,n={x:this.outerDomNode.scrollLeft,y:this.outerDomNode.scrollTop},s=this.outerDomNode.getBoundingClientRect(),t=t.getBoundingClientRect(),s={left:t.left+n.x-s.left,top:t.top+n.y-s.top,width:t.width,height:t.height},t=function(t,e,o,i){return o<=t&&t+e<=o+i?o:t<=o?t:e<i&&o<t+e-i?t+e-i:o<t?t:o},l=t(s.left,s.width,n.x,this.outerDomNode.offsetWidth),a=t(s.top,s.height,n.y,this.outerDomNode.offsetHeight);l===n.x&&a===n.y||(i=this,(r=function(){var t=e<=0?1:(Date.now()-i.startTime)/e;1<=t&&(i.cancelScroll(),t=1),t=$tw.utils.slowInSlowOut(t),i.outerDomNode.scrollLeft=n.x+(l-n.x)*t,i.outerDomNode.scrollTop=n.y+(a-n.y)*t,t<1&&(i.idRequestFrame=i.requestAnimationFrame.call(o,r))})())},t.prototype.scrollSelectorIntoView=function(t,e,o){e=(t=t||document.body).querySelector(e);e&&this.scrollIntoView(e,o)},t.prototype.render=function(t,e){this.scaleFactor=1,this.addEventListeners([{type:'tm-scroll',handler:'handleScrollEvent'}]),$tw.browser&&(this.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},this.cancelAnimationFrame=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelAnimationFrame||window.mozCancelRequestAnimationFrame||function(t){window.clearTimeout(t)}),this.parentDomNode=t,this.computeAttributes(),this.execute(),this.outerDomNode=this.document.createElement('div'),$tw.utils.setStyle(this.outerDomNode,[{overflowY:'auto'},{overflowX:'auto'},{webkitOverflowScrolling:'touch'}]),this.innerDomNode=this.document.createElement('div'),this.outerDomNode.appendChild(this.innerDomNode),this.outerDomNode.className=this.class||'',t.insertBefore(this.outerDomNode,e),this.renderChildren(this.innerDomNode,null),this.domNodes.push(this.outerDomNode)},t.prototype.execute=function(){this.fallthrough=this.getAttribute('fallthrough','yes'),this.class=this.getAttribute('class'),this.makeChildWidgets()},t.prototype.refresh=function(t){return this.computeAttributes().class?(this.refreshSelf(),!0):this.refreshChildren(t)},exports.scrollable=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/select.js":{"text":"!function(){'use strict';function e(e,t){this.initialise(e,t)}var t=require('$:/core/modules/widgets/widget.js').widget;(e.prototype=new t).render=function(e,t){this.parentDomNode=e,this.computeAttributes(),this.execute(),this.renderChildren(e,t),this.setSelectValue(),$tw.utils.addEventListeners(this.getSelectDomNode(),[{name:'change',handlerObject:this,handlerMethod:'handleChangeEvent'}])},e.prototype.handleChangeEvent=function(e){var t;t=0==this.selectMultiple?this.getSelectDomNode().value:(t=this.getSelectValues(),$tw.utils.stringifyList(t)),this.wiki.setText(this.selectTitle,this.selectField,this.selectIndex,t),this.selectActions&&this.invokeActionString(this.selectActions,this,e)},e.prototype.setSelectValue=function(){var e=this.selectDefault;if(this.selectIndex?e=this.wiki.extractTiddlerDataItem(this.selectTitle,this.selectIndex,e):(l=this.wiki.getTiddler(this.selectTitle))?'text'===this.selectField?e=this.wiki.getTiddlerText(this.selectTitle):$tw.utils.hop(l.fields,this.selectField)&&(e=l.getFieldString(this.selectField)):'title'===this.selectField&&(e=this.selectTitle),this.selectMultiple){e=void 0===e?'':e;for(var t=this.getSelectDomNode(),i=Array.isArray(e)?e:$tw.utils.parseStringArray(e),s=0;s<t.children.length;s++)t.children[s].selected=-1!==i.indexOf(t.children[s].value)}else{var l=this.getSelectDomNode();l.value!==e&&(l.value=e)}},e.prototype.getSelectDomNode=function(){return this.children[0].domNodes[0]},e.prototype.getSelectValues=function(){for(var e,t=this.getSelectDomNode(),i=[],s=t&&t.options,l=0;l<s.length;l++)(e=s[l]).selected&&i.push(e.value||e.text);return i},e.prototype.execute=function(){this.selectActions=this.getAttribute('actions'),this.selectTitle=this.getAttribute('tiddler',this.getVariable('currentTiddler')),this.selectField=this.getAttribute('field','text'),this.selectIndex=this.getAttribute('index'),this.selectClass=this.getAttribute('class'),this.selectDefault=this.getAttribute('default'),this.selectMultiple=this.getAttribute('multiple',!1),this.selectSize=this.getAttribute('size'),this.selectTooltip=this.getAttribute('tooltip');var e={type:'element',tag:'select',children:this.parseTreeNode.children};this.selectClass&&$tw.utils.addAttributeToParseTreeNode(e,'class',this.selectClass),this.selectMultiple&&$tw.utils.addAttributeToParseTreeNode(e,'multiple','multiple'),this.selectSize&&$tw.utils.addAttributeToParseTreeNode(e,'size',this.selectSize),this.selectTooltip&&$tw.utils.addAttributeToParseTreeNode(e,'title',this.selectTooltip),this.makeChildWidgets([e])},e.prototype.refresh=function(e){var t=this.computeAttributes();if(t.selectTitle||t.selectField||t.selectIndex||t.selectTooltip)return this.refreshSelf(),!0;t=this.refreshChildren(e);return(e[this.selectTitle]||t)&&this.setSelectValue(),t},exports.select=e}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/set.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute(),this.renderChildren(t,e)},t.prototype.execute=function(){this.setName=this.getAttribute('name','currentTiddler'),this.setFilter=this.getAttribute('filter'),this.setSelect=this.getAttribute('select'),this.setTiddler=this.getAttribute('tiddler'),this.setSubTiddler=this.getAttribute('subtiddler'),this.setField=this.getAttribute('field'),this.setIndex=this.getAttribute('index'),this.setValue=this.getAttribute('value'),this.setEmptyValue=this.getAttribute('emptyValue'),this.setVariable(this.setName,this.getValue(),this.parseTreeNode.params,!!this.parseTreeNode.isMacroDefinition),this.makeChildWidgets()},t.prototype.getValue=function(){var t,e,i=this.setValue;return this.setTiddler?i=(t=this.setSubTiddler?this.wiki.getSubTiddler(this.setTiddler,this.setSubTiddler):this.wiki.getTiddler(this.setTiddler))?this.setField?t.getFieldString(this.setField)||this.setEmptyValue:this.setIndex?this.wiki.extractTiddlerDataItem(this.setTiddler,this.setIndex,this.setEmptyValue):t.fields.text||this.setEmptyValue:this.setEmptyValue:this.setFilter?(t=this.wiki.filterTiddlers(this.setFilter,this),null==this.setValue&&(this.setSelect&&(e=parseInt(this.setSelect,10)),i=void 0!==e?t[e]||'':$tw.utils.stringifyList(t)),0===t.length&&void 0!==this.setEmptyValue&&(i=this.setEmptyValue)):!i&&this.setEmptyValue&&(i=this.setEmptyValue),i||''},t.prototype.refresh=function(t){var e=this.computeAttributes();return e.name||e.filter||e.select||e.tiddler||this.setTiddler&&t[this.setTiddler]||e.field||e.index||e.value||e.emptyValue||this.setFilter&&this.getValue()!=this.variables[this.setName].value?(this.refreshSelf(),!0):this.refreshChildren(t)},exports.setvariable=t,exports.set=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/text.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute();var r=(r=this.getAttribute('text',this.parseTreeNode.text||'')).replace(/\\r/gm,''),r=this.document.createTextNode(r);t.insertBefore(r,e),this.domNodes.push(r)},t.prototype.execute=function(){},t.prototype.refresh=function(t){return!!this.computeAttributes().text&&(this.refreshSelf(),!0)},exports.text=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/tiddler.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute(),this.renderChildren(t,e)},t.prototype.execute=function(){this.tiddlerState=this.computeTiddlerState(),this.setVariable('currentTiddler',this.tiddlerState.currentTiddler),this.setVariable('missingTiddlerClass',this.tiddlerState.missingTiddlerClass),this.setVariable('shadowTiddlerClass',this.tiddlerState.shadowTiddlerClass),this.setVariable('systemTiddlerClass',this.tiddlerState.systemTiddlerClass),this.setVariable('tiddlerTagClasses',this.tiddlerState.tiddlerTagClasses),this.makeChildWidgets()},t.prototype.computeTiddlerState=function(){this.tiddlerTitle=this.getAttribute('tiddler',this.getVariable('currentTiddler'));var t={currentTiddler:this.tiddlerTitle||'',missingTiddlerClass:this.wiki.tiddlerExists(this.tiddlerTitle)||this.wiki.isShadowTiddler(this.tiddlerTitle)?'tc-tiddler-exists':'tc-tiddler-missing',shadowTiddlerClass:this.wiki.isShadowTiddler(this.tiddlerTitle)?'tc-tiddler-shadow':'',systemTiddlerClass:this.wiki.isSystemTiddler(this.tiddlerTitle)?'tc-tiddler-system':'',tiddlerTagClasses:this.getTagClasses()};return t.hash=t.currentTiddler+t.missingTiddlerClass+t.shadowTiddlerClass+t.systemTiddlerClass+t.tiddlerTagClasses,t},t.prototype.getTagClasses=function(){var t=this.wiki.getTiddler(this.tiddlerTitle);if(t){var e=[];return $tw.utils.each(t.fields.tags,function(t){e.push('tc-tagged-'+encodeURIComponent(t))}),e.join(' ')}return''},t.prototype.refresh=function(t){var e=this.computeAttributes(),i=this.computeTiddlerState();return e.tiddler||i.hash!==this.tiddlerState.hash?(this.refreshSelf(),!0):this.refreshChildren(t)},exports.tiddler=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/transclude.js":{"text":"!function(){'use strict';function e(e,t){this.initialise(e,t)}var t=require('$:/core/modules/widgets/widget.js').widget;(e.prototype=new t).render=function(e,t){this.parentDomNode=e,this.computeAttributes(),this.execute(),this.renderChildren(e,t)},e.prototype.execute=function(){this.transcludeTitle=this.getAttribute('tiddler',this.getVariable('currentTiddler')),this.transcludeSubTiddler=this.getAttribute('subtiddler'),this.transcludeField=this.getAttribute('field'),this.transcludeIndex=this.getAttribute('index'),this.transcludeMode=this.getAttribute('mode'),this.recursionMarker=this.getAttribute('recursionMarker','yes');var e=!this.parseTreeNode.isBlock;'inline'===this.transcludeMode?e=!0:'block'===this.transcludeMode&&(e=!1);var t=this.wiki.parseTextReference(this.transcludeTitle,this.transcludeField,this.transcludeIndex,{parseAsInline:e,subTiddler:this.transcludeSubTiddler}),i=t?t.tree:this.parseTreeNode.children,e=this.makeRecursionMarker();'yes'===this.recursionMarker&&this.setVariable('transclusion',e),t&&this.parentWidget&&this.parentWidget.hasVariable('transclusion',e)&&(i=[{type:'element',tag:'span',attributes:{class:{type:'string',value:'tc-error'}},children:[{type:'text',text:$tw.language.getString('Error/RecursiveTransclusion')}]}]),this.makeChildWidgets(i)},e.prototype.makeRecursionMarker=function(){var e=[];return e.push('{'),e.push(this.getVariable('currentTiddler',{defaultValue:''})),e.push('|'),e.push(this.transcludeTitle||''),e.push('|'),e.push(this.transcludeField||''),e.push('|'),e.push(this.transcludeIndex||''),e.push('|'),e.push(this.transcludeSubTiddler||''),e.push('}'),e.join('')},e.prototype.refresh=function(e){var t=this.computeAttributes();return t.tiddler||t.field||t.index||e[this.transcludeTitle]?(this.refreshSelf(),!0):this.refreshChildren(e)},exports.transclude=e}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/vars.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var i=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=Object.create(i.prototype)).render=function(t,e){i.call(this),this.parentDomNode=t,this.computeAttributes(),this.execute(),this.renderChildren(t,e)},t.prototype.execute=function(){var i=this;$tw.utils.each(this.attributes,function(t,e){'$'!==e.charAt(0)&&i.setVariable(e,t)}),this.makeChildWidgets()},t.prototype.refresh=function(t){var e=this.computeAttributes();return Object.keys(e).length?(this.refreshSelf(),!0):this.refreshChildren(t)},exports.vars=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/view.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){var i;this.parentDomNode=t,this.computeAttributes(),this.execute(),this.text?(i=this.document.createTextNode(this.text),t.insertBefore(i,e),this.domNodes.push(i)):(this.makeChildWidgets(),this.renderChildren(t,e))},t.prototype.execute=function(){switch(this.viewTitle=this.getAttribute('tiddler',this.getVariable('currentTiddler')),this.viewSubtiddler=this.getAttribute('subtiddler'),this.viewField=this.getAttribute('field','text'),this.viewIndex=this.getAttribute('index'),this.viewFormat=this.getAttribute('format','text'),this.viewTemplate=this.getAttribute('template',''),this.viewMode=this.getAttribute('mode','block'),this.viewFormat){case'htmlwikified':this.text=this.getValueAsHtmlWikified(this.viewMode);break;case'plainwikified':this.text=this.getValueAsPlainWikified(this.viewMode);break;case'htmlencodedplainwikified':this.text=this.getValueAsHtmlEncodedPlainWikified(this.viewMode);break;case'htmlencoded':this.text=this.getValueAsHtmlEncoded();break;case'htmltextencoded':this.text=this.getValueAsHtmlTextEncoded();break;case'urlencoded':this.text=this.getValueAsUrlEncoded();break;case'doubleurlencoded':this.text=this.getValueAsDoubleUrlEncoded();break;case'date':this.text=this.getValueAsDate(this.viewTemplate);break;case'relativedate':this.text=this.getValueAsRelativeDate();break;case'stripcomments':this.text=this.getValueAsStrippedComments();break;case'jsencoded':this.text=this.getValueAsJsEncoded();break;default:this.text=this.getValueAsText()}},t.prototype.getValue=function(t){var e,i=(t=t||{}).asString?'':void 0;return this.viewIndex?i=this.wiki.extractTiddlerDataItem(this.viewTitle,this.viewIndex):(e=this.viewSubtiddler?this.wiki.getSubTiddler(this.viewTitle,this.viewSubtiddler):this.wiki.getTiddler(this.viewTitle))?'text'!==this.viewField||this.viewSubtiddler?$tw.utils.hop(e.fields,this.viewField)&&(i=t.asString?e.getFieldString(this.viewField):e.fields[this.viewField]):i=this.wiki.getTiddlerText(this.viewTitle):'title'===this.viewField&&(i=this.viewTitle),i},t.prototype.getValueAsText=function(){return this.getValue({asString:!0})},t.prototype.getValueAsHtmlWikified=function(t){return this.wiki.renderText('text/html','text/vnd.tiddlywiki',this.getValueAsText(),{parseAsInline:'block'!==t,parentWidget:this})},t.prototype.getValueAsPlainWikified=function(t){return this.wiki.renderText('text/plain','text/vnd.tiddlywiki',this.getValueAsText(),{parseAsInline:'block'!==t,parentWidget:this})},t.prototype.getValueAsHtmlEncodedPlainWikified=function(t){return $tw.utils.htmlEncode(this.wiki.renderText('text/plain','text/vnd.tiddlywiki',this.getValueAsText(),{parseAsInline:'block'!==t,parentWidget:this}))},t.prototype.getValueAsHtmlEncoded=function(){return $tw.utils.htmlEncode(this.getValueAsText())},t.prototype.getValueAsHtmlTextEncoded=function(){return $tw.utils.htmlTextEncode(this.getValueAsText())},t.prototype.getValueAsUrlEncoded=function(){return encodeURIComponent(this.getValueAsText())},t.prototype.getValueAsDoubleUrlEncoded=function(){return encodeURIComponent(encodeURIComponent(this.getValueAsText()))},t.prototype.getValueAsDate=function(t){t=t||'YYYY MM DD 0hh:0mm';var e=$tw.utils.parseDate(this.getValue());return e&&$tw.utils.isDate(e)&&'Invalid Date'!==e.toString()?$tw.utils.formatDateString(e,t):''},t.prototype.getValueAsRelativeDate=function(t){var e=$tw.utils.parseDate(this.getValue());return e&&$tw.utils.isDate(e)&&'Invalid Date'!==e.toString()?$tw.utils.getRelativeDate(new Date-new Date(e)).description:''},t.prototype.getValueAsStrippedComments=function(){for(var t=this.getValueAsText().split('\\n'),e=[],i=0;i<t.length;i++){var s=t[i];/^\\s*\\/\\/#/.test(s)||e.push(s)}return e.join('\\n')},t.prototype.getValueAsJsEncoded=function(){return $tw.utils.stringify(this.getValueAsText())},t.prototype.refresh=function(t){var e=this.computeAttributes();return!!(e.tiddler||e.field||e.index||e.template||e.format||t[this.viewTitle])&&(this.refreshSelf(),!0)},exports.view=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/widget.js":{"text":"!function(){'use strict';function r(t,e){this.initialise(t,e)}r.prototype.initialise=function(t,e){void 0!==t&&(e=e||{},this.parseTreeNode=t,this.wiki=e.wiki,this.parentWidget=e.parentWidget,this.variablesConstructor=function(){},this.variablesConstructor.prototype=this.parentWidget?this.parentWidget.variables:{},this.variables=new this.variablesConstructor,this.document=e.document,this.attributes={},this.children=[],this.domNodes=[],this.eventListeners={},this.widgetClasses||(r.prototype.widgetClasses=$tw.modules.applyMethods('widget'),$tw.modules.forEachModuleOfType('widget-subclass',function(t,e){if(e.baseClass){var i=r.prototype.widgetClasses[e.baseClass];if(!i)throw'Module \\''+t+'\\' is attemping to extend a non-existent base class \\''+e.baseClass+'\\'';t=e.constructor;t.prototype=new i,$tw.utils.extend(t.prototype,e.prototype),r.prototype.widgetClasses[e.name||e.baseClass]=t}})))},r.prototype.render=function(t,e){this.parentDomNode=t,this.execute(),this.renderChildren(t,e)},r.prototype.execute=function(){this.makeChildWidgets()},r.prototype.setVariable=function(t,e,i,r){this.variables[t]={value:e,params:i,isMacroDefinition:!!r}},r.prototype.getVariableInfo=function(t,e){var i=(e=e||{}).params||[],r=this.parentWidget;if(r&&t in r.variables){var n=r.variables[t],s=n.value,o=s,r=this.resolveVariableParameters(n.params,i);return $tw.utils.each(r,function(t){o=$tw.utils.replaceString(o,new RegExp('\\\\$'+$tw.utils.escapeRegExp(t.name)+'\\\\$','mg'),t.value)}),n.isMacroDefinition&&(o=this.substituteVariableReferences(o)),{text:o,params:r,srcVariable:n,isCacheable:s===o}}return{text:this.evaluateMacroModule(t,i,e.defaultValue)}},r.prototype.getVariable=function(t,e){return this.getVariableInfo(t,e).text},r.prototype.resolveVariableParameters=function(t,e){t=t||[],e=e||[];for(var i,r,n=0,s=[],o=0;o<t.length;o++){i=t[o],r=void 0;for(var a=0;a<e.length;a++)e[a].name===i.name&&(r=e[a].value);for(;n<e.length&&e[n].name;)n++;void 0===r&&n<e.length&&(r=e[n++].value),r=r||i.default||'',s.push({name:i.name,value:r})}return s},r.prototype.substituteVariableReferences=function(t){var n=this;return(t||'').replace(/\\$\\(([^\\)\\$]+)\\)\\$/g,function(t,e,i,r){return n.getVariable(e,{defaultValue:''})})},r.prototype.evaluateMacroModule=function(t,e,i){if($tw.utils.hop($tw.macros,t)){var r=$tw.macros[t],n=[];if(0<r.params.length)for(var s,o,a=0,l=0;l<r.params.length;l++){s=r.params[l],o=void 0;for(var u=0;u<e.length;u++)e[u].name===s.name&&(o=e[u].value);for(;a<e.length&&e[a].name;)a++;void 0===o&&a<e.length&&(o=e[a++].value),o=o||s.default||'',n.push(o)}else for(var h=0;h<e.length;++h)n.push(e[h].value);return(r.run.apply(this,n)||'').toString()}return i},r.prototype.hasVariable=function(t,e){for(var i=this;i;){if($tw.utils.hop(i.variables,t)&&i.variables[t].value===e)return!0;i=i.parentWidget}return!1},r.prototype.getStateQualifier=function(t){if(this.qualifiers=this.qualifiers||Object.create(null),t=t||'transclusion',this.qualifiers[t])return this.qualifiers[t];for(var e=[],i=this;i&&i.parentWidget;)$tw.utils.hop(i.parentWidget.variables,t)&&e.push(i.getVariable(t)),i=i.parentWidget;var r=$tw.utils.hashString(e.join(''));return this.qualifiers[t]=r},r.prototype.computeAttributes=function(){var i,r={},n=this;return $tw.utils.each(this.parseTreeNode.attributes,function(t,e){i='filtered'===t.type?n.wiki.filterTiddlers(t.filter,n)[0]||'':'indirect'===t.type?n.wiki.getTextReference(t.textReference,'',n.getVariable('currentTiddler')):'macro'===t.type?n.getVariable(t.value.name,{params:t.value.params}):t.value,n.attributes[e]!==i&&(n.attributes[e]=i,r[e]=!0)}),r},r.prototype.hasAttribute=function(t){return $tw.utils.hop(this.attributes,t)},r.prototype.getAttribute=function(t,e){return $tw.utils.hop(this.attributes,t)?this.attributes[t]:e},r.prototype.assignAttributes=function(r,n){n=n||{};$tw.utils.each(this.attributes,function(t,e){if(n.excludeEventAttributes&&'on'===e.substr(0,2)&&(t=void 0),void 0!==t){var i=e.split(':');try{2==i.length&&'xlink'==i[0]?r.setAttributeNS('http://www.w3.org/1999/xlink',i[1],t):r.setAttributeNS(null,e,t)}catch(t){}}})},r.prototype.makeChildWidgets=function(i,t){t=t||{},this.children=[];var e=this;$tw.utils.each(t.variables,function(t,e){i=[{type:'set',attributes:{name:{type:'string',value:e},value:{type:'string',value:t}},children:i}]}),$tw.utils.each(i||this.parseTreeNode&&this.parseTreeNode.children,function(t){e.children.push(e.makeChildWidget(t))})},r.prototype.makeChildWidget=function(i,t){t=t||{};var e=this.widgetClasses[i.type];return e||(e=this.widgetClasses.text,i={type:'text',text:'Undefined widget \\''+i.type+'\\''}),$tw.utils.each(t.variables,function(t,e){i={type:'set',attributes:{name:{type:'string',value:e},value:{type:'string',value:t}},children:[i]}}),new e(i,{wiki:this.wiki,parentWidget:this,document:this.document})},r.prototype.nextSibling=function(){if(this.parentWidget){var t=this.parentWidget.children.indexOf(this);if(-1!==t&&t<this.parentWidget.children.length-1)return this.parentWidget.children[t+1]}return null},r.prototype.previousSibling=function(){if(this.parentWidget){var t=this.parentWidget.children.indexOf(this);if(-1!==t&&0<t)return this.parentWidget.children[t-1]}return null},r.prototype.renderChildren=function(t,e){for(var i=this.children,r=0;r<i.length;r++)i[r].render(t,e)},r.prototype.addEventListeners=function(t){var e=this;$tw.utils.each(t,function(t){e.addEventListener(t.type,t.handler)})},r.prototype.addEventListener=function(t,e){var i=this;this.eventListeners[t]='string'==typeof e?function(t){return i[e].call(i,t)}:function(t){return e.call(i,t)}},r.prototype.dispatchEvent=function(t){t.widget=t.widget||this;var e=this.eventListeners[t.type];return!(e&&!e(t))&&(!this.parentWidget||this.parentWidget.dispatchEvent(t))},r.prototype.refresh=function(t){return this.refreshChildren(t)},r.prototype.refreshSelf=function(){var t=this.findNextSiblingDomNode();this.removeChildDomNodes(),this.render(this.parentDomNode,t)},r.prototype.refreshChildren=function(t){for(var e=this.children,i=!1,r=0;r<e.length;r++)i=e[r].refresh(t)||i;return i},r.prototype.findNextSiblingDomNode=function(t){var e=this.parentWidget,i=void 0!==t?t:e.children.indexOf(this);if(-1===i)throw'node not found in parents children';for(;++i<e.children.length;){var r=e.children[i].findFirstDomNode();if(r)return r}t=e.parentWidget;return t&&e.parentDomNode===this.parentDomNode&&-1!==(i=t.children.indexOf(e))?e.findNextSiblingDomNode(i):null},r.prototype.findFirstDomNode=function(){if(0<this.domNodes.length)return this.domNodes[0];for(var t=0;t<this.children.length;t++){var e=this.children[t].findFirstDomNode();if(e)return e}return null},r.prototype.removeChildDomNodes=function(){0<this.domNodes.length?($tw.utils.each(this.domNodes,function(t){t.parentNode.removeChild(t)}),this.domNodes=[]):$tw.utils.each(this.children,function(t){t.removeChildDomNodes()})},r.prototype.invokeActions=function(t,e){for(var i=!1,r=0;r<this.children.length;r++){var n=this.children[r];n.invokeAction&&(n.refreshSelf(),n.invokeAction(t,e)&&(i=!0)),n.allowActionPropagation()&&n.invokeActions(t,e)&&(i=!0)}return i},r.prototype.invokeActionString=function(t,e,i,r){t=t||'';t=this.wiki.parseText('text/vnd.tiddlywiki',t,{parentWidget:this,document:this.document}),t=this.wiki.makeWidget(t,{parentWidget:this,document:this.document,variables:r}),r=this.document.createElement('div');return t.render(r,null),t.invokeActions(this,i)},r.prototype.invokeActionsByTag=function(t,e,i){var r=this;$tw.utils.each(r.wiki.filterTiddlers('[all[shadows+tiddlers]tag['+t+']!has[draft.of]]'),function(t){r.invokeActionString(r.wiki.getTiddlerText(t),r,e,i)})},r.prototype.allowActionPropagation=function(){return!0},exports.widget=r}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/widgets/wikify.js":{"text":"!function(){'use strict';function t(t,e){this.initialise(t,e)}var e=require('$:/core/modules/widgets/widget.js').widget;(t.prototype=new e).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute(),this.renderChildren(t,e)},t.prototype.execute=function(){this.wikifyName=this.getAttribute('name'),this.wikifyText=this.getAttribute('text'),this.wikifyType=this.getAttribute('type'),this.wikifyMode=this.getAttribute('mode','block'),this.wikifyOutput=this.getAttribute('output','text'),this.wikifyParser=this.wiki.parseText(this.wikifyType,this.wikifyText,{parseAsInline:'inline'===this.wikifyMode}),this.wikifyWidgetNode=this.wiki.makeWidget(this.wikifyParser,{document:$tw.fakeDocument,parentWidget:this}),this.wikifyContainer=$tw.fakeDocument.createElement('div'),this.wikifyWidgetNode.render(this.wikifyContainer,null),this.wikifyResult=this.getResult(),this.setVariable(this.wikifyName,this.wikifyResult),this.makeChildWidgets()},t.prototype.getResult=function(){var t;switch(this.wikifyOutput){case'text':t=this.wikifyContainer.textContent;break;case'formattedtext':t=this.wikifyContainer.formattedTextContent;break;case'html':t=this.wikifyContainer.innerHTML;break;case'parsetree':t=JSON.stringify(this.wikifyParser.tree,0,$tw.config.preferences.jsonSpaces);break;case'widgettree':t=JSON.stringify(this.getWidgetTree(),0,$tw.config.preferences.jsonSpaces)}return t},t.prototype.getWidgetTree=function(){var r=function(i,s){var t=i.parseTreeNode.type;switch(s.type=t){case'element':s.tag=i.parseTreeNode.tag;break;case'text':s.text=i.parseTreeNode.text}0<Object.keys(i.attributes||{}).length&&(s.attributes={},$tw.utils.each(i.attributes,function(t,e){s.attributes[e]=i.getAttribute(e)})),0<Object.keys(i.children||{}).length&&(s.children=[],$tw.utils.each(i.children,function(t){var e={};s.children.push(e),r(t,e)}))},t={};return r(this.wikifyWidgetNode,t),t},t.prototype.refresh=function(t){var e=this.computeAttributes();if(e.name||e.text||e.type||e.mode||e.output)return this.refreshSelf(),!0;if(this.wikifyWidgetNode.refresh(t)){e=this.getResult();if(e!==this.wikifyResult)return this.wikifyResult=e,this.setVariable(this.wikifyName,this.wikifyResult),$tw.utils.each(this.children,function(t){t.refreshSelf()}),!0}return this.refreshChildren(t)},exports.wikify=t}();","type":"application/javascript","module-type":"widget"},"$:/core/modules/wiki-bulkops.js":{"text":"!function(){'use strict';exports.renameTiddler=function(i,t,e){var d,l;i=(i||'').trim(),t=(t||'').trim(),e=e||{},i&&t&&i!==t&&(d=this.getTiddler(i),l=new $tw.Tiddler(d,{title:t},this.getModificationFields()),l=$tw.hooks.invokeHook('th-renaming-tiddler',l,d),this.addTiddler(l),this.deleteTiddler(i),this.relinkTiddler(i,t,e))},exports.relinkTiddler=function(n,o,r){var a=this;n=(n||'').trim(),o=(o||'').trim(),r=r||{},n&&o&&n!==o&&this.each(function(e,i){var d,l,s,t=e.fields.type||'';e.fields['plugin-type']||'application/javascript'===t||(d=e.fields.tags?e.fields.tags.slice(0):void 0,l=e.fields.list?e.fields.list.slice(0):void 0,s=!1,r.dontRenameInTags||$tw.utils.each(d,function(i,t){i===n&&(console.log('Renaming tag \\''+d[t]+'\\' to \\''+o+'\\' of tiddler \\''+e.fields.title+'\\''),d[t]=o,s=!0)}),r.dontRenameInLists||$tw.utils.each(l,function(i,t){i===n&&(console.log('Renaming list item \\''+l[t]+'\\' to \\''+o+'\\' of tiddler \\''+e.fields.title+'\\''),l[t]=o,s=!0)}),s&&(t=new $tw.Tiddler(e,{tags:d,list:l},a.getModificationFields()),t=$tw.hooks.invokeHook('th-relinking-tiddler',t,e),a.addTiddler(t)))})}}();","type":"application/javascript","module-type":"wikimethod"},"$:/core/modules/wiki.js":{"text":"!function(){'use strict';var s=require('$:/core/modules/widgets/widget.js'),i='$:/status/UserName',r='$:/config/TimestampDisable';exports.addIndexersToWiki=function(){var i=this;$tw.utils.each($tw.modules.applyMethods('indexer'),function(e,t){i.addIndexer(new e(i),t)})},exports.getTextReference=function(e,t,i){var r=$tw.utils.parseTextReference(e),e=r.title||i;if(r.field){i=this.getTiddler(e);return'title'===r.field?e:i&&$tw.utils.hop(i.fields,r.field)?i.getFieldString(r.field):t}return r.index?this.extractTiddlerDataItem(e,r.index,t):this.getTiddlerText(e,t)},exports.setTextReference=function(e,t,i){e=$tw.utils.parseTextReference(e),i=e.title||i;this.setText(i,e.field,e.index,t)},exports.setText=function(e,t,i,r,s){var n,l=(s=s||{}).suppressTimestamp?{}:this.getCreationFields(),s=s.suppressTimestamp?{}:this.getModificationFields();i?(n=this.getTiddlerData(e,Object.create(null)),void 0!==r?n[i]=r:delete n[i],this.setTiddlerData(e,n,s)):(n=this.getTiddler(e),(e={title:e})[t||'text']=r,this.addTiddler(new $tw.Tiddler(l,n,e,s)))},exports.deleteTextReference=function(e,t){var i=$tw.utils.parseTextReference(e);i.title&&!i.field?this.deleteTiddler(i.title):i.field&&(e=i.title||t,(t=this.getTiddler(e))&&$tw.utils.hop(t.fields,i.field)&&((e=Object.create(null))[i.field]=void 0,this.addTiddler(new $tw.Tiddler(t,e,this.getModificationFields()))))},exports.addEventListener=function(e,t){this.eventListeners=this.eventListeners||{},this.eventListeners[e]=this.eventListeners[e]||[],this.eventListeners[e].push(t)},exports.removeEventListener=function(e,t){e=this.eventListeners[e];!e||-1!==(t=e.indexOf(t))&&e.splice(t,1)},exports.dispatchEvent=function(e){var t=Array.prototype.slice.call(arguments,1),i=this.eventListeners[e];if(i)for(var r=0;r<i.length;r++){var s=i[r];s.apply(s,t)}},exports.enqueueTiddlerEvent=function(e,t){var i;this.changedTiddlers=this.changedTiddlers||Object.create(null),this.changedTiddlers[e]=this.changedTiddlers[e]||Object.create(null),this.changedTiddlers[e][t?'deleted':'modified']=!0,this.changeCount=this.changeCount||Object.create(null),$tw.utils.hop(this.changeCount,e)?this.changeCount[e]++:this.changeCount[e]=1,this.eventListeners=this.eventListeners||{},this.eventsTriggered||(i=this,$tw.utils.nextTick(function(){var e=i.changedTiddlers;i.changedTiddlers=Object.create(null),i.eventsTriggered=!1,0<$tw.utils.count(e)&&i.dispatchEvent('change',e)}),this.eventsTriggered=!0)},exports.getSizeOfTiddlerEventQueue=function(){return $tw.utils.count(this.changedTiddlers)},exports.clearTiddlerEventQueue=function(){this.changedTiddlers=Object.create(null),this.changeCount=Object.create(null)},exports.getChangeCount=function(e){return this.changeCount=this.changeCount||Object.create(null),$tw.utils.hop(this.changeCount,e)?this.changeCount[e]:0},exports.generateNewTitle=function(e,t){t=t||{};for(var i=0,r=e;this.tiddlerExists(r)||this.isShadowTiddler(r)||this.findDraft(r);)r=e+(t.prefix||' ')+ ++i;return r},exports.isSystemTiddler=function(e){return e&&0===e.indexOf('$:/')},exports.isTemporaryTiddler=function(e){return e&&0===e.indexOf('$:/temp/')},exports.isImageTiddler=function(e){e=this.getTiddler(e);if(e){e=$tw.config.contentTypeInfo[e.fields.type||'text/vnd.tiddlywiki'];return!!e&&-1!==e.flags.indexOf('image')}return null},exports.isBinaryTiddler=function(e){e=this.getTiddler(e);if(e){e=$tw.config.contentTypeInfo[e.fields.type||'text/vnd.tiddlywiki'];return!!e&&'base64'===e.encoding}return null},exports.importTiddler=function(e){var t=this.getTiddler(e.fields.title);return!(e&&e.hasField('plugin-type')&&e.hasField('version')&&t&&t.hasField('plugin-type')&&t.hasField('version')&&!$tw.utils.checkVersions(e.fields.version,t.fields.version))&&(this.addTiddler(e),!0)},exports.getCreationFields=function(){if('yes'===this.getTiddlerText(r,'').toLowerCase())return{};var e={created:new Date},t=this.getTiddlerText(i);return t&&(e.creator=t),e},exports.getModificationFields=function(){if('yes'===this.getTiddlerText(r,'').toLowerCase())return{};var e=Object.create(null),t=this.getTiddlerText(i);return e.modified=new Date,t&&(e.modifier=t),e},exports.getTiddlers=function(i){i=i||Object.create(null);var e,r=this,s=i.sortField||'title',n=[],t=[];for(this.each(function(e,t){!i.includeSystem&&r.isSystemTiddler(t)||i.excludeTag&&e.hasTag(i.excludeTag)||n.push(e)}),n.sort(function(e,t){e=e.fields[s].toLowerCase()||'',t=t.fields[s].toLowerCase()||'';return e<t?-1:t<e?1:0}),e=0;e<n.length;e++)t.push(n[e].fields.title);return t},exports.countTiddlers=function(e){e=this.getTiddlers({excludeTag:e});return $tw.utils.count(e)},exports.makeTiddlerIterator=function(e){var i=this;return e=$tw.utils.isArray(e)?e.slice(0):Object.keys(e),function(t){e.forEach(function(e){t(i.getTiddler(e),e)})}},exports.sortTiddlers=function(e,l,d,a,o,c){var u=this;e.sort(function(e,t){var i,r,s,n;return'title'!==l&&(i=u.getTiddler(e),r=u.getTiddler(t),e=i&&i.fields[l]||'',t=r&&r.fields[l]||''),i=Number(e),r=Number(t),!o||isNaN(i)&&isNaN(r)?$tw.utils.isDate(e)&&$tw.utils.isDate(t)?d?t-e:e-t:c?d?t.localeCompare(e,void 0,{numeric:!0,sensitivity:'base'}):e.localeCompare(t,void 0,{numeric:!0,sensitivity:'base'}):(e=String(e),t=String(t),a||(e=e.toLowerCase(),t=t.toLowerCase()),d?t.localeCompare(e):e.localeCompare(t)):(s=i,n=r,isNaN(s)&&!isNaN(n)?d?-1:1:!isNaN(s)&&isNaN(n)?d?1:-1:d?n-s:s-n)})},exports.forEachTiddler=function(){for(var e,t=0,i=2<=arguments.length?arguments[t++]:{},r=arguments[t++],s=this.getTiddlers(i),n=0;n<s.length;n++)(e=this.getTiddler(s[n]))&&r.call(this,e.fields.title,e)},exports.extractLinks=function(e){var s=[],n=function(e){for(var t=0;t<e.length;t++){var i,r=e[t];'link'===r.type&&r.attributes.to&&'string'===r.attributes.to.type&&(i=r.attributes.to.value,-1===s.indexOf(i)&&s.push(i)),r.children&&n(r.children)}};return n(e),s},exports.getTiddlerLinks=function(t){var i=this;return this.getCacheForTiddler(t,'links',function(){var e=i.parseTiddler(t);return e?i.extractLinks(e.tree):[]})},exports.getTiddlerBacklinks=function(i){var r=this,e=this.getIndexer('BacklinksIndexer'),s=e&&e.lookup(i);return s||(s=[],this.forEachTiddler(function(e,t){-1!==r.getTiddlerLinks(e).indexOf(i)&&s.push(e)})),s},exports.getMissingTitles=function(){var i=this,r=[];return this.forEachTiddler(function(e,t){e=i.getTiddlerLinks(e);$tw.utils.each(e,function(e){i.tiddlerExists(e)||i.isShadowTiddler(e)||-1!==r.indexOf(e)||r.push(e)})}),r},exports.getOrphanTitles=function(){var i=this,r=this.getTiddlers();return this.forEachTiddler(function(e,t){e=i.getTiddlerLinks(e);$tw.utils.each(e,function(e){e=r.indexOf(e);-1!==e&&r.splice(e,1)})}),r},exports.getTiddlersWithTag=function(t){var i=this,e=this.getIndexer('TagIndexer');return e&&e.subIndexers[3].lookup(t)||this.getGlobalCache('taglist-'+t,function(){var e=i.getTagMap();return i.sortByList(e[t],t)})},exports.getTagMap=function(){var r=this;return this.getGlobalCache('tagmap',function(){function i(e,t){if(e)for(var i=0;i<e.length;i++){var r=e[i];$tw.utils.hop(s,r)?s[r].push(t):s[r]=[t]}}var s=Object.create(null);return r.eachShadow(function(e,t){r.tiddlerExists(t)||(e=r.getTiddler(t),i(e.fields.tags,t))}),r.each(function(e,t){i(e.fields.tags,t)}),s})},exports.findListingsOfTiddler=function(i,r){r=r||'list';var s=[];return this.each(function(e,t){e=$tw.utils.parseStringArray(e.fields[r]);e&&-1!==e.indexOf(i)&&s.push(t)}),s},exports.sortByList=function(e,t){var n=this,l=Object.create(null);var i=this.getTiddlerList(t);if(e&&0!==e.length){for(var r,d=[],s=0;s<i.length;s++)r=i[s],-1!==e.indexOf(r)&&d.push(r);for(s=0;s<e.length;s++)r=e[s],-1===i.indexOf(r)&&d.push(r);var a=d.slice(0);for(s=0;s<a.length;s++)(function e(t){var i,r,s;$tw.utils.hop(l,t)||(l[t]=!0,i=-1,(s=n.getTiddler(t))&&(r=s.fields['list-before'],s=s.fields['list-after'],''===r?i=0:''===s?i=d.length:r?(e(r),i=d.indexOf(r)):s&&(e(s),0<=(i=d.indexOf(s))&&++i),-1===i||0<=(s=d.indexOf(t))&&i!==s&&(d.splice(s,1),s<=i&&i--,d.splice(i,0,t))))})(r=a[s]);return d}return[]},exports.getSubTiddler=function(e,t){e=this.getPluginInfo(e)||this.getTiddlerDataCached(e);if(e&&e.tiddlers){t=e.tiddlers[t];if(t)return new $tw.Tiddler(t)}return null},exports.getTiddlerAsJson=function(e){var i=this.getTiddler(e);if(i){var r=Object.create(null);return $tw.utils.each(i.fields,function(e,t){r[t]=i.getFieldString(t)}),JSON.stringify(r)}return JSON.stringify({title:e})},exports.getTiddlersAsJson=function(e,t){for(var i=this.filterTiddlers(e),t=void 0===t?$tw.config.preferences.jsonSpaces:t,r=[],s=0;s<i.length;s++){var n=this.getTiddler(i[s]);if(n){var l,d=new Object;for(l in n.fields)d[l]=n.getFieldString(l);r.push(d)}}return JSON.stringify(r,null,t)},exports.getTiddlerDataCached=function(e,t){var i=this,r=e;return r instanceof $tw.Tiddler||(r=this.getTiddler(r)),r&&this.getCacheForTiddler(r.fields.title,'data',function(){var e=i.getTiddlerData(r.fields.title,void 0);return $tw.utils.deepFreeze(e),e})||t},exports.getTiddlerData=function(e,t){var i,r=e;if(r instanceof $tw.Tiddler||(r=this.getTiddler(r)),r&&r.fields.text)switch(r.fields.type){case'application/json':try{i=JSON.parse(r.fields.text)}catch(e){return t}return i;case'application/x-tiddler-dictionary':return $tw.utils.parseFields(r.fields.text)}return t},exports.extractTiddlerDataItem=function(e,t,i){var r,e=this.getTiddlerDataCached(e,Object.create(null));return e&&$tw.utils.hop(e,t)&&(r=e[t]),'string'==typeof r||'number'==typeof r?r.toString():i},exports.setTiddlerData=function(e,t,i){var r=this.getTiddler(e),e={title:e};r&&'application/x-tiddler-dictionary'===r.fields.type?e.text=$tw.utils.makeTiddlerDictionary(t):(e.type='application/json',e.text=JSON.stringify(t,null,$tw.config.preferences.jsonSpaces)),this.addTiddler(new $tw.Tiddler(this.getCreationFields(),r,i,e,this.getModificationFields()))},exports.getTiddlerList=function(e,t,i){if(i)return $tw.utils.parseStringArray(this.extractTiddlerDataItem(e,i,''));t=t||'list';e=this.getTiddler(e);return e?($tw.utils.parseStringArray(e.fields[t])||[]).slice(0):[]},exports.getGlobalCache=function(e,t){return this.globalCache=this.globalCache||Object.create(null),$tw.utils.hop(this.globalCache,e)||(this.globalCache[e]=t()),this.globalCache[e]},exports.clearGlobalCache=function(){this.globalCache=Object.create(null)},exports.getCacheForTiddler=function(e,t,i){this.caches=this.caches||Object.create(null);var r=this.caches[e];return r&&r[t]||(r||(r=Object.create(null),this.caches[e]=r),r[t]=i()),r[t]},exports.clearCache=function(e){e?(this.caches=this.caches||Object.create(null),$tw.utils.hop(this.caches,e)&&delete this.caches[e]):this.caches=Object.create(null)},exports.initParsers=function(e){$tw.Wiki.parsers={};$tw.modules.forEachModuleOfType('parser',function(e,t){for(var i in t)$tw.utils.hop(t,i)&&($tw.Wiki.parsers[i]=t[i])}),$tw.Wiki.parsers['application/octet-stream']&&Object.keys($tw.config.contentTypeInfo).forEach(function(e){$tw.utils.hop($tw.Wiki.parsers,e)||'base64'!==$tw.config.contentTypeInfo[e].encoding||($tw.Wiki.parsers[e]=$tw.Wiki.parsers['application/octet-stream'])})},exports.parseText=function(e,t,i){t=t||'',i=i||{};var r=$tw.Wiki.parsers[e];return!r&&$tw.utils.getFileExtensionInfo(e)&&(r=$tw.Wiki.parsers[$tw.utils.getFileExtensionInfo(e).type]),(r=r||$tw.Wiki.parsers[i.defaultType||'text/vnd.tiddlywiki'])?new r(e,t,{parseAsInline:i.parseAsInline,wiki:this,_canonical_uri:i._canonical_uri}):null},exports.parseTiddler=function(e,t){var i=(t=$tw.utils.extend({},t)).parseAsInline?'inlineParseTree':'blockParseTree',r=this.getTiddler(e),s=this;return r?this.getCacheForTiddler(e,i,function(){return r.hasField('_canonical_uri')&&(t._canonical_uri=r.fields._canonical_uri),s.parseText(r.fields.type,r.fields.text,t)}):null},exports.parseTextReference=function(e,t,i,r){var s,n;if(r.subTiddler)s=this.getSubTiddler(e,r.subTiddler);else if(s=this.getTiddler(e),'text'===t||!t&&!i)return this.getTiddlerText(e),this.parseTiddler(e,r);if('text'===t||!t&&!i)return s&&s.fields?this.parseText(s.fields.type,s.fields.text,r):null;if(t){if('title'===t)n=e;else{if(!s||!s.hasField(t))return null;n=s.fields[t]}return this.parseText('text/vnd.tiddlywiki',n.toString(),r)}return i?(this.getTiddlerText(e),void 0===(n=this.extractTiddlerDataItem(s,i,void 0))?null:this.parseText('text/vnd.tiddlywiki',n,r)):void 0},exports.makeWidget=function(e,t){t=t||{};var i={type:'widget',children:[]},r=i;return $tw.utils.each(t.variables,function(e,t){e={type:'set',attributes:{name:{type:'string',value:t},value:{type:'string',value:e}},children:[]};r.children=[e],r=e}),r.children=e?e.tree:[],new s.widget(i,{wiki:this,document:t.document||$tw.fakeDocument,parentWidget:t.parentWidget})},exports.makeTranscludeWidget=function(e,t){var i={tree:[{type:'element',tag:'div',children:[]}]},r={type:'importvariables',attributes:{filter:{name:'filter',type:'string'}},isBlock:!1,children:[]},e={type:'transclude',attributes:{recursionMarker:{name:'recursionMarker',type:'string',value:(t=t||{}).recursionMarker||'yes'},tiddler:{name:'tiddler',type:'string',value:e}},isBlock:!t.parseAsInline};return t.importVariables||t.importPageMacros?(t.importVariables?r.attributes.filter.value=t.importVariables:t.importPageMacros&&(r.attributes.filter.value='[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]'),i.tree[0].children.push(r),r.children.push(e)):i.tree[0].children.push(e),t.field&&(e.attributes.field={type:'string',value:t.field}),t.mode&&(e.attributes.mode={type:'string',value:t.mode}),t.children&&(e.children=t.children),this.makeWidget(i,t)},exports.renderText=function(e,t,i,r){r=r||{};i=this.parseText(t,i,r),i=this.makeWidget(i,r),r=$tw.fakeDocument.createElement('div');return i.render(r,null),'text/html'===e?r.innerHTML:r.textContent},exports.renderTiddler=function(e,t,i){i=i||{};t=this.parseTiddler(t,i),t=this.makeWidget(t,i),i=$tw.fakeDocument.createElement('div');return t.render(i,null),'text/html'===e?i.innerHTML:'text/plain-formatted'===e?i.formattedTextContent:i.textContent},exports.search=function(t,c){var e,i,u,f=this,r=!!(c=c||{}).invert,s=c.caseSensitive?'':'i',n=c.anchored?'^':'';if(c.literal)u=0===t.length?null:[new RegExp('('+n+$tw.utils.escapeRegExp(t)+')',s)];else if(c.whitespace)i=[],$tw.utils.each(t.split(/\\s+/g),function(e){e&&i.push($tw.utils.escapeRegExp(e))}),u=[new RegExp('('+n+i.join('\\\\s+')+')',s)];else if(c.regexp)try{u=[new RegExp('('+t+')',s)]}catch(e){u=null,console.log('Regexp error parsing /('+t+')/'+s+': ',e)}else if(1===(i=t.split(/ +/)).length&&''===i[0])u=null;else for(u=[],e=0;e<i.length;e++)u.push(new RegExp('('+n+$tw.utils.escapeRegExp(i[e])+')',s));var h=[];c.field&&($tw.utils.isArray(c.field)?$tw.utils.each(c.field,function(e){e&&h.push(e)}):h.push(c.field)),0!==h.length||c.excludeField||(h.push('title'),h.push('tags'),h.push('text'));var l=[];if((c.source||this.each)(function(e,t){(function(e){if(!u)return!0;var t,i=u.slice(),r=(r=f.getTiddler(e))||new $tw.Tiddler({title:e,text:'',type:'text/vnd.tiddlywiki'}),s=$tw.config.contentTypeInfo[r.fields.type]||$tw.config.contentTypeInfo['text/vnd.tiddlywiki'];c.excludeField?(t=Object.keys(r.fields),$tw.utils.each(h,function(e){e=t.indexOf(e);-1!==e&&t.splice(e,1)})):t=h;for(var n=0;0<i.length&&n<t.length;n++){var l=t[n];if('text'===l&&'utf8'!==s.encoding)break;var d,a=r.fields[l];if(a)if($tw.utils.isArray(a))for(var o=0;o<a.length;o++)for(d=0;d<i.length;)i[d].test(a[o])?i.splice(d,1):d++;else for(a=r.getFieldString(l),d=0;d<i.length;)i[d].test(a)?i.splice(d,1):d++}return 0==i.length})(t)!==r&&l.push(t)}),c.exclude)for(e=0;e<c.exclude.length;e++){var d=l.indexOf(c.exclude[e]);-1!==d&&l.splice(d,1)}return l},exports.getTiddlerText=function(e,t){var i=this.getTiddler(e);return i?i.hasField('_is_skinny')?(this.dispatchEvent('lazyLoad',e),null):i.fields.text||'':t},exports.checkTiddlerText=function(e,t,i){i=i||{};e=this.getTiddlerText(e,'');return i.noTrim||(e=e.trim()),i.caseSensitive||(e=e.toLowerCase(),t=t.toLowerCase()),e===t},exports.readFiles=function(e,t){var i;'function'==typeof t?(i=t,t={}):i=t.callback;for(var r=[],s=e.length,n=function(e){r.push.apply(r,e),0==--s&&i(r)},l=0;l<e.length;l++)this.readFile(e[l],$tw.utils.extend({},t,{callback:n}));return e.length},exports.readFile=function(e,t){var i;'function'==typeof t?(i=t,t={}):i=t.callback;var r,s=e.type;''!==s&&s||(-1===(r=e.name.lastIndexOf('.'))||(n=$tw.utils.getFileExtensionInfo(e.name.substr(r)))&&(s=n.type));var n=$tw.config.contentTypeInfo[s],n=!!n&&'base64'===n.encoding;$tw.log.IMPORT&&console.log('Importing file \\''+e.name+'\\', type: \\''+s+'\\', isBinary: '+n),!0!==$tw.hooks.invokeHook('th-importing-file',{file:e,type:s,isBinary:n,callback:i})&&this.readFileContent(e,s,n,t.deserializer,i)},exports.readFileContent=function(r,s,n,l,d){var a=this,e=new FileReader;e.onload=function(e){var t=e.target.result,e={title:r.name||'Untitled'};!n||-1!==(i=t.indexOf(','))&&(t=t.substr(i+1));var i=$tw.utils.extractEncryptedStoreArea(t);i?$tw.utils.decryptStoreAreaInteractive(i,function(e){d(e)}):d(a.deserializeTiddlers(s,t,e,{deserializer:l}))},n?e.readAsDataURL(r):e.readAsText(r)},exports.findDraft=function(i){var r=void 0;return this.forEachTiddler({includeSystem:!0},function(e,t){t.fields['draft.title']&&t.fields['draft.of']===i&&(r=e)}),r},exports.isDraftModified=function(e){var t=this.getTiddler(e);if(!t.isDraft())return!1;e=this.getTiddler(t.fields['draft.of'])||new $tw.Tiddler({text:'',tags:[]});return t.fields['draft.title']!==t.fields['draft.of']||!t.isEqual(e,['created','modified','title','draft.title','draft.of'])},exports.addToHistory=function(e,t,i){new $tw.Story({wiki:this,historyTitle:i}).addToHistory(e,t),console.log('$tw.wiki.addToHistory() is deprecated since V5.1.23! Use the this.story.addToHistory() from the story-object!')},exports.addToStory=function(e,t,i,r){new $tw.Story({wiki:this,storyTitle:i}).addToStory(e,t,r),console.log('$tw.wiki.addToStory() is deprecated since V5.1.23! Use the this.story.addToStory() from the story-object!')},exports.generateDraftTitle=function(e){for(var t,i=0,r=this.getTiddlerText('$:/status/UserName'),s=r?' by '+r:'';t='Draft '+(i?i+1+' ':'')+'of \\''+e+'\\''+s,i++,this.tiddlerExists(t););return t},exports.invokeUpgraders=function(e,t){var i=this;this.upgraderModules||(this.upgraderModules=[],$tw.modules.forEachModuleOfType('upgrader',function(e,t){t.upgrade&&i.upgraderModules.push(t)}));for(var r={},s=0;s<this.upgraderModules.length;s++){var n=this.upgraderModules[s].upgrade(this,e,t);$tw.utils.extend(r,n)}return r},exports.doesPluginRequireReload=function(e){return this.doesPluginInfoRequireReload(this.getPluginInfo(e)||this.getTiddlerDataCached(e))},exports.doesPluginInfoRequireReload=function(e){if(e){var t=!1;return $tw.utils.each(e.tiddlers,function(e){'application/javascript'===e.type&&$tw.utils.hop(e,'module-type')&&(t=!0)}),t}return null},exports.slugify=function(e,t){var i,r=this.getTiddler(e),r=r&&r.fields.slug?r.fields.slug:$tw.utils.transliterate(e.toString().toLowerCase()).replace(/\\s+/g,'-').replace(/[^\\w\\-\\.]+/g,'').replace(/\\-\\-+/g,'-').replace(/^-+/,'').replace(/-+$/,'');return r||(i=[],$tw.utils.each(e.split(''),function(e){i.push(e.charCodeAt(0).toString())}),r=i.join('-')),r}}();","type":"application/javascript","module-type":"wikimethod"},"$:/palettes/Blanca":{"name":"Blanca","description":"A clean white palette to let you focus","tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","text":"alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #66cccc\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\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: <<colour foreground>>\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: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #7897f3\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #eeeeee\ntab-border-selected: #cccccc\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ffeedd\ntag-foreground: #000\ntiddler-background: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\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"},"$:/palettes/Blue":{"name":"Blue","description":"A blue theme","tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","text":"alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #fff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour foreground>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\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: <<colour foreground>>\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: <<colour page-background>>\nsidebar-tab-background: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #5959c0\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: #ccccdd\ntab-border-selected: #ccccdd\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #eeeeff\ntag-foreground: #000\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\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"},"$:/palettes/Muted":{"name":"Muted","description":"Bright tiddlers on a muted background","tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","text":"alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\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: <<colour foreground>>\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: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #d5ad34\ntag-foreground: #ffffff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\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"},"$:/palettes/ContrastLight":{"name":"Contrast (Light)","description":"High contrast and unambiguous (light version)","tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","text":"alert-background: #f00\nalert-border: <<colour background>>\nalert-highlight: <<colour foreground>>\nalert-muted-foreground: #800\nbackground: #fff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background: <<colour background>>\nbutton-foreground: <<colour foreground>>\nbutton-border: <<colour foreground>>\ncode-background: <<colour background>>\ncode-border: <<colour foreground>>\ncode-foreground: <<colour foreground>>\ndirty-indicator: #f00\ndownload-background: #080\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: <<colour foreground>>\ndropdown-tab-background: <<colour foreground>>\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: <<colour foreground>>\nmessage-border: <<colour background>>\nmessage-foreground: <<colour background>>\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: <<colour foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour foreground>>\nmodal-header-border: <<colour foreground>>\nmuted-foreground: <<colour foreground>>\nnotification-background: <<colour background>>\nnotification-border: <<colour foreground>>\npage-background: <<colour background>>\npre-background: <<colour background>>\npre-border: <<colour foreground>>\nprimary: #00f\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: <<colour background>>\nsidebar-controls-foreground: <<colour foreground>>\nsidebar-foreground-shadow: rgba(0,0,0, 0)\nsidebar-foreground: <<colour foreground>>\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: <<colour foreground>>\nsidebar-tab-background-selected: <<colour background>>\nsidebar-tab-background: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: <<colour foreground>>\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: <<colour foreground>>\nsidebar-tiddler-link-foreground: <<colour primary>>\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: <<colour foreground>>\ntab-border-selected: <<colour foreground>>\ntab-border: <<colour foreground>>\ntab-divider: <<colour foreground>>\ntab-foreground-selected: <<colour foreground>>\ntab-foreground: <<colour background>>\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #000\ntag-foreground: #fff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour foreground>>\ntiddler-controls-foreground-hover: #ddd\ntiddler-controls-foreground-selected: #fdd\ntiddler-controls-foreground: <<colour foreground>>\ntiddler-editor-background: <<colour background>>\ntiddler-editor-border-image: <<colour foreground>>\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: <<colour background>>\ntiddler-editor-fields-odd: <<colour background>>\ntiddler-info-background: <<colour background>>\ntiddler-info-border: <<colour foreground>>\ntiddler-info-tab-background: <<colour background>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour foreground>>\ntiddler-title-foreground: <<colour foreground>>\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: <<colour foreground>>\nvery-muted-foreground: #888888\n"},"$:/palettes/ContrastDark":{"name":"Contrast (Dark)","description":"High contrast and unambiguous (dark version)","tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","text":"alert-background: #f00\nalert-border: <<colour background>>\nalert-highlight: <<colour foreground>>\nalert-muted-foreground: #800\nbackground: #000\nblockquote-bar: <<colour muted-foreground>>\nbutton-background: <<colour background>>\nbutton-foreground: <<colour foreground>>\nbutton-border: <<colour foreground>>\ncode-background: <<colour background>>\ncode-border: <<colour foreground>>\ncode-foreground: <<colour foreground>>\ndirty-indicator: #f00\ndownload-background: #080\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: <<colour foreground>>\ndropdown-tab-background: <<colour foreground>>\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: <<colour foreground>>\nmessage-border: <<colour background>>\nmessage-foreground: <<colour background>>\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: <<colour foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour foreground>>\nmodal-header-border: <<colour foreground>>\nmuted-foreground: <<colour foreground>>\nnotification-background: <<colour background>>\nnotification-border: <<colour foreground>>\npage-background: <<colour background>>\npre-background: <<colour background>>\npre-border: <<colour foreground>>\nprimary: #00f\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: <<colour background>>\nsidebar-controls-foreground: <<colour foreground>>\nsidebar-foreground-shadow: rgba(0,0,0, 0)\nsidebar-foreground: <<colour foreground>>\nsidebar-muted-foreground-hover: #444444\nsidebar-muted-foreground: <<colour foreground>>\nsidebar-tab-background-selected: <<colour background>>\nsidebar-tab-background: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: <<colour foreground>>\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: <<colour foreground>>\nsidebar-tiddler-link-foreground: <<colour primary>>\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: <<colour foreground>>\ntab-border-selected: <<colour foreground>>\ntab-border: <<colour foreground>>\ntab-divider: <<colour foreground>>\ntab-foreground-selected: <<colour foreground>>\ntab-foreground: <<colour background>>\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #fff\ntag-foreground: #000\ntiddler-background: <<colour background>>\ntiddler-border: <<colour foreground>>\ntiddler-controls-foreground-hover: #ddd\ntiddler-controls-foreground-selected: #fdd\ntiddler-controls-foreground: <<colour foreground>>\ntiddler-editor-background: <<colour background>>\ntiddler-editor-border-image: <<colour foreground>>\ntiddler-editor-border: #cccccc\ntiddler-editor-fields-even: <<colour background>>\ntiddler-editor-fields-odd: <<colour background>>\ntiddler-info-background: <<colour background>>\ntiddler-info-border: <<colour foreground>>\ntiddler-info-tab-background: <<colour background>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour foreground>>\ntiddler-title-foreground: <<colour foreground>>\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: <<colour foreground>>\nvery-muted-foreground: #888888\n"},"$:/palettes/CupertinoDark":{"tags":"$:/tags/Palette","name":"Cupertino Dark","description":"A macOS inspired dark palette","type":"application/x-tiddler-dictionary","text":"alert-background: #FF453A\nalert-border: #FF453A\nalert-highlight: #FFD60A\nalert-muted-foreground: <<colour muted-foreground>>\nbackground: #282828\nblockquote-bar: <<colour page-background>>\nbutton-foreground: <<colour background>>\ncode-background: <<colour pre-background>>\ncode-border: <<colour pre-border>>\ncode-foreground: rgba(255, 255, 255, 0.54)\ndirty-indicator: #FF453A\ndownload-background: <<colour primary>>\ndownload-foreground: <<colour foreground>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour tiddler-info-background>>\ndropdown-border: <<colour dropdown-background>>\ndropdown-tab-background-selected: #3F638B\ndropdown-tab-background: #323232\ndropzone-background: #30D158\nexternal-link-background-hover: transparent\nexternal-link-background-visited: transparent\nexternal-link-background: transparent\nexternal-link-foreground-hover: \nexternal-link-foreground-visited: #BF5AF2\nexternal-link-foreground: #32D74B\nforeground: #FFFFFF\nmenubar-background: #464646\nmenubar-foreground: #ffffff\nmessage-background: <<colour background>>\nmessage-border: <<colour very-muted-foreground>>\nmessage-foreground: rgba(255, 255, 255, 0.54)\nmodal-backdrop: <<colour page-background>>\nmodal-background: <<colour background>>\nmodal-border: <<colour very-muted-foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour background>>\nmodal-header-border: <<colour very-muted-foreground>>\nmuted-foreground: #98989D\nnotification-background: <<colour dropdown-background>>\nnotification-border: <<colour dropdown-background>>\npage-background: #323232\npre-background: #464646\npre-border: transparent\nprimary: #0A84FF\nselect-tag-background: <<colour background>>\nselect-tag-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour background>>\nsidebar-controls-foreground-hover: #FF9F0A\nsidebar-controls-foreground: #8E8E93\nsidebar-foreground-shadow: transparent\nsidebar-foreground: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground-hover: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground: rgba(255, 255, 255, 0.38)\nsidebar-tab-background-selected: #3F638B\nsidebar-tab-background: <<colour background>>\nsidebar-tab-border-selected: <<colour background>>\nsidebar-tab-border: <<colour background>>\nsidebar-tab-divider: <<colour background>>\nsidebar-tab-foreground-selected: rgba(255, 255, 255, 0.87)\nsidebar-tab-foreground: rgba(255, 255, 255, 0.54)\nsidebar-tiddler-link-foreground-hover: rgba(255, 255, 255, 0.7)\nsidebar-tiddler-link-foreground: rgba(255, 255, 255, 0.54)\nsite-title-foreground: #ffffff\nstatic-alert-foreground: #B4B4B4\ntab-background-selected: #3F638B\ntab-background: <<colour page-background>>\ntab-border-selected: <<colour page-background>>\ntab-border: <<colour page-background>>\ntab-divider: <<colour page-background>>\ntab-foreground-selected: rgba(255, 255, 255, 0.87)\ntab-foreground: rgba(255, 255, 255, 0.54)\ntable-border: #464646\ntable-footer-background: <<colour tiddler-editor-fields-odd>>\ntable-header-background: <<colour tiddler-editor-fields-even>>\ntag-background: #48484A\ntag-foreground: #323232\ntiddler-background: <<colour background>>\ntiddler-border: transparent\ntiddler-controls-foreground-hover: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground-selected: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground: #48484A\ntiddler-editor-background: transparent\ntiddler-editor-border-image: \ntiddler-editor-border: rgba(255, 255, 255, 0.08)\ntiddler-editor-fields-even: rgba(255, 255, 255, 0.1)\ntiddler-editor-fields-odd: rgba(255, 255, 255, 0.04)\ntiddler-info-background: #1E1E1E\ntiddler-info-border: #1E1E1E\ntiddler-info-tab-background: #3F638B\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour muted-foreground>>\ntiddler-title-foreground: #FFFFFF\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: <<colour very-muted-foreground>>\nvery-muted-foreground: #464646\nselection-background: #3F638B\nselection-foreground: #ffffff\nwikilist-background: <<colour page-background>>\nwikilist-button-background: #3F638B\nwikilist-button-foreground: <<colour foreground>>\nwikilist-button-open: #32D74B\nwikilist-button-open-hover: #32D74B\nwikilist-button-reveal: #0A84FF\nwikilist-button-reveal-hover: #0A84FF\nwikilist-button-remove: #FF453A\nwikilist-button-remove-hover: #FF453A\nwikilist-droplink-dragover: #32D74B\nwikilist-item: <<colour background>>\nwikilist-toolbar-background: <<colour background>>\nwikilist-title: <<colour foreground>>\nwikilist-title-svg: <<colour foreground>>\nwikilist-toolbar-foreground: <<colour foreground>>\nwikilist-url: <<colour muted-foreground>>\n"},"$:/palettes/DarkPhotos":{"created":"20150402111612188","description":"Good with dark photo backgrounds","modified":"20150402112344080","name":"DarkPhotos","tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","text":"alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background: \nbutton-foreground: \nbutton-border: \ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\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: <<colour foreground>>\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: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: rgba(255,255,255, 0.2)\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\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: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ec6\ntag-foreground: #ffffff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\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"},"$:/palettes/DesertSand":{"tags":"$:/tags/Palette","name":"Desert Sand","description":"A desert sand palette","type":"application/x-tiddler-dictionary","text":"alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #E9E0C7\nblockquote-bar: <<colour muted-foreground>>\nbutton-foreground: <<colour foreground>>\ncode-background: #F3EDDF\ncode-border: #C3BAA1\ncode-foreground: #ab3250\ndiff-delete-background: #bd8b8b\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #91c093\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: #ad3434\ndownload-background: #6ca16c\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\ndropdown-tab-background-selected: #E9E0C7\ndropdown-tab-background: #BAB29C\ndropzone-background: rgba(0,200,0,0.7)\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #313163\nexternal-link-foreground: #555592\nforeground: #2D2A23\nmenubar-background: #CDC2A6\nmenubar-foreground: #5A5446\nmessage-background: #ECE5CF\nmessage-border: #D6CBAA\nmessage-foreground: #5f6e7d\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #8A8885\nmodal-footer-background: #CDC2A6\nmodal-footer-border: #9D998E\nmodal-header-border: #9D998E\nmuted-foreground: #9D998E\nnotification-background: #F0E9D7\nnotification-border: #939189\npage-background: #e0d3af\npre-background: #D6CBAA\npre-border: #CDC2A6\nprimary: #5B6F55\nselection-background: #9D947B\nselection-foreground: <<colour foreground>>\nselect-tag-background: #F0E9D7\nselect-tag-foreground: #2D2A23\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #2D2A23\nsidebar-controls-foreground: #867F69\nsidebar-foreground-shadow: transparent\nsidebar-foreground: #867F69\nsidebar-muted-foreground-hover: #706A58\nsidebar-muted-foreground: #B3A98C\nsidebar-tab-background-selected: #e0d3af\nsidebar-tab-background: #A6A193\nsidebar-tab-border-selected: #C3BAA1\nsidebar-tab-border: #C3BAA1\nsidebar-tab-divider: #CDC2A6\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: #2D2A23\nsidebar-tiddler-link-foreground-hover: #433F35\nsidebar-tiddler-link-foreground: #706A58\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #A6A193\ntab-background-selected: #E9E0C7\ntab-background: #A6A193\ntab-border-selected: #C3BAA1\ntab-border: #C3BAA1\ntab-divider: #CDC2A6\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #2D2A23\ntable-border: #9D998E\ntable-footer-background: #8A8885\ntable-header-background: #B0AA98\ntag-background: #706A58\ntag-foreground: #E3D7B7\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: #9D947B\ntiddler-controls-foreground-selected: #706A58\ntiddler-controls-foreground: #C3BAA1\ntiddler-editor-background: #E9E0C7\ntiddler-editor-border-image: #A6A193\ntiddler-editor-border: #A6A193\ntiddler-editor-fields-even: #D6CBAA\ntiddler-editor-fields-odd: #C3BAA1\ntiddler-info-background: #E3D7B7\ntiddler-info-border: #BAB29C\ntiddler-info-tab-background: #E9E0C7\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #867F69\ntiddler-title-foreground: #374464\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #8A8885\nvery-muted-foreground: #CDC2A6\nwikilist-background: <<colour page-background>>\nwikilist-item: #CDC2A6\nwikilist-info: #161512\nwikilist-title: #433F35\nwikilist-title-svg: <<colour wikilist-title>>\nwikilist-url: #706A58\nwikilist-button-open: #7db66a\nwikilist-button-open-hover: #56a556\nwikilist-button-reveal: #5a6c9e\nwikilist-button-reveal-hover: #454591\nwikilist-button-remove: #bc5972\nwikilist-button-remove-hover: #814040\nwikilist-toolbar-background: #CDC2A6\nwikilist-toolbar-foreground: #2D2A23\nwikilist-droplink-dragover: rgba(255,192,192,0.5)\nwikilist-button-background: #A6A193\nwikilist-button-foreground: #161512\n"},"$:/palettes/GruvboxDark":{"name":"Gruvbox Dark","description":"Retro groove color scheme","tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","license":"https://github.com/morhetz/gruvbox","text":"alert-background: #cc241d\nalert-border: #cc241d\nalert-highlight: #d79921\nalert-muted-foreground: #504945\nbackground: #3c3836\nblockquote-bar: <<colour muted-foreground>>\nbutton-foreground: <<colour page-background>>\ncode-background: #504945\ncode-border: #504945\ncode-foreground: #fb4934\ndiff-delete-background: #fb4934\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #b8bb26\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: #fb4934\ndownload-background: #b8bb26\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: #665c54\ndropdown-border: <<colour background>>\ndropdown-tab-background-selected: #ebdbb2\ndropdown-tab-background: #665c54\ndropzone-background: #98971a\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #d3869b\nexternal-link-foreground: #8ec07c\nforeground: #fbf1c7\nmenubar-background: #504945\nmenubar-foreground: <<colour foreground>>\nmessage-background: #83a598\nmessage-border: #83a598\nmessage-foreground: #3c3836\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #504945\nmodal-footer-background: #3c3836\nmodal-footer-border: #3c3836\nmodal-header-border: #3c3836\nmuted-foreground: #d5c4a1\nnotification-background: <<colour primary>>\nnotification-border: <<colour primary>>\npage-background: #282828\npre-background: #504945\npre-border: #504945\nprimary: #d79921\nselect-tag-background: #665c54\nselect-tag-foreground: <<colour foreground>>\nselection-background: #458588\nselection-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour page-background>>\nsidebar-controls-foreground-hover: #7c6f64\nsidebar-controls-foreground: #504945\nsidebar-foreground-shadow: transparent\nsidebar-foreground: #fbf1c7\nsidebar-muted-foreground-hover: #7c6f64\nsidebar-muted-foreground: #504945\nsidebar-tab-background-selected: #bdae93\nsidebar-tab-background: #3c3836\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: #bdae93\nsidebar-tab-divider: <<colour page-background>>\nsidebar-tab-foreground-selected: #282828\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #458588\nsidebar-tiddler-link-foreground: #98971a\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #B48EAD\ntab-background-selected: #ebdbb2\ntab-background: #665c54\ntab-border-selected: #665c54\ntab-border: #665c54\ntab-divider: #bdae93\ntab-foreground-selected: #282828\ntab-foreground: #ebdbb2\ntable-border: #7c6f64\ntable-footer-background: #665c54\ntable-header-background: #504945\ntag-background: #d3869b\ntag-foreground: #282828\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: #7c6f64\ntiddler-controls-foreground-selected: <<colour primary>>\ntiddler-controls-foreground: #665c54\ntiddler-editor-background: #32302f\ntiddler-editor-border-image: #282828\ntiddler-editor-border: #282828\ntiddler-editor-fields-even: #504945\ntiddler-editor-fields-odd: #7c6f64\ntiddler-info-background: #32302f\ntiddler-info-border: #ebdbb2\ntiddler-info-tab-background: #ebdbb2\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #7c6f64\ntiddler-title-foreground: #a89984\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #504945\nvery-muted-foreground: #bdae93\nwikilist-background: <<colour page-background>>\nwikilist-button-background: #acacac\nwikilist-button-foreground: <<colour button-foreground>>\nwikilist-item: <<colour background>>\nwikilist-toolbar-background: <<colour background>>\nwikilist-toolbar-foreground: <<colour foreground>>\nwikilist-title: <<colour foreground>>\nwikilist-title-svg: <<colour wikilist-title>>\nwikilist-url: <<colour muted-foreground>>\nwikilist-button-open-hover: <<colour primary>>\nwikilist-button-open: <<colour dropzone-background>>\nwikilist-button-remove: <<colour dirty-indicator>>\nwikilist-button-remove-hover: <<colour alert-background>>\nwikilist-droplink-dragover: <<colour dropzone-background>>\nwikilist-button-reveal: <<colour sidebar-tiddler-link-foreground-hover>>\nwikilist-button-reveal-hover: <<colour message-background>>\n"},"$:/palettes/Nord":{"name":"Nord","description":"An arctic, north-bluish color palette.","tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","license":"MIT, arcticicestudio, https://github.com/arcticicestudio/nord/blob/develop/LICENSE.md","text":"alert-background: #D08770\nalert-border: #D08770\nalert-highlight: #B48EAD\nalert-muted-foreground: #4C566A\nbackground: #3b4252\nblockquote-bar: <<colour muted-foreground>>\nbutton-foreground: <<colour page-background>>\ncode-background: #2E3440\ncode-border: #2E3440\ncode-foreground: #BF616A\ndiff-delete-background: #BF616A\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #A3BE8C\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: #BF616A\ndownload-background: #A3BE8C\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour background>>\ndropdown-tab-background-selected: #ECEFF4\ndropdown-tab-background: #4C566A\ndropzone-background: #A3BE8C\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-background: inherit\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #5E81AC\nexternal-link-foreground: #8FBCBB\nforeground: #d8dee9\nmenubar-background: #2E3440\nmenubar-foreground: #d8dee9\nmessage-background: #2E3440\nmessage-border: #2E3440\nmessage-foreground: #547599\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #3b4252\nmodal-footer-background: #3b4252\nmodal-footer-border: #3b4252\nmodal-header-border: #3b4252\nmuted-foreground: #4C566A\nnotification-background: <<colour primary>>\nnotification-border: #EBCB8B\npage-background: #2e3440\npre-background: #2E3440\npre-border: #2E3440\nprimary: #5E81AC\nselect-tag-background: #3b4252\nselect-tag-foreground: <<colour foreground>>\nselection-background: #5E81AC\nselection-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour page-background>>\nsidebar-controls-foreground-hover: #D8DEE9\nsidebar-controls-foreground: #4C566A\nsidebar-foreground-shadow: transparent\nsidebar-foreground: #D8DEE9\nsidebar-muted-foreground-hover: #4C566A\nsidebar-muted-foreground: #4C566A\nsidebar-tab-background-selected: #ECEFF4\nsidebar-tab-background: #4C566A\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: #4C566A\nsidebar-tab-divider: <<colour page-background>>\nsidebar-tab-foreground-selected: #4C566A\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #A3BE8C\nsidebar-tiddler-link-foreground: #81A1C1\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #B48EAD\ntab-background-selected: #ECEFF4\ntab-background: #4C566A\ntab-border-selected: #4C566A\ntab-border: #4C566A\ntab-divider: #4C566A\ntab-foreground-selected: #4C566A\ntab-foreground: #D8DEE9\ntable-border: #4C566A\ntable-footer-background: #2e3440\ntable-header-background: #2e3440\ntag-background: #A3BE8C\ntag-foreground: #4C566A\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\ntiddler-controls-foreground-hover: \ntiddler-controls-foreground-selected: #EBCB8B\ntiddler-controls-foreground: #4C566A\ntiddler-editor-background: #2e3440\ntiddler-editor-border-image: #2e3440\ntiddler-editor-border: #3b4252\ntiddler-editor-fields-even: #2e3440\ntiddler-editor-fields-odd: #2e3440\ntiddler-info-background: #2e3440\ntiddler-info-border: #2e3440\ntiddler-info-tab-background: #2e3440\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #4C566A\ntiddler-title-foreground: #81A1C1\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: #2d3038\nvery-muted-foreground: #2d3038\nwikilist-background: <<colour page-background>>\nwikilist-toolbar-background: <<colour background>>\nwikilist-item: <<colour background>>\nwikilist-title: <<colour foreground>>\nwikilist-info: <<colour muted-foreground>>\nwikilist-button-open: #A3BE8C\nwikilist-button-open-hover: #A3BE8C\nwikilist-button-reveal: #81A1C1\nwikilist-button-reveal-hover: #81A1C1\nwikilist-button-remove: #B48EAD\nwikilist-button-remove-hover: #B48EAD\n"},"$:/palettes/Rocker":{"name":"Rocker","description":"A dark theme","tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","text":"alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\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: <<colour foreground>>\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: <<colour tab-background>>\nsidebar-tab-border-selected: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: <<colour tab-divider>>\nsidebar-tab-foreground-selected: \nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #ffbb99\nsidebar-tiddler-link-foreground: #cc0000\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ffbb99\ntag-foreground: #000\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\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"},"$:/palettes/SolarFlare":{"name":"Solar Flare","description":"Warm, relaxing earth colours","tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","text":": 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: <<colour background>>\n dragger-foreground: <<colour background>>\n dropdown-background: <<colour background>>\n modal-background: <<colour background>>\n sidebar-foreground-shadow: <<colour background>>\n tiddler-background: <<colour background>>\n tiddler-border: <<colour background>>\n tiddler-link-background: <<colour background>>\n tab-background-selected: <<colour background>>\n dropdown-tab-background-selected: <<colour tab-background-selected>>\nforeground: #657b83\n dragger-background: <<colour foreground>>\n tab-foreground: <<colour foreground>>\n tab-foreground-selected: <<colour tab-foreground>>\n sidebar-tab-foreground-selected: <<colour tab-foreground-selected>>\n sidebar-tab-foreground: <<colour tab-foreground>>\n sidebar-button-foreground: <<colour foreground>>\n sidebar-controls-foreground: <<colour foreground>>\n sidebar-foreground: <<colour foreground>>\n: base03\n: base02\n: base01\n alert-muted-foreground: <<colour base01>>\n: base00\n code-foreground: <<colour base00>>\n message-foreground: <<colour base00>>\n tag-foreground: <<colour base00>>\n: base0\n sidebar-tiddler-link-foreground: <<colour base0>>\n: base1\n muted-foreground: <<colour base1>>\n blockquote-bar: <<colour muted-foreground>>\n dropdown-border: <<colour muted-foreground>>\n sidebar-muted-foreground: <<colour muted-foreground>>\n tiddler-title-foreground: <<colour muted-foreground>>\n site-title-foreground: <<colour tiddler-title-foreground>>\n: base2\n modal-footer-background: <<colour base2>>\n page-background: <<colour base2>>\n modal-backdrop: <<colour page-background>>\n notification-background: <<colour page-background>>\n code-background: <<colour page-background>>\n code-border: <<colour code-background>>\n pre-background: <<colour page-background>>\n pre-border: <<colour pre-background>>\n sidebar-tab-background-selected: <<colour page-background>>\n table-header-background: <<colour base2>>\n tag-background: <<colour base2>>\n tiddler-editor-background: <<colour base2>>\n tiddler-info-background: <<colour base2>>\n tiddler-info-tab-background: <<colour base2>>\n tab-background: <<colour base2>>\n dropdown-tab-background: <<colour tab-background>>\n: base3\n alert-background: <<colour base3>>\n message-background: <<colour base3>>\n: yellow\n: orange\n: red\n: magenta\n alert-highlight: <<colour magenta>>\n: violet\n external-link-foreground: <<colour violet>>\n: blue\n: cyan\n: green\n: base10\n tiddler-controls-foreground: <<colour base10>>\n: violet-muted\n external-link-foreground-visited: <<colour violet-muted>>\n: blue-muted\n primary: <<colour blue-muted>>\n download-background: <<colour primary>>\n tiddler-link-foreground: <<colour primary>>\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: <<colour tab-border>>\n modal-header-border: <<colour tab-border>>\n notification-border: <<colour tab-border>>\n sidebar-tab-border: <<colour tab-border>>\n tab-border-selected: <<colour tab-border>>\n sidebar-tab-border-selected: <<colour tab-border-selected>>\ntab-divider: #d8d8d8\n sidebar-tab-divider: <<colour tab-divider>>\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"},"$:/palettes/SolarizedDark":{"tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","description":"Precision dark colors for machines and people","license":"MIT, Ethan Schoonover, https://github.com/altercation/solarized/blob/master/LICENSE","name":"SolarizedDark","text":"alert-background: #073642\nalert-border: #93a1a1\nalert-highlight: #d33682\nalert-muted-foreground: #d33682\nbackground: #073642\nblockquote-bar: #d33682\nbutton-background: #073642\nbutton-border: #586e75\nbutton-foreground: #93a1a1\ncode-background: #073642\ncode-border: #586e75\ncode-foreground: #93a1a1\ndirty-indicator: inherit\ndownload-background: #859900\ndownload-foreground: #073642\ndragger-background: #073642\ndragger-foreground: #839496\ndropdown-background: #073642\ndropdown-border: #93a1a1\ndropdown-tab-background: #002b36\ndropdown-tab-background-selected: #073642\ndropzone-background: #859900\nexternal-link-background: inherit\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-foreground: #268bd2\nexternal-link-foreground-hover:\nexternal-link-foreground-visited: #268bd2\nforeground: #839496\nmessage-background: #002b36\nmessage-border: #586e75\nmessage-foreground: #839496\nmodal-backdrop: #657b83\nmodal-background: #002b36\nmodal-border: #586e75\nmodal-footer-background: #073642\nmodal-footer-border: #586e75\nmodal-header-border: #586e75\nmuted-foreground: #93a1a1\nnotification-background: #002b36\nnotification-border: #586e75\npage-background: #073642\npre-background: inherit\npre-border: #657b83\nprimary: #859900\nselect-tag-background: #002b36\nselect-tag-foreground: #839496\nsidebar-button-foreground: #93a1a1\nsidebar-controls-foreground: #93a1a1\nsidebar-controls-foreground-hover: #eee8d5\nsidebar-foreground: #93a1a1\nsidebar-foreground-shadow: transparent\nsidebar-muted-foreground: #839496\nsidebar-muted-foreground-hover: #93a1a1\nsidebar-tab-background: #002b36\nsidebar-tab-background-selected: #073642\nsidebar-tab-border: #073642\nsidebar-tab-border-selected: #839496\nsidebar-tab-divider: #002b36\nsidebar-tab-foreground: #657b83\nsidebar-tab-foreground-selected: #93a1a1\nsidebar-tiddler-link-foreground: #2aa198\nsidebar-tiddler-link-foreground-hover: #eee8d5\nsite-title-foreground: #d33682\nstatic-alert-foreground: #93a1a1\ntab-background: #073642\ntab-background-selected: #002b36\ntab-border: #586e75\ntab-border-selected: #93a1a1\ntab-divider: #93a1a1\ntab-foreground: #839496\ntab-foreground-selected: #93a1a1\ntable-border: #586e75\ntable-footer-background: #073642\ntable-header-background: #073642\ntag-background: #b58900\ntag-foreground: #002b36\ntiddler-background: #002b36\ntiddler-border: #586e75\ntiddler-controls-foreground: inherit\ntiddler-controls-foreground-hover: #d33682\ntiddler-controls-foreground-selected: #2aa198\ntiddler-editor-background: #002b36\ntiddler-editor-border: #073642\ntiddler-editor-border-image: #002b36\ntiddler-editor-fields-even: #002b36\ntiddler-editor-fields-odd: #073642\ntiddler-info-background: #073642\ntiddler-info-border: #657b83\ntiddler-info-tab-background: #002b36\ntiddler-link-background: #002b36\ntiddler-link-foreground: #2aa198\ntiddler-subtitle-foreground: #839496\ntiddler-title-foreground: #d33682\ntoolbar-cancel-button: #839496\ntoolbar-close-button: #839496\ntoolbar-delete-button: #dc322f\ntoolbar-done-button: #839496\ntoolbar-edit-button: #839496\ntoolbar-info-button: #839496\ntoolbar-new-button: #839496\ntoolbar-options-button: #839496\ntoolbar-save-button: inherit\nuntagged-background: #586e75\nvery-muted-foreground: #586e75\n"},"$:/palettes/SolarizedLight":{"tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","description":"Precision colors for machines and people","license":"MIT, Ethan Schoonover, https://github.com/altercation/solarized/blob/master/LICENSE","name":"SolarizedLight","text":"alert-background: #eee8d5\nalert-border: #586e75\nalert-highlight: #d33682\nalert-muted-foreground: #d33682\nbackground: #eee8d5\nblockquote-bar: #d33682\nbutton-background: #eee8d5\nbutton-border: #93a1a1\nbutton-foreground: #586e75\ncode-background: #eee8d5\ncode-border: #93a1a1\ncode-foreground: #586e75\ndirty-indicator: inherit\ndownload-background: #859900\ndownload-foreground: #eee8d5\ndragger-background: #eee8d5\ndragger-foreground: #657b83\ndropdown-background: #eee8d5\ndropdown-border: #586e75\ndropdown-tab-background: #fdf6e3\ndropdown-tab-background-selected: #eee8d5\ndropzone-background: #859900\nexternal-link-background: inherit\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-foreground: #268bd2\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: #268bd2\nforeground: #657b83\nmessage-background: #fdf6e3\nmessage-border: #93a1a1\nmessage-foreground: #657b83\nmodal-backdrop: #839496\nmodal-background: #fdf6e3\nmodal-border: #93a1a1\nmodal-footer-background: #eee8d5\nmodal-footer-border: #93a1a1\nmodal-header-border: #93a1a1\nmuted-foreground: #586e75\nnotification-background: #fdf6e3\nnotification-border: #93a1a1\npage-background: #eee8d5\npre-background: #eee8d5\npre-border: #839496\nprimary: #859900\nselect-tag-background: #fdf6e3\nselect-tag-foreground: #657b83\nsidebar-button-foreground: #586e75\nsidebar-controls-foreground: #586e75\nsidebar-controls-foreground-hover: #d33682\nsidebar-foreground: #586e75\nsidebar-foreground-shadow: transparent\nsidebar-muted-foreground: #657b83\nsidebar-muted-foreground-hover: #586e75\nsidebar-tab-background: #fdf6e3\nsidebar-tab-background-selected: #eee8d5\nsidebar-tab-border: #eee8d5\nsidebar-tab-border-selected: #657b83\nsidebar-tab-divider: #fdf6e3\nsidebar-tab-foreground: #839496\nsidebar-tab-foreground-selected: #586e75\nsidebar-tiddler-link-foreground: #2aa198\nsidebar-tiddler-link-foreground-hover: #002b36\nsite-title-foreground: #d33682\nstatic-alert-foreground: #586e75\ntab-background: #eee8d5\ntab-background-selected: #fdf6e3\ntab-border: #93a1a1\ntab-border-selected: #586e75\ntab-divider: #586e75\ntab-foreground: #657b83\ntab-foreground-selected: #586e75\ntable-border: #93a1a1\ntable-footer-background: #eee8d5\ntable-header-background: #eee8d5\ntag-background: #b58900\ntag-foreground: #fdf6e3\ntiddler-background: #fdf6e3\ntiddler-border: #93a1a1\ntiddler-controls-foreground: inherit\ntiddler-controls-foreground-hover: #d33682\ntiddler-controls-foreground-selected: #2aa198\ntiddler-editor-background: #fdf6e3\ntiddler-editor-border: #eee8d5\ntiddler-editor-border-image: #fdf6e3\ntiddler-editor-fields-even: #fdf6e3\ntiddler-editor-fields-odd: #eee8d5\ntiddler-info-background: #eee8d5\ntiddler-info-border: #839496\ntiddler-info-tab-background: #fdf6e3\ntiddler-link-background: #fdf6e3\ntiddler-link-foreground: #2aa198\ntiddler-subtitle-foreground: #657b83\ntiddler-title-foreground: #d33682\ntoolbar-cancel-button: #657b83\ntoolbar-close-button: #657b83\ntoolbar-delete-button: #dc322f\ntoolbar-done-button: #657b83\ntoolbar-edit-button: #657b83\ntoolbar-info-button: #657b83\ntoolbar-new-button: #657b83\ntoolbar-options-button: #657b83\ntoolbar-save-button: inherit\nuntagged-background: #586e75\nvery-muted-foreground: #93a1a1\n"},"$:/palettes/SpartanDay":{"tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","description":"Cold, spartan day colors","name":"Spartan Day","text":"alert-background: <<colour background>>\nalert-border: <<colour very-muted-foreground>>\nalert-highlight: <<colour very-muted-foreground>>\nalert-muted-foreground: <<colour muted-foreground>>\nbackground: #FAFAFA\nblockquote-bar: <<colour page-background>>\nbutton-background: transparent\nbutton-foreground: inherit\nbutton-border: <<colour tag-background>>\ncode-background: #ececec\ncode-border: #ececec\ncode-foreground: \ndirty-indicator: #c80000\ndownload-background: <<colour primary>>\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: #FFFFFF\ndropdown-border: <<colour dropdown-background>>\ndropdown-tab-background-selected: <<colour dropdown-background>>\ndropdown-tab-background: #F5F5F5\ndropzone-background: <<colour tag-background>>\nexternal-link-background-hover: transparent\nexternal-link-background-visited: transparent\nexternal-link-background: transparent\nexternal-link-foreground-hover: \nexternal-link-foreground-visited: \nexternal-link-foreground: \nforeground: rgba(0, 0, 0, 0.87)\nmessage-background: <<colour background>>\nmessage-border: <<colour very-muted-foreground>>\nmessage-foreground: rgba(0, 0, 0, 0.54)\nmodal-backdrop: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: <<colour very-muted-foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour very-muted-foreground>>\nmodal-header-border: <<colour very-muted-foreground>>\nmuted-foreground: rgba(0, 0, 0, 0.54)\nnotification-background: <<colour dropdown-background>>\nnotification-border: <<colour dropdown-background>>\npage-background: #f4f4f4\npre-background: #ececec\npre-border: #ececec\nprimary: #3949ab\nselect-tag-background: <<colour background>>\nselect-tag-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #aeaeae\nsidebar-controls-foreground: #c6c6c6\nsidebar-foreground-shadow: transparent\nsidebar-foreground: rgba(0, 0, 0, 0.54)\nsidebar-muted-foreground-hover: rgba(0, 0, 0, 0.54)\nsidebar-muted-foreground: rgba(0, 0, 0, 0.38)\nsidebar-tab-background-selected: <<colour page-background>>\nsidebar-tab-background: transparent\nsidebar-tab-border-selected: <<colour table-border>>\nsidebar-tab-border: transparent\nsidebar-tab-divider: <<colour table-border>>\nsidebar-tab-foreground-selected: rgba(0, 0, 0, 0.87)\nsidebar-tab-foreground: rgba(0, 0, 0, 0.54)\nsidebar-tiddler-link-foreground-hover: rgba(0, 0, 0, 0.87)\nsidebar-tiddler-link-foreground: rgba(0, 0, 0, 0.54)\nsite-title-foreground: rgba(0, 0, 0, 0.87)\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: transparent\ntab-border-selected: <<colour table-border>>\ntab-border: transparent\ntab-divider: <<colour table-border>>\ntab-foreground-selected: rgba(0, 0, 0, 0.87)\ntab-foreground: rgba(0, 0, 0, 0.54)\ntable-border: #d8d8d8\ntable-footer-background: <<colour tiddler-editor-fields-odd>>\ntable-header-background: <<colour tiddler-editor-fields-even>>\ntag-background: #ec6\ntag-foreground: <<colour button-foreground>>\ntiddler-background: <<colour background>>\ntiddler-border: #f9f9f9\ntiddler-controls-foreground-hover: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground-selected: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground: <<colour sidebar-controls-foreground>>\ntiddler-editor-background: transparent\ntiddler-editor-border-image: \ntiddler-editor-border: #e8e7e7\ntiddler-editor-fields-even: rgba(0, 0, 0, 0.1)\ntiddler-editor-fields-odd: rgba(0, 0, 0, 0.04)\ntiddler-info-background: #F5F5F5\ntiddler-info-border: #F5F5F5\ntiddler-info-tab-background: <<colour tiddler-editor-fields-odd>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour muted-foreground>>\ntiddler-title-foreground: #000000\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: <<colour very-muted-foreground>>\nvery-muted-foreground: rgba(0, 0, 0, 0.12)\n"},"$:/palettes/SpartanNight":{"tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","description":"Dark spartan colors","name":"Spartan Night","text":"alert-background: <<colour background>>\nalert-border: <<colour very-muted-foreground>>\nalert-highlight: <<colour very-muted-foreground>>\nalert-muted-foreground: <<colour muted-foreground>>\nbackground: #303030\nblockquote-bar: <<colour page-background>>\nbutton-background: transparent\nbutton-foreground: inherit\nbutton-border: <<colour tag-background>>\ncode-background: <<colour pre-background>>\ncode-border: <<colour pre-border>>\ncode-foreground: rgba(255, 255, 255, 0.54)\ndirty-indicator: #c80000\ndownload-background: <<colour primary>>\ndownload-foreground: <<colour foreground>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: #424242\ndropdown-border: <<colour dropdown-background>>\ndropdown-tab-background-selected: <<colour dropdown-background>>\ndropdown-tab-background: #050505\ndropzone-background: <<colour tag-background>>\nexternal-link-background-hover: transparent\nexternal-link-background-visited: transparent\nexternal-link-background: transparent\nexternal-link-foreground-hover: \nexternal-link-foreground-visited: #7c318c\nexternal-link-foreground: #9e3eb3\nforeground: rgba(255, 255, 255, 0.7)\nmessage-background: <<colour background>>\nmessage-border: <<colour very-muted-foreground>>\nmessage-foreground: rgba(255, 255, 255, 0.54)\nmodal-backdrop: <<colour page-background>>\nmodal-background: <<colour background>>\nmodal-border: <<colour very-muted-foreground>>\nmodal-footer-background: <<colour background>>\nmodal-footer-border: <<colour background>>\nmodal-header-border: <<colour very-muted-foreground>>\nmuted-foreground: rgba(255, 255, 255, 0.54)\nnotification-background: <<colour dropdown-background>>\nnotification-border: <<colour dropdown-background>>\npage-background: #212121\npre-background: #2a2a2a\npre-border: transparent\nprimary: #5656f3\nselect-tag-background: <<colour background>>\nselect-tag-foreground: <<colour foreground>>\nsidebar-button-foreground: <<colour foreground>>\nsidebar-controls-foreground-hover: #494949\nsidebar-controls-foreground: #5d5d5d\nsidebar-foreground-shadow: transparent\nsidebar-foreground: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground-hover: rgba(255, 255, 255, 0.54)\nsidebar-muted-foreground: rgba(255, 255, 255, 0.38)\nsidebar-tab-background-selected: <<colour page-background>>\nsidebar-tab-background: transparent\nsidebar-tab-border-selected: <<colour table-border>>\nsidebar-tab-border: transparent\nsidebar-tab-divider: <<colour table-border>>\nsidebar-tab-foreground-selected: rgba(255, 255, 255, 0.87)\nsidebar-tab-foreground: rgba(255, 255, 255, 0.54)\nsidebar-tiddler-link-foreground-hover: rgba(255, 255, 255, 0.7)\nsidebar-tiddler-link-foreground: rgba(255, 255, 255, 0.54)\nsite-title-foreground: rgba(255, 255, 255, 0.7)\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: <<colour background>>\ntab-background: transparent\ntab-border-selected: <<colour table-border>>\ntab-border: transparent\ntab-divider: <<colour table-border>>\ntab-foreground-selected: rgba(255, 255, 255, 0.87)\ntab-foreground: rgba(255, 255, 255, 0.54)\ntable-border: #3a3a3a\ntable-footer-background: <<colour tiddler-editor-fields-odd>>\ntable-header-background: <<colour tiddler-editor-fields-even>>\ntag-background: #ec6\ntag-foreground: <<colour button-foreground>>\ntiddler-background: <<colour background>>\ntiddler-border: rgb(55,55,55)\ntiddler-controls-foreground-hover: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground-selected: <<colour sidebar-controls-foreground-hover>>\ntiddler-controls-foreground: <<colour sidebar-controls-foreground>>\ntiddler-editor-background: transparent\ntiddler-editor-border-image: \ntiddler-editor-border: rgba(255, 255, 255, 0.08)\ntiddler-editor-fields-even: rgba(255, 255, 255, 0.1)\ntiddler-editor-fields-odd: rgba(255, 255, 255, 0.04)\ntiddler-info-background: #454545\ntiddler-info-border: #454545\ntiddler-info-tab-background: <<colour tiddler-editor-fields-odd>>\ntiddler-link-background: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: <<colour muted-foreground>>\ntiddler-title-foreground: #FFFFFF\ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \ntoolbar-info-button: \ntoolbar-edit-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-cancel-button: \ntoolbar-done-button: \nuntagged-background: <<colour very-muted-foreground>>\nvery-muted-foreground: rgba(255, 255, 255, 0.12)\n"},"$:/palettes/Twilight":{"tags":"$:/tags/Palette","author":"Thomas Elmiger","type":"application/x-tiddler-dictionary","name":"Twilight","description":"Delightful, soft darkness.","text":"alert-background: rgb(255, 255, 102)\nalert-border: rgb(232, 232, 125)\nalert-highlight: rgb(255, 51, 51)\nalert-muted-foreground: rgb(224, 82, 82)\nbackground: rgb(38, 38, 38)\nblockquote-bar: rgba(240, 196, 117, 0.7)\nbutton-background: rgb(63, 63, 63)\nbutton-border: rgb(127, 127, 127)\nbutton-foreground: rgb(179, 179, 179)\ncode-background: rgba(0,0,0,0.03)\ncode-border: rgba(0,0,0,0.08)\ncode-foreground: rgb(255, 94, 94)\ndiff-delete-background: #ffc9c9\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #aaefad\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: rgb(255, 94, 94)\ndownload-background: #19a974\ndownload-foreground: rgb(38, 38, 38)\ndragger-background: rgb(179, 179, 179)\ndragger-foreground: rgb(38, 38, 38)\ndropdown-background: rgb(38, 38, 38)\ndropdown-border: rgb(255, 255, 255)\ndropdown-tab-background: rgba(0,0,0,.1)\ndropdown-tab-background-selected: rgba(255,255,255,1)\ndropzone-background: #9eebcf\nexternal-link-background: inherit\nexternal-link-background-hover: inherit\nexternal-link-background-visited: inherit\nexternal-link-foreground: rgb(179, 179, 255)\nexternal-link-foreground-hover: inherit\nexternal-link-foreground-visited: rgb(153, 153, 255)\nforeground: rgb(179, 179, 179)\nmessage-background: <<colour tag-foreground>>\nmessage-border: #96ccff\nmessage-foreground: <<colour tag-background>>\nmodal-backdrop: rgb(179, 179, 179)\nmodal-background: rgb(38, 38, 38)\nmodal-border: rgba(0,0,0,.5)\nmodal-footer-background: #f4f4f4\nmodal-footer-border: rgba(0,0,0,.1)\nmodal-header-border: rgba(0,0,0,.2)\nmuted-foreground: rgb(255, 255, 255)\nnotification-background: <<colour tag-foreground>>\nnotification-border: <<colour tag-background>>\npage-background: rgb(26, 26, 26)\npre-background: rgb(25, 25, 25)\npre-border: rgba(0,0,0,.2)\nprimary: rgb(255, 201, 102)\nselect-tag-background: \nselect-tag-foreground: \nsidebar-button-foreground: rgb(179, 179, 179)\nsidebar-controls-foreground: rgb(153, 153, 153)\nsidebar-controls-foreground-hover: <<colour tiddler-controls-foreground-hover>>\nsidebar-foreground: rgb(141, 141, 141)\nsidebar-foreground-shadow: transparent\nsidebar-muted-foreground: rgba(0, 0, 0, 0.5)\nsidebar-muted-foreground-hover: rgb(141, 141, 141)\nsidebar-tab-background: rgba(141, 141, 141, 0.2)\nsidebar-tab-background-selected: rgb(26, 26, 26)\nsidebar-tab-border: rgb(127, 127, 127)\nsidebar-tab-border-selected: rgb(127, 127, 127)\nsidebar-tab-divider: rgb(127, 127, 127)\nsidebar-tab-foreground: rgb(179, 179, 179)\nsidebar-tab-foreground-selected: rgb(179, 179, 179)\nsidebar-tiddler-link-foreground: rgb(179, 179, 179)\nsidebar-tiddler-link-foreground-hover: rgb(115, 115, 115)\nsite-title-foreground: rgb(255, 201, 102)\nstatic-alert-foreground: rgba(0,0,0,.3)\ntab-background: rgba(0,0,0,0.125)\ntab-background-selected: rgb(38, 38, 38)\ntab-border: rgb(255, 201, 102)\ntab-border-selected: rgb(255, 201, 102)\ntab-divider: rgb(255, 201, 102)\ntab-foreground: rgb(179, 179, 179)\ntab-foreground-selected: rgb(179, 179, 179)\ntable-border: rgba(255,255,255,.3)\ntable-footer-background: rgba(0,0,0,.4)\ntable-header-background: rgba(0,0,0,.1)\ntag-background: rgb(255, 201, 102)\ntag-foreground: rgb(25, 25, 25)\ntiddler-background: rgb(38, 38, 38)\ntiddler-border: rgba(240, 196, 117, 0.7)\ntiddler-controls-foreground: rgb(128, 128, 128)\ntiddler-controls-foreground-hover: rgba(255, 255, 255, 0.8)\ntiddler-controls-foreground-selected: rgba(255, 255, 255, 0.9)\ntiddler-editor-background: rgb(33, 33, 33)\ntiddler-editor-border: rgb(63, 63, 63)\ntiddler-editor-border-image: rgb(25, 25, 25)\ntiddler-editor-fields-even: rgb(33, 33, 33)\ntiddler-editor-fields-odd: rgb(28, 28, 28)\ntiddler-info-background: rgb(43, 43, 43)\ntiddler-info-border: rgb(25, 25, 25)\ntiddler-info-tab-background: rgb(43, 43, 43)\ntiddler-link-background: rgb(38, 38, 38)\ntiddler-link-foreground: rgb(204, 204, 255)\ntiddler-subtitle-foreground: rgb(255, 255, 255)\ntiddler-title-foreground: rgb(255, 192, 76)\ntoolbar-cancel-button: \ntoolbar-close-button: \ntoolbar-delete-button: \ntoolbar-done-button: \ntoolbar-edit-button: \ntoolbar-info-button: \ntoolbar-new-button: \ntoolbar-options-button: \ntoolbar-save-button: \nuntagged-background: rgb(255, 255, 255)\nvery-muted-foreground: rgba(240, 196, 117, 0.7)\n"},"$:/palettes/Vanilla":{"name":"Vanilla","description":"Pale and unobtrusive","tags":"$:/tags/Palette","type":"application/x-tiddler-dictionary","text":"alert-background: #ffe476\nalert-border: #b99e2f\nalert-highlight: #881122\nalert-muted-foreground: #b99e2f\nbackground: #ffffff\nblockquote-bar: <<colour muted-foreground>>\nbutton-background:\nbutton-foreground:\nbutton-border:\ncode-background: #f7f7f9\ncode-border: #e1e1e8\ncode-foreground: #dd1144\ndiff-delete-background: #ffc9c9\ndiff-delete-foreground: <<colour foreground>>\ndiff-equal-background: \ndiff-equal-foreground: <<colour foreground>>\ndiff-insert-background: #aaefad\ndiff-insert-foreground: <<colour foreground>>\ndiff-invisible-background: \ndiff-invisible-foreground: <<colour muted-foreground>>\ndirty-indicator: #ff0000\ndownload-background: #34c734\ndownload-foreground: <<colour background>>\ndragger-background: <<colour foreground>>\ndragger-foreground: <<colour background>>\ndropdown-background: <<colour background>>\ndropdown-border: <<colour muted-foreground>>\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: <<colour foreground>>\nmodal-background: <<colour background>>\nmodal-border: #999999\nmodal-footer-background: #f5f5f5\nmodal-footer-border: #dddddd\nmodal-header-border: #eeeeee\nmuted-foreground: #bbb\nnotification-background: #ffffdd\nnotification-border: #999999\npage-background: #f4f4f4\npre-background: #f5f5f5\npre-border: #cccccc\nprimary: #5778d8\nselection-background:\nselection-foreground:\nselect-tag-background:\nselect-tag-foreground:\nsidebar-button-foreground: <<colour foreground>>\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: <<colour tab-border-selected>>\nsidebar-tab-border: <<colour tab-border>>\nsidebar-tab-divider: #e4e4e4\nsidebar-tab-foreground-selected:\nsidebar-tab-foreground: <<colour tab-foreground>>\nsidebar-tiddler-link-foreground-hover: #444444\nsidebar-tiddler-link-foreground: #999999\nsite-title-foreground: <<colour tiddler-title-foreground>>\nstatic-alert-foreground: #aaaaaa\ntab-background-selected: #ffffff\ntab-background: #d8d8d8\ntab-border-selected: #d8d8d8\ntab-border: #cccccc\ntab-divider: #d8d8d8\ntab-foreground-selected: <<colour tab-foreground>>\ntab-foreground: #666666\ntable-border: #dddddd\ntable-footer-background: #a8a8a8\ntable-header-background: #f0f0f0\ntag-background: #ec6\ntag-foreground: #ffffff\ntiddler-background: <<colour background>>\ntiddler-border: <<colour background>>\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: <<colour background>>\ntiddler-link-foreground: <<colour primary>>\ntiddler-subtitle-foreground: #c0c0c0\ntiddler-title-foreground: #182955\ntoolbar-new-button:\ntoolbar-options-button:\ntoolbar-save-button:\ntoolbar-info-button:\ntoolbar-edit-button:\ntoolbar-close-button:\ntoolbar-delete-button:\ntoolbar-cancel-button:\ntoolbar-done-button:\nuntagged-background: #999999\nvery-muted-foreground: #888888\nwikilist-background: #e5e5e5\nwikilist-item: #fff\nwikilist-info: #000\nwikilist-title: #666\nwikilist-title-svg: <<colour wikilist-title>>\nwikilist-url: #aaa\nwikilist-button-open: #4fb82b\nwikilist-button-open-hover: green\nwikilist-button-reveal: #5778d8\nwikilist-button-reveal-hover: blue\nwikilist-button-remove: #d85778\nwikilist-button-remove-hover: red\nwikilist-toolbar-background: #d3d3d3\nwikilist-toolbar-foreground: #888\nwikilist-droplink-dragover: rgba(255,192,192,0.5)\nwikilist-button-background: #acacac\nwikilist-button-foreground: #000\n"},"$:/core/readme":{"text":"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"},"$:/library/sjcl.js/license":{"type":"text/plain","text":"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 \"AS\nIS\" 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"},"$:/core/templates/MOTW.html":{"text":"\\rules only filteredtranscludeinline transcludeinline entity\n<!-- The following comment is called a MOTW comment and is necessary for the TiddlyIE Internet Explorer extension -->\n<!-- saved from url=(0021)https://tiddlywiki.com --> "},"$:/core/templates/alltiddlers.template.html":{"type":"text/vnd.tiddlywiki-html","text":"<!-- This template is provided for backwards compatibility with older versions of TiddlyWiki -->\n\n<$set name=\"exportFilter\" value=\"[!is[system]sort[title]]\">\n\n{{$:/core/templates/exporters/StaticRiver}}\n\n</$set>\n"},"$:/core/templates/canonical-uri-external-image":{"text":"<!--\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-->\n./images/<$view field=\"title\" format=\"doubleurlencoded\"/>"},"$:/core/templates/canonical-uri-external-raw":{"text":"<!--\n\nThis template is used to assign the ''_canonical_uri'' field to external raw files that are stored in the same directory\n\n-->\n<$view field=\"title\" format=\"doubleurlencoded\"/>"},"$:/core/templates/canonical-uri-external-text":{"text":"<!--\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-->\n./text/<$view field=\"title\" format=\"doubleurlencoded\"/>.tid"},"$:/core/templates/css-tiddler":{"text":"<!--\n\nThis template is used for saving CSS tiddlers as a style tag with data attributes representing the tiddler fields.\n\n-->`<style`<$fields template=' data-tiddler-$name$=\"$encoded_value$\"'></$fields>` type=\"text/css\">`<$view field=\"text\" format=\"text\" />`</style>`"},"$:/core/templates/exporters/CsvFile":{"tags":"$:/tags/Exporter","description":"{{$:/language/Exporters/CsvFile}}","extension":".csv","text":"<$macrocall $name=\"csvtiddlers\" filter=<<exportFilter>> format=\"quoted-comma-sep\" $output=\"text/raw\"/>\n"},"$:/core/templates/exporters/JsonFile":{"tags":"$:/tags/Exporter","description":"{{$:/language/Exporters/JsonFile}}","extension":".json","text":"<$macrocall $name=\"jsontiddlers\" filter=<<exportFilter>> $output=\"text/raw\"/>\n"},"$:/core/templates/exporters/StaticRiver":{"tags":"$:/tags/Exporter","description":"{{$:/language/Exporters/StaticRiver}}","extension":".html","text":"\\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<!doctype html>\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"{{$:/core/templates/version}}\" />\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>{{$:/core/wiki/title}}</title>\n<div id=\"styleArea\">\n{{$:/boot/boot.css||$:/core/templates/css-tiddler}}\n</div>\n<style type=\"text/css\">\n{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}\n</style>\n</head>\n<body class=\"tc-body\">\n{{$:/StaticBanner||$:/core/templates/html-tiddler}}\n<section class=\"tc-story-river tc-static-story-river\">\n{{$:/core/templates/exporters/StaticRiver/Content||$:/core/templates/html-tiddler}}\n</section>\n</body>\n</html>\n"},"$:/core/templates/exporters/StaticRiver/Content":{"text":"\\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<<renderContent>>\n"},"$:/core/templates/exporters/TidFile":{"tags":"$:/tags/Exporter","description":"{{$:/language/Exporters/TidFile}}","extension":".tid","condition":"[<count>compare:lte[1]]","text":"\\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<<renderContent>>"},"$:/core/save/all-external-js":{"text":"\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[prefix[$:/temp/]] -[prefix[$:/HistoryList]] -[status[pending]plugin-type[import]] -[[$:/core]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$\n\\end\n{{$:/core/templates/tiddlywiki5-external-js.html}}\n"},"$:/core/templates/tiddlywiki5.js":{"text":"\\rules only filteredtranscludeinline transcludeinline codeinline\n\n/*\n{{ $:/core/copyright.txt ||$:/core/templates/plain-text-tiddler}}\n`*/\n`<!--~~ Library modules ~~-->\n{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/plain-text-tiddler}}}\n<!--~~ Boot prefix ~~-->\n{{ $:/boot/bootprefix.js ||$:/core/templates/plain-text-tiddler}}\n<!--~~ Core plugin ~~-->\n{{$:/core/templates/tiddlywiki5.js/tiddlers}}\n<!--~~ Boot kernel ~~-->\n{{ $:/boot/boot.js ||$:/core/templates/plain-text-tiddler}}\n"},"$:/core/templates/tiddlywiki5.js/tiddlers":{"text":"`\n$tw.preloadTiddlerArray(`<$text text=<<jsontiddlers \"[[$:/core]]\">>/>`);\n`\n"},"$:/core/templates/tiddlywiki5-external-js.html":{"text":"\\rules only filteredtranscludeinline transcludeinline\n<!doctype html>\n{{$:/core/templates/MOTW.html}}<html lang=\"`<$text text={{{ [{$:/language}get[name]] }}}/>`\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<!--~~ Raw markup for the top of the head section ~~-->\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}}\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\"/>\n<meta name=\"application-name\" content=\"TiddlyWiki\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"{{$:/core/templates/version}}\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\" />\n<meta name=\"copyright\" content=\"{{$:/core/copyright.txt}}\" />\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>{{$:/core/wiki/title}}</title>\n<!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~-->\n\n<!--~~ Raw markup ~~-->\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</head>\n<body class=\"tc-body\">\n<!--~~ Raw markup for the top of the body section ~~-->\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}}\n<!--~~ Static styles ~~-->\n<div id=\"styleArea\">\n{{$:/boot/boot.css||$:/core/templates/css-tiddler}}\n</div>\n<!--~~ Static content for Google and browsers without JavaScript ~~-->\n<noscript>\n<div id=\"splashArea\">\n{{$:/core/templates/static.area}}\n</div>\n</noscript>\n<!--~~ Ordinary tiddlers ~~-->\n{{$:/core/templates/store.area.template.html}}\n<!--~~ Raw markup for the bottom of the body section ~~-->\n{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}}\n</body>\n<script src=\"%24%3A%2Fcore%2Ftemplates%2Ftiddlywiki5.js\" onerror=\"alert('Error: Cannot load tiddlywiki.js');\"></script>\n</html>\n"},"$:/core/templates/html-div-skinny-tiddler":{"text":"<!--\n\nThis template is a variant of $:/core/templates/html-div-tiddler used for saving skinny tiddlers (with no text field)\n\n-->`<div`<$fields template=' $name$=\"$encoded_value$\"'></$fields>`>\n<pre></pre>\n</div>`\n"},"$:/core/templates/html-div-tiddler":{"text":"<!--\n\nThis template is used for saving tiddlers as an HTML DIV tag with attributes representing the tiddler fields.\n\n-->`<div`<$fields template=' $name$=\"$encoded_value$\"'></$fields>`>\n<pre>`<$view field=\"text\" format=\"htmltextencoded\" />`</pre>\n</div>`\n"},"$:/core/templates/html-tiddler":{"text":"<!--\n\nThis template is used for saving tiddlers as raw HTML\n\n--><$view field=\"text\" format=\"htmlwikified\" />"},"$:/core/templates/javascript-tiddler":{"text":"<!--\n\nThis template is used for saving JavaScript tiddlers as a script tag with data attributes representing the tiddler fields.\n\n-->`<script`<$fields template=' data-tiddler-$name$=\"$encoded_value$\"'></$fields>` type=\"text/javascript\">`<$view field=\"text\" format=\"text\" />`</script>`"},"$:/core/templates/json-tiddler":{"text":"<!--\n\nThis template is used for saving tiddlers as raw JSON\n\n--><$text text=<<jsontiddler>>/>"},"$:/core/templates/module-tiddler":{"text":"<!--\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-->`<script`<$fields template=' data-tiddler-$name$=\"$encoded_value$\"'></$fields>` type=\"text/javascript\" data-module=\"yes\">$tw.modules.define(\"`<$view field=\"title\" format=\"jsencoded\" />`\",\"`<$view field=\"module-type\" format=\"jsencoded\" />`\",function(module,exports,require) {`<$view field=\"text\" format=\"text\" />`});\n</script>`"},"$:/core/templates/plain-text-tiddler":{"text":"<$view field=\"text\" format=\"text\" />"},"$:/core/templates/raw-static-tiddler":{"text":"<!--\n\nThis template is used for saving tiddlers as static HTML\n\n--><$view field=\"text\" format=\"plainwikified\" />"},"$:/core/save/all":{"text":"\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[prefix[$:/temp/]] -[prefix[$:/HistoryList]] -[status[pending]plugin-type[import]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$\n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n"},"$:/core/save/empty":{"text":"\\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"},"$:/core/save/lazy-all":{"text":"\\define saveTiddlerFilter()\n[is[system]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] \n\\end\n\\define skinnySaveTiddlerFilter()\n[!is[system]]\n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n"},"$:/core/save/lazy-images":{"text":"\\define saveTiddlerFilter()\n[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[!is[system]is[image]] +[sort[title]] \n\\end\n\\define skinnySaveTiddlerFilter()\n[!is[system]is[image]]\n\\end\n{{$:/core/templates/tiddlywiki5.html}}\n"},"$:/core/templates/server/static.sidebar.wikitext":{"text":"\\whitespace trim\n<div class=\"tc-sidebar-scrollable\" style=\"overflow: auto;\">\n<div class=\"tc-sidebar-header\">\n<h1 class=\"tc-site-title\">\n<$transclude tiddler=\"$:/SiteTitle\"/>\n</h1>\n<div class=\"tc-site-subtitle\">\n<$transclude tiddler=\"$:/SiteSubtitle\"/>\n</div>\n<h2>\n</h2>\n<div class=\"tc-sidebar-lists\">\n<$list filter={{$:/DefaultTiddlers}}>\n<div class=\"tc-menu-list-subitem\">\n<$link><$text text=<<currentTiddler>>/></$link>\n</div>\n</$list>\n</div>\n<!-- Currently disabled the recent list as it is unweildy when the responsive narrow view kicks in\n<h2>\n{{$:/language/SideBar/Recent/Caption}}\n</h2>\n<div class=\"tc-sidebar-lists\">\n<$macrocall $name=\"timeline\" format={{$:/language/RecentChanges/DateFormat}}/>\n</div>\n</div>\n</div>\n-->\n"},"$:/core/templates/server/static.tiddler.html":{"text":"\\whitespace trim\n\\define tv-wikilink-template() $uri_encoded$\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content={{$:/core/templates/version}} />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<link rel=\"stylesheet\" href=\"%24%3A%2Fcore%2Ftemplates%2Fstatic.template.css\">\n<title><$view field=\"caption\" format=\"plainwikified\"><$view field=\"title\"/></$view>: <$view tiddler=\"$:/core/wiki/title\" format=\"plainwikified\"/></title>\n</head>\n<body class=\"tc-body\">\n<$transclude tiddler=\"$:/core/templates/server/static.sidebar.wikitext\" mode=\"inline\"/>\n<section class=\"tc-story-river\">\n<div class=\"tc-tiddler-frame\">\n<$transclude tiddler=\"$:/core/templates/server/static.tiddler.wikitext\" mode=\"inline\"/>\n</div>\n</section>\n</body>\n</html>"},"$:/core/templates/server/static.tiddler.wikitext":{"text":"\\whitespace trim\n<div class=\"tc-tiddler-title\">\n<div class=\"tc-titlebar\">\n<h2><$text text=<<currentTiddler>>/></h2>\n</div>\n</div>\n<div class=\"tc-subtitle\">\n<$link to={{!!modifier}}>\n<$view field=\"modifier\"/>\n</$link> <$view field=\"modified\" format=\"date\" template={{$:/language/Tiddler/DateFormat}}/>\n</div>\n<div class=\"tc-tags-wrapper\">\n<$list filter=\"[all[current]tags[]sort[title]]\">\n<a href={{{ [<currentTiddler>encodeuricomponent[]] }}}>\n<$macrocall $name=\"tag-pill\" tag=<<currentTiddler>>/>\n</a>\n</$list>\n</div>\n<div class=\"tc-tiddler-body\">\n<$transclude mode=\"block\"/>\n</div>\n"},"$:/core/templates/single.tiddler.window":{"text":"\\whitespace trim\n\\define containerClasses()\ntc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$\n\\end\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n<$vars\n\ttv-config-toolbar-icons={{$:/config/Toolbar/Icons}}\n\ttv-config-toolbar-text={{$:/config/Toolbar/Text}}\n\ttv-config-toolbar-class={{$:/config/Toolbar/ButtonClass}}\n\ttv-show-missing-links={{$:/config/MissingLinks}}\n\tstoryviewTitle={{$:/view}}\n\tlanguageTitle={{{ [{$:/language}get[name]] }}}>\n\n<div class=<<containerClasses>>>\n\n<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\">\n\n<$transclude mode=\"block\"/>\n\n</$navigator>\n\n</div>\n\n</$vars>\n"},"$:/core/templates/split-recipe":{"text":"<$list filter=\"[!is[system]]\">\ntiddler: <$view field=\"title\" format=\"urlencoded\"/>.tid\n</$list>\n"},"$:/core/templates/static-tiddler":{"text":"<a name=<<currentTiddler>>>\n<$transclude tiddler=\"$:/core/ui/ViewTemplate\"/>\n</a>"},"$:/core/templates/static.area":{"text":"<$reveal type=\"nomatch\" state=\"$:/isEncrypted\" text=\"yes\">\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</$reveal>\n<$reveal type=\"match\" state=\"$:/isEncrypted\" text=\"yes\">\nThis file contains an encrypted ~TiddlyWiki. Enable ~JavaScript and enter the decryption password when prompted.\n</$reveal>\n<!-- ensure splash screen isn't shown when JS is disabled -->\n`<style>\n.tc-remove-when-wiki-loaded {display: none;}\n</style>`\n"},"$:/core/templates/static.content":{"text":"<!-- For Google, and people without JavaScript-->\nThis [[TiddlyWiki|https://tiddlywiki.com]] contains the following tiddlers:\n\n<ul>\n<$list filter=<<saveTiddlerFilter>>>\n<li><$view field=\"title\" format=\"text\"></$view></li>\n</$list>\n</ul>\n"},"$:/core/templates/static.template.css":{"text":"{{$:/boot/boot.css||$:/core/templates/plain-text-tiddler}}\n\n{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}\n"},"$:/core/templates/static.template.html":{"type":"text/vnd.tiddlywiki-html","text":"\\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<!doctype html>\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"{{$:/core/templates/version}}\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>{{$:/core/wiki/title}}</title>\n<div id=\"styleArea\">\n{{$:/boot/boot.css||$:/core/templates/css-tiddler}}\n</div>\n<style type=\"text/css\">\n{{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}}\n</style>\n</head>\n<body class=\"tc-body\">\n{{$:/StaticBanner||$:/core/templates/html-tiddler}}\n{{$:/core/ui/PageTemplate||$:/core/templates/html-tiddler}}\n</body>\n</html>\n"},"$:/core/templates/static.tiddler.html":{"text":"\\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`<!doctype html>\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"`{{$:/core/templates/version}}`\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\">\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<link rel=\"stylesheet\" href=\"static.css\">\n<title>`<$view field=\"caption\"><$view field=\"title\"/></$view>: {{$:/core/wiki/title}}`</title>\n</head>\n<body class=\"tc-body\">\n`{{$:/StaticBanner||$:/core/templates/html-tiddler}}`\n<section class=\"tc-story-river tc-static-story-river\">\n`<$view tiddler=\"$:/core/ui/ViewTemplate\" format=\"htmlwikified\"/>`\n</section>\n</body>\n</html>\n`\n"},"$:/core/templates/store.area.template.html":{"text":"<$reveal type=\"nomatch\" state=\"$:/isEncrypted\" text=\"yes\">\n`<div id=\"storeArea\" style=\"display:none;\">`\n<$list filter=<<saveTiddlerFilter>> template=\"$:/core/templates/html-div-tiddler\"/>\n<$list filter={{{ [<skinnySaveTiddlerFilter>] }}} template=\"$:/core/templates/html-div-skinny-tiddler\"/>\n`</div>`\n</$reveal>\n<$reveal type=\"match\" state=\"$:/isEncrypted\" text=\"yes\">\n`<!--~~ Encrypted tiddlers ~~-->`\n`<pre id=\"encryptedStoreArea\" type=\"text/plain\" style=\"display:none;\">`\n<$encrypt filter=<<saveTiddlerFilter>>/>\n`</pre>`\n</$reveal>"},"$:/core/templates/tid-tiddler":{"text":"<!--\n\nThis template is used for saving tiddlers in TiddlyWeb *.tid format\n\n--><$fields exclude='text bag' template='$name$: $value$\n'></$fields>`\n`<$view field=\"text\" format=\"text\" />"},"$:/core/templates/tiddler-metadata":{"text":"<!--\n\nThis template is used for saving tiddler metadata *.meta files\n\n--><$fields exclude='text bag' template='$name$: $value$\n'></$fields>"},"$:/core/templates/tiddlywiki5.html":{"text":"<$set name=\"saveTiddlerAndShadowsFilter\" filter=\"[subfilter<saveTiddlerFilter>] [subfilter<saveTiddlerFilter>plugintiddlers[]]\">\n`<!doctype html>\n`{{$:/core/templates/MOTW.html}}`<html lang=\"`<$text text={{{ [{$:/language}get[name]] }}}/>`\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\" />\n<!--~~ Raw markup for the top of the head section ~~-->\n`{{{ [<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/TopHead]] ||$:/core/templates/raw-static-tiddler}}}`\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\"/>\n<meta name=\"application-name\" content=\"TiddlyWiki\" />\n<meta name=\"generator\" content=\"TiddlyWiki\" />\n<meta name=\"tiddlywiki-version\" content=\"`{{$:/core/templates/version}}`\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />\n<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\" />\n<meta name=\"mobile-web-app-capable\" content=\"yes\"/>\n<meta name=\"format-detection\" content=\"telephone=no\" />\n<meta name=\"copyright\" content=\"`{{$:/core/copyright.txt}}`\" />\n<link id=\"faviconLink\" rel=\"shortcut icon\" href=\"favicon.ico\">\n<title>`{{$:/core/wiki/title}}`</title>\n<!--~~ This is a Tiddlywiki file. The points of interest in the file are marked with this pattern ~~-->\n\n<!--~~ Raw markup ~~-->\n`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/core/wiki/rawmarkup]] ||$:/core/templates/plain-text-tiddler}}}\n{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkup]] ||$:/core/templates/plain-text-tiddler}}}\n{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified]] ||$:/core/templates/raw-static-tiddler}}}`\n</head>\n<body class=\"tc-body\">\n<!--~~ Raw markup for the top of the body section ~~-->\n`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/TopBody]] ||$:/core/templates/raw-static-tiddler}}}`\n<!--~~ Static styles ~~-->\n<div id=\"styleArea\">\n`{{$:/boot/boot.css||$:/core/templates/css-tiddler}}`\n</div>\n<!--~~ Static content for Google and browsers without JavaScript ~~-->\n<noscript>\n<div id=\"splashArea\">\n`{{$:/core/templates/static.area}}`\n</div>\n</noscript>\n<!--~~ Ordinary tiddlers ~~-->\n`{{$:/core/templates/store.area.template.html}}`\n<!--~~ Library modules ~~-->\n<div id=\"libraryModules\" style=\"display:none;\">\n`{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/javascript-tiddler}}}`\n</div>\n<!--~~ Boot kernel prologue ~~-->\n<div id=\"bootKernelPrefix\" style=\"display:none;\">\n`{{ $:/boot/bootprefix.js ||$:/core/templates/javascript-tiddler}}`\n</div>\n<!--~~ Boot kernel ~~-->\n<div id=\"bootKernel\" style=\"display:none;\">\n`{{ $:/boot/boot.js ||$:/core/templates/javascript-tiddler}}`\n</div>\n<!--~~ Raw markup for the bottom of the body section ~~-->\n`{{{ [enlist<saveTiddlerAndShadowsFilter>tag[$:/tags/RawMarkupWikified/BottomBody]] ||$:/core/templates/raw-static-tiddler}}}`\n</body>\n</html>`\n"},"$:/core/templates/version":{"text":"<<version>>"},"$:/core/templates/wikified-tiddler":{"text":"<$transclude />"},"$:/core/ui/AboveStory/tw2-plugin-check":{"tags":"$:/tags/AboveStory","text":"\\define lingo-base() $:/language/AboveStory/ClassicPlugin/\n<$list filter=\"[all[system+tiddlers]tag[systemConfig]limit[1]]\">\n\n<div class=\"tc-message-box\">\n\n<<lingo Warning>>\n\n<ul>\n\n<$list filter=\"[all[system+tiddlers]tag[systemConfig]]\">\n\n<li>\n\n<$link><$view field=\"title\"/></$link>\n\n</li>\n\n</$list>\n\n</ul>\n\n</div>\n\n</$list>\n"},"$:/core/ui/Actions/new-image":{"tags":"$:/tags/Actions","description":"create a new image tiddler","text":"\\define get-type()\nimage/$(imageType)$\n\\end\n\\define get-tags() $(textFieldTags)$ $(tagsFieldTags)$\n<$vars imageType={{$:/config/NewImageType}} textFieldTags={{$:/config/NewJournal/Tags}} tagsFieldTags={{$:/config/NewJournal/Tags!!tags}}>\n<$action-sendmessage $message=\"tm-new-tiddler\" type=<<get-type>> tags=<<get-tags>>/>\n</$vars>\n"},"$:/core/ui/Actions/new-journal":{"tags":"$:/tags/Actions","description":"create a new journal tiddler","text":"\\define get-tags() $(textFieldTags)$ $(tagsFieldTags)$\n<$vars journalTitleTemplate={{$:/config/NewJournal/Title}} textFieldTags={{$:/config/NewJournal/Tags}} tagsFieldTags={{$:/config/NewJournal/Tags!!tags}} journalText={{$:/config/NewJournal/Text}}>\n<$wikify name=\"journalTitle\" text=\"\"\"<$macrocall $name=\"now\" format=<<journalTitleTemplate>>/>\"\"\">\n<$reveal type=\"nomatch\" state=<<journalTitle>> text=\"\">\n<$action-sendmessage $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<get-tags>> text={{{ [<journalTitle>get[]] }}}/>\n</$reveal>\n<$reveal type=\"match\" state=<<journalTitle>> text=\"\">\n<$action-sendmessage $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<get-tags>> text=<<journalText>>/>\n</$reveal>\n</$wikify>\n</$vars>\n"},"$:/core/ui/Actions/new-tiddler":{"tags":"$:/tags/Actions","description":"create a new empty tiddler","text":"\\define get-tags() $(textFieldTags)$ $(tagsFieldTags)$\n<$vars textFieldTags={{$:/config/NewTiddler/Tags}} tagsFieldTags={{$:/config/NewTiddler/Tags!!tags}}>\n<$action-sendmessage $message=\"tm-new-tiddler\" tags=<<get-tags>>/>\n</$vars>\n"},"$:/core/ui/AdvancedSearch/Filter":{"tags":"$:/tags/AdvancedSearch","caption":"{{$:/language/Search/Filter/Caption}}","text":"\\define lingo-base() $:/language/Search/\n\\define set-next-input-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab--1498284803\" tag=\"$:/tags/AdvancedSearch\" beforeafter=\"$beforeafter$\" defaultState=\"$:/core/ui/AdvancedSearch/System\" actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define cancel-search-actions() <$list filter=\"[{$:/temp/advancedsearch/input}!match{$:/temp/advancedsearch}]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\" />\"\"\"><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text={{$:/temp/advancedsearch}}/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/></$list>\n\n\\define input-accept-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\"\"\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\n\n\\define input-accept-variant-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\"\"\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\n\n<<lingo Filter/Hint>>\n\n<div class=\"tc-search tc-advanced-search\">\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">>>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=\"$:/temp/advancedsearch/input\" storeTitle=\"$:/temp/advancedsearch\" \n\t\trefreshTitle=\"$:/temp/advancedsearch/refresh\" selectionStateTitle=\"$:/temp/advancedsearch/selected-item\" type=\"search\" \n\t\ttag=\"input\" focus={{$:/config/Search/AutoFocus}} configTiddlerFilter=\"[[$:/temp/advancedsearch]]\" firstSearchFilterField=\"text\" \n\t\tinputAcceptActions=<<input-accept-actions>> inputAcceptVariantActions=<<input-accept-variant-actions>> \n\t\tinputCancelActions=<<cancel-search-actions>>/>\n</$keyboard>\n</$keyboard>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch/FilterButton]!has[draft.of]]\"><$transclude/></$list>\n</div>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$set name=\"resultCount\" value=\"\"\"<$count filter={{$:/temp/advancedsearch}}/>\"\"\">\n<div class=\"tc-search-results\">\n<<lingo Filter/Matches>>\n<$list filter={{$:/temp/advancedsearch}}>\n<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}>\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</span>\n</$list>\n</div>\n</$set>\n</$reveal>\n"},"$:/core/ui/AdvancedSearch/Filter/FilterButtons/clear":{"tags":"$:/tags/AdvancedSearch/FilterButton","text":"<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<<cancel-search-actions>>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\".tc-advanced-search input\"\"\" />\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n"},"$:/core/ui/AdvancedSearch/Filter/FilterButtons/delete":{"tags":"$:/tags/AdvancedSearch/FilterButton","text":"<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button popup=<<qualify \"$:/state/filterDeleteDropdown\">> class=\"tc-btn-invisible\">\n{{$:/core/images/delete-button}}\n</$button>\n</$reveal>\n\n<$reveal state=<<qualify \"$:/state/filterDeleteDropdown\">> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n<div class=\"tc-block-dropdown-wrapper\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<div class=\"tc-dropdown-item-plain\">\n<$set name=\"resultCount\" value=\"\"\"<$count filter={{$:/temp/advancedsearch}}/>\"\"\">\nAre you sure you wish to delete <<resultCount>> tiddler(s)?\n</$set>\n</div>\n<div class=\"tc-dropdown-item-plain\">\n<$button class=\"tc-btn\">\n<$action-deletetiddler $filter={{$:/temp/advancedsearch}}/>\nDelete these tiddlers\n</$button>\n</div>\n</div>\n</div>\n</$reveal>\n"},"$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown":{"tags":"$:/tags/AdvancedSearch/FilterButton","text":"<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/filterDropdown\">> class=\"tc-btn-invisible\">\n{{$:/core/images/down-arrow}}\n</$button>\n</span>\n\n<$reveal state=<<qualify \"$:/state/filterDropdown\">> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$linkcatcher actions=\"\"\"<$action-setfield $tiddler=\"$:/temp/advancedsearch\" text=<<navigateTo>>/><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text=<<navigateTo>>/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/><$action-sendmessage $message=\"tm-focus-selector\" $param='.tc-advanced-search input' />\"\"\">\n<div class=\"tc-block-dropdown-wrapper\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Filter]]\"><$link to={{!!filter}}><$transclude field=\"description\"/></$link>\n</$list>\n</div>\n</div>\n</$linkcatcher>\n</$set>\n</$reveal>\n"},"$:/core/ui/AdvancedSearch/Filter/FilterButtons/export":{"tags":"$:/tags/AdvancedSearch/FilterButton","text":"<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$macrocall $name=\"exportButton\" exportFilter={{$:/temp/advancedsearch}} lingoBase=\"$:/language/Buttons/ExportTiddlers/\"/>\n</$reveal>\n"},"$:/core/ui/AdvancedSearch/Shadows":{"tags":"$:/tags/AdvancedSearch","caption":"{{$:/language/Search/Shadows/Caption}}","first-search-filter":"[all[shadows]search<userInput>sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]]","text":"\\define lingo-base() $:/language/Search/\n\n\\define set-next-input-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab--1498284803\" tag=\"$:/tags/AdvancedSearch\" beforeafter=\"$beforeafter$\" defaultState=\"$:/core/ui/AdvancedSearch/System\" actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define cancel-search-actions() <$list filter=\"[{$:/temp/advancedsearch}!match{$:/temp/advancedsearch/input}]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\" />\"\"\"><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text={{$:/temp/advancedsearch}}/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/></$list><$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\".tc-advanced-search input\"\"\"/>\n\n\\define input-accept-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\"\"\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\n\n\\define input-accept-variant-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\"\"\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\n\n<<lingo Shadows/Hint>>\n\n<div class=\"tc-search\">\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">>>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=\"$:/temp/advancedsearch/input\" storeTitle=\"$:/temp/advancedsearch\"\n\t\trefreshTitle=\"$:/temp/advancedsearch/refresh\" selectionStateTitle=\"$:/temp/advancedsearch/selected-item\" type=\"search\"\n\t\ttag=\"input\" focus={{$:/config/Search/AutoFocus}} configTiddlerFilter=\"[[$:/core/ui/AdvancedSearch/Shadows]]\"\n\t\tinputCancelActions=<<cancel-search-actions>> inputAcceptActions=<<input-accept-actions>> \n\t\tinputAcceptVariantActions=<<input-accept-variant-actions>> filterMinLength={{$:/config/Search/MinLength}}/>\n</$keyboard>\n</$keyboard>\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<<cancel-search-actions>>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[all[shadows]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]]\"/>\"\"\">\n\n<div class=\"tc-search-results\">\n\n<<lingo Shadows/Matches>>\n\n<$list filter=\"[all[shadows]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]]\">\n<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}>\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</span>\n</$list>\n\n</div>\n\n</$set>\n\n</$list>\n\n</$reveal>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"match\" text=\"\">\n\n</$reveal>\n"},"$:/core/ui/AdvancedSearch/Standard":{"tags":"$:/tags/AdvancedSearch","caption":"{{$:/language/Search/Standard/Caption}}","text":"\\define lingo-base() $:/language/Search/\n\\define set-next-input-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab--1498284803\" tag=\"$:/tags/AdvancedSearch\" beforeafter=\"$beforeafter$\" defaultState=\"$:/core/ui/AdvancedSearch/System\" actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define next-search-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab/search-results/advancedsearch\" tag=\"$:/tags/SearchResults\" beforeafter=\"$beforeafter$\" defaultState={{$:/config/SearchResults/Default}} actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/standard/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define cancel-search-actions() <$list filter=\"[{$:/temp/advancedsearch}!match{$:/temp/advancedsearch/input}]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\" />\"\"\"><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text={{$:/temp/advancedsearch}}/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/></$list><$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\".tc-advanced-search input\"\"\"/>\n\n\\define input-accept-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\"\"\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\n\n\\define input-accept-variant-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\"\"\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\n\n<<lingo Standard/Hint>>\n\n<div class=\"tc-search\">\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">>>\n<$keyboard key=\"shift-alt-Right\" actions=<<next-search-tab>>>\n<$keyboard key=\"shift-alt-Left\" actions=<<next-search-tab \"before\">>>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=\"$:/temp/advancedsearch/input\" storeTitle=\"$:/temp/advancedsearch\"\n\t\trefreshTitle=\"$:/temp/advancedsearch/refresh\" selectionStateTitle=\"$:/temp/advancedsearch/selected-item\" type=\"search\"\n\t\ttag=\"input\" focus={{$:/config/Search/AutoFocus}} inputCancelActions=<<cancel-search-actions>> \n\t\tinputAcceptActions=<<input-accept-actions>> inputAcceptVariantActions=<<input-accept-variant-actions>> \n\t\tconfigTiddlerFilter=\"[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]\"\n\t\tfilterMinLength={{$:/config/Search/MinLength}}/>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<<cancel-search-actions>>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n<$vars userInput={{{ [[$:/temp/advancedsearch]get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}} searchListState=\"$:/temp/advancedsearch/selected-item\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\" emptyMessage=\"\"\"\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\">\n<$transclude/>\n</$list>\n\"\"\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\" default={{$:/config/SearchResults/Default}} actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/standard/currentTab\" text=<<currentTab>>/>\"\"\" explicitState=\"$:/state/tab/search-results/advancedsearch\" />\n</$list>\n</$vars>\n</$list>\n</$reveal>\n"},"$:/core/ui/AdvancedSearch/System":{"tags":"$:/tags/AdvancedSearch","caption":"{{$:/language/Search/System/Caption}}","first-search-filter":"[is[system]search<userInput>sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]","text":"\\define lingo-base() $:/language/Search/\n\\define set-next-input-tab(beforeafter:\"after\",stateTitle,tag,defaultState,currentTabTiddler) <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab--1498284803\" tag=\"$:/tags/AdvancedSearch\" beforeafter=\"$beforeafter$\" defaultState=\"$:/core/ui/AdvancedSearch/System\" actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define cancel-search-actions() <$list filter=\"[{$:/temp/advancedsearch}!match{$:/temp/advancedsearch/input}]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[[$:/temp/advancedsearch]] [[$:/temp/advancedsearch/input]] [[$:/temp/advancedsearch/selected-item]]\" />\"\"\"><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text={{$:/temp/advancedsearch}}/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/></$list><$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\".tc-advanced-search input\"\"\"/>\n\n\\define input-accept-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\"\"\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\n\n\\define input-accept-variant-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\"\"\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\n\n<<lingo System/Hint>>\n\n<div class=\"tc-search\">\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">>>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=\"$:/temp/advancedsearch/input\" storeTitle=\"$:/temp/advancedsearch\"\n\t\trefreshTitle=\"$:/temp/advancedsearch/refresh\" selectionStateTitle=\"$:/temp/advancedsearch/selected-item\"\n\t\ttype=\"search\" tag=\"input\" focus={{$:/config/Search/AutoFocus}} configTiddlerFilter=\"[[$:/core/ui/AdvancedSearch/System]]\"\n\t\tinputCancelActions=<<cancel-search-actions>> inputAcceptActions=<<input-accept-actions>> \n\t\tinputAcceptVariantActions=<<input-accept-variant-actions>> filterMinLength={{$:/config/Search/MinLength}}/>\n</$keyboard>\n</$keyboard>\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<<cancel-search-actions>>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"nomatch\" text=\"\">\n\n<$list filter=\"[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[is[system]search{$:/temp/advancedsearch}] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]\"/>\"\"\">\n\n<div class=\"tc-search-results\">\n\n<<lingo System/Matches>>\n\n<$list filter=\"[is[system]search{$:/temp/advancedsearch}sort[title]limit[250]] -[[$:/temp/advancedsearch]] -[[$:/temp/advancedsearch/input]] -[[$:/temp/advancedsearch/selected-item]]\">\n<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[[$:/temp/advancedsearch/selected-item]get[text]] +[then[]else[tc-list-item-selected]] }}}>\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</span>\n</$list>\n\n</div>\n\n</$set>\n\n</$list>\n\n</$reveal>\n\n<$reveal state=\"$:/temp/advancedsearch\" type=\"match\" text=\"\">\n\n</$reveal>\n"},"$:/AdvancedSearch":{"icon":"$:/core/images/advanced-search-button","color":"#bbb","text":"<div class=\"tc-advanced-search\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch]!has[draft.of]]\" default=\"$:/core/ui/AdvancedSearch/System\" actions=\"\"\"<$action-setfield $tiddler=\"$:/state/advancedsearch/currentTab\" text=<<currentTab>>/>\"\"\" explicitState=\"$:/state/tab--1498284803\"/>\n</div>\n"},"$:/core/ui/AlertTemplate":{"text":"<div class=\"tc-alert\">\n<div class=\"tc-alert-toolbar\">\n<$button class=\"tc-btn-invisible\"><$action-deletetiddler $tiddler=<<currentTiddler>>/>{{$:/core/images/cancel-button}}</$button>\n</div>\n<div class=\"tc-alert-subtitle\">\n<$wikify name=\"format\" text=<<lingo Tiddler/DateFormat>>>\n<$view field=\"component\"/> - <$view field=\"modified\" format=\"date\" template=<<format>>/> <$reveal type=\"nomatch\" state=\"!!count\" text=\"\"><span class=\"tc-alert-highlight\">({{$:/language/Count}}: <$view field=\"count\"/>)</span></$reveal>\n</$wikify>\n</div>\n<div class=\"tc-alert-body\">\n\n<$transclude/>\n\n</div>\n</div>\n"},"$:/core/ui/BinaryWarning":{"text":"\\define lingo-base() $:/language/BinaryWarning/\n<<lingo Prompt>>\n"},"$:/core/ui/Components/plugin-info":{"text":"\\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<div class=\"tc-plugin-info-chunk tc-plugin-info-toggle\">\n<$reveal type=\"nomatch\" state=<<popup-state>> text=\"yes\" default=\"\"\"$default-popup-state$\"\"\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"yes\">\n{{$:/core/images/chevron-right}}\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<popup-state>> text=\"yes\" default=\"\"\"$default-popup-state$\"\"\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"no\">\n{{$:/core/images/chevron-down}}\n</$button>\n</$reveal>\n</div>\n<div class=\"tc-plugin-info-chunk tc-plugin-info-icon\">\n<$transclude tiddler=<<currentTiddler>> subtiddler=<<plugin-icon-title>>>\n<$transclude tiddler=\"$:/core/images/plugin-generic-$type$\"/>\n</$transclude>\n</div>\n<div class=\"tc-plugin-info-chunk tc-plugin-info-description\">\n<h1>\n''<$text text={{{ [<currentTiddler>get[name]] ~[<currentTiddler>split[/]last[1]] }}}/>'': <$view field=\"description\"><$view field=\"title\"/></$view> $disabledMessage$\n</h1>\n<h2>\n<$view field=\"title\"/>\n</h2>\n<h2>\n<div><em><$view field=\"version\"/></em></div>\n</h2>\n</div>\n\\end\n\n\\define plugin-info(type,default-popup-state)\n<$set name=\"popup-state\" value=<<popup-state-macro>>>\n<$reveal type=\"nomatch\" state=<<plugin-disable-title>> text=\"yes\">\n<$link to={{!!title}} class=\"tc-plugin-info\">\n<<plugin-table-body type:\"$type$\" default-popup-state:\"\"\"$default-popup-state$\"\"\">>\n</$link>\n</$reveal>\n<$reveal type=\"match\" state=<<plugin-disable-title>> text=\"yes\">\n<$link to={{!!title}} class=\"tc-plugin-info tc-plugin-info-disabled\">\n<<plugin-table-body type:\"$type$\" default-popup-state:\"\"\"$default-popup-state$\"\"\" disabledMessage:\"<$macrocall $name='lingo' title='Disabled/Status'/>\">>\n</$link>\n</$reveal>\n<$reveal type=\"match\" text=\"yes\" state=<<popup-state>> default=\"\"\"$default-popup-state$\"\"\">\n<div class=\"tc-plugin-info-dropdown\">\n<div class=\"tc-plugin-info-dropdown-body\">\n<$list filter=\"[all[current]] -[[$:/core]]\">\n<div style=\"float:right;\">\n<$reveal type=\"nomatch\" state=<<plugin-disable-title>> text=\"yes\">\n<$button set=<<plugin-disable-title>> setTo=\"yes\" tooltip={{$:/language/ControlPanel/Plugins/Disable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Disable/Caption}}>\n<<lingo Disable/Caption>>\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<plugin-disable-title>> text=\"yes\">\n<$button set=<<plugin-disable-title>> setTo=\"no\" tooltip={{$:/language/ControlPanel/Plugins/Enable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Enable/Caption}}>\n<<lingo Enable/Caption>>\n</$button>\n</$reveal>\n</div>\n</$list>\n<$set name=\"tabsList\" filter=\"[<currentTiddler>list[]] contents\">\n<$macrocall $name=\"tabs\" state=<<tabs-state-macro>> tabsList=<<tabsList>> default={{{ [enlist<tabsList>] }}} template=\"$:/core/ui/PluginInfo\"/>\n</$set>\n</div>\n</div>\n</$reveal>\n</$set>\n\\end\n\n<$macrocall $name=\"plugin-info\" type=<<plugin-type>> default-popup-state=<<default-popup-state>>/>\n"},"$:/core/ui/Components/tag-link":{"text":"<$link>\n<$set name=\"backgroundColor\" value={{!!color}}>\n<span style=<<tag-styles>> class=\"tc-tag-label\">\n<$view field=\"title\" format=\"text\"/>\n</span>\n</$set>\n</$link>"},"$:/core/ui/ControlPanel/Advanced":{"tags":"$:/tags/ControlPanel/Info","caption":"{{$:/language/ControlPanel/Advanced/Caption}}","text":"{{$:/language/ControlPanel/Advanced/Hint}}\n\n<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Advanced]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/TiddlerFields\" explicitState=\"$:/state/tab--959111941\"/>\n</div>\n"},"$:/core/ui/ControlPanel/Appearance":{"tags":"$:/tags/ControlPanel","caption":"{{$:/language/ControlPanel/Appearance/Caption}}","text":"{{$:/language/ControlPanel/Appearance/Hint}}\n\n<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Appearance]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Theme\" explicitState=\"$:/state/tab--1963855381\"/>\n</div>\n"},"$:/core/ui/ControlPanel/Basics":{"tags":"$:/tags/ControlPanel/Info","caption":"{{$:/language/ControlPanel/Basics/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Basics/\n\n\\define show-filter-count(filter)\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"$:/temp/advancedsearch\" $value=\"\"\"$filter$\"\"\"/>\n<$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" $value=\"\"\"$filter$\"\"\"/>\n<$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/>\n<$action-setfield $tiddler=\"$:/state/tab--1498284803\" $value=\"$:/core/ui/AdvancedSearch/Filter\"/>\n<$action-navigate $to=\"$:/AdvancedSearch\"/>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=\".tc-advanced-search input\"/>\n''<$count filter=\"\"\"$filter$\"\"\"/>''\n{{$:/core/images/advanced-search-button}}\n</$button>\n\\end\n\n|<<lingo Version/Prompt>> |''<<version>>'' |\n|<$link to=\"$:/SiteTitle\"><<lingo Title/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteTitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/SiteSubtitle\"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteSubtitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/status/UserName\"><<lingo Username/Prompt>></$link> |<$edit-text tiddler=\"$:/status/UserName\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/config/AnimationDuration\"><<lingo AnimDuration/Prompt>></$link> |<$edit-text tiddler=\"$:/config/AnimationDuration\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/DefaultTiddlers\"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit tag=\"textarea\" tiddler=\"$:/DefaultTiddlers\" class=\"tc-edit-texteditor\"/><br>//<<lingo DefaultTiddlers/BottomHint>>// |\n|<$link to=\"$:/language/DefaultNewTiddlerTitle\"><<lingo NewTiddler/Title/Prompt>></$link> |<$edit-text tiddler=\"$:/language/DefaultNewTiddlerTitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/config/NewJournal/Title\"><<lingo NewJournal/Title/Prompt>></$link> |<$edit-text tiddler=\"$:/config/NewJournal/Title\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/config/NewJournal/Text\"><<lingo NewJournal/Text/Prompt>></$link> |<$edit tiddler=\"$:/config/NewJournal/Text\" tag=\"textarea\" class=\"tc-edit-texteditor\" default=\"\"/> |\n|<$link to=\"$:/config/NewTiddler/Tags\"><<lingo NewTiddler/Tags/Prompt>></$link> |<$vars currentTiddler=\"$:/config/NewTiddler/Tags\" tagField=\"text\">{{||$:/core/ui/EditTemplate/tags}}<$list filter=\"[<currentTiddler>tags[]] +[limit[1]]\" variable=\"ignore\"><$button tooltip={{$:/language/ControlPanel/Basics/RemoveTags/Hint}}><<lingo RemoveTags>><$action-listops $tiddler=<<currentTiddler>> $field=\"text\" $subfilter={{{ [<currentTiddler>get[tags]] }}}/><$action-setfield $tiddler=<<currentTiddler>> tags=\"\"/></$button></$list></$vars> |\n|<$link to=\"$:/config/NewJournal/Tags\"><<lingo NewJournal/Tags/Prompt>></$link> |<$vars currentTiddler=\"$:/config/NewJournal/Tags\" tagField=\"text\">{{||$:/core/ui/EditTemplate/tags}}<$list filter=\"[<currentTiddler>tags[]] +[limit[1]]\" variable=\"ignore\"><$button tooltip={{$:/language/ControlPanel/Basics/RemoveTags/Hint}}><<lingo RemoveTags>><$action-listops $tiddler=<<currentTiddler>> $field=\"text\" $subfilter={{{ [<currentTiddler>get[tags]] }}}/><$action-setfield $tiddler=<<currentTiddler>> tags=\"\"/></$button></$list></$vars> |\n|<$link to=\"$:/config/AutoFocus\"><<lingo AutoFocus/Prompt>></$link> |{{$:/snippets/minifocusswitcher}} |\n|<<lingo Language/Prompt>> |{{$:/snippets/minilanguageswitcher}} |\n|<<lingo Tiddlers/Prompt>> |<<show-filter-count \"[!is[system]sort[title]]\">> |\n|<<lingo Tags/Prompt>> |<<show-filter-count \"[tags[]sort[title]]\">> |\n|<<lingo SystemTiddlers/Prompt>> |<<show-filter-count \"[is[system]sort[title]]\">> |\n|<<lingo ShadowTiddlers/Prompt>> |<<show-filter-count \"[all[shadows]sort[title]]\">> |\n|<<lingo OverriddenShadowTiddlers/Prompt>> |<<show-filter-count \"[is[tiddler]is[shadow]sort[title]]\">> |\n"},"$:/core/ui/ControlPanel/EditorTypes":{"tags":"$:/tags/ControlPanel/Advanced","caption":"{{$:/language/ControlPanel/EditorTypes/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/EditorTypes/\n\n<<lingo Hint>>\n\n<table>\n<tbody>\n<tr>\n<th><<lingo Type/Caption>></th>\n<th><<lingo Editor/Caption>></th>\n</tr>\n<$list filter=\"[all[shadows+tiddlers]prefix[$:/config/EditorTypeMappings/]sort[title]]\">\n<tr>\n<td>\n<$link>\n<$list filter=\"[all[current]removeprefix[$:/config/EditorTypeMappings/]]\">\n<$text text={{!!title}}/>\n</$list>\n</$link>\n</td>\n<td>\n<$view field=\"text\"/>\n</td>\n</tr>\n</$list>\n</tbody>\n</table>\n"},"$:/core/ui/ControlPanel/Info":{"tags":"$:/tags/ControlPanel","caption":"{{$:/language/ControlPanel/Info/Caption}}","text":"{{$:/language/ControlPanel/Info/Hint}}\n\n<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Info]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Basics\" explicitState=\"$:/state/tab--2112689675\"/>\n</div>\n"},"$:/core/ui/ControlPanel/KeyboardShortcuts":{"tags":"$:/tags/ControlPanel","caption":"{{$:/language/ControlPanel/KeyboardShortcuts/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/KeyboardShortcuts/\n\n\\define new-shortcut(title)\n<div class=\"tc-dropdown-item-plain\">\n<$edit-shortcut tiddler=\"$title$\" placeholder={{$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt}} focus=\"true\" style=\"width:auto;\"/> <$button>\n<<lingo Add/Caption>>\n<$action-listops\n\t$tiddler=\"$(shortcutTitle)$\"\n\t$field=\"text\"\n\t$subfilter=\"[{$title$}]\"\n/>\n<$action-deletetiddler\n\t$tiddler=\"$title$\"\n/>\n</$button>\n</div>\n\\end\n\n\\define shortcut-list-item(caption)\n<td>\n</td>\n<td style=\"text-align:right;font-size:0.7em;\">\n<<lingo Platform/$caption$>>\n</td>\n<td>\n<div style=\"position:relative;\">\n<$button popup=<<qualify \"$:/state/dropdown/$(shortcutTitle)$\">> class=\"tc-btn-invisible\">\n{{$:/core/images/edit-button}}\n</$button>\n<$macrocall $name=\"displayshortcuts\" $output=\"text/html\" shortcuts={{$(shortcutTitle)$}} prefix=\"<kbd>\" separator=\"</kbd> <kbd>\" suffix=\"</kbd>\"/>\n\n<$reveal state=<<qualify \"$:/state/dropdown/$(shortcutTitle)$\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-block-dropdown-wrapper\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown tc-popup-keep\">\n<$list filter=\"[list[$(shortcutTitle)$!!text]sort[title]]\" variable=\"shortcut\" emptyMessage=\"\"\"\n<div class=\"tc-dropdown-item-plain\">\n//<<lingo NoShortcuts/Caption>>//\n</div>\n\"\"\">\n<div class=\"tc-dropdown-item-plain\">\n<$button class=\"tc-btn-invisible\" tooltip={{$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint}}>\n<$action-listops\n\t$tiddler=\"$(shortcutTitle)$\"\n\t$field=\"text\"\n\t$subfilter=\"+[remove<shortcut>]\"\n/>\n<small>{{$:/core/images/close-button}}</small>\n</$button>\n<kbd>\n<$macrocall $name=\"displayshortcuts\" $output=\"text/html\" shortcuts=<<shortcut>>/>\n</kbd>\n</div>\n</$list>\n<hr/>\n<$macrocall $name=\"new-shortcut\" title=<<qualify \"$:/state/new-shortcut/$(shortcutTitle)$\">>/>\n</div>\n</div>\n</$reveal>\n</div>\n</td>\n\\end\n\n\\define shortcut-list(caption,prefix)\n<tr>\n<$list filter=\"[[$prefix$$(shortcutName)$]]\" variable=\"shortcutTitle\">\n<<shortcut-list-item \"$caption$\">>\n</$list>\n</tr>\n\\end\n\n\\define shortcut-editor()\n<<shortcut-list \"All\" \"$:/config/shortcuts/\">>\n<<shortcut-list \"Mac\" \"$:/config/shortcuts-mac/\">>\n<<shortcut-list \"NonMac\" \"$:/config/shortcuts-not-mac/\">>\n<<shortcut-list \"Linux\" \"$:/config/shortcuts-linux/\">>\n<<shortcut-list \"NonLinux\" \"$:/config/shortcuts-not-linux/\">>\n<<shortcut-list \"Windows\" \"$:/config/shortcuts-windows/\">>\n<<shortcut-list \"NonWindows\" \"$:/config/shortcuts-not-windows/\">>\n\\end\n\n\\define shortcut-preview()\n<$macrocall $name=\"displayshortcuts\" $output=\"text/html\" shortcuts={{$(shortcutPrefix)$$(shortcutName)$}} prefix=\"<kbd>\" separator=\"</kbd> <kbd>\" suffix=\"</kbd>\"/>\n\\end\n\n\\define shortcut-item-inner()\n<tr>\n<td>\n<$reveal type=\"nomatch\" state=<<dropdownStateTitle>> text=\"open\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield\n\t$tiddler=<<dropdownStateTitle>>\n\t$value=\"open\"\n/>\n{{$:/core/images/right-arrow}}\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<dropdownStateTitle>> text=\"open\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield\n\t$tiddler=<<dropdownStateTitle>>\n\t$value=\"close\"\n/>\n{{$:/core/images/down-arrow}}\n</$button>\n</$reveal>\n''<$text text=<<shortcutName>>/>''\n</td>\n<td>\n<$transclude tiddler=\"$:/config/ShortcutInfo/$(shortcutName)$\"/>\n</td>\n<td>\n<$list filter=\"$:/config/shortcuts/ $:/config/shortcuts-mac/ $:/config/shortcuts-not-mac/ $:/config/shortcuts-linux/ $:/config/shortcuts-not-linux/ $:/config/shortcuts-windows/ $:/config/shortcuts-not-windows/\" variable=\"shortcutPrefix\">\n<<shortcut-preview>>\n</$list>\n</td>\n</tr>\n<$set name=\"dropdownState\" value={{$(dropdownStateTitle)$}}>\n<$list filter=\"[<dropdownState>match[open]]\" variable=\"listItem\">\n<<shortcut-editor>>\n</$list>\n</$set>\n\\end\n\n\\define shortcut-item()\n<$set name=\"dropdownStateTitle\" value=<<qualify \"$:/state/dropdown/keyboardshortcut/$(shortcutName)$\">>>\n<<shortcut-item-inner>>\n</$set>\n\\end\n\n<table>\n<tbody>\n<$list filter=\"[all[shadows+tiddlers]removeprefix[$:/config/ShortcutInfo/]]\" variable=\"shortcutName\">\n<<shortcut-item>>\n</$list>\n</tbody>\n</table>\n"},"$:/core/ui/ControlPanel/LoadedModules":{"tags":"$:/tags/ControlPanel/Advanced","caption":"{{$:/language/ControlPanel/LoadedModules/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/\n<<lingo LoadedModules/Hint>>\n\n{{$:/snippets/modules}}\n"},"$:/core/ui/ControlPanel/Modals/AddPlugins":{"subtitle":"{{$:/core/images/download-button}} {{$:/language/ControlPanel/Plugins/Add/Caption}}","text":"\\define install-plugin-actions()\n<$action-sendmessage $message=\"tm-load-plugin-from-library\" url={{!!url}} title={{$(assetInfo)$!!original-title}}/>\n<$set name=\"url\" value={{!!url}}>\n<$set name=\"currentTiddler\" value=<<assetInfo>>>\n<$list filter=\"[enlist{!!dependents}] [{!!parent-plugin}] +[sort[name]]\" variable=\"dependency\">\n<$action-sendmessage $message=\"tm-load-plugin-from-library\" url=<<url>> title=<<dependency>>/>\n</$list>\n</$set>\n</$set>\n\\end\n\n\\define install-plugin-button()\n<div>\n<$set name=\"libraryVersion\" value={{{ [<assetInfo>get[version]] }}}>\n<$set name=\"installedVersion\" value={{{ [<assetInfo>get[original-title]get[version]] }}}>\n<$set name=\"reinstall-type\" value={{{ [<libraryVersion>compare:version:eq<installedVersion>then[tc-reinstall]] [<libraryVersion>compare:version:gt<installedVersion>then[tc-reinstall-upgrade]] [<libraryVersion>compare:version:lt<installedVersion>then[tc-reinstall-downgrade]] }}}>\n<$button actions=<<install-plugin-actions>> class={{{ [<assetInfo>get[original-title]has[version]then<reinstall-type>] tc-btn-invisible tc-install-plugin +[join[ ]] }}}>\n{{$:/core/images/download-button}}\n<$list filter=\"[<assetInfo>get[original-title]get[version]]\" variable=\"ignore\" emptyMessage=\"{{$:/language/ControlPanel/Plugins/Install/Caption}}\">\n<$list filter=\"[<libraryVersion>compare:version:gt<installedVersion>]\" variable=\"ignore\" emptyMessage=\"\"\"\n<$list filter=\"[<libraryVersion>compare:version:lt<installedVersion>]\" variable=\"ignore\" emptyMessage=\"{{$:/language/ControlPanel/Plugins/Reinstall/Caption}}\">\n{{$:/language/ControlPanel/Plugins/Downgrade/Caption}}\n</$list>\n\"\"\">\n{{$:/language/ControlPanel/Plugins/Update/Caption}}\n</$list>\n</$list>\n</$button>\n<div>\n</div>\n<$reveal stateTitle=<<assetInfo>> stateField=\"requires-reload\" type=\"match\" text=\"yes\">{{$:/language/ControlPanel/Plugins/PluginWillRequireReload}}</$reveal>\n</$set>\n</$set>\n</$set>\n</div>\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<$set name=\"popup-state\" value=<<popup-state-macro>>>\n<div class=\"tc-plugin-info\">\n<div class=\"tc-plugin-info-chunk tc-plugin-info-toggle\">\n<$reveal type=\"nomatch\" state=<<popup-state>> text=\"yes\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"yes\">\n{{$:/core/images/chevron-right}}\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<popup-state>> text=\"yes\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<popup-state>> setTo=\"no\">\n{{$:/core/images/chevron-down}}\n</$button>\n</$reveal>\n</div>\n<div class=\"tc-plugin-info-chunk tc-plugin-info-icon\">\n<$list filter=\"[<assetInfo>has[icon]]\" emptyMessage=\"\"\"<$transclude tiddler=\"$:/core/images/plugin-generic-$type$\"/>\"\"\">\n<img src={{$(assetInfo)$!!icon}}/>\n</$list>\n</div>\n<div class=\"tc-plugin-info-chunk tc-plugin-info-description\">\n<h1><strong><$text text={{{ [<assetInfo>get[name]] ~[<assetInfo>get[original-title]split[/]last[1]] }}}/></strong>: <$view tiddler=<<assetInfo>> field=\"description\"/></h1>\n<h2><$view tiddler=<<assetInfo>> field=\"original-title\"/></h2>\n<div><em><$view tiddler=<<assetInfo>> field=\"version\"/></em></div>\n<$list filter=\"[<assetInfo>get[original-title]get[version]]\" variable=\"installedVersion\"><div><em>{{$:/language/ControlPanel/Plugins/AlreadyInstalled/Hint}}</em></div></$list>\n</div>\n<div class=\"tc-plugin-info-chunk tc-plugin-info-buttons\">\n<<install-plugin-button>>\n</div>\n</div>\n<$set name=\"original-title\" value={{{ [<assetInfo>get[original-title]] }}}>\n<$reveal type=\"match\" text=\"yes\" state=<<popup-state>>>\n<div class=\"tc-plugin-info-dropdown\">\n<$list filter=\"[enlist{!!dependents}] [<currentTiddler>get[parent-plugin]] +[limit[1]] ~[<assetInfo>get[original-title]!is[tiddler]]\" variable=\"ignore\">\n<div class=\"tc-plugin-info-dropdown-message\">\n<$list filter=\"[<assetInfo>get[original-title]!is[tiddler]]\">\n{{$:/language/ControlPanel/Plugins/NotInstalled/Hint}}\n</$list>\n<$set name=\"currentTiddler\" value=<<assetInfo>>>\n<$list filter=\"[enlist{!!dependents}] [<currentTiddler>get[parent-plugin]] +[limit[1]]\" variable=\"ignore\">\n<div>\n{{$:/language/ControlPanel/Plugins/AlsoRequires}}\n<$list filter=\"[enlist{!!dependents}] [{!!parent-plugin}] +[sort[name]]\" variable=\"dependency\">\n<$text text=<<dependency>>/>\n</$list>\n</div>\n</$list>\n</$set>\n</div>\n</$list>\n<div class=\"tc-plugin-info-dropdown-body\">\n<$transclude tiddler=<<assetInfo>> field=\"readme\" mode=\"block\"/>\n</div>\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>limit[1]]\" variable=\"ignore\">\n<div class=\"tc-plugin-info-sub-plugins\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>sort[name]]\" variable=\"assetInfo\">\n<<display-plugin-info \"$type$\">>\n</$list>\n</div>\n</$list>\n</div>\n</$reveal>\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>limit[1]]\" variable=\"ignore\">\n<$reveal type=\"nomatch\" text=\"yes\" state=<<popup-state>> tag=\"div\" class=\"tc-plugin-info-sub-plugin-indicator\">\n<$wikify name=\"count\" text=\"\"\"<$count filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>]\"/>\"\"\">\n<$button class=\"tc-btn-invisible\" set=<<popup-state>> setTo=\"yes\">\n{{$:/language/ControlPanel/Plugins/SubPluginPrompt}}\n</$button>\n</$wikify>\n</$reveal>\n</$list>\n</$set>\n</$set>\n\\end\n\n\\define load-plugin-library-button()\n<$list filter=\"[<currentTiddler>get[enabled]else[yes]match[yes]]\" variable=\"ignore\">\n<$button class=\"tc-btn-big-green\">\n<$action-sendmessage $message=\"tm-load-plugin-library\" url={{!!url}} infoTitlePrefix=\"$:/temp/RemoteAssetInfo/\"/>\n{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Plugins/OpenPluginLibrary}}\n</$button>\n</$list>\n\\end\n\n\\define display-server-assets(type)\n{{$:/language/Search/Search}}: <$edit-text tiddler=\"\"\"$:/temp/RemoteAssetSearch/$(currentTiddler)$\"\"\" default=\"\" type=\"search\" tag=\"input\"/>\n<$reveal state=\"\"\"$:/temp/RemoteAssetSearch/$(currentTiddler)$\"\"\" type=\"nomatch\" text=\"\">\n<$button class=\"tc-btn-invisible\">\n<$action-setfield $tiddler=\"\"\"$:/temp/RemoteAssetSearch/$(currentTiddler)$\"\"\" $field=\"text\" $value=\"\"/>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n<div class=\"tc-plugin-library-listing\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]search:author,description,original-title,readme,title{$:/temp/RemoteAssetSearch/$(currentTiddler)$}sort[name]]\" variable=\"assetInfo\">\n<$list filter=\"[[$:/temp/RemoteAssetSearch/$(currentTiddler)$]has[text]] ~[<assetInfo>!has[parent-plugin]]\" variable=\"ignore\"><!-- Hide sub-plugins if we're not searching -->\n<<display-plugin-info \"$type$\">>\n</$list>\n</$list>\n</div>\n\\end\n\n\\define display-server-connection()\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/ServerConnection]suffix{!!url}]\" variable=\"connectionTiddler\" emptyMessage=<<load-plugin-library-button>>>\n\n<$set name=\"transclusion\" value=<<connectionTiddler>>>\n\n<<tabs \"[[$:/core/ui/ControlPanel/Plugins/Add/Updates]] [[$:/core/ui/ControlPanel/Plugins/Add/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Add/Themes]] [[$:/core/ui/ControlPanel/Plugins/Add/Languages]]\" \"$:/core/ui/ControlPanel/Plugins/Add/Plugins\">>\n\n</$set>\n\n</$list>\n\\end\n\n\\define close-library-button()\n<$reveal type='nomatch' state='$:/temp/ServerConnection/$(PluginLibraryURL)$' text=''>\n<$button class='tc-btn-big-green'>\n<$action-sendmessage $message=\"tm-unload-plugin-library\" url={{!!url}}/>\n{{$:/core/images/chevron-left}} {{$:/language/ControlPanel/Plugins/ClosePluginLibrary}}\n<$action-deletetiddler $filter=\"[prefix[$:/temp/ServerConnection/$(PluginLibraryURL)$]][prefix[$:/temp/RemoteAssetInfo/$(PluginLibraryURL)$]]\"/>\n</$button>\n</$reveal>\n\\end\n\n\\define plugin-library-listing()\n<div class=\"tc-tab-set\">\n<$set name=\"defaultTab\" value={{{ [all[tiddlers+shadows]tag[$:/tags/PluginLibrary]] }}}>\n<div class=\"tc-tab-buttons\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]\">\n<$button set=<<qualify \"$:/state/addplugins/tab\">> setTo=<<currentTiddler>> default=<<defaultTab>> selectedClass=\"tc-tab-selected\">\n<$set name=\"tv-wikilinks\" value=\"no\">\n<$transclude field=\"caption\"/>\n</$set>\n</$button>\n</$list>\n</div>\n<div class=\"tc-tab-divider\"/>\n<div class=\"tc-tab-content\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]\">\n<$reveal type=\"match\" state=<<qualify \"$:/state/addplugins/tab\">> text=<<currentTiddler>> default=<<defaultTab>>>\n<h2><$link><$transclude field=\"caption\"><$view field=\"title\"/></$transclude></$link></h2>\n//<$view field=\"url\"/>//\n<$transclude mode=\"block\"/>\n<$set name=PluginLibraryURL value={{!!url}}>\n<<close-library-button>>\n</$set>\n<<display-server-connection>>\n</$reveal>\n</$list>\n</div>\n</$set>\n</div>\n\\end\n\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n<div>\n<<plugin-library-listing>>\n</div>\n"},"$:/core/ui/ControlPanel/Palette":{"tags":"$:/tags/ControlPanel/Appearance","caption":"{{$:/language/ControlPanel/Palette/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Palette/\n\n{{$:/snippets/paletteswitcher}}\n\n<$reveal type=\"nomatch\" state=\"$:/state/ShowPaletteEditor\" text=\"yes\">\n\n<$button set=\"$:/state/ShowPaletteEditor\" setTo=\"yes\"><<lingo ShowEditor/Caption>></$button>\n\n</$reveal>\n\n<$reveal type=\"match\" state=\"$:/state/ShowPaletteEditor\" text=\"yes\">\n\n<$button set=\"$:/state/ShowPaletteEditor\" setTo=\"no\"><<lingo HideEditor/Caption>></$button>\n{{$:/PaletteManager}}\n\n</$reveal>\n\n"},"$:/core/ui/ControlPanel/Parsing":{"tags":"$:/tags/ControlPanel/Advanced","caption":"{{$:/language/ControlPanel/Parsing/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Parsing/\n\n\\define toggle(Type)\n<$checkbox\ntiddler=\"\"\"$:/config/WikiParserRules/$Type$/$(rule)$\"\"\"\nfield=\"text\"\nchecked=\"enable\"\nunchecked=\"disable\"\ndefault=\"enable\">\n<<rule>>\n</$checkbox>\n\\end\n\n\\define rules(type,Type)\n<$list filter=\"[wikiparserrules[$type$]]\" variable=\"rule\">\n<dd><<toggle $Type$>></dd>\n</$list>\n\\end\n\n<<lingo Hint>>\n\n<dl>\n<dt><<lingo Pragma/Caption>></dt>\n<<rules pragma Pragma>>\n<dt><<lingo Inline/Caption>></dt>\n<<rules inline Inline>>\n<dt><<lingo Block/Caption>></dt>\n<<rules block Block>>\n</dl>"},"$:/core/ui/ControlPanel/Plugins/Add/Languages":{"caption":"{{$:/language/ControlPanel/Plugins/Languages/Caption}} (<$count filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[language]]\"/>)","text":"<<display-server-assets language>>\n"},"$:/core/ui/ControlPanel/Plugins/Add/Plugins":{"caption":"{{$:/language/ControlPanel/Plugins/Plugins/Caption}} (<$count filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[plugin]]\"/>)","text":"<<display-server-assets plugin>>\n"},"$:/core/ui/ControlPanel/Plugins/Add/Themes":{"caption":"{{$:/language/ControlPanel/Plugins/Themes/Caption}} (<$count filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[theme]]\"/>)","text":"<<display-server-assets theme>>\n"},"$:/core/ui/ControlPanel/Plugins/Add/Updates":{"caption":"<$importvariables filter=\"$:/core/ui/ControlPanel/Plugins/Add/Updates\">{{$:/language/ControlPanel/Plugins/Updates/Caption}} (<<update-count>>)</$importvariables>","text":"\\define each-updateable-plugin(body)\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}sort[title]]\" variable=\"assetInfo\">\n<$set name=\"libraryVersion\" value={{{ [<assetInfo>get[version]] }}}>\n<$list filter=\"[<assetInfo>get[original-title]has[version]!version<libraryVersion>]\" variable=\"ignore\">\n<$set name=\"installedVersion\" value={{{ [<assetInfo>get[original-title]get[version]] }}}>\n<$list filter=\"[<installedversion>!match<libraryVersion>]\" variable=\"ignore\">\n$body$\n</$list>\n</$set>\n</$list>\n</$set>\n</$list>\n\\end\n\n\\define update-all-actions()\n<$macrocall $name=\"each-updateable-plugin\" body=\"\"\"\n<<install-plugin-actions>>\n\"\"\"/>\n\\end\n\n\\define update-count()\n<$wikify name=\"count-filter\" text=<<each-updateable-plugin \"[[<$text text=<<assetInfo>>/>]]\">>><$count filter=<<count-filter>>/></$wikify>\n\\end\n\n<$button actions=<<update-all-actions>> class=\"tc-btn-invisible tc-install-plugin tc-reinstall-upgrade\">\n{{$:/core/images/download-button}} {{||$:/language/ControlPanel/Plugins/Updates/UpdateAll/Caption}}\n</$button>\n\n<div class=\"tc-plugin-library-listing\">\n<$macrocall $name=\"each-updateable-plugin\" body=\"\"\"\n<$macrocall $name=\"display-plugin-info\" type={{{ [<assetInfo>get[original-plugin-type]] }}}/>\n\"\"\"/>\n</div>\n"},"$:/core/ui/ControlPanel/Plugins/AddPlugins":{"text":"\\define lingo-base() $:/language/ControlPanel/Plugins/\n\n<$button message=\"tm-modal\" param=\"$:/core/ui/ControlPanel/Modals/AddPlugins\" tooltip={{$:/language/ControlPanel/Plugins/Add/Hint}} class=\"tc-btn-big-green tc-primary-btn\">\n{{$:/core/images/download-button}} <<lingo Add/Caption>>\n</$button>\n"},"$:/core/ui/ControlPanel/Plugins/Installed/Languages":{"caption":"{{$:/language/ControlPanel/Plugins/Languages/Caption}} (<$count filter=\"[!has[draft.of]plugin-type[language]]\"/>)","text":"<<plugin-table language>>\n"},"$:/core/ui/ControlPanel/Plugins/Installed/Plugins":{"caption":"{{$:/language/ControlPanel/Plugins/Plugins/Caption}} (<$count filter=\"[!has[draft.of]plugin-type[plugin]]\"/>)","text":"<<plugin-table plugin>>\n"},"$:/core/ui/ControlPanel/Plugins/Installed/Themes":{"caption":"{{$:/language/ControlPanel/Plugins/Themes/Caption}} (<$count filter=\"[!has[draft.of]plugin-type[theme]]\"/>)","text":"<<plugin-table theme>>\n"},"$:/core/ui/ControlPanel/Plugins":{"tags":"$:/tags/ControlPanel","caption":"{{$:/language/ControlPanel/Plugins/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Plugins/\n\n\\define plugin-table(type)\n<$set name=\"plugin-type\" value=\"\"\"$type$\"\"\">\n<$set name=\"qualified-state\" value=<<qualify \"$:/state/plugin-info\">>>\n<$list filter=\"[!has[draft.of]plugin-type[$type$]sort[name]]\" emptyMessage=<<lingo \"Empty/Hint\">> template=\"$:/core/ui/Components/plugin-info\"/>\n</$set>\n</$set>\n\\end\n\n{{$:/core/ui/ControlPanel/Plugins/AddPlugins}}\n\n<<lingo Installed/Hint>>\n\n<$macrocall $name=\"tabs\" tabsList=\"[[$:/core/ui/ControlPanel/Plugins/Installed/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Installed/Themes]] [[$:/core/ui/ControlPanel/Plugins/Installed/Languages]]\" default=\"$:/core/ui/ControlPanel/Plugins/Installed/Plugins\" explicitState=\"$:/state/tab--86143343\"/>\n"},"$:/core/ui/ControlPanel/Saving/DownloadSaver":{"tags":"$:/tags/ControlPanel/Saving","caption":"{{$:/language/ControlPanel/Saving/DownloadSaver/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Saving/DownloadSaver/\n\n<<lingo Hint>>\n\n!! <$link to=\"$:/config/DownloadSaver/AutoSave\"><<lingo AutoSave/Hint>></$link>\n\n<$checkbox tiddler=\"$:/config/DownloadSaver/AutoSave\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> <<lingo AutoSave/Description>> </$checkbox>\n"},"$:/core/ui/ControlPanel/Saving/General":{"tags":"$:/tags/ControlPanel/Saving","caption":"{{$:/language/ControlPanel/Saving/General/Caption}}","list-before":"","text":"\\define lingo-base() $:/language/ControlPanel/Settings/\n\n{{$:/language/ControlPanel/Saving/General/Hint}}\n\n!! <$link to=\"$:/config/AutoSave\"><<lingo AutoSave/Caption>></$link>\n\n<<lingo AutoSave/Hint>>\n\n<$radio tiddler=\"$:/config/AutoSave\" value=\"yes\"> <<lingo AutoSave/Enabled/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/AutoSave\" value=\"no\"> <<lingo AutoSave/Disabled/Description>> </$radio>\n"},"$:/core/ui/ControlPanel/Saving/GitHub":{"tags":"$:/tags/ControlPanel/Saving","caption":"{{$:/language/ControlPanel/Saving/GitService/GitHub/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Saving/GitService/\n\\define service-name() ~GitHub\n\n<<lingo Description>>\n\n|<<lingo UserName>> |<$edit-text tiddler=\"$:/GitHub/Username\" default=\"\" tag=\"input\"/> |\n|<<lingo GitHub/Password>> |<$password name=\"github\"/> |\n|<<lingo Repo>> |<$edit-text tiddler=\"$:/GitHub/Repo\" default=\"\" tag=\"input\"/> |\n|<<lingo Branch>> |<$edit-text tiddler=\"$:/GitHub/Branch\" default=\"main\" tag=\"input\"/> |\n|<<lingo Path>> |<$edit-text tiddler=\"$:/GitHub/Path\" default=\"\" tag=\"input\"/> |\n|<<lingo Filename>> |<$edit-text tiddler=\"$:/GitHub/Filename\" default=\"\" tag=\"input\"/> |\n|<<lingo ServerURL>> |<$edit-text tiddler=\"$:/GitHub/ServerURL\" default=\"https://api.github.com\" tag=\"input\"/> |"},"$:/core/ui/ControlPanel/Saving/GitLab":{"tags":"$:/tags/ControlPanel/Saving","caption":"{{$:/language/ControlPanel/Saving/GitService/GitLab/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Saving/GitService/\n\\define service-name() ~GitLab\n\n<<lingo Description>>\n\n|<<lingo UserName>> |<$edit-text tiddler=\"$:/GitLab/Username\" default=\"\" tag=\"input\"/> |\n|<<lingo GitLab/Password>> |<$password name=\"gitlab\"/> |\n|<<lingo Repo>> |<$edit-text tiddler=\"$:/GitLab/Repo\" default=\"\" tag=\"input\"/> |\n|<<lingo Branch>> |<$edit-text tiddler=\"$:/GitLab/Branch\" default=\"master\" tag=\"input\"/> |\n|<<lingo Path>> |<$edit-text tiddler=\"$:/GitLab/Path\" default=\"\" tag=\"input\"/> |\n|<<lingo Filename>> |<$edit-text tiddler=\"$:/GitLab/Filename\" default=\"\" tag=\"input\"/> |\n|<<lingo ServerURL>> |<$edit-text tiddler=\"$:/GitLab/ServerURL\" default=\"https://gitlab.com/api/v4\" tag=\"input\"/> |"},"$:/core/ui/ControlPanel/Saving/TiddlySpot":{"tags":"$:/tags/ControlPanel/Saving","caption":"{{$:/language/ControlPanel/Saving/TiddlySpot/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Saving/TiddlySpot/\n\n\\define siteURL(path)\nhttp://$(userName)$.tiddlyspot.com/$path$/\n\\end\n\\define siteLink(path)\n<$reveal type=\"nomatch\" state=\"$:/UploadName\" text=\"\">\n<$set name=\"userName\" value={{$:/UploadName}}>\n<$reveal type=\"match\" state=\"$:/UploadURL\" text=\"\">\n<<siteURL $path$>>\n</$reveal>\n<$reveal type=\"nomatch\" state=\"$:/UploadURL\" text=\"\">\n<$macrocall $name=resolvePath source={{$:/UploadBackupDir}} root={{$:/UploadURL}}>>\n</$reveal>\n</$set>\n</$reveal>\n\\end\n\n<div class=\"tc-message-box\">\n\n<<lingo ReadOnly>>\n\n</div>\n\n<<lingo Description>>\n\n|<<lingo UserName>> |<$edit-text tiddler=\"$:/UploadName\" default=\"\" tag=\"input\"/> |\n|<<lingo Password>> |<$password name=\"upload\"/> |\n\n''<<lingo Advanced/Heading>>''\n\n|<<lingo ServerURL>> |<$edit-text tiddler=\"$:/UploadURL\" default=\"\" tag=\"input\"/> |\n|<<lingo Filename>> |<$edit-text tiddler=\"$:/UploadFilename\" default=\"index.html\" tag=\"input\"/> |\n|<<lingo UploadDir>> |<$edit-text tiddler=\"$:/UploadDir\" default=\".\" tag=\"input\"/> |\n|<<lingo BackupDir>> |<$edit-text tiddler=\"$:/UploadBackupDir\" default=\".\" tag=\"input\"/> |\n\n<<lingo TiddlySpot/Hint>>\n"},"$:/core/ui/ControlPanel/Saving/Gitea":{"tags":"$:/tags/ControlPanel/Saving","caption":"{{$:/language/ControlPanel/Saving/GitService/Gitea/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Saving/GitService/\n\\define service-name() ~Gitea\n\n<<lingo Description>>\n\n|<<lingo UserName>> |<$edit-text tiddler=\"$:/Gitea/Username\" default=\"\" tag=\"input\"/> |\n|<<lingo Gitea/Password>> |<$password name=\"Gitea\"/> |\n|<<lingo Repo>> |<$edit-text tiddler=\"$:/Gitea/Repo\" default=\"\" tag=\"input\"/> |\n|<<lingo Branch>> |<$edit-text tiddler=\"$:/Gitea/Branch\" default=\"master\" tag=\"input\"/> |\n|<<lingo Path>> |<$edit-text tiddler=\"$:/Gitea/Path\" default=\"\" tag=\"input\"/> |\n|<<lingo Filename>> |<$edit-text tiddler=\"$:/Gitea/Filename\" default=\"\" tag=\"input\"/> |\n|<<lingo ServerURL>> |<$edit-text tiddler=\"$:/Gitea/ServerURL\" default=\"https://gitea/api/v1\" tag=\"input\"/> |\n"},"$:/core/ui/ControlPanel/Saving":{"tags":"$:/tags/ControlPanel","caption":"{{$:/language/ControlPanel/Saving/Caption}}","text":"{{$:/language/ControlPanel/Saving/Hint}}\n\n<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Saving]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Saving/General\" explicitState=\"$:/state/tab-2065006209\"/>\n</div>\n"},"$:/core/buttonstyles/Borderless":{"tags":"$:/tags/ToolbarButtonStyle","caption":"{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless}}","text":"tc-btn-invisible"},"$:/core/buttonstyles/Boxed":{"tags":"$:/tags/ToolbarButtonStyle","caption":"{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed}}","text":"tc-btn-boxed"},"$:/core/buttonstyles/Rounded":{"tags":"$:/tags/ToolbarButtonStyle","caption":"{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded}}","text":"tc-btn-rounded"},"$:/core/ui/ControlPanel/Settings/CamelCase":{"tags":"$:/tags/ControlPanel/Settings","caption":"{{$:/language/ControlPanel/Settings/CamelCase/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Settings/CamelCase/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/WikiParserRules/Inline/wikilink\" field=\"text\" checked=\"enable\" unchecked=\"disable\" default=\"enable\"> <$link to=\"$:/config/WikiParserRules/Inline/wikilink\"><<lingo Description>></$link> </$checkbox>\n"},"$:/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab":{"caption":"{{$:/language/ControlPanel/Settings/DefaultMoreSidebarTab/Caption}}","tags":"$:/tags/ControlPanel/Settings","text":"\\define lingo-base() $:/language/ControlPanel/Settings/DefaultMoreSidebarTab/\n\n<$link to=\"$:/config/DefaultMoreSidebarTab\"><<lingo Hint>></$link>\n\n<$select tiddler=\"$:/config/DefaultMoreSidebarTab\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]\">\n<option value=<<currentTiddler>>><$transclude field=\"caption\"><$text text=<<currentTiddler>>/></$transclude></option>\n</$list>\n</$select>\n"},"$:/core/ui/ControlPanel/Settings/DefaultSidebarTab":{"caption":"{{$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption}}","tags":"$:/tags/ControlPanel/Settings","text":"\\define lingo-base() $:/language/ControlPanel/Settings/DefaultSidebarTab/\n\n<$link to=\"$:/config/DefaultSidebarTab\"><<lingo Hint>></$link>\n\n<$select tiddler=\"$:/config/DefaultSidebarTab\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]\">\n<option value=<<currentTiddler>>><$transclude field=\"caption\"><$text text=<<currentTiddler>>/></$transclude></option>\n</$list>\n</$select>\n"},"$:/core/ui/ControlPanel/Settings/EditorToolbar":{"tags":"$:/tags/ControlPanel/Settings","caption":"{{$:/language/ControlPanel/Settings/EditorToolbar/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Settings/EditorToolbar/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/TextEditor/EnableToolbar\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/TextEditor/EnableToolbar\"><<lingo Description>></$link> </$checkbox>\n\n"},"$:/core/ui/ControlPanel/Settings/InfoPanelMode":{"tags":"$:/tags/ControlPanel/Settings","caption":"{{$:/language/ControlPanel/Settings/InfoPanelMode/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Settings/InfoPanelMode/\n<$link to=\"$:/config/TiddlerInfo/Mode\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/TiddlerInfo/Mode\" value=\"popup\"> <<lingo Popup/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/TiddlerInfo/Mode\" value=\"sticky\"> <<lingo Sticky/Description>> </$radio>\n"},"$:/core/ui/ControlPanel/Settings/LinkToBehaviour":{"tags":"$:/tags/ControlPanel/Settings","caption":"{{$:/language/ControlPanel/Settings/LinkToBehaviour/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Settings/LinkToBehaviour/\n\n<$link to=\"$:/config/Navigation/openLinkFromInsideRiver\"><<lingo \"InsideRiver/Hint\">></$link>\n\n<$select tiddler=\"$:/config/Navigation/openLinkFromInsideRiver\">\n <option value=\"above\"><<lingo \"OpenAbove\">></option>\n <option value=\"below\"><<lingo \"OpenBelow\">></option>\n <option value=\"top\"><<lingo \"OpenAtTop\">></option>\n <option value=\"bottom\"><<lingo \"OpenAtBottom\">></option>\n</$select>\n\n<$link to=\"$:/config/Navigation/openLinkFromOutsideRiver\"><<lingo \"OutsideRiver/Hint\">></$link>\n\n<$select tiddler=\"$:/config/Navigation/openLinkFromOutsideRiver\">\n <option value=\"top\"><<lingo \"OpenAtTop\">></option>\n <option value=\"bottom\"><<lingo \"OpenAtBottom\">></option>\n</$select>\n"},"$:/core/ui/ControlPanel/Settings/MissingLinks":{"tags":"$:/tags/ControlPanel/Settings","caption":"{{$:/language/ControlPanel/Settings/MissingLinks/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Settings/MissingLinks/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/MissingLinks\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/MissingLinks\"><<lingo Description>></$link> </$checkbox>\n\n"},"$:/core/ui/ControlPanel/Settings/NavigationAddressBar":{"tags":"$:/tags/ControlPanel/Settings","caption":"{{$:/language/ControlPanel/Settings/NavigationAddressBar/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Settings/NavigationAddressBar/\n\n<$link to=\"$:/config/Navigation/UpdateAddressBar\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateAddressBar\" value=\"permaview\"> <<lingo Permaview/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateAddressBar\" value=\"permalink\"> <<lingo Permalink/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateAddressBar\" value=\"no\"> <<lingo No/Description>> </$radio>\n"},"$:/core/ui/ControlPanel/Settings/NavigationHistory":{"tags":"$:/tags/ControlPanel/Settings","caption":"{{$:/language/ControlPanel/Settings/NavigationHistory/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Settings/NavigationHistory/\n<$link to=\"$:/config/Navigation/UpdateHistory\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateHistory\" value=\"yes\"> <<lingo Yes/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Navigation/UpdateHistory\" value=\"no\"> <<lingo No/Description>> </$radio>\n"},"$:/core/ui/ControlPanel/Settings/NavigationPermalinkviewMode":{"tags":"$:/tags/ControlPanel/Settings","caption":"{{$:/language/ControlPanel/Settings/NavigationPermalinkviewMode/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Settings/NavigationPermalinkviewMode/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/Navigation/Permalinkview/CopyToClipboard\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/Navigation/Permalinkview/CopyToClipboard\"><<lingo CopyToClipboard/Description>></$link> </$checkbox>\n\n<$checkbox tiddler=\"$:/config/Navigation/Permalinkview/UpdateAddressBar\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/Navigation/Permalinkview/UpdateAddressBar\"><<lingo UpdateAddressBar/Description>></$link> </$checkbox>\n"},"$:/core/ui/ControlPanel/Settings/PerformanceInstrumentation":{"tags":"$:/tags/ControlPanel/Settings","caption":"{{$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Settings/PerformanceInstrumentation/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/Performance/Instrumentation\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> <$link to=\"$:/config/Performance/Instrumentation\"><<lingo Description>></$link> </$checkbox>\n"},"$:/core/ui/ControlPanel/Settings/TitleLinks":{"tags":"$:/tags/ControlPanel/Settings","caption":"{{$:/language/ControlPanel/Settings/TitleLinks/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Settings/TitleLinks/\n<$link to=\"$:/config/Tiddlers/TitleLinks\"><<lingo Hint>></$link>\n\n<$radio tiddler=\"$:/config/Tiddlers/TitleLinks\" value=\"yes\"> <<lingo Yes/Description>> </$radio>\n\n<$radio tiddler=\"$:/config/Tiddlers/TitleLinks\" value=\"no\"> <<lingo No/Description>> </$radio>\n"},"$:/core/ui/ControlPanel/Settings/ToolbarButtonStyle":{"tags":"$:/tags/ControlPanel/Settings","caption":"{{$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtonStyle/\n<$link to=\"$:/config/Toolbar/ButtonClass\"><<lingo \"Hint\">></$link>\n\n<$select tiddler=\"$:/config/Toolbar/ButtonClass\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ToolbarButtonStyle]]\">\n<option value={{!!text}}>{{!!caption}}</option>\n</$list>\n</$select>\n"},"$:/core/ui/ControlPanel/Settings/ToolbarButtons":{"tags":"$:/tags/ControlPanel/Settings","caption":"{{$:/language/ControlPanel/Settings/ToolbarButtons/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Settings/ToolbarButtons/\n<<lingo Hint>>\n\n<$checkbox tiddler=\"$:/config/Toolbar/Icons\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"yes\"> <$link to=\"$:/config/Toolbar/Icons\"><<lingo Icons/Description>></$link> </$checkbox>\n\n<$checkbox tiddler=\"$:/config/Toolbar/Text\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> <$link to=\"$:/config/Toolbar/Text\"><<lingo Text/Description>></$link> </$checkbox>\n"},"$:/core/ui/ControlPanel/Settings":{"tags":"$:/tags/ControlPanel","caption":"{{$:/language/ControlPanel/Settings/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/Settings/\n\n<<lingo Hint>>\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Settings]]\">\n\n<div style=\"border-top:1px solid #eee;\">\n\n!! <$link><$transclude field=\"caption\"/></$link>\n\n<$transclude/>\n\n</div>\n\n</$list>\n"},"$:/core/ui/ControlPanel/StoryView":{"tags":"$:/tags/ControlPanel/Appearance","caption":"{{$:/language/ControlPanel/StoryView/Caption}}","text":"{{$:/snippets/viewswitcher}}\n"},"$:/core/ui/ControlPanel/Stylesheets":{"tags":"$:/tags/ControlPanel/Advanced","caption":"{{$:/language/ControlPanel/Stylesheets/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/\n\n<<lingo Stylesheets/Hint>>\n\n{{$:/snippets/peek-stylesheets}}\n"},"$:/core/ui/ControlPanel/Theme":{"tags":"$:/tags/ControlPanel/Appearance","caption":"{{$:/language/ControlPanel/Theme/Caption}}","text":"{{$:/snippets/themeswitcher}}\n"},"$:/core/ui/ControlPanel/TiddlerFields":{"tags":"$:/tags/ControlPanel/Advanced","caption":"{{$:/language/ControlPanel/TiddlerFields/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/\n\n<<lingo TiddlerFields/Hint>>\n\n{{$:/snippets/allfields}}"},"$:/core/ui/ControlPanel/Toolbars/EditToolbar":{"tags":"$:/tags/ControlPanel/Toolbars","caption":"{{$:/language/ControlPanel/Toolbars/EditToolbar/Caption}}","text":"\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/EditToolbarButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/EditToolbar/Hint}}\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/EditToolbar\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/ItemTemplate\"/>\n\n</$set>\n\n</$set>"},"$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate":{"text":"\\define config-title()\n$(config-base)$$(currentTiddler)$\n\\end\n\n<$draggable tiddler=<<currentTiddler>>>\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <span class=\"tc-icon-wrapper\"><$transclude tiddler={{!!icon}}/></span> <$transclude field=\"caption\"/> -- <i class=\"tc-muted\"><$transclude field=\"description\"/></i>\n</$draggable>\n"},"$:/core/ui/ControlPanel/Toolbars/EditorToolbar":{"tags":"$:/tags/ControlPanel/Toolbars","caption":"{{$:/language/ControlPanel/Toolbars/EditorToolbar/Caption}}","text":"\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/EditorToolbarButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/EditorToolbar/Hint}}\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/EditorToolbar\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/EditorItemTemplate\"/>\n"},"$:/core/ui/ControlPanel/Toolbars/ItemTemplate":{"text":"\\define config-title()\n$(config-base)$$(currentTiddler)$\n\\end\n\n<$draggable tiddler=<<currentTiddler>>>\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <span class=\"tc-icon-wrapper\"> <$transclude field=\"caption\"/> <i class=\"tc-muted\">-- <$transclude field=\"description\"/></i></span>\n</$draggable>\n"},"$:/core/ui/ControlPanel/Toolbars/PageControls":{"tags":"$:/tags/ControlPanel/Toolbars","caption":"{{$:/language/ControlPanel/Toolbars/PageControls/Caption}}","text":"\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/PageControlButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/PageControls/Hint}}\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/PageControls\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/ItemTemplate\"/>\n\n</$set>\n\n</$set>\n"},"$:/core/ui/ControlPanel/Toolbars/ViewToolbar":{"tags":"$:/tags/ControlPanel/Toolbars","caption":"{{$:/language/ControlPanel/Toolbars/ViewToolbar/Caption}}","text":"\\define lingo-base() $:/language/TiddlerInfo/\n\n\\define config-base() $:/config/ViewToolbarButtons/Visibility/\n\n{{$:/language/ControlPanel/Toolbars/ViewToolbar/Hint}}\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$macrocall $name=\"list-tagged-draggable\" tag=\"$:/tags/ViewToolbar\" itemTemplate=\"$:/core/ui/ControlPanel/Toolbars/ItemTemplate\"/>\n\n</$set>\n\n</$set>\n"},"$:/core/ui/ControlPanel/Toolbars":{"tags":"$:/tags/ControlPanel/Appearance","caption":"{{$:/language/ControlPanel/Toolbars/Caption}}","text":"{{$:/language/ControlPanel/Toolbars/Hint}}\n\n<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Toolbars]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Toolbars/ViewToolbar\" class=\"tc-vertical\" explicitState=\"$:/state/tabs/controlpanel/toolbars-1345989671\"/>\n</div>\n"},"$:/ControlPanel":{"icon":"$:/core/images/options-button","color":"#bbb","text":"<div class=\"tc-control-panel\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Info\" explicitState=\"$:/state/tab-1749438307\"/>\n</div>\n"},"$:/core/ui/DefaultSearchResultList":{"tags":"$:/tags/SearchResults","caption":"{{$:/language/Search/DefaultResults/Caption}}","first-search-filter":"[!is[system]search:title<userInput>sort[title]limit[250]]","second-search-filter":"[!is[system]search<userInput>sort[title]limit[250]]","text":"\\define searchResultList()\n//<small>{{$:/language/Search/Matches/Title}}</small>//\n\n<$list filter=\"[<userInput>minlength[1]]\" variable=\"ignore\">\n<$list filter={{{ [<configTiddler>get[first-search-filter]] }}}>\n<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[<searchListState>get[text]] +[then[]else[tc-list-item-selected]] }}}>\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</span>\n</$list>\n</$list>\n\n//<small>{{$:/language/Search/Matches/All}}</small>//\n\n<$list filter=\"[<userInput>minlength[1]]\" variable=\"ignore\">\n<$list filter={{{ [<configTiddler>get[second-search-filter]] }}}>\n<span class={{{[<currentTiddler>addsuffix[-secondaryList]] -[<searchListState>get[text]] +[then[]else[tc-list-item-selected]] }}}>\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</span>\n</$list>\n</$list>\n\n\\end\n<<searchResultList>>\n"},"$:/core/ui/EditTemplate/body/preview/diffs-current":{"tags":"$:/tags/EditPreview","caption":"differences from current","list-after":"$:/core/ui/EditTemplate/body/preview/output","text":"<$list filter=\"[<currentTiddler>!is[image]]\" emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}>\n\n<$macrocall $name=\"compareTiddlerText\" sourceTiddlerTitle={{!!draft.of}} destTiddlerTitle=<<currentTiddler>>/>\n\n</$list>\n\n"},"$:/core/ui/EditTemplate/body/preview/diffs-shadow":{"tags":"$:/tags/EditPreview","caption":"differences from shadow (if any)","list-after":"$:/core/ui/EditTemplate/body/preview/output","text":"<$list filter=\"[<currentTiddler>!is[image]]\" emptyMessage={{$:/core/ui/EditTemplate/body/preview/output}}>\n\n<$macrocall $name=\"compareTiddlerText\" sourceTiddlerTitle={{{ [{!!draft.of}shadowsource[]] }}} sourceSubTiddlerTitle={{!!draft.of}} destTiddlerTitle=<<currentTiddler>>/>\n\n</$list>\n\n"},"$:/core/ui/EditTemplate/body/preview/output":{"tags":"$:/tags/EditPreview","caption":"{{$:/language/EditTemplate/Body/Preview/Type/Output}}","text":"\\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]]\n<$set name=\"tv-tiddler-preview\" value=\"yes\">\n\n<$transclude />\n\n</$set>\n"},"$:/state/showeditpreview":{"text":"no"},"$:/core/ui/EditTemplate/body/editor":{"text":"<$edit\n\n field=\"text\"\n class=\"tc-edit-texteditor tc-edit-texteditor-body\"\n placeholder={{$:/language/EditTemplate/Body/Placeholder}}\n tabindex={{$:/config/EditTabIndex}}\n focus={{{ [{$:/config/AutoFocus}match[text]then[true]] ~[[false]] }}}\n cancelPopups=\"yes\"\n\n><$set\n\n name=\"targetTiddler\"\n value=<<currentTiddler>>\n\n><$list\n\n filter=\"[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]]\"\n\n><$reveal\n\n type=\"nomatch\"\n state=<<config-visibility-title>>\n text=\"hide\"\n class=\"tc-text-editor-toolbar-item-wrapper\"\n\n><$transclude\n\n tiddler=\"$:/core/ui/EditTemplate/body/toolbar/button\"\n mode=\"inline\"\n\n/></$reveal></$list></$set></$edit>\n"},"$:/core/ui/EditTemplate/body/toolbar/button":{"text":"\\define toolbar-button-icon()\n<$list\n\n filter=\"[all[current]!has[custom-icon]]\"\n variable=\"no-custom-icon\"\n\n><$transclude\n\n tiddler={{!!icon}}\n\n/></$list>\n\\end\n\n\\define toolbar-button-tooltip()\n{{!!description}}<$macrocall $name=\"displayshortcuts\" $output=\"text/plain\" shortcuts={{!!shortcuts}} prefix=\"` - [\" separator=\"] [\" suffix=\"]`\"/>\n\\end\n\n\\define toolbar-button()\n<$list\n\n filter={{!!condition}}\n variable=\"list-condition\"\n\n><$wikify\n\n name=\"tooltip-text\"\n text=<<toolbar-button-tooltip>>\n mode=\"inline\"\n output=\"text\"\n\n><$list\n\n filter=\"[all[current]!has[dropdown]]\"\n variable=\"no-dropdown\"\n\n><$button\n\n class=\"tc-btn-invisible $(buttonClasses)$\"\n tooltip=<<tooltip-text>>\n actions={{!!actions}}\n\n><span\n\n data-tw-keyboard-shortcut={{!!shortcuts}}\n\n/><<toolbar-button-icon>><$transclude\n\n tiddler=<<currentTiddler>>\n field=\"text\"\n\n/></$button></$list><$list\n\n filter=\"[all[current]has[dropdown]]\"\n variable=\"dropdown\"\n\n><$set\n\n name=\"dropdown-state\"\n value=<<qualify \"$:/state/EditorToolbarDropdown\">>\n\n><$button\n\n popup=<<dropdown-state>>\n class=\"tc-popup-keep tc-btn-invisible $(buttonClasses)$\"\n selectedClass=\"tc-selected\"\n tooltip=<<tooltip-text>>\n actions={{!!actions}}\n\n><span\n\n data-tw-keyboard-shortcut={{!!shortcuts}}\n\n/><<toolbar-button-icon>><$transclude\n\n tiddler=<<currentTiddler>>\n field=\"text\"\n\n/></$button><$reveal\n\n state=<<dropdown-state>>\n type=\"popup\"\n position=\"below\"\n animate=\"yes\"\n tag=\"span\"\n\n><div\n\n class=\"tc-drop-down tc-popup-keep\"\n\n><$transclude\n\n tiddler={{!!dropdown}}\n mode=\"block\"\n\n/></div></$reveal></$set></$list></$wikify></$list>\n\\end\n\n\\define toolbar-button-outer()\n<$set\n\n name=\"buttonClasses\"\n value={{!!button-classes}}\n\n><<toolbar-button>></$set>\n\\end\n\n<<toolbar-button-outer>>"},"$:/core/ui/EditTemplate/body":{"tags":"$:/tags/EditTemplate","text":"\\define lingo-base() $:/language/EditTemplate/Body/\n\\define config-visibility-title()\n$:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$\n\\end\n<$list filter=\"[all[current]has[_canonical_uri]]\">\n\n<div class=\"tc-message-box\">\n\n<<lingo External/Hint>>\n\n<a href={{!!_canonical_uri}}><$text text={{!!_canonical_uri}}/></a>\n\n<$edit-text field=\"_canonical_uri\" class=\"tc-edit-fields\" tabindex={{$:/config/EditTabIndex}} cancelPopups=\"yes\"></$edit-text>\n\n</div>\n\n</$list>\n\n<$list filter=\"[all[current]!has[_canonical_uri]]\">\n\n<$reveal state=\"$:/state/showeditpreview\" type=\"match\" text=\"yes\">\n\n<div class=\"tc-tiddler-preview\">\n\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/editor\" mode=\"inline\"/>\n\n<div class=\"tc-tiddler-preview-preview\">\n\n<$transclude tiddler={{$:/state/editpreviewtype}} mode=\"inline\">\n\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/preview/output\" mode=\"inline\"/>\n\n</$transclude>\n\n</div>\n\n</div>\n\n</$reveal>\n\n<$reveal state=\"$:/state/showeditpreview\" type=\"nomatch\" text=\"yes\">\n\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/editor\" mode=\"inline\"/>\n\n</$reveal>\n\n</$list>\n"},"$:/core/ui/EditTemplate/controls":{"tags":"$:/tags/EditTemplate","text":"\\define config-title()\n$:/config/EditToolbarButtons/Visibility/$(listItem)$\n\\end\n<div class=\"tc-tiddler-title tc-tiddler-edit-title\">\n<$view field=\"title\"/>\n<span class=\"tc-tiddler-controls tc-titlebar\"><$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]\" variable=\"listItem\"><$reveal type=\"nomatch\" state=<<config-title>> text=\"hide\"><$transclude tiddler=<<listItem>>/></$reveal></$list></span>\n<div style=\"clear: both;\"></div>\n</div>\n"},"$:/core/ui/EditTemplate/fields":{"tags":"$:/tags/EditTemplate","text":"\\define lingo-base() $:/language/EditTemplate/\n\\define config-title()\n$:/config/EditTemplateFields/Visibility/$(currentField)$\n\\end\n\n\\define config-filter()\n[[hide]] -[title{$(config-title)$}]\n\\end\n\n\\define current-tiddler-new-field-selector()\n[data-tiddler-title=\"$(currentTiddlerCSSescaped)$\"] .tc-edit-field-add-name-wrapper input\n\\end\n\n\\define new-field-actions()\n<$action-sendmessage $message=\"tm-add-field\" $name={{{ [<newFieldNameTiddler>get[text]] }}} $value={{{ [<newFieldValueTiddler>get[text]] }}}/>\n<$action-deletetiddler $filter=\"[<newFieldNameTiddler>] [<newFieldValueTiddler>] [<storeTitle>] [<searchListState>]\"/>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=<<current-tiddler-new-field-selector>>/>\n\\end\n\n\\define delete-state-tiddlers() <$action-deletetiddler $filter=\"[<newFieldNameTiddler>] [<storeTitle>] [<searchListState>]\"/>\n\n\\define cancel-search-actions-inner()\n<$list filter=\"[<storeTitle>has[text]] [<newFieldNameTiddler>has[text]]\" variable=\"ignore\" emptyMessage=\"\"\"<<cancel-delete-tiddler-actions \"cancel\">>\"\"\">\n<<delete-state-tiddlers>>\n</$list>\n\\end\n\n\\define cancel-search-actions()\n<$set name=\"userInput\" value={{{ [<storeTitle>get[text]] }}}>\n<$list filter=\"[<newFieldNameTiddler>get[text]!match<userInput>]\" emptyMessage=\"\"\"<<cancel-search-actions-inner>>\"\"\">\n<$action-setfield $tiddler=<<newFieldNameTiddler>> text=<<userInput>>/><$action-setfield $tiddler=<<refreshTitle>> text=\"yes\"/>\n</$list>\n</$set>\n\\end\n\n\\define new-field()\n<$vars name={{{ [<newFieldNameTiddler>get[text]] }}}>\n<$reveal type=\"nomatch\" text=\"\" default=<<name>>>\n<$button tooltip=<<lingo Fields/Add/Button/Hint>>>\n<$action-sendmessage $message=\"tm-add-field\"\n$name=<<name>>\n$value={{{ [<newFieldValueTiddler>get[text]] }}}/>\n<$action-deletetiddler $filter=\"[<newFieldNameTiddler>] [<newFieldValueTiddler>] [<storeTitle>] [<searchListState>]\"/>\n<<lingo Fields/Add/Button>>\n</$button>\n</$reveal>\n<$reveal type=\"match\" text=\"\" default=<<name>>>\n<$button>\n<<lingo Fields/Add/Button>>\n</$button>\n</$reveal>\n</$vars>\n\\end\n\\whitespace trim\n\n<div class=\"tc-edit-fields\">\n<table class={{{ [all[current]fields[]] :filter[lookup[$:/config/EditTemplateFields/Visibility/]!match[hide]] +[count[]!match[0]] +[then[tc-edit-fields]] ~[[tc-edit-fields tc-edit-fields-small]] }}}>\n<tbody>\n<$list filter=\"[all[current]fields[]] +[sort[title]]\" variable=\"currentField\" storyview=\"pop\">\n<$list filter=<<config-filter>> variable=\"temp\">\n<tr class=\"tc-edit-field\">\n<td class=\"tc-edit-field-name\">\n<$text text=<<currentField>>/>:</td>\n<td class=\"tc-edit-field-value\">\n<$keyboard key=\"((delete-field))\" actions=\"\"\"<$action-deletefield $field=<<currentField>>/><$set name=\"currentTiddlerCSSescaped\" value={{{ [<currentTiddler>escapecss[]] }}}><$action-sendmessage $message=\"tm-focus-selector\" $param=<<current-tiddler-new-field-selector>>/></$set>\"\"\">\n<$edit-text tiddler=<<currentTiddler>> field=<<currentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} tabindex={{$:/config/EditTabIndex}} cancelPopups=\"yes\"/>\n</$keyboard>\n</td>\n<td class=\"tc-edit-field-remove\">\n<$button class=\"tc-btn-invisible\" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>\n<$action-deletefield $field=<<currentField>>/><$set name=\"currentTiddlerCSSescaped\" value={{{ [<currentTiddler>escapecss[]] }}}><$action-sendmessage $message=\"tm-focus-selector\" $param=<<current-tiddler-new-field-selector>>/></$set>\n{{$:/core/images/delete-button}}\n</$button>\n</td>\n</tr>\n</$list>\n</$list>\n</tbody>\n</table>\n</div>\n\n<$fieldmangler>\n<div class=\"tc-edit-field-add\">\n<em class=\"tc-edit tc-small-gap-right\">\n<<lingo Fields/Add/Prompt>>\n</em>\n<$vars refreshTitle=<<qualify \"$:/temp/fieldname/refresh\">> storeTitle=<<newFieldNameInputTiddler>> searchListState=<<newFieldNameSelectionTiddler>>>\n<div class=\"tc-edit-field-add-name-wrapper\">\n<$macrocall $name=\"keyboard-driven-input\" tiddler=<<newFieldNameTiddler>> storeTitle=<<storeTitle>> refreshTitle=<<refreshTitle>>\n\t\tselectionStateTitle=<<searchListState>> tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}}\n\t\tfocusPopup=<<qualify \"$:/state/popup/field-dropdown\">> class=\"tc-edit-texteditor tc-popup-handle\" tabindex={{$:/config/EditTabIndex}}\n\t\tfocus={{{ [{$:/config/AutoFocus}match[fields]then[true]] ~[[false]] }}} cancelPopups=\"yes\"\n\t\tconfigTiddlerFilter=\"[[$:/config/EditMode/fieldname-filter]]\" inputCancelActions=<<cancel-search-actions>> />\n<$button popup=<<qualify \"$:/state/popup/field-dropdown\">> class=\"tc-btn-invisible tc-btn-dropdown tc-small-gap\" tooltip={{$:/language/EditTemplate/Field/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Field/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button>\n<$reveal state=<<qualify \"$:/state/popup/field-dropdown\">> type=\"nomatch\" text=\"\" default=\"\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$linkcatcher to=<<newFieldNameTiddler>>>\n<div class=\"tc-dropdown-item\">\n<<lingo Fields/Add/Dropdown/User>>\n</div>\n<$set name=\"newFieldName\" value={{{ [<storeTitle>get[text]] }}}>\n<$list filter=\"[!is[shadow]!is[system]fields[]search:title<newFieldName>sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type\" variable=\"currentField\">\n<$list filter=\"[<currentField>addsuffix[-primaryList]] -[<searchListState>get[text]]\" emptyMessage=\"\"\"<$link to=<<currentField>> class=\"tc-list-item-selected\"><$text text=<<currentField>>/></$link>\"\"\">\n<$link to=<<currentField>>>\n<$text text=<<currentField>>/>\n</$link>\n</$list>\n</$list>\n<div class=\"tc-dropdown-item\">\n<<lingo Fields/Add/Dropdown/System>>\n</div>\n<$list filter=\"[fields[]search:title<newFieldName>sort[]] -[!is[shadow]!is[system]fields[]]\" variable=\"currentField\">\n<$list filter=\"[<currentField>addsuffix[-secondaryList]] -[<searchListState>get[text]]\" emptyMessage=\"\"\"<$link to=<<currentField>> class=\"tc-list-item-selected\"><$text text=<<currentField>>/></$link>\"\"\">\n<$link to=<<currentField>>>\n<$text text=<<currentField>>/>\n</$link>\n</$list>\n</$list>\n</$set>\n</$linkcatcher>\n</$set>\n</div>\n</$reveal>\n</div>\n<span class=\"tc-edit-field-add-value tc-small-gap-right\">\n<$set name=\"currentTiddlerCSSescaped\" value={{{ [<currentTiddler>escapecss[]] }}}>\n<$keyboard key=\"((add-field))\" actions=<<new-field-actions>>>\n<$edit-text tiddler=<<newFieldValueTiddler>> tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class=\"tc-edit-texteditor\" tabindex={{$:/config/EditTabIndex}} cancelPopups=\"yes\"/>\n</$keyboard>\n</$set>\n</span>\n<span class=\"tc-edit-field-add-button\">\n<$macrocall $name=\"new-field\"/>\n</span>\n</$vars>\n</div>\n</$fieldmangler>\n"},"$:/core/ui/EditTemplate/shadow":{"tags":"$:/tags/EditTemplate","text":"\\define lingo-base() $:/language/EditTemplate/Shadow/\n\\define pluginLinkBody()\n<$link to=\"\"\"$(pluginTitle)$\"\"\">\n<$text text=\"\"\"$(pluginTitle)$\"\"\"/>\n</$link>\n\\end\n<$list filter=\"[all[current]get[draft.of]is[shadow]!is[tiddler]]\">\n\n<$list filter=\"[all[current]shadowsource[]]\" variable=\"pluginTitle\">\n\n<$set name=\"pluginLink\" value=<<pluginLinkBody>>>\n<div class=\"tc-message-box\">\n\n<<lingo Warning>>\n\n</div>\n</$set>\n</$list>\n\n</$list>\n\n<$list filter=\"[all[current]get[draft.of]is[shadow]is[tiddler]]\">\n\n<$list filter=\"[all[current]shadowsource[]]\" variable=\"pluginTitle\">\n\n<$set name=\"pluginLink\" value=<<pluginLinkBody>>>\n<div class=\"tc-message-box\">\n\n<<lingo OverriddenWarning>>\n\n</div>\n</$set>\n</$list>\n\n</$list>"},"$:/core/ui/EditTemplate/tags":{"tags":"$:/tags/EditTemplate","text":"\\whitespace trim\n\n\\define lingo-base() $:/language/EditTemplate/\n\n\\define tag-styles()\nbackground-color:$(backgroundColor)$;\nfill:$(foregroundColor)$;\ncolor:$(foregroundColor)$;\n\\end\n\n\\define tag-body-inner(colour,fallbackTarget,colourA,colourB,icon,tagField:\"tags\")\n\\whitespace trim\n<$vars foregroundColor=<<contrastcolour target:\"\"\"$colour$\"\"\" fallbackTarget:\"\"\"$fallbackTarget$\"\"\" colourA:\"\"\"$colourA$\"\"\" colourB:\"\"\"$colourB$\"\"\">> backgroundColor=\"\"\"$colour$\"\"\">\n<span style=<<tag-styles>> class=\"tc-tag-label tc-tag-list-item\">\n<$transclude tiddler=\"\"\"$icon$\"\"\"/><$view field=\"title\" format=\"text\" />\n<$button class=\"tc-btn-invisible tc-remove-tag-button\" style=<<tag-styles>>><$action-listops $tiddler=<<saveTiddler>> $field=<<__tagField__>> $subfilter=\"-[{!!title}]\"/>{{$:/core/images/close-button}}</$button>\n</span>\n</$vars>\n\\end\n\n\\define tag-body(colour,palette,icon,tagField:\"tags\")\n<$macrocall $name=\"tag-body-inner\" colour=\"\"\"$colour$\"\"\" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} icon=\"\"\"$icon$\"\"\" tagField=<<__tagField__>>/>\n\\end\n\n\\define edit-tags-template(tagField:\"tags\")\n\\whitespace trim\n<div class=\"tc-edit-tags\">\n<$list filter=\"[list[!!$tagField$]sort[title]]\" storyview=\"pop\">\n<$macrocall $name=\"tag-body\" colour={{!!color}} palette={{$:/palette}} icon={{!!icon}} tagField=<<__tagField__>>/>\n</$list>\n<$vars tabIndex={{$:/config/EditTabIndex}} cancelPopups=\"yes\">\n<$macrocall $name=\"tag-picker\" tagField=<<__tagField__>>/>\n</$vars>\n</div>\n\\end\n<$set name=\"saveTiddler\" value=<<currentTiddler>>>\n<$macrocall $name=\"edit-tags-template\" tagField=<<tagField>>/>\n</$set>\n"},"$:/core/ui/EditTemplate/title":{"tags":"$:/tags/EditTemplate","text":"<$edit-text field=\"draft.title\" class=\"tc-titlebar tc-edit-texteditor\" focus={{{ [{$:/config/AutoFocus}match[title]then[true]] ~[[false]] }}} tabindex={{$:/config/EditTabIndex}} cancelPopups=\"yes\"/>\n\n<$vars pattern=\"\"\"[\\|\\[\\]{}]\"\"\" bad-chars=\"\"\"`| [ ] { }`\"\"\">\n\n<$list filter=\"[all[current]regexp:draft.title<pattern>]\" variable=\"listItem\">\n\n<div class=\"tc-message-box\">\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}\n\n</div>\n\n</$list>\n\n</$vars>\n\n<$reveal state=\"!!draft.title\" type=\"nomatch\" text={{!!draft.of}} tag=\"div\">\n\n<$list filter=\"[{!!draft.title}!is[missing]]\" variable=\"listItem\">\n\n<div class=\"tc-message-box\">\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}\n\n</div>\n\n</$list>\n\n<$list filter=\"[{!!draft.of}!is[missing]]\" variable=\"listItem\">\n\n<$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}>\n\n<$checkbox tiddler=\"$:/config/RelinkOnRename\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> {{$:/language/EditTemplate/Title/Relink/Prompt}}</$checkbox>\n\n<$list filter=\"[title<fromTitle>backlinks[]limit[1]]\" variable=\"listItem\">\n\n<$vars stateTiddler=<<qualify \"$:/state/edit/references\">> >\n\n<$reveal type=\"nomatch\" state=<<stateTiddler>> text=\"show\">\n<$button set=<<stateTiddler>> setTo=\"show\" class=\"tc-btn-invisible\">{{$:/core/images/right-arrow}} \n<<lingo EditTemplate/Title/References/Prompt>></$button>\n</$reveal>\n<$reveal type=\"match\" state=<<stateTiddler>> text=\"show\">\n<$button set=<<stateTiddler>> setTo=\"hide\" class=\"tc-btn-invisible\">{{$:/core/images/down-arrow}} \n<<lingo EditTemplate/Title/References/Prompt>></$button>\n</$reveal>\n\n<$reveal type=\"match\" state=<<stateTiddler>> text=\"show\">\n<$tiddler tiddler=<<fromTitle>> >\n<$transclude tiddler=\"$:/core/ui/TiddlerInfo/References\"/>\n</$tiddler>\n</$reveal>\n\n</$vars>\n\n</$list>\n\n</$vars>\n\n</$list>\n\n</$reveal>\n"},"$:/core/ui/EditTemplate/type":{"tags":"$:/tags/EditTemplate","first-search-filter":"[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]sort[description]sort[group-sort]removeprefix[$:/language/Docs/Types/]search<userInput>]","text":"\\define lingo-base() $:/language/EditTemplate/\n\\define input-cancel-actions() <$list filter=\"[<storeTitle>get[text]] [<currentTiddler>get[type]] +[limit[1]]\" emptyMessage=\"\"\"<<cancel-delete-tiddler-actions \"cancel\">>\"\"\"><$action-sendmessage $message=\"tm-remove-field\" $param=\"type\"/><$action-deletetiddler $filter=\"[<typeInputTiddler>] [<refreshTitle>] [<typeSelectionTiddler>]\"/></$list>\n\\whitespace trim\n<$set name=\"refreshTitle\" value=<<qualify \"$:/temp/type-search/refresh\">>>\n<div class=\"tc-edit-type-selector-wrapper\">\n<em class=\"tc-edit tc-small-gap-right\"><<lingo Type/Prompt>></em>\n<div class=\"tc-type-selector-dropdown-wrapper\">\n<div class=\"tc-type-selector\"><$fieldmangler>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=<<currentTiddler>> storeTitle=<<typeInputTiddler>> refreshTitle=<<refreshTitle>> selectionStateTitle=<<typeSelectionTiddler>> field=\"type\" tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=<<qualify \"$:/state/popup/type-dropdown\">> class=\"tc-edit-typeeditor tc-edit-texteditor tc-popup-handle\" tabindex={{$:/config/EditTabIndex}} focus={{{ [{$:/config/AutoFocus}match[type]then[true]] ~[[false]] }}} cancelPopups=\"yes\" configTiddlerFilter=\"[[$:/core/ui/EditTemplate/type]]\" inputCancelActions=<<input-cancel-actions>>/><$button popup=<<qualify \"$:/state/popup/type-dropdown\">> class=\"tc-btn-invisible tc-btn-dropdown tc-small-gap\" tooltip={{$:/language/EditTemplate/Type/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Type/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button><$button message=\"tm-remove-field\" param=\"type\" class=\"tc-btn-invisible tc-btn-icon\" tooltip={{$:/language/EditTemplate/Type/Delete/Hint}} aria-label={{$:/language/EditTemplate/Type/Delete/Caption}}>{{$:/core/images/delete-button}}<$action-deletetiddler $filter=\"[<storeTitle>] [<refreshTitle>] [<selectionStateTitle>]\"/></$button>\n</$fieldmangler></div>\n\n<div class=\"tc-block-dropdown-wrapper\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$reveal state=<<qualify \"$:/state/popup/type-dropdown\">> type=\"nomatch\" text=\"\" default=\"\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<$linkcatcher to=\"!!type\">\n<$list filter='[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]each[group]sort[group-sort]]'>\n<div class=\"tc-dropdown-item\">\n<$text text={{!!group}}/>\n</div>\n<$set name=\"userInput\" value={{{ [<typeInputTiddler>get[text]] }}}>\n<$list filter=\"[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]group{!!group}] +[sort[description]] +[removeprefix[$:/language/Docs/Types/]] +[search<userInput>]\"><span class={{{ [<currentTiddler>addsuffix[-primaryList]] -[<typeSelectionTiddler>get[text]] +[then[]else[tc-list-item-selected]] }}}><$link to={{{ [<currentTiddler>addprefix[$:/language/Docs/Types/]get[name]] }}}><$view tiddler={{{ [<currentTiddler>addprefix[$:/language/Docs/Types/]] }}} field=\"description\"/> (<$view tiddler={{{ [<currentTiddler>addprefix[$:/language/Docs/Types/]] }}} field=\"name\"/>)</$link></span>\n</$list>\n</$set>\n</$list>\n</$linkcatcher>\n</div>\n</$reveal>\n</$set>\n</div>\n</div>\n</div>\n</$set>\n"},"$:/core/ui/EditTemplate":{"text":"\\define delete-edittemplate-state-tiddlers() <$action-deletetiddler $filter=\"[<newFieldNameTiddler>] [<newFieldValueTiddler>] [<newFieldNameInputTiddler>] [<newFieldNameSelectionTiddler>] [<newTagNameTiddler>] [<newTagNameInputTiddler>] [<newTagNameSelectionTiddler>] [<typeInputTiddler>] [<typeSelectionTiddler>]\"/>\n\\define save-tiddler-actions()\n<$action-sendmessage $message=\"tm-add-tag\" $param={{{ [<newTagNameTiddler>get[text]] }}}/>\n<$action-sendmessage $message=\"tm-add-field\" $name={{{ [<newFieldNameTiddler>get[text]] }}} $value={{{ [<newFieldValueTiddler>get[text]] }}}/>\n<<delete-edittemplate-state-tiddlers>>\n<$action-sendmessage $message=\"tm-save-tiddler\"/>\n\\end\n\\define cancel-delete-tiddler-actions(message)\n<<delete-edittemplate-state-tiddlers>>\n<$action-sendmessage $message=\"tm-$message$-tiddler\"/>\n\\end\n<div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-edit-frame [<currentTiddler>is[tiddler]then[tc-tiddler-exists]] [<currentTiddler>is[missing]!is[shadow]then[tc-tiddler-missing]] [<currentTiddler>is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [<currentTiddler>is[system]then[tc-tiddler-system]] [{!!class}] [<currentTiddler>tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}>\n<$fieldmangler>\n<$vars storyTiddler=<<currentTiddler>> newTagNameTiddler=<<qualify \"$:/temp/NewTagName\">> newFieldNameTiddler=<<qualify \"$:/temp/NewFieldName\">> newFieldValueTiddler=<<qualify \"$:/temp/NewFieldValue\">> newFieldNameInputTiddler=<<qualify \"$:/temp/NewFieldName/input\">> newFieldNameSelectionTiddler=<<qualify \"$:/temp/NewFieldName/selected-item\">> newTagNameInputTiddler=<<qualify \"$:/temp/NewTagName/input\">> newTagNameSelectionTiddler=<<qualify \"$:/temp/NewTagName/selected-item\">> typeInputTiddler=<<qualify \"$:/temp/Type/input\">> typeSelectionTiddler=<<qualify \"$:/temp/Type/selected-item\">>>\n<$keyboard key=\"((cancel-edit-tiddler))\" actions=<<cancel-delete-tiddler-actions \"cancel\">>>\n<$keyboard key=\"((save-tiddler))\" actions=<<save-tiddler-actions>>>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditTemplate]!has[draft.of]]\" variable=\"listItem\">\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n<$transclude tiddler=<<listItem>>/>\n</$set>\n</$list>\n</$keyboard>\n</$keyboard>\n</$vars>\n</$fieldmangler>\n</div>\n"},"$:/core/ui/Buttons/cancel":{"tags":"$:/tags/EditToolbar","caption":"{{$:/core/images/cancel-button}} {{$:/language/Buttons/Cancel/Caption}}","description":"{{$:/language/Buttons/Cancel/Hint}}","text":"\\whitespace trim\n<$button actions=<<cancel-delete-tiddler-actions \"cancel\">> tooltip={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/cancel-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Cancel/Caption}}/></span>\n</$list>\n</$button>\n"},"$:/core/ui/Buttons/delete":{"tags":"$:/tags/EditToolbar $:/tags/ViewToolbar","caption":"{{$:/core/images/delete-button}} {{$:/language/Buttons/Delete/Caption}}","description":"{{$:/language/Buttons/Delete/Hint}}","text":"\\whitespace trim\n<$button actions=<<cancel-delete-tiddler-actions \"delete\">> tooltip={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/delete-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Delete/Caption}}/></span>\n</$list>\n</$button>\n"},"$:/core/ui/Buttons/save":{"tags":"$:/tags/EditToolbar","caption":"{{$:/core/images/done-button}} {{$:/language/Buttons/Save/Caption}}","description":"{{$:/language/Buttons/Save/Hint}}","text":"\\define save-tiddler-button()\n\\whitespace trim\n<$fieldmangler><$button tooltip={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<<tv-config-toolbar-class>>>\n<<save-tiddler-actions>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/done-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Save/Caption}}/></span>\n</$list>\n</$button></$fieldmangler>\n\\end\n<<save-tiddler-button>>\n"},"$:/core/ui/EditorToolbar/bold":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/bold","caption":"{{$:/language/Buttons/Bold/Caption}}","description":"{{$:/language/Buttons/Bold/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((bold))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"''\"\n\tsuffix=\"''\"\n/>\n"},"$:/core/ui/EditorToolbar/clear-dropdown":{"text":"''{{$:/language/Buttons/Clear/Hint}}''\n\n<div class=\"tc-colour-chooser\">\n\n<$macrocall $name=\"colour-picker\" actions=\"\"\"\n\n<$action-sendmessage\n\t$message=\"tm-edit-bitmap-operation\"\n\t$param=\"clear\"\n\tcolour=<<colour-picker-value>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n\"\"\"/>\n\n</div>\n"},"$:/core/ui/EditorToolbar/clear":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/erase","caption":"{{$:/language/Buttons/Clear/Caption}}","description":"{{$:/language/Buttons/Clear/Hint}}","condition":"[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]","dropdown":"$:/core/ui/EditorToolbar/clear-dropdown","text":""},"$:/core/ui/EditorToolbar/editor-height-dropdown":{"text":"\\define lingo-base() $:/language/Buttons/EditorHeight/\n''<<lingo Hint>>''\n\n<$radio tiddler=\"$:/config/TextEditor/EditorHeight/Mode\" value=\"auto\"> {{$:/core/images/auto-height}} <<lingo Caption/Auto>></$radio>\n\n<$radio tiddler=\"$:/config/TextEditor/EditorHeight/Mode\" value=\"fixed\"> {{$:/core/images/fixed-height}} <<lingo Caption/Fixed>> <$edit-text tag=\"input\" tiddler=\"$:/config/TextEditor/EditorHeight/Height\" default=\"100px\"/></$radio>\n"},"$:/core/ui/EditorToolbar/editor-height":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/fixed-height","custom-icon":"yes","caption":"{{$:/language/Buttons/EditorHeight/Caption}}","description":"{{$:/language/Buttons/EditorHeight/Hint}}","condition":"[<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] [<targetTiddler>get[type]match[application/javascript]] [<targetTiddler>get[type]match[application/json]] [<targetTiddler>get[type]match[application/x-tiddler-dictionary]] [<targetTiddler>get[type]match[image/svg+xml]] +[first[]]","dropdown":"$:/core/ui/EditorToolbar/editor-height-dropdown","text":"<$reveal tag=\"span\" state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"fixed\">\n{{$:/core/images/fixed-height}}\n</$reveal>\n<$reveal tag=\"span\" state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"auto\">\n{{$:/core/images/auto-height}}\n</$reveal>\n"},"$:/core/ui/EditorToolbar/excise-dropdown":{"text":"\\define lingo-base() $:/language/Buttons/Excise/\n\n\\define body(config-title)\n''<<lingo Hint>>''\n\n<<lingo Caption/NewTitle>> <$edit-text tag=\"input\" tiddler=\"$config-title$/new-title\" default=\"\" focus=\"true\"/>\n\n<$set name=\"new-title\" value={{$config-title$/new-title}}>\n<$list filter=\"\"\"[<new-title>is[tiddler]]\"\"\">\n<div class=\"tc-error\">\n<<lingo Caption/TiddlerExists>>\n</div>\n</$list>\n</$set>\n\n<$checkbox tiddler=\"\"\"$config-title$/tagnew\"\"\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"false\"> <<lingo Caption/Tag>></$checkbox>\n\n<<lingo Caption/Replace>> <$select tiddler=\"\"\"$config-title$/type\"\"\" default=\"transclude\">\n<option value=\"link\"><<lingo Caption/Replace/Link>></option>\n<option value=\"transclude\"><<lingo Caption/Replace/Transclusion>></option>\n<option value=\"macro\"><<lingo Caption/Replace/Macro>></option>\n</$select>\n\n<$reveal state=\"\"\"$config-title$/type\"\"\" type=\"match\" text=\"macro\">\n<<lingo Caption/MacroName>> <$edit-text tag=\"input\" tiddler=\"\"\"$config-title$/macro-title\"\"\" default=\"translink\"/>\n</$reveal>\n\n<$button>\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"excise\"\n\ttitle={{$config-title$/new-title}}\n\ttype={{$config-title$/type}}\n\tmacro={{$config-title$/macro-title}}\n\ttagnew={{$config-title$/tagnew}}\n/>\n<$action-deletetiddler\n\t$tiddler=\"$config-title$/new-title\"\n/>\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n<<lingo Caption/Excise>>\n</$button>\n\\end\n\n<$macrocall $name=\"body\" config-title=<<qualify \"$:/state/Excise/\">>/>\n"},"$:/core/ui/EditorToolbar/excise":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/excise","caption":"{{$:/language/Buttons/Excise/Caption}}","description":"{{$:/language/Buttons/Excise/Hint}}","condition":"[<targetTiddler>type[]] [<targetTiddler>type[text/vnd.tiddlywiki]] +[first[]]","shortcuts":"((excise))","dropdown":"$:/core/ui/EditorToolbar/excise-dropdown","text":""},"$:/core/ui/EditorToolbar/heading-1":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/heading-1","caption":"{{$:/language/Buttons/Heading1/Caption}}","description":"{{$:/language/Buttons/Heading1/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","button-classes":"tc-text-editor-toolbar-item-start-group","shortcuts":"((heading-1))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"1\"\n/>\n"},"$:/core/ui/EditorToolbar/heading-2":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/heading-2","caption":"{{$:/language/Buttons/Heading2/Caption}}","description":"{{$:/language/Buttons/Heading2/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((heading-2))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"2\"\n/>\n"},"$:/core/ui/EditorToolbar/heading-3":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/heading-3","caption":"{{$:/language/Buttons/Heading3/Caption}}","description":"{{$:/language/Buttons/Heading3/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((heading-3))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"3\"\n/>\n"},"$:/core/ui/EditorToolbar/heading-4":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/heading-4","caption":"{{$:/language/Buttons/Heading4/Caption}}","description":"{{$:/language/Buttons/Heading4/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((heading-4))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"4\"\n/>\n"},"$:/core/ui/EditorToolbar/heading-5":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/heading-5","caption":"{{$:/language/Buttons/Heading5/Caption}}","description":"{{$:/language/Buttons/Heading5/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((heading-5))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"5\"\n/>\n"},"$:/core/ui/EditorToolbar/heading-6":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/heading-6","caption":"{{$:/language/Buttons/Heading6/Caption}}","description":"{{$:/language/Buttons/Heading6/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((heading-6))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"!\"\n\tcount=\"6\"\n/>\n"},"$:/core/ui/EditorToolbar/italic":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/italic","caption":"{{$:/language/Buttons/Italic/Caption}}","description":"{{$:/language/Buttons/Italic/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((italic))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"//\"\n\tsuffix=\"//\"\n/>\n"},"$:/core/ui/EditorToolbar/line-width-dropdown":{"text":"\\define lingo-base() $:/language/Buttons/LineWidth/\n\n\\define toolbar-line-width-inner()\n<$button tag=\"a\" tooltip=\"\"\"$(line-width)$\"\"\">\n\n<$action-setfield\n\t$tiddler=\"$:/config/BitmapEditor/LineWidth\"\n\t$value=\"$(line-width)$\"\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<div style=\"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;\"/>\n\n<span style=\"margin-left: 8px;\">\n\n<$text text=\"\"\"$(line-width)$\"\"\"/>\n\n<$reveal state=\"$:/config/BitmapEditor/LineWidth\" type=\"match\" text=\"\"\"$(line-width)$\"\"\" tag=\"span\">\n\n<$entity entity=\" \"/>\n\n<$entity entity=\"✓\"/>\n\n</$reveal>\n\n</span>\n\n</$button>\n\\end\n\n''<<lingo Hint>>''\n\n<$list filter={{$:/config/BitmapEditor/LineWidths}} variable=\"line-width\">\n\n<<toolbar-line-width-inner>>\n\n</$list>\n"},"$:/core/ui/EditorToolbar/line-width":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/line-width","caption":"{{$:/language/Buttons/LineWidth/Caption}}","description":"{{$:/language/Buttons/LineWidth/Hint}}","condition":"[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]","dropdown":"$:/core/ui/EditorToolbar/line-width-dropdown","text":"<$text text={{$:/config/BitmapEditor/LineWidth}}/>\n"},"$:/core/ui/EditorToolbar/link-dropdown":{"text":"\\define lingo-base() $:/language/Buttons/Link/\n\n\\define add-link-actions()\n<$action-sendmessage $message=\"tm-edit-text-operation\" $param=\"make-link\" text={{$(linkTiddler)$}} />\n<$action-deletetiddler $filter=\"[<dropdown-state>] [<searchTiddler>] [<linkTiddler>] [<storeTitle>] [<searchListState>]\"/>\n\\end\n\n\\define get-focus-selector() [data-tiddler-title=\"$(cssEscapedTitle)$\"] .tc-create-wikitext-link input\n\n\\define cancel-search-actions-inner()\n<$set name=\"userInput\" value={{{ [<storeTitle>get[text]] }}}><$list filter=\"[<searchTiddler>get[text]!match<userInput>]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[<searchTiddler>] [<linkTiddler>] [<storeTitle>] [<searchListState>]\"/>\"\"\"><$action-setfield $tiddler=<<searchTiddler>> text=<<userInput>>/><$action-setfield $tiddler=<<refreshTitle>> text=\"yes\"/></$list></$set>\n\\end\n\n\\define cancel-search-actions() <$list filter=\"[<storeTitle>!has[text]] +[<searchTiddler>!has[text]]\" emptyMessage=\"\"\"<<cancel-search-actions-inner>>\"\"\"><$action-sendmessage $message=\"tm-edit-text-operation\" $param=\"wrap-selection\" prefix=\"\" suffix=\"\"/></$list>\n\n\\define external-link()\n<$button class=\"tc-btn-invisible\" style=\"width: auto; display: inline-block; background-colour: inherit;\" actions=<<add-link-actions>>>\n{{$:/core/images/chevron-right}}\n</$button>\n\\end\n\n\\define set-next-input-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab/search-results/sidebar\" tag=\"$:/tags/SearchResults\" beforeafter=\"$beforeafter$\" defaultState={{$:/config/SearchResults/Default}} actions=\"\"\"<$action-setfield $tiddler=\"$:/state/search/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define body(config-title)\n''<<lingo Hint>>''\n\n<$vars searchTiddler=\"\"\"$config-title$/search\"\"\" linkTiddler=\"\"\"$config-title$/link\"\"\" linktext=\"\" searchListState=<<qualify \"$:/temp/link-search/selected-item\">> refreshTitle=<<qualify \"$:/temp/link-search/refresh\">> storeTitle=<<qualify \"$:/temp/link-search/input\">>>\n\n<$vars linkTiddler=<<searchTiddler>>>\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">> class=\"tc-create-wikitext-link\">\n<$macrocall $name=\"keyboard-driven-input\" tiddler=<<searchTiddler>> storeTitle=<<storeTitle>>\n\t\tselectionStateTitle=<<searchListState>> refreshTitle=<<refreshTitle>> type=\"search\" filterMinLength=\"1\"\n\t\ttag=\"input\" focus=\"true\" class=\"tc-popup-handle\" inputCancelActions=<<cancel-search-actions>> \n\t\tinputAcceptActions=<<add-link-actions>> placeholder={{$:/language/Search/Search}} default=\"\" \n\t\tconfigTiddlerFilter=\"[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]\" />\n</$keyboard>\n</$keyboard>\n<$reveal tag=\"span\" state=<<storeTitle>> type=\"nomatch\" text=\"\">\n<<external-link>>\n<$button class=\"tc-btn-invisible\" style=\"width: auto; display: inline-block; background-colour: inherit;\">\n<<cancel-search-actions>><$set name=\"cssEscapedTitle\" value={{{ [<storyTiddler>escapecss[]] }}}><$action-sendmessage $message=\"tm-focus-selector\" $param=<<get-focus-selector>>/></$set>\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</$vars>\n\n<$reveal tag=\"div\" state=<<storeTitle>> type=\"nomatch\" text=\"\">\n\n<$linkcatcher actions=<<add-link-actions>> to=<<linkTiddler>>>\n\n<$vars userInput={{{ [<storeTitle>get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}}>\n\n{{$:/core/ui/SearchResults}}\n\n</$vars>\n\n</$linkcatcher>\n\n</$reveal>\n\n</$vars>\n\n\\end\n\n<$macrocall $name=\"body\" config-title=<<qualify \"$:/state/Link/\">>/>\n"},"$:/core/ui/EditorToolbar/link":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/link","caption":"{{$:/language/Buttons/Link/Caption}}","description":"{{$:/language/Buttons/Link/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","button-classes":"tc-text-editor-toolbar-item-start-group","shortcuts":"((link))","dropdown":"$:/core/ui/EditorToolbar/link-dropdown","text":""},"$:/core/ui/EditorToolbar/linkify":{"caption":"{{$:/language/Buttons/Linkify/Caption}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","description":"{{$:/language/Buttons/Linkify/Hint}}","icon":"$:/core/images/linkify","list-before":"$:/core/ui/EditorToolbar/mono-block","shortcuts":"((linkify))","tags":"$:/tags/EditorToolbar","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"[[\"\n\tsuffix=\"]]\"\n/>\n"},"$:/core/ui/EditorToolbar/list-bullet":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/list-bullet","caption":"{{$:/language/Buttons/ListBullet/Caption}}","description":"{{$:/language/Buttons/ListBullet/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((list-bullet))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"*\"\n\tcount=\"1\"\n/>\n"},"$:/core/ui/EditorToolbar/list-number":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/list-number","caption":"{{$:/language/Buttons/ListNumber/Caption}}","description":"{{$:/language/Buttons/ListNumber/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((list-number))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"prefix-lines\"\n\tcharacter=\"#\"\n\tcount=\"1\"\n/>\n"},"$:/core/ui/EditorToolbar/mono-block":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/mono-block","caption":"{{$:/language/Buttons/MonoBlock/Caption}}","description":"{{$:/language/Buttons/MonoBlock/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","button-classes":"tc-text-editor-toolbar-item-start-group","shortcuts":"((mono-block))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-lines\"\n\tprefix=\"\n```\"\n\tsuffix=\"```\"\n/>\n"},"$:/core/ui/EditorToolbar/mono-line":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/mono-line","caption":"{{$:/language/Buttons/MonoLine/Caption}}","description":"{{$:/language/Buttons/MonoLine/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((mono-line))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"`\"\n\tsuffix=\"`\"\n/>\n"},"$:/core/ui/EditorToolbar/more-dropdown":{"text":"\\define config-title()\n$:/config/EditorToolbarButtons/Visibility/$(toolbarItem)$\n\\end\n\n\\define conditional-button()\n<$list filter={{$(toolbarItem)$!!condition}} variable=\"condition\">\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/toolbar/button\" mode=\"inline\"/> <$transclude tiddler=<<toolbarItem>> field=\"description\"/>\n</$list>\n\\end\n\n<div class=\"tc-text-editor-toolbar-more\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]] -[[$:/core/ui/EditorToolbar/more]]\">\n<$reveal type=\"match\" state=<<config-visibility-title>> text=\"hide\" tag=\"div\">\n<<conditional-button>>\n</$reveal>\n</$list>\n</div>\n"},"$:/core/ui/EditorToolbar/more":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/down-arrow","caption":"{{$:/language/Buttons/More/Caption}}","description":"{{$:/language/Buttons/More/Hint}}","condition":"[<targetTiddler>]","dropdown":"$:/core/ui/EditorToolbar/more-dropdown","text":""},"$:/core/ui/EditorToolbar/opacity-dropdown":{"text":"\\define lingo-base() $:/language/Buttons/Opacity/\n\n\\define toolbar-opacity-inner()\n<$button tag=\"a\" tooltip=\"\"\"$(opacity)$\"\"\">\n\n<$action-setfield\n\t$tiddler=\"$:/config/BitmapEditor/Opacity\"\n\t$value=\"$(opacity)$\"\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<div style=\"display: inline-block; vertical-align: middle; background-color: $(current-paint-colour)$; opacity: $(opacity)$; width: 1em; height: 1em; border-radius: 50%;\"/>\n\n<span style=\"margin-left: 8px;\">\n\n<$text text=\"\"\"$(opacity)$\"\"\"/>\n\n<$reveal state=\"$:/config/BitmapEditor/Opacity\" type=\"match\" text=\"\"\"$(opacity)$\"\"\" tag=\"span\">\n\n<$entity entity=\" \"/>\n\n<$entity entity=\"✓\"/>\n\n</$reveal>\n\n</span>\n\n</$button>\n\\end\n\n\\define toolbar-opacity()\n''<<lingo Hint>>''\n\n<$list filter={{$:/config/BitmapEditor/Opacities}} variable=\"opacity\">\n\n<<toolbar-opacity-inner>>\n\n</$list>\n\\end\n\n<$set name=\"current-paint-colour\" value={{$:/config/BitmapEditor/Colour}}>\n\n<$set name=\"current-opacity\" value={{$:/config/BitmapEditor/Opacity}}>\n\n<<toolbar-opacity>>\n\n</$set>\n\n</$set>\n"},"$:/core/ui/EditorToolbar/opacity":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/opacity","caption":"{{$:/language/Buttons/Opacity/Caption}}","description":"{{$:/language/Buttons/Opacity/Hint}}","condition":"[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]","dropdown":"$:/core/ui/EditorToolbar/opacity-dropdown","text":"<$text text={{$:/config/BitmapEditor/Opacity}}/>\n"},"$:/core/ui/EditorToolbar/paint-dropdown":{"text":"''{{$:/language/Buttons/Paint/Hint}}''\n\n<$macrocall $name=\"colour-picker\" actions=\"\"\"\n\n<$action-setfield\n\t$tiddler=\"$:/config/BitmapEditor/Colour\"\n\t$value=<<colour-picker-value>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n\"\"\"/>\n"},"$:/core/ui/EditorToolbar/paint":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/paint","caption":"{{$:/language/Buttons/Paint/Caption}}","description":"{{$:/language/Buttons/Paint/Hint}}","condition":"[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]","dropdown":"$:/core/ui/EditorToolbar/paint-dropdown","text":"\\define toolbar-paint()\n<div style=\"display: inline-block; vertical-align: middle; background-color: $(colour-picker-value)$; width: 1em; height: 1em; border-radius: 50%;\"/>\n\\end\n<$set name=\"colour-picker-value\" value={{$:/config/BitmapEditor/Colour}}>\n<<toolbar-paint>>\n</$set>\n"},"$:/core/ui/EditorToolbar/picture-dropdown":{"text":"\\define replacement-text()\n[img[$(imageTitle)$]]\n\\end\n\n''{{$:/language/Buttons/Picture/Hint}}''\n\n<$macrocall $name=\"image-picker\" actions=\"\"\"\n\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"replace-selection\"\n\ttext=<<replacement-text>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n\"\"\"/>\n"},"$:/core/ui/EditorToolbar/picture":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/picture","caption":"{{$:/language/Buttons/Picture/Caption}}","description":"{{$:/language/Buttons/Picture/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((picture))","dropdown":"$:/core/ui/EditorToolbar/picture-dropdown","text":""},"$:/core/ui/EditorToolbar/preview-type-dropdown":{"text":"\\define preview-type-button()\n<$button tag=\"a\">\n\n<$action-setfield $tiddler=\"$:/state/editpreviewtype\" $value=\"$(previewType)$\"/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<$transclude tiddler=<<previewType>> field=\"caption\" mode=\"inline\">\n\n<$view tiddler=<<previewType>> field=\"title\" mode=\"inline\"/>\n\n</$transclude> \n\n<$reveal tag=\"span\" state=\"$:/state/editpreviewtype\" type=\"match\" text=<<previewType>> default=\"$:/core/ui/EditTemplate/body/preview/output\">\n\n<$entity entity=\" \"/>\n\n<$entity entity=\"✓\"/>\n\n</$reveal>\n\n</$button>\n\\end\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/EditPreview]!has[draft.of]]\" variable=\"previewType\">\n\n<<preview-type-button>>\n\n</$list>\n"},"$:/core/ui/EditorToolbar/preview-type":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/chevron-down","caption":"{{$:/language/Buttons/PreviewType/Caption}}","description":"{{$:/language/Buttons/PreviewType/Hint}}","condition":"[all[shadows+tiddlers]tag[$:/tags/EditPreview]!has[draft.of]butfirst[]limit[1]]","button-classes":"tc-text-editor-toolbar-item-adjunct","dropdown":"$:/core/ui/EditorToolbar/preview-type-dropdown"},"$:/core/ui/EditorToolbar/preview":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/preview-open","custom-icon":"yes","caption":"{{$:/language/Buttons/Preview/Caption}}","description":"{{$:/language/Buttons/Preview/Hint}}","condition":"[<targetTiddler>]","button-classes":"tc-text-editor-toolbar-item-start-group","shortcuts":"((preview))","text":"<$reveal state=\"$:/state/showeditpreview\" type=\"match\" text=\"yes\" tag=\"span\">\n{{$:/core/images/preview-open}}\n<$action-setfield $tiddler=\"$:/state/showeditpreview\" $value=\"no\"/>\n</$reveal>\n<$reveal state=\"$:/state/showeditpreview\" type=\"nomatch\" text=\"yes\" tag=\"span\">\n{{$:/core/images/preview-closed}}\n<$action-setfield $tiddler=\"$:/state/showeditpreview\" $value=\"yes\"/>\n</$reveal>\n"},"$:/core/ui/EditorToolbar/quote":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/quote","caption":"{{$:/language/Buttons/Quote/Caption}}","description":"{{$:/language/Buttons/Quote/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((quote))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-lines\"\n\tprefix=\"\n<<<\"\n\tsuffix=\"<<<\"\n/>\n"},"$:/core/ui/EditorToolbar/rotate-left":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/rotate-left","caption":"{{$:/language/Buttons/RotateLeft/Caption}}","description":"{{$:/language/Buttons/RotateLeft/Hint}}","condition":"[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]","text":"<$action-sendmessage\n\t$message=\"tm-edit-bitmap-operation\"\n\t$param=\"rotate-left\"\n/>\n"},"$:/core/ui/EditorToolbar/size-dropdown":{"text":"\\define lingo-base() $:/language/Buttons/Size/\n\n\\define toolbar-button-size-preset(config-title)\n<$set name=\"width\" filter=\"$(sizePair)$ +[first[]]\">\n\n<$set name=\"height\" filter=\"$(sizePair)$ +[last[]]\">\n\n<$button tag=\"a\">\n\n<$action-setfield\n\t$tiddler=\"\"\"$config-title$/new-width\"\"\"\n\t$value=<<width>>\n/>\n\n<$action-setfield\n\t$tiddler=\"\"\"$config-title$/new-height\"\"\"\n\t$value=<<height>>\n/>\n\n<$action-deletetiddler\n\t$tiddler=\"\"\"$config-title$/presets-popup\"\"\"\n/>\n\n<$text text=<<width>>/> × <$text text=<<height>>/>\n\n</$button>\n\n</$set>\n\n</$set>\n\\end\n\n\\define toolbar-button-size(config-title)\n''{{$:/language/Buttons/Size/Hint}}''\n\n<<lingo Caption/Width>> <$edit-text tag=\"input\" tiddler=\"\"\"$config-title$/new-width\"\"\" default=<<tv-bitmap-editor-width>> focus=\"true\" size=\"8\"/> <<lingo Caption/Height>> <$edit-text tag=\"input\" tiddler=\"\"\"$config-title$/new-height\"\"\" default=<<tv-bitmap-editor-height>> size=\"8\"/> <$button popup=\"\"\"$config-title$/presets-popup\"\"\" class=\"tc-btn-invisible tc-popup-keep\" style=\"width: auto; display: inline-block; background-colour: inherit;\" selectedClass=\"tc-selected\">\n{{$:/core/images/down-arrow}}\n</$button>\n\n<$reveal tag=\"span\" state=\"\"\"$config-title$/presets-popup\"\"\" type=\"popup\" position=\"belowleft\" animate=\"yes\">\n\n<div class=\"tc-drop-down tc-popup-keep\">\n\n<$list filter={{$:/config/BitmapEditor/ImageSizes}} variable=\"sizePair\">\n\n<$macrocall $name=\"toolbar-button-size-preset\" config-title=\"$config-title$\"/>\n\n</$list>\n\n</div>\n\n</$reveal>\n\n<$button>\n<$action-sendmessage\n\t$message=\"tm-edit-bitmap-operation\"\n\t$param=\"resize\"\n\twidth={{$config-title$/new-width}}\n\theight={{$config-title$/new-height}}\n/>\n<$action-deletetiddler\n\t$tiddler=\"\"\"$config-title$/new-width\"\"\"\n/>\n<$action-deletetiddler\n\t$tiddler=\"\"\"$config-title$/new-height\"\"\"\n/>\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n<<lingo Caption/Resize>>\n</$button>\n\\end\n\n<$macrocall $name=\"toolbar-button-size\" config-title=<<qualify \"$:/state/Size/\">>/>\n"},"$:/core/ui/EditorToolbar/size":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/size","caption":"{{$:/language/Buttons/Size/Caption}}","description":"{{$:/language/Buttons/Size/Hint}}","condition":"[<targetTiddler>is[image]] -[<targetTiddler>type[image/svg+xml]]","dropdown":"$:/core/ui/EditorToolbar/size-dropdown","text":""},"$:/core/ui/EditorToolbar/stamp-dropdown":{"text":"\\define toolbar-button-stamp-inner()\n<$button tag=\"a\">\n\n<$list filter=\"[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]]\">\n\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"replace-selection\"\n\ttext={{$(snippetTitle)$}}\n/>\n\n</$list>\n\n\n<$list filter=\"[[$(snippetTitle)$]addsuffix[/prefix]is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]is[missing]] [[$(snippetTitle)$]addsuffix[/prefix]!is[missing]removesuffix[/prefix]addsuffix[/suffix]!is[missing]]\">\n\n<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix={{{ [[$(snippetTitle)$]addsuffix[/prefix]get[text]] }}}\nsuffix={{{ [[$(snippetTitle)$]addsuffix[/suffix]get[text]] }}}\n/>\n\n</$list>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<$transclude tiddler=<<snippetTitle>> field=\"caption\" mode=\"inline\">\n\n<$view tiddler=<<snippetTitle>> field=\"title\" />\n\n</$transclude>\n\n</$button>\n\\end\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TextEditor/Snippet]!has[draft.of]sort[caption]]\" variable=\"snippetTitle\">\n\n<<toolbar-button-stamp-inner>>\n\n</$list>\n\n----\n\n<$button tag=\"a\">\n\n<$action-sendmessage\n\t$message=\"tm-new-tiddler\"\n\ttags=\"$:/tags/TextEditor/Snippet\"\n\tcaption={{$:/language/Buttons/Stamp/New/Title}}\n\ttext={{$:/language/Buttons/Stamp/New/Text}}\n/>\n\n<$action-deletetiddler\n\t$tiddler=<<dropdown-state>>\n/>\n\n<em>\n\n<$text text={{$:/language/Buttons/Stamp/Caption/New}}/>\n\n</em>\n\n</$button>\n"},"$:/core/ui/EditorToolbar/stamp":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/stamp","caption":"{{$:/language/Buttons/Stamp/Caption}}","description":"{{$:/language/Buttons/Stamp/Hint}}","condition":"[<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] [<targetTiddler>get[type]match[application/javascript]] [<targetTiddler>get[type]match[application/json]] [<targetTiddler>get[type]match[application/x-tiddler-dictionary]] [<targetTiddler>get[type]match[image/svg+xml]] +[first[]]","shortcuts":"((stamp))","dropdown":"$:/core/ui/EditorToolbar/stamp-dropdown","text":""},"$:/core/ui/EditorToolbar/strikethrough":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/strikethrough","caption":"{{$:/language/Buttons/Strikethrough/Caption}}","description":"{{$:/language/Buttons/Strikethrough/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((strikethrough))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"~~\"\n\tsuffix=\"~~\"\n/>\n"},"$:/core/ui/EditorToolbar/subscript":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/subscript","caption":"{{$:/language/Buttons/Subscript/Caption}}","description":"{{$:/language/Buttons/Subscript/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((subscript))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\",,\"\n\tsuffix=\",,\"\n/>\n"},"$:/core/ui/EditorToolbar/superscript":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/superscript","caption":"{{$:/language/Buttons/Superscript/Caption}}","description":"{{$:/language/Buttons/Superscript/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((superscript))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"^^\"\n\tsuffix=\"^^\"\n/>\n"},"$:/core/ui/EditorToolbar/transcludify":{"caption":"{{$:/language/Buttons/Transcludify/Caption}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","description":"{{$:/language/Buttons/Transcludify/Hint}}","icon":"$:/core/images/transcludify","list-before":"$:/core/ui/EditorToolbar/mono-block","shortcuts":"((transcludify))","tags":"$:/tags/EditorToolbar","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"{{\"\n\tsuffix=\"}}\"\n/>\n"},"$:/core/ui/EditorToolbar/underline":{"tags":"$:/tags/EditorToolbar","icon":"$:/core/images/underline","caption":"{{$:/language/Buttons/Underline/Caption}}","description":"{{$:/language/Buttons/Underline/Hint}}","condition":"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]","shortcuts":"((underline))","text":"<$action-sendmessage\n\t$message=\"tm-edit-text-operation\"\n\t$param=\"wrap-selection\"\n\tprefix=\"__\"\n\tsuffix=\"__\"\n/>\n"},"$:/core/Filters/AllTags":{"tags":"$:/tags/Filter","filter":"[tags[]!is[system]sort[title]]","description":"{{$:/language/Filters/AllTags}}","text":""},"$:/core/Filters/AllTiddlers":{"tags":"$:/tags/Filter","filter":"[!is[system]sort[title]]","description":"{{$:/language/Filters/AllTiddlers}}","text":""},"$:/core/Filters/Drafts":{"tags":"$:/tags/Filter","filter":"[has[draft.of]sort[title]]","description":"{{$:/language/Filters/Drafts}}","text":""},"$:/core/Filters/Missing":{"tags":"$:/tags/Filter","filter":"[all[missing]sort[title]]","description":"{{$:/language/Filters/Missing}}","text":""},"$:/core/Filters/Orphans":{"tags":"$:/tags/Filter","filter":"[all[orphans]sort[title]]","description":"{{$:/language/Filters/Orphans}}","text":""},"$:/core/Filters/OverriddenShadowTiddlers":{"tags":"$:/tags/Filter","filter":"[is[shadow]]","description":"{{$:/language/Filters/OverriddenShadowTiddlers}}","text":""},"$:/core/Filters/RecentSystemTiddlers":{"tags":"$:/tags/Filter","filter":"[has[modified]!sort[modified]limit[50]]","description":"{{$:/language/Filters/RecentSystemTiddlers}}","text":""},"$:/core/Filters/RecentTiddlers":{"tags":"$:/tags/Filter","filter":"[!is[system]has[modified]!sort[modified]limit[50]]","description":"{{$:/language/Filters/RecentTiddlers}}","text":""},"$:/core/Filters/SessionTiddlers":{"tags":"$:/tags/Filter","filter":"[haschanged[]]","description":"{{$:/language/Filters/SessionTiddlers}}","text":""},"$:/core/Filters/ShadowTiddlers":{"tags":"$:/tags/Filter","filter":"[all[shadows]sort[title]]","description":"{{$:/language/Filters/ShadowTiddlers}}","text":""},"$:/core/Filters/StoryList":{"tags":"$:/tags/Filter","filter":"[list[$:/StoryList]] -$:/AdvancedSearch","description":"{{$:/language/Filters/StoryList}}","text":""},"$:/core/Filters/SystemTags":{"tags":"$:/tags/Filter","filter":"[all[shadows+tiddlers]tags[]is[system]sort[title]]","description":"{{$:/language/Filters/SystemTags}}","text":""},"$:/core/Filters/SystemTiddlers":{"tags":"$:/tags/Filter","filter":"[is[system]sort[title]]","description":"{{$:/language/Filters/SystemTiddlers}}","text":""},"$:/core/Filters/TypedTiddlers":{"tags":"$:/tags/Filter","filter":"[!is[system]has[type]each[type]sort[type]] -[type[text/vnd.tiddlywiki]]","description":"{{$:/language/Filters/TypedTiddlers}}","text":""},"$:/core/ui/ImportListing":{"text":"\\define lingo-base() $:/language/Import/\n\n\\define messageField() message-$(payloadTiddler)$\n\n\\define payloadTitleFilter() [<currentTiddler>get<renameField>minlength[1]else<payloadTiddler>]\n\n\\define overWriteWarning()\n<$list filter=\"[<currentTiddler>!has<suppressedField>]\">\n<$text text={{{[subfilter<payloadTitleFilter>!is[tiddler]then[]] ~[<lingo-base>addsuffix[Listing/Rename/OverwriteWarning]get[text]]}}}/>\n</$list>\n\\end\n\n\\define selectionField() selection-$(payloadTiddler)$\n\n\\define renameField() rename-$(payloadTiddler)$\n\n\\define suppressedField() suppressed-$(payloadTiddler)$\n\n\\define newImportTitleTiddler() $:/temp/NewImportTitle-$(payloadTiddler)$\n\n\\define previewPopupState() $(currentTiddler)$!!popup-$(payloadTiddler)$\n\n\\define renameFieldState() $(currentTiddler)$!!state-rename-$(payloadTiddler)$\n\n\\define select-all-actions()\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" variable=\"payloadTiddler\">\n<$action-setfield $field={{{ [<payloadTiddler>addprefix[selection-]] }}} $value={{$:/state/import/select-all}}/>\n</$list>\n\\end\n\n<table class=\"tc-import-table\">\n<tbody>\n<tr>\n<th align=\"left\">\n<$checkbox tiddler=\"$:/state/import/select-all\" field=\"text\" checked=\"checked\" unchecked=\"unchecked\" default=\"checked\" actions=<<select-all-actions>>>\n<<lingo Listing/Select/Caption>>\n</$checkbox>\n</th>\n<th>\n<<lingo Listing/Title/Caption>>\n</th>\n<th>\n<<lingo Listing/Status/Caption>>\n</th>\n</tr>\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" variable=\"payloadTiddler\">\n<tr class={{{[<currentTiddler>has<suppressedField>then[tc-row-disabled]] ~[subfilter<payloadTitleFilter>is[tiddler]then[tc-row-warning]] }}}>\n<td>\n<$checkbox field=<<selectionField>> checked=\"checked\" unchecked=\"unchecked\" default=\"checked\" disabled={{{[<currentTiddler>has<suppressedField>then[yes]else[no]]}}}/>\n</td>\n<td>\n<$reveal type=\"nomatch\" state=<<renameFieldState>> text=\"yes\" tag=\"div\">\n<$reveal type=\"nomatch\" state=<<previewPopupState>> text=\"yes\" tag=\"div\" class=\"tc-flex\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown tc-flex-grow-1 tc-word-break\" set=<<previewPopupState>> setTo=\"yes\" disabled={{{[<currentTiddler>has<suppressedField>then[yes]else[no]]}}}>\n<span class=\"tc-small-gap-right\">{{$:/core/images/right-arrow}}</span><$text text={{{[subfilter<payloadTitleFilter>]}}}/>\n</$button>\n<$list filter=\"[<currentTiddler>!has<suppressedField>]\"><$button class=\"tc-btn-invisible\" set=<<renameFieldState>> setTo=\"yes\" tooltip={{{[<lingo-base>addsuffix[Listing/Rename/Tooltip]get[text]]}}}>{{$:/core/images/edit-button}}</$button></$list>\n</$reveal>\n<$reveal type=\"match\" state=<<previewPopupState>> text=\"yes\" tag=\"div\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<previewPopupState>> setTo=\"no\">\n<span class=\"tc-small-gap-right\">{{$:/core/images/down-arrow}}</span><$text text={{{[subfilter<payloadTitleFilter>]}}}/>\n</$button>\n</$reveal>\n</$reveal>\n<$reveal type=\"match\" state=<<renameFieldState>> text=\"yes\" tag=\"div\">\n<$text text={{{[<lingo-base>addsuffix[Listing/Rename/Prompt]get[text]]}}}/>\n</$reveal>\n</td>\n<td>\n<$view field=<<messageField>>/>\n<<overWriteWarning>>\n</td>\n</tr>\n<$reveal type=\"match\" state=<<renameFieldState>> text=\"yes\" tag=\"tr\">\n<td colspan=\"3\">\n<div class=\"tc-flex\">\n<$edit-text tiddler=<<newImportTitleTiddler>> default={{{[subfilter<payloadTitleFilter>]}}} tag=\"input\" class=\"tc-import-rename tc-flex-grow-1\"/><span class=\"tc-small-gap-left\"><$button class=\"tc-btn-invisible\" set=<<renameFieldState>> setTo=\"no\" tooltip={{{[<lingo-base>addsuffix[Listing/Rename/CancelRename]get[text]]}}}>{{$:/core/images/close-button}}<$action-deletetiddler $tiddler=<<newImportTitleTiddler>>/></$button><span class=\"tc-small-gap-right\"/></span><$button class=\"tc-btn-invisible\" set=<<renameFieldState>> setTo=\"no\" tooltip={{{[<lingo-base>addsuffix[Listing/Rename/ConfirmRename]get[text]]}}}>{{$:/core/images/done-button}}<$action-setfield $field=<<renameField>> $value={{{[<newImportTitleTiddler>get[text]minlength[1]else<payloadTiddler>]}}} /><$action-deletetiddler $tiddler=<<newImportTitleTiddler>>/></$button>\n</div>\n</td>\n</$reveal>\n<tr>\n<td colspan=\"3\">\n<$reveal type=\"match\" text=\"yes\" state=<<previewPopupState>> tag=\"div\">\n<$list filter=\"[{$:/state/importpreviewtype}has[text]]\" variable=\"listItem\" emptyMessage={{$:/core/ui/ImportPreviews/Text}}>\n<$transclude tiddler={{$:/state/importpreviewtype}}/>\n</$list>\n</$reveal>\n</td>\n</tr>\n</$list>\n</tbody>\n</table>\n"},"$:/core/ui/ImportPreviews/Diff":{"tags":"$:/tags/ImportPreview","caption":"{{$:/language/Import/Listing/Preview/Diff}}","text":"<$macrocall $name=\"compareTiddlerText\" sourceTiddlerTitle=<<payloadTiddler>> destTiddlerTitle=<<currentTiddler>> destSubTiddlerTitle=<<payloadTiddler>>/>\n"},"$:/core/ui/ImportPreviews/DiffFields":{"tags":"$:/tags/ImportPreview","caption":"{{$:/language/Import/Listing/Preview/DiffFields}}","text":"<$macrocall $name=\"compareTiddlers\" sourceTiddlerTitle=<<payloadTiddler>> destTiddlerTitle=<<currentTiddler>> destSubTiddlerTitle=<<payloadTiddler>> exclude=\"text\"/>\n"},"$:/core/ui/ImportPreviews/Fields":{"tags":"$:/tags/ImportPreview","caption":"{{$:/language/Import/Listing/Preview/Fields}}","text":"<table class=\"tc-view-field-table\">\n<tbody>\n<$list filter=\"[<payloadTiddler>subtiddlerfields<currentTiddler>sort[]] -text\" variable=\"fieldName\">\n<tr class=\"tc-view-field\">\n<td class=\"tc-view-field-name\">\n<$text text=<<fieldName>>/>\n</td>\n<td class=\"tc-view-field-value\">\n<$view field=<<fieldName>> tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>>/>\n</td>\n</tr>\n</$list>\n</tbody>\n</table>\n"},"$:/core/ui/ImportPreviews/Text":{"tags":"$:/tags/ImportPreview","caption":"{{$:/language/Import/Listing/Preview/Text}}","text":"<$transclude tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>> mode=\"block\"/>\n"},"$:/core/ui/ImportPreviews/TextRaw":{"tags":"$:/tags/ImportPreview","caption":"{{$:/language/Import/Listing/Preview/TextRaw}}","text":"<pre><code><$view tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>> /></code></pre>"},"$:/core/ui/KeyboardShortcuts/advanced-search":{"tags":"$:/tags/KeyboardShortcut","key":"((advanced-search))","text":"<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\">\n<$action-navigate $to=\"$:/AdvancedSearch\"/>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\"[data-tiddler-title=\"$:/AdvancedSearch\"] .tc-search input\"\"\" preventScroll=\"true\"/>\n</$navigator>\n"},"$:/core/ui/KeyboardShortcuts/change-sidebar-layout":{"tags":"$:/tags/KeyboardShortcut","key":"((change-sidebar-layout))","text":"<$list filter=\"[{$:/themes/tiddlywiki/vanilla/options/sidebarlayout}match[fixed-fluid]]\" \nemptyMessage=\"\"\"<$action-setfield $tiddler=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\" text=\"fixed-fluid\"/>\"\"\">\n<$action-setfield $tiddler=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\" text=\"fluid-fixed\"/>\n</$list>\n"},"$:/core/ui/KeyboardShortcuts/new-image":{"tags":"$:/tags/KeyboardShortcut","key":"((new-image))","text":"<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n{{$:/core/ui/Actions/new-image}}\n</$navigator>\n"},"$:/core/ui/KeyboardShortcuts/new-journal":{"tags":"$:/tags/KeyboardShortcut","key":"((new-journal))","text":"<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n{{$:/core/ui/Actions/new-journal}}\n</$navigator>\n"},"$:/core/ui/KeyboardShortcuts/new-tiddler":{"tags":"$:/tags/KeyboardShortcut","key":"((new-tiddler))","text":"<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n{{$:/core/ui/Actions/new-tiddler}}\n</$navigator>\n"},"$:/core/ui/KeyboardShortcuts/save-wiki":{"tags":"$:/tags/KeyboardShortcut","key":"((save-wiki))","text":"<$wikify name=\"site-title\" text={{$:/config/SaveWikiButton/Filename}}>\n<$action-sendmessage $message=\"tm-save-wiki\" $param={{$:/config/SaveWikiButton/Template}} filename=<<site-title>>/>\n</$wikify>\n"},"$:/core/ui/KeyboardShortcuts/sidebar-search":{"tags":"$:/tags/KeyboardShortcut","key":"((sidebar-search))","text":"<$action-sendmessage $message=\"tm-focus-selector\" $param=\".tc-search input\"/>\n"},"$:/core/ui/KeyboardShortcuts/switcher":{"tags":"$:/tags/KeyboardShortcut","key":"((layout-switcher))","text":"<$action-sendmessage $message=\"tm-show-switcher\" switch=\"layout\"/>"},"$:/core/ui/KeyboardShortcuts/toggle-sidebar":{"tags":"$:/tags/KeyboardShortcut","key":"((toggle-sidebar))","text":"<$list filter=\"[[$:/state/sidebar]is[missing]] [{$:/state/sidebar}removeprefix[yes]]\" emptyMessage=\"\"\"\n<$action-setfield $tiddler=\"$:/state/sidebar\" text=\"yes\"/>\n\"\"\">\n<$action-setfield $tiddler=\"$:/state/sidebar\" text=\"no\"/>\n</$list>\n"},"$:/snippets/LayoutSwitcher":{"tags":"$:/tags/ControlPanel/Appearance","caption":"{{$:/language/ControlPanel/LayoutSwitcher/Caption}}","text":"<$linkcatcher to=\"$:/layout\">\n<div class=\"tc-chooser\">\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/Layout]] [[$:/core/ui/PageTemplate]] +[!is[draft]sort[name]]\">\n<$list filter=\"[{$:/layout}!has[text]]\" variable=\"ignore\" emptyMessage=\"\"\"\n<$set name=\"cls\" filter=\"[all[current]field:title{$:/layout}]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>><$link to={{!!title}}>''<$transclude field=\"name\"/>'' - <$transclude field=\"description\"/></$link></div>\n</$set>\n\"\"\">\n<$set name=\"cls\" filter=\"[all[current]field:title[$:/core/ui/PageTemplate]]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>><$link to={{!!title}}>''<$transclude field=\"name\"/>'' - <$transclude field=\"description\"/></$link></div>\n</$set>\n</$list>\n</$list>\n</div>\n</$linkcatcher>\n"},"$:/core/ui/ListItemTemplate":{"text":"<div class=\"tc-menu-list-item\">\n<$link />\n</div>"},"$:/Manager/ItemMain/Fields":{"tags":"$:/tags/Manager/ItemMain","caption":"{{$:/language/Manager/Item/Fields}}","text":"<table>\n<tbody>\n<$list filter=\"[all[current]fields[]sort[title]] -text\" template=\"$:/core/ui/TiddlerFieldTemplate\" variable=\"listItem\"/>\n</tbody>\n</table>\n"},"$:/Manager/ItemMain/RawText":{"tags":"$:/tags/Manager/ItemMain","caption":"{{$:/language/Manager/Item/RawText}}","text":"<pre><code><$view/></code></pre>\n"},"$:/Manager/ItemMain/WikifiedText":{"tags":"$:/tags/Manager/ItemMain","caption":"{{$:/language/Manager/Item/WikifiedText}}","text":"<$transclude mode=\"block\"/>\n"},"$:/Manager/ItemSidebar/Colour":{"tags":"$:/tags/Manager/ItemSidebar","caption":"{{$:/language/Manager/Item/Colour}}","text":"\\define swatch-styles()\nheight: 1em;\nbackground-color: $(colour)$\n\\end\n\n<$vars colour={{!!color}}>\n<p style=<<swatch-styles>>/>\n</$vars>\n<p>\n<$edit-text field=\"color\" tag=\"input\" type=\"color\"/> / <$edit-text field=\"color\" tag=\"input\" type=\"text\" size=\"9\"/>\n</p>\n"},"$:/Manager/ItemSidebar/Icon":{"tags":"$:/tags/Manager/ItemSidebar","caption":"{{$:/language/Manager/Item/Icon}}","text":"<p>\n<div class=\"tc-manager-icon-editor\">\n<$button popup=<<qualify \"$:/state/popup/image-picker\">> class=\"tc-btn-invisible\">\n<$transclude tiddler={{!!icon}}>\n{{$:/language/Manager/Item/Icon/None}}\n</$transclude>\n</$button>\n<div class=\"tc-block-dropdown-wrapper\" style=\"position: static;\">\n<$reveal state=<<qualify \"$:/state/popup/image-picker\">> type=\"nomatch\" text=\"\" default=\"\" tag=\"div\" class=\"tc-popup\">\n<div class=\"tc-block-dropdown tc-popup-keep\" style=\"width: 80%; left: 10%; right: 10%; padding: 0.5em;\">\n<$macrocall $name=\"image-picker-include-tagged-images\" actions=\"\"\"\n<$action-setfield $field=\"icon\" $value=<<imageTitle>>/>\n<$action-deletetiddler $tiddler=<<qualify \"$:/state/popup/image-picker\">>/>\n\"\"\"/>\n</div>\n</$reveal>\n</div>\n</div>\n</p>\n"},"$:/Manager/ItemSidebar/Tags":{"tags":"$:/tags/Manager/ItemSidebar","caption":"{{$:/language/Manager/Item/Tags}}","text":"\\whitespace trim\n\\define tag-checkbox-actions()\n<$action-listops\n\t$tiddler=\"$:/config/Manager/RecentTags\"\n\t$subfilter=\"[<tag>] [list[$:/config/Manager/RecentTags]] +[limit[12]]\"\n/>\n\\end\n\n\\define tag-picker-actions()\n<<tag-checkbox-actions>>\n\\end\n\n<p>\n<$list filter=\"[all[current]tags[]] [list[$:/config/Manager/RecentTags]] +[sort[title]] \" variable=\"tag\" storyview=\"pop\">\n<div>\n<$checkbox tiddler=<<currentTiddler>> tag=<<tag>> actions=<<tag-checkbox-actions>>>\n<$macrocall $name=\"tag-pill\" tag=<<tag>>/>\n</$checkbox>\n</div>\n</$list>\n</p>\n<p>\n<$fieldmangler>\n<$macrocall $name=\"tag-picker\" actions=<<tag-picker-actions>>/>\n</$fieldmangler>\n</p>\n"},"$:/Manager/ItemSidebar/Tools":{"tags":"$:/tags/Manager/ItemSidebar","caption":"{{$:/language/Manager/Item/Tools}}","text":"<p>\n<$button to=<<currentTiddler>>>{{$:/core/images/link}} open</$button>\n</p>\n<p>\n<$button message=\"tm-edit-tiddler\" param=<<currentTiddler>>>{{$:/core/images/edit-button}} edit</$button>\n</p>\n"},"$:/Manager":{"icon":"$:/core/images/list","color":"#bbb","text":"\\define lingo-base() $:/language/Manager/\n\n\\define list-item-content-item()\n<div class=\"tc-manager-list-item-content-item\">\n\t<$vars state-title=\"\"\"$:/state/popup/manager/item/$(listItem)$\"\"\">\n\t\t<$reveal state=<<state-title>> type=\"match\" text=\"show\" default=\"show\" tag=\"div\">\n\t\t\t<$button set=<<state-title>> setTo=\"hide\" class=\"tc-btn-invisible tc-manager-list-item-content-item-heading\">\n\t\t\t\t{{$:/core/images/down-arrow}} <$transclude tiddler=<<listItem>> field=\"caption\"/>\n\t\t\t</$button>\n\t\t</$reveal>\n\t\t<$reveal state=<<state-title>> type=\"nomatch\" text=\"show\" default=\"show\" tag=\"div\">\n\t\t\t<$button set=<<state-title>> setTo=\"show\" class=\"tc-btn-invisible tc-manager-list-item-content-item-heading\">\n\t\t\t\t{{$:/core/images/right-arrow}} <$transclude tiddler=<<listItem>> field=\"caption\"/>\n\t\t\t</$button>\n\t\t</$reveal>\n\t\t<$reveal state=<<state-title>> type=\"match\" text=\"show\" default=\"show\" tag=\"div\" class=\"tc-manager-list-item-content-item-body\">\n\t\t\t<$transclude tiddler=<<listItem>>/>\n\t\t</$reveal>\n\t</$vars>\n</div>\n\\end\n\n<div class=\"tc-manager-wrapper\">\n\t<div class=\"tc-manager-controls\">\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/Show/Prompt>> <$select tiddler=\"$:/config/Manager/Show\" default=\"tiddlers\">\n\t\t\t\t<option value=\"tiddlers\"><<lingo Controls/Show/Option/Tiddlers>></option>\n\t\t\t\t<option value=\"tags\"><<lingo Controls/Show/Option/Tags>></option>\n\t\t\t</$select>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/Search/Prompt>> <$edit-text tiddler=\"$:/config/Manager/Filter\" tag=\"input\" default=\"\" placeholder={{$:/language/Manager/Controls/Search/Placeholder}}/>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/FilterByTag/Prompt>> <$select tiddler=\"$:/config/Manager/Tag\" default=\"\">\n\t\t\t\t<option value=\"\"><<lingo Controls/FilterByTag/None>></option>\n\t\t\t\t<$list filter=\"[!is{$:/config/Manager/System}tags[]!is[system]sort[title]]\" variable=\"tag\">\n\t\t\t\t\t<option value=<<tag>>><$text text=<<tag>>/></option>\n\t\t\t\t</$list>\n\t\t\t</$select>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<<lingo Controls/Sort/Prompt>> <$select tiddler=\"$:/config/Manager/Sort\" default=\"title\">\n\t\t\t\t<optgroup label=\"Common\">\n\t\t\t\t\t<$list filter=\"title modified modifier created creator created\" variable=\"field\">\n\t\t\t\t\t\t<option value=<<field>>><$text text=<<field>>/></option>\n\t\t\t\t\t</$list>\n\t\t\t\t</optgroup>\n\t\t\t\t<optgroup label=\"All\">\n\t\t\t\t\t<$list filter=\"[all{$:/config/Manager/Show}!is{$:/config/Manager/System}fields[]sort[title]] -title -modified -modifier -created -creator -created\" variable=\"field\">\n\t\t\t\t\t\t<option value=<<field>>><$text text=<<field>>/></option>\n\t\t\t\t\t</$list>\n\t\t\t\t</optgroup>\n\t\t\t</$select>\n\t\t\t<$checkbox tiddler=\"$:/config/Manager/Order\" field=\"text\" checked=\"reverse\" unchecked=\"forward\" default=\"forward\">\n\t\t\t\t<<lingo Controls/Order/Prompt>>\n\t\t\t</$checkbox>\n\t\t</div>\n\t\t<div class=\"tc-manager-control\">\n\t\t\t<$checkbox tiddler=\"$:/config/Manager/System\" field=\"text\" checked=\"\" unchecked=\"system\" default=\"system\">\n\t\t\t\t{{$:/language/SystemTiddlers/Include/Prompt}}\n\t\t\t</$checkbox>\n\t\t</div>\n\t</div>\n\t<div class=\"tc-manager-list\">\n\t\t<$list filter=\"[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}]\">\n\t\t\t<$vars transclusion=<<currentTiddler>>>\n\t\t\t\t<div style=\"tc-manager-list-item\">\n\t\t\t\t\t<$button popup=<<qualify \"$:/state/manager/popup\">> class=\"tc-btn-invisible tc-manager-list-item-heading\" selectedClass=\"tc-manager-list-item-heading-selected\">\n\t\t\t\t\t\t<$text text=<<currentTiddler>>/>\n\t\t\t\t\t</$button>\n\t\t\t\t\t<$reveal state=<<qualify \"$:/state/manager/popup\">> type=\"nomatch\" text=\"\" default=\"\" tag=\"div\" class=\"tc-manager-list-item-content tc-popup-handle\">\n\t\t\t\t\t\t<div class=\"tc-manager-list-item-content-tiddler\">\n\t\t\t\t\t\t\t<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Manager/ItemMain]!has[draft.of]]\" variable=\"listItem\">\n\t\t\t\t\t\t\t\t<<list-item-content-item>>\n\t\t\t\t\t\t\t</$list>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"tc-manager-list-item-content-sidebar\">\n\t\t\t\t\t\t\t<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Manager/ItemSidebar]!has[draft.of]]\" variable=\"listItem\">\n\t\t\t\t\t\t\t\t<<list-item-content-item>>\n\t\t\t\t\t\t\t</$list>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</$reveal>\n\t\t\t\t</div>\n\t\t\t</$vars>\n\t\t</$list>\n\t</div>\n</div>\n"},"$:/core/ui/MissingTemplate":{"text":"<div class=\"tc-tiddler-missing\">\n<$button popup=<<qualify \"$:/state/popup/missing\">> class=\"tc-btn-invisible tc-missing-tiddler-label\">\n<$view field=\"title\" format=\"text\" />\n</$button>\n<$reveal state=<<qualify \"$:/state/popup/missing\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n<hr>\n<$list filter=\"[all[current]backlinks[]sort[title]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n</div>\n</$reveal>\n</div>\n"},"$:/core/ui/MoreSideBar/All":{"tags":"$:/tags/MoreSideBar","caption":"{{$:/language/SideBar/All/Caption}}","text":"<$list filter={{$:/core/Filters/AllTiddlers!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n"},"$:/core/ui/MoreSideBar/Drafts":{"tags":"$:/tags/MoreSideBar","caption":"{{$:/language/SideBar/Drafts/Caption}}","text":"<$list filter={{$:/core/Filters/Drafts!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n"},"$:/core/ui/MoreSideBar/Explorer":{"tags":"$:/tags/MoreSideBar","caption":"{{$:/language/SideBar/Explorer/Caption}}","text":"<<tree \"$:/\">>\n"},"$:/core/ui/MoreSideBar/Missing":{"tags":"$:/tags/MoreSideBar","caption":"{{$:/language/SideBar/Missing/Caption}}","text":"<$list filter={{$:/core/Filters/Missing!!filter}} template=\"$:/core/ui/MissingTemplate\"/>\n"},"$:/core/ui/MoreSideBar/Orphans":{"tags":"$:/tags/MoreSideBar","caption":"{{$:/language/SideBar/Orphans/Caption}}","text":"<$list filter={{$:/core/Filters/Orphans!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n"},"$:/core/ui/MoreSideBar/Plugins":{"tags":"$:/tags/MoreSideBar","caption":"{{$:/language/ControlPanel/Plugins/Caption}}","text":"\n{{$:/language/ControlPanel/Plugins/Installed/Hint}}\n\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/MoreSideBar/Plugins]!has[draft.of]]\" default=\"$:/core/ui/MoreSideBar/Plugins/Plugins\" explicitState=\"$:/state/tab-1163638994\"/>\n"},"$:/core/ui/MoreSideBar/Recent":{"tags":"$:/tags/MoreSideBar","caption":"{{$:/language/SideBar/Recent/Caption}}","text":"<$macrocall $name=\"timeline\" format={{$:/language/RecentChanges/DateFormat}}/>\n"},"$:/core/ui/MoreSideBar/Shadows":{"tags":"$:/tags/MoreSideBar","caption":"{{$:/language/SideBar/Shadows/Caption}}","text":"<$list filter={{$:/core/Filters/ShadowTiddlers!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n"},"$:/core/ui/MoreSideBar/System":{"tags":"$:/tags/MoreSideBar","caption":"{{$:/language/SideBar/System/Caption}}","text":"<$list filter={{$:/core/Filters/SystemTiddlers!!filter}} template=\"$:/core/ui/ListItemTemplate\"/>\n"},"$:/core/ui/MoreSideBar/Tags":{"tags":"$:/tags/MoreSideBar","caption":"{{$:/language/SideBar/Tags/Caption}}","text":"<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n{{$:/core/ui/Buttons/tag-manager}}\n\n</$set>\n\n</$set>\n\n</$set>\n\n<$list filter={{$:/core/Filters/AllTags!!filter}}>\n\n<$transclude tiddler=\"$:/core/ui/TagTemplate\"/>\n\n</$list>\n\n<hr class=\"tc-untagged-separator\">\n\n{{$:/core/ui/UntaggedTemplate}}\n"},"$:/core/ui/MoreSideBar/Types":{"tags":"$:/tags/MoreSideBar","caption":"{{$:/language/SideBar/Types/Caption}}","text":"<$list filter={{$:/core/Filters/TypedTiddlers!!filter}}>\n<div class=\"tc-menu-list-item\">\n<$view field=\"type\"/>\n<$list filter=\"[type{!!type}!is[system]sort[title]]\">\n<div class=\"tc-menu-list-subitem\">\n<$link to={{!!title}}><$view field=\"title\"/></$link>\n</div>\n</$list>\n</div>\n</$list>\n"},"$:/core/ui/MoreSideBar/Plugins/Languages":{"tags":"$:/tags/MoreSideBar/Plugins","caption":"{{$:/language/ControlPanel/Plugins/Languages/Caption}}","text":"<$list filter=\"[!has[draft.of]plugin-type[language]sort[description]]\" template=\"$:/core/ui/PluginListItemTemplate\" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/>\n"},"$:/core/ui/MoreSideBar/Plugins/Plugins":{"tags":"$:/tags/MoreSideBar/Plugins","caption":"{{$:/language/ControlPanel/Plugins/Plugins/Caption}}","text":"<$list filter=\"[!has[draft.of]plugin-type[plugin]sort[description]]\" template=\"$:/core/ui/PluginListItemTemplate\" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}>>/>\n"},"$:/core/ui/MoreSideBar/Plugins/Theme":{"tags":"$:/tags/MoreSideBar/Plugins","caption":"{{$:/language/ControlPanel/Plugins/Themes/Caption}}","text":"<$list filter=\"[!has[draft.of]plugin-type[theme]sort[description]]\" template=\"$:/core/ui/PluginListItemTemplate\" emptyMessage={{$:/language/ControlPanel/Plugins/Empty/Hint}}/>\n"},"$:/core/ui/Buttons/advanced-search":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/advanced-search-button}} {{$:/language/Buttons/AdvancedSearch/Caption}}","description":"{{$:/language/Buttons/AdvancedSearch/Hint}}","text":"\\whitespace trim\n\\define advanced-search-button(class)\n<$button to=\"$:/AdvancedSearch\" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/advanced-search-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/AdvancedSearch/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/AdvancedSearch]]\" emptyMessage=<<advanced-search-button>>>\n<<advanced-search-button \"tc-selected\">>\n</$list>\n"},"$:/core/ui/Buttons/close-all":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/close-all-button}} {{$:/language/Buttons/CloseAll/Caption}}","description":"{{$:/language/Buttons/CloseAll/Hint}}","text":"<$button message=\"tm-close-all-tiddlers\" tooltip={{$:/language/Buttons/CloseAll/Hint}} aria-label={{$:/language/Buttons/CloseAll/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/close-all-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/CloseAll/Caption}}/></span>\n</$list>\n</$button>"},"$:/core/ui/Buttons/control-panel":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/options-button}} {{$:/language/Buttons/ControlPanel/Caption}}","description":"{{$:/language/Buttons/ControlPanel/Hint}}","text":"\\whitespace trim\n\\define control-panel-button(class)\n<$button to=\"$:/ControlPanel\" tooltip={{$:/language/Buttons/ControlPanel/Hint}} aria-label={{$:/language/Buttons/ControlPanel/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/options-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/ControlPanel/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/ControlPanel]]\" emptyMessage=<<control-panel-button>>>\n<<control-panel-button \"tc-selected\">>\n</$list>\n"},"$:/core/ui/Buttons/encryption":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/locked-padlock}} {{$:/language/Buttons/Encryption/Caption}}","description":"{{$:/language/Buttons/Encryption/Hint}}","text":"\\whitespace trim\n<$reveal type=\"match\" state=\"$:/isEncrypted\" text=\"yes\">\n<$button message=\"tm-clear-password\" tooltip={{$:/language/Buttons/Encryption/ClearPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/ClearPassword/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/locked-padlock}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Encryption/ClearPassword/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>\n<$reveal type=\"nomatch\" state=\"$:/isEncrypted\" text=\"yes\">\n<$button message=\"tm-set-password\" tooltip={{$:/language/Buttons/Encryption/SetPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/SetPassword/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/unlocked-padlock}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Encryption/SetPassword/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>\n"},"$:/core/ui/Buttons/export-page":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/export-button}} {{$:/language/Buttons/ExportPage/Caption}}","description":"{{$:/language/Buttons/ExportPage/Hint}}","text":"<$macrocall $name=\"exportButton\" exportFilter=\"[!is[system]sort[title]]\" lingoBase=\"$:/language/Buttons/ExportPage/\"/>"},"$:/core/ui/Buttons/fold-all":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/fold-all-button}} {{$:/language/Buttons/FoldAll/Caption}}","description":"{{$:/language/Buttons/FoldAll/Hint}}","text":"<$button tooltip={{$:/language/Buttons/FoldAll/Hint}} aria-label={{$:/language/Buttons/FoldAll/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-all-tiddlers\" $param=<<currentTiddler>> foldedStatePrefix=\"$:/state/folded/\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/fold-all-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/FoldAll/Caption}}/></span>\n</$list>\n</$button>"},"$:/core/ui/Buttons/full-screen":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/full-screen-button}} {{$:/language/Buttons/FullScreen/Caption}}","description":"{{$:/language/Buttons/FullScreen/Hint}}","text":"<$button message=\"tm-full-screen\" tooltip={{$:/language/Buttons/FullScreen/Hint}} aria-label={{$:/language/Buttons/FullScreen/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/full-screen-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/FullScreen/Caption}}/></span>\n</$list>\n</$button>"},"$:/core/ui/Buttons/home":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/home-button}} {{$:/language/Buttons/Home/Caption}}","description":"{{$:/language/Buttons/Home/Hint}}","text":"<$button message=\"tm-home\" tooltip={{$:/language/Buttons/Home/Hint}} aria-label={{$:/language/Buttons/Home/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/home-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Home/Caption}}/></span>\n</$list>\n</$button>"},"$:/core/ui/Buttons/import":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/import-button}} {{$:/language/Buttons/Import/Caption}}","description":"{{$:/language/Buttons/Import/Hint}}","text":"<div class=\"tc-file-input-wrapper\">\n<$button tooltip={{$:/language/Buttons/Import/Hint}} aria-label={{$:/language/Buttons/Import/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/import-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Import/Caption}}/></span>\n</$list>\n</$button>\n<$browse tooltip={{$:/language/Buttons/Import/Hint}}/>\n</div>"},"$:/core/ui/Buttons/language":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/globe}} {{$:/language/Buttons/Language/Caption}}","description":"{{$:/language/Buttons/Language/Hint}}","text":"\\whitespace trim\n\\define flag-title()\n$(languagePluginTitle)$/icon\n\\end\n<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/language\">> tooltip={{$:/language/Buttons/Language/Hint}} aria-label={{$:/language/Buttons/Language/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n<span class=\"tc-image-button\">\n<$set name=\"languagePluginTitle\" value={{$:/language}}>\n<$image source=<<flag-title>>/>\n</$set>\n</span>\n</$list>\n<$text text=\" \"/>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Language/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/language\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n{{$:/snippets/languageswitcher}}\n</div>\n</$reveal>\n"},"$:/core/ui/Buttons/manager":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/list}} {{$:/language/Buttons/Manager/Caption}}","description":"{{$:/language/Buttons/Manager/Hint}}","text":"\\whitespace trim\n\\define manager-button(class)\n<$button to=\"$:/Manager\" tooltip={{$:/language/Buttons/Manager/Hint}} aria-label={{$:/language/Buttons/Manager/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/list}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Manager/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/Manager]]\" emptyMessage=<<manager-button>>>\n<<manager-button \"tc-selected\">>\n</$list>\n"},"$:/core/ui/Buttons/more-page-actions":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}","description":"{{$:/language/Buttons/More/Hint}}","text":"\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n<$button popup=<<qualify \"$:/state/popup/more\">> tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/down-arrow}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/More/Caption}}/></span>\n</$list>\n</$button><$reveal state=<<qualify \"$:/state/popup/more\">> type=\"popup\" position=\"below\" animate=\"yes\">\n\n<div class=\"tc-drop-down\">\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"tc-btn-invisible\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]] -[[$:/core/ui/Buttons/more-page-actions]]\" variable=\"listItem\">\n\n<$reveal type=\"match\" state=<<config-title>> text=\"hide\">\n\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$set>\n\n</$reveal>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n\n</div>\n\n</$reveal>"},"$:/core/ui/Buttons/new-image":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/new-image-button}} {{$:/language/Buttons/NewImage/Caption}}","description":"{{$:/language/Buttons/NewImage/Hint}}","text":"\\whitespace trim\n<$button tooltip={{$:/language/Buttons/NewImage/Hint}} aria-label={{$:/language/Buttons/NewImage/Caption}} class=<<tv-config-toolbar-class>> actions={{$:/core/ui/Actions/new-image}}>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-image-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/NewImage/Caption}}/></span>\n</$list>\n</$button>\n"},"$:/core/ui/Buttons/new-journal":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournal/Caption}}","description":"{{$:/language/Buttons/NewJournal/Hint}}","text":"\\whitespace trim\n\\define journalButton()\n<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=<<tv-config-toolbar-class>> actions={{$:/core/ui/Actions/new-journal}}>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-journal-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/NewJournal/Caption}}/></span>\n</$list>\n</$button>\n\\end\n<<journalButton>>\n"},"$:/core/ui/Buttons/new-tiddler":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/new-button}} {{$:/language/Buttons/NewTiddler/Caption}}","description":"{{$:/language/Buttons/NewTiddler/Hint}}","text":"\\whitespace trim\n<$button actions={{$:/core/ui/Actions/new-tiddler}} tooltip={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/NewTiddler/Caption}}/></span>\n</$list>\n</$button>\n"},"$:/core/ui/Buttons/palette":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/palette}} {{$:/language/Buttons/Palette/Caption}}","description":"{{$:/language/Buttons/Palette/Hint}}","text":"\\whitespace trim\n<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/palette\">> tooltip={{$:/language/Buttons/Palette/Hint}} aria-label={{$:/language/Buttons/Palette/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/palette}}\n</$list>\n<$text text=\" \"/>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Palette/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/palette\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\" style=\"font-size:0.7em;\">\n{{$:/snippets/paletteswitcher}}\n</div>\n</$reveal>\n"},"$:/core/ui/Buttons/print":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/print-button}} {{$:/language/Buttons/Print/Caption}}","description":"{{$:/language/Buttons/Print/Hint}}","text":"<$button message=\"tm-print\" tooltip={{$:/language/Buttons/Print/Hint}} aria-label={{$:/language/Buttons/Print/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/print-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Print/Caption}}/></span>\n</$list>\n</$button>"},"$:/core/ui/Buttons/refresh":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/refresh-button}} {{$:/language/Buttons/Refresh/Caption}}","description":"{{$:/language/Buttons/Refresh/Hint}}","text":"<$button message=\"tm-browser-refresh\" tooltip={{$:/language/Buttons/Refresh/Hint}} aria-label={{$:/language/Buttons/Refresh/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/refresh-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Refresh/Caption}}/></span>\n</$list>\n</$button>"},"$:/core/ui/Buttons/save-wiki":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/save-button}} {{$:/language/Buttons/SaveWiki/Caption}}","description":"{{$:/language/Buttons/SaveWiki/Hint}}","text":"<$button tooltip={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=<<tv-config-toolbar-class>>>\n<$wikify name=\"site-title\" text={{$:/config/SaveWikiButton/Filename}}>\n<$action-sendmessage $message=\"tm-save-wiki\" $param={{$:/config/SaveWikiButton/Template}} filename=<<site-title>>/>\n</$wikify>\n<span class=\"tc-dirty-indicator\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/save-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/SaveWiki/Caption}}/></span>\n</$list>\n</span>\n</$button>"},"$:/core/ui/Buttons/storyview":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/storyview-classic}} {{$:/language/Buttons/StoryView/Caption}}","description":"{{$:/language/Buttons/StoryView/Hint}}","text":"\\whitespace trim\n\\define icon()\n$:/core/images/storyview-$(storyview)$\n\\end\n<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/storyview\">> tooltip={{$:/language/Buttons/StoryView/Hint}} aria-label={{$:/language/Buttons/StoryView/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n<$set name=\"storyview\" value={{$:/view}}>\n<$transclude tiddler=<<icon>>/>\n</$set>\n</$list>\n<$text text=\" \"/>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/StoryView/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/storyview\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n{{$:/snippets/viewswitcher}}\n</div>\n</$reveal>\n"},"$:/core/ui/Buttons/tag-manager":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/tag-button}} {{$:/language/Buttons/TagManager/Caption}}","description":"{{$:/language/Buttons/TagManager/Hint}}","text":"\\whitespace trim\n\\define control-panel-button(class)\n<$button to=\"$:/TagManager\" tooltip={{$:/language/Buttons/TagManager/Hint}} aria-label={{$:/language/Buttons/TagManager/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/tag-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/TagManager/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/TagManager]]\" emptyMessage=<<control-panel-button>>>\n<<control-panel-button \"tc-selected\">>\n</$list>\n"},"$:/core/ui/Buttons/theme":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/theme-button}} {{$:/language/Buttons/Theme/Caption}}","description":"{{$:/language/Buttons/Theme/Hint}}","text":"\\whitespace trim\n<span class=\"tc-popup-keep\">\n<$button popup=<<qualify \"$:/state/popup/theme\">> tooltip={{$:/language/Buttons/Theme/Hint}} aria-label={{$:/language/Buttons/Theme/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/theme-button}}\n</$list>\n<$text text=\" \"/>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Theme/Caption}}/></span>\n</$list>\n</$button>\n</span>\n<$reveal state=<<qualify \"$:/state/popup/theme\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n<$linkcatcher to=\"$:/theme\">\n{{$:/snippets/themeswitcher}}\n</$linkcatcher>\n</div>\n</$reveal>\n"},"$:/core/ui/Buttons/timestamp":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/timestamp-on}} {{$:/language/Buttons/Timestamp/Caption}}","description":"{{$:/language/Buttons/Timestamp/Hint}}","text":"\\whitespace trim\n<$reveal type=\"nomatch\" state=\"$:/config/TimestampDisable\" text=\"yes\">\n<$button tooltip={{$:/language/Buttons/Timestamp/On/Hint}} aria-label={{$:/language/Buttons/Timestamp/On/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-setfield $tiddler=\"$:/config/TimestampDisable\" $value=\"yes\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/timestamp-on}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Timestamp/On/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=\"$:/config/TimestampDisable\" text=\"yes\">\n<$button tooltip={{$:/language/Buttons/Timestamp/Off/Hint}} aria-label={{$:/language/Buttons/Timestamp/Off/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-setfield $tiddler=\"$:/config/TimestampDisable\" $value=\"no\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/timestamp-off}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Timestamp/Off/Caption}}/></span>\n</$list>\n</$button>\n</$reveal>\n"},"$:/core/ui/Buttons/unfold-all":{"tags":"$:/tags/PageControls","caption":"{{$:/core/images/unfold-all-button}} {{$:/language/Buttons/UnfoldAll/Caption}}","description":"{{$:/language/Buttons/UnfoldAll/Hint}}","text":"<$button tooltip={{$:/language/Buttons/UnfoldAll/Hint}} aria-label={{$:/language/Buttons/UnfoldAll/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-unfold-all-tiddlers\" $param=<<currentTiddler>> foldedStatePrefix=\"$:/state/folded/\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/unfold-all-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/UnfoldAll/Caption}}/></span>\n</$list>\n</$button>"},"$:/core/ui/PageTemplate/pagecontrols":{"text":"\\whitespace trim\n\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n<div class=\"tc-page-controls\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]\" variable=\"listItem\">\n<$set name=\"hidden\" value=<<config-title>>>\n<$list filter=\"[<hidden>!text[hide]]\" storyview=\"pop\" variable=\"ignore\">\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n</$set>\n</$list>\n</$set>\n</$list>\n</div>\n"},"$:/core/ui/PageStylesheet":{"text":"\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n<$set name=\"currentTiddler\" value={{$:/language}}>\n\n<$set name=\"languageTitle\" value={{!!name}}>\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]\">\n<$transclude mode=\"block\"/>\n</$list>\n\n</$set>\n\n</$set>\n"},"$:/core/ui/PageTemplate/alerts":{"tags":"$:/tags/PageTemplate","text":"<div class=\"tc-alerts\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Alert]!has[draft.of]]\" template=\"$:/core/ui/AlertTemplate\" storyview=\"pop\"/>\n\n</div>\n"},"$:/core/ui/PageTemplate/drafts":{"tags":"$:/tags/PageTemplate","text":"\\whitespace trim\n<$reveal state=\"$:/status/IsReadOnly\" type=\"nomatch\" text=\"yes\" tag=\"div\" class=\"tc-drafts-list\">\n<$list filter=\"[has[draft.of]!sort[modified]] -[list[$:/StoryList]]\">\n<$link>\n{{$:/core/images/edit-button}} <$text text=<<currentTiddler>>/>\n</$link>\n</$list>\n</$reveal>\n"},"$:/core/ui/PageTemplate/pluginreloadwarning":{"tags":"$:/tags/PageTemplate","text":"\\define lingo-base() $:/language/\n\n<$list filter=\"[{$:/status/RequireReloadDueToPluginChange}match[yes]]\">\n\n<$reveal type=\"nomatch\" state=\"$:/temp/HidePluginWarning\" text=\"yes\">\n\n<div class=\"tc-plugin-reload-warning\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n<<lingo PluginReloadWarning>> <$button set=\"$:/temp/HidePluginWarning\" setTo=\"yes\" class=\"tc-btn-invisible\">{{$:/core/images/close-button}}</$button>\n\n</$set>\n\n</div>\n\n</$reveal>\n\n</$list>\n"},"$:/core/ui/PageTemplate/sidebar":{"tags":"$:/tags/PageTemplate","text":"\\whitespace trim\n\\define config-title()\n$:/config/SideBarSegments/Visibility/$(listItem)$\n\\end\n\n<$scrollable fallthrough=\"no\" class=\"tc-sidebar-scrollable\">\n\n<div class=\"tc-sidebar-header\">\n\n<$reveal state=\"$:/state/sidebar\" type=\"match\" text=\"yes\" default=\"yes\" retain=\"yes\" animate=\"yes\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SideBarSegment]!has[draft.of]]\" variable=\"listItem\">\n\n<$reveal type=\"nomatch\" state=<<config-title>> text=\"hide\" tag=\"div\">\n\n<$transclude tiddler=<<listItem>> mode=\"block\"/>\n\n</$reveal>\n\n</$list>\n\n</$reveal>\n\n</div>\n\n</$scrollable>\n"},"$:/core/ui/PageTemplate/story":{"tags":"$:/tags/PageTemplate","text":"\\whitespace trim\n<section class=\"tc-story-river\">\n\n<section class=\"story-backdrop\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/AboveStory]!has[draft.of]]\">\n\n<$transclude/>\n\n</$list>\n\n</section>\n\n<$list filter=\"[list[$:/StoryList]]\" history=\"$:/HistoryList\" template={{$:/config/ui/ViewTemplate}} editTemplate={{$:/config/ui/EditTemplate}} storyview={{$:/view}} emptyMessage={{$:/config/EmptyStoryMessage}}/>\n\n<section class=\"story-frontdrop\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/BelowStory]!has[draft.of]]\">\n\n<$transclude/>\n\n</$list>\n\n</section>\n\n</section>\n"},"$:/core/ui/PageTemplate/topleftbar":{"tags":"$:/tags/PageTemplate","text":"<span class=\"tc-topbar tc-topbar-left\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TopLeftBar]!has[draft.of]]\" variable=\"listItem\" storyview=\"pop\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$list>\n\n</span>\n"},"$:/core/ui/PageTemplate/toprightbar":{"tags":"$:/tags/PageTemplate","text":"<span class=\"tc-topbar tc-topbar-right\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TopRightBar]!has[draft.of]]\" variable=\"listItem\" storyview=\"pop\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$list>\n\n</span>\n"},"$:/core/ui/PageTemplate":{"name":"{{$:/language/PageTemplate/Name}}","description":"{{$:/language/PageTemplate/Description}}","text":"\\whitespace trim\n\\define containerClasses()\ntc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$\n\\end\n\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\n\n<$vars\n\ttv-config-toolbar-icons={{$:/config/Toolbar/Icons}}\n\ttv-config-toolbar-text={{$:/config/Toolbar/Text}}\n\ttv-config-toolbar-class={{$:/config/Toolbar/ButtonClass}}\n\ttv-enable-drag-and-drop={{$:/config/DragAndDrop/Enable}}\n\ttv-show-missing-links={{$:/config/MissingLinks}}\n\tstoryviewTitle={{$:/view}}\n\tlanguageTitle={{{ [{$:/language}get[name]] }}}>\n\n<div class=<<containerClasses>>>\n\n<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\n\n<$dropzone enable=<<tv-enable-drag-and-drop>>>\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageTemplate]!has[draft.of]]\" variable=\"listItem\">\n\n<$transclude tiddler=<<listItem>>/>\n\n</$list>\n\n</$dropzone>\n\n</$navigator>\n\n</div>\n\n</$vars>\n"},"$:/PaletteManager":{"text":"\\define lingo-base() $:/language/ControlPanel/Palette/Editor/\n\\define describePaletteColour(colour)\n<$transclude tiddler=\"$:/language/Docs/PaletteColours/$colour$\"><$text text=\"$colour$\"/></$transclude>\n\\end\n\\define edit-colour-placeholder()\n edit $(colourName)$\n\\end\n\\define colour-tooltip(showhide) $showhide$ editor for $(newColourName)$ \n\\define resolve-colour(macrocall)\n\\import $:/core/macros/utils\n\\whitespace trim\n<$wikify name=\"name\" text=\"\"\"$macrocall$\"\"\">\n<<name>>\n</$wikify>\n\\end\n\\define delete-colour-index-actions() <$action-setfield $index=<<colourName>>/>\n\\define palette-manager-colour-row-segment()\n\\whitespace trim\n<$edit-text index=<<colourName>> tag=\"input\" placeholder=<<edit-colour-placeholder>> default=\"\"/>\n<br>\n<$edit-text index=<<colourName>> type=\"color\" tag=\"input\" class=\"tc-palette-manager-colour-input\"/>\n<$list filter=\"[<currentTiddler>getindex<colourName>removeprefix[<<]removesuffix[>>]] [<currentTiddler>getindex<colourName>removeprefix[<$]removesuffix[/>]]\" variable=\"ignore\">\n<$set name=\"state\" value={{{ [[$:/state/palettemanager/]addsuffix<currentTiddler>addsuffix[/]addsuffix<colourName>] }}}>\n<$wikify name=\"newColourName\" text=\"\"\"<$macrocall $name=\"resolve-colour\" macrocall={{{ [<currentTiddler>getindex<colourName>] }}}/>\"\"\">\n<$reveal state=<<state>> type=\"nomatch\" text=\"show\">\n<$button tooltip=<<colour-tooltip show>> aria-label=<<colour-tooltip show>> class=\"tc-btn-invisible\" set=<<state>> setTo=\"show\">{{$:/core/images/down-arrow}}<$text text=<<newColourName>> class=\"tc-small-gap-left\"/></$button><br>\n</$reveal>\n<$reveal state=<<state>> type=\"match\" text=\"show\">\n<$button tooltip=<<colour-tooltip hide>> aria-label=<<colour-tooltip show>> class=\"tc-btn-invisible\" actions=\"\"\"<$action-deletetiddler $tiddler=<<state>>/>\"\"\">{{$:/core/images/up-arrow}}<$text text=<<newColourName>> class=\"tc-small-gap-left\"/></$button><br>\n</$reveal>\n<$reveal state=<<state>> type=\"match\" text=\"show\">\n<$set name=\"colourName\" value=<<newColourName>>>\n<br>\n<<palette-manager-colour-row-segment>>\n<br><br>\n</$set>\n</$reveal>\n</$wikify>\n</$set>\n</$list>\n\\end\n\\define palette-manager-colour-row()\n\\whitespace trim\n<tr>\n<td>\n<span style=\"float:right;\">\n<$button tooltip={{$:/language/ControlPanel/Palette/Editor/Delete/Hint}} aria-label={{$:/language/ControlPanel/Palette/Editor/Delete/Hint}} class=\"tc-btn-invisible\" actions=<<delete-colour-index-actions>>>\n{{$:/core/images/delete-button}}</$button>\n</span>\n''<$macrocall $name=\"describePaletteColour\" colour=<<colourName>>/>''<br/>\n<$macrocall $name=\"colourName\" $output=\"text/plain\"/>\n</td>\n<td>\n<<palette-manager-colour-row-segment>>\n</td>\n</tr>\n\\end\n\\define palette-manager-table()\n\\whitespace trim\n<table>\n<tbody>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Palette]indexes[]]\" variable=\"colourName\">\n<$list filter=\"[<currentTiddler>indexes[]removeprefix<colourName>suffix[]]\" variable=\"ignore\" emptyMessage=\"\"\"\n<$list filter=\"[{$:/state/palettemanager/showexternal}removeprefix[yes]suffix[]]\" variable=\"ignore\">\n<<palette-manager-colour-row>>\n</$list>\n\"\"\">\n<<palette-manager-colour-row>>\n</$list>\n</$list>\n</tbody>\n</table>\n\\end\n<$set name=\"currentTiddler\" value={{$:/palette}}>\n\n<<lingo Prompt>> <$link to={{$:/palette}}><$macrocall $name=\"currentTiddler\" $output=\"text/plain\"/></$link>\n\n<$list filter=\"[all[current]is[shadow]is[tiddler]]\" variable=\"listItem\">\n<<lingo Prompt/Modified>>\n<$button message=\"tm-delete-tiddler\" param={{$:/palette}}><<lingo Reset/Caption>></$button>\n</$list>\n\n<$list filter=\"[all[current]is[shadow]!is[tiddler]]\" variable=\"listItem\">\n<<lingo Clone/Prompt>>\n</$list>\n\n<$button message=\"tm-new-tiddler\" param={{$:/palette}}><<lingo Clone/Caption>></$button>\n\n<$checkbox tiddler=\"$:/state/palettemanager/showexternal\" field=\"text\" checked=\"yes\" unchecked=\"no\"><span class=\"tc-small-gap-left\"><<lingo Names/External/Show>></span></$checkbox>\n\n<<palette-manager-table>>\n"},"$:/core/ui/PluginInfo":{"text":"\\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<$transclude tiddler=<<localised-info-tiddler-title>> mode=\"block\">\n<$transclude tiddler=<<currentTiddler>> subtiddler=<<localised-info-tiddler-title>> mode=\"block\">\n<$transclude tiddler=<<currentTiddler>> subtiddler=<<info-tiddler-title>> mode=\"block\">\n<$transclude tiddler=<<default-tiddler-title>> mode=\"block\">\n{{$:/language/ControlPanel/Plugin/NoInfoFound/Hint}}\n</$transclude>\n</$transclude>\n</$transclude>\n</$transclude>\n"},"$:/core/ui/PluginInfo/Default/contents":{"text":"\\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/\n<<lingo Hint>>\n<ul>\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" emptyMessage=<<lingo Empty/Hint>>>\n<li>\n<$link />\n</li>\n</$list>\n</ul>\n"},"$:/core/ui/PluginListItemTemplate":{"text":"<div class=\"tc-menu-list-item\">\n<$link to={{!!title}}><$view field=\"description\"><$view field=\"title\"/></$view></$link>\n</div>"},"$:/core/ui/RootTemplate":{"text":"<$transclude tiddler={{{ [{$:/layout}has[text]] ~[[$:/core/ui/PageTemplate]] }}} mode=\"inline\"/>\n\n"},"$:/core/ui/SearchResults":{"text":"<div class=\"tc-search-results\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]\" emptyMessage=\"\"\"\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\">\n<$transclude mode=\"block\"/>\n</$list>\n\"\"\">\n\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]\" default={{$:/config/SearchResults/Default}} actions=\"\"\"<$action-setfield $tiddler=\"$:/state/search/currentTab\" text=<<currentTab>>/>\"\"\" explicitState=\"$:/state/tab/search-results/sidebar\"/>\n\n</$list>\n\n</div>\n"},"$:/core/ui/SideBar/More":{"tags":"$:/tags/SideBar","caption":"{{$:/language/SideBar/More/Caption}}","text":"<div class=\"tc-more-sidebar\">\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]\" default={{$:/config/DefaultMoreSidebarTab}} state=\"$:/state/tab/moresidebar\" class=\"tc-vertical tc-sidebar-tabs-more\" explicitState=\"$:/state/tab/moresidebar-1850697562\"/>\n</div>\n"},"$:/core/ui/SideBar/Open":{"tags":"$:/tags/SideBar","caption":"{{$:/language/SideBar/Open/Caption}}","text":"\\whitespace trim\n\\define lingo-base() $:/language/CloseAll/\n\n\\define drop-actions()\n<$action-listops $tiddler=<<tv-story-list>> $subfilter=\"+[insertbefore:currentTiddler<actionTiddler>]\"/>\n\\end\n\n\\define placeholder()\n<div class=\"tc-droppable-placeholder\"/>\n\\end\n\n\\define droppable-item(button)\n\\whitespace trim\n<$droppable actions=<<drop-actions>> enable=<<tv-allow-drag-and-drop>>>\n<<placeholder>>\n<div>\n$button$\n</div>\n</$droppable>\n\\end\n\n<div class=\"tc-sidebar-tab-open\">\n<$list filter=\"[list<tv-story-list>]\" history=<<tv-history-list>> storyview=\"pop\">\n<div class=\"tc-sidebar-tab-open-item\">\n<$macrocall $name=\"droppable-item\" button=\"\"\"<$button message=\"tm-close-tiddler\" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=\"tc-btn-invisible tc-btn-mini tc-small-gap-right\">{{$:/core/images/close-button}}</$button><$link to={{!!title}}><$view field=\"title\"/></$link>\"\"\"/>\n</div>\n</$list>\n<$tiddler tiddler=\"\">\n<div>\n<$macrocall $name=\"droppable-item\" button=\"\"\"<$button message=\"tm-close-all-tiddlers\" class=\"tc-btn-invisible tc-btn-mini\"><<lingo Button>></$button>\"\"\"/>\n</div>\n</$tiddler>\n</div>\n"},"$:/core/ui/SideBar/Recent":{"tags":"$:/tags/SideBar","caption":"{{$:/language/SideBar/Recent/Caption}}","text":"<$macrocall $name=\"timeline\" format={{$:/language/RecentChanges/DateFormat}}/>\n"},"$:/core/ui/SideBar/Tools":{"tags":"$:/tags/SideBar","caption":"{{$:/language/SideBar/Tools/Caption}}","text":"\\define lingo-base() $:/language/ControlPanel/\n\\define config-title()\n$:/config/PageControlButtons/Visibility/$(listItem)$\n\\end\n\n<<lingo Basics/Version/Prompt>> <<version>>\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]\" variable=\"listItem\">\n\n<div style=\"position:relative;\" class={{{ [<listItem>encodeuricomponent[]addprefix[tc-btn-]] }}}>\n\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <$transclude tiddler=<<listItem>>/> <i class=\"tc-muted\"><$transclude tiddler=<<listItem>> field=\"description\"/></i>\n\n</div>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n"},"$:/core/ui/SideBarLists":{"text":"<$transclude tiddler=\"$:/core/ui/SideBarSegments/search\"/>\n\n<$transclude tiddler=\"$:/core/ui/SideBarSegments/tabs\"/>\n\n"},"$:/core/ui/SideBarSegments/page-controls":{"tags":"$:/tags/SideBarSegment","text":"{{||$:/core/ui/PageTemplate/pagecontrols}}\n"},"$:/core/ui/SideBarSegments/search":{"tags":"$:/tags/SideBarSegment","text":"\\whitespace trim\n\n\\define count-popup-button()\n\\whitespace trim\n<$button popup=<<qualify \"$:/state/popup/search-dropdown\">> class=\"tc-btn-invisible\">\n{{$:/core/images/down-arrow}}\n<$list filter=\"[{$(searchTiddler)$}minlength{$:/config/Search/MinLength}limit[1]]\" variable=\"listItem\">\n<$vars userInput={{{ [<searchTiddler>get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}} replaceRegexp=\"limit\\[\\d+\\]\">\n<$vars primaryListFilter={{{ [<configTiddler>get[first-search-filter]search-replace:g:regexp<replaceRegexp>,[]] }}} secondaryListFilter={{{ [<configTiddler>get[second-search-filter]search-replace:g:regexp<replaceRegexp>,[]] }}}>\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[subfilter<primaryListFilter>] [subfilter<secondaryListFilter>]\"/>\"\"\">\n{{$:/language/Search/Matches}}\n</$set>\n</$vars>\n</$vars>\n</$list>\n</$button>\n\\end\n\n\\define search-results-list()\n\\whitespace trim\n<$vars userInput={{$(searchTiddler)$}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}}>\n<$list filter=\"[<userInput>minlength{$:/config/Search/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n\n<$tiddler tiddler=<<configTiddler>>>\n\n{{$:/core/ui/SearchResults}}\n\n</$tiddler>\n\n</$list>\n</$vars>\n\\end\n\n\\define cancel-search-actions() <$list filter=\"[<searchTiddler>get[text]!match{$:/temp/search}]\" emptyMessage=\"\"\"<$action-deletetiddler $filter=\"[[$:/temp/search]] [<searchTiddler>] [<searchListState>]\"/>\"\"\"><$action-setfield $tiddler=\"$:/temp/search\" text={{{ [<searchTiddler>get[text]] }}}/><$action-setfield $tiddler=\"$:/temp/search/refresh\" text=\"yes\"/></$list>\n\n\\define input-accept-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\"\"\"><$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/></$list>\n\n\\define input-accept-variant-actions() <$list filter=\"[{$:/config/Search/NavigateOnEnter/enable}match[yes]]\" emptyMessage=\"\"\"<$list filter=\"[<__tiddler__>get[text]!is[missing]] ~[<__tiddler__>get[text]is[shadow]]\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\"\"\"><$list filter=\"[<__tiddler__>get[text]minlength[1]]\"><$action-sendmessage $message=\"tm-edit-tiddler\" $param={{{ [<__tiddler__>get[text]] }}}/></$list></$list>\n\n\\define set-next-input-tab(beforeafter:\"after\") <$macrocall $name=\"change-input-tab\" stateTitle=\"$:/state/tab/search-results/sidebar\" tag=\"$:/tags/SearchResults\" beforeafter=\"$beforeafter$\" defaultState={{$:/config/SearchResults/Default}} actions=\"\"\"<$action-setfield $tiddler=\"$:/state/search/currentTab\" text=<<nextTab>>/>\"\"\"/>\n\n\\define advanced-search-actions() <$action-setfield $tiddler=\"$:/temp/advancedsearch\" text={{$:/temp/search/input}}/><$action-setfield $tiddler=\"$:/temp/advancedsearch/input\" text={{$:/temp/search/input}}/><<delete-state-tiddlers>><$action-navigate $to=\"$:/AdvancedSearch\"/><$action-setfield $tiddler=\"$:/temp/advancedsearch/refresh\" text=\"yes\"/><$action-sendmessage $message=\"tm-focus-selector\" $param=\"\"\"[data-tiddler-title=\"$:/AdvancedSearch\"] .tc-search input\"\"\" preventScroll=\"true\"/><$action-deletetiddler $filter=\"$:/temp/search $:/temp/search/input $:/temp/search/refresh [<searchListState>]\"/>\n\n<div class=\"tc-sidebar-lists tc-sidebar-search\">\n\n<$vars editTiddler=\"$:/temp/search\" searchTiddler=\"$:/temp/search/input\" searchListState=<<qualify \"$:/state/search-list/selected-item\">>>\n<div class=\"tc-search\">\n<$keyboard key=\"((input-tab-right))\" actions=<<set-next-input-tab>>>\n<$keyboard key=\"((input-tab-left))\" actions=<<set-next-input-tab \"before\">>>\n<$keyboard key=\"((advanced-search-sidebar))\" actions=<<advanced-search-actions>>>\n<$macrocall $name=\"keyboard-driven-input\" tiddler=<<editTiddler>> storeTitle=<<searchTiddler>> \n\t\tselectionStateTitle=<<searchListState>> refreshTitle=\"$:/temp/search/refresh\" type=\"search\" \n\t\ttag=\"input\" focus={{$:/config/Search/AutoFocus}} focusPopup=<<qualify \"$:/state/popup/search-dropdown\">> \n\t\tclass=\"tc-popup-handle\" filterMinLength={{$:/config/Search/MinLength}} inputCancelActions=<<cancel-search-actions>> \n\t\tinputAcceptActions=<<input-accept-actions>> inputAcceptVariantActions=<<input-accept-variant-actions>> cancelPopups=\"yes\" \n\t\tconfigTiddlerFilter=\"[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]\"/>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n<$reveal state=<<searchTiddler>> type=\"nomatch\" text=\"\">\n<$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"tc-btn-invisible\">\n<<advanced-search-actions>>\n{{$:/core/images/advanced-search-button}}\n</$button>\n<$button class=\"tc-btn-invisible\">\n<<cancel-search-actions>><$action-sendmessage $message=\"tm-focus-selector\" $param=\".tc-search input\"/>\n{{$:/core/images/close-button}}\n</$button>\n<<count-popup-button>>\n</$reveal>\n<$reveal state=<<searchTiddler>> type=\"match\" text=\"\">\n<$button to=\"$:/AdvancedSearch\" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class=\"tc-btn-invisible\">\n{{$:/core/images/advanced-search-button}}\n</$button>\n</$reveal>\n</div>\n\n<$reveal tag=\"div\" class=\"tc-block-dropdown-wrapper\" state=<<searchTiddler>> type=\"nomatch\" text=\"\">\n\n<$reveal tag=\"div\" class=\"tc-block-dropdown tc-search-drop-down tc-popup-handle\" state=<<qualify \"$:/state/popup/search-dropdown\">> type=\"nomatch\" text=\"\" default=\"\">\n\n<<search-results-list>>\n\n</$reveal>\n\n</$reveal>\n\n</$vars>\n\n</div>\n"},"$:/core/ui/SideBarSegments/site-subtitle":{"tags":"$:/tags/SideBarSegment","text":"<div class=\"tc-site-subtitle\">\n\n<$transclude tiddler=\"$:/SiteSubtitle\" mode=\"inline\"/>\n\n</div>\n"},"$:/core/ui/SideBarSegments/site-title":{"tags":"$:/tags/SideBarSegment","text":"<h1 class=\"tc-site-title\">\n\n<$transclude tiddler=\"$:/SiteTitle\" mode=\"inline\"/>\n\n</h1>\n"},"$:/core/ui/SideBarSegments/tabs":{"tags":"$:/tags/SideBarSegment","text":"<div class=\"tc-sidebar-lists tc-sidebar-tabs\">\n\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]\" default={{$:/config/DefaultSidebarTab}} state=\"$:/state/tab/sidebar\" class=\"tc-sidebar-tabs-main\" explicitState=\"$:/state/tab/sidebar--595412856\"/>\n\n</div>\n"},"$:/core/ui/SwitcherModal":{"subtitle":"<$text text={{{[<switch>lookup[$:/language/Switcher/Subtitle/]]}}}/>","class":"tc-modal-centered","text":"<$tiddler tiddler={{{[<switch>lookup[$:/config/SwitcherTargets/]]}}}>\n\n\n<$transclude/>\n\n\n</$tiddler>"},"$:/TagManager":{"icon":"$:/core/images/tag-button","color":"#bbb","text":"\\define lingo-base() $:/language/TagManager/\n\\define iconEditorTab(type)\n\\whitespace trim\n<$link to=\"\"><<lingo Icons/None>></$link>\n<$list filter=\"[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[sort[title]] +[$type$is[system]]\">\n<$link to={{!!title}}>\n<$transclude/> <$view field=\"title\"/>\n</$link>\n</$list>\n\\end\n\\define iconEditor(title)\n\\whitespace trim\n<div class=\"tc-drop-down-wrapper\">\n<$button popupTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} class=\"tc-btn-invisible tc-btn-dropdown\">{{$:/core/images/down-arrow}}</$button>\n<$reveal stateTitle={{{ [[$:/state/popup/icon/]addsuffix<__title__>] }}} type=\"popup\" position=\"belowleft\" text=\"\" default=\"\">\n<div class=\"tc-drop-down\">\n<$linkcatcher actions=\"\"\"<$action-setfield $tiddler=<<__title__>> icon=<<navigateTo>>/>\"\"\">\n<<iconEditorTab type:\"!\">>\n<hr/>\n<<iconEditorTab type:\"\">>\n</$linkcatcher>\n</div>\n</$reveal>\n</div>\n\\end\n\\define toggleButton(state)\n\\whitespace trim\n<$reveal stateTitle=<<__state__>> type=\"match\" text=\"closed\" default=\"closed\">\n<$button setTitle=<<__state__>> setTo=\"open\" class=\"tc-btn-invisible tc-btn-dropdown\" selectedClass=\"tc-selected\">\n{{$:/core/images/info-button}}\n</$button>\n</$reveal>\n<$reveal stateTitle=<<__state__>> type=\"match\" text=\"open\" default=\"closed\">\n<$button setTitle=<<__state__>> setTo=\"closed\" class=\"tc-btn-invisible tc-btn-dropdown\" selectedClass=\"tc-selected\">\n{{$:/core/images/info-button}}\n</$button>\n</$reveal>\n\\end\n\\whitespace trim\n<table class=\"tc-tag-manager-table\">\n<tbody>\n<tr>\n<th><<lingo Colour/Heading>></th>\n<th class=\"tc-tag-manager-tag\"><<lingo Tag/Heading>></th>\n<th><<lingo Count/Heading>></th>\n<th><<lingo Icon/Heading>></th>\n<th><<lingo Info/Heading>></th>\n</tr>\n<$list filter=\"[tags[]!is[system]sort[title]]\">\n<tr>\n<td><$edit-text field=\"color\" tag=\"input\" type=\"color\"/></td>\n<td>{{||$:/core/ui/TagTemplate}}</td>\n<td><$count filter=\"[all[current]tagging[]]\"/></td>\n<td>\n<$macrocall $name=\"iconEditor\" title={{!!title}}/>\n</td>\n<td>\n<$macrocall $name=\"toggleButton\" state={{{ [[$:/state/tag-manager/]addsuffix<currentTiddler>] }}} /> \n</td>\n</tr>\n<tr>\n<td></td>\n<td colspan=\"4\">\n<$reveal stateTitle={{{ [[$:/state/tag-manager/]addsuffix<currentTiddler>] }}} type=\"match\" text=\"open\" default=\"\">\n<table>\n<tbody>\n<tr><td><<lingo Colour/Heading>></td><td><$edit-text field=\"color\" tag=\"input\" type=\"text\" size=\"9\"/></td></tr>\n<tr><td><<lingo Icon/Heading>></td><td><$edit-text field=\"icon\" tag=\"input\" size=\"45\"/></td></tr>\n</tbody>\n</table>\n</$reveal>\n</td>\n</tr>\n</$list>\n<tr>\n<td></td>\n<td style=\"position:relative;\">\n{{$:/core/ui/UntaggedTemplate}}\n</td>\n<td>\n<small class=\"tc-menu-list-count\"><$count filter=\"[untagged[]!is[system]] -[tags[]]\"/></small>\n</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n"},"$:/core/ui/TagPickerTagTemplate":{"text":"\\whitespace trim\n<$button class=<<button-classes>> tag=\"a\" tooltip={{$:/language/EditTemplate/Tags/Add/Button/Hint}}>\n<$list filter=\"[<saveTiddler>minlength[1]]\">\n<$action-listops $tiddler=<<saveTiddler>> $field=<<tagField>> $subfilter=\"[<tag>]\"/>\n</$list>\n<$set name=\"currentTiddlerCSSEscaped\" value={{{ [<saveTiddler>escapecss[]] }}}>\n<$action-sendmessage $message=\"tm-focus-selector\" $param=<<get-tagpicker-focus-selector>> preventScroll=\"true\"/>\n</$set>\n<<delete-tag-state-tiddlers>>\n<$list filter=\"[<refreshTitle>minlength[1]]\">\n<$action-setfield $tiddler=<<refreshTitle>> text=\"yes\"/>\n</$list>\n<<actions>>\n<$set name=\"backgroundColor\" value={{!!color}}>\n<$wikify name=\"foregroundColor\" text=\"\"\"<$macrocall $name=\"contrastcolour\" target={{!!color}} fallbackTarget=<<fallbackTarget>> colourA=<<colourA>> colourB=<<colourB>>/>\"\"\">\n<span class=\"tc-tag-label tc-btn-invisible\" style=<<tag-pill-styles>>>\n<$transclude tiddler={{!!icon}}/><$view field=\"title\" format=\"text\"/>\n</span>\n</$wikify>\n</$set>\n</$button>\n"},"$:/core/ui/TagTemplate":{"text":"\\whitespace trim\n<span class=\"tc-tag-list-item\" data-tag-title=<<currentTiddler>>>\n<$set name=\"transclusion\" value=<<currentTiddler>>>\n<$macrocall $name=\"tag-pill-body\" tag=<<currentTiddler>> icon={{!!icon}} colour={{!!color}} palette={{$:/palette}} element-tag=\"\"\"$button\"\"\" element-attributes=\"\"\"popup=<<qualify \"$:/state/popup/tag\">> dragFilter='[all[current]tagging[]]' tag='span'\"\"\"/>\n<$reveal state=<<qualify \"$:/state/popup/tag\">> type=\"popup\" position=\"below\" animate=\"yes\" class=\"tc-drop-down\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</$set>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]\" variable=\"listItem\"> \n<$transclude tiddler=<<listItem>>/> \n</$list>\n<hr>\n<$macrocall $name=\"list-tagged-draggable\" tag=<<currentTiddler>>/>\n</$reveal>\n</$set>\n</span>\n"},"$:/core/ui/TiddlerFieldTemplate":{"text":"<tr class=\"tc-view-field\">\n<td class=\"tc-view-field-name\">\n<$text text=<<listItem>>/>\n</td>\n<td class=\"tc-view-field-value\">\n<$view field=<<listItem>>/>\n</td>\n</tr>"},"$:/core/ui/TiddlerFields":{"text":"<table class=\"tc-view-field-table\">\n<tbody>\n<$list filter=\"[all[current]fields[]sort[title]] -text\" template=\"$:/core/ui/TiddlerFieldTemplate\" variable=\"listItem\"/>\n</tbody>\n</table>\n"},"$:/core/ui/TiddlerInfo/Advanced/PluginInfo":{"tags":"$:/tags/TiddlerInfo/Advanced","text":"\\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/\n<$list filter=\"[all[current]has[plugin-type]]\">\n\n! <<lingo Heading>>\n\n<<lingo Hint>>\n<ul>\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" emptyMessage=<<lingo Empty/Hint>>>\n<li>\n<$link to={{!!title}}>\n<$view field=\"title\"/>\n</$link>\n</li>\n</$list>\n</ul>\n\n</$list>\n"},"$:/core/ui/TiddlerInfo/Advanced/ShadowInfo":{"tags":"$:/tags/TiddlerInfo/Advanced","text":"\\define lingo-base() $:/language/TiddlerInfo/Advanced/ShadowInfo/\n<$set name=\"infoTiddler\" value=<<currentTiddler>>>\n\n''<<lingo Heading>>''\n\n<$list filter=\"[all[current]!is[shadow]]\">\n\n<<lingo NotShadow/Hint>>\n\n</$list>\n\n<$list filter=\"[all[current]is[shadow]]\">\n\n<<lingo Shadow/Hint>>\n\n<$list filter=\"[all[current]shadowsource[]]\">\n\n<$set name=\"pluginTiddler\" value=<<currentTiddler>>>\n<<lingo Shadow/Source>>\n</$set>\n\n</$list>\n\n<$list filter=\"[all[current]is[shadow]is[tiddler]]\">\n\n<<lingo OverriddenShadow/Hint>>\n\n</$list>\n\n\n</$list>\n</$set>\n"},"$:/core/ui/TiddlerInfo/Advanced":{"tags":"$:/tags/TiddlerInfo","caption":"{{$:/language/TiddlerInfo/Advanced/Caption}}","text":"<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo/Advanced]!has[draft.of]]\" variable=\"listItem\">\n\n<$transclude tiddler=<<listItem>> mode=\"block\"/>\n</$list>\n"},"$:/core/ui/TiddlerInfo/Fields":{"tags":"$:/tags/TiddlerInfo","caption":"{{$:/language/TiddlerInfo/Fields/Caption}}","text":"<$transclude tiddler=\"$:/core/ui/TiddlerFields\"/>\n"},"$:/core/ui/TiddlerInfo/List":{"tags":"$:/tags/TiddlerInfo","caption":"{{$:/language/TiddlerInfo/List/Caption}}","text":"\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[list{!!title}]\" emptyMessage=<<lingo List/Empty>> template=\"$:/core/ui/ListItemTemplate\"/>\n"},"$:/core/ui/TiddlerInfo/Listed":{"tags":"$:/tags/TiddlerInfo","caption":"{{$:/language/TiddlerInfo/Listed/Caption}}","text":"\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[all[current]listed[]!is[system]]\" emptyMessage=<<lingo Listed/Empty>> template=\"$:/core/ui/ListItemTemplate\"/>\n"},"$:/core/ui/TiddlerInfo/References":{"tags":"$:/tags/TiddlerInfo","caption":"{{$:/language/TiddlerInfo/References/Caption}}","text":"\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[all[current]backlinks[]sort[title]]\" emptyMessage=<<lingo References/Empty>> template=\"$:/core/ui/ListItemTemplate\">\n</$list>"},"$:/core/ui/TiddlerInfo/Tagging":{"tags":"$:/tags/TiddlerInfo","caption":"{{$:/language/TiddlerInfo/Tagging/Caption}}","text":"\\define lingo-base() $:/language/TiddlerInfo/\n<$list filter=\"[all[current]tagging[]]\" emptyMessage=<<lingo Tagging/Empty>> template=\"$:/core/ui/ListItemTemplate\"/>\n"},"$:/core/ui/TiddlerInfo/Tools":{"tags":"$:/tags/TiddlerInfo","caption":"{{$:/language/TiddlerInfo/Tools/Caption}}","text":"\\define lingo-base() $:/language/TiddlerInfo/\n\\define config-title()\n$:/config/ViewToolbarButtons/Visibility/$(listItem)$\n\\end\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]\" variable=\"listItem\">\n\n<$checkbox tiddler=<<config-title>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"show\"/> <$transclude tiddler=<<listItem>>/> <i class=\"tc-muted\"><$transclude tiddler=<<listItem>> field=\"description\"/></i>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n"},"$:/core/ui/TiddlerInfo":{"text":"<div style=\"position:relative;\">\n<div class=\"tc-tiddler-controls\" style=\"position:absolute;right:0;\">\n<$reveal state=\"$:/config/TiddlerInfo/Mode\" type=\"match\" text=\"sticky\">\n<$button set=<<tiddlerInfoState>> setTo=\"\" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=\"tc-btn-invisible\">\n{{$:/core/images/close-button}}\n</$button>\n</$reveal>\n</div>\n</div>\n\n<$macrocall $name=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo]!has[draft.of]]\" default={{$:/config/TiddlerInfo/Default}}/>\n"},"$:/core/ui/TopBar/menu":{"tags":"$:/tags/TopRightBar","text":"<$list filter=\"[[$:/state/sidebar]get[text]] +[else[yes]!match[no]]\" variable=\"ignore\">\n<$button set=\"$:/state/sidebar\" setTo=\"no\" tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class=\"tc-btn-invisible tc-hide-sidebar-btn\">{{$:/core/images/chevron-right}}</$button>\n</$list>\n<$list filter=\"[[$:/state/sidebar]get[text]] +[else[yes]match[no]]\" variable=\"ignore\">\n<$button set=\"$:/state/sidebar\" setTo=\"yes\" tooltip={{$:/language/Buttons/ShowSideBar/Hint}} aria-label={{$:/language/Buttons/ShowSideBar/Caption}} class=\"tc-btn-invisible tc-show-sidebar-btn\">{{$:/core/images/chevron-left}}</$button>\n</$list>\n"},"$:/core/ui/UntaggedTemplate":{"text":"\\define lingo-base() $:/language/SideBar/\n<$button popup=<<qualify \"$:/state/popup/tag\">> class=\"tc-btn-invisible tc-untagged-label tc-tag-label\">\n<<lingo Tags/Untagged/Caption>>\n</$button>\n<$reveal state=<<qualify \"$:/state/popup/tag\">> type=\"popup\" position=\"below\">\n<div class=\"tc-drop-down\">\n<$list filter=\"[untagged[]!is[system]] -[tags[]] +[sort[title]]\" template=\"$:/core/ui/ListItemTemplate\"/>\n</div>\n</$reveal>\n"},"$:/core/ui/ViewTemplate/body":{"tags":"$:/tags/ViewTemplate","text":"<$reveal tag=\"div\" class=\"tc-tiddler-body\" type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" retain=\"yes\" animate=\"yes\">\n\n<$list filter=\"[all[current]!has[plugin-type]!field:hide-body[yes]]\">\n\n<$transclude>\n\n<$transclude tiddler=\"$:/language/MissingTiddler/Hint\"/>\n\n</$transclude>\n\n</$list>\n\n</$reveal>\n"},"$:/core/ui/ViewTemplate/classic":{"tags":"$:/tags/ViewTemplate $:/tags/EditTemplate","text":"\\define lingo-base() $:/language/ClassicWarning/\n<$list filter=\"[all[current]type[text/x-tiddlywiki]]\">\n<div class=\"tc-message-box\">\n\n<<lingo Hint>>\n\n<$button set=\"!!type\" setTo=\"text/vnd.tiddlywiki\"><<lingo Upgrade/Caption>></$button>\n\n</div>\n</$list>\n"},"$:/core/ui/ViewTemplate/import":{"tags":"$:/tags/ViewTemplate","text":"\\define lingo-base() $:/language/Import/\n\n\\define buttons()\n<$button message=\"tm-delete-tiddler\" param=<<currentTiddler>>><<lingo Listing/Cancel/Caption>></$button>\n<$button message=\"tm-perform-import\" param=<<currentTiddler>>><<lingo Listing/Import/Caption>></$button>\n<<lingo Listing/Preview>> <$select tiddler=\"$:/state/importpreviewtype\" default=\"$:/core/ui/ImportPreviews/Text\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ImportPreview]!has[draft.of]]\">\n<option value=<<currentTiddler>>>{{!!caption}}</option>\n</$list>\n</$select>\n\\end\n\n<$list filter=\"[all[current]field:plugin-type[import]]\">\n\n<div class=\"tc-import\">\n\n<<lingo Listing/Hint>>\n\n<<buttons>>\n\n{{||$:/core/ui/ImportListing}}\n\n<<buttons>>\n\n</div>\n\n</$list>\n"},"$:/core/ui/ViewTemplate/plugin":{"tags":"$:/tags/ViewTemplate","text":"<$reveal tag=\"div\" class=\"tc-tiddler-plugin-info\" type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" retain=\"yes\" animate=\"yes\">\n\n<$list filter=\"[all[current]has[plugin-type]] -[all[current]field:plugin-type[import]]\">\n<$set name=\"plugin-type\" value={{!!plugin-type}}>\n<$set name=\"default-popup-state\" value=\"yes\">\n<$set name=\"qualified-state\" value=<<qualify \"$:/state/plugin-info\">>>\n{{||$:/core/ui/Components/plugin-info}}\n</$set>\n</$set>\n</$set>\n</$list>\n</$reveal>"},"$:/core/ui/ViewTemplate/subtitle":{"tags":"$:/tags/ViewTemplate","text":"\\whitespace trim\n<$reveal type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" tag=\"div\" retain=\"yes\" animate=\"yes\">\n<div class=\"tc-subtitle\">\n<$link to={{!!modifier}} />\n<$view field=\"modified\" format=\"date\" template={{$:/language/Tiddler/DateFormat}}/>\n</div>\n</$reveal>\n"},"$:/core/ui/ViewTemplate/tags":{"tags":"$:/tags/ViewTemplate","text":"<$reveal type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" tag=\"div\" retain=\"yes\" animate=\"yes\">\n<div class=\"tc-tags-wrapper\"><$list filter=\"[all[current]tags[]sort[title]]\" template=\"$:/core/ui/TagTemplate\" storyview=\"pop\"/></div>\n</$reveal>\n"},"$:/core/ui/ViewTemplate/title":{"tags":"$:/tags/ViewTemplate","text":"\\whitespace trim\n\\define title-styles()\nfill:$(foregroundColor)$;\n\\end\n\\define config-title()\n$:/config/ViewToolbarButtons/Visibility/$(listItem)$\n\\end\n<div class=\"tc-tiddler-title\">\n<div class=\"tc-titlebar\">\n<span class=\"tc-tiddler-controls\">\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]\" variable=\"listItem\"><$reveal type=\"nomatch\" state=<<config-title>> text=\"hide\"><$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\"><$transclude tiddler=<<listItem>>/></$set></$reveal></$list>\n</span>\n<$set name=\"tv-wikilinks\" value={{$:/config/Tiddlers/TitleLinks}}>\n<$link>\n<$set name=\"foregroundColor\" value={{!!color}}>\n<$list filter=\"[all[current]has[icon]]~[[$:/config/DefaultTiddlerIcon]has[text]]\">\n<span class=\"tc-tiddler-title-icon\" style=<<title-styles>>>\n<$transclude tiddler={{!!icon}}>\n<$transclude tiddler={{$:/config/DefaultTiddlerIcon}}/>\n</$transclude>\n</span>\n</$list>\n</$set>\n<$list filter=\"[all[current]removeprefix[$:/]]\">\n<h2 class=\"tc-title\" title={{$:/language/SystemTiddler/Tooltip}}>\n<span class=\"tc-system-title-prefix\">$:/</span><$text text=<<currentTiddler>>/>\n</h2>\n</$list>\n<$list filter=\"[all[current]!prefix[$:/]]\">\n<h2 class=\"tc-title\">\n<$view field=\"title\"/>\n</h2>\n</$list>\n</$link>\n</$set>\n</div>\n\n<$reveal type=\"nomatch\" text=\"\" default=\"\" state=<<tiddlerInfoState>> class=\"tc-tiddler-info tc-popup-handle\" animate=\"yes\" retain=\"yes\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TiddlerInfoSegment]!has[draft.of]] [[$:/core/ui/TiddlerInfo]]\" variable=\"listItem\"><$transclude tiddler=<<listItem>> mode=\"block\"/></$list>\n\n</$reveal>\n</div>"},"$:/core/ui/ViewTemplate/unfold":{"tags":"$:/tags/ViewTemplate","text":"<$reveal tag=\"div\" type=\"nomatch\" state=\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar\" text=\"hide\">\n<$reveal tag=\"div\" type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" default=\"show\" retain=\"yes\" animate=\"yes\">\n<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=\"tc-fold-banner\">\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n{{$:/core/images/chevron-up}}\n</$button>\n</$reveal>\n<$reveal tag=\"div\" type=\"nomatch\" stateTitle=<<folded-state>> text=\"show\" default=\"show\" retain=\"yes\" animate=\"yes\">\n<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=\"tc-unfold-banner\">\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n{{$:/core/images/chevron-down}}\n</$button>\n</$reveal>\n</$reveal>\n"},"$:/core/ui/ViewTemplate":{"text":"\\define folded-state()\n$:/state/folded/$(currentTiddler)$\n\\end\n\\define cancel-delete-tiddler-actions(message) <$action-sendmessage $message=\"tm-$message$-tiddler\"/>\n\\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]]\n<$vars storyTiddler=<<currentTiddler>> tiddlerInfoState=<<qualify \"$:/state/popup/tiddler-info\">>><div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-view-frame [<currentTiddler>is[tiddler]then[tc-tiddler-exists]] [<currentTiddler>is[missing]!is[shadow]then[tc-tiddler-missing]] [<currentTiddler>is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [<currentTiddler>is[shadow]is[tiddler]then[tc-tiddler-overridden-shadow]] [<currentTiddler>is[system]then[tc-tiddler-system]] [{!!class}] [<currentTiddler>tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}><$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]\" variable=\"listItem\"><$transclude tiddler=<<listItem>>/></$list>\n</div>\n</$vars>\n"},"$:/core/ui/Buttons/clone":{"tags":"$:/tags/ViewToolbar","caption":"{{$:/core/images/clone-button}} {{$:/language/Buttons/Clone/Caption}}","description":"{{$:/language/Buttons/Clone/Hint}}","text":"\\whitespace trim\n<$button message=\"tm-new-tiddler\" param=<<currentTiddler>> tooltip={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/clone-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Clone/Caption}}/>\n</span>\n</$list>\n</$button>"},"$:/core/ui/Buttons/close-others":{"tags":"$:/tags/ViewToolbar","caption":"{{$:/core/images/close-others-button}} {{$:/language/Buttons/CloseOthers/Caption}}","description":"{{$:/language/Buttons/CloseOthers/Hint}}","text":"\\whitespace trim\n<$button message=\"tm-close-other-tiddlers\" param=<<currentTiddler>> tooltip={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/close-others-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/CloseOthers/Caption}}/>\n</span>\n</$list>\n</$button>"},"$:/core/ui/Buttons/close":{"tags":"$:/tags/ViewToolbar","caption":"{{$:/core/images/close-button}} {{$:/language/Buttons/Close/Caption}}","description":"{{$:/language/Buttons/Close/Hint}}","text":"\\whitespace trim\n<$button message=\"tm-close-tiddler\" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/close-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/Close/Caption}}/>\n</span>\n</$list>\n</$button>"},"$:/core/ui/Buttons/edit":{"tags":"$:/tags/ViewToolbar","caption":"{{$:/core/images/edit-button}} {{$:/language/Buttons/Edit/Caption}}","description":"{{$:/language/Buttons/Edit/Hint}}","text":"\\whitespace trim\n<$button message=\"tm-edit-tiddler\" tooltip={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/edit-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Edit/Caption}}/>\n</span>\n</$list>\n</$button>"},"$:/core/ui/Buttons/export-tiddler":{"tags":"$:/tags/ViewToolbar","caption":"{{$:/core/images/export-button}} {{$:/language/Buttons/ExportTiddler/Caption}}","description":"{{$:/language/Buttons/ExportTiddler/Hint}}","text":"\\define makeExportFilter()\n[[$(currentTiddler)$]]\n\\end\n<$macrocall $name=\"exportButton\" exportFilter=<<makeExportFilter>> lingoBase=\"$:/language/Buttons/ExportTiddler/\" baseFilename=<<currentTiddler>>/>"},"$:/core/ui/Buttons/fold-bar":{"tags":"$:/tags/ViewToolbar","caption":"{{$:/core/images/chevron-up}} {{$:/language/Buttons/Fold/FoldBar/Caption}}","description":"{{$:/language/Buttons/Fold/FoldBar/Hint}}","text":"<!-- This dummy toolbar button is here to allow visibility of the fold-bar to be controlled as if it were a toolbar button -->"},"$:/core/ui/Buttons/fold-others":{"tags":"$:/tags/ViewToolbar","caption":"{{$:/core/images/fold-others-button}} {{$:/language/Buttons/FoldOthers/Caption}}","description":"{{$:/language/Buttons/FoldOthers/Hint}}","text":"\\whitespace trim\n<$button tooltip={{$:/language/Buttons/FoldOthers/Hint}} aria-label={{$:/language/Buttons/FoldOthers/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-other-tiddlers\" $param=<<currentTiddler>> foldedStatePrefix=\"$:/state/folded/\"/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/fold-others-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/FoldOthers/Caption}}/>\n</span>\n</$list>\n</$button>"},"$:/core/ui/Buttons/fold":{"tags":"$:/tags/ViewToolbar","caption":"{{$:/core/images/fold-button}} {{$:/language/Buttons/Fold/Caption}}","description":"{{$:/language/Buttons/Fold/Hint}}","text":"\\whitespace trim\n<$reveal type=\"nomatch\" stateTitle=<<folded-state>> text=\"hide\" default=\"show\">\n<$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/fold-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Fold/Caption}}/>\n</span>\n</$list>\n</$button>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<folded-state>> text=\"hide\" default=\"show\">\n<$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-fold-tiddler\" $param=<<currentTiddler>> foldedState=<<folded-state>>/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\" variable=\"listItem\">\n{{$:/core/images/unfold-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Unfold/Caption}}/>\n</span>\n</$list>\n</$button>\n</$reveal>\n"},"$:/core/ui/Buttons/info":{"tags":"$:/tags/ViewToolbar","caption":"{{$:/core/images/info-button}} {{$:/language/Buttons/Info/Caption}}","description":"{{$:/language/Buttons/Info/Hint}}","text":"\\whitespace trim\n\\define button-content()\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/info-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/Info/Caption}}/>\n</span>\n</$list>\n\\end\n<$reveal state=\"$:/config/TiddlerInfo/Mode\" type=\"match\" text=\"popup\">\n<$button popup=<<tiddlerInfoState>> tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$macrocall $name=\"button-content\" mode=\"inline\"/>\n</$button>\n</$reveal>\n<$reveal state=\"$:/config/TiddlerInfo/Mode\" type=\"match\" text=\"sticky\">\n<$reveal state=<<tiddlerInfoState>> type=\"match\" text=\"\" default=\"\">\n<$button set=<<tiddlerInfoState>> setTo=\"yes\" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$macrocall $name=\"button-content\" mode=\"inline\"/>\n</$button>\n</$reveal>\n<$reveal state=<<tiddlerInfoState>> type=\"nomatch\" text=\"\" default=\"\">\n<$button set=<<tiddlerInfoState>> setTo=\"\" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$macrocall $name=\"button-content\" mode=\"inline\"/>\n</$button>\n</$reveal>\n</$reveal>"},"$:/core/ui/Buttons/more-tiddler-actions":{"tags":"$:/tags/ViewToolbar","caption":"{{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}","description":"{{$:/language/Buttons/More/Hint}}","text":"\\whitespace trim\n\\define config-title()\n$:/config/ViewToolbarButtons/Visibility/$(listItem)$\n\\end\n<$button popup=<<qualify \"$:/state/popup/more\">> tooltip={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/down-arrow}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/More/Caption}}/>\n</span>\n</$list>\n</$button>\n<$reveal state=<<qualify \"$:/state/popup/more\">> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n\n<div class=\"tc-drop-down\">\n\n<$set name=\"tv-config-toolbar-icons\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-text\" value=\"yes\">\n\n<$set name=\"tv-config-toolbar-class\" value=\"tc-btn-invisible\">\n\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]\" variable=\"listItem\">\n\n<$reveal type=\"match\" state=<<config-title>> text=\"hide\">\n\n<$set name=\"tv-config-toolbar-class\" filter=\"[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]\">\n\n<$transclude tiddler=<<listItem>> mode=\"inline\"/>\n\n</$set>\n\n</$reveal>\n\n</$list>\n\n</$set>\n\n</$set>\n\n</$set>\n\n</div>\n\n</$reveal>"},"$:/core/ui/Buttons/new-here":{"tags":"$:/tags/ViewToolbar","caption":"{{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Caption}}","description":"{{$:/language/Buttons/NewHere/Hint}}","text":"\\whitespace trim\n\\define newHereActions()\n<$set name=\"tags\" filter=\"[<currentTiddler>] [{$:/config/NewTiddler/Tags}]\">\n<$action-sendmessage $message=\"tm-new-tiddler\" tags=<<tags>>/>\n</$set>\n\\end\n\\define newHereButton()\n<$button actions=<<newHereActions>> tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-here-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/NewHere/Caption}}/>\n</span>\n</$list>\n</$button>\n\\end\n<<newHereButton>>\n"},"$:/core/ui/Buttons/new-journal-here":{"tags":"$:/tags/ViewToolbar","caption":"{{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournalHere/Caption}}","description":"{{$:/language/Buttons/NewJournalHere/Hint}}","text":"\\whitespace trim\n\\define journalButtonTags()\n[[$(currentTiddlerTag)$]] $(journalTags)$\n\\end\n\\define journalButton()\n<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=<<tv-config-toolbar-class>>>\n<$wikify name=\"journalTitle\" text=\"\"\"<$macrocall $name=\"now\" format=<<journalTitleTemplate>>/>\"\"\">\n<$action-sendmessage $message=\"tm-new-tiddler\" title=<<journalTitle>> tags=<<journalButtonTags>>/>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/new-journal-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text={{$:/language/Buttons/NewJournalHere/Caption}}/>\n</span>\n</$list>\n</$wikify>\n</$button>\n\\end\n<$set name=\"journalTitleTemplate\" value={{$:/config/NewJournal/Title}}>\n<$set name=\"journalTags\" value={{$:/config/NewJournal/Tags}}>\n<$set name=\"currentTiddlerTag\" value=<<currentTiddler>>>\n<<journalButton>>\n</$set>\n</$set>\n</$set>\n"},"$:/core/ui/Buttons/open-window":{"tags":"$:/tags/ViewToolbar","caption":"{{$:/core/images/open-window}} {{$:/language/Buttons/OpenWindow/Caption}}","description":"{{$:/language/Buttons/OpenWindow/Hint}}","text":"\\whitespace trim\n<$button message=\"tm-open-window\" tooltip={{$:/language/Buttons/OpenWindow/Hint}} aria-label={{$:/language/Buttons/OpenWindow/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/open-window}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/OpenWindow/Caption}}/>\n</span>\n</$list>\n</$button>"},"$:/core/ui/Buttons/permalink":{"tags":"$:/tags/ViewToolbar","caption":"{{$:/core/images/permalink-button}} {{$:/language/Buttons/Permalink/Caption}}","description":"{{$:/language/Buttons/Permalink/Hint}}","text":"\\whitespace trim\n<$button message=\"tm-permalink\" tooltip={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/permalink-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Permalink/Caption}}/>\n</span>\n</$list>\n</$button>"},"$:/core/ui/Buttons/permaview":{"tags":"$:/tags/ViewToolbar $:/tags/PageControls","caption":"{{$:/core/images/permaview-button}} {{$:/language/Buttons/Permaview/Caption}}","description":"{{$:/language/Buttons/Permaview/Hint}}","text":"\\whitespace trim\n<$button message=\"tm-permaview\" tooltip={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=<<tv-config-toolbar-class>>>\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/permaview-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\">\n<$text text=\" \"/>\n<$text text={{$:/language/Buttons/Permaview/Caption}}/>\n</span>\n</$list>\n</$button>"},"$:/DefaultTiddlers":{"text":"GettingStarted\n"},"$:/temp/advancedsearch":{"text":""},"$:/snippets/allfields":{"text":"\\define renderfield(title)\n<tr class=\"tc-view-field\"><td class=\"tc-view-field-name\">''$title$'':</td><td class=\"tc-view-field-value\">//{{$:/language/Docs/Fields/$title$}}//</td></tr>\n\\end\n<table class=\"tc-view-field-table\"><tbody><$list filter=\"[fields[]sort[title]]\" variable=\"listItem\"><$macrocall $name=\"renderfield\" title=<<listItem>>/></$list>\n</tbody></table>\n"},"$:/config/AnimationDuration":{"text":"400"},"$:/config/AutoFocus":{"text":"title"},"$:/config/AutoSave":{"text":"yes"},"$:/config/BitmapEditor/Colour":{"text":"#444"},"$:/config/BitmapEditor/ImageSizes":{"text":"[[62px 100px]] [[100px 62px]] [[124px 200px]] [[200px 124px]] [[248px 400px]] [[371px 600px]] [[400px 248px]] [[556px 900px]] [[600px 371px]] [[742px 1200px]] [[900px 556px]] [[1200px 742px]]"},"$:/config/BitmapEditor/LineWidth":{"text":"3px"},"$:/config/BitmapEditor/LineWidths":{"text":"0.25px 0.5px 1px 2px 3px 4px 6px 8px 10px 16px 20px 28px 40px 56px 80px"},"$:/config/BitmapEditor/Opacities":{"text":"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"},"$:/config/BitmapEditor/Opacity":{"text":"1.0"},"$:/config/DefaultMoreSidebarTab":{"text":"$:/core/ui/MoreSideBar/Tags"},"$:/config/DefaultSidebarTab":{"text":"$:/core/ui/SideBar/Open"},"$:/config/DownloadSaver/AutoSave":{"text":"no"},"$:/config/Drafts/TypingTimeout":{"text":"400"},"$:/config/EditMode/fieldname-filter":{"first-search-filter":"[!is[shadow]!is[system]fields[]search:title<userInput>sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type","second-search-filter":"[fields[]search:title<userInput>sort[]] -[!is[shadow]!is[system]fields[]]"},"$:/config/EditTabIndex":{"text":"1\n"},"$:/config/EditTemplateFields/Visibility/title":{"text":"hide"},"$:/config/EditTemplateFields/Visibility/tags":{"text":"hide"},"$:/config/EditTemplateFields/Visibility/text":{"text":"hide"},"$:/config/EditTemplateFields/Visibility/creator":{"text":"hide"},"$:/config/EditTemplateFields/Visibility/created":{"text":"hide"},"$:/config/EditTemplateFields/Visibility/modified":{"text":"hide"},"$:/config/EditTemplateFields/Visibility/modifier":{"text":"hide"},"$:/config/EditTemplateFields/Visibility/type":{"text":"hide"},"$:/config/EditTemplateFields/Visibility/draft.title":{"text":"hide"},"$:/config/EditTemplateFields/Visibility/draft.of":{"text":"hide"},"$:/config/EditTemplateFields/Visibility/revision":{"text":"hide"},"$:/config/EditTemplateFields/Visibility/bag":{"text":"hide"},"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4":{"text":"hide"},"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-5":{"text":"hide"},"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-6":{"text":"hide"},"$:/config/EditorTypeMappings/image/gif":{"text":"bitmap"},"$:/config/EditorTypeMappings/image/webp":{"text":"bitmap"},"$:/config/EditorTypeMappings/image/heic":{"text":"bitmap"},"$:/config/EditorTypeMappings/image/heif":{"text":"bitmap"},"$:/config/EditorTypeMappings/image/jpeg":{"text":"bitmap"},"$:/config/EditorTypeMappings/image/jpg":{"text":"bitmap"},"$:/config/EditorTypeMappings/image/png":{"text":"bitmap"},"$:/config/EditorTypeMappings/image/x-icon":{"text":"bitmap"},"$:/config/EditorTypeMappings/text/vnd.tiddlywiki":{"text":"text"},"$:/config/Manager/Show":{"text":"tiddlers"},"$:/config/Manager/Filter":{"text":""},"$:/config/Manager/Order":{"text":"forward"},"$:/config/Manager/Sort":{"text":"title"},"$:/config/Manager/System":{"text":"system"},"$:/config/Manager/Tag":{"text":""},"$:/state/popup/manager/item/$:/Manager/ItemMain/RawText":{"text":"hide"},"$:/config/MissingLinks":{"text":"yes"},"$:/config/Navigation/UpdateAddressBar":{"text":"no"},"$:/config/Navigation/UpdateHistory":{"text":"no"},"$:/config/NewImageType":{"text":"jpeg"},"$:/config/OfficialPluginLibrary":{"tags":"$:/tags/PluginLibrary","url":"https://tiddlywiki.com/library/v5.1.24/index.html","caption":"{{$:/language/OfficialPluginLibrary}}","text":"{{$:/language/OfficialPluginLibrary/Hint}}\n"},"$:/config/Navigation/openLinkFromInsideRiver":{"text":"below"},"$:/config/Navigation/openLinkFromOutsideRiver":{"text":"top"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/close-all":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/encryption":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/export-page":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/fold-all":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/full-screen":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/refresh":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/import":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/language":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/tag-manager":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/manager":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-journal":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-image":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/palette":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/permaview":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/print":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/storyview":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/timestamp":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/theme":{"text":"hide"},"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/unfold-all":{"text":"hide"},"$:/config/Performance/Instrumentation":{"text":"no"},"$:/config/RegisterPluginType/plugin":{"text":"yes"},"$:/config/RegisterPluginType/theme":{"text":"no"},"$:/config/RegisterPluginType/language":{"text":"no"},"$:/config/RegisterPluginType/info":{"text":"yes"},"$:/config/RegisterPluginType/import":{"text":"no"},"$:/config/SaveWikiButton/Template":{"text":"$:/core/save/all"},"$:/config/SaverFilter":{"text":"[all[]] -[prefix[$:/HistoryList]] -[prefix[$:/StoryList]] -[status[pending]plugin-type[import]] -[[$:/isEncrypted]] -[[$:/UploadName]] -[prefix[$:/state/]] -[prefix[$:/temp/]]\n"},"$:/config/Search/AutoFocus":{"text":"true"},"$:/config/Search/MinLength":{"text":"3"},"$:/config/SearchResults/Default":{"text":"$:/core/ui/DefaultSearchResultList"},"$:/config/Server/ExternalFilters/[all[tiddlers]!is[system]sort[title]]":{"text":"yes"},"$:/config/ShortcutInfo/add-field":{"text":"{{$:/language/EditTemplate/Fields/Add/Button/Hint}}"},"$:/config/ShortcutInfo/advanced-search":{"text":"{{$:/language/Buttons/AdvancedSearch/Hint}}"},"$:/config/ShortcutInfo/advanced-search-sidebar":{"text":"{{$:/language/Shortcuts/Input/AdvancedSearch/Hint}}"},"$:/config/ShortcutInfo/bold":{"text":"{{$:/language/Buttons/Bold/Hint}}"},"$:/config/ShortcutInfo/cancel-edit-tiddler":{"text":"{{$:/language/Buttons/Cancel/Hint}}"},"$:/config/ShortcutInfo/change-sidebar-layout":{"text":"{{$:/language/Shortcuts/SidebarLayout/Hint}}"},"$:/config/ShortcutInfo/delete-field":{"text":"{{$:/language/EditTemplate/Field/Remove/Hint}}"},"$:/config/ShortcutInfo/excise":{"text":"{{$:/language/Buttons/Excise/Hint}}"},"$:/config/ShortcutInfo/heading-1":{"text":"{{$:/language/Buttons/Heading1/Hint}}"},"$:/config/ShortcutInfo/heading-2":{"text":"{{$:/language/Buttons/Heading2/Hint}}"},"$:/config/ShortcutInfo/heading-3":{"text":"{{$:/language/Buttons/Heading3/Hint}}"},"$:/config/ShortcutInfo/heading-4":{"text":"{{$:/language/Buttons/Heading4/Hint}}"},"$:/config/ShortcutInfo/heading-5":{"text":"{{$:/language/Buttons/Heading5/Hint}}"},"$:/config/ShortcutInfo/heading-6":{"text":"{{$:/language/Buttons/Heading6/Hint}}"},"$:/config/ShortcutInfo/input-accept":{"text":"{{$:/language/Shortcuts/Input/Accept/Hint}}"},"$:/config/ShortcutInfo/input-accept-variant":{"text":"{{$:/language/Shortcuts/Input/AcceptVariant/Hint}}"},"$:/config/ShortcutInfo/input-cancel":{"text":"{{$:/language/Shortcuts/Input/Cancel/Hint}}"},"$:/config/ShortcutInfo/input-down":{"text":"{{$:/language/Shortcuts/Input/Down/Hint}}"},"$:/config/ShortcutInfo/input-tab-left":{"text":"{{$:/language/Shortcuts/Input/Tab-Left/Hint}}"},"$:/config/ShortcutInfo/input-tab-right":{"text":"{{$:/language/Shortcuts/Input/Tab-Right/Hint}}"},"$:/config/ShortcutInfo/input-up":{"text":"{{$:/language/Shortcuts/Input/Up/Hint}}"},"$:/config/ShortcutInfo/italic":{"text":"{{$:/language/Buttons/Italic/Hint}}"},"$:/config/ShortcutInfo/layout-switcher":{"text":"{{$:/language/LayoutSwitcher/Description}}"},"$:/config/ShortcutInfo/link":{"text":"{{$:/language/Buttons/Link/Hint}}"},"$:/config/ShortcutInfo/linkify":{"text":"{{$:/language/Buttons/Linkify/Hint}}"},"$:/config/ShortcutInfo/list-bullet":{"text":"{{$:/language/Buttons/ListBullet/Hint}}"},"$:/config/ShortcutInfo/list-number":{"text":"{{$:/language/Buttons/ListNumber/Hint}}"},"$:/config/ShortcutInfo/mono-block":{"text":"{{$:/language/Buttons/MonoBlock/Hint}}"},"$:/config/ShortcutInfo/mono-line":{"text":"{{$:/language/Buttons/MonoLine/Hint}}"},"$:/config/ShortcutInfo/new-image":{"text":"{{$:/language/Buttons/NewImage/Hint}}"},"$:/config/ShortcutInfo/new-journal":{"text":"{{$:/language/Buttons/NewJournal/Hint}}"},"$:/config/ShortcutInfo/new-tiddler":{"text":"{{$:/language/Buttons/NewTiddler/Hint}}"},"$:/config/ShortcutInfo/picture":{"text":"{{$:/language/Buttons/Picture/Hint}}"},"$:/config/ShortcutInfo/preview":{"text":"{{$:/language/Buttons/Preview/Hint}}"},"$:/config/ShortcutInfo/quote":{"text":"{{$:/language/Buttons/Quote/Hint}}"},"$:/config/ShortcutInfo/save-tiddler":{"text":"{{$:/language/Buttons/Save/Hint}}"},"$:/config/ShortcutInfo/save-wiki":{"text":"{{$:/language/Buttons/SaveWiki/Hint}}"},"$:/config/ShortcutInfo/sidebar-search":{"text":"{{$:/language/Buttons/SidebarSearch/Hint}}"},"$:/config/ShortcutInfo/stamp":{"text":"{{$:/language/Buttons/Stamp/Hint}}"},"$:/config/ShortcutInfo/strikethrough":{"text":"{{$:/language/Buttons/Strikethrough/Hint}}"},"$:/config/ShortcutInfo/subscript":{"text":"{{$:/language/Buttons/Subscript/Hint}}"},"$:/config/ShortcutInfo/superscript":{"text":"{{$:/language/Buttons/Superscript/Hint}}"},"$:/config/ShortcutInfo/toggle-sidebar":{"text":"{{$:/language/Buttons/ToggleSidebar/Hint}}"},"$:/config/ShortcutInfo/transcludify":{"text":"{{$:/language/Buttons/Transcludify/Hint}}"},"$:/config/ShortcutInfo/underline":{"text":"{{$:/language/Buttons/Underline/Hint}}"},"$:/config/SwitcherTargets/layout":{"text":"$:/snippets/LayoutSwitcher"},"$:/config/SwitcherTargets/language":{"text":"$:/snippets/languageswitcher"},"$:/config/SwitcherTargets/palette":{"text":"$:/core/ui/ControlPanel/Palette"},"$:/config/SwitcherTargets/theme":{"text":"$:/core/ui/ControlPanel/Theme"},"$:/config/SyncFilter":{"text":"[is[tiddler]] -[[$:/core]] -[[$:/library/sjcl.js]] -[prefix[$:/boot/]] -[prefix[$:/HistoryList]] -[status[pending]plugin-type[import]] -[[$:/isEncrypted]] -[prefix[$:/status/]] -[prefix[$:/state/]] -[prefix[$:/temp/]]\n"},"$:/config/SyncSystemTiddlersFromServer":{"text":"no"},"$:/config/Tags/MinLength":{"text":"0"},"$:/config/TextEditor/EditorHeight/Height":{"text":"400px"},"$:/config/TextEditor/EditorHeight/Mode":{"text":"auto"},"$:/config/TiddlerInfo/Default":{"text":"$:/core/ui/TiddlerInfo/Fields"},"$:/config/TiddlerInfo/Mode":{"text":"popup"},"$:/config/Tiddlers/TitleLinks":{"text":"no"},"$:/config/Toolbar/ButtonClass":{"text":"tc-btn-invisible"},"$:/config/Toolbar/Icons":{"text":"yes"},"$:/config/Toolbar/Text":{"text":"no"},"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/clone":{"text":"hide"},"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/close-others":{"text":"hide"},"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/export-tiddler":{"text":"hide"},"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/info":{"text":"hide"},"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/more-tiddler-actions":{"text":"show"},"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here":{"text":"hide"},"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-journal-here":{"text":"hide"},"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/open-window":{"text":"hide"},"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permalink":{"text":"hide"},"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/permaview":{"text":"hide"},"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/delete":{"text":"hide"},"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold":{"text":"hide"},"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar":{"text":"hide"},"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-others":{"text":"hide"},"$:/config/shortcuts-mac/bold":{"text":"meta-B"},"$:/config/shortcuts-mac/input-tab-left":{"text":"ctrl-Left"},"$:/config/shortcuts-mac/input-tab-right":{"text":"ctrl-Right"},"$:/config/shortcuts-mac/italic":{"text":"meta-I"},"$:/config/shortcuts-mac/underline":{"text":"meta-U"},"$:/config/shortcuts-mac/new-image":{"text":"ctrl-I"},"$:/config/shortcuts-mac/new-journal":{"text":"ctrl-J"},"$:/config/shortcuts-mac/new-tiddler":{"text":"ctrl-N"},"$:/config/shortcuts-mac/save-wiki":{"text":"meta-S"},"$:/config/shortcuts-not-mac/bold":{"text":"ctrl-B"},"$:/config/shortcuts-not-mac/italic":{"text":"ctrl-I"},"$:/config/shortcuts-not-mac/underline":{"text":"ctrl-U"},"$:/config/shortcuts-not-mac/new-image":{"text":"alt-I"},"$:/config/shortcuts-not-mac/new-journal":{"text":"alt-J"},"$:/config/shortcuts-not-mac/new-tiddler":{"text":"alt-N"},"$:/config/shortcuts/add-field":{"text":"enter"},"$:/config/shortcuts/advanced-search":{"text":"ctrl-shift-A"},"$:/config/shortcuts/advanced-search-sidebar":{"text":"alt-Enter"},"$:/config/shortcuts/cancel-edit-tiddler":{"text":"escape"},"$:/config/shortcuts/change-sidebar-layout":{"text":"shift-alt-Down"},"$:/config/shortcuts/delete-field":{"text":"shift-alt-D"},"$:/config/shortcuts/excise":{"text":"ctrl-E"},"$:/config/shortcuts/sidebar-search":{"text":"ctrl-shift-F"},"$:/config/shortcuts/heading-1":{"text":"ctrl-1"},"$:/config/shortcuts/heading-2":{"text":"ctrl-2"},"$:/config/shortcuts/heading-3":{"text":"ctrl-3"},"$:/config/shortcuts/heading-4":{"text":"ctrl-4"},"$:/config/shortcuts/heading-5":{"text":"ctrl-5"},"$:/config/shortcuts/heading-6":{"text":"ctrl-6"},"$:/config/shortcuts/input-accept":{"text":"Enter"},"$:/config/shortcuts/input-accept-variant":{"text":"ctrl-Enter"},"$:/config/shortcuts/input-cancel":{"text":"Escape"},"$:/config/shortcuts/input-down":{"text":"Down"},"$:/config/shortcuts/input-tab-left":{"text":"alt-Left"},"$:/config/shortcuts/input-tab-right":{"text":"alt-Right"},"$:/config/shortcuts/input-up":{"text":"Up"},"$:/config/shortcuts/layout-switcher":{"text":"ctrl-shift-L"},"$:/config/shortcuts/link":{"text":"ctrl-L"},"$:/config/shortcuts/linkify":{"text":"alt-shift-L"},"$:/config/shortcuts/list-bullet":{"text":"ctrl-shift-L"},"$:/config/shortcuts/list-number":{"text":"ctrl-shift-N"},"$:/config/shortcuts/mono-block":{"text":"ctrl-shift-M"},"$:/config/shortcuts/mono-line":{"text":"ctrl-M"},"$:/config/shortcuts/picture":{"text":"ctrl-shift-I"},"$:/config/shortcuts/preview":{"text":"alt-P"},"$:/config/shortcuts/quote":{"text":"ctrl-Q"},"$:/config/shortcuts/save-tiddler":{"text":"ctrl+enter"},"$:/config/shortcuts/save-wiki":{"text":"ctrl-S"},"$:/config/shortcuts/stamp":{"text":"ctrl-S"},"$:/config/shortcuts/strikethrough":{"text":"ctrl-T"},"$:/config/shortcuts/subscript":{"text":"ctrl-shift-B"},"$:/config/shortcuts/superscript":{"text":"ctrl-shift-P"},"$:/config/shortcuts/toggle-sidebar":{"text":"alt-shift-S"},"$:/config/shortcuts/transcludify":{"text":"alt-shift-T"},"$:/config/ui/EditTemplate":{"text":"$:/core/ui/EditTemplate"},"$:/config/ui/ViewTemplate":{"text":"$:/core/ui/ViewTemplate"},"$:/config/WikiParserRules/Inline/wikilink":{"text":"enable"},"$:/snippets/currpalettepreview":{"text":"\\define resolve-colour(macrocall)\n\\import $:/core/macros/utils\n\\whitespace trim\n<$wikify name=\"name\" text=\"\"\"$macrocall$\"\"\">\n<<name>>\n</$wikify>\n\\end\n\\define swatchStyle()\nbackground-color: $(swatchColour)$;\n\\end\n\\define swatch-inner()\n<$set name=\"swatchColour\" value={{##$(colourResolved)$}}>\n<$list filter=\"[<swatchColour>!prefix[<<colour ]!suffix[>>]]\" variable=\"ignore\">\n<div class=\"tc-swatch\" style=<<swatchStyle>> title=<<swatchTitle>>/>\n</$list>\n<$list filter=\"[<swatchColour>prefix[<<colour ]suffix[>>]]\" variable=\"ignore\">\n<$wikify name=\"colourResolved\" text=\"\"\"<$macrocall $name=\"resolve-colour\" macrocall=<<swatchColour>>/>\"\"\">\n<<swatch-inner>>\n</$wikify>\n</$list>\n</$set>\n\\end\n\\define swatch()\n<$set name=\"swatchColour\" value={{##$(colour)$}}>\n<$set name=\"swatchTitle\" value=<<colour>>>\n<$list filter=\"[<swatchColour>!prefix[<<colour ]!suffix[>>]]\" variable=\"ignore\">\n<div class=\"tc-swatch\" style=<<swatchStyle>> title=<<swatchTitle>>/>\n</$list>\n<$list filter=\"[<swatchColour>prefix[<<colour ]suffix[>>]]\" variable=\"ignore\">\n<$wikify name=\"colourResolved\" text=\"\"\"<$macrocall $name=\"resolve-colour\" macrocall=<<swatchColour>>/>\"\"\">\n<<swatch-inner>>\n</$wikify>\n</$list>\n</$set>\n</$set>\n\\end\n<div class=\"tc-swatches-horiz\"><$list filter=\"\nforeground\nbackground\nmuted-foreground\nprimary\npage-background\ntab-background\ntiddler-info-background\n\" variable=\"colour\"><<swatch>></$list></div>\n"},"$:/snippets/download-wiki-button":{"text":"\\define lingo-base() $:/language/ControlPanel/Tools/Download/\n<$button class=\"tc-btn-big-green\">\n<$action-sendmessage $message=\"tm-download-file\" $param=\"$:/core/save/all\" filename=\"index.html\"/>\n<<lingo Full/Caption>> {{$:/core/images/save-button}}\n</$button>"},"$:/language":{"text":"$:/languages/en-GB"},"$:/snippets/languageswitcher":{"text":"\\define flag-title()\n$(languagePluginTitle)$/icon\n\\end\n\n<$linkcatcher to=\"$:/language\">\n<div class=\"tc-chooser tc-language-chooser\">\n<$list filter=\"[[$:/languages/en-GB]] [plugin-type[language]sort[description]]\">\n<$set name=\"cls\" filter=\"[all[current]field:title{$:/language}]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>>\n<$link>\n<span class=\"tc-image-button\">\n<$set name=\"languagePluginTitle\" value=<<currentTiddler>>>\n<$transclude subtiddler=<<flag-title>>>\n<$list filter=\"[all[current]field:title[$:/languages/en-GB]]\">\n<$transclude tiddler=\"$:/languages/en-GB/icon\"/>\n</$list>\n</$transclude>\n</$set>\n</span>\n<$view field=\"description\">\n<$view field=\"name\">\n<$view field=\"title\"/>\n</$view>\n</$view>\n</$link>\n</div>\n</$set>\n</$list>\n</div>\n</$linkcatcher>"},"$:/core/macros/CSS":{"tags":"$:/tags/Macro","text":"\\define colour(name)\n<$transclude tiddler={{$:/palette}} index=\"$name$\"><$transclude tiddler=\"$:/palettes/Vanilla\" index=\"$name$\"><$transclude tiddler=\"$:/config/DefaultColourMappings/$name$\"/></$transclude></$transclude>\n\\end\n\n\\define color(name)\n<<colour $name$>>\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<$macrocall $name=\"makedatauri\" type={{$title$!!type}} text={{$title$}} _canonical_uri={{$title$!!_canonical_uri}}/>\n\\end\n\n\\define if-sidebar(text)\n<$reveal state=\"$:/state/sidebar\" type=\"match\" text=\"yes\" default=\"yes\">$text$</$reveal>\n\\end\n\n\\define if-no-sidebar(text)\n<$reveal state=\"$:/state/sidebar\" type=\"nomatch\" text=\"yes\" default=\"yes\">$text$</$reveal>\n\\end\n\n\\define if-background-attachment(text)\n<$reveal state=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\" type=\"nomatch\" text=\"\">$text$</$reveal>\n\\end\n"},"$:/core/macros/colour-picker":{"tags":"$:/tags/Macro","text":"\\define colour-picker-update-recent()\n<$action-listops\n\t$tiddler=\"$:/config/ColourPicker/Recent\"\n\t$subfilter=\"$(colour-picker-value)$ [list[$:/config/ColourPicker/Recent]remove[$(colour-picker-value)$]] +[limit[8]]\"\n/>\n\\end\n\n\\define colour-picker-inner(actions)\n<$button tag=\"a\" tooltip=\"\"\"$(colour-picker-value)$\"\"\">\n\n$(colour-picker-update-recent)$\n\n$actions$\n\n<span style=\"display:inline-block; background-color: $(colour-picker-value)$; width: 100%; height: 100%; border-radius: 50%;\"/>\n\n</$button>\n\\end\n\n\\define colour-picker-recent-inner(actions)\n<$set name=\"colour-picker-value\" value=\"$(recentColour)$\">\n<$macrocall $name=\"colour-picker-inner\" actions=\"\"\"$actions$\"\"\"/>\n</$set>\n\\end\n\n\\define colour-picker-recent(actions)\n{{$:/language/ColourPicker/Recent}} <$list filter=\"[list[$:/config/ColourPicker/Recent]]\" variable=\"recentColour\">\n<$macrocall $name=\"colour-picker-recent-inner\" actions=\"\"\"$actions$\"\"\"/></$list>\n\\end\n\n\\define colour-picker(actions)\n<div class=\"tc-colour-chooser\">\n\n<$macrocall $name=\"colour-picker-recent\" actions=\"\"\"$actions$\"\"\"/>\n\n---\n\n<$list filter=\"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\" variable=\"colour-picker-value\">\n<$macrocall $name=\"colour-picker-inner\" actions=\"\"\"$actions$\"\"\"/>\n</$list>\n\n---\n\n<$edit-text tiddler=\"$:/config/ColourPicker/New\" tag=\"input\" default=\"\" placeholder=\"\"/>\n<$edit-text tiddler=\"$:/config/ColourPicker/New\" type=\"color\" tag=\"input\"/>\n<$set name=\"colour-picker-value\" value={{$:/config/ColourPicker/New}}>\n<$macrocall $name=\"colour-picker-inner\" actions=\"\"\"$actions$\"\"\"/>\n</$set>\n\n</div>\n\n\\end\n"},"$:/core/macros/copy-to-clipboard":{"tags":"$:/tags/Macro","text":"\\define copy-to-clipboard(src,class:\"tc-btn-invisible\",style)\n<$button class=<<__class__>> style=<<__style__>> message=\"tm-copy-to-clipboard\" param=<<__src__>> tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>\n{{$:/core/images/copy-clipboard}} <$text text={{$:/language/Buttons/CopyToClipboard/Caption}}/>\n</$button>\n\\end\n\n\\define copy-to-clipboard-above-right(src,class:\"tc-btn-invisible\",style)\n<div style=\"position: relative;\">\n<div style=\"position: absolute; bottom: 0; right: 0;\">\n<$macrocall $name=\"copy-to-clipboard\" src=<<__src__>> class=<<__class__>> style=<<__style__>>/>\n</div>\n</div>\n\\end\n\n"},"$:/core/macros/diff":{"tags":"$:/tags/Macro","text":"\\define compareTiddlerText(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle)\n<$set name=\"source\" tiddler=<<__sourceTiddlerTitle__>> subtiddler=<<__sourceSubTiddlerTitle__>>>\n<$set name=\"dest\" tiddler=<<__destTiddlerTitle__>> subtiddler=<<__destSubTiddlerTitle__>>>\n<$diff-text source=<<source>> dest=<<dest>>/>\n</$set>\n</$set>\n\\end\n\n\\define compareTiddlers(sourceTiddlerTitle,sourceSubTiddlerTitle,destTiddlerTitle,destSubTiddlerTitle,exclude)\n<table class=\"tc-diff-tiddlers\">\n<tbody>\n<$set name=\"sourceFields\" filter=\"[<__sourceTiddlerTitle__>fields[]sort[]]\">\n<$set name=\"destFields\" filter=\"[<__destSubTiddlerTitle__>subtiddlerfields<__destTiddlerTitle__>sort[]]\">\n<$list filter=\"[enlist<sourceFields>] [enlist<destFields>] -[enlist<__exclude__>] +[sort[]]\" variable=\"fieldName\">\n<tr>\n<th>\n<$text text=<<fieldName>>/> \n</th>\n<td>\n<$set name=\"source\" tiddler=<<__sourceTiddlerTitle__>> subtiddler=<<__sourceSubTiddlerTitle__>> field=<<fieldName>>>\n<$set name=\"dest\" tiddler=<<__destTiddlerTitle__>> subtiddler=<<__destSubTiddlerTitle__>> field=<<fieldName>>>\n<$diff-text source=<<source>> dest=<<dest>>>\n</$diff-text>\n</$set>\n</$set>\n</td>\n</tr>\n</$list>\n</$set>\n</$set>\n</tbody>\n</table>\n\\end\n"},"$:/core/macros/dumpvariables":{"tags":"$:/tags/Macro","text":"\\define dumpvariables()\n<ul>\n<$list filter=\"[variables[]]\" variable=\"varname\">\n<li>\n<strong><code><$text text=<<varname>>/></code></strong>:<br/>\n<$codeblock code={{{ [<varname>getvariable[]] }}}/>\n</li>\n</$list>\n</ul>\n\\end\n"},"$:/core/macros/export":{"tags":"$:/tags/Macro","text":"\\define exportButtonFilename(baseFilename)\n$baseFilename$$(extension)$\n\\end\n\n\\define exportButton(exportFilter:\"[!is[system]sort[title]]\",lingoBase,baseFilename:\"tiddlers\")\n<$vars hint={{{ [<__lingoBase__>addsuffix[Hint]get[text]] }}} caption={{{ [<__lingoBase__>addsuffix[Caption]get[text]] }}}>\n<span class=\"tc-popup-keep\"><$button popup=<<qualify \"$:/state/popup/export\">> tooltip=<<hint>> aria-label=<<caption>> class=<<tv-config-toolbar-class>> selectedClass=\"tc-selected\">\n<$list filter=\"[<tv-config-toolbar-icons>match[yes]]\">\n{{$:/core/images/export-button}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>match[yes]]\">\n<span class=\"tc-btn-text\"><$text text=<<caption>>/></span>\n</$list>\n</$button></span></$vars><$reveal state=<<qualify \"$:/state/popup/export\">> type=\"popup\" position=\"below\" animate=\"yes\">\n<div class=\"tc-drop-down\">\n<$set name=\"count\" value={{{ [subfilter<__exportFilter__>count[]] }}}>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Exporter]]\">\n<$list filter=\"[<currentTiddler>has[condition]subfilter{!!condition}limit[1]] ~[<currentTiddler>!has[condition]then[true]]\" variable=\"ignore\">\n<$button class=\"tc-btn-invisible\">\n<$action-sendmessage $message=\"tm-download-file\" $param=<<currentTiddler>> exportFilter=<<__exportFilter__>> filename={{{ [<__baseFilename__>addsuffix{!!extension}] }}}/>\n<$action-deletetiddler $tiddler=<<qualify \"$:/state/popup/export\">>/>\n<$transclude field=\"description\"/>\n</$button>\n</$list>\n</$list>\n</$set>\n</div>\n</$reveal>\n\\end\n"},"$:/core/macros/image-picker":{"created":"20170715180840889","modified":"20170715180914005","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define image-picker-thumbnail(actions)\n<$button tag=\"a\" tooltip=\"\"\"$(imageTitle)$\"\"\">\n$actions$\n<$transclude tiddler=<<imageTitle>>/>\n</$button>\n\\end\n\n\\define image-picker-list(filter,actions)\n<$list filter=\"\"\"$filter$\"\"\" variable=\"imageTitle\">\n<$macrocall $name=\"image-picker-thumbnail\" actions=\"\"\"$actions$\"\"\"/>\n</$list>\n\\end\n\n\\define image-picker(actions,filter:\"[all[shadows+tiddlers]is[image]] -[type[application/pdf]] +[!has[draft.of]$subfilter$sort[title]]\",subfilter:\"\")\n<div class=\"tc-image-chooser\">\n<$vars state-system=<<qualify \"$:/state/image-picker/system\">>>\n<$checkbox tiddler=<<state-system>> field=\"text\" checked=\"show\" unchecked=\"hide\" default=\"hide\">\n{{$:/language/SystemTiddlers/Include/Prompt}}\n</$checkbox>\n<$reveal state=<<state-system>> type=\"match\" text=\"hide\" default=\"hide\" tag=\"div\">\n<$macrocall $name=\"image-picker-list\" filter=\"\"\"$filter$ +[!is[system]]\"\"\" actions=\"\"\"$actions$\"\"\"/>\n</$reveal>\n<$reveal state=<<state-system>> type=\"nomatch\" text=\"hide\" default=\"hide\" tag=\"div\">\n<$macrocall $name=\"image-picker-list\" filter=\"\"\"$filter$\"\"\" actions=\"\"\"$actions$\"\"\"/>\n</$reveal>\n</$vars>\n</div>\n\\end\n\n\\define image-picker-include-tagged-images(actions)\n<$macrocall $name=\"image-picker\" filter=\"[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] +[!has[draft.of]sort[title]]\" actions=\"\"\"$actions$\"\"\"/>\n\\end\n"},"$:/core/macros/keyboard-driven-input":{"tags":"$:/tags/Macro","text":"\\define change-input-tab(stateTitle,tag,beforeafter,defaultState,actions)\n<$set name=\"tabsList\" filter=\"[all[shadows+tiddlers]tag<__tag__>!has[draft.of]]\">\n<$vars currentState={{{ [<__stateTitle__>!is[missing]get[text]] ~[<__defaultState__>] }}} firstTab={{{ [enlist<tabsList>nth[1]] }}} lastTab={{{ [enlist<tabsList>last[]] }}}>\n<$set name=\"nextTab\" value={{{ [all[shadows+tiddlers]tag<__tag__>!has[draft.of]$beforeafter$<currentState>] ~[[$beforeafter$]removeprefix[after]suffix[]addprefix<firstTab>] ~[[$beforeafter$]removeprefix[before]suffix[]addprefix<lastTab>] }}}>\n<$action-setfield $tiddler=<<__stateTitle__>> text=<<nextTab>>/>\n$actions$\n</$set>\n</$vars>\n</$set>\n\\end\n\n\\define keyboard-input-actions()\n<$list filter=\"[<__index__>match[]]\">\n<$action-setfield $tiddler=<<__storeTitle__>> text={{{ [<__tiddler__>get<__field__>] }}}/>\n</$list>\n<$list filter=\"[<__index__>!match[]]\">\n<$action-setfield $tiddler=<<__storeTitle__>> text={{{ [<__tiddler__>getindex<__index__>] }}}/>\n</$list>\n\\end\n\n\\define input-next-actions-inner()\n<$list filter=\"[<nextItem>minlength[1]]\" variable=\"ignore\">\n<$action-setfield $tiddler=<<__selectionStateTitle__>> text=<<nextItem>>/>\n<$list filter=\"[<__index__>match[]]\">\n<$action-setfield $tiddler=<<__tiddler__>> $field=<<__field__>> $value={{{ [<nextItem>] +[splitregexp[(?:.(?!-))+$]] }}}/>\n</$list>\n<$list filter=\"[<__index__>!match[]]\">\n<$action-setfield $tiddler=<<__tiddler__>> $index=<<__index__>> $value={{{ [<nextItem>] +[splitregexp[(?:.(?!-))+$]] }}}/>\n</$list>\n<$action-setfield $tiddler=<<__refreshTitle__>> text=\"yes\"/>\n</$list>\n\\end\n\n\\define input-next-actions(afterOrBefore:\"after\",reverse:\"\")\n<$list filter=\"[<__storeTitle__>get[text]minlength<__filterMinLength__>] [<__filterMinLength__>match[0]] +[limit[1]]\" variable=\"ignore\">\n<$vars userInput={{{ [<__storeTitle__>get[text]] }}} selectedItem={{{ [<__selectionStateTitle__>get[text]] }}}>\n<$set name=\"configTiddler\" value={{{ [subfilter<__configTiddlerFilter__>] }}}>\n<$vars primaryListFilter={{{ [<configTiddler>get<__firstSearchFilterField__>] }}} secondaryListFilter={{{ [<configTiddler>get<__secondSearchFilterField__>] }}}>\n<$set name=\"filteredList\" filter=\"[subfilter<primaryListFilter>addsuffix[-primaryList]] =[subfilter<secondaryListFilter>addsuffix[-secondaryList]]\">\n<$vars nextItem={{{ [enlist<filteredList>$afterOrBefore$<selectedItem>] ~[enlist<filteredList>$reverse$nth[1]] }}} firstItem={{{ [enlist<filteredList>nth[1]] }}} lastItem={{{ [enlist<filteredList>last[]] }}}>\n<$list filter=\"[<selectedItem>match<firstItem>!match<lastItem>]\" variable=\"ignore\">\n<$set name=\"nextItem\" value={{{ [[$afterOrBefore$]match[before]then<userInput>addsuffix[-userInput]] ~[<nextItem>] }}}>\n<<input-next-actions-inner>>\n</$set>\n</$list>\n<$list filter=\"[<selectedItem>match<lastItem>!match<firstItem>]\" variable=\"ignore\">\n<$set name=\"nextItem\" value={{{ [[$afterOrBefore$]match[after]then<userInput>addsuffix[-userInput]] ~[<nextItem>] }}}>\n<<input-next-actions-inner>>\n</$set>\n</$list>\n<$list filter=\"[<selectedItem>match<firstItem>match<lastItem>]\" variable=\"ignore\">\n<$set name=\"nextItem\" value={{{ [<userInput>addsuffix[-userInput]] }}}>\n<<input-next-actions-inner>>\n</$set>\n</$list>\n<$list filter=\"[<selectedItem>!match<firstItem>!match<lastItem>]\" variable=\"ignore\">\n<<input-next-actions-inner>>\n</$list>\n</$vars>\n</$set>\n</$vars>\n</$set>\n</$vars>\n</$list>\n\\end\n\n\\define keyboard-driven-input(tiddler,storeTitle,field:\"text\",index:\"\",tag:\"input\",type,focus:\"\",inputAcceptActions,inputAcceptVariantActions,inputCancelActions,placeholder:\"\",default:\"\",class,focusPopup,rows,minHeight,tabindex,size,autoHeight,filterMinLength:\"0\",refreshTitle,selectionStateTitle,cancelPopups:\"\",configTiddlerFilter,firstSearchFilterField:\"first-search-filter\",secondSearchFilterField:\"second-search-filter\")\n\\whitespace trim\n<$keyboard key=\"((input-accept))\" actions=<<__inputAcceptActions__>>>\n<$keyboard key=\"((input-accept-variant))\" actions=<<__inputAcceptVariantActions__>>>\n<$keyboard key=\"((input-up))\" actions=<<input-next-actions \"before\" \"reverse[]\">>>\n<$keyboard key=\"((input-down))\" actions=<<input-next-actions>>>\n<$keyboard key=\"((input-cancel))\" actions=<<__inputCancelActions__>>>\n<$edit-text tiddler=<<__tiddler__>> field=<<__field__>> index=<<__index__>> \n\t\tinputActions=<<keyboard-input-actions>> tag=<<__tag__>> class=<<__class__>> \n\t\tplaceholder=<<__placeholder__>> default=<<__default__>> focusPopup=<<__focusPopup__>> \n\t\tfocus=<<__focus__>> type=<<__type__>> rows=<<__rows__>> minHeight=<<__minHeight__>> \n\t\ttabindex=<<__tabindex__>> size=<<__size__>> autoHeight=<<__autoHeight__>> \n\t\trefreshTitle=<<__refreshTitle__>> cancelPopups=<<__cancelPopups__>>/>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n</$keyboard>\n\\end\n"},"$:/core/macros/lingo":{"tags":"$:/tags/Macro","text":"\\define lingo-base()\n$:/language/\n\\end\n\n\\define lingo(title)\n{{$(lingo-base)$$title$}}\n\\end\n"},"$:/core/macros/list":{"tags":"$:/tags/Macro","text":"\\define list-links(filter,type:\"ul\",subtype:\"li\",class:\"\",emptyMessage)\n\\whitespace trim\n<$type$ class=\"$class$\">\n<$list filter=\"$filter$\" emptyMessage=<<__emptyMessage__>>>\n<$subtype$>\n<$link to={{!!title}}>\n<$transclude field=\"caption\">\n<$view field=\"title\"/>\n</$transclude>\n</$link>\n</$subtype$>\n</$list>\n</$type$>\n\\end\n\n\\define list-links-draggable-drop-actions()\n<$action-listops $tiddler=<<targetTiddler>> $field=<<targetField>> $subfilter=\"+[insertbefore:currentTiddler<actionTiddler>]\"/>\n\\end\n\n\\define list-links-draggable(tiddler,field:\"list\",type:\"ul\",subtype:\"li\",class:\"\",itemTemplate)\n\\whitespace trim\n<span class=\"tc-links-draggable-list\">\n<$vars targetTiddler=\"\"\"$tiddler$\"\"\" targetField=\"\"\"$field$\"\"\">\n<$type$ class=\"$class$\">\n<$list filter=\"[list[$tiddler$!!$field$]]\">\n<$droppable actions=<<list-links-draggable-drop-actions>> tag=\"\"\"$subtype$\"\"\" enable=<<tv-enable-drag-and-drop>>>\n<div class=\"tc-droppable-placeholder\"/>\n<div>\n<$transclude tiddler=\"\"\"$itemTemplate$\"\"\">\n<$link to={{!!title}}>\n<$transclude field=\"caption\">\n<$view field=\"title\"/>\n</$transclude>\n</$link>\n</$transclude>\n</div>\n</$droppable>\n</$list>\n<$tiddler tiddler=\"\">\n<$droppable actions=<<list-links-draggable-drop-actions>> tag=\"div\" enable=<<tv-enable-drag-and-drop>>>\n<div class=\"tc-droppable-placeholder\">\n{{$:/core/images/blank}}\n</div>\n<div style=\"height:0.5em;\"/>\n</$droppable>\n</$tiddler>\n</$type$>\n</$vars>\n</span>\n\\end\n\n\\define list-tagged-draggable-drop-actions(tag)\n<!-- Save the current ordering of the tiddlers with this tag -->\n<$set name=\"order\" filter=\"[<__tag__>tagging[]]\">\n<!-- Remove any list-after or list-before fields from the tiddlers with this tag -->\n<$list filter=\"[<__tag__>tagging[]]\">\n<$action-deletefield $field=\"list-before\"/>\n<$action-deletefield $field=\"list-after\"/>\n</$list>\n<!-- Save the new order to the Tag Tiddler -->\n<$action-listops $tiddler=<<__tag__>> $field=\"list\" $filter=\"+[enlist<order>] +[insertbefore:currentTiddler<actionTiddler>]\"/>\n<!-- Make sure the newly added item has the right tag -->\n<!-- Removing this line makes dragging tags within the dropdown work as intended -->\n<!--<$action-listops $tiddler=<<actionTiddler>> $tags=<<__tag__>>/>-->\n<!-- Using the following 5 lines as replacement makes dragging titles from outside into the dropdown apply the tag -->\n<$list filter=\"[<actionTiddler>!contains:tags<__tag__>]\">\n<$fieldmangler tiddler=<<actionTiddler>>>\n<$action-sendmessage $message=\"tm-add-tag\" $param=<<__tag__>>/>\n</$fieldmangler>\n</$list>\n</$set>\n\\end\n\n\\define list-tagged-draggable(tag,subFilter,emptyMessage,itemTemplate,elementTag:\"div\",storyview:\"\")\n\\whitespace trim\n<span class=\"tc-tagged-draggable-list\">\n<$set name=\"tag\" value=<<__tag__>>>\n<$list filter=\"[<__tag__>tagging[]$subFilter$]\" emptyMessage=<<__emptyMessage__>> storyview=<<__storyview__>>>\n<$elementTag$ class=\"tc-menu-list-item\">\n<$droppable actions=\"\"\"<$macrocall $name=\"list-tagged-draggable-drop-actions\" tag=<<__tag__>>/>\"\"\" enable=<<tv-enable-drag-and-drop>>>\n<$elementTag$ class=\"tc-droppable-placeholder\"/>\n<$elementTag$>\n<$transclude tiddler=\"\"\"$itemTemplate$\"\"\">\n<$link to={{!!title}}>\n<$view field=\"title\"/>\n</$link>\n</$transclude>\n</$elementTag$>\n</$droppable>\n</$elementTag$>\n</$list>\n<$tiddler tiddler=\"\">\n<$droppable actions=\"\"\"<$macrocall $name=\"list-tagged-draggable-drop-actions\" tag=<<__tag__>>/>\"\"\" enable=<<tv-enable-drag-and-drop>>>\n<$elementTag$ class=\"tc-droppable-placeholder\"/>\n<$elementTag$ style=\"height:0.5em;\">\n</$elementTag$>\n</$droppable>\n</$tiddler>\n</$set>\n</span>\n\\end\n"},"$:/core/macros/tabs":{"tags":"$:/tags/Macro","text":"\\define tabs(tabsList,default,state:\"$:/state/tab\",class,template,buttonTemplate,retain,actions,explicitState)\n<$set name=\"qualifiedState\" value=<<qualify \"$state$\">>>\n<$vars tabsState={{{ [<__explicitState__>minlength[1]] ~[<qualifiedState>] }}}>\n<div class=\"tc-tab-set $class$\">\n<div class=\"tc-tab-buttons $class$\">\n<$list filter=\"$tabsList$\" variable=\"currentTab\" storyview=\"pop\"><$set name=\"save-currentTiddler\" value=<<currentTiddler>>><$tiddler tiddler=<<currentTab>>><$button set=<<tabsState>> setTo=<<currentTab>> default=\"$default$\" selectedClass=\"tc-tab-selected\" tooltip={{!!tooltip}}>\n<$tiddler tiddler=<<save-currentTiddler>>>\n<$set name=\"tv-wikilinks\" value=\"no\">\n<$transclude tiddler=\"$buttonTemplate$\" mode=\"inline\">\n<$transclude tiddler=<<currentTab>> field=\"caption\">\n<$macrocall $name=\"currentTab\" $type=\"text/plain\" $output=\"text/plain\"/>\n</$transclude>\n</$transclude>\n</$set></$tiddler>$actions$</$button></$tiddler></$set></$list>\n</div>\n<div class=\"tc-tab-divider $class$\"/>\n<div class=\"tc-tab-content $class$\">\n<$list filter=\"$tabsList$\" variable=\"currentTab\">\n\n<$reveal type=\"match\" state=<<tabsState>> text=<<currentTab>> default=\"$default$\" retain=\"\"\"$retain$\"\"\">\n\n<$transclude tiddler=\"$template$\" mode=\"block\">\n\n<$transclude tiddler=<<currentTab>> mode=\"block\"/>\n\n</$transclude>\n\n</$reveal>\n\n</$list>\n</div>\n</div>\n</$vars>\n</$set>\n\\end\n"},"$:/core/macros/tag-picker":{"tags":"$:/tags/Macro","first-search-filter":"[tags[]!is[system]search:title<userInput>sort[]]","second-search-filter":"[tags[]is[system]search:title<userInput>sort[]]","text":"\\define get-tagpicker-focus-selector() [data-tiddler-title=\"$(currentTiddlerCSSEscaped)$\"] .tc-add-tag-name input\n\n\\define delete-tag-state-tiddlers() <$action-deletetiddler $filter=\"[<newTagNameTiddler>] [<storeTitle>] [<tagSelectionState>]\"/>\n\n\\define add-tag-actions(actions,tagField:\"tags\")\n<$set name=\"tag\" value={{{ [<__tiddler__>get[text]] }}}>\n<$list filter=\"[<saveTiddler>!contains:$tagField$<tag>!match[]]\" variable=\"ignore\" emptyMessage=\"\"\"\n<$action-listops $tiddler=<<saveTiddler>> $field=<<__tagField__>> $subfilter=\"-[<tag>]\"/>\n\"\"\">\n<$action-listops $tiddler=<<saveTiddler>> $field=<<__tagField__>> $subfilter=\"[<tag>]\"/>\n$actions$\n</$list>\n</$set>\n<<delete-tag-state-tiddlers>>\n<$action-setfield $tiddler=<<refreshTitle>> text=\"yes\"/>\n\\end\n\n\\define clear-tags-actions-inner()\n<$list filter=\"[<storeTitle>has[text]] [<newTagNameTiddler>has[text]]\" variable=\"ignore\" emptyMessage=\"\"\"<<cancel-delete-tiddler-actions \"cancel\">>\"\"\">\n<<delete-tag-state-tiddlers>>\n</$list>\n\\end\n\n\\define clear-tags-actions()\n<$set name=\"userInput\" value={{{ [<storeTitle>get[text]] }}}>\n<$list filter=\"[<newTagNameTiddler>get[text]!match<userInput>]\" emptyMessage=\"\"\"<<clear-tags-actions-inner>>\"\"\">\n<$action-setfield $tiddler=<<newTagNameTiddler>> text=<<userInput>>/><$action-setfield $tiddler=<<refreshTitle>> text=\"yes\"/>\n</$list>\n</$set>\n\\end\n\n\\define tag-picker-inner(actions,tagField:\"tags\")\n\\whitespace trim\n<$vars newTagNameInputTiddlerQualified=<<qualify \"$:/temp/NewTagName/input\">> newTagNameSelectionTiddlerQualified=<<qualify \"$:/temp/NewTagName/selected-item\">> fallbackTarget={{$(palette)$##tag-background}} colourA={{$(palette)$##foreground}} colourB={{$(palette)$##background}}>\n<$vars storeTitle={{{ [<newTagNameInputTiddler>!match[]] ~[<newTagNameInputTiddlerQualified>] }}} tagSelectionState={{{ [<newTagNameSelectionTiddler>!match[]] ~[<newTagNameSelectionTiddlerQualified>] }}}>\n<$vars refreshTitle=<<qualify \"$:/temp/NewTagName/refresh\">> nonSystemTagsFilter=\"[tags[]!is[system]search:title<userInput>sort[]]\" systemTagsFilter=\"[tags[]is[system]search:title<userInput>sort[]]\">\n<div class=\"tc-edit-add-tag\">\n<div>\n<span class=\"tc-add-tag-name tc-small-gap-right\">\n<$macrocall $name=\"keyboard-driven-input\" tiddler=<<newTagNameTiddler>> storeTitle=<<storeTitle>> refreshTitle=<<refreshTitle>>\n\t\tselectionStateTitle=<<tagSelectionState>> inputAcceptActions=\"\"\"<$macrocall $name=\"add-tag-actions\" actions=<<__actions__>> tagField=<<__tagField__>>/>\"\"\"\n\t\tinputCancelActions=<<clear-tags-actions>> tag=\"input\" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}}\n\t\tfocusPopup=<<qualify \"$:/state/popup/tags-auto-complete\">> class=\"tc-edit-texteditor tc-popup-handle\" tabindex=<<tabIndex>> \n\t\tfocus={{{ [{$:/config/AutoFocus}match[tags]then[true]] ~[[false]] }}} filterMinLength={{$:/config/Tags/MinLength}} \n\t\tcancelPopups=<<cancelPopups>> configTiddlerFilter=\"[[$:/core/macros/tag-picker]]\"/>\n</span><$button popup=<<qualify \"$:/state/popup/tags-auto-complete\">> class=\"tc-btn-invisible tc-btn-dropdown\" tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button><$reveal state=<<storeTitle>> type=\"nomatch\" text=\"\"><$button class=\"tc-btn-invisible tc-small-gap tc-btn-dropdown\" tooltip={{$:/language/EditTemplate/Tags/ClearInput/Hint}} aria-label={{$:/language/EditTemplate/Tags/ClearInput/Caption}}>{{$:/core/images/close-button}}<<delete-tag-state-tiddlers>></$button></$reveal><span class=\"tc-add-tag-button tc-small-gap-left\">\n<$set name=\"tag\" value={{{ [<newTagNameTiddler>get[text]] }}}>\n<$button set=<<newTagNameTiddler>> setTo=\"\" class=\"\">\n<$action-listops $tiddler=<<saveTiddler>> $field=<<__tagField__>> $subfilter=\"[<tag>]\"/>\n$actions$\n<$set name=\"currentTiddlerCSSEscaped\" value={{{ [<saveTiddler>escapecss[]] }}}>\n<<delete-tag-state-tiddlers>><$action-sendmessage $message=\"tm-focus-selector\" $param=<<get-tagpicker-focus-selector>>/>\n</$set>\n{{$:/language/EditTemplate/Tags/Add/Button}}\n</$button>\n</$set>\n</span>\n</div>\n<div class=\"tc-block-dropdown-wrapper\">\n<$reveal state=<<qualify \"$:/state/popup/tags-auto-complete\">> type=\"nomatch\" text=\"\" default=\"\">\n<div class=\"tc-block-dropdown tc-block-tags-dropdown\">\n<$set name=\"userInput\" value={{{ [<storeTitle>get[text]] }}}>\n<$list filter=\"[<userInput>minlength{$:/config/Tags/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n<$list filter=<<nonSystemTagsFilter>> variable=\"tag\">\n<$list filter=\"[<tag>addsuffix[-primaryList]] -[<tagSelectionState>get[text]]\" emptyMessage=\"\"\"<$vars button-classes=\"tc-btn-invisible tc-tag-button-selected\" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<<tag>>>{{||$:/core/ui/TagPickerTagTemplate}}</$vars>\"\"\">\n<$vars button-classes=\"tc-btn-invisible\" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<<tag>>>{{||$:/core/ui/TagPickerTagTemplate}}</$vars>\n</$list>\n</$list></$list>\n<hr>\n<$list filter=\"[<userInput>minlength{$:/config/Tags/MinLength}limit[1]]\" emptyMessage=\"\"\"<div class=\"tc-search-results\">{{$:/language/Search/Search/TooShort}}</div>\"\"\" variable=\"listItem\">\n<$list filter=<<systemTagsFilter>> variable=\"tag\">\n<$list filter=\"[<tag>addsuffix[-secondaryList]] -[<tagSelectionState>get[text]]\" emptyMessage=\"\"\"<$vars button-classes=\"tc-btn-invisible tc-tag-button-selected\" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<<tag>>>{{||$:/core/ui/TagPickerTagTemplate}}</$vars>\"\"\">\n<$vars button-classes=\"tc-btn-invisible\" actions=<<__actions__>> tagField=<<__tagField__>> currentTiddler=<<tag>>>{{||$:/core/ui/TagPickerTagTemplate}}</$vars>\n</$list>\n</$list></$list>\n</$set>\n</div>\n</$reveal>\n</div>\n</div>\n</$vars>\n</$vars>\n</$vars>\n\\end\n\\define tag-picker(actions,tagField:\"tags\")\n\\whitespace trim\n<$vars saveTiddler=<<currentTiddler>> palette={{$:/palette}}>\n<$list filter=\"[<newTagNameTiddler>match[]]\" emptyMessage=\"\"\"<$macrocall $name=\"tag-picker-inner\" actions=<<__actions__>> tagField=<<__tagField__>>/>\"\"\">\n<$set name=\"newTagNameTiddler\" value=<<qualify \"$:/temp/NewTagName\">>>\n<$macrocall $name=\"tag-picker-inner\" actions=<<__actions__>> tagField=<<__tagField__>>/>\n</$set>\n</$list>\n</$vars>\n\\end\n"},"$:/core/macros/tag":{"tags":"$:/tags/Macro","text":"\\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<$vars foregroundColor=<<contrastcolour target:\"\"\"$colour$\"\"\" fallbackTarget:\"\"\"$fallbackTarget$\"\"\" colourA:\"\"\"$colourA$\"\"\" colourB:\"\"\"$colourB$\"\"\">> backgroundColor=\"\"\"$colour$\"\"\">\n<$element-tag$ $element-attributes$ class=\"tc-tag-label tc-btn-invisible\" style=<<tag-pill-styles>>>\n$actions$<$transclude tiddler=\"\"\"$icon$\"\"\"/><$view tiddler=<<__tag__>> field=\"title\" format=\"text\" />\n</$element-tag$>\n</$vars>\n\\end\n\n\\define tag-pill-body(tag,icon,colour,palette,element-tag,element-attributes,actions)\n<$macrocall $name=\"tag-pill-inner\" tag=<<__tag__>> icon=\"\"\"$icon$\"\"\" colour=\"\"\"$colour$\"\"\" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} element-tag=\"\"\"$element-tag$\"\"\" element-attributes=\"\"\"$element-attributes$\"\"\" actions=\"\"\"$actions$\"\"\"/>\n\\end\n\n\\define tag-pill(tag,element-tag:\"span\",element-attributes:\"\",actions:\"\")\n<span class=\"tc-tag-list-item\" data-tag-title=<<__tag__>>>\n<$macrocall $name=\"tag-pill-body\" tag=<<__tag__>> icon={{{ [<__tag__>get[icon]] }}} colour={{{ [<__tag__>get[color]] }}} palette={{$:/palette}} element-tag=\"\"\"$element-tag$\"\"\" element-attributes=\"\"\"$element-attributes$\"\"\" actions=\"\"\"$actions$\"\"\"/>\n</span>\n\\end\n\n\\define tag(tag)\n{{$tag$||$:/core/ui/TagTemplate}}\n\\end\n"},"$:/core/macros/thumbnails":{"tags":"$:/tags/Macro","text":"\\define thumbnail(link,icon,color,background-color,image,caption,width:\"280\",height:\"157\")\n<$link to=\"\"\"$link$\"\"\"><div class=\"tc-thumbnail-wrapper\">\n<div class=\"tc-thumbnail-image\" style=\"width:$width$px;height:$height$px;\"><$reveal type=\"nomatch\" text=\"\" default=\"\"\"$image$\"\"\" tag=\"div\" style=\"width:$width$px;height:$height$px;\">\n[img[$image$]]\n</$reveal><$reveal type=\"match\" text=\"\" default=\"\"\"$image$\"\"\" tag=\"div\" class=\"tc-thumbnail-background\" style=\"width:$width$px;height:$height$px;background-color:$background-color$;\"></$reveal></div><div class=\"tc-thumbnail-icon\" style=\"fill:$color$;color:$color$;\">\n$icon$\n</div><div class=\"tc-thumbnail-caption\">\n$caption$\n</div>\n</div></$link>\n\\end\n\n\\define thumbnail-right(link,icon,color,background-color,image,caption,width:\"280\",height:\"157\")\n<div class=\"tc-thumbnail-right-wrapper\"><<thumbnail \"\"\"$link$\"\"\" \"\"\"$icon$\"\"\" \"\"\"$color$\"\"\" \"\"\"$background-color$\"\"\" \"\"\"$image$\"\"\" \"\"\"$caption$\"\"\" \"\"\"$width$\"\"\" \"\"\"$height$\"\"\">></div>\n\\end\n\n\\define list-thumbnails(filter,width:\"280\",height:\"157\")\n<$list filter=\"\"\"$filter$\"\"\"><$macrocall $name=\"thumbnail\" link={{!!link}} icon={{!!icon}} color={{!!color}} background-color={{!!background-color}} image={{!!image}} caption={{!!caption}} width=\"\"\"$width$\"\"\" height=\"\"\"$height$\"\"\"/></$list>\n\\end\n"},"$:/core/macros/timeline":{"created":"20141212105914482","modified":"20141212110330815","tags":"$:/tags/Macro","text":"\\define timeline-title()\n\\whitespace trim\n<!-- 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 -->\n<$view field=\"title\"/>\n\\end\n\\define timeline(limit:\"100\",format:\"DDth MMM YYYY\",subfilter:\"\",dateField:\"modified\")\n<div class=\"tc-timeline\">\n<$list filter=\"[!is[system]$subfilter$has[$dateField$]!sort[$dateField$]limit[$limit$]eachday[$dateField$]]\">\n<div class=\"tc-menu-list-item\">\n<$view field=\"$dateField$\" format=\"date\" template=\"$format$\"/>\n<$list filter=\"[sameday:$dateField${!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]\">\n<div class=\"tc-menu-list-subitem\">\n<$link to={{!!title}}><<timeline-title>></$link>\n</div>\n</$list>\n</div>\n</$list>\n</div>\n\\end\n"},"$:/core/macros/toc":{"tags":"$:/tags/Macro","text":"\\define toc-caption()\n<$set name=\"tv-wikilinks\" value=\"no\">\n <$transclude field=\"caption\">\n <$view field=\"title\"/>\n </$transclude>\n</$set>\n\\end\n\n\\define toc-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<ol class=\"tc-toc\">\n <$list filter=\"\"\"[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]\"\"\">\n <$vars item=<<currentTiddler>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>\n <$set name=\"excluded\" filter=\"\"\"[enlist<__exclude__>] [<__tag__>]\"\"\">\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$list filter=\"[all[current]toc-link[no]]\" emptyMessage=\"<$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}><$view field='caption'><$view field='title'/></$view></$link>\">\n <<toc-caption>>\n </$list>\n <$macrocall $name=\"toc-body\" tag=<<item>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<excluded>> path=<<path>>/>\n </li>\n </$set>\n </$set>\n </$vars>\n </$list>\n</ol>\n\\end\n\n\\define toc(tag,sort:\"\",itemClassFilter:\"\")\n<$macrocall $name=\"toc-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> />\n\\end\n\n\\define toc-linked-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<!-- helper function -->\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}>\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n </$button>\n </$reveal>\n <<toc-caption>>\n </$link>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-unlinked-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<!-- helper function -->\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-expandable-empty-message()\n<$macrocall $name=\"toc-linked-expandable-body\" tag=<<tag>> sort=<<sort>> itemClassFilter=<<itemClassFilter>> exclude=<<excluded>> path=<<path>>/>\n\\end\n\n\\define toc-expandable(tag,sort:\"\",itemClassFilter:\"\",exclude,path)\n<$vars tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>\n <$set name=\"excluded\" filter=\"\"\"[enlist<__exclude__>] [<__tag__>]\"\"\">\n <ol class=\"tc-toc toc-expandable\">\n <$list filter=\"\"\"[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]\"\"\">\n <$list filter=\"[all[current]toc-link[no]]\" emptyMessage=<<toc-expandable-empty-message>> >\n <$macrocall $name=\"toc-unlinked-expandable-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=\"\"\"itemClassFilter\"\"\" exclude=<<excluded>> path=<<path>> />\n </$list>\n </$list>\n </ol>\n </$set>\n</$vars>\n\\end\n\n\\define toc-linked-selective-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\" >\n <li class=<<toc-item-class>>>\n <$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}>\n <$list filter=\"[all[current]tagging[]$sort$limit[1]]\" variable=\"ignore\" emptyMessage=\"<$button class='tc-btn-invisible'>{{$:/core/images/blank}}</$button>\">\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n </$button>\n </$reveal>\n </$list>\n <<toc-caption>>\n </$link>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-selective-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-unlinked-selective-expandable-body(tag,sort:\"\",itemClassFilter,exclude,path)\n<$qualify name=\"toc-state\" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n <$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n <li class=<<toc-item-class>>>\n <$list filter=\"[all[current]tagging[]$sort$limit[1]]\" variable=\"ignore\" emptyMessage=\"<$button class='tc-btn-invisible'>{{$:/core/images/blank}}</$button> <$view field='caption'><$view field='title'/></$view>\">\n <$reveal type=\"nomatch\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/right-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$button setTitle=<<toc-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n {{$:/core/images/down-arrow}}\n <<toc-caption>>\n </$button>\n </$reveal>\n </$list>\n <$reveal type=\"match\" stateTitle=<<toc-state>> text=\"open\">\n <$macrocall $name=\"toc-selective-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>\n </$reveal>\n </li>\n </$set>\n</$qualify>\n\\end\n\n\\define toc-selective-expandable-empty-message()\n<$macrocall $name=\"toc-linked-selective-expandable-body\" tag=<<tag>> sort=<<sort>> itemClassFilter=<<itemClassFilter>> exclude=<<excluded>> path=<<path>>/>\n\\end\n\n\\define toc-selective-expandable(tag,sort:\"\",itemClassFilter,exclude,path)\n<$vars tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>\n <$set name=\"excluded\" filter=\"\"\"[enlist<__exclude__>] [<__tag__>]\"\"\">\n <ol class=\"tc-toc toc-selective-expandable\">\n <$list filter=\"\"\"[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[enlist<__exclude__>]\"\"\">\n <$list filter=\"[all[current]toc-link[no]]\" variable=\"ignore\" emptyMessage=<<toc-selective-expandable-empty-message>> >\n <$macrocall $name=\"toc-unlinked-selective-expandable-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<excluded>> path=<<path>>/>\n </$list>\n </$list>\n </ol>\n </$set>\n</$vars>\n\\end\n\n\\define toc-tabbed-external-nav(tag,sort:\"\",selectedTiddler:\"$:/temp/toc/selectedTiddler\",unselectedText,missingText,template:\"\")\n<$tiddler tiddler={{{ [<__selectedTiddler__>get[text]] }}}>\n <div class=\"tc-tabbed-table-of-contents\">\n <$linkcatcher to=<<__selectedTiddler__>>>\n <div class=\"tc-table-of-contents\">\n <$macrocall $name=\"toc-selective-expandable\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=\"[all[current]] -[<__selectedTiddler__>get[text]]\"/>\n </div>\n </$linkcatcher>\n <div class=\"tc-tabbed-table-of-contents-content\">\n <$reveal stateTitle=<<__selectedTiddler__>> type=\"nomatch\" text=\"\">\n <$transclude mode=\"block\" tiddler=<<__template__>>>\n <h1><<toc-caption>></h1>\n <$transclude mode=\"block\">$missingText$</$transclude>\n </$transclude>\n </$reveal>\n <$reveal stateTitle=<<__selectedTiddler__>> type=\"match\" text=\"\">\n $unselectedText$\n </$reveal>\n </div>\n </div>\n</$tiddler>\n\\end\n\n\\define toc-tabbed-internal-nav(tag,sort:\"\",selectedTiddler:\"$:/temp/toc/selectedTiddler\",unselectedText,missingText,template:\"\")\n<$linkcatcher to=<<__selectedTiddler__>>>\n <$macrocall $name=\"toc-tabbed-external-nav\" tag=<<__tag__>> sort=<<__sort__>> selectedTiddler=<<__selectedTiddler__>> unselectedText=<<__unselectedText__>> missingText=<<__missingText__>> template=<<__template__>>/>\n</$linkcatcher>\n\\end\n\n"},"$:/core/macros/translink":{"tags":"$:/tags/Macro","text":"\\define translink(title,mode:\"block\")\n<div style=\"border:1px solid #ccc; padding: 0.5em; background: black; foreground; white;\">\n<$link to=\"\"\"$title$\"\"\">\n<$text text=\"\"\"$title$\"\"\"/>\n</$link>\n<div style=\"border:1px solid #ccc; padding: 0.5em; background: white; foreground; black;\">\n<$transclude tiddler=\"\"\"$title$\"\"\" mode=\"$mode$\">\n\"<$text text=\"\"\"$title$\"\"\"/>\" is missing\n</$transclude>\n</div>\n</div>\n\\end\n"},"$:/core/macros/tree":{"tags":"$:/tags/Macro","text":"\\define leaf-link(full-title,chunk,separator: \"/\")\n<$link to=<<__full-title__>>><$text text=<<__chunk__>>/></$link>\n\\end\n\n\\define leaf-node(prefix,chunk)\n<li>\n<$list filter=\"[<__prefix__>addsuffix<__chunk__>is[shadow]] [<__prefix__>addsuffix<__chunk__>is[tiddler]]\" variable=\"full-title\">\n<$list filter=\"[<full-title>removeprefix<__prefix__>]\" variable=\"chunk\">\n<span>{{$:/core/images/file}}</span> <$macrocall $name=\"leaf-link\" full-title=<<full-title>> chunk=<<chunk>>/>\n</$list>\n</$list>\n</li>\n\\end\n\n\\define branch-node(prefix,chunk,separator: \"/\")\n<li>\n<$set name=\"reveal-state\" value={{{ [[$:/state/tree/]addsuffix<__prefix__>addsuffix<__chunk__>] }}}>\n<$reveal type=\"nomatch\" stateTitle=<<reveal-state>> text=\"show\">\n<$button setTitle=<<reveal-state>> setTo=\"show\" class=\"tc-btn-invisible\">\n{{$:/core/images/folder}} <$text text=<<__chunk__>>/>\n</$button>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<reveal-state>> text=\"show\">\n<$button setTitle=<<reveal-state>> setTo=\"hide\" class=\"tc-btn-invisible\">\n{{$:/core/images/folder}} <$text text=<<__chunk__>>/>\n</$button>\n</$reveal>\n<span>(<$count filter=\"[all[shadows+tiddlers]removeprefix<__prefix__>removeprefix<__chunk__>] -[<__prefix__>addsuffix<__chunk__>]\"/>)</span>\n<$reveal type=\"match\" stateTitle=<<reveal-state>> text=\"show\">\n<$macrocall $name=\"tree-node\" prefix={{{ [<__prefix__>addsuffix<__chunk__>] }}} separator=<<__separator__>>/>\n</$reveal>\n</$set>\n</li>\n\\end\n\n\\define tree-node(prefix,separator: \"/\")\n<ol>\n<$list filter=\"[all[shadows+tiddlers]removeprefix<__prefix__>splitbefore<__separator__>sort[]!suffix<__separator__>]\" variable=\"chunk\">\n<$macrocall $name=\"leaf-node\" prefix=<<__prefix__>> chunk=<<chunk>> separator=<<__separator__>>/>\n</$list>\n<$list filter=\"[all[shadows+tiddlers]removeprefix<__prefix__>splitbefore<__separator__>sort[]suffix<__separator__>]\" variable=\"chunk\">\n<$macrocall $name=\"branch-node\" prefix=<<__prefix__>> chunk=<<chunk>> separator=<<__separator__>>/>\n</$list>\n</ol>\n\\end\n\n\\define tree(prefix: \"$:/\",separator: \"/\")\n<div class=\"tc-tree\">\n<span><$text text=<<__prefix__>>/></span>\n<div>\n<$macrocall $name=\"tree-node\" prefix=<<__prefix__>> separator=<<__separator__>>/>\n</div>\n</div>\n\\end\n"},"$:/core/macros/utils":{"text":"\\define colour(colour)\n$colour$\n\\end\n"},"$:/snippets/minifocusswitcher":{"text":"<$select tiddler=\"$:/config/AutoFocus\">\n<$list filter=\"title tags text type fields\">\n<option value=<<currentTiddler>>><<currentTiddler>></option>\n</$list>\n</$select>\n"},"$:/snippets/minilanguageswitcher":{"text":"<$select tiddler=\"$:/language\">\n<$list filter=\"[[$:/languages/en-GB]] [plugin-type[language]sort[title]]\">\n<option value=<<currentTiddler>>><$view field=\"description\"><$view field=\"name\"><$view field=\"title\"/></$view></$view></option>\n</$list>\n</$select>"},"$:/snippets/minithemeswitcher":{"text":"\\define lingo-base() $:/language/ControlPanel/Theme/\n<<lingo Prompt>> <$select tiddler=\"$:/theme\">\n<$list filter=\"[plugin-type[theme]sort[title]]\">\n<option value=<<currentTiddler>>><$view field=\"name\"><$view field=\"title\"/></$view></option>\n</$list>\n</$select>"},"$:/snippets/modules":{"text":"\\define describeModuleType(type)\n{{$:/language/Docs/ModuleTypes/$type$}}\n\\end\n<$list filter=\"[moduletypes[]]\">\n\n!! <$macrocall $name=\"currentTiddler\" $type=\"text/plain\" $output=\"text/plain\"/>\n\n<$macrocall $name=\"describeModuleType\" type=<<currentTiddler>>/>\n\n<ul><$list filter=\"[all[current]modules[]]\"><li><$link><<currentTiddler>></$link>\n</li>\n</$list>\n</ul>\n</$list>\n"},"$:/palette":{"text":"$:/palettes/Vanilla"},"$:/snippets/paletteeditor":{"text":"<$transclude tiddler=\"$:/PaletteManager\"/>\n"},"$:/snippets/palettepreview":{"text":"<$set name=\"currentTiddler\" value={{$:/palette}}>\n{{||$:/snippets/currpalettepreview}}\n</$set>\n"},"$:/snippets/paletteswitcher":{"text":"<$linkcatcher to=\"$:/palette\">\n<div class=\"tc-chooser\"><$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]\"><$set name=\"cls\" filter=\"[all[current]prefix{$:/palette}]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>><$link to={{!!title}}>''<$view field=\"name\" format=\"text\"/>'' - <$view field=\"description\" format=\"text\"/>{{||$:/snippets/currpalettepreview}}</$link>\n</div></$set>\n</$list>\n</div>\n</$linkcatcher>\n"},"$:/snippets/peek-stylesheets":{"text":"\\define expandable-stylesheets-list()\n<ol>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]\">\n<$vars state=<<qualify \"$:/state/peek-stylesheets/open/\">>>\n<$set name=\"state\" value={{{ [<state>addsuffix<currentTiddler>] }}}>\n<li>\n<$reveal type=\"match\" state=<<state>> text=\"yes\" tag=\"span\">\n<$button set=<<state>> setTo=\"no\" class=\"tc-btn-invisible\">\n{{$:/core/images/down-arrow}}\n</$button>\n</$reveal>\n<$reveal type=\"nomatch\" state=<<state>> text=\"yes\" tag=\"span\">\n<$button set=<<state>> setTo=\"yes\" class=\"tc-btn-invisible\">\n{{$:/core/images/right-arrow}}\n</$button>\n</$reveal>\n<$link>\n<$view field=\"title\"/>\n</$link>\n<$reveal type=\"match\" state=<<state>> text=\"yes\" tag=\"div\">\n<$set name=\"source\" tiddler=<<currentTiddler>>>\n<$wikify name=\"styles\" text=<<source>>>\n<pre>\n<code>\n<$text text=<<styles>>/>\n</code>\n</pre>\n</$wikify>\n</$set>\n</$reveal>\n</li>\n</$set>\n</$vars>\n</$list>\n</ol>\n\\end\n\n\\define stylesheets-list()\n<ol>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]\">\n<li>\n<$link>\n<$view field=\"title\"/>\n</$link>\n<$set name=\"source\" tiddler=<<currentTiddler>>>\n<$wikify name=\"styles\" text=<<source>>>\n<pre>\n<code>\n<$text text=<<styles>>/>\n</code>\n</pre>\n</$wikify>\n</$set>\n</li>\n</$list>\n</ol>\n\\end\n\n<$vars modeState=<<qualify \"$:/state/peek-stylesheets/mode/\">>>\n\n<$reveal type=\"nomatch\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<$button set=<<modeState>> setTo=\"expanded\" class=\"tc-btn-invisible\">{{$:/core/images/chevron-right}} {{$:/language/ControlPanel/Stylesheets/Expand/Caption}}</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<$button set=<<modeState>> setTo=\"restored\" class=\"tc-btn-invisible\">{{$:/core/images/chevron-down}} {{$:/language/ControlPanel/Stylesheets/Restore/Caption}}</$button>\n</$reveal>\n\n<$reveal type=\"nomatch\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<<expandable-stylesheets-list>>\n</$reveal>\n<$reveal type=\"match\" state=<<modeState>> text=\"expanded\" tag=\"div\">\n<<stylesheets-list>>\n</$reveal>\n\n</$vars>\n"},"$:/temp/search":{"text":""},"$:/tags/AdvancedSearch":{"list":"[[$:/core/ui/AdvancedSearch/Standard]] [[$:/core/ui/AdvancedSearch/System]] [[$:/core/ui/AdvancedSearch/Shadows]] [[$:/core/ui/AdvancedSearch/Filter]]"},"$:/tags/AdvancedSearch/FilterButton":{"list":"$:/core/ui/AdvancedSearch/Filter/FilterButtons/dropdown $:/core/ui/AdvancedSearch/Filter/FilterButtons/clear $:/core/ui/AdvancedSearch/Filter/FilterButtons/export $:/core/ui/AdvancedSearch/Filter/FilterButtons/delete"},"$:/tags/ControlPanel":{"list":"$:/core/ui/ControlPanel/Info $:/core/ui/ControlPanel/Appearance $:/core/ui/ControlPanel/Settings $:/core/ui/ControlPanel/Saving $:/core/ui/ControlPanel/Plugins $:/core/ui/ControlPanel/Tools $:/core/ui/ControlPanel/Internals"},"$:/tags/ControlPanel/Info":{"list":"$:/core/ui/ControlPanel/Basics $:/core/ui/ControlPanel/Advanced"},"$:/tags/ControlPanel/Plugins":{"list":"[[$:/core/ui/ControlPanel/Plugins/Installed]] [[$:/core/ui/ControlPanel/Plugins/Add]]"},"$:/tags/EditTemplate":{"list":"[[$:/core/ui/EditTemplate/controls]] [[$:/core/ui/EditTemplate/title]] [[$:/core/ui/EditTemplate/tags]] [[$:/core/ui/EditTemplate/shadow]] [[$:/core/ui/ViewTemplate/classic]] [[$:/core/ui/EditTemplate/body]] [[$:/core/ui/EditTemplate/type]] [[$:/core/ui/EditTemplate/fields]]"},"$:/tags/EditToolbar":{"list":"[[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/cancel]] [[$:/core/ui/Buttons/save]]"},"$:/tags/EditorToolbar":{"list":"$:/core/ui/EditorToolbar/paint $:/core/ui/EditorToolbar/opacity $:/core/ui/EditorToolbar/line-width $:/core/ui/EditorToolbar/rotate-left $:/core/ui/EditorToolbar/clear $:/core/ui/EditorToolbar/bold $:/core/ui/EditorToolbar/italic $:/core/ui/EditorToolbar/strikethrough $:/core/ui/EditorToolbar/underline $:/core/ui/EditorToolbar/superscript $:/core/ui/EditorToolbar/subscript $:/core/ui/EditorToolbar/mono-line $:/core/ui/EditorToolbar/mono-block $:/core/ui/EditorToolbar/quote $:/core/ui/EditorToolbar/list-bullet $:/core/ui/EditorToolbar/list-number $:/core/ui/EditorToolbar/heading-1 $:/core/ui/EditorToolbar/heading-2 $:/core/ui/EditorToolbar/heading-3 $:/core/ui/EditorToolbar/heading-4 $:/core/ui/EditorToolbar/heading-5 $:/core/ui/EditorToolbar/heading-6 $:/core/ui/EditorToolbar/link $:/core/ui/EditorToolbar/excise $:/core/ui/EditorToolbar/picture $:/core/ui/EditorToolbar/stamp $:/core/ui/EditorToolbar/size $:/core/ui/EditorToolbar/editor-height $:/core/ui/EditorToolbar/more $:/core/ui/EditorToolbar/preview $:/core/ui/EditorToolbar/preview-type"},"$:/tags/Manager/ItemMain":{"list":"$:/Manager/ItemMain/WikifiedText $:/Manager/ItemMain/RawText $:/Manager/ItemMain/Fields"},"$:/tags/Manager/ItemSidebar":{"list":"$:/Manager/ItemSidebar/Tags $:/Manager/ItemSidebar/Colour $:/Manager/ItemSidebar/Icon $:/Manager/ItemSidebar/Tools"},"$:/tags/MoreSideBar":{"list":"[[$:/core/ui/MoreSideBar/All]] [[$:/core/ui/MoreSideBar/Recent]] [[$:/core/ui/MoreSideBar/Tags]] [[$:/core/ui/MoreSideBar/Missing]] [[$:/core/ui/MoreSideBar/Drafts]] [[$:/core/ui/MoreSideBar/Orphans]] [[$:/core/ui/MoreSideBar/Types]] [[$:/core/ui/MoreSideBar/System]] [[$:/core/ui/MoreSideBar/Shadows]] [[$:/core/ui/MoreSideBar/Explorer]] [[$:/core/ui/MoreSideBar/Plugins]]","text":""},"$:/tags/PageControls":{"list":"[[$:/core/ui/Buttons/home]] [[$:/core/ui/Buttons/close-all]] [[$:/core/ui/Buttons/fold-all]] [[$:/core/ui/Buttons/unfold-all]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/new-tiddler]] [[$:/core/ui/Buttons/new-journal]] [[$:/core/ui/Buttons/new-image]] [[$:/core/ui/Buttons/import]] [[$:/core/ui/Buttons/export-page]] [[$:/core/ui/Buttons/control-panel]] [[$:/core/ui/Buttons/advanced-search]] [[$:/core/ui/Buttons/manager]] [[$:/core/ui/Buttons/tag-manager]] [[$:/core/ui/Buttons/language]] [[$:/core/ui/Buttons/palette]] [[$:/core/ui/Buttons/theme]] [[$:/core/ui/Buttons/storyview]] [[$:/core/ui/Buttons/encryption]] [[$:/core/ui/Buttons/timestamp]] [[$:/core/ui/Buttons/full-screen]] [[$:/core/ui/Buttons/print]] [[$:/core/ui/Buttons/save-wiki]] [[$:/core/ui/Buttons/refresh]] [[$:/core/ui/Buttons/more-page-actions]]"},"$:/tags/PageTemplate":{"list":"[[$:/core/ui/PageTemplate/topleftbar]] [[$:/core/ui/PageTemplate/toprightbar]] [[$:/core/ui/PageTemplate/sidebar]] [[$:/core/ui/PageTemplate/story]] [[$:/core/ui/PageTemplate/alerts]]","text":""},"$:/tags/PluginLibrary":{"list":"$:/config/OfficialPluginLibrary"},"$:/tags/SideBar":{"list":"[[$:/core/ui/SideBar/Open]] [[$:/core/ui/SideBar/Recent]] [[$:/core/ui/SideBar/Tools]] [[$:/core/ui/SideBar/More]]","text":""},"$:/tags/SideBarSegment":{"list":"[[$:/core/ui/SideBarSegments/site-title]] [[$:/core/ui/SideBarSegments/site-subtitle]] [[$:/core/ui/SideBarSegments/page-controls]] [[$:/core/ui/SideBarSegments/search]] [[$:/core/ui/SideBarSegments/tabs]]"},"$:/tags/TiddlerInfo":{"list":"[[$:/core/ui/TiddlerInfo/Tools]] [[$:/core/ui/TiddlerInfo/References]] [[$:/core/ui/TiddlerInfo/Tagging]] [[$:/core/ui/TiddlerInfo/List]] [[$:/core/ui/TiddlerInfo/Listed]] [[$:/core/ui/TiddlerInfo/Fields]]","text":""},"$:/tags/TiddlerInfo/Advanced":{"list":"[[$:/core/ui/TiddlerInfo/Advanced/ShadowInfo]] [[$:/core/ui/TiddlerInfo/Advanced/PluginInfo]]"},"$:/tags/ViewTemplate":{"list":"[[$:/core/ui/ViewTemplate/title]] [[$:/core/ui/ViewTemplate/unfold]] [[$:/core/ui/ViewTemplate/subtitle]] [[$:/core/ui/ViewTemplate/tags]] [[$:/core/ui/ViewTemplate/classic]] [[$:/core/ui/ViewTemplate/body]]"},"$:/tags/ViewToolbar":{"list":"[[$:/core/ui/Buttons/more-tiddler-actions]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/new-here]] [[$:/core/ui/Buttons/new-journal-here]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/export-tiddler]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/open-window]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]] [[$:/core/ui/Buttons/fold-others]] [[$:/core/ui/Buttons/fold]]"},"$:/snippets/themeswitcher":{"text":"<$linkcatcher to=\"$:/theme\">\n<div class=\"tc-chooser\"><$list filter=\"[plugin-type[theme]sort[title]]\"><$set name=\"cls\" filter=\"[all[current]field:title{$:/theme}] [[$:/theme]!has[text]addsuffix[s/tiddlywiki/vanilla]field:title<currentTiddler>] +[limit[1]]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>><$link to={{!!title}}>''<$view field=\"name\" format=\"text\"/>'' <$view field=\"description\" format=\"text\"/></$link></div>\n</$set>\n</$list>\n</div>\n</$linkcatcher>"},"$:/core/wiki/title":{"text":"{{$:/SiteTitle}}\n<$list filter=\"[{$:/SiteSubtitle}trim[]minlength[1]]\" variable=\"ignore\">\n--- {{$:/SiteSubtitle}}\n</$list>"},"$:/view":{"text":"classic"},"$:/snippets/viewswitcher":{"text":"\\define icon()\n$:/core/images/storyview-$(storyview)$\n\\end\n<$linkcatcher to=\"$:/view\">\n<div class=\"tc-chooser tc-viewswitcher\">\n<$list filter=\"[storyviews[]]\" variable=\"storyview\">\n<$set name=\"cls\" filter=\"[<storyview>prefix{$:/view}]\" value=\"tc-chooser-item tc-chosen\" emptyValue=\"tc-chooser-item\"><div class=<<cls>>>\n<$button tag=\"a\" class=\"tc-tiddlylink tc-btn-invisible\" to=<<storyview>>><$transclude tiddler=<<icon>>/><$text text=<<storyview>>/></$button>\n</div>\n</$set>\n</$list>\n</div>\n</$linkcatcher>\n"}}}+
<svg width="22pt" height="22pt" class="tc-image-add-comment tc-image-button" viewBox="0 0 128 128"><path fill-rule="evenodd" d="M56 56H36a8 8 0 100 16h20v20a8 8 0 1016 0V72h20a8 8 0 100-16H72V36a8 8 0 10-16 0v20zm-12.595 58.362c-6.683 7.659-20.297 12.903-36.006 12.903-2.196 0-4.35-.102-6.451-.3 9.652-3.836 17.356-12.24 21.01-22.874C8.516 94.28 0 79.734 0 63.5 0 33.953 28.206 10 63 10s63 23.953 63 53.5S97.794 117 63 117c-6.841 0-13.428-.926-19.595-2.638z"/></svg>+
<svg width="22pt" height="22pt" class="tc-image-cui-cib-facebook tc-image-button" viewBox="0 0 32 32"><path style="fill:#FFFFFF;" d="M32 16c0-8.839-7.167-16-16-16-8.839 0-16 7.161-16 16 0 7.984 5.849 14.604 13.5 15.803v-11.177h-4.063v-4.625h4.063v-3.527c0-4.009 2.385-6.223 6.041-6.223 1.751 0 3.584 0.312 3.584 0.312v3.937h-2.021c-1.984 0-2.604 1.235-2.604 2.5v3h4.437l-0.713 4.625h-3.724v11.177c7.645-1.199 13.5-7.819 13.5-15.803z"/></svg>+
<svg width="22pt" height="22pt" class="tc-image-cui-cib-instagram tc-image-button" viewBox="0 0 32 32"><path style="fill:#FFFFFF;" d="M16 0c-4.349 0-4.891 0.021-6.593 0.093-1.709 0.084-2.865 0.349-3.885 0.745-1.052 0.412-1.948 0.959-2.833 1.849-0.891 0.885-1.443 1.781-1.849 2.833-0.396 1.020-0.661 2.176-0.745 3.885-0.077 1.703-0.093 2.244-0.093 6.593s0.021 4.891 0.093 6.593c0.084 1.704 0.349 2.865 0.745 3.885 0.412 1.052 0.959 1.948 1.849 2.833 0.885 0.891 1.781 1.443 2.833 1.849 1.020 0.391 2.181 0.661 3.885 0.745 1.703 0.077 2.244 0.093 6.593 0.093s4.891-0.021 6.593-0.093c1.704-0.084 2.865-0.355 3.885-0.745 1.052-0.412 1.948-0.959 2.833-1.849 0.891-0.885 1.443-1.776 1.849-2.833 0.391-1.020 0.661-2.181 0.745-3.885 0.077-1.703 0.093-2.244 0.093-6.593s-0.021-4.891-0.093-6.593c-0.084-1.704-0.355-2.871-0.745-3.885-0.412-1.052-0.959-1.948-1.849-2.833-0.885-0.891-1.776-1.443-2.833-1.849-1.020-0.396-2.181-0.661-3.885-0.745-1.703-0.077-2.244-0.093-6.593-0.093zM16 2.88c4.271 0 4.781 0.021 6.469 0.093 1.557 0.073 2.405 0.333 2.968 0.553 0.751 0.291 1.276 0.635 1.844 1.197 0.557 0.557 0.901 1.088 1.192 1.839 0.22 0.563 0.48 1.411 0.553 2.968 0.072 1.688 0.093 2.199 0.093 6.469s-0.021 4.781-0.099 6.469c-0.084 1.557-0.344 2.405-0.563 2.968-0.303 0.751-0.641 1.276-1.199 1.844-0.563 0.557-1.099 0.901-1.844 1.192-0.556 0.22-1.416 0.48-2.979 0.553-1.697 0.072-2.197 0.093-6.479 0.093s-4.781-0.021-6.48-0.099c-1.557-0.084-2.416-0.344-2.979-0.563-0.76-0.303-1.281-0.641-1.839-1.199-0.563-0.563-0.921-1.099-1.197-1.844-0.224-0.556-0.48-1.416-0.563-2.979-0.057-1.677-0.084-2.197-0.084-6.459 0-4.26 0.027-4.781 0.084-6.479 0.083-1.563 0.339-2.421 0.563-2.979 0.276-0.761 0.635-1.281 1.197-1.844 0.557-0.557 1.079-0.917 1.839-1.199 0.563-0.219 1.401-0.479 2.964-0.557 1.697-0.061 2.197-0.083 6.473-0.083zM16 7.787c-4.541 0-8.213 3.677-8.213 8.213 0 4.541 3.677 8.213 8.213 8.213 4.541 0 8.213-3.677 8.213-8.213 0-4.541-3.677-8.213-8.213-8.213zM16 21.333c-2.948 0-5.333-2.385-5.333-5.333s2.385-5.333 5.333-5.333c2.948 0 5.333 2.385 5.333 5.333s-2.385 5.333-5.333 5.333zM26.464 7.459c0 1.063-0.865 1.921-1.923 1.921-1.063 0-1.921-0.859-1.921-1.921 0-1.057 0.864-1.917 1.921-1.917s1.923 0.86 1.923 1.917z"/></svg>+
<svg width="22pt" height="22pt" class="tc-image-fa-telegram-plane tc-image-button" viewBox="0 0 448 512"><path style="fill:#FFFFFF;" d="M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"/></svg>+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 308 308" style="enable-background:new 0 0 308 308;" xml:space="preserve"> +<g id="XMLID_468_"> + <path style="fill:#FFFFFF;" id="XMLID_469_" d="M227.904,176.981c-0.6-0.288-23.054-11.345-27.044-12.781c-1.629-0.585-3.374-1.156-5.23-1.156 + c-3.032,0-5.579,1.511-7.563,4.479c-2.243,3.334-9.033,11.271-11.131,13.642c-0.274,0.313-0.648,0.687-0.872,0.687 + c-0.201,0-3.676-1.431-4.728-1.888c-24.087-10.463-42.37-35.624-44.877-39.867c-0.358-0.61-0.373-0.887-0.376-0.887 + c0.088-0.323,0.898-1.135,1.316-1.554c1.223-1.21,2.548-2.805,3.83-4.348c0.607-0.731,1.215-1.463,1.812-2.153 + c1.86-2.164,2.688-3.844,3.648-5.79l0.503-1.011c2.344-4.657,0.342-8.587-0.305-9.856c-0.531-1.062-10.012-23.944-11.02-26.348 + c-2.424-5.801-5.627-8.502-10.078-8.502c-0.413,0,0,0-1.732,0.073c-2.109,0.089-13.594,1.601-18.672,4.802 + c-5.385,3.395-14.495,14.217-14.495,33.249c0,17.129,10.87,33.302,15.537,39.453c0.116,0.155,0.329,0.47,0.638,0.922 + c17.873,26.102,40.154,45.446,62.741,54.469c21.745,8.686,32.042,9.69,37.896,9.69c0.001,0,0.001,0,0.001,0 + c2.46,0,4.429-0.193,6.166-0.364l1.102-0.105c7.512-0.666,24.02-9.22,27.775-19.655c2.958-8.219,3.738-17.199,1.77-20.458 + C233.168,179.508,230.845,178.393,227.904,176.981z"/> + <path style="fill:#FFFFFF;" id="XMLID_470_" d="M156.734,0C73.318,0,5.454,67.354,5.454,150.143c0,26.777,7.166,52.988,20.741,75.928L0.212,302.716 + c-0.484,1.429-0.124,3.009,0.933,4.085C1.908,307.58,2.943,308,4,308c0.405,0,0.813-0.061,1.211-0.188l79.92-25.396 + c21.87,11.685,46.588,17.853,71.604,17.853C240.143,300.27,308,232.923,308,150.143C308,67.354,240.143,0,156.734,0z + M156.734,268.994c-23.539,0-46.338-6.797-65.936-19.657c-0.659-0.433-1.424-0.655-2.194-0.655c-0.407,0-0.815,0.062-1.212,0.188 + l-40.035,12.726l12.924-38.129c0.418-1.234,0.209-2.595-0.561-3.647c-14.924-20.392-22.813-44.485-22.813-69.677 + c0-65.543,53.754-118.867,119.826-118.867c66.064,0,119.812,53.324,119.812,118.867 + C276.546,215.678,222.799,268.994,156.734,268.994z"/> +</g>+
\whitespace trim +\define tv-wikilink-template() $uri_encoded$ +\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] +<html> +<head> +<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> +<meta name="generator" content="TiddlyWiki" /> +<!-- +<meta name="tiddlywiki-version" content={{$:/core/templates/version}} /> +--> +<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"> +<link id="faviconLink" rel="shortcut icon" href="favicon.ico"> +<link rel="stylesheet" href="%24%3A%2Fcore%2Ftemplates%2Fstatic.template.css"> +<title><$view field="caption" format="plainwikified"><$view field="title"/></$view>: <$view tiddler="$:/core/wiki/title" format="plainwikified"/></title> +</head> +<body class="tc-body"> +<$transclude tiddler="$:/core/templates/server/static.sidebar.wikitext" mode="inline"/> +<section class="tc-story-river"> +<div class="tc-tiddler-frame"> +<$transclude tiddler="$:/core/templates/server/static.tiddler.wikitext" mode="inline"/> +</div> +</section> +</body> +</html>+
<$list filter="[<targetTiddler>tag[rtl]]" variable="ignore" emptyMessage=""" +<$action-listops $tiddler=<<targetTiddler>> $tags="rtl"/> +"""> +<$action-listops $tiddler=<<targetTiddler>> $tags="-rtl"/> +</$list>+
<$macrocall $name="timeline" format={{$:/language/RecentChanges/DateFormat}}/> ++
<div class="tc-more-sidebar"> +<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]" default={{$:/config/DefaultMoreSidebarTab}} state="$:/state/tab/moresidebar" class="tc-vertical tc-sidebar-tabs-more" explicitState="$:/state/tab/moresidebar-1850697562"/> +</div> ++
\whitespace trim +\define lingo-base() $:/language/CloseAll/ + +\define drop-actions() +<$action-listops $tiddler=<<tv-story-list>> $subfilter="+[insertbefore:currentTiddler<actionTiddler>]"/> +\end + +\define placeholder() +<div class="tc-droppable-placeholder"/> +\end + +\define droppable-item(button) +\whitespace trim +<$droppable actions=<<drop-actions>> enable=<<tv-allow-drag-and-drop>>> +<<placeholder>> +<div> +$button$ +</div> +</$droppable> +\end + +<div class="tc-sidebar-tab-open"> +<$list filter="[list<tv-story-list>]" history=<<tv-history-list>> storyview="pop"> +<div class="tc-sidebar-tab-open-item"> +<$macrocall $name="droppable-item" button="""<$button message="tm-close-tiddler" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class="tc-btn-invisible tc-btn-mini tc-small-gap-right">{{$:/core/images/close-button}}</$button><$link to={{!!title}}><$view field="title"/></$link>"""/> +</div> +</$list> +<$tiddler tiddler=""> +<div> +<$macrocall $name="droppable-item" button="""<$button message="tm-close-all-tiddlers" class="tc-btn-invisible tc-btn-mini"><<lingo Button>></$button>"""/> +</div> +</$tiddler> +</div> ++
<$macrocall $name="timeline" format={{$:/language/RecentChanges/DateFormat}}/> ++
\define lingo-base() $:/language/ControlPanel/ +\define config-title() +$:/config/PageControlButtons/Visibility/$(listItem)$ +\end + +<<lingo Basics/Version/Prompt>> <<version>> + +<$set name="tv-config-toolbar-icons" value="yes"> + +<$set name="tv-config-toolbar-text" value="yes"> + +<$set name="tv-config-toolbar-class" value=""> + +<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem"> + +<div style="position:relative;" class={{{ [<listItem>encodeuricomponent[]addprefix[tc-btn-]] }}}> + +<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"/> <$transclude tiddler=<<listItem>>/> <i class="tc-muted"><$transclude tiddler=<<listItem>> field="description"/></i> + +</div> + +</$list> + +</$set> + +</$set> + +</$set> ++
[[¡Hola, bienvenido a Copinchapedia!]] +[[Copincha]] +[[Proy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3Ax/76LXAMOAp85C9BEBoUEUSCIJwJcWAuShi1o+qVZqOyT61Ai7+agSyQQXkspYEUajhuEpWNslCeTDHABAz/d3iAi/LdcVAZmxJqMGkByAM5lFfPKDCCqtMZ8tegvwZQdT0nUELoE6SVXRCE0yCCSBAEQRCEhseMOgBBEARBEISoEUEkCIIgCELDI4JIEARBEISGRwSRIAiCIAgNjwgiQRAEQRAaHhFEgiAIgiA0PCKIBEEQBEFoeEQQCYIgCILQ8IggEgRBEASh4fn/HN4ybG2tsBkAAAAASUVORK5CYII=+
/* The customised dark style for TiddlyFor syntax highlighthing +(highlight.js style) +Apr 19, 2018 +Mohammad Rahmani +*/ + +.hljs { + display: block; + overflow-x: auto; + padding: 0.5em; + background: #2e2e2e; + color: #ffffff; +} + +.hljs-comment, +.hljs-quote { + color: #C0DD0C; + font-style:normal; +} + +.hljs-keyword, +.hljs-selector-tag, +.hljs-literal, +.hljs-type, +.hljs-addition { + color: #FF8000; + font-weight:normal; +} + +.hljs-selector-attr, +.hljs-selector-class, +.hljs-selector-pseudo { + color: #ffffff; +} + + + +.hljs-number{ + color: #7FB347; +} + + +.hljs-string, +.hljs-doctag, +.hljs-regexp { + color:#FFC600; /* #8abeb7;*/ +} + +.hljs-title, +.hljs-name, +.hljs-section { + color: #b5bd68; +} + +.hljs-built_in { + color: #66D9EF; + font-weight:normal; +} + + +.hljs-variable, +.hljs-template-variable, +.hljs-selector-id, +.hljs-class .hljs-title { + color: #ffcc66; +} + +.hljs-section, +.hljs-name, +.hljs-strong { + font-weight: bold; +} + +.hljs-symbol, +.hljs-bullet, +.hljs-subst, +.hljs-meta, +.hljs-link { + color: #f99157; +} + +.hljs-deletion { + color: #dc322f; +} + +.hljs-formula { + background: #eee8d5; +} + +.hljs-attr, +.hljs-attribute { + color: #81a2be; +} + +.hljs-emphasis { + font-style: italic; +} + +/*correctio of tex tags*/ +.hljs-tag { + color: #b5bd68; +}+
/* +Zenburn style from voldmar.ru (c) Vladimir Epifanov <voldmar@voldmar.ru> +based on dark.css by Ivan Sagalaev +Modified by: +Mohammad Rahmani +Apr 20, 2018 +*/ + +.hljs { + display: block; + overflow-x: auto; + padding: 0.5em; + background: #3f3f3f; + color: #dcdcdc; + font-size: 0.90em; /* smaller font */ +} + +.hljs-keyword, +.hljs-selector-tag, +.hljs-tag { + color: #e3ceab; + font-weight: normal; +} + +.hljs-template-tag { + color: #dcdcdc; +} + +.hljs-number { + color: #8cd0d3; +} + +.hljs-variable, +.hljs-template-variable, +.hljs-attribute { + color: #efdcbc; +} + +.hljs-literal { + color: #efefaf; +} + +.hljs-subst { + color: #8f8f8f; +} + +.hljs-title, +.hljs-name, +.hljs-selector-id, +.hljs-selector-class, +.hljs-section, +.hljs-type { + color: #efef8f; +} + +.hljs-symbol, +.hljs-bullet, +.hljs-link { + color: #dca3a3; +} + +.hljs-deletion, +.hljs-string, +.hljs-built_in, +.hljs-builtin-name { + color: #cc9393; +} + +.hljs-addition, +.hljs-comment, +.hljs-quote, +.hljs-meta { + color: #7f9f7f; + font-style:normal; +} + + +.hljs-emphasis { + font-style: italic; +} + +.hljs-strong { + font-weight: bold; +} ++
Se importaron los siguientes tiddlers + +# [[$:/Sidebar/Mapa]]+
no+
{ + "10th March 2019": "color:#155724;background-color:#d4edda;" +}+
hide+
$:/languages/es-ES+
{ + "tiddlers": { + "$:/language/Buttons/AdvancedSearch/Caption": { + "title": "$:/language/Buttons/AdvancedSearch/Caption", + "text": "Búsqueda avanzada" + }, + "$:/language/Buttons/AdvancedSearch/Hint": { + "title": "$:/language/Buttons/AdvancedSearch/Hint", + "text": "Búsqueda avanzada" + }, + "$:/language/Buttons/Bold/Caption": { + "title": "$:/language/Buttons/Bold/Caption", + "text": "Negrita" + }, + "$:/language/Buttons/Bold/Hint": { + "title": "$:/language/Buttons/Bold/Hint", + "text": "Aplicar formato de negrita a la selección" + }, + "$:/language/Buttons/Cancel/Caption": { + "title": "$:/language/Buttons/Cancel/Caption", + "text": "Cancelar" + }, + "$:/language/Buttons/Cancel/Hint": { + "title": "$:/language/Buttons/Cancel/Hint", + "text": "Descarta los cambios" + }, + "$:/language/Buttons/Clear/Caption": { + "title": "$:/language/Buttons/Clear/Caption", + "text": "*clear" + }, + "$:/language/Buttons/Clear/Hint": { + "title": "$:/language/Buttons/Clear/Hint", + "text": "*Clear image to solid colour" + }, + "$:/language/Buttons/Clone/Caption": { + "title": "$:/language/Buttons/Clone/Caption", + "text": "Clonar" + }, + "$:/language/Buttons/Clone/Hint": { + "title": "$:/language/Buttons/Clone/Hint", + "text": "Hace una copia exacta de este tiddler" + }, + "$:/language/Buttons/Close/Caption": { + "title": "$:/language/Buttons/Close/Caption", + "text": "Cerrar" + }, + "$:/language/Buttons/Close/Hint": { + "title": "$:/language/Buttons/Close/Hint", + "text": "Cierra este tiddler" + }, + "$:/language/Buttons/CloseAll/Caption": { + "title": "$:/language/Buttons/CloseAll/Caption", + "text": "Cerrar todo" + }, + "$:/language/Buttons/CloseAll/Hint": { + "title": "$:/language/Buttons/CloseAll/Hint", + "text": "Cierra todos los tiddlers" + }, + "$:/language/Buttons/CloseOthers/Caption": { + "title": "$:/language/Buttons/CloseOthers/Caption", + "text": "Cerrar los demás" + }, + "$:/language/Buttons/CloseOthers/Hint": { + "title": "$:/language/Buttons/CloseOthers/Hint", + "text": "Cierra todos tiddlers abiertos excepto este" + }, + "$:/language/Buttons/ControlPanel/Caption": { + "title": "$:/language/Buttons/ControlPanel/Caption", + "text": "Panel de Control" + }, + "$:/language/Buttons/ControlPanel/Hint": { + "title": "$:/language/Buttons/ControlPanel/Hint", + "text": "Abre el Panel de Control" + }, + "$:/language/Buttons/Delete/Caption": { + "title": "$:/language/Buttons/Delete/Caption", + "text": "Borrar" + }, + "$:/language/Buttons/Delete/Hint": { + "title": "$:/language/Buttons/Delete/Hint", + "text": "Borra este tiddler" + }, + "$:/language/Buttons/Edit/Caption": { + "title": "$:/language/Buttons/Edit/Caption", + "text": "Editar" + }, + "$:/language/Buttons/Edit/Hint": { + "title": "$:/language/Buttons/Edit/Hint", + "text": "Permite editar este tiddler" + }, + "$:/language/Buttons/EditorHeight/Caption": { + "title": "$:/language/Buttons/EditorHeight/Caption", + "text": "Altura del editor" + }, + "$:/language/Buttons/EditorHeight/Caption/Auto": { + "title": "$:/language/Buttons/EditorHeight/Caption/Auto", + "text": "Ajustar al contenido" + }, + "$:/language/Buttons/EditorHeight/Caption/Fixed": { + "title": "$:/language/Buttons/EditorHeight/Caption/Fixed", + "text": "Altura fija" + }, + "$:/language/Buttons/EditorHeight/Hint": { + "title": "$:/language/Buttons/EditorHeight/Hint", + "text": "Determina la altura del cuadro de edición" + }, + "$:/language/Buttons/Encryption/Caption": { + "title": "$:/language/Buttons/Encryption/Caption", + "text": "Cifrado" + }, + "$:/language/Buttons/Encryption/ClearPassword/Caption": { + "title": "$:/language/Buttons/Encryption/ClearPassword/Caption", + "text": "Borrar contraseña" + }, + "$:/language/Buttons/Encryption/ClearPassword/Hint": { + "title": "$:/language/Buttons/Encryption/ClearPassword/Hint", + "text": "Borra la contraseña actual y guarda este wiki sin cifrar" + }, + "$:/language/Buttons/Encryption/Hint": { + "title": "$:/language/Buttons/Encryption/Hint", + "text": "Asigna o revoca la contraseña de cifrado para este wiki" + }, + "$:/language/Buttons/Encryption/SetPassword/Caption": { + "title": "$:/language/Buttons/Encryption/SetPassword/Caption", + "text": "Asignar contraseña" + }, + "$:/language/Buttons/Encryption/SetPassword/Hint": { + "title": "$:/language/Buttons/Encryption/SetPassword/Hint", + "text": "Asigna contraseña de cifrado" + }, + "$:/language/Buttons/Excise/Caption": { + "title": "$:/language/Buttons/Excise/Caption", + "text": "Escindir" + }, + "$:/language/Buttons/Excise/Caption/Excise": { + "title": "$:/language/Buttons/Excise/Caption/Excise", + "text": "Escindir" + }, + "$:/language/Buttons/Excise/Caption/MacroName": { + "title": "$:/language/Buttons/Excise/Caption/MacroName", + "text": "Nombre de la macro" + }, + "$:/language/Buttons/Excise/Caption/NewTitle": { + "title": "$:/language/Buttons/Excise/Caption/NewTitle", + "text": "Título del nuevo tiddler" + }, + "$:/language/Buttons/Excise/Caption/Replace": { + "title": "$:/language/Buttons/Excise/Caption/Replace", + "text": "Reemplazar texto escindido con:" + }, + "$:/language/Buttons/Excise/Caption/Replace/Link": { + "title": "$:/language/Buttons/Excise/Caption/Replace/Link", + "text": "enlace" + }, + "$:/language/Buttons/Excise/Caption/Replace/Transclusion": { + "title": "$:/language/Buttons/Excise/Caption/Replace/Transclusion", + "text": "transclusión" + }, + "$:/language/Buttons/Excise/Caption/Tag": { + "title": "$:/language/Buttons/Excise/Caption/Tag", + "text": "Etiqueta el nuevo tiddler con el título de este" + }, + "$:/language/Buttons/Excise/Caption/TiddlerExists": { + "title": "$:/language/Buttons/Excise/Caption/TiddlerExists", + "text": "¡Atención! El tiddler ya existe" + }, + "$:/language/Buttons/Excise/Hint": { + "title": "$:/language/Buttons/Excise/Hint", + "text": "Corta el texto seleccionado y lo pega en un tiddler nuevo" + }, + "$:/language/Buttons/ExportPage/Caption": { + "title": "$:/language/Buttons/ExportPage/Caption", + "text": "Exportar todos" + }, + "$:/language/Buttons/ExportPage/Hint": { + "title": "$:/language/Buttons/ExportPage/Hint", + "text": "Exporta todos los tiddlers" + }, + "$:/language/Buttons/ExportTiddler/Caption": { + "title": "$:/language/Buttons/ExportTiddler/Caption", + "text": "Exportar tiddler" + }, + "$:/language/Buttons/ExportTiddler/Hint": { + "title": "$:/language/Buttons/ExportTiddler/Hint", + "text": "Exporta este tiddler" + }, + "$:/language/Buttons/ExportTiddlers/Caption": { + "title": "$:/language/Buttons/ExportTiddlers/Caption", + "text": "Exportar tiddlers" + }, + "$:/language/Buttons/ExportTiddlers/Hint": { + "title": "$:/language/Buttons/ExportTiddlers/Hint", + "text": "Exporta el grupo de tiddlers" + }, + "$:/language/Buttons/Fold/Caption": { + "title": "$:/language/Buttons/Fold/Caption", + "text": "Comprimir tiddler" + }, + "$:/language/Buttons/Fold/FoldBar/Caption": { + "title": "$:/language/Buttons/Fold/FoldBar/Caption", + "text": "Barra de vista comprimida" + }, + "$:/language/Buttons/Fold/FoldBar/Hint": { + "title": "$:/language/Buttons/Fold/FoldBar/Hint", + "text": "Barras opcionales para comprimir y desplegar tiddlers" + }, + "$:/language/Buttons/Fold/Hint": { + "title": "$:/language/Buttons/Fold/Hint", + "text": "Comprime la vista del tiddler ocultando el cuerpo y sólo muestra el título" + }, + "$:/language/Buttons/FoldAll/Caption": { + "title": "$:/language/Buttons/FoldAll/Caption", + "text": "Comprimir todos" + }, + "$:/language/Buttons/FoldAll/Hint": { + "title": "$:/language/Buttons/FoldAll/Hint", + "text": "Comprime la vista de todos los tiddlers abiertos" + }, + "$:/language/Buttons/FoldOthers/Caption": { + "title": "$:/language/Buttons/FoldOthers/Caption", + "text": "Comprimir los demás" + }, + "$:/language/Buttons/FoldOthers/Hint": { + "title": "$:/language/Buttons/FoldOthers/Hint", + "text": "Comprime la vista de todos los tiddlers abiertos excepto este" + }, + "$:/language/Buttons/FullScreen/Caption": { + "title": "$:/language/Buttons/FullScreen/Caption", + "text": "Pantalla completa" + }, + "$:/language/Buttons/FullScreen/Hint": { + "title": "$:/language/Buttons/FullScreen/Hint", + "text": "Entra y sale del modo de pantalla completa" + }, + "$:/language/Buttons/Heading1/Caption": { + "title": "$:/language/Buttons/Heading1/Caption", + "text": "Encabezamiento 1" + }, + "$:/language/Buttons/Heading1/Hint": { + "title": "$:/language/Buttons/Heading1/Hint", + "text": "Aplica formato de encabezamiento 1 a la selección" + }, + "$:/language/Buttons/Heading2/Caption": { + "title": "$:/language/Buttons/Heading2/Caption", + "text": "Encabezamiento 2" + }, + "$:/language/Buttons/Heading2/Hint": { + "title": "$:/language/Buttons/Heading2/Hint", + "text": "Aplica formato de encabezamiento 2 a la selección" + }, + "$:/language/Buttons/Heading3/Caption": { + "title": "$:/language/Buttons/Heading3/Caption", + "text": "Encabezamiento 3" + }, + "$:/language/Buttons/Heading3/Hint": { + "title": "$:/language/Buttons/Heading3/Hint", + "text": "Aplica formato de encabezamiento 3 a la selección" + }, + "$:/language/Buttons/Heading4/Caption": { + "title": "$:/language/Buttons/Heading4/Caption", + "text": "Encabezamiento 4" + }, + "$:/language/Buttons/Heading4/Hint": { + "title": "$:/language/Buttons/Heading4/Hint", + "text": "Aplica formato de encabezamiento 4 a la selección" + }, + "$:/language/Buttons/Heading5/Caption": { + "title": "$:/language/Buttons/Heading5/Caption", + "text": "Encabezamiento 5" + }, + "$:/language/Buttons/Heading5/Hint": { + "title": "$:/language/Buttons/Heading5/Hint", + "text": "Aplica formato de encabezamiento 5 a la selección" + }, + "$:/language/Buttons/Heading6/Caption": { + "title": "$:/language/Buttons/Heading6/Caption", + "text": "Encabezamiento 6" + }, + "$:/language/Buttons/Heading6/Hint": { + "title": "$:/language/Buttons/Heading6/Hint", + "text": "Aplica formato de encabezamiento 6 a la selección" + }, + "$:/language/Buttons/Help/Caption": { + "title": "$:/language/Buttons/Help/Caption", + "text": "Ayuda" + }, + "$:/language/Buttons/Help/Hint": { + "title": "$:/language/Buttons/Help/Hint", + "text": "Muestra el panel de ayuda" + }, + "$:/language/Buttons/HideSideBar/Caption": { + "title": "$:/language/Buttons/HideSideBar/Caption", + "text": "Ocultar barra lateral" + }, + "$:/language/Buttons/HideSideBar/Hint": { + "title": "$:/language/Buttons/HideSideBar/Hint", + "text": "Oculta la barra lateral" + }, + "$:/language/Buttons/Home/Caption": { + "title": "$:/language/Buttons/Home/Caption", + "text": "Inicio" + }, + "$:/language/Buttons/Home/Hint": { + "title": "$:/language/Buttons/Home/Hint", + "text": "Cierra todos los tiddlers abiertos y abre los que se muestran por defecto al inicio" + }, + "$:/language/Buttons/Import/Caption": { + "title": "$:/language/Buttons/Import/Caption", + "text": "Importar" + }, + "$:/language/Buttons/Import/Hint": { + "title": "$:/language/Buttons/Import/Hint", + "text": "Importa multitud de tipos de archivo, incluyendo textos, imágenes, TiddlyWiki y JSON" + }, + "$:/language/Buttons/Info/Caption": { + "title": "$:/language/Buttons/Info/Caption", + "text": "Información" + }, + "$:/language/Buttons/Info/Hint": { + "title": "$:/language/Buttons/Info/Hint", + "text": "Muestra información sobre este tiddler" + }, + "$:/language/Buttons/Italic/Caption": { + "title": "$:/language/Buttons/Italic/Caption", + "text": "Cursiva" + }, + "$:/language/Buttons/Italic/Hint": { + "title": "$:/language/Buttons/Italic/Hint", + "text": "Aplica formato de cursiva a la selección" + }, + "$:/language/Buttons/Language/Caption": { + "title": "$:/language/Buttons/Language/Caption", + "text": "Idioma" + }, + "$:/language/Buttons/Language/Hint": { + "title": "$:/language/Buttons/Language/Hint", + "text": "Selecciona idioma de la interfaz de usuario" + }, + "$:/language/Buttons/LineWidth/Caption": { + "title": "$:/language/Buttons/LineWidth/Caption", + "text": "Ancho del trazo" + }, + "$:/language/Buttons/LineWidth/Hint": { + "title": "$:/language/Buttons/LineWidth/Hint", + "text": "Establece el ancho del trazo para pintar" + }, + "$:/language/Buttons/ListBullet/Caption": { + "title": "$:/language/Buttons/ListBullet/Caption", + "text": "Lista con viñetas" + }, + "$:/language/Buttons/ListBullet/Hint": { + "title": "$:/language/Buttons/ListBullet/Hint", + "text": "Aplica formato de lista con viñetas a la selección" + }, + "$:/language/Buttons/ListNumber/Caption": { + "title": "$:/language/Buttons/ListNumber/Caption", + "text": "Lista numerada" + }, + "$:/language/Buttons/ListNumber/Hint": { + "title": "$:/language/Buttons/ListNumber/Hint", + "text": "Aplica formato de lista numerada a la selección" + }, + "$:/language/Buttons/MonoBlock/Caption": { + "title": "$:/language/Buttons/MonoBlock/Caption", + "text": "Bloque monoespaciado" + }, + "$:/language/Buttons/MonoBlock/Hint": { + "title": "$:/language/Buttons/MonoBlock/Hint", + "text": "Aplica formato de bloque monoespaciado a la selección" + }, + "$:/language/Buttons/MonoLine/Caption": { + "title": "$:/language/Buttons/MonoLine/Caption", + "text": "Monoespacio" + }, + "$:/language/Buttons/MonoLine/Hint": { + "title": "$:/language/Buttons/MonoLine/Hint", + "text": "Aplica formato de monoespacio a la selección" + }, + "$:/language/Buttons/More/Caption": { + "title": "$:/language/Buttons/More/Caption", + "text": "Más" + }, + "$:/language/Buttons/More/Hint": { + "title": "$:/language/Buttons/More/Hint", + "text": "Otras acciones" + }, + "$:/language/Buttons/NewHere/Caption": { + "title": "$:/language/Buttons/NewHere/Caption", + "text": "Nuevo aquí" + }, + "$:/language/Buttons/NewHere/Hint": { + "title": "$:/language/Buttons/NewHere/Hint", + "text": "Crea un nuevo tiddler etiquetado con el título de este tiddler" + }, + "$:/language/Buttons/NewImage/Caption": { + "title": "$:/language/Buttons/NewImage/Caption", + "text": "Nueva imagen" + }, + "$:/language/Buttons/NewImage/Hint": { + "title": "$:/language/Buttons/NewImage/Hint", + "text": "Crea un nuevo tiddler de imagen" + }, + "$:/language/Buttons/NewJournal/Caption": { + "title": "$:/language/Buttons/NewJournal/Caption", + "text": "Nueva entrada" + }, + "$:/language/Buttons/NewJournal/Hint": { + "title": "$:/language/Buttons/NewJournal/Hint", + "text": "Crea una nueva entrada de diario" + }, + "$:/language/Buttons/NewJournalHere/Caption": { + "title": "$:/language/Buttons/NewJournalHere/Caption", + "text": "Entrada nueva aquí" + }, + "$:/language/Buttons/NewJournalHere/Hint": { + "title": "$:/language/Buttons/NewJournalHere/Hint", + "text": "Crea una nueva entrada de diario etiquetada con el título de este tiddler" + }, + "$:/language/Buttons/NewMarkdown/Caption": { + "title": "$:/language/Buttons/NewMarkdown/Caption", + "text": "Nuevo tiddler en Markdown" + }, + "$:/language/Buttons/NewMarkdown/Hint": { + "title": "$:/language/Buttons/NewMarkdown/Hint", + "text": "Crea un nuevo tiddler en Markdown" + }, + "$:/language/Buttons/NewTiddler/Caption": { + "title": "$:/language/Buttons/NewTiddler/Caption", + "text": "Nuevo tiddler" + }, + "$:/language/Buttons/NewTiddler/Hint": { + "title": "$:/language/Buttons/NewTiddler/Hint", + "text": "Crea un tiddler nuevo" + }, + "$:/language/Buttons/OpenWindow/Caption": { + "title": "$:/language/Buttons/OpenWindow/Caption", + "text": "Abrir en ventana nueva" + }, + "$:/language/Buttons/OpenWindow/Hint": { + "title": "$:/language/Buttons/OpenWindow/Hint", + "text": "Abre el tiddler en una nueva ventana" + }, + "$:/language/Buttons/Opacity/Caption": { + "title": "$:/language/Buttons/Opacity/Caption", + "text": "Opacidad" + }, + "$:/language/Buttons/Opacity/Hint": { + "title": "$:/language/Buttons/Opacity/Hint", + "text": "Establece la opacidad del trazo" + }, + "$:/language/Buttons/Paint/Caption": { + "title": "$:/language/Buttons/Paint/Caption", + "text": "Color del trazo" + }, + "$:/language/Buttons/Paint/Hint": { + "title": "$:/language/Buttons/Paint/Hint", + "text": "Establece el color del trazo" + }, + "$:/language/Buttons/Palette/Caption": { + "title": "$:/language/Buttons/Palette/Caption", + "text": "Paleta" + }, + "$:/language/Buttons/Palette/Hint": { + "title": "$:/language/Buttons/Palette/Hint", + "text": "Selecciona la paleta de color" + }, + "$:/language/Buttons/Permalink/Caption": { + "title": "$:/language/Buttons/Permalink/Caption", + "text": "Permalink" + }, + "$:/language/Buttons/Permalink/Hint": { + "title": "$:/language/Buttons/Permalink/Hint", + "text": "Crea en la barra de direcciones del navegador un enlace directo a este tiddler" + }, + "$:/language/Buttons/Permaview/Caption": { + "title": "$:/language/Buttons/Permaview/Caption", + "text": "Permaview" + }, + "$:/language/Buttons/Permaview/Hint": { + "title": "$:/language/Buttons/Permaview/Hint", + "text": "Crea en la barra de direcciones del navegador un enlace directo a todos los tiddlers abiertos" + }, + "$:/language/Buttons/Picture/Caption": { + "title": "$:/language/Buttons/Picture/Caption", + "text": "Imagen" + }, + "$:/language/Buttons/Picture/Hint": { + "title": "$:/language/Buttons/Picture/Hint", + "text": "Inserta imagen" + }, + "$:/language/Buttons/Preview/Caption": { + "title": "$:/language/Buttons/Preview/Caption", + "text": "Vista previa" + }, + "$:/language/Buttons/Preview/Hint": { + "title": "$:/language/Buttons/Preview/Hint", + "text": "Muestra el panel de vista previa" + }, + "$:/language/Buttons/PreviewType/Caption": { + "title": "$:/language/Buttons/PreviewType/Caption", + "text": "Tipo de vista previa" + }, + "$:/language/Buttons/PreviewType/Hint": { + "title": "$:/language/Buttons/PreviewType/Hint", + "text": "Selecciona el tipo de vista previa" + }, + "$:/language/Buttons/Quote/Caption": { + "title": "$:/language/Buttons/Quote/Caption", + "text": "Bloque de cita" + }, + "$:/language/Buttons/Quote/Hint": { + "title": "$:/language/Buttons/Quote/Hint", + "text": "Aplica formato de bloque de cita a la selección" + }, + "$:/language/Buttons/Refresh/Caption": { + "title": "$:/language/Buttons/Refresh/Caption", + "text": "Recargar" + }, + "$:/language/Buttons/Refresh/Hint": { + "title": "$:/language/Buttons/Refresh/Hint", + "text": "Actualiza completamente este wiki" + }, + "$:/language/Buttons/Save/Caption": { + "title": "$:/language/Buttons/Save/Caption", + "text": "Ok" + }, + "$:/language/Buttons/Save/Hint": { + "title": "$:/language/Buttons/Save/Hint", + "text": "Confirma y guarda los cambios realizados en el tiddler" + }, + "$:/language/Buttons/SaveWiki/Caption": { + "title": "$:/language/Buttons/SaveWiki/Caption", + "text": "Guardar cambios" + }, + "$:/language/Buttons/SaveWiki/Hint": { + "title": "$:/language/Buttons/SaveWiki/Hint", + "text": "Confirma y guarda todos los cambios realizados en el wiki" + }, + "$:/language/Buttons/ShowSideBar/Caption": { + "title": "$:/language/Buttons/ShowSideBar/Caption", + "text": "Mostrar barra lateral" + }, + "$:/language/Buttons/ShowSideBar/Hint": { + "title": "$:/language/Buttons/ShowSideBar/Hint", + "text": "Muestra la barra lateral" + }, + "$:/language/Buttons/Size/Caption": { + "title": "$:/language/Buttons/Size/Caption", + "text": "Tamaño de imagen" + }, + "$:/language/Buttons/Size/Caption/Height": { + "title": "$:/language/Buttons/Size/Caption/Height", + "text": "Altura:" + }, + "$:/language/Buttons/Size/Caption/Resize": { + "title": "$:/language/Buttons/Size/Caption/Resize", + "text": "Cambiar tamaño" + }, + "$:/language/Buttons/Size/Caption/Width": { + "title": "$:/language/Buttons/Size/Caption/Width", + "text": "Ancho:" + }, + "$:/language/Buttons/Size/Hint": { + "title": "$:/language/Buttons/Size/Hint", + "text": "Establece tamaño de la imagen" + }, + "$:/language/Buttons/Stamp/Caption": { + "title": "$:/language/Buttons/Stamp/Caption", + "text": "Snippet" + }, + "$:/language/Buttons/Stamp/Caption/New": { + "title": "$:/language/Buttons/Stamp/Caption/New", + "text": "Añade el tuyo propio" + }, + "$:/language/Buttons/Stamp/Hint": { + "title": "$:/language/Buttons/Stamp/Hint", + "text": "Inserta un snippet o fragmento de texto preconfigurado" + }, + "$:/language/Buttons/Stamp/New/Text": { + "title": "$:/language/Buttons/Stamp/New/Text", + "text": "Texto del snippet (Recuerda añadir un título descriptivo en el campo \"caption\" )." + }, + "$:/language/Buttons/Stamp/New/Title": { + "title": "$:/language/Buttons/Stamp/New/Title", + "text": "Nombre para mostrar en el menú" + }, + "$:/language/Buttons/StoryView/Caption": { + "title": "$:/language/Buttons/StoryView/Caption", + "text": "Vista" + }, + "$:/language/Buttons/StoryView/Hint": { + "title": "$:/language/Buttons/StoryView/Hint", + "text": "Selecciona el modo de visualización de los tiddlers" + }, + "$:/language/Buttons/Strikethrough/Caption": { + "title": "$:/language/Buttons/Strikethrough/Caption", + "text": "Tachado" + }, + "$:/language/Buttons/Strikethrough/Hint": { + "title": "$:/language/Buttons/Strikethrough/Hint", + "text": "Aplica formado de tachado a la selección" + }, + "$:/language/Buttons/Subscript/Caption": { + "title": "$:/language/Buttons/Subscript/Caption", + "text": "Subíndice" + }, + "$:/language/Buttons/Subscript/Hint": { + "title": "$:/language/Buttons/Subscript/Hint", + "text": "Aplica formato de subíndice a la selección" + }, + "$:/language/Buttons/Superscript/Caption": { + "title": "$:/language/Buttons/Superscript/Caption", + "text": "Superíndice" + }, + "$:/language/Buttons/Superscript/Hint": { + "title": "$:/language/Buttons/Superscript/Hint", + "text": "Aplica formato de superíndice a la selección" + }, + "$:/language/Buttons/TagManager/Caption": { + "title": "$:/language/Buttons/TagManager/Caption", + "text": "Administrador de etiquetas" + }, + "$:/language/Buttons/TagManager/Hint": { + "title": "$:/language/Buttons/TagManager/Hint", + "text": "Abre el gestor de etiquetas" + }, + "$:/language/Buttons/Theme/Caption": { + "title": "$:/language/Buttons/Theme/Caption", + "text": "Tema" + }, + "$:/language/Buttons/Theme/Hint": { + "title": "$:/language/Buttons/Theme/Hint", + "text": "Selecciona un estilo visual para el wiki" + }, + "$:/language/Buttons/Underline/Caption": { + "title": "$:/language/Buttons/Underline/Caption", + "text": "Subrayado" + }, + "$:/language/Buttons/Underline/Hint": { + "title": "$:/language/Buttons/Underline/Hint", + "text": "Aplica formato de subrayado a la selección" + }, + "$:/language/Buttons/Unfold/Caption": { + "title": "$:/language/Buttons/Unfold/Caption", + "text": "Desplegar tiddler" + }, + "$:/language/Buttons/Unfold/Hint": { + "title": "$:/language/Buttons/Unfold/Hint", + "text": "Despliega el cuerpo de este tiddler y muestra su contenido" + }, + "$:/language/Buttons/UnfoldAll/Caption": { + "title": "$:/language/Buttons/UnfoldAll/Caption", + "text": "Desplegar todos" + }, + "$:/language/Buttons/UnfoldAll/Hint": { + "title": "$:/language/Buttons/UnfoldAll/Hint", + "text": "Despliega y muestra el contenido de todos los tiddlers abiertos" + }, + "$:/language/ControlPanel/Advanced/Caption": { + "title": "$:/language/ControlPanel/Advanced/Caption", + "text": "Avanzado" + }, + "$:/language/ControlPanel/Advanced/Hint": { + "title": "$:/language/ControlPanel/Advanced/Hint", + "text": "Información interna de TiddlyWiki" + }, + "$:/language/ControlPanel/Appearance/Caption": { + "title": "$:/language/ControlPanel/Appearance/Caption", + "text": "Aspecto" + }, + "$:/language/ControlPanel/Appearance/Hint": { + "title": "$:/language/ControlPanel/Appearance/Hint", + "text": "Personaliza la apariencia de TiddlyWiki" + }, + "$:/language/ControlPanel/Basics/AnimDuration/Prompt": { + "title": "$:/language/ControlPanel/Basics/AnimDuration/Prompt", + "text": "Duración de la animación" + }, + "$:/language/ControlPanel/Basics/Caption": { + "title": "$:/language/ControlPanel/Basics/Caption", + "text": "Básico" + }, + "$:/language/ControlPanel/Basics/DefaultTiddlers/BottomHint": { + "title": "$:/language/ControlPanel/Basics/DefaultTiddlers/BottomHint", + "text": "Usa [[corchetes dobles]] para títulos con espacios. También puedes mostrarlos ordenados <$button set=\"$:/DefaultTiddlers\" setTo=\"[list[$:/StoryList]]\">de más reciente a más antiguo</$button>" + }, + "$:/language/ControlPanel/Basics/DefaultTiddlers/Prompt": { + "title": "$:/language/ControlPanel/Basics/DefaultTiddlers/Prompt", + "text": "Tiddlers por defecto" + }, + "$:/language/ControlPanel/Basics/DefaultTiddlers/TopHint": { + "title": "$:/language/ControlPanel/Basics/DefaultTiddlers/TopHint", + "text": "Escoge qué tiddlers se muestran al inicio" + }, + "$:/language/ControlPanel/Basics/Language/Prompt": { + "title": "$:/language/ControlPanel/Basics/Language/Prompt", + "text": "¡Hola! Selecciona idioma actual" + }, + "$:/language/ControlPanel/Basics/NewJournal/Tags/Prompt": { + "title": "$:/language/ControlPanel/Basics/NewJournal/Tags/Prompt", + "text": "Etiqueta para las nuevas entradas de diario" + }, + "$:/language/ControlPanel/Basics/NewJournal/Title/Prompt": { + "title": "$:/language/ControlPanel/Basics/NewJournal/Title/Prompt", + "text": "Formato de título para las nuevas entradas de diario" + }, + "$:/language/ControlPanel/Basics/OverriddenShadowTiddlers/Prompt": { + "title": "$:/language/ControlPanel/Basics/OverriddenShadowTiddlers/Prompt", + "text": "Número de tiddlers ocultos anulados" + }, + "$:/language/ControlPanel/Basics/ShadowTiddlers/Prompt": { + "title": "$:/language/ControlPanel/Basics/ShadowTiddlers/Prompt", + "text": "Número de tiddlers ocultos" + }, + "$:/language/ControlPanel/Basics/Subtitle/Prompt": { + "title": "$:/language/ControlPanel/Basics/Subtitle/Prompt", + "text": "Subtítulo" + }, + "$:/language/ControlPanel/Basics/SystemTiddlers/Prompt": { + "title": "$:/language/ControlPanel/Basics/SystemTiddlers/Prompt", + "text": "Número de tiddlers de sistema" + }, + "$:/language/ControlPanel/Basics/Tags/Prompt": { + "title": "$:/language/ControlPanel/Basics/Tags/Prompt", + "text": "Número de etiquetas" + }, + "$:/language/ControlPanel/Basics/Tiddlers/Prompt": { + "title": "$:/language/ControlPanel/Basics/Tiddlers/Prompt", + "text": "Número de tiddlers" + }, + "$:/language/ControlPanel/Basics/Title/Prompt": { + "title": "$:/language/ControlPanel/Basics/Title/Prompt", + "text": "Título de este ~TiddlyWiki:" + }, + "$:/language/ControlPanel/Basics/Username/Prompt": { + "title": "$:/language/ControlPanel/Basics/Username/Prompt", + "text": "Nombre de usuario" + }, + "$:/language/ControlPanel/Basics/Version/Prompt": { + "title": "$:/language/ControlPanel/Basics/Version/Prompt", + "text": "Versión de ~TiddlyWiki" + }, + "$:/language/ControlPanel/EditorTypes/Caption": { + "title": "$:/language/ControlPanel/EditorTypes/Caption", + "text": "Tipos de editor" + }, + "$:/language/ControlPanel/EditorTypes/Editor/Caption": { + "title": "$:/language/ControlPanel/EditorTypes/Editor/Caption", + "text": "Editor" + }, + "$:/language/ControlPanel/EditorTypes/Hint": { + "title": "$:/language/ControlPanel/EditorTypes/Hint", + "text": "Editores usados para ciertos tipos específicos de tiddler" + }, + "$:/language/ControlPanel/EditorTypes/Type/Caption": { + "title": "$:/language/ControlPanel/EditorTypes/Type/Caption", + "text": "Tipo" + }, + "$:/language/ControlPanel/Info/Caption": { + "title": "$:/language/ControlPanel/Info/Caption", + "text": "Información" + }, + "$:/language/ControlPanel/Info/Hint": { + "title": "$:/language/ControlPanel/Info/Hint", + "text": "Información acerca de este TiddlyWiki" + }, + "$:/language/ControlPanel/KeyboardShortcuts/Add/Caption": { + "title": "$:/language/ControlPanel/KeyboardShortcuts/Add/Caption", + "text": "Añadir atajo" + }, + "$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt": { + "title": "$:/language/ControlPanel/KeyboardShortcuts/Add/Prompt", + "text": "Escribe el atajo" + }, + "$:/language/ControlPanel/KeyboardShortcuts/Caption": { + "title": "$:/language/ControlPanel/KeyboardShortcuts/Caption", + "text": "Atajos de teclado" + }, + "$:/language/ControlPanel/KeyboardShortcuts/Hint": { + "title": "$:/language/ControlPanel/KeyboardShortcuts/Hint", + "text": "Administra la asignación de atajos de teclado" + }, + "$:/language/ControlPanel/KeyboardShortcuts/NoShortcuts/Caption": { + "title": "$:/language/ControlPanel/KeyboardShortcuts/NoShortcuts/Caption", + "text": "No hay atajo asignado" + }, + "$:/language/ControlPanel/KeyboardShortcuts/Platform/All": { + "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/All", + "text": "Cualquier plataforma" + }, + "$:/language/ControlPanel/KeyboardShortcuts/Platform/Linux": { + "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/Linux", + "text": "Sólo Linux" + }, + "$:/language/ControlPanel/KeyboardShortcuts/Platform/Mac": { + "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/Mac", + "text": "Sólo Macintosh" + }, + "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonLinux": { + "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonLinux", + "text": "Todas menos Linux" + }, + "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonMac": { + "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonMac", + "text": "Todas menos Macintosh" + }, + "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonWindows": { + "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/NonWindows", + "text": "Todas menos Windows" + }, + "$:/language/ControlPanel/KeyboardShortcuts/Platform/Windows": { + "title": "$:/language/ControlPanel/KeyboardShortcuts/Platform/Windows", + "text": "Sólo windows" + }, + "$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint": { + "title": "$:/language/ControlPanel/KeyboardShortcuts/Remove/Hint", + "text": "Eliminar atajo" + }, + "$:/language/ControlPanel/LoadedModules/Caption": { + "title": "$:/language/ControlPanel/LoadedModules/Caption", + "text": "Módulos cargados" + }, + "$:/language/ControlPanel/LoadedModules/Hint": { + "title": "$:/language/ControlPanel/LoadedModules/Hint", + "text": "Modulos cargados en este momento, enlazados con sus tiddlers de origen. Los módulos en itálica carecen de origen, debido normalmente a que se configuraron durante el inicio." + }, + "$:/language/ControlPanel/Palette/Caption": { + "title": "$:/language/ControlPanel/Palette/Caption", + "text": "Paleta" + }, + "$:/language/ControlPanel/Palette/Editor/Clone/Caption": { + "title": "$:/language/ControlPanel/Palette/Editor/Clone/Caption", + "text": "Clonar" + }, + "$:/language/ControlPanel/Palette/Editor/Clone/Prompt": { + "title": "$:/language/ControlPanel/Palette/Editor/Clone/Prompt", + "text": "Se recomienda clonar esta paleta antes de editarla." + }, + "$:/language/ControlPanel/Palette/Editor/Prompt": { + "title": "$:/language/ControlPanel/Palette/Editor/Prompt", + "text": "Editando" + }, + "$:/language/ControlPanel/Palette/Editor/Prompt/Modified": { + "title": "$:/language/ControlPanel/Palette/Editor/Prompt/Modified", + "text": "Si te has perdido, no desesperes" + }, + "$:/language/ControlPanel/Palette/Editor/Reset/Caption": { + "title": "$:/language/ControlPanel/Palette/Editor/Reset/Caption", + "text": "Restaura la paleta" + }, + "$:/language/ControlPanel/Palette/HideEditor/Caption": { + "title": "$:/language/ControlPanel/Palette/HideEditor/Caption", + "text": "Cerrar el editor" + }, + "$:/language/ControlPanel/Palette/Prompt": { + "title": "$:/language/ControlPanel/Palette/Prompt", + "text": "Paleta actual" + }, + "$:/language/ControlPanel/Palette/ShowEditor/Caption": { + "title": "$:/language/ControlPanel/Palette/ShowEditor/Caption", + "text": "Abrir el editor" + }, + "$:/language/ControlPanel/Parsing/Block/Caption": { + "title": "$:/language/ControlPanel/Parsing/Block/Caption", + "text": "Bloquear reglas sintácticas" + }, + "$:/language/ControlPanel/Parsing/Caption": { + "title": "$:/language/ControlPanel/Parsing/Caption", + "text": "Interpretación sintáctica" + }, + "$:/language/ControlPanel/Parsing/Hint": { + "title": "$:/language/ControlPanel/Parsing/Hint", + "text": "Aquí se pueden deshabilitar globalmente reglas de interpretación sintáctica del wiki. Ten cuidado: deshabilitar ciertas reglas puede hacer que ~TiddlyWiki deje de funcionar correctamente." + }, + "$:/language/ControlPanel/En tal caso, puedes recuperar su normal funcionamiento en [[modo seguro|https": { + "title": "$:/language/ControlPanel/En tal caso, puedes recuperar su normal funcionamiento en [[modo seguro|https", + "text": "/tiddlywiki.com/#SafeMode]]." + }, + "$:/language/ControlPanel/Parsing/Inline/Caption": { + "title": "$:/language/ControlPanel/Parsing/Inline/Caption", + "text": "Reglas sintácticas de texto" + }, + "$:/language/ControlPanel/Parsing/Pragma/Caption": { + "title": "$:/language/ControlPanel/Parsing/Pragma/Caption", + "text": "Reglas sintácticas del compilador" + }, + "$:/language/ControlPanel/Plugins/Add/Caption": { + "title": "$:/language/ControlPanel/Plugins/Add/Caption", + "text": "Obten complementos y extensiones" + }, + "$:/language/ControlPanel/Plugins/Add/Hint": { + "title": "$:/language/ControlPanel/Plugins/Add/Hint", + "text": "Instala plugins desde la librería oficial" + }, + "$:/language/ControlPanel/Plugins/Caption": { + "title": "$:/language/ControlPanel/Plugins/Caption", + "text": "Plugins" + }, + "$:/language/ControlPanel/Plugins/Disable/Caption": { + "title": "$:/language/ControlPanel/Plugins/Disable/Caption", + "text": "Desactivar" + }, + "$:/language/ControlPanel/Plugins/Disable/Hint": { + "title": "$:/language/ControlPanel/Plugins/Disable/Hint", + "text": "Desactiva el plugin al actualizar la página" + }, + "$:/language/ControlPanel/Plugins/Disabled/Status": { + "title": "$:/language/ControlPanel/Plugins/Disabled/Status", + "text": "(Desactivado)" + }, + "$:/language/ControlPanel/Plugins/Empty/Hint": { + "title": "$:/language/ControlPanel/Plugins/Empty/Hint", + "text": "No se han instalado" + }, + "$:/language/ControlPanel/Plugins/Enable/Caption": { + "title": "$:/language/ControlPanel/Plugins/Enable/Caption", + "text": "Activar" + }, + "$:/language/ControlPanel/Plugins/Enable/Hint": { + "title": "$:/language/ControlPanel/Plugins/Enable/Hint", + "text": "Activa este plugin al actualizar la página" + }, + "$:/language/ControlPanel/Plugins/Install/Caption": { + "title": "$:/language/ControlPanel/Plugins/Install/Caption", + "text": "Instalar" + }, + "$:/language/ControlPanel/Plugins/Installed/Hint": { + "title": "$:/language/ControlPanel/Plugins/Installed/Hint", + "text": "Plugins instalados actualmente" + }, + "$:/language/ControlPanel/Plugins/Language/Prompt": { + "title": "$:/language/ControlPanel/Plugins/Language/Prompt", + "text": "Idiomas" + }, + "$:/language/ControlPanel/Plugins/Languages/Caption": { + "title": "$:/language/ControlPanel/Plugins/Languages/Caption", + "text": "Idiomas" + }, + "$:/language/ControlPanel/Plugins/Languages/Hint": { + "title": "$:/language/ControlPanel/Plugins/Languages/Hint", + "text": "Extensiones de idioma" + }, + "$:/language/ControlPanel/Plugins/OpenPluginLibrary": { + "title": "$:/language/ControlPanel/Plugins/OpenPluginLibrary", + "text": "Abrir biblioteca de complementos y extensiones" + }, + "$:/language/ControlPanel/Plugins/Plugin/Prompt": { + "title": "$:/language/ControlPanel/Plugins/Plugin/Prompt", + "text": "Plugins" + }, + "$:/language/ControlPanel/Plugins/Plugins/Caption": { + "title": "$:/language/ControlPanel/Plugins/Plugins/Caption", + "text": "Plugins" + }, + "$:/language/ControlPanel/Plugins/Plugins/Hint": { + "title": "$:/language/ControlPanel/Plugins/Plugins/Hint", + "text": "Complementos y extensiones" + }, + "$:/language/ControlPanel/Plugins/Reinstall/Caption": { + "title": "$:/language/ControlPanel/Plugins/Reinstall/Caption", + "text": "Reinstalar" + }, + "$:/language/ControlPanel/Plugins/Theme/Prompt": { + "title": "$:/language/ControlPanel/Plugins/Theme/Prompt", + "text": "Temas" + }, + "$:/language/ControlPanel/Plugins/Themes/Caption": { + "title": "$:/language/ControlPanel/Plugins/Themes/Caption", + "text": "Temas" + }, + "$:/language/ControlPanel/Plugins/Themes/Hint": { + "title": "$:/language/ControlPanel/Plugins/Themes/Hint", + "text": "Extensiones de tema" + }, + "$:/language/ControlPanel/Saving/Caption": { + "title": "$:/language/ControlPanel/Saving/Caption", + "text": "Servidor" + }, + "$:/language/ControlPanel/Saving/Heading": { + "title": "$:/language/ControlPanel/Saving/Heading", + "text": "Servidor" + }, + "$:/language/ControlPanel/Saving/TiddlySpot/Advanced/Heading": { + "title": "$:/language/ControlPanel/Saving/TiddlySpot/Advanced/Heading", + "text": "Configuración Avanzada" + }, + "$:/language/ControlPanel/Saving/TiddlySpot/BackupDir": { + "title": "$:/language/ControlPanel/Saving/TiddlySpot/BackupDir", + "text": "Directorio de copias de seguridad" + }, + "$:/language/ControlPanel/Saving/TiddlySpot/Backups": { + "title": "$:/language/ControlPanel/Saving/TiddlySpot/Backups", + "text": "Copias de seguridad" + }, + "$:/language/ControlPanel/Saving/TiddlySpot/Description": { + "title": "$:/language/ControlPanel/Saving/TiddlySpot/Description", + "text": "Esta configuración sólo se usa para guardar el wiki en http://tiddlyspot.com o en otro servidor compatible" + }, + "$:/language/ControlPanel/Saving/TiddlySpot/Filename": { + "title": "$:/language/ControlPanel/Saving/TiddlySpot/Filename", + "text": "Nombre del archivo" + }, + "$:/language/ControlPanel/Saving/TiddlySpot/Heading": { + "title": "$:/language/ControlPanel/Saving/TiddlySpot/Heading", + "text": "~TiddlySpot" + }, + "$:/language/ControlPanel/Saving/TiddlySpot/Hint": { + "title": "$:/language/ControlPanel/Saving/TiddlySpot/Hint", + "text": "//La dirección (URL) por defecto de// TiddlySpot //es `http://<wikiname>.tiddlyspot.com/store.cgi` aunque puede cambiarse a voluntad para usar otro servidor//" + }, + "$:/language/ControlPanel/Saving/TiddlySpot/Password": { + "title": "$:/language/ControlPanel/Saving/TiddlySpot/Password", + "text": "Contraseña" + }, + "$:/language/ControlPanel/Saving/TiddlySpot/ServerURL": { + "title": "$:/language/ControlPanel/Saving/TiddlySpot/ServerURL", + "text": "Dirección (URL) del servidor" + }, + "$:/language/ControlPanel/Saving/TiddlySpot/UploadDir": { + "title": "$:/language/ControlPanel/Saving/TiddlySpot/UploadDir", + "text": "Directorio de almacenamiento" + }, + "$:/language/ControlPanel/Saving/TiddlySpot/UserName": { + "title": "$:/language/ControlPanel/Saving/TiddlySpot/UserName", + "text": "Nombre del Wiki" + }, + "$:/language/ControlPanel/Settings/AutoSave/Caption": { + "title": "$:/language/ControlPanel/Settings/AutoSave/Caption", + "text": "Guardar automáticamente" + }, + "$:/language/ControlPanel/Settings/AutoSave/Disabled/Description": { + "title": "$:/language/ControlPanel/Settings/AutoSave/Disabled/Description", + "text": "No guardar cambios automáticamente" + }, + "$:/language/ControlPanel/Settings/AutoSave/Enabled/Description": { + "title": "$:/language/ControlPanel/Settings/AutoSave/Enabled/Description", + "text": "Guardar cambios automáticamente" + }, + "$:/language/ControlPanel/Settings/AutoSave/Hint": { + "title": "$:/language/ControlPanel/Settings/AutoSave/Hint", + "text": "Guarda automáticamente los cambios durante la edición" + }, + "$:/language/ControlPanel/Settings/CamelCase/Caption": { + "title": "$:/language/ControlPanel/Settings/CamelCase/Caption", + "text": "Enlaces wiki mediante ~CamelCase" + }, + "$:/language/ControlPanel/Settings/CamelCase/Description": { + "title": "$:/language/ControlPanel/Settings/CamelCase/Description", + "text": "Activar enlaces automáticos mediante ~CamelCase" + }, + "$:/language/ControlPanel/Settings/CamelCase/Hint": { + "title": "$:/language/ControlPanel/Settings/CamelCase/Hint", + "text": "Desactiva globalmente la opción de enlace automático mediante CamelCase <br>" + }, + "$:/language/ControlPanel/Settings/Caption": { + "title": "$:/language/ControlPanel/Settings/Caption", + "text": "Configuración" + }, + "$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption": { + "title": "$:/language/ControlPanel/Settings/DefaultSidebarTab/Caption", + "text": "Pestaña por defecto de la barra lateral" + }, + "$:/language/ControlPanel/Settings/DefaultSidebarTab/Hint": { + "title": "$:/language/ControlPanel/Settings/DefaultSidebarTab/Hint", + "text": "Indica qué pestaña de la barra lateral se muestra por defecto al inicio" + }, + "$:/language/ControlPanel/Settings/Hint": { + "title": "$:/language/ControlPanel/Settings/Hint", + "text": "La configuración de estos ajustes te permite personalizar el comportamiento de TiddlyWiki." + }, + "$:/language/ControlPanel/Settings/LinkToBehaviour/Caption": { + "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/Caption", + "text": "Comportamiento al abrir tiddlers..." + }, + "$:/language/ControlPanel/Settings/LinkToBehaviour/InsideRiver/Hint": { + "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/InsideRiver/Hint", + "text": "...dentro del StoryRiver" + }, + "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAbove": { + "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAbove", + "text": "Abrirlo por encima del tiddler actual" + }, + "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtBottom": { + "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtBottom", + "text": "Abrirlo al final del StoryRiver" + }, + "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtTop": { + "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenAtTop", + "text": "Abrirlo al principio del StoryRiver" + }, + "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenBelow": { + "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OpenBelow", + "text": "Abrirlo por debajo del tiddler actual" + }, + "$:/language/ControlPanel/Settings/LinkToBehaviour/OutsideRiver/Hint": { + "title": "$:/language/ControlPanel/Settings/LinkToBehaviour/OutsideRiver/Hint", + "text": "...desde fuera del StoryRiver" + }, + "$:/language/ControlPanel/Settings/NavigationAddressBar/Caption": { + "title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Caption", + "text": "Barra de direcciones" + }, + "$:/language/ControlPanel/Settings/NavigationAddressBar/Hint": { + "title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Hint", + "text": "Comportamiento de la barra de dirección del navegador cuando se abre un tiddler" + }, + "$:/language/ControlPanel/Settings/NavigationAddressBar/No/Description": { + "title": "$:/language/ControlPanel/Settings/NavigationAddressBar/No/Description", + "text": "No actualizar la barra de dirección" + }, + "$:/language/ControlPanel/Settings/NavigationAddressBar/Permalink/Description": { + "title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Permalink/Description", + "text": "Añadir el tiddler de destino a la dirección" + }, + "$:/language/ControlPanel/Settings/NavigationAddressBar/Permaview/Description": { + "title": "$:/language/ControlPanel/Settings/NavigationAddressBar/Permaview/Description", + "text": "Añadir el tiddler de destino y la secuencia actual de tiddlers abiertos" + }, + "$:/language/ControlPanel/Settings/NavigationHistory/Caption": { + "title": "$:/language/ControlPanel/Settings/NavigationHistory/Caption", + "text": "Historial de navegación" + }, + "$:/language/ControlPanel/Settings/NavigationHistory/Hint": { + "title": "$:/language/ControlPanel/Settings/NavigationHistory/Hint", + "text": "Actualiza el historial de navegación al abrir un tiddler" + }, + "$:/language/ControlPanel/Settings/NavigationHistory/No/Description": { + "title": "$:/language/ControlPanel/Settings/NavigationHistory/No/Description", + "text": "No actualizar el historial" + }, + "$:/language/ControlPanel/Settings/NavigationHistory/Yes/Description": { + "title": "$:/language/ControlPanel/Settings/NavigationHistory/Yes/Description", + "text": "Actualizar el historial" + }, + "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption": { + "title": "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Caption", + "text": "//Performance Instrumentation//" + }, + "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Description": { + "title": "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Description", + "text": "Activar //performance instrumentation//" + }, + "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Hint": { + "title": "$:/language/ControlPanel/Settings/PerformanceInstrumentation/Hint", + "text": "Muestra estadísticas de las prestaciones de la página en la consola de desarrollo <br>" + }, + "$:/language/ControlPanel/Settings/TitleLinks/Caption": { + "title": "$:/language/ControlPanel/Settings/TitleLinks/Caption", + "text": "Títulos de tiddler" + }, + "$:/language/ControlPanel/Settings/TitleLinks/Hint": { + "title": "$:/language/ControlPanel/Settings/TitleLinks/Hint", + "text": "Los títulos de los tiddlers se mostrarán y se comportarán como enlaces" + }, + "$:/language/ControlPanel/Settings/TitleLinks/No/Description": { + "title": "$:/language/ControlPanel/Settings/TitleLinks/No/Description", + "text": "No mostrar como enlaces" + }, + "$:/language/ControlPanel/Settings/TitleLinks/Yes/Description": { + "title": "$:/language/ControlPanel/Settings/TitleLinks/Yes/Description", + "text": "Mostrar como enlaces" + }, + "$:/language/ControlPanel/Settings/ToolbarButtons/Caption": { + "title": "$:/language/ControlPanel/Settings/ToolbarButtons/Caption", + "text": "Botones de la barra de herramientas" + }, + "$:/language/ControlPanel/Settings/ToolbarButtons/Hint": { + "title": "$:/language/ControlPanel/Settings/ToolbarButtons/Hint", + "text": "Aspecto por defecto de los botones de la barra de herramientas" + }, + "$:/language/ControlPanel/Settings/ToolbarButtons/Icons/Description": { + "title": "$:/language/ControlPanel/Settings/ToolbarButtons/Icons/Description", + "text": "Mostrar icono" + }, + "$:/language/ControlPanel/Settings/ToolbarButtons/Text/Description": { + "title": "$:/language/ControlPanel/Settings/ToolbarButtons/Text/Description", + "text": "Mostrar texto" + }, + "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption": { + "title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Caption", + "text": "Estilo de botón" + }, + "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Hint": { + "title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Hint", + "text": "Selecciona el estilo de los botones de la barra de herramientas" + }, + "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless": { + "title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Borderless", + "text": "Sin borde" + }, + "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed": { + "title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Boxed", + "text": "Cuadrado" + }, + "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded": { + "title": "$:/language/ControlPanel/Settings/ToolbarButtonStyle/Styles/Rounded", + "text": "Redondo" + }, + "$:/language/ControlPanel/StoryView/Caption": { + "title": "$:/language/ControlPanel/StoryView/Caption", + "text": "Vista" + }, + "$:/language/ControlPanel/StoryView/Prompt": { + "title": "$:/language/ControlPanel/StoryView/Prompt", + "text": "Vista actual" + }, + "$:/language/ControlPanel/Theme/Caption": { + "title": "$:/language/ControlPanel/Theme/Caption", + "text": "Tema" + }, + "$:/language/ControlPanel/Theme/Prompt": { + "title": "$:/language/ControlPanel/Theme/Prompt", + "text": "Tema actual" + }, + "$:/language/ControlPanel/TiddlerFields/Caption": { + "title": "$:/language/ControlPanel/TiddlerFields/Caption", + "text": "Campos de tiddler" + }, + "$:/language/ControlPanel/TiddlerFields/Hint": { + "title": "$:/language/ControlPanel/TiddlerFields/Hint", + "text": "Esta es la colección completa de campos de tiddler (TiddlerFields) actualmente en uso en este wiki, que incluye los tiddlers de sistema, pero no los ocultos" + }, + "$:/language/ControlPanel/Toolbars/Caption": { + "title": "$:/language/ControlPanel/Toolbars/Caption", + "text": "Barras de herramientas" + }, + "$:/language/ControlPanel/Toolbars/EditToolbar/Caption": { + "title": "$:/language/ControlPanel/Toolbars/EditToolbar/Caption", + "text": "Barra de edición" + }, + "$:/language/ControlPanel/Toolbars/EditToolbar/Hint": { + "title": "$:/language/ControlPanel/Toolbars/EditToolbar/Hint", + "text": "Selecciona qué botones mostrar en modo de edición" + }, + "$:/language/ControlPanel/Toolbars/Hint": { + "title": "$:/language/ControlPanel/Toolbars/Hint", + "text": "Selecciona qué botones mostrar en las diferentes barras de herramientas" + }, + "$:/language/ControlPanel/Toolbars/PageControls/Caption": { + "title": "$:/language/ControlPanel/Toolbars/PageControls/Caption", + "text": "Barra de página" + }, + "$:/language/ControlPanel/Toolbars/PageControls/Hint": { + "title": "$:/language/ControlPanel/Toolbars/PageControls/Hint", + "text": "Selecciona qué botones mostrar en la barra de página" + }, + "$:/language/ControlPanel/Toolbars/ViewToolbar/Caption": { + "title": "$:/language/ControlPanel/Toolbars/ViewToolbar/Caption", + "text": "Barra de visualización" + }, + "$:/language/ControlPanel/Toolbars/ViewToolbar/Hint": { + "title": "$:/language/ControlPanel/Toolbars/ViewToolbar/Hint", + "text": "Selecciona qué botones mostrar en modo de visualización" + }, + "$:/language/ControlPanel/Tools/Download/Full/Caption": { + "title": "$:/language/ControlPanel/Tools/Download/Full/Caption", + "text": "Descargar el wiki completo" + }, + "$:/core/readme": { + "title": "$:/core/readme", + "text": "Este plugin contiene componentes del núcleo de TiddlyWiki que incluyen:\n\n* Módulos de código JavaScript\n* Iconos\n* Plantillas necesarias para crear la interfaz de usuario de TiddlyWiki\n* Traducciones al castellano (ES-es) de las cadenas localizables usadas por el núcleo\n" + }, + "$:/language/Date/DaySuffix/1": { + "title": "$:/language/Date/DaySuffix/1", + "text": "º" + }, + "$:/language/Date/DaySuffix/10": { + "title": "$:/language/Date/DaySuffix/10", + "text": "" + }, + "$:/language/Date/DaySuffix/11": { + "title": "$:/language/Date/DaySuffix/11", + "text": "" + }, + "$:/language/Date/DaySuffix/12": { + "title": "$:/language/Date/DaySuffix/12", + "text": "" + }, + "$:/language/Date/DaySuffix/13": { + "title": "$:/language/Date/DaySuffix/13", + "text": "" + }, + "$:/language/Date/DaySuffix/14": { + "title": "$:/language/Date/DaySuffix/14", + "text": "" + }, + "$:/language/Date/DaySuffix/15": { + "title": "$:/language/Date/DaySuffix/15", + "text": "" + }, + "$:/language/Date/DaySuffix/16": { + "title": "$:/language/Date/DaySuffix/16", + "text": "" + }, + "$:/language/Date/DaySuffix/17": { + "title": "$:/language/Date/DaySuffix/17", + "text": "" + }, + "$:/language/Date/DaySuffix/18": { + "title": "$:/language/Date/DaySuffix/18", + "text": "" + }, + "$:/language/Date/DaySuffix/19": { + "title": "$:/language/Date/DaySuffix/19", + "text": "" + }, + "$:/language/Date/DaySuffix/2": { + "title": "$:/language/Date/DaySuffix/2", + "text": "" + }, + "$:/language/Date/DaySuffix/20": { + "title": "$:/language/Date/DaySuffix/20", + "text": "" + }, + "$:/language/Date/DaySuffix/21": { + "title": "$:/language/Date/DaySuffix/21", + "text": "" + }, + "$:/language/Date/DaySuffix/22": { + "title": "$:/language/Date/DaySuffix/22", + "text": "" + }, + "$:/language/Date/DaySuffix/23": { + "title": "$:/language/Date/DaySuffix/23", + "text": "" + }, + "$:/language/Date/DaySuffix/24": { + "title": "$:/language/Date/DaySuffix/24", + "text": "" + }, + "$:/language/Date/DaySuffix/25": { + "title": "$:/language/Date/DaySuffix/25", + "text": "" + }, + "$:/language/Date/DaySuffix/26": { + "title": "$:/language/Date/DaySuffix/26", + "text": "" + }, + "$:/language/Date/DaySuffix/27": { + "title": "$:/language/Date/DaySuffix/27", + "text": "" + }, + "$:/language/Date/DaySuffix/28": { + "title": "$:/language/Date/DaySuffix/28", + "text": "" + }, + "$:/language/Date/DaySuffix/29": { + "title": "$:/language/Date/DaySuffix/29", + "text": "" + }, + "$:/language/Date/DaySuffix/3": { + "title": "$:/language/Date/DaySuffix/3", + "text": "" + }, + "$:/language/Date/DaySuffix/30": { + "title": "$:/language/Date/DaySuffix/30", + "text": "" + }, + "$:/language/Date/DaySuffix/31": { + "title": "$:/language/Date/DaySuffix/31", + "text": "" + }, + "$:/language/Date/DaySuffix/4": { + "title": "$:/language/Date/DaySuffix/4", + "text": "" + }, + "$:/language/Date/DaySuffix/5": { + "title": "$:/language/Date/DaySuffix/5", + "text": "" + }, + "$:/language/Date/DaySuffix/6": { + "title": "$:/language/Date/DaySuffix/6", + "text": "" + }, + "$:/language/Date/DaySuffix/7": { + "title": "$:/language/Date/DaySuffix/7", + "text": "" + }, + "$:/language/Date/DaySuffix/8": { + "title": "$:/language/Date/DaySuffix/8", + "text": "" + }, + "$:/language/Date/DaySuffix/9": { + "title": "$:/language/Date/DaySuffix/9", + "text": "" + }, + "$:/language/Date/Long/Day/0": { + "title": "$:/language/Date/Long/Day/0", + "text": "domingo" + }, + "$:/language/Date/Long/Day/1": { + "title": "$:/language/Date/Long/Day/1", + "text": "lunes" + }, + "$:/language/Date/Long/Day/2": { + "title": "$:/language/Date/Long/Day/2", + "text": "martes" + }, + "$:/language/Date/Long/Day/3": { + "title": "$:/language/Date/Long/Day/3", + "text": "miércoles" + }, + "$:/language/Date/Long/Day/4": { + "title": "$:/language/Date/Long/Day/4", + "text": "jueves" + }, + "$:/language/Date/Long/Day/5": { + "title": "$:/language/Date/Long/Day/5", + "text": "viernes" + }, + "$:/language/Date/Long/Day/6": { + "title": "$:/language/Date/Long/Day/6", + "text": "sábado" + }, + "$:/language/Date/Long/Month/1": { + "title": "$:/language/Date/Long/Month/1", + "text": "enero" + }, + "$:/language/Date/Long/Month/10": { + "title": "$:/language/Date/Long/Month/10", + "text": "octubre" + }, + "$:/language/Date/Long/Month/11": { + "title": "$:/language/Date/Long/Month/11", + "text": "noviembre" + }, + "$:/language/Date/Long/Month/12": { + "title": "$:/language/Date/Long/Month/12", + "text": "diciembre" + }, + "$:/language/Date/Long/Month/2": { + "title": "$:/language/Date/Long/Month/2", + "text": "febrero" + }, + "$:/language/Date/Long/Month/3": { + "title": "$:/language/Date/Long/Month/3", + "text": "marzo" + }, + "$:/language/Date/Long/Month/4": { + "title": "$:/language/Date/Long/Month/4", + "text": "abril" + }, + "$:/language/Date/Long/Month/5": { + "title": "$:/language/Date/Long/Month/5", + "text": "mayo" + }, + "$:/language/Date/Long/Month/6": { + "title": "$:/language/Date/Long/Month/6", + "text": "junio" + }, + "$:/language/Date/Long/Month/7": { + "title": "$:/language/Date/Long/Month/7", + "text": "julio" + }, + "$:/language/Date/Long/Month/8": { + "title": "$:/language/Date/Long/Month/8", + "text": "agosto" + }, + "$:/language/Date/Long/Month/9": { + "title": "$:/language/Date/Long/Month/9", + "text": "septiembre" + }, + "$:/language/Date/Short/Day/0": { + "title": "$:/language/Date/Short/Day/0", + "text": "Do" + }, + "$:/language/Date/Short/Day/1": { + "title": "$:/language/Date/Short/Day/1", + "text": "Lu" + }, + "$:/language/Date/Short/Day/2": { + "title": "$:/language/Date/Short/Day/2", + "text": "Ma" + }, + "$:/language/Date/Short/Day/3": { + "title": "$:/language/Date/Short/Day/3", + "text": "Mi" + }, + "$:/language/Date/Short/Day/4": { + "title": "$:/language/Date/Short/Day/4", + "text": "Ju" + }, + "$:/language/Date/Short/Day/5": { + "title": "$:/language/Date/Short/Day/5", + "text": "Vi" + }, + "$:/language/Date/Short/Day/6": { + "title": "$:/language/Date/Short/Day/6", + "text": "Sá" + }, + "$:/language/Date/Short/Month/1": { + "title": "$:/language/Date/Short/Month/1", + "text": "Ene" + }, + "$:/language/Date/Short/Month/12": { + "title": "$:/language/Date/Short/Month/12", + "text": "Dic" + }, + "$:/language/Date/Short/Month/4": { + "title": "$:/language/Date/Short/Month/4", + "text": "Abr" + }, + "$:/language/Date/Short/Month/8": { + "title": "$:/language/Date/Short/Month/8", + "text": "Ago" + }, + "$:/language/RelativeDate/Future/Days": { + "title": "$:/language/RelativeDate/Future/Days", + "text": "dentro de <<period>> días" + }, + "$:/language/RelativeDate/Future/Hours": { + "title": "$:/language/RelativeDate/Future/Hours", + "text": "en <<period>> horas" + }, + "$:/language/RelativeDate/Future/Minutes": { + "title": "$:/language/RelativeDate/Future/Minutes", + "text": "en <<period>> minutos" + }, + "$:/language/RelativeDate/Future/Months": { + "title": "$:/language/RelativeDate/Future/Months", + "text": "dentro de <<period>> meses" + }, + "$:/language/RelativeDate/Future/Second": { + "title": "$:/language/RelativeDate/Future/Second", + "text": "en 1 segundo" + }, + "$:/language/RelativeDate/Future/Seconds": { + "title": "$:/language/RelativeDate/Future/Seconds", + "text": "en <<period>> segundos" + }, + "$:/language/RelativeDate/Future/Years": { + "title": "$:/language/RelativeDate/Future/Years", + "text": "dentro de <<period>> años" + }, + "$:/language/RelativeDate/Past/Days": { + "title": "$:/language/RelativeDate/Past/Days", + "text": "hace <<period>> días" + }, + "$:/language/RelativeDate/Past/Hours": { + "title": "$:/language/RelativeDate/Past/Hours", + "text": "hace <<period>> horas" + }, + "$:/language/RelativeDate/Past/Minutes": { + "title": "$:/language/RelativeDate/Past/Minutes", + "text": "hace <<period>> minutos" + }, + "$:/language/RelativeDate/Past/Months": { + "title": "$:/language/RelativeDate/Past/Months", + "text": "hace <<period>> meses" + }, + "$:/language/RelativeDate/Past/Second": { + "title": "$:/language/RelativeDate/Past/Second", + "text": "hace 1 segundo" + }, + "$:/language/RelativeDate/Past/Seconds": { + "title": "$:/language/RelativeDate/Past/Seconds", + "text": "hace <<period>> segundos" + }, + "$:/language/RelativeDate/Past/Years": { + "title": "$:/language/RelativeDate/Past/Years", + "text": "hace <<period>> años" + }, + "$:/language/Docs/ModuleTypes/animation": { + "title": "$:/language/Docs/ModuleTypes/animation", + "text": "Animaciones que pueden usarse con RevealWidget" + }, + "$:/language/Docs/ModuleTypes/command": { + "title": "$:/language/Docs/ModuleTypes/command", + "text": "Comandos que pueden ejecutarse en Node.js" + }, + "$:/language/Docs/ModuleTypes/config": { + "title": "$:/language/Docs/ModuleTypes/config", + "text": "Datos para insertar en `$tw.config`" + }, + "$:/language/Docs/ModuleTypes/filteroperator": { + "title": "$:/language/Docs/ModuleTypes/filteroperator", + "text": "Operadores individuales de filtrado" + }, + "$:/language/Docs/ModuleTypes/global": { + "title": "$:/language/Docs/ModuleTypes/global", + "text": "Datos globales para insertar en `$tw`" + }, + "$:/language/Docs/ModuleTypes/isfilteroperator": { + "title": "$:/language/Docs/ModuleTypes/isfilteroperator", + "text": "Operandos para el operador ''is''" + }, + "$:/language/Docs/ModuleTypes/macro": { + "title": "$:/language/Docs/ModuleTypes/macro", + "text": "Definiciones macro de JavaScript." + }, + "$:/language/Docs/ModuleTypes/parser": { + "title": "$:/language/Docs/ModuleTypes/parser", + "text": "Reglas sintácticas para diversos tipos de contenido." + }, + "$:/language/Docs/ModuleTypes/saver": { + "title": "$:/language/Docs/ModuleTypes/saver", + "text": "Guarda archivos desde el navegador con diferentes métodos." + }, + "$:/language/Docs/ModuleTypes/startup": { + "title": "$:/language/Docs/ModuleTypes/startup", + "text": "Funciones de inicio" + }, + "$:/language/Docs/ModuleTypes/storyview": { + "title": "$:/language/Docs/ModuleTypes/storyview", + "text": "Personaliza la animación y comportamiento de listas" + }, + "$:/language/Docs/ModuleTypes/tiddlerdeserializer": { + "title": "$:/language/Docs/ModuleTypes/tiddlerdeserializer", + "text": "Convierte diferentes tipos de contenido en tiddlers" + }, + "$:/language/Docs/ModuleTypes/tiddlerfield": { + "title": "$:/language/Docs/ModuleTypes/tiddlerfield", + "text": "Define el comportamiento de un campo individual" + }, + "$:/language/Docs/ModuleTypes/tiddlermethod": { + "title": "$:/language/Docs/ModuleTypes/tiddlermethod", + "text": "Añade métodos al prototipo `$tw.Tiddler`" + }, + "$:/language/Docs/ModuleTypes/upgrader": { + "title": "$:/language/Docs/ModuleTypes/upgrader", + "text": "Aplica la actualización a los tiddlers durante el proceso de actualización/importación." + }, + "$:/language/Docs/ModuleTypes/utils": { + "title": "$:/language/Docs/ModuleTypes/utils", + "text": "Añade métodos a `$tw.utils`" + }, + "$:/language/Docs/ModuleTypes/utils-node": { + "title": "$:/language/Docs/ModuleTypes/utils-node", + "text": "Añade métodos específicos de Node.js a `$tw.utils`" + }, + "$:/language/Docs/ModuleTypes/widget": { + "title": "$:/language/Docs/ModuleTypes/widget", + "text": "Encapsula la representación y recarga de ''DOM''" + }, + "$:/language/Docs/ModuleTypes/wikimethod": { + "title": "$:/language/Docs/ModuleTypes/wikimethod", + "text": "Añade métodos a `$tw.Wiki`" + }, + "$:/language/Docs/ModuleTypes/wikirule": { + "title": "$:/language/Docs/ModuleTypes/wikirule", + "text": "Reglas individuales del intérprete principal de WikiText" + }, + "$:/language/EditTemplate/Body/External/Hint": { + "title": "$:/language/EditTemplate/Body/External/Hint", + "text": "Este es un tiddler externo, es decir, guardado fuera del archivo TiddlyWiki principal <br>" + }, + "$:/language/EditTemplate/Body/Placeholder": { + "title": "$:/language/EditTemplate/Body/Placeholder", + "text": "Escribe el texto aquí" + }, + "$:/language/EditTemplate/Body/Preview/Type/Output": { + "title": "$:/language/EditTemplate/Body/Preview/Type/Output", + "text": "Output" + }, + "$:/language/EditTemplate/Field/Remove/Caption": { + "title": "$:/language/EditTemplate/Field/Remove/Caption", + "text": "Eliminar campo" + }, + "$:/language/EditTemplate/Field/Remove/Hint": { + "title": "$:/language/EditTemplate/Field/Remove/Hint", + "text": "Elimina el campo y su valor" + }, + "$:/language/EditTemplate/Fields/Add/Button": { + "title": "$:/language/EditTemplate/Fields/Add/Button", + "text": "Añadir campo" + }, + "$:/language/EditTemplate/Fields/Add/Dropdown/System": { + "title": "$:/language/EditTemplate/Fields/Add/Dropdown/System", + "text": "Campos de sistema" + }, + "$:/language/EditTemplate/Fields/Add/Dropdown/User": { + "title": "$:/language/EditTemplate/Fields/Add/Dropdown/User", + "text": "Campos de usuario" + }, + "$:/language/EditTemplate/Fields/Add/Name/Placeholder": { + "title": "$:/language/EditTemplate/Fields/Add/Name/Placeholder", + "text": "Nombre" + }, + "$:/language/EditTemplate/Fields/Add/Prompt": { + "title": "$:/language/EditTemplate/Fields/Add/Prompt", + "text": "Añadir" + }, + "$:/language/EditTemplate/Fields/Add/Value/Placeholder": { + "title": "$:/language/EditTemplate/Fields/Add/Value/Placeholder", + "text": "Valor" + }, + "$:/language/EditTemplate/Shadow/OverriddenWarning": { + "title": "$:/language/EditTemplate/Shadow/OverriddenWarning", + "text": "Este es un tiddler oculto modificado<br>" + }, + "$:/language/EditTemplate/Shadow/Warning": { + "title": "$:/language/EditTemplate/Shadow/Warning", + "text": "Este es un tiddler oculto<br>" + }, + "$:/language/EditTemplate/Tags/Add/Button": { + "title": "$:/language/EditTemplate/Tags/Add/Button", + "text": "Añadir" + }, + "$:/language/EditTemplate/Tags/Add/Placeholder": { + "title": "$:/language/EditTemplate/Tags/Add/Placeholder", + "text": "Nombre" + }, + "$:/language/EditTemplate/Tags/Dropdown/Caption": { + "title": "$:/language/EditTemplate/Tags/Dropdown/Caption", + "text": "Etiquetas" + }, + "$:/language/EditTemplate/Tags/Dropdown/Hint": { + "title": "$:/language/EditTemplate/Tags/Dropdown/Hint", + "text": "Muestra la lista de etiquetas existentes" + }, + "$:/language/EditTemplate/Type/Delete/Caption": { + "title": "$:/language/EditTemplate/Type/Delete/Caption", + "text": "Borrar" + }, + "$:/language/EditTemplate/Type/Delete/Hint": { + "title": "$:/language/EditTemplate/Type/Delete/Hint", + "text": "Borra el tipo de contenido" + }, + "$:/language/EditTemplate/Type/Dropdown/Caption": { + "title": "$:/language/EditTemplate/Type/Dropdown/Caption", + "text": "Tipos de contenido" + }, + "$:/language/EditTemplate/Type/Dropdown/Hint": { + "title": "$:/language/EditTemplate/Type/Dropdown/Hint", + "text": "Muestra la lista de tipos disponibles" + }, + "$:/language/EditTemplate/Type/Placeholder": { + "title": "$:/language/EditTemplate/Type/Placeholder", + "text": "Nuevo tipo" + }, + "$:/language/EditTemplate/Type/Prompt": { + "title": "$:/language/EditTemplate/Type/Prompt", + "text": "Tipo:" + }, + "$:/language/Exporters/CsvFile": { + "title": "$:/language/Exporters/CsvFile", + "text": "Archivo de tipo .CSV" + }, + "$:/language/Exporters/JsonFile": { + "title": "$:/language/Exporters/JsonFile", + "text": "Archivo de tipo .JSON" + }, + "$:/language/Exporters/StaticRiver": { + "title": "$:/language/Exporters/StaticRiver", + "text": "Cadena de tiddlers como .HTML estático" + }, + "$:/language/Exporters/TidFile": { + "title": "$:/language/Exporters/TidFile", + "text": "Tiddler individual como archivo \".tid\"" + }, + "$:/language/Docs/Fields/_canonical_uri": { + "title": "$:/language/Docs/Fields/_canonical_uri", + "text": "Dirección (URI) completa -absoluta o relativa- de un tiddler externo de imagen" + }, + "$:/language/Docs/Fields/bag": { + "title": "$:/language/Docs/Fields/bag", + "text": "Nombre de la bolsa de la que procede un tiddler" + }, + "$:/language/Docs/Fields/caption": { + "title": "$:/language/Docs/Fields/caption", + "text": "Texto que se muestra en una pestaña o botón, con independencia del título del tiddler que lo define" + }, + "$:/language/Docs/Fields/color": { + "title": "$:/language/Docs/Fields/color", + "text": "Valor CSS del color de fondo asociado a un tiddler" + }, + "$:/language/Docs/Fields/component": { + "title": "$:/language/Docs/Fields/component", + "text": "Nombre del componente responsable de un [[tiddler de alerta|AlertMechanism]]" + }, + "$:/language/Docs/Fields/created": { + "title": "$:/language/Docs/Fields/created", + "text": "Fecha de creación del tiddler" + }, + "$:/language/Docs/Fields/creator": { + "title": "$:/language/Docs/Fields/creator", + "text": "Nombre del autor del tiddler" + }, + "$:/language/Docs/Fields/current-tiddler": { + "title": "$:/language/Docs/Fields/current-tiddler", + "text": "Usado para incluir el tiddler superior en una [[historia|HistoryMechanism]]" + }, + "$:/language/Docs/Fields/dependents": { + "title": "$:/language/Docs/Fields/dependents", + "text": "En un complemento o extensión, lista de sus dependencias" + }, + "$:/language/Docs/Fields/description": { + "title": "$:/language/Docs/Fields/description", + "text": "Descripción de un complemento, extensión, o diálogo modal" + }, + "$:/language/Docs/Fields/draft.of": { + "title": "$:/language/Docs/Fields/draft.of", + "text": "Título del tiddler del que el actual es borrador" + }, + "$:/language/Docs/Fields/draft.title": { + "title": "$:/language/Docs/Fields/draft.title", + "text": "Nuevo título propuesto para el presente borrador" + }, + "$:/language/Docs/Fields/footer": { + "title": "$:/language/Docs/Fields/footer", + "text": "Texto al pie que figurará en un asistente" + }, + "$:/language/Docs/Fields/icon": { + "title": "$:/language/Docs/Fields/icon", + "text": "Nombre del tiddler que contiene el icono que se quiere asociar al presente tiddler" + }, + "$:/language/Docs/Fields/library": { + "title": "$:/language/Docs/Fields/library", + "text": "Si su valor es \"Sí\", indica que el tiddler debe guardarse como librería de JavaScript" + }, + "$:/language/Docs/Fields/list": { + "title": "$:/language/Docs/Fields/list", + "text": "Lista ordenada de tiddlers asociados al presente tiddler" + }, + "$:/language/Docs/Fields/list-after": { + "title": "$:/language/Docs/Fields/list-after", + "text": "Título del tiddler tras el que el presente será añadido a una lista de tiddlers." + }, + "$:/language/Docs/Fields/list-before": { + "title": "$:/language/Docs/Fields/list-before", + "text": "Título del tiddler antes del que el presente será añadido a una lista<br>" + }, + "$:/language/Docs/Fields/modified": { + "title": "$:/language/Docs/Fields/modified", + "text": "Fecha y hora de última modificación" + }, + "$:/language/Docs/Fields/modifier": { + "title": "$:/language/Docs/Fields/modifier", + "text": "Nombre del tiddler asociado con quien modificó por última vez el presente tiddler" + }, + "$:/language/Docs/Fields/name": { + "title": "$:/language/Docs/Fields/name", + "text": "Nombre asociado con un complemento o extensión" + }, + "$:/language/Docs/Fields/plugin-priority": { + "title": "$:/language/Docs/Fields/plugin-priority", + "text": "Valor numérico que indica la prioridad de un complemento o extensión" + }, + "$:/language/Docs/Fields/plugin-type": { + "title": "$:/language/Docs/Fields/plugin-type", + "text": "Tipo de complemento o extensión" + }, + "$:/language/Docs/Fields/released": { + "title": "$:/language/Docs/Fields/released", + "text": "Fecha de la edición de TiddlyWiki" + }, + "$:/language/Docs/Fields/revision": { + "title": "$:/language/Docs/Fields/revision", + "text": "Revisión del tiddler existente en el servidor" + }, + "$:/language/Docs/Fields/source": { + "title": "$:/language/Docs/Fields/source", + "text": "Dirección de la fuente asociada a un tiddler" + }, + "$:/language/Docs/Fields/subtitle": { + "title": "$:/language/Docs/Fields/subtitle", + "text": "Subtítulo que figurará en un asistente" + }, + "$:/language/Docs/Fields/tags": { + "title": "$:/language/Docs/Fields/tags", + "text": "Lista de etiquetas asignadas al tiddler" + }, + "$:/language/Docs/Fields/text": { + "title": "$:/language/Docs/Fields/text", + "text": "Texto principal de un tiddler" + }, + "$:/language/Docs/Fields/title": { + "title": "$:/language/Docs/Fields/title", + "text": "Nombre único de un tiddler" + }, + "$:/language/Docs/Fields/type": { + "title": "$:/language/Docs/Fields/type", + "text": "Tipo de contenido en un tiddler" + }, + "$:/language/Docs/Fields/version": { + "title": "$:/language/Docs/Fields/version", + "text": "Versión de un complemento o extensión" + }, + "$:/language/Filters/AllTags": { + "title": "$:/language/Filters/AllTags", + "text": "Todas las etiquetas, excepto las de sistema" + }, + "$:/language/Filters/AllTiddlers": { + "title": "$:/language/Filters/AllTiddlers", + "text": "Todos los tiddlers, excepto los de sistema" + }, + "$:/language/Filters/Drafts": { + "title": "$:/language/Filters/Drafts", + "text": "Borradores" + }, + "$:/language/Filters/Missing": { + "title": "$:/language/Filters/Missing", + "text": "Tiddlers vacíos" + }, + "$:/language/Filters/Orphans": { + "title": "$:/language/Filters/Orphans", + "text": "Tiddlers huérfanos" + }, + "$:/language/Filters/OverriddenShadowTiddlers": { + "title": "$:/language/Filters/OverriddenShadowTiddlers", + "text": "Tiddlers ocultos anulados" + }, + "$:/language/Filters/RecentSystemTiddlers": { + "title": "$:/language/Filters/RecentSystemTiddlers", + "text": "Tiddlers recientemente modificados, incluidos los de sistema" + }, + "$:/language/Filters/RecentTiddlers": { + "title": "$:/language/Filters/RecentTiddlers", + "text": "Tiddlers recientemente modificados" + }, + "$:/language/Filters/ShadowTiddlers": { + "title": "$:/language/Filters/ShadowTiddlers", + "text": "Tiddlers ocultos" + }, + "$:/language/Filters/SystemTags": { + "title": "$:/language/Filters/SystemTags", + "text": "Etiquetas de sistema" + }, + "$:/language/Filters/SystemTiddlers": { + "title": "$:/language/Filters/SystemTiddlers", + "text": "Tiddlers de sistema" + }, + "$:/language/Filters/TypedTiddlers": { + "title": "$:/language/Filters/TypedTiddlers", + "text": "Tiddlers que no sonWikiText" + }, + "GettingStarted": { + "title": "GettingStarted", + "text": "\\define lingo-base() $:/language/ControlPanel/Basics/\nBienvenido a TiddlyWiki y a su comunidad de usuarios\n\nAntes de guardar información importante en TiddlyWiki, es preciso que te asegures de poder hacerlo de manera fiable\n\nVisita https://tiddlywiki.com/#GettingStarted para más información (en inglés)\n!! Configura este ~TiddlyWiki\n\n<div class=\"tc-control-panel\">\n\n|<$link to=\"$:/SiteTitle\"><<lingo Title/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteTitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/SiteSubtitle\"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler=\"$:/SiteSubtitle\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/DefaultTiddlers\"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit tag=\"textarea\" tiddler=\"$:/DefaultTiddlers\"/><br>//<<lingo DefaultTiddlers/BottomHint>>// |\n</div>\n\nConsulta más opciones en el [[panel de control|$:/ControlPanel]]\n" + }, + "$:/language/Help/build": { + "title": "$:/language/Help/build", + "description": "Ejecuta automáticamente los comandos configurados", + "text": "Compila los targets que se especifican.<br>\nSi no se especifica ninguno, se incluirán todos los disponibles\n\n```\n--build <target> [<target> ...]\n```\n\nLos targets se definen en el archivo `tiddlywiki.info`\n\n" + }, + "$:/language/Help/clearpassword": { + "title": "$:/language/Help/clearpassword", + "description": "Anula la contraseña de las operaciones de cifrado subsiguientes", + "text": "Revoca la contraseña de las operaciones subsiguientes de cifrado\n```\n--clearpassword\n```\n" + }, + "$:/language/Help/default": { + "title": "$:/language/Help/default", + "description": "", + "text": "\\define commandTitle()\n$:/language/Help/$(command)$\n\\end\n```\nUso: tiddlywiki [<wikifolder>] [--<command> [<args>...]...]\n```\n\nComandos disponibles:\n\n<ul>\n<$list filter=\"[commands[]sort[title]]\" variable=\"command\">\n<li><$link to=<<commandTitle>>><$macrocall $name=\"command\" $type=\"text/plain\" $output=\"text/plain\"/></$link>: <$transclude tiddler=<<commandTitle>> field=\"description\"/></li>\n</$list>\n</ul>\n\nPara obtener ayuda sobre un comando en particular:\n\n```\ntiddlywiki --help <command>\n```\n" + }, + "$:/language/Help/editions": { + "title": "$:/language/Help/editions", + "description": "Devuelve una lista de ediciones disponibles de TiddlyWiki", + "text": "Lista y descripción de las ediciones disponibles.<br>\nPuedes crear una edición específica con el comando `--init`.\n\n```\n--editions\n```\n" + }, + "$:/language/Help/help": { + "title": "$:/language/Help/help", + "description": "Muestra texto de ayuda para comandos de TiddlyWiki", + "text": "Muestra ayuda para un comando:\n\n```\n--help [<command>]\n```\n\nSi se omite el comando, se muestra una lista de comandos disponibles\n" + }, + "$:/language/Help/init": { + "title": "$:/language/Help/init", + "description": "Inicializa un nuevo WikiFolder", + "text": "Inicializa una [[WikiFolder|WikiFolders]] con una copia en blanco de la edición especificada.\n\n```\n--init <edition> [<edition> ...]\n```\n\nPor ejemplo:\n\n```\ntiddlywiki ./MyWikiFolder --init empty\n```\n\nNota:\n\n* Se creará un directorio para el wiki si es necesario\n\n* La edición por defecto es ''empty''\n\n* El comando `--init` fallará si el directorio no está vacío\n\n* El comando `--init` elimina toda definición de `includeWikis` contenida en el archivo `tiddlywiki.info`\n\n* Cuando se indican varias ediciones para su inicialización, las ediciones //planchan// sucesivamente todo archivo compartido, de modo que el \narchivo `tiddlywiki.info` final será el que corresponda a la última edición que se indique.\n\n* `--editions` muestra una lista de ediciones disponibles\n" + }, + "$:/language/Help/load": { + "title": "$:/language/Help/load", + "description": "Carga tiddlers desde un archivo", + "text": "Carga tiddlers de archivos de tipo TiddlyWiki 2.x.x.(`.html`), `.tiddler`, `.tid`, `.json` u otros\n\n```\n--load <filepath>\n```\n\nPara cargar tiddlers de un TiddlyWiki encriptado, primero debes especificar la contraseña con el comando PasswordCommand. Por ejemplo:\n\n```\ntiddlywiki ./MyWiki --password pa55w0rd --load my_encrypted_wiki.html\n```\n\nTen en cuenta que TiddlyWiki no carga complementos o extensiones anteriores a los ya cargados. \n" + }, + "$:/language/Help/makelibrary": { + "title": "$:/language/Help/makelibrary", + "description": "Compila la librería de plugins necesaria para actualizar TiddlyWiki", + "text": "\nConstruye el tiddler `$:/UpgradeLibrary`: librería de actualización\n \nLa librería de actualización tiene formato de plugin ordinario, de tipo `library`<br>\nContiene copia de cada uno de los plugins, temas y paquetes de idioma disponibles en el repositorio de TiddlyWiki5\n\nEste comando es, en principio, para uso interno del equipo de TiddlyWiki y sólo es de interés para aquellos usuarios que deseen compilar actualizaciones personalizadas\n\n```\n--makelibrary <title>\n```\n\nEl título por defecto del tiddler resultante es `$:/UpgradeLibrary`.\n" + }, + "$:/language/Help/notfound": { + "title": "$:/language/Help/notfound", + "description": "", + "text": "No existe tal elemento" + }, + "$:/language/Help/output": { + "title": "$:/language/Help/output", + "description": "Establece el directorio de salida para los comandos siguientes", + "text": "Establece el directorio de salida para los comandos que le siguen <br>\nEl directorio por defecto es el subdirectorio `output`, en el directorio del wiki\n\n```\n--output <pathname>\n```\n\nSi la ruta especificada es relativa, se interpreta como relativa al directorio actual de trabajo<br>\nPor ejemplo: `--output .` establece como directorio de salida el actual directorio de trabajo\n" + }, + "$:/language/Help/password": { + "title": "$:/language/Help/password", + "description": "Establece contraseña para operaciones de cifrado subsiguientes", + "text": "Establece contraseña para las operaciones subsiguientes de cifrado\n\n```\n--password <password>\n```\n\n" + }, + "$:/language/Help/rendertiddler": { + "title": "$:/language/Help/rendertiddler", + "description": "Genera un tiddler del ContentType que se especifique", + "text": "Genera un tiddler del ContentType que se especifique (por defecto `text/html`) y lo guarda con el nombre de archivo especificado\n\n```\n--rendertiddler <title> <filename> [<type>]\n```\n\nPor defecto, el nombre de archivo es relativo al subdirectorio `output` en el directorio del wiki<br>\nPuede usarse el comando `--output` para dirigir la salida a cualquier otro directorio\n\nLos directorios no existentes en la ruta del nombre de archivo se crean automáticamente.\n" + }, + "$:/language/Help/rendertiddlers": { + "title": "$:/language/Help/rendertiddlers", + "description": "Genera tiddlers coincidentes con un determinado ContentType", + "text": "Genera un conjunto de tiddlers de un determinado ContentType (por defecto `text/html`) y extensión de archivo (por defecto, `.html`), coincidentes con el argumento de un filtro\n\n```\n--rendertiddlers <filter> <template> <pathname> [<type>] [<extension>]\n```\n\nPor ejemplo:\n\n```\n--rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html ./static text/plain\n```\n\nPor defecto, la ruta es relativa al subdirectorio `output` del directorio del wiki<br>\nPuede usarse con el comando `--output` para dirigir la salida a un directorio diferente\n\nCualquier archivo existente en el directorio de destino será borrado<br>\nLos directorios no existentes en la ruta del nombre de archivo se crean automáticamente.\n" + }, + "$:/language/Help/savetiddler": { + "title": "$:/language/Help/savetiddler", + "description": "Guarda un tiddler en un archivo", + "text": "Guarda un tiddler individual en formato binario o como texto plano con el nombre de archivo especificado.\n\n```\n--savetiddler <title> <filename>\n```\n\nPor defecto, la ruta es relativa al subdirectorio `output` del directorio del wiki<br>\nPuede usarse con el comando `--output` para dirigir la salida a un directorio diferente\n\nLos directorios no existentes en la ruta del nombre de archivo se crean automáticamente.\n" + }, + "$:/language/Help/savetiddlers": { + "title": "$:/language/Help/savetiddlers", + "description": "Guarda un grupo de tiddlers de formato plano en un directorio", + "text": "Guarda un grupo de tiddlers en formato binario o como texto plano en el directorio especificado.\n\n```\n--savetiddlers <filter> <pathname>\n```\n\nPor defecto, la ruta es relativa al subdirectorio `output` del directorio del wiki<br>\nPuede usarse con el comando `--output` para dirigir la salida a un directorio diferente\n\nLos directorios no existentes en la ruta del nombre de archivo se crean automáticamente.\n" + }, + "$:/language/Help/server": { + "title": "$:/language/Help/server", + "description": "Proporciona interfaz de servidor HTTP a TiddlyWiki", + "text": "El servidor compilado para TiddlyWiki5 es muy simple. Aunque es compatible con TiddlyWeb, no soporta muchas de las características necesarias para un uso robusto en Internet. \n\nEn la raíz, sirve un tiddler específico<br>\nFuera de la raíz, sirve tiddlers individuales codificados en JSON, y soporta operaciones básicas HTTP de `GET`, `PUT` y `DELETE`.\n\n```\n--server <port> <roottiddler> <rendertype> <servetype> <username> <password> <host> <pathprefix>\n```\n\nLos parámetros son\n\n* ''port'' - número de puerto desde el que sirve (por defecto, \"8080\")\n* ''roottiddler'' - tiddler que se sirve desde la raíz (por defecto, \"$:/core/save/all\")\n* ''rendertype'' - tipo de contenido con el que se genera el tiddler raíz (por defecto \"text/plain\")\n* ''servetype'' - tipo de contenido con el que se sirve el tiddler raíz (por defecto \"text/html\")\n* ''username'' - nombre de usuario por defecto que firma la edición\n* ''password'' - contraseña opcional para autenticación básica\n* ''host'' - nombre opcional del servidor desde el que se sirve (por defecto, \"127.0.0.1\" o \"localhost\")\n* ''pathprefix'' - prefijo opcional para rutas\n\nSi se ha definido contraseña, el navegador pedirá que se introduzca nombre y contraseña. <br>Nótese que la contraseña se transmite en modo texto por lo que esta implementación no es apropiada para uso general.\n\nPor ejemplo:\n\n```\n--server 8080 $:/core/save/all text/plain text/html MyUserName passw0rd\n```\n\nEl nombre de usuario y la contraseña pueden ser especificados como cadenas de símbolos vacías si se necesita configurar el nombre del servidor o prefijo de ruta y no se requiere contraseña:\n\n```\n--server 8080 $:/core/save/all text/plain text/html \"\" \"\" 192.168.0.245\n```\n\nPara ejecutar simultáneamente múltiples servidores TiddlyWiki, deberán configurarse cada uno en un puerto diferente\n" + }, + "$:/language/Help/setfield": { + "title": "$:/language/Help/setfield", + "description": "Prepara tiddlers externos para su uso", + "text": "//Téngase en cuenta que este comando es experimental y puede cambiar o ser reemplazado//\n\nConfigura el campo especificado de un grupo de tiddlers como resultado de una plantilla con la variable `currentTiddler`\n\n```\n--setfield <filter> <fieldname> <templatetitle> <rendertype>\n```\n\nSus parámetros son:\n\n* ''filter'' - filtro que identifica los tiddlers que se verán afectados\n* ''fieldname'' - el campo que será modificado (por defecto, \"text\")\n* ''templatetitle'' - el tiddler a ''wikify'' en el campo especificado. Si se deja en blanco o está ausente, el campo especificado es borrado. \n* ''rendertype'' - el tipo de texto a generar (por defecto, \"text/plain\"; se puede usar también \"text/html\" para incluir etiquetas HTML)\n" + }, + "$:/language/Help/unpackplugin": { + "title": "$:/language/Help/unpackplugin", + "description": "Desenpaqueta los tiddlers de carga de un plugin", + "text": "Extrae los tiddlers de un plugin y los presenta como tiddlers ordinarios\n\n```\n--unpackplugin <title>\n```\n" + }, + "$:/language/Help/verbose": { + "title": "$:/language/Help/verbose", + "description": "Activa el modo de salida como texto indefinido", + "text": "Genera texto aleatorio, útil para depurar errores\n\n```\n--verbose\n```\n" + }, + "$:/language/Help/version": { + "title": "$:/language/Help/version", + "description": "Muestra el número de versión de TiddlyWiki", + "text": "Muestra el número de versión de TiddlyWiki\n\n```\n--version\n```\n" + }, + "$:/language/Import/Imported/Hint": { + "title": "$:/language/Import/Imported/Hint", + "text": "Se importaron los siguientes tiddlers" + }, + "$:/language/Import/Listing/Cancel/Caption": { + "title": "$:/language/Import/Listing/Cancel/Caption", + "text": "Cancelar" + }, + "$:/language/Import/Listing/Hint": { + "title": "$:/language/Import/Listing/Hint", + "text": "Tiddlers listos para importar" + }, + "$:/language/Import/Listing/Import/Caption": { + "title": "$:/language/Import/Listing/Import/Caption", + "text": "Importar" + }, + "$:/language/Import/Listing/Select/Caption": { + "title": "$:/language/Import/Listing/Select/Caption", + "text": "Seleccionar" + }, + "$:/language/Import/Listing/Status/Caption": { + "title": "$:/language/Import/Listing/Status/Caption", + "text": "Estado" + }, + "$:/language/Import/Listing/Title/Caption": { + "title": "$:/language/Import/Listing/Title/Caption", + "text": "Título" + }, + "$:/language/Import/Upgrader/Plugins/Suppressed/Incompatible": { + "title": "$:/language/Import/Upgrader/Plugins/Suppressed/Incompatible", + "text": "Plugin bloqueado, incompatible u obsoleto" + }, + "$:/language/Import/Upgrader/Plugins/Suppressed/Version": { + "title": "$:/language/Import/Upgrader/Plugins/Suppressed/Version", + "text": "Plugin bloqueado debido a que <<incoming>> es más antiguo que el <<existing>>" + }, + "$:/language/Import/Upgrader/Plugins/Upgraded": { + "title": "$:/language/Import/Upgrader/Plugins/Upgraded", + "text": "Plugin actualizado de <<incoming>> a <<upgraded>>" + }, + "$:/language/Import/Upgrader/State/Suppressed": { + "title": "$:/language/Import/Upgrader/State/Suppressed", + "text": "Tiddler temporal bloqueado" + }, + "$:/language/Import/Upgrader/System/Suppressed": { + "title": "$:/language/Import/Upgrader/System/Suppressed", + "text": "Tiddler de sistema bloqueado" + }, + "$:/language/Import/Upgrader/ThemeTweaks/Created": { + "title": "$:/language/Import/Upgrader/ThemeTweaks/Created", + "text": "Ajuste de tema migrado de <$text text=<<from>>/>" + }, + "$:/language/AboveStory/ClassicPlugin/Warning": { + "title": "$:/language/AboveStory/ClassicPlugin/Warning", + "text": "Parece que quieres cargar un plugin diseñado para ~TiddlyWiki Classic. <br>" + }, + "$:/language/Ten en cuenta que [[estos plugins no funcionan en TiddlyWiki version 5.x.x|https": { + "title": "$:/language/Ten en cuenta que [[estos plugins no funcionan en TiddlyWiki version 5.x.x|https", + "text": "/tiddlywiki.com/#TiddlyWikiClassic]]<br>" + }, + "$:/language/BinaryWarning/Prompt": { + "title": "$:/language/BinaryWarning/Prompt", + "text": "Este tiddler contiene datos binarios" + }, + "$:/language/ClassicWarning/Hint": { + "title": "$:/language/ClassicWarning/Hint", + "text": "Este tiddler está escrito en formato de texto de una versión de TiddlyWiki Classic que no es totalmente compatible con la versión 5 de TiddlyWiki<br>" + }, + "$:/language/Visite https": { + "title": "$:/language/Visite https", + "text": "/tiddlywiki.com/static/Upgrading.html para más información" + }, + "$:/language/ClassicWarning/Upgrade/Caption": { + "title": "$:/language/ClassicWarning/Upgrade/Caption", + "text": "Actualizar" + }, + "$:/language/CloseAll/Button": { + "title": "$:/language/CloseAll/Button", + "text": "Cerrar todo" + }, + "$:/language/ColourPicker/Recent": { + "title": "$:/language/ColourPicker/Recent", + "text": "Recientes:" + }, + "$:/language/ConfirmCancelTiddler": { + "title": "$:/language/ConfirmCancelTiddler", + "text": "¿Deseas descartar los cambios efectuados en \"<$text text=<<title>>/>\"?" + }, + "$:/language/ConfirmDeleteTiddler": { + "title": "$:/language/ConfirmDeleteTiddler", + "text": "¿Deseas borrar \"<$text text=<<title>>/>\"?" + }, + "$:/language/ConfirmEditShadowTiddler": { + "title": "$:/language/ConfirmEditShadowTiddler", + "text": "Estás a punto de editar un tiddler oculto<br>" + }, + "$:/language/ConfirmOverwriteTiddler": { + "title": "$:/language/ConfirmOverwriteTiddler", + "text": "¿Deseas sobreescribir \"<$text text=<<title>>/>\"?" + }, + "$:/language/Count": { + "title": "$:/language/Count", + "text": "Número" + }, + "$:/language/DefaultNewTiddlerTitle": { + "title": "$:/language/DefaultNewTiddlerTitle", + "text": "Nuevo Tiddler" + }, + "$:/language/DropMessage": { + "title": "$:/language/DropMessage", + "text": "Suéltalo aquí o pulsa ''ESC'' para cancelar" + }, + "$:/language/Encryption/Cancel": { + "title": "$:/language/Encryption/Cancel", + "text": "Cancelar" + }, + "$:/language/Encryption/ConfirmClearPassword": { + "title": "$:/language/Encryption/ConfirmClearPassword", + "text": "¿Deseas borrar la contraseña? <br>" + }, + "$:/language/Encryption/Password": { + "title": "$:/language/Encryption/Password", + "text": "Contraseña" + }, + "$:/language/Encryption/PasswordNoMatch": { + "title": "$:/language/Encryption/PasswordNoMatch", + "text": "Las contraseñas no coinciden" + }, + "$:/language/Encryption/PromptSetPassword": { + "title": "$:/language/Encryption/PromptSetPassword", + "text": "Especifica nueva contraseña para este TiddlyWiki" + }, + "$:/language/Encryption/RepeatPassword": { + "title": "$:/language/Encryption/RepeatPassword", + "text": "Repite la contraseña" + }, + "$:/language/Encryption/SetPassword": { + "title": "$:/language/Encryption/SetPassword", + "text": "Establecer contraseña" + }, + "$:/language/Encryption/Username": { + "title": "$:/language/Encryption/Username", + "text": "Usuario" + }, + "$:/language/InternalJavaScriptError/Hint": { + "title": "$:/language/InternalJavaScriptError/Hint", + "text": "Tenemos un problema. Se recomienda que reinicies TiddlyWiki" + }, + "$:/language/InternalJavaScriptError/Title": { + "title": "$:/language/InternalJavaScriptError/Title", + "text": "Error interno de JavaScript" + }, + "$:/language/InvalidFieldName": { + "title": "$:/language/InvalidFieldName", + "text": "Caracteres ilegales en el campo \"<$text text=<<fieldName>>/>\"<br>" + }, + "$:/language/LazyLoadingWarning": { + "title": "$:/language/LazyLoadingWarning", + "text": "<p>Cargando texto externo desde ''<$text text={{!!_canonical_uri}}/>''</p><p>Si este mensaje no desaparece, puede que se deba a que estás usando un navegador que con esta configuración no permite texto externo</br>" + }, + "$:/language/Vea https": { + "title": "$:/language/Vea https", + "text": "/tiddlywiki.com/#ExternalText</p>" + }, + "$:/language/MissingTiddler/Hint": { + "title": "$:/language/MissingTiddler/Hint", + "text": "El tiddler \"<$text text=<<currentTiddler>>/>\" no existe - haz clic en {{||$:/core/ui/Buttons/edit}} para crearlo" + }, + "$:/language/OfficialPluginLibrary": { + "title": "$:/language/OfficialPluginLibrary", + "text": "Librería de plugins oficiales de ~TiddlyWiki" + }, + "$:/language/OfficialPluginLibrary/Hint": { + "title": "$:/language/OfficialPluginLibrary/Hint", + "text": "Librería de plugins oficiales de ~TiddlyWiki en tiddlywiki.com<br>" + }, + "$:/language/PluginReloadWarning": { + "title": "$:/language/PluginReloadWarning", + "text": "Guarda {{$:/core/ui/Buttons/save-wiki}} y recarga {{$:/core/ui/Buttons/refresh}} para que los cambios surtan efecto." + }, + "$:/language/RecentChanges/DateFormat": { + "title": "$:/language/RecentChanges/DateFormat", + "text": "DD MMM YYYY" + }, + "$:/language/SystemTiddler/Tooltip": { + "title": "$:/language/SystemTiddler/Tooltip", + "text": "Este es un tiddler de sistema" + }, + "$:/language/TagManager/Colour/Heading": { + "title": "$:/language/TagManager/Colour/Heading", + "text": "Color" + }, + "$:/language/TagManager/Count/Heading": { + "title": "$:/language/TagManager/Count/Heading", + "text": "Número" + }, + "$:/language/TagManager/Icon/Heading": { + "title": "$:/language/TagManager/Icon/Heading", + "text": "Icono" + }, + "$:/language/TagManager/Info/Heading": { + "title": "$:/language/TagManager/Info/Heading", + "text": "Información" + }, + "$:/language/TagManager/Tag/Heading": { + "title": "$:/language/TagManager/Tag/Heading", + "text": "Etiqueta" + }, + "$:/language/Tiddler/DateFormat": { + "title": "$:/language/Tiddler/DateFormat", + "text": "DD MMM YYYY a las hh:0mm" + }, + "$:/language/UnsavedChangesWarning": { + "title": "$:/language/UnsavedChangesWarning", + "text": "Tienes cambios sin guardar en TiddlyWiki" + }, + "$:/language/Modals/Download": { + "title": "$:/language/Modals/Download", + "type": "text/vnd.tiddlywiki", + "subtitle": "Download changes", + "footer": "<$button message=\"tm-close-tiddler\">Close</$button>", + "help": "https://tiddlywiki.com/static/DownloadingChanges.html", + "text": "Tu navegador sólo permite guardar manualmente\n\nPara guardar el wiki, haz clic con el botón derecho en el enlace de más abajo y selecciona \"Descargar archivo\" o \"Guardar enlace como...\" y selecciona a continuación la carpeta y el nombre que quieres darle\n\n//Puedes acelerar ligeramente estas acciones haciendo clic en el enlace conjuntamente con la tecla \"Control\" (Windows) o con la tecla \"Option\" (Mac OS X)<br>\nNo se te pedirán carpeta ni nombre, sino que se asignará automáticamente un nombre probablemente irreconocible -- necesitarás cambiar el nombre y darle extensión `.html` para usarlo//\n\nEn el caso de teléfonos móviles que no permiten la descarga de archivos, puedes marcar el enlace como favorito y luego sincronizar favoritos con tu ordenador y descargarlo normalmente desde ahí\n" + }, + "$:/language/Modals/SaveInstructions": { + "title": "$:/language/Modals/SaveInstructions", + "type": "text/vnd.tiddlywiki", + "subtitle": "Save your work", + "footer": "<$button message=\"tm-close-tiddler\">Close</$button>", + "help": "https://tiddlywiki.com/static/SavingChanges.html", + "text": "Los cambios realizados a este wiki necesitan ser guardados como archivo ~TiddlyWiki HTML.\n\n!!! Navegadores de ordenador\n\n# Selecciona ''Guardar como'' en el menú ''Archivo''\n# Elige nombre de archivo y directorio\n#* Algunos navegadores también piden que especifiques el formato como ''Página web, sólo HTML'' o similar\n# Cierra esta pestaña\n\n!!! Navegadores en teléfonos o tabletas\n\n# Añade la página a tus favoritos\n#* Si tienes iCloud o Google Sync los favoritos se sincronizarán automáticamente con tu ordenador, desde donde puedes abrirlos o guardarlos como se explica más arriba\n# Cierra esta pestaña\n\n//Si en Mobile Safari vuelves a abrir los favoritos, volverás a ver este mensaje. Si quieres continuar y usar el archivo, simplemente cierra haciendo clic en el boton de cerrar indicado abajo.//\n" + }, + "$:/config/NewJournal/Tags": { + "title": "$:/config/NewJournal/Tags", + "text": "Diario" + }, + "$:/config/NewJournal/Title": { + "title": "$:/config/NewJournal/Title", + "text": "DD de MMM de YYYY" + }, + "$:/language/Notifications/Save/Done": { + "title": "$:/language/Notifications/Save/Done", + "text": "Guardado" + }, + "$:/language/Notifications/Save/Starting": { + "title": "$:/language/Notifications/Save/Starting", + "text": "Comenzando a guardar" + }, + "$:/language/Search/DefaultResults/Caption": { + "title": "$:/language/Search/DefaultResults/Caption", + "text": "Lista" + }, + "$:/language/Search/Filter/Caption": { + "title": "$:/language/Search/Filter/Caption", + "text": "Filtro" + }, + "$:/language/Search/Filter/Hint": { + "title": "$:/language/Search/Filter/Hint", + "text": "Búsqueda por medio de [[expresiones de filtrado|https://tiddlywiki.com/static/Filters.html]] <small> (instrucciones en inglés)</small>" + }, + "$:/language/Search/Filter/Matches": { + "title": "$:/language/Search/Filter/Matches", + "text": "//<small><<resultCount>> coincidencias</small>//" + }, + "$:/language/Search/Matches": { + "title": "$:/language/Search/Matches", + "text": "//<small><<resultCount>> coincidencias </small>//" + }, + "$:/language/Search/Matches/All": { + "title": "$:/language/Search/Matches/All", + "text": "Cualquier coincidencia" + }, + "$:/language/Search/Matches/Title": { + "title": "$:/language/Search/Matches/Title", + "text": "En título" + }, + "$:/language/Search/Search": { + "title": "$:/language/Search/Search", + "text": "Búsqueda" + }, + "$:/language/Search/Shadows/Caption": { + "title": "$:/language/Search/Shadows/Caption", + "text": "Ocultos" + }, + "$:/language/Search/Shadows/Hint": { + "title": "$:/language/Search/Shadows/Hint", + "text": "Busca en los tiddlers ocultos" + }, + "$:/language/Search/Shadows/Matches": { + "title": "$:/language/Search/Shadows/Matches", + "text": "//<small><<resultCount>> coincidencias </small>//" + }, + "$:/language/Search/Standard/Caption": { + "title": "$:/language/Search/Standard/Caption", + "text": "Estándar" + }, + "$:/language/Search/Standard/Hint": { + "title": "$:/language/Search/Standard/Hint", + "text": "Busca en los tiddlers estándar" + }, + "$:/language/Search/Standard/Matches": { + "title": "$:/language/Search/Standard/Matches", + "text": "//<small><<resultCount>> coincidencias </small>//" + }, + "$:/language/Search/System/Caption": { + "title": "$:/language/Search/System/Caption", + "text": "Sistema" + }, + "$:/language/Search/System/Hint": { + "title": "$:/language/Search/System/Hint", + "text": "Busca en los tiddlers de sistema" + }, + "$:/language/Search/System/Matches": { + "title": "$:/language/Search/System/Matches", + "text": "//<small><<resultCount>> coincidencias </small>//" + }, + "$:/language/SideBar/All/Caption": { + "title": "$:/language/SideBar/All/Caption", + "text": "Todos" + }, + "$:/language/SideBar/Contents/Caption": { + "title": "$:/language/SideBar/Contents/Caption", + "text": "Contenido" + }, + "$:/language/SideBar/Drafts/Caption": { + "title": "$:/language/SideBar/Drafts/Caption", + "text": "Borradores" + }, + "$:/language/SideBar/Missing/Caption": { + "title": "$:/language/SideBar/Missing/Caption", + "text": "Vacíos" + }, + "$:/language/SideBar/More/Caption": { + "title": "$:/language/SideBar/More/Caption", + "text": "Más" + }, + "$:/language/SideBar/Open/Caption": { + "title": "$:/language/SideBar/Open/Caption", + "text": "Abiertos" + }, + "$:/language/SideBar/Orphans/Caption": { + "title": "$:/language/SideBar/Orphans/Caption", + "text": "Huérfanos" + }, + "$:/language/SideBar/Recent/Caption": { + "title": "$:/language/SideBar/Recent/Caption", + "text": "Recientes" + }, + "$:/language/SideBar/Shadows/Caption": { + "title": "$:/language/SideBar/Shadows/Caption", + "text": "Ocultos" + }, + "$:/language/SideBar/System/Caption": { + "title": "$:/language/SideBar/System/Caption", + "text": "Sistema" + }, + "$:/language/SideBar/Tags/Caption": { + "title": "$:/language/SideBar/Tags/Caption", + "text": "Etiquetas" + }, + "$:/language/SideBar/Tags/Untagged/Caption": { + "title": "$:/language/SideBar/Tags/Untagged/Caption", + "text": "Sin etiqueta" + }, + "$:/language/SideBar/Tools/Caption": { + "title": "$:/language/SideBar/Tools/Caption", + "text": "Herramientas" + }, + "$:/language/SideBar/Types/Caption": { + "title": "$:/language/SideBar/Types/Caption", + "text": "Tipos" + }, + "$:/SiteSubtitle": { + "title": "$:/SiteSubtitle", + "text": "Cuaderno de notas personal no-lineal en la web" + }, + "$:/SiteTitle": { + "title": "$:/SiteTitle", + "text": "Mi ~TiddlyWiki" + }, + "$:/language/Snippets/ListByTag": { + "title": "$:/language/Snippets/ListByTag", + "tags": "$:/tags/TextEditor/Snippet", + "caption": "Liste de tiddlers par etiqueta", + "text": "<<list-links \"[tag[task]sort[title]]\">>\n" + }, + "$:/language/Snippets/MacroDefinition": { + "title": "$:/language/Snippets/MacroDefinition", + "tags": "$:/tags/TextEditor/Snippet", + "caption": "Macro definition", + "text": "\\define macroName(param1:\"default value\",param2)\nTexto de la macro\n\\end\n" + }, + "$:/language/Snippets/Table4x3": { + "title": "$:/language/Snippets/Table4x3", + "tags": "$:/tags/TextEditor/Snippet", + "caption": "Table with 4 columns by 3 rows", + "text": "|! |!Alfa |!Beta |!Gamma |!Delta |\n|!Uno | | | | |\n|!Dos | | | | |\n|!Tres | | | | |\n" + }, + "$:/language/Snippets/TableOfContents": { + "title": "$:/language/Snippets/TableOfContents", + "tags": "$:/tags/TextEditor/Snippet", + "caption": "Table of Contents", + "text": "<div class=\"tc-table-of-contents\">\n\n<<toc-selective-expandable 'TableOfContents'>>\n\n</div>" + }, + "$:/language/TiddlerInfo/Advanced/Caption": { + "title": "$:/language/TiddlerInfo/Advanced/Caption", + "text": "Avanzado" + }, + "$:/language/TiddlerInfo/Advanced/PluginInfo/Empty/Hint": { + "title": "$:/language/TiddlerInfo/Advanced/PluginInfo/Empty/Hint", + "text": "No se han instalado" + }, + "$:/language/TiddlerInfo/Advanced/PluginInfo/Heading": { + "title": "$:/language/TiddlerInfo/Advanced/PluginInfo/Heading", + "text": "Detalles del plugin" + }, + "$:/language/TiddlerInfo/Advanced/PluginInfo/Hint": { + "title": "$:/language/TiddlerInfo/Advanced/PluginInfo/Hint", + "text": "Este plugin contiene los siguientes tiddlers ocultos" + }, + "$:/language/TiddlerInfo/Advanced/ShadowInfo/Heading": { + "title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/Heading", + "text": "Oculto" + }, + "$:/language/TiddlerInfo/Advanced/ShadowInfo/NotShadow/Hint": { + "title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/NotShadow/Hint", + "text": "El tiddler <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> no es de tipo oculto" + }, + "$:/language/TiddlerInfo/Advanced/ShadowInfo/OverriddenShadow/Hint": { + "title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/OverriddenShadow/Hint", + "text": "Anulado por un tiddler estándar" + }, + "$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Hint": { + "title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Hint", + "text": "El tiddler <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> es de tipo oculto" + }, + "$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Source": { + "title": "$:/language/TiddlerInfo/Advanced/ShadowInfo/Shadow/Source", + "text": "Definido en el plugin <$link to=<<pluginTiddler>>><$text text=<<pluginTiddler>>/></$link>" + }, + "$:/language/TiddlerInfo/Fields/Caption": { + "title": "$:/language/TiddlerInfo/Fields/Caption", + "text": "Campos" + }, + "$:/language/TiddlerInfo/List/Caption": { + "title": "$:/language/TiddlerInfo/List/Caption", + "text": "Lista" + }, + "$:/language/TiddlerInfo/List/Empty": { + "title": "$:/language/TiddlerInfo/List/Empty", + "text": "Este tiddler no contiene listas" + }, + "$:/language/TiddlerInfo/Listed/Caption": { + "title": "$:/language/TiddlerInfo/Listed/Caption", + "text": "En lista de" + }, + "$:/language/TiddlerInfo/Listed/Empty": { + "title": "$:/language/TiddlerInfo/Listed/Empty", + "text": "Este tiddler no figura en la lista de ningún otro" + }, + "$:/language/TiddlerInfo/References/Caption": { + "title": "$:/language/TiddlerInfo/References/Caption", + "text": "Referencias" + }, + "$:/language/TiddlerInfo/References/Empty": { + "title": "$:/language/TiddlerInfo/References/Empty", + "text": "Ningún otro tiddler enlaza a este" + }, + "$:/language/TiddlerInfo/Tagging/Caption": { + "title": "$:/language/TiddlerInfo/Tagging/Caption", + "text": "Etiquetado" + }, + "$:/language/TiddlerInfo/Tagging/Empty": { + "title": "$:/language/TiddlerInfo/Tagging/Empty", + "text": "Ningún otro tiddler tiene esta misma etiqueta" + }, + "$:/language/TiddlerInfo/Tools/Caption": { + "title": "$:/language/TiddlerInfo/Tools/Caption", + "text": "Herramientas" + }, + "$:/language/Docs/Types/application/javascript": { + "title": "$:/language/Docs/Types/application/javascript", + "description": "Código JavaScript", + "name": "application/javascript", + "group": "Desarrollador" + }, + "$:/language/Docs/Types/application/json": { + "title": "$:/language/Docs/Types/application/json", + "description": "Datos JSON", + "name": "application/json", + "group": "Desarrollador" + }, + "$:/language/Docs/Types/application/x-tiddler-dictionary": { + "title": "$:/language/Docs/Types/application/x-tiddler-dictionary", + "description": "Diccionario de datos", + "name": "application/x-tiddler-dictionary", + "group": "Desarrollador" + }, + "$:/language/Docs/Types/image/gif": { + "title": "$:/language/Docs/Types/image/gif", + "description": "Imagen .GIF", + "name": "image/gif", + "group": "Imagen" + }, + "$:/language/Docs/Types/image/jpeg": { + "title": "$:/language/Docs/Types/image/jpeg", + "description": "Imagen .JPEG", + "name": "image/jpeg", + "group": "Imagen" + }, + "$:/language/Docs/Types/image/png": { + "title": "$:/language/Docs/Types/image/png", + "description": "Imagen .PNG", + "name": "image/png", + "group": "Imagen" + }, + "$:/language/Docs/Types/image/svg+xml": { + "title": "$:/language/Docs/Types/image/svg+xml", + "description": "Imagen .SVG", + "name": "image/svg+xml", + "group": "Imagen" + }, + "$:/language/Docs/Types/image/x-icon": { + "title": "$:/language/Docs/Types/image/x-icon", + "description": "Archivo de icono en formato .ICO", + "name": "image/x-icon", + "group": "Imagen" + }, + "$:/language/Docs/Types/text/css": { + "title": "$:/language/Docs/Types/text/css", + "description": "Hoja de estilos estática", + "name": "text/css", + "group": "Desarrollador" + }, + "$:/language/Docs/Types/text/html": { + "title": "$:/language/Docs/Types/text/html", + "description": "Lenguaje de marcado HTML", + "name": "text/html", + "group": "Texto" + }, + "$:/language/Docs/Types/text/plain": { + "title": "$:/language/Docs/Types/text/plain", + "description": "Texto plano", + "name": "text/plain", + "group": "Texto" + }, + "$:/language/Docs/Types/text/vnd.tiddlywiki": { + "title": "$:/language/Docs/Types/text/vnd.tiddlywiki", + "description": "TiddlyWiki 5", + "name": "text/vnd.tiddlywiki", + "group": "Texto" + }, + "$:/language/Docs/Types/text/x-tiddlywiki": { + "title": "$:/language/Docs/Types/text/x-tiddlywiki", + "description": "TiddlyWiki Classic", + "name": "text/x-tiddlywiki", + "group": "Texto" + }, + "$:/languages/es-ES/icon": { + "title": "$:/languages/es-ES/icon", + "type": "image/svg+xml", + "text": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" height=\"500\" width=\"750\">\n<rect width=\"750\" height=\"500\" fill=\"#c60b1e\"/>\n<rect width=\"750\" height=\"250\" y=\"125\" fill=\"#ffc400\"/>\n<g id=\"coa\" stroke=\"#000\" stroke-width=\"0.39\">\n<g id=\"supporters\">\n<g id=\"crown_left\" stroke-width=\"0.26\">\n<path fill=\"#ad1519\" stroke-linejoin=\"round\" d=\"m167.99 222.24s-0.51 0-0.79-0.16-1.13-0.96-1.13-0.96l-0.68-0.49-0.62-0.85s-0.73-1.18-0.4-2.09c0.34-0.91 0.91-1.23 1.42-1.5 0.51-0.26 1.58-0.59 1.58-0.59s0.85-0.37 1.13-0.42c0.28-0.06 1.3-0.32 1.3-0.32s0.28-0.16 0.56-0.27c0.29-0.11 0.68-0.11 0.91-0.16 0.22-0.06 0.79-0.24 1.13-0.26 0.52-0.02 1.36 0.1 1.64 0.1s1.24 0.05 1.64 0.05c0.39 0 1.8-0.11 2.2-0.11 0.39 0 0.68-0.05 1.13 0 0.45 0.06 1.24 0.32 1.47 0.43s1.58 0.59 2.09 0.75 1.75 0.37 2.32 0.64c0.56 0.27 0.91 0.72 1.19 1.1 0.28 0.37 0.34 0.78 0.45 1.05 0.11 0.26 0.11 0.84 0 1.11-0.11 0.26-0.51 0.81-0.51 0.81l-0.62 1.02-0.79 0.64s-0.57 0.54-1.02 0.48c-0.45-0.04-5.03-0.86-7.97-0.86s-7.64 0.86-7.64 0.86h0.01z\"/>\n<g fill=\"#c8b100\">\n<ellipse cx=\"175.66\" cy=\"215.68\" rx=\"1.38\" ry=\"2.5\"/>\n<ellipse cx=\"175.68\" cy=\"215.68\" rx=\"0.64\" ry=\"2.3\"/>\n<ellipse stroke=\"none\" cx=\"175.68\" cy=\"213.04\" rx=\"0.93\" ry=\"0.87\"/>\n<path stroke-width=\"0.3\" d=\"m176.96 212.74v0.58h-2.53v-0.58h0.94v-1.32h-0.62v-0.57h0.62v-0.57h0.6v0.57h0.62v0.57h-0.62v1.32h0.99\"/>\n<path fill=\"none\" d=\"m175.94,212.2a0.93,0.87 0 1,1 -0.5,0\"/>\n<path d=\"m175.68 222.08h-4.81l-0.11-1.18-0.23-1.23-0.23-1.53c-1.33-1.75-2.55-2.9-2.96-2.65 0.1-0.32 0.22-0.56 0.47-0.71 1.18-0.7 3.61 0.98 5.44 3.74 0.16 0.25 0.32 0.5 0.46 0.75h3.97c0.14-0.25 0.3-0.5 0.46-0.75 1.82-2.76 4.26-4.44 5.43-3.74 0.26 0.15 0.37 0.39 0.47 0.71-0.41-0.24-1.62 0.9-2.96 2.65l-0.23 1.53-0.23 1.23-0.1 1.18h-4.84z\"/>\n<path fill=\"none\" d=\"m167.55 215.44c0.91-0.53 3.02 1.14 4.73 3.74m11.55-3.74c-0.91-0.53-3.01 1.14-4.73 3.74\"/>\n</g>\n<g id=\"crown_pt1\" fill=\"#c8b100\">\n<path d=\"m168.58 224.25c-0.2-0.57-0.58-1.08-0.58-1.08 1.95-0.57 4.66-0.93 7.67-0.94 3.01 0.01 5.75 0.37 7.69 0.94 0 0-0.22 0.38-0.52 0.91-0.17 0.3-0.39 0.81-0.38 0.81-1.75-0.54-4.02-0.81-6.8-0.82-2.79 0.01-5.46 0.35-6.86 0.86 0.02 0-0.1-0.32-0.23-0.68h0.01\"/>\n<path d=\"m175.67 226.73c2.43-0.01 5.11-0.38 6.1-0.63 0.66-0.2 1.05-0.49 0.98-0.84-0.04-0.16-0.18-0.3-0.37-0.38-1.46-0.47-4.07-0.8-6.71-0.8-2.63 0-5.27 0.33-6.72 0.8-0.19 0.08-0.33 0.22-0.37 0.38-0.07 0.35 0.32 0.64 0.98 0.84 0.99 0.25 3.68 0.62 6.11 0.63z\"/>\n<path d=\"m183.48 222.08l-0.59-0.53s-0.57 0.34-1.28 0.24c-0.7-0.11-0.93-0.97-0.93-0.97s-0.79 0.67-1.44 0.62c-0.65-0.06-1.07-0.62-1.07-0.62s-0.71 0.51-1.33 0.46c-0.62-0.06-1.21-0.83-1.21-0.83s-0.63 0.8-1.25 0.86c-0.62 0.05-1.13-0.54-1.13-0.54s-0.28 0.59-1.07 0.72-1.47-0.62-1.47-0.62-0.45 0.73-0.99 0.92c-0.54 0.18-1.24-0.27-1.24-0.27s-0.12 0.27-0.2 0.43-0.31 0.19-0.31 0.19l0.18 0.47c1.93-0.56 4.56-0.91 7.53-0.91s5.67 0.35 7.61 0.92l0.2-0.54h-0.01z\"/>\n<path d=\"m175.69 219.49l0.28 0.05c-0.05 0.12-0.06 0.24-0.06 0.38 0 0.58 0.5 1.05 1.12 1.05 0.49 0 0.91-0.31 1.06-0.73 0.01 0.01 0.11-0.38 0.15-0.38 0.03 0 0.03 0.41 0.05 0.41 0.07 0.53 0.55 0.89 1.1 0.89 0.62 0 1.11-0.47 1.11-1.06 0-0.04 0-0.08-0.01-0.12l0.35-0.35 0.19 0.44c-0.07 0.14-0.1 0.29-0.1 0.46 0 0.56 0.47 1.01 1.06 1.01 0.37 0 0.69-0.18 0.88-0.45l0.23-0.29v0.36c0 0.34 0.14 0.66 0.49 0.71 0 0 0.38 0.03 0.91-0.38 0.52-0.41 0.8-0.75 0.8-0.75l0.03 0.42s-0.51 0.84-0.97 1.1c-0.25 0.15-0.64 0.31-0.95 0.25-0.32-0.05-0.55-0.31-0.67-0.61-0.23 0.14-0.51 0.22-0.8 0.22-0.63 0-1.2-0.35-1.42-0.86-0.29 0.31-0.69 0.5-1.16 0.5-0.51 0-0.97-0.23-1.26-0.58-0.28 0.27-0.67 0.43-1.09 0.43-0.55 0-1.05-0.28-1.33-0.69-0.29 0.41-0.78 0.69-1.34 0.69-0.42 0-0.81-0.16-1.09-0.43-0.29 0.35-0.75 0.58-1.25 0.58-0.48 0-0.88-0.19-1.17-0.5-0.22 0.51-0.79 0.86-1.42 0.86-0.29 0-0.56-0.08-0.79-0.22-0.12 0.3-0.35 0.56-0.68 0.61-0.3 0.06-0.69-0.1-0.94-0.25-0.47-0.26-1.02-1.1-1.02-1.1l0.07-0.42s0.29 0.34 0.81 0.75 0.91 0.38 0.91 0.38c0.34-0.05 0.49-0.37 0.49-0.71v-0.36l0.22 0.29c0.19 0.27 0.51 0.45 0.88 0.45 0.59 0 1.06-0.45 1.06-1.01 0-0.17-0.02-0.32-0.1-0.46l0.19-0.44 0.35 0.35c-0.01 0.04-0.01 0.08-0.01 0.12 0 0.59 0.49 1.06 1.11 1.06 0.55 0 1.03-0.36 1.11-0.89 0.01 0 0.01-0.41 0.04-0.41 0.05 0 0.14 0.39 0.16 0.38 0.14 0.42 0.56 0.73 1.06 0.73 0.61 0 1.11-0.47 1.11-1.05 0-0.14 0-0.26-0.05-0.38l0.29-0.05h0.01z\"/>\n<path stroke-linejoin=\"round\" d=\"m175.67 222.23c-3.01 0.01-5.72 0.37-7.67 0.94-0.13 0.04-0.29-0.06-0.33-0.17-0.04-0.13 0.05-0.28 0.18-0.32 1.95-0.6 4.73-0.98 7.82-0.98s5.88 0.38 7.83 0.98c0.13 0.04 0.22 0.19 0.18 0.32-0.04 0.11-0.2 0.21-0.33 0.17-1.95-0.57-4.67-0.93-7.68-0.94z\"/>\n<path d=\"m165.43 221c-0.01 0.01-0.38-0.48-0.65-0.73-0.2-0.18-0.68-0.33-0.68-0.33 0-0.08 0.28-0.28 0.58-0.28 0.18 0 0.35 0.07 0.45 0.2l0.04-0.2s0.24 0.05 0.35 0.32c0.12 0.29 0.05 0.72 0.05 0.72s-0.05 0.2-0.14 0.3z\"/>\n<path d=\"m167.32 220.22l-0.11 0.66-1.4 0.15-0.21-0.12 0.04-0.23 1.06-0.87 0.62 0.41\"/>\n<path d=\"m165.45 220.75c0.12-0.12 0.36-0.09 0.53 0.06 0.18 0.15 0.24 0.38 0.12 0.5-0.12 0.13-0.36 0.1-0.53-0.06-0.18-0.15-0.24-0.38-0.12-0.5z\"/>\n<path d=\"m168.02 220.88c-0.06-0.18 0-0.37 0.13-0.42 0.14-0.03 0.3 0.09 0.37 0.27 0.06 0.19 0 0.38-0.14 0.42-0.13 0.04-0.29-0.08-0.36-0.27z\"/>\n<path d=\"m168.67 220.04l0.51 0.48 1.22-0.66 0.09-0.21-0.17-0.17-1.4-0.12-0.25 0.68\"/>\n<path d=\"m170.08 217.76l-0.67 0.64 0.86 1.14 0.23 0.09 0.17-0.18 0.3-1.37-0.89-0.32\"/>\n<path d=\"m172.36 219.3l-0.26 0.63-1.4-0.13-0.18-0.16 0.1-0.22 1.22-0.64 0.52 0.52\"/>\n<ellipse cx=\"170.51\" cy=\"219.65\" rx=\"0.49\" ry=\"0.47\"/>\n<path d=\"m172.87 219.95c-0.03-0.2 0.07-0.37 0.21-0.39s0.28 0.13 0.3 0.33c0.03 0.19-0.07 0.37-0.21 0.38-0.14 0.02-0.28-0.13-0.3-0.32z\"/>\n<path d=\"m173.78 219.24l0.4 0.57 1.34-0.42 0.14-0.18-0.15-0.2-1.33-0.39-0.4 0.62\"/>\n<path d=\"m175.66 217.15l-0.86 0.52 0.64 1.38 0.22 0.14 0.22-0.14 0.64-1.38-0.86-0.52\"/>\n<path d=\"m177.55 219.24l-0.39 0.57-1.34-0.42-0.14-0.18 0.14-0.2 1.34-0.39 0.39 0.62\"/>\n<ellipse cx=\"175.67\" cy=\"219.21\" rx=\"0.49\" ry=\"0.47\"/>\n<path d=\"m178.5 219.95c0.02-0.2-0.08-0.37-0.22-0.39s-0.28 0.13-0.3 0.33c-0.02 0.19 0.07 0.37 0.21 0.38 0.14 0.02 0.28-0.13 0.31-0.32z\"/>\n<path d=\"m178.99 219.3l0.26 0.63 1.4-0.13 0.18-0.16-0.1-0.22-1.22-0.64-0.52 0.52\"/>\n<path d=\"m181.27 217.76l0.67 0.64-0.86 1.14-0.23 0.09-0.17-0.18-0.3-1.37 0.89-0.32\"/>\n<path d=\"m182.68 220.04l-0.51 0.48-1.22-0.66-0.1-0.21 0.19-0.17 1.4-0.12 0.24 0.68\"/>\n<ellipse cx=\"180.85\" cy=\"219.65\" rx=\"0.49\" ry=\"0.47\"/>\n<path d=\"m183.34 220.88c0.06-0.18 0-0.37-0.13-0.42-0.14-0.03-0.3 0.09-0.37 0.27-0.06 0.19 0 0.38 0.14 0.42 0.13 0.04 0.29-0.08 0.36-0.27z\"/>\n<path d=\"m185.73 221c0.01 0.01 0.38-0.48 0.66-0.73 0.19-0.18 0.67-0.33 0.67-0.33 0-0.08-0.28-0.28-0.58-0.28-0.18 0-0.35 0.07-0.45 0.2l-0.04-0.2s-0.24 0.05-0.36 0.32c-0.11 0.29-0.03 0.72-0.03 0.72s0.04 0.2 0.13 0.3z\"/>\n<path d=\"m183.84 220.22l0.11 0.66 1.4 0.15 0.21-0.12-0.05-0.23-1.05-0.87-0.62 0.41\"/>\n<path d=\"m185.74 220.75c-0.11-0.12-0.35-0.09-0.53 0.06s-0.24 0.38-0.12 0.5c0.12 0.13 0.36 0.1 0.54-0.06 0.18-0.15 0.23-0.38 0.11-0.5z\"/>\n</g>\n<g id=\"crown_pt2\" fill=\"none\">\n<path fill=\"#ad1519\" d=\"m168.05 224.3l0.31-0.5 0.65 0.13-0.38 0.56-0.58-0.19\"/>\n<path fill=\"#058e6e\" d=\"m170.85 223.81l-0.69 0.11c-0.18 0.02-0.35-0.09-0.38-0.26-0.02-0.17 0.1-0.32 0.27-0.35l0.7-0.1 0.71-0.11c0.18-0.02 0.34 0.09 0.37 0.25 0.02 0.17-0.1 0.33-0.27 0.35l-0.71 0.11\"/>\n<ellipse fill=\"#fff\" cx=\"173.19\" cy=\"223.3\" rx=\"0.44\" ry=\"0.41\"/>\n<path fill=\"#ad1519\" d=\"m175.7 223.48h-0.96c-0.18 0-0.33-0.14-0.33-0.31s0.14-0.31 0.32-0.31h1.96c0.19 0 0.33 0.14 0.33 0.31s-0.15 0.31-0.33 0.31h-0.99\"/>\n<ellipse fill=\"#fff\" cx=\"178.16\" cy=\"223.3\" rx=\"0.44\" ry=\"0.41\"/>\n<path fill=\"#058e6e\" d=\"m180.5 223.81l0.69 0.11c0.18 0.02 0.35-0.09 0.38-0.26 0.02-0.17-0.09-0.32-0.27-0.35l-0.7-0.1-0.71-0.11c-0.18-0.02-0.35 0.09-0.37 0.25-0.03 0.17 0.09 0.33 0.27 0.35l0.71 0.11\"/>\n<path fill=\"#ad1519\" d=\"m183.24 224.33l-0.25-0.53-0.67 0.06 0.32 0.59 0.6-0.12\"/>\n<path fill=\"#ad1519\" stroke-linejoin=\"round\" d=\"m175.66 226.16c-2.43 0-4.63-0.22-6.3-0.65 1.67-0.43 3.87-0.69 6.3-0.7 2.44 0 4.65 0.27 6.33 0.7-1.68 0.43-3.89 0.65-6.33 0.65z\"/>\n<path stroke-width=\"0.01\" d=\"m176.8 226.08v-1.16m-0.58 1.2l0.01-1.23m-0.43 1.25v-1.26\"/>\n<path stroke-width=\"0.02\" d=\"m175.44 226.15v-1.27\"/>\n<path stroke-width=\"0.03\" d=\"m175.09 226.15v-1.27\"/>\n<path stroke-width=\"0.04\" d=\"m174.77 226.15v-1.27\"/>\n<path stroke-width=\"0.04\" d=\"m174.44 226.15v-1.27\"/>\n<path stroke-width=\"0.05\" d=\"m174.16 226.15v-1.27\"/>\n<path stroke-width=\"0.06\" d=\"m173.61 226.08l-0.01-1.15m0.27 1.17v-1.21\"/>\n<path stroke-width=\"0.07\" d=\"m173.1 226.03v-1.06m0.26 1.09l-0.01-1.13\"/>\n<path stroke-width=\"0.08\" d=\"m172.42 225.97v-0.93m0.23 0.94v-0.98m0.23 1.02v-1.02\"/>\n<path stroke-width=\"0.09\" d=\"m172.19 225.96v-0.9\"/>\n<path stroke-width=\"0.1\" d=\"m171.97 225.92v-0.85\"/>\n<path stroke-width=\"0.11\" d=\"m171.73 225.89v-0.78\"/>\n<path stroke-width=\"0.12\" d=\"m171.24 225.82l-0.01-0.62m0.26 0.66v-0.7\"/>\n<path stroke-width=\"0.12\" d=\"m170.99 225.77v-0.55\"/>\n<path stroke-width=\"0.13\" d=\"m170.76 225.73v-0.46\"/>\n<path stroke-width=\"0.14\" d=\"m170.51 225.67v-0.36\"/>\n<path stroke-width=\"0.15\" d=\"m170.26 225.64v-0.27\"/>\n<path stroke-width=\"0.18\" d=\"m169.99 225.58v-0.13\"/>\n</g>\n</g>\n<g id=\"pillar_left\">\n<g fill=\"#005bbf\">\n<path d=\"m191.28 330.68c-1.54 0-2.91-0.33-3.93-0.87-1-0.51-2.36-0.82-3.86-0.82-1.51 0-2.9 0.32-3.91 0.83-1.01 0.53-2.4 0.86-3.92 0.86-1.54 0-2.92-0.36-3.93-0.9-1-0.49-2.33-0.79-3.79-0.79-1.52 0-2.86 0.29-3.86 0.81-1.02 0.54-2.42 0.88-3.95 0.88v2.41c1.53 0 2.93-0.35 3.95-0.88 1-0.52 2.34-0.82 3.86-0.82 1.45 0 2.79 0.31 3.79 0.8 1.01 0.53 2.39 0.9 3.93 0.9 1.52 0 2.91-0.33 3.92-0.86 1.01-0.52 2.4-0.84 3.91-0.84 1.5 0 2.86 0.32 3.86 0.83 1.02 0.54 2.37 0.87 3.91 0.87l0.02-2.41z\"/>\n<path fill=\"#ccc\" d=\"m191.28 333.09c-1.54 0-2.91-0.33-3.93-0.87-1-0.51-2.36-0.83-3.86-0.83-1.51 0-2.9 0.32-3.91 0.84-1.01 0.53-2.4 0.86-3.92 0.86-1.54 0-2.92-0.37-3.93-0.9-1-0.49-2.33-0.8-3.79-0.8-1.52 0-2.86 0.3-3.86 0.82-1.02 0.53-2.42 0.88-3.95 0.88v2.41c1.53 0 2.93-0.35 3.95-0.88 1-0.52 2.34-0.82 3.86-0.82 1.45 0 2.79 0.31 3.79 0.8 1.01 0.54 2.39 0.9 3.93 0.9 1.52 0 2.91-0.34 3.92-0.86s2.4-0.84 3.91-0.84c1.5 0 2.86 0.32 3.86 0.84 1.02 0.53 2.37 0.86 3.91 0.86l0.02-2.41\"/>\n<path d=\"m191.28 335.5c-1.54 0-2.91-0.33-3.93-0.86-1-0.52-2.36-0.84-3.86-0.84-1.51 0-2.9 0.32-3.91 0.84s-2.4 0.86-3.92 0.86c-1.54 0-2.92-0.36-3.93-0.9-1-0.49-2.33-0.8-3.79-0.8-1.52 0-2.86 0.3-3.86 0.82-1.02 0.53-2.42 0.88-3.95 0.88v2.4c1.53 0 2.93-0.34 3.95-0.88 1-0.51 2.34-0.8 3.86-0.8 1.45 0 2.79 0.3 3.79 0.79 1.01 0.54 2.39 0.89 3.93 0.89 1.52 0 2.91-0.32 3.92-0.85 1.01-0.52 2.4-0.83 3.91-0.83 1.5 0 2.86 0.31 3.86 0.82 1.02 0.55 2.37 0.86 3.91 0.86l0.02-2.4\"/>\n<path fill=\"#ccc\" d=\"m191.26 340.32c-1.54 0-2.89-0.33-3.91-0.87-1-0.51-2.36-0.82-3.86-0.82-1.51 0-2.9 0.31-3.91 0.83s-2.4 0.86-3.92 0.86c-1.54 0-2.92-0.37-3.93-0.9-1-0.5-2.33-0.79-3.79-0.79-1.52 0-2.86 0.29-3.86 0.81-1.02 0.53-2.42 0.88-3.95 0.88v-2.4c1.53 0 2.93-0.36 3.95-0.9 1-0.51 2.34-0.8 3.86-0.8 1.45 0 2.79 0.3 3.79 0.79 1.01 0.54 2.39 0.89 3.93 0.89 1.52 0 2.91-0.32 3.92-0.85 1.01-0.52 2.4-0.83 3.91-0.83 1.5 0 2.86 0.31 3.86 0.82 1.02 0.55 2.39 0.86 3.93 0.86l-0.02 2.42\"/>\n<path d=\"m191.26 342.73c-1.54 0-2.89-0.33-3.91-0.86-1-0.52-2.36-0.84-3.86-0.84-1.51 0-2.9 0.32-3.91 0.84s-2.4 0.86-3.92 0.86c-1.54 0-2.92-0.37-3.93-0.9-1-0.5-2.33-0.8-3.79-0.8-1.52 0-2.86 0.3-3.86 0.82-1.02 0.53-2.42 0.88-3.95 0.88v-2.39c1.53 0 2.93-0.37 3.95-0.9 1-0.52 2.34-0.81 3.86-0.81 1.45 0 2.79 0.3 3.79 0.79 1.01 0.53 2.39 0.9 3.93 0.9 1.52 0 2.91-0.34 3.92-0.86s2.4-0.83 3.91-0.83c1.5 0 2.86 0.31 3.86 0.82 1.02 0.54 2.38 0.87 3.93 0.87l-0.02 2.41z\"/>\n</g>\n<g fill=\"#c8b100\">\n<path stroke-linejoin=\"round\" d=\"m166.92 320.78c0.05 0.21 0.13 0.4 0.13 0.62 0 1.46-1.27 2.63-2.81 2.63h22.94c-1.55 0-2.81-1.17-2.81-2.63 0-0.21 0.04-0.41 0.09-0.62-0.13 0.05-0.29 0.06-0.44 0.06h-16.69c-0.13 0-0.29-0.02-0.41-0.06z\"/>\n<path d=\"m167.33 319.27h16.69c0.57 0 1.02 0.35 1.02 0.78s-0.45 0.79-1.02 0.79h-16.69c-0.56 0-1.02-0.36-1.02-0.79s0.46-0.78 1.02-0.78z\"/>\n<path d=\"m164.27 329.86h22.87v-5.83h-22.87v5.83z\"/>\n</g>\n<path fill=\"#ccc\" d=\"m167.55 318.32h16.25v-79.63h-16.25v79.63z\"/>\n<path fill=\"none\" d=\"m179.13 238.8v79.46m1.83-79.46v79.46\"/>\n<g fill=\"#c8b100\">\n<path d=\"m164.58 232.37h22.29v-5.84h-22.29v5.84z\"/>\n<path stroke-linejoin=\"round\" d=\"m166.92 236.26c0.14-0.06 0.24-0.07 0.41-0.07h16.69c0.17 0 0.32 0.03 0.46 0.08-0.58-0.19-0.99-0.71-0.99-1.32s0.45-1.14 1.03-1.33c-0.14 0.04-0.33 0.08-0.49 0.08h-16.7c-0.17 0-0.33-0.01-0.47-0.06l0.09 0.02c0.6 0.18 0.94 0.71 0.94 1.29 0 0.56-0.38 1.13-0.97 1.31z\"/>\n<path d=\"m167.33 236.19h16.69c0.57 0 1.02 0.35 1.02 0.78 0 0.44-0.45 0.79-1.02 0.79h-16.69c-0.56 0-1.02-0.35-1.02-0.79 0-0.43 0.46-0.78 1.02-0.78z\"/>\n<path d=\"m167.33 232.37h16.7c0.57 0 1.03 0.3 1.03 0.66 0 0.37-0.46 0.67-1.03 0.67h-16.7c-0.56 0-1.02-0.3-1.02-0.67 0-0.36 0.46-0.66 1.02-0.66z\"/>\n</g>\n</g>\n<g id=\"ribbon_left\" fill=\"#ad1519\">\n<path d=\"m162.48 298.62c-2.26 1.3-3.8 2.64-3.55 3.31 0.12 0.61 0.84 1.07 1.87 1.75 1.62 1.13 2.6 3.14 1.83 4.07 1.34-1.08 2.19-2.69 2.19-4.49 0-1.87-0.9-3.56-2.34-4.64z\"/>\n<path stroke-linejoin=\"round\" d=\"m200.4 268.47c-3.54-1.46-9.57-2.55-16.49-2.78-2.39 0.02-5.04 0.25-7.79 0.7-9.72 1.63-17.13 5.51-16.54 8.67 0.01 0.06 0.04 0.2 0.05 0.26 0 0-3.64-8.21-3.7-8.52-0.65-3.51 7.56-7.82 18.35-9.62 3.39-0.57 6.69-0.79 9.56-0.76 6.9 0 12.9 0.89 16.52 2.23l0.04 9.82\"/>\n<path d=\"m167.52 278.47c-4.51-0.32-7.58-1.53-7.94-3.41-0.28-1.5 1.25-3.17 3.97-4.68 1.21 0.14 2.58 0.3 4 0.3l-0.03 7.79\"/>\n<path d=\"m183.83 272.38c2.82 0.43 4.93 1.13 5.98 1.99l0.1 0.17c0.5 1.03-1.97 3.22-6.11 5.67l0.03-7.83\"/>\n<path stroke-linejoin=\"round\" d=\"m157.42 293.83c-0.43-1.28 3.97-3.86 10.18-6.14 2.84-1.01 5.18-2.07 8.09-3.35 8.63-3.82 15-8.2 14.22-9.79l-0.09-0.17c0.46 0.38 1.18 8.24 1.18 8.24 0.78 1.46-5.05 5.78-13 9.58-2.54 1.22-7.91 3.2-10.44 4.09-4.54 1.57-9.04 4.54-8.63 5.64l-1.51-8.09v-0.01z\"/>\n</g>\n<g id=\"crown_right\" stroke-width=\"0.26\">\n<path fill=\"#ad1519\" stroke-width=\"0.27\" d=\"m324.85 220.42s-0.74 0.78-1.28 0.89c-0.53 0.1-1.21-0.49-1.21-0.49s-0.48 0.51-1.08 0.64c-0.59 0.14-1.41-0.66-1.41-0.66s-0.57 0.8-1.07 0.99c-0.51 0.18-1.13-0.24-1.13-0.24s-0.23 0.39-0.65 0.61c-0.18 0.09-0.48-0.05-0.48-0.05l-0.6-0.38-0.68-0.72-0.62-0.24s-0.28-0.91-0.31-1.07c-0.02-0.16-0.08-0.57-0.08-0.57-0.13-0.65 0.87-1.4 2.3-1.72 0.82-0.19 1.54-0.18 2.06-0.02 0.57-0.48 1.78-0.82 3.2-0.82 1.29 0 2.42 0.27 3.04 0.7 0.61-0.43 1.74-0.7 3.03-0.7 1.42 0 2.62 0.34 3.19 0.82 0.53-0.16 1.24-0.17 2.07 0.02 1.42 0.32 2.43 1.07 2.3 1.72 0 0-0.06 0.41-0.08 0.57-0.03 0.16-0.32 1.07-0.32 1.07l-0.62 0.24-0.68 0.72-0.58 0.38s-0.3 0.14-0.48 0.05c-0.43-0.21-0.66-0.61-0.66-0.61s-0.62 0.42-1.13 0.24c-0.51-0.19-1.07-0.99-1.07-0.99s-0.82 0.8-1.42 0.66c-0.59-0.13-1.07-0.64-1.07-0.64s-0.68 0.59-1.21 0.49c-0.54-0.11-1.27-0.89-1.27-0.89z\"/>\n<g fill=\"#c8b100\">\n<ellipse cx=\"324.82\" cy=\"216.2\" rx=\"1.38\" ry=\"1.96\"/>\n<ellipse cx=\"324.85\" cy=\"216.2\" rx=\"0.63\" ry=\"1.81\"/>\n<ellipse stroke=\"none\" cx=\"324.84\" cy=\"213.95\" rx=\"0.93\" ry=\"0.88\"/>\n<path stroke-width=\"0.3\" d=\"m326.13 213.64v0.58h-2.53v-0.58h0.94v-1.3h-0.62v-0.58h0.62v-0.58h0.61v0.58h0.61v0.58h-0.61v1.3h0.98\"/>\n<path fill=\"none\" d=\"m325.11,213.12a0.93,0.88 0 1,1 -0.51,-0.01\"/>\n</g>\n<g fill=\"none\" stroke-width=\"0.21\">\n<path stroke-width=\"0.26\" stroke-linecap=\"round\" d=\"m314.41 219.99c-0.13-0.33-0.22-0.7-0.22-1.08 0-1.59 1.26-2.88 2.83-2.88 0.5 0 0.96 0.13 1.37 0.37\"/>\n<path stroke-width=\"0.26\" d=\"m319.48 217.93c-0.15-0.26-0.29-0.54-0.29-0.84 0-1.15 1.19-2.08 2.64-2.08 0.62 0 1.2 0.17 1.65 0.45\"/>\n<path stroke-width=\"0.26\" d=\"m330.17 217.96c0.15-0.26 0.25-0.57 0.25-0.87 0-1.15-1.18-2.08-2.64-2.08-0.62 0-1.19 0.17-1.64 0.45\"/>\n<path stroke-width=\"0.26\" stroke-linecap=\"round\" d=\"m335.21 219.99c0.13-0.33 0.21-0.7 0.21-1.08 0-1.59-1.26-2.88-2.82-2.88-0.5 0-0.97 0.13-1.38 0.37\"/>\n<ellipse cx=\"313.57\" cy=\"218.68\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"313.74\" cy=\"217.1\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"314.76\" cy=\"215.9\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"316.11\" cy=\"215.25\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"317.55\" cy=\"215.31\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse fill=\"#fff\" cx=\"318.43\" cy=\"217.08\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"318.68\" cy=\"215.58\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"319.81\" cy=\"214.64\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"321.23\" cy=\"214.19\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"322.67\" cy=\"214.24\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"326.94\" cy=\"214.24\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"328.39\" cy=\"214.19\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"329.8\" cy=\"214.64\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"330.93\" cy=\"215.58\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse fill=\"#fff\" cx=\"331.18\" cy=\"217.08\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"332.06\" cy=\"215.31\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"333.51\" cy=\"215.25\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"334.86\" cy=\"215.9\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"335.88\" cy=\"217.1\" rx=\"0.45\" ry=\"0.43\"/>\n<ellipse cx=\"336.05\" cy=\"218.68\" rx=\"0.45\" ry=\"0.43\"/>\n</g>\n<use xlink:href=\"#crown_pt1\" x=\"149.17\"/>\n<use xlink:href=\"#crown_pt2\" x=\"149.17\"/>\n</g>\n<use id=\"pillar_right\" xlink:href=\"#pillar_left\" x=\"149.17\"/>\n<use id=\"ribbon_right\" xlink:href=\"#ribbon_left\" transform=\"matrix(-1,0,0,1,500.57,0)\"/>\n<g id=\"plus_ultra\" fill=\"#c8b100\" stroke=\"none\">\n<path d=\"m166.42 264.65c1.99-0.72 3.29-1.58 2.66-3.14-0.41-1-1.43-1.19-2.97-0.63l-2.71 0.99 2.44 6.03c0.27-0.12 0.54-0.24 0.81-0.34 0.28-0.1 0.57-0.18 0.85-0.26l-1.08-2.64v-0.01zm-1.18-2.91l0.69-0.25c0.57-0.21 1.21 0.1 1.5 0.8 0.21 0.53 0.16 1.13-0.5 1.55-0.21 0.13-0.46 0.23-0.7 0.33l-0.99-2.43\"/>\n<path d=\"m172.78 259.22c-0.29 0.08-0.57 0.16-0.86 0.22-0.29 0.05-0.59 0.09-0.88 0.12l1.41 6.28 4.38-0.88c-0.05-0.12-0.12-0.26-0.14-0.38-0.03-0.14-0.03-0.28-0.04-0.41-0.77 0.22-1.61 0.46-2.61 0.66l-1.26-5.61\"/>\n<path d=\"m181.56 264.63c0.82-2.28 1.82-4.46 2.81-6.67-0.18 0.03-0.36 0.06-0.54 0.07s-0.37 0.01-0.54 0c-0.53 1.61-1.18 3.21-1.87 4.8-0.82-1.51-1.73-2.99-2.43-4.51-0.34 0.04-0.69 0.09-1.03 0.12-0.34 0.02-0.7 0.01-1.04 0.02 1.26 2.06 2.48 4.11 3.64 6.23 0.16-0.03 0.32-0.06 0.5-0.08 0.16-0.01 0.33 0.01 0.5 0.02\"/>\n<path d=\"m190.72 259.8c0.15-0.31 0.31-0.6 0.48-0.89-0.24-0.22-0.96-0.55-1.81-0.63-1.79-0.18-2.81 0.61-2.93 1.69-0.26 2.26 3.31 2.07 3.14 3.57-0.07 0.64-0.75 0.9-1.48 0.83-0.81-0.08-1.41-0.53-1.51-1.19l-0.22-0.02c-0.12 0.39-0.29 0.77-0.48 1.15 0.53 0.34 1.21 0.53 1.85 0.59 1.83 0.19 3.22-0.54 3.35-1.74 0.23-2.15-3.37-2.27-3.23-3.54 0.06-0.53 0.47-0.88 1.4-0.79 0.67 0.07 1.08 0.43 1.26 0.95l0.18 0.02\"/>\n<path d=\"m310.3 264.98c0.62-2.33 1.41-4.58 2.19-6.87-0.17 0.05-0.35 0.09-0.53 0.11-0.17 0.03-0.36 0.04-0.54 0.05-0.37 1.64-0.88 3.29-1.42 4.94-0.96-1.44-2-2.84-2.83-4.3-0.34 0.07-0.68 0.15-1.02 0.2s-0.69 0.07-1.04 0.11c1.45 1.94 2.85 3.89 4.2 5.91 0.16-0.04 0.32-0.1 0.5-0.12 0.16-0.02 0.33-0.02 0.49-0.03\"/>\n<path d=\"m316.48 258.16c-0.29 0.01-0.59 0.04-0.88 0.03-0.3 0-0.6-0.04-0.89-0.06l-0.12 6.41 4.49 0.08c-0.03-0.13-0.06-0.28-0.06-0.41s0.04-0.27 0.07-0.4c-0.81 0.05-1.68 0.1-2.71 0.08l0.1-5.73\"/>\n<path d=\"m323.52 259.21c0.72 0.06 1.41 0.19 2.1 0.31-0.01-0.13-0.03-0.27-0.02-0.41 0.01-0.13 0.06-0.26 0.1-0.39l-6.07-0.5c0.01 0.14 0.03 0.27 0.02 0.4-0.01 0.14-0.06 0.27-0.1 0.4 0.62-0.02 1.37-0.02 2.21 0.05l-0.53 5.77c0.29 0 0.59 0 0.88 0.03 0.3 0.02 0.59 0.07 0.88 0.11l0.53-5.77\"/>\n<path d=\"m326.01 265.53c0.29 0.05 0.59 0.09 0.88 0.15 0.28 0.06 0.57 0.15 0.85 0.23l0.72-2.94 0.08 0.01c0.16 0.41 0.38 0.9 0.49 1.19l0.9 2.22c0.36 0.06 0.71 0.11 1.05 0.18 0.36 0.08 0.7 0.18 1.04 0.28l-0.31-0.67c-0.48-1-0.99-2.01-1.41-3.02 1.12 0.04 1.98-0.36 2.2-1.26 0.15-0.62-0.1-1.11-0.68-1.53-0.44-0.31-1.28-0.47-1.83-0.6l-2.44-0.53-1.54 6.29m3.14-5.42c0.71 0.16 1.59 0.27 1.59 1.07-0.01 0.21-0.03 0.35-0.06 0.48-0.23 0.94-0.94 1.26-2.13 0.91l0.6-2.46\"/>\n<path d=\"m337.57 267.46c-0.05 0.69-0.18 1.37-0.31 2.1 0.3 0.14 0.61 0.27 0.9 0.44 0.3 0.16 0.57 0.34 0.86 0.52l0.6-7.23c-0.14-0.06-0.27-0.12-0.41-0.19-0.13-0.07-0.25-0.15-0.37-0.24l-6.38 4.05c0.17 0.08 0.35 0.16 0.51 0.25 0.17 0.09 0.31 0.19 0.47 0.28 0.54-0.45 1.1-0.82 1.74-1.3l2.39 1.31v0.01zm-1.81-1.66l2.13-1.37-0.25 2.4-1.88-1.03\"/>\n</g>\n</g>\n<g id=\"crown_crest\">\n<path fill=\"#ad1519\" stroke-width=\"0.26\" d=\"m249.65 182.72c6.64 0 12.56 0.99 16.41 2.51 2.2 1 5.16 1.73 8.4 2.17 2.47 0.33 4.81 0.39 6.85 0.24 2.73-0.06 6.67 0.74 10.62 2.48 3.26 1.45 5.99 3.21 7.8 4.91l-1.57 1.4-0.45 3.96-4.3 4.92-2.15 1.83-5.09 4.07-2.6 0.21-0.79 2.25-32.91-3.86-33.02 3.86-0.79-2.25-2.61-0.21-5.08-4.07-2.15-1.83-4.3-4.92-0.44-3.96-1.58-1.4c1.82-1.7 4.54-3.46 7.8-4.91 3.95-1.74 7.89-2.54 10.62-2.48 2.04 0.15 4.38 0.09 6.85-0.24 3.24-0.44 6.2-1.17 8.4-2.17 3.86-1.52 9.44-2.51 16.08-2.51z\"/>\n<g fill=\"#c8b100\">\n<path d=\"m225.34 191.42l1.38 1.11 2.08-3.4c-2.25-1.38-3.8-3.78-3.8-6.51 0-0.31 0.02-0.61 0.06-0.91 0.21-4.34 5.5-7.92 12.2-7.92 3.48 0 6.63 0.95 8.84 2.48 0.06-0.67 0.12-1.25 0.21-1.86-2.43-1.42-5.6-2.28-9.05-2.28-7.71 0-13.74 4.39-14.03 9.57-0.03 0.31-0.05 0.61-0.05 0.92 0 2.76 1.26 5.26 3.26 6.99l-1.1 1.81\"/>\n<path d=\"m225.43 191.46c-2.63-1.97-4.27-4.64-4.27-7.58 0-3.38 2.22-6.4 5.58-8.41-2.07 1.67-3.33 3.83-3.51 6.23-0.03 0.31-0.05 0.61-0.05 0.92 0 2.76 1.26 5.26 3.26 6.99l-1.01 1.85\"/>\n<path d=\"m202.21 194.89c-1.48-1.65-2.38-3.79-2.38-6.12 0-1.41 0.33-2.75 0.91-3.95 2.13-4.38 8.82-7.57 16.76-7.57 2.16 0 4.23 0.23 6.14 0.67-0.42 0.46-0.75 0.97-1.08 1.48-1.59-0.31-3.29-0.48-5.06-0.48-7.27 0-13.36 2.83-15.12 6.65-0.47 0.97-0.73 2.06-0.73 3.2 0 2.32 1.09 4.4 2.79 5.82l-2.63 4.3-1.41-1.12 1.81-2.88z\"/>\n<path d=\"m204.9 180.48c-1.91 1.21-3.36 2.69-4.16 4.34-0.58 1.2-0.91 2.54-0.91 3.95 0 2.33 0.9 4.47 2.38 6.12l-1.6 2.59c-1.53-1.96-2.42-4.26-2.42-6.7 0-4.2 2.67-7.87 6.71-10.3z\"/>\n<path d=\"m250.04 171.27c1.76 0 3.28 1.16 3.64 2.73 0.23 1.38 0.38 2.95 0.41 4.62 0.01 0.18-0.01 0.35-0.01 0.52 0 0.2 0.04 0.41 0.05 0.61 0.06 3.52 0.56 6.62 1.27 8.52l-5.36 5.14-5.43-5.14c0.72-1.9 1.22-5 1.29-8.52 0-0.2 0.04-0.41 0.04-0.61 0-0.17-0.01-0.34-0.01-0.52 0.03-1.67 0.18-3.24 0.41-4.62 0.36-1.57 1.94-2.73 3.7-2.73z\"/>\n<path d=\"m250.04 172.94c0.91 0 1.68 0.58 1.87 1.39 0.23 1.31 0.37 2.8 0.4 4.38 0 0.16-0.01 0.32-0.01 0.48 0 0.2 0.03 0.39 0.04 0.59 0.05 3.32 0.53 6.25 1.21 8.05l-3.54 3.35-3.54-3.35c0.67-1.8 1.15-4.73 1.21-8.05 0-0.2 0.04-0.39 0.04-0.59 0-0.16-0.01-0.32-0.01-0.48 0.03-1.58 0.17-3.07 0.4-4.38 0.18-0.81 1.02-1.39 1.93-1.39z\"/>\n<path d=\"m274.7 191.42l-1.39 1.11-2.08-3.4c2.26-1.38 3.81-3.78 3.81-6.51 0-0.31-0.02-0.61-0.06-0.91-0.21-4.34-5.5-7.92-12.2-7.92-3.49 0-6.63 0.95-8.84 2.48-0.06-0.67-0.12-1.25-0.22-1.86 2.44-1.42 5.6-2.28 9.06-2.28 7.71 0 13.74 4.39 14.03 9.57 0.03 0.31 0.05 0.61 0.05 0.92 0 2.76-1.27 5.26-3.27 6.99l1.11 1.81\"/>\n<path d=\"m274.61 191.46c2.63-1.97 4.27-4.64 4.27-7.58 0-3.38-2.22-6.4-5.58-8.41 2.07 1.67 3.33 3.83 3.51 6.23 0.03 0.31 0.05 0.61 0.05 0.92 0 2.76-1.27 5.26-3.27 6.99l1.02 1.85\"/>\n<path d=\"m297.83 194.89c1.47-1.65 2.38-3.79 2.38-6.12 0-1.41-0.33-2.75-0.91-3.95-2.14-4.38-8.82-7.57-16.76-7.57-2.16 0-4.23 0.23-6.15 0.67 0.43 0.46 0.76 0.97 1.09 1.48 1.58-0.31 3.29-0.48 5.06-0.48 7.27 0 13.35 2.83 15.11 6.65 0.47 0.97 0.73 2.06 0.73 3.2 0 2.32-1.09 4.4-2.79 5.82l2.63 4.3 1.42-1.12-1.81-2.88z\"/>\n<path d=\"m295.14 180.48c1.91 1.21 3.36 2.69 4.16 4.34 0.58 1.2 0.91 2.54 0.91 3.95 0 2.33-0.91 4.47-2.38 6.12l1.6 2.59c1.53-1.96 2.41-4.26 2.41-6.7 0-4.2-2.67-7.87-6.7-10.3z\"/>\n<ellipse fill=\"#005bbf\" stroke-width=\"0.26\" cx=\"250.05\" cy=\"167.3\" rx=\"4.43\" ry=\"4.2\"/>\n<path stroke-width=\"0.26\" d=\"m248.89 155.54v2.26h-2.42v2.3h2.42v3.15 3.46h-3.05c-0.03 0.21-0.22 0.37-0.22 0.59 0 0.58 0.12 1.14 0.35 1.64 0 0.02 0.02 0.02 0.03 0.03h8.12c0-0.01 0.02-0.01 0.03-0.03 0.22-0.5 0.35-1.06 0.35-1.64 0-0.22-0.19-0.38-0.22-0.59h-2.96v-3.43-3.18h2.42v-2.3h-2.42v-2.26h-2.43z\"/>\n</g>\n<g fill=\"#fff\">\n<ellipse cx=\"250.04\" cy=\"188.94\" rx=\"1.91\" ry=\"1.8\"/>\n<ellipse cx=\"250.04\" cy=\"185.4\" rx=\"1.91\" ry=\"1.8\"/>\n<ellipse cx=\"250.04\" cy=\"181.6\" rx=\"1.52\" ry=\"1.44\"/>\n<ellipse cx=\"250.04\" cy=\"178.18\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"250.04\" cy=\"175.18\" rx=\"0.88\" ry=\"0.83\"/>\n<ellipse cx=\"198.94\" cy=\"198.67\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"197.44\" cy=\"196.02\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"196.44\" cy=\"192.94\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"196.31\" cy=\"189.64\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"197.12\" cy=\"186.4\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"198.81\" cy=\"183.45\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"201.06\" cy=\"181.02\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"203.68\" cy=\"179.01\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"206.8\" cy=\"177.36\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"210.04\" cy=\"176.19\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"213.66\" cy=\"175.54\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"217.1\" cy=\"175.36\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"220.47\" cy=\"175.48\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"224.21\" cy=\"190.32\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"222.34\" cy=\"187.65\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"221.35\" cy=\"184.75\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"221.47\" cy=\"181.57\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"222.16\" cy=\"178.37\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"223.84\" cy=\"175.48\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"226.4\" cy=\"173.47\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"229.39\" cy=\"171.81\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"232.7\" cy=\"170.82\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"236.13\" cy=\"170.23\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"239.5\" cy=\"170.28\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"242.99\" cy=\"170.87\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"246.23\" cy=\"171.99\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"253.8\" cy=\"171.99\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"257.04\" cy=\"170.87\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"260.54\" cy=\"170.28\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"263.9\" cy=\"170.23\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"267.34\" cy=\"170.82\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"270.64\" cy=\"171.81\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"273.64\" cy=\"173.47\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"276.19\" cy=\"175.48\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"277.88\" cy=\"178.37\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"278.57\" cy=\"181.57\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"278.69\" cy=\"184.75\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"277.69\" cy=\"187.65\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"275.83\" cy=\"190.32\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"279.57\" cy=\"175.48\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"282.94\" cy=\"175.36\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"286.38\" cy=\"175.54\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"290\" cy=\"176.19\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"293.24\" cy=\"177.36\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"296.36\" cy=\"179.01\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"298.97\" cy=\"181.02\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"301.22\" cy=\"183.45\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"302.91\" cy=\"186.4\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"303.72\" cy=\"189.64\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"303.6\" cy=\"192.94\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"302.6\" cy=\"196.02\" rx=\"1.1\" ry=\"1.04\"/>\n<ellipse cx=\"301.1\" cy=\"198.67\" rx=\"1.1\" ry=\"1.04\"/>\n</g>\n<g fill=\"#c8b100\">\n<path d=\"m250.15 226.18c-12.26-0.02-23.25-1.47-31.09-3.83-0.57-0.18-0.87-0.7-0.84-1.25-0.01-0.52 0.29-1 0.84-1.17 7.84-2.36 18.83-3.81 31.09-3.83 12.27 0.02 23.25 1.47 31.09 3.83 0.55 0.17 0.84 0.65 0.83 1.17 0.03 0.55-0.27 1.07-0.83 1.25-7.84 2.36-18.82 3.81-31.09 3.83\"/>\n<path d=\"m250.07 216.09c-12.41 0.03-23.55 1.58-31.39 4 0.65-0.31 0.59-1.12-0.22-3.2-0.98-2.53-2.5-2.42-2.5-2.42 8.66-2.56 20.73-4.16 34.16-4.18 13.44 0.02 25.6 1.62 34.27 4.18 0 0-1.53-0.11-2.51 2.42-0.81 2.08-0.87 2.89-0.21 3.2-7.84-2.42-19.19-3.97-31.6-4\"/>\n<path d=\"m250.12 210.3c-13.43 0.02-25.5 1.62-34.16 4.18-0.58 0.17-1.19-0.05-1.38-0.6s0.12-1.18 0.7-1.35c8.71-2.67 21.08-4.35 34.84-4.38 13.77 0.03 26.19 1.71 34.9 4.38 0.58 0.17 0.89 0.8 0.7 1.35s-0.8 0.77-1.38 0.6c-8.67-2.56-20.78-4.16-34.22-4.18\"/>\n<path d=\"m250.2 199.78l1.23 0.22c-0.19 0.5-0.24 1.05-0.24 1.63 0 2.57 2.21 4.65 4.92 4.65 2.18 0 4.04-1.35 4.67-3.21 0.08 0.05 0.47-1.68 0.68-1.66 0.17 0.02 0.15 1.8 0.22 1.77 0.31 2.34 2.46 3.93 4.87 3.93 2.71 0 4.91-2.08 4.91-4.65 0-0.19-0.01-0.38-0.04-0.57l1.54-1.52 0.83 1.94c-0.33 0.61-0.46 1.3-0.46 2.03 0 2.46 2.1 4.44 4.69 4.44 1.63 0 3.06-0.78 3.9-1.97l0.99-1.25-0.01 1.53c0 1.55 0.66 2.93 2.16 3.18 0 0 1.73 0.1 4.03-1.7 2.29-1.8 3.55-3.29 3.55-3.29l0.2 1.8s-1.9 2.95-3.97 4.15c-1.14 0.66-2.86 1.35-4.23 1.13-1.44-0.24-2.48-1.4-3.01-2.74-1.03 0.61-2.25 0.97-3.55 0.97-2.81 0-5.33-1.54-6.32-3.86-1.29 1.4-3.09 2.25-5.2 2.25-2.24 0-4.29-1.01-5.57-2.56-1.27 1.16-2.98 1.87-4.88 1.87-2.48 0-4.69-1.22-5.94-3.05-1.25 1.83-3.46 3.05-5.94 3.05-1.89 0-3.61-0.71-4.87-1.87-1.28 1.55-3.34 2.56-5.58 2.56-2.11 0-3.9-0.85-5.19-2.25-1 2.32-3.52 3.86-6.32 3.86-1.31 0-2.52-0.36-3.55-0.97-0.54 1.34-1.57 2.5-3.02 2.74-1.36 0.22-3.08-0.47-4.22-1.13-2.08-1.2-3.98-4.15-3.98-4.15l0.2-1.8s1.27 1.49 3.56 3.29c2.29 1.81 4.02 1.7 4.02 1.7 1.51-0.25 2.16-1.63 2.16-3.18l-0.01-1.53 0.99 1.25c0.84 1.19 2.28 1.97 3.9 1.97 2.59 0 4.69-1.98 4.69-4.44 0-0.73-0.13-1.42-0.46-2.03l0.83-1.94 1.54 1.52c-0.02 0.19-0.04 0.38-0.04 0.57 0 2.57 2.2 4.65 4.91 4.65 2.42 0 4.56-1.59 4.88-3.93 0.06 0.03 0.05-1.75 0.22-1.77 0.2-0.02 0.6 1.71 0.67 1.66 0.64 1.86 2.49 3.21 4.68 3.21 2.71 0 4.91-2.08 4.91-4.65 0-0.58-0.03-1.13-0.24-1.63l1.29-0.22\"/>\n<path d=\"m208.37 206.32c-0.11-0.37-0.35-0.75-0.72-1.06-0.79-0.68-1.84-0.79-2.36-0.25-0.07 0.07-0.13 0.17-0.17 0.25 0 0-1.11-2.08-2.41-2.78-1.29-0.7-3.49-0.52-3.49-0.52 0-1.6 1.3-2.89 2.99-2.89 0.99 0 1.92 0.41 2.48 1.11l0.23-1.07s1.36 0.27 1.98 1.82-0.06 3.8-0.06 3.8 0.34-0.96 0.85-1.61c0.51-0.64 1.81-1.34 2.49-1.66 0.67-0.31 1.37-0.79 1.37-0.79s0.03 0.18 0.05 0.61c0.03 0.51-0.01 0.83-0.01 0.83 1.24-0.17 2.69 0.04 3.83 0.48-0.49 0.95-1.41 1.84-2.62 2.3 0 0 0.44 0.36 0.83 0.75 0.34 0.34 0.44 0.49 0.44 0.49s-0.85 0.13-1.27 0.19c-0.43 0.05-1.84 0.28-2.69 0.22-0.62-0.04-1.32-0.14-1.74-0.22\"/>\n<path fill=\"#ad1519\" d=\"m205.29 205.01c0.52-0.54 1.57-0.43 2.36 0.25 0.8 0.67 1.02 1.66 0.51 2.19-0.51 0.54-1.57 0.42-2.36-0.25-0.79-0.68-1.02-1.66-0.51-2.19\"/>\n<path fill=\"#fff\" d=\"m216.39 205.91c-0.28-0.83-0.03-1.65 0.57-1.83 0.6-0.19 1.32 0.33 1.6 1.16s0.03 1.65-0.57 1.84c-0.6 0.18-1.31-0.34-1.6-1.17\"/>\n<path d=\"m226.12 201.86c-0.33-0.27-0.59-0.64-0.67-1.08s0.01-0.87 0.23-1.23c0 0-0.88-0.44-1.83-0.69-0.72-0.19-1.99-0.2-2.37-0.2-0.38-0.02-1.15-0.03-1.15-0.03s0.07 0.17 0.28 0.55c0.27 0.46 0.5 0.75 0.5 0.75-1.27 0.29-2.35 1.12-3.03 2.09 0.99 0.68 2.3 1.1 3.6 0.97 0 0-0.12 0.34-0.2 0.86-0.06 0.43-0.06 0.61-0.06 0.61s0.71-0.26 1.07-0.39c0.35-0.13 1.54-0.55 2.15-0.96 0.8-0.54 1.48-1.25 1.48-1.25\"/>\n<path d=\"m225.68 191.65c1.06 0.67 1.98 1.79 2.3 3.03 0 0 0.13-0.25 0.71-0.59 0.59-0.33 1.09-0.32 1.09-0.32s-0.17 0.97-0.25 1.32c-0.09 0.34-0.09 1.38-0.32 2.32-0.23 0.93-0.63 1.68-0.63 1.68-0.42-0.34-0.99-0.51-1.58-0.41-0.58 0.1-1.06 0.44-1.32 0.9 0 0-0.66-0.58-1.21-1.38-0.55-0.81-0.93-1.78-1.13-2.08-0.21-0.3-0.72-1.15-0.72-1.15s0.47-0.18 1.14-0.05c0.67 0.12 0.88 0.32 0.88 0.32-0.14-1.28 0.28-2.62 1.04-3.59\"/>\n<path d=\"m228.97 201.38c0.22-0.35 0.32-0.79 0.24-1.23s-0.32-0.81-0.66-1.07c0 0 0.67-0.71 1.47-1.26 0.6-0.41 1.8-0.82 2.15-0.95 0.36-0.13 1.07-0.4 1.07-0.4s0 0.18-0.06 0.61c-0.08 0.52-0.2 0.87-0.2 0.87 1.3-0.14 2.62 0.29 3.61 0.98-0.69 0.97-1.77 1.79-3.04 2.08 0 0 0.23 0.28 0.5 0.74 0.21 0.39 0.28 0.56 0.28 0.56s-0.77-0.02-1.15-0.03c-0.38 0-1.65-0.01-2.37-0.2-0.95-0.25-1.84-0.69-1.84-0.69\"/>\n<ellipse fill=\"#ad1519\" cx=\"227.37\" cy=\"200.45\" rx=\"2.17\" ry=\"2.06\"/>\n<path fill=\"#fff\" d=\"m237.76 201.77c-0.11-0.87 0.31-1.63 0.93-1.7 0.63-0.07 1.23 0.57 1.34 1.44 0.11 0.86-0.3 1.63-0.93 1.7-0.62 0.07-1.22-0.57-1.34-1.44\"/>\n<path d=\"m248.5 199.83c-0.32-0.36-0.53-0.82-0.53-1.33 0-0.5 0.19-0.97 0.51-1.32 0 0-0.89-0.67-1.89-1.12-0.77-0.35-2.18-0.59-2.6-0.67-0.43-0.08-1.28-0.24-1.28-0.24s0.04 0.2 0.2 0.67c0.2 0.56 0.4 0.93 0.4 0.93-1.47 0.08-2.85 0.81-3.81 1.76 0.96 0.94 2.34 1.66 3.81 1.75 0 0-0.2 0.36-0.4 0.93-0.16 0.46-0.2 0.67-0.2 0.67s0.85-0.16 1.28-0.24c0.42-0.08 1.83-0.32 2.6-0.67 1-0.46 1.91-1.11 1.91-1.11\"/>\n<path d=\"m250.11 188.36c1.05 0.95 1.85 2.36 1.95 3.82 0 0 0.19-0.27 0.91-0.53 0.73-0.26 1.28-0.16 1.28-0.16s-0.39 1.05-0.55 1.42c-0.17 0.37-0.39 1.53-0.84 2.53-0.44 1-1.05 1.76-1.05 1.76-0.4-0.45-1-0.75-1.67-0.75-0.68 0-1.27 0.3-1.67 0.75 0 0-0.61-0.76-1.05-1.76-0.45-1-0.67-2.16-0.84-2.53s-0.56-1.42-0.56-1.42 0.56-0.1 1.28 0.16 0.92 0.53 0.92 0.53c0.1-1.46 0.86-2.87 1.89-3.82\"/>\n<path d=\"m251.76 199.83c0.33-0.36 0.53-0.82 0.53-1.33 0-0.5-0.19-0.97-0.51-1.32 0 0 0.89-0.67 1.9-1.12 0.76-0.35 2.17-0.59 2.6-0.67 0.42-0.08 1.26-0.24 1.26-0.24s-0.02 0.2-0.19 0.67c-0.2 0.56-0.4 0.93-0.4 0.93 1.47 0.08 2.86 0.81 3.81 1.76-0.95 0.94-2.33 1.66-3.81 1.75 0 0 0.2 0.36 0.4 0.93 0.16 0.46 0.19 0.67 0.19 0.67l-1.26-0.24c-0.43-0.08-1.84-0.32-2.6-0.67-1.01-0.46-1.92-1.11-1.92-1.11\"/>\n<ellipse fill=\"#ad1519\" cx=\"250.14\" cy=\"198.5\" rx=\"2.17\" ry=\"2.06\"/>\n<path fill=\"#fff\" d=\"m262.58 201.77c0.11-0.87-0.3-1.63-0.93-1.7s-1.23 0.57-1.34 1.44c-0.11 0.86 0.31 1.63 0.93 1.7 0.63 0.07 1.23-0.57 1.34-1.44\"/>\n<path d=\"m271.38 201.38c-0.22-0.35-0.32-0.79-0.25-1.23 0.09-0.44 0.33-0.81 0.67-1.07 0 0-0.67-0.71-1.47-1.26-0.61-0.41-1.8-0.82-2.16-0.95-0.35-0.13-1.06-0.4-1.06-0.4s-0.01 0.18 0.06 0.61c0.08 0.52 0.19 0.87 0.19 0.87-1.29-0.14-2.61 0.29-3.6 0.98 0.68 0.97 1.77 1.79 3.03 2.08 0 0-0.23 0.28-0.49 0.74-0.22 0.39-0.28 0.56-0.28 0.56l1.14-0.03c0.38 0 1.66-0.01 2.37-0.2 0.95-0.25 1.84-0.69 1.84-0.69\"/>\n<path d=\"m274.67 191.65c-1.06 0.67-1.98 1.79-2.31 3.03 0 0-0.12-0.25-0.71-0.59-0.58-0.33-1.09-0.32-1.09-0.32s0.17 0.97 0.26 1.32c0.09 0.34 0.09 1.38 0.31 2.32 0.23 0.93 0.64 1.68 0.64 1.68 0.42-0.34 0.99-0.51 1.57-0.41 0.59 0.1 1.06 0.44 1.33 0.9 0 0 0.66-0.58 1.21-1.38 0.54-0.81 0.92-1.78 1.12-2.08 0.21-0.3 0.72-1.15 0.72-1.15s-0.47-0.18-1.14-0.05c-0.67 0.12-0.88 0.32-0.88 0.32 0.15-1.28-0.28-2.62-1.03-3.59\"/>\n<path d=\"m274.22 201.86c0.34-0.27 0.6-0.64 0.67-1.08 0.09-0.44 0-0.87-0.22-1.23 0 0 0.88-0.44 1.83-0.69 0.72-0.19 1.99-0.2 2.36-0.2 0.39-0.02 1.15-0.03 1.15-0.03s-0.06 0.17-0.28 0.55c-0.26 0.46-0.49 0.75-0.49 0.75 1.26 0.29 2.34 1.12 3.03 2.09-0.99 0.68-2.31 1.1-3.6 0.97 0 0 0.11 0.34 0.19 0.86 0.06 0.43 0.06 0.61 0.06 0.61s-0.71-0.26-1.06-0.39c-0.36-0.13-1.55-0.55-2.16-0.96-0.79-0.54-1.48-1.25-1.48-1.25\"/>\n<ellipse fill=\"#ad1519\" cx=\"272.98\" cy=\"200.45\" rx=\"2.17\" ry=\"2.06\"/>\n<path fill=\"#fff\" d=\"m283.96 205.91c0.28-0.83 0.03-1.65-0.57-1.83-0.6-0.19-1.32 0.33-1.61 1.16-0.28 0.83-0.03 1.65 0.57 1.84 0.6 0.18 1.32-0.34 1.61-1.17\"/>\n<path d=\"m291.97 206.32c0.11-0.37 0.36-0.75 0.72-1.06 0.79-0.68 1.85-0.79 2.36-0.25 0.07 0.07 0.14 0.17 0.18 0.25 0 0 1.1-2.08 2.4-2.78s3.5-0.52 3.5-0.52c0-1.6-1.31-2.89-3-2.89-0.99 0-1.92 0.41-2.47 1.11l-0.23-1.07s-1.36 0.27-1.98 1.82 0.05 3.8 0.05 3.8-0.33-0.96-0.84-1.61c-0.51-0.64-1.81-1.34-2.49-1.66-0.68-0.31-1.37-0.79-1.37-0.79s-0.03 0.18-0.06 0.61c-0.02 0.51 0.02 0.83 0.02 0.83-1.25-0.17-2.7 0.04-3.83 0.48 0.48 0.95 1.4 1.84 2.61 2.3 0 0-0.43 0.36-0.83 0.75-0.33 0.34-0.43 0.49-0.43 0.49s0.85 0.13 1.27 0.19c0.43 0.05 1.84 0.28 2.68 0.22 0.63-0.04 1.32-0.14 1.74-0.22\"/>\n<path fill=\"#ad1519\" d=\"m295.05 205.01c-0.51-0.54-1.57-0.43-2.36 0.25-0.79 0.67-1.02 1.66-0.51 2.19 0.51 0.54 1.57 0.42 2.36-0.25 0.79-0.68 1.02-1.66 0.51-2.19\"/>\n</g>\n<g fill=\"none\">\n<path fill=\"#ad1519\" stroke-linejoin=\"round\" d=\"m250.12 224.57c-11.06-0.01-21.07-1.29-28.68-3.26 7.61-1.97 17.62-3.17 28.68-3.19 11.07 0.02 21.13 1.22 28.74 3.19-7.61 1.97-17.67 3.25-28.74 3.26z\"/>\n<path stroke-width=\"0.05\" d=\"m258.04 224.28v-6.01m-3.02 6.21l0.04-6.37m-2.24 6.45v-6.49\"/>\n<path stroke-width=\"0.09\" d=\"m250.95 224.64v-6.57\"/>\n<path stroke-width=\"0.14\" d=\"m249.16 224.64v-6.57\"/>\n<path stroke-width=\"0.18\" d=\"m247.48 224.64v-6.57\"/>\n<path stroke-width=\"0.23\" d=\"m245.81 224.64v-6.57\"/>\n<path stroke-width=\"0.28\" d=\"m244.32 224.64v-6.57\"/>\n<path stroke-width=\"0.33\" d=\"m241.48 224.28l-0.04-5.97m1.39 6.05v-6.25\"/>\n<path stroke-width=\"0.37\" d=\"m238.86 224.01v-5.5m1.33 5.66l-0.04-5.86\"/>\n<path stroke-width=\"0.42\" d=\"m235.35 223.7v-4.84m1.15 4.92v-5.08m1.19 5.24v-5.28\"/>\n<path stroke-width=\"0.46\" d=\"m234.12 223.66v-4.68\"/>\n<path stroke-width=\"0.51\" d=\"m232.97 223.42v-4.36\"/>\n<path stroke-width=\"0.56\" d=\"m231.74 223.31v-4.06\"/>\n<path stroke-width=\"0.6\" d=\"m229.22 222.95l-0.04-3.22m1.33 3.38v-3.62\"/>\n<path stroke-width=\"0.63\" d=\"m227.93 222.68v-2.84\"/>\n<path stroke-width=\"0.68\" d=\"m226.74 222.45v-2.36\"/>\n<path stroke-width=\"0.73\" d=\"m225.45 222.13v-1.85\"/>\n<path stroke-width=\"0.77\" d=\"m224.12 221.98v-1.38\"/>\n<path stroke-width=\"0.91\" d=\"m222.72 221.66v-0.67\"/>\n<path d=\"m220.12 221.66c7.75-2.18 18.29-3.52 30-3.54 11.72 0.02 22.31 1.36 30.06 3.54\"/>\n<path fill=\"#ad1519\" d=\"m216.72 217.16l1.22-1.59 3.37 0.43-2.69 1.96-1.9-0.8\"/>\n<path fill=\"#fff\" d=\"m224.03 215.28c0-0.58 0.49-1.04 1.1-1.04s1.1 0.46 1.1 1.04c0 0.57-0.49 1.04-1.1 1.04s-1.1-0.47-1.1-1.04\"/>\n<path fill=\"#058e6e\" d=\"m233.64 215.07l-2.36 0.27c-0.61 0.07-1.17-0.33-1.24-0.9-0.08-0.57 0.35-1.09 0.96-1.15l2.37-0.28 2.42-0.28c0.6-0.07 1.15 0.33 1.22 0.9s-0.36 1.09-0.96 1.16l-2.41 0.28\"/>\n<path fill=\"#fff\" d=\"m240.54 213.35c0-0.58 0.49-1.04 1.1-1.04 0.6 0 1.1 0.46 1.1 1.04 0 0.57-0.5 1.04-1.1 1.04-0.61 0-1.1-0.47-1.1-1.04\"/>\n<path fill=\"#ad1519\" d=\"m250.15 214.16h-3.29c-0.6 0-1.11-0.46-1.11-1.03 0-0.58 0.49-1.04 1.1-1.04h6.64c0.61 0 1.1 0.46 1.1 1.04 0 0.57-0.51 1.03-1.11 1.03h-3.33\"/>\n<path fill=\"#fff\" d=\"m257.56 213.35c0-0.58 0.5-1.04 1.1-1.04 0.61 0 1.1 0.46 1.1 1.04 0 0.57-0.49 1.04-1.1 1.04-0.6 0-1.1-0.47-1.1-1.04\"/>\n<path fill=\"#058e6e\" d=\"m266.66 215.07l2.36 0.27c0.6 0.07 1.17-0.33 1.24-0.9s-0.36-1.09-0.96-1.15l-2.37-0.28-2.42-0.28c-0.61-0.07-1.15 0.33-1.22 0.9-0.08 0.57 0.36 1.09 0.96 1.16l2.41 0.28\"/>\n<path fill=\"#fff\" d=\"m274.07 215.28c0-0.58 0.49-1.04 1.1-1.04s1.1 0.46 1.1 1.04c0 0.57-0.49 1.04-1.1 1.04s-1.1-0.47-1.1-1.04\"/>\n<path fill=\"#ad1519\" d=\"m283.57 217.16l-1.21-1.59-3.37 0.43 2.69 1.96 1.89-0.8\"/>\n</g>\n</g>\n<g id=\"shield\" stroke-width=\"0.52\">\n<g id=\"Granada\">\n<path fill=\"#ccc\" d=\"m250.49 344.33c-13.08 0-26.05-3.2-36.95-8.54-8.03-3.98-13.36-12-13.36-21.19v-33.3h100.42v33.3c0 9.19-5.32 17.21-13.36 21.19-10.9 5.34-23.66 8.54-36.75 8.54z\"/>\n<path fill=\"#ffd691\" d=\"m252.91 329.55c2.09 0.63 3.15 2.19 3.15 4.01 0 2.38-2.3 4.18-5.3 4.18-2.99 0-5.42-1.8-5.42-4.18 0-1.79 1-3.8 3.08-3.94 0 0-0.06-0.19-0.24-0.5-0.22-0.23-0.64-0.66-0.64-0.66s0.79-0.15 1.25 0.02c0.46 0.18 0.77 0.47 0.77 0.47s0.21-0.43 0.52-0.76c0.3-0.33 0.7-0.53 0.7-0.53s0.46 0.38 0.61 0.64c0.15 0.27 0.25 0.59 0.25 0.59s0.42-0.35 0.79-0.49c0.37-0.15 0.84-0.26 0.84-0.26s-0.13 0.46-0.22 0.69-0.14 0.72-0.14 0.72\"/>\n<path fill=\"#058e6e\" d=\"m250.32 340.32s-3.98-2.68-5.7-3.04c-2.21-0.47-4.69-0.09-5.76-0.15 0.03 0.03 1.29 0.93 1.84 1.48s2.39 1.65 3.43 1.91c3.22 0.81 6.19-0.2 6.19-0.2\"/>\n<path fill=\"#058e6e\" d=\"m251.46 340.56s2.54-2.66 5.21-3.02c3.15-0.44 5.22 0.26 6.44 0.58 0.03 0-1.01 0.49-1.56 0.87-0.55 0.37-1.97 1.57-4.14 1.59-2.18 0.03-4.58-0.23-4.97-0.17-0.4 0.06-0.98 0.15-0.98 0.15\"/>\n<path fill=\"#ad1519\" d=\"m250.69 337.28c-1-0.93-1.62-2.25-1.62-3.72 0-1.46 0.62-2.78 1.63-3.71 0.99 0.93 1.61 2.25 1.61 3.71 0 1.47-0.62 2.79-1.62 3.72\"/>\n<path fill=\"#058e6e\" d=\"m249.68 342.71s0.61-1.52 0.67-2.83c0.06-1.09-0.15-2.17-0.15-2.17h0.52 0.28s0.39 1.16 0.39 2.17c0 1.02-0.18 2.37-0.18 2.37s-0.55 0.08-0.73 0.17c-0.19 0.09-0.8 0.29-0.8 0.29\"/>\n</g>\n<g id=\"Aragon\" fill=\"#c8b100\">\n<path fill=\"#ad1519\" d=\"m250.32 314.57c0 13.16-11.16 23.82-25.05 23.82s-25.15-10.66-25.15-23.82v-33.35h50.2v33.35\"/>\n<path d=\"m200.03 314.12c0.15 7.02 2.95 12.25 5.73 15.67v-49.47h-5.66l-0.07 33.8z\"/>\n<path d=\"m211.08 334.23c1.57 0.83 3.72 2.22 6.03 2.77l-0.15-56.96h-5.88v54.19z\"/>\n<path d=\"m222.28 338.25c2.3 0.23 4.01 0.19 5.87 0v-58.21h-5.87v58.21z\"/>\n<path d=\"m233.32 337c2.3-0.46 4.9-1.89 6.03-2.63v-54.33h-5.88l-0.15 56.96z\"/>\n<path d=\"m244.81 329.24c2.45-2.18 4.75-7.12 5.59-12.76l0.14-36.44h-5.87l0.14 49.2z\"/>\n</g>\n<g id=\"Navarre\">\n<path fill=\"#ad1519\" d=\"m300.65 281.22v33.35c0 13.16-11.28 23.82-25.17 23.82-13.9 0-25.16-10.66-25.16-23.82v-33.35h50.33\"/>\n<path id=\"chains_half\" fill=\"#c8b100\" stroke=\"#c8b100\" stroke-width=\"0.26\" d=\"m272.71,306.14c0.05-0.14,0.12-0.27,0.19-0.4l-4.26-4.74-1.67,0.72-3.06-3.39,1-1.46-5.34-5.99c-0.07,0.02-0.2,0.02-0.27,0.04l0.03,4.02,1.75,0.5v4.46l-1.75,0.48-0.03,4.08c0.84,0.26,1.48,0.88,1.74,1.67l3.21,0.01,0.51-1.67h4.72l0.5,1.67zm-6.98-18.5,0,1.61,2.76,0,0-1.61zm-7.3,20.37c0.64,0,1.16-0.49,1.16-1.1s-0.52-1.11-1.16-1.11c-0.65,0-1.17,0.5-1.17,1.11s0.52,1.1,1.17,1.1zm15.99-9.73-1.76-0.48,0-4.46,1.76-0.5-0.01-1.92c-0.85-0.25-1.51-0.87-1.79-1.67h-2.68l-0.51,1.67h-4.71l-0.51-1.67h-3.09c-0.08,0.22-0.17,0.42-0.29,0.61l5.38,5.96,1.67-0.71,3.06,3.4-1,1.45,4.18,4.64c0.09-0.04,0.18-0.08,0.28-0.12zm-7.25-1.39-1.29,1.04,1.77,1.98,1.29-1.05zm8.00432,36.1859c-1.23998-0.065-2.25509-0.9022-2.51432-2.01593-1.67-0.23-3.25-0.66-4.73-1.3l0.84-1.43c1.29,0.55,2.66,0.91,4.08,1.11,0.31-0.66,0.86-1.16,1.58-1.4l0.01-5.62-1.76-0.49v-4.46l1.76-0.48v-7.64c-0.07-0.02-0.13-0.05-0.2-0.09l-3.98,4.42,1,1.44-3.06,3.4-1.67-0.71-3.3,3.67c0.57,0.87,0.55,2-0.11,2.85,0.94,1.05,2.03,1.98,3.24,2.75l-0.84,1.44c-1.42-0.89-2.7-1.99-3.79-3.22-0.87,0.26-1.86,0.11-2.6-0.5-1.15-0.93-1.29-2.56-0.3-3.64l0.14-0.16c-0.69-1.56-1.16-3.24-1.32-5l1.71,0.01c0.14,1.5,0.51,2.93,1.09,4.27,0.49-0.06,1-0.01,1.46,0.16l3.32-3.68-1-1.45,3.06-3.4,1.67,0.72,3.99-4.43c-0.09-0.14-0.15-0.29-0.21-0.46l-2.76,0.01-0.5,1.67h-4.72l-0.51-1.67-3.24-0.01c-0.27,0.76-0.9,1.36-1.69,1.62l-0.01,4.04-1.71-0.01v-4.01c-1.1-0.33-1.91-1.31-1.91-2.47,0-1.15,0.82-2.15,1.92-2.48l0.01-4.05-1.76-0.48v-4.46l1.76-0.5v-4.05c-1.08-0.35-1.84-1.32-1.84-2.45,0-1.43,1.22-2.58,2.73-2.58,1.22,0,2.25,0.74,2.61,1.78h3.09l0.51-1.67h4.71l0.51,1.67h2.68c0.35692-1.0311,1.36258-1.76731,2.55896-1.77984l0.0711,8.36984h-0.85v2.61h0.845l-0.0214,21.59h-0.7836v2.61h0.77946zm-5.914-18.306l-1.29-1.04-1.78,1.98,1.29,1.04zm-9.96-18.44-1.69,0-0.01,2.61,1.7,0zm9.16,11.41,0-1.6-2.85,0,0,1.6zm-10.6,9.69-1.76-0.39-0.25-4.45,1.75-0.58,0,2.56c0,0.99,0.09,1.92,0.26,2.86zm1.46-5.52,1.75,0.41s0.09,2.87,0.05,2.22c-0.04-0.74,0.19,2.24,0.19,2.24l-1.76,0.58c-0.18-0.9-0.24-1.84-0.24-2.79zm10.81,16.93,0.39-1.7c-1.52-0.48-2.93-1.18-4.17-2.09l-1.26,1.11c1.48,1.15,3.19,2.08,5.04,2.68zm-0.85,1.44-1.3,1.22c-1.47-0.54-2.86-1.26-4.12-2.11l0.38-1.77c1.5,1.13,3.21,2.03,5.04,2.66z\"/>\n<use xlink:href=\"#chains_half\" transform=\"matrix(-1,0,0,1,550.43,0)\"/>\n<path fill=\"#058e6e\" stroke=\"none\" d=\"m272.59 306.94c0-1.44 1.23-2.6 2.74-2.6s2.73 1.16 2.73 2.6c0 1.43-1.22 2.58-2.73 2.58s-2.74-1.15-2.74-2.58\"/>\n</g>\n<g id=\"Castile\" fill=\"#c8b100\" stroke-width=\"0.46\">\n<path fill=\"#ad1519\" stroke-width=\"0.52\" d=\"m200.12 281.25h50.18v-55.72h-50.18v55.72z\"/>\n<path d=\"m217.34 238.41h-0.92v-0.92h-1.62v3.69h1.62v2.55h-3.47v7.39h1.85v14.79h-3.7v7.63h28.42v-7.63h-3.69v-14.79h1.85v-7.39h-3.47v-2.55h1.62v-3.69h-1.62v0.92h-0.93v-0.92h-1.61v0.92h-1.16v-0.92h-1.62v3.69h1.62v2.55h-3.46v-8.09h1.84v-3.7h-1.84v0.93h-0.93v-0.93h-1.62v0.93h-0.92v-0.93h-1.85v3.7h1.85v8.09h-3.47v-2.55h1.62v-3.69h-1.62v0.92h-0.92v-0.92h-1.85v0.92zm-6.24 35.13h28.42m-28.42-1.85h28.42m-28.42-1.85h28.42m-28.42-1.85h28.42m-28.42-2.08h28.42m-24.72-1.62h21.03m-21.03-1.85h21.03m-21.03-2.08h21.03m-21.03-1.84h21.03m-21.03-1.85h21.03m-21.03-1.85h21.03m-21.03-1.85h21.03m-22.88-1.85h24.73m-24.73-1.85h24.73m-24.73-1.85h24.73m-24.73-1.84h24.73m-21.26-1.85h17.79m-10.63-1.85h3.47m-3.47-1.85h3.47m-3.47-1.85h3.47m-3.47-1.85h3.47m-5.32-2.31h7.16m-12.47 7.86h3.69m-5.31-2.31h6.93m-6.93 33.97v-1.85m0-1.85v-1.85m-1.85 1.85v1.85m3.47 0v-1.85m1.84 3.7v-1.85m0-1.85v-1.85m0-2.08v-1.62m0-1.85v-2.08m-1.84 7.63v-2.08m-3.47 2.08v-2.08m7.16 0v2.08m1.62-2.08v-1.62m-5.31-1.85v1.85m3.69-1.85v1.85m3.47-1.85v1.85m-1.85-1.85v-2.08m1.85-1.84v1.84m0-5.54v1.85m-1.85-3.7v1.85m1.85-3.7v1.85m-3.47-1.85v1.85m-3.69-1.85v1.85m-1.62-3.7v1.85m3.46-1.85v1.85m3.47-1.85v1.85m1.85-3.7v1.85m-3.47-1.85v1.85m-3.69-1.85v1.85m-1.62-3.69v1.84m6.93-1.84v1.84m-3.47-5.54v1.85m15.95-1.85h-3.7m5.32-2.31h-6.94m6.94 33.97v-1.85m0-1.85v-1.85m1.85 1.85v1.85m-3.47 0v-1.85m-1.85 3.7v-1.85m0-1.85v-1.85m0-2.08v-1.62m0-1.85v-2.08m1.85 7.63v-2.08m3.47 2.08v-2.08m-7.17 0v2.08m-1.62-2.08v-1.62m5.32-1.85v1.85m-3.7-1.85v1.85m-3.46-1.85v1.85m1.84-1.85v-2.08m-1.84-1.84v1.84m0-5.54v1.85m1.84-3.7v1.85m-1.84-3.7v1.85m3.46-1.85v1.85m3.7-1.85v1.85m1.62-3.7v1.85m-3.47-1.85v1.85m-3.47-1.85v1.85m-1.84-3.7v1.85m3.46-1.85v1.85m3.7-1.85v1.85m1.62-3.69v1.84m-6.94-1.84v1.84m3.47-5.54v1.85m-7.16 18.71v-2.08m0-5.54v-1.85m0 5.55v-1.85m0-5.55v-1.85m0-1.85v-1.84m0-3.7v-1.85m0-1.85v-1.85m-8.78 4.85h3.69m3.47-5.54h3.47m3.46 5.54h3.7\"/>\n<path d=\"m230.05 273.54v-4.86c0-0.92-0.46-3.7-4.85-3.7-4.16 0-4.62 2.78-4.62 3.7v4.86h9.47z\"/>\n<path d=\"m222.19 268.91l-2.31-0.23c0-0.92 0.23-2.31 0.93-2.77l2.08 1.62c-0.23 0.23-0.7 0.92-0.7 1.38z\"/>\n<path d=\"m226.12 266.6l1.16-2.08c-0.46-0.23-1.39-0.46-2.08-0.46-0.46 0-1.39 0.23-1.85 0.46l1.15 2.08h1.62z\"/>\n<path d=\"m228.43 268.91l2.31-0.23c0-0.92-0.23-2.31-0.92-2.77l-2.08 1.62c0.23 0.23 0.69 0.92 0.69 1.38z\"/>\n<path d=\"m221.73 260.83v-5.09c0-1.38-0.92-2.54-2.54-2.54s-2.54 1.16-2.54 2.54v5.09h5.08z\"/>\n<path d=\"m228.89 260.83v-5.09c0-1.38 0.93-2.54 2.55-2.54 1.61 0 2.54 1.16 2.54 2.54v5.09h-5.09z\"/>\n<path d=\"m220.11 248.35l0.23-4.62h-4.39l0.47 4.62h3.69z\"/>\n<path d=\"m227.05 248.35l0.46-4.62h-4.39l0.23 4.62h3.7z\"/>\n<path d=\"m230.51 248.35l-0.46-4.62h4.62l-0.46 4.62h-3.7z\"/>\n<g fill=\"#0039f0\" stroke=\"none\">\n<path d=\"m228.43 273.54v-4.16c0-0.7-0.46-2.78-3.23-2.78-2.54 0-3.01 2.08-3.01 2.78v4.16h6.24z\"/>\n<path d=\"m221.27 260.36v-4.39c0-1.15-0.69-2.31-2.08-2.31s-2.08 1.16-2.08 2.31v4.39h4.16z\"/>\n<path d=\"m229.36 260.36v-4.39c0-1.15 0.69-2.31 2.08-2.31 1.38 0 2.08 1.16 2.08 2.31v4.39h-4.16z\"/>\n</g>\n</g>\n<g id=\"Leon\">\n<path fill=\"#ccc\" d=\"m250.28 281.25h50.32v-55.72h-50.32v55.72z\"/>\n<path fill=\"#db4446\" stroke-width=\"0.39\" d=\"m275.93 239.26l0.05-0.62 0.09-0.34s-1.61 0.13-2.46-0.11-1.61-0.59-2.4-1.25c-0.79-0.68-1.1-1.1-1.67-1.18-1.36-0.22-2.4 0.4-2.4 0.4s1.02 0.37 1.78 1.31 1.59 1.41 1.95 1.53c0.59 0.18 2.66 0.05 3.22 0.07 0.57 0.03 1.84 0.19 1.84 0.19z\"/>\n<g fill=\"none\" stroke-width=\"0.39\">\n<path fill=\"#ed72aa\" d=\"m283.46 237s0.01 0.72 0.08 1.4c0.06 0.67-0.22 1.24-0.11 1.61s0.16 0.66 0.3 0.93c0.14 0.26 0.21 0.94 0.21 0.94s-0.38-0.28-0.74-0.54c-0.35-0.27-0.6-0.44-0.6-0.44s0.07 0.72 0.1 1.03c0.04 0.31 0.22 0.89 0.51 1.24 0.29 0.33 0.87 0.89 1.05 1.33 0.18 0.45 0.14 1.44 0.14 1.44s-0.46-0.75-0.87-0.89c-0.39-0.14-1.26-0.62-1.26-0.62s0.79 0.79 0.79 1.55c0 0.75-0.32 1.6-0.32 1.6s-0.36-0.68-0.83-1.12c-0.47-0.45-1.13-0.9-1.13-0.9s0.52 1.17 0.52 1.95c0 0.79-0.15 2.47-0.15 2.47s-0.39-0.64-0.79-0.96c-0.4-0.31-0.87-0.58-1.02-0.78-0.14-0.21 0.48 0.64 0.54 1.16 0.07 0.51 0.32 2.35 1.92 4.69 0.94 1.37 2.39 3.77 5.5 2.98 3.11-0.78 1.96-4.97 1.3-6.92-0.65-1.95-0.98-4.11-0.94-4.87 0.04-0.75 0.58-2.97 0.51-3.39-0.07-0.41-0.24-2 0.14-3.28 0.4-1.33 0.73-1.85 0.95-2.4 0.21-0.55 0.39-0.86 0.46-1.34s0.07-1.37 0.07-1.37 0.58 1.06 0.73 1.44c0.14 0.38 0.14 1.5 0.14 1.5s0.11-1.12 0.98-1.67 1.88-1.13 2.13-1.44 0.33-0.51 0.33-0.51-0.08 1.92-0.62 2.67c-0.36 0.49-1.77 2.09-1.77 2.09s0.73-0.28 1.23-0.3c0.51-0.04 0.87 0 0.87 0s-0.62 0.48-1.41 1.64c-0.8 1.16-0.47 1.26-1.05 2.22s-1.05 1-1.78 1.58c-1.08 0.87-0.5 4.34-0.36 4.86 0.15 0.51 2.03 4.76 2.07 5.79 0.03 1.03 0.21 3.33-1.6 4.8-1.16 0.95-3.07 0.96-3.51 1.23-0.43 0.28-1.29 1.13-1.29 2.91 0 1.79 0.64 2.06 1.15 2.51 0.51 0.44 1.16 0.2 1.3 0.55 0.15 0.34 0.22 0.54 0.44 0.75 0.21 0.2 0.36 0.44 0.29 0.82-0.08 0.38-0.91 1.23-1.2 1.85-0.29 0.61-0.87 2.23-0.87 2.47s-0.07 0.99 0.18 1.37c0 0 0.91 1.06 0.29 1.26-0.4 0.14-0.78-0.25-0.97-0.2-0.54 0.14-0.83 0.47-0.98 0.45-0.36-0.07-0.36-0.25-0.4-0.76-0.03-0.51-0.01-0.72-0.17-0.72-0.22 0-0.33 0.18-0.37 0.45s-0.04 0.89-0.29 0.89-0.61-0.45-0.83-0.55-0.83-0.2-0.87-0.48c-0.03-0.27 0.36-0.85 0.76-0.96 0.4-0.1 0.76-0.3 0.51-0.51-0.26-0.2-0.51-0.2-0.76 0-0.25 0.21-0.79 0.04-0.76-0.27 0.04-0.31 0.11-0.69 0.07-0.86-0.03-0.17-0.47-0.51 0.1-0.82 0.59-0.31 0.84 0.27 1.42 0.17s0.86-0.31 1.08-0.65 0.18-1.06-0.22-1.5c-0.39-0.45-0.79-0.52-0.94-0.8-0.14-0.27-0.36-0.92-0.36-0.92s0.11 1.2 0.04 1.37-0.04 0.89-0.04 0.89-0.39-0.45-0.72-0.79c-0.32-0.34-0.65-1.37-0.65-1.37s-0.03 0.96-0.03 1.34c0 0.37 0.43 0.72 0.29 0.86-0.15 0.13-0.83-0.72-1.02-0.86-0.18-0.14-0.76-0.58-1.01-1.06s-0.44-1.16-0.51-1.41c-0.07-0.24-0.19-1.31-0.07-1.58 0.18-0.4 0.47-1.13 0.47-1.13h-1.41c-0.76 0-1.3-0.23-1.59 0.28s-0.15 1.54 0.21 2.88c0.37 1.33 0.58 1.98 0.48 2.22-0.11 0.24-0.58 0.79-0.76 0.89-0.19 0.11-0.69 0.07-0.91-0.03-0.21-0.1-0.57-0.27-1.26-0.27s-1.12 0.03-1.37-0.03c-0.26-0.07-0.88-0.38-1.17-0.31s-0.79 0.32-0.65 0.72c0.22 0.61-0.21 0.75-0.51 0.72-0.29-0.04-0.53-0.14-0.9-0.24-0.36-0.11-0.9 0-0.83-0.42 0.07-0.41 0.22-0.44 0.4-0.74 0.18-0.32 0.25-0.52 0.04-0.54-0.25-0.02-0.51-0.05-0.7 0.11-0.2 0.16-0.51 0.51-0.76 0.38-0.26-0.14-0.46-0.43-0.46-1.08 0-0.64-0.68-1.2-0.05-1.17 0.62 0.03 1.41 0.48 1.55 0.13s0.06-0.51-0.28-0.78-0.76-0.43-0.31-0.77c0.45-0.35 0.56-0.35 0.74-0.54 0.17-0.18 0.41-0.79 0.73-0.64 0.62 0.3 0.02 0.73 0.65 1.42 0.62 0.69 1.01 0.94 2.06 0.83 1.04-0.11 1.33-0.24 1.33-0.54 0-0.29-0.09-0.82-0.12-1.04-0.02-0.21 0.15-0.99 0.15-0.99s-0.48 0.3-0.63 0.59c-0.13 0.29-0.42 0.8-0.42 0.8s-0.11-0.6-0.08-1.09c0.02-0.29 0.12-0.79 0.11-0.89-0.03-0.27-0.23-0.94-0.23-0.94s-0.16 0.73-0.28 0.94c-0.11 0.21-0.16 1.07-0.16 1.07s-0.67-0.58-0.48-1.55c0.13-0.75-0.12-1.74 0.11-2.06 0.22-0.33 0.75-1.64 2.06-1.69 1.3-0.05 2.31 0.05 2.77 0.03 0.45-0.03 2.06-0.33 2.06-0.33s-2.97-1.52-3.64-1.98c-0.68-0.45-1.73-1.63-2.07-2.16-0.34-0.54-0.65-1.58-0.65-1.58s-0.53 0.02-1.02 0.29c-0.48 0.27-0.96 0.67-1.24 0.99s-0.73 1.05-0.73 1.05 0.08-0.94 0.08-1.23-0.06-0.86-0.06-0.86-0.33 1.28-1.01 1.76c-0.68 0.49-1.47 1.15-1.47 1.15s0.08-0.71 0.08-0.88c0-0.16 0.17-0.99 0.17-0.99s-0.48 0.72-1.21 0.86c-0.74 0.13-1.81 0.11-1.9 0.56-0.08 0.45 0.2 1.07 0.03 1.39s-0.54 0.54-0.54 0.54-0.42-0.35-0.79-0.38c-0.36-0.03-0.71 0.16-0.71 0.16s-0.31-0.4-0.19-0.67c0.11-0.26 0.67-0.66 0.54-0.83-0.15-0.16-0.6 0.06-0.88 0.19-0.28 0.14-0.88 0.27-0.82-0.19 0.05-0.45 0.2-0.72 0.05-1.04-0.14-0.32-0.05-0.53 0.18-0.61 0.22-0.08 1.12 0.02 1.21-0.19 0.08-0.21-0.22-0.48-0.82-0.61-0.59-0.14-0.88-0.49-0.57-0.78 0.32-0.3 0.4-0.38 0.54-0.64 0.14-0.27 0.2-0.76 0.74-0.51 0.53 0.24 0.42 0.83 0.99 1.01 0.56 0.19 1.89-0.08 2.17-0.24s1.19-0.83 1.5-0.99c0.31-0.15 1.61-1.12 1.61-1.12s-0.76-0.53-1.05-0.8c-0.28-0.27-0.78-0.91-1.04-1.05-0.25-0.13-1.5-0.61-1.92-0.64-0.42-0.02-1.72-0.48-1.72-0.48s0.59-0.19 0.79-0.35c0.19-0.16 0.64-0.56 0.87-0.53 0.22 0.02 0.28 0.02 0.28 0.02s-1.21-0.05-1.47-0.13c-0.25-0.08-0.99-0.54-1.27-0.54s-0.84 0.11-0.84 0.11 0.76-0.48 1.38-0.59c0.62-0.1 1.1-0.08 1.1-0.08s-0.96-0.27-1.19-0.58c-0.22-0.33-0.45-0.8-0.62-1.02-0.17-0.21-0.28-0.56-0.59-0.59s-0.85 0.38-1.16 0.35-0.54-0.22-0.57-0.67c-0.02-0.46 0-0.3-0.1-0.54-0.12-0.24-0.57-0.8-0.15-0.93 0.43-0.14 1.33 0.08 1.42-0.08 0.08-0.16-0.48-0.65-0.85-0.83-0.37-0.19-0.96-0.51-0.65-0.78 0.31-0.26 0.62-0.37 0.79-0.61s0.37-0.91 0.74-0.7c0.36 0.21 0.87 1.26 1.16 1.18 0.28-0.08 0.3-0.83 0.25-1.15-0.06-0.32 0-0.88 0.28-0.83s0.51 0.43 0.96 0.46c0.45 0.02 1.13-0.11 1.07 0.21-0.05 0.32-0.31 0.71-0.62 1.06-0.3 0.36-0.45 1.05-0.25 1.5 0.2 0.46 0.71 1.19 1.16 1.48s1.3 0.51 1.84 0.85c0.53 0.35 1.78 1.34 2.2 1.45s0.85 0.32 0.85 0.32 0.48-0.21 1.13-0.21 2.14 0.1 2.71-0.14 1.3-0.64 1.08-1.15c-0.23-0.51-1.47-0.96-1.36-1.36s0.57-0.43 1.33-0.46c0.76-0.02 1.8 0.14 2-0.94 0.2-1.06 0.26-1.68-0.81-1.92-1.08-0.24-1.87-0.27-2.07-1.04-0.2-0.78-0.39-0.97-0.17-1.18 0.23-0.21 0.62-0.32 1.41-0.37 0.8-0.06 1.7-0.06 1.96-0.25 0.25-0.18 0.3-0.69 0.61-0.91 0.31-0.21 1.53-0.4 1.53-0.4s1.46 0.71 2.8 1.71c1.21 0.9 2.3 2.23 2.3 2.23\"/>\n<path d=\"m269 243.39s-0.8 0.23-1.1 0.67c-0.37 0.53-0.34 1.07-0.34 1.07s0.68-0.56 1.56-0.33c0.87 0.24 0.96 0.33 1.33 0.3s1.27-0.35 1.27-0.35-0.74 0.86-0.65 1.45c0.08 0.58 0.19 0.85 0.17 1.15-0.06 0.72-0.6 1.61-0.6 1.61s0.31-0.19 1.05-0.35c0.73-0.16 1.36-0.51 1.75-0.81 0.39-0.29 0.9-1.02 0.9-1.02s-0.16 1 0 1.42c0.17 0.44 0.23 1.67 0.23 1.67s0.47-0.42 0.85-0.62c0.19-0.11 0.7-0.38 0.9-0.7 0.14-0.22 0.32-1.06 0.32-1.06s0.11 0.9 0.39 1.34c0.28 0.42 0.7 1.74 0.7 1.74s0.29-0.86 0.6-1.21 0.68-0.8 0.7-1.07c0.03-0.27-0.08-0.85-0.08-0.85l0.39 0.85m-11.41 0.61s0.48-0.83 0.93-1.1c0.46-0.26 1.08-0.74 1.25-0.8 0.16-0.05 0.9-0.46 0.9-0.46m0.99 5.17s1.09-0.55 1.41-0.75c0.68-0.4 1.16-1.12 1.16-1.12\"/>\n<path fill=\"none\" stroke-width=\"0.26\" d=\"m282.57 240.9s-0.34-0.48-0.42-0.65c-0.09-0.15-0.23-0.48-0.23-0.48\"/>\n<path fill=\"none\" d=\"m278.33 257.41s2.04 1.26 1.98 2.31c-0.06 1.04-1.13 2.41-1.13 2.41\"/>\n</g>\n<path fill=\"#000\" stroke-width=\"0.26\" d=\"m273.05 236.24s-0.17-0.48-0.2-0.62c-0.03-0.13-0.12-0.29-0.12-0.29s0.88 0 0.85 0.27c-0.02 0.27-0.28 0.27-0.34 0.37-0.05 0.11-0.19 0.27-0.19 0.27z\"/>\n<path fill=\"#000\" stroke-width=\"0.05\" d=\"m277.06 234.85l-0.06-0.43s0.77 0 1.13 0.26c0.57 0.4 0.93 1.02 0.91 1.05-0.1 0.09-0.54-0.27-0.85-0.37 0 0-0.23 0.05-0.45 0.05-0.23 0-0.34-0.11-0.37-0.21-0.03-0.12 0.03-0.3 0.03-0.3l-0.34-0.05z\"/>\n<g fill=\"#000\" stroke-width=\"0.26\">\n<path d=\"m273.08 240.14l0.33-0.53 0.34 0.49-0.67 0.04\"/>\n<path d=\"m273.89 240.12l0.4-0.53 0.43 0.48-0.83 0.05\"/>\n<path d=\"m273.53 236.83l0.82 0.29-0.74 0.38-0.08-0.67\"/>\n<path d=\"m274.52 237.1l0.73 0.18-0.59 0.46-0.14-0.64\"/>\n</g>\n<g fill=\"#db4446\" stroke-width=\"0.39\">\n<path d=\"m261.88 236.08s0.48 0.34 0.85 0.4c0.37 0.05 0.76 0.05 0.82 0.05 0.05 0 0.17-0.54 0.11-0.91-0.2-1.2-1.3-1.47-1.3-1.47s0.33 0.73 0.17 1.07c-0.23 0.48-0.65 0.86-0.65 0.86z\"/>\n<path d=\"m259.59 237.12s-0.43-0.77-1.33-0.67c-0.9 0.11-1.5 0.81-1.5 0.81s1-0.03 1.25 0.13c0.37 0.24 0.48 0.86 0.48 0.86s0.54-0.32 0.71-0.54c0.16-0.21 0.39-0.59 0.39-0.59z\"/>\n<path d=\"m258.49 240.25s-0.77 0.11-1.19 0.59c-0.43 0.49-0.36 1.4-0.36 1.4s0.5-0.54 0.95-0.54c0.46 0 1.16 0.16 1.16 0.16s-0.22-0.56-0.22-0.8-0.34-0.81-0.34-0.81z\"/>\n<path d=\"m261.06 250.37s-0.42-0.45-1.16-0.32c-0.74 0.14-1.22 0.97-1.22 0.97s0.63-0.17 1-0.08c0.36 0.08 0.62 0.45 0.62 0.45s0.34-0.29 0.45-0.45 0.31-0.57 0.31-0.57z\"/>\n<path d=\"m260.21 253.34s-0.62-0.1-1.16 0.33c-0.53 0.43-0.56 1.25-0.56 1.25s0.51-0.43 0.91-0.37c0.39 0.05 0.87 0.27 0.87 0.27s0.08-0.51 0.11-0.64c0.09-0.38-0.17-0.84-0.17-0.84z\"/>\n<path d=\"m261.66 256.08s-0.05 0.79 0.33 1.28c0.4 0.51 1.13 0.59 1.13 0.59s-0.24-0.53-0.28-0.8c-0.06-0.4 0.34-0.75 0.34-0.75s-0.37-0.38-0.73-0.38c-0.37 0-0.79 0.06-0.79 0.06z\"/>\n<path d=\"m269 263.12s-0.51-0.64-1.21-0.62c-0.71 0.03-1.45 0.69-1.45 0.69s0.88-0.07 1.11 0.22c0.23 0.3 0.45 0.67 0.45 0.67s0.4-0.21 0.57-0.35c0.17-0.13 0.53-0.61 0.53-0.61z\"/>\n<path d=\"m266.83 265.93s-0.93-0.14-1.39 0.35c-0.45 0.48-0.42 1.36-0.42 1.36s0.56-0.61 1.07-0.56 1.08 0.32 1.08 0.32-0.09-0.53-0.15-0.78c-0.05-0.24-0.19-0.69-0.19-0.69z\"/>\n<path d=\"m268.84 268.9s-0.46 0.64-0.12 1.15 1.05 0.75 1.05 0.75-0.26-0.37-0.14-0.8c0.09-0.34 0.67-0.8 0.67-0.8l-1.46-0.3z\"/>\n<path d=\"m281.24 270.11s-0.81-0.19-1.27 0.08c-0.45 0.26-0.82 1.39-0.82 1.39s0.74-0.62 1.28-0.54c0.53 0.08 0.93 0.3 0.93 0.3s0.08-0.46 0.02-0.78c-0.03-0.19-0.14-0.45-0.14-0.45z\"/>\n<path d=\"m281.64 273.1s-0.62 0.64-0.4 1.18c0.23 0.54 0.62 1.1 0.62 1.1s-0.02-0.8 0.23-1.02c0.37-0.32 1.05-0.37 1.05-0.37s-0.54-0.48-0.71-0.54c-0.17-0.05-0.79-0.35-0.79-0.35z\"/>\n<path d=\"m284.75 274.04s-0.31 0.78 0.28 1.28c0.59 0.52 1.11 0.57 1.11 0.57s-0.46-0.81-0.32-1.23c0.15-0.45 0.54-0.72 0.54-0.72s-0.74-0.25-0.85-0.22c-0.11 0.02-0.76 0.32-0.76 0.32z\"/>\n</g>\n<g fill=\"#c8b100\" stroke-width=\"0.26\">\n<path d=\"m282.88 232.71l-0.29 0.02c-0.01 0.03-0.14 0.24-0.26 0.35-0.26 0.25-0.65 0.28-0.86 0.07-0.11-0.11-0.16-0.26-0.14-0.41-0.17 0.09-0.35 0.09-0.51-0.01-0.26-0.15-0.32-0.5-0.14-0.79 0.03-0.06 0.06-0.14 0.11-0.18l-0.02-0.32-0.35 0.08-0.1 0.19c-0.22 0.25-0.54 0.31-0.7 0.17-0.08-0.07-0.14-0.26-0.13-0.27 0 0.01-0.09 0.09-0.17 0.11-0.54 0.13-0.75-1.05-0.77-1.35l-0.17 0.25s0.16 0.7 0.08 1.3c-0.08 0.59-0.29 1.19-0.29 1.19 0.74 0.19 1.86 0.8 2.97 1.65s1.98 1.78 2.34 2.42c0 0 0.58-0.32 1.18-0.51s1.36-0.2 1.36-0.2l0.22-0.21c-0.32 0.05-1.58 0.1-1.56-0.43 0-0.08 0.07-0.18 0.08-0.18-0.01 0.01-0.21-0.01-0.3-0.06-0.18-0.13-0.18-0.43 0.02-0.69l0.18-0.13 0.01-0.34-0.34 0.05c-0.03 0.04-0.11 0.09-0.15 0.13-0.27 0.23-0.65 0.25-0.86 0.03-0.13-0.12-0.17-0.29-0.11-0.46-0.16 0.04-0.32 0.03-0.45-0.05-0.26-0.15-0.31-0.52-0.11-0.8 0.09-0.14 0.28-0.31 0.31-0.32l-0.07-0.3h-0.01z\"/>\n<g fill=\"#000\" stroke-width=\"0.05\">\n<path d=\"m280.63 233.4c0.05-0.07 0.15-0.06 0.23 0s0.1 0.16 0.06 0.21c-0.05 0.06-0.15 0.06-0.24-0.01-0.07-0.05-0.1-0.15-0.05-0.2z\"/>\n<path d=\"m281.58 234.19l-0.33-0.25c-0.06-0.04-0.07-0.12-0.04-0.16 0.04-0.04 0.12-0.04 0.18 0l0.33 0.26 0.33 0.25c0.05 0.04 0.08 0.12 0.04 0.16s-0.12 0.04-0.18 0l-0.33-0.26\"/>\n<path d=\"m279.84 233l-0.26-0.15c-0.07-0.04-0.1-0.12-0.07-0.17s0.11-0.06 0.17-0.02l0.26 0.16 0.26 0.15c0.06 0.03 0.09 0.11 0.07 0.16-0.03 0.05-0.11 0.06-0.17 0.02l-0.26-0.15\"/>\n<path d=\"m278.8 232.29c0.05-0.06 0.16-0.06 0.24 0 0.08 0.07 0.1 0.16 0.05 0.22-0.05 0.05-0.15 0.05-0.23-0.01s-0.1-0.15-0.06-0.21z\"/>\n<path d=\"m282.63 234.92c0.05-0.05 0.03-0.14-0.05-0.21-0.08-0.06-0.19-0.06-0.24 0-0.04 0.05-0.02 0.15 0.06 0.21s0.18 0.06 0.23 0z\"/>\n<path d=\"m283.2 235.58l0.22 0.21c0.05 0.05 0.13 0.07 0.18 0.03 0.04-0.04 0.04-0.11-0.01-0.16l-0.21-0.21-0.22-0.21c-0.05-0.05-0.14-0.07-0.18-0.03-0.05 0.03-0.04 0.11 0.01 0.16l0.21 0.21\"/>\n<path d=\"m284.15 236.39c0.05-0.06 0.03-0.15-0.05-0.21-0.08-0.07-0.18-0.07-0.23-0.01s-0.03 0.15 0.05 0.22c0.08 0.05 0.18 0.06 0.23 0z\"/>\n</g>\n<path d=\"m281.4 230.36l-0.59 0.01-0.11 0.87 0.06 0.14 0.15-0.01 0.76-0.51-0.27-0.5\"/>\n<path d=\"m281.4 230.36l-0.59 0.01-0.11 0.87 0.06 0.14 0.15-0.01 0.76-0.51-0.27-0.5\"/>\n<path d=\"m279.8 230.84l-0.02 0.54 0.92 0.12 0.15-0.07-0.02-0.15-0.53-0.71-0.5 0.27\"/>\n<path d=\"m281.7 231.92l-0.49 0.27-0.54-0.71-0.01-0.15 0.14-0.06 0.93 0.11-0.03 0.54\"/>\n<path d=\"m280.51 231.25c0.08-0.13 0.26-0.17 0.39-0.09 0.14 0.07 0.18 0.24 0.1 0.37s-0.26 0.17-0.39 0.09c-0.14-0.08-0.18-0.24-0.1-0.37z\"/>\n<path d=\"m278.36 230.35c-0.02 0.01-0.13-0.46-0.26-0.71-0.08-0.19-0.39-0.43-0.39-0.43 0.03-0.05 0.42-0.19 0.87 0.09 0.38 0.31-0.03 0.87-0.03 0.87s-0.09 0.14-0.19 0.18z\"/>\n<path d=\"m279.39 230.66l-0.42 0.37-0.68-0.6 0.06-0.08 0.03-0.15 0.92-0.07 0.09 0.53\"/>\n<path d=\"m278.24 230.29c0.05-0.15 0.18-0.23 0.28-0.2 0.11 0.04 0.15 0.18 0.1 0.33s-0.18 0.23-0.29 0.2c-0.11-0.04-0.15-0.18-0.09-0.33z\"/>\n<path d=\"m283.67 231.77l-0.59-0.06-0.25 0.85 0.05 0.14 0.15 0.01 0.83-0.41-0.19-0.53\"/>\n<path d=\"m282.01 232.03l-0.1 0.54 0.9 0.23 0.15-0.04 0.01-0.14-0.43-0.79-0.53 0.2\"/>\n<path d=\"m283.73 233.36l-0.53 0.2-0.42-0.78 0.01-0.15 0.15-0.03 0.89 0.23-0.1 0.53\"/>\n<path d=\"m282.65 232.54c0.1-0.12 0.28-0.13 0.4-0.04 0.13 0.09 0.15 0.26 0.05 0.38s-0.28 0.13-0.41 0.04c-0.12-0.09-0.14-0.26-0.04-0.38z\"/>\n<path d=\"m285.64 233.61l0.11 0.55-0.87 0.3-0.16-0.04-0.01-0.14 0.36-0.81 0.57 0.14\"/>\n<path d=\"m285.49 235.2l-0.56 0.13-0.31-0.83 0.04-0.15 0.15-0.02 0.85 0.35-0.17 0.52\"/>\n<path d=\"m283.97 233.66l-0.18 0.52 0.85 0.34 0.16-0.02 0.03-0.14-0.3-0.83-0.56 0.13\"/>\n<path d=\"m284.91 234.63c0.12-0.11 0.12-0.28 0.02-0.39-0.11-0.11-0.29-0.11-0.41-0.02-0.11 0.11-0.12 0.28-0.01 0.39 0.1 0.11 0.29 0.12 0.4 0.02z\"/>\n<path d=\"m286.29 236.43c0 0.01 0.5 0.03 0.79 0.09 0.2 0.04 0.52 0.27 0.52 0.27 0.06-0.04 0.12-0.42-0.28-0.79-0.39-0.28-0.88 0.22-0.88 0.22s-0.12 0.12-0.15 0.21z\"/>\n<path d=\"m285.75 235.54l-0.29 0.46 0.76 0.51 0.09-0.08 0.13-0.04-0.12-0.88-0.57 0.03\"/>\n<path d=\"m286.37 236.53c0.14-0.07 0.21-0.22 0.15-0.31s-0.22-0.1-0.36-0.02-0.2 0.22-0.14 0.31c0.05 0.09 0.21 0.1 0.35 0.02z\"/>\n</g>\n</g>\n<g id=\"inescutcheon\" stroke-width=\"0.61\">\n<ellipse fill=\"#ad1519\" cx=\"250.43\" cy=\"281.01\" rx=\"16.26\" ry=\"18.3\"/>\n<ellipse fill=\"#005bbf\" cx=\"250.44\" cy=\"280.97\" rx=\"11.44\" ry=\"13.42\"/>\n<g id=\"fdl\" fill=\"#c8b100\" stroke-width=\"0.34\">\n<path stroke-linejoin=\"round\" d=\"m245.03 271.74s-1.35 1.48-1.35 2.86c0 1.39 0.57 2.54 0.57 2.54-0.21-0.55-0.76-0.94-1.41-0.94-0.83 0-1.5 0.63-1.5 1.42 0 0.22 0.14 0.58 0.24 0.77l0.49 0.99c0.16-0.37 0.54-0.57 0.98-0.57 0.59 0 1.08 0.45 1.08 1.01 0 0.09-0.01 0.17-0.04 0.25l-1.22 0.01v1.03h1.09l-0.81 1.61 1.07-0.42 0.81 0.91 0.84-0.91 1.07 0.42-0.8-1.61h1.08v-1.03l-1.22-0.01c-0.02-0.08-0.02-0.16-0.02-0.25 0-0.56 0.47-1.01 1.06-1.01 0.44 0 0.82 0.2 0.98 0.57l0.49-0.99c0.1-0.19 0.24-0.55 0.24-0.77 0-0.79-0.67-1.42-1.49-1.42-0.66 0-1.21 0.39-1.41 0.94 0 0 0.57-1.15 0.57-2.54 0-1.38-1.39-2.86-1.39-2.86z\"/>\n<path d=\"m242.87 281.11h4.36v-1.03h-4.36v1.03z\"/>\n</g>\n<use xlink:href=\"#fdl\" x=\"10.63\"/>\n<use xlink:href=\"#fdl\" x=\"5.31\" y=\"9.14\"/>\n</g>\n</g>\n</g>\n</svg>" + } + } +}+
$:/palettes/Vanilla+
alert-background: #ffe476 +alert-border: #b99e2f +alert-highlight: #881122 +alert-muted-foreground: #b99e2f +background: #ffffff +blockquote-bar: <<colour muted-foreground>> +button-background: +button-foreground: +button-border: +code-background: #f7f7f9 +code-border: #e1e1e8 +code-foreground: #dd1144 +diff-delete-background: #ffc9c9 +diff-delete-foreground: <<colour foreground>> +diff-equal-background: +diff-equal-foreground: <<colour foreground>> +diff-insert-background: #aaefad +diff-insert-foreground: <<colour foreground>> +diff-invisible-background: +diff-invisible-foreground: <<colour muted-foreground>> +dirty-indicator: #ff0000 +download-background: #34c734 +download-foreground: <<colour background>> +dragger-background: <<colour foreground>> +dragger-foreground: <<colour background>> +dropdown-background: <<colour background>> +dropdown-border: <<colour muted-foreground>> +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: <<colour foreground>> +modal-background: <<colour background>> +modal-border: #999999 +modal-footer-background: #f5f5f5 +modal-footer-border: #dddddd +modal-header-border: #eeeeee +muted-foreground: #bbb +notification-background: #ffffdd +notification-border: #999999 +page-background: #f4f4f4 +pre-background: #f5f5f5 +pre-border: #cccccc +primary: #5778d8 +selection-background: +selection-foreground: +select-tag-background: +select-tag-foreground: +sidebar-button-foreground: <<colour foreground>> +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: <<colour tab-border-selected>> +sidebar-tab-border: <<colour tab-border>> +sidebar-tab-divider: #e4e4e4 +sidebar-tab-foreground-selected: +sidebar-tab-foreground: <<colour tab-foreground>> +sidebar-tiddler-link-foreground-hover: #444444 +sidebar-tiddler-link-foreground: #999999 +site-title-foreground: <<colour tiddler-title-foreground>> +static-alert-foreground: #aaaaaa +tab-background-selected: #ffffff +tab-background: #d8d8d8 +tab-border-selected: #d8d8d8 +tab-border: #cccccc +tab-divider: #d8d8d8 +tab-foreground-selected: <<colour tab-foreground>> +tab-foreground: #666666 +table-border: #dddddd +table-footer-background: #a8a8a8 +table-header-background: #f0f0f0 +tag-background: #ec6 +tag-foreground: #ffffff +tiddler-background: <<colour background>> +tiddler-border: <<colour background>> +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: <<colour background>> +tiddler-link-foreground: <<colour primary>> +tiddler-subtitle-foreground: #c0c0c0 +tiddler-title-foreground: #182955 +toolbar-new-button: +toolbar-options-button: +toolbar-save-button: +toolbar-info-button: +toolbar-edit-button: +toolbar-close-button: +toolbar-delete-button: +toolbar-cancel-button: +toolbar-done-button: +untagged-background: #999999 +very-muted-foreground: #888888 +wikilist-background: #e5e5e5 +wikilist-item: #fff +wikilist-info: #000 +wikilist-title: #666 +wikilist-title-svg: <<colour wikilist-title>> +wikilist-url: #aaa +wikilist-button-open: #4fb82b +wikilist-button-open-hover: green +wikilist-button-reveal: #5778d8 +wikilist-button-reveal-hover: blue +wikilist-button-remove: #d85778 +wikilist-button-remove-hover: red +wikilist-toolbar-background: #d3d3d3 +wikilist-toolbar-foreground: #888 +wikilist-droplink-dragover: rgba(255,192,192,0.5) +wikilist-button-background: #acacac +wikilist-button-foreground: #000 ++
{ + "tiddlers": { + "$:/plugins/felixhayashi/hotzone/config.js": { + "title": "$:/plugins/felixhayashi/hotzone/config.js", + "text": "/*\\\n\ntitle: $:/plugins/felixhayashi/hotzone/config.js\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n(function(){\"use strict\";exports.config={classNames:{storyRiver:\"tc-story-river\",tiddlerFrame:\"tc-tiddler-frame\",tiddlerTitle:\"tc-title\"},references:{userConfig:\"$:/config/hotzone/focusOffset\",focussedTiddlerStore:\"$:/temp/focussedTiddler\"},checkbackTime:$tw.utils.getAnimationDuration()}})();", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/hotzone/hotzone.js": { + "title": "$:/plugins/felixhayashi/hotzone/hotzone.js", + "text": "/*\\\n\ntitle: $:/plugins/felixhayashi/hotzone/hotzone.js\ntype: application/javascript\nmodule-type: startup\n\n@preserve\n\n\\*/\n(function(){\"use strict\";exports.name=\"hotzone\";exports.platforms=[\"browser\"];exports.after=[\"story\"];exports.synchronous=true;exports.startup=function(){var t=require(\"$:/plugins/felixhayashi/hotzone/config.js\").config;var e=null;var i=false;var r=document.getElementsByClassName(t.classNames.storyRiver)[0];var s=$tw.wiki.getTiddlerData(t.references.userConfig,{});var a=isNaN(parseInt(s.focusOffset))?150:parseInt(s.focusOffset);var n=function(e,i,r){if(!(e instanceof Element))return;if(!$tw.utils.hasClass(e,t.classNames.tiddlerFrame))return;var s=e.getElementsByClassName(t.classNames.tiddlerTitle)[0];if(s){var a=s.innerText||s.textContent;return a.trim()}};var o=function(t){if(!i){i=true;window.setTimeout(f,t||0)}};var l=function(e,i){$tw.wiki.addTiddler(new $tw.Tiddler({title:t.references.focussedTiddlerStore,text:e},$tw.wiki.getModificationFields()));if(i){var r=document.getElementsByClassName(\"hzone-focus\")[0];if(r){$tw.utils.removeClass(r,\"hzone-focus\")}$tw.utils.addClass(i,\"hzone-focus\")}};var f=function(){i=false;var s=$tw.wiki.getTiddler(\"$:/StoryList\");if(s&&s.fields.list.length){var o=null;var f=Number.MAX_VALUE;var d=r.children;var u=t.classNames.tiddlerFrame;for(var c=d.length;c--;){if($tw.utils.hasClass(d[c],u)){var v=d[c].getBoundingClientRect();var w=Math.min(Math.abs(a-v.top),Math.abs(a-v.bottom));if(w<f){o=d[c];f=w}}}var m=n(o);if(m!==e&&$tw.wiki.getTiddler(m)){e=m;l(e,o);return}}else if(e){e=\"\";l(e)}};var d=function(t){if(t[\"$:/HistoryList\"]){if(!$tw.wiki.tiddlerExists(\"$:/HistoryList\"))return;var e=$tw.wiki.getTiddler(\"$:/HistoryList\").fields[\"current-tiddler\"];var i=$tw.wiki.getTiddlerList(\"$:/StoryList\");var r=i.indexOf(e)>=0;if(!r)return;o($tw.utils.getAnimationDuration()+100)}else if(t[\"$:/StoryList\"]){o($tw.utils.getAnimationDuration()+100)}};var u=function(t){o(250)};$tw.wiki.addEventListener(\"change\",d);window.addEventListener(\"scroll\",u,false);u()}})();", + "type": "application/javascript", + "module-type": "startup" + }, + "$:/plugins/felixhayashi/hotzone/Configuration": { + "title": "$:/plugins/felixhayashi/hotzone/Configuration", + "text": "Please see the [[GitHub page|https://github.com/felixhayashi/TW5-HotZone]] for more information on the options.\n\nSave and reload the wiki to activate changes.\n\n<table>\n <tr>\n <th align=\"left\">Focus offset:</th>\n <td><$edit-text tiddler=\"$:/config/hotzone/focusOffset\" tag=\"input\" default=\"71px\" /></td>\n </tr>\n</table>" + }, + "$:/temp/focussedTiddler": { + "title": "$:/temp/focussedTiddler" + }, + "$:/plugins/felixhayashi/hotzone/License": { + "title": "$:/plugins/felixhayashi/hotzone/License", + "text": "This code is released under the BSD license. For the exact terms visit:\n\nhttps://github.com/felixhayashi/TW5-HotZone/blob/master/LICENSE" + }, + "$:/plugins/felixhayashi/hotzone/Readme": { + "title": "$:/plugins/felixhayashi/hotzone/Readme", + "text": "Please visit the [[GitHub page|https://github.com/felixhayashi/TW5-HotZone]] for more information." + } + } +}+
{ + "tiddlers": { + "$:/plugins/felixhayashi/respawn/respawn.js": { + "title": "$:/plugins/felixhayashi/respawn/respawn.js", + "text": "/*\\\n\ntitle: $:/plugins/felixhayashi/respawn/respawn.js\ntype: application/javascript\nmodule-type: startup\n\n@preserve\n\n\\*/\n\n(function(){\n \n /*jslint node: true, browser: true */\n /*global $tw: false */\n \"use strict\";\n \n var configTRef = \"$:/plugins/felixhayashi/respawn/config\";\n \n var changeListener = function(changedTiddlers) {\n \n if(!changedTiddlers[\"$:/StoryList\"]) return;\n \n var tObj = $tw.wiki.getTiddler(\"$:/StoryList\");\n if(tObj && !tObj.fields[\"list\"].length) {\n \n var confTObj = $tw.wiki.getTiddler(configTRef);\n var config = confTObj ? confTObj.fields : {};\n \n window.setTimeout(function() {\n $tw.rootWidget.dispatchEvent({\n type: \"tm-home\"\n });\n }, parseInt(config.delay) || 500);\n }\n \n };\n \n exports.name = \"respawn\";\n exports.platforms = [\"browser\"];\n exports.after = [\"story\"];\n exports.synchronous = true;\n \n exports.startup = function() {\n \n $tw.wiki.addEventListener(\"change\", changeListener);\n \n };\n\n})();\n", + "type": "application/javascript", + "module-type": "startup" + }, + "$:/plugins/felixhayashi/respawn/Configuration": { + "title": "$:/plugins/felixhayashi/respawn/Configuration", + "text": "<!-- The config output is not written to this tiddler! -->\n\nPlease see the [[GitHub page|https://github.com/felixhayashi/TW5-Respawn]] for more information on the options.\n\nYou may have to save and reload the wiki to activate changes.\n\n<table>\n <tr>\n <th align=\"left\">Delay (seconds):</th>\n <td>\n <$edit-text\n tiddler=\"$:/plugins/felixhayashi/respawn/config\"\n field=\"delay\"\n tag=\"input\"\n default=\"500\" />\n </td>\n </tr>\n</table>" + }, + "$:/plugins/felixhayashi/respawn/License": { + "title": "$:/plugins/felixhayashi/respawn/License", + "text": "This code is released under the BSD license. For the exact terms visit:\n\nhttps://github.com/felixhayashi/TW5-Respawn/blob/master/LICENSE" + }, + "$:/plugins/felixhayashi/respawn/Readme": { + "title": "$:/plugins/felixhayashi/respawn/Readme", + "text": "Please visit the [[GitHub page|https://github.com/felixhayashi/TW5-Respawn]] for more information." + } + } +}+
{ + "tiddlers": { + "$:/plugins/felixhayashi/tiddlymap/layout": { + "text": "\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline \n\nbody .tc-page-container-wrapper.tc-modal-displayed{-webkit-filter:inherit;-moz-filter:inherit;filter:inherit}body .tc-modal-wrapper{z-index:1010}body .tc-modal-wrapper .tc-modal-header svg{vertical-align:sub}body .tc-modal-wrapper .tc-modal-header h3{line-height:10px}body .tc-modal-wrapper .tc-modal-body{min-height:250px;max-height:70vh;padding-top:0px;padding-bottom:0px;overflow:auto}body .tc-modal-wrapper .tc-modal-footer{padding:8px}body .tc-modal-wrapper .tc-modal-footer .tmap-dialog-button{font-weight:bold}body .tc-modal-wrapper .tc-modal-footer .tmap-hidden-close-button{display:none}table.tmap-table tr:nth-child(odd),.tc-modal-body table.tmap-config-table tr:nth-child(odd){background-color:#F0F0F0}table.tmap-table tr:nth-child(even),.tc-modal-body table.tmap-config-table tr:nth-child(even){background-color:#FFFFFF}.tmap-save-canvas-preview{text-align:center}.tmap-save-canvas-preview img{background-color:white;border:1px solid lightgray;max-width:100%;max-height:100px}.tmap-list-separator{display:block;background-color:#efefef;margin:10px 0 5px 0;cursor:default;border-bottom:1px dotted gray;font-weight:bold;font-size:0.8em}.tmap-unicode-icon{width:1em;display:inline-block;text-align:center;color:black}html .tmap-link{color:#5778D8}html .tmap-link:hover{color:white;background:#5778D8}html .tmap-small-list,html .tmap-smaller-list,html .tmap-very-small-list{overflow:auto;min-height:2em;max-height:9em;display:block}html .tmap-smaller-list{max-height:7em}html .tmap-very-small-list{max-height:5empx}html .tc-tiddler-controls button.tmap-active-button svg{fill:#888888}html #tmap-node-filter-dialog #tmap-filter-tips{font-size:0.8em}html #tmap-node-filter-dialog textarea{height:100px;max-height:300px;overflow:auto;width:100%;font-size:11px;font-family:\"Courier New\", Courier, monospace}@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}){.tc-sidebar-scrollable .tmap-desktop-editor .tmap-widget:not(.tmap-fullscreen){display:none}}@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}){.tc-sidebar-scrollable .tmap-mobile-editor{display:none}.tc-modal-wrapper{z-index:1010}.tc-modal-wrapper .tc-modal{boder:1px solid #999999;left:calc(50% - 400px);width:802px}.tc-modal-wrapper .tc-modal-body{left:calc(50% - 400px);width:800px}}@-o-keyframes fadein-keyframes{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fadein-keyframes{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadein-keyframes{0%{opacity:0}100%{opacity:1}}@keyframes flash fadein-keyframes{0%{opacity:0}100%{opacity:1}}@-o-keyframes fadeout-keyframes{0%{opacity:1}100%{opacity:0}}@-moz-keyframes fadeout-keyframes{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes fadeout-keyframes{0%{opacity:1}100%{opacity:0}}@keyframes flash fadeout-keyframes{0%{opacity:1}100%{opacity:0}}.tmap-config-widget{background:#F0F0F0;padding:5px;margin:5px 0;box-sizing:border-box;display:block}.tmap-config-widget .vis-network{display:none}.tmap-config-widget .vis-configuration-wrapper{width:100%}.tmap-config-widget .vis-configuration-wrapper .vis-config-rangeinput{height:inherit;margin-left:4px}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item{width:100%;height:inherit;background:none;padding-left:0px;left:0}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item.tmap-vis-config-item-active .vis-config-label::after{content:\"(inherited)\";position:absolute;display:inline-block;margin-left:10px;-o-animation:fadein-keyframes 1s;-moz-animation:fadein-keyframes 1s;-webkit-animation:fadein-keyframes 1s;animation:fadein-keyframes 1s;content:\"✔\";color:green;font-weight:bold;font-size:15px}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item button.tmap-config-item-reset{vertical-align:top;margin-left:5px}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item .vis-config-range{width:150px}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item .vis-config-range::-moz-range-track{width:150px !important}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item .vis-config-label{width:150px}.tmap-config-widget::after{clear:both;content:\"\";display:block}.tmap-flash-message{border:1px solid lightgray;padding:5px;margin:6px 0;display:block;color:#333333}.tmap-flash-message.tmap-info,.tmap-flash-message.tmap-plain,.tmap-flash-message.tmap-neutral{background:#F0F0F0}.tmap-flash-message.tmap-info::before,.tmap-flash-message.tmap-plain::before,.tmap-flash-message.tmap-neutral::before{content:\"i\";display:inline-block;border-radius:50%;width:0.8em;border:2px solid;font-family:serif;text-align:center;height:0.8em;font-weight:bold;line-height:0.8em;vertical-align:text-top;margin-right:2px}.tmap-flash-message.tmap-valid,.tmap-flash-message.tmap-success{background:#D1EED4}.tmap-flash-message.tmap-valid::before,.tmap-flash-message.tmap-success::before{content:\"i\";display:inline-block;border-radius:50%;width:0.8em;border:2px solid;font-family:serif;text-align:center;height:0.8em;font-weight:bold;line-height:0.8em;vertical-align:text-top;margin-right:2px}.tmap-flash-message.tmap-warning{background:#FFF6D1}.tmap-flash-message.tmap-warning::before{content:\"\";display:inline-block;background:url(<<tmap \"datauri\" \"$:/core/images/warning\" \"\">>);display:inline-block;width:1em;height:1em;background-size:100% 100%;vertical-align:text-top;margin-right:2px}.tmap-flash-message.tmap-malformed,.tmap-flash-message.tmap-invalid,.tmap-flash-message.tmap-danger{background:#EED5D1}.tmap-flash-message.tmap-malformed::before,.tmap-flash-message.tmap-invalid::before,.tmap-flash-message.tmap-danger::before{content:\"\";display:inline-block;background:url(<<tmap \"datauri\" \"$:/core/images/warning\" \"\">>);display:inline-block;width:1em;height:1em;background-size:100% 100%;vertical-align:text-top;margin-right:2px}.tmap-widget{background:#FFFFFF;width:auto;position:relative;border:1px dotted lightgray;padding:2px;color:#666;display:block}.tmap-widget.tmap-click-to-use:not(.tmap-fullscreen) .vis-network:not(.vis-active){cursor:pointer}.tmap-widget.tmap-click-to-use:not(.tmap-fullscreen) .vis-network:not(.vis-active) .vis-navigation{display:none}.tmap-widget.tmap-click-to-use:not(.tmap-fullscreen) .vis-network:not(.vis-active):hover:before{color:gray;background:white;content:\"Click to use\";font-size:14px;font-weight:bold;right:calc(50% - 65px - 5px);position:absolute;text-align:center;top:calc(50% - 14px - 5px);width:130px;z-index:2000;padding:5px;pointer-events:none;background-color:rgba(255,255,255,0.3)}.tmap-widget .tmap-loading-bar{display:none;position:absolute;text-align:center;font-size:2em;padding:10px;top:50%;background:rgba(245,245,245,0.5);z-index:1;width:250px;margin:auto;left:0px;right:0px}.tmap-widget .tmap-vis-graph{height:calc(100% - 35px)}.tmap-widget.tmap-no-buttons .vis-navigation{display:none}.tmap-widget.tmap-advanced-editor .tmap-topbar{background:#d6d9d8}.tmap-widget.tmap-advanced-editor .tmap-topbar .tmap-active-button{color:#488DCD}.tmap-widget.tmap-advanced-editor .tmap-topbar .tmap-active-button svg{fill:#488DCD}.tmap-widget.tmap-advanced-editor .tmap-topbar .tmap-unicode-button{font-size:1.5em;vertical-align:bottom}.tmap-widget .tmap-menu-bar{width:100%}.tmap-widget .tmap-topbar{background:#F5F5F5;border-bottom:1px solid lightgray;padding:3px 5px;height:35px;position:relative}.tmap-widget .tmap-topbar .tmap-view-label{width:100%;text-align:center;font-weight:bold;padding-top:3px}.tmap-widget .tmap-topbar .tmap-focus-button{position:absolute;right:10px;top:6px}.tmap-widget .tmap-topbar .tmap-focus-button input{width:140px}.tmap-widget .tmap-topbar .tmap-search-dropdown{position:relative}.tmap-widget .tmap-topbar .tmap-search-dropdown .tc-drop-down{position:absolute;z-index:999;right:0px}.tmap-widget .tmap-topbar [hidden]{display:none}.tmap-widget .tmap-topbar select{width:30%;max-width:200px;word-wrap:initial;padding:0px}.tmap-widget .tmap-topbar button{line-height:inherit;color:#666}.tmap-widget .tmap-topbar>*{display:inline-block}.tmap-widget .tmap-topbar .tmap-separator:after{color:#bdbdbd;margin:3px;content:\" | \"}.tmap-widget .tmap-topbar .tc-edit-add-tag .tc-add-tag-name input{width:70%}.tmap-widget .tmap-topbar .tc-sidebar-header{text-shadow:none}.tmap-widget .tmap-topbar .tc-edit-tags{border:none;padding:inherit;box-shadow:none}.tmap-widget.tmap-static-mode .tmap-topbar{height:initial}.tmap-widget.tmap-static-mode .tmap-vis-graph{text-align:center;cursor:not-allowed}.tmap-widget.tmap-static-mode .tmap-vis-graph:not(.tmap-graph-placeholder):hover::before{box-shadow:10px 10px 5px lightgray;color:gray;background:white;content:\"Static\";font-size:18px;font-weight:bold;left:50%;margin-left:-100px;position:absolute;text-align:center;top:50px;width:200px;z-index:2000;padding:5px;pointer-events:none}.tmap-widget.tmap-static-mode .tmap-vis-graph.tmap-graph-placeholder::before{content:\"No Preview\";display:block;text-align:center;padding:20px}.tmap-widget .tc-drop-down{min-width:170px;max-width:210px;padding:5px;margin:5px 0}.tmap-widget .tc-drop-down button,.tmap-widget .tc-drop-down a{padding:0 2px;text-decoration:none}.tmap-widget .tc-drop-down button:hover,.tmap-widget .tc-drop-down a:hover{color:#ffffff}.tmap-widget .tc-drop-down button svg,.tmap-widget .tc-drop-down a svg{vertical-align:middle}.tmap-widget .tc-block-dropdown{width:370px;min-width:370px;padding:5px;margin:15px 0 0 -370px}.tmap-widget .tc-block-dropdown a{display:inline;padding:0px}.tmap-widget.tmap-plain-design{border:none;padding:0px}.tmap-widget.tmap-plain-design .tmap-topbar{display:none}.tc-sidebar-scrollable .tmap-widget{position:absolute;min-height:350px}.tmap-widget div.vis-network .vis-edit-mode{height:26px}.tmap-widget div.vis-network .vis-manipulation{height:34px;border-top:1px solid #d6d9d8;background:rgba(245,245,245,0.7)}.tmap-widget div.vis-network .vis-navigation .vis-button.tmap-button-enabled{right:15px}.tmap-widget div.vis-network .vis-navigation .vis-button.tmap-button-enabled.tmap-fullscreen-button{bottom:90px;background-image:url(<<tmap \"datauri\" \"$:/plugins/felixhayashi/tiddlymap/media/fullscreen.png\" \"\">>)}.tmap-widget div.vis-network .vis-navigation .vis-button.tmap-button-enabled.tmap-halfscreen-button{bottom:130px;background-image:url(<<tmap \"datauri\" \"$:/plugins/felixhayashi/tiddlymap/media/halfscreen.png\" \"\">>)}.tmap-widget div.vis-network .vis-navigation .vis-button:hover{box-shadow:0 0 3px 3px rgba(75,75,75,0.3)}.tmap-widget div.vis-network .vis-navigation .vis-button:hover:before{background:beige;display:block;color:black;padding:3px;position:relative;border:1px solid lightgray;width:80px;left:-100px;top:-50px;z-index:1000;text-align:center}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-up:before{left:30px;content:\"Scroll up\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-down:before{left:30px;content:\"Scroll down\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-right:before{left:30px;content:\"Scroll right\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-left:before{left:30px;content:\"Scroll left\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-zoomOut:before{content:\"Zoom out\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-zoomIn:before{content:\"Zoom in\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-zoomExtends:before{content:\"Fit whole graph\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.tmap-fullscreen-button:before{content:\"Toggle Fullscreen\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.tmap-halfscreen-button:before{content:\"Toggle Halfscreen\"}.tc-dropzone>.tc-story-river .tmap-widget .vis-navigation .tmap-halfscreen-button{display:none}.tc-dropzone>.tc-story-river .tmap-widget:not(.tmap-fullscreen) .vis-navigation .vis-button{display:none}.tc-dropzone>.tc-story-river .tmap-widget:hover .vis-navigation .vis-button.tmap-fullscreen-button{display:block}.tc-dropzone>.tc-story-river .tmap-widget:hover .vis-navigation .vis-button.vis-zoomExtends{display:block}body.tmap-has-fullscreen-widget{overflow:hidden}body.tmap-has-fullscreen-widget .tmap-widget.tmap-fullscreen{background:white !important;height:100% !important;width:100% !important;position:fixed !important;top:0 !important;right:0 !important;bottom:0 !important;left:0 !important;z-index:999 !important;border:none !important;margin:0 !important}body.tmap-has-fullscreen-widget .tc-dropzone>*.tmap-has-fullscreen-widget{background:white !important;height:100% !important;width:100% !important;position:fixed !important;top:0 !important;right:0 !important;bottom:0 !important;left:0 !important;z-index:999 !important;border:none !important;margin:0 !important}body.tmap-has-fullscreen-widget .tc-dropzone>*:not(.tmap-has-fullscreen-widget){display:none}body.tmap-has-halfscreen-widget .tmap-widget.tmap-halfscreen{background:white !important;height:100% !important;width:100% !important;position:fixed !important;top:0 !important;right:0 !important;bottom:0 !important;left:0 !important;z-index:999 !important;border:none !important;margin:0 !important;position:absolute !important;border-left:1px solid lightgray !important}.tc-modal-footer .tmap-hidden-close-button{display:none}.tmap-modal-content{position:relative;padding:1em 0;padding-top:0}.tmap-modal-content table tr td{vertical-align:top}.tmap-modal-content :not(pre)>code{padding:1px;font-size:0.9em;position:relative;top:-1px}.tmap-modal-content :not(pre)>code{color:#666}.tmap-modal-content .tc-tab-set .tc-tab-content{margin-top:0.5em}.tmap-modal-content .tc-image-button{font-size:14px}.tmap-modal-content fieldset{margin:0px}.tmap-modal-content fieldset legend{font-weight:bold}.tc-modal-body .tmap-modal-editor>p{margin:0px}.tc-modal-body .tmap-modal-editor .tmap-template-select select{width:50%}.tc-modal-body .tmap-modal-editor .tc-tiddler-frame{margin:auto;width:auto}.tc-modal-body .tmap-modal-editor .tc-tiddler-frame .tc-tiddler-controls{display:none}.tc-modal-body .tmap-modal-editor .tc-tiddler-frame .tc-tiddler-title{display:none}.tc-modal-body table{margin:6px 0;border:none;width:100%}.tc-modal-body table td,.tc-modal-body table th{border:1px solid lightgray}.tc-modal-body table.tmap-key-value-table th{width:30%;background-color:#F0F0F0}.tc-modal-body table.tmap-config-table.tmap-large-input tr td:last-child{width:20%}.tc-modal-body table.tmap-config-table.tmap-small-input tr td:last-child{width:60%}.tc-modal-body table.tmap-config-table tr td{border:none;vertical-align:top;padding:5px}.tc-modal-body table.tmap-config-table tr td:first-child{width:15%}.tc-modal-body table.tmap-config-table tr td:last-child{width:40%}.tc-modal-body table.tmap-config-table tr td input:not([type=radio]),.tc-modal-body table.tmap-config-table tr td textarea,.tc-modal-body table.tmap-config-table tr td select{width:100%;word-wrap:normal}.tc-modal-body table.tmap-config-table tr td textarea{height:100%}.tc-modal-body table.tmap-config-table tr td .tmap-no-stretch input,.tc-modal-body table.tmap-config-table tr td .tmap-no-stretch textarea,.tc-modal-body table.tmap-config-table tr td .tmap-no-stretch select{width:auto}.tc-modal-body table.tmap-config-table tr td div.tmap-button-wrapper{text-align:center}.tc-modal-body table.tmap-config-table tr td .tmap-note{margin-top:0.5em}.tc-modal-body table.tmap-config-table tr td .tmap-description{font-style:italic}#tmap-element-type-manager>div:first-child{height:50vh;float:left;width:21%;background:linear-gradient(90deg, #f5f5f5 0%, #fff 50%)}#tmap-element-type-manager>div:first-child .tmap-searchbar{padding:1em 0 0 0}#tmap-element-type-manager>div:first-child .tmap-searchbar input{width:calc(100% - 36px)}#tmap-element-type-manager>div:first-child .tmap-searchbar button{width:30px;float:right}#tmap-element-type-manager>div:first-child ul{height:calc(100% - 65px);overflow:auto;margin-top:1em;padding:0}#tmap-element-type-manager>div:first-child ul.no-bullets li{list-style:none}#tmap-element-type-manager>div:first-child ul li{white-space:nowrap}#tmap-element-type-manager>div:first-child ul li .tmap-ranking{width:30px;display:inline-block}#tmap-element-type-manager>div:last-child{height:100%;width:calc(79% - 15px);float:right}#tmap-element-type-manager>div:last-child .tc-tab-set .tc-tab-content{overflow:auto;height:50vh}.tmap-manage-node-types .tmap-edge-type-specific{display:none !important}.tmap-manage-edge-types .tmap-node-type-specific{display:none !important}.tmap-modal-fullscreen-editor .tc-tab-content p{margin:1em 0}.tmap-has-pending-template{background-color:#C1EDC4}#tmap-search-table td{border:none;padding-left:0px}#tmap-search-table td:first-child{width:30px}#tmap-search-table b{display:inline-block;width:40px;text-align:right}#tmap-search-table ul{padding-left:20px;margin:1em 0 0 0}#tmap-search-table ul li{list-style:inherit}#tmap-search-table ul button{text-align:left}button.tmap-go-back{margin-bottom:1em;font-weight:bold}.tmap-badges>span,.tmap-badge{background:gray;font-size:11px;color:white;padding:3px 4px;display:inline-block;font-weight:bold;border-radius:2px;line-height:1em;cursor:help}.tmap-badges>span.tmap-red-flag,.tmap-badge.tmap-red-flag{background:red}.tmap-popup{display:none;position:absolute;opacity:0;transition:opacity 0.3s ease}.tmap-popup.tmap-popup-active{opacity:1}.tmap-tooltip{box-shadow:3px 3px 10px rgba(0,0,0,0.2);min-width:100px;min-height:50px;max-width:<<tmap option config.sys.popups.width>>;max-height:<<tmap option config.sys.popups.height>>;padding:5px;resize:both;overflow:auto;cursor:auto;font-family:verdana;font-size:14px;background-color:#f5f4ed;border:1px solid #808074;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.tmap-tooltip[style*=\"height\"]{max-height:none !important}.tmap-tooltip[style*=\"width\"]{max-width:none !important}.tmap-quick-connect{font-size:0.7em}.tmap-quick-connect p{padding-left:0;padding-right:0}.tmap-quick-connect .tc-drop-down{padding:5px;width:250px;white-space:normal;line-height:1em;position:absolute;z-index:1000;right:50px;background:linear-gradient(45deg, #f5f5f5 0%, #fff 50%, #f5f5f5 100%)}.tmap-quick-connect .tc-drop-down:first-child{padding-top:0;margin-top:0}.tmap-quick-connect .tc-drop-down .title{margin:1.5em 0 0.5em 0;font-weight:bold;color:gray}.tmap-quick-connect .tc-drop-down select{width:80px;word-wrap:initial}.tmap-quick-connect .tc-drop-down table{width:100%;border:none;margin:0.5em 0}.tmap-quick-connect .tc-drop-down table td,.tmap-quick-connect .tc-drop-down table th{padding:3px 3px 3px 0;vertical-align:middle;font-weight:normal;border:none}.tmap-quick-connect .tc-drop-down table td table,.tmap-quick-connect .tc-drop-down table th table{margin:0}.tmap-quick-connect .tc-drop-down .tmap-quick-connect-search-bar,.tmap-quick-connect .tc-drop-down .tmap-quick-connect-existing-bar{background:#F1F1F1;margin-top:0;border-bottom:1px solid #D5D5D5;border-top:1px solid #D5D5D5}.tmap-quick-connect .tc-drop-down table.tmap-quick-connect-search-bar td,.tmap-quick-connect .tc-drop-down th{padding:5px}.tmap-quick-connect .tc-drop-down .tmap-quick-connect-existing-bar{padding:5px}.tmap-quick-connect .tc-drop-down .tmap-connection-table th,.tmap-quick-connect .tc-drop-down .tmap-connection-table td{text-align:left;padding:1px 1px 1px 0}.tmap-quick-connect .tc-drop-down .tmap-connection-table button{width:20px;padding:0px}.tmap-quick-connect .tc-drop-down .tmap-scroll-table{height:120px;overflow:auto;display:block}.tmap-quick-connect .tc-drop-down hr{border:0;height:0;border-top:1px solid rgba(0,0,0,0.1);border-bottom:1px solid rgba(255,255,255,0.3)}.tmap-quick-connect .tc-drop-down a{display:inline;padding:0;color:#5778d8;background:transparent}.tmap-quick-connect .tc-drop-down a:hover{background:transparent;color:#5778d8;text-decoration:underline}.tmap-quick-connect .tc-drop-down button{display:inline-block;padding:0px 3px;text-align:center;color:#333333;line-height:1.0}.tmap-quick-connect .tc-drop-down button:hover{color:#ffffff}.tmap-quick-connect .tc-drop-down button svg{fill:inherit}.tmap-quick-connect .tc-drop-down button svg:hover{fill:#ffffff}\n", + "title": "$:/plugins/felixhayashi/tiddlymap/layout", + "type": "text/vnd.tiddlywiki", + "tags": [ + "$:/tags/Stylesheet" + ] + }, + "$:/plugins/felixhayashi/tiddlymap/js/AbstractEdgeTypeSubscriber": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/AbstractEdgeTypeSubscriber", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function e(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(r,t,i){if(t)e(r.prototype,t);if(i)e(r,i);return r}}();/* @preserve TW-Guard */ /* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/AbstractEdgeTypeSubscriber\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */\n/* @preserve TW-Guard */var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _exception=require(\"$:/plugins/felixhayashi/tiddlymap/js/exception\");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,r){if(!(e instanceof r)){throw new TypeError(\"Cannot call a class as a function\")}}var AbstractEdgeTypeSubscriber=function(){function e(r){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=t.priority,n=i===undefined?0:i,a=t.skipOthers,s=a===undefined?true:a,u=t.ignore,l=u===undefined?false:u;_classCallCheck(this,e);this.allEdgeTypes=r;this.priority=n;this.skipOthers=s;this.ignore=l}_createClass(e,[{key:\"setTracker\",value:function e(r){this.tracker=r}},{key:\"loadEdges\",value:function e(r,t,i){throw new _exception.MissingOverrideError(this,\"loadEdges\")}},{key:\"canHandle\",value:function e(r){throw new _exception.MissingOverrideError(this,\"canHandle\")}},{key:\"insertEdge\",value:function e(r,t,i){}},{key:\"deleteEdge\",value:function e(r,t,i){}}]);return e}();exports.default=AbstractEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/AbstractEdgeTypeSubscriber.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/AbstractMagicEdgeTypeSubscriber": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/AbstractMagicEdgeTypeSubscriber", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function e(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(r,t,i){if(t)e(r.prototype,t);if(i)e(r,i);return r}}();var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _Edge=require(\"$:/plugins/felixhayashi/tiddlymap/js/Edge\");var _Edge2=_interopRequireDefault(_Edge);var _exception=require(\"$:/plugins/felixhayashi/tiddlymap/js/exception\");var _AbstractRefEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractRefEdgeTypeSubscriber\");var _AbstractRefEdgeTypeSubscriber2=_interopRequireDefault(_AbstractRefEdgeTypeSubscriber);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,r){if(!(e instanceof r)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,r){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return r&&(typeof r===\"object\"||typeof r===\"function\")?r:e}function _inherits(e,r){if(typeof r!==\"function\"&&r!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof r)}e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(r)Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/AbstractMagicEdgeTypeSubscriber\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var AbstractMagicEdgeTypeSubscriber=function(e){_inherits(r,e);function r(e,t){_classCallCheck(this,r);var i=_possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));i.edgeTypesByFieldName=_utils2.default.makeHashMap();for(var a in e){var n=e[a];if(i.canHandle(n)){i.edgeTypesByFieldName[n.name]=n}}return i}_createClass(r,[{key:\"getReferencesFromField\",value:function e(r,t,i){throw new _exception.MissingOverrideError(this,\"getReferencesFromField\")}},{key:\"getReferences\",value:function e(r,t,i){var a=_utils2.default.makeHashMap();var n=r.fields;for(var s in n){var u=this.edgeTypesByFieldName[s];if(!u||i&&!i[u.id])continue;var o=this.getReferencesFromField(r,s,t);if(o&&o.length){a[u.id]=o}}return a}}]);return r}(_AbstractRefEdgeTypeSubscriber2.default);exports.default=AbstractMagicEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/AbstractMagicEdgeTypeSubscriber.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/AbstractRefEdgeTypeSubscriber": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/AbstractRefEdgeTypeSubscriber", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,r,i){if(r)e(t.prototype,r);if(i)e(t,i);return t}}();var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _Edge=require(\"$:/plugins/felixhayashi/tiddlymap/js/Edge\");var _Edge2=_interopRequireDefault(_Edge);var _exception=require(\"$:/plugins/felixhayashi/tiddlymap/js/exception\");var _AbstractEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractEdgeTypeSubscriber\");var _AbstractEdgeTypeSubscriber2=_interopRequireDefault(_AbstractEdgeTypeSubscriber);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/AbstractRefEdgeTypeSubscriber\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var AbstractRefEdgeTypeSubscriber=function(e){_inherits(t,e);function t(){_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}_createClass(t,[{key:\"loadEdges\",value:function e(t,r,i){var a=this.getReferences(t,r,i);if(!a||!_utils2.default.hasElements(a))return;var s=t.fields[\"tmap.id\"];var n=$tm.tracker.getIdsByTiddlers();var u=this.allEdgeTypes;var l=_utils2.default.getTiddlerRef(t);var o=_utils2.default.makeHashMap();for(var f in a){var c=a[f];if(!c){continue}var p=u[f];for(var d=c.length;d--;){var _=c[d];if(!_||!$tw.wiki.tiddlerExists(_)||_utils2.default.isSystemOrDraft(_)||r&&!r[_]){continue}var b=p.id+$tw.utils.hashString(l+_);o[b]=new _Edge2.default(s,n[_],p.id,b)}}return o}},{key:\"getReferences\",value:function e(t,r,i){throw new _exception.MissingOverrideError(this,\"getReferences\")}}]);return t}(_AbstractEdgeTypeSubscriber2.default);exports.default=AbstractRefEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/AbstractRefEdgeTypeSubscriber.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/EdgeTypeSubscriberRegistry": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/EdgeTypeSubscriberRegistry", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function e(e,r){for(var t=0;t<r.length;t++){var s=r[t];s.enumerable=s.enumerable||false;s.configurable=true;if(\"value\"in s)s.writable=true;Object.defineProperty(e,s.key,s)}}return function(r,t,s){if(t)e(r.prototype,t);if(s)e(r,s);return r}}();function _classCallCheck(e,r){if(!(e instanceof r)){throw new TypeError(\"Cannot call a class as a function\")}}\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/EdgeTypeSubscriberRegistry\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var EdgeTypeSubscriberRegistry=function(){function e(r,t,s){_classCallCheck(this,e);this.subscriberClasses=r;this.tracker=s;this.updateIndex(t)}_createClass(e,[{key:\"getAllForType\",value:function e(r){var t=this.allSubscribers;var s=[];for(var i=0,a=t.length;i<a;i++){if(t[i].canHandle(r)){s.push(t[i]);if(t[i].skipOthers){break}}}return s}},{key:\"getAll\",value:function e(){return this.allSubscribers}},{key:\"updateIndex\",value:function e(r){var t=[];var s=this.subscriberClasses;for(var i in s){var a=new s[i](r);a.setTracker(this.tracker);if(a.ignore===true){continue}t.push(a)}t.sort(function(e,r){return r.priority-e.priority});this.allSubscribers=t}}]);return e}();exports.default=EdgeTypeSubscriberRegistry;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/EdgeTypeSubscriberRegistry.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/tmap": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/tmap", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.TmapEdgeTypeSubscriber=undefined;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,r,i){if(r)e(t.prototype,r);if(i)e(t,i);return t}}();var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _Edge=require(\"$:/plugins/felixhayashi/tiddlymap/js/Edge\");var _Edge2=_interopRequireDefault(_Edge);var _AbstractEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractEdgeTypeSubscriber\");var _AbstractEdgeTypeSubscriber2=_interopRequireDefault(_AbstractEdgeTypeSubscriber);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/tmap\ntype: application/javascript\nmodule-type: tmap.edgetypehandler\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var TmapEdgeTypeSubscriber=function(e){_inherits(t,e);function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,_extends({priority:0},r)))}_createClass(t,[{key:\"loadEdges\",value:function e(t,r,i){var a=_utils2.default.parseFieldData(t,\"tmap.edges\");if(!a){return}var n=this.tracker.getTiddlersByIds();var u=t.fields[\"tmap.id\"];var s=_utils2.default.makeHashMap();for(var l in a){var o=a[l];var d=n[o.to];if(d&&(!r||r[d])&&(!i||i[o.type])){s[l]=new _Edge2.default(u,o.to,o.type,l)}}return s}},{key:\"insertEdge\",value:function e(t,r,i){var a=_utils2.default.parseFieldData(t,\"tmap.edges\",{});r.id=r.id||_utils2.default.genUUID();a[r.id]={to:r.to,type:i.id};_utils2.default.writeFieldData(t,\"tmap.edges\",a,$tm.config.sys.jsonIndentation);return r}},{key:\"deleteEdge\",value:function e(t,r,i){if(!r.id)return;var a=_utils2.default.parseFieldData(t,\"tmap.edges\",{});delete a[r.id];_utils2.default.writeFieldData(t,\"tmap.edges\",a,$tm.config.sys.jsonIndentation);return r}},{key:\"canHandle\",value:function e(t){return true}}]);return t}(_AbstractEdgeTypeSubscriber2.default);exports.TmapEdgeTypeSubscriber=TmapEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/TmapEdgeTypeSubscriber.js.map\n", + "type": "application/javascript", + "module-type": "tmap.edgetypehandler" + }, + "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/field": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/field", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.FieldEdgeTypeSubscriber=undefined;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,r,i){if(r)e(t.prototype,r);if(i)e(t,i);return t}}();var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _AbstractMagicEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractMagicEdgeTypeSubscriber\");var _AbstractMagicEdgeTypeSubscriber2=_interopRequireDefault(_AbstractMagicEdgeTypeSubscriber);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/field\ntype: application/javascript\nmodule-type: tmap.edgetypehandler\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var FieldEdgeTypeSubscriber=function(e){_inherits(t,e);function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,_extends({priority:10},r)))}_createClass(t,[{key:\"canHandle\",value:function e(t){return t.namespace===\"tw-field\"}},{key:\"getReferencesFromField\",value:function e(t,r,i){return[t.fields[r]]}},{key:\"insertEdge\",value:function e(t,r,i){var n=this.tracker.getTiddlerById(r.to);if(n==null){return}_utils2.default.setField(t,i.name,n);return r}},{key:\"deleteEdge\",value:function e(t,r,i){var n=this.tracker.getTiddlerById(r.to);if(n==null){return}_utils2.default.setField(t,i.name,undefined);return r}}]);return t}(_AbstractMagicEdgeTypeSubscriber2.default);exports.FieldEdgeTypeSubscriber=FieldEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/magicEdgeTypeSubscriber/FieldEdgeTypeSubscriber.js.map\n", + "type": "application/javascript", + "module-type": "tmap.edgetypehandler" + }, + "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/filter": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/filter", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.FilterEdgeTypeSubstriber=undefined;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,r,i){if(r)e(t.prototype,r);if(i)e(t,i);return t}}();var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _AbstractMagicEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractMagicEdgeTypeSubscriber\");var _AbstractMagicEdgeTypeSubscriber2=_interopRequireDefault(_AbstractMagicEdgeTypeSubscriber);var _widget=require(\"$:/core/modules/widgets/widget.js\");var _widget2=_interopRequireDefault(_widget);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/filter\ntype: application/javascript\nmodule-type: tmap.edgetypehandler\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var FilterEdgeTypeSubstriber=function(e){_inherits(t,e);function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,_extends({priority:10},r)))}_createClass(t,[{key:\"canHandle\",value:function e(t){return t.namespace===\"tw-filter\"}},{key:\"getReferencesFromField\",value:function e(t,r,i){var n=t.fields[r];var a=new _widget2.default.widget({});a.setVariable(\"currentTiddler\",t.fields.title);var u=new _widget2.default.widget({},{parentWidget:a});var s=_utils2.default.getMatches(n,i,u);return s}},{key:\"insertEdge\",value:function e(t,r,i){if(!r.to){return}var n=i.name;var a=t.fields[n]||\"\";var u=this.tracker.getTiddlerById(r.to);var s=$tw.utils.stringifyList([u]);if(a.length>0){s=\" \"+s}_utils2.default.setField(t,n,a+s);return r}}]);return t}(_AbstractMagicEdgeTypeSubscriber2.default);exports.FilterEdgeTypeSubstriber=FilterEdgeTypeSubstriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/magicEdgeTypeSubscriber/FilterEdgeTypeSubscriber.js.map\n", + "type": "application/javascript", + "module-type": "tmap.edgetypehandler" + }, + "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/list": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/list", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.ListEdgeTypeSubscriber=undefined;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,r,i){if(r)e(t.prototype,r);if(i)e(t,i);return t}}();var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _AbstractMagicEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractMagicEdgeTypeSubscriber\");var _AbstractMagicEdgeTypeSubscriber2=_interopRequireDefault(_AbstractMagicEdgeTypeSubscriber);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/list\ntype: application/javascript\nmodule-type: tmap.edgetypehandler\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var ListEdgeTypeSubscriber=function(e){_inherits(t,e);function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,_extends({priority:10},r)))}_createClass(t,[{key:\"canHandle\",value:function e(t){return t.namespace===\"tw-list\"}},{key:\"getReferencesFromField\",value:function e(t,r,i){return $tw.utils.parseStringArray(t.fields[r])}},{key:\"insertEdge\",value:function e(t,r,i){if(!r.to){return}var n=i.name;var s=$tw.utils.parseStringArray(t.fields[n]);s=(s||[]).slice();var a=this.tracker.getTiddlerById(r.to);s.push(a);_utils2.default.setField(t,n,$tw.utils.stringifyList(s));return r}},{key:\"deleteEdge\",value:function e(t,r,i){var n=$tw.utils.parseStringArray(t.fields[i.name]);n=(n||[]).slice();var s=this.tracker.getTiddlerById(r.to);var a=n.indexOf(s);if(a>-1){n.splice(a,1)}var u=void 0;if(n.length>0){u=$tw.utils.stringifyList(n)}_utils2.default.setField(t,i.name,u);return r}}]);return t}(_AbstractMagicEdgeTypeSubscriber2.default);exports.ListEdgeTypeSubscriber=ListEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/magicEdgeTypeSubscriber/ListEdgeTypeSubscriber.js.map\n", + "type": "application/javascript", + "module-type": "tmap.edgetypehandler" + }, + "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/link": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/link", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.LinkEdgeTypeSubscriber=undefined;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if(\"value\"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var _AbstractRefEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractRefEdgeTypeSubscriber\");var _AbstractRefEdgeTypeSubscriber2=_interopRequireDefault(_AbstractRefEdgeTypeSubscriber);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/link\ntype: application/javascript\nmodule-type: tmap.edgetypehandler\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var LinkEdgeTypeSubscriber=function(e){_inherits(t,e);function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,_extends({priority:20},r)))}_createClass(t,[{key:\"canHandle\",value:function e(t){return t.id===\"tw-body:link\"}},{key:\"getReferences\",value:function e(t,r,n){if(n&&!n[\"tw-body:link\"]){return}var i=$tw.wiki.getTiddlerLinks(t.fields.title);if(!i||!i.length){return}return{\"tw-body:link\":i}}}]);return t}(_AbstractRefEdgeTypeSubscriber2.default);exports.LinkEdgeTypeSubscriber=LinkEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/refEdgeTypeSubscriber/LinkEdgeTypeSubscriber.js.map\n", + "type": "application/javascript", + "module-type": "tmap.edgetypehandler" + }, + "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/transclude": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/transclude", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.TranscludeEdgeTypeSubscriber=undefined;var _extends=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t){if(Object.prototype.hasOwnProperty.call(t,n)){e[n]=t[n]}}}return e};var _createClass=function(){function e(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if(\"value\"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(r,t,n){if(t)e(r.prototype,t);if(n)e(r,n);return r}}();var _AbstractRefEdgeTypeSubscriber=require(\"$:/plugins/felixhayashi/tiddlymap/js/AbstractRefEdgeTypeSubscriber\");var _AbstractRefEdgeTypeSubscriber2=_interopRequireDefault(_AbstractRefEdgeTypeSubscriber);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,r){if(!(e instanceof r)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,r){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return r&&(typeof r===\"object\"||typeof r===\"function\")?r:e}function _inherits(e,r){if(typeof r!==\"function\"&&r!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof r)}e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(r)Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/transclude\ntype: application/javascript\nmodule-type: tmap.edgetypehandler\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var TranscludeEdgeTypeSubscriber=function(e){_inherits(r,e);function r(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,r);return _possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,_extends({priority:20,ignore:typeof $tw.wiki.getTiddlerTranscludes!==\"function\"},t)))}_createClass(r,[{key:\"canHandle\",value:function e(r){return r.id===\"tw-body:transclude\"}},{key:\"getReferences\",value:function e(r,t,n){if(n&&!n[\"tw-body:transclude\"]){return}var i=$tw.wiki.getTiddlerTranscludes(r.fields.title);if(!i||!i.length){return}return{\"tw-body:transclude\":i}}}]);return r}(_AbstractRefEdgeTypeSubscriber2.default);exports.TranscludeEdgeTypeSubscriber=TranscludeEdgeTypeSubscriber;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/edgeTypeSubscriber/refEdgeTypeSubscriber/TranscludeEdgeTypeSubscriber.js.map\n", + "type": "application/javascript", + "module-type": "tmap.edgetypehandler" + }, + "$:/plugins/felixhayashi/tiddlymap/js/Edge": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/Edge", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/Edge\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var Edge=function e(t,i,s,l){_classCallCheck(this,e);this.from=t;this.to=i;this.type=s;this.id=l||_utils2.default.genUUID()};exports.default=Edge;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/graph/Edge.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/EdgeType": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/EdgeType", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if(\"value\"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var _MapElementType2=require(\"$:/plugins/felixhayashi/tiddlymap/js/MapElementType\");var _MapElementType3=_interopRequireDefault(_MapElementType2);var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _environment=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/environment\");var env=_interopRequireWildcard(_environment);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/EdgeType\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var EdgeType=function(e){_inherits(t,e);function t(e,r){_classCallCheck(this,t);var n=t.getIdParts(e),o=n.marker,a=n.namespace,i=n.name;e=t.getId(o,a,i);var l=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,env.path.edgeTypes,t.fieldMeta,r));l.id=e;l.marker=o;l.name=i;l.namespace=a;var u=(l.style||{}).arrows;if(u){l.invertedArrow=isArrowEnabled(u,\"from\");l.toArrow=isArrowEnabled(u,\"to\")||isArrowEnabled(u,\"middle\");l.biArrow=l.invertedArrow===l.toArrow;if(l.biArrow){l.toArrow=true;l.invertedArrow=true}}else{l.toArrow=true}Object.freeze(l);return l}_createClass(t,[{key:\"getLabel\",value:function e(){return this.label||this.name}}],[{key:\"getIdParts\",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:\"\";t=_utils2.default.getWithoutPrefix(t,env.path.edgeTypes+\"/\");var r=t.match(edgeTypeRegex)||[];return{marker:r[1]||\"\",namespace:r[3]&&r[2]||\"\",name:r[3]||r[2]||\"\"}}},{key:\"getId\",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:\"\";var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"\";var n=arguments[2];return n?t+(r&&r+\":\")+n:\"tmap:unknown\"}}]);return t}(_MapElementType3.default);EdgeType.getInstance=function(e){return e instanceof EdgeType?e:new EdgeType(e)};EdgeType.fieldMeta=_extends({},_MapElementType3.default.fieldMeta,{label:{},\"show-label\":{}});var isArrowEnabled=function e(t,r){var n=t[r];if(n==null&&r===\"to\"){return true}return(typeof n===\"undefined\"?\"undefined\":_typeof(n))===\"object\"?n.enabled!==false:n===true};var edgeTypeRegex=new RegExp(\"^(_?)([^:_][^:]*):?([^:]*)\");exports.default=EdgeType;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/graph/EdgeType.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/MapElementType": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/MapElementType", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(t){return typeof t}:function(t){return t&&typeof Symbol===\"function\"&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t};var _createClass=function(){function t(t,e){for(var i=0;i<e.length;i++){var l=e[i];l.enumerable=l.enumerable||false;l.configurable=true;if(\"value\"in l)l.writable=true;Object.defineProperty(t,l.key,l)}}return function(e,i,l){if(i)t(e.prototype,i);if(l)t(e,l);return e}}();/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/MapElementType\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _classCallCheck(t,e){if(!(t instanceof e)){throw new TypeError(\"Cannot call a class as a function\")}}var MapElementType=function(){function t(e,i,l,s){_classCallCheck(this,t);this.id=e;this.root=i;this._fieldMeta=l;this.fullPath=this.root+\"/\"+this.id;this.isShipped=$tw.wiki.getSubTiddler($tm.path.pluginRoot,this.fullPath);this._load(s||this.fullPath)}_createClass(t,[{key:\"_load\",value:function t(e){if(!e){return}if(typeof e===\"string\"){var i=_utils2.default.startsWith(e,this.root);var l=i?e:this.root+\"/\"+e;this._loadFromTiddler(l)}else if(e instanceof $tw.Tiddler){this._loadFromTiddler(e)}else if((typeof e===\"undefined\"?\"undefined\":_typeof(e))===\"object\"){for(var s in this._fieldMeta){this[s]=e[s]}}}},{key:\"_loadFromTiddler\",value:function t(e){var i=_utils2.default.getTiddler(e);if(!i){return}var l=$tw.wiki.getSubTiddler($tm.path.pluginRoot,this.fullPath)||{};var s=$tw.utils.extend({},l.fields,i.fields);for(var r in this._fieldMeta){var a=this._fieldMeta[r].parse;var f=s[r];this[r]=a?a.call(this,f):f}}},{key:\"exists\",value:function t(){return _utils2.default.tiddlerExists(this.fullPath)}},{key:\"setStyle\",value:function t(e,i){if(typeof e===\"string\"){e=_utils2.default.parseJSON(e)}if((typeof e===\"undefined\"?\"undefined\":_typeof(e))===\"object\"){if(i){_utils2.default.merge(this.style,e)}else{this.style=e}}}},{key:\"save\",value:function t(e,i){if(!e){e=this.fullPath}else if(typeof e!==\"string\"){return}var l={title:e,text:\"\"};if(!_utils2.default.startsWith(e,this.root)){l.id=this.id}for(var s in this._fieldMeta){var r=this._fieldMeta[s].stringify;l[s]=r?r.call(this,this[s]):this[s]}if(!this.exists()){Object.assign(l,$tw.wiki.getCreationFields())}if(i!==true){Object.assign(l,$tw.wiki.getModificationFields())}$tw.wiki.addTiddler(new $tw.Tiddler(l))}}]);return t}();MapElementType.fieldMeta={description:{},style:{parse:_utils2.default.parseJSON,stringify:JSON.stringify},modified:{},created:{}};exports.default=MapElementType;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/graph/MapElementType.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/NodeType": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/NodeType", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){e[n]=r[n]}}}return e};var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if(\"value\"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}return function(t,r,n){if(r)e(t.prototype,r);if(n)e(t,n);return t}}();var _MapElementType2=require(\"$:/plugins/felixhayashi/tiddlymap/js/MapElementType\");var _MapElementType3=_interopRequireDefault(_MapElementType2);var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/NodeType\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var NodeType=function(e){_inherits(t,e);function t(e,r){_classCallCheck(this,t);e=typeof e===\"string\"?_utils2.default.getWithoutPrefix(e,$tm.path.nodeTypes+\"/\"):\"tmap:unknown\";var n=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,$tm.path.nodeTypes,t.fieldMeta,r));Object.freeze(n);return n}_createClass(t,[{key:\"getInheritors\",value:function e(t){return this.scope?_utils2.default.getMatches(this.scope,t||$tw.wiki.allTitles()):[]}}]);return t}(_MapElementType3.default);NodeType.getInstance=function(e){return e instanceof NodeType?e:new NodeType(e)};NodeType.fieldMeta=_extends({},_MapElementType3.default.fieldMeta,{view:{},priority:{parse:function e(t){return isNaN(t)?1:parseInt(t)},stringify:function e(t){return _utils2.default.isInteger(t)?t.toString():\"1\"}},scope:{stringify:_utils2.default.getWithoutNewLines},\"fa-icon\":{},\"tw-icon\":{}});exports.default=NodeType;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/graph/NodeType.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i){if(Object.prototype.hasOwnProperty.call(i,r)){e[r]=i[r]}}}return e};var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};var _createClass=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||false;r.configurable=true;if(\"value\"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}return function(t,i,r){if(i)e(t.prototype,i);if(r)e(t,r);return t}}();/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _environment=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/environment\");var env=_interopRequireWildcard(_environment);var _exception=require(\"$:/plugins/felixhayashi/tiddlymap/js/exception\");function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}var ViewAbstraction=function(){function e(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,e);if(t instanceof e){return t}this._registerPaths(t);if(i.isCreate){if(!this.configTRef){var r=_utils2.default.getRandomLabel({plural:true});this.configTRef=$tw.wiki.generateNewTitle($tm.path.views+\"/\"+r)}this._createView(i)}else if(!e.exists(this.getRoot())){throw new ResourceNotFoundException(\"ViewAbstraction\",t)}}_createClass(e,[{key:\"isLocked\",value:function e(){return $tw.wiki.isShadowTiddler(this.configTRef)}},{key:\"update\",value:function e(t){var i=t.changedTiddlers;if(t[env.path.edgeTypes]||_utils2.default.hasKeyWithPrefix(i,this.getRoot())){this._clearCaches();return true}return false}},{key:\"addPlaceholder\",value:function e(t){_utils2.default.cp(_utils2.default.getTiddlerRef(t),this.snapshotTRef,true)}},{key:\"exists\",value:function t(){return e.exists(this)}},{key:\"getRoot\",value:function e(){return this.configTRef}},{key:\"getCreationDate\",value:function e(t){var i=$tw.wiki.getTiddler(this.configTRef).fields[\"created\"];if(t){return i instanceof Date?$tw.utils.formatDateString(i,\"DDth MMM YYYY\"):\"\"}return i}},{key:\"getLabel\",value:function e(){return _utils2.default.getBasename(this.configTRef)}},{key:\"destroy\",value:function e(){_utils2.default.deleteTiddlers(_utils2.default.getMatches(\"[prefix[\"+this.configTRef+\"]]\"))}},{key:\"getOccurrences\",value:function e(){var t=\"[regexp:text[<\\\\$(tiddlymap|tmap).*?view=.\"+this.getLabel()+\"..*?>]]\";return _utils2.default.getMatches(t)}},{key:\"rename\",value:function t(i){if(typeof i!==\"string\"){return false}if(_utils2.default.inArray(\"/\",i)){$tm.notify('A view name must not contain any \"/\"');return false}var r=this.getLabel();var a=env.path.views+\"/\"+i;var n=this.getRoot();_utils2.default.mv(n,a,true);if($tm.config.sys.defaultView===r){_utils2.default.setEntry($tm.ref.sysUserConf,\"defaultView\",i)}if($tm.config.sys.liveTab.fallbackView===r){_utils2.default.setEntry($tm.ref.sysUserConf,\"liveTab.fallbackView\",i)}$tw.wiki.each(function(t,a){if(t.fields[\"tmap.open-view\"]===r){_utils2.default.setField(a,\"tmap.open-view\",i);return}if(e.exists(a)){var n=new e(a);var l=n.getNodeData();for(var s in l){if(l[s][\"open-view\"]===r){l[s][\"open-view\"]=i}}n.saveNodeData(l)}});this._clearCaches();this._registerPaths(i)}},{key:\"isEnabled\",value:function e(t){return _utils2.default.isTrue(this.getConfig(t),false)}},{key:\"getConfig\",value:function e(t){var i=this;var r=$tw.wiki.getCacheForTiddler(this.configTRef,\"tmap-config\",function(){var e=_utils2.default.getTiddler(i.configTRef).fields;return _utils2.default.getPropertiesByPrefix(e,\"config.\")});var a=t&&_utils2.default.startsWith(t,\"config.\")?t:\"config.\"+t;return t?r[a]:r}},{key:\"setConfig\",value:function e(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++){i[r]=arguments[r]}if(i[0]==null){return}if(i.length===1&&_typeof(i[0])===\"object\"){for(var a in i[0]){this.setConfig(a,i[0][a])}}else if(i.length===2&&typeof i[0]===\"string\"){var n=_utils2.default.getWithoutPrefix(i[0],\"config.\");var l=i[1];if(l===undefined){return}var s=this.getConfig();if(l===null){$tm.logger(\"debug\",\"Removing config\",n);delete s[\"config.\"+n]}else{if(n===\"edge_type_namespace\"){var o=l.match(/[^:]+/);l=o?o[0]:\"\"}}$tm.logger(\"log\",\"Setting config\",n,l);s[\"config.\"+n]=l;$tw.wiki.addTiddler(new $tw.Tiddler(_utils2.default.getTiddler(this.configTRef),s))}else{throw new(Function.prototype.bind.apply(_exception.InvalidArgumentException,[null].concat(i)))}}},{key:\"isLiveView\",value:function e(){return this.getLabel()===$tm.misc.liveViewLabel}},{key:\"_isNodeIncludedById\",value:function t(i){var r=$tw.utils.escapeRegExp(e._getNodeIdFilterPart(i));return this.getNodeFilter(\"raw\").match(r)}},{key:\"setNodeFilter\",value:function e(t,i){t=t.replace(/[\\n\\r]/g,\" \");if(this.getNodeFilter(\"raw\")===t){return}_utils2.default.setField(this.nodeFilterTRef,\"filter\",t);$tm.logger(\"debug\",\"Node filter set to\",t)}},{key:\"setEdgeTypeFilter\",value:function e(t){t=t.replace(/[\\n\\r]/g,\" \");if(this.getEdgeTypeFilter(\"raw\")===t){return}_utils2.default.setField(this.edgeTypeFilterTRef,\"filter\",t);$tm.logger(\"debug\",\"Edge filter set to\",t)}},{key:\"addNode\",value:function t(i){if(!this._isNodeIncludedById(i)){if(_utils2.default.isTrue($tm.config.sys.alwaysAddNodeIdToViewFilter)||!_utils2.default.isMatch(i.tRef,this.getNodeFilter(\"compiled\"))){var r=e._getNodeIdFilterPart(i);var a=\" \";this.setNodeFilter(this.getNodeFilter(\"raw\")+a+r)}this.saveNodePosition(i)}}},{key:\"removeNode\",value:function t(i){if(!this._isNodeIncludedById(i)){return false}var r=e._getNodeIdFilterPart(i);var a=this.getNodeFilter(\"raw\").replace(r,\"\");this.setNodeFilter(a);if(this.getNodeData(i)){this.saveNodeData(i,null)}return true}},{key:\"getEdgeTypeFilter\",value:function e(t){var i=this;var r=$tw.wiki.getCacheForTiddler(this.edgeTypeFilterTRef,\"tmap-edgeTypeFilter\",function(){var e=$tm.indeces.allETy;var t=Object.keys(e);var r=$tw.wiki.getTiddler(i.edgeTypeFilterTRef);var a={};a.raw=r&&r.fields.filter||\"\";a.pretty=_utils2.default.getPrettyFilter(a.raw);a.matches=_utils2.default.getEdgeTypeMatches(a.raw,e);a.whitelist=_utils2.default.getLookupTable(a.matches);return a});return t?r[t]:r}},{key:\"isEdgeTypeVisible\",value:function e(t){return _utils2.default.isEdgeTypeMatch(_EdgeType2.default.getInstance(t).id,this.getEdgeTypeFilter(\"raw\"))}},{key:\"getNodeFilter\",value:function e(t){var i=this;var r=$tw.wiki.getCacheForTiddler(this.nodeFilterTRef,\"tmap-nodeFilter\",function(){var e=_utils2.default.makeHashMap();var t=$tw.wiki.getTiddler(i.nodeFilterTRef);e.raw=t&&t.fields.filter||\"\";e.pretty=_utils2.default.getPrettyFilter(e.raw);e.compiled=$tw.wiki.compileFilter(e.raw);return e});return t?r[t]:r}},{key:\"getNodeData\",value:function e(t){var i=this;var r=$tw.wiki.getCacheForTiddler(this.mapTRef,\"tmap-map\",function(){return _utils2.default.parseFieldData(i.mapTRef,\"text\",{})});return t?r[t]:r}},{key:\"equals\",value:function t(i){return i===this||e.exists(i)&&new e(i).getRoot()===this.getRoot()}},{key:\"saveNodeData\",value:function e(){var t=this.getNodeData();for(var i=arguments.length,r=Array(i),a=0;a<i;a++){r[a]=arguments[a]}if(r.length===2){if(_typeof(r[1])===\"object\"){if(r[1]===null){delete t[r[0]]}else{t[r[0]]=Object.assign(t[r[0]]||{},r[1])}}}else if(r.length===1&&_typeof(r[0])===\"object\"){$tm.logger(\"log\",\"Storing data in\",this.mapTRef);Object.assign(t,r[0])}else{throw new(Function.prototype.bind.apply(_exception.InvalidArgumentException,[null].concat(r)))}_utils2.default.writeFieldData(this.mapTRef,\"text\",t,$tm.config.sys.jsonIndentation)}},{key:\"saveNodePosition\",value:function e(t){if(t.id&&t.x!=null&&t.y!=null){this.saveNodeData(t.id,{x:t.x,y:t.y})}}},{key:\"saveNodePositions\",value:function e(t){var i=this.getNodeData();for(var r in t){i[r]=i[r]||{};i[r].x=t[r].x;i[r].y=t[r].y}this.saveNodeData(i)}},{key:\"setCentralTopic\",value:function e(t){this.setConfig(\"central-topic\",t)}},{key:\"saveNodeStyle\",value:function e(t,i){var r=this.getNodeData(t)||{};var a={x:r.x,y:r.y};for(var n in r){delete r[n]}this.saveNodeData(t,_extends({},i,a))}},{key:\"_registerPaths\",value:function t(i,r){this.configTRef=e._getRootPath(i);this.mapTRef=this.configTRef+\"/map\";this.nodeFilterTRef=this.configTRef+\"/filter/nodes\";this.edgeTypeFilterTRef=this.configTRef+\"/filter/edges\";this.snapshotTRef=this.getRoot()+\"/snapshot\"}},{key:\"_clearCaches\",value:function e(){_utils2.default.getMatches(\"[prefix[\"+this.getRoot()+\"]]\").forEach(function(e){$tw.wiki.clearCache(e)})}},{key:\"_createView\",value:function t(){var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},r=i.isForce,a=i.protoView,n=i.isHidden;if(e.exists(this)){if(!r){return}this.destroy()}if(e.exists(a)){_utils2.default.cp(new e(a).getRoot(),this.configTRef,true)}var l={title:this.configTRef,id:_utils2.default.genUUID()};if(!n){l[$tm.field.viewMarker]=true}$tw.wiki.addTiddler(new $tw.Tiddler(_utils2.default.getTiddler(this.configTRef),l));this.setEdgeTypeFilter(env.filter.defaultEdgeTypeFilter)}}],[{key:\"_getNodeIdFilterPart\",value:function e(t){var i=(typeof t===\"undefined\"?\"undefined\":_typeof(t))===\"object\"?t.id:t;return\"[field:tmap.id[\"+i+\"]]\"}},{key:\"_getRootPath\",value:function t(i){if(i instanceof e){return i.configTRef}if(i instanceof $tw.Tiddler){i=i.fields.title}if(typeof i===\"string\"){var r=_utils2.default.getWithoutPrefix(i,$tm.path.views+\"/\");if(r&&!_utils2.default.hasSubString(r,\"/\")){return $tm.path.views+\"/\"+r}}}},{key:\"exists\",value:function t(i){if(!i){return false}if(i instanceof e){i=i.configTRef}else{i=e._getRootPath(i)}return _utils2.default.tiddlerExists(i)}}]);return e}();exports.default=ViewAbstraction;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/graph/ViewAbstraction.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/Popup": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/Popup", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Popup(e,t){t=t||{};this._parentDomNode=e;this._domNode=document.createElement(\"div\");this._domNode.style.display=\"none\";this._domNode.className=\"tmap-popup\";this._parentDomNode.appendChild(this._domNode);$tw.utils.addClass(this._domNode,t.className);this._isEnabled=true;this._isPreventShowOrHide=false;this._isHideOnClick=!!t.hideOnClick;this._timeoutShow=null;this._timeoutHide=null;this._isDisplayNoneAfterAnimation=true;var i=parseInt(t.leavingDelay);this._hideDelayLeavingPopup=_utils2.default.isInteger(i)?i:200;i=parseInt(t.hideDelay);this._hideDelay=_utils2.default.isInteger(i)?i:200;i=parseInt(t.showDelay);this._showDelay=_utils2.default.isInteger(i)?i:200;_utils2.default.bindTo(this,[\"_show\",\"_hide\",\"_handleEnter\",\"_handleLeave\",\"_handleAnimationEnd\",\"_handleClick\"]);this._listeners={mouseenter:this._handleEnter,mouseleave:this._handleLeave,click:[this._handleClick,true]};var s=this._handleAnimationEnd;this._listeners[$tw.utils.convertEventName(\"animationEnd\")]=s;this._listeners[$tw.utils.convertEventName(\"transitionEnd\")]=s;_utils2.default.setDomListeners(\"add\",this._domNode,this._listeners,false)}\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/Popup\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */Popup.prototype._handleEnter=function(e){this._isPreventShowOrHide=true};Popup.prototype._handleLeave=function(e){this._isPreventShowOrHide=false;this.hide(this._hideDelayLeavingPopup)};Popup.prototype._handleClick=function(e){if(this._isHideOnClick){this._hide(true)}};Popup.prototype._handleAnimationEnd=function(){if(this._isDisplayNoneAfterAnimation){this._domNode.style.display=\"none\"}};Popup.prototype._hide=function(e){if(!e&&this._isPreventShowOrHide)return;this._isDisplayNoneAfterAnimation=true;this._isPreventShowOrHide=false;$tw.utils.removeClass(this._domNode,\"tmap-popup-active\")};Popup.prototype._show=function(e,t){if(this._isPreventShowOrHide||$tm.mouse.ctrlKey||!this._isEnabled){return}this._domNode.style.display=\"none\";$tw.utils.removeClass(this._domNode,\"tmap-popup-active\");this._domNode.removeAttribute(\"style\");_utils2.default.removeDOMChildNodes(this._domNode);var i=this._domNode.appendChild(document.createElement(\"div\"));if(typeof t===\"function\"){t(e,i)}else{i.innerHTML=t}if(!i.childNodes.length)return;var s=this._parentDomNode.getBoundingClientRect();var o=$tm.mouse.clientX;var n=$tm.mouse.clientY;this._domNode.style.display=\"block\";var d=this._domNode.getBoundingClientRect();var l=s.right-(o+d.width);var h=o-d.width-s.left;var a=l>h;var u=s.bottom-(n+d.height);var r=n-d.height-s.top;var p=u>r;var _=a?-15:d.width+15;var m=p?-15:d.height+15;this._domNode.style.left=o-s.left-_+\"px\";this._domNode.style.top=n-s.top-m+\"px\";this._isDisplayNoneAfterAnimation=false;$tw.utils.addClass(this._domNode,\"tmap-popup-active\")};Popup.prototype.show=function(e,t,i){this._clearTimeouts();i=_utils2.default.isInteger(i)?i:this._showDelay;this._timeoutShow=setTimeout(this._show,i,e,t)};Popup.prototype.hide=function(e,t){this._clearTimeouts();e=_utils2.default.isInteger(e)?e:this._hideDelay;if(t||e===0){this._hide(t)}else{this._timeoutHide=setTimeout(this._hide,e,t)}};Popup.prototype.setEnabled=function(e){this._isEnabled=e};Popup.prototype.isShown=function(){return this._domNode.style.display===\"block\"};Popup.prototype._clearTimeouts=function(){clearTimeout(this._timeoutShow);clearTimeout(this._timeoutHide);this._timeoutShow=undefined;this._timeoutHide=undefined};exports.default=Popup;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/Popup.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/lib/SelectionRectangle": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/lib/SelectionRectangle", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||false;n.configurable=true;if(\"value\"in n)n.writable=true;Object.defineProperty(t,n.key,n)}}return function(e,i,n){if(i)t(e.prototype,i);if(n)t(e,n);return e}}();function _classCallCheck(t,e){if(!(t instanceof e)){throw new TypeError(\"Cannot call a class as a function\")}}\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/lib/SelectionRectangle\ntype: application/SelectionRectangle\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var SelectionRectangle=function(){function t(e,i){_classCallCheck(this,t);this.x1=e;this.x2=e;this.y1=i;this.y2=i}_createClass(t,[{key:\"span\",value:function t(e,i){this.x2=e;this.y2=i}},{key:\"getWidth\",value:function t(){return this.x2-this.x1}},{key:\"getHeight\",value:function t(){return this.y2-this.y1}},{key:\"getRect\",value:function t(){return[this.x1,this.y1,this.getWidth(),this.getHeight()]}},{key:\"isPointWithin\",value:function t(e){var i=e.x,n=e.y;var a=this.x1,r=this.x2,s=this.y1,u=this.y2;var h=Math.min(a,r);var c=Math.max(a,r);var l=Math.min(s,u);var o=Math.max(s,u);return h<i&&i<c&&l<n&&n<o}}]);return t}();exports.default=SelectionRectangle;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/SelectionRectangle.js.map\n", + "type": "application/SelectionRectangle", + "module-type": "library" + }, + "/home/felo/projects/Tiddlywiki/TiddlyWiki5/plugins/felixhayashi/tiddlymap/js/lib/TypeDefs.js": { + "title": "/home/felo/projects/Tiddlywiki/TiddlyWiki5/plugins/felixhayashi/tiddlymap/js/lib/TypeDefs.js", + "text": "\"use strict\";\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/TypeDefs.js.map\n" + }, + "$:/plugins/felixhayashi/tiddlymap/js/config/vis": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/config/vis", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/config/vis\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var visConfig={locale:\"en_EN\",clickToUse:false,autoResize:false,height:\"100%\",width:\"100%\",configure:{enabled:false},interaction:{dragNodes:true,dragView:true,hideEdgesOnDrag:false,hideNodesOnDrag:false,hover:true,navigationButtons:true,multiselect:true,selectable:true,selectConnectedEdges:true,tooltipDelay:600,zoomView:false,keyboard:{enabled:false,speed:{x:10,y:10,zoom:.02},bindToWindow:false}},manipulation:{initiallyActive:true},nodes:{shape:\"box\",shadow:{enabled:false},color:{border:\"#2B7CE9\",background:\"#97C2FC\"}},edges:{smooth:{enabled:true},color:{color:\"#848484\",inherit:false},arrows:{to:{enabled:true}}},physics:{forceAtlas2Based:{gravitationalConstant:-300,springLength:0,springConstant:.2,centralGravity:.015,damping:.4},solver:\"forceAtlas2Based\",stabilization:{enabled:true,iterations:1e3,updateInterval:10,onlyDynamicEdges:false,fit:false}}};exports.default=visConfig;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/VisConfig.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/lib/environment": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/lib/environment", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _extends=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var l in a){if(Object.prototype.hasOwnProperty.call(a,l)){e[l]=a[l]}}}return e};\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/lib/environment\ntype: application/javascript\n module-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var path=exports.path={pluginRoot:\"$:/plugins/felixhayashi/tiddlymap\",edgeTypes:\"$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes\",nodeTypes:\"$:/plugins/felixhayashi/tiddlymap/graph/nodeTypes\",views:\"$:/plugins/felixhayashi/tiddlymap/graph/views\",options:\"$:/plugins/felixhayashi/tiddlymap/config\",dialogs:\"$:/plugins/felixhayashi/tiddlymap/dialog\",footers:\"$:/plugins/felixhayashi/tiddlymap/dialogFooter\",tempRoot:\"$:/temp/tmap\",tempStates:\"$:/temp/tmap/state\",tempPopups:\"$:/temp/tmap/state/popup\",localHolders:\"$:/temp/tmap/holders\"};var ref=exports.ref={defaultViewHolder:\"$:/plugins/felixhayashi/tiddlymap/misc/defaultViewHolder\",graphBar:\"$:/plugins/felixhayashi/tiddlymap/misc/advancedEditorBar\",sysUserConf:\"$:/plugins/felixhayashi/tiddlymap/config/sys/user\",visUserConf:\"$:/plugins/felixhayashi/tiddlymap/config/vis/user\",welcomeFlag:\"$:/plugins/felixhayashi/tiddlymap/flag/welcome\",focusButton:\"$:/plugins/felixhayashi/tiddlymap/misc/focusButton\",sysMeta:\"$:/plugins/felixhayashi/tiddlymap/misc/meta\",liveTab:\"$:/plugins/felixhayashi/tiddlymap/hook/liveTab\",mainEditor:\"$:/plugins/felixhayashi/tiddlymap/hook/editor\",sidebarBreakpoint:\"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\"};var misc=exports.misc={unknownEdgeLabel:\"tmap:undefined\",liveViewLabel:\"Live View\",defaultViewLabel:\"Default\",mainEditorId:\"main_editor\",arrows:{in:\"⇦\",out:\"➡\",bi:\"⇄\"}};var config=exports.config={sys:{field:{nodeLabel:\"caption\",nodeIcon:\"icon\",nodeInfo:\"description\",viewMarker:\"isview\"},liveTab:{fallbackView:misc.liveViewLabel},suppressedDialogs:{},edgeClickBehaviour:\"manager\",debug:\"false\",notifications:\"true\",popups:{enabled:\"true\",delay:\"600\",width:\"240px\",height:\"140px\"},jsonIndentation:\"1\",alwaysAddNodeIdToViewFilter:\"true\",editNodeOnCreate:\"false\",singleClickMode:\"false\",nodeFilterNeighbours:\"false\",editorMenuBar:{showNeighScopeButton:\"true\",showRasterMenuButton:\"true\",showScreenshotButton:\"true\"}}};var filter=exports.filter={nodeTypes:\"[prefix[\"+path.nodeTypes+\"]]\",edgeTypes:\"[prefix[\"+path.edgeTypes+\"]]\",views:\"[\"+config.sys.field.viewMarker+\"[true]]\",defaultEdgeTypeFilter:\"-[prefix[_]] -[[tw-body:link]] -[[tw-list:tags]] -[[tw-list:list]]\"};var allSelector=\"[all[tiddlers+shadows]!has[draft.of]]\";var s={allEdgeTypes:allSelector+\" +\"+filter.edgeTypes,allNodeTypes:allSelector+\" +\"+filter.nodeTypes,allViews:allSelector+\" +\"+filter.views,allPotentialNodes:\"[all[tiddlers]!is[system]!has[draft.of]]\"};var selector=exports.selector=_extends({},s,{allEdgeTypesById:s.allEdgeTypes+\" +[removeprefix[\"+path.edgeTypes+\"/]]\",allNodeTypesById:s.allNodeTypes+\" +[removeprefix[\"+path.nodeTypes+\"/]]\",allViewsByLabel:s.allViews+\" +[removeprefix[\"+path.views+\"/]]\"});\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/environment.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/exception": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/exception", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function r(r,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||false;o.configurable=true;if(\"value\"in o)o.writable=true;Object.defineProperty(r,o.key,o)}}return function(t,e,o){if(e)r(t.prototype,e);if(o)r(t,o);return t}}();function _classCallCheck(r,t){if(!(r instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(r,t){if(!r){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:r}function _inherits(r,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t}\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/exception\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var TiddlyMapError=function(r){_inherits(t,r);function t(r,e){_classCallCheck(this,t);var o=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));o.payload=e;return o}_createClass(t,[{key:\"getPayload\",value:function r(){return this.payload}}]);return t}(Error);var EnvironmentError=exports.EnvironmentError=function(r){_inherits(t,r);function t(r){_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,\"Critical parts of the underlying system changed: \"+r))}return t}(TiddlyMapError);var DependencyError=exports.DependencyError=function(r){_inherits(t,r);function t(r){_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,\"TiddlyMap cannot run without: : \"+r))}return t}(TiddlyMapError);var MissingOverrideError=exports.MissingOverrideError=function(r){_inherits(t,r);function t(r,e){_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r.constructor.name+' does not override method \"'+e+'\"'))}return t}(TiddlyMapError);var ResourceNotFoundException=exports.ResourceNotFoundException=function(r){_inherits(t,r);function t(r){_classCallCheck(this,t);for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++){o[n-1]=arguments[n]}return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,\"Cannot resolve \"+r,o))}return t}(TiddlyMapError);var InvalidArgumentException=exports.InvalidArgumentException=function(r){_inherits(t,r);function t(){_classCallCheck(this,t);for(var r=arguments.length,e=Array(r),o=0;o<r;o++){e[o]=arguments[o]}return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,\"Invalid or missing argument provided\",e))}return t}(TiddlyMapError);\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/exceptions.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/URL": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/URL", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/URL\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */\n/**\n * <<<\n * Lightweight URL manipulation with JavaScript. This library is\n * independent of any other libraries and has pretty simple interface\n * and lightweight code-base. Some ideas of query string parsing\n * had been taken from Jan Wolter.\"\n *\n * @see http://unixpapa.com/js/querystring.html\n * @license MIT\n * @author Mykhailo Stadnyk <mikhus@gmail.com>\n * <<< https://github.com/Mikhus/jsurl\n *\n * @class\n * @param {string} url\n */function Url(t){this.paths=function(t){var e=\"\",r=0,o;if(t&&t.length&&t+\"\"!==t){if(this.isAbsolute()){e=\"/\"}for(o=t.length;r<o;r++){t[r]=encode(t[r])}this.path=e+t.join(\"/\")}t=(this.path.charAt(0)===\"/\"?this.path.slice(1):this.path).split(\"/\");for(r=0,o=t.length;r<o;r++){t[r]=decode(t[r])}return t};this.encode=encode;this.decode=decode;this.isAbsolute=function(){return this.protocol||this.path.charAt(0)===\"/\"};this.toString=function(){return(this.protocol&&this.protocol+\"://\")+(this.user&&encode(this.user)+(this.pass&&\":\"+encode(this.pass))+\"@\")+(this.host&&this.host)+(this.port&&\":\"+this.port)+(this.path&&this.path)+(this.query.toString()&&\"?\"+this.query)+(this.hash&&\"#\"+encode(this.hash))};parse(this,t)}var map={protocol:\"protocol\",host:\"hostname\",port:\"port\",path:\"pathname\",query:\"search\",hash:\"hash\"},defaultPorts={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},parse=function t(e,r){var o=document,s=o.createElement(\"a\"),r=r||o.location.href,i=r.match(/\\/\\/(.*?)(?::(.*?))?@/)||[],n;s.href=r;for(n in map){e[n]=s[map[n]]||\"\"}e.protocol=e.protocol.replace(/:$/,\"\");e.query=e.query.replace(/^\\?/,\"\");e.hash=decode(e.hash.replace(/^#/,\"\"));e.user=decode(i[1]||\"\");e.pass=decode(i[2]||\"\");e.port=defaultPorts[e.protocol]==e.port||e.port==0?\"\":e.port;if(!e.protocol&&!/^([a-z]+:)?\\/\\//.test(r)){var h=new Url(o.location.href.match(/(.*\\/)/)[0]),a=h.path.split(\"/\"),p=e.path.split(\"/\"),c=[\"protocol\",\"user\",\"pass\",\"host\",\"port\"],f=c.length;a.pop();for(n=0;n<f;n++){e[c[n]]=h[c[n]]}while(p[0]==\"..\"){a.pop();p.shift()}e.path=(r.charAt(0)!=\"/\"?a.join(\"/\"):\"\")+\"/\"+p.join(\"/\")}else{e.path=e.path.replace(/^\\/?/,\"/\")}e.paths((e.path.charAt(0)==\"/\"?e.path.slice(1):e.path).split(\"/\"));parseQs(e)},encode=function t(e){return encodeURIComponent(e).replace(/'/g,\"%27\")},decode=function t(e){e=e.replace(/\\+/g,\" \");e=e.replace(/%([ef][0-9a-f])%([89ab][0-9a-f])%([89ab][0-9a-f])/gi,function(t,e,r,o){var s=parseInt(e,16)-224,i=parseInt(r,16)-128;if(s==0&&i<32){return t}var n=parseInt(o,16)-128,h=(s<<12)+(i<<6)+n;if(h>65535){return t}return String.fromCharCode(h)});e=e.replace(/%([cd][0-9a-f])%([89ab][0-9a-f])/gi,function(t,e,r){var o=parseInt(e,16)-192;if(o<2){return t}var s=parseInt(r,16)-128;return String.fromCharCode((o<<6)+s)});e=e.replace(/%([0-7][0-9a-f])/gi,function(t,e){return String.fromCharCode(parseInt(e,16))});return e},parseQs=function t(e){var r=e.query;e.query=new function(t){var e=/([^=&]+)(=([^&]*))?/g,r;while(r=e.exec(t)){var o=decodeURIComponent(r[1].replace(/\\+/g,\" \")),s=r[3]?decode(r[3]):\"\";if(this[o]!=null){if(!(this[o]instanceof Array)){this[o]=[this[o]]}this[o].push(s)}else{this[o]=s}}this.clear=function(){for(var t in this){if(!(this[t]instanceof Function)){delete this[t]}}};this.count=function(){var t=0,e;for(e in this){if(!(this[e]instanceof Function)){t++}}return t};this.isEmpty=function(){return this.count()===0};this.toString=function(){var t=\"\",e=encode,r,o;for(r in this){if(this[r]instanceof Function){continue}if(this[r]instanceof Array){var s=this[r].length;if(s){for(o=0;o<s;o++){t+=t?\"&\":\"\";t+=e(r)+\"=\"+e(this[r][o])}}else{t+=(t?\"&\":\"\")+e(r)+\"=\"}}else{t+=t?\"&\":\"\";t+=e(r)+\"=\"+e(this[r])}}return t}}(r)};exports.default=Url;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/url.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/lib/utils/basic": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/lib/utils/basic", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.bindTo=exports.getNearestRasterPosition=exports.mod=exports.removeDOMChildNodes=exports.setDomListeners=exports.merge=exports.getRandomLabel=exports.getFirstElementByClassName=exports.getImgFromWeb=exports.pickRandom=exports.hasKeyWithPrefix=exports.getWithoutPrefix=exports.getPropertiesByPrefix=exports.removeArrayElement=exports.isTrue=exports.replaceAll=exports.isInteger=exports.findAndRemoveClassNames=exports.getAncestorWithClass=exports.makeHashMap=exports.getWithoutNewLines=exports.joinAndWrap=exports.parseJSON=exports.hasSubString=exports.inArray=exports.getRandomInt=exports.isEqual=exports.identity=exports.base64=exports.startsWith=exports.getBasename=exports.escapeRegex=exports.hasElements=exports.ucFirst=undefined;var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/lib/utils/basic\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _exception=require(\"$:/plugins/felixhayashi/tiddlymap/js/exception\");var ucFirst=exports.ucFirst=function e(t){return t&&t[0].toUpperCase()+t.slice(1)};var hasElements=exports.hasElements=function e(t){return Object.keys(t).length>0};var escapeRegex=exports.escapeRegex=function e(t){return t.replace(/[-$^?.+*[\\]\\\\(){}|]/g,\"\\\\$&\")};var getBasename=exports.getBasename=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"/\";return t.substring(t.lastIndexOf(r)+1)};var startsWith=exports.startsWith=function e(t,r){return t.substring(0,r.length)===r};var base64=exports.base64=typeof window===\"undefined\"?function(e){return new Buffer(e).toString(\"base64\")}:window.btoa.bind(window);var identity=exports.identity=function e(t){return(typeof t===\"undefined\"?\"undefined\":_typeof(t))===\"object\"&&t!==null?JSON.stringify(Object.keys(t).sort().map(function(e){return[e,t[e]]})):null};var isEqual=exports.isEqual=function e(t,r){return identity(t)===identity(r)};var getRandomInt=exports.getRandomInt=function e(t,r){return Math.floor(Math.random()*(r-t)+t)};var inArray=exports.inArray=function e(t,r){return r.indexOf(t)!==-1};var hasSubString=exports.hasSubString=function e(t,r){return t.indexOf(r)!==-1};var parseJSON=exports.parseJSON=function e(t,r){try{return JSON.parse(t)}catch(e){return r}};var joinAndWrap=exports.joinAndWrap=function e(t,r,n){var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:\" \";return r+t.join(n+o+r)+n};var getWithoutNewLines=exports.getWithoutNewLines=function e(t){return typeof t===\"string\"?t.replace(/[\\n\\r]/g,\" \"):t};var makeHashMap=exports.makeHashMap=function e(t){var r=Object.create(null);Object.defineProperty(r,\"hasOwnProperty\",{enumerable:false,configurable:false,writable:false,value:Object.prototype.hasOwnProperty.bind(r)});if(t){for(var n in t){if(t.hasOwnProperty(n)){r[n]=t[n]}}}return r};var getAncestorWithClass=exports.getAncestorWithClass=function e(t,r){if((typeof t===\"undefined\"?\"undefined\":_typeof(t))!==\"object\"||typeof r!==\"string\"){return}while(t.parentNode&&t.parentNode!==document){t=t.parentNode;if(t.classList.contains(r)){return t}}};var findAndRemoveClassNames=exports.findAndRemoveClassNames=function e(t){for(var r=t.length;r--;){var n=document.getElementsByClassName(t[r]);for(var o=n.length;o--;){n[o].classList.remove(t[r])}}};var isInteger=exports.isInteger=Number.isInteger||function(e){return typeof e===\"number\"&&isFinite(e)&&Math.floor(e)===e};var replaceAll=exports.replaceAll=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"\";var n=arguments[2];for(var o=n.length;o--;){var s=n[o];var i=r;if(Array.isArray(s)){i=s[1];s=s[0]}t=t.replace(s,i)}return t};var isTrue=exports.isTrue=function e(t,r){if(t==null){return!!r}else if(typeof t===\"string\"){var n=parseInt(t);return isNaN(n)?t===\"true\":n!==0}else if(typeof t===\"boolean\"){return t}else if(typeof t===\"number\"){return n!==0}return false};var removeArrayElement=exports.removeArrayElement=function e(t,r){var n=t.indexOf(r);if(n>-1){return t.splice(n,1)[0]}};var getPropertiesByPrefix=exports.getPropertiesByPrefix=function e(t,r,n){var o=makeHashMap();for(var s in t){if(startsWith(s,r)){o[n?s.substr(r.length):s]=t[s]}}return o};var getWithoutPrefix=exports.getWithoutPrefix=function e(t,r){return startsWith(t,r)?t.substr(r.length):t};var hasKeyWithPrefix=exports.hasKeyWithPrefix=function e(t,r){for(var n in t){if(startsWith(n,r)){return true}}return false};var pickRandom=exports.pickRandom=function e(t){return t[getRandomInt(0,t.length-1)]};var getImgFromWeb=exports.getImgFromWeb=function e(t,r){if(!t||typeof r!==\"function\")return;var n=new XMLHttpRequest;n.open(\"GET\",t,true);n.responseType=\"blob\";n.onerror=function(e){console.log(e)};n.onload=function(e){if(this.readyState===4&&(this.status===200||this.status===0&&this.response.size>0)){var t=this.response;r(window.URL.createObjectURL(t))}};try{n.send()}catch(e){console.log(e)}};var getFirstElementByClassName=exports.getFirstElementByClassName=function e(t,r,n){var o=(r||document).getElementsByClassName(t)[0];if(!o&&(typeof n===\"boolean\"?n:true)){var s='Missing element with class \"'+t+'\" inside '+r;throw new _exception.EnvironmentError(s)}return o};var getRandomLabel=exports.getRandomLabel=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=pickRandom([\"exciting\",\"notable\",\"epic\",\"new\",\"fancy\",\"great\",\"cool\",\"fresh\",\"funky\",\"clever\"]);var n=(t.object||pickRandom([\"concept\",\"idea\",\"thought\",\"topic\",\"subject\"]))+(t.plural?\"s\":\"\");return\"My \"+r+\" \"+n};var _merge=function e(t,r){if((typeof t===\"undefined\"?\"undefined\":_typeof(t))!==\"object\"){t={}}for(var n in r){if(r.hasOwnProperty(n)){if(r[n]!=null){t[n]=_typeof(r[n])===\"object\"?e(t[n],r[n]):r[n]}}}return t};var merge=exports.merge=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++){n[o-1]=arguments[o]}for(var s=0,i=n.length;s<i;s++){var a=n[s];if(a!=null&&(typeof a===\"undefined\"?\"undefined\":_typeof(a))===\"object\"){t=_merge(t,a)}}return t};var setDomListeners=exports.setDomListeners=function e(t,r,n,o){o=typeof o===\"boolean\"?o:false;t=t+\"EventListener\";for(var s in n){var i=n[s];if(typeof i===\"function\"){r[t](s,i,o)}else{r[t](s,i[0],typeof i[1]===\"boolean\"?i[1]:o)}}};var removeDOMChildNodes=exports.removeDOMChildNodes=function e(t){for(var r=t.childNodes.length;r--;){t.removeChild(t.childNodes[r])}};var mod=exports.mod=function e(t,r){var n=t%r;return Math.floor(n>=0?n:n+r)};var getNearestRasterPosition=exports.getNearestRasterPosition=function e(t,r){var n=t.x,o=t.y;var s=r/2;var i=mod(n,r);var a=mod(o,r);return{x:i<s?n-i:n-i+r,y:a<s?o-a:o-a+r}};var bindTo=exports.bindTo=function e(t,r){for(var n=r.length;n--;){var o=t[r[n]];t[r[n]]=o.bind(t)}};\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/utils/basic.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/lib/utils/thirdParty": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/lib/utils/thirdParty", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/lib/utils/thirdParty\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var generateDraftTitle=exports.generateDraftTitle=function e(n){var r=0,t=void 0;do{t=\"Draft \"+(r?r+1+\" \":\"\")+\"of '\"+n+\"'\";r++}while($tw.wiki.tiddlerExists(t));return t};var makeDraftTiddler=exports.makeDraftTiddler=function e(n){var r=$tw.wiki.findDraft(n);if(r){return $tw.wiki.getTiddler(r)}var t=$tw.wiki.getTiddler(n);r=generateDraftTitle(n);var l=new $tw.Tiddler(t,{title:r,\"draft.title\":n,\"draft.of\":n},$tw.wiki.getModificationFields());$tw.wiki.addTiddler(l);return l};var getFullScreenApis=exports.getFullScreenApis=function e(){var n=document,r=n.body,t={_requestFullscreen:r.webkitRequestFullscreen!==undefined?\"webkitRequestFullscreen\":r.mozRequestFullScreen!==undefined?\"mozRequestFullScreen\":r.msRequestFullscreen!==undefined?\"msRequestFullscreen\":r.requestFullscreen!==undefined?\"requestFullscreen\":\"\",_exitFullscreen:n.webkitExitFullscreen!==undefined?\"webkitExitFullscreen\":n.mozCancelFullScreen!==undefined?\"mozCancelFullScreen\":n.msExitFullscreen!==undefined?\"msExitFullscreen\":n.exitFullscreen!==undefined?\"exitFullscreen\":\"\",_fullscreenElement:n.webkitFullscreenElement!==undefined?\"webkitFullscreenElement\":n.mozFullScreenElement!==undefined?\"mozFullScreenElement\":n.msFullscreenElement!==undefined?\"msFullscreenElement\":n.fullscreenElement!==undefined?\"fullscreenElement\":\"\",_fullscreenChange:n.webkitFullscreenElement!==undefined?\"webkitfullscreenchange\":n.mozFullScreenElement!==undefined?\"mozfullscreenchange\":n.msFullscreenElement!==undefined?\"MSFullscreenChange\":n.fullscreenElement!==undefined?\"fullscreenchange\":\"\"};if(!t._requestFullscreen||!t._exitFullscreen||!t._fullscreenElement){return null}else{return t}};var flatten=exports.flatten=function e(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var t=r.delimiter||\".\";var l=r.prefix||\"\";var i={};function u(e,n){Object.keys(e).forEach(function(f){var s=e[f];var c=r.safe&&Array.isArray(s);var a=Object.prototype.toString.call(s);var d=a===\"[object Object]\"||a===\"[object Array]\";var o=n?n+t+f:l+f;if(!c&&d){return u(s,o)}i[o]=s})}u(n);return i};var unflatten=exports.unflatten=function e(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var t=r.delimiter||\".\";var l={};if(Object.prototype.toString.call(n)!==\"[object Object]\"){return n}function i(e){var n=Number(e);return isNaN(n)||e.indexOf(\".\")!==-1?e:n}Object.keys(n).forEach(function(u){var f=u.split(t);var s=i(f.shift());var c=i(f[0]);var a=l;while(c!==undefined){if(a[s]===undefined){a[s]=typeof c===\"number\"&&!r.object?[]:{}}a=a[s];if(f.length>0){s=i(f.shift());c=i(f[0])}}a[s]=e(n[u],r)});return l};var genUUID=exports.genUUID=function(){var e=\"0123456789abcdefghijklmnopqrstuvwxyz\".split(\"\");return function(){var n=e,r=new Array(36);var t=0,l;for(var i=0;i<36;i++){if(i==8||i==13||i==18||i==23){r[i]=\"-\"}else if(i==14){r[i]=\"4\"}else{if(t<=2)t=33554432+Math.random()*16777216|0;l=t&15;t=t>>4;r[i]=n[i==19?l&3|8:l]}}return r.join(\"\")}}();\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/utils/thirdParty.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/lib/utils/tmap": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/lib/utils/tmap", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.getSnapshotTitle=exports.getArrayValuesAsHashmapKeys=exports.getLookupTable=exports.keyOfItemWithProperty=exports.keysOfItemsWithProperty=exports.getDublicates=exports.getId=exports.refreshDataSet=exports.drawRaster=exports.getPrettyFilter=exports.groupByProperty=exports.isEdgeTypeMatch=exports.getEdgeTypeMatches=exports.getDataUri=exports.convert=exports.getValues=exports.getIterableCollection=exports.getLabel=undefined;var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/lib/utils/tmap\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _vis=require(\"$:/plugins/felixhayashi/vis/vis.js\");var _vis2=_interopRequireDefault(_vis);var _exception=require(\"$:/plugins/felixhayashi/tiddlymap/js/exception\");var _basic=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/basic\");var basicUtils=_interopRequireWildcard(_basic);var _wiki=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/wiki\");var wikiUtils=_interopRequireWildcard(_wiki);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var getLabel=exports.getLabel=function e(t,r){var i=wikiUtils.getTiddler(t);return(i&&i.fields[r]?i.fields[r]:i.fields.title).replace(\"\\\\n\",\"\\n\")};var getIterableCollection=exports.getIterableCollection=function e(t){return t instanceof _vis2.default.DataSet?t.get():t};var getValues=exports.getValues=function e(t){if(Array.isArray(t)){return t}else if(t instanceof _vis2.default.DataSet){return t.get({returnType:\"Array\"})}var r=[];var i=Object.keys(t);for(var a=i.length;a--;){r.push(t[i[a]])}return r};var convert=exports.convert=function e(t,r){if((typeof t===\"undefined\"?\"undefined\":_typeof(t))!==\"object\"){throw new _exception.InvalidArgumentException(t,r)}if(r===\"object\"){r=\"hashmap\"}var i={array:function e(t){return getValues(t)},hashmap:function e(t){return t instanceof _vis2.default.DataSet?t.get({returnType:\"Object\"}):t},dataset:function e(t){return t instanceof _vis2.default.DataSet?t:!Array.isArray(t)?getValues(t):new _vis2.default.DataSet(t)}};return i[r](t)};var getDataUri=exports.getDataUri=function e(t,r,i){var a=wikiUtils.getTiddler(t);r=r||a.fields.type||\"image/svg+xml\";var s=a.fields.text;var o=$tw.config.contentTypeInfo[r].encoding;if(r===\"image/svg+xml\"){s=s.replace(/\\r?\\n|\\r/g,\" \");if(!basicUtils.hasSubString(\"xmlns\",s)){s=s.replace(/<svg/,'<svg xmlns=\"http://www.w3.org/2000/svg\"')}}if(i&&o!==\"base64\"){o=\"base64\";s=basicUtils.base64(s)}return\"data:\"+r+\";\"+o+\",\"+s};var eTyFiltAutoPrefix=\"[all[]] \";var getEdgeTypeMatches=exports.getEdgeTypeMatches=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:\"\";var r=arguments[1];if(!r){r=wikiUtils.getTiddlersByPrefix($tm.path.edgeTypes+\"/\",{iterator:\"eachTiddlerPlusShadows\",removePrefix:true})}if(r!=null&&!Array.isArray(r)){r=Object.keys(r)}return wikiUtils.getMatches(eTyFiltAutoPrefix+t,r)};var isEdgeTypeMatch=exports.isEdgeTypeMatch=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"\";return wikiUtils.isMatch(t,eTyFiltAutoPrefix+r)};var groupByProperty=exports.groupByProperty=function e(t,r){t=getIterableCollection(t);var i=basicUtils.makeHashMap();var a=Object.keys(t);for(var s in a){var o=t[a[s]];var n=o[r];if(n==null){throw\"Cannot group by property \"+r}else{if(!Array.isArray(i[n])){i[n]=[]}i[n].push(o)}}return i};var getPrettyFilter=exports.getPrettyFilter=function e(t){t=t.trim().replace(\"][\",\"] [\");var r=/[+-]?\\[.+?[\\]\\}\\>]\\]/g;var i=t.match(r);t=t.replace(r,\" [] \").trim();var a=t.split(/\\s+/);var s=0;var o=[];for(var n=0,l=a.length;n<l;n++){o[n]=a[n]===\"[]\"?i[s++]:a[n]}return o.join(\"\\n\")};var drawRaster=exports.drawRaster=function e(t,r,i,a){var s=arguments.length>4&&arguments[4]!==undefined?arguments[4]:\"#D9D9D9\";var o=basicUtils.getNearestRasterPosition(i,a),n=o.x,l=o.y;var u=t.canvas.width/r;var p=t.canvas.height/r;var f=a*2;var v=Math.ceil(u/a/2)*a+f;var c=Math.ceil(p/a/2)*a+f;var y=n-v;var g=n+v;var d=l-c;var h=l+c;t.beginPath();for(var b=y;b<g;b+=a){t.moveTo(b,d);t.lineTo(b,h)}for(var x=d;x<=h;x+=a){t.moveTo(y,x);t.lineTo(g,x)}t.strokeStyle=s;t.fillStyle=s;t.stroke()};var refreshDataSet=exports.refreshDataSet=function e(t,r){var i=t.get({returnType:\"Object\"});var a=[];var s=[];var o=[];var n=[];for(var l in r){if(i[l]){if(basicUtils.isEqual(i[l],r[l])){continue}s.push(l);t.remove(l)}else{a.push(l)}if(r[l].x===undefined){o.push(l)}t.add(r[l])}for(var u in i){if(!r[u]){n.push(u);t.remove(u)}}return{withoutPosition:o,inserted:a,updated:s,removed:n}};var getId=exports.getId=function e(t){return wikiUtils.getTiddler(t).fields[\"tmap.id\"]};var getDublicates=exports.getDublicates=function e(t){var r=getId(t);if(!r){return[]}var i=wikiUtils.getTiddlersWithField(\"tmap.id\",r,{limit:2});delete i[wikiUtils.getTiddlerRef(t)];return Object.keys(i)};var keysOfItemsWithProperty=exports.keysOfItemsWithProperty=function e(t,r,i,a){t=getIterableCollection(t);var s=Object.keys(t);var o=[];a=typeof a===\"number\"?a:s.length;for(var n=0,l=s.length;n<l;n++){var u=s[n];if(_typeof(t[u])===\"object\"&&t[u][r]){if(!i||t[u][r]===i){o.push(u);if(o.length===a){break}}}}return o};var keyOfItemWithProperty=exports.keyOfItemWithProperty=function e(t,r,i){return keysOfItemsWithProperty(t,r,i,1)[0]};var getLookupTable=exports.getLookupTable=function e(t,r){t=getIterableCollection(t);var i=basicUtils.makeHashMap();var a=Object.keys(t);for(var s=0,o=a.length;s<o;s++){var n=a[s];var l=r?t[n][r]:t[n];var u=typeof l===\"undefined\"?\"undefined\":_typeof(l);if(u===\"string\"&&l!==\"\"||u===\"number\"){if(!i[l]){i[l]=r?t[n]:true;continue}}throw new Error('Cannot use \"'+l+'\" as lookup table index')}return i};var getArrayValuesAsHashmapKeys=exports.getArrayValuesAsHashmapKeys=getLookupTable;var getSnapshotTitle=exports.getSnapshotTitle=function e(t,r){return\"Snapshot – \"+t+\" (\"+(new Date).toDateString()+\").\"+(r||\"png\")};\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/utils/tmap.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/utils": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/utils", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.utils=undefined;var _extends=Object.assign||function(i){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var e in t){if(Object.prototype.hasOwnProperty.call(t,e)){i[e]=t[e]}}}return i};/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/utils\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _basic=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/basic\");var basicUtils=_interopRequireWildcard(_basic);var _thirdParty=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/thirdParty\");var thirdPartyUtils=_interopRequireWildcard(_thirdParty);var _wiki=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/wiki\");var wikiUtils=_interopRequireWildcard(_wiki);var _tmap=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/tmap\");var tMapUtils=_interopRequireWildcard(_tmap);function _interopRequireWildcard(i){if(i&&i.__esModule){return i}else{var r={};if(i!=null){for(var t in i){if(Object.prototype.hasOwnProperty.call(i,t))r[t]=i[t]}}r.default=i;return r}}var utils=exports.utils=_extends({},basicUtils,thirdPartyUtils,wikiUtils,tMapUtils);exports.default=utils;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/utils/utils.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/lib/utils/wiki": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/lib/utils/wiki", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.touch=exports.addTiddler=exports.getTiddlersByPrefix=exports.getTiddlerWithField=exports.getTiddlersWithField=exports.deleteByPrefix=exports.cp=exports.mv=exports.addTWlisteners=exports.getChildWidgetByProperty=exports.getMergedTiddlers=exports.isSystemOrDraft=exports.isDraft=exports.setText=exports.getText=exports.isLeftVersionGreater=exports.getEntry=exports.setEntry=exports.clone=exports.writeFieldData=exports.parseFieldData=exports.isPreviewed=exports.notify=exports.registerTransclude=exports.getElementNode=exports.getTiddlerNode=exports.getTranscludeNode=exports.isMatch=exports.getMatches=exports.moveFieldValues=exports.deleteTiddlers=exports.setField=exports.setSidebarTab=exports.tiddlerExists=exports.getField=exports.getTiddler=exports.getTiddlerRef=undefined;var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};var _exception=require(\"$:/plugins/felixhayashi/tiddlymap/js/exception\");var _basic=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/basic\");var basicUtils=_interopRequireWildcard(_basic);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/lib/utils/wiki\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var getTiddlerRef=exports.getTiddlerRef=function e(t){if(t instanceof $tw.Tiddler){return t.fields.title}else if(typeof t===\"string\"){return t}else{throw new _exception.InvalidArgumentException(t)}};var getTiddler=exports.getTiddler=function e(t){return $tw.wiki.getTiddler(t instanceof $tw.Tiddler?t.fields.title:t)};var getField=exports.getField=function e(t,r){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:\"\";var d=getTiddler(t);return!d?i:d.fields[r]||i};var tiddlerExists=exports.tiddlerExists=function e(t){if(!t){return false}var r=getTiddlerRef(t);return Boolean(r&&($tw.wiki.tiddlerExists(r)||$tw.wiki.isShadowTiddler(r)))};var setSidebarTab=exports.setSidebarTab=function e(t){setText(getTiddlersByPrefix(\"$:/state/tab/sidebar-\")[0],t)};var setField=exports.setField=function e(t,r,i){if(!t||!r){return}var d=getTiddlerRef(t);var s=_defineProperty({title:d},r,i);var n=$tw.wiki.getTiddler(d,true);if(r!==\"text\"&&n&&!n.fields.text){s.text=\"\"}n=new $tw.Tiddler(n,s);$tw.wiki.addTiddler(n);return n};var deleteTiddlers=exports.deleteTiddlers=function e(t){var r=Object.keys(t);var i=$tw.wiki.getTiddlerList(\"$:/StoryList\");for(var d=r.length;d--;){var s=getTiddlerRef(t[r[d]]);if(!$tw.wiki.tiddlerExists(t[r[d]])){continue}var n=i.indexOf(s);if(n!==-1){i.splice(n,1);setField(\"$:/StoryList\",\"list\",i)}$tw.wiki.deleteTiddler(s)}};var moveFieldValues=exports.moveFieldValues=function e(t,r,i,d,s){if(t===r)return;var n=s||$tw.wiki.allTitles();for(var l=n.length;l--;){var a=getTiddler(n[l]);if(a.isDraft()||!a.fields[t]){continue}if(!d&&$tw.wiki.isSystemTiddler(n[l])){continue}var o=_defineProperty({},r,a.fields[t]);if(i){o[t]=undefined}$tw.wiki.addTiddler(new $tw.Tiddler(a,o))}};var getMatches=exports.getMatches=function e(t,r,i){var d=undefined;var s=$tw.wiki;if(typeof t===\"string\"){t=s.compileFilter(t)}if(r!=null&&(typeof r===\"undefined\"?\"undefined\":_typeof(r))===\"object\"){if(!Array.isArray(r)){r=Object.keys(r)}d=function e(t){for(var i=r.length;i--;){var d=s.getTiddler(r[i]);t(d,r[i])}}}return t.call(s,d,i)};var isMatch=exports.isMatch=function e(t,r){return getTiddlerRef(t)===getMatches(r,[getTiddlerRef(t)])[0]};var getTranscludeNode=exports.getTranscludeNode=function e(t,r){return{type:\"transclude\",attributes:{tiddler:{type:\"string\",value:getTiddlerRef(t)}},children:[],isBlock:!!r}};var getTiddlerNode=exports.getTiddlerNode=function e(t){return{type:\"tiddler\",attributes:{tiddler:{type:\"string\",value:getTiddlerRef(t)}},children:[]}};var getElementNode=exports.getElementNode=function e(t,r,i){return{type:\"element\",tag:t,attributes:{class:{type:\"string\",value:r}},children:i?[{type:\"text\",text:i}]:[]}};var registerTransclude=exports.registerTransclude=function e(t,r,i){basicUtils.removeArrayElement(t.children,t[r]);t[r]=t.makeChildWidget(getTranscludeNode(i,true));t.children.push(t[r]);return t[r]};var notify=exports.notify=function e(t){var r=\"$:/temp/tiddlymap/notify\";$tw.wiki.addTiddler(new $tw.Tiddler({title:r,text:t}));$tw.notifier.display(r)};var isPreviewed=exports.isPreviewed=function e(t){if(!t){return false}if(t.domNode.isTiddlyWikiFakeDom){return true}if(t.getVariable(\"tv-tiddler-preview\")){return true}else{var r=\"tc-tiddler-preview-preview\";return!!basicUtils.getAncestorWithClass(t.parentDomNode,r)}};var parseFieldData=exports.parseFieldData=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"text\";var i=arguments[2];var d=getTiddler(t);if(!d){return i}return basicUtils.parseJSON(d.fields[r],i)};var writeFieldData=exports.writeFieldData=function e(t,r,i,d){if((typeof i===\"undefined\"?\"undefined\":_typeof(i))!==\"object\"){return}d=parseInt(d);d=d>0&&r===\"text\"?d:0;setField(t,r,JSON.stringify(i,null,d))};var clone=exports.clone=function e(t,r){setField(t,\"title\",r)};var setEntry=exports.setEntry=function e(t,r,i){$tw.wiki.setText(getTiddlerRef(t),null,r,i)};var getEntry=exports.getEntry=function e(t,r,i){var d=$tw.wiki.getTiddlerData(getTiddlerRef(t),{});return d[r]==null?i:d[r]};var isLeftVersionGreater=exports.isLeftVersionGreater=function e(t,r){return t!==r&&$tw.utils.checkVersions(t,r)};var getText=exports.getText=function e(t,r){return getField(t,\"text\",r)};var setText=exports.setText=function e(t,r){setField(t,\"text\",r)};var isDraft=exports.isDraft=function e(t){var r=getTiddler(t);return r&&r.isDraft()};var isSystemOrDraft=exports.isSystemOrDraft=function e(t){return $tw.wiki.isSystemTiddler(getTiddlerRef(t))||isDraft(t)};var getMergedTiddlers=exports.getMergedTiddlers=function e(t,r){if(!Array.isArray(t)){return}for(var i=t.length;i--;){t[i]=getTiddler(t[i])}if(!t.length){return}t.push({title:r||t[0].fields.title},$tw.wiki.getModificationFields(),$tw.wiki.getCreationFields());t.unshift(null);return new(Function.prototype.bind.apply($tw.Tiddler,t))};var getChildWidgetByProperty=exports.getChildWidgetByProperty=function e(t,r,i){var d=t.children;for(var s=d.length;s--;){var n=d[s];if(n[r]===i){return n}else{n=e(n,r,i);if(n){return n}}}};var addTWlisteners=exports.addTWlisteners=function e(t,r,i){for(var d in t){r.addEventListener(d,t[d].bind(i))}};var mv=exports.mv=function e(t,r,i,d){if(t===r||!t||!r){return}i=typeof i===\"boolean\"?i:false;d=typeof d===\"boolean\"?d:true;var s=getTiddlersByPrefix(t);var n=basicUtils.makeHashMap();for(var l=s.length;l--;){var a=s[l];var o=a.replace(t,r);if($tw.wiki.tiddlerExists(o)&&!i){return}n[a]=o}for(var f in n){setField(f,\"title\",n[f]);if(d){$tw.wiki.deleteTiddler(f)}}return n};var cp=exports.cp=function e(t,r,i){return mv(t,r,i,false)};var deleteByPrefix=exports.deleteByPrefix=function e(t,r){if(!t){return}r=r||$tw.wiki.allTitles();var i=[];for(var d=r.length;d--;){if(basicUtils.startsWith(r[d],t)){$tw.wiki.deleteTiddler(r[d]);i.push(i[d])}}return i};var getTiddlersWithField=exports.getTiddlersWithField=function e(t,r){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var d=i.tiddlers||$tw.wiki.allTitles();var s=i.isIncludeDrafts===true;var n=basicUtils.makeHashMap();var l=Object.keys(d);var a=$tw.utils.hop;var o=i.limit||0;for(var f=l.length;f--;){var u=getTiddler(d[l[f]]);var p=u.fields;if(a(p,t)&&(!a(p,\"draft.of\")||s)){if(!r||p[t]===r){n[p.title]=u;if(--o===0){break}}}}return n};var getTiddlerWithField=exports.getTiddlerWithField=function e(t,r){return Object.keys(getTiddlersWithField(t,r,{limit:1}))[0]};var getTiddlersByPrefix=exports.getTiddlersByPrefix=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=r.removePrefix===true;var d=[];var s=$tw.wiki[r.iterator||\"each\"];s(function(e,r){if(basicUtils.startsWith(r,t)){d.push(i?basicUtils.getWithoutPrefix(r,t):r)}});return d};var addTiddler=exports.addTiddler=function e(t,r){var i=getTiddler(t);if(!r&&i){return i}i=new $tw.Tiddler({title:t,text:\"\"},$tw.wiki.getModificationFields(),$tw.wiki.getCreationFields());$tw.wiki.addTiddler(i);return i};var touch=exports.touch=function e(t){if(!t){return}var r=new $tw.Tiddler(getTiddler(t),$tw.wiki.getModificationFields());$tw.wiki.addTiddler(r)};\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/lib/utils/wiki.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/macro/tmap": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/macro/tmap", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.params=exports.name=exports.run=undefined;var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};/* @preserve TW-Guard */\n/*\\\ntitle: $:/plugins/felixhayashi/tiddlymap/js/macro/tmap\ntype: application/javascript\nmodule-type: macro\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _ViewAbstraction=require(\"$:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction\");var _ViewAbstraction2=_interopRequireDefault(_ViewAbstraction);var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var name=\"tmap\";var params=getParamSlots(5);function run(){this.substVarRefs=this.substituteVariableReferences;var e=command[arguments[0]];var t=null;if(typeof e===\"function\"){var r=Array.prototype.slice.call(arguments,1);t=e.apply(this,r)}return typeof t===\"string\"?t:\"\"}function getParamSlots(e){var t=[];for(var r=0;r<e;r++){t.push({name:\"arg\"+r})}return t}var command=_utils2.default.makeHashMap();command.basename=function(e){var t=this.getVariable(\"currentTiddler\");return _utils2.default.getBasename(t,e)};command.datauri=function(e,t){return _utils2.default.getDataUri(e,t,true)};command.testJSON=function(e){var t=$tw.wiki.getTiddler(this.getVariable(\"currentTiddler\"));try{JSON.parse(t.fields[e]);return\"valid\"}catch(e){return\"malformed\"}};command.splitAndSelect=function(e,t){var r=this.getVariable(\"currentTiddler\");var a=r.split(e)[t];return a!=null?a:r};command.concat=function(){var e=\"\";for(var t=1,r=arguments.length;t<r;t++){e+=arguments[t]}return e};command.uuid=function(){return _utils2.default.genUUID()};command.regRepl=function(){var e=this.substVarRefs(arguments[0]);var t=arguments[1];var r=this.substVarRefs(arguments[2]);var a=this.substVarRefs(arguments[4]);return e.replace(new RegExp(t,a),r)};command.halfOfString=function(){var e=this.substVarRefs(arguments[0]);if(!e){return\"\"}return e.substr(0,Math.ceil(e.length/2))};command.isETyVisible=function(e,t){e=new _ViewAbstraction2.default(e);var r=command.getETyId.call(this,e,t);return\"\"+e.isEdgeTypeVisible(r)};command.getETyId=function(e,t){e=new _ViewAbstraction2.default(e);var r=_EdgeType2.default.getInstance(t||this.getVariable(\"currentTiddler\"));if(!r.namespace){var a=_EdgeType2.default.getIdParts(r.id),n=a.marker,i=a.name;var u=e.getConfig(\"edge_type_namespace\");r=_EdgeType2.default.getInstance(_EdgeType2.default.getId(n,u,i))}return r.id};command.scale=function(){var e=\"\";for(var t=1,r=parseInt(arguments[0]);t<r;t++){e+=\"[[\"+t+\"]]\"}return e};command.mergeFields=function(){var e=_utils2.default.getTiddler(arguments[0]);var t=arguments[1];var r=arguments[2]||\" \";if(!e)return;var a=_utils2.default.getPropertiesByPrefix(e.fields,t);var n=\"\";for(var i in a){if(typeof a[i]===\"string\"){n+=a[i]+r}}return n};command.option=function(e,t){if(typeof $tm==\"undefined\"){return\"\"}var r=$tm;var a=e.split(\".\");for(var n=0;n<a.length;n++){if((typeof r===\"undefined\"?\"undefined\":_typeof(r))==\"object\"&&r[a[n]]){r=r[a[n]]}}if(t&&typeof r===\"string\"&&_utils2.default.hasSubString(t)&&r.lastIndexOf(t)+t.length===r.length){r=r+t}return r};exports.run=run;exports.name=name;exports.params=params;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/macro/MapMacro.js.map\n", + "type": "application/javascript", + "module-type": "macro" + }, + "$:/plugins/felixhayashi/tiddlymap/js/Adapter": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/Adapter", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};var _createClass=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||false;r.configurable=true;if(\"value\"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}return function(t,i,r){if(i)e(t.prototype,i);if(r)e(t,r);return t}}();/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/Adapter\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _ViewAbstraction=require(\"$:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction\");var _ViewAbstraction2=_interopRequireDefault(_ViewAbstraction);var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _NodeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/NodeType\");var _NodeType2=_interopRequireDefault(_NodeType);var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _Edge=require(\"$:/plugins/felixhayashi/tiddlymap/js/Edge\");var _Edge2=_interopRequireDefault(_Edge);var _vis=require(\"$:/plugins/felixhayashi/vis/vis.js\");var _vis2=_interopRequireDefault(_vis);var _environment=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/environment\");var env=_interopRequireWildcard(_environment);var _contrastcolour=require(\"$:/core/modules/macros/contrastcolour.js\");function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,i){if(t in e){Object.defineProperty(e,t,{value:i,enumerable:true,configurable:true,writable:true})}else{e[t]=i}return e}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}var Adapter=function(){function e(t,i){_classCallCheck(this,e);this.getTiddlerById=t.getTiddlerById.bind(t);this.getId=t.getIdByTiddler.bind(t);this.assignId=t.assignId.bind(t);this.edgeTypeSubscriberRegistry=i;this.indeces=$tm.indeces;this.wiki=$tw.wiki;this.visShapesWithTextInside=_utils2.default.getLookupTable([\"ellipse\",\"circle\",\"database\",\"box\",\"text\"])}_createClass(e,[{key:\"deleteEdge\",value:function e(t){return this._processEdge(t,\"delete\")}},{key:\"insertEdge\",value:function e(t){return this._processEdge(t,\"insert\")}},{key:\"deleteEdges\",value:function e(t){t=_utils2.default.convert(t,\"array\");for(var i=t.length;i--;){this.deleteEdge(t[i])}}},{key:\"_processEdge\",value:function e(t,i){$tm.logger(\"debug\",\"Edge\",i,t);var r=this.getTiddlerById(t.from);if(!r||!_utils2.default.tiddlerExists(r)){return}var a=_utils2.default.getTiddler(r);var s=this.indeces.allETy[t.type]||_EdgeType2.default.getInstance(t.type);var l=this.edgeTypeSubscriberRegistry.getAllForType(s);var n=i+\"Edge\";for(var o=l.length;o--;){l[o][n](a,t,s)}if(i===\"insert\"&&!s.exists()){s.save()}return t}},{key:\"getAdjacencyList\",value:function e(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};$tm.start(\"Creating adjacency list\");if(!i.edges){var r=_utils2.default.getMatches(env.selector.allPotentialNodes);i.edges=this.getEdgesForSet(r,i.toWL,i.typeWL)}var a=_utils2.default.groupByProperty(i.edges,t||\"to\");$tm.stop(\"Creating adjacency list\");return a}},{key:\"getNeighbours\",value:function e(t){var i=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};$tm.start(\"Get neighbours\");var a=r.addProperties,s=r.toWL,l=r.typeWL,n=r.steps;var o=this.indeces.allETy;var d=_utils2.default.getArrayValuesAsHashmapKeys(t);var u=_ViewAbstraction2.default.exists(r.view)?new _ViewAbstraction2.default(r.view):null;var f=_utils2.default.makeHashMap();var g=_utils2.default.makeHashMap();var c=parseInt(n)>0?n:1;var v=r.direction||u&&u.getConfig(\"neighbourhood_directions\");var y=!v||v===\"both\";var h=y||v===\"in\";var p=y||v===\"out\";var _=u&&\"[all[]] \"+u.getNodeFilter(\"raw\");var b=this.getAdjacencyList(\"to\",r);var m=function e(t,r,s){f[t.id]=t;var l=i.getTiddlerById(t[r]);if(u&&_utils2.default.isTrue($tm.config.sys.nodeFilterNeighbours)&&!_utils2.default.isMatch(l,_)){return}if(!d[l]){d[l]=true;var n=i.makeNode(l,a);if(n){g[n.id]=n;s.push(l)}}};var w=void 0;for(w=0;w<c&&t.length;w++){var T=[];for(var k=t.length;k--;){if(_utils2.default.isSystemOrDraft(t[k])){continue}var E=this.getEdges(t[k],s,l);for(var N in E){var A=o[E[N].type];if(y||p&&A.toArrow||h&&A.invertedArrow){m(E[N],\"to\",T)}}var I=b[this.getId(t[k])];if(!I){continue}for(var x=I.length;x--;){var S=o[I[x].type];if(y||h&&S.toArrow||p&&S.invertedArrow){m(I[x],\"from\",T)}}}t=T}var j={nodes:g,edges:f};$tm.logger(\"debug\",\"Retrieved neighbourhood\",j,\"steps\",w);$tm.stop(\"Get neighbours\");return j}},{key:\"getGraph\",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},i=t.view,r=t.filter,a=t.edgeTypeWL,s=t.neighbourhoodScope;$tm.start(\"Assembling Graph\");i=_ViewAbstraction2.default.exists(i)?new _ViewAbstraction2.default(i):null;var l=_utils2.default.getMatches(r||i&&i.getNodeFilter(\"compiled\"));var n=parseInt(s||i&&i.getConfig(\"neighbourhood_scope\"));var o=a||i&&i.getEdgeTypeFilter(\"whitelist\");var d=_utils2.default.getArrayValuesAsHashmapKeys(l);var u={edges:this.getEdgesForSet(l,d,o),nodes:this.selectNodesByReferences(l,{view:i,outputType:\"hashmap\"})};if(n){var f=this.getNeighbours(l,{steps:n,view:i,typeWL:o,addProperties:{group:\"tmap:neighbour\"}});Object.assign(u.nodes,f.nodes);Object.assign(u.edges,f.edges);if(i&&i.isEnabled(\"show_inter_neighbour_edges\")){var g=this.getTiddlersByIds(f.nodes);var c=_utils2.default.getArrayValuesAsHashmapKeys(g);Object.assign(u.edges,this.getEdgesForSet(g,c))}}removeObsoleteViewData(u.nodes,i);this.attachStylesToNodes(u.nodes,i);$tm.stop(\"Assembling Graph\");$tm.logger(\"debug\",\"Assembled graph:\",u);return u}},{key:\"getEdges\",value:function e(t,i,r){var a=_utils2.default.getTiddler(t);if(!a||_utils2.default.isSystemOrDraft(a)){return}var s=this.indeces.allETy;var l=_utils2.default.makeHashMap();var n=this.edgeTypeSubscriberRegistry.getAll();for(var o=0,d=n.length;o<d;o++){Object.assign(l,n[o].loadEdges(a,i,r))}for(var u in l){var f=l[u];if(!f.from||!f.to){continue}var g=s[f.type]||_EdgeType2.default.getInstance(f.type);addStyleToEdge(l[u],g);l[u]=f}return l}},{key:\"getEdgesForSet\",value:function e(t,i,r){var a=_utils2.default.makeHashMap();for(var s=t.length;s--;){Object.assign(a,this.getEdges(t[s],i,r))}return a}},{key:\"selectEdgesByType\",value:function e(t){var i=_utils2.default.makeHashMap(_defineProperty({},_EdgeType2.default.getInstance(t).id,true));return this.getEdgesForSet(this.getAllPotentialNodes(),null,i)}},{key:\"getAllPotentialNodes\",value:function e(){return _utils2.default.getMatches($tm.selector.allPotentialNodes)}},{key:\"_processEdgesWithType\",value:function e(t,i){var r=i.action,a=i.newName;t=_EdgeType2.default.getInstance(t);$tm.logger(\"debug\",\"Processing edges\",t,r);var s=this.selectEdgesByType(t);if(r===\"rename\"){new _EdgeType2.default(a,t).save()}for(var l in s){this._processEdge(s[l],\"delete\");if(r===\"rename\"){s[l].type=a;this._processEdge(s[l],\"insert\")}}this.wiki.deleteTiddler(t.fullPath)}},{key:\"selectNodesByReferences\",value:function e(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r=i.addProperties,a=i.outputType;var s=_utils2.default.makeHashMap();var l=Object.keys(t);for(var n=l.length;n--;){var o=this.makeNode(t[l[n]],r);if(o){s[o.id]=o}}return _utils2.default.convert(s,a)}},{key:\"selectNodesByIds\",value:function e(t,i){var r=this.getTiddlersByIds(t);return this.selectNodesByReferences(r,i)}},{key:\"selectNodeById\",value:function e(t,i){i=Object.assign({},i,{outputType:\"hashmap\"});var r=this.selectNodesByIds([t],i);return r[t]}},{key:\"removeNodeType\",value:function e(t){t=_NodeType2.default.getInstance(t);this.wiki.deleteTiddler(t.fullPath)}},{key:\"makeNode\",value:function e(t,i){var r=_utils2.default.getTiddler(t);if(!r||_utils2.default.isSystemOrDraft(r))return;var a=_utils2.default.merge({},i);a.id=this.assignId(r);a.tRef=r.fields.title;var s=r.fields[$tm.field.nodeLabel];a.label=(s&&$tm.field.nodeLabel!==\"title\"?this.wiki.renderText(\"text/plain\",\"text/vnd-tiddlywiki\",s):r.fields.title).replace(\"\\\\n\",\"\\n\");return a}},{key:\"getInheritedNodeStyles\",value:function e(t){var i=this.getTiddlersByIds(t);var r={};var a=this.indeces.glNTy;for(var s=a.length;s--;){var l=a[s];var n=[];if(l.id===\"tmap:neighbour\"){for(var o in t){if(t[o].group===\"tmap:neighbour\"){n.push(this.getTiddlerById(o))}}}else{n=l.getInheritors(i)}for(var d=n.length;d--;){var u=n[d];var f=r[u]=r[u]||{};f.style=_utils2.default.merge(f.style||{},l.style);if(l[\"fa-icon\"]){f[\"fa-icon\"]=l[\"fa-icon\"]}else if(l[\"tw-icon\"]){f[\"tw-icon\"]=l[\"tw-icon\"]}}}return r}},{key:\"attachStylesToNodes\",value:function e(t,i){i=_ViewAbstraction2.default.exists(i)?new _ViewAbstraction2.default(i):null;var r=this.getInheritedNodeStyles(t);var a=i?i.getNodeData():_utils2.default.makeHashMap();var s=i&&!i.isEnabled(\"physics_mode\");for(var l in t){var n=this.getTiddlerById(l);var o=this.wiki.getTiddler(n);var d=o.fields;var u=t[l];var f=void 0;var g=r[n];if(g){_utils2.default.merge(u,g.style);f=getIcon(g[\"fa-icon\"],g[\"tw-icon\"])}if(d.color){u.color=d.color}if(d[\"tmap.style\"]){_utils2.default.merge(u,_utils2.default.parseJSON(d[\"tmap.style\"]))}f=getIcon(d[\"tmap.fa-icon\"],d[\"icon\"])||f;var c=a[l];if(c){_utils2.default.merge(u,c);if(s){u.fixed={x:u.x!=null,y:u.y!=null}}f=getIcon(c[\"fa-icon\"],c[\"tw-icon\"])||f}var v=u.color!==null&&_typeof(u.color)===\"object\";var y=v?u.color.background:u.color;u.color={background:y,border:v?u.color.border:undefined};addNodeIcon(u,f);u.font=u.font||{};if(u.shape&&!this.visShapesWithTextInside[u.shape]){u.font.color=\"black\"}else if(!u.font.color&&y){u.font.color=(0,_contrastcolour.run)(y,y,\"black\",\"white\")}if(u.shape===\"icon\"&&_typeof(u.icon)===\"object\"){u.icon.color=y}}if(i){var h=t[i.getConfig(\"central-topic\")];if(h){_utils2.default.merge(h,this.indeces.glNTyById[\"tmap:central-topic\"].style)}}}},{key:\"deleteNode\",value:function e(t){if(!t){return}var i=(typeof t===\"undefined\"?\"undefined\":_typeof(t))===\"object\"?t.id:t;var r=this.getTiddlerById(i);if(r){_utils2.default.deleteTiddlers([r])}var a=_utils2.default.getMatches(env.selector.allViews);for(var s=a.length;s--;){var l=new _ViewAbstraction2.default(a[s]);l.removeNode(i)}var n=this.getNeighbours([r]);this.deleteEdges(n.edges)}},{key:\"deleteNodes\",value:function e(t){for(var i=t.length;i--;){this.deleteNode(t[i])}}},{key:\"insertNode\",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var i=arguments[1];var r=arguments[2];t.label=this.wiki.generateNewTitle(t.label||_utils2.default.getRandomLabel());var a=new $tw.Tiddler({text:\"\"},r,{title:t.label,\"tmap.id\":null},this.wiki.getModificationFields(),this.wiki.getCreationFields());this.wiki.addTiddler(a);t=this.makeNode(a,t);if(_ViewAbstraction2.default.exists(i)){new _ViewAbstraction2.default(i).addNode(t)}return t}},{key:\"getTiddlersByIds\",value:function e(t){if(Array.isArray(t)){t=_utils2.default.getArrayValuesAsHashmapKeys(t)}else if(t instanceof _vis2.default.DataSet){t=_utils2.default.getLookupTable(t,\"id\")}var i=[];for(var r in t){var a=this.getTiddlerById(r);if(a){i.push(a)}}return i}}]);return e}();var getFAdigits=function e(t){return t.length===4?t:t.substr(3,4)};var addNodeIcon=function e(t,i){if(!i){return}if(i.fa){t.shape=\"icon\";t.icon={shape:\"icon\",face:\"FontAwesome\",color:t.color,code:String.fromCharCode(\"0x\"+getFAdigits(i.fa))};if(t.size){t.icon.size=t.size}return}if(i.tw){var r=_utils2.default.getTiddler(i.tw);if(!r){return}if(r.fields[\"_canonical_uri\"]){t.image=r.fields[\"_canonical_uri\"];t.shape=\"image\"}else if(r.fields.text){t.image=_utils2.default.getDataUri(r);t.shape=\"image\"}}};var removeObsoleteViewData=function e(t,i){if(!_ViewAbstraction2.default.exists(i)||!t){return}i=new _ViewAbstraction2.default(i);var r=i.getNodeData();var a=0;for(var s in r){if(t[s]===undefined&&r[s]!=null){r[s]=undefined;a++}}if(a){$tm.logger(\"debug\",\"[Cleanup]\",\"Removed obsolete node data:\",i.getLabel(),a);i.saveNodeData(r)}};var addStyleToEdge=function e(t,i){t=Object.assign(t,i.style);if(_utils2.default.isTrue(i[\"show-label\"],true)){t.label=i.getLabel()}};var getIcon=function e(t,i){return t&&{fa:t}||i&&{tw:i}};exports.default=Adapter;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/services/Adapter.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/CallbackManager": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/CallbackManager", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function e(e,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||false;l.configurable=true;if(\"value\"in l)l.writable=true;Object.defineProperty(e,l.key,l)}}return function(t,a,l){if(a)e(t.prototype,a);if(l)e(t,l);return t}}();/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/CallbackManager\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}var CallbackManager=function(){function e(){_classCallCheck(this,e);this.callbacks=_utils2.default.makeHashMap();this.logger=$tm.logger;this.wiki=$tw.wiki}_createClass(e,[{key:\"add\",value:function e(t,a){var l=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;this.logger(\"debug\",'A callback was registered for changes of \"'+t+'\"');this.callbacks[t]={execute:a,isDeleteOnCall:l}}},{key:\"remove\",value:function e(t){if(!t){return}if(typeof t===\"string\"){t=[t]}for(var a=t.length;a--;){var l=t[a];if(this.callbacks[l]){this.logger(\"debug\",'Deleting callback for \"'+l+'\"');delete this.callbacks[l]}}}},{key:\"refresh\",value:function e(t){if(this.callbacks.length==0){return}for(var a in t){if(!this.callbacks[a]){continue}if(this.wiki.getTiddler(a)){this.logger(\"debug\",\"Executing a callback for: \"+a);this.callbacks[a].execute(a);if(!this.callbacks.isDeleteOnCall){continue}}this.remove(a)}}}]);return e}();exports.default=CallbackManager;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/services/CallbackManager.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/startup/caretaker": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/startup/caretaker", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.startup=exports.synchronous=exports.before=exports.after=exports.platforms=exports.name=undefined;var _rebuilders;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r){if(Object.prototype.hasOwnProperty.call(r,i)){e[i]=r[i]}}}return e};/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/startup/caretaker\ntype: application/javascript\nmodule-type: startup\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _vis=require(\"$:/plugins/felixhayashi/tiddlymap/js/config/vis\");var _vis2=_interopRequireDefault(_vis);var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _Fixer=require(\"$:/plugins/felixhayashi/tiddlymap/js/Fixer\");var _Fixer2=_interopRequireDefault(_Fixer);var _Adapter=require(\"$:/plugins/felixhayashi/tiddlymap/js/Adapter\");var _Adapter2=_interopRequireDefault(_Adapter);var _tracker=require(\"$:/plugins/felixhayashi/tiddlymap/js/services/tracker\");var _tracker2=_interopRequireDefault(_tracker);var _EdgeTypeSubscriberRegistry=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeTypeSubscriberRegistry\");var _EdgeTypeSubscriberRegistry2=_interopRequireDefault(_EdgeTypeSubscriberRegistry);var _DialogManager=require(\"$:/plugins/felixhayashi/tiddlymap/js/DialogManager\");var _DialogManager2=_interopRequireDefault(_DialogManager);var _CallbackManager=require(\"$:/plugins/felixhayashi/tiddlymap/js/CallbackManager\");var _CallbackManager2=_interopRequireDefault(_CallbackManager);var _ViewAbstraction=require(\"$:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction\");var _ViewAbstraction2=_interopRequireDefault(_ViewAbstraction);var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _NodeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/NodeType\");var _NodeType2=_interopRequireDefault(_NodeType);var _vis3=require(\"$:/plugins/felixhayashi/vis/vis.js\");var _vis4=_interopRequireDefault(_vis3);var _environment=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/environment\");var env=_interopRequireWildcard(_environment);var _URL=require(\"$:/plugins/felixhayashi/tiddlymap/js/URL\");var _URL2=_interopRequireDefault(_URL);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var init=function e(){window.$tm=_extends({},env,{utils:_utils2.default,url:new _URL2.default(window.location.href)});cleanup();registerPublicClasses($tm);updateGlobals($tm);createMetaFile($tm.logger);var t=attachIndeces($tm);var r=getInitializedServices(t);Object.assign($tm,r);loadDefaultView($tm.config.sys.defaultView);r.fixer.fix();$tm.registry=[];setInterval(routineCheck,5e3);registerChangeListener($tm.callbackManager);registerMousemoveListener();registerClickListener();if($tm.url.query[\"tmap-enlarged\"]){prepareFullscreenStart($tm.url)}$tm.logger(\"warn\",\"TiddlyMap's caretaker successfully started\")};var getInitializedServices=function e(t){var r=new _tracker2.default(d);var i=$tw.modules.applyMethods(\"tmap.edgetypehandler\");var a=new _EdgeTypeSubscriberRegistry2.default(i,t.allETy,r);var s=new _Adapter2.default(r,a);var l=new _CallbackManager2.default;var n=new _DialogManager2.default(l);var d=new _Fixer2.default(s,$tm.logger,t.glNTy);return{edgeTypeSubscriberRegistry:a,tracker:r,adapter:s,callbackManager:l,dialogManager:n,fixer:d}};var registerPublicClasses=function e(t){t.keycharm=_vis4.default.keycharm;t.NodeType=_NodeType2.default;t.EdgeType=_EdgeType2.default;t.ViewAbstraction=_ViewAbstraction2.default};var attachOptions=function e(t){var r=t;if(!r.config)r.config=_utils2.default.makeHashMap();r.config.sys=_utils2.default.merge(r.config.sys,_utils2.default.unflatten($tw.wiki.getTiddlerData(env.ref.sysUserConf)));r.config.vis=_utils2.default.merge({},_vis2.default,_utils2.default.parseFieldData(env.ref.visUserConf));if(!r.field)r.field=_utils2.default.makeHashMap();$tw.utils.extend(r.field,r.config.sys.field)};var attachIndeces=function e(t){$tm.start(\"Attaching Indeces\");t.indeces=t.indeces||{};updateNodeTypesIndeces(t.indeces);updateEdgeTypesIndeces(t.indeces);$tm.stop(\"Attaching Indeces\");return t.indeces};var updateNodeTypesIndeces=function e(t){t=t||$tm.indeces;var r=$tm.path.nodeTypes;var i=t.glNTy=[];var a=t.glNTyById=_utils2.default.makeHashMap();$tw.wiki.eachTiddlerPlusShadows(function(e,t){if(_utils2.default.startsWith(t,r)){var s=_NodeType2.default.getInstance(t);a[s.id]=s;i.push(s)}});i.sort(function(e,t){return e.priority-t.priority})};var updateEdgeTypesIndeces=function e(t){t=t||$tm.indeces;var r=$tm.path.edgeTypes;var i=t.allETy=_utils2.default.makeHashMap();$tw.wiki.eachTiddlerPlusShadows(function(e,t){if(_utils2.default.startsWith(t,r)){var a=_EdgeType2.default.getInstance(t);i[a.id]=a}});if($tm.edgeTypeSubscriberRegistry){$tm.edgeTypeSubscriberRegistry.updateIndex(i)}};var attachFunctions=function e(t){var r=t;var i=function e(){};if(_utils2.default.isTrue($tm.config.sys.debug,false)&&console){r.logger=function(){if(arguments.length<2)return;var e=Array.prototype.slice.call(arguments);var t=e.shift(e);var r=console.hasOwnProperty(t)?t:\"debug\";console[r].apply(console,e)};r.start=function(e){console.time(\"[timer] \"+e)};r.stop=function(e){console.timeEnd(\"[timer] \"+e)}}else{r.logger=r.start=r.stop=i}r.notify=_utils2.default.isTrue($tm.config.sys.notifications)?_utils2.default.notify:i};var routineCheck=function e(){for(var t=$tm.registry.length;t--;){var r=$tm.registry[t];if(!r.destruct||!r.isZombieWidget)return;if(r.isZombieWidget()){$tm.logger(\"warn\",\"a widget will be removed\");$tm.registry.splice(t,1);r.destruct()}}};var dispatchUpdates=function e(t){var r=$tm.registry;for(var i=r.length;i--;){var a=r[i];if(a.update&&a.isZombieWidget&&!a.isZombieWidget()){a.update(t)}}};var checkForClone=function e(t){var r=_utils2.default.getDublicates(t);if(!r.length){return}_utils2.default.setField(t,\"tmap.edges\",undefined);$tm.tracker.assignId(t,true);$tm.dialogManager.open(\"dublicateIdInfo\",{param:{changedTiddler:t.fields.title,filter:_utils2.default.joinAndWrap(r,\"[[\",\"]]\"),id:_utils2.default.getId(t)}})};var updateGlobals=function e(t){attachOptions($tm);attachFunctions($tm);$tm.logger(\"warn\",\"Rebuilt globals\")};var lastCurrentTiddler=null;var updateLiveViewTrigger=function e(t){if(t[\"$:/HistoryList\"]){var r=_utils2.default.getField(\"$:/HistoryList\",\"current-tiddler\")}else if(t[\"$:/temp/focussedTiddler\"]){var r=_utils2.default.getField(\"$:/temp/focussedTiddler\",\"text\")}if(r!=null&&lastCurrentTiddler!==r){lastCurrentTiddler=r;_utils2.default.setField(\"$:/temp/tmap/currentTiddler\",\"text\",r)}};var printChanges=function e(t,r){if(!_utils2.default.isTrue($tm.config.sys.debug,false))return;$tm.logger(\"warn\",\"=== Refresh \"+r+\" ===\");for(var i in t){var a=t[i].deleted?\"[Deleted]\":\"[Modified]\";$tm.logger(\"warn\",a,i,$tw.wiki.getTiddler(i))}};var registerMousemoveListener=function e(){$tm.mouse={};var t=function e(t){$tm.mouse=t};window.addEventListener(\"mousemove\",t,false)};var registerClickListener=function e(){var t=$tm.path.tempPopups;window.addEventListener(\"click\",function(e){var r=_utils2.default.getTiddlersByPrefix(t);for(var i=r.length;i--;){if(_utils2.default.getText(r[i]))break}if(i===-1)return;if(!$tw.utils.hasClass(e.target,\"tc-drop-down\")&&!_utils2.default.getAncestorWithClass(e.target,\"tc-drop-down\")){for(var i=r.length;i--;){_utils2.default.setText(r[i],\"\")}}},false)};var registerChangeListener=function e(t){var r=0;$tw.wiki.addEventListener(\"change\",function(e){$tm.start(\"Caretaker handling changes\");printChanges(e,r++);t.refresh(e);var i={changedTiddlers:{}};for(var a in e){var s=_utils2.default.getTiddler(a);if(s&&s.isDraft()){continue}var l=handleTiddlerChange(a,s,i);if(l){i.changedTiddlers[a]=e[a]}}dispatchUpdates(i);updateLiveViewTrigger(e);$tm.stop(\"Caretaker handling changes\")})};var rebuilders=(_rebuilders={},_defineProperty(_rebuilders,env.path.options,updateGlobals),_defineProperty(_rebuilders,env.path.nodeTypes,updateNodeTypesIndeces),_defineProperty(_rebuilders,env.path.edgeTypes,updateEdgeTypesIndeces),_rebuilders);var handleTiddlerChange=function e(t,r,i){if($tw.wiki.isSystemTiddler(t)){for(var a in rebuilders){if(_utils2.default.startsWith(t,a)&&!i[a]){$tm.logger(\"warn\",\"[System change]\",a);rebuilders[a]();i[a]=true}}}else if(r){if(r.fields.text===undefined){$tw.wiki.dispatchEvent(\"lazyLoad\",t);return false}checkForClone(r);$tm.tracker.assignId(r)}else{var s=$tm.tracker.getIdByTiddler(t);if(!s){return false}var l=_utils2.default.getTiddlerWithField(\"tmap.id\",s);if(l){$tm.logger(\"warn\",\"[Renamed]\",t,\"into\",l)}else{$tm.adapter.deleteNode(s)}}return true};var cleanup=function e(){_utils2.default.deleteByPrefix(\"$:/temp/felixhayashi\");_utils2.default.deleteByPrefix(\"$:/temp/tiddlymap\");_utils2.default.deleteByPrefix(\"$:/temp/tmap\")};var loadDefaultView=function e(t){if(t){_utils2.default.setText(env.ref.defaultViewHolder,$tm.config.sys.defaultView)}};var prepareFullscreenStart=function e(t){var r=env.ref,i=r.mainEditor,a=r.defaultViewHolder;_utils2.default.setSidebarTab(i);if(_ViewAbstraction2.default.exists(t)){t=new _ViewAbstraction2.default(t);_utils2.default.setField(a,\"text\",t.getLabel())}};var createMetaFile=function e(t){if(_utils2.default.tiddlerExists(env.ref.sysMeta)){return}t(\"warn\",\"Creating meta file\");var r=$tw.wiki.getTiddler(env.path.pluginRoot);$tw.wiki.setTiddlerData(env.ref.sysMeta,{originalVersion:r.fields.version,dataStructureState:\"0.6.9\",showWelcomeMessage:true})};var name=exports.name=\"tmap.caretaker\";var platforms=exports.platforms=[\"browser\"];var after=exports.after=[\"startup\"];var before=exports.before=[\"rootwidget\"];var synchronous=exports.synchronous=true;var startup=exports.startup=init;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/services/Caretaker.js.map\n", + "type": "application/javascript", + "module-type": "startup" + }, + "$:/plugins/felixhayashi/tiddlymap/js/DialogManager": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/DialogManager", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function e(e,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||false;l.configurable=true;if(\"value\"in l)l.writable=true;Object.defineProperty(e,l.key,l)}}return function(t,a,l){if(a)e(t.prototype,a);if(l)e(t,l);return t}}();/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/DialogManager\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _CallbackManager=require(\"$:/plugins/felixhayashi/tiddlymap/js/CallbackManager\");var _CallbackManager2=_interopRequireDefault(_CallbackManager);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}var DialogManager=function(){function e(t,a){_classCallCheck(this,e);this.callbackManager=t;this.context=a}_createClass(e,[{key:\"open\",value:function t(a){var l=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=arguments[2];if(_utils2.default.isTrue($tm.config.sys.suppressedDialogs[a],false)){$tm.logger(\"warning\",\"Suppressed dialog\",a);return}$tm.logger(\"debug\",\"Dialog param object\",l);if(typeof i===\"function\"&&this.context){i=i.bind(this.context)}var r=$tm.path.tempRoot+\"/dialog-\"+_utils2.default.genUUID();var n=_utils2.default.getTiddler($tm.path.dialogs+\"/\"+a);var u={title:r,buttons:n.fields[\"buttons\"]||\"ok_cancel\",classes:\"tmap-modal-content \"+n.fields[\"classes\"],output:r+\"/output\",result:r+\"/result\",temp:r+\"/temp\",template:n.fields.title,templateId:a,currentTiddler:r+\"/output\",text:_utils2.default.getText($tm.path.dialogs)};_utils2.default.touch(u.output);if(l.dialog){if(l.dialog.preselects){$tw.wiki.addTiddler(new $tw.Tiddler({title:u.output},_utils2.default.flatten(l.dialog.preselects)));delete l.dialog.preselects}_utils2.default.merge(u,l.dialog)}u.footer=_utils2.default.getText($tm.path.footers);u=_utils2.default.flatten(u);l=_utils2.default.flatten(l);var s=function t(a){e.getElement(\"hidden-close-button\").click();var l=$tw.wiki.getTiddler(a);var n=l.fields.text;var s=null;if(n){s=$tw.wiki.getTiddler(u.output)}else{$tm.notify(\"operation cancelled\")}if(typeof i===\"function\"){i(n,s)}_utils2.default.deleteByPrefix(r)};this.callbackManager.add(u.result,s,true);var o=new $tw.Tiddler(n,l,u);$tw.wiki.addTiddler(o);$tm.logger(\"debug\",\"Opening dialog\",o);$tw.rootWidget.dispatchEvent({type:\"tm-modal\",param:o.fields.title,paramObject:o.fields});e.addKeyBindings();return o}}],[{key:\"getElement\",value:function e(t){return _utils2.default.getFirstElementByClassName(\"tmap-\"+t)}},{key:\"addKeyBindings\",value:function t(){var a=$tm.keycharm({container:_utils2.default.getFirstElementByClassName(\"tc-modal\")});var l=/tmap-triggers-(.+?)-on-(.+?)(?:\\s|$)/;var i=document.getElementsByClassName(\"tmap-trigger-field\");var r=function t(r){var n=i[r].className.split(\" \");var u=function t(i){var r=n[i].match(l);if(!r){return\"continue\"}var u=r[1];var s=r[2];var o=e.getElement(u);if(!o){return\"continue\"}a.bind(s,function(){if(document.getElementsByClassName(n[i]).length){o.click()}})};for(var s=n.length;s--;){var o=u(s);if(o===\"continue\")continue}};for(var n=i.length;n--;){r(n)}}}]);return e}();exports.default=DialogManager;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/services/DialogManager.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/Fixer": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/Fixer", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};var _createClass=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||false;r.configurable=true;if(\"value\"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}return function(t,i,r){if(i)e(t.prototype,i);if(r)e(t,r);return t}}();/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/Fixer\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _ViewAbstraction=require(\"$:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction\");var _ViewAbstraction2=_interopRequireDefault(_ViewAbstraction);var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _NodeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/NodeType\");var _NodeType2=_interopRequireDefault(_NodeType);var _environment=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/environment\");var env=_interopRequireWildcard(_environment);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}var Fixer=function(){function e(t,i,r){_classCallCheck(this,e);this.adapter=t;this.logger=i;this.wiki=$tw.wiki;this.glNTy=r}_createClass(e,[{key:\"moveEdges\",value:function e(t,i){var r=_utils2.default.getTiddlersByPrefix(t);for(var a=0;a<r.length;a++){var u=_utils2.default.getBasename(r[a]);if(u===\"__noname__\"){u=\"tmap:unknown\"}u=_EdgeType2.default.getInstance(u);if(!u.exists()){u.save()}var n=this.wiki.getTiddlerData(r[a]);for(var s=0;s<n.length;s++){n[s].type=(i?i+\":\":\"\")+u.id;this.adapter.insertEdge(n[s])}this.wiki.deleteTiddler(r[a])}}},{key:\"executeUpgrade\",value:function e(t,i,r){if(!_utils2.default.isLeftVersionGreater(t,i)){return}this.logger(\"debug\",\"Upgrading data structure to \"+t);var a=r();_utils2.default.setEntry(env.ref.sysMeta,\"dataStructureState\",t);return a}},{key:\"fixId\",value:function e(){var t=this.wiki.getTiddlerData(env.ref.sysMeta,{});this.executeUpgrade(\"0.9.2\",t.dataStructureState,function(){if(_utils2.default.isLeftVersionGreater(\"0.9.2\",t.originalVersion)){var e=\"$:/plugins/felixhayashi/tiddlymap/config/sys/user\";var i=_utils2.default.getEntry(e,\"field.nodeId\",\"tmap.id\");_utils2.default.moveFieldValues(i,\"tmap.id\",true,false)}})}},{key:\"fix\",value:function e(){var t=this;var i=this.wiki.getTiddlerData(env.ref.sysMeta,{});this.logger(\"debug\",\"Fixer is started\");this.logger(\"debug\",\"Data-structure currently in use: \",i.dataStructureState);this.executeUpgrade(\"0.7.0\",i.dataStructureState,function(){t.moveEdges(\"$:/plugins/felixhayashi/tiddlymap/graph/edges\",null);var e=env.selector.allViews;var i=_utils2.default.getMatches(e);for(var r=0;r<i.length;r++){var a=new _ViewAbstraction2.default(i[r]);t.moveEdges(a.getRoot()+\"/graph/edges\",a)}});this.executeUpgrade(\"0.7.32\",i.dataStructureState,function(){if(!_ViewAbstraction2.default.exists(\"Live View\")){return}var e=new _ViewAbstraction2.default(\"Live View\");e.setNodeFilter(\"[field:title{$:/temp/tmap/currentTiddler}]\",true);e.setConfig({\"refresh-trigger\":null,\"refresh-triggers\":$tw.utils.stringifyList([\"$:/temp/tmap/currentTiddler\"])})});this.executeUpgrade(\"0.9.0\",i.dataStructureState,function(){var e=env.ref.visUserConf;var i=_utils2.default.unflatten(t.wiki.getTiddlerData(e,{}));if(_typeof(i.groups)===\"object\"){var r=_NodeType2.default.getInstance(\"tmap:neighbour\");r.setStyle(i.groups[\"neighbours\"]);r.save();delete i.groups;t.wiki.setTiddlerData(e,i)}});this.fixId();this.executeUpgrade(\"0.9.16\",i.dataStructureState,function(){for(var e=t.glNTy.length;e--;){t.glNTy[e].save(null,true)}});this.executeUpgrade(\"0.10.3\",i.dataStructureState,function(){var e=env.ref.liveTab;if(_utils2.default.getTiddler(e).hasTag(\"$:/tags/SideBar\")){this.wiki.deleteTiddler(e);_utils2.default.setField(e,\"tags\",\"$:/tags/SideBar\")}});this.executeUpgrade(\"0.11.0\",i.dataStructureState,function(){var e=_utils2.default.getMatches(env.selector.allViews);for(var t=e.length;t--;){var i=new _ViewAbstraction2.default(e[t]);var r=i.getEdgeTypeFilter(\"raw\");var a=\"edge_type_namespace\";i.setConfig(a,i.getConfig(a));var u=env.filter.defaultEdgeTypeFilter;if(r){var n=env.path.edgeTypes;r=_utils2.default.replaceAll(r,\"\",[n,n+\"/\",\"[prefix[\"+n+\"]]\",\"[prefix[\"+n+\"/]]\",[\"[suffix[tw-body:link]]\",\"[[tw-body:link]]\"],[\"[suffix[tw-list:tags]]\",\"[[tw-list:tags]]\"],[\"[suffix[tw-list:list]]\",\"[[tw-body:list]]\"],[\"[suffix[tmap:unknown]]\",\"[[tmap:unknown]]\"],[\"[suffix[unknown]]\",\"[[tmap:unknown]]\"]]);u=\"-[prefix[_]] \"+r}i.setEdgeTypeFilter(u)}})}}]);return e}();exports.default=Fixer;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/services/Fixer.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/startup/listener": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/startup/listener", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.startup=exports.synchronous=exports.before=exports.after=exports.platforms=exports.name=undefined;var _NodeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/NodeType\");var _NodeType2=_interopRequireDefault(_NodeType);var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _Edge=require(\"$:/plugins/felixhayashi/tiddlymap/js/Edge\");var _Edge2=_interopRequireDefault(_Edge);var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _vis=require(\"$:/plugins/felixhayashi/tiddlymap/js/config/vis\");var _vis2=_interopRequireDefault(_vis);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var handleCancelDialog=function e(t){var a=t.param;_utils2.default.setField(a,\"text\",\"\")};\n/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/startup/listener\ntype: application/javascript\nmodule-type: startup\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var handleClearTiddler=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},a=t.paramObject;var r=a.title,d=a.keep;if(!r)return;var i=_utils2.default.getTiddler(r);var l=i?i.fields:{};var s=d?d.split():[];var n={title:r,text:\"\"};for(var p=s.length;p--;){var o=s[p];n[o]=l[o]}$tw.wiki.deleteTiddler(r);$tw.wiki.addTiddler(new $tw.Tiddler(n))};var handleMixTiddlers=function e(t){var a=t.paramObject,r=a===undefined?{}:a;var d=r.tiddlers,i=r.output;if(!d||!i)return;var l=$tw.utils.parseStringArray(d);var s=_utils2.default.getMergedTiddlers(l,i);$tw.wiki.addTiddler(s)};var handleConfirmDialog=function e(t){var a=t.param;_utils2.default.setField(a,\"text\",\"1\")};var handleSuppressDialog=function e(t){var a=t.paramObject;var r=a.dialog,d=a.suppress;if(_utils2.default.isTrue(d,false)){_utils2.default.setEntry($tm.ref.sysUserConf,\"suppressedDialogs.\"+r,true)}};var handleDownloadGraph=function e(t){var a=t.paramObject;var r=a.view;var d=$tm.adapter.getGraph({view:r});d.nodes=_utils2.default.convert(d.nodes,\"array\");d.edges=_utils2.default.convert(d.edges,\"array\");var i=\"$:/temp/tmap/export\";_utils2.default.setField(i,\"text\",JSON.stringify(d,null,2));$tw.rootWidget.dispatchEvent({type:\"tm-download-file\",param:i,paramObject:{filename:r+\".json\"}})};var handleConfigureSystem=function e(){var t=_utils2.default.getMatches($tm.selector.allPotentialNodes);var a=$tm.adapter.getEdgesForSet(t);var r=$tw.wiki.getTiddler($tm.path.pluginRoot).fields;var d=$tw.wiki.getTiddlerData($tm.ref.sysMeta);var i=_utils2.default.getTiddler($tm.ref.liveTab).hasTag(\"$:/tags/SideBar\");var l={numberOfNodes:\"\"+t.length,numberOfEdges:\"\"+Object.keys(a).length,pluginVersion:\"v\"+r.version,dataStructureVersion:\"v\"+d.dataStructureState,dialog:{preselects:{liveTab:\"\"+i,\"vis-inherited\":JSON.stringify(_vis2.default),\"config.vis\":_utils2.default.getText($tm.ref.visUserConf),\"config.sys\":$tm.config.sys}}};$tm.dialogManager.open(\"globalConfig\",l,function(e,t){if(!e)return;var a=_utils2.default.getPropertiesByPrefix(t.fields,\"config.sys.\",true);$tw.wiki.setTiddlerData($tm.ref.sysUserConf,a);if(_utils2.default.isTrue(t.fields.liveTab,false)){_utils2.default.setField($tm.ref.liveTab,\"tags\",\"$:/tags/SideBar\")}else{$tw.wiki.deleteTiddler($tm.ref.liveTab)}_utils2.default.setField($tm.ref.visUserConf,\"text\",t.fields[\"config.vis\"])})};var handleGenerateWidget=function e(t){var a=t.paramObject,r=a===undefined?{}:a;var d={dialog:{preselects:{\"var.view\":r.view||$tm.misc.defaultViewLabel}}};$tm.dialogManager.open(\"widgetCodeGenerator\",d)};var handleRemoveEdge=function e(t){var a=t.paramObject;$tm.adapter.deleteEdge(a)};var handleCreateEdge=function e(t){var a=t.paramObject;var r=a.from,d=a.to,i=a.force;if(!r||!d)return;if(_utils2.default.tiddlerExists(r)&&_utils2.default.tiddlerExists(d)||i){_utils2.default.addTiddler(d);_utils2.default.addTiddler(r);var l=new _Edge2.default($tm.adapter.makeNode(r).id,$tm.adapter.makeNode(d).id,a.label,a.id);$tm.adapter.insertEdge(l);$tm.notify(\"Edge inserted\")}};var handleOpenTypeManager=function e(t){var a=t.type,r=t.paramObject,d=r===undefined?{}:r;var i=a.match(/tmap:tm-(.*)/)[1];if(i===\"manage-edge-types\"){var l=\"Edge-Type Manager\";var s=$tm.selector.allEdgeTypes;var n=$tm.path.edgeTypes}else{var l=\"Node-Type Manager\";var s=$tm.selector.allNodeTypes;var n=$tm.path.nodeTypes}var p={mode:i,topic:l,searchSelector:s,typeRootPath:n};var o=$tm.dialogManager.open(\"MapElementTypeManager\",p);if(d.type){handleLoadTypeForm({paramObject:{mode:i,id:d.type,output:o.fields[\"output\"]}})}};var handleLoadTypeForm=function e(t){var a=t.paramObject,r=a.mode,d=a.id,i=a.output;var l=i;var s=r===\"manage-edge-types\"?_EdgeType2.default.getInstance(d):_NodeType2.default.getInstance(d);s.save(l,true);if(r===\"manage-edge-types\"){var n=$tm.adapter.selectEdgesByType(s);var p=Object.keys(n).length;_utils2.default.setField(l,\"temp.usageCount\",p)}$tw.wiki.addTiddler(new $tw.Tiddler(_utils2.default.getTiddler(l),{typeTRef:s.fullPath,\"temp.idImmutable\":s.isShipped?\"true\":\"\",\"temp.newId\":s.id,\"vis-inherited\":JSON.stringify($tm.config.vis)}));_utils2.default.deleteByPrefix(\"$:/state/tabs/MapElementTypeManager\")};var handleSaveTypeForm=function e(t){var a=t.paramObject;var r=_utils2.default.getTiddler(a.output);if(!r)return;var d=r.fields.id;var i=a.mode;if(_utils2.default.isTrue(r.fields[\"temp.deleteType\"],false)){deleteType(i,d,r)}else{saveType(i,d,r)}};var deleteType=function e(t,a,r){var d=t===\"manage-edge-types\"?_EdgeType2.default.getInstance(a):_NodeType2.default.getInstance(a);$tm.logger(\"debug\",\"Deleting type\",d);if(t===\"manage-edge-types\"){$tm.adapter._processEdgesWithType(d,{action:\"delete\"})}else{$tm.adapter.removeNodeType(d)}$tw.wiki.addTiddler(new $tw.Tiddler({title:_utils2.default.getTiddlerRef(r)}));$tm.notify(\"Deleted type\")};var saveType=function e(t,a,r){var d=_utils2.default.getTiddler(r);var i=t===\"manage-edge-types\"?_EdgeType2.default:_NodeType2.default;var l=new i(a,d);l.save();var s=d.fields[\"temp.newId\"];if(s&&s!==d.fields[\"id\"]){if(t===\"manage-edge-types\"){$tm.adapter._processEdgesWithType(l,{action:\"rename\",newName:s})}else{new _NodeType2.default(s,l).save();$tw.wiki.deleteTiddler(l.fullPath)}_utils2.default.setField(d,\"id\",s)}$tm.notify(\"Saved type data\")};var handleCreateType=function e(t){var a=t.paramObject,r=a.mode,d=a.id,i=d===undefined?\"New type\":d,l=a.output;var s=r===\"manage-edge-types\"?new _EdgeType2.default(i):new _NodeType2.default(i);s.save();handleLoadTypeForm({paramObject:{id:s.id,mode:r,output:l}})};var name=exports.name=\"tmap.listener\";var platforms=exports.platforms=[\"browser\"];var after=exports.after=[\"rootwidget\",\"tmap.caretaker\"];var before=exports.before=[\"story\"];var synchronous=exports.synchronous=true;var startup=exports.startup=function e(){_utils2.default.addTWlisteners({\"tmap:tm-remove-edge\":handleRemoveEdge,\"tmap:tm-load-type-form\":handleLoadTypeForm,\"tmap:tm-save-type-form\":handleSaveTypeForm,\"tmap:tm-create-type\":handleCreateType,\"tmap:tm-create-edge\":handleCreateEdge,\"tmap:tm-suppress-dialog\":handleSuppressDialog,\"tmap:tm-generate-widget\":handleGenerateWidget,\"tmap:tm-download-graph\":handleDownloadGraph,\"tmap:tm-configure-system\":handleConfigureSystem,\"tmap:tm-manage-edge-types\":handleOpenTypeManager,\"tmap:tm-manage-node-types\":handleOpenTypeManager,\"tmap:tm-cancel-dialog\":handleCancelDialog,\"tmap:tm-clear-tiddler\":handleClearTiddler,\"tmap:tm-merge-tiddlers\":handleMixTiddlers,\"tmap:tm-confirm-dialog\":handleConfirmDialog},$tw.rootWidget,undefined)};\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/services/Listener.js.map\n", + "type": "application/javascript", + "module-type": "startup" + }, + "$:/plugins/felixhayashi/tiddlymap/js/services/tracker": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/services/tracker", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _createClass=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||false;r.configurable=true;if(\"value\"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}return function(t,i,r){if(i)e(t.prototype,i);if(r)e(t,r);return t}}();/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/services/tracker\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}var Tracker=function(){function e(t){_classCallCheck(this,e);this.wiki=$tw.wiki;this.logger=$tm.logger;this._createIndex()}_createClass(e,[{key:\"_createIndex\",value:function e(){var t=this.tById={};var i=this.idByT={};this.wiki.each(function(e,r){if(_utils2.default.isSystemOrDraft(e)){return}var l=e.fields[\"tmap.id\"];if(!l){l=_utils2.default.genUUID();_utils2.default.setField(e,\"tmap.id\",l)}t[l]=r;i[r]=l})}},{key:\"assignId\",value:function e(t,i){var r=_utils2.default.getTiddler(t);if(!r){throw new ResourceNotFoundException(t)}var l=r.fields[\"tmap.id\"];if(!l||i){l=_utils2.default.genUUID();_utils2.default.setField(r,\"tmap.id\",l);this.logger(\"info\",\"Assigning new id to\",r.fields.title)}this.tById[l]=r.fields.title;this.idByT[r.fields.title]=l;return l}},{key:\"getIdByTiddler\",value:function e(t){return this.idByT[_utils2.default.getTiddlerRef(t)]}},{key:\"getIdsByTiddlers\",value:function e(){return this.idByT}},{key:\"getTiddlersByIds\",value:function e(){return this.tById}},{key:\"getTiddlerById\",value:function e(t){return this.tById[t]}}]);return e}();exports.default=Tracker;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/services/Tracker.js.map\n", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/tiddlymap/js/widget/MapConfigWidget": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/widget/MapConfigWidget", + "text": "\"use strict\";var _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e};/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/widget/MapConfigWidget\ntype: application/javascript\nmodule-type: widget\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _vis=require(\"$:/plugins/felixhayashi/vis/vis.js\");var _vis2=_interopRequireDefault(_vis);var _widget=require(\"$:/core/modules/widgets/widget.js\");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function MapConfigWidget(e,t){_widget.widget.call(this);this.initialise(e,t);this.computeAttributes()}MapConfigWidget.prototype=Object.create(_widget.widget.prototype);MapConfigWidget.prototype.render=function(e,t){this.parentDomNode=e;if(!this.domNode){this.domNode=this.document.createElement(\"div\");$tw.utils.addClass(this.domNode,\"tmap-config-widget\");e.insertBefore(this.domNode,t)}if(this.network){this.network.destroy()}this.networkContainer=document.createElement(\"div\");this.domNode.appendChild(this.networkContainer);this.refreshTrigger=this.getAttribute(\"refresh-trigger\");this.pipeTRef=this.getVariable(\"currentTiddler\");this.inheritedFields=$tw.utils.parseStringArray(this.getAttribute(\"inherited\"));this.extensionTField=this.getAttribute(\"extension\");this.mode=this.getAttribute(\"mode\");for(var i=0;i<this.inheritedFields.length;i++){var s=this.inheritedFields[i];var n=_utils2.default.parseFieldData(this.pipeTRef,s,{});if(this.mode===\"manage-edge-types\"){if(!n.edges){n={edges:n}}}else if(this.mode===\"manage-node-types\"){if(!n.nodes){n={nodes:n}}}this.inherited=_utils2.default.merge(this.inherited,n)}this.extension=_utils2.default.parseFieldData(this.pipeTRef,this.extensionTField,{});if(this.mode===\"manage-edge-types\"){if(!this.extension.edges){this.extension={edges:this.extension}}}else if(this.mode===\"manage-node-types\"){if(!this.extension.nodes){this.extension={nodes:this.extension}}}var r=_utils2.default.isTrue(this.getAttribute(\"save-only-changes\"));this.changes=r?{}:this.extension;var o={nodes:[],edges:[]};var a=_utils2.default.merge({},this.inherited,this.extension);$tw.utils.extend(a,{configure:{enabled:true,showButton:false,filter:this.getOptionFilter(this.mode)}});this.network=new _vis2.default.Network(this.networkContainer,o,a);this.network.on(\"configChange\",this.handleConfigChange.bind(this));var l=this.parentDomNode.getBoundingClientRect().height;this.parentDomNode.style[\"height\"]=l+\"px\";var h=this.handleResetEvent.bind(this);this.networkContainer.addEventListener(\"reset\",h,false);$tm.registry.push(this);this.enhanceConfigurator()};MapConfigWidget.prototype.handleResetEvent=function(e){var t={};t[e.detail.trigger.path]=null;this.handleConfigChange(t)};MapConfigWidget.prototype.handleConfigChange=function(e){var t=_utils2.default.flatten(this.changes);var i=_utils2.default.flatten(e);var s=Object.keys(_utils2.default.flatten(e))[0];var n=i[s]===null;if(n){t[s]=undefined;this.changes=_utils2.default.unflatten(t)}else{this.changes=_utils2.default.merge(this.changes,e)}var r=_utils2.default.merge({},this.changes);if(this.mode===\"manage-node-types\"){r=r[\"nodes\"]}if(this.mode===\"manage-edge-types\"){r=r[\"edges\"]}_utils2.default.writeFieldData(this.pipeTRef,this.extensionTField,r,$tm.config.sys.jsonIndentation);var o=\"vis-configuration-wrapper\";var a=this.networkContainer.getElementsByClassName(o)[0];a.style.height=a.getBoundingClientRect().height+\"px\";if(n){window.setTimeout(this.refresh.bind(this),0)}else{window.setTimeout(this.enhanceConfigurator.bind(this),50)}};MapConfigWidget.prototype.enhanceConfigurator=function(){var e=\"vis-configuration-wrapper\";var t=this.networkContainer.getElementsByClassName(e)[0].children;var i=[];var s=_utils2.default.flatten(this.changes);for(var n=0;n<t.length;n++){if(!t[n].classList.contains(\"vis-config-item\"))continue;var r=new VisConfElement(t[n],i,n);i.push(r);if(r.level===0)continue;r.setActive(!!s[r.path])}};function VisConfElement(e,t,i){var s=\"getElementsByClassName\";this.el=e;this.labelEl=e[s](\"vis-config-label\")[0]||e[s](\"vis-config-header\")[0]||e;var n=this.labelEl.innerText||this.labelEl.textContent;this.label=n&&n.match(/([a-zA-Z0-9]+)/)[1];this.level=parseInt(e.className.match(/.*vis-config-s(.).*/)[1])||0;this.path=this.label;if(this.level>0){for(var r=i;r--;){var o=t[r];if(o.level<this.level){this.path=o.path+\".\"+this.path;break}}}}VisConfElement.prototype.setActive=function(e){if(!e)return;var t=\"tmap-vis-config-item-\"+(e?\"active\":\"inactive\");$tw.utils.addClass(this.el,t);if(e){var i=document.createElement(\"button\");i.innerHTML=\"reset\";i.className=\"tmap-config-item-reset\";var s=this;i.addEventListener(\"click\",function(e){e.currentTarget.dispatchEvent(new CustomEvent(\"reset\",{detail:{trigger:s},bubbles:true,cancelable:true}))},false);this.el.appendChild(i)}};MapConfigWidget.prototype.getOptionFilter=function(e){var t={nodes:{borderWidth:true,borderWidthSelected:true,color:{background:true,border:true},font:{color:true,size:true},icon:true,labelHighlightBold:false,shadow:true,shape:true,shapeProperties:{borderDashes:true},size:true},edges:{arrows:true,color:true,dashes:true,font:true,labelHighlightBold:false,length:true,selfReferenceSize:false,shadow:true,smooth:true,width:true},interaction:{hideEdgesOnDrag:true,hideNodesOnDrag:true,tooltipDelay:true},layout:{hierarchical:false},manipulation:{initiallyActive:true},physics:{forceAtlas2Based:{gravitationalConstant:true,springLength:true,springConstant:true,damping:true,centralGravity:true}}};if(e===\"manage-edge-types\"){t={edges:t.edges}}else if(e===\"manage-node-types\"){t={nodes:t.nodes}}else{t.edges.arrows=false}return function(e,i){i=i.concat([e]);var s=t;for(var n=0,r=i.length;n<r;n++){if(s[i[n]]===true){return true}else if(s[i[n]]==null){return false}s=s[i[n]]}return false}};MapConfigWidget.prototype.isZombieWidget=function(){return!document.body.contains(this.parentDomNode)};MapConfigWidget.prototype.destruct=function(){if(this.network){this.network.destroy()}};MapConfigWidget.prototype.refresh=function(e){if(this.isZombieWidget()||!this.network)return;if(!e||e[this.refreshTrigger]){this.refreshSelf();return true}};MapConfigWidget.prototype.setNull=function(e){for(var t in e){if(_typeof(e[t])==\"object\"){this.setNull(e[t])}else{e[t]=undefined}}};exports[\"tmap-config\"]=MapConfigWidget;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/widget/ConfigurationWidget.js.map\n", + "type": "application/javascript", + "module-type": "widget" + }, + "$:/plugins/felixhayashi/tiddlymap/js/widget/EdgeListWidgetItem": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/widget/EdgeListWidgetItem", + "text": "\"use strict\";var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,r,i){if(r)e(t.prototype,r);if(i)e(t,i);return t}}();var _widget=require(\"$:/core/modules/widgets/widget.js\");var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/widget/EdgeListWidgetItem\ntype: application/javascript\nmodule-type: widget\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var EdgeListItemWidget=function(e){_inherits(t,e);function t(e,r){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));i.arrows=$tm.misc.arrows;return i}_createClass(t,[{key:\"execute\",value:function e(){var t=this.parseTreeNode;var r=$tm.tracker.getTiddlerById(t.neighbour.id);var i=_utils2.default.flatten(t.edge);for(var o in i){if(typeof i[o]===\"string\"){this.setVariable(\"edge.\"+o,i[o])}}this.setVariable(\"currentTiddler\",r);this.setVariable(\"neighbour\",r);var n=$tm.indeces.allETy[i.type];var s=i.to===t.neighbour.id?\"to\":\"from\";var a=s;if(n.biArrow){a=\"bi\"}else{if(s===\"to\"&&n.invertedArrow){a=\"from\"}else if(s===\"from\"&&n.invertedArrow){a=\"to\"}}this.setVariable(\"direction\",a);this.setVariable(\"directionSymbol\",a===\"bi\"?this.arrows.bi:a===\"from\"?this.arrows.in:this.arrows.out);this.makeChildWidgets()}},{key:\"refresh\",value:function e(t){return this.refreshChildren(t)}}]);return t}(_widget.widget);exports[\"tmap-edgelistitem\"]=EdgeListItemWidget;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/widget/EdgeListItemWidget.js.map\n", + "type": "application/javascript", + "module-type": "widget" + }, + "$:/plugins/felixhayashi/tiddlymap/js/widget/EdgeListWidget": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/widget/EdgeListWidget", + "text": "\"use strict\";var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||false;i.configurable=true;if(\"value\"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(t,r,i){if(r)e(t.prototype,r);if(i)e(t,i);return t}}();var _widget=require(\"$:/core/modules/widgets/widget.js\");var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/widget/EdgeListWidget\ntype: application/javascript\nmodule-type: widget\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var EdgeListWidget=function(e){_inherits(t,e);function t(e,r){_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}_createClass(t,[{key:\"render\",value:function e(t,r){this.parentDomNode=t;this.computeAttributes();this.execute();this.renderChildren(t,r)}},{key:\"execute\",value:function e(){var t=[this.getVariable(\"currentTiddler\")];var r=this.getAttribute(\"filter\",\"\");var i=this.getAttribute(\"direction\",\"both\");var s=$tm.indeces.allETy;var n=_utils2.default.getEdgeTypeMatches(r,s);var u={typeWL:_utils2.default.getLookupTable(n),direction:i};var o=$tm.adapter.getNeighbours(t,u),a=o.nodes,l=o.edges;var f=[];for(var c in l){var h=l[c];var p=a[h.to]||a[h.from];if(!p){continue}f.push({type:\"tmap-edgelistitem\",edge:h,typeWL:u.typeWL,neighbour:p,children:this.parseTreeNode.children})}if(!f.length){this.wasEmpty=true;f=this.getEmptyMessage()}else if(this.wasEmpty){this.removeChildDomNodes()}this.makeChildWidgets(f)}},{key:\"getEmptyMessage\",value:function e(){var t=this.wiki.parseText(\"text/vnd.tiddlywiki\",this.getAttribute(\"emptyMessage\",\"\"),{parseAsInline:true});return t?t.tree:[]}},{key:\"refresh\",value:function e(t){var r=this.computeAttributes();if(_utils2.default.hasElements(r)){this.refreshSelf();return true}for(var i in t){if(!_utils2.default.isSystemOrDraft(i)){this.refreshSelf();return true}}return this.refreshChildren(t)}}]);return t}(_widget.widget);exports[\"tmap-connections\"]=EdgeListWidget;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/widget/EdgeListWidget.js.map\n", + "type": "application/javascript", + "module-type": "widget" + }, + "$:/plugins/felixhayashi/tiddlymap/js/widget/MapWidget": { + "title": "$:/plugins/felixhayashi/tiddlymap/js/widget/MapWidget", + "text": "\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.tiddlymap=exports.tmap=undefined;var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i){if(Object.prototype.hasOwnProperty.call(i,a)){e[a]=i[a]}}}return e};var _createClass=function(){function e(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||false;a.configurable=true;if(\"value\"in a)a.writable=true;Object.defineProperty(e,a.key,a)}}return function(t,i,a){if(i)e(t.prototype,i);if(a)e(t,a);return t}}();var _CallbackManager=require(\"$:/plugins/felixhayashi/tiddlymap/js/CallbackManager\");var _CallbackManager2=_interopRequireDefault(_CallbackManager);var _ViewAbstraction=require(\"$:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction\");var _ViewAbstraction2=_interopRequireDefault(_ViewAbstraction);var _EdgeType=require(\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _Popup=require(\"$:/plugins/felixhayashi/tiddlymap/js/Popup\");var _Popup2=_interopRequireDefault(_Popup);var _vis=require(\"$:/plugins/felixhayashi/vis/vis.js\");var _vis2=_interopRequireDefault(_vis);var _widget=require(\"$:/core/modules/widgets/widget.js\");var _utils=require(\"$:/plugins/felixhayashi/tiddlymap/js/utils\");var _utils2=_interopRequireDefault(_utils);var _SelectionRectangle=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/SelectionRectangle\");var _SelectionRectangle2=_interopRequireDefault(_SelectionRectangle);var _environment=require(\"$:/plugins/felixhayashi/tiddlymap/js/lib/environment\");var env=_interopRequireWildcard(_environment);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,i){if(t in e){Object.defineProperty(e,t,{value:i,enumerable:true,configurable:true,writable:true})}else{e[t]=i}return e}function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++){i[t]=e[t]}return i}else{return Array.from(e)}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\"Cannot call a class as a function\")}}function _possibleConstructorReturn(e,t){if(!e){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return t&&(typeof t===\"object\"||typeof t===\"function\")?t:e}function _inherits(e,t){if(typeof t!==\"function\"&&t!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}/* @preserve TW-Guard */\n/*\\\n\ntitle: $:/plugins/felixhayashi/tiddlymap/js/widget/MapWidget\ntype: application/javascript\nmodule-type: widget\n\n@preserve\n\n\\*/\n/* @preserve TW-Guard */var MapWidget=function(e){_inherits(t,e);function t(e,i){_classCallCheck(this,t);var a=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));a.getAttr=a.getAttribute;a.isDebug=_utils2.default.isTrue($tm.config.sys.debug,false);_utils2.default.bindTo(a,[\"constructTooltip\",\"handleResizeEvent\",\"handleClickEvent\",\"handleCanvasKeyup\",\"handleCanvasKeydown\",\"handleCanvasScroll\",\"handleCanvasMouseMove\",\"handleWidgetKeyup\",\"handleWidgetKeydown\",\"handleTriggeredRefresh\",\"handleContextMenu\"]);a.callbackManager=new _CallbackManager2.default;a.computeAttributes();a.editorMode=a.getAttr(\"editor\");a.clickToUse=_utils2.default.isTrue(a.getAttr(\"click-to-use\"),false);a.id=a.getAttr(\"object-id\")||a.getStateQualifier();a.widgetPopupsPath=$tm.path.tempPopups+\"/\"+a.id;if(a.editorMode){_utils2.default.addTWlisteners({\"tmap:tm-create-view\":a.handleCreateView,\"tmap:tm-rename-view\":a.handleRenameView,\"tmap:tm-delete-view\":a.handleDeleteView,\"tmap:tm-delete-element\":a.handleDeleteElement,\"tmap:tm-edit-view\":a.handleEditView,\"tmap:tm-generate-widget\":a.handleGenerateWidget,\"tmap:tm-toggle-central-topic\":a.handleSetCentralTopic,\"tmap:tm-save-canvas\":a.handleSaveCanvas},a,a)}_utils2.default.addTWlisteners({\"tmap:tm-focus-node\":a.handleFocusNode,\"tmap:tm-reset-focus\":a.repaintGraph},a,a);a.visListeners={click:a.handleVisSingleClickEvent,doubleClick:a.handleVisDoubleClickEvent,stabilized:a.handleVisStabilizedEvent,selectNode:a.handleVisSelectNode,deselectNode:a.handleVisDeselectNode,dragStart:a.handleVisDragStart,dragEnd:a.handleVisDragEnd,hoverNode:a.handleVisHoverElement,hoverEdge:a.handleVisHoverElement,blurNode:a.handleVisBlurElement,blurEdge:a.handleVisBlurElement,beforeDrawing:a.handleVisBeforeDrawing,afterDrawing:a.handleVisAfterDrawing,stabilizationProgress:a.handleVisLoading,stabilizationIterationsDone:a.handleVisLoadingDone};a.windowDomListeners={resize:[a.handleResizeEvent,false],click:[a.handleClickEvent,false],mousemove:[a.handleCanvasMouseMove,true]};a.canvasDomListeners={keyup:[a.handleCanvasKeyup,true],keydown:[a.handleCanvasKeydown,true],mousewheel:[a.handleCanvasScroll,true],DOMMouseScroll:[a.handleCanvasScroll,true],contextmenu:[a.handleContextMenu,true],MozMousePixelScroll:[a.handleExtraCanvasScroll,true]};a.widgetDomListeners={keyup:[a.handleWidgetKeyup,true],keydown:[a.handleWidgetKeydown,true]};a.conVector={from:null,to:null};return a}_createClass(t,[{key:\"handleConnectionEvent\",value:function e(t,i){var a=this;var s=this.view.getEdgeTypeFilter();var r={fromLabel:$tm.adapter.selectNodeById(t.from).label,toLabel:$tm.adapter.selectNodeById(t.to).label,view:this.view.getLabel(),eTyFilter:s.raw};$tm.dialogManager.open(\"getEdgeType\",r,function(e,r){if(e){var n=_utils2.default.getText(r);var o=_EdgeType2.default.getInstance(n);if(!o.namespace){var l=_EdgeType2.default.getIdParts(o.id),d=l.marker,u=l.name;var h=a.view.getConfig(\"edge_type_namespace\");o=_EdgeType2.default.getInstance(_EdgeType2.default.getId(d,h,u))}if(!o.exists()){o.save()}t.type=o.id;$tm.adapter.insertEdge(t);a.isPreventZoomOnNextUpdate=true;if(!a.view.isEdgeTypeVisible(o)){$tm.dialogManager.open(\"edgeNotVisible\",{type:o.id,view:a.view.getLabel(),eTyFilter:s.pretty})}}if(typeof i===\"function\"){i(e)}})}},{key:\"checkForFreshInstall\",value:function e(){if(!_utils2.default.getEntry($tm.ref.sysMeta,\"showWelcomeMessage\",true)){return}_utils2.default.setEntry($tm.ref.sysMeta,\"showWelcomeMessage\",false);var t={dialog:{preselects:{\"config.storyview\":\"true\",\"config.navigation\":\"true\",\"config.sidebar\":\"true\",\"config.demo\":\"true\"}}};$tm.dialogManager.open(\"welcome\",t,function(e,t){var i=_utils2.default.getPropertiesByPrefix(t.fields,\"config.\",true);if(i[\"storyview\"]&&_utils2.default.tiddlerExists(\"$:/plugins/felixhayashi/topstoryview\")){_utils2.default.setText(\"$:/view\",\"top\")}if(i[\"navigation\"]){_utils2.default.setText(\"$:/config/Navigation/openLinkFromInsideRiver\",\"above\");_utils2.default.setText(\"$:/config/Navigation/openLinkFromOutsideRiver\",\"top\")}if(i[\"sidebar\"]){_utils2.default.setText(\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\",\"fixed-fluid\")}if(i[\"demo\"]){var a=$tm.misc.defaultViewLabel;var s=$tm.adapter.insertNode({label:\"Have fun with\",x:0,y:0},a);var r=$tm.adapter.insertNode({label:\"TiddlyMap!!\",x:100,y:100},a);$tm.adapter.insertEdge({from:s.id,to:r.id})}if(Object.keys(i).length){_utils2.default.touch(\"$:/plugins/felixhayashi/tiddlymap\")}})}},{key:\"openStandardConfirmDialog\",value:function e(t,i){var a={message:i};$tm.dialogManager.open(\"getConfirmation\",a,t)}},{key:\"logger\",value:function e(t,i){if(this.isDebug){var a=Array.prototype.slice.call(arguments,1);a.unshift(\"@\"+this.id);a.unshift(t);$tm.logger.apply(this,a)}}},{key:\"render\",value:function e(t,i){this.parentDomNode=t;this.domNode=this.document.createElement(\"div\");t.insertBefore(this.domNode,i);this.registerClassNames(this.domNode);this.viewHolderRef=this.getViewHolderRef();this.view=this.getView();this.graphBarDomNode=this.document.createElement(\"div\");$tw.utils.addClass(this.graphBarDomNode,\"tmap-topbar\");this.domNode.appendChild(this.graphBarDomNode);this.graphDomNode=this.document.createElement(\"div\");this.domNode.appendChild(this.graphDomNode);$tw.utils.addClass(this.graphDomNode,\"tmap-vis-graph\");if(_utils2.default.isPreviewed(this)){$tw.utils.addClass(this.domNode,\"tmap-static-mode\");this.renderPreview(this.graphBarDomNode,this.graphDomNode)}else{this.renderFullWidget(this.domNode,this.graphBarDomNode,this.graphDomNode)}}},{key:\"renderPreview\",value:function e(t,i){var a=this.view.getRoot()+\"/snapshot\";var s=_utils2.default.getTiddler(a);var r=this.document.createElement(\"span\");r.innerHTML=this.view.getLabel();r.className=\"tmap-view-label\";t.appendChild(r);if(s){var n=this.makeChildWidget(_utils2.default.getTranscludeNode(a),true);n.renderChildren(i,null)}else{$tw.utils.addClass(i,\"tmap-graph-placeholder\")}}},{key:\"renderFullWidget\",value:function e(t,i,a){_utils2.default.setDomListeners(\"add\",window,this.windowDomListeners);_utils2.default.setDomListeners(\"add\",t,this.widgetDomListeners);this.addLoadingBar(this.domNode);this.tooltip=new _Popup2.default(this.domNode,{className:\"tmap-tooltip\",showDelay:$tm.config.sys.popups.delay});this.contextMenu=new _Popup2.default(this.domNode,{className:\"tmap-context-menu\",showDelay:0,hideOnClick:true,leavingDelay:999999});this.sidebar=_utils2.default.getFirstElementByClassName(\"tc-sidebar-scrollable\");this.isInSidebar=this.sidebar&&!this.domNode.isTiddlyWikiFakeDom&&this.sidebar.contains(this.domNode);this.rebuildEditorBar(i);this.initAndRenderGraph(a);$tm.registry.push(this);this.reloadRefreshTriggers();this.checkForFreshInstall();if(this.id===$tm.misc.mainEditorId){var s=$tm.url;if(s&&s.query[\"tmap-enlarged\"]){this.toggleEnlargedMode(s.query[\"tmap-enlarged\"])}}}},{key:\"registerClassNames\",value:function e(t){var i=$tw.utils.addClass;i(t,\"tmap-widget\");if(this.clickToUse){i(t,\"tmap-click-to-use\")}if(this.getAttr(\"editor\")===\"advanced\"){i(t,\"tmap-advanced-editor\")}if(this.getAttr(\"design\")===\"plain\"){i(t,\"tmap-plain-design\")}if(!_utils2.default.isTrue(this.getAttr(\"show-buttons\"),true)){i(t,\"tmap-no-buttons\")}if(this.getAttr(\"class\")){i(t,this.getAttr(\"class\"))}}},{key:\"addLoadingBar\",value:function e(t){this.graphLoadingBarDomNode=this.document.createElement(\"progress\");$tw.utils.addClass(this.graphLoadingBarDomNode,\"tmap-loading-bar\");t.appendChild(this.graphLoadingBarDomNode)}},{key:\"rebuildEditorBar\",value:function e(){this.removeChildDomNodes();var t=this.view;var i=\"tmap-unicode-button\";var a=i+\" tmap-active-button\";var s={widgetQualifier:this.getStateQualifier(),widgetTempPath:this.widgetTempPath,widgetPopupsPath:this.widgetPopupsPath,isViewBound:String(this.isViewBound()),viewRoot:t.getRoot(),viewLabel:t.getLabel(),viewHolder:this.getViewHolderRef(),edgeTypeFilter:t.edgeTypeFilterTRef,allEdgesFilter:$tm.selector.allEdgeTypes,neighScopeBtnClass:t.isEnabled(\"neighbourhood_scope\")?a:i,rasterMenuBtnClass:t.isEnabled(\"raster\")?a:i};for(var r in s){this.setVariable(r,s[r])}var n=_utils2.default.getTiddlerNode(t.getRoot());if(this.editorMode===\"advanced\"){n.children.push(_utils2.default.getTranscludeNode($tm.ref.graphBar))}else{var o=_utils2.default.getElementNode(\"span\",\"tmap-view-label\",t.getLabel());n.children.push(o)}n.children.push(_utils2.default.getTranscludeNode($tm.ref.focusButton));this.makeChildWidgets([n]);this.renderChildren(this.graphBarDomNode,this.graphBarDomNode.firstChild)}},{key:\"refresh\",value:function e(t){return false}},{key:\"update\",value:function e(t){if(!this.network||this.isZombieWidget()||_utils2.default.isPreviewed(this)){return}var i=t.changedTiddlers;this.callbackManager.refresh(i);if(this.isViewSwitched(i)||this.hasChangedAttributes()||t[env.path.options]||i[this.view.getRoot()]){this.logger(\"warn\",\"View switched config changed\");this.isPreventZoomOnNextUpdate=false;this.view=this.getView(true);this.reloadRefreshTriggers();this.rebuildEditorBar();this.reloadBackgroundImage();this.initAndRenderGraph(this.graphDomNode)}else{var a=this.view.update(t);if(a){this.logger(\"warn\",\"View components modified\");this.rebuildGraph({resetFocus:{delay:1e3,duration:1e3}})}else{if(t[env.path.nodeTypes]||this.hasChangedElements(i)){this.rebuildGraph()}this.refreshChildren(i)}}}},{key:\"hidePopups\",value:function e(t,i){this.tooltip.hide(t,i);this.contextMenu.hide(0,true)}},{key:\"reloadRefreshTriggers\",value:function e(){this.callbackManager.remove(this.refreshTriggers);var t=this.getAttr(\"refresh-triggers\")||this.view.getConfig(\"refresh-triggers\");this.refreshTriggers=$tw.utils.parseStringArray(t)||[];this.logger(\"debug\",\"Registering refresh trigger\",this.refreshTriggers);for(var i=this.refreshTriggers.length;i--;){this.callbackManager.add(this.refreshTriggers[i],this.handleTriggeredRefresh,false)}}},{key:\"rebuildGraph\",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},i=t.resetFocus;if(_utils2.default.isPreviewed(this)){return}this.logger(\"debug\",\"Rebuilding graph\");this.hidePopups(0,true);this.hasNetworkStabilized=false;var a=this.rebuildGraphData();if(a.changedNodes.withoutPosition.length){i=i||{delay:1e3,duration:1e3};if(!this.view.isEnabled(\"physics_mode\")){var s=this.visOptions.physics;s[s.solver].centralGravity=.25;this.network.setOptions(this.visOptions)}}if(!_utils2.default.hasElements(this.graphData.nodesById)){return}if(i){if(!this.isPreventZoomOnNextUpdate){this.network.stabilize();this.resetFocus=i}this.isPreventZoomOnNextUpdate=false}}},{key:\"getContainer\",value:function e(){return this.domNode}},{key:\"rebuildGraphData\",value:function e(){$tm.start(\"Reloading Network\");var t=$tm.adapter.getGraph({view:this.view});var i=_utils2.default.refreshDataSet(this.graphData.nodes,t.nodes);var a=_utils2.default.refreshDataSet(this.graphData.edges,t.edges);this.graphData.nodesById=t.nodes;this.graphData.edgesById=t.edges;_utils2.default.setField(\"$:/temp/tmap/nodes/\"+this.view.getLabel(),\"list\",$tm.adapter.getTiddlersByIds(t.nodes));$tm.stop(\"Reloading Network\");return{changedEdges:a,changedNodes:i}}},{key:\"isViewBound\",value:function e(){return _utils2.default.startsWith(this.getViewHolderRef(),$tm.path.localHolders)}},{key:\"isViewSwitched\",value:function e(t){return!_ViewAbstraction2.default.exists(this.view)||t[this.getViewHolderRef()]}},{key:\"hasChangedAttributes\",value:function e(){return Object.keys(this.computeAttributes()).length}},{key:\"hasChangedElements\",value:function e(t){var i=[];var a=this.graphData.nodesById;var s=this.view.isEnabled(\"neighbourhood_scope\");for(var r in t){if(_utils2.default.isSystemOrDraft(r)){continue}if(a[$tm.adapter.getId(r)]||s){return true}if(t[r].modified){i.push(r)}}if(i.length){var n=this.view.getNodeFilter(\"compiled\");var o=_utils2.default.getMatches(n,i);return!!o.length}}},{key:\"initAndRenderGraph\",value:function e(t){var i=this;if(this.network){this._destructVis()}this.logger(\"info\",\"Initializing and rendering the graph\");if(!this.isInSidebar){this.callbackManager.add(\"$:/state/sidebar\",this.handleResizeEvent)}this.visOptions=this.getVisOptions();this.graphData={nodes:new _vis2.default.DataSet,edges:new _vis2.default.DataSet,nodesById:_utils2.default.makeHashMap(),edgesById:_utils2.default.makeHashMap()};this.tooltip.setEnabled(_utils2.default.isTrue($tm.config.sys.popups.enabled,true));this.network=new _vis2.default.Network(t,this.graphData,this.visOptions);this.canvas=t.getElementsByTagName(\"canvas\")[0];this.networkDomNode=_utils2.default.getFirstElementByClassName(\"vis-network\",t,true);this.canvas.tabIndex=0;for(var a in this.visListeners){this.network.on(a,this.visListeners[a].bind(this))}this.addGraphButtons({\"fullscreen-button\":function e(){i.toggleEnlargedMode(\"fullscreen\")},\"halfscreen-button\":function e(){i.toggleEnlargedMode(\"halfscreen\")}});_utils2.default.setDomListeners(\"add\",this.canvas,this.canvasDomListeners);this.reloadBackgroundImage();this.rebuildGraph({resetFocus:{delay:0,duration:0}});this.handleResizeEvent();this.canvas.focus()}},{key:\"handleCanvasKeyup\",value:function e(t){var i=this;var a=this.network.getSelectedNodes();if(t.ctrlKey){t.preventDefault();if(t.keyCode===88){if(this.editorMode){this.handleAddNodesToClipboard(\"move\")}else{$tm.notify(\"Map is read only!\")}}else if(t.keyCode===67){this.handleAddNodesToClipboard(\"copy\")}else if(t.keyCode===86){this.handlePasteNodesFromClipboard()}else if(t.keyCode===65){var s=Object.keys(this.graphData.nodesById);this.network.selectNodes(s)}else if(t.keyCode===49||t.keyCode===50){if(a.length!==1)return;var r=t.keyCode===49?\"from\":\"to\";$tm.notify(_utils2.default.ucFirst(r)+\"-part selected\");this.conVector[r]=a[0];if(this.conVector.from&&this.conVector.to){this.handleConnectionEvent(this.conVector,function(){i.conVector={from:null,to:null}})}}}else{if(t.keyCode===13){if(a.length!==1)return;this.openTiddlerWithId(a[0])}}}},{key:\"handleCanvasKeydown\",value:function e(t){if(t.altKey||t.metaKey){t.preventDefault();if(t.keyCode>=48&&t.keyCode<=57){var i=String.fromCharCode(t.keyCode);this.view.setConfig(\"neighbourhood_scope\",i)}}else{if(t.keyCode===46){t.preventDefault();this.handleRemoveElements(this.network.getSelection())}}}},{key:\"handleDeleteElement\",value:function e(t){var i=t.paramObject.id;var a=i?[i]:this.network.getSelectedNodes();this.handleRemoveElements({nodes:a})}},{key:\"handleCanvasMouseMove\",value:function e(t){var i=this.network;if(!(t.ctrlKey&&t.buttons)){if(this.selectRect){this.selectRect=null;var a=i.getSelectedNodes();$tm.notify(a.length+\" nodes selected\");i.redraw()}return}t.preventDefault();t.stopPropagation();if(!this.domNode.contains(t.target)){return}var s=i.DOMtoCanvas({x:t.offsetX,y:t.offsetY});if(!this.selectRect){this.selectRect=new _SelectionRectangle2.default(s.x,s.y)}this.selectRect.span(s.x,s.y);var r=i.getPositions();var n=i.getSelectedNodes();for(var o in r){if(this.selectRect.isPointWithin(r[o])&&!_utils2.default.inArray(o,n)){n.push(o)}}i.selectNodes(n);this.assignActiveStyle(n);i.redraw()}},{key:\"handleCanvasScroll\",value:function e(t){var i=!!(this.isInSidebar||t.ctrlKey||this.enlargedMode||this.clickToUse&&this.networkDomNode.classList.contains(\"vis-active\"));var a=this.visOptions.interaction;var s=i===a.zoomView;if(i||!s){t.preventDefault()}if(!s){t.stopPropagation();a.zoomView=i;this.network.setOptions({interaction:{zoomView:i}});return false}}},{key:\"handleExtraCanvasScroll\",value:function e(t){t.preventDefault()}},{key:\"handleContextMenu\",value:function e(t){var i=this;t.preventDefault();var a=this.network;this.hidePopups(0,true);var s=a.getNodeAt({x:t.offsetX,y:t.offsetY});if(!s)return;var r=a.getSelectedNodes();if(!_utils2.default.inArray(s,r)){r=[s];a.selectNodes(r)}this.contextMenu.show(r,function(e,t){var a=e.length>1?\"multi\":\"single\";var s=\"$:/plugins/felixhayashi/tiddlymap/editor/contextMenu/node\";_utils2.default.registerTransclude(i,\"contextMenuWidget\",s);i.contextMenuWidget.setVariable(\"mode\",a);i.contextMenuWidget.render(t)})}},{key:\"handleWidgetKeyup\",value:function e(t){}},{key:\"handleWidgetKeydown\",value:function e(t){if(t.ctrlKey){t.preventDefault();if(t.keyCode===70){t.preventDefault();var i=this.widgetPopupsPath+\"/focus\";_utils2.default.setText(i,_utils2.default.getText(i)?\"\":\"1\")}else{return}}else if(t.keyCode===120){t.preventDefault();this.toggleEnlargedMode(\"halfscreen\")}else if(t.keyCode===121){t.preventDefault();this.toggleEnlargedMode(\"fullscreen\")}else if(t.keyCode===27){t.preventDefault();_utils2.default.deleteByPrefix(this.widgetPopupsPath)}else{return}this.canvas.focus()}},{key:\"handlePasteNodesFromClipboard\",value:function e(){if(!this.editorMode){$tm.notify(\"Map is read only!\");return}if(!$tm.clipBoard||$tm.clipBoard.type!==\"nodes\"){$tm.notify(\"TiddlyMap clipboad is empty!\")}var t=$tm.clipBoard.nodes;var i=Object.keys(t);for(var a=i.length;a--;){var s=i[a];if(this.graphData.nodesById[s]){continue}this.view.addNode(t[s]);this.graphData.nodes.update({id:s})}this.network.selectNodes(i);this.rebuildGraph({resetFocus:{delay:0,duration:0}});$tm.notify(\"pasted \"+i.length+\" nodes into map.\")}},{key:\"handleAddNodesToClipboard\",value:function e(t){var i=this.network.getSelectedNodes();if(!i.length){return}$tm.clipBoard={type:\"nodes\",nodes:this.graphData.nodes.get(i,{returnType:\"Object\"})};$tm.notify(\"Copied \"+i.length+\" nodes to clipboard\");if(t===\"move\"){for(var a=i.length;a--;){this.view.removeNode(i[a])}}this.isPreventZoomOnNextUpdate=true}},{key:\"getVisOptions\",value:function e(){var t=this;var i=$tm.config.vis;var a=_utils2.default.parseJSON(this.view.getConfig(\"vis\"));var s=_utils2.default.merge({},i,a);s.clickToUse=this.clickToUse;s.manipulation.enabled=!!this.editorMode;s.manipulation.deleteNode=function(e,i){t.handleRemoveElements(e);t.resetVisManipulationBar(i)};s.manipulation.deleteEdge=function(e,i){t.handleRemoveElements(e);t.resetVisManipulationBar(i)};s.manipulation.addEdge=function(e,i){t.handleConnectionEvent(e);t.resetVisManipulationBar(i)};s.manipulation.addNode=function(e,i){t.handleInsertNode(e);t.resetVisManipulationBar(i)};s.manipulation.editNode=function(e,i){t.handleEditNode(e);t.resetVisManipulationBar(i)};s.interaction.zoomView=!!(this.isInSidebar||this.enlargedMode);s.manipulation.editEdge=false;var r=s.physics;r[r.solver]=r[r.solver]||{};r.stabilization.iterations=1e3;this.logger(\"debug\",\"Loaded graph options\",s);return s}},{key:\"resetVisManipulationBar\",value:function e(t){if(t){t(null)}this.network.disableEditMode();this.network.enableEditMode()}},{key:\"isVisInEditMode\",value:function e(){return this.graphDomNode.getElementsByClassName(\"vis-button vis-back\").length>0}},{key:\"handleCreateView\",value:function e(){var t=this;var i={view:this.view.getLabel()};$tm.dialogManager.open(\"createView\",i,function(e,i){if(!e)return;var a=_utils2.default.getField(i,\"name\");var s=_utils2.default.getField(i,\"clone\",false);if(_ViewAbstraction2.default.exists(a)){$tm.notify(\"Forbidden! View already exists!\");return}if(s&&t.view.isLiveView()){$tm.notify(\"Forbidden to clone the live view!\");return}var r=new _ViewAbstraction2.default(a,{isCreate:true,protoView:s?t.view:null});t.setView(r)})}},{key:\"handleRenameView\",value:function e(){var t=this;if(this.view.isLocked()){$tm.notify(\"Forbidden!\");return}var i=this.view.getOccurrences();var a={count:i.length.toString(),refFilter:_utils2.default.joinAndWrap(i,\"[[\",\"]]\")};$tm.dialogManager.open(\"renameView\",a,function(e,i){if(!e){return}var a=_utils2.default.getText(i);if(!a){$tm.notify(\"Invalid name!\")}else if(_ViewAbstraction2.default.exists(a)){$tm.notify(\"Forbidden! View already exists!\")}else{t.view.rename(a);t.setView(t.view)}})}},{key:\"handleEditView\",value:function e(){var t=this;var i=JSON.stringify($tm.config.vis);var a=this.graphData;var s=this.view.getConfig();var r={\"filter.prettyNodeFltr\":this.view.getNodeFilter(\"pretty\"),\"filter.prettyEdgeFltr\":this.view.getEdgeTypeFilter(\"pretty\"),\"vis-inherited\":i};var n={view:this.view.getLabel(),createdOn:this.view.getCreationDate(true),numberOfNodes:Object.keys(a.nodesById).length.toString(),numberOfEdges:Object.keys(a.edgesById).length.toString(),dialog:{preselects:$tw.utils.extend({},s,r)}};$tm.dialogManager.open(\"configureView\",n,function(e,i){if(!e){return}var a=_utils2.default.getPropertiesByPrefix(i.fields,\"config.\",true);var s=t.view.getConfig(\"background_image\");t.view.setConfig(a);if(a[\"physics_mode\"]&&!t.view.isEnabled(\"physics_mode\")){t.view.saveNodePositions(t.network.getPositions())}var r=t.view.getConfig(\"background_image\");if(r&&r!==s){$tm.notify(\"Background changed! You may need to zoom out a bit.\")}var n=_utils2.default.getField(i,\"filter.prettyNodeFltr\",\"\");var o=_utils2.default.getField(i,\"filter.prettyEdgeFltr\",\"\");t.view.setNodeFilter(n);t.view.setEdgeTypeFilter(o)})}},{key:\"handleSaveCanvas\",value:function e(){var t=this;var i=\"$:/temp/tmap/snapshot\";this.createAndSaveSnapshot(i);var a=_utils2.default.getSnapshotTitle(this.view.getLabel(),\"png\");var s={dialog:{snapshot:i,width:this.canvas.width.toString(),height:this.canvas.height.toString(),preselects:{name:a,action:\"download\"}}};$tm.dialogManager.open(\"saveCanvas\",s,function(e,s){if(!e)return;a=s.fields.name||a;var r=s.fields.action;if(r===\"download\"){t.handleDownloadSnapshot(a)}else if(r===\"wiki\"){_utils2.default.cp(i,a,true);t.dispatchEvent({type:\"tm-navigate\",navigateTo:a})}else if(r===\"placeholder\"){t.view.addPlaceholder(i)}$tw.wiki.deleteTiddler(\"$:/temp/tmap/snapshot\")})}},{key:\"handleDownloadSnapshot\",value:function e(t){var i=this.document.createElement(\"a\");var a=this.view.getLabel();i.download=t||_utils2.default.getSnapshotTitle(a,\"png\");i.href=this.getSnapshot();var s=new MouseEvent(\"click\");i.dispatchEvent(s)}},{key:\"createAndSaveSnapshot\",value:function e(t){var i=t||this.view.getRoot()+\"/snapshot\";$tw.wiki.addTiddler(new $tw.Tiddler({title:i,type:\"image/png\",text:this.getSnapshot(true)},$tw.wiki.getCreationFields(),$tw.wiki.getModificationFields()));return i}},{key:\"getSnapshot\",value:function e(t){var i=this.canvas.toDataURL(\"image/png\");return t?_utils2.default.getWithoutPrefix(i,\"data:image/png;base64,\"):i}},{key:\"handleDeleteView\",value:function e(){var t=this;var i=this.view.getLabel();if(this.view.isLocked()){$tm.notify(\"Forbidden!\");return}var a=this.view.getOccurrences();if(a.length){var s={count:a.length.toString(),refFilter:_utils2.default.joinAndWrap(a,\"[[\",\"]]\")};$tm.dialogManager.open(\"cannotDeleteViewDialog\",s);return}var r=\"\\n You are about to delete the view ''\"+i+\"''\\n (no tiddler currently references this view).\\n \";this.openStandardConfirmDialog(function(e){if(!e){return}t.view.destroy();t.setView($tm.misc.defaultViewLabel);var a='view \"'+i+\"' deleted\";t.logger(\"debug\",a);$tm.notify(a)},r)}},{key:\"handleTriggeredRefresh\",value:function e(t){this.logger(\"log\",t,\"Triggered a refresh\");if(this.id===\"live_tab\"){var i=_utils2.default.getTiddler(_utils2.default.getText(t));if(i){var a=i.fields[\"tmap.open-view\"]||$tm.config.sys.liveTab.fallbackView;if(a&&a!==this.view.getLabel()){this.setView(a);return}}}this.rebuildGraph({resetFocus:{delay:1e3,duration:1e3}})}},{key:\"handleRemoveElements\",value:function e(t){var i=t.nodes,a=t.edges;if(i.length){this.handleRemoveNodes(i)}else if(a.length){this.handleRemoveEdges(a)}this.resetVisManipulationBar()}},{key:\"handleRemoveEdges\",value:function e(t){$tm.adapter.deleteEdges(this.graphData.edges.get(t));$tm.notify(\"edge\"+(t.length>1?\"s\":\"\")+\" removed\")}},{key:\"handleRemoveNodes\",value:function e(t){var i=this;var a=$tm.adapter.getTiddlersByIds(t);var s={count:t.length.toString(),tiddlers:$tw.utils.stringifyList(a),dialog:{preselects:{\"delete-from\":\"filter\"}}};$tm.dialogManager.open(\"deleteNodeDialog\",s,function(e,a){if(!e)return;var s=0;for(var r=t.length;r--;){var n=i.view.removeNode(t[r]);if(n){s++}}if(a.fields[\"delete-from\"]===\"system\"){$tm.adapter.deleteNodes(t);s=t.length}i.isPreventZoomOnNextUpdate=true;$tm.notify(\"\\n Removed \"+s+\"\\n of \"+t.length+\"\\n from \"+a.fields[\"delete-from\"]+\"\\n \")})}},{key:\"toggleEnlargedMode\",value:function e(t){if(!this.isInSidebar&&t===\"halfscreen\"){return}this.logger(\"log\",\"Toggled graph enlargement\");var i=this.enlargedMode;if(i){this.network.setOptions({clickToUse:this.clickToUse});_utils2.default.findAndRemoveClassNames([\"tmap-has-\"+i+\"-widget\",\"tmap-\"+i]);this.enlargedMode=null;document.body.scrollTop=this.scrollTop}if(!i||i!==t&&(t===\"fullscreen\"||t===\"halfscreen\"&&!this.isInSidebar)){this.scrollTop=document.body.scrollTop;this.enlargedMode=t;var a=this.isInSidebar?this.sidebar:_utils2.default.getFirstElementByClassName(\"tc-story-river\");$tw.utils.addClass(this.document.body,\"tmap-has-\"+t+\"-widget\");$tw.utils.addClass(a,\"tmap-has-\"+t+\"-widget\");$tw.utils.addClass(this.domNode,\"tmap-\"+t);this.network.setOptions({clickToUse:false});$tm.notify(\"Toggled \"+t+\" mode\")}this.handleResizeEvent()}},{key:\"handleGenerateWidget\",value:function e(t){$tw.rootWidget.dispatchEvent({type:\"tmap:tm-generate-widget\",paramObject:{view:this.view.getLabel()}})}},{key:\"handleSetCentralTopic\",value:function e(t){var i=t.paramObject;var a=i.id||this.network.getSelectedNodes()[0];if(a===this.view.getConfig(\"central-topic\")){a=\"\"}this.view.setCentralTopic(a)}},{key:\"handleVisStabilizedEvent\",value:function e(t){if(this.hasNetworkStabilized){return}this.hasNetworkStabilized=true;this.logger(\"log\",\"Network stabilized after\",t.iterations,\"iterations\");if(!this.view.isEnabled(\"physics_mode\")){var i=this.graphData.nodesById;var a=[];for(var s in i){if(i[s].x===undefined){a.push(s)}}if(a.length){this.setNodesMoveable(a,false);$tm.notify(a.length+\" nodes were added to the graph\")}var r=this.visOptions.physics;r[r.solver].centralGravity=0;this.network.setOptions(this.visOptions)}if(this.resetFocus){this.fitGraph(this.resetFocus.delay,this.resetFocus.duration);this.resetFocus=null}}},{key:\"handleFocusNode\",value:function e(t){var i=t.param;this.network.focus($tm.adapter.getId(i),{scale:1.5,animation:true})}},{key:\"isZombieWidget\",value:function e(){return this.domNode.isTiddlyWikiFakeDom===true||!this.document.body.contains(this.getContainer())}},{key:\"fitGraph\",value:function e(){var t=this;var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;clearTimeout(this.activeFitTimeout);var s=function e(){if(t.isZombieWidget()){return}t.network.redraw();t.network.fit({animation:{duration:a,easingFunction:\"easeOutQuart\"}})};this.activeFitTimeout=setTimeout(s,i)}},{key:\"handleInsertNode\",value:function e(t){var i=this;$tm.dialogManager.open(\"addNodeToMap\",{},function(e,a){if(!e){return}var s=_utils2.default.getField(a,\"draft.title\");if(_utils2.default.tiddlerExists(s)){if(_utils2.default.isMatch(s,i.view.getNodeFilter(\"compiled\"))){$tm.notify(\"Node already exists\");return}else{t=$tm.adapter.makeNode(s,t);i.view.addNode(t)}}else{var r=new $tw.Tiddler(a,{\"draft.title\":null});t.label=s;$tm.adapter.insertNode(t,i.view,r)}i.isPreventZoomOnNextUpdate=true})}},{key:\"handleEditNode\",value:function e(t){var i=this;var a=$tm.tracker.getTiddlerById(t.id);var s=_utils2.default.getTiddler(a);var r=JSON.stringify($tm.config.vis);var n=this.view.getConfig(\"vis\");var o={};o[t.id]=t;var l=$tm.adapter.getInheritedNodeStyles(o);var d=JSON.stringify(l[a]);var u=JSON.stringify(_utils2.default.merge({},{color:s.fields[\"color\"]},_utils2.default.parseJSON(s.fields[\"tmap.style\"])));var h=this.view.getLabel();var g=_extends({},this.view.getNodeData(t.id));delete g.x;delete g.y;var f={view:h,tiddler:s.fields.title,tidColor:s.fields[\"color\"],tidIcon:s.fields[$tm.field.nodeIcon]||s.fields[\"tmap.fa-icon\"],tidLabelField:\"global.\"+$tm.field.nodeLabel,tidIconField:\"global.\"+$tm.field.nodeIcon,dialog:{preselects:{\"inherited-global-default-style\":r,\"inherited-local-default-style\":n,\"inherited-group-styles\":d,\"global.tmap.style\":u,\"local-node-style\":JSON.stringify(g)}}};var v=function e(t,i,a){for(var s=a.length;s--;){f.dialog.preselects[t+\".\"+a[s]]=i[a[s]]||\"\"}};v(\"local\",g,[\"label\",\"tw-icon\",\"fa-icon\",\"open-view\"]);v(\"global\",s.fields,[$tm.field.nodeLabel,$tm.field.nodeIcon,\"tmap.fa-icon\",\"tmap.open-view\"]);$tm.dialogManager.open(\"editNode\",f,function(e,s){if(!e)return;var r=s.fields;var n=_utils2.default.getPropertiesByPrefix(r,\"global.\",true);for(var o in n){_utils2.default.setField(a,o,n[o]||undefined)}var l=_utils2.default.getPropertiesByPrefix(r,\"local.\",true);var d=_utils2.default.parseJSON(r[\"local-node-style\"],{});for(var u in l){d[u]=l[u]||undefined}i.view.saveNodeStyle(t.id,d);i.isPreventZoomOnNextUpdate=true})}},{key:\"handleVisSingleClickEvent\",value:function e(t){var i=_utils2.default.isTrue($tm.config.sys.singleClickMode);if(i&&!this.editorMode){this.handleOpenMapElementEvent(t)}}},{key:\"handleVisDoubleClickEvent\",value:function e(t){if(t.nodes.length||t.edges.length){if(this.editorMode||!_utils2.default.isTrue($tm.config.sys.singleClickMode)){this.handleOpenMapElementEvent(t)}}else{if(this.editorMode){this.handleInsertNode(t.pointer.canvas)}}}},{key:\"handleOpenMapElementEvent\",value:function e(t){var i=t.nodes,a=t.edges;if(i.length){var s=this.graphData.nodesById[i[0]];if(s[\"open-view\"]){$tm.notify(\"Switching view\");this.setView(s[\"open-view\"])}else{this.openTiddlerWithId(i[0])}}else if(a.length){this.logger(\"debug\",\"Clicked on an Edge\");var r=this.graphData.edgesById[a[0]].type;this.handleEditEdgeType(r)}else{return}this.hidePopups(0,true)}},{key:\"handleEditEdgeType\",value:function e(t){if(!this.editorMode)return;var i=$tm.config.sys.edgeClickBehaviour;if(i!==\"manager\")return;$tw.rootWidget.dispatchEvent({type:\"tmap:tm-manage-edge-types\",paramObject:{type:t}})}},{key:\"handleResizeEvent\",value:function e(t){if(this.isZombieWidget())return;var i=this.getAttr(\"height\");var a=this.getAttr(\"width\");if(this.isInSidebar){var s=this.domNode.getBoundingClientRect();var r=15;a=document.body.clientWidth-s.left-r+\"px\";var n=parseInt(this.getAttr(\"bottom-spacing\"))||15;var o=window.innerHeight-s.top;i=o-n+\"px\"}this.domNode.style.height=i||\"300px\";this.domNode.style.width=a;this.repaintGraph()}},{key:\"handleClickEvent\",value:function e(t){if(this.isZombieWidget()||!this.network)return;if(!this.graphDomNode.contains(t.target)){var i=this.network.getSelection();if(i.nodes.length||i.edges.length){this.logger(\"debug\",\"Clicked outside; deselecting nodes/edges\");this.network.selectNodes([]);this.resetVisManipulationBar()}}else{this.canvas.focus()}if(t.button!==2){this.contextMenu.hide(0,true)}}},{key:\"handleVisSelectNode\",value:function e(t){var i=t.nodes;if(!this.isDraggingAllowed(i)){return}this.assignActiveStyle(i)}},{key:\"isDraggingAllowed\",value:function e(t){var i=t.nodes;return this.editorMode||this.view.isEnabled(\"physics_mode\")}},{key:\"assignActiveStyle\",value:function e(t){if(!Array.isArray(t))t=[t];var i=this.visOptions.nodes.color;for(var a=t.length;a--;){var s=t[a];var r=this.graphData.nodesById[s];var n=_utils2.default.merge({},i,r.color);this.graphData.nodes.update({id:s,color:{highlight:n,hover:n}})}}},{key:\"handleVisDeselectNode\",value:function e(t){}},{key:\"handleVisDragEnd\",value:function e(t){var i=t.nodes;if(!i.length){return}if(i.length===1&&this.view.isEnabled(\"raster\")){var a=this.network.getPositions()[i[0]];this.graphData.nodes.update(_extends({id:i[0]},_utils2.default.getNearestRasterPosition(a,parseInt(this.view.getConfig(\"raster\")))))}this.draggedNode=null;this.setNodesMoveable(i,false)}},{key:\"handleVisBeforeDrawing\",value:function e(t){var i=this.view,a=this.network,s=this.backgroundImage;if(s){t.drawImage(s,0,0)}if(i.isEnabled(\"raster\")){_utils2.default.drawRaster(t,a.getScale(),a.getViewPosition(),parseInt(i.getConfig(\"raster\")))}}},{key:\"handleVisAfterDrawing\",value:function e(t){if(this.selectRect){var i=this.selectRect.getRect();t.beginPath();t.globalAlpha=.5;t.fillStyle=\"#EAFFEF\";t.fillRect.apply(t,_toConsumableArray(i));t.beginPath();t.globalAlpha=1;t.strokeStyle=\"#B4D9BD\";t.strokeRect.apply(t,_toConsumableArray(i))}if(this.draggedNode&&this.view.isEnabled(\"raster\")){var a=this.network.getPositions()[this.draggedNode];var s=_utils2.default.getNearestRasterPosition(a,parseInt(this.view.getConfig(\"raster\")));t.strokeStyle=\"green\";t.fillStyle=\"green\";t.beginPath();t.moveTo(a.x,a.y);t.lineTo(s.x,s.y);t.stroke();t.beginPath();t.arc(s.x,s.y,5,0,Math.PI*2);t.fill()}}},{key:\"constructTooltip\",value:function e(t,i){var a=_utils2.default.parseJSON(t);var s=a.node||a.edge;var r=null;var n=\"text/html\";var o=\"text/vnd-tiddlywiki\";if(a.node){var l=$tm.tracker.getTiddlerById(s);var d=_utils2.default.getTiddler(l);var u=d.fields[$tm.field.nodeInfo];if(u){i.innerHTML=$tw.wiki.renderText(n,o,u)}else if(d.fields.text){_utils2.default.registerTransclude(this,\"tooltipWidget\",l);this.tooltipWidget.setVariable(\"tv-tiddler-preview\",\"yes\");this.tooltipWidget.render(i)}else{i.innerHTML=l}}else{var h=this.graphData.edgesById[s];var g=$tm.indeces.allETy[h.type];if(g.description){r=$tw.wiki.renderText(n,o,g.description)}i.innerHTML=r||g.label||g.id}}},{key:\"handleVisHoverElement\",value:function e(t){if($tm.mouse.buttons)return;var i=t.node||t.edge;var a=JSON.stringify(t);if(t.node){this.assignActiveStyle(i)}if(!this.isVisInEditMode()&&!this.contextMenu.isShown()){var s=this.constructTooltip;this.tooltip.show(a,s)}}},{key:\"handleVisBlurElement\",value:function e(t){this.tooltip.hide()}},{key:\"handleVisLoading\",value:function e(t){var i=t.total,a=t.iterations;this.graphLoadingBarDomNode.style.display=\"block\";this.graphLoadingBarDomNode.setAttribute(\"max\",i);this.graphLoadingBarDomNode.setAttribute(\"value\",a)}},{key:\"handleVisLoadingDone\",value:function e(t){this.graphLoadingBarDomNode.style.display=\"none\"}},{key:\"handleVisDragStart\",value:function e(t){var i=t.nodes;if(!i.length||!this.isDraggingAllowed(i)){return}this.hidePopups(0,true);this.assignActiveStyle(i);this.setNodesMoveable(i,true);if(i.length===1){this.draggedNode=i[0]}}},{key:\"destruct\",value:function e(){_utils2.default.setDomListeners(\"remove\",window,this.windowDomListeners);_utils2.default.setDomListeners(\"remove\",this.domNode,this.widgetDomListeners);this._destructVis()}},{key:\"_destructVis\",value:function e(){if(!this.network)return;_utils2.default.setDomListeners(\"remove\",this.canvas,this.canvasDomListeners);this.network.destroy();this.network=null}},{key:\"openTiddlerWithId\",value:function e(t){var i=this;var a=$tm.tracker.getTiddlerById(t);this.logger(\"debug\",\"Opening tiddler\",a,\"with id\",t);if(this.enlargedMode===\"fullscreen\"){var s=$tw.wiki.findDraft(a);var r=!!s;if(!r){var n=\"tm-edit-tiddler\";this.dispatchEvent({type:n,tiddlerTitle:a});s=$tw.wiki.findDraft(a)}var o={draftTRef:s,originalTRef:a};$tm.dialogManager.open(\"fullscreenTiddlerEditor\",o,function(e,t){if(e){var n=\"tm-save-tiddler\";i.dispatchEvent({type:n,tiddlerTitle:s})}else if(!r){_utils2.default.deleteTiddlers([s])}var o=\"tm-close-tiddler\";i.dispatchEvent({type:o,tiddlerTitle:a})})}else{var l=this.domNode.getBoundingClientRect();this.dispatchEvent({type:\"tm-navigate\",navigateTo:a,navigateFromTitle:this.getVariable(\"storyTiddler\"),navigateFromNode:this,navigateFromClientRect:{top:l.top,left:l.left,width:l.width,right:l.right,bottom:l.bottom,height:l.height}})}}},{key:\"getViewHolderRef\",value:function e(){if(this.viewHolderRef){return this.viewHolderRef}this.logger(\"info\",\"Retrieving or generating the view holder reference\");var t=this.getAttr(\"view\");var i=null;if(t){this.logger(\"log\",'User wants to bind view \"'+t+\"' to graph\");var a=$tm.path.views+\"/\"+t;if($tw.wiki.getTiddler(a)){i=$tm.path.localHolders+\"/\"+_utils2.default.genUUID();this.logger(\"log\",'Created an independent temporary view holder \"'+i+'\"');_utils2.default.setText(i,a);this.logger(\"log\",'View \"'+a+\"' inserted into independend holder\")}else{this.logger(\"log\",'View \"'+t+'\" does not exist')}}if(!i){this.logger(\"log\",\"Using default (global) view holder\");i=$tm.ref.defaultViewHolder}return i}},{key:\"setView\",value:function e(t,i){if(!_ViewAbstraction2.default.exists(t)){return}t=new _ViewAbstraction2.default(t);var a=t.getLabel();i=i||this.viewHolderRef;this.logger(\"info\",'Inserting view \"'+a+'\" into holder \"'+i+'\"');$tw.wiki.addTiddler(new $tw.Tiddler({title:i,text:a}));this.update({changedTiddlers:_defineProperty({},i,true)})}},{key:\"getView\",value:function e(t){if(!t&&this.view){return this.view}var i=this.getViewHolderRef();var a=_utils2.default.getText(i);this.logger(\"debug\",\"Retrieved view from holder\");var s=void 0;if(_ViewAbstraction2.default.exists(a)){s=new _ViewAbstraction2.default(a)}else{this.logger(\"debug\",'Warning: View \"'+a+\"\\\" doesn't exist. Default is used instead.\");s=new _ViewAbstraction2.default(\"Default\")}return s}},{key:\"reloadBackgroundImage\",value:function e(t){var i=this;this.backgroundImage=null;var a=this.view.getConfig(\"background_image\");var s=_utils2.default.getTiddler(a);if(!s&&!a)return;var r=new Image;var n=function e(t){r.src=t};r.onload=function(){i.backgroundImage=r;i.repaintGraph()};if(s){var o=s.fields[\"_canonical_uri\"];if(o){_utils2.default.getImgFromWeb(o,n)}else if(s.fields.text){r.src=$tw.utils.makeDataUri(s.fields.text,s.fields.type)}}else if(a){_utils2.default.getImgFromWeb(a,n)}}},{key:\"repaintGraph\",value:function e(){var t=$tw.utils.hasClass(this.document.body,\"tmap-has-fullscreen-widget\");if(this.network&&(!t||t&&this.enlargedMode)){this.logger(\"info\",\"Repainting the whole graph\");this.network.redraw();this.fitGraph(0,1e3)}}},{key:\"setGraphButtonEnabled\",value:function e(t,i){var a=\"vis-button tmap-\"+t;var s=_utils2.default.getFirstElementByClassName(a,this.domNode);$tw.utils.toggleClass(s,\"tmap-button-enabled\",i)}},{key:\"setNodesMoveable\",value:function e(t,i){if(!t||!t.length||this.view.isEnabled(\"physics_mode\")){return}var a=[];var s=!i;for(var r=t.length;r--;){a.push({id:t[r],fixed:{x:s,y:s}})}this.graphData.nodes.update(a);if(s){this.logger(\"debug\",\"Fixing\",a.length,\"nodes\");this.view.saveNodePositions(this.network.getPositions());this.isPreventZoomOnNextUpdate=true}}},{key:\"addGraphButtons\",value:function e(t){var i=_utils2.default.getFirstElementByClassName(\"vis-navigation\",this.domNode);for(var a in t){var s=this.document.createElement(\"div\");s.className=\"vis-button tmap-\"+a;s.addEventListener(\"click\",t[a].bind(this),false);i.appendChild(s);this.setGraphButtonEnabled(a,true)}}}]);return t}(_widget.widget);exports.tmap=MapWidget;exports.tiddlymap=MapWidget;\n//# sourceMappingURL=./maps/felixhayashi/tiddlymap/js/widget/MapWidget.js.map\n", + "type": "application/javascript", + "module-type": "widget" + }, + "$:/plugins/felixhayashi/tiddlymap/license": { + "title": "$:/plugins/felixhayashi/tiddlymap/license", + "subtitle": "License", + "caption": "License", + "text": "\\rules except wikilink\n\n!! TiddlyMap\n\nCopyright (c) 2014, Felix Küppers\nAll rights reserved.\n\nTiddlyMap is licensed under the [[BSD 2-Clause License|http://opensource.org/licenses/BSD-2-Clause]]. For the exact license terms, please visit [[https://github.com/felixhayashi/TW5-TiddlyMap/blob/master/LICENSE]]. \n\n!! TiddlyWiki\n\nCreated by Jeremy Ruston, (jeremy [at] jermolene [dot] com)\n\nCopyright © Jeremy Ruston 2004-2007 Copyright © UnaMesa Association 2007-2014\n\nPublished under the following [licenses](https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses):\n\n# BSD 3-clause \"New\" or \"Revised\" License (including any right to adopt any future version of a license if permitted)\n# Creative Commons Attribution 3.0 (including any right to adopt any future version of a license if permitted)\n\n!! Vis.js\n\nCopyright (c) 2014 [Almende B.V.](https://github.com/almende/vis)\n\nPublished under the following licenses:\n\n# Apache License Version 2.0, January 2004 http://www.apache.org/licenses/\n# MIT License (MIT)\n" + }, + "$:/plugins/felixhayashi/tiddlymap/readme": { + "title": "$:/plugins/felixhayashi/tiddlymap/readme", + "text": "* Please refer to the project-readme hosted at [[https://github.com/felixhayashi/TW5-TiddlyMap]].\n* A demo with several examples and explanations can be found at [[http://tiddlymap.org]]." + }, + "$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tmap:unknown": { + "title": "$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tmap:unknown", + "description": "Automatically assigned to an edge that does not have a type assigned", + "style": "{\"color\":\"gray\"}", + "show-label": "false" + }, + "$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-body:link": { + "title": "$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-body:link", + "description": "A link that is contained in the tiddler's body pointing to another resource.", + "style": "{\"color\":\"orange\", \"dashes\":true}", + "label": "links to", + "text": "" + }, + "$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-list:list": { + "title": "$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-list:list", + "description": "Contained in a list of this tiddler", + "style": "{ \"color\": \"red\", \"dashes\":true}", + "label": "listed in", + "text": "" + }, + "$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-list:tags": { + "title": "$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-list:tags", + "description": "A tag that refers to a tiddler of the same name.", + "style": "{ \"color\": \"darkslategray\", \"dashes\":true}", + "label": "tagged with" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/default": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/default", + "caption": "Overview", + "text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-plain\">\n Please visit the [[online docs|http://tiddlymap.org/Documentation]]\n for more information about the available global options.\n</div>\n<table class=\"tmap-key-value-table\">\n <tr>\n <th align=\"left\">Plugin version</th>\n <td><<pluginVersion>></td>\n </tr>\n<!--\n <tr>\n <th align=\"left\">Datastructure version</th>\n <td><<dataStructureVersion>></td>\n </tr>\n-->\n <tr>\n <th align=\"left\">Nodes in system</th>\n <td><<numberOfNodes>></td>\n </tr>\n <tr>\n <th align=\"left\">Edges in system</th>\n <td><<numberOfEdges>></td>\n </tr>\n</table>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/editor": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/editor", + "caption": "Editor", + "text": "\\rules except wikilink\n\n<table class=\"tmap-config-table\">\n <<tmap-row type:\"input-checkbox\"\n title:\"Show Neighbour­hood menu\"\n field:\"config.sys.editorMenuBar.showNeighScopeButton\"\n descr:\"Show or hide the neighbourhood menu button.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Show Screen­shot menu\"\n field:\"config.sys.editorMenuBar.showScreenshotButton\"\n descr:\"Show or hide the screenshot menu button.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Show Raster­ menu\"\n field:\"config.sys.editorMenuBar.showRasterMenuButton\"\n descr:\"Show or hide the raster menu button.\">>\n</table>\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/fields": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/fields", + "caption": "Field settings", + "text": "\\rules except wikilink\n\n<table class=\"tmap-config-table\">\n <<tmap-row type:\"input-text\"\n title:\"Node-icon field\"\n field:\"config.sys.field.nodeIcon\" \n descr:\"Local image used as node image in the graphs.\">>\n <<tmap-row type:\"input-text\"\n title:\"Node-label field\"\n field:\"config.sys.field.nodeLabel\" \n descr:\"Alternative node label to use instead of the title.\">>\n <<tmap-row type:\"input-text\"\n title:\"Node-info field\"\n field:\"config.sys.field.nodeInfo\" \n descr:\"Field used as tooltip when hovering over a node in a graph.\"\n note:\"It is prohibited to use the text field here.\">>\n</table> \n\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/interaction": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/interaction", + "caption": "Interaction & behaviour", + "text": "\\rules except wikilink\n\n<table class=\"tmap-config-table\">\n <$macrocall type=\"input-select\"\n $name=\"tmap-row\"\n title=\"Default startup view\"\n field=\"config.sys.defaultView\"\n nochoice=\"Last view used at startup\"\n selectFilter=<<tmap \"option\" \"selector.allViewsByLabel\">>\n descr=\"The view to display at startup\" />\n <<tmap-row type:\"input-checkbox\"\n title:\"Show popups\"\n field:\"config.sys.popups.enabled\"\n descr:\"Set this to true if you want to see automatic\n popups in the map.\">>\n <$list filter=\"[config.sys.popups.enabled[true]]\">\n <<tmap-row type:\"input-text\"\n title:\"Popup delay\"\n field:\"config.sys.popups.delay\"\n descr:\"The time in miliseconds that needs to pass after\n a tooltip is triggered.\">>\n <<tmap-row type:\"input-text\"\n title:\"Popup width\"\n field:\"config.sys.popups.width\"\n descr:\"The default max-width of the popup.\"\n note:\"Make sure you added the desired unit (e.g. `px`).\n Requires a wiki refresh.\">>\n <<tmap-row type:\"input-text\"\n title:\"Popup height\"\n field:\"config.sys.popups.height\"\n descr:\"The default max-height of the popup.\"\n note:\"Make sure you added desired the unit (e.g. `px`).\n Requires a wiki refresh.\">>\n </$list>\n <<tmap-row type:\"input-checkbox\"\n title:\"Allow single click mode\"\n field:\"config.sys.singleClickMode\"\n descr:\"A single click on a node is sufficient to open the\n corresponding tiddler.\"\n note:\"Drag and drop will still work and does not cause a\n tiddler to be opened. Single click is never active in\n the map editor.\">>\n <<tmap-row type:\"input-select\"\n title:\"Edge click behaviour\"\n field:\"config.sys.edgeClickBehaviour\"\n selectFilter:\"[[nothing|Nothing]]\n [[manager|Open edge-type manager]]\"\n descr:\"What should happen when you click on an edge?\">>\n <<tmap-row type:\"input-select\" title:\"Raster size\" field:\"config.sys.raster\"\n selectFilter:\"[[|disabled]] [[5|5px]] [[10|10px]] [[15|15px]] [[20|20px]] [[30|30px]] [[40|40px]]\"\n descr:\"Snap nodes to an invisible raster of the given size after drag'n'drop.\"\n note:\"Only works when the view is not in floating mode\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Apply node-filter to neighbours\"\n field:\"config.sys.nodeFilterNeighbours\"\n descr:\"If checked, neighbours displayed in the map will be filtered\n by the view's node-filter. Otherwise the node-filter will only be used\n to filter the original set of nodes in the map\">>\n</table>\n\n!! Suppressed dialogs\n\n<div class=\"tmap-flash-message tmap-plain\">\n Dialogs that you decided to suppress in the past are listed here.\n Remove the checkmark to enable dialogs again.\n</div>\n\n<table class=\"tmap-config-table\">\n <$list\n filter=\"[<output>fields[]prefix[config.sys.suppressedDialogs]]\"\n emptyMessage=\"–\">\n <$set name=\"dialogName\" value=<<tmap basename \".\">>>\n <$macrocall $name=\"tmap-row\"\n type=\"input-checkbox\"\n title=\"Suppress '$(dialogName)$' dialog\"\n field=<<currentTiddler>> />\n </$set>\n <br />\n </$list>\n</table>\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/liveTab": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/liveTab", + "caption": "Live tab", + "text": "\\rules except wikilink\n\n<table class=\"tmap-config-table\">\n <<tmap-row type:\"input-checkbox\"\n title:\"Show Live tab\"\n field:\"liveTab\" \n descr:\"Show or hide the live tab in the sidebar.\">>\n <$macrocall type=\"input-select\"\n $name=\"tmap-row\"\n title=\"Fallback view\"\n field=\"config.sys.liveTab.fallbackView\" \n selectFilter=<<tmap \"option\" \"selector.allViewsByLabel\">>\n descr=\"The view to display in the sidebar's live tab in\n case the current tiddler did not specify a view\n to open.\" />\n</table>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig", + "subtitle": "{{$:/core/images/options-button}} Global configuration of TiddlyMap", + "classes": "tmap-remove-top-space", + "text": "\\rules except wikilink\n\n<$macrocall $name=\"tabs\"\n default=<<concat \"$(template)$/default\">>\n tabsList=\"[all[shadows]prefix<template>] -[<template>]\"\n/>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/verbosity": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/verbosity", + "caption": "Verbosity", + "text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-plain\">\n Here you can restrict the system's talkativeness.\n</div>\n\n<table class=\"tmap-config-table\">\n <<tmap-row type:\"input-checkbox\"\n title:\"Debug output\"\n field:\"config.sys.debug\" \n descr:\"Set this to true if you want debug information to be\n displayed in the browser console.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Show notifications\"\n field:\"config.sys.notifications\" \n descr:\"Set this to true if you want to receive fade-out\n notifications for important events.\">>\n</table> " + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/vis": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/vis", + "classes": "tmap-remove-top-space", + "caption": "Graph", + "text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-info\">\n The global vis configurations will affect all views and their\n elements (nodes and edges) unless they are overridden on a lower\n level. All options below are documented at\n [[vis.js.org|http://visjs.org/docs/network]].\n</div>\n<div class=\"tmap-flash-message tmap-info\">\n Only config items that you actually changed have an effect on\n the graph. Other options are visible, yet, inactive.\n</div>\n<$tmap-config\n mode=\"manage-config\"\n inherited=\"vis-inherited\"\n extension=\"config.vis\" />" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/configureView/default": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/configureView/default", + "caption": "Overview", + "text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-info\">\n All configurations __only__ affect this view.\n</div>\n\n<table class=\"tmap-key-value-table\">\n <tr>\n <th align=\"left\">Created on</th>\n <td><<createdOn>></td>\n </tr>\n <tr>\n <th align=\"left\">Nodes contained in graph</th>\n <td><<numberOfNodes>></td>\n </tr>\n <tr>\n <th align=\"left\">Edges contained in graph</th>\n <td><<numberOfEdges>></td>\n </tr>\n</table>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/configureView/editFilters": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/configureView/editFilters", + "caption": "Edit filters", + "text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-info\">\n Completely new to filters? Please read\n [[Introduction to filter notation|http://tiddlywiki.com/#Introduction%20to%20filter%20notation]]\n first.\n</div>\n\n<fieldset>\n <legend>Filters <sup>[1]</sup></legend>\n <table class=\"tmap-config-table tmap-large-input\">\n <<tmap-row type:\"input-textarea\"\n title:\"Node filter\"\n field:\"filter.prettyNodeFltr\"\n descr:\"In the map, only those tiddlers that match this filter\n are shown. Drafts and system tiddlers are automatically\n excluded.\">>\n <<tmap-row type:\"input-textarea\"\n title:\"Edge-type filter\"\n field:\"filter.prettyEdgeFltr\" \n descr:\"Only edges with a type that matches the filter are shown.\">>\n </table> \n</fieldset>\n\n---\n\n<sup>[1]</sup> In the editors above, a new line is equivalent to a space symbol.<br />\n<sup>[2]</sup> It is suggested to read\n[[Node and edge-type filters|http://tiddlymap.org#Node%20and%20edge-type%20filters]]\nand [[Edge-type namespaces|http://tiddlymap.org#Node%20and%20edge-type%20filters]]\nbefore using Tiddlymap's filter editor." + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/configureView/layout": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/configureView/layout", + "caption": "Layout", + "text": "\\rules except wikilink\n\n<table class=\"tmap-config-table\">\n <<tmap-row type:\"input-checkbox\"\n title:\"Floating nodes\"\n field:\"config.physics_mode\" \n descr:\"Set this to true if you want your nodes to freely\n swirl around.\">>\n <<tmap-row type:\"input-text\"\n title:\"Background image\"\n field:\"config.background_image\" \n descr:\"The title of an image tiddler to be used as background\n in the view.\"\n note:\"You can also use an image url directly, however, the\n image needs be stored under the same domain as your wiki.\n Otherwise, it won't be displayed!\">>\n</table>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/configureView/namespace": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/configureView/namespace", + "caption": "Namespace", + "text": "\\rules except wikilink\n\n<table class=\"tmap-config-table tmap-small-input\">\n <<tmap-row type:\"input-text\"\n title:\"Edge-type namespace\"\n field:\"config.edge_type_namespace\" \n descr:\"A namespace (like `foaf` in `foaf:knows`) that will be\n automatically added to all edge types you create in\n this view. The namespace is only added if the types\n do not exist yet and do not have a namespace assigned yet.\n Namespaces are always hidden in the graph.\"\n note:\"Most likely, you don't want the edges created with this\n namespace to leak into other views, moreover, you don't\n want edges that do not possess the namespace ever to be\n shown here. In this case, use a private marker (`_`)\n in front of your namespace, e.g. `_mynamespace` and use\n an appropriate edge type filter, i.e. `+[prefix[_mynamespace]]`\n For further information see:\n \n * [[Edge-type namespaces|http://tiddlymap.org/#Edge-type%20namespaces]]\n * [[Private edge types|http://tiddlymap.org/#Private%20edge%20types]]\n \">>\n</table>\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/configureView": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/configureView", + "subtitle": "{{$:/core/images/options-button}} View configuration -- <<view>>", + "text": "\\rules except wikilink\n\n\\define privateEdgeTypes() [[private edge-types|http://tiddlymap.org/#Private%20edge%20types]]\n\n<$macrocall $name=\"tabs\"\n default=<<concat \"$(template)$/default\">>\n tabsList=\"[all[shadows]prefix<template>] -[<template>]\"\n/>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/configureView/vis": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/configureView/vis", + "caption": "Graph", + "text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-info\">\n The local vis configurations will affect all\n elements (nodes and edges) of this view, unless they are\n overridden on a lower level. All options below are documented at\n [[vis.js.org|http://visjs.org/docs/network]].\n</div>\n<div class=\"tmap-flash-message tmap-info\">\n Only config items that you actually changed have an effect on the\n graph. Other options are visible, yet, inactive.\n</div>\n<$tmap-config\n mode=\"manage-config\"\n inherited=\"vis-inherited\"\n extension=\"config.vis\" />" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/getEdgeType": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/getEdgeType", + "subtitle": "{{$:/plugins/felixhayashi/tiddlymap/icon}} Edge type specification", + "text": "\\rules except wikilink\n\\rules except underscore\n\n\\define filter() $(allEdgeTypes)$ +[search:title[$(term)$]]\n\n\\define badge(color, label, tooltip)\n<span style=\"background: $color$\" title=\"$tooltip$\">$label$</span>\n\\end\n\n\\define badges()\n<$tiddler tiddler={{!!text}}>\n<$set name=\"id\" value=<<tmap \"getETyId\" \"$(view)$\">>>\n<$set name=\"isVisible\" value=<<tmap \"isETyVisible\" \"$(view)$\">>>\n<div class=\"tmap-badges\">\n <span\n style=\"background: darkslategray\"\n title=\"Your input translates into this id.\">\n <<id>>\n </span>\n <$list filter=\"[<isVisible>regexp[true]]\">\n <<badge \"green\" \"visible\" \"Matches your view's filter\">>\n </$list>\n <$list filter=\"[<isVisible>regexp[false]]\">\n <<badge \"red\" \"not visible\" \"Doesn't match your view's filter\">>\n </$list>\n <$list filter=\"[<id>!regexp[^tmap:unknown$]]\" variable=\"item\">\n <$list filter=\"[<id>regexp[^_]]\">\n <<badge \"purple\" \"private\" \"Not shown in other views per default\">>\n </$list>\n <$list filter=\"[<id>regexp[.+:.+]]\">\n <<badge \"orange\" \"namespace\" \"This type is prefixed with a proper namespace\">>\n </$list>\n </$list>\n</div>\n</$set>\n</$set>\n</$tiddler>\n\\end\n\n\\define search()\n<p>\n You are about to connect \"<$text text=\"$(fromLabel)$\" />\"\n with \"<$text text=\"$(toLabel)$\" />\". Please specify a type.\n</p>\n<table id=\"tmap-search-table\">\n <tr>\n <td><b>Type:</b></td>\n <td>\n <$edit-text\n focus=\"true\"\n field=\"text\"\n type=\"text\"\n tag=\"input\"\n default=\"\"\n class=\"tmap-trigger-field\n tmap-triggers-ok-button-on-enter\n tmap-triggers-cancel-button-on-esc\" />\n <<badges>>\n </td>\n </tr>\n <tr>\n <td></td>\n <td>\n <$set name=\"term\" value={{!!text}}>\n <$set name=\"allEdgeTypes\" value=<<tmap \"option\" \"selector.allEdgeTypesById\">>>\n <ul class=\"tmap-small-list\">\n <$list filter=<<filter>>>\n <li>\n <$button class=\"tc-btn-invisible tmap-link\">\n <$view field=\"title\" />\n <$action-setfield $tiddler=<<output>> text={{!!title}} />\n </$button>\n </li>\n </$list>\n </ul>\n </$set>\n </$set>\n </td>\n </tr>\n</table>\n\\end\n\n<$list filter=\"[<temp>!has[more]]\" variable=\"item\"><<search>></$list>\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/addNodeToMap": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/addNodeToMap", + "subtitle": "{{$:/core/images/tag-button}} Add node", + "classes": "tmap-modal-add-node", + "text": "\\rules except wikilink\n\n\\define backButtonText() back to list\n\\define outputAndTemplate() [[$(output)$]] [[$(template)$]]\n\n\\define editor()\n <$button class=\"tmap-go-back tc-btn-invisible\">\n {{$:/core/images/chevron-left}} <<backButtonText>>\n <$action-deletefield $tiddler=<<temp>> more template />\n <$action-sendmessage\n $message=\"tmap:tm-clear-tiddler\"\n keep=\"draft.title\"\n title=<<output>> />\n </$button>\n\n <$list filter=\"[<output>get[draft.title]is[tiddler]]\">\n <div class=\"tmap-flash-message tmap-warning\">\n Tiddler already exists! Use another title or click\n \"<<backButtonText>>\" to cancel your edit.\n </div>\n </$list>\n\n <div class=\"tmap-modal-editor\">\n <table class=\"tmap-config-table\">\n <tr class=\"tmap-template-select\">\n <td>Template</td>\n <td>\n <$select\n tiddler=<<temp>>\n field=\"template\">\n <option value=\"\"></option>\n <$list filter=<<tmap \"option\" \"selector.allPotentialNodes\">>>\n <option><$view field=\"title\" /></option>\n </$list>\n </$select>\n <$button>Load\n <$action-sendmessage\n $message=\"tmap:tm-clear-tiddler\"\n keep=\"draft.title\"\n title=<<output>> />\n <$list filter=\"[<temp>get[template]]\" variable=\"template\">\n <$action-sendmessage\n $message=\"tmap:tm-merge-tiddlers\"\n tiddlers=<<outputAndTemplate>>\n output=<<output>> />\n <$action-deletefield $tiddler=<<output>> tmap.id tmap.edges />\n </$list>\n </$button>\n </td>\n <td>Press the \"load\" button to activate the template.</td>\n </tr>\n </table>\n <$importvariables filter=\"[all[tiddlers+shadows]prefix[$:/core/macros/]]\">\n <$set name=\"currentTiddler\" value=<<output>>>\n <$transclude tiddler=\"$:/core/ui/EditTemplate\" mode=\"block\" />\n </$set>\n </$importvariables>\n </div>\n\\end\n\n\\define search()\n<p>Add an existing tiddler to the map or create a new one.</p>\n<table id=\"tmap-search-table\">\n <tr>\n <td><b>Title:</b></td>\n <td>\n <$edit-text\n tiddler=<<output>>\n field=\"draft.title\"\n focus=\"true\"\n type=\"text\"\n tag=\"input\"\n default=\"\"\n class=\"tmap-trigger-field\n tmap-triggers-ok-button-on-enter\n tmap-triggers-cancel-button-on-esc\" />\n <$list filter=\"[<output>get[draft.title]!is[tiddler]]\">\n <$button\n tooltip=\"The tiddler does not exist yet and you may edit it\n before it is added to the map\">\n {{$:/core/images/edit-button}}\n <$action-setfield $tiddler=<<temp>> more=\"true\" />\n </$button> <sup>[1]</sup>\n </$list>\n </td>\n </tr>\n <tr>\n <td></td>\n <td>\n <$set name=\"term\" value={{!!draft.title}}>\n <ul class=\"tmap-small-list\">\n <$list filter=\"[search:title<term>!is[system]!has[draft.of]]\">\n <li>\n <$button class=\"tc-btn-invisible tmap-link\">\n <$view field=\"title\" />\n <$action-setfield $tiddler=<<output>> draft.title={{!!title}} />\n </$button>\n </li>\n </$list>\n </ul>\n </$set>\n </td>\n </tr>\n</table>\n\n<$list filter=\"[<output>get[draft.title]!is[tiddler]]\">\n<hr />\n<sup>[1]</sup>\n<small>\n The tiddler does not exist yet and you may edit it\n before it is added to the map\n</small>\n</$list>\n\\end\n\n<$list filter=\"[<temp>!has[more]]\" variable=\"item\"><<search>></$list>\n<$list filter=\"[<temp>has[more]]\" variable=\"item\"><<editor>></$list>\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/cannotDeleteViewDialog": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/cannotDeleteViewDialog", + "subtitle": "{{$:/core/images/locked-padlock}} You cannot delete this view!", + "buttons": "ok", + "text": "\\rules except wikilink\n\nIt is not possible to delete the current view as ''<<count>>'' tiddlers\nare referencing it. To delete the view you must first remove the tiddlymap\nwidgets in the tiddlers listed below or change their view attributes.\n\n''References''\n\n<ul>\n<$list filter=<<refFilter>> variable=\"item\">\n <li><$link><<item>></$link></li>\n</$list>\n</ul>\n\nAfter the references are removed, you may delete the view.\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/getConfirmation": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/getConfirmation", + "subtitle": "{{$:/core/images/import-button}} You must confirm in order to proceed!", + "text": "\\rules except wikilink\n\n<<message>>\n\n''Are you really sure you want to do this?''" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/createView": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/createView", + "subtitle": "{{$:/core/images/new-button}} Creating a new view", + "text": "\\rules except wikilink\n\n<table class=\"tmap-config-table\">\n <<tmap-row type:\"input-text\"\n title:\"View name\"\n field:\"name\"\n focus:\"true\"\n class:\"tmap-trigger-field\n tmap-triggers-ok-button-on-enter\n tmap-triggers-cancel-button-on-esc\"\n descr:\"The name for the new view. If no name is entered,\n the program will invent one for you.\"\n note:\"You cannot override an existing view. In this case,\n you need to delete the old view first! You must no use\n slashes (`/`) in the name.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Clone view\"\n field:\"clone\"\n descr:\"Use the view that is currently displayed in the\n editor as blueprint. The view will be an __exact__\n clone of the current one, only with a different\n name.\">>\n</table>\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/deleteNodeDialog": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/deleteNodeDialog", + "subtitle": "{{$:/core/images/delete-button}} You are about to delete <<count>> nodes", + "text": "\\rules except wikilink\n\n''Please choose an option or abort:''\n\n<$radio tiddler=<<output>> field=\"delete-from\" value=\"system\">\n Delete nodes from system <sup>[1]</sup>\n</$radio><br />\n<$radio tiddler=<<output>> field=\"delete-from\" value=\"filter\">\n Delete nodes from graph's filter <sup>[2]</sup>\n</$radio>\n\nThe following nodes will be deleted:\n\n<ul>\n<$list filter=<<tiddlers>>>\n <li><$view tiddler={{!!title}} field=\"title\" /></li>\n</$list>\n</ul>\n\n---\n\n<sup>[1]</sup>\n<small>This will delete all nodes, their corresponding tiddlers and all connected edges.</small><br/>\n<sup>[2]</sup>\n<small>''Important:'' Removing a node from the graph's filter only works, if the node has been added in the map editor per double click or via \"Add Node\". If the node hasn't been added as mentioned above, you need to change the underlying tiddler in a way that it doesn't match your filter anymore, if you don't want it to be displayed in the graph.</small>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/dublicateIdInfo": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/dublicateIdInfo", + "subtitle": "{{$:/core/images/info-button}} Dublicate id detected", + "buttons": "ok_suppress", + "text": "\\rules except wikilink\n\nTiddlyMap requires the value of the id field (\"tmap.id\") to be\nunique in order to correctly identify nodes and tiddlers.\n\nThe id of the \"<<param.changedTiddler>>\" already exists for these tiddlers:\n\n<ul>\n<$list filter=<<param.filter>> variable=\"item\">\n <li><$link><<item>></$link></li>\n</$list>\n</ul>\n\nTherefore TiddlyMap\n\n* assigned a new id to tiddler \"<<param.changedTiddler>>\"\n* removed all edges from \"<<param.changedTiddler>>\"\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/edgeNotVisible": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/edgeNotVisible", + "subtitle": "{{$:/core/images/info-button}} Edge will not be visible in view \"<<view>>\"", + "buttons": "ok_suppress", + "text": "\\rules except wikilink\n\nYou just created an edge of type\n<code><$text text=<<type>> /></code> that will not be\nvisible in this view because it doesn't match your\nedge-type filter settings.\n\nThe current edge-type filter of view \"<<view>>\" looks like this:\n\n<pre><code><$text text=<<eTyFilter>> /></code></pre>\n\nTo have the newly added type displayed in your view, adjust your\nedge-type filter accordingly. \n\nSome suggestions:\n\n<ul>\n <li>\n Explicitly add the type to the filter:\n <code><$text text=\"[[\" /><$text text=<<type>> /><$text text=\"]]\" /></code>\n </li>\n <li>\n <$set\n filter=\"[<type>regexp[:]splitbefore[:]]\"\n name=\"prefix\"\n emptyValue=<<tmap halfOfString \"$(type)$\">>>\n Add a filter rule (e.g. a prefix filter) that will match\n your type: <code>[prefix[<<prefix>>]]</code>\n </$set>\n </li>\n <li>Make your current view-filter less restrictive.</li>\n</ul>\n\nFor further information, please see:\n[[Node and edge-type filters|http://tiddlymap.org#Node%20and%20edge-type%20filters]]." + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/editNode/default": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/editNode/default", + "caption": "Global node style", + "classes": "tmap-remove-top-space", + "text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-info\">\n A node's ''global configuration''\n (also referred to as //global individual config//) defines its\n individual appearance and behaviour in all views.\n</div>\n<<maybeShowTidColorWarning>>\n \n<$macrocall $name=\"sharedSettings\"\n twIconField=<<tidIconField>>\n faIconField=\"global.tmap.fa-icon\"\n labelField=<<tidLabelField>> />\n\n<$macrocall $name=\"visConfiguration\"\n mode=\"manage-node-types\"\n extensionField=\"global.tmap.style\"\n styleName=\"node's global style\"\n inheritedList=\"[[inherited-global-default-style]]\n [[inherited-local-default-style]]\n [[inherited-group-styles]]\" />" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/editNode/local": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/editNode/local", + "caption": "Local node style", + "classes": "tmap-remove-top-space", + "text": "\\rules except wikilink\n \n<div class=\"tmap-flash-message tmap-info\">\n The ''local node configuration'' \n (also referred to as //view-specific node configuration//)\n overrides the //global individual configuration// and only affects\n the node's appearance and behaviour in the current view.\n</div>\n<<maybeShowTidColorWarning>>\n\n<fieldset>\n <legend>Behaviour</legend>\n <table class=\"tmap-config-table\">\n <$macrocall type=\"input-select\"\n $name=\"tmap-row\"\n title=\"Open view\"\n field=\"local.open-view\"\n nochoice=\"Disabled\"\n selectFilter=<<tmap \"option\" \"selector.allViewsByLabel\">>\n descr=\"Clicking on this node will open the specified\n view instead of the tiddler represented by this node.\" />\n </table>\n</fieldset>\n\n<$macrocall $name=\"sharedSettings\"\n twIconField=\"local.tw-icon\"\n faIconField=\"local.fa-icon\"\n labelField=\"local.label\" />\n \n<$macrocall $name=\"visConfiguration\"\n mode=\"manage-node-types\"\n extensionField=\"local-node-style\"\n styleName=\"node's local style\"\n inheritedList=\"[[inherited-global-default-style]]\n [[inherited-local-default-style]]\n [[inherited-group-styles]]\n [[global.tmap.style]]\" />" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/editNode": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/editNode", + "subtitle": "{{$:/core/images/edit-button}} Editing style of node \"<<tiddler>>\"", + "classes": "tmap-remove-top-space", + "text": "\\rules except wikilink\n\n\\define maybeShowTidColorWarning()\n <$list filter=\"[<tidColor>regexp[.+]]\">\n <div class=\"tmap-flash-message tmap-warning\">\n You have set the tiddler's color\n field to \"<<tidColor>>\". This value will be completely ignored\n when you change node's color properties in the vis editor below.\n </div>\n </$list>\n\\end\n\n\\define iconSettings(twIconField, faIconField)\n <fieldset>\n <legend>Icon Settings</legend>\n <table class=\"tmap-config-table\">\n <<tmap-row type:\"input-text\"\n title:\"TW-icon\"\n field:\"$twIconField$\"\n descr:\"A tiddlywiki image reference.\n For example '$:/core/icon' for Movotun Jack.\">>\n <<tmap-row type:\"input-text\"\n title:\"FA-icon\"\n field:\"$faIconField$\"\n descr:\"A Font Awesome icon code.\n For example 'f206' for the bicycle symbol.\">>\n </table>\n </fieldset>\n\\end\n\n\\define sharedSettings(twIconField, faIconField, labelField)\n <fieldset>\n <legend>General Settings</legend>\n <table class=\"tmap-config-table\">\n <<tmap-row type:\"input-text\"\n title:\"Label\"\n field:\"$labelField$\"\n descr:\"Use this value as node label.\">>\n </table>\n </fieldset>\n <!-- display icon fieldset -->\n <<iconSettings \"$twIconField$\" \"$faIconField$\">> \n\\end\n\n<$macrocall\n $name=\"tabs\"\n default=<<concat \"$(template)$/default\">>\n tabsList=\"[all[shadows]prefix<template>] -[<template>]\"\n/>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/draft": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/draft", + "caption": "Draft", + "text": "\\rules except wikilink\n\n<div class=\"tmap-modal-editor\">\n <$importvariables filter=\"[all[tiddlers+shadows]prefix[$:/core/macros/]]\">\n <$set name=\"currentTiddler\" value=<<draftTRef>> >\n <$transclude tiddler=\"$:/core/ui/EditTemplate\" field=\"text\" mode=\"block\" />\n </$set>\n </$importvariables>\n</div>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/original": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/original", + "caption": "Current Version", + "text": "\\rules except wikilink\n\n<div class=\"tmap-modal-editor\">\n <$importvariables filter=\"[all[tiddlers+shadows]prefix[$:/core/macros/]]\">\n <$set name=\"currentTiddler\" value=<<originalTRef>> >\n <$transclude tiddler=\"$:/core/ui/ViewTemplate\" field=\"text\" mode=\"block\" />\n </$set>\n </$importvariables>\n</div>\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor", + "subtitle": "{{$:/core/images/edit-button}} <<originalTRef>>", + "classes": "tmap-modal-fullscreen-editor tmap-remove-top-space", + "text": "\\rules except wikilink\n\n\\define defaultTab() $:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/original\n\n<$macrocall $name=\"tabs\"\n default=<<defaultTab>>\n tabsList=\"[all[shadows]prefix[$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/]]\" />" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/fieldChanged": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/fieldChanged", + "subtitle": "{{$:/core/images/info-button}} The field \"<<name>>\" changed", + "text": "\\rules except wikilink\n\nYou changed the field \"<<name>>\" from \"<<oldValue>>\" to \"<<newValue>>\".\n\nIt is recommended to let TiddlyMap copy all values from the former field \"<<oldValue>>\" to the new field \"<<newValue>>\" so the data stored in \"<<oldValue>>\" is not lost. This operation has to be done now or never.\n\nDo you want to move each tiddler's existing \"<<oldValue>>\" value to \"<<newValue>>\"? Please note that any value currently stored in \"<<newValue>>\" would consequently be overridden and the old field \"<<oldValue>>\" would be eventually removed!" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenNotSupported": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenNotSupported", + "subtitle": "{{$:/core/images/info-button}} Your machine does not support fullscreen", + "buttons": "ok_suppress", + "text": "\\rules except wikilink\n\nPlease have a look [[here|http://caniuse.com/#feat=fullscreen]] to see a list of supported devices/browsers.\n\nSorry for this :(" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/renameView": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/renameView", + "subtitle": "{{$:/core/images/tag-button}} Please specify a view name", + "text": "\\rules except wikilink\n\n''Name:''\n<$edit-text focus=\"true\" tiddler=<<output>> field=\"text\" type=\"text\" tag=\"input\" default=\"\"\n class=\"tmap-trigger-field tmap-triggers-ok-button-on-enter\" />\n\nNote that ''<<count>>'' tiddlers are referencing this view.\n\n<$reveal type=\"nomatch\" text=\"0\" default=<<count>>>\n\nRenaming the view will cause the reference to be invalid.\nIt is recommended to first remove the tiddlymap widgets in\nthe tiddlers listed below or change their view attributes\naccordingly.\n\n''References''\n\n<ul>\n<$list filter=<<refFilter>> variable=\"item\">\n <li><$text text=<<item>> /></li>\n</$list>\n</ul>\n\n</$reveal>\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/saveCanvas": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/saveCanvas", + "subtitle": "{{$:/core/images/options-button}} Save a snapshot image of view \"<<view>>\"", + "text": "\\rules except wikilink\n\n\\define preview()\n<div class=\"tmap-save-canvas-preview\">\n <$transclude tiddler=<<snapshot>> /><br />\n Measures: <<width>> × <<height>>\n</div>\n\\end\n\n<table class=\"tmap-config-table\">\n<!--\n <<tmap-row type:\"input-text\"\n title:\"Name\"\n field:\"name\">\n-->\n<$macrocall $name=\"tmap-row\"\n type=\"input-text\"\n title=\"Name\"\n field=\"name\"\n descr=<<preview>> />\n</table>\n\n<fieldset><legend>Options</legend>\n <table class=\"tmap-config-table\">\n <<tmap-row type:\"input-radio\"\n title:\"Action\"\n field:\"action\" \n selectFilter:\"[[download|Download]]\n [[wiki|Save in wiki]]\n [[placeholder|Use as placeholder for this view]]\"\n descr:\"Save the image by downloading it to your computer or\n save it as a tiddler in your wiki.<br /><br />\n A third option is to make TiddlyMap use this image as\n placeholder for the current view. Placeholders are used\n when tiddlers are exported in form of static html\n or when editing a tiddler while having the preview\n shown. In this case the title input is ignored.\">>\n </table>\n</fieldset>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog", + "text": "\\rules except wikilink\n\n<div class=<<classes>>>\n<$importvariables\n filter=\"[[$:/plugins/felixhayashi/tiddlymap/misc/macros]]\n [[$:/core/macros/tabs]]\">\n<$transclude tiddler=<<template>> mode=\"block\" />\n</$importvariables>\n</div>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/welcome": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/welcome", + "subtitle": "{{$:/core/images/info-button }} Welcome", + "buttons": "ok", + "text": "\\rules except wikilink\n\nIt seems that you freshly installed TiddlyMap.\n\n* In case you need any help, please consult the [[online docs|http://tiddlymap.org#Documentation]] first.\n* You are welcome to create an [[issue|https://github.com/felixhayashi/TW5-TiddlyMap/issues]] at GitHub for any bug you discover.\n* Make sure to revisit the [[demo site|http://tiddlymap.org]] to see whether your version is up-to-date.\n* If you like TiddlyMap, please give it a star at [[GitHub|https://github.com/felixhayashi/TW5-TiddlyMap]] or tell your friends about it :)\n* ''Please note:'' TiddlyMap is distributed under the [[BSD 2-Clause License|http://opensource.org/licenses/BSD-2-Clause]], which belongs to the same license family, as the license used by TiddlyWiki. By using this plugin you agree to the product's [[License Terms|https://github.com/felixhayashi/TW5-TiddlyMap/blob/master/LICENSE]].\n\nEnjoy!\n\n---\n\nTiddlyMap will configure your wiki for optimal use. Everything can be changed back later by you, via the TiddlyWiki configurations panel, so no worries. If you checked some of the options below, please save & restart after closing this dialog.\n\n<table class=\"tmap-config-table\">\n <<tmap-row type:\"input-checkbox\"\n title:\"Optimize storyview\"\n field:\"config.storyview\"\n descr:\"Sets the storyview to 'top' for optimal scrolling.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Optimize sidebar\"\n field:\"config.sidebar\"\n descr:\"Sets sidebar layout to 'fixed-fluid' for larger editor.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Optimize navigation\"\n field:\"config.navigation\"\n descr:\"Sets navigation style to open tiddlers at top for better map navigation.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Create demo welcome map\"\n field:\"config.demo\"\n descr:\"Creates a little hello world welcome map for you.\">>\n</table>\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/widgetCodeGenerator": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/widgetCodeGenerator", + "subtitle": "{{$:/core/images/permalink-button}} Widget Code Generator", + "buttons": "close", + "text": "\\rules except wikilink\n\n<div class=\"tmap-flash-message tmap-info\">\n Use the code below to embed a view in a tiddler.\n</div>\n\n<pre style=\"white-space: normal;\">\n<$tmap\n\n<$list filter=\"[<output>has[var.view]]\">\n view=\"<$view field='var.view' />\"</$list>\n<$list filter=\"[<output>field:var.click-to-use[true]]\">\n click-to-use=\"true\"</$list>\n<$list filter=\"[<output>has[var.editor]]\">\n editor=\"<$view field='var.editor' />\"</$list>\n<$list filter=\"[<output>has[var.width]]\">\n width=\"<$view field='var.width' />\"</$list>\n<$list filter=\"[<output>has[var.height]]\">\n height=\"<$view field='var.height' />\"</$list>\n<$list filter=\"[<output>has[var.class]]\">\n class=\"<$view field='var.class' />\"</$list>\n<$list filter=\"[<output>field:var.show-buttons[false]]\">\n show-buttons=\"false\"</$list>\n<$list filter=\"[<output>has[var.design]]\">\n design=\"<$view field='var.design' />\"</$list>></$tmap>\n</pre>\n\n<fieldset>\n <legend>Parameters</legend> \n <table class=\"tmap-config-table\">\n <$macrocall type=\"input-select\"\n $name=\"tmap-row\"\n title=\"View\"\n field=\"var.view\"\n nochoice=\" \"\n selectFilter=<<tmap \"option\" \"selector.allViewsByLabel\">>\n descr=\"The view to bind the wiedget to\" />\n <<tmap-row type:\"input-select\"\n title:\"Editor bar\"\n field:\"var.editor\"\n selectFilter:\"[[|Hidden]]\n [[vis|Simple]]\n [[advanced|Advanced]]\"\n descr:\"Whether the widget should act as an editor or not.\">>\n <<tmap-row type:\"input-select\"\n title:\"Design\"\n field:\"var.design\"\n selectFilter:\"[[|Normal]]\n [[plain|Plain]]\"\n descr:\"Usually a header is displayed and borders. Plain\n design will only show the mere graph.\">>\n <<tmap-row type:\"input-text\"\n title:\"Height\"\n field:\"var.height\"\n descr:\"Graph's height in css units. Defaults to '300px'.\">>\n <<tmap-row type:\"input-text\"\n title:\"Width\"\n field:\"var.width\"\n descr:\"Graph's width in css units. Defaults to '100%'.\">>\n <<tmap-row type:\"input-text\"\n title:\"Class\"\n field:\"var.class\"\n descr:\"A custom class to apply your own css.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Click to use\"\n field:\"var.click-to-use\"\n default:\"false\"\n descr:\"A click is needed to enable the graph.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Show buttons\"\n field:\"var.show-buttons\"\n default:\"true\"\n descr:\"Show or hide the graph's navigation buttons.\">>\n </table>\n</fieldset>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialogFooter/close": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialogFooter/close", + "text": "\\rules except wikilink\n\n<$button class=\"tmap-dialog-button tmap-close-button\" tooltip=\"Close this dialog\">Close\n\n <!-- trigger dialog callback -->\n <$action-setfield $tiddler=<<result>> text=\"1\" />\n \n</$button>\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialogFooter/ok": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialogFooter/ok", + "text": "\\rules except wikilink\n\n<$button class=\"tmap-dialog-button tmap-ok-button\" tooltip=\"Confirm dialog\">OK\n\n <!-- trigger dialog callback -->\n <$action-setfield $tiddler=<<result>> text=\"1\" />\n \n</$button>\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialogFooter/ok_cancel": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialogFooter/ok_cancel", + "text": "\\rules except wikilink\n\n<$transclude tiddler=\"$:/plugins/felixhayashi/tiddlymap/dialogFooter/ok\" mode=\"inline\" />\n<$button class=\"tmap-dialog-button tmap-cancel-button\" tooltip=\"Close dialog without saving\">Cancel\n <!-- trigger dialog callback -->\n <$action-setfield $tiddler=<<result>> text=\"\" />\n</$button>\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialogFooter/ok_suppress": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialogFooter/ok_suppress", + "text": "\\rules except wikilink\n\n<$set name=\"currentTiddler\" value=<<title>> >\n\n<$checkbox field=\"suppress\" checked=\"1\" unchecked=\"0\" default=\"0\"> Do not show this dialog again</$checkbox>\n<$button class=\"tmap-dialog-button tmap-ok-button\" tooltip=\"Confirm this dialog\">OK\n\n <!-- trigger dialog callback -->\n <$action-setfield $tiddler=<<result>> text=\"1\" />\n \n <!-- suppress dialog in the future -->\n <$action-sendmessage $message=\"tmap:tm-suppress-dialog\"\n dialog=<<templateId>>\n suppress={{!!suppress}} />\n \n</$button>\n\n</$set>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialogFooter": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialogFooter", + "text": "\\rules except wikilink\n\n\\define footer() $:/plugins/felixhayashi/tiddlymap/dialogFooter/$(buttons)$\n\n<$transclude tiddler=<<footer>> />\n\n<!-- we need this button to be able to close a tiddler from outside programmatically -->\n<$button class=\"tmap-hidden-close-button\" message=\"tm-close-tiddler\" />" + }, + "$:/plugins/felixhayashi/tiddlymap/dialogFooter/element_type_manager": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialogFooter/element_type_manager", + "text": "\\rules except wikilink\n\n<$button\n class=\"tmap-dialog-button tmap-save-button\"\n tooltip=\"Save the current changes\">Save\n <$action-sendmessage\n $message=\"tmap:tm-save-type-form\"\n mode=<<mode>>\n output=<<output>> />\n</$button>\n<$button\n class=\"tmap-dialog-button tmap-cancel-button\"\n tooltip=\"Cancel the most resent changes and exit\">Quit\n <$action-setfield $tiddler=<<result>> text=\"1\" />\n</$button>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/deleteType": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/deleteType", + "caption": "Removal", + "text": "\\rules except wikilink\n\n\\define manage-edge-types()\n <$macrocall $name=\"tmap-row\"\n type=\"input-checkbox\"\n title=\"Delete type\"\n field=\"temp.deleteType\"\n default={{!id}}\n readonly={{!!temp.idImmutable}}\n descr=\"If you want to delete this type, set this to true\n and click the save button afterwards. Predefined system\n types cannot be deleted.\" note=\"Consequently, all edges\n of this type will be deleted.\" />\n\\end\n\n\\define manage-node-types()\n <$macrocall $name=\"tmap-row\"\n type=\"input-checkbox\"\n title=\"Delete type\"\n field=\"temp.deleteType\"\n default={{!id}}\n readonly={{!!temp.idImmutable}}\n descr=\"If you want to delete this type, set this to true and\n click the save button afterwards. Predefined system\n types cannot be deleted.\" />\n\\end\n\n<table class=\"tmap-config-table\"><$macrocall $name=<<mode>> /></table>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/description": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/description", + "caption": "Description", + "text": "\\rules except wikilink\n\n\\define manage-edge-types()\n <<tmap-row type:\"input-textarea\"\n title:\"Description\"\n field:\"description\"\n descr:\"An optional description for this type. The\n description will be displayed as tooltip when\n moving the mouse over an edge of this type.\">>\n\\end\n\n\\define manage-node-types()\n <<tmap-row type:\"input-textarea\"\n title:\"Description\"\n field:\"description\" \n descr:\"An optional description for this type.\">>\n\\end\n\n<table class=\"tmap-config-table\">\n <$macrocall $name=<<mode>> />\n</table>\n\n" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/generalSettings": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/generalSettings", + "caption": "General", + "text": "\\rules except wikilink\n\n\\define manage-edge-types()\n <<tmap-row type:\"input-text\"\n title:\"Label\"\n field:\"label\" \n descr:\"An optional alias used as edge-label.\">>\n <<tmap-row type:\"input-checkbox\"\n title:\"Show label\"\n field:\"show-label\"\n default:\"true\"\n descr:\"If unchecked, no edge label will be displayed.\">>\n\\end\n\\define manage-node-types()\n <$list filter=\"[<currentTiddler>!regexp:id[tmap:]]\">\n <<tmap-row type:\"input-textarea\"\n title:\"Scope\"\n field:\"scope\" \n descr:\"A filter expression that defines, which nodes inherit\n this node-type and its style.\">>\n </$list>\n <$macrocall type=\"input-select\"\n $name=\"tmap-row\" \n title=\"Priority\"\n field=\"priority\"\n selectFilter=<<tmap \"scale\" \"100\">>\n descr=\"When a type has a a higher priority than another type,\n its style will override the other style\" />\n\\end\n\n<table class=\"tmap-config-table\">\n <$macrocall\n $name=\"tmap-row\"\n title=\"Identifier\"\n field=\"temp.newId\"\n type=\"input-text\"\n default={{!!id}}\n readonly={{!!temp.idImmutable}}\n descr=\"A unique identifier\"\n />\n <$macrocall $name=<<mode>> />\n</table>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/overview": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/overview", + "caption": "Overview", + "text": "\\rules except wikilink\n\n\\define date(f) <$view field=$f$ format=\"date\" template=\"DDth mmm hh:mm:ss\"/>\n\n! <$link to={{!!typeTRef}}><$view field=\"id\" /></$link>\n\n<table class=\"tmap-key-value-table\">\n <tr>\n <th align=\"left\">Created on</th>\n <td>\n <<date \"created\">>\n </td>\n </tr>\n <tr>\n <th align=\"left\">Modified on</th>\n <td><<date \"modified\">></td>\n </tr>\n <tr>\n <th align=\"left\">Usage count</th>\n <td>\n <span class=\"tmap-edge-type-specific\">\n <$view field=\"temp.usageCount\" />\n </span>\n <span class=\"tmap-node-type-specific\">\n <$count filter={{!!scope}}>0</$count>\n </span>\n </td>\n </tr>\n</table>\n\n<$view field=\"description\">//No description available//</$view>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/styling": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/styling", + "caption": "Styling", + "text": "\\rules except wikilink\n\n\\define url()\n <$set\n filter=\"[<mode>prefix[manage-edge-types]]\"\n name=\"module\"\n value=\"edges\"\n emptyValue=\"nodes\">\n [[visjs.org|http://visjs.org/docs/network/$(module)$]]\n </$set>\n\\end\n\n<fieldset class=\"tmap-node-type-specific\">\n <legend>Icon Settings</legend>\n <table class=\"tmap-config-table\">\n <<tmap-row type:\"input-text\"\n title:\"TW-icon\"\n field:\"tw-icon\"\n descr:\"A tiddlywiki image reference.\n For example '$:/core/icon' for Movotun Jack.\">>\n <<tmap-row type:\"input-text\"\n title:\"FA-icon\"\n field:\"fa-icon\"\n descr:\"A Font Awesome icon code.\n For example 'f206' for the bicycle symbol.\">>\n </table>\n</fieldset>\n\n<fieldset><legend>Visjs styles</legend>\n <div class=\"tmap-flash-message tmap-info\">\n All visjs options below are documented at <<url>>.\n </div>\n <div class=\"tmap-flash-message tmap-info\">\n Only config items that you actually changed have an effect on\n the graph. Other options are visible, yet, inactive.\n </div>\n <$tmap-config\n mode=<<mode>>\n inherited=\"vis-inherited\"\n extension=\"style\" />\n</fieldset>" + }, + "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager": { + "title": "$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager", + "subtitle": "{{$:/core/images/tag-button}} <<topic>>", + "buttons": "element_type_manager", + "classes": "tmap-remove-top-space", + "text": "\\rules except wikilink\n\n\\define defaultTab()\n$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/overview\n\\end\n\n\\define settingsTab()\n$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/generalSettings\n\\end\n\n\\define tabsFilter()\n[all[shadows]prefix[$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/]]\n\\end\n\n\\define searchFilter()\n$(searchSelector)$\n+[sort[title]nsort[priority]]\n+[removeprefix<typeRootPath>removeprefix[/]]\n+[search:title{$:/temp/tmap/MapElementTypeSearch}]\n\\end\n\n\\define managerClass() tmap-$(mode)$\n\n\\define typePath() $(typeRootPath)$/$(id)$\n\n<div id=\"tmap-element-type-manager\" class=<<managerClass>>>\n <div>\n <div class=\"tmap-searchbar\">\n <$edit-text\n focus=\"true\"\n tiddler=\"$:/temp/tmap/MapElementTypeSearch\"\n type=\"text\"\n tag=\"input\"\n default=\"\" />\n <$list filter=\"[{$:/temp/tmap/MapElementTypeSearch}regexp[.+]]\n +[addprefix[/]]\n +[addprefix<typeRootPath>]\n +[!is[tiddler]!is[shadow]]\">\n <$button tooltip=\"Create a new type of this name\">\n {{$:/core/images/new-button}}\n <$action-sendmessage\n $message=\"tmap:tm-create-type\"\n mode=<<mode>>\n id={{$:/temp/tmap/MapElementTypeSearch}}\n output=<<output>> />\n <$action-setfield $tiddler=\"$:/temp/tmap/MapElementTypeSearch\" text=\"\" />\n </$button>\n </$list>\n\n </div>\n <ul>\n <$list\n filter=<<searchFilter>>\n emptyMessage=<<noTypeFound>>\n variable=\"id\">\n <li>\n <span class=\"tmap-ranking tmap-node-type-specific\">\n # <$view tiddler=<<typePath>> field=\"priority\">1</$view>\n </span>\n <$button class=\"tc-btn-invisible tmap-link\"><<id>>\n <$action-setfield\n $tiddler=<<qualify \"$:/state/tabs/MapElementTypeManager\">>\n text=<<defaultTab>> />\n <$action-sendmessage\n $message=\"tmap:tm-load-type-form\"\n id=<<id>>\n mode=<<mode>>\n output=<<output>> />\n </$button>\n </li>\n </$list>\n </ul>\n </div>\n <div>\n <$reveal type=\"nomatch\" text=\"\" default={{!!id}} >\n <$macrocall\n $name=\"tabs\"\n default=<<defaultTab>>\n state=\"$:/state/tabs/MapElementTypeManager\"\n tabsList=<<tabsFilter>> />\n </$reveal>\n <$reveal type=\"match\" text=\"\" default={{!!id}} >\n <div class=\"tmap-flash-message tmap-info\">\n Please select a type from the list or create a new one by\n entering the type name in the search field on the left.\n </div>\n <div class=\"tmap-flash-message tmap-info tmap-node-type-specific\">\n The number next to the node-type label represents it's priority.\n </div>\n </$reveal>\n </div>\n</div>\n" + }, + "$:/plugins/felixhayashi/tiddlymap/editor/contextMenu/node": { + "title": "$:/plugins/felixhayashi/tiddlymap/editor/contextMenu/node", + "text": "\\define single()\n <$list filter=\"\n [[tmap:tm-toggle-central-topic, $:/core/images/star-filled, Toggle central topic]]\n [[tmap:tm-delete-element, $:/core/images/delete-button, Delete node]]\">\n <$button class=\"tc-btn-invisible\">\n <$action-sendmessage $message=<<tmap \"splitAndSelect\" \", \" \"0\">> />\n <$transclude tiddler=<<tmap \"splitAndSelect\" \", \" \"1\">> />\n <<tmap \"splitAndSelect\" \", \" \"2\">>\n </$button>\n </$list>\n\\end\n\n\\define multi()\n <$list filter=\"\n [[tmap:tm-delete-element, $:/core/images/delete-button, Delete selected nodes]]\">\n <$button class=\"tc-btn-invisible\">\n <$action-sendmessage $message=<<tmap \"splitAndSelect\" \", \" \"0\">> />\n <$transclude tiddler=<<tmap \"splitAndSelect\" \", \" \"1\">> />\n <<tmap \"splitAndSelect\" \", \" \"2\">>\n </$button>\n </$list>\n\\end\n\n<div class=\"tc-drop-down\">\n <$macrocall $name=<<mode>> />\n</div>" + }, + "$:/plugins/felixhayashi/tiddlymap/misc/advancedEditorBar": { + "title": "$:/plugins/felixhayashi/tiddlymap/misc/advancedEditorBar", + "text": "\\rules except wikilink\n\\define showEdgeField() show-$(curEdgeId)$\n\n<!-- === View Switcher ========================================== -->\n\n<div class=\"tmap-menu-bar\">\n View:\n <$reveal type=\"match\" text=\"false\" default=<<isViewBound>> >\n <$select\n tiddler=<<viewHolder>>\n field=\"text\"\n default=<<viewLabel>> >\n <$list filter=<<tmap \"option\" \"selector.allViewsByLabel\">> >\n <option value={{!!title}}>\n <$view tiddler={{!!title}} field=\"title\" />\n </option>\n </$list>\n </$select>\n </$reveal>\n <$reveal type=\"match\" text=\"true\" default=<<isViewBound>> >\n <b><<viewLabel>></b>\n </$reveal>\n\n<!-- === Menu =================================================== -->\n\n <$button\n popup=<<qualify \"$:/temp/menu\">>\n tooltip=\"Open the Menu\">{{$:/core/images/menu-button}}\n </$button>\n\n <$reveal type=\"popup\" position=\"below\" state=<<qualify \"$:/temp/menu\">> >\n <div class=\"tc-drop-down\">\n <a href=\"http://tiddlymap.org#Documentation\" target=\"_blank\">\n {{$:/core/images/info-button}} Open online help\n </a>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-create-view\">\n {{$:/core/images/new-button}} Create new view\n </$button>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-generate-widget\">\n {{$:/core/images/permalink-button}} Grab widget code\n </$button>\n <div class=\"tmap-list-separator\">Global configurations:</div>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-configure-system\">\n {{$:/core/images/options-button}} Configure TiddlyMap\n </$button>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-manage-edge-types\">\n <span class=\"tmap-unicode-icon\">◭</span> Manage edge-types\n </$button>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-manage-node-types\">\n <span class=\"tmap-unicode-icon\">▢</span> Manage node-types\n </$button>\n <div class=\"tmap-view-actions\">\n <div class=\"tmap-list-separator\">Actions for this view:</div>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-edit-view\">\n {{$:/core/images/options-button}} Configure view\n </$button>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-rename-view\">\n {{$:/core/images/tag-button}} Rename view\n </$button>\n <$button class=\"tc-btn-invisible\" message=\"tmap:tm-delete-view\">\n {{$:/core/images/delete-button}} Delete view\n </$button>\n </div>\n </div>\n </$reveal>\n\n<!-- === Neighbourhood menu ===================================== -->\n\n <$reveal\n type=\"match\"\n text=\"true\"\n default=<<tmap \"option\"\n \"config.sys.editorMenuBar.showNeighScopeButton\">>>\n <$button\n class=<<neighScopeBtnClass>>\n tooltip=\"Change the neighbourhood scope\"\n popup=<<qualify \"$:/temp/neighScope\">>>\n ☀\n </$button>\n </$reveal>\n\n <$reveal type=\"popup\" position=\"below\" state=<<qualify \"$:/temp/neighScope\">> >\n <div class=\"tc-drop-down\">\n <div class=\"tmap-list-separator\">Neighbourhood scope</div>\n <$button class=\"tc-btn-invisible\">None\n <$action-setfield\n $tiddler=<<viewRoot>>\n config.neighbourhood_scope=\"\" />\n </$button>\n <$list filter=\"[[1|1 step distance]]\n [[2|2 step distance]]\n [[3|3 step distance]]\n [[4|4 step distance]]\n [[5|5 step distance]]\">\n <$button class=\"tc-btn-invisible\">\n <<tmap \"splitAndSelect\" \"|\" \"1\">>\n <$action-setfield\n $tiddler=<<viewRoot>>\n config.neighbourhood_scope=<<tmap \"splitAndSelect\" \"|\" \"0\">> />\n </$button>\n </$list>\n <$button class=\"tc-btn-invisible\">No limit\n <$action-setfield\n $tiddler=<<viewRoot>>\n config.neighbourhood_scope=\"100\" />\n </$button>\n <div class=\"tmap-list-separator\">Neighbourhood traversal</div>\n <$radio field=\"config.neighbourhood_directions\" value=\"in\"> Incoming</$radio><br />\n <$radio field=\"config.neighbourhood_directions\" value=\"out\"> Outgoing</$radio><br />\n <$radio field=\"config.neighbourhood_directions\" value=\"\"> Both</$radio>\n <div class=\"tmap-list-separator\">Other</div>\n <$checkbox field=\"config.show_inter_neighbour_edges\"\n checked=\"true\" unchecked=\"false\"> Inter-neighbour edges</$checkbox>\n\n </div>\n </$reveal>\n\n<!-- === Export menu ============================================ -->\n\n <$reveal\n type=\"match\"\n text=\"true\"\n default=<<tmap \"option\" \"config.sys.editorMenuBar.showScreenshotButton\">>>\n <$button tooltip=\"Open the map-export menu\" popup=<<qualify \"$:/temp/mapExport\">>>\n {{$:/core/images/download-button}}\n </$button>\n </$reveal>\n\n <$reveal type=\"popup\" position=\"below\" state=<<qualify \"$:/temp/mapExport\">>>\n <div class=\"tc-drop-down\">\n <$button\n class=\"tc-btn-invisible\"\n tooltip=\"Export the graph and all its elements\n in form of a JSON file\">\n {{$:/core/images/permalink-button}} Save as JSON file\n <$action-sendmessage\n $message=\"tmap:tm-download-graph\"\n view=<<viewLabel>> />\n </$button>\n <$button\n class=\"tc-btn-invisible\"\n tooltip=\"Create a png image to download or save it\n as image or view-placeholder in your wiki\">\n {{$:/core/images/palette}} Save as png image\n <$action-sendmessage $message=\"tmap:tm-save-canvas\" />\n </$button>\n </div>\n </$reveal>\n\n<!-- === Raster menu ============================================ -->\n\n <$reveal\n type=\"match\"\n text=\"true\"\n default=<<tmap \"option\" \"config.sys.editorMenuBar.showRasterMenuButton\">>>\n <$button\n tooltip=\"Change the raster of your map\"\n class=<<rasterMenuBtnClass>>\n popup=<<qualify \"$:/temp/rasterMenu\">>>\n ⩩\n </$button>\n </$reveal>\n\n <$reveal type=\"popup\" position=\"below\" state=<<qualify \"$:/temp/rasterMenu\">>>\n <div class=\"tc-drop-down\">\n <$button class=\"tc-btn-invisible\">Disable raster\n <$action-setfield\n $tiddler=<<viewRoot>>\n config.raster=\"\" />\n </$button>\n <div class=\"tmap-list-separator\">Raster sizes</div>\n <$list filter=\"[[50|50px]]\n [[75|75px]]\n [[100|100px]]\n [[150|150px]]\">\n <$button class=\"tc-btn-invisible\">\n <<tmap \"splitAndSelect\" \"|\" \"1\">>\n <$action-setfield\n $tiddler=<<viewRoot>>\n config.raster=<<tmap \"splitAndSelect\" \"|\" \"0\">> />\n </$button>\n </$list>\n </div>\n </$reveal>\n\n</div>\n" + }, + "$:/plugins/felixhayashi/tiddlymap/misc/focusButton": { + "title": "$:/plugins/felixhayashi/tiddlymap/misc/focusButton", + "text": "\\define filter() [list[$:/temp/tmap/nodes/$(viewLabel)$]search:title{$:/temp/tmap/bar/search}]\n\\define concat(str) $str$\n\n\\define state() $(widgetPopupsPath)$/focus\n\n<div class=\"tmap-focus-button\">\n <$reveal type=\"match\" state=<<state>> text=\"\">\n <$button\n tooltip=\"Zoom on a specific node\"\n class=<<tv-config-toolbar-class>>>{{$:/core/images/advanced-search-button}}\n <$action-setfield $tiddler=\"$:/temp/tmap/bar/search\" text=\"\" />\n <$action-setfield $tiddler=<<state>> text=\"1\" />\n </$button>\n </$reveal>\n <$reveal type=\"nomatch\" state=<<state>> text=\"\">\n <$button\n tooltip=\"Close zoom popup\"\n class=<<tv-config-toolbar-class>>>{{$:/core/images/advanced-search-button}}\n <$action-setfield $tiddler=<<state>> text=\"\" />\n </$button>\n <div class=\"tmap-search-dropdown\">\n <div class=\"tc-drop-down\">\n <$edit-text\n focus=\"true\"\n tiddler=\"$:/temp/tmap/bar/search\"\n field=\"text\"\n type=\"text\"\n tag=\"input\"\n default=\"\" />\n <small><$count filter=<<filter>> /> results</small>\n <hr />\n <div class=\"tmap-very-small-list\">\n <$list filter=<<filter>>\n variable=\"item\"\n emptyMessage=\"//No results//\">\n <$button\n class=\"tc-btn-invisible\"\n message=\"tmap:tm-focus-node\"\n param=<<item>>>\n <$view tiddler=<<item>> field=\"title\" />\n </$button>\n </$list>\n </div>\n </div>\n </div>\n </$reveal>\n</div>" + }, + "$:/plugins/felixhayashi/tiddlymap/hook/editor": { + "title": "$:/plugins/felixhayashi/tiddlymap/hook/editor", + "caption": "Map", + "tags": "$:/tags/SideBar", + "text": "\\define width() calc(100% - 15px)\n\n<div class=\"tmap-mobile-editor\">\n <div class=\"tmap-flash-message tmap-warning\">\n The editor is not displayed in mobile mode.\n </div>\n</div>\n<div class=\"tmap-desktop-editor\">\n <$tiddlymap\n class=\"tmap-sidebar-map-editor\"\n editor=\"advanced\"\n object-id=\"main_editor\"\n click-to-use=\"false\">\n </$tiddlymap>\n</div>" + }, + "$:/plugins/felixhayashi/tiddlymap/hook/liveTab": { + "title": "$:/plugins/felixhayashi/tiddlymap/hook/liveTab", + "caption": "Live", + "text": "\\define width() calc(100% - 15px)\n\n<div class=\"tmap-mobile-editor\">\n <div class=\"tmap-flash-message tmap-warning\">\n The live tab is not displayed in mobile mode.\n </div>\n</div>\n<div class=\"tmap-desktop-editor\">\n <$set name=\"view\"\n filter=\"[{$:/temp/tmap/currentTiddler}get[tmap.open-view]]\"\n emptyValue=<<tmap \"option\" \"config.sys.liveTab.fallbackView\">>>\n <div>\n <$tiddlymap\n view=<<view>>\n click-to-use=\"false\"\n refresh-triggers=\"$:/temp/tmap/currentTiddler\"\n object-id=\"live_tab\">\n </$tiddlymap>\n </div>\n </$set> \n</div>" + }, + "$:/plugins/felixhayashi/tiddlymap/misc/quickConnectButton": { + "title": "$:/plugins/felixhayashi/tiddlymap/misc/quickConnectButton", + "tags": "$:/tags/ViewToolbar", + "description": "{{$:/language/Buttons/TiddlyMap/Hint}}", + "caption": "{{$:/plugins/felixhayashi/tiddlymap/icon}} {{$:/language/Buttons/TiddlyMap/Caption}}", + "text": "\\define buttonClass() $(tv-config-toolbar-class)$ $(additional-classes)$\n\n\\define nonExistentItem()\n<<item>> <span style=\"color: #9E9E9E\">(will be created)</span>\n\\end\n\n\\define noConnectionsMsg()\n<tr><td colspan=\"4\">//No connections found!//</td></tr>\n\\end\n\n\\define normalSearchFilter()\n[!is[system]!has[draft.of]search:title{$:/temp/quickConnectSearch}sortcs[title]limit[50]]\n\\end\n\n\\define regexSearchFilter()\n[!is[system]!has[draft.of]regexp{$:/temp/quickConnectSearch}sortcs[title]limit[50]]\n\\end\n\n\\define showButton(state)\n<$button set=\"$:/temp/tmap/state/popup/quickConnect\"\n setTo=\"$state$\" tooltip={{$:/language/Buttons/TiddlyMap/Hint}} \n aria-label={{$:/language/Buttons/TiddlyMap/Caption}}\n class=<<buttonClass>>>\n<$list filter=\"[<tv-config-toolbar-icons>prefix[yes]]\">{{$:/plugins/felixhayashi/tiddlymap/icon}}</$list>\n<$list filter=\"[<tv-config-toolbar-text>prefix[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/TiddlyMap/Caption}}/></span>\n</$list>\n</$button>\n\\end\n\n\\define searchResults()\n<td>\n <$button tooltip=\"Create incoming edge\">\n <<tmap \"option\" \"misc.arrows.in\">>\n <$action-sendmessage $message=\"tmap:tm-create-edge\"\n from=<<item>>\n to=<<currentTiddler>>\n force=\"true\"\n label={{$:/temp/quickConnectSearch/type}}\n view={{$:/temp/quickConnectSearch/view}} />\n </$button>\n</td>\n<td>\n <$button tooltip=\"Create outgoing edge\">\n <<tmap \"option\" \"misc.arrows.out\">>\n <$action-sendmessage $message=\"tmap:tm-create-edge\"\n from=<<currentTiddler>>\n to=<<item>>\n force=\"true\"\n label={{$:/temp/quickConnectSearch/type}}\n view={{$:/temp/quickConnectSearch/view}} />\n </$button>\n</td>\n<td>\n <$list\n filter=\"[<item>is[tiddler]]\"\n emptyMessage=<<nonExistentItem>>>\n <$view tiddler=<<item>> field=\"title\" />\n </$list>\n</td>\n\\end\n\n\\define hidePopup()\n<$macrocall $name=\"showButton\" state=<<qualify>> />\n\\end\n\n\\define showPopup()\n<$set name=\"additional-classes\" value=\"tmap-active-button\">\n <$macrocall $name=\"showButton\" state=\"\" />\n</$set>\n<$set\n name=\"searchFilter\"\n filter=\"[field:title[$:/state/tmap/tid-toolbar]has[re-filter]]\"\n value=<<regexSearchFilter>>\n emptyValue=<<normalSearchFilter>>>\n<div class=\"tmap-quick-connect tc-reveal tc-popup\">\n <div class=\"tc-drop-down\">\n <div class=\"title\">Create connection</div>\n <table class=\"tmap-quick-connect-search-bar\">\n <tr>\n <td>Type:</td>\n <td>\n <$edit-text\n tiddler=\"$:/temp/quickConnectSearch/type\"\n field=\"text\"\n type=\"text\"\n tag=\"input\"\n default=\"\" />\n <$select tiddler=\"$:/temp/quickConnectSearch/type\" default=\"\">\n <option></option>\n <$list filter=<<tmap \"option\" \"selector.allEdgeTypesById\">>>\n <option>{{!!title}}</option>\n </$list>\n </$select>\n </td>\n </tr>\n <tr>\n <td>Search:</td>\n <td>\n <$edit-text tiddler=\"$:/temp/quickConnectSearch\" type=\"text\" tag=\"input\" default=\"\"></$edit-text>\n <$checkbox\n tiddler=\"$:/state/tmap/tid-toolbar\"\n field=\"re-filter\"\n checked=\"1\"\n unchecked=\"\"\n default=\"\"> regexp\n </$checkbox>\n<!--\n <small>(<$count filter=<<searchFilter>> /> results)</small>\n-->\n </td>\n </tr>\n </table>\n <table class=\"tmap-create-connection-table\">\n <tr>\n <td colspan=\"2\">\n <table class=\"tmap-very-small-list\">\n <$list\n filter=<<searchFilter>>\n variable=\"item\">\n <tr><<searchResults>></tr>\n </$list>\n <tr>\n <$list filter=\"[{$:/temp/quickConnectSearch}regexp[.+]] -[is[tiddler]]\" variable=\"item\">\n <<searchResults>>\n </$list>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n <div class=\"title\">Existing Connections</div>\n <div class=\"tmap-quick-connect-existing-bar\">\n <$select\n tiddler=\"$:/state/tmap/tid-toolbar\"\n field=\"direction\"\n default=\"both\">\n <option value=\"both\">both</option>\n <option value=\"in\">incoming</option>\n <option value=\"out\">outgoing</option>\n </$select>\n <$checkbox\n tiddler=\"$:/state/tmap/tid-toolbar\"\n field=\"filter.links\"\n checked=\"-[[tw-body:link]]\"\n unchecked=\"\"\n default=\"\"> hide links\n </$checkbox>\n </div>\n <table class=\"tmap-connection-table\">\n<!--\n <tr>\n <th></th>\n <th>Tiddler</th>\n <th>Type</th>\n <th></th>\n </tr>\n-->\n \n <$tmap-connections\n filter=<<tmap mergeFields \"$:/state/tmap/tid-toolbar\" \"filter.\">>\n direction={{$:/state/tmap/tid-toolbar!!direction}}\n emptyMessage=<<noConnectionsMsg>>>\n <tr>\n <td title=<<direction>>><<directionSymbol>></td>\n <td><$link to=<<neighbour>>><$view field=\"title\" /></$link></td>\n <td><<edge.type>></td>\n <td>\n <$button\n tooltip=\"Delete this connection\"\n class=\"tc-btn-invisible\">{{$:/core/images/close-button}}\n <$action-sendmessage $message=\"tmap:tm-remove-edge\"\n id=<<edge.id>>\n from=<<edge.from>>\n to=<<edge.to>>\n type=<<edge.type>> />\n </$button>\n </td>\n </tr>\n </$tmap-connections>\n </table> \n </div>\n</div>\n</$set>\n\\end\n\n<$list filter=\"[all[current]is[tiddler]]\"><$list filter=\"[{$:/temp/tmap/state/popup/quickConnect}prefix<qualify>]\" variable=\"item\" emptyMessage=<<hidePopup>>><<showPopup>></$list></$list>" + }, + "$:/plugins/felixhayashi/tiddlymap/media/fullscreen.png": { + "title": "$:/plugins/felixhayashi/tiddlymap/media/fullscreen.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4v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yBbDbbTPITkjtFRBOR54ZPclJEbgL4weFw/LYcMK9/AFcdm7xTEIntAAAAAElFTkSuQmCC" + }, + "$:/plugins/felixhayashi/tiddlymap/media/halfscreen.png": { + "title": "$:/plugins/felixhayashi/tiddlymap/media/halfscreen.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKay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plugins/felixhayashi/tiddlymap/icon": { + "title": "$:/plugins/felixhayashi/tiddlymap/icon", + "tags": "$:/tags/Image", + "text": "<svg\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:cc=\"http://creativecommons.org/ns#\"\n xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n xmlns:svg=\"http://www.w3.org/2000/svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n class=\"tc-image-tiddlymap-button tc-image-button\"\n version=\"1.1\"\n width=\"22pt\"\n height=\"22pt\"\n viewBox=\"0 0 128 128\">\n <defs\n id=\"defs4\">\n <marker\n refX=\"0\"\n refY=\"0\"\n orient=\"auto\"\n id=\"Arrow1Lend\"\n style=\"overflow:visible\">\n <path\n d=\"M 0,0 5,-5 -12.5,0 5,5 0,0 z\"\n transform=\"matrix(-0.8,0,0,-0.8,-10,0)\"\n id=\"path3850\"\n style=\"fill-rule:evenodd;stroke:#000000;stroke-width:1pt\" />\n </marker>\n <marker\n refX=\"0\"\n refY=\"0\"\n orient=\"auto\"\n id=\"Arrow1Lstart\"\n style=\"overflow:visible\">\n <path\n d=\"M 0,0 5,-5 -12.5,0 5,5 0,0 z\"\n transform=\"matrix(0.8,0,0,0.8,10,0)\"\n id=\"path3847\"\n style=\"fill-rule:evenodd;stroke:#000000;stroke-width:1pt\" />\n </marker>\n <inkscape:path-effect\n effect=\"skeletal\"\n id=\"path-effect4329\" />\n <inkscape:path-effect\n effect=\"skeletal\"\n id=\"path-effect4321\" />\n <inkscape:path-effect\n effect=\"skeletal\"\n id=\"path-effect4315\" />\n <inkscape:path-effect\n effect=\"skeletal\"\n id=\"path-effect4307\" />\n <inkscape:path-effect\n effect=\"skeletal\"\n id=\"path-effect4299\" />\n <inkscape:path-effect\n effect=\"skeletal\"\n id=\"path-effect4293\" />\n </defs>\n <g\n transform=\"translate(0,-1024.5289)\"\n id=\"layer1\">\n <path\n d=\"m 17.867073,4.5821643 a 3.7249374,3.7249374 0 1 1 -7.449875,0 3.7249374,3.7249374 0 1 1 7.449875,0 z\"\n transform=\"matrix(-6.3328802,0,0,6.2775831,193.9581,1100.3667)\"\n id=\"path4139-1-14\"\n style=\"fill-opacity:1;fill-rule:nonzero\" />\n <path\n d=\"M 77.450496,1064.5069 C 58.849552,1025.9634 15.704158,1023.3858 2.8821873e-7,1034.558 L 0.02388589,1035.2674 C 24.502636,1022.2072 44.810725,1042.1507 60.163934,1074.112 z\"\n id=\"path4337\"\n style=\"fill-opacity:1;stroke-width:0.58181816;stroke-miterlimit:4;stroke-dasharray:none;marker-start:none;marker-end:none\" />\n <path\n d=\"m 12.878637,11.280739 4.75937,-2.7478243 4.759371,-2.7478236 0,5.4956479 0,5.495648 -4.759371,-2.747824 z\"\n transform=\"matrix(4.6545455,0,0,4.6545455,-13.580429,1027.7638)\"\n id=\"path3004\"\n style=\"fill-opacity:1;fill-rule:nonzero\" />\n </g>\n <metadata\n id=\"metadata3772\">\n <rdf:RDF>\n <cc:Work\n rdf:about=\"\">\n <dc:title></dc:title>\n <dc:format>image/svg+xml</dc:format>\n <dc:type\n rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" />\n </cc:Work>\n </rdf:RDF>\n </metadata>\n</svg>\n" + }, + "$:/plugins/felixhayashi/tiddlymap/media/surface.png": { + "title": "$:/plugins/felixhayashi/tiddlymap/media/surface.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/q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/Buttons/TiddlyMap/Caption", + "text": "tiddlymap" + }, + "$:/language/Buttons/TiddlyMap/Hint": { + "title": "$:/language/Buttons/TiddlyMap/Hint", + "text": "Toggle TiddlyMap actions" + }, + "$:/plugins/felixhayashi/tiddlymap/misc/macros": { + "title": "$:/plugins/felixhayashi/tiddlymap/misc/macros", + "text": "\\define concat(str) $str$\n\n\\define input-text(field, index, default, readonly, class, focus)\n <$reveal type=\"match\" text=\"\" default=\"$readonly$\">\n <$edit-text\n tiddler=<<output>>\n field=\"$field$\"\n index=\"$index$\"\n type=\"text\"\n tag=\"input\"\n default=\"$default$\"\n focus=\"$focus$\"\n class=\"$class$\" />\n </$reveal>\n <$reveal type=\"nomatch\" text=\"\" default=\"$readonly$\">\n <input type=\"text\" value=\"$default$\" readonly=\"true\" disabled=\"true\" />\n </$reveal>\n\\end\n\n\\define input-button(field, index, default, default, label:\"Proceed\")\n <div class=\"tmap-button-wrapper\">\n <$button>$label$\n <$action-setfield $tiddler=<<output>> $field=\"$field$\" index=\"$index$\" $value=\"$default$\" />\n </$button>\n </div>\n\\end\n\n\\define input-textarea(field, index, default, default, class, focus)\n <$edit-text\n tiddler=<<output>>\n field=\"$field$\"\n index=\"$index$\"\n autoHeight=\"no\"\n type=\"text\"\n tag=\"textarea\"\n default=\"$default$\"\n class=\"$class$\"\n focus=\"$focus$\" />\n\\end\n\n\\define input-checkbox(field, index, readonly, default)\n <$reveal type=\"match\" text=\"\" default=\"$readonly$\">\n <$checkbox\n tiddler=<<output>>\n field=\"$field$\"\n index=\"$index$\"\n checked=\"true\"\n unchecked=\"false\"\n default=\"$default$\" />\n </$reveal>\n <$reveal type=\"nomatch\" text=\"\" default=\"$readonly$\">\n <input type=\"checkbox\" value=\"$default$\" readonly=\"true\" disabled=\"true\" />\n </$reveal>\n\\end\n\n\\define input-multi-checkbox(selectFilter, invert:\"no\", default)\n <div class=\"tmap-no-stretch\">\n <$list\n filter=\"$selectFilter$\"\n emptyMessage=\"– This list contains no items –\">\n <$checkbox\n tiddler=<<output>>\n tag=<<tmap \"splitAndSelect\" \"|\" \"0\">>>\n <$view\n tiddler=<<tmap \"splitAndSelect\" \"|\" \"1\">>\n field=\"title\" />\n </$checkbox><br />\n </$list>\n </div>\n\\end\n\n\\define input-select(field, index, selectFilter, default, nochoice)\n <$select\n tiddler=<<output>>\n field=\"$field$\"\n index=\"$index$\"\n default=\"$default$\">\n <$set name=\"nochoice\" value=\"$nochoice$\">\n <$list filter=\"[<nochoice>regexp[.+]]\">\n <option value=\"\"><b><<nochoice>></b></option>\n </$list>\n </$set>\n <$list filter=\"$selectFilter$\">\n <option value=<<tmap \"splitAndSelect\" \"|\" \"0\">> >\n <$view tiddler=<<tmap \"splitAndSelect\" \"|\" \"1\">> field=\"title\" />\n </option>\n </$list>\n </$select>\n\\end\n\n\\define input-radio(field, index, selectFilter, default)\n <$list filter=\"$selectFilter$\">\n <$radio\n tiddler=<<output>>\n field=\"$field$\"\n index=\"$index$\"\n value=<<tmap \"splitAndSelect\" \"|\" \"0\">>>\n <<tmap \"splitAndSelect\" \"|\" \"1\">>\n </$radio><br />\n </$list>\n\\end\n\n\\define tmap-row(title, field, index, type, descr, note, label, default, readonly, reset, selectFilter, nochoice, invert, class, focus)\n <tr>\n <td class=\"tmap-title\">$title$:</td>\n <td>\n <<$type$\n field:\"$field$\"\n index:\"$index$\"\n readonly:\"$readonly$\"\n default:\"$default$\"\n label:\"$label$\"\n invert:\"$invert$\"\n selectFilter:\"$selectFilter$\"\n nochoice:\"$nochoice$\"\n focus:\"$focus$\"\n class:\"$class$\">>\n <$reveal type=\"match\" text=\"true\" default=\"$reset$\">\n <$button>reset\n <$action-setfield $tiddler=<<output>> $field=\"$field$\" $index=\"$index$\" $value=\"$default$\" />\n </$button>\n </$reveal>\n </td>\n <td>\n <span class=\"tmap-description\">$descr$</span>\n <$reveal type=\"nomatch\" text=\"\" default=\"$note$\">\n <div class=\"tmap-note\">''Note:'' $note$</div>\n </$reveal>\n </td>\n </tr>\n\\end\n\n\\define visConfiguration(inheritedList, extensionField, styleName:\"style\")\n <fieldset><legend>Visjs configurations ($styleName$)</legend>\n <div class=\"tmap-flash-message tmap-info\">\n Only config items that you actually changed have an effect on\n the graph. Other options are visible, yet, inactive.\n </div>\n <$tmap-config\n mode=\"manage-node-types\"\n inherited=\"$inheritedList$\"\n extension=\"$extensionField$\" />\n </fieldset>\n\\end\n" + }, + "$:/plugins/felixhayashi/tiddlymap/misc/defaultViewHolder": { + "title": "$:/plugins/felixhayashi/tiddlymap/misc/defaultViewHolder", + "text": "Default" + }, + "$:/plugins/felixhayashi/tiddlymap/graph/nodeTypes/tmap:central-topic": { + "title": "$:/plugins/felixhayashi/tiddlymap/graph/nodeTypes/tmap:central-topic", + "description": "The style is applied to the node that you marked as central topic in a map.", + "style": "{\"font\":{\"size\":22,\"color\":\"rgba(0,0,0,1)\"},\"shape\":\"star\"}" + }, + "$:/plugins/felixhayashi/tiddlymap/graph/nodeTypes/tmap:neighbour": { + "title": "$:/plugins/felixhayashi/tiddlymap/graph/nodeTypes/tmap:neighbour", + "description": "Neighbours are all nodes that are not part of the original set of nodes (\"matches\") but are connected (either outgoing or incoming) to a node of the original set.", + "style": "{\"color\":\"#565656\"}" + }, + "$:/plugins/felixhayashi/tiddlymap/graph/views/Default/filter/edges": { + "title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Default/filter/edges" + }, + "$:/plugins/felixhayashi/tiddlymap/graph/views/Default/filter/nodes": { + "title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Default/filter/nodes" + }, + "$:/plugins/felixhayashi/tiddlymap/graph/views/Default": { + "title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Default", + "config.physics_mode": "false", + "isview": "true" + }, + "$:/plugins/felixhayashi/tiddlymap/graph/views/Live View/filter/edges": { + "title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Live View/filter/edges", + "filter": "[prefix[$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes]]", + "text": "\n\n" + }, + "$:/plugins/felixhayashi/tiddlymap/graph/views/Live View/filter/nodes": { + "title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Live View/filter/nodes", + "filter": "[field:title{$:/temp/tmap/currentTiddler}]" + }, + "$:/plugins/felixhayashi/tiddlymap/graph/views/Live View": { + "title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Live View", + "config.neighbourhood_scope": "1", + "config.refresh-triggers": "$:/temp/tmap/currentTiddler", + "config.physics_mode": "true", + "config.vis": "{\"physics\":{\"forceAtlas2Based\":{\"springLength\":0,\"springConstant\":0.09}}}", + "isview": "true" + }, + "$:/plugins/felixhayashi/tiddlymap/graph/views/Graph search/filter/nodes": { + "title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Graph search/filter/nodes", + "filter": "[!is[system]search{$:/temp/search}] [!is[system]search:tags{$:/temp/search}] [!is[system]search:text{$:/temp/search}limit[10]]" + }, + "$:/plugins/felixhayashi/tiddlymap/graph/views/Graph search": { + "title": "$:/plugins/felixhayashi/tiddlymap/graph/views/Graph search", + "config.refresh-triggers": "$:/temp/search", + "config.neighbourhood_scope": "1", + "config.physics_mode": "true" + } + } +}+
{ + "field.nodeLabel": "caption", + "field.nodeIcon": "icon", + "field.nodeInfo": "title", + "field.viewMarker": "isview", + "liveTab.fallbackView": "Live View", + "suppressedDialogs.dublicateIdInfo": true, + "edgeClickBehaviour": "manager", + "debug": "false", + "notifications": "true", + "popups.enabled": "true", + "popups.delay": "600", + "popups.width": "240px", + "popups.height": "140px", + "jsonIndentation": "1", + "alwaysAddNodeIdToViewFilter": "true", + "editNodeOnCreate": "false", + "singleClickMode": "false", + "nodeFilterNeighbours": "false", + "editorMenuBar.showNeighScopeButton": "true", + "editorMenuBar.showRasterMenuButton": "false", + "editorMenuBar.showScreenshotButton": "false", + "defaultView": "Live View", + "raster": "10" +}+
{"edges":{"color":{"color":"rgba(132,132,132,0)","inherit":"both","highlight":"rgba(108,132,72,0)","opacity":1,"hover":"rgba(132,132,132,0)"},"arrows":{"to":true,"middle":{"enabled":false},"from":{"enabled":false}},"font":{"background":"rgba(255,51,219,1)","strokeWidth":26,"face":"verdana"}},"nodes":{"font":{"size":15,"color":"#FFFFFF"},"color":{"background":"rgba(212,155,221,1)","border":"rgba(92,255,88,1)"},"borderWidth":0,"borderWidthSelected":0},"physics":{"forceAtlas2Based":{"springLength":130,"centralGravity":0.005,"gravitationalConstant":0,"springConstant":0}}}+
{}+
{}+
\define width() calc(100% - 15px) + +<div class="tmap-mobile-editor"> + <div class="tmap-flash-message tmap-warning"> + The editor is not displayed in mobile mode. + </div> +</div> +<div class="tmap-desktop-editor"> + <$tiddlymap + class="tmap-sidebar-map-editor" + editor="advanced" + object-id="main_editor" + click-to-use="false"> + </$tiddlymap> +</div>+
Live View+
{ + "originalVersion": "0.17.8+10010", + "dataStructureState": "0.11.0", + "showWelcomeMessage": false +}+
{ + "tiddlers": { + "$:/plugins/felixhayashi/topstoryview/config.js": { + "title": "$:/plugins/felixhayashi/topstoryview/config.js", + "text": "/*\\\n\ntitle: $:/plugins/felixhayashi/topstoryview/config.js\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\n\\*/\n(function(){\"use strict\";exports.config={classNames:{storyRiver:\"tc-story-river\",backDrop:\"story-backdrop\",tiddlerFrame:\"tc-tiddler-frame\",tiddlerTitle:\"tc-title\"},references:{userConfig:\"$:/config/topStoryView\",focussedTiddlerStore:\"$:/temp/focussedTiddler\",refreshTrigger:\"$:/temp/focussedTiddler/refresh\"},checkbackTime:$tw.utils.getAnimationDuration()}})();", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/felixhayashi/topstoryview/layout": { + "text": "html .tc-story-river:after {\n content: \"\";\n display: block; }\n", + "title": "$:/plugins/felixhayashi/topstoryview/layout", + "type": "text/vnd.tiddlywiki", + "tags": [ + "$:/tags/Stylesheet" + ] + }, + "$:/plugins/felixhayashi/topstoryview/Configuration": { + "title": "$:/plugins/felixhayashi/topstoryview/Configuration", + "text": "Please see the [[GitHub page|https://github.com/felixhayashi/TW5-TopStoryView]] for more information on the options.\n\nSave and reload the wiki to activate changes.\n\n<table>\n <tr>\n <th align=\"left\">Scroll offset:</th>\n <td><$edit-text tiddler=\"$:/config/topStoryView\" field=\"scroll-offset\" tag=\"input\" default=\"150px\" /></td>\n </tr>\n</table>" + }, + "$:/plugins/felixhayashi/topstoryview/License": { + "title": "$:/plugins/felixhayashi/topstoryview/License", + "text": "This code is released under the BSD license. For the exact terms visit:\n\nhttps://github.com/felixhayashi/TW5-TopStoryView/blob/master/LICENSE" + }, + "$:/plugins/felixhayashi/topstoryview/Readme": { + "title": "$:/plugins/felixhayashi/topstoryview/Readme", + "text": "Please visit the [[GitHub page|https://github.com/felixhayashi/TW5-TopStoryView]] for more information." + }, + "$:/plugins/felixhayashi/topstoryview/top.js": { + "title": "$:/plugins/felixhayashi/topstoryview/top.js", + "text": "/*\\\ntitle: $:/plugins/felixhayashi/topstoryview/top.js\ntype: application/javascript\nmodule-type: storyview\n\nViews the story as a linear sequence\n\n@preserve\n\n\\*/\n(function(){\"use strict\";var t=require(\"$:/plugins/felixhayashi/topstoryview/config.js\").config;var e=\"cubic-bezier(0.645, 0.045, 0.355, 1)\";var i=function(e){this.listWidget=e;this.pageScroller=new $tw.utils.PageScroller;this.pageScroller.scrollIntoView=this.scrollIntoView;this.pageScroller.storyRiverDomNode=document.getElementsByClassName(t.classNames.storyRiver)[0];var i=$tw.wiki.getTiddler(t.references.userConfig);var o=i?i.fields:{};$tw.hooks.addHook(\"th-opening-default-tiddlers-list\",this.hookOpenDefaultTiddlers);var r=parseInt(o[\"scroll-offset\"]);this.pageScroller.scrollOffset=isNaN(r)?71:r;this.recalculateBottomSpace()};i.prototype.refreshStart=function(t,e){};i.prototype.refreshEnd=function(t,e){};i.prototype.hookOpenDefaultTiddlers=function(t){return t};i.prototype.navigateTo=function(t){var e=this.listWidget.findListItem(0,t.title);if(e===undefined)return;var i=this.listWidget.children[e];var o=i.findFirstDomNode();if(!(o instanceof Element))return;this.pageScroller.scrollIntoView(o)};i.prototype.insert=function(t){if(!t)return;var e=t.findFirstDomNode();if(!(e instanceof Element))return;this.startInsertAnimation(e,function(){this.recalculateBottomSpace()}.bind(this))};i.prototype.remove=function(t){if(!t)return;var e=t.findFirstDomNode();if(!(e instanceof Element)){t.removeChildDomNodes();return}var i=this.getLastFrame()===e;this.startRemoveAnimation(t,e,function(){t.removeChildDomNodes();this.recalculateBottomSpace();if(i){this.pageScroller.scrollIntoView(this.getLastFrame())}}.bind(this))};i.prototype.getLastFrame=function(){var t=this.listWidget.children[this.listWidget.children.length-1];return t?t.findFirstDomNode():null};i.prototype.recalculateBottomSpace=function(){var t=this.pageScroller.storyRiverDomNode;if(this.getLastFrame()){var e=this.getLastFrame().getBoundingClientRect();var i=window.innerHeight;if(e.height<i){t.style[\"paddingBottom\"]=i-e.height+\"px\";return}}t.style[\"paddingBottom\"]=\"\"};i.prototype.scrollIntoView=function(t){if(this.preventNextScrollAttempt){this.preventNextScrollAttempt=false}if(!t)return;var e=$tw.utils.getAnimationDuration();this.cancelScroll();this.startTime=Date.now();var i=$tw.utils.getScrollPosition();var o=t.getBoundingClientRect(),r={left:o.left+i.x,top:o.top+i.y,width:o.width,height:o.height};var n=function(t,e,i,o){if(t<=i){return t}else if(e<o&&i<t+e-o){return t+e-o}else if(i<t){return t}else{return i}},s=n(r.left,r.width,i.x,window.innerWidth),a=r.top-this.scrollOffset;if(s!==i.x||a!==i.y){var l=this,c;c=function(){var t;if(e<=0){t=1}else{t=(Date.now()-l.startTime)/e}if(t>=1){l.cancelScroll();t=1}t=$tw.utils.slowInSlowOut(t);window.scrollTo(i.x+(s-i.x)*t,i.y+(a-i.y)*t);if(t<1){l.idRequestFrame=l.requestAnimationFrame.call(window,c)}};c()}};i.prototype.startInsertAnimation=function(t,i){var o=$tw.utils.getAnimationDuration();var r=window.getComputedStyle(t),n=parseInt(r.marginBottom,10),s=parseInt(r.marginTop,10),a=t.offsetHeight+s;setTimeout(function(){$tw.utils.setStyle(t,[{transition:\"none\"},{marginBottom:\"\"}]);i()},o);$tw.utils.setStyle(t,[{transition:\"none\"},{marginBottom:-a+\"px\"},{opacity:\"0.0\"}]);$tw.utils.forceLayout(t);$tw.utils.setStyle(t,[{transition:\"opacity \"+o+\"ms \"+e+\", \"+\"margin-bottom \"+o+\"ms \"+e},{marginBottom:n+\"px\"},{opacity:\"1.0\"}])};i.prototype.startRemoveAnimation=function(t,i,o){var r=$tw.utils.getAnimationDuration();var n=i.offsetWidth,s=window.getComputedStyle(i),a=parseInt(s.marginBottom,10),l=parseInt(s.marginTop,10),c=i.offsetHeight+l;setTimeout(o,r);$tw.utils.setStyle(i,[{transition:\"none\"},{transform:\"translateX(0px)\"},{marginBottom:a+\"px\"},{opacity:\"1.0\"}]);$tw.utils.forceLayout(i);$tw.utils.setStyle(i,[{transition:$tw.utils.roundTripPropertyName(\"transform\")+\" \"+r+\"ms \"+e+\", \"+\"opacity \"+r+\"ms \"+e+\", \"+\"margin-bottom \"+r+\"ms \"+e},{transform:\"translateX(-\"+n+\"px)\"},{marginBottom:-c+\"px\"},{opacity:\"0.0\"}])};exports.top=i})();", + "type": "application/javascript", + "module-type": "storyview" + } + } +}+
{ + "tiddlers": { + "$:/plugins/felixhayashi/vis/img/network/acceptDeleteIcon.png": { + "title": "$:/plugins/felixhayashi/vis/img/network/acceptDeleteIcon.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEA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DxwaG90b3Nob3A6Q29sb3JNb2RlPjM8L3Bob3Rvc2hvcDpDb2xvck1vZGU+CiAgICAgICAgIDxwaG90b3Nob3A6SUNDUHJvZmlsZT5zUkdCIElFQzYxOTY2LTIuMTwvcGhvdG9zaG9wOklDQ1Byb2ZpbGU+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDA5MC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDkwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz450LuoAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAATUSURBVHjajJZtTJVlGMd/13U/z+F4sBQOCiovZiMt8YiKZrMtypdh09StbLOtzA1RUmuTkppzIilJOB0Oa21tbaV+6UP5Mlnm5heVkfhyQJ1ONITAkAMqcTDonNOHA6g9qF3b/eF5/vf18r/u676uWwoLC3G73QCoKiICgIhQeGejVw3LMOTIP0xGdRQAFi1E9DyGSkLsKxtWEmAQuXfvHrJlyxZiYmIQkQHjeac/jjfKBsJ8YlnRzQKIgBoIh8ByaRSICAilRCjdk1UeAIhEIogIPT09SFFRER6PZ4DByqr1+WpRoYAquKYuqCPz9SZeeCVA4vggAC2XPVw54eXi0WTOH8yIslIIs+bryTsq+hl0d3cjxcXFuN1uVJVVp9dvEigSwP3iYj9vfV7L6IldPE5uXvZwcKuPsz/7+qLc/I1vexFAMBjEzJ49G9u2WV1TsEaVUhOBmJxVVeR9X8NTI3t5kgxN6G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MIiUlJQQGxs78Krof7oYY8jt2TUCy3oH0XmI+MAejW0gYpoxxg/mF4zu3a8rbvXrPuigq6uLfwcA6IKAIsDf9kIAAAAASUVORK5CYII=" + }, + "$:/plugins/felixhayashi/vis/img/network/addNodeIcon.png": { + "title": "$:/plugins/felixhayashi/vis/img/network/addNodeIcon.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKs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C9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5WKqp9AAAAIGN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AAAABJRU5ErkJggg==" + }, + "$:/plugins/felixhayashi/vis/img/network/backIcon.png": { + "title": "$:/plugins/felixhayashi/vis/img/network/backIcon.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4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WVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4jq1U/AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAVTSURBVHjanFVfTFNnFP+d77ve8qeVFbBrpcVgRr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klc/nM+fl5SWnpqa+0uv1K/n5+Ws6nW5NluXNd15e3ppOp1uz2WyzZ86cGQ0Gg6ZAIFCZzWZ/lYjokRDiuN/vt7W0tMw3NTUpbrd78P79++5gMFgRiUTKHj58WMYYQ3V19etTp05tq6Lp6Wkb5xxCiEfc7XZPM8a6FxcXTfX19a/1en2Gcy5qamreNjY2/qGq6joRZe12+9Tp06e3JY/FYgWPHz8+mhvr3/CWlpbk+vp6PmOseWVlBS6XS9GSJUkSdrs93NDQ8Oe+ffvC/8fJIyMjddFo9Esi6pVleVjT2m0A8Hq9zqGhIefnjoknT544A4GAM/eDbxMReFNTE0pKSpKqqsaI6Pj8/LxVVdWM3W6PfCr5xMTE1zllXS0uLn6aSqXAGxsbodPpoNfrn6uqCs75EUVRrJFIZMfevXsXdTrdxseIE4mEPDIyUu/3++tynd8yGo29RIR0Og26fv06ioqKwBgD5xzv3r27zBjrIyJIkgSHwzFZWVmp7NmzJ1ZaWpoAgGg0WqgoSvHMzIw1GAw6tvjhitFo7NPW5fv370Hd3d0oKCgA53zTQMvLy+VCiKuSJH0rSdLmztZytIWv5RPRD0T0Y3Fx8dzWfby6ugopHo//w4mcc8iyPMc5v5FOp7/PZrOdQohWInIC2C2EgBBigYi8Qoifs9lsv06nWyIiaFxagXg8jr8GAGxuIe7LBeWhAAAAAElFTkSuQmCC" + }, + "$:/plugins/felixhayashi/vis/img/network/connectIcon.png": { + "title": "$:/plugins/felixhayashi/vis/img/network/connectIcon.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIE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naW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDwveG1wTU06RGVyaXZlZEZyb20+CiAgICAgICAgIDxwaG90b3Nob3A6Q29sb3JNb2RlPjM8L3Bob3Rvc2hvcDpDb2xvck1vZGU+CiAgICAgICAgIDxwaG90b3Nob3A6SUNDUHJvZmlsZT5zUkdCIElFQzYxOTY2LTIuMTwvcGhvdG9zaG9wOklDQ1Byb2ZpbGU+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDA5MC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDkwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4ubxs+AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAUtSURBVHjajJZ/bNT1Gcdfz/P53PV6B4W7VltLqdAaplIOiMOoyxxJCSs/Gv/yB4gzJroAosmmDklwkYWR0bQsdmkykoojTpcsWYLxD/lRZdMQkTHRtkLZRqG0tIVe7662vTu43n32x/VKZ/jh89cn38/zvN7P5/l88zwf2blzJz6fDwARQUSm1n8s31CM0/VAnbNmsUPuAsDpgEO+Bg4C7//iyv5hvmMiQiqVQpqamvB6vVNwEeG1JZtCBrYi/MrkAwDNgjhwAlbzICBLA0rDb0+/839C6XQaaWxspLCw8Dp86cbNmqVFJQddE6KzdjZ9D89g+B6fSyCOcyn1nxil+O9xKg5HqWFSHGXLjrP7W/ICqVQK2bNnDz6fDxFh65KNvxbHDhF4rJj2bXPo+IGf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g8/iXee+Dy4CKMs7xqn4nwKz9IirhQqmVuB42m8ey+x7LMoD6iAON782eChhqmRuXfvXgKBAKqKqtI0/8nNKrQI4BVYXkzHgzPpC88gWuHL/caXrhLoGiN0apSKr0ZZRBZM7q2w5ZnLR1oAnHOMjY0hra2tFBQUYIyZmstvVT1Z6eDlAuEVq7merxmwueNPDXy9PvybjKP5mctHLk4/XTKZRJqbm/H7/VNw1VyEMYbW4FN3WNWnnchKoy5sHeVGBRX6VWi3ymFx7r11Ix8MTX/y5C2RSPC/AQB61erowbpqSwAAAABJRU5ErkJggg==" + }, + "$:/plugins/felixhayashi/vis/img/network/cross.png": { + "title": "$:/plugins/felixhayashi/vis/img/network/cross.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2e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gICAgICAgIDxwaG90b3Nob3A6Q29sb3JNb2RlPjM8L3Bob3Rvc2hvcDpDb2xvck1vZGU+CiAgICAgICAgIDxwaG90b3Nob3A6SUNDUHJvZmlsZT5zUkdCIElFQzYxOTY2LTIuMTwvcGhvdG9zaG9wOklDQ1Byb2ZpbGU+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjc8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+NzwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+cZUZMwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAA2ElEQVR42gDLADT/AS0tLUQFBQUVFxcXtPHx8fPl5eUNCAgITCkpKesEHx8fGgYGBjH+/v4a+Pj4qgQEBFU6OjodMTExzwQUFBSvEBAQEfX19SD19fVqNDQ0CElJSd/9/f2vAwEBAfrn5+fkBwcHLRYWFgsXFxfz29vbo9LS0uwDDQ0NDfPz81orKysXIyMj+ODg4Avh4eEa/f391gMkJCRYPz8/KUhISOMCAgKh8fHxHRsbGx4UFBQQBDk5OeY7Ozv7CAgItPb29vMEBASaJSUlTQ0NDesDAEwpT0Ko8Ri2AAAAAElFTkSuQmCC" + }, + "$:/plugins/felixhayashi/vis/img/network/cross2.png": { + "title": "$:/plugins/felixhayashi/vis/img/network/cross2.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAACXBIWXMAAA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gICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8cGhvdG9zaG9wOklDQ1Byb2ZpbGU+c1JHQiBJRUM2MTk2Ni0yLjE8L3Bob3Rvc2hvcDpJQ0NQcm9maWxlPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT4xPC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWERpbWVuc2lvbj41PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjU8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/PvQ0yV0AAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAHZJREFUeNoAaQCW/wE1NTWrERER3+3t7Xbp6emKOTk5IgQtLS3kBAQEdfLy8ipOTk5LQ0NDkAE0NDQAEhISxiEhITkTExPH9PT0OgMGBgaPMzMzVS8vL7XU1NRC7+/vEQNfX19lUFBQtfPz82EEBAQMNTU1HwMAMI4nIAoe9RQAAAAASUVORK5CYII=" + }, + "$:/plugins/felixhayashi/vis/img/network/deleteIcon.png": { + "title": "$:/plugins/felixhayashi/vis/img/network/deleteIcon.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4i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nRJRD4KICAgICAgICAgICAgPHN0UmVmOm9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOjczQjYyQUFEOTE4M0UzMTE5NDhCRDEzRTJCRTc5OUExPC9zdFJlZjpvcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDwveG1wTU06RGVyaXZlZEZyb20+CiAgICAgICAgIDxwaG90b3Nob3A6Q29sb3JNb2RlPjM8L3Bob3Rvc2hvcDpDb2xvck1vZGU+CiAgICAgICAgIDxwaG90b3Nob3A6SUNDUHJvZmlsZT5zUkdCIElFQzYxOTY2LTIuMTwvcGhvdG9zaG9wOklDQ1Byb2ZpbGU+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDA5MC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDkwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4aYJzYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAYGSURBVHjalJZ7UJTnFcZ/73m/72PdJY1RbhoQp6lkXRAvmIYxdCUadLVOozPNtGObap1JsKipjiShbdoRbeKEiQHpQK3xj0xa03aamTbaTGyAYV1QGeqFi+JyiZFLAlmESBkWRmS3fyzslGkmnZ5/v/M873Oe75zzvqqoqAibzQaAiKCUAkApRdHIK/NFsx2NR91nOSILADDoJyzNaM4xxbtvPHh0iC+JiYkJ1OHDh4mJiUEpFSXPv/ziPC28TIiXDCOSrAClQDSEpsCwJPIhrEBR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FvjJ+XEdWkPfjQVR/CcNKYgGMc8JWt5Fa2j+MIPPuyI2pa4IoHSkt6vLIuRaQ9q32khzt4GCxtNu6k46GeiIR2lIfDQQsafPzq1LGRGL9Gk9d+vrwewvfHPQOoexQVjxdB/auk/zmaUMdsfz6bVUtIalT7bxveP1ZHh6GPDPYeSzeD69kcpIfxymFWLNrka+ljhBTWkWwz2JiJT84YHnz2iPx0P20PkmRF5i6HYiwZFJsn/YzdezbzE3cQibY5xV266z6RfXohakb+xB9CjanCD9qTbW7Grk4WV38VZm0l6dhQiEw9taHSuDqrS0FIfDwXM3X9mHMsvRAk/sauDpQy38P+GtzOTGB9mEpkD0C2dS8n8zOjqK9ng8WJZFU+JTjasGvaCNXPpvJBPoMlm0OoDNMfWVxONfWNSUPUZ7TUQ56tCZlPwSgMnJSVRpaSmxsbFE1raw82ZxAZZRQUiBYUKGp5UlOX2krBzmoUVjiIKhHge9rfPo+Wcy3ZeXIYASgL1/X5RfMXMvj46OosrLy7HZbGitUUohIuzoem0RofALaOsghgWGjky0MiJTL8b0lOvI8hN1DKXKP0jd3TNTWDgcJhgMoo4ePYrD4Yi+KmaeLlprnrtXFo9h/AAlG1AqE8yFmBrC+jO0bgH9EVpO/1F2Dc5g//OAsbEx/j0Af+USsQynL1UAAAAASUVORK5CYII=" + }, + "$:/plugins/felixhayashi/vis/img/network/downArrow.png": { + "title": "$:/plugins/felixhayashi/vis/img/network/downArrow.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/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Ggly9ftjLGvlGpVAsVCCKCnAjeuK3S74h4orq6+p/19fXv/wuTuYBkMvkJIn6KiFYi4olIJ4NmEHGEiPoB4IbFYul9FzDdfgOenj3/W2qSyQAAAABJRU5ErkJggg==" + }, + "$:/plugins/felixhayashi/vis/img/network/editIcon.png": { + "title": "$:/plugins/felixhayashi/vis/img/network/editIcon.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZ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zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4yk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ye2T+xWhT3WYJEIoH/DQBMw3kes8OJPgAAAABJRU5ErkJggg==" + }, + "$:/plugins/felixhayashi/vis/img/network/leftArrow.png": { + "title": "$:/plugins/felixhayashi/vis/img/network/leftArrow.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIa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N6zXg4ODDbFYTCZJ0q+poKDgC0QEn8/HjY2NydeadOjQocfd3d39ZWVlToZhSBTFqsnJyQoAALVaPbsRdHJyUh4IBDgigubm5i8Zk8kE9fX1zxHxvfn5eWxsbHSvNZlhGKmmpsbNcZwnMzMzrFKpnu7du9eiUqkCG4EHBgbqw+GwHAA6T548OcIAAJSUlFi2bNnSGwgE5LFYLK7RaL5dL4hcLo+q1Wofz/P+bdu2LWwixe8+efJECwAQi8XeN5lMEgMAIIqiJAiCFxHbPR6PUiaTzRUWFobfxr212+1Fw8PDe5In/8Oenp6vX+lArFarvbGxMRMRdzmdztK3Abfb7UWDg4PvJa/QJxcuXPh41Z7LYrF83tTUlIOITU6nszQej8d37Njx7feBmkymd1NfKknSn7u6ujrX7TLNZvNnOp0uk2GYXV6vV+n1erMyMjKicrl8U53m1NRU7t27dwWHw6FNpveTzs7Ozk039N3d3b8AgOspNVIoFDM8z7uLi4t9HMdFZDJZPCWDfr9/q9vtVni93qJQKMStqFofnjt37i9v/AtjNBppYWHhHMMwv2dZNnWlABFflr81JLOrtrb2T3v27HnzX5jXF5BIJHYj4iFE3ElEPBHlJEFBRJwiohEA+IcgCPfWA6bsv6nEjVSaQsrEAAAAAElFTkSuQmCC" + }, + "$:/plugins/felixhayashi/vis/img/network/minus.png": { + "title": "$:/plugins/felixhayashi/vis/img/network/minus.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZ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mF10qmUmgUEu1rZRMa0mGYcwwsz2TyRTZbLY5AJBleWJyctLR1tZ2otC8helvKb8vnpyZYbVaJ8z2p0+fFuX7ZpiZh5kZuq6XFCSK6w6HY+JlvpUkacn2wgUSEWw228S+ffuum/M+fvy4JN83JDHzLSJqHB4etm/fvn0CACoqKqa7urp+XGkzJxIJe96Ft5iIfgGAWCzmWu19rOu6K7/tfuWysrI/iAjJZFJ+8OCBdbWgIyMj1unpaZmZ4fV6/+Senh6DiPwAMDAw4Fkt8L179zx5//ubmppyLz6xmZnzeXNvvnjx4taVhgaDwa1jY2ObAWB+fv78Qj7WNM1QVTVBRK26rjstFssTl8uVWQno4ODghhs3bjTlv/zjXV1dd/9VgYTD4cEdO3YUE1FDNBrdtBLwwcHBDcFgsDm/hc50dnaeXrLmun379pW6urpSIqqLRqObstlstrKycvJNoNeuXdtqvqlhGOc7Ojr8r6wyQ6HQ5fr6+mIhREMikXAmEol31q5d+9xqtS6r0hwdHV139epVNRKJ1OTNe8bv9/uXXdCfOnXqUwDfmdHIbrePK4oS37hxY1KW5VmLxZI1w2AqlXo3Ho/bE4nEhnQ6LZuRi4iOt7e3f//avzCBQIDn5ubahRDfSJKEfH0GIlrIvy8JmR21tbXfNjU1vf4vzOIF5HK5RiL6mIh2MrPCzKV50AwRjTLzTQA/qap6/VVAU/8Apxa13K97LqUAAAAASUVORK5CYII=" + }, + "$:/plugins/felixhayashi/vis/img/network/plus.png": { + "title": "$:/plugins/felixhayashi/vis/img/network/plus.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz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vis/img/network/rightArrow.png": { + "title": "$:/plugins/felixhayashi/vis/img/network/rightArrow.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiB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H19/QYifri5uYkNDQ3h/YiVSuV2eXn5QnFxceLw4cPR5ubmiZaWFo5SumeTd//+/XpBEEoAoLujo2OUZhVlXCaTfZ5IJEqSyWTKaDSu5EOu1+vjBoMhVlJS8sYOxe121zx+/Lg2W/UfeTyeDAUACAQCGZZlI4jYzvO8Ri6Xr2q1WuF97Md+v798ZGSkJbsCPu3t7f3ulQ7E5/P5GxoaihDRGgwGDe+D3O/3l7vd7g+zTd+XTqfzi117rvHx8W8tFosSES3BYNCQSqVSVVVVK+9C6vF4asSZZjKZaz09Pd1v7DLHxsa+bmxsLKKUWiORiCYSiRQXFhZu7ZdHEfPz86UPHjxgOY6rzYb3y+7u7u68G/orV650AsAtUbVUKtWSXq8PHz16NMYwzL/kcnlKlMF4PP69cDisikQi5evr64x46kDETy9fvvyHtz7CuFwusr29fZlS+htRJimlgIhAKX1lf859RsSeurq637e0tLz9EWanA+l0uhkRf4SITYQQPSFEmSVaQ8R5QsgoAPyNZVnvmwhF/BfnjYAmDVlf5AAAAABJRU5ErkJggg==" + }, + "$:/plugins/felixhayashi/vis/img/network/upArrow.png": { + "title": "$:/plugins/felixhayashi/vis/img/network/upArrow.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAA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Zux/ivJJxnpJh8sAAAAASUVORK5CYII=" + }, + "$:/plugins/felixhayashi/vis/img/network/zoomExtends.png": { + "title": "$:/plugins/felixhayashi/vis/img/network/zoomExtends.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD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ZT5SRJ8MSJExARJJPJd0ieURQF+/fvDzY0NETxK8j169c9vb29KkkYhvGu0+k8YxgGlMbGRpBEUVHR9fn5+QKS9eFweEtRUdGD8vLy2deF9vX1Wbv/ZLyx/2NPYttiRgQCgWxUFhYW9jx58sRJsi4cDm9Jp9PpysrK734JtL+/3zc0NPR7M5hOTjQOdJBE+dTWxZoeCASWNOiFhYXdT58+LRCR+ng8viEejxfm5+fPFxcXr6rTvHfvXsnly5d/Fw6Hq83U++R249UOkcXDw/Pd4o5tuVFsjSUlJZ26rkcA/OvOnTuVk5OTlS6XS6uoqIhu2rQp4Xa754qKitJWGUwmk2ui0agrHo97ZmZm3DmNwruhwJUzQmXxK4Ivqppt+YoNw7DgZ3Rd/xzA+wD+qeu6W9d19+jo6JLjL7eoWNeGYfyN5KehwJWM0NSDIGN8vzI4V0pKSjIi0qXr+qcAGkj+yTCMXSQrDMNwmodCCsA9ERki+R8A/5toHMgoVAASxItcFr4osT8Aaa5QMU/uqTYAAAAASUVORK5CYII=" + }, + "$:/plugins/felixhayashi/vis/img/timeline/delete.png": { + "title": "$:/plugins/felixhayashi/vis/img/timeline/delete.png", + "type": "image/png", + "text": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAl2cEFnAAAAEAAAABAAXMatwwAAAVRJREFUOMt108FKG1EUBuBvYtxbRGwxiGBXeYCW0mVpDSKVvIJ0F/syJsFdn6GCkaZ9gro3G1u0ILQgheJKRUwXPQNnxvTAcGf+c/7/nPvfO8UEKLCFJg5w31aNqGtgG3c4xLSZyP0QgI8Tpu0quQhyPwTgsBnkAVYD3MM9DibVId5GbiW+B+VIt7hJha1IdhPWDayVsBvcFtHlDYZ4mgou8D7e+zXyN/TwuUhjbkSXLHIZ61KNvItxaYyayBDrZsf36DyGdilQE+ngA57UyD+xg08luTSxHvP/wRuRewDm7uV9WJ4hsBy5rczJJm7G/tcS6VesjxN2Hj4c5S10Qj2Tz/AunrOEr0VtB+Z6vMJ+zfkfcVQjnMbRvcRC5B/hBU4auMbVjBFHCRsFdp6wK1yXHjz37xItRuejfFQ1nwb4HXVfs4nPYsQv0p+oKlLgNf7gGP4Cw4ZUK7kMJVEAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDExLTA1LTE2VDExOjM1OjIxKzAyOjAw9uVF5gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxMS0wNS0xNlQxMTozNToyMSswMjowMIe4/VoAAAAASUVORK5CYII=" + }, + "$:/plugins/felixhayashi/vis/readme": { + "title": "$:/plugins/felixhayashi/vis/readme", + "text": "! TW5-Vis.js\n\nA tiddlywiki plugin for the vis.js library.\n\n---\n\n! Notes on Copyright\n\n!! TiddlyWiki\n\nCreated by Jeremy Ruston, (jeremy [at] jermolene [dot] com)\n\nCopyright © Jeremy Ruston 2004-2007 Copyright © UnaMesa Association 2007-2014\n\nPublished under the following [licenses](https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses):\n\n1. BSD 3-clause \"New\" or \"Revised\" License (including any right to adopt any future version of a license if permitted)\n2. Creative Commons Attribution 3.0 (including any right to adopt any future version of a license if permitted)\n\n!! The **vis.js** library\n\nCopyright (c) 2014 [Almende B.V.](https://github.com/almende/vis)\n\nPublished under the following licenses:\n\n1. Apache License Version 2.0, January 2004 http://www.apache.org/licenses/\n2. MIT License (MIT)\n" + }, + "$:/plugins/felixhayashi/vis/vis.css": { + "title": "$:/plugins/felixhayashi/vis/vis.css", + "type": "text/vnd.tiddlywiki", + "tags": "$:/tags/Stylesheet", + "text": "\\rules except list\n\n\\define datauri(title)\n<$macrocall $name=\"makedatauri\" type={{$title$!!type}} text={{$title$}}/>\n\\end\n\n.vis .overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.vis-active{box-shadow:0 0 10px #86d5f8}.vis [class*=\"span\"]{min-height:0;width:auto}div.vis-configuration{position:relative;display:block;float:left;font-size:12px}div.vis-configuration-wrapper{display:block;width:700px}div.vis-configuration-wrapper::after{clear:both;content:\"\";display:block}div.vis-configuration.vis-config-option-container{display:block;width:495px;background-color:#fff;border:2px solid #f7f8fa;border-radius:4px;margin-top:20px;left:10px;padding-left:5px}div.vis-configuration.vis-config-button{display:block;width:495px;height:25px;vertical-align:middle;line-height:25px;background-color:#f7f8fa;border:2px solid #ceced0;border-radius:4px;margin-top:20px;left:10px;padding-left:5px;cursor:pointer;margin-bottom:30px}div.vis-configuration.vis-config-button.hover{background-color:#4588e6;border:2px solid #214373;color:#fff}div.vis-configuration.vis-config-item{display:block;float:left;width:495px;height:25px;vertical-align:middle;line-height:25px}div.vis-configuration.vis-config-item.vis-config-s2{left:10px;background-color:#f7f8fa;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-item.vis-config-s3{left:20px;background-color:#e4e9f0;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-item.vis-config-s4{left:30px;background-color:#cfd8e6;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-header{font-size:18px;font-weight:bold}div.vis-configuration.vis-config-label{width:120px;height:25px;line-height:25px}div.vis-configuration.vis-config-label.vis-config-s3{width:110px}div.vis-configuration.vis-config-label.vis-config-s4{width:100px}div.vis-configuration.vis-config-colorBlock{top:1px;width:30px;height:19px;border:1px solid #444;border-radius:2px;padding:0;margin:0;cursor:pointer}input.vis-configuration.vis-config-checkbox{left:-5px}input.vis-configuration.vis-config-rangeinput{position:relative;top:-5px;width:60px;padding:1px;margin:0;pointer-events:none}input.vis-configuration.vis-config-range{-webkit-appearance:none;border:0 solid white;background-color:rgba(0,0,0,0);width:300px;height:20px}input.vis-configuration.vis-config-range::-webkit-slider-runnable-track{width:300px;height:5px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(to bottom,#dedede 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dedede',endColorstr='#c8c8c8',GradientType=0);border:1px solid #999;box-shadow:#aaa 0 0 3px 0;border-radius:3px}input.vis-configuration.vis-config-range::-webkit-slider-thumb{-webkit-appearance:none;border:1px solid #14334b;height:17px;width:17px;border-radius:50%;background:#3876c2;background:-moz-linear-gradient(top,#3876c2 0,#385380 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#3876c2),color-stop(100%,#385380));background:-webkit-linear-gradient(top,#3876c2 0,#385380 100%);background:-o-linear-gradient(top,#3876c2 0,#385380 100%);background:-ms-linear-gradient(top,#3876c2 0,#385380 100%);background:linear-gradient(to bottom,#3876c2 0,#385380 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#3876c2',endColorstr='#385380',GradientType=0);box-shadow:#111927 0 0 1px 0;margin-top:-7px}input.vis-configuration.vis-config-range:focus{outline:0}input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track{background:#9d9d9d;background:-moz-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#9d9d9d),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-o-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:linear-gradient(to bottom,#9d9d9d 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#9d9d9d',endColorstr='#c8c8c8',GradientType=0)}input.vis-configuration.vis-config-range::-moz-range-track{width:300px;height:10px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(to bottom,#dedede 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dedede',endColorstr='#c8c8c8',GradientType=0);border:1px solid #999;box-shadow:#aaa 0 0 3px 0;border-radius:3px}input.vis-configuration.vis-config-range::-moz-range-thumb{border:0;height:16px;width:16px;border-radius:50%;background:#385380}input.vis-configuration.vis-config-range:-moz-focusring{outline:1px solid white;outline-offset:-1px}input.vis-configuration.vis-config-range::-ms-track{width:300px;height:5px;background:transparent;border-color:transparent;border-width:6px 0;color:transparent}input.vis-configuration.vis-config-range::-ms-fill-lower{background:#777;border-radius:10px}input.vis-configuration.vis-config-range::-ms-fill-upper{background:#ddd;border-radius:10px}input.vis-configuration.vis-config-range::-ms-thumb{border:0;height:16px;width:16px;border-radius:50%;background:#385380}input.vis-configuration.vis-config-range:focus::-ms-fill-lower{background:#888}input.vis-configuration.vis-config-range:focus::-ms-fill-upper{background:#ccc}.vis-configuration-popup{position:absolute;background:rgba(57,76,89,0.85);border:2px solid #f2faff;line-height:30px;height:30px;width:150px;text-align:center;color:#fff;font-size:14px;border-radius:4px;-webkit-transition:opacity .3s ease-in-out;-moz-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.vis-configuration-popup:after,.vis-configuration-popup:before{left:100%;top:50%;border:solid transparent;content:\" \";height:0;width:0;position:absolute;pointer-events:none}.vis-configuration-popup:after{border-color:rgba(136,183,213,0);border-left-color:rgba(57,76,89,0.85);border-width:8px;margin-top:-8px}.vis-configuration-popup:before{border-color:rgba(194,225,245,0);border-left-color:#f2faff;border-width:12px;margin-top:-12px}div.vis-tooltip{position:absolute;visibility:hidden;padding:5px;white-space:nowrap;font-family:verdana;font-size:14px;color:#000;background-color:#f5f4ed;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border:1px solid #808074;box-shadow:3px 3px 10px rgba(0,0,0,0.2);pointer-events:none;z-index:5}div.vis-color-picker{position:absolute;top:0;left:30px;margin-top:-140px;margin-left:30px;width:310px;height:444px;z-index:1;padding:10px;border-radius:15px;background-color:#fff;display:none;box-shadow:rgba(0,0,0,0.5) 0 0 10px 0}div.vis-color-picker div.vis-arrow{position:absolute;top:147px;left:5px}div.vis-color-picker div.vis-arrow::after,div.vis-color-picker div.vis-arrow::before{right:100%;top:50%;border:solid transparent;content:\" \";height:0;width:0;position:absolute;pointer-events:none}div.vis-color-picker div.vis-arrow:after{border-color:rgba(255,255,255,0);border-right-color:#fff;border-width:30px;margin-top:-30px}div.vis-color-picker div.vis-color{position:absolute;width:289px;height:289px;cursor:pointer}div.vis-color-picker div.vis-brightness{position:absolute;top:313px}div.vis-color-picker div.vis-opacity{position:absolute;top:350px}div.vis-color-picker div.vis-selector{position:absolute;top:137px;left:137px;width:15px;height:15px;border-radius:15px;border:1px solid #fff;background:#4c4c4c;background:-moz-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#4c4c4c),color-stop(12%,#595959),color-stop(25%,#666),color-stop(39%,#474747),color-stop(50%,#2c2c2c),color-stop(51%,#000),color-stop(60%,#111),color-stop(76%,#2b2b2b),color-stop(91%,#1c1c1c),color-stop(100%,#131313));background:-webkit-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:-o-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:-ms-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:linear-gradient(to bottom,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4c4c4c',endColorstr='#131313',GradientType=0)}div.vis-color-picker div.vis-new-color{position:absolute;width:140px;height:20px;border:1px solid rgba(0,0,0,0.1);border-radius:5px;top:380px;left:159px;text-align:right;padding-right:2px;font-size:10px;color:rgba(0,0,0,0.4);vertical-align:middle;line-height:20px}div.vis-color-picker div.vis-initial-color{position:absolute;width:140px;height:20px;border:1px solid rgba(0,0,0,0.1);border-radius:5px;top:380px;left:10px;text-align:left;padding-left:2px;font-size:10px;color:rgba(0,0,0,0.4);vertical-align:middle;line-height:20px}div.vis-color-picker div.vis-label{position:absolute;width:300px;left:10px}div.vis-color-picker div.vis-label.vis-brightness{top:300px}div.vis-color-picker div.vis-label.vis-opacity{top:338px}div.vis-color-picker div.vis-button{position:absolute;width:68px;height:25px;border-radius:10px;vertical-align:middle;text-align:center;line-height:25px;top:410px;border:2px solid #d9d9d9;background-color:#f7f7f7;cursor:pointer}div.vis-color-picker div.vis-button.vis-cancel{left:5px}div.vis-color-picker div.vis-button.vis-load{left:82px}div.vis-color-picker div.vis-button.vis-apply{left:159px}div.vis-color-picker div.vis-button.vis-save{left:236px}div.vis-color-picker input.vis-range{width:290px;height:20px}div.vis-network div.vis-manipulation{box-sizing:content-box;border-width:0;border-bottom:1px;border-style:solid;border-color:#d6d9d8;background:#fff;background:-moz-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fff),color-stop(48%,#fcfcfc),color-stop(50%,#fafafa),color-stop(100%,#fcfcfc));background:-webkit-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:-o-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:-ms-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:linear-gradient(to bottom,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#fcfcfc',GradientType=0);padding-top:4px;position:absolute;left:0;top:0;width:100%;height:28px}div.vis-network div.vis-edit-mode{position:absolute;left:0;top:5px;height:30px}div.vis-network div.vis-close{position:absolute;right:0;top:0;width:30px;height:30px;background-position:20px 3px;background-repeat:no-repeat;background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/cross.png\">>);cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-close:hover{opacity:.6}div.vis-network div.vis-manipulation div.vis-button,div.vis-network div.vis-edit-mode div.vis-button{float:left;font-family:verdana;font-size:12px;-moz-border-radius:15px;border-radius:15px;display:inline-block;background-position:0 0;background-repeat:no-repeat;height:24px;margin-left:10px;cursor:pointer;padding:0 8px 0 8px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-manipulation div.vis-button:hover{box-shadow:1px 1px 8px rgba(0,0,0,0.20)}div.vis-network div.vis-manipulation div.vis-button:active{box-shadow:1px 1px 8px rgba(0,0,0,0.50)}div.vis-network div.vis-manipulation div.vis-button.vis-back{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/backIcon.png\">>)}div.vis-network div.vis-manipulation div.vis-button.vis-none:hover{box-shadow:1px 1px 8px rgba(0,0,0,0.0);cursor:default}div.vis-network div.vis-manipulation div.vis-button.vis-none:active{box-shadow:1px 1px 8px rgba(0,0,0,0.0)}div.vis-network div.vis-manipulation div.vis-button.vis-none{padding:0}div.vis-network div.vis-manipulation div.notification{margin:2px;font-weight:bold}div.vis-network div.vis-manipulation div.vis-button.vis-add{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/addNodeIcon.png\">>)}div.vis-network div.vis-manipulation div.vis-button.vis-edit,div.vis-network div.vis-edit-mode div.vis-button.vis-edit{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/editIcon.png\">>)}div.vis-network div.vis-edit-mode div.vis-button.vis-edit.vis-edit-mode{background-color:#fcfcfc;border:1px solid #ccc}div.vis-network div.vis-manipulation div.vis-button.vis-connect{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/connectIcon.png\">>)}div.vis-network div.vis-manipulation div.vis-button.vis-delete{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/deleteIcon.png\">>)}div.vis-network div.vis-manipulation div.vis-label,div.vis-network div.vis-edit-mode div.vis-label{margin:0 0 0 23px;line-height:25px}div.vis-network div.vis-manipulation div.vis-separator-line{float:left;display:inline-block;width:1px;height:21px;background-color:#bdbdbd;margin:0 7px 0 15px}div.vis-network div.vis-navigation div.vis-button{width:34px;height:34px;-moz-border-radius:17px;border-radius:17px;position:absolute;display:inline-block;background-position:2px 2px;background-repeat:no-repeat;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-navigation div.vis-button:hover{box-shadow:0 0 3px 3px rgba(56,207,21,0.30)}div.vis-network div.vis-navigation div.vis-button:active{box-shadow:0 0 1px 3px rgba(56,207,21,0.95)}div.vis-network div.vis-navigation div.vis-button.vis-up{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/upArrow.png\">>);bottom:50px;left:55px}div.vis-network div.vis-navigation div.vis-button.vis-down{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/downArrow.png\">>);bottom:10px;left:55px}div.vis-network div.vis-navigation div.vis-button.vis-left{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/leftArrow.png\">>);bottom:10px;left:15px}div.vis-network div.vis-navigation div.vis-button.vis-right{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/rightArrow.png\">>);bottom:10px;left:95px}div.vis-network div.vis-navigation div.vis-button.vis-zoomIn{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/plus.png\">>);bottom:10px;right:15px}div.vis-network div.vis-navigation div.vis-button.vis-zoomOut{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/minus.png\">>);bottom:10px;right:55px}div.vis-network div.vis-navigation div.vis-button.vis-zoomExtends{background-image:url(<<datauri \"$:/plugins/felixhayashi/vis/img/network/zoomExtends.png\">>);bottom:50px;right:15px}.vis-current-time{background-color:#ff7f6e;width:2px;z-index:1;pointer-events:none}.vis-rolling-mode-btn{height:40px;width:40px;position:absolute;top:7px;right:20px;border-radius:50%;font-size:28px;cursor:pointer;opacity:.8;color:white;font-weight:bold;text-align:center;background:#3876c2}.vis-rolling-mode-btn:before{content:\"\\26F6\"}.vis-rolling-mode-btn:hover{opacity:1}.vis-custom-time{background-color:#6e94ff;width:2px;cursor:move;z-index:1}.vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal{position:absolute;width:100%;height:0;border-bottom:1px solid}.vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor{border-color:#e5e5e5}.vis-panel.vis-background.vis-horizontal .vis-grid.vis-major{border-color:#bfbfbf}.vis-data-axis .vis-y-axis.vis-major{width:100%;position:absolute;color:#4d4d4d;white-space:nowrap}.vis-data-axis .vis-y-axis.vis-major.vis-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.vis-data-axis .vis-y-axis.vis-minor{position:absolute;width:100%;color:#bebebe;white-space:nowrap}.vis-data-axis .vis-y-axis.vis-minor.vis-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.vis-data-axis .vis-y-axis.vis-title{position:absolute;color:#4d4d4d;white-space:nowrap;bottom:20px;text-align:center}.vis-data-axis .vis-y-axis.vis-title.vis-measure{padding:0;margin:0;visibility:hidden;width:auto}.vis-data-axis .vis-y-axis.vis-title.vis-left{bottom:0;-webkit-transform-origin:left top;-moz-transform-origin:left top;-ms-transform-origin:left top;-o-transform-origin:left top;transform-origin:left bottom;-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg)}.vis-data-axis .vis-y-axis.vis-title.vis-right{bottom:0;-webkit-transform-origin:right bottom;-moz-transform-origin:right bottom;-ms-transform-origin:right bottom;-o-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.vis-legend{background-color:rgba(247,252,255,0.65);padding:5px;border:1px solid #b3b3b3;box-shadow:2px 2px 10px rgba(154,154,154,0.55)}.vis-legend-text{white-space:nowrap;display:inline-block}.vis-item{position:absolute;color:#1a1a1a;border-color:#97b0f8;border-width:1px;background-color:#d5ddf6;display:inline-block;z-index:1}.vis-item.vis-selected{border-color:#ffc200;background-color:#fff785;z-index:2}.vis-editable.vis-selected{cursor:move}.vis-item.vis-point.vis-selected{background-color:#fff785}.vis-item.vis-box{text-align:center;border-style:solid;border-radius:2px}.vis-item.vis-point{background:0}.vis-item.vis-dot{position:absolute;padding:0;border-width:4px;border-style:solid;border-radius:4px}.vis-item.vis-range{border-style:solid;border-radius:2px;box-sizing:border-box}.vis-item.vis-background{border:0;background-color:rgba(213,221,246,0.4);box-sizing:border-box;padding:0;margin:0}.vis-item .vis-item-overflow{position:relative;width:100%;height:100%;padding:0;margin:0;overflow:hidden}.vis-item-visible-frame{white-space:nowrap}.vis-item.vis-range .vis-item-content{position:relative;display:inline-block}.vis-item.vis-background .vis-item-content{position:absolute;display:inline-block}.vis-item.vis-line{padding:0;position:absolute;width:0;border-left-width:1px;border-left-style:solid}.vis-item .vis-item-content{white-space:nowrap;box-sizing:border-box;padding:5px}.vis-item .vis-onUpdateTime-tooltip{position:absolute;background:#4f81bd;color:white;width:200px;text-align:center;white-space:nowrap;padding:5px;border-radius:1px;transition:.4s;-o-transition:.4s;-moz-transition:.4s;-webkit-transition:.4s}.vis-item .vis-delete,.vis-item .vis-delete-rtl{position:absolute;top:0;width:24px;height:24px;box-sizing:border-box;padding:0 5px;cursor:pointer;-webkit-transition:background .2s linear;-moz-transition:background .2s linear;-ms-transition:background .2s linear;-o-transition:background .2s linear;transition:background .2s linear}.vis-item .vis-delete{right:-24px}.vis-item .vis-delete-rtl{left:-24px}.vis-item .vis-delete:after,.vis-item .vis-delete-rtl:after{content:\"\\00D7\";color:red;font-family:arial,sans-serif;font-size:22px;font-weight:bold;-webkit-transition:color .2s linear;-moz-transition:color .2s linear;-ms-transition:color .2s linear;-o-transition:color .2s linear;transition:color .2s linear}.vis-item .vis-delete:hover,.vis-item .vis-delete-rtl:hover{background:red}.vis-item .vis-delete:hover:after,.vis-item .vis-delete-rtl:hover:after{color:white}.vis-item .vis-drag-center{position:absolute;width:100%;height:100%;top:0;left:0;cursor:move}.vis-item.vis-range .vis-drag-left{position:absolute;width:24px;max-width:20%;min-width:2px;height:100%;top:0;left:-4px;cursor:w-resize}.vis-item.vis-range .vis-drag-right{position:absolute;width:24px;max-width:20%;min-width:2px;height:100%;top:0;right:-4px;cursor:e-resize}.vis-range.vis-item.vis-readonly .vis-drag-left,.vis-range.vis-item.vis-readonly .vis-drag-right{cursor:auto}.vis-itemset{position:relative;padding:0;margin:0;box-sizing:border-box}.vis-itemset .vis-background,.vis-itemset .vis-foreground{position:absolute;width:100%;height:100%;overflow:visible}.vis-axis{position:absolute;width:100%;height:0;left:0;z-index:1}.vis-foreground .vis-group{position:relative;box-sizing:border-box;border-bottom:1px solid #bfbfbf}.vis-foreground .vis-group:last-child{border-bottom:0}.vis-nesting-group{cursor:pointer}.vis-nested-group{background:#f5f5f5}.vis-label.vis-nesting-group.expanded:before{content:\"\\25BC\"}.vis-label.vis-nesting-group.collapsed-rtl:before{content:\"\\25C0\"}.vis-label.vis-nesting-group.collapsed:before{content:\"\\25B6\"}.vis-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.vis-labelset{position:relative;overflow:hidden;box-sizing:border-box}.vis-labelset .vis-label{position:relative;left:0;top:0;width:100%;color:#4d4d4d;box-sizing:border-box}.vis-labelset .vis-label{border-bottom:1px solid #bfbfbf}.vis-labelset .vis-label.draggable{cursor:pointer}.vis-labelset .vis-label:last-child{border-bottom:0}.vis-labelset .vis-label .vis-inner{display:inline-block;padding:5px}.vis-labelset .vis-label .vis-inner.vis-hidden{padding:0}.vis-panel{position:absolute;padding:0;margin:0;box-sizing:border-box}.vis-panel.vis-center,.vis-panel.vis-left,.vis-panel.vis-right,.vis-panel.vis-top,.vis-panel.vis-bottom{border:1px #bfbfbf}.vis-panel.vis-center,.vis-panel.vis-left,.vis-panel.vis-right{border-top-style:solid;border-bottom-style:solid;overflow:hidden}.vis-left.vis-panel.vis-vertical-scroll,.vis-right.vis-panel.vis-vertical-scroll{height:100%;overflow-x:hidden;overflow-y:scroll}.vis-left.vis-panel.vis-vertical-scroll{direction:rtl}.vis-left.vis-panel.vis-vertical-scroll .vis-content{direction:ltr}.vis-right.vis-panel.vis-vertical-scroll{direction:ltr}.vis-right.vis-panel.vis-vertical-scroll .vis-content{direction:rtl}.vis-panel.vis-center,.vis-panel.vis-top,.vis-panel.vis-bottom{border-left-style:solid;border-right-style:solid}.vis-background{overflow:hidden}.vis-panel>.vis-content{position:relative}.vis-panel .vis-shadow{position:absolute;width:100%;height:1px;box-shadow:0 0 10px rgba(0,0,0,0.8)}.vis-panel .vis-shadow.vis-top{top:-1px;left:0}.vis-panel .vis-shadow.vis-bottom{bottom:-1px;left:0}.vis-graph-group0{fill:#4f81bd;fill-opacity:0;stroke-width:2px;stroke:#4f81bd}.vis-graph-group1{fill:#f79646;fill-opacity:0;stroke-width:2px;stroke:#f79646}.vis-graph-group2{fill:#8c51cf;fill-opacity:0;stroke-width:2px;stroke:#8c51cf}.vis-graph-group3{fill:#75c841;fill-opacity:0;stroke-width:2px;stroke:#75c841}.vis-graph-group4{fill:#ff0100;fill-opacity:0;stroke-width:2px;stroke:#ff0100}.vis-graph-group5{fill:#37d8e6;fill-opacity:0;stroke-width:2px;stroke:#37d8e6}.vis-graph-group6{fill:#042662;fill-opacity:0;stroke-width:2px;stroke:#042662}.vis-graph-group7{fill:#00ff26;fill-opacity:0;stroke-width:2px;stroke:#00ff26}.vis-graph-group8{fill:#f0f;fill-opacity:0;stroke-width:2px;stroke:#f0f}.vis-graph-group9{fill:#8f3938;fill-opacity:0;stroke-width:2px;stroke:#8f3938}.vis-timeline .vis-fill{fill-opacity:.1;stroke:none}.vis-timeline .vis-bar{fill-opacity:.5;stroke-width:1px}.vis-timeline .vis-point{stroke-width:2px;fill-opacity:1.0}.vis-timeline .vis-legend-background{stroke-width:1px;fill-opacity:.9;fill:#fff;stroke:#c2c2c2}.vis-timeline .vis-outline{stroke-width:1px;fill-opacity:1;fill:#fff;stroke:#e5e5e5}.vis-timeline .vis-icon-fill{fill-opacity:.3;stroke:none}.vis-time-axis{position:relative;overflow:hidden}.vis-time-axis.vis-foreground{top:0;left:0;width:100%}.vis-time-axis.vis-background{position:absolute;top:0;left:0;width:100%;height:100%}.vis-time-axis .vis-text{position:absolute;color:#4d4d4d;padding:3px;overflow:hidden;box-sizing:border-box;white-space:nowrap}.vis-time-axis .vis-text.vis-measure{position:absolute;padding-left:0;padding-right:0;margin-left:0;margin-right:0;visibility:hidden}.vis-time-axis .vis-grid.vis-vertical{position:absolute;border-left:1px solid}.vis-time-axis .vis-grid.vis-vertical-rtl{position:absolute;border-right:1px solid}.vis-time-axis .vis-grid.vis-minor{border-color:#e5e5e5}.vis-time-axis .vis-grid.vis-major{border-color:#bfbfbf}.vis-timeline{position:relative;border:1px solid #bfbfbf;overflow:hidden;padding:0;margin:0;box-sizing:border-box}" + }, + "$:/plugins/felixhayashi/vis/vis.js": { + "title": "$:/plugins/felixhayashi/vis/vis.js", + "text": "/*\\\ntitle: $:/plugins/felixhayashi/vis/vis.js\ntype: application/javascript\nmodule-type: library\n\n@preserve\n\\*/\n\n/*** TO AVOID STRANGE LIB ERRORS FROM BUBBLING UP *****************/\n\nif($tw.boot.tasks.trapErrors) {\n\n var defaultHandler = window.onerror;\n window.onerror = function(errorMsg, url, lineNumber) {\n \n if(errorMsg.indexOf(\"NS_ERROR_NOT_AVAILABLE\") !== -1\n && url == \"$:/plugins/felixhayashi/vis/vis.js\") {\n \n var text = \"Strange firefox related vis.js error (see #125)\";\n console.error(text, arguments);\n \n } else if(errorMsg.indexOf(\"Permission denied to access property\") !== -1) {\n \n var text = \"Strange firefox related vis.js error (see #163)\";\n console.error(text, arguments);\n \n } else if(defaultHandler) {\n \n defaultHandler.apply(this, arguments);\n \n }\n \n }\n \n}\n\n/******************************************************************/\n\n/**\n * vis.js\n * https://github.com/almende/vis\n *\n * A dynamic, browser-based visualization library.\n *\n * @version 4.21.0\n * @date 2017-10-12\n *\n * @license\n * Copyright (C) 2011-2017 Almende B.V, http://almende.com\n *\n * Vis.js is dual licensed under both\n *\n * * The Apache 2.0 License\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * and\n *\n * * The MIT License\n * http://opensource.org/licenses/MIT\n *\n * Vis.js may be distributed under either license.\n */\n\"use strict\";(function webpackUniversalModuleDefinition(root,factory){if(typeof exports===\"object\"&&typeof module===\"object\")module.exports=factory();else if(typeof define===\"function\"&&define.amd)define([],factory);else if(typeof exports===\"object\")exports[\"vis\"]=factory();else root[\"vis\"]=factory()})(this,function(){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var module=installedModules[moduleId]={i:moduleId,l:false,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=true;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){if(!__webpack_require__.o(exports,name)){Object.defineProperty(exports,name,{configurable:false,enumerable:true,get:getter})}};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module[\"default\"]}:function getModuleExports(){return module};__webpack_require__.d(getter,\"a\",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p=\"\";return __webpack_require__(__webpack_require__.s=123)}([function(module,exports,__webpack_require__){\"use strict\";exports.__esModule=true;exports.default=function(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError(\"Cannot call a class as a function\")}}},function(module,exports,__webpack_require__){\"use strict\";exports.__esModule=true;var _defineProperty=__webpack_require__(169);var _defineProperty2=_interopRequireDefault(_defineProperty);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if(\"value\"in descriptor)descriptor.writable=true;(0,_defineProperty2.default)(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}()},function(module,exports,__webpack_require__){\"use strict\";var _getIterator2=__webpack_require__(77);var _getIterator3=_interopRequireDefault(_getIterator2);var _create=__webpack_require__(29);var _create2=_interopRequireDefault(_create);var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var moment=__webpack_require__(9);var uuid=__webpack_require__(157);exports.isNumber=function(object){return object instanceof Number||typeof object==\"number\"};exports.recursiveDOMDelete=function(DOMobject){if(DOMobject){while(DOMobject.hasChildNodes()===true){exports.recursiveDOMDelete(DOMobject.firstChild);DOMobject.removeChild(DOMobject.firstChild)}}};exports.giveRange=function(min,max,total,value){if(max==min){return.5}else{var scale=1/(max-min);return Math.max(0,(value-min)*scale)}};exports.isString=function(object){return object instanceof String||typeof object==\"string\"};exports.isDate=function(object){if(object instanceof Date){return true}else if(exports.isString(object)){var match=ASPDateRegex.exec(object);if(match){return true}else if(!isNaN(Date.parse(object))){return true}}return false};exports.randomUUID=function(){return uuid.v4()};exports.assignAllKeys=function(obj,value){for(var prop in obj){if(obj.hasOwnProperty(prop)){if((0,_typeof3[\"default\"])(obj[prop])!==\"object\"){obj[prop]=value}}}};function copyOrDelete(a,b,prop,allowDeletion){var doDeletion=false;if(allowDeletion===true){doDeletion=b[prop]===null&&a[prop]!==undefined}if(doDeletion){delete a[prop]}else{a[prop]=b[prop]}}exports.fillIfDefined=function(a,b){var allowDeletion=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;for(var prop in a){if(b[prop]!==undefined){if(b[prop]===null||(0,_typeof3[\"default\"])(b[prop])!==\"object\"){copyOrDelete(a,b,prop,allowDeletion)}else{if((0,_typeof3[\"default\"])(a[prop])===\"object\"){exports.fillIfDefined(a[prop],b[prop],allowDeletion)}}}}};exports.extend=function(a,b){for(var i=1;i<arguments.length;i++){var other=arguments[i];for(var prop in other){if(other.hasOwnProperty(prop)){a[prop]=other[prop]}}}return a};exports.selectiveExtend=function(props,a,b){if(!Array.isArray(props)){throw new Error(\"Array with property names expected as first argument\")}for(var i=2;i<arguments.length;i++){var other=arguments[i];for(var p=0;p<props.length;p++){var prop=props[p];if(other&&other.hasOwnProperty(prop)){a[prop]=other[prop]}}}return a};exports.selectiveDeepExtend=function(props,a,b){var allowDeletion=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(Array.isArray(b)){throw new TypeError(\"Arrays are not supported by deepExtend\")}for(var p=0;p<props.length;p++){var prop=props[p];if(b.hasOwnProperty(prop)){if(b[prop]&&b[prop].constructor===Object){if(a[prop]===undefined){a[prop]={}}if(a[prop].constructor===Object){exports.deepExtend(a[prop],b[prop],false,allowDeletion)}else{copyOrDelete(a,b,prop,allowDeletion)}}else if(Array.isArray(b[prop])){throw new TypeError(\"Arrays are not supported by deepExtend\")}else{copyOrDelete(a,b,prop,allowDeletion)}}}return a};exports.selectiveNotDeepExtend=function(propsToExclude,a,b){var allowDeletion=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if(Array.isArray(b)){throw new TypeError(\"Arrays are not supported by deepExtend\")}for(var prop in b){if(!b.hasOwnProperty(prop))continue;if(propsToExclude.indexOf(prop)!==-1)continue;if(b[prop]&&b[prop].constructor===Object){if(a[prop]===undefined){a[prop]={}}if(a[prop].constructor===Object){exports.deepExtend(a[prop],b[prop])}else{copyOrDelete(a,b,prop,allowDeletion)}}else if(Array.isArray(b[prop])){a[prop]=[];for(var i=0;i<b[prop].length;i++){a[prop].push(b[prop][i])}}else{copyOrDelete(a,b,prop,allowDeletion)}}return a};exports.deepExtend=function(a,b){var protoExtend=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var allowDeletion=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;for(var prop in b){if(b.hasOwnProperty(prop)||protoExtend===true){if(b[prop]&&b[prop].constructor===Object){if(a[prop]===undefined){a[prop]={}}if(a[prop].constructor===Object){exports.deepExtend(a[prop],b[prop],protoExtend)}else{copyOrDelete(a,b,prop,allowDeletion)}}else if(Array.isArray(b[prop])){a[prop]=[];for(var i=0;i<b[prop].length;i++){a[prop].push(b[prop][i])}}else{copyOrDelete(a,b,prop,allowDeletion)}}}return a};exports.equalArray=function(a,b){if(a.length!=b.length)return false;for(var i=0,len=a.length;i<len;i++){if(a[i]!=b[i])return false}return true};exports.convert=function(object,type){var match;if(object===undefined){return undefined}if(object===null){return null}if(!type){return object}if(!(typeof type===\"string\")&&!(type instanceof String)){throw new Error(\"Type must be a string\")}switch(type){case\"boolean\":case\"Boolean\":return Boolean(object);case\"number\":case\"Number\":if(exports.isString(object)&&!isNaN(Date.parse(object))){return moment(object).valueOf()}else{return Number(object.valueOf())}case\"string\":case\"String\":return String(object);case\"Date\":if(exports.isNumber(object)){return new Date(object)}if(object instanceof Date){return new Date(object.valueOf())}else if(moment.isMoment(object)){return new Date(object.valueOf())}if(exports.isString(object)){match=ASPDateRegex.exec(object);if(match){return new Date(Number(match[1]))}else{return moment(new Date(object)).toDate()}}else{throw new Error(\"Cannot convert object of type \"+exports.getType(object)+\" to type Date\")}case\"Moment\":if(exports.isNumber(object)){return moment(object)}if(object instanceof Date){return moment(object.valueOf())}else if(moment.isMoment(object)){return moment(object)}if(exports.isString(object)){match=ASPDateRegex.exec(object);if(match){return moment(Number(match[1]))}else{return moment(object)}}else{throw new Error(\"Cannot convert object of type \"+exports.getType(object)+\" to type Date\")}case\"ISODate\":if(exports.isNumber(object)){return new Date(object)}else if(object instanceof Date){return object.toISOString()}else if(moment.isMoment(object)){return object.toDate().toISOString()}else if(exports.isString(object)){match=ASPDateRegex.exec(object);if(match){return new Date(Number(match[1])).toISOString()}else{return moment(object).format()}}else{throw new Error(\"Cannot convert object of type \"+exports.getType(object)+\" to type ISODate\")}case\"ASPDate\":if(exports.isNumber(object)){return\"/Date(\"+object+\")/\"}else if(object instanceof Date){return\"/Date(\"+object.valueOf()+\")/\"}else if(exports.isString(object)){match=ASPDateRegex.exec(object);var value;if(match){value=new Date(Number(match[1])).valueOf()}else{value=new Date(object).valueOf()}return\"/Date(\"+value+\")/\"}else{throw new Error(\"Cannot convert object of type \"+exports.getType(object)+\" to type ASPDate\")}default:throw new Error('Unknown type \"'+type+'\"')}};var ASPDateRegex=/^\\/?Date\\((\\-?\\d+)/i;exports.getType=function(object){var type=typeof object===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(object);if(type==\"object\"){if(object===null){return\"null\"}if(object instanceof Boolean){return\"Boolean\"}if(object instanceof Number){return\"Number\"}if(object instanceof String){return\"String\"}if(Array.isArray(object)){return\"Array\"}if(object instanceof Date){return\"Date\"}return\"Object\"}else if(type==\"number\"){return\"Number\"}else if(type==\"boolean\"){return\"Boolean\"}else if(type==\"string\"){return\"String\"}else if(type===undefined){return\"undefined\"}return type};exports.copyAndExtendArray=function(arr,newValue){var newArr=[];for(var i=0;i<arr.length;i++){newArr.push(arr[i])}newArr.push(newValue);return newArr};exports.copyArray=function(arr){var newArr=[];for(var i=0;i<arr.length;i++){newArr.push(arr[i])}return newArr};exports.getAbsoluteLeft=function(elem){return elem.getBoundingClientRect().left};exports.getAbsoluteRight=function(elem){return elem.getBoundingClientRect().right};exports.getAbsoluteTop=function(elem){return elem.getBoundingClientRect().top};exports.addClassName=function(elem,classNames){var classes=elem.className.split(\" \");var newClasses=classNames.split(\" \");classes=classes.concat(newClasses.filter(function(className){return classes.indexOf(className)<0}));elem.className=classes.join(\" \")};exports.removeClassName=function(elem,classNames){var classes=elem.className.split(\" \");var oldClasses=classNames.split(\" \");classes=classes.filter(function(className){return oldClasses.indexOf(className)<0});elem.className=classes.join(\" \")};exports.forEach=function(object,callback){var i,len;if(Array.isArray(object)){for(i=0,len=object.length;i<len;i++){callback(object[i],i,object)}}else{for(i in object){if(object.hasOwnProperty(i)){callback(object[i],i,object)}}}};exports.toArray=function(object){var array=[];for(var prop in object){if(object.hasOwnProperty(prop))array.push(object[prop])}return array};exports.updateProperty=function(object,key,value){if(object[key]!==value){object[key]=value;return true}else{return false}};exports.throttle=function(fn){var scheduled=false;return function throttled(){if(!scheduled){scheduled=true;requestAnimationFrame(function(){scheduled=false;fn()})}}};exports.addEventListener=function(element,action,listener,useCapture){if(element.addEventListener){if(useCapture===undefined)useCapture=false;if(action===\"mousewheel\"&&navigator.userAgent.indexOf(\"Firefox\")>=0){action=\"DOMMouseScroll\"}element.addEventListener(action,listener,useCapture)}else{element.attachEvent(\"on\"+action,listener)}};exports.removeEventListener=function(element,action,listener,useCapture){if(element.removeEventListener){if(useCapture===undefined)useCapture=false;if(action===\"mousewheel\"&&navigator.userAgent.indexOf(\"Firefox\")>=0){action=\"DOMMouseScroll\"}element.removeEventListener(action,listener,useCapture)}else{element.detachEvent(\"on\"+action,listener)}};exports.preventDefault=function(event){if(!event)event=window.event;if(event.preventDefault){event.preventDefault()}else{event.returnValue=false}};exports.getTarget=function(event){if(!event){event=window.event}var target;if(event.target){target=event.target}else if(event.srcElement){target=event.srcElement}if(target.nodeType!=undefined&&target.nodeType==3){target=target.parentNode}return target};exports.hasParent=function(element,parent){var e=element;while(e){if(e===parent){return true}e=e.parentNode}return false};exports.option={};exports.option.asBoolean=function(value,defaultValue){if(typeof value==\"function\"){value=value()}if(value!=null){return value!=false}return defaultValue||null};exports.option.asNumber=function(value,defaultValue){if(typeof value==\"function\"){value=value()}if(value!=null){return Number(value)||defaultValue||null}return defaultValue||null};exports.option.asString=function(value,defaultValue){if(typeof value==\"function\"){value=value()}if(value!=null){return String(value)}return defaultValue||null};exports.option.asSize=function(value,defaultValue){if(typeof value==\"function\"){value=value()}if(exports.isString(value)){return value}else if(exports.isNumber(value)){return value+\"px\"}else{return defaultValue||null}};exports.option.asElement=function(value,defaultValue){if(typeof value==\"function\"){value=value()}return value||defaultValue||null};exports.hexToRGB=function(hex){var shorthandRegex=/^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;hex=hex.replace(shorthandRegex,function(m,r,g,b){return r+r+g+g+b+b});var result=/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);return result?{r:parseInt(result[1],16),g:parseInt(result[2],16),b:parseInt(result[3],16)}:null};exports.overrideOpacity=function(color,opacity){var rgb;if(color.indexOf(\"rgba\")!=-1){return color}else if(color.indexOf(\"rgb\")!=-1){rgb=color.substr(color.indexOf(\"(\")+1).replace(\")\",\"\").split(\",\");return\"rgba(\"+rgb[0]+\",\"+rgb[1]+\",\"+rgb[2]+\",\"+opacity+\")\"}else{rgb=exports.hexToRGB(color);if(rgb==null){return color}else{return\"rgba(\"+rgb.r+\",\"+rgb.g+\",\"+rgb.b+\",\"+opacity+\")\"}}};exports.RGBToHex=function(red,green,blue){return\"#\"+((1<<24)+(red<<16)+(green<<8)+blue).toString(16).slice(1)};exports.parseColor=function(color){var c;if(exports.isString(color)===true){if(exports.isValidRGB(color)===true){var rgb=color.substr(4).substr(0,color.length-5).split(\",\").map(function(value){return parseInt(value)});color=exports.RGBToHex(rgb[0],rgb[1],rgb[2])}if(exports.isValidHex(color)===true){var hsv=exports.hexToHSV(color);var lighterColorHSV={h:hsv.h,s:hsv.s*.8,v:Math.min(1,hsv.v*1.02)};var darkerColorHSV={h:hsv.h,s:Math.min(1,hsv.s*1.25),v:hsv.v*.8};var darkerColorHex=exports.HSVToHex(darkerColorHSV.h,darkerColorHSV.s,darkerColorHSV.v);var lighterColorHex=exports.HSVToHex(lighterColorHSV.h,lighterColorHSV.s,lighterColorHSV.v);c={background:color,border:darkerColorHex,highlight:{background:lighterColorHex,border:darkerColorHex},hover:{background:lighterColorHex,border:darkerColorHex}}}else{c={background:color,border:color,highlight:{background:color,border:color},hover:{background:color,border:color}}}}else{c={};c.background=color.background||undefined;c.border=color.border||undefined;if(exports.isString(color.highlight)){c.highlight={border:color.highlight,background:color.highlight}}else{c.highlight={};c.highlight.background=color.highlight&&color.highlight.background||undefined;c.highlight.border=color.highlight&&color.highlight.border||undefined}if(exports.isString(color.hover)){c.hover={border:color.hover,background:color.hover}}else{c.hover={};c.hover.background=color.hover&&color.hover.background||undefined;c.hover.border=color.hover&&color.hover.border||undefined}}return c};exports.RGBToHSV=function(red,green,blue){red=red/255;green=green/255;blue=blue/255;var minRGB=Math.min(red,Math.min(green,blue));var maxRGB=Math.max(red,Math.max(green,blue));if(minRGB==maxRGB){return{h:0,s:0,v:minRGB}}var d=red==minRGB?green-blue:blue==minRGB?red-green:blue-red;var h=red==minRGB?3:blue==minRGB?1:5;var hue=60*(h-d/(maxRGB-minRGB))/360;var saturation=(maxRGB-minRGB)/maxRGB;var value=maxRGB;return{h:hue,s:saturation,v:value}};var cssUtil={split:function split(cssText){var styles={};cssText.split(\";\").forEach(function(style){if(style.trim()!=\"\"){var parts=style.split(\":\");var key=parts[0].trim();var value=parts[1].trim();styles[key]=value}});return styles},join:function join(styles){return(0,_keys2[\"default\"])(styles).map(function(key){return key+\": \"+styles[key]}).join(\"; \")}};exports.addCssText=function(element,cssText){var currentStyles=cssUtil.split(element.style.cssText);var newStyles=cssUtil.split(cssText);var styles=exports.extend(currentStyles,newStyles);element.style.cssText=cssUtil.join(styles)};exports.removeCssText=function(element,cssText){var styles=cssUtil.split(element.style.cssText);var removeStyles=cssUtil.split(cssText);for(var key in removeStyles){if(removeStyles.hasOwnProperty(key)){delete styles[key]}}element.style.cssText=cssUtil.join(styles)};exports.HSVToRGB=function(h,s,v){var r,g,b;var i=Math.floor(h*6);var f=h*6-i;var p=v*(1-s);var q=v*(1-f*s);var t=v*(1-(1-f)*s);switch(i%6){case 0:r=v,g=t,b=p;break;case 1:r=q,g=v,b=p;break;case 2:r=p,g=v,b=t;break;case 3:r=p,g=q,b=v;break;case 4:r=t,g=p,b=v;break;case 5:r=v,g=p,b=q;break}return{r:Math.floor(r*255),g:Math.floor(g*255),b:Math.floor(b*255)}};exports.HSVToHex=function(h,s,v){var rgb=exports.HSVToRGB(h,s,v);return exports.RGBToHex(rgb.r,rgb.g,rgb.b)};exports.hexToHSV=function(hex){var rgb=exports.hexToRGB(hex);return exports.RGBToHSV(rgb.r,rgb.g,rgb.b)};exports.isValidHex=function(hex){var isOk=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(hex);return isOk};exports.isValidRGB=function(rgb){rgb=rgb.replace(\" \",\"\");var isOk=/rgb\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3})\\)/i.test(rgb);return isOk};exports.isValidRGBA=function(rgba){rgba=rgba.replace(\" \",\"\");var isOk=/rgba\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3}),(.{1,3})\\)/i.test(rgba);return isOk};exports.selectiveBridgeObject=function(fields,referenceObject){if(referenceObject!==null&&(typeof referenceObject===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(referenceObject))===\"object\"){var objectTo=(0,_create2[\"default\"])(referenceObject);for(var i=0;i<fields.length;i++){if(referenceObject.hasOwnProperty(fields[i])){if((0,_typeof3[\"default\"])(referenceObject[fields[i]])==\"object\"){objectTo[fields[i]]=exports.bridgeObject(referenceObject[fields[i]])}}}return objectTo}else{return null}};exports.bridgeObject=function(referenceObject){if(referenceObject!==null&&(typeof referenceObject===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(referenceObject))===\"object\"){var objectTo=(0,_create2[\"default\"])(referenceObject);if(referenceObject instanceof Element){objectTo=referenceObject}else{objectTo=(0,_create2[\"default\"])(referenceObject);for(var i in referenceObject){if(referenceObject.hasOwnProperty(i)){if((0,_typeof3[\"default\"])(referenceObject[i])==\"object\"){objectTo[i]=exports.bridgeObject(referenceObject[i])}}}}return objectTo}else{return null}};exports.insertSort=function(a,compare){for(var i=0;i<a.length;i++){var k=a[i];for(var j=i;j>0&&compare(k,a[j-1])<0;j--){a[j]=a[j-1]}a[j]=k}return a};exports.mergeOptions=function(mergeTarget,options,option){var globalOptions=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var isPresent=function isPresent(obj){return obj!==null&&obj!==undefined};var isObject=function isObject(obj){return obj!==null&&(typeof obj===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(obj))===\"object\"};var isEmpty=function isEmpty(obj){for(var x in obj){if(obj.hasOwnProperty(x))return false}return true};if(!isObject(mergeTarget)){throw new Error(\"Parameter mergeTarget must be an object\")}if(!isObject(options)){throw new Error(\"Parameter options must be an object\")}if(!isPresent(option)){throw new Error(\"Parameter option must have a value\")}if(!isObject(globalOptions)){throw new Error(\"Parameter globalOptions must be an object\")}var doMerge=function doMerge(target,options,option){if(!isObject(target[option])){target[option]={}}var src=options[option];var dst=target[option];for(var prop in src){if(src.hasOwnProperty(prop)){dst[prop]=src[prop]}}};var srcOption=options[option];var globalPassed=isObject(globalOptions)&&!isEmpty(globalOptions);var globalOption=globalPassed?globalOptions[option]:undefined;var globalEnabled=globalOption?globalOption.enabled:undefined;if(srcOption===undefined){return}if(typeof srcOption===\"boolean\"){if(!isObject(mergeTarget[option])){mergeTarget[option]={}}mergeTarget[option].enabled=srcOption;return}if(srcOption===null&&!isObject(mergeTarget[option])){if(isPresent(globalOption)){mergeTarget[option]=(0,_create2[\"default\"])(globalOption)}else{return}}if(!isObject(srcOption)){return}var enabled=true;if(srcOption.enabled!==undefined){enabled=srcOption.enabled}else{if(globalEnabled!==undefined){enabled=globalOption.enabled}}doMerge(mergeTarget,options,option);mergeTarget[option].enabled=enabled};exports.binarySearchCustom=function(orderedItems,comparator,field,field2){var maxIterations=1e4;var iteration=0;var low=0;var high=orderedItems.length-1;while(low<=high&&iteration<maxIterations){var middle=Math.floor((low+high)/2);var item=orderedItems[middle];var value=field2===undefined?item[field]:item[field][field2];var searchResult=comparator(value);if(searchResult==0){return middle}else if(searchResult==-1){low=middle+1}else{high=middle-1}iteration++}return-1};exports.binarySearchValue=function(orderedItems,target,field,sidePreference,comparator){var maxIterations=1e4;var iteration=0;var low=0;var high=orderedItems.length-1;var prevValue,value,nextValue,middle;comparator=comparator!=undefined?comparator:function(a,b){return a==b?0:a<b?-1:1};while(low<=high&&iteration<maxIterations){middle=Math.floor(.5*(high+low));prevValue=orderedItems[Math.max(0,middle-1)][field];value=orderedItems[middle][field];nextValue=orderedItems[Math.min(orderedItems.length-1,middle+1)][field];if(comparator(value,target)==0){return middle}else if(comparator(prevValue,target)<0&&comparator(value,target)>0){return sidePreference==\"before\"?Math.max(0,middle-1):middle}else if(comparator(value,target)<0&&comparator(nextValue,target)>0){return sidePreference==\"before\"?middle:Math.min(orderedItems.length-1,middle+1)}else{if(comparator(value,target)<0){low=middle+1}else{high=middle-1}}iteration++}return-1};exports.easingFunctions={linear:function linear(t){return t},easeInQuad:function easeInQuad(t){return t*t},easeOutQuad:function easeOutQuad(t){return t*(2-t)},easeInOutQuad:function easeInOutQuad(t){return t<.5?2*t*t:-1+(4-2*t)*t},easeInCubic:function easeInCubic(t){return t*t*t},easeOutCubic:function easeOutCubic(t){return--t*t*t+1},easeInOutCubic:function easeInOutCubic(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function easeInQuart(t){return t*t*t*t},easeOutQuart:function easeOutQuart(t){return 1- --t*t*t*t},easeInOutQuart:function easeInOutQuart(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function easeInQuint(t){return t*t*t*t*t},easeOutQuint:function easeOutQuint(t){return 1+--t*t*t*t*t},easeInOutQuint:function easeInOutQuint(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};exports.getScrollBarWidth=function(){var inner=document.createElement(\"p\");inner.style.width=\"100%\";inner.style.height=\"200px\";var outer=document.createElement(\"div\");outer.style.position=\"absolute\";outer.style.top=\"0px\";outer.style.left=\"0px\";outer.style.visibility=\"hidden\";outer.style.width=\"200px\";outer.style.height=\"150px\";outer.style.overflow=\"hidden\";outer.appendChild(inner);document.body.appendChild(outer);var w1=inner.offsetWidth;outer.style.overflow=\"scroll\";var w2=inner.offsetWidth;if(w1==w2)w2=outer.clientWidth;document.body.removeChild(outer);return w1-w2};exports.topMost=function(pile,accessors){var candidate=void 0;if(!Array.isArray(accessors)){accessors=[accessors]}var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=(0,_getIterator3[\"default\"])(pile),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var member=_step.value;if(member){candidate=member[accessors[0]];for(var i=1;i<accessors.length;i++){if(candidate){candidate=candidate[accessors[i]]}else{continue}}if(typeof candidate!=\"undefined\"){break}}}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator[\"return\"]){_iterator[\"return\"]()}}finally{if(_didIteratorError){throw _iteratorError}}}return candidate}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(194),__esModule:true}},function(module,exports,__webpack_require__){\"use strict\";exports.__esModule=true;var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(self,call){if(!self){throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\")}return call&&((typeof call===\"undefined\"?\"undefined\":(0,_typeof3.default)(call))===\"object\"||typeof call===\"function\")?call:self}},function(module,exports,__webpack_require__){\"use strict\";exports.__esModule=true;var _setPrototypeOf=__webpack_require__(196);var _setPrototypeOf2=_interopRequireDefault(_setPrototypeOf);var _create=__webpack_require__(29);var _create2=_interopRequireDefault(_create);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(subClass,superClass){if(typeof superClass!==\"function\"&&superClass!==null){throw new TypeError(\"Super expression must either be null or a function, not \"+(typeof superClass===\"undefined\"?\"undefined\":(0,_typeof3.default)(superClass)))}subClass.prototype=(0,_create2.default)(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)_setPrototypeOf2.default?(0,_setPrototypeOf2.default)(subClass,superClass):subClass.__proto__=superClass}},function(module,exports,__webpack_require__){\"use strict\";exports.__esModule=true;var _iterator=__webpack_require__(142);var _iterator2=_interopRequireDefault(_iterator);var _symbol=__webpack_require__(144);var _symbol2=_interopRequireDefault(_symbol);var _typeof=typeof _symbol2.default===\"function\"&&typeof _iterator2.default===\"symbol\"?function(obj){return typeof obj}:function(obj){return obj&&typeof _symbol2.default===\"function\"&&obj.constructor===_symbol2.default&&obj!==_symbol2.default.prototype?\"symbol\":typeof obj};function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=typeof _symbol2.default===\"function\"&&_typeof(_iterator2.default)===\"symbol\"?function(obj){return typeof obj===\"undefined\"?\"undefined\":_typeof(obj)}:function(obj){return obj&&typeof _symbol2.default===\"function\"&&obj.constructor===_symbol2.default&&obj!==_symbol2.default.prototype?\"symbol\":typeof obj===\"undefined\"?\"undefined\":_typeof(obj)}},function(module,exports){var core=module.exports={version:\"2.5.1\"};if(typeof __e==\"number\")__e=core},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(140),__esModule:true}},function(module,exports,__webpack_require__){\"use strict\";module.exports=typeof window!==\"undefined\"&&window[\"moment\"]||__webpack_require__(154)},function(module,exports,__webpack_require__){\"use strict\";function hammerMock(){var noop=function noop(){};return{on:noop,off:noop,destroy:noop,emit:noop,get:function get(m){return{set:noop}}}}if(typeof window!==\"undefined\"){var propagating=__webpack_require__(175);var Hammer=window[\"Hammer\"]||__webpack_require__(176);module.exports=propagating(Hammer,{preventDefault:\"mouse\"})}else{module.exports=function(){return hammerMock()}}},function(module,exports,__webpack_require__){\"use strict\";var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Queue=__webpack_require__(43);function DataSet(data,options){if(data&&!Array.isArray(data)){options=data;data=null}this._options=options||{};this._data={};this.length=0;this._fieldId=this._options.fieldId||\"id\";this._type={};if(this._options.type){var fields=(0,_keys2[\"default\"])(this._options.type);for(var i=0,len=fields.length;i<len;i++){var field=fields[i];var value=this._options.type[field];if(value==\"Date\"||value==\"ISODate\"||value==\"ASPDate\"){this._type[field]=\"Date\"}else{this._type[field]=value}}}this._subscribers={};if(data){this.add(data)}this.setOptions(options)}DataSet.prototype.setOptions=function(options){if(options&&options.queue!==undefined){if(options.queue===false){if(this._queue){this._queue.destroy();delete this._queue}}else{if(!this._queue){this._queue=Queue.extend(this,{replace:[\"add\",\"update\",\"remove\"]})}if((0,_typeof3[\"default\"])(options.queue)===\"object\"){this._queue.setOptions(options.queue)}}}};DataSet.prototype.on=function(event,callback){var subscribers=this._subscribers[event];if(!subscribers){subscribers=[];this._subscribers[event]=subscribers}subscribers.push({callback:callback})};DataSet.prototype.off=function(event,callback){var subscribers=this._subscribers[event];if(subscribers){this._subscribers[event]=subscribers.filter(function(listener){return listener.callback!=callback})}};DataSet.prototype._trigger=function(event,params,senderId){if(event==\"*\"){throw new Error(\"Cannot trigger event *\")}var subscribers=[];if(event in this._subscribers){subscribers=subscribers.concat(this._subscribers[event])}if(\"*\"in this._subscribers){subscribers=subscribers.concat(this._subscribers[\"*\"])}for(var i=0,len=subscribers.length;i<len;i++){var subscriber=subscribers[i];if(subscriber.callback){subscriber.callback(event,params,senderId||null)}}};DataSet.prototype.add=function(data,senderId){var addedIds=[],id,me=this;if(Array.isArray(data)){for(var i=0,len=data.length;i<len;i++){id=me._addItem(data[i]);addedIds.push(id)}}else if(data&&(typeof data===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(data))===\"object\"){id=me._addItem(data);addedIds.push(id)}else{throw new Error(\"Unknown dataType\")}if(addedIds.length){this._trigger(\"add\",{items:addedIds},senderId)}return addedIds};DataSet.prototype.update=function(data,senderId){var addedIds=[];var updatedIds=[];var oldData=[];var updatedData=[];var me=this;var fieldId=me._fieldId;var addOrUpdate=function addOrUpdate(item){var id=item[fieldId];if(me._data[id]){var oldItem=util.extend({},me._data[id]);id=me._updateItem(item);updatedIds.push(id);updatedData.push(item);oldData.push(oldItem)}else{id=me._addItem(item);addedIds.push(id)}};if(Array.isArray(data)){for(var i=0,len=data.length;i<len;i++){if(data[i]&&(0,_typeof3[\"default\"])(data[i])===\"object\"){addOrUpdate(data[i])}else{console.warn(\"Ignoring input item, which is not an object at index \"+i)}}}else if(data&&(typeof data===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(data))===\"object\"){addOrUpdate(data)}else{throw new Error(\"Unknown dataType\")}if(addedIds.length){this._trigger(\"add\",{items:addedIds},senderId)}if(updatedIds.length){var props={items:updatedIds,oldData:oldData,data:updatedData};this._trigger(\"update\",props,senderId)}return addedIds.concat(updatedIds)};DataSet.prototype.get=function(args){var me=this;var id,ids,options;var firstType=util.getType(arguments[0]);if(firstType==\"String\"||firstType==\"Number\"){id=arguments[0];options=arguments[1]}else if(firstType==\"Array\"){\nids=arguments[0];options=arguments[1]}else{options=arguments[0]}var returnType;if(options&&options.returnType){var allowedValues=[\"Array\",\"Object\"];returnType=allowedValues.indexOf(options.returnType)==-1?\"Array\":options.returnType}else{returnType=\"Array\"}var type=options&&options.type||this._options.type;var filter=options&&options.filter;var items=[],item,itemIds,itemId,i,len;if(id!=undefined){item=me._getItem(id,type);if(item&&filter&&!filter(item)){item=null}}else if(ids!=undefined){for(i=0,len=ids.length;i<len;i++){item=me._getItem(ids[i],type);if(!filter||filter(item)){items.push(item)}}}else{itemIds=(0,_keys2[\"default\"])(this._data);for(i=0,len=itemIds.length;i<len;i++){itemId=itemIds[i];item=me._getItem(itemId,type);if(!filter||filter(item)){items.push(item)}}}if(options&&options.order&&id==undefined){this._sort(items,options.order)}if(options&&options.fields){var fields=options.fields;if(id!=undefined){item=this._filterFields(item,fields)}else{for(i=0,len=items.length;i<len;i++){items[i]=this._filterFields(items[i],fields)}}}if(returnType==\"Object\"){var result={},resultant;for(i=0,len=items.length;i<len;i++){resultant=items[i];result[resultant.id]=resultant}return result}else{if(id!=undefined){return item}else{return items}}};DataSet.prototype.getIds=function(options){var data=this._data,filter=options&&options.filter,order=options&&options.order,type=options&&options.type||this._options.type,itemIds=(0,_keys2[\"default\"])(data),i,len,id,item,items,ids=[];if(filter){if(order){items=[];for(i=0,len=itemIds.length;i<len;i++){id=itemIds[i];item=this._getItem(id,type);if(filter(item)){items.push(item)}}this._sort(items,order);for(i=0,len=items.length;i<len;i++){ids.push(items[i][this._fieldId])}}else{for(i=0,len=itemIds.length;i<len;i++){id=itemIds[i];item=this._getItem(id,type);if(filter(item)){ids.push(item[this._fieldId])}}}}else{if(order){items=[];for(i=0,len=itemIds.length;i<len;i++){id=itemIds[i];items.push(data[id])}this._sort(items,order);for(i=0,len=items.length;i<len;i++){ids.push(items[i][this._fieldId])}}else{for(i=0,len=itemIds.length;i<len;i++){id=itemIds[i];item=data[id];ids.push(item[this._fieldId])}}}return ids};DataSet.prototype.getDataSet=function(){return this};DataSet.prototype.forEach=function(callback,options){var filter=options&&options.filter,type=options&&options.type||this._options.type,data=this._data,itemIds=(0,_keys2[\"default\"])(data),i,len,item,id;if(options&&options.order){var items=this.get(options);for(i=0,len=items.length;i<len;i++){item=items[i];id=item[this._fieldId];callback(item,id)}}else{for(i=0,len=itemIds.length;i<len;i++){id=itemIds[i];item=this._getItem(id,type);if(!filter||filter(item)){callback(item,id)}}}};DataSet.prototype.map=function(callback,options){var filter=options&&options.filter,type=options&&options.type||this._options.type,mappedItems=[],data=this._data,itemIds=(0,_keys2[\"default\"])(data),i,len,id,item;for(i=0,len=itemIds.length;i<len;i++){id=itemIds[i];item=this._getItem(id,type);if(!filter||filter(item)){mappedItems.push(callback(item,id))}}if(options&&options.order){this._sort(mappedItems,options.order)}return mappedItems};DataSet.prototype._filterFields=function(item,fields){if(!item){return item}var filteredItem={},itemFields=(0,_keys2[\"default\"])(item),len=itemFields.length,i,field;if(Array.isArray(fields)){for(i=0;i<len;i++){field=itemFields[i];if(fields.indexOf(field)!=-1){filteredItem[field]=item[field]}}}else{for(i=0;i<len;i++){field=itemFields[i];if(fields.hasOwnProperty(field)){filteredItem[fields[field]]=item[field]}}}return filteredItem};DataSet.prototype._sort=function(items,order){if(util.isString(order)){var name=order;items.sort(function(a,b){var av=a[name];var bv=b[name];return av>bv?1:av<bv?-1:0})}else if(typeof order===\"function\"){items.sort(order)}else{throw new TypeError(\"Order must be a function or a string\")}};DataSet.prototype.remove=function(id,senderId){var removedIds=[],removedItems=[],ids=[],i,len,itemId,item;ids=Array.isArray(id)?id:[id];for(i=0,len=ids.length;i<len;i++){item=this._remove(ids[i]);if(item){itemId=item[this._fieldId];if(itemId!=undefined){removedIds.push(itemId);removedItems.push(item)}}}if(removedIds.length){this._trigger(\"remove\",{items:removedIds,oldData:removedItems},senderId)}return removedIds};DataSet.prototype._remove=function(id){var item,ident;if(util.isNumber(id)||util.isString(id)){ident=id}else if(id&&(typeof id===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(id))===\"object\"){ident=id[this._fieldId]}if(ident!==undefined&&this._data[ident]){item=this._data[ident];delete this._data[ident];this.length--;return item}return null};DataSet.prototype.clear=function(senderId){var i,len;var ids=(0,_keys2[\"default\"])(this._data);var items=[];for(i=0,len=ids.length;i<len;i++){items.push(this._data[ids[i]])}this._data={};this.length=0;this._trigger(\"remove\",{items:ids,oldData:items},senderId);return ids};DataSet.prototype.max=function(field){var data=this._data,itemIds=(0,_keys2[\"default\"])(data),max=null,maxField=null,i,len;for(i=0,len=itemIds.length;i<len;i++){var id=itemIds[i];var item=data[id];var itemField=item[field];if(itemField!=null&&(!max||itemField>maxField)){max=item;maxField=itemField}}return max};DataSet.prototype.min=function(field){var data=this._data,itemIds=(0,_keys2[\"default\"])(data),min=null,minField=null,i,len;for(i=0,len=itemIds.length;i<len;i++){var id=itemIds[i];var item=data[id];var itemField=item[field];if(itemField!=null&&(!min||itemField<minField)){min=item;minField=itemField}}return min};DataSet.prototype.distinct=function(field){var data=this._data;var itemIds=(0,_keys2[\"default\"])(data);var values=[];var fieldType=this._options.type&&this._options.type[field]||null;var count=0;var i,j,len;for(i=0,len=itemIds.length;i<len;i++){var id=itemIds[i];var item=data[id];var value=item[field];var exists=false;for(j=0;j<count;j++){if(values[j]==value){exists=true;break}}if(!exists&&value!==undefined){values[count]=value;count++}}if(fieldType){for(i=0,len=values.length;i<len;i++){values[i]=util.convert(values[i],fieldType)}}return values};DataSet.prototype._addItem=function(item){var id=item[this._fieldId];if(id!=undefined){if(this._data[id]){throw new Error(\"Cannot add item: item with id \"+id+\" already exists\")}}else{id=util.randomUUID();item[this._fieldId]=id}var d={},fields=(0,_keys2[\"default\"])(item),i,len;for(i=0,len=fields.length;i<len;i++){var field=fields[i];var fieldType=this._type[field];d[field]=util.convert(item[field],fieldType)}this._data[id]=d;this.length++;return id};DataSet.prototype._getItem=function(id,types){var field,value,i,len;var raw=this._data[id];if(!raw){return null}var converted={},fields=(0,_keys2[\"default\"])(raw);if(types){for(i=0,len=fields.length;i<len;i++){field=fields[i];value=raw[field];converted[field]=util.convert(value,types[field])}}else{for(i=0,len=fields.length;i<len;i++){field=fields[i];value=raw[field];converted[field]=value}}if(!converted[this._fieldId]){converted[this._fieldId]=raw.id}return converted};DataSet.prototype._updateItem=function(item){var id=item[this._fieldId];if(id==undefined){throw new Error(\"Cannot update item: item has no id (item: \"+(0,_stringify2[\"default\"])(item)+\")\")}var d=this._data[id];if(!d){throw new Error(\"Cannot update item: no item with id \"+id+\" found\")}var fields=(0,_keys2[\"default\"])(item);for(var i=0,len=fields.length;i<len;i++){var field=fields[i];var fieldType=this._type[field];d[field]=util.convert(item[field],fieldType)}return id};module.exports=DataSet},function(module,exports,__webpack_require__){\"use strict\";var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var DataSet=__webpack_require__(11);function DataView(data,options){this._data=null;this._ids={};this.length=0;this._options=options||{};this._fieldId=\"id\";this._subscribers={};var me=this;this.listener=function(){me._onEvent.apply(me,arguments)};this.setData(data)}DataView.prototype.setData=function(data){var ids,id,i,len,items;if(this._data){if(this._data.off){this._data.off(\"*\",this.listener)}ids=this._data.getIds({filter:this._options&&this._options.filter});items=[];for(i=0,len=ids.length;i<len;i++){items.push(this._data._data[ids[i]])}this._ids={};this.length=0;this._trigger(\"remove\",{items:ids,oldData:items})}this._data=data;if(this._data){this._fieldId=this._options.fieldId||this._data&&this._data.options&&this._data.options.fieldId||\"id\";ids=this._data.getIds({filter:this._options&&this._options.filter});for(i=0,len=ids.length;i<len;i++){id=ids[i];this._ids[id]=true}this.length=ids.length;this._trigger(\"add\",{items:ids});if(this._data.on){this._data.on(\"*\",this.listener)}}};DataView.prototype.refresh=function(){var id,i,len;var ids=this._data.getIds({filter:this._options&&this._options.filter}),oldIds=(0,_keys2[\"default\"])(this._ids),newIds={},addedIds=[],removedIds=[],removedItems=[];for(i=0,len=ids.length;i<len;i++){id=ids[i];newIds[id]=true;if(!this._ids[id]){addedIds.push(id);this._ids[id]=true}}for(i=0,len=oldIds.length;i<len;i++){id=oldIds[i];if(!newIds[id]){removedIds.push(id);removedItems.push(this._data._data[id]);delete this._ids[id]}}this.length+=addedIds.length-removedIds.length;if(addedIds.length){this._trigger(\"add\",{items:addedIds})}if(removedIds.length){this._trigger(\"remove\",{items:removedIds,oldData:removedItems})}};DataView.prototype.get=function(args){var me=this;var ids,options,data;var firstType=util.getType(arguments[0]);if(firstType==\"String\"||firstType==\"Number\"||firstType==\"Array\"){ids=arguments[0];options=arguments[1];data=arguments[2]}else{options=arguments[0];data=arguments[1]}var viewOptions=util.extend({},this._options,options);if(this._options.filter&&options&&options.filter){viewOptions.filter=function(item){return me._options.filter(item)&&options.filter(item)}}var getArguments=[];if(ids!=undefined){getArguments.push(ids)}getArguments.push(viewOptions);getArguments.push(data);return this._data&&this._data.get.apply(this._data,getArguments)};DataView.prototype.getIds=function(options){var ids;if(this._data){var defaultFilter=this._options.filter;var filter;if(options&&options.filter){if(defaultFilter){filter=function filter(item){return defaultFilter(item)&&options.filter(item)}}else{filter=options.filter}}else{filter=defaultFilter}ids=this._data.getIds({filter:filter,order:options&&options.order})}else{ids=[]}return ids};DataView.prototype.map=function(callback,options){var mappedItems=[];if(this._data){var defaultFilter=this._options.filter;var filter;if(options&&options.filter){if(defaultFilter){filter=function filter(item){return defaultFilter(item)&&options.filter(item)}}else{filter=options.filter}}else{filter=defaultFilter}mappedItems=this._data.map(callback,{filter:filter,order:options&&options.order})}else{mappedItems=[]}return mappedItems};DataView.prototype.getDataSet=function(){var dataSet=this;while(dataSet instanceof DataView){dataSet=dataSet._data}return dataSet||null};DataView.prototype._onEvent=function(event,params,senderId){var i,len,id,item;var ids=params&¶ms.items;var addedIds=[],updatedIds=[],removedIds=[],oldItems=[],updatedItems=[],removedItems=[];if(ids&&this._data){switch(event){case\"add\":for(i=0,len=ids.length;i<len;i++){id=ids[i];item=this.get(id);if(item){this._ids[id]=true;addedIds.push(id)}}break;case\"update\":for(i=0,len=ids.length;i<len;i++){id=ids[i];item=this.get(id);if(item){if(this._ids[id]){updatedIds.push(id);updatedItems.push(params.data[i]);oldItems.push(params.oldData[i])}else{this._ids[id]=true;addedIds.push(id)}}else{if(this._ids[id]){delete this._ids[id];removedIds.push(id);removedItems.push(params.oldData[i])}else{}}}break;case\"remove\":for(i=0,len=ids.length;i<len;i++){id=ids[i];if(this._ids[id]){delete this._ids[id];removedIds.push(id);removedItems.push(params.oldData[i])}}break}this.length+=addedIds.length-removedIds.length;if(addedIds.length){this._trigger(\"add\",{items:addedIds},senderId)}if(updatedIds.length){this._trigger(\"update\",{items:updatedIds,oldData:oldItems,data:updatedItems},senderId)}if(removedIds.length){this._trigger(\"remove\",{items:removedIds,oldData:removedItems},senderId)}}};DataView.prototype.on=DataSet.prototype.on;DataView.prototype.off=DataSet.prototype.off;DataView.prototype._trigger=DataSet.prototype._trigger;DataView.prototype.subscribe=DataView.prototype.on;DataView.prototype.unsubscribe=DataView.prototype.off;module.exports=DataView},function(module,exports,__webpack_require__){var store=__webpack_require__(57)(\"wks\");var uid=__webpack_require__(40);var Symbol=__webpack_require__(18).Symbol;var USE_SYMBOL=typeof Symbol==\"function\";var $exports=module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)(\"Symbol.\"+name))};$exports.store=store},function(module,exports,__webpack_require__){\"use strict\";exports.prepareElements=function(JSONcontainer){for(var elementType in JSONcontainer){if(JSONcontainer.hasOwnProperty(elementType)){JSONcontainer[elementType].redundant=JSONcontainer[elementType].used;JSONcontainer[elementType].used=[]}}};exports.cleanupElements=function(JSONcontainer){for(var elementType in JSONcontainer){if(JSONcontainer.hasOwnProperty(elementType)){if(JSONcontainer[elementType].redundant){for(var i=0;i<JSONcontainer[elementType].redundant.length;i++){JSONcontainer[elementType].redundant[i].parentNode.removeChild(JSONcontainer[elementType].redundant[i])}JSONcontainer[elementType].redundant=[]}}}};exports.resetElements=function(JSONcontainer){exports.prepareElements(JSONcontainer);exports.cleanupElements(JSONcontainer);exports.prepareElements(JSONcontainer)};exports.getSVGElement=function(elementType,JSONcontainer,svgContainer){var element;if(JSONcontainer.hasOwnProperty(elementType)){if(JSONcontainer[elementType].redundant.length>0){element=JSONcontainer[elementType].redundant[0];JSONcontainer[elementType].redundant.shift()}else{element=document.createElementNS(\"http://www.w3.org/2000/svg\",elementType);svgContainer.appendChild(element)}}else{element=document.createElementNS(\"http://www.w3.org/2000/svg\",elementType);JSONcontainer[elementType]={used:[],redundant:[]};svgContainer.appendChild(element)}JSONcontainer[elementType].used.push(element);return element};exports.getDOMElement=function(elementType,JSONcontainer,DOMContainer,insertBefore){var element;if(JSONcontainer.hasOwnProperty(elementType)){if(JSONcontainer[elementType].redundant.length>0){element=JSONcontainer[elementType].redundant[0];JSONcontainer[elementType].redundant.shift()}else{element=document.createElement(elementType);if(insertBefore!==undefined){DOMContainer.insertBefore(element,insertBefore)}else{DOMContainer.appendChild(element)}}}else{element=document.createElement(elementType);JSONcontainer[elementType]={used:[],redundant:[]};if(insertBefore!==undefined){DOMContainer.insertBefore(element,insertBefore)}else{DOMContainer.appendChild(element)}}JSONcontainer[elementType].used.push(element);return element};exports.drawPoint=function(x,y,groupTemplate,JSONcontainer,svgContainer,labelObj){var point;if(groupTemplate.style==\"circle\"){point=exports.getSVGElement(\"circle\",JSONcontainer,svgContainer);point.setAttributeNS(null,\"cx\",x);point.setAttributeNS(null,\"cy\",y);point.setAttributeNS(null,\"r\",.5*groupTemplate.size)}else{point=exports.getSVGElement(\"rect\",JSONcontainer,svgContainer);point.setAttributeNS(null,\"x\",x-.5*groupTemplate.size);point.setAttributeNS(null,\"y\",y-.5*groupTemplate.size);point.setAttributeNS(null,\"width\",groupTemplate.size);point.setAttributeNS(null,\"height\",groupTemplate.size)}if(groupTemplate.styles!==undefined){point.setAttributeNS(null,\"style\",groupTemplate.styles)}point.setAttributeNS(null,\"class\",groupTemplate.className+\" vis-point\");if(labelObj){var label=exports.getSVGElement(\"text\",JSONcontainer,svgContainer);if(labelObj.xOffset){x=x+labelObj.xOffset}if(labelObj.yOffset){y=y+labelObj.yOffset}if(labelObj.content){label.textContent=labelObj.content}if(labelObj.className){label.setAttributeNS(null,\"class\",labelObj.className+\" vis-label\")}label.setAttributeNS(null,\"x\",x);label.setAttributeNS(null,\"y\",y)}return point};exports.drawBar=function(x,y,width,height,className,JSONcontainer,svgContainer,style){if(height!=0){if(height<0){height*=-1;y-=height}var rect=exports.getSVGElement(\"rect\",JSONcontainer,svgContainer);rect.setAttributeNS(null,\"x\",x-.5*width);rect.setAttributeNS(null,\"y\",y);rect.setAttributeNS(null,\"width\",width);rect.setAttributeNS(null,\"height\",height);rect.setAttributeNS(null,\"class\",className);if(style){rect.setAttributeNS(null,\"style\",style)}}}},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.printStyle=undefined;var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var errorFound=false;var allOptions=void 0;var printStyle=\"background: #FFeeee; color: #dd0000\";var Validator=function(){function Validator(){(0,_classCallCheck3[\"default\"])(this,Validator)}(0,_createClass3[\"default\"])(Validator,null,[{key:\"validate\",value:function validate(options,referenceOptions,subObject){errorFound=false;allOptions=referenceOptions;var usedOptions=referenceOptions;if(subObject!==undefined){usedOptions=referenceOptions[subObject]}Validator.parse(options,usedOptions,[]);return errorFound}},{key:\"parse\",value:function parse(options,referenceOptions,path){for(var option in options){if(options.hasOwnProperty(option)){Validator.check(option,options,referenceOptions,path)}}}},{key:\"check\",value:function check(option,options,referenceOptions,path){if(referenceOptions[option]===undefined&&referenceOptions.__any__===undefined){Validator.getSuggestion(option,referenceOptions,path);return}var referenceOption=option;var is_object=true;if(referenceOptions[option]===undefined&&referenceOptions.__any__!==undefined){referenceOption=\"__any__\";is_object=Validator.getType(options[option])===\"object\"}else{}var refOptionObj=referenceOptions[referenceOption];if(is_object&&refOptionObj.__type__!==undefined){refOptionObj=refOptionObj.__type__}Validator.checkFields(option,options,referenceOptions,referenceOption,refOptionObj,path)}},{key:\"checkFields\",value:function checkFields(option,options,referenceOptions,referenceOption,refOptionObj,path){var log=function log(message){console.log(\"%c\"+message+Validator.printLocation(path,option),printStyle)};var optionType=Validator.getType(options[option]);var refOptionType=refOptionObj[optionType];if(refOptionType!==undefined){if(Validator.getType(refOptionType)===\"array\"&&refOptionType.indexOf(options[option])===-1){log('Invalid option detected in \"'+option+'\".'+\" Allowed values are:\"+Validator.print(refOptionType)+' not \"'+options[option]+'\". ');errorFound=true}else if(optionType===\"object\"&&referenceOption!==\"__any__\"){path=util.copyAndExtendArray(path,option);Validator.parse(options[option],referenceOptions[referenceOption],path)}}else if(refOptionObj[\"any\"]===undefined){log('Invalid type received for \"'+option+'\". Expected: '+Validator.print((0,_keys2[\"default\"])(refOptionObj))+\". Received [\"+optionType+'] \"'+options[option]+'\"');errorFound=true}}},{key:\"getType\",value:function getType(object){var type=typeof object===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(object);if(type===\"object\"){if(object===null){return\"null\"}if(object instanceof Boolean){return\"boolean\"}if(object instanceof Number){return\"number\"}if(object instanceof String){return\"string\"}if(Array.isArray(object)){return\"array\"}if(object instanceof Date){return\"date\"}if(object.nodeType!==undefined){return\"dom\"}if(object._isAMomentObject===true){return\"moment\"}return\"object\"}else if(type===\"number\"){return\"number\"}else if(type===\"boolean\"){return\"boolean\"}else if(type===\"string\"){return\"string\"}else if(type===undefined){return\"undefined\"}return type}},{key:\"getSuggestion\",value:function getSuggestion(option,options,path){var localSearch=Validator.findInOptions(option,options,path,false);var globalSearch=Validator.findInOptions(option,allOptions,[],true);var localSearchThreshold=8;var globalSearchThreshold=4;var msg=void 0;if(localSearch.indexMatch!==undefined){msg=\" in \"+Validator.printLocation(localSearch.path,option,\"\")+'Perhaps it was incomplete? Did you mean: \"'+localSearch.indexMatch+'\"?\\n\\n'}else if(globalSearch.distance<=globalSearchThreshold&&localSearch.distance>globalSearch.distance){msg=\" in \"+Validator.printLocation(localSearch.path,option,\"\")+\"Perhaps it was misplaced? Matching option found at: \"+Validator.printLocation(globalSearch.path,globalSearch.closestMatch,\"\")}else if(localSearch.distance<=localSearchThreshold){msg='. Did you mean \"'+localSearch.closestMatch+'\"?'+Validator.printLocation(localSearch.path,option)}else{msg=\". Did you mean one of these: \"+Validator.print((0,_keys2[\"default\"])(options))+Validator.printLocation(path,option)}console.log('%cUnknown option detected: \"'+option+'\"'+msg,printStyle);errorFound=true}},{key:\"findInOptions\",value:function findInOptions(option,options,path){var recursive=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var min=1e9;var closestMatch=\"\";var closestMatchPath=[];var lowerCaseOption=option.toLowerCase();var indexMatch=undefined;for(var op in options){var distance=void 0;if(options[op].__type__!==undefined&&recursive===true){var result=Validator.findInOptions(option,options[op],util.copyAndExtendArray(path,op));if(min>result.distance){closestMatch=result.closestMatch;closestMatchPath=result.path;min=result.distance;indexMatch=result.indexMatch}}else{if(op.toLowerCase().indexOf(lowerCaseOption)!==-1){indexMatch=op}distance=Validator.levenshteinDistance(option,op);if(min>distance){closestMatch=op;closestMatchPath=util.copyArray(path);min=distance}}}return{closestMatch:closestMatch,path:closestMatchPath,distance:min,indexMatch:indexMatch}}},{key:\"printLocation\",value:function printLocation(path,option){var prefix=arguments.length>2&&arguments[2]!==undefined?arguments[2]:\"Problem value found at: \\n\";var str=\"\\n\\n\"+prefix+\"options = {\\n\";for(var i=0;i<path.length;i++){for(var j=0;j<i+1;j++){str+=\" \"}str+=path[i]+\": {\\n\"}for(var _j=0;_j<path.length+1;_j++){str+=\" \"}str+=option+\"\\n\";for(var _i=0;_i<path.length+1;_i++){for(var _j2=0;_j2<path.length-_i;_j2++){str+=\" \"}str+=\"}\\n\"}return str+\"\\n\\n\"}},{key:\"print\",value:function print(options){return(0,_stringify2[\"default\"])(options).replace(/(\\\")|(\\[)|(\\])|(,\"__type__\")/g,\"\").replace(/(\\,)/g,\", \")}},{key:\"levenshteinDistance\",value:function levenshteinDistance(a,b){if(a.length===0)return b.length;if(b.length===0)return a.length;var matrix=[];var i;for(i=0;i<=b.length;i++){matrix[i]=[i]}var j;for(j=0;j<=a.length;j++){matrix[0][j]=j}for(i=1;i<=b.length;i++){for(j=1;j<=a.length;j++){if(b.charAt(i-1)==a.charAt(j-1)){matrix[i][j]=matrix[i-1][j-1]}else{matrix[i][j]=Math.min(matrix[i-1][j-1]+1,Math.min(matrix[i][j-1]+1,matrix[i-1][j]+1))}}}return matrix[b.length][a.length]}}]);return Validator}();exports[\"default\"]=Validator;exports.printStyle=printStyle},function(module,exports,__webpack_require__){\"use strict\";var util=__webpack_require__(2);function Component(body,options){this.options=null;this.props=null}Component.prototype.setOptions=function(options){if(options){util.extend(this.options,options)}};Component.prototype.redraw=function(){return false};Component.prototype.destroy=function(){};Component.prototype._isResized=function(){var resized=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;this.props._previousWidth=this.props.width;this.props._previousHeight=this.props.height;return resized};module.exports=Component},function(module,exports,__webpack_require__){var global=__webpack_require__(18);var core=__webpack_require__(7);var ctx=__webpack_require__(80);var hide=__webpack_require__(26);var PROTOTYPE=\"prototype\";var $export=function(type,name,source){var IS_FORCED=type&$export.F;var IS_GLOBAL=type&$export.G;var IS_STATIC=type&$export.S;var IS_PROTO=type&$export.P;var IS_BIND=type&$export.B;var IS_WRAP=type&$export.W;var exports=IS_GLOBAL?core:core[name]||(core[name]={});var expProto=exports[PROTOTYPE];var target=IS_GLOBAL?global:IS_STATIC?global[name]:(global[name]||{})[PROTOTYPE];var key,own,out;if(IS_GLOBAL)source=name;for(key in source){own=!IS_FORCED&&target&&target[key]!==undefined;if(own&&key in exports)continue;out=own?target[key]:source[key];exports[key]=IS_GLOBAL&&typeof target[key]!=\"function\"?source[key]:IS_BIND&&own?ctx(out,global):IS_WRAP&&target[key]==out?function(C){var F=function(a,b,c){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(a);case 2:return new C(a,b)}return new C(a,b,c)}return C.apply(this,arguments)};F[PROTOTYPE]=C[PROTOTYPE];return F}(out):IS_PROTO&&typeof out==\"function\"?ctx(Function.call,out):out;if(IS_PROTO){(exports.virtual||(exports.virtual={}))[key]=out;if(type&$export.R&&expProto&&!expProto[key])hide(expProto,key,out)}}};$export.F=1;$export.G=2;$export.S=4;$export.P=8;$export.B=16;$export.W=32;$export.U=64;$export.R=128;module.exports=$export},function(module,exports){var global=module.exports=typeof window!=\"undefined\"&&window.Math==Math?window:typeof self!=\"undefined\"&&self.Math==Math?self:Function(\"return this\")();if(typeof __g==\"number\")__g=global},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(160),__esModule:true}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(27);var IE8_DOM_DEFINE=__webpack_require__(81);var toPrimitive=__webpack_require__(53);var dP=Object.defineProperty;exports.f=__webpack_require__(21)?Object.defineProperty:function defineProperty(O,P,Attributes){anObject(O);P=toPrimitive(P,true);anObject(Attributes);if(IE8_DOM_DEFINE)try{return dP(O,P,Attributes)}catch(e){}if(\"get\"in Attributes||\"set\"in Attributes)throw TypeError(\"Accessors not supported!\");if(\"value\"in Attributes)O[P]=Attributes.value;return O}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(28)(function(){return Object.defineProperty({},\"a\",{get:function(){return 7}}).a!=7})},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var NodeBase=function(){function NodeBase(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,NodeBase);this.body=body;this.labelModule=labelModule;this.setOptions(options);this.top=undefined;this.left=undefined;this.height=undefined;this.width=undefined;this.radius=undefined;this.margin=undefined;this.refreshNeeded=true;this.boundingBox={top:0,left:0,right:0,bottom:0}}(0,_createClass3[\"default\"])(NodeBase,[{key:\"setOptions\",value:function setOptions(options){this.options=options}},{key:\"_setMargins\",value:function _setMargins(labelModule){this.margin={};if(this.options.margin){if((0,_typeof3[\"default\"])(this.options.margin)==\"object\"){this.margin.top=this.options.margin.top;this.margin.right=this.options.margin.right;this.margin.bottom=this.options.margin.bottom;this.margin.left=this.options.margin.left}else{this.margin.top=this.options.margin;this.margin.right=this.options.margin;this.margin.bottom=this.options.margin;this.margin.left=this.options.margin}}labelModule.adjustSizes(this.margin)}},{key:\"_distanceToBorder\",value:function _distanceToBorder(ctx,angle){var borderWidth=this.options.borderWidth;this.resize(ctx);return Math.min(Math.abs(this.width/2/Math.cos(angle)),Math.abs(this.height/2/Math.sin(angle)))+borderWidth}},{key:\"enableShadow\",value:function enableShadow(ctx,values){if(values.shadow){ctx.shadowColor=values.shadowColor;ctx.shadowBlur=values.shadowSize;ctx.shadowOffsetX=values.shadowX;ctx.shadowOffsetY=values.shadowY}}},{key:\"disableShadow\",value:function disableShadow(ctx,values){if(values.shadow){ctx.shadowColor=\"rgba(0,0,0,0)\";ctx.shadowBlur=0;ctx.shadowOffsetX=0;ctx.shadowOffsetY=0}}},{key:\"enableBorderDashes\",value:function enableBorderDashes(ctx,values){if(values.borderDashes!==false){if(ctx.setLineDash!==undefined){var dashes=values.borderDashes;if(dashes===true){dashes=[5,15]}ctx.setLineDash(dashes)}else{console.warn(\"setLineDash is not supported in this browser. The dashed borders cannot be used.\");this.options.shapeProperties.borderDashes=false;values.borderDashes=false}}}},{key:\"disableBorderDashes\",value:function disableBorderDashes(ctx,values){if(values.borderDashes!==false){if(ctx.setLineDash!==undefined){ctx.setLineDash([0])}else{console.warn(\"setLineDash is not supported in this browser. The dashed borders cannot be used.\");this.options.shapeProperties.borderDashes=false;values.borderDashes=false}}}},{key:\"needsRefresh\",value:function needsRefresh(selected,hover){if(this.refreshNeeded===true){this.refreshNeeded=false;return true}return this.width===undefined||this.labelModule.differentState(selected,hover)}},{key:\"initContextForDraw\",value:function initContextForDraw(ctx,values){var borderWidth=values.borderWidth/this.body.view.scale;ctx.lineWidth=Math.min(this.width,borderWidth);ctx.strokeStyle=values.borderColor;ctx.fillStyle=values.color}},{key:\"performStroke\",value:function performStroke(ctx,values){var borderWidth=values.borderWidth/this.body.view.scale;ctx.save();if(borderWidth>0){this.enableBorderDashes(ctx,values);ctx.stroke();this.disableBorderDashes(ctx,values)}ctx.restore()}},{key:\"performFill\",value:function performFill(ctx,values){this.enableShadow(ctx,values);ctx.fill();this.disableShadow(ctx,values);this.performStroke(ctx,values)}},{key:\"_addBoundingBoxMargin\",value:function _addBoundingBoxMargin(margin){this.boundingBox.left-=margin;this.boundingBox.top-=margin;this.boundingBox.bottom+=margin;this.boundingBox.right+=margin}},{key:\"_updateBoundingBox\",value:function _updateBoundingBox(x,y,ctx,selected,hover){if(ctx!==undefined){this.resize(ctx,selected,hover)}this.left=x-this.width/2;this.top=y-this.height/2;this.boundingBox.left=this.left;this.boundingBox.top=this.top;this.boundingBox.bottom=this.top+this.height;this.boundingBox.right=this.left+this.width}},{key:\"updateBoundingBox\",value:function updateBoundingBox(x,y,ctx,selected,hover){this._updateBoundingBox(x,y,ctx,selected,hover)}},{key:\"getDimensionsFromLabel\",value:function getDimensionsFromLabel(ctx,selected,hover){this.textSize=this.labelModule.getTextSize(ctx,selected,hover);var width=this.textSize.width;var height=this.textSize.height;var DEFAULT_SIZE=14;if(width===0){width=DEFAULT_SIZE;height=DEFAULT_SIZE}return{width:width,height:height}}}]);return NodeBase}();exports[\"default\"]=NodeBase},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2)\n;var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _NodeBase2=__webpack_require__(23);var _NodeBase3=_interopRequireDefault(_NodeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var ShapeBase=function(_NodeBase){(0,_inherits3[\"default\"])(ShapeBase,_NodeBase);function ShapeBase(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,ShapeBase);return(0,_possibleConstructorReturn3[\"default\"])(this,(ShapeBase.__proto__||(0,_getPrototypeOf2[\"default\"])(ShapeBase)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(ShapeBase,[{key:\"resize\",value:function resize(ctx){var selected=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.selected;var hover=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.hover;var values=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{size:this.options.size};if(this.needsRefresh(selected,hover)){this.labelModule.getTextSize(ctx,selected,hover);var size=2*values.size;this.width=size;this.height=size;this.radius=.5*this.width}}},{key:\"_drawShape\",value:function _drawShape(ctx,shape,sizeMultiplier,x,y,selected,hover,values){this.resize(ctx,selected,hover,values);this.left=x-this.width/2;this.top=y-this.height/2;this.initContextForDraw(ctx,values);ctx[shape](x,y,values.size);this.performFill(ctx,values);if(this.options.label!==undefined){this.labelModule.calculateLabelSize(ctx,selected,hover,x,y,\"hanging\");var yLabel=y+.5*this.height+.5*this.labelModule.size.height;this.labelModule.draw(ctx,x,yLabel,selected,hover,\"hanging\")}this.updateBoundingBox(x,y)}},{key:\"updateBoundingBox\",value:function updateBoundingBox(x,y){this.boundingBox.top=y-this.options.size;this.boundingBox.left=x-this.options.size;this.boundingBox.right=x+this.options.size;this.boundingBox.bottom=y+this.options.size;if(this.options.label!==undefined&&this.labelModule.size.width>0){this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left);this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width);this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height)}}}]);return ShapeBase}(_NodeBase3[\"default\"]);exports[\"default\"]=ShapeBase},function(module,exports,__webpack_require__){var IObject=__webpack_require__(78);var defined=__webpack_require__(51);module.exports=function(it){return IObject(defined(it))}},function(module,exports,__webpack_require__){var dP=__webpack_require__(20);var createDesc=__webpack_require__(39);module.exports=__webpack_require__(21)?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){object[key]=value;return object}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(32);module.exports=function(it){if(!isObject(it))throw TypeError(it+\" is not an object!\");return it}},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return true}}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(138),__esModule:true}},function(module,exports,__webpack_require__){\"use strict\";exports.__esModule=true;var _isIterable2=__webpack_require__(188);var _isIterable3=_interopRequireDefault(_isIterable2);var _getIterator2=__webpack_require__(77);var _getIterator3=_interopRequireDefault(_getIterator2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=(0,_getIterator3.default)(arr),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i[\"return\"])_i[\"return\"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr)){return arr}else if((0,_isIterable3.default)(Object(arr))){return sliceIterator(arr,i)}else{throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}}()},function(module,exports){module.exports={}},function(module,exports){module.exports=function(it){return typeof it===\"object\"?it!==null:typeof it===\"function\"}},function(module,exports,__webpack_require__){var $keys=__webpack_require__(84);var enumBugKeys=__webpack_require__(58);module.exports=Object.keys||function keys(O){return $keys(O,enumBugKeys)}},function(module,exports,__webpack_require__){\"use strict\";function Point3d(x,y,z){this.x=x!==undefined?x:0;this.y=y!==undefined?y:0;this.z=z!==undefined?z:0}Point3d.subtract=function(a,b){var sub=new Point3d;sub.x=a.x-b.x;sub.y=a.y-b.y;sub.z=a.z-b.z;return sub};Point3d.add=function(a,b){var sum=new Point3d;sum.x=a.x+b.x;sum.y=a.y+b.y;sum.z=a.z+b.z;return sum};Point3d.avg=function(a,b){return new Point3d((a.x+b.x)/2,(a.y+b.y)/2,(a.z+b.z)/2)};Point3d.crossProduct=function(a,b){var crossproduct=new Point3d;crossproduct.x=a.y*b.z-a.z*b.y;crossproduct.y=a.z*b.x-a.x*b.z;crossproduct.z=a.x*b.y-a.y*b.x;return crossproduct};Point3d.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)};module.exports=Point3d},function(module,exports,__webpack_require__){\"use strict\";var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(root,factory){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__===\"function\"?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else if(typeof exports===\"object\"){module.exports=factory()}else{root.keycharm=factory()}})(this,function(){function keycharm(options){var preventDefault=options&&options.preventDefault||false;var container=options&&options.container||window;var _exportFunctions={};var _bound={keydown:{},keyup:{}};var _keys={};var i;for(i=97;i<=122;i++){_keys[String.fromCharCode(i)]={code:65+(i-97),shift:false}}for(i=65;i<=90;i++){_keys[String.fromCharCode(i)]={code:i,shift:true}}for(i=0;i<=9;i++){_keys[\"\"+i]={code:48+i,shift:false}}for(i=1;i<=12;i++){_keys[\"F\"+i]={code:111+i,shift:false}}for(i=0;i<=9;i++){_keys[\"num\"+i]={code:96+i,shift:false}}_keys[\"num*\"]={code:106,shift:false};_keys[\"num+\"]={code:107,shift:false};_keys[\"num-\"]={code:109,shift:false};_keys[\"num/\"]={code:111,shift:false};_keys[\"num.\"]={code:110,shift:false};_keys[\"left\"]={code:37,shift:false};_keys[\"up\"]={code:38,shift:false};_keys[\"right\"]={code:39,shift:false};_keys[\"down\"]={code:40,shift:false};_keys[\"space\"]={code:32,shift:false};_keys[\"enter\"]={code:13,shift:false};_keys[\"shift\"]={code:16,shift:undefined};_keys[\"esc\"]={code:27,shift:false};_keys[\"backspace\"]={code:8,shift:false};_keys[\"tab\"]={code:9,shift:false};_keys[\"ctrl\"]={code:17,shift:false};_keys[\"alt\"]={code:18,shift:false};_keys[\"delete\"]={code:46,shift:false};_keys[\"pageup\"]={code:33,shift:false};_keys[\"pagedown\"]={code:34,shift:false};_keys[\"=\"]={code:187,shift:false};_keys[\"-\"]={code:189,shift:false};_keys[\"]\"]={code:221,shift:false};_keys[\"[\"]={code:219,shift:false};var down=function(event){handleEvent(event,\"keydown\")};var up=function(event){handleEvent(event,\"keyup\")};var handleEvent=function(event,type){if(_bound[type][event.keyCode]!==undefined){var bound=_bound[type][event.keyCode];for(var i=0;i<bound.length;i++){if(bound[i].shift===undefined){bound[i].fn(event)}else if(bound[i].shift==true&&event.shiftKey==true){bound[i].fn(event)}else if(bound[i].shift==false&&event.shiftKey==false){bound[i].fn(event)}}if(preventDefault==true){event.preventDefault()}}};_exportFunctions.bind=function(key,callback,type){if(type===undefined){type=\"keydown\"}if(_keys[key]===undefined){throw new Error(\"unsupported key: \"+key)}if(_bound[type][_keys[key].code]===undefined){_bound[type][_keys[key].code]=[]}_bound[type][_keys[key].code].push({fn:callback,shift:_keys[key].shift})};_exportFunctions.bindAll=function(callback,type){if(type===undefined){type=\"keydown\"}for(var key in _keys){if(_keys.hasOwnProperty(key)){_exportFunctions.bind(key,callback,type)}}};_exportFunctions.getKey=function(event){for(var key in _keys){if(_keys.hasOwnProperty(key)){if(event.shiftKey==true&&_keys[key].shift==true&&event.keyCode==_keys[key].code){return key}else if(event.shiftKey==false&&_keys[key].shift==false&&event.keyCode==_keys[key].code){return key}else if(event.keyCode==_keys[key].code&&key==\"shift\"){return key}}}return\"unknown key, currently not supported\"};_exportFunctions.unbind=function(key,callback,type){if(type===undefined){type=\"keydown\"}if(_keys[key]===undefined){throw new Error(\"unsupported key: \"+key)}if(callback!==undefined){var newBindings=[];var bound=_bound[type][_keys[key].code];if(bound!==undefined){for(var i=0;i<bound.length;i++){if(!(bound[i].fn==callback&&bound[i].shift==_keys[key].shift)){newBindings.push(_bound[type][_keys[key].code][i])}}}_bound[type][_keys[key].code]=newBindings}else{_bound[type][_keys[key].code]=[]}};_exportFunctions.reset=function(){_bound={keydown:{},keyup:{}}};_exportFunctions.destroy=function(){_bound={keydown:{},keyup:{}};container.removeEventListener(\"keydown\",down,true);container.removeEventListener(\"keyup\",up,true)};container.addEventListener(\"keydown\",down,true);container.addEventListener(\"keyup\",up,true);return _exportFunctions}return keycharm})},function(module,exports,__webpack_require__){\"use strict\";exports.convertHiddenOptions=function(moment,body,hiddenDates){if(hiddenDates&&!Array.isArray(hiddenDates)){return exports.convertHiddenOptions(moment,body,[hiddenDates])}body.hiddenDates=[];if(hiddenDates){if(Array.isArray(hiddenDates)==true){for(var i=0;i<hiddenDates.length;i++){if(hiddenDates[i].repeat===undefined){var dateItem={};dateItem.start=moment(hiddenDates[i].start).toDate().valueOf();dateItem.end=moment(hiddenDates[i].end).toDate().valueOf();body.hiddenDates.push(dateItem)}}body.hiddenDates.sort(function(a,b){return a.start-b.start})}}};exports.updateHiddenDates=function(moment,body,hiddenDates){if(hiddenDates&&!Array.isArray(hiddenDates)){return exports.updateHiddenDates(moment,body,[hiddenDates])}if(hiddenDates&&body.domProps.centerContainer.width!==undefined){exports.convertHiddenOptions(moment,body,hiddenDates);var start=moment(body.range.start);var end=moment(body.range.end);var totalRange=body.range.end-body.range.start;var pixelTime=totalRange/body.domProps.centerContainer.width;for(var i=0;i<hiddenDates.length;i++){if(hiddenDates[i].repeat!==undefined){var startDate=moment(hiddenDates[i].start);var endDate=moment(hiddenDates[i].end);if(startDate._d==\"Invalid Date\"){throw new Error(\"Supplied start date is not valid: \"+hiddenDates[i].start)}if(endDate._d==\"Invalid Date\"){throw new Error(\"Supplied end date is not valid: \"+hiddenDates[i].end)}var duration=endDate-startDate;if(duration>=4*pixelTime){var offset=0;var runUntil=end.clone();switch(hiddenDates[i].repeat){case\"daily\":if(startDate.day()!=endDate.day()){offset=1}startDate.dayOfYear(start.dayOfYear());startDate.year(start.year());startDate.subtract(7,\"days\");endDate.dayOfYear(start.dayOfYear());endDate.year(start.year());endDate.subtract(7-offset,\"days\");runUntil.add(1,\"weeks\");break;case\"weekly\":var dayOffset=endDate.diff(startDate,\"days\");var day=startDate.day();startDate.date(start.date());startDate.month(start.month());startDate.year(start.year());endDate=startDate.clone();startDate.day(day);endDate.day(day);endDate.add(dayOffset,\"days\");startDate.subtract(1,\"weeks\");endDate.subtract(1,\"weeks\");runUntil.add(1,\"weeks\");break;case\"monthly\":if(startDate.month()!=endDate.month()){offset=1}startDate.month(start.month());startDate.year(start.year());startDate.subtract(1,\"months\");endDate.month(start.month());endDate.year(start.year());endDate.subtract(1,\"months\");endDate.add(offset,\"months\");runUntil.add(1,\"months\");break;case\"yearly\":if(startDate.year()!=endDate.year()){offset=1}startDate.year(start.year());startDate.subtract(1,\"years\");endDate.year(start.year());endDate.subtract(1,\"years\");endDate.add(offset,\"years\");runUntil.add(1,\"years\");break;default:console.log(\"Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:\",hiddenDates[i].repeat);return}while(startDate<runUntil){body.hiddenDates.push({start:startDate.valueOf(),end:endDate.valueOf()});switch(hiddenDates[i].repeat){case\"daily\":startDate.add(1,\"days\");endDate.add(1,\"days\");break;case\"weekly\":startDate.add(1,\"weeks\");endDate.add(1,\"weeks\");break;case\"monthly\":startDate.add(1,\"months\");endDate.add(1,\"months\");break;case\"yearly\":startDate.add(1,\"y\");endDate.add(1,\"y\");break;default:console.log(\"Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:\",hiddenDates[i].repeat);return}}body.hiddenDates.push({start:startDate.valueOf(),end:endDate.valueOf()})}}}exports.removeDuplicates(body);var startHidden=exports.isHidden(body.range.start,body.hiddenDates);var endHidden=exports.isHidden(body.range.end,body.hiddenDates);var rangeStart=body.range.start;var rangeEnd=body.range.end;if(startHidden.hidden==true){rangeStart=body.range.startToFront==true?startHidden.startDate-1:startHidden.endDate+1}if(endHidden.hidden==true){rangeEnd=body.range.endToFront==true?endHidden.startDate-1:endHidden.endDate+1}if(startHidden.hidden==true||endHidden.hidden==true){body.range._applyRange(rangeStart,rangeEnd)}}};exports.removeDuplicates=function(body){var hiddenDates=body.hiddenDates;var safeDates=[];for(var i=0;i<hiddenDates.length;i++){for(var j=0;j<hiddenDates.length;j++){if(i!=j&&hiddenDates[j].remove!=true&&hiddenDates[i].remove!=true){if(hiddenDates[j].start>=hiddenDates[i].start&&hiddenDates[j].end<=hiddenDates[i].end){hiddenDates[j].remove=true}else if(hiddenDates[j].start>=hiddenDates[i].start&&hiddenDates[j].start<=hiddenDates[i].end){hiddenDates[i].end=hiddenDates[j].end;hiddenDates[j].remove=true}else if(hiddenDates[j].end>=hiddenDates[i].start&&hiddenDates[j].end<=hiddenDates[i].end){hiddenDates[i].start=hiddenDates[j].start;hiddenDates[j].remove=true}}}}for(i=0;i<hiddenDates.length;i++){if(hiddenDates[i].remove!==true){safeDates.push(hiddenDates[i])}}body.hiddenDates=safeDates;body.hiddenDates.sort(function(a,b){return a.start-b.start})};exports.printDates=function(dates){for(var i=0;i<dates.length;i++){console.log(i,new Date(dates[i].start),new Date(dates[i].end),dates[i].start,dates[i].end,dates[i].remove)}};exports.stepOverHiddenDates=function(moment,timeStep,previousTime){var stepInHidden=false;var currentValue=timeStep.current.valueOf();for(var i=0;i<timeStep.hiddenDates.length;i++){var startDate=timeStep.hiddenDates[i].start;var endDate=timeStep.hiddenDates[i].end;if(currentValue>=startDate&¤tValue<endDate){stepInHidden=true;break}}if(stepInHidden==true&¤tValue<timeStep._end.valueOf()&¤tValue!=previousTime){var prevValue=moment(previousTime);var newValue=moment(endDate);if(prevValue.year()!=newValue.year()){timeStep.switchedYear=true}else if(prevValue.month()!=newValue.month()){timeStep.switchedMonth=true}else if(prevValue.dayOfYear()!=newValue.dayOfYear()){timeStep.switchedDay=true}timeStep.current=newValue}};exports.toScreen=function(Core,time,width){var conversion;if(Core.body.hiddenDates.length==0){conversion=Core.range.conversion(width);return(time.valueOf()-conversion.offset)*conversion.scale}else{var hidden=exports.isHidden(time,Core.body.hiddenDates);if(hidden.hidden==true){time=hidden.startDate}var duration=exports.getHiddenDurationBetween(Core.body.hiddenDates,Core.range.start,Core.range.end);if(time<Core.range.start){conversion=Core.range.conversion(width,duration);var hiddenBeforeStart=exports.getHiddenDurationBeforeStart(Core.body.hiddenDates,time,conversion.offset);time=Core.options.moment(time).toDate().valueOf();time=time+hiddenBeforeStart;return-(conversion.offset-time.valueOf())*conversion.scale}else if(time>Core.range.end){var rangeAfterEnd={start:Core.range.start,end:time};time=exports.correctTimeForHidden(Core.options.moment,Core.body.hiddenDates,rangeAfterEnd,time);conversion=Core.range.conversion(width,duration);return(time.valueOf()-conversion.offset)*conversion.scale}else{time=exports.correctTimeForHidden(Core.options.moment,Core.body.hiddenDates,Core.range,time);conversion=Core.range.conversion(width,duration);return(time.valueOf()-conversion.offset)*conversion.scale}}};exports.toTime=function(Core,x,width){if(Core.body.hiddenDates.length==0){var conversion=Core.range.conversion(width);return new Date(x/conversion.scale+conversion.offset)}else{var hiddenDuration=exports.getHiddenDurationBetween(Core.body.hiddenDates,Core.range.start,Core.range.end);var totalDuration=Core.range.end-Core.range.start-hiddenDuration;var partialDuration=totalDuration*x/width;var accumulatedHiddenDuration=exports.getAccumulatedHiddenDuration(Core.body.hiddenDates,Core.range,partialDuration);return new Date(accumulatedHiddenDuration+partialDuration+Core.range.start)}};exports.getHiddenDurationBetween=function(hiddenDates,start,end){var duration=0;for(var i=0;i<hiddenDates.length;i++){var startDate=hiddenDates[i].start;var endDate=hiddenDates[i].end;if(startDate>=start&&endDate<end){duration+=endDate-startDate}}return duration};exports.getHiddenDurationBeforeStart=function(hiddenDates,start,end){var duration=0;for(var i=0;i<hiddenDates.length;i++){var startDate=hiddenDates[i].start;var endDate=hiddenDates[i].end;if(startDate>=start&&endDate<=end){duration+=endDate-startDate}}return duration};exports.correctTimeForHidden=function(moment,hiddenDates,range,time){time=moment(time).toDate().valueOf();time-=exports.getHiddenDurationBefore(moment,hiddenDates,range,time);return time};exports.getHiddenDurationBefore=function(moment,hiddenDates,range,time){var timeOffset=0;time=moment(time).toDate().valueOf();for(var i=0;i<hiddenDates.length;i++){var startDate=hiddenDates[i].start;var endDate=hiddenDates[i].end;if(startDate>=range.start&&endDate<range.end){if(time>=endDate){timeOffset+=endDate-startDate}}}return timeOffset};exports.getAccumulatedHiddenDuration=function(hiddenDates,range,requiredDuration){var hiddenDuration=0;var duration=0;var previousPoint=range.start;for(var i=0;i<hiddenDates.length;i++){var startDate=hiddenDates[i].start;var endDate=hiddenDates[i].end;if(startDate>=range.start&&endDate<range.end){duration+=startDate-previousPoint;previousPoint=endDate;if(duration>=requiredDuration){break}else{hiddenDuration+=endDate-startDate}}}return hiddenDuration};exports.snapAwayFromHidden=function(hiddenDates,time,direction,correctionEnabled){var isHidden=exports.isHidden(time,hiddenDates);if(isHidden.hidden==true){if(direction<0){if(correctionEnabled==true){return isHidden.startDate-(isHidden.endDate-time)-1}else{return isHidden.startDate-1}}else{if(correctionEnabled==true){return isHidden.endDate+(time-isHidden.startDate)+1}else{return isHidden.endDate+1}}}else{return time}};exports.isHidden=function(time,hiddenDates){for(var i=0;i<hiddenDates.length;i++){var startDate=hiddenDates[i].start;var endDate=hiddenDates[i].end;if(time>=startDate&&time<endDate){return{hidden:true,startDate:startDate,endDate:endDate}}}return{hidden:false,startDate:startDate,endDate:endDate}}},function(module,exports,__webpack_require__){\"use strict\";exports.onTouch=function(hammer,callback){callback.inputHandler=function(event){if(event.isFirst){callback(event)}};hammer.on(\"hammer.input\",callback.inputHandler)};exports.onRelease=function(hammer,callback){callback.inputHandler=function(event){if(event.isFinal){callback(event)}};return hammer.on(\"hammer.input\",callback.inputHandler)};exports.offTouch=function(hammer,callback){hammer.off(\"hammer.input\",callback.inputHandler)};exports.offRelease=exports.offTouch;exports.disablePreventDefaultVertically=function(pinchRecognizer){var TOUCH_ACTION_PAN_Y=\"pan-y\";pinchRecognizer.getTouchAction=function(){return[TOUCH_ACTION_PAN_Y]};return pinchRecognizer}},function(module,exports,__webpack_require__){\"use strict\";var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Hammer=__webpack_require__(10);var util=__webpack_require__(2);var moment=__webpack_require__(9);function Item(data,conversion,options){this.id=null;this.parent=null;this.data=data;this.dom=null;this.conversion=conversion||{};this.options=options||{};this.selected=false;this.displayed=false;this.groupShowing=true;this.dirty=true;this.top=null;this.right=null;this.left=null;this.width=null;this.height=null;this.editable=null;this._updateEditStatus()}Item.prototype.stack=true;Item.prototype.select=function(){this.selected=true;this.dirty=true;if(this.displayed)this.redraw()};Item.prototype.unselect=function(){this.selected=false;this.dirty=true;if(this.displayed)this.redraw()};Item.prototype.setData=function(data){var groupChanged=data.group!=undefined&&this.data.group!=data.group;if(groupChanged&&this.parent!=null){this.parent.itemSet._moveToGroup(this,data.group)}if(this.parent){this.parent.stackDirty=true}var subGroupChanged=data.subgroup!=undefined&&this.data.subgroup!=data.subgroup;if(subGroupChanged&&this.parent!=null){this.parent.changeSubgroup(this,this.data.subgroup,data.subgroup)}this.data=data;this._updateEditStatus();this.dirty=true;if(this.displayed)this.redraw()};Item.prototype.setParent=function(parent){if(this.displayed){this.hide();this.parent=parent;if(this.parent){this.show()}}else{this.parent=parent}};Item.prototype.isVisible=function(range){return false};Item.prototype.show=function(){return false};Item.prototype.hide=function(){return false};Item.prototype.redraw=function(){};Item.prototype.repositionX=function(){};Item.prototype.repositionY=function(){};Item.prototype._repaintDragCenter=function(){if(this.selected&&this.options.editable.updateTime&&!this.dom.dragCenter){var me=this;var dragCenter=document.createElement(\"div\");dragCenter.className=\"vis-drag-center\";dragCenter.dragCenterItem=this;var hammer=new Hammer(dragCenter);hammer.on(\"tap\",function(event){me.parent.itemSet.body.emitter.emit(\"click\",{event:event,item:me.id})});hammer.on(\"doubletap\",function(event){event.stopPropagation();me.parent.itemSet._onUpdateItem(me);me.parent.itemSet.body.emitter.emit(\"doubleClick\",{event:event,item:me.id})});if(this.dom.box){if(this.dom.dragLeft){this.dom.box.insertBefore(dragCenter,this.dom.dragLeft)}else{this.dom.box.appendChild(dragCenter)}}else if(this.dom.point){this.dom.point.appendChild(dragCenter)}this.dom.dragCenter=dragCenter}else if(!this.selected&&this.dom.dragCenter){if(this.dom.dragCenter.parentNode){this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter)}this.dom.dragCenter=null}};Item.prototype._repaintDeleteButton=function(anchor){var editable=(this.options.editable.overrideItems||this.editable==null)&&this.options.editable.remove||!this.options.editable.overrideItems&&this.editable!=null&&this.editable.remove;if(this.selected&&editable&&!this.dom.deleteButton){var me=this;var deleteButton=document.createElement(\"div\");if(this.options.rtl){deleteButton.className=\"vis-delete-rtl\"}else{deleteButton.className=\"vis-delete\"}deleteButton.title=\"Delete this item\";new Hammer(deleteButton).on(\"tap\",function(event){event.stopPropagation();me.parent.removeFromDataSet(me)});anchor.appendChild(deleteButton);this.dom.deleteButton=deleteButton}else if(!this.selected&&this.dom.deleteButton){if(this.dom.deleteButton.parentNode){this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton)}this.dom.deleteButton=null}};Item.prototype._repaintOnItemUpdateTimeTooltip=function(anchor){if(!this.options.tooltipOnItemUpdateTime)return;var editable=(this.options.editable.updateTime||this.data.editable===true)&&this.data.editable!==false;if(this.selected&&editable&&!this.dom.onItemUpdateTimeTooltip){var onItemUpdateTimeTooltip=document.createElement(\"div\");onItemUpdateTimeTooltip.className=\"vis-onUpdateTime-tooltip\";anchor.appendChild(onItemUpdateTimeTooltip);this.dom.onItemUpdateTimeTooltip=onItemUpdateTimeTooltip}else if(!this.selected&&this.dom.onItemUpdateTimeTooltip){if(this.dom.onItemUpdateTimeTooltip.parentNode){this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip)}this.dom.onItemUpdateTimeTooltip=null}if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?\"visible\":\"hidden\";if(this.options.rtl){this.dom.onItemUpdateTimeTooltip.style.right=this.dom.content.style.right}else{this.dom.onItemUpdateTimeTooltip.style.left=this.dom.content.style.left}var tooltipOffset=50;var scrollTop=this.parent.itemSet.body.domProps.scrollTop;var itemDistanceFromTop;if(this.options.orientation.item==\"top\"){itemDistanceFromTop=this.top}else{itemDistanceFromTop=this.parent.height-this.top-this.height}var isCloseToTop=itemDistanceFromTop+this.parent.top-tooltipOffset<-scrollTop;if(isCloseToTop){this.dom.onItemUpdateTimeTooltip.style.bottom=\"\";this.dom.onItemUpdateTimeTooltip.style.top=this.height+2+\"px\"}else{this.dom.onItemUpdateTimeTooltip.style.top=\"\";this.dom.onItemUpdateTimeTooltip.style.bottom=this.height+2+\"px\"}var content;var templateFunction;if(this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template){templateFunction=this.options.tooltipOnItemUpdateTime.template.bind(this);content=templateFunction(this.data)}else{content=\"start: \"+moment(this.data.start).format(\"MM/DD/YYYY hh:mm\");if(this.data.end){content+=\"<br> end: \"+moment(this.data.end).format(\"MM/DD/YYYY hh:mm\")}}this.dom.onItemUpdateTimeTooltip.innerHTML=content}};Item.prototype._updateContents=function(element){var content;var changed;var templateFunction;var itemVisibleFrameContent;var visibleFrameTemplateFunction;var itemData=this.parent.itemSet.itemsData.get(this.id);var frameElement=this.dom.box||this.dom.point;var itemVisibleFrameContentElement=frameElement.getElementsByClassName(\"vis-item-visible-frame\")[0];if(this.options.visibleFrameTemplate){visibleFrameTemplateFunction=this.options.visibleFrameTemplate.bind(this);itemVisibleFrameContent=visibleFrameTemplateFunction(itemData,frameElement)}else{itemVisibleFrameContent=\"\"}if(itemVisibleFrameContentElement){if(itemVisibleFrameContent instanceof Object&&!(itemVisibleFrameContent instanceof Element)){visibleFrameTemplateFunction(itemData,itemVisibleFrameContentElement)}else{changed=this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(itemVisibleFrameContent);if(changed){if(itemVisibleFrameContent instanceof Element){itemVisibleFrameContentElement.innerHTML=\"\";itemVisibleFrameContentElement.appendChild(itemVisibleFrameContent)}else if(itemVisibleFrameContent!=undefined){itemVisibleFrameContentElement.innerHTML=itemVisibleFrameContent}else{if(!(this.data.type==\"background\"&&this.data.content===undefined)){throw new Error('Property \"content\" missing in item '+this.id)}}this.itemVisibleFrameContent=itemVisibleFrameContent}}}if(this.options.template){templateFunction=this.options.template.bind(this);content=templateFunction(itemData,element,this.data)}else{content=this.data.content}if(content instanceof Object&&!(content instanceof Element)){templateFunction(itemData,element)}else{changed=this._contentToString(this.content)!==this._contentToString(content);if(changed){if(content instanceof Element){element.innerHTML=\"\";element.appendChild(content)}else if(content!=undefined){element.innerHTML=content}else{if(!(this.data.type==\"background\"&&this.data.content===undefined)){throw new Error('Property \"content\" missing in item '+this.id)}}this.content=content}}};Item.prototype._updateDataAttributes=function(element){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var attributes=[];if(Array.isArray(this.options.dataAttributes)){attributes=this.options.dataAttributes}else if(this.options.dataAttributes==\"all\"){attributes=(0,_keys2[\"default\"])(this.data)}else{return}for(var i=0;i<attributes.length;i++){var name=attributes[i];var value=this.data[name];if(value!=null){element.setAttribute(\"data-\"+name,value)}else{element.removeAttribute(\"data-\"+name)}}}};Item.prototype._updateStyle=function(element){if(this.style){util.removeCssText(element,this.style);this.style=null}if(this.data.style){util.addCssText(element,this.data.style);this.style=this.data.style}};Item.prototype._contentToString=function(content){if(typeof content===\"string\")return content;if(content&&\"outerHTML\"in content)return content.outerHTML;return content};Item.prototype._updateEditStatus=function(){if(this.options){if(typeof this.options.editable===\"boolean\"){this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}}else if((0,_typeof3[\"default\"])(this.options.editable)===\"object\"){this.editable={};util.selectiveExtend([\"updateTime\",\"updateGroup\",\"remove\"],this.editable,this.options.editable)}}if(!this.options||!this.options.editable||this.options.editable.overrideItems!==true){if(this.data){if(typeof this.data.editable===\"boolean\"){this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}}else if((0,_typeof3[\"default\"])(this.data.editable)===\"object\"){this.editable={};util.selectiveExtend([\"updateTime\",\"updateGroup\",\"remove\"],this.editable,this.data.editable)}}}};Item.prototype.getWidthLeft=function(){return 0};Item.prototype.getWidthRight=function(){return 0};Item.prototype.getTitle=function(){return this.data.title};module.exports=Item},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value}}},function(module,exports){var id=0;var px=Math.random();module.exports=function(key){return\"Symbol(\".concat(key===undefined?\"\":key,\")_\",(++id+px).toString(36))}},function(module,exports,__webpack_require__){var defined=__webpack_require__(51);module.exports=function(it){return Object(defined(it))}},function(module,exports){exports.f={}.propertyIsEnumerable},function(module,exports,__webpack_require__){\"use strict\";function Queue(options){this.delay=null;this.max=Infinity;this._queue=[];this._timeout=null;this._extended=null;this.setOptions(options)}Queue.prototype.setOptions=function(options){if(options&&typeof options.delay!==\"undefined\"){this.delay=options.delay}if(options&&typeof options.max!==\"undefined\"){this.max=options.max}this._flushIfNeeded()};Queue.extend=function(object,options){var queue=new Queue(options);if(object.flush!==undefined){throw new Error(\"Target object already has a property flush\")}object.flush=function(){queue.flush()};var methods=[{name:\"flush\",original:undefined}];if(options&&options.replace){for(var i=0;i<options.replace.length;i++){var name=options.replace[i];methods.push({name:name,original:object[name]});queue.replace(object,name)}}queue._extended={object:object,methods:methods};return queue};Queue.prototype.destroy=function(){this.flush();if(this._extended){var object=this._extended.object;var methods=this._extended.methods;for(var i=0;i<methods.length;i++){var method=methods[i];if(method.original){object[method.name]=method.original}else{delete object[method.name]}}this._extended=null}};Queue.prototype.replace=function(object,method){var me=this;var original=object[method];if(!original){throw new Error(\"Method \"+method+\" undefined\")}object[method]=function(){var args=[];for(var i=0;i<arguments.length;i++){args[i]=arguments[i]}me.queue({args:args,fn:original,context:this})}};Queue.prototype.queue=function(entry){if(typeof entry===\"function\"){this._queue.push({fn:entry})}else{this._queue.push(entry)}this._flushIfNeeded()};Queue.prototype._flushIfNeeded=function(){\nif(this._queue.length>this.max){this.flush()}clearTimeout(this._timeout);if(this.queue.length>0&&typeof this.delay===\"number\"){var me=this;this._timeout=setTimeout(function(){me.flush()},this.delay)}};Queue.prototype.flush=function(){while(this._queue.length>0){var entry=this._queue.shift();entry.fn.apply(entry.context||entry.fn,entry.args||[])}};module.exports=Queue},function(module,exports){module.exports=Emitter;function Emitter(obj){if(obj)return mixin(obj)}function mixin(obj){for(var key in Emitter.prototype){obj[key]=Emitter.prototype[key]}return obj}Emitter.prototype.on=Emitter.prototype.addEventListener=function(event,fn){this._callbacks=this._callbacks||{};(this._callbacks[event]=this._callbacks[event]||[]).push(fn);return this};Emitter.prototype.once=function(event,fn){var self=this;this._callbacks=this._callbacks||{};function on(){self.off(event,on);fn.apply(this,arguments)}on.fn=fn;this.on(event,on);return this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(event,fn){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var callbacks=this._callbacks[event];if(!callbacks)return this;if(1==arguments.length){delete this._callbacks[event];return this}var cb;for(var i=0;i<callbacks.length;i++){cb=callbacks[i];if(cb===fn||cb.fn===fn){callbacks.splice(i,1);break}}return this};Emitter.prototype.emit=function(event){this._callbacks=this._callbacks||{};var args=[].slice.call(arguments,1),callbacks=this._callbacks[event];if(callbacks){callbacks=callbacks.slice(0);for(var i=0,len=callbacks.length;i<len;++i){callbacks[i].apply(this,args)}}return this};Emitter.prototype.listeners=function(event){this._callbacks=this._callbacks||{};return this._callbacks[event]||[]};Emitter.prototype.hasListeners=function(event){return!!this.listeners(event).length}},function(module,exports,__webpack_require__){\"use strict\";var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Component=__webpack_require__(16);var TimeStep=__webpack_require__(66);var DateUtil=__webpack_require__(36);var moment=__webpack_require__(9);function TimeAxis(body,options){this.dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}};this.props={range:{start:0,end:0,minimumStep:0},lineTop:0};this.defaultOptions={orientation:{axis:\"bottom\"},showMinorLabels:true,showMajorLabels:true,maxMinorChars:7,format:TimeStep.FORMAT,moment:moment,timeAxis:null};this.options=util.extend({},this.defaultOptions);this.body=body;this._create();this.setOptions(options)}TimeAxis.prototype=new Component;TimeAxis.prototype.setOptions=function(options){if(options){util.selectiveExtend([\"showMinorLabels\",\"showMajorLabels\",\"maxMinorChars\",\"hiddenDates\",\"timeAxis\",\"moment\",\"rtl\"],this.options,options);util.selectiveDeepExtend([\"format\"],this.options,options);if(\"orientation\"in options){if(typeof options.orientation===\"string\"){this.options.orientation.axis=options.orientation}else if((0,_typeof3[\"default\"])(options.orientation)===\"object\"&&\"axis\"in options.orientation){this.options.orientation.axis=options.orientation.axis}}if(\"locale\"in options){if(typeof moment.locale===\"function\"){moment.locale(options.locale)}else{moment.lang(options.locale)}}}};TimeAxis.prototype._create=function(){this.dom.foreground=document.createElement(\"div\");this.dom.background=document.createElement(\"div\");this.dom.foreground.className=\"vis-time-axis vis-foreground\";this.dom.background.className=\"vis-time-axis vis-background\"};TimeAxis.prototype.destroy=function(){if(this.dom.foreground.parentNode){this.dom.foreground.parentNode.removeChild(this.dom.foreground)}if(this.dom.background.parentNode){this.dom.background.parentNode.removeChild(this.dom.background)}this.body=null};TimeAxis.prototype.redraw=function(){var props=this.props;var foreground=this.dom.foreground;var background=this.dom.background;var parent=this.options.orientation.axis==\"top\"?this.body.dom.top:this.body.dom.bottom;var parentChanged=foreground.parentNode!==parent;this._calculateCharSize();var showMinorLabels=this.options.showMinorLabels&&this.options.orientation.axis!==\"none\";var showMajorLabels=this.options.showMajorLabels&&this.options.orientation.axis!==\"none\";props.minorLabelHeight=showMinorLabels?props.minorCharHeight:0;props.majorLabelHeight=showMajorLabels?props.majorCharHeight:0;props.height=props.minorLabelHeight+props.majorLabelHeight;props.width=foreground.offsetWidth;props.minorLineHeight=this.body.domProps.root.height-props.majorLabelHeight-(this.options.orientation.axis==\"top\"?this.body.domProps.bottom.height:this.body.domProps.top.height);props.minorLineWidth=1;props.majorLineHeight=props.minorLineHeight+props.majorLabelHeight;props.majorLineWidth=1;var foregroundNextSibling=foreground.nextSibling;var backgroundNextSibling=background.nextSibling;foreground.parentNode&&foreground.parentNode.removeChild(foreground);background.parentNode&&background.parentNode.removeChild(background);foreground.style.height=this.props.height+\"px\";this._repaintLabels();if(foregroundNextSibling){parent.insertBefore(foreground,foregroundNextSibling)}else{parent.appendChild(foreground)}if(backgroundNextSibling){this.body.dom.backgroundVertical.insertBefore(background,backgroundNextSibling)}else{this.body.dom.backgroundVertical.appendChild(background)}return this._isResized()||parentChanged};TimeAxis.prototype._repaintLabels=function(){var orientation=this.options.orientation.axis;var start=util.convert(this.body.range.start,\"Number\");var end=util.convert(this.body.range.end,\"Number\");var timeLabelsize=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf();var minimumStep=timeLabelsize-DateUtil.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this.body.range,timeLabelsize);minimumStep-=this.body.util.toTime(0).valueOf();var step=new TimeStep(new Date(start),new Date(end),minimumStep,this.body.hiddenDates,this.options);step.setMoment(this.options.moment);if(this.options.format){step.setFormat(this.options.format)}if(this.options.timeAxis){step.setScale(this.options.timeAxis)}this.step=step;var dom=this.dom;dom.redundant.lines=dom.lines;dom.redundant.majorTexts=dom.majorTexts;dom.redundant.minorTexts=dom.minorTexts;dom.lines=[];dom.majorTexts=[];dom.minorTexts=[];var current;var next;var x;var xNext;var isMajor;var nextIsMajor;var showMinorGrid;var width=0,prevWidth;var line;var labelMinor;var xFirstMajorLabel=undefined;var count=0;var MAX=1e3;var className;step.start();next=step.getCurrent();xNext=this.body.util.toScreen(next);while(step.hasNext()&&count<MAX){count++;isMajor=step.isMajor();className=step.getClassName();labelMinor=step.getLabelMinor();current=next;x=xNext;step.next();next=step.getCurrent();nextIsMajor=step.isMajor();xNext=this.body.util.toScreen(next);prevWidth=width;width=xNext-x;switch(step.scale){case\"week\":showMinorGrid=true;break;default:showMinorGrid=width>=prevWidth*.4;break}if(this.options.showMinorLabels&&showMinorGrid){var label=this._repaintMinorText(x,labelMinor,orientation,className);label.style.width=width+\"px\"}if(isMajor&&this.options.showMajorLabels){if(x>0){if(xFirstMajorLabel==undefined){xFirstMajorLabel=x}label=this._repaintMajorText(x,step.getLabelMajor(),orientation,className)}line=this._repaintMajorLine(x,width,orientation,className)}else{if(showMinorGrid){line=this._repaintMinorLine(x,width,orientation,className)}else{if(line){line.style.width=parseInt(line.style.width)+width+\"px\"}}}}if(count===MAX&&!warnedForOverflow){console.warn(\"Something is wrong with the Timeline scale. Limited drawing of grid lines to \"+MAX+\" lines.\");warnedForOverflow=true}if(this.options.showMajorLabels){var leftTime=this.body.util.toTime(0),leftText=step.getLabelMajor(leftTime),widthText=leftText.length*(this.props.majorCharWidth||10)+10;if(xFirstMajorLabel==undefined||widthText<xFirstMajorLabel){this._repaintMajorText(0,leftText,orientation,className)}}util.forEach(this.dom.redundant,function(arr){while(arr.length){var elem=arr.pop();if(elem&&elem.parentNode){elem.parentNode.removeChild(elem)}}})};TimeAxis.prototype._repaintMinorText=function(x,text,orientation,className){var label=this.dom.redundant.minorTexts.shift();if(!label){var content=document.createTextNode(\"\");label=document.createElement(\"div\");label.appendChild(content);this.dom.foreground.appendChild(label)}this.dom.minorTexts.push(label);label.innerHTML=text;label.style.top=orientation==\"top\"?this.props.majorLabelHeight+\"px\":\"0\";if(this.options.rtl){label.style.left=\"\";label.style.right=x+\"px\"}else{label.style.left=x+\"px\"}label.className=\"vis-text vis-minor \"+className;return label};TimeAxis.prototype._repaintMajorText=function(x,text,orientation,className){var label=this.dom.redundant.majorTexts.shift();if(!label){var content=document.createElement(\"div\");label=document.createElement(\"div\");label.appendChild(content);this.dom.foreground.appendChild(label)}label.childNodes[0].innerHTML=text;label.className=\"vis-text vis-major \"+className;label.style.top=orientation==\"top\"?\"0\":this.props.minorLabelHeight+\"px\";if(this.options.rtl){label.style.left=\"\";label.style.right=x+\"px\"}else{label.style.left=x+\"px\"}this.dom.majorTexts.push(label);return label};TimeAxis.prototype._repaintMinorLine=function(x,width,orientation,className){var line=this.dom.redundant.lines.shift();if(!line){line=document.createElement(\"div\");this.dom.background.appendChild(line)}this.dom.lines.push(line);var props=this.props;if(orientation==\"top\"){line.style.top=props.majorLabelHeight+\"px\"}else{line.style.top=this.body.domProps.top.height+\"px\"}line.style.height=props.minorLineHeight+\"px\";if(this.options.rtl){line.style.left=\"\";line.style.right=x-props.minorLineWidth/2+\"px\";line.className=\"vis-grid vis-vertical-rtl vis-minor \"+className}else{line.style.left=x-props.minorLineWidth/2+\"px\";line.className=\"vis-grid vis-vertical vis-minor \"+className}line.style.width=width+\"px\";return line};TimeAxis.prototype._repaintMajorLine=function(x,width,orientation,className){var line=this.dom.redundant.lines.shift();if(!line){line=document.createElement(\"div\");this.dom.background.appendChild(line)}this.dom.lines.push(line);var props=this.props;if(orientation==\"top\"){line.style.top=\"0\"}else{line.style.top=this.body.domProps.top.height+\"px\"}if(this.options.rtl){line.style.left=\"\";line.style.right=x-props.majorLineWidth/2+\"px\";line.className=\"vis-grid vis-vertical-rtl vis-major \"+className}else{line.style.left=x-props.majorLineWidth/2+\"px\";line.className=\"vis-grid vis-vertical vis-major \"+className}line.style.height=props.majorLineHeight+\"px\";line.style.width=width+\"px\";return line};TimeAxis.prototype._calculateCharSize=function(){if(!this.dom.measureCharMinor){this.dom.measureCharMinor=document.createElement(\"DIV\");this.dom.measureCharMinor.className=\"vis-text vis-minor vis-measure\";this.dom.measureCharMinor.style.position=\"absolute\";this.dom.measureCharMinor.appendChild(document.createTextNode(\"0\"));this.dom.foreground.appendChild(this.dom.measureCharMinor)}this.props.minorCharHeight=this.dom.measureCharMinor.clientHeight;this.props.minorCharWidth=this.dom.measureCharMinor.clientWidth;if(!this.dom.measureCharMajor){this.dom.measureCharMajor=document.createElement(\"DIV\");this.dom.measureCharMajor.className=\"vis-text vis-major vis-measure\";this.dom.measureCharMajor.style.position=\"absolute\";this.dom.measureCharMajor.appendChild(document.createTextNode(\"0\"));this.dom.foreground.appendChild(this.dom.measureCharMajor)}this.props.majorCharHeight=this.dom.measureCharMajor.clientHeight;this.props.majorCharWidth=this.dom.measureCharMajor.clientWidth};var warnedForOverflow=false;module.exports=TimeAxis},function(module,exports,__webpack_require__){\"use strict\";var Hammer=__webpack_require__(10);var util=__webpack_require__(2);var Component=__webpack_require__(16);var moment=__webpack_require__(9);var locales=__webpack_require__(98);function CustomTime(body,options){this.body=body;this.defaultOptions={moment:moment,locales:locales,locale:\"en\",id:undefined,title:undefined};this.options=util.extend({},this.defaultOptions);if(options&&options.time){this.customTime=options.time}else{this.customTime=new Date}this.eventParams={};this.setOptions(options);this._create()}CustomTime.prototype=new Component;CustomTime.prototype.setOptions=function(options){if(options){util.selectiveExtend([\"moment\",\"locale\",\"locales\",\"id\"],this.options,options)}};CustomTime.prototype._create=function(){var bar=document.createElement(\"div\");bar[\"custom-time\"]=this;bar.className=\"vis-custom-time \"+(this.options.id||\"\");bar.style.position=\"absolute\";bar.style.top=\"0px\";bar.style.height=\"100%\";this.bar=bar;var drag=document.createElement(\"div\");drag.style.position=\"relative\";drag.style.top=\"0px\";drag.style.left=\"-10px\";drag.style.height=\"100%\";drag.style.width=\"20px\";function onMouseWheel(e){this.body.range._onMouseWheel(e)}if(drag.addEventListener){drag.addEventListener(\"mousewheel\",onMouseWheel.bind(this),false);drag.addEventListener(\"DOMMouseScroll\",onMouseWheel.bind(this),false)}else{drag.attachEvent(\"onmousewheel\",onMouseWheel.bind(this))}bar.appendChild(drag);this.hammer=new Hammer(drag);this.hammer.on(\"panstart\",this._onDragStart.bind(this));this.hammer.on(\"panmove\",this._onDrag.bind(this));this.hammer.on(\"panend\",this._onDragEnd.bind(this));this.hammer.get(\"pan\").set({threshold:5,direction:Hammer.DIRECTION_HORIZONTAL})};CustomTime.prototype.destroy=function(){this.hide();this.hammer.destroy();this.hammer=null;this.body=null};CustomTime.prototype.redraw=function(){var parent=this.body.dom.backgroundVertical;if(this.bar.parentNode!=parent){if(this.bar.parentNode){this.bar.parentNode.removeChild(this.bar)}parent.appendChild(this.bar)}var x=this.body.util.toScreen(this.customTime);var locale=this.options.locales[this.options.locale];if(!locale){if(!this.warned){console.log(\"WARNING: options.locales['\"+this.options.locale+\"'] not found. See http://visjs.org/docs/timeline/#Localization\");this.warned=true}locale=this.options.locales[\"en\"]}var title=this.options.title;if(title===undefined){title=locale.time+\": \"+this.options.moment(this.customTime).format(\"dddd, MMMM Do YYYY, H:mm:ss\");title=title.charAt(0).toUpperCase()+title.substring(1)}else if(typeof title===\"function\"){title=title.call(this.customTime)}this.bar.style.left=x+\"px\";this.bar.title=title;return false};CustomTime.prototype.hide=function(){if(this.bar.parentNode){this.bar.parentNode.removeChild(this.bar)}};CustomTime.prototype.setCustomTime=function(time){this.customTime=util.convert(time,\"Date\");this.redraw()};CustomTime.prototype.getCustomTime=function(){return new Date(this.customTime.valueOf())};CustomTime.prototype.setCustomTitle=function(title){this.options.title=title};CustomTime.prototype._onDragStart=function(event){this.eventParams.dragging=true;this.eventParams.customTime=this.customTime;event.stopPropagation()};CustomTime.prototype._onDrag=function(event){if(!this.eventParams.dragging)return;var x=this.body.util.toScreen(this.eventParams.customTime)+event.deltaX;var time=this.body.util.toTime(x);this.setCustomTime(time);this.body.emitter.emit(\"timechange\",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:event});event.stopPropagation()};CustomTime.prototype._onDragEnd=function(event){if(!this.eventParams.dragging)return;this.body.emitter.emit(\"timechanged\",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:event});event.stopPropagation()};CustomTime.customTimeFromTarget=function(event){var target=event.target;while(target){if(target.hasOwnProperty(\"custom-time\")){return target[\"custom-time\"]}target=target.parentNode}return null};module.exports=CustomTime},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Label=__webpack_require__(117)[\"default\"];var ComponentUtil=__webpack_require__(48)[\"default\"];var Box=__webpack_require__(193)[\"default\"];var Circle=__webpack_require__(200)[\"default\"];var CircularImage=__webpack_require__(201)[\"default\"];var Database=__webpack_require__(202)[\"default\"];var Diamond=__webpack_require__(203)[\"default\"];var Dot=__webpack_require__(204)[\"default\"];var Ellipse=__webpack_require__(205)[\"default\"];var Icon=__webpack_require__(206)[\"default\"];var Image=__webpack_require__(207)[\"default\"];var Square=__webpack_require__(208)[\"default\"];var Hexagon=__webpack_require__(209)[\"default\"];var Star=__webpack_require__(210)[\"default\"];var Text=__webpack_require__(211)[\"default\"];var Triangle=__webpack_require__(212)[\"default\"];var TriangleDown=__webpack_require__(213)[\"default\"];var _require=__webpack_require__(15),printStyle=_require.printStyle;var Node=function(){function Node(options,body,imagelist,grouplist,globalOptions,defaultOptions){(0,_classCallCheck3[\"default\"])(this,Node);this.options=util.bridgeObject(globalOptions);this.globalOptions=globalOptions;this.defaultOptions=defaultOptions;this.body=body;this.edges=[];this.id=undefined;this.imagelist=imagelist;this.grouplist=grouplist;this.x=undefined;this.y=undefined;this.baseSize=this.options.size;this.baseFontSize=this.options.font.size;this.predefinedPosition=false;this.selected=false;this.hover=false;this.labelModule=new Label(this.body,this.options,false);this.setOptions(options)}(0,_createClass3[\"default\"])(Node,[{key:\"attachEdge\",value:function attachEdge(edge){if(this.edges.indexOf(edge)===-1){this.edges.push(edge)}}},{key:\"detachEdge\",value:function detachEdge(edge){var index=this.edges.indexOf(edge);if(index!=-1){this.edges.splice(index,1)}}},{key:\"setOptions\",value:function setOptions(options){var currentShape=this.options.shape;if(!options){return}if(options.id!==undefined){this.id=options.id}if(this.id===undefined){throw new Error(\"Node must have an id\")}Node.checkMass(options,this.id);if(options.x!==undefined){if(options.x===null){this.x=undefined;this.predefinedPosition=false}else{this.x=parseInt(options.x);this.predefinedPosition=true}}if(options.y!==undefined){if(options.y===null){this.y=undefined;this.predefinedPosition=false}else{this.y=parseInt(options.y);this.predefinedPosition=true}}if(options.size!==undefined){this.baseSize=options.size}if(options.value!==undefined){options.value=parseFloat(options.value)}Node.parseOptions(this.options,options,true,this.globalOptions,this.grouplist);var pile=[options,this.options,this.defaultOptions];this.chooser=ComponentUtil.choosify(\"node\",pile);this._load_images();this.updateLabelModule(options);this.updateShape(currentShape);return options.hidden!==undefined||options.physics!==undefined}},{key:\"_load_images\",value:function _load_images(){if(this.options.shape!==\"circularImage\"&&this.options.shape!==\"image\"){return}if(this.options.image===undefined){throw new Error(\"Option image must be defined for node type '\"+this.options.shape+\"'\")}if(this.imagelist===undefined){throw new Error(\"Internal Error: No images provided\")}if(typeof this.options.image===\"string\"){this.imageObj=this.imagelist.load(this.options.image,this.options.brokenImage,this.id)}else{if(this.options.image.unselected===undefined){throw new Error(\"No unselected image provided\")}this.imageObj=this.imagelist.load(this.options.image.unselected,this.options.brokenImage,this.id);if(this.options.image.selected!==undefined){this.imageObjAlt=this.imagelist.load(this.options.image.selected,this.options.brokenImage,this.id)}else{this.imageObjAlt=undefined}}}},{key:\"getFormattingValues\",value:function getFormattingValues(){var values={color:this.options.color.background,borderWidth:this.options.borderWidth,borderColor:this.options.color.border,size:this.options.size,borderDashes:this.options.shapeProperties.borderDashes,borderRadius:this.options.shapeProperties.borderRadius,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y};if(this.selected||this.hover){if(this.chooser===true){if(this.selected){values.borderWidth*=2;values.color=this.options.color.highlight.background;values.borderColor=this.options.color.highlight.border;values.shadow=this.options.shadow.enabled}else if(this.hover){values.color=this.options.color.hover.background;values.borderColor=this.options.color.hover.border;values.shadow=this.options.shadow.enabled}}else if(typeof this.chooser===\"function\"){this.chooser(values,this.options.id,this.selected,this.hover);if(values.shadow===false){if(values.shadowColor!==this.options.shadow.color||values.shadowSize!==this.options.shadow.size||values.shadowX!==this.options.shadow.x||values.shadowY!==this.options.shadow.y){values.shadow=true}}}}else{values.shadow=this.options.shadow.enabled}return values}},{key:\"updateLabelModule\",value:function updateLabelModule(options){if(this.options.label===undefined||this.options.label===null){this.options.label=\"\"}Node.updateGroupOptions(this.options,options,this.grouplist);var currentGroup=this.grouplist.get(this.options.group,false);var pile=[options,this.options,currentGroup,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,pile);if(this.labelModule.baseSize!==undefined){this.baseFontSize=this.labelModule.baseSize}}},{key:\"updateShape\",value:function updateShape(currentShape){if(currentShape===this.options.shape&&this.shape){this.shape.setOptions(this.options,this.imageObj,this.imageObjAlt)}else{switch(this.options.shape){case\"box\":this.shape=new Box(this.options,this.body,this.labelModule);break;case\"circle\":this.shape=new Circle(this.options,this.body,this.labelModule);break;case\"circularImage\":this.shape=new CircularImage(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case\"database\":this.shape=new Database(this.options,this.body,this.labelModule);break;case\"diamond\":this.shape=new Diamond(this.options,this.body,this.labelModule);break;case\"dot\":this.shape=new Dot(this.options,this.body,this.labelModule);break;case\"ellipse\":this.shape=new Ellipse(this.options,this.body,this.labelModule);break;case\"icon\":this.shape=new Icon(this.options,this.body,this.labelModule);break;case\"image\":this.shape=new Image(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case\"square\":this.shape=new Square(this.options,this.body,this.labelModule);break;case\"hexagon\":this.shape=new Hexagon(this.options,this.body,this.labelModule);break;case\"star\":this.shape=new Star(this.options,this.body,this.labelModule);break;case\"text\":this.shape=new Text(this.options,this.body,this.labelModule);break;case\"triangle\":this.shape=new Triangle(this.options,this.body,this.labelModule);break;case\"triangleDown\":this.shape=new TriangleDown(this.options,this.body,this.labelModule);break;default:this.shape=new Ellipse(this.options,this.body,this.labelModule);break}}this.needsRefresh()}},{key:\"select\",value:function select(){this.selected=true;this.needsRefresh()}},{key:\"unselect\",value:function unselect(){this.selected=false;this.needsRefresh()}},{key:\"needsRefresh\",value:function needsRefresh(){this.shape.refreshNeeded=true}},{key:\"getTitle\",value:function getTitle(){return this.options.title}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this.shape.distanceToBorder(ctx,angle)}},{key:\"isFixed\",value:function isFixed(){return this.options.fixed.x&&this.options.fixed.y}},{key:\"isSelected\",value:function isSelected(){return this.selected}},{key:\"getValue\",value:function getValue(){return this.options.value}},{key:\"getLabelSize\",value:function getLabelSize(){return this.labelModule.size()}},{key:\"setValueRange\",value:function setValueRange(min,max,total){if(this.options.value!==undefined){var scale=this.options.scaling.customScalingFunction(min,max,total,this.options.value);var sizeDiff=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===true){var fontDiff=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+scale*fontDiff}this.options.size=this.options.scaling.min+scale*sizeDiff}else{this.options.size=this.baseSize;this.options.font.size=this.baseFontSize}this.updateLabelModule()}},{key:\"draw\",value:function draw(ctx){var values=this.getFormattingValues();this.shape.draw(ctx,this.x,this.y,this.selected,this.hover,values)}},{key:\"updateBoundingBox\",value:function updateBoundingBox(ctx){this.shape.updateBoundingBox(this.x,this.y,ctx)}},{key:\"resize\",value:function resize(ctx){var values=this.getFormattingValues();this.shape.resize(ctx,this.selected,this.hover,values)}},{key:\"getItemsOnPoint\",value:function getItemsOnPoint(point){var ret=[];if(this.labelModule.visible()){if(ComponentUtil.pointInRect(this.labelModule.getSize(),point)){ret.push({nodeId:this.id,labelId:0})}}if(ComponentUtil.pointInRect(this.shape.boundingBox,point)){ret.push({nodeId:this.id})}return ret}},{key:\"isOverlappingWith\",value:function isOverlappingWith(obj){return this.shape.left<obj.right&&this.shape.left+this.shape.width>obj.left&&this.shape.top<obj.bottom&&this.shape.top+this.shape.height>obj.top}},{key:\"isBoundingBoxOverlappingWith\",value:function isBoundingBoxOverlappingWith(obj){return this.shape.boundingBox.left<obj.right&&this.shape.boundingBox.right>obj.left&&this.shape.boundingBox.top<obj.bottom&&this.shape.boundingBox.bottom>obj.top}}],[{key:\"updateGroupOptions\",value:function updateGroupOptions(parentOptions,newOptions,groupList){if(groupList===undefined)return;var group=parentOptions.group;if(newOptions!==undefined&&newOptions.group!==undefined&&group!==newOptions.group){throw new Error(\"updateGroupOptions: group values in options don't match.\")}var hasGroup=typeof group===\"number\"||typeof group===\"string\"&&group!=\"\";if(!hasGroup)return;var groupObj=groupList.get(group);util.selectiveNotDeepExtend([\"font\"],parentOptions,groupObj);parentOptions.color=util.parseColor(parentOptions.color)}},{key:\"parseOptions\",value:function parseOptions(parentOptions,newOptions){var allowDeletion=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var globalOptions=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var groupList=arguments[4];var fields=[\"color\",\"fixed\",\"shadow\"];util.selectiveNotDeepExtend(fields,parentOptions,newOptions,allowDeletion);Node.checkMass(newOptions);util.mergeOptions(parentOptions,newOptions,\"shadow\",globalOptions);if(newOptions.color!==undefined&&newOptions.color!==null){var parsedColor=util.parseColor(newOptions.color);util.fillIfDefined(parentOptions.color,parsedColor)}else if(allowDeletion===true&&newOptions.color===null){parentOptions.color=util.bridgeObject(globalOptions.color)}if(newOptions.fixed!==undefined&&newOptions.fixed!==null){if(typeof newOptions.fixed===\"boolean\"){parentOptions.fixed.x=newOptions.fixed;parentOptions.fixed.y=newOptions.fixed}else{if(newOptions.fixed.x!==undefined&&typeof newOptions.fixed.x===\"boolean\"){parentOptions.fixed.x=newOptions.fixed.x}if(newOptions.fixed.y!==undefined&&typeof newOptions.fixed.y===\"boolean\"){parentOptions.fixed.y=newOptions.fixed.y}}}if(allowDeletion===true&&newOptions.font===null){parentOptions.font=util.bridgeObject(globalOptions.font)}Node.updateGroupOptions(parentOptions,newOptions,groupList);if(newOptions.scaling!==undefined){util.mergeOptions(parentOptions.scaling,newOptions.scaling,\"label\",globalOptions.scaling)}}},{key:\"checkMass\",value:function checkMass(options,id){if(options.mass!==undefined&&options.mass<=0){var strId=\"\";if(id!==undefined){strId=\" in node id: \"+id}console.log(\"%cNegative or zero mass disallowed\"+strId+\", setting mass to 1.\",printStyle);options.mass=1}}}]);return Node}();exports[\"default\"]=Node},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var ComponentUtil=function(){function ComponentUtil(){(0,_classCallCheck3[\"default\"])(this,ComponentUtil)}(0,_createClass3[\"default\"])(ComponentUtil,null,[{key:\"choosify\",value:function choosify(subOption,pile){var allowed=[\"node\",\"edge\",\"label\"];var value=true;var chosen=util.topMost(pile,\"chosen\");if(typeof chosen===\"boolean\"){value=chosen}else if((typeof chosen===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(chosen))===\"object\"){if(allowed.indexOf(subOption)===-1){throw new Error(\"choosify: subOption '\"+subOption+\"' should be one of \"+\"'\"+allowed.join(\"', '\")+\"'\")}var chosenEdge=util.topMost(pile,[\"chosen\",subOption]);if(typeof chosenEdge===\"boolean\"||typeof chosenEdge===\"function\"){value=chosenEdge}}return value}},{key:\"pointInRect\",value:function pointInRect(rect,point,rotationPoint){if(rect.width<=0||rect.height<=0){return false}if(rotationPoint!==undefined){var tmp={x:point.x-rotationPoint.x,y:point.y-rotationPoint.y};if(rotationPoint.angle!==0){var angle=-rotationPoint.angle;var tmp2={x:Math.cos(angle)*tmp.x-Math.sin(angle)*tmp.y,y:Math.sin(angle)*tmp.x+Math.cos(angle)*tmp.y};point=tmp2}else{point=tmp}}var right=rect.x+rect.width;var bottom=rect.y+rect.width;return rect.left<point.x&&right>point.x&&rect.top<point.y&&bottom>point.y}},{key:\"isValidLabel\",value:function isValidLabel(text){return typeof text===\"string\"&&text!==\"\"}}]);return ComponentUtil}();exports[\"default\"]=ComponentUtil},function(module,exports,__webpack_require__){__webpack_require__(125);var global=__webpack_require__(18);var hide=__webpack_require__(26);var Iterators=__webpack_require__(31);var TO_STRING_TAG=__webpack_require__(13)(\"toStringTag\");var DOMIterables=(\"CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,\"+\"DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,\"+\"MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,\"+\"SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,\"+\"TextTrackList,TouchList\").split(\",\");for(var i=0;i<DOMIterables.length;i++){var NAME=DOMIterables[i];var Collection=global[NAME];var proto=Collection&&Collection.prototype;if(proto&&!proto[TO_STRING_TAG])hide(proto,TO_STRING_TAG,NAME);Iterators[NAME]=Iterators.Array}},function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},function(module,exports){module.exports=function(it){if(it==undefined)throw TypeError(\"Can't call method on \"+it);return it}},function(module,exports){module.exports=true},function(module,exports,__webpack_require__){var isObject=__webpack_require__(32);module.exports=function(it,S){if(!isObject(it))return it;var fn,val;if(S&&typeof(fn=it.toString)==\"function\"&&!isObject(val=fn.call(it)))return val;if(typeof(fn=it.valueOf)==\"function\"&&!isObject(val=fn.call(it)))return val;if(!S&&typeof(fn=it.toString)==\"function\"&&!isObject(val=fn.call(it)))return val;throw TypeError(\"Can't convert object to primitive value\")}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(27);var dPs=__webpack_require__(130);var enumBugKeys=__webpack_require__(58);var IE_PROTO=__webpack_require__(56)(\"IE_PROTO\")\n;var Empty=function(){};var PROTOTYPE=\"prototype\";var createDict=function(){var iframe=__webpack_require__(82)(\"iframe\");var i=enumBugKeys.length;var lt=\"<\";var gt=\">\";var iframeDocument;iframe.style.display=\"none\";__webpack_require__(134).appendChild(iframe);iframe.src=\"javascript:\";iframeDocument=iframe.contentWindow.document;iframeDocument.open();iframeDocument.write(lt+\"script\"+gt+\"document.F=Object\"+lt+\"/script\"+gt);iframeDocument.close();createDict=iframeDocument.F;while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];return createDict()};module.exports=Object.create||function create(O,Properties){var result;if(O!==null){Empty[PROTOTYPE]=anObject(O);result=new Empty;Empty[PROTOTYPE]=null;result[IE_PROTO]=O}else result=createDict();return Properties===undefined?result:dPs(result,Properties)}},function(module,exports){var ceil=Math.ceil;var floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)}},function(module,exports,__webpack_require__){var shared=__webpack_require__(57)(\"keys\");var uid=__webpack_require__(40);module.exports=function(key){return shared[key]||(shared[key]=uid(key))}},function(module,exports,__webpack_require__){var global=__webpack_require__(18);var SHARED=\"__core-js_shared__\";var store=global[SHARED]||(global[SHARED]={});module.exports=function(key){return store[key]||(store[key]={})}},function(module,exports){module.exports=\"constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf\".split(\",\")},function(module,exports,__webpack_require__){var def=__webpack_require__(20).f;var has=__webpack_require__(22);var TAG=__webpack_require__(13)(\"toStringTag\");module.exports=function(it,tag,stat){if(it&&!has(it=stat?it:it.prototype,TAG))def(it,TAG,{configurable:true,value:tag})}},function(module,exports,__webpack_require__){\"use strict\";var $at=__webpack_require__(135)(true);__webpack_require__(79)(String,\"String\",function(iterated){this._t=String(iterated);this._i=0},function(){var O=this._t;var index=this._i;var point;if(index>=O.length)return{value:undefined,done:true};point=$at(O,index);this._i+=point.length;return{value:point,done:false}})},function(module,exports,__webpack_require__){exports.f=__webpack_require__(13)},function(module,exports,__webpack_require__){var global=__webpack_require__(18);var core=__webpack_require__(7);var LIBRARY=__webpack_require__(52);var wksExt=__webpack_require__(61);var defineProperty=__webpack_require__(20).f;module.exports=function(name){var $Symbol=core.Symbol||(core.Symbol=LIBRARY?{}:global.Symbol||{});if(name.charAt(0)!=\"_\"&&!(name in $Symbol))defineProperty($Symbol,name,{value:wksExt.f(name)})}},function(module,exports){exports.f=Object.getOwnPropertySymbols},function(module,exports,__webpack_require__){\"use strict\";var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var moment=__webpack_require__(9);var Component=__webpack_require__(16);var DateUtil=__webpack_require__(36);function Range(body,options){var now=moment().hours(0).minutes(0).seconds(0).milliseconds(0);var start=now.clone().add(-3,\"days\").valueOf();var end=now.clone().add(3,\"days\").valueOf();this.millisecondsPerPixelCache=undefined;if(options===undefined){this.start=start;this.end=end}else{this.start=options.start||start;this.end=options.end||end}this.rolling=false;this.body=body;this.deltaDifference=0;this.scaleOffset=0;this.startToFront=false;this.endToFront=true;this.defaultOptions={rtl:false,start:null,end:null,moment:moment,direction:\"horizontal\",moveable:true,zoomable:true,min:null,max:null,zoomMin:10,zoomMax:1e3*60*60*24*365*1e4,rollingMode:{follow:false,offset:.5}};this.options=util.extend({},this.defaultOptions);this.props={touch:{}};this.animationTimer=null;this.body.emitter.on(\"panstart\",this._onDragStart.bind(this));this.body.emitter.on(\"panmove\",this._onDrag.bind(this));this.body.emitter.on(\"panend\",this._onDragEnd.bind(this));this.body.emitter.on(\"mousewheel\",this._onMouseWheel.bind(this));this.body.emitter.on(\"touch\",this._onTouch.bind(this));this.body.emitter.on(\"pinch\",this._onPinch.bind(this));this.body.dom.rollingModeBtn.addEventListener(\"click\",this.startRolling.bind(this));this.setOptions(options)}Range.prototype=new Component;Range.prototype.setOptions=function(options){if(options){var fields=[\"animation\",\"direction\",\"min\",\"max\",\"zoomMin\",\"zoomMax\",\"moveable\",\"zoomable\",\"moment\",\"activate\",\"hiddenDates\",\"zoomKey\",\"rtl\",\"showCurrentTime\",\"rollingMode\",\"horizontalScroll\"];util.selectiveExtend(fields,this.options,options);if(options.rollingMode&&options.rollingMode.follow){this.startRolling()}if(\"start\"in options||\"end\"in options){this.setRange(options.start,options.end)}}};function validateDirection(direction){if(direction!=\"horizontal\"&&direction!=\"vertical\"){throw new TypeError('Unknown direction \"'+direction+'\". '+'Choose \"horizontal\" or \"vertical\".')}}Range.prototype.startRolling=function(){var me=this;function update(){me.stopRolling();me.rolling=true;var interval=me.end-me.start;var t=util.convert(new Date,\"Date\").valueOf();var start=t-interval*me.options.rollingMode.offset;var end=t+interval*(1-me.options.rollingMode.offset);var options={animation:false};me.setRange(start,end,options);var scale=me.conversion(me.body.domProps.center.width).scale;interval=1/scale/10;if(interval<30)interval=30;if(interval>1e3)interval=1e3;me.body.dom.rollingModeBtn.style.visibility=\"hidden\";me.currentTimeTimer=setTimeout(update,interval)}update()};Range.prototype.stopRolling=function(){if(this.currentTimeTimer!==undefined){clearTimeout(this.currentTimeTimer);this.rolling=false;this.body.dom.rollingModeBtn.style.visibility=\"visible\"}};Range.prototype.setRange=function(start,end,options,callback,frameCallback){if(!options){options={}}if(options.byUser!==true){options.byUser=false}var me=this;var finalStart=start!=undefined?util.convert(start,\"Date\").valueOf():null;var finalEnd=end!=undefined?util.convert(end,\"Date\").valueOf():null;this._cancelAnimation();this.millisecondsPerPixelCache=undefined;if(options.animation){var initStart=this.start;var initEnd=this.end;var duration=(0,_typeof3[\"default\"])(options.animation)===\"object\"&&\"duration\"in options.animation?options.animation.duration:500;var easingName=(0,_typeof3[\"default\"])(options.animation)===\"object\"&&\"easingFunction\"in options.animation?options.animation.easingFunction:\"easeInOutQuad\";var easingFunction=util.easingFunctions[easingName];if(!easingFunction){throw new Error(\"Unknown easing function \"+(0,_stringify2[\"default\"])(easingName)+\". \"+\"Choose from: \"+(0,_keys2[\"default\"])(util.easingFunctions).join(\", \"))}var initTime=(new Date).valueOf();var anyChanged=false;var next=function next(){if(!me.props.touch.dragging){var now=(new Date).valueOf();var time=now-initTime;var ease=easingFunction(time/duration);var done=time>duration;var s=done||finalStart===null?finalStart:initStart+(finalStart-initStart)*ease;var e=done||finalEnd===null?finalEnd:initEnd+(finalEnd-initEnd)*ease;changed=me._applyRange(s,e);DateUtil.updateHiddenDates(me.options.moment,me.body,me.options.hiddenDates);anyChanged=anyChanged||changed;var params={start:new Date(me.start),end:new Date(me.end),byUser:options.byUser,event:options.event};if(frameCallback){frameCallback(ease,changed,done)}if(changed){me.body.emitter.emit(\"rangechange\",params)}if(done){if(anyChanged){me.body.emitter.emit(\"rangechanged\",params);if(callback){return callback()}}}else{me.animationTimer=setTimeout(next,20)}}};return next()}else{var changed=this._applyRange(finalStart,finalEnd);DateUtil.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates);if(changed){var params={start:new Date(this.start),end:new Date(this.end),byUser:options.byUser,event:options.event};this.body.emitter.emit(\"rangechange\",params);clearTimeout(me.timeoutID);me.timeoutID=setTimeout(function(){me.body.emitter.emit(\"rangechanged\",params)},200);if(callback){return callback()}}}};Range.prototype.getMillisecondsPerPixel=function(){if(this.millisecondsPerPixelCache===undefined){this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth}return this.millisecondsPerPixelCache};Range.prototype._cancelAnimation=function(){if(this.animationTimer){clearTimeout(this.animationTimer);this.animationTimer=null}};Range.prototype._applyRange=function(start,end){var newStart=start!=null?util.convert(start,\"Date\").valueOf():this.start,newEnd=end!=null?util.convert(end,\"Date\").valueOf():this.end,max=this.options.max!=null?util.convert(this.options.max,\"Date\").valueOf():null,min=this.options.min!=null?util.convert(this.options.min,\"Date\").valueOf():null,diff;if(isNaN(newStart)||newStart===null){throw new Error('Invalid start \"'+start+'\"')}if(isNaN(newEnd)||newEnd===null){throw new Error('Invalid end \"'+end+'\"')}if(newEnd<newStart){newEnd=newStart}if(min!==null){if(newStart<min){diff=min-newStart;newStart+=diff;newEnd+=diff;if(max!=null){if(newEnd>max){newEnd=max}}}}if(max!==null){if(newEnd>max){diff=newEnd-max;newStart-=diff;newEnd-=diff;if(min!=null){if(newStart<min){newStart=min}}}}if(this.options.zoomMin!==null){var zoomMin=parseFloat(this.options.zoomMin);if(zoomMin<0){zoomMin=0}if(newEnd-newStart<zoomMin){var compensation=.5;if(this.end-this.start===zoomMin&&newStart>=this.start-compensation&&newEnd<=this.end){newStart=this.start;newEnd=this.end}else{diff=zoomMin-(newEnd-newStart);newStart-=diff/2;newEnd+=diff/2}}}if(this.options.zoomMax!==null){var zoomMax=parseFloat(this.options.zoomMax);if(zoomMax<0){zoomMax=0}if(newEnd-newStart>zoomMax){if(this.end-this.start===zoomMax&&newStart<this.start&&newEnd>this.end){newStart=this.start;newEnd=this.end}else{diff=newEnd-newStart-zoomMax;newStart+=diff/2;newEnd-=diff/2}}}var changed=this.start!=newStart||this.end!=newEnd;if(!(newStart>=this.start&&newStart<=this.end||newEnd>=this.start&&newEnd<=this.end)&&!(this.start>=newStart&&this.start<=newEnd||this.end>=newStart&&this.end<=newEnd)){this.body.emitter.emit(\"checkRangedItems\")}this.start=newStart;this.end=newEnd;return changed};Range.prototype.getRange=function(){return{start:this.start,end:this.end}};Range.prototype.conversion=function(width,totalHidden){return Range.conversion(this.start,this.end,width,totalHidden)};Range.conversion=function(start,end,width,totalHidden){if(totalHidden===undefined){totalHidden=0}if(width!=0&&end-start!=0){return{offset:start,scale:width/(end-start-totalHidden)}}else{return{offset:0,scale:1}}};Range.prototype._onDragStart=function(event){this.deltaDifference=0;this.previousDelta=0;if(!this.options.moveable)return;if(!this._isInsideRange(event))return;if(!this.props.touch.allowDragging)return;this.stopRolling();this.props.touch.start=this.start;this.props.touch.end=this.end;this.props.touch.dragging=true;if(this.body.dom.root){this.body.dom.root.style.cursor=\"move\"}};Range.prototype._onDrag=function(event){if(!event)return;if(!this.props.touch.dragging)return;if(!this.options.moveable)return;if(!this.props.touch.allowDragging)return;var direction=this.options.direction;validateDirection(direction);var delta=direction==\"horizontal\"?event.deltaX:event.deltaY;delta-=this.deltaDifference;var interval=this.props.touch.end-this.props.touch.start;var duration=DateUtil.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end);interval-=duration;var width=direction==\"horizontal\"?this.body.domProps.center.width:this.body.domProps.center.height;var diffRange;if(this.options.rtl){diffRange=delta/width*interval}else{diffRange=-delta/width*interval}var newStart=this.props.touch.start+diffRange;var newEnd=this.props.touch.end+diffRange;var safeStart=DateUtil.snapAwayFromHidden(this.body.hiddenDates,newStart,this.previousDelta-delta,true);var safeEnd=DateUtil.snapAwayFromHidden(this.body.hiddenDates,newEnd,this.previousDelta-delta,true);if(safeStart!=newStart||safeEnd!=newEnd){this.deltaDifference+=delta;this.props.touch.start=safeStart;this.props.touch.end=safeEnd;this._onDrag(event);return}this.previousDelta=delta;this._applyRange(newStart,newEnd);var startDate=new Date(this.start);var endDate=new Date(this.end);this.body.emitter.emit(\"rangechange\",{start:startDate,end:endDate,byUser:true,event:event});this.body.emitter.emit(\"panmove\")};Range.prototype._onDragEnd=function(event){if(!this.props.touch.dragging)return;if(!this.options.moveable)return;if(!this.props.touch.allowDragging)return;this.props.touch.dragging=false;if(this.body.dom.root){this.body.dom.root.style.cursor=\"auto\"}this.body.emitter.emit(\"rangechanged\",{start:new Date(this.start),end:new Date(this.end),byUser:true,event:event})};Range.prototype._onMouseWheel=function(event){var delta=0;if(event.wheelDelta){delta=event.wheelDelta/120}else if(event.detail){delta=-event.detail/3}if(this.options.zoomKey&&!event[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable){return}if(!(this.options.zoomable&&this.options.moveable))return;if(!this._isInsideRange(event))return;if(delta){var scale;if(delta<0){scale=1-delta/5}else{scale=1/(1+delta/5)}var pointerDate;if(this.rolling){pointerDate=this.start+(this.end-this.start)*this.options.rollingMode.offset}else{var pointer=this.getPointer({x:event.clientX,y:event.clientY},this.body.dom.center);pointerDate=this._pointerToDate(pointer)}this.zoom(scale,pointerDate,delta,event);event.preventDefault()}};Range.prototype._onTouch=function(event){this.props.touch.start=this.start;this.props.touch.end=this.end;this.props.touch.allowDragging=true;this.props.touch.center=null;this.scaleOffset=0;this.deltaDifference=0;util.preventDefault(event)};Range.prototype._onPinch=function(event){if(!(this.options.zoomable&&this.options.moveable))return;util.preventDefault(event);this.props.touch.allowDragging=false;if(!this.props.touch.center){this.props.touch.center=this.getPointer(event.center,this.body.dom.center)}this.stopRolling();var scale=1/(event.scale+this.scaleOffset);var centerDate=this._pointerToDate(this.props.touch.center);var hiddenDuration=DateUtil.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end);var hiddenDurationBefore=DateUtil.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,centerDate);var hiddenDurationAfter=hiddenDuration-hiddenDurationBefore;var newStart=centerDate-hiddenDurationBefore+(this.props.touch.start-(centerDate-hiddenDurationBefore))*scale;var newEnd=centerDate+hiddenDurationAfter+(this.props.touch.end-(centerDate+hiddenDurationAfter))*scale;this.startToFront=1-scale<=0;this.endToFront=scale-1<=0;var safeStart=DateUtil.snapAwayFromHidden(this.body.hiddenDates,newStart,1-scale,true);var safeEnd=DateUtil.snapAwayFromHidden(this.body.hiddenDates,newEnd,scale-1,true);if(safeStart!=newStart||safeEnd!=newEnd){this.props.touch.start=safeStart;this.props.touch.end=safeEnd;this.scaleOffset=1-event.scale;newStart=safeStart;newEnd=safeEnd}var options={animation:false,byUser:true,event:event};this.setRange(newStart,newEnd,options);this.startToFront=false;this.endToFront=true};Range.prototype._isInsideRange=function(event){var clientX=event.center?event.center.x:event.clientX;var x;if(this.options.rtl){x=clientX-util.getAbsoluteLeft(this.body.dom.centerContainer)}else{x=util.getAbsoluteRight(this.body.dom.centerContainer)-clientX}var time=this.body.util.toTime(x);return time>=this.start&&time<=this.end};Range.prototype._pointerToDate=function(pointer){var conversion;var direction=this.options.direction;validateDirection(direction);if(direction==\"horizontal\"){return this.body.util.toTime(pointer.x).valueOf()}else{var height=this.body.domProps.center.height;conversion=this.conversion(height);return pointer.y/conversion.scale+conversion.offset}};Range.prototype.getPointer=function(touch,element){if(this.options.rtl){return{x:util.getAbsoluteRight(element)-touch.x,y:touch.y-util.getAbsoluteTop(element)}}else{return{x:touch.x-util.getAbsoluteLeft(element),y:touch.y-util.getAbsoluteTop(element)}}};Range.prototype.zoom=function(scale,center,delta,event){if(center==null){center=(this.start+this.end)/2}var hiddenDuration=DateUtil.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end);var hiddenDurationBefore=DateUtil.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,center);var hiddenDurationAfter=hiddenDuration-hiddenDurationBefore;var newStart=center-hiddenDurationBefore+(this.start-(center-hiddenDurationBefore))*scale;var newEnd=center+hiddenDurationAfter+(this.end-(center+hiddenDurationAfter))*scale;this.startToFront=delta>0?false:true;this.endToFront=-delta>0?false:true;var safeStart=DateUtil.snapAwayFromHidden(this.body.hiddenDates,newStart,delta,true);var safeEnd=DateUtil.snapAwayFromHidden(this.body.hiddenDates,newEnd,-delta,true);if(safeStart!=newStart||safeEnd!=newEnd){newStart=safeStart;newEnd=safeEnd}var options={animation:false,byUser:true,event:event};this.setRange(newStart,newEnd,options);this.startToFront=false;this.endToFront=true};Range.prototype.move=function(delta){var diff=this.end-this.start;var newStart=this.start+diff*delta;var newEnd=this.end+diff*delta;this.start=newStart;this.end=newEnd};Range.prototype.moveTo=function(moveTo){var center=(this.start+this.end)/2;var diff=center-moveTo;var newStart=this.start-diff;var newEnd=this.end-diff;var options={animation:false,byUser:true,event:null};this.setRange(newStart,newEnd,options)};module.exports=Range},function(module,exports,__webpack_require__){\"use strict\";var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Emitter=__webpack_require__(44);var Hammer=__webpack_require__(10);var hammerUtil=__webpack_require__(37);var util=__webpack_require__(2);var TimeAxis=__webpack_require__(45);var Activator=__webpack_require__(97);var DateUtil=__webpack_require__(36);var CustomTime=__webpack_require__(46);function Core(){}Emitter(Core.prototype);Core.prototype._create=function(container){this.dom={};this.dom.container=container;this.dom.root=document.createElement(\"div\");this.dom.background=document.createElement(\"div\");this.dom.backgroundVertical=document.createElement(\"div\");this.dom.backgroundHorizontal=document.createElement(\"div\");this.dom.centerContainer=document.createElement(\"div\");this.dom.leftContainer=document.createElement(\"div\");this.dom.rightContainer=document.createElement(\"div\");this.dom.center=document.createElement(\"div\");this.dom.left=document.createElement(\"div\");this.dom.right=document.createElement(\"div\");this.dom.top=document.createElement(\"div\");this.dom.bottom=document.createElement(\"div\");this.dom.shadowTop=document.createElement(\"div\");this.dom.shadowBottom=document.createElement(\"div\");this.dom.shadowTopLeft=document.createElement(\"div\");this.dom.shadowBottomLeft=document.createElement(\"div\");this.dom.shadowTopRight=document.createElement(\"div\");this.dom.shadowBottomRight=document.createElement(\"div\");this.dom.rollingModeBtn=document.createElement(\"div\");this.dom.root.className=\"vis-timeline\";this.dom.background.className=\"vis-panel vis-background\";this.dom.backgroundVertical.className=\"vis-panel vis-background vis-vertical\";this.dom.backgroundHorizontal.className=\"vis-panel vis-background vis-horizontal\";this.dom.centerContainer.className=\"vis-panel vis-center\";this.dom.leftContainer.className=\"vis-panel vis-left\";this.dom.rightContainer.className=\"vis-panel vis-right\";this.dom.top.className=\"vis-panel vis-top\";this.dom.bottom.className=\"vis-panel vis-bottom\";this.dom.left.className=\"vis-content\";this.dom.center.className=\"vis-content\";this.dom.right.className=\"vis-content\";this.dom.shadowTop.className=\"vis-shadow vis-top\";this.dom.shadowBottom.className=\"vis-shadow vis-bottom\";this.dom.shadowTopLeft.className=\"vis-shadow vis-top\";this.dom.shadowBottomLeft.className=\"vis-shadow vis-bottom\";this.dom.shadowTopRight.className=\"vis-shadow vis-top\";this.dom.shadowBottomRight.className=\"vis-shadow vis-bottom\";this.dom.rollingModeBtn.className=\"vis-rolling-mode-btn\";this.dom.root.appendChild(this.dom.background);this.dom.root.appendChild(this.dom.backgroundVertical);this.dom.root.appendChild(this.dom.backgroundHorizontal);this.dom.root.appendChild(this.dom.centerContainer);this.dom.root.appendChild(this.dom.leftContainer);this.dom.root.appendChild(this.dom.rightContainer);this.dom.root.appendChild(this.dom.top);this.dom.root.appendChild(this.dom.bottom);this.dom.root.appendChild(this.dom.bottom);this.dom.root.appendChild(this.dom.rollingModeBtn);this.dom.centerContainer.appendChild(this.dom.center);this.dom.leftContainer.appendChild(this.dom.left);this.dom.rightContainer.appendChild(this.dom.right);this.dom.centerContainer.appendChild(this.dom.shadowTop);this.dom.centerContainer.appendChild(this.dom.shadowBottom);this.dom.leftContainer.appendChild(this.dom.shadowTopLeft);this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft);this.dom.rightContainer.appendChild(this.dom.shadowTopRight);this.dom.rightContainer.appendChild(this.dom.shadowBottomRight);this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0};this.on(\"rangechange\",function(){if(this.initialDrawDone===true){this._redraw()}}.bind(this));this.on(\"rangechanged\",function(){if(!this.initialRangeChangeDone){this.initialRangeChangeDone=true}}.bind(this));this.on(\"touch\",this._onTouch.bind(this));this.on(\"panmove\",this._onDrag.bind(this));var me=this;this._origRedraw=this._redraw.bind(this);this._redraw=util.throttle(this._origRedraw);this.on(\"_change\",function(properties){if(me.itemSet&&me.itemSet.initialItemSetDrawn&&properties&&properties.queue==true){me._redraw()}else{me._origRedraw()}});this.hammer=new Hammer(this.dom.root);var pinchRecognizer=this.hammer.get(\"pinch\").set({enable:true});hammerUtil.disablePreventDefaultVertically(pinchRecognizer);this.hammer.get(\"pan\").set({threshold:5,direction:Hammer.DIRECTION_HORIZONTAL});this.listeners={};var events=[\"tap\",\"doubletap\",\"press\",\"pinch\",\"pan\",\"panstart\",\"panmove\",\"panend\"];events.forEach(function(type){var listener=function listener(event){if(me.isActive()){me.emit(type,event)}};me.hammer.on(type,listener);me.listeners[type]=listener});hammerUtil.onTouch(this.hammer,function(event){me.emit(\"touch\",event)}.bind(this));hammerUtil.onRelease(this.hammer,function(event){me.emit(\"release\",event)}.bind(this));function onMouseWheel(event){if(this.isActive()){this.emit(\"mousewheel\",event)}var deltaX=0;var deltaY=0;if(\"detail\"in event){deltaY=event.detail*-1}if(\"wheelDelta\"in event){deltaY=event.wheelDelta}if(\"wheelDeltaY\"in event){deltaY=event.wheelDeltaY}if(\"wheelDeltaX\"in event){deltaX=event.wheelDeltaX*-1}if(\"axis\"in event&&event.axis===event.HORIZONTAL_AXIS){deltaX=deltaY*-1;deltaY=0}if(\"deltaY\"in event){deltaY=event.deltaY*-1}if(\"deltaX\"in event){deltaX=event.deltaX}if(!this.options.zoomKey||event[this.options.zoomKey])return;event.preventDefault();if(this.options.verticalScroll&&Math.abs(deltaY)>=Math.abs(deltaX)){var current=this.props.scrollTop;var adjusted=current+deltaY;if(this.isActive()){this._setScrollTop(adjusted);this._redraw();this.emit(\"scroll\",event)}}else if(this.options.horizontalScroll){var delta=Math.abs(deltaX)>=Math.abs(deltaY)?deltaX:deltaY;var diff=delta/120*(this.range.end-this.range.start)/20;var newStart=this.range.start+diff;var newEnd=this.range.end+diff;var options={animation:false,byUser:true,event:event};this.range.setRange(newStart,newEnd,options)}}if(this.dom.centerContainer.addEventListener){this.dom.centerContainer.addEventListener(\"mousewheel\",onMouseWheel.bind(this),false);this.dom.centerContainer.addEventListener(\"DOMMouseScroll\",onMouseWheel.bind(this),false)}else{this.dom.centerContainer.attachEvent(\"onmousewheel\",onMouseWheel.bind(this))}function onMouseScrollSide(event){if(!me.options.verticalScroll)return;event.preventDefault();if(me.isActive()){var adjusted=-event.target.scrollTop;me._setScrollTop(adjusted);me._redraw();me.emit(\"scrollSide\",event)}}this.dom.left.parentNode.addEventListener(\"scroll\",onMouseScrollSide.bind(this));this.dom.right.parentNode.addEventListener(\"scroll\",onMouseScrollSide.bind(this));var itemAddedToTimeline=false;function handleDragOver(event){if(event.preventDefault){event.preventDefault()}if(!event.target.className.indexOf(\"vis\")>-1)return;if(itemAddedToTimeline)return;event.dataTransfer.dropEffect=\"move\";itemAddedToTimeline=true;return false}function handleDrop(event){if(event.preventDefault){event.preventDefault()}if(event.stopPropagation){event.stopPropagation()}try{var itemData=JSON.parse(event.dataTransfer.getData(\"text\"));if(!itemData||!itemData.content)return}catch(err){return false}itemAddedToTimeline=false;event.center={x:event.clientX,y:event.clientY};if(itemData.target!==\"item\"){me.itemSet._onAddItem(event)}else{me.itemSet._onDropObjectOnItem(event)}me.emit(\"drop\",me.getEventProperties(event));return false}this.dom.center.addEventListener(\"dragover\",handleDragOver.bind(this),false);this.dom.center.addEventListener(\"drop\",handleDrop.bind(this),false);this.customTimes=[];this.touch={};this.redrawCount=0;this.initialDrawDone=false;this.initialRangeChangeDone=false;if(!container)throw new Error(\"No container provided\");container.appendChild(this.dom.root)};Core.prototype.setOptions=function(options){if(options){var fields=[\"width\",\"height\",\"minHeight\",\"maxHeight\",\"autoResize\",\"start\",\"end\",\"clickToUse\",\"dataAttributes\",\"hiddenDates\",\"locale\",\"locales\",\"moment\",\"rtl\",\"zoomKey\",\"horizontalScroll\",\"verticalScroll\"];util.selectiveExtend(fields,this.options,options);this.dom.rollingModeBtn.style.visibility=\"hidden\";if(this.options.rtl){this.dom.container.style.direction=\"rtl\";this.dom.backgroundVertical.className=\"vis-panel vis-background vis-vertical-rtl\"}if(this.options.verticalScroll){if(this.options.rtl){this.dom.rightContainer.className=\"vis-panel vis-right vis-vertical-scroll\"}else{this.dom.leftContainer.className=\"vis-panel vis-left vis-vertical-scroll\"}}if((0,_typeof3[\"default\"])(this.options.orientation)!==\"object\"){this.options.orientation={item:undefined,axis:undefined}}if(\"orientation\"in options){if(typeof options.orientation===\"string\"){this.options.orientation={item:options.orientation,axis:options.orientation}}else if((0,_typeof3[\"default\"])(options.orientation)===\"object\"){if(\"item\"in options.orientation){this.options.orientation.item=options.orientation.item}if(\"axis\"in options.orientation){this.options.orientation.axis=options.orientation.axis}}}if(this.options.orientation.axis===\"both\"){if(!this.timeAxis2){var timeAxis2=this.timeAxis2=new TimeAxis(this.body);timeAxis2.setOptions=function(options){var _options=options?util.extend({},options):{};_options.orientation=\"top\";TimeAxis.prototype.setOptions.call(timeAxis2,_options)};this.components.push(timeAxis2)}}else{if(this.timeAxis2){var index=this.components.indexOf(this.timeAxis2);if(index!==-1){this.components.splice(index,1)}this.timeAxis2.destroy();this.timeAxis2=null}}if(typeof options.drawPoints==\"function\"){options.drawPoints={onRender:options.drawPoints}}if(\"hiddenDates\"in this.options){DateUtil.convertHiddenOptions(this.options.moment,this.body,this.options.hiddenDates)}if(\"clickToUse\"in options){if(options.clickToUse){if(!this.activator){this.activator=new Activator(this.dom.root)}}else{if(this.activator){this.activator.destroy();delete this.activator}}}if(\"showCustomTime\"in options){throw new Error(\"Option `showCustomTime` is deprecated. Create a custom time bar via timeline.addCustomTime(time [, id])\")}this._initAutoResize()}this.components.forEach(function(component){return component.setOptions(options)});if(\"configure\"in options){if(!this.configurator){this.configurator=this._createConfigurator()}this.configurator.setOptions(options.configure);var appliedOptions=util.deepExtend({},this.options);this.components.forEach(function(component){util.deepExtend(appliedOptions,component.options)});this.configurator.setModuleOptions({global:appliedOptions})}this._redraw()};Core.prototype.isActive=function(){return!this.activator||this.activator.active};Core.prototype.destroy=function(){this.setItems(null);this.setGroups(null);this.off();this._stopAutoResize();if(this.dom.root.parentNode){this.dom.root.parentNode.removeChild(this.dom.root)}this.dom=null;if(this.activator){this.activator.destroy();delete this.activator}for(var event in this.listeners){if(this.listeners.hasOwnProperty(event)){delete this.listeners[event]}}this.listeners=null;this.hammer=null;this.components.forEach(function(component){return component.destroy()});this.body=null};Core.prototype.setCustomTime=function(time,id){var customTimes=this.customTimes.filter(function(component){return id===component.options.id});if(customTimes.length===0){throw new Error(\"No custom time bar found with id \"+(0,_stringify2[\"default\"])(id))}if(customTimes.length>0){customTimes[0].setCustomTime(time)}};Core.prototype.getCustomTime=function(id){var customTimes=this.customTimes.filter(function(component){return component.options.id===id});if(customTimes.length===0){throw new Error(\"No custom time bar found with id \"+(0,_stringify2[\"default\"])(id))}return customTimes[0].getCustomTime()};Core.prototype.setCustomTimeTitle=function(title,id){var customTimes=this.customTimes.filter(function(component){return component.options.id===id});if(customTimes.length===0){throw new Error(\"No custom time bar found with id \"+(0,_stringify2[\"default\"])(id))}if(customTimes.length>0){return customTimes[0].setCustomTitle(title)}};Core.prototype.getEventProperties=function(event){return{event:event}};Core.prototype.addCustomTime=function(time,id){var timestamp=time!==undefined?util.convert(time,\"Date\").valueOf():new Date;var exists=this.customTimes.some(function(customTime){return customTime.options.id===id});if(exists){throw new Error(\"A custom time with id \"+(0,_stringify2[\"default\"])(id)+\" already exists\")}var customTime=new CustomTime(this.body,util.extend({},this.options,{time:timestamp,id:id}));this.customTimes.push(customTime);this.components.push(customTime);this._redraw();return id};Core.prototype.removeCustomTime=function(id){var customTimes=this.customTimes.filter(function(bar){return bar.options.id===id});if(customTimes.length===0){throw new Error(\"No custom time bar found with id \"+(0,_stringify2[\"default\"])(id))}customTimes.forEach(function(customTime){this.customTimes.splice(this.customTimes.indexOf(customTime),1);this.components.splice(this.components.indexOf(customTime),1);customTime.destroy()}.bind(this))};Core.prototype.getVisibleItems=function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]};Core.prototype.fit=function(options,callback){var range=this.getDataRange();if(range.min===null&&range.max===null){return}var interval=range.max-range.min;var min=new Date(range.min.valueOf()-interval*.01);var max=new Date(range.max.valueOf()+interval*.01);var animation=options&&options.animation!==undefined?options.animation:true;this.range.setRange(min,max,{animation:animation},callback)};Core.prototype.getDataRange=function(){throw new Error(\"Cannot invoke abstract method getDataRange\")};Core.prototype.setWindow=function(start,end,options,callback){if(typeof arguments[2]==\"function\"){callback=arguments[2];options={}}var animation;var range;if(arguments.length==1){range=arguments[0];animation=range.animation!==undefined?range.animation:true;this.range.setRange(range.start,range.end,{animation:animation})}else if(arguments.length==2&&typeof arguments[1]==\"function\"){range=arguments[0];callback=arguments[1];animation=range.animation!==undefined?range.animation:true\n;this.range.setRange(range.start,range.end,{animation:animation},callback)}else{animation=options&&options.animation!==undefined?options.animation:true;this.range.setRange(start,end,{animation:animation},callback)}};Core.prototype.moveTo=function(time,options,callback){if(typeof arguments[1]==\"function\"){callback=arguments[1];options={}}var interval=this.range.end-this.range.start;var t=util.convert(time,\"Date\").valueOf();var start=t-interval/2;var end=t+interval/2;var animation=options&&options.animation!==undefined?options.animation:true;this.range.setRange(start,end,{animation:animation},callback)};Core.prototype.getWindow=function(){var range=this.range.getRange();return{start:new Date(range.start),end:new Date(range.end)}};Core.prototype.zoomIn=function(percentage,options,callback){if(!percentage||percentage<0||percentage>1)return;if(typeof arguments[1]==\"function\"){callback=arguments[1];options={}}var range=this.getWindow();var start=range.start.valueOf();var end=range.end.valueOf();var interval=end-start;var newInterval=interval/(1+percentage);var distance=(interval-newInterval)/2;var newStart=start+distance;var newEnd=end-distance;this.setWindow(newStart,newEnd,options,callback)};Core.prototype.zoomOut=function(percentage,options,callback){if(!percentage||percentage<0||percentage>1)return;if(typeof arguments[1]==\"function\"){callback=arguments[1];options={}}var range=this.getWindow();var start=range.start.valueOf();var end=range.end.valueOf();var interval=end-start;var newStart=start-interval*percentage/2;var newEnd=end+interval*percentage/2;this.setWindow(newStart,newEnd,options,callback)};Core.prototype.redraw=function(){this._redraw()};Core.prototype._redraw=function(){this.redrawCount++;var resized=false;var options=this.options;var props=this.props;var dom=this.dom;if(!dom||!dom.container||dom.root.offsetWidth==0)return;DateUtil.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates);if(options.orientation==\"top\"){util.addClassName(dom.root,\"vis-top\");util.removeClassName(dom.root,\"vis-bottom\")}else{util.removeClassName(dom.root,\"vis-top\");util.addClassName(dom.root,\"vis-bottom\")}dom.root.style.maxHeight=util.option.asSize(options.maxHeight,\"\");dom.root.style.minHeight=util.option.asSize(options.minHeight,\"\");dom.root.style.width=util.option.asSize(options.width,\"\");props.border.left=(dom.centerContainer.offsetWidth-dom.centerContainer.clientWidth)/2;props.border.right=props.border.left;props.border.top=(dom.centerContainer.offsetHeight-dom.centerContainer.clientHeight)/2;props.border.bottom=props.border.top;props.borderRootHeight=dom.root.offsetHeight-dom.root.clientHeight;props.borderRootWidth=dom.root.offsetWidth-dom.root.clientWidth;if(dom.centerContainer.clientHeight===0){props.border.left=props.border.top;props.border.right=props.border.left}if(dom.root.clientHeight===0){props.borderRootWidth=props.borderRootHeight}props.center.height=dom.center.offsetHeight;props.left.height=dom.left.offsetHeight;props.right.height=dom.right.offsetHeight;props.top.height=dom.top.clientHeight||-props.border.top;props.bottom.height=dom.bottom.clientHeight||-props.border.bottom;var contentHeight=Math.max(props.left.height,props.center.height,props.right.height);var autoHeight=props.top.height+contentHeight+props.bottom.height+props.borderRootHeight+props.border.top+props.border.bottom;dom.root.style.height=util.option.asSize(options.height,autoHeight+\"px\");props.root.height=dom.root.offsetHeight;props.background.height=props.root.height-props.borderRootHeight;var containerHeight=props.root.height-props.top.height-props.bottom.height-props.borderRootHeight;props.centerContainer.height=containerHeight;props.leftContainer.height=containerHeight;props.rightContainer.height=props.leftContainer.height;props.root.width=dom.root.offsetWidth;props.background.width=props.root.width-props.borderRootWidth;if(!this.initialDrawDone){props.scrollbarWidth=util.getScrollBarWidth()}if(options.verticalScroll){if(options.rtl){props.left.width=dom.leftContainer.clientWidth||-props.border.left;props.right.width=dom.rightContainer.clientWidth+props.scrollbarWidth||-props.border.right}else{props.left.width=dom.leftContainer.clientWidth+props.scrollbarWidth||-props.border.left;props.right.width=dom.rightContainer.clientWidth||-props.border.right}}else{props.left.width=dom.leftContainer.clientWidth||-props.border.left;props.right.width=dom.rightContainer.clientWidth||-props.border.right}this._setDOM();var offset=this._updateScrollTop();if(options.orientation.item!=\"top\"){offset+=Math.max(props.centerContainer.height-props.center.height-props.border.top-props.border.bottom,0)}dom.center.style.top=offset+\"px\";var visibilityTop=props.scrollTop==0?\"hidden\":\"\";var visibilityBottom=props.scrollTop==props.scrollTopMin?\"hidden\":\"\";dom.shadowTop.style.visibility=visibilityTop;dom.shadowBottom.style.visibility=visibilityBottom;dom.shadowTopLeft.style.visibility=visibilityTop;dom.shadowBottomLeft.style.visibility=visibilityBottom;dom.shadowTopRight.style.visibility=visibilityTop;dom.shadowBottomRight.style.visibility=visibilityBottom;if(options.verticalScroll){dom.rightContainer.className=\"vis-panel vis-right vis-vertical-scroll\";dom.leftContainer.className=\"vis-panel vis-left vis-vertical-scroll\";dom.shadowTopRight.style.visibility=\"hidden\";dom.shadowBottomRight.style.visibility=\"hidden\";dom.shadowTopLeft.style.visibility=\"hidden\";dom.shadowBottomLeft.style.visibility=\"hidden\";dom.left.style.top=\"0px\";dom.right.style.top=\"0px\"}if(!options.verticalScroll||props.center.height<props.centerContainer.height){dom.left.style.top=offset+\"px\";dom.right.style.top=offset+\"px\";dom.rightContainer.className=dom.rightContainer.className.replace(new RegExp(\"(?:^|\\\\s)\"+\"vis-vertical-scroll\"+\"(?:\\\\s|$)\"),\" \");dom.leftContainer.className=dom.leftContainer.className.replace(new RegExp(\"(?:^|\\\\s)\"+\"vis-vertical-scroll\"+\"(?:\\\\s|$)\"),\" \");props.left.width=dom.leftContainer.clientWidth||-props.border.left;props.right.width=dom.rightContainer.clientWidth||-props.border.right;this._setDOM()}var contentsOverflow=props.center.height>props.centerContainer.height;this.hammer.get(\"pan\").set({direction:contentsOverflow?Hammer.DIRECTION_ALL:Hammer.DIRECTION_HORIZONTAL});this.components.forEach(function(component){resized=component.redraw()||resized});var MAX_REDRAW=5;if(resized){if(this.redrawCount<MAX_REDRAW){this.body.emitter.emit(\"_change\");return}else{console.log(\"WARNING: infinite loop in redraw?\")}}else{this.redrawCount=0}this.body.emitter.emit(\"changed\")};Core.prototype._setDOM=function(){var props=this.props;var dom=this.dom;props.leftContainer.width=props.left.width;props.rightContainer.width=props.right.width;var centerWidth=props.root.width-props.left.width-props.right.width-props.borderRootWidth;props.center.width=centerWidth;props.centerContainer.width=centerWidth;props.top.width=centerWidth;props.bottom.width=centerWidth;dom.background.style.height=props.background.height+\"px\";dom.backgroundVertical.style.height=props.background.height+\"px\";dom.backgroundHorizontal.style.height=props.centerContainer.height+\"px\";dom.centerContainer.style.height=props.centerContainer.height+\"px\";dom.leftContainer.style.height=props.leftContainer.height+\"px\";dom.rightContainer.style.height=props.rightContainer.height+\"px\";dom.background.style.width=props.background.width+\"px\";dom.backgroundVertical.style.width=props.centerContainer.width+\"px\";dom.backgroundHorizontal.style.width=props.background.width+\"px\";dom.centerContainer.style.width=props.center.width+\"px\";dom.top.style.width=props.top.width+\"px\";dom.bottom.style.width=props.bottom.width+\"px\";dom.background.style.left=\"0\";dom.background.style.top=\"0\";dom.backgroundVertical.style.left=props.left.width+props.border.left+\"px\";dom.backgroundVertical.style.top=\"0\";dom.backgroundHorizontal.style.left=\"0\";dom.backgroundHorizontal.style.top=props.top.height+\"px\";dom.centerContainer.style.left=props.left.width+\"px\";dom.centerContainer.style.top=props.top.height+\"px\";dom.leftContainer.style.left=\"0\";dom.leftContainer.style.top=props.top.height+\"px\";dom.rightContainer.style.left=props.left.width+props.center.width+\"px\";dom.rightContainer.style.top=props.top.height+\"px\";dom.top.style.left=props.left.width+\"px\";dom.top.style.top=\"0\";dom.bottom.style.left=props.left.width+\"px\";dom.bottom.style.top=props.top.height+props.centerContainer.height+\"px\";dom.center.style.left=\"0\";dom.left.style.left=\"0\";dom.right.style.left=\"0\"};Core.prototype.repaint=function(){throw new Error(\"Function repaint is deprecated. Use redraw instead.\")};Core.prototype.setCurrentTime=function(time){if(!this.currentTime){throw new Error(\"Option showCurrentTime must be true\")}this.currentTime.setCurrentTime(time)};Core.prototype.getCurrentTime=function(){if(!this.currentTime){throw new Error(\"Option showCurrentTime must be true\")}return this.currentTime.getCurrentTime()};Core.prototype._toTime=function(x){return DateUtil.toTime(this,x,this.props.center.width)};Core.prototype._toGlobalTime=function(x){return DateUtil.toTime(this,x,this.props.root.width)};Core.prototype._toScreen=function(time){return DateUtil.toScreen(this,time,this.props.center.width)};Core.prototype._toGlobalScreen=function(time){return DateUtil.toScreen(this,time,this.props.root.width)};Core.prototype._initAutoResize=function(){if(this.options.autoResize==true){this._startAutoResize()}else{this._stopAutoResize()}};Core.prototype._startAutoResize=function(){var me=this;this._stopAutoResize();this._onResize=function(){if(me.options.autoResize!=true){me._stopAutoResize();return}if(me.dom.root){if(me.dom.root.offsetWidth!=me.props.lastWidth||me.dom.root.offsetHeight!=me.props.lastHeight){me.props.lastWidth=me.dom.root.offsetWidth;me.props.lastHeight=me.dom.root.offsetHeight;me.props.scrollbarWidth=util.getScrollBarWidth();me.body.emitter.emit(\"_change\")}}};util.addEventListener(window,\"resize\",this._onResize);if(me.dom.root){me.props.lastWidth=me.dom.root.offsetWidth;me.props.lastHeight=me.dom.root.offsetHeight}this.watchTimer=setInterval(this._onResize,1e3)};Core.prototype._stopAutoResize=function(){if(this.watchTimer){clearInterval(this.watchTimer);this.watchTimer=undefined}if(this._onResize){util.removeEventListener(window,\"resize\",this._onResize);this._onResize=null}};Core.prototype._onTouch=function(event){this.touch.allowDragging=true;this.touch.initialScrollTop=this.props.scrollTop};Core.prototype._onPinch=function(event){this.touch.allowDragging=false};Core.prototype._onDrag=function(event){if(!event)return;if(!this.touch.allowDragging)return;var delta=event.deltaY;var oldScrollTop=this._getScrollTop();var newScrollTop=this._setScrollTop(this.touch.initialScrollTop+delta);if(this.options.verticalScroll){this.dom.left.parentNode.scrollTop=-this.props.scrollTop;this.dom.right.parentNode.scrollTop=-this.props.scrollTop}if(newScrollTop!=oldScrollTop){this.emit(\"verticalDrag\")}};Core.prototype._setScrollTop=function(scrollTop){this.props.scrollTop=scrollTop;this._updateScrollTop();return this.props.scrollTop};Core.prototype._updateScrollTop=function(){var scrollTopMin=Math.min(this.props.centerContainer.height-this.props.center.height,0);if(scrollTopMin!=this.props.scrollTopMin){if(this.options.orientation.item!=\"top\"){this.props.scrollTop+=scrollTopMin-this.props.scrollTopMin}this.props.scrollTopMin=scrollTopMin}if(this.props.scrollTop>0)this.props.scrollTop=0;if(this.props.scrollTop<scrollTopMin)this.props.scrollTop=scrollTopMin;if(this.options.verticalScroll){this.dom.left.parentNode.scrollTop=-this.props.scrollTop;this.dom.right.parentNode.scrollTop=-this.props.scrollTop}return this.props.scrollTop};Core.prototype._getScrollTop=function(){return this.props.scrollTop};Core.prototype._createConfigurator=function(){throw new Error(\"Cannot invoke abstract method _createConfigurator\")};module.exports=Core},function(module,exports,__webpack_require__){\"use strict\";var moment=__webpack_require__(9);var DateUtil=__webpack_require__(36);var util=__webpack_require__(2);function TimeStep(start,end,minimumStep,hiddenDates,options){this.moment=moment;this.current=this.moment();this._start=this.moment();this._end=this.moment();this.autoScale=true;this.scale=\"day\";this.step=1;this.setRange(start,end,minimumStep);this.switchedDay=false;this.switchedMonth=false;this.switchedYear=false;if(Array.isArray(hiddenDates)){this.hiddenDates=hiddenDates}else if(hiddenDates!=undefined){this.hiddenDates=[hiddenDates]}else{this.hiddenDates=[]}this.format=TimeStep.FORMAT;this.options=options?options:{}}TimeStep.FORMAT={minorLabels:{millisecond:\"SSS\",second:\"s\",minute:\"HH:mm\",hour:\"HH:mm\",weekday:\"ddd D\",day:\"D\",week:\"w\",month:\"MMM\",year:\"YYYY\"},majorLabels:{millisecond:\"HH:mm:ss\",second:\"D MMMM HH:mm\",minute:\"ddd D MMMM\",hour:\"ddd D MMMM\",weekday:\"MMMM YYYY\",day:\"MMMM YYYY\",week:\"MMMM YYYY\",month:\"YYYY\",year:\"\"}};TimeStep.prototype.setMoment=function(moment){this.moment=moment;this.current=this.moment(this.current.valueOf());this._start=this.moment(this._start.valueOf());this._end=this.moment(this._end.valueOf())};TimeStep.prototype.setFormat=function(format){var defaultFormat=util.deepExtend({},TimeStep.FORMAT);this.format=util.deepExtend(defaultFormat,format)};TimeStep.prototype.setRange=function(start,end,minimumStep){if(!(start instanceof Date)||!(end instanceof Date)){throw\"No legal start or end date in method setRange\"}this._start=start!=undefined?this.moment(start.valueOf()):new Date;this._end=end!=undefined?this.moment(end.valueOf()):new Date;if(this.autoScale){this.setMinimumStep(minimumStep)}};TimeStep.prototype.start=function(){this.current=this._start.clone();this.roundToMinor()};TimeStep.prototype.roundToMinor=function(){if(this.scale==\"week\"){this.current.weekday(0)}switch(this.scale){case\"year\":this.current.year(this.step*Math.floor(this.current.year()/this.step));this.current.month(0);case\"month\":this.current.date(1);case\"week\":case\"day\":case\"weekday\":this.current.hours(0);case\"hour\":this.current.minutes(0);case\"minute\":this.current.seconds(0);case\"second\":this.current.milliseconds(0)}if(this.step!=1){switch(this.scale){case\"millisecond\":this.current.subtract(this.current.milliseconds()%this.step,\"milliseconds\");break;case\"second\":this.current.subtract(this.current.seconds()%this.step,\"seconds\");break;case\"minute\":this.current.subtract(this.current.minutes()%this.step,\"minutes\");break;case\"hour\":this.current.subtract(this.current.hours()%this.step,\"hours\");break;case\"weekday\":case\"day\":this.current.subtract((this.current.date()-1)%this.step,\"day\");break;case\"week\":this.current.subtract(this.current.week()%this.step,\"week\");break;case\"month\":this.current.subtract(this.current.month()%this.step,\"month\");break;case\"year\":this.current.subtract(this.current.year()%this.step,\"year\");break;default:break}}};TimeStep.prototype.hasNext=function(){return this.current.valueOf()<=this._end.valueOf()};TimeStep.prototype.next=function(){var prev=this.current.valueOf();switch(this.scale){case\"millisecond\":this.current.add(this.step,\"millisecond\");break;case\"second\":this.current.add(this.step,\"second\");break;case\"minute\":this.current.add(this.step,\"minute\");break;case\"hour\":this.current.add(this.step,\"hour\");if(this.current.month()<6){this.current.subtract(this.current.hours()%this.step,\"hour\")}else{if(this.current.hours()%this.step!==0){this.current.add(this.step-this.current.hours()%this.step,\"hour\")}}break;case\"weekday\":case\"day\":this.current.add(this.step,\"day\");break;case\"week\":if(this.current.weekday()!==0){this.current.weekday(0);this.current.add(this.step,\"week\")}else if(this.options.showMajorLabels===false){this.current.add(this.step,\"week\")}else{var nextWeek=this.current.clone();nextWeek.add(1,\"week\");if(nextWeek.isSame(this.current,\"month\")){this.current.add(this.step,\"week\")}else{this.current.add(this.step,\"week\");this.current.date(1)}}break;case\"month\":this.current.add(this.step,\"month\");break;case\"year\":this.current.add(this.step,\"year\");break;default:break}if(this.step!=1){switch(this.scale){case\"millisecond\":if(this.current.milliseconds()>0&&this.current.milliseconds()<this.step)this.current.milliseconds(0);break;case\"second\":if(this.current.seconds()>0&&this.current.seconds()<this.step)this.current.seconds(0);break;case\"minute\":if(this.current.minutes()>0&&this.current.minutes()<this.step)this.current.minutes(0);break;case\"hour\":if(this.current.hours()>0&&this.current.hours()<this.step)this.current.hours(0);break;case\"weekday\":case\"day\":if(this.current.date()<this.step+1)this.current.date(1);break;case\"week\":if(this.current.week()<this.step)this.current.week(1);break;case\"month\":if(this.current.month()<this.step)this.current.month(0);break;case\"year\":break;default:break}}if(this.current.valueOf()==prev){this.current=this._end.clone()}this.switchedDay=false;this.switchedMonth=false;this.switchedYear=false;DateUtil.stepOverHiddenDates(this.moment,this,prev)};TimeStep.prototype.getCurrent=function(){return this.current};TimeStep.prototype.setScale=function(params){if(params&&typeof params.scale==\"string\"){this.scale=params.scale;this.step=params.step>0?params.step:1;this.autoScale=false}};TimeStep.prototype.setAutoScale=function(enable){this.autoScale=enable};TimeStep.prototype.setMinimumStep=function(minimumStep){if(minimumStep==undefined){return}var stepYear=1e3*60*60*24*30*12;var stepMonth=1e3*60*60*24*30;var stepDay=1e3*60*60*24;var stepHour=1e3*60*60;var stepMinute=1e3*60;var stepSecond=1e3;var stepMillisecond=1;if(stepYear*1e3>minimumStep){this.scale=\"year\";this.step=1e3}if(stepYear*500>minimumStep){this.scale=\"year\";this.step=500}if(stepYear*100>minimumStep){this.scale=\"year\";this.step=100}if(stepYear*50>minimumStep){this.scale=\"year\";this.step=50}if(stepYear*10>minimumStep){this.scale=\"year\";this.step=10}if(stepYear*5>minimumStep){this.scale=\"year\";this.step=5}if(stepYear>minimumStep){this.scale=\"year\";this.step=1}if(stepMonth*3>minimumStep){this.scale=\"month\";this.step=3}if(stepMonth>minimumStep){this.scale=\"month\";this.step=1}if(stepDay*5>minimumStep){this.scale=\"day\";this.step=5}if(stepDay*2>minimumStep){this.scale=\"day\";this.step=2}if(stepDay>minimumStep){this.scale=\"day\";this.step=1}if(stepDay/2>minimumStep){this.scale=\"weekday\";this.step=1}if(stepHour*4>minimumStep){this.scale=\"hour\";this.step=4}if(stepHour>minimumStep){this.scale=\"hour\";this.step=1}if(stepMinute*15>minimumStep){this.scale=\"minute\";this.step=15}if(stepMinute*10>minimumStep){this.scale=\"minute\";this.step=10}if(stepMinute*5>minimumStep){this.scale=\"minute\";this.step=5}if(stepMinute>minimumStep){this.scale=\"minute\";this.step=1}if(stepSecond*15>minimumStep){this.scale=\"second\";this.step=15}if(stepSecond*10>minimumStep){this.scale=\"second\";this.step=10}if(stepSecond*5>minimumStep){this.scale=\"second\";this.step=5}if(stepSecond>minimumStep){this.scale=\"second\";this.step=1}if(stepMillisecond*200>minimumStep){this.scale=\"millisecond\";this.step=200}if(stepMillisecond*100>minimumStep){this.scale=\"millisecond\";this.step=100}if(stepMillisecond*50>minimumStep){this.scale=\"millisecond\";this.step=50}if(stepMillisecond*10>minimumStep){this.scale=\"millisecond\";this.step=10}if(stepMillisecond*5>minimumStep){this.scale=\"millisecond\";this.step=5}if(stepMillisecond>minimumStep){this.scale=\"millisecond\";this.step=1}};TimeStep.snap=function(date,scale,step){var clone=moment(date);if(scale==\"year\"){var year=clone.year()+Math.round(clone.month()/12);clone.year(Math.round(year/step)*step);clone.month(0);clone.date(0);clone.hours(0);clone.minutes(0);clone.seconds(0);clone.milliseconds(0)}else if(scale==\"month\"){if(clone.date()>15){clone.date(1);clone.add(1,\"month\")}else{clone.date(1)}clone.hours(0);clone.minutes(0);clone.seconds(0);clone.milliseconds(0)}else if(scale==\"week\"){if(clone.weekday()>2){clone.weekday(0);clone.add(1,\"week\")}else{clone.weekday(0)}clone.hours(0);clone.minutes(0);clone.seconds(0);clone.milliseconds(0)}else if(scale==\"day\"){switch(step){case 5:case 2:clone.hours(Math.round(clone.hours()/24)*24);break;default:clone.hours(Math.round(clone.hours()/12)*12);break}clone.minutes(0);clone.seconds(0);clone.milliseconds(0)}else if(scale==\"weekday\"){switch(step){case 5:case 2:clone.hours(Math.round(clone.hours()/12)*12);break;default:clone.hours(Math.round(clone.hours()/6)*6);break}clone.minutes(0);clone.seconds(0);clone.milliseconds(0)}else if(scale==\"hour\"){switch(step){case 4:clone.minutes(Math.round(clone.minutes()/60)*60);break;default:clone.minutes(Math.round(clone.minutes()/30)*30);break}clone.seconds(0);clone.milliseconds(0)}else if(scale==\"minute\"){switch(step){case 15:case 10:clone.minutes(Math.round(clone.minutes()/5)*5);clone.seconds(0);break;case 5:clone.seconds(Math.round(clone.seconds()/60)*60);break;default:clone.seconds(Math.round(clone.seconds()/30)*30);break}clone.milliseconds(0)}else if(scale==\"second\"){switch(step){case 15:case 10:clone.seconds(Math.round(clone.seconds()/5)*5);clone.milliseconds(0);break;case 5:clone.milliseconds(Math.round(clone.milliseconds()/1e3)*1e3);break;default:clone.milliseconds(Math.round(clone.milliseconds()/500)*500);break}}else if(scale==\"millisecond\"){var _step=step>5?step/2:1;clone.milliseconds(Math.round(clone.milliseconds()/_step)*_step)}return clone};TimeStep.prototype.isMajor=function(){if(this.switchedYear==true){switch(this.scale){case\"year\":case\"month\":case\"week\":case\"weekday\":case\"day\":case\"hour\":case\"minute\":case\"second\":case\"millisecond\":return true;default:return false}}else if(this.switchedMonth==true){switch(this.scale){case\"week\":case\"weekday\":case\"day\":case\"hour\":case\"minute\":case\"second\":case\"millisecond\":return true;default:return false}}else if(this.switchedDay==true){switch(this.scale){case\"millisecond\":case\"second\":case\"minute\":case\"hour\":return true;default:return false}}var date=this.moment(this.current);switch(this.scale){case\"millisecond\":return date.milliseconds()==0;case\"second\":return date.seconds()==0;case\"minute\":return date.hours()==0&&date.minutes()==0;case\"hour\":return date.hours()==0;case\"weekday\":case\"day\":return date.date()==1;case\"week\":return date.date()==1;case\"month\":return date.month()==0;case\"year\":return false;default:return false}};TimeStep.prototype.getLabelMinor=function(date){if(date==undefined){date=this.current}if(date instanceof Date){date=this.moment(date)}if(typeof this.format.minorLabels===\"function\"){return this.format.minorLabels(date,this.scale,this.step)}var format=this.format.minorLabels[this.scale];switch(this.scale){case\"week\":if(this.isMajor()&&date.weekday()!==0){return\"\"}default:return format&&format.length>0?this.moment(date).format(format):\"\"}};TimeStep.prototype.getLabelMajor=function(date){if(date==undefined){date=this.current}if(date instanceof Date){date=this.moment(date)}if(typeof this.format.majorLabels===\"function\"){return this.format.majorLabels(date,this.scale,this.step)}var format=this.format.majorLabels[this.scale];return format&&format.length>0?this.moment(date).format(format):\"\"};TimeStep.prototype.getClassName=function(){var _moment=this.moment;var m=this.moment(this.current);var current=m.locale?m.locale(\"en\"):m.lang(\"en\");var step=this.step;var classNames=[];function even(value){return value/step%2==0?\" vis-even\":\" vis-odd\"}function today(date){if(date.isSame(new Date,\"day\")){return\" vis-today\"}if(date.isSame(_moment().add(1,\"day\"),\"day\")){return\" vis-tomorrow\"}if(date.isSame(_moment().add(-1,\"day\"),\"day\")){return\" vis-yesterday\"}return\"\"}function currentWeek(date){return date.isSame(new Date,\"week\")?\" vis-current-week\":\"\"}function currentMonth(date){return date.isSame(new Date,\"month\")?\" vis-current-month\":\"\"}function currentYear(date){return date.isSame(new Date,\"year\")?\" vis-current-year\":\"\"}switch(this.scale){case\"millisecond\":classNames.push(today(current));classNames.push(even(current.milliseconds()));break;case\"second\":classNames.push(today(current));classNames.push(even(current.seconds()));break;case\"minute\":classNames.push(today(current));classNames.push(even(current.minutes()));break;case\"hour\":classNames.push(\"vis-h\"+current.hours()+(this.step==4?\"-h\"+(current.hours()+4):\"\"));classNames.push(today(current));classNames.push(even(current.hours()));break;case\"weekday\":classNames.push(\"vis-\"+current.format(\"dddd\").toLowerCase());classNames.push(today(current));classNames.push(currentWeek(current));classNames.push(even(current.date()));break;case\"day\":classNames.push(\"vis-day\"+current.date());classNames.push(\"vis-\"+current.format(\"MMMM\").toLowerCase());classNames.push(today(current));classNames.push(currentMonth(current));classNames.push(this.step<=2?today(current):\"\");classNames.push(this.step<=2?\"vis-\"+current.format(\"dddd\").toLowerCase():\"\");classNames.push(even(current.date()-1));break;case\"week\":classNames.push(\"vis-week\"+current.format(\"w\"));classNames.push(currentWeek(current));classNames.push(even(current.week()));break;case\"month\":classNames.push(\"vis-\"+current.format(\"MMMM\").toLowerCase());classNames.push(currentMonth(current));classNames.push(even(current.month()));break;case\"year\":classNames.push(\"vis-year\"+current.year());classNames.push(currentYear(current));classNames.push(even(current.year()));break}return classNames.filter(String).join(\" \")};module.exports=TimeStep},function(module,exports,__webpack_require__){\"use strict\";var util=__webpack_require__(2);var Component=__webpack_require__(16);var moment=__webpack_require__(9);var locales=__webpack_require__(98);function CurrentTime(body,options){this.body=body;this.defaultOptions={rtl:false,showCurrentTime:true,moment:moment,locales:locales,locale:\"en\"};this.options=util.extend({},this.defaultOptions);this.offset=0;this._create();this.setOptions(options)}CurrentTime.prototype=new Component;CurrentTime.prototype._create=function(){var bar=document.createElement(\"div\");bar.className=\"vis-current-time\";bar.style.position=\"absolute\";bar.style.top=\"0px\";bar.style.height=\"100%\";this.bar=bar};CurrentTime.prototype.destroy=function(){this.options.showCurrentTime=false;this.redraw();this.body=null};CurrentTime.prototype.setOptions=function(options){if(options){util.selectiveExtend([\"rtl\",\"showCurrentTime\",\"moment\",\"locale\",\"locales\"],this.options,options)}};CurrentTime.prototype.redraw=function(){if(this.options.showCurrentTime){var parent=this.body.dom.backgroundVertical;if(this.bar.parentNode!=parent){if(this.bar.parentNode){this.bar.parentNode.removeChild(this.bar)}parent.appendChild(this.bar);this.start()}var now=this.options.moment((new Date).valueOf()+this.offset);var x=this.body.util.toScreen(now);var locale=this.options.locales[this.options.locale];if(!locale){if(!this.warned){console.log(\"WARNING: options.locales['\"+this.options.locale+\"'] not found. See http://visjs.org/docs/timeline/#Localization\");this.warned=true}locale=this.options.locales[\"en\"]}var title=locale.current+\" \"+locale.time+\": \"+now.format(\"dddd, MMMM Do YYYY, H:mm:ss\");title=title.charAt(0).toUpperCase()+title.substring(1);if(this.options.rtl){this.bar.style.right=x+\"px\"}else{this.bar.style.left=x+\"px\"}this.bar.title=title}else{if(this.bar.parentNode){this.bar.parentNode.removeChild(this.bar)}this.stop()}return false};CurrentTime.prototype.start=function(){var me=this;function update(){me.stop();var scale=me.body.range.conversion(me.body.domProps.center.width).scale;var interval=1/scale/10;if(interval<30)interval=30;if(interval>1e3)interval=1e3;me.redraw();me.body.emitter.emit(\"currentTimeTick\");me.currentTimeTimer=setTimeout(update,interval)}update()};CurrentTime.prototype.stop=function(){if(this.currentTimeTimer!==undefined){clearTimeout(this.currentTimeTimer);delete this.currentTimeTimer}};CurrentTime.prototype.setCurrentTime=function(time){var t=util.convert(time,\"Date\").valueOf();var now=(new Date).valueOf();this.offset=t-now;this.redraw()};CurrentTime.prototype.getCurrentTime=function(){return new Date((new Date).valueOf()+this.offset)};module.exports=CurrentTime},function(module,exports,__webpack_require__){\"use strict\";var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var stack=__webpack_require__(100);function Group(groupId,data,itemSet){this.groupId=groupId;this.subgroups={};this.subgroupStack={};this.subgroupStackAll=false;this.doInnerStack=false;this.subgroupIndex=0;this.subgroupOrderer=data&&data.subgroupOrder;this.itemSet=itemSet;this.isVisible=null;this.stackDirty=true;if(data&&data.nestedGroups){this.nestedGroups=data.nestedGroups;if(data.showNested==false){this.showNested=false}else{this.showNested=true}}if(data&&data.subgroupStack){if(typeof data.subgroupStack===\"boolean\"){this.doInnerStack=data.subgroupStack;this.subgroupStackAll=data.subgroupStack}else{for(var key in data.subgroupStack){this.subgroupStack[key]=data.subgroupStack[key];this.doInnerStack=this.doInnerStack||data.subgroupStack[key]}}}this.nestedInGroup=null;this.dom={};this.props={label:{width:0,height:0}};this.className=null;this.items={};this.visibleItems=[];this.itemsInRange=[];this.orderedItems={byStart:[],byEnd:[]};this.checkRangedItems=false;var me=this;this.itemSet.body.emitter.on(\"checkRangedItems\",function(){me.checkRangedItems=true});this._create();this.setData(data)}Group.prototype._create=function(){var label=document.createElement(\"div\");if(this.itemSet.options.groupEditable.order){label.className=\"vis-label draggable\"}else{label.className=\"vis-label\"}this.dom.label=label;var inner=document.createElement(\"div\");inner.className=\"vis-inner\";label.appendChild(inner);this.dom.inner=inner;var foreground=document.createElement(\"div\");foreground.className=\"vis-group\";foreground[\"timeline-group\"]=this;this.dom.foreground=foreground;this.dom.background=document.createElement(\"div\");this.dom.background.className=\"vis-group\";this.dom.axis=document.createElement(\"div\");this.dom.axis.className=\"vis-group\";this.dom.marker=document.createElement(\"div\");this.dom.marker.style.visibility=\"hidden\";this.dom.marker.style.position=\"absolute\";this.dom.marker.innerHTML=\"\";this.dom.background.appendChild(this.dom.marker)};Group.prototype.setData=function(data){var content;var templateFunction;if(this.itemSet.options&&this.itemSet.options.groupTemplate){templateFunction=this.itemSet.options.groupTemplate.bind(this);content=templateFunction(data,this.dom.inner)}else{content=data&&data.content}if(content instanceof Element){this.dom.inner.appendChild(content);while(this.dom.inner.firstChild){this.dom.inner.removeChild(this.dom.inner.firstChild)}this.dom.inner.appendChild(content)}else if(content instanceof Object){templateFunction(data,this.dom.inner)}else if(content!==undefined&&content!==null){this.dom.inner.innerHTML=content}else{this.dom.inner.innerHTML=this.groupId||\"\"}this.dom.label.title=data&&data.title||\"\";if(!this.dom.inner.firstChild){util.addClassName(this.dom.inner,\"vis-hidden\")}else{util.removeClassName(this.dom.inner,\"vis-hidden\")}if(data&&data.nestedGroups){if(!this.nestedGroups||this.nestedGroups!=data.nestedGroups){this.nestedGroups=data.nestedGroups}if(data.showNested!==undefined||this.showNested===undefined){if(data.showNested==false){this.showNested=false}else{this.showNested=true}}util.addClassName(this.dom.label,\"vis-nesting-group\");var collapsedDirClassName=this.itemSet.options.rtl?\"collapsed-rtl\":\"collapsed\";if(this.showNested){util.removeClassName(this.dom.label,collapsedDirClassName);util.addClassName(this.dom.label,\"expanded\")}else{util.removeClassName(this.dom.label,\"expanded\");util.addClassName(this.dom.label,collapsedDirClassName)}}else if(this.nestedGroups){this.nestedGroups=null;collapsedDirClassName=this.itemSet.options.rtl?\"collapsed-rtl\":\"collapsed\";util.removeClassName(this.dom.label,collapsedDirClassName);util.removeClassName(this.dom.label,\"expanded\");util.removeClassName(this.dom.label,\"vis-nesting-group\")}if(data&&data.nestedInGroup){util.addClassName(this.dom.label,\"vis-nested-group\");if(this.itemSet.options&&this.itemSet.options.rtl){this.dom.inner.style.paddingRight=\"30px\"}else{\nthis.dom.inner.style.paddingLeft=\"30px\"}}var className=data&&data.className||null;if(className!=this.className){if(this.className){util.removeClassName(this.dom.label,this.className);util.removeClassName(this.dom.foreground,this.className);util.removeClassName(this.dom.background,this.className);util.removeClassName(this.dom.axis,this.className)}util.addClassName(this.dom.label,className);util.addClassName(this.dom.foreground,className);util.addClassName(this.dom.background,className);util.addClassName(this.dom.axis,className);this.className=className}if(this.style){util.removeCssText(this.dom.label,this.style);this.style=null}if(data&&data.style){util.addCssText(this.dom.label,data.style);this.style=data.style}};Group.prototype.getLabelWidth=function(){return this.props.label.width};Group.prototype._didMarkerHeightChange=function(){var markerHeight=this.dom.marker.clientHeight;if(markerHeight!=this.lastMarkerHeight){this.lastMarkerHeight=markerHeight;var redrawQueue={};var redrawQueueLength=0;util.forEach(this.items,function(item,key){item.dirty=true;if(item.displayed){var returnQueue=true;redrawQueue[key]=item.redraw(returnQueue);redrawQueueLength=redrawQueue[key].length}});var needRedraw=redrawQueueLength>0;if(needRedraw){for(var i=0;i<redrawQueueLength;i++){util.forEach(redrawQueue,function(fns){fns[i]()})}}return true}};Group.prototype._calculateGroupSizeAndPosition=function(){var offsetTop=this.dom.foreground.offsetTop;var offsetLeft=this.dom.foreground.offsetLeft;var offsetWidth=this.dom.foreground.offsetWidth;this.top=offsetTop;this.right=offsetLeft;this.width=offsetWidth};Group.prototype._redrawItems=function(forceRestack,lastIsVisible,margin,range){var restack=forceRestack||this.stackDirty||this.isVisible&&!lastIsVisible;if(restack){var visibleSubgroups={};var subgroup=null;if(typeof this.itemSet.options.order===\"function\"){var me=this;var limitSize=false;var redrawQueue={};var redrawQueueLength=0;util.forEach(this.items,function(item,key){if(!item.displayed){var returnQueue=true;redrawQueue[key]=item.redraw(returnQueue);redrawQueueLength=redrawQueue[key].length;me.visibleItems.push(item)}});var needRedraw=redrawQueueLength>0;if(needRedraw){for(var i=0;i<redrawQueueLength;i++){util.forEach(redrawQueue,function(fns){fns[i]()})}}util.forEach(this.items,function(item){item.repositionX(limitSize)});if(this.doInnerStack&&this.itemSet.options.stackSubgroups){for(subgroup in this.subgroups){visibleSubgroups[subgroup]=this.subgroups[subgroup].items.slice().sort(function(a,b){return me.itemSet.options.order(a.data,b.data)})}stack.stackSubgroupsWithInnerStack(visibleSubgroups,margin,this.subgroups)}else{var customOrderedItems=this.orderedItems.byStart.slice().sort(function(a,b){return me.itemSet.options.order(a.data,b.data)});stack.stack(customOrderedItems,margin,true)}this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,range)}else{this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,range);if(this.itemSet.options.stack){if(this.doInnerStack&&this.itemSet.options.stackSubgroups){for(subgroup in this.subgroups){visibleSubgroups[subgroup]=this.subgroups[subgroup].items}stack.stackSubgroupsWithInnerStack(visibleSubgroups,margin,this.subgroups)}else{stack.stack(this.visibleItems,margin,true)}}else{stack.nostack(this.visibleItems,margin,this.subgroups,this.itemSet.options.stackSubgroups)}}this.stackDirty=false}};Group.prototype._didResize=function(resized,height){resized=util.updateProperty(this,\"height\",height)||resized;var labelWidth=this.dom.inner.clientWidth;var labelHeight=this.dom.inner.clientHeight;resized=util.updateProperty(this.props.label,\"width\",labelWidth)||resized;resized=util.updateProperty(this.props.label,\"height\",labelHeight)||resized;return resized};Group.prototype._applyGroupHeight=function(height){this.dom.background.style.height=height+\"px\";this.dom.foreground.style.height=height+\"px\";this.dom.label.style.height=height+\"px\"};Group.prototype._updateItemsVerticalPosition=function(margin){for(var i=0,ii=this.visibleItems.length;i<ii;i++){var item=this.visibleItems[i];item.repositionY(margin);if(!this.isVisible&&this.groupId!=\"__background__\"){if(item.displayed)item.hide()}}};Group.prototype.redraw=function(range,margin,forceRestack,returnQueue){var resized=false;var lastIsVisible=this.isVisible;var height;var queue=[function(){forceRestack=this._didMarkerHeightChange.bind(this)}.bind(this),this._updateSubGroupHeights.bind(this,margin),this._calculateGroupSizeAndPosition.bind(this),function(){this.isVisible=this._isGroupVisible.bind(this)(range,margin)}.bind(this),function(){this._redrawItems.bind(this)(forceRestack,lastIsVisible,margin,range)}.bind(this),this._updateSubgroupsSizes.bind(this),function(){height=this._calculateHeight.bind(this)(margin)}.bind(this),this._calculateGroupSizeAndPosition.bind(this),function(){resized=this._didResize.bind(this)(resized,height)}.bind(this),function(){this._applyGroupHeight.bind(this)(height)}.bind(this),function(){this._updateItemsVerticalPosition.bind(this)(margin)}.bind(this),function(){if(!this.isVisible&&this.height){resized=false}return resized}];if(returnQueue){return queue}else{var result;queue.forEach(function(fn){result=fn()});return result}};Group.prototype._updateSubGroupHeights=function(margin){if((0,_keys2[\"default\"])(this.subgroups).length>0){var me=this;this.resetSubgroups();util.forEach(this.visibleItems,function(item){if(item.data.subgroup!==undefined){me.subgroups[item.data.subgroup].height=Math.max(me.subgroups[item.data.subgroup].height,item.height+margin.item.vertical);me.subgroups[item.data.subgroup].visible=true}})}};Group.prototype._isGroupVisible=function(range,margin){return this.top<=range.body.domProps.centerContainer.height-range.body.domProps.scrollTop+margin.axis&&this.top+this.height+margin.axis>=-range.body.domProps.scrollTop};Group.prototype._calculateHeight=function(margin){var height;var itemsInRange=this.visibleItems;if(itemsInRange.length>0){var min=itemsInRange[0].top;var max=itemsInRange[0].top+itemsInRange[0].height;util.forEach(itemsInRange,function(item){min=Math.min(min,item.top);max=Math.max(max,item.top+item.height)});if(min>margin.axis){var offset=min-margin.axis;max-=offset;util.forEach(itemsInRange,function(item){item.top-=offset})}height=max+margin.item.vertical/2}else{height=0}height=Math.max(height,this.props.label.height);return height};Group.prototype.show=function(){if(!this.dom.label.parentNode){this.itemSet.dom.labelSet.appendChild(this.dom.label)}if(!this.dom.foreground.parentNode){this.itemSet.dom.foreground.appendChild(this.dom.foreground)}if(!this.dom.background.parentNode){this.itemSet.dom.background.appendChild(this.dom.background)}if(!this.dom.axis.parentNode){this.itemSet.dom.axis.appendChild(this.dom.axis)}};Group.prototype.hide=function(){var label=this.dom.label;if(label.parentNode){label.parentNode.removeChild(label)}var foreground=this.dom.foreground;if(foreground.parentNode){foreground.parentNode.removeChild(foreground)}var background=this.dom.background;if(background.parentNode){background.parentNode.removeChild(background)}var axis=this.dom.axis;if(axis.parentNode){axis.parentNode.removeChild(axis)}};Group.prototype.add=function(item){this.items[item.id]=item;item.setParent(this);this.stackDirty=true;if(item.data.subgroup!==undefined){this._addToSubgroup(item);this.orderSubgroups()}if(this.visibleItems.indexOf(item)==-1){var range=this.itemSet.body.range;this._checkIfVisible(item,this.visibleItems,range)}};Group.prototype._addToSubgroup=function(item,subgroupId){subgroupId=subgroupId||item.data.subgroup;if(subgroupId!=undefined&&this.subgroups[subgroupId]===undefined){this.subgroups[subgroupId]={height:0,top:0,start:item.data.start,end:item.data.end||item.data.start,visible:false,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[subgroupId]||false};this.subgroupIndex++}if(new Date(item.data.start)<new Date(this.subgroups[subgroupId].start)){this.subgroups[subgroupId].start=item.data.start}var itemEnd=item.data.end||item.data.start;if(new Date(itemEnd)>new Date(this.subgroups[subgroupId].end)){this.subgroups[subgroupId].end=itemEnd}this.subgroups[subgroupId].items.push(item)};Group.prototype._updateSubgroupsSizes=function(){var me=this;if(me.subgroups){for(var subgroup in me.subgroups){var initialEnd=me.subgroups[subgroup].items[0].data.end||me.subgroups[subgroup].items[0].data.start;var newStart=me.subgroups[subgroup].items[0].data.start;var newEnd=initialEnd-1;me.subgroups[subgroup].items.forEach(function(item){if(new Date(item.data.start)<new Date(newStart)){newStart=item.data.start}var itemEnd=item.data.end||item.data.start;if(new Date(itemEnd)>new Date(newEnd)){newEnd=itemEnd}});me.subgroups[subgroup].start=newStart;me.subgroups[subgroup].end=new Date(newEnd-1)}}};Group.prototype.orderSubgroups=function(){if(this.subgroupOrderer!==undefined){var sortArray=[];var subgroup;if(typeof this.subgroupOrderer==\"string\"){for(subgroup in this.subgroups){sortArray.push({subgroup:subgroup,sortField:this.subgroups[subgroup].items[0].data[this.subgroupOrderer]})}sortArray.sort(function(a,b){return a.sortField-b.sortField})}else if(typeof this.subgroupOrderer==\"function\"){for(subgroup in this.subgroups){sortArray.push(this.subgroups[subgroup].items[0].data)}sortArray.sort(this.subgroupOrderer)}if(sortArray.length>0){for(var i=0;i<sortArray.length;i++){this.subgroups[sortArray[i].subgroup].index=i}}}};Group.prototype.resetSubgroups=function(){for(var subgroup in this.subgroups){if(this.subgroups.hasOwnProperty(subgroup)){this.subgroups[subgroup].visible=false;this.subgroups[subgroup].height=0}}};Group.prototype.remove=function(item){delete this.items[item.id];item.setParent(null);this.stackDirty=true;var index=this.visibleItems.indexOf(item);if(index!=-1)this.visibleItems.splice(index,1);if(item.data.subgroup!==undefined){this._removeFromSubgroup(item);this.orderSubgroups()}};Group.prototype._removeFromSubgroup=function(item,subgroupId){subgroupId=subgroupId||item.data.subgroup;if(subgroupId!=undefined){var subgroup=this.subgroups[subgroupId];if(subgroup){var itemIndex=subgroup.items.indexOf(item);if(itemIndex>=0){subgroup.items.splice(itemIndex,1);if(!subgroup.items.length){delete this.subgroups[subgroupId]}else{this._updateSubgroupsSizes()}}}}};Group.prototype.removeFromDataSet=function(item){this.itemSet.removeItem(item.id)};Group.prototype.order=function(){var array=util.toArray(this.items);var startArray=[];var endArray=[];for(var i=0;i<array.length;i++){if(array[i].data.end!==undefined){endArray.push(array[i])}startArray.push(array[i])}this.orderedItems={byStart:startArray,byEnd:endArray};stack.orderByStart(this.orderedItems.byStart);stack.orderByEnd(this.orderedItems.byEnd)};Group.prototype._updateItemsInRange=function(orderedItems,oldVisibleItems,range){var visibleItems=[];var visibleItemsLookup={};var interval=(range.end-range.start)/4;var lowerBound=range.start-interval;var upperBound=range.end+interval;var searchFunction=function searchFunction(value){if(value<lowerBound){return-1}else if(value<=upperBound){return 0}else{return 1}};if(oldVisibleItems.length>0){for(var i=0;i<oldVisibleItems.length;i++){this._checkIfVisibleWithReference(oldVisibleItems[i],visibleItems,visibleItemsLookup,range)}}var initialPosByStart=util.binarySearchCustom(orderedItems.byStart,searchFunction,\"data\",\"start\");this._traceVisible(initialPosByStart,orderedItems.byStart,visibleItems,visibleItemsLookup,function(item){return item.data.start<lowerBound||item.data.start>upperBound});if(this.checkRangedItems==true){this.checkRangedItems=false;for(i=0;i<orderedItems.byEnd.length;i++){this._checkIfVisibleWithReference(orderedItems.byEnd[i],visibleItems,visibleItemsLookup,range)}}else{var initialPosByEnd=util.binarySearchCustom(orderedItems.byEnd,searchFunction,\"data\",\"end\");this._traceVisible(initialPosByEnd,orderedItems.byEnd,visibleItems,visibleItemsLookup,function(item){return item.data.end<lowerBound||item.data.end>upperBound})}var redrawQueue={};var redrawQueueLength=0;for(i=0;i<visibleItems.length;i++){var item=visibleItems[i];if(!item.displayed){var returnQueue=true;redrawQueue[i]=item.redraw(returnQueue);redrawQueueLength=redrawQueue[i].length}}var needRedraw=redrawQueueLength>0;if(needRedraw){for(var j=0;j<redrawQueueLength;j++){util.forEach(redrawQueue,function(fns){fns[j]()})}}for(i=0;i<visibleItems.length;i++){visibleItems[i].repositionX()}return visibleItems};Group.prototype._traceVisible=function(initialPos,items,visibleItems,visibleItemsLookup,breakCondition){if(initialPos!=-1){var i,item;for(i=initialPos;i>=0;i--){item=items[i];if(breakCondition(item)){break}else{if(visibleItemsLookup[item.id]===undefined){visibleItemsLookup[item.id]=true;visibleItems.push(item)}}}for(i=initialPos+1;i<items.length;i++){item=items[i];if(breakCondition(item)){break}else{if(visibleItemsLookup[item.id]===undefined){visibleItemsLookup[item.id]=true;visibleItems.push(item)}}}}};Group.prototype._checkIfVisible=function(item,visibleItems,range){if(item.isVisible(range)){if(!item.displayed)item.show();item.repositionX();visibleItems.push(item)}else{if(item.displayed)item.hide()}};Group.prototype._checkIfVisibleWithReference=function(item,visibleItems,visibleItemsLookup,range){if(item.isVisible(range)){if(visibleItemsLookup[item.id]===undefined){visibleItemsLookup[item.id]=true;visibleItems.push(item)}}else{if(item.displayed)item.hide()}};Group.prototype.changeSubgroup=function(item,oldSubgroup,newSubgroup){this._removeFromSubgroup(item,oldSubgroup);this._addToSubgroup(item,newSubgroup);this.orderSubgroups()};module.exports=Group},function(module,exports,__webpack_require__){\"use strict\";var _create=__webpack_require__(29);var _create2=_interopRequireDefault(_create);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Group=__webpack_require__(68);function BackgroundGroup(groupId,data,itemSet){Group.call(this,groupId,data,itemSet);this.width=0;this.height=0;this.top=0;this.left=0}BackgroundGroup.prototype=(0,_create2[\"default\"])(Group.prototype);BackgroundGroup.prototype.redraw=function(range,margin,forceRestack){var resized=false;this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,range);this.width=this.dom.background.offsetWidth;this.dom.background.style.height=\"0\";for(var i=0,ii=this.visibleItems.length;i<ii;i++){var item=this.visibleItems[i];item.repositionY(margin)}return resized};BackgroundGroup.prototype.show=function(){if(!this.dom.background.parentNode){this.itemSet.dom.background.appendChild(this.dom.background)}};module.exports=BackgroundGroup},function(module,exports,__webpack_require__){\"use strict\";var Item=__webpack_require__(38);function RangeItem(data,conversion,options){this.props={content:{width:0}};this.overflow=false;this.options=options;if(data){if(data.start==undefined){throw new Error('Property \"start\" missing in item '+data.id)}if(data.end==undefined){throw new Error('Property \"end\" missing in item '+data.id)}}Item.call(this,data,conversion,options)}RangeItem.prototype=new Item(null,null,null);RangeItem.prototype.baseClassName=\"vis-item vis-range\";RangeItem.prototype.isVisible=function(range){return this.data.start<range.end&&this.data.end>range.start};RangeItem.prototype._createDomElement=function(){if(!this.dom){this.dom={};this.dom.box=document.createElement(\"div\");this.dom.frame=document.createElement(\"div\");this.dom.frame.className=\"vis-item-overflow\";this.dom.box.appendChild(this.dom.frame);this.dom.visibleFrame=document.createElement(\"div\");this.dom.visibleFrame.className=\"vis-item-visible-frame\";this.dom.box.appendChild(this.dom.visibleFrame);this.dom.content=document.createElement(\"div\");this.dom.content.className=\"vis-item-content\";this.dom.frame.appendChild(this.dom.content);this.dom.box[\"timeline-item\"]=this;this.dirty=true}};RangeItem.prototype._appendDomElement=function(){if(!this.parent){throw new Error(\"Cannot redraw item: no parent attached\")}if(!this.dom.box.parentNode){var foreground=this.parent.dom.foreground;if(!foreground){throw new Error(\"Cannot redraw item: parent has no foreground container element\")}foreground.appendChild(this.dom.box)}this.displayed=true};RangeItem.prototype._updateDirtyDomComponents=function(){if(this.dirty){this._updateContents(this.dom.content);this._updateDataAttributes(this.dom.box);this._updateStyle(this.dom.box);var editable=this.editable.updateTime||this.editable.updateGroup;var className=(this.data.className?\" \"+this.data.className:\"\")+(this.selected?\" vis-selected\":\"\")+(editable?\" vis-editable\":\" vis-readonly\");this.dom.box.className=this.baseClassName+className;this.dom.content.style.maxWidth=\"none\"}};RangeItem.prototype._getDomComponentsSizes=function(){this.overflow=window.getComputedStyle(this.dom.frame).overflow!==\"hidden\";return{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}};RangeItem.prototype._updateDomComponentsSizes=function(sizes){this.props.content.width=sizes.content.width;this.height=sizes.box.height;this.dom.content.style.maxWidth=\"\";this.dirty=false};RangeItem.prototype._repaintDomAdditionals=function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box);this._repaintDeleteButton(this.dom.box);this._repaintDragCenter();this._repaintDragLeft();this._repaintDragRight()};RangeItem.prototype.redraw=function(returnQueue){var sizes;var queue=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){if(this.dirty){sizes=this._getDomComponentsSizes.bind(this)()}}.bind(this),function(){if(this.dirty){this._updateDomComponentsSizes.bind(this)(sizes)}}.bind(this),this._repaintDomAdditionals.bind(this)];if(returnQueue){return queue}else{var result;queue.forEach(function(fn){result=fn()});return result}};RangeItem.prototype.show=function(){if(!this.displayed){this.redraw()}};RangeItem.prototype.hide=function(){if(this.displayed){var box=this.dom.box;if(box.parentNode){box.parentNode.removeChild(box)}this.displayed=false}};RangeItem.prototype.repositionX=function(limitSize){var parentWidth=this.parent.width;var start=this.conversion.toScreen(this.data.start);var end=this.conversion.toScreen(this.data.end);var align=this.data.align===undefined?this.options.align:this.data.align;var contentStartPosition;var contentWidth;if(this.data.limitSize!==false&&(limitSize===undefined||limitSize===true)){if(start<-parentWidth){start=-parentWidth}if(end>2*parentWidth){end=2*parentWidth}}var boxWidth=Math.max(end-start+.5,1);if(this.overflow){if(this.options.rtl){this.right=start}else{this.left=start}this.width=boxWidth+this.props.content.width;contentWidth=this.props.content.width}else{if(this.options.rtl){this.right=start}else{this.left=start}this.width=boxWidth;contentWidth=Math.min(end-start,this.props.content.width)}if(this.options.rtl){this.dom.box.style.right=this.right+\"px\"}else{this.dom.box.style.left=this.left+\"px\"}this.dom.box.style.width=boxWidth+\"px\";switch(align){case\"left\":if(this.options.rtl){this.dom.content.style.right=\"0\"}else{this.dom.content.style.left=\"0\"}break;case\"right\":if(this.options.rtl){this.dom.content.style.right=Math.max(boxWidth-contentWidth,0)+\"px\"}else{this.dom.content.style.left=Math.max(boxWidth-contentWidth,0)+\"px\"}break;case\"center\":if(this.options.rtl){this.dom.content.style.right=Math.max((boxWidth-contentWidth)/2,0)+\"px\"}else{this.dom.content.style.left=Math.max((boxWidth-contentWidth)/2,0)+\"px\"}break;default:if(this.overflow){if(end>0){contentStartPosition=Math.max(-start,0)}else{contentStartPosition=-contentWidth}}else{if(start<0){contentStartPosition=-start}else{contentStartPosition=0}}if(this.options.rtl){this.dom.content.style.right=contentStartPosition+\"px\"}else{this.dom.content.style.left=contentStartPosition+\"px\";this.dom.content.style.width=\"calc(100% - \"+contentStartPosition+\"px)\"}}};RangeItem.prototype.repositionY=function(){var orientation=this.options.orientation.item;var box=this.dom.box;if(orientation==\"top\"){box.style.top=this.top+\"px\"}else{box.style.top=this.parent.height-this.top-this.height+\"px\"}};RangeItem.prototype._repaintDragLeft=function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.options.editable.updateTime&&!this.dom.dragLeft){var dragLeft=document.createElement(\"div\");dragLeft.className=\"vis-drag-left\";dragLeft.dragLeftItem=this;this.dom.box.appendChild(dragLeft);this.dom.dragLeft=dragLeft}else if(!this.selected&&!this.options.itemsAlwaysDraggable.range&&this.dom.dragLeft){if(this.dom.dragLeft.parentNode){this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft)}this.dom.dragLeft=null}};RangeItem.prototype._repaintDragRight=function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.options.editable.updateTime&&!this.dom.dragRight){var dragRight=document.createElement(\"div\");dragRight.className=\"vis-drag-right\";dragRight.dragRightItem=this;this.dom.box.appendChild(dragRight);this.dom.dragRight=dragRight}else if(!this.selected&&!this.options.itemsAlwaysDraggable.range&&this.dom.dragRight){if(this.dom.dragRight.parentNode){this.dom.dragRight.parentNode.removeChild(this.dom.dragRight)}this.dom.dragRight=null}};module.exports=RangeItem},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var ColorPicker=__webpack_require__(179)[\"default\"];var Configurator=function(){function Configurator(parentModule,defaultContainer,configureOptions){var pixelRatio=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1;(0,_classCallCheck3[\"default\"])(this,Configurator);this.parent=parentModule;this.changedOptions=[];this.container=defaultContainer;this.allowCreation=false;this.options={};this.initialized=false;this.popupCounter=0;this.defaultOptions={enabled:false,filter:true,container:undefined,showButton:true};util.extend(this.options,this.defaultOptions);this.configureOptions=configureOptions;this.moduleOptions={};this.domElements=[];this.popupDiv={};this.popupLimit=5;this.popupHistory={};this.colorPicker=new ColorPicker(pixelRatio);this.wrapper=undefined}(0,_createClass3[\"default\"])(Configurator,[{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){this.popupHistory={};this._removePopup();var enabled=true;if(typeof options===\"string\"){this.options.filter=options}else if(options instanceof Array){this.options.filter=options.join()}else if((typeof options===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(options))===\"object\"){if(options.container!==undefined){this.options.container=options.container}if(options.filter!==undefined){this.options.filter=options.filter}if(options.showButton!==undefined){this.options.showButton=options.showButton}if(options.enabled!==undefined){enabled=options.enabled}}else if(typeof options===\"boolean\"){this.options.filter=true;enabled=options}else if(typeof options===\"function\"){this.options.filter=options;enabled=true}if(this.options.filter===false){enabled=false}this.options.enabled=enabled}this._clean()}},{key:\"setModuleOptions\",value:function setModuleOptions(moduleOptions){this.moduleOptions=moduleOptions;if(this.options.enabled===true){this._clean();if(this.options.container!==undefined){this.container=this.options.container}this._create()}}},{key:\"_create\",value:function _create(){var _this=this;this._clean();this.changedOptions=[];var filter=this.options.filter;var counter=0;var show=false;for(var option in this.configureOptions){if(this.configureOptions.hasOwnProperty(option)){this.allowCreation=false;show=false;if(typeof filter===\"function\"){show=filter(option,[]);show=show||this._handleObject(this.configureOptions[option],[option],true)}else if(filter===true||filter.indexOf(option)!==-1){show=true}if(show!==false){this.allowCreation=true;if(counter>0){this._makeItem([])}this._makeHeader(option);this._handleObject(this.configureOptions[option],[option])}counter++}}if(this.options.showButton===true){var generateButton=document.createElement(\"div\");generateButton.className=\"vis-configuration vis-config-button\";generateButton.innerHTML=\"generate options\";generateButton.onclick=function(){_this._printOptions()};generateButton.onmouseover=function(){generateButton.className=\"vis-configuration vis-config-button hover\"};generateButton.onmouseout=function(){generateButton.className=\"vis-configuration vis-config-button\"};this.optionsContainer=document.createElement(\"div\");this.optionsContainer.className=\"vis-configuration vis-config-option-container\";this.domElements.push(this.optionsContainer);this.domElements.push(generateButton)}this._push()}},{key:\"_push\",value:function _push(){this.wrapper=document.createElement(\"div\");this.wrapper.className=\"vis-configuration-wrapper\";this.container.appendChild(this.wrapper);for(var i=0;i<this.domElements.length;i++){this.wrapper.appendChild(this.domElements[i])}this._showPopupIfNeeded()}},{key:\"_clean\",value:function _clean(){for(var i=0;i<this.domElements.length;i++){this.wrapper.removeChild(this.domElements[i])}if(this.wrapper!==undefined){this.container.removeChild(this.wrapper);this.wrapper=undefined}this.domElements=[];this._removePopup()}},{key:\"_getValue\",value:function _getValue(path){var base=this.moduleOptions;for(var i=0;i<path.length;i++){if(base[path[i]]!==undefined){base=base[path[i]]}else{base=undefined;break}}return base}},{key:\"_makeItem\",value:function _makeItem(path){if(this.allowCreation===true){var item=document.createElement(\"div\");item.className=\"vis-configuration vis-config-item vis-config-s\"+path.length;for(var _len=arguments.length,domElements=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){domElements[_key-1]=arguments[_key]}domElements.forEach(function(element){item.appendChild(element)});this.domElements.push(item);return this.domElements.length}return 0}},{key:\"_makeHeader\",value:function _makeHeader(name){var div=document.createElement(\"div\");div.className=\"vis-configuration vis-config-header\";div.innerHTML=name;this._makeItem([],div)}},{key:\"_makeLabel\",value:function _makeLabel(name,path){var objectLabel=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var div=document.createElement(\"div\");div.className=\"vis-configuration vis-config-label vis-config-s\"+path.length;if(objectLabel===true){div.innerHTML=\"<i><b>\"+name+\":</b></i>\"}else{div.innerHTML=name+\":\"}return div}},{key:\"_makeDropdown\",value:function _makeDropdown(arr,value,path){var select=document.createElement(\"select\");select.className=\"vis-configuration vis-config-select\";var selectedValue=0;if(value!==undefined){if(arr.indexOf(value)!==-1){selectedValue=arr.indexOf(value)}}for(var i=0;i<arr.length;i++){var option=document.createElement(\"option\");option.value=arr[i];if(i===selectedValue){option.selected=\"selected\"}option.innerHTML=arr[i];select.appendChild(option)}var me=this;select.onchange=function(){me._update(this.value,path)};var label=this._makeLabel(path[path.length-1],path);this._makeItem(path,label,select)}},{key:\"_makeRange\",value:function _makeRange(arr,value,path){var defaultValue=arr[0];var min=arr[1];var max=arr[2];var step=arr[3];var range=document.createElement(\"input\");range.className=\"vis-configuration vis-config-range\";try{range.type=\"range\";range.min=min;range.max=max}catch(err){}range.step=step;var popupString=\"\";var popupValue=0;if(value!==undefined){var factor=1.2;if(value<0&&value*factor<min){range.min=Math.ceil(value*factor);popupValue=range.min;popupString=\"range increased\"}else if(value/factor<min){range.min=Math.ceil(value/factor);popupValue=range.min;popupString=\"range increased\"}if(value*factor>max&&max!==1){range.max=Math.ceil(value*factor);popupValue=range.max;popupString=\"range increased\"}range.value=value}else{range.value=defaultValue}var input=document.createElement(\"input\");input.className=\"vis-configuration vis-config-rangeinput\";input.value=range.value;var me=this;range.onchange=function(){input.value=this.value;me._update(Number(this.value),path)};range.oninput=function(){input.value=this.value};var label=this._makeLabel(path[path.length-1],path);var itemIndex=this._makeItem(path,label,range,input);if(popupString!==\"\"&&this.popupHistory[itemIndex]!==popupValue){this.popupHistory[itemIndex]=popupValue;this._setupPopup(popupString,itemIndex)}}},{key:\"_setupPopup\",value:function _setupPopup(string,index){var _this2=this;if(this.initialized===true&&this.allowCreation===true&&this.popupCounter<this.popupLimit){var div=document.createElement(\"div\");div.id=\"vis-configuration-popup\";div.className=\"vis-configuration-popup\";div.innerHTML=string;div.onclick=function(){_this2._removePopup()};this.popupCounter+=1;this.popupDiv={html:div,index:index}}}},{key:\"_removePopup\",value:function _removePopup(){if(this.popupDiv.html!==undefined){this.popupDiv.html.parentNode.removeChild(this.popupDiv.html);clearTimeout(this.popupDiv.hideTimeout);clearTimeout(this.popupDiv.deleteTimeout);this.popupDiv={}}}},{key:\"_showPopupIfNeeded\",value:function _showPopupIfNeeded(){var _this3=this;if(this.popupDiv.html!==undefined){var correspondingElement=this.domElements[this.popupDiv.index];var rect=correspondingElement.getBoundingClientRect();this.popupDiv.html.style.left=rect.left+\"px\";this.popupDiv.html.style.top=rect.top-30+\"px\";document.body.appendChild(this.popupDiv.html);this.popupDiv.hideTimeout=setTimeout(function(){_this3.popupDiv.html.style.opacity=0},1500);this.popupDiv.deleteTimeout=setTimeout(function(){_this3._removePopup()},1800)}}},{key:\"_makeCheckbox\",value:function _makeCheckbox(defaultValue,value,path){var checkbox=document.createElement(\"input\");checkbox.type=\"checkbox\";checkbox.className=\"vis-configuration vis-config-checkbox\";checkbox.checked=defaultValue;if(value!==undefined){checkbox.checked=value;if(value!==defaultValue){if((typeof defaultValue===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(defaultValue))===\"object\"){if(value!==defaultValue.enabled){this.changedOptions.push({path:path,value:value})}}else{this.changedOptions.push({path:path,value:value})}}}var me=this;checkbox.onchange=function(){me._update(this.checked,path)};var label=this._makeLabel(path[path.length-1],path);this._makeItem(path,label,checkbox)}},{key:\"_makeTextInput\",value:function _makeTextInput(defaultValue,value,path){var checkbox=document.createElement(\"input\");checkbox.type=\"text\";checkbox.className=\"vis-configuration vis-config-text\";checkbox.value=value;if(value!==defaultValue){this.changedOptions.push({path:path,value:value})}var me=this;checkbox.onchange=function(){me._update(this.value,path)};var label=this._makeLabel(path[path.length-1],path);this._makeItem(path,label,checkbox)}},{key:\"_makeColorField\",value:function _makeColorField(arr,value,path){var _this4=this;var defaultColor=arr[1];var div=document.createElement(\"div\");value=value===undefined?defaultColor:value;if(value!==\"none\"){div.className=\"vis-configuration vis-config-colorBlock\";div.style.backgroundColor=value}else{div.className=\"vis-configuration vis-config-colorBlock none\"}value=value===undefined?defaultColor:value;div.onclick=function(){_this4._showColorPicker(value,div,path)};var label=this._makeLabel(path[path.length-1],path);this._makeItem(path,label,div)}},{key:\"_showColorPicker\",value:function _showColorPicker(value,div,path){var _this5=this;div.onclick=function(){};this.colorPicker.insertTo(div);this.colorPicker.show();this.colorPicker.setColor(value);this.colorPicker.setUpdateCallback(function(color){\nvar colorString=\"rgba(\"+color.r+\",\"+color.g+\",\"+color.b+\",\"+color.a+\")\";div.style.backgroundColor=colorString;_this5._update(colorString,path)});this.colorPicker.setCloseCallback(function(){div.onclick=function(){_this5._showColorPicker(value,div,path)}})}},{key:\"_handleObject\",value:function _handleObject(obj){var path=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var checkOnly=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var show=false;var filter=this.options.filter;var visibleInSet=false;for(var subObj in obj){if(obj.hasOwnProperty(subObj)){show=true;var item=obj[subObj];var newPath=util.copyAndExtendArray(path,subObj);if(typeof filter===\"function\"){show=filter(subObj,path);if(show===false){if(!(item instanceof Array)&&typeof item!==\"string\"&&typeof item!==\"boolean\"&&item instanceof Object){this.allowCreation=false;show=this._handleObject(item,newPath,true);this.allowCreation=checkOnly===false}}}if(show!==false){visibleInSet=true;var value=this._getValue(newPath);if(item instanceof Array){this._handleArray(item,value,newPath)}else if(typeof item===\"string\"){this._makeTextInput(item,value,newPath)}else if(typeof item===\"boolean\"){this._makeCheckbox(item,value,newPath)}else if(item instanceof Object){var draw=true;if(path.indexOf(\"physics\")!==-1){if(this.moduleOptions.physics.solver!==subObj){draw=false}}if(draw===true){if(item.enabled!==undefined){var enabledPath=util.copyAndExtendArray(newPath,\"enabled\");var enabledValue=this._getValue(enabledPath);if(enabledValue===true){var label=this._makeLabel(subObj,newPath,true);this._makeItem(newPath,label);visibleInSet=this._handleObject(item,newPath)||visibleInSet}else{this._makeCheckbox(item,enabledValue,newPath)}}else{var _label=this._makeLabel(subObj,newPath,true);this._makeItem(newPath,_label);visibleInSet=this._handleObject(item,newPath)||visibleInSet}}}else{console.error(\"dont know how to handle\",item,subObj,newPath)}}}}return visibleInSet}},{key:\"_handleArray\",value:function _handleArray(arr,value,path){if(typeof arr[0]===\"string\"&&arr[0]===\"color\"){this._makeColorField(arr,value,path);if(arr[1]!==value){this.changedOptions.push({path:path,value:value})}}else if(typeof arr[0]===\"string\"){this._makeDropdown(arr,value,path);if(arr[0]!==value){this.changedOptions.push({path:path,value:value})}}else if(typeof arr[0]===\"number\"){this._makeRange(arr,value,path);if(arr[0]!==value){this.changedOptions.push({path:path,value:Number(value)})}}}},{key:\"_update\",value:function _update(value,path){var options=this._constructOptions(value,path);if(this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit){this.parent.body.emitter.emit(\"configChange\",options)}this.initialized=true;this.parent.setOptions(options)}},{key:\"_constructOptions\",value:function _constructOptions(value,path){var optionsObj=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var pointer=optionsObj;value=value===\"true\"?true:value;value=value===\"false\"?false:value;for(var i=0;i<path.length;i++){if(path[i]!==\"global\"){if(pointer[path[i]]===undefined){pointer[path[i]]={}}if(i!==path.length-1){pointer=pointer[path[i]]}else{pointer[path[i]]=value}}}return optionsObj}},{key:\"_printOptions\",value:function _printOptions(){var options=this.getOptions();this.optionsContainer.innerHTML=\"<pre>var options = \"+(0,_stringify2[\"default\"])(options,null,2)+\"</pre>\"}},{key:\"getOptions\",value:function getOptions(){var options={};for(var i=0;i<this.changedOptions.length;i++){this._constructOptions(this.changedOptions[i].value,this.changedOptions[i].path,options)}return options}}]);return Configurator}();exports[\"default\"]=Configurator},function(module,exports,__webpack_require__){\"use strict\";var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var DOMutil=__webpack_require__(14);function Points(groupId,options){}Points.draw=function(dataset,group,framework,offset){offset=offset||0;var callback=getCallback(framework,group);for(var i=0;i<dataset.length;i++){if(!callback){DOMutil.drawPoint(dataset[i].screen_x+offset,dataset[i].screen_y,getGroupTemplate(group),framework.svgElements,framework.svg,dataset[i].label)}else{var callbackResult=callback(dataset[i],group);if(callbackResult===true||(typeof callbackResult===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(callbackResult))===\"object\"){DOMutil.drawPoint(dataset[i].screen_x+offset,dataset[i].screen_y,getGroupTemplate(group,callbackResult),framework.svgElements,framework.svg,dataset[i].label)}}}};Points.drawIcon=function(group,x,y,iconWidth,iconHeight,framework){var fillHeight=iconHeight*.5;var outline=DOMutil.getSVGElement(\"rect\",framework.svgElements,framework.svg);outline.setAttributeNS(null,\"x\",x);outline.setAttributeNS(null,\"y\",y-fillHeight);outline.setAttributeNS(null,\"width\",iconWidth);outline.setAttributeNS(null,\"height\",2*fillHeight);outline.setAttributeNS(null,\"class\",\"vis-outline\");DOMutil.drawPoint(x+.5*iconWidth,y,getGroupTemplate(group),framework.svgElements,framework.svg)};function getGroupTemplate(group,callbackResult){callbackResult=typeof callbackResult===\"undefined\"?{}:callbackResult;return{style:callbackResult.style||group.options.drawPoints.style,styles:callbackResult.styles||group.options.drawPoints.styles,size:callbackResult.size||group.options.drawPoints.size,className:callbackResult.className||group.className}}function getCallback(framework,group){var callback=undefined;if(framework.options&&framework.options.drawPoints&&framework.options.drawPoints.onRender&&typeof framework.options.drawPoints.onRender==\"function\"){callback=framework.options.drawPoints.onRender}if(group.group.options&&group.group.options.drawPoints&&group.group.options.drawPoints.onRender&&typeof group.group.options.drawPoints.onRender==\"function\"){callback=group.group.options.drawPoints.onRender}return callback}module.exports=Points},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _NodeBase2=__webpack_require__(23);var _NodeBase3=_interopRequireDefault(_NodeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var CircleImageBase=function(_NodeBase){(0,_inherits3[\"default\"])(CircleImageBase,_NodeBase);function CircleImageBase(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,CircleImageBase);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(CircleImageBase.__proto__||(0,_getPrototypeOf2[\"default\"])(CircleImageBase)).call(this,options,body,labelModule));_this.labelOffset=0;_this.selected=false;return _this}(0,_createClass3[\"default\"])(CircleImageBase,[{key:\"setOptions\",value:function setOptions(options,imageObj,imageObjAlt){this.options=options;if(!(imageObj===undefined&&imageObjAlt===undefined)){this.setImages(imageObj,imageObjAlt)}}},{key:\"setImages\",value:function setImages(imageObj,imageObjAlt){if(imageObjAlt&&this.selected){this.imageObj=imageObjAlt;this.imageObjAlt=imageObj}else{this.imageObj=imageObj;this.imageObjAlt=imageObjAlt}}},{key:\"switchImages\",value:function switchImages(selected){var selection_changed=selected&&!this.selected||!selected&&this.selected;this.selected=selected;if(this.imageObjAlt!==undefined&&selection_changed){var imageTmp=this.imageObj;this.imageObj=this.imageObjAlt;this.imageObjAlt=imageTmp}}},{key:\"_resizeImage\",value:function _resizeImage(){var width,height;if(this.options.shapeProperties.useImageSize===false){var ratio_width=1;var ratio_height=1;if(this.imageObj.width&&this.imageObj.height){if(this.imageObj.width>this.imageObj.height){ratio_width=this.imageObj.width/this.imageObj.height}else{ratio_height=this.imageObj.height/this.imageObj.width}}width=this.options.size*2*ratio_width;height=this.options.size*2*ratio_height}else{width=this.imageObj.width;height=this.imageObj.height}this.width=width;this.height=height;this.radius=.5*this.width}},{key:\"_drawRawCircle\",value:function _drawRawCircle(ctx,x,y,values){this.initContextForDraw(ctx,values);ctx.circle(x,y,values.size);this.performFill(ctx,values)}},{key:\"_drawImageAtPosition\",value:function _drawImageAtPosition(ctx,values){if(this.imageObj.width!=0){ctx.globalAlpha=1;this.enableShadow(ctx,values);var factor=1;if(this.options.shapeProperties.interpolation===true){factor=this.imageObj.width/this.width/this.body.view.scale}this.imageObj.drawImageAtPosition(ctx,factor,this.left,this.top,this.width,this.height);this.disableShadow(ctx,values)}}},{key:\"_drawImageLabel\",value:function _drawImageLabel(ctx,x,y,selected,hover){var yLabel;var offset=0;if(this.height!==undefined){offset=this.height*.5;var labelDimensions=this.labelModule.getTextSize(ctx,selected,hover);if(labelDimensions.lineCount>=1){offset+=labelDimensions.height/2}}yLabel=y+offset;if(this.options.label){this.labelOffset=offset}this.labelModule.draw(ctx,x,yLabel,selected,hover,\"hanging\")}}]);return CircleImageBase}(_NodeBase3[\"default\"]);exports[\"default\"]=CircleImageBase},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _create=__webpack_require__(29);var _create2=_interopRequireDefault(_create);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Label=__webpack_require__(117)[\"default\"];var ComponentUtil=__webpack_require__(48)[\"default\"];var CubicBezierEdge=__webpack_require__(215)[\"default\"];var BezierEdgeDynamic=__webpack_require__(217)[\"default\"];var BezierEdgeStatic=__webpack_require__(218)[\"default\"];var StraightEdge=__webpack_require__(219)[\"default\"];var Edge=function(){function Edge(options,body,globalOptions,defaultOptions){(0,_classCallCheck3[\"default\"])(this,Edge);if(body===undefined){throw new Error(\"No body provided\")}this.options=util.bridgeObject(globalOptions);this.globalOptions=globalOptions;this.defaultOptions=defaultOptions;this.body=body;this.id=undefined;this.fromId=undefined;this.toId=undefined;this.selected=false;this.hover=false;this.labelDirty=true;this.baseWidth=this.options.width;this.baseFontSize=this.options.font.size;this.from=undefined;this.to=undefined;this.edgeType=undefined;this.connected=false;this.labelModule=new Label(this.body,this.options,true);this.setOptions(options)}(0,_createClass3[\"default\"])(Edge,[{key:\"setOptions\",value:function setOptions(options){if(!options){return}Edge.parseOptions(this.options,options,true,this.globalOptions);if(options.id!==undefined){this.id=options.id}if(options.from!==undefined){this.fromId=options.from}if(options.to!==undefined){this.toId=options.to}if(options.title!==undefined){this.title=options.title}if(options.value!==undefined){options.value=parseFloat(options.value)}var pile=[options,this.options,this.defaultOptions];this.chooser=ComponentUtil.choosify(\"edge\",pile);this.updateLabelModule(options);var dataChanged=this.updateEdgeType();this._setInteractionWidths();this.connect();if(options.hidden!==undefined||options.physics!==undefined){dataChanged=true}return dataChanged}},{key:\"getFormattingValues\",value:function getFormattingValues(){var toArrow=this.options.arrows.to===true||this.options.arrows.to.enabled===true;var fromArrow=this.options.arrows.from===true||this.options.arrows.from.enabled===true;var middleArrow=this.options.arrows.middle===true||this.options.arrows.middle.enabled===true;var inheritsColor=this.options.color.inherit;var values={toArrow:toArrow,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,middleArrow:middleArrow,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,fromArrow:fromArrow,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,arrowStrikethrough:this.options.arrowStrikethrough,color:inheritsColor?undefined:this.options.color.color,inheritsColor:inheritsColor,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width};if(this.selected||this.hover){if(this.chooser===true){if(this.selected){var selectedWidth=this.options.selectionWidth;if(typeof selectedWidth===\"function\"){values.width=selectedWidth(values.width)}else if(typeof selectedWidth===\"number\"){values.width+=selectedWidth}values.width=Math.max(values.width,.3/this.body.view.scale);values.color=this.options.color.highlight;values.shadow=this.options.shadow.enabled}else if(this.hover){var hoverWidth=this.options.hoverWidth;if(typeof hoverWidth===\"function\"){values.width=hoverWidth(values.width)}else if(typeof hoverWidth===\"number\"){values.width+=hoverWidth}values.width=Math.max(values.width,.3/this.body.view.scale);values.color=this.options.color.hover;values.shadow=this.options.shadow.enabled}}else if(typeof this.chooser===\"function\"){this.chooser(values,this.options.id,this.selected,this.hover);if(values.color!==undefined){values.inheritsColor=false}if(values.shadow===false){if(values.shadowColor!==this.options.shadow.color||values.shadowSize!==this.options.shadow.size||values.shadowX!==this.options.shadow.x||values.shadowY!==this.options.shadow.y){values.shadow=true}}}}else{values.shadow=this.options.shadow.enabled;values.width=Math.max(values.width,.3/this.body.view.scale)}return values}},{key:\"updateLabelModule\",value:function updateLabelModule(options){var pile=[options,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,pile);if(this.labelModule.baseSize!==undefined){this.baseFontSize=this.labelModule.baseSize}}},{key:\"updateEdgeType\",value:function updateEdgeType(){var smooth=this.options.smooth;var dataChanged=false;var changeInType=true;if(this.edgeType!==undefined){if(this.edgeType instanceof BezierEdgeDynamic&&smooth.enabled===true&&smooth.type===\"dynamic\"||this.edgeType instanceof CubicBezierEdge&&smooth.enabled===true&&smooth.type===\"cubicBezier\"||this.edgeType instanceof BezierEdgeStatic&&smooth.enabled===true&&smooth.type!==\"dynamic\"&&smooth.type!==\"cubicBezier\"||this.edgeType instanceof StraightEdge&&smooth.type.enabled===false){changeInType=false}if(changeInType===true){dataChanged=this.cleanup()}}if(changeInType===true){if(smooth.enabled===true){if(smooth.type===\"dynamic\"){dataChanged=true;this.edgeType=new BezierEdgeDynamic(this.options,this.body,this.labelModule)}else if(smooth.type===\"cubicBezier\"){this.edgeType=new CubicBezierEdge(this.options,this.body,this.labelModule)}else{this.edgeType=new BezierEdgeStatic(this.options,this.body,this.labelModule)}}else{this.edgeType=new StraightEdge(this.options,this.body,this.labelModule)}}else{this.edgeType.setOptions(this.options)}return dataChanged}},{key:\"connect\",value:function connect(){this.disconnect();this.from=this.body.nodes[this.fromId]||undefined;this.to=this.body.nodes[this.toId]||undefined;this.connected=this.from!==undefined&&this.to!==undefined;if(this.connected===true){this.from.attachEdge(this);this.to.attachEdge(this)}else{if(this.from){this.from.detachEdge(this)}if(this.to){this.to.detachEdge(this)}}this.edgeType.connect()}},{key:\"disconnect\",value:function disconnect(){if(this.from){this.from.detachEdge(this);this.from=undefined}if(this.to){this.to.detachEdge(this);this.to=undefined}this.connected=false}},{key:\"getTitle\",value:function getTitle(){return this.title}},{key:\"isSelected\",value:function isSelected(){return this.selected}},{key:\"getValue\",value:function getValue(){return this.options.value}},{key:\"setValueRange\",value:function setValueRange(min,max,total){if(this.options.value!==undefined){var scale=this.options.scaling.customScalingFunction(min,max,total,this.options.value);var widthDiff=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===true){var fontDiff=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+scale*fontDiff}this.options.width=this.options.scaling.min+scale*widthDiff}else{this.options.width=this.baseWidth;this.options.font.size=this.baseFontSize}this._setInteractionWidths();this.updateLabelModule()}},{key:\"_setInteractionWidths\",value:function _setInteractionWidths(){if(typeof this.options.hoverWidth===\"function\"){this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width)}else{this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width}if(typeof this.options.selectionWidth===\"function\"){this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width)}else{this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}}},{key:\"draw\",value:function draw(ctx){var values=this.getFormattingValues();if(values.hidden){return}var viaNode=this.edgeType.getViaNode();var arrowData={};this.edgeType.fromPoint=this.edgeType.from;this.edgeType.toPoint=this.edgeType.to;if(values.fromArrow){arrowData.from=this.edgeType.getArrowData(ctx,\"from\",viaNode,this.selected,this.hover,values);if(values.arrowStrikethrough===false)this.edgeType.fromPoint=arrowData.from.core}if(values.toArrow){arrowData.to=this.edgeType.getArrowData(ctx,\"to\",viaNode,this.selected,this.hover,values);if(values.arrowStrikethrough===false)this.edgeType.toPoint=arrowData.to.core}if(values.middleArrow){arrowData.middle=this.edgeType.getArrowData(ctx,\"middle\",viaNode,this.selected,this.hover,values)}this.edgeType.drawLine(ctx,values,this.selected,this.hover,viaNode);this.drawArrows(ctx,arrowData,values);this.drawLabel(ctx,viaNode)}},{key:\"drawArrows\",value:function drawArrows(ctx,arrowData,values){if(values.fromArrow){this.edgeType.drawArrowHead(ctx,values,this.selected,this.hover,arrowData.from)}if(values.middleArrow){this.edgeType.drawArrowHead(ctx,values,this.selected,this.hover,arrowData.middle)}if(values.toArrow){this.edgeType.drawArrowHead(ctx,values,this.selected,this.hover,arrowData.to)}}},{key:\"drawLabel\",value:function drawLabel(ctx,viaNode){if(this.options.label!==undefined){var node1=this.from;var node2=this.to;if(this.labelModule.differentState(this.selected,this.hover)){this.labelModule.getTextSize(ctx,this.selected,this.hover)}if(node1.id!=node2.id){this.labelModule.pointToSelf=false;var point=this.edgeType.getPoint(.5,viaNode);ctx.save();var rotationPoint=this._getRotation(ctx);if(rotationPoint.angle!=0){ctx.translate(rotationPoint.x,rotationPoint.y);ctx.rotate(rotationPoint.angle)}this.labelModule.draw(ctx,point.x,point.y,this.selected,this.hover);ctx.restore()}else{this.labelModule.pointToSelf=true;var x,y;var radius=this.options.selfReferenceSize;if(node1.shape.width>node1.shape.height){x=node1.x+node1.shape.width*.5;y=node1.y-radius}else{x=node1.x+radius;y=node1.y-node1.shape.height*.5}point=this._pointOnCircle(x,y,radius,.125);this.labelModule.draw(ctx,point.x,point.y,this.selected,this.hover)}}}},{key:\"getItemsOnPoint\",value:function getItemsOnPoint(point){var ret=[];if(this.labelModule.visible()){var rotationPoint=this._getRotation();if(ComponentUtil.pointInRect(this.labelModule.getSize(),point,rotationPoint)){ret.push({edgeId:this.id,labelId:0})}}var obj={left:point.x,top:point.y};if(this.isOverlappingWith(obj)){ret.push({edgeId:this.id})}return ret}},{key:\"isOverlappingWith\",value:function isOverlappingWith(obj){if(this.connected){var distMax=10;var xFrom=this.from.x;var yFrom=this.from.y;var xTo=this.to.x;var yTo=this.to.y;var xObj=obj.left;var yObj=obj.top;var dist=this.edgeType.getDistanceToEdge(xFrom,yFrom,xTo,yTo,xObj,yObj);return dist<distMax}else{return false}}},{key:\"_getRotation\",value:function _getRotation(ctx){var viaNode=this.edgeType.getViaNode();var point=this.edgeType.getPoint(.5,viaNode);if(ctx!==undefined){this.labelModule.calculateLabelSize(ctx,this.selected,this.hover,point.x,point.y)}var ret={x:point.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible()){return ret}if(this.options.font.align===\"horizontal\"){return ret}var dy=this.from.y-this.to.y;var dx=this.from.x-this.to.x;var angle=Math.atan2(dy,dx);if(angle<-1&&dx<0||angle>0&&dx<0){angle+=Math.PI}ret.angle=angle;return ret}},{key:\"_pointOnCircle\",value:function _pointOnCircle(x,y,radius,percentage){var angle=percentage*2*Math.PI;return{x:x+radius*Math.cos(angle),y:y-radius*Math.sin(angle)}}},{key:\"select\",value:function select(){this.selected=true}},{key:\"unselect\",value:function unselect(){this.selected=false}},{key:\"cleanup\",value:function cleanup(){return this.edgeType.cleanup()}},{key:\"remove\",value:function remove(){this.cleanup();this.disconnect();delete this.body.edges[this.id]}},{key:\"endPointsValid\",value:function endPointsValid(){return this.body.nodes[this.fromId]!==undefined&&this.body.nodes[this.toId]!==undefined}}],[{key:\"parseOptions\",value:function parseOptions(parentOptions,newOptions){var allowDeletion=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var globalOptions=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var copyFromGlobals=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var fields=[\"arrowStrikethrough\",\"id\",\"from\",\"hidden\",\"hoverWidth\",\"labelHighlightBold\",\"length\",\"line\",\"opacity\",\"physics\",\"scaling\",\"selectionWidth\",\"selfReferenceSize\",\"to\",\"title\",\"value\",\"width\",\"font\",\"chosen\",\"widthConstraint\"];util.selectiveDeepExtend(fields,parentOptions,newOptions,allowDeletion);if(ComponentUtil.isValidLabel(newOptions.label)){parentOptions.label=newOptions.label}else{parentOptions.label=undefined}util.mergeOptions(parentOptions,newOptions,\"smooth\",globalOptions);util.mergeOptions(parentOptions,newOptions,\"shadow\",globalOptions);if(newOptions.dashes!==undefined&&newOptions.dashes!==null){parentOptions.dashes=newOptions.dashes}else if(allowDeletion===true&&newOptions.dashes===null){parentOptions.dashes=(0,_create2[\"default\"])(globalOptions.dashes)}if(newOptions.scaling!==undefined&&newOptions.scaling!==null){if(newOptions.scaling.min!==undefined){parentOptions.scaling.min=newOptions.scaling.min}if(newOptions.scaling.max!==undefined){parentOptions.scaling.max=newOptions.scaling.max}util.mergeOptions(parentOptions.scaling,newOptions.scaling,\"label\",globalOptions.scaling)}else if(allowDeletion===true&&newOptions.scaling===null){parentOptions.scaling=(0,_create2[\"default\"])(globalOptions.scaling)}if(newOptions.arrows!==undefined&&newOptions.arrows!==null){if(typeof newOptions.arrows===\"string\"){var arrows=newOptions.arrows.toLowerCase();parentOptions.arrows.to.enabled=arrows.indexOf(\"to\")!=-1;parentOptions.arrows.middle.enabled=arrows.indexOf(\"middle\")!=-1;parentOptions.arrows.from.enabled=arrows.indexOf(\"from\")!=-1}else if((0,_typeof3[\"default\"])(newOptions.arrows)===\"object\"){util.mergeOptions(parentOptions.arrows,newOptions.arrows,\"to\",globalOptions.arrows);util.mergeOptions(parentOptions.arrows,newOptions.arrows,\"middle\",globalOptions.arrows);util.mergeOptions(parentOptions.arrows,newOptions.arrows,\"from\",globalOptions.arrows)}else{throw new Error(\"The arrow newOptions can only be an object or a string. Refer to the documentation. You used:\"+(0,_stringify2[\"default\"])(newOptions.arrows))}}else if(allowDeletion===true&&newOptions.arrows===null){parentOptions.arrows=(0,_create2[\"default\"])(globalOptions.arrows)}if(newOptions.color!==undefined&&newOptions.color!==null){var fromColor=newOptions.color;var toColor=parentOptions.color;if(copyFromGlobals){util.deepExtend(toColor,globalOptions.color,false,allowDeletion)}else{for(var i in toColor){if(toColor.hasOwnProperty(i)){delete toColor[i]}}}if(util.isString(toColor)){toColor.color=toColor;toColor.highlight=toColor;toColor.hover=toColor;toColor.inherit=false;if(fromColor.opacity===undefined){toColor.opacity=1}}else{var colorsDefined=false;if(fromColor.color!==undefined){toColor.color=fromColor.color;colorsDefined=true}if(fromColor.highlight!==undefined){toColor.highlight=fromColor.highlight;colorsDefined=true}if(fromColor.hover!==undefined){toColor.hover=fromColor.hover;colorsDefined=true}if(fromColor.inherit!==undefined){toColor.inherit=fromColor.inherit}if(fromColor.opacity!==undefined){toColor.opacity=Math.min(1,Math.max(0,fromColor.opacity))}if(colorsDefined===true){toColor.inherit=false}else{if(toColor.inherit===undefined){toColor.inherit=\"from\"}}}}else if(allowDeletion===true&&newOptions.color===null){parentOptions.color=util.bridgeObject(globalOptions.color)}if(allowDeletion===true&&newOptions.font===null){parentOptions.font=util.bridgeObject(globalOptions.font)}}}]);return Edge}();exports[\"default\"]=Edge},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _EdgeBase2=__webpack_require__(118);var _EdgeBase3=_interopRequireDefault(_EdgeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var BezierEdgeBase=function(_EdgeBase){(0,_inherits3[\"default\"])(BezierEdgeBase,_EdgeBase);function BezierEdgeBase(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,BezierEdgeBase);return(0,_possibleConstructorReturn3[\"default\"])(this,(BezierEdgeBase.__proto__||(0,_getPrototypeOf2[\"default\"])(BezierEdgeBase)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(BezierEdgeBase,[{key:\"_findBorderPositionBezier\",value:function _findBorderPositionBezier(nearNode,ctx){var viaNode=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this._getViaCoordinates();var maxIterations=10;var iteration=0;var low=0;var high=1;var pos,angle,distanceToBorder,distanceToPoint,difference;var threshold=.2;var node=this.to;var from=false;if(nearNode.id===this.from.id){node=this.from;from=true}while(low<=high&&iteration<maxIterations){var middle=(low+high)*.5;pos=this.getPoint(middle,viaNode);angle=Math.atan2(node.y-pos.y,node.x-pos.x);distanceToBorder=node.distanceToBorder(ctx,angle);distanceToPoint=Math.sqrt(Math.pow(pos.x-node.x,2)+Math.pow(pos.y-node.y,2));difference=distanceToBorder-distanceToPoint;if(Math.abs(difference)<threshold){break}else if(difference<0){if(from===false){low=middle}else{high=middle}}else{if(from===false){high=middle}else{low=middle}}iteration++}pos.t=middle;return pos}},{key:\"_getDistanceToBezierEdge\",value:function _getDistanceToBezierEdge(x1,y1,x2,y2,x3,y3,via){var minDistance=1e9;var distance=void 0;var i=void 0,t=void 0,x=void 0,y=void 0;var lastX=x1;var lastY=y1;for(i=1;i<10;i++){t=.1*i;x=Math.pow(1-t,2)*x1+2*t*(1-t)*via.x+Math.pow(t,2)*x2;y=Math.pow(1-t,2)*y1+2*t*(1-t)*via.y+Math.pow(t,2)*y2;if(i>0){distance=this._getDistanceToLine(lastX,lastY,x,y,x3,y3);minDistance=distance<minDistance?distance:minDistance}lastX=x;lastY=y}return minDistance}},{key:\"_bezierCurve\",value:function _bezierCurve(ctx,values,viaNode1,viaNode2){var hasNode1=viaNode1!==undefined&&viaNode1.x!==undefined;var hasNode2=viaNode2!==undefined&&viaNode2.x!==undefined;ctx.beginPath();ctx.moveTo(this.fromPoint.x,this.fromPoint.y);if(hasNode1&&hasNode2){ctx.bezierCurveTo(viaNode1.x,viaNode1.y,viaNode2.x,viaNode2.y,this.toPoint.x,this.toPoint.y)}else if(hasNode1){ctx.quadraticCurveTo(viaNode1.x,viaNode1.y,this.toPoint.x,this.toPoint.y)}else{ctx.lineTo(this.toPoint.x,this.toPoint.y)}this.enableShadow(ctx,values);ctx.stroke();this.disableShadow(ctx,values)}},{key:\"getViaNode\",value:function getViaNode(){return this._getViaCoordinates()}}]);return BezierEdgeBase}(_EdgeBase3[\"default\"]);exports[\"default\"]=BezierEdgeBase},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var NetworkUtil=function(){function NetworkUtil(){(0,_classCallCheck3[\"default\"])(this,NetworkUtil)}(0,_createClass3[\"default\"])(NetworkUtil,null,[{key:\"getRange\",value:function getRange(allNodes){var specificNodes=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var minY=1e9,maxY=-1e9,minX=1e9,maxX=-1e9,node;if(specificNodes.length>0){for(var i=0;i<specificNodes.length;i++){node=allNodes[specificNodes[i]];if(minX>node.shape.boundingBox.left){minX=node.shape.boundingBox.left}if(maxX<node.shape.boundingBox.right){maxX=node.shape.boundingBox.right}if(minY>node.shape.boundingBox.top){minY=node.shape.boundingBox.top}if(maxY<node.shape.boundingBox.bottom){maxY=node.shape.boundingBox.bottom}}}if(minX===1e9&&maxX===-1e9&&minY===1e9&&maxY===-1e9){minY=0,maxY=0,minX=0,maxX=0}return{minX:minX,maxX:maxX,minY:minY,maxY:maxY}}},{key:\"getRangeCore\",value:function getRangeCore(allNodes){var specificNodes=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var minY=1e9,maxY=-1e9,minX=1e9,maxX=-1e9,node;if(specificNodes.length>0){for(var i=0;i<specificNodes.length;i++){node=allNodes[specificNodes[i]];if(minX>node.x){minX=node.x}if(maxX<node.x){maxX=node.x}if(minY>node.y){minY=node.y}if(maxY<node.y){maxY=node.y}}}if(minX===1e9&&maxX===-1e9&&minY===1e9&&maxY===-1e9){minY=0,maxY=0,minX=0,maxX=0}return{minX:minX,maxX:maxX,minY:minY,maxY:maxY}}},{key:\"findCenter\",value:function findCenter(range){return{x:.5*(range.maxX+range.minX),y:.5*(range.maxY+range.minY)}}},{key:\"cloneOptions\",value:function cloneOptions(item,type){var clonedOptions={};if(type===undefined||type===\"node\"){util.deepExtend(clonedOptions,item.options,true);clonedOptions.x=item.x;clonedOptions.y=item.y;clonedOptions.amountOfConnections=item.edges.length}else{util.deepExtend(clonedOptions,item.options,true)}return clonedOptions}}]);return NetworkUtil}();exports[\"default\"]=NetworkUtil},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(124),__esModule:true}},function(module,exports,__webpack_require__){var cof=__webpack_require__(50);module.exports=Object(\"z\").propertyIsEnumerable(0)?Object:function(it){return cof(it)==\"String\"?it.split(\"\"):Object(it)}},function(module,exports,__webpack_require__){\"use strict\";var LIBRARY=__webpack_require__(52);var $export=__webpack_require__(17);var redefine=__webpack_require__(83);var hide=__webpack_require__(26);var has=__webpack_require__(22);var Iterators=__webpack_require__(31);var $iterCreate=__webpack_require__(129);var setToStringTag=__webpack_require__(59);var getPrototypeOf=__webpack_require__(85);var ITERATOR=__webpack_require__(13)(\"iterator\");var BUGGY=!([].keys&&\"next\"in[].keys())\n;var FF_ITERATOR=\"@@iterator\";var KEYS=\"keys\";var VALUES=\"values\";var returnThis=function(){return this};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next);var getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case KEYS:return function keys(){return new Constructor(this,kind)};case VALUES:return function values(){return new Constructor(this,kind)}}return function entries(){return new Constructor(this,kind)}};var TAG=NAME+\" Iterator\";var DEF_VALUES=DEFAULT==VALUES;var VALUES_BUG=false;var proto=Base.prototype;var $native=proto[ITERATOR]||proto[FF_ITERATOR]||DEFAULT&&proto[DEFAULT];var $default=$native||getMethod(DEFAULT);var $entries=DEFAULT?!DEF_VALUES?$default:getMethod(\"entries\"):undefined;var $anyNative=NAME==\"Array\"?proto.entries||$native:$native;var methods,key,IteratorPrototype;if($anyNative){IteratorPrototype=getPrototypeOf($anyNative.call(new Base));if(IteratorPrototype!==Object.prototype&&IteratorPrototype.next){setToStringTag(IteratorPrototype,TAG,true);if(!LIBRARY&&!has(IteratorPrototype,ITERATOR))hide(IteratorPrototype,ITERATOR,returnThis)}}if(DEF_VALUES&&$native&&$native.name!==VALUES){VALUES_BUG=true;$default=function values(){return $native.call(this)}}if((!LIBRARY||FORCED)&&(BUGGY||VALUES_BUG||!proto[ITERATOR])){hide(proto,ITERATOR,$default)}Iterators[NAME]=$default;Iterators[TAG]=returnThis;if(DEFAULT){methods={values:DEF_VALUES?$default:getMethod(VALUES),keys:IS_SET?$default:getMethod(KEYS),entries:$entries};if(FORCED)for(key in methods){if(!(key in proto))redefine(proto,key,methods[key])}else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods)}return methods}},function(module,exports,__webpack_require__){var aFunction=__webpack_require__(128);module.exports=function(fn,that,length){aFunction(fn);if(that===undefined)return fn;switch(length){case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(21)&&!__webpack_require__(28)(function(){return Object.defineProperty(__webpack_require__(82)(\"div\"),\"a\",{get:function(){return 7}}).a!=7})},function(module,exports,__webpack_require__){var isObject=__webpack_require__(32);var document=__webpack_require__(18).document;var is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(26)},function(module,exports,__webpack_require__){var has=__webpack_require__(22);var toIObject=__webpack_require__(25);var arrayIndexOf=__webpack_require__(131)(false);var IE_PROTO=__webpack_require__(56)(\"IE_PROTO\");module.exports=function(object,names){var O=toIObject(object);var i=0;var result=[];var key;for(key in O)if(key!=IE_PROTO)has(O,key)&&result.push(key);while(names.length>i)if(has(O,key=names[i++])){~arrayIndexOf(result,key)||result.push(key)}return result}},function(module,exports,__webpack_require__){var has=__webpack_require__(22);var toObject=__webpack_require__(41);var IE_PROTO=__webpack_require__(56)(\"IE_PROTO\");var ObjectProto=Object.prototype;module.exports=Object.getPrototypeOf||function(O){O=toObject(O);if(has(O,IE_PROTO))return O[IE_PROTO];if(typeof O.constructor==\"function\"&&O instanceof O.constructor){return O.constructor.prototype}return O instanceof Object?ObjectProto:null}},function(module,exports,__webpack_require__){var cof=__webpack_require__(50);var TAG=__webpack_require__(13)(\"toStringTag\");var ARG=cof(function(){return arguments}())==\"Arguments\";var tryGet=function(it,key){try{return it[key]}catch(e){}};module.exports=function(it){var O,T,B;return it===undefined?\"Undefined\":it===null?\"Null\":typeof(T=tryGet(O=Object(it),TAG))==\"string\"?T:ARG?cof(O):(B=cof(O))==\"Object\"&&typeof O.callee==\"function\"?\"Arguments\":B}},function(module,exports,__webpack_require__){var $export=__webpack_require__(17);var core=__webpack_require__(7);var fails=__webpack_require__(28);module.exports=function(KEY,exec){var fn=(core.Object||{})[KEY]||Object[KEY];var exp={};exp[KEY]=exec(fn);$export($export.S+$export.F*fails(function(){fn(1)}),\"Object\",exp)}},function(module,exports,__webpack_require__){var $keys=__webpack_require__(84);var hiddenKeys=__webpack_require__(58).concat(\"length\",\"prototype\");exports.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return $keys(O,hiddenKeys)}},function(module,exports,__webpack_require__){var pIE=__webpack_require__(42);var createDesc=__webpack_require__(39);var toIObject=__webpack_require__(25);var toPrimitive=__webpack_require__(53);var has=__webpack_require__(22);var IE8_DOM_DEFINE=__webpack_require__(81);var gOPD=Object.getOwnPropertyDescriptor;exports.f=__webpack_require__(21)?gOPD:function getOwnPropertyDescriptor(O,P){O=toIObject(O);P=toPrimitive(P,true);if(IE8_DOM_DEFINE)try{return gOPD(O,P)}catch(e){}if(has(O,P))return createDesc(!pIE.f.call(O,P),O[P])}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(162),__esModule:true}},function(module,exports,__webpack_require__){\"use strict\";function Point2d(x,y){this.x=x!==undefined?x:0;this.y=y!==undefined?y:0}module.exports=Point2d},function(module,exports,__webpack_require__){\"use strict\";var util=__webpack_require__(2);function Slider(container,options){if(container===undefined){throw new Error(\"No container element defined\")}this.container=container;this.visible=options&&options.visible!=undefined?options.visible:true;if(this.visible){this.frame=document.createElement(\"DIV\");this.frame.style.width=\"100%\";this.frame.style.position=\"relative\";this.container.appendChild(this.frame);this.frame.prev=document.createElement(\"INPUT\");this.frame.prev.type=\"BUTTON\";this.frame.prev.value=\"Prev\";this.frame.appendChild(this.frame.prev);this.frame.play=document.createElement(\"INPUT\");this.frame.play.type=\"BUTTON\";this.frame.play.value=\"Play\";this.frame.appendChild(this.frame.play);this.frame.next=document.createElement(\"INPUT\");this.frame.next.type=\"BUTTON\";this.frame.next.value=\"Next\";this.frame.appendChild(this.frame.next);this.frame.bar=document.createElement(\"INPUT\");this.frame.bar.type=\"BUTTON\";this.frame.bar.style.position=\"absolute\";this.frame.bar.style.border=\"1px solid red\";this.frame.bar.style.width=\"100px\";this.frame.bar.style.height=\"6px\";this.frame.bar.style.borderRadius=\"2px\";this.frame.bar.style.MozBorderRadius=\"2px\";this.frame.bar.style.border=\"1px solid #7F7F7F\";this.frame.bar.style.backgroundColor=\"#E5E5E5\";this.frame.appendChild(this.frame.bar);this.frame.slide=document.createElement(\"INPUT\");this.frame.slide.type=\"BUTTON\";this.frame.slide.style.margin=\"0px\";this.frame.slide.value=\" \";this.frame.slide.style.position=\"relative\";this.frame.slide.style.left=\"-100px\";this.frame.appendChild(this.frame.slide);var me=this;this.frame.slide.onmousedown=function(event){me._onMouseDown(event)};this.frame.prev.onclick=function(event){me.prev(event)};this.frame.play.onclick=function(event){me.togglePlay(event)};this.frame.next.onclick=function(event){me.next(event)}}this.onChangeCallback=undefined;this.values=[];this.index=undefined;this.playTimeout=undefined;this.playInterval=1e3;this.playLoop=true}Slider.prototype.prev=function(){var index=this.getIndex();if(index>0){index--;this.setIndex(index)}};Slider.prototype.next=function(){var index=this.getIndex();if(index<this.values.length-1){index++;this.setIndex(index)}};Slider.prototype.playNext=function(){var start=new Date;var index=this.getIndex();if(index<this.values.length-1){index++;this.setIndex(index)}else if(this.playLoop){index=0;this.setIndex(index)}var end=new Date;var diff=end-start;var interval=Math.max(this.playInterval-diff,0);var me=this;this.playTimeout=setTimeout(function(){me.playNext()},interval)};Slider.prototype.togglePlay=function(){if(this.playTimeout===undefined){this.play()}else{this.stop()}};Slider.prototype.play=function(){if(this.playTimeout)return;this.playNext();if(this.frame){this.frame.play.value=\"Stop\"}};Slider.prototype.stop=function(){clearInterval(this.playTimeout);this.playTimeout=undefined;if(this.frame){this.frame.play.value=\"Play\"}};Slider.prototype.setOnChangeCallback=function(callback){this.onChangeCallback=callback};Slider.prototype.setPlayInterval=function(interval){this.playInterval=interval};Slider.prototype.getPlayInterval=function(){return this.playInterval};Slider.prototype.setPlayLoop=function(doLoop){this.playLoop=doLoop};Slider.prototype.onChange=function(){if(this.onChangeCallback!==undefined){this.onChangeCallback()}};Slider.prototype.redraw=function(){if(this.frame){this.frame.bar.style.top=this.frame.clientHeight/2-this.frame.bar.offsetHeight/2+\"px\";this.frame.bar.style.width=this.frame.clientWidth-this.frame.prev.clientWidth-this.frame.play.clientWidth-this.frame.next.clientWidth-30+\"px\";var left=this.indexToLeft(this.index);this.frame.slide.style.left=left+\"px\"}};Slider.prototype.setValues=function(values){this.values=values;if(this.values.length>0)this.setIndex(0);else this.index=undefined};Slider.prototype.setIndex=function(index){if(index<this.values.length){this.index=index;this.redraw();this.onChange()}else{throw new Error(\"Index out of range\")}};Slider.prototype.getIndex=function(){return this.index};Slider.prototype.get=function(){return this.values[this.index]};Slider.prototype._onMouseDown=function(event){var leftButtonDown=event.which?event.which===1:event.button===1;if(!leftButtonDown)return;this.startClientX=event.clientX;this.startSlideX=parseFloat(this.frame.slide.style.left);this.frame.style.cursor=\"move\";var me=this;this.onmousemove=function(event){me._onMouseMove(event)};this.onmouseup=function(event){me._onMouseUp(event)};util.addEventListener(document,\"mousemove\",this.onmousemove);util.addEventListener(document,\"mouseup\",this.onmouseup);util.preventDefault(event)};Slider.prototype.leftToIndex=function(left){var width=parseFloat(this.frame.bar.style.width)-this.frame.slide.clientWidth-10;var x=left-3;var index=Math.round(x/width*(this.values.length-1));if(index<0)index=0;if(index>this.values.length-1)index=this.values.length-1;return index};Slider.prototype.indexToLeft=function(index){var width=parseFloat(this.frame.bar.style.width)-this.frame.slide.clientWidth-10;var x=index/(this.values.length-1)*width;var left=x+3;return left};Slider.prototype._onMouseMove=function(event){var diff=event.clientX-this.startClientX;var x=this.startSlideX+diff;var index=this.leftToIndex(x);this.setIndex(index);util.preventDefault()};Slider.prototype._onMouseUp=function(event){this.frame.style.cursor=\"auto\";util.removeEventListener(document,\"mousemove\",this.onmousemove);util.removeEventListener(document,\"mouseup\",this.onmouseup);util.preventDefault()};module.exports=Slider},function(module,exports,__webpack_require__){\"use strict\";function StepNumber(start,end,step,prettyStep){this._start=0;this._end=0;this._step=1;this.prettyStep=true;this.precision=5;this._current=0;this.setRange(start,end,step,prettyStep)}StepNumber.prototype.isNumeric=function(n){return!isNaN(parseFloat(n))&&isFinite(n)};StepNumber.prototype.setRange=function(start,end,step,prettyStep){if(!this.isNumeric(start)){throw new Error(\"Parameter 'start' is not numeric; value: \"+start)}if(!this.isNumeric(end)){throw new Error(\"Parameter 'end' is not numeric; value: \"+start)}if(!this.isNumeric(step)){throw new Error(\"Parameter 'step' is not numeric; value: \"+start)}this._start=start?start:0;this._end=end?end:0;this.setStep(step,prettyStep)};StepNumber.prototype.setStep=function(step,prettyStep){if(step===undefined||step<=0)return;if(prettyStep!==undefined)this.prettyStep=prettyStep;if(this.prettyStep===true)this._step=StepNumber.calculatePrettyStep(step);else this._step=step};StepNumber.calculatePrettyStep=function(step){var log10=function log10(x){return Math.log(x)/Math.LN10};var step1=Math.pow(10,Math.round(log10(step))),step2=2*Math.pow(10,Math.round(log10(step/2))),step5=5*Math.pow(10,Math.round(log10(step/5)));var prettyStep=step1;if(Math.abs(step2-step)<=Math.abs(prettyStep-step))prettyStep=step2;if(Math.abs(step5-step)<=Math.abs(prettyStep-step))prettyStep=step5;if(prettyStep<=0){prettyStep=1}return prettyStep};StepNumber.prototype.getCurrent=function(){return parseFloat(this._current.toPrecision(this.precision))};StepNumber.prototype.getStep=function(){return this._step};StepNumber.prototype.start=function(checkFirst){if(checkFirst===undefined){checkFirst=false}this._current=this._start-this._start%this._step;if(checkFirst){if(this.getCurrent()<this._start){this.next()}}};StepNumber.prototype.next=function(){this._current+=this._step};StepNumber.prototype.end=function(){return this._current>this._end};module.exports=StepNumber},function(module,exports,__webpack_require__){\"use strict\";var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Camera=__webpack_require__(95);var Point3d=__webpack_require__(34);var STYLE={BAR:0,BARCOLOR:1,BARSIZE:2,DOT:3,DOTLINE:4,DOTCOLOR:5,DOTSIZE:6,GRID:7,LINE:8,SURFACE:9};var STYLENAME={dot:STYLE.DOT,\"dot-line\":STYLE.DOTLINE,\"dot-color\":STYLE.DOTCOLOR,\"dot-size\":STYLE.DOTSIZE,line:STYLE.LINE,grid:STYLE.GRID,surface:STYLE.SURFACE,bar:STYLE.BAR,\"bar-color\":STYLE.BARCOLOR,\"bar-size\":STYLE.BARSIZE};var OPTIONKEYS=[\"width\",\"height\",\"filterLabel\",\"legendLabel\",\"xLabel\",\"yLabel\",\"zLabel\",\"xValueLabel\",\"yValueLabel\",\"zValueLabel\",\"showXAxis\",\"showYAxis\",\"showZAxis\",\"showGrid\",\"showPerspective\",\"showShadow\",\"keepAspectRatio\",\"verticalRatio\",\"dotSizeRatio\",\"dotSizeMinFraction\",\"dotSizeMaxFraction\",\"showAnimationControls\",\"animationInterval\",\"animationPreload\",\"animationAutoStart\",\"axisColor\",\"gridColor\",\"xCenter\",\"yCenter\"];var PREFIXEDOPTIONKEYS=[\"xBarWidth\",\"yBarWidth\",\"valueMin\",\"valueMax\",\"xMin\",\"xMax\",\"xStep\",\"yMin\",\"yMax\",\"yStep\",\"zMin\",\"zMax\",\"zStep\"];var DEFAULTS=undefined;function isEmpty(obj){for(var prop in obj){if(obj.hasOwnProperty(prop))return false}return true}function capitalize(str){if(str===undefined||str===\"\"||typeof str!=\"string\"){return str}return str.charAt(0).toUpperCase()+str.slice(1)}function prefixFieldName(prefix,fieldName){if(prefix===undefined||prefix===\"\"){return fieldName}return prefix+capitalize(fieldName)}function forceCopy(src,dst,fields,prefix){var srcKey;var dstKey;for(var i=0;i<fields.length;++i){srcKey=fields[i];dstKey=prefixFieldName(prefix,srcKey);dst[dstKey]=src[srcKey]}}function safeCopy(src,dst,fields,prefix){var srcKey;var dstKey;for(var i=0;i<fields.length;++i){srcKey=fields[i];if(src[srcKey]===undefined)continue;dstKey=prefixFieldName(prefix,srcKey);dst[dstKey]=src[srcKey]}}function setDefaults(src,dst){if(src===undefined||isEmpty(src)){throw new Error(\"No DEFAULTS passed\")}if(dst===undefined){throw new Error(\"No dst passed\")}DEFAULTS=src;forceCopy(src,dst,OPTIONKEYS);forceCopy(src,dst,PREFIXEDOPTIONKEYS,\"default\");setSpecialSettings(src,dst);dst.margin=10;dst.showGrayBottom=false;dst.showTooltip=false;dst.onclick_callback=null;dst.eye=new Point3d(0,0,-1)}function setOptions(options,dst){if(options===undefined){return}if(dst===undefined){throw new Error(\"No dst passed\")}if(DEFAULTS===undefined||isEmpty(DEFAULTS)){throw new Error(\"DEFAULTS not set for module Settings\")}safeCopy(options,dst,OPTIONKEYS);safeCopy(options,dst,PREFIXEDOPTIONKEYS,\"default\");setSpecialSettings(options,dst)}function setSpecialSettings(src,dst){if(src.backgroundColor!==undefined){setBackgroundColor(src.backgroundColor,dst)}setDataColor(src.dataColor,dst);setStyle(src.style,dst);setShowLegend(src.showLegend,dst);setCameraPosition(src.cameraPosition,dst);if(src.tooltip!==undefined){dst.showTooltip=src.tooltip}if(src.onclick!=undefined){dst.onclick_callback=src.onclick}if(src.tooltipStyle!==undefined){util.selectiveDeepExtend([\"tooltipStyle\"],dst,src)}}function setShowLegend(showLegend,dst){if(showLegend===undefined){var isAutoByDefault=DEFAULTS.showLegend===undefined;if(isAutoByDefault){var isLegendGraphStyle=dst.style===STYLE.DOTCOLOR||dst.style===STYLE.DOTSIZE;dst.showLegend=isLegendGraphStyle}else{}}else{dst.showLegend=showLegend}}function getStyleNumberByName(styleName){var number=STYLENAME[styleName];if(number===undefined){return-1}return number}function checkStyleNumber(style){var valid=false;for(var n in STYLE){if(STYLE[n]===style){valid=true;break}}return valid}function setStyle(style,dst){if(style===undefined){return}var styleNumber;if(typeof style===\"string\"){styleNumber=getStyleNumberByName(style);if(styleNumber===-1){throw new Error(\"Style '\"+style+\"' is invalid\")}}else{if(!checkStyleNumber(style)){throw new Error(\"Style '\"+style+\"' is invalid\")}styleNumber=style}dst.style=styleNumber}function setBackgroundColor(backgroundColor,dst){var fill=\"white\";var stroke=\"gray\";var strokeWidth=1;if(typeof backgroundColor===\"string\"){fill=backgroundColor;stroke=\"none\";strokeWidth=0}else if((typeof backgroundColor===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(backgroundColor))===\"object\"){if(backgroundColor.fill!==undefined)fill=backgroundColor.fill;if(backgroundColor.stroke!==undefined)stroke=backgroundColor.stroke;if(backgroundColor.strokeWidth!==undefined)strokeWidth=backgroundColor.strokeWidth}else{throw new Error(\"Unsupported type of backgroundColor\")}dst.frame.style.backgroundColor=fill;dst.frame.style.borderColor=stroke;dst.frame.style.borderWidth=strokeWidth+\"px\";dst.frame.style.borderStyle=\"solid\"}function setDataColor(dataColor,dst){if(dataColor===undefined){return}if(dst.dataColor===undefined){dst.dataColor={}}if(typeof dataColor===\"string\"){dst.dataColor.fill=dataColor;dst.dataColor.stroke=dataColor}else{if(dataColor.fill){dst.dataColor.fill=dataColor.fill}if(dataColor.stroke){dst.dataColor.stroke=dataColor.stroke}if(dataColor.strokeWidth!==undefined){dst.dataColor.strokeWidth=dataColor.strokeWidth}}}function setCameraPosition(cameraPosition,dst){var camPos=cameraPosition;if(camPos===undefined){return}if(dst.camera===undefined){dst.camera=new Camera}dst.camera.setArmRotation(camPos.horizontal,camPos.vertical);dst.camera.setArmLength(camPos.distance)}module.exports.STYLE=STYLE;module.exports.setDefaults=setDefaults;module.exports.setOptions=setOptions;module.exports.setCameraPosition=setCameraPosition},function(module,exports,__webpack_require__){\"use strict\";var _sign=__webpack_require__(165);var _sign2=_interopRequireDefault(_sign);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Point3d=__webpack_require__(34);function Camera(){this.armLocation=new Point3d;this.armRotation={};this.armRotation.horizontal=0;this.armRotation.vertical=0;this.armLength=1.7;this.cameraOffset=new Point3d;this.offsetMultiplier=.6;this.cameraLocation=new Point3d;this.cameraRotation=new Point3d(.5*Math.PI,0,0);this.calculateCameraOrientation()}Camera.prototype.setOffset=function(x,y){var abs=Math.abs,sign=_sign2[\"default\"],mul=this.offsetMultiplier,border=this.armLength*mul;if(abs(x)>border){x=sign(x)*border}if(abs(y)>border){y=sign(y)*border}this.cameraOffset.x=x;this.cameraOffset.y=y;this.calculateCameraOrientation()};Camera.prototype.getOffset=function(){return this.cameraOffset};Camera.prototype.setArmLocation=function(x,y,z){this.armLocation.x=x;this.armLocation.y=y;this.armLocation.z=z;this.calculateCameraOrientation()};Camera.prototype.setArmRotation=function(horizontal,vertical){if(horizontal!==undefined){this.armRotation.horizontal=horizontal}if(vertical!==undefined){this.armRotation.vertical=vertical;if(this.armRotation.vertical<0)this.armRotation.vertical=0;if(this.armRotation.vertical>.5*Math.PI)this.armRotation.vertical=.5*Math.PI}if(horizontal!==undefined||vertical!==undefined){this.calculateCameraOrientation()}};Camera.prototype.getArmRotation=function(){var rot={};rot.horizontal=this.armRotation.horizontal;rot.vertical=this.armRotation.vertical;return rot};Camera.prototype.setArmLength=function(length){if(length===undefined)return;this.armLength=length;if(this.armLength<.71)this.armLength=.71;if(this.armLength>5)this.armLength=5;this.setOffset(this.cameraOffset.x,this.cameraOffset.y);this.calculateCameraOrientation()};Camera.prototype.getArmLength=function(){return this.armLength};Camera.prototype.getCameraLocation=function(){return this.cameraLocation};Camera.prototype.getCameraRotation=function(){return this.cameraRotation};Camera.prototype.calculateCameraOrientation=function(){this.cameraLocation.x=this.armLocation.x-this.armLength*Math.sin(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical);this.cameraLocation.y=this.armLocation.y-this.armLength*Math.cos(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical);this.cameraLocation.z=this.armLocation.z+this.armLength*Math.sin(this.armRotation.vertical);this.cameraRotation.x=Math.PI/2-this.armRotation.vertical;this.cameraRotation.y=0;this.cameraRotation.z=-this.armRotation.horizontal;var xa=this.cameraRotation.x;var za=this.cameraRotation.z;var dx=this.cameraOffset.x;var dy=this.cameraOffset.y;var sin=Math.sin,cos=Math.cos;this.cameraLocation.x=this.cameraLocation.x+dx*cos(za)+dy*-sin(za)*cos(xa);this.cameraLocation.y=this.cameraLocation.y+dx*sin(za)+dy*cos(za)*cos(xa);this.cameraLocation.z=this.cameraLocation.z+dy*sin(xa)};module.exports=Camera},function(module,exports,__webpack_require__){\"use strict\";var DataView=__webpack_require__(12);function Filter(dataGroup,column,graph){this.dataGroup=dataGroup;this.column=column;this.graph=graph;this.index=undefined;this.value=undefined;this.values=dataGroup.getDistinctValues(this.column);if(this.values.length>0){this.selectValue(0)}this.dataPoints=[];this.loaded=false;this.onLoadCallback=undefined;if(graph.animationPreload){this.loaded=false;this.loadInBackground()}else{this.loaded=true}}Filter.prototype.isLoaded=function(){return this.loaded};Filter.prototype.getLoadedProgress=function(){var len=this.values.length;var i=0;while(this.dataPoints[i]){i++}return Math.round(i/len*100)};Filter.prototype.getLabel=function(){return this.graph.filterLabel};Filter.prototype.getColumn=function(){return this.column};Filter.prototype.getSelectedValue=function(){if(this.index===undefined)return undefined;return this.values[this.index]};Filter.prototype.getValues=function(){return this.values};Filter.prototype.getValue=function(index){if(index>=this.values.length)throw new Error(\"Index out of range\");return this.values[index]};Filter.prototype._getDataPoints=function(index){if(index===undefined)index=this.index;if(index===undefined)return[];var dataPoints;if(this.dataPoints[index]){dataPoints=this.dataPoints[index]}else{var f={};f.column=this.column;f.value=this.values[index];var dataView=new DataView(this.dataGroup.getDataSet(),{filter:function filter(item){return item[f.column]==f.value}}).get();dataPoints=this.dataGroup._getDataPoints(dataView);this.dataPoints[index]=dataPoints}return dataPoints};Filter.prototype.setOnLoadCallback=function(callback){this.onLoadCallback=callback};Filter.prototype.selectValue=function(index){if(index>=this.values.length)throw new Error(\"Index out of range\");this.index=index;this.value=this.values[index]};Filter.prototype.loadInBackground=function(index){if(index===undefined)index=0;var frame=this.graph.frame;if(index<this.values.length){if(frame.progress===undefined){frame.progress=document.createElement(\"DIV\");frame.progress.style.position=\"absolute\";frame.progress.style.color=\"gray\";frame.appendChild(frame.progress)}var progress=this.getLoadedProgress();frame.progress.innerHTML=\"Loading animation... \"+progress+\"%\";frame.progress.style.bottom=60+\"px\";frame.progress.style.left=10+\"px\";var me=this;setTimeout(function(){me.loadInBackground(index+1)},10);this.loaded=false}else{this.loaded=true;if(frame.progress!==undefined){frame.removeChild(frame.progress);frame.progress=undefined}if(this.onLoadCallback)this.onLoadCallback()}};module.exports=Filter},function(module,exports,__webpack_require__){\"use strict\";var keycharm=__webpack_require__(35);var Emitter=__webpack_require__(44);var Hammer=__webpack_require__(10);var util=__webpack_require__(2);function Activator(container){this.active=false;this.dom={container:container};this.dom.overlay=document.createElement(\"div\");this.dom.overlay.className=\"vis-overlay\";this.dom.container.appendChild(this.dom.overlay);this.hammer=Hammer(this.dom.overlay);this.hammer.on(\"tap\",this._onTapOverlay.bind(this));var me=this;var events=[\"tap\",\"doubletap\",\"press\",\"pinch\",\"pan\",\"panstart\",\"panmove\",\"panend\"];events.forEach(function(event){me.hammer.on(event,function(event){event.stopPropagation()})});if(document&&document.body){this.onClick=function(event){if(!_hasParent(event.target,container)){me.deactivate()}};document.body.addEventListener(\"click\",this.onClick)}if(this.keycharm!==undefined){this.keycharm.destroy()}this.keycharm=keycharm();this.escListener=this.deactivate.bind(this)}Emitter(Activator.prototype);Activator.current=null;Activator.prototype.destroy=function(){this.deactivate();this.dom.overlay.parentNode.removeChild(this.dom.overlay);if(this.onClick){document.body.removeEventListener(\"click\",this.onClick)}this.hammer.destroy();this.hammer=null};Activator.prototype.activate=function(){if(Activator.current){Activator.current.deactivate()}Activator.current=this;this.active=true;this.dom.overlay.style.display=\"none\";util.addClassName(this.dom.container,\"vis-active\");this.emit(\"change\");this.emit(\"activate\");this.keycharm.bind(\"esc\",this.escListener)};Activator.prototype.deactivate=function(){this.active=false;this.dom.overlay.style.display=\"\";util.removeClassName(this.dom.container,\"vis-active\");this.keycharm.unbind(\"esc\",this.escListener);this.emit(\"change\");this.emit(\"deactivate\")};Activator.prototype._onTapOverlay=function(event){this.activate();event.stopPropagation()};function _hasParent(element,parent){while(element){if(element===parent){return true}element=element.parentNode}return false}module.exports=Activator},function(module,exports,__webpack_require__){\"use strict\";exports[\"en\"]={current:\"current\",time:\"time\"};exports[\"en_EN\"]=exports[\"en\"];exports[\"en_US\"]=exports[\"en\"];exports[\"it\"]={current:\"attuale\",time:\"tempo\"};exports[\"it_IT\"]=exports[\"it\"];exports[\"it_CH\"]=exports[\"it\"];exports[\"nl\"]={current:\"huidige\",time:\"tijd\"};exports[\"nl_NL\"]=exports[\"nl\"];exports[\"nl_BE\"]=exports[\"nl\"];exports[\"de\"]={current:\"Aktuelle\",time:\"Zeit\"};exports[\"de_DE\"]=exports[\"de\"];exports[\"fr\"]={current:\"actuel\",time:\"heure\"};exports[\"fr_FR\"]=exports[\"fr\"];exports[\"fr_CA\"]=exports[\"fr\"];exports[\"fr_BE\"]=exports[\"fr\"];exports[\"es\"]={current:\"corriente\",time:\"hora\"};exports[\"es_ES\"]=exports[\"es\"]},function(module,exports,__webpack_require__){\"use strict\";var _create=__webpack_require__(29);var _create2=_interopRequireDefault(_create);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Hammer=__webpack_require__(10);var util=__webpack_require__(2);var DataSet=__webpack_require__(11);var DataView=__webpack_require__(12);var TimeStep=__webpack_require__(66);var Component=__webpack_require__(16);var Group=__webpack_require__(68);var BackgroundGroup=__webpack_require__(69);var BoxItem=__webpack_require__(101);var PointItem=__webpack_require__(102);var RangeItem=__webpack_require__(70);var BackgroundItem=__webpack_require__(103);var Popup=__webpack_require__(104)[\"default\"];var UNGROUPED=\"__ungrouped__\";var BACKGROUND=\"__background__\";function ItemSet(body,options){this.body=body;this.defaultOptions={type:null,orientation:{item:\"bottom\"},align:\"auto\",stack:true,stackSubgroups:true,groupOrderSwap:function groupOrderSwap(fromGroup,toGroup,groups){var targetOrder=toGroup.order;toGroup.order=fromGroup.order;fromGroup.order=targetOrder},groupOrder:\"order\",selectable:true,multiselect:false,itemsAlwaysDraggable:{item:false,range:false},editable:{updateTime:false,updateGroup:false,add:false,remove:false,overrideItems:false},groupEditable:{order:false,add:false,remove:false},snap:TimeStep.snap,onDropObjectOnItem:function onDropObjectOnItem(objectData,item,callback){callback(item)},onAdd:function onAdd(item,callback){callback(item)},onUpdate:function onUpdate(item,callback){callback(item)},onMove:function onMove(item,callback){callback(item)},onRemove:function onRemove(item,callback){callback(item)},onMoving:function onMoving(item,callback){callback(item)},onAddGroup:function onAddGroup(item,callback){callback(item)},onMoveGroup:function onMoveGroup(item,callback){callback(item)},onRemoveGroup:function onRemoveGroup(item,callback){callback(item)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:true,tooltip:{followMouse:false,overflowMethod:\"flip\"},tooltipOnItemUpdateTime:false};this.options=util.extend({},this.defaultOptions);this.options.rtl=options.rtl;this.itemOptions={type:{start:\"Date\",end:\"Date\"}};this.conversion={toScreen:body.util.toScreen,toTime:body.util.toTime};this.dom={};this.props={};this.hammer=null;var me=this;this.itemsData=null;this.groupsData=null;this.itemListeners={add:function add(event,params,senderId){me._onAdd(params.items)},update:function update(event,params,senderId){me._onUpdate(params.items)},remove:function remove(event,params,senderId){me._onRemove(params.items)}};this.groupListeners={add:function add(event,params,senderId){me._onAddGroups(params.items);if(me.groupsData&&me.groupsData.length>0){var groupsData=me.groupsData.getDataSet();groupsData.get().forEach(function(groupData){if(groupData.nestedGroups){if(groupData.showNested!=false){groupData.showNested=true}var updatedGroups=[];groupData.nestedGroups.forEach(function(nestedGroupId){var updatedNestedGroup=groupsData.get(nestedGroupId);if(!updatedNestedGroup){return}updatedNestedGroup.nestedInGroup=groupData.id;if(groupData.showNested==false){updatedNestedGroup.visible=false}updatedGroups=updatedGroups.concat(updatedNestedGroup)});groupsData.update(updatedGroups,senderId)}})}},update:function update(event,params,senderId){me._onUpdateGroups(params.items)},remove:function remove(event,params,senderId){me._onRemoveGroups(params.items)}};this.items={};this.groups={};this.groupIds=[];this.selection=[];this.popup=null;this.touchParams={};this.groupTouchParams={};this._create();this.setOptions(options)}ItemSet.prototype=new Component;ItemSet.types={background:BackgroundItem,box:BoxItem,range:RangeItem,point:PointItem};ItemSet.prototype._create=function(){var frame=document.createElement(\"div\");frame.className=\"vis-itemset\";frame[\"timeline-itemset\"]=this;this.dom.frame=frame;var background=document.createElement(\"div\");background.className=\"vis-background\";frame.appendChild(background);this.dom.background=background;var foreground=document.createElement(\"div\");foreground.className=\"vis-foreground\";frame.appendChild(foreground);this.dom.foreground=foreground;var axis=document.createElement(\"div\");axis.className=\"vis-axis\";this.dom.axis=axis;var labelSet=document.createElement(\"div\");labelSet.className=\"vis-labelset\";this.dom.labelSet=labelSet;this._updateUngrouped();var backgroundGroup=new BackgroundGroup(BACKGROUND,null,this);backgroundGroup.show();this.groups[BACKGROUND]=backgroundGroup;this.hammer=new Hammer(this.body.dom.centerContainer);this.hammer.on(\"hammer.input\",function(event){if(event.isFirst){this._onTouch(event)}}.bind(this));this.hammer.on(\"panstart\",this._onDragStart.bind(this));this.hammer.on(\"panmove\",this._onDrag.bind(this));this.hammer.on(\"panend\",this._onDragEnd.bind(this));this.hammer.get(\"pan\").set({threshold:5,direction:Hammer.DIRECTION_HORIZONTAL});this.hammer.on(\"tap\",this._onSelectItem.bind(this));this.hammer.on(\"press\",this._onMultiSelectItem.bind(this));this.hammer.on(\"doubletap\",this._onAddItem.bind(this));if(this.options.rtl){\nthis.groupHammer=new Hammer(this.body.dom.rightContainer)}else{this.groupHammer=new Hammer(this.body.dom.leftContainer)}this.groupHammer.on(\"tap\",this._onGroupClick.bind(this));this.groupHammer.on(\"panstart\",this._onGroupDragStart.bind(this));this.groupHammer.on(\"panmove\",this._onGroupDrag.bind(this));this.groupHammer.on(\"panend\",this._onGroupDragEnd.bind(this));this.groupHammer.get(\"pan\").set({threshold:5,direction:Hammer.DIRECTION_VERTICAL});this.body.dom.centerContainer.addEventListener(\"mouseover\",this._onMouseOver.bind(this));this.body.dom.centerContainer.addEventListener(\"mouseout\",this._onMouseOut.bind(this));this.body.dom.centerContainer.addEventListener(\"mousemove\",this._onMouseMove.bind(this));this.body.dom.centerContainer.addEventListener(\"contextmenu\",this._onDragEnd.bind(this));this.body.dom.centerContainer.addEventListener(\"mousewheel\",this._onMouseWheel.bind(this));this.show()};ItemSet.prototype.setOptions=function(options){if(options){var fields=[\"type\",\"rtl\",\"align\",\"order\",\"stack\",\"stackSubgroups\",\"selectable\",\"multiselect\",\"multiselectPerGroup\",\"groupOrder\",\"dataAttributes\",\"template\",\"groupTemplate\",\"visibleFrameTemplate\",\"hide\",\"snap\",\"groupOrderSwap\",\"showTooltips\",\"tooltip\",\"tooltipOnItemUpdateTime\"];util.selectiveExtend(fields,this.options,options);if(\"itemsAlwaysDraggable\"in options){if(typeof options.itemsAlwaysDraggable===\"boolean\"){this.options.itemsAlwaysDraggable.item=options.itemsAlwaysDraggable;this.options.itemsAlwaysDraggable.range=false}else if((0,_typeof3[\"default\"])(options.itemsAlwaysDraggable)===\"object\"){util.selectiveExtend([\"item\",\"range\"],this.options.itemsAlwaysDraggable,options.itemsAlwaysDraggable);if(!this.options.itemsAlwaysDraggable.item){this.options.itemsAlwaysDraggable.range=false}}}if(\"orientation\"in options){if(typeof options.orientation===\"string\"){this.options.orientation.item=options.orientation===\"top\"?\"top\":\"bottom\"}else if((0,_typeof3[\"default\"])(options.orientation)===\"object\"&&\"item\"in options.orientation){this.options.orientation.item=options.orientation.item}}if(\"margin\"in options){if(typeof options.margin===\"number\"){this.options.margin.axis=options.margin;this.options.margin.item.horizontal=options.margin;this.options.margin.item.vertical=options.margin}else if((0,_typeof3[\"default\"])(options.margin)===\"object\"){util.selectiveExtend([\"axis\"],this.options.margin,options.margin);if(\"item\"in options.margin){if(typeof options.margin.item===\"number\"){this.options.margin.item.horizontal=options.margin.item;this.options.margin.item.vertical=options.margin.item}else if((0,_typeof3[\"default\"])(options.margin.item)===\"object\"){util.selectiveExtend([\"horizontal\",\"vertical\"],this.options.margin.item,options.margin.item)}}}}if(\"editable\"in options){if(typeof options.editable===\"boolean\"){this.options.editable.updateTime=options.editable;this.options.editable.updateGroup=options.editable;this.options.editable.add=options.editable;this.options.editable.remove=options.editable;this.options.editable.overrideItems=false}else if((0,_typeof3[\"default\"])(options.editable)===\"object\"){util.selectiveExtend([\"updateTime\",\"updateGroup\",\"add\",\"remove\",\"overrideItems\"],this.options.editable,options.editable)}}if(\"groupEditable\"in options){if(typeof options.groupEditable===\"boolean\"){this.options.groupEditable.order=options.groupEditable;this.options.groupEditable.add=options.groupEditable;this.options.groupEditable.remove=options.groupEditable}else if((0,_typeof3[\"default\"])(options.groupEditable)===\"object\"){util.selectiveExtend([\"order\",\"add\",\"remove\"],this.options.groupEditable,options.groupEditable)}}var addCallback=function(name){var fn=options[name];if(fn){if(!(fn instanceof Function)){throw new Error(\"option \"+name+\" must be a function \"+name+\"(item, callback)\")}this.options[name]=fn}}.bind(this);[\"onDropObjectOnItem\",\"onAdd\",\"onUpdate\",\"onRemove\",\"onMove\",\"onMoving\",\"onAddGroup\",\"onMoveGroup\",\"onRemoveGroup\"].forEach(addCallback);this.markDirty()}};ItemSet.prototype.markDirty=function(options){this.groupIds=[];if(options&&options.refreshItems){util.forEach(this.items,function(item){item.dirty=true;if(item.displayed)item.redraw()})}};ItemSet.prototype.destroy=function(){this.hide();this.setItems(null);this.setGroups(null);this.hammer=null;this.body=null;this.conversion=null};ItemSet.prototype.hide=function(){if(this.dom.frame.parentNode){this.dom.frame.parentNode.removeChild(this.dom.frame)}if(this.dom.axis.parentNode){this.dom.axis.parentNode.removeChild(this.dom.axis)}if(this.dom.labelSet.parentNode){this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)}};ItemSet.prototype.show=function(){if(!this.dom.frame.parentNode){this.body.dom.center.appendChild(this.dom.frame)}if(!this.dom.axis.parentNode){this.body.dom.backgroundVertical.appendChild(this.dom.axis)}if(!this.dom.labelSet.parentNode){if(this.options.rtl){this.body.dom.right.appendChild(this.dom.labelSet)}else{this.body.dom.left.appendChild(this.dom.labelSet)}}};ItemSet.prototype.setSelection=function(ids){var i,ii,id,item;if(ids==undefined)ids=[];if(!Array.isArray(ids))ids=[ids];for(i=0,ii=this.selection.length;i<ii;i++){id=this.selection[i];item=this.items[id];if(item)item.unselect()}this.selection=[];for(i=0,ii=ids.length;i<ii;i++){id=ids[i];item=this.items[id];if(item){this.selection.push(id);item.select()}}};ItemSet.prototype.getSelection=function(){return this.selection.concat([])};ItemSet.prototype.getVisibleItems=function(){var range=this.body.range.getRange();var right,left;if(this.options.rtl){right=this.body.util.toScreen(range.start);left=this.body.util.toScreen(range.end)}else{left=this.body.util.toScreen(range.start);right=this.body.util.toScreen(range.end)}var ids=[];for(var groupId in this.groups){if(this.groups.hasOwnProperty(groupId)){var group=this.groups[groupId];var rawVisibleItems=group.isVisible?group.visibleItems:[];for(var i=0;i<rawVisibleItems.length;i++){var item=rawVisibleItems[i];if(this.options.rtl){if(item.right<left&&item.right+item.width>right){ids.push(item.id)}}else{if(item.left<right&&item.left+item.width>left){ids.push(item.id)}}}}}return ids};ItemSet.prototype._deselect=function(id){var selection=this.selection;for(var i=0,ii=selection.length;i<ii;i++){if(selection[i]==id){selection.splice(i,1);break}}};ItemSet.prototype.redraw=function(){var margin=this.options.margin,range=this.body.range,asSize=util.option.asSize,options=this.options,orientation=options.orientation.item,resized=false,frame=this.dom.frame;this.props.top=this.body.domProps.top.height+this.body.domProps.border.top;if(this.options.rtl){this.props.right=this.body.domProps.right.width+this.body.domProps.border.right}else{this.props.left=this.body.domProps.left.width+this.body.domProps.border.left}frame.className=\"vis-itemset\";resized=this._orderGroups()||resized;var visibleInterval=range.end-range.start;var zoomed=visibleInterval!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth;var scrolled=range.start!=this.lastRangeStart;var changedStackOption=options.stack!=this.lastStack;var changedStackSubgroupsOption=options.stackSubgroups!=this.lastStackSubgroups;var forceRestack=zoomed||scrolled||changedStackOption||changedStackSubgroupsOption;this.lastVisibleInterval=visibleInterval;this.lastRangeStart=range.start;this.lastStack=options.stack;this.lastStackSubgroups=options.stackSubgroups;this.props.lastWidth=this.props.width;var firstGroup=this._firstGroup();var firstMargin={item:margin.item,axis:margin.axis};var nonFirstMargin={item:margin.item,axis:margin.item.vertical/2};var height=0;var minHeight=margin.axis+margin.item.vertical;this.groups[BACKGROUND].redraw(range,nonFirstMargin,forceRestack);var redrawQueue={};var redrawQueueLength=0;util.forEach(this.groups,function(group,key){if(key===BACKGROUND)return;var groupMargin=group==firstGroup?firstMargin:nonFirstMargin;var returnQueue=true;redrawQueue[key]=group.redraw(range,groupMargin,forceRestack,returnQueue);redrawQueueLength=redrawQueue[key].length});var needRedraw=redrawQueueLength>0;if(needRedraw){var redrawResults={};for(var i=0;i<redrawQueueLength;i++){util.forEach(redrawQueue,function(fns,key){redrawResults[key]=fns[i]()})}util.forEach(this.groups,function(group,key){if(key===BACKGROUND)return;var groupResized=redrawResults[key];resized=groupResized||resized;height+=group.height});height=Math.max(height,minHeight)}height=Math.max(height,minHeight);frame.style.height=asSize(height);this.props.width=frame.offsetWidth;this.props.height=height;this.dom.axis.style.top=asSize(orientation==\"top\"?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height);if(this.options.rtl){this.dom.axis.style.right=\"0\"}else{this.dom.axis.style.left=\"0\"}this.initialItemSetDrawn=true;resized=this._isResized()||resized;return resized};ItemSet.prototype._firstGroup=function(){var firstGroupIndex=this.options.orientation.item==\"top\"?0:this.groupIds.length-1;var firstGroupId=this.groupIds[firstGroupIndex];var firstGroup=this.groups[firstGroupId]||this.groups[UNGROUPED];return firstGroup||null};ItemSet.prototype._updateUngrouped=function(){var ungrouped=this.groups[UNGROUPED];var item,itemId;if(this.groupsData){if(ungrouped){ungrouped.hide();delete this.groups[UNGROUPED];for(itemId in this.items){if(this.items.hasOwnProperty(itemId)){item=this.items[itemId];item.parent&&item.parent.remove(item);var groupId=this._getGroupId(item.data);var group=this.groups[groupId];group&&group.add(item)||item.hide()}}}}else{if(!ungrouped){var id=null;var data=null;ungrouped=new Group(id,data,this);this.groups[UNGROUPED]=ungrouped;for(itemId in this.items){if(this.items.hasOwnProperty(itemId)){item=this.items[itemId];ungrouped.add(item)}}ungrouped.show()}}};ItemSet.prototype.getLabelSet=function(){return this.dom.labelSet};ItemSet.prototype.setItems=function(items){var me=this,ids,oldItemsData=this.itemsData;if(!items){this.itemsData=null}else if(items instanceof DataSet||items instanceof DataView){this.itemsData=items}else{throw new TypeError(\"Data must be an instance of DataSet or DataView\")}if(oldItemsData){util.forEach(this.itemListeners,function(callback,event){oldItemsData.off(event,callback)});ids=oldItemsData.getIds();this._onRemove(ids)}if(this.itemsData){var id=this.id;util.forEach(this.itemListeners,function(callback,event){me.itemsData.on(event,callback,id)});ids=this.itemsData.getIds();this._onAdd(ids);this._updateUngrouped()}this.body.emitter.emit(\"_change\",{queue:true})};ItemSet.prototype.getItems=function(){return this.itemsData};ItemSet.prototype.setGroups=function(groups){var me=this,ids;if(this.groupsData){util.forEach(this.groupListeners,function(callback,event){me.groupsData.off(event,callback)});ids=this.groupsData.getIds();this.groupsData=null;this._onRemoveGroups(ids)}if(!groups){this.groupsData=null}else if(groups instanceof DataSet||groups instanceof DataView){this.groupsData=groups}else{throw new TypeError(\"Data must be an instance of DataSet or DataView\")}if(this.groupsData){var groupsData=this.groupsData;if(this.groupsData instanceof DataView){groupsData=this.groupsData.getDataSet()}groupsData.get().forEach(function(group){if(group.nestedGroups){group.nestedGroups.forEach(function(nestedGroupId){var updatedNestedGroup=groupsData.get(nestedGroupId);updatedNestedGroup.nestedInGroup=group.id;if(group.showNested==false){updatedNestedGroup.visible=false}groupsData.update(updatedNestedGroup)})}});var id=this.id;util.forEach(this.groupListeners,function(callback,event){me.groupsData.on(event,callback,id)});ids=this.groupsData.getIds();this._onAddGroups(ids)}this._updateUngrouped();this._order();this.body.emitter.emit(\"_change\",{queue:true})};ItemSet.prototype.getGroups=function(){return this.groupsData};ItemSet.prototype.removeItem=function(id){var item=this.itemsData.get(id),dataset=this.itemsData.getDataSet();if(item){this.options.onRemove(item,function(item){if(item){dataset.remove(id)}})}};ItemSet.prototype._getType=function(itemData){return itemData.type||this.options.type||(itemData.end?\"range\":\"box\")};ItemSet.prototype._getGroupId=function(itemData){var type=this._getType(itemData);if(type==\"background\"&&itemData.group==undefined){return BACKGROUND}else{return this.groupsData?itemData.group:UNGROUPED}};ItemSet.prototype._onUpdate=function(ids){var me=this;ids.forEach(function(id){var itemData=me.itemsData.get(id,me.itemOptions);var item=me.items[id];var type=itemData?me._getType(itemData):null;var constructor=ItemSet.types[type];var selected;if(item){if(!constructor||!(item instanceof constructor)){selected=item.selected;me._removeItem(item);item=null}else{me._updateItem(item,itemData)}}if(!item&&itemData){if(constructor){item=new constructor(itemData,me.conversion,me.options);item.id=id;me._addItem(item);if(selected){this.selection.push(id);item.select()}}else if(type==\"rangeoverflow\"){throw new TypeError('Item type \"rangeoverflow\" is deprecated. Use css styling instead: '+\".vis-item.vis-range .vis-item-content {overflow: visible;}\")}else{throw new TypeError('Unknown item type \"'+type+'\"')}}}.bind(this));this._order();this.body.emitter.emit(\"_change\",{queue:true})};ItemSet.prototype._onAdd=ItemSet.prototype._onUpdate;ItemSet.prototype._onRemove=function(ids){var count=0;var me=this;ids.forEach(function(id){var item=me.items[id];if(item){count++;me._removeItem(item)}});if(count){this._order();this.body.emitter.emit(\"_change\",{queue:true})}};ItemSet.prototype._order=function(){util.forEach(this.groups,function(group){group.order()})};ItemSet.prototype._onUpdateGroups=function(ids){this._onAddGroups(ids)};ItemSet.prototype._onAddGroups=function(ids){var me=this;ids.forEach(function(id){var groupData=me.groupsData.get(id);var group=me.groups[id];if(!group){if(id==UNGROUPED||id==BACKGROUND){throw new Error(\"Illegal group id. \"+id+\" is a reserved id.\")}var groupOptions=(0,_create2[\"default\"])(me.options);util.extend(groupOptions,{height:null});group=new Group(id,groupData,me);me.groups[id]=group;for(var itemId in me.items){if(me.items.hasOwnProperty(itemId)){var item=me.items[itemId];if(item.data.group==id){group.add(item)}}}group.order();group.show()}else{group.setData(groupData)}});this.body.emitter.emit(\"_change\",{queue:true})};ItemSet.prototype._onRemoveGroups=function(ids){var groups=this.groups;ids.forEach(function(id){var group=groups[id];if(group){group.hide();delete groups[id]}});this.markDirty();this.body.emitter.emit(\"_change\",{queue:true})};ItemSet.prototype._orderGroups=function(){if(this.groupsData){var groupIds=this.groupsData.getIds({order:this.options.groupOrder});groupIds=this._orderNestedGroups(groupIds);var changed=!util.equalArray(groupIds,this.groupIds);if(changed){var groups=this.groups;groupIds.forEach(function(groupId){groups[groupId].hide()});groupIds.forEach(function(groupId){groups[groupId].show()});this.groupIds=groupIds}return changed}else{return false}};ItemSet.prototype._orderNestedGroups=function(groupIds){var newGroupIdsOrder=[];groupIds.forEach(function(groupId){var groupData=this.groupsData.get(groupId);if(!groupData.nestedInGroup){newGroupIdsOrder.push(groupId)}if(groupData.nestedGroups){var nestedGroups=this.groupsData.get({filter:function filter(nestedGroup){return nestedGroup.nestedInGroup==groupId},order:this.options.groupOrder});var nestedGroupIds=nestedGroups.map(function(nestedGroup){return nestedGroup.id});newGroupIdsOrder=newGroupIdsOrder.concat(nestedGroupIds)}},this);return newGroupIdsOrder};ItemSet.prototype._addItem=function(item){this.items[item.id]=item;var groupId=this._getGroupId(item.data);var group=this.groups[groupId];if(!group){item.groupShowing=false}else if(group&&group.data&&group.data.showNested){item.groupShowing=true}if(group)group.add(item)};ItemSet.prototype._updateItem=function(item,itemData){item.setData(itemData);var groupId=this._getGroupId(item.data);var group=this.groups[groupId];if(!group){item.groupShowing=false}else if(group&&group.data&&group.data.showNested){item.groupShowing=true}};ItemSet.prototype._removeItem=function(item){item.hide();delete this.items[item.id];var index=this.selection.indexOf(item.id);if(index!=-1)this.selection.splice(index,1);item.parent&&item.parent.remove(item)};ItemSet.prototype._constructByEndArray=function(array){var endArray=[];for(var i=0;i<array.length;i++){if(array[i]instanceof RangeItem){endArray.push(array[i])}}return endArray};ItemSet.prototype._onTouch=function(event){this.touchParams.item=this.itemFromTarget(event);this.touchParams.dragLeftItem=event.target.dragLeftItem||false;this.touchParams.dragRightItem=event.target.dragRightItem||false;this.touchParams.itemProps=null};ItemSet.prototype._getGroupIndex=function(groupId){for(var i=0;i<this.groupIds.length;i++){if(groupId==this.groupIds[i])return i}};ItemSet.prototype._onDragStart=function(event){if(this.touchParams.itemIsDragging){return}var item=this.touchParams.item||null;var me=this;var props;if(item&&(item.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup){return}if(item.editable!=null&&!item.editable.updateTime&&!item.editable.updateGroup&&!this.options.editable.overrideItems){return}var dragLeftItem=this.touchParams.dragLeftItem;var dragRightItem=this.touchParams.dragRightItem;this.touchParams.itemIsDragging=true;this.touchParams.selectedItem=item;if(dragLeftItem){props={item:dragLeftItem,initialX:event.center.x,dragLeft:true,data:this._cloneItemData(item.data)};this.touchParams.itemProps=[props]}else if(dragRightItem){props={item:dragRightItem,initialX:event.center.x,dragRight:true,data:this._cloneItemData(item.data)};this.touchParams.itemProps=[props]}else if(this.options.editable.add&&(event.srcEvent.ctrlKey||event.srcEvent.metaKey)){this._onDragStartAddItem(event)}else{if(this.groupIds.length<1){this.redraw()}var baseGroupIndex=this._getGroupIndex(item.data.group);var itemsToDrag=this.options.itemsAlwaysDraggable.item&&!item.selected?[item.id]:this.getSelection();this.touchParams.itemProps=itemsToDrag.map(function(id){var item=me.items[id];var groupIndex=me._getGroupIndex(item.data.group);return{item:item,initialX:event.center.x,groupOffset:baseGroupIndex-groupIndex,data:this._cloneItemData(item.data)}}.bind(this))}event.stopPropagation()}else if(this.options.editable.add&&(event.srcEvent.ctrlKey||event.srcEvent.metaKey)){this._onDragStartAddItem(event)}};ItemSet.prototype._onDragStartAddItem=function(event){var xAbs;var x;var snap=this.options.snap||null;if(this.options.rtl){xAbs=util.getAbsoluteRight(this.dom.frame);x=xAbs-event.center.x+10}else{xAbs=util.getAbsoluteLeft(this.dom.frame);x=event.center.x-xAbs-10}var time=this.body.util.toTime(x);var scale=this.body.util.getScale();var step=this.body.util.getStep();var start=snap?snap(time,scale,step):time;var end=start;var itemData={type:\"range\",start:start,end:end,content:\"new item\"};var id=util.randomUUID();itemData[this.itemsData._fieldId]=id;var group=this.groupFromTarget(event);if(group){itemData.group=group.groupId}var newItem=new RangeItem(itemData,this.conversion,this.options);newItem.id=id;newItem.data=this._cloneItemData(itemData);this._addItem(newItem);this.touchParams.selectedItem=newItem;var props={item:newItem,initialX:event.center.x,data:newItem.data};if(this.options.rtl){props.dragLeft=true}else{props.dragRight=true}this.touchParams.itemProps=[props];event.stopPropagation()};ItemSet.prototype._onDrag=function(event){if(this.touchParams.itemProps){event.stopPropagation();var me=this;var snap=this.options.snap||null;var xOffset;if(this.options.rtl){xOffset=this.body.dom.root.offsetLeft+this.body.domProps.right.width}else{xOffset=this.body.dom.root.offsetLeft+this.body.domProps.left.width}var scale=this.body.util.getScale();var step=this.body.util.getStep();var selectedItem=this.touchParams.selectedItem;var updateGroupAllowed=(this.options.editable.overrideItems||selectedItem.editable==null)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&selectedItem.editable!=null&&selectedItem.editable.updateGroup;var newGroupBase=null;if(updateGroupAllowed&&selectedItem){if(selectedItem.data.group!=undefined){var group=me.groupFromTarget(event);if(group){newGroupBase=this._getGroupIndex(group.groupId)}}}this.touchParams.itemProps.forEach(function(props){var current=me.body.util.toTime(event.center.x-xOffset);var initial=me.body.util.toTime(props.initialX-xOffset);var offset;var initialStart;var initialEnd;var start;var end;if(this.options.rtl){offset=-(current-initial)}else{offset=current-initial}var itemData=this._cloneItemData(props.item.data);if(props.item.editable!=null&&!props.item.editable.updateTime&&!props.item.editable.updateGroup&&!me.options.editable.overrideItems){return}var updateTimeAllowed=(this.options.editable.overrideItems||selectedItem.editable==null)&&this.options.editable.updateTime||!this.options.editable.overrideItems&&selectedItem.editable!=null&&selectedItem.editable.updateTime;if(updateTimeAllowed){if(props.dragLeft){if(this.options.rtl){if(itemData.end!=undefined){initialEnd=util.convert(props.data.end,\"Date\");end=new Date(initialEnd.valueOf()+offset);itemData.end=snap?snap(end,scale,step):end}}else{if(itemData.start!=undefined){initialStart=util.convert(props.data.start,\"Date\");start=new Date(initialStart.valueOf()+offset);itemData.start=snap?snap(start,scale,step):start}}}else if(props.dragRight){if(this.options.rtl){if(itemData.start!=undefined){initialStart=util.convert(props.data.start,\"Date\");start=new Date(initialStart.valueOf()+offset);itemData.start=snap?snap(start,scale,step):start}}else{if(itemData.end!=undefined){initialEnd=util.convert(props.data.end,\"Date\");end=new Date(initialEnd.valueOf()+offset);itemData.end=snap?snap(end,scale,step):end}}}else{if(itemData.start!=undefined){initialStart=util.convert(props.data.start,\"Date\").valueOf();start=new Date(initialStart+offset);if(itemData.end!=undefined){initialEnd=util.convert(props.data.end,\"Date\");var duration=initialEnd.valueOf()-initialStart.valueOf();itemData.start=snap?snap(start,scale,step):start;itemData.end=new Date(itemData.start.valueOf()+duration)}else{itemData.start=snap?snap(start,scale,step):start}}}}if(updateGroupAllowed&&!props.dragLeft&&!props.dragRight&&newGroupBase!=null){if(itemData.group!=undefined){var newOffset=newGroupBase-props.groupOffset;newOffset=Math.max(0,newOffset);newOffset=Math.min(me.groupIds.length-1,newOffset);itemData.group=me.groupIds[newOffset]}}itemData=this._cloneItemData(itemData);me.options.onMoving(itemData,function(itemData){if(itemData){props.item.setData(this._cloneItemData(itemData,\"Date\"))}}.bind(this))}.bind(this));this.body.emitter.emit(\"_change\")}};ItemSet.prototype._moveToGroup=function(item,groupId){var group=this.groups[groupId];if(group&&group.groupId!=item.data.group){var oldGroup=item.parent;oldGroup.remove(item);oldGroup.order();item.data.group=group.groupId;group.add(item);group.order()}};ItemSet.prototype._onDragEnd=function(event){this.touchParams.itemIsDragging=false;if(this.touchParams.itemProps){event.stopPropagation();var me=this;var dataset=this.itemsData.getDataSet();var itemProps=this.touchParams.itemProps;this.touchParams.itemProps=null;itemProps.forEach(function(props){var id=props.item.id;var exists=me.itemsData.get(id,me.itemOptions)!=null;if(!exists){me.options.onAdd(props.item.data,function(itemData){me._removeItem(props.item);if(itemData){me.itemsData.getDataSet().add(itemData)}me.body.emitter.emit(\"_change\")})}else{var itemData=this._cloneItemData(props.item.data);me.options.onMove(itemData,function(itemData){if(itemData){itemData[dataset._fieldId]=id;dataset.update(itemData)}else{props.item.setData(props.data);me.body.emitter.emit(\"_change\")}})}}.bind(this))}};ItemSet.prototype._onGroupClick=function(event){var group=this.groupFromTarget(event);if(!group||!group.nestedGroups)return;var groupsData=this.groupsData.getDataSet();var nestingGroup=groupsData.get(group.groupId);if(nestingGroup.showNested==undefined){nestingGroup.showNested=true}nestingGroup.showNested=!nestingGroup.showNested;var nestedGroups=groupsData.get(group.nestedGroups).map(function(nestedGroup){nestedGroup.visible=nestingGroup.showNested;return nestedGroup});groupsData.update(nestedGroups.concat(nestingGroup));if(nestingGroup.showNested){util.removeClassName(group.dom.label,\"collapsed\");util.addClassName(group.dom.label,\"expanded\")}else{util.removeClassName(group.dom.label,\"expanded\");var collapsedDirClassName=this.options.rtl?\"collapsed-rtl\":\"collapsed\";util.addClassName(group.dom.label,collapsedDirClassName)}};ItemSet.prototype._onGroupDragStart=function(event){if(this.options.groupEditable.order){this.groupTouchParams.group=this.groupFromTarget(event);if(this.groupTouchParams.group){event.stopPropagation();this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})}}};ItemSet.prototype._onGroupDrag=function(event){if(this.options.groupEditable.order&&this.groupTouchParams.group){event.stopPropagation();var groupsData=this.groupsData;if(this.groupsData instanceof DataView){groupsData=this.groupsData.getDataSet()}var group=this.groupFromTarget(event);if(group&&group.height!=this.groupTouchParams.group.height){var movingUp=group.top<this.groupTouchParams.group.top;var clientY=event.center?event.center.y:event.clientY;var targetGroupTop=util.getAbsoluteTop(group.dom.foreground);var draggedGroupHeight=this.groupTouchParams.group.height;if(movingUp){if(targetGroupTop+draggedGroupHeight<clientY){return}}else{var targetGroupHeight=group.height;if(targetGroupTop+targetGroupHeight-draggedGroupHeight>clientY){return}}}if(group&&group!=this.groupTouchParams.group){var targetGroup=groupsData.get(group.groupId);var draggedGroup=groupsData.get(this.groupTouchParams.group.groupId);if(draggedGroup&&targetGroup){this.options.groupOrderSwap(draggedGroup,targetGroup,groupsData);groupsData.update(draggedGroup);groupsData.update(targetGroup)}var newOrder=groupsData.getIds({order:this.options.groupOrder});if(!util.equalArray(newOrder,this.groupTouchParams.originalOrder)){var origOrder=this.groupTouchParams.originalOrder;var draggedId=this.groupTouchParams.group.groupId;var numGroups=Math.min(origOrder.length,newOrder.length);var curPos=0;var newOffset=0;var orgOffset=0;while(curPos<numGroups){while(curPos+newOffset<numGroups&&curPos+orgOffset<numGroups&&newOrder[curPos+newOffset]==origOrder[curPos+orgOffset]){curPos++}if(curPos+newOffset>=numGroups){break}if(newOrder[curPos+newOffset]==draggedId){newOffset=1}else if(origOrder[curPos+orgOffset]==draggedId){orgOffset=1}else{var slippedPosition=newOrder.indexOf(origOrder[curPos+orgOffset]);var switchGroup=groupsData.get(newOrder[curPos+newOffset]);var shouldBeGroup=groupsData.get(origOrder[curPos+orgOffset]);this.options.groupOrderSwap(switchGroup,shouldBeGroup,groupsData);groupsData.update(switchGroup);groupsData.update(shouldBeGroup);var switchGroupId=newOrder[curPos+newOffset];newOrder[curPos+newOffset]=origOrder[curPos+orgOffset];newOrder[slippedPosition]=switchGroupId;curPos++}}}}}};ItemSet.prototype._onGroupDragEnd=function(event){if(this.options.groupEditable.order&&this.groupTouchParams.group){event.stopPropagation();var me=this;var id=me.groupTouchParams.group.groupId;var dataset=me.groupsData.getDataSet();var groupData=util.extend({},dataset.get(id));me.options.onMoveGroup(groupData,function(groupData){if(groupData){groupData[dataset._fieldId]=id;dataset.update(groupData)}else{var newOrder=dataset.getIds({order:me.options.groupOrder});if(!util.equalArray(newOrder,me.groupTouchParams.originalOrder)){var origOrder=me.groupTouchParams.originalOrder;var numGroups=Math.min(origOrder.length,newOrder.length);var curPos=0;while(curPos<numGroups){while(curPos<numGroups&&newOrder[curPos]==origOrder[curPos]){curPos++}if(curPos>=numGroups){break}var slippedPosition=newOrder.indexOf(origOrder[curPos]);var switchGroup=dataset.get(newOrder[curPos]);var shouldBeGroup=dataset.get(origOrder[curPos]);me.options.groupOrderSwap(switchGroup,shouldBeGroup,dataset);dataset.update(switchGroup);dataset.update(shouldBeGroup);var switchGroupId=newOrder[curPos];newOrder[curPos]=origOrder[curPos];newOrder[slippedPosition]=switchGroupId;curPos++}}}});me.body.emitter.emit(\"groupDragged\",{groupId:id})}};ItemSet.prototype._onSelectItem=function(event){if(!this.options.selectable)return;var ctrlKey=event.srcEvent&&(event.srcEvent.ctrlKey||event.srcEvent.metaKey);var shiftKey=event.srcEvent&&event.srcEvent.shiftKey;if(ctrlKey||shiftKey){this._onMultiSelectItem(event);return}var oldSelection=this.getSelection();var item=this.itemFromTarget(event);var selection=item?[item.id]:[];this.setSelection(selection);var newSelection=this.getSelection();if(newSelection.length>0||oldSelection.length>0){this.body.emitter.emit(\"select\",{items:newSelection,event:event})}};ItemSet.prototype._onMouseOver=function(event){var item=this.itemFromTarget(event);if(!item)return;var related=this.itemFromRelatedTarget(event);if(item===related){return}var title=item.getTitle();if(this.options.showTooltips&&title){if(this.popup==null){this.popup=new Popup(this.body.dom.root,this.options.tooltip.overflowMethod||\"flip\")}this.popup.setText(title);var container=this.body.dom.centerContainer;this.popup.setPosition(event.clientX-util.getAbsoluteLeft(container)+container.offsetLeft,event.clientY-util.getAbsoluteTop(container)+container.offsetTop);this.popup.show()}else{if(this.popup!=null){this.popup.hide()}}this.body.emitter.emit(\"itemover\",{item:item.id,event:event})};ItemSet.prototype._onMouseOut=function(event){var item=this.itemFromTarget(event);if(!item)return;var related=this.itemFromRelatedTarget(event);if(item===related){return}if(this.popup!=null){this.popup.hide()}this.body.emitter.emit(\"itemout\",{item:item.id,event:event})};ItemSet.prototype._onMouseMove=function(event){var item=this.itemFromTarget(event);if(!item)return;if(this.options.showTooltips&&this.options.tooltip.followMouse){if(this.popup){if(!this.popup.hidden){var container=this.body.dom.centerContainer;this.popup.setPosition(event.clientX-util.getAbsoluteLeft(container)+container.offsetLeft,event.clientY-util.getAbsoluteTop(container)+container.offsetTop);this.popup.show()}}}};ItemSet.prototype._onMouseWheel=function(event){if(this.touchParams.itemIsDragging){this._onDragEnd(event)}};ItemSet.prototype._onUpdateItem=function(item){if(!this.options.selectable)return;if(!this.options.editable.add)return;var me=this;if(item){var itemData=me.itemsData.get(item.id);this.options.onUpdate(itemData,function(itemData){if(itemData){me.itemsData.getDataSet().update(itemData)}})}};ItemSet.prototype._onDropObjectOnItem=function(event){var item=this.itemFromTarget(event);var objectData=JSON.parse(event.dataTransfer.getData(\"text\"));this.options.onDropObjectOnItem(objectData,item)};ItemSet.prototype._onAddItem=function(event){if(!this.options.selectable)return;if(!this.options.editable.add)return;var me=this;var snap=this.options.snap||null;var xAbs;var x;if(this.options.rtl){xAbs=util.getAbsoluteRight(this.dom.frame);x=xAbs-event.center.x}else{xAbs=util.getAbsoluteLeft(this.dom.frame);x=event.center.x-xAbs}var start=this.body.util.toTime(x);var scale=this.body.util.getScale();var step=this.body.util.getStep();var end;var newItemData;if(event.type==\"drop\"){newItemData=JSON.parse(event.dataTransfer.getData(\"text\"));newItemData.content=newItemData.content?newItemData.content:\"new item\";newItemData.start=newItemData.start?newItemData.start:snap?snap(start,scale,step):start;newItemData.type=newItemData.type||\"box\";newItemData[this.itemsData._fieldId]=newItemData.id||util.randomUUID();if(newItemData.type==\"range\"&&!newItemData.end){end=this.body.util.toTime(x+this.props.width/5);newItemData.end=snap?snap(end,scale,step):end}}else{newItemData={start:snap?snap(start,scale,step):start,content:\"new item\"};newItemData[this.itemsData._fieldId]=util.randomUUID();if(this.options.type===\"range\"){\nend=this.body.util.toTime(x+this.props.width/5);newItemData.end=snap?snap(end,scale,step):end}}var group=this.groupFromTarget(event);if(group){newItemData.group=group.groupId}newItemData=this._cloneItemData(newItemData);this.options.onAdd(newItemData,function(item){if(item){me.itemsData.getDataSet().add(item);if(event.type==\"drop\"){me.setSelection([item.id])}}})};ItemSet.prototype._onMultiSelectItem=function(event){if(!this.options.selectable)return;var item=this.itemFromTarget(event);if(item){var selection=this.options.multiselect?this.getSelection():[];var shiftKey=event.srcEvent&&event.srcEvent.shiftKey||false;if(shiftKey&&this.options.multiselect){var itemGroup=this.itemsData.get(item.id).group;var lastSelectedGroup=undefined;if(this.options.multiselectPerGroup){if(selection.length>0){lastSelectedGroup=this.itemsData.get(selection[0]).group}}if(!this.options.multiselectPerGroup||lastSelectedGroup==undefined||lastSelectedGroup==itemGroup){selection.push(item.id)}var range=ItemSet._getItemRange(this.itemsData.get(selection,this.itemOptions));if(!this.options.multiselectPerGroup||lastSelectedGroup==itemGroup){selection=[];for(var id in this.items){if(this.items.hasOwnProperty(id)){var _item=this.items[id];var start=_item.data.start;var end=_item.data.end!==undefined?_item.data.end:start;if(start>=range.min&&end<=range.max&&(!this.options.multiselectPerGroup||lastSelectedGroup==this.itemsData.get(_item.id).group)&&!(_item instanceof BackgroundItem)){selection.push(_item.id)}}}}}else{var index=selection.indexOf(item.id);if(index==-1){selection.push(item.id)}else{selection.splice(index,1)}}this.setSelection(selection);this.body.emitter.emit(\"select\",{items:this.getSelection(),event:event})}};ItemSet._getItemRange=function(itemsData){var max=null;var min=null;itemsData.forEach(function(data){if(min==null||data.start<min){min=data.start}if(data.end!=undefined){if(max==null||data.end>max){max=data.end}}else{if(max==null||data.start>max){max=data.start}}});return{min:min,max:max}};ItemSet.prototype.itemFromElement=function(element){var cur=element;while(cur){if(cur.hasOwnProperty(\"timeline-item\")){return cur[\"timeline-item\"]}cur=cur.parentNode}return null};ItemSet.prototype.itemFromTarget=function(event){return this.itemFromElement(event.target)};ItemSet.prototype.itemFromRelatedTarget=function(event){return this.itemFromElement(event.relatedTarget)};ItemSet.prototype.groupFromTarget=function(event){var clientY=event.center?event.center.y:event.clientY;var groupIds=this.groupIds;if(groupIds.length<=0&&this.groupsData){groupIds=this.groupsData.getIds({order:this.options.groupOrder})}for(var i=0;i<groupIds.length;i++){var groupId=groupIds[i];var group=this.groups[groupId];var foreground=group.dom.foreground;var top=util.getAbsoluteTop(foreground);if(clientY>top&&clientY<top+foreground.offsetHeight){return group}if(this.options.orientation.item===\"top\"){if(i===this.groupIds.length-1&&clientY>top){return group}}else{if(i===0&&clientY<top+foreground.offset){return group}}}return null};ItemSet.itemSetFromTarget=function(event){var target=event.target;while(target){if(target.hasOwnProperty(\"timeline-itemset\")){return target[\"timeline-itemset\"]}target=target.parentNode}return null};ItemSet.prototype._cloneItemData=function(itemData,type){var clone=util.extend({},itemData);if(!type){type=this.itemsData.getDataSet()._options.type}if(clone.start!=undefined){clone.start=util.convert(clone.start,type&&type.start||\"Date\")}if(clone.end!=undefined){clone.end=util.convert(clone.end,type&&type.end||\"Date\")}return clone};module.exports=ItemSet},function(module,exports,__webpack_require__){\"use strict\";var EPSILON=.001;exports.orderByStart=function(items){items.sort(function(a,b){return a.data.start-b.data.start})};exports.orderByEnd=function(items){items.sort(function(a,b){var aTime=\"end\"in a.data?a.data.end:a.data.start,bTime=\"end\"in b.data?b.data.end:b.data.start;return aTime-bTime})};exports.stack=function(items,margin,force){if(force){for(var i=0;i<items.length;i++){items[i].top=null}}for(var i=0;i<items.length;i++){var item=items[i];if(item.stack&&item.top===null){item.top=margin.axis;do{var collidingItem=null;for(var j=0,jj=items.length;j<jj;j++){var other=items[j];if(other.top!==null&&other!==item&&other.stack&&exports.collision(item,other,margin.item,other.options.rtl)){collidingItem=other;break}}if(collidingItem!=null){item.top=collidingItem.top+collidingItem.height+margin.item.vertical}}while(collidingItem)}}};exports.substack=function(items,margin,subgroup){for(var i=0;i<items.length;i++){items[i].top=null}var subgroupHeight=subgroup.height;for(i=0;i<items.length;i++){var item=items[i];if(item.stack&&item.top===null){item.top=item.baseTop;do{var collidingItem=null;for(var j=0,jj=items.length;j<jj;j++){var other=items[j];if(other.top!==null&&other!==item&&exports.collision(item,other,margin.item,other.options.rtl)){collidingItem=other;break}}if(collidingItem!=null){item.top=collidingItem.top+collidingItem.height+margin.item.vertical}if(item.top+item.height>subgroupHeight){subgroupHeight=item.top+item.height}}while(collidingItem)}}subgroup.height=subgroupHeight-subgroup.top+.5*margin.item.vertical};exports.nostack=function(items,margin,subgroups,stackSubgroups){for(var i=0;i<items.length;i++){if(items[i].data.subgroup==undefined){items[i].top=margin.item.vertical}else if(items[i].data.subgroup!==undefined&&stackSubgroups){var newTop=0;for(var subgroup in subgroups){if(subgroups.hasOwnProperty(subgroup)){if(subgroups[subgroup].visible==true&&subgroups[subgroup].index<subgroups[items[i].data.subgroup].index){newTop+=subgroups[subgroup].height;subgroups[items[i].data.subgroup].top=newTop}}}items[i].top=newTop+.5*margin.item.vertical}}if(!stackSubgroups){exports.stackSubgroups(items,margin,subgroups)}};exports.stackSubgroups=function(items,margin,subgroups){for(var subgroup in subgroups){if(subgroups.hasOwnProperty(subgroup)){subgroups[subgroup].top=0;do{var collidingItem=null;for(var otherSubgroup in subgroups){if(subgroups[otherSubgroup].top!==null&&otherSubgroup!==subgroup&&subgroups[subgroup].index>subgroups[otherSubgroup].index&&exports.collisionByTimes(subgroups[subgroup],subgroups[otherSubgroup])){collidingItem=subgroups[otherSubgroup];break}}if(collidingItem!=null){subgroups[subgroup].top=collidingItem.top+collidingItem.height}}while(collidingItem)}}for(var i=0;i<items.length;i++){if(items[i].data.subgroup!==undefined){items[i].top=subgroups[items[i].data.subgroup].top+.5*margin.item.vertical}}};exports.stackSubgroupsWithInnerStack=function(subgroupItems,margin,subgroups){var doSubStack=false;var subgroupOrder=[];for(var subgroup in subgroups){if(subgroups[subgroup].hasOwnProperty(\"index\")){subgroupOrder[subgroups[subgroup].index]=subgroup}else{subgroupOrder.push(subgroup)}}for(var j=0;j<subgroupOrder.length;j++){subgroup=subgroupOrder[j];if(subgroups.hasOwnProperty(subgroup)){doSubStack=doSubStack||subgroups[subgroup].stack;subgroups[subgroup].top=0;for(var otherSubgroup in subgroups){if(subgroups[otherSubgroup].visible&&subgroups[subgroup].index>subgroups[otherSubgroup].index){subgroups[subgroup].top+=subgroups[otherSubgroup].height}}var items=subgroupItems[subgroup];for(var i=0;i<items.length;i++){if(items[i].data.subgroup!==undefined){items[i].top=subgroups[items[i].data.subgroup].top+.5*margin.item.vertical;if(subgroups[subgroup].stack){items[i].baseTop=items[i].top}}}if(doSubStack&&subgroups[subgroup].stack){exports.substack(subgroupItems[subgroup],margin,subgroups[subgroup])}}}};exports.collision=function(a,b,margin,rtl){if(rtl){return a.right-margin.horizontal+EPSILON<b.right+b.width&&a.right+a.width+margin.horizontal-EPSILON>b.right&&a.top-margin.vertical+EPSILON<b.top+b.height&&a.top+a.height+margin.vertical-EPSILON>b.top}else{return a.left-margin.horizontal+EPSILON<b.left+b.width&&a.left+a.width+margin.horizontal-EPSILON>b.left&&a.top-margin.vertical+EPSILON<b.top+b.height&&a.top+a.height+margin.vertical-EPSILON>b.top}};exports.collisionByTimes=function(a,b){return a.start<=b.start&&a.end>=b.start&&a.top<b.top+b.height&&a.top+a.height>b.top||b.start<=a.start&&b.end>=a.start&&b.top<a.top+a.height&&b.top+b.height>a.top}},function(module,exports,__webpack_require__){\"use strict\";var Item=__webpack_require__(38);function BoxItem(data,conversion,options){this.props={dot:{width:0,height:0},line:{width:0,height:0}};this.options=options;if(data){if(data.start==undefined){throw new Error('Property \"start\" missing in item '+data)}}Item.call(this,data,conversion,options)}BoxItem.prototype=new Item(null,null,null);BoxItem.prototype.isVisible=function(range){var isVisible;var align=this.options.align;var widthInMs=this.width*range.getMillisecondsPerPixel();if(align==\"right\"){isVisible=this.data.start.getTime()>range.start&&this.data.start.getTime()-widthInMs<range.end}else if(align==\"left\"){isVisible=this.data.start.getTime()+widthInMs>range.start&&this.data.start.getTime()<range.end}else{isVisible=this.data.start.getTime()+widthInMs/2>range.start&&this.data.start.getTime()-widthInMs/2<range.end}return isVisible};BoxItem.prototype._createDomElement=function(){if(!this.dom){this.dom={};this.dom.box=document.createElement(\"DIV\");this.dom.content=document.createElement(\"DIV\");this.dom.content.className=\"vis-item-content\";this.dom.box.appendChild(this.dom.content);this.dom.line=document.createElement(\"DIV\");this.dom.line.className=\"vis-line\";this.dom.dot=document.createElement(\"DIV\");this.dom.dot.className=\"vis-dot\";this.dom.box[\"timeline-item\"]=this;this.dirty=true}};BoxItem.prototype._appendDomElement=function(){if(!this.parent){throw new Error(\"Cannot redraw item: no parent attached\")}if(!this.dom.box.parentNode){var foreground=this.parent.dom.foreground;if(!foreground)throw new Error(\"Cannot redraw item: parent has no foreground container element\");foreground.appendChild(this.dom.box)}if(!this.dom.line.parentNode){var background=this.parent.dom.background;if(!background)throw new Error(\"Cannot redraw item: parent has no background container element\");background.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var axis=this.parent.dom.axis;if(!background)throw new Error(\"Cannot redraw item: parent has no axis container element\");axis.appendChild(this.dom.dot)}this.displayed=true};BoxItem.prototype._updateDirtyDomComponents=function(){if(this.dirty){this._updateContents(this.dom.content);this._updateDataAttributes(this.dom.box);this._updateStyle(this.dom.box);var editable=this.editable.updateTime||this.editable.updateGroup;var className=(this.data.className?\" \"+this.data.className:\"\")+(this.selected?\" vis-selected\":\"\")+(editable?\" vis-editable\":\" vis-readonly\");this.dom.box.className=\"vis-item vis-box\"+className;this.dom.line.className=\"vis-item vis-line\"+className;this.dom.dot.className=\"vis-item vis-dot\"+className}};BoxItem.prototype._getDomComponentsSizes=function(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},dot:{height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},line:{width:this.dom.line.offsetWidth},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}}};BoxItem.prototype._updateDomComponentsSizes=function(sizes){if(this.options.rtl){this.dom.box.style.right=\"0px\"}else{this.dom.box.style.left=\"0px\"}this.props.dot.height=sizes.dot.height;this.props.dot.width=sizes.dot.width;this.props.line.width=sizes.line.width;this.width=sizes.box.width;this.height=sizes.box.height;if(this.options.rtl){this.dom.box.style.right=sizes.previous.right}else{this.dom.box.style.left=sizes.previous.left}this.dirty=false};BoxItem.prototype._repaintDomAdditionals=function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box);this._repaintDragCenter();this._repaintDeleteButton(this.dom.box)};BoxItem.prototype.redraw=function(returnQueue){var sizes;var queue=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){if(this.dirty){sizes=this._getDomComponentsSizes()}}.bind(this),function(){if(this.dirty){this._updateDomComponentsSizes.bind(this)(sizes)}}.bind(this),this._repaintDomAdditionals.bind(this)];if(returnQueue){return queue}else{var result;queue.forEach(function(fn){result=fn()});return result}};BoxItem.prototype.show=function(){if(!this.displayed){this.redraw()}};BoxItem.prototype.hide=function(){if(this.displayed){var dom=this.dom;if(dom.box.parentNode)dom.box.parentNode.removeChild(dom.box);if(dom.line.parentNode)dom.line.parentNode.removeChild(dom.line);if(dom.dot.parentNode)dom.dot.parentNode.removeChild(dom.dot);this.displayed=false}};BoxItem.prototype.repositionX=function(){var start=this.conversion.toScreen(this.data.start);var align=this.options.align;if(align==\"right\"){if(this.options.rtl){this.right=start-this.width;this.dom.box.style.right=this.right+\"px\";this.dom.line.style.right=start-this.props.line.width+\"px\";this.dom.dot.style.right=start-this.props.line.width/2-this.props.dot.width/2+\"px\"}else{this.left=start-this.width;this.dom.box.style.left=this.left+\"px\";this.dom.line.style.left=start-this.props.line.width+\"px\";this.dom.dot.style.left=start-this.props.line.width/2-this.props.dot.width/2+\"px\"}}else if(align==\"left\"){if(this.options.rtl){this.right=start;this.dom.box.style.right=this.right+\"px\";this.dom.line.style.right=start+\"px\";this.dom.dot.style.right=start+this.props.line.width/2-this.props.dot.width/2+\"px\"}else{this.left=start;this.dom.box.style.left=this.left+\"px\";this.dom.line.style.left=start+\"px\";this.dom.dot.style.left=start+this.props.line.width/2-this.props.dot.width/2+\"px\"}}else{if(this.options.rtl){this.right=start-this.width/2;this.dom.box.style.right=this.right+\"px\";this.dom.line.style.right=start-this.props.line.width+\"px\";this.dom.dot.style.right=start-this.props.dot.width/2+\"px\"}else{this.left=start-this.width/2;this.dom.box.style.left=this.left+\"px\";this.dom.line.style.left=start-this.props.line.width/2+\"px\";this.dom.dot.style.left=start-this.props.dot.width/2+\"px\"}}};BoxItem.prototype.repositionY=function(){var orientation=this.options.orientation.item;var box=this.dom.box;var line=this.dom.line;var dot=this.dom.dot;if(orientation==\"top\"){box.style.top=(this.top||0)+\"px\";line.style.top=\"0\";line.style.height=this.parent.top+this.top+1+\"px\";line.style.bottom=\"\"}else{var itemSetHeight=this.parent.itemSet.props.height;var lineHeight=itemSetHeight-this.parent.top-this.parent.height+this.top;box.style.top=(this.parent.height-this.top-this.height||0)+\"px\";line.style.top=itemSetHeight-lineHeight+\"px\";line.style.bottom=\"0\"}dot.style.top=-this.props.dot.height/2+\"px\"};BoxItem.prototype.getWidthLeft=function(){return this.width/2};BoxItem.prototype.getWidthRight=function(){return this.width/2};module.exports=BoxItem},function(module,exports,__webpack_require__){\"use strict\";var Item=__webpack_require__(38);function PointItem(data,conversion,options){this.props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}};this.options=options;if(data){if(data.start==undefined){throw new Error('Property \"start\" missing in item '+data)}}Item.call(this,data,conversion,options)}PointItem.prototype=new Item(null,null,null);PointItem.prototype.isVisible=function(range){var widthInMs=this.width*range.getMillisecondsPerPixel();return this.data.start.getTime()+widthInMs>range.start&&this.data.start<range.end};PointItem.prototype._createDomElement=function(){if(!this.dom){this.dom={};this.dom.point=document.createElement(\"div\");this.dom.content=document.createElement(\"div\");this.dom.content.className=\"vis-item-content\";this.dom.point.appendChild(this.dom.content);this.dom.dot=document.createElement(\"div\");this.dom.point.appendChild(this.dom.dot);this.dom.point[\"timeline-item\"]=this;this.dirty=true}};PointItem.prototype._appendDomElement=function(){if(!this.parent){throw new Error(\"Cannot redraw item: no parent attached\")}if(!this.dom.point.parentNode){var foreground=this.parent.dom.foreground;if(!foreground){throw new Error(\"Cannot redraw item: parent has no foreground container element\")}foreground.appendChild(this.dom.point)}this.displayed=true};PointItem.prototype._updateDirtyDomComponents=function(){if(this.dirty){this._updateContents(this.dom.content);this._updateDataAttributes(this.dom.point);this._updateStyle(this.dom.point);var editable=this.editable.updateTime||this.editable.updateGroup;var className=(this.data.className?\" \"+this.data.className:\"\")+(this.selected?\" vis-selected\":\"\")+(editable?\" vis-editable\":\" vis-readonly\");this.dom.point.className=\"vis-item vis-point\"+className;this.dom.dot.className=\"vis-item vis-dot\"+className}};PointItem.prototype._getDomComponentsSizes=function(){return{dot:{width:this.dom.dot.offsetWidth,height:this.dom.dot.offsetHeight},content:{width:this.dom.content.offsetWidth,height:this.dom.content.offsetHeight},point:{width:this.dom.point.offsetWidth,height:this.dom.point.offsetHeight}}};PointItem.prototype._updateDomComponentsSizes=function(sizes){this.props.dot.width=sizes.dot.width;this.props.dot.height=sizes.dot.height;this.props.content.height=sizes.content.height;if(this.options.rtl){this.dom.content.style.marginRight=2*this.props.dot.width+\"px\"}else{this.dom.content.style.marginLeft=2*this.props.dot.width+\"px\"}this.width=sizes.point.width;this.height=sizes.point.height;this.dom.dot.style.top=(this.height-this.props.dot.height)/2+\"px\";if(this.options.rtl){this.dom.dot.style.right=this.props.dot.width/2+\"px\"}else{this.dom.dot.style.left=this.props.dot.width/2+\"px\"}this.dirty=false};PointItem.prototype._repaintDomAdditionals=function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point);this._repaintDragCenter();this._repaintDeleteButton(this.dom.point)};PointItem.prototype.redraw=function(returnQueue){var sizes;var queue=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){if(this.dirty){sizes=this._getDomComponentsSizes()}}.bind(this),function(){if(this.dirty){this._updateDomComponentsSizes.bind(this)(sizes)}}.bind(this),this._repaintDomAdditionals.bind(this)];if(returnQueue){return queue}else{var result;queue.forEach(function(fn){result=fn()});return result}};PointItem.prototype.show=function(){if(!this.displayed){this.redraw()}};PointItem.prototype.hide=function(){if(this.displayed){if(this.dom.point.parentNode){this.dom.point.parentNode.removeChild(this.dom.point)}this.displayed=false}};PointItem.prototype.repositionX=function(){var start=this.conversion.toScreen(this.data.start);if(this.options.rtl){this.right=start-this.props.dot.width;this.dom.point.style.right=this.right+\"px\"}else{this.left=start-this.props.dot.width;this.dom.point.style.left=this.left+\"px\"}};PointItem.prototype.repositionY=function(){var orientation=this.options.orientation.item;var point=this.dom.point;if(orientation==\"top\"){point.style.top=this.top+\"px\"}else{point.style.top=this.parent.height-this.top-this.height+\"px\"}};PointItem.prototype.getWidthLeft=function(){return this.props.dot.width};PointItem.prototype.getWidthRight=function(){return this.props.dot.width};module.exports=PointItem},function(module,exports,__webpack_require__){\"use strict\";var Item=__webpack_require__(38);var BackgroundGroup=__webpack_require__(69);var RangeItem=__webpack_require__(70);function BackgroundItem(data,conversion,options){this.props={content:{width:0}};this.overflow=false;if(data){if(data.start==undefined){throw new Error('Property \"start\" missing in item '+data.id)}if(data.end==undefined){throw new Error('Property \"end\" missing in item '+data.id)}}Item.call(this,data,conversion,options)}BackgroundItem.prototype=new Item(null,null,null);BackgroundItem.prototype.baseClassName=\"vis-item vis-background\";BackgroundItem.prototype.stack=false;BackgroundItem.prototype.isVisible=function(range){return this.data.start<range.end&&this.data.end>range.start};BackgroundItem.prototype._createDomElement=function(){if(!this.dom){this.dom={};this.dom.box=document.createElement(\"div\");this.dom.frame=document.createElement(\"div\");this.dom.frame.className=\"vis-item-overflow\";this.dom.box.appendChild(this.dom.frame);this.dom.content=document.createElement(\"div\");this.dom.content.className=\"vis-item-content\";this.dom.frame.appendChild(this.dom.content);this.dirty=true}};BackgroundItem.prototype._appendDomElement=function(){if(!this.parent){throw new Error(\"Cannot redraw item: no parent attached\")}if(!this.dom.box.parentNode){var background=this.parent.dom.background;if(!background){throw new Error(\"Cannot redraw item: parent has no background container element\")}background.appendChild(this.dom.box)}this.displayed=true};BackgroundItem.prototype._updateDirtyDomComponents=function(){if(this.dirty){this._updateContents(this.dom.content);this._updateDataAttributes(this.dom.content);this._updateStyle(this.dom.box);var className=(this.data.className?\" \"+this.data.className:\"\")+(this.selected?\" vis-selected\":\"\");this.dom.box.className=this.baseClassName+className}};BackgroundItem.prototype._getDomComponentsSizes=function(){this.overflow=window.getComputedStyle(this.dom.content).overflow!==\"hidden\";return{content:{width:this.dom.content.offsetWidth}}};BackgroundItem.prototype._updateDomComponentsSizes=function(sizes){this.props.content.width=sizes.content.width;this.height=0;this.dirty=false};BackgroundItem.prototype._repaintDomAdditionals=function(){};BackgroundItem.prototype.redraw=function(returnQueue){var sizes;var queue=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){if(this.dirty){sizes=this._getDomComponentsSizes.bind(this)()}}.bind(this),function(){if(this.dirty){this._updateDomComponentsSizes.bind(this)(sizes)}}.bind(this),this._repaintDomAdditionals.bind(this)];if(returnQueue){return queue}else{var result;queue.forEach(function(fn){result=fn()});return result}};BackgroundItem.prototype.show=RangeItem.prototype.show;BackgroundItem.prototype.hide=RangeItem.prototype.hide;BackgroundItem.prototype.repositionX=RangeItem.prototype.repositionX;BackgroundItem.prototype.repositionY=function(margin){var height;var orientation=this.options.orientation.item;if(this.data.subgroup!==undefined){var itemSubgroup=this.data.subgroup;this.dom.box.style.height=this.parent.subgroups[itemSubgroup].height+\"px\";if(orientation==\"top\"){this.dom.box.style.top=this.parent.top+this.parent.subgroups[itemSubgroup].top+\"px\"}else{this.dom.box.style.top=this.parent.top+this.parent.height-this.parent.subgroups[itemSubgroup].top-this.parent.subgroups[itemSubgroup].height+\"px\"}this.dom.box.style.bottom=\"\"}else{if(this.parent instanceof BackgroundGroup){height=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height);this.dom.box.style.bottom=orientation==\"bottom\"?\"0\":\"\";this.dom.box.style.top=orientation==\"top\"?\"0\":\"\"}else{height=this.parent.height;this.dom.box.style.top=this.parent.top+\"px\";this.dom.box.style.bottom=\"\"}}this.dom.box.style.height=height+\"px\"};module.exports=BackgroundItem},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Popup=function(){function Popup(container,overflowMethod){(0,_classCallCheck3[\"default\"])(this,Popup);this.container=container;this.overflowMethod=overflowMethod||\"cap\";this.x=0;this.y=0;this.padding=5;this.hidden=false;this.frame=document.createElement(\"div\");this.frame.className=\"vis-tooltip\";this.container.appendChild(this.frame)}(0,_createClass3[\"default\"])(Popup,[{key:\"setPosition\",value:function setPosition(x,y){this.x=parseInt(x);this.y=parseInt(y)}},{key:\"setText\",value:function setText(content){if(content instanceof Element){this.frame.innerHTML=\"\";this.frame.appendChild(content)}else{this.frame.innerHTML=content}}},{key:\"show\",value:function show(doShow){if(doShow===undefined){doShow=true}if(doShow===true){var height=this.frame.clientHeight;var width=this.frame.clientWidth;var maxHeight=this.frame.parentNode.clientHeight;var maxWidth=this.frame.parentNode.clientWidth;var left=0,top=0;if(this.overflowMethod==\"flip\"){var isLeft=false,isTop=true;if(this.y-height<this.padding){isTop=false}if(this.x+width>maxWidth-this.padding){isLeft=true}if(isLeft){left=this.x-width}else{left=this.x}if(isTop){top=this.y-height}else{top=this.y}}else{top=this.y-height;if(top+height+this.padding>maxHeight){top=maxHeight-height-this.padding}if(top<this.padding){top=this.padding}left=this.x;if(left+width+this.padding>maxWidth){left=maxWidth-width-this.padding}if(left<this.padding){left=this.padding}}this.frame.style.left=left+\"px\";this.frame.style.top=top+\"px\";this.frame.style.visibility=\"visible\";this.hidden=false}else{this.hide()}}},{key:\"hide\",value:function hide(){this.hidden=true;this.frame.style.left=\"0\";this.frame.style.top=\"0\";this.frame.style.visibility=\"hidden\"}},{key:\"destroy\",value:function destroy(){this.frame.parentNode.removeChild(this.frame)}}]);return Popup}();exports[\"default\"]=Popup},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var string=\"string\";var bool=\"boolean\";var number=\"number\";var array=\"array\";var date=\"date\";var object=\"object\";var dom=\"dom\";var moment=\"moment\";var any=\"any\";var allOptions={configure:{enabled:{boolean:bool},filter:{boolean:bool,function:\"function\"},container:{dom:dom},__type__:{object:object,boolean:bool,function:\"function\"}},align:{string:string},rtl:{boolean:bool,undefined:\"undefined\"},rollingMode:{follow:{boolean:bool},offset:{number:number,undefined:\"undefined\"},__type__:{object:object}},verticalScroll:{boolean:bool,undefined:\"undefined\"},horizontalScroll:{boolean:bool,undefined:\"undefined\"},autoResize:{boolean:bool},throttleRedraw:{number:number},clickToUse:{boolean:bool},dataAttributes:{string:string,array:array},editable:{add:{boolean:bool,undefined:\"undefined\"},remove:{boolean:bool,undefined:\"undefined\"},updateGroup:{boolean:bool,undefined:\"undefined\"},updateTime:{boolean:bool,undefined:\"undefined\"},overrideItems:{boolean:bool,undefined:\"undefined\"},__type__:{boolean:bool,object:object}},end:{number:number,date:date,string:string,moment:moment},format:{minorLabels:{millisecond:{string:string,undefined:\"undefined\"},second:{string:string,undefined:\"undefined\"},minute:{string:string,undefined:\"undefined\"},hour:{string:string,undefined:\"undefined\"},weekday:{string:string,undefined:\"undefined\"},day:{string:string,undefined:\"undefined\"},week:{string:string,undefined:\"undefined\"},month:{string:string,undefined:\"undefined\"},year:{string:string,undefined:\"undefined\"},__type__:{object:object,function:\"function\"}},majorLabels:{millisecond:{string:string,undefined:\"undefined\"},second:{string:string,undefined:\"undefined\"},minute:{string:string,undefined:\"undefined\"},hour:{string:string,undefined:\"undefined\"},weekday:{string:string,undefined:\"undefined\"},day:{string:string,undefined:\"undefined\"},week:{string:string,undefined:\"undefined\"},month:{string:string,undefined:\"undefined\"},year:{string:string,undefined:\"undefined\"},__type__:{object:object,function:\"function\"}},__type__:{object:object}},moment:{function:\"function\"},groupOrder:{string:string,function:\"function\"},groupEditable:{add:{boolean:bool,undefined:\"undefined\"},remove:{boolean:bool,undefined:\"undefined\"},order:{boolean:bool,undefined:\"undefined\"},__type__:{boolean:bool,object:object}},groupOrderSwap:{function:\"function\"},height:{string:string,number:number},hiddenDates:{start:{date:date,number:number,string:string,moment:moment},end:{date:date,number:number,string:string,moment:moment},repeat:{string:string},__type__:{object:object,array:array}},itemsAlwaysDraggable:{item:{boolean:bool,undefined:\"undefined\"},range:{boolean:bool,undefined:\"undefined\"},__type__:{boolean:bool,object:object}},limitSize:{boolean:bool},locale:{string:string},locales:{__any__:{any:any},__type__:{object:object}},margin:{axis:{number:number},item:{horizontal:{number:number,undefined:\"undefined\"},vertical:{number:number,undefined:\"undefined\"},__type__:{object:object,number:number}},__type__:{object:object,number:number}},max:{date:date,number:number,string:string,moment:moment},maxHeight:{number:number,string:string},maxMinorChars:{number:number},min:{date:date,number:number,string:string,moment:moment},minHeight:{number:number,string:string},moveable:{boolean:bool},multiselect:{boolean:bool},multiselectPerGroup:{boolean:bool},onAdd:{function:\"function\"},onDropObjectOnItem:{function:\"function\"},onUpdate:{function:\"function\"},onMove:{function:\"function\"},onMoving:{function:\"function\"},onRemove:{function:\"function\"},onAddGroup:{function:\"function\"},onMoveGroup:{function:\"function\"},onRemoveGroup:{function:\"function\"},onInitialDrawComplete:{function:\"function\"},order:{function:\"function\"},orientation:{axis:{string:string,undefined:\"undefined\"},item:{string:string,undefined:\"undefined\"},__type__:{string:string,object:object}},selectable:{boolean:bool},showCurrentTime:{boolean:bool},showMajorLabels:{boolean:bool},showMinorLabels:{boolean:bool},stack:{boolean:bool},stackSubgroups:{boolean:bool},snap:{function:\"function\",null:\"null\"},start:{date:date,number:number,string:string,moment:moment},template:{function:\"function\"},groupTemplate:{function:\"function\"},visibleFrameTemplate:{string:string,function:\"function\"},showTooltips:{boolean:bool},tooltip:{followMouse:{boolean:bool},overflowMethod:{string:[\"cap\",\"flip\"]},__type__:{object:object}},tooltipOnItemUpdateTime:{template:{function:\"function\"},__type__:{boolean:bool,object:object}},timeAxis:{scale:{string:string,undefined:\"undefined\"},step:{number:number,undefined:\"undefined\"},__type__:{object:object}},type:{string:string},width:{string:string,number:number},zoomable:{boolean:bool},zoomKey:{string:[\"ctrlKey\",\"altKey\",\"metaKey\",\"\"]},zoomMax:{number:number},zoomMin:{number:number},__type__:{object:object}};var configureOptions={global:{align:[\"center\",\"left\",\"right\"],direction:false,autoResize:true,clickToUse:false,editable:{add:false,remove:false,updateGroup:false,updateTime:false},end:\"\",format:{minorLabels:{millisecond:\"SSS\",second:\"s\",minute:\"HH:mm\",hour:\"HH:mm\",weekday:\"ddd D\",day:\"D\",week:\"w\",month:\"MMM\",year:\"YYYY\"},majorLabels:{millisecond:\"HH:mm:ss\",second:\"D MMMM HH:mm\",minute:\"ddd D MMMM\",hour:\"ddd D MMMM\",weekday:\"MMMM YYYY\",day:\"MMMM YYYY\",week:\"MMMM YYYY\",month:\"YYYY\",year:\"\"}},groupsDraggable:false,height:\"\",locale:\"\",margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:\"\",maxHeight:\"\",maxMinorChars:[7,0,20,1],min:\"\",minHeight:\"\",moveable:false,multiselect:false,multiselectPerGroup:false,orientation:{axis:[\"both\",\"bottom\",\"top\"],item:[\"bottom\",\"top\"]},selectable:true,showCurrentTime:false,showMajorLabels:true,showMinorLabels:true,stack:true,stackSubgroups:true,start:\"\",showTooltips:true,tooltip:{followMouse:false,overflowMethod:\"flip\"},tooltipOnItemUpdateTime:false,type:[\"box\",\"point\",\"range\",\"background\"],width:\"100%\",zoomable:true,zoomKey:[\"ctrlKey\",\"altKey\",\"metaKey\",\"\"],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1]}};exports.allOptions=allOptions;exports.configureOptions=configureOptions},function(module,exports,__webpack_require__){\"use strict\";var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var DOMutil=__webpack_require__(14);var DataSet=__webpack_require__(11);var DataView=__webpack_require__(12);var Component=__webpack_require__(16);var DataAxis=__webpack_require__(107);var GraphGroup=__webpack_require__(109);var Legend=__webpack_require__(112);var Bars=__webpack_require__(110)\n;var Lines=__webpack_require__(111);var Points=__webpack_require__(72);var UNGROUPED=\"__ungrouped__\";function LineGraph(body,options){this.id=util.randomUUID();this.body=body;this.defaultOptions={yAxisOrientation:\"left\",defaultGroup:\"default\",sort:true,sampling:true,stack:false,graphHeight:\"400px\",shaded:{enabled:false,orientation:\"bottom\"},style:\"line\",barChart:{width:50,sideBySide:false,align:\"center\"},interpolation:{enabled:true,parametrization:\"centripetal\",alpha:.5},drawPoints:{enabled:true,size:6,style:\"square\"},dataAxis:{},legend:{},groups:{visibility:{}}};this.options=util.extend({},this.defaultOptions);this.dom={};this.props={};this.hammer=null;this.groups={};this.abortedGraphUpdate=false;this.updateSVGheight=false;this.updateSVGheightOnResize=false;this.forceGraphUpdate=true;var me=this;this.itemsData=null;this.groupsData=null;this.itemListeners={add:function add(event,params,senderId){me._onAdd(params.items)},update:function update(event,params,senderId){me._onUpdate(params.items)},remove:function remove(event,params,senderId){me._onRemove(params.items)}};this.groupListeners={add:function add(event,params,senderId){me._onAddGroups(params.items)},update:function update(event,params,senderId){me._onUpdateGroups(params.items)},remove:function remove(event,params,senderId){me._onRemoveGroups(params.items)}};this.items={};this.selection=[];this.lastStart=this.body.range.start;this.touchParams={};this.svgElements={};this.setOptions(options);this.groupsUsingDefaultStyles=[0];this.body.emitter.on(\"rangechanged\",function(){me.lastStart=me.body.range.start;me.svg.style.left=util.option.asSize(-me.props.width);me.forceGraphUpdate=true;me.redraw.call(me)});this._create();this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}LineGraph.prototype=new Component;LineGraph.prototype._create=function(){var frame=document.createElement(\"div\");frame.className=\"vis-line-graph\";this.dom.frame=frame;this.svg=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");this.svg.style.position=\"relative\";this.svg.style.height=(\"\"+this.options.graphHeight).replace(\"px\",\"\")+\"px\";this.svg.style.display=\"block\";frame.appendChild(this.svg);this.options.dataAxis.orientation=\"left\";this.yAxisLeft=new DataAxis(this.body,this.options.dataAxis,this.svg,this.options.groups);this.options.dataAxis.orientation=\"right\";this.yAxisRight=new DataAxis(this.body,this.options.dataAxis,this.svg,this.options.groups);delete this.options.dataAxis.orientation;this.legendLeft=new Legend(this.body,this.options.legend,\"left\",this.options.groups);this.legendRight=new Legend(this.body,this.options.legend,\"right\",this.options.groups);this.show()};LineGraph.prototype.setOptions=function(options){if(options){var fields=[\"sampling\",\"defaultGroup\",\"stack\",\"height\",\"graphHeight\",\"yAxisOrientation\",\"style\",\"barChart\",\"dataAxis\",\"sort\",\"groups\"];if(options.graphHeight===undefined&&options.height!==undefined){this.updateSVGheight=true;this.updateSVGheightOnResize=true}else if(this.body.domProps.centerContainer.height!==undefined&&options.graphHeight!==undefined){if(parseInt((options.graphHeight+\"\").replace(\"px\",\"\"))<this.body.domProps.centerContainer.height){this.updateSVGheight=true}}util.selectiveDeepExtend(fields,this.options,options);util.mergeOptions(this.options,options,\"interpolation\");util.mergeOptions(this.options,options,\"drawPoints\");util.mergeOptions(this.options,options,\"shaded\");util.mergeOptions(this.options,options,\"legend\");if(options.interpolation){if((0,_typeof3[\"default\"])(options.interpolation)==\"object\"){if(options.interpolation.parametrization){if(options.interpolation.parametrization==\"uniform\"){this.options.interpolation.alpha=0}else if(options.interpolation.parametrization==\"chordal\"){this.options.interpolation.alpha=1}else{this.options.interpolation.parametrization=\"centripetal\";this.options.interpolation.alpha=.5}}}}if(this.yAxisLeft){if(options.dataAxis!==undefined){this.yAxisLeft.setOptions(this.options.dataAxis);this.yAxisRight.setOptions(this.options.dataAxis)}}if(this.legendLeft){if(options.legend!==undefined){this.legendLeft.setOptions(this.options.legend);this.legendRight.setOptions(this.options.legend)}}if(this.groups.hasOwnProperty(UNGROUPED)){this.groups[UNGROUPED].setOptions(options)}}if(this.dom.frame){this.forceGraphUpdate=true;this.body.emitter.emit(\"_change\",{queue:true})}};LineGraph.prototype.hide=function(){if(this.dom.frame.parentNode){this.dom.frame.parentNode.removeChild(this.dom.frame)}};LineGraph.prototype.show=function(){if(!this.dom.frame.parentNode){this.body.dom.center.appendChild(this.dom.frame)}};LineGraph.prototype.setItems=function(items){var me=this,ids,oldItemsData=this.itemsData;if(!items){this.itemsData=null}else if(items instanceof DataSet||items instanceof DataView){this.itemsData=items}else{throw new TypeError(\"Data must be an instance of DataSet or DataView\")}if(oldItemsData){util.forEach(this.itemListeners,function(callback,event){oldItemsData.off(event,callback)});ids=oldItemsData.getIds();this._onRemove(ids)}if(this.itemsData){var id=this.id;util.forEach(this.itemListeners,function(callback,event){me.itemsData.on(event,callback,id)});ids=this.itemsData.getIds();this._onAdd(ids)}};LineGraph.prototype.setGroups=function(groups){var me=this;var ids;if(this.groupsData){util.forEach(this.groupListeners,function(callback,event){me.groupsData.off(event,callback)});ids=this.groupsData.getIds();this.groupsData=null;for(var i=0;i<ids.length;i++){this._removeGroup(ids[i])}}if(!groups){this.groupsData=null}else if(groups instanceof DataSet||groups instanceof DataView){this.groupsData=groups}else{throw new TypeError(\"Data must be an instance of DataSet or DataView\")}if(this.groupsData){var id=this.id;util.forEach(this.groupListeners,function(callback,event){me.groupsData.on(event,callback,id)});ids=this.groupsData.getIds();this._onAddGroups(ids)}};LineGraph.prototype._onUpdate=function(ids){this._updateAllGroupData(ids)};LineGraph.prototype._onAdd=function(ids){this._onUpdate(ids)};LineGraph.prototype._onRemove=function(ids){this._onUpdate(ids)};LineGraph.prototype._onUpdateGroups=function(groupIds){this._updateAllGroupData(null,groupIds)};LineGraph.prototype._onAddGroups=function(groupIds){this._onUpdateGroups(groupIds)};LineGraph.prototype._onRemoveGroups=function(groupIds){for(var i=0;i<groupIds.length;i++){this._removeGroup(groupIds[i])}this.forceGraphUpdate=true;this.body.emitter.emit(\"_change\",{queue:true})};LineGraph.prototype._removeGroup=function(groupId){if(this.groups.hasOwnProperty(groupId)){if(this.groups[groupId].options.yAxisOrientation==\"right\"){this.yAxisRight.removeGroup(groupId);this.legendRight.removeGroup(groupId);this.legendRight.redraw()}else{this.yAxisLeft.removeGroup(groupId);this.legendLeft.removeGroup(groupId);this.legendLeft.redraw()}delete this.groups[groupId]}};LineGraph.prototype._updateGroup=function(group,groupId){if(!this.groups.hasOwnProperty(groupId)){this.groups[groupId]=new GraphGroup(group,groupId,this.options,this.groupsUsingDefaultStyles);if(this.groups[groupId].options.yAxisOrientation==\"right\"){this.yAxisRight.addGroup(groupId,this.groups[groupId]);this.legendRight.addGroup(groupId,this.groups[groupId])}else{this.yAxisLeft.addGroup(groupId,this.groups[groupId]);this.legendLeft.addGroup(groupId,this.groups[groupId])}}else{this.groups[groupId].update(group);if(this.groups[groupId].options.yAxisOrientation==\"right\"){this.yAxisRight.updateGroup(groupId,this.groups[groupId]);this.legendRight.updateGroup(groupId,this.groups[groupId]);this.yAxisLeft.removeGroup(groupId);this.legendLeft.removeGroup(groupId)}else{this.yAxisLeft.updateGroup(groupId,this.groups[groupId]);this.legendLeft.updateGroup(groupId,this.groups[groupId]);this.yAxisRight.removeGroup(groupId);this.legendRight.removeGroup(groupId)}}this.legendLeft.redraw();this.legendRight.redraw()};LineGraph.prototype._updateAllGroupData=function(ids,groupIds){if(this.itemsData!=null){var groupsContent={};var items=this.itemsData.get();var fieldId=this.itemsData._fieldId;var idMap={};if(ids){ids.map(function(id){idMap[id]=id})}var groupCounts={};for(var i=0;i<items.length;i++){var item=items[i];var groupId=item.group;if(groupId===null||groupId===undefined){groupId=UNGROUPED}groupCounts.hasOwnProperty(groupId)?groupCounts[groupId]++:groupCounts[groupId]=1}var existingItemsMap={};if(!groupIds&&ids){for(groupId in this.groups){if(this.groups.hasOwnProperty(groupId)){group=this.groups[groupId];var existing_items=group.getItems();groupsContent[groupId]=existing_items.filter(function(item){existingItemsMap[item[fieldId]]=item[fieldId];return item[fieldId]!==idMap[item[fieldId]]});var newLength=groupCounts[groupId];groupCounts[groupId]-=groupsContent[groupId].length;if(groupsContent[groupId].length<newLength){groupsContent[groupId][newLength-1]={}}}}}for(i=0;i<items.length;i++){item=items[i];groupId=item.group;if(groupId===null||groupId===undefined){groupId=UNGROUPED}if(!groupIds&&ids&&item[fieldId]!==idMap[item[fieldId]]&&existingItemsMap.hasOwnProperty(item[fieldId])){continue}if(!groupsContent.hasOwnProperty(groupId)){groupsContent[groupId]=new Array(groupCounts[groupId])}var extended=util.bridgeObject(item);extended.x=util.convert(item.x,\"Date\");extended.end=util.convert(item.end,\"Date\");extended.orginalY=item.y;extended.y=Number(item.y);extended[fieldId]=item[fieldId];var index=groupsContent[groupId].length-groupCounts[groupId]--;groupsContent[groupId][index]=extended}for(groupId in this.groups){if(this.groups.hasOwnProperty(groupId)){if(!groupsContent.hasOwnProperty(groupId)){groupsContent[groupId]=new Array(0)}}}for(groupId in groupsContent){if(groupsContent.hasOwnProperty(groupId)){if(groupsContent[groupId].length==0){if(this.groups.hasOwnProperty(groupId)){this._removeGroup(groupId)}}else{var group=undefined;if(this.groupsData!=undefined){group=this.groupsData.get(groupId)}if(group==undefined){group={id:groupId,content:this.options.defaultGroup+groupId}}this._updateGroup(group,groupId);this.groups[groupId].setItems(groupsContent[groupId])}}}this.forceGraphUpdate=true;this.body.emitter.emit(\"_change\",{queue:true})}};LineGraph.prototype.redraw=function(){var resized=false;this.props.width=this.dom.frame.offsetWidth;this.props.height=this.body.domProps.centerContainer.height-this.body.domProps.border.top-this.body.domProps.border.bottom;resized=this._isResized()||resized;var visibleInterval=this.body.range.end-this.body.range.start;var zoomed=visibleInterval!=this.lastVisibleInterval;this.lastVisibleInterval=visibleInterval;if(resized==true){this.svg.style.width=util.option.asSize(3*this.props.width);this.svg.style.left=util.option.asSize(-this.props.width);if((this.options.height+\"\").indexOf(\"%\")!=-1||this.updateSVGheightOnResize==true){this.updateSVGheight=true}}if(this.updateSVGheight==true){if(this.options.graphHeight!=this.props.height+\"px\"){this.options.graphHeight=this.props.height+\"px\";this.svg.style.height=this.props.height+\"px\"}this.updateSVGheight=false}else{this.svg.style.height=(\"\"+this.options.graphHeight).replace(\"px\",\"\")+\"px\"}if(resized==true||zoomed==true||this.abortedGraphUpdate==true||this.forceGraphUpdate==true){resized=this._updateGraph()||resized;this.forceGraphUpdate=false}else{if(this.lastStart!=0){var offset=this.body.range.start-this.lastStart;var range=this.body.range.end-this.body.range.start;if(this.props.width!=0){var rangePerPixelInv=this.props.width/range;var xOffset=offset*rangePerPixelInv;this.svg.style.left=-this.props.width-xOffset+\"px\"}}}this.legendLeft.redraw();this.legendRight.redraw();return resized};LineGraph.prototype._getSortedGroupIds=function(){var grouplist=[];for(var groupId in this.groups){if(this.groups.hasOwnProperty(groupId)){var group=this.groups[groupId];if(group.visible==true&&(this.options.groups.visibility[groupId]===undefined||this.options.groups.visibility[groupId]==true)){grouplist.push({id:groupId,zIndex:group.options.zIndex})}}}util.insertSort(grouplist,function(a,b){var az=a.zIndex;var bz=b.zIndex;if(az===undefined)az=0;if(bz===undefined)bz=0;return az==bz?0:az<bz?-1:1});var groupIds=new Array(grouplist.length);for(var i=0;i<grouplist.length;i++){groupIds[i]=grouplist[i].id}return groupIds};LineGraph.prototype._updateGraph=function(){DOMutil.prepareElements(this.svgElements);if(this.props.width!=0&&this.itemsData!=null){var group,i;var groupRanges={};var changeCalled=false;var minDate=this.body.util.toGlobalTime(-this.body.domProps.root.width);var maxDate=this.body.util.toGlobalTime(2*this.body.domProps.root.width);var groupIds=this._getSortedGroupIds();if(groupIds.length>0){var groupsData={};this._getRelevantData(groupIds,groupsData,minDate,maxDate);this._applySampling(groupIds,groupsData);for(i=0;i<groupIds.length;i++){this._convertXcoordinates(groupsData[groupIds[i]])}this._getYRanges(groupIds,groupsData,groupRanges);changeCalled=this._updateYAxis(groupIds,groupRanges);if(changeCalled==true){DOMutil.cleanupElements(this.svgElements);this.abortedGraphUpdate=true;return true}this.abortedGraphUpdate=false;var below=undefined;for(i=0;i<groupIds.length;i++){group=this.groups[groupIds[i]];if(this.options.stack===true&&this.options.style===\"line\"){if(group.options.excludeFromStacking==undefined||!group.options.excludeFromStacking){if(below!=undefined){this._stack(groupsData[group.id],groupsData[below.id]);if(group.options.shaded.enabled==true&&group.options.shaded.orientation!==\"group\"){if(group.options.shaded.orientation==\"top\"&&below.options.shaded.orientation!==\"group\"){below.options.shaded.orientation=\"group\";below.options.shaded.groupId=group.id}else{group.options.shaded.orientation=\"group\";group.options.shaded.groupId=below.id}}}below=group}}this._convertYcoordinates(groupsData[groupIds[i]],group)}var paths={};for(i=0;i<groupIds.length;i++){group=this.groups[groupIds[i]];if(group.options.style===\"line\"&&group.options.shaded.enabled==true){var dataset=groupsData[groupIds[i]];if(dataset==null||dataset.length==0){continue}if(!paths.hasOwnProperty(groupIds[i])){paths[groupIds[i]]=Lines.calcPath(dataset,group)}if(group.options.shaded.orientation===\"group\"){var subGroupId=group.options.shaded.groupId;if(groupIds.indexOf(subGroupId)===-1){console.log(group.id+\": Unknown shading group target given:\"+subGroupId);continue}if(!paths.hasOwnProperty(subGroupId)){paths[subGroupId]=Lines.calcPath(groupsData[subGroupId],this.groups[subGroupId])}Lines.drawShading(paths[groupIds[i]],group,paths[subGroupId],this.framework)}else{Lines.drawShading(paths[groupIds[i]],group,undefined,this.framework)}}}Bars.draw(groupIds,groupsData,this.framework);for(i=0;i<groupIds.length;i++){group=this.groups[groupIds[i]];if(groupsData[groupIds[i]].length>0){switch(group.options.style){case\"line\":if(!paths.hasOwnProperty(groupIds[i])){paths[groupIds[i]]=Lines.calcPath(groupsData[groupIds[i]],group)}Lines.draw(paths[groupIds[i]],group,this.framework);case\"point\":case\"points\":if(group.options.style==\"point\"||group.options.style==\"points\"||group.options.drawPoints.enabled==true){Points.draw(groupsData[groupIds[i]],group,this.framework)}break;case\"bar\":default:}}}}}DOMutil.cleanupElements(this.svgElements);return false};LineGraph.prototype._stack=function(data,subData){var index,dx,dy,subPrevPoint,subNextPoint;index=0;for(var j=0;j<data.length;j++){subPrevPoint=undefined;subNextPoint=undefined;for(var k=index;k<subData.length;k++){if(subData[k].x===data[j].x){subPrevPoint=subData[k];subNextPoint=subData[k];index=k;break}else if(subData[k].x>data[j].x){subNextPoint=subData[k];if(k==0){subPrevPoint=subNextPoint}else{subPrevPoint=subData[k-1]}index=k;break}}if(subNextPoint===undefined){subPrevPoint=subData[subData.length-1];subNextPoint=subData[subData.length-1]}dx=subNextPoint.x-subPrevPoint.x;dy=subNextPoint.y-subPrevPoint.y;if(dx==0){data[j].y=data[j].orginalY+subNextPoint.y}else{data[j].y=data[j].orginalY+dy/dx*(data[j].x-subPrevPoint.x)+subPrevPoint.y}}};LineGraph.prototype._getRelevantData=function(groupIds,groupsData,minDate,maxDate){var group,i,j,item;if(groupIds.length>0){for(i=0;i<groupIds.length;i++){group=this.groups[groupIds[i]];var itemsData=group.getItems();if(group.options.sort==true){var dateComparator=function dateComparator(a,b){return a.getTime()==b.getTime()?0:a<b?-1:1};var first=Math.max(0,util.binarySearchValue(itemsData,minDate,\"x\",\"before\",dateComparator));var last=Math.min(itemsData.length,util.binarySearchValue(itemsData,maxDate,\"x\",\"after\",dateComparator)+1);if(last<=0){last=itemsData.length}var dataContainer=new Array(last-first);for(j=first;j<last;j++){item=group.itemsData[j];dataContainer[j-first]=item}groupsData[groupIds[i]]=dataContainer}else{groupsData[groupIds[i]]=group.itemsData}}}};LineGraph.prototype._applySampling=function(groupIds,groupsData){var group;if(groupIds.length>0){for(var i=0;i<groupIds.length;i++){group=this.groups[groupIds[i]];if(group.options.sampling==true){var dataContainer=groupsData[groupIds[i]];if(dataContainer.length>0){var increment=1;var amountOfPoints=dataContainer.length;var xDistance=this.body.util.toGlobalScreen(dataContainer[dataContainer.length-1].x)-this.body.util.toGlobalScreen(dataContainer[0].x);var pointsPerPixel=amountOfPoints/xDistance;increment=Math.min(Math.ceil(.2*amountOfPoints),Math.max(1,Math.round(pointsPerPixel)));var sampledData=new Array(amountOfPoints);for(var j=0;j<amountOfPoints;j+=increment){var idx=Math.round(j/increment);sampledData[idx]=dataContainer[j]}groupsData[groupIds[i]]=sampledData.splice(0,Math.round(amountOfPoints/increment))}}}}};LineGraph.prototype._getYRanges=function(groupIds,groupsData,groupRanges){var groupData,group,i;var combinedDataLeft=[];var combinedDataRight=[];var options;if(groupIds.length>0){for(i=0;i<groupIds.length;i++){groupData=groupsData[groupIds[i]];options=this.groups[groupIds[i]].options;if(groupData.length>0){group=this.groups[groupIds[i]];if(options.stack===true&&options.style===\"bar\"){if(options.yAxisOrientation===\"left\"){combinedDataLeft=combinedDataLeft.concat(groupData)}else{combinedDataRight=combinedDataRight.concat(groupData)}}else{groupRanges[groupIds[i]]=group.getYRange(groupData,groupIds[i])}}}Bars.getStackedYRange(combinedDataLeft,groupRanges,groupIds,\"__barStackLeft\",\"left\");Bars.getStackedYRange(combinedDataRight,groupRanges,groupIds,\"__barStackRight\",\"right\")}};LineGraph.prototype._updateYAxis=function(groupIds,groupRanges){var resized=false;var yAxisLeftUsed=false;var yAxisRightUsed=false;var minLeft=1e9,minRight=1e9,maxLeft=-1e9,maxRight=-1e9,minVal,maxVal;if(groupIds.length>0){for(var i=0;i<groupIds.length;i++){var group=this.groups[groupIds[i]];if(group&&group.options.yAxisOrientation!=\"right\"){yAxisLeftUsed=true;minLeft=1e9;maxLeft=-1e9}else if(group&&group.options.yAxisOrientation){yAxisRightUsed=true;minRight=1e9;maxRight=-1e9}}for(i=0;i<groupIds.length;i++){if(groupRanges.hasOwnProperty(groupIds[i])){if(groupRanges[groupIds[i]].ignore!==true){minVal=groupRanges[groupIds[i]].min;maxVal=groupRanges[groupIds[i]].max;if(groupRanges[groupIds[i]].yAxisOrientation!=\"right\"){yAxisLeftUsed=true;minLeft=minLeft>minVal?minVal:minLeft;maxLeft=maxLeft<maxVal?maxVal:maxLeft}else{yAxisRightUsed=true;minRight=minRight>minVal?minVal:minRight;maxRight=maxRight<maxVal?maxVal:maxRight}}}}if(yAxisLeftUsed==true){this.yAxisLeft.setRange(minLeft,maxLeft)}if(yAxisRightUsed==true){this.yAxisRight.setRange(minRight,maxRight)}}resized=this._toggleAxisVisiblity(yAxisLeftUsed,this.yAxisLeft)||resized;resized=this._toggleAxisVisiblity(yAxisRightUsed,this.yAxisRight)||resized;if(yAxisRightUsed==true&&yAxisLeftUsed==true){this.yAxisLeft.drawIcons=true;this.yAxisRight.drawIcons=true}else{this.yAxisLeft.drawIcons=false;this.yAxisRight.drawIcons=false}this.yAxisRight.master=!yAxisLeftUsed;this.yAxisRight.masterAxis=this.yAxisLeft;if(this.yAxisRight.master==false){if(yAxisRightUsed==true){this.yAxisLeft.lineOffset=this.yAxisRight.width}else{this.yAxisLeft.lineOffset=0}resized=this.yAxisLeft.redraw()||resized;resized=this.yAxisRight.redraw()||resized}else{resized=this.yAxisRight.redraw()||resized}var tempGroups=[\"__barStackLeft\",\"__barStackRight\",\"__lineStackLeft\",\"__lineStackRight\"];for(i=0;i<tempGroups.length;i++){if(groupIds.indexOf(tempGroups[i])!=-1){groupIds.splice(groupIds.indexOf(tempGroups[i]),1)}}return resized};LineGraph.prototype._toggleAxisVisiblity=function(axisUsed,axis){var changed=false;if(axisUsed==false){if(axis.dom.frame.parentNode&&axis.hidden==false){axis.hide();changed=true}}else{if(!axis.dom.frame.parentNode&&axis.hidden==true){axis.show();changed=true}}return changed};LineGraph.prototype._convertXcoordinates=function(datapoints){var toScreen=this.body.util.toScreen;for(var i=0;i<datapoints.length;i++){datapoints[i].screen_x=toScreen(datapoints[i].x)+this.props.width;datapoints[i].screen_y=datapoints[i].y;if(datapoints[i].end!=undefined){datapoints[i].screen_end=toScreen(datapoints[i].end)+this.props.width}else{datapoints[i].screen_end=undefined}}};LineGraph.prototype._convertYcoordinates=function(datapoints,group){var axis=this.yAxisLeft;var svgHeight=Number(this.svg.style.height.replace(\"px\",\"\"));if(group.options.yAxisOrientation==\"right\"){axis=this.yAxisRight}for(var i=0;i<datapoints.length;i++){datapoints[i].screen_y=Math.round(axis.convertValue(datapoints[i].y))}group.setZeroPosition(Math.min(svgHeight,axis.convertValue(0)))};module.exports=LineGraph},function(module,exports,__webpack_require__){\"use strict\";var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var DOMutil=__webpack_require__(14);var Component=__webpack_require__(16);var DataScale=__webpack_require__(108);function DataAxis(body,options,svg,linegraphOptions){this.id=util.randomUUID();this.body=body;this.defaultOptions={orientation:\"left\",showMinorLabels:true,showMajorLabels:true,icons:false,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:\"40px\",visible:true,alignZeros:true,left:{range:{min:undefined,max:undefined},format:function format(value){return\"\"+parseFloat(value.toPrecision(3))},title:{text:undefined,style:undefined}},right:{range:{min:undefined,max:undefined},format:function format(value){return\"\"+parseFloat(value.toPrecision(3))},title:{text:undefined,style:undefined}}};this.linegraphOptions=linegraphOptions;this.linegraphSVG=svg;this.props={};this.DOMelements={lines:{},labels:{},title:{}};this.dom={};this.scale=undefined;this.range={start:0,end:0};this.options=util.extend({},this.defaultOptions);this.conversionFactor=1;this.setOptions(options);this.width=Number((\"\"+this.options.width).replace(\"px\",\"\"));this.minWidth=this.width;this.height=this.linegraphSVG.getBoundingClientRect().height;this.hidden=false;this.stepPixels=25;this.zeroCrossing=-1;this.amountOfSteps=-1;this.lineOffset=0;this.master=true;this.masterAxis=null;this.svgElements={};this.iconsRemoved=false;this.groups={};this.amountOfGroups=0;this._create();this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups};var me=this;this.body.emitter.on(\"verticalDrag\",function(){me.dom.lineContainer.style.top=me.body.domProps.scrollTop+\"px\"})}DataAxis.prototype=new Component;DataAxis.prototype.addGroup=function(label,graphOptions){if(!this.groups.hasOwnProperty(label)){this.groups[label]=graphOptions}this.amountOfGroups+=1};DataAxis.prototype.updateGroup=function(label,graphOptions){if(!this.groups.hasOwnProperty(label)){this.amountOfGroups+=1}this.groups[label]=graphOptions};DataAxis.prototype.removeGroup=function(label){if(this.groups.hasOwnProperty(label)){delete this.groups[label];this.amountOfGroups-=1}};DataAxis.prototype.setOptions=function(options){if(options){var redraw=false;if(this.options.orientation!=options.orientation&&options.orientation!==undefined){redraw=true}var fields=[\"orientation\",\"showMinorLabels\",\"showMajorLabels\",\"icons\",\"majorLinesOffset\",\"minorLinesOffset\",\"labelOffsetX\",\"labelOffsetY\",\"iconWidth\",\"width\",\"visible\",\"left\",\"right\",\"alignZeros\"];util.selectiveDeepExtend(fields,this.options,options);this.minWidth=Number((\"\"+this.options.width).replace(\"px\",\"\"));if(redraw===true&&this.dom.frame){this.hide();this.show()}}};DataAxis.prototype._create=function(){this.dom.frame=document.createElement(\"div\");this.dom.frame.style.width=this.options.width;this.dom.frame.style.height=this.height;this.dom.lineContainer=document.createElement(\"div\");this.dom.lineContainer.style.width=\"100%\";this.dom.lineContainer.style.height=this.height;this.dom.lineContainer.style.position=\"relative\";this.svg=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");this.svg.style.position=\"absolute\";this.svg.style.top=\"0px\";this.svg.style.height=\"100%\";this.svg.style.width=\"100%\";this.svg.style.display=\"block\";this.dom.frame.appendChild(this.svg)};DataAxis.prototype._redrawGroupIcons=function(){DOMutil.prepareElements(this.svgElements);var x;var iconWidth=this.options.iconWidth;var iconHeight=15;var iconOffset=4;var y=iconOffset+.5*iconHeight;if(this.options.orientation===\"left\"){x=iconOffset}else{x=this.width-iconWidth-iconOffset}var groupArray=(0,_keys2[\"default\"])(this.groups);groupArray.sort(function(a,b){return a<b?-1:1});for(var i=0;i<groupArray.length;i++){var groupId=groupArray[i];if(this.groups[groupId].visible===true&&(this.linegraphOptions.visibility[groupId]===undefined||this.linegraphOptions.visibility[groupId]===true)){this.groups[groupId].getLegend(iconWidth,iconHeight,this.framework,x,y);y+=iconHeight+iconOffset}}DOMutil.cleanupElements(this.svgElements);this.iconsRemoved=false};DataAxis.prototype._cleanupIcons=function(){if(this.iconsRemoved===false){DOMutil.prepareElements(this.svgElements);DOMutil.cleanupElements(this.svgElements);this.iconsRemoved=true}};DataAxis.prototype.show=function(){this.hidden=false;if(!this.dom.frame.parentNode){if(this.options.orientation===\"left\"){this.body.dom.left.appendChild(this.dom.frame)}else{this.body.dom.right.appendChild(this.dom.frame)}}if(!this.dom.lineContainer.parentNode){this.body.dom.backgroundHorizontal.appendChild(this.dom.lineContainer)}};DataAxis.prototype.hide=function(){this.hidden=true;if(this.dom.frame.parentNode){this.dom.frame.parentNode.removeChild(this.dom.frame)}if(this.dom.lineContainer.parentNode){this.dom.lineContainer.parentNode.removeChild(this.dom.lineContainer)}};DataAxis.prototype.setRange=function(start,end){this.range.start=start;this.range.end=end};DataAxis.prototype.redraw=function(){var resized=false;var activeGroups=0;this.dom.lineContainer.style.top=this.body.domProps.scrollTop+\"px\";for(var groupId in this.groups){if(this.groups.hasOwnProperty(groupId)){if(this.groups[groupId].visible===true&&(this.linegraphOptions.visibility[groupId]===undefined||this.linegraphOptions.visibility[groupId]===true)){activeGroups++}}}if(this.amountOfGroups===0||activeGroups===0){this.hide()}else{this.show();this.height=Number(this.linegraphSVG.style.height.replace(\"px\",\"\"));this.dom.lineContainer.style.height=this.height+\"px\";this.width=this.options.visible===true?Number((\"\"+this.options.width).replace(\"px\",\"\")):0;var props=this.props;var frame=this.dom.frame;frame.className=\"vis-data-axis\";this._calculateCharSize();var orientation=this.options.orientation;var showMinorLabels=this.options.showMinorLabels;var showMajorLabels=this.options.showMajorLabels;props.minorLabelHeight=showMinorLabels?props.minorCharHeight:0;props.majorLabelHeight=showMajorLabels?props.majorCharHeight:0;props.minorLineWidth=this.body.dom.backgroundHorizontal.offsetWidth-this.lineOffset-this.width+2*this.options.minorLinesOffset;props.minorLineHeight=1;props.majorLineWidth=this.body.dom.backgroundHorizontal.offsetWidth-this.lineOffset-this.width+2*this.options.majorLinesOffset;props.majorLineHeight=1;if(orientation===\"left\"){frame.style.top=\"0\";frame.style.left=\"0\";frame.style.bottom=\"\";frame.style.width=this.width+\"px\";frame.style.height=this.height+\"px\";this.props.width=this.body.domProps.left.width;this.props.height=this.body.domProps.left.height}else{frame.style.top=\"\";frame.style.bottom=\"0\";frame.style.left=\"0\";frame.style.width=this.width+\"px\";frame.style.height=this.height+\"px\";this.props.width=this.body.domProps.right.width;this.props.height=this.body.domProps.right.height}resized=this._redrawLabels();resized=this._isResized()||resized;if(this.options.icons===true){this._redrawGroupIcons()}else{this._cleanupIcons()}this._redrawTitle(orientation)}return resized};DataAxis.prototype._redrawLabels=function(){var _this=this;var resized=false;DOMutil.prepareElements(this.DOMelements.lines);DOMutil.prepareElements(this.DOMelements.labels);var orientation=this.options[\"orientation\"];var customRange=this.options[orientation].range!=undefined?this.options[orientation].range:{};var autoScaleEnd=true;if(customRange.max!=undefined){this.range.end=customRange.max;autoScaleEnd=false}var autoScaleStart=true;if(customRange.min!=undefined){this.range.start=customRange.min;autoScaleStart=false}this.scale=new DataScale(this.range.start,this.range.end,autoScaleStart,autoScaleEnd,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[orientation].format);if(this.master===false&&this.masterAxis!=undefined){this.scale.followScale(this.masterAxis.scale)}this.maxLabelSize=0;var lines=this.scale.getLines();lines.forEach(function(line){var y=line.y;var isMajor=line.major;if(_this.options[\"showMinorLabels\"]&&isMajor===false){_this._redrawLabel(y-2,line.val,orientation,\"vis-y-axis vis-minor\",_this.props.minorCharHeight)}if(isMajor){if(y>=0){_this._redrawLabel(y-2,line.val,orientation,\"vis-y-axis vis-major\",_this.props.majorCharHeight)}}if(_this.master===true){if(isMajor){_this._redrawLine(y,orientation,\"vis-grid vis-horizontal vis-major\",_this.options.majorLinesOffset,_this.props.majorLineWidth)}else{_this._redrawLine(y,orientation,\"vis-grid vis-horizontal vis-minor\",_this.options.minorLinesOffset,_this.props.minorLineWidth)}}});var titleWidth=0;if(this.options[orientation].title!==undefined&&this.options[orientation].title.text!==undefined){titleWidth=this.props.titleCharHeight}var offset=this.options.icons===true?Math.max(this.options.iconWidth,titleWidth)+this.options.labelOffsetX+15:titleWidth+this.options.labelOffsetX+15;if(this.maxLabelSize>this.width-offset&&this.options.visible===true){this.width=this.maxLabelSize+offset;this.options.width=this.width+\"px\";DOMutil.cleanupElements(this.DOMelements.lines);DOMutil.cleanupElements(this.DOMelements.labels);this.redraw();resized=true}else if(this.maxLabelSize<this.width-offset&&this.options.visible===true&&this.width>this.minWidth){this.width=Math.max(this.minWidth,this.maxLabelSize+offset);this.options.width=this.width+\"px\";DOMutil.cleanupElements(this.DOMelements.lines);DOMutil.cleanupElements(this.DOMelements.labels);this.redraw();resized=true}else{DOMutil.cleanupElements(this.DOMelements.lines);DOMutil.cleanupElements(this.DOMelements.labels);resized=false}return resized};DataAxis.prototype.convertValue=function(value){return this.scale.convertValue(value)};DataAxis.prototype.screenToValue=function(x){return this.scale.screenToValue(x)};DataAxis.prototype._redrawLabel=function(y,text,orientation,className,characterHeight){var label=DOMutil.getDOMElement(\"div\",this.DOMelements.labels,this.dom.frame);label.className=className;label.innerHTML=text;if(orientation===\"left\"){label.style.left=\"-\"+this.options.labelOffsetX+\"px\";label.style.textAlign=\"right\"}else{label.style.right=\"-\"+this.options.labelOffsetX+\"px\";label.style.textAlign=\"left\"}label.style.top=y-.5*characterHeight+this.options.labelOffsetY+\"px\";text+=\"\";var largestWidth=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);if(this.maxLabelSize<text.length*largestWidth){this.maxLabelSize=text.length*largestWidth}};DataAxis.prototype._redrawLine=function(y,orientation,className,offset,width){if(this.master===true){\nvar line=DOMutil.getDOMElement(\"div\",this.DOMelements.lines,this.dom.lineContainer);line.className=className;line.innerHTML=\"\";if(orientation===\"left\"){line.style.left=this.width-offset+\"px\"}else{line.style.right=this.width-offset+\"px\"}line.style.width=width+\"px\";line.style.top=y+\"px\"}};DataAxis.prototype._redrawTitle=function(orientation){DOMutil.prepareElements(this.DOMelements.title);if(this.options[orientation].title!==undefined&&this.options[orientation].title.text!==undefined){var title=DOMutil.getDOMElement(\"div\",this.DOMelements.title,this.dom.frame);title.className=\"vis-y-axis vis-title vis-\"+orientation;title.innerHTML=this.options[orientation].title.text;if(this.options[orientation].title.style!==undefined){util.addCssText(title,this.options[orientation].title.style)}if(orientation===\"left\"){title.style.left=this.props.titleCharHeight+\"px\"}else{title.style.right=this.props.titleCharHeight+\"px\"}title.style.width=this.height+\"px\"}DOMutil.cleanupElements(this.DOMelements.title)};DataAxis.prototype._calculateCharSize=function(){if(!(\"minorCharHeight\"in this.props)){var textMinor=document.createTextNode(\"0\");var measureCharMinor=document.createElement(\"div\");measureCharMinor.className=\"vis-y-axis vis-minor vis-measure\";measureCharMinor.appendChild(textMinor);this.dom.frame.appendChild(measureCharMinor);this.props.minorCharHeight=measureCharMinor.clientHeight;this.props.minorCharWidth=measureCharMinor.clientWidth;this.dom.frame.removeChild(measureCharMinor)}if(!(\"majorCharHeight\"in this.props)){var textMajor=document.createTextNode(\"0\");var measureCharMajor=document.createElement(\"div\");measureCharMajor.className=\"vis-y-axis vis-major vis-measure\";measureCharMajor.appendChild(textMajor);this.dom.frame.appendChild(measureCharMajor);this.props.majorCharHeight=measureCharMajor.clientHeight;this.props.majorCharWidth=measureCharMajor.clientWidth;this.dom.frame.removeChild(measureCharMajor)}if(!(\"titleCharHeight\"in this.props)){var textTitle=document.createTextNode(\"0\");var measureCharTitle=document.createElement(\"div\");measureCharTitle.className=\"vis-y-axis vis-title vis-measure\";measureCharTitle.appendChild(textTitle);this.dom.frame.appendChild(measureCharTitle);this.props.titleCharHeight=measureCharTitle.clientHeight;this.props.titleCharWidth=measureCharTitle.clientWidth;this.dom.frame.removeChild(measureCharTitle)}};module.exports=DataAxis},function(module,exports,__webpack_require__){\"use strict\";function DataScale(start,end,autoScaleStart,autoScaleEnd,containerHeight,majorCharHeight){var zeroAlign=arguments.length>6&&arguments[6]!==undefined?arguments[6]:false;var formattingFunction=arguments.length>7&&arguments[7]!==undefined?arguments[7]:false;this.majorSteps=[1,2,5,10];this.minorSteps=[.25,.5,1,2];this.customLines=null;this.containerHeight=containerHeight;this.majorCharHeight=majorCharHeight;this._start=start;this._end=end;this.scale=1;this.minorStepIdx=-1;this.magnitudefactor=1;this.determineScale();this.zeroAlign=zeroAlign;this.autoScaleStart=autoScaleStart;this.autoScaleEnd=autoScaleEnd;this.formattingFunction=formattingFunction;if(autoScaleStart||autoScaleEnd){var me=this;var roundToMinor=function roundToMinor(value){var rounded=value-value%(me.magnitudefactor*me.minorSteps[me.minorStepIdx]);if(value%(me.magnitudefactor*me.minorSteps[me.minorStepIdx])>.5*(me.magnitudefactor*me.minorSteps[me.minorStepIdx])){return rounded+me.magnitudefactor*me.minorSteps[me.minorStepIdx]}else{return rounded}};if(autoScaleStart){this._start-=this.magnitudefactor*2*this.minorSteps[this.minorStepIdx];this._start=roundToMinor(this._start)}if(autoScaleEnd){this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx];this._end=roundToMinor(this._end)}this.determineScale()}}DataScale.prototype.setCharHeight=function(majorCharHeight){this.majorCharHeight=majorCharHeight};DataScale.prototype.setHeight=function(containerHeight){this.containerHeight=containerHeight};DataScale.prototype.determineScale=function(){var range=this._end-this._start;this.scale=this.containerHeight/range;var minimumStepValue=this.majorCharHeight/this.scale;var orderOfMagnitude=range>0?Math.round(Math.log(range)/Math.LN10):0;this.minorStepIdx=-1;this.magnitudefactor=Math.pow(10,orderOfMagnitude);var start=0;if(orderOfMagnitude<0){start=orderOfMagnitude}var solutionFound=false;for(var l=start;Math.abs(l)<=Math.abs(orderOfMagnitude);l++){this.magnitudefactor=Math.pow(10,l);for(var j=0;j<this.minorSteps.length;j++){var stepSize=this.magnitudefactor*this.minorSteps[j];if(stepSize>=minimumStepValue){solutionFound=true;this.minorStepIdx=j;break}}if(solutionFound===true){break}}};DataScale.prototype.is_major=function(value){return value%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])===0};DataScale.prototype.getStep=function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]};DataScale.prototype.getFirstMajor=function(){var majorStep=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(majorStep-this._start%majorStep)%majorStep)};DataScale.prototype.formatValue=function(current){var returnValue=current.toPrecision(5);if(typeof this.formattingFunction===\"function\"){returnValue=this.formattingFunction(current)}if(typeof returnValue===\"number\"){return\"\"+returnValue}else if(typeof returnValue===\"string\"){return returnValue}else{return current.toPrecision(5)}};DataScale.prototype.getLines=function(){var lines=[];var step=this.getStep();var bottomOffset=(step-this._start%step)%step;for(var i=this._start+bottomOffset;this._end-i>1e-5;i+=step){if(i!=this._start){lines.push({major:this.is_major(i),y:this.convertValue(i),val:this.formatValue(i)})}}return lines};DataScale.prototype.followScale=function(other){var oldStepIdx=this.minorStepIdx;var oldStart=this._start;var oldEnd=this._end;var me=this;var increaseMagnitude=function increaseMagnitude(){me.magnitudefactor*=2};var decreaseMagnitude=function decreaseMagnitude(){me.magnitudefactor/=2};if(other.minorStepIdx<=1&&this.minorStepIdx<=1||other.minorStepIdx>1&&this.minorStepIdx>1){}else if(other.minorStepIdx<this.minorStepIdx){this.minorStepIdx=1;if(oldStepIdx==2){increaseMagnitude()}else{increaseMagnitude();increaseMagnitude()}}else{this.minorStepIdx=2;if(oldStepIdx==1){decreaseMagnitude()}else{decreaseMagnitude();decreaseMagnitude()}}var otherZero=other.convertValue(0);var otherStep=other.getStep()*other.scale;var done=false;var count=0;while(!done&&count++<5){this.scale=otherStep/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var newRange=this.containerHeight/this.scale;this._start=oldStart;this._end=this._start+newRange;var myOriginalZero=this._end*this.scale;var majorStep=this.magnitudefactor*this.majorSteps[this.minorStepIdx];var majorOffset=this.getFirstMajor()-other.getFirstMajor();if(this.zeroAlign){var zeroOffset=otherZero-myOriginalZero;this._end+=zeroOffset/this.scale;this._start=this._end-newRange}else{if(!this.autoScaleStart){this._start+=majorStep-majorOffset/this.scale;this._end=this._start+newRange}else{this._start-=majorOffset/this.scale;this._end=this._start+newRange}}if(!this.autoScaleEnd&&this._end>oldEnd+1e-5){decreaseMagnitude();done=false;continue}if(!this.autoScaleStart&&this._start<oldStart-1e-5){if(this.zeroAlign&&oldStart>=0){console.warn(\"Can't adhere to given 'min' range, due to zeroalign\")}else{decreaseMagnitude();done=false;continue}}if(this.autoScaleStart&&this.autoScaleEnd&&newRange<oldEnd-oldStart){increaseMagnitude();done=false;continue}done=true}};DataScale.prototype.convertValue=function(value){return this.containerHeight-(value-this._start)*this.scale};DataScale.prototype.screenToValue=function(pixels){return(this.containerHeight-pixels)/this.scale+this._start};module.exports=DataScale},function(module,exports,__webpack_require__){\"use strict\";var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Bars=__webpack_require__(110);var Lines=__webpack_require__(111);var Points=__webpack_require__(72);function GraphGroup(group,groupId,options,groupsUsingDefaultStyles){this.id=groupId;var fields=[\"sampling\",\"style\",\"sort\",\"yAxisOrientation\",\"barChart\",\"drawPoints\",\"shaded\",\"interpolation\",\"zIndex\",\"excludeFromStacking\",\"excludeFromLegend\"];this.options=util.selectiveBridgeObject(fields,options);this.usingDefaultStyle=group.className===undefined;this.groupsUsingDefaultStyles=groupsUsingDefaultStyles;this.zeroPosition=0;this.update(group);if(this.usingDefaultStyle==true){this.groupsUsingDefaultStyles[0]+=1}this.itemsData=[];this.visible=group.visible===undefined?true:group.visible}GraphGroup.prototype.setItems=function(items){if(items!=null){this.itemsData=items;if(this.options.sort==true){util.insertSort(this.itemsData,function(a,b){return a.x>b.x?1:-1})}}else{this.itemsData=[]}};GraphGroup.prototype.getItems=function(){return this.itemsData};GraphGroup.prototype.setZeroPosition=function(pos){this.zeroPosition=pos};GraphGroup.prototype.setOptions=function(options){if(options!==undefined){var fields=[\"sampling\",\"style\",\"sort\",\"yAxisOrientation\",\"barChart\",\"zIndex\",\"excludeFromStacking\",\"excludeFromLegend\"];util.selectiveDeepExtend(fields,this.options,options);if(typeof options.drawPoints==\"function\"){options.drawPoints={onRender:options.drawPoints}}util.mergeOptions(this.options,options,\"interpolation\");util.mergeOptions(this.options,options,\"drawPoints\");util.mergeOptions(this.options,options,\"shaded\");if(options.interpolation){if((0,_typeof3[\"default\"])(options.interpolation)==\"object\"){if(options.interpolation.parametrization){if(options.interpolation.parametrization==\"uniform\"){this.options.interpolation.alpha=0}else if(options.interpolation.parametrization==\"chordal\"){this.options.interpolation.alpha=1}else{this.options.interpolation.parametrization=\"centripetal\";this.options.interpolation.alpha=.5}}}}}};GraphGroup.prototype.update=function(group){this.group=group;this.content=group.content||\"graph\";this.className=group.className||this.className||\"vis-graph-group\"+this.groupsUsingDefaultStyles[0]%10;this.visible=group.visible===undefined?true:group.visible;this.style=group.style;this.setOptions(group.options)};GraphGroup.prototype.getLegend=function(iconWidth,iconHeight,framework,x,y){if(framework==undefined||framework==null){var svg=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");framework={svg:svg,svgElements:{},options:this.options,groups:[this]}}if(x==undefined||x==null){x=0}if(y==undefined||y==null){y=.5*iconHeight}switch(this.options.style){case\"line\":Lines.drawIcon(this,x,y,iconWidth,iconHeight,framework);break;case\"points\":case\"point\":Points.drawIcon(this,x,y,iconWidth,iconHeight,framework);break;case\"bar\":Bars.drawIcon(this,x,y,iconWidth,iconHeight,framework);break}return{icon:framework.svg,label:this.content,orientation:this.options.yAxisOrientation}};GraphGroup.prototype.getYRange=function(groupData){var yMin=groupData[0].y;var yMax=groupData[0].y;for(var j=0;j<groupData.length;j++){yMin=yMin>groupData[j].y?groupData[j].y:yMin;yMax=yMax<groupData[j].y?groupData[j].y:yMax}return{min:yMin,max:yMax,yAxisOrientation:this.options.yAxisOrientation}};module.exports=GraphGroup},function(module,exports,__webpack_require__){\"use strict\";var DOMutil=__webpack_require__(14);var Points=__webpack_require__(72);function Bargraph(groupId,options){}Bargraph.drawIcon=function(group,x,y,iconWidth,iconHeight,framework){var fillHeight=iconHeight*.5;var outline=DOMutil.getSVGElement(\"rect\",framework.svgElements,framework.svg);outline.setAttributeNS(null,\"x\",x);outline.setAttributeNS(null,\"y\",y-fillHeight);outline.setAttributeNS(null,\"width\",iconWidth);outline.setAttributeNS(null,\"height\",2*fillHeight);outline.setAttributeNS(null,\"class\",\"vis-outline\");var barWidth=Math.round(.3*iconWidth);var originalWidth=group.options.barChart.width;var scale=originalWidth/barWidth;var bar1Height=Math.round(.4*iconHeight);var bar2Height=Math.round(.75*iconHeight);var offset=Math.round((iconWidth-2*barWidth)/3);DOMutil.drawBar(x+.5*barWidth+offset,y+fillHeight-bar1Height-1,barWidth,bar1Height,group.className+\" vis-bar\",framework.svgElements,framework.svg,group.style);DOMutil.drawBar(x+1.5*barWidth+offset+2,y+fillHeight-bar2Height-1,barWidth,bar2Height,group.className+\" vis-bar\",framework.svgElements,framework.svg,group.style);if(group.options.drawPoints.enabled==true){var groupTemplate={style:group.options.drawPoints.style,styles:group.options.drawPoints.styles,size:group.options.drawPoints.size/scale,className:group.className};DOMutil.drawPoint(x+.5*barWidth+offset,y+fillHeight-bar1Height-1,groupTemplate,framework.svgElements,framework.svg);DOMutil.drawPoint(x+1.5*barWidth+offset+2,y+fillHeight-bar2Height-1,groupTemplate,framework.svgElements,framework.svg)}};Bargraph.draw=function(groupIds,processedGroupData,framework){var combinedData=[];var intersections={};var coreDistance;var key,drawData;var group;var i,j;var barPoints=0;for(i=0;i<groupIds.length;i++){group=framework.groups[groupIds[i]];if(group.options.style===\"bar\"){if(group.visible===true&&(framework.options.groups.visibility[groupIds[i]]===undefined||framework.options.groups.visibility[groupIds[i]]===true)){for(j=0;j<processedGroupData[groupIds[i]].length;j++){combinedData.push({screen_x:processedGroupData[groupIds[i]][j].screen_x,screen_end:processedGroupData[groupIds[i]][j].screen_end,screen_y:processedGroupData[groupIds[i]][j].screen_y,x:processedGroupData[groupIds[i]][j].x,end:processedGroupData[groupIds[i]][j].end,y:processedGroupData[groupIds[i]][j].y,groupId:groupIds[i],label:processedGroupData[groupIds[i]][j].label});barPoints+=1}}}}if(barPoints===0){return}combinedData.sort(function(a,b){if(a.screen_x===b.screen_x){return a.groupId<b.groupId?-1:1}else{return a.screen_x-b.screen_x}});Bargraph._getDataIntersections(intersections,combinedData);for(i=0;i<combinedData.length;i++){group=framework.groups[combinedData[i].groupId];var minWidth=group.options.barChart.minWidth!=undefined?group.options.barChart.minWidth:.1*group.options.barChart.width;key=combinedData[i].screen_x;var heightOffset=0;if(intersections[key]===undefined){if(i+1<combinedData.length){coreDistance=Math.abs(combinedData[i+1].screen_x-key)}drawData=Bargraph._getSafeDrawData(coreDistance,group,minWidth)}else{var nextKey=i+(intersections[key].amount-intersections[key].resolved);if(nextKey<combinedData.length){coreDistance=Math.abs(combinedData[nextKey].screen_x-key)}drawData=Bargraph._getSafeDrawData(coreDistance,group,minWidth);intersections[key].resolved+=1;if(group.options.stack===true&&group.options.excludeFromStacking!==true){if(combinedData[i].screen_y<group.zeroPosition){heightOffset=intersections[key].accumulatedNegative;intersections[key].accumulatedNegative+=group.zeroPosition-combinedData[i].screen_y}else{heightOffset=intersections[key].accumulatedPositive;intersections[key].accumulatedPositive+=group.zeroPosition-combinedData[i].screen_y}}else if(group.options.barChart.sideBySide===true){drawData.width=drawData.width/intersections[key].amount;drawData.offset+=intersections[key].resolved*drawData.width-.5*drawData.width*(intersections[key].amount+1)}}var dataWidth=drawData.width;var start=combinedData[i].screen_x;if(combinedData[i].screen_end!=undefined){dataWidth=combinedData[i].screen_end-combinedData[i].screen_x;start+=dataWidth*.5}else{start+=drawData.offset}DOMutil.drawBar(start,combinedData[i].screen_y-heightOffset,dataWidth,group.zeroPosition-combinedData[i].screen_y,group.className+\" vis-bar\",framework.svgElements,framework.svg,group.style);if(group.options.drawPoints.enabled===true){var pointData={screen_x:combinedData[i].screen_x,screen_y:combinedData[i].screen_y-heightOffset,x:combinedData[i].x,y:combinedData[i].y,groupId:combinedData[i].groupId,label:combinedData[i].label};Points.draw([pointData],group,framework,drawData.offset)}}};Bargraph._getDataIntersections=function(intersections,combinedData){var coreDistance;for(var i=0;i<combinedData.length;i++){if(i+1<combinedData.length){coreDistance=Math.abs(combinedData[i+1].screen_x-combinedData[i].screen_x)}if(i>0){coreDistance=Math.min(coreDistance,Math.abs(combinedData[i-1].screen_x-combinedData[i].screen_x))}if(coreDistance===0){if(intersections[combinedData[i].screen_x]===undefined){intersections[combinedData[i].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}}intersections[combinedData[i].screen_x].amount+=1}}};Bargraph._getSafeDrawData=function(coreDistance,group,minWidth){var width,offset;if(coreDistance<group.options.barChart.width&&coreDistance>0){width=coreDistance<minWidth?minWidth:coreDistance;offset=0;if(group.options.barChart.align===\"left\"){offset-=.5*coreDistance}else if(group.options.barChart.align===\"right\"){offset+=.5*coreDistance}}else{width=group.options.barChart.width;offset=0;if(group.options.barChart.align===\"left\"){offset-=.5*group.options.barChart.width}else if(group.options.barChart.align===\"right\"){offset+=.5*group.options.barChart.width}}return{width:width,offset:offset}};Bargraph.getStackedYRange=function(combinedData,groupRanges,groupIds,groupLabel,orientation){if(combinedData.length>0){combinedData.sort(function(a,b){if(a.screen_x===b.screen_x){return a.groupId<b.groupId?-1:1}else{return a.screen_x-b.screen_x}});var intersections={};Bargraph._getDataIntersections(intersections,combinedData);groupRanges[groupLabel]=Bargraph._getStackedYRange(intersections,combinedData);groupRanges[groupLabel].yAxisOrientation=orientation;groupIds.push(groupLabel)}};Bargraph._getStackedYRange=function(intersections,combinedData){var key;var yMin=combinedData[0].screen_y;var yMax=combinedData[0].screen_y;for(var i=0;i<combinedData.length;i++){key=combinedData[i].screen_x;if(intersections[key]===undefined){yMin=yMin>combinedData[i].screen_y?combinedData[i].screen_y:yMin;yMax=yMax<combinedData[i].screen_y?combinedData[i].screen_y:yMax}else{if(combinedData[i].screen_y<0){intersections[key].accumulatedNegative+=combinedData[i].screen_y}else{intersections[key].accumulatedPositive+=combinedData[i].screen_y}}}for(var xpos in intersections){if(intersections.hasOwnProperty(xpos)){yMin=yMin>intersections[xpos].accumulatedNegative?intersections[xpos].accumulatedNegative:yMin;yMin=yMin>intersections[xpos].accumulatedPositive?intersections[xpos].accumulatedPositive:yMin;yMax=yMax<intersections[xpos].accumulatedNegative?intersections[xpos].accumulatedNegative:yMax;yMax=yMax<intersections[xpos].accumulatedPositive?intersections[xpos].accumulatedPositive:yMax}}return{min:yMin,max:yMax}};module.exports=Bargraph},function(module,exports,__webpack_require__){\"use strict\";var DOMutil=__webpack_require__(14);function Line(groupId,options){}Line.calcPath=function(dataset,group){if(dataset!=null){if(dataset.length>0){var d=[];if(group.options.interpolation.enabled==true){d=Line._catmullRom(dataset,group)}else{d=Line._linear(dataset)}return d}}};Line.drawIcon=function(group,x,y,iconWidth,iconHeight,framework){var fillHeight=iconHeight*.5;var path,fillPath;var outline=DOMutil.getSVGElement(\"rect\",framework.svgElements,framework.svg);outline.setAttributeNS(null,\"x\",x);outline.setAttributeNS(null,\"y\",y-fillHeight);outline.setAttributeNS(null,\"width\",iconWidth);outline.setAttributeNS(null,\"height\",2*fillHeight);outline.setAttributeNS(null,\"class\",\"vis-outline\");path=DOMutil.getSVGElement(\"path\",framework.svgElements,framework.svg);path.setAttributeNS(null,\"class\",group.className);if(group.style!==undefined){path.setAttributeNS(null,\"style\",group.style)}path.setAttributeNS(null,\"d\",\"M\"+x+\",\"+y+\" L\"+(x+iconWidth)+\",\"+y+\"\");if(group.options.shaded.enabled==true){fillPath=DOMutil.getSVGElement(\"path\",framework.svgElements,framework.svg);if(group.options.shaded.orientation==\"top\"){fillPath.setAttributeNS(null,\"d\",\"M\"+x+\", \"+(y-fillHeight)+\"L\"+x+\",\"+y+\" L\"+(x+iconWidth)+\",\"+y+\" L\"+(x+iconWidth)+\",\"+(y-fillHeight))}else{fillPath.setAttributeNS(null,\"d\",\"M\"+x+\",\"+y+\" \"+\"L\"+x+\",\"+(y+fillHeight)+\" \"+\"L\"+(x+iconWidth)+\",\"+(y+fillHeight)+\"L\"+(x+iconWidth)+\",\"+y)}fillPath.setAttributeNS(null,\"class\",group.className+\" vis-icon-fill\");if(group.options.shaded.style!==undefined&&group.options.shaded.style!==\"\"){fillPath.setAttributeNS(null,\"style\",group.options.shaded.style)}}if(group.options.drawPoints.enabled==true){var groupTemplate={style:group.options.drawPoints.style,styles:group.options.drawPoints.styles,size:group.options.drawPoints.size,className:group.className};DOMutil.drawPoint(x+.5*iconWidth,y,groupTemplate,framework.svgElements,framework.svg)}};Line.drawShading=function(pathArray,group,subPathArray,framework){if(group.options.shaded.enabled==true){var svgHeight=Number(framework.svg.style.height.replace(\"px\",\"\"));var fillPath=DOMutil.getSVGElement(\"path\",framework.svgElements,framework.svg);var type=\"L\";if(group.options.interpolation.enabled==true){type=\"C\"}var dFill;var zero=0;if(group.options.shaded.orientation==\"top\"){zero=0}else if(group.options.shaded.orientation==\"bottom\"){zero=svgHeight}else{zero=Math.min(Math.max(0,group.zeroPosition),svgHeight)}if(group.options.shaded.orientation==\"group\"&&subPathArray!=null&&subPathArray!=undefined){dFill=\"M\"+pathArray[0][0]+\",\"+pathArray[0][1]+\" \"+this.serializePath(pathArray,type,false)+\" L\"+subPathArray[subPathArray.length-1][0]+\",\"+subPathArray[subPathArray.length-1][1]+\" \"+this.serializePath(subPathArray,type,true)+subPathArray[0][0]+\",\"+subPathArray[0][1]+\" Z\"}else{dFill=\"M\"+pathArray[0][0]+\",\"+pathArray[0][1]+\" \"+this.serializePath(pathArray,type,false)+\" V\"+zero+\" H\"+pathArray[0][0]+\" Z\"}fillPath.setAttributeNS(null,\"class\",group.className+\" vis-fill\");if(group.options.shaded.style!==undefined){fillPath.setAttributeNS(null,\"style\",group.options.shaded.style)}fillPath.setAttributeNS(null,\"d\",dFill)}};Line.draw=function(pathArray,group,framework){if(pathArray!=null&&pathArray!=undefined){var path=DOMutil.getSVGElement(\"path\",framework.svgElements,framework.svg);path.setAttributeNS(null,\"class\",group.className);if(group.style!==undefined){path.setAttributeNS(null,\"style\",group.style)}var type=\"L\";if(group.options.interpolation.enabled==true){type=\"C\"}path.setAttributeNS(null,\"d\",\"M\"+pathArray[0][0]+\",\"+pathArray[0][1]+\" \"+this.serializePath(pathArray,type,false))}};Line.serializePath=function(pathArray,type,inverse){if(pathArray.length<2){return\"\"}var d=type;var i;if(inverse){for(i=pathArray.length-2;i>0;i--){d+=pathArray[i][0]+\",\"+pathArray[i][1]+\" \"}}else{for(i=1;i<pathArray.length;i++){d+=pathArray[i][0]+\",\"+pathArray[i][1]+\" \"}}return d};Line._catmullRomUniform=function(data){var p0,p1,p2,p3,bp1,bp2;var d=[];d.push([Math.round(data[0].screen_x),Math.round(data[0].screen_y)]);var normalization=1/6;var length=data.length;for(var i=0;i<length-1;i++){p0=i==0?data[0]:data[i-1];p1=data[i];p2=data[i+1];p3=i+2<length?data[i+2]:p2;bp1={screen_x:(-p0.screen_x+6*p1.screen_x+p2.screen_x)*normalization,screen_y:(-p0.screen_y+6*p1.screen_y+p2.screen_y)*normalization};bp2={screen_x:(p1.screen_x+6*p2.screen_x-p3.screen_x)*normalization,screen_y:(p1.screen_y+6*p2.screen_y-p3.screen_y)*normalization};d.push([bp1.screen_x,bp1.screen_y]);d.push([bp2.screen_x,bp2.screen_y]);d.push([p2.screen_x,p2.screen_y])}return d};Line._catmullRom=function(data,group){var alpha=group.options.interpolation.alpha;if(alpha==0||alpha===undefined){return this._catmullRomUniform(data)}else{var p0,p1,p2,p3,bp1,bp2,d1,d2,d3,A,B,N,M;var d3powA,d2powA,d3pow2A,d2pow2A,d1pow2A,d1powA;var d=[];d.push([Math.round(data[0].screen_x),Math.round(data[0].screen_y)]);var length=data.length;for(var i=0;i<length-1;i++){p0=i==0?data[0]:data[i-1];p1=data[i];p2=data[i+1];p3=i+2<length?data[i+2]:p2;d1=Math.sqrt(Math.pow(p0.screen_x-p1.screen_x,2)+Math.pow(p0.screen_y-p1.screen_y,2));d2=Math.sqrt(Math.pow(p1.screen_x-p2.screen_x,2)+Math.pow(p1.screen_y-p2.screen_y,2));d3=Math.sqrt(Math.pow(p2.screen_x-p3.screen_x,2)+Math.pow(p2.screen_y-p3.screen_y,2));d3powA=Math.pow(d3,alpha);d3pow2A=Math.pow(d3,2*alpha);d2powA=Math.pow(d2,alpha);d2pow2A=Math.pow(d2,2*alpha);d1powA=Math.pow(d1,alpha);d1pow2A=Math.pow(d1,2*alpha);A=2*d1pow2A+3*d1powA*d2powA+d2pow2A;B=2*d3pow2A+3*d3powA*d2powA+d2pow2A;N=3*d1powA*(d1powA+d2powA);if(N>0){N=1/N}M=3*d3powA*(d3powA+d2powA);if(M>0){M=1/M}bp1={screen_x:(-d2pow2A*p0.screen_x+A*p1.screen_x+d1pow2A*p2.screen_x)*N,screen_y:(-d2pow2A*p0.screen_y+A*p1.screen_y+d1pow2A*p2.screen_y)*N};bp2={screen_x:(d3pow2A*p1.screen_x+B*p2.screen_x-d2pow2A*p3.screen_x)*M,screen_y:(d3pow2A*p1.screen_y+B*p2.screen_y-d2pow2A*p3.screen_y)*M};if(bp1.screen_x==0&&bp1.screen_y==0){bp1=p1}if(bp2.screen_x==0&&bp2.screen_y==0){bp2=p2}d.push([bp1.screen_x,bp1.screen_y]);d.push([bp2.screen_x,bp2.screen_y]);d.push([p2.screen_x,p2.screen_y])}return d}};Line._linear=function(data){var d=[];for(var i=0;i<data.length;i++){d.push([data[i].screen_x,data[i].screen_y])}return d};module.exports=Line},function(module,exports,__webpack_require__){\"use strict\";var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var DOMutil=__webpack_require__(14);var Component=__webpack_require__(16);function Legend(body,options,side,linegraphOptions){this.body=body;this.defaultOptions={enabled:false,icons:true,iconSize:20,iconSpacing:6,left:{visible:true,position:\"top-left\"},right:{visible:true,position:\"top-right\"}};this.side=side;this.options=util.extend({},this.defaultOptions);this.linegraphOptions=linegraphOptions;this.svgElements={};this.dom={};this.groups={};this.amountOfGroups=0;this._create();this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups};this.setOptions(options)}Legend.prototype=new Component;Legend.prototype.clear=function(){this.groups={};this.amountOfGroups=0};Legend.prototype.addGroup=function(label,graphOptions){if(graphOptions.options.excludeFromLegend!=true){if(!this.groups.hasOwnProperty(label)){this.groups[label]=graphOptions}this.amountOfGroups+=1}};Legend.prototype.updateGroup=function(label,graphOptions){this.groups[label]=graphOptions};Legend.prototype.removeGroup=function(label){if(this.groups.hasOwnProperty(label)){delete this.groups[label];this.amountOfGroups-=1}};Legend.prototype._create=function(){this.dom.frame=document.createElement(\"div\");this.dom.frame.className=\"vis-legend\";this.dom.frame.style.position=\"absolute\";this.dom.frame.style.top=\"10px\";this.dom.frame.style.display=\"block\";this.dom.textArea=document.createElement(\"div\");this.dom.textArea.className=\"vis-legend-text\";this.dom.textArea.style.position=\"relative\";this.dom.textArea.style.top=\"0px\";this.svg=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");this.svg.style.position=\"absolute\";this.svg.style.top=0+\"px\";this.svg.style.width=this.options.iconSize+5+\"px\";this.svg.style.height=\"100%\";this.dom.frame.appendChild(this.svg);this.dom.frame.appendChild(this.dom.textArea)};Legend.prototype.hide=function(){if(this.dom.frame.parentNode){this.dom.frame.parentNode.removeChild(this.dom.frame)}};Legend.prototype.show=function(){if(!this.dom.frame.parentNode){this.body.dom.center.appendChild(this.dom.frame)}};Legend.prototype.setOptions=function(options){var fields=[\"enabled\",\"orientation\",\"icons\",\"left\",\"right\"];util.selectiveDeepExtend(fields,this.options,options)};Legend.prototype.redraw=function(){var activeGroups=0;var groupArray=(0,_keys2[\"default\"])(this.groups);groupArray.sort(function(a,b){return a<b?-1:1});for(var i=0;i<groupArray.length;i++){var groupId=groupArray[i];if(this.groups[groupId].visible==true&&(this.linegraphOptions.visibility[groupId]===undefined||this.linegraphOptions.visibility[groupId]==true)){activeGroups++}}if(this.options[this.side].visible==false||this.amountOfGroups==0||this.options.enabled==false||activeGroups==0){this.hide()}else{this.show();if(this.options[this.side].position==\"top-left\"||this.options[this.side].position==\"bottom-left\"){this.dom.frame.style.left=\"4px\";this.dom.frame.style.textAlign=\"left\";this.dom.textArea.style.textAlign=\"left\";this.dom.textArea.style.left=this.options.iconSize+15+\"px\";this.dom.textArea.style.right=\"\";this.svg.style.left=0+\"px\";this.svg.style.right=\"\"}else{this.dom.frame.style.right=\"4px\";this.dom.frame.style.textAlign=\"right\";this.dom.textArea.style.textAlign=\"right\";this.dom.textArea.style.right=this.options.iconSize+15+\"px\";this.dom.textArea.style.left=\"\";this.svg.style.right=0+\"px\";this.svg.style.left=\"\"}if(this.options[this.side].position==\"top-left\"||this.options[this.side].position==\"top-right\"){this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace(\"px\",\"\"))+\"px\";this.dom.frame.style.bottom=\"\"}else{var scrollableHeight=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+scrollableHeight+Number(this.body.dom.center.style.top.replace(\"px\",\"\"))+\"px\";this.dom.frame.style.top=\"\"}if(this.options.icons==false){this.dom.frame.style.width=this.dom.textArea.offsetWidth+10+\"px\";this.dom.textArea.style.right=\"\";this.dom.textArea.style.left=\"\";this.svg.style.width=\"0px\"}else{this.dom.frame.style.width=this.options.iconSize+15+this.dom.textArea.offsetWidth+10+\"px\";this.drawLegendIcons()}var content=\"\";for(i=0;i<groupArray.length;i++){groupId=groupArray[i];if(this.groups[groupId].visible==true&&(this.linegraphOptions.visibility[groupId]===undefined||this.linegraphOptions.visibility[groupId]==true)){content+=this.groups[groupId].content+\"<br />\"}}this.dom.textArea.innerHTML=content;this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+\"px\"}};Legend.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var groupArray=(0,_keys2[\"default\"])(this.groups);groupArray.sort(function(a,b){return a<b?-1:1});DOMutil.resetElements(this.svgElements);var padding=window.getComputedStyle(this.dom.frame).paddingTop;var iconOffset=Number(padding.replace(\"px\",\"\"));var x=iconOffset;var iconWidth=this.options.iconSize;var iconHeight=.75*this.options.iconSize;var y=iconOffset+.5*iconHeight+3;this.svg.style.width=iconWidth+5+iconOffset+\"px\";for(var i=0;i<groupArray.length;i++){var groupId=groupArray[i];if(this.groups[groupId].visible==true&&(this.linegraphOptions.visibility[groupId]===undefined||this.linegraphOptions.visibility[groupId]==true)){this.groups[groupId].getLegend(iconWidth,iconHeight,this.framework,x,y);y+=iconHeight+this.options.iconSpacing}}}};module.exports=Legend},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var string=\"string\";var bool=\"boolean\";var number=\"number\";var array=\"array\";var date=\"date\";var object=\"object\";var dom=\"dom\";var moment=\"moment\";var any=\"any\";var allOptions={configure:{enabled:{boolean:bool},filter:{boolean:bool,function:\"function\"},container:{dom:dom},__type__:{object:object,boolean:bool,function:\"function\"}},yAxisOrientation:{string:[\"left\",\"right\"]},defaultGroup:{string:string},sort:{boolean:bool},sampling:{boolean:bool},stack:{boolean:bool},graphHeight:{string:string,number:number},shaded:{enabled:{boolean:bool},orientation:{string:[\"bottom\",\"top\",\"zero\",\"group\"]},groupId:{object:object},__type__:{boolean:bool,object:object}},style:{string:[\"line\",\"bar\",\"points\"]},barChart:{width:{number:number},minWidth:{number:number},sideBySide:{boolean:bool},align:{string:[\"left\",\"center\",\"right\"]},__type__:{object:object}},interpolation:{enabled:{boolean:bool},parametrization:{string:[\"centripetal\",\"chordal\",\"uniform\"]},alpha:{number:number},__type__:{object:object,boolean:bool}},drawPoints:{enabled:{boolean:bool},onRender:{function:\"function\"},size:{number:number},style:{string:[\"square\",\"circle\"]},__type__:{object:object,boolean:bool,function:\"function\"}},dataAxis:{showMinorLabels:{boolean:bool},showMajorLabels:{boolean:bool},icons:{boolean:bool},width:{string:string,number:number},visible:{boolean:bool},alignZeros:{boolean:bool},left:{range:{min:{\nnumber:number,undefined:\"undefined\"},max:{number:number,undefined:\"undefined\"},__type__:{object:object}},format:{function:\"function\"},title:{text:{string:string,number:number,undefined:\"undefined\"},style:{string:string,undefined:\"undefined\"},__type__:{object:object}},__type__:{object:object}},right:{range:{min:{number:number,undefined:\"undefined\"},max:{number:number,undefined:\"undefined\"},__type__:{object:object}},format:{function:\"function\"},title:{text:{string:string,number:number,undefined:\"undefined\"},style:{string:string,undefined:\"undefined\"},__type__:{object:object}},__type__:{object:object}},__type__:{object:object}},legend:{enabled:{boolean:bool},icons:{boolean:bool},left:{visible:{boolean:bool},position:{string:[\"top-right\",\"bottom-right\",\"top-left\",\"bottom-left\"]},__type__:{object:object}},right:{visible:{boolean:bool},position:{string:[\"top-right\",\"bottom-right\",\"top-left\",\"bottom-left\"]},__type__:{object:object}},__type__:{object:object,boolean:bool}},groups:{visibility:{any:any},__type__:{object:object}},autoResize:{boolean:bool},throttleRedraw:{number:number},clickToUse:{boolean:bool},end:{number:number,date:date,string:string,moment:moment},format:{minorLabels:{millisecond:{string:string,undefined:\"undefined\"},second:{string:string,undefined:\"undefined\"},minute:{string:string,undefined:\"undefined\"},hour:{string:string,undefined:\"undefined\"},weekday:{string:string,undefined:\"undefined\"},day:{string:string,undefined:\"undefined\"},month:{string:string,undefined:\"undefined\"},year:{string:string,undefined:\"undefined\"},__type__:{object:object}},majorLabels:{millisecond:{string:string,undefined:\"undefined\"},second:{string:string,undefined:\"undefined\"},minute:{string:string,undefined:\"undefined\"},hour:{string:string,undefined:\"undefined\"},weekday:{string:string,undefined:\"undefined\"},day:{string:string,undefined:\"undefined\"},month:{string:string,undefined:\"undefined\"},year:{string:string,undefined:\"undefined\"},__type__:{object:object}},__type__:{object:object}},moment:{function:\"function\"},height:{string:string,number:number},hiddenDates:{start:{date:date,number:number,string:string,moment:moment},end:{date:date,number:number,string:string,moment:moment},repeat:{string:string},__type__:{object:object,array:array}},locale:{string:string},locales:{__any__:{any:any},__type__:{object:object}},max:{date:date,number:number,string:string,moment:moment},maxHeight:{number:number,string:string},maxMinorChars:{number:number},min:{date:date,number:number,string:string,moment:moment},minHeight:{number:number,string:string},moveable:{boolean:bool},multiselect:{boolean:bool},orientation:{string:string},showCurrentTime:{boolean:bool},showMajorLabels:{boolean:bool},showMinorLabels:{boolean:bool},start:{date:date,number:number,string:string,moment:moment},timeAxis:{scale:{string:string,undefined:\"undefined\"},step:{number:number,undefined:\"undefined\"},__type__:{object:object}},width:{string:string,number:number},zoomable:{boolean:bool},zoomKey:{string:[\"ctrlKey\",\"altKey\",\"metaKey\",\"\"]},zoomMax:{number:number},zoomMin:{number:number},zIndex:{number:number},__type__:{object:object}};var configureOptions={global:{sort:true,sampling:true,stack:false,shaded:{enabled:false,orientation:[\"zero\",\"top\",\"bottom\",\"group\"]},style:[\"line\",\"bar\",\"points\"],barChart:{width:[50,5,100,5],minWidth:[50,5,100,5],sideBySide:false,align:[\"left\",\"center\",\"right\"]},interpolation:{enabled:true,parametrization:[\"centripetal\",\"chordal\",\"uniform\"]},drawPoints:{enabled:true,size:[6,2,30,1],style:[\"square\",\"circle\"]},dataAxis:{showMinorLabels:true,showMajorLabels:true,icons:false,width:[40,0,200,1],visible:true,alignZeros:true,left:{title:{text:\"\",style:\"\"}},right:{title:{text:\"\",style:\"\"}}},legend:{enabled:false,icons:true,left:{visible:true,position:[\"top-right\",\"bottom-right\",\"top-left\",\"bottom-left\"]},right:{visible:true,position:[\"top-right\",\"bottom-right\",\"top-left\",\"bottom-left\"]}},autoResize:true,clickToUse:false,end:\"\",format:{minorLabels:{millisecond:\"SSS\",second:\"s\",minute:\"HH:mm\",hour:\"HH:mm\",weekday:\"ddd D\",day:\"D\",month:\"MMM\",year:\"YYYY\"},majorLabels:{millisecond:\"HH:mm:ss\",second:\"D MMMM HH:mm\",minute:\"ddd D MMMM\",hour:\"ddd D MMMM\",weekday:\"MMMM YYYY\",day:\"MMMM YYYY\",month:\"YYYY\",year:\"\"}},height:\"\",locale:\"\",max:\"\",maxHeight:\"\",maxMinorChars:[7,0,20,1],min:\"\",minHeight:\"\",moveable:true,orientation:[\"both\",\"bottom\",\"top\"],showCurrentTime:false,showMajorLabels:true,showMinorLabels:true,start:\"\",width:\"100%\",zoomable:true,zoomKey:[\"ctrlKey\",\"altKey\",\"metaKey\",\"\"],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],zIndex:0}};exports.allOptions=allOptions;exports.configureOptions=configureOptions},function(module,exports,__webpack_require__){\"use strict\";var _create=__webpack_require__(29);var _create2=_interopRequireDefault(_create);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function parseDOT(data){dot=data;return parseGraph()}var NODE_ATTR_MAPPING={fontsize:\"font.size\",fontcolor:\"font.color\",labelfontcolor:\"font.color\",fontname:\"font.face\",color:[\"color.border\",\"color.background\"],fillcolor:\"color.background\",tooltip:\"title\",labeltooltip:\"title\"};var EDGE_ATTR_MAPPING=(0,_create2[\"default\"])(NODE_ATTR_MAPPING);EDGE_ATTR_MAPPING.color=\"color.color\";EDGE_ATTR_MAPPING.style=\"dashes\";var TOKENTYPE={NULL:0,DELIMITER:1,IDENTIFIER:2,UNKNOWN:3};var DELIMITERS={\"{\":true,\"}\":true,\"[\":true,\"]\":true,\";\":true,\"=\":true,\",\":true,\"->\":true,\"--\":true};var dot=\"\";var index=0;var c=\"\";var token=\"\";var tokenType=TOKENTYPE.NULL;function first(){index=0;c=dot.charAt(0)}function next(){index++;c=dot.charAt(index)}function nextPreview(){return dot.charAt(index+1)}var regexAlphaNumeric=/[a-zA-Z_0-9.:#]/;function isAlphaNumeric(c){return regexAlphaNumeric.test(c)}function merge(a,b){if(!a){a={}}if(b){for(var name in b){if(b.hasOwnProperty(name)){a[name]=b[name]}}}return a}function setValue(obj,path,value){var keys=path.split(\".\");var o=obj;while(keys.length){var key=keys.shift();if(keys.length){if(!o[key]){o[key]={}}o=o[key]}else{o[key]=value}}}function addNode(graph,node){var i,len;var current=null;var graphs=[graph];var root=graph;while(root.parent){graphs.push(root.parent);root=root.parent}if(root.nodes){for(i=0,len=root.nodes.length;i<len;i++){if(node.id===root.nodes[i].id){current=root.nodes[i];break}}}if(!current){current={id:node.id};if(graph.node){current.attr=merge(current.attr,graph.node)}}for(i=graphs.length-1;i>=0;i--){var g=graphs[i];if(!g.nodes){g.nodes=[]}if(g.nodes.indexOf(current)===-1){g.nodes.push(current)}}if(node.attr){current.attr=merge(current.attr,node.attr)}}function addEdge(graph,edge){if(!graph.edges){graph.edges=[]}graph.edges.push(edge);if(graph.edge){var attr=merge({},graph.edge);edge.attr=merge(attr,edge.attr)}}function createEdge(graph,from,to,type,attr){var edge={from:from,to:to,type:type};if(graph.edge){edge.attr=merge({},graph.edge)}edge.attr=merge(edge.attr||{},attr);return edge}function getToken(){tokenType=TOKENTYPE.NULL;token=\"\";while(c===\" \"||c===\"\\t\"||c===\"\\n\"||c===\"\\r\"){next()}do{var isComment=false;if(c===\"#\"){var i=index-1;while(dot.charAt(i)===\" \"||dot.charAt(i)===\"\\t\"){i--}if(dot.charAt(i)===\"\\n\"||dot.charAt(i)===\"\"){while(c!=\"\"&&c!=\"\\n\"){next()}isComment=true}}if(c===\"/\"&&nextPreview()===\"/\"){while(c!=\"\"&&c!=\"\\n\"){next()}isComment=true}if(c===\"/\"&&nextPreview()===\"*\"){while(c!=\"\"){if(c===\"*\"&&nextPreview()===\"/\"){next();next();break}else{next()}}isComment=true}while(c===\" \"||c===\"\\t\"||c===\"\\n\"||c===\"\\r\"){next()}}while(isComment);if(c===\"\"){tokenType=TOKENTYPE.DELIMITER;return}var c2=c+nextPreview();if(DELIMITERS[c2]){tokenType=TOKENTYPE.DELIMITER;token=c2;next();next();return}if(DELIMITERS[c]){tokenType=TOKENTYPE.DELIMITER;token=c;next();return}if(isAlphaNumeric(c)||c===\"-\"){token+=c;next();while(isAlphaNumeric(c)){token+=c;next()}if(token===\"false\"){token=false}else if(token===\"true\"){token=true}else if(!isNaN(Number(token))){token=Number(token)}tokenType=TOKENTYPE.IDENTIFIER;return}if(c==='\"'){next();while(c!=\"\"&&(c!='\"'||c==='\"'&&nextPreview()==='\"')){if(c==='\"'){token+=c;next()}else if(c===\"\\\\\"&&nextPreview()===\"n\"){token+=\"\\n\";next()}else{token+=c}next()}if(c!='\"'){throw newSyntaxError('End of string \" expected')}next();tokenType=TOKENTYPE.IDENTIFIER;return}tokenType=TOKENTYPE.UNKNOWN;while(c!=\"\"){token+=c;next()}throw new SyntaxError('Syntax error in part \"'+chop(token,30)+'\"')}function parseGraph(){var graph={};first();getToken();if(token===\"strict\"){graph.strict=true;getToken()}if(token===\"graph\"||token===\"digraph\"){graph.type=token;getToken()}if(tokenType===TOKENTYPE.IDENTIFIER){graph.id=token;getToken()}if(token!=\"{\"){throw newSyntaxError(\"Angle bracket { expected\")}getToken();parseStatements(graph);if(token!=\"}\"){throw newSyntaxError(\"Angle bracket } expected\")}getToken();if(token!==\"\"){throw newSyntaxError(\"End of file expected\")}getToken();delete graph.node;delete graph.edge;delete graph.graph;return graph}function parseStatements(graph){while(token!==\"\"&&token!=\"}\"){parseStatement(graph);if(token===\";\"){getToken()}}}function parseStatement(graph){var subgraph=parseSubgraph(graph);if(subgraph){parseEdge(graph,subgraph);return}var attr=parseAttributeStatement(graph);if(attr){return}if(tokenType!=TOKENTYPE.IDENTIFIER){throw newSyntaxError(\"Identifier expected\")}var id=token;getToken();if(token===\"=\"){getToken();if(tokenType!=TOKENTYPE.IDENTIFIER){throw newSyntaxError(\"Identifier expected\")}graph[id]=token;getToken()}else{parseNodeStatement(graph,id)}}function parseSubgraph(graph){var subgraph=null;if(token===\"subgraph\"){subgraph={};subgraph.type=\"subgraph\";getToken();if(tokenType===TOKENTYPE.IDENTIFIER){subgraph.id=token;getToken()}}if(token===\"{\"){getToken();if(!subgraph){subgraph={}}subgraph.parent=graph;subgraph.node=graph.node;subgraph.edge=graph.edge;subgraph.graph=graph.graph;parseStatements(subgraph);if(token!=\"}\"){throw newSyntaxError(\"Angle bracket } expected\")}getToken();delete subgraph.node;delete subgraph.edge;delete subgraph.graph;delete subgraph.parent;if(!graph.subgraphs){graph.subgraphs=[]}graph.subgraphs.push(subgraph)}return subgraph}function parseAttributeStatement(graph){if(token===\"node\"){getToken();graph.node=parseAttributeList();return\"node\"}else if(token===\"edge\"){getToken();graph.edge=parseAttributeList();return\"edge\"}else if(token===\"graph\"){getToken();graph.graph=parseAttributeList();return\"graph\"}return null}function parseNodeStatement(graph,id){var node={id:id};var attr=parseAttributeList();if(attr){node.attr=attr}addNode(graph,node);parseEdge(graph,id)}function parseEdge(graph,from){while(token===\"->\"||token===\"--\"){var to;var type=token;getToken();var subgraph=parseSubgraph(graph);if(subgraph){to=subgraph}else{if(tokenType!=TOKENTYPE.IDENTIFIER){throw newSyntaxError(\"Identifier or subgraph expected\")}to=token;addNode(graph,{id:to});getToken()}var attr=parseAttributeList();var edge=createEdge(graph,from,to,type,attr);addEdge(graph,edge);from=to}}function parseAttributeList(){var attr=null;var edgeStyles={dashed:true,solid:false,dotted:[1,5]};while(token===\"[\"){getToken();attr={};while(token!==\"\"&&token!=\"]\"){if(tokenType!=TOKENTYPE.IDENTIFIER){throw newSyntaxError(\"Attribute name expected\")}var name=token;getToken();if(token!=\"=\"){throw newSyntaxError(\"Equal sign = expected\")}getToken();if(tokenType!=TOKENTYPE.IDENTIFIER){throw newSyntaxError(\"Attribute value expected\")}var value=token;if(name===\"style\"){value=edgeStyles[value]}setValue(attr,name,value);getToken();if(token==\",\"){getToken()}}if(token!=\"]\"){throw newSyntaxError(\"Bracket ] expected\")}getToken()}return attr}function newSyntaxError(message){return new SyntaxError(message+', got \"'+chop(token,30)+'\" (char '+index+\")\")}function chop(text,maxLength){return text.length<=maxLength?text:text.substr(0,27)+\"...\"}function forEach2(array1,array2,fn){if(Array.isArray(array1)){array1.forEach(function(elem1){if(Array.isArray(array2)){array2.forEach(function(elem2){fn(elem1,elem2)})}else{fn(elem1,array2)}})}else{if(Array.isArray(array2)){array2.forEach(function(elem2){fn(array1,elem2)})}else{fn(array1,array2)}}}function setProp(object,path,value){var names=path.split(\".\");var prop=names.pop();var obj=object;for(var i=0;i<names.length;i++){var name=names[i];if(!(name in obj)){obj[name]={}}obj=obj[name]}obj[prop]=value;return object}function convertAttr(attr,mapping){var converted={};for(var prop in attr){if(attr.hasOwnProperty(prop)){var visProp=mapping[prop];if(Array.isArray(visProp)){visProp.forEach(function(visPropI){setProp(converted,visPropI,attr[prop])})}else if(typeof visProp===\"string\"){setProp(converted,visProp,attr[prop])}else{setProp(converted,prop,attr[prop])}}}return converted}function DOTToGraph(data){var dotData=parseDOT(data);var graphData={nodes:[],edges:[],options:{}};if(dotData.nodes){dotData.nodes.forEach(function(dotNode){var graphNode={id:dotNode.id,label:String(dotNode.label||dotNode.id)};merge(graphNode,convertAttr(dotNode.attr,NODE_ATTR_MAPPING));if(graphNode.image){graphNode.shape=\"image\"}graphData.nodes.push(graphNode)})}if(dotData.edges){var convertEdge=function convertEdge(dotEdge){var graphEdge={from:dotEdge.from,to:dotEdge.to};merge(graphEdge,convertAttr(dotEdge.attr,EDGE_ATTR_MAPPING));graphEdge.arrows=dotEdge.type===\"->\"?\"to\":undefined;return graphEdge};dotData.edges.forEach(function(dotEdge){var from,to;if(dotEdge.from instanceof Object){from=dotEdge.from.nodes}else{from={id:dotEdge.from}}if(dotEdge.to instanceof Object){to=dotEdge.to.nodes}else{to={id:dotEdge.to}}if(dotEdge.from instanceof Object&&dotEdge.from.edges){dotEdge.from.edges.forEach(function(subEdge){var graphEdge=convertEdge(subEdge);graphData.edges.push(graphEdge)})}forEach2(from,to,function(from,to){var subEdge=createEdge(graphData,from.id,to.id,dotEdge.type,dotEdge.attr);var graphEdge=convertEdge(subEdge);graphData.edges.push(graphEdge)});if(dotEdge.to instanceof Object&&dotEdge.to.edges){dotEdge.to.edges.forEach(function(subEdge){var graphEdge=convertEdge(subEdge);graphData.edges.push(graphEdge)})}})}if(dotData.attr){graphData.options=dotData.attr}return graphData}exports.parseDOT=parseDOT;exports.DOTToGraph=DOTToGraph},function(module,exports,__webpack_require__){\"use strict\";function parseGephi(gephiJSON,optionsObj){var edges=[];var nodes=[];var options={edges:{inheritColor:false},nodes:{fixed:false,parseColor:false}};if(optionsObj!==undefined){if(optionsObj.fixed!==undefined){options.nodes.fixed=optionsObj.fixed}if(optionsObj.parseColor!==undefined){options.nodes.parseColor=optionsObj.parseColor}if(optionsObj.inheritColor!==undefined){options.edges.inheritColor=optionsObj.inheritColor}}var gEdges=gephiJSON.edges;var gNodes=gephiJSON.nodes;for(var i=0;i<gEdges.length;i++){var edge={};var gEdge=gEdges[i];edge[\"id\"]=gEdge.id;edge[\"from\"]=gEdge.source;edge[\"to\"]=gEdge.target;edge[\"attributes\"]=gEdge.attributes;edge[\"label\"]=gEdge.label;edge[\"title\"]=gEdge.attributes!==undefined?gEdge.attributes.title:undefined;if(gEdge[\"type\"]===\"Directed\"){edge[\"arrows\"]=\"to\"}if(gEdge.color&&options.inheritColor===false){edge[\"color\"]=gEdge.color}edges.push(edge)}for(var j=0;j<gNodes.length;j++){var node={};var gNode=gNodes[j];node[\"id\"]=gNode.id;node[\"attributes\"]=gNode.attributes;node[\"x\"]=gNode.x;node[\"y\"]=gNode.y;node[\"label\"]=gNode.label;node[\"title\"]=gNode.attributes!==undefined?gNode.attributes.title:gNode.title;if(options.nodes.parseColor===true){node[\"color\"]=gNode.color}else{node[\"color\"]=gNode.color!==undefined?{background:gNode.color,border:gNode.color,highlight:{background:gNode.color,border:gNode.color},hover:{background:gNode.color,border:gNode.color}}:undefined}node[\"size\"]=gNode.size;node[\"fixed\"]=options.nodes.fixed&&gNode.x!==undefined&&gNode.y!==undefined;nodes.push(node)}return{nodes:nodes,edges:edges}}exports.parseGephi=parseGephi},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _CachedImage=__webpack_require__(185);var _CachedImage2=_interopRequireDefault(_CachedImage);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Images=function(){function Images(callback){(0,_classCallCheck3[\"default\"])(this,Images);this.images={};this.imageBroken={};this.callback=callback}(0,_createClass3[\"default\"])(Images,[{key:\"_tryloadBrokenUrl\",value:function _tryloadBrokenUrl(url,brokenUrl,imageToLoadBrokenUrlOn){if(url===undefined||imageToLoadBrokenUrlOn===undefined)return;if(brokenUrl===undefined){console.warn(\"No broken url image defined\");return}imageToLoadBrokenUrlOn.onerror=function(){console.error(\"Could not load brokenImage:\",brokenUrl)};imageToLoadBrokenUrlOn.image.src=brokenUrl}},{key:\"_redrawWithImage\",value:function _redrawWithImage(imageToRedrawWith){if(this.callback){this.callback(imageToRedrawWith)}}},{key:\"load\",value:function load(url,brokenUrl){var _this=this;var cachedImage=this.images[url];if(cachedImage)return cachedImage;var img=new _CachedImage2[\"default\"];this.images[url]=img;img.image.onload=function(){_this._fixImageCoordinates(img.image);img.init();_this._redrawWithImage(img)};img.image.onerror=function(){console.error(\"Could not load image:\",url);_this._tryloadBrokenUrl(url,brokenUrl,img)};img.image.src=url;return img}},{key:\"_fixImageCoordinates\",value:function _fixImageCoordinates(imageToCache){if(imageToCache.width===0){document.body.appendChild(imageToCache);imageToCache.width=imageToCache.offsetWidth;imageToCache.height=imageToCache.offsetHeight;document.body.removeChild(imageToCache)}}}]);return Images}();exports[\"default\"]=Images},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _slicedToArray2=__webpack_require__(30);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var ComponentUtil=__webpack_require__(48)[\"default\"];var LabelSplitter=__webpack_require__(191)[\"default\"];var multiFontStyle=[\"bold\",\"ital\",\"boldital\",\"mono\"];var Label=function(){function Label(body,options){var edgelabel=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;(0,_classCallCheck3[\"default\"])(this,Label);this.body=body;this.pointToSelf=false;this.baseSize=undefined;this.fontOptions={};this.setOptions(options);this.size={top:0,left:0,width:0,height:0,yLine:0};this.isEdgeLabel=edgelabel}(0,_createClass3[\"default\"])(Label,[{key:\"setOptions\",value:function setOptions(options){this.elementOptions=options;this.initFontOptions(options.font);if(ComponentUtil.isValidLabel(options.label)){this.labelDirty=true}else{options.label=\"\"}if(options.font!==undefined&&options.font!==null){if(typeof options.font===\"string\"){this.baseSize=this.fontOptions.size}else if((0,_typeof3[\"default\"])(options.font)===\"object\"){var size=options.font.size;if(size!==undefined){this.baseSize=size}}}}},{key:\"initFontOptions\",value:function initFontOptions(newFontOptions){var _this=this;util.forEach(multiFontStyle,function(style){_this.fontOptions[style]={}});if(Label.parseFontString(this.fontOptions,newFontOptions)){this.fontOptions.vadjust=0;return}util.forEach(newFontOptions,function(prop,n){if(prop!==undefined&&prop!==null&&(typeof prop===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(prop))!==\"object\"){_this.fontOptions[n]=prop}})}},{key:\"constrain\",value:function constrain(pile){var fontOptions={constrainWidth:false,maxWdt:-1,minWdt:-1,constrainHeight:false,minHgt:-1,valign:\"middle\"};var widthConstraint=util.topMost(pile,\"widthConstraint\");if(typeof widthConstraint===\"number\"){fontOptions.maxWdt=Number(widthConstraint);fontOptions.minWdt=Number(widthConstraint)}else if((typeof widthConstraint===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(widthConstraint))===\"object\"){var widthConstraintMaximum=util.topMost(pile,[\"widthConstraint\",\"maximum\"]);if(typeof widthConstraintMaximum===\"number\"){fontOptions.maxWdt=Number(widthConstraintMaximum)}var widthConstraintMinimum=util.topMost(pile,[\"widthConstraint\",\"minimum\"]);if(typeof widthConstraintMinimum===\"number\"){fontOptions.minWdt=Number(widthConstraintMinimum)}}var heightConstraint=util.topMost(pile,\"heightConstraint\");if(typeof heightConstraint===\"number\"){fontOptions.minHgt=Number(heightConstraint)}else if((typeof heightConstraint===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(heightConstraint))===\"object\"){var heightConstraintMinimum=util.topMost(pile,[\"heightConstraint\",\"minimum\"]);if(typeof heightConstraintMinimum===\"number\"){fontOptions.minHgt=Number(heightConstraintMinimum)}var heightConstraintValign=util.topMost(pile,[\"heightConstraint\",\"valign\"]);if(typeof heightConstraintValign===\"string\"){if(heightConstraintValign===\"top\"||heightConstraintValign===\"bottom\"){fontOptions.valign=heightConstraintValign}}}return fontOptions}},{key:\"update\",value:function update(options,pile){this.setOptions(options,true);this.propagateFonts(pile);util.deepExtend(this.fontOptions,this.constrain(pile));this.fontOptions.chooser=ComponentUtil.choosify(\"label\",pile)}},{key:\"adjustSizes\",value:function adjustSizes(margins){var widthBias=margins?margins.right+margins.left:0;if(this.fontOptions.constrainWidth){this.fontOptions.maxWdt-=widthBias;this.fontOptions.minWdt-=widthBias}var heightBias=margins?margins.top+margins.bottom:0;if(this.fontOptions.constrainHeight){this.fontOptions.minHgt-=heightBias}}},{key:\"addFontOptionsToPile\",value:function addFontOptionsToPile(dstPile,srcPile){for(var i=0;i<srcPile.length;++i){this.addFontToPile(dstPile,srcPile[i])}}},{key:\"addFontToPile\",value:function addFontToPile(pile,options){if(options===undefined)return;if(options.font===undefined||options.font===null)return;var item=options.font;pile.push(item)}},{key:\"getBasicOptions\",value:function getBasicOptions(pile){var ret={};for(var n=0;n<pile.length;++n){var fontOptions=pile[n];var tmpShorthand={};if(Label.parseFontString(tmpShorthand,fontOptions)){fontOptions=tmpShorthand}util.forEach(fontOptions,function(opt,name){if(opt===undefined)return;if(ret.hasOwnProperty(name))return;if(multiFontStyle.indexOf(name)!==-1){ret[name]={}}else{ret[name]=opt}})}return ret}},{key:\"getFontOption\",value:function getFontOption(pile,multiName,option){var multiFont=void 0;for(var n=0;n<pile.length;++n){var fontOptions=pile[n];if(fontOptions.hasOwnProperty(multiName)){multiFont=fontOptions[multiName];if(multiFont===undefined||multiFont===null)continue;var tmpShorthand={};if(Label.parseFontString(tmpShorthand,multiFont)){multiFont=tmpShorthand}if(multiFont.hasOwnProperty(option)){return multiFont[option]}}}if(this.fontOptions.hasOwnProperty(option)){return this.fontOptions[option]}throw new Error(\"Did not find value for multi-font for property: '\"+option+\"'\")}},{key:\"getFontOptions\",value:function getFontOptions(pile,multiName){var result={};var optionNames=[\"color\",\"size\",\"face\",\"mod\",\"vadjust\"];for(var i=0;i<optionNames.length;++i){var mod=optionNames[i];result[mod]=this.getFontOption(pile,multiName,mod)}return result}},{key:\"propagateFonts\",value:function propagateFonts(pile){var _this2=this;var fontPile=[];this.addFontOptionsToPile(fontPile,pile);this.fontOptions=this.getBasicOptions(fontPile);var _loop=function _loop(i){var mod=multiFontStyle[i];var modOptions=_this2.fontOptions[mod];var tmpMultiFontOptions=_this2.getFontOptions(fontPile,mod);util.forEach(tmpMultiFontOptions,function(option,n){modOptions[n]=option});modOptions.size=Number(modOptions.size);modOptions.vadjust=Number(modOptions.vadjust)};for(var i=0;i<multiFontStyle.length;++i){_loop(i)}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover){var baseline=arguments.length>5&&arguments[5]!==undefined?arguments[5]:\"middle\";if(this.elementOptions.label===undefined)return;var viewFontSize=this.fontOptions.size*this.body.view.scale;if(this.elementOptions.label&&viewFontSize<this.elementOptions.scaling.label.drawThreshold-1)return;if(viewFontSize>=this.elementOptions.scaling.label.maxVisible){viewFontSize=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale}this.calculateLabelSize(ctx,selected,hover,x,y,baseline);this._drawBackground(ctx);this._drawText(ctx,x,this.size.yLine,baseline,viewFontSize)}},{key:\"_drawBackground\",value:function _drawBackground(ctx){if(this.fontOptions.background!==undefined&&this.fontOptions.background!==\"none\"){ctx.fillStyle=this.fontOptions.background;var size=this.getSize();ctx.fillRect(size.left,size.top,size.width,size.height)}}},{key:\"_drawText\",value:function _drawText(ctx,x,y){var baseline=arguments.length>3&&arguments[3]!==undefined?arguments[3]:\"middle\";var viewFontSize=arguments[4];var _setAlignment2=this._setAlignment(ctx,x,y,baseline);var _setAlignment3=(0,_slicedToArray3[\"default\"])(_setAlignment2,2);x=_setAlignment3[0];y=_setAlignment3[1];ctx.textAlign=\"left\";x=x-this.size.width/2;if(this.fontOptions.valign&&this.size.height>this.size.labelHeight){if(this.fontOptions.valign===\"top\"){y-=(this.size.height-this.size.labelHeight)/2}if(this.fontOptions.valign===\"bottom\"){y+=(this.size.height-this.size.labelHeight)/2}}for(var i=0;i<this.lineCount;i++){var line=this.lines[i];if(line&&line.blocks){var width=0;if(this.isEdgeLabel||this.fontOptions.align===\"center\"){width+=(this.size.width-line.width)/2}else if(this.fontOptions.align===\"right\"){width+=this.size.width-line.width}for(var j=0;j<line.blocks.length;j++){var block=line.blocks[j];ctx.font=block.font;var _getColor2=this._getColor(block.color,viewFontSize,block.strokeColor),_getColor3=(0,_slicedToArray3[\"default\"])(_getColor2,2),fontColor=_getColor3[0],strokeColor=_getColor3[1];if(block.strokeWidth>0){ctx.lineWidth=block.strokeWidth;ctx.strokeStyle=strokeColor;ctx.lineJoin=\"round\"}ctx.fillStyle=fontColor;if(block.strokeWidth>0){ctx.strokeText(block.text,x+width,y+block.vadjust)}ctx.fillText(block.text,x+width,y+block.vadjust);width+=block.width}y+=line.height}}}},{key:\"_setAlignment\",value:function _setAlignment(ctx,x,y,baseline){if(this.isEdgeLabel&&this.fontOptions.align!==\"horizontal\"&&this.pointToSelf===false){x=0;y=0;var lineMargin=2;if(this.fontOptions.align===\"top\"){ctx.textBaseline=\"alphabetic\";y-=2*lineMargin}else if(this.fontOptions.align===\"bottom\"){ctx.textBaseline=\"hanging\";y+=2*lineMargin}else{ctx.textBaseline=\"middle\"}}else{ctx.textBaseline=baseline}return[x,y]}},{key:\"_getColor\",value:function _getColor(color,viewFontSize,initialStrokeColor){var fontColor=color||\"#000000\";var strokeColor=initialStrokeColor||\"#ffffff\";if(viewFontSize<=this.elementOptions.scaling.label.drawThreshold){var opacity=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-viewFontSize)));fontColor=util.overrideOpacity(fontColor,opacity);strokeColor=util.overrideOpacity(strokeColor,opacity)}return[fontColor,strokeColor]}},{key:\"getTextSize\",value:function getTextSize(ctx){var selected=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var hover=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;this._processLabel(ctx,selected,hover);return{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:\"getSize\",value:function getSize(){var lineMargin=2;var x=this.size.left;var y=this.size.top-.5*lineMargin;if(this.isEdgeLabel){var x2=-this.size.width*.5;switch(this.fontOptions.align){case\"middle\":x=x2;y=-this.size.height*.5;break;case\"top\":x=x2;y=-(this.size.height+lineMargin);break;case\"bottom\":x=x2;y=lineMargin;break}}var ret={left:x,top:y,width:this.size.width,height:this.size.height};return ret}},{key:\"calculateLabelSize\",value:function calculateLabelSize(ctx,selected,hover){var x=arguments.length>3&&arguments[3]!==undefined?arguments[3]:0;var y=arguments.length>4&&arguments[4]!==undefined?arguments[4]:0;var baseline=arguments.length>5&&arguments[5]!==undefined?arguments[5]:\"middle\";this._processLabel(ctx,selected,hover);this.size.left=x-this.size.width*.5;this.size.top=y-this.size.height*.5;this.size.yLine=y+(1-this.lineCount)*.5*this.fontOptions.size;if(baseline===\"hanging\"){this.size.top+=.5*this.fontOptions.size;this.size.top+=4;this.size.yLine+=4}}},{key:\"getFormattingValues\",value:function getFormattingValues(ctx,selected,hover,mod){var getValue=function getValue(fontOptions,mod,option){if(mod===\"normal\"){if(option===\"mod\")return\"\";return fontOptions[option]}if(fontOptions[mod][option]!==undefined){return fontOptions[mod][option]}else{return fontOptions[option]}};var values={color:getValue(this.fontOptions,mod,\"color\"),size:getValue(this.fontOptions,mod,\"size\"),face:getValue(this.fontOptions,mod,\"face\"),mod:getValue(this.fontOptions,mod,\"mod\"),vadjust:getValue(this.fontOptions,mod,\"vadjust\"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};if(selected||hover){if(mod===\"normal\"&&this.fontOptions.chooser===true&&this.elementOptions.labelHighlightBold){values.mod=\"bold\"}else{if(typeof this.fontOptions.chooser===\"function\"){this.fontOptions.chooser(values,this.elementOptions.id,selected,hover)}}}var fontString=\"\";if(values.mod!==undefined&&values.mod!==\"\"){fontString+=values.mod+\" \"}fontString+=values.size+\"px \"+values.face;ctx.font=fontString.replace(/\"/g,\"\");values.font=ctx.font;values.height=values.size;return values}},{key:\"differentState\",value:function differentState(selected,hover){return selected!==this.selectedState||hover!==this.hoverState}},{key:\"_processLabelText\",value:function _processLabelText(ctx,selected,hover,inText){var splitter=new LabelSplitter(ctx,this,selected,hover);return splitter.process(inText)}},{key:\"_processLabel\",value:function _processLabel(ctx,selected,hover){if(this.labelDirty===false&&!this.differentState(selected,hover))return;var state=this._processLabelText(ctx,selected,hover,this.elementOptions.label);if(this.fontOptions.minWdt>0&&state.width<this.fontOptions.minWdt){state.width=this.fontOptions.minWdt}this.size.labelHeight=state.height;if(this.fontOptions.minHgt>0&&state.height<this.fontOptions.minHgt){state.height=this.fontOptions.minHgt}this.lines=state.lines;this.lineCount=state.lines.length;this.size.width=state.width;this.size.height=state.height;this.selectedState=selected;this.hoverState=hover;this.labelDirty=false}},{key:\"visible\",value:function visible(){if(this.size.width===0||this.size.height===0||this.elementOptions.label===undefined){return false}var viewFontSize=this.fontOptions.size*this.body.view.scale;if(viewFontSize<this.elementOptions.scaling.label.drawThreshold-1){return false}return true}}],[{key:\"parseFontString\",value:function parseFontString(outOptions,inOptions){if(!inOptions||typeof inOptions!==\"string\")return false;var newOptionsArray=inOptions.split(\" \");outOptions.size=newOptionsArray[0].replace(\"px\",\"\");outOptions.face=newOptionsArray[1];outOptions.color=newOptionsArray[2];return true}}]);return Label}();exports[\"default\"]=Label},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _slicedToArray2=__webpack_require__(30);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var EndPoints=__webpack_require__(119)[\"default\"];var EdgeBase=function(){function EdgeBase(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,EdgeBase);this.body=body;this.labelModule=labelModule\n;this.options={};this.setOptions(options);this.colorDirty=true;this.color={};this.selectionWidth=2;this.hoverWidth=1.5;this.fromPoint=this.from;this.toPoint=this.to}(0,_createClass3[\"default\"])(EdgeBase,[{key:\"connect\",value:function connect(){this.from=this.body.nodes[this.options.from];this.to=this.body.nodes[this.options.to]}},{key:\"cleanup\",value:function cleanup(){return false}},{key:\"setOptions\",value:function setOptions(options){this.options=options;this.from=this.body.nodes[this.options.from];this.to=this.body.nodes[this.options.to];this.id=this.options.id}},{key:\"drawLine\",value:function drawLine(ctx,values,selected,hover,viaNode){ctx.strokeStyle=this.getColor(ctx,values,selected,hover);ctx.lineWidth=values.width;if(values.dashes!==false){this._drawDashedLine(ctx,values,viaNode)}else{this._drawLine(ctx,values,viaNode)}}},{key:\"_drawLine\",value:function _drawLine(ctx,values,viaNode,fromPoint,toPoint){if(this.from!=this.to){this._line(ctx,values,viaNode,fromPoint,toPoint)}else{var _getCircleData2=this._getCircleData(ctx),_getCircleData3=(0,_slicedToArray3[\"default\"])(_getCircleData2,3),x=_getCircleData3[0],y=_getCircleData3[1],radius=_getCircleData3[2];this._circle(ctx,values,x,y,radius)}}},{key:\"_drawDashedLine\",value:function _drawDashedLine(ctx,values,viaNode,fromPoint,toPoint){ctx.lineCap=\"round\";var pattern=[5,5];if(Array.isArray(values.dashes)===true){pattern=values.dashes}if(ctx.setLineDash!==undefined){ctx.save();ctx.setLineDash(pattern);ctx.lineDashOffset=0;if(this.from!=this.to){this._line(ctx,values,viaNode)}else{var _getCircleData4=this._getCircleData(ctx),_getCircleData5=(0,_slicedToArray3[\"default\"])(_getCircleData4,3),x=_getCircleData5[0],y=_getCircleData5[1],radius=_getCircleData5[2];this._circle(ctx,values,x,y,radius)}ctx.setLineDash([0]);ctx.lineDashOffset=0;ctx.restore()}else{if(this.from!=this.to){ctx.dashedLine(this.from.x,this.from.y,this.to.x,this.to.y,pattern)}else{var _getCircleData6=this._getCircleData(ctx),_getCircleData7=(0,_slicedToArray3[\"default\"])(_getCircleData6,3),_x=_getCircleData7[0],_y=_getCircleData7[1],_radius=_getCircleData7[2];this._circle(ctx,values,_x,_y,_radius)}this.enableShadow(ctx,values);ctx.stroke();this.disableShadow(ctx,values)}}},{key:\"findBorderPosition\",value:function findBorderPosition(nearNode,ctx,options){if(this.from!=this.to){return this._findBorderPosition(nearNode,ctx,options)}else{return this._findBorderPositionCircle(nearNode,ctx,options)}}},{key:\"findBorderPositions\",value:function findBorderPositions(ctx){var from={};var to={};if(this.from!=this.to){from=this._findBorderPosition(this.from,ctx);to=this._findBorderPosition(this.to,ctx)}else{var _getCircleData$slice=this._getCircleData(ctx).slice(0,2),_getCircleData$slice2=(0,_slicedToArray3[\"default\"])(_getCircleData$slice,2),x=_getCircleData$slice2[0],y=_getCircleData$slice2[1];from=this._findBorderPositionCircle(this.from,ctx,{x:x,y:y,low:.25,high:.6,direction:-1});to=this._findBorderPositionCircle(this.from,ctx,{x:x,y:y,low:.6,high:.8,direction:1})}return{from:from,to:to}}},{key:\"_getCircleData\",value:function _getCircleData(ctx){var x=void 0,y=void 0;var node=this.from;var radius=this.options.selfReferenceSize;if(ctx!==undefined){if(node.shape.width===undefined){node.shape.resize(ctx)}}if(node.shape.width>node.shape.height){x=node.x+node.shape.width*.5;y=node.y-radius}else{x=node.x+radius;y=node.y-node.shape.height*.5}return[x,y,radius]}},{key:\"_pointOnCircle\",value:function _pointOnCircle(x,y,radius,percentage){var angle=percentage*2*Math.PI;return{x:x+radius*Math.cos(angle),y:y-radius*Math.sin(angle)}}},{key:\"_findBorderPositionCircle\",value:function _findBorderPositionCircle(node,ctx,options){var x=options.x;var y=options.y;var low=options.low;var high=options.high;var direction=options.direction;var maxIterations=10;var iteration=0;var radius=this.options.selfReferenceSize;var pos=void 0,angle=void 0,distanceToBorder=void 0,distanceToPoint=void 0,difference=void 0;var threshold=.05;var middle=(low+high)*.5;while(low<=high&&iteration<maxIterations){middle=(low+high)*.5;pos=this._pointOnCircle(x,y,radius,middle);angle=Math.atan2(node.y-pos.y,node.x-pos.x);distanceToBorder=node.distanceToBorder(ctx,angle);distanceToPoint=Math.sqrt(Math.pow(pos.x-node.x,2)+Math.pow(pos.y-node.y,2));difference=distanceToBorder-distanceToPoint;if(Math.abs(difference)<threshold){break}else if(difference>0){if(direction>0){low=middle}else{high=middle}}else{if(direction>0){high=middle}else{low=middle}}iteration++}pos.t=middle;return pos}},{key:\"getLineWidth\",value:function getLineWidth(selected,hover){if(selected===true){return Math.max(this.selectionWidth,.3/this.body.view.scale)}else{if(hover===true){return Math.max(this.hoverWidth,.3/this.body.view.scale)}else{return Math.max(this.options.width,.3/this.body.view.scale)}}}},{key:\"getColor\",value:function getColor(ctx,values,selected,hover){if(values.inheritsColor!==false){if(values.inheritsColor===\"both\"&&this.from.id!==this.to.id){var grd=ctx.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y);var fromColor=void 0,toColor=void 0;fromColor=this.from.options.color.highlight.border;toColor=this.to.options.color.highlight.border;if(this.from.selected===false&&this.to.selected===false){fromColor=util.overrideOpacity(this.from.options.color.border,values.opacity);toColor=util.overrideOpacity(this.to.options.color.border,values.opacity)}else if(this.from.selected===true&&this.to.selected===false){toColor=this.to.options.color.border}else if(this.from.selected===false&&this.to.selected===true){fromColor=this.from.options.color.border}grd.addColorStop(0,fromColor);grd.addColorStop(1,toColor);return grd}if(values.inheritsColor===\"to\"){return util.overrideOpacity(this.to.options.color.border,values.opacity)}else{return util.overrideOpacity(this.from.options.color.border,values.opacity)}}else{return util.overrideOpacity(values.color,values.opacity)}}},{key:\"_circle\",value:function _circle(ctx,values,x,y,radius){this.enableShadow(ctx,values);ctx.beginPath();ctx.arc(x,y,radius,0,2*Math.PI,false);ctx.stroke();this.disableShadow(ctx,values)}},{key:\"getDistanceToEdge\",value:function getDistanceToEdge(x1,y1,x2,y2,x3,y3,via,values){var returnValue=0;if(this.from!=this.to){returnValue=this._getDistanceToEdge(x1,y1,x2,y2,x3,y3,via)}else{var _getCircleData8=this._getCircleData(undefined),_getCircleData9=(0,_slicedToArray3[\"default\"])(_getCircleData8,3),x=_getCircleData9[0],y=_getCircleData9[1],radius=_getCircleData9[2];var dx=x-x3;var dy=y-y3;returnValue=Math.abs(Math.sqrt(dx*dx+dy*dy)-radius)}return returnValue}},{key:\"_getDistanceToLine\",value:function _getDistanceToLine(x1,y1,x2,y2,x3,y3){var px=x2-x1;var py=y2-y1;var something=px*px+py*py;var u=((x3-x1)*px+(y3-y1)*py)/something;if(u>1){u=1}else if(u<0){u=0}var x=x1+u*px;var y=y1+u*py;var dx=x-x3;var dy=y-y3;return Math.sqrt(dx*dx+dy*dy)}},{key:\"getArrowData\",value:function getArrowData(ctx,position,viaNode,selected,hover,values){var angle=void 0;var arrowPoint=void 0;var node1=void 0;var node2=void 0;var guideOffset=void 0;var scaleFactor=void 0;var type=void 0;var lineWidth=values.width;if(position===\"from\"){node1=this.from;node2=this.to;guideOffset=.1;scaleFactor=values.fromArrowScale;type=values.fromArrowType}else if(position===\"to\"){node1=this.to;node2=this.from;guideOffset=-.1;scaleFactor=values.toArrowScale;type=values.toArrowType}else{node1=this.to;node2=this.from;scaleFactor=values.middleArrowScale;type=values.middleArrowType}if(node1!=node2){if(position!==\"middle\"){if(this.options.smooth.enabled===true){arrowPoint=this.findBorderPosition(node1,ctx,{via:viaNode});var guidePos=this.getPoint(Math.max(0,Math.min(1,arrowPoint.t+guideOffset)),viaNode);angle=Math.atan2(arrowPoint.y-guidePos.y,arrowPoint.x-guidePos.x)}else{angle=Math.atan2(node1.y-node2.y,node1.x-node2.x);arrowPoint=this.findBorderPosition(node1,ctx)}}else{angle=Math.atan2(node1.y-node2.y,node1.x-node2.x);arrowPoint=this.getPoint(.5,viaNode)}}else{var _getCircleData10=this._getCircleData(ctx),_getCircleData11=(0,_slicedToArray3[\"default\"])(_getCircleData10,3),x=_getCircleData11[0],y=_getCircleData11[1],radius=_getCircleData11[2];if(position===\"from\"){arrowPoint=this.findBorderPosition(this.from,ctx,{x:x,y:y,low:.25,high:.6,direction:-1});angle=arrowPoint.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI}else if(position===\"to\"){arrowPoint=this.findBorderPosition(this.from,ctx,{x:x,y:y,low:.6,high:1,direction:1});angle=arrowPoint.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI}else{arrowPoint=this._pointOnCircle(x,y,radius,.175);angle=3.9269908169872414}}if(position===\"middle\"&&scaleFactor<0)lineWidth*=-1;var length=15*scaleFactor+3*lineWidth;var xi=arrowPoint.x-length*.9*Math.cos(angle);var yi=arrowPoint.y-length*.9*Math.sin(angle);var arrowCore={x:xi,y:yi};return{point:arrowPoint,core:arrowCore,angle:angle,length:length,type:type}}},{key:\"drawArrowHead\",value:function drawArrowHead(ctx,values,selected,hover,arrowData){ctx.strokeStyle=this.getColor(ctx,values,selected,hover);ctx.fillStyle=ctx.strokeStyle;ctx.lineWidth=values.width;EndPoints.draw(ctx,arrowData);this.enableShadow(ctx,values);ctx.fill();this.disableShadow(ctx,values)}},{key:\"enableShadow\",value:function enableShadow(ctx,values){if(values.shadow===true){ctx.shadowColor=values.shadowColor;ctx.shadowBlur=values.shadowSize;ctx.shadowOffsetX=values.shadowX;ctx.shadowOffsetY=values.shadowY}}},{key:\"disableShadow\",value:function disableShadow(ctx,values){if(values.shadow===true){ctx.shadowColor=\"rgba(0,0,0,0)\";ctx.shadowBlur=0;ctx.shadowOffsetX=0;ctx.shadowOffsetY=0}}}]);return EdgeBase}();exports[\"default\"]=EdgeBase},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var EndPoint=function(){function EndPoint(){(0,_classCallCheck3[\"default\"])(this,EndPoint)}(0,_createClass3[\"default\"])(EndPoint,null,[{key:\"transform\",value:function transform(points,arrowData){if(!(points instanceof Array)){points=[points]}var x=arrowData.point.x;var y=arrowData.point.y;var angle=arrowData.angle;var length=arrowData.length;for(var i=0;i<points.length;++i){var p=points[i];var xt=p.x*Math.cos(angle)-p.y*Math.sin(angle);var yt=p.x*Math.sin(angle)+p.y*Math.cos(angle);p.x=x+length*xt;p.y=y+length*yt}}},{key:\"drawPath\",value:function drawPath(ctx,points){ctx.beginPath();ctx.moveTo(points[0].x,points[0].y);for(var i=1;i<points.length;++i){ctx.lineTo(points[i].x,points[i].y)}ctx.closePath()}}]);return EndPoint}();var Arrow=function(_EndPoint){(0,_inherits3[\"default\"])(Arrow,_EndPoint);function Arrow(){(0,_classCallCheck3[\"default\"])(this,Arrow);return(0,_possibleConstructorReturn3[\"default\"])(this,(Arrow.__proto__||(0,_getPrototypeOf2[\"default\"])(Arrow)).apply(this,arguments))}(0,_createClass3[\"default\"])(Arrow,null,[{key:\"draw\",value:function draw(ctx,arrowData){var points=[{x:0,y:0},{x:-1,y:.3},{x:-.9,y:0},{x:-1,y:-.3}];EndPoint.transform(points,arrowData);EndPoint.drawPath(ctx,points)}}]);return Arrow}(EndPoint);var Circle=function(){function Circle(){(0,_classCallCheck3[\"default\"])(this,Circle)}(0,_createClass3[\"default\"])(Circle,null,[{key:\"draw\",value:function draw(ctx,arrowData){var point={x:-.4,y:0};EndPoint.transform(point,arrowData);ctx.circle(point.x,point.y,arrowData.length*.4)}}]);return Circle}();var Bar=function(){function Bar(){(0,_classCallCheck3[\"default\"])(this,Bar)}(0,_createClass3[\"default\"])(Bar,null,[{key:\"draw\",value:function draw(ctx,arrowData){var points=[{x:0,y:.5},{x:0,y:-.5},{x:-.15,y:-.5},{x:-.15,y:.5}];EndPoint.transform(points,arrowData);EndPoint.drawPath(ctx,points)}}]);return Bar}();var EndPoints=function(){function EndPoints(){(0,_classCallCheck3[\"default\"])(this,EndPoints)}(0,_createClass3[\"default\"])(EndPoints,null,[{key:\"draw\",value:function draw(ctx,arrowData){var type;if(arrowData.type){type=arrowData.type.toLowerCase()}switch(type){case\"circle\":Circle.draw(ctx,arrowData);break;case\"bar\":Bar.draw(ctx,arrowData);break;case\"arrow\":default:Arrow.draw(ctx,arrowData)}}}]);return EndPoints}();exports[\"default\"]=EndPoints},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var BarnesHutSolver=function(){function BarnesHutSolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,BarnesHutSolver);this.body=body;this.physicsBody=physicsBody;this.barnesHutTree;this.setOptions(options);this.randomSeed=5}(0,_createClass3[\"default\"])(BarnesHutSolver,[{key:\"setOptions\",value:function setOptions(options){this.options=options;this.thetaInversed=1/this.options.theta;this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:\"seededRandom\",value:function seededRandom(){var x=Math.sin(this.randomSeed++)*1e4;return x-Math.floor(x)}},{key:\"solve\",value:function solve(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){var node=void 0;var nodes=this.body.nodes;var nodeIndices=this.physicsBody.physicsNodeIndices;var nodeCount=nodeIndices.length;var barnesHutTree=this._formBarnesHutTree(nodes,nodeIndices);this.barnesHutTree=barnesHutTree;for(var i=0;i<nodeCount;i++){node=nodes[nodeIndices[i]];if(node.options.mass>0){this._getForceContributions(barnesHutTree.root,node)}}}}},{key:\"_getForceContributions\",value:function _getForceContributions(parentBranch,node){this._getForceContribution(parentBranch.children.NW,node);this._getForceContribution(parentBranch.children.NE,node);this._getForceContribution(parentBranch.children.SW,node);this._getForceContribution(parentBranch.children.SE,node)}},{key:\"_getForceContribution\",value:function _getForceContribution(parentBranch,node){if(parentBranch.childrenCount>0){var dx=void 0,dy=void 0,distance=void 0;dx=parentBranch.centerOfMass.x-node.x;dy=parentBranch.centerOfMass.y-node.y;distance=Math.sqrt(dx*dx+dy*dy);if(distance*parentBranch.calcSize>this.thetaInversed){this._calculateForces(distance,dx,dy,node,parentBranch)}else{if(parentBranch.childrenCount===4){this._getForceContributions(parentBranch,node)}else{if(parentBranch.children.data.id!=node.id){this._calculateForces(distance,dx,dy,node,parentBranch)}}}}}},{key:\"_calculateForces\",value:function _calculateForces(distance,dx,dy,node,parentBranch){if(distance===0){distance=.1;dx=distance}if(this.overlapAvoidanceFactor<1&&node.shape.radius){distance=Math.max(.1+this.overlapAvoidanceFactor*node.shape.radius,distance-node.shape.radius)}var gravityForce=this.options.gravitationalConstant*parentBranch.mass*node.options.mass/Math.pow(distance,3);var fx=dx*gravityForce;var fy=dy*gravityForce;this.physicsBody.forces[node.id].x+=fx;this.physicsBody.forces[node.id].y+=fy}},{key:\"_formBarnesHutTree\",value:function _formBarnesHutTree(nodes,nodeIndices){var node=void 0;var nodeCount=nodeIndices.length;var minX=nodes[nodeIndices[0]].x;var minY=nodes[nodeIndices[0]].y;var maxX=nodes[nodeIndices[0]].x;var maxY=nodes[nodeIndices[0]].y;for(var i=1;i<nodeCount;i++){var _node=nodes[nodeIndices[i]];var x=_node.x;var y=_node.y;if(_node.options.mass>0){if(x<minX){minX=x}if(x>maxX){maxX=x}if(y<minY){minY=y}if(y>maxY){maxY=y}}}var sizeDiff=Math.abs(maxX-minX)-Math.abs(maxY-minY);if(sizeDiff>0){minY-=.5*sizeDiff;maxY+=.5*sizeDiff}else{minX+=.5*sizeDiff;maxX-=.5*sizeDiff}var minimumTreeSize=1e-5;var rootSize=Math.max(minimumTreeSize,Math.abs(maxX-minX));var halfRootSize=.5*rootSize;var centerX=.5*(minX+maxX),centerY=.5*(minY+maxY);var barnesHutTree={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:centerX-halfRootSize,maxX:centerX+halfRootSize,minY:centerY-halfRootSize,maxY:centerY+halfRootSize},size:rootSize,calcSize:1/rootSize,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(barnesHutTree.root);for(var _i=0;_i<nodeCount;_i++){node=nodes[nodeIndices[_i]];if(node.options.mass>0){this._placeInTree(barnesHutTree.root,node)}}return barnesHutTree}},{key:\"_updateBranchMass\",value:function _updateBranchMass(parentBranch,node){var centerOfMass=parentBranch.centerOfMass;var totalMass=parentBranch.mass+node.options.mass;var totalMassInv=1/totalMass;centerOfMass.x=centerOfMass.x*parentBranch.mass+node.x*node.options.mass;centerOfMass.x*=totalMassInv;centerOfMass.y=centerOfMass.y*parentBranch.mass+node.y*node.options.mass;centerOfMass.y*=totalMassInv;parentBranch.mass=totalMass;var biggestSize=Math.max(Math.max(node.height,node.radius),node.width);parentBranch.maxWidth=parentBranch.maxWidth<biggestSize?biggestSize:parentBranch.maxWidth}},{key:\"_placeInTree\",value:function _placeInTree(parentBranch,node,skipMassUpdate){if(skipMassUpdate!=true||skipMassUpdate===undefined){this._updateBranchMass(parentBranch,node)}var range=parentBranch.children.NW.range;var region=void 0;if(range.maxX>node.x){if(range.maxY>node.y){region=\"NW\"}else{region=\"SW\"}}else{if(range.maxY>node.y){region=\"NE\"}else{region=\"SE\"}}this._placeInRegion(parentBranch,node,region)}},{key:\"_placeInRegion\",value:function _placeInRegion(parentBranch,node,region){var children=parentBranch.children[region];switch(children.childrenCount){case 0:children.children.data=node;children.childrenCount=1;this._updateBranchMass(children,node);break;case 1:if(children.children.data.x===node.x&&children.children.data.y===node.y){node.x+=this.seededRandom();node.y+=this.seededRandom()}else{this._splitBranch(children);this._placeInTree(children,node)}break;case 4:this._placeInTree(children,node);break}}},{key:\"_splitBranch\",value:function _splitBranch(parentBranch){var containedNode=null;if(parentBranch.childrenCount===1){containedNode=parentBranch.children.data;parentBranch.mass=0;parentBranch.centerOfMass.x=0;parentBranch.centerOfMass.y=0}parentBranch.childrenCount=4;parentBranch.children.data=null;this._insertRegion(parentBranch,\"NW\");this._insertRegion(parentBranch,\"NE\");this._insertRegion(parentBranch,\"SW\");this._insertRegion(parentBranch,\"SE\");if(containedNode!=null){this._placeInTree(parentBranch,containedNode)}}},{key:\"_insertRegion\",value:function _insertRegion(parentBranch,region){var minX=void 0,maxX=void 0,minY=void 0,maxY=void 0;var childSize=.5*parentBranch.size;switch(region){case\"NW\":minX=parentBranch.range.minX;maxX=parentBranch.range.minX+childSize;minY=parentBranch.range.minY;maxY=parentBranch.range.minY+childSize;break;case\"NE\":minX=parentBranch.range.minX+childSize;maxX=parentBranch.range.maxX;minY=parentBranch.range.minY;maxY=parentBranch.range.minY+childSize;break;case\"SW\":minX=parentBranch.range.minX;maxX=parentBranch.range.minX+childSize;minY=parentBranch.range.minY+childSize;maxY=parentBranch.range.maxY;break;case\"SE\":minX=parentBranch.range.minX+childSize;maxX=parentBranch.range.maxX;minY=parentBranch.range.minY+childSize;maxY=parentBranch.range.maxY;break}parentBranch.children[region]={centerOfMass:{x:0,y:0},mass:0,range:{minX:minX,maxX:maxX,minY:minY,maxY:maxY},size:.5*parentBranch.size,calcSize:2*parentBranch.calcSize,children:{data:null},maxWidth:0,level:parentBranch.level+1,childrenCount:0}}},{key:\"_debug\",value:function _debug(ctx,color){if(this.barnesHutTree!==undefined){ctx.lineWidth=1;this._drawBranch(this.barnesHutTree.root,ctx,color)}}},{key:\"_drawBranch\",value:function _drawBranch(branch,ctx,color){if(color===undefined){color=\"#FF0000\"}if(branch.childrenCount===4){this._drawBranch(branch.children.NW,ctx);this._drawBranch(branch.children.NE,ctx);this._drawBranch(branch.children.SE,ctx);this._drawBranch(branch.children.SW,ctx)}ctx.strokeStyle=color;ctx.beginPath();ctx.moveTo(branch.range.minX,branch.range.minY);ctx.lineTo(branch.range.maxX,branch.range.minY);ctx.stroke();ctx.beginPath();ctx.moveTo(branch.range.maxX,branch.range.minY);ctx.lineTo(branch.range.maxX,branch.range.maxY);ctx.stroke();ctx.beginPath();ctx.moveTo(branch.range.maxX,branch.range.maxY);ctx.lineTo(branch.range.minX,branch.range.maxY);ctx.stroke();ctx.beginPath();ctx.moveTo(branch.range.minX,branch.range.maxY);ctx.lineTo(branch.range.minX,branch.range.minY);ctx.stroke()}}]);return BarnesHutSolver}();exports[\"default\"]=BarnesHutSolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var CentralGravitySolver=function(){function CentralGravitySolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,CentralGravitySolver);this.body=body;this.physicsBody=physicsBody;this.setOptions(options)}(0,_createClass3[\"default\"])(CentralGravitySolver,[{key:\"setOptions\",value:function setOptions(options){this.options=options}},{key:\"solve\",value:function solve(){var dx=void 0,dy=void 0,distance=void 0,node=void 0;var nodes=this.body.nodes;var nodeIndices=this.physicsBody.physicsNodeIndices;var forces=this.physicsBody.forces;for(var i=0;i<nodeIndices.length;i++){var nodeId=nodeIndices[i];node=nodes[nodeId];dx=-node.x;dy=-node.y;distance=Math.sqrt(dx*dx+dy*dy);this._calculateForces(distance,dx,dy,forces,node)}}},{key:\"_calculateForces\",value:function _calculateForces(distance,dx,dy,forces,node){var gravityForce=distance===0?0:this.options.centralGravity/distance;forces[node.id].x=dx*gravityForce;forces[node.id].y=dy*gravityForce}}]);return CentralGravitySolver}();exports[\"default\"]=CentralGravitySolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var string=\"string\";var bool=\"boolean\";var number=\"number\";var array=\"array\";var object=\"object\";var dom=\"dom\";var any=\"any\";var endPoints=[\"arrow\",\"circle\",\"bar\"];var allOptions={configure:{enabled:{boolean:bool},filter:{boolean:bool,string:string,array:array,function:\"function\"},container:{dom:dom},showButton:{boolean:bool},__type__:{object:object,boolean:bool,string:string,array:array,function:\"function\"}},edges:{arrows:{to:{enabled:{boolean:bool},scaleFactor:{number:number},type:{string:endPoints},__type__:{object:object,boolean:bool}},middle:{enabled:{boolean:bool},scaleFactor:{number:number},type:{string:endPoints},__type__:{object:object,boolean:bool}},from:{enabled:{boolean:bool},scaleFactor:{number:number},type:{string:endPoints},__type__:{object:object,boolean:bool}},__type__:{string:[\"from\",\"to\",\"middle\"],object:object}},arrowStrikethrough:{boolean:bool},chosen:{label:{boolean:bool,function:\"function\"},edge:{boolean:bool,function:\"function\"},__type__:{object:object,boolean:bool}},color:{color:{string:string},highlight:{string:string},hover:{string:string},inherit:{string:[\"from\",\"to\",\"both\"],boolean:bool},opacity:{number:number},__type__:{object:object,string:string}},dashes:{boolean:bool,array:array},font:{color:{string:string},size:{number:number},face:{string:string},background:{string:string},strokeWidth:{number:number},strokeColor:{string:string},align:{string:[\"horizontal\",\"top\",\"middle\",\"bottom\"]},vadjust:{number:number},multi:{boolean:bool,string:string},bold:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},boldital:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},ital:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},mono:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},__type__:{object:object,string:string}},hidden:{boolean:bool},hoverWidth:{function:\"function\",number:number},label:{string:string,undefined:\"undefined\"},labelHighlightBold:{boolean:bool},length:{number:number,undefined:\"undefined\"},physics:{boolean:bool},scaling:{min:{number:number},max:{number:number},label:{enabled:{boolean:bool},min:{number:number},max:{number:number},maxVisible:{number:number},drawThreshold:{number:number},__type__:{object:object,boolean:bool}},customScalingFunction:{function:\"function\"},__type__:{object:object}},selectionWidth:{function:\"function\",number:number},selfReferenceSize:{number:number},shadow:{enabled:{boolean:bool},color:{string:string},size:{number:number},x:{number:number},y:{number:number},__type__:{object:object,boolean:bool}},smooth:{enabled:{boolean:bool},type:{string:[\"dynamic\",\"continuous\",\"discrete\",\"diagonalCross\",\"straightCross\",\"horizontal\",\"vertical\",\"curvedCW\",\"curvedCCW\",\"cubicBezier\"]},roundness:{number:number},forceDirection:{string:[\"horizontal\",\"vertical\",\"none\"],boolean:bool},__type__:{object:object,boolean:bool}},title:{string:string,undefined:\"undefined\"},width:{number:number},widthConstraint:{maximum:{number:number},__type__:{object:object,boolean:bool,number:number}},value:{number:number,undefined:\"undefined\"},__type__:{object:object}},groups:{useDefaultGroups:{boolean:bool},__any__:\"get from nodes, will be overwritten below\",__type__:{object:object}},interaction:{dragNodes:{boolean:bool},dragView:{boolean:bool},hideEdgesOnDrag:{boolean:bool},hideNodesOnDrag:{boolean:bool},hover:{boolean:bool},keyboard:{enabled:{boolean:bool},speed:{x:{number:number},y:{number:number},zoom:{number:number},__type__:{object:object}},bindToWindow:{boolean:bool},__type__:{object:object,boolean:bool}},multiselect:{boolean:bool},navigationButtons:{boolean:bool},selectable:{boolean:bool},selectConnectedEdges:{boolean:bool},hoverConnectedEdges:{boolean:bool},tooltipDelay:{number:number},zoomView:{boolean:bool},__type__:{object:object}},layout:{randomSeed:{undefined:\"undefined\",number:number},improvedLayout:{boolean:bool},hierarchical:{enabled:{boolean:bool},levelSeparation:{number:number},nodeSpacing:{number:number},treeSpacing:{number:number},blockShifting:{boolean:bool},edgeMinimization:{boolean:bool},parentCentralization:{boolean:bool},direction:{string:[\"UD\",\"DU\",\"LR\",\"RL\"]},sortMethod:{string:[\"hubsize\",\"directed\"]},__type__:{object:object,boolean:bool}},__type__:{object:object}},manipulation:{enabled:{boolean:bool},initiallyActive:{boolean:bool},addNode:{boolean:bool,function:\"function\"},addEdge:{boolean:bool,function:\"function\"},editNode:{function:\"function\"},editEdge:{editWithoutDrag:{function:\"function\"},__type__:{object:object,boolean:bool,function:\"function\"}},deleteNode:{boolean:bool,function:\"function\"},deleteEdge:{boolean:bool,function:\"function\"},controlNodeStyle:\"get from nodes, will be overwritten below\",__type__:{object:object,boolean:bool}},nodes:{borderWidth:{number:number},borderWidthSelected:{number:number,undefined:\"undefined\"},brokenImage:{string:string,undefined:\"undefined\"},chosen:{label:{boolean:bool,function:\"function\"},node:{boolean:bool,function:\"function\"},__type__:{object:object,boolean:bool}},color:{border:{string:string},background:{string:string},highlight:{border:{string:string},background:{string:string},__type__:{object:object,string:string}},hover:{border:{string:string},background:{string:string},__type__:{object:object,string:string}},__type__:{object:object,string:string}},fixed:{x:{boolean:bool},y:{boolean:bool},__type__:{object:object,boolean:bool}},font:{align:{string:string},color:{string:string},size:{number:number},face:{string:string},background:{string:string},strokeWidth:{number:number},strokeColor:{string:string},vadjust:{number:number},multi:{boolean:bool,string:string},bold:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},boldital:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},ital:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},mono:{color:{string:string},size:{number:number},face:{string:string},mod:{string:string},vadjust:{number:number},__type__:{object:object,string:string}},__type__:{object:object,string:string}},group:{string:string,number:number,undefined:\"undefined\"},heightConstraint:{minimum:{number:number},valign:{string:string},__type__:{object:object,boolean:bool,number:number}},hidden:{boolean:bool},icon:{face:{string:string},code:{string:string},size:{number:number},color:{string:string},__type__:{object:object}},id:{string:string,number:number},image:{selected:{string:string,undefined:\"undefined\"},unselected:{string:string,undefined:\"undefined\"},__type__:{object:object,string:string}},label:{string:string,undefined:\"undefined\"},labelHighlightBold:{boolean:bool},level:{number:number,undefined:\"undefined\"},margin:{top:{number:number},right:{number:number},bottom:{number:number},left:{number:number},__type__:{object:object,number:number}},mass:{number:number},physics:{boolean:bool},scaling:{min:{number:number},max:{number:number},label:{enabled:{boolean:bool},min:{number:number},max:{number:number},maxVisible:{number:number},drawThreshold:{number:number},__type__:{object:object,boolean:bool}},customScalingFunction:{function:\"function\"},__type__:{object:object}},shadow:{enabled:{boolean:bool},color:{string:string},size:{number:number},x:{number:number},y:{number:number},__type__:{object:object,boolean:bool}},shape:{string:[\"ellipse\",\"circle\",\"database\",\"box\",\"text\",\"image\",\"circularImage\",\"diamond\",\"dot\",\"star\",\"triangle\",\"triangleDown\",\"square\",\"icon\",\"hexagon\"]},shapeProperties:{borderDashes:{boolean:bool,array:array},borderRadius:{number:number},interpolation:{boolean:bool},useImageSize:{boolean:bool},useBorderWithImage:{boolean:bool},__type__:{object:object}},size:{number:number},title:{string:string,dom:dom,undefined:\"undefined\"},value:{number:number,undefined:\"undefined\"},widthConstraint:{minimum:{number:number},maximum:{number:number},__type__:{object:object,boolean:bool,number:number}},x:{number:number},y:{number:number},__type__:{object:object}},physics:{enabled:{boolean:bool},barnesHut:{gravitationalConstant:{number:number},centralGravity:{number:number},springLength:{number:number},springConstant:{number:number},damping:{number:number},avoidOverlap:{number:number},__type__:{object:object}},forceAtlas2Based:{gravitationalConstant:{number:number},centralGravity:{number:number},springLength:{number:number},springConstant:{number:number},damping:{number:number},avoidOverlap:{number:number},__type__:{object:object}},repulsion:{centralGravity:{number:number},springLength:{number:number},springConstant:{number:number},nodeDistance:{number:number},damping:{number:number},__type__:{object:object}},hierarchicalRepulsion:{centralGravity:{number:number},springLength:{number:number},springConstant:{number:number},nodeDistance:{number:number},damping:{number:number},__type__:{object:object}},maxVelocity:{number:number},minVelocity:{number:number},solver:{string:[\"barnesHut\",\"repulsion\",\"hierarchicalRepulsion\",\"forceAtlas2Based\"]},stabilization:{enabled:{boolean:bool},iterations:{number:number},updateInterval:{number:number},onlyDynamicEdges:{boolean:bool},\nfit:{boolean:bool},__type__:{object:object,boolean:bool}},timestep:{number:number},adaptiveTimestep:{boolean:bool},__type__:{object:object,boolean:bool}},autoResize:{boolean:bool},clickToUse:{boolean:bool},locale:{string:string},locales:{__any__:{any:any},__type__:{object:object}},height:{string:string},width:{string:string},__type__:{object:object}};allOptions.groups.__any__=allOptions.nodes;allOptions.manipulation.controlNodeStyle=allOptions.nodes;var configureOptions={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:[\"color\",\"#2B7CE9\"],background:[\"color\",\"#97C2FC\"],highlight:{border:[\"color\",\"#2B7CE9\"],background:[\"color\",\"#D2E5FF\"]},hover:{border:[\"color\",\"#2B7CE9\"],background:[\"color\",\"#D2E5FF\"]}},fixed:{x:false,y:false},font:{color:[\"color\",\"#343434\"],size:[14,0,100,1],face:[\"arial\",\"verdana\",\"tahoma\"],background:[\"color\",\"none\"],strokeWidth:[0,0,50,1],strokeColor:[\"color\",\"#ffffff\"]},hidden:false,labelHighlightBold:true,physics:true,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:false,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:false,color:\"rgba(0,0,0,0.5)\",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:[\"ellipse\",\"box\",\"circle\",\"database\",\"diamond\",\"dot\",\"square\",\"star\",\"text\",\"triangle\",\"triangleDown\",\"hexagon\"],shapeProperties:{borderDashes:false,borderRadius:[6,0,20,1],interpolation:true,useImageSize:false},size:[25,0,200,1]},edges:{arrows:{to:{enabled:false,scaleFactor:[1,0,3,.05],type:\"arrow\"},middle:{enabled:false,scaleFactor:[1,0,3,.05],type:\"arrow\"},from:{enabled:false,scaleFactor:[1,0,3,.05],type:\"arrow\"}},arrowStrikethrough:true,color:{color:[\"color\",\"#848484\"],highlight:[\"color\",\"#848484\"],hover:[\"color\",\"#848484\"],inherit:[\"from\",\"to\",\"both\",true,false],opacity:[1,0,1,.05]},dashes:false,font:{color:[\"color\",\"#343434\"],size:[14,0,100,1],face:[\"arial\",\"verdana\",\"tahoma\"],background:[\"color\",\"none\"],strokeWidth:[2,0,50,1],strokeColor:[\"color\",\"#ffffff\"],align:[\"horizontal\",\"top\",\"middle\",\"bottom\"]},hidden:false,hoverWidth:[1.5,0,5,.1],labelHighlightBold:true,physics:true,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:true,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],shadow:{enabled:false,color:\"rgba(0,0,0,0.5)\",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:true,type:[\"dynamic\",\"continuous\",\"discrete\",\"diagonalCross\",\"straightCross\",\"horizontal\",\"vertical\",\"curvedCW\",\"curvedCCW\",\"cubicBezier\"],forceDirection:[\"horizontal\",\"vertical\",\"none\"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:false,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:true,edgeMinimization:true,parentCentralization:true,direction:[\"UD\",\"DU\",\"LR\",\"RL\"],sortMethod:[\"hubsize\",\"directed\"]}},interaction:{dragNodes:true,dragView:true,hideEdgesOnDrag:false,hideNodesOnDrag:false,hover:false,keyboard:{enabled:false,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:true},multiselect:false,navigationButtons:false,selectable:true,selectConnectedEdges:true,hoverConnectedEdges:true,tooltipDelay:[300,0,1e3,25],zoomView:true},manipulation:{enabled:false,initiallyActive:false},physics:{enabled:true,barnesHut:{gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:[\"barnesHut\",\"forceAtlas2Based\",\"repulsion\",\"hierarchicalRepulsion\"],timestep:[.5,.01,1,.01]}};exports.allOptions=allOptions;exports.configureOptions=configureOptions},function(module,exports,__webpack_require__){\"use strict\";var util=__webpack_require__(2);util.extend(exports,__webpack_require__(159));util.extend(exports,__webpack_require__(177));util.extend(exports,__webpack_require__(181))},function(module,exports,__webpack_require__){__webpack_require__(49);__webpack_require__(60);module.exports=__webpack_require__(136)},function(module,exports,__webpack_require__){\"use strict\";var addToUnscopables=__webpack_require__(126);var step=__webpack_require__(127);var Iterators=__webpack_require__(31);var toIObject=__webpack_require__(25);module.exports=__webpack_require__(79)(Array,\"Array\",function(iterated,kind){this._t=toIObject(iterated);this._i=0;this._k=kind},function(){var O=this._t;var kind=this._k;var index=this._i++;if(!O||index>=O.length){this._t=undefined;return step(1)}if(kind==\"keys\")return step(0,index);if(kind==\"values\")return step(0,O[index]);return step(0,[index,O[index]])},\"values\");Iterators.Arguments=Iterators.Array;addToUnscopables(\"keys\");addToUnscopables(\"values\");addToUnscopables(\"entries\")},function(module,exports){module.exports=function(){}},function(module,exports){module.exports=function(done,value){return{value:value,done:!!done}}},function(module,exports){module.exports=function(it){if(typeof it!=\"function\")throw TypeError(it+\" is not a function!\");return it}},function(module,exports,__webpack_require__){\"use strict\";var create=__webpack_require__(54);var descriptor=__webpack_require__(39);var setToStringTag=__webpack_require__(59);var IteratorPrototype={};__webpack_require__(26)(IteratorPrototype,__webpack_require__(13)(\"iterator\"),function(){return this});module.exports=function(Constructor,NAME,next){Constructor.prototype=create(IteratorPrototype,{next:descriptor(1,next)});setToStringTag(Constructor,NAME+\" Iterator\")}},function(module,exports,__webpack_require__){var dP=__webpack_require__(20);var anObject=__webpack_require__(27);var getKeys=__webpack_require__(33);module.exports=__webpack_require__(21)?Object.defineProperties:function defineProperties(O,Properties){anObject(O);var keys=getKeys(Properties);var length=keys.length;var i=0;var P;while(length>i)dP.f(O,P=keys[i++],Properties[P]);return O}},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(25);var toLength=__webpack_require__(132);var toAbsoluteIndex=__webpack_require__(133);module.exports=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIObject($this);var length=toLength(O.length);var index=toAbsoluteIndex(fromIndex,length);var value;if(IS_INCLUDES&&el!=el)while(length>index){value=O[index++];if(value!=value)return true}else for(;length>index;index++)if(IS_INCLUDES||index in O){if(O[index]===el)return IS_INCLUDES||index||0}return!IS_INCLUDES&&-1}}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(55);var min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(55);var max=Math.max;var min=Math.min;module.exports=function(index,length){index=toInteger(index);return index<0?max(index+length,0):min(index,length)}},function(module,exports,__webpack_require__){var document=__webpack_require__(18).document;module.exports=document&&document.documentElement},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(55);var defined=__webpack_require__(51);module.exports=function(TO_STRING){return function(that,pos){var s=String(defined(that));var i=toInteger(pos);var l=s.length;var a,b;if(i<0||i>=l)return TO_STRING?\"\":undefined;a=s.charCodeAt(i);return a<55296||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):(a-55296<<10)+(b-56320)+65536}}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(27);var get=__webpack_require__(137);module.exports=__webpack_require__(7).getIterator=function(it){var iterFn=get(it);if(typeof iterFn!=\"function\")throw TypeError(it+\" is not iterable!\");return anObject(iterFn.call(it))}},function(module,exports,__webpack_require__){var classof=__webpack_require__(86);var ITERATOR=__webpack_require__(13)(\"iterator\");var Iterators=__webpack_require__(31);module.exports=__webpack_require__(7).getIteratorMethod=function(it){if(it!=undefined)return it[ITERATOR]||it[\"@@iterator\"]||Iterators[classof(it)]}},function(module,exports,__webpack_require__){__webpack_require__(139);var $Object=__webpack_require__(7).Object;module.exports=function create(P,D){return $Object.create(P,D)}},function(module,exports,__webpack_require__){var $export=__webpack_require__(17);$export($export.S,\"Object\",{create:__webpack_require__(54)})},function(module,exports,__webpack_require__){__webpack_require__(141);module.exports=__webpack_require__(7).Object.keys},function(module,exports,__webpack_require__){var toObject=__webpack_require__(41);var $keys=__webpack_require__(33);__webpack_require__(87)(\"keys\",function(){return function keys(it){return $keys(toObject(it))}})},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(143),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(60);__webpack_require__(49);module.exports=__webpack_require__(61).f(\"iterator\")},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(145),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(146);__webpack_require__(151);__webpack_require__(152);__webpack_require__(153);module.exports=__webpack_require__(7).Symbol},function(module,exports,__webpack_require__){\"use strict\";var global=__webpack_require__(18);var has=__webpack_require__(22);var DESCRIPTORS=__webpack_require__(21);var $export=__webpack_require__(17);var redefine=__webpack_require__(83);var META=__webpack_require__(147).KEY;var $fails=__webpack_require__(28);var shared=__webpack_require__(57);var setToStringTag=__webpack_require__(59);var uid=__webpack_require__(40);var wks=__webpack_require__(13);var wksExt=__webpack_require__(61);var wksDefine=__webpack_require__(62);var enumKeys=__webpack_require__(148);var isArray=__webpack_require__(149);var anObject=__webpack_require__(27);var toIObject=__webpack_require__(25);var toPrimitive=__webpack_require__(53);var createDesc=__webpack_require__(39);var _create=__webpack_require__(54);var gOPNExt=__webpack_require__(150);var $GOPD=__webpack_require__(89);var $DP=__webpack_require__(20);var $keys=__webpack_require__(33);var gOPD=$GOPD.f;var dP=$DP.f;var gOPN=gOPNExt.f;var $Symbol=global.Symbol;var $JSON=global.JSON;var _stringify=$JSON&&$JSON.stringify;var PROTOTYPE=\"prototype\";var HIDDEN=wks(\"_hidden\");var TO_PRIMITIVE=wks(\"toPrimitive\");var isEnum={}.propertyIsEnumerable;var SymbolRegistry=shared(\"symbol-registry\");var AllSymbols=shared(\"symbols\");var OPSymbols=shared(\"op-symbols\");var ObjectProto=Object[PROTOTYPE];var USE_NATIVE=typeof $Symbol==\"function\";var QObject=global.QObject;var setter=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild;var setSymbolDesc=DESCRIPTORS&&$fails(function(){return _create(dP({},\"a\",{get:function(){return dP(this,\"a\",{value:7}).a}})).a!=7})?function(it,key,D){var protoDesc=gOPD(ObjectProto,key);if(protoDesc)delete ObjectProto[key];dP(it,key,D);if(protoDesc&&it!==ObjectProto)dP(ObjectProto,key,protoDesc)}:dP;var wrap=function(tag){var sym=AllSymbols[tag]=_create($Symbol[PROTOTYPE]);sym._k=tag;return sym};var isSymbol=USE_NATIVE&&typeof $Symbol.iterator==\"symbol\"?function(it){return typeof it==\"symbol\"}:function(it){return it instanceof $Symbol};var $defineProperty=function defineProperty(it,key,D){if(it===ObjectProto)$defineProperty(OPSymbols,key,D);anObject(it);key=toPrimitive(key,true);anObject(D);if(has(AllSymbols,key)){if(!D.enumerable){if(!has(it,HIDDEN))dP(it,HIDDEN,createDesc(1,{}));it[HIDDEN][key]=true}else{if(has(it,HIDDEN)&&it[HIDDEN][key])it[HIDDEN][key]=false;D=_create(D,{enumerable:createDesc(0,false)})}return setSymbolDesc(it,key,D)}return dP(it,key,D)};var $defineProperties=function defineProperties(it,P){anObject(it);var keys=enumKeys(P=toIObject(P));var i=0;var l=keys.length;var key;while(l>i)$defineProperty(it,key=keys[i++],P[key]);return it};var $create=function create(it,P){return P===undefined?_create(it):$defineProperties(_create(it),P)};var $propertyIsEnumerable=function propertyIsEnumerable(key){var E=isEnum.call(this,key=toPrimitive(key,true));if(this===ObjectProto&&has(AllSymbols,key)&&!has(OPSymbols,key))return false;return E||!has(this,key)||!has(AllSymbols,key)||has(this,HIDDEN)&&this[HIDDEN][key]?E:true};var $getOwnPropertyDescriptor=function getOwnPropertyDescriptor(it,key){it=toIObject(it);key=toPrimitive(key,true);if(it===ObjectProto&&has(AllSymbols,key)&&!has(OPSymbols,key))return;var D=gOPD(it,key);if(D&&has(AllSymbols,key)&&!(has(it,HIDDEN)&&it[HIDDEN][key]))D.enumerable=true;return D};var $getOwnPropertyNames=function getOwnPropertyNames(it){var names=gOPN(toIObject(it));var result=[];var i=0;var key;while(names.length>i){if(!has(AllSymbols,key=names[i++])&&key!=HIDDEN&&key!=META)result.push(key)}return result};var $getOwnPropertySymbols=function getOwnPropertySymbols(it){var IS_OP=it===ObjectProto;var names=gOPN(IS_OP?OPSymbols:toIObject(it));var result=[];var i=0;var key;while(names.length>i){if(has(AllSymbols,key=names[i++])&&(IS_OP?has(ObjectProto,key):true))result.push(AllSymbols[key])}return result};if(!USE_NATIVE){$Symbol=function Symbol(){if(this instanceof $Symbol)throw TypeError(\"Symbol is not a constructor!\");var tag=uid(arguments.length>0?arguments[0]:undefined);var $set=function(value){if(this===ObjectProto)$set.call(OPSymbols,value);if(has(this,HIDDEN)&&has(this[HIDDEN],tag))this[HIDDEN][tag]=false;setSymbolDesc(this,tag,createDesc(1,value))};if(DESCRIPTORS&&setter)setSymbolDesc(ObjectProto,tag,{configurable:true,set:$set});return wrap(tag)};redefine($Symbol[PROTOTYPE],\"toString\",function toString(){return this._k});$GOPD.f=$getOwnPropertyDescriptor;$DP.f=$defineProperty;__webpack_require__(88).f=gOPNExt.f=$getOwnPropertyNames;__webpack_require__(42).f=$propertyIsEnumerable;__webpack_require__(63).f=$getOwnPropertySymbols;if(DESCRIPTORS&&!__webpack_require__(52)){redefine(ObjectProto,\"propertyIsEnumerable\",$propertyIsEnumerable,true)}wksExt.f=function(name){return wrap(wks(name))}}$export($export.G+$export.W+$export.F*!USE_NATIVE,{Symbol:$Symbol});for(var es6Symbols=\"hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables\".split(\",\"),j=0;es6Symbols.length>j;)wks(es6Symbols[j++]);for(var wellKnownSymbols=$keys(wks.store),k=0;wellKnownSymbols.length>k;)wksDefine(wellKnownSymbols[k++]);$export($export.S+$export.F*!USE_NATIVE,\"Symbol\",{for:function(key){return has(SymbolRegistry,key+=\"\")?SymbolRegistry[key]:SymbolRegistry[key]=$Symbol(key)},keyFor:function keyFor(sym){if(!isSymbol(sym))throw TypeError(sym+\" is not a symbol!\");for(var key in SymbolRegistry)if(SymbolRegistry[key]===sym)return key},useSetter:function(){setter=true},useSimple:function(){setter=false}});$export($export.S+$export.F*!USE_NATIVE,\"Object\",{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor,getOwnPropertyNames:$getOwnPropertyNames,getOwnPropertySymbols:$getOwnPropertySymbols});$JSON&&$export($export.S+$export.F*(!USE_NATIVE||$fails(function(){var S=$Symbol();return _stringify([S])!=\"[null]\"||_stringify({a:S})!=\"{}\"||_stringify(Object(S))!=\"{}\"})),\"JSON\",{stringify:function stringify(it){if(it===undefined||isSymbol(it))return;var args=[it];var i=1;var replacer,$replacer;while(arguments.length>i)args.push(arguments[i++]);replacer=args[1];if(typeof replacer==\"function\")$replacer=replacer;if($replacer||!isArray(replacer))replacer=function(key,value){if($replacer)value=$replacer.call(this,key,value);if(!isSymbol(value))return value};args[1]=replacer;return _stringify.apply($JSON,args)}});$Symbol[PROTOTYPE][TO_PRIMITIVE]||__webpack_require__(26)($Symbol[PROTOTYPE],TO_PRIMITIVE,$Symbol[PROTOTYPE].valueOf);setToStringTag($Symbol,\"Symbol\");setToStringTag(Math,\"Math\",true);setToStringTag(global.JSON,\"JSON\",true)},function(module,exports,__webpack_require__){var META=__webpack_require__(40)(\"meta\");var isObject=__webpack_require__(32);var has=__webpack_require__(22);var setDesc=__webpack_require__(20).f;var id=0;var isExtensible=Object.isExtensible||function(){return true};var FREEZE=!__webpack_require__(28)(function(){return isExtensible(Object.preventExtensions({}))});var setMeta=function(it){setDesc(it,META,{value:{i:\"O\"+ ++id,w:{}}})};var fastKey=function(it,create){if(!isObject(it))return typeof it==\"symbol\"?it:(typeof it==\"string\"?\"S\":\"P\")+it;if(!has(it,META)){if(!isExtensible(it))return\"F\";if(!create)return\"E\";setMeta(it)}return it[META].i};var getWeak=function(it,create){if(!has(it,META)){if(!isExtensible(it))return true;if(!create)return false;setMeta(it)}return it[META].w};var onFreeze=function(it){if(FREEZE&&meta.NEED&&isExtensible(it)&&!has(it,META))setMeta(it);return it};var meta=module.exports={KEY:META,NEED:false,fastKey:fastKey,getWeak:getWeak,onFreeze:onFreeze}},function(module,exports,__webpack_require__){var getKeys=__webpack_require__(33);var gOPS=__webpack_require__(63);var pIE=__webpack_require__(42);module.exports=function(it){var result=getKeys(it);var getSymbols=gOPS.f;if(getSymbols){var symbols=getSymbols(it);var isEnum=pIE.f;var i=0;var key;while(symbols.length>i)if(isEnum.call(it,key=symbols[i++]))result.push(key)}return result}},function(module,exports,__webpack_require__){var cof=__webpack_require__(50);module.exports=Array.isArray||function isArray(arg){return cof(arg)==\"Array\"}},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(25);var gOPN=__webpack_require__(88).f;var toString={}.toString;var windowNames=typeof window==\"object\"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var getWindowNames=function(it){try{return gOPN(it)}catch(e){return windowNames.slice()}};module.exports.f=function getOwnPropertyNames(it){return windowNames&&toString.call(it)==\"[object Window]\"?getWindowNames(it):gOPN(toIObject(it))}},function(module,exports){},function(module,exports,__webpack_require__){__webpack_require__(62)(\"asyncIterator\")},function(module,exports,__webpack_require__){__webpack_require__(62)(\"observable\")},function(module,exports,__webpack_require__){(function(module){var require;(function(global,factory){true?module.exports=factory():typeof define===\"function\"&&define.amd?define(factory):global.moment=factory()})(this,function(){\"use strict\";var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}function setHookCallback(callback){hookCallback=callback}function isArray(input){return input instanceof Array||Object.prototype.toString.call(input)===\"[object Array]\"}function isObject(input){return input!=null&&Object.prototype.toString.call(input)===\"[object Object]\"}function isObjectEmpty(obj){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(obj).length===0}else{var k;for(k in obj){if(obj.hasOwnProperty(k)){return false}}return true}}function isUndefined(input){return input===void 0}function isNumber(input){return typeof input===\"number\"||Object.prototype.toString.call(input)===\"[object Number]\"}function isDate(input){return input instanceof Date||Object.prototype.toString.call(input)===\"[object Date]\"}function map(arr,fn){var res=[],i;for(i=0;i<arr.length;++i){res.push(fn(arr[i],i))}return res}function hasOwnProp(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function extend(a,b){for(var i in b){if(hasOwnProp(b,i)){a[i]=b[i]}}if(hasOwnProp(b,\"toString\")){a.toString=b.toString}if(hasOwnProp(b,\"valueOf\")){a.valueOf=b.valueOf}return a}function createUTC(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,true).utc()}function defaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],meridiem:null,rfc2822:false,weekdayMismatch:false}}function getParsingFlags(m){if(m._pf==null){m._pf=defaultParsingFlags()}return m._pf}var some;if(Array.prototype.some){some=Array.prototype.some}else{some=function(fun){var t=Object(this);var len=t.length>>>0;for(var i=0;i<len;i++){if(i in t&&fun.call(this,t[i],i,t)){return true}}return false}}function isValid(m){if(m._isValid==null){var flags=getParsingFlags(m);var parsedParts=some.call(flags.parsedDateParts,function(i){return i!=null});var isNowValid=!isNaN(m._d.getTime())&&flags.overflow<0&&!flags.empty&&!flags.invalidMonth&&!flags.invalidWeekday&&!flags.weekdayMismatch&&!flags.nullInput&&!flags.invalidFormat&&!flags.userInvalidated&&(!flags.meridiem||flags.meridiem&&parsedParts);if(m._strict){isNowValid=isNowValid&&flags.charsLeftOver===0&&flags.unusedTokens.length===0&&flags.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(m)){m._isValid=isNowValid}else{return isNowValid}}return m._isValid}function createInvalid(flags){var m=createUTC(NaN);if(flags!=null){extend(getParsingFlags(m),flags)}else{getParsingFlags(m).userInvalidated=true}return m}var momentProperties=hooks.momentProperties=[];function copyConfig(to,from){var i,prop,val;if(!isUndefined(from._isAMomentObject)){to._isAMomentObject=from._isAMomentObject}if(!isUndefined(from._i)){to._i=from._i}if(!isUndefined(from._f)){to._f=from._f}if(!isUndefined(from._l)){to._l=from._l}if(!isUndefined(from._strict)){to._strict=from._strict}if(!isUndefined(from._tzm)){to._tzm=from._tzm}if(!isUndefined(from._isUTC)){to._isUTC=from._isUTC}if(!isUndefined(from._offset)){to._offset=from._offset}if(!isUndefined(from._pf)){to._pf=getParsingFlags(from)}if(!isUndefined(from._locale)){to._locale=from._locale}if(momentProperties.length>0){for(i=0;i<momentProperties.length;i++){prop=momentProperties[i];val=from[prop];if(!isUndefined(val)){to[prop]=val}}}return to}var updateInProgress=false;function Moment(config){copyConfig(this,config);this._d=new Date(config._d!=null?config._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(updateInProgress===false){updateInProgress=true;hooks.updateOffset(this);updateInProgress=false}}function isMoment(obj){return obj instanceof Moment||obj!=null&&obj._isAMomentObject!=null}function absFloor(number){if(number<0){return Math.ceil(number)||0}else{return Math.floor(number)}}function toInt(argumentForCoercion){var coercedNumber=+argumentForCoercion,value=0;if(coercedNumber!==0&&isFinite(coercedNumber)){value=absFloor(coercedNumber)}return value}function compareArrays(array1,array2,dontConvert){var len=Math.min(array1.length,array2.length),lengthDiff=Math.abs(array1.length-array2.length),diffs=0,i;for(i=0;i<len;i++){if(dontConvert&&array1[i]!==array2[i]||!dontConvert&&toInt(array1[i])!==toInt(array2[i])){diffs++}}return diffs+lengthDiff}function warn(msg){if(hooks.suppressDeprecationWarnings===false&&typeof console!==\"undefined\"&&console.warn){console.warn(\"Deprecation warning: \"+msg)}}function deprecate(msg,fn){var firstTime=true;return extend(function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,msg)}if(firstTime){var args=[];var arg;for(var i=0;i<arguments.length;i++){arg=\"\";if(typeof arguments[i]===\"object\"){arg+=\"\\n[\"+i+\"] \";for(var key in arguments[0]){arg+=key+\": \"+arguments[0][key]+\", \"}arg=arg.slice(0,-2)}else{arg=arguments[i]}args.push(arg)}warn(msg+\"\\nArguments: \"+Array.prototype.slice.call(args).join(\"\")+\"\\n\"+(new Error).stack);firstTime=false}return fn.apply(this,arguments)},fn)}var deprecations={};function deprecateSimple(name,msg){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(name,msg)}if(!deprecations[name]){warn(msg);deprecations[name]=true}}hooks.suppressDeprecationWarnings=false;hooks.deprecationHandler=null;function isFunction(input){return input instanceof Function||Object.prototype.toString.call(input)===\"[object Function]\"}function set(config){var prop,i;for(i in config){prop=config[i];if(isFunction(prop)){this[i]=prop}else{this[\"_\"+i]=prop}}this._config=config;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+\"|\"+/\\d{1,2}/.source)}function mergeConfigs(parentConfig,childConfig){var res=extend({},parentConfig),prop;for(prop in childConfig){if(hasOwnProp(childConfig,prop)){if(isObject(parentConfig[prop])&&isObject(childConfig[prop])){res[prop]={};extend(res[prop],parentConfig[prop]);extend(res[prop],childConfig[prop])}else if(childConfig[prop]!=null){res[prop]=childConfig[prop]}else{delete res[prop]}}}for(prop in parentConfig){if(hasOwnProp(parentConfig,prop)&&!hasOwnProp(childConfig,prop)&&isObject(parentConfig[prop])){res[prop]=extend({},res[prop])}}return res}function Locale(config){if(config!=null){this.set(config)}}var keys;if(Object.keys){keys=Object.keys}else{keys=function(obj){var i,res=[];for(i in obj){if(hasOwnProp(obj,i)){res.push(i)}}return res}}var defaultCalendar={sameDay:\"[Today at] LT\",nextDay:\"[Tomorrow at] LT\",nextWeek:\"dddd [at] LT\",lastDay:\"[Yesterday at] LT\",lastWeek:\"[Last] dddd [at] LT\",sameElse:\"L\"};function calendar(key,mom,now){var output=this._calendar[key]||this._calendar[\"sameElse\"];return isFunction(output)?output.call(mom,now):output}var defaultLongDateFormat={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"};function longDateFormat(key){var format=this._longDateFormat[key],formatUpper=this._longDateFormat[key.toUpperCase()];if(format||!formatUpper){return format}this._longDateFormat[key]=formatUpper.replace(/MMMM|MM|DD|dddd/g,function(val){return val.slice(1)});return this._longDateFormat[key]}var defaultInvalidDate=\"Invalid date\";function invalidDate(){return this._invalidDate}var defaultOrdinal=\"%d\";var defaultDayOfMonthOrdinalParse=/\\d{1,2}/;function ordinal(number){return this._ordinal.replace(\"%d\",number)}var defaultRelativeTime={future:\"in %s\",past:\"%s ago\",s:\"a few seconds\",ss:\"%d seconds\",m:\"a minute\",mm:\"%d minutes\",h:\"an hour\",hh:\"%d hours\",d:\"a day\",dd:\"%d days\",M:\"a month\",MM:\"%d months\",y:\"a year\",yy:\"%d years\"};function relativeTime(number,withoutSuffix,string,isFuture){var output=this._relativeTime[string];return isFunction(output)?output(number,withoutSuffix,string,isFuture):output.replace(/%d/i,number)}function pastFuture(diff,output){var format=this._relativeTime[diff>0?\"future\":\"past\"];return isFunction(format)?format(output):format.replace(/%s/i,output)}var aliases={};function addUnitAlias(unit,shorthand){var lowerCase=unit.toLowerCase();aliases[lowerCase]=aliases[lowerCase+\"s\"]=aliases[shorthand]=unit}function normalizeUnits(units){return typeof units===\"string\"?aliases[units]||aliases[units.toLowerCase()]:undefined}function normalizeObjectUnits(inputObject){var normalizedInput={},normalizedProp,prop;for(prop in inputObject){if(hasOwnProp(inputObject,prop)){normalizedProp=normalizeUnits(prop);if(normalizedProp){normalizedInput[normalizedProp]=inputObject[prop]}}}return normalizedInput}var priorities={};function addUnitPriority(unit,priority){priorities[unit]=priority}function getPrioritizedUnits(unitsObj){var units=[];for(var u in unitsObj){units.push({unit:u,priority:priorities[u]})}units.sort(function(a,b){return a.priority-b.priority});return units}function zeroFill(number,targetLength,forceSign){var absNumber=\"\"+Math.abs(number),zerosToFill=targetLength-absNumber.length,sign=number>=0;return(sign?forceSign?\"+\":\"\":\"-\")+Math.pow(10,Math.max(0,zerosToFill)).toString().substr(1)+absNumber}var formattingTokens=/(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;var localFormattingTokens=/(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g;var formatFunctions={};var formatTokenFunctions={};function addFormatToken(token,padded,ordinal,callback){var func=callback;if(typeof callback===\"string\"){func=function(){return this[callback]()}}if(token){formatTokenFunctions[token]=func}if(padded){formatTokenFunctions[padded[0]]=function(){return zeroFill(func.apply(this,arguments),padded[1],padded[2])}}if(ordinal){formatTokenFunctions[ordinal]=function(){return this.localeData().ordinal(func.apply(this,arguments),token)}}}function removeFormattingTokens(input){if(input.match(/\\[[\\s\\S]/)){return input.replace(/^\\[|\\]$/g,\"\")}return input.replace(/\\\\/g,\"\")}function makeFormatFunction(format){var array=format.match(formattingTokens),i,length;for(i=0,length=array.length;i<length;i++){if(formatTokenFunctions[array[i]]){array[i]=formatTokenFunctions[array[i]]}else{array[i]=removeFormattingTokens(array[i])}}return function(mom){var output=\"\",i;for(i=0;i<length;i++){output+=isFunction(array[i])?array[i].call(mom,format):array[i]}return output}}function formatMoment(m,format){if(!m.isValid()){return m.localeData().invalidDate()}format=expandFormat(format,m.localeData());formatFunctions[format]=formatFunctions[format]||makeFormatFunction(format);return formatFunctions[format](m)}function expandFormat(format,locale){var i=5;function replaceLongDateFormatTokens(input){return locale.longDateFormat(input)||input}localFormattingTokens.lastIndex=0;while(i>=0&&localFormattingTokens.test(format)){format=format.replace(localFormattingTokens,replaceLongDateFormatTokens);localFormattingTokens.lastIndex=0;i-=1}return format}var match1=/\\d/;var match2=/\\d\\d/;var match3=/\\d{3}/;var match4=/\\d{4}/;var match6=/[+-]?\\d{6}/;var match1to2=/\\d\\d?/;var match3to4=/\\d\\d\\d\\d?/;var match5to6=/\\d\\d\\d\\d\\d\\d?/;var match1to3=/\\d{1,3}/;var match1to4=/\\d{1,4}/;var match1to6=/[+-]?\\d{1,6}/;var matchUnsigned=/\\d+/;var matchSigned=/[+-]?\\d+/;var matchOffset=/Z|[+-]\\d\\d:?\\d\\d/gi;var matchShortOffset=/Z|[+-]\\d\\d(?::?\\d\\d)?/gi;var matchTimestamp=/[+-]?\\d+(\\.\\d{1,3})?/;var matchWord=/[0-9]*['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+|[\\u0600-\\u06FF\\/]+(\\s*?[\\u0600-\\u06FF]+){1,2}/i;var regexes={};function addRegexToken(token,regex,strictRegex){regexes[token]=isFunction(regex)?regex:function(isStrict,localeData){return isStrict&&strictRegex?strictRegex:regex}}function getParseRegexForToken(token,config){if(!hasOwnProp(regexes,token)){return new RegExp(unescapeFormat(token))}return regexes[token](config._strict,config._locale)}function unescapeFormat(s){return regexEscape(s.replace(\"\\\\\",\"\").replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,function(matched,p1,p2,p3,p4){return p1||p2||p3||p4}))}function regexEscape(s){return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")}var tokens={};function addParseToken(token,callback){var i,func=callback;if(typeof token===\"string\"){token=[token]}if(isNumber(callback)){func=function(input,array){array[callback]=toInt(input)}}for(i=0;i<token.length;i++){tokens[token[i]]=func}}function addWeekParseToken(token,callback){addParseToken(token,function(input,array,config,token){config._w=config._w||{};callback(input,config._w,config,token)})}function addTimeToArrayFromToken(token,input,config){if(input!=null&&hasOwnProp(tokens,token)){tokens[token](input,config._a,config,token)}}var YEAR=0;var MONTH=1;var DATE=2;var HOUR=3;var MINUTE=4;var SECOND=5;var MILLISECOND=6;var WEEK=7;var WEEKDAY=8;addFormatToken(\"Y\",0,0,function(){var y=this.year();return y<=9999?\"\"+y:\"+\"+y});addFormatToken(0,[\"YY\",2],0,function(){return this.year()%100});addFormatToken(0,[\"YYYY\",4],0,\"year\");addFormatToken(0,[\"YYYYY\",5],0,\"year\");addFormatToken(0,[\"YYYYYY\",6,true],0,\"year\");addUnitAlias(\"year\",\"y\");addUnitPriority(\"year\",1);addRegexToken(\"Y\",matchSigned)\n;addRegexToken(\"YY\",match1to2,match2);addRegexToken(\"YYYY\",match1to4,match4);addRegexToken(\"YYYYY\",match1to6,match6);addRegexToken(\"YYYYYY\",match1to6,match6);addParseToken([\"YYYYY\",\"YYYYYY\"],YEAR);addParseToken(\"YYYY\",function(input,array){array[YEAR]=input.length===2?hooks.parseTwoDigitYear(input):toInt(input)});addParseToken(\"YY\",function(input,array){array[YEAR]=hooks.parseTwoDigitYear(input)});addParseToken(\"Y\",function(input,array){array[YEAR]=parseInt(input,10)});function daysInYear(year){return isLeapYear(year)?366:365}function isLeapYear(year){return year%4===0&&year%100!==0||year%400===0}hooks.parseTwoDigitYear=function(input){return toInt(input)+(toInt(input)>68?1900:2e3)};var getSetYear=makeGetSet(\"FullYear\",true);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(unit,keepTime){return function(value){if(value!=null){set$1(this,unit,value);hooks.updateOffset(this,keepTime);return this}else{return get(this,unit)}}}function get(mom,unit){return mom.isValid()?mom._d[\"get\"+(mom._isUTC?\"UTC\":\"\")+unit]():NaN}function set$1(mom,unit,value){if(mom.isValid()&&!isNaN(value)){if(unit===\"FullYear\"&&isLeapYear(mom.year())){mom._d[\"set\"+(mom._isUTC?\"UTC\":\"\")+unit](value,mom.month(),daysInMonth(value,mom.month()))}else{mom._d[\"set\"+(mom._isUTC?\"UTC\":\"\")+unit](value)}}}function stringGet(units){units=normalizeUnits(units);if(isFunction(this[units])){return this[units]()}return this}function stringSet(units,value){if(typeof units===\"object\"){units=normalizeObjectUnits(units);var prioritized=getPrioritizedUnits(units);for(var i=0;i<prioritized.length;i++){this[prioritized[i].unit](units[prioritized[i].unit])}}else{units=normalizeUnits(units);if(isFunction(this[units])){return this[units](value)}}return this}function mod(n,x){return(n%x+x)%x}var indexOf;if(Array.prototype.indexOf){indexOf=Array.prototype.indexOf}else{indexOf=function(o){var i;for(i=0;i<this.length;++i){if(this[i]===o){return i}}return-1}}function daysInMonth(year,month){if(isNaN(year)||isNaN(month)){return NaN}var modMonth=mod(month,12);year+=(month-modMonth)/12;return modMonth===1?isLeapYear(year)?29:28:31-modMonth%7%2}addFormatToken(\"M\",[\"MM\",2],\"Mo\",function(){return this.month()+1});addFormatToken(\"MMM\",0,0,function(format){return this.localeData().monthsShort(this,format)});addFormatToken(\"MMMM\",0,0,function(format){return this.localeData().months(this,format)});addUnitAlias(\"month\",\"M\");addUnitPriority(\"month\",8);addRegexToken(\"M\",match1to2);addRegexToken(\"MM\",match1to2,match2);addRegexToken(\"MMM\",function(isStrict,locale){return locale.monthsShortRegex(isStrict)});addRegexToken(\"MMMM\",function(isStrict,locale){return locale.monthsRegex(isStrict)});addParseToken([\"M\",\"MM\"],function(input,array){array[MONTH]=toInt(input)-1});addParseToken([\"MMM\",\"MMMM\"],function(input,array,config,token){var month=config._locale.monthsParse(input,token,config._strict);if(month!=null){array[MONTH]=month}else{getParsingFlags(config).invalidMonth=input}});var MONTHS_IN_FORMAT=/D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/;var defaultLocaleMonths=\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\");function localeMonths(m,format){if(!m){return isArray(this._months)?this._months:this._months[\"standalone\"]}return isArray(this._months)?this._months[m.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(format)?\"format\":\"standalone\"][m.month()]}var defaultLocaleMonthsShort=\"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec\".split(\"_\");function localeMonthsShort(m,format){if(!m){return isArray(this._monthsShort)?this._monthsShort:this._monthsShort[\"standalone\"]}return isArray(this._monthsShort)?this._monthsShort[m.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(format)?\"format\":\"standalone\"][m.month()]}function handleStrictParse(monthName,format,strict){var i,ii,mom,llc=monthName.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(i=0;i<12;++i){mom=createUTC([2e3,i]);this._shortMonthsParse[i]=this.monthsShort(mom,\"\").toLocaleLowerCase();this._longMonthsParse[i]=this.months(mom,\"\").toLocaleLowerCase()}}if(strict){if(format===\"MMM\"){ii=indexOf.call(this._shortMonthsParse,llc);return ii!==-1?ii:null}else{ii=indexOf.call(this._longMonthsParse,llc);return ii!==-1?ii:null}}else{if(format===\"MMM\"){ii=indexOf.call(this._shortMonthsParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._longMonthsParse,llc);return ii!==-1?ii:null}else{ii=indexOf.call(this._longMonthsParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._shortMonthsParse,llc);return ii!==-1?ii:null}}}function localeMonthsParse(monthName,format,strict){var i,mom,regex;if(this._monthsParseExact){return handleStrictParse.call(this,monthName,format,strict)}if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[]}for(i=0;i<12;i++){mom=createUTC([2e3,i]);if(strict&&!this._longMonthsParse[i]){this._longMonthsParse[i]=new RegExp(\"^\"+this.months(mom,\"\").replace(\".\",\"\")+\"$\",\"i\");this._shortMonthsParse[i]=new RegExp(\"^\"+this.monthsShort(mom,\"\").replace(\".\",\"\")+\"$\",\"i\")}if(!strict&&!this._monthsParse[i]){regex=\"^\"+this.months(mom,\"\")+\"|^\"+this.monthsShort(mom,\"\");this._monthsParse[i]=new RegExp(regex.replace(\".\",\"\"),\"i\")}if(strict&&format===\"MMMM\"&&this._longMonthsParse[i].test(monthName)){return i}else if(strict&&format===\"MMM\"&&this._shortMonthsParse[i].test(monthName)){return i}else if(!strict&&this._monthsParse[i].test(monthName)){return i}}}function setMonth(mom,value){var dayOfMonth;if(!mom.isValid()){return mom}if(typeof value===\"string\"){if(/^\\d+$/.test(value)){value=toInt(value)}else{value=mom.localeData().monthsParse(value);if(!isNumber(value)){return mom}}}dayOfMonth=Math.min(mom.date(),daysInMonth(mom.year(),value));mom._d[\"set\"+(mom._isUTC?\"UTC\":\"\")+\"Month\"](value,dayOfMonth);return mom}function getSetMonth(value){if(value!=null){setMonth(this,value);hooks.updateOffset(this,true);return this}else{return get(this,\"Month\")}}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}var defaultMonthsShortRegex=matchWord;function monthsShortRegex(isStrict){if(this._monthsParseExact){if(!hasOwnProp(this,\"_monthsRegex\")){computeMonthsParse.call(this)}if(isStrict){return this._monthsShortStrictRegex}else{return this._monthsShortRegex}}else{if(!hasOwnProp(this,\"_monthsShortRegex\")){this._monthsShortRegex=defaultMonthsShortRegex}return this._monthsShortStrictRegex&&isStrict?this._monthsShortStrictRegex:this._monthsShortRegex}}var defaultMonthsRegex=matchWord;function monthsRegex(isStrict){if(this._monthsParseExact){if(!hasOwnProp(this,\"_monthsRegex\")){computeMonthsParse.call(this)}if(isStrict){return this._monthsStrictRegex}else{return this._monthsRegex}}else{if(!hasOwnProp(this,\"_monthsRegex\")){this._monthsRegex=defaultMonthsRegex}return this._monthsStrictRegex&&isStrict?this._monthsStrictRegex:this._monthsRegex}}function computeMonthsParse(){function cmpLenRev(a,b){return b.length-a.length}var shortPieces=[],longPieces=[],mixedPieces=[],i,mom;for(i=0;i<12;i++){mom=createUTC([2e3,i]);shortPieces.push(this.monthsShort(mom,\"\"));longPieces.push(this.months(mom,\"\"));mixedPieces.push(this.months(mom,\"\"));mixedPieces.push(this.monthsShort(mom,\"\"))}shortPieces.sort(cmpLenRev);longPieces.sort(cmpLenRev);mixedPieces.sort(cmpLenRev);for(i=0;i<12;i++){shortPieces[i]=regexEscape(shortPieces[i]);longPieces[i]=regexEscape(longPieces[i])}for(i=0;i<24;i++){mixedPieces[i]=regexEscape(mixedPieces[i])}this._monthsRegex=new RegExp(\"^(\"+mixedPieces.join(\"|\")+\")\",\"i\");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp(\"^(\"+longPieces.join(\"|\")+\")\",\"i\");this._monthsShortStrictRegex=new RegExp(\"^(\"+shortPieces.join(\"|\")+\")\",\"i\")}function createDate(y,m,d,h,M,s,ms){var date=new Date(y,m,d,h,M,s,ms);if(y<100&&y>=0&&isFinite(date.getFullYear())){date.setFullYear(y)}return date}function createUTCDate(y){var date=new Date(Date.UTC.apply(null,arguments));if(y<100&&y>=0&&isFinite(date.getUTCFullYear())){date.setUTCFullYear(y)}return date}function firstWeekOffset(year,dow,doy){var fwd=7+dow-doy,fwdlw=(7+createUTCDate(year,0,fwd).getUTCDay()-dow)%7;return-fwdlw+fwd-1}function dayOfYearFromWeeks(year,week,weekday,dow,doy){var localWeekday=(7+weekday-dow)%7,weekOffset=firstWeekOffset(year,dow,doy),dayOfYear=1+7*(week-1)+localWeekday+weekOffset,resYear,resDayOfYear;if(dayOfYear<=0){resYear=year-1;resDayOfYear=daysInYear(resYear)+dayOfYear}else if(dayOfYear>daysInYear(year)){resYear=year+1;resDayOfYear=dayOfYear-daysInYear(year)}else{resYear=year;resDayOfYear=dayOfYear}return{year:resYear,dayOfYear:resDayOfYear}}function weekOfYear(mom,dow,doy){var weekOffset=firstWeekOffset(mom.year(),dow,doy),week=Math.floor((mom.dayOfYear()-weekOffset-1)/7)+1,resWeek,resYear;if(week<1){resYear=mom.year()-1;resWeek=week+weeksInYear(resYear,dow,doy)}else if(week>weeksInYear(mom.year(),dow,doy)){resWeek=week-weeksInYear(mom.year(),dow,doy);resYear=mom.year()+1}else{resYear=mom.year();resWeek=week}return{week:resWeek,year:resYear}}function weeksInYear(year,dow,doy){var weekOffset=firstWeekOffset(year,dow,doy),weekOffsetNext=firstWeekOffset(year+1,dow,doy);return(daysInYear(year)-weekOffset+weekOffsetNext)/7}addFormatToken(\"w\",[\"ww\",2],\"wo\",\"week\");addFormatToken(\"W\",[\"WW\",2],\"Wo\",\"isoWeek\");addUnitAlias(\"week\",\"w\");addUnitAlias(\"isoWeek\",\"W\");addUnitPriority(\"week\",5);addUnitPriority(\"isoWeek\",5);addRegexToken(\"w\",match1to2);addRegexToken(\"ww\",match1to2,match2);addRegexToken(\"W\",match1to2);addRegexToken(\"WW\",match1to2,match2);addWeekParseToken([\"w\",\"ww\",\"W\",\"WW\"],function(input,week,config,token){week[token.substr(0,1)]=toInt(input)});function localeWeek(mom){return weekOfYear(mom,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(input){var week=this.localeData().week(this);return input==null?week:this.add((input-week)*7,\"d\")}function getSetISOWeek(input){var week=weekOfYear(this,1,4).week;return input==null?week:this.add((input-week)*7,\"d\")}addFormatToken(\"d\",0,\"do\",\"day\");addFormatToken(\"dd\",0,0,function(format){return this.localeData().weekdaysMin(this,format)});addFormatToken(\"ddd\",0,0,function(format){return this.localeData().weekdaysShort(this,format)});addFormatToken(\"dddd\",0,0,function(format){return this.localeData().weekdays(this,format)});addFormatToken(\"e\",0,0,\"weekday\");addFormatToken(\"E\",0,0,\"isoWeekday\");addUnitAlias(\"day\",\"d\");addUnitAlias(\"weekday\",\"e\");addUnitAlias(\"isoWeekday\",\"E\");addUnitPriority(\"day\",11);addUnitPriority(\"weekday\",11);addUnitPriority(\"isoWeekday\",11);addRegexToken(\"d\",match1to2);addRegexToken(\"e\",match1to2);addRegexToken(\"E\",match1to2);addRegexToken(\"dd\",function(isStrict,locale){return locale.weekdaysMinRegex(isStrict)});addRegexToken(\"ddd\",function(isStrict,locale){return locale.weekdaysShortRegex(isStrict)});addRegexToken(\"dddd\",function(isStrict,locale){return locale.weekdaysRegex(isStrict)});addWeekParseToken([\"dd\",\"ddd\",\"dddd\"],function(input,week,config,token){var weekday=config._locale.weekdaysParse(input,token,config._strict);if(weekday!=null){week.d=weekday}else{getParsingFlags(config).invalidWeekday=input}});addWeekParseToken([\"d\",\"e\",\"E\"],function(input,week,config,token){week[token]=toInt(input)});function parseWeekday(input,locale){if(typeof input!==\"string\"){return input}if(!isNaN(input)){return parseInt(input,10)}input=locale.weekdaysParse(input);if(typeof input===\"number\"){return input}return null}function parseIsoWeekday(input,locale){if(typeof input===\"string\"){return locale.weekdaysParse(input)%7||7}return isNaN(input)?null:input}var defaultLocaleWeekdays=\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\");function localeWeekdays(m,format){if(!m){return isArray(this._weekdays)?this._weekdays:this._weekdays[\"standalone\"]}return isArray(this._weekdays)?this._weekdays[m.day()]:this._weekdays[this._weekdays.isFormat.test(format)?\"format\":\"standalone\"][m.day()]}var defaultLocaleWeekdaysShort=\"Sun_Mon_Tue_Wed_Thu_Fri_Sat\".split(\"_\");function localeWeekdaysShort(m){return m?this._weekdaysShort[m.day()]:this._weekdaysShort}var defaultLocaleWeekdaysMin=\"Su_Mo_Tu_We_Th_Fr_Sa\".split(\"_\");function localeWeekdaysMin(m){return m?this._weekdaysMin[m.day()]:this._weekdaysMin}function handleStrictParse$1(weekdayName,format,strict){var i,ii,mom,llc=weekdayName.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(i=0;i<7;++i){mom=createUTC([2e3,1]).day(i);this._minWeekdaysParse[i]=this.weekdaysMin(mom,\"\").toLocaleLowerCase();this._shortWeekdaysParse[i]=this.weekdaysShort(mom,\"\").toLocaleLowerCase();this._weekdaysParse[i]=this.weekdays(mom,\"\").toLocaleLowerCase()}}if(strict){if(format===\"dddd\"){ii=indexOf.call(this._weekdaysParse,llc);return ii!==-1?ii:null}else if(format===\"ddd\"){ii=indexOf.call(this._shortWeekdaysParse,llc);return ii!==-1?ii:null}else{ii=indexOf.call(this._minWeekdaysParse,llc);return ii!==-1?ii:null}}else{if(format===\"dddd\"){ii=indexOf.call(this._weekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._shortWeekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._minWeekdaysParse,llc);return ii!==-1?ii:null}else if(format===\"ddd\"){ii=indexOf.call(this._shortWeekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._weekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._minWeekdaysParse,llc);return ii!==-1?ii:null}else{ii=indexOf.call(this._minWeekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._weekdaysParse,llc);if(ii!==-1){return ii}ii=indexOf.call(this._shortWeekdaysParse,llc);return ii!==-1?ii:null}}}function localeWeekdaysParse(weekdayName,format,strict){var i,mom,regex;if(this._weekdaysParseExact){return handleStrictParse$1.call(this,weekdayName,format,strict)}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(i=0;i<7;i++){mom=createUTC([2e3,1]).day(i);if(strict&&!this._fullWeekdaysParse[i]){this._fullWeekdaysParse[i]=new RegExp(\"^\"+this.weekdays(mom,\"\").replace(\".\",\".?\")+\"$\",\"i\");this._shortWeekdaysParse[i]=new RegExp(\"^\"+this.weekdaysShort(mom,\"\").replace(\".\",\".?\")+\"$\",\"i\");this._minWeekdaysParse[i]=new RegExp(\"^\"+this.weekdaysMin(mom,\"\").replace(\".\",\".?\")+\"$\",\"i\")}if(!this._weekdaysParse[i]){regex=\"^\"+this.weekdays(mom,\"\")+\"|^\"+this.weekdaysShort(mom,\"\")+\"|^\"+this.weekdaysMin(mom,\"\");this._weekdaysParse[i]=new RegExp(regex.replace(\".\",\"\"),\"i\")}if(strict&&format===\"dddd\"&&this._fullWeekdaysParse[i].test(weekdayName)){return i}else if(strict&&format===\"ddd\"&&this._shortWeekdaysParse[i].test(weekdayName)){return i}else if(strict&&format===\"dd\"&&this._minWeekdaysParse[i].test(weekdayName)){return i}else if(!strict&&this._weekdaysParse[i].test(weekdayName)){return i}}}function getSetDayOfWeek(input){if(!this.isValid()){return input!=null?this:NaN}var day=this._isUTC?this._d.getUTCDay():this._d.getDay();if(input!=null){input=parseWeekday(input,this.localeData());return this.add(input-day,\"d\")}else{return day}}function getSetLocaleDayOfWeek(input){if(!this.isValid()){return input!=null?this:NaN}var weekday=(this.day()+7-this.localeData()._week.dow)%7;return input==null?weekday:this.add(input-weekday,\"d\")}function getSetISODayOfWeek(input){if(!this.isValid()){return input!=null?this:NaN}if(input!=null){var weekday=parseIsoWeekday(input,this.localeData());return this.day(this.day()%7?weekday:weekday-7)}else{return this.day()||7}}var defaultWeekdaysRegex=matchWord;function weekdaysRegex(isStrict){if(this._weekdaysParseExact){if(!hasOwnProp(this,\"_weekdaysRegex\")){computeWeekdaysParse.call(this)}if(isStrict){return this._weekdaysStrictRegex}else{return this._weekdaysRegex}}else{if(!hasOwnProp(this,\"_weekdaysRegex\")){this._weekdaysRegex=defaultWeekdaysRegex}return this._weekdaysStrictRegex&&isStrict?this._weekdaysStrictRegex:this._weekdaysRegex}}var defaultWeekdaysShortRegex=matchWord;function weekdaysShortRegex(isStrict){if(this._weekdaysParseExact){if(!hasOwnProp(this,\"_weekdaysRegex\")){computeWeekdaysParse.call(this)}if(isStrict){return this._weekdaysShortStrictRegex}else{return this._weekdaysShortRegex}}else{if(!hasOwnProp(this,\"_weekdaysShortRegex\")){this._weekdaysShortRegex=defaultWeekdaysShortRegex}return this._weekdaysShortStrictRegex&&isStrict?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}var defaultWeekdaysMinRegex=matchWord;function weekdaysMinRegex(isStrict){if(this._weekdaysParseExact){if(!hasOwnProp(this,\"_weekdaysRegex\")){computeWeekdaysParse.call(this)}if(isStrict){return this._weekdaysMinStrictRegex}else{return this._weekdaysMinRegex}}else{if(!hasOwnProp(this,\"_weekdaysMinRegex\")){this._weekdaysMinRegex=defaultWeekdaysMinRegex}return this._weekdaysMinStrictRegex&&isStrict?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function computeWeekdaysParse(){function cmpLenRev(a,b){return b.length-a.length}var minPieces=[],shortPieces=[],longPieces=[],mixedPieces=[],i,mom,minp,shortp,longp;for(i=0;i<7;i++){mom=createUTC([2e3,1]).day(i);minp=this.weekdaysMin(mom,\"\");shortp=this.weekdaysShort(mom,\"\");longp=this.weekdays(mom,\"\");minPieces.push(minp);shortPieces.push(shortp);longPieces.push(longp);mixedPieces.push(minp);mixedPieces.push(shortp);mixedPieces.push(longp)}minPieces.sort(cmpLenRev);shortPieces.sort(cmpLenRev);longPieces.sort(cmpLenRev);mixedPieces.sort(cmpLenRev);for(i=0;i<7;i++){shortPieces[i]=regexEscape(shortPieces[i]);longPieces[i]=regexEscape(longPieces[i]);mixedPieces[i]=regexEscape(mixedPieces[i])}this._weekdaysRegex=new RegExp(\"^(\"+mixedPieces.join(\"|\")+\")\",\"i\");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp(\"^(\"+longPieces.join(\"|\")+\")\",\"i\");this._weekdaysShortStrictRegex=new RegExp(\"^(\"+shortPieces.join(\"|\")+\")\",\"i\");this._weekdaysMinStrictRegex=new RegExp(\"^(\"+minPieces.join(\"|\")+\")\",\"i\")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken(\"H\",[\"HH\",2],0,\"hour\");addFormatToken(\"h\",[\"hh\",2],0,hFormat);addFormatToken(\"k\",[\"kk\",2],0,kFormat);addFormatToken(\"hmm\",0,0,function(){return\"\"+hFormat.apply(this)+zeroFill(this.minutes(),2)});addFormatToken(\"hmmss\",0,0,function(){return\"\"+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken(\"Hmm\",0,0,function(){return\"\"+this.hours()+zeroFill(this.minutes(),2)});addFormatToken(\"Hmmss\",0,0,function(){return\"\"+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(token,lowercase){addFormatToken(token,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),lowercase)})}meridiem(\"a\",true);meridiem(\"A\",false);addUnitAlias(\"hour\",\"h\");addUnitPriority(\"hour\",13);function matchMeridiem(isStrict,locale){return locale._meridiemParse}addRegexToken(\"a\",matchMeridiem);addRegexToken(\"A\",matchMeridiem);addRegexToken(\"H\",match1to2);addRegexToken(\"h\",match1to2);addRegexToken(\"k\",match1to2);addRegexToken(\"HH\",match1to2,match2);addRegexToken(\"hh\",match1to2,match2);addRegexToken(\"kk\",match1to2,match2);addRegexToken(\"hmm\",match3to4);addRegexToken(\"hmmss\",match5to6);addRegexToken(\"Hmm\",match3to4);addRegexToken(\"Hmmss\",match5to6);addParseToken([\"H\",\"HH\"],HOUR);addParseToken([\"k\",\"kk\"],function(input,array,config){var kInput=toInt(input);array[HOUR]=kInput===24?0:kInput});addParseToken([\"a\",\"A\"],function(input,array,config){config._isPm=config._locale.isPM(input);config._meridiem=input});addParseToken([\"h\",\"hh\"],function(input,array,config){array[HOUR]=toInt(input);getParsingFlags(config).bigHour=true});addParseToken(\"hmm\",function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos));array[MINUTE]=toInt(input.substr(pos));getParsingFlags(config).bigHour=true});addParseToken(\"hmmss\",function(input,array,config){var pos1=input.length-4;var pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1));array[MINUTE]=toInt(input.substr(pos1,2));array[SECOND]=toInt(input.substr(pos2));getParsingFlags(config).bigHour=true});addParseToken(\"Hmm\",function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos));array[MINUTE]=toInt(input.substr(pos))});addParseToken(\"Hmmss\",function(input,array,config){var pos1=input.length-4;var pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1));array[MINUTE]=toInt(input.substr(pos1,2));array[SECOND]=toInt(input.substr(pos2))});function localeIsPM(input){return(input+\"\").toLowerCase().charAt(0)===\"p\"}var defaultLocaleMeridiemParse=/[ap]\\.?m?\\.?/i;function localeMeridiem(hours,minutes,isLower){if(hours>11){return isLower?\"pm\":\"PM\"}else{return isLower?\"am\":\"AM\"}}var getSetHour=makeGetSet(\"Hours\",true);var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse};var locales={};var localeFamilies={};var globalLocale;function normalizeLocale(key){return key?key.toLowerCase().replace(\"_\",\"-\"):key}function chooseLocale(names){var i=0,j,next,locale,split;while(i<names.length){split=normalizeLocale(names[i]).split(\"-\");j=split.length;next=normalizeLocale(names[i+1]);next=next?next.split(\"-\"):null;while(j>0){locale=loadLocale(split.slice(0,j).join(\"-\"));if(locale){return locale}if(next&&next.length>=j&&compareArrays(split,next,true)>=j-1){break}j--}i++}return null}function loadLocale(name){var oldLocale=null;if(!locales[name]&&typeof module!==\"undefined\"&&module&&module.exports){try{oldLocale=globalLocale._abbr;var aliasedRequire=require;!function webpackMissingModule(){var e=new Error('Cannot find module \"./locale\"');e.code=\"MODULE_NOT_FOUND\";throw e}();getSetGlobalLocale(oldLocale)}catch(e){}}return locales[name]}function getSetGlobalLocale(key,values){var data;if(key){if(isUndefined(values)){data=getLocale(key)}else{data=defineLocale(key,values)}if(data){globalLocale=data}}return globalLocale._abbr}function defineLocale(name,config){if(config!==null){var parentConfig=baseConfig;config.abbr=name;if(locales[name]!=null){deprecateSimple(\"defineLocaleOverride\",\"use moment.updateLocale(localeName, config) to change \"+\"an existing locale. moment.defineLocale(localeName, \"+\"config) should only be used for creating a new locale \"+\"See http://momentjs.com/guides/#/warnings/define-locale/ for more info.\");parentConfig=locales[name]._config}else if(config.parentLocale!=null){if(locales[config.parentLocale]!=null){parentConfig=locales[config.parentLocale]._config}else{if(!localeFamilies[config.parentLocale]){localeFamilies[config.parentLocale]=[]}localeFamilies[config.parentLocale].push({name:name,config:config});return null}}locales[name]=new Locale(mergeConfigs(parentConfig,config));if(localeFamilies[name]){localeFamilies[name].forEach(function(x){defineLocale(x.name,x.config)})}getSetGlobalLocale(name);return locales[name]}else{delete locales[name];return null}}function updateLocale(name,config){if(config!=null){var locale,parentConfig=baseConfig;if(locales[name]!=null){parentConfig=locales[name]._config}config=mergeConfigs(parentConfig,config);locale=new Locale(config);locale.parentLocale=locales[name];locales[name]=locale;getSetGlobalLocale(name)}else{if(locales[name]!=null){if(locales[name].parentLocale!=null){locales[name]=locales[name].parentLocale}else if(locales[name]!=null){delete locales[name]}}}return locales[name]}function getLocale(key){var locale;if(key&&key._locale&&key._locale._abbr){key=key._locale._abbr}if(!key){return globalLocale}if(!isArray(key)){locale=loadLocale(key);if(locale){return locale}key=[key]}return chooseLocale(key)}function listLocales(){return keys(locales)}function checkOverflow(m){var overflow;var a=m._a;if(a&&getParsingFlags(m).overflow===-2){overflow=a[MONTH]<0||a[MONTH]>11?MONTH:a[DATE]<1||a[DATE]>daysInMonth(a[YEAR],a[MONTH])?DATE:a[HOUR]<0||a[HOUR]>24||a[HOUR]===24&&(a[MINUTE]!==0||a[SECOND]!==0||a[MILLISECOND]!==0)?HOUR:a[MINUTE]<0||a[MINUTE]>59?MINUTE:a[SECOND]<0||a[SECOND]>59?SECOND:a[MILLISECOND]<0||a[MILLISECOND]>999?MILLISECOND:-1;if(getParsingFlags(m)._overflowDayOfYear&&(overflow<YEAR||overflow>DATE)){overflow=DATE}if(getParsingFlags(m)._overflowWeeks&&overflow===-1){overflow=WEEK}if(getParsingFlags(m)._overflowWeekday&&overflow===-1){overflow=WEEKDAY}getParsingFlags(m).overflow=overflow}return m}function defaults(a,b,c){if(a!=null){return a}if(b!=null){return b}return c}function currentDateArray(config){var nowValue=new Date(hooks.now());if(config._useUTC){return[nowValue.getUTCFullYear(),nowValue.getUTCMonth(),nowValue.getUTCDate()]}return[nowValue.getFullYear(),nowValue.getMonth(),nowValue.getDate()]}function configFromArray(config){var i,date,input=[],currentDate,yearToUse;if(config._d){return}currentDate=currentDateArray(config);if(config._w&&config._a[DATE]==null&&config._a[MONTH]==null){dayOfYearFromWeekInfo(config)}if(config._dayOfYear!=null){yearToUse=defaults(config._a[YEAR],currentDate[YEAR]);if(config._dayOfYear>daysInYear(yearToUse)||config._dayOfYear===0){getParsingFlags(config)._overflowDayOfYear=true}date=createUTCDate(yearToUse,0,config._dayOfYear);config._a[MONTH]=date.getUTCMonth();config._a[DATE]=date.getUTCDate()}for(i=0;i<3&&config._a[i]==null;++i){config._a[i]=input[i]=currentDate[i]}for(;i<7;i++){config._a[i]=input[i]=config._a[i]==null?i===2?1:0:config._a[i]}if(config._a[HOUR]===24&&config._a[MINUTE]===0&&config._a[SECOND]===0&&config._a[MILLISECOND]===0){config._nextDay=true;config._a[HOUR]=0}config._d=(config._useUTC?createUTCDate:createDate).apply(null,input);if(config._tzm!=null){config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm)}if(config._nextDay){config._a[HOUR]=24}if(config._w&&typeof config._w.d!==\"undefined\"&&config._w.d!==config._d.getDay()){getParsingFlags(config).weekdayMismatch=true}}function dayOfYearFromWeekInfo(config){var w,weekYear,week,weekday,dow,doy,temp,weekdayOverflow;w=config._w;if(w.GG!=null||w.W!=null||w.E!=null){dow=1;doy=4;weekYear=defaults(w.GG,config._a[YEAR],weekOfYear(createLocal(),1,4).year);week=defaults(w.W,1);weekday=defaults(w.E,1);if(weekday<1||weekday>7){weekdayOverflow=true}}else{dow=config._locale._week.dow;doy=config._locale._week.doy;var curWeek=weekOfYear(createLocal(),dow,doy);weekYear=defaults(w.gg,config._a[YEAR],curWeek.year);week=defaults(w.w,curWeek.week);if(w.d!=null){weekday=w.d;if(weekday<0||weekday>6){weekdayOverflow=true}}else if(w.e!=null){weekday=w.e+dow;if(w.e<0||w.e>6){weekdayOverflow=true}}else{weekday=dow}}if(week<1||week>weeksInYear(weekYear,dow,doy)){getParsingFlags(config)._overflowWeeks=true}else if(weekdayOverflow!=null){getParsingFlags(config)._overflowWeekday=true}else{temp=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy);config._a[YEAR]=temp.year;config._dayOfYear=temp.dayOfYear}}var extendedIsoRegex=/^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/;var basicIsoRegex=/^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/;var tzRegex=/Z|[+-]\\d\\d(?::?\\d\\d)?/;var isoDates=[[\"YYYYYY-MM-DD\",/[+-]\\d{6}-\\d\\d-\\d\\d/],[\"YYYY-MM-DD\",/\\d{4}-\\d\\d-\\d\\d/],[\"GGGG-[W]WW-E\",/\\d{4}-W\\d\\d-\\d/],[\"GGGG-[W]WW\",/\\d{4}-W\\d\\d/,false],[\"YYYY-DDD\",/\\d{4}-\\d{3}/],[\"YYYY-MM\",/\\d{4}-\\d\\d/,false],[\"YYYYYYMMDD\",/[+-]\\d{10}/],[\"YYYYMMDD\",/\\d{8}/],[\"GGGG[W]WWE\",/\\d{4}W\\d{3}/],[\"GGGG[W]WW\",/\\d{4}W\\d{2}/,false],[\"YYYYDDD\",/\\d{7}/]];var isoTimes=[[\"HH:mm:ss.SSSS\",/\\d\\d:\\d\\d:\\d\\d\\.\\d+/],[\"HH:mm:ss,SSSS\",/\\d\\d:\\d\\d:\\d\\d,\\d+/],[\"HH:mm:ss\",/\\d\\d:\\d\\d:\\d\\d/],[\"HH:mm\",/\\d\\d:\\d\\d/],[\"HHmmss.SSSS\",/\\d\\d\\d\\d\\d\\d\\.\\d+/],[\"HHmmss,SSSS\",/\\d\\d\\d\\d\\d\\d,\\d+/],[\"HHmmss\",/\\d\\d\\d\\d\\d\\d/],[\"HHmm\",/\\d\\d\\d\\d/],[\"HH\",/\\d\\d/]];var aspNetJsonRegex=/^\\/?Date\\((\\-?\\d+)/i;function configFromISO(config){var i,l,string=config._i,match=extendedIsoRegex.exec(string)||basicIsoRegex.exec(string),allowTime,dateFormat,timeFormat,tzFormat;if(match){getParsingFlags(config).iso=true;for(i=0,l=isoDates.length;i<l;i++){if(isoDates[i][1].exec(match[1])){dateFormat=isoDates[i][0];allowTime=isoDates[i][2]!==false;break}}if(dateFormat==null){config._isValid=false;return}if(match[3]){for(i=0,l=isoTimes.length;i<l;i++){if(isoTimes[i][1].exec(match[3])){timeFormat=(match[2]||\" \")+isoTimes[i][0];break}}if(timeFormat==null){config._isValid=false;return}}if(!allowTime&&timeFormat!=null){config._isValid=false;return}if(match[4]){if(tzRegex.exec(match[4])){tzFormat=\"Z\"}else{config._isValid=false;return}}config._f=dateFormat+(timeFormat||\"\")+(tzFormat||\"\");configFromStringAndFormat(config)}else{config._isValid=false}}var rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/;function extractFromRFC2822Strings(yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr){var result=[untruncateYear(yearStr),defaultLocaleMonthsShort.indexOf(monthStr),parseInt(dayStr,10),parseInt(hourStr,10),parseInt(minuteStr,10)];if(secondStr){result.push(parseInt(secondStr,10))}return result}function untruncateYear(yearStr){var year=parseInt(yearStr,10);if(year<=49){return 2e3+year}else if(year<=999){return 1900+year}return year}function preprocessRFC2822(s){return s.replace(/\\([^)]*\\)|[\\n\\t]/g,\" \").replace(/(\\s\\s+)/g,\" \").trim()}function checkWeekday(weekdayStr,parsedInput,config){if(weekdayStr){var weekdayProvided=defaultLocaleWeekdaysShort.indexOf(weekdayStr),weekdayActual=new Date(parsedInput[0],parsedInput[1],parsedInput[2]).getDay();if(weekdayProvided!==weekdayActual){getParsingFlags(config).weekdayMismatch=true;config._isValid=false;return false}}return true}var obsOffsets={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function calculateOffset(obsOffset,militaryOffset,numOffset){if(obsOffset){return obsOffsets[obsOffset]}else if(militaryOffset){return 0}else{var hm=parseInt(numOffset,10);var m=hm%100,h=(hm-m)/100;return h*60+m}}function configFromRFC2822(config){var match=rfc2822.exec(preprocessRFC2822(config._i));if(match){var parsedArray=extractFromRFC2822Strings(match[4],match[3],match[2],match[5],match[6],match[7]);if(!checkWeekday(match[1],parsedArray,config)){return}config._a=parsedArray;config._tzm=calculateOffset(match[8],match[9],match[10]);config._d=createUTCDate.apply(null,config._a);config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm);getParsingFlags(config).rfc2822=true}else{config._isValid=false}}function configFromString(config){var matched=aspNetJsonRegex.exec(config._i);if(matched!==null){config._d=new Date(+matched[1]);return}configFromISO(config);if(config._isValid===false){delete config._isValid}else{return}configFromRFC2822(config);if(config._isValid===false){delete config._isValid}else{return}hooks.createFromInputFallback(config)}hooks.createFromInputFallback=deprecate(\"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), \"+\"which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are \"+\"discouraged and will be removed in an upcoming major release. Please refer to \"+\"http://momentjs.com/guides/#/warnings/js-date/ for more info.\",function(config){config._d=new Date(config._i+(config._useUTC?\" UTC\":\"\"))});hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(config){if(config._f===hooks.ISO_8601){configFromISO(config);return}if(config._f===hooks.RFC_2822){configFromRFC2822(config);return}config._a=[];getParsingFlags(config).empty=true\n;var string=\"\"+config._i,i,parsedInput,tokens,token,skipped,stringLength=string.length,totalParsedInputLength=0;tokens=expandFormat(config._f,config._locale).match(formattingTokens)||[];for(i=0;i<tokens.length;i++){token=tokens[i];parsedInput=(string.match(getParseRegexForToken(token,config))||[])[0];if(parsedInput){skipped=string.substr(0,string.indexOf(parsedInput));if(skipped.length>0){getParsingFlags(config).unusedInput.push(skipped)}string=string.slice(string.indexOf(parsedInput)+parsedInput.length);totalParsedInputLength+=parsedInput.length}if(formatTokenFunctions[token]){if(parsedInput){getParsingFlags(config).empty=false}else{getParsingFlags(config).unusedTokens.push(token)}addTimeToArrayFromToken(token,parsedInput,config)}else if(config._strict&&!parsedInput){getParsingFlags(config).unusedTokens.push(token)}}getParsingFlags(config).charsLeftOver=stringLength-totalParsedInputLength;if(string.length>0){getParsingFlags(config).unusedInput.push(string)}if(config._a[HOUR]<=12&&getParsingFlags(config).bigHour===true&&config._a[HOUR]>0){getParsingFlags(config).bigHour=undefined}getParsingFlags(config).parsedDateParts=config._a.slice(0);getParsingFlags(config).meridiem=config._meridiem;config._a[HOUR]=meridiemFixWrap(config._locale,config._a[HOUR],config._meridiem);configFromArray(config);checkOverflow(config)}function meridiemFixWrap(locale,hour,meridiem){var isPm;if(meridiem==null){return hour}if(locale.meridiemHour!=null){return locale.meridiemHour(hour,meridiem)}else if(locale.isPM!=null){isPm=locale.isPM(meridiem);if(isPm&&hour<12){hour+=12}if(!isPm&&hour===12){hour=0}return hour}else{return hour}}function configFromStringAndArray(config){var tempConfig,bestMoment,scoreToBeat,i,currentScore;if(config._f.length===0){getParsingFlags(config).invalidFormat=true;config._d=new Date(NaN);return}for(i=0;i<config._f.length;i++){currentScore=0;tempConfig=copyConfig({},config);if(config._useUTC!=null){tempConfig._useUTC=config._useUTC}tempConfig._f=config._f[i];configFromStringAndFormat(tempConfig);if(!isValid(tempConfig)){continue}currentScore+=getParsingFlags(tempConfig).charsLeftOver;currentScore+=getParsingFlags(tempConfig).unusedTokens.length*10;getParsingFlags(tempConfig).score=currentScore;if(scoreToBeat==null||currentScore<scoreToBeat){scoreToBeat=currentScore;bestMoment=tempConfig}}extend(config,bestMoment||tempConfig)}function configFromObject(config){if(config._d){return}var i=normalizeObjectUnits(config._i);config._a=map([i.year,i.month,i.day||i.date,i.hour,i.minute,i.second,i.millisecond],function(obj){return obj&&parseInt(obj,10)});configFromArray(config)}function createFromConfig(config){var res=new Moment(checkOverflow(prepareConfig(config)));if(res._nextDay){res.add(1,\"d\");res._nextDay=undefined}return res}function prepareConfig(config){var input=config._i,format=config._f;config._locale=config._locale||getLocale(config._l);if(input===null||format===undefined&&input===\"\"){return createInvalid({nullInput:true})}if(typeof input===\"string\"){config._i=input=config._locale.preparse(input)}if(isMoment(input)){return new Moment(checkOverflow(input))}else if(isDate(input)){config._d=input}else if(isArray(format)){configFromStringAndArray(config)}else if(format){configFromStringAndFormat(config)}else{configFromInput(config)}if(!isValid(config)){config._d=null}return config}function configFromInput(config){var input=config._i;if(isUndefined(input)){config._d=new Date(hooks.now())}else if(isDate(input)){config._d=new Date(input.valueOf())}else if(typeof input===\"string\"){configFromString(config)}else if(isArray(input)){config._a=map(input.slice(0),function(obj){return parseInt(obj,10)});configFromArray(config)}else if(isObject(input)){configFromObject(config)}else if(isNumber(input)){config._d=new Date(input)}else{hooks.createFromInputFallback(config)}}function createLocalOrUTC(input,format,locale,strict,isUTC){var c={};if(locale===true||locale===false){strict=locale;locale=undefined}if(isObject(input)&&isObjectEmpty(input)||isArray(input)&&input.length===0){input=undefined}c._isAMomentObject=true;c._useUTC=c._isUTC=isUTC;c._l=locale;c._i=input;c._f=format;c._strict=strict;return createFromConfig(c)}function createLocal(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,false)}var prototypeMin=deprecate(\"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/\",function(){var other=createLocal.apply(null,arguments);if(this.isValid()&&other.isValid()){return other<this?this:other}else{return createInvalid()}});var prototypeMax=deprecate(\"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/\",function(){var other=createLocal.apply(null,arguments);if(this.isValid()&&other.isValid()){return other>this?this:other}else{return createInvalid()}});function pickBy(fn,moments){var res,i;if(moments.length===1&&isArray(moments[0])){moments=moments[0]}if(!moments.length){return createLocal()}res=moments[0];for(i=1;i<moments.length;++i){if(!moments[i].isValid()||moments[i][fn](res)){res=moments[i]}}return res}function min(){var args=[].slice.call(arguments,0);return pickBy(\"isBefore\",args)}function max(){var args=[].slice.call(arguments,0);return pickBy(\"isAfter\",args)}var now=function(){return Date.now?Date.now():+new Date};var ordering=[\"year\",\"quarter\",\"month\",\"week\",\"day\",\"hour\",\"minute\",\"second\",\"millisecond\"];function isDurationValid(m){for(var key in m){if(!(indexOf.call(ordering,key)!==-1&&(m[key]==null||!isNaN(m[key])))){return false}}var unitHasDecimal=false;for(var i=0;i<ordering.length;++i){if(m[ordering[i]]){if(unitHasDecimal){return false}if(parseFloat(m[ordering[i]])!==toInt(m[ordering[i]])){unitHasDecimal=true}}}return true}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(duration){var normalizedInput=normalizeObjectUnits(duration),years=normalizedInput.year||0,quarters=normalizedInput.quarter||0,months=normalizedInput.month||0,weeks=normalizedInput.week||0,days=normalizedInput.day||0,hours=normalizedInput.hour||0,minutes=normalizedInput.minute||0,seconds=normalizedInput.second||0,milliseconds=normalizedInput.millisecond||0;this._isValid=isDurationValid(normalizedInput);this._milliseconds=+milliseconds+seconds*1e3+minutes*6e4+hours*1e3*60*60;this._days=+days+weeks*7;this._months=+months+quarters*3+years*12;this._data={};this._locale=getLocale();this._bubble()}function isDuration(obj){return obj instanceof Duration}function absRound(number){if(number<0){return Math.round(-1*number)*-1}else{return Math.round(number)}}function offset(token,separator){addFormatToken(token,0,0,function(){var offset=this.utcOffset();var sign=\"+\";if(offset<0){offset=-offset;sign=\"-\"}return sign+zeroFill(~~(offset/60),2)+separator+zeroFill(~~offset%60,2)})}offset(\"Z\",\":\");offset(\"ZZ\",\"\");addRegexToken(\"Z\",matchShortOffset);addRegexToken(\"ZZ\",matchShortOffset);addParseToken([\"Z\",\"ZZ\"],function(input,array,config){config._useUTC=true;config._tzm=offsetFromString(matchShortOffset,input)});var chunkOffset=/([\\+\\-]|\\d\\d)/gi;function offsetFromString(matcher,string){var matches=(string||\"\").match(matcher);if(matches===null){return null}var chunk=matches[matches.length-1]||[];var parts=(chunk+\"\").match(chunkOffset)||[\"-\",0,0];var minutes=+(parts[1]*60)+toInt(parts[2]);return minutes===0?0:parts[0]===\"+\"?minutes:-minutes}function cloneWithOffset(input,model){var res,diff;if(model._isUTC){res=model.clone();diff=(isMoment(input)||isDate(input)?input.valueOf():createLocal(input).valueOf())-res.valueOf();res._d.setTime(res._d.valueOf()+diff);hooks.updateOffset(res,false);return res}else{return createLocal(input).local()}}function getDateOffset(m){return-Math.round(m._d.getTimezoneOffset()/15)*15}hooks.updateOffset=function(){};function getSetOffset(input,keepLocalTime,keepMinutes){var offset=this._offset||0,localAdjust;if(!this.isValid()){return input!=null?this:NaN}if(input!=null){if(typeof input===\"string\"){input=offsetFromString(matchShortOffset,input);if(input===null){return this}}else if(Math.abs(input)<16&&!keepMinutes){input=input*60}if(!this._isUTC&&keepLocalTime){localAdjust=getDateOffset(this)}this._offset=input;this._isUTC=true;if(localAdjust!=null){this.add(localAdjust,\"m\")}if(offset!==input){if(!keepLocalTime||this._changeInProgress){addSubtract(this,createDuration(input-offset,\"m\"),1,false)}else if(!this._changeInProgress){this._changeInProgress=true;hooks.updateOffset(this,true);this._changeInProgress=null}}return this}else{return this._isUTC?offset:getDateOffset(this)}}function getSetZone(input,keepLocalTime){if(input!=null){if(typeof input!==\"string\"){input=-input}this.utcOffset(input,keepLocalTime);return this}else{return-this.utcOffset()}}function setOffsetToUTC(keepLocalTime){return this.utcOffset(0,keepLocalTime)}function setOffsetToLocal(keepLocalTime){if(this._isUTC){this.utcOffset(0,keepLocalTime);this._isUTC=false;if(keepLocalTime){this.subtract(getDateOffset(this),\"m\")}}return this}function setOffsetToParsedOffset(){if(this._tzm!=null){this.utcOffset(this._tzm,false,true)}else if(typeof this._i===\"string\"){var tZone=offsetFromString(matchOffset,this._i);if(tZone!=null){this.utcOffset(tZone)}else{this.utcOffset(0,true)}}return this}function hasAlignedHourOffset(input){if(!this.isValid()){return false}input=input?createLocal(input).utcOffset():0;return(this.utcOffset()-input)%60===0}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted)){return this._isDSTShifted}var c={};copyConfig(c,this);c=prepareConfig(c);if(c._a){var other=c._isUTC?createUTC(c._a):createLocal(c._a);this._isDSTShifted=this.isValid()&&compareArrays(c._a,other.toArray())>0}else{this._isDSTShifted=false}return this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:false}function isUtcOffset(){return this.isValid()?this._isUTC:false}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:false}var aspNetRegex=/^(\\-|\\+)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)(\\.\\d*)?)?$/;var isoRegex=/^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(input,key){var duration=input,match=null,sign,ret,diffRes;if(isDuration(input)){duration={ms:input._milliseconds,d:input._days,M:input._months}}else if(isNumber(input)){duration={};if(key){duration[key]=input}else{duration.milliseconds=input}}else if(!!(match=aspNetRegex.exec(input))){sign=match[1]===\"-\"?-1:1;duration={y:0,d:toInt(match[DATE])*sign,h:toInt(match[HOUR])*sign,m:toInt(match[MINUTE])*sign,s:toInt(match[SECOND])*sign,ms:toInt(absRound(match[MILLISECOND]*1e3))*sign}}else if(!!(match=isoRegex.exec(input))){sign=match[1]===\"-\"?-1:match[1]===\"+\"?1:1;duration={y:parseIso(match[2],sign),M:parseIso(match[3],sign),w:parseIso(match[4],sign),d:parseIso(match[5],sign),h:parseIso(match[6],sign),m:parseIso(match[7],sign),s:parseIso(match[8],sign)}}else if(duration==null){duration={}}else if(typeof duration===\"object\"&&(\"from\"in duration||\"to\"in duration)){diffRes=momentsDifference(createLocal(duration.from),createLocal(duration.to));duration={};duration.ms=diffRes.milliseconds;duration.M=diffRes.months}ret=new Duration(duration);if(isDuration(input)&&hasOwnProp(input,\"_locale\")){ret._locale=input._locale}return ret}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(inp,sign){var res=inp&&parseFloat(inp.replace(\",\",\".\"));return(isNaN(res)?0:res)*sign}function positiveMomentsDifference(base,other){var res={milliseconds:0,months:0};res.months=other.month()-base.month()+(other.year()-base.year())*12;if(base.clone().add(res.months,\"M\").isAfter(other)){--res.months}res.milliseconds=+other-+base.clone().add(res.months,\"M\");return res}function momentsDifference(base,other){var res;if(!(base.isValid()&&other.isValid())){return{milliseconds:0,months:0}}other=cloneWithOffset(other,base);if(base.isBefore(other)){res=positiveMomentsDifference(base,other)}else{res=positiveMomentsDifference(other,base);res.milliseconds=-res.milliseconds;res.months=-res.months}return res}function createAdder(direction,name){return function(val,period){var dur,tmp;if(period!==null&&!isNaN(+period)){deprecateSimple(name,\"moment().\"+name+\"(period, number) is deprecated. Please use moment().\"+name+\"(number, period). \"+\"See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.\");tmp=val;val=period;period=tmp}val=typeof val===\"string\"?+val:val;dur=createDuration(val,period);addSubtract(this,dur,direction);return this}}function addSubtract(mom,duration,isAdding,updateOffset){var milliseconds=duration._milliseconds,days=absRound(duration._days),months=absRound(duration._months);if(!mom.isValid()){return}updateOffset=updateOffset==null?true:updateOffset;if(months){setMonth(mom,get(mom,\"Month\")+months*isAdding)}if(days){set$1(mom,\"Date\",get(mom,\"Date\")+days*isAdding)}if(milliseconds){mom._d.setTime(mom._d.valueOf()+milliseconds*isAdding)}if(updateOffset){hooks.updateOffset(mom,days||months)}}var add=createAdder(1,\"add\");var subtract=createAdder(-1,\"subtract\");function getCalendarFormat(myMoment,now){var diff=myMoment.diff(now,\"days\",true);return diff<-6?\"sameElse\":diff<-1?\"lastWeek\":diff<0?\"lastDay\":diff<1?\"sameDay\":diff<2?\"nextDay\":diff<7?\"nextWeek\":\"sameElse\"}function calendar$1(time,formats){var now=time||createLocal(),sod=cloneWithOffset(now,this).startOf(\"day\"),format=hooks.calendarFormat(this,sod)||\"sameElse\";var output=formats&&(isFunction(formats[format])?formats[format].call(this,now):formats[format]);return this.format(output||this.localeData().calendar(format,this,createLocal(now)))}function clone(){return new Moment(this)}function isAfter(input,units){var localInput=isMoment(input)?input:createLocal(input);if(!(this.isValid()&&localInput.isValid())){return false}units=normalizeUnits(!isUndefined(units)?units:\"millisecond\");if(units===\"millisecond\"){return this.valueOf()>localInput.valueOf()}else{return localInput.valueOf()<this.clone().startOf(units).valueOf()}}function isBefore(input,units){var localInput=isMoment(input)?input:createLocal(input);if(!(this.isValid()&&localInput.isValid())){return false}units=normalizeUnits(!isUndefined(units)?units:\"millisecond\");if(units===\"millisecond\"){return this.valueOf()<localInput.valueOf()}else{return this.clone().endOf(units).valueOf()<localInput.valueOf()}}function isBetween(from,to,units,inclusivity){inclusivity=inclusivity||\"()\";return(inclusivity[0]===\"(\"?this.isAfter(from,units):!this.isBefore(from,units))&&(inclusivity[1]===\")\"?this.isBefore(to,units):!this.isAfter(to,units))}function isSame(input,units){var localInput=isMoment(input)?input:createLocal(input),inputMs;if(!(this.isValid()&&localInput.isValid())){return false}units=normalizeUnits(units||\"millisecond\");if(units===\"millisecond\"){return this.valueOf()===localInput.valueOf()}else{inputMs=localInput.valueOf();return this.clone().startOf(units).valueOf()<=inputMs&&inputMs<=this.clone().endOf(units).valueOf()}}function isSameOrAfter(input,units){return this.isSame(input,units)||this.isAfter(input,units)}function isSameOrBefore(input,units){return this.isSame(input,units)||this.isBefore(input,units)}function diff(input,units,asFloat){var that,zoneDelta,delta,output;if(!this.isValid()){return NaN}that=cloneWithOffset(input,this);if(!that.isValid()){return NaN}zoneDelta=(that.utcOffset()-this.utcOffset())*6e4;units=normalizeUnits(units);switch(units){case\"year\":output=monthDiff(this,that)/12;break;case\"month\":output=monthDiff(this,that);break;case\"quarter\":output=monthDiff(this,that)/3;break;case\"second\":output=(this-that)/1e3;break;case\"minute\":output=(this-that)/6e4;break;case\"hour\":output=(this-that)/36e5;break;case\"day\":output=(this-that-zoneDelta)/864e5;break;case\"week\":output=(this-that-zoneDelta)/6048e5;break;default:output=this-that}return asFloat?output:absFloor(output)}function monthDiff(a,b){var wholeMonthDiff=(b.year()-a.year())*12+(b.month()-a.month()),anchor=a.clone().add(wholeMonthDiff,\"months\"),anchor2,adjust;if(b-anchor<0){anchor2=a.clone().add(wholeMonthDiff-1,\"months\");adjust=(b-anchor)/(anchor-anchor2)}else{anchor2=a.clone().add(wholeMonthDiff+1,\"months\");adjust=(b-anchor)/(anchor2-anchor)}return-(wholeMonthDiff+adjust)||0}hooks.defaultFormat=\"YYYY-MM-DDTHH:mm:ssZ\";hooks.defaultFormatUtc=\"YYYY-MM-DDTHH:mm:ss[Z]\";function toString(){return this.clone().locale(\"en\").format(\"ddd MMM DD YYYY HH:mm:ss [GMT]ZZ\")}function toISOString(){if(!this.isValid()){return null}var m=this.clone().utc();if(m.year()<0||m.year()>9999){return formatMoment(m,\"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]\")}if(isFunction(Date.prototype.toISOString)){return this.toDate().toISOString()}return formatMoment(m,\"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]\")}function inspect(){if(!this.isValid()){return\"moment.invalid(/* \"+this._i+\" */)\"}var func=\"moment\";var zone=\"\";if(!this.isLocal()){func=this.utcOffset()===0?\"moment.utc\":\"moment.parseZone\";zone=\"Z\"}var prefix=\"[\"+func+'(\"]';var year=0<=this.year()&&this.year()<=9999?\"YYYY\":\"YYYYYY\";var datetime=\"-MM-DD[T]HH:mm:ss.SSS\";var suffix=zone+'[\")]';return this.format(prefix+year+datetime+suffix)}function format(inputString){if(!inputString){inputString=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat}var output=formatMoment(this,inputString);return this.localeData().postformat(output)}function from(time,withoutSuffix){if(this.isValid()&&(isMoment(time)&&time.isValid()||createLocal(time).isValid())){return createDuration({to:this,from:time}).locale(this.locale()).humanize(!withoutSuffix)}else{return this.localeData().invalidDate()}}function fromNow(withoutSuffix){return this.from(createLocal(),withoutSuffix)}function to(time,withoutSuffix){if(this.isValid()&&(isMoment(time)&&time.isValid()||createLocal(time).isValid())){return createDuration({from:this,to:time}).locale(this.locale()).humanize(!withoutSuffix)}else{return this.localeData().invalidDate()}}function toNow(withoutSuffix){return this.to(createLocal(),withoutSuffix)}function locale(key){var newLocaleData;if(key===undefined){return this._locale._abbr}else{newLocaleData=getLocale(key);if(newLocaleData!=null){this._locale=newLocaleData}return this}}var lang=deprecate(\"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.\",function(key){if(key===undefined){return this.localeData()}else{return this.locale(key)}});function localeData(){return this._locale}function startOf(units){units=normalizeUnits(units);switch(units){case\"year\":this.month(0);case\"quarter\":case\"month\":this.date(1);case\"week\":case\"isoWeek\":case\"day\":case\"date\":this.hours(0);case\"hour\":this.minutes(0);case\"minute\":this.seconds(0);case\"second\":this.milliseconds(0)}if(units===\"week\"){this.weekday(0)}if(units===\"isoWeek\"){this.isoWeekday(1)}if(units===\"quarter\"){this.month(Math.floor(this.month()/3)*3)}return this}function endOf(units){units=normalizeUnits(units);if(units===undefined||units===\"millisecond\"){return this}if(units===\"date\"){units=\"day\"}return this.startOf(units).add(1,units===\"isoWeek\"?\"week\":units).subtract(1,\"ms\")}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var m=this;return[m.year(),m.month(),m.date(),m.hour(),m.minute(),m.second(),m.millisecond()]}function toObject(){var m=this;return{years:m.year(),months:m.month(),date:m.date(),hours:m.hours(),minutes:m.minutes(),seconds:m.seconds(),milliseconds:m.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken(0,[\"gg\",2],0,function(){return this.weekYear()%100});addFormatToken(0,[\"GG\",2],0,function(){return this.isoWeekYear()%100});function addWeekYearFormatToken(token,getter){addFormatToken(0,[token,token.length],0,getter)}addWeekYearFormatToken(\"gggg\",\"weekYear\");addWeekYearFormatToken(\"ggggg\",\"weekYear\");addWeekYearFormatToken(\"GGGG\",\"isoWeekYear\");addWeekYearFormatToken(\"GGGGG\",\"isoWeekYear\");addUnitAlias(\"weekYear\",\"gg\");addUnitAlias(\"isoWeekYear\",\"GG\");addUnitPriority(\"weekYear\",1);addUnitPriority(\"isoWeekYear\",1);addRegexToken(\"G\",matchSigned);addRegexToken(\"g\",matchSigned);addRegexToken(\"GG\",match1to2,match2);addRegexToken(\"gg\",match1to2,match2);addRegexToken(\"GGGG\",match1to4,match4);addRegexToken(\"gggg\",match1to4,match4);addRegexToken(\"GGGGG\",match1to6,match6);addRegexToken(\"ggggg\",match1to6,match6);addWeekParseToken([\"gggg\",\"ggggg\",\"GGGG\",\"GGGGG\"],function(input,week,config,token){week[token.substr(0,2)]=toInt(input)});addWeekParseToken([\"gg\",\"GG\"],function(input,week,config,token){week[token]=hooks.parseTwoDigitYear(input)});function getSetWeekYear(input){return getSetWeekYearHelper.call(this,input,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(input){return getSetWeekYearHelper.call(this,input,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getWeeksInYear(){var weekInfo=this.localeData()._week;return weeksInYear(this.year(),weekInfo.dow,weekInfo.doy)}function getSetWeekYearHelper(input,week,weekday,dow,doy){var weeksTarget;if(input==null){return weekOfYear(this,dow,doy).year}else{weeksTarget=weeksInYear(input,dow,doy);if(week>weeksTarget){week=weeksTarget}return setWeekAll.call(this,input,week,weekday,dow,doy)}}function setWeekAll(weekYear,week,weekday,dow,doy){var dayOfYearData=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy),date=createUTCDate(dayOfYearData.year,0,dayOfYearData.dayOfYear);this.year(date.getUTCFullYear());this.month(date.getUTCMonth());this.date(date.getUTCDate());return this}addFormatToken(\"Q\",0,\"Qo\",\"quarter\");addUnitAlias(\"quarter\",\"Q\");addUnitPriority(\"quarter\",7);addRegexToken(\"Q\",match1);addParseToken(\"Q\",function(input,array){array[MONTH]=(toInt(input)-1)*3});function getSetQuarter(input){return input==null?Math.ceil((this.month()+1)/3):this.month((input-1)*3+this.month()%3)}addFormatToken(\"D\",[\"DD\",2],\"Do\",\"date\");addUnitAlias(\"date\",\"D\");addUnitPriority(\"date\",9);addRegexToken(\"D\",match1to2);addRegexToken(\"DD\",match1to2,match2);addRegexToken(\"Do\",function(isStrict,locale){return isStrict?locale._dayOfMonthOrdinalParse||locale._ordinalParse:locale._dayOfMonthOrdinalParseLenient});addParseToken([\"D\",\"DD\"],DATE);addParseToken(\"Do\",function(input,array){array[DATE]=toInt(input.match(match1to2)[0],10)});var getSetDayOfMonth=makeGetSet(\"Date\",true);addFormatToken(\"DDD\",[\"DDDD\",3],\"DDDo\",\"dayOfYear\");addUnitAlias(\"dayOfYear\",\"DDD\");addUnitPriority(\"dayOfYear\",4);addRegexToken(\"DDD\",match1to3);addRegexToken(\"DDDD\",match3);addParseToken([\"DDD\",\"DDDD\"],function(input,array,config){config._dayOfYear=toInt(input)});function getSetDayOfYear(input){var dayOfYear=Math.round((this.clone().startOf(\"day\")-this.clone().startOf(\"year\"))/864e5)+1;return input==null?dayOfYear:this.add(input-dayOfYear,\"d\")}addFormatToken(\"m\",[\"mm\",2],0,\"minute\");addUnitAlias(\"minute\",\"m\");addUnitPriority(\"minute\",14);addRegexToken(\"m\",match1to2);addRegexToken(\"mm\",match1to2,match2);addParseToken([\"m\",\"mm\"],MINUTE);var getSetMinute=makeGetSet(\"Minutes\",false);addFormatToken(\"s\",[\"ss\",2],0,\"second\");addUnitAlias(\"second\",\"s\");addUnitPriority(\"second\",15);addRegexToken(\"s\",match1to2);addRegexToken(\"ss\",match1to2,match2);addParseToken([\"s\",\"ss\"],SECOND);var getSetSecond=makeGetSet(\"Seconds\",false);addFormatToken(\"S\",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,[\"SS\",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,[\"SSS\",3],0,\"millisecond\");addFormatToken(0,[\"SSSS\",4],0,function(){return this.millisecond()*10});addFormatToken(0,[\"SSSSS\",5],0,function(){return this.millisecond()*100});addFormatToken(0,[\"SSSSSS\",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,[\"SSSSSSS\",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,[\"SSSSSSSS\",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,[\"SSSSSSSSS\",9],0,function(){return this.millisecond()*1e6});addUnitAlias(\"millisecond\",\"ms\");addUnitPriority(\"millisecond\",16);addRegexToken(\"S\",match1to3,match1);addRegexToken(\"SS\",match1to3,match2);addRegexToken(\"SSS\",match1to3,match3);var token;for(token=\"SSSS\";token.length<=9;token+=\"S\"){addRegexToken(token,matchUnsigned)}function parseMs(input,array){array[MILLISECOND]=toInt((\"0.\"+input)*1e3)}for(token=\"S\";token.length<=9;token+=\"S\"){addParseToken(token,parseMs)}var getSetMillisecond=makeGetSet(\"Milliseconds\",false);addFormatToken(\"z\",0,0,\"zoneAbbr\");addFormatToken(\"zz\",0,0,\"zoneName\");function getZoneAbbr(){return this._isUTC?\"UTC\":\"\"}function getZoneName(){return this._isUTC?\"Coordinated Universal Time\":\"\"}var proto=Moment.prototype;proto.add=add;proto.calendar=calendar$1;proto.clone=clone;proto.diff=diff;proto.endOf=endOf;proto.format=format;proto.from=from;proto.fromNow=fromNow;proto.to=to;proto.toNow=toNow;proto.get=stringGet;proto.invalidAt=invalidAt;proto.isAfter=isAfter;proto.isBefore=isBefore;proto.isBetween=isBetween;proto.isSame=isSame;proto.isSameOrAfter=isSameOrAfter;proto.isSameOrBefore=isSameOrBefore;proto.isValid=isValid$2;proto.lang=lang;proto.locale=locale;proto.localeData=localeData;proto.max=prototypeMax;proto.min=prototypeMin;proto.parsingFlags=parsingFlags;proto.set=stringSet;proto.startOf=startOf;proto.subtract=subtract;proto.toArray=toArray;proto.toObject=toObject;proto.toDate=toDate;proto.toISOString=toISOString;proto.inspect=inspect;proto.toJSON=toJSON;proto.toString=toString;proto.unix=unix;proto.valueOf=valueOf;proto.creationData=creationData;proto.year=getSetYear;proto.isLeapYear=getIsLeapYear;proto.weekYear=getSetWeekYear;proto.isoWeekYear=getSetISOWeekYear;proto.quarter=proto.quarters=getSetQuarter;proto.month=getSetMonth;proto.daysInMonth=getDaysInMonth;proto.week=proto.weeks=getSetWeek;proto.isoWeek=proto.isoWeeks=getSetISOWeek;proto.weeksInYear=getWeeksInYear;proto.isoWeeksInYear=getISOWeeksInYear;proto.date=getSetDayOfMonth;proto.day=proto.days=getSetDayOfWeek;proto.weekday=getSetLocaleDayOfWeek;proto.isoWeekday=getSetISODayOfWeek;proto.dayOfYear=getSetDayOfYear;proto.hour=proto.hours=getSetHour;proto.minute=proto.minutes=getSetMinute;proto.second=proto.seconds=getSetSecond;proto.millisecond=proto.milliseconds=getSetMillisecond;proto.utcOffset=getSetOffset;proto.utc=setOffsetToUTC;proto.local=setOffsetToLocal;proto.parseZone=setOffsetToParsedOffset;proto.hasAlignedHourOffset=hasAlignedHourOffset;proto.isDST=isDaylightSavingTime;proto.isLocal=isLocal;proto.isUtcOffset=isUtcOffset;proto.isUtc=isUtc;proto.isUTC=isUtc;proto.zoneAbbr=getZoneAbbr;proto.zoneName=getZoneName;proto.dates=deprecate(\"dates accessor is deprecated. Use date instead.\",getSetDayOfMonth);proto.months=deprecate(\"months accessor is deprecated. Use month instead\",getSetMonth);proto.years=deprecate(\"years accessor is deprecated. Use year instead\",getSetYear);proto.zone=deprecate(\"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/\",getSetZone);proto.isDSTShifted=deprecate(\"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information\",isDaylightSavingTimeShifted);function createUnix(input){return createLocal(input*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(string){return string}var proto$1=Locale.prototype;proto$1.calendar=calendar;proto$1.longDateFormat=longDateFormat;proto$1.invalidDate=invalidDate;proto$1.ordinal=ordinal;proto$1.preparse=preParsePostFormat;proto$1.postformat=preParsePostFormat;proto$1.relativeTime=relativeTime;proto$1.pastFuture=pastFuture;proto$1.set=set;proto$1.months=localeMonths;proto$1.monthsShort=localeMonthsShort;proto$1.monthsParse=localeMonthsParse;proto$1.monthsRegex=monthsRegex;proto$1.monthsShortRegex=monthsShortRegex;proto$1.week=localeWeek;proto$1.firstDayOfYear=localeFirstDayOfYear;proto$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1.weekdays=localeWeekdays;proto$1.weekdaysMin=localeWeekdaysMin;proto$1.weekdaysShort=localeWeekdaysShort;proto$1.weekdaysParse=localeWeekdaysParse;proto$1.weekdaysRegex=weekdaysRegex;proto$1.weekdaysShortRegex=weekdaysShortRegex;proto$1.weekdaysMinRegex=weekdaysMinRegex;proto$1.isPM=localeIsPM;proto$1.meridiem=localeMeridiem;function get$1(format,index,field,setter){var locale=getLocale();var utc=createUTC().set(setter,index);return locale[field](utc,format)}function listMonthsImpl(format,index,field){if(isNumber(format)){index=format;format=undefined}format=format||\"\";if(index!=null){return get$1(format,index,field,\"month\")}var i;var out=[];for(i=0;i<12;i++){out[i]=get$1(format,i,field,\"month\")}return out}function listWeekdaysImpl(localeSorted,format,index,field){if(typeof localeSorted===\"boolean\"){if(isNumber(format)){index=format;format=undefined}format=format||\"\"}else{format=localeSorted;index=format;localeSorted=false;if(isNumber(format)){index=format;format=undefined}format=format||\"\"}var locale=getLocale(),shift=localeSorted?locale._week.dow:0;if(index!=null){return get$1(format,(index+shift)%7,field,\"day\")}var i;var out=[];for(i=0;i<7;i++){out[i]=get$1(format,(i+shift)%7,field,\"day\")}return out}function listMonths(format,index){return listMonthsImpl(format,index,\"months\")}function listMonthsShort(format,index){return listMonthsImpl(format,index,\"monthsShort\")}function listWeekdays(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,\"weekdays\")}function listWeekdaysShort(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,\"weekdaysShort\")}function listWeekdaysMin(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,\"weekdaysMin\")}getSetGlobalLocale(\"en\",{dayOfMonthOrdinalParse:/\\d{1,2}(th|st|nd|rd)/,ordinal:function(number){var b=number%10,output=toInt(number%100/10)===1?\"th\":b===1?\"st\":b===2?\"nd\":b===3?\"rd\":\"th\";return number+output}});hooks.lang=deprecate(\"moment.lang is deprecated. Use moment.locale instead.\",getSetGlobalLocale);hooks.langData=deprecate(\"moment.langData is deprecated. Use moment.localeData instead.\",getLocale);var mathAbs=Math.abs;function abs(){var data=this._data;this._milliseconds=mathAbs(this._milliseconds);this._days=mathAbs(this._days);this._months=mathAbs(this._months);data.milliseconds=mathAbs(data.milliseconds);data.seconds=mathAbs(data.seconds);data.minutes=mathAbs(data.minutes);data.hours=mathAbs(data.hours);data.months=mathAbs(data.months);data.years=mathAbs(data.years);return this}function addSubtract$1(duration,input,value,direction){var other=createDuration(input,value);duration._milliseconds+=direction*other._milliseconds;duration._days+=direction*other._days;duration._months+=direction*other._months;return duration._bubble()}function add$1(input,value){return addSubtract$1(this,input,value,1)}function subtract$1(input,value){return addSubtract$1(this,input,value,-1)}function absCeil(number){if(number<0){return Math.floor(number)}else{return Math.ceil(number)}}function bubble(){var milliseconds=this._milliseconds;var days=this._days;var months=this._months;var data=this._data;var seconds,minutes,hours,years,monthsFromDays;if(!(milliseconds>=0&&days>=0&&months>=0||milliseconds<=0&&days<=0&&months<=0)){milliseconds+=absCeil(monthsToDays(months)+days)*864e5;days=0;months=0}data.milliseconds=milliseconds%1e3;seconds=absFloor(milliseconds/1e3);data.seconds=seconds%60;minutes=absFloor(seconds/60)\n;data.minutes=minutes%60;hours=absFloor(minutes/60);data.hours=hours%24;days+=absFloor(hours/24);monthsFromDays=absFloor(daysToMonths(days));months+=monthsFromDays;days-=absCeil(monthsToDays(monthsFromDays));years=absFloor(months/12);months%=12;data.days=days;data.months=months;data.years=years;return this}function daysToMonths(days){return days*4800/146097}function monthsToDays(months){return months*146097/4800}function as(units){if(!this.isValid()){return NaN}var days;var months;var milliseconds=this._milliseconds;units=normalizeUnits(units);if(units===\"month\"||units===\"year\"){days=this._days+milliseconds/864e5;months=this._months+daysToMonths(days);return units===\"month\"?months:months/12}else{days=this._days+Math.round(monthsToDays(this._months));switch(units){case\"week\":return days/7+milliseconds/6048e5;case\"day\":return days+milliseconds/864e5;case\"hour\":return days*24+milliseconds/36e5;case\"minute\":return days*1440+milliseconds/6e4;case\"second\":return days*86400+milliseconds/1e3;case\"millisecond\":return Math.floor(days*864e5)+milliseconds;default:throw new Error(\"Unknown unit \"+units)}}}function valueOf$1(){if(!this.isValid()){return NaN}return this._milliseconds+this._days*864e5+this._months%12*2592e6+toInt(this._months/12)*31536e6}function makeAs(alias){return function(){return this.as(alias)}}var asMilliseconds=makeAs(\"ms\");var asSeconds=makeAs(\"s\");var asMinutes=makeAs(\"m\");var asHours=makeAs(\"h\");var asDays=makeAs(\"d\");var asWeeks=makeAs(\"w\");var asMonths=makeAs(\"M\");var asYears=makeAs(\"y\");function clone$1(){return createDuration(this)}function get$2(units){units=normalizeUnits(units);return this.isValid()?this[units+\"s\"]():NaN}function makeGetter(name){return function(){return this.isValid()?this._data[name]:NaN}}var milliseconds=makeGetter(\"milliseconds\");var seconds=makeGetter(\"seconds\");var minutes=makeGetter(\"minutes\");var hours=makeGetter(\"hours\");var days=makeGetter(\"days\");var months=makeGetter(\"months\");var years=makeGetter(\"years\");function weeks(){return absFloor(this.days()/7)}var round=Math.round;var thresholds={ss:44,s:45,m:45,h:22,d:26,M:11};function substituteTimeAgo(string,number,withoutSuffix,isFuture,locale){return locale.relativeTime(number||1,!!withoutSuffix,string,isFuture)}function relativeTime$1(posNegDuration,withoutSuffix,locale){var duration=createDuration(posNegDuration).abs();var seconds=round(duration.as(\"s\"));var minutes=round(duration.as(\"m\"));var hours=round(duration.as(\"h\"));var days=round(duration.as(\"d\"));var months=round(duration.as(\"M\"));var years=round(duration.as(\"y\"));var a=seconds<=thresholds.ss&&[\"s\",seconds]||seconds<thresholds.s&&[\"ss\",seconds]||minutes<=1&&[\"m\"]||minutes<thresholds.m&&[\"mm\",minutes]||hours<=1&&[\"h\"]||hours<thresholds.h&&[\"hh\",hours]||days<=1&&[\"d\"]||days<thresholds.d&&[\"dd\",days]||months<=1&&[\"M\"]||months<thresholds.M&&[\"MM\",months]||years<=1&&[\"y\"]||[\"yy\",years];a[2]=withoutSuffix;a[3]=+posNegDuration>0;a[4]=locale;return substituteTimeAgo.apply(null,a)}function getSetRelativeTimeRounding(roundingFunction){if(roundingFunction===undefined){return round}if(typeof roundingFunction===\"function\"){round=roundingFunction;return true}return false}function getSetRelativeTimeThreshold(threshold,limit){if(thresholds[threshold]===undefined){return false}if(limit===undefined){return thresholds[threshold]}thresholds[threshold]=limit;if(threshold===\"s\"){thresholds.ss=limit-1}return true}function humanize(withSuffix){if(!this.isValid()){return this.localeData().invalidDate()}var locale=this.localeData();var output=relativeTime$1(this,!withSuffix,locale);if(withSuffix){output=locale.pastFuture(+this,output)}return locale.postformat(output)}var abs$1=Math.abs;function sign(x){return(x>0)-(x<0)||+x}function toISOString$1(){if(!this.isValid()){return this.localeData().invalidDate()}var seconds=abs$1(this._milliseconds)/1e3;var days=abs$1(this._days);var months=abs$1(this._months);var minutes,hours,years;minutes=absFloor(seconds/60);hours=absFloor(minutes/60);seconds%=60;minutes%=60;years=absFloor(months/12);months%=12;var Y=years;var M=months;var D=days;var h=hours;var m=minutes;var s=seconds?seconds.toFixed(3).replace(/\\.?0+$/,\"\"):\"\";var total=this.asSeconds();if(!total){return\"P0D\"}var totalSign=total<0?\"-\":\"\";var ymSign=sign(this._months)!==sign(total)?\"-\":\"\";var daysSign=sign(this._days)!==sign(total)?\"-\":\"\";var hmsSign=sign(this._milliseconds)!==sign(total)?\"-\":\"\";return totalSign+\"P\"+(Y?ymSign+Y+\"Y\":\"\")+(M?ymSign+M+\"M\":\"\")+(D?daysSign+D+\"D\":\"\")+(h||m||s?\"T\":\"\")+(h?hmsSign+h+\"H\":\"\")+(m?hmsSign+m+\"M\":\"\")+(s?hmsSign+s+\"S\":\"\")}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs;proto$2.add=add$1;proto$2.subtract=subtract$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1;proto$2.get=get$2;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale;proto$2.localeData=localeData;proto$2.toIsoString=deprecate(\"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)\",toISOString$1);proto$2.lang=lang;addFormatToken(\"X\",0,0,\"unix\");addFormatToken(\"x\",0,0,\"valueOf\");addRegexToken(\"x\",matchSigned);addRegexToken(\"X\",matchTimestamp);addParseToken(\"X\",function(input,array,config){config._d=new Date(parseFloat(input,10)*1e3)});addParseToken(\"x\",function(input,array,config){config._d=new Date(toInt(input))});hooks.version=\"2.19.1\";setHookCallback(createLocal);hooks.fn=proto;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto;return hooks})}).call(exports,__webpack_require__(155)(module))},function(module,exports){module.exports=function(module){if(!module.webpackPolyfill){module.deprecate=function(){};module.paths=[];if(!module.children)module.children=[];Object.defineProperty(module,\"loaded\",{enumerable:true,get:function(){return module.l}});Object.defineProperty(module,\"id\",{enumerable:true,get:function(){return module.i}});module.webpackPolyfill=1}return module}},function(module,exports){function webpackEmptyContext(req){throw new Error(\"Cannot find module '\"+req+\"'.\")}webpackEmptyContext.keys=function(){return[]};webpackEmptyContext.resolve=webpackEmptyContext;module.exports=webpackEmptyContext;webpackEmptyContext.id=156},function(module,exports,__webpack_require__){\"use strict\";(function(global){var _rng;var globalVar=typeof window!==\"undefined\"?window:typeof global!==\"undefined\"?global:null;if(globalVar&&globalVar.crypto&&crypto.getRandomValues){var _rnds8=new Uint8Array(16);_rng=function whatwgRNG(){crypto.getRandomValues(_rnds8);return _rnds8}}if(!_rng){var _rnds=new Array(16);_rng=function _rng(){for(var i=0,r;i<16;i++){if((i&3)===0)r=Math.random()*4294967296;_rnds[i]=r>>>((i&3)<<3)&255}return _rnds}}var _byteToHex=[];var _hexToByte={};for(var i=0;i<256;i++){_byteToHex[i]=(i+256).toString(16).substr(1);_hexToByte[_byteToHex[i]]=i}function parse(s,buf,offset){var i=buf&&offset||0,ii=0;buf=buf||[];s.toLowerCase().replace(/[0-9a-f]{2}/g,function(oct){if(ii<16){buf[i+ii++]=_hexToByte[oct]}});while(ii<16){buf[i+ii++]=0}return buf}function unparse(buf,offset){var i=offset||0,bth=_byteToHex;return bth[buf[i++]]+bth[buf[i++]]+bth[buf[i++]]+bth[buf[i++]]+\"-\"+bth[buf[i++]]+bth[buf[i++]]+\"-\"+bth[buf[i++]]+bth[buf[i++]]+\"-\"+bth[buf[i++]]+bth[buf[i++]]+\"-\"+bth[buf[i++]]+bth[buf[i++]]+bth[buf[i++]]+bth[buf[i++]]+bth[buf[i++]]+bth[buf[i++]]}var _seedBytes=_rng();var _nodeId=[_seedBytes[0]|1,_seedBytes[1],_seedBytes[2],_seedBytes[3],_seedBytes[4],_seedBytes[5]];var _clockseq=(_seedBytes[6]<<8|_seedBytes[7])&16383;var _lastMSecs=0,_lastNSecs=0;function v1(options,buf,offset){var i=buf&&offset||0;var b=buf||[];options=options||{};var clockseq=options.clockseq!==undefined?options.clockseq:_clockseq;var msecs=options.msecs!==undefined?options.msecs:(new Date).getTime();var nsecs=options.nsecs!==undefined?options.nsecs:_lastNSecs+1;var dt=msecs-_lastMSecs+(nsecs-_lastNSecs)/1e4;if(dt<0&&options.clockseq===undefined){clockseq=clockseq+1&16383}if((dt<0||msecs>_lastMSecs)&&options.nsecs===undefined){nsecs=0}if(nsecs>=1e4){throw new Error(\"uuid.v1(): Can't create more than 10M uuids/sec\")}_lastMSecs=msecs;_lastNSecs=nsecs;_clockseq=clockseq;msecs+=122192928e5;var tl=((msecs&268435455)*1e4+nsecs)%4294967296;b[i++]=tl>>>24&255;b[i++]=tl>>>16&255;b[i++]=tl>>>8&255;b[i++]=tl&255;var tmh=msecs/4294967296*1e4&268435455;b[i++]=tmh>>>8&255;b[i++]=tmh&255;b[i++]=tmh>>>24&15|16;b[i++]=tmh>>>16&255;b[i++]=clockseq>>>8|128;b[i++]=clockseq&255;var node=options.node||_nodeId;for(var n=0;n<6;n++){b[i+n]=node[n]}return buf?buf:unparse(b)}function v4(options,buf,offset){var i=buf&&offset||0;if(typeof options==\"string\"){buf=options==\"binary\"?new Array(16):null;options=null}options=options||{};var rnds=options.random||(options.rng||_rng)();rnds[6]=rnds[6]&15|64;rnds[8]=rnds[8]&63|128;if(buf){for(var ii=0;ii<16;ii++){buf[i+ii]=rnds[ii]}}return buf||unparse(rnds)}var uuid=v4;uuid.v1=v1;uuid.v4=v4;uuid.parse=parse;uuid.unparse=unparse;module.exports=uuid}).call(exports,__webpack_require__(158))},function(module,exports){var g;g=function(){return this}();try{g=g||Function(\"return this\")()||(1,eval)(\"this\")}catch(e){if(typeof window===\"object\")g=window}module.exports=g},function(module,exports,__webpack_require__){\"use strict\";exports.util=__webpack_require__(2);exports.DOMutil=__webpack_require__(14);exports.DataSet=__webpack_require__(11);exports.DataView=__webpack_require__(12);exports.Queue=__webpack_require__(43);exports.Graph3d=__webpack_require__(161);exports.graph3d={Camera:__webpack_require__(95),Filter:__webpack_require__(96),Point2d:__webpack_require__(91),Point3d:__webpack_require__(34),Slider:__webpack_require__(92),StepNumber:__webpack_require__(93)};exports.moment=__webpack_require__(9);exports.Hammer=__webpack_require__(10);exports.keycharm=__webpack_require__(35)},function(module,exports,__webpack_require__){var core=__webpack_require__(7);var $JSON=core.JSON||(core.JSON={stringify:JSON.stringify});module.exports=function stringify(it){return $JSON.stringify.apply($JSON,arguments)}},function(module,exports,__webpack_require__){\"use strict\";var _assign=__webpack_require__(90);var _assign2=_interopRequireDefault(_assign);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Emitter=__webpack_require__(44);var util=__webpack_require__(2);var Point3d=__webpack_require__(34);var Point2d=__webpack_require__(91);var Slider=__webpack_require__(92);var StepNumber=__webpack_require__(93);var Settings=__webpack_require__(94);var Validator=__webpack_require__(15)[\"default\"];var _require=__webpack_require__(15),printStyle=_require.printStyle;var _require2=__webpack_require__(172),allOptions=_require2.allOptions;var DataGroup=__webpack_require__(173);Graph3d.STYLE=Settings.STYLE;var autoByDefault=undefined;Graph3d.DEFAULTS={width:\"400px\",height:\"400px\",filterLabel:\"time\",legendLabel:\"value\",xLabel:\"x\",yLabel:\"y\",zLabel:\"z\",xValueLabel:function xValueLabel(v){return v},yValueLabel:function yValueLabel(v){return v},zValueLabel:function zValueLabel(v){return v},showXAxis:true,showYAxis:true,showZAxis:true,showGrid:true,showPerspective:true,showShadow:false,keepAspectRatio:true,verticalRatio:.5,dotSizeRatio:.02,dotSizeMinFraction:.5,dotSizeMaxFraction:2.5,showAnimationControls:autoByDefault,animationInterval:1e3,animationPreload:false,animationAutoStart:autoByDefault,axisColor:\"#4D4D4D\",gridColor:\"#D3D3D3\",xCenter:\"55%\",yCenter:\"50%\",style:Graph3d.STYLE.DOT,tooltip:false,tooltipStyle:{content:{padding:\"10px\",border:\"1px solid #4d4d4d\",color:\"#1a1a1a\",background:\"rgba(255,255,255,0.7)\",borderRadius:\"2px\",boxShadow:\"5px 5px 10px rgba(128,128,128,0.5)\"},line:{height:\"40px\",width:\"0\",borderLeft:\"1px solid #4d4d4d\"},dot:{height:\"0\",width:\"0\",border:\"5px solid #4d4d4d\",borderRadius:\"5px\"}},dataColor:{fill:\"#7DC1FF\",stroke:\"#3267D2\",strokeWidth:1},cameraPosition:{horizontal:1,vertical:.5,distance:1.7},showLegend:autoByDefault,backgroundColor:autoByDefault,xBarWidth:autoByDefault,yBarWidth:autoByDefault,valueMin:autoByDefault,valueMax:autoByDefault,xMin:autoByDefault,xMax:autoByDefault,xStep:autoByDefault,yMin:autoByDefault,yMax:autoByDefault,yStep:autoByDefault,zMin:autoByDefault,zMax:autoByDefault,zStep:autoByDefault};function Graph3d(container,data,options){if(!(this instanceof Graph3d)){throw new SyntaxError(\"Constructor must be called with the new operator\")}this.containerElement=container;this.dataGroup=new DataGroup;this.dataPoints=null;this.create();Settings.setDefaults(Graph3d.DEFAULTS,this);this.colX=undefined;this.colY=undefined;this.colZ=undefined;this.colValue=undefined;this.setOptions(options);this.setData(data)}Emitter(Graph3d.prototype);Graph3d.prototype._setScale=function(){this.scale=new Point3d(1/this.xRange.range(),1/this.yRange.range(),1/this.zRange.range());if(this.keepAspectRatio){if(this.scale.x<this.scale.y){this.scale.y=this.scale.x}else{this.scale.x=this.scale.y}}this.scale.z*=this.verticalRatio;if(this.valueRange!==undefined){this.scale.value=1/this.valueRange.range()}var xCenter=this.xRange.center()*this.scale.x;var yCenter=this.yRange.center()*this.scale.y;var zCenter=this.zRange.center()*this.scale.z;this.camera.setArmLocation(xCenter,yCenter,zCenter)};Graph3d.prototype._convert3Dto2D=function(point3d){var translation=this._convertPointToTranslation(point3d);return this._convertTranslationToScreen(translation)};Graph3d.prototype._convertPointToTranslation=function(point3d){var cameraLocation=this.camera.getCameraLocation(),cameraRotation=this.camera.getCameraRotation(),ax=point3d.x*this.scale.x,ay=point3d.y*this.scale.y,az=point3d.z*this.scale.z,cx=cameraLocation.x,cy=cameraLocation.y,cz=cameraLocation.z,sinTx=Math.sin(cameraRotation.x),cosTx=Math.cos(cameraRotation.x),sinTy=Math.sin(cameraRotation.y),cosTy=Math.cos(cameraRotation.y),sinTz=Math.sin(cameraRotation.z),cosTz=Math.cos(cameraRotation.z),dx=cosTy*(sinTz*(ay-cy)+cosTz*(ax-cx))-sinTy*(az-cz),dy=sinTx*(cosTy*(az-cz)+sinTy*(sinTz*(ay-cy)+cosTz*(ax-cx)))+cosTx*(cosTz*(ay-cy)-sinTz*(ax-cx)),dz=cosTx*(cosTy*(az-cz)+sinTy*(sinTz*(ay-cy)+cosTz*(ax-cx)))-sinTx*(cosTz*(ay-cy)-sinTz*(ax-cx));return new Point3d(dx,dy,dz)};Graph3d.prototype._convertTranslationToScreen=function(translation){var ex=this.eye.x,ey=this.eye.y,ez=this.eye.z,dx=translation.x,dy=translation.y,dz=translation.z;var bx;var by;if(this.showPerspective){bx=(dx-ex)*(ez/dz);by=(dy-ey)*(ez/dz)}else{bx=dx*-(ez/this.camera.getArmLength());by=dy*-(ez/this.camera.getArmLength())}return new Point2d(this.currentXCenter+bx*this.frame.canvas.clientWidth,this.currentYCenter-by*this.frame.canvas.clientWidth)};Graph3d.prototype._calcTranslations=function(points){for(var i=0;i<points.length;i++){var point=points[i];point.trans=this._convertPointToTranslation(point.point);point.screen=this._convertTranslationToScreen(point.trans);var transBottom=this._convertPointToTranslation(point.bottom);point.dist=this.showPerspective?transBottom.length():-transBottom.z}var sortDepth=function sortDepth(a,b){return b.dist-a.dist};points.sort(sortDepth)};Graph3d.prototype._initializeRanges=function(){var dg=this.dataGroup;this.xRange=dg.xRange;this.yRange=dg.yRange;this.zRange=dg.zRange;this.valueRange=dg.valueRange;this.xStep=dg.xStep;this.yStep=dg.yStep;this.zStep=dg.zStep;this.xBarWidth=dg.xBarWidth;this.yBarWidth=dg.yBarWidth;this.colX=dg.colX;this.colY=dg.colY;this.colZ=dg.colZ;this.colValue=dg.colValue;this._setScale()};Graph3d.prototype.getDataPoints=function(data){var dataPoints=[];for(var i=0;i<data.length;i++){var point=new Point3d;point.x=data[i][this.colX]||0;point.y=data[i][this.colY]||0;point.z=data[i][this.colZ]||0;point.data=data[i];if(this.colValue!==undefined){point.value=data[i][this.colValue]||0}var obj={};obj.point=point;obj.bottom=new Point3d(point.x,point.y,this.zRange.min);obj.trans=undefined;obj.screen=undefined;dataPoints.push(obj)}return dataPoints};Graph3d.prototype._getDataPoints=function(data){var x,y,i,obj;var dataPoints=[];if(this.style===Graph3d.STYLE.GRID||this.style===Graph3d.STYLE.SURFACE){var dataX=this.dataGroup.getDistinctValues(this.colX,data);var dataY=this.dataGroup.getDistinctValues(this.colY,data);dataPoints=this.getDataPoints(data);var dataMatrix=[];for(i=0;i<dataPoints.length;i++){obj=dataPoints[i];var xIndex=dataX.indexOf(obj.point.x);var yIndex=dataY.indexOf(obj.point.y);if(dataMatrix[xIndex]===undefined){dataMatrix[xIndex]=[]}dataMatrix[xIndex][yIndex]=obj}for(x=0;x<dataMatrix.length;x++){for(y=0;y<dataMatrix[x].length;y++){if(dataMatrix[x][y]){dataMatrix[x][y].pointRight=x<dataMatrix.length-1?dataMatrix[x+1][y]:undefined;dataMatrix[x][y].pointTop=y<dataMatrix[x].length-1?dataMatrix[x][y+1]:undefined;dataMatrix[x][y].pointCross=x<dataMatrix.length-1&&y<dataMatrix[x].length-1?dataMatrix[x+1][y+1]:undefined}}}}else{this._checkValueField(data);dataPoints=this.getDataPoints(data);if(this.style===Graph3d.STYLE.LINE){for(i=0;i<dataPoints.length;i++){if(i>0){dataPoints[i-1].pointNext=dataPoints[i]}}}}return dataPoints};Graph3d.prototype.create=function(){while(this.containerElement.hasChildNodes()){this.containerElement.removeChild(this.containerElement.firstChild)}this.frame=document.createElement(\"div\");this.frame.style.position=\"relative\";this.frame.style.overflow=\"hidden\";this.frame.canvas=document.createElement(\"canvas\");this.frame.canvas.style.position=\"relative\";this.frame.appendChild(this.frame.canvas);{var noCanvas=document.createElement(\"DIV\");noCanvas.style.color=\"red\";noCanvas.style.fontWeight=\"bold\";noCanvas.style.padding=\"10px\";noCanvas.innerHTML=\"Error: your browser does not support HTML canvas\";this.frame.canvas.appendChild(noCanvas)}this.frame.filter=document.createElement(\"div\");this.frame.filter.style.position=\"absolute\";this.frame.filter.style.bottom=\"0px\";this.frame.filter.style.left=\"0px\";this.frame.filter.style.width=\"100%\";this.frame.appendChild(this.frame.filter);var me=this;var onmousedown=function onmousedown(event){me._onMouseDown(event)};var ontouchstart=function ontouchstart(event){me._onTouchStart(event)};var onmousewheel=function onmousewheel(event){me._onWheel(event)};var ontooltip=function ontooltip(event){me._onTooltip(event)};var onclick=function onclick(event){me._onClick(event)};util.addEventListener(this.frame.canvas,\"mousedown\",onmousedown);util.addEventListener(this.frame.canvas,\"touchstart\",ontouchstart);util.addEventListener(this.frame.canvas,\"mousewheel\",onmousewheel);util.addEventListener(this.frame.canvas,\"mousemove\",ontooltip);util.addEventListener(this.frame.canvas,\"click\",onclick);this.containerElement.appendChild(this.frame)};Graph3d.prototype._setSize=function(width,height){this.frame.style.width=width;this.frame.style.height=height;this._resizeCanvas()};Graph3d.prototype._resizeCanvas=function(){this.frame.canvas.style.width=\"100%\";this.frame.canvas.style.height=\"100%\";this.frame.canvas.width=this.frame.canvas.clientWidth;this.frame.canvas.height=this.frame.canvas.clientHeight;this.frame.filter.style.width=this.frame.canvas.clientWidth-2*10+\"px\"};Graph3d.prototype.animationStart=function(){if(!this.animationAutoStart||!this.dataGroup.dataFilter)return;if(!this.frame.filter||!this.frame.filter.slider)throw new Error(\"No animation available\");this.frame.filter.slider.play()};Graph3d.prototype.animationStop=function(){if(!this.frame.filter||!this.frame.filter.slider)return;this.frame.filter.slider.stop()};Graph3d.prototype._resizeCenter=function(){if(this.xCenter.charAt(this.xCenter.length-1)===\"%\"){this.currentXCenter=parseFloat(this.xCenter)/100*this.frame.canvas.clientWidth}else{this.currentXCenter=parseFloat(this.xCenter)}if(this.yCenter.charAt(this.yCenter.length-1)===\"%\"){this.currentYCenter=parseFloat(this.yCenter)/100*(this.frame.canvas.clientHeight-this.frame.filter.clientHeight)}else{this.currentYCenter=parseFloat(this.yCenter)}};Graph3d.prototype.getCameraPosition=function(){var pos=this.camera.getArmRotation();pos.distance=this.camera.getArmLength();return pos};Graph3d.prototype._readData=function(data){this.dataPoints=this.dataGroup.initializeData(this,data,this.style);this._initializeRanges();this._redrawFilter()};Graph3d.prototype.setData=function(data){if(data===undefined||data===null)return;this._readData(data);this.redraw();this.animationStart()};Graph3d.prototype.setOptions=function(options){if(options===undefined)return;var errorFound=Validator.validate(options,allOptions);if(errorFound===true){console.log(\"%cErrors have been found in the supplied options object.\",printStyle)}this.animationStop();Settings.setOptions(options,this);this.setPointDrawingMethod();this._setSize(this.width,this.height);this.setData(this.dataGroup.getDataTable());this.animationStart()};Graph3d.prototype.setPointDrawingMethod=function(){var method=undefined;switch(this.style){case Graph3d.STYLE.BAR:method=Graph3d.prototype._redrawBarGraphPoint;break;case Graph3d.STYLE.BARCOLOR:method=Graph3d.prototype._redrawBarColorGraphPoint;break;case Graph3d.STYLE.BARSIZE:method=Graph3d.prototype._redrawBarSizeGraphPoint;break;case Graph3d.STYLE.DOT:method=Graph3d.prototype._redrawDotGraphPoint;break;case Graph3d.STYLE.DOTLINE:method=Graph3d.prototype._redrawDotLineGraphPoint;break;case Graph3d.STYLE.DOTCOLOR:method=Graph3d.prototype._redrawDotColorGraphPoint;break;case Graph3d.STYLE.DOTSIZE:method=Graph3d.prototype._redrawDotSizeGraphPoint;break;case Graph3d.STYLE.SURFACE:method=Graph3d.prototype._redrawSurfaceGraphPoint;break;case Graph3d.STYLE.GRID:method=Graph3d.prototype._redrawGridGraphPoint;break;case Graph3d.STYLE.LINE:method=Graph3d.prototype._redrawLineGraphPoint;break;default:throw new Error(\"Can not determine point drawing method \"+\"for graph style '\"+this.style+\"'\")}this._pointDrawingMethod=method};Graph3d.prototype.redraw=function(){if(this.dataPoints===undefined){throw new Error(\"Graph data not initialized\")}this._resizeCanvas();this._resizeCenter();this._redrawSlider();this._redrawClear();this._redrawAxis();this._redrawDataGraph();this._redrawInfo();this._redrawLegend()};Graph3d.prototype._getContext=function(){var canvas=this.frame.canvas;var ctx=canvas.getContext(\"2d\");ctx.lineJoin=\"round\";ctx.lineCap=\"round\";return ctx};Graph3d.prototype._redrawClear=function(){var canvas=this.frame.canvas;var ctx=canvas.getContext(\"2d\");ctx.clearRect(0,0,canvas.width,canvas.height)};Graph3d.prototype._dotSize=function(){return this.frame.clientWidth*this.dotSizeRatio};Graph3d.prototype._getLegendWidth=function(){var width;if(this.style===Graph3d.STYLE.DOTSIZE){var dotSize=this._dotSize();width=dotSize*this.dotSizeMaxFraction}else if(this.style===Graph3d.STYLE.BARSIZE){width=this.xBarWidth}else{width=20}return width};Graph3d.prototype._redrawLegend=function(){if(this.showLegend!==true){return}if(this.style===Graph3d.STYLE.LINE||this.style===Graph3d.STYLE.BARSIZE){return}var isSizeLegend=this.style===Graph3d.STYLE.BARSIZE||this.style===Graph3d.STYLE.DOTSIZE;var isValueLegend=this.style===Graph3d.STYLE.DOTSIZE||this.style===Graph3d.STYLE.DOTCOLOR||this.style===Graph3d.STYLE.BARCOLOR;var height=Math.max(this.frame.clientHeight*.25,100);var top=this.margin;var width=this._getLegendWidth();var right=this.frame.clientWidth-this.margin;var left=right-width;var bottom=top+height;var ctx=this._getContext();ctx.lineWidth=1;ctx.font=\"14px arial\";if(isSizeLegend===false){var ymin=0;var ymax=height;var y;for(y=ymin;y<ymax;y++){var f=(y-ymin)/(ymax-ymin);var hue=f*240;var color=this._hsv2rgb(hue,1,1);ctx.strokeStyle=color;ctx.beginPath();ctx.moveTo(left,top+y);ctx.lineTo(right,top+y);ctx.stroke()}ctx.strokeStyle=this.axisColor;ctx.strokeRect(left,top,width,height)}else{var widthMin;if(this.style===Graph3d.STYLE.DOTSIZE){widthMin=width*(this.dotSizeMinFraction/this.dotSizeMaxFraction)}else if(this.style===Graph3d.STYLE.BARSIZE){}ctx.strokeStyle=this.axisColor;ctx.fillStyle=this.dataColor.fill;ctx.beginPath();ctx.moveTo(left,top);ctx.lineTo(right,top);ctx.lineTo(left+widthMin,bottom);ctx.lineTo(left,bottom);ctx.closePath();ctx.fill();ctx.stroke()}var gridLineLen=5;var legendMin=isValueLegend?this.valueRange.min:this.zRange.min;var legendMax=isValueLegend?this.valueRange.max:this.zRange.max;var step=new StepNumber(legendMin,legendMax,(legendMax-legendMin)/5,true);step.start(true);var from;var to;while(!step.end()){y=bottom-(step.getCurrent()-legendMin)/(legendMax-legendMin)*height;from=new Point2d(left-gridLineLen,y);to=new Point2d(left,y);this._line(ctx,from,to);ctx.textAlign=\"right\";ctx.textBaseline=\"middle\";ctx.fillStyle=this.axisColor;ctx.fillText(step.getCurrent(),left-2*gridLineLen,y);step.next()}ctx.textAlign=\"right\";ctx.textBaseline=\"top\";var label=this.legendLabel;ctx.fillText(label,right,bottom+this.margin)};Graph3d.prototype._redrawFilter=function(){var dataFilter=this.dataGroup.dataFilter;var filter=this.frame.filter;filter.innerHTML=\"\";if(!dataFilter){filter.slider=undefined;return}var options={visible:this.showAnimationControls};var slider=new Slider(filter,options);filter.slider=slider;filter.style.padding=\"10px\";slider.setValues(dataFilter.values);slider.setPlayInterval(this.animationInterval);var me=this;var onchange=function onchange(){var dataFilter=me.dataGroup.dataFilter;var index=slider.getIndex();dataFilter.selectValue(index);me.dataPoints=dataFilter._getDataPoints();me.redraw()};slider.setOnChangeCallback(onchange)};Graph3d.prototype._redrawSlider=function(){if(this.frame.filter.slider!==undefined){this.frame.filter.slider.redraw()}};Graph3d.prototype._redrawInfo=function(){var info=this.dataGroup.getInfo();if(info===undefined)return;var ctx=this._getContext();ctx.font=\"14px arial\";ctx.lineStyle=\"gray\";ctx.fillStyle=\"gray\";ctx.textAlign=\"left\";ctx.textBaseline=\"top\";var x=this.margin;var y=this.margin;ctx.fillText(info,x,y)};Graph3d.prototype._line=function(ctx,from,to,strokeStyle){if(strokeStyle!==undefined){ctx.strokeStyle=strokeStyle}ctx.beginPath();ctx.moveTo(from.x,from.y);ctx.lineTo(to.x,to.y);ctx.stroke()};Graph3d.prototype.drawAxisLabelX=function(ctx,point3d,text,armAngle,yMargin){if(yMargin===undefined){yMargin=0}var point2d=this._convert3Dto2D(point3d);if(Math.cos(armAngle*2)>0){ctx.textAlign=\"center\";ctx.textBaseline=\"top\";point2d.y+=yMargin}else if(Math.sin(armAngle*2)<0){ctx.textAlign=\"right\";ctx.textBaseline=\"middle\"}else{ctx.textAlign=\"left\";ctx.textBaseline=\"middle\"}ctx.fillStyle=this.axisColor;ctx.fillText(text,point2d.x,point2d.y)};Graph3d.prototype.drawAxisLabelY=function(ctx,point3d,text,armAngle,yMargin){if(yMargin===undefined){yMargin=0}var point2d=this._convert3Dto2D(point3d);if(Math.cos(armAngle*2)<0){ctx.textAlign=\"center\";ctx.textBaseline=\"top\";point2d.y+=yMargin}else if(Math.sin(armAngle*2)>0){ctx.textAlign=\"right\";ctx.textBaseline=\"middle\"}else{ctx.textAlign=\"left\";ctx.textBaseline=\"middle\"}ctx.fillStyle=this.axisColor;ctx.fillText(text,point2d.x,point2d.y)};Graph3d.prototype.drawAxisLabelZ=function(ctx,point3d,text,offset){if(offset===undefined){offset=0}var point2d=this._convert3Dto2D(point3d);ctx.textAlign=\"right\";ctx.textBaseline=\"middle\";ctx.fillStyle=this.axisColor;ctx.fillText(text,point2d.x-offset,point2d.y)};Graph3d.prototype._line3d=function(ctx,from,to,strokeStyle){var from2d=this._convert3Dto2D(from);var to2d=this._convert3Dto2D(to);this._line(ctx,from2d,to2d,strokeStyle)};Graph3d.prototype._redrawAxis=function(){var ctx=this._getContext(),from,to,step,prettyStep,text,xText,yText,zText,offset,xOffset,yOffset;ctx.font=24/this.camera.getArmLength()+\"px arial\";var gridLenX=.025/this.scale.x;var gridLenY=.025/this.scale.y;var textMargin=5/this.camera.getArmLength();var armAngle=this.camera.getArmRotation().horizontal;var armVector=new Point2d(Math.cos(armAngle),Math.sin(armAngle));var xRange=this.xRange;var yRange=this.yRange;var zRange=this.zRange;var point3d;ctx.lineWidth=1;prettyStep=this.defaultXStep===undefined;step=new StepNumber(xRange.min,xRange.max,this.xStep,prettyStep);step.start(true);while(!step.end()){var x=step.getCurrent();if(this.showGrid){from=new Point3d(x,yRange.min,zRange.min);to=new Point3d(x,yRange.max,zRange.min);this._line3d(ctx,from,to,this.gridColor)}else if(this.showXAxis){from=new Point3d(x,yRange.min,zRange.min);to=new Point3d(x,yRange.min+gridLenX,zRange.min);this._line3d(ctx,from,to,this.axisColor);from=new Point3d(x,yRange.max,zRange.min);to=new Point3d(x,yRange.max-gridLenX,zRange.min);this._line3d(ctx,from,to,this.axisColor)}if(this.showXAxis){yText=armVector.x>0?yRange.min:yRange.max;point3d=new Point3d(x,yText,zRange.min);var msg=\" \"+this.xValueLabel(x)+\" \";this.drawAxisLabelX(ctx,point3d,msg,armAngle,textMargin)}step.next()}ctx.lineWidth=1;prettyStep=this.defaultYStep===undefined;step=new StepNumber(yRange.min,yRange.max,this.yStep,prettyStep);step.start(true);while(!step.end()){var y=step.getCurrent();if(this.showGrid){from=new Point3d(xRange.min,y,zRange.min);to=new Point3d(xRange.max,y,zRange.min);this._line3d(ctx,from,to,this.gridColor)}else if(this.showYAxis){from=new Point3d(xRange.min,y,zRange.min);to=new Point3d(xRange.min+gridLenY,y,zRange.min);this._line3d(ctx,from,to,this.axisColor);from=new Point3d(xRange.max,y,zRange.min);to=new Point3d(xRange.max-gridLenY,y,zRange.min);this._line3d(ctx,from,to,this.axisColor)}if(this.showYAxis){xText=armVector.y>0?xRange.min:xRange.max;point3d=new Point3d(xText,y,zRange.min);var _msg=\" \"+this.yValueLabel(y)+\" \";this.drawAxisLabelY(ctx,point3d,_msg,armAngle,textMargin)}step.next()}if(this.showZAxis){ctx.lineWidth=1;prettyStep=this.defaultZStep===undefined;step=new StepNumber(zRange.min,zRange.max,this.zStep,prettyStep);step.start(true);xText=armVector.x>0?xRange.min:xRange.max;yText=armVector.y<0?yRange.min:yRange.max;while(!step.end()){var z=step.getCurrent();var from3d=new Point3d(xText,yText,z);var from2d=this._convert3Dto2D(from3d);to=new Point2d(from2d.x-textMargin,from2d.y);this._line(ctx,from2d,to,this.axisColor);var _msg2=this.zValueLabel(z)+\" \";this.drawAxisLabelZ(ctx,from3d,_msg2,5);step.next()}ctx.lineWidth=1;from=new Point3d(xText,yText,zRange.min);to=new Point3d(xText,yText,zRange.max);this._line3d(ctx,from,to,this.axisColor)}if(this.showXAxis){var xMin2d;var xMax2d;ctx.lineWidth=1;xMin2d=new Point3d(xRange.min,yRange.min,zRange.min);xMax2d=new Point3d(xRange.max,yRange.min,zRange.min);this._line3d(ctx,xMin2d,xMax2d,this.axisColor);xMin2d=new Point3d(xRange.min,yRange.max,zRange.min);xMax2d=new Point3d(xRange.max,yRange.max,zRange.min);this._line3d(ctx,xMin2d,xMax2d,this.axisColor)}if(this.showYAxis){ctx.lineWidth=1;from=new Point3d(xRange.min,yRange.min,zRange.min);to=new Point3d(xRange.min,yRange.max,zRange.min);this._line3d(ctx,from,to,this.axisColor);from=new Point3d(xRange.max,yRange.min,zRange.min);to=new Point3d(xRange.max,yRange.max,zRange.min);this._line3d(ctx,from,to,this.axisColor)}var xLabel=this.xLabel;if(xLabel.length>0&&this.showXAxis){yOffset=.1/this.scale.y;xText=(xRange.max+3*xRange.min)/4;yText=armVector.x>0?yRange.min-yOffset:yRange.max+yOffset\n;text=new Point3d(xText,yText,zRange.min);this.drawAxisLabelX(ctx,text,xLabel,armAngle)}var yLabel=this.yLabel;if(yLabel.length>0&&this.showYAxis){xOffset=.1/this.scale.x;xText=armVector.y>0?xRange.min-xOffset:xRange.max+xOffset;yText=(yRange.max+3*yRange.min)/4;text=new Point3d(xText,yText,zRange.min);this.drawAxisLabelY(ctx,text,yLabel,armAngle)}var zLabel=this.zLabel;if(zLabel.length>0&&this.showZAxis){offset=30;xText=armVector.x>0?xRange.min:xRange.max;yText=armVector.y<0?yRange.min:yRange.max;zText=(zRange.max+3*zRange.min)/4;text=new Point3d(xText,yText,zText);this.drawAxisLabelZ(ctx,text,zLabel,offset)}};Graph3d.prototype._hsv2rgb=function(H,S,V){var R,G,B,C,Hi,X;C=V*S;Hi=Math.floor(H/60);X=C*(1-Math.abs(H/60%2-1));switch(Hi){case 0:R=C;G=X;B=0;break;case 1:R=X;G=C;B=0;break;case 2:R=0;G=C;B=X;break;case 3:R=0;G=X;B=C;break;case 4:R=X;G=0;B=C;break;case 5:R=C;G=0;B=X;break;default:R=0;G=0;B=0;break}return\"RGB(\"+parseInt(R*255)+\",\"+parseInt(G*255)+\",\"+parseInt(B*255)+\")\"};Graph3d.prototype._getStrokeWidth=function(point){if(point!==undefined){if(this.showPerspective){return 1/-point.trans.z*this.dataColor.strokeWidth}else{return-(this.eye.z/this.camera.getArmLength())*this.dataColor.strokeWidth}}return this.dataColor.strokeWidth};Graph3d.prototype._redrawBar=function(ctx,point,xWidth,yWidth,color,borderColor){var surface;var me=this;var point3d=point.point;var zMin=this.zRange.min;var top=[{point:new Point3d(point3d.x-xWidth,point3d.y-yWidth,point3d.z)},{point:new Point3d(point3d.x+xWidth,point3d.y-yWidth,point3d.z)},{point:new Point3d(point3d.x+xWidth,point3d.y+yWidth,point3d.z)},{point:new Point3d(point3d.x-xWidth,point3d.y+yWidth,point3d.z)}];var bottom=[{point:new Point3d(point3d.x-xWidth,point3d.y-yWidth,zMin)},{point:new Point3d(point3d.x+xWidth,point3d.y-yWidth,zMin)},{point:new Point3d(point3d.x+xWidth,point3d.y+yWidth,zMin)},{point:new Point3d(point3d.x-xWidth,point3d.y+yWidth,zMin)}];top.forEach(function(obj){obj.screen=me._convert3Dto2D(obj.point)});bottom.forEach(function(obj){obj.screen=me._convert3Dto2D(obj.point)});var surfaces=[{corners:top,center:Point3d.avg(bottom[0].point,bottom[2].point)},{corners:[top[0],top[1],bottom[1],bottom[0]],center:Point3d.avg(bottom[1].point,bottom[0].point)},{corners:[top[1],top[2],bottom[2],bottom[1]],center:Point3d.avg(bottom[2].point,bottom[1].point)},{corners:[top[2],top[3],bottom[3],bottom[2]],center:Point3d.avg(bottom[3].point,bottom[2].point)},{corners:[top[3],top[0],bottom[0],bottom[3]],center:Point3d.avg(bottom[0].point,bottom[3].point)}];point.surfaces=surfaces;for(var j=0;j<surfaces.length;j++){surface=surfaces[j];var transCenter=this._convertPointToTranslation(surface.center);surface.dist=this.showPerspective?transCenter.length():-transCenter.z}surfaces.sort(function(a,b){var diff=b.dist-a.dist;if(diff)return diff;if(a.corners===top)return 1;if(b.corners===top)return-1;return 0});ctx.lineWidth=this._getStrokeWidth(point);ctx.strokeStyle=borderColor;ctx.fillStyle=color;for(var _j=2;_j<surfaces.length;_j++){surface=surfaces[_j];this._polygon(ctx,surface.corners)}};Graph3d.prototype._polygon=function(ctx,points,fillStyle,strokeStyle){if(points.length<2){return}if(fillStyle!==undefined){ctx.fillStyle=fillStyle}if(strokeStyle!==undefined){ctx.strokeStyle=strokeStyle}ctx.beginPath();ctx.moveTo(points[0].screen.x,points[0].screen.y);for(var i=1;i<points.length;++i){var point=points[i];ctx.lineTo(point.screen.x,point.screen.y)}ctx.closePath();ctx.fill();ctx.stroke()};Graph3d.prototype._drawCircle=function(ctx,point,color,borderColor,size){var radius=this._calcRadius(point,size);ctx.lineWidth=this._getStrokeWidth(point);ctx.strokeStyle=borderColor;ctx.fillStyle=color;ctx.beginPath();ctx.arc(point.screen.x,point.screen.y,radius,0,Math.PI*2,true);ctx.fill();ctx.stroke()};Graph3d.prototype._getColorsRegular=function(point){var hue=(1-(point.point.z-this.zRange.min)*this.scale.z/this.verticalRatio)*240;var color=this._hsv2rgb(hue,1,1);var borderColor=this._hsv2rgb(hue,1,.8);return{fill:color,border:borderColor}};Graph3d.prototype._getColorsColor=function(point){var color,borderColor;if(typeof point.point.value===\"string\"){color=point.point.value;borderColor=point.point.value}else{var hue=(1-(point.point.value-this.valueRange.min)*this.scale.value)*240;color=this._hsv2rgb(hue,1,1);borderColor=this._hsv2rgb(hue,1,.8)}return{fill:color,border:borderColor}};Graph3d.prototype._getColorsSize=function(){return{fill:this.dataColor.fill,border:this.dataColor.stroke}};Graph3d.prototype._calcRadius=function(point,size){if(size===undefined){size=this._dotSize()}var radius;if(this.showPerspective){radius=size/-point.trans.z}else{radius=size*-(this.eye.z/this.camera.getArmLength())}if(radius<0){radius=0}return radius};Graph3d.prototype._redrawBarGraphPoint=function(ctx,point){var xWidth=this.xBarWidth/2;var yWidth=this.yBarWidth/2;var colors=this._getColorsRegular(point);this._redrawBar(ctx,point,xWidth,yWidth,colors.fill,colors.border)};Graph3d.prototype._redrawBarColorGraphPoint=function(ctx,point){var xWidth=this.xBarWidth/2;var yWidth=this.yBarWidth/2;var colors=this._getColorsColor(point);this._redrawBar(ctx,point,xWidth,yWidth,colors.fill,colors.border)};Graph3d.prototype._redrawBarSizeGraphPoint=function(ctx,point){var fraction=(point.point.value-this.valueRange.min)/this.valueRange.range();var xWidth=this.xBarWidth/2*(fraction*.8+.2);var yWidth=this.yBarWidth/2*(fraction*.8+.2);var colors=this._getColorsSize();this._redrawBar(ctx,point,xWidth,yWidth,colors.fill,colors.border)};Graph3d.prototype._redrawDotGraphPoint=function(ctx,point){var colors=this._getColorsRegular(point);this._drawCircle(ctx,point,colors.fill,colors.border)};Graph3d.prototype._redrawDotLineGraphPoint=function(ctx,point){var from=this._convert3Dto2D(point.bottom);ctx.lineWidth=1;this._line(ctx,from,point.screen,this.gridColor);this._redrawDotGraphPoint(ctx,point)};Graph3d.prototype._redrawDotColorGraphPoint=function(ctx,point){var colors=this._getColorsColor(point);this._drawCircle(ctx,point,colors.fill,colors.border)};Graph3d.prototype._redrawDotSizeGraphPoint=function(ctx,point){var dotSize=this._dotSize();var fraction=(point.point.value-this.valueRange.min)/this.valueRange.range();var sizeMin=dotSize*this.dotSizeMinFraction;var sizeRange=dotSize*this.dotSizeMaxFraction-sizeMin;var size=sizeMin+sizeRange*fraction;var colors=this._getColorsSize();this._drawCircle(ctx,point,colors.fill,colors.border,size)};Graph3d.prototype._redrawSurfaceGraphPoint=function(ctx,point){var right=point.pointRight;var top=point.pointTop;var cross=point.pointCross;if(point===undefined||right===undefined||top===undefined||cross===undefined){return}var topSideVisible=true;var fillStyle;var strokeStyle;if(this.showGrayBottom||this.showShadow){var aDiff=Point3d.subtract(cross.trans,point.trans);var bDiff=Point3d.subtract(top.trans,right.trans);var crossproduct=Point3d.crossProduct(aDiff,bDiff);var len=crossproduct.length();topSideVisible=crossproduct.z>0}if(topSideVisible){var zAvg=(point.point.z+right.point.z+top.point.z+cross.point.z)/4;var h=(1-(zAvg-this.zRange.min)*this.scale.z/this.verticalRatio)*240;var s=1;var v;if(this.showShadow){v=Math.min(1+crossproduct.x/len/2,1);fillStyle=this._hsv2rgb(h,s,v);strokeStyle=fillStyle}else{v=1;fillStyle=this._hsv2rgb(h,s,v);strokeStyle=this.axisColor}}else{fillStyle=\"gray\";strokeStyle=this.axisColor}ctx.lineWidth=this._getStrokeWidth(point);var points=[point,right,cross,top];this._polygon(ctx,points,fillStyle,strokeStyle)};Graph3d.prototype._drawGridLine=function(ctx,from,to){if(from===undefined||to===undefined){return}var zAvg=(from.point.z+to.point.z)/2;var h=(1-(zAvg-this.zRange.min)*this.scale.z/this.verticalRatio)*240;ctx.lineWidth=this._getStrokeWidth(from)*2;ctx.strokeStyle=this._hsv2rgb(h,1,1);this._line(ctx,from.screen,to.screen)};Graph3d.prototype._redrawGridGraphPoint=function(ctx,point){this._drawGridLine(ctx,point,point.pointRight);this._drawGridLine(ctx,point,point.pointTop)};Graph3d.prototype._redrawLineGraphPoint=function(ctx,point){if(point.pointNext===undefined){return}ctx.lineWidth=this._getStrokeWidth(point);ctx.strokeStyle=this.dataColor.stroke;this._line(ctx,point.screen,point.pointNext.screen)};Graph3d.prototype._redrawDataGraph=function(){var ctx=this._getContext();var i;if(this.dataPoints===undefined||this.dataPoints.length<=0)return;this._calcTranslations(this.dataPoints);for(i=0;i<this.dataPoints.length;i++){var point=this.dataPoints[i];this._pointDrawingMethod.call(this,ctx,point)}};Graph3d.prototype._storeMousePosition=function(event){this.startMouseX=getMouseX(event);this.startMouseY=getMouseY(event);this._startCameraOffset=this.camera.getOffset()};Graph3d.prototype._onMouseDown=function(event){event=event||window.event;if(this.leftButtonDown){this._onMouseUp(event)}this.leftButtonDown=event.which?event.which===1:event.button===1;if(!this.leftButtonDown&&!this.touchDown)return;this._storeMousePosition(event);this.startStart=new Date(this.start);this.startEnd=new Date(this.end);this.startArmRotation=this.camera.getArmRotation();this.frame.style.cursor=\"move\";var me=this;this.onmousemove=function(event){me._onMouseMove(event)};this.onmouseup=function(event){me._onMouseUp(event)};util.addEventListener(document,\"mousemove\",me.onmousemove);util.addEventListener(document,\"mouseup\",me.onmouseup);util.preventDefault(event)};Graph3d.prototype._onMouseMove=function(event){this.moving=true;event=event||window.event;var diffX=parseFloat(getMouseX(event))-this.startMouseX;var diffY=parseFloat(getMouseY(event))-this.startMouseY;if(event&&event.ctrlKey===true){var scaleX=this.frame.clientWidth*.5;var scaleY=this.frame.clientHeight*.5;var offXNew=(this._startCameraOffset.x||0)-diffX/scaleX*this.camera.armLength*.8;var offYNew=(this._startCameraOffset.y||0)+diffY/scaleY*this.camera.armLength*.8;this.camera.setOffset(offXNew,offYNew);this._storeMousePosition(event)}else{var horizontalNew=this.startArmRotation.horizontal+diffX/200;var verticalNew=this.startArmRotation.vertical+diffY/200;var snapAngle=4;var snapValue=Math.sin(snapAngle/360*2*Math.PI);if(Math.abs(Math.sin(horizontalNew))<snapValue){horizontalNew=Math.round(horizontalNew/Math.PI)*Math.PI-.001}if(Math.abs(Math.cos(horizontalNew))<snapValue){horizontalNew=(Math.round(horizontalNew/Math.PI-.5)+.5)*Math.PI-.001}if(Math.abs(Math.sin(verticalNew))<snapValue){verticalNew=Math.round(verticalNew/Math.PI)*Math.PI}if(Math.abs(Math.cos(verticalNew))<snapValue){verticalNew=(Math.round(verticalNew/Math.PI-.5)+.5)*Math.PI}this.camera.setArmRotation(horizontalNew,verticalNew)}this.redraw();var parameters=this.getCameraPosition();this.emit(\"cameraPositionChange\",parameters);util.preventDefault(event)};Graph3d.prototype._onMouseUp=function(event){this.frame.style.cursor=\"auto\";this.leftButtonDown=false;util.removeEventListener(document,\"mousemove\",this.onmousemove);util.removeEventListener(document,\"mouseup\",this.onmouseup);util.preventDefault(event)};Graph3d.prototype._onClick=function(event){if(!this.onclick_callback)return;if(!this.moving){var boundingRect=this.frame.getBoundingClientRect();var mouseX=getMouseX(event)-boundingRect.left;var mouseY=getMouseY(event)-boundingRect.top;var dataPoint=this._dataPointFromXY(mouseX,mouseY);if(dataPoint)this.onclick_callback(dataPoint.point.data)}else{this.moving=false}util.preventDefault(event)};Graph3d.prototype._onTooltip=function(event){var delay=300;var boundingRect=this.frame.getBoundingClientRect();var mouseX=getMouseX(event)-boundingRect.left;var mouseY=getMouseY(event)-boundingRect.top;if(!this.showTooltip){return}if(this.tooltipTimeout){clearTimeout(this.tooltipTimeout)}if(this.leftButtonDown){this._hideTooltip();return}if(this.tooltip&&this.tooltip.dataPoint){var dataPoint=this._dataPointFromXY(mouseX,mouseY);if(dataPoint!==this.tooltip.dataPoint){if(dataPoint){this._showTooltip(dataPoint)}else{this._hideTooltip()}}}else{var me=this;this.tooltipTimeout=setTimeout(function(){me.tooltipTimeout=null;var dataPoint=me._dataPointFromXY(mouseX,mouseY);if(dataPoint){me._showTooltip(dataPoint)}},delay)}};Graph3d.prototype._onTouchStart=function(event){this.touchDown=true;var me=this;this.ontouchmove=function(event){me._onTouchMove(event)};this.ontouchend=function(event){me._onTouchEnd(event)};util.addEventListener(document,\"touchmove\",me.ontouchmove);util.addEventListener(document,\"touchend\",me.ontouchend);this._onMouseDown(event)};Graph3d.prototype._onTouchMove=function(event){this._onMouseMove(event)};Graph3d.prototype._onTouchEnd=function(event){this.touchDown=false;util.removeEventListener(document,\"touchmove\",this.ontouchmove);util.removeEventListener(document,\"touchend\",this.ontouchend);this._onMouseUp(event)};Graph3d.prototype._onWheel=function(event){if(!event)event=window.event;var delta=0;if(event.wheelDelta){delta=event.wheelDelta/120}else if(event.detail){delta=-event.detail/3}if(delta){var oldLength=this.camera.getArmLength();var newLength=oldLength*(1-delta/10);this.camera.setArmLength(newLength);this.redraw();this._hideTooltip()}var parameters=this.getCameraPosition();this.emit(\"cameraPositionChange\",parameters);util.preventDefault(event)};Graph3d.prototype._insideTriangle=function(point,triangle){var a=triangle[0],b=triangle[1],c=triangle[2];function sign(x){return x>0?1:x<0?-1:0}var as=sign((b.x-a.x)*(point.y-a.y)-(b.y-a.y)*(point.x-a.x));var bs=sign((c.x-b.x)*(point.y-b.y)-(c.y-b.y)*(point.x-b.x));var cs=sign((a.x-c.x)*(point.y-c.y)-(a.y-c.y)*(point.x-c.x));return(as==0||bs==0||as==bs)&&(bs==0||cs==0||bs==cs)&&(as==0||cs==0||as==cs)};Graph3d.prototype._dataPointFromXY=function(x,y){var i,distMax=100,dataPoint=null,closestDataPoint=null,closestDist=null,center=new Point2d(x,y);if(this.style===Graph3d.STYLE.BAR||this.style===Graph3d.STYLE.BARCOLOR||this.style===Graph3d.STYLE.BARSIZE){for(i=this.dataPoints.length-1;i>=0;i--){dataPoint=this.dataPoints[i];var surfaces=dataPoint.surfaces;if(surfaces){for(var s=surfaces.length-1;s>=0;s--){var surface=surfaces[s];var corners=surface.corners;var triangle1=[corners[0].screen,corners[1].screen,corners[2].screen];var triangle2=[corners[2].screen,corners[3].screen,corners[0].screen];if(this._insideTriangle(center,triangle1)||this._insideTriangle(center,triangle2)){return dataPoint}}}}}else{for(i=0;i<this.dataPoints.length;i++){dataPoint=this.dataPoints[i];var point=dataPoint.screen;if(point){var distX=Math.abs(x-point.x);var distY=Math.abs(y-point.y);var dist=Math.sqrt(distX*distX+distY*distY);if((closestDist===null||dist<closestDist)&&dist<distMax){closestDist=dist;closestDataPoint=dataPoint}}}}return closestDataPoint};Graph3d.prototype.hasBars=function(style){return style==Graph3d.STYLE.BAR||style==Graph3d.STYLE.BARCOLOR||style==Graph3d.STYLE.BARSIZE};Graph3d.prototype._showTooltip=function(dataPoint){var content,line,dot;if(!this.tooltip){content=document.createElement(\"div\");(0,_assign2[\"default\"])(content.style,{},this.tooltipStyle.content);content.style.position=\"absolute\";line=document.createElement(\"div\");(0,_assign2[\"default\"])(line.style,{},this.tooltipStyle.line);line.style.position=\"absolute\";dot=document.createElement(\"div\");(0,_assign2[\"default\"])(dot.style,{},this.tooltipStyle.dot);dot.style.position=\"absolute\";this.tooltip={dataPoint:null,dom:{content:content,line:line,dot:dot}}}else{content=this.tooltip.dom.content;line=this.tooltip.dom.line;dot=this.tooltip.dom.dot}this._hideTooltip();this.tooltip.dataPoint=dataPoint;if(typeof this.showTooltip===\"function\"){content.innerHTML=this.showTooltip(dataPoint.point)}else{content.innerHTML=\"<table>\"+\"<tr><td>\"+this.xLabel+\":</td><td>\"+dataPoint.point.x+\"</td></tr>\"+\"<tr><td>\"+this.yLabel+\":</td><td>\"+dataPoint.point.y+\"</td></tr>\"+\"<tr><td>\"+this.zLabel+\":</td><td>\"+dataPoint.point.z+\"</td></tr>\"+\"</table>\"}content.style.left=\"0\";content.style.top=\"0\";this.frame.appendChild(content);this.frame.appendChild(line);this.frame.appendChild(dot);var contentWidth=content.offsetWidth;var contentHeight=content.offsetHeight;var lineHeight=line.offsetHeight;var dotWidth=dot.offsetWidth;var dotHeight=dot.offsetHeight;var left=dataPoint.screen.x-contentWidth/2;left=Math.min(Math.max(left,10),this.frame.clientWidth-10-contentWidth);line.style.left=dataPoint.screen.x+\"px\";line.style.top=dataPoint.screen.y-lineHeight+\"px\";content.style.left=left+\"px\";content.style.top=dataPoint.screen.y-lineHeight-contentHeight+\"px\";dot.style.left=dataPoint.screen.x-dotWidth/2+\"px\";dot.style.top=dataPoint.screen.y-dotHeight/2+\"px\"};Graph3d.prototype._hideTooltip=function(){if(this.tooltip){this.tooltip.dataPoint=null;for(var prop in this.tooltip.dom){if(this.tooltip.dom.hasOwnProperty(prop)){var elem=this.tooltip.dom[prop];if(elem&&elem.parentNode){elem.parentNode.removeChild(elem)}}}}};function getMouseX(event){if(\"clientX\"in event)return event.clientX;return event.targetTouches[0]&&event.targetTouches[0].clientX||0}function getMouseY(event){if(\"clientY\"in event)return event.clientY;return event.targetTouches[0]&&event.targetTouches[0].clientY||0}Graph3d.prototype.setCameraPosition=function(pos){Settings.setCameraPosition(pos,this);this.redraw()};Graph3d.prototype.setSize=function(width,height){this._setSize(width,height);this.redraw()};module.exports=Graph3d},function(module,exports,__webpack_require__){__webpack_require__(163);module.exports=__webpack_require__(7).Object.assign},function(module,exports,__webpack_require__){var $export=__webpack_require__(17);$export($export.S+$export.F,\"Object\",{assign:__webpack_require__(164)})},function(module,exports,__webpack_require__){\"use strict\";var getKeys=__webpack_require__(33);var gOPS=__webpack_require__(63);var pIE=__webpack_require__(42);var toObject=__webpack_require__(41);var IObject=__webpack_require__(78);var $assign=Object.assign;module.exports=!$assign||__webpack_require__(28)(function(){var A={};var B={};var S=Symbol();var K=\"abcdefghijklmnopqrst\";A[S]=7;K.split(\"\").forEach(function(k){B[k]=k});return $assign({},A)[S]!=7||Object.keys($assign({},B)).join(\"\")!=K})?function assign(target,source){var T=toObject(target);var aLen=arguments.length;var index=1;var getSymbols=gOPS.f;var isEnum=pIE.f;while(aLen>index){var S=IObject(arguments[index++]);var keys=getSymbols?getKeys(S).concat(getSymbols(S)):getKeys(S);var length=keys.length;var j=0;var key;while(length>j)if(isEnum.call(S,key=keys[j++]))T[key]=S[key]}return T}:$assign},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(166),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(167);module.exports=__webpack_require__(7).Math.sign},function(module,exports,__webpack_require__){var $export=__webpack_require__(17);$export($export.S,\"Math\",{sign:__webpack_require__(168)})},function(module,exports){module.exports=Math.sign||function sign(x){return(x=+x)==0||x!=x?x:x<0?-1:1}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(170),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(171);var $Object=__webpack_require__(7).Object;module.exports=function defineProperty(it,key,desc){return $Object.defineProperty(it,key,desc)}},function(module,exports,__webpack_require__){var $export=__webpack_require__(17);$export($export.S+$export.F*!__webpack_require__(21),\"Object\",{defineProperty:__webpack_require__(20).f})},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var string=\"string\";var bool=\"boolean\";var number=\"number\";var object=\"object\";var colorOptions={fill:{string:string},stroke:{string:string},strokeWidth:{number:number},__type__:{string:string,object:object,undefined:\"undefined\"}};var allOptions={animationAutoStart:{boolean:bool,undefined:\"undefined\"},animationInterval:{number:number},animationPreload:{boolean:bool},axisColor:{string:string},backgroundColor:colorOptions,xBarWidth:{number:number,undefined:\"undefined\"},yBarWidth:{number:number,undefined:\"undefined\"},cameraPosition:{distance:{number:number},horizontal:{number:number},vertical:{number:number},__type__:{object:object}},xCenter:{string:string},yCenter:{string:string},dataColor:colorOptions,dotSizeMinFraction:{number:number},dotSizeMaxFraction:{number:number},dotSizeRatio:{number:number},filterLabel:{string:string},gridColor:{string:string},onclick:{function:\"function\"},keepAspectRatio:{boolean:bool},xLabel:{string:string},yLabel:{string:string},zLabel:{string:string},legendLabel:{string:string},xMin:{number:number,undefined:\"undefined\"},yMin:{number:number,undefined:\"undefined\"},zMin:{number:number,undefined:\"undefined\"},xMax:{number:number,undefined:\"undefined\"},yMax:{number:number,undefined:\"undefined\"},zMax:{number:number,undefined:\"undefined\"},showAnimationControls:{boolean:bool,undefined:\"undefined\"},showGrid:{boolean:bool},showLegend:{boolean:bool,undefined:\"undefined\"},showPerspective:{boolean:bool},showShadow:{boolean:bool},showXAxis:{boolean:bool},showYAxis:{boolean:bool},showZAxis:{boolean:bool},xStep:{number:number,undefined:\"undefined\"},yStep:{number:number,undefined:\"undefined\"},zStep:{number:number,undefined:\"undefined\"},style:{number:number,string:[\"bar\",\"bar-color\",\"bar-size\",\"dot\",\"dot-line\",\"dot-color\",\"dot-size\",\"line\",\"grid\",\"surface\"]},tooltip:{boolean:bool,function:\"function\"},tooltipStyle:{content:{color:{string:string},background:{string:string},border:{string:string},borderRadius:{string:string},boxShadow:{string:string},padding:{string:string},__type__:{object:object}},line:{borderLeft:{string:string},height:{string:string},width:{string:string},__type__:{object:object}},dot:{border:{string:string},borderRadius:{string:string},height:{string:string},width:{string:string},__type__:{object:object}},__type__:{object:object}},xValueLabel:{function:\"function\"},yValueLabel:{function:\"function\"},zValueLabel:{function:\"function\"},valueMax:{number:number,undefined:\"undefined\"},valueMin:{number:number,undefined:\"undefined\"},verticalRatio:{number:number},height:{string:string},width:{string:string},__type__:{object:object}};exports.allOptions=allOptions},function(module,exports,__webpack_require__){\"use strict\";var DataSet=__webpack_require__(11);var DataView=__webpack_require__(12);var Range=__webpack_require__(174);var Filter=__webpack_require__(96);var Settings=__webpack_require__(94);var Point3d=__webpack_require__(34);function DataGroup(){this.dataTable=null}DataGroup.prototype.initializeData=function(graph3d,rawData,style){if(rawData===undefined)return;if(Array.isArray(rawData)){rawData=new DataSet(rawData)}var data;if(rawData instanceof DataSet||rawData instanceof DataView){data=rawData.get()}else{throw new Error(\"Array, DataSet, or DataView expected\")}if(data.length==0)return;this.style=style;if(this.dataSet){this.dataSet.off(\"*\",this._onChange)}this.dataSet=rawData;this.dataTable=data;var me=this;this._onChange=function(){graph3d.setData(me.dataSet)};this.dataSet.on(\"*\",this._onChange);this.colX=\"x\";this.colY=\"y\";this.colZ=\"z\";var withBars=graph3d.hasBars(style);if(withBars){if(graph3d.defaultXBarWidth!==undefined){this.xBarWidth=graph3d.defaultXBarWidth}else{this.xBarWidth=this.getSmallestDifference(data,this.colX)||1}if(graph3d.defaultYBarWidth!==undefined){this.yBarWidth=graph3d.defaultYBarWidth}else{this.yBarWidth=this.getSmallestDifference(data,this.colY)||1}}this._initializeRange(data,this.colX,graph3d,withBars);this._initializeRange(data,this.colY,graph3d,withBars);this._initializeRange(data,this.colZ,graph3d,false);if(data[0].hasOwnProperty(\"style\")){this.colValue=\"style\";var valueRange=this.getColumnRange(data,this.colValue);this._setRangeDefaults(valueRange,graph3d.defaultValueMin,graph3d.defaultValueMax);this.valueRange=valueRange}var table=this.getDataTable();if(table[0].hasOwnProperty(\"filter\")){if(this.dataFilter===undefined){this.dataFilter=new Filter(this,\"filter\",graph3d);this.dataFilter.setOnLoadCallback(function(){graph3d.redraw()})}}var dataPoints;if(this.dataFilter){dataPoints=this.dataFilter._getDataPoints()}else{dataPoints=this._getDataPoints(this.getDataTable())}return dataPoints};DataGroup.prototype._collectRangeSettings=function(column,graph3d){var index=[\"x\",\"y\",\"z\"].indexOf(column);if(index==-1){throw new Error(\"Column '\"+column+\"' invalid\")}var upper=column.toUpperCase();return{barWidth:this[column+\"BarWidth\"],min:graph3d[\"default\"+upper+\"Min\"],max:graph3d[\"default\"+upper+\"Max\"],step:graph3d[\"default\"+upper+\"Step\"],range_label:column+\"Range\",step_label:column+\"Step\"}};DataGroup.prototype._initializeRange=function(data,column,graph3d,withBars){var NUMSTEPS=5;var settings=this._collectRangeSettings(column,graph3d);var range=this.getColumnRange(data,column);if(withBars&&column!=\"z\"){range.expand(settings.barWidth/2)}this._setRangeDefaults(range,settings.min,settings.max);this[settings.range_label]=range;this[settings.step_label]=settings.step!==undefined?settings.step:range.range()/NUMSTEPS};DataGroup.prototype.getDistinctValues=function(column,data){if(data===undefined){data=this.dataTable}var values=[];for(var i=0;i<data.length;i++){var value=data[i][column]||0;if(values.indexOf(value)===-1){values.push(value)}}return values.sort(function(a,b){return a-b})};DataGroup.prototype.getSmallestDifference=function(data,column){var values=this.getDistinctValues(data,column);var smallest_diff=null;for(var i=1;i<values.length;i++){var diff=values[i]-values[i-1];if(smallest_diff==null||smallest_diff>diff){smallest_diff=diff}}return smallest_diff};DataGroup.prototype.getColumnRange=function(data,column){var range=new Range;for(var i=0;i<data.length;i++){var item=data[i][column];range.adjust(item)}return range};DataGroup.prototype.getNumberOfRows=function(){return this.dataTable.length};DataGroup.prototype._setRangeDefaults=function(range,defaultMin,defaultMax){if(defaultMin!==undefined){range.min=defaultMin}if(defaultMax!==undefined){range.max=defaultMax}if(range.max<=range.min)range.max=range.min+1};DataGroup.prototype.getDataTable=function(){return this.dataTable};DataGroup.prototype.getDataSet=function(){return this.dataSet};DataGroup.prototype.getDataPoints=function(data){var dataPoints=[];for(var i=0;i<data.length;i++){var point=new Point3d;point.x=data[i][this.colX]||0;point.y=data[i][this.colY]||0;point.z=data[i][this.colZ]||0;point.data=data[i];if(this.colValue!==undefined){point.value=data[i][this.colValue]||0}var obj={};obj.point=point;obj.bottom=new Point3d(point.x,point.y,this.zRange.min);obj.trans=undefined;obj.screen=undefined;dataPoints.push(obj)}return dataPoints};DataGroup.prototype.initDataAsMatrix=function(data){var x,y,i,obj;var dataX=this.getDistinctValues(this.colX,data);var dataY=this.getDistinctValues(this.colY,data);var dataPoints=this.getDataPoints(data);var dataMatrix=[];for(i=0;i<dataPoints.length;i++){obj=dataPoints[i];var xIndex=dataX.indexOf(obj.point.x);var yIndex=dataY.indexOf(obj.point.y);if(dataMatrix[xIndex]===undefined){dataMatrix[xIndex]=[]}dataMatrix[xIndex][yIndex]=obj}for(x=0;x<dataMatrix.length;x++){for(y=0;y<dataMatrix[x].length;y++){if(dataMatrix[x][y]){dataMatrix[x][y].pointRight=x<dataMatrix.length-1?dataMatrix[x+1][y]:undefined;dataMatrix[x][y].pointTop=y<dataMatrix[x].length-1?dataMatrix[x][y+1]:undefined;dataMatrix[x][y].pointCross=x<dataMatrix.length-1&&y<dataMatrix[x].length-1?dataMatrix[x+1][y+1]:undefined}}}return dataPoints};DataGroup.prototype.getInfo=function(){var dataFilter=this.dataFilter;if(!dataFilter)return undefined;return dataFilter.getLabel()+\": \"+dataFilter.getSelectedValue()};DataGroup.prototype.reload=function(){if(this.dataTable){this.setData(this.dataTable)}};DataGroup.prototype._getDataPoints=function(data){var dataPoints=[];if(this.style===Settings.STYLE.GRID||this.style===Settings.STYLE.SURFACE){dataPoints=this.initDataAsMatrix(data)}else{this._checkValueField(data);dataPoints=this.getDataPoints(data);if(this.style===Settings.STYLE.LINE){for(var i=0;i<dataPoints.length;i++){if(i>0){dataPoints[i-1].pointNext=dataPoints[i]}}}}return dataPoints};DataGroup.prototype._checkValueField=function(data){var hasValueField=this.style===Settings.STYLE.BARCOLOR||this.style===Settings.STYLE.BARSIZE||this.style===Settings.STYLE.DOTCOLOR||this.style===Settings.STYLE.DOTSIZE;if(!hasValueField){return}if(this.colValue===undefined){throw new Error(\"Expected data to have \"+\" field 'style' \"+\" for graph style '\"+this.style+\"'\")}if(data[0][this.colValue]===undefined){throw new Error(\"Expected data to have \"+\" field '\"+this.colValue+\"' \"+\" for graph style '\"+this.style+\"'\")}};module.exports=DataGroup},function(module,exports,__webpack_require__){\"use strict\";function Range(){this.min=undefined;this.max=undefined}Range.prototype.adjust=function(value){if(value===undefined)return;if(this.min===undefined||this.min>value){this.min=value}if(this.max===undefined||this.max<value){this.max=value}};Range.prototype.combine=function(range){this.add(range.min);this.add(range.max)};Range.prototype.expand=function(val){if(val===undefined){return}var newMin=this.min-val;var newMax=this.max+val;if(newMin>newMax){throw new Error(\"Passed expansion value makes range invalid\")}this.min=newMin;this.max=newMax};Range.prototype.range=function(){return this.max-this.min};Range.prototype.center=function(){return(this.min+this.max)/2};module.exports=Range},function(module,exports,__webpack_require__){\"use strict\";var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(factory){if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__===\"function\"?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else if(typeof exports===\"object\"){module.exports=factory()}else{window.propagating=factory()}})(function(){var _firstTarget=null;return function propagating(hammer,options){var _options=options||{preventDefault:false};if(hammer.Manager){var Hammer=hammer;var PropagatingHammer=function(element,options){var o=Object.create(_options);if(options)Hammer.assign(o,options);return propagating(new Hammer(element,o),o)};Hammer.assign(PropagatingHammer,Hammer);PropagatingHammer.Manager=function(element,options){var o=Object.create(_options);if(options)Hammer.assign(o,options);return propagating(new Hammer.Manager(element,o),o)};return PropagatingHammer}var wrapper=Object.create(hammer);var element=hammer.element;if(!element.hammer)element.hammer=[];element.hammer.push(wrapper);hammer.on(\"hammer.input\",function(event){if(_options.preventDefault===true||_options.preventDefault===event.pointerType){event.preventDefault()}if(event.isFirst){_firstTarget=event.target}});wrapper._handlers={};wrapper.on=function(events,handler){split(events).forEach(function(event){var _handlers=wrapper._handlers[event];if(!_handlers){wrapper._handlers[event]=_handlers=[];hammer.on(event,propagatedHandler)}_handlers.push(handler)});return wrapper};wrapper.off=function(events,handler){split(events).forEach(function(event){var _handlers=wrapper._handlers[event];if(_handlers){_handlers=handler?_handlers.filter(function(h){return h!==handler}):[];if(_handlers.length>0){wrapper._handlers[event]=_handlers}else{hammer.off(event,propagatedHandler);delete wrapper._handlers[event]}}});return wrapper};wrapper.emit=function(eventType,event){_firstTarget=event.target;hammer.emit(eventType,event)};wrapper.destroy=function(){var hammers=hammer.element.hammer;var idx=hammers.indexOf(wrapper);if(idx!==-1)hammers.splice(idx,1);if(!hammers.length)delete hammer.element.hammer;wrapper._handlers={};hammer.destroy()};function split(events){return events.match(/[^ ]+/g)}function propagatedHandler(event){if(event.type!==\"hammer.input\"){if(!event.srcEvent._handled){event.srcEvent._handled={}}if(event.srcEvent._handled[event.type]){return}else{event.srcEvent._handled[event.type]=true}}var stopped=false\n;event.stopPropagation=function(){stopped=true};var srcStop=event.srcEvent.stopPropagation.bind(event.srcEvent);if(typeof srcStop==\"function\"){event.srcEvent.stopPropagation=function(){srcStop();event.stopPropagation()}}event.firstTarget=_firstTarget;var elem=_firstTarget;while(elem&&!stopped){var elemHammer=elem.hammer;if(elemHammer){var _handlers;for(var k=0;k<elemHammer.length;k++){_handlers=elemHammer[k]._handlers[event.type];if(_handlers)for(var i=0;i<_handlers.length&&!stopped;i++){_handlers[i](event)}}}elem=elem.parentNode}}return wrapper}})},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(window,document,exportName,undefined){\"use strict\";var VENDOR_PREFIXES=[\"\",\"webkit\",\"Moz\",\"MS\",\"ms\",\"o\"];var TEST_ELEMENT=document.createElement(\"div\");var TYPE_FUNCTION=\"function\";var round=Math.round;var abs=Math.abs;var now=Date.now;function setTimeoutContext(fn,timeout,context){return setTimeout(bindFn(fn,context),timeout)}function invokeArrayArg(arg,fn,context){if(Array.isArray(arg)){each(arg,context[fn],context);return true}return false}function each(obj,iterator,context){var i;if(!obj){return}if(obj.forEach){obj.forEach(iterator,context)}else if(obj.length!==undefined){i=0;while(i<obj.length){iterator.call(context,obj[i],i,obj);i++}}else{for(i in obj){obj.hasOwnProperty(i)&&iterator.call(context,obj[i],i,obj)}}}function deprecate(method,name,message){var deprecationMessage=\"DEPRECATED METHOD: \"+name+\"\\n\"+message+\" AT \\n\";return function(){var e=new Error(\"get-stack-trace\");var stack=e&&e.stack?e.stack.replace(/^[^\\(]+?[\\n$]/gm,\"\").replace(/^\\s+at\\s+/gm,\"\").replace(/^Object.<anonymous>\\s*\\(/gm,\"{anonymous}()@\"):\"Unknown Stack Trace\";var log=window.console&&(window.console.warn||window.console.log);if(log){log.call(window.console,deprecationMessage,stack)}return method.apply(this,arguments)}}var assign;if(typeof Object.assign!==\"function\"){assign=function assign(target){if(target===undefined||target===null){throw new TypeError(\"Cannot convert undefined or null to object\")}var output=Object(target);for(var index=1;index<arguments.length;index++){var source=arguments[index];if(source!==undefined&&source!==null){for(var nextKey in source){if(source.hasOwnProperty(nextKey)){output[nextKey]=source[nextKey]}}}}return output}}else{assign=Object.assign}var extend=deprecate(function extend(dest,src,merge){var keys=Object.keys(src);var i=0;while(i<keys.length){if(!merge||merge&&dest[keys[i]]===undefined){dest[keys[i]]=src[keys[i]]}i++}return dest},\"extend\",\"Use `assign`.\");var merge=deprecate(function merge(dest,src){return extend(dest,src,true)},\"merge\",\"Use `assign`.\");function inherit(child,base,properties){var baseP=base.prototype,childP;childP=child.prototype=Object.create(baseP);childP.constructor=child;childP._super=baseP;if(properties){assign(childP,properties)}}function bindFn(fn,context){return function boundFn(){return fn.apply(context,arguments)}}function boolOrFn(val,args){if(typeof val==TYPE_FUNCTION){return val.apply(args?args[0]||undefined:undefined,args)}return val}function ifUndefined(val1,val2){return val1===undefined?val2:val1}function addEventListeners(target,types,handler){each(splitStr(types),function(type){target.addEventListener(type,handler,false)})}function removeEventListeners(target,types,handler){each(splitStr(types),function(type){target.removeEventListener(type,handler,false)})}function hasParent(node,parent){while(node){if(node==parent){return true}node=node.parentNode}return false}function inStr(str,find){return str.indexOf(find)>-1}function splitStr(str){return str.trim().split(/\\s+/g)}function inArray(src,find,findByKey){if(src.indexOf&&!findByKey){return src.indexOf(find)}else{var i=0;while(i<src.length){if(findByKey&&src[i][findByKey]==find||!findByKey&&src[i]===find){return i}i++}return-1}}function toArray(obj){return Array.prototype.slice.call(obj,0)}function uniqueArray(src,key,sort){var results=[];var values=[];var i=0;while(i<src.length){var val=key?src[i][key]:src[i];if(inArray(values,val)<0){results.push(src[i])}values[i]=val;i++}if(sort){if(!key){results=results.sort()}else{results=results.sort(function sortUniqueArray(a,b){return a[key]>b[key]})}}return results}function prefixed(obj,property){var prefix,prop;var camelProp=property[0].toUpperCase()+property.slice(1);var i=0;while(i<VENDOR_PREFIXES.length){prefix=VENDOR_PREFIXES[i];prop=prefix?prefix+camelProp:property;if(prop in obj){return prop}i++}return undefined}var _uniqueId=1;function uniqueId(){return _uniqueId++}function getWindowForElement(element){var doc=element.ownerDocument||element;return doc.defaultView||doc.parentWindow||window}var MOBILE_REGEX=/mobile|tablet|ip(ad|hone|od)|android/i;var SUPPORT_TOUCH=\"ontouchstart\"in window;var SUPPORT_POINTER_EVENTS=prefixed(window,\"PointerEvent\")!==undefined;var SUPPORT_ONLY_TOUCH=SUPPORT_TOUCH&&MOBILE_REGEX.test(navigator.userAgent);var INPUT_TYPE_TOUCH=\"touch\";var INPUT_TYPE_PEN=\"pen\";var INPUT_TYPE_MOUSE=\"mouse\";var INPUT_TYPE_KINECT=\"kinect\";var COMPUTE_INTERVAL=25;var INPUT_START=1;var INPUT_MOVE=2;var INPUT_END=4;var INPUT_CANCEL=8;var DIRECTION_NONE=1;var DIRECTION_LEFT=2;var DIRECTION_RIGHT=4;var DIRECTION_UP=8;var DIRECTION_DOWN=16;var DIRECTION_HORIZONTAL=DIRECTION_LEFT|DIRECTION_RIGHT;var DIRECTION_VERTICAL=DIRECTION_UP|DIRECTION_DOWN;var DIRECTION_ALL=DIRECTION_HORIZONTAL|DIRECTION_VERTICAL;var PROPS_XY=[\"x\",\"y\"];var PROPS_CLIENT_XY=[\"clientX\",\"clientY\"];function Input(manager,callback){var self=this;this.manager=manager;this.callback=callback;this.element=manager.element;this.target=manager.options.inputTarget;this.domHandler=function(ev){if(boolOrFn(manager.options.enable,[manager])){self.handler(ev)}};this.init()}Input.prototype={handler:function(){},init:function(){this.evEl&&addEventListeners(this.element,this.evEl,this.domHandler);this.evTarget&&addEventListeners(this.target,this.evTarget,this.domHandler);this.evWin&&addEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&removeEventListeners(this.element,this.evEl,this.domHandler);this.evTarget&&removeEventListeners(this.target,this.evTarget,this.domHandler);this.evWin&&removeEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)}};function createInputInstance(manager){var Type;var inputClass=manager.options.inputClass;if(inputClass){Type=inputClass}else if(SUPPORT_POINTER_EVENTS){Type=PointerEventInput}else if(SUPPORT_ONLY_TOUCH){Type=TouchInput}else if(!SUPPORT_TOUCH){Type=MouseInput}else{Type=TouchMouseInput}return new Type(manager,inputHandler)}function inputHandler(manager,eventType,input){var pointersLen=input.pointers.length;var changedPointersLen=input.changedPointers.length;var isFirst=eventType&INPUT_START&&pointersLen-changedPointersLen===0;var isFinal=eventType&(INPUT_END|INPUT_CANCEL)&&pointersLen-changedPointersLen===0;input.isFirst=!!isFirst;input.isFinal=!!isFinal;if(isFirst){manager.session={}}input.eventType=eventType;computeInputData(manager,input);manager.emit(\"hammer.input\",input);manager.recognize(input);manager.session.prevInput=input}function computeInputData(manager,input){var session=manager.session;var pointers=input.pointers;var pointersLength=pointers.length;if(!session.firstInput){session.firstInput=simpleCloneInputData(input)}if(pointersLength>1&&!session.firstMultiple){session.firstMultiple=simpleCloneInputData(input)}else if(pointersLength===1){session.firstMultiple=false}var firstInput=session.firstInput;var firstMultiple=session.firstMultiple;var offsetCenter=firstMultiple?firstMultiple.center:firstInput.center;var center=input.center=getCenter(pointers);input.timeStamp=now();input.deltaTime=input.timeStamp-firstInput.timeStamp;input.angle=getAngle(offsetCenter,center);input.distance=getDistance(offsetCenter,center);computeDeltaXY(session,input);input.offsetDirection=getDirection(input.deltaX,input.deltaY);var overallVelocity=getVelocity(input.deltaTime,input.deltaX,input.deltaY);input.overallVelocityX=overallVelocity.x;input.overallVelocityY=overallVelocity.y;input.overallVelocity=abs(overallVelocity.x)>abs(overallVelocity.y)?overallVelocity.x:overallVelocity.y;input.scale=firstMultiple?getScale(firstMultiple.pointers,pointers):1;input.rotation=firstMultiple?getRotation(firstMultiple.pointers,pointers):0;input.maxPointers=!session.prevInput?input.pointers.length:input.pointers.length>session.prevInput.maxPointers?input.pointers.length:session.prevInput.maxPointers;computeIntervalInputData(session,input);var target=manager.element;if(hasParent(input.srcEvent.target,target)){target=input.srcEvent.target}input.target=target}function computeDeltaXY(session,input){var center=input.center;var offset=session.offsetDelta||{};var prevDelta=session.prevDelta||{};var prevInput=session.prevInput||{};if(input.eventType===INPUT_START||prevInput.eventType===INPUT_END){prevDelta=session.prevDelta={x:prevInput.deltaX||0,y:prevInput.deltaY||0};offset=session.offsetDelta={x:center.x,y:center.y}}input.deltaX=prevDelta.x+(center.x-offset.x);input.deltaY=prevDelta.y+(center.y-offset.y)}function computeIntervalInputData(session,input){var last=session.lastInterval||input,deltaTime=input.timeStamp-last.timeStamp,velocity,velocityX,velocityY,direction;if(input.eventType!=INPUT_CANCEL&&(deltaTime>COMPUTE_INTERVAL||last.velocity===undefined)){var deltaX=input.deltaX-last.deltaX;var deltaY=input.deltaY-last.deltaY;var v=getVelocity(deltaTime,deltaX,deltaY);velocityX=v.x;velocityY=v.y;velocity=abs(v.x)>abs(v.y)?v.x:v.y;direction=getDirection(deltaX,deltaY);session.lastInterval=input}else{velocity=last.velocity;velocityX=last.velocityX;velocityY=last.velocityY;direction=last.direction}input.velocity=velocity;input.velocityX=velocityX;input.velocityY=velocityY;input.direction=direction}function simpleCloneInputData(input){var pointers=[];var i=0;while(i<input.pointers.length){pointers[i]={clientX:round(input.pointers[i].clientX),clientY:round(input.pointers[i].clientY)};i++}return{timeStamp:now(),pointers:pointers,center:getCenter(pointers),deltaX:input.deltaX,deltaY:input.deltaY}}function getCenter(pointers){var pointersLength=pointers.length;if(pointersLength===1){return{x:round(pointers[0].clientX),y:round(pointers[0].clientY)}}var x=0,y=0,i=0;while(i<pointersLength){x+=pointers[i].clientX;y+=pointers[i].clientY;i++}return{x:round(x/pointersLength),y:round(y/pointersLength)}}function getVelocity(deltaTime,x,y){return{x:x/deltaTime||0,y:y/deltaTime||0}}function getDirection(x,y){if(x===y){return DIRECTION_NONE}if(abs(x)>=abs(y)){return x<0?DIRECTION_LEFT:DIRECTION_RIGHT}return y<0?DIRECTION_UP:DIRECTION_DOWN}function getDistance(p1,p2,props){if(!props){props=PROPS_XY}var x=p2[props[0]]-p1[props[0]],y=p2[props[1]]-p1[props[1]];return Math.sqrt(x*x+y*y)}function getAngle(p1,p2,props){if(!props){props=PROPS_XY}var x=p2[props[0]]-p1[props[0]],y=p2[props[1]]-p1[props[1]];return Math.atan2(y,x)*180/Math.PI}function getRotation(start,end){return getAngle(end[1],end[0],PROPS_CLIENT_XY)+getAngle(start[1],start[0],PROPS_CLIENT_XY)}function getScale(start,end){return getDistance(end[0],end[1],PROPS_CLIENT_XY)/getDistance(start[0],start[1],PROPS_CLIENT_XY)}var MOUSE_INPUT_MAP={mousedown:INPUT_START,mousemove:INPUT_MOVE,mouseup:INPUT_END};var MOUSE_ELEMENT_EVENTS=\"mousedown\";var MOUSE_WINDOW_EVENTS=\"mousemove mouseup\";function MouseInput(){this.evEl=MOUSE_ELEMENT_EVENTS;this.evWin=MOUSE_WINDOW_EVENTS;this.pressed=false;Input.apply(this,arguments)}inherit(MouseInput,Input,{handler:function MEhandler(ev){var eventType=MOUSE_INPUT_MAP[ev.type];if(eventType&INPUT_START&&ev.button===0){this.pressed=true}if(eventType&INPUT_MOVE&&ev.which!==1){eventType=INPUT_END}if(!this.pressed){return}if(eventType&INPUT_END){this.pressed=false}this.callback(this.manager,eventType,{pointers:[ev],changedPointers:[ev],pointerType:INPUT_TYPE_MOUSE,srcEvent:ev})}});var POINTER_INPUT_MAP={pointerdown:INPUT_START,pointermove:INPUT_MOVE,pointerup:INPUT_END,pointercancel:INPUT_CANCEL,pointerout:INPUT_CANCEL};var IE10_POINTER_TYPE_ENUM={2:INPUT_TYPE_TOUCH,3:INPUT_TYPE_PEN,4:INPUT_TYPE_MOUSE,5:INPUT_TYPE_KINECT};var POINTER_ELEMENT_EVENTS=\"pointerdown\";var POINTER_WINDOW_EVENTS=\"pointermove pointerup pointercancel\";if(window.MSPointerEvent&&!window.PointerEvent){POINTER_ELEMENT_EVENTS=\"MSPointerDown\";POINTER_WINDOW_EVENTS=\"MSPointerMove MSPointerUp MSPointerCancel\"}function PointerEventInput(){this.evEl=POINTER_ELEMENT_EVENTS;this.evWin=POINTER_WINDOW_EVENTS;Input.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}inherit(PointerEventInput,Input,{handler:function PEhandler(ev){var store=this.store;var removePointer=false;var eventTypeNormalized=ev.type.toLowerCase().replace(\"ms\",\"\");var eventType=POINTER_INPUT_MAP[eventTypeNormalized];var pointerType=IE10_POINTER_TYPE_ENUM[ev.pointerType]||ev.pointerType;var isTouch=pointerType==INPUT_TYPE_TOUCH;var storeIndex=inArray(store,ev.pointerId,\"pointerId\");if(eventType&INPUT_START&&(ev.button===0||isTouch)){if(storeIndex<0){store.push(ev);storeIndex=store.length-1}}else if(eventType&(INPUT_END|INPUT_CANCEL)){removePointer=true}if(storeIndex<0){return}store[storeIndex]=ev;this.callback(this.manager,eventType,{pointers:store,changedPointers:[ev],pointerType:pointerType,srcEvent:ev});if(removePointer){store.splice(storeIndex,1)}}});var SINGLE_TOUCH_INPUT_MAP={touchstart:INPUT_START,touchmove:INPUT_MOVE,touchend:INPUT_END,touchcancel:INPUT_CANCEL};var SINGLE_TOUCH_TARGET_EVENTS=\"touchstart\";var SINGLE_TOUCH_WINDOW_EVENTS=\"touchstart touchmove touchend touchcancel\";function SingleTouchInput(){this.evTarget=SINGLE_TOUCH_TARGET_EVENTS;this.evWin=SINGLE_TOUCH_WINDOW_EVENTS;this.started=false;Input.apply(this,arguments)}inherit(SingleTouchInput,Input,{handler:function TEhandler(ev){var type=SINGLE_TOUCH_INPUT_MAP[ev.type];if(type===INPUT_START){this.started=true}if(!this.started){return}var touches=normalizeSingleTouches.call(this,ev,type);if(type&(INPUT_END|INPUT_CANCEL)&&touches[0].length-touches[1].length===0){this.started=false}this.callback(this.manager,type,{pointers:touches[0],changedPointers:touches[1],pointerType:INPUT_TYPE_TOUCH,srcEvent:ev})}});function normalizeSingleTouches(ev,type){var all=toArray(ev.touches);var changed=toArray(ev.changedTouches);if(type&(INPUT_END|INPUT_CANCEL)){all=uniqueArray(all.concat(changed),\"identifier\",true)}return[all,changed]}var TOUCH_INPUT_MAP={touchstart:INPUT_START,touchmove:INPUT_MOVE,touchend:INPUT_END,touchcancel:INPUT_CANCEL};var TOUCH_TARGET_EVENTS=\"touchstart touchmove touchend touchcancel\";function TouchInput(){this.evTarget=TOUCH_TARGET_EVENTS;this.targetIds={};Input.apply(this,arguments)}inherit(TouchInput,Input,{handler:function MTEhandler(ev){var type=TOUCH_INPUT_MAP[ev.type];var touches=getTouches.call(this,ev,type);if(!touches){return}this.callback(this.manager,type,{pointers:touches[0],changedPointers:touches[1],pointerType:INPUT_TYPE_TOUCH,srcEvent:ev})}});function getTouches(ev,type){var allTouches=toArray(ev.touches);var targetIds=this.targetIds;if(type&(INPUT_START|INPUT_MOVE)&&allTouches.length===1){targetIds[allTouches[0].identifier]=true;return[allTouches,allTouches]}var i,targetTouches,changedTouches=toArray(ev.changedTouches),changedTargetTouches=[],target=this.target;targetTouches=allTouches.filter(function(touch){return hasParent(touch.target,target)});if(type===INPUT_START){i=0;while(i<targetTouches.length){targetIds[targetTouches[i].identifier]=true;i++}}i=0;while(i<changedTouches.length){if(targetIds[changedTouches[i].identifier]){changedTargetTouches.push(changedTouches[i])}if(type&(INPUT_END|INPUT_CANCEL)){delete targetIds[changedTouches[i].identifier]}i++}if(!changedTargetTouches.length){return}return[uniqueArray(targetTouches.concat(changedTargetTouches),\"identifier\",true),changedTargetTouches]}var DEDUP_TIMEOUT=2500;var DEDUP_DISTANCE=25;function TouchMouseInput(){Input.apply(this,arguments);var handler=bindFn(this.handler,this);this.touch=new TouchInput(this.manager,handler);this.mouse=new MouseInput(this.manager,handler);this.primaryTouch=null;this.lastTouches=[]}inherit(TouchMouseInput,Input,{handler:function TMEhandler(manager,inputEvent,inputData){var isTouch=inputData.pointerType==INPUT_TYPE_TOUCH,isMouse=inputData.pointerType==INPUT_TYPE_MOUSE;if(isMouse&&inputData.sourceCapabilities&&inputData.sourceCapabilities.firesTouchEvents){return}if(isTouch){recordTouches.call(this,inputEvent,inputData)}else if(isMouse&&isSyntheticEvent.call(this,inputData)){return}this.callback(manager,inputEvent,inputData)},destroy:function destroy(){this.touch.destroy();this.mouse.destroy()}});function recordTouches(eventType,eventData){if(eventType&INPUT_START){this.primaryTouch=eventData.changedPointers[0].identifier;setLastTouch.call(this,eventData)}else if(eventType&(INPUT_END|INPUT_CANCEL)){setLastTouch.call(this,eventData)}}function setLastTouch(eventData){var touch=eventData.changedPointers[0];if(touch.identifier===this.primaryTouch){var lastTouch={x:touch.clientX,y:touch.clientY};this.lastTouches.push(lastTouch);var lts=this.lastTouches;var removeLastTouch=function(){var i=lts.indexOf(lastTouch);if(i>-1){lts.splice(i,1)}};setTimeout(removeLastTouch,DEDUP_TIMEOUT)}}function isSyntheticEvent(eventData){var x=eventData.srcEvent.clientX,y=eventData.srcEvent.clientY;for(var i=0;i<this.lastTouches.length;i++){var t=this.lastTouches[i];var dx=Math.abs(x-t.x),dy=Math.abs(y-t.y);if(dx<=DEDUP_DISTANCE&&dy<=DEDUP_DISTANCE){return true}}return false}var PREFIXED_TOUCH_ACTION=prefixed(TEST_ELEMENT.style,\"touchAction\");var NATIVE_TOUCH_ACTION=PREFIXED_TOUCH_ACTION!==undefined;var TOUCH_ACTION_COMPUTE=\"compute\";var TOUCH_ACTION_AUTO=\"auto\";var TOUCH_ACTION_MANIPULATION=\"manipulation\";var TOUCH_ACTION_NONE=\"none\";var TOUCH_ACTION_PAN_X=\"pan-x\";var TOUCH_ACTION_PAN_Y=\"pan-y\";var TOUCH_ACTION_MAP=getTouchActionProps();function TouchAction(manager,value){this.manager=manager;this.set(value)}TouchAction.prototype={set:function(value){if(value==TOUCH_ACTION_COMPUTE){value=this.compute()}if(NATIVE_TOUCH_ACTION&&this.manager.element.style&&TOUCH_ACTION_MAP[value]){this.manager.element.style[PREFIXED_TOUCH_ACTION]=value}this.actions=value.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var actions=[];each(this.manager.recognizers,function(recognizer){if(boolOrFn(recognizer.options.enable,[recognizer])){actions=actions.concat(recognizer.getTouchAction())}});return cleanTouchActions(actions.join(\" \"))},preventDefaults:function(input){var srcEvent=input.srcEvent;var direction=input.offsetDirection;if(this.manager.session.prevented){srcEvent.preventDefault();return}var actions=this.actions;var hasNone=inStr(actions,TOUCH_ACTION_NONE)&&!TOUCH_ACTION_MAP[TOUCH_ACTION_NONE];var hasPanY=inStr(actions,TOUCH_ACTION_PAN_Y)&&!TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_Y];var hasPanX=inStr(actions,TOUCH_ACTION_PAN_X)&&!TOUCH_ACTION_MAP[TOUCH_ACTION_PAN_X];if(hasNone){var isTapPointer=input.pointers.length===1;var isTapMovement=input.distance<2;var isTapTouchTime=input.deltaTime<250;if(isTapPointer&&isTapMovement&&isTapTouchTime){return}}if(hasPanX&&hasPanY){return}if(hasNone||hasPanY&&direction&DIRECTION_HORIZONTAL||hasPanX&&direction&DIRECTION_VERTICAL){return this.preventSrc(srcEvent)}},preventSrc:function(srcEvent){this.manager.session.prevented=true;srcEvent.preventDefault()}};function cleanTouchActions(actions){if(inStr(actions,TOUCH_ACTION_NONE)){return TOUCH_ACTION_NONE}var hasPanX=inStr(actions,TOUCH_ACTION_PAN_X);var hasPanY=inStr(actions,TOUCH_ACTION_PAN_Y);if(hasPanX&&hasPanY){return TOUCH_ACTION_NONE}if(hasPanX||hasPanY){return hasPanX?TOUCH_ACTION_PAN_X:TOUCH_ACTION_PAN_Y}if(inStr(actions,TOUCH_ACTION_MANIPULATION)){return TOUCH_ACTION_MANIPULATION}return TOUCH_ACTION_AUTO}function getTouchActionProps(){if(!NATIVE_TOUCH_ACTION){return false}var touchMap={};var cssSupports=window.CSS&&window.CSS.supports;[\"auto\",\"manipulation\",\"pan-y\",\"pan-x\",\"pan-x pan-y\",\"none\"].forEach(function(val){touchMap[val]=cssSupports?window.CSS.supports(\"touch-action\",val):true});return touchMap}var STATE_POSSIBLE=1;var STATE_BEGAN=2;var STATE_CHANGED=4;var STATE_ENDED=8;var STATE_RECOGNIZED=STATE_ENDED;var STATE_CANCELLED=16;var STATE_FAILED=32;function Recognizer(options){this.options=assign({},this.defaults,options||{});this.id=uniqueId();this.manager=null;this.options.enable=ifUndefined(this.options.enable,true);this.state=STATE_POSSIBLE;this.simultaneous={};this.requireFail=[]}Recognizer.prototype={defaults:{},set:function(options){assign(this.options,options);this.manager&&this.manager.touchAction.update();return this},recognizeWith:function(otherRecognizer){if(invokeArrayArg(otherRecognizer,\"recognizeWith\",this)){return this}var simultaneous=this.simultaneous;otherRecognizer=getRecognizerByNameIfManager(otherRecognizer,this);if(!simultaneous[otherRecognizer.id]){simultaneous[otherRecognizer.id]=otherRecognizer;otherRecognizer.recognizeWith(this)}return this},dropRecognizeWith:function(otherRecognizer){if(invokeArrayArg(otherRecognizer,\"dropRecognizeWith\",this)){return this}otherRecognizer=getRecognizerByNameIfManager(otherRecognizer,this);delete this.simultaneous[otherRecognizer.id];return this},requireFailure:function(otherRecognizer){if(invokeArrayArg(otherRecognizer,\"requireFailure\",this)){return this}var requireFail=this.requireFail;otherRecognizer=getRecognizerByNameIfManager(otherRecognizer,this);if(inArray(requireFail,otherRecognizer)===-1){requireFail.push(otherRecognizer);otherRecognizer.requireFailure(this)}return this},dropRequireFailure:function(otherRecognizer){if(invokeArrayArg(otherRecognizer,\"dropRequireFailure\",this)){return this}otherRecognizer=getRecognizerByNameIfManager(otherRecognizer,this);var index=inArray(this.requireFail,otherRecognizer);if(index>-1){this.requireFail.splice(index,1)}return this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(otherRecognizer){return!!this.simultaneous[otherRecognizer.id]},emit:function(input){var self=this;var state=this.state;function emit(event){self.manager.emit(event,input)}if(state<STATE_ENDED){emit(self.options.event+stateStr(state))}emit(self.options.event);if(input.additionalEvent){emit(input.additionalEvent)}if(state>=STATE_ENDED){emit(self.options.event+stateStr(state))}},tryEmit:function(input){if(this.canEmit()){return this.emit(input)}this.state=STATE_FAILED},canEmit:function(){var i=0;while(i<this.requireFail.length){if(!(this.requireFail[i].state&(STATE_FAILED|STATE_POSSIBLE))){return false}i++}return true},recognize:function(inputData){var inputDataClone=assign({},inputData);if(!boolOrFn(this.options.enable,[this,inputDataClone])){this.reset();this.state=STATE_FAILED;return}if(this.state&(STATE_RECOGNIZED|STATE_CANCELLED|STATE_FAILED)){this.state=STATE_POSSIBLE}this.state=this.process(inputDataClone);if(this.state&(STATE_BEGAN|STATE_CHANGED|STATE_ENDED|STATE_CANCELLED)){this.tryEmit(inputDataClone)}},process:function(inputData){},getTouchAction:function(){},reset:function(){}};function stateStr(state){if(state&STATE_CANCELLED){return\"cancel\"}else if(state&STATE_ENDED){return\"end\"}else if(state&STATE_CHANGED){return\"move\"}else if(state&STATE_BEGAN){return\"start\"}return\"\"}function directionStr(direction){if(direction==DIRECTION_DOWN){return\"down\"}else if(direction==DIRECTION_UP){return\"up\"}else if(direction==DIRECTION_LEFT){return\"left\"}else if(direction==DIRECTION_RIGHT){return\"right\"}return\"\"}function getRecognizerByNameIfManager(otherRecognizer,recognizer){var manager=recognizer.manager;if(manager){return manager.get(otherRecognizer)}return otherRecognizer}function AttrRecognizer(){Recognizer.apply(this,arguments)}inherit(AttrRecognizer,Recognizer,{defaults:{pointers:1},attrTest:function(input){var optionPointers=this.options.pointers;return optionPointers===0||input.pointers.length===optionPointers},process:function(input){var state=this.state;var eventType=input.eventType;var isRecognized=state&(STATE_BEGAN|STATE_CHANGED);var isValid=this.attrTest(input);if(isRecognized&&(eventType&INPUT_CANCEL||!isValid)){return state|STATE_CANCELLED}else if(isRecognized||isValid){if(eventType&INPUT_END){return state|STATE_ENDED}else if(!(state&STATE_BEGAN)){return STATE_BEGAN}return state|STATE_CHANGED}return STATE_FAILED}});function PanRecognizer(){AttrRecognizer.apply(this,arguments);this.pX=null;this.pY=null}inherit(PanRecognizer,AttrRecognizer,{defaults:{event:\"pan\",threshold:10,pointers:1,direction:DIRECTION_ALL},getTouchAction:function(){var direction=this.options.direction;var actions=[];if(direction&DIRECTION_HORIZONTAL){actions.push(TOUCH_ACTION_PAN_Y)}if(direction&DIRECTION_VERTICAL){actions.push(TOUCH_ACTION_PAN_X)}return actions},directionTest:function(input){var options=this.options;var hasMoved=true;var distance=input.distance;var direction=input.direction;var x=input.deltaX;var y=input.deltaY;if(!(direction&options.direction)){if(options.direction&DIRECTION_HORIZONTAL){direction=x===0?DIRECTION_NONE:x<0?DIRECTION_LEFT:DIRECTION_RIGHT;hasMoved=x!=this.pX;distance=Math.abs(input.deltaX)}else{direction=y===0?DIRECTION_NONE:y<0?DIRECTION_UP:DIRECTION_DOWN;hasMoved=y!=this.pY;distance=Math.abs(input.deltaY)}}input.direction=direction;return hasMoved&&distance>options.threshold&&direction&options.direction},attrTest:function(input){return AttrRecognizer.prototype.attrTest.call(this,input)&&(this.state&STATE_BEGAN||!(this.state&STATE_BEGAN)&&this.directionTest(input))},emit:function(input){this.pX=input.deltaX;this.pY=input.deltaY;var direction=directionStr(input.direction);if(direction){input.additionalEvent=this.options.event+direction}this._super.emit.call(this,input)}});function PinchRecognizer(){AttrRecognizer.apply(this,arguments)}inherit(PinchRecognizer,AttrRecognizer,{defaults:{event:\"pinch\",threshold:0,pointers:2},getTouchAction:function(){return[TOUCH_ACTION_NONE]},attrTest:function(input){return this._super.attrTest.call(this,input)&&(Math.abs(input.scale-1)>this.options.threshold||this.state&STATE_BEGAN)},emit:function(input){if(input.scale!==1){var inOut=input.scale<1?\"in\":\"out\";input.additionalEvent=this.options.event+inOut}this._super.emit.call(this,input)}});function PressRecognizer(){Recognizer.apply(this,arguments);this._timer=null;this._input=null}inherit(PressRecognizer,Recognizer,{defaults:{event:\"press\",pointers:1,time:251,threshold:9},getTouchAction:function(){return[TOUCH_ACTION_AUTO]},process:function(input){var options=this.options;var validPointers=input.pointers.length===options.pointers;var validMovement=input.distance<options.threshold;var validTime=input.deltaTime>options.time;this._input=input;if(!validMovement||!validPointers||input.eventType&(INPUT_END|INPUT_CANCEL)&&!validTime){this.reset()}else if(input.eventType&INPUT_START){this.reset();this._timer=setTimeoutContext(function(){this.state=STATE_RECOGNIZED;this.tryEmit()},options.time,this)}else if(input.eventType&INPUT_END){return STATE_RECOGNIZED}return STATE_FAILED},reset:function(){clearTimeout(this._timer)},emit:function(input){if(this.state!==STATE_RECOGNIZED){return}if(input&&input.eventType&INPUT_END){this.manager.emit(this.options.event+\"up\",input)}else{this._input.timeStamp=now();this.manager.emit(this.options.event,this._input)}}});function RotateRecognizer(){AttrRecognizer.apply(this,arguments)}inherit(RotateRecognizer,AttrRecognizer,{defaults:{event:\"rotate\",threshold:0,pointers:2},getTouchAction:function(){return[TOUCH_ACTION_NONE]},attrTest:function(input){return this._super.attrTest.call(this,input)&&(Math.abs(input.rotation)>this.options.threshold||this.state&STATE_BEGAN)}});function SwipeRecognizer(){AttrRecognizer.apply(this,arguments)}inherit(SwipeRecognizer,AttrRecognizer,{defaults:{event:\"swipe\",threshold:10,velocity:.3,direction:DIRECTION_HORIZONTAL|DIRECTION_VERTICAL,pointers:1},getTouchAction:function(){return PanRecognizer.prototype.getTouchAction.call(this)},attrTest:function(input){var direction=this.options.direction;var velocity;if(direction&(DIRECTION_HORIZONTAL|DIRECTION_VERTICAL)){velocity=input.overallVelocity}else if(direction&DIRECTION_HORIZONTAL){velocity=input.overallVelocityX}else if(direction&DIRECTION_VERTICAL){velocity=input.overallVelocityY}return this._super.attrTest.call(this,input)&&direction&input.offsetDirection&&input.distance>this.options.threshold&&input.maxPointers==this.options.pointers&&abs(velocity)>this.options.velocity&&input.eventType&INPUT_END},emit:function(input){var direction=directionStr(input.offsetDirection);if(direction){this.manager.emit(this.options.event+direction,input)}this.manager.emit(this.options.event,input)}});function TapRecognizer(){Recognizer.apply(this,arguments);this.pTime=false;this.pCenter=false;this._timer=null;this._input=null;this.count=0}inherit(TapRecognizer,Recognizer,{defaults:{event:\"tap\",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[TOUCH_ACTION_MANIPULATION]},process:function(input){var options=this.options;var validPointers=input.pointers.length===options.pointers;var validMovement=input.distance<options.threshold;var validTouchTime=input.deltaTime<options.time;this.reset();if(input.eventType&INPUT_START&&this.count===0){return this.failTimeout()}if(validMovement&&validTouchTime&&validPointers){if(input.eventType!=INPUT_END){return this.failTimeout()}var validInterval=this.pTime?input.timeStamp-this.pTime<options.interval:true;var validMultiTap=!this.pCenter||getDistance(this.pCenter,input.center)<options.posThreshold;this.pTime=input.timeStamp;this.pCenter=input.center;if(!validMultiTap||!validInterval){this.count=1}else{this.count+=1}this._input=input;var tapCount=this.count%options.taps;if(tapCount===0){if(!this.hasRequireFailures()){return STATE_RECOGNIZED}else{this._timer=setTimeoutContext(function(){this.state=STATE_RECOGNIZED;this.tryEmit()},options.interval,this);return STATE_BEGAN}}}return STATE_FAILED},failTimeout:function(){this._timer=setTimeoutContext(function(){this.state=STATE_FAILED},this.options.interval,this);return STATE_FAILED},reset:function(){clearTimeout(this._timer)},emit:function(){if(this.state==STATE_RECOGNIZED){this._input.tapCount=this.count;this.manager.emit(this.options.event,this._input)}}});function Hammer(element,options){options=options||{};options.recognizers=ifUndefined(options.recognizers,Hammer.defaults.preset);return new Manager(element,options)}Hammer.VERSION=\"2.0.7\";Hammer.defaults={domEvents:false,touchAction:TOUCH_ACTION_COMPUTE,enable:true,inputTarget:null,inputClass:null,preset:[[RotateRecognizer,{enable:false}],[PinchRecognizer,{enable:false},[\"rotate\"]],[SwipeRecognizer,{direction:DIRECTION_HORIZONTAL}],[PanRecognizer,{direction:DIRECTION_HORIZONTAL},[\"swipe\"]],[TapRecognizer],[TapRecognizer,{event:\"doubletap\",taps:2},[\"tap\"]],[PressRecognizer]],cssProps:{userSelect:\"none\",touchSelect:\"none\",touchCallout:\"none\",contentZooming:\"none\",userDrag:\"none\",tapHighlightColor:\"rgba(0,0,0,0)\"}};var STOP=1;var FORCED_STOP=2;function Manager(element,options){this.options=assign({},Hammer.defaults,options||{});this.options.inputTarget=this.options.inputTarget||element;this.handlers={};this.session={};this.recognizers=[];this.oldCssProps={};this.element=element;this.input=createInputInstance(this);this.touchAction=new TouchAction(this,this.options.touchAction);toggleCssProps(this,true);each(this.options.recognizers,function(item){var recognizer=this.add(new item[0](item[1]));item[2]&&recognizer.recognizeWith(item[2]);item[3]&&recognizer.requireFailure(item[3])},this)}Manager.prototype={set:function(options){assign(this.options,options);if(options.touchAction){this.touchAction.update()}if(options.inputTarget){this.input.destroy();this.input.target=options.inputTarget;this.input.init()}return this},stop:function(force){this.session.stopped=force?FORCED_STOP:STOP},recognize:function(inputData){var session=this.session;if(session.stopped){return}this.touchAction.preventDefaults(inputData)\n;var recognizer;var recognizers=this.recognizers;var curRecognizer=session.curRecognizer;if(!curRecognizer||curRecognizer&&curRecognizer.state&STATE_RECOGNIZED){curRecognizer=session.curRecognizer=null}var i=0;while(i<recognizers.length){recognizer=recognizers[i];if(session.stopped!==FORCED_STOP&&(!curRecognizer||recognizer==curRecognizer||recognizer.canRecognizeWith(curRecognizer))){recognizer.recognize(inputData)}else{recognizer.reset()}if(!curRecognizer&&recognizer.state&(STATE_BEGAN|STATE_CHANGED|STATE_ENDED)){curRecognizer=session.curRecognizer=recognizer}i++}},get:function(recognizer){if(recognizer instanceof Recognizer){return recognizer}var recognizers=this.recognizers;for(var i=0;i<recognizers.length;i++){if(recognizers[i].options.event==recognizer){return recognizers[i]}}return null},add:function(recognizer){if(invokeArrayArg(recognizer,\"add\",this)){return this}var existing=this.get(recognizer.options.event);if(existing){this.remove(existing)}this.recognizers.push(recognizer);recognizer.manager=this;this.touchAction.update();return recognizer},remove:function(recognizer){if(invokeArrayArg(recognizer,\"remove\",this)){return this}recognizer=this.get(recognizer);if(recognizer){var recognizers=this.recognizers;var index=inArray(recognizers,recognizer);if(index!==-1){recognizers.splice(index,1);this.touchAction.update()}}return this},on:function(events,handler){if(events===undefined){return}if(handler===undefined){return}var handlers=this.handlers;each(splitStr(events),function(event){handlers[event]=handlers[event]||[];handlers[event].push(handler)});return this},off:function(events,handler){if(events===undefined){return}var handlers=this.handlers;each(splitStr(events),function(event){if(!handler){delete handlers[event]}else{handlers[event]&&handlers[event].splice(inArray(handlers[event],handler),1)}});return this},emit:function(event,data){if(this.options.domEvents){triggerDomEvent(event,data)}var handlers=this.handlers[event]&&this.handlers[event].slice();if(!handlers||!handlers.length){return}data.type=event;data.preventDefault=function(){data.srcEvent.preventDefault()};var i=0;while(i<handlers.length){handlers[i](data);i++}},destroy:function(){this.element&&toggleCssProps(this,false);this.handlers={};this.session={};this.input.destroy();this.element=null}};function toggleCssProps(manager,add){var element=manager.element;if(!element.style){return}var prop;each(manager.options.cssProps,function(value,name){prop=prefixed(element.style,name);if(add){manager.oldCssProps[prop]=element.style[prop];element.style[prop]=value}else{element.style[prop]=manager.oldCssProps[prop]||\"\"}});if(!add){manager.oldCssProps={}}}function triggerDomEvent(event,data){var gestureEvent=document.createEvent(\"Event\");gestureEvent.initEvent(event,true,true);gestureEvent.gesture=data;data.target.dispatchEvent(gestureEvent)}assign(Hammer,{INPUT_START:INPUT_START,INPUT_MOVE:INPUT_MOVE,INPUT_END:INPUT_END,INPUT_CANCEL:INPUT_CANCEL,STATE_POSSIBLE:STATE_POSSIBLE,STATE_BEGAN:STATE_BEGAN,STATE_CHANGED:STATE_CHANGED,STATE_ENDED:STATE_ENDED,STATE_RECOGNIZED:STATE_RECOGNIZED,STATE_CANCELLED:STATE_CANCELLED,STATE_FAILED:STATE_FAILED,DIRECTION_NONE:DIRECTION_NONE,DIRECTION_LEFT:DIRECTION_LEFT,DIRECTION_RIGHT:DIRECTION_RIGHT,DIRECTION_UP:DIRECTION_UP,DIRECTION_DOWN:DIRECTION_DOWN,DIRECTION_HORIZONTAL:DIRECTION_HORIZONTAL,DIRECTION_VERTICAL:DIRECTION_VERTICAL,DIRECTION_ALL:DIRECTION_ALL,Manager:Manager,Input:Input,TouchAction:TouchAction,TouchInput:TouchInput,MouseInput:MouseInput,PointerEventInput:PointerEventInput,TouchMouseInput:TouchMouseInput,SingleTouchInput:SingleTouchInput,Recognizer:Recognizer,AttrRecognizer:AttrRecognizer,Tap:TapRecognizer,Pan:PanRecognizer,Swipe:SwipeRecognizer,Pinch:PinchRecognizer,Rotate:RotateRecognizer,Press:PressRecognizer,on:addEventListeners,off:removeEventListeners,each:each,merge:merge,extend:extend,assign:assign,inherit:inherit,bindFn:bindFn,prefixed:prefixed});var freeGlobal=typeof window!==\"undefined\"?window:typeof self!==\"undefined\"?self:{};freeGlobal.Hammer=Hammer;if(true){!(__WEBPACK_AMD_DEFINE_RESULT__=function(){return Hammer}.call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else if(typeof module!=\"undefined\"&&module.exports){module.exports=Hammer}else{window[exportName]=Hammer}})(window,document,\"Hammer\")},function(module,exports,__webpack_require__){\"use strict\";exports.util=__webpack_require__(2);exports.DOMutil=__webpack_require__(14);exports.DataSet=__webpack_require__(11);exports.DataView=__webpack_require__(12);exports.Queue=__webpack_require__(43);exports.Timeline=__webpack_require__(178);exports.Graph2d=__webpack_require__(180);exports.timeline={Core:__webpack_require__(65),DateUtil:__webpack_require__(36),Range:__webpack_require__(64),stack:__webpack_require__(100),TimeStep:__webpack_require__(66),components:{items:{Item:__webpack_require__(38),BackgroundItem:__webpack_require__(103),BoxItem:__webpack_require__(101),PointItem:__webpack_require__(102),RangeItem:__webpack_require__(70)},BackgroundGroup:__webpack_require__(69),Component:__webpack_require__(16),CurrentTime:__webpack_require__(67),CustomTime:__webpack_require__(46),DataAxis:__webpack_require__(107),DataScale:__webpack_require__(108),GraphGroup:__webpack_require__(109),Group:__webpack_require__(68),ItemSet:__webpack_require__(99),Legend:__webpack_require__(112),LineGraph:__webpack_require__(106),TimeAxis:__webpack_require__(45)}};exports.moment=__webpack_require__(9);exports.Hammer=__webpack_require__(10);exports.keycharm=__webpack_require__(35)},function(module,exports,__webpack_require__){\"use strict\";var moment=__webpack_require__(9);var util=__webpack_require__(2);var DataSet=__webpack_require__(11);var DataView=__webpack_require__(12);var Range=__webpack_require__(64);var Core=__webpack_require__(65);var TimeAxis=__webpack_require__(45);var CurrentTime=__webpack_require__(67);var CustomTime=__webpack_require__(46);var ItemSet=__webpack_require__(99);var printStyle=__webpack_require__(15).printStyle;var allOptions=__webpack_require__(105).allOptions;var configureOptions=__webpack_require__(105).configureOptions;var Configurator=__webpack_require__(71)[\"default\"];var Validator=__webpack_require__(15)[\"default\"];function Timeline(container,items,groups,options){if(!(this instanceof Timeline)){throw new SyntaxError(\"Constructor must be called with the new operator\")}if(!(Array.isArray(groups)||groups instanceof DataSet||groups instanceof DataView)&&groups instanceof Object){var forthArgument=options;options=groups;groups=forthArgument}if(options&&options.throttleRedraw){console.warn('Timeline option \"throttleRedraw\" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.')}var me=this;this.defaultOptions={start:null,end:null,autoResize:true,orientation:{axis:\"bottom\",item:\"bottom\"},moment:moment,width:null,height:null,maxHeight:null,minHeight:null};this.options=util.deepExtend({},this.defaultOptions);this._create(container);if(!options||options&&typeof options.rtl==\"undefined\"){this.dom.root.style.visibility=\"hidden\";var directionFromDom,domNode=this.dom.root;while(!directionFromDom&&domNode){directionFromDom=window.getComputedStyle(domNode,null).direction;domNode=domNode.parentElement}this.options.rtl=directionFromDom&&directionFromDom.toLowerCase()==\"rtl\"}else{this.options.rtl=options.rtl}this.options.rollingMode=options&&options.rollingMode;this.options.onInitialDrawComplete=options&&options.onInitialDrawComplete;this.components=[];this.body={dom:this.dom,domProps:this.props,emitter:{on:this.on.bind(this),off:this.off.bind(this),emit:this.emit.bind(this)},hiddenDates:[],util:{getScale:function getScale(){return me.timeAxis.step.scale},getStep:function getStep(){return me.timeAxis.step.step},toScreen:me._toScreen.bind(me),toGlobalScreen:me._toGlobalScreen.bind(me),toTime:me._toTime.bind(me),toGlobalTime:me._toGlobalTime.bind(me)}};this.range=new Range(this.body,this.options);this.components.push(this.range);this.body.range=this.range;this.timeAxis=new TimeAxis(this.body,this.options);this.timeAxis2=null;this.components.push(this.timeAxis);this.currentTime=new CurrentTime(this.body,this.options);this.components.push(this.currentTime);this.itemSet=new ItemSet(this.body,this.options);this.components.push(this.itemSet);this.itemsData=null;this.groupsData=null;this.dom.root.onclick=function(event){me.emit(\"click\",me.getEventProperties(event))};this.dom.root.ondblclick=function(event){me.emit(\"doubleClick\",me.getEventProperties(event))};this.dom.root.oncontextmenu=function(event){me.emit(\"contextmenu\",me.getEventProperties(event))};this.dom.root.onmouseover=function(event){me.emit(\"mouseOver\",me.getEventProperties(event))};if(window.PointerEvent){this.dom.root.onpointerdown=function(event){me.emit(\"mouseDown\",me.getEventProperties(event))};this.dom.root.onpointermove=function(event){me.emit(\"mouseMove\",me.getEventProperties(event))};this.dom.root.onpointerup=function(event){me.emit(\"mouseUp\",me.getEventProperties(event))}}else{this.dom.root.onmousemove=function(event){me.emit(\"mouseMove\",me.getEventProperties(event))};this.dom.root.onmousedown=function(event){me.emit(\"mouseDown\",me.getEventProperties(event))};this.dom.root.onmouseup=function(event){me.emit(\"mouseUp\",me.getEventProperties(event))}}this.initialFitDone=false;this.on(\"changed\",function(){if(this.itemsData==null||this.options.rollingMode)return;if(!me.initialFitDone){me.initialFitDone=true;if(me.options.start!=undefined||me.options.end!=undefined){if(me.options.start==undefined||me.options.end==undefined){var range=me.getItemRange()}var start=me.options.start!=undefined?me.options.start:range.min;var end=me.options.end!=undefined?me.options.end:range.max;me.setWindow(start,end,{animation:false})}else{me.fit({animation:false})}}if(!me.initialDrawDone&&me.initialRangeChangeDone){me.initialDrawDone=true;me.dom.root.style.visibility=\"visible\";if(me.options.onInitialDrawComplete){setTimeout(function(){return me.options.onInitialDrawComplete()},0)}}});if(options){this.setOptions(options)}if(groups){this.setGroups(groups)}if(items){this.setItems(items)}this._redraw()}Timeline.prototype=new Core;Timeline.prototype._createConfigurator=function(){return new Configurator(this,this.dom.container,configureOptions)};Timeline.prototype.redraw=function(){this.itemSet&&this.itemSet.markDirty({refreshItems:true});this._redraw()};Timeline.prototype.setOptions=function(options){var errorFound=Validator.validate(options,allOptions);if(errorFound===true){console.log(\"%cErrors have been found in the supplied options object.\",printStyle)}Core.prototype.setOptions.call(this,options);if(\"type\"in options){if(options.type!==this.options.type){this.options.type=options.type;var itemsData=this.itemsData;if(itemsData){var selection=this.getSelection();this.setItems(null);this.setItems(itemsData);this.setSelection(selection)}}}};Timeline.prototype.setItems=function(items){var newDataSet;if(!items){newDataSet=null}else if(items instanceof DataSet||items instanceof DataView){newDataSet=items}else{newDataSet=new DataSet(items,{type:{start:\"Date\",end:\"Date\"}})}this.itemsData=newDataSet;this.itemSet&&this.itemSet.setItems(newDataSet)};Timeline.prototype.setGroups=function(groups){var newDataSet;if(!groups){newDataSet=null}else{var filter=function filter(group){return group.visible!==false};if(groups instanceof DataSet||groups instanceof DataView){newDataSet=new DataView(groups,{filter:filter})}else{newDataSet=new DataSet(groups.filter(filter))}}this.groupsData=newDataSet;this.itemSet.setGroups(newDataSet)};Timeline.prototype.setData=function(data){if(data&&data.groups){this.setGroups(data.groups)}if(data&&data.items){this.setItems(data.items)}};Timeline.prototype.setSelection=function(ids,options){this.itemSet&&this.itemSet.setSelection(ids);if(options&&options.focus){this.focus(ids,options)}};Timeline.prototype.getSelection=function(){return this.itemSet&&this.itemSet.getSelection()||[]};Timeline.prototype.focus=function(id,options){if(!this.itemsData||id==undefined)return;var ids=Array.isArray(id)?id:[id];var itemsData=this.itemsData.getDataSet().get(ids,{type:{start:\"Date\",end:\"Date\"}});var start=null;var end=null;itemsData.forEach(function(itemData){var s=itemData.start.valueOf();var e=\"end\"in itemData?itemData.end.valueOf():itemData.start.valueOf();if(start===null||s<start){start=s}if(end===null||e>end){end=e}});if(start!==null&&end!==null){var me=this;var item=this.itemSet.items[ids[0]];var startPos=this._getScrollTop()*-1;var initialVerticalScroll=null;var verticalAnimationFrame=function verticalAnimationFrame(ease,willDraw,done){var verticalScroll=getItemVerticalScroll(me,item);if(!initialVerticalScroll){initialVerticalScroll=verticalScroll}if(initialVerticalScroll.itemTop==verticalScroll.itemTop&&!initialVerticalScroll.shouldScroll){return}else if(initialVerticalScroll.itemTop!=verticalScroll.itemTop&&verticalScroll.shouldScroll){initialVerticalScroll=verticalScroll;startPos=me._getScrollTop()*-1}var from=startPos;var to=initialVerticalScroll.scrollOffset;var scrollTop=done?to:from+(to-from)*ease;me._setScrollTop(-scrollTop);if(!willDraw){me._redraw()}};var setFinalVerticalPosition=function setFinalVerticalPosition(){var finalVerticalScroll=getItemVerticalScroll(me,item);if(finalVerticalScroll.shouldScroll&&finalVerticalScroll.itemTop!=initialVerticalScroll.itemTop){me._setScrollTop(-finalVerticalScroll.scrollOffset);me._redraw()}};var finalVerticalCallback=function finalVerticalCallback(){setFinalVerticalPosition();setTimeout(setFinalVerticalPosition,100)};var middle=(start+end)/2;var interval=Math.max(this.range.end-this.range.start,(end-start)*1.1);var animation=options&&options.animation!==undefined?options.animation:true;if(!animation){initialVerticalScroll={shouldScroll:false,scrollOffset:-1,itemTop:-1}}this.range.setRange(middle-interval/2,middle+interval/2,{animation:animation},finalVerticalCallback,verticalAnimationFrame)}};Timeline.prototype.fit=function(options,callback){var animation=options&&options.animation!==undefined?options.animation:true;var range;var dataset=this.itemsData&&this.itemsData.getDataSet();if(dataset.length===1&&dataset.get()[0].end===undefined){range=this.getDataRange();this.moveTo(range.min.valueOf(),{animation:animation},callback)}else{range=this.getItemRange();this.range.setRange(range.min,range.max,{animation:animation},callback)}};function getStart(item){return util.convert(item.data.start,\"Date\").valueOf()}function getEnd(item){var end=item.data.end!=undefined?item.data.end:item.data.start;return util.convert(end,\"Date\").valueOf()}function getItemVerticalScroll(timeline,item){var leftHeight=timeline.props.leftContainer.height;var contentHeight=timeline.props.left.height;var group=item.parent;var offset=group.top;var shouldScroll=true;var orientation=timeline.timeAxis.options.orientation.axis;var itemTop=function itemTop(){if(orientation==\"bottom\"){return group.height-item.top-item.height}else{return item.top}};var currentScrollHeight=timeline._getScrollTop()*-1;var targetOffset=offset+itemTop();var height=item.height;if(targetOffset<currentScrollHeight){if(offset+leftHeight<=offset+itemTop()+height){offset+=itemTop()-timeline.itemSet.options.margin.item.vertical}}else if(targetOffset+height>currentScrollHeight+leftHeight){offset+=itemTop()+height-leftHeight+timeline.itemSet.options.margin.item.vertical}else{shouldScroll=false}offset=Math.min(offset,contentHeight-leftHeight);return{shouldScroll:shouldScroll,scrollOffset:offset,itemTop:targetOffset}}Timeline.prototype.getItemRange=function(){var range=this.getDataRange();var min=range.min!==null?range.min.valueOf():null;var max=range.max!==null?range.max.valueOf():null;var minItem=null;var maxItem=null;if(min!=null&&max!=null){var interval=max-min;if(interval<=0){interval=10}var factor=interval/this.props.center.width;var redrawQueue={};var redrawQueueLength=0;util.forEach(this.itemSet.items,function(item,key){if(item.groupShowing){var returnQueue=true;redrawQueue[key]=item.redraw(returnQueue);redrawQueueLength=redrawQueue[key].length}});var needRedraw=redrawQueueLength>0;if(needRedraw){for(var i=0;i<redrawQueueLength;i++){util.forEach(redrawQueue,function(fns){fns[i]()})}}util.forEach(this.itemSet.items,function(item){var start=getStart(item);var end=getEnd(item);var startSide;var endSide;if(this.options.rtl){startSide=start-(item.getWidthRight()+10)*factor;endSide=end+(item.getWidthLeft()+10)*factor}else{startSide=start-(item.getWidthLeft()+10)*factor;endSide=end+(item.getWidthRight()+10)*factor}if(startSide<min){min=startSide;minItem=item}if(endSide>max){max=endSide;maxItem=item}}.bind(this));if(minItem&&maxItem){var lhs=minItem.getWidthLeft()+10;var rhs=maxItem.getWidthRight()+10;var delta=this.props.center.width-lhs-rhs;if(delta>0){if(this.options.rtl){min=getStart(minItem)-rhs*interval/delta;max=getEnd(maxItem)+lhs*interval/delta}else{min=getStart(minItem)-lhs*interval/delta;max=getEnd(maxItem)+rhs*interval/delta}}}}return{min:min!=null?new Date(min):null,max:max!=null?new Date(max):null}};Timeline.prototype.getDataRange=function(){var min=null;var max=null;var dataset=this.itemsData&&this.itemsData.getDataSet();if(dataset){dataset.forEach(function(item){var start=util.convert(item.start,\"Date\").valueOf();var end=util.convert(item.end!=undefined?item.end:item.start,\"Date\").valueOf();if(min===null||start<min){min=start}if(max===null||end>max){max=end}})}return{min:min!=null?new Date(min):null,max:max!=null?new Date(max):null}};Timeline.prototype.getEventProperties=function(event){var clientX=event.center?event.center.x:event.clientX;var clientY=event.center?event.center.y:event.clientY;var x;if(this.options.rtl){x=util.getAbsoluteRight(this.dom.centerContainer)-clientX}else{x=clientX-util.getAbsoluteLeft(this.dom.centerContainer)}var y=clientY-util.getAbsoluteTop(this.dom.centerContainer);var item=this.itemSet.itemFromTarget(event);var group=this.itemSet.groupFromTarget(event);var customTime=CustomTime.customTimeFromTarget(event);var snap=this.itemSet.options.snap||null;var scale=this.body.util.getScale();var step=this.body.util.getStep();var time=this._toTime(x);var snappedTime=snap?snap(time,scale,step):time;var element=util.getTarget(event);var what=null;if(item!=null){what=\"item\"}else if(customTime!=null){what=\"custom-time\"}else if(util.hasParent(element,this.timeAxis.dom.foreground)){what=\"axis\"}else if(this.timeAxis2&&util.hasParent(element,this.timeAxis2.dom.foreground)){what=\"axis\"}else if(util.hasParent(element,this.itemSet.dom.labelSet)){what=\"group-label\"}else if(util.hasParent(element,this.currentTime.bar)){what=\"current-time\"}else if(util.hasParent(element,this.dom.center)){what=\"background\"}return{event:event,item:item?item.id:null,group:group?group.groupId:null,what:what,pageX:event.srcEvent?event.srcEvent.pageX:event.pageX,pageY:event.srcEvent?event.srcEvent.pageY:event.pageY,x:x,y:y,time:time,snappedTime:snappedTime}};Timeline.prototype.toggleRollingMode=function(){if(this.range.rolling){this.range.stopRolling()}else{if(this.options.rollingMode==undefined){this.setOptions(this.options)}this.range.startRolling()}};module.exports=Timeline},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Hammer=__webpack_require__(10);var hammerUtil=__webpack_require__(37);var util=__webpack_require__(2);var ColorPicker=function(){function ColorPicker(){var pixelRatio=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;(0,_classCallCheck3[\"default\"])(this,ColorPicker);this.pixelRatio=pixelRatio;this.generated=false;this.centerCoordinates={x:289/2,y:289/2};this.r=289*.49;this.color={r:255,g:255,b:255,a:1};this.hueCircle=undefined;this.initialColor={r:255,g:255,b:255,a:1};this.previousColor=undefined;this.applied=false;this.updateCallback=function(){};this.closeCallback=function(){};this._create()}(0,_createClass3[\"default\"])(ColorPicker,[{key:\"insertTo\",value:function insertTo(container){if(this.hammer!==undefined){this.hammer.destroy();this.hammer=undefined}this.container=container;this.container.appendChild(this.frame);this._bindHammer();this._setSize()}},{key:\"setUpdateCallback\",value:function setUpdateCallback(callback){if(typeof callback===\"function\"){this.updateCallback=callback}else{throw new Error(\"Function attempted to set as colorPicker update callback is not a function.\")}}},{key:\"setCloseCallback\",value:function setCloseCallback(callback){if(typeof callback===\"function\"){this.closeCallback=callback}else{throw new Error(\"Function attempted to set as colorPicker closing callback is not a function.\")}}},{key:\"_isColorString\",value:function _isColorString(color){var htmlColors={black:\"#000000\",navy:\"#000080\",darkblue:\"#00008B\",mediumblue:\"#0000CD\",blue:\"#0000FF\",darkgreen:\"#006400\",green:\"#008000\",teal:\"#008080\",darkcyan:\"#008B8B\",deepskyblue:\"#00BFFF\",darkturquoise:\"#00CED1\",mediumspringgreen:\"#00FA9A\",lime:\"#00FF00\",springgreen:\"#00FF7F\",aqua:\"#00FFFF\",cyan:\"#00FFFF\",midnightblue:\"#191970\",dodgerblue:\"#1E90FF\",lightseagreen:\"#20B2AA\",forestgreen:\"#228B22\",seagreen:\"#2E8B57\",darkslategray:\"#2F4F4F\",limegreen:\"#32CD32\",mediumseagreen:\"#3CB371\",turquoise:\"#40E0D0\",royalblue:\"#4169E1\",steelblue:\"#4682B4\",darkslateblue:\"#483D8B\",mediumturquoise:\"#48D1CC\",indigo:\"#4B0082\",darkolivegreen:\"#556B2F\",cadetblue:\"#5F9EA0\",cornflowerblue:\"#6495ED\",mediumaquamarine:\"#66CDAA\",dimgray:\"#696969\",slateblue:\"#6A5ACD\",olivedrab:\"#6B8E23\",slategray:\"#708090\",lightslategray:\"#778899\",mediumslateblue:\"#7B68EE\",lawngreen:\"#7CFC00\",chartreuse:\"#7FFF00\",aquamarine:\"#7FFFD4\",maroon:\"#800000\",purple:\"#800080\",olive:\"#808000\",gray:\"#808080\",skyblue:\"#87CEEB\",lightskyblue:\"#87CEFA\",blueviolet:\"#8A2BE2\",darkred:\"#8B0000\",darkmagenta:\"#8B008B\",saddlebrown:\"#8B4513\",darkseagreen:\"#8FBC8F\",lightgreen:\"#90EE90\",mediumpurple:\"#9370D8\",darkviolet:\"#9400D3\",palegreen:\"#98FB98\",darkorchid:\"#9932CC\",yellowgreen:\"#9ACD32\",sienna:\"#A0522D\",brown:\"#A52A2A\",darkgray:\"#A9A9A9\",lightblue:\"#ADD8E6\",greenyellow:\"#ADFF2F\",paleturquoise:\"#AFEEEE\",lightsteelblue:\"#B0C4DE\",powderblue:\"#B0E0E6\",firebrick:\"#B22222\",darkgoldenrod:\"#B8860B\",mediumorchid:\"#BA55D3\",rosybrown:\"#BC8F8F\",darkkhaki:\"#BDB76B\",silver:\"#C0C0C0\",mediumvioletred:\"#C71585\",indianred:\"#CD5C5C\",peru:\"#CD853F\",chocolate:\"#D2691E\",tan:\"#D2B48C\",lightgrey:\"#D3D3D3\",palevioletred:\"#D87093\",thistle:\"#D8BFD8\",orchid:\"#DA70D6\",goldenrod:\"#DAA520\",crimson:\"#DC143C\",gainsboro:\"#DCDCDC\",plum:\"#DDA0DD\",burlywood:\"#DEB887\",lightcyan:\"#E0FFFF\",lavender:\"#E6E6FA\",darksalmon:\"#E9967A\",violet:\"#EE82EE\",palegoldenrod:\"#EEE8AA\",lightcoral:\"#F08080\",khaki:\"#F0E68C\",aliceblue:\"#F0F8FF\",honeydew:\"#F0FFF0\",azure:\"#F0FFFF\",sandybrown:\"#F4A460\",wheat:\"#F5DEB3\",beige:\"#F5F5DC\",whitesmoke:\"#F5F5F5\",mintcream:\"#F5FFFA\",ghostwhite:\"#F8F8FF\",salmon:\"#FA8072\",antiquewhite:\"#FAEBD7\",linen:\"#FAF0E6\",lightgoldenrodyellow:\"#FAFAD2\",oldlace:\"#FDF5E6\",red:\"#FF0000\",fuchsia:\"#FF00FF\",magenta:\"#FF00FF\",deeppink:\"#FF1493\",orangered:\"#FF4500\",tomato:\"#FF6347\",hotpink:\"#FF69B4\",coral:\"#FF7F50\",darkorange:\"#FF8C00\",lightsalmon:\"#FFA07A\",orange:\"#FFA500\",lightpink:\"#FFB6C1\",pink:\"#FFC0CB\",gold:\"#FFD700\",peachpuff:\"#FFDAB9\",navajowhite:\"#FFDEAD\",moccasin:\"#FFE4B5\",bisque:\"#FFE4C4\",mistyrose:\"#FFE4E1\",blanchedalmond:\"#FFEBCD\",papayawhip:\"#FFEFD5\",lavenderblush:\"#FFF0F5\",seashell:\"#FFF5EE\",cornsilk:\"#FFF8DC\",lemonchiffon:\"#FFFACD\",floralwhite:\"#FFFAF0\",snow:\"#FFFAFA\",yellow:\"#FFFF00\",lightyellow:\"#FFFFE0\",ivory:\"#FFFFF0\",white:\"#FFFFFF\"};if(typeof color===\"string\"){return htmlColors[color]}}},{key:\"setColor\",value:function setColor(color){var setInitial=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(color===\"none\"){return}var rgba=void 0;var htmlColor=this._isColorString(color);if(htmlColor!==undefined){color=htmlColor}if(util.isString(color)===true){if(util.isValidRGB(color)===true){var rgbaArray=color.substr(4).substr(0,color.length-5).split(\",\");rgba={r:rgbaArray[0],g:rgbaArray[1],b:rgbaArray[2],a:1}}else if(util.isValidRGBA(color)===true){var _rgbaArray=color.substr(5).substr(0,color.length-6).split(\",\");rgba={r:_rgbaArray[0],g:_rgbaArray[1],b:_rgbaArray[2],a:_rgbaArray[3]}}else if(util.isValidHex(color)===true){var rgbObj=util.hexToRGB(color);rgba={r:rgbObj.r,g:rgbObj.g,b:rgbObj.b,a:1}}}else{if(color instanceof Object){if(color.r!==undefined&&color.g!==undefined&&color.b!==undefined){var alpha=color.a!==undefined?color.a:\"1.0\";rgba={r:color.r,g:color.g,b:color.b,a:alpha}}}}if(rgba===undefined){throw new Error(\"Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: \"+(0,_stringify2[\"default\"])(color))}else{this._setColor(rgba,setInitial)}}},{key:\"show\",value:function show(){if(this.closeCallback!==undefined){this.closeCallback();this.closeCallback=undefined}this.applied=false;this.frame.style.display=\"block\";this._generateHueCircle()}},{key:\"_hide\",value:function _hide(){var _this=this;var storePrevious=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;if(storePrevious===true){this.previousColor=util.extend({},this.color)}if(this.applied===true){this.updateCallback(this.initialColor)}this.frame.style.display=\"none\";setTimeout(function(){if(_this.closeCallback!==undefined){_this.closeCallback();_this.closeCallback=undefined}},0)}},{key:\"_save\",value:function _save(){this.updateCallback(this.color);this.applied=false;this._hide()}},{key:\"_apply\",value:function _apply(){this.applied=true;this.updateCallback(this.color);this._updatePicker(this.color)}},{key:\"_loadLast\",value:function _loadLast(){if(this.previousColor!==undefined){this.setColor(this.previousColor,false)}else{alert(\"There is no last color to load...\")}}},{key:\"_setColor\",value:function _setColor(rgba){var setInitial=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(setInitial===true){this.initialColor=util.extend({},rgba)}this.color=rgba;var hsv=util.RGBToHSV(rgba.r,rgba.g,rgba.b);var angleConvert=2*Math.PI;var radius=this.r*hsv.s;var x=this.centerCoordinates.x+radius*Math.sin(angleConvert*hsv.h);var y=this.centerCoordinates.y+radius*Math.cos(angleConvert*hsv.h);this.colorPickerSelector.style.left=x-.5*this.colorPickerSelector.clientWidth+\"px\";this.colorPickerSelector.style.top=y-.5*this.colorPickerSelector.clientHeight+\"px\";this._updatePicker(rgba)}},{key:\"_setOpacity\",value:function _setOpacity(value){this.color.a=value/100;this._updatePicker(this.color)}},{key:\"_setBrightness\",value:function _setBrightness(value){var hsv=util.RGBToHSV(this.color.r,this.color.g,this.color.b);hsv.v=value/100;var rgba=util.HSVToRGB(hsv.h,hsv.s,hsv.v);rgba[\"a\"]=this.color.a;this.color=rgba;this._updatePicker()}},{key:\"_updatePicker\",value:function _updatePicker(){var rgba=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.color;var hsv=util.RGBToHSV(rgba.r,rgba.g,rgba.b);var ctx=this.colorPickerCanvas.getContext(\"2d\");if(this.pixelRation===undefined){this.pixelRatio=(window.devicePixelRatio||1)/(ctx.webkitBackingStorePixelRatio||ctx.mozBackingStorePixelRatio||ctx.msBackingStorePixelRatio||ctx.oBackingStorePixelRatio||ctx.backingStorePixelRatio||1)}ctx.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var w=this.colorPickerCanvas.clientWidth;var h=this.colorPickerCanvas.clientHeight;ctx.clearRect(0,0,w,h);ctx.putImageData(this.hueCircle,0,0);ctx.fillStyle=\"rgba(0,0,0,\"+(1-hsv.v)+\")\";ctx.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r);ctx.fill();this.brightnessRange.value=100*hsv.v;this.opacityRange.value=100*rgba.a;this.initialColorDiv.style.backgroundColor=\"rgba(\"+this.initialColor.r+\",\"+this.initialColor.g+\",\"+this.initialColor.b+\",\"+this.initialColor.a+\")\";this.newColorDiv.style.backgroundColor=\"rgba(\"+this.color.r+\",\"+this.color.g+\",\"+this.color.b+\",\"+this.color.a+\")\"}},{key:\"_setSize\",value:function _setSize(){this.colorPickerCanvas.style.width=\"100%\";this.colorPickerCanvas.style.height=\"100%\";this.colorPickerCanvas.width=289*this.pixelRatio;this.colorPickerCanvas.height=289*this.pixelRatio}},{key:\"_create\",value:function _create(){this.frame=document.createElement(\"div\");this.frame.className=\"vis-color-picker\";this.colorPickerDiv=document.createElement(\"div\");this.colorPickerSelector=document.createElement(\"div\");this.colorPickerSelector.className=\"vis-selector\";this.colorPickerDiv.appendChild(this.colorPickerSelector);this.colorPickerCanvas=document.createElement(\"canvas\");this.colorPickerDiv.appendChild(this.colorPickerCanvas);if(!this.colorPickerCanvas.getContext){var noCanvas=document.createElement(\"DIV\");noCanvas.style.color=\"red\";noCanvas.style.fontWeight=\"bold\";noCanvas.style.padding=\"10px\";noCanvas.innerHTML=\"Error: your browser does not support HTML canvas\";this.colorPickerCanvas.appendChild(noCanvas)}else{var ctx=this.colorPickerCanvas.getContext(\"2d\");this.pixelRatio=(window.devicePixelRatio||1)/(ctx.webkitBackingStorePixelRatio||ctx.mozBackingStorePixelRatio||ctx.msBackingStorePixelRatio||ctx.oBackingStorePixelRatio||ctx.backingStorePixelRatio||1);this.colorPickerCanvas.getContext(\"2d\").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}this.colorPickerDiv.className=\"vis-color\";this.opacityDiv=document.createElement(\"div\");this.opacityDiv.className=\"vis-opacity\";this.brightnessDiv=document.createElement(\"div\");this.brightnessDiv.className=\"vis-brightness\";this.arrowDiv=document.createElement(\"div\");this.arrowDiv.className=\"vis-arrow\";this.opacityRange=document.createElement(\"input\");try{this.opacityRange.type=\"range\";this.opacityRange.min=\"0\";this.opacityRange.max=\"100\"}catch(err){}this.opacityRange.value=\"100\";this.opacityRange.className=\"vis-range\";this.brightnessRange=document.createElement(\"input\");try{this.brightnessRange.type=\"range\";this.brightnessRange.min=\"0\";this.brightnessRange.max=\"100\"}catch(err){}this.brightnessRange.value=\"100\";this.brightnessRange.className=\"vis-range\";this.opacityDiv.appendChild(this.opacityRange);this.brightnessDiv.appendChild(this.brightnessRange);var me=this;this.opacityRange.onchange=function(){me._setOpacity(this.value)};this.opacityRange.oninput=function(){me._setOpacity(this.value)};this.brightnessRange.onchange=function(){me._setBrightness(this.value)};this.brightnessRange.oninput=function(){me._setBrightness(this.value)};this.brightnessLabel=document.createElement(\"div\");this.brightnessLabel.className=\"vis-label vis-brightness\";this.brightnessLabel.innerHTML=\"brightness:\";this.opacityLabel=document.createElement(\"div\");this.opacityLabel.className=\"vis-label vis-opacity\";this.opacityLabel.innerHTML=\"opacity:\";this.newColorDiv=document.createElement(\"div\");this.newColorDiv.className=\"vis-new-color\";this.newColorDiv.innerHTML=\"new\";this.initialColorDiv=document.createElement(\"div\");this.initialColorDiv.className=\"vis-initial-color\";this.initialColorDiv.innerHTML=\"initial\";this.cancelButton=document.createElement(\"div\");this.cancelButton.className=\"vis-button vis-cancel\";this.cancelButton.innerHTML=\"cancel\";this.cancelButton.onclick=this._hide.bind(this,false);this.applyButton=document.createElement(\"div\");this.applyButton.className=\"vis-button vis-apply\";this.applyButton.innerHTML=\"apply\";this.applyButton.onclick=this._apply.bind(this);this.saveButton=document.createElement(\"div\");this.saveButton.className=\"vis-button vis-save\";this.saveButton.innerHTML=\"save\";this.saveButton.onclick=this._save.bind(this);this.loadButton=document.createElement(\"div\");this.loadButton.className=\"vis-button vis-load\";this.loadButton.innerHTML=\"load last\";this.loadButton.onclick=this._loadLast.bind(this)\n;this.frame.appendChild(this.colorPickerDiv);this.frame.appendChild(this.arrowDiv);this.frame.appendChild(this.brightnessLabel);this.frame.appendChild(this.brightnessDiv);this.frame.appendChild(this.opacityLabel);this.frame.appendChild(this.opacityDiv);this.frame.appendChild(this.newColorDiv);this.frame.appendChild(this.initialColorDiv);this.frame.appendChild(this.cancelButton);this.frame.appendChild(this.applyButton);this.frame.appendChild(this.saveButton);this.frame.appendChild(this.loadButton)}},{key:\"_bindHammer\",value:function _bindHammer(){var _this2=this;this.drag={};this.pinch={};this.hammer=new Hammer(this.colorPickerCanvas);this.hammer.get(\"pinch\").set({enable:true});hammerUtil.onTouch(this.hammer,function(event){_this2._moveSelector(event)});this.hammer.on(\"tap\",function(event){_this2._moveSelector(event)});this.hammer.on(\"panstart\",function(event){_this2._moveSelector(event)});this.hammer.on(\"panmove\",function(event){_this2._moveSelector(event)});this.hammer.on(\"panend\",function(event){_this2._moveSelector(event)})}},{key:\"_generateHueCircle\",value:function _generateHueCircle(){if(this.generated===false){var ctx=this.colorPickerCanvas.getContext(\"2d\");if(this.pixelRation===undefined){this.pixelRatio=(window.devicePixelRatio||1)/(ctx.webkitBackingStorePixelRatio||ctx.mozBackingStorePixelRatio||ctx.msBackingStorePixelRatio||ctx.oBackingStorePixelRatio||ctx.backingStorePixelRatio||1)}ctx.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var w=this.colorPickerCanvas.clientWidth;var h=this.colorPickerCanvas.clientHeight;ctx.clearRect(0,0,w,h);var x=void 0,y=void 0,hue=void 0,sat=void 0;this.centerCoordinates={x:w*.5,y:h*.5};this.r=.49*w;var angleConvert=2*Math.PI/360;var hfac=1/360;var sfac=1/this.r;var rgb=void 0;for(hue=0;hue<360;hue++){for(sat=0;sat<this.r;sat++){x=this.centerCoordinates.x+sat*Math.sin(angleConvert*hue);y=this.centerCoordinates.y+sat*Math.cos(angleConvert*hue);rgb=util.HSVToRGB(hue*hfac,sat*sfac,1);ctx.fillStyle=\"rgb(\"+rgb.r+\",\"+rgb.g+\",\"+rgb.b+\")\";ctx.fillRect(x-.5,y-.5,2,2)}}ctx.strokeStyle=\"rgba(0,0,0,1)\";ctx.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r);ctx.stroke();this.hueCircle=ctx.getImageData(0,0,w,h)}this.generated=true}},{key:\"_moveSelector\",value:function _moveSelector(event){var rect=this.colorPickerDiv.getBoundingClientRect();var left=event.center.x-rect.left;var top=event.center.y-rect.top;var centerY=.5*this.colorPickerDiv.clientHeight;var centerX=.5*this.colorPickerDiv.clientWidth;var x=left-centerX;var y=top-centerY;var angle=Math.atan2(x,y);var radius=.98*Math.min(Math.sqrt(x*x+y*y),centerX);var newTop=Math.cos(angle)*radius+centerY;var newLeft=Math.sin(angle)*radius+centerX;this.colorPickerSelector.style.top=newTop-.5*this.colorPickerSelector.clientHeight+\"px\";this.colorPickerSelector.style.left=newLeft-.5*this.colorPickerSelector.clientWidth+\"px\";var h=angle/(2*Math.PI);h=h<0?h+1:h;var s=radius/this.r;var hsv=util.RGBToHSV(this.color.r,this.color.g,this.color.b);hsv.h=h;hsv.s=s;var rgba=util.HSVToRGB(hsv.h,hsv.s,hsv.v);rgba[\"a\"]=this.color.a;this.color=rgba;this.initialColorDiv.style.backgroundColor=\"rgba(\"+this.initialColor.r+\",\"+this.initialColor.g+\",\"+this.initialColor.b+\",\"+this.initialColor.a+\")\";this.newColorDiv.style.backgroundColor=\"rgba(\"+this.color.r+\",\"+this.color.g+\",\"+this.color.b+\",\"+this.color.a+\")\"}}]);return ColorPicker}();exports[\"default\"]=ColorPicker},function(module,exports,__webpack_require__){\"use strict\";var moment=__webpack_require__(9);var util=__webpack_require__(2);var DataSet=__webpack_require__(11);var DataView=__webpack_require__(12);var Range=__webpack_require__(64);var Core=__webpack_require__(65);var TimeAxis=__webpack_require__(45);var CurrentTime=__webpack_require__(67);var CustomTime=__webpack_require__(46);var LineGraph=__webpack_require__(106);var printStyle=__webpack_require__(15).printStyle;var allOptions=__webpack_require__(113).allOptions;var configureOptions=__webpack_require__(113).configureOptions;var Configurator=__webpack_require__(71)[\"default\"];var Validator=__webpack_require__(15)[\"default\"];function Graph2d(container,items,groups,options){if(!(Array.isArray(groups)||groups instanceof DataSet||groups instanceof DataView)&&groups instanceof Object){var forthArgument=options;options=groups;groups=forthArgument}if(options&&options.throttleRedraw){console.warn('Graph2d option \"throttleRedraw\" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.')}var me=this;this.defaultOptions={start:null,end:null,autoResize:true,orientation:{axis:\"bottom\",item:\"bottom\"},moment:moment,width:null,height:null,maxHeight:null,minHeight:null};this.options=util.deepExtend({},this.defaultOptions);this._create(container);this.components=[];this.body={dom:this.dom,domProps:this.props,emitter:{on:this.on.bind(this),off:this.off.bind(this),emit:this.emit.bind(this)},hiddenDates:[],util:{toScreen:me._toScreen.bind(me),toGlobalScreen:me._toGlobalScreen.bind(me),toTime:me._toTime.bind(me),toGlobalTime:me._toGlobalTime.bind(me)}};this.range=new Range(this.body);this.components.push(this.range);this.body.range=this.range;this.timeAxis=new TimeAxis(this.body);this.components.push(this.timeAxis);this.currentTime=new CurrentTime(this.body);this.components.push(this.currentTime);this.linegraph=new LineGraph(this.body);this.components.push(this.linegraph);this.itemsData=null;this.groupsData=null;this.on(\"tap\",function(event){me.emit(\"click\",me.getEventProperties(event))});this.on(\"doubletap\",function(event){me.emit(\"doubleClick\",me.getEventProperties(event))});this.dom.root.oncontextmenu=function(event){me.emit(\"contextmenu\",me.getEventProperties(event))};if(options){this.setOptions(options)}if(groups){this.setGroups(groups)}if(items){this.setItems(items)}this._redraw()}Graph2d.prototype=new Core;Graph2d.prototype.setOptions=function(options){var errorFound=Validator.validate(options,allOptions);if(errorFound===true){console.log(\"%cErrors have been found in the supplied options object.\",printStyle)}Core.prototype.setOptions.call(this,options)};Graph2d.prototype.setItems=function(items){var initialLoad=this.itemsData==null;var newDataSet;if(!items){newDataSet=null}else if(items instanceof DataSet||items instanceof DataView){newDataSet=items}else{newDataSet=new DataSet(items,{type:{start:\"Date\",end:\"Date\"}})}this.itemsData=newDataSet;this.linegraph&&this.linegraph.setItems(newDataSet);if(initialLoad){if(this.options.start!=undefined||this.options.end!=undefined){var start=this.options.start!=undefined?this.options.start:null;var end=this.options.end!=undefined?this.options.end:null;this.setWindow(start,end,{animation:false})}else{this.fit({animation:false})}}};Graph2d.prototype.setGroups=function(groups){var newDataSet;if(!groups){newDataSet=null}else if(groups instanceof DataSet||groups instanceof DataView){newDataSet=groups}else{newDataSet=new DataSet(groups)}this.groupsData=newDataSet;this.linegraph.setGroups(newDataSet)};Graph2d.prototype.getLegend=function(groupId,width,height){if(width===undefined){width=15}if(height===undefined){height=15}if(this.linegraph.groups[groupId]!==undefined){return this.linegraph.groups[groupId].getLegend(width,height)}else{return\"cannot find group:'\"+groupId+\"'\"}};Graph2d.prototype.isGroupVisible=function(groupId){if(this.linegraph.groups[groupId]!==undefined){return this.linegraph.groups[groupId].visible&&(this.linegraph.options.groups.visibility[groupId]===undefined||this.linegraph.options.groups.visibility[groupId]==true)}else{return false}};Graph2d.prototype.getDataRange=function(){var min=null;var max=null;for(var groupId in this.linegraph.groups){if(this.linegraph.groups.hasOwnProperty(groupId)){if(this.linegraph.groups[groupId].visible==true){for(var i=0;i<this.linegraph.groups[groupId].itemsData.length;i++){var item=this.linegraph.groups[groupId].itemsData[i];var value=util.convert(item.x,\"Date\").valueOf();min=min==null?value:min>value?value:min;max=max==null?value:max<value?value:max}}}}return{min:min!=null?new Date(min):null,max:max!=null?new Date(max):null}};Graph2d.prototype.getEventProperties=function(event){var clientX=event.center?event.center.x:event.clientX;var clientY=event.center?event.center.y:event.clientY;var x=clientX-util.getAbsoluteLeft(this.dom.centerContainer);var y=clientY-util.getAbsoluteTop(this.dom.centerContainer);var time=this._toTime(x);var customTime=CustomTime.customTimeFromTarget(event);var element=util.getTarget(event);var what=null;if(util.hasParent(element,this.timeAxis.dom.foreground)){what=\"axis\"}else if(this.timeAxis2&&util.hasParent(element,this.timeAxis2.dom.foreground)){what=\"axis\"}else if(util.hasParent(element,this.linegraph.yAxisLeft.dom.frame)){what=\"data-axis\"}else if(util.hasParent(element,this.linegraph.yAxisRight.dom.frame)){what=\"data-axis\"}else if(util.hasParent(element,this.linegraph.legendLeft.dom.frame)){what=\"legend\"}else if(util.hasParent(element,this.linegraph.legendRight.dom.frame)){what=\"legend\"}else if(customTime!=null){what=\"custom-time\"}else if(util.hasParent(element,this.currentTime.bar)){what=\"current-time\"}else if(util.hasParent(element,this.dom.center)){what=\"background\"}var value=[];var yAxisLeft=this.linegraph.yAxisLeft;var yAxisRight=this.linegraph.yAxisRight;if(!yAxisLeft.hidden&&this.itemsData.length>0){value.push(yAxisLeft.screenToValue(y))}if(!yAxisRight.hidden&&this.itemsData.length>0){value.push(yAxisRight.screenToValue(y))}return{event:event,what:what,pageX:event.srcEvent?event.srcEvent.pageX:event.pageX,pageY:event.srcEvent?event.srcEvent.pageY:event.pageY,x:x,y:y,time:time,value:value}};Graph2d.prototype._createConfigurator=function(){return new Configurator(this,this.dom.container,configureOptions)};module.exports=Graph2d},function(module,exports,__webpack_require__){\"use strict\";exports.util=__webpack_require__(2);exports.DOMutil=__webpack_require__(14);exports.DataSet=__webpack_require__(11);exports.DataView=__webpack_require__(12);exports.Queue=__webpack_require__(43);exports.Network=__webpack_require__(182);exports.network={Images:__webpack_require__(116),dotparser:__webpack_require__(114),gephiParser:__webpack_require__(115),allOptions:__webpack_require__(122)};exports.network.convertDot=function(input){return exports.network.dotparser.DOTToGraph(input)};exports.network.convertGephi=function(input,options){return exports.network.gephiParser.parseGephi(input,options)};exports.moment=__webpack_require__(9);exports.Hammer=__webpack_require__(10);exports.keycharm=__webpack_require__(35)},function(module,exports,__webpack_require__){\"use strict\";__webpack_require__(183);var Emitter=__webpack_require__(44);var util=__webpack_require__(2);var dotparser=__webpack_require__(114);var gephiParser=__webpack_require__(115);var Activator=__webpack_require__(97);var locales=__webpack_require__(184);var Images=__webpack_require__(116)[\"default\"];var Groups=__webpack_require__(186)[\"default\"];var NodesHandler=__webpack_require__(187)[\"default\"];var EdgesHandler=__webpack_require__(214)[\"default\"];var PhysicsEngine=__webpack_require__(220)[\"default\"];var ClusterEngine=__webpack_require__(227)[\"default\"];var CanvasRenderer=__webpack_require__(229)[\"default\"];var Canvas=__webpack_require__(230)[\"default\"];var View=__webpack_require__(231)[\"default\"];var InteractionHandler=__webpack_require__(232)[\"default\"];var SelectionHandler=__webpack_require__(234)[\"default\"];var LayoutEngine=__webpack_require__(235)[\"default\"];var ManipulationSystem=__webpack_require__(237)[\"default\"];var Configurator=__webpack_require__(71)[\"default\"];var Validator=__webpack_require__(15)[\"default\"];var _require=__webpack_require__(15),printStyle=_require.printStyle;var _require2=__webpack_require__(122),allOptions=_require2.allOptions,configureOptions=_require2.configureOptions;var KamadaKawai=__webpack_require__(238)[\"default\"];function Network(container,data,options){var _this=this;if(!(this instanceof Network)){throw new SyntaxError(\"Constructor must be called with the new operator\")}this.options={};this.defaultOptions={locale:\"en\",locales:locales,clickToUse:false};util.extend(this.options,this.defaultOptions);this.body={container:container,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:this.on.bind(this),off:this.off.bind(this),emit:this.emit.bind(this),once:this.once.bind(this)},eventListeners:{onTap:function onTap(){},onTouch:function onTouch(){},onDoubleTap:function onDoubleTap(){},onHold:function onHold(){},onDragStart:function onDragStart(){},onDrag:function onDrag(){},onDragEnd:function onDragEnd(){},onMouseWheel:function onMouseWheel(){},onPinch:function onPinch(){},onMouseMove:function onMouseMove(){},onRelease:function onRelease(){},onContext:function onContext(){}},data:{nodes:null,edges:null},functions:{createNode:function createNode(){},createEdge:function createEdge(){},getPointer:function getPointer(){}},modules:{},view:{scale:1,translation:{x:0,y:0}}};this.bindEventListeners();this.images=new Images(function(){return _this.body.emitter.emit(\"_requestRedraw\")});this.groups=new Groups;this.canvas=new Canvas(this.body);this.selectionHandler=new SelectionHandler(this.body,this.canvas);this.interactionHandler=new InteractionHandler(this.body,this.canvas,this.selectionHandler);this.view=new View(this.body,this.canvas);this.renderer=new CanvasRenderer(this.body,this.canvas);this.physics=new PhysicsEngine(this.body);this.layoutEngine=new LayoutEngine(this.body);this.clustering=new ClusterEngine(this.body);this.manipulation=new ManipulationSystem(this.body,this.canvas,this.selectionHandler);this.nodesHandler=new NodesHandler(this.body,this.images,this.groups,this.layoutEngine);this.edgesHandler=new EdgesHandler(this.body,this.images,this.groups);this.body.modules[\"kamadaKawai\"]=new KamadaKawai(this.body,150,.05);this.body.modules[\"clustering\"]=this.clustering;this.canvas._create();this.setOptions(options);this.setData(data)}Emitter(Network.prototype);Network.prototype.setOptions=function(options){var _this2=this;if(options!==undefined){var errorFound=Validator.validate(options,allOptions);if(errorFound===true){console.log(\"%cErrors have been found in the supplied options object.\",printStyle)}var fields=[\"locale\",\"locales\",\"clickToUse\"];util.selectiveDeepExtend(fields,this.options,options);options=this.layoutEngine.setOptions(options.layout,options);this.canvas.setOptions(options);this.groups.setOptions(options.groups);this.nodesHandler.setOptions(options.nodes);this.edgesHandler.setOptions(options.edges);this.physics.setOptions(options.physics);this.manipulation.setOptions(options.manipulation,options,this.options);this.interactionHandler.setOptions(options.interaction);this.renderer.setOptions(options.interaction);this.selectionHandler.setOptions(options.interaction);if(options.groups!==undefined){this.body.emitter.emit(\"refreshNodes\")}if(\"configure\"in options){if(!this.configurator){this.configurator=new Configurator(this,this.body.container,configureOptions,this.canvas.pixelRatio)}this.configurator.setOptions(options.configure)}if(this.configurator&&this.configurator.options.enabled===true){var networkOptions={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};util.deepExtend(networkOptions.nodes,this.nodesHandler.options);util.deepExtend(networkOptions.edges,this.edgesHandler.options);util.deepExtend(networkOptions.layout,this.layoutEngine.options);util.deepExtend(networkOptions.interaction,this.selectionHandler.options);util.deepExtend(networkOptions.interaction,this.renderer.options);util.deepExtend(networkOptions.interaction,this.interactionHandler.options);util.deepExtend(networkOptions.manipulation,this.manipulation.options);util.deepExtend(networkOptions.physics,this.physics.options);util.deepExtend(networkOptions.global,this.canvas.options);util.deepExtend(networkOptions.global,this.options);this.configurator.setModuleOptions(networkOptions)}if(options.clickToUse!==undefined){if(options.clickToUse===true){if(this.activator===undefined){this.activator=new Activator(this.canvas.frame);this.activator.on(\"change\",function(){_this2.body.emitter.emit(\"activate\")})}}else{if(this.activator!==undefined){this.activator.destroy();delete this.activator}this.body.emitter.emit(\"activate\")}}else{this.body.emitter.emit(\"activate\")}this.canvas.setSize();this.body.emitter.emit(\"startSimulation\")}};Network.prototype._updateVisibleIndices=function(){var nodes=this.body.nodes;var edges=this.body.edges;this.body.nodeIndices=[];this.body.edgeIndices=[];for(var nodeId in nodes){if(nodes.hasOwnProperty(nodeId)){if(!this.clustering._isClusteredNode(nodeId)&&nodes[nodeId].options.hidden===false){this.body.nodeIndices.push(nodes[nodeId].id)}}}for(var edgeId in edges){if(edges.hasOwnProperty(edgeId)){var edge=edges[edgeId];var fromNode=nodes[edge.fromId];var toNode=nodes[edge.toId];var edgeNodesPresent=fromNode!==undefined&&toNode!==undefined;var isVisible=!this.clustering._isClusteredEdge(edgeId)&&edge.options.hidden===false&&edgeNodesPresent&&fromNode.options.hidden===false&&toNode.options.hidden===false;if(isVisible){this.body.edgeIndices.push(edge.id)}}}};Network.prototype.bindEventListeners=function(){var _this3=this;this.body.emitter.on(\"_dataChanged\",function(){_this3.edgesHandler._updateState();_this3.body.emitter.emit(\"_dataUpdated\")});this.body.emitter.on(\"_dataUpdated\",function(){_this3.clustering._updateState();_this3._updateVisibleIndices();_this3._updateValueRange(_this3.body.nodes);_this3._updateValueRange(_this3.body.edges);_this3.body.emitter.emit(\"startSimulation\");_this3.body.emitter.emit(\"_requestRedraw\")})};Network.prototype.setData=function(data){this.body.emitter.emit(\"resetPhysics\");this.body.emitter.emit(\"_resetData\");this.selectionHandler.unselectAll();if(data&&data.dot&&(data.nodes||data.edges)){throw new SyntaxError('Data must contain either parameter \"dot\" or '+' parameter pair \"nodes\" and \"edges\", but not both.')}this.setOptions(data&&data.options);if(data&&data.dot){console.log(\"The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);\");var dotData=dotparser.DOTToGraph(data.dot);this.setData(dotData);return}else if(data&&data.gephi){console.log(\"The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);\");var gephiData=gephiParser.parseGephi(data.gephi);this.setData(gephiData);return}else{this.nodesHandler.setData(data&&data.nodes,true);this.edgesHandler.setData(data&&data.edges,true)}this.body.emitter.emit(\"_dataChanged\");this.body.emitter.emit(\"_dataLoaded\");this.body.emitter.emit(\"initPhysics\")};Network.prototype.destroy=function(){this.body.emitter.emit(\"destroy\");this.body.emitter.off();this.off();delete this.groups;delete this.canvas;delete this.selectionHandler;delete this.interactionHandler;delete this.view;delete this.renderer;delete this.physics;delete this.layoutEngine;delete this.clustering;delete this.manipulation;delete this.nodesHandler;delete this.edgesHandler;delete this.configurator;delete this.images;for(var nodeId in this.body.nodes){if(!this.body.nodes.hasOwnProperty(nodeId))continue;delete this.body.nodes[nodeId]}for(var edgeId in this.body.edges){if(!this.body.edges.hasOwnProperty(edgeId))continue;delete this.body.edges[edgeId]}util.recursiveDOMDelete(this.body.container)};Network.prototype._updateValueRange=function(obj){var id;var valueMin=undefined;var valueMax=undefined;var valueTotal=0;for(id in obj){if(obj.hasOwnProperty(id)){var value=obj[id].getValue();if(value!==undefined){valueMin=valueMin===undefined?value:Math.min(value,valueMin);valueMax=valueMax===undefined?value:Math.max(value,valueMax);valueTotal+=value}}}if(valueMin!==undefined&&valueMax!==undefined){for(id in obj){if(obj.hasOwnProperty(id)){obj[id].setValueRange(valueMin,valueMax,valueTotal)}}}};Network.prototype.isActive=function(){return!this.activator||this.activator.active};Network.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};Network.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};Network.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};Network.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};Network.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};Network.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};Network.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};Network.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};Network.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};Network.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};Network.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};Network.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};Network.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};Network.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};Network.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};Network.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};Network.prototype.editNodeMode=function(){console.log(\"Deprecated: Please use editNode instead of editNodeMode.\");return this.manipulation.editNode.apply(this.manipulation,arguments)};Network.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};Network.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};Network.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};Network.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};Network.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};Network.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};Network.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};Network.prototype.getConnectedNodes=function(objectId){if(this.body.nodes[objectId]!==undefined){return this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments)}else{return this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)}};Network.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};Network.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};Network.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};Network.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};Network.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};Network.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};Network.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodes.apply(this.selectionHandler,arguments)};Network.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdges.apply(this.selectionHandler,arguments)};Network.prototype.getNodeAt=function(){var node=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);if(node!==undefined&&node.id!==undefined){return node.id}return node};Network.prototype.getEdgeAt=function(){var edge=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);if(edge!==undefined&&edge.id!==undefined){return edge.id}return edge};Network.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};Network.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};Network.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments);this.redraw()};Network.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};Network.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};Network.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};Network.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};Network.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};Network.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};Network.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};Network.prototype.getOptionsFromConfigurator=function(){var options={};if(this.configurator){options=this.configurator.getOptions.apply(this.configurator)}return options};module.exports=Network},function(module,exports,__webpack_require__){\"use strict\";if(typeof CanvasRenderingContext2D!==\"undefined\"){CanvasRenderingContext2D.prototype.circle=function(x,y,r){this.beginPath();this.arc(x,y,r,0,2*Math.PI,false);this.closePath()};CanvasRenderingContext2D.prototype.square=function(x,y,r){this.beginPath();this.rect(x-r,y-r,r*2,r*2);this.closePath()};CanvasRenderingContext2D.prototype.triangle=function(x,y,r){this.beginPath();r*=1.15;y+=.275*r;var s=r*2;var s2=s/2;var ir=Math.sqrt(3)/6*s;var h=Math.sqrt(s*s-s2*s2);this.moveTo(x,y-(h-ir));this.lineTo(x+s2,y+ir);this.lineTo(x-s2,y+ir);this.lineTo(x,y-(h-ir));this.closePath()};CanvasRenderingContext2D.prototype.triangleDown=function(x,y,r){this.beginPath();r*=1.15;y-=.275*r;var s=r*2;var s2=s/2;var ir=Math.sqrt(3)/6*s;var h=Math.sqrt(s*s-s2*s2);this.moveTo(x,y+(h-ir));this.lineTo(x+s2,y-ir);this.lineTo(x-s2,y-ir);this.lineTo(x,y+(h-ir));this.closePath()};CanvasRenderingContext2D.prototype.star=function(x,y,r){this.beginPath();r*=.82;y+=.1*r;for(var n=0;n<10;n++){var radius=n%2===0?r*1.3:r*.5;this.lineTo(x+radius*Math.sin(n*2*Math.PI/10),y-radius*Math.cos(n*2*Math.PI/10))}this.closePath()};CanvasRenderingContext2D.prototype.diamond=function(x,y,r){this.beginPath();this.lineTo(x,y+r);this.lineTo(x+r,y);this.lineTo(x,y-r);this.lineTo(x-r,y);this.closePath()};CanvasRenderingContext2D.prototype.roundRect=function(x,y,w,h,r){var r2d=Math.PI/180;if(w-2*r<0){r=w/2}if(h-2*r<0){r=h/2}this.beginPath();this.moveTo(x+r,y);this.lineTo(x+w-r,y);this.arc(x+w-r,y+r,r,r2d*270,r2d*360,false);this.lineTo(x+w,y+h-r);this.arc(x+w-r,y+h-r,r,0,r2d*90,false);this.lineTo(x+r,y+h);this.arc(x+r,y+h-r,r,r2d*90,r2d*180,false);this.lineTo(x,y+r);this.arc(x+r,y+r,r,r2d*180,r2d*270,false);this.closePath()};CanvasRenderingContext2D.prototype.ellipse_vis=function(x,y,w,h){var kappa=.5522848,ox=w/2*kappa,oy=h/2*kappa,xe=x+w,ye=y+h,xm=x+w/2,ym=y+h/2;this.beginPath();this.moveTo(x,ym);this.bezierCurveTo(x,ym-oy,xm-ox,y,xm,y);this.bezierCurveTo(xm+ox,y,xe,ym-oy,xe,ym);this.bezierCurveTo(xe,ym+oy,xm+ox,ye,xm,ye);this.bezierCurveTo(xm-ox,ye,x,ym+oy,x,ym);this.closePath()};CanvasRenderingContext2D.prototype.database=function(x,y,w,h){var f=1/3;var wEllipse=w;var hEllipse=h*f;var kappa=.5522848,ox=wEllipse/2*kappa,oy=hEllipse/2*kappa,xe=x+wEllipse,ye=y+hEllipse,xm=x+wEllipse/2,ym=y+hEllipse/2,ymb=y+(h-hEllipse/2),yeb=y+h;this.beginPath();this.moveTo(xe,ym);this.bezierCurveTo(xe,ym+oy,xm+ox,ye,xm,ye);this.bezierCurveTo(xm-ox,ye,x,ym+oy,x,ym);this.bezierCurveTo(x,ym-oy,xm-ox,y,xm,y);this.bezierCurveTo(xm+ox,y,xe,ym-oy,xe,ym);this.lineTo(xe,ymb);this.bezierCurveTo(xe,ymb+oy,xm+ox,yeb,xm,yeb);this.bezierCurveTo(xm-ox,yeb,x,ymb+oy,x,ymb);this.lineTo(x,ym)};CanvasRenderingContext2D.prototype.dashedLine=function(x,y,x2,y2,pattern){this.beginPath();this.moveTo(x,y);var patternLength=pattern.length;var dx=x2-x;var dy=y2-y;var slope=dy/dx;var distRemaining=Math.sqrt(dx*dx+dy*dy);var patternIndex=0;var draw=true;var xStep=0;var dashLength=pattern[0];while(distRemaining>=.1){dashLength=pattern[patternIndex++%patternLength];if(dashLength>distRemaining){dashLength=distRemaining}xStep=Math.sqrt(dashLength*dashLength/(1+slope*slope));xStep=dx<0?-xStep:xStep;x+=xStep;y+=slope*xStep;if(draw===true){this.lineTo(x,y)}else{this.moveTo(x,y)}distRemaining-=dashLength;draw=!draw}};CanvasRenderingContext2D.prototype.hexagon=function(x,y,r){this.beginPath();var sides=6;var a=Math.PI*2/sides;this.moveTo(x+r,y);for(var i=1;i<sides;i++){this.lineTo(x+r*Math.cos(a*i),y+r*Math.sin(a*i))}this.closePath()}}},function(module,exports,__webpack_require__){\"use strict\";exports[\"en\"]={edit:\"Edit\",del:\"Delete selected\",back:\"Back\",addNode:\"Add Node\",addEdge:\"Add Edge\",editNode:\"Edit Node\",editEdge:\"Edit Edge\",addDescription:\"Click in an empty space to place a new node.\",edgeDescription:\"Click on a node and drag the edge to another node to connect them.\",editEdgeDescription:\"Click on the control points and drag them to a node to connect to it.\",createEdgeError:\"Cannot link edges to a cluster.\",deleteClusterError:\"Clusters cannot be deleted.\",editClusterError:\"Clusters cannot be edited.\"};exports[\"en_EN\"]=exports[\"en\"];exports[\"en_US\"]=exports[\"en\"];exports[\"de\"]={edit:\"Editieren\",del:\"Lösche Auswahl\",back:\"Zurück\",addNode:\"Knoten hinzufügen\",addEdge:\"Kante hinzufügen\",editNode:\"Knoten editieren\",editEdge:\"Kante editieren\",addDescription:\"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.\",edgeDescription:\"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.\",editEdgeDescription:\"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.\",createEdgeError:\"Es ist nicht möglich, Kanten mit Clustern zu verbinden.\",deleteClusterError:\"Cluster können nicht gelöscht werden.\",editClusterError:\"Cluster können nicht editiert werden.\"};exports[\"de_DE\"]=exports[\"de\"];exports[\"es\"]={edit:\"Editar\",del:\"Eliminar selección\",back:\"Átras\",addNode:\"Añadir nodo\",addEdge:\"Añadir arista\",editNode:\"Editar nodo\",editEdge:\"Editar arista\",addDescription:\"Haga clic en un lugar vacío para colocar un nuevo nodo.\",edgeDescription:\"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.\",editEdgeDescription:\"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.\",createEdgeError:\"No se puede conectar una arista a un grupo.\",deleteClusterError:\"No es posible eliminar grupos.\",editClusterError:\"No es posible editar grupos.\"};exports[\"es_ES\"]=exports[\"es\"];exports[\"it\"]={edit:\"Modifica\",del:\"Cancella la selezione\",back:\"Indietro\",addNode:\"Aggiungi un nodo\",addEdge:\"Aggiungi un vertice\",editNode:\"Modifica il nodo\",editEdge:\"Modifica il vertice\",addDescription:\"Clicca per aggiungere un nuovo nodo\",edgeDescription:\"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.\",editEdgeDescription:\"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.\",createEdgeError:\"Non si possono collegare vertici ad un cluster\",deleteClusterError:\"I cluster non possono essere cancellati\",editClusterError:\"I clusters non possono essere modificati.\"};exports[\"it_IT\"]=exports[\"it\"];exports[\"nl\"]={edit:\"Wijzigen\",del:\"Selectie verwijderen\",\nback:\"Terug\",addNode:\"Node toevoegen\",addEdge:\"Link toevoegen\",editNode:\"Node wijzigen\",editEdge:\"Link wijzigen\",addDescription:\"Klik op een leeg gebied om een nieuwe node te maken.\",edgeDescription:\"Klik op een node en sleep de link naar een andere node om ze te verbinden.\",editEdgeDescription:\"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.\",createEdgeError:\"Kan geen link maken naar een cluster.\",deleteClusterError:\"Clusters kunnen niet worden verwijderd.\",editClusterError:\"Clusters kunnen niet worden aangepast.\"};exports[\"nl_NL\"]=exports[\"nl\"];exports[\"nl_BE\"]=exports[\"nl\"];exports[\"pt-br\"]={edit:\"Editar\",del:\"Remover selecionado\",back:\"Voltar\",addNode:\"Adicionar nó\",addEdge:\"Adicionar aresta\",editNode:\"Editar nó\",editEdge:\"Editar aresta\",addDescription:\"Clique em um espaço em branco para adicionar um novo nó\",edgeDescription:\"Clique em um nó e arraste a aresta até outro nó para conectá-los\",editEdgeDescription:\"Clique nos pontos de controle e os arraste para um nó para conectá-los\",createEdgeError:\"Não foi possível linkar arestas a um cluster.\",deleteClusterError:\"Clusters não puderam ser removidos.\",editClusterError:\"Clusters não puderam ser editados.\"};exports[\"pt-BR\"]=exports[\"pt-br\"];exports[\"pt_BR\"]=exports[\"pt-br\"];exports[\"pt_br\"]=exports[\"pt-br\"];exports[\"ru\"]={edit:\"Редактировать\",del:\"Удалить выбранное\",back:\"Назад\",addNode:\"Добавить узел\",addEdge:\"Добавить ребро\",editNode:\"Редактировать узел\",editEdge:\"Редактировать ребро\",addDescription:\"Кликните в свободное место, чтобы добавить новый узел.\",edgeDescription:\"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.\",editEdgeDescription:\"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.\",createEdgeError:\"Невозможно соединить ребра в кластер.\",deleteClusterError:\"Кластеры не могут быть удалены\",editClusterError:\"Кластеры недоступны для редактирования.\"};exports[\"ru_RU\"]=exports[\"ru\"];exports[\"cn\"]={edit:\"编辑\",del:\"删除选定\",back:\"返回\",addNode:\"添加节点\",addEdge:\"添加连接线\",editNode:\"编辑节点\",editEdge:\"编辑连接线\",addDescription:\"单击空白处放置新节点。\",edgeDescription:\"单击某个节点并将该连接线拖动到另一个节点以连接它们。\",editEdgeDescription:\"单击控制节点并将它们拖到节点上连接。\",createEdgeError:\"无法将连接线连接到群集。\",deleteClusterError:\"无法删除群集。\",editClusterError:\"无法编辑群集。\"};exports[\"zh_CN\"]=exports[\"cn\"]},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var CachedImage=function(){function CachedImage(){(0,_classCallCheck3[\"default\"])(this,CachedImage);this.NUM_ITERATIONS=4;this.image=new Image;this.canvas=document.createElement(\"canvas\")}(0,_createClass3[\"default\"])(CachedImage,[{key:\"init\",value:function init(){if(this.initialized())return;this.src=this.image.src;var w=this.image.width;var h=this.image.height;this.width=w;this.height=h;var h2=Math.floor(h/2);var h4=Math.floor(h/4);var h8=Math.floor(h/8);var h16=Math.floor(h/16);var w2=Math.floor(w/2);var w4=Math.floor(w/4);var w8=Math.floor(w/8);var w16=Math.floor(w/16);this.canvas.width=3*w4;this.canvas.height=h2;this.coordinates=[[0,0,w2,h2],[w2,0,w4,h4],[w2,h4,w8,h8],[5*w8,h4,w16,h16]];this._fillMipMap()}},{key:\"initialized\",value:function initialized(){return this.coordinates!==undefined}},{key:\"_fillMipMap\",value:function _fillMipMap(){var ctx=this.canvas.getContext(\"2d\");var to=this.coordinates[0];ctx.drawImage(this.image,to[0],to[1],to[2],to[3]);for(var iterations=1;iterations<this.NUM_ITERATIONS;iterations++){var from=this.coordinates[iterations-1];var _to=this.coordinates[iterations];ctx.drawImage(this.canvas,from[0],from[1],from[2],from[3],_to[0],_to[1],_to[2],_to[3])}}},{key:\"drawImageAtPosition\",value:function drawImageAtPosition(ctx,factor,left,top,width,height){if(!this.initialized())return;if(factor>2){factor*=.5;var iterations=0;while(factor>2&&iterations<this.NUM_ITERATIONS){factor*=.5;iterations+=1}if(iterations>=this.NUM_ITERATIONS){iterations=this.NUM_ITERATIONS-1}var from=this.coordinates[iterations];ctx.drawImage(this.canvas,from[0],from[1],from[2],from[3],left,top,width,height)}else{ctx.drawImage(this.image,left,top,width,height)}}}]);return CachedImage}();exports[\"default\"]=CachedImage},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Groups=function(){function Groups(){(0,_classCallCheck3[\"default\"])(this,Groups);this.clear();this.defaultIndex=0;this.groupsArray=[];this.groupIndex=0;this.defaultGroups=[{border:\"#2B7CE9\",background:\"#97C2FC\",highlight:{border:\"#2B7CE9\",background:\"#D2E5FF\"},hover:{border:\"#2B7CE9\",background:\"#D2E5FF\"}},{border:\"#FFA500\",background:\"#FFFF00\",highlight:{border:\"#FFA500\",background:\"#FFFFA3\"},hover:{border:\"#FFA500\",background:\"#FFFFA3\"}},{border:\"#FA0A10\",background:\"#FB7E81\",highlight:{border:\"#FA0A10\",background:\"#FFAFB1\"},hover:{border:\"#FA0A10\",background:\"#FFAFB1\"}},{border:\"#41A906\",background:\"#7BE141\",highlight:{border:\"#41A906\",background:\"#A1EC76\"},hover:{border:\"#41A906\",background:\"#A1EC76\"}},{border:\"#E129F0\",background:\"#EB7DF4\",highlight:{border:\"#E129F0\",background:\"#F0B3F5\"},hover:{border:\"#E129F0\",background:\"#F0B3F5\"}},{border:\"#7C29F0\",background:\"#AD85E4\",highlight:{border:\"#7C29F0\",background:\"#D3BDF0\"},hover:{border:\"#7C29F0\",background:\"#D3BDF0\"}},{border:\"#C37F00\",background:\"#FFA807\",highlight:{border:\"#C37F00\",background:\"#FFCA66\"},hover:{border:\"#C37F00\",background:\"#FFCA66\"}},{border:\"#4220FB\",background:\"#6E6EFD\",highlight:{border:\"#4220FB\",background:\"#9B9BFD\"},hover:{border:\"#4220FB\",background:\"#9B9BFD\"}},{border:\"#FD5A77\",background:\"#FFC0CB\",highlight:{border:\"#FD5A77\",background:\"#FFD1D9\"},hover:{border:\"#FD5A77\",background:\"#FFD1D9\"}},{border:\"#4AD63A\",background:\"#C2FABC\",highlight:{border:\"#4AD63A\",background:\"#E6FFE3\"},hover:{border:\"#4AD63A\",background:\"#E6FFE3\"}},{border:\"#990000\",background:\"#EE0000\",highlight:{border:\"#BB0000\",background:\"#FF3333\"},hover:{border:\"#BB0000\",background:\"#FF3333\"}},{border:\"#FF6000\",background:\"#FF6000\",highlight:{border:\"#FF6000\",background:\"#FF6000\"},hover:{border:\"#FF6000\",background:\"#FF6000\"}},{border:\"#97C2FC\",background:\"#2B7CE9\",highlight:{border:\"#D2E5FF\",background:\"#2B7CE9\"},hover:{border:\"#D2E5FF\",background:\"#2B7CE9\"}},{border:\"#399605\",background:\"#255C03\",highlight:{border:\"#399605\",background:\"#255C03\"},hover:{border:\"#399605\",background:\"#255C03\"}},{border:\"#B70054\",background:\"#FF007E\",highlight:{border:\"#B70054\",background:\"#FF007E\"},hover:{border:\"#B70054\",background:\"#FF007E\"}},{border:\"#AD85E4\",background:\"#7C29F0\",highlight:{border:\"#D3BDF0\",background:\"#7C29F0\"},hover:{border:\"#D3BDF0\",background:\"#7C29F0\"}},{border:\"#4557FA\",background:\"#000EA1\",highlight:{border:\"#6E6EFD\",background:\"#000EA1\"},hover:{border:\"#6E6EFD\",background:\"#000EA1\"}},{border:\"#FFC0CB\",background:\"#FD5A77\",highlight:{border:\"#FFD1D9\",background:\"#FD5A77\"},hover:{border:\"#FFD1D9\",background:\"#FD5A77\"}},{border:\"#C2FABC\",background:\"#74D66A\",highlight:{border:\"#E6FFE3\",background:\"#74D66A\"},hover:{border:\"#E6FFE3\",background:\"#74D66A\"}},{border:\"#EE0000\",background:\"#990000\",highlight:{border:\"#FF3333\",background:\"#BB0000\"},hover:{border:\"#FF3333\",background:\"#BB0000\"}}];this.options={};this.defaultOptions={useDefaultGroups:true};util.extend(this.options,this.defaultOptions)}(0,_createClass3[\"default\"])(Groups,[{key:\"setOptions\",value:function setOptions(options){var optionFields=[\"useDefaultGroups\"];if(options!==undefined){for(var groupName in options){if(options.hasOwnProperty(groupName)){if(optionFields.indexOf(groupName)===-1){var group=options[groupName];this.add(groupName,group)}}}}}},{key:\"clear\",value:function clear(){this.groups={};this.groupsArray=[]}},{key:\"get\",value:function get(groupname){var shouldCreate=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var group=this.groups[groupname];if(group===undefined&&shouldCreate){if(this.options.useDefaultGroups===false&&this.groupsArray.length>0){var index=this.groupIndex%this.groupsArray.length;this.groupIndex++;group={};group.color=this.groups[this.groupsArray[index]];this.groups[groupname]=group}else{var _index=this.defaultIndex%this.defaultGroups.length;this.defaultIndex++;group={};group.color=this.defaultGroups[_index];this.groups[groupname]=group}}return group}},{key:\"add\",value:function add(groupName,style){this.groups[groupName]=style;this.groupsArray.push(groupName);return style}}]);return Groups}();exports[\"default\"]=Groups},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var DataSet=__webpack_require__(11);var DataView=__webpack_require__(12);var Node=__webpack_require__(47)[\"default\"];var NodesHandler=function(){function NodesHandler(body,images,groups,layoutEngine){var _this=this;(0,_classCallCheck3[\"default\"])(this,NodesHandler);this.body=body;this.images=images;this.groups=groups;this.layoutEngine=layoutEngine;this.body.functions.createNode=this.create.bind(this);this.nodesListeners={add:function add(event,params){_this.add(params.items)},update:function update(event,params){_this.update(params.items,params.data,params.oldData)},remove:function remove(event,params){_this.remove(params.items)}};this.defaultOptions={borderWidth:1,borderWidthSelected:2,brokenImage:undefined,color:{border:\"#2B7CE9\",background:\"#97C2FC\",highlight:{border:\"#2B7CE9\",background:\"#D2E5FF\"},hover:{border:\"#2B7CE9\",background:\"#D2E5FF\"}},fixed:{x:false,y:false},font:{color:\"#343434\",size:14,face:\"arial\",background:\"none\",strokeWidth:0,strokeColor:\"#ffffff\",align:\"center\",vadjust:0,multi:false,bold:{mod:\"bold\"},boldital:{mod:\"bold italic\"},ital:{mod:\"italic\"},mono:{mod:\"\",size:15,face:\"monospace\",vadjust:2}},group:undefined,hidden:false,icon:{face:\"FontAwesome\",code:undefined,size:50,color:\"#2B7CE9\"},image:undefined,label:undefined,labelHighlightBold:true,level:undefined,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:true,scaling:{min:10,max:30,label:{enabled:false,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function customScalingFunction(min,max,total,value){if(max===min){return.5}else{var scale=1/(max-min);return Math.max(0,(value-min)*scale)}}},shadow:{enabled:false,color:\"rgba(0,0,0,0.5)\",size:10,x:5,y:5},shape:\"ellipse\",shapeProperties:{borderDashes:false,borderRadius:6,interpolation:true,useImageSize:false,useBorderWithImage:false},size:25,title:undefined,value:undefined,x:undefined,y:undefined};if(this.defaultOptions.mass<=0){throw\"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative\"}this.options=util.bridgeObject(this.defaultOptions);this.bindEventListeners()}(0,_createClass3[\"default\"])(NodesHandler,[{key:\"bindEventListeners\",value:function bindEventListeners(){var _this2=this;this.body.emitter.on(\"refreshNodes\",this.refresh.bind(this));this.body.emitter.on(\"refresh\",this.refresh.bind(this));this.body.emitter.on(\"destroy\",function(){util.forEach(_this2.nodesListeners,function(callback,event){if(_this2.body.data.nodes)_this2.body.data.nodes.off(event,callback)});delete _this2.body.functions.createNode;delete _this2.nodesListeners.add;delete _this2.nodesListeners.update;delete _this2.nodesListeners.remove;delete _this2.nodesListeners})}},{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){Node.parseOptions(this.options,options);if(options.shape!==undefined){for(var nodeId in this.body.nodes){if(this.body.nodes.hasOwnProperty(nodeId)){this.body.nodes[nodeId].updateShape()}}}if(options.font!==undefined){for(var _nodeId in this.body.nodes){if(this.body.nodes.hasOwnProperty(_nodeId)){this.body.nodes[_nodeId].updateLabelModule();this.body.nodes[_nodeId].needsRefresh()}}}if(options.size!==undefined){for(var _nodeId2 in this.body.nodes){if(this.body.nodes.hasOwnProperty(_nodeId2)){this.body.nodes[_nodeId2].needsRefresh()}}}if(options.hidden!==undefined||options.physics!==undefined){this.body.emitter.emit(\"_dataChanged\")}}}},{key:\"setData\",value:function setData(nodes){var doNotEmit=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var oldNodesData=this.body.data.nodes;if(nodes instanceof DataSet||nodes instanceof DataView){this.body.data.nodes=nodes}else if(Array.isArray(nodes)){this.body.data.nodes=new DataSet;this.body.data.nodes.add(nodes)}else if(!nodes){this.body.data.nodes=new DataSet}else{throw new TypeError(\"Array or DataSet expected\")}if(oldNodesData){util.forEach(this.nodesListeners,function(callback,event){oldNodesData.off(event,callback)})}this.body.nodes={};if(this.body.data.nodes){var me=this;util.forEach(this.nodesListeners,function(callback,event){me.body.data.nodes.on(event,callback)});var ids=this.body.data.nodes.getIds();this.add(ids,true)}if(doNotEmit===false){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"add\",value:function add(ids){var doNotEmit=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var id=void 0;var newNodes=[];for(var i=0;i<ids.length;i++){id=ids[i];var properties=this.body.data.nodes.get(id);var node=this.create(properties);newNodes.push(node);this.body.nodes[id]=node}this.layoutEngine.positionInitially(newNodes);if(doNotEmit===false){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"update\",value:function update(ids,changedData,oldData){var nodes=this.body.nodes;var dataChanged=false;for(var i=0;i<ids.length;i++){var id=ids[i];var node=nodes[id];var data=changedData[i];if(node!==undefined){if(node.setOptions(data)){dataChanged=true}}else{dataChanged=true;node=this.create(data);nodes[id]=node}}if(!dataChanged&&oldData!==undefined){dataChanged=changedData.some(function(newValue,index){var oldValue=oldData[index];return oldValue&&oldValue.level!==newValue.level})}if(dataChanged===true){this.body.emitter.emit(\"_dataChanged\")}else{this.body.emitter.emit(\"_dataUpdated\")}}},{key:\"remove\",value:function remove(ids){var nodes=this.body.nodes;for(var i=0;i<ids.length;i++){var id=ids[i];delete nodes[id]}this.body.emitter.emit(\"_dataChanged\")}},{key:\"create\",value:function create(properties){var constructorClass=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Node;return new constructorClass(properties,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:\"refresh\",value:function refresh(){var _this3=this;var clearPositions=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;util.forEach(this.body.nodes,function(node,nodeId){var data=_this3.body.data.nodes.get(nodeId);if(data!==undefined){if(clearPositions===true){node.setOptions({x:null,y:null})}node.setOptions({fixed:false});node.setOptions(data)}})}},{key:\"getPositions\",value:function getPositions(ids){var dataArray={};if(ids!==undefined){if(Array.isArray(ids)===true){for(var i=0;i<ids.length;i++){if(this.body.nodes[ids[i]]!==undefined){var node=this.body.nodes[ids[i]];dataArray[ids[i]]={x:Math.round(node.x),y:Math.round(node.y)}}}}else{if(this.body.nodes[ids]!==undefined){var _node=this.body.nodes[ids];dataArray[ids]={x:Math.round(_node.x),y:Math.round(_node.y)}}}}else{for(var _i=0;_i<this.body.nodeIndices.length;_i++){var _node2=this.body.nodes[this.body.nodeIndices[_i]];dataArray[this.body.nodeIndices[_i]]={x:Math.round(_node2.x),y:Math.round(_node2.y)}}}return dataArray}},{key:\"storePositions\",value:function storePositions(){var dataArray=[];var dataset=this.body.data.nodes.getDataSet();for(var nodeId in dataset._data){if(dataset._data.hasOwnProperty(nodeId)){var node=this.body.nodes[nodeId];if(dataset._data[nodeId].x!=Math.round(node.x)||dataset._data[nodeId].y!=Math.round(node.y)){dataArray.push({id:node.id,x:Math.round(node.x),y:Math.round(node.y)})}}}dataset.update(dataArray)}},{key:\"getBoundingBox\",value:function getBoundingBox(nodeId){if(this.body.nodes[nodeId]!==undefined){return this.body.nodes[nodeId].shape.boundingBox}}},{key:\"getConnectedNodes\",value:function getConnectedNodes(nodeId,direction){var nodeList=[];if(this.body.nodes[nodeId]!==undefined){var node=this.body.nodes[nodeId];var nodeObj={};for(var i=0;i<node.edges.length;i++){var edge=node.edges[i];if(direction!==\"to\"&&edge.toId==node.id){if(nodeObj[edge.fromId]===undefined){nodeList.push(edge.fromId);nodeObj[edge.fromId]=true}}else if(direction!==\"from\"&&edge.fromId==node.id){if(nodeObj[edge.toId]===undefined){nodeList.push(edge.toId);nodeObj[edge.toId]=true}}}}return nodeList}},{key:\"getConnectedEdges\",value:function getConnectedEdges(nodeId){var edgeList=[];if(this.body.nodes[nodeId]!==undefined){var node=this.body.nodes[nodeId];for(var i=0;i<node.edges.length;i++){edgeList.push(node.edges[i].id)}}else{console.log(\"NodeId provided for getConnectedEdges does not exist. Provided: \",nodeId)}return edgeList}},{key:\"moveNode\",value:function moveNode(nodeId,x,y){var _this4=this;if(this.body.nodes[nodeId]!==undefined){this.body.nodes[nodeId].x=Number(x);this.body.nodes[nodeId].y=Number(y);setTimeout(function(){_this4.body.emitter.emit(\"startSimulation\")},0)}else{console.log(\"Node id supplied to moveNode does not exist. Provided: \",nodeId)}}}]);return NodesHandler}();exports[\"default\"]=NodesHandler},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(189),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(49);__webpack_require__(60);module.exports=__webpack_require__(190)},function(module,exports,__webpack_require__){var classof=__webpack_require__(86);var ITERATOR=__webpack_require__(13)(\"iterator\");var Iterators=__webpack_require__(31);module.exports=__webpack_require__(7).isIterable=function(it){var O=Object(it);return O[ITERATOR]!==undefined||\"@@iterator\"in O||Iterators.hasOwnProperty(classof(O))}},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var LabelAccumulator=__webpack_require__(192)[\"default\"];var ComponentUtil=__webpack_require__(48)[\"default\"];var LabelSplitter=function(){function LabelSplitter(ctx,parent,selected,hover){var _this=this;(0,_classCallCheck3[\"default\"])(this,LabelSplitter);this.ctx=ctx;this.parent=parent;var textWidth=function textWidth(text,mod){if(text===undefined)return 0;var values=_this.parent.getFormattingValues(ctx,selected,hover,mod);var width=0;if(text!==\"\"){var measure=_this.ctx.measureText(text);width=measure.width}return{width:width,values:values}};this.lines=new LabelAccumulator(textWidth)}(0,_createClass3[\"default\"])(LabelSplitter,[{key:\"process\",value:function process(text){if(!ComponentUtil.isValidLabel(text)){return this.lines.finalize()}var font=this.parent.fontOptions;text=text.replace(/\\r\\n/g,\"\\n\");text=text.replace(/\\r/g,\"\\n\");var nlLines=String(text).split(\"\\n\");var lineCount=nlLines.length;if(font.multi){for(var i=0;i<lineCount;i++){var blocks=this.splitBlocks(nlLines[i],font.multi);if(blocks===undefined)continue;if(blocks.length===0){this.lines.newLine(\"\");continue}if(font.maxWdt>0){for(var j=0;j<blocks.length;j++){var mod=blocks[j].mod;var _text=blocks[j].text;this.splitStringIntoLines(_text,mod,true)}}else{for(var _j=0;_j<blocks.length;_j++){var _mod=blocks[_j].mod;var _text2=blocks[_j].text;this.lines.append(_text2,_mod)}}this.lines.newLine()}}else{if(font.maxWdt>0){for(var _i=0;_i<lineCount;_i++){this.splitStringIntoLines(nlLines[_i])}}else{for(var _i2=0;_i2<lineCount;_i2++){this.lines.newLine(nlLines[_i2])}}}return this.lines.finalize()}},{key:\"decodeMarkupSystem\",value:function decodeMarkupSystem(markupSystem){var system=\"none\";if(markupSystem===\"markdown\"||markupSystem===\"md\"){system=\"markdown\"}else if(markupSystem===true||markupSystem===\"html\"){system=\"html\"}return system}},{key:\"splitHtmlBlocks\",value:function splitHtmlBlocks(text){var blocks=[];var s={bold:false,ital:false,mono:false,spacing:false,position:0,buffer:\"\",modStack:[]};s.mod=function(){return this.modStack.length===0?\"normal\":this.modStack[0]};s.modName=function(){if(this.modStack.length===0)return\"normal\";else if(this.modStack[0]===\"mono\")return\"mono\";else{if(s.bold&&s.ital){return\"boldital\"}else if(s.bold){return\"bold\"}else if(s.ital){return\"ital\"}}};s.emitBlock=function(){var override=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(this.spacing){this.add(\" \");this.spacing=false}if(this.buffer.length>0){blocks.push({text:this.buffer,mod:this.modName()});this.buffer=\"\"}};s.add=function(text){if(text===\" \"){s.spacing=true}if(s.spacing){this.buffer+=\" \";this.spacing=false}if(text!=\" \"){this.buffer+=text}};while(s.position<text.length){var ch=text.charAt(s.position);if(/[ \\t]/.test(ch)){if(!s.mono){s.spacing=true}else{s.add(ch)}}else if(/</.test(ch)){if(!s.mono&&!s.bold&&/<b>/.test(text.substr(s.position,3))){s.emitBlock();s.bold=true;s.modStack.unshift(\"bold\");s.position+=2}else if(!s.mono&&!s.ital&&/<i>/.test(text.substr(s.position,3))){s.emitBlock();s.ital=true;s.modStack.unshift(\"ital\");s.position+=2}else if(!s.mono&&/<code>/.test(text.substr(s.position,6))){s.emitBlock();s.mono=true;s.modStack.unshift(\"mono\");s.position+=5}else if(!s.mono&&s.mod()===\"bold\"&&/<\\/b>/.test(text.substr(s.position,4))){s.emitBlock();s.bold=false;s.modStack.shift();s.position+=3}else if(!s.mono&&s.mod()===\"ital\"&&/<\\/i>/.test(text.substr(s.position,4))){s.emitBlock();s.ital=false;s.modStack.shift();s.position+=3}else if(s.mod()===\"mono\"&&/<\\/code>/.test(text.substr(s.position,7))){s.emitBlock();s.mono=false;s.modStack.shift();s.position+=6}else{s.add(ch)}}else if(/&/.test(ch)){if(/</.test(text.substr(s.position,4))){s.add(\"<\");s.position+=3}else if(/&/.test(text.substr(s.position,5))){s.add(\"&\");s.position+=4}else{s.add(\"&\")}}else{s.add(ch)}s.position++}s.emitBlock();return blocks}},{key:\"splitMarkdownBlocks\",value:function splitMarkdownBlocks(text){var blocks=[];var s={bold:false,ital:false,mono:false,beginable:true,spacing:false,position:0,buffer:\"\",modStack:[]};s.mod=function(){return this.modStack.length===0?\"normal\":this.modStack[0]};s.modName=function(){if(this.modStack.length===0)return\"normal\";else if(this.modStack[0]===\"mono\")return\"mono\";else{if(s.bold&&s.ital){return\"boldital\"}else if(s.bold){return\"bold\"}else if(s.ital){return\"ital\"}}};s.emitBlock=function(){var override=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(this.spacing){this.add(\" \");this.spacing=false}if(this.buffer.length>0){blocks.push({text:this.buffer,mod:this.modName()});this.buffer=\"\"}};s.add=function(text){if(text===\" \"){s.spacing=true}if(s.spacing){this.buffer+=\" \";this.spacing=false}if(text!=\" \"){this.buffer+=text}};while(s.position<text.length){var ch=text.charAt(s.position);if(/[ \\t]/.test(ch)){if(!s.mono){s.spacing=true}else{s.add(ch)}s.beginable=true}else if(/\\\\/.test(ch)){if(s.position<text.length+1){s.position++;ch=text.charAt(s.position);if(/ \\t/.test(ch)){s.spacing=true}else{s.add(ch);s.beginable=false}}}else if(!s.mono&&!s.bold&&(s.beginable||s.spacing)&&/\\*/.test(ch)){s.emitBlock();s.bold=true;s.modStack.unshift(\"bold\")}else if(!s.mono&&!s.ital&&(s.beginable||s.spacing)&&/\\_/.test(ch)){s.emitBlock();s.ital=true;s.modStack.unshift(\"ital\")}else if(!s.mono&&(s.beginable||s.spacing)&&/`/.test(ch)){s.emitBlock();s.mono=true;s.modStack.unshift(\"mono\")}else if(!s.mono&&s.mod()===\"bold\"&&/\\*/.test(ch)){if(s.position===text.length-1||/[.,_` \\t\\n]/.test(text.charAt(s.position+1))){s.emitBlock();s.bold=false;s.modStack.shift()}else{s.add(ch)}}else if(!s.mono&&s.mod()===\"ital\"&&/\\_/.test(ch)){if(s.position===text.length-1||/[.,*` \\t\\n]/.test(text.charAt(s.position+1))){s.emitBlock();s.ital=false;s.modStack.shift()}else{s.add(ch)}}else if(s.mono&&s.mod()===\"mono\"&&/`/.test(ch)){if(s.position===text.length-1||/[.,*_ \\t\\n]/.test(text.charAt(s.position+1))){s.emitBlock();s.mono=false;s.modStack.shift()}else{s.add(ch)}}else{s.add(ch);s.beginable=false}s.position++}s.emitBlock();return blocks}},{key:\"splitBlocks\",value:function splitBlocks(text,markupSystem){var system=this.decodeMarkupSystem(markupSystem);if(system===\"none\"){return[{text:text,mod:\"normal\"}]}else if(system===\"markdown\"){return this.splitMarkdownBlocks(text)}else if(system===\"html\"){return this.splitHtmlBlocks(text)}}},{key:\"overMaxWidth\",value:function overMaxWidth(text){var width=this.ctx.measureText(text).width;return this.lines.curWidth()+width>this.parent.fontOptions.maxWdt}},{key:\"getLongestFit\",value:function getLongestFit(words){var text=\"\";var w=0;while(w<words.length){var pre=text===\"\"?\"\":\" \";var newText=text+pre+words[w];if(this.overMaxWidth(newText))break;text=newText;w++}return w}},{key:\"getLongestFitWord\",value:function getLongestFitWord(words){var w=0;while(w<words.length){if(this.overMaxWidth(words.slice(0,w)))break;w++}return w}},{key:\"splitStringIntoLines\",value:function splitStringIntoLines(str){var mod=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"normal\";var appendLast=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;str=str.replace(/^( +)/g,\"$1\\r\");str=str.replace(/([^\\r][^ ]*)( +)/g,\"$1\\r$2\\r\");var words=str.split(\"\\r\");while(words.length>0){var w=this.getLongestFit(words);if(w===0){var word=words[0];var x=this.getLongestFitWord(word);this.lines.newLine(word.slice(0,x),mod);words[0]=word.slice(x)}else{var newW=w;if(words[w-1]===\" \"){w--}else if(words[newW]===\" \"){newW++}var text=words.slice(0,w).join(\"\");if(w==words.length&&appendLast){this.lines.append(text,mod)}else{this.lines.newLine(text,mod)}words=words.slice(newW)}}}}]);return LabelSplitter}();exports[\"default\"]=LabelSplitter},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _assign=__webpack_require__(90);var _assign2=_interopRequireDefault(_assign);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var LabelAccumulator=function(){function LabelAccumulator(measureText){(0,_classCallCheck3[\"default\"])(this,LabelAccumulator);this.measureText=measureText;this.current=0;this.width=0;this.height=0;this.lines=[]}(0,_createClass3[\"default\"])(LabelAccumulator,[{key:\"_add\",value:function _add(l,text){var mod=arguments.length>2&&arguments[2]!==undefined?arguments[2]:\"normal\";if(this.lines[l]===undefined){this.lines[l]={width:0,height:0,blocks:[]}}var tmpText=text;if(text===undefined||text===\"\")tmpText=\" \";var result=this.measureText(tmpText,mod);var block=(0,_assign2[\"default\"])({},result.values);block.text=text;block.width=result.width;block.mod=mod;if(text===undefined||text===\"\"){block.width=0}this.lines[l].blocks.push(block);this.lines[l].width+=block.width}},{key:\"curWidth\",value:function curWidth(){var line=this.lines[this.current];if(line===undefined)return 0;return line.width}},{key:\"append\",value:function append(text){var mod=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"normal\";this._add(this.current,text,mod)}},{key:\"newLine\",value:function newLine(text){var mod=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\"normal\";this._add(this.current,text,mod);this.current++}},{key:\"determineLineHeights\",value:function determineLineHeights(){for(var k=0;k<this.lines.length;k++){var line=this.lines[k];var height=0;if(line.blocks!==undefined){for(var l=0;l<line.blocks.length;l++){var block=line.blocks[l];if(height<block.height){height=block.height}}}line.height=height}}},{key:\"determineLabelSize\",value:function determineLabelSize(){var width=0;var height=0;for(var k=0;k<this.lines.length;k++){var line=this.lines[k];if(line.width>width){width=line.width}height+=line.height}this.width=width;this.height=height}},{key:\"removeEmptyBlocks\",value:function removeEmptyBlocks(){var tmpLines=[];for(var k=0;k<this.lines.length;k++){var line=this.lines[k];if(line.blocks.length===0)continue;if(k===this.lines.length-1){if(line.width===0)continue}var tmpLine={};(0,_assign2[\"default\"])(tmpLine,line);tmpLine.blocks=[];var firstEmptyBlock=void 0;var tmpBlocks=[];for(var l=0;l<line.blocks.length;l++){var block=line.blocks[l];if(block.width!==0){tmpBlocks.push(block)}else{if(firstEmptyBlock===undefined){firstEmptyBlock=block}}}if(tmpBlocks.length===0&&firstEmptyBlock!==undefined){tmpBlocks.push(firstEmptyBlock)}tmpLine.blocks=tmpBlocks;tmpLines.push(tmpLine)}return tmpLines}},{key:\"finalize\",value:function finalize(){this.determineLineHeights();this.determineLabelSize();var tmpLines=this.removeEmptyBlocks();return{width:this.width,height:this.height,lines:tmpLines}}}]);return LabelAccumulator}();exports[\"default\"]=LabelAccumulator},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _NodeBase2=__webpack_require__(23);var _NodeBase3=_interopRequireDefault(_NodeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Box=function(_NodeBase){(0,_inherits3[\"default\"])(Box,_NodeBase);function Box(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Box);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(Box.__proto__||(0,_getPrototypeOf2[\"default\"])(Box)).call(this,options,body,labelModule));_this._setMargins(labelModule);return _this}(0,_createClass3[\"default\"])(Box,[{key:\"resize\",value:function resize(ctx){var selected=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.selected;var hover=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.hover;if(this.needsRefresh(selected,hover)){var dimensions=this.getDimensionsFromLabel(ctx,selected,hover);this.width=dimensions.width+this.margin.right+this.margin.left;this.height=dimensions.height+this.margin.top+this.margin.bottom;this.radius=this.width/2}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.resize(ctx,selected,hover);this.left=x-this.width/2;this.top=y-this.height/2;this.initContextForDraw(ctx,values);ctx.roundRect(this.left,this.top,this.width,this.height,values.borderRadius);this.performFill(ctx,values);this.updateBoundingBox(x,y,ctx,selected,hover);this.labelModule.draw(ctx,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,selected,hover)}},{key:\"updateBoundingBox\",value:function updateBoundingBox(x,y,ctx,selected,hover){this._updateBoundingBox(x,y,ctx,selected,hover)\n;var borderRadius=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(borderRadius)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){this.resize(ctx);var borderWidth=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(angle)),Math.abs(this.height/2/Math.sin(angle)))+borderWidth}}]);return Box}(_NodeBase3[\"default\"]);exports[\"default\"]=Box},function(module,exports,__webpack_require__){__webpack_require__(195);module.exports=__webpack_require__(7).Object.getPrototypeOf},function(module,exports,__webpack_require__){var toObject=__webpack_require__(41);var $getPrototypeOf=__webpack_require__(85);__webpack_require__(87)(\"getPrototypeOf\",function(){return function getPrototypeOf(it){return $getPrototypeOf(toObject(it))}})},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(197),__esModule:true}},function(module,exports,__webpack_require__){__webpack_require__(198);module.exports=__webpack_require__(7).Object.setPrototypeOf},function(module,exports,__webpack_require__){var $export=__webpack_require__(17);$export($export.S,\"Object\",{setPrototypeOf:__webpack_require__(199).set})},function(module,exports,__webpack_require__){var isObject=__webpack_require__(32);var anObject=__webpack_require__(27);var check=function(O,proto){anObject(O);if(!isObject(proto)&&proto!==null)throw TypeError(proto+\": can't set as prototype!\")};module.exports={set:Object.setPrototypeOf||(\"__proto__\"in{}?function(test,buggy,set){try{set=__webpack_require__(80)(Function.call,__webpack_require__(89).f(Object.prototype,\"__proto__\").set,2);set(test,[]);buggy=!(test instanceof Array)}catch(e){buggy=true}return function setPrototypeOf(O,proto){check(O,proto);if(buggy)O.__proto__=proto;else set(O,proto);return O}}({},false):undefined),check:check}},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _CircleImageBase2=__webpack_require__(73);var _CircleImageBase3=_interopRequireDefault(_CircleImageBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Circle=function(_CircleImageBase){(0,_inherits3[\"default\"])(Circle,_CircleImageBase);function Circle(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Circle);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(Circle.__proto__||(0,_getPrototypeOf2[\"default\"])(Circle)).call(this,options,body,labelModule));_this._setMargins(labelModule);return _this}(0,_createClass3[\"default\"])(Circle,[{key:\"resize\",value:function resize(ctx){var selected=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.selected;var hover=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.hover;if(this.needsRefresh(selected,hover)){var dimensions=this.getDimensionsFromLabel(ctx,selected,hover);var diameter=Math.max(dimensions.width+this.margin.right+this.margin.left,dimensions.height+this.margin.top+this.margin.bottom);this.options.size=diameter/2;this.width=diameter;this.height=diameter;this.radius=this.width/2}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.resize(ctx,selected,hover);this.left=x-this.width/2;this.top=y-this.height/2;this._drawRawCircle(ctx,x,y,values);this.updateBoundingBox(x,y);this.labelModule.draw(ctx,this.left+this.textSize.width/2+this.margin.left,y,selected,hover)}},{key:\"updateBoundingBox\",value:function updateBoundingBox(x,y){this.boundingBox.top=y-this.options.size;this.boundingBox.left=x-this.options.size;this.boundingBox.right=x+this.options.size;this.boundingBox.bottom=y+this.options.size}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){this.resize(ctx);return this.width*.5}}]);return Circle}(_CircleImageBase3[\"default\"]);exports[\"default\"]=Circle},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _CircleImageBase2=__webpack_require__(73);var _CircleImageBase3=_interopRequireDefault(_CircleImageBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var CircularImage=function(_CircleImageBase){(0,_inherits3[\"default\"])(CircularImage,_CircleImageBase);function CircularImage(options,body,labelModule,imageObj,imageObjAlt){(0,_classCallCheck3[\"default\"])(this,CircularImage);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(CircularImage.__proto__||(0,_getPrototypeOf2[\"default\"])(CircularImage)).call(this,options,body,labelModule));_this.setImages(imageObj,imageObjAlt);return _this}(0,_createClass3[\"default\"])(CircularImage,[{key:\"resize\",value:function resize(ctx){var selected=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.selected;var hover=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.hover;var imageAbsent=this.imageObj.src===undefined||this.imageObj.width===undefined||this.imageObj.height===undefined;if(imageAbsent){var diameter=this.options.size*2;this.width=diameter;this.height=diameter;this.radius=.5*this.width;return}if(this.needsRefresh(selected,hover)){this._resizeImage()}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.switchImages(selected);this.resize();this.left=x-this.width/2;this.top=y-this.height/2;this._drawRawCircle(ctx,x,y,values);ctx.save();ctx.clip();this._drawImageAtPosition(ctx,values);ctx.restore();this._drawImageLabel(ctx,x,y,selected,hover);this.updateBoundingBox(x,y)}},{key:\"updateBoundingBox\",value:function updateBoundingBox(x,y){this.boundingBox.top=y-this.options.size;this.boundingBox.left=x-this.options.size;this.boundingBox.right=x+this.options.size;this.boundingBox.bottom=y+this.options.size;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left);this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width);this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){this.resize(ctx);return this.width*.5}}]);return CircularImage}(_CircleImageBase3[\"default\"]);exports[\"default\"]=CircularImage},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _NodeBase2=__webpack_require__(23);var _NodeBase3=_interopRequireDefault(_NodeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Database=function(_NodeBase){(0,_inherits3[\"default\"])(Database,_NodeBase);function Database(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Database);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(Database.__proto__||(0,_getPrototypeOf2[\"default\"])(Database)).call(this,options,body,labelModule));_this._setMargins(labelModule);return _this}(0,_createClass3[\"default\"])(Database,[{key:\"resize\",value:function resize(ctx,selected,hover){if(this.needsRefresh(selected,hover)){var dimensions=this.getDimensionsFromLabel(ctx,selected,hover);var size=dimensions.width+this.margin.right+this.margin.left;this.width=size;this.height=size;this.radius=this.width/2}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.resize(ctx,selected,hover);this.left=x-this.width/2;this.top=y-this.height/2;this.initContextForDraw(ctx,values);ctx.database(x-this.width/2,y-this.height/2,this.width,this.height);this.performFill(ctx,values);this.updateBoundingBox(x,y,ctx,selected,hover);this.labelModule.draw(ctx,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,selected,hover)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Database}(_NodeBase3[\"default\"]);exports[\"default\"]=Database},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _ShapeBase2=__webpack_require__(24);var _ShapeBase3=_interopRequireDefault(_ShapeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Diamond=function(_ShapeBase){(0,_inherits3[\"default\"])(Diamond,_ShapeBase);function Diamond(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Diamond);return(0,_possibleConstructorReturn3[\"default\"])(this,(Diamond.__proto__||(0,_getPrototypeOf2[\"default\"])(Diamond)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(Diamond,[{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this._drawShape(ctx,\"diamond\",4,x,y,selected,hover,values)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Diamond}(_ShapeBase3[\"default\"]);exports[\"default\"]=Diamond},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _ShapeBase2=__webpack_require__(24);var _ShapeBase3=_interopRequireDefault(_ShapeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Dot=function(_ShapeBase){(0,_inherits3[\"default\"])(Dot,_ShapeBase);function Dot(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Dot);return(0,_possibleConstructorReturn3[\"default\"])(this,(Dot.__proto__||(0,_getPrototypeOf2[\"default\"])(Dot)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(Dot,[{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this._drawShape(ctx,\"circle\",2,x,y,selected,hover,values)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){this.resize(ctx);return this.options.size}}]);return Dot}(_ShapeBase3[\"default\"]);exports[\"default\"]=Dot},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _NodeBase2=__webpack_require__(23);var _NodeBase3=_interopRequireDefault(_NodeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Ellipse=function(_NodeBase){(0,_inherits3[\"default\"])(Ellipse,_NodeBase);function Ellipse(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Ellipse);return(0,_possibleConstructorReturn3[\"default\"])(this,(Ellipse.__proto__||(0,_getPrototypeOf2[\"default\"])(Ellipse)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(Ellipse,[{key:\"resize\",value:function resize(ctx){var selected=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.selected;var hover=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.hover;if(this.needsRefresh(selected,hover)){var dimensions=this.getDimensionsFromLabel(ctx,selected,hover);this.height=dimensions.height*2;this.width=dimensions.width+dimensions.height;this.radius=.5*this.width}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.resize(ctx,selected,hover);this.left=x-this.width*.5;this.top=y-this.height*.5;this.initContextForDraw(ctx,values);ctx.ellipse_vis(this.left,this.top,this.width,this.height);this.performFill(ctx,values);this.updateBoundingBox(x,y,ctx,selected,hover);this.labelModule.draw(ctx,x,y,selected,hover)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){this.resize(ctx);var a=this.width*.5;var b=this.height*.5;var w=Math.sin(angle)*a;var h=Math.cos(angle)*b;return a*b/Math.sqrt(w*w+h*h)}}]);return Ellipse}(_NodeBase3[\"default\"]);exports[\"default\"]=Ellipse},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _NodeBase2=__webpack_require__(23);var _NodeBase3=_interopRequireDefault(_NodeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Icon=function(_NodeBase){(0,_inherits3[\"default\"])(Icon,_NodeBase);function Icon(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Icon);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(Icon.__proto__||(0,_getPrototypeOf2[\"default\"])(Icon)).call(this,options,body,labelModule));_this._setMargins(labelModule);return _this}(0,_createClass3[\"default\"])(Icon,[{key:\"resize\",value:function resize(ctx,selected,hover){if(this.needsRefresh(selected,hover)){this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)};this.width=this.iconSize.width+this.margin.right+this.margin.left;this.height=this.iconSize.height+this.margin.top+this.margin.bottom;this.radius=.5*this.width}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.resize(ctx,selected,hover);this.options.icon.size=this.options.icon.size||50;this.left=x-this.width/2;this.top=y-this.height/2;this._icon(ctx,x,y,selected,hover,values);if(this.options.label!==undefined){var iconTextSpacing=5;this.labelModule.draw(ctx,this.left+this.iconSize.width/2+this.margin.left,y+this.height/2+iconTextSpacing,selected)}this.updateBoundingBox(x,y)}},{key:\"updateBoundingBox\",value:function updateBoundingBox(x,y){this.boundingBox.top=y-this.options.icon.size*.5;this.boundingBox.left=x-this.options.icon.size*.5;this.boundingBox.right=x+this.options.icon.size*.5;this.boundingBox.bottom=y+this.options.icon.size*.5;if(this.options.label!==undefined&&this.labelModule.size.width>0){var iconTextSpacing=5;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left);this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width);this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+iconTextSpacing)}}},{key:\"_icon\",value:function _icon(ctx,x,y,selected,hover,values){var iconSize=Number(this.options.icon.size);if(this.options.icon.code!==undefined){ctx.font=(selected?\"bold \":\"\")+iconSize+\"px \"+this.options.icon.face;ctx.fillStyle=this.options.icon.color||\"black\";ctx.textAlign=\"center\";ctx.textBaseline=\"middle\";this.enableShadow(ctx,values);ctx.fillText(this.options.icon.code,x,y);this.disableShadow(ctx,values)}else{console.error(\"When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.\")}}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Icon}(_NodeBase3[\"default\"]);exports[\"default\"]=Icon},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _CircleImageBase2=__webpack_require__(73);var _CircleImageBase3=_interopRequireDefault(_CircleImageBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Image=function(_CircleImageBase){(0,_inherits3[\"default\"])(Image,_CircleImageBase);function Image(options,body,labelModule,imageObj,imageObjAlt){(0,_classCallCheck3[\"default\"])(this,Image);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(Image.__proto__||(0,_getPrototypeOf2[\"default\"])(Image)).call(this,options,body,labelModule));_this.setImages(imageObj,imageObjAlt);return _this}(0,_createClass3[\"default\"])(Image,[{key:\"resize\",value:function resize(ctx){var selected=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.selected;var hover=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.hover;var imageAbsent=this.imageObj.src===undefined||this.imageObj.width===undefined||this.imageObj.height===undefined;if(imageAbsent){var side=this.options.size*2;this.width=side;this.height=side;return}if(this.needsRefresh(selected,hover)){this._resizeImage()}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.switchImages(selected);this.resize();this.left=x-this.width/2;this.top=y-this.height/2;if(this.options.shapeProperties.useBorderWithImage===true){var neutralborderWidth=this.options.borderWidth;var selectionLineWidth=this.options.borderWidthSelected||2*this.options.borderWidth;var borderWidth=(selected?selectionLineWidth:neutralborderWidth)/this.body.view.scale;ctx.lineWidth=Math.min(this.width,borderWidth);ctx.beginPath();ctx.strokeStyle=selected?this.options.color.highlight.border:hover?this.options.color.hover.border:this.options.color.border;ctx.fillStyle=selected?this.options.color.highlight.background:hover?this.options.color.hover.background:this.options.color.background;ctx.rect(this.left-.5*ctx.lineWidth,this.top-.5*ctx.lineWidth,this.width+ctx.lineWidth,this.height+ctx.lineWidth);ctx.fill();this.performStroke(ctx,values);ctx.closePath()}this._drawImageAtPosition(ctx,values);this._drawImageLabel(ctx,x,y,selected,hover);this.updateBoundingBox(x,y)}},{key:\"updateBoundingBox\",value:function updateBoundingBox(x,y){this.resize();this._updateBoundingBox(x,y);if(this.options.label!==undefined&&this.labelModule.size.width>0){this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left);this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width);this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Image}(_CircleImageBase3[\"default\"]);exports[\"default\"]=Image},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _ShapeBase2=__webpack_require__(24);var _ShapeBase3=_interopRequireDefault(_ShapeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Square=function(_ShapeBase){(0,_inherits3[\"default\"])(Square,_ShapeBase);function Square(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Square);return(0,_possibleConstructorReturn3[\"default\"])(this,(Square.__proto__||(0,_getPrototypeOf2[\"default\"])(Square)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(Square,[{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this._drawShape(ctx,\"square\",2,x,y,selected,hover,values)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Square}(_ShapeBase3[\"default\"]);exports[\"default\"]=Square},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _ShapeBase2=__webpack_require__(24);var _ShapeBase3=_interopRequireDefault(_ShapeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Hexagon=function(_ShapeBase){(0,_inherits3[\"default\"])(Hexagon,_ShapeBase);function Hexagon(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Hexagon);return(0,_possibleConstructorReturn3[\"default\"])(this,(Hexagon.__proto__||(0,_getPrototypeOf2[\"default\"])(Hexagon)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(Hexagon,[{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this._drawShape(ctx,\"hexagon\",4,x,y,selected,hover,values)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Hexagon}(_ShapeBase3[\"default\"]);exports[\"default\"]=Hexagon},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _ShapeBase2=__webpack_require__(24);var _ShapeBase3=_interopRequireDefault(_ShapeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Star=function(_ShapeBase){(0,_inherits3[\"default\"])(Star,_ShapeBase);function Star(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Star);return(0,_possibleConstructorReturn3[\"default\"])(this,(Star.__proto__||(0,_getPrototypeOf2[\"default\"])(Star)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(Star,[{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this._drawShape(ctx,\"star\",4,x,y,selected,hover,values)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Star}(_ShapeBase3[\"default\"]);exports[\"default\"]=Star},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _NodeBase2=__webpack_require__(23);var _NodeBase3=_interopRequireDefault(_NodeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Text=function(_NodeBase){(0,_inherits3[\"default\"])(Text,_NodeBase);function Text(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Text);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(Text.__proto__||(0,_getPrototypeOf2[\"default\"])(Text)).call(this,options,body,labelModule));_this._setMargins(labelModule);return _this}(0,_createClass3[\"default\"])(Text,[{key:\"resize\",value:function resize(ctx,selected,hover){if(this.needsRefresh(selected,hover)){this.textSize=this.labelModule.getTextSize(ctx,selected,hover);this.width=this.textSize.width+this.margin.right+this.margin.left;this.height=this.textSize.height+this.margin.top+this.margin.bottom;this.radius=.5*this.width}}},{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this.resize(ctx,selected,hover);this.left=x-this.width/2;this.top=y-this.height/2;this.enableShadow(ctx,values);this.labelModule.draw(ctx,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,selected,hover);this.disableShadow(ctx,values);this.updateBoundingBox(x,y,ctx,selected,hover)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Text}(_NodeBase3[\"default\"]);exports[\"default\"]=Text},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _ShapeBase2=__webpack_require__(24);var _ShapeBase3=_interopRequireDefault(_ShapeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Triangle=function(_ShapeBase){(0,_inherits3[\"default\"])(Triangle,_ShapeBase);function Triangle(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,Triangle);return(0,_possibleConstructorReturn3[\"default\"])(this,(Triangle.__proto__||(0,_getPrototypeOf2[\"default\"])(Triangle)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(Triangle,[{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this._drawShape(ctx,\"triangle\",3,x,y,selected,hover,values)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return Triangle}(_ShapeBase3[\"default\"]);exports[\"default\"]=Triangle},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _ShapeBase2=__webpack_require__(24);var _ShapeBase3=_interopRequireDefault(_ShapeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var TriangleDown=function(_ShapeBase){(0,_inherits3[\"default\"])(TriangleDown,_ShapeBase);function TriangleDown(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,TriangleDown);return(0,_possibleConstructorReturn3[\"default\"])(this,(TriangleDown.__proto__||(0,_getPrototypeOf2[\"default\"])(TriangleDown)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(TriangleDown,[{key:\"draw\",value:function draw(ctx,x,y,selected,hover,values){this._drawShape(ctx,\"triangleDown\",3,x,y,selected,hover,values)}},{key:\"distanceToBorder\",value:function distanceToBorder(ctx,angle){return this._distanceToBorder(ctx,angle)}}]);return TriangleDown}(_ShapeBase3[\"default\"]);exports[\"default\"]=TriangleDown},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var DataSet=__webpack_require__(11);var DataView=__webpack_require__(12);var Edge=__webpack_require__(74)[\"default\"];var EdgesHandler=function(){function EdgesHandler(body,images,groups){var _this=this;(0,_classCallCheck3[\"default\"])(this,EdgesHandler);this.body=body;this.images=images;this.groups=groups;this.body.functions.createEdge=this.create.bind(this);this.edgesListeners={add:function add(event,params){_this.add(params.items)},update:function update(event,params){_this.update(params.items)},remove:function remove(event,params){_this.remove(params.items)}};this.options={};this.defaultOptions={arrows:{to:{enabled:false,\nscaleFactor:1,type:\"arrow\"},middle:{enabled:false,scaleFactor:1,type:\"arrow\"},from:{enabled:false,scaleFactor:1,type:\"arrow\"}},arrowStrikethrough:true,color:{color:\"#848484\",highlight:\"#848484\",hover:\"#848484\",inherit:\"from\",opacity:1},dashes:false,font:{color:\"#343434\",size:14,face:\"arial\",background:\"none\",strokeWidth:2,strokeColor:\"#ffffff\",align:\"horizontal\",multi:false,vadjust:0,bold:{mod:\"bold\"},boldital:{mod:\"bold italic\"},ital:{mod:\"italic\"},mono:{mod:\"\",size:15,face:\"courier new\",vadjust:2}},hidden:false,hoverWidth:1.5,label:undefined,labelHighlightBold:true,length:undefined,physics:true,scaling:{min:1,max:15,label:{enabled:true,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function customScalingFunction(min,max,total,value){if(max===min){return.5}else{var scale=1/(max-min);return Math.max(0,(value-min)*scale)}}},selectionWidth:1.5,selfReferenceSize:20,shadow:{enabled:false,color:\"rgba(0,0,0,0.5)\",size:10,x:5,y:5},smooth:{enabled:true,type:\"dynamic\",forceDirection:\"none\",roundness:.5},title:undefined,width:1,value:undefined};util.deepExtend(this.options,this.defaultOptions);this.bindEventListeners()}(0,_createClass3[\"default\"])(EdgesHandler,[{key:\"bindEventListeners\",value:function bindEventListeners(){var _this2=this;this.body.emitter.on(\"_forceDisableDynamicCurves\",function(type){var emit=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(type===\"dynamic\"){type=\"continuous\"}var dataChanged=false;for(var edgeId in _this2.body.edges){if(_this2.body.edges.hasOwnProperty(edgeId)){var edge=_this2.body.edges[edgeId];var edgeData=_this2.body.data.edges._data[edgeId];if(edgeData!==undefined){var smoothOptions=edgeData.smooth;if(smoothOptions!==undefined){if(smoothOptions.enabled===true&&smoothOptions.type===\"dynamic\"){if(type===undefined){edge.setOptions({smooth:false})}else{edge.setOptions({smooth:{type:type}})}dataChanged=true}}}}}if(emit===true&&dataChanged===true){_this2.body.emitter.emit(\"_dataChanged\")}});this.body.emitter.on(\"_dataUpdated\",function(){_this2.reconnectEdges()});this.body.emitter.on(\"refreshEdges\",this.refresh.bind(this));this.body.emitter.on(\"refresh\",this.refresh.bind(this));this.body.emitter.on(\"destroy\",function(){util.forEach(_this2.edgesListeners,function(callback,event){if(_this2.body.data.edges)_this2.body.data.edges.off(event,callback)});delete _this2.body.functions.createEdge;delete _this2.edgesListeners.add;delete _this2.edgesListeners.update;delete _this2.edgesListeners.remove;delete _this2.edgesListeners})}},{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){Edge.parseOptions(this.options,options,true,this.defaultOptions,true);var dataChanged=false;if(options.smooth!==undefined){for(var edgeId in this.body.edges){if(this.body.edges.hasOwnProperty(edgeId)){dataChanged=this.body.edges[edgeId].updateEdgeType()||dataChanged}}}if(options.font!==undefined){for(var _edgeId in this.body.edges){if(this.body.edges.hasOwnProperty(_edgeId)){this.body.edges[_edgeId].updateLabelModule()}}}if(options.hidden!==undefined||options.physics!==undefined||dataChanged===true){this.body.emitter.emit(\"_dataChanged\")}}}},{key:\"setData\",value:function setData(edges){var _this3=this;var doNotEmit=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var oldEdgesData=this.body.data.edges;if(edges instanceof DataSet||edges instanceof DataView){this.body.data.edges=edges}else if(Array.isArray(edges)){this.body.data.edges=new DataSet;this.body.data.edges.add(edges)}else if(!edges){this.body.data.edges=new DataSet}else{throw new TypeError(\"Array or DataSet expected\")}if(oldEdgesData){util.forEach(this.edgesListeners,function(callback,event){oldEdgesData.off(event,callback)})}this.body.edges={};if(this.body.data.edges){util.forEach(this.edgesListeners,function(callback,event){_this3.body.data.edges.on(event,callback)});var ids=this.body.data.edges.getIds();this.add(ids,true)}this.body.emitter.emit(\"_adjustEdgesForHierarchicalLayout\");if(doNotEmit===false){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"add\",value:function add(ids){var doNotEmit=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var edges=this.body.edges;var edgesData=this.body.data.edges;for(var i=0;i<ids.length;i++){var id=ids[i];var oldEdge=edges[id];if(oldEdge){oldEdge.disconnect()}var data=edgesData.get(id,{showInternalIds:true});edges[id]=this.create(data)}this.body.emitter.emit(\"_adjustEdgesForHierarchicalLayout\");if(doNotEmit===false){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"update\",value:function update(ids){var edges=this.body.edges;var edgesData=this.body.data.edges;var dataChanged=false;for(var i=0;i<ids.length;i++){var id=ids[i];var data=edgesData.get(id);var edge=edges[id];if(edge!==undefined){edge.disconnect();dataChanged=edge.setOptions(data)||dataChanged;edge.connect()}else{this.body.edges[id]=this.create(data);dataChanged=true}}if(dataChanged===true){this.body.emitter.emit(\"_adjustEdgesForHierarchicalLayout\");this.body.emitter.emit(\"_dataChanged\")}else{this.body.emitter.emit(\"_dataUpdated\")}}},{key:\"remove\",value:function remove(ids){var emit=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(ids.length===0)return;var edges=this.body.edges;util.forEach(ids,function(id){var edge=edges[id];if(edge!==undefined){edge.remove()}});if(emit){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"refresh\",value:function refresh(){var _this4=this;util.forEach(this.body.edges,function(edge,edgeId){var data=_this4.body.data.edges._data[edgeId];if(data!==undefined){edge.setOptions(data)}})}},{key:\"create\",value:function create(properties){return new Edge(properties,this.body,this.options,this.defaultOptions)}},{key:\"reconnectEdges\",value:function reconnectEdges(){var id;var nodes=this.body.nodes;var edges=this.body.edges;for(id in nodes){if(nodes.hasOwnProperty(id)){nodes[id].edges=[]}}for(id in edges){if(edges.hasOwnProperty(id)){var edge=edges[id];edge.from=null;edge.to=null;edge.connect()}}}},{key:\"getConnectedNodes\",value:function getConnectedNodes(edgeId){var nodeList=[];if(this.body.edges[edgeId]!==undefined){var edge=this.body.edges[edgeId];if(edge.fromId!==undefined){nodeList.push(edge.fromId)}if(edge.toId!==undefined){nodeList.push(edge.toId)}}return nodeList}},{key:\"_updateState\",value:function _updateState(){this._addMissingEdges();this._removeInvalidEdges()}},{key:\"_removeInvalidEdges\",value:function _removeInvalidEdges(){var _this5=this;var edgesToDelete=[];util.forEach(this.body.edges,function(edge,id){var toNode=_this5.body.nodes[edge.toId];var fromNode=_this5.body.nodes[edge.fromId];if(toNode!==undefined&&toNode.isCluster===true||fromNode!==undefined&&fromNode.isCluster===true){return}if(toNode===undefined||fromNode===undefined){edgesToDelete.push(id)}});this.remove(edgesToDelete,false)}},{key:\"_addMissingEdges\",value:function _addMissingEdges(){var edges=this.body.edges;var edgesData=this.body.data.edges;var addIds=[];edgesData.forEach(function(edgeData,edgeId){var edge=edges[edgeId];if(edge===undefined){addIds.push(edgeId)}});this.add(addIds,true)}}]);return EdgesHandler}();exports[\"default\"]=EdgesHandler},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _slicedToArray2=__webpack_require__(30);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _CubicBezierEdgeBase2=__webpack_require__(216);var _CubicBezierEdgeBase3=_interopRequireDefault(_CubicBezierEdgeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var CubicBezierEdge=function(_CubicBezierEdgeBase){(0,_inherits3[\"default\"])(CubicBezierEdge,_CubicBezierEdgeBase);function CubicBezierEdge(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,CubicBezierEdge);return(0,_possibleConstructorReturn3[\"default\"])(this,(CubicBezierEdge.__proto__||(0,_getPrototypeOf2[\"default\"])(CubicBezierEdge)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(CubicBezierEdge,[{key:\"_line\",value:function _line(ctx,values,viaNodes){var via1=viaNodes[0];var via2=viaNodes[1];this._bezierCurve(ctx,values,via1,via2)}},{key:\"_getViaCoordinates\",value:function _getViaCoordinates(){var dx=this.from.x-this.to.x;var dy=this.from.y-this.to.y;var x1=void 0,y1=void 0,x2=void 0,y2=void 0;var roundness=this.options.smooth.roundness;if((Math.abs(dx)>Math.abs(dy)||this.options.smooth.forceDirection===true||this.options.smooth.forceDirection===\"horizontal\")&&this.options.smooth.forceDirection!==\"vertical\"){y1=this.from.y;y2=this.to.y;x1=this.from.x-roundness*dx;x2=this.to.x+roundness*dx}else{y1=this.from.y-roundness*dy;y2=this.to.y+roundness*dy;x1=this.from.x;x2=this.to.x}return[{x:x1,y:y1},{x:x2,y:y2}]}},{key:\"getViaNode\",value:function getViaNode(){return this._getViaCoordinates()}},{key:\"_findBorderPosition\",value:function _findBorderPosition(nearNode,ctx){return this._findBorderPositionBezier(nearNode,ctx)}},{key:\"_getDistanceToEdge\",value:function _getDistanceToEdge(x1,y1,x2,y2,x3,y3){var _ref=arguments.length>6&&arguments[6]!==undefined?arguments[6]:this._getViaCoordinates(),_ref2=(0,_slicedToArray3[\"default\"])(_ref,2),via1=_ref2[0],via2=_ref2[1];return this._getDistanceToBezierEdge(x1,y1,x2,y2,x3,y3,via1,via2)}},{key:\"getPoint\",value:function getPoint(percentage){var _ref3=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this._getViaCoordinates(),_ref4=(0,_slicedToArray3[\"default\"])(_ref3,2),via1=_ref4[0],via2=_ref4[1];var t=percentage;var vec=[];vec[0]=Math.pow(1-t,3);vec[1]=3*t*Math.pow(1-t,2);vec[2]=3*Math.pow(t,2)*(1-t);vec[3]=Math.pow(t,3);var x=vec[0]*this.fromPoint.x+vec[1]*via1.x+vec[2]*via2.x+vec[3]*this.toPoint.x;var y=vec[0]*this.fromPoint.y+vec[1]*via1.y+vec[2]*via2.y+vec[3]*this.toPoint.y;return{x:x,y:y}}}]);return CubicBezierEdge}(_CubicBezierEdgeBase3[\"default\"]);exports[\"default\"]=CubicBezierEdge},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _BezierEdgeBase2=__webpack_require__(75);var _BezierEdgeBase3=_interopRequireDefault(_BezierEdgeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var CubicBezierEdgeBase=function(_BezierEdgeBase){(0,_inherits3[\"default\"])(CubicBezierEdgeBase,_BezierEdgeBase);function CubicBezierEdgeBase(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,CubicBezierEdgeBase);return(0,_possibleConstructorReturn3[\"default\"])(this,(CubicBezierEdgeBase.__proto__||(0,_getPrototypeOf2[\"default\"])(CubicBezierEdgeBase)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(CubicBezierEdgeBase,[{key:\"_getDistanceToBezierEdge\",value:function _getDistanceToBezierEdge(x1,y1,x2,y2,x3,y3,via1,via2){var minDistance=1e9;var distance=void 0;var i=void 0,t=void 0,x=void 0,y=void 0;var lastX=x1;var lastY=y1;var vec=[0,0,0,0];for(i=1;i<10;i++){t=.1*i;vec[0]=Math.pow(1-t,3);vec[1]=3*t*Math.pow(1-t,2);vec[2]=3*Math.pow(t,2)*(1-t);vec[3]=Math.pow(t,3);x=vec[0]*x1+vec[1]*via1.x+vec[2]*via2.x+vec[3]*x2;y=vec[0]*y1+vec[1]*via1.y+vec[2]*via2.y+vec[3]*y2;if(i>0){distance=this._getDistanceToLine(lastX,lastY,x,y,x3,y3);minDistance=distance<minDistance?distance:minDistance}lastX=x;lastY=y}return minDistance}}]);return CubicBezierEdgeBase}(_BezierEdgeBase3[\"default\"]);exports[\"default\"]=CubicBezierEdgeBase},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _slicedToArray2=__webpack_require__(30);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _BezierEdgeBase2=__webpack_require__(75);var _BezierEdgeBase3=_interopRequireDefault(_BezierEdgeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var BezierEdgeDynamic=function(_BezierEdgeBase){(0,_inherits3[\"default\"])(BezierEdgeDynamic,_BezierEdgeBase);function BezierEdgeDynamic(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,BezierEdgeDynamic);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(BezierEdgeDynamic.__proto__||(0,_getPrototypeOf2[\"default\"])(BezierEdgeDynamic)).call(this,options,body,labelModule));_this._boundFunction=function(){_this.positionBezierNode()};_this.body.emitter.on(\"_repositionBezierNodes\",_this._boundFunction);return _this}(0,_createClass3[\"default\"])(BezierEdgeDynamic,[{key:\"setOptions\",value:function setOptions(options){var physicsChange=false;if(this.options.physics!==options.physics){physicsChange=true}this.options=options;this.id=this.options.id;this.from=this.body.nodes[this.options.from];this.to=this.body.nodes[this.options.to];this.setupSupportNode();this.connect();if(physicsChange===true){this.via.setOptions({physics:this.options.physics});this.positionBezierNode()}}},{key:\"connect\",value:function connect(){this.from=this.body.nodes[this.options.from];this.to=this.body.nodes[this.options.to];if(this.from===undefined||this.to===undefined||this.options.physics===false){this.via.setOptions({physics:false})}else{if(this.from.id===this.to.id){this.via.setOptions({physics:false})}else{this.via.setOptions({physics:true})}}}},{key:\"cleanup\",value:function cleanup(){this.body.emitter.off(\"_repositionBezierNodes\",this._boundFunction);if(this.via!==undefined){delete this.body.nodes[this.via.id];this.via=undefined;return true}return false}},{key:\"setupSupportNode\",value:function setupSupportNode(){if(this.via===undefined){var nodeId=\"edgeId:\"+this.id;var node=this.body.functions.createNode({id:nodeId,shape:\"circle\",physics:true,hidden:true});this.body.nodes[nodeId]=node;this.via=node;this.via.parentEdgeId=this.id;this.positionBezierNode()}}},{key:\"positionBezierNode\",value:function positionBezierNode(){if(this.via!==undefined&&this.from!==undefined&&this.to!==undefined){this.via.x=.5*(this.from.x+this.to.x);this.via.y=.5*(this.from.y+this.to.y)}else if(this.via!==undefined){this.via.x=0;this.via.y=0}}},{key:\"_line\",value:function _line(ctx,values,viaNode){this._bezierCurve(ctx,values,viaNode)}},{key:\"getViaNode\",value:function getViaNode(){return this.via}},{key:\"getPoint\",value:function getPoint(percentage){var viaNode=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.via;var t=percentage;var x=void 0,y=void 0;if(this.from===this.to){var _getCircleData=this._getCircleData(this.from),_getCircleData2=(0,_slicedToArray3[\"default\"])(_getCircleData,3),cx=_getCircleData2[0],cy=_getCircleData2[1],cr=_getCircleData2[2];var a=2*Math.PI*(1-t);x=cx+cr*Math.sin(a);y=cy+cr-cr*(1-Math.cos(a))}else{x=Math.pow(1-t,2)*this.fromPoint.x+2*t*(1-t)*viaNode.x+Math.pow(t,2)*this.toPoint.x;y=Math.pow(1-t,2)*this.fromPoint.y+2*t*(1-t)*viaNode.y+Math.pow(t,2)*this.toPoint.y}return{x:x,y:y}}},{key:\"_findBorderPosition\",value:function _findBorderPosition(nearNode,ctx){return this._findBorderPositionBezier(nearNode,ctx,this.via)}},{key:\"_getDistanceToEdge\",value:function _getDistanceToEdge(x1,y1,x2,y2,x3,y3){return this._getDistanceToBezierEdge(x1,y1,x2,y2,x3,y3,this.via)}}]);return BezierEdgeDynamic}(_BezierEdgeBase3[\"default\"]);exports[\"default\"]=BezierEdgeDynamic},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _BezierEdgeBase2=__webpack_require__(75);var _BezierEdgeBase3=_interopRequireDefault(_BezierEdgeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var BezierEdgeStatic=function(_BezierEdgeBase){(0,_inherits3[\"default\"])(BezierEdgeStatic,_BezierEdgeBase);function BezierEdgeStatic(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,BezierEdgeStatic);return(0,_possibleConstructorReturn3[\"default\"])(this,(BezierEdgeStatic.__proto__||(0,_getPrototypeOf2[\"default\"])(BezierEdgeStatic)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(BezierEdgeStatic,[{key:\"_line\",value:function _line(ctx,values,viaNode){this._bezierCurve(ctx,values,viaNode)}},{key:\"getViaNode\",value:function getViaNode(){return this._getViaCoordinates()}},{key:\"_getViaCoordinates\",value:function _getViaCoordinates(){var xVia=undefined;var yVia=undefined;var factor=this.options.smooth.roundness;var type=this.options.smooth.type;var dx=Math.abs(this.from.x-this.to.x);var dy=Math.abs(this.from.y-this.to.y);if(type===\"discrete\"||type===\"diagonalCross\"){var stepX=void 0;var stepY=void 0;if(dx<=dy){stepX=stepY=factor*dy}else{stepX=stepY=factor*dx}if(this.from.x>this.to.x)stepX=-stepX;if(this.from.y>=this.to.y)stepY=-stepY;xVia=this.from.x+stepX;yVia=this.from.y+stepY;if(type===\"discrete\"){if(dx<=dy){xVia=dx<factor*dy?this.from.x:xVia}else{yVia=dy<factor*dx?this.from.y:yVia}}}else if(type===\"straightCross\"){var _stepX=(1-factor)*dx;var _stepY=(1-factor)*dy;if(dx<=dy){_stepX=0;if(this.from.y<this.to.y)_stepY=-_stepY}else{if(this.from.x<this.to.x)_stepX=-_stepX;_stepY=0}xVia=this.to.x+_stepX;yVia=this.to.y+_stepY}else if(type===\"horizontal\"){var _stepX2=(1-factor)*dx;if(this.from.x<this.to.x)_stepX2=-_stepX2;xVia=this.to.x+_stepX2;yVia=this.from.y}else if(type===\"vertical\"){var _stepY2=(1-factor)*dy;if(this.from.y<this.to.y)_stepY2=-_stepY2;xVia=this.from.x;yVia=this.to.y+_stepY2}else if(type===\"curvedCW\"){dx=this.to.x-this.from.x;dy=this.from.y-this.to.y;var radius=Math.sqrt(dx*dx+dy*dy);var pi=Math.PI;var originalAngle=Math.atan2(dy,dx);var myAngle=(originalAngle+(factor*.5+.5)*pi)%(2*pi);xVia=this.from.x+(factor*.5+.5)*radius*Math.sin(myAngle);yVia=this.from.y+(factor*.5+.5)*radius*Math.cos(myAngle)}else if(type===\"curvedCCW\"){dx=this.to.x-this.from.x;dy=this.from.y-this.to.y;var _radius=Math.sqrt(dx*dx+dy*dy);var _pi=Math.PI;var _originalAngle=Math.atan2(dy,dx);var _myAngle=(_originalAngle+(-factor*.5+.5)*_pi)%(2*_pi);xVia=this.from.x+(factor*.5+.5)*_radius*Math.sin(_myAngle);yVia=this.from.y+(factor*.5+.5)*_radius*Math.cos(_myAngle)}else{var _stepX3=void 0;var _stepY3=void 0;if(dx<=dy){_stepX3=_stepY3=factor*dy}else{_stepX3=_stepY3=factor*dx}if(this.from.x>this.to.x)_stepX3=-_stepX3;if(this.from.y>=this.to.y)_stepY3=-_stepY3;xVia=this.from.x+_stepX3;yVia=this.from.y+_stepY3;if(dx<=dy){if(this.from.x<=this.to.x){xVia=this.to.x<xVia?this.to.x:xVia}else{xVia=this.to.x>xVia?this.to.x:xVia}}else{if(this.from.y>=this.to.y){yVia=this.to.y>yVia?this.to.y:yVia}else{yVia=this.to.y<yVia?this.to.y:yVia}}}return{x:xVia,y:yVia}}},{key:\"_findBorderPosition\",value:function _findBorderPosition(nearNode,ctx){var options=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return this._findBorderPositionBezier(nearNode,ctx,options.via)}},{key:\"_getDistanceToEdge\",value:function _getDistanceToEdge(x1,y1,x2,y2,x3,y3){var viaNode=arguments.length>6&&arguments[6]!==undefined?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(x1,y1,x2,y2,x3,y3,viaNode)}},{key:\"getPoint\",value:function getPoint(percentage){var viaNode=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this._getViaCoordinates();var t=percentage;var x=Math.pow(1-t,2)*this.fromPoint.x+2*t*(1-t)*viaNode.x+Math.pow(t,2)*this.toPoint.x;var y=Math.pow(1-t,2)*this.fromPoint.y+2*t*(1-t)*viaNode.y+Math.pow(t,2)*this.toPoint.y;return{x:x,y:y}}}]);return BezierEdgeStatic}(_BezierEdgeBase3[\"default\"]);exports[\"default\"]=BezierEdgeStatic},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _EdgeBase2=__webpack_require__(118);var _EdgeBase3=_interopRequireDefault(_EdgeBase2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var StraightEdge=function(_EdgeBase){(0,_inherits3[\"default\"])(StraightEdge,_EdgeBase);function StraightEdge(options,body,labelModule){(0,_classCallCheck3[\"default\"])(this,StraightEdge);return(0,_possibleConstructorReturn3[\"default\"])(this,(StraightEdge.__proto__||(0,_getPrototypeOf2[\"default\"])(StraightEdge)).call(this,options,body,labelModule))}(0,_createClass3[\"default\"])(StraightEdge,[{key:\"_line\",value:function _line(ctx,values){ctx.beginPath();ctx.moveTo(this.fromPoint.x,this.fromPoint.y);ctx.lineTo(this.toPoint.x,this.toPoint.y);this.enableShadow(ctx,values);ctx.stroke();this.disableShadow(ctx,values)}},{key:\"getViaNode\",value:function getViaNode(){return undefined}},{key:\"getPoint\",value:function getPoint(percentage){return{x:(1-percentage)*this.fromPoint.x+percentage*this.toPoint.x,y:(1-percentage)*this.fromPoint.y+percentage*this.toPoint.y}}},{key:\"_findBorderPosition\",value:function _findBorderPosition(nearNode,ctx){var node1=this.to;var node2=this.from;if(nearNode.id===this.from.id){node1=this.from;node2=this.to}var angle=Math.atan2(node1.y-node2.y,node1.x-node2.x);var dx=node1.x-node2.x;var dy=node1.y-node2.y;var edgeSegmentLength=Math.sqrt(dx*dx+dy*dy);var toBorderDist=nearNode.distanceToBorder(ctx,angle);var toBorderPoint=(edgeSegmentLength-toBorderDist)/edgeSegmentLength;var borderPos={};borderPos.x=(1-toBorderPoint)*node2.x+toBorderPoint*node1.x;borderPos.y=(1-toBorderPoint)*node2.y+toBorderPoint*node1.y;return borderPos}},{key:\"_getDistanceToEdge\",value:function _getDistanceToEdge(x1,y1,x2,y2,x3,y3){return this._getDistanceToLine(x1,y1,x2,y2,x3,y3)}}]);return StraightEdge}(_EdgeBase3[\"default\"]);exports[\"default\"]=StraightEdge},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var BarnesHutSolver=__webpack_require__(120)[\"default\"];var Repulsion=__webpack_require__(221)[\"default\"];var HierarchicalRepulsion=__webpack_require__(222)[\"default\"];var SpringSolver=__webpack_require__(223)[\"default\"];var HierarchicalSpringSolver=__webpack_require__(224)[\"default\"];var CentralGravitySolver=__webpack_require__(121)[\"default\"];var ForceAtlas2BasedRepulsionSolver=__webpack_require__(225)[\"default\"];var ForceAtlas2BasedCentralGravitySolver=__webpack_require__(226)[\"default\"];var util=__webpack_require__(2);var EndPoints=__webpack_require__(119)[\"default\"];var PhysicsEngine=function(){function PhysicsEngine(body){(0,_classCallCheck3[\"default\"])(this,PhysicsEngine);this.body=body;this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}};this.physicsEnabled=true;this.simulationInterval=1e3/60;this.requiresTimeout=true;this.previousStates={};this.referenceState={};this.freezeCache={};this.renderTimer=undefined;this.adaptiveTimestep=false;this.adaptiveTimestepEnabled=false;this.adaptiveCounter=0;this.adaptiveInterval=3;this.stabilized=false;this.startedStabilization=false;this.stabilizationIterations=0;this.ready=false;this.options={};this.defaultOptions={enabled:true,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:\"barnesHut\",stabilization:{enabled:true,iterations:1e3,updateInterval:50,onlyDynamicEdges:false,fit:true},timestep:.5,adaptiveTimestep:true};util.extend(this.options,this.defaultOptions);this.timestep=.5;this.layoutFailed=false;this.bindEventListeners()}(0,_createClass3[\"default\"])(PhysicsEngine,[{key:\"bindEventListeners\",value:function bindEventListeners(){var _this=this;this.body.emitter.on(\"initPhysics\",function(){_this.initPhysics()});this.body.emitter.on(\"_layoutFailed\",function(){_this.layoutFailed=true});this.body.emitter.on(\"resetPhysics\",function(){_this.stopSimulation();_this.ready=false});this.body.emitter.on(\"disablePhysics\",function(){_this.physicsEnabled=false;_this.stopSimulation()});this.body.emitter.on(\"restorePhysics\",function(){_this.setOptions(_this.options);if(_this.ready===true){_this.startSimulation()}});this.body.emitter.on(\"startSimulation\",function(){if(_this.ready===true){_this.startSimulation()}});this.body.emitter.on(\"stopSimulation\",function(){_this.stopSimulation()});this.body.emitter.on(\"destroy\",function(){_this.stopSimulation(false);_this.body.emitter.off()});this.body.emitter.on(\"_dataChanged\",function(){_this.updatePhysicsData()})}},{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){if(options===false){this.options.enabled=false;this.physicsEnabled=false;this.stopSimulation()}else if(options===true){this.options.enabled=true;this.physicsEnabled=true;this.startSimulation()}else{this.physicsEnabled=true;util.selectiveNotDeepExtend([\"stabilization\"],this.options,options);util.mergeOptions(this.options,options,\"stabilization\");if(options.enabled===undefined){this.options.enabled=true}if(this.options.enabled===false){this.physicsEnabled=false;this.stopSimulation()}this.timestep=this.options.timestep}}this.init()}},{key:\"init\",value:function init(){var options;if(this.options.solver===\"forceAtlas2Based\"){options=this.options.forceAtlas2Based;this.nodesSolver=new ForceAtlas2BasedRepulsionSolver(this.body,this.physicsBody,options);this.edgesSolver=new SpringSolver(this.body,this.physicsBody,options);this.gravitySolver=new ForceAtlas2BasedCentralGravitySolver(this.body,this.physicsBody,options)}else if(this.options.solver===\"repulsion\"){options=this.options.repulsion;this.nodesSolver=new Repulsion(this.body,this.physicsBody,options);this.edgesSolver=new SpringSolver(this.body,this.physicsBody,options);this.gravitySolver=new CentralGravitySolver(this.body,this.physicsBody,options)}else if(this.options.solver===\"hierarchicalRepulsion\"){options=this.options.hierarchicalRepulsion;this.nodesSolver=new HierarchicalRepulsion(this.body,this.physicsBody,options);this.edgesSolver=new HierarchicalSpringSolver(this.body,this.physicsBody,options);this.gravitySolver=new CentralGravitySolver(this.body,this.physicsBody,options)}else{options=this.options.barnesHut;this.nodesSolver=new BarnesHutSolver(this.body,this.physicsBody,options);this.edgesSolver=new SpringSolver(this.body,this.physicsBody,options);this.gravitySolver=new CentralGravitySolver(this.body,this.physicsBody,options)}this.modelOptions=options}},{key:\"initPhysics\",value:function initPhysics(){if(this.physicsEnabled===true&&this.options.enabled===true){if(this.options.stabilization.enabled===true){this.stabilize()}else{this.stabilized=false;this.ready=true;this.body.emitter.emit(\"fit\",{},this.layoutFailed);this.startSimulation()}}else{this.ready=true;this.body.emitter.emit(\"fit\")}}},{key:\"startSimulation\",value:function startSimulation(){if(this.physicsEnabled===true&&this.options.enabled===true){this.stabilized=false;this.adaptiveTimestep=false;this.body.emitter.emit(\"_resizeNodes\");if(this.viewFunction===undefined){this.viewFunction=this.simulationStep.bind(this);this.body.emitter.on(\"initRedraw\",this.viewFunction);this.body.emitter.emit(\"_startRendering\")}}else{this.body.emitter.emit(\"_redraw\")}}},{key:\"stopSimulation\",value:function stopSimulation(){var emit=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;this.stabilized=true;if(emit===true){this._emitStabilized()}if(this.viewFunction!==undefined){this.body.emitter.off(\"initRedraw\",this.viewFunction);this.viewFunction=undefined;if(emit===true){this.body.emitter.emit(\"_stopRendering\")}}}},{key:\"simulationStep\",value:function simulationStep(){var startTime=Date.now();this.physicsTick();var physicsTime=Date.now()-startTime;if((physicsTime<.4*this.simulationInterval||this.runDoubleSpeed===true)&&this.stabilized===false){this.physicsTick();this.runDoubleSpeed=true}if(this.stabilized===true){this.stopSimulation()}}},{key:\"_emitStabilized\",value:function _emitStabilized(){var _this2=this;var amountOfIterations=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.stabilizationIterations;if(this.stabilizationIterations>1||this.startedStabilization===true){setTimeout(function(){_this2.body.emitter.emit(\"stabilized\",{iterations:amountOfIterations});_this2.startedStabilization=false;_this2.stabilizationIterations=0},0)}}},{key:\"physicsStep\",value:function physicsStep(){this.gravitySolver.solve();this.nodesSolver.solve();this.edgesSolver.solve();this.moveNodes()}},{key:\"adjustTimeStep\",value:function adjustTimeStep(){var factor=1.2;if(this._evaluateStepQuality()===true){this.timestep=factor*this.timestep}else{if(this.timestep/factor<this.options.timestep){this.timestep=this.options.timestep}else{this.adaptiveCounter=-1;this.timestep=Math.max(this.options.timestep,this.timestep/factor)}}}},{key:\"physicsTick\",value:function physicsTick(){this._startStabilizing();if(this.stabilized===true)return;if(this.adaptiveTimestep===true&&this.adaptiveTimestepEnabled===true){var doAdaptive=this.adaptiveCounter%this.adaptiveInterval===0;if(doAdaptive){this.timestep=2*this.timestep;this.physicsStep();this.revert();this.timestep=.5*this.timestep;this.physicsStep();this.physicsStep();this.adjustTimeStep()}else{this.physicsStep()}this.adaptiveCounter+=1}else{this.timestep=this.options.timestep;this.physicsStep()}\nif(this.stabilized===true)this.revert();this.stabilizationIterations++}},{key:\"updatePhysicsData\",value:function updatePhysicsData(){this.physicsBody.forces={};this.physicsBody.physicsNodeIndices=[];this.physicsBody.physicsEdgeIndices=[];var nodes=this.body.nodes;var edges=this.body.edges;for(var nodeId in nodes){if(nodes.hasOwnProperty(nodeId)){if(nodes[nodeId].options.physics===true){this.physicsBody.physicsNodeIndices.push(nodes[nodeId].id)}}}for(var edgeId in edges){if(edges.hasOwnProperty(edgeId)){if(edges[edgeId].options.physics===true){this.physicsBody.physicsEdgeIndices.push(edges[edgeId].id)}}}for(var i=0;i<this.physicsBody.physicsNodeIndices.length;i++){var _nodeId=this.physicsBody.physicsNodeIndices[i];this.physicsBody.forces[_nodeId]={x:0,y:0};if(this.physicsBody.velocities[_nodeId]===undefined){this.physicsBody.velocities[_nodeId]={x:0,y:0}}}for(var _nodeId2 in this.physicsBody.velocities){if(nodes[_nodeId2]===undefined){delete this.physicsBody.velocities[_nodeId2]}}}},{key:\"revert\",value:function revert(){var nodeIds=(0,_keys2[\"default\"])(this.previousStates);var nodes=this.body.nodes;var velocities=this.physicsBody.velocities;this.referenceState={};for(var i=0;i<nodeIds.length;i++){var nodeId=nodeIds[i];if(nodes[nodeId]!==undefined){if(nodes[nodeId].options.physics===true){this.referenceState[nodeId]={positions:{x:nodes[nodeId].x,y:nodes[nodeId].y}};velocities[nodeId].x=this.previousStates[nodeId].vx;velocities[nodeId].y=this.previousStates[nodeId].vy;nodes[nodeId].x=this.previousStates[nodeId].x;nodes[nodeId].y=this.previousStates[nodeId].y}}else{delete this.previousStates[nodeId]}}}},{key:\"_evaluateStepQuality\",value:function _evaluateStepQuality(){var dx=void 0,dy=void 0,dpos=void 0;var nodes=this.body.nodes;var reference=this.referenceState;var posThreshold=.3;for(var nodeId in this.referenceState){if(this.referenceState.hasOwnProperty(nodeId)&&nodes[nodeId]!==undefined){dx=nodes[nodeId].x-reference[nodeId].positions.x;dy=nodes[nodeId].y-reference[nodeId].positions.y;dpos=Math.sqrt(Math.pow(dx,2)+Math.pow(dy,2));if(dpos>posThreshold){return false}}}return true}},{key:\"moveNodes\",value:function moveNodes(){var nodeIndices=this.physicsBody.physicsNodeIndices;var maxNodeVelocity=0;var averageNodeVelocity=0;var velocityAdaptiveThreshold=5;for(var i=0;i<nodeIndices.length;i++){var nodeId=nodeIndices[i];var nodeVelocity=this._performStep(nodeId);maxNodeVelocity=Math.max(maxNodeVelocity,nodeVelocity);averageNodeVelocity+=nodeVelocity}this.adaptiveTimestepEnabled=averageNodeVelocity/nodeIndices.length<velocityAdaptiveThreshold;this.stabilized=maxNodeVelocity<this.options.minVelocity}},{key:\"calculateComponentVelocity\",value:function calculateComponentVelocity(v,f,m){var df=this.modelOptions.damping*v;var a=(f-df)/m;v+=a*this.timestep;var maxV=this.options.maxVelocity||1e9;if(Math.abs(v)>maxV){v=v>0?maxV:-maxV}return v}},{key:\"_performStep\",value:function _performStep(nodeId){var node=this.body.nodes[nodeId];var force=this.physicsBody.forces[nodeId];var velocity=this.physicsBody.velocities[nodeId];this.previousStates[nodeId]={x:node.x,y:node.y,vx:velocity.x,vy:velocity.y};if(node.options.fixed.x===false){velocity.x=this.calculateComponentVelocity(velocity.x,force.x,node.options.mass);node.x+=velocity.x*this.timestep}else{force.x=0;velocity.x=0}if(node.options.fixed.y===false){velocity.y=this.calculateComponentVelocity(velocity.y,force.y,node.options.mass);node.y+=velocity.y*this.timestep}else{force.y=0;velocity.y=0}var totalVelocity=Math.sqrt(Math.pow(velocity.x,2)+Math.pow(velocity.y,2));return totalVelocity}},{key:\"_freezeNodes\",value:function _freezeNodes(){var nodes=this.body.nodes;for(var id in nodes){if(nodes.hasOwnProperty(id)){if(nodes[id].x&&nodes[id].y){var fixed=nodes[id].options.fixed;this.freezeCache[id]={x:fixed.x,y:fixed.y};fixed.x=true;fixed.y=true}}}}},{key:\"_restoreFrozenNodes\",value:function _restoreFrozenNodes(){var nodes=this.body.nodes;for(var id in nodes){if(nodes.hasOwnProperty(id)){if(this.freezeCache[id]!==undefined){nodes[id].options.fixed.x=this.freezeCache[id].x;nodes[id].options.fixed.y=this.freezeCache[id].y}}}this.freezeCache={}}},{key:\"stabilize\",value:function stabilize(){var _this3=this;var iterations=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.options.stabilization.iterations;if(typeof iterations!==\"number\"){iterations=this.options.stabilization.iterations;console.log(\"The stabilize method needs a numeric amount of iterations. Switching to default: \",iterations)}if(this.physicsBody.physicsNodeIndices.length===0){this.ready=true;return}this.adaptiveTimestep=true&&this.options.adaptiveTimestep;this.body.emitter.emit(\"_resizeNodes\");this.stopSimulation();this.stabilized=false;this.body.emitter.emit(\"_blockRedraw\");this.targetIterations=iterations;if(this.options.stabilization.onlyDynamicEdges===true){this._freezeNodes()}this.stabilizationIterations=0;setTimeout(function(){return _this3._stabilizationBatch()},0)}},{key:\"_startStabilizing\",value:function _startStabilizing(){if(this.startedStabilization===true)return false;this.body.emitter.emit(\"startStabilizing\");this.startedStabilization=true;return true}},{key:\"_stabilizationBatch\",value:function _stabilizationBatch(){var _this4=this;var running=function running(){return _this4.stabilized===false&&_this4.stabilizationIterations<_this4.targetIterations};var sendProgress=function sendProgress(){_this4.body.emitter.emit(\"stabilizationProgress\",{iterations:_this4.stabilizationIterations,total:_this4.targetIterations})};if(this._startStabilizing()){sendProgress()}var count=0;while(running()&&count<this.options.stabilization.updateInterval){this.physicsTick();count++}sendProgress();if(running()){setTimeout(this._stabilizationBatch.bind(this),0)}else{this._finalizeStabilization()}}},{key:\"_finalizeStabilization\",value:function _finalizeStabilization(){this.body.emitter.emit(\"_allowRedraw\");if(this.options.stabilization.fit===true){this.body.emitter.emit(\"fit\")}if(this.options.stabilization.onlyDynamicEdges===true){this._restoreFrozenNodes()}this.body.emitter.emit(\"stabilizationIterationsDone\");this.body.emitter.emit(\"_requestRedraw\");if(this.stabilized===true){this._emitStabilized()}else{this.startSimulation()}this.ready=true}},{key:\"_drawForces\",value:function _drawForces(ctx){for(var i=0;i<this.physicsBody.physicsNodeIndices.length;i++){var index=this.physicsBody.physicsNodeIndices[i];var node=this.body.nodes[index];var force=this.physicsBody.forces[index];var factor=20;var colorFactor=.03;var forceSize=Math.sqrt(Math.pow(force.x,2)+Math.pow(force.x,2));var size=Math.min(Math.max(5,forceSize),15);var arrowSize=3*size;var color=util.HSVToHex((180-Math.min(1,Math.max(0,colorFactor*forceSize))*180)/360,1,1);var point={x:node.x+factor*force.x,y:node.y+factor*force.y};ctx.lineWidth=size;ctx.strokeStyle=color;ctx.beginPath();ctx.moveTo(node.x,node.y);ctx.lineTo(point.x,point.y);ctx.stroke();var angle=Math.atan2(force.y,force.x);ctx.fillStyle=color;EndPoints.draw(ctx,{type:\"arrow\",point:point,angle:angle,length:arrowSize});ctx.fill()}}}]);return PhysicsEngine}();exports[\"default\"]=PhysicsEngine},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var RepulsionSolver=function(){function RepulsionSolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,RepulsionSolver);this.body=body;this.physicsBody=physicsBody;this.setOptions(options)}(0,_createClass3[\"default\"])(RepulsionSolver,[{key:\"setOptions\",value:function setOptions(options){this.options=options}},{key:\"solve\",value:function solve(){var dx,dy,distance,fx,fy,repulsingForce,node1,node2;var nodes=this.body.nodes;var nodeIndices=this.physicsBody.physicsNodeIndices;var forces=this.physicsBody.forces;var nodeDistance=this.options.nodeDistance;var a=-2/3/nodeDistance;var b=4/3;for(var i=0;i<nodeIndices.length-1;i++){node1=nodes[nodeIndices[i]];for(var j=i+1;j<nodeIndices.length;j++){node2=nodes[nodeIndices[j]];dx=node2.x-node1.x;dy=node2.y-node1.y;distance=Math.sqrt(dx*dx+dy*dy);if(distance===0){distance=.1*Math.random();dx=distance}if(distance<2*nodeDistance){if(distance<.5*nodeDistance){repulsingForce=1}else{repulsingForce=a*distance+b}repulsingForce=repulsingForce/distance;fx=dx*repulsingForce;fy=dy*repulsingForce;forces[node1.id].x-=fx;forces[node1.id].y-=fy;forces[node2.id].x+=fx;forces[node2.id].y+=fy}}}}}]);return RepulsionSolver}();exports[\"default\"]=RepulsionSolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var HierarchicalRepulsionSolver=function(){function HierarchicalRepulsionSolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,HierarchicalRepulsionSolver);this.body=body;this.physicsBody=physicsBody;this.setOptions(options)}(0,_createClass3[\"default\"])(HierarchicalRepulsionSolver,[{key:\"setOptions\",value:function setOptions(options){this.options=options}},{key:\"solve\",value:function solve(){var dx,dy,distance,fx,fy,repulsingForce,node1,node2,i,j;var nodes=this.body.nodes;var nodeIndices=this.physicsBody.physicsNodeIndices;var forces=this.physicsBody.forces;var nodeDistance=this.options.nodeDistance;for(i=0;i<nodeIndices.length-1;i++){node1=nodes[nodeIndices[i]];for(j=i+1;j<nodeIndices.length;j++){node2=nodes[nodeIndices[j]];if(node1.level===node2.level){dx=node2.x-node1.x;dy=node2.y-node1.y;distance=Math.sqrt(dx*dx+dy*dy);var steepness=.05;if(distance<nodeDistance){repulsingForce=-Math.pow(steepness*distance,2)+Math.pow(steepness*nodeDistance,2)}else{repulsingForce=0}if(distance===0){distance=.01}else{repulsingForce=repulsingForce/distance}fx=dx*repulsingForce;fy=dy*repulsingForce;forces[node1.id].x-=fx;forces[node1.id].y-=fy;forces[node2.id].x+=fx;forces[node2.id].y+=fy}}}}}]);return HierarchicalRepulsionSolver}();exports[\"default\"]=HierarchicalRepulsionSolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var SpringSolver=function(){function SpringSolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,SpringSolver);this.body=body;this.physicsBody=physicsBody;this.setOptions(options)}(0,_createClass3[\"default\"])(SpringSolver,[{key:\"setOptions\",value:function setOptions(options){this.options=options}},{key:\"solve\",value:function solve(){var edgeLength=void 0,edge=void 0;var edgeIndices=this.physicsBody.physicsEdgeIndices;var edges=this.body.edges;var node1=void 0,node2=void 0,node3=void 0;for(var i=0;i<edgeIndices.length;i++){edge=edges[edgeIndices[i]];if(edge.connected===true&&edge.toId!==edge.fromId){if(this.body.nodes[edge.toId]!==undefined&&this.body.nodes[edge.fromId]!==undefined){if(edge.edgeType.via!==undefined){edgeLength=edge.options.length===undefined?this.options.springLength:edge.options.length;node1=edge.to;node2=edge.edgeType.via;node3=edge.from;this._calculateSpringForce(node1,node2,.5*edgeLength);this._calculateSpringForce(node2,node3,.5*edgeLength)}else{edgeLength=edge.options.length===undefined?this.options.springLength*1.5:edge.options.length;this._calculateSpringForce(edge.from,edge.to,edgeLength)}}}}}},{key:\"_calculateSpringForce\",value:function _calculateSpringForce(node1,node2,edgeLength){var dx=node1.x-node2.x;var dy=node1.y-node2.y;var distance=Math.max(Math.sqrt(dx*dx+dy*dy),.01);var springForce=this.options.springConstant*(edgeLength-distance)/distance;var fx=dx*springForce;var fy=dy*springForce;if(this.physicsBody.forces[node1.id]!==undefined){this.physicsBody.forces[node1.id].x+=fx;this.physicsBody.forces[node1.id].y+=fy}if(this.physicsBody.forces[node2.id]!==undefined){this.physicsBody.forces[node2.id].x-=fx;this.physicsBody.forces[node2.id].y-=fy}}}]);return SpringSolver}();exports[\"default\"]=SpringSolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var HierarchicalSpringSolver=function(){function HierarchicalSpringSolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,HierarchicalSpringSolver);this.body=body;this.physicsBody=physicsBody;this.setOptions(options)}(0,_createClass3[\"default\"])(HierarchicalSpringSolver,[{key:\"setOptions\",value:function setOptions(options){this.options=options}},{key:\"solve\",value:function solve(){var edgeLength,edge;var dx,dy,fx,fy,springForce,distance;var edges=this.body.edges;var factor=.5;var edgeIndices=this.physicsBody.physicsEdgeIndices;var nodeIndices=this.physicsBody.physicsNodeIndices;var forces=this.physicsBody.forces;for(var i=0;i<nodeIndices.length;i++){var nodeId=nodeIndices[i];forces[nodeId].springFx=0;forces[nodeId].springFy=0}for(var _i=0;_i<edgeIndices.length;_i++){edge=edges[edgeIndices[_i]];if(edge.connected===true){edgeLength=edge.options.length===undefined?this.options.springLength:edge.options.length;dx=edge.from.x-edge.to.x;dy=edge.from.y-edge.to.y;distance=Math.sqrt(dx*dx+dy*dy);distance=distance===0?.01:distance;springForce=this.options.springConstant*(edgeLength-distance)/distance;fx=dx*springForce;fy=dy*springForce;if(edge.to.level!=edge.from.level){if(forces[edge.toId]!==undefined){forces[edge.toId].springFx-=fx;forces[edge.toId].springFy-=fy}if(forces[edge.fromId]!==undefined){forces[edge.fromId].springFx+=fx;forces[edge.fromId].springFy+=fy}}else{if(forces[edge.toId]!==undefined){forces[edge.toId].x-=factor*fx;forces[edge.toId].y-=factor*fy}if(forces[edge.fromId]!==undefined){forces[edge.fromId].x+=factor*fx;forces[edge.fromId].y+=factor*fy}}}}springForce=1;var springFx,springFy;for(var _i2=0;_i2<nodeIndices.length;_i2++){var _nodeId=nodeIndices[_i2];springFx=Math.min(springForce,Math.max(-springForce,forces[_nodeId].springFx));springFy=Math.min(springForce,Math.max(-springForce,forces[_nodeId].springFy));forces[_nodeId].x+=springFx;forces[_nodeId].y+=springFy}var totalFx=0;var totalFy=0;for(var _i3=0;_i3<nodeIndices.length;_i3++){var _nodeId2=nodeIndices[_i3];totalFx+=forces[_nodeId2].x;totalFy+=forces[_nodeId2].y}var correctionFx=totalFx/nodeIndices.length;var correctionFy=totalFy/nodeIndices.length;for(var _i4=0;_i4<nodeIndices.length;_i4++){var _nodeId3=nodeIndices[_i4];forces[_nodeId3].x-=correctionFx;forces[_nodeId3].y-=correctionFy}}}]);return HierarchicalSpringSolver}();exports[\"default\"]=HierarchicalSpringSolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _BarnesHutSolver2=__webpack_require__(120);var _BarnesHutSolver3=_interopRequireDefault(_BarnesHutSolver2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var ForceAtlas2BasedRepulsionSolver=function(_BarnesHutSolver){(0,_inherits3[\"default\"])(ForceAtlas2BasedRepulsionSolver,_BarnesHutSolver);function ForceAtlas2BasedRepulsionSolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,ForceAtlas2BasedRepulsionSolver);return(0,_possibleConstructorReturn3[\"default\"])(this,(ForceAtlas2BasedRepulsionSolver.__proto__||(0,_getPrototypeOf2[\"default\"])(ForceAtlas2BasedRepulsionSolver)).call(this,body,physicsBody,options))}(0,_createClass3[\"default\"])(ForceAtlas2BasedRepulsionSolver,[{key:\"_calculateForces\",value:function _calculateForces(distance,dx,dy,node,parentBranch){if(distance===0){distance=.1*Math.random();dx=distance}if(this.overlapAvoidanceFactor<1&&node.shape.radius){distance=Math.max(.1+this.overlapAvoidanceFactor*node.shape.radius,distance-node.shape.radius)}var degree=node.edges.length+1;var gravityForce=this.options.gravitationalConstant*parentBranch.mass*node.options.mass*degree/Math.pow(distance,2);var fx=dx*gravityForce;var fy=dy*gravityForce;this.physicsBody.forces[node.id].x+=fx;this.physicsBody.forces[node.id].y+=fy}}]);return ForceAtlas2BasedRepulsionSolver}(_BarnesHutSolver3[\"default\"]);exports[\"default\"]=ForceAtlas2BasedRepulsionSolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _CentralGravitySolver2=__webpack_require__(121);var _CentralGravitySolver3=_interopRequireDefault(_CentralGravitySolver2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var ForceAtlas2BasedCentralGravitySolver=function(_CentralGravitySolver){(0,_inherits3[\"default\"])(ForceAtlas2BasedCentralGravitySolver,_CentralGravitySolver);function ForceAtlas2BasedCentralGravitySolver(body,physicsBody,options){(0,_classCallCheck3[\"default\"])(this,ForceAtlas2BasedCentralGravitySolver);return(0,_possibleConstructorReturn3[\"default\"])(this,(ForceAtlas2BasedCentralGravitySolver.__proto__||(0,_getPrototypeOf2[\"default\"])(ForceAtlas2BasedCentralGravitySolver)).call(this,body,physicsBody,options))}(0,_createClass3[\"default\"])(ForceAtlas2BasedCentralGravitySolver,[{key:\"_calculateForces\",value:function _calculateForces(distance,dx,dy,forces,node){if(distance>0){var degree=node.edges.length+1;var gravityForce=this.options.centralGravity*degree*node.options.mass;forces[node.id].x=dx*gravityForce;forces[node.id].y=dy*gravityForce}}}]);return ForceAtlas2BasedCentralGravitySolver}(_CentralGravitySolver3[\"default\"]);exports[\"default\"]=ForceAtlas2BasedCentralGravitySolver},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var NetworkUtil=__webpack_require__(76)[\"default\"];var Cluster=__webpack_require__(228)[\"default\"];var Edge=__webpack_require__(74)[\"default\"];var Node=__webpack_require__(47)[\"default\"];var ClusterEngine=function(){function ClusterEngine(body){var _this=this;(0,_classCallCheck3[\"default\"])(this,ClusterEngine);this.body=body;this.clusteredNodes={};this.clusteredEdges={};this.options={};this.defaultOptions={};util.extend(this.options,this.defaultOptions);this.body.emitter.on(\"_resetData\",function(){_this.clusteredNodes={};_this.clusteredEdges={}})}(0,_createClass3[\"default\"])(ClusterEngine,[{key:\"clusterByHubsize\",value:function clusterByHubsize(hubsize,options){if(hubsize===undefined){hubsize=this._getHubSize()}else if((typeof hubsize===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(hubsize))===\"object\"){options=this._checkOptions(hubsize);hubsize=this._getHubSize()}var nodesToCluster=[];for(var i=0;i<this.body.nodeIndices.length;i++){var node=this.body.nodes[this.body.nodeIndices[i]];if(node.edges.length>=hubsize){nodesToCluster.push(node.id)}}for(var _i=0;_i<nodesToCluster.length;_i++){this.clusterByConnection(nodesToCluster[_i],options,true)}this.body.emitter.emit(\"_dataChanged\")}},{key:\"cluster\",value:function cluster(){var _this2=this;var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var refreshData=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(options.joinCondition===undefined){throw new Error(\"Cannot call clusterByNodeData without a joinCondition function in the options.\")}options=this._checkOptions(options);var childNodesObj={};var childEdgesObj={};util.forEach(this.body.nodes,function(node,nodeId){var clonedOptions=NetworkUtil.cloneOptions(node);if(options.joinCondition(clonedOptions)===true){childNodesObj[nodeId]=node;util.forEach(node.edges,function(edge){if(_this2.clusteredEdges[edge.id]===undefined){childEdgesObj[edge.id]=edge}})}});this._cluster(childNodesObj,childEdgesObj,options,refreshData)}},{key:\"clusterByEdgeCount\",value:function clusterByEdgeCount(edgeCount,options){var _this3=this;var refreshData=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;options=this._checkOptions(options);var clusters=[];var usedNodes={};var edge=void 0,edges=void 0,relevantEdgeCount=void 0;var _loop=function _loop(i){var childNodesObj={};var childEdgesObj={};var nodeId=_this3.body.nodeIndices[i];var node=_this3.body.nodes[nodeId];if(usedNodes[nodeId]===undefined){relevantEdgeCount=0;edges=[];for(var j=0;j<node.edges.length;j++){edge=node.edges[j];if(_this3.clusteredEdges[edge.id]===undefined){if(edge.toId!==edge.fromId){relevantEdgeCount++}edges.push(edge)}}if(relevantEdgeCount===edgeCount){checkJoinCondition=function checkJoinCondition(node){if(options.joinCondition===undefined||options.joinCondition===null){return true}var clonedOptions=NetworkUtil.cloneOptions(node);return options.joinCondition(clonedOptions)};var gatheringSuccessful=true;for(var _j=0;_j<edges.length;_j++){edge=edges[_j];var childNodeId=_this3._getConnectedId(edge,nodeId);if(checkJoinCondition(node)){childEdgesObj[edge.id]=edge;childNodesObj[nodeId]=node;childNodesObj[childNodeId]=_this3.body.nodes[childNodeId];usedNodes[nodeId]=true}else{gatheringSuccessful=false;break}}if((0,_keys2[\"default\"])(childNodesObj).length>0&&(0,_keys2[\"default\"])(childEdgesObj).length>0&&gatheringSuccessful===true){findClusterData=function findClusterData(){for(var n=0;n<clusters.length;++n){for(var m in childNodesObj){if(clusters[n].nodes[m]!==undefined){return clusters[n]}}}return undefined};foundCluster=findClusterData();if(foundCluster!==undefined){for(var m in childNodesObj){if(foundCluster.nodes[m]===undefined){foundCluster.nodes[m]=childNodesObj[m]}}for(var _m in childEdgesObj){if(foundCluster.edges[_m]===undefined){foundCluster.edges[_m]=childEdgesObj[_m]}}}else{clusters.push({nodes:childNodesObj,edges:childEdgesObj})}}}}};for(var i=0;i<this.body.nodeIndices.length;i++){var checkJoinCondition;var findClusterData;var foundCluster;_loop(i)}for(var i=0;i<clusters.length;i++){this._cluster(clusters[i].nodes,clusters[i].edges,options,false)}if(refreshData===true){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"clusterOutliers\",value:function clusterOutliers(options){var refreshData=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;this.clusterByEdgeCount(1,options,refreshData)}},{key:\"clusterBridges\",value:function clusterBridges(options){var refreshData=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;this.clusterByEdgeCount(2,options,refreshData)}},{key:\"clusterByConnection\",value:function clusterByConnection(nodeId,options){var refreshData=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;if(nodeId===undefined){throw new Error(\"No nodeId supplied to clusterByConnection!\")}if(this.body.nodes[nodeId]===undefined){throw new Error(\"The nodeId given to clusterByConnection does not exist!\")}var node=this.body.nodes[nodeId];options=this._checkOptions(options,node);if(options.clusterNodeProperties.x===undefined){options.clusterNodeProperties.x=node.x}if(options.clusterNodeProperties.y===undefined){options.clusterNodeProperties.y=node.y}if(options.clusterNodeProperties.fixed===undefined){options.clusterNodeProperties.fixed={};options.clusterNodeProperties.fixed.x=node.options.fixed.x;options.clusterNodeProperties.fixed.y=node.options.fixed.y}var childNodesObj={};var childEdgesObj={};var parentNodeId=node.id;var parentClonedOptions=NetworkUtil.cloneOptions(node);childNodesObj[parentNodeId]=node;for(var i=0;i<node.edges.length;i++){var edge=node.edges[i];if(this.clusteredEdges[edge.id]===undefined){var childNodeId=this._getConnectedId(edge,parentNodeId);if(this.clusteredNodes[childNodeId]===undefined){if(childNodeId!==parentNodeId){if(options.joinCondition===undefined){childEdgesObj[edge.id]=edge;childNodesObj[childNodeId]=this.body.nodes[childNodeId]}else{var childClonedOptions=NetworkUtil.cloneOptions(this.body.nodes[childNodeId]);if(options.joinCondition(parentClonedOptions,childClonedOptions)===true){childEdgesObj[edge.id]=edge;childNodesObj[childNodeId]=this.body.nodes[childNodeId]}}}else{childEdgesObj[edge.id]=edge}}}}var childNodeIDs=(0,_keys2[\"default\"])(childNodesObj).map(function(childNode){return childNodesObj[childNode].id});for(childNode in childNodesObj){if(!childNodesObj.hasOwnProperty(childNode))continue;var childNode=childNodesObj[childNode];for(var y=0;y<childNode.edges.length;y++){var childEdge=childNode.edges[y];if(childNodeIDs.indexOf(this._getConnectedId(childEdge,childNode.id))>-1){childEdgesObj[childEdge.id]=childEdge}}}this._cluster(childNodesObj,childEdgesObj,options,refreshData)}},{key:\"_createClusterEdges\",value:function _createClusterEdges(childNodesObj,childEdgesObj,clusterNodeProperties,clusterEdgeProperties){var edge=void 0,childNodeId=void 0,childNode=void 0,toId=void 0,fromId=void 0,otherNodeId=void 0;var childKeys=(0,_keys2[\"default\"])(childNodesObj);var createEdges=[];for(var i=0;i<childKeys.length;i++){childNodeId=childKeys[i];childNode=childNodesObj[childNodeId];for(var j=0;j<childNode.edges.length;j++){edge=childNode.edges[j];if(this.clusteredEdges[edge.id]===undefined){if(edge.toId==edge.fromId){childEdgesObj[edge.id]=edge}else{if(edge.toId==childNodeId){toId=clusterNodeProperties.id;fromId=edge.fromId;otherNodeId=fromId}else{toId=edge.toId;fromId=clusterNodeProperties.id;otherNodeId=toId}}if(childNodesObj[otherNodeId]===undefined){createEdges.push({edge:edge,fromId:fromId,toId:toId})}}}}var newEdges=[];var getNewEdge=function getNewEdge(createdEdge){for(var _j2=0;_j2<newEdges.length;_j2++){var newEdge=newEdges[_j2];var matchToDirection=createdEdge.fromId===newEdge.fromId&&createdEdge.toId===newEdge.toId;var matchFromDirection=createdEdge.fromId===newEdge.toId&&createdEdge.toId===newEdge.fromId;if(matchToDirection||matchFromDirection){return newEdge}}return null};for(var _j3=0;_j3<createEdges.length;_j3++){var createdEdge=createEdges[_j3];var _edge=createdEdge.edge;var newEdge=getNewEdge(createdEdge);if(newEdge===null){newEdge=this._createClusteredEdge(createdEdge.fromId,createdEdge.toId,_edge,clusterEdgeProperties);newEdges.push(newEdge)}else{newEdge.clusteringEdgeReplacingIds.push(_edge.id)}this.body.edges[_edge.id].edgeReplacedById=newEdge.id;this._backupEdgeOptions(_edge);_edge.setOptions({physics:false})}}},{key:\"_checkOptions\",value:function _checkOptions(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(options.clusterEdgeProperties===undefined){options.clusterEdgeProperties={}}if(options.clusterNodeProperties===undefined){options.clusterNodeProperties={}}return options}},{key:\"_cluster\",value:function _cluster(childNodesObj,childEdgesObj,options){var refreshData=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;var tmpNodesToRemove=[];for(var _nodeId in childNodesObj){if(childNodesObj.hasOwnProperty(_nodeId)){if(this.clusteredNodes[_nodeId]!==undefined){tmpNodesToRemove.push(_nodeId)}}}for(var n=0;n<tmpNodesToRemove.length;++n){delete childNodesObj[tmpNodesToRemove[n]]}if((0,_keys2[\"default\"])(childNodesObj).length==0){return}if((0,_keys2[\"default\"])(childNodesObj).length==1&&options.clusterNodeProperties.allowSingleNodeCluster!=true){return}var clusterNodeProperties=util.deepExtend({},options.clusterNodeProperties);if(options.processProperties!==undefined){var childNodesOptions=[];for(var _nodeId2 in childNodesObj){if(childNodesObj.hasOwnProperty(_nodeId2)){var clonedOptions=NetworkUtil.cloneOptions(childNodesObj[_nodeId2]);childNodesOptions.push(clonedOptions)}}var childEdgesOptions=[];for(var edgeId in childEdgesObj){if(childEdgesObj.hasOwnProperty(edgeId)){if(edgeId.substr(0,12)!==\"clusterEdge:\"){var _clonedOptions=NetworkUtil.cloneOptions(childEdgesObj[edgeId],\"edge\");childEdgesOptions.push(_clonedOptions)}}}clusterNodeProperties=options.processProperties(clusterNodeProperties,childNodesOptions,childEdgesOptions);if(!clusterNodeProperties){throw new Error(\"The processProperties function does not return properties!\")}}if(clusterNodeProperties.id===undefined){clusterNodeProperties.id=\"cluster:\"+util.randomUUID()}var clusterId=clusterNodeProperties.id;if(clusterNodeProperties.label===undefined){clusterNodeProperties.label=\"cluster\"}var pos=undefined;if(clusterNodeProperties.x===undefined){pos=this._getClusterPosition(childNodesObj);clusterNodeProperties.x=pos.x}if(clusterNodeProperties.y===undefined){if(pos===undefined){pos=this._getClusterPosition(childNodesObj)}clusterNodeProperties.y=pos.y}clusterNodeProperties.id=clusterId;var clusterNode=this.body.functions.createNode(clusterNodeProperties,Cluster);clusterNode.containedNodes=childNodesObj;clusterNode.containedEdges=childEdgesObj;clusterNode.clusterEdgeProperties=options.clusterEdgeProperties;this.body.nodes[clusterNodeProperties.id]=clusterNode;this._clusterEdges(childNodesObj,childEdgesObj,clusterNodeProperties,options.clusterEdgeProperties);clusterNodeProperties.id=undefined;if(refreshData===true){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"_backupEdgeOptions\",value:function _backupEdgeOptions(edge){if(this.clusteredEdges[edge.id]===undefined){this.clusteredEdges[edge.id]={physics:edge.options.physics}}}},{key:\"_restoreEdge\",value:function _restoreEdge(edge){var originalOptions=this.clusteredEdges[edge.id];if(originalOptions!==undefined){edge.setOptions({physics:originalOptions.physics});delete this.clusteredEdges[edge.id]}}},{key:\"isCluster\",value:function isCluster(nodeId){if(this.body.nodes[nodeId]!==undefined){return this.body.nodes[nodeId].isCluster===true}else{console.log(\"Node does not exist.\");return false}}},{key:\"_getClusterPosition\",value:function _getClusterPosition(childNodesObj){var childKeys=(0,_keys2[\"default\"])(childNodesObj);var minX=childNodesObj[childKeys[0]].x;var maxX=childNodesObj[childKeys[0]].x;var minY=childNodesObj[childKeys[0]].y;var maxY=childNodesObj[childKeys[0]].y;var node=void 0;for(var i=1;i<childKeys.length;i++){node=childNodesObj[childKeys[i]];minX=node.x<minX?node.x:minX;maxX=node.x>maxX?node.x:maxX\n;minY=node.y<minY?node.y:minY;maxY=node.y>maxY?node.y:maxY}return{x:.5*(minX+maxX),y:.5*(minY+maxY)}}},{key:\"openCluster\",value:function openCluster(clusterNodeId,options){var refreshData=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;if(clusterNodeId===undefined){throw new Error(\"No clusterNodeId supplied to openCluster.\")}var clusterNode=this.body.nodes[clusterNodeId];if(clusterNode===undefined){throw new Error(\"The clusterNodeId supplied to openCluster does not exist.\")}if(clusterNode.isCluster!==true||clusterNode.containedNodes===undefined||clusterNode.containedEdges===undefined){throw new Error(\"The node:\"+clusterNodeId+\" is not a valid cluster.\")}var stack=this.findNode(clusterNodeId);var parentIndex=stack.indexOf(clusterNodeId)-1;if(parentIndex>=0){var parentClusterNodeId=stack[parentIndex];var parentClusterNode=this.body.nodes[parentClusterNodeId];parentClusterNode._openChildCluster(clusterNodeId);delete this.body.nodes[clusterNodeId];if(refreshData===true){this.body.emitter.emit(\"_dataChanged\")}return}var containedNodes=clusterNode.containedNodes;var containedEdges=clusterNode.containedEdges;if(options!==undefined&&options.releaseFunction!==undefined&&typeof options.releaseFunction===\"function\"){var positions={};var clusterPosition={x:clusterNode.x,y:clusterNode.y};for(var _nodeId3 in containedNodes){if(containedNodes.hasOwnProperty(_nodeId3)){var containedNode=this.body.nodes[_nodeId3];positions[_nodeId3]={x:containedNode.x,y:containedNode.y}}}var newPositions=options.releaseFunction(clusterPosition,positions);for(var _nodeId4 in containedNodes){if(containedNodes.hasOwnProperty(_nodeId4)){var _containedNode=this.body.nodes[_nodeId4];if(newPositions[_nodeId4]!==undefined){_containedNode.x=newPositions[_nodeId4].x===undefined?clusterNode.x:newPositions[_nodeId4].x;_containedNode.y=newPositions[_nodeId4].y===undefined?clusterNode.y:newPositions[_nodeId4].y}}}}else{util.forEach(containedNodes,function(containedNode){if(containedNode.options.fixed.x===false){containedNode.x=clusterNode.x}if(containedNode.options.fixed.y===false){containedNode.y=clusterNode.y}})}for(var _nodeId5 in containedNodes){if(containedNodes.hasOwnProperty(_nodeId5)){var _containedNode2=this.body.nodes[_nodeId5];_containedNode2.vx=clusterNode.vx;_containedNode2.vy=clusterNode.vy;_containedNode2.setOptions({physics:true});delete this.clusteredNodes[_nodeId5]}}var edgesToBeDeleted=[];for(var i=0;i<clusterNode.edges.length;i++){edgesToBeDeleted.push(clusterNode.edges[i])}for(var _i2=0;_i2<edgesToBeDeleted.length;_i2++){var edge=edgesToBeDeleted[_i2];var otherNodeId=this._getConnectedId(edge,clusterNodeId);var otherNode=this.clusteredNodes[otherNodeId];for(var j=0;j<edge.clusteringEdgeReplacingIds.length;j++){var transferId=edge.clusteringEdgeReplacingIds[j];var transferEdge=this.body.edges[transferId];if(transferEdge===undefined)continue;if(otherNode!==undefined){var otherCluster=this.body.nodes[otherNode.clusterId];otherCluster.containedEdges[transferEdge.id]=transferEdge;delete containedEdges[transferEdge.id];var fromId=transferEdge.fromId;var toId=transferEdge.toId;if(transferEdge.toId==otherNodeId){toId=otherNode.clusterId}else{fromId=otherNode.clusterId}this._createClusteredEdge(fromId,toId,transferEdge,otherCluster.clusterEdgeProperties,{hidden:false,physics:true})}else{this._restoreEdge(transferEdge)}}edge.remove()}for(var edgeId in containedEdges){if(containedEdges.hasOwnProperty(edgeId)){this._restoreEdge(containedEdges[edgeId])}}delete this.body.nodes[clusterNodeId];if(refreshData===true){this.body.emitter.emit(\"_dataChanged\")}}},{key:\"getNodesInCluster\",value:function getNodesInCluster(clusterId){var nodesArray=[];if(this.isCluster(clusterId)===true){var containedNodes=this.body.nodes[clusterId].containedNodes;for(var _nodeId6 in containedNodes){if(containedNodes.hasOwnProperty(_nodeId6)){nodesArray.push(this.body.nodes[_nodeId6].id)}}}return nodesArray}},{key:\"findNode\",value:function findNode(nodeId){var stack=[];var max=100;var counter=0;var node=void 0;while(this.clusteredNodes[nodeId]!==undefined&&counter<max){node=this.body.nodes[nodeId];if(node===undefined)return[];stack.push(node.id);nodeId=this.clusteredNodes[nodeId].clusterId;counter++}node=this.body.nodes[nodeId];if(node===undefined)return[];stack.push(node.id);stack.reverse();return stack}},{key:\"updateClusteredNode\",value:function updateClusteredNode(clusteredNodeId,newOptions){if(clusteredNodeId===undefined){throw new Error(\"No clusteredNodeId supplied to updateClusteredNode.\")}if(newOptions===undefined){throw new Error(\"No newOptions supplied to updateClusteredNode.\")}if(this.body.nodes[clusteredNodeId]===undefined){throw new Error(\"The clusteredNodeId supplied to updateClusteredNode does not exist.\")}this.body.nodes[clusteredNodeId].setOptions(newOptions);this.body.emitter.emit(\"_dataChanged\")}},{key:\"updateEdge\",value:function updateEdge(startEdgeId,newOptions){if(startEdgeId===undefined){throw new Error(\"No startEdgeId supplied to updateEdge.\")}if(newOptions===undefined){throw new Error(\"No newOptions supplied to updateEdge.\")}if(this.body.edges[startEdgeId]===undefined){throw new Error(\"The startEdgeId supplied to updateEdge does not exist.\")}var allEdgeIds=this.getClusteredEdges(startEdgeId);for(var i=0;i<allEdgeIds.length;i++){var edge=this.body.edges[allEdgeIds[i]];edge.setOptions(newOptions)}this.body.emitter.emit(\"_dataChanged\")}},{key:\"getClusteredEdges\",value:function getClusteredEdges(edgeId){var stack=[];var max=100;var counter=0;while(edgeId!==undefined&&this.body.edges[edgeId]!==undefined&&counter<max){stack.push(this.body.edges[edgeId].id);edgeId=this.body.edges[edgeId].edgeReplacedById;counter++}stack.reverse();return stack}},{key:\"getBaseEdge\",value:function getBaseEdge(clusteredEdgeId){return this.getBaseEdges(clusteredEdgeId)[0]}},{key:\"getBaseEdges\",value:function getBaseEdges(clusteredEdgeId){var IdsToHandle=[clusteredEdgeId];var doneIds=[];var foundIds=[];var max=100;var counter=0;while(IdsToHandle.length>0&&counter<max){var nextId=IdsToHandle.pop();if(nextId===undefined)continue;var nextEdge=this.body.edges[nextId];if(nextEdge===undefined)continue;counter++;var replacingIds=nextEdge.clusteringEdgeReplacingIds;if(replacingIds===undefined){foundIds.push(nextId)}else{for(var i=0;i<replacingIds.length;++i){var replacingId=replacingIds[i];if(IdsToHandle.indexOf(replacingIds)!==-1||doneIds.indexOf(replacingIds)!==-1){continue}IdsToHandle.push(replacingId)}}doneIds.push(nextId)}return foundIds}},{key:\"_getConnectedId\",value:function _getConnectedId(edge,nodeId){if(edge.toId!=nodeId){return edge.toId}else if(edge.fromId!=nodeId){return edge.fromId}else{return edge.fromId}}},{key:\"_getHubSize\",value:function _getHubSize(){var average=0;var averageSquared=0;var hubCounter=0;var largestHub=0;for(var i=0;i<this.body.nodeIndices.length;i++){var _node=this.body.nodes[this.body.nodeIndices[i]];if(_node.edges.length>largestHub){largestHub=_node.edges.length}average+=_node.edges.length;averageSquared+=Math.pow(_node.edges.length,2);hubCounter+=1}average=average/hubCounter;averageSquared=averageSquared/hubCounter;var variance=averageSquared-Math.pow(average,2);var standardDeviation=Math.sqrt(variance);var hubThreshold=Math.floor(average+2*standardDeviation);if(hubThreshold>largestHub){hubThreshold=largestHub}return hubThreshold}},{key:\"_createClusteredEdge\",value:function _createClusteredEdge(fromId,toId,baseEdge,clusterEdgeProperties,extraOptions){var clonedOptions=NetworkUtil.cloneOptions(baseEdge,\"edge\");util.deepExtend(clonedOptions,clusterEdgeProperties);clonedOptions.from=fromId;clonedOptions.to=toId;clonedOptions.id=\"clusterEdge:\"+util.randomUUID();if(extraOptions!==undefined){util.deepExtend(clonedOptions,extraOptions)}var newEdge=this.body.functions.createEdge(clonedOptions);newEdge.clusteringEdgeReplacingIds=[baseEdge.id];newEdge.connect();this.body.edges[newEdge.id]=newEdge;return newEdge}},{key:\"_clusterEdges\",value:function _clusterEdges(childNodes,childEdges,clusterNode,clusterEdgeProperties){if(childEdges instanceof Edge){var edge=childEdges;var obj={};obj[edge.id]=edge;childEdges=obj}if(childNodes instanceof Node){var _node2=childNodes;var _obj={};_obj[_node2.id]=_node2;childNodes=_obj}if(clusterNode===undefined||clusterNode===null){throw new Error(\"_clusterEdges: parameter clusterNode required\")}if(clusterEdgeProperties===undefined){clusterEdgeProperties=clusterNode.clusterEdgeProperties}this._createClusterEdges(childNodes,childEdges,clusterNode,clusterEdgeProperties);for(var edgeId in childEdges){if(childEdges.hasOwnProperty(edgeId)){if(this.body.edges[edgeId]!==undefined){var _edge2=this.body.edges[edgeId];this._backupEdgeOptions(_edge2);_edge2.setOptions({physics:false})}}}for(var _nodeId7 in childNodes){if(childNodes.hasOwnProperty(_nodeId7)){this.clusteredNodes[_nodeId7]={clusterId:clusterNode.id,node:this.body.nodes[_nodeId7]};this.body.nodes[_nodeId7].setOptions({physics:false})}}}},{key:\"_getClusterNodeForNode\",value:function _getClusterNodeForNode(nodeId){if(nodeId===undefined)return undefined;var clusteredNode=this.clusteredNodes[nodeId];if(clusteredNode===undefined)return undefined;var clusterId=clusteredNode.clusterId;if(clusterId===undefined)return undefined;return this.body.nodes[clusterId]}},{key:\"_filter\",value:function _filter(arr,callback){var ret=[];util.forEach(arr,function(item){if(callback(item)){ret.push(item)}});return ret}},{key:\"_updateState\",value:function _updateState(){var _this4=this;var nodeId=void 0;var deletedNodeIds=[];var deletedEdgeIds=[];var eachClusterNode=function eachClusterNode(callback){util.forEach(_this4.body.nodes,function(node){if(node.isCluster===true){callback(node)}})};for(nodeId in this.clusteredNodes){if(!this.clusteredNodes.hasOwnProperty(nodeId))continue;var _node3=this.body.nodes[nodeId];if(_node3===undefined){deletedNodeIds.push(nodeId)}}eachClusterNode(function(clusterNode){for(var n=0;n<deletedNodeIds.length;n++){delete clusterNode.containedNodes[deletedNodeIds[n]]}});for(var n=0;n<deletedNodeIds.length;n++){delete this.clusteredNodes[deletedNodeIds[n]]}util.forEach(this.clusteredEdges,function(edgeId){var edge=_this4.body.edges[edgeId];if(edge===undefined||!edge.endPointsValid()){deletedEdgeIds.push(edgeId)}});eachClusterNode(function(clusterNode){util.forEach(clusterNode.containedEdges,function(edge,edgeId){if(!edge.endPointsValid()&&deletedEdgeIds.indexOf(edgeId)===-1){deletedEdgeIds.push(edgeId)}})});util.forEach(this.body.edges,function(edge,edgeId){var isValid=true;var replacedIds=edge.clusteringEdgeReplacingIds;if(replacedIds!==undefined){var numValid=0;util.forEach(replacedIds,function(containedEdgeId){var containedEdge=_this4.body.edges[containedEdgeId];if(containedEdge!==undefined&&containedEdge.endPointsValid()){numValid+=1}});isValid=numValid>0}if(!edge.endPointsValid()||!isValid){deletedEdgeIds.push(edgeId)}});eachClusterNode(function(clusterNode){util.forEach(deletedEdgeIds,function(deletedEdgeId){delete clusterNode.containedEdges[deletedEdgeId];util.forEach(clusterNode.edges,function(edge,m){if(edge.id===deletedEdgeId){clusterNode.edges[m]=null;return}edge.clusteringEdgeReplacingIds=_this4._filter(edge.clusteringEdgeReplacingIds,function(id){return deletedEdgeIds.indexOf(id)===-1})});clusterNode.edges=_this4._filter(clusterNode.edges,function(item){return item!==null})})});util.forEach(deletedEdgeIds,function(edgeId){delete _this4.clusteredEdges[edgeId]});util.forEach(deletedEdgeIds,function(edgeId){delete _this4.body.edges[edgeId]});var ids=(0,_keys2[\"default\"])(this.body.edges);util.forEach(ids,function(edgeId){var edge=_this4.body.edges[edgeId];var shouldBeClustered=_this4._isClusteredNode(edge.fromId)||_this4._isClusteredNode(edge.toId);if(shouldBeClustered===_this4._isClusteredEdge(edge.id)){return}if(shouldBeClustered){var clusterFrom=_this4._getClusterNodeForNode(edge.fromId);if(clusterFrom!==undefined){_this4._clusterEdges(_this4.body.nodes[edge.fromId],edge,clusterFrom)}var clusterTo=_this4._getClusterNodeForNode(edge.toId);if(clusterTo!==undefined){_this4._clusterEdges(_this4.body.nodes[edge.toId],edge,clusterTo)}}else{throw new Error(\"remove edge from clustering not implemented!\")}});var changed=false;var continueLoop=true;var _loop2=function _loop2(){var clustersToOpen=[];eachClusterNode(function(clusterNode){var numNodes=(0,_keys2[\"default\"])(clusterNode.containedNodes).length;var allowSingle=clusterNode.options.allowSingleNodeCluster===true;if(allowSingle&&numNodes<1||!allowSingle&&numNodes<2){clustersToOpen.push(clusterNode.id)}});for(var _n=0;_n<clustersToOpen.length;++_n){_this4.openCluster(clustersToOpen[_n],{},false)}continueLoop=clustersToOpen.length>0;changed=changed||continueLoop};while(continueLoop){_loop2()}if(changed){this._updateState()}}},{key:\"_isClusteredNode\",value:function _isClusteredNode(nodeId){return this.clusteredNodes[nodeId]!==undefined}},{key:\"_isClusteredEdge\",value:function _isClusteredEdge(edgeId){return this.clusteredEdges[edgeId]!==undefined}}]);return ClusterEngine}();exports[\"default\"]=ClusterEngine},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Node=__webpack_require__(47)[\"default\"];var Cluster=function(_Node){(0,_inherits3[\"default\"])(Cluster,_Node);function Cluster(options,body,imagelist,grouplist,globalOptions,defaultOptions){(0,_classCallCheck3[\"default\"])(this,Cluster);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(Cluster.__proto__||(0,_getPrototypeOf2[\"default\"])(Cluster)).call(this,options,body,imagelist,grouplist,globalOptions,defaultOptions));_this.isCluster=true;_this.containedNodes={};_this.containedEdges={};return _this}(0,_createClass3[\"default\"])(Cluster,[{key:\"_openChildCluster\",value:function _openChildCluster(childClusterId){var _this2=this;var childCluster=this.body.nodes[childClusterId];if(this.containedNodes[childClusterId]===undefined){throw new Error(\"node with id: \"+childClusterId+\" not in current cluster\")}if(!childCluster.isCluster){throw new Error(\"node with id: \"+childClusterId+\" is not a cluster\")}delete this.containedNodes[childClusterId];util.forEach(childCluster.edges,function(edge){delete _this2.containedEdges[edge.id]});util.forEach(childCluster.containedNodes,function(node,nodeId){_this2.containedNodes[nodeId]=node});childCluster.containedNodes={};util.forEach(childCluster.containedEdges,function(edge,edgeId){_this2.containedEdges[edgeId]=edge});childCluster.containedEdges={};util.forEach(childCluster.edges,function(clusterEdge){util.forEach(_this2.edges,function(parentClusterEdge){var index=parentClusterEdge.clusteringEdgeReplacingIds.indexOf(clusterEdge.id);if(index===-1)return;util.forEach(clusterEdge.clusteringEdgeReplacingIds,function(srcId){parentClusterEdge.clusteringEdgeReplacingIds.push(srcId);_this2.body.edges[srcId].edgeReplacedById=parentClusterEdge.id});parentClusterEdge.clusteringEdgeReplacingIds.splice(index,1)})});childCluster.edges=[]}}]);return Cluster}(Node);exports[\"default\"]=Cluster},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _initRequestAnimationFrame(){var func;if(window!==undefined){func=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame}if(func===undefined){window.requestAnimationFrame=function(callback){callback()}}else{window.requestAnimationFrame=func}}var util=__webpack_require__(2);var CanvasRenderer=function(){function CanvasRenderer(body,canvas){(0,_classCallCheck3[\"default\"])(this,CanvasRenderer);_initRequestAnimationFrame();this.body=body;this.canvas=canvas;this.redrawRequested=false;this.renderTimer=undefined;this.requiresTimeout=true;this.renderingActive=false;this.renderRequests=0;this.allowRedraw=true;this.dragging=false;this.options={};this.defaultOptions={hideEdgesOnDrag:false,hideNodesOnDrag:false};util.extend(this.options,this.defaultOptions);this._determineBrowserMethod();this.bindEventListeners()}(0,_createClass3[\"default\"])(CanvasRenderer,[{key:\"bindEventListeners\",value:function bindEventListeners(){var _this=this;this.body.emitter.on(\"dragStart\",function(){_this.dragging=true});this.body.emitter.on(\"dragEnd\",function(){_this.dragging=false});this.body.emitter.on(\"_resizeNodes\",function(){_this._resizeNodes()});this.body.emitter.on(\"_redraw\",function(){if(_this.renderingActive===false){_this._redraw()}});this.body.emitter.on(\"_blockRedraw\",function(){_this.allowRedraw=false});this.body.emitter.on(\"_allowRedraw\",function(){_this.allowRedraw=true;_this.redrawRequested=false});this.body.emitter.on(\"_requestRedraw\",this._requestRedraw.bind(this));this.body.emitter.on(\"_startRendering\",function(){_this.renderRequests+=1;_this.renderingActive=true;_this._startRendering()});this.body.emitter.on(\"_stopRendering\",function(){_this.renderRequests-=1;_this.renderingActive=_this.renderRequests>0;_this.renderTimer=undefined});this.body.emitter.on(\"destroy\",function(){_this.renderRequests=0;_this.allowRedraw=false;_this.renderingActive=false;if(_this.requiresTimeout===true){clearTimeout(_this.renderTimer)}else{window.cancelAnimationFrame(_this.renderTimer)}_this.body.emitter.off()})}},{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){var fields=[\"hideEdgesOnDrag\",\"hideNodesOnDrag\"];util.selectiveDeepExtend(fields,this.options,options)}}},{key:\"_requestNextFrame\",value:function _requestNextFrame(callback,delay){if(typeof window===\"undefined\")return;var timer=void 0;var myWindow=window;if(this.requiresTimeout===true){timer=myWindow.setTimeout(callback,delay)}else{if(myWindow.requestAnimationFrame){timer=myWindow.requestAnimationFrame(callback)}}return timer}},{key:\"_startRendering\",value:function _startRendering(){if(this.renderingActive===true){if(this.renderTimer===undefined){this.renderTimer=this._requestNextFrame(this._renderStep.bind(this),this.simulationInterval)}}}},{key:\"_renderStep\",value:function _renderStep(){if(this.renderingActive===true){this.renderTimer=undefined;if(this.requiresTimeout===true){this._startRendering()}this._redraw();if(this.requiresTimeout===false){this._startRendering()}}}},{key:\"redraw\",value:function redraw(){this.body.emitter.emit(\"setSize\");this._redraw()}},{key:\"_requestRedraw\",value:function _requestRedraw(){var _this2=this;if(this.redrawRequested!==true&&this.renderingActive===false&&this.allowRedraw===true){this.redrawRequested=true;this._requestNextFrame(function(){_this2._redraw(false)},0)}}},{key:\"_redraw\",value:function _redraw(){var hidden=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(this.allowRedraw===true){this.body.emitter.emit(\"initRedraw\");this.redrawRequested=false;if(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0){this.canvas.setSize()}this.canvas.setTransform();var ctx=this.canvas.getContext();var w=this.canvas.frame.canvas.clientWidth;var h=this.canvas.frame.canvas.clientHeight;ctx.clearRect(0,0,w,h);if(this.canvas.frame.clientWidth===0){return}ctx.save();ctx.translate(this.body.view.translation.x,this.body.view.translation.y);ctx.scale(this.body.view.scale,this.body.view.scale);ctx.beginPath();this.body.emitter.emit(\"beforeDrawing\",ctx);ctx.closePath();if(hidden===false){if(this.dragging===false||this.dragging===true&&this.options.hideEdgesOnDrag===false){this._drawEdges(ctx)}}if(this.dragging===false||this.dragging===true&&this.options.hideNodesOnDrag===false){this._drawNodes(ctx,hidden)}ctx.beginPath();this.body.emitter.emit(\"afterDrawing\",ctx);ctx.closePath();ctx.restore();if(hidden===true){ctx.clearRect(0,0,w,h)}}}},{key:\"_resizeNodes\",value:function _resizeNodes(){this.canvas.setTransform();var ctx=this.canvas.getContext();ctx.save();ctx.translate(this.body.view.translation.x,this.body.view.translation.y);ctx.scale(this.body.view.scale,this.body.view.scale);var nodes=this.body.nodes;var node=void 0;for(var nodeId in nodes){if(nodes.hasOwnProperty(nodeId)){node=nodes[nodeId];node.resize(ctx);node.updateBoundingBox(ctx,node.selected)}}ctx.restore()}},{key:\"_drawNodes\",value:function _drawNodes(ctx){var alwaysShow=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var nodes=this.body.nodes;var nodeIndices=this.body.nodeIndices;var node=void 0;var selected=[];var margin=20;var topLeft=this.canvas.DOMtoCanvas({x:-margin,y:-margin});var bottomRight=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+margin,y:this.canvas.frame.canvas.clientHeight+margin});var viewableArea={top:topLeft.y,left:topLeft.x,bottom:bottomRight.y,right:bottomRight.x};for(var i=0;i<nodeIndices.length;i++){node=nodes[nodeIndices[i]];if(node.isSelected()){selected.push(nodeIndices[i])}else{if(alwaysShow===true){node.draw(ctx)}else if(node.isBoundingBoxOverlappingWith(viewableArea)===true){node.draw(ctx)}else{node.updateBoundingBox(ctx,node.selected)}}}for(var _i=0;_i<selected.length;_i++){node=nodes[selected[_i]];node.draw(ctx)}}},{key:\"_drawEdges\",value:function _drawEdges(ctx){var edges=this.body.edges;var edgeIndices=this.body.edgeIndices;var edge=void 0;for(var i=0;i<edgeIndices.length;i++){edge=edges[edgeIndices[i]];if(edge.connected===true){edge.draw(ctx)}}}},{key:\"_determineBrowserMethod\",value:function _determineBrowserMethod(){if(typeof window!==\"undefined\"){var browserType=navigator.userAgent.toLowerCase();this.requiresTimeout=false;if(browserType.indexOf(\"msie 9.0\")!=-1){this.requiresTimeout=true}else if(browserType.indexOf(\"safari\")!=-1){if(browserType.indexOf(\"chrome\")<=-1){this.requiresTimeout=true}}}else{this.requiresTimeout=true}}}]);return CanvasRenderer}();exports[\"default\"]=CanvasRenderer},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Hammer=__webpack_require__(10);var hammerUtil=__webpack_require__(37);var util=__webpack_require__(2);var Canvas=function(){function Canvas(body){(0,_classCallCheck3[\"default\"])(this,Canvas);this.body=body;this.pixelRatio=1;this.resizeTimer=undefined;this.resizeFunction=this._onResize.bind(this);this.cameraState={};this.initialized=false;this.canvasViewCenter={};this.options={};this.defaultOptions={autoResize:true,height:\"100%\",width:\"100%\"};util.extend(this.options,this.defaultOptions);this.bindEventListeners()}(0,_createClass3[\"default\"])(Canvas,[{key:\"bindEventListeners\",value:function bindEventListeners(){var _this=this;this.body.emitter.once(\"resize\",function(obj){if(obj.width!==0){_this.body.view.translation.x=obj.width*.5}if(obj.height!==0){_this.body.view.translation.y=obj.height*.5}});this.body.emitter.on(\"setSize\",this.setSize.bind(this));this.body.emitter.on(\"destroy\",function(){_this.hammerFrame.destroy();_this.hammer.destroy();_this._cleanUp()})}},{key:\"setOptions\",value:function setOptions(options){var _this2=this;if(options!==undefined){var fields=[\"width\",\"height\",\"autoResize\"];util.selectiveDeepExtend(fields,this.options,options)}if(this.options.autoResize===true){this._cleanUp();this.resizeTimer=setInterval(function(){var changed=_this2.setSize();if(changed===true){_this2.body.emitter.emit(\"_requestRedraw\")}},1e3);this.resizeFunction=this._onResize.bind(this);util.addEventListener(window,\"resize\",this.resizeFunction)}}},{key:\"_cleanUp\",value:function _cleanUp(){if(this.resizeTimer!==undefined){clearInterval(this.resizeTimer)}util.removeEventListener(window,\"resize\",this.resizeFunction);this.resizeFunction=undefined}},{key:\"_onResize\",value:function _onResize(){this.setSize();this.body.emitter.emit(\"_redraw\")}},{key:\"_getCameraState\",value:function _getCameraState(){var pixelRatio=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.pixelRatio;if(this.initialized===true){this.cameraState.previousWidth=this.frame.canvas.width/pixelRatio;this.cameraState.previousHeight=this.frame.canvas.height/pixelRatio;this.cameraState.scale=this.body.view.scale;this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/pixelRatio,y:.5*this.frame.canvas.height/pixelRatio})}}},{key:\"_setCameraState\",value:function _setCameraState(){if(this.cameraState.scale!==undefined&&this.frame.canvas.clientWidth!==0&&this.frame.canvas.clientHeight!==0&&this.pixelRatio!==0&&this.cameraState.previousWidth>0){var widthRatio=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth;var heightRatio=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight;var newScale=this.cameraState.scale;if(widthRatio!=1&&heightRatio!=1){newScale=this.cameraState.scale*.5*(widthRatio+heightRatio)}else if(widthRatio!=1){newScale=this.cameraState.scale*widthRatio}else if(heightRatio!=1){newScale=this.cameraState.scale*heightRatio}this.body.view.scale=newScale;var currentViewCenter=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight});var distanceFromCenter={x:currentViewCenter.x-this.cameraState.position.x,y:currentViewCenter.y-this.cameraState.position.y};this.body.view.translation.x+=distanceFromCenter.x*this.body.view.scale;this.body.view.translation.y+=distanceFromCenter.y*this.body.view.scale}}},{key:\"_prepareValue\",value:function _prepareValue(value){if(typeof value===\"number\"){return value+\"px\"}else if(typeof value===\"string\"){if(value.indexOf(\"%\")!==-1||value.indexOf(\"px\")!==-1){return value}else if(value.indexOf(\"%\")===-1){return value+\"px\"}}throw new Error(\"Could not use the value supplied for width or height:\"+value)}},{key:\"_create\",value:function _create(){while(this.body.container.hasChildNodes()){this.body.container.removeChild(this.body.container.firstChild)}this.frame=document.createElement(\"div\");this.frame.className=\"vis-network\";this.frame.style.position=\"relative\";this.frame.style.overflow=\"hidden\";this.frame.tabIndex=900;this.frame.canvas=document.createElement(\"canvas\");this.frame.canvas.style.position=\"relative\";this.frame.appendChild(this.frame.canvas);if(!this.frame.canvas.getContext){var noCanvas=document.createElement(\"DIV\");noCanvas.style.color=\"red\";noCanvas.style.fontWeight=\"bold\";noCanvas.style.padding=\"10px\";noCanvas.innerHTML=\"Error: your browser does not support HTML canvas\";this.frame.canvas.appendChild(noCanvas)}else{this._setPixelRatio();this.setTransform()}this.body.container.appendChild(this.frame);this.body.view.scale=1;this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight};this._bindHammer()}},{key:\"_bindHammer\",value:function _bindHammer(){var _this3=this;if(this.hammer!==undefined){this.hammer.destroy()}this.drag={};this.pinch={};this.hammer=new Hammer(this.frame.canvas);this.hammer.get(\"pinch\").set({enable:true});this.hammer.get(\"pan\").set({threshold:5,direction:Hammer.DIRECTION_ALL});hammerUtil.onTouch(this.hammer,function(event){_this3.body.eventListeners.onTouch(event)});this.hammer.on(\"tap\",function(event){_this3.body.eventListeners.onTap(event)});this.hammer.on(\"doubletap\",function(event){_this3.body.eventListeners.onDoubleTap(event)});this.hammer.on(\"press\",function(event){_this3.body.eventListeners.onHold(event)});this.hammer.on(\"panstart\",function(event){_this3.body.eventListeners.onDragStart(event)});this.hammer.on(\"panmove\",function(event){_this3.body.eventListeners.onDrag(event)});this.hammer.on(\"panend\",function(event){_this3.body.eventListeners.onDragEnd(event)});this.hammer.on(\"pinch\",function(event){_this3.body.eventListeners.onPinch(event)});this.frame.canvas.addEventListener(\"mousewheel\",function(event){_this3.body.eventListeners.onMouseWheel(event)});this.frame.canvas.addEventListener(\"DOMMouseScroll\",function(event){_this3.body.eventListeners.onMouseWheel(event)});this.frame.canvas.addEventListener(\"mousemove\",function(event){_this3.body.eventListeners.onMouseMove(event)});this.frame.canvas.addEventListener(\"contextmenu\",function(event){_this3.body.eventListeners.onContext(event)});this.hammerFrame=new Hammer(this.frame);hammerUtil.onRelease(this.hammerFrame,function(event){_this3.body.eventListeners.onRelease(event)})}},{key:\"setSize\",value:function setSize(){var width=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.options.width;var height=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.options.height;width=this._prepareValue(width);height=this._prepareValue(height);var emitEvent=false;var oldWidth=this.frame.canvas.width;var oldHeight=this.frame.canvas.height;var previousRatio=this.pixelRatio;this._setPixelRatio();if(width!=this.options.width||height!=this.options.height||this.frame.style.width!=width||this.frame.style.height!=height){this._getCameraState(previousRatio);this.frame.style.width=width;this.frame.style.height=height;this.frame.canvas.style.width=\"100%\";this.frame.canvas.style.height=\"100%\";this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio);this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);this.options.width=width;this.options.height=height;this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight};emitEvent=true}else{var newWidth=Math.round(this.frame.canvas.clientWidth*this.pixelRatio);var newHeight=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);if(this.frame.canvas.width!==newWidth||this.frame.canvas.height!==newHeight){this._getCameraState(previousRatio)}if(this.frame.canvas.width!==newWidth){this.frame.canvas.width=newWidth;emitEvent=true}if(this.frame.canvas.height!==newHeight){this.frame.canvas.height=newHeight;emitEvent=true}}if(emitEvent===true){this.body.emitter.emit(\"resize\",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(oldWidth/this.pixelRatio),oldHeight:Math.round(oldHeight/this.pixelRatio)});this._setCameraState()}this.initialized=true;return emitEvent}},{key:\"getContext\",value:function getContext(){return this.frame.canvas.getContext(\"2d\")}},{key:\"_determinePixelRatio\",value:function _determinePixelRatio(){var ctx=this.getContext();if(ctx===undefined){throw new Error(\"Could not get canvax context\")}var numerator=1;if(typeof window!==\"undefined\"){numerator=window.devicePixelRatio||1}var denominator=ctx.webkitBackingStorePixelRatio||ctx.mozBackingStorePixelRatio||ctx.msBackingStorePixelRatio||ctx.oBackingStorePixelRatio||ctx.backingStorePixelRatio||1;return numerator/denominator}},{key:\"_setPixelRatio\",value:function _setPixelRatio(){this.pixelRatio=this._determinePixelRatio()}},{key:\"setTransform\",value:function setTransform(){var ctx=this.getContext();if(ctx===undefined){throw new Error(\"Could not get canvax context\")}ctx.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:\"_XconvertDOMtoCanvas\",value:function _XconvertDOMtoCanvas(x){return(x-this.body.view.translation.x)/this.body.view.scale}},{\nkey:\"_XconvertCanvasToDOM\",value:function _XconvertCanvasToDOM(x){return x*this.body.view.scale+this.body.view.translation.x}},{key:\"_YconvertDOMtoCanvas\",value:function _YconvertDOMtoCanvas(y){return(y-this.body.view.translation.y)/this.body.view.scale}},{key:\"_YconvertCanvasToDOM\",value:function _YconvertCanvasToDOM(y){return y*this.body.view.scale+this.body.view.translation.y}},{key:\"canvasToDOM\",value:function canvasToDOM(pos){return{x:this._XconvertCanvasToDOM(pos.x),y:this._YconvertCanvasToDOM(pos.y)}}},{key:\"DOMtoCanvas\",value:function DOMtoCanvas(pos){return{x:this._XconvertDOMtoCanvas(pos.x),y:this._YconvertDOMtoCanvas(pos.y)}}}]);return Canvas}();exports[\"default\"]=Canvas},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var NetworkUtil=__webpack_require__(76)[\"default\"];var View=function(){function View(body,canvas){var _this=this;(0,_classCallCheck3[\"default\"])(this,View);this.body=body;this.canvas=canvas;this.animationSpeed=1/this.renderRefreshRate;this.animationEasingFunction=\"easeInOutQuint\";this.easingTime=0;this.sourceScale=0;this.targetScale=0;this.sourceTranslation=0;this.targetTranslation=0;this.lockedOnNodeId=undefined;this.lockedOnNodeOffset=undefined;this.touchTime=0;this.viewFunction=undefined;this.body.emitter.on(\"fit\",this.fit.bind(this));this.body.emitter.on(\"animationFinished\",function(){_this.body.emitter.emit(\"_stopRendering\")});this.body.emitter.on(\"unlockNode\",this.releaseNode.bind(this))}(0,_createClass3[\"default\"])(View,[{key:\"setOptions\",value:function setOptions(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this.options=options}},{key:\"fit\",value:function fit(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{nodes:[]};var initialZoom=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var range=void 0;var zoomLevel=void 0;if(options.nodes===undefined||options.nodes.length===0){options.nodes=this.body.nodeIndices}if(initialZoom===true){var positionDefined=0;for(var nodeId in this.body.nodes){if(this.body.nodes.hasOwnProperty(nodeId)){var node=this.body.nodes[nodeId];if(node.predefinedPosition===true){positionDefined+=1}}}if(positionDefined>.5*this.body.nodeIndices.length){this.fit(options,false);return}range=NetworkUtil.getRange(this.body.nodes,options.nodes);var numberOfNodes=this.body.nodeIndices.length;zoomLevel=12.662/(numberOfNodes+7.4147)+.0964822;var factor=Math.min(this.canvas.frame.canvas.clientWidth/600,this.canvas.frame.canvas.clientHeight/600);zoomLevel*=factor}else{this.body.emitter.emit(\"_resizeNodes\");range=NetworkUtil.getRange(this.body.nodes,options.nodes);var xDistance=Math.abs(range.maxX-range.minX)*1.1;var yDistance=Math.abs(range.maxY-range.minY)*1.1;var xZoomLevel=this.canvas.frame.canvas.clientWidth/xDistance;var yZoomLevel=this.canvas.frame.canvas.clientHeight/yDistance;zoomLevel=xZoomLevel<=yZoomLevel?xZoomLevel:yZoomLevel}if(zoomLevel>1){zoomLevel=1}else if(zoomLevel===0){zoomLevel=1}var center=NetworkUtil.findCenter(range);var animationOptions={position:center,scale:zoomLevel,animation:options.animation};this.moveTo(animationOptions)}},{key:\"focus\",value:function focus(nodeId){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(this.body.nodes[nodeId]!==undefined){var nodePosition={x:this.body.nodes[nodeId].x,y:this.body.nodes[nodeId].y};options.position=nodePosition;options.lockedOnNode=nodeId;this.moveTo(options)}else{console.log(\"Node: \"+nodeId+\" cannot be found.\")}}},{key:\"moveTo\",value:function moveTo(options){if(options===undefined){options={};return}if(options.offset===undefined){options.offset={x:0,y:0}}if(options.offset.x===undefined){options.offset.x=0}if(options.offset.y===undefined){options.offset.y=0}if(options.scale===undefined){options.scale=this.body.view.scale}if(options.position===undefined){options.position=this.getViewPosition()}if(options.animation===undefined){options.animation={duration:0}}if(options.animation===false){options.animation={duration:0}}if(options.animation===true){options.animation={}}if(options.animation.duration===undefined){options.animation.duration=1e3}if(options.animation.easingFunction===undefined){options.animation.easingFunction=\"easeInOutQuad\"}this.animateView(options)}},{key:\"animateView\",value:function animateView(options){if(options===undefined){return}this.animationEasingFunction=options.animation.easingFunction;this.releaseNode();if(options.locked===true){this.lockedOnNodeId=options.lockedOnNode;this.lockedOnNodeOffset=options.offset}if(this.easingTime!=0){this._transitionRedraw(true)}this.sourceScale=this.body.view.scale;this.sourceTranslation=this.body.view.translation;this.targetScale=options.scale;this.body.view.scale=this.targetScale;var viewCenter=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight});var distanceFromCenter={x:viewCenter.x-options.position.x,y:viewCenter.y-options.position.y};this.targetTranslation={x:this.sourceTranslation.x+distanceFromCenter.x*this.targetScale+options.offset.x,y:this.sourceTranslation.y+distanceFromCenter.y*this.targetScale+options.offset.y};if(options.animation.duration===0){if(this.lockedOnNodeId!=undefined){this.viewFunction=this._lockedRedraw.bind(this);this.body.emitter.on(\"initRedraw\",this.viewFunction)}else{this.body.view.scale=this.targetScale;this.body.view.translation=this.targetTranslation;this.body.emitter.emit(\"_requestRedraw\")}}else{this.animationSpeed=1/(60*options.animation.duration*.001)||1/60;this.animationEasingFunction=options.animation.easingFunction;this.viewFunction=this._transitionRedraw.bind(this);this.body.emitter.on(\"initRedraw\",this.viewFunction);this.body.emitter.emit(\"_startRendering\")}}},{key:\"_lockedRedraw\",value:function _lockedRedraw(){var nodePosition={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y};var viewCenter=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight});var distanceFromCenter={x:viewCenter.x-nodePosition.x,y:viewCenter.y-nodePosition.y};var sourceTranslation=this.body.view.translation;var targetTranslation={x:sourceTranslation.x+distanceFromCenter.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:sourceTranslation.y+distanceFromCenter.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=targetTranslation}},{key:\"releaseNode\",value:function releaseNode(){if(this.lockedOnNodeId!==undefined&&this.viewFunction!==undefined){this.body.emitter.off(\"initRedraw\",this.viewFunction);this.lockedOnNodeId=undefined;this.lockedOnNodeOffset=undefined}}},{key:\"_transitionRedraw\",value:function _transitionRedraw(){var finished=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;this.easingTime+=this.animationSpeed;this.easingTime=finished===true?1:this.easingTime;var progress=util.easingFunctions[this.animationEasingFunction](this.easingTime);this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*progress;this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*progress,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*progress};if(this.easingTime>=1){this.body.emitter.off(\"initRedraw\",this.viewFunction);this.easingTime=0;if(this.lockedOnNodeId!=undefined){this.viewFunction=this._lockedRedraw.bind(this);this.body.emitter.on(\"initRedraw\",this.viewFunction)}this.body.emitter.emit(\"animationFinished\")}}},{key:\"getScale\",value:function getScale(){return this.body.view.scale}},{key:\"getViewPosition\",value:function getViewPosition(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]);return View}();exports[\"default\"]=View},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var NavigationHandler=__webpack_require__(233)[\"default\"];var Popup=__webpack_require__(104)[\"default\"];var InteractionHandler=function(){function InteractionHandler(body,canvas,selectionHandler){(0,_classCallCheck3[\"default\"])(this,InteractionHandler);this.body=body;this.canvas=canvas;this.selectionHandler=selectionHandler;this.navigationHandler=new NavigationHandler(body,canvas);this.body.eventListeners.onTap=this.onTap.bind(this);this.body.eventListeners.onTouch=this.onTouch.bind(this);this.body.eventListeners.onDoubleTap=this.onDoubleTap.bind(this);this.body.eventListeners.onHold=this.onHold.bind(this);this.body.eventListeners.onDragStart=this.onDragStart.bind(this);this.body.eventListeners.onDrag=this.onDrag.bind(this);this.body.eventListeners.onDragEnd=this.onDragEnd.bind(this);this.body.eventListeners.onMouseWheel=this.onMouseWheel.bind(this);this.body.eventListeners.onPinch=this.onPinch.bind(this);this.body.eventListeners.onMouseMove=this.onMouseMove.bind(this);this.body.eventListeners.onRelease=this.onRelease.bind(this);this.body.eventListeners.onContext=this.onContext.bind(this);this.touchTime=0;this.drag={};this.pinch={};this.popup=undefined;this.popupObj=undefined;this.popupTimer=undefined;this.body.functions.getPointer=this.getPointer.bind(this);this.options={};this.defaultOptions={dragNodes:true,dragView:true,hover:false,keyboard:{enabled:false,speed:{x:10,y:10,zoom:.02},bindToWindow:true},navigationButtons:false,tooltipDelay:300,zoomView:true};util.extend(this.options,this.defaultOptions);this.bindEventListeners()}(0,_createClass3[\"default\"])(InteractionHandler,[{key:\"bindEventListeners\",value:function bindEventListeners(){var _this=this;this.body.emitter.on(\"destroy\",function(){clearTimeout(_this.popupTimer);delete _this.body.functions.getPointer})}},{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){var fields=[\"hideEdgesOnDrag\",\"hideNodesOnDrag\",\"keyboard\",\"multiselect\",\"selectable\",\"selectConnectedEdges\"];util.selectiveNotDeepExtend(fields,this.options,options);util.mergeOptions(this.options,options,\"keyboard\");if(options.tooltip){util.extend(this.options.tooltip,options.tooltip);if(options.tooltip.color){this.options.tooltip.color=util.parseColor(options.tooltip.color)}}}this.navigationHandler.setOptions(this.options)}},{key:\"getPointer\",value:function getPointer(touch){return{x:touch.x-util.getAbsoluteLeft(this.canvas.frame.canvas),y:touch.y-util.getAbsoluteTop(this.canvas.frame.canvas)}}},{key:\"onTouch\",value:function onTouch(event){if((new Date).valueOf()-this.touchTime>50){this.drag.pointer=this.getPointer(event.center);this.drag.pinched=false;this.pinch.scale=this.body.view.scale;this.touchTime=(new Date).valueOf()}}},{key:\"onTap\",value:function onTap(event){var pointer=this.getPointer(event.center);var multiselect=this.selectionHandler.options.multiselect&&(event.changedPointers[0].ctrlKey||event.changedPointers[0].metaKey);this.checkSelectionChanges(pointer,event,multiselect);this.selectionHandler._generateClickEvent(\"click\",event,pointer)}},{key:\"onDoubleTap\",value:function onDoubleTap(event){var pointer=this.getPointer(event.center);this.selectionHandler._generateClickEvent(\"doubleClick\",event,pointer)}},{key:\"onHold\",value:function onHold(event){var pointer=this.getPointer(event.center);var multiselect=this.selectionHandler.options.multiselect;this.checkSelectionChanges(pointer,event,multiselect);this.selectionHandler._generateClickEvent(\"click\",event,pointer);this.selectionHandler._generateClickEvent(\"hold\",event,pointer)}},{key:\"onRelease\",value:function onRelease(event){if((new Date).valueOf()-this.touchTime>10){var pointer=this.getPointer(event.center);this.selectionHandler._generateClickEvent(\"release\",event,pointer);this.touchTime=(new Date).valueOf()}}},{key:\"onContext\",value:function onContext(event){var pointer=this.getPointer({x:event.clientX,y:event.clientY});this.selectionHandler._generateClickEvent(\"oncontext\",event,pointer)}},{key:\"checkSelectionChanges\",value:function checkSelectionChanges(pointer,event){var add=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var previousSelection=this.selectionHandler.getSelection();var selected=false;if(add===true){selected=this.selectionHandler.selectAdditionalOnPoint(pointer)}else{selected=this.selectionHandler.selectOnPoint(pointer)}var currentSelection=this.selectionHandler.getSelection();var deselectedItems=this._determineDifference(previousSelection,currentSelection);var selectedItems=this._determineDifference(currentSelection,previousSelection);if(deselectedItems.edges.length>0){this.selectionHandler._generateClickEvent(\"deselectEdge\",event,pointer,previousSelection);selected=true}if(deselectedItems.nodes.length>0){this.selectionHandler._generateClickEvent(\"deselectNode\",event,pointer,previousSelection);selected=true}if(selectedItems.nodes.length>0){this.selectionHandler._generateClickEvent(\"selectNode\",event,pointer);selected=true}if(selectedItems.edges.length>0){this.selectionHandler._generateClickEvent(\"selectEdge\",event,pointer);selected=true}if(selected===true){this.selectionHandler._generateClickEvent(\"select\",event,pointer)}}},{key:\"_determineDifference\",value:function _determineDifference(firstSet,secondSet){var arrayDiff=function arrayDiff(firstArr,secondArr){var result=[];for(var i=0;i<firstArr.length;i++){var value=firstArr[i];if(secondArr.indexOf(value)===-1){result.push(value)}}return result};return{nodes:arrayDiff(firstSet.nodes,secondSet.nodes),edges:arrayDiff(firstSet.edges,secondSet.edges)}}},{key:\"onDragStart\",value:function onDragStart(event){if(this.drag.pointer===undefined){this.onTouch(event)}var node=this.selectionHandler.getNodeAt(this.drag.pointer);this.drag.dragging=true;this.drag.selection=[];this.drag.translation=util.extend({},this.body.view.translation);this.drag.nodeId=undefined;if(node!==undefined&&this.options.dragNodes===true){this.drag.nodeId=node.id;if(node.isSelected()===false){this.selectionHandler.unselectAll();this.selectionHandler.selectObject(node)}this.selectionHandler._generateClickEvent(\"dragStart\",event,this.drag.pointer);var selection=this.selectionHandler.selectionObj.nodes;for(var nodeId in selection){if(selection.hasOwnProperty(nodeId)){var object=selection[nodeId];var s={id:object.id,node:object,x:object.x,y:object.y,xFixed:object.options.fixed.x,yFixed:object.options.fixed.y};object.options.fixed.x=true;object.options.fixed.y=true;this.drag.selection.push(s)}}}else{this.selectionHandler._generateClickEvent(\"dragStart\",event,this.drag.pointer,undefined,true)}}},{key:\"onDrag\",value:function onDrag(event){var _this2=this;if(this.drag.pinched===true){return}this.body.emitter.emit(\"unlockNode\");var pointer=this.getPointer(event.center);var selection=this.drag.selection;if(selection&&selection.length&&this.options.dragNodes===true){this.selectionHandler._generateClickEvent(\"dragging\",event,pointer);var deltaX=pointer.x-this.drag.pointer.x;var deltaY=pointer.y-this.drag.pointer.y;selection.forEach(function(selection){var node=selection.node;if(selection.xFixed===false){node.x=_this2.canvas._XconvertDOMtoCanvas(_this2.canvas._XconvertCanvasToDOM(selection.x)+deltaX)}if(selection.yFixed===false){node.y=_this2.canvas._YconvertDOMtoCanvas(_this2.canvas._YconvertCanvasToDOM(selection.y)+deltaY)}});this.body.emitter.emit(\"startSimulation\")}else{if(this.options.dragView===true){this.selectionHandler._generateClickEvent(\"dragging\",event,pointer,undefined,true);if(this.drag.pointer===undefined){this.onDragStart(event);return}var diffX=pointer.x-this.drag.pointer.x;var diffY=pointer.y-this.drag.pointer.y;this.body.view.translation={x:this.drag.translation.x+diffX,y:this.drag.translation.y+diffY};this.body.emitter.emit(\"_requestRedraw\")}}}},{key:\"onDragEnd\",value:function onDragEnd(event){this.drag.dragging=false;var selection=this.drag.selection;if(selection&&selection.length){selection.forEach(function(s){s.node.options.fixed.x=s.xFixed;s.node.options.fixed.y=s.yFixed});this.selectionHandler._generateClickEvent(\"dragEnd\",event,this.getPointer(event.center));this.body.emitter.emit(\"startSimulation\")}else{this.selectionHandler._generateClickEvent(\"dragEnd\",event,this.getPointer(event.center),undefined,true);this.body.emitter.emit(\"_requestRedraw\")}}},{key:\"onPinch\",value:function onPinch(event){var pointer=this.getPointer(event.center);this.drag.pinched=true;if(this.pinch[\"scale\"]===undefined){this.pinch.scale=1}var scale=this.pinch.scale*event.scale;this.zoom(scale,pointer)}},{key:\"zoom\",value:function zoom(scale,pointer){if(this.options.zoomView===true){var scaleOld=this.body.view.scale;if(scale<1e-5){scale=1e-5}if(scale>10){scale=10}var preScaleDragPointer=undefined;if(this.drag!==undefined){if(this.drag.dragging===true){preScaleDragPointer=this.canvas.DOMtoCanvas(this.drag.pointer)}}var translation=this.body.view.translation;var scaleFrac=scale/scaleOld;var tx=(1-scaleFrac)*pointer.x+translation.x*scaleFrac;var ty=(1-scaleFrac)*pointer.y+translation.y*scaleFrac;this.body.view.scale=scale;this.body.view.translation={x:tx,y:ty};if(preScaleDragPointer!=undefined){var postScaleDragPointer=this.canvas.canvasToDOM(preScaleDragPointer);this.drag.pointer.x=postScaleDragPointer.x;this.drag.pointer.y=postScaleDragPointer.y}this.body.emitter.emit(\"_requestRedraw\");if(scaleOld<scale){this.body.emitter.emit(\"zoom\",{direction:\"+\",scale:this.body.view.scale,pointer:pointer})}else{this.body.emitter.emit(\"zoom\",{direction:\"-\",scale:this.body.view.scale,pointer:pointer})}}}},{key:\"onMouseWheel\",value:function onMouseWheel(event){if(this.options.zoomView===true){var delta=0;if(event.wheelDelta){delta=event.wheelDelta/120}else if(event.detail){delta=-event.detail/3}if(delta!==0){var scale=this.body.view.scale;var zoom=delta/10;if(delta<0){zoom=zoom/(1-zoom)}scale*=1+zoom;var pointer=this.getPointer({x:event.clientX,y:event.clientY});this.zoom(scale,pointer)}event.preventDefault()}}},{key:\"onMouseMove\",value:function onMouseMove(event){var _this3=this;var pointer=this.getPointer({x:event.clientX,y:event.clientY});var popupVisible=false;if(this.popup!==undefined){if(this.popup.hidden===false){this._checkHidePopup(pointer)}if(this.popup.hidden===false){popupVisible=true;this.popup.setPosition(pointer.x+3,pointer.y-5);this.popup.show()}}if(this.options.keyboard.bindToWindow===false&&this.options.keyboard.enabled===true){this.canvas.frame.focus()}if(popupVisible===false){if(this.popupTimer!==undefined){clearInterval(this.popupTimer);this.popupTimer=undefined}if(!this.drag.dragging){this.popupTimer=setTimeout(function(){return _this3._checkShowPopup(pointer)},this.options.tooltipDelay)}}if(this.options.hover===true){this.selectionHandler.hoverObject(event,pointer)}}},{key:\"_checkShowPopup\",value:function _checkShowPopup(pointer){var x=this.canvas._XconvertDOMtoCanvas(pointer.x);var y=this.canvas._YconvertDOMtoCanvas(pointer.y);var pointerObj={left:x,top:y,right:x,bottom:y};var previousPopupObjId=this.popupObj===undefined?undefined:this.popupObj.id;var nodeUnderCursor=false;var popupType=\"node\";if(this.popupObj===undefined){var nodeIndices=this.body.nodeIndices;var nodes=this.body.nodes;var node=void 0;var overlappingNodes=[];for(var i=0;i<nodeIndices.length;i++){node=nodes[nodeIndices[i]];if(node.isOverlappingWith(pointerObj)===true){if(node.getTitle()!==undefined){overlappingNodes.push(nodeIndices[i])}}}if(overlappingNodes.length>0){this.popupObj=nodes[overlappingNodes[overlappingNodes.length-1]];nodeUnderCursor=true}}if(this.popupObj===undefined&&nodeUnderCursor===false){var edgeIndices=this.body.edgeIndices;var edges=this.body.edges;var edge=void 0;var overlappingEdges=[];for(var _i=0;_i<edgeIndices.length;_i++){edge=edges[edgeIndices[_i]];if(edge.isOverlappingWith(pointerObj)===true){if(edge.connected===true&&edge.getTitle()!==undefined){overlappingEdges.push(edgeIndices[_i])}}}if(overlappingEdges.length>0){this.popupObj=edges[overlappingEdges[overlappingEdges.length-1]];popupType=\"edge\"}}if(this.popupObj!==undefined){if(this.popupObj.id!==previousPopupObjId){if(this.popup===undefined){this.popup=new Popup(this.canvas.frame)}this.popup.popupTargetType=popupType;this.popup.popupTargetId=this.popupObj.id;this.popup.setPosition(pointer.x+3,pointer.y-5);this.popup.setText(this.popupObj.getTitle());this.popup.show();this.body.emitter.emit(\"showPopup\",this.popupObj.id)}}else{if(this.popup!==undefined){this.popup.hide();this.body.emitter.emit(\"hidePopup\")}}}},{key:\"_checkHidePopup\",value:function _checkHidePopup(pointer){var pointerObj=this.selectionHandler._pointerToPositionObject(pointer);var stillOnObj=false;if(this.popup.popupTargetType===\"node\"){if(this.body.nodes[this.popup.popupTargetId]!==undefined){stillOnObj=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(pointerObj);if(stillOnObj===true){var overNode=this.selectionHandler.getNodeAt(pointer);stillOnObj=overNode===undefined?false:overNode.id===this.popup.popupTargetId}}}else{if(this.selectionHandler.getNodeAt(pointer)===undefined){if(this.body.edges[this.popup.popupTargetId]!==undefined){stillOnObj=this.body.edges[this.popup.popupTargetId].isOverlappingWith(pointerObj)}}}if(stillOnObj===false){this.popupObj=undefined;this.popup.hide();this.body.emitter.emit(\"hidePopup\")}}}]);return InteractionHandler}();exports[\"default\"]=InteractionHandler},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Hammer=__webpack_require__(10);var hammerUtil=__webpack_require__(37);var keycharm=__webpack_require__(35);var NavigationHandler=function(){function NavigationHandler(body,canvas){var _this=this;(0,_classCallCheck3[\"default\"])(this,NavigationHandler);this.body=body;this.canvas=canvas;this.iconsCreated=false;this.navigationHammers=[];this.boundFunctions={};this.touchTime=0;this.activated=false;this.body.emitter.on(\"activate\",function(){_this.activated=true;_this.configureKeyboardBindings()});this.body.emitter.on(\"deactivate\",function(){_this.activated=false;_this.configureKeyboardBindings()});this.body.emitter.on(\"destroy\",function(){if(_this.keycharm!==undefined){_this.keycharm.destroy()}});this.options={}}(0,_createClass3[\"default\"])(NavigationHandler,[{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){this.options=options;this.create()}}},{key:\"create\",value:function create(){if(this.options.navigationButtons===true){if(this.iconsCreated===false){this.loadNavigationElements()}}else if(this.iconsCreated===true){this.cleanNavigation()}this.configureKeyboardBindings()}},{key:\"cleanNavigation\",value:function cleanNavigation(){if(this.navigationHammers.length!=0){for(var i=0;i<this.navigationHammers.length;i++){this.navigationHammers[i].destroy()}this.navigationHammers=[]}if(this.navigationDOM&&this.navigationDOM[\"wrapper\"]&&this.navigationDOM[\"wrapper\"].parentNode){this.navigationDOM[\"wrapper\"].parentNode.removeChild(this.navigationDOM[\"wrapper\"])}this.iconsCreated=false}},{key:\"loadNavigationElements\",value:function loadNavigationElements(){var _this2=this;this.cleanNavigation();this.navigationDOM={};var navigationDivs=[\"up\",\"down\",\"left\",\"right\",\"zoomIn\",\"zoomOut\",\"zoomExtends\"];var navigationDivActions=[\"_moveUp\",\"_moveDown\",\"_moveLeft\",\"_moveRight\",\"_zoomIn\",\"_zoomOut\",\"_fit\"];this.navigationDOM[\"wrapper\"]=document.createElement(\"div\");this.navigationDOM[\"wrapper\"].className=\"vis-navigation\";this.canvas.frame.appendChild(this.navigationDOM[\"wrapper\"]);for(var i=0;i<navigationDivs.length;i++){this.navigationDOM[navigationDivs[i]]=document.createElement(\"div\");this.navigationDOM[navigationDivs[i]].className=\"vis-button vis-\"+navigationDivs[i];this.navigationDOM[\"wrapper\"].appendChild(this.navigationDOM[navigationDivs[i]]);var hammer=new Hammer(this.navigationDOM[navigationDivs[i]]);if(navigationDivActions[i]===\"_fit\"){hammerUtil.onTouch(hammer,this._fit.bind(this))}else{hammerUtil.onTouch(hammer,this.bindToRedraw.bind(this,navigationDivActions[i]))}this.navigationHammers.push(hammer)}var hammerFrame=new Hammer(this.canvas.frame);hammerUtil.onRelease(hammerFrame,function(){_this2._stopMovement()});this.navigationHammers.push(hammerFrame);this.iconsCreated=true}},{key:\"bindToRedraw\",value:function bindToRedraw(action){if(this.boundFunctions[action]===undefined){this.boundFunctions[action]=this[action].bind(this);this.body.emitter.on(\"initRedraw\",this.boundFunctions[action]);this.body.emitter.emit(\"_startRendering\")}}},{key:\"unbindFromRedraw\",value:function unbindFromRedraw(action){if(this.boundFunctions[action]!==undefined){this.body.emitter.off(\"initRedraw\",this.boundFunctions[action]);this.body.emitter.emit(\"_stopRendering\");delete this.boundFunctions[action]}}},{key:\"_fit\",value:function _fit(){if((new Date).valueOf()-this.touchTime>700){this.body.emitter.emit(\"fit\",{duration:700});this.touchTime=(new Date).valueOf()}}},{key:\"_stopMovement\",value:function _stopMovement(){for(var boundAction in this.boundFunctions){if(this.boundFunctions.hasOwnProperty(boundAction)){this.body.emitter.off(\"initRedraw\",this.boundFunctions[boundAction]);this.body.emitter.emit(\"_stopRendering\")}}this.boundFunctions={}}},{key:\"_moveUp\",value:function _moveUp(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:\"_moveDown\",value:function _moveDown(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:\"_moveLeft\",value:function _moveLeft(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:\"_moveRight\",value:function _moveRight(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:\"_zoomIn\",value:function _zoomIn(){var scaleOld=this.body.view.scale;var scale=this.body.view.scale*(1+this.options.keyboard.speed.zoom);var translation=this.body.view.translation;var scaleFrac=scale/scaleOld;var tx=(1-scaleFrac)*this.canvas.canvasViewCenter.x+translation.x*scaleFrac;var ty=(1-scaleFrac)*this.canvas.canvasViewCenter.y+translation.y*scaleFrac;this.body.view.scale=scale;this.body.view.translation={x:tx,y:ty};this.body.emitter.emit(\"zoom\",{direction:\"+\",scale:this.body.view.scale,pointer:null})}},{key:\"_zoomOut\",value:function _zoomOut(){var scaleOld=this.body.view.scale;var scale=this.body.view.scale/(1+this.options.keyboard.speed.zoom);var translation=this.body.view.translation;var scaleFrac=scale/scaleOld;var tx=(1-scaleFrac)*this.canvas.canvasViewCenter.x+translation.x*scaleFrac;var ty=(1-scaleFrac)*this.canvas.canvasViewCenter.y+translation.y*scaleFrac;this.body.view.scale=scale;this.body.view.translation={x:tx,y:ty};this.body.emitter.emit(\"zoom\",{direction:\"-\",scale:this.body.view.scale,pointer:null})}},{key:\"configureKeyboardBindings\",value:function configureKeyboardBindings(){var _this3=this;if(this.keycharm!==undefined){this.keycharm.destroy()}if(this.options.keyboard.enabled===true){if(this.options.keyboard.bindToWindow===true){this.keycharm=keycharm({container:window,preventDefault:true})}else{this.keycharm=keycharm({container:this.canvas.frame,preventDefault:true})}this.keycharm.reset();if(this.activated===true){this.keycharm.bind(\"up\",function(){_this3.bindToRedraw(\"_moveUp\")},\"keydown\");this.keycharm.bind(\"down\",function(){_this3.bindToRedraw(\"_moveDown\")},\"keydown\");this.keycharm.bind(\"left\",function(){_this3.bindToRedraw(\"_moveLeft\")},\"keydown\");this.keycharm.bind(\"right\",function(){_this3.bindToRedraw(\"_moveRight\")},\"keydown\");this.keycharm.bind(\"=\",function(){_this3.bindToRedraw(\"_zoomIn\")},\"keydown\");this.keycharm.bind(\"num+\",function(){_this3.bindToRedraw(\"_zoomIn\")},\"keydown\");this.keycharm.bind(\"num-\",function(){_this3.bindToRedraw(\"_zoomOut\")},\"keydown\");this.keycharm.bind(\"-\",function(){_this3.bindToRedraw(\"_zoomOut\")},\"keydown\");this.keycharm.bind(\"[\",function(){_this3.bindToRedraw(\"_zoomOut\")},\"keydown\");this.keycharm.bind(\"]\",function(){_this3.bindToRedraw(\"_zoomIn\")},\"keydown\");this.keycharm.bind(\"pageup\",function(){_this3.bindToRedraw(\"_zoomIn\")},\"keydown\");this.keycharm.bind(\"pagedown\",function(){_this3.bindToRedraw(\"_zoomOut\")},\"keydown\");this.keycharm.bind(\"up\",function(){_this3.unbindFromRedraw(\"_moveUp\")},\"keyup\");this.keycharm.bind(\"down\",function(){_this3.unbindFromRedraw(\"_moveDown\")},\"keyup\");this.keycharm.bind(\"left\",function(){_this3.unbindFromRedraw(\"_moveLeft\")},\"keyup\");this.keycharm.bind(\"right\",function(){_this3.unbindFromRedraw(\"_moveRight\")},\"keyup\");this.keycharm.bind(\"=\",function(){_this3.unbindFromRedraw(\"_zoomIn\")},\"keyup\");this.keycharm.bind(\"num+\",function(){_this3.unbindFromRedraw(\"_zoomIn\")},\"keyup\");this.keycharm.bind(\"num-\",function(){_this3.unbindFromRedraw(\"_zoomOut\")},\"keyup\");this.keycharm.bind(\"-\",function(){_this3.unbindFromRedraw(\"_zoomOut\")},\"keyup\");this.keycharm.bind(\"[\",function(){_this3.unbindFromRedraw(\"_zoomOut\")},\"keyup\");this.keycharm.bind(\"]\",function(){_this3.unbindFromRedraw(\"_zoomIn\")},\"keyup\");this.keycharm.bind(\"pageup\",function(){_this3.unbindFromRedraw(\"_zoomIn\")},\"keyup\");this.keycharm.bind(\"pagedown\",function(){_this3.unbindFromRedraw(\"_zoomOut\")},\"keyup\")}}}}]);return NavigationHandler}();exports[\"default\"]=NavigationHandler},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var Node=__webpack_require__(47)[\"default\"];var Edge=__webpack_require__(74)[\"default\"];var util=__webpack_require__(2);var SelectionHandler=function(){function SelectionHandler(body,canvas){var _this=this;(0,_classCallCheck3[\"default\"])(this,SelectionHandler);this.body=body;this.canvas=canvas;this.selectionObj={nodes:[],edges:[]};this.hoverObj={nodes:{},edges:{}};this.options={};this.defaultOptions={multiselect:false,selectable:true,selectConnectedEdges:true,hoverConnectedEdges:true};util.extend(this.options,this.defaultOptions);this.body.emitter.on(\"_dataChanged\",function(){_this.updateSelection()})}(0,_createClass3[\"default\"])(SelectionHandler,[{key:\"setOptions\",value:function setOptions(options){if(options!==undefined){var fields=[\"multiselect\",\"hoverConnectedEdges\",\"selectable\",\"selectConnectedEdges\"];util.selectiveDeepExtend(fields,this.options,options)}}},{key:\"selectOnPoint\",value:function selectOnPoint(pointer){var selected=false;if(this.options.selectable===true){var obj=this.getNodeAt(pointer)||this.getEdgeAt(pointer);this.unselectAll();if(obj!==undefined){selected=this.selectObject(obj)}this.body.emitter.emit(\"_requestRedraw\")}return selected}},{key:\"selectAdditionalOnPoint\",value:function selectAdditionalOnPoint(pointer){var selectionChanged=false;if(this.options.selectable===true){var obj=this.getNodeAt(pointer)||this.getEdgeAt(pointer);if(obj!==undefined){selectionChanged=true;if(obj.isSelected()===true){this.deselectObject(obj)}else{this.selectObject(obj)}this.body.emitter.emit(\"_requestRedraw\")}}return selectionChanged}},{key:\"_initBaseEvent\",value:function _initBaseEvent(event,pointer){var properties={};properties[\"pointer\"]={DOM:{\nx:pointer.x,y:pointer.y},canvas:this.canvas.DOMtoCanvas(pointer)};properties[\"event\"]=event;return properties}},{key:\"_generateClickEvent\",value:function _generateClickEvent(eventType,event,pointer,oldSelection){var emptySelection=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var properties=this._initBaseEvent(event,pointer);if(emptySelection===true){properties.nodes=[];properties.edges=[]}else{var tmp=this.getSelection();properties.nodes=tmp.nodes;properties.edges=tmp.edges}if(oldSelection!==undefined){properties[\"previousSelection\"]=oldSelection}if(eventType==\"click\"){properties.items=this.getClickedItems(pointer)}this.body.emitter.emit(eventType,properties)}},{key:\"selectObject\",value:function selectObject(obj){var highlightEdges=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.options.selectConnectedEdges;if(obj!==undefined){if(obj instanceof Node){if(highlightEdges===true){this._selectConnectedEdges(obj)}}obj.select();this._addToSelection(obj);return true}return false}},{key:\"deselectObject\",value:function deselectObject(obj){if(obj.isSelected()===true){obj.selected=false;this._removeFromSelection(obj)}}},{key:\"_getAllNodesOverlappingWith\",value:function _getAllNodesOverlappingWith(object){var overlappingNodes=[];var nodes=this.body.nodes;for(var i=0;i<this.body.nodeIndices.length;i++){var nodeId=this.body.nodeIndices[i];if(nodes[nodeId].isOverlappingWith(object)){overlappingNodes.push(nodeId)}}return overlappingNodes}},{key:\"_pointerToPositionObject\",value:function _pointerToPositionObject(pointer){var canvasPos=this.canvas.DOMtoCanvas(pointer);return{left:canvasPos.x-1,top:canvasPos.y+1,right:canvasPos.x+1,bottom:canvasPos.y-1}}},{key:\"getNodeAt\",value:function getNodeAt(pointer){var returnNode=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var positionObject=this._pointerToPositionObject(pointer);var overlappingNodes=this._getAllNodesOverlappingWith(positionObject);if(overlappingNodes.length>0){if(returnNode===true){return this.body.nodes[overlappingNodes[overlappingNodes.length-1]]}else{return overlappingNodes[overlappingNodes.length-1]}}else{return undefined}}},{key:\"_getEdgesOverlappingWith\",value:function _getEdgesOverlappingWith(object,overlappingEdges){var edges=this.body.edges;for(var i=0;i<this.body.edgeIndices.length;i++){var edgeId=this.body.edgeIndices[i];if(edges[edgeId].isOverlappingWith(object)){overlappingEdges.push(edgeId)}}}},{key:\"_getAllEdgesOverlappingWith\",value:function _getAllEdgesOverlappingWith(object){var overlappingEdges=[];this._getEdgesOverlappingWith(object,overlappingEdges);return overlappingEdges}},{key:\"getEdgeAt\",value:function getEdgeAt(pointer){var returnEdge=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var canvasPos=this.canvas.DOMtoCanvas(pointer);var mindist=10;var overlappingEdge=null;var edges=this.body.edges;for(var i=0;i<this.body.edgeIndices.length;i++){var edgeId=this.body.edgeIndices[i];var edge=edges[edgeId];if(edge.connected){var xFrom=edge.from.x;var yFrom=edge.from.y;var xTo=edge.to.x;var yTo=edge.to.y;var dist=edge.edgeType.getDistanceToEdge(xFrom,yFrom,xTo,yTo,canvasPos.x,canvasPos.y);if(dist<mindist){overlappingEdge=edgeId;mindist=dist}}}if(overlappingEdge!==null){if(returnEdge===true){return this.body.edges[overlappingEdge]}else{return overlappingEdge}}else{return undefined}}},{key:\"_addToSelection\",value:function _addToSelection(obj){if(obj instanceof Node){this.selectionObj.nodes[obj.id]=obj}else{this.selectionObj.edges[obj.id]=obj}}},{key:\"_addToHover\",value:function _addToHover(obj){if(obj instanceof Node){this.hoverObj.nodes[obj.id]=obj}else{this.hoverObj.edges[obj.id]=obj}}},{key:\"_removeFromSelection\",value:function _removeFromSelection(obj){if(obj instanceof Node){delete this.selectionObj.nodes[obj.id];this._unselectConnectedEdges(obj)}else{delete this.selectionObj.edges[obj.id]}}},{key:\"unselectAll\",value:function unselectAll(){for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){this.selectionObj.nodes[nodeId].unselect()}}for(var edgeId in this.selectionObj.edges){if(this.selectionObj.edges.hasOwnProperty(edgeId)){this.selectionObj.edges[edgeId].unselect()}}this.selectionObj={nodes:{},edges:{}}}},{key:\"_getSelectedNodeCount\",value:function _getSelectedNodeCount(){var count=0;for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){count+=1}}return count}},{key:\"_getSelectedNode\",value:function _getSelectedNode(){for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){return this.selectionObj.nodes[nodeId]}}return undefined}},{key:\"_getSelectedEdge\",value:function _getSelectedEdge(){for(var edgeId in this.selectionObj.edges){if(this.selectionObj.edges.hasOwnProperty(edgeId)){return this.selectionObj.edges[edgeId]}}return undefined}},{key:\"_getSelectedEdgeCount\",value:function _getSelectedEdgeCount(){var count=0;for(var edgeId in this.selectionObj.edges){if(this.selectionObj.edges.hasOwnProperty(edgeId)){count+=1}}return count}},{key:\"_getSelectedObjectCount\",value:function _getSelectedObjectCount(){var count=0;for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){count+=1}}for(var edgeId in this.selectionObj.edges){if(this.selectionObj.edges.hasOwnProperty(edgeId)){count+=1}}return count}},{key:\"_selectionIsEmpty\",value:function _selectionIsEmpty(){for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){return false}}for(var edgeId in this.selectionObj.edges){if(this.selectionObj.edges.hasOwnProperty(edgeId)){return false}}return true}},{key:\"_clusterInSelection\",value:function _clusterInSelection(){for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){if(this.selectionObj.nodes[nodeId].clusterSize>1){return true}}}return false}},{key:\"_selectConnectedEdges\",value:function _selectConnectedEdges(node){for(var i=0;i<node.edges.length;i++){var edge=node.edges[i];edge.select();this._addToSelection(edge)}}},{key:\"_hoverConnectedEdges\",value:function _hoverConnectedEdges(node){for(var i=0;i<node.edges.length;i++){var edge=node.edges[i];edge.hover=true;this._addToHover(edge)}}},{key:\"_unselectConnectedEdges\",value:function _unselectConnectedEdges(node){for(var i=0;i<node.edges.length;i++){var edge=node.edges[i];edge.unselect();this._removeFromSelection(edge)}}},{key:\"emitBlurEvent\",value:function emitBlurEvent(event,pointer,object){var properties=this._initBaseEvent(event,pointer);if(object.hover===true){object.hover=false;if(object instanceof Node){properties.node=object.id;this.body.emitter.emit(\"blurNode\",properties)}else{properties.edge=object.id;this.body.emitter.emit(\"blurEdge\",properties)}}}},{key:\"emitHoverEvent\",value:function emitHoverEvent(event,pointer,object){var properties=this._initBaseEvent(event,pointer);var hoverChanged=false;if(object.hover===false){object.hover=true;this._addToHover(object);hoverChanged=true;if(object instanceof Node){properties.node=object.id;this.body.emitter.emit(\"hoverNode\",properties)}else{properties.edge=object.id;this.body.emitter.emit(\"hoverEdge\",properties)}}return hoverChanged}},{key:\"hoverObject\",value:function hoverObject(event,pointer){var object=this.getNodeAt(pointer);if(object===undefined){object=this.getEdgeAt(pointer)}var hoverChanged=false;for(var nodeId in this.hoverObj.nodes){if(this.hoverObj.nodes.hasOwnProperty(nodeId)){if(object===undefined||object instanceof Node&&object.id!=nodeId||object instanceof Edge){this.emitBlurEvent(event,pointer,this.hoverObj.nodes[nodeId]);delete this.hoverObj.nodes[nodeId];hoverChanged=true}}}for(var edgeId in this.hoverObj.edges){if(this.hoverObj.edges.hasOwnProperty(edgeId)){if(hoverChanged===true){this.hoverObj.edges[edgeId].hover=false;delete this.hoverObj.edges[edgeId]}else if(object===undefined||object instanceof Edge&&object.id!=edgeId||object instanceof Node&&!object.hover){this.emitBlurEvent(event,pointer,this.hoverObj.edges[edgeId]);delete this.hoverObj.edges[edgeId];hoverChanged=true}}}if(object!==undefined){hoverChanged=hoverChanged||this.emitHoverEvent(event,pointer,object);if(object instanceof Node&&this.options.hoverConnectedEdges===true){this._hoverConnectedEdges(object)}}if(hoverChanged===true){this.body.emitter.emit(\"_requestRedraw\")}}},{key:\"getSelection\",value:function getSelection(){var nodeIds=this.getSelectedNodes();var edgeIds=this.getSelectedEdges();return{nodes:nodeIds,edges:edgeIds}}},{key:\"getSelectedNodes\",value:function getSelectedNodes(){var idArray=[];if(this.options.selectable===true){for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){idArray.push(this.selectionObj.nodes[nodeId].id)}}}return idArray}},{key:\"getSelectedEdges\",value:function getSelectedEdges(){var idArray=[];if(this.options.selectable===true){for(var edgeId in this.selectionObj.edges){if(this.selectionObj.edges.hasOwnProperty(edgeId)){idArray.push(this.selectionObj.edges[edgeId].id)}}}return idArray}},{key:\"setSelection\",value:function setSelection(selection){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=void 0,id=void 0;if(!selection||!selection.nodes&&!selection.edges)throw\"Selection must be an object with nodes and/or edges properties\";if(options.unselectAll||options.unselectAll===undefined){this.unselectAll()}if(selection.nodes){for(i=0;i<selection.nodes.length;i++){id=selection.nodes[i];var node=this.body.nodes[id];if(!node){throw new RangeError('Node with id \"'+id+'\" not found')}this.selectObject(node,options.highlightEdges)}}if(selection.edges){for(i=0;i<selection.edges.length;i++){id=selection.edges[i];var edge=this.body.edges[id];if(!edge){throw new RangeError('Edge with id \"'+id+'\" not found')}this.selectObject(edge)}}this.body.emitter.emit(\"_requestRedraw\")}},{key:\"selectNodes\",value:function selectNodes(selection){var highlightEdges=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(!selection||selection.length===undefined)throw\"Selection must be an array with ids\";this.setSelection({nodes:selection},{highlightEdges:highlightEdges})}},{key:\"selectEdges\",value:function selectEdges(selection){if(!selection||selection.length===undefined)throw\"Selection must be an array with ids\";this.setSelection({edges:selection})}},{key:\"updateSelection\",value:function updateSelection(){for(var nodeId in this.selectionObj.nodes){if(this.selectionObj.nodes.hasOwnProperty(nodeId)){if(!this.body.nodes.hasOwnProperty(nodeId)){delete this.selectionObj.nodes[nodeId]}}}for(var edgeId in this.selectionObj.edges){if(this.selectionObj.edges.hasOwnProperty(edgeId)){if(!this.body.edges.hasOwnProperty(edgeId)){delete this.selectionObj.edges[edgeId]}}}}},{key:\"getClickedItems\",value:function getClickedItems(pointer){var point=this.canvas.DOMtoCanvas(pointer);var items=[];var nodeIndices=this.body.nodeIndices;var nodes=this.body.nodes;for(var i=nodeIndices.length-1;i>=0;i--){var node=nodes[nodeIndices[i]];var ret=node.getItemsOnPoint(point);items.push.apply(items,ret)}var edgeIndices=this.body.edgeIndices;var edges=this.body.edges;for(var _i=edgeIndices.length-1;_i>=0;_i--){var edge=edges[edgeIndices[_i]];var _ret=edge.getItemsOnPoint(point);items.push.apply(items,_ret)}return items}}]);return SelectionHandler}();exports[\"default\"]=SelectionHandler},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _slicedToArray2=__webpack_require__(30);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var NetworkUtil=__webpack_require__(76)[\"default\"];var _require=__webpack_require__(236),HorizontalStrategy=_require.HorizontalStrategy,VerticalStrategy=_require.VerticalStrategy;var HierarchicalStatus=function(){function HierarchicalStatus(){(0,_classCallCheck3[\"default\"])(this,HierarchicalStatus);this.childrenReference={};this.parentReference={};this.trees={};this.distributionOrdering={};this.levels={};this.distributionIndex={};this.isTree=false;this.treeIndex=-1}(0,_createClass3[\"default\"])(HierarchicalStatus,[{key:\"addRelation\",value:function addRelation(parentNodeId,childNodeId){if(this.childrenReference[parentNodeId]===undefined){this.childrenReference[parentNodeId]=[]}this.childrenReference[parentNodeId].push(childNodeId);if(this.parentReference[childNodeId]===undefined){this.parentReference[childNodeId]=[]}this.parentReference[childNodeId].push(parentNodeId)}},{key:\"checkIfTree\",value:function checkIfTree(){for(var i in this.parentReference){if(this.parentReference[i].length>1){this.isTree=false;return}}this.isTree=true}},{key:\"numTrees\",value:function numTrees(){return this.treeIndex+1}},{key:\"setTreeIndex\",value:function setTreeIndex(node,treeId){if(treeId===undefined)return;if(this.trees[node.id]===undefined){this.trees[node.id]=treeId;this.treeIndex=Math.max(treeId,this.treeIndex)}}},{key:\"ensureLevel\",value:function ensureLevel(nodeId){if(this.levels[nodeId]===undefined){this.levels[nodeId]=0}}},{key:\"getMaxLevel\",value:function getMaxLevel(nodeId){var _this=this;var accumulator={};var _getMaxLevel=function _getMaxLevel(nodeId){if(accumulator[nodeId]!==undefined){return accumulator[nodeId]}var level=_this.levels[nodeId];if(_this.childrenReference[nodeId]){var children=_this.childrenReference[nodeId];if(children.length>0){for(var i=0;i<children.length;i++){level=Math.max(level,_getMaxLevel(children[i]))}}}accumulator[nodeId]=level;return level};return _getMaxLevel(nodeId)}},{key:\"levelDownstream\",value:function levelDownstream(nodeA,nodeB){if(this.levels[nodeB.id]===undefined){if(this.levels[nodeA.id]===undefined){this.levels[nodeA.id]=0}this.levels[nodeB.id]=this.levels[nodeA.id]+1}}},{key:\"setMinLevelToZero\",value:function setMinLevelToZero(nodes){var minLevel=1e9;for(var nodeId in nodes){if(nodes.hasOwnProperty(nodeId)){if(this.levels[nodeId]!==undefined){minLevel=Math.min(this.levels[nodeId],minLevel)}}}for(var _nodeId in nodes){if(nodes.hasOwnProperty(_nodeId)){if(this.levels[_nodeId]!==undefined){this.levels[_nodeId]-=minLevel}}}}},{key:\"getTreeSize\",value:function getTreeSize(nodes,index){var min_x=1e9;var max_x=-1e9;var min_y=1e9;var max_y=-1e9;for(var nodeId in this.trees){if(this.trees.hasOwnProperty(nodeId)){if(this.trees[nodeId]===index){var node=nodes[nodeId];min_x=Math.min(node.x,min_x);max_x=Math.max(node.x,max_x);min_y=Math.min(node.y,min_y);max_y=Math.max(node.y,max_y)}}}return{min_x:min_x,max_x:max_x,min_y:min_y,max_y:max_y}}},{key:\"hasSameParent\",value:function hasSameParent(node1,node2){var parents1=this.parentReference[node1.id];var parents2=this.parentReference[node2.id];if(parents1===undefined||parents2===undefined){return false}for(var i=0;i<parents1.length;i++){for(var j=0;j<parents2.length;j++){if(parents1[i]==parents2[j]){return true}}}return false}},{key:\"inSameSubNetwork\",value:function inSameSubNetwork(node1,node2){return this.trees[node1.id]===this.trees[node2.id]}},{key:\"getLevels\",value:function getLevels(){return(0,_keys2[\"default\"])(this.distributionOrdering)}},{key:\"addToOrdering\",value:function addToOrdering(node,level){if(this.distributionOrdering[level]===undefined){this.distributionOrdering[level]=[]}var isPresent=false;var curLevel=this.distributionOrdering[level];for(var n in curLevel){if(curLevel[n]===node){isPresent=true;break}}if(!isPresent){this.distributionOrdering[level].push(node);this.distributionIndex[node.id]=this.distributionOrdering[level].length-1}}}]);return HierarchicalStatus}();var LayoutEngine=function(){function LayoutEngine(body){(0,_classCallCheck3[\"default\"])(this,LayoutEngine);this.body=body;this.initialRandomSeed=Math.round(Math.random()*1e6);this.randomSeed=this.initialRandomSeed;this.setPhysics=false;this.options={};this.optionsBackup={physics:{}};this.defaultOptions={randomSeed:undefined,improvedLayout:true,hierarchical:{enabled:false,levelSeparation:150,nodeSpacing:100,treeSpacing:200,blockShifting:true,edgeMinimization:true,parentCentralization:true,direction:\"UD\",sortMethod:\"hubsize\"}};util.extend(this.options,this.defaultOptions);this.bindEventListeners()}(0,_createClass3[\"default\"])(LayoutEngine,[{key:\"bindEventListeners\",value:function bindEventListeners(){var _this2=this;this.body.emitter.on(\"_dataChanged\",function(){_this2.setupHierarchicalLayout()});this.body.emitter.on(\"_dataLoaded\",function(){_this2.layoutNetwork()});this.body.emitter.on(\"_resetHierarchicalLayout\",function(){_this2.setupHierarchicalLayout()});this.body.emitter.on(\"_adjustEdgesForHierarchicalLayout\",function(){if(_this2.options.hierarchical.enabled!==true){return}var type=_this2.direction.curveType();_this2.body.emitter.emit(\"_forceDisableDynamicCurves\",type,false)})}},{key:\"setOptions\",value:function setOptions(options,allOptions){if(options!==undefined){var hierarchical=this.options.hierarchical;var prevHierarchicalState=hierarchical.enabled;util.selectiveDeepExtend([\"randomSeed\",\"improvedLayout\"],this.options,options);util.mergeOptions(this.options,options,\"hierarchical\");if(options.randomSeed!==undefined){this.initialRandomSeed=options.randomSeed}if(hierarchical.enabled===true){if(prevHierarchicalState===true){this.body.emitter.emit(\"refresh\",true)}if(hierarchical.direction===\"RL\"||hierarchical.direction===\"DU\"){if(hierarchical.levelSeparation>0){hierarchical.levelSeparation*=-1}}else{if(hierarchical.levelSeparation<0){hierarchical.levelSeparation*=-1}}this.setDirectionStrategy();this.body.emitter.emit(\"_resetHierarchicalLayout\");return this.adaptAllOptionsForHierarchicalLayout(allOptions)}else{if(prevHierarchicalState===true){this.body.emitter.emit(\"refresh\");return util.deepExtend(allOptions,this.optionsBackup)}}}return allOptions}},{key:\"adaptAllOptionsForHierarchicalLayout\",value:function adaptAllOptionsForHierarchicalLayout(allOptions){if(this.options.hierarchical.enabled===true){var backupPhysics=this.optionsBackup.physics;if(allOptions.physics===undefined||allOptions.physics===true){allOptions.physics={enabled:backupPhysics.enabled===undefined?true:backupPhysics.enabled,solver:\"hierarchicalRepulsion\"};backupPhysics.enabled=backupPhysics.enabled===undefined?true:backupPhysics.enabled;backupPhysics.solver=backupPhysics.solver||\"barnesHut\"}else if((0,_typeof3[\"default\"])(allOptions.physics)===\"object\"){backupPhysics.enabled=allOptions.physics.enabled===undefined?true:allOptions.physics.enabled;backupPhysics.solver=allOptions.physics.solver||\"barnesHut\";allOptions.physics.solver=\"hierarchicalRepulsion\"}else if(allOptions.physics!==false){backupPhysics.solver=\"barnesHut\";allOptions.physics={solver:\"hierarchicalRepulsion\"}}var type=this.direction.curveType();if(allOptions.edges===undefined){this.optionsBackup.edges={smooth:{enabled:true,type:\"dynamic\"}};allOptions.edges={smooth:false}}else if(allOptions.edges.smooth===undefined){this.optionsBackup.edges={smooth:{enabled:true,type:\"dynamic\"}};allOptions.edges.smooth=false}else{if(typeof allOptions.edges.smooth===\"boolean\"){this.optionsBackup.edges={smooth:allOptions.edges.smooth};allOptions.edges.smooth={enabled:allOptions.edges.smooth,type:type}}else{var smooth=allOptions.edges.smooth;if(smooth.type!==undefined&&smooth.type!==\"dynamic\"){type=smooth.type}this.optionsBackup.edges={smooth:smooth.enabled===undefined?true:smooth.enabled,type:smooth.type===undefined?\"dynamic\":smooth.type,roundness:smooth.roundness===undefined?.5:smooth.roundness,forceDirection:smooth.forceDirection===undefined?false:smooth.forceDirection};allOptions.edges.smooth={enabled:smooth.enabled===undefined?true:smooth.enabled,type:type,roundness:smooth.roundness===undefined?.5:smooth.roundness,forceDirection:smooth.forceDirection===undefined?false:smooth.forceDirection}}}this.body.emitter.emit(\"_forceDisableDynamicCurves\",type)}return allOptions}},{key:\"seededRandom\",value:function seededRandom(){var x=Math.sin(this.randomSeed++)*1e4;return x-Math.floor(x)}},{key:\"positionInitially\",value:function positionInitially(nodesArray){if(this.options.hierarchical.enabled!==true){this.randomSeed=this.initialRandomSeed;var radius=nodesArray.length+50;for(var i=0;i<nodesArray.length;i++){var node=nodesArray[i];var angle=2*Math.PI*this.seededRandom();if(node.x===undefined){node.x=radius*Math.cos(angle)}if(node.y===undefined){node.y=radius*Math.sin(angle)}}}}},{key:\"layoutNetwork\",value:function layoutNetwork(){if(this.options.hierarchical.enabled!==true&&this.options.improvedLayout===true){var indices=this.body.nodeIndices;var positionDefined=0;for(var i=0;i<indices.length;i++){var node=this.body.nodes[indices[i]];if(node.predefinedPosition===true){positionDefined+=1}}if(positionDefined<.5*indices.length){var MAX_LEVELS=10;var level=0;var clusterThreshold=150;var clusterOptions={clusterNodeProperties:{shape:\"ellipse\",label:\"\",group:\"\",font:{multi:false}},clusterEdgeProperties:{label:\"\",font:{multi:false},smooth:{enabled:false}}};if(indices.length>clusterThreshold){var startLength=indices.length;while(indices.length>clusterThreshold&&level<=MAX_LEVELS){level+=1;var before=indices.length;if(level%3===0){this.body.modules.clustering.clusterBridges(clusterOptions)}else{this.body.modules.clustering.clusterOutliers(clusterOptions)}var after=indices.length;if(before==after&&level%3!==0){this._declusterAll();this.body.emitter.emit(\"_layoutFailed\");console.info(\"This network could not be positioned by this version of the improved layout algorithm.\"+\" Please disable improvedLayout for better performance.\");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*startLength)})}if(level>MAX_LEVELS){console.info(\"The clustering didn't succeed within the amount of interations allowed,\"+\" progressing with partial result.\")}this.body.modules.kamadaKawai.solve(indices,this.body.edgeIndices,true);this._shiftToCenter();var offset=70;for(var _i=0;_i<indices.length;_i++){var _node=this.body.nodes[indices[_i]];if(_node.predefinedPosition===false){_node.x+=(.5-this.seededRandom())*offset;_node.y+=(.5-this.seededRandom())*offset}}this._declusterAll();this.body.emitter.emit(\"_repositionBezierNodes\")}}}},{key:\"_shiftToCenter\",value:function _shiftToCenter(){var range=NetworkUtil.getRangeCore(this.body.nodes,this.body.nodeIndices);var center=NetworkUtil.findCenter(range);for(var i=0;i<this.body.nodeIndices.length;i++){var node=this.body.nodes[this.body.nodeIndices[i]];node.x-=center.x;node.y-=center.y}}},{key:\"_declusterAll\",value:function _declusterAll(){var clustersPresent=true;while(clustersPresent===true){clustersPresent=false;for(var i=0;i<this.body.nodeIndices.length;i++){if(this.body.nodes[this.body.nodeIndices[i]].isCluster===true){clustersPresent=true;this.body.modules.clustering.openCluster(this.body.nodeIndices[i],{},false)}}if(clustersPresent===true){this.body.emitter.emit(\"_dataChanged\")}}}},{key:\"getSeed\",value:function getSeed(){return this.initialRandomSeed}},{key:\"setupHierarchicalLayout\",value:function setupHierarchicalLayout(){if(this.options.hierarchical.enabled===true&&this.body.nodeIndices.length>0){var node=void 0,nodeId=void 0;var definedLevel=false;var undefinedLevel=false;this.lastNodeOnLevel={};this.hierarchical=new HierarchicalStatus;for(nodeId in this.body.nodes){if(this.body.nodes.hasOwnProperty(nodeId)){node=this.body.nodes[nodeId];if(node.options.level!==undefined){definedLevel=true;this.hierarchical.levels[nodeId]=node.options.level}else{undefinedLevel=true}}}if(undefinedLevel===true&&definedLevel===true){throw new Error(\"To use the hierarchical layout, nodes require either no predefined levels\"+\" or levels have to be defined for all nodes.\")}else{if(undefinedLevel===true){var sortMethod=this.options.hierarchical.sortMethod;if(sortMethod===\"hubsize\"){this._determineLevelsByHubsize()}else if(sortMethod===\"directed\"){this._determineLevelsDirected()}else if(sortMethod===\"custom\"){this._determineLevelsCustomCallback()}}for(var _nodeId2 in this.body.nodes){if(this.body.nodes.hasOwnProperty(_nodeId2)){this.hierarchical.ensureLevel(_nodeId2)}}var distribution=this._getDistribution();this._generateMap();this._placeNodesByHierarchy(distribution);this._condenseHierarchy();this._shiftToCenter()}}}},{key:\"_condenseHierarchy\",value:function _condenseHierarchy(){var _this3=this;var stillShifting=false;var branches={};var shiftTrees=function shiftTrees(){var treeSizes=getTreeSizes();var shiftBy=0;for(var i=0;i<treeSizes.length-1;i++){var diff=treeSizes[i].max-treeSizes[i+1].min;shiftBy+=diff+_this3.options.hierarchical.treeSpacing;shiftTree(i+1,shiftBy)}};var shiftTree=function shiftTree(index,offset){var trees=_this3.hierarchical.trees;for(var nodeId in trees){if(trees.hasOwnProperty(nodeId)){if(trees[nodeId]===index){_this3.direction.shift(nodeId,offset)}}}};var getTreeSizes=function getTreeSizes(){var treeWidths=[];for(var i=0;i<_this3.hierarchical.numTrees();i++){treeWidths.push(_this3.direction.getTreeSize(i))}return treeWidths};var getBranchNodes=function getBranchNodes(source,map){if(map[source.id]){return}map[source.id]=true;if(_this3.hierarchical.childrenReference[source.id]){var children=_this3.hierarchical.childrenReference[source.id];if(children.length>0){for(var i=0;i<children.length;i++){getBranchNodes(_this3.body.nodes[children[i]],map)}}}};var getBranchBoundary=function getBranchBoundary(branchMap){var maxLevel=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1e9;var minSpace=1e9;var maxSpace=1e9;var min=1e9;var max=-1e9;for(var branchNode in branchMap){if(branchMap.hasOwnProperty(branchNode)){var node=_this3.body.nodes[branchNode];var level=_this3.hierarchical.levels[node.id];var position=_this3.direction.getPosition(node);var _getSpaceAroundNode2=_this3._getSpaceAroundNode(node,branchMap),_getSpaceAroundNode3=(0,_slicedToArray3[\"default\"])(_getSpaceAroundNode2,2),minSpaceNode=_getSpaceAroundNode3[0],maxSpaceNode=_getSpaceAroundNode3[1];minSpace=Math.min(minSpaceNode,minSpace);maxSpace=Math.min(maxSpaceNode,maxSpace);if(level<=maxLevel){min=Math.min(position,min);max=Math.max(position,max)}}}return[min,max,minSpace,maxSpace]};var getCollisionLevel=function getCollisionLevel(node1,node2){var maxLevel1=_this3.hierarchical.getMaxLevel(node1.id);var maxLevel2=_this3.hierarchical.getMaxLevel(node2.id);return Math.min(maxLevel1,maxLevel2)};var shiftElementsCloser=function shiftElementsCloser(callback,levels,centerParents){var hier=_this3.hierarchical;for(var i=0;i<levels.length;i++){var level=levels[i];var levelNodes=hier.distributionOrdering[level];if(levelNodes.length>1){for(var j=0;j<levelNodes.length-1;j++){var node1=levelNodes[j];var node2=levelNodes[j+1];if(hier.hasSameParent(node1,node2)&&hier.inSameSubNetwork(node1,node2)){callback(node1,node2,centerParents)}}}}};var branchShiftCallback=function branchShiftCallback(node1,node2){var centerParent=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var pos1=_this3.direction.getPosition(node1);var pos2=_this3.direction.getPosition(node2);var diffAbs=Math.abs(pos2-pos1);var nodeSpacing=_this3.options.hierarchical.nodeSpacing;if(diffAbs>nodeSpacing){var branchNodes1={};var branchNodes2={};getBranchNodes(node1,branchNodes1);getBranchNodes(node2,branchNodes2);var maxLevel=getCollisionLevel(node1,node2);var branchNodeBoundary1=getBranchBoundary(branchNodes1,maxLevel);var branchNodeBoundary2=getBranchBoundary(branchNodes2,maxLevel);var max1=branchNodeBoundary1[1];var min2=branchNodeBoundary2[0];var minSpace2=branchNodeBoundary2[2];var diffBranch=Math.abs(max1-min2);if(diffBranch>nodeSpacing){var offset=max1-min2+nodeSpacing;if(offset<-minSpace2+nodeSpacing){offset=-minSpace2+nodeSpacing}if(offset<0){_this3._shiftBlock(node2.id,offset);stillShifting=true;if(centerParent===true)_this3._centerParent(node2)}}}};var minimizeEdgeLength=function minimizeEdgeLength(iterations,node){var nodeId=node.id;var allEdges=node.edges;var nodeLevel=_this3.hierarchical.levels[node.id];var C2=_this3.options.hierarchical.levelSeparation*_this3.options.hierarchical.levelSeparation;var referenceNodes={};var aboveEdges=[];for(var i=0;i<allEdges.length;i++){var edge=allEdges[i];if(edge.toId!=edge.fromId){var otherNode=edge.toId==nodeId?edge.from:edge.to;referenceNodes[allEdges[i].id]=otherNode;if(_this3.hierarchical.levels[otherNode.id]<nodeLevel){aboveEdges.push(edge)}}}var getFx=function getFx(point,edges){var sum=0;for(var _i2=0;_i2<edges.length;_i2++){if(referenceNodes[edges[_i2].id]!==undefined){var a=_this3.direction.getPosition(referenceNodes[edges[_i2].id])-point;sum+=a/Math.sqrt(a*a+C2)}}return sum};var getDFx=function getDFx(point,edges){var sum=0;for(var _i3=0;_i3<edges.length;_i3++){if(referenceNodes[edges[_i3].id]!==undefined){var a=_this3.direction.getPosition(referenceNodes[edges[_i3].id])-point;sum-=C2*Math.pow(a*a+C2,-1.5)}}return sum};var getGuess=function getGuess(iterations,edges){var guess=_this3.direction.getPosition(node);var guessMap={};for(var _i4=0;_i4<iterations;_i4++){var fx=getFx(guess,edges);var dfx=getDFx(guess,edges);var limit=40;var ratio=Math.max(-limit,Math.min(limit,Math.round(fx/dfx)));guess=guess-ratio;if(guessMap[guess]!==undefined){break}guessMap[guess]=_i4}return guess};var moveBranch=function moveBranch(guess){var nodePosition=_this3.direction.getPosition(node);if(branches[node.id]===undefined){var branchNodes={};getBranchNodes(node,branchNodes);branches[node.id]=branchNodes}var branchBoundary=getBranchBoundary(branches[node.id]);var minSpaceBranch=branchBoundary[2];var maxSpaceBranch=branchBoundary[3];var diff=guess-nodePosition;var branchOffset=0;if(diff>0){branchOffset=Math.min(diff,maxSpaceBranch-_this3.options.hierarchical.nodeSpacing)}else if(diff<0){branchOffset=-Math.min(-diff,minSpaceBranch-_this3.options.hierarchical.nodeSpacing)}if(branchOffset!=0){_this3._shiftBlock(node.id,branchOffset);stillShifting=true}};var moveNode=function moveNode(guess){var nodePosition=_this3.direction.getPosition(node);var _getSpaceAroundNode4=_this3._getSpaceAroundNode(node),_getSpaceAroundNode5=(0,_slicedToArray3[\"default\"])(_getSpaceAroundNode4,2),minSpace=_getSpaceAroundNode5[0],maxSpace=_getSpaceAroundNode5[1];var diff=guess-nodePosition;var newPosition=nodePosition;if(diff>0){newPosition=Math.min(nodePosition+(maxSpace-_this3.options.hierarchical.nodeSpacing),guess)}else if(diff<0){newPosition=Math.max(nodePosition-(minSpace-_this3.options.hierarchical.nodeSpacing),guess)}if(newPosition!==nodePosition){_this3.direction.setPosition(node,newPosition);stillShifting=true}};var guess=getGuess(iterations,aboveEdges);moveBranch(guess);guess=getGuess(iterations,allEdges);moveNode(guess)};var minimizeEdgeLengthBottomUp=function minimizeEdgeLengthBottomUp(iterations){var levels=_this3.hierarchical.getLevels();levels=levels.reverse();for(var i=0;i<iterations;i++){stillShifting=false;for(var j=0;j<levels.length;j++){var level=levels[j];var levelNodes=_this3.hierarchical.distributionOrdering[level];for(var k=0;k<levelNodes.length;k++){minimizeEdgeLength(1e3,levelNodes[k])}}if(stillShifting!==true){break}}};var shiftBranchesCloserBottomUp=function shiftBranchesCloserBottomUp(iterations){var levels=_this3.hierarchical.getLevels();levels=levels.reverse();for(var i=0;i<iterations;i++){stillShifting=false;shiftElementsCloser(branchShiftCallback,levels,true);if(stillShifting!==true){break}}};var centerAllParents=function centerAllParents(){for(var nodeId in _this3.body.nodes){if(_this3.body.nodes.hasOwnProperty(nodeId))_this3._centerParent(_this3.body.nodes[nodeId])}};var centerAllParentsBottomUp=function centerAllParentsBottomUp(){var levels=_this3.hierarchical.getLevels()\n;levels=levels.reverse();for(var i=0;i<levels.length;i++){var level=levels[i];var levelNodes=_this3.hierarchical.distributionOrdering[level];for(var j=0;j<levelNodes.length;j++){_this3._centerParent(levelNodes[j])}}};if(this.options.hierarchical.blockShifting===true){shiftBranchesCloserBottomUp(5);centerAllParents()}if(this.options.hierarchical.edgeMinimization===true){minimizeEdgeLengthBottomUp(20)}if(this.options.hierarchical.parentCentralization===true){centerAllParentsBottomUp()}shiftTrees()}},{key:\"_getSpaceAroundNode\",value:function _getSpaceAroundNode(node,map){var useMap=true;if(map===undefined){useMap=false}var level=this.hierarchical.levels[node.id];if(level!==undefined){var index=this.hierarchical.distributionIndex[node.id];var position=this.direction.getPosition(node);var ordering=this.hierarchical.distributionOrdering[level];var minSpace=1e9;var maxSpace=1e9;if(index!==0){var prevNode=ordering[index-1];if(useMap===true&&map[prevNode.id]===undefined||useMap===false){var prevPos=this.direction.getPosition(prevNode);minSpace=position-prevPos}}if(index!=ordering.length-1){var nextNode=ordering[index+1];if(useMap===true&&map[nextNode.id]===undefined||useMap===false){var nextPos=this.direction.getPosition(nextNode);maxSpace=Math.min(maxSpace,nextPos-position)}}return[minSpace,maxSpace]}else{return[0,0]}}},{key:\"_centerParent\",value:function _centerParent(node){if(this.hierarchical.parentReference[node.id]){var parents=this.hierarchical.parentReference[node.id];for(var i=0;i<parents.length;i++){var parentId=parents[i];var parentNode=this.body.nodes[parentId];var children=this.hierarchical.childrenReference[parentId];if(children!==undefined){var newPosition=this._getCenterPosition(children);var position=this.direction.getPosition(parentNode);var _getSpaceAroundNode6=this._getSpaceAroundNode(parentNode),_getSpaceAroundNode7=(0,_slicedToArray3[\"default\"])(_getSpaceAroundNode6,2),minSpace=_getSpaceAroundNode7[0],maxSpace=_getSpaceAroundNode7[1];var diff=position-newPosition;if(diff<0&&Math.abs(diff)<maxSpace-this.options.hierarchical.nodeSpacing||diff>0&&Math.abs(diff)<minSpace-this.options.hierarchical.nodeSpacing){this.direction.setPosition(parentNode,newPosition)}}}}}},{key:\"_placeNodesByHierarchy\",value:function _placeNodesByHierarchy(distribution){this.positionedNodes={};for(var level in distribution){if(distribution.hasOwnProperty(level)){var nodeArray=(0,_keys2[\"default\"])(distribution[level]);nodeArray=this._indexArrayToNodes(nodeArray);this.direction.sort(nodeArray);var handledNodeCount=0;for(var i=0;i<nodeArray.length;i++){var node=nodeArray[i];if(this.positionedNodes[node.id]===undefined){var spacing=this.options.hierarchical.nodeSpacing;var pos=spacing*handledNodeCount;if(handledNodeCount>0){pos=this.direction.getPosition(nodeArray[i-1])+spacing}this.direction.setPosition(node,pos,level);this._validatePositionAndContinue(node,level,pos);handledNodeCount++}}}}}},{key:\"_placeBranchNodes\",value:function _placeBranchNodes(parentId,parentLevel){var childRef=this.hierarchical.childrenReference[parentId];if(childRef===undefined){return}var childNodes=[];for(var i=0;i<childRef.length;i++){childNodes.push(this.body.nodes[childRef[i]])}this.direction.sort(childNodes);for(var _i5=0;_i5<childNodes.length;_i5++){var childNode=childNodes[_i5];var childNodeLevel=this.hierarchical.levels[childNode.id];if(childNodeLevel>parentLevel&&this.positionedNodes[childNode.id]===undefined){var spacing=this.options.hierarchical.nodeSpacing;var pos=void 0;if(_i5===0){pos=this.direction.getPosition(this.body.nodes[parentId])}else{pos=this.direction.getPosition(childNodes[_i5-1])+spacing}this.direction.setPosition(childNode,pos,childNodeLevel);this._validatePositionAndContinue(childNode,childNodeLevel,pos)}else{return}}var center=this._getCenterPosition(childNodes);this.direction.setPosition(this.body.nodes[parentId],center,parentLevel)}},{key:\"_validatePositionAndContinue\",value:function _validatePositionAndContinue(node,level,pos){if(!this.hierarchical.isTree)return;if(this.lastNodeOnLevel[level]!==undefined){var previousPos=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[level]]);if(pos-previousPos<this.options.hierarchical.nodeSpacing){var diff=previousPos+this.options.hierarchical.nodeSpacing-pos;var sharedParent=this._findCommonParent(this.lastNodeOnLevel[level],node.id);this._shiftBlock(sharedParent.withChild,diff)}}this.lastNodeOnLevel[level]=node.id;this.positionedNodes[node.id]=true;this._placeBranchNodes(node.id,level)}},{key:\"_indexArrayToNodes\",value:function _indexArrayToNodes(idArray){var array=[];for(var i=0;i<idArray.length;i++){array.push(this.body.nodes[idArray[i]])}return array}},{key:\"_getDistribution\",value:function _getDistribution(){var distribution={};var nodeId=void 0,node=void 0;for(nodeId in this.body.nodes){if(this.body.nodes.hasOwnProperty(nodeId)){node=this.body.nodes[nodeId];var level=this.hierarchical.levels[nodeId]===undefined?0:this.hierarchical.levels[nodeId];this.direction.fix(node,level);if(distribution[level]===undefined){distribution[level]={}}distribution[level][nodeId]=node}}return distribution}},{key:\"_getActiveEdges\",value:function _getActiveEdges(node){var _this4=this;var result=[];util.forEach(node.edges,function(edge){if(_this4.body.edgeIndices.indexOf(edge.id)!==-1){result.push(edge)}});return result}},{key:\"_getHubSizes\",value:function _getHubSizes(){var _this5=this;var hubSizes={};var nodeIds=this.body.nodeIndices;util.forEach(nodeIds,function(nodeId){var node=_this5.body.nodes[nodeId];var hubSize=_this5._getActiveEdges(node).length;hubSizes[hubSize]=true});var result=[];util.forEach(hubSizes,function(size){result.push(Number(size))});result.sort(function(a,b){return b-a});return result}},{key:\"_determineLevelsByHubsize\",value:function _determineLevelsByHubsize(){var _this6=this;var levelDownstream=function levelDownstream(nodeA,nodeB){_this6.hierarchical.levelDownstream(nodeA,nodeB)};var hubSizes=this._getHubSizes();var _loop=function _loop(i){var hubSize=hubSizes[i];if(hubSize===0)return\"break\";util.forEach(_this6.body.nodeIndices,function(nodeId){var node=_this6.body.nodes[nodeId];if(hubSize===_this6._getActiveEdges(node).length){_this6._crawlNetwork(levelDownstream,nodeId)}})};for(var i=0;i<hubSizes.length;++i){var _ret=_loop(i);if(_ret===\"break\")break}}},{key:\"_determineLevelsCustomCallback\",value:function _determineLevelsCustomCallback(){var _this7=this;var minLevel=1e5;var customCallback=function customCallback(nodeA,nodeB,edge){};var levelByDirection=function levelByDirection(nodeA,nodeB,edge){var levelA=_this7.hierarchical.levels[nodeA.id];if(levelA===undefined){levelA=_this7.hierarchical.levels[nodeA.id]=minLevel}var diff=customCallback(NetworkUtil.cloneOptions(nodeA,\"node\"),NetworkUtil.cloneOptions(nodeB,\"node\"),NetworkUtil.cloneOptions(edge,\"edge\"));_this7.hierarchical.levels[nodeB.id]=levelA+diff};this._crawlNetwork(levelByDirection);this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:\"_determineLevelsDirected\",value:function _determineLevelsDirected(){var _this8=this;var minLevel=1e4;var isBidirectional=function isBidirectional(edge){util.forEach(_this8.body.edges,function(otherEdge){if(otherEdge.toId===edge.fromId&&otherEdge.fromId===edge.toId){return true}});return false};var levelByDirection=function levelByDirection(nodeA,nodeB,edge){var levelA=_this8.hierarchical.levels[nodeA.id];var levelB=_this8.hierarchical.levels[nodeB.id];if(isBidirectional(edge)&&levelA!==undefined&&levelB!==undefined){return}if(levelA===undefined){levelA=_this8.hierarchical.levels[nodeA.id]=minLevel}if(edge.toId==nodeB.id){_this8.hierarchical.levels[nodeB.id]=levelA+1}else{_this8.hierarchical.levels[nodeB.id]=levelA-1}};this._crawlNetwork(levelByDirection);this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:\"_generateMap\",value:function _generateMap(){var _this9=this;var fillInRelations=function fillInRelations(parentNode,childNode){if(_this9.hierarchical.levels[childNode.id]>_this9.hierarchical.levels[parentNode.id]){_this9.hierarchical.addRelation(parentNode.id,childNode.id)}};this._crawlNetwork(fillInRelations);this.hierarchical.checkIfTree()}},{key:\"_crawlNetwork\",value:function _crawlNetwork(){var _this10=this;var callback=arguments.length>0&&arguments[0]!==undefined?arguments[0]:function(){};var startingNodeId=arguments[1];var progress={};var crawler=function crawler(node,tree){if(progress[node.id]===undefined){_this10.hierarchical.setTreeIndex(node,tree);progress[node.id]=true;var childNode=void 0;var edges=_this10._getActiveEdges(node);for(var i=0;i<edges.length;i++){var edge=edges[i];if(edge.connected===true){if(edge.toId==node.id){childNode=edge.from}else{childNode=edge.to}if(node.id!=childNode.id){callback(node,childNode,edge);crawler(childNode,tree)}}}}};if(startingNodeId===undefined){var treeIndex=0;for(var i=0;i<this.body.nodeIndices.length;i++){var nodeId=this.body.nodeIndices[i];if(progress[nodeId]===undefined){var node=this.body.nodes[nodeId];crawler(node,treeIndex);treeIndex+=1}}}else{var _node2=this.body.nodes[startingNodeId];if(_node2===undefined){console.error(\"Node not found:\",startingNodeId);return}crawler(_node2)}}},{key:\"_shiftBlock\",value:function _shiftBlock(parentId,diff){var _this11=this;var progress={};var shifter=function shifter(parentId){if(progress[parentId]){return}progress[parentId]=true;_this11.direction.shift(parentId,diff);var childRef=_this11.hierarchical.childrenReference[parentId];if(childRef!==undefined){for(var i=0;i<childRef.length;i++){shifter(childRef[i])}}};shifter(parentId)}},{key:\"_findCommonParent\",value:function _findCommonParent(childA,childB){var _this12=this;var parents={};var iterateParents=function iterateParents(parents,child){var parentRef=_this12.hierarchical.parentReference[child];if(parentRef!==undefined){for(var i=0;i<parentRef.length;i++){var parent=parentRef[i];parents[parent]=true;iterateParents(parents,parent)}}};var findParent=function findParent(parents,child){var parentRef=_this12.hierarchical.parentReference[child];if(parentRef!==undefined){for(var i=0;i<parentRef.length;i++){var parent=parentRef[i];if(parents[parent]!==undefined){return{foundParent:parent,withChild:child}}var branch=findParent(parents,parent);if(branch.foundParent!==null){return branch}}}return{foundParent:null,withChild:child}};iterateParents(parents,childA);return findParent(parents,childB)}},{key:\"setDirectionStrategy\",value:function setDirectionStrategy(){var isVertical=this.options.hierarchical.direction===\"UD\"||this.options.hierarchical.direction===\"DU\";if(isVertical){this.direction=new VerticalStrategy(this)}else{this.direction=new HorizontalStrategy(this)}}},{key:\"_getCenterPosition\",value:function _getCenterPosition(childNodes){var minPos=1e9;var maxPos=-1e9;for(var i=0;i<childNodes.length;i++){var childNode=void 0;if(childNodes[i].id!==undefined){childNode=childNodes[i]}else{var childNodeId=childNodes[i];childNode=this.body.nodes[childNodeId]}var position=this.direction.getPosition(childNode);minPos=Math.min(minPos,position);maxPos=Math.max(maxPos,position)}return.5*(minPos+maxPos)}}]);return LayoutEngine}();exports[\"default\"]=LayoutEngine},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});exports.VerticalStrategy=exports.HorizontalStrategy=undefined;var _getPrototypeOf=__webpack_require__(3);var _getPrototypeOf2=_interopRequireDefault(_getPrototypeOf);var _possibleConstructorReturn2=__webpack_require__(4);var _possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2);var _inherits2=__webpack_require__(5);var _inherits3=_interopRequireDefault(_inherits2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var DirectionInterface=function(){function DirectionInterface(){(0,_classCallCheck3[\"default\"])(this,DirectionInterface)}(0,_createClass3[\"default\"])(DirectionInterface,[{key:\"abstract\",value:function abstract(){throw new Error(\"Can't instantiate abstract class!\")}},{key:\"fake_use\",value:function fake_use(){}},{key:\"curveType\",value:function curveType(){return this.abstract()}},{key:\"getPosition\",value:function getPosition(node){this.fake_use(node);return this.abstract()}},{key:\"setPosition\",value:function setPosition(node,position){var level=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;this.fake_use(node,position,level);this.abstract()}},{key:\"getTreeSize\",value:function getTreeSize(index){this.fake_use(index);return this.abstract()}},{key:\"sort\",value:function sort(nodeArray){this.fake_use(nodeArray);this.abstract()}},{key:\"fix\",value:function fix(node,level){this.fake_use(node,level);this.abstract()}},{key:\"shift\",value:function shift(nodeId,diff){this.fake_use(nodeId,diff);this.abstract()}}]);return DirectionInterface}();var VerticalStrategy=function(_DirectionInterface){(0,_inherits3[\"default\"])(VerticalStrategy,_DirectionInterface);function VerticalStrategy(layout){(0,_classCallCheck3[\"default\"])(this,VerticalStrategy);var _this=(0,_possibleConstructorReturn3[\"default\"])(this,(VerticalStrategy.__proto__||(0,_getPrototypeOf2[\"default\"])(VerticalStrategy)).call(this));_this.layout=layout;return _this}(0,_createClass3[\"default\"])(VerticalStrategy,[{key:\"curveType\",value:function curveType(){return\"horizontal\"}},{key:\"getPosition\",value:function getPosition(node){return node.x}},{key:\"setPosition\",value:function setPosition(node,position){var level=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;if(level!==undefined){this.layout.hierarchical.addToOrdering(node,level)}node.x=position}},{key:\"getTreeSize\",value:function getTreeSize(index){var res=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,index);return{min:res.min_x,max:res.max_x}}},{key:\"sort\",value:function sort(nodeArray){nodeArray.sort(function(a,b){if(a.x===undefined||b.x===undefined)return 0;return a.x-b.x})}},{key:\"fix\",value:function fix(node,level){node.y=this.layout.options.hierarchical.levelSeparation*level;node.options.fixed.y=true}},{key:\"shift\",value:function shift(nodeId,diff){this.layout.body.nodes[nodeId].x+=diff}}]);return VerticalStrategy}(DirectionInterface);var HorizontalStrategy=function(_DirectionInterface2){(0,_inherits3[\"default\"])(HorizontalStrategy,_DirectionInterface2);function HorizontalStrategy(layout){(0,_classCallCheck3[\"default\"])(this,HorizontalStrategy);var _this2=(0,_possibleConstructorReturn3[\"default\"])(this,(HorizontalStrategy.__proto__||(0,_getPrototypeOf2[\"default\"])(HorizontalStrategy)).call(this));_this2.layout=layout;return _this2}(0,_createClass3[\"default\"])(HorizontalStrategy,[{key:\"curveType\",value:function curveType(){return\"vertical\"}},{key:\"getPosition\",value:function getPosition(node){return node.y}},{key:\"setPosition\",value:function setPosition(node,position){var level=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;if(level!==undefined){this.layout.hierarchical.addToOrdering(node,level)}node.y=position}},{key:\"getTreeSize\",value:function getTreeSize(index){var res=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,index);return{min:res.min_y,max:res.max_y}}},{key:\"sort\",value:function sort(nodeArray){nodeArray.sort(function(a,b){if(a.y===undefined||b.y===undefined)return 0;return a.y-b.y})}},{key:\"fix\",value:function fix(node,level){node.x=this.layout.options.hierarchical.levelSeparation*level;node.options.fixed.x=true}},{key:\"shift\",value:function shift(nodeId,diff){this.layout.body.nodes[nodeId].y+=diff}}]);return HorizontalStrategy}(DirectionInterface);exports.HorizontalStrategy=HorizontalStrategy;exports.VerticalStrategy=VerticalStrategy},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _keys=__webpack_require__(8);var _keys2=_interopRequireDefault(_keys);var _stringify=__webpack_require__(19);var _stringify2=_interopRequireDefault(_stringify);var _typeof2=__webpack_require__(6);var _typeof3=_interopRequireDefault(_typeof2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var util=__webpack_require__(2);var Hammer=__webpack_require__(10);var hammerUtil=__webpack_require__(37);var ManipulationSystem=function(){function ManipulationSystem(body,canvas,selectionHandler){var _this=this;(0,_classCallCheck3[\"default\"])(this,ManipulationSystem);this.body=body;this.canvas=canvas;this.selectionHandler=selectionHandler;this.editMode=false;this.manipulationDiv=undefined;this.editModeDiv=undefined;this.closeDiv=undefined;this.manipulationHammers=[];this.temporaryUIFunctions={};this.temporaryEventFunctions=[];this.touchTime=0;this.temporaryIds={nodes:[],edges:[]};this.guiEnabled=false;this.inMode=false;this.selectedControlNode=undefined;this.options={};this.defaultOptions={enabled:false,initiallyActive:false,addNode:true,addEdge:true,editNode:undefined,editEdge:true,deleteNode:true,deleteEdge:true,controlNodeStyle:{shape:\"dot\",size:6,color:{background:\"#ff0000\",border:\"#3c3c3c\",highlight:{background:\"#07f968\",border:\"#3c3c3c\"}},borderWidth:2,borderWidthSelected:2}};util.extend(this.options,this.defaultOptions);this.body.emitter.on(\"destroy\",function(){_this._clean()});this.body.emitter.on(\"_dataChanged\",this._restore.bind(this));this.body.emitter.on(\"_resetData\",this._restore.bind(this))}(0,_createClass3[\"default\"])(ManipulationSystem,[{key:\"_restore\",value:function _restore(){if(this.inMode!==false){if(this.options.initiallyActive===true){this.enableEditMode()}else{this.disableEditMode()}}}},{key:\"setOptions\",value:function setOptions(options,allOptions,globalOptions){if(allOptions!==undefined){if(allOptions.locale!==undefined){this.options.locale=allOptions.locale}else{this.options.locale=globalOptions.locale}if(allOptions.locales!==undefined){this.options.locales=allOptions.locales}else{this.options.locales=globalOptions.locales}}if(options!==undefined){if(typeof options===\"boolean\"){this.options.enabled=options}else{this.options.enabled=true;util.deepExtend(this.options,options)}if(this.options.initiallyActive===true){this.editMode=true}this._setup()}}},{key:\"toggleEditMode\",value:function toggleEditMode(){if(this.editMode===true){this.disableEditMode()}else{this.enableEditMode()}}},{key:\"enableEditMode\",value:function enableEditMode(){this.editMode=true;this._clean();if(this.guiEnabled===true){this.manipulationDiv.style.display=\"block\";this.closeDiv.style.display=\"block\";this.editModeDiv.style.display=\"none\";this.showManipulatorToolbar()}}},{key:\"disableEditMode\",value:function disableEditMode(){this.editMode=false;this._clean();if(this.guiEnabled===true){this.manipulationDiv.style.display=\"none\";this.closeDiv.style.display=\"none\";this.editModeDiv.style.display=\"block\";this._createEditButton()}}},{key:\"showManipulatorToolbar\",value:function showManipulatorToolbar(){this._clean();this.manipulationDOM={};if(this.guiEnabled===true){this.editMode=true;this.manipulationDiv.style.display=\"block\";this.closeDiv.style.display=\"block\";var selectedNodeCount=this.selectionHandler._getSelectedNodeCount();var selectedEdgeCount=this.selectionHandler._getSelectedEdgeCount();var selectedTotalCount=selectedNodeCount+selectedEdgeCount;var locale=this.options.locales[this.options.locale];var needSeperator=false;if(this.options.addNode!==false){this._createAddNodeButton(locale);needSeperator=true}if(this.options.addEdge!==false){if(needSeperator===true){this._createSeperator(1)}else{needSeperator=true}this._createAddEdgeButton(locale)}if(selectedNodeCount===1&&typeof this.options.editNode===\"function\"){if(needSeperator===true){this._createSeperator(2)}else{needSeperator=true}this._createEditNodeButton(locale)}else if(selectedEdgeCount===1&&selectedNodeCount===0&&this.options.editEdge!==false){if(needSeperator===true){this._createSeperator(3)}else{needSeperator=true}this._createEditEdgeButton(locale)}if(selectedTotalCount!==0){if(selectedNodeCount>0&&this.options.deleteNode!==false){if(needSeperator===true){this._createSeperator(4)}this._createDeleteButton(locale)}else if(selectedNodeCount===0&&this.options.deleteEdge!==false){if(needSeperator===true){this._createSeperator(4)}this._createDeleteButton(locale)}}this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this));this._temporaryBindEvent(\"select\",this.showManipulatorToolbar.bind(this))}this.body.emitter.emit(\"_redraw\")}},{key:\"addNodeMode\",value:function addNodeMode(){if(this.editMode!==true){this.enableEditMode()}this._clean();this.inMode=\"addNode\";if(this.guiEnabled===true){var locale=this.options.locales[this.options.locale];this.manipulationDOM={};this._createBackButton(locale);this._createSeperator();this._createDescription(locale[\"addDescription\"]||this.options.locales[\"en\"][\"addDescription\"]);this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}this._temporaryBindEvent(\"click\",this._performAddNode.bind(this))}},{key:\"editNode\",value:function editNode(){var _this2=this;if(this.editMode!==true){this.enableEditMode()}this._clean();var node=this.selectionHandler._getSelectedNode();if(node!==undefined){this.inMode=\"editNode\";if(typeof this.options.editNode===\"function\"){if(node.isCluster!==true){var data=util.deepExtend({},node.options,false);data.x=node.x;data.y=node.y;if(this.options.editNode.length===2){this.options.editNode(data,function(finalizedData){if(finalizedData!==null&&finalizedData!==undefined&&_this2.inMode===\"editNode\"){_this2.body.data.nodes.getDataSet().update(finalizedData)}_this2.showManipulatorToolbar()})}else{throw new Error(\"The function for edit does not support two arguments (data, callback)\")}}else{alert(this.options.locales[this.options.locale][\"editClusterError\"]||this.options.locales[\"en\"][\"editClusterError\"])}}else{throw new Error(\"No function has been configured to handle the editing of nodes.\")}}else{this.showManipulatorToolbar()}}},{key:\"addEdgeMode\",value:function addEdgeMode(){if(this.editMode!==true){this.enableEditMode()}this._clean();this.inMode=\"addEdge\";if(this.guiEnabled===true){var locale=this.options.locales[this.options.locale];this.manipulationDOM={};this._createBackButton(locale);this._createSeperator();this._createDescription(locale[\"edgeDescription\"]||this.options.locales[\"en\"][\"edgeDescription\"]);this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}this._temporaryBindUI(\"onTouch\",this._handleConnect.bind(this));this._temporaryBindUI(\"onDragEnd\",this._finishConnect.bind(this));this._temporaryBindUI(\"onDrag\",this._dragControlNode.bind(this));this._temporaryBindUI(\"onRelease\",this._finishConnect.bind(this));this._temporaryBindUI(\"onDragStart\",this._dragStartEdge.bind(this));this._temporaryBindUI(\"onHold\",function(){})}},{key:\"editEdgeMode\",value:function editEdgeMode(){if(this.editMode!==true){this.enableEditMode()}this._clean();this.inMode=\"editEdge\";if((0,_typeof3[\"default\"])(this.options.editEdge)===\"object\"&&typeof this.options.editEdge.editWithoutDrag===\"function\"){this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0];if(this.edgeBeingEditedId!==undefined){var edge=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(edge.from,edge.to);return}}if(this.guiEnabled===true){var locale=this.options.locales[this.options.locale];this.manipulationDOM={};this._createBackButton(locale);this._createSeperator();this._createDescription(locale[\"editEdgeDescription\"]||this.options.locales[\"en\"][\"editEdgeDescription\"]);this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0];if(this.edgeBeingEditedId!==undefined){var _edge=this.body.edges[this.edgeBeingEditedId];var controlNodeFrom=this._getNewTargetNode(_edge.from.x,_edge.from.y);var controlNodeTo=this._getNewTargetNode(_edge.to.x,_edge.to.y);this.temporaryIds.nodes.push(controlNodeFrom.id);this.temporaryIds.nodes.push(controlNodeTo.id);this.body.nodes[controlNodeFrom.id]=controlNodeFrom;this.body.nodeIndices.push(controlNodeFrom.id);this.body.nodes[controlNodeTo.id]=controlNodeTo;this.body.nodeIndices.push(controlNodeTo.id);this._temporaryBindUI(\"onTouch\",this._controlNodeTouch.bind(this));this._temporaryBindUI(\"onTap\",function(){});this._temporaryBindUI(\"onHold\",function(){});this._temporaryBindUI(\"onDragStart\",this._controlNodeDragStart.bind(this));this._temporaryBindUI(\"onDrag\",this._controlNodeDrag.bind(this));this._temporaryBindUI(\"onDragEnd\",this._controlNodeDragEnd.bind(this));this._temporaryBindUI(\"onMouseMove\",function(){});this._temporaryBindEvent(\"beforeDrawing\",function(ctx){var positions=_edge.edgeType.findBorderPositions(ctx);if(controlNodeFrom.selected===false){controlNodeFrom.x=positions.from.x;controlNodeFrom.y=positions.from.y}if(controlNodeTo.selected===false){controlNodeTo.x=positions.to.x;controlNodeTo.y=positions.to.y}});this.body.emitter.emit(\"_redraw\")}else{this.showManipulatorToolbar()}}},{key:\"deleteSelected\",value:function deleteSelected(){var _this3=this;if(this.editMode!==true){this.enableEditMode()}this._clean();this.inMode=\"delete\";var selectedNodes=this.selectionHandler.getSelectedNodes();var selectedEdges=this.selectionHandler.getSelectedEdges();var deleteFunction=undefined;if(selectedNodes.length>0){for(var i=0;i<selectedNodes.length;i++){if(this.body.nodes[selectedNodes[i]].isCluster===true){alert(this.options.locales[this.options.locale][\"deleteClusterError\"]||this.options.locales[\"en\"][\"deleteClusterError\"]);return}}if(typeof this.options.deleteNode===\"function\"){deleteFunction=this.options.deleteNode}}else if(selectedEdges.length>0){if(typeof this.options.deleteEdge===\"function\"){deleteFunction=this.options.deleteEdge}}if(typeof deleteFunction===\"function\"){var data={nodes:selectedNodes,edges:selectedEdges};if(deleteFunction.length===2){deleteFunction(data,function(finalizedData){if(finalizedData!==null&&finalizedData!==undefined&&_this3.inMode===\"delete\"){_this3.body.data.edges.getDataSet().remove(finalizedData.edges);_this3.body.data.nodes.getDataSet().remove(finalizedData.nodes);_this3.body.emitter.emit(\"startSimulation\");_this3.showManipulatorToolbar()}else{_this3.body.emitter.emit(\"startSimulation\");_this3.showManipulatorToolbar()}})}else{throw new Error(\"The function for delete does not support two arguments (data, callback)\")}}else{this.body.data.edges.getDataSet().remove(selectedEdges);this.body.data.nodes.getDataSet().remove(selectedNodes);this.body.emitter.emit(\"startSimulation\");this.showManipulatorToolbar()}}},{key:\"_setup\",value:function _setup(){if(this.options.enabled===true){this.guiEnabled=true;this._createWrappers();if(this.editMode===false){this._createEditButton()}else{this.showManipulatorToolbar()}}else{this._removeManipulationDOM();this.guiEnabled=false}}},{key:\"_createWrappers\",value:function _createWrappers(){if(this.manipulationDiv===undefined){this.manipulationDiv=document.createElement(\"div\");this.manipulationDiv.className=\"vis-manipulation\";if(this.editMode===true){this.manipulationDiv.style.display=\"block\"}else{this.manipulationDiv.style.display=\"none\"}this.canvas.frame.appendChild(this.manipulationDiv)}if(this.editModeDiv===undefined){this.editModeDiv=document.createElement(\"div\");this.editModeDiv.className=\"vis-edit-mode\";if(this.editMode===true){this.editModeDiv.style.display=\"none\"}else{this.editModeDiv.style.display=\"block\"}this.canvas.frame.appendChild(this.editModeDiv)}if(this.closeDiv===undefined){this.closeDiv=document.createElement(\"div\");this.closeDiv.className=\"vis-close\";this.closeDiv.style.display=this.manipulationDiv.style.display;this.canvas.frame.appendChild(this.closeDiv)}}},{key:\"_getNewTargetNode\",value:function _getNewTargetNode(x,y){var controlNodeStyle=util.deepExtend({},this.options.controlNodeStyle);controlNodeStyle.id=\"targetNode\"+util.randomUUID();controlNodeStyle.hidden=false;controlNodeStyle.physics=false;controlNodeStyle.x=x;controlNodeStyle.y=y;var node=this.body.functions.createNode(controlNodeStyle);node.shape.boundingBox={left:x,right:x,top:y,bottom:y};return node}},{key:\"_createEditButton\",value:function _createEditButton(){this._clean();this.manipulationDOM={};util.recursiveDOMDelete(this.editModeDiv);var locale=this.options.locales[this.options.locale];var button=this._createButton(\"editMode\",\"vis-button vis-edit vis-edit-mode\",locale[\"edit\"]||this.options.locales[\"en\"][\"edit\"]);this.editModeDiv.appendChild(button);this._bindHammerToDiv(button,this.toggleEditMode.bind(this))}},{key:\"_clean\",value:function _clean(){this.inMode=false;if(this.guiEnabled===true){util.recursiveDOMDelete(this.editModeDiv);util.recursiveDOMDelete(this.manipulationDiv);this._cleanManipulatorHammers()}this._cleanupTemporaryNodesAndEdges();this._unbindTemporaryUIs();this._unbindTemporaryEvents();this.body.emitter.emit(\"restorePhysics\")}},{key:\"_cleanManipulatorHammers\",value:function _cleanManipulatorHammers(){if(this.manipulationHammers.length!=0){for(var i=0;i<this.manipulationHammers.length;i++){this.manipulationHammers[i].destroy()}this.manipulationHammers=[]}}},{key:\"_removeManipulationDOM\",value:function _removeManipulationDOM(){this._clean();util.recursiveDOMDelete(this.manipulationDiv);util.recursiveDOMDelete(this.editModeDiv);util.recursiveDOMDelete(this.closeDiv);if(this.manipulationDiv){this.canvas.frame.removeChild(this.manipulationDiv)}if(this.editModeDiv){this.canvas.frame.removeChild(this.editModeDiv)}if(this.closeDiv){this.canvas.frame.removeChild(this.closeDiv)}this.manipulationDiv=undefined;this.editModeDiv=undefined;this.closeDiv=undefined}},{key:\"_createSeperator\",value:function _createSeperator(){var index=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;this.manipulationDOM[\"seperatorLineDiv\"+index]=document.createElement(\"div\");this.manipulationDOM[\"seperatorLineDiv\"+index].className=\"vis-separator-line\";this.manipulationDiv.appendChild(this.manipulationDOM[\"seperatorLineDiv\"+index])}},{key:\"_createAddNodeButton\",value:function _createAddNodeButton(locale){var button=this._createButton(\"addNode\",\"vis-button vis-add\",locale[\"addNode\"]||this.options.locales[\"en\"][\"addNode\"]);this.manipulationDiv.appendChild(button);this._bindHammerToDiv(button,this.addNodeMode.bind(this))}},{key:\"_createAddEdgeButton\",value:function _createAddEdgeButton(locale){var button=this._createButton(\"addEdge\",\"vis-button vis-connect\",locale[\"addEdge\"]||this.options.locales[\"en\"][\"addEdge\"]);this.manipulationDiv.appendChild(button);this._bindHammerToDiv(button,this.addEdgeMode.bind(this))}},{key:\"_createEditNodeButton\",value:function _createEditNodeButton(locale){var button=this._createButton(\"editNode\",\"vis-button vis-edit\",locale[\"editNode\"]||this.options.locales[\"en\"][\"editNode\"]);this.manipulationDiv.appendChild(button);this._bindHammerToDiv(button,this.editNode.bind(this))}},{key:\"_createEditEdgeButton\",value:function _createEditEdgeButton(locale){var button=this._createButton(\"editEdge\",\"vis-button vis-edit\",locale[\"editEdge\"]||this.options.locales[\"en\"][\"editEdge\"]);this.manipulationDiv.appendChild(button);this._bindHammerToDiv(button,this.editEdgeMode.bind(this))}},{key:\"_createDeleteButton\",value:function _createDeleteButton(locale){var deleteBtnClass;if(this.options.rtl){deleteBtnClass=\"vis-button vis-delete-rtl\"}else{deleteBtnClass=\"vis-button vis-delete\"}var button=this._createButton(\"delete\",deleteBtnClass,locale[\"del\"]||this.options.locales[\"en\"][\"del\"]);this.manipulationDiv.appendChild(button);this._bindHammerToDiv(button,this.deleteSelected.bind(this))}},{key:\"_createBackButton\",value:function _createBackButton(locale){\nvar button=this._createButton(\"back\",\"vis-button vis-back\",locale[\"back\"]||this.options.locales[\"en\"][\"back\"]);this.manipulationDiv.appendChild(button);this._bindHammerToDiv(button,this.showManipulatorToolbar.bind(this))}},{key:\"_createButton\",value:function _createButton(id,className,label){var labelClassName=arguments.length>3&&arguments[3]!==undefined?arguments[3]:\"vis-label\";this.manipulationDOM[id+\"Div\"]=document.createElement(\"div\");this.manipulationDOM[id+\"Div\"].className=className;this.manipulationDOM[id+\"Label\"]=document.createElement(\"div\");this.manipulationDOM[id+\"Label\"].className=labelClassName;this.manipulationDOM[id+\"Label\"].innerHTML=label;this.manipulationDOM[id+\"Div\"].appendChild(this.manipulationDOM[id+\"Label\"]);return this.manipulationDOM[id+\"Div\"]}},{key:\"_createDescription\",value:function _createDescription(label){this.manipulationDiv.appendChild(this._createButton(\"description\",\"vis-button vis-none\",label))}},{key:\"_temporaryBindEvent\",value:function _temporaryBindEvent(event,newFunction){this.temporaryEventFunctions.push({event:event,boundFunction:newFunction});this.body.emitter.on(event,newFunction)}},{key:\"_temporaryBindUI\",value:function _temporaryBindUI(UIfunctionName,newFunction){if(this.body.eventListeners[UIfunctionName]!==undefined){this.temporaryUIFunctions[UIfunctionName]=this.body.eventListeners[UIfunctionName];this.body.eventListeners[UIfunctionName]=newFunction}else{throw new Error(\"This UI function does not exist. Typo? You tried: \"+UIfunctionName+\" possible are: \"+(0,_stringify2[\"default\"])((0,_keys2[\"default\"])(this.body.eventListeners)))}}},{key:\"_unbindTemporaryUIs\",value:function _unbindTemporaryUIs(){for(var functionName in this.temporaryUIFunctions){if(this.temporaryUIFunctions.hasOwnProperty(functionName)){this.body.eventListeners[functionName]=this.temporaryUIFunctions[functionName];delete this.temporaryUIFunctions[functionName]}}this.temporaryUIFunctions={}}},{key:\"_unbindTemporaryEvents\",value:function _unbindTemporaryEvents(){for(var i=0;i<this.temporaryEventFunctions.length;i++){var eventName=this.temporaryEventFunctions[i].event;var boundFunction=this.temporaryEventFunctions[i].boundFunction;this.body.emitter.off(eventName,boundFunction)}this.temporaryEventFunctions=[]}},{key:\"_bindHammerToDiv\",value:function _bindHammerToDiv(domElement,boundFunction){var hammer=new Hammer(domElement,{});hammerUtil.onTouch(hammer,boundFunction);this.manipulationHammers.push(hammer)}},{key:\"_cleanupTemporaryNodesAndEdges\",value:function _cleanupTemporaryNodesAndEdges(){for(var i=0;i<this.temporaryIds.edges.length;i++){this.body.edges[this.temporaryIds.edges[i]].disconnect();delete this.body.edges[this.temporaryIds.edges[i]];var indexTempEdge=this.body.edgeIndices.indexOf(this.temporaryIds.edges[i]);if(indexTempEdge!==-1){this.body.edgeIndices.splice(indexTempEdge,1)}}for(var _i=0;_i<this.temporaryIds.nodes.length;_i++){delete this.body.nodes[this.temporaryIds.nodes[_i]];var indexTempNode=this.body.nodeIndices.indexOf(this.temporaryIds.nodes[_i]);if(indexTempNode!==-1){this.body.nodeIndices.splice(indexTempNode,1)}}this.temporaryIds={nodes:[],edges:[]}}},{key:\"_controlNodeTouch\",value:function _controlNodeTouch(event){this.selectionHandler.unselectAll();this.lastTouch=this.body.functions.getPointer(event.center);this.lastTouch.translation=util.extend({},this.body.view.translation)}},{key:\"_controlNodeDragStart\",value:function _controlNodeDragStart(event){var pointer=this.lastTouch;var pointerObj=this.selectionHandler._pointerToPositionObject(pointer);var from=this.body.nodes[this.temporaryIds.nodes[0]];var to=this.body.nodes[this.temporaryIds.nodes[1]];var edge=this.body.edges[this.edgeBeingEditedId];this.selectedControlNode=undefined;var fromSelect=from.isOverlappingWith(pointerObj);var toSelect=to.isOverlappingWith(pointerObj);if(fromSelect===true){this.selectedControlNode=from;edge.edgeType.from=from}else if(toSelect===true){this.selectedControlNode=to;edge.edgeType.to=to}if(this.selectedControlNode!==undefined){this.selectionHandler.selectObject(this.selectedControlNode)}this.body.emitter.emit(\"_redraw\")}},{key:\"_controlNodeDrag\",value:function _controlNodeDrag(event){this.body.emitter.emit(\"disablePhysics\");var pointer=this.body.functions.getPointer(event.center);var pos=this.canvas.DOMtoCanvas(pointer);if(this.selectedControlNode!==undefined){this.selectedControlNode.x=pos.x;this.selectedControlNode.y=pos.y}else{var diffX=pointer.x-this.lastTouch.x;var diffY=pointer.y-this.lastTouch.y;this.body.view.translation={x:this.lastTouch.translation.x+diffX,y:this.lastTouch.translation.y+diffY}}this.body.emitter.emit(\"_redraw\")}},{key:\"_controlNodeDragEnd\",value:function _controlNodeDragEnd(event){var pointer=this.body.functions.getPointer(event.center);var pointerObj=this.selectionHandler._pointerToPositionObject(pointer);var edge=this.body.edges[this.edgeBeingEditedId];if(this.selectedControlNode===undefined){return}this.selectionHandler.unselectAll();var overlappingNodeIds=this.selectionHandler._getAllNodesOverlappingWith(pointerObj);var node=undefined;for(var i=overlappingNodeIds.length-1;i>=0;i--){if(overlappingNodeIds[i]!==this.selectedControlNode.id){node=this.body.nodes[overlappingNodeIds[i]];break}}if(node!==undefined&&this.selectedControlNode!==undefined){if(node.isCluster===true){alert(this.options.locales[this.options.locale][\"createEdgeError\"]||this.options.locales[\"en\"][\"createEdgeError\"])}else{var from=this.body.nodes[this.temporaryIds.nodes[0]];if(this.selectedControlNode.id===from.id){this._performEditEdge(node.id,edge.to.id)}else{this._performEditEdge(edge.from.id,node.id)}}}else{edge.updateEdgeType();this.body.emitter.emit(\"restorePhysics\")}this.body.emitter.emit(\"_redraw\")}},{key:\"_handleConnect\",value:function _handleConnect(event){if((new Date).valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(event.center);this.lastTouch.translation=util.extend({},this.body.view.translation);var pointer=this.lastTouch;var node=this.selectionHandler.getNodeAt(pointer);if(node!==undefined){if(node.isCluster===true){alert(this.options.locales[this.options.locale][\"createEdgeError\"]||this.options.locales[\"en\"][\"createEdgeError\"])}else{var targetNode=this._getNewTargetNode(node.x,node.y);this.body.nodes[targetNode.id]=targetNode;this.body.nodeIndices.push(targetNode.id);var connectionEdge=this.body.functions.createEdge({id:\"connectionEdge\"+util.randomUUID(),from:node.id,to:targetNode.id,physics:false,smooth:{enabled:true,type:\"continuous\",roundness:.5}});this.body.edges[connectionEdge.id]=connectionEdge;this.body.edgeIndices.push(connectionEdge.id);this.temporaryIds.nodes.push(targetNode.id);this.temporaryIds.edges.push(connectionEdge.id)}}this.touchTime=(new Date).valueOf()}}},{key:\"_dragControlNode\",value:function _dragControlNode(event){var pointer=this.body.functions.getPointer(event.center);if(this.temporaryIds.nodes[0]!==undefined){var targetNode=this.body.nodes[this.temporaryIds.nodes[0]];targetNode.x=this.canvas._XconvertDOMtoCanvas(pointer.x);targetNode.y=this.canvas._YconvertDOMtoCanvas(pointer.y);this.body.emitter.emit(\"_redraw\")}else{var diffX=pointer.x-this.lastTouch.x;var diffY=pointer.y-this.lastTouch.y;this.body.view.translation={x:this.lastTouch.translation.x+diffX,y:this.lastTouch.translation.y+diffY}}}},{key:\"_finishConnect\",value:function _finishConnect(event){var pointer=this.body.functions.getPointer(event.center);var pointerObj=this.selectionHandler._pointerToPositionObject(pointer);var connectFromId=undefined;if(this.temporaryIds.edges[0]!==undefined){connectFromId=this.body.edges[this.temporaryIds.edges[0]].fromId}var overlappingNodeIds=this.selectionHandler._getAllNodesOverlappingWith(pointerObj);var node=undefined;for(var i=overlappingNodeIds.length-1;i>=0;i--){if(this.temporaryIds.nodes.indexOf(overlappingNodeIds[i])===-1){node=this.body.nodes[overlappingNodeIds[i]];break}}this._cleanupTemporaryNodesAndEdges();if(node!==undefined){if(node.isCluster===true){alert(this.options.locales[this.options.locale][\"createEdgeError\"]||this.options.locales[\"en\"][\"createEdgeError\"])}else{if(this.body.nodes[connectFromId]!==undefined&&this.body.nodes[node.id]!==undefined){this._performAddEdge(connectFromId,node.id)}}}this.body.emitter.emit(\"_redraw\")}},{key:\"_dragStartEdge\",value:function _dragStartEdge(event){var pointer=this.lastTouch;this.selectionHandler._generateClickEvent(\"dragStart\",event,pointer,undefined,true)}},{key:\"_performAddNode\",value:function _performAddNode(clickData){var _this4=this;var defaultData={id:util.randomUUID(),x:clickData.pointer.canvas.x,y:clickData.pointer.canvas.y,label:\"new\"};if(typeof this.options.addNode===\"function\"){if(this.options.addNode.length===2){this.options.addNode(defaultData,function(finalizedData){if(finalizedData!==null&&finalizedData!==undefined&&_this4.inMode===\"addNode\"){_this4.body.data.nodes.getDataSet().add(finalizedData);_this4.showManipulatorToolbar()}})}else{this.showManipulatorToolbar();throw new Error(\"The function for add does not support two arguments (data,callback)\")}}else{this.body.data.nodes.getDataSet().add(defaultData);this.showManipulatorToolbar()}}},{key:\"_performAddEdge\",value:function _performAddEdge(sourceNodeId,targetNodeId){var _this5=this;var defaultData={from:sourceNodeId,to:targetNodeId};if(typeof this.options.addEdge===\"function\"){if(this.options.addEdge.length===2){this.options.addEdge(defaultData,function(finalizedData){if(finalizedData!==null&&finalizedData!==undefined&&_this5.inMode===\"addEdge\"){_this5.body.data.edges.getDataSet().add(finalizedData);_this5.selectionHandler.unselectAll();_this5.showManipulatorToolbar()}})}else{throw new Error(\"The function for connect does not support two arguments (data,callback)\")}}else{this.body.data.edges.getDataSet().add(defaultData);this.selectionHandler.unselectAll();this.showManipulatorToolbar()}}},{key:\"_performEditEdge\",value:function _performEditEdge(sourceNodeId,targetNodeId){var _this6=this;var defaultData={id:this.edgeBeingEditedId,from:sourceNodeId,to:targetNodeId,label:this.body.data.edges._data[this.edgeBeingEditedId].label};var eeFunct=this.options.editEdge;if((typeof eeFunct===\"undefined\"?\"undefined\":(0,_typeof3[\"default\"])(eeFunct))===\"object\"){eeFunct=eeFunct.editWithoutDrag}if(typeof eeFunct===\"function\"){if(eeFunct.length===2){eeFunct(defaultData,function(finalizedData){if(finalizedData===null||finalizedData===undefined||_this6.inMode!==\"editEdge\"){_this6.body.edges[defaultData.id].updateEdgeType();_this6.body.emitter.emit(\"_redraw\");_this6.showManipulatorToolbar()}else{_this6.body.data.edges.getDataSet().update(finalizedData);_this6.selectionHandler.unselectAll();_this6.showManipulatorToolbar()}})}else{throw new Error(\"The function for edit does not support two arguments (data, callback)\")}}else{this.body.data.edges.getDataSet().update(defaultData);this.selectionHandler.unselectAll();this.showManipulatorToolbar()}}}]);return ManipulationSystem}();exports[\"default\"]=ManipulationSystem},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _slicedToArray2=__webpack_require__(30);var _slicedToArray3=_interopRequireDefault(_slicedToArray2);var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);var _FloydWarshall=__webpack_require__(239);var _FloydWarshall2=_interopRequireDefault(_FloydWarshall);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var KamadaKawai=function(){function KamadaKawai(body,edgeLength,edgeStrength){(0,_classCallCheck3[\"default\"])(this,KamadaKawai);this.body=body;this.springLength=edgeLength;this.springConstant=edgeStrength;this.distanceSolver=new _FloydWarshall2[\"default\"]}(0,_createClass3[\"default\"])(KamadaKawai,[{key:\"setOptions\",value:function setOptions(options){if(options){if(options.springLength){this.springLength=options.springLength}if(options.springConstant){this.springConstant=options.springConstant}}}},{key:\"solve\",value:function solve(nodesArray,edgesArray){var ignoreClusters=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var D_matrix=this.distanceSolver.getDistances(this.body,nodesArray,edgesArray);this._createL_matrix(D_matrix);this._createK_matrix(D_matrix);this._createE_matrix();var threshold=.01;var innerThreshold=1;var iterations=0;var maxIterations=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3));var maxInnerIterations=5;var maxEnergy=1e9;var highE_nodeId=0,dE_dx=0,dE_dy=0,delta_m=0,subIterations=0;while(maxEnergy>threshold&&iterations<maxIterations){iterations+=1;var _getHighestEnergyNode2=this._getHighestEnergyNode(ignoreClusters);var _getHighestEnergyNode3=(0,_slicedToArray3[\"default\"])(_getHighestEnergyNode2,4);highE_nodeId=_getHighestEnergyNode3[0];maxEnergy=_getHighestEnergyNode3[1];dE_dx=_getHighestEnergyNode3[2];dE_dy=_getHighestEnergyNode3[3];delta_m=maxEnergy;subIterations=0;while(delta_m>innerThreshold&&subIterations<maxInnerIterations){subIterations+=1;this._moveNode(highE_nodeId,dE_dx,dE_dy);var _getEnergy2=this._getEnergy(highE_nodeId);var _getEnergy3=(0,_slicedToArray3[\"default\"])(_getEnergy2,3);delta_m=_getEnergy3[0];dE_dx=_getEnergy3[1];dE_dy=_getEnergy3[2]}}}},{key:\"_getHighestEnergyNode\",value:function _getHighestEnergyNode(ignoreClusters){var nodesArray=this.body.nodeIndices;var nodes=this.body.nodes;var maxEnergy=0;var maxEnergyNodeId=nodesArray[0];var dE_dx_max=0,dE_dy_max=0;for(var nodeIdx=0;nodeIdx<nodesArray.length;nodeIdx++){var m=nodesArray[nodeIdx];if(nodes[m].predefinedPosition===false||nodes[m].isCluster===true&&ignoreClusters===true||nodes[m].options.fixed.x===true||nodes[m].options.fixed.y===true){var _getEnergy4=this._getEnergy(m),_getEnergy5=(0,_slicedToArray3[\"default\"])(_getEnergy4,3),delta_m=_getEnergy5[0],dE_dx=_getEnergy5[1],dE_dy=_getEnergy5[2];if(maxEnergy<delta_m){maxEnergy=delta_m;maxEnergyNodeId=m;dE_dx_max=dE_dx;dE_dy_max=dE_dy}}}return[maxEnergyNodeId,maxEnergy,dE_dx_max,dE_dy_max]}},{key:\"_getEnergy\",value:function _getEnergy(m){var _E_sums$m=(0,_slicedToArray3[\"default\"])(this.E_sums[m],2),dE_dx=_E_sums$m[0],dE_dy=_E_sums$m[1];var delta_m=Math.sqrt(Math.pow(dE_dx,2)+Math.pow(dE_dy,2));return[delta_m,dE_dx,dE_dy]}},{key:\"_moveNode\",value:function _moveNode(m,dE_dx,dE_dy){var nodesArray=this.body.nodeIndices;var nodes=this.body.nodes;var d2E_dx2=0;var d2E_dxdy=0;var d2E_dy2=0;var x_m=nodes[m].x;var y_m=nodes[m].y;var km=this.K_matrix[m];var lm=this.L_matrix[m];for(var iIdx=0;iIdx<nodesArray.length;iIdx++){var i=nodesArray[iIdx];if(i!==m){var x_i=nodes[i].x;var y_i=nodes[i].y;var kmat=km[i];var lmat=lm[i];var denominator=1/Math.pow(Math.pow(x_m-x_i,2)+Math.pow(y_m-y_i,2),1.5);d2E_dx2+=kmat*(1-lmat*Math.pow(y_m-y_i,2)*denominator);d2E_dxdy+=kmat*(lmat*(x_m-x_i)*(y_m-y_i)*denominator);d2E_dy2+=kmat*(1-lmat*Math.pow(x_m-x_i,2)*denominator)}}var A=d2E_dx2,B=d2E_dxdy,C=dE_dx,D=d2E_dy2,E=dE_dy;var dy=(C/A+E/B)/(B/A-D/B);var dx=-(B*dy+C)/A;nodes[m].x+=dx;nodes[m].y+=dy;this._updateE_matrix(m)}},{key:\"_createL_matrix\",value:function _createL_matrix(D_matrix){var nodesArray=this.body.nodeIndices;var edgeLength=this.springLength;this.L_matrix=[];for(var i=0;i<nodesArray.length;i++){this.L_matrix[nodesArray[i]]={};for(var j=0;j<nodesArray.length;j++){this.L_matrix[nodesArray[i]][nodesArray[j]]=edgeLength*D_matrix[nodesArray[i]][nodesArray[j]]}}}},{key:\"_createK_matrix\",value:function _createK_matrix(D_matrix){var nodesArray=this.body.nodeIndices;var edgeStrength=this.springConstant;this.K_matrix=[];for(var i=0;i<nodesArray.length;i++){this.K_matrix[nodesArray[i]]={};for(var j=0;j<nodesArray.length;j++){this.K_matrix[nodesArray[i]][nodesArray[j]]=edgeStrength*Math.pow(D_matrix[nodesArray[i]][nodesArray[j]],-2)}}}},{key:\"_createE_matrix\",value:function _createE_matrix(){var nodesArray=this.body.nodeIndices;var nodes=this.body.nodes;this.E_matrix={};this.E_sums={};for(var mIdx=0;mIdx<nodesArray.length;mIdx++){this.E_matrix[nodesArray[mIdx]]=[]}for(var _mIdx=0;_mIdx<nodesArray.length;_mIdx++){var m=nodesArray[_mIdx];var x_m=nodes[m].x;var y_m=nodes[m].y;var dE_dx=0;var dE_dy=0;for(var iIdx=_mIdx;iIdx<nodesArray.length;iIdx++){var i=nodesArray[iIdx];if(i!==m){var x_i=nodes[i].x;var y_i=nodes[i].y;var denominator=1/Math.sqrt(Math.pow(x_m-x_i,2)+Math.pow(y_m-y_i,2));this.E_matrix[m][iIdx]=[this.K_matrix[m][i]*(x_m-x_i-this.L_matrix[m][i]*(x_m-x_i)*denominator),this.K_matrix[m][i]*(y_m-y_i-this.L_matrix[m][i]*(y_m-y_i)*denominator)];this.E_matrix[i][_mIdx]=this.E_matrix[m][iIdx];dE_dx+=this.E_matrix[m][iIdx][0];dE_dy+=this.E_matrix[m][iIdx][1]}}this.E_sums[m]=[dE_dx,dE_dy]}}},{key:\"_updateE_matrix\",value:function _updateE_matrix(m){var nodesArray=this.body.nodeIndices;var nodes=this.body.nodes;var colm=this.E_matrix[m];var kcolm=this.K_matrix[m];var lcolm=this.L_matrix[m];var x_m=nodes[m].x;var y_m=nodes[m].y;var dE_dx=0;var dE_dy=0;for(var iIdx=0;iIdx<nodesArray.length;iIdx++){var i=nodesArray[iIdx];if(i!==m){var cell=colm[iIdx];var oldDx=cell[0];var oldDy=cell[1];var x_i=nodes[i].x;var y_i=nodes[i].y;var denominator=1/Math.sqrt(Math.pow(x_m-x_i,2)+Math.pow(y_m-y_i,2));var dx=kcolm[i]*(x_m-x_i-lcolm[i]*(x_m-x_i)*denominator);var dy=kcolm[i]*(y_m-y_i-lcolm[i]*(y_m-y_i)*denominator);colm[iIdx]=[dx,dy];dE_dx+=dx;dE_dy+=dy;var sum=this.E_sums[i];sum[0]+=dx-oldDx;sum[1]+=dy-oldDy}}this.E_sums[m]=[dE_dx,dE_dy]}}]);return KamadaKawai}();exports[\"default\"]=KamadaKawai},function(module,exports,__webpack_require__){\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:true});var _classCallCheck2=__webpack_require__(0);var _classCallCheck3=_interopRequireDefault(_classCallCheck2);var _createClass2=__webpack_require__(1);var _createClass3=_interopRequireDefault(_createClass2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var FloydWarshall=function(){function FloydWarshall(){(0,_classCallCheck3[\"default\"])(this,FloydWarshall)}(0,_createClass3[\"default\"])(FloydWarshall,[{key:\"getDistances\",value:function getDistances(body,nodesArray,edgesArray){var D_matrix={};var edges=body.edges;for(var i=0;i<nodesArray.length;i++){var node=nodesArray[i];var cell={};D_matrix[node]=cell;for(var j=0;j<nodesArray.length;j++){cell[nodesArray[j]]=i==j?0:1e9}}for(var _i=0;_i<edgesArray.length;_i++){var edge=edges[edgesArray[_i]];if(edge.connected===true&&D_matrix[edge.fromId]!==undefined&&D_matrix[edge.toId]!==undefined){D_matrix[edge.fromId][edge.toId]=1;D_matrix[edge.toId][edge.fromId]=1}}var nodeCount=nodesArray.length;for(var k=0;k<nodeCount;k++){var knode=nodesArray[k];var kcolm=D_matrix[knode];for(var _i2=0;_i2<nodeCount-1;_i2++){var inode=nodesArray[_i2];var icolm=D_matrix[inode];for(var _j=_i2+1;_j<nodeCount;_j++){var jnode=nodesArray[_j];var jcolm=D_matrix[jnode];var val=Math.min(icolm[jnode],icolm[knode]+kcolm[jnode]);icolm[jnode]=val;jcolm[inode]=val}}}return D_matrix}}]);return FloydWarshall}();exports[\"default\"]=FloydWarshall}])});\n", + "type": "application/javascript", + "module-type": "library" + } + } +}+
{"tiddlers":{"$:/plugins/flibbles/relink/js/bulkops.js":{"text":"!function(){'use strict';var h=require('$:/plugins/flibbles/relink/js/language.js');function e(e,i,t){t=t||{};var r,l=[],o=this.getRelinkReport(e,i,t);for(r in o){var s,n,d,u=o[r],a=Object.create(null),p=!1;for(s in u){var f=u[s];h.eachImpossible(f,function(){l.push(r)}),h.logAll(f,r,e,i,t),f&&f.output&&(a[s]=f.output,p=!0)}p&&(n=this.getTiddler(r),d=new $tw.Tiddler(n,a,this.getModificationFields()),d=$tw.hooks.invokeHook('th-relinking-tiddler',d,n),this.addTiddler(d),d.fields.title!==r&&(this.deleteTiddler(r),this.relinkTiddler(r,d.fields.title,t)))}0<l.length&&(t=$tw.utils.extend({variables:{to:i,from:e},wiki:this},t),h.reportFailures(l,t))}exports.name='redefine-relinkTiddler',exports.synchronous=!0,exports.after=['load-modules'],exports.startup=function(){$tw.Wiki.prototype.relinkTiddler=e}}();","module-type":"startup","type":"application/javascript"},"$:/plugins/flibbles/relink/js/language.js":{"text":"var o,a=require('$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/prettylink.js'),p=require('$:/plugins/flibbles/relink/js/utils/placeholder.js');exports.eachImpossible=function(e,i){e.eachChild&&e.eachChild(function(e){exports.eachImpossible.call(this,e,i)}),e.impossible&&i(e)},exports.logAll=function(e,i,l,t){for(var r=e.report(),n=0;n<r.length;n++)console.log('Renaming \\''+l+'\\' to \\''+t+'\\' in \\''+i+'\\': '+r[n])},exports.getString=function(e,i){return e='$:/plugins/flibbles/relink/language/'+e,i.wiki.renderTiddler('text/plain',e,i)},exports.reportFailures=function(e,i){o=o||new $tw.utils.Logger('Relinker');var l=this.getString('Error/ReportFailedRelinks',i),t=new p(i),r=$tw.utils.extend({placeholder:t},i),n=Object.create(null),s=[];$tw.utils.each(e,function(e){n[e]||($tw.browser?s.push('\\n* '+a.makeLink(e,void 0,r)):s.push('\\n* '+e),n[e]=!0)}),o.alert(t.getPreamble()+l+'\\n'+s.join(''))};","module-type":"library","type":"application/javascript"},"$:/plugins/flibbles/relink/js/mangler.js":{"text":"function e(e,t){this.initialise(e,t),this.addEventListeners([{type:'relink-add-field',handler:'handleAddFieldEvent'},{type:'relink-add-operator',handler:'handleAddOperatorEvent'},{type:'relink-add-parameter',handler:'handleAddParameterEvent'},{type:'relink-add-attribute',handler:'handleAddAttributeEvent'}])}var t=require('$:/core/modules/widgets/widget.js').widget,r=require('$:/plugins/flibbles/relink/js/language.js'),l=require('$:/plugins/flibbles/relink/js/settings.js');function i(e,t){for(var r='$:/config/flibbles/relink/'+t,i=2;i<arguments.length;i++){var a=arguments[i];if(!a||!(a=a.trim()))return;r=r+'/'+a}var n=l.getDefaultType(e);e.addTiddler({title:r,text:n})}((exports.relinkmangler=e).prototype=new t).alert=function(e){alert(e)},e.prototype.handleAddFieldEvent=function(e){return'object'==typeof(e=e.paramObject)&&e.field&&(e=e.field.toLowerCase().trim())&&($tw.utils.isValidFieldName(e)?i(this.wiki,'fields',e):this.alert($tw.language.getString('InvalidFieldName',{variables:{fieldName:e}}))),!0},e.prototype.handleAddOperatorEvent=function(e){return(e=e.paramObject)&&i(this.wiki,'operators',e.operator),!0},e.prototype.handleAddParameterEvent=function(e){return(e=e.paramObject)&&e.macro&&e.parameter&&(/\\s/.test(e.macro.trim())?this.alert(r.getString('Error/InvalidMacroName',{variables:{macroName:e.macro},wiki:this.wiki})):/[ \\/]/.test(e.parameter.trim())?this.alert(r.getString('Error/InvalidParameterName',{variables:{parameterName:e.parameter},wiki:this.wiki})):i(this.wiki,'macros',e.macro,e.parameter)),!0},e.prototype.handleAddAttributeEvent=function(e){return(e=e.paramObject)&&e.element&&e.attribute&&(/[ \\/]/.test(e.element.trim())?this.alert(r.getString('Error/InvalidElementName',{variables:{elementName:e.element},wiki:this.wiki})):/[ \\/]/.test(e.attribute.trim())?this.alert(r.getString('Error/InvalidAttributeName',{variables:{attributeName:e.attribute},wiki:this.wiki})):i(this.wiki,'attributes',e.element,e.attribute)),!0};","module-type":"widget","type":"application/javascript"},"$:/plugins/flibbles/relink/js/settings.js":{"text":"var u=Object.create(null),i=[],f='$:/config/flibbles/relink/';function t(t){this.settings=r(t),this.wiki=t}function r(t){var e,o=Object.create(null);for(e in exports.factories)o[e]=Object.create(null);return t.eachShadowPlusTiddlers(function(t,e){var r,n,i,s;e.substr(0,f.length)===f&&(r=c(s=e.substr(f.length)),(n=exports.factories[r])&&(i=s.substr(r.length+1),(s=u[t.fields.text])&&((s=new s).source=e,s.fields=t.fields,n(o[r],s,i))))}),o}function c(t){var e=t.indexOf('/');if(0<=e)return t.substr(0,e)}function e(t){var e,r=Object.create(null);for(e in t){var n,i=t[e];for(n in i)r[e+'/'+n]=i[n]}return r}$tw.modules.forEachModuleOfType('relinkfieldtype',function(t,e){function r(){}r.prototype=e,r.typeName=e.name,u[e.name]=r,e.aliases&&$tw.utils.each(e.aliases,function(t){u[t]=r})}),$tw.modules.forEachModuleOfType('relinksurveyor',function(t,e){e.survey&&i.push(e)}),(module.exports=t).getType=function(t){return(t=u[t])?new t:void 0},t.getTypes=function(){var t,e=Object.create(null);for(t in u){var r=u[t];e[r.typeName]=r}return e},t.getDefaultType=function(t){return t=(t=t.getTiddler('$:/config/flibbles/relink/settings/default-type'))&&t.fields.text,u[t]?t:'title'},t.prototype.survey=function(t,e,r){if(t)for(var n=0;n<i.length;n++)if(i[n].survey(t,e,r))return!0;return!1},t.prototype.getAttribute=function(t){return this.settings.attributes[t]},t.prototype.getAttributes=function(){return e(this.settings.attributes)},t.prototype.getFields=function(){return this.settings.fields},t.prototype.getOperators=function(){return this.settings.operators},t.prototype.getMacro=function(t){return this.settings.macros[t]},t.prototype.getMacros=function(){return e(this.settings.macros)},t.prototype.refresh=function(t){for(var e in t)if(e.substr(0,f.length)===f)return this.settings=r(this.wiki),!0;return!1},exports.factories={attributes:function(t,e,r){var n=c(r),r=r.substr(n.length+1);t[n]=t[n]||Object.create(null),t[n][r]=e},fields:function(t,e,r){t[r]=e},macros:function(t,e,r){var n=function(t){var e=t.lastIndexOf('/');if(0<=e)return t.substr(0,e)}(r),r=r.substr(n.length+1);t[n]=t[n]||Object.create(null),t[n][r]=e},operators:function(t,e,r){t[r]=e}};","module-type":"library","type":"application/javascript"},"$:/plugins/flibbles/relink/js/wikimethods.js":{"text":"var i=require('$:/plugins/flibbles/relink/js/utils/macroConfig.js'),n=require('$:/plugins/flibbles/relink/js/settings.js'),h=Object.create(null);$tw.modules.applyMethods('relinkoperator',h),exports.getRelinkReport=function(e,t,i){var n=this.getGlobalCache('relink-'+e,function(){return Object.create(null)});return n[t]||(n[t]=function(e,t,i,n){(n=n||{}).wiki=n.wiki||e,n.settings=e.getRelinkConfig(),t=(t||'').trim(),i=(i||'').trim();var r=Object.create(null);if(t&&i)for(var s=e.getRelinkableTitles(),l=0;l<s.length;l++){var a=s[l],o=e.getTiddler(a);if(o&&!o.fields['plugin-type']&&'application/javascript'!==o.fields.type)try{var g,c,f=Object.create(null);for(g in h)h[g](o,t,i,f,n);for(c in f){r[a]=f;break}}catch(e){throw e.message&&(e.message=e.message+'\\nWhen relinking \\''+a+'\\''),e}}return r}(this,e,t,i)),n[t]},exports.getRelinkableTitles=function(){var t='$:/config/flibbles/relink/to-update',i=this;return this.getCacheForTiddler(t,'relink-toUpdate',function(){var e=i.getTiddler(t);return e?i.compileFilter(e.fields.text):i.allTitles})()},exports.getRelinkConfig=function(){var e,t;return void 0===this._relinkConfig&&(e=new n(this),(t=new i(this,e)).import('[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]'),this.eventListeners=this.eventListeners||{},this.eventListeners.change=this.eventListeners.change||[],this.eventListeners.change.unshift(function(e){t.refresh(e)}),this._relinkConfig=t),this._relinkConfig};","module-type":"wikimethod","type":"application/javascript"},"$:/plugins/flibbles/relink/js/filteroperators/all_relinkable.js":{"text":"!function(){'use strict';exports.relinkable=function(e,i,t){return t.wiki.getRelinkableTitles()}}();","module-type":"allfilteroperator","type":"application/javascript"},"$:/plugins/flibbles/relink/js/filteroperators/impossible.js":{"text":"var s=require('$:/plugins/flibbles/relink/js/language.js');exports.impossible=function(e,i,r){var a,n=r.widget&&r.widget.getVariable('currentTiddler'),i=i.operand,l=[];return n&&(a=r.wiki.getRelinkReport(n,i,r),e(function(e,i){var r=a[i];if(r){var n,t=!1;for(n in r)s.eachImpossible(r[n],function(){t=!0});t&&l.push(i)}})),l};","module-type":"relinkfilteroperator","type":"application/javascript"},"$:/plugins/flibbles/relink/js/filteroperators/references.js":{"text":"exports.references=function(e,r,i){var n,f=[];if(r=r.operand)for(n in i.wiki.getRelinkReport(r,'$:/plugins/flibbles/relink/dummy',i))f.push(n);return f};","module-type":"relinkfilteroperator","type":"application/javascript"},"$:/plugins/flibbles/relink/js/filteroperators/relink.js":{"text":"'use strict';var l,n=require('$:/plugins/flibbles/relink/js/language.js');exports.relink=function(r,e,t){var i=0<=(i=(s=e.suffix)?s.indexOf(':'):-1)?[s.substr(0,i),s.substr(i+1)]:[s],s=(l||(l={},$tw.modules.applyMethods('relinkfilteroperator',l)),l[i[0]]);return s?((e=$tw.utils.extend({},e)).suffix=i[1],s(r,e,t)):[n.getString('Error/RelinkFilterOperator',t)]};","module-type":"filteroperator","type":"application/javascript"},"$:/plugins/flibbles/relink/js/filteroperators/report.js":{"text":"exports.report=function(r,n,o){var n=n.operand,i=[],a=o.wiki.getRelinkReport(n,n,o);return n&&r(function(r,n){var o=a[n];if(o)for(var t in o){var e=o[t].report();i=i.concat(e)}}),i};","module-type":"relinkfilteroperator","type":"application/javascript"},"$:/plugins/flibbles/relink/js/filteroperators/signatures.js":{"text":"var i=require('$:/plugins/flibbles/relink/js/settings.js');function o(t){return t.wiki.getGlobalCache('relink-signatures',function(){var e=t.wiki.getRelinkConfig(),n=Object.create(null),e={attributes:e.getAttributes(),fields:e.getFields(),macros:e.getMacros(),operators:e.getOperators()};return $tw.utils.each(e,function(e,r){$tw.utils.each(e,function(e,t){n[r+'/'+t]=e})}),n})}exports.signatures=function(e,t,r){var n=t.operand||null,i=o(r);'$:/core'===n&&(n='$:/plugins/flibbles/relink');var s,u=[];for(s in i)e=i[s].source,r.wiki.getShadowSource(e)===n&&u.push(s);return u},exports.type=function(e,t,r){var n=[],i=o(r);return e(function(e,t){i[t]&&n.push(i[t].name)}),n},exports.types=function(e,t,r){var n=i.getDefaultType(r.wiki);return(r=Object.keys(i.getTypes())).sort(),r.sort(function(e,t){return e===n?-1:t===n?1:0}),r},exports.source=function(e,t,r){var n=[],i=(t.suffix,o(r));return e(function(e,t){i[t]&&n.push(i[t].source)}),n};","module-type":"relinkfilteroperator","type":"application/javascript"},"$:/plugins/flibbles/relink/js/filteroperators/splitafter.js":{"text":"!function(){'use strict';exports.splitafter=function(t,n,s){var r=[];return t(function(t,s){var u=s.lastIndexOf(n.operand);u<0?$tw.utils.pushTop(r,s):$tw.utils.pushTop(r,s.substr(u+1))}),r}}();","type":"application/javascript","module-type":"relinkfilteroperator"},"$:/plugins/flibbles/relink/js/fieldtypes/filter.js":{"text":"var v=require('$:/plugins/flibbles/relink/js/fieldtypes/reference'),g=require('$:/plugins/flibbles/relink/js/utils/rebuilder'),e=require('$:/plugins/flibbles/relink/js/utils/entry');exports.name='filter';var k=e.newType('filter');function y(e){this.entry=e}function m(e){return e.indexOf(']')<0}k.prototype.report=function(){return this.children.map(function(e){return e.report?e.report():''})},y.prototype.name='operator',y.prototype.eachChild=function(e){e(this.entry)},y.prototype.report=function(){var e='';this.entry.report&&(e=this.entry.report());var r=this.operator,e='indirect'===this.type?'{'+e+'}':'['+e+']',t='';return r.suffix&&(t=':'+r.suffix),'['+(r.prefix||'')+r.operator+t+e+']'},exports.relink=function(e,r,t,i){if(i.settings.survey(e,r,i)){for(var n,o,u,s=new k,a=new g(e),f=i.settings.getOperators(),l=0,d=!1,p=/\\s+/gm,c=/((?:\\+|\\-|~|=)?)(?:(\\[)|(?:\"([^\"]*)\")|(?:'([^']*)')|([^\\s\\[\\]]+))/gm;l<e.length;)if(p.lastIndex=l,o=!1,(n=p.exec(e))&&n.index===l?l+=n[0].length:0!=l&&(d?(a.add(' ',l,l),d=!1):o=!0),l<e.length){if(c.lastIndex=l,!(n=c.exec(e))||n.index!==l)return;if(n[1]&&l++,n[2]){var x=/\\[\\[([^\\]]+)\\]\\]/g;x.lastIndex=l;var h=x.exec(e);if(!h||h.index!=l){if(void 0===(l=function(e,r,t,i,n,o,u,s){var a,f;if('['===n.charAt(o++)){do{if(f={},'!'===n.charAt(o)&&(f.prefix='!',o++),-1===(a=n.substring(o).search(/[\\[\\{<\\/]/)))return;a+=o;var l=n.charAt(a);f.operator=n.substring(o,a);var d=f.operator.indexOf(':');-1<d?(f.suffix=f.operator.substring(d+1),f.operator=f.operator.substring(0,d)||'field'):''===f.operator&&(f.operator='title');var p,c=void 0;switch(o=a+1,l){case'{':p='indirect',a=n.indexOf('}',o);var x=n.substring(o,a);(c=v.relinkInBraces(x,r,t,s))&&c.output&&e.add(c.output,o,a);break;case'[':p='string',a=n.indexOf(']',o);var x=n.substring(o,a),h=f.suffix&&u[f.operator+':'+f.suffix]||u[f.operator];if(!h)break;if(!(c=h.relink(x,r,t,s)))break;if(!c.output)break;if(!m(c.output)||s.inBraces&&0<=c.output.indexOf('}}}')){if(!s.placeholder){delete c.output,c.impossible=!0;break}var b=s.placeholder.getPlaceholderFor(c.output,h.name,s),g='<'+b+'>'}else g='['+c.output+']';e.add(g,o-1,a+1);break;case'<':a=n.indexOf('>',o);break;case'/':if(!(b=/^((?:[^\\\\\\/]*|\\\\.)*)\\/(?:\\(([mygi]+)\\))?/g).exec(n.substring(o)))return;a=o+b.lastIndex-1}}while(c&&((l=new y(c)).operator=f,l.type=p,i.add(l)),o=a+1,']'!==n.charAt(o));return']'===n.charAt(o++)?o:void 0}}(a,r,t,s,e,l,f,i)))return;continue}bracketTitle=h[1],c.lastIndex=x.lastIndex,u=h[1]}else u=n[3]||n[4]||n[5];var b=void 0;if(n[3]?b='\"':n[4]?b='\\'':n[5]&&(b=''),u===r){if(x={name:'title'},void 0===(h=function(e,r){var t,i={'':function(e){return/^[^\\s\\[\\]]*[^\\s\\[\\]\\}]$/.test(e)},'[':m,'\\'':function(e){return e.indexOf('\\'')<0},'\"':function(e){return e.indexOf('\"')<0}},n={'':function(e){return e},'[':function(e){return'[['+e+']]'},'\\'':function(e){return'\\''+e+'\\''},'\"':function(e){return'\"'+e+'\"'}};if(i[r]&&i[r](e))return n[r](e);for(t in i)if(i[t](e))return n[t](e)}(t,b))||i.inBraces&&0<=h.indexOf('}}}')){if(!i.placeholder){x.impossible=!0,s.add(x),l=c.lastIndex;continue}h='[<'+i.placeholder.getPlaceholderFor(t,void 0,i)+'>]'}'['!=h[0]&&(o&&!n[1]&&a.add(' ',l,l),d=!0),x.output=t,x.operator={operator:'title'},x.quotation=b,s.add(x),a.add(h,l,c.lastIndex)}l=c.lastIndex}return 0<s.children.length?(s.output=a.results(),s):void 0}},exports.relinkInBraces=function(e,r,t,i){return i=$tw.utils.extend({inBraces:!0},i),!(t=this.relink(e,r,t,i))||!t.output||(i=t.output).indexOf('}}}')<0&&'}}'!==i.substr(i.length-2)||(delete t.output,t.impossible=!0),t};","module-type":"relinkfieldtype","type":"application/javascript"},"$:/plugins/flibbles/relink/js/fieldtypes/list.js":{"text":"exports.name='list',exports.relink=function(t,s,e,i){var r,n=!1,l=!1;if('string'!=typeof t?(r=(t||[]).slice(0),l=!0):r=$tw.utils.parseStringArray(t||''),$tw.utils.each(r,function(t,i){t===s&&(r[i]=e,n=!0)}),n)return t={name:'list'},/\\]\\][^\\S\\xA0]/m.test(e)?t.impossible=!0:t.output=l?r:$tw.utils.stringifyList(r),t};","module-type":"relinkfieldtype","type":"application/javascript"},"$:/plugins/flibbles/relink/js/fieldtypes/reference.js":{"text":"function o(e){this.reference=e}exports.name='reference',o.prototype.name='reference',o.prototype.report=function(){return this.reference.field?['!!'+this.reference.field]:this.reference.index?['##'+this.reference.index]:['']},exports.relink=function(e,t,r,n){var i;return!e||(e=$tw.utils.parseTextReference(e)).title===t&&(i=new o(e),exports.canBePretty(r)?(e.title=r,i.output=exports.toString(e)):i.impossible=!0),i},exports.relinkInBraces=function(e,t,r,n){return(n=this.relink(e,t,r,n))&&n.output&&0<=r.indexOf('}')&&(delete n.output,n.impossible=!0),n},exports.toString=function(e){var t=e.title||'';return e.field?t+'!!'+e.field:e.index?t+'##'+e.index:t},exports.canBePretty=function(e){return!e||e.indexOf('!!')<0&&e.indexOf('##')<0};","module-type":"relinkfieldtype","type":"application/javascript"},"$:/plugins/flibbles/relink/js/fieldtypes/title.js":{"text":"exports.name='title',exports.relink=function(e,t,i,n){if(e===t)return{name:'title',output:i}},exports.aliases=['field','yes'];","module-type":"relinkfieldtype","type":"application/javascript"},"$:/plugins/flibbles/relink/js/fieldtypes/wikitext.js":{"text":"exports.name='wikitext';var h=require('$:/core/modules/parsers/wikiparser/wikiparser.js')['text/vnd.tiddlywiki'],l=require('$:/plugins/flibbles/relink/js/utils/rebuilder.js'),p=require('$:/plugins/flibbles/relink/js/utils/entry').newType('wikitext');function u(t,e,i,s,n){var r,o;this.entry=new p,this.builder=new l(e),this.options=n,this.relinkMethodsInjected||(o=Object.create(null),$tw.modules.forEachModuleOfType('relinkwikitextrule',function(t,e){var i=e.name;if('string'==typeof i&&(i=[i]),void 0!==i)for(var s=0;s<i.length;s++)o[i[s]]=e}),r=o,$tw.utils.each([this.pragmaRuleClasses,this.blockRuleClasses,this.inlineRuleClasses],function(t){for(var e in t)r[e]&&(delete r[e].name,$tw.utils.extend(t[e].prototype,r[e]))}),u.prototype.relinkMethodsInjected=!0),this.fromTitle=i,this.toTitle=s,h.call(this,t,e,n)}u.prototype=Object.create(h.prototype),u.prototype.parsePragmas=function(){for(;this.skipWhitespace(),!(this.pos>=this.sourceLength);){var t=this.findNextMatch(this.pragmaRules,this.pos);if(!t||t.matchIndex!==this.pos)break;this.relinkRule(t)}return[]},u.prototype.parseInlineRunUnterminated=function(t){for(var e=this.findNextMatch(this.inlineRules,this.pos);this.pos<this.sourceLength&&e;)e.matchIndex>this.pos&&(this.pos=e.matchIndex),this.relinkRule(e),e=this.findNextMatch(this.inlineRules,this.pos);this.pos=this.sourceLength},u.prototype.parseInlineRunTerminated=function(t,e){e=e||{},t.lastIndex=this.pos;for(var i=t.exec(this.source),s=this.findNextMatch(this.inlineRules,this.pos);this.pos<this.sourceLength&&(i||s);){if(i&&(!s||s.matchIndex>=i.index))return this.pos=i.index,e.eatTerminator&&(this.pos+=i[0].length),[];s&&(s.matchIndex>this.pos&&(this.pos=s.matchIndex),this.relinkRule(s),s=this.findNextMatch(this.inlineRules,this.pos),t.lastIndex=this.pos,i=t.exec(this.source))}return this.pos=this.sourceLength,[]},u.prototype.parseBlock=function(t){if(this.skipWhitespace(),this.pos>=this.sourceLength)return[];var e=this.findNextMatch(this.blockRules,this.pos);return e&&e.matchIndex===this.pos?this.relinkRule(e):this.parseInlineRun(/(\\r?\\n\\r?\\n)/gm)},u.prototype.relinkRule=function(t){var e;t.rule.relink?void 0!==(e=t.rule.relink(this.source,this.fromTitle,this.toTitle,this.options))&&(this.entry.add(e),e.output&&this.builder.add(e.output,t.matchIndex,this.pos)):void 0!==t.rule.matchRegExp?this.pos=t.rule.matchRegExp.lastIndex:t.rule.parse()},u.prototype.amendRules=function(t,e){var i;if(h.prototype.amendRules.call(this,t,e),'only'===t)i=!0;else{if('except'!==t)return;i=!1}i!==0<=e.indexOf('macrodef')&&(this.options.placeholder=void 0),i!==0<=e.indexOf('html')&&(this.options.noWidgets=!0),i!==0<=e.indexOf('prettylink')&&(this.options.noPrettylinks=!0)},exports.relink=function(t,e,i,s){if(s.settings.survey(t,e,s)){var n=$tw.utils.extend({},s);return n.settings=s.settings.createChildLibrary(s.currentTiddler),0<(n=new u(s.type,t,e,i,n)).entry.children.length?(n.entry.output=n.builder.results(),n.entry):void 0}};","module-type":"relinkfieldtype","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/fields.js":{"text":"'use strict';require('$:/plugins/flibbles/relink/js/settings.js');var f=require('$:/plugins/flibbles/relink/js/utils/entry').newType('field');f.prototype.report=function(){var i=this,t=[];return $tw.utils.each(this.children,function(e){e.report?$tw.utils.each(e.report(),function(e){e?t.push(i.field+': '+e):t.push(i.field)}):t.push(i.field)}),t},exports.fields=function(s,r,l,n,u){var e=u.settings.getFields();$tw.utils.each(e,function(e,i){var t=s.fields[i];void 0!==(e=e.relink(t,r,l,u))&&((t=new f).field=i,t.output=e.output,t.add(e),n[i]=t)})};","module-type":"relinkoperator","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text.js":{"text":"'use strict';var a=Object.create(null);$tw.modules.applyMethods('relinktextoperator',a);var s={'$:/DefaultTiddlers':'text/x-tiddler-filter'};exports.text=function(t,e,l,i,r){var d=t.fields;d.text&&(d=s[d.title]||d.type||'text/vnd.tiddlywiki',!a[d]||(r=a[d].call(this,t,e,l,r))&&(i.text=r))};","module-type":"relinkoperator","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/filtertext.js":{"text":"'use strict';var l=require('$:/plugins/flibbles/relink/js/settings').getType('filter');exports['text/x-tiddler-filter']=function(e,t,i,r){return l.relink(e.fields.text,t,i,r)};","module-type":"relinktextoperator","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext.js":{"text":"'use strict';var s=require('$:/plugins/flibbles/relink/js/utils/placeholder.js'),u=require('$:/plugins/flibbles/relink/js/settings.js').getType('wikitext');exports['text/vnd.tiddlywiki']=function(e,t,i,l){var r=new s,l=$tw.utils.extend({currentTiddler:e.fields.title,placeholder:r},l);return(l=u.relink(e.fields.text,t,i,l))&&l.output&&(r=r.getPreamble(),l.output=r+l.output),l};","module-type":"relinktextoperator","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/code.js":{"text":"exports.name=['codeinline','codeblock'],exports.relink=function(e,s,t,n){var r;this.parser.pos=this.matchRegExp.lastIndex,(r=2<this.match[0].length?/\\r?\\n```$/gm:new RegExp(this.match[1],'mg')).lastIndex=this.parser.pos,e=r.exec(e),this.parser.pos=e?e.index+e[0].length:this.parser.sourceLength};","module-type":"relinkwikitextrule","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/comment.js":{"text":"exports.name=['commentinline','commentblock'],exports.relink=function(e,n,t,o){this.parser.pos=this.endMatchRegExp.lastIndex};","module-type":"relinkwikitextrule","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/filteredtransclude.js":{"text":"exports.name=['filteredtranscludeinline','filteredtranscludeblock'];var a=require('$:/plugins/flibbles/relink/js/settings').getType('filter'),o=require('./utils.js'),p=require('$:/plugins/flibbles/relink/js/utils/entry').newType('filteredtransclude');p.prototype.report=function(){var r=[],i=this;return $tw.utils.each(this.children,function(e){var t;'filter'===e.name?(t='}}}',i.template&&(t='||'+i.template+t),$tw.utils.each(e.report(),function(e){r.push('{{{'+e+t)})):r.push('{{{'+i.filter+'||}}}')}),r},exports.relink=function(e,t,r,i){var l=this.match;filter=l[1],tooltip=l[2],template=l[3],style=l[4],classes=l[5],parser=this.parser,entry=new p,parser.pos=this.matchRegExp.lastIndex;var n=!1,s=a.relink(filter,t,r,i);if(void 0!==s&&(entry.add(s),s.output&&(n=!0,filter=s.output)),$tw.utils.trim(template)===t&&(template=template.replace(t,r),entry.add({name:'title',output:template}),n=!0),n)void 0===(i=this.makeFilteredtransclude(filter,tooltip,template,style,classes,i))?entry.impossible=!0:entry.output=i+o.getEndingNewline(l[0]),entry.filter=filter;else if(entry.children.length<=0)return;return entry.template=template,entry},exports.makeFilteredtransclude=function(e,t,r,i,l,n){return(s=e).indexOf('|')<0&&s.indexOf('}}')<0&&(!(s=r)||s.indexOf('|')<0&&s.indexOf('{')<0&&s.indexOf('}')<0)?'{{{'+e+(s=void 0===(s=t)?'':'|'+s)+(s=void 0===(s=r)?'':'||'+s)+'}}'+(i||'')+'}'+(s=void 0===(s=l)?'':'.'+s):n.noWidgets?void 0:function(e,t,r,i,l,n){var s=!1;function a(e,t,r){if(!t)return'';if(void 0===(i=o.wrapAttributeValue(t))){if(!n.placeholder)return void(s=!0);var r=r?void 0:e,i='<<'+n.placeholder.getPlaceholderFor(t,r,n)+'>>'}return' '+e+'='+i}if(void 0!==l&&(l=l.split('.').join(' ')),l=['<$list',a('filter',e),a('tooltip',t),a('template',r,!0),a('style',i),a('itemClass',l),'/>'],!s)return l.join('')}(e,t,r,i,l,n);var s};","module-type":"relinkwikitextrule","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html.js":{"text":"var T=require('./utils.js'),y=require('$:/plugins/flibbles/relink/js/utils/rebuilder'),k=(e=require('$:/plugins/flibbles/relink/js/settings.js')).getType('reference'),$=e.getType('filter'),j=require('./macrocall.js'),e=require('$:/plugins/flibbles/relink/js/utils/entry');exports.name='html';var w=e.newCollection('html');w.prototype.forEachChildReport=function(e,t,i){return'filtered'===i?t+='={{{'+e+'}}}':'indirect'===i?t+='={{'+e+'}}':'macro'===i?t+='='+e:0<e.length&&(t+='=\"'+e+'\"'),'<'+this.element+' '+t+' />'},exports.relink=function(e,t,i,r){r.settings.getAttribute(this.nextTag.tag);var n,a,l,s,u,o,g,p=new y(e,this.nextTag.start),d=new w;for(a in d.attributes=Object.create(null),d.element=this.nextTag.tag,this.nextTag.attributes){var f=this.nextTag.attributes[a],c=e.indexOf('=',f.start);if(!(c<0||c>f.end)){'$importvariables'===this.nextTag.tag&&'filter'===a&&(n=f);var h=void 0;if('string'===f.type){var b,v=function(e,t,i){if('$macrocall'===e.tag){var r=e.attributes.$name;if(r=r&&i.settings.getMacro(r.value))return r[t]}else if(e=i.settings.getAttribute(e.tag))return e[t]}(this.nextTag,a,r);if(!v)continue;if(void 0===(m=v.relink(f.value,t,i,r)))continue;m.output&&(c=T.determineQuote(e,f),b=f.value.length+2*c.length,void 0===(h=T.wrapAttributeValue(m.output,c))&&(r.placeholder?h='<<'+r.placeholder.getPlaceholderFor(m.output,v.name,r)+'>>':m.impossible=!0))}else if('indirect'===f.type){if(void 0===(m=k.relinkInBraces(f.textReference,t,i,r)))continue;m.output&&(b=f.textReference.length+4,h='{{'+m.output+'}}')}else if('filtered'===f.type){if(void 0===(m=$.relinkInBraces(f.filter,t,i,r)))continue;m.output&&(b=f.filter.length+6,h='{{{'+m.output+'}}}')}else if('macro'===f.type){var m,x=f.value;if(void 0===(m=j.relinkAttribute(x,e,t,i,r)))continue;m.impossible||(b=x.end-x.start,h=m.output)}d.addChild(m,a,f.type),void 0!==h&&('$importvariables'===this.nextTag.tag&&'filter'===a&&(n=h),x=f.end-b,p.add(h,x,f.end))}}if(n&&(s=r,'string'==typeof(l=n)&&(l=$tw.utils.parseAttribute('p='+l,0)),o=s,l=u='filtered'===(u=l).type?(g=o.settings.getVariableWidget(),o.wiki.filterTiddlers(u.filter,g)[0]||''):'indirect'===u.type?(g=o.settings.getVariableWidget(),o.wiki.getTextReference(u.textReference,'',g.variables.currentTiddler.value)):'macro'===u.type?(g=o.settings.getVariableWidget()).getVariable(u.value.name,{params:u.value.params}):u.value,s.settings.import(l)),this.parser.pos=this.nextTag.end,d.hasChildren())return d.output=p.results(this.nextTag.end),d};","module-type":"relinkwikitextrule","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/image.js":{"text":"var C=require('$:/plugins/flibbles/relink/js/utils/rebuilder'),q=require('$:/plugins/flibbles/relink/js/fieldtypes/reference'),w=require('$:/plugins/flibbles/relink/js/settings').getType('filter'),$=require('./macrocall.js'),A=require('./utils.js'),e=require('$:/plugins/flibbles/relink/js/utils/entry');exports.name='image';var V=e.newCollection('image');V.prototype.forEachChildReport=function(e,t,i){var r='source'===t?this.tooltip?'[img['+this.tooltip.value+']]':'[img[]]':('indirect'===i?r='{{'+e+'}}':'filtered'===i?r='{{{'+e+'}}}':'macro'===i&&(r=e),'[img '+t+'='+r+']');return r},exports.relink=function(e,t,i,r){var l,a,n=this.nextImage.start,d=new C(e,n),u=!1,o=!1,s=new V;s.attributes=Object.create(null),this.nextImage.attributes.source.value!==t||(l=i,a=this.nextImage.attributes.tooltip,l.indexOf(']')<0&&(a||l.indexOf('|')<0))||(r.noWidgets||!A.wrapAttributeValue(i)&&!r.placeholder?o=!0:(u=!0,d.add('<$image',n,n+4))),n+=4;var p,f,g,h,c,m,x,v,b,O=!1;for(p in this.nextImage.attributes){var k,y,I,j=this.nextImage.attributes[p];'source'!==p&&'tooltip'!==p||(O?n=e.indexOf('|',n):(n=e.indexOf('[',n),O=!0),u&&(0<=' \\t\\n'.indexOf(e[n-1])?d.add('',n,n+1):d.add(' ',n,n+1)),n+=1),'source'===p?(n=e.indexOf(j.value,n),j.value===t&&(k={name:'title'},u?void 0===(I=A.wrapAttributeValue(i))?(y=r.placeholder.getPlaceholderFor(i,void 0,r),d.add('source=<<'+y+'>>',n,n+t.length)):d.add('source='+I,n,n+t.length):o?k.impossible=!0:d.add(i,n,n+t.length),s.addChild(k,p,'string')),n=e.indexOf(']]',n),u&&d.add('/>',n,n+2),n+=2):'tooltip'===p?(u&&(n=e.indexOf(j.value,n),I=A.wrapAttributeValue(j.value),d.add('tooltip='+I,n,n+j.value.length)),s.tooltip=this.nextImage.attributes.tooltip):(f=j,g=t,h=i,c=s,m=r,k=y=b=v=x=void 0,y=(j=d).text,k=y.indexOf(f.name,f.start),k+=f.name.length,k=y.indexOf('=',k),'string'===f.type?v=(k=y.indexOf(f.value,k))+(v=A.determineQuote(y,f)).length+f.value.length:'indirect'===f.type?(v=(k=y.indexOf('{{',k))+f.textReference.length+4,(x=q.relinkInBraces(f.textReference,g,h,m))&&(c.addChild(x,f.name,'indirect'),x.output&&j.add('{{'+x.output+'}}',k,v))):'filtered'===f.type?(v=(k=y.indexOf('{{{',k))+f.filter.length+6,void 0!==(x=w.relinkInBraces(f.filter,g,h,m))&&(c.addChild(x,f.name,'filtered'),x.output&&(b='{{{'+x.output+'}}}',j.add(b,k,v)))):'macro'===f.type&&(k=y.indexOf('<<',k),v=f.value.end,b=f.value,oldValue=f.value,void 0!==(m=$.relinkAttribute(b,y,g,h,m))&&(c.addChild(m,f.name,'macro'),m.output&&j.add(m.output,k,v))),n=v)}if(this.parser.pos=n,s.hasChildren())return s.output=d.results(n),s};","module-type":"relinkwikitextrule","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/import.js":{"text":"var s=require('$:/plugins/flibbles/relink/js/settings.js').getType('filter');function u(t){this.filter=t}exports.name='import',u.prototype.name='import',u.prototype.eachChild=function(t){return t(this.filter)},u.prototype.report=function(){return this.filter.report().map(function(t){return 0<t.length?'\\\\import '+t:'\\\\import'})},exports.relink=function(t,r,e,i){var n=this.matchRegExp.lastIndex,o=this.parse()[0].attributes.filter.value,p=void 0;return void 0!==(e=s.relink(o,r,e,i))&&(p=new u(e),n=t.substring(n+o.length,this.parser.pos),e.output&&(o=e.output,p.output='\\\\import '+o+n)),i.settings.import(o),p};","module-type":"relinkwikitextrule","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/macrocall.js":{"text":"var d=require('./utils.js'),i=require('$:/plugins/flibbles/relink/js/utils/rebuilder'),e=(require('$:/plugins/flibbles/relink/js/settings.js'),require('$:/plugins/flibbles/relink/js/utils/entry'));function x(){}exports.name=['macrocallinline','macrocallblock'],x.prototype.impossible=!0,x.prototype.name='macroparam',x.prototype.report=function(){return[]};var b=e.newCollection('macrocall');function p(e,t,r,a,n,i){var s=i.settings.getMacro(e.name),l=!1;if(s&&!e.params.every(function(e){return!i.settings.survey(e.value,r,i)})){var u,o,p=$tw.utils.extend({},e),m=new b;for(u in m.parameters=Object.create(null),p.params=e.params.slice(),s){try{o=function(e,t,r,a){var n=!1;for(u=0;u<r.length;u++){var i=r[u].name;if(i===t)return u;void 0===i&&(n=!0)}if(!n)return-1;var s=w(e,t,a);if(0<=s)for(var l=0,u=0;u<r.length;u++)if(void 0===r[u].name){if(l===s)return u;l++}else w(e,r[u].name,a)<s&&l++;return-1}(e.name,u,e.params,i)}catch(e){if(e instanceof x){m.addChild(e);continue}}if(!(o<0)){var c=e.params[o],h=s[u],f=h.relink(c.value,r,a,i);if(void 0!==f&&(m.addChild(f,u,'string'),f.output)){var v=d.determineQuote(t,c),g=d.wrapParameterValue(f.output,v),c=$tw.utils.extend({},c);if(void 0===g){if(!n||!i.placeholder){f.impossible=!0;continue}h=i.placeholder.getPlaceholderFor(f.output,h.name,i),c.newValue='<<'+h+'>>',c.type='macro'}else c.start=c.end-(c.value.length+2*v.length),c.value=f.output,c.newValue=g;p.params[o]=c,l=!0}}}return m.hasChildren()?(m.macro=e.name,l&&(m.output=p),m):void 0}}function m(e,t){for(var r=new i(t,e.start),a=0;a<e.params.length;a++){var n=e.params[a];n.newValue&&r.add(n.newValue,n.start,n.end)}return r.results(e.end)}function w(e,t,r){if(void 0===(e=r.settings.getMacroDefinition(e)))throw new x;for(var a=e.params||[],n=0;n<a.length;n++)if(a[n].name===t)return n;return-1}b.prototype.forEachChildReport=function(e,t,r){return t=0<e.length?t+': \"'+e+'\"':t,'<<'+this.macro+' '+t+'>>'},exports.relink=function(e,t,r,a){var n,i,s=this.nextCall?(u=this.nextCall.params,o=this.nextCall.name,n=0<u.length?e.substring($tw.utils.skipWhiteSpace(e,u[0].start),u[u.length-1].end):'',i=e.substring(this.nextCall.start,this.nextCall.end),this.parser.pos=this.nextCall.end,this.nextCall.start):(o=this.match[1],n=this.match[2],i=this.match[0],this.parser.pos=this.matchRegExp.lastIndex,this.matchRegExp.lastIndex-i.length);if(a.settings.survey(i,t,a)&&a.settings.getMacro(o)){var l=o.length+2,u=function(e,t){for(var r=[],a=/\\s*(?:([A-Za-z0-9\\-_]+)\\s*:)?(?:\\s*(?:\"\"\"([\\s\\S]*?)\"\"\"|\"([^\"]*)\"|'([^']*)'|\\[\\[([^\\]]*)\\]\\]|([^\"'\\s]+)))/gm,n=a.exec(e);n;){var i={value:n[2]||n[3]||n[4]||n[5]||n[6]};n[1]&&(i.name=n[1]),i.end=a.lastIndex+t,r.push(i),n=a.exec(e)}return r}(n,$tw.utils.skipWhiteSpace(i,l)+s),o={name:o,start:s,end:this.parser.pos,params:u},s=!a.noWidgets;return void 0===(u=function(e,t,r){var a=Object.create(null),n=new Array(t.length),i=!1;for(o=0;o<t.length;o++){var s=t[o].name;s?a[n[o]=s]=!0:i=!0}if(i){if(void 0===(e=r.settings.getMacroDefinition(e)))return;for(var l=e.params||[],u=0,o=0;o<t.length;o++)if(void 0===n[o]){for(;u<l.length&&a[l[u].name];)u++;if(l.length<=u)break;n[o]=l[u].name,a[l[u].name]=!0}}return n}(o.name,o.params,a))&&(s=!1),(s=p(o,e,t,r,s,a))&&s.output&&(s.output=function(e,t,r){if(function(e){for(var t=0;t<e.params.length;t++)if('macro'===e.params[t].type)return 1}(e)){for(var a=[],n=0;n<e.params.length;n++){var i=(i=e.params[n]).newValue||d.wrapAttributeValue(i.value);a.push(' '+r[n]+'='+i)}return'<$macrocall $name='+d.wrapAttributeValue(e.name)+a.join('')+'/>'}return m(e,t)}(s.output,e,u)),s}},exports.relinkAttribute=function(e,t,r,a,n){return(a=p(e,t,r,a,!1,n))&&a.output&&(a.output=m(a.output,t)),a};","module-type":"relinkwikitextrule","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/macrodef.js":{"text":"var d=require('$:/plugins/flibbles/relink/js/settings');function c(t,e){this.macro=t,this.body=e}exports.name='macrodef',c.prototype.name='macrodef',c.prototype.eachChild=function(t){return t(this.body)},c.prototype.report=function(){var e='\\\\define '+this.macro+'()';return this.body.report?this.body.report().map(function(t){return e+' '+t}):[e]},exports.relink=function(t,e,r,s){var i,n,o=this.parse(),p=this.match;s.settings.addMacroDefinition(o[0]),this.parser.pos=this.matchRegExp.lastIndex,p[3]?(a=/\\r?\\n\\\\end[^\\S\\n\\r]*(?:\\r?\\n|$)/gm,n=''):(u=$tw.utils.skipWhiteSpace(t,this.parser.pos),a=/(?:\\r?\\n|$)/gm,n=t.substring(this.parser.pos,u),this.parser.pos=u),a.lastIndex=this.parser.pos;var a,h,u=a.exec(t);return u&&(a=t.substring(this.parser.pos,u.index),t=(t=/^relink-(?:(\\w+)-)?(\\d+)$/.exec(p[1]))&&''===p[2]?t[1]||'title':'wikitext',(t=d.getType(t))&&(h=t.relink(a,e,r,s)),void 0!==h&&(i=new c(p[1],h),h.output&&(i.output=p[0]+n+h.output+u[0])),this.parser.pos=u.index+u[0].length),i};","module-type":"relinkwikitextrule","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/prettylink.js":{"text":"var e,a=require('./utils.js');function l(){}function d(t,e){if(e.wiki.renderText('text/plain','text/vnd.tiddlywiki',t)===t&&t.indexOf('</$link>')<=0)return t;var i=a.wrapAttributeValue(t);return i?'<$text text='+i+'/>':e.placeholder?'<$text text=<<'+e.placeholder.getPlaceholderFor(t,'caption',e)+'>>/>':void 0}l.prototype.name='prettylink',l.prototype.report=function(){return['[['+(this.caption||this.link)+']]']},exports.name='prettylink',exports.relink=function(t,e,i,r){this.parser.pos=this.matchRegExp.lastIndex;var n,o=this.match;if(o[2]===e)n=o[1];else if(void 0!==o[2]||o[1]!==e)return;return(o=new l).caption=n,o.link=e,o.output=this.makeLink(i,n,r),void 0===o.output&&(o.impossible=!0),o},exports.makeLink=function(t,e,i){var r,n,o,l;if(!i.noPrettylinks&&this.canBePretty(t,!!e))l=t,l=e?'[['+e+'|'+l+']]':'[['+l+']]';else if(i.noWidgets)l=void 0;else if(void 0===e)if(exports.shorthandSupported(i)){if(!(r=a.wrapAttributeValue(t))){if(!i.placeholder)return;r='<<'+i.placeholder.getPlaceholderFor(t,void 0,i)+'>>'}l='<$link to='+r+'/>'}else i.placeholder&&(l='<$link to=<<'+(n=i.placeholder.getPlaceholderFor(t,void 0,i))+'>>><$text text=<<'+n+'>>/></$link>');else(r=a.wrapAttributeValue(t))?void 0!==(o=d(e,i))&&(l='<$link to='+r+'>'+o+'</$link>'):i.placeholder&&(l='<$link to=<<'+(n=i.placeholder.getPlaceholderFor(t,void 0,i))+'>>>'+(o=d(e,i))+'</$link>');return l},exports.canBePretty=function(t,e){return t.indexOf(']]')<0&&']'!==t[t.length-1]&&(e||t.indexOf('|')<0)},exports.shorthandSupported=function(t){return void 0===e&&(t=t.wiki.renderText('text/plain','text/vnd.tiddlywiki','<$link to=test/>'),e='test'===t),e};","module-type":"relinkwikitextrule","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/relink.js":{"text":"var p=require('$:/plugins/flibbles/relink/js/settings.js'),l=require('$:/plugins/flibbles/relink/js/language.js');exports.name='relink',exports.types={pragma:!0},exports.init=function(e){this.parser=e,this.matchRegExp=/^\\\\relink[^\\S\\n]+([^(\\s]+)([^\\r\\n]*)(\\r?\\n)?/gm},exports.parse=function(){var i;this.parser.pos=this.matchRegExp.lastIndex;var e,s=Object.create(null),n=void 0,t=[],a=this;return this.interpretSettings(function(e,t,r){i=e,r&&!p.getType(r)&&(n=l.getString('Error/UnrecognizedType',{variables:{type:r},wiki:a.parser.wiki})),s[t]=r}),i&&((e=Object.create(null))[i]=s,t.push({type:'set',attributes:{name:{type:'string',value:''}},children:[],isMacroDefinition:!0,relink:e})),n&&t.push({type:'element',tag:'span',attributes:{class:{type:'string',value:'tc-error tc-relink-error'}},children:[{type:'text',text:n}]}),t},exports.relink=function(e,t,r,i){this.parser.pos=this.matchRegExp.lastIndex,this.interpretSettings(function(e,t,r){i.settings.addSetting(e,t,r,i.currentTiddler)})},exports.interpretSettings=function(e){var t=this.match[2];if(''!==t)for(var r=this.match[1],i=/\\s*([A-Za-z0-9\\-_]+)(?:\\s*:\\s*([^\\s]+))?/gm,s=i.exec(t);s;)e(r,s[1],s[2]),s=i.exec(t)};","module-type":"wikirule","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/rules.js":{"text":"exports.name='rules',exports.relink=function(){this.parse()};","module-type":"relinkwikitextrule","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/syslink.js":{"text":"require('./utils.js');var n=require('$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/prettylink.js');function r(){}exports.name='syslink',r.prototype.name='syslink',r.prototype.report=function(){return['~'+this.link]},exports.relink=function(t,i,e,n){var s=void 0;return this.parser.pos=this.matchRegExp.lastIndex,this.match[0]===i&&'~'!==this.match[0][0]&&((s=new r).link=i,s.output=this.makeSyslink(e,n),void 0===s.output&&(s.impossible=!0)),s},exports.makeSyslink=function(t,i){var e=t.match(this.matchRegExp);return e&&e[0]===t&&'~'!==t[0]?t:n.makeLink(t,void 0,i)};","module-type":"relinkwikitextrule","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/transclude.js":{"text":"var d=require('$:/plugins/flibbles/relink/js/fieldtypes/reference'),s=require('./utils.js');function u(){}function o(e,t){e=$tw.utils.trim(e);var i=s.wrapAttributeValue(e);return void 0===i&&t.placeholder&&(i='<<'+t.placeholder.getPlaceholderFor(e,void 0,t)+'>>'),i}function a(e){return!e||e.indexOf('}')<0&&e.indexOf('{')<0&&e.indexOf('|')<0}function c(e,t,i){if(t){var r=s.wrapAttributeValue(t);if(void 0===r){if(!i.placeholder)return;r='<<'+i.placeholder.getPlaceholderFor(t,e,i)+'>>'}return' '+e+'='+r}return''}function p(e,t){return'string'!=typeof e&&(e=d.toString(e)),e=e||'',void 0!==t?'{{'+e+'||'+t+'}}':'{{'+e+'}}'}exports.name=['transcludeinline','transcludeblock'],u.prototype.name='transclude',u.prototype.report=function(){var e,t=this.reference||{},i=[];return this.referenceChanged&&(e=t.index?'##'+t.index:t.field?'!!'+t.field:'',this.template&&(e=e+'||'+this.template),i.push('{{'+e+'}}')),this.templateChanged&&(t=d.toString(t),i.push('{{'+t+'||}}')),i},exports.relink=function(e,t,i,r){var n=this.match,l=$tw.utils.parseTextReference(n[1]),d=n[2],o=new u,a=!1;if(this.parser.pos=this.matchRegExp.lastIndex,$tw.utils.trim(l.title)===t&&(l.title=l.title.replace(t,i),a=!0,o.referenceChanged=!0),$tw.utils.trim(d)===t&&(d=d.replace(t,i),a=!0,o.templateChanged=!0),a)return o.reference=l,o.template=d,(r=this.makeTransclude(l,d,r))?(r+=s.getEndingNewline(n[0]),o.output=r):o.impossible=!0,o},exports.makeTransclude=function(e,t,i){var r,n,l;return a(t)?(l=e.title,d.canBePretty(l)&&a(l)?r=p(e,t):i.noWidgets||void 0!==(n=o(e.title,i))&&(r='<$tiddler tiddler='+n+'>'+p({field:e.field,index:e.index},t)+'</$tiddler>')):i.noWidgets||void 0!==(t=o(t,i))&&(e.title?(n=o(e.title,i),l=e.field,e=e.index,i=void 0!==(l=[c('field',l,l=i),c('index',e,l)])[0]&&void 0!==l[1]?l.join(''):void 0,void 0!==n&&void 0!==i&&(r='<$tiddler tiddler='+n+'><$transclude tiddler='+t+i+'/></$tiddler>')):r='<$transclude tiddler='+t+'/>'),r};","module-type":"relinkwikitextrule","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/utils.js":{"text":"function f(n,r){if(r={'':function(n){return n},'\\'':function(n){return'\\''+n+'\\''},'\"':function(n){return'\"'+n+'\"'},'\"\"\"':function(n){return'\"\"\"'+n+'\"\"\"'},'[[':function(n){return'[['+n+']]'}}[r])return r(n)}exports.wrapAttributeValue=function(n,r){var t=['','\\'','\"','\"\"\"'],e={'':function(n){return!/([\\/\\s<>\"'=])/.test(n)},'\\'':function(n){return n.indexOf('\\'')<0},'\"':function(n){return n.indexOf('\"')<0},'\"\"\"':function(n){return n.indexOf('\"\"\"')<0&&'\"'!=n[n.length-1]}};if(e[r]&&e[r](n))return f(n,r);for(var u=0;u<t.length;u++){var i=t[u];if(e[i](n))return f(n,i)}},exports.wrapParameterValue=function(n,r){var t=['','\\'','\"','[[','\"\"\"'],e={'':function(n){return!/([\\s>\"'=])/.test(n)},'\\'':function(n){return n.indexOf('\\'')<0},'\"':function(n){return n.indexOf('\"')<0},'[[':exports.canBePrettyOperand,'\"\"\"':function(n){return n.indexOf('\"\"\"')<0&&'\"'!=n[n.length-1]}};if(e[r]&&e[r](n))return f(n,r);for(var u=0;u<t.length;u++){var i=t[u];if(e[i](n))return f(n,i)}},exports.canBePrettyOperand=function(n){return n.indexOf(']')<0},exports.determineQuote=function(n,r){var t=r.end-1;return'\\''===n[t]?'\\'':'\"'===n[t]?'\"\"\"'===n.substr(t-2,3)?'\"\"\"':'\"':']]'===n.substr(t-1,2)&&'[['===n.substr(t-r.value.length-3,2)?'[[':''},exports.getEndingNewline=function(n){var r=n.length;return'\\n'===n[r-1]?'\\r'===n[r-2]?'\\r\\n':'\\n':''};","module-type":"library","type":"application/javascript"},"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/wikilink.js":{"text":"require('./utils.js');var e=require('$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/prettylink.js');function k(){}exports.name='wikilink',k.prototype.name='wikilink',k.prototype.report=function(){return[$tw.config.textPrimitives.unWikiLink+this.link]},exports.relink=function(i,t,e,n){var r=void 0;return this.parser.pos=this.matchRegExp.lastIndex,this.match[0]===t&&this.match[0][0]!==$tw.config.textPrimitives.unWikiLink&&((r=new k).link=t,r.output=this.makeWikilink(e,n),void 0===r.output&&(r.impossible=!0)),r},exports.makeWikilink=function(i,t){return i.match(this.matchRegExp)&&i[0]!==$tw.config.textPrimitives.unWikiLink?i:e.makeLink(i,void 0,t)};","module-type":"relinkwikitextrule","type":"application/javascript"},"$:/plugins/flibbles/relink/js/surveyors/raw.js":{"text":"exports.survey=function(e,n,r){return 0<=e.indexOf(n)};","module-type":"relinksurveyor","type":"application/javascript"},"$:/plugins/flibbles/relink/js/utils/entry.js":{"text":"function r(){this.children=[]}function i(){this.children=Object.create(null),this.types=Object.create(null)}(module.exports=r).newType=function(t){function e(){r.apply(this,arguments)}return(e.prototype=Object.create(r.prototype)).name=t,e},r.prototype.eachChild=function(t){if(this.children)for(var e=0;e<this.children.length;e++)t(this.children[e])},r.prototype.add=function(t){this.children.push(t)},r.prototype.report=function(){var e=[];return $tw.utils.each(this.children,function(t){$tw.utils.each(t.report(),function(t){e.push(t)})}),e},r.newCollection=function(t){function e(){i.apply(this,arguments)}return(e.prototype=Object.create(i.prototype)).name=t,e},i.prototype.eachChild=function(t){for(var e in this.children)t(this.children[e])},i.prototype.addChild=function(t,e,r){this.children[e]=t,this.types[e]=r},i.prototype.report=function(){var t,e=[];for(t in this.children){var r=this.children[t],i=this.types[t];if(r.report)for(var n=r.report(),o=0;o<n.length;o++)e.push(this.forEachChildReport(n[o],t,i));else e.push(this.forEachChildReport('',t,i))}return e},i.prototype.hasChildren=function(){return 0<Object.keys(this.children).length};","module-type":"library","type":"application/javascript"},"$:/plugins/flibbles/relink/js/utils/macroConfig.js":{"text":"var n=require('$:/plugins/flibbles/relink/js/settings.js'),e=require('$:/core/modules/widgets/widget.js').widget;function i(t,e,i){this.macros=Object.create(null),this.parent=e,this.title=i,this.wiki=t,this.widgetList=[],this.reservedmacroNames=Object.create(null)}(module.exports=i).prototype.import=function(t){this.parent&&(r=this.getVariableWidget());var e,i,r=(e=this.wiki,i=r,(i=e.makeWidget({tree:[{type:'importvariables',attributes:{filter:{type:'string',value:t}}}]},{parentWidget:i})).execute(),i.renderChildren(),i.children[0]);this._compileList(r.tiddlerList),this.widgetList.push(r),this.addWidget(r)},i.prototype.refresh=function(t){if(this.parent.refresh(t),this.widget.refresh(t)){this.macros=Object.create(null);for(var e=0;e<this.widgetList.length;e++)this._compileList(this.widgetList[e].tiddlerList);return!0}return!1},i.prototype.getType=function(t){return n.getType(t)},i.prototype.getFields=function(){return this.parent.getFields()},i.prototype.getOperators=function(){return this.parent.getOperators()},i.prototype.getAttributes=function(){return this.parent.getAttributes()},i.prototype.survey=function(t,e,i){return this.parent.survey(t,e,i)},i.prototype.getAttribute=function(t){return this.parent.getAttribute(t)},i.prototype.getMacros=function(){var t,e=this.parent.getMacros();for(t in this.macros){var i,r=this.macros[t];for(i in r)e[t+'/'+i]=r[i]}return e},i.prototype.getMacro=function(t){var e,i=this.macros[t];return this.parent&&(e=this.parent.getMacro(t)),i&&e?$tw.utils.extend(Object.create(null),i,e):i||e},i.prototype.addSetting=function(t,e,i,r){var s=this.macros[t];i=i||n.getDefaultType(this.wiki),void 0===s&&(s=this.macros[t]=Object.create(null)),(i=n.getType(i))&&(i.source=r,r=this.wiki.getTiddler(r),i.fields=r.fields,s[e]=i)},i.prototype.createChildLibrary=function(t){return new i(this.wiki,this,t)},i.prototype.addWidget=function(t){for(this.widget=t;0<this.widget.children.length;)this.widget=this.widget.children[0]},i.prototype.getVariableWidget=function(){var t;return this.widget||(t=this.parent&&this.parent.widget,(t=new e({},{parentWidget:t})).setVariable('currentTiddler',this.title),t=new e({},{parentWidget:t}),this.addWidget(t)),this.widget},i.prototype.reserveMacroName=function(t){this.reservedmacroNames[t]={value:'',params:[]}},i.prototype.addMacroDefinition=function(t){(t=this.getVariableWidget().makeChildWidget(t)).computeAttributes(),t.execute(),this.addWidget(t)},i.prototype.getMacroDefinition=function(t){return this.getVariableWidget().variables[t]||$tw.macros[t]||this.reservedmacroNames[t]},i.prototype._compileList=function(t){for(var e=0;e<t.length;e++){var i=this.wiki.parseTiddler(t[e]);if(i)for(var r=i.tree[0];r&&'set'===r.type;){if(r.relink)for(var s in r.relink){var n=r.relink[s];for(paramName in n)this.addSetting(s,paramName,n[paramName],t[e])}r=r.children&&r.children[0]}}};","module-type":"library","type":"application/javascript"},"$:/plugins/flibbles/relink/js/utils/placeholder.js":{"text":"function e(){this.placeholders=Object.create(null),this.reverseMap=Object.create(null)}(module.exports=e).prototype.getPlaceholderFor=function(e,r,t){var i=this.reverseMap[e],o=t.settings||t.wiki.getRelinkConfig();if(i)return i;var n=0,l='relink-';for(r&&'title'!==r&&(l+=r+'-');i=l+(n+=1),o.getMacroDefinition(i););return o.reserveMacroName(i),this.placeholders[i]=e,this.reverseMap[e]=i},e.prototype.getPreamble=function(){var e,r=[];for(e in this.placeholders){var t=this.placeholders[e];r.push('\\\\define '+e+'() '+t+'\\n')}return r.join('')};","module-type":"library","type":"application/javascript"},"$:/plugins/flibbles/relink/js/utils/rebuilder.js":{"text":"function t(t,i){this.text=t,this.index=i||0,this.pieces=[]}(module.exports=t).prototype.add=function(t,i,e){this.pieces.push(this.text.substring(this.index,i),t),this.index=e},t.prototype.changed=function(){return 0<this.pieces.length},t.prototype.results=function(t){if(this.changed())return this.pieces.push(this.text.substring(this.index,t)),this.pieces.join('')};","module-type":"library","type":"application/javascript"},"$:/config/flibbles/relink/attributes/$button/set":{"text":"reference"},"$:/config/flibbles/relink/attributes/$button/setTo":{"text":"title"},"$:/config/flibbles/relink/attributes/$button/to":{"text":"title"},"$:/config/flibbles/relink/attributes/$checkbox/tiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$checkbox/tag":{"text":"title"},"$:/config/flibbles/relink/attributes/$count/filter":{"text":"filter"},"$:/config/flibbles/relink/attributes/$draggable/tiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$draggable/filter":{"text":"filter"},"$:/config/flibbles/relink/attributes/$edit-bitmap/tiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$edit-text/tiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$edit/tiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$encrypt/filter":{"text":"filter"},"$:/config/flibbles/relink/attributes/$fieldmangler/tiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$fields/tiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$image/source":{"text":"title"},"$:/config/flibbles/relink/attributes/$importvariables/filter":{"text":"filter"},"$:/config/flibbles/relink/attributes/$linkcatcher/to":{"text":"title"},"$:/config/flibbles/relink/attributes/$linkcatcher/set":{"text":"title"},"$:/config/flibbles/relink/attributes/$link/to":{"text":"title"},"$:/config/flibbles/relink/attributes/$list/filter":{"text":"filter"},"$:/config/flibbles/relink/attributes/$list/template":{"text":"title"},"$:/config/flibbles/relink/attributes/$list/editTemplate":{"text":"title"},"$:/config/flibbles/relink/attributes/$list/emptyMessage":{"text":"wikitext"},"$:/config/flibbles/relink/attributes/$list/history":{"text":"title"},"$:/config/flibbles/relink/attributes/$navigator/story":{"text":"title"},"$:/config/flibbles/relink/attributes/$navigator/history":{"text":"title"},"$:/config/flibbles/relink/attributes/$radio/tiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$range/tiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$reveal/stateTitle":{"text":"title"},"$:/config/flibbles/relink/attributes/$select/tiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$setvariable/tiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$setvariable/subtiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$setvariable/filter":{"text":"filter"},"$:/config/flibbles/relink/attributes/$set/tiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$set/subtiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$set/filter":{"text":"filter"},"$:/config/flibbles/relink/attributes/$tiddler/tiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$transclude/tiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$transclude/subtiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$view/tiddler":{"text":"title"},"$:/config/flibbles/relink/attributes/$view/subtiddler":{"text":"title"},"$:/plugins/flibbles/relink/configuration":{"text":"<div class=\"tc-control-panel\">\n<<tabs \"[all[shadows+tiddlers]tag[$:/tags/flibbles/relink/Configuration]!has[draft.of]]\" \"$:/plugins/flibbles/relink/ui/configuration/Fields\">>\n</div>\n"},"$:/config/flibbles/relink/fields/caption":{"text":"wikitext"},"$:/config/flibbles/relink/fields/filter":{"text":"filter"},"$:/config/flibbles/relink/fields/list":{"text":"list"},"$:/config/flibbles/relink/fields/list-after":{"text":"title"},"$:/config/flibbles/relink/fields/list-before":{"text":"title"},"$:/config/flibbles/relink/fields/tags":{"text":"list"},"$:/plugins/flibbles/relink/language/Buttons/Delete/Hint":{"text":"delete"},"$:/plugins/flibbles/relink/language/Buttons/LinkToInline/Hint":{"text":"go to defining tiddler"},"$:/plugins/flibbles/relink/language/Buttons/NewAttribute/Hint":{"text":"Specify a new widget/element attribute to be updated whenever a tiddler is renamed"},"$:/plugins/flibbles/relink/language/Buttons/NewAttribute/Caption":{"text":"add"},"$:/plugins/flibbles/relink/language/Buttons/NewField/Hint":{"text":"Specify a new field to be updated whenever a tiddler is renamed"},"$:/plugins/flibbles/relink/language/Buttons/NewField/Caption":{"text":"add"},"$:/plugins/flibbles/relink/language/Buttons/NewOperator/Hint":{"text":"Specify a new filter operator to be considered whenever a tiddler is renamed"},"$:/plugins/flibbles/relink/language/Buttons/NewOperator/Caption":{"text":"add"},"$:/plugins/flibbles/relink/language/Buttons/NewParameter/Hint":{"text":"Specify a new macro parameter to be updated whenever a tiddler is renamed"},"$:/plugins/flibbles/relink/language/Buttons/NewParameter/Caption":{"text":"add"},"$:/plugins/flibbles/relink/language/Error/InvalidAttributeName":{"text":"Illegal characters in attribute name \"<$text text=<<attributeName>>/>\". Attributes cannot contain slashes ('/'), closing angle or square brackets ('>' or ']'), quotes or apostrophes ('\"' or \"'\"), equals ('='), or whitespace"},"$:/plugins/flibbles/relink/language/Error/InvalidElementName":{"text":"Illegal characters in element/widget name \"<$text text=<<elementName>>/>\". Element tags can only contain letters and the characters hyphen (`-`) and dollar sign (`$`)"},"$:/plugins/flibbles/relink/language/Error/InvalidMacroName":{"text":"Illegal characters in macro name \"<$text text=<<macroName>>/>\". Macros cannot contain whitespace"},"$:/plugins/flibbles/relink/language/Error/InvalidParameterName":{"text":"Illegal characters in parameter name \"<$text text=<<parameterName>>/>\". Parameters can only contain letters, digits, and the characters underscore (`_`) and hyphen (`-`)"},"$:/plugins/flibbles/relink/language/Error/RelinkFilterOperator":{"text":"Filter Error: Unknown suffix for the 'relink' filter operator"},"$:/plugins/flibbles/relink/language/Error/ReportFailedRelinks":{"text":"Relink could not update '<<from>>' to '<<to>>' inside the following tiddlers:"},"$:/plugins/flibbles/relink/language/Error/UnrecognizedType":{"text":"Relink parse error: Unrecognized field type '<<type>>'"},"$:/plugins/flibbles/relink/language/Help/Attributes":{"text":"See the <a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Attributes]]}}}>Attributes documentation page</a> for details."},"$:/plugins/flibbles/relink/language/Help/Fields":{"text":"See the <a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Fields]]}}}>Fields documentation page</a> for details."},"$:/plugins/flibbles/relink/language/Help/Macros":{"text":"See the <a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Macros]]}}}>Macros documentation page</a> for details."},"$:/plugins/flibbles/relink/language/Help/Operators":{"text":"See the <a href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Operators]]}}}>Operators documentation page</a> for details."},"$:/plugins/flibbles/relink/language/TiddlerInfo/References/Empty":{"text":"No tiddlers contain any fields, links, macros, transclusions, or widgets referencing this one"},"$:/plugins/flibbles/relink/language/TiddlerInfo/References/Description":{"text":"The following tiddlers contain fields, links, macros, transclusions, or widgets referencing this one:"},"$:/plugins/flibbles/relink/language/TiddlerInfo/References/Caption":{"text":"//Relink// References"},"$:/plugins/flibbles/relink/language/ui/Attributes/Caption":{"text":"Attributes"},"$:/plugins/flibbles/relink/language/ui/Fields/Caption":{"text":"Fields"},"$:/plugins/flibbles/relink/language/ui/Macros/Caption":{"text":"Macros"},"$:/plugins/flibbles/relink/language/ui/Operators/Caption":{"text":"Operators"},"$:/plugins/flibbles/relink/license":{"type":"text/vnd.tiddlywiki","text":"<a href={{$:/plugins/flibbles/relink!!demo}}>Relink Plugin</a> Copyright (c) 2019-<<now YYYY>> Cameron Fischer\n\n[[BSD 3-Clause License|https://raw.githubusercontent.com/flibbles/tw5-relink/master/LICENSE]]\n"},"$:/config/flibbles/relink/macros/csvtiddlers/filter":{"text":"filter"},"$:/config/flibbles/relink/macros/datauri/title":{"text":"title"},"$:/config/flibbles/relink/macros/jsontiddler/title":{"text":"title"},"$:/config/flibbles/relink/macros/jsontiddlers/filter":{"text":"filter"},"$:/config/flibbles/relink/macros/list-links/filter":{"text":"filter"},"$:/config/flibbles/relink/macros/list-links-draggable/tiddler":{"text":"title"},"$:/config/flibbles/relink/macros/list-links-draggable/itemTemplate":{"text":"title"},"$:/config/flibbles/relink/macros/list-tagged-draggable/tag":{"text":"title"},"$:/config/flibbles/relink/macros/list-tagged-draggable/itemTemplate":{"text":"title"},"$:/config/flibbles/relink/macros/tabs/buttonTemplate":{"text":"title"},"$:/config/flibbles/relink/macros/tabs/default":{"text":"title"},"$:/config/flibbles/relink/macros/tabs/tabsList":{"text":"filter"},"$:/config/flibbles/relink/macros/tabs/template":{"text":"title"},"$:/config/flibbles/relink/macros/tag/tag":{"text":"title"},"$:/config/flibbles/relink/macros/tag-pill/tag":{"text":"title"},"$:/config/flibbles/relink/macros/timeline/subfilter":{"text":"filter"},"$:/config/flibbles/relink/macros/toc/tag":{"text":"title"},"$:/config/flibbles/relink/macros/toc/itemClassFilter":{"text":"filter"},"$:/config/flibbles/relink/macros/toc-expandable/tag":{"text":"title"},"$:/config/flibbles/relink/macros/toc-expandable/itemClassFilter":{"text":"filter"},"$:/config/flibbles/relink/macros/toc-expandable/exclude":{"text":"list"},"$:/config/flibbles/relink/macros/toc-selective-expandable/tag":{"text":"title"},"$:/config/flibbles/relink/macros/toc-selective-expandable/itemClassFilter":{"text":"filter"},"$:/config/flibbles/relink/macros/toc-selective-expandable/exclude":{"text":"list"},"$:/config/flibbles/relink/macros/toc-tabbed-external-nav/tag":{"text":"title"},"$:/config/flibbles/relink/macros/toc-tabbed-external-nav/selectedTiddler":{"text":"title"},"$:/config/flibbles/relink/macros/toc-tabbed-external-nav/unselectedText":{"text":"wikitext"},"$:/config/flibbles/relink/macros/toc-tabbed-external-nav/missingText":{"text":"wikitext"},"$:/config/flibbles/relink/macros/toc-tabbed-external-nav/template":{"text":"title"},"$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/tag":{"text":"title"},"$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/selectedTiddler":{"text":"title"},"$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/unselectedText":{"text":"wikitext"},"$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/missingText":{"text":"wikitext"},"$:/config/flibbles/relink/macros/toc-tabbed-internal-nav/template":{"text":"title"},"$:/config/flibbles/relink/operators/list":{"text":"reference"},"$:/config/flibbles/relink/operators/tag":{"text":"title"},"$:/config/flibbles/relink/operators/title":{"text":"title"},"$:/config/flibbles/relink/operators/field:title":{"text":"title"},"$:/language/EditTemplate/Title/Impossibles/Prompt":{"text":"''Warning:'' Not all references in the following tiddlers can be updated by //Relink// due to the complexity of the new title:"},"$:/language/EditTemplate/Title/References/Prompt":{"text":"The following tiddlers will be updated if relinking:"},"$:/language/EditTemplate/Title/Relink/Prompt":{"text":"Use //Relink// to update ''<$text text=<<fromTitle>>/>'' to ''<$text text=<<toTitle>>/>'' across all other tiddlers"},"$:/core/ui/EditTemplate/title":{"tags":"$:/tags/EditTemplate","text":"<$edit-text field=\"draft.title\" class=\"tc-titlebar tc-edit-texteditor\" focus=\"true\" tabindex={{$:/config/EditTabIndex}}/>\n\n<$reveal state=\"!!draft.title\" type=\"nomatch\" text={{!!draft.of}} tag=\"div\">\n\n<$vars pattern=\"\"\"[\\|\\[\\]{}]\"\"\" bad-chars=\"\"\"`| [ ] { }`\"\"\">\n\n<$list filter=\"[all[current]regexp:draft.title<pattern>]\" variable=\"listItem\">\n\n<div class=\"tc-message-box\">\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}\n\n</div>\n\n</$list>\n\n</$vars>\n\n<$list filter=\"[{!!draft.title}!is[missing]]\" variable=\"listItem\">\n\n<div class=\"tc-message-box\">\n\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}\n\n</div>\n\n</$list>\n\n<$list filter=\"[{!!draft.of}!is[missing]]\" variable=\"listItem\">\n\n<$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}>\n\n<$checkbox tiddler=\"$:/config/RelinkOnRename\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\"> {{$:/language/EditTemplate/Title/Relink/Prompt}}</$checkbox>\n\n<$list filter=\"[all[relinkable]relink:references<fromTitle>limit[1]]\" variable=\"listItem\">\n\n<$vars stateTiddler=<<qualify \"$:/state/edit/references\">> >\n\n<$tiddler tiddler=<<fromTitle>> >\n\n<$set\n\tname=\"prompt\"\n\tfilter=\"[all[relinkable]relink:impossible<toTitle>]\"\n\tvalue=\"EditTemplate/Title/Impossibles/Prompt\"\n\temptyValue=\"EditTemplate/Title/References/Prompt\" >\n<$reveal type=\"nomatch\" state=<<stateTiddler>> text=\"show\">\n<$button set=<<stateTiddler>> setTo=\"show\" class=\"tc-btn-invisible\">{{$:/core/images/right-arrow}}\n<$macrocall $name=lingo title=<<prompt>> />\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<stateTiddler>> text=\"show\">\n<$button set=<<stateTiddler>> setTo=\"hide\" class=\"tc-btn-invisible\">{{$:/core/images/down-arrow}}\n<$macrocall $name=lingo title=<<prompt>> />\n</$button>\n</$reveal>\n</$set>\n\n<$reveal type=\"match\" state=<<stateTiddler>> text=\"show\">\n<$list variable=\"listItem\" filter=\"[all[relinkable]!title[$:/StoryList]relink:references<fromTitle>sort[title]]\" template=\"$:/plugins/flibbles/relink/ui/ListItemTemplate\">\n</$list>\n</$reveal>\n</$tiddler>\n\n</$vars>\n\n</$list>\n\n</$vars>\n\n</$list>\n\n</$reveal>\n"},"$:/config/flibbles/relink/PluginLibrary":{"caption":"//Relink// Library","url":"https://flibbles.github.io/tw5-relink/library/index.html","tags":"$:/tags/PluginLibrary","text":"The //Relink// library contains //Relink// as well as its supplemental plugins. It is maintained by Flibbles. See the [[github page|https://github.com/flibbles/tw5-relink]] for more information.\n"},"$:/plugins/flibbles/relink/readme":{"type":"text/vnd.tiddlywiki","text":"When renaming a tiddler, Relink can update the fields, filters, and widgets\nof all other tiddlers. However, it works through whitelisting.\n\nIt's already configured to update tiddler titles for all core widgets, filters,\nand fields, but the whitelists can be customized for each of this in the\nconfiguration panel.\n\nSee <a href={{$:/plugins/flibbles/relink!!source}}>the tw5-relink website</a> for more details and examples.\n"},"$:/config/flibbles/relink/settings/default-type":{"text":"title"},"$:/plugins/flibbles/relink/ui/ListItemTemplate":{"text":"<$set\n\tname=\"classes\"\n\tfilter=\"[<listItem>relink:impossible<toTitle>]\"\n\tvalue=\"tc-menu-list-item tc-relink-impossible\"\n\temptyValue=\"tc-menu-list-item\">\n<div class=<<classes>>>\n<$link to=<<listItem>>><$text text=<<listItem>> /></$link>\n</div>\n</$set>\n"},"$:/plugins/flibbles/relink/ui/TiddlerInfo/References":{"caption":"{{$:/plugins/flibbles/relink/language/TiddlerInfo/References/Caption}}","tags":"$:/tags/TiddlerInfo","text":"\\define lingo-base() $:/plugins/flibbles/relink/language/TiddlerInfo/\n\\define filter() [relink:references<currentTiddler>!title[$:/StoryList]!prefix[$:/temp/]sort[title]]\n<$list filter=\"[subfilter<filter>first[]]\">\n\n<<lingo References/Description>>\n</$list>\n\n<table class=\"tc-relink-references-table\">\n<tbody>\n<$list filter=<<filter>> emptyMessage=<<lingo References/Empty>> variable=\"listItem\" template=\"$:/plugins/flibbles/relink/ui/TiddlerInfo/ReferencesTemplate\" />\n</tbody>\n</table>\n"},"$:/plugins/flibbles/relink/ui/TiddlerInfo/ReferencesTemplate":{"text":"<tr class=\"tc-relink-references\">\n<td class=\"tc-relink-references-title\">\n<$link to=<<listItem>>/>\n</td>\n<td class=\"tc-relink-references-report\">\n<$list filter=\"[<listItem>relink:report<currentTiddler>]\">\n\n<$text text=<<currentTiddler>> />\n</$list>\n\n</td>\n</tr>\n"},"$:/plugins/flibbles/relink/ui/components/button-delete":{"text":"\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define prefix() $:/config/flibbles/relink/\n\n<$list filter=\"[all[current]prefix<prefix>]\" >\n<$button class=\"tc-btn-invisible\" tooltip={{$:/plugins/flibbles/relink/language/Buttons/Delete/Hint}}><$list filter=\"[all[current]is[tiddler]]\">\n<$action-deletetiddler $tiddler=<<currentTiddler>> />\n</$list><$list filter=\"[all[current]is[shadow]]\">\n<$action-setfield $tiddler=<<tiddlerName>> text=\"\" />\n</$list>\n{{$:/core/images/delete-button}}\n</$button>\n</$list><$list filter=\"[all[current]!prefix<prefix>]\">\n<$link><$button class=\"tc-btn-invisible\" tooltip={{$:/plugins/flibbles/relink/language/Buttons/LinkToInline/Hint}}>{{$:/core/images/link}}</$button></$link>\n</$list>\n"},"$:/plugins/flibbles/relink/ui/components/select-fieldtype":{"text":"\\define prefix() $:/config/flibbles/relink/\n\n<$vars type={{{ [<signature>relink:type[]] }}} >\n<$list filter=\"[all[current]prefix<prefix>]\" >\n<$select tiddler=<<currentTiddler>> >\n<$list variable=\"option\" filter=\"[relink:types[]]\">\n<option><$text text=<<option>> /></option>\n</$list>\n</$select>\n</$list><$list filter=\"[all[current]!prefix<prefix>]\">\n<$text text=<<type>> />\n</$list>\n</$vars>\n"},"$:/plugins/flibbles/relink/ui/components/tables":{"text":"\\define .make-table(title, plugin, default-table-state:yes)\n\n<$list variable=\"render\" filter=\"[relink:signatures<__plugin__>prefix<__category__>first[]]\">\n<$set name=\"table-state\" value=<<qualify \"\"\"$:/state/flibbles/relink/tables/$title$\"\"\">>>\n<tr><th class=\"tc-relink-header-plugin\" colspan=<<column-count>> >\n<$reveal type=\"nomatch\" state=<<table-state>> text=\"yes\" default=\"\"\"$default-table-state$\"\"\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<table-state>> setTo=\"yes\">\n{{$:/core/images/right-arrow}} ''$title$''\n</$button>\n</$reveal>\n<$reveal type=\"match\" state=<<table-state>> text=\"yes\" default=\"\"\"$default-table-state$\"\"\">\n<$button class=\"tc-btn-invisible tc-btn-dropdown\" set=<<table-state>> setTo=\"no\">\n{{$:/core/images/down-arrow}} ''$title$''\n</$button>\n</$reveal>\n</th></tr>\n<$list\n\tvariable=\"signature\"\n\tfilter=\"[relink:signatures<__plugin__>prefix<__category__>sort[]]\">\n<$vars key={{{ [<signature>removeprefix<__category__>removeprefix[/]] }}} >\n<$tiddler tiddler={{{[<signature>relink:source[]]}}} >\n<$reveal tag=\"tr\" type=\"match\" state=<<table-state>> text=\"yes\" default=\"\"\"$default-table-state$\"\"\">\n<$macrocall $name=<<__list-row-macro__>> signature=<<signature>> />\n<td class=\"tc-relink-column-type\">{{||$:/plugins/flibbles/relink/ui/components/select-fieldtype}}</td>\n<td class=\"tc-relink-column-delete\">{{||$:/plugins/flibbles/relink/ui/components/button-delete}}</td>\n</$reveal>\n</$tiddler>\n</$vars>\n</$list>\n</$set>\n</$list>\n\\end\n\n\\define tables(category, list-row-macro, header-list)\n<$vars\n\tcolumn-count={{{[enlist<__header-list__>] [[DeleteColumn]] +[count[]]}}}>\n\n<table class=\"tc-relink-whitelist\"><tbody>\n<tr>\n<$list variable=\"header\" filter=\"[enlist<__header-list__>butlast[]]\"><th><<header>></th></$list>\n<!-- We have the last column extend into the delete/link column, which is unlabeled. -->\n<th colspan=2><$text text={{{ [enlist<__header-list__>last[]] }}} /></th>\n</tr>\n\n<<.make-table Custom \"\" yes>>\n\n<$list\n\tfilter=\"[plugin-type[plugin]![$:/core]![$:/plugins/flibbles/relink]]\">\n<$set name=\"subtitle\" value={{!!description}} emptyValue={{!!title}} >\n<$macrocall $name=\".make-table\" title=<<subtitle>> plugin=<<currentTiddler>> />\n</$set>\n</$list>\n\n<<.make-table Core \"$:/plugins/flibbles/relink\">>\n\n</tbody></table>\n</$vars>\n\\end\n"},"$:/plugins/flibbles/relink/ui/configuration/Attributes":{"caption":"{{$:/plugins/flibbles/relink/language/ui/Attributes/Caption}}","tags":"$:/tags/flibbles/relink/Configuration","text":"\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define prefix-attr() $:/config/flibbles/relink/attributes/\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define element-name-tiddler() $:/state/flibbles/relink/element-name\n\\define attribute-name-tiddler() $:/state/flibbles/relink/attribute-name\n\n\\define row()\n<$set name=\"element\"\n filter=\"[<key>splitbefore[/]removesuffix[/]]\">\n<$set name=\"attribute\"\n filter=\"[<key>removeprefix<element>removeprefix[/]]\">\n<td><$text text=<<element>> /></td>\n<td><$text text=<<attribute>> /></td>\n</$set></$set>\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Attributes}}\n\n<em class=\"tc-edit\">Add a new attribute:</em>\n<$edit-text\n\ttiddler=<<element-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"widget/element\" />\n<$edit-text\n\ttiddler=<<attribute-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"attribute\" />\n<$reveal type=\"nomatch\" text=\"\" state=<<element-name-tiddler>> >\n<$reveal type=\"nomatch\" text=\"\" state=<<attribute-name-tiddler>> >\n<$relinkmangler>\n<$button\n\ttooltip={{$(lingo-base)$NewAttribute/Hint}}\n\taria-label={{$(lingo-base)$NewAttribute/Caption}}>\n<$action-sendmessage\n\t$message=\"relink-add-attribute\"\n\telement={{$(element-name-tiddler)$}}\n\tattribute={{$(attribute-name-tiddler)$}} />\n<$action-deletetiddler $tiddler=<<attribute-name-tiddler>> />\n<$action-deletetiddler $tiddler=<<element-name-tiddler>> />\n<$text text={{$(lingo-base)$NewAttribute/Caption}}/>\n</$button>\n</$relinkmangler>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<attribute-name-tiddler>> >\n<$button>\n<$text text={{$(lingo-base)$NewAttribute/Caption}}/>\n</$button>\n</$reveal>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<element-name-tiddler>> >\n<$button>\n<$text text={{$(lingo-base)$NewAttribute/Caption}}/>\n</$button>\n</$reveal>\n\n<$macrocall\n\t$name=tables\n\tcategory=\"attributes\"\n\theader-list=\"[[Widget/HTML Element]] Attribute Type\"\n\tlist-row-macro=\"row\" />\n\\end\n\n<<body>>\n"},"$:/plugins/flibbles/relink/ui/configuration/Fields":{"caption":"{{$:/plugins/flibbles/relink/language/ui/Fields/Caption}}","tags":"$:/tags/flibbles/relink/Configuration","text":"\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define field-name-tiddler() $:/state/flibbles/relink/field-name\n\n\\define row()\n<td><$text text=<<key>> /></td>\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Fields}}\n\n<em class=\"tc-edit\">Add a new field:</em>\n<$edit-text\n\ttiddler=<<field-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"field name\" />\n<$reveal type=\"nomatch\" text=\"\" state=<<field-name-tiddler>> >\n<$relinkmangler>\n<$button\n\ttooltip={{$(lingo-base)$NewField/Hint}}\n\taria-label={{$(lingo-base)$NewField/Caption}}>\n<$action-sendmessage\n\t$message=\"relink-add-field\"\n\tfield={{$(field-name-tiddler)$}} />\n<$action-deletetiddler $tiddler=<<field-name-tiddler>> />\n<$text text={{$(lingo-base)$NewField/Caption}}/>\n</$button>\n</$relinkmangler>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<field-name-tiddler>> >\n<$button>\n<$text text={{$(lingo-base)$NewField/Caption}}/>\n</$button>\n</$reveal>\n\n\n<$macrocall\n\t$name=tables\n\tcategory=\"fields\"\n\theader-list=\"[[Field Name]] [[Field Type]]\"\n\tlist-row-macro=\"row\" />\n\\end\n\n<<body>>\n"},"$:/plugins/flibbles/relink/ui/configuration/Macros":{"caption":"{{$:/plugins/flibbles/relink/language/ui/Macros/Caption}}","tags":"$:/tags/flibbles/relink/Configuration","text":"\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define prefix-macro() $:/config/flibbles/relink/macros/\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define macro-name-tiddler() $:/state/flibbles/relink/macro-name\n\\define parameter-name-tiddler() $:/state/flibbles/relink/parameter-name\n\n\\define row()\n<$set name=\"parameter\"\n filter=\"[<key>relink:splitafter[/]]\">\n<$set name=\"macro\"\n filter=\"[<key>removesuffix<parameter>removesuffix[/]]\">\n<td><$text text=<<macro>> /></td>\n<td><$text text=<<parameter>> /></td>\n</$set></$set>\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Macros}}\n\n<em class=\"tc-edit\">Add a new macro parameter:</em>\n<$edit-text\n\ttiddler=<<macro-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"macro\" />\n<$edit-text\n\ttiddler=<<parameter-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"parameter\" />\n<$reveal type=\"nomatch\" text=\"\" state=<<macro-name-tiddler>> >\n<$reveal type=\"nomatch\" text=\"\" state=<<parameter-name-tiddler>> >\n<$relinkmangler>\n<$button\n\ttooltip={{$(lingo-base)$NewParameter/Hint}}\n\taria-label={{$(lingo-base)$NewParameter/Caption}}>\n<$action-sendmessage\n\t$message=\"relink-add-parameter\"\n\tmacro={{$(macro-name-tiddler)$}}\n\tparameter={{$(parameter-name-tiddler)$}} />\n<$action-deletetiddler $tiddler=<<parameter-name-tiddler>> />\n<$action-deletetiddler $tiddler=<<macro-name-tiddler>> />\n<$text text={{$(lingo-base)$NewParameter/Caption}}/>\n</$button>\n</$relinkmangler>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<parameter-name-tiddler>> >\n<$button>\n<$text text={{$(lingo-base)$NewParameter/Caption}}/>\n</$button>\n</$reveal>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<macro-name-tiddler>> >\n<$button>\n<$text text={{$(lingo-base)$NewParameter/Caption}}/>\n</$button>\n</$reveal>\n\n\n<$macrocall\n\t$name=tables\n\tcategory=\"macros\"\n\theader-list=\"Macro Parameter Type\"\n\tlist-row-macro=\"row\" />\n\\end\n\n<<body>>\n"},"$:/plugins/flibbles/relink/ui/configuration/Operators":{"caption":"{{$:/plugins/flibbles/relink/language/ui/Operators/Caption}}","tags":"$:/tags/flibbles/relink/Configuration","text":"\\import $:/plugins/flibbles/relink/ui/components/tables\n\\define lingo-base() $:/plugins/flibbles/relink/language/Buttons/\n\\define operator-name-tiddler() $:/state/flibbles/relink/operator-name\n\n\\define row()\n<td><$text text=<<key>> /></td>\n\\end\n\\define body()\n\n{{$:/plugins/flibbles/relink/language/Help/Operators}}\n\n<em class=\"tc-edit\">Add a new filter operator:</em>\n<$edit-text\n\ttiddler=<<operator-name-tiddler>>\n\ttag=\"input\"\n\tdefault=\"\"\n\tplaceholder=\"operator name\" />\n<$reveal type=\"nomatch\" text=\"\" state=<<operator-name-tiddler>>>\n<$relinkmangler>\n<$button\n\ttooltip={{$(lingo-base)$NewOperator/Hint}}\n\taria-label={{$(lingo-base)$NewOperator/Caption}}>\n<$action-sendmessage\n\t$message=\"relink-add-operator\"\n\toperator={{$(operator-name-tiddler)$}} />\n<$action-deletetiddler $tiddler=<<operator-name-tiddler>> />\n<$text text={{$(lingo-base)$NewOperator/Caption}}/>\n</$button>\n</$relinkmangler>\n</$reveal>\n<$reveal type=\"match\" text=\"\" state=<<operator-name-tiddler>>>\n<$button>\n<$text text={{$(lingo-base)$NewOperator/Caption}}/>\n</$button>\n</$reveal>\n\n<$macrocall\n\t$name=tables\n\tcategory=\"operators\"\n\theader-list=\"[[Filter Operator]] [[Operand Type]]\"\n\tlist-row-macro=\"row\" />\n\\end\n\n<<body>>\n"},"$:/plugins/flibbles/relink/ui/stylesheet.css":{"text":".tc-relink-references {\n}\n\n.tc-relink-references-table {\n\twidth: 100%;\n\tborder: none;\n}\n\n.tc-relink-references-table td {\n\tborder-left: none;\n}\n\n.tc-relink-references-table tr:first-child td {\n\tborder-top: none;\n}\n\n.tc-relink-references-title {\n\ttext-align: left;\n\tvertical-align: top;\n}\n\n.tc-relink-references-occurrence {\n\tfont-style: italic;\n\ttext-align: left;\n\tfont-weight: 200;\n\tpadding-left: 25px;\n\tvertical-align: top;\n}\n\n.tc-relink-header-plugin {\n\ttext-align: left;\n}\n\n.tc-relink-header-plugin button {\n\twidth: 100%\n}\n\n.tc-relink-column-type {\n\twidth: 8em;\n}\n\n.tc-relink-column-type select {\n\twidth: 100%;\n}\n\n.tc-relink-column-delete {\n\tborder-left: none;\n\ttext-align: left;\n}\n\n.tc-relink-column-delete button {\n\tpadding-left: 1em;\n}\n\n.tc-relink-impossible a.tc-tiddlylink {\n\tcolor: red;\n}\n","tags":"$:/tags/Stylesheet","type":"text/css"}}}+
\whitespace trim +\define commander-button(class) +<$button to="$:/Commander" tooltip={{$:/language/Buttons/Commander/Hint}} aria-label={{$:/language/Buttons/Commander/Caption}} class="""$(tv-config-toolbar-class)$ $class$"""> +<$list filter="[<tv-config-toolbar-icons>match[yes]]"> +{{$:/plugins/kookma/commander/images/commander.svg}} +</$list> +<$list filter="[<tv-config-toolbar-text>match[yes]]"> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/Commander/Caption}}/></span> +</$list> +</$button> +\end + +<$list filter="[list[$:/StoryList]] +[field:title[$:/Commander]]" emptyMessage=<<commander-button>>> +<<commander-button "tc-selected">> +</$list> ++
\define show-options() +<$button class="tc-btn-invisible" to="$:/plugins/kookma/favorites/manager"> +{{$:/core/images/options-button}} Manager +</$button> +\end + +<!-- create the sidebar tab --> +<div class="kk-favorites"> + --- <<show-options>> <br> +<$transclude tiddler="$:/plugins/kookma/favorites/macros/sidebar" field=text/> +</div>+
{"tiddlers":{"$:/plugins/kookma/shiraz/history":{"title":"$:/plugins/kookma/shiraz/history","created":"20210225163850252","modified":"20210226190112050","tags":"","type":"text/vnd.tiddlywiki","text":"Full change log: [[https://kookma.github.io/TW-Shiraz/#ChangeLog]]\n\n* ''2.2.0'' -- 2021.02.26 -- upated to TW 5.1.23 and pagination added to dynamic tables\n* ''2.1.1'' -- 2020.03.25 -- slider macro with initial status\n* ''2.1.0'' -- 2020.03.23 -- stable release on TW-5.1.22pre\n* ''1.0.0'' -- 2018.10.05 -- first public release\n"},"$:/plugins/kookma/shiraz/license":{"title":"$:/plugins/kookma/shiraz/license","created":"20210225163850253","modified":"20210225164033716","tags":"","type":"text/vnd.tiddlywiki","text":"Distributed under an MIT license.\n\nCopyright (c) 2021 [[Mohammad Rahmani|https://github.com/kookma]]\n\n<<<\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n<<<"},"$:/plugins/kookma/shiraz/macros/alerts":{"title":"$:/plugins/kookma/shiraz/macros/alerts","created":"20180821095049685","modified":"20210225164756860","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define alert(type:\"primary\" src:\"\", width:\"100%\", class:\"\")\n<div class=\"alert alert-$type$ $class$\" style=\"width:$width$;\">\n$src$\n</div>\n\\end\n\n\\define alert-leftbar(type:\"primary\" src:\"\", width:\"100%\", class:\"\")\n<div class=\"alert alert-$type$ bg-transparent leftbar border-$type$ $class$\" style=\"width:$width$;\">\n$src$\n</div>\n\\end\n"},"$:/plugins/kookma/shiraz/macros/badge":{"title":"$:/plugins/kookma/shiraz/macros/badge","created":"20181124042103310","modified":"20210225164756871","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define badge(type:\"primary\" src:\"\")\n<span class=\"badge badge-$type$\">$src$</span>\n\\end\n\n\\define badge-pill(type:\"primary\" src:\"\")\n<span class=\"badge badge-pill badge-$type$\">$src$</span>\n\\end\n"},"$:/plugins/kookma/shiraz/macros/card":{"title":"$:/plugins/kookma/shiraz/macros/card","created":"20181124111624466","modified":"20210225164756878","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define card(header:\"Empty\", title:\"Empty\" subtitle:\"Empty\" text:\"Empty\",footer:\"Empty\", width:\"100%\" class:\"\")\n<div class=\"card mb-3 $class$\" style=\"width:$width$;\">\n<$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__header__>> >\n <div class=\"card-header\">$header$</div>\n</$reveal>\n<div class=\"card-body\">\n <$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__title__>> >\n <div class=\"h5 card-title\">$title$</div>\n </$reveal>\n <$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__subtitle__>> >\n <div class=\"h6 card-subtitle mb-2 text-muted\">$subtitle$</div>\n </$reveal>\n <$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__text__>> >\n <div class=\"card-text\"><<__text__>></div>\n </$reveal>\n</div>\n<$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__footer__>> >\n <div class=\"card-footer text-muted\">$footer$</div>\n</$reveal>\n</div>\n\\end"},"$:/plugins/kookma/shiraz/macros/dbadge":{"title":"$:/plugins/kookma/shiraz/macros/dbadge","created":"20181203212737578","modified":"20210225164756889","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define dbadge(subject,status, type:\"primary\")\n<div class=\"dbadge\"><span class=\"dbadge-subject\">$subject$</span><span class=\"dbadge-status dbadge-$type$ \">$status$</span></div>\n\\end\n"},"$:/plugins/kookma/shiraz/macros/details":{"title":"$:/plugins/kookma/shiraz/macros/details","created":"20181101185833098","modified":"20210304154353016","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define details(label:\"\", src:\"source\", status:\"\", labelClass:\"\", srcClass:\"\")\n<details $status$>\n <summary class=\"$labelClass$\">$label$</summary>\n <div class=\"$srcClass$\">\n\t\n $src$\n </div>\n</details>\n\\end"},"$:/plugins/kookma/shiraz/macros/dtables/confirm-delete":{"title":"$:/plugins/kookma/shiraz/macros/dtables/confirm-delete","created":"20191129201531051","modified":"20210225164756907","tags":"$:/tags/Table/Macro","type":"text/vnd.tiddlywiki","text":"\\define confirm-delete()\n<!-- reveals deletion confirmation -->\n<$list filter=\"[subfilter<inputFilter>limit[1]]\" variable=ignore>\n<$reveal class=\"tbl-delete-confirm\" type=\"match\" state=\"$:/temp/tables/delete-all!!text\" text=<<currentTable>> tag=\"tr\">\n<th colspan=<<ncols>> >\n<$list filter=\"[[$:/temp/tables/delete-all]get[confirm]match[yes]]\" \n variable=ignore emptyMessage=<<ask-for-delete>> >\n <<perform-delete>>\n</$list>\n</th>\n</$reveal>\n</$list>\n\\end\n\n\\define ask-for-delete()\n<$set name=ntids filter=\"[subfilter<inputFilter>count[]]\">\n Delete all <<ntids>> records?\n\t<$button class=\"tc-btn-invisible\">\n <$action-setfield $tiddler=\"$:/temp/tables/delete-all\" $field=\"confirm\" $value=\"yes\"/>\n {{$:/core/images/delete-button}} yes\n </$button> or \n <$button class=\"tc-btn-invisible\">\n <$action-deletetiddler $tiddler=\"$:/temp/tables/delete-all\"/>\n {{$:/core/images/close-button}} no\n </$button>\n</$set>\t\t\t\t\n\\end\n\n\\define perform-delete()\n Warning! this action cannot be undone!\n\t<$button class=\"tc-btn-invisible\">\n <$action-deletetiddler $tiddler=\"$:/temp/tables/delete-all\"/>\n <$list filter=<<inputFilter>> variable=\"currentRecord\">\n <$action-deletetiddler $tiddler=<<currentRecord>>/>\n </$list>\n\t\t {{$:/core/images/delete-button}} delete\n </$button> or \n <$button class=\"tc-btn-invisible\">\n <$action-deletetiddler $tiddler=\"$:/temp/tables/delete-all\"/>\n\t\t\t{{$:/core/images/close-button}} cancel \n </$button>\n\\end"},"$:/plugins/kookma/shiraz/macros/dtables/display-extrecord":{"title":"$:/plugins/kookma/shiraz/macros/dtables/display-extrecord","created":"20191203155802107","modified":"20210225164756918","tags":"$:/tags/Table/Macro","type":"text/vnd.tiddlywiki","text":"\\define display-extended-record()\n<td colspan=<<ncols>> >\n<$tiddler tiddler=<<currentRecord>> >\n<$list filter=\"[<tempTableEdit>getindex[mode]match[edit]]\" variable=ignore\n emptyMessage=\"\"\"<$transclude tiddler=<<currentRecord>> field=text mode=block/>\"\"\" >\n <$edit-text class=\"tbl-inpt-edit\" tiddler=<<currentRecord>> field=\"text\" tag=textarea/>\n</$list>\n</$tiddler>\n</td>\n\\end"},"$:/plugins/kookma/shiraz/macros/dtables/helper":{"title":"$:/plugins/kookma/shiraz/macros/dtables/helper","created":"20191203102929722","modified":"20210226171501383","tags":"$:/tags/Table/Macro","type":"text/vnd.tiddlywiki","text":"\\define columnFilter() $(columns)$ tbl-clone tbl-delete\n\n\\define tempTable() $:/state/dynamictables/$(currentTable)$\n\n\\define tempTableSort() $(tempTable)$/sortby\n\\define tempTagPopup() $(tempTable)$/$(currentRecord)$/$(currentTiddler)$\n\\define tempTableExpand() $(tempTable)$/expand\n\\define tempPathExpand() $(tempTableExpand)$##$(currentRecord)$\n\\define tempTableEdit() $(tempTable)$/edit-view-status\n\n\\define keepstate() $:/keepstate/dynamictables/$(currentTable)$\n\n\\define tempTableFooter() $(keepstate)$/footer\n\\define tempTableStyle() $(keepstate)$/style\n\\define tempWarningMsg() $(keepstate)$/warning\n\n\\define pageStateTiddler() $(keepstate)$/page-number\n\\define entryPerPageStateTiddler() $(keepstate)$/entry-per-page\n\n<!-- \n Those tiddlers based on keepstate are permanent.\n These are tiddlers hold the data and setting for footer, styles and warning (needs to be hold).\n These state and temporary tiddlers are independent of currentTiddler (host tiddler) and on changing\n the title of host tiddler will not disconnected to table\n-->"},"$:/plugins/kookma/shiraz/macros/dtables/maths":{"title":"$:/plugins/kookma/shiraz/macros/dtables/maths","created":"20200209153246553","modified":"20210225164756937","tags":"$:/tags/Table/Macro","type":"text/vnd.tiddlywiki","text":"\\define minall() <$text text={{{ [subfilter<inputFilter>$(getFieldOrIndex)$<currentColumn>minall[]] }}}/>\n\\define maxall() <$text text={{{ [subfilter<inputFilter>$(getFieldOrIndex)$<currentColumn>maxall[]] }}}/>\n\\define count() <$text text={{{ [subfilter<inputFilter>$(getFieldOrIndex)$<currentColumn>count[]] }}}/>\n\\define sum() <$text text={{{ [subfilter<inputFilter>$(getFieldOrIndex)$<currentColumn>sum[]] }}}/>\n\\define product() <$text text={{{ [subfilter<inputFilter>$(getFieldOrIndex)$<currentColumn>product[]] }}}/>\n\\define average(pn:0)\n<$vars\n xcount ={{{[subfilter<inputFilter>$(getFieldOrIndex)$<currentColumn>count[]]}}}\n\txsum ={{{ [subfilter<inputFilter>$(getFieldOrIndex)$<currentColumn>sum[]] }}} >\n <$text text={{{ [<xsum>divide<xcount>fixed[$pn$]] }}}/>\n</$vars>\n\\end\n\n\\define median(pn:0)\n<$vars xcount ={{{[subfilter<inputFilter>$(getFieldOrIndex)$<currentColumn>count[]]}}} >\n\t<$list filter=\"[<xcount>remainder[2]match[0]]\" variable=ignore>\n\t<!-- even number --> \n\t<$vars mid0={{{ [<xcount>divide[2]] }}} \n mid1={{{ [<xcount>divide[2]add[1]] }}} >\t\t \n <$text text={{{[subfilter<inputFilter>$(getFieldOrIndex)$<currentColumn>sort[]first<mid0>last[]][subfilter<inputFilter>$(getFieldOrIndex)$<currentColumn>sort[]first<mid1>last[]]+[sum[]divide[2]fixed[$pn$]]}}} />\n </$vars>\n </$list>\n <$list filter=\"[<xcount>remainder[2]!match[0]]\" variable=ignore>\n\t<!-- odd number --> \n\t<$vars mid={{{ [<xcount>divide[2]ceil[]] }}} >\n <$text text={{{ [subfilter<inputFilter>$(getFieldOrIndex)$<currentColumn>sort[]first<mid>last[]]}}} />\n\t</$vars>\n </$list>\n</$vars>\n\\end\n"},"$:/plugins/kookma/shiraz/macros/dtables/pagination":{"title":"$:/plugins/kookma/shiraz/macros/dtables/pagination","created":"20210224180410216","modified":"20210226184409816","tags":"$:/tags/Table/Macro","type":"text/vnd.tiddlywiki","text":"\\define prev-button()\n<!-- create previous page button --->\n<$list filter=\"[<page-number>compare:number:lt[2]then[yes]else[no]]\" variable=state>\n<$button disabled=<<state>> class=\"shiraz-dtable-page-prev tc-btn-invisible\">\n{{$:/core/images/chevron-left}} <strong>Prev</strong>\n<$action-listops $tiddler=<<pageStateTiddler>> $field=text $subfilter=\"+[subtract[1]] ~[[1]]\"/>\n</$button>\n</$list>\n\\end\n\n\\define next-button()\n<!-- create next page button --->\n<$list filter=\"[<high>compare:number:gteq<total-entries>then[yes]else[no]]\" variable=state> \n<$button disabled=<<state>> class=\"shiraz-dtable-page-next tc-btn-invisible\">\n<strong>Next</strong> {{$:/core/images/chevron-right}} \n<$action-listops $tiddler=<<pageStateTiddler>> $field=text $subfilter=\"+[add[1]] ~[[2]]\"/>\n</$button>\n</$list>\n\\end\n\n\\define limit-entries()\n<!-- set number of entries per page -->\n<$select tiddler=<<entryPerPageStateTiddler>> default=25 actions=\"\"\"<$action-setfield $tiddler=<<pageStateTiddler>> text=1/>\"\"\">\n<$list filter='5 10 15 20 25 30 40 50' variable=num>\n<option value=<<num>>>Limit <$text text=<<num>>/></option>\n</$list>\n<option value=<<total-entries>> >Show all</option>\n</$select>\n\\end"},"$:/plugins/kookma/shiraz/macros/dtables/show-edit-cell":{"title":"$:/plugins/kookma/shiraz/macros/dtables/show-edit-cell","created":"20200209135600453","modified":"20210225164756945","tags":"$:/tags/Table/Macro","type":"text/vnd.tiddlywiki","text":"\\define showCell()\n <$list filter=\"[<fieldOrIndex>]-index\">\n <$transclude tiddler=<<currentRecord>> field=<<currentColumn>> mode=\"inline\" />\n </$list>\n <$list filter=\"[<fieldOrIndex>]-field\">\n <$transclude tiddler=<<currentRecord>> index=<<currentColumn>> mode=\"inline\" />\n </$list>\n\\end\t\n\\define editCell()\n <$list filter=\"[<fieldOrIndex>]-index\">\n <$edit-text tiddler=<<currentRecord>> field=<<currentColumn>> tag=\"input\" class=\"shiraz-dtable-textbox\"/>\n </$list>\n <$list filter=\"[<fieldOrIndex>]-field\">\n <$edit-text tiddler=<<currentRecord>> index=<<currentColumn>> tag=\"input\" class=\"shiraz-dtable-textbox\"/>\n </$list>\n\\end\n\n\\define showCell_Locked()\n <span style=\"font-style:oblique;\"><<showCell>></span>\n\\end "},"$:/plugins/kookma/shiraz/macros/dtables/table-dynamic":{"title":"$:/plugins/kookma/shiraz/macros/dtables/table-dynamic","created":"20200209100939116","modified":"20210226184101765","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define table-dynamic(filter, fields:\"\", indexes:\"\", sortOp:\"sort\", caption:\"\", class:\"\", footerRows:\"0\", stateTiddler:\"\", editButton:\"yes\", pagination:\"no\")\n\\import [all[shadows+tiddlers]tag[$:/tags/Table/Macro]]\n\n<!--above commands import utility macros-->\n<$vars \n inputFilter=\"[subfilter<__filter__>!has[draft.of]]\"\n sortType=<<__sortOp__>>\n pagination=<<__pagination__>>\n> \n<$set name=currentTable value=<<__stateTiddler__>> emptyValue=<<currentTiddler>> >\n<!-- check what type of columns are sent, fileds or indexes (data tiddlers as records) -->\n<$set name=fieldOrIndex filter=\"[<__fields__>!is[blank]]\" value=\"field\" emptyValue=\"index\">\n<<check_tiddlers_type_for_table_from_indexes isEditable:\"$editButton$\">>\n<$set name=columns filter=\"[<fieldOrIndex>]-index\" value=<<__fields__>> emptyValue=<<__indexes__>> >\n<!--check input filter parameter-->\n<$list filter=\"[subfilter<inputFilter>limit[1]]\" emptyMessage=\"filter input is empty\" variable=ignore>\n<$set name=sortneg tiddler=<<tempTableSort>> index=\"negate\">\n<!--calculate the number of columns in edit and view mode -->\n<$set name=ncols filter=\"[<tempTableEdit>getindex[mode]match[edit]]\" value={{{ [subfilter<columnFilter>count[]] }}} emptyValue= {{{ [subfilter<columnFilter>count[]subtract[2]] }}}>\n<div class=\"tbl-container\" style=\"max-width:100%;\">\n<table class=<<__class__>> style=\"caption-side:top\">\n<!-- reveal caption and edit button -------------------->\n<caption style=\"text-align:left;\">\n<$list filter=\"[<__editButton__>match[yes]]\" variavle=ignore>\n<span style=\"padding-right:5px;padding-left:3px;\"><<toggle-edit-view>></span></$list>\n$caption$</caption>\n\n<!-- create header -------------------->\n<thead>\n<<confirm-delete>>\n<tr>\n<$list filter=<<columnFilter>> variable=currentColumn>\n<$set name=\"headerLookup\" filter=\"[all[tiddlers+shadows]tag[$:/tags/Table/HeaderTemplate]contains:tbl-column-list<currentColumn>limit[1]get[title]]\" value=<<headerLookup>> emptyValue=\"$:/plugins/kookma/shiraz/templates/header/default\">\n <$transclude tiddler=<<headerLookup>> field=\"text\" mode=\"inline\"/>\n</$set>\n</$list>\n</tr>\n</thead>\n\n<!-- create footer -------------------->\n<$reveal type=\"gt\" default=<<__footerRows__>> text=\"0\" tag=\"tfoot\" class=\"shiraz-dtable-footer\">\n<tr><td colspan=<<ncols>> style=\"font-weight:bold;background-color:transparent;\">Numerical summary</td></tr>\n<$list filter=\"[range[1,$footerRows$]addprefix[footer-]]\" variable=footerRow>\n<tr>\n<$list filter=<<columnFilter>> variable=currentColumn>\n<$set name=\"footerLookup\" filter=\"[all[tiddlers+shadows]tag[$:/tags/Table/FooterTemplate]contains:tbl-column-list<currentColumn>limit[1]get[title]]\" value=<<footerLookup>> emptyValue=\"$:/plugins/kookma/shiraz/templates/footer/default\">\n<$transclude tiddler=<<footerLookup>> field=\"text\" mode=\"inline\"/>\n</$set>\n</$list>\n</tr>\n</$list>\n</$reveal>\n\n<!-- reveal main body of table (generate records) -------------------->\n<tbody>\n<$set name=tableBody filter=\"[<fieldOrIndex>]-index\" value=\"display_body_fields\" emptyValue=\"display_body_indexes\" >\n<!-- setup pagination variables -->\n<$vars total-entries={{{[subfilter<inputFilter>count[]] }}}\n\t\t\t page-number={{{[<pageStateTiddler>get[text]] ~[[1]]}}} \n\t\t\t entries-per-page={{{ [<entryPerPageStateTiddler>get[text]] ~[[25]] }}} >\n<$vars low={{{ [<page-number>subtract[1]multiply<entries-per-page>] }}} \n high={{{[<page-number>multiply<entries-per-page>] }}} >\t \n<$macrocall $name=<<tableBody>> />\n<!--on demand display the pagination row-->\n<$reveal type=\"match\" default=<<pagination>> text=\"yes\" tag=\"tr\" class=\"shiraz-dtable-page-footer\">\n<td colspan=<<ncols>> >\n<<prev-button>>\nDisplaying <$text text={{{[<low>add[1]]}}}/> through <$text text={{{ [<high>compare:number:lt<total-entries>then<high>else<total-entries>] }}}/> of <<total-entries>> Results | <<limit-entries>>\n<<next-button>>\n</td>\n</$reveal><!-- end of pagination ui -->\n</$vars>\n</$vars>\n</$set>\n</tbody>\n</table>\n</div><!-- container-->\n</$set>\n</$set>\n</$list><!--check input filter parameter-->\n</$set>\n</$set>\n</$set>\n</$vars>\n\\end\n\n"},"$:/plugins/kookma/shiraz/macros/dtables/table-utility":{"title":"$:/plugins/kookma/shiraz/macros/dtables/table-utility","created":"20200209195541061","modified":"20210304203821819","tags":"$:/tags/Table/Macro","type":"text/vnd.tiddlywiki","text":"\\define tableFilter_fields() $(inputFilter)$+[$(sortneg)$$(sortType)${$(tempTableSort)$##sortIndex}]\n\\define tableFilter_indexes() [enlist<items>]+[$(sortneg)$$(sortType)$[]]\n\n\\define getitems()\n<$set name=Index tiddler=<<tempTableSort>> index=\"sortIndex\">\n<$list filter=\"[subfilter<inputFilter>!has[draft.of]]\" >\n<$text text=\"[[\"/>{{{ [<currentTiddler>getindex<Index>addsuffix[°≡°]] }}}<<currentTiddler>><$text text=\"]]\"/>\n</$list>\n</$set>\n\\end\n\n\\define display_one_record()\n<$wikify name=\"rowStyle\" text=\"\"\"<$transclude tiddler=<<tempTableStyle>> index=<<currentRecord>> />\"\"\" mode=\"inline\">\n<tr style=<<rowStyle>>>\n<$list filter=<<columnFilter>> variable=currentColumn>\n<$set name=\"bodyLookup\" \n filter=\"[all[tiddlers+shadows]tag[$:/tags/Table/BodyTemplate]contains:tbl-column-list<currentColumn>]\n +[limit[1]get[title]]\"\n value=<<bodyLookup>> \n emptyValue=\"$:/plugins/kookma/shiraz/templates/body/default\">\n<$transclude tiddler=<<bodyLookup>> field=\"text\" mode=\"inline\"/>\n</$set>\n</$list>\n</tr>\n<!-- reveal expanded record-->\n<$reveal type=\"match\" state=<<tempPathExpand>> text=\"show\" tag=\"tr\">\n<<display-extended-record>>\n</$reveal>\n</$wikify>\n\\end\n\n\\define display_body_fields() \n<$set name=finalFilter filter=\"[<pagination>match[yes]]\" value=\"[subfilter<tableFilter_fields>first<high>] -[subfilter<tableFilter_fields>first<low>]\" emptyValue=\"[subfilter<tableFilter_fields>]\">\n<$list filter=\"[subfilter<finalFilter>]\" variable=\"currentRecord\">\n<<display_one_record>>\n</$list>\n</$set>\n\\end\n\n\\define display_body_indexes()\n<$wikify name=\"items\" text=<<getitems>> > \n<$set name=finalFilter filter=\"[<pagination>match[yes]]\" value=\"[subfilter<tableFilter_indexes>first<high>] -[subfilter<tableFilter_indexes>first<low>]\" emptyValue=\"[subfilter<tableFilter_indexes>]\">\n<$list filter=\"[subfilter<finalFilter>]\" variable=\"currentItem\">\n<$list filter=\"[<currentItem>split[°≡°]last[]]\" variable=\"currentRecord\">\n <<display_one_record>>\n</$list>\n</$list>\n</$set>\n</$wikify>\n\\end\n\n"},"$:/plugins/kookma/shiraz/macros/dtables/toggle-edit-view":{"title":"$:/plugins/kookma/shiraz/macros/dtables/toggle-edit-view","created":"20191128215812372","modified":"20210225164756973","tags":"$:/tags/Table/Macro","type":"text/vnd.tiddlywiki","text":"\\define toggle-edit-view()\n<$reveal type=\"nomatch\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\">\n<$button class=\"tc-btn-invisible tc-tiddlylink\" setTitle=<<tempTableEdit>> setIndex=\"mode\" setTo=\"edit\">{{$:/core/images/edit-button}}</$button>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\">\n<$button class=\"tc-btn-invisible tc-tiddlylink\" setTitle=<<tempTableEdit>> setIndex=\"mode\" setTo=\"view\">{{$:/core/images/done-button}}</$button>\n</$reveal>\n\\end"},"$:/plugins/kookma/shiraz/macros/dtables/warning_message":{"title":"$:/plugins/kookma/shiraz/macros/dtables/warning_message","created":"20200210083402839","modified":"20210225164756983","tags":"$:/tags/Table/Macro","type":"text/vnd.tiddlywiki","text":"\\define show_tiddler_types()\n<details>\n <summary>List tiddlers with wrong type</summary>\n\t<dl>\n <$list filter=\"[subfilter<inputFilter>]\">\n\t<$list filter=\"[<currentTiddler>get[type]match[application/x-tiddler-dictionary]][<currentTiddler>get[type]match[application/json]]\" variable=ignore\n\temptyMessage=\"\"\"<dt><$link/></dt><dd><$view field=type/></dd>\"\"\">\n\t</$list>\n\t</$list>\n\t</dl>\n</details>\n\\end\n\n\n\\define show_warning_message()\nDynamic editable table from ''indexes'' expects all input tiddlers are of dataTiddler (json or dictionary) types. Using tiddlers of non //json// or //x-tiddler-dictionary// types as input can unintentionally overwrite the data in the text field of those tiddlers.<br>\n<br>\nCheck the tiddler types to find which tiddlers are not of dataTiddler types!<br>\n<<show_tiddler_types>>\n\\end\n\n\n\\define check_tiddlers_type_for_table_from_indexes(isEditable)\n <$list filter=\"[<fieldOrIndex>]-field\" variable=ignore><!-- only dataTiddler -->\n\t<$list filter=\"[<__isEditable__>match[yes]]\" variable=ignore> <!-- only editable table -->\n\t<$list filter=\"[<tempWarningMsg>is[missing]]\" variable=ignore><!-- dismiss if tempWarningMsg is set -->\n\t<$list filter=\"[subfilter<inputFilter>each[type]get[type]]-[[application/x-tiddler-dictionary]]-[[application/json]]\" variable=ignore>\n\t <div style=\"color: white;background-color:#ff0033;padding:8px;text-align:center;width:100%;\">\n\t Danger: Editable dynamic table from idexes with mixed types of tiddlers! \n\t <$button class=\"tc-btn-invisible tc-tiddlylink\" style=\"fill:white;\" tooltip=\"Dismiss alert and continue with the current selection!\">{{$:/core/images/close-button}}\n <$action-setfield $tiddler=<<tempWarningMsg>> text=\"dissmiss\"/>\n </$button>\n\t </div>\n\t <div style=\"border:1px solid #ff0033;padding:8px;\">\n\t <<show_warning_message>>\n\t </div>\n </$list>\n\t</$list>\n\t</$list>\n\t</$list>\n\\end\t\n"},"$:/plugins/kookma/shiraz/macros/image-basic":{"title":"$:/plugins/kookma/shiraz/macros/image-basic","created":"20181119183704246","modified":"20210225164756991","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define image-basic(img, width:\"30%\", align:\"none\", caption:\"\", tooltip:\"\", alt:\"\")\n<figure class=\"image-simple image-align-$align$\" style=\"width:$width$;\">\n <$image source=<<__img__>> tooltip=<<__tooltip__>> alt=<<__alt__>> /> \n <figcaption>$caption$</figcaption>\n</figure> \n\\end"},"$:/plugins/kookma/shiraz/macros/image-card-utility":{"title":"$:/plugins/kookma/shiraz/macros/image-card-utility","created":"20191209113750505","modified":"20210225164757008","type":"text/vnd.tiddlywiki","text":"\\define image-card-top(img, width:\"30%\", align:\"none\", title:\"Empty\", text:\"Empty\", footer:\"Empty\", alt:\"\")\n<div class=\"card image-align-$align$\" style=\"width:$width$;\">\n <$image class=\"card-img-top\" source=<<__img__>> alt=<<__alt__>> />\n <div class=\"card-body\">\n <$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__title__>> >\n <div class=\"h5 card-title\">$title$</div>\n </$reveal> \n <$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__text__>> >\n <div class=\"card-text\">$text$</div>\n </$reveal> \n <$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__footer__>> >\n <p class=\"card-text\"><small class=\"text-muted\">$footer$</small></p>\n </$reveal>\n </div> \n</div>\n\\end\n\n\\define image-card-bottom(img, width:\"30%\", align:\"none\", title:\"Empty\", text:\"Empty\", footer:\"Empty\", alt:\"\")\n<div class=\"card image-align-$align$\" style=\"width:$width$;\">\n <div class=\"card-body\">\n <$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__title__>> >\n <div class=\"h5 card-title\">$title$</div>\n </$reveal> \n <$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__text__>> >\n <div class=\"card-text\">$text$</div>\n </$reveal> \n <$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__footer__>> >\n <p class=\"card-text\"><small class=\"text-muted\">$footer$</small></p>\n </$reveal>\n </div> \n <$image class=\"card-img-bottom\" source=<<__img__>> alt=<<__alt__>> />\n</div>\n\\end"},"$:/plugins/kookma/shiraz/macros/image-card":{"title":"$:/plugins/kookma/shiraz/macros/image-card","created":"20190913094619863","modified":"20210225164757001","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define image-card(img, width:\"30%\", align:\"none\", title:\"Empty\", text:\"Empty\", footer:\"Empty\", pos:\"top\", alt:\"\")\n\\import $:/plugins/kookma/shiraz/macros/image-card-utility\n<$reveal tag=\"div\" type=\"match\" default=\"top\" text=<<__pos__>> >\n<$macrocall $name=image-card-top img=<<__img__>> title=<<__title__>> text=<<__text__>>\n footer=<<__footer__>> width=<<__width__>> align=<<__align__>> alt=<<__alt__>> />\n</$reveal>\n<$reveal tag=\"div\" type=\"nomatch\" default=\"top\" text=<<__pos__>> >\n<$macrocall $name=image-card-bottom img=<<__img__>> title=<<__title__>> text=<<__text__>>\n footer=<<__footer__>> width=<<__width__>> align=<<__align__>> alt=<<__alt__>> />\n</$reveal>\n\\end\n\n\\define image-card-top(img, width:\"30%\", align:\"none\", title:\"Empty\", text:\"Empty\", footer:\"Empty\", alt:\"\")\n<div class=\"card image-align-$align$\" style=\"width:$width$;\">\n <$image class=\"card-img-top\" source=<<__img__>> alt=<<__alt__>> />\n <div class=\"card-body\">\n <$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__title__>> >\n <div class=\"h5 card-title\">$title$</div>\n </$reveal> \n <$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__text__>> >\n <div class=\"card-text\">$text$</div>\n </$reveal> \n <$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__footer__>> >\n <p class=\"card-text\"><small class=\"text-muted\">$footer$</small></p>\n </$reveal>\n </div> \n</div>\n\\end\n\n\\define image-card-bottom(img, width:\"30%\", align:\"none\", title:\"Empty\", text:\"Empty\", footer:\"Empty\", alt:\"\")\n<div class=\"card image-align-$align$\" style=\"width:$width$;\">\n <div class=\"card-body\">\n <$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__title__>> >\n <div class=\"h5 card-title\">$title$</div>\n </$reveal> \n <$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__text__>> >\n <div class=\"card-text\">$text$</div>\n </$reveal> \n <$reveal tag=\"div\" type=\"nomatch\" default=\"Empty\" text=<<__footer__>> >\n <p class=\"card-text\"><small class=\"text-muted\">$footer$</small></p>\n </$reveal>\n </div> \n <$image class=\"card-img-bottom\" source=<<__img__>> alt=<<__alt__>> />\n</div>\n\\end"},"$:/plugins/kookma/shiraz/macros/image-overlay-utility":{"title":"$:/plugins/kookma/shiraz/macros/image-overlay-utility","created":"20191209114338849","modified":"20210225164757027","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define _cls-content-details() image-overlay-content-details $(fdcls)$"},"$:/plugins/kookma/shiraz/macros/image-overlay":{"title":"$:/plugins/kookma/shiraz/macros/image-overlay","created":"20181117203737197","modified":"20210225164757021","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define image-overlay(img, width:\"30%\", align:\"none\", caption:\"\", title:\"\", text:\"\", fadein:\"left\", alt:\"\")\n\\import $:/plugins/kookma/shiraz/macros/image-overlay-utility\n<div class=\"image-overlay-container image-align-$align$\" style=\"width:$width$;\">\n <h3 class=\"image-overlay-title\">$caption$</h3>\n <div class=\"image-overlay-content\">\n <div class=\"image-overlay-content-overlay\"></div>\n <$image class=\"image-overlay-content-image\" source=<<__img__>> alt=<<__alt__>>/>\n <$set name=\"fdcls\" filter=\"$fadein$ +[splitbefore[ ]] +[addprefix[image-overlay-fadeIn-]]\">\n <div class=<<_cls-content-details>> >\n <h3 class=\"image-overlay-content-title\">$title$</h3>\n <p class=\"image-overlay-content-text\">$text$</p>\n </div>\n </$set>\n </div>\n</div>\n\\end"},"$:/plugins/kookma/shiraz/macros/image-polaroid":{"title":"$:/plugins/kookma/shiraz/macros/image-polaroid","created":"20181117203654803","modified":"20210225164757037","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define image-polaroid(img, width:\"30%\", align:\"none\", caption:\"\", tooltip:\"\", alt:\"\")\n<figure class=\"image-polaroid image-align-$align$\" style=\"width:$width$;\">\n <$image source=\"\"\"$img$\"\"\" tooltip=\"\"\"$tooltip$\"\"\"/>\n <figcaption class=\"image-polaroid-caption\">$caption$</figcaption>\n</figure> \n\\end"},"$:/plugins/kookma/shiraz/macros/image-pretty":{"title":"$:/plugins/kookma/shiraz/macros/image-pretty","created":"20181117203541398","modified":"20210225164757044","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define image-pretty(img, width:\"30%\", align:\"none\", caption:\"\", tooltip:\"\", alt:\"\")\n<figure class=\"image-pretty image-align-$align$\" style=\"width:$width$;\">\n <$image source=<<__img__>> tooltip=<<__tooltip__>> alt=<<__alt__>> /> \n <figcaption class=\"image-pretty-caption\">$caption$</figcaption>\n</figure> \n\\end"},"$:/plugins/kookma/shiraz/macros/image-slidein":{"title":"$:/plugins/kookma/shiraz/macros/image-slidein","created":"20181117040544570","modified":"20210225164757055","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define image-slidein(img, width:\"30%\", align:\"none\", caption:\"\", tooltip:\"\", slidein:\"left\", alt:\"\")\n<figure class=\"image-slidein mr-cap-$slidein$ image-align-$align$\" style=\"width:$width$;\">\n <$image source=<<__img__>> tooltip=<<__tooltip__>> alt=<<__alt__>>/>\n <figcaption>$caption$</figcaption>\n</figure> \n\\end"},"$:/plugins/kookma/shiraz/macros/list-search":{"title":"$:/plugins/kookma/shiraz/macros/list-search","author":"Jeremy Ruston","created":"20191209101857832","creator":"Mohammad","description":"creates few paragraphs of dumy text","modified":"20210225164757062","modifier":"Mohammad","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define list-search( filter:\"[!is[system]]\", search:\"search:title\", template:\"$:/core/ui/ListItemTemplate\",\n class:\"\", stateTiddler:\"\", placeholder:\"keywords\")\n<$set name=\"state\" filter=\"[[$:/temp/list-search]addsuffix[/$stateTiddler$]addsuffix<qualify>]\">\n<div class=<<__class__>> >\n<$edit-text tiddler=<<state>> type=\"search\" tag=\"input\" default=\"\" placeholder=\"$placeholder$\"/>\n</div>\n<$reveal state=<<state>> type=\"match\" text=\"\" class=<<__class__>> tag=div>\n<$list filter=\"$filter$\" template=<<__template__>>/>\n</$reveal>\n<$reveal state=<<state>> type=\"nomatch\" text=\"\" class=<<__class__>> tag=div>\n<$set name=term tiddler=<<state>> field=\"text\">\n<$list filter=\"$filter$+[$search$<term>]\" template=<<__template__>>/>\n</$set>\n</$reveal>\n</$set>\n\\end\n<!-- from Tobias Beer list-search with modification-->"},"$:/plugins/kookma/shiraz/macros/multicol":{"title":"$:/plugins/kookma/shiraz/macros/multicol","created":"20191018063242993","modified":"20210225164757071","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define multicol(src, ncol:\"\", class:\"\")\n<div class=\"sh-multicol$ncol$ $class$\">\n\n$src$\n</div>\n\\end"},"$:/plugins/kookma/shiraz/macros/slider":{"title":"$:/plugins/kookma/shiraz/macros/slider","created":"20190322161929431","description":"Slider macro shows (hides) its content.","modified":"20210225164757080","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define slider(label, src, labelClass, srcClass, status:\"closed\")\n<$set name=\"revealState\" value=\"\"\"$:/state/shiraz/slider-macro/$(currentTiddler)$/$label$\"\"\">\n\n<h2 class=\"$labelClass$\">\n <$reveal type=\"nomatch\" state=<<revealState>> text=\"open\" default=\"$status$\">\n <$button class=\"tc-btn-invisible tc-tiddlylink\" set=<<revealState>> setTo=\"open\">\n <span class=\"kk-sh-slider\"><$transclude tiddler=\"$:/core/images/right-arrow\" /></span>\n </$button>\n </$reveal>\n <$reveal type=\"match\" state=<<revealState>> text=\"open\" default=\"$status$\">\n <$button class=\"tc-btn-invisible tc-tiddlylink\" set=<<revealState>> setTo=\"closed\">\n <span class=\"kk-sh-slider\"><$transclude tiddler=\"$:/core/images/down-arrow\" /></span>\n </$button>\n </$reveal>\n $label$\n</h2>\n\n<$reveal type=\"match\" state=<<revealState>> text=\"open\" default=\"$status$\" class=\"$srcClass$\">\n\n$src$\n</$reveal>\n</$set>\n\\end"},"$:/plugins/kookma/shiraz/macros/space":{"title":"$:/plugins/kookma/shiraz/macros/space","created":"20170629183034888","modified":"20210225164757090","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define vspace(height:\"25px\")\n<p style=\"margin-bottom: $height$;\"></p>\n\\end\n\n\\define hspace(width:\"25px\")\n<span style=\"margin-left: $width$;\"></span>\n\\end\n"},"$:/plugins/kookma/shiraz/macros/text-utility":{"title":"$:/plugins/kookma/shiraz/macros/text-utility","created":"20181101154956345","modified":"20210225164757101","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define tc(src:\"\", color:\"red\") <span style=\"color:$color$;\">$src$</span>\n\\define bc(src:\"\", color:\"yellow\") <span style=\"background-color:$color$;\">$src$</span>\n\\define mono(src:\"\", class:\"\") <code class=\"mono $class$\">$src$</code>\n\\define transform(case:\"\", src:\"\", class:\"\") <span class=\"text-$case$ $class$\">$src$</span>"},"$:/plugins/kookma/shiraz/plugin.info":{"title":"$:/plugins/kookma/shiraz/plugin.info","text":"{\n \"title\": \"$:/plugins/kookma/shiraz\",\n \"name\": \"Shiraz\",\n \"description\": \"extended markups, styles, images, tables, and macros\",\n \"author\": \"Mohammad Rahmani\",\n \"version\": \"2.2.0\",\n \"core-version\": \">=5.1.23\",\n \"source\": \"https://github.com/kookma/TW-Shiraz\",\n \"list\": \"readme license history\",\n \"plugin-type\": \"plugin\",\n \"dependents\": \"\"\n}","type":"application/json","created":"20210226190904213","modified":"20210304204702977"},"$:/plugins/kookma/shiraz/readme":{"title":"$:/plugins/kookma/shiraz/readme","created":"20210225163850254","modified":"20210225164028302","tags":"","type":"text/vnd.tiddlywiki","text":"; Shiraz\nShiraz is a small framework of stylesheets, templates and macros to create stylish contents in Tiddlywiki. Shiraz has customized elements like alerts, cards, panels, images, static tables, dynamic tables, badges, texts, etc. Shiraz uses some modified CSS classes from [[Bootstrap|https://getbootstrap.com/]] 4.3.1.\n\n;Code and demo\nFor learning plugin features, syntax, tutorial and examples see the plugin demo and code pages\n\n* Demo: https://kookma.github.io/TW-Shiraz/\n* Code: https://github.com/kookma/TW-Shiraz\n"},"$:/plugins/kookma/shiraz/styles/alerts-leftbar":{"title":"$:/plugins/kookma/shiraz/styles/alerts-leftbar","text":".leftbar{\n border-width:0px !important;\n border-radius:0px !important;\n border-left-width: 5px !important;\n}","created":"20181208184228896","modified":"20210225164757108","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/alerts":{"title":"$:/plugins/kookma/shiraz/styles/bs/alerts","text":"/*Was taken from bootstrap 4.1.3*/\n.alert {\n position: relative;\n padding: 0.75rem 1.25rem;\n margin-bottom: 1rem;\n border: 1px solid transparent;\n border-radius: 0.25rem;\n}\n.alert-primary {\n color: #004085;\n background-color: #cce5ff;\n border-color: #b8daff;\n}\n\n.alert-primary hr {\n border-top-color: #9fcdff;\n}\n.alert-secondary {\n color: #383d41;\n background-color: #e2e3e5;\n border-color: #d6d8db;\n}\n\n.alert-secondary hr {\n border-top-color: #c8cbcf;\n}\n\n.alert-success {\n color: #155724;\n background-color: #d4edda;\n border-color: #c3e6cb;\n}\n\n.alert-success hr {\n border-top-color: #b1dfbb;\n}\n.alert-info {\n color: #0c5460;\n background-color: #d1ecf1;\n border-color: #bee5eb;\n}\n\n.alert-info hr {\n border-top-color: #abdde5;\n}\n.alert-warning {\n color: #856404;\n background-color: #fff3cd;\n border-color: #ffeeba;\n}\n\n.alert-warning hr {\n border-top-color: #ffe8a1;\n}\n\n.alert-danger {\n color: #721c24;\n background-color: #f8d7da;\n border-color: #f5c6cb;\n}\n\n.alert-danger hr {\n border-top-color: #f1b0b7;\n}\n.alert-light {\n color: #818182;\n background-color: #fefefe;\n border-color: #fdfdfe;\n}\n\n.alert-light hr {\n border-top-color: #ececf6;\n}\n.alert-dark {\n color: #1b1e21;\n background-color: #d6d8d9;\n border-color: #c6c8ca;\n}\n\n.alert-dark hr {\n border-top-color: #b9bbbe;\n}\n","created":"20180820171551129","modified":"20210225164757118","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/background-colors":{"title":"$:/plugins/kookma/shiraz/styles/bs/background-colors","text":".bg-primary {\n background-color: #007bff !important;\n}\n\na.bg-primary:hover, a.bg-primary:focus,\nbutton.bg-primary:hover,\nbutton.bg-primary:focus {\n background-color: #0062cc !important;\n}\n\n.bg-secondary {\n background-color: #6c757d !important;\n}\n\na.bg-secondary:hover, a.bg-secondary:focus,\nbutton.bg-secondary:hover,\nbutton.bg-secondary:focus {\n background-color: #545b62 !important;\n}\n\n.bg-success {\n background-color: #28a745 !important;\n}\n\na.bg-success:hover, a.bg-success:focus,\nbutton.bg-success:hover,\nbutton.bg-success:focus {\n background-color: #1e7e34 !important;\n}\n\n.bg-info {\n background-color: #17a2b8 !important;\n}\n\na.bg-info:hover, a.bg-info:focus,\nbutton.bg-info:hover,\nbutton.bg-info:focus {\n background-color: #117a8b !important;\n}\n\n.bg-warning {\n background-color: #ffc107 !important;\n}\n\na.bg-warning:hover, a.bg-warning:focus,\nbutton.bg-warning:hover,\nbutton.bg-warning:focus {\n background-color: #d39e00 !important;\n}\n\n.bg-danger {\n background-color: #dc3545 !important;\n}\n\na.bg-danger:hover, a.bg-danger:focus,\nbutton.bg-danger:hover,\nbutton.bg-danger:focus {\n background-color: #bd2130 !important;\n}\n\n.bg-light {\n background-color: #f8f9fa !important;\n}\n\na.bg-light:hover, a.bg-light:focus,\nbutton.bg-light:hover,\nbutton.bg-light:focus {\n background-color: #dae0e5 !important;\n}\n\n.bg-dark {\n background-color: #343a40 !important;\n}\n\na.bg-dark:hover, a.bg-dark:focus,\nbutton.bg-dark:hover,\nbutton.bg-dark:focus {\n background-color: #1d2124 !important;\n}\n\n.bg-white {\n background-color: #fff !important;\n}\n\n.bg-transparent {\n background-color: transparent !important;\n}","created":"20180820170518161","modified":"20210225164757125","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/badge":{"title":"$:/plugins/kookma/shiraz/styles/bs/badge","text":"/* Extracted from bootstrap 4.1.3 */\n.badge {\n display: inline-block;\n padding: 0.25em 0.4em;\n font-size: 75%;\n font-weight: 700;\n line-height: 1;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n border-radius: 0.25rem;\n}\n\n.badge:empty {\n display: none;\n}\n\n.btn .badge {\n position: relative;\n top: -1px;\n}\n\n.badge-pill {\n padding-right: 0.6em;\n padding-left: 0.6em;\n border-radius: 10rem;\n}\n\n.badge-primary {\n color: #fff;\n background-color: #007bff;\n}\n\n.badge-primary[href]:hover, .badge-primary[href]:focus {\n color: #fff;\n text-decoration: none;\n background-color: #0062cc;\n}\n\n.badge-secondary {\n color: #fff;\n background-color: #6c757d;\n}\n\n.badge-secondary[href]:hover, .badge-secondary[href]:focus {\n color: #fff;\n text-decoration: none;\n background-color: #545b62;\n}\n\n.badge-success {\n color: #fff;\n background-color: #28a745;\n}\n\n.badge-success[href]:hover, .badge-success[href]:focus {\n color: #fff;\n text-decoration: none;\n background-color: #1e7e34;\n}\n\n.badge-info {\n color: #fff;\n background-color: #17a2b8;\n}\n\n.badge-info[href]:hover, .badge-info[href]:focus {\n color: #fff;\n text-decoration: none;\n background-color: #117a8b;\n}\n\n.badge-warning {\n color: #212529;\n background-color: #ffc107;\n}\n\n.badge-warning[href]:hover, .badge-warning[href]:focus {\n color: #212529;\n text-decoration: none;\n background-color: #d39e00;\n}\n\n.badge-danger {\n color: #fff;\n background-color: #dc3545;\n}\n\n.badge-danger[href]:hover, .badge-danger[href]:focus {\n color: #fff;\n text-decoration: none;\n background-color: #bd2130;\n}\n\n.badge-light {\n color: #212529;\n background-color: #f8f9fa;\n}\n\n.badge-light[href]:hover, .badge-light[href]:focus {\n color: #212529;\n text-decoration: none;\n background-color: #dae0e5;\n}\n\n.badge-dark {\n color: #fff;\n background-color: #343a40;\n}\n\n.badge-dark[href]:hover, .badge-dark[href]:focus {\n color: #fff;\n text-decoration: none;\n background-color: #1d2124;\n}\n\n","created":"20181122140031075","modified":"20210225164757135","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/borders":{"title":"$:/plugins/kookma/shiraz/styles/bs/borders","text":".border {\n border: 1px solid #dee2e6 !important;\n}\n\n.border-top {\n border-top: 1px solid #dee2e6 !important;\n}\n\n.border-right {\n border-right: 1px solid #dee2e6 !important;\n}\n\n.border-bottom {\n border-bottom: 1px solid #dee2e6 !important;\n}\n\n.border-left {\n border-left: 1px solid #dee2e6 !important;\n}\n\n.border-0 {\n border: 0 !important;\n}\n\n.border-top-0 {\n border-top: 0 !important;\n}\n\n.border-right-0 {\n border-right: 0 !important;\n}\n\n.border-bottom-0 {\n border-bottom: 0 !important;\n}\n\n.border-left-0 {\n border-left: 0 !important;\n}\n\n.border-primary {\n border-color: #007bff !important;\n}\n\n.border-secondary {\n border-color: #6c757d !important;\n}\n\n.border-success {\n border-color: #28a745 !important;\n}\n\n.border-info {\n border-color: #17a2b8 !important;\n}\n\n.border-warning {\n border-color: #ffc107 !important;\n}\n\n.border-danger {\n border-color: #dc3545 !important;\n}\n\n.border-light {\n border-color: #f8f9fa !important;\n}\n\n.border-dark {\n border-color: #343a40 !important;\n}\n\n.border-white {\n border-color: #fff !important;\n}\n\n.rounded {\n border-radius: 0.25rem !important;\n}\n\n.rounded-top {\n border-top-left-radius: 0.25rem !important;\n border-top-right-radius: 0.25rem !important;\n}\n\n.rounded-right {\n border-top-right-radius: 0.25rem !important;\n border-bottom-right-radius: 0.25rem !important;\n}\n\n.rounded-bottom {\n border-bottom-right-radius: 0.25rem !important;\n border-bottom-left-radius: 0.25rem !important;\n}\n\n.rounded-left {\n border-top-left-radius: 0.25rem !important;\n border-bottom-left-radius: 0.25rem !important;\n}\n\n.rounded-circle {\n border-radius: 50% !important;\n}\n\n.rounded-0 {\n border-radius: 0 !important;\n}\n","created":"20180820174710383","modified":"20210225164757142","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/btn":{"title":"$:/plugins/kookma/shiraz/styles/bs/btn","text":"/* Button and btn classes Mohammad*/\n.btn {\n display: inline-block;\n font-weight: 400;\n text-align: center;\n white-space: nowrap;\n vertical-align: middle;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n border: 1px solid transparent;\n padding: 0.375rem 0.75rem;\n font-size: 1rem;\n line-height: 1.5;\n border-radius: 0.25rem;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n\n\n.btn:hover, .btn:focus {\n text-decoration: none;\n}\n\n.btn:focus, .btn.focus {\n outline: 0;\n box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);\n}\n\n.btn.disabled, .btn:disabled {\n opacity: 0.65;\n}\n\n.btn:not(:disabled):not(.disabled) {\n cursor: pointer;\n}\n\na.btn.disabled,\nfieldset:disabled a.btn {\n pointer-events: none;\n}\n\n.btn-primary {\n color: #fff;\n background-color: #007bff;\n border-color: #007bff;\n}\n\n.btn-primary:hover {\n color: #fff;\n background-color: #0069d9;\n border-color: #0062cc;\n}\n\n.btn-primary:focus, .btn-primary.focus {\n box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);\n}\n\n.btn-primary.disabled, .btn-primary:disabled {\n color: #fff;\n background-color: #007bff;\n border-color: #007bff;\n}\n\n.btn-secondary {\n color: #fff;\n background-color: #6c757d;\n border-color: #6c757d;\n}\n\n.btn-secondary:hover {\n color: #fff;\n background-color: #5a6268;\n border-color: #545b62;\n}\n\n.btn-secondary:focus, .btn-secondary.focus {\n box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5);\n}\n\n.btn-secondary.disabled, .btn-secondary:disabled {\n color: #fff;\n background-color: #6c757d;\n border-color: #6c757d;\n}\n\n.btn-success {\n color: #fff;\n background-color: #28a745;\n border-color: #28a745;\n}\n\n.btn-success:hover {\n color: #fff;\n background-color: #218838;\n border-color: #1e7e34;\n}\n\n.btn-success:focus, .btn-success.focus {\n box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);\n}\n\n.btn-success.disabled, .btn-success:disabled {\n color: #fff;\n background-color: #28a745;\n border-color: #28a745;\n}\n\n.btn-info {\n color: #fff;\n background-color: #17a2b8;\n border-color: #17a2b8;\n}\n\n.btn-info:hover {\n color: #fff;\n background-color: #138496;\n border-color: #117a8b;\n}\n\n.btn-info:focus, .btn-info.focus {\n box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5);\n}\n\n.btn-info.disabled, .btn-info:disabled {\n color: #fff;\n background-color: #17a2b8;\n border-color: #17a2b8;\n}\n\n.btn-warning {\n color: #212529;\n background-color: #ffc107;\n border-color: #ffc107;\n}\n\n.btn-warning:hover {\n color: #212529;\n background-color: #e0a800;\n border-color: #d39e00;\n}\n\n.btn-warning:focus, .btn-warning.focus {\n box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);\n}\n\n.btn-warning.disabled, .btn-warning:disabled {\n color: #212529;\n background-color: #ffc107;\n border-color: #ffc107;\n}\n\n.btn-danger {\n color: #fff;\n background-color: #dc3545;\n border-color: #dc3545;\n}\n\n.btn-danger:hover {\n color: #fff;\n background-color: #c82333;\n border-color: #bd2130;\n}\n\n.btn-danger:focus, .btn-danger.focus {\n box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);\n}\n\n.btn-danger.disabled, .btn-danger:disabled {\n color: #fff;\n background-color: #dc3545;\n border-color: #dc3545;\n}\n\n.btn-light {\n color: #212529;\n background-color: #f8f9fa;\n border-color: #f8f9fa;\n}\n\n.btn-light:hover {\n color: #212529;\n background-color: #e2e6ea;\n border-color: #dae0e5;\n}\n\n.btn-light:focus, .btn-light.focus {\n box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5);\n}\n\n.btn-light.disabled, .btn-light:disabled {\n color: #212529;\n background-color: #f8f9fa;\n border-color: #f8f9fa;\n}\n\n.btn-dark {\n color: #fff;\n background-color: #343a40;\n border-color: #343a40;\n}\n\n.btn-dark:hover {\n color: #fff;\n background-color: #23272b;\n border-color: #1d2124;\n}\n\n.btn-dark:focus, .btn-dark.focus {\n box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5);\n}\n\n.btn-dark.disabled, .btn-dark:disabled {\n color: #fff;\n background-color: #343a40;\n border-color: #343a40;\n}\n\n.btn-link {\n font-weight: 400;\n color: #007bff;\n background-color: transparent;\n}\n\n.btn-link:hover {\n color: #0056b3;\n text-decoration: underline;\n background-color: transparent;\n border-color: transparent;\n}\n\n.btn-link:focus, .btn-link.focus {\n text-decoration: underline;\n border-color: transparent;\n box-shadow: none;\n}\n\n.btn-link:disabled, .btn-link.disabled {\n color: #6c757d;\n pointer-events: none;\n}\n\n/* button size */\n\n.btn-lg{\n padding: 0.5rem 1rem;\n font-size: 1.25rem;\n line-height: 1.5;\n border-radius: 0.3rem;\n}\n\n.btn-sm{\n padding: 0.25rem 0.5rem;\n font-size: 0.875rem;\n line-height: 1.5;\n border-radius: 0.2rem;\n}","created":"20180822044340070","modified":"20210225164757152","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/card-column":{"title":"$:/plugins/kookma/shiraz/styles/bs/card-column","text":"/* Extracted from bootstrap 4.3.1 */\n.card-columns .card {\n margin-bottom: 0.75rem;\n}\n\n@media (min-width: 576px) {\n .card-columns {\n -webkit-column-count: 3;\n -moz-column-count: 3;\n column-count: 3;\n -webkit-column-gap: 1.25rem;\n -moz-column-gap: 1.25rem;\n column-gap: 1.25rem;\n orphans: 1;\n widows: 1;\n }\n .card-columns .card {\n display: inline-block;\n width: 100%;\n }\n}","created":"20181122175345419","modified":"20210225164757167","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/card-deck":{"title":"$:/plugins/kookma/shiraz/styles/bs/card-deck","text":"/* Extracted from bootstrap 4.1.3 */\n\n.card-deck {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.card-deck .card {\n margin-bottom: 15px;\n}\n\n@media (min-width: 576px) {\n .card-deck {\n -ms-flex-flow: row wrap;\n flex-flow: row wrap;\n margin-right: -15px;\n margin-left: -15px;\n }\n .card-deck .card {\n display: -ms-flexbox;\n display: flex;\n -ms-flex: 1 0 0%;\n flex: 1 0 0%;\n -ms-flex-direction: column;\n flex-direction: column;\n margin-right: 15px;\n margin-bottom: 0;\n margin-left: 15px;\n }\n}","created":"20180822174847352","modified":"20210225164757174","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/card-group":{"title":"$:/plugins/kookma/shiraz/styles/bs/card-group","text":"/* Extracted from bootstrap 4.1.3 */\n.card-group {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n.card-group > .card {\n margin-bottom: 15px;\n}\n\n@media (min-width: 576px) {\n .card-group {\n -ms-flex-flow: row wrap;\n flex-flow: row wrap;\n }\n .card-group > .card {\n -ms-flex: 1 0 0%;\n flex: 1 0 0%;\n margin-bottom: 0;\n }\n .card-group > .card + .card {\n margin-left: 0;\n border-left: 0;\n }\n .card-group > .card:first-child {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n .card-group > .card:first-child .card-img-top,\n .card-group > .card:first-child .card-header {\n border-top-right-radius: 0;\n }\n .card-group > .card:first-child .card-img-bottom,\n .card-group > .card:first-child .card-footer {\n border-bottom-right-radius: 0;\n }\n .card-group > .card:last-child {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .card-group > .card:last-child .card-img-top,\n .card-group > .card:last-child .card-header {\n border-top-left-radius: 0;\n }\n .card-group > .card:last-child .card-img-bottom,\n .card-group > .card:last-child .card-footer {\n border-bottom-left-radius: 0;\n }\n .card-group > .card:only-child {\n border-radius: 0.25rem;\n }\n .card-group > .card:only-child .card-img-top,\n .card-group > .card:only-child .card-header {\n border-top-left-radius: 0.25rem;\n border-top-right-radius: 0.25rem;\n }\n .card-group > .card:only-child .card-img-bottom,\n .card-group > .card:only-child .card-footer {\n border-bottom-right-radius: 0.25rem;\n border-bottom-left-radius: 0.25rem;\n }\n .card-group > .card:not(:first-child):not(:last-child):not(:only-child) {\n border-radius: 0;\n }\n .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-img-top,\n .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-img-bottom,\n .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-header,\n .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-footer {\n border-radius: 0;\n }\n}\n","created":"20181122175111676","modified":"20210225164757185","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/card":{"title":"$:/plugins/kookma/shiraz/styles/bs/card","text":"/* Extracted from bootstrap 4.1.3 */\n.card {\n position: relative;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n min-width: 0;\n word-wrap: break-word;\n background-color: #fff;\n background-clip: border-box;\n border: 1px solid rgba(0, 0, 0, 0.125);\n border-radius: 0.25rem;\n}\n\n.card > hr {\n margin-right: 0;\n margin-left: 0;\n}\n\n.card > .list-group:first-child .list-group-item:first-child {\n border-top-left-radius: 0.25rem;\n border-top-right-radius: 0.25rem;\n}\n\n.card > .list-group:last-child .list-group-item:last-child {\n border-bottom-right-radius: 0.25rem;\n border-bottom-left-radius: 0.25rem;\n}\n\n.card-body {\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n padding: 1.25rem;\n}\n\n.card-title {\n margin-bottom: 0.75rem;\n}\n\n.card-subtitle {\n margin-top: -0.375rem;\n margin-bottom: 0;\n}\n\n.card-text:last-child {\n margin-bottom: 0;\n}\n\n.card-link:hover {\n text-decoration: none;\n}\n\n.card-link + .card-link {\n margin-left: 1.25rem;\n}\n\n.card-header {\n padding: 0.75rem 1.25rem;\n margin-bottom: 0;\n background-color: rgba(0, 0, 0, 0.03);\n border-bottom: 1px solid rgba(0, 0, 0, 0.125);\n}\n\n.card-header:first-child {\n border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;\n}\n\n.card-header + .list-group .list-group-item:first-child {\n border-top: 0;\n}\n\n.card-footer {\n padding: 0.75rem 1.25rem;\n background-color: rgba(0, 0, 0, 0.03);\n border-top: 1px solid rgba(0, 0, 0, 0.125);\n}\n\n.card-footer:last-child {\n border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);\n}\n\n.card-header-tabs {\n margin-right: -0.625rem;\n margin-bottom: -0.75rem;\n margin-left: -0.625rem;\n border-bottom: 0;\n}\n\n.card-header-pills {\n margin-right: -0.625rem;\n margin-left: -0.625rem;\n}\n\n.card-img-overlay {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: 1.25rem;\n}\n\n.card-img {\n width: 100%;\n border-radius: calc(0.25rem - 1px);\n}\n\n.card-img-top {\n width: 100%;\n border-top-left-radius: calc(0.25rem - 1px);\n border-top-right-radius: calc(0.25rem - 1px);\n}\n\n.card-img-bottom {\n width: 100%;\n border-bottom-right-radius: calc(0.25rem - 1px);\n border-bottom-left-radius: calc(0.25rem - 1px);\n}\n","created":"20180822174608965","modified":"20210225164757158","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/clearfix":{"title":"$:/plugins/kookma/shiraz/styles/bs/clearfix","text":".clearfix::after {\n display: block;\n clear: both;\n content: \"\";\n}","created":"20190919042042391","modified":"20210225164757193","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/float":{"title":"$:/plugins/kookma/shiraz/styles/bs/float","text":".float-left {\n float: left;\n}\n\n.float-right {\n float: right;\n}\n\n.float-none {\n float: none;\n}\n","created":"20180823142040855","modified":"20210225164757204","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/my-adjustment":{"title":"$:/plugins/kookma/shiraz/styles/bs/my-adjustment","text":"/* My adjustments to bootstrap 4.1.3 css classes */\na {\n color: #007bff;\n text-decoration: none;\n background-color: transparent;\n -webkit-text-decoration-skip: objects;\n}\n/* Link is hacked to be compatible with bootstrap \nclasses remove it if the TW core objects break\n*/\n\n","created":"20180822044831813","modified":"20210225164757211","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/shadow":{"title":"$:/plugins/kookma/shiraz/styles/bs/shadow","text":".shadow-sm {\n box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;\n}\n\n.shadow {\n box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;\n}\n\n.shadow-lg {\n box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;\n}\n\n.shadow-none {\n box-shadow: none !important;\n}","created":"20180823114259911","modified":"20210225164757222","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/sizing-spacing":{"title":"$:/plugins/kookma/shiraz/styles/bs/sizing-spacing","text":"/* Extracted from bootstrap 4.3.1 */\n/*Defines margins, paddings, width and height*/\n.w-25 {\n width: 25% !important;\n}\n.w-50 {\n width: 50% !important;\n}\n.w-75 {\n width: 75% !important;\n}\n.w-100 {\n width: 100% !important;\n}\n.w-auto {\n width: auto !important;\n}\n.h-25 {\n height: 25% !important;\n}\n.h-50 {\n height: 50% !important;\n}\n.h-75 {\n height: 75% !important;\n}\n.h-100 {\n height: 100% !important;\n}\n.h-auto {\n height: auto !important;\n}\n.mw-100 {\n max-width: 100% !important;\n}\n.mh-100 {\n max-height: 100% !important;\n}\n.m-0 {\n margin: 0 !important;\n}\n.mt-0,\n.my-0 {\n margin-top: 0 !important;\n}\n.mr-0,\n.mx-0 {\n margin-right: 0 !important;\n}\n.mb-0,\n.my-0 {\n margin-bottom: 0 !important;\n}\n.ml-0,\n.mx-0 {\n margin-left: 0 !important;\n}\n.m-1 {\n margin: 0.25rem !important;\n}\n.mt-1,\n.my-1 {\n margin-top: 0.25rem !important;\n}\n.mr-1,\n.mx-1 {\n margin-right: 0.25rem !important;\n}\n.mb-1,\n.my-1 {\n margin-bottom: 0.25rem !important;\n}\n.ml-1,\n.mx-1 {\n margin-left: 0.25rem !important;\n}\n.m-2 {\n margin: 0.5rem !important;\n}\n.mt-2,\n.my-2 {\n margin-top: 0.5rem !important;\n}\n.mr-2,\n.mx-2 {\n margin-right: 0.5rem !important;\n}\n.mb-2,\n.my-2 {\n margin-bottom: 0.5rem !important;\n}\n.ml-2,\n.mx-2 {\n margin-left: 0.5rem !important;\n}\n\n.m-3 {\n margin: 1rem !important;\n}\n\n.mt-3,\n.my-3 {\n margin-top: 1rem !important;\n}\n\n.mr-3,\n.mx-3 {\n margin-right: 1rem !important;\n}\n\n.mb-3,\n.my-3 {\n margin-bottom: 1rem !important;\n}\n\n.ml-3,\n.mx-3 {\n margin-left: 1rem !important;\n}\n\n.m-4 {\n margin: 1.5rem !important;\n}\n\n.mt-4,\n.my-4 {\n margin-top: 1.5rem !important;\n}\n\n.mr-4,\n.mx-4 {\n margin-right: 1.5rem !important;\n}\n\n.mb-4,\n.my-4 {\n margin-bottom: 1.5rem !important;\n}\n\n.ml-4,\n.mx-4 {\n margin-left: 1.5rem !important;\n}\n\n.m-5 {\n margin: 3rem !important;\n}\n\n.mt-5,\n.my-5 {\n margin-top: 3rem !important;\n}\n\n.mr-5,\n.mx-5 {\n margin-right: 3rem !important;\n}\n\n.mb-5,\n.my-5 {\n margin-bottom: 3rem !important;\n}\n\n.ml-5,\n.mx-5 {\n margin-left: 3rem !important;\n}\n\n.p-0 {\n padding: 0 !important;\n}\n\n.pt-0,\n.py-0 {\n padding-top: 0 !important;\n}\n\n.pr-0,\n.px-0 {\n padding-right: 0 !important;\n}\n\n.pb-0,\n.py-0 {\n padding-bottom: 0 !important;\n}\n\n.pl-0,\n.px-0 {\n padding-left: 0 !important;\n}\n\n.p-1 {\n padding: 0.25rem !important;\n}\n\n.pt-1,\n.py-1 {\n padding-top: 0.25rem !important;\n}\n\n.pr-1,\n.px-1 {\n padding-right: 0.25rem !important;\n}\n\n.pb-1,\n.py-1 {\n padding-bottom: 0.25rem !important;\n}\n\n.pl-1,\n.px-1 {\n padding-left: 0.25rem !important;\n}\n\n.p-2 {\n padding: 0.5rem !important;\n}\n\n.pt-2,\n.py-2 {\n padding-top: 0.5rem !important;\n}\n\n.pr-2,\n.px-2 {\n padding-right: 0.5rem !important;\n}\n\n.pb-2,\n.py-2 {\n padding-bottom: 0.5rem !important;\n}\n\n.pl-2,\n.px-2 {\n padding-left: 0.5rem !important;\n}\n\n.p-3 {\n padding: 1rem !important;\n}\n\n.pt-3,\n.py-3 {\n padding-top: 1rem !important;\n}\n\n.pr-3,\n.px-3 {\n padding-right: 1rem !important;\n}\n\n.pb-3,\n.py-3 {\n padding-bottom: 1rem !important;\n}\n\n.pl-3,\n.px-3 {\n padding-left: 1rem !important;\n}\n\n.p-4 {\n padding: 1.5rem !important;\n}\n\n.pt-4,\n.py-4 {\n padding-top: 1.5rem !important;\n}\n\n.pr-4,\n.px-4 {\n padding-right: 1.5rem !important;\n}\n\n.pb-4,\n.py-4 {\n padding-bottom: 1.5rem !important;\n}\n\n.pl-4,\n.px-4 {\n padding-left: 1.5rem !important;\n}\n\n.p-5 {\n padding: 3rem !important;\n}\n\n.pt-5,\n.py-5 {\n padding-top: 3rem !important;\n}\n\n.pr-5,\n.px-5 {\n padding-right: 3rem !important;\n}\n\n.pb-5,\n.py-5 {\n padding-bottom: 3rem !important;\n}\n\n.pl-5,\n.px-5 {\n padding-left: 3rem !important;\n}\n\n.m-auto {\n margin: auto !important;\n}\n\n.mt-auto,\n.my-auto {\n margin-top: auto !important;\n}\n\n.mr-auto,\n.mx-auto {\n margin-right: auto !important;\n}\n\n.mb-auto,\n.my-auto {\n margin-bottom: auto !important;\n}\n\n.ml-auto,\n.mx-auto {\n margin-left: auto !important;\n}\n","created":"20180822191952379","modified":"20210225164757233","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/text-alignment":{"title":"$:/plugins/kookma/shiraz/styles/bs/text-alignment","text":".text-justify {\n text-align: justify !important;\n}\n\n.text-nowrap {\n white-space: nowrap !important;\n}\n\n.text-truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.text-left {\n text-align: left !important;\n}\n\n.text-right {\n text-align: right !important;\n}\n\n.text-center {\n text-align: center !important;\n}","created":"20180822051223866","modified":"20210225164757241","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/text-colors":{"title":"$:/plugins/kookma/shiraz/styles/bs/text-colors","text":"/* from bootstrap 4.1.3 */\n\n.text-white {\n color: #fff !important;\n}\n\n.text-primary {\n color: #007bff !important;\n}\n\na.text-primary:hover, a.text-primary:focus {\n color: #0062cc !important;\n}\n\n.text-secondary {\n color: #6c757d !important;\n}\n\na.text-secondary:hover, a.text-secondary:focus {\n color: #545b62 !important;\n}\n\n.text-success {\n color: #28a745 !important;\n}\n\na.text-success:hover, a.text-success:focus {\n color: #1e7e34 !important;\n}\n\n.text-info {\n color: #17a2b8 !important;\n}\n\na.text-info:hover, a.text-info:focus {\n color: #117a8b !important;\n}\n\n.text-warning {\n color: #ffc107 !important;\n}\n\na.text-warning:hover, a.text-warning:focus {\n color: #d39e00 !important;\n}\n\n.text-danger {\n color: #dc3545 !important;\n}\n\na.text-danger:hover, a.text-danger:focus {\n color: #bd2130 !important;\n}\n\n.text-light {\n color: #f8f9fa !important;\n}\n\na.text-light:hover, a.text-light:focus {\n color: #dae0e5 !important;\n}\n\n.text-dark {\n color: #343a40 !important;\n}\n\na.text-dark:hover, a.text-dark:focus {\n color: #1d2124 !important;\n}\n\n.text-body {\n color: #212529 !important;\n}\n\n.text-muted {\n color: #6c757d !important;\n}\n\n.text-black-50 {\n color: rgba(0, 0, 0, 0.5) !important;\n}\n\n.text-white-50 {\n color: rgba(255, 255, 255, 0.5) !important;\n}\n\n.text-hide {\n font: 0/0 a;\n color: transparent;\n text-shadow: none;\n background-color: transparent;\n border: 0;\n}\n","created":"20180820173351023","modified":"20210225164757253","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/bs/text-utility":{"title":"$:/plugins/kookma/shiraz/styles/bs/text-utility","text":"/* Can be removed latter. This is used for illustration of bootstrap cards */\n\n.text-lowercase {\n text-transform: lowercase !important;\n}\n\n.text-uppercase {\n text-transform: uppercase !important;\n}\n\n.text-capitalize {\n text-transform: capitalize !important;\n}\n\n.font-weight-light {\n font-weight: 300 !important;\n}\n\n.font-weight-normal {\n font-weight: 400 !important;\n}\n\n.font-weight-bold {\n font-weight: 700 !important;\n}\n\n.font-italic {\n font-style: italic !important;\n}\n\n\n.h1, .h2, .h3, .h4, .h5, .h6 {\n margin-bottom: 0.5rem;\n font-family: inherit;\n font-weight: 500;\n line-height: 1.2;\n color: inherit;\n}\n\n.h1 {\n font-size: 2.5rem;\n}\n\n.h2 {\n font-size: 2rem;\n}\n\n.h3 {\n font-size: 1.75rem;\n}\n\n.h4 {\n font-size: 1.5rem;\n}\n\n.h5 {\n font-size: 1.25rem;\n}\n\n.h6 {\n font-size: 1rem;\n}\n\n.lead {\n font-size: 1.25rem;\n font-weight: 300;\n}\n\n.display-1 {\n font-size: 6rem;\n font-weight: 300;\n line-height: 1.2;\n}\n\n.display-2 {\n font-size: 5.5rem;\n font-weight: 300;\n line-height: 1.2;\n}\n\n.display-3 {\n font-size: 4.5rem;\n font-weight: 300;\n line-height: 1.2;\n}\n\n.display-4 {\n font-size: 3.5rem;\n font-weight: 300;\n line-height: 1.2;\n}\n\n.hr {\n margin-top: 1rem;\n margin-bottom: 1rem;\n border: 0;\n border-top: 1px solid rgba(0, 0, 0, 0.1);\n}\n\n.small {\n font-size: 80%;\n font-weight: 400;\n}\n\n.mark {\n padding: 0.2em;\n background-color: #fcf8e3;\n}\n","created":"20180822130528002","modified":"20210225164757260","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/clear-float":{"title":"$:/plugins/kookma/shiraz/styles/clear-float","text":"/* Resolve issue for floating objects which cross the tiddler frame!\nThe below code should force the tiddler to always wrap around floating elements, so that they are always inside\nRef: https://groups.google.com/d/msg/tiddlywiki/5bZwwj6cyac/2LzFeA7AAwAJ\n*/\n\n.tc-tiddler-body:before, .tc-tiddler-body:after {\n content: \"\";\n display: table;\n}\n.tc-tiddler-body:after {\n clear: both;\n}\n.tc-tiddler-body {\n zoom: 1;\n}","created":"20190902043605186","modified":"20210225164757272","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/colorful-sidebar-tab":{"title":"$:/plugins/kookma/shiraz/styles/colorful-sidebar-tab","text":".tc-sidebar-lists .tc-tab-buttons button.tc-tab-selected {\n background: none;\n border: none;\n border-bottom: solid 1px #737373 !important;\n font-weight: bold;\n color: #DB4C3F !important;\n}","created":"20191209105546612","modified":"20210225164757282","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/dbadge":{"title":"$:/plugins/kookma/shiraz/styles/dbadge","text":"/*Credits: \nNishant Srivastava https://codepen.io/nisrulz/pen/bpQWLW\nMohammad Rahmani: https://github.com/kookma\n*/\n.dbadge {\n display: inline-block;\n margin: 0.0em;\n}\n.dbadge > span {\n color: #ffffff;\n font-size: 0.8em;\n font-weight: 400;\n line-height: 1;\n padding: .2em .6em;\n text-align: center;\n vertical-align: baseline;\n white-space: nowrap;}\n\n.dbadge-subject{\n background-color: #656565;\n border-bottom-left-radius: 0.25em;\n border-top-left-radius: 0.25em;}\n.dbadge-status {\n border-bottom-right-radius: 0.25em;\n border-top-right-radius: 0.25em;}\n\n.dbadge-primary {\n background-color: #337ab7;}\n.dbadge-success {\n background-color: #5cb85c;}\n.dbadge-info {\n background-color: #5bc0de;}\n.dbadge-warning {\n background-color: #f0ad4e;}\n.dbadge-danger {\n background-color: #d9534f;}","created":"20181204192835967","modified":"20210225164757292","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/details-slider":{"title":"$:/plugins/kookma/shiraz/styles/details-slider","text":"/*details html5 macro*/\ndetails > summary {\n padding: 2px 6px;\n font-weight:500;\n outline:none;\n}\ndetails > div {\n padding: 2px 6px;\n margin: 0;\n}\n\nbutton .kk-sh-slider svg{\nwidth: 0.8em;\nheight: 0.8em;\nvertical-align: middle;}","created":"20181101185908941","modified":"20210225164757303","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/dynamic-tables-var":{"title":"$:/plugins/kookma/shiraz/styles/dynamic-tables-var","created":"20210224171009495","modified":"20210226184545624","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":"/* these are dynamic or variable properties based on the tiddlywiki palette */\n\n.shiraz-dtable-page-footer select{\n background-color: <<colour table-header-background>>;\n color:<<colour foreground>>;\n}\n\n.shiraz-dtable-page-footer > td{\nbackground-color: <<colour table-header-background>>;\n}\n\n/* customize the table footer used for numerical summary*/\n.shiraz-dtable-footer tr td{\n\tbackground-color: <<colour table-footer-background>>;\n border:none;\n}\n"},"$:/plugins/kookma/shiraz/styles/dynamic-tables":{"title":"$:/plugins/kookma/shiraz/styles/dynamic-tables","text":"/* edit-text box for dynamic table */\n.shiraz-dtable-textbox {\n width:100%;\n padding-left: 5px;\n border: none;\n}\n\n.shiraz-dtable-textbox:focus {\n outline: none;\n border: 1px solid #5778d8;\n background: transparent;\n}\n\n.tbl-inpt-edit { width: 100%; background-color: transparent; border: none; color: #000000;}\n\nbutton.tbl-sort-svg > svg { text-shadow: none; fill:#000000; height:10px; padding:0 0 2px 0; }\n\nth .tc-tiddlylink, th a { text-shadow: none; margin: 0 0 0 0; padding: 0 0 0 0; color:#000000; font-weight: bold; }\n\n\n/* DELETE CONFIRMATION */\ntable thead .tbl-delete-confirm > th {\n color: white;\n background-color:#ff0033;\n padding: 8px;\n margin: 0px;\n text-align:center;\n\tfont-weight:normal;\n}\n\ntable thead .tbl-delete-confirm > th > button {\n color: white;\n fill: white;\n}\n\n/* -- pagination --*/\n.shiraz-dtable-page-footer td{\n\tmargin: 0 0 0 0;\n\tpadding: 4px 7px 4px 7px;\n\tvertical-align: middle !important;\n}\n\n.shiraz-dtable-page-footer select{\n\tpadding:0;\n\tmargin:0;\n\tborder:none;\t\n}\n\n.shiraz-dtable-page-footer {\n\ttext-align:center;\n}\n\n.shiraz-dtable-page-prev{\n\tfloat:left;\n}\n\n.shiraz-dtable-page-next{\n\tfloat:right;\n}\n\n.shiraz-dtable-page-footer button svg {height:0.7em;}\n.shiraz-dtable-page-footer button {outline: none;}\n.shiraz-dtable-page-footer button:disabled {display:none;}\n","created":"20191128184537594","modified":"20210226184239698","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/image-alignment":{"title":"$:/plugins/kookma/shiraz/styles/image-alignment","text":"/*Image aligning classes*/\n.image-align-right{\n float:right;\n margin:0.5em 0 1.3em 1.4em;\n}\n.image-align-left{\n float:left;\n margin: 0.5em 1.4em 1.3em 0;\n}\n.image-align-center{\n display:block;\n margin: 0.5em auto 1.3em; \n}\n\n.image-float-none {\n float: none !important;\n}","created":"20190918193736314","modified":"20210225164757324","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/image-basic":{"title":"$:/plugins/kookma/shiraz/styles/image-basic","text":".image-simple {\n text-align: center;\n font-style: italic;\n font-size: smaller;\n text-indent: 0;\n padding: 0.5em;\n}","created":"20181119182848505","modified":"20210225164757335","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/image-overlay":{"title":"$:/plugins/kookma/shiraz/styles/image-overlay","text":".image-overlay-container{\n width: 50%; \n box-sizing: border-box;\n}\n\n@media screen and (max-width: 640px){\n .image-overlay-container{\n display: block;\n width: 100%;\n }\n}\n\n@media screen and (min-width: 900px){\n .image-overlay-container{\n width: 33.33%;\n }\n}\n\n.image-overlay-container .image-overlay-title{\n color: #1a1a1a;\n text-align: center;\n margin-bottom:10px;\n}\n\n.image-overlay-content {\n position: relative;\n width: 90%;\n max-width: 400px;\n margin: auto;\n overflow: hidden;\n}\n\n.image-overlay-content .image-overlay-content-overlay {\n background: rgba(0,0,0,0.7);\n position: absolute;\n height: 99%;\n width: 100%;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n -webkit-transition: all 0.4s ease-in-out 0s;\n -moz-transition: all 0.4s ease-in-out 0s;\n transition: all 0.4s ease-in-out 0s;\n}\n\n.image-overlay-content:hover .image-overlay-content-overlay{\n opacity: 1;\n}\n\n.image-overlay-content-image{\n width: 100%;\n}\n\n.image-overlay-content-details {\n position: absolute;\n text-align: center;\n padding-left: 1em;\n padding-right: 1em;\n width: 100%;\n top: 50%;\n left: 50%;\n opacity: 0;\n -webkit-transform: translate(-50%, -50%);\n -moz-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transition: all 0.3s ease-in-out 0s;\n -moz-transition: all 0.3s ease-in-out 0s;\n transition: all 0.3s ease-in-out 0s;\n}\n\n.image-overlay-content:hover .image-overlay-content-details{\n top: 50%;\n left: 50%;\n opacity: 1;\n}\n\n.image-overlay-content-details h3{\n color: #fff;\n font-weight: 500;\n letter-spacing: 0.15em;\n margin-bottom: 0.5em;\n text-transform: uppercase;\n}\n\n.image-overlay-content-details p{\n color: #fff;\n font-size: 0.8em;\n}\n\n.image-overlay-fadeIn-bottom{\n top: 80%;\n}\n\n.image-overlay-fadeIn-top{\n top: 20%;\n}\n\n.image-overlay-fadeIn-left{\n left: 20%;\n}\n\n.image-overlay-fadeIn-right{\n left: 80%;\n}","created":"20181116173704182","modified":"20210225164757343","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/image-polaroid":{"title":"$:/plugins/kookma/shiraz/styles/image-polaroid","text":".image-polaroid {\n min-width:64px;\n background-color: #f8f9fa;\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n}\n.image-polaroid img {\n width: 100%;\n padding:10px;\n height: auto;\n}\n.image-polaroid .image-polaroid-caption {\n padding:10px 15px 10px;\n text-align: center; \n line-height: 1.4em;\n font-weight:300;\n font-size: 0.9em; \n}","created":"20181116094450565","modified":"20210225164757353","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/image-pretty":{"title":"$:/plugins/kookma/shiraz/styles/image-pretty","text":".image-pretty {\n min-width:64px;\n border: 1px solid #c8ccd1;\n background-color:#f8f9fa;\n}\n.image-pretty:hover {\n border: 1px solid #777;\n}\n.image-pretty img {\n padding:2px;\n width: 100%;\n height: auto;\n}\n.image-pretty .image-pretty-caption {\n padding:10px 15px 10px;\n text-align: center; \n line-height: 1.4em;\n font-weight:300;\n font-size: 0.9em; \n}\n\n","created":"20181115182806512","modified":"20210225164757361","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/image-slidein":{"title":"$:/plugins/kookma/shiraz/styles/image-slidein","text":".image-slidein { \n display: block; \n position: relative; \n /*float: left;*/\n overflow: hidden; \n /* margin: 0 20px 20px 0;*/\n}\n\n.image-slidein img {\n width: 100%;\n height: auto;\n}\n\n.image-slidein figcaption { \n position: absolute; \n background: rgba(0,0,0,0.75); \n color: white; \n padding: 10px 20px; \n opacity: 0;\n -webkit-transition: all 0.6s ease;\n -moz-transition: all 0.6s ease;\n -o-transition: all 0.6s ease;\n}\n.image-slidein:hover figcaption {\n opacity: 1;\n}\n.image-slidein:before { \n content: \"?\"; \n position: absolute; \n font-weight: 800; \n background: rgba(255,255,255,0.75); \n text-shadow: 0 0 5px white;\n color: black;\n width: 24px;\n height: 24px;\n -webkit-border-radius: 12px;\n -moz-border-radius: 12px;\n border-radius: 12px;\n text-align: center;\n font-size: 14px;\n line-height: 24px;\n -moz-transition: all 0.6s ease;\n opacity: 0.75;\t\n}\n.image-slidein:hover:before {\n opacity: 0;\n}\n\n.mr-cap-left:before { bottom: 10px; left: 10px; }\n.mr-cap-left figcaption { bottom: 0; left: -30%; }\n.mr-cap-left:hover figcaption { left: 0; }\n\n.mr-cap-right:before { bottom: 10px; right: 10px; }\n.mr-cap-right figcaption { bottom: 0; right: -30%; }\n.mr-cap-right:hover figcaption { right: 0; }\n\n.mr-cap-top:before { top: 10px; left: 10px; }\n.mr-cap-top figcaption { left: 0; top: -30%; }\n.mr-cap-top:hover figcaption { top: 0; }\n\n.mr-cap-bottom:before { bottom: 10px; left: 10px; }\n.mr-cap-bottom figcaption { left: 0; bottom: -30%;}\n.mr-cap-bottom:hover figcaption { bottom: 0; }\n","created":"20181117040213926","modified":"20210225164757373","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/misc/edit-buttons":{"title":"$:/plugins/kookma/shiraz/styles/misc/edit-buttons","text":"/*Edit buttons as traffic lights*/\n.tc-tiddler-controls .tc-image-delete-button {fill:#ebb;}\n.tc-tiddler-controls .tc-image-cancel-button {fill:#ed9;}\n.tc-tiddler-controls .tc-image-done-button {fill:#beb;}","created":"20191029091851469","modified":"20210225164757386","tags":"","type":"text/css"},"$:/plugins/kookma/shiraz/styles/misc/tiddler-button-visibility":{"title":"$:/plugins/kookma/shiraz/styles/misc/tiddler-button-visibility","text":"/* Mouseover toolbar visibility: courtesy from Tobias Beer*/\n.tc-tiddler-frame .tc-titlebar button {\n opacity: 0;\n transition: opacity .5s ease-in-out;\n}\n.tc-tiddler-frame:hover .tc-titlebar button {\n zoom: 1;\n filter: alpha(opacity=100);\n opacity: 1;\n}\n","created":"20191029094209435","modified":"20210225164757397","tags":"","type":"text/css"},"$:/plugins/kookma/shiraz/styles/misc/ui-buttons":{"title":"$:/plugins/kookma/shiraz/styles/misc/ui-buttons","text":"/* These css rules makes TW UI buttons in beatiful color */\n\n/*page control buttons*/\n.tc-page-controls .tc-image-new-button { fill: #5EB95E; } /*New tiddler button*/\n.tc-page-controls .tc-image-options-button { fill:#8058A5; } /*Open control pannel*/\n\n/*tiddler buttons in beautiful color*/\n.tc-tiddler-controls .tc-image-edit-button { fill:#F37B1D; }/*edit tiddler*/\n.tc-tiddler-controls .tc-image-info-button { fill: #0e90d2; } /*Info button*/\n","created":"20191029092047069","modified":"20210225164757407","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/mono":{"title":"$:/plugins/kookma/shiraz/styles/mono","text":".mono {\n\tcolor:unset;\n\tbackground-color: #f7f7f9;\n\tborder: 1px solid #e1e1e8;\n\twhite-space: pre-wrap;\n\tpadding: 0 3px 2px;\n\tborder-radius: 3px;\n\tfont-family: \"SFMono-Regular\",Consolas,\"Liberation Mono\",Menlo,Courier,monospace;\n}","created":"20181010192406005","modified":"20210225164757418","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/multicols/column":{"title":"$:/plugins/kookma/shiraz/styles/multicols/column","text":"/* multicolumn layouts with fixed column number works on the whole tiddler */\n.multicol .tc-tiddler-body {\n column-width: 14em;\n column-rule: 1px solid #ccc;\n}\n/* two columns responsive*/\n.multicol2 .tc-tiddler-body {\n\tcolumn-count:2; \n\tcolumn-width:15em;\n}\n/* three columns responsive*/\n.multicol3 .tc-tiddler-body {\n\tcolumn-count:3; \n\tcolumn-width:10em;\n}\n\n\n/* remove the extra space from first paragraph */\n.multicol .tc-tiddler-body > :first-child, \n.multicol2 .tc-tiddler-body > :first-child, \n.multicol3 .tc-tiddler-body > :first-child { margin-top: 0;}\n\n/*-------------------------------------------------------------------------------*/\n/* Classes for using with macro and div elements */\n.sh-multicol {\n column-width: 14em;\n column-rule: 1px solid #ccc;\n}\n/* two columns responsive*/\n.sh-multicol2 {\n\tcolumn-count:2; \n\tcolumn-width:15em;\n}\n/* three columns responsive*/\n.sh-multicol3 {\n\tcolumn-count:3; \n\tcolumn-width:10em;\n}\n\n/* remove the extra space from first paragraph */\n.sh-multicol > :first-child,\n.sh-multicol2 > :first-child,\n.sh-multicol3 > :first-child { margin-top: 0;}","created":"20190627204703061","modified":"20210225164757425","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/multicols/flex backup":{"title":"$:/plugins/kookma/shiraz/styles/multicols/flex backup","text":"/* multicolumn layout using flexbox courtesy from Bootstrap 4.3.1*/\n.flex-row {\n display: flex;\n flex-wrap: wrap;\n margin-right: -15px;\n margin-left: -15px;\n}\n.flex-col-1, \n.flex-col-2, \n.flex-col-3 {\n position: relative;\n width: 100%;\n padding-right: 15px;\n padding-left: 15px;\n}\n\n.flex-col-1{flex: 1 1 0;}\n.flex-col-2{flex: 2 1 0;}\n.flex-col-3{flex: 3 1 0;}\n\n.flex-col-1 > :first-child,\n.flex-col-2 > :first-child,\n.flex-col-3 > :first-child {\n\tmargin-top: 0;}","created":"20191030140900552","modified":"20210225164757446","type":"text/css"},"$:/plugins/kookma/shiraz/styles/multicols/flex":{"title":"$:/plugins/kookma/shiraz/styles/multicols/flex","text":"/* multicolumn layout using flexbox courtesy from Bootstrap 4.3.1*/\n.flex-row {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n/* margin-right: -15px;\n margin-left: -15px;*/\n}\n\n.flex-col,\n.flex-col-1, \n.flex-col-2, \n.flex-col-3,\n.flex-col-4 {\n position: relative;\n width: 100%;\n padding-right: 15px;\n padding-left: 15px;\n}\n\n/* for small screen width>=576px\nhttps://getbootstrap.com/docs/4.3/layout/grid/\n*/\n@media (min-width: 576px) {\n.flex-col {flex: 1 1 0; max-width: 100%;}\n.flex-col-1 {flex: 0 0 25%; max-width:25%}\n.flex-col-2 {flex: 0 0 50%; max-width:50%}\n.flex-col-3 {flex: 0 0 75%; max-width:75%}\n.flex-col-4 {flex: 0 0 100%; max-width:100%}\n}\n\n.flex-col > :first-child,\n.flex-col-1 > :first-child,\n.flex-col-2 > :first-child,\n.flex-col-3 > :first-child,\n.flex-col-4 > :first-child {\n margin-top: 0;}\n\n\n/* Alignment */\n.flex-align-items-center {\n align-items: center !important;\n}\n.flex-justify-content-center {\n justify-content: center !important;\n}\n\n.flex-no-gutters {\n margin-right: 0;\n margin-left: 0;\n}","created":"20191014193910006","modified":"20210225164757436","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/multicols/storyriver":{"title":"$:/plugins/kookma/shiraz/styles/multicols/storyriver","text":"/* create story river in two column layout */\n.tc-story-river {\n display: flex;\n flex-wrap: wrap;\n}\n\n.tc-tiddler-frame\n{\n max-width: 49%; margin-right: 1%;\n /*max-width: 32%; margin-right: 1%; */\n}\n","created":"20140523214749659","modified":"20210225164757457","tags":"","type":"text/css"},"$:/plugins/kookma/shiraz/styles/notebook":{"title":"$:/plugins/kookma/shiraz/styles/notebook","text":"@media print{\n .notebook .tc-tiddler-body {\n padding-left:60px;\n margin-top:25px;\n }\n .notebook .tc-tiddler-title,\n .notebook .tc-subtitle,\n\t.notebook .tc-tags-wrapper {\n padding-left:60px;\n }\n}\n\n@media screen{\n .notebook .tc-tiddler-title,\n .notebook .tc-subtitle,\n\t.notebook .tc-tags-wrapper,\n\t.notebook .tc-tiddler-body {\n padding-left:30px;\n }\n\n}\t\n\n@media screen and (max-width:960px) {\n .notebook .tc-tiddler-title,\n .notebook .tc-subtitle,\n .notebook .tc-tags-wrapper,\n .notebook .tc-tiddler-body {\n padding-left:60px;\n }\n\n}\n\n.notebook:before {\n content: '';\n position: absolute;\n top: 0; bottom: 0; left: 0;\n width: 50px;\n background: radial-gradient(#575450 6px, transparent 7px) repeat-y;\n background-size: 30px 30px;\n border-right: 3px solid #D44147;\n\t z-index:1;\n}\n\n.notebook .tc-tiddler-body {\n\t position: relative;\n background: linear-gradient(transparent, transparent 1.95em, #91D1D3 1.95em);\n background-size: 2em 2em;\n\t min-height:90px; \n}\n\n.notebook .tc-tiddler-body{\n\t padding-top:20px;\n font-family: \"Handlee\", cursive;\n font-weight:300;\n line-height:2em;\n color:#696969;\n}\n\n/* Setting font for other elements */\n.notebook .tc-tiddler-body pre,\n.notebook .tc-tiddler-body code,\n.notebook .tc-tiddler-body pre code\n{\n font-family: \"Handlee\", cursive;\n font-weight:300;\n}","created":"20180412105446259","modified":"20210225164757468","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/semantic/bglowtone-colors":{"title":"$:/plugins/kookma/shiraz/styles/semantic/bglowtone-colors","text":"/* Colors taked from [1] https://www.bg-w3schools.bg-com/colors/colors_names.bg-asp \n[2] http://www.bg-workwithcolor.bg-com/color-chart-full-01.bg-htm*/\n/*Low tone background colors*/\n.bg-mistyrose{background-color:#ffe4e1;}\n.bg-lemonchiffon{background-color:#fffacd;}\n.bg-lavenderblush{background-color:#fff0f5;}\n.bg-lavender{background-color:#e6e6fa;}\n.bg-honeydew{background-color:#f0fff0;}\n.bg-lightcyan{background-color:#e0ffff;}\n.bg-aliceblue{background-color:#f0f8ff;}\n.bg-cornsilk{background-color:#fff8dc;}\n.bg-gainsboro{background-color:#dcdcdc;}\n.bg-bisque{background-color:#ffe4c4;}\n.bg-snow{background-color:#fffafa;}","created":"20181029071532524","list":"mistyrose lemonchiffon lavenderblush lavender honeydew lightcyan aliceblue cornsilk gainsboro bisque snow","modified":"20210225164757477","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/sticky-footer":{"title":"$:/plugins/kookma/shiraz/styles/sticky-footer","text":".sticky-footer {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n padding: 0.5rem;\n background-color: #efefef;\n text-align: center;\n margin-top: 5px;\n box-sizing: border-box;\n width: 100%;\n}\n","created":"20180907070611557","modified":"20210225164757489","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/tables":{"title":"$:/plugins/kookma/shiraz/styles/tables","text":".table-tight{\n\tfont-size:0.8em;\n}\n\n\n/*\nThis tiddler defines the custom stylesheet for tables \nApril 13, 2018\n*/\n\n/*center aligned table*/\n.table-center {\n margin:0 auto;\n}\n\n/* Table caption at top */\n.table-caption-top caption {\n caption-side:top;\n margin-bottom:0.2rem;\n}\n\n/* Striped row table */\n.table-striped-row tr:nth-child(even) td{\n background-color:#F3F6F6; \n}\n\n/* Striped column table */\n.table-striped-col tbody tr td:nth-child(odd) {\n\tbackground-color: #F3F6F6;\n}\n\n/*Borderless table*/\n.table-borderless, \n.table-borderless thead td, \n.table-borderless th, \n.table-borderless tr, \n.table-borderless td{\n border:0;\n}\n\n/* Table lines should be used with table-borderless for abbreviations and two column layout */\n\n.table-lines thead td, .table-lines th{\n border-bottom: 2px solid #dddddd;\n\t background-color:unset;\n }\n.table-lines td{\n border-bottom: 1px solid #dddddd;\n background-color:unset;\n }\n\n/* Table hover (yellow background on mouse over) */\n.table-hover tbody tr:hover{\n color: #212529;\n background-color: #e6e6e6;\n}\n.table-hover-yellow tbody tr:hover{background-color: #ffffcc;}\n.table-hover-cyan tbody tr:hover{background-color: #e6ffff;}\n\n/* Table with colored header */\n.thead-primary thead td, .thead-primary th{background-color: #007bff; color: #fff;}\n.thead-secondary thead td, .thead-secondary th{background-color: #6c757d; color: #fff;}\n.thead-success thead td, .thead-success th{background-color: #28a745; color: #fff;}\n.thead-warning thead td, .thead-warning th{background-color: #ffc107; color: #fff;}\n.thead-danger thead td, .thead-danger th{background-color: #dc3545; color: #fff;}\n.thead-info thead td, .thead-info th{background-color: #17a2b8; color: #fff;}\n.thead-dark thead td, .thead-dark th{background-color: #343a40; color: #fff;}\n.thead-light thead td, .thead-light th{background-color: #f8f9fa; color: #212529;}\n\n/* Table with colored header correct to fill svgs with white color */\n.thead-primary > thead> tr > td svg, .thead-primary > thead> tr > th svg,\n.thead-secondary > thead> tr > td svg, .thead-secondary > thead> tr > th svg,\n.thead-success > thead> tr > td svg, .thead-success > thead> tr > th svg,\n.thead-warning > thead> tr > td svg, .thead-warning > thead> tr > th svg,\n.thead-danger > thead> tr > td svg, .thead-danger > thead> tr > th svg,\n.thead-info > thead> tr > td svg, .thead-info > thead> tr > th svg,\n.thead-dark > thead> tr > td svg, .thead-dark > thead> tr > th svg\n {fill:#ffffff; padding:0 0 3px 0; }\n\n\n.thead-primary th .tc-tiddlylink, .thead-primary th a,\n.thead-secondary th .tc-tiddlylink, .thead-primary th a,\n.thead-success th .tc-tiddlylink, .thead-primary th a,\n.thead-warning th .tc-tiddlylink, .thead-primary th a,\n.thead-danger th .tc-tiddlylink, .thead-primary th a,\n.thead-info th .tc-tiddlylink, .thead-primary th a,\n.thead-dark th .tc-tiddlylink, .thead-primary th a{color:#ffffff}\n","created":"20180413092232257","modified":"20210225164757501","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/styles/tiddler-title-class":{"title":"$:/plugins/kookma/shiraz/styles/tiddler-title-class","text":".title-primary .tc-title {\n color: #007bff;\n}\n.title-secondary .tc-title {\n color: #6c757d;\n}\n.title-success .tc-title {\n color: #28a745;\n}\n.title-info .tc-title {\n color: #17a2b8;\n}\n.title-warning .tc-title {\n color: #ffc107;\n}\n.title-danger .tc-title {\n color: #dc3545;\n}\n.title-light .tc-title {\n color: #f8f9fa;\n}\n.title-dark .tc-title {\n color: #343a40;\n}\n.title-white .tc-title {\n color: #fff;\n}","created":"20191101112257846","modified":"20210225164757509","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/shiraz/templates/body/color":{"title":"$:/plugins/kookma/shiraz/templates/body/color","created":"20200210160016959","modified":"20210225164757519","tags":"$:/tags/Table/BodyTemplate","tbl-column-list":"color","type":"text/vnd.tiddlywiki","text":"\\define showCell()\n<style>\n.dt:not(:disabled):dt(.disabled) {cursor: pointer;}\na.dt.disabled,fieldset:disabled a.dt {pointer-events: none;}\n</style>\n<$link overrideClass=\"dt disabled\" to=\"\">\n<$edit-text tag=input type=color tiddler=<<currentRecord>> field=color/>\n</$link>\n\\end\n\n\\define edit_color() <$edit-text tag=input type=color tiddler=<<currentRecord>> field=<<currentColumn>>/>\n<$reveal type=\"nomatch\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<<showCell>>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<!--check if the current column is not selected for sorting-->\n<$list filter=\"[<tempTableSort>getindex[sortIndex]match<currentColumn>]\" variable=ignore\nemptyMessage=<<edit_color>> >\n <<showCell_Locked>>\n</$list>\n</$reveal>"},"$:/plugins/kookma/shiraz/templates/body/date":{"title":"$:/plugins/kookma/shiraz/templates/body/date","created":"20170128100657312","modified":"20210225164757527","tags":"$:/tags/Table/BodyTemplate","tbl-column-list":"created modified","type":"text/vnd.tiddlywiki","text":"<td>\n<$view tiddler=<<currentRecord>> field=<<currentColumn>> format=\"date\" template=\"YYYY.0MM.0DD\"/>\n</td>"},"$:/plugins/kookma/shiraz/templates/body/default":{"title":"$:/plugins/kookma/shiraz/templates/body/default","created":"20191125202328213","modified":"20210225164757539","tags":"$:/tags/Table/BodyTemplate","type":"text/vnd.tiddlywiki","text":"<$reveal type=\"nomatch\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<<showCell>>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<!--check if the current column is not selected for sorting-->\n<$list filter=\"[<tempTableSort>getindex[sortIndex]match<currentColumn>]\" variable=ignore\nemptyMessage=<<editCell>> >\n <<showCell_Locked>>\n</$list>\n</$reveal>"},"$:/plugins/kookma/shiraz/templates/body/due-date":{"title":"$:/plugins/kookma/shiraz/templates/body/due-date","created":"20200206191120454","modified":"20210225164757551","tags":"$:/tags/Table/BodyTemplate","tbl-column-list":"due-date","type":"text/vnd.tiddlywiki","text":"\\define showCell() <$transclude tiddler=<<currentRecord>> field=<<currentColumn>> mode=\"inline\" />\n\\define showCell_Locked() <span style=\"font-style:oblique;\"><<showCell>></span>\n\\define edit_date() <$edit-text tag=input type=date tiddler=<<currentRecord>> field=<<currentColumn>>/>\n<$reveal type=\"nomatch\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<<showCell>>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<!--check if the current column is not selected for sorting-->\n<$list filter=\"[<tempTableSort>getindex[sortIndex]match<currentColumn>]\" variable=ignore\nemptyMessage=<<edit_date>> >\n <<showCell_Locked>>\n</$list>\n</$reveal>\n\n<!-- Part of Task Manager\n this template ALWAYS works on fields -->"},"$:/plugins/kookma/shiraz/templates/body/email":{"title":"$:/plugins/kookma/shiraz/templates/body/email","created":"20191202210913762","modified":"20210225164757559","tags":"$:/tags/Table/BodyTemplate","tbl-column-list":"email","type":"text/vnd.tiddlywiki","text":"\\define display-email-address()\n<a class=\"tc-tiddlylink-external\" href=\"mailto:$(currentRecord)$!!$(currentColumn)$\" rel=\"noopener noreferrer\" target=\"_blank\">\n<<showCell>>\n</a>\n\\end\n\\define display-email-address_Locked()\n<a class=\"tc-tiddlylink-external\" href=\"mailto:$(currentRecord)$!!$(currentColumn)$\" rel=\"noopener noreferrer\" target=\"_blank\">\n<<showCell_Locked>>\n</a>\n\\end\n\n<$reveal type=\"nomatch\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<<display-email-address>>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<!--check if the current column is not selected for sorting-->\n<$list filter=\"[<tempTableSort>getindex[sortIndex]match<currentColumn>]\" variable=ignore\nemptyMessage=<<editCell>> >\n<<display-email-address_Locked>>\n</$list>\n</$reveal>\n\n"},"$:/plugins/kookma/shiraz/templates/body/priority":{"title":"$:/plugins/kookma/shiraz/templates/body/priority","created":"20200424102701026","modified":"20210225164757572","tags":"$:/tags/Table/BodyTemplate","tbl-column-list":"priority","type":"text/vnd.tiddlywiki","text":"\\define circle(color, fill)\n<svg width=\"12\" height=\"12\" >\n<circle cx=\"6\" cy=\"6\" r=\"5\" stroke=<<__color__>> fill=<<__fill__>> stroke-width=\"1\"/>\n</svg>\n\\end\n\n\\define showCell()\n<$list filter=\"[<currentRecord>get<currentColumn>match[very high]]\" variable=ignore>\n<$macrocall $name=\"circle\" color=\"#dc3545\" fill=\"#f8d7da\"/>\n</$list>\n<$list filter=\"[<currentRecord>get<currentColumn>match[high]]\" variable=ignore>\n<$macrocall $name=\"circle\" color=\"#ff8c00\" fill=\"#fff3cd\"/>\n</$list>\n<$list filter=\"[<currentRecord>get<currentColumn>match[normal]]\" variable=ignore>\n<$macrocall $name=\"circle\" color=\"#17a2b8\" fill=\"#d1ecf1\"/>\n</$list>\n<$list filter=\"[<currentRecord>get<currentColumn>match[low]]\" variable=ignore>\n<$macrocall $name=\"circle\" color=\"#007bff\" fill=\"#cce5ff\"/>\n</$list>\n<$list filter=\"[<currentRecord>get<currentColumn>match[very low]]\" variable=ignore>\n<$macrocall $name=\"circle\" color=\"#6c757d\" fill=\"#e2e3e5\"/>\n</$list>\n <$transclude tiddler=<<currentRecord>> field=<<currentColumn>> />\n\\end\n\n\\define showCell_Locked() <span style=\"font-style:oblique;\"><<showCell>></span>\n\n\\define select_priority()\n<$select tiddler=<<currentRecord>> field=<<currentColumn>> default=\"\"><option value=''>Select...</option><option value='very high'>very high</option><option value='high'>high</option><option value='normal'>normal</option><option value='low'>low</option><option value='very low'>very low</option><option value=''>no priority</option></$select>\n\\end\n\n\n<$reveal type=\"nomatch\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<<showCell>>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<!--check if the current column is not selected for sorting-->\n<$list filter=\"[<tempTableSort>getindex[sortIndex]match<currentColumn>]\" variable=ignore\nemptyMessage=<<select_priority>> >\n <<showCell_Locked>>\n</$list>\n<$reveal>\n\n<!-- Part of Task Manager\n this template ALWAYS works on fields\n -->"},"$:/plugins/kookma/shiraz/templates/body/status":{"title":"$:/plugins/kookma/shiraz/templates/body/status","created":"20200424100127763","modified":"20210225164757583","tags":"$:/tags/Table/BodyTemplate","tbl-column-list":"status","type":"text/vnd.tiddlywiki","text":"\\define showCell() <$transclude tiddler=<<currentRecord>> field=<<currentColumn>> mode=\"inline\" />\n\\define showCell_Locked() <span style=\"font-style:oblique;\"><<showCell>></span>\n\\define select_status()\n<$select tiddler=<<currentRecord>> field=<<currentColumn>> default=\"\"><option value=''>Select...</option><option value='open'>open</option><option value='not started'>not started</option><option value='in-work'>in-work</option><option value='on-hold'>on-hold</option><option value='complete'>complete</option><option value='rework'>rework</option><option value='closed'>closed</option></$select>\n\\end\n\n<$reveal type=\"nomatch\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<<showCell>>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<!--check if the current column is not selected for sorting-->\n<$list filter=\"[<tempTableSort>getindex[sortIndex]match<currentColumn>]\" variable=ignore\nemptyMessage=<<select_status>> >\n <<showCell_Locked>>\n</$list>\n</$reveal>\n\n<!-- Part of Task Manager\n this template ALWAYS works on fields -->"},"$:/plugins/kookma/shiraz/templates/body/tags":{"title":"$:/plugins/kookma/shiraz/templates/body/tags","created":"20191125193831767","modified":"20210225164757590","tags":"$:/tags/Table/BodyTemplate","tbl-column-list":"tags","type":"text/vnd.tiddlywiki","text":"<$reveal type=\"nomatch\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<$list filter=\"[title<currentRecord>tags[]]\">\n<span class=\"tc-tag-list-item\" >\n<$set name=\"transclusion\" value=<<currentTiddler>>>\n<$macrocall $name=\"tag-pill-body\" tag=<<currentTiddler>> icon={{!!icon}} colour={{!!color}} palette={{$:/palette}} element-tag=\"\"\"$button\"\"\" element-attributes=\"\"\"popup=<<tempTagPopup>> dragFilter='[all[current]tagging[]]' tag='span'\"\"\"/>\n<$reveal state=<<tempTagPopup>> style=\"position:absolute; z-index:9999;\" type=\"popup\" position=\"below\" animate=\"yes\" class=\"tc-drop-down\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$transclude tiddler=\"$:/core/ui/ListItemTemplate\"/>\n</$set>\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]\" variable=\"listItem\"> \n<$transclude tiddler=<<listItem>>/> \n</$list>\n<hr>\n<$macrocall $name=\"list-tagged-draggable\" tag=<<currentTiddler>>/>\n</$reveal>\n</$set>\n</span>\n</$list>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<!--check if the current column is not selected for sorting-->\n<$list filter=\"[<tempTableSort>getindex[sortIndex]match<currentColumn>]\" variable=ignore\nemptyMessage=<<editCell>> >\n <<showCell_Locked>>\n</$list>\n</$reveal>"},"$:/plugins/kookma/shiraz/templates/body/tbl-checkbox":{"title":"$:/plugins/kookma/shiraz/templates/body/tbl-checkbox","created":"20200206150644636","modified":"20210225164757600","tags":"$:/tags/Table/BodyTemplate","tbl-column-list":"tbl-checkbox","type":"text/vnd.tiddlywiki","text":"<td style=\"width:28px;text-align:center;\">\n<$checkbox tiddler=<<currentRecord>> tag=\"done\"\ncheckactions=\"\"\"<$action-setfield $tiddler=<<tempTableStyle>> $index=<<currentRecord>> $value=\"color:#155724;background-color:#d4edda;\" /><$action-setfield $tiddler=<<currentRecord>> status=\"complete\"/>\"\"\"\nuncheckactions=\"\"\"<$action-setfield $tiddler=<<tempTableStyle>> $index=<<currentRecord>> /><$action-setfield $tiddler=<<currentRecord>> status=\"rework\"/>\"\"\" />\n</td>"},"$:/plugins/kookma/shiraz/templates/body/tbl-clone":{"title":"$:/plugins/kookma/shiraz/templates/body/tbl-clone","created":"20201203153613838","modified":"20210225164757608","tags":"$:/tags/Table/BodyTemplate","tbl-column-list":"tbl-clone","type":"text/vnd.tiddlywiki","text":"\\define cloneTiddler() <$action-createtiddler $basetitle=<<currentRecord>> $template=<<currentRecord>> />\n\n<$list filter=\"[<tempTableEdit>getindex[mode]match[edit]]\" variable=ignore>\n<td style=\"width:28px;text-align:center;\">\n <$button actions=<<cloneTiddler>> class=\"tc-btn-invisible\">\n\t {{$:/core/images/clone-button}}\n\t</$button>\n</td>\n</$list>"},"$:/plugins/kookma/shiraz/templates/body/tbl-delete":{"title":"$:/plugins/kookma/shiraz/templates/body/tbl-delete","created":"20170212101814663","modified":"20210225164757618","tags":"$:/tags/Table/BodyTemplate","tbl-column-list":"tbl-delete","type":"text/vnd.tiddlywiki","text":"<$list filter=\"[<tempTableEdit>getindex[mode]match[edit]]\" variable=ignore>\n<td style=\"width:28px;text-align:center;\">\n <$button class=\"tc-btn-invisible\">\n <$action-sendmessage $message=\"tm-delete-tiddler\" $param=<<currentRecord>>/>\n {{$:/core/images/delete-button}}\n </$button>\n</td>\n</$list>"},"$:/plugins/kookma/shiraz/templates/body/tbl-expand":{"title":"$:/plugins/kookma/shiraz/templates/body/tbl-expand","created":"20200209072642825","modified":"20210225164757625","tags":"$:/tags/Table/BodyTemplate","tbl-column-list":"tbl-expand","type":"text/vnd.tiddlywiki","text":"<$reveal type=\"nomatch\" state=<<tempPathExpand>> text=\"show\" tag=\"td\">\n <$button class=\"tc-btn-invisible tc-tiddlylink\">\n <$action-setfield $tiddler=<<tempTableExpand>> $index=<<currentRecord>> $value=\"show\" />\n {{$:/core/images/right-arrow}}\n </$button>\n</$reveal>\n<$reveal type=\"match\" state=<<tempPathExpand>> text=\"show\" tag=\"td\">\n <$button class=\"tc-btn-invisible tc-tiddlylink\">\n <$action-setfield $tiddler=<<tempTableExpand>> $index=<<currentRecord>>/>\n {{$:/core/images/down-arrow}}\n </$button>\n</$reveal>"},"$:/plugins/kookma/shiraz/templates/body/title":{"title":"$:/plugins/kookma/shiraz/templates/body/title","created":"20170128100357203","modified":"20210225164757640","tags":"$:/tags/Table/BodyTemplate","tbl-column-list":"title","type":"text/vnd.tiddlywiki","text":"<td>\n<$link to=<<currentRecord>>><$text text=<<currentRecord>> /></$link>\n</td>"},"$:/plugins/kookma/shiraz/templates/body/type":{"title":"$:/plugins/kookma/shiraz/templates/body/type","created":"20200210063953546","modified":"20210225164757651","tags":"$:/tags/Table/BodyTemplate","tbl-column-list":"type","type":"text/vnd.tiddlywiki","text":"\\define showCell() <$transclude tiddler=<<currentRecord>> field=<<currentColumn>> mode=\"inline\" />\n<td>\n<<showCell>>\n</td>\n<!-- Note that the showCell here overrides the global showCell from table-dynamic macro -->"},"$:/plugins/kookma/shiraz/templates/footer/default":{"title":"$:/plugins/kookma/shiraz/templates/footer/default","created":"20200130171717175","modified":"20210225164757657","tags":"$:/tags/Table/FooterTemplate","type":"text/vnd.tiddlywiki","text":"<$vars idx={{{ [<currentColumn>addsuffix[/]addsuffix<footerRow>] }}}>\n<$set name=getFieldOrIndex filter=\"[<fieldOrIndex>]-index\" value=\"get\" emptyValue=\"getindex\">\n<$reveal type=\"nomatch\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<$transclude tiddler=<<tempTableFooter>> index=<<idx>> mode=\"inline\" />\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<tempTableEdit>> stateIndex=\"mode\" text=\"edit\" tag=\"td\">\n<$edit-text tiddler=<<tempTableFooter>> index=<<idx>> tag=\"input\" class=\"shiraz-dtable-textbox\"/>\n</$reveal>\n</$set>\n</$vars>"},"$:/plugins/kookma/shiraz/templates/footer/tbl-clone":{"title":"$:/plugins/kookma/shiraz/templates/footer/tbl-clone","created":"20201203155343568","modified":"20210225164757669","tags":"$:/tags/Table/FooterTemplate","tbl-column-list":"tbl-clone","type":"text/vnd.tiddlywiki","text":"<$list filter=\"[<tempTableEdit>getindex[mode]match[edit]]\" variable=ignore>\n<td></td>\n</$list>"},"$:/plugins/kookma/shiraz/templates/footer/tbl-delete":{"title":"$:/plugins/kookma/shiraz/templates/footer/tbl-delete","created":"20200130174835714","modified":"20210225164757676","tags":"$:/tags/Table/FooterTemplate","tbl-column-list":"tbl-delete","type":"text/vnd.tiddlywiki","text":"<$list filter=\"[<tempTableEdit>getindex[mode]match[edit]]\" variable=ignore>\n<td></td>\n</$list>"},"$:/plugins/kookma/shiraz/templates/footer/tbl-expand":{"title":"$:/plugins/kookma/shiraz/templates/footer/tbl-expand","created":"20200130173518861","modified":"20210225164757687","tags":"$:/tags/Table/FooterTemplate","tbl-column-list":"tbl-expand","type":"text/vnd.tiddlywiki","text":"<td style=\"width:28px;\"></td>"},"$:/plugins/kookma/shiraz/templates/header/default":{"title":"$:/plugins/kookma/shiraz/templates/header/default","created":"20170205223914688","modified":"20210225164757695","tags":"$:/tags/Table/HeaderTemplate","type":"text/vnd.tiddlywiki","text":"<$reveal type=\"nomatch\" stateTitle=<<tempTableSort>> stateIndex=\"sortIndex\" text=<<currentColumn>> tag=\"th\">\n<$button setTitle=<<tempTableSort>> setIndex=\"sortIndex\" setTo=<<currentColumn>> class=\"tc-btn-invisible tc-tiddlylink\" >\n<$action-setfield $tiddler=<<tempTableSort>> $index=\"hasnegate\" $value=\"false\"/>\n<$action-setfield $tiddler=<<tempTableSort>> $index=\"negate\" $value=\"\"/>\n<span style=\"text-transform: capitalize;\"><<currentColumn>></span>\n</$button>\n</$reveal>\n<$reveal type=\"match\" stateTitle=<<tempTableSort>> stateIndex=\"sortIndex\" text=<<currentColumn>> tag=\"th\">\n<$list filter=\"[<tempTableSort>getindex[hasnegate]match[false]]\" variable=ignore><!--set negate for sort-->\n<$button setTitle=<<tempTableSort>> setIndex=\"hasnegate\" setTo=\"true\" class=\"tbl-sort-svg tc-btn-invisible tc-tiddlylink\" >\n<$action-setfield $tiddler=<<tempTableSort>> $index=\"negate\" $value=\"!\"/>\n<span style=\"text-transform: capitalize;\"><<currentColumn>></span> {{$:/core/images/down-arrow}}\n</$button>\n</$list>\n<$list filter=\"[<tempTableSort>getindex[hasnegate]match[true]]\" variable=ignore><!--remove negate for sort-->\n<$button setTitle=<<tempTableSort>> setIndex=\"hasnegate\" setTo=\"false\" class=\"tbl-sort-svg tc-btn-invisible tc-tiddlylink\" >\n<$action-setfield $tiddler=<<tempTableSort>> $index=\"negate\" $value=\"\"/>\n<span style=\"text-transform: capitalize;\"><<currentColumn>></span> {{$:/core/images/up-arrow}}\n</$button>\n</$list>\n</$reveal>\n"},"$:/plugins/kookma/shiraz/templates/header/tbl-checkbox":{"title":"$:/plugins/kookma/shiraz/templates/header/tbl-checkbox","created":"20200206151157578","modified":"20210225164757704","tags":"$:/tags/Table/HeaderTemplate","tbl-column-list":"tbl-checkbox","type":"text/vnd.tiddlywiki","text":"\\define chk-checkactions()\n<$list filter=\"[subfilter<inputFilter>]\" variable=\"currentRecord\">\n<$action-listops $tiddler=<<currentRecord>> $tags=\"+[append[done]]\" />\n<$action-setfield $tiddler=<<currentRecord>> status=\"complete\"/>\n<$action-setfield $tiddler=<<tempTableStyle>> $index=<<currentRecord>> $value=\"color:#155724;background-color:#d4edda;\" />\n</$list>\n\\end\n\\define chk-uncheckactions()\n<$list filter=\"[subfilter<inputFilter>]\" variable=\"currentRecord\">\n<$action-listops $tiddler=<<currentRecord>> $tags=\"+[remove[done]]\" />\n<$action-setfield $tiddler=<<currentRecord>> status=\"rework\"/>\n<$action-setfield $tiddler=<<tempTableStyle>> $index=<<currentRecord>> />\n</$list>\n\\end\n\n<th style=\"width:28px;\">\n<$checkbox checkactions=<<chk-checkactions>> uncheckactions=<<chk-uncheckactions>> />\n</th>"},"$:/plugins/kookma/shiraz/templates/header/tbl-clone":{"title":"$:/plugins/kookma/shiraz/templates/header/tbl-clone","created":"20201203155440168","modified":"20210304180419476","tags":"$:/tags/Table/HeaderTemplate","tbl-column-list":"tbl-clone","type":"text/vnd.tiddlywiki","text":"<$list filter=\"[<tempTableEdit>getindex[mode]match[edit]]\" variable=ignore>\n<th style=\"width:28px;text-align:center;\">\n<span>\n<$button class=\"tc-btn-invisible\" disabled=yes tooltip=\"disabled button\" style=\"cursor:default\">\n{{$:/core/images/clone-button}}\n</$button>\n</span>\n</th>\n</$list>"},"$:/plugins/kookma/shiraz/templates/header/tbl-delete":{"title":"$:/plugins/kookma/shiraz/templates/header/tbl-delete","created":"20170212102107998","modified":"20210225164757724","tags":"$:/tags/Table/HeaderTemplate","tbl-column-list":"tbl-delete","type":"text/vnd.tiddlywiki","text":"<$list filter=\"[<tempTableEdit>getindex[mode]match[edit]]\" variable=ignore>\n<th style=\"width:28px;text-align:center;\">\n <span>\n <$button class=\"tc-btn-invisible\">\n <$action-setfield $tiddler=\"$:/temp/tables/delete-all\" text=<<currentTable>>/>\n {{$:/core/images/delete-button}}\n </$button>\n </span>\n</th>\n</$list>"},"$:/plugins/kookma/shiraz/templates/header/tbl-expand":{"title":"$:/plugins/kookma/shiraz/templates/header/tbl-expand","created":"20200209072944418","modified":"20210225164757735","tags":"$:/tags/Table/HeaderTemplate","tbl-column-list":"tbl-expand","type":"text/vnd.tiddlywiki","text":"<th style=\"width:28px;\">\n <$list filter=\"[<tempTableExpand>indexes[]limit[1]]\">\n <$button class=\"tc-btn-invisible\">{{$:/core/images/fold-button}}\n <$action-setfield $tiddler=<<tempTableExpand>> text=\"\"/>\n </$button>\n </$list>\n</th>"},"$:/plugins/kookma/shiraz/ui/ControlPanel/Settings":{"title":"$:/plugins/kookma/shiraz/ui/ControlPanel/Settings","caption":"Shiraz","created":"20191018054657077","list-after":"$:/core/ui/ControlPanel/Settings/TiddlyWiki","modified":"20210225164757743","tags":"$:/tags/ControlPanel/SettingsTab $:/tags/MoreSideBar","type":"text/vnd.tiddlywiki","text":"These settings let you customise the behaviour of Shiraz plugin.\n\n---\n\n;Show Shiraz setting in more sidebar\n:<$checkbox tiddler=\"$:/plugins/kookma/shiraz/ui/ControlPanel/Settings\" tag=\"$:/tags/MoreSideBar\"> Show setting in more sidebar</$checkbox>\n\n;Options\n:<$checkbox tiddler=\"$:/plugins/kookma/shiraz/styles/multicols/storyriver\" tag=\"$:/tags/Stylesheet\"> Multicolumn story river</$checkbox>\n:<$checkbox tiddler=\"$:/plugins/kookma/shiraz/styles/misc/ui-buttons\" tag=\"$:/tags/Stylesheet\"> Colorful UI buttons</$checkbox>\n:<$checkbox tiddler=\"$:/plugins/kookma/shiraz/styles/misc/tiddler-button-visibility\" tag=\"$:/tags/Stylesheet\"> Tiddler visibility on mouse hover</$checkbox>\n:<$checkbox tiddler=\"$:/plugins/kookma/shiraz/styles/misc/edit-buttons\" tag=\"$:/tags/Stylesheet\"> Traffic lights for edit toolbar buttons</$checkbox>\n:<$checkbox tiddler=\"$:/plugins/kookma/shiraz/styles/colorful-sidebar-tab\" tag=\"$:/tags/Stylesheet\"> Colorify sidebar tabs</$checkbox>\n\n\n\n\n"},"$:/plugins/kookma/shiraz/viewtemplates/sticky-footer":{"title":"$:/plugins/kookma/shiraz/viewtemplates/sticky-footer","created":"20180907071314793","modified":"20210225164757753","tags":"$:/tags/ViewTemplate","type":"text/vnd.tiddlywiki","text":"<$list filter=\"[all[current]has[sticky-footer]]\">\n<div class=\"sticky-footer\">\n{{!!sticky-footer}}\n</div>\n</$list>\n"}}}+
.tc-sidebar-lists .tc-tab-buttons button.tc-tab-selected { + background: none; + border: none; + border-bottom: solid 1px #737373 !important; + font-weight: bold; + color: #DB4C3F !important; +}+
/* Mouseover toolbar visibility: courtesy from Tobias Beer*/ +.tc-tiddler-frame .tc-titlebar button { + opacity: 0; + transition: opacity .5s ease-in-out; +} +.tc-tiddler-frame:hover .tc-titlebar button { + zoom: 1; + filter: alpha(opacity=100); + opacity: 1; +} ++
/* These css rules makes TW UI buttons in beatiful color */ + +/*page control buttons*/ +.tc-page-controls .tc-image-new-button { fill: #5EB95E; } /*New tiddler button*/ +.tc-page-controls .tc-image-options-button { fill:#8058A5; } /*Open control pannel*/ + +/*tiddler buttons in beautiful color*/ +.tc-tiddler-controls .tc-image-edit-button { fill:#F37B1D; }/*edit tiddler*/ +.tc-tiddler-controls .tc-image-info-button { fill: #0e90d2; } /*Info button*/ ++
\define selectedFields() title caption tags keywords responder +\define searchInField(field, for, ci) +<$list filter="[!is[shadow]!is[system]regexp:$field$[$for$$ci$]limit[1]]"> +<dt>$field$</dt> +</$list> + +<$list filter="[!is[shadow]!is[system]regexp:$field$[$for$$ci$]]"> +<dd><$link><$view field="title"/></$link></dd> +</$list> +\end + +<style>.tc-advanced-search-check input {width:auto !important;}</style> + +Search in fields... <span class="tc-advanced-search-check"><$checkbox field="case-insensitive" tiddler="$:/temp/infieldsearch" checked="(?i)"> case insensitive</$checkbox></span> + +<div class="tc-search"> +<$edit-text tiddler="$:/temp/infieldsearch" type="search" tag="input" placeholder="search terms" default=""/> <$select field="field" tiddler="$:/temp/infieldsearch" default="*"> +<optgroup label='Selected'> +<$list filter=<<selectedFields>> variable="field"> +<option value=<<field>>><<field>></option> +</$list> +</optgroup> +<optgroup label='Other'> +<option value="">*any</option> +<$list filter="[!is[shadow]!is[system]fields[]sort[]] -[enlist<selectedFields>]" variable="field"> +<option value=<<field>>><<field>></option> +</$list> +</optgroup> +</$select> +<$reveal state="$:/temp/infieldsearch" type="nomatch" text=""> +<$button class="tc-btn-invisible"> +<$action-setfield $tiddler="$:/temp/infieldsearch" $field="text" $value=""/> +{{$:/core/images/close-button}} +</$button> +</$reveal> +</div> + +<$reveal state="$:/temp/infieldsearch" type="nomatch" text=""> +<$reveal state="$:/temp/infieldsearch!!field" type="match" text=""> +<dl> +<$list filter="[!is[shadow]!is[system]fields[]]" variable="field"> + +<$reveal type=nomatch text=text default=<<field>>> +<$macrocall $name="searchInField" field=<<field>> for={{$:/temp/infieldsearch}} ci={{$:/temp/infieldsearch!!case-insensitive}}/> +</$reveal> +</$list> +</dl> +</$reveal> +<$reveal state="$:/temp/infieldsearch!!field" type="nomatch" text=""> + +<dl> +<$macrocall $name="searchInField" field={{$:/temp/infieldsearch!!field}} for={{$:/temp/infieldsearch}} ci={{$:/temp/infieldsearch!!case-insensitive}}/> +</dl> +</$reveal> +</$reveal>+
/* these styles are used to customize the TOC tree and ui */ +/* toc tree lists */ +.kk-toc ol { + list-style-type: none; + padding-left:0; +} +.kk-toc ol ol{ + list-style-type: none; + padding-left:1em; +} + +/* bold first level entry and normal weight for other levels */ +.kk-toc li .tc-tiddlylink{font-weight: bold;} +.kk-toc ol ol .tc-tiddlylink{font-weight:normal;} + + +.kk-toc-item { text-align:left; white-space:nowrap; } /* prevent wrapping long entries*/ +.kk-toc-item img { height:1em; width:1em; } +.kk-toc-item svg { height:1em; width:1em;} + +/* More tools button fade-in */ +.kk-toc-item .kk-toc-tools { opacity:0.0; } +.kk-toc-item:hover .kk-toc-tools { opacity:0.5; } +.kk-toc-item:hover .kk-toc-tools:hover { opacity:1.0; } + +/* bookmark button fade-in*/ +.kk-toc-item .kk-bookmark { opacity:0.0; } +.kk-toc-item:hover .kk-bookmark { opacity:0.5; } +.kk-toc-item:hover .kk-bookmark:hover { opacity:1.0; } +.kk-toc-item .kk-bookmark.show { opacity:1.0 !important; } + +/* drag and drop elements */ +.kk-toc-placeholder{ position:relative; border:0 !important; border-bottom:1px dotted blue !important; } +.kk-toc-dragtip { + position:absolute; z-index:1; right:0.5em; top:0.5em; padding:0.25em 0.5em; + border:1px solid lightgray; box-shadow: 0.3em 0.3em 0.5em rgba(0,0,0,0.3); + background:white; text-align:center; font-size:80%; line-height:100%; +} + + +/* set color of links when toc is used in a sidebar tab*/ +.tc-sidebar-lists .kk-toc-item .tc-tiddlylink{color:#999999} +.tc-sidebar-lists .kk-toc-item svg { height:1em; width:1em; fill: #acacac;} + +/* item when are visited NOT in sidebar*/ +/*.kk-toc li .tc-tiddlylink{color:black;} selected or clicked item */ +.kk-toc-opened-item{ + padding:0; + padding-left:5px; + border-radius: unset; + border-left-width:2px; + border-left-style:solid;} + +/* ui buttons on sidebar */ +.kk-toc button {outline:none;} +.kk-toc-btn {outline:none;} +.tc-sidebar-lists .kk-toc-btn svg { fill: #acacac;} +.tc-sidebar-lists .kk-toc-btn { color: #acacac;} + + + + +/* manager buttons */ +.kk-toc-tools-manager { opacity:0.5; } +.kk-toc-tools-manager:hover { opacity:1.0; }+
{"tiddlers":{"$:/plugins/kookma/utility/author/author-tools":{"title":"$:/plugins/kookma/utility/author/author-tools","created":"20190912082519234","key":"((author-tools))","modified":"20200316130508400","tags":"$:/tags/KeyboardShortcut","type":"text/vnd.tiddlywiki","text":"<$action-sendmessage $message=\"tm-modal\" $param=\"$:/plugins/kookma/utility/author/modal\" />"},"$:/plugins/kookma/utility/author/exclude-items":{"title":"$:/plugins/kookma/utility/author/exclude-items","caption":"Exclude items","created":"20200313124437263","modified":"20200322115519909","tags":"","type":"text/vnd.tiddlywiki","text":"\\define showItems(label, filter)\n<h2>$label$</h2>\n<$list filter=<<__filter__>> >\n<$checkbox tiddler=<<currentTiddler>> tag=\"excluded\"/> <$link to=<<currentTiddler>>><$text text=<<currentTiddler>>/></$link><br>\n</$list>\n\\end\n<!-- drag and drop -->\n<<showItems label:\"Disable drag and drop\" filter:\"[title[$:/config/DragAndDrop/Enable]]\">>\n<!-- side bar items -->\n<<showItems label:\"Sidebar tabs\" filter:\"[all[shadows+tiddlers]]+[tag[$:/tags/SideBar]]\">>\n<!-- viewtoolbar items -->\n<<showItems label:\"View toolbars\" filter:\"[all[shadows+tiddlers]prefix[$:/config/ViewToolbarButtons/Visibility]]\">>\n<!-- Page controls -->\n<<showItems label:\"Page controls\" filter:\"[all[shadows+tiddlers]prefix[$:/config/PageControlButtons/Visibility]]\">>\n<$list filter=\"\">"},"$:/plugins/kookma/utility/author/individual-items":{"title":"$:/plugins/kookma/utility/author/individual-items","caption":"Hide individual UI element","created":"20200313141533701","modified":"20200322130601872","tags":"","type":"text/vnd.tiddlywiki","text":"Select individual items to hide in reader mode.\n\n! Site options\n<$checkbox tiddler=\"$:/core/ui/SideBarSegments/site-title\" tag=\"$:/tags/SideBarSegment\"/> Show site title<br/>\n<$checkbox tiddler=\"$:/core/ui/SideBarSegments/site-subtitle\" tag=\"$:/tags/SideBarSegment\"/> Show site subtitle<br/>\n<$checkbox tiddler=\"$:/core/ui/SideBarSegments/page-controls\" tag=\"$:/tags/SideBarSegment\"/> Show page controls<br/>\n\n! Right sidebar elements\n<$checkbox tiddler=\"$:/core/ui/TopBar/menu\" tag=\"$:/tags/TopRightBar\"/> Show right sidebar toggle button<br/>\n<$checkbox tiddler=\"$:/core/ui/SideBarSegments/search\" tag=\"$:/tags/SideBarSegment\"/> Show search bar<br/>\n<$checkbox tiddler=\"$:/core/ui/SideBarSegments/tabs\" tag=\"$:/tags/SideBarSegment\"/> Show sidebar tabs<br/>\n<!-- reserved\n<$checkbox tiddler=\"$:/config/custom-segment\" tag=\"$:/tags/SideBarSegment\"/> Show custom menu -->\n\n! Sidebar tabs\n<$checkbox tiddler=\"$:/core/ui/SideBar/Open\" tag=\"$:/tags/SideBar\"/> Show Open tab<br/>\n<$checkbox tiddler=\"$:/core/ui/SideBar/Recent\" tag=\"$:/tags/SideBar\"/> Show Recent tab<br/>\n<$checkbox tiddler=\"$:/core/ui/SideBar/Tools\" tag=\"$:/tags/SideBar\"/> Show Tools tab<br/>\n<$checkbox tiddler=\"$:/core/ui/SideBar/More\" tag=\"$:/tags/SideBar\"/> Show More tab<br/>\n\n! Tiddler options\n<$checkbox tiddler=\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/edit\" field=text checked=show unchecked=hide default=show /> Show edit button in the tiddler toolbar<br/>\n<$checkbox tiddler=\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/close\" field=text checked=show unchecked=hide default=show /> Show close button in the tiddler toolbar<br/>\n<$checkbox tiddler=\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/more-tiddler-actions\" field=text checked=show unchecked=hide default=show /> Show more actions button in the tiddler toolbar\n\n! Other items\n<$checkbox tiddler=\"$:/config/DragAndDrop/Enable\" field=text checked=no unchecked=yes default=yes /> Disable page dropzone\n"},"$:/plugins/kookma/utility/author/modal":{"title":"$:/plugins/kookma/utility/author/modal","created":"20190912073245120","modified":"20200316124818329","tags":"","type":"text/vnd.tiddlywiki","text":"<<tabs tabsList:\"$:/plugins/kookma/utility/author/tools $:/plugins/kookma/utility/author/individual-items\" default:\"$:/plugins/kookma/utility/author/tools\">>"},"$:/plugins/kookma/utility/author/switch-author":{"title":"$:/plugins/kookma/utility/author/switch-author","created":"20200315203327216","key":"((switch-author))","modified":"20200316130423198","tags":"$:/tags/KeyboardShortcut","type":"text/vnd.tiddlywiki","text":"\\import $:/plugins/kookma/utility/author/tools\n\n<$reveal type=nomatch state=<<configTid>> text=\"\">\n<<unhide-elements>>\n</$reveal>\n<$reveal type=match state=<<configTid>> text=\"\" default=\"\">\n<<hide-elements>>\n</$reveal>"},"$:/plugins/kookma/utility/author/tools":{"title":"$:/plugins/kookma/utility/author/tools","caption":"Hide bulk of UI elements","created":"20200313111922410","modified":"20200322160845236","type":"text/vnd.tiddlywiki","text":"\\define configTid() $:/config/utility/author\n\\define add-remove-tag(msg:\"\", tag:\"\")\n<$fieldmangler><!--msg: tm-add-tag tm-remove-tag-->\n<$action-sendmessage $message=\"$msg$\" $param=\"$tag$\"/>\n</$fieldmangler>\n\\end\n\n\\define hide-elements()\n<!-- hide side bar items -->\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/SideBar]!tag[excluded]]\">\n<$action-setfield $tiddler=<<configTid>> $index=<<currentTiddler>> $value=\"$:/tags/SideBar\"/>\n<$macrocall $name=\"add-remove-tag\" msg=\"tm-remove-tag\" tag=\"$:/tags/SideBar\"/>\n</$list>\n<!-- hide view toolbars -->\n<$list filter=\"[all[shadows+tiddlers]prefix[$:/config/ViewToolbarButtons/Visibility]!tag[excluded]]\">\n<$reveal type=match stateTitle=<<currentTiddler>> stateField=\"text\" text=\"show\">\n<$action-setfield $tiddler=<<configTid>> $index=<<currentTiddler>> $value=\"show\"/>\n<$action-setfield $tiddler=<<currentTiddler>> $field=\"text\" $value=\"hide\"/>\n</$reveal>\n</$list>\n<!-- hide page controls -->\n<$list filter=\"[all[shadows+tiddlers]prefix[$:/config/PageControlButtons/Visibility]!tag[excluded]]\">\n<$reveal type=match stateTitle=<<currentTiddler>> stateField=\"text\" text=\"show\">\n<$action-setfield $tiddler=<<configTid>> $index=<<currentTiddler>> $value=\"show\"/>\n<$action-setfield $tiddler=<<currentTiddler>> $field=\"text\" $value=\"hide\"/>\n</$reveal>\n</$list>\n<!-- disable dropzone -->\n<$list filter=\"[[$:/config/DragAndDrop/Enable]!tag[excluded]]\" variable=ignore>\n<$action-setfield $tiddler=\"$:/config/DragAndDrop/Enable\" $field=\"text\" $value=\"no\"/>\n</$list>\n\\end\n\n\\define unhide-elements()\n<!-- Revert view toolbar and page controls -->\n<$list filter=\"[<configTid>indexes[]]\">\n<$reveal type=match stateTitle=<<configTid>> stateIndex=<<currentTiddler>> text=\"show\">\n<$action-setfield $tiddler=<<currentTiddler>> $field=\"text\" $value=\"show\"/>\n</$reveal>\n</$list>\n<!-- Revert sidebar tabs -->\n<$list filter=\"[<configTid>indexes[]]\">\n<$reveal type=match stateTitle=<<configTid>> stateIndex=<<currentTiddler>> text=\"$:/tags/SideBar\">\n<$macrocall $name=\"add-remove-tag\" msg=\"tm-add-tag\" tag=\"$:/tags/SideBar\"/>\n</$reveal>\n</$list>\n<!-- delete the configTid -->\n<$action-deletetiddler $tiddler=<<configTid>>/>\n<!-- enable dropzone -->\n<$list filter=\"[[$:/config/DragAndDrop/Enable]!tag[excluded]]\" variable=ignore>\n<$action-deletetiddler $tiddler=\"$:/config/DragAndDrop/Enable\"/>\n</$list>\n\\end\n\n<$reveal type=nomatch state=<<configTid>> text=\"\">\n<$button actions=<<unhide-elements>> tooltip=\"Unhide UI elements\">Author mode</$button>\n</$reveal>\n<$reveal type=match state=<<configTid>> text=\"\" default=\"\">\n<$button actions=<<hide-elements>> tooltip=\"Hide UI elements\">Reader mode</$button>\n</$reveal>\n<small><ul>\n<li>Author mode: all UI elements are visible</li>\n<li>Redaer mode: all UI elements are hidden except those excluded</li>\n</ul></small>\n<$reveal type=match state=<<configTid>> text=\"\" default=\"\">\n<details>\n<summary>Select items to be excluded</summary>\n<div style=\"padding-left:30px\">{{$:/plugins/kookma/utility/author/exclude-items}}\n</div>\n</details>\n</$reveal>"},"$:/plugins/kookma/utility/config/reveal-tags":{"title":"$:/plugins/kookma/utility/config/reveal-tags","created":"20200123085623608","modified":"20200123200112351","tags":"","type":"text/vnd.tiddlywiki","text":""},"$:/plugins/kookma/utility/history":{"title":"$:/plugins/kookma/utility/history","created":"20190930044127683","modified":"20200403062039433","tags":"","type":"text/vnd.tiddlywiki","text":"* ''2.1.2'' -- 2020.04.03 -- page control button issue fixed\n* ''2.1.1'' -- 2020.03.25 -- page control button improved and minor issues in css fixed\n* ''2.1.0'' -- 2020.03.23 -- new transclusion output for fields macro and disable drag and drop globally\n* ''2.0.0'' -- 2020.03.16 -- new author-reader mode switch\n* ''1.8.0'' -- 2020.03.13 -- admin panel added\n* ''1.7.0'' -- 2020.02.23 -- show tiddler raw content including the macros on demand\n* ''1.0.0'' -- 2019.10.13 -- stable release\n* ''0.5.0'' -- 2019.10.10 -- first beta release"},"$:/plugins/kookma/utility/images/view-fields.svg":{"title":"$:/plugins/kookma/utility/images/view-fields.svg","created":"20181010193706723","modified":"20200123200937680","tags":"","type":"text/vnd.tiddlywiki","text":"<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"tc-image-button tc-image-view-fields\" width=\"22pt\" height=\"22pt\" viewBox=\"0 0 24 24\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2h6v-2h-6zm-5-2c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3zm2.83 7.24l2.12 2.12 1.41-1.41-2.12-2.12-1.41 1.41zm-9.19.71l1.41 1.41 2.12-2.12-1.41-1.41-2.12 2.12zM11 23h2v-6h-2v6z\"/></svg>"},"$:/plugins/kookma/utility/license":{"title":"$:/plugins/kookma/utility/license","created":"20190930044127683","modified":"20200325141629992","tags":"","type":"text/vnd.tiddlywiki","text":"Distributed under an MIT license.\n\nCopyright (c) 2019-2020 [[Mohammad Rahmani|https://github.com/kookma]]\n\n<<<\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n<<<\n"},"$:/plugins/kookma/utility/macro/doc-svg":{"title":"$:/plugins/kookma/utility/macro/doc-svg","created":"20190722141637145","modified":"20200123200937669","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define doc-svg(tiddler:\"\", color:\"\")\n<span class=\"kk-doc\" style=\"fill:$color$;\"><$transclude tiddler=<<__tiddler__>> /></span>\n\\end"},"$:/plugins/kookma/utility/macro/find":{"title":"$:/plugins/kookma/utility/macro/find","created":"20181213121411187","modified":"20200325124037811","tags":"$:/tags/Macro","type":"application/x-tiddler","text":"\\define find(text, begin, end, output:\"simple\", mode:\"all\")\n<$vars \n fulltext=<<__text__>>\n start=<<__begin__>>\n stop=<<__end__>>\n output-macro=<<__output__>>\n>\n<$list variable=\"p1\" filter=\"[<fulltext>splitbefore<start>]\">\n<$list variable=\"p2\" filter=\"[<fulltext>removeprefix<p1>]\">\n<$list variable=\"p3\" filter=\"[<p2>splitbefore<stop>removesuffix<stop>]\">\n<$macrocall $name=<<output-macro>> p=<<p3>> />\n<$reveal type=\"match\" text=\"all\" default=<<__mode__>> >\n<$macrocall $name=\"find\"\n text={{{[<p2>removeprefix<p3>removeprefix<stop>]}}}\n begin=<<start>>\n end=<<stop>>\n output=<<output-macro>>\n/>\n</$reveal>\n</$list>\n</$list>\n</$list>\n</$vars>\n\\end\n\n\\define simple(p)\n<$text text=<<__p__>> />\n\\end\n\n\\define simple-list(p)\n<li><$text text=<<__p__>>/></li>\n\\end\n\n\n!! Summary\n* `find` is a macro to search a text and find all snippets delimited between values of `begin` and `end` delimiters\n* `simple` is a macro used by `find` to show the output in a simple format\n* `simple-list` is a macro used by `find` to show the output in a simple list format. The ordered and unordered list\ncan be used if the call to `find` macro wrapped in a `div` with suitable type e.g `ol` or `ul`."},"$:/plugins/kookma/utility/macro/lorem":{"title":"$:/plugins/kookma/utility/macro/lorem","author":"Jeremy Ruston","created":"20190316214433792","description":"creates few paragraphs of dumy text","modified":"20200123200937645","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define .lorem(np:1)\n<$list filter=\"[range[1,$np$]]\" variable=null>\nLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n<$list filter=\"[<__np__>!match[1]]\"><p/></$list>\n</$list>\n\\end"},"$:/plugins/kookma/utility/macro/show-macro":{"title":"$:/plugins/kookma/utility/macro/show-macro","created":"20190317174614898","description":"This is a customized version of `show-macro` used in TW-Yazd. This macro is used to display the macro codes in specified place.","modified":"20200123200937632","tags":"$:/tags/Macro","type":"application/x-tiddler","text":"\\define disp-macro-contents(p)\n<pre>\\define<$text text=<<__p__>> />\\end</pre>\n\\end\n\n\\define show-macro(tiddler)\n<$set name=selected-tiddler value=\"$tiddler$\" emptyValue=<<currentTiddler>> >\n<$macrocall $name='find'\n text={{{[<selected-tiddler>get[text]]}}}\n begin=\"\\define\"\n end=\"\\end\"\n output=\"disp-macro-contents\"/>\n\\end"},"$:/plugins/kookma/utility/macro/simple-navigation":{"title":"$:/plugins/kookma/utility/macro/simple-navigation","created":"20190823062102008","description":"create a new tiddler tagged with $:/tags/Viewtemplate and call simple-navigation with desired tag","modified":"20200126151115600","tags":"$:/tags/Macro","type":"application/x-tiddler","text":"\\define simple-navigation(tag:\"demo\", class, close:\"no\")\n<$list filter=\"[all[current]tag[$tag$]]\">\n<div class=\"$class$\">\n<$list filter=\"[tag[$tag$]before<currentTiddler>]\" variable=\"prevTiddler\">\n<$button to=<<prevTiddler>> tooltip=<<prevTiddler>> class=\"tc-btn-invisible $class$\">previous\n<$list filter=\"[<__close__>match[yes]]\" variable=ignore><$action-sendmessage $message=\"tm-close-tiddler\" $param=<<currentTiddler>>/></$list>\n</$button>\n</$list>\n<$list filter=\"[tag[$tag$]after<currentTiddler>] [tag[$tag$]before<currentTiddler>] +[count[]] -1\" variable=ignore>|</$list>\n<$list filter=\"[tag[$tag$]after<currentTiddler>]\" variable=\"nextTiddler\">\n<$button to=<<nextTiddler>> tooltip=<<nextTiddler>> class=\"tc-btn-invisible $class$\">next\n<$list filter=\"[<__close__>match[yes]]\" variable=ignore><$action-sendmessage $message=\"tm-close-tiddler\" $param=<<currentTiddler>>/></$list>\n</$button>\n</$list>\n</div>\n</$list>\n\\end"},"$:/plugins/kookma/utility/macro/transclusion":{"title":"$:/plugins/kookma/utility/macro/transclusion","created":"20190930050545887","modified":"20200324201449425","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define code(tiddler)\n<$set name=selected-tiddler value=\"$tiddler$\" emptyValue=<<currentTiddler>> >\n<$codeblock language={{{[<selected-tiddler>get[type]]}}} code={{{[<selected-tiddler>get[text]]}}}/>\n</$set>\n\\end\n\n\\define code-link(tiddler)\n<$set name=selected-tiddler value=\"$tiddler$\" emptyValue=<<currentTiddler>> >\n<$link to=<<selected-tiddler>>/>\n<$codeblock language={{{[<selected-tiddler>get[type]]}}} code={{{[<selected-tiddler>get[text]]}}}/>\n</$set>\n\\end\n\n\\define content(tiddler)\n<$set name=selected-tiddler value=\"$tiddler$\" emptyValue=<<currentTiddler>> >\n<$link to=<<selected-tiddler>>/>\n<$transclude tiddler=<<selected-tiddler>> mode=\"block\"/>\n</$set>\n\\end\n\n\\define fields(tiddler)\n<style>\n/*Borderless table*/\n.kk-utility-tbl-borderless, \n.kk-utility-tbl-borderless tr,\n.kk-utility-tbl-borderless td{border:0;}\n</style>\n<$set name=selected-tiddler value=\"$tiddler$\" emptyValue=<<currentTiddler>> >\n<$link to=<<selected-tiddler>>/>\n<$list filter='[<selected-tiddler>fields[]] -[enlist[text title created modified tags creator modifier]] +[limit[1]]' variable=\"ignore\"><!--check if there is any user field -->\n<table class=\"kk-utility-tbl-borderless\">\n<$list filter='[<selected-tiddler>fields[]] -[enlist[text title created modified tags creator modifier]]' variable=\"fld\">\n<tr><td style=\"text-align:right\"><<fld>>:</td><td><$text text={{{[<selected-tiddler>get<fld>]}}}/></td></tr>\n</$list>\n</table>\n</$list>\n</$set>\n\\end\n\n\\define description(tiddler)\n<$set name=selected-tiddler value=\"$tiddler$\" emptyValue=<<currentTiddler>> >\n<dl><dt><$link to=<<selected-tiddler>>/></dt><dd><$transclude tiddler=<<selected-tiddler>> field=\"description\"/></dd></dl>\n</$set>\n\\end"},"$:/plugins/kookma/utility/macro/unique-id":{"title":"$:/plugins/kookma/utility/macro/unique-id","author":"Jeremy Ruston","created":"20200210134515855","description":"creates a unique id for permanent state tiddler","modified":"20200210134635362","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define create_id_from_timedata(prefix) $prefix$-<<now [UTC]YYYY0MM0DD0hh0mm0ssXXX>>\n\n\\define unique-id(prefix:id)\n<$wikify name=id text=<<create_id_from_timedata \"\"\"$prefix$\"\"\">> >\n<$button tooltip=\"create unique id\" class=\"tc-btn-invisible\" message=\"tm-copy-to-clipboard\" param=<<id>> >{{$:/core/images/copy-clipboard}} \n</$button> <$text text=<<id>>/>\n</$wikify>\n\\end\n"},"$:/plugins/kookma/utility/macro/wikitext-macros":{"title":"$:/plugins/kookma/utility/macro/wikitext-macros","created":"20150117184156000","modified":"20200123200937571","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define wikitext-example(src)\n<div class=\"doc-example\">\n\n<$macrocall $name=\"copy-to-clipboard-above-right\" src=<<__src__>>/>\n\n```\n$src$\n```\n\nThat renders as:\n\n$src$\n\n... and the underlying HTML is:\n\n$$$text/vnd.tiddlywiki>text/html\n$src$\n$$$\n</div>\n\\end\n\n\\define wikitext-example-without-html(src)\n<div class=\"doc-example\">\n\n<$macrocall $name=\"copy-to-clipboard-above-right\" src=<<__src__>>/>\n\n```\n$src$\n```\n\nThat renders as:\n\n$src$\n</div>\n\\end\n<!--\n; Credit\n:Jeremy Ruston TW 5.1.18\n\nThe wiki-text macros are set of macro for documenting TW codes.\n-->"},"$:/plugins/kookma/utility/pagecontrol/view-fields-button":{"title":"$:/plugins/kookma/utility/pagecontrol/view-fields-button","caption":"{{$:/plugins/kookma/utility/images/view-fields.svg}} {{$:/language/Buttons/Utility/Caption}}","created":"20181010190533135","description":"Show a toggle button for view fields","modified":"20200403115112475","tags":"$:/tags/PageControls","type":"text/vnd.tiddlywiki","text":"\\define viewtemplateTid() $:/plugins/kookma/utility/viewtemplate/view-fields\n\\define fldshowstateTid() $:/keepstate/utility/toggle-view-fields\n\n\\define show-fields-button()\n\\whitespace trim\n\n<$reveal type=\"nomatch\" state=<<fldshowstateTid>> text=\"show\">\n <$button set=<<fldshowstateTid>> setTo=\"show\" \n\t tooltip={{$:/language/Buttons/Utility/Hint}} \n\t\t\t\t\t aria-label={{$:/language/Buttons/Utility/Caption}} \n\t\t\t\t\t class=<<tv-config-toolbar-class>> >\n <<disp-on-pagecontrols>>\n <$action-setfield $tiddler=<<viewtemplateTid>> tags=\"$:/tags/ViewTemplate\"/>\n </$button>\n</$reveal>\n\n<$reveal type=\"match\" state=<<fldshowstateTid>> text=\"show\">\n <$button set=<<fldshowstateTid>> setTo=\"hide\" \n tooltip={{$:/language/Buttons/Utility/Hint}} \n\t\t\t\t aria-label={{$:/language/Buttons/Utility/Caption}} \n\t\t\t\t class=\"\"\"$(tv-config-toolbar-class)$ tc-selected\"\"\">\n <<disp-on-pagecontrols>>\n <$action-setfield $tiddler=<<viewtemplateTid>> tags=\"\"/>\n </$button>\n</$reveal>\n\\end\n\n\\define disp-on-pagecontrols() \n<$list filter=\"[<tv-config-toolbar-icons>prefix[yes]]\">\n{{$:/plugins/kookma/utility/images/view-fields.svg}} \n</$list>\n<$list filter=\"[<tv-config-toolbar-text>prefix[yes]]\">\n<span class=\"tc-btn-text\"><$text text={{$:/language/Buttons/Utility/Caption}}/></span>\n</$list>\n\\end\n\n\n<<show-fields-button>>"},"$:/plugins/kookma/utility/readme":{"title":"$:/plugins/kookma/utility/readme","created":"20190930044127683","modified":"20200322194049962","tags":"","type":"text/vnd.tiddlywiki","text":"; Utility plugin\nThe utility plugin objective is to provide set of tools for developers and authors. These tools includes simple transclusions, show raw contents of tiddlers, author tools, wikitext macros, show fields in view mode, ...\n\n; Code and demo\nFor learning plugin features, syntax, tutorial and examples see the plugin demo and code pages\n\n* Demo: https://kookma.github.io/TW-Utility/\n* Code: https://github.com/kookma/TW-Utility\n"},"$:/plugins/kookma/utility/snippet/macrocall-wikitext-example":{"title":"$:/plugins/kookma/utility/snippet/macrocall-wikitext-example","caption":"Wikitext-example macrocall","created":"20181023161605661","modified":"20200123200937811","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<$macrocall $name=\"wikitext-example-without-html\" \nsrc=\"\"\"\n\"\"\"/>"},"$:/plugins/kookma/utility/snippet/wikitext-macro":{"title":"$:/plugins/kookma/utility/snippet/wikitext-macro","caption":"Wikitext-example","created":"20181007154126921","modified":"20200123200937797","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<<wikitext-example-without-html \nsrc:\"\"\"\n\"\"\">>"},"$:/plugins/kookma/utility/styles/doc-svg":{"title":"$:/plugins/kookma/utility/styles/doc-svg","text":".kk-doc svg{\nwidth: 1.2em;\nheight: 1.2em;\nvertical-align: middle;}\n\n.kk-ut-txt{\nmin-width:50%}","created":"20190722142023425","modified":"20200322091202744","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/utility/styles/tw-version":{"title":"$:/plugins/kookma/utility/styles/tw-version","text":"<pre>/* TW-version added to site title */\n.tc-site-title:before {\n content:\"TW <<version>>\";\n position:absolute;\n margin-top:-1.9em;\n color:silver;\n font-size:13px;\n}\n</pre>","created":"20180906042308596","modified":"20200325164200123","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki"},"$:/plugins/kookma/utility/styles/wikitext-macro":{"title":"$:/plugins/kookma/utility/styles/wikitext-macro","text":".doc-example { margin: 1em 0; padding: 0.8em 0; } .doc-example:hover { background-color: #f7f7f9; } .doc-example ul { margin-bottom: 0; padding-bottom: 0; margin-top: 0.2em; } .doc-example pre:first-child { margin-top: 0; } .doc-example-result { border-left: 5px solid #bbb; border-right: 5px solid #bbb; margin-left: 0; margin-right: 0; padding: 0 10px; } .doc-example-result ul { margin-left: 0; padding-left: 10px; } .doc-example-result ol { margin-left: 0; padding-left: 20px; }","created":"20180909042646908","modified":"20200325141241379","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/utility/ui/ControlPanel/Settings":{"title":"$:/plugins/kookma/utility/ui/ControlPanel/Settings","caption":"Utility","created":"20190930212747824","list-after":"$:/core/ui/ControlPanel/Settings/TiddlyWiki","modified":"20200322091210028","tags":"$:/tags/ControlPanel/SettingsTab $:/tags/MoreSideBar","type":"text/vnd.tiddlywiki","text":"These settings let you customise the behaviour of Utility plugin.\n\n---\n\n;Show Utility setting in more sidebar\n:<$checkbox tiddler=\"$:/plugins/kookma/utility/ui/ControlPanel/Settings\" tag=\"$:/tags/MoreSideBar\"> Show setting in more sidebar</$checkbox>\n\n;Options\n:<$checkbox tiddler=\"$:/plugins/kookma/utility/pagecontrol/view-fields-button\" tag=\"$:/tags/PageControls\"> Enable show fields</$checkbox>\n:<$checkbox tiddler=\"$:/plugins/kookma/utility/styles/tw-version\" tag=\"$:/tags/Stylesheet\"> Show the Tiddlywiki version badge</$checkbox>\n:<$checkbox tiddler=\"$:/plugins/kookma/utility/viewtemplate/display-tiddler-raw-content\" tag=\"$:/tags/ViewTemplate\"> Display the tiddler raw content</$checkbox><div style=\"padding-left:18px;\">\n<$list filter=\"[[$:/plugins/kookma/utility/viewtemplate/display-tiddler-raw-content]tags[]search[$:/tags/ViewTemplate]]\" variable=ignore>\nFilters to reveal tiddlers content <$edit-text tiddler=\"$:/plugins/kookma/utility/config/reveal-tags\" field=\"text\" tag=input defualt=\"\" placeholder=\"enter a filter e.g. [tag[myTag]] \" class=\"kk-ut-txt\"/>\n</$list></div>\n\n"},"$:/plugins/kookma/utility/viewtemplate/display-tiddler-raw-content":{"title":"$:/plugins/kookma/utility/viewtemplate/display-tiddler-raw-content","created":"20181212041419278","description":"this view template displays the content of global macro tiddlers","modified":"20200126142626441","tags":"$:/tags/ViewTemplate","type":"text/vnd.tiddlywiki","text":"<$set name=\"revealFilters\" tiddler=\"$:/plugins/kookma/utility/config/reveal-tags\" field=text>\n<$list filter=\"[all[current]tag[show-content]]\n [all[current]tag[$:/tags/EditTemplate]]\n [all[current]tag[$:/tags/ViewTemplate]] \n [all[current]tag[$:/tags/Macro]]\n [all[current]subfilter<revealFilters>] +[limit[1]]\">\n<$codeblock code={{!!text}} language=\"xml\" />\n</$list>\n</$set>\n\n"},"$:/plugins/kookma/utility/viewtemplate/view-fields":{"title":"$:/plugins/kookma/utility/viewtemplate/view-fields","created":"20181010162537613","description":"Toggle field handling in view mode","list-after":"$:/core/ui/ViewTemplate/tags","modified":"20200403082439483","tags":"","type":"text/vnd.tiddlywiki","text":"\\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<$vars name={{$:/temp/newfieldname}}>\n<$reveal type=\"nomatch\" text=\"\" default=<<name>>>\n<$button>\n<$action-sendmessage $message=\"tm-add-field\"\n$name=<<name>>\n$value={{$:/temp/newfieldvalue}}/>\n<$action-deletetiddler $tiddler=\"$:/temp/newfieldname\"/>\n<$action-deletetiddler $tiddler=\"$:/temp/newfieldvalue\"/>\n<<lingo Fields/Add/Button>>\n</$button>\n</$reveal>\n<$reveal type=\"match\" text=\"\" default=<<name>>>\n<$button>\n<<lingo Fields/Add/Button>>\n</$button>\n</$reveal>\n</$vars>\n\\end\n\n<div class=\"tc-edit-fields\">\n<table class=\"tc-edit-fields\">\n<tbody>\n<$list filter=\"[all[current]fields[]] +[sort[title]]\" variable=\"currentField\">\n<$list filter=<<config-filter>> variable=\"temp\">\n<tr class=\"tc-edit-field\">\n<td class=\"tc-edit-field-name\">\n<$text text=<<currentField>>/>:</td>\n<td class=\"tc-edit-field-value\">\n<$edit-text tiddler=<<currentTiddler>> field=<<currentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/>\n</td>\n<td class=\"tc-edit-field-remove\">\n<$button class=\"tc-btn-invisible\" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>\n<$action-deletefield $field=<<currentField>>/>\n{{$:/core/images/delete-button}}\n</$button>\n</td>\n</tr>\n</$list>\n</$list>\n</tbody>\n</table>\n</div>\n\n<$fieldmangler>\n<div class=\"tc-edit-field-add\">\n<em class=\"tc-edit\">\n<<lingo Fields/Add/Prompt>>\n</em>\n<span class=\"tc-edit-field-add-name\">\n<$edit-text tiddler=\"$:/temp/newfieldname\" tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} focusPopup=<<qualify \"$:/state/popup/field-dropdown\">> class=\"tc-edit-texteditor tc-popup-handle\"/>\n</span>\n<$button popup=<<qualify \"$:/state/popup/field-dropdown\">> class=\"tc-btn-invisible tc-btn-dropdown\" tooltip={{$:/language/EditTemplate/Field/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Field/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button>\n<$reveal state=<<qualify \"$:/state/popup/field-dropdown\">> type=\"nomatch\" text=\"\" default=\"\">\n<div class=\"tc-block-dropdown tc-edit-type-dropdown\">\n<$linkcatcher to=\"$:/temp/newfieldname\">\n<div class=\"tc-dropdown-item\">\n<<lingo Fields/Add/Dropdown/User>>\n</div>\n<$list filter=\"[!is[shadow]!is[system]fields[]search:title{$:/temp/newfieldname}sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type\" variable=\"currentField\">\n<$link to=<<currentField>>>\n<<currentField>>\n</$link>\n</$list>\n<div class=\"tc-dropdown-item\">\n<<lingo Fields/Add/Dropdown/System>>\n</div>\n<$list filter=\"[fields[]search:title{$:/temp/newfieldname}sort[]] -[!is[shadow]!is[system]fields[]]\" variable=\"currentField\">\n<$link to=<<currentField>>>\n<<currentField>>\n</$link>\n</$list>\n</$linkcatcher>\n</div>\n</$reveal>\n<span class=\"tc-edit-field-add-value\">\n<$edit-text tiddler=\"$:/temp/newfieldvalue\" tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class=\"tc-edit-texteditor\"/>\n</span>\n<span class=\"tc-edit-field-add-button\">\n<$macrocall $name=\"new-field\"/>\n</span>\n</div>\n</$fieldmangler>\n"},"$:/language/Buttons/Utility/Hint":{"title":"$:/language/Buttons/Utility/Hint","created":"20190930171301401","modified":"20191111154125882","tags":"","type":"text/vnd.tiddlywiki","text":"Show fields"},"$:/language/Buttons/Utility/Caption":{"title":"$:/language/Buttons/Utility/Caption","created":"20190930171340202","modified":"20191111154125886","tags":"","type":"text/vnd.tiddlywiki","text":"show fields"},"$:/config/ShortcutInfo/author-tools":{"title":"$:/config/ShortcutInfo/author-tools","created":"20190912083358612","modified":"20200316123519558","tags":"","type":"text/vnd.tiddlywiki","text":"Show Author tools dialog"},"$:/config/shortcuts/author-tools":{"title":"$:/config/shortcuts/author-tools","created":"20191121050813703","modified":"20200316123531677","type":"text/vnd.tiddlywiki","text":"ctrl-alt-A"},"$:/config/ShortcutInfo/switch-author":{"title":"$:/config/ShortcutInfo/switch-author","created":"20200315203528401","modified":"20200316123455880","type":"text/vnd.tiddlywiki","text":"Toggle the author-reader mode"},"$:/config/shortcuts/switch-author":{"title":"$:/config/shortcuts/switch-author","created":"20200315203409995","modified":"20200316123545221","type":"text/vnd.tiddlywiki","text":"ctrl+alt+L"}}}+
<pre>/* TW-version added to site title */ +.tc-site-title:before { + content:"TW <<version>>"; + position:absolute; + margin-top:-1.9em; + color:silver; + font-size:13px; +} +</pre>+
<$vars newFieldNameTiddler=<<qualify "$:/temp/NewFieldName">> +newFieldValueTiddler=<<qualify "$:/temp/NewFieldValue">> +searchListState=<<qualify "$:/temp/searchListState">> +storeTitle=<<qualify "$:/temp/storeTitle">> +> +<$transclude tiddler="$:/core/ui/EditTemplate/fields"/> +</$vars>+
\whitespace trim +<$button tooltip={{$:/language/Buttons/NewMarkdown/Hint}} aria-label={{$:/language/Buttons/NewMarkdown/Caption}} class=<<tv-config-toolbar-class>>> +<$action-sendmessage $message="tm-new-tiddler" type="text/x-markdown"/> +<$list filter="[<tv-config-toolbar-icons>match[yes]]"> +{{$:/plugins/tiddlywiki/markdown/images/new-markdown-button}} +</$list> +<$list filter="[<tv-config-toolbar-text>match[yes]]"> +<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewMarkdown/Caption}}/></span> +</$list> +</$button> ++
{ + "tiddlers": { + "$:/plugins/tiddlywiki/railroad/components.js": { + "title": "$:/plugins/tiddlywiki/railroad/components.js", + "text": "/*\\\ntitle: $:/plugins/tiddlywiki/railroad/components.js\ntype: application/javascript\nmodule-type: library\n\nComponents of a railroad diagram.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar railroad = require(\"$:/plugins/tiddlywiki/railroad/railroad-diagrams.js\");\n\n/////////////////////////// Base component\n\nvar Component = function() {\n\tthis.type = \"Component\";\n};\n\n// Set up a leaf component\nComponent.prototype.initialiseLeaf = function(type,text) {\n\tthis.type = type;\n\tthis.text = text;\n};\n\n// Set up a component with a single child\nComponent.prototype.initialiseWithChild = function(type,content) {\n\tthis.type = type;\n\tthis.child = toSingleChild(content);\n};\n\n// Set up a component with an array of children\nComponent.prototype.initialiseWithChildren = function(type,content) {\n\tthis.type = type;\n\t// Force the content to be an array\n\tthis.children = $tw.utils.isArray(content) ? content : [content];\n}\n\n// Return an array of the SVG strings of an array of children\nComponent.prototype.getSvgOfChildren = function() {\n\treturn this.children.map(function(child) {\n\t\treturn child.toSvg();\n\t});\n}\n\nComponent.prototype.toSvg = function() {\n\treturn \"\";\n}\n\nComponent.prototype.debug = function(output,indent) {\n\toutput.push(indent);\n\toutput.push(this.type);\n\t// Add the text of a leaf component\n\tif(this.text && this.text !== \"\") {\n\t\toutput.push(\": \");\n\t\toutput.push(this.text);\n\t}\n\t// Flag the normal route\n\tif(this.normal !== undefined) {\n\t\tif(this.normal === true) {\n\t\t\toutput.push(\" (normal)\");\n\t\t} else if(this.normal !== false) {\n\t\t\toutput.push(\" (normal: \");\n\t\t\toutput.push(this.normal);\n\t\t\toutput.push(\")\");\n\t\t}\n\t}\n\toutput.push(\"\\n\");\n\tvar contentIndent = indent + \" \";\n\t// Add the one child\n\tif(this.child) {\n\t\tthis.child.debug(output,contentIndent);\n\t}\n\t// Add the array of children\n\tif(this.children) {\n\t\tthis.debugArray(this.children,output,contentIndent);\n\t}\n \t// Add the separator if there is one\n\tif(this.separator) {\n\t\toutput.push(indent);\n\t\toutput.push(\"(separator)\\n\");\n\t\tthis.separator.debug(output,contentIndent);\n\t}\n};\n\nComponent.prototype.debugArray = function(array,output,indent) {\n\tfor(var i=0; i<array.length; i++) {\n\t\tvar item = array[i];\n\t\t// Choice content is a special case: we number the branches\n\t\tif(item.isChoiceBranch) {\n\t\t\toutput.push(indent);\n\t\t\toutput.push(\"(\");\n\t\t\toutput.push(i);\n\t\t\toutput.push(\")\\n\");\n\t\t\titem.debug(output,\" \"+indent);\n\t\t} else {\n\t\t\titem.debug(output,indent);\n\t\t}\n\t}\n}\n\nvar toSingleChild = function(content) {\n\tif($tw.utils.isArray(content)) {\n\t\t// Reduce an array of one child to just the child\n\t\tif(content.length === 1) {\n\t\t\treturn content[0];\n\t\t} else {\n\t\t\t// Never allow an empty sequence\n\t\t \tif(content.length === 0) {\n \t\t\t\tcontent.push(new Dummy());\n\t\t \t}\n\t\t\t// Wrap multiple children into a single sequence component\n\t\t\treturn new Sequence(content);\n\t\t}\n\t} else {\n\t\t// Already single\n\t\treturn content;\n\t}\n}\n\n/////////////////////////// Leaf components\n\nvar Comment = function(text) {\n\tthis.initialiseLeaf(\"Comment\",text);\n};\n\nComment.prototype = new Component();\n\nComment.prototype.toSvg = function() {\n\treturn railroad.Comment(this.text);\n}\n\nvar Dummy = function() {\n\tthis.initialiseLeaf(\"Dummy\");\n};\n\nDummy.prototype = new Component();\n\nDummy.prototype.toSvg = function() {\n\treturn railroad.Skip();\n}\n\nvar Nonterminal = function(text) {\n\tthis.initialiseLeaf(\"Nonterminal\",text);\n};\n\nNonterminal.prototype = new Component();\n\nNonterminal.prototype.toSvg = function() {\n\treturn railroad.NonTerminal(this.text);\n}\n\nvar Terminal = function(text) {\n\tthis.initialiseLeaf(\"Terminal\",text);\n};\n\nTerminal.prototype = new Component();\n\nTerminal.prototype.toSvg = function() {\n\treturn railroad.Terminal(this.text);\n}\n\n/////////////////////////// Components with one child\n\nvar Optional = function(content,normal) {\n\tthis.initialiseWithChild(\"Optional\",content);\n\tthis.normal = normal;\n};\n\nOptional.prototype = new Component();\n\nOptional.prototype.toSvg = function() {\n\t// Call Optional(component,\"skip\")\n\treturn railroad.Optional(this.child.toSvg(), this.normal ? undefined : \"skip\");\n}\n\nvar OptionalRepeated = function(content,separator,normal,wantArrow) {\n\tthis.initialiseWithChild(\"OptionalRepeated\",content);\n\tthis.separator = toSingleChild(separator);\n\tthis.normal = normal;\n\tthis.wantArrow = wantArrow;\n};\n\nOptionalRepeated.prototype = new Component();\n\nOptionalRepeated.prototype.toSvg = function() {\n\t// Call ZeroOrMore(component,separator,\"skip\")\n\tvar separatorSvg = this.separator ? this.separator.toSvg() : null;\n\tvar skip = this.normal ? undefined : \"skip\";\n\treturn railroad.ZeroOrMore(this.child.toSvg(),separatorSvg,skip,this.wantArrow);\n}\n\nvar Repeated = function(content,separator,wantArrow) {\n\tthis.initialiseWithChild(\"Repeated\",content);\n\tthis.separator = toSingleChild(separator);\n\tthis.wantArrow = wantArrow;\n};\n\nRepeated.prototype = new Component();\n\nRepeated.prototype.toSvg = function() {\n\t// Call OneOrMore(component,separator)\n\tvar separatorSvg = this.separator ? this.separator.toSvg() : null;\n\treturn railroad.OneOrMore(this.child.toSvg(),separatorSvg,this.wantArrow);\n}\n\nvar Link = function(content,options) {\n\tthis.initialiseWithChild(\"Link\",content);\n\tthis.options = options;\n};\n\nLink.prototype = new Component();\n\nLink.prototype.toSvg = function() {\n\treturn railroad.Link(this.child.toSvg(),this.options);\n}\n\nvar Transclusion = function(content) {\n\tthis.initialiseWithChild(\"Transclusion\",content);\n};\n\nTransclusion.prototype = new Component();\n\nTransclusion.prototype.toSvg = function() {\n\treturn this.child.toSvg();\n}\n\n/////////////////////////// Components with an array of children\n\nvar Root = function(content) {\n\tthis.initialiseWithChildren(\"Root\",content);\n};\n\nRoot.prototype = new Component();\n\nRoot.prototype.toSvg = function(options) {\n\tvar args = this.getSvgOfChildren();\n\targs.unshift(options);\n\t// Call Diagram(options,component1,component2,...)\n\treturn railroad.Diagram.apply(null,args);\n}\n\nvar Sequence = function(content) {\n\tthis.initialiseWithChildren(\"Sequence\",content);\n};\n\nSequence.prototype = new Component();\n\nSequence.prototype.toSvg = function() {\n\t// Call Sequence(component1,component2,...)\n\treturn railroad.Sequence.apply(null,this.getSvgOfChildren());\n}\n\nvar Choice = function(content,normal) {\n\tthis.initialiseWithChildren(\"Choice\",content.map(toSingleChild));\n\tfor(var i=0; i<this.children.length; i++) {\n\t\tthis.children[i].isChoiceBranch = true;\n\t}\n\tthis.normal = normal;\n};\n\nChoice.prototype = new Component();\n\nChoice.prototype.toSvg = function() {\n\t// Call Choice(normal,component1,component2,...)\n\tvar args = this.getSvgOfChildren();\n\targs.unshift(this.normal);\n\treturn railroad.Choice.apply(null,args);\n}\n\n/////////////////////////// Exports\n\nexports.components = {\n\tChoice: Choice,\n\tComment: Comment,\n\tDummy: Dummy,\n\tLink: Link,\n\tNonterminal: Nonterminal,\n\tOptional: Optional,\n\tOptionalRepeated: OptionalRepeated,\n\tRepeated: Repeated,\n\tRoot: Root,\n\tSequence: Sequence,\n\tTerminal: Terminal,\n\tTransclusion: Transclusion\n};\n\n})();", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/tiddlywiki/railroad/example-source": { + "title": "$:/plugins/tiddlywiki/railroad/example-source", + "created": "20150103184022184", + "modified": "20150119214125000", + "tags": "", + "type": "text/vnd.tiddlywiki.railroad", + "text": "[\"+\"]\n({ [[digit|GettingStarted]] } | \"#\" <'escape sequence'>)\n[{(\"@\" name-char | :\"--\" )}]\n" + }, + "$:/plugins/tiddlywiki/railroad/example": { + "title": "$:/plugins/tiddlywiki/railroad/example", + "created": "20150102165032410", + "modified": "20150120090735000", + "tags": "", + "text": "Notation:\n\n<pre><code><$text text={{$:/plugins/tiddlywiki/railroad/example-source}}/></code></pre>\n\nDiagram:\n\n{{$:/plugins/tiddlywiki/railroad/example-source}}\n\nDebug mode:\n\n<$railroad debug=\"yes\" text={{$:/plugins/tiddlywiki/railroad/example-source}}/>\n" + }, + "$:/plugins/tiddlywiki/railroad/readme": { + "title": "$:/plugins/tiddlywiki/railroad/readme", + "created": "20150102163222184", + "modified": "20150119231005000", + "text": "This plugin provides a `<$railroad>` widget for generating railroad diagrams as SVG images.\n\nAlternatively, the [[diagram notation|$:/plugins/tiddlywiki/railroad/syntax]] can be stored in a dedicated tiddler with its `type` field set to `text/vnd.tiddlywiki.railroad`, and that tiddler can simply be transcluded to wherever it is needed.\n\nThe plugin is based on [[a library by Tab Atkins|https://github.com/tabatkins/railroad-diagrams]], and has been extended to make it more flexible, including allowing components of a diagram to function as links or be transcluded from other tiddlers.\n" + }, + "$:/plugins/tiddlywiki/railroad/syntax-string": { + "title": "$:/plugins/tiddlywiki/railroad/syntax-string", + "created": "20150103184022184", + "modified": "20150103184022184", + "text": "('\"' text '\"' | \"'\" text \"'\" | '\"\"\"' text '\"\"\"')" + }, + "$:/plugins/tiddlywiki/railroad/syntax": { + "title": "$:/plugins/tiddlywiki/railroad/syntax", + "created": "20150103184022184", + "modified": "20150119220342000", + "text": "The railroad widget uses a special notation to construct the components defined below.\n\n`x` and `y` here stand for any component.\n\nNames (as opposed to quoted strings) are available when a value starts with a letter and contains only letters, digits, underscores, dots and hyphens.\n\n---\n\n; sequence\n: <$railroad text=\"\"\" [\"<-\"] {x} [\"->\"] \"\"\"/>\n* A sequence of components\n* The `<-` and `->` delimiters allow you to force a single component to be treated as a sequence. This is occasionally useful for spacing a diagram out\n\n---\n\n; optional\n: <$railroad text=\"\"\" \"[\" [\":\"] x \"]\" \"\"\"/>\n* A component that can be omitted\n* The colon makes `x` appear straight ahead\n\n---\n\n; repeated\n: <$railroad text=\"\"\" \"{\" x [:\"+\" y] \"}\" \"\"\"/>\n* A list of one or more `x`\n* The `+` suffix adds `y` as a separator between each `x` and the next\n\n---\n\n; optional repeated\n: <$railroad text=\"\"\" \"[{\" [\":\"] x [:\"+\" y] \"}]\" \"\"\"/>\n* An optional list of `x`, i.e. a list of zero or more `x`\n\n---\n\n; choice\n: <$railroad text=\"\"\" \"(\" {[:\":\"] x +\"|\"} \")\" \"\"\"/>\n* A set of alternatives\n* The colon indicates which branch appears straight ahead. By default, it's the first branch\n\n---\n\n; string / terminal\n: <$railroad text={{$:/plugins/tiddlywiki/railroad/syntax-string}}/>\n* A literal or terminal component\n* This follows the normal ~TiddlyWiki rules for quoted strings\n\n---\n\n; nonterminal\n: <$railroad text=\"\"\" (name | \"<\" string \">\") \"\"\"/>\n* A nonterminal component, i.e. the name of another diagram\n\n---\n\n; comment\n: <$railroad text=\"\"\" \"/\" string \"/\" \"\"\"/>\n* A comment\n\n---\n\n; dummy\n: <$railroad text=\"\"\" \"-\" \"\"\"/>\n* The absence of a component\n\n---\n\n; link\n: <$railroad text=\"\"\" \"[[\" x \"|\" (name|string) \"]]\" \"\"\"/>\n* A link to the tiddler title or URI given by the string or name\n\n---\n\n; transclusion\n: <$railroad text=\"\"\" \"{{\" (name|string) \"}}\" \"\"\"/>\n* Treats the content of another tiddler as diagram syntax and transcludes it into the current diagram\n\n---\n\n; arrow pragma\n: <$railroad text=\"\"\" \"\\arrow\" (\"yes\" | \"no\") \"\"\"/>\n* Controls whether repeat paths have an arrow on them\n* Can be toggled on and off in mid-diagram, if desired\n\n---\n\n; debug pragma\n: <$railroad text=\"\"\" \"\\debug\" \"\"\"/>\n* Causes the diagram to display its parse tree\n\n---\n\n; start/end pragma\n: <$railroad text=\"\"\" (\"\\start\" |: \"\\end\") (\"none\" |: \"single\" | \"double\") \"\"\"/>\n* Controls the style of the diagram's startpoint or endpoint\n" + }, + "$:/plugins/tiddlywiki/railroad/usage": { + "title": "$:/plugins/tiddlywiki/railroad/usage", + "created": "20150102163222184", + "modified": "20150119231005000", + "text": "The content of the `<$railroad>` widget is ignored.\n\n|!Attribute |!Description |!Default |\n|text |Text in a special notation that defines the diagram's layout |-- |\n|arrow |If set to `no`, repeat paths do not have an arrow on them |`yes` |\n|start |Style of the startpoint: `single`, `double`, `none` |`single` |\n|end |Style of the endpoint: `single`, `double`, `none` |`single` |\n|debug |If set to `yes`, the diagram displays its parse tree |`no` |\n\nThese options can also be specified via pragmas in the diagram notation, or globally via a dictionary tiddler called `$:/config/railroad`:\n\n```\narrow: yes\nstart: single\nend: single\ndebug: no\n```\n" + }, + "$:/plugins/tiddlywiki/railroad/railroad-diagrams.css": { + "text": "\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock\n\n/* CSS modified for TiddlyWiki */\n\nsvg.railroad-diagram {\n\tbackground-color: <<colour background>>;\n\tborder-radius: 5px;\n}\n/*\nsvg.railroad-diagram:hover {\n\tbackground-color: hsl(30,20%,96%);\n}\n*/\nsvg.railroad-diagram path,\nsvg.railroad-diagram rect {\n\tstroke-width: 2;\n\tstroke: <<colour message-border>>;\n}\nsvg.railroad-diagram path {\n\tfill: <<colour background>>;\n}\nsvg.railroad-diagram rect {\n\tfill: <<colour message-background>>;\n}\nsvg.railroad-diagram text {\n\tfont: 14px monospace;\n\ttext-anchor: middle;\n\tfill: <<colour message-foreground>>;\n}\nsvg.railroad-diagram text.label {\n\ttext-anchor: start;\n}\nsvg.railroad-diagram text.comment {\n\tfont: italic 12px monospace;\n}\nsvg.railroad-diagram path.arrow {\n stroke-width: 2;\n}", + "type": "text/vnd.tiddlywiki", + "title": "$:/plugins/tiddlywiki/railroad/railroad-diagrams.css", + "tags": "$:/tags/Stylesheet" + }, + "$:/plugins/tiddlywiki/railroad/railroad-diagrams.js": { + "text": "(function(document) {\n/* TiddlyWiki: modifications to the original library are commented like this */\n\n/*\nRailroad Diagrams\nby Tab Atkins Jr. (and others)\nhttp://xanthir.com\nhttp://twitter.com/tabatkins\nhttp://github.com/tabatkins/railroad-diagrams\n\nThis document and all associated files in the github project are licensed under CC0: http://creativecommons.org/publicdomain/zero/1.0/\nThis means you can reuse, remix, or otherwise appropriate this project for your own use WITHOUT RESTRICTION.\n(The actual legal meaning can be found at the above link.)\nDon't ask me for permission to use any part of this project, JUST USE IT.\nI would appreciate attribution, but that is not required by the license.\n*/\n\n/*\nThis file uses a module pattern to avoid leaking names into the global scope.\nThe only accidental leakage is the name \"temp\".\nThe exported names can be found at the bottom of this file;\nsimply change the names in the array of strings to change what they are called in your application.\n\nAs well, several configuration constants are passed into the module function at the bottom of this file.\nAt runtime, these constants can be found on the Diagram class.\n*/\n\nvar temp = (function(options) {\n\tfunction subclassOf(baseClass, superClass) {\n\t\tbaseClass.prototype = Object.create(superClass.prototype);\n\t\tbaseClass.prototype.$super = superClass.prototype;\n\t}\n\n\tfunction unnull(/* children */) {\n\t\treturn [].slice.call(arguments).reduce(function(sofar, x) { return sofar !== undefined ? sofar : x; });\n\t}\n\n\tfunction determineGaps(outer, inner) {\n\t\tvar diff = outer - inner;\n\t\tswitch(Diagram.INTERNAL_ALIGNMENT) {\n\t\t\tcase 'left': return [0, diff]; break;\n\t\t\tcase 'right': return [diff, 0]; break;\n\t\t\tcase 'center':\n\t\t\tdefault: return [diff/2, diff/2]; break;\n\t\t}\n\t}\n\n\tfunction wrapString(value) {\n\t\treturn ((typeof value) == 'string') ? new Terminal(value) : value;\n\t}\n\n\n\tfunction SVG(name, attrs, text) {\n\t\tattrs = attrs || {};\n\t\ttext = text || '';\n\t\tvar el = document.createElementNS(\"http://www.w3.org/2000/svg\",name);\n\t\tfor(var attr in attrs) {\n\t\t\tel.setAttribute(attr, attrs[attr]);\n\t\t}\n\t\tel.textContent = text;\n\t\treturn el;\n\t}\n\n\tfunction FakeSVG(tagName, attrs, text){\n\t\tif(!(this instanceof FakeSVG)) return new FakeSVG(tagName, attrs, text);\n\t\tif(text) this.children = text;\n\t\telse this.children = [];\n\t\tthis.tagName = tagName;\n\t\tthis.attrs = unnull(attrs, {});\n\t\treturn this;\n\t};\n\tFakeSVG.prototype.format = function(x, y, width) {\n\t\t// Virtual\n\t};\n\tFakeSVG.prototype.addTo = function(parent) {\n\t\tif(parent instanceof FakeSVG) {\n\t\t\tparent.children.push(this);\n\t\t\treturn this;\n\t\t} else {\n\t\t\tvar svg = this.toSVG();\n\t\t\tparent.appendChild(svg);\n\t\t\treturn svg;\n\t\t}\n\t};\n\tFakeSVG.prototype.toSVG = function() {\n\t\tvar el = SVG(this.tagName, this.attrs);\n\t\tif(typeof this.children == 'string') {\n\t\t\tel.textContent = this.children;\n\t\t} else {\n\t\t\tthis.children.forEach(function(e) {\n\t\t\t\tel.appendChild(e.toSVG());\n\t\t\t});\n\t\t}\n\t\treturn el;\n\t};\n\tFakeSVG.prototype.toString = function() {\n\t\tvar str = '<' + this.tagName;\n\t\tvar group = this.tagName == \"g\" || this.tagName == \"svg\";\n\t\tfor(var attr in this.attrs) {\n\t\t\tstr += ' ' + attr + '=\"' + (this.attrs[attr]+'').replace(/&/g, '&').replace(/\"/g, '"') + '\"';\n\t\t}\n\t\tstr += '>';\n\t\tif(group) str += \"\\n\";\n\t\tif(typeof this.children == 'string') {\n\t\t\tstr += this.children.replace(/&/g, '&').replace(/</g, '<');\n\t\t} else {\n\t\t\tthis.children.forEach(function(e) {\n\t\t\t\tstr += e;\n\t\t\t});\n\t\t}\n\t\tstr += '</' + this.tagName + '>\\n';\n\t\treturn str;\n\t}\n\n\tfunction Path(x,y,attrs) {\n\t\tif(!(this instanceof Path)) return new Path(x,y,attrs);\n\t\tFakeSVG.call(this, 'path', attrs);\n\t\tthis.attrs.d = \"M\"+x+' '+y;\n\t}\n\tsubclassOf(Path, FakeSVG);\n\tPath.prototype.m = function(x,y) {\n\t\tthis.attrs.d += 'm'+x+' '+y;\n\t\treturn this;\n\t}\n\tPath.prototype.h = function(val) {\n\t\tthis.attrs.d += 'h'+val;\n\t\treturn this;\n\t}\n\tPath.prototype.right = Path.prototype.h;\n\tPath.prototype.left = function(val) { return this.h(-val); }\n\tPath.prototype.v = function(val) {\n\t\tthis.attrs.d += 'v'+val;\n\t\treturn this;\n\t}\n\tPath.prototype.down = Path.prototype.v;\n\tPath.prototype.up = function(val) { return this.v(-val); }\n\tPath.prototype.arc = function(sweep){\n\t\tvar x = Diagram.ARC_RADIUS;\n\t\tvar y = Diagram.ARC_RADIUS;\n\t\tif(sweep[0] == 'e' || sweep[1] == 'w') {\n\t\t\tx *= -1;\n\t\t}\n\t\tif(sweep[0] == 's' || sweep[1] == 'n') {\n\t\t\ty *= -1;\n\t\t}\n\t\tif(sweep == 'ne' || sweep == 'es' || sweep == 'sw' || sweep == 'wn') {\n\t\t\tvar cw = 1;\n\t\t} else {\n\t\t\tvar cw = 0;\n\t\t}\n\t\tthis.attrs.d += \"a\"+Diagram.ARC_RADIUS+\" \"+Diagram.ARC_RADIUS+\" 0 0 \"+cw+' '+x+' '+y;\n\t\treturn this;\n\t}\n\tPath.prototype.format = function() {\n\t\t// All paths in this library start/end horizontally.\n\t\t// The extra .5 ensures a minor overlap, so there's no seams in bad rasterizers.\n\t\tthis.attrs.d += 'h.5';\n\t\treturn this;\n\t}\n/* TiddlyWiki: added support for arbitrary straight lines */\n\tPath.prototype.line = function(dx,dy) {\n\t\tthis.attrs.d += \"l\"+dx+\" \"+dy;\n\t\treturn this;\n\t}\n\n/* TiddlyWiki: added twOptions parameter, passing it to Start() and End() */\n\tfunction Diagram(twOptions, items) {\n\t\tif(!(this instanceof Diagram)) return new Diagram(twOptions, [].slice.call(arguments,1));\n\t\tFakeSVG.call(this, 'svg', {class: Diagram.DIAGRAM_CLASS});\n\t\tthis.items = items.map(wrapString);\n\t\tthis.items.unshift(new Start(twOptions.start));\n\t\tthis.items.push(new End(twOptions.end));\n\t\tthis.width = this.items.reduce(function(sofar, el) { return sofar + el.width + (el.needsSpace?20:0)}, 0)+1;\n\t\tthis.up = Math.max.apply(null, this.items.map(function (x) { return x.up; }));\n\t\tthis.down = Math.max.apply(null, this.items.map(function (x) { return x.down; }));\n\t\tthis.formatted = false;\t\t\n\t}\n\tsubclassOf(Diagram, FakeSVG);\n\tfor(var option in options) {\n\t\tDiagram[option] = options[option];\n\t}\n\tDiagram.prototype.format = function(paddingt, paddingr, paddingb, paddingl) {\n\t\tpaddingt = unnull(paddingt, 20);\n\t\tpaddingr = unnull(paddingr, paddingt, 20);\n\t\tpaddingb = unnull(paddingb, paddingt, 20);\n\t\tpaddingl = unnull(paddingl, paddingr, 20);\n\t\tvar x = paddingl;\n\t\tvar y = paddingt;\n\t\ty += this.up;\n\t\tvar g = FakeSVG('g', Diagram.STROKE_ODD_PIXEL_LENGTH ? {transform:'translate(.5 .5)'} : {});\n\t\tfor(var i = 0; i < this.items.length; i++) {\n\t\t\tvar item = this.items[i];\n\t\t\tif(item.needsSpace) {\n\t\t\t\tPath(x,y).h(10).addTo(g);\n\t\t\t\tx += 10;\n\t\t\t}\n\t\t\titem.format(x, y, item.width).addTo(g);\n\t\t\tx += item.width;\n\t\t\tif(item.needsSpace) {\n\t\t\t\tPath(x,y).h(10).addTo(g);\n\t\t\t\tx += 10;\n\t\t\t}\n\t\t}\n\t\tthis.attrs.width = this.width + paddingl + paddingr;\n\t\tthis.attrs.height = this.up + this.down + paddingt + paddingb;\n\t\tthis.attrs.viewBox = \"0 0 \" + this.attrs.width + \" \" + this.attrs.height;\n\t\tg.addTo(this);\n\t\tthis.formatted = true;\n\t\treturn this;\n\t}\n\tDiagram.prototype.addTo = function(parent) {\n\t\tvar scriptTag = document.getElementsByTagName('script');\n\t\tscriptTag = scriptTag[scriptTag.length - 1];\n\t\tvar parentTag = scriptTag.parentNode;\n\t\tparent = parent || parentTag;\n\t\treturn this.$super.addTo.call(this, parent);\n\t}\n\tDiagram.prototype.toSVG = function() {\n\t\tif (!this.formatted) {\n\t\t\tthis.format();\n\t\t}\n\t\treturn this.$super.toSVG.call(this);\n\t}\n\tDiagram.prototype.toString = function() {\n\t\tif (!this.formatted) {\n\t\t\tthis.format();\n\t\t}\n\t\treturn this.$super.toString.call(this);\n\t}\n\n\tfunction Sequence(items) {\n\t\tif(!(this instanceof Sequence)) return new Sequence([].slice.call(arguments));\n\t\tFakeSVG.call(this, 'g');\n\t\tthis.items = items.map(wrapString);\n\t\tthis.width = this.items.reduce(function(sofar, el) { return sofar + el.width + (el.needsSpace?20:0)}, 0);\n\t\tthis.up = this.items.reduce(function(sofar,el) { return Math.max(sofar, el.up)}, 0);\n\t\tthis.down = this.items.reduce(function(sofar,el) { return Math.max(sofar, el.down)}, 0);\n\t}\n\tsubclassOf(Sequence, FakeSVG);\n\tSequence.prototype.format = function(x,y,width) {\n\t\t// Hook up the two sides if this is narrower than its stated width.\n\t\tvar gaps = determineGaps(width, this.width);\n\t\tPath(x,y).h(gaps[0]).addTo(this);\n\t\tPath(x+gaps[0]+this.width,y).h(gaps[1]).addTo(this);\n\t\tx += gaps[0];\n\n\t\tfor(var i = 0; i < this.items.length; i++) {\n\t\t\tvar item = this.items[i];\n\t\t\tif(item.needsSpace) {\n\t\t\t\tPath(x,y).h(10).addTo(this);\n\t\t\t\tx += 10;\n\t\t\t}\n\t\t\titem.format(x, y, item.width).addTo(this);\n\t\t\tx += item.width;\n\t\t\tif(item.needsSpace) {\n\t\t\t\tPath(x,y).h(10).addTo(this);\n\t\t\t\tx += 10;\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}\n\n\tfunction Choice(normal, items) {\n\t\tif(!(this instanceof Choice)) return new Choice(normal, [].slice.call(arguments,1));\n\t\tFakeSVG.call(this, 'g');\n\t\tif( typeof normal !== \"number\" || normal !== Math.floor(normal) ) {\n\t\t\tthrow new TypeError(\"The first argument of Choice() must be an integer.\");\n\t\t} else if(normal < 0 || normal >= items.length) {\n\t\t\tthrow new RangeError(\"The first argument of Choice() must be an index for one of the items.\");\n\t\t} else {\n\t\t\tthis.normal = normal;\n\t\t}\n\t\tthis.items = items.map(wrapString);\n\t\tthis.width = this.items.reduce(function(sofar, el){return Math.max(sofar, el.width)},0) + Diagram.ARC_RADIUS*4;\n\t\tthis.up = this.down = 0;\n\t\tfor(var i = 0; i < this.items.length; i++) {\n\t\t\tvar item = this.items[i];\n\t\t\tif(i < normal) { this.up += Math.max(Diagram.ARC_RADIUS,item.up + item.down + Diagram.VERTICAL_SEPARATION); }\n\t\t\tif(i == normal) { this.up += Math.max(Diagram.ARC_RADIUS, item.up); this.down += Math.max(Diagram.ARC_RADIUS, item.down); }\n\t\t\tif(i > normal) { this.down += Math.max(Diagram.ARC_RADIUS,Diagram.VERTICAL_SEPARATION + item.up + item.down); }\n\t\t}\n\t}\n\tsubclassOf(Choice, FakeSVG);\n\tChoice.prototype.format = function(x,y,width) {\n\t\t// Hook up the two sides if this is narrower than its stated width.\n\t\tvar gaps = determineGaps(width, this.width);\n\t\tPath(x,y).h(gaps[0]).addTo(this);\n\t\tPath(x+gaps[0]+this.width,y).h(gaps[1]).addTo(this);\n\t\tx += gaps[0];\n\n\t\tvar last = this.items.length -1;\n\t\tvar innerWidth = this.width - Diagram.ARC_RADIUS*4;\n\n\t\t// Do the elements that curve above\n\t\tfor(var i = this.normal - 1; i >= 0; i--) {\n\t\t\tvar item = this.items[i];\n\t\t\tif( i == this.normal - 1 ) {\n\t\t\t\tvar distanceFromY = Math.max(Diagram.ARC_RADIUS*2, this.items[i+1].up + Diagram.VERTICAL_SEPARATION + item.down);\n\t\t\t}\n\t\t\tPath(x,y).arc('se').up(distanceFromY - Diagram.ARC_RADIUS*2).arc('wn').addTo(this);\n\t\t\titem.format(x+Diagram.ARC_RADIUS*2,y - distanceFromY,innerWidth).addTo(this);\n\t\t\tPath(x+Diagram.ARC_RADIUS*2+innerWidth, y-distanceFromY).arc('ne').down(distanceFromY - Diagram.ARC_RADIUS*2).arc('ws').addTo(this);\n\t\t\tdistanceFromY += Math.max(Diagram.ARC_RADIUS, item.up + Diagram.VERTICAL_SEPARATION + (i == 0 ? 0 : this.items[i-1].down));\n\t\t}\n\n\t\t// Do the straight-line path.\n\t\tPath(x,y).right(Diagram.ARC_RADIUS*2).addTo(this);\n\t\tthis.items[this.normal].format(x+Diagram.ARC_RADIUS*2, y, innerWidth).addTo(this);\n\t\tPath(x+Diagram.ARC_RADIUS*2+innerWidth, y).right(Diagram.ARC_RADIUS*2).addTo(this);\n\n\t\t// Do the elements that curve below\n\t\tfor(var i = this.normal+1; i <= last; i++) {\n\t\t\tvar item = this.items[i];\n\t\t\tif( i == this.normal + 1 ) {\n\t\t\t\tvar distanceFromY = Math.max(Diagram.ARC_RADIUS*2, this.items[i-1].down + Diagram.VERTICAL_SEPARATION + item.up);\n\t\t\t}\n\t\t\tPath(x,y).arc('ne').down(distanceFromY - Diagram.ARC_RADIUS*2).arc('ws').addTo(this);\n\t\t\titem.format(x+Diagram.ARC_RADIUS*2, y+distanceFromY, innerWidth).addTo(this);\n\t\t\tPath(x+Diagram.ARC_RADIUS*2+innerWidth, y+distanceFromY).arc('se').up(distanceFromY - Diagram.ARC_RADIUS*2).arc('wn').addTo(this);\n\t\t\tdistanceFromY += Math.max(Diagram.ARC_RADIUS, item.down + Diagram.VERTICAL_SEPARATION + (i == last ? 0 : this.items[i+1].up));\n\t\t}\n\n\t\treturn this;\n\t}\n\n\tfunction Optional(item, skip) {\n\t\tif( skip === undefined )\n\t\t\treturn Choice(1, Skip(), item);\n\t\telse if ( skip === \"skip\" )\n\t\t\treturn Choice(0, Skip(), item);\n\t\telse\n\t\t\tthrow \"Unknown value for Optional()'s 'skip' argument.\";\n\t}\n\n/* TiddlyWiki: added wantArrow */\n\tfunction OneOrMore(item, rep, wantArrow) {\n\t\tif(!(this instanceof OneOrMore)) return new OneOrMore(item, rep, wantArrow);\n\t\tFakeSVG.call(this, 'g');\n\n/* TiddlyWiki: code added */\n\t\tthis.wantArrow = wantArrow;\n\n\t\trep = rep || (new Skip);\n\t\tthis.item = wrapString(item);\n\t\tthis.rep = wrapString(rep);\n\t\tthis.width = Math.max(this.item.width, this.rep.width) + Diagram.ARC_RADIUS*2;\n\t\tthis.up = this.item.up;\n\t\tthis.down = Math.max(Diagram.ARC_RADIUS*2, this.item.down + Diagram.VERTICAL_SEPARATION + this.rep.up + this.rep.down);\n\n/* TiddlyWiki: moved calculation of distanceFromY (of the repeat arc) to here */\n\t\tthis.distanceFromY = Math.max(Diagram.ARC_RADIUS*2, this.item.down+Diagram.VERTICAL_SEPARATION+this.rep.up);\n\t}\n\tsubclassOf(OneOrMore, FakeSVG);\n\tOneOrMore.prototype.needsSpace = true;\n\tOneOrMore.prototype.format = function(x,y,width) {\n\t\t// Hook up the two sides if this is narrower than its stated width.\n\t\tvar gaps = determineGaps(width, this.width);\n\t\tPath(x,y).h(gaps[0]).addTo(this);\n\t\tPath(x+gaps[0]+this.width,y).h(gaps[1]).addTo(this);\n\t\tx += gaps[0];\n\n\t\t// Draw item\n\t\tPath(x,y).right(Diagram.ARC_RADIUS).addTo(this);\n\t\tthis.item.format(x+Diagram.ARC_RADIUS,y,this.width-Diagram.ARC_RADIUS*2).addTo(this);\n\t\tPath(x+this.width-Diagram.ARC_RADIUS,y).right(Diagram.ARC_RADIUS).addTo(this);\n\n\t\t// Draw repeat arc\n/* TiddlyWiki: moved calculation of distanceFromY from here to constructor */\n\t\tvar distanceFromY = this.distanceFromY;\n\t\t\n\t\tPath(x+Diagram.ARC_RADIUS,y).arc('nw').down(distanceFromY-Diagram.ARC_RADIUS*2).arc('ws').addTo(this);\n\t\tthis.rep.format(x+Diagram.ARC_RADIUS, y+distanceFromY, this.width - Diagram.ARC_RADIUS*2).addTo(this);\n\t\tPath(x+this.width-Diagram.ARC_RADIUS, y+distanceFromY).arc('se').up(distanceFromY-Diagram.ARC_RADIUS*2).arc('en').addTo(this);\n\t\t\n/* TiddlyWiki: code added */\n\t\tif(this.wantArrow) {\n\t\t\tvar arrowSize = Diagram.ARC_RADIUS/2;\n\t\t\t// Compensate for the illusion that makes the arrow look unbalanced if it's too close to the curve below it\n\t\t\tvar multiplier = (distanceFromY < arrowSize*5) ? 1.2 : 1;\n\t\t\tPath(x-arrowSize, y+distanceFromY/2 + arrowSize/2, {class:\"arrow\"}).\n\t\t\t\tline(arrowSize, -arrowSize).line(arrowSize*multiplier, arrowSize).addTo(this);\n\t\t}\n\n\t\treturn this;\n\t}\n\n\tfunction ZeroOrMore(item, rep, skip, wantArrow) {\n\t\treturn Optional(OneOrMore(item, rep, wantArrow), skip);\n\t}\n\n/* TiddlyWiki: added type parameter */\n\tfunction Start(type) {\n\t\tif(!(this instanceof Start)) return new Start(type);\n\t\tFakeSVG.call(this, 'path');\n\t\tthis.type = type || 'single'\n\t\tthis.width = (this.type === 'double') ? 20 : 10;\n\t\tthis.up = 10;\n\t\tthis.down = 10;\n\t}\n\tsubclassOf(Start, FakeSVG);\n\tStart.prototype.format = function(x,y) {\n/* TiddlyWiki: added types */\n\t\tif(this.type === 'single') {\n\t\t\tthis.attrs.d = 'M '+x+' '+(y-10)+' v 20 m 0 -10 h 10.5';\n\t\t} else if(this.type === 'double') {\n\t\t\tthis.attrs.d = 'M '+x+' '+(y-10)+' v 20 m 10 -20 v 20 m -10 -10 h 20.5';\n\t\t} else { // 'none'\n\t\t\tthis.attrs.d = 'M '+x+' '+y+' h 10.5';\n\t\t}\n\t\treturn this;\n\t}\n\n/* TiddlyWiki: added type parameter */\n\tfunction End(type) {\n\t\tif(!(this instanceof End)) return new End(type);\n\t\tFakeSVG.call(this, 'path');\n\t\tthis.type = type || 'double';\n\t\tthis.width = (this.type === 'double') ? 20 : 10;\n\t\tthis.up = 10;\n\t\tthis.down = 10;\n\t}\n\tsubclassOf(End, FakeSVG);\n\tEnd.prototype.format = function(x,y) {\n/* TiddlyWiki: added types */\n\t\tif(this.type === 'single') {\n\t\t\tthis.attrs.d = 'M '+x+' '+y+' h 10 m 0 -10 v 20';\n\t\t} else if(this.type === 'double') {\n\t\t\tthis.attrs.d = 'M '+x+' '+y+' h 20 m -10 -10 v 20 m 10 -20 v 20';\n\t\t} else { // 'none'\n\t\t\tthis.attrs.d = 'M '+x+' '+y+' h 10';\n\t\t}\n\t\treturn this;\n\t}\n\n\tfunction Terminal(text) {\n\t\tif(!(this instanceof Terminal)) return new Terminal(text);\n\t\tFakeSVG.call(this, 'g');\n\t\tthis.text = text;\n\t\tthis.width = text.length * 8 + 20; /* Assume that each char is .5em, and that the em is 16px */\n\t\tthis.up = 11;\n\t\tthis.down = 11;\n\t}\n\tsubclassOf(Terminal, FakeSVG);\n\tTerminal.prototype.needsSpace = true;\n\tTerminal.prototype.format = function(x, y, width) {\n\t\t// Hook up the two sides if this is narrower than its stated width.\n\t\tvar gaps = determineGaps(width, this.width);\n\t\tPath(x,y).h(gaps[0]).addTo(this);\n\t\tPath(x+gaps[0]+this.width,y).h(gaps[1]).addTo(this);\n\t\tx += gaps[0];\n\n\t\tFakeSVG('rect', {x:x, y:y-11, width:this.width, height:this.up+this.down, rx:10, ry:10}).addTo(this);\n\t\tFakeSVG('text', {x:x+this.width/2, y:y+4}, this.text).addTo(this);\n\t\treturn this;\n\t}\n\n\tfunction NonTerminal(text) {\n\t\tif(!(this instanceof NonTerminal)) return new NonTerminal(text);\n\t\tFakeSVG.call(this, 'g');\n\t\tthis.text = text;\n\t\tthis.width = text.length * 8 + 20;\n\t\tthis.up = 11;\n\t\tthis.down = 11;\n\t}\n\tsubclassOf(NonTerminal, FakeSVG);\n\tNonTerminal.prototype.needsSpace = true;\n\tNonTerminal.prototype.format = function(x, y, width) {\n\t\t// Hook up the two sides if this is narrower than its stated width.\n\t\tvar gaps = determineGaps(width, this.width);\n\t\tPath(x,y).h(gaps[0]).addTo(this);\n\t\tPath(x+gaps[0]+this.width,y).h(gaps[1]).addTo(this);\n\t\tx += gaps[0];\n\n\t\tFakeSVG('rect', {x:x, y:y-11, width:this.width, height:this.up+this.down}).addTo(this);\n\t\tFakeSVG('text', {x:x+this.width/2, y:y+4}, this.text).addTo(this);\n\t\treturn this;\n\t}\n\n\tfunction Comment(text) {\n\t\tif(!(this instanceof Comment)) return new Comment(text);\n\t\tFakeSVG.call(this, 'g');\n\t\tthis.text = text;\n\t\tthis.width = text.length * 7 + 10;\n\t\tthis.up = 11;\n\t\tthis.down = 11;\n\t}\n\tsubclassOf(Comment, FakeSVG);\n\tComment.prototype.needsSpace = true;\n\tComment.prototype.format = function(x, y, width) {\n\t\t// Hook up the two sides if this is narrower than its stated width.\n\t\tvar gaps = determineGaps(width, this.width);\n\t\tPath(x,y).h(gaps[0]).addTo(this);\n\t\tPath(x+gaps[0]+this.width,y).h(gaps[1]).addTo(this);\n\t\tx += gaps[0];\n\n\t\tFakeSVG('text', {x:x+this.width/2, y:y+5, class:'comment'}, this.text).addTo(this);\n\t\treturn this;\n\t}\n\n\tfunction Skip() {\n\t\tif(!(this instanceof Skip)) return new Skip();\n\t\tFakeSVG.call(this, 'g');\n\t\tthis.width = 0;\n\t\tthis.up = 0;\n\t\tthis.down = 0;\n\t}\n\tsubclassOf(Skip, FakeSVG);\n\tSkip.prototype.format = function(x, y, width) {\n\t\tPath(x,y).right(width).addTo(this);\n\t\treturn this;\n\t}\n\t\n/* TiddlyWiki: added linking ability */\n\tfunction Link(item,options) {\n\t\tif(!(this instanceof Link)) return new Link(item,options);\n\t\tFakeSVG.call(this,'a',options);\n\t\tthis.item = item;\n\t\tthis.width = item.width;\n\t\tthis.up = item.up;\n\t\tthis.down = item.down;\n\t}\n\tsubclassOf(Link, FakeSVG);\n\tLink.prototype.needsSpace = true;\n\tLink.prototype.format = function(x, y, width) {\n\t\tthis.item.format(x,y,width).addTo(this);\n\t\treturn this;\n\t}\n\n/* TiddlyWiki: this block replaces the export mechanism in the original library */\n\tif (exports) {\n\t\texports.Diagram = Diagram;\n\t\texports.Sequence = Sequence;\n\t\texports.Choice = Choice;\n\t\texports.Optional = Optional;\n\t\texports.OneOrMore = OneOrMore;\n\t\texports.ZeroOrMore = ZeroOrMore;\n\t\texports.Terminal = Terminal;\n\t\texports.NonTerminal = NonTerminal;\n\t\texports.Comment = Comment;\n\t\texports.Skip = Skip;\n\t\texports.Link = Link;\n\t};\n})(\n\t{\n\tVERTICAL_SEPARATION: 8,\n\tARC_RADIUS: 10,\n\tDIAGRAM_CLASS: 'railroad-diagram',\n\tSTROKE_ODD_PIXEL_LENGTH: true,\n\tINTERNAL_ALIGNMENT: 'center',\n\t}\n);\n\n/* TiddlyWiki: removed assignments to properties of the window object */\n\n})($tw.node ? $tw.fakeDocument : window.document)\n", + "type": "application/javascript", + "title": "$:/plugins/tiddlywiki/railroad/railroad-diagrams.js", + "module-type": "library" + }, + "$:/plugins/tiddlywiki/railroad/parser.js": { + "title": "$:/plugins/tiddlywiki/railroad/parser.js", + "text": "/*\\\ntitle: $:/plugins/tiddlywiki/railroad/parser.js\ntype: application/javascript\nmodule-type: library\n\nParser for the source of a railroad diagram.\n\n[:x]\t\t\toptional, normally included\n[x]\t\t\t\toptional, normally omitted\n{x}\t\t\t\tone or more\n{x +\",\"}\t\tone or more, comma-separated\n[{:x}]\t\t\tzero or more, normally included\n[{:x +\",\"}]\t\tzero or more, comma-separated, normally included\n[{x}]\t\t\tzero or more, normally omitted\n[{x +\",\"}]\t\tzero or more, comma-separated, normally omitted\nx y z\t\t\tsequence\n<-x y z->\t\texplicit sequence\n(x|y|z)\t\t\talternatives\n(x|:y|z)\t\talternatives, normally y\n\"x\"\t\t\t\tterminal\n<\"x\">\t\t\tnonterminal\n/\"blah\"/\t\tcomment\n-\t\t\t\tdummy\n[[x|\"tiddler\"]]\tlink\n{{\"tiddler\"}}\ttransclusion\n\n\"x\" can also be written 'x' or \"\"\"x\"\"\"\n\npragmas:\n\t\\arrow yes|no\n\t\\debug yes|no\n\t\\start single|double|none\n\t\\end single|double|none\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar components = require(\"$:/plugins/tiddlywiki/railroad/components.js\").components;\n\nvar Parser = function(widget,source,options) {\n\tthis.widget = widget;\n\tthis.source = source;\n\tthis.options = options;\n\tthis.tokens = this.tokenise(source);\n\tthis.tokenPos = 0;\n\tthis.advance();\n\tthis.content = this.parseContent();\n\tthis.root = new components.Root(this.content);\n\tthis.checkFinished();\n};\n\n/////////////////////////// Parser dispatch\n\nParser.prototype.parseContent = function() {\n\tvar content = [];\n\t// Parse zero or more components\n\twhile(true) {\n\t\tvar component = this.parseComponent();\n\t\tif(!component) {\n\t\t\tbreak;\n\t\t}\n\t\tif(!component.isPragma) {\n\t\t\tcontent.push(component);\n\t\t}\n\t}\n\treturn content;\n};\n\nParser.prototype.parseComponent = function() {\n\tvar component = null;\n\tif(this.token) {\n\t\tif(this.at(\"string\")) {\n\t\t\tcomponent = this.parseTerminal();\n\t\t} else if(this.at(\"name\")) {\n\t\t\tcomponent = this.parseName();\n\t\t} else if(this.at(\"pragma\")) {\n\t\t\tcomponent = this.parsePragma();\n\t\t} else {\n\t\t\tswitch(this.token.value) {\n\t\t\t\tcase \"[\":\n\t\t\t\t\tcomponent = this.parseOptional();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"{\":\n\t\t\t\t\tcomponent = this.parseRepeated();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\":\n\t\t\t\t\tcomponent = this.parseNonterminal();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"(\":\n\t\t\t\t\tcomponent = this.parseChoice();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\":\n\t\t\t\t\tcomponent = this.parseComment();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"[[\":\n\t\t\t\t\tcomponent = this.parseLink();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"{{\":\n\t\t\t\t\tcomponent = this.parseTransclusion();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<-\":\n\t\t\t\t\tcomponent = this.parseSequence();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-\":\n\t\t\t\t\tcomponent = this.parseDummy();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn component;\n};\n\n/////////////////////////// Specific components\n\nParser.prototype.parseChoice = function() {\n\t// Consume the (\n\tthis.advance();\n\tvar content = [],\n\t\tcolon = -1;\n\tdo {\n\t\t// Allow at most one branch to be prefixed with a colon\n\t\tif(colon === -1 && this.eat(\":\")) {\n\t\t\tcolon = content.length;\n\t\t}\n\t\t// Parse the next branch\n\t\tcontent.push(this.parseContent());\n\t} while(this.eat(\"|\"));\n\t// Consume the closing bracket\n\tthis.close(\")\");\n\t// Create a component\n\treturn new components.Choice(content,colon === -1 ? 0 : colon);\n};\n\nParser.prototype.parseComment = function() {\n\t// Consume the /\n\tthis.advance();\n\t// The comment's content should be in a string literal\n\tvar content = this.expectString(\"after /\");\n\t// Consume the closing /\n\tthis.close(\"/\");\n\t// Create a component\n\treturn new components.Comment(content);\n};\n\nParser.prototype.parseDummy = function() {\n\t// Consume the -\n\tthis.advance();\n\t// Create a component\n\treturn new components.Dummy();\n};\n\nParser.prototype.parseLink = function() {\n\t// Consume the [[\n\tthis.advance();\n\t// Parse the content\n\tvar content = this.parseContent();\n\t// Consume the |\n\tthis.expect(\"|\");\n\t// Consume the target\n\tvar target = this.expectNameOrString(\"as link target\");\n\t// Prepare some attributes for the SVG \"a\" element to carry\n\tvar options = {\"data-tw-target\": target};\n\tif($tw.utils.isLinkExternal(target)) {\n\t\toptions[\"data-tw-external\"] = true;\n\t}\n\t// Consume the closing ]]\n\tthis.close(\"]]\");\n\t// Create a component\n\treturn new components.Link(content,options);\n};\n\nParser.prototype.parseName = function() {\n\t// Create a component\n\tvar component = new components.Nonterminal(this.token.value);\n\t// Consume the name\n\tthis.advance();\n\treturn component;\n};\n\nParser.prototype.parseNonterminal = function() {\n\t// Consume the <\n\tthis.advance();\n\t// The nonterminal's name should be in a string literal\n\tvar content = this.expectString(\"after <\");\n\t// Consume the closing bracket\n\tthis.close(\">\");\n\t// Create a component\n\treturn new components.Nonterminal(content);\n};\n\nParser.prototype.parseOptional = function() {\n\tvar wantArrow = this.options.arrow;\n\t// Consume the [\n\tthis.advance();\n\t// Consume the { if there is one\n\tvar repeated = this.eat(\"{\");\n\t// Note whether omission is the normal route\n\tvar normal = this.eat(\":\");\n\t// Parse the content\n\tvar content = this.parseContent(),\n\t\tseparator = null;\n\t// Parse the separator if there is one\n\tif(repeated && this.eat(\"+\")) {\n\t\tseparator = this.parseContent();\n\t}\n\t// Consume the closing brackets\n\tif(repeated) {\n\t\tthis.close(\"}\");\n\t}\n\tthis.close(\"]\");\n\t// Create a component\n\treturn repeated ? new components.OptionalRepeated(content,separator,normal,wantArrow)\n\t\t: new components.Optional(content,normal);\n};\n\nParser.prototype.parseRepeated = function() {\n\tvar wantArrow = this.options.arrow;\n\t// Consume the {\n\tthis.advance();\n\t// Parse the content\n\tvar content = this.parseContent(),\n\t\tseparator = null;\n\t// Parse the separator if there is one\n\tif(this.eat(\"+\")) {\n\t\tseparator = this.parseContent();\n\t}\n\t// Consume the closing bracket\n\tthis.close(\"}\");\n\t// Create a component\n\treturn new components.Repeated(content,separator,wantArrow);\n};\n\nParser.prototype.parseSequence = function() {\n\t// Consume the <-\n\tthis.advance();\n\t// Parse the content\n\tvar content = this.parseContent();\n\t// Consume the closing ->\n\tthis.close(\"->\");\n\t// Create a component\n\treturn new components.Sequence(content);\n};\n\nParser.prototype.parseTerminal = function() {\n\tvar component = new components.Terminal(this.token.value);\n\t// Consume the string literal\n\tthis.advance();\n return component;\n};\n\nParser.prototype.parseTransclusion = function() {\n\t// Consume the {{\n\tthis.advance();\n\t// Consume the text reference\n\tvar textRef = this.expectNameOrString(\"as transclusion source\");\n\t// Consume the closing }}\n\tthis.close(\"}}\");\n\t// Retrieve the content of the text reference\n\tvar source = this.widget.wiki.getTextReference(textRef,\"\",this.widget.getVariable(\"currentTiddler\"));\n\t// Parse the content\n\tvar content = new Parser(this.widget,source).content;\n\t// Create a component\n\treturn new components.Transclusion(content);\n};\n\n/////////////////////////// Pragmas\n\nParser.prototype.parsePragma = function() {\n\t// Create a dummy component\n\tvar component = { isPragma: true };\n\t// Consume the pragma\n\tvar pragma = this.token.value;\n\tthis.advance();\n\t// Apply the setting\n\tif(pragma === \"arrow\") {\n\t\tthis.options.arrow = this.parseYesNo(pragma);\t\t\n\t} else if(pragma === \"debug\") {\n\t\tthis.options.debug = true;\n\t} else if(pragma === \"start\") {\n\t\tthis.options.start = this.parseTerminusStyle(pragma);\t\t\n\t} else if(pragma === \"end\") {\n\t\tthis.options.end = this.parseTerminusStyle(pragma);\t\t\n\t} else {\n\t\tthrow \"Invalid pragma\";\n\t}\n\treturn component;\n};\n\nParser.prototype.parseYesNo = function(pragma) {\n\treturn this.parseSetting([\"yes\",\"no\"],pragma) === \"yes\";\n}\n\nParser.prototype.parseTerminusStyle = function(pragma) {\n\treturn this.parseSetting([\"single\",\"double\",\"none\"],pragma);\n}\n\nParser.prototype.parseSetting = function(options,pragma) {\n\tif(this.at(\"name\") && options.indexOf(this.token.value) !== -1) {\n\t\treturn this.tokenValueEaten();\t\t\n\t}\n\tthrow options.join(\" or \") + \" expected after \\\\\" + pragma;\n}\n\n/////////////////////////// Token manipulation\n\nParser.prototype.advance = function() {\n\tif(this.tokenPos >= this.tokens.length) {\n\t\tthis.token = null;\n\t}\n\tthis.token = this.tokens[this.tokenPos++];\n};\n\nParser.prototype.at = function(token) {\n\treturn this.token && (this.token.type === token || this.token.type === \"token\" && this.token.value === token);\n};\n\nParser.prototype.eat = function(token) {\n\tvar at = this.at(token);\n\tif(at) {\n\t\tthis.advance();\n\t}\n\treturn at;\n};\n\nParser.prototype.tokenValueEaten = function() {\n\tvar output = this.token.value;\n\tthis.advance();\n\treturn output;\n};\n\nParser.prototype.close = function(token) {\n\tif(!this.eat(token)) {\n\t\tthrow \"Closing \" + token + \" expected\";\n\t}\n};\n\nParser.prototype.checkFinished = function() {\n\tif(this.token) {\n\t\tthrow \"Syntax error at \" + this.token.value;\n\t}\n};\n\nParser.prototype.expect = function(token) {\n\tif(!this.eat(token)) {\n\t\tthrow token + \" expected\";\n\t}\n};\n\nParser.prototype.expectString = function(context,token) {\n\tif(!this.at(\"string\")) {\n\t\ttoken = token || \"String\";\n\t\tthrow token + \" expected \" + context;\n\t}\n\treturn this.tokenValueEaten();\n};\n\nParser.prototype.expectNameOrString = function(context) {\n\tif(this.at(\"name\")) {\n\t\treturn this.tokenValueEaten();\n\t}\n\treturn this.expectString(context,\"Name or string\");\n};\n\n/////////////////////////// Tokenisation\n\nParser.prototype.tokenise = function(source) {\n\tvar tokens = [],\n\t\tpos = 0,\n\t\tc, s, token;\n\twhile(pos < source.length) {\n\t\t// Initialise this iteration\n\t\ts = token = null;\n\t\t// Skip whitespace\n\t\tpos = $tw.utils.skipWhiteSpace(source,pos);\n\t\t// Avoid falling off the end of the string\n\t\tif (pos >= source.length) {\n\t\t\tbreak;\n\t\t}\n\t\t// Examine the next character\n\t\tc = source.charAt(pos);\n\t\tif(\"\\\"'\".indexOf(c) !== -1) {\n\t\t\t// String literal\n\t\t\ttoken = $tw.utils.parseStringLiteral(source,pos);\n\t\t\tif(!token) {\n\t\t\t\tthrow \"Unterminated string literal\";\n\t\t\t}\n\t\t} else if(\"[]{}\".indexOf(c) !== -1) {\n\t\t\t// Single or double character\n\t\t\ts = source.charAt(pos+1) === c ? c + c : c;\n\t\t} else if(c === \"<\") {\n\t\t\t// < or <-\n\t\t\ts = source.charAt(pos+1) === \"-\" ? \"<-\" : \"<\";\n\t\t} else if(c === \"-\") {\n\t\t\t// - or ->\n\t\t\ts = source.charAt(pos+1) === \">\" ? \"->\" : \"-\";\n\t\t} else if(\"()>+/:|\".indexOf(c) !== -1) {\n\t\t\t// Single character\n\t\t\ts = c;\n\t\t} else if(c.match(/[a-zA-Z]/)) {\n\t\t\t// Name\n\t\t\ttoken = this.readName(source,pos);\n\t\t} else if(c.match(/\\\\/)) {\n\t\t\t// Pragma\n\t\t\ttoken = this.readPragma(source,pos);\n\t\t} else {\n\t\t\tthrow \"Syntax error at \" + c;\n\t\t}\n\t\t// Add our findings to the return array\n\t\tif(token) {\n\t\t\ttokens.push(token);\n\t\t} else {\n\t\t\ttoken = $tw.utils.parseTokenString(source,pos,s);\n\t\t\ttokens.push(token);\n\t\t}\n\t\t// Prepare for the next character\n\t\tpos = token.end;\n\t}\n\treturn tokens;\n};\n\nParser.prototype.readName = function(source,pos) {\n\tvar re = /([a-zA-Z0-9_.-]+)/g;\n\tre.lastIndex = pos;\n\tvar match = re.exec(source);\n\tif(match && match.index === pos) {\n\t\treturn {type: \"name\", value: match[1], start: pos, end: pos+match[1].length};\n\t} else {\n\t\tthrow \"Invalid name\";\n\t}\n};\n\nParser.prototype.readPragma = function(source,pos) {\n\tvar re = /([a-z]+)/g;\n\tpos++;\n\tre.lastIndex = pos;\n\tvar match = re.exec(source);\n\tif(match && match.index === pos) {\n\t\treturn {type: \"pragma\", value: match[1], start: pos, end: pos+match[1].length};\n\t} else {\n\t\tthrow \"Invalid pragma\";\n\t}\n};\n\n/////////////////////////// Exports\n\nexports.parser = Parser;\n\n})();", + "type": "application/javascript", + "module-type": "library" + }, + "$:/plugins/tiddlywiki/railroad/typed-parser.js": { + "title": "$:/plugins/tiddlywiki/railroad/typed-parser.js", + "text": "/*\\\ntitle: $:/plugins/tiddlywiki/railroad/typed-parser.js\ntype: application/javascript\nmodule-type: parser\n\nThis parser wraps unadorned railroad syntax into a railroad widget\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar RailroadParser = function(type,text,options) {\n\tvar element = {\n\t\t\ttype: \"railroad\",\n\t\t\ttag: \"$railroad\",\n\t\t\ttext: text\n\t\t};\n\tthis.tree = [element];\nconsole.log(text);\n};\n\nexports[\"text/vnd.tiddlywiki.railroad\"] = RailroadParser;\n\n})();\n\n", + "type": "application/javascript", + "module-type": "parser" + }, + "$:/plugins/tiddlywiki/railroad/wrapper.js": { + "title": "$:/plugins/tiddlywiki/railroad/wrapper.js", + "text": "/*\\\ntitle: $:/plugins/tiddlywiki/railroad/wrapper.js\ntype: application/javascript\nmodule-type: widget\n\nWrapper for `railroad-diagrams.js` that provides a `<$railroad>` widget.\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true */\n/*global $tw: false */\n\"use strict\";\n\nvar Parser = require(\"$:/plugins/tiddlywiki/railroad/parser.js\").parser,\n\tWidget = require(\"$:/core/modules/widgets/widget.js\").widget;\n\nvar RailroadWidget = function(parseTreeNode,options) {\n\tthis.initialise(parseTreeNode,options);\n};\n\nvar RAILROAD_OPTIONS = \"$:/config/railroad\";\n\n/*\nInherit from the base widget class\n*/\nRailroadWidget.prototype = new Widget();\n\n/*\nRender this widget into the DOM\n*/\nRailroadWidget.prototype.render = function(parent,nextSibling) {\n\t// Housekeeping\n\tthis.parentDomNode = parent;\n\tthis.computeAttributes();\n\tthis.execute();\n\t// Get the source text\n\tvar source = this.getAttribute(\"text\",this.parseTreeNode.text || \"\");\n\t// Create a div to contain the SVG or error message\n\tvar div = this.document.createElement(\"div\");\n\ttry {\n\t\t// Initialise options from the config tiddler or widget attributes\n\t\tvar config = this.wiki.getTiddlerData(RAILROAD_OPTIONS,{});\n\t\tvar options = {\n\t\t\tarrow: this.getAttribute(\"arrow\", config.arrow || \"yes\") === \"yes\",\n\t\t\tdebug: this.getAttribute(\"debug\", config.debug || \"no\") === \"yes\",\n\t\t\tstart: this.getAttribute(\"start\", config.start || \"single\"),\n\t\t\tend: this.getAttribute(\"end\", config.end || \"single\")\n\t\t};\n\t\t// Parse the source\n\t\tvar parser = new Parser(this,source,options);\n\t\t// Generate content into the div\n\t\tif(parser.options.debug) {\n\t\t\tthis.renderDebug(parser,div);\n\t\t} else {\n\t\t\tthis.renderSvg(parser,div);\n\t\t}\n\t} catch(ex) {\n\t\tdiv.className = \"tc-error\";\n\t\tdiv.textContent = ex;\n\t}\n\t// Insert the div into the DOM\n\tparent.insertBefore(div,nextSibling);\n\tthis.domNodes.push(div);\n};\n\nRailroadWidget.prototype.renderDebug = function(parser,div) {\n\tvar output = [\"<pre>\"];\n\tparser.root.debug(output, \"\");\n\toutput.push(\"</pre>\");\n\tdiv.innerHTML = output.join(\"\");\n};\n\nRailroadWidget.prototype.renderSvg = function(parser,div) {\n\t// Generate a model of the diagram\n\tvar fakeSvg = parser.root.toSvg(parser.options);\n\t// Render the model into a tree of SVG DOM nodes\n\tvar svg = fakeSvg.toSVG();\n\t// Fill in the remaining attributes of any link nodes\n\tthis.patchLinks(svg);\n\t// Insert the SVG tree into the div\n\tdiv.appendChild(svg);\n};\n\nRailroadWidget.prototype.patchLinks = function(node) {\n\tvar self = this;\n\tif(!$tw.node && node.hasChildNodes()) {\n\t\tvar children = node.childNodes;\n\t\tfor(var i=0; i<children.length; i++) {\n\t\t\tvar child = children[i];\n\t\t\tvar attributes = child.attributes;\n\t\t\tif(attributes) {\n\t\t\t\t// Find each element that has a data-tw-target attribute\n\t\t\t\tvar target = child.attributes[\"data-tw-target\"];\n\t\t\t\tif(target !== undefined) {\n\t\t\t\t\ttarget = target.value;\n\t\t\t\t\tif(child.attributes[\"data-tw-external\"]) {\n\t\t\t\t\t\t// External links are straightforward\n\t\t\t\t\t\tchild.setAttribute(\"target\",\"_blank\");\n\t\t\t\t\t\tchild.setAttribute(\"rel\",\"noopener noreferrer\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Each internal link gets its own onclick handler, capturing its own copy of target\n\t\t\t\t\t\t(function(myTarget) {\n\t\t\t\t\t\t\tchild.onclick = function(event) {\n\t\t\t\t\t\t\t\tself.dispatchLink(myTarget,event);\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})(target);\n\t\t\t\t\t\ttarget = \"#\" + target;\n\t\t\t\t\t}\n\t\t\t\t\tchild.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"href\",target);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.patchLinks(child);\n\t\t}\n\t}\n};\n\nRailroadWidget.prototype.refresh = function(changedTiddlers) {\n\tvar changedAttributes = this.computeAttributes();\n\tif(changedAttributes.text || changedTiddlers[RAILROAD_OPTIONS]) {\n\t\tthis.refreshSelf();\n\t\treturn true;\n\t}\n\treturn false;\t\n};\n\nRailroadWidget.prototype.dispatchLink = function(to,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: \"tm-navigate\",\n\t\tnavigateTo: to,\n\t\tnavigateFromTitle: this.getVariable(\"storyTiddler\"),\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});\n\tevent.preventDefault();\n\tevent.stopPropagation();\n\treturn false;\n};\n\nexports.railroad = RailroadWidget;\n\n})();", + "type": "application/javascript", + "module-type": "widget" + } + } +}+
www.youtube.com: richlink/youtube +soundcloud.com: richlink/soundcloud +en.wikipedia.org: richlink/wikipedia +tiddlywiki.com: richlink/docs +twitter.com: richlink/tweet +github.com: richlink/github +jsfiddle.net: richlink/jsfiddle +disq.us: richlink/disqus +pdf: richlink/iframe +txt: richlink/txt +jpg: richlink/img +JPG: richlink/img +png: richlink/img +mp3: richlink/audio +ogg: richlink/audio +wav: richlink/audio +flac: richlink/audio +mp4: richlink/video +ogv: richlink/video +webm: richlink/video+
<audio src=<<link>> controls preload="auto" class="richlink-audio"/> + +<style> +.richlink-audio {width:100%;} +</style>+
<div class="richlink-img"> +<$image source=<<link>>/> +<span class="richlink-img-caption"> +<<1>> +</span> +</div> + +<style> +.richlink-img { + display:inline-block; + background: #fff; + margin: 0 0 27px 30px; + padding: 10px 10px 15px; + text-align: center; + font-family: "Marker Felt",sans-serif; + text-decoration: none; + color: #333; + font-size: 18px; + -webkit-box-shadow: 0 3px 6px rgba(0,0,0,.55); + -moz-box-shadow: 0 3px 6px rgba(0,0,0,.55); + -webkit-transform: rotate(-2deg); + -webkit-transition: -webkit-transform .15s linear; + -moz-transform: rotate(-2deg); +} +.richlink-img-caption { + display:block; + text-align:center; +} +</style>+
\define rich-youtube(link) +<iframe class=rich-iframe src="$link$" frameborder="0" width=100% allowfullscreen/> +\end + +<$set name=link + filter="[<link>search[watch]split:after[=]addprefix[https://www.youtube.com/embed/]]" + emptyValue=<<link>> > +<$macrocall $name=rich-youtube link=<<link>> /> +</$set> + +<style>.rich-iframe {height:calc(0.56 * {{$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth}}); } +</style>+
<div class="tc-table-of-contents"> + +<<toc-selective-expandable 'Copincha/Sidebar' sort[orden] !tag[todo]>> +</div>+
<div class="tc-table-of-contents"> + +<<toc-selective-expandable '$:/Sidebar/Encuentros' sort[orden] !tag[todo]>> +</div>+
{{$:/plugins/felixhayashi/tiddlymap/hook/editor}}+
<div class="tc-table-of-contents"> + +<<toc-selective-expandable 'Project' sort[orden]>> +</div>+
Wiki del Hackerspace Copincha+
Copinchapedia+
<$edit-text tiddler=<<currentTiddler>> class="tc-spell-check-preview"/> + +<style> +.tc-spell-check-preview {width:100%;} +</style>+
$:/core/ui/AdvancedSearch/Filter+
$:/core/ui/DefaultSearchResultList+
$:/temp/commander/logs/tid-2+
addfields+
{}+
unchecked+
history+
$:/core/ui/DefaultSearchResultList+
closed+
closed+
closed+
closed+
yes+
yes+
$:/core/ui/AdvancedSearch/Filter+
$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/draft+
Responders Statistics+
$:/core/ui/ControlPanel/Theme+
Responders Statistics+
$:/core/ui/ControlPanel/Settings/TiddlyWiki+
$:/core/ui/ControlPanel/Plugins/Installed/Plugins+
$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/draft+
$:/core/ui/ControlPanel/Appearance+
$:/plugins/kookma/commander/tiddler/uicomp/delete-tiddlers+
$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/draft+
$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/draft+
$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/draft+
$:/plugins/felixhayashi/tiddlymap/dialog/fullscreenTiddlerEditor/original+
$:/plugins/kookma/shiraz/ui/ControlPanel/Settings+
$:/core/ui/DefaultSearchResultList+
$:/core/ui/DefaultSearchResultList+
$:/Sidebar/Mapa+
$:/core/ui/ControlPanel/Toolbars/PageControls+
$:/plugins/felixhayashi/tiddlymap/dialog/MapElementTypeManager/styling+
open+
open+
open+
open+
close+
open+
open+
open+
open+
open+
close+
open+
open+
close+
open+
open+
open+
open+
open+
open+
open+
open+
open+
open+
open+
open+
open+
open+
open+
open+
open+
open+
close+
close+
open+
open+
open+
close+
close+
open+
open+
open+
close+
open+
open+
close+
close+
open+
close+
open+
open+
open+
open+
open+
open+
open+
no+
$:/themes/tiddlywiki/seamless+
{ + "tiddlers": { + "$:/themes/tiddlywiki/seamless/base": { + "title": "$:/themes/tiddlywiki/seamless/base", + "tags": "[[$:/tags/Stylesheet]]", + "list-after": "$:/themes/tiddlywiki/vanilla/base", + "text": "\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline\n\n/*\nRules copied from Snow White\n*/\n\n.tc-page-controls button svg, .tc-tiddler-controls button svg, .tc-topbar button svg {\n\t<<transition \"fill 150ms ease-in-out\">>\n}\n\n.tc-tiddler-controls button.tc-selected svg {\n\t<<filter \"drop-shadow(0px -1px 2px rgba(0,0,0,0.25))\">>\n}\n\n.tc-drop-down {\n\tborder-radius: 4px;\n\t<<box-shadow \"2px 2px 10px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-block-dropdown {\n\tborder-radius: 4px;\n\t<<box-shadow \"2px 2px 10px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-modal-displayed {\n\t<<filter \"blur(4px)\">>\n}\n\n.tc-modal {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.3)\">>\n}\n\n.tc-modal-footer {\n\tborder-radius: 0 0 6px 6px;\n\t<<box-shadow \"inset 0 1px 0 #fff\">>;\n}\n\n.tc-alert {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.6)\">>\n}\n\n.tc-notification {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.3)\">>\n\ttext-shadow: 0 1px 0 rgba(255,255,255, 0.8);\n}\n\n.tc-message-box img {\n\t<<box-shadow \"1px 1px 3px rgba(0,0,0,0.5)\">>\n}\n\n/*\nSeamless modifications\n*/\n\n@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}) {\n\n\t/* Drop the tiddler frame padding */\n\tbody.tc-body .tc-tiddler-frame {\n\t\tpadding: 0;\n\t}\n\n\t/* Move the sidebar up so that the title lines up */\n\tbody.tc-body .tc-sidebar-scrollable {\n\t\tpadding: 43px 0 28px 42px;\n\t}\n\n\t/* Stop the tiddler info panel from bleeding into the tiddler frame padding */\n\tbody.tc-body .tc-tiddler-info {\n\t\tmargin: 0;\n\t}\n\n\t/* Stop message boxes from bleeding into the tiddler frame padding */\n\tbody.tc-body .tc-message-box {\n\t\tmargin: 21px 0 21px 0;\n\t}\n\n}\n\n/* Use the tiddler background colour for the page background */\nhtml body.tc-body {\n\tbackground-color: <<colour background>>;\n}\n\nhtml:-webkit-full-screen {\n\tbackground-color: <<colour background>>;\n}\n\n/* Adjust the colour of the page controls */\nbody.tc-body .tc-page-controls svg {\n\tfill: <<colour muted-foreground>>;\n}\n\n/* Adjust the colour of the sidebar selected tabs */\nbody.tc-body .tc-sidebar-lists .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: <<colour background>>;\n}\n" + } + } +}+
{"tiddlers":{"$:/themes/tiddlywiki/snowwhite/base":{"tags":"[[$:/tags/Stylesheet]]","text":"\\define sidebarbreakpoint-minus-one()\n<$text text={{{ [{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}removesuffix[px]subtract[1]addsuffix[px]] ~[{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}] }}}/>\n\\end\n\n\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline\n\n.tc-sidebar-header {\n\ttext-shadow: 0 1px 0 <<colour sidebar-foreground-shadow>>;\n}\n\n.tc-tiddler-info {\n\t<<box-shadow \"inset 1px 2px 3px rgba(0,0,0,0.1)\">>\n}\n\n@media screen {\n\t.tc-tiddler-frame {\n\t\t<<box-shadow \"1px 1px 5px rgba(0, 0, 0, 0.3)\">>\n\t}\n}\n\n@media (max-width: <<sidebarbreakpoint-minus-one>>) {\n\t.tc-tiddler-frame {\n\t\t<<box-shadow none>>\n\t}\n}\n\n.tc-page-controls button svg, .tc-tiddler-controls button svg, .tc-topbar button svg {\n\t<<transition \"fill 150ms ease-in-out\">>\n}\n\n.tc-tiddler-controls button.tc-selected,\n.tc-page-controls button.tc-selected {\n\t<<filter \"drop-shadow(0px -1px 2px rgba(0,0,0,0.25))\">>\n}\n\n.tc-tiddler-frame input.tc-edit-texteditor {\n\t<<box-shadow \"inset 0 1px 8px rgba(0, 0, 0, 0.15)\">>\n}\n\n.tc-edit-tags {\n\t<<box-shadow \"inset 0 1px 8px rgba(0, 0, 0, 0.15)\">>\n}\n\n.tc-tiddler-frame .tc-edit-tags input.tc-edit-texteditor {\n\t<<box-shadow \"none\">>\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<<box-shadow \"2px 2px 5px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-drop-down {\n\tborder-radius: 4px;\n\t<<box-shadow \"2px 2px 10px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-block-dropdown {\n\tborder-radius: 4px;\n\t<<box-shadow \"2px 2px 10px rgba(0, 0, 0, 0.5)\">>\n}\n\n.tc-modal {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.3)\">>\n}\n\n.tc-modal-footer {\n\tborder-radius: 0 0 6px 6px;\n\t<<box-shadow \"inset 0 1px 0 #fff\">>;\n}\n\n\n.tc-alert {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.6)\">>\n}\n\n.tc-notification {\n\tborder-radius: 6px;\n\t<<box-shadow \"0 3px 7px rgba(0,0,0,0.3)\">>\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<<background-linear-gradient \"left, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.0) 100%\">>\n}\n\n.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button {\n\t<<background-linear-gradient \"left, rgba(0,0,0,0.01) 0%, rgba(0,0,0,0.1) 100%\">>\n}\n\n.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button.tc-tab-selected {\n\t<<background-linear-gradient \"left, rgba(0,0,0,0.05) 0%, rgba(255,255,255,0.05) 100%\">>\n}\n\n.tc-message-box img {\n\t<<box-shadow \"1px 1px 3px rgba(0,0,0,0.5)\">>\n}\n\n.tc-plugin-info {\n\t<<box-shadow \"1px 1px 3px rgba(0,0,0,0.5)\">>\n}\n"}}}+
{"tiddlers":{"$:/themes/tiddlywiki/vanilla/themetweaks":{"tags":"$:/tags/ControlPanel/Appearance","caption":"{{$:/language/ThemeTweaks/ThemeTweaks}}","text":"\\define lingo-base() $:/language/ThemeTweaks/\n\n\\define replacement-text()\n[img[$(imageTitle)$]]\n\\end\n\n\\define backgroundimage-dropdown()\n<div class=\"tc-drop-down-wrapper\">\n<$button popup=<<qualify \"$:/state/popup/themetweaks/backgroundimage\">> class=\"tc-btn-invisible tc-btn-dropdown\">{{$:/core/images/down-arrow}}</$button>\n<$reveal state=<<qualify \"$:/state/popup/themetweaks/backgroundimage\">> type=\"popup\" position=\"belowleft\" text=\"\" default=\"\">\n<div class=\"tc-drop-down\">\n<$macrocall $name=\"image-picker\" actions=\"\"\"\n\n<$action-setfield\n\t$tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\"\n\t$value=<<imageTitle>>\n/>\n\n\"\"\"/>\n</div>\n</$reveal>\n</div>\n\\end\n\n\\define backgroundimageattachment-dropdown()\n<$select tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment\" default=\"scroll\">\n<option value=\"scroll\"><<lingo Settings/BackgroundImageAttachment/Scroll>></option>\n<option value=\"fixed\"><<lingo Settings/BackgroundImageAttachment/Fixed>></option>\n</$select>\n\\end\n\n\\define backgroundimagesize-dropdown()\n<$select tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize\" default=\"scroll\">\n<option value=\"auto\"><<lingo Settings/BackgroundImageSize/Auto>></option>\n<option value=\"cover\"><<lingo Settings/BackgroundImageSize/Cover>></option>\n<option value=\"contain\"><<lingo Settings/BackgroundImageSize/Contain>></option>\n</$select>\n\\end\n\n<<lingo ThemeTweaks/Hint>>\n\n! <<lingo Options>>\n\n|<$link to=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\"><<lingo Options/SidebarLayout>></$link> |<$select tiddler=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\"><option value=\"fixed-fluid\"><<lingo Options/SidebarLayout/Fixed-Fluid>></option><option value=\"fluid-fixed\"><<lingo Options/SidebarLayout/Fluid-Fixed>></option></$select> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/options/stickytitles\"><<lingo Options/StickyTitles>></$link><br>//<<lingo Options/StickyTitles/Hint>>// |<$select tiddler=\"$:/themes/tiddlywiki/vanilla/options/stickytitles\"><option value=\"no\">{{$:/language/No}}</option><option value=\"yes\">{{$:/language/Yes}}</option></$select> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/options/codewrapping\"><<lingo Options/CodeWrapping>></$link> |<$select tiddler=\"$:/themes/tiddlywiki/vanilla/options/codewrapping\"><option value=\"pre\">{{$:/language/No}}</option><option value=\"pre-wrap\">{{$:/language/Yes}}</option></$select> |\n\n! <<lingo Settings>>\n\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/fontfamily\"><<lingo Settings/FontFamily>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/fontfamily\" default=\"\" tag=\"input\"/> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/codefontfamily\"><<lingo Settings/CodeFontFamily>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/codefontfamily\" default=\"\" tag=\"input\"/> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\"><<lingo Settings/EditorFontFamily>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\" default=\"\" tag=\"input\"/> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\"><<lingo Settings/BackgroundImage>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimage\" default=\"\" tag=\"input\"/> |<<backgroundimage-dropdown>> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment\"><<lingo Settings/BackgroundImageAttachment>></$link> |<<backgroundimageattachment-dropdown>> | |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize\"><<lingo Settings/BackgroundImageSize>></$link> |<<backgroundimagesize-dropdown>> | |\n\n! <<lingo Metrics>>\n\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/fontsize\"><<lingo Metrics/FontSize>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/fontsize\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/lineheight\"><<lingo Metrics/LineHeight>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/lineheight\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize\"><<lingo Metrics/BodyFontSize>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/bodylineheight\"><<lingo Metrics/BodyLineHeight>></$link> |<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/bodylineheight\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storyleft\"><<lingo Metrics/StoryLeft>></$link><br>//<<lingo Metrics/StoryLeft/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storyleft\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storytop\"><<lingo Metrics/StoryTop>></$link><br>//<<lingo Metrics/StoryTop/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storytop\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storyright\"><<lingo Metrics/StoryRight>></$link><br>//<<lingo Metrics/StoryRight/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storyright\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/storywidth\"><<lingo Metrics/StoryWidth>></$link><br>//<<lingo Metrics/StoryWidth/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/storywidth\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth\"><<lingo Metrics/TiddlerWidth>></$link><br>//<<lingo Metrics/TiddlerWidth/Hint>>//<br> |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\"><<lingo Metrics/SidebarBreakpoint>></$link><br>//<<lingo Metrics/SidebarBreakpoint/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\" default=\"\" tag=\"input\"/> |\n|<$link to=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth\"><<lingo Metrics/SidebarWidth>></$link><br>//<<lingo Metrics/SidebarWidth/Hint>>// |^<$edit-text tiddler=\"$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth\" default=\"\" tag=\"input\"/> |\n"},"$:/themes/tiddlywiki/vanilla/base":{"tags":"[[$:/tags/Stylesheet]]","text":"\\define custom-background-datauri()\n<$set name=\"background\" value={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}}>\n<$list filter=\"[<background>is[image]]\">\n`background: url(`\n<$list filter=\"[<background>!has[_canonical_uri]]\">\n`\"`<$macrocall $name=\"datauri\" title={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}}/>`\"`\n</$list>\n<$list filter=\"[<background>has[_canonical_uri]]\">\n`\"`<$view tiddler={{$:/themes/tiddlywiki/vanilla/settings/backgroundimage}} field=\"_canonical_uri\"/>`\"`\n</$list>\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</$list>\n</$set>\n\\end\n\n\\define sidebarbreakpoint()\n<$text text={{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}/>\n\\end\n\n\\define sidebarbreakpoint-minus-one()\n<$text text={{{ [{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}removesuffix[px]subtract[1]addsuffix[px]] ~[{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}] }}}/>\n\\end\n\n\\define if-fluid-fixed(text,hiddenSidebarText)\n<$reveal state=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\" type=\"match\" text=\"fluid-fixed\">\n$text$\n<$reveal state=\"$:/state/sidebar\" type=\"nomatch\" text=\"yes\" default=\"yes\">\n$hiddenSidebarText$\n</$reveal>\n</$reveal>\n\\end\n\n\\define if-editor-height-fixed(then,else)\n<$reveal state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"fixed\">\n$then$\n</$reveal>\n<$reveal state=\"$:/config/TextEditor/EditorHeight/Mode\" type=\"match\" text=\"auto\">\n$else$\n</$reveal>\n\\end\n\n\\define set-type-selector-min-width()\n<$set name=\"typeLength\" value={{{ [all[shadows+tiddlers]prefix[$:/language/Docs/Types/]get[name]length[]maxall[]] }}}>\n\n\t.tc-type-selector-dropdown-wrapper {\n\t\tmin-width: calc(<<typeLength>>ch + 4em);\n\t}\n\n\t.tc-type-selector-dropdown-wrapper input.tc-edit-typeeditor {\n\t\tmin-width: <<typeLength>>ch;\n\t}\n\n</$set>\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=\"search\"] {\n\tbox-sizing: border-box;\n\t-moz-box-sizing: border-box;\n\t-webkit-box-sizing: border-box;\n}\n\ninput[type=\"search\"] {\n outline-offset: initial;\n}\n\nhtml button {\n\tline-height: 1.2;\n\tcolor: <<colour button-foreground>>;\n\tfill: <<colour button-foreground>>;\n\tbackground: <<colour button-background>>;\n\tborder-color: <<colour button-border>>;\n}\n\n/*\n** Basic element styles\n*/\n\nhtml, body {\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: <<colour page-background>>;\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<<custom-background-datauri>>\n\tcolor: <<colour foreground>>;\n\tbackground-color: <<colour page-background>>;\n\tfill: <<colour foreground>>;\n}\n\n<<if-background-attachment \"\"\"\n\nbody.tc-body {\n background-color: transparent;\n}\n\n\"\"\">>\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n\tfont-size: 2em;\n}\n\nh1, h2, h3, h4, h5, h6 {\n\tline-height: 1.2;\n\tfont-weight: 300;\n}\n\npre {\n\tdisplay: block;\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: <<colour pre-background>>;\n\tborder: 1px solid <<colour pre-border>>;\n\tpadding: 0 3px 2px;\n\tborder-radius: 3px;\n\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/codefontfamily}};\n}\n\ncode {\n\tcolor: <<colour code-foreground>>;\n\tbackground-color: <<colour code-background>>;\n\tborder: 1px solid <<colour code-border>>;\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 <<colour blockquote-bar>>;\n\tmargin-left: 25px;\n\tpadding-left: 10px;\n\tquotes: \"\\201C\"\"\\201D\"\"\\2018\"\"\\2019\";\n}\n\nblockquote > div {\n\tmargin-top: 1em;\n\tmargin-bottom: 1em;\n}\n\nblockquote.tc-big-quote {\n\tfont-family: Georgia, serif;\n\tposition: relative;\n\tbackground: <<colour pre-background>>;\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: \"\\2014 \\2009\";\n}\n\nblockquote.tc-big-quote:before {\n\tfont-family: Georgia, serif;\n\tcolor: <<colour blockquote-bar>>;\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: <<colour blockquote-bar>>;\n\tcontent: close-quote;\n\tfont-size: 8em;\n\tline-height: 0.1em;\n\tmargin-right: 0.25em;\n\tvertical-align: -0.4em;\n\tposition: absolute;\n right: -80px;\n bottom: -20px;\n}\n\ndl dt {\n\tfont-weight: bold;\n\tmargin-top: 6px;\n}\n\nbutton, textarea, input, select {\n\toutline-color: <<colour primary>>;\n}\n\ntextarea,\ninput[type=text],\ninput[type=search],\ninput[type=\"\"],\ninput:not([type]) {\n\tcolor: <<colour foreground>>;\n\tbackground: <<colour background>>;\n}\n\ninput[type=\"checkbox\"] {\n vertical-align: middle;\n}\n\ninput[type=\"search\"]::-webkit-search-decoration,\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-results-button,\ninput[type=\"search\"]::-webkit-search-results-decoration {\n\t-webkit-appearance:none;\n}\n\n.tc-muted {\n\tcolor: <<colour muted-foreground>>;\n}\n\nsvg.tc-image-button {\n\tpadding: 0px 1px 1px 0px;\n}\n\n.tc-icon-wrapper > 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: <<colour foreground>>;\n\tvertical-align: middle;\n\tbackground-color: <<colour background>>;\n\tborder: solid 1px <<colour muted-foreground>>;\n\tborder-bottom-color: <<colour muted-foreground>>;\n\tborder-radius: 3px;\n\tbox-shadow: inset 0 -1px 0 <<colour muted-foreground>>;\n}\n\n::selection {\n\tbackground-color: Highlight;\n\tcolor: HighlightText;\n\tbackground-color: <<colour selection-background>>;\n\tcolor: <<colour selection-foreground>>;\n}\n\n/*\nMarkdown likes putting code elements inside pre elements\n*/\npre > code {\n\tpadding: 0;\n\tborder: none;\n\tbackground-color: inherit;\n\tcolor: inherit;\n}\n\ntable {\n\tborder: 1px solid <<colour table-border>>;\n\twidth: auto;\n\tmax-width: 100%;\n\tcaption-side: bottom;\n\tmargin-top: 1em;\n\tmargin-bottom: 1em;\n\t/* next 2 elements needed, since normalize 8.0.1 */\n\tborder-collapse: collapse;\n\tborder-spacing: 0;\n}\n\ntable th, table td {\n\tpadding: 0 7px 0 7px;\n\tborder-top: 1px solid <<colour table-border>>;\n\tborder-left: 1px solid <<colour table-border>>;\n}\n\ntable thead tr td, table th {\n\tbackground-color: <<colour table-header-background>>;\n\tfont-weight: bold;\n}\n\ntable tfoot tr td {\n\tbackground-color: <<colour table-footer-background>>;\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 > embed,\n.tc-tiddler-body > 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: <<colour tiddler-link-foreground>>;\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: <<colour sidebar-tiddler-link-foreground>>;\n}\n\n.tc-sidebar-lists a.tc-tiddlylink:hover {\n\tcolor: <<colour sidebar-tiddler-link-foreground-hover>>;\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: <<colour external-link-foreground>>;\n\tbackground-color: <<colour external-link-background>>;\n}\n\na.tc-tiddlylink-external:visited {\n\tcolor: <<colour external-link-foreground-visited>>;\n\tbackground-color: <<colour external-link-background-visited>>;\n}\n\na.tc-tiddlylink-external:hover {\n\tcolor: <<colour external-link-foreground-hover>>;\n\tbackground-color: <<colour external-link-background-hover>>;\n}\n\n.tc-drop-down a.tc-tiddlylink:hover {\n\tcolor: <<colour tiddler-link-background>>;\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: <<colour dragger-foreground>>;\n\ttext-shadow: 0 1px 0 rgba(0, 0, 0, 1);\n\twhite-space: nowrap;\n\tvertical-align: baseline;\n\tbackground-color: <<colour dragger-background>>;\n\tborder-radius: 20px;\n}\n\n.tc-tiddler-dragger-cover {\n\tposition: absolute;\n\tbackground-color: <<colour page-background>>;\n}\n\n.tc-page-container > .tc-dropzone {\n\tmin-height: 100vh;\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: <<colour dropzone-background>>;\n\ttext-align: center;\n\tcontent: \"<<lingo DropMessage>>\";\n}\n\n.tc-droppable > .tc-droppable-placeholder {\n\tdisplay: none;\n}\n\n.tc-droppable.tc-dragover > .tc-droppable-placeholder {\n\tdisplay: block;\n\tborder: 2px dashed <<colour dropzone-background>>;\n}\n\n.tc-draggable {\n\tcursor: move;\n}\n\n.tc-sidebar-tab-open .tc-droppable-placeholder, .tc-tagged-draggable-list .tc-droppable-placeholder,\n.tc-links-draggable-list .tc-droppable-placeholder {\n\tline-height: 2em;\n\theight: 2em;\n}\n\n.tc-sidebar-tab-open-item {\n\tposition: relative;\n}\n\n.tc-sidebar-tab-open .tc-btn-invisible.tc-btn-mini svg {\n\tfont-size: 0.7em;\n\tfill: <<colour muted-foreground>>;\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: <<colour alert-background>>;\n\ttext-align: center;\n}\n\n/*\n** Buttons\n*/\n\nbutton svg, button img, label svg, label img {\n\tvertical-align: middle;\n}\n\n.tc-btn-invisible {\n\tpadding: 0;\n\tmargin: 0;\n\tbackground: none;\n\tborder: none;\n\tcursor: pointer;\n\tcolor: <<colour foreground>>;\n\tfill: <<colour foreground>>;\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 <<colour tiddler-controls-foreground>>;\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: <<colour muted-foreground>>;\n\tcolor: <<colour background>>;\n}\n\nhtml body.tc-body .tc-btn-boxed:hover svg {\n\tfill: <<colour background>>;\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 <<colour muted-foreground>>;\n\tbackground: <<colour muted-foreground>>;\n\tcolor: <<colour background>>;\n\tborder-radius: 2em;\n}\n\nhtml body.tc-body .tc-btn-rounded svg {\n\tfont-size: 1.6666em;\n\tfill: <<colour background>>;\n}\n\n.tc-btn-rounded:hover {\n\tborder: 1px solid <<colour muted-foreground>>;\n\tbackground: <<colour background>>;\n\tcolor: <<colour muted-foreground>>;\n}\n\nhtml body.tc-body .tc-btn-rounded:hover svg {\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-btn-icon svg {\n\theight: 1em;\n\twidth: 1em;\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-btn-text {\n\tpadding: 0;\n\tmargin: 0;\n}\n\n/* used for documentation \"fake\" 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: <<colour download-background>>;\n\tcolor: <<colour download-foreground>>;\n\tfill: <<colour download-foreground>>;\n\tborder: none;\n\tborder-radius: 2px;\n\tfont-size: 1.2em;\n\tline-height: 1.4em;\n\ttext-decoration: none;\n}\n\n.tc-btn-big-green svg,\n.tc-btn-big-green img {\n\theight: 2em;\n\twidth: 2em;\n\tvertical-align: middle;\n\tfill: <<colour download-foreground>>;\n}\n\n.tc-primary-btn {\n \tbackground: <<colour primary>>;\n}\n\n.tc-sidebar-lists input {\n\tcolor: <<colour foreground>>;\n}\n\n.tc-sidebar-lists button {\n\tcolor: <<colour sidebar-button-foreground>>;\n\tfill: <<colour sidebar-button-foreground>>;\n}\n\n.tc-sidebar-lists button.tc-btn-mini {\n\tcolor: <<colour sidebar-muted-foreground>>;\n}\n\n.tc-sidebar-lists button.tc-btn-mini:hover {\n\tcolor: <<colour sidebar-muted-foreground-hover>>;\n}\n\n.tc-sidebar-lists button small {\n\tcolor: <<colour foreground>>;\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 <<colour tiddler-info-background>>;\n\tmargin-top: 4px;\n}\n\n.tc-unfold-banner:hover {\n\tbackground: <<colour tiddler-info-background>>;\n\tborder-top: 2px solid <<colour tiddler-info-border>>;\n}\n\n.tc-unfold-banner svg, .tc-fold-banner svg {\n\theight: 0.75em;\n\tfill: <<colour tiddler-controls-foreground>>;\n}\n\n.tc-unfold-banner:hover svg, .tc-fold-banner:hover svg {\n\tfill: <<colour tiddler-controls-foreground-hover>>;\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: <<colour tiddler-info-background>>;\n}\n\n@media (max-width: <<sidebarbreakpoint-minus-one>>) {\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}\n\n.tc-tags-wrapper {\n\tmargin: 4px 0 14px 0;\n}\n\n.tc-tags-wrapper .tc-tag-list-item {\n\tmargin-right: 7px;\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\n.tc-block-tags-dropdown > .tc-btn-invisible:hover {\n\tbackground-color: <<colour primary>>;\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: <<colour tag-foreground>>;\n\twhite-space: nowrap;\n\tvertical-align: baseline;\n\tbackground-color: <<colour tag-background>>;\n\tborder-radius: 1em;\n}\n\n.tc-sidebar-scrollable .tc-tag-label {\n\ttext-shadow: none;\n}\n\n.tc-untagged-separator {\n\twidth: 10em;\n\tleft: 0;\n\tmargin-left: 0;\n\tborder: 0;\n\theight: 1px;\n\tbackground: <<colour tab-divider>>;\n}\n\nbutton.tc-untagged-label {\n\tbackground-color: <<colour untagged-background>>;\n}\n\n.tc-tag-label svg, .tc-tag-label img {\n\theight: 1em;\n\twidth: 1em;\n\tmargin-right: 3px; \n\tmargin-bottom: 1px;\n\tvertical-align: bottom;\n}\n\n.tc-edit-tags button.tc-remove-tag-button svg {\n\tfont-size: 0.7em;\n\tvertical-align: middle;\n}\n\n.tc-tag-manager-table .tc-tag-label {\n\twhite-space: normal;\n}\n\n.tc-tag-manager-tag {\n\twidth: 100%;\n}\n\nbutton.tc-btn-invisible.tc-remove-tag-button {\n\toutline: none;\n}\n\n.tc-tag-button-selected,\n.tc-list-item-selected a.tc-tiddlylink, a.tc-list-item-selected {\n\tbackground-color: <<colour primary>>;\n\tcolor: <<colour tiddler-background>>;\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@media (max-width: <<sidebarbreakpoint-minus-one>>) {\n\n\t.tc-topbar-right {\n\t\tright: 10px;\n\t}\n\n}\n\n.tc-topbar button {\n\tpadding: 8px;\n}\n\n.tc-topbar svg {\n\tfill: <<colour muted-foreground>>;\n}\n\n.tc-topbar button:hover svg {\n\tfill: <<colour foreground>>;\n}\n\n@media (max-width: <<sidebarbreakpoint-minus-one>>) {\n\n\t.tc-show-sidebar-btn svg.tc-image-chevron-left, .tc-hide-sidebar-btn svg.tc-image-chevron-right {\n\t\ttransform: rotate(-90deg);\n\t}\n\n}\n\n.tc-sidebar-header {\n\tcolor: <<colour sidebar-foreground>>;\n\tfill: <<colour sidebar-foreground>>;\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: <<colour sidebar-foreground>>;\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: <<colour sidebar-controls-foreground>>;\n}\n\n.tc-page-controls button:hover svg, .tc-page-controls a:hover svg {\n\tfill: <<colour sidebar-controls-foreground-hover>>;\n}\n\n.tc-sidebar-lists .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: <<sidebarbreakpoint-minus-one>>) {\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\ttransition: min-height {{$:/config/AnimationDuration}}ms ease-in-out, padding-top {{$:/config/AnimationDuration}}ms ease-in-out, padding-bottom {{$:/config/AnimationDuration}}ms ease-in-out;\n\t}\n\t\n\t<<if-no-sidebar \"\"\"\n\n\t\t.tc-sidebar-header {\n\t\t\tmin-height: 0;\n\t\t\tpadding-top: 0;\n\t\t\tpadding-bottom: 0;\n\t\t}\n\n\t\"\"\">>\n\n\t.tc-story-river {\n\t\tposition: relative;\n\t\tpadding: 0;\n\t}\n}\n\n@media (min-width: <<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=\"rtl\"] .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<<if-no-sidebar \"\n\n\t.tc-story-river {\n\t\twidth: calc(100% - {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}});\n\t}\n\n\">>\n\n\t.tc-story-river.tc-static-story-river {\n\t\tmargin-right: 0;\n\t\tpadding-right: 42px;\n\t}\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: <<colour tiddler-background>>;\n\tborder: 1px solid <<colour tiddler-border>>;\n}\n\n{{$:/themes/tiddlywiki/vanilla/sticky}}\n\n.tc-tiddler-info {\n\toverflow: hidden;\n\tpadding: 14px 42px 14px 42px;\n\tbackground-color: <<colour tiddler-info-background>>;\n\tborder-top: 1px solid <<colour tiddler-info-border>>;\n\tborder-bottom: 1px solid <<colour tiddler-info-border>>;\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: <<colour tiddler-info-tab-background>>;\n\tborder-bottom: 1px solid <<colour tiddler-info-tab-background>>;\n}\n\n@media (max-width: <<sidebarbreakpoint-minus-one>>) {\n\n\t.tc-tiddler-info {\n\t\tpadding: 14px 14px 14px 14px;\n\t}\n\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: <<sidebarbreakpoint-minus-one>>) {\n\t.tc-tiddler-frame {\n\t\tpadding: 14px 14px 14px 14px;\n\t\tmargin-bottom: .5em;\n\t}\n\n\t.tc-tiddler-info {\n\t\tmargin: 0 -14px 0 -14px;\n\t}\n}\n\n@media (min-width: <<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<<if-no-sidebar \"\n\n\t.tc-tiddler-frame {\n\t\twidth: 100%;\n\t}\n\n\">>\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.35em;\n\tcolor: <<colour tiddler-title-foreground>>;\n\tmargin: 0;\n}\n\n.tc-site-title {\n\tcolor: <<colour site-title-foreground>>;\n}\n\n.tc-tiddler-title-icon {\n\tvertical-align: middle;\n\tmargin-right: .1em;\n}\n\n.tc-system-title-prefix {\n\tcolor: <<colour muted-foreground>>;\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: <<colour tiddler-subtitle-foreground>>;\n\tfont-weight: 300;\n}\n\n.tc-subtitle .tc-tiddlylink {\n\tmargin-right: .3em;\n}\n\n.tc-tiddler-missing .tc-title {\n font-style: italic;\n font-weight: normal;\n}\n\n.tc-tiddler-frame .tc-tiddler-controls {\n\tfloat: right;\n}\n\n.tc-tiddler-controls .tc-drop-down {\n\tfont-size: 0.6em;\n}\n\n.tc-tiddler-controls .tc-drop-down .tc-drop-down {\n\tfont-size: 1em;\n}\n\n.tc-tiddler-controls > span > button,\n.tc-tiddler-controls > span > span > button,\n.tc-tiddler-controls > span > span > span > 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: <<colour tiddler-controls-foreground>>;\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: <<colour tiddler-controls-foreground-selected>>;\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: <<colour tiddler-controls-foreground-hover>>;\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: <<colour muted-foreground>>;\n\tmargin-top: 14px;\n}\n\n.tc-tiddler-help a.tc-tiddlylink {\n\tcolor: <<colour very-muted-foreground>>;\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 <<colour tiddler-editor-border>>;\n\tline-height: 1.3em;\n\t-webkit-appearance: none;\n\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}};\n}\n\n.tc-tiddler-frame input.tc-edit-texteditor,\n.tc-tiddler-frame textarea.tc-edit-texteditor {\n\tbackground-color: <<colour tiddler-editor-background>>;\n}\n\n.tc-tiddler-frame iframe.tc-edit-texteditor {\n\tbackground-color: <<colour tiddler-background>>;\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: <<colour alert-background>>;\n\tborder: 1px solid <<colour alert-border>>;\n}\n\ncanvas.tc-edit-bitmapeditor {\n\tborder: 6px solid <<colour tiddler-editor-border-image>>;\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: <<colour tiddler-background>>;\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: <<colour tiddler-controls-foreground>>;\n\tcolor: <<colour tiddler-controls-foreground-selected>>;\n\tfill: <<colour tiddler-controls-foreground-selected>>;\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: <<colour primary>>;\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: <<colour tiddler-controls-foreground-selected>>;\n\tfill: <<colour background>>;\n\tcolor: <<colour background>>;\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: <<sidebarbreakpoint>>) {\n\n<<if-fluid-fixed text:\"\"\"\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\"\"\" hiddenSidebarText:\"\"\"\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\"\"\">>\n\n}\n\n/*\n** Toolbar buttons\n*/\n\n.tc-page-controls svg.tc-image-new-button {\n fill: <<colour toolbar-new-button>>;\n}\n\n.tc-page-controls svg.tc-image-options-button {\n fill: <<colour toolbar-options-button>>;\n}\n\n.tc-page-controls svg.tc-image-save-button {\n fill: <<colour toolbar-save-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-info-button {\n fill: <<colour toolbar-info-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-edit-button {\n fill: <<colour toolbar-edit-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-close-button {\n fill: <<colour toolbar-close-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-delete-button {\n fill: <<colour toolbar-delete-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-cancel-button {\n fill: <<colour toolbar-cancel-button>>;\n}\n\n.tc-tiddler-controls button svg.tc-image-done-button {\n fill: <<colour toolbar-done-button>>;\n}\n\n/*\n** Tiddler edit mode\n*/\n\n.tc-tiddler-edit-frame em.tc-edit {\n\tcolor: <<colour muted-foreground>>;\n\tfont-style: normal;\n}\n\n.tc-edit-type-dropdown a.tc-tiddlylink-missing {\n\tfont-style: normal;\n}\n\n.tc-type-selector .tc-edit-typeeditor {\n\twidth: auto;\n}\n\n.tc-type-selector-dropdown-wrapper {\n\tdisplay: inline-block;\n}\n\n<<set-type-selector-min-width>>\n\n.tc-edit-tags {\n\tborder: 1px solid <<colour tiddler-editor-border>>;\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 <<colour tiddler-editor-border>>;\n\tmargin: 4px 0 3px 3px;\n\tpadding: 3px 3px 3px 3px;\n}\n\n<<if-editor-height-fixed then:\"\"\"\n\n.tc-tiddler-preview-preview {\n\toverflow-y: scroll;\n\theight: {{$:/config/TextEditor/EditorHeight/Height}};\n}\n\n\"\"\">>\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.tc-edit-fields.tc-edit-fields-small {\n\tmargin-top: 0;\n\tmargin-bottom: 0;\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 > tbody > .tc-edit-field:nth-child(odd) {\n\tbackground-color: <<colour tiddler-editor-fields-odd>>;\n}\n\n.tc-edit-fields > tbody > .tc-edit-field:nth-child(even) {\n\tbackground-color: <<colour tiddler-editor-fields-even>>;\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: <<colour muted-foreground>>;\n\tvertical-align: middle;\n}\n\n.tc-edit-field-add-name-wrapper input.tc-edit-texteditor {\n\twidth: auto;\n}\n\n.tc-edit-field-add-name-wrapper {\n\tdisplay: inline-block;\n}\n\n.tc-edit-field-add-value {\n\tdisplay: inline-block;\n}\n\n@media (min-width: <<sidebarbreakpoint>>) {\n\n\t.tc-edit-field-add-value {\n\t\twidth: 35%;\n\t}\n\n}\n\n.tc-edit-field-add-button {\n\tdisplay: inline-block;\n\twidth: 10%;\n}\n\n/*\n** Storyview Classes\n*/\n\n.tc-viewswitcher .tc-image-button {\n\tmargin-right: .3em;\n}\n\n.tc-storyview-zoomin-tiddler {\n\tposition: absolute;\n\tdisplay: block;\n\twidth: 100%;\n}\n\n@media (min-width: <<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: <<colour muted-foreground>>;\n}\n\n.tc-drop-down-wrapper {\n\tposition: relative;\n}\n\n.tc-drop-down {\n\tmin-width: 380px;\n\tborder: 1px solid <<colour dropdown-border>>;\n\tbackground-color: <<colour dropdown-background>>;\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: <<colour foreground>>;\n}\n\n.tc-drop-down button.tc-btn-invisible:hover svg {\n\tfill: <<colour background>>;\n}\n\n.tc-drop-down .tc-drop-down-info {\n\tpadding-left: 14px;\n}\n\n.tc-drop-down p {\n\tpadding: 0 14px 0 14px;\n}\n\n.tc-drop-down svg {\n\twidth: 1em;\n\theight: 1em;\n}\n\n.tc-drop-down img {\n\twidth: 1em;\n}\n\n.tc-drop-down a, .tc-drop-down button {\n\tdisplay: block;\n\tpadding: 0 14px 0 14px;\n\twidth: 100%;\n\ttext-align: left;\n\tcolor: <<colour foreground>>;\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: <<colour foreground>>;\n}\n\n.tc-drop-down a:hover, .tc-drop-down button:hover, .tc-drop-down .tc-file-input-wrapper:hover button {\n\tcolor: <<colour tiddler-link-background>>;\n\tbackground-color: <<colour tiddler-link-foreground>>;\n\ttext-decoration: none;\n}\n\n.tc-drop-down .tc-tab-buttons button {\n\tbackground-color: <<colour dropdown-tab-background>>;\n}\n\n.tc-drop-down .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: <<colour dropdown-tab-background-selected>>;\n\tborder-bottom: 1px solid <<colour dropdown-tab-background-selected>>;\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 <<colour dropdown-border>>;\n\tbackground-color: <<colour dropdown-background>>;\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: <<colour muted-foreground>>;\n}\n\n.tc-block-dropdown a.tc-tiddlylink:hover {\n\tcolor: <<colour tiddler-link-background>>;\n\tbackground-color: <<colour tiddler-link-foreground>>;\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 <<colour muted-foreground>>;\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: <<colour primary>>;\n\tpadding: 0px;\n\tborder: 3px solid <<colour primary>>;\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: <<colour modal-backdrop>>;\n}\n\n.tc-modal {\n\tz-index: 1100;\n\tbackground-color: <<colour modal-background>>;\n\tborder: 1px solid <<colour modal-border>>;\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 <<colour modal-header-border>>;\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: <<colour modal-footer-background>>;\n\tborder-top: 1px solid <<colour modal-footer-border>>;\n}\n\n\n/*\n** Centered modals\n*/\n.tc-modal-centered .tc-modal {\n\twidth: auto;\n\ttop: 50%;\n\tleft: 50%;\n\ttransform: translate(-50%, -50%) !important;\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: <<colour notification-background>>;\n\tborder: 1px solid <<colour notification-border>>;\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: <<colour tab-foreground-selected>>;\n\tbackground-color: <<colour tab-background-selected>>;\n\tborder-left: 1px solid <<colour tab-border-selected>>;\n\tborder-top: 1px solid <<colour tab-border-selected>>;\n\tborder-right: 1px solid <<colour tab-border-selected>>;\n}\n\n.tc-tab-buttons button {\n\tcolor: <<colour tab-foreground>>;\n\tpadding: 3px 5px 3px 5px;\n\tmargin-right: 0.3em;\n\tfont-weight: 300;\n\tborder: none;\n\tbackground: inherit;\n\tbackground-color: <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-right: 1px solid <<colour tab-border>>;\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: <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\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: <<colour tab-background-selected>>;\n\tborder-right: 1px solid <<colour tab-background-selected>>;\n}\n\n.tc-tab-divider {\n\tborder-top: 1px solid <<colour tab-divider>>;\n}\n\n.tc-tab-divider.tc-vertical {\n\tdisplay: none;\n}\n\n.tc-tab-content {\n\tmargin-top: 14px;\n}\n\n.tc-tab-content.tc-vertical {\n\tdisplay: inline-block;\n\tvertical-align: top;\n\tpadding-top: 0;\n\tpadding-left: 14px;\n\tborder-left: 1px solid <<colour tab-border>>;\n\t-webkit-flex: 1 0 70%;\n\tflex: 1 0 70%;\n\toverflow: auto;\n}\n\n.tc-sidebar-lists .tc-tab-buttons {\n\tmargin-bottom: -1px;\n}\n\n.tc-sidebar-lists .tc-tab-buttons button.tc-tab-selected {\n\tbackground-color: <<colour sidebar-tab-background-selected>>;\n\tcolor: <<colour sidebar-tab-foreground-selected>>;\n\tborder-left: 1px solid <<colour sidebar-tab-border-selected>>;\n\tborder-top: 1px solid <<colour sidebar-tab-border-selected>>;\n\tborder-right: 1px solid <<colour sidebar-tab-border-selected>>;\n}\n\n.tc-sidebar-lists .tc-tab-buttons button {\n\tbackground-color: <<colour sidebar-tab-background>>;\n\tcolor: <<colour sidebar-tab-foreground>>;\n\tborder-left: 1px solid <<colour sidebar-tab-border>>;\n\tborder-top: 1px solid <<colour sidebar-tab-border>>;\n\tborder-right: 1px solid <<colour sidebar-tab-border>>;\n}\n\n.tc-sidebar-lists .tc-tab-divider {\n\tborder-top: 1px solid <<colour sidebar-tab-divider>>;\n}\n\n.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button {\n\tdisplay: block;\n\twidth: 100%;\n\tbackground-color: <<colour sidebar-tab-background>>;\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 > .tc-tab-set > .tc-tab-buttons > button.tc-tab-selected {\n\tbackground-color: <<colour sidebar-tab-background-selected>>;\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 <<colour muted-foreground>>;\n\tborder-left: 1px solid <<colour muted-foreground>>;\n\tborder-right: 1px solid <<colour muted-foreground>>;\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 <<colour muted-foreground>>;\n\tpadding: 3px;\n}\n\n.tc-manager-list-item-heading-selected {\n\tfont-weight: bold;\n\tcolor: <<colour background>>;\n\tfill: <<colour background>>;\n\tbackground-color: <<colour foreground>>;\n}\n\n.tc-manager-list-item-heading:hover {\n\tbackground: <<colour primary>>;\n\tcolor: <<colour background>>;\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: <<colour tiddler-editor-background>>;\n border-right: 0.5em solid <<colour muted-foreground>>;\n border-bottom: 0.5em solid <<colour muted-foreground>>;\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: <<colour muted-foreground>>;\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 > 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 <<colour muted-foreground>>;\n border-right: 0.5em solid <<colour muted-foreground>>;\n border-bottom: 0.5em solid <<colour muted-foreground>>;\n}\n\n.tc-manager-list-item-content-item-body > table {\n\tborder: none;\n\tpadding: 0;\n\tmargin: 0;\n}\n\n.tc-manager-list-item-content-item-body > table td {\n\tborder: none;\n}\n\n.tc-manager-icon-editor > button {\n\twidth: 100%;\n}\n\n.tc-manager-icon-editor > button > svg,\n.tc-manager-icon-editor > button > button {\n\twidth: 100%;\n\theight: auto;\n}\n\n/*\n** Import table\n*/\n\n.tc-import-table {\n\twidth: 100%;\n}\n\n.tc-import-table svg.tc-image-edit-button {\n\tmax-width: unset;\n}\n\n.tc-import-table th:first-of-type {\n\twidth: 10%;\n}\n\n.tc-import-table th:last-of-type {\n\twidth: 30%;\n}\n\n.tc-import-table .tc-row-disabled {\n\tbackground: <<colour very-muted-foreground>>10;\n\topacity: 0.8;\n}\n\n.tc-import-table .tc-row-warning {\n\tbackground: <<colour diff-delete-background>>50;\n}\n\n/*\n** Alerts\n*/\n\n.tc-alerts {\n\tposition: fixed;\n\ttop: 28px;\n\tleft: 0;\n\tright: 0;\n\tmax-width: 50%;\n\tz-index: 20000;\n}\n\n.tc-alert {\n\tposition: relative;\n\tmargin: 14px;\n\tpadding: 7px;\n\tborder: 1px solid <<colour alert-border>>;\n\tbackground-color: <<colour alert-background>>;\n}\n\n.tc-alert-toolbar {\n\tposition: absolute;\n\ttop: 7px;\n\tright: 7px;\n line-height: 0;\n}\n\n.tc-alert-toolbar svg {\n\tfill: <<colour alert-muted-foreground>>;\n}\n\n.tc-alert-subtitle {\n\tcolor: <<colour alert-muted-foreground>>;\n\tfont-weight: bold;\n font-size: 0.8em;\n margin-bottom: 0.5em;\n}\n\n.tc-alert-body > p {\n\tmargin: 0;\n}\n\n.tc-alert-highlight {\n\tcolor: <<colour alert-highlight>>;\n}\n\n@media (min-width: <<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: <<colour static-alert-foreground>>;\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 <<colour background>>;\n\tborder-bottom-none;\n\tbackground: <<colour dirty-indicator>>;\n\tcolor: <<colour background>>;\n\tfill: <<colour background>>;\n}\n\n.tc-drafts-list a:hover {\n\ttext-decoration: none;\n\tbackground: <<colour foreground>>;\n\tcolor: <<colour background>>;\n\tfill: <<colour background>>;\n}\n\n.tc-drafts-list a svg {\n\twidth: 1em;\n\theight: 1em;\n\tvertical-align: text-bottom;\n}\n\n/*\n** Control panel\n*/\n\n.tc-control-panel td {\n\tpadding: 4px;\n}\n\n.tc-control-panel table, .tc-control-panel table input, .tc-control-panel table textarea {\n\twidth: 100%;\n}\n\n.tc-plugin-info {\n\tdisplay: flex;\n\tborder: 1px solid <<colour muted-foreground>>;\n\tfill: <<colour muted-foreground>>;\n\tbackground-color: <<colour background>>;\n\tmargin: 0.5em 0 0.5em 0;\n\tpadding: 4px;\n align-items: center;\n}\n\n.tc-plugin-info-sub-plugins .tc-plugin-info {\n margin: 0.5em;\n\tbackground: <<colour background>>;\n}\n\n.tc-plugin-info-sub-plugin-indicator {\n\tmargin: -16px 1em 0 2em;\n}\n\n.tc-plugin-info-sub-plugin-indicator button {\n\tcolor: <<colour background>>;\n\tbackground: <<colour foreground>>;\n\tborder-radius: 8px;\n padding: 2px 7px;\n font-size: 0.75em;\n}\n\n.tc-plugin-info-sub-plugins .tc-plugin-info-dropdown {\n\tmargin-left: 1em;\n\tmargin-right: 1em;\n}\n\n.tc-plugin-info-disabled {\n\tbackground: -webkit-repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);\n\tbackground: repeating-linear-gradient(45deg, #ff0, #ff0 10px, #eee 10px, #eee 20px);\n}\n\n.tc-plugin-info-disabled:hover {\n\tbackground: -webkit-repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);\n\tbackground: repeating-linear-gradient(45deg, #aa0, #aa0 10px, #888 10px, #888 20px);\n}\n\na.tc-tiddlylink.tc-plugin-info:hover {\n\ttext-decoration: none;\n\tbackground-color: <<colour primary>>;\n\tcolor: <<colour background>>;\n\tfill: <<colour foreground>>;\n}\n\na.tc-tiddlylink.tc-plugin-info:hover > .tc-plugin-info-chunk > svg {\n\tfill: <<colour background>>;\n}\n\n.tc-plugin-info-chunk {\n margin: 2px;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-toggle {\n\tflex-grow: 0;\n\tflex-shrink: 0;\n\tline-height: 1;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-icon {\n\tflex-grow: 0;\n\tflex-shrink: 0;\n\tline-height: 1;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description {\n\tflex-grow: 1;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-buttons {\n\tfont-size: 0.8em;\n\tline-height: 1.2;\n\tflex-grow: 0;\n\tflex-shrink: 0;\n text-align: right;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description h1 {\n\tfont-size: 1em;\n\tline-height: 1.2;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description h2 {\n\tfont-size: 0.8em;\n\tline-height: 1.2;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-description div {\n\tfont-size: 0.7em;\n\tline-height: 1.2;\n\tmargin: 2px 0 2px 0;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-toggle img, .tc-plugin-info-chunk.tc-plugin-info-toggle svg {\n\twidth: 1em;\n\theight: 1em;\n}\n\n.tc-plugin-info-chunk.tc-plugin-info-icon img, .tc-plugin-info-chunk.tc-plugin-info-icon svg {\n\twidth: 2em;\n\theight: 2em;\n}\n\n.tc-plugin-info-dropdown {\n\tborder: 1px solid <<colour muted-foreground>>;\n\tbackground: <<colour background>>;\n\tmargin-top: -8px;\n}\n\n.tc-plugin-info-dropdown-message {\n\tbackground: <<colour message-background>>;\n\tpadding: 0.5em 1em 0.5em 1em;\n\tfont-weight: bold;\n\tfont-size: 0.8em;\n}\n\n.tc-plugin-info-dropdown-body {\n\tpadding: 1em 1em 0 1em;\n\tbackground: <<colour background>>;\n}\n\n.tc-plugin-info-sub-plugins {\n\tpadding: 0.5em;\n margin: 0 1em 1em 1em;\n\tbackground: <<colour notification-background>>;\n}\n\n.tc-install-plugin {\n\tfont-weight: bold;\n\tbackground: green;\n\tcolor: white;\n\tfill: white;\n\tborder-radius: 4px;\n\tpadding: 3px;\n}\n\n.tc-install-plugin.tc-reinstall-downgrade {\n\tbackground: red;\n}\n\n.tc-install-plugin.tc-reinstall {\n\tbackground: blue;\n}\n\n.tc-install-plugin.tc-reinstall-upgrade {\n\tbackground: orange;\n}\n\n.tc-check-list {\n\tline-height: 2em;\n}\n\n.tc-check-list .tc-image-button {\n\theight: 1.5em;\n}\n\n/*\n** Message boxes\n*/\n\n.tc-message-box {\n\tborder: 1px solid <<colour message-border>>;\n\tbackground: <<colour message-background>>;\n\tpadding: 0px 21px 0px 21px;\n\tfont-size: 12px;\n\tline-height: 18px;\n\tcolor: <<colour message-foreground>>;\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 <<colour muted-foreground>>;\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 <<colour table-header-background>>;\n\tborder-left: 1px solid <<colour table-header-background>>;\n}\n\n\n.tc-chooser-item {\n\tborder-bottom: 1px solid <<colour table-header-background>>;\n\tborder-top: 1px solid <<colour table-header-background>>;\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: <<colour table-header-background>>;\n\tborder-color: <<colour table-footer-background>>;\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: <<colour foreground>>;\n}\n\n.tc-chosen > .tc-tiddlylink:before {\n\tmargin-left: -10px;\n\tposition: relative;\n\tcontent: \"» \";\n}\n\n.tc-chooser-item svg,\n.tc-chooser-item img{\n\twidth: 1em;\n\theight: 1em;\n\tvertical-align: middle;\n}\n\n.tc-language-chooser .tc-image-button img {\n\twidth: 2em;\n\tvertical-align: -0.15em;\n}\n\n/*\n** Palette swatches\n*/\n\n.tc-swatches-horiz {\n}\n\n.tc-swatches-horiz .tc-swatch {\n\tdisplay: inline-block;\n}\n\n.tc-swatch {\n\twidth: 2em;\n\theight: 2em;\n\tmargin: 0.4em;\n\tborder: 1px solid #888;\n}\n\ninput.tc-palette-manager-colour-input {\n\twidth: 100%;\n\tpadding: 0;\n}\n\n/*\n** Table of contents\n*/\n\n.tc-sidebar-lists .tc-table-of-contents {\n\twhite-space: nowrap;\n}\n\n.tc-table-of-contents button {\n\tcolor: <<colour sidebar-foreground>>;\n}\n\n.tc-table-of-contents svg {\n\twidth: 0.7em;\n\theight: 0.7em;\n\tvertical-align: middle;\n\tfill: <<colour sidebar-foreground>>;\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: <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a,\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > 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 > a {\n\tborder-top: 1px solid <<colour tab-background>>;\n\tborder-left: 1px solid <<colour tab-background>>;\n\tborder-bottom: 1px solid <<colour tab-background>>;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item > a:hover {\n\ttext-decoration: none;\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\n\tbackground: <<colour tab-border>>;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > a {\n\tborder-top: 1px solid <<colour tab-border>>;\n\tborder-left: 1px solid <<colour tab-border>>;\n\tborder-bottom: 1px solid <<colour tab-border>>;\n\tbackground: <<colour background>>;\n\tmargin-right: -1px;\n}\n\n.tc-tabbed-table-of-contents .tc-table-of-contents .toc-item-selected > 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 <<colour tab-border>>;\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: <<colour dirty-indicator>>;\n\tcolor: <<colour dirty-indicator>>;\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::-webkit-file-upload-button {\n\tcursor:pointer;\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<<filter \"drop-shadow(2px 2px 4px rgba(0,0,0,0.3))\">>\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<<filter \"drop-shadow(3px 3px 4px rgba(0,0,0,0.6))\">>\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: <<colour diff-equal-background>>;\n\tcolor: <<colour diff-equal-foreground>>;\n}\n\n.tc-diff-insert {\n\tbackground-color: <<colour diff-insert-background>>;\n\tcolor: <<colour diff-insert-foreground>>;\n}\n\n.tc-diff-delete {\n\tbackground-color: <<colour diff-delete-background>>;\n\tcolor: <<colour diff-delete-foreground>>;\n}\n\n.tc-diff-invisible {\n\tbackground-color: <<colour diff-invisible-background>>;\n\tcolor: <<colour diff-invisible-foreground>>;\n}\n\n.tc-diff-tiddlers th {\n\ttext-align: right;\n\tbackground: <<colour background>>;\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: <<colour select-tag-foreground>>;\n background: <<colour select-tag-background>>;\n}\n\n/*\n** Utility classes for SVG icons\n*/\n\n.tc-fill-background {\n\tfill: <<colour background>>;\n}\n\n/*\n** Flexbox utility classes\n*/\n\n.tc-flex {\n\tdisplay: -webkit-flex;\n\tdisplay: flex;\n}\n\n.tc-flex-column {\n\tflex-direction: column;\n}\n\n.tc-flex-row {\n\tflex-direction: row;\n}\n\n.tc-flex-grow-1 {\n\tflex-grow: 1;\n}\n\n.tc-flex-grow-2 {\n\tflex-grow: 2;\n}\n\n/*\n** Other utility classes\n*/\n\n.tc-tiny-gap {\n\tmargin-left: .25em;\n\tmargin-right: .25em;\n}\n\n.tc-tiny-gap-left {\n\tmargin-left: .25em;\n}\n\n.tc-tiny-gap-right {\n\tmargin-right: .25em;\n}\n\n.tc-small-gap {\n\tmargin-left: .5em;\n\tmargin-right: .5em;\n}\n\n.tc-small-gap-left {\n\tmargin-left: .5em;\n}\n\n.tc-small-gap-right {\n\tmargin-right: .5em;\n}\n\n.tc-big-gap {\n\tmargin-left: 1em;\n\tmargin-right: 1em;\n}\n\n.tc-big-gap-left {\n\tmargin-left: 1em;\n}\n\n.tc-big-gap-right {\n\tmargin-right: 1em;\n}\n\n.tc-word-break {\n\tword-break: break-all;\n}\n"},"$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize":{"text":"15px"},"$:/themes/tiddlywiki/vanilla/metrics/bodylineheight":{"text":"22px"},"$:/themes/tiddlywiki/vanilla/metrics/fontsize":{"text":"14px"},"$:/themes/tiddlywiki/vanilla/metrics/lineheight":{"text":"20px"},"$:/themes/tiddlywiki/vanilla/metrics/storyleft":{"text":"0px"},"$:/themes/tiddlywiki/vanilla/metrics/storytop":{"text":"0px"},"$:/themes/tiddlywiki/vanilla/metrics/storyright":{"text":"770px"},"$:/themes/tiddlywiki/vanilla/metrics/storywidth":{"text":"770px"},"$:/themes/tiddlywiki/vanilla/metrics/tiddlerwidth":{"text":"686px"},"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint":{"text":"960px"},"$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth":{"text":"350px"},"$:/themes/tiddlywiki/vanilla/options/stickytitles":{"text":"no"},"$:/themes/tiddlywiki/vanilla/options/sidebarlayout":{"text":"fixed-fluid"},"$:/themes/tiddlywiki/vanilla/options/codewrapping":{"text":"pre-wrap"},"$:/themes/tiddlywiki/vanilla/reset":{"type":"text/plain","text":"/*! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */\n\n/*\nDocument\n========\n*/\n\n/**\nUse a better box model (opinionated).\n*/\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n/**\nUse a more readable tab size (opinionated).\n*/\n\n:root {\n -moz-tab-size: 4;\n tab-size: 4;\n}\n\n/**\n1. Correct the line height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n*/\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/*\nSections\n========\n*/\n\n/**\nRemove the margin in all browsers.\n*/\n\nbody {\n margin: 0;\n}\n\n/**\nImprove consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)\n*/\n\nbody {\n font-family:\n system-ui,\n -apple-system, /* Firefox supports this but not yet `system-ui` */\n 'Segoe UI',\n Roboto,\n Helvetica,\n Arial,\n sans-serif,\n 'Apple Color Emoji',\n 'Segoe UI Emoji';\n}\n\n/*\nGrouping content\n================\n*/\n\n/**\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n}\n\n/*\nText-level semantics\n====================\n*/\n\n/**\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr[title] {\n text-decoration: underline dotted;\n}\n\n/**\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)\n2. Correct the odd 'em' font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family:\n ui-monospace,\n SFMono-Regular,\n Consolas,\n 'Liberation Mono',\n Menlo,\n monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/**\nPrevent 'sub' and 'sup' elements from affecting the 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\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\nTabular data\n============\n*/\n\n/**\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n}\n\n/*\nForms\n=====\n*/\n\n/**\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\nRemove the inheritance of text transform in Edge and Firefox.\n1. Remove the inheritance of text transform in Firefox.\n*/\n\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\nCorrect the inability to style clickable types in iOS and Safari.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button;\n}\n\n/**\nRemove the inner border and padding in Firefox.\n*/\n\n::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\nRestore the focus styles unset by the previous rule.\n*/\n\n:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\nRemove the additional ':invalid' styles in Firefox.\nSee: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/**\nRemove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.\n*/\n\nlegend {\n padding: 0;\n}\n\n/**\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to 'inherit' in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nInteractive\n===========\n*/\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n"},"$:/themes/tiddlywiki/vanilla/settings/fontfamily":{"text":"system-ui, -apple-system, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\""},"$:/themes/tiddlywiki/vanilla/settings/codefontfamily":{"text":"\"SFMono-Regular\",Consolas,\"Liberation Mono\",Menlo,Courier,monospace"},"$:/themes/tiddlywiki/vanilla/settings/backgroundimageattachment":{"text":"fixed"},"$:/themes/tiddlywiki/vanilla/settings/backgroundimagesize":{"text":"auto"},"$:/themes/tiddlywiki/vanilla/sticky":{"text":"<$reveal state=\"$:/themes/tiddlywiki/vanilla/options/stickytitles\" type=\"match\" text=\"yes\">\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: ``<<colour tiddler-background>>``;\n\tz-index: 500;\n}\n\n``\n<$list filter=\"[range[100]]\">\n`.tc-story-river .tc-tiddler-frame:nth-child(100n+`<$text text=<<currentTiddler>>/>`) {\nz-index: `<$text text={{{ [[200]subtract<currentTiddler>] }}}/>`;\n}\n`\n</$list>\n</$reveal>\n"}}}+
15px+
22px+
14px+
20px+
960px+
550px+
/*LeftBar*/ calc({{$:/plugins/TWaddle/LeftBar/Stylesheet!!width}} + {{$:/plugins/TWaddle/LeftBar/temp!!storyleft}})+
/*LeftBar*/ calc({{$:/plugins/TWaddle/LeftBar/temp!!storyright}} + {{$:/themes/tiddlywiki/vanilla/metrics/storyleft}})+
0px+
770px+
pre-wrap+
fluid-fixed+
fixed+
auto+
"SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace+
system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"+
\define adminTid() $:/config/toc/admin+
<svg width="22pt" height="22pt" viewBox="0 0 16 16" class="tc-image-palette-button tc-image-button" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> + <path fill-rule="evenodd" d="M8 15V1a7 7 0 1 1 0 14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"/> +</svg ++
<$vars +darkPalette={{$:/utility/ui/Button/SwitchPalette!!dark-palette}} +lightPalette={{$:/utility/ui/Button/SwitchPalette!!light-palette}} +> +<$button tooltip="Switch colours" aria-label="Switch colours" class=<<tv-config-toolbar-class>>> + <$list filter="[<tv-config-toolbar-icons>match[yes]]"> + {{$:/utility/images/color-switch}} + </$list> + + <$list filter="[<tv-config-toolbar-text>match[yes]]"> + <span class="tc-btn-text">Switch colours</span> + </$list> + + <$reveal type="match" state="$:/palette" text=<<darkPalette>> > + <$action-setfield $tiddler="$:/palette" text=<<lightPalette>> /> + </$reveal> + <$reveal type="nomatch" state="$:/palette" text=<<darkPalette>> > + <$action-setfield $tiddler="$:/palette" text=<<darkPalette>> > + </$reveal> +</$button> +</$vars> + +{{$:/utility/ui/Button/SwitchPalette!!dark-palette}}+
top+
{ + "Edit textbox to append text to another tiddler": "2", + "Compress and Optimize": "3", + "Empty Story": "0", + "TW widget tutorials": "5", + "¡Hola, bienvenido a Copinchapedia!": "0" +}+
{{Cuba con Impresoras 3D - Descripcion}}+
alert-background: #eee8d5 +alert-border: #586e75 +alert-highlight: #d33682 +alert-muted-foreground: #d33682 +background: #eee8d5 +blockquote-bar: #d33682 +button-background: #eee8d5 +button-border: #93a1a1 +button-foreground: #586e75 +code-background: #eee8d5 +code-border: #93a1a1 +code-foreground: #586e75 +dirty-indicator: inherit +download-background: #859900 +download-foreground: #eee8d5 +dragger-background: #eee8d5 +dragger-foreground: #657b83 +dropdown-background: #eee8d5 +dropdown-border: #586e75 +dropdown-tab-background: #fdf6e3 +dropdown-tab-background-selected: #eee8d5 +dropzone-background: #859900 +external-link-background: inherit +external-link-background-hover: inherit +external-link-background-visited: inherit +external-link-foreground: #268bd2 +external-link-foreground-hover: inherit +external-link-foreground-visited: #268bd2 +foreground: #657b83 +message-background: #fdf6e3 +message-border: #93a1a1 +message-foreground: #657b83 +modal-backdrop: #839496 +modal-background: #fdf6e3 +modal-border: #93a1a1 +modal-footer-background: #eee8d5 +modal-footer-border: #93a1a1 +modal-header-border: #93a1a1 +muted-foreground: #586e75 +notification-background: #fdf6e3 +notification-border: #93a1a1 +page-background: #eee8d5 +pre-background: #eee8d5 +pre-border: #839496 +primary: #859900 +select-tag-background: #fdf6e3 +select-tag-foreground: #657b83 +sidebar-button-foreground: #586e75 +sidebar-controls-foreground: #586e75 +sidebar-controls-foreground-hover: #d33682 +sidebar-foreground: #586e75 +sidebar-foreground-shadow: transparent +sidebar-muted-foreground: #657b83 +sidebar-muted-foreground-hover: #586e75 +sidebar-tab-background: #fdf6e3 +sidebar-tab-background-selected: #eee8d5 +sidebar-tab-border: #eee8d5 +sidebar-tab-border-selected: #657b83 +sidebar-tab-divider: #fdf6e3 +sidebar-tab-foreground: #839496 +sidebar-tab-foreground-selected: #586e75 +sidebar-tiddler-link-foreground: #2aa198 +sidebar-tiddler-link-foreground-hover: #002b36 +site-title-foreground: #d33682 +static-alert-foreground: #586e75 +tab-background: #eee8d5 +tab-background-selected: #fdf6e3 +tab-border: #93a1a1 +tab-border-selected: #586e75 +tab-divider: #586e75 +tab-foreground: #657b83 +tab-foreground-selected: #586e75 +table-border: #93a1a1 +table-footer-background: #eee8d5 +table-header-background: #eee8d5 +tag-background: #b58900 +tag-foreground: #fdf6e3 +tiddler-background: #fdf6e3 +tiddler-border: #93a1a1 +tiddler-controls-foreground: inherit +tiddler-controls-foreground-hover: #d33682 +tiddler-controls-foreground-selected: #2aa198 +tiddler-editor-background: #fdf6e3 +tiddler-editor-border: #eee8d5 +tiddler-editor-border-image: #fdf6e3 +tiddler-editor-fields-even: #fdf6e3 +tiddler-editor-fields-odd: #eee8d5 +tiddler-info-background: #eee8d5 +tiddler-info-border: #839496 +tiddler-info-tab-background: #fdf6e3 +tiddler-link-background: #fdf6e3 +tiddler-link-foreground: #2aa198 +tiddler-subtitle-foreground: #657b83 +tiddler-title-foreground: #d33682 +toolbar-cancel-button: #657b83 +toolbar-close-button: #657b83 +toolbar-delete-button: #dc322f +toolbar-done-button: #657b83 +toolbar-edit-button: #657b83 +toolbar-info-button: #657b83 +toolbar-new-button: #657b83 +toolbar-options-button: #657b83 +toolbar-save-button: inherit +untagged-background: #586e75 +very-muted-foreground: #93a1a1+
!!Introduccion + +A raiz de la covid 19 + +problema d alimentos + +* +* + +Necesidades + +* favorecer produccion local + +* el gobierno ha venido promocion de la agricultura urbana como forma de ... + +incremento de la agricultura urbana + +! Necesidades: + +* insumos para fertilizar el suelo + +* insumos para mejorar la calidad del suelo + +insumos para + +materia organica +mal manejo + +desecho organico +gallinaza + + +problemas de suelo+
Colaboracion en el prototipado+
Archivo Informal (iA) es un proyecto artístico que se centra en la creatividad social, el patrimonio vivo, la tradición, la cultura popular y la cultura de la sobrevivencia que se manifiestan en contextos socioeconómicos deprimidos en donde suelen emerger alternativas creativas, así como en otros en que, sin tener una condición económica desfavorable, las prácticas creativas han devenido costumbres. + +La creatividad es la capacidad que tenemos todos los seres humanos para generar nuevas ideas y tiende a florecer en situaciones extremas o de crisis, aunque no únicamente. También se resuma creatividad en espacios donde se aboga por un concepto de vida sustentable, en armonía con el medioambiente. Cuando surge como respuesta a emergencias prácticas, adquiere predominancia en todos los órdenes de la organización cultural, económica y social, como es el caso de Cuba. + +Este proyecto desarrolla su investigación tomando de base las prácticas y acciones desarrolladas durante la crisis económica +de los años 90' del pasado siglo, conocido con el eufemístico nombre de «Período especial en tiempos de paz». Tras la caída del campo socialista en 1990 y el recrudecimiento del embargo estadounidense a Cuba, se produjo un colapso de la economía, lo que provocó una recesión sin parangón de la cual el país aún no +se recupera. Como resultado, las practicas creativas se acentuaron y se hicieron imprescindibles para garantizar lo básico. +Las habilidades de reparación y de reciclaje se entronizaron en la sociedad, e incluso, se institucionalizó a través de un movimiento +llamado Asociación Nacional de Innovadores y Racionalizadores. En 1992 la revista Verde Olivo, un órgano de las Fuerzas Armadas, +publicó el libro Con nuestros propios esfuerzos, un compendio de hacks de la vida cotidiana para soliviantar la escasez, la precariedad y la ausencia de productos industriales de uso +hogareño por medio de la reparación y la innovación.+
La obra consiste en un brazo robótico que reproduce en el espacio expositivo los mismos movimientos realizados por el artista en el momento en que estaba siendo creado; esto es posible gracias a unos sensores instalados en su brazo y en un guante que este llevaba puesto, y que a su vez se encontraba conectado a un ordenador que registraba todas las acciones de su extremidad mientras trabaja. + +La posibilidad de auto "replicarse", de multiplicarse, es una de las principales características de esta obra, que nos expone la idea de obsolescencia y decadencia del cuerpo biológico, y la inminencia de un mundo programado. + +Realizada con Arduino Mega, servo motores, acrílico y piezas recicladas de otros equipos electrónicos. + +<center> +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-autopoiesis1.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-autopoiesis2.webp]] + +<br> + +<br> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-autopoiesis3.webp]]+
<<< +(...)las llamadas gratis no son al principio tan excitantes como la sensación de poder que te da el tener una de estas blue box en la palma de tu mano.(...) +<<< + +La reaparición de un artefacto creado para subvertir los mecanismo de poder y control de las comunicaciones (telefónicas en este caso) en los comienzos de una nueva era que se nos viene encima, donde la telefonía móvil y el correo electrónico ya hoy en nuestros celulares, deviene en el mecanismo de control actual con mayor repercusión en la sociedad; constituye una amenaza, sino física al menos conceptual, para todos aquellos sistemas controladores de la individualidad colectiva. + +Realizada con Arduino Uno, acrílico y piezas recicladas de otros equipos electrónicos. + +<center> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-bluebox1.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-bluebox2.webp]]+
<$button set="TiddlerA!!caption" setTo={{TiddlerB!!caption}} > + +Press me! + +</$button>+
Creamos un tiddler para la lista de botones de imagen en miniatura + +por ejemplo : Lista de Proyectos + +y pegamos el siguiente codigo + +``` +<div style="font-size:0.7em;text-align:center;margin-top:2em;margin-bottom:2em"> +<<list-thumbnails filter:"[tag[Lista de proyectos]]" width:"170" height:"170" padding:"30">> +</div> +``` +Los tiddlers tienen que compartir el mismo tag, en este caso es " Lista de proyectos" ++
<center> + +[img[/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/cafereparador-201120.webp]] + +{{cafesorpresa-210521.mp3}}+
<center> + +[img[/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/cafereparador-231020.webp]] + + +{{cafesorpresa-210521.mp3}} + + +[img[/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/cafereparador-231020-1.webp]]+
!Resumen +Es un espacio para narrar experiencias sobre el uso de tecnologías, sobre las maneras de dar solución a problemas comunes. + +!Calendario +{{Encuentros - Calendario}} + +! Recomendaciones + +!!Para lograr un mejor sonido desde casa: + +*Localizar la habitación más alejada de la calle y de otros sonidos fuertes. +* De ser posible habitaciones con alfombras, colchones de espuma y, cortinas. +*Las habitaciones con muebles rompen las paralelas y también mejoran la sonoridad. +* las esteras de yoga, las toallas son fáciles de mover y también ayudarán a reducir los ruidos en la comunicación. + +* Nunca se pegue directamente al microfono. Esto produce sonidos un poco molestos como las "P" y las "S" que son sonidos que estan en las bajas y altas frecuencias. Recomendamos hablar hacia la pantalla del teléfono y si necesitan más volumen se acerquen el teléfono en la misma posición.+
<center> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/cafesorpresa-070521.webp]] + +{{cafesorpresa-210521.mp3}}+
[img [Cafe Sorpresa - 14 5 2021.png]]+
<<richlink "https://ia801504.us.archive.org/9/items/cafesorpresa-grafoscopio/record.mp3">> + +[img [Cafe Sorpresa - 21 05 2021.png]] + +Hola, Bienvenido al Cafe Sorpesa. + +Mi nombre es Mauri, soy cubano, disenador industrial y soy fundador de Copincha, un hackerspace en La habana. + +Este Cafe Sorpresa se titula Tiddlywiki pa Copinchapedia. Pero vamos a hablar fundamentalmente sobre cuadernos de notas. + +!! Copincha y la necesidad de documentar + +Copincha nacio en junio de 2018 con un curso sobre Arduino. En muy breve tiempo ha venido reuniendo conocimientos y experiencias de las personas que les permitan socializar soluciones para el beneficio comun. Siempre con un caracter colaborativo y abierto. + +En la busqueda por hacer mas accesible estas experiencias a la comunidad comenzamos a trabajar en la documentacion y archivo, y en su publicacion en una wiki que hemos nombrado Copinchapedia. + +En Cuba el acceso de internet crece pero es todavia un servicio muy caro para la mayoria. + +En Cuba Existen proyectos de redes redes alternativas como SNET. +O el Paquete semanal, una forma de distribucion de contenidos, como especie de Netflix offline. Tambien la distribucion de contenidos desde negocios llamados casas de copias. + +Este contexto es inspirador para hacer de Copinchapedia una wiki que pueda ser distribuida devarias formas. Ya sea online o offline. Y asi garantizar que de alguna forma obtenga su público. + +A raiz del en cuentro en GIG hicimos contacto con Offray +y la comunidad Grafoscopio. +que nos sugirio explorar tiddlywiki y tambien otras herramientas como fossil y hedge doc que sirven colateralmente a este proposito. + +!! Que es tiddlywiki? +Tiddlywiki es un software contenido en un archivo html. +Este nos permite crear un cuaderno de notas e ir modificandolo y expandiendolo en el tiempo. El uso mas inmediato que podemos darle es crear un cuaderno personal. y puede ser una alternativa a herramientas como Google Keep, u otro software de notas. + +Para ejecutarlo solo debemos abrir este archivo html en cualquier explorador de internet, editar lo que queremos del contenido y guardar. + +Al contenido se pueden vincular recursos en internet, pero tambien. una caracteristica de tiddlywiki. es que autocontine varios archivos, como imagenes, pequenos audios... + +Tiddlywiki es una web en donde puedes crear un sistema de porciones de contenidos , como un sitema de ficas, e ir interconectando este contenido. + +para ello posee 3 caracteristicas importantes. + +la posibilidad de hacer enlaces entre fichas por hipertexto. +3. La posibilidad + +2. La posibilidad de hacer transclusiones. Que permite que una ficha muestre siempre el contenido de otra ficha de manera automatica. + + + + + + + + + + + + + + + + + + + + + + + + ++
Hola, Bienvenido al Cafe Sorpesa. + +Mi nombre es Mauri, soy cubano, disenador industrial y soy fundador de Copincha, un hackerspace en La habana. + +Este Cafe Sorpresa se titula Tiddlywiki pa Copinchapedia. Pero vamos a hablar fundamentalmente sobre cuadernos de notas. + +!! Copincha y la necesidad de documentar + +Copincha nacio en junio de 2018 con un curso sobre Arduino. En muy breve tiempo ha venido reuniendo conocimientos y experiencias de las personas que les permitan socializar soluciones para el beneficio comun. Siempre con un caracter colaborativo y abierto. + +En la busqueda por hacer mas accesible estas experiencias a la comunidad comenzamos a trabajar en la documentacion y archivo, y en su publicacion en una wiki que hemos nombrado Copinchapedia. + +En Cuba el acceso de internet crece pero es todavia un servicio muy caro para la mayoria. + +En Cuba Existen proyectos de redes redes alternativas como SNET. +O el Paquete semanal, una forma de distribucion de contenidos, como especie de Netflix offline. Tambien la distribucion de contenidos desde negocios llamados casas de copias. + +Este contexto es inspirador para hacer de Copinchapedia una wiki que pueda ser distribuida devarias formas. Ya sea online o offline. Y asi garantizar que de alguna forma obtenga su público. + +A raiz del en cuentro en GIG hicimos contacto con Offray +y la comunidad Grafoscopio. +que nos sugirio explorar tiddlywiki y tambien otras herramientas como fossil y hedge doc que sirven colateralmente a este proposito. + +!! Que es tiddlywiki? +Tiddlywiki es un software contenido en un archivo html. +Este nos permite crear un cuaderno de notas e ir modificandolo y expandiendolo en el tiempo. El uso mas inmediato que podemos darle es crear un cuaderno personal. y puede ser una alternativa a herramientas como Google Keep, u otro software de notas. + +Para ejecutarlo solo debemos abrir este archivo html en cualquier explorador de internet, editar lo que queremos del contenido y guardar. + +Al contenido se pueden vincular recursos en internet, pero tambien. una caracteristica de tiddlywiki. es que autocontine varios archivos, como imagenes, pequenos audios... + +Tiddlywiki es una web en donde puedes crear un sistema de porciones de contenidos , como un sitema de ficas, e ir interconectando este contenido. + +para ello posee 3 caracteristicas importantes. + +la posibilidad de hacer enlaces entre fichas por hipertexto. +3. La posibilidad + +2. La posibilidad de hacer transclusiones. Que permite que una ficha muestre siempre el contenido de otra ficha de manera automatica. + + + + + + + + ++
<center> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/cafesorpresa-070521.webp]] + +{{cafesorpresa-210521.mp3}}+
[img [Cafe Sorpresa - 30 04 2021.png]]+
[img [Cafe Sorpresa - 7 05 2021.png]]+
<center> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/cafesorpresa-070521.webp]] + +{{cafesorpresa-210521.mp3}}+
[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/Cafe Sorpresa 090819.webp]]+
<center> + +[img[/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/cafesorpresa-140521.webp]] + +{{cafesorpresa-140521.mp3}}+
<center> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/cafesorpresa 210521.webp]] + +{{cafesorpresa-210521.mp3}} + + + + + + + + + + + + + + + ++
<center> + +[img[/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/cafesorpresa-271120.webp]] + +{{cafesorpresa-210521.mp3}}+
<center> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/cafesorpresa-300421.webp]] + +{{cafesorpresa-210521.mp3}}+
<center + +>[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/cafeviajeencasa-041019.webp]] + +<br> + +<br> + +{{cafesorpresa-210521.mp3}} + +<br> + +<br> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/cafeviajeencasa-041019-1.webp]]+
<center + +>[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/cafeviajeencasa-130919.webp]] + +<br> + +<br> + +{{cafesorpresa-210521.mp3}} + +<br> + +<br> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/cafeviajeencasa-130919-1.webp]]+
/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAQDAwQDAwQEAwQFBAQFBgoHBgYGBg0JCggKDw0QEA8NDw4RExgUERIXEg4PFRwVFxkZGxsbEBQdHx0aHxgaGxr/2wBDAQQFBQYFBgwHBwwaEQ8RGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhr/wAARCAMgAx8DASIAAhEBAxEB/8QAHQABAAICAwEBAAAAAAAAAAAAAAcIBgkBBAUDAv/EAHEQAAECBQMBBQIIBwcMDQgDEQECAwAEBQYRBxIhMQgTIkFRFGEVFiMyUnGBkRg3QpSztOIXJDNidHahNTZVcneCkpOxwdLTCSU0VldzdZWWstHU8CYnOENTouHxRUdjZKQ5RFRlZoOEhaOlw+NGhsL/xAAcAQEAAQUBAQAAAAAAAAAAAAAABAECAwUGBwj/xABTEQABAwIDBAMLCAYHBwQCAwABAAIDBBEFEiEGMUFRE2FxBxQVIjJSgZGSsdEXM0JiobLB8BYjVH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tO9ufvqzl9W/wCpeTpx6RMOlZnQb93606Dfu/WsF2kn3K1UwYdKzOg37v1p0G/d+tSrOXkc1eDDpWZ0G/d+tOg37v1p7OXkc1eDDpWZ0G/d+tOg37v1p7OXkc1eDDpWZ0G/d+tOg37v1p7OXkc1eDDpWZ0G/d+tOg37v1p7OXkc1eDDpWZ0G/d+tOg37v1p7OXkc1eDDpWZ0G/d+tOg37v1p7OXkc1eDDpWZ0G/d+tOg37v1p7OXkc1eDDpWZ0G/d+tOg37v1p7OXkc1eDDpWZ0G/d+tOg37v1p7OXkc1eDDpWZ0G/d+tOg37v1p7OXkc1eDDpWZ0G/d+tOg37v1p7OXkc1eDDpWZ0G/d+tOg37v1p7OXkc1eDDpWZ0G/d+tOg37v1p7OXkc1eDDpWZ0G/d+tOg37v1p7OXkc35GHSszoN+79adBv3frR2cn1ZVzV4MOlZnQb93606Dfu/WqfZPyOavBh0rM6Dfu/WnQb9361Ps5eRzV4MOlZnQb93606Dfu/Wo9k/I5q8GHSszoN+79adBv3fqalWcu0iOavBh0rM6Dfu/WnQb9361KspLuRzfkYdem/4jf9af3FZXQb93617aYbLqfZ7EHuarhaSU479yl1Mrof/Z+
! Descripción +Creamos un mapa digital, como herramienta abierta y colaborativa que permita la inclusión de personas y proyectos interesados en procesos circulares. + +!! Interfaz +poder llenar campos sin tener que editar tiddlers directamente + +!! Filtro +Construir barra filtro que filtrar categorias. + +filtrar campos + +!! Categorias +Las categorias se colocan en los campos + +Categoria 1 + +*Subacategoria 1A +*Subacategoria 1B +*Subacategoria 1C + +Categoria 2 + +*Subacategoria 2A +*Subacategoria 2B +*Subacategoria 2C + +Categoria 3 + +* Subacategoria 3A +* Subacategoria 3B +* Subacategoria 3C + +<<slider label:"Mapa con Tiddlywiki" src:" +{{mapavirtual/tiddlywiki}} +" status:"close">> + +<<slider label:"Trabajo con Base de datos JSON con Pharo"{{mapavirtual/pharo!!caption}}" src:" +{{mapavirtual/pharo}} +" status:"close">> + +<!-- +<<slider label:"{{mapavirtual/umap!!caption}}" src:" +{{mapavirtual/umap}} +" status:"close">> +--> + +<<slider label:"Insertar el mapa en otra web" src:" +{{mapavirtual/insertar-iframe}} +" status:"close">> + +! Descargar Plantilla de mapa vacia + +Boton de descrga + +!Para Copinchapedia version offline +Descargar "tiles" de mapa en: + +!Para Maps.ME + +{{Maps.Me}} + +#Descargamos el archivo de base de datos para Maps.ME + +<div style="font-size:0.7em;text-align:left;margin:3em auto;"> +<a href="https://mapa.com/mapa.kmz" class="tc-btn-big-green" style="border-radius:4px;background-color:gray;" target="_blank" rel="noopener noreferrer"> +<p> +<center> +{{$:/core/images/database}}<h3>Descargar (.KMZ) </h3> +</center> +</p> +</a> +</div> + +#Copiamos el archivo .KMZ en la carpeta donde tiene los archivos de luegares favoritos de Maps.ME (por defecto, maps.me guarda estos archivos en ...). +#Abrimos Maps.ME y activamos la base de datos. Listo!+
("Conocer")("Conectar")("Construir")("Colectivizar")("Comprometer")("Coexistir")+
CNC realizada con Arduino Mega, tubos de instalación de agua, planchas de teflón, y piezas recicladas de otros equipos electrónicos. + +Área útil: 50x80 cm. + +<center> +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-cncdot1.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-cncdot2.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-cncdot3.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-cncdot4.webp]]+
~CodeMirrorPlus mejora la experiencia de edición y escritura en ~TiddlyWiki5. + +''Referencias'': + +* [[CodeMirrorPlus|https://adithya-badidey.github.io/TW5-codemirror-plus/]]. +* [[CodeMirrorPlus Demo|https://adithya-badidey.github.io/TW5-codemirror-plus/wiki.html]]. +** [[How to Install|https://adithya-badidey.github.io/TW5-codemirror-plus/wiki.html#How%20to%20Install]]. +*[[CodeMirror|http://adithyab.tiddlyspot.com/]]. + +!! Instalación + +# Entramos a la sección de "complementos y extensiones" de la configuración. +# <div> Buscamos Code Mirror e instalamos el editor (marcado con 1) y ''no'' instalamos la autocompleción (marcada con 2): + +[img [https://i.imgur.com/tCUo4ll.png]] + +</div> + +# Arrastramos [[$:/plugins/adithyab/cmplus|https://adithya-badidey.github.io/TW5-codemirror-plus/wiki.html#%24%3A%2Fplugins%2Fadithyab%2Fcmplus]] a nuestro TiddlyWiki. + +# Recargamos. +# Vamos a Configuración -> CodeMirror -> Tema +#* Elegimos `tw5plus`. + ++
!Nuestro compromiso + +Nosotros como miembros, colaboradores y administradores, nos comprometemos a hacer de la participación en nuestra comunidad [[Copincha]] una experiencia libre de acoso para todos. A actuar e interactuar contribuyendo a una comunidad abierta, acogedora, diversa, inclusiva y saludable. + +!Nuestras normas + +!!Ejemplos de comportamiento aceptable: + +*Demostrar empatía y amabilidad hacia los demás. + +*Respetar las diferentes opiniones, puntos de vista y experiencias. + +*Dar y aceptar con elegancia comentarios constructivos. + +*Aceptar nuestra responsabilidad por nuestros errores y disculparnos con los afectados. + +*Aprender de la experiencia. + +*Centrarnos en lo que es mejor, no sólo para nosotros como individuos, sino para la comunidad en general. + +!!Ejemplos de comportamiento inaceptable: + +*El uso de lenguaje o imágenes sexualizadas, acoso sexual o insinuaciones de cualquier tipo. + +*Comentarios y burlas insultantes o despectivos. + +*Ataques personales o políticos + +*Acoso público o privado + +*Publicar la información privada de otros, como nombres, datos de contacto, o cualquier otra, sin su permiso explícito. + +*Cualquier otra conducta que razonablemente pueda considerarse inapropiada en un entorno profesional y de cooperación. + +!Responsabilidades en ejecución + +Los administradores son responsables de aclarar y hacer cumplir nuestros estándares de comportamiento aceptable y tomarán medidas correctivas adecuadas y justas en respuesta a cualquier comportamiento que consideren inapropiado, amenazante, ofensivo o dañino. + +>En caso de que el infractor se a otro admin corresponde a los demas admins cumplir con lo establecido en este punto. + +Los administradores de la comunidad tienen el derecho y la responsabilidad de eliminar, editar o rechazar comentarios, confirmaciones, códigos, ediciones de wiki, problemas y otras contribuciones que no estén alineadas con este CÓDIGO de CONDUCTA, y comunicarán las razones de las decisiones de moderación cuando sea apropiado. + +!Alcance +Este CÓDIGO de CONDUCTA se aplica en todos los espacios comunitarios y en las representaciones y/o presentaciones de la comunidad en los espacios públicos. + +Ejemplos de representación de nuestra comunidad: + +El uso de una dirección de correo electrónico oficial, la publicación a través de una cuenta oficial de redes sociales o la actuación como representante designado en un evento en línea o fuera de línea. + +!Aplicación +-Los casos de comportamiento contrarios al presente CÓDIGO de CONDUCTA se pueden y deben informar a los admins comunitarios solamente por privado. Todas las quejas serán revisadas e investigadas con prontitud y de manera justa. + +*Todos los administradores comunitarios están obligados a respetar la privacidad y seguridad del informante de cualquier incidente. + +!Directrices de aplicación +Los admins de la comunidad seguirán las siguientes PAUTAS de IMPACTO para determinar las consecuencias de cualquier acción que consideren que infringe este Codigo de conducta: + +!Corrección +Impacto en la comunidad: uso de lenguaje inapropiado u otro comportamiento considerado poco profesional o no deseado en la comunidad. + +Consecuencia: Una advertencia privada por escrito de los admins de la comunidad, que brinda claridad sobre la naturaleza de la violación y una explicación de por qué el comportamiento fue inapropiado. Se puede solicitar una disculpa pública. + +!Advertencia +*Impacto en la comunidad: una violación a través de un solo incidente o una serie de acciones. + +Consecuencia: Una advertencia con prohibición de interacción con las personas involucradas, incluida la interacción no solicitada con quienes hacen cumplir el CÓDIGO de CONDUCTA, durante un período de tiempo específico. Esto incluye evitar interacciones en espacios comunitarios y canales externos como las redes sociales. La violación de estos términos puede dar lugar a una prohibición temporal o permanente. + +!Prohibición temporal +Impacto en la comunidad: una violación grave de los estándares de la comunidad, incluido un comportamiento inadecuado sostenido. + +Consecuencia: Prohibición temporal de cualquier tipo de interacción o comunicación pública con la comunidad durante un período de tiempo específico. Durante este período no se permite ninguna interacción pública o privada con las personas involucradas, incluida la interacción no solicitada con quienes hacen cumplir el CÓDIGO de CONDUCTA. La violación de estos términos puede dar lugar a una prohibición permanente. + +!Prohibición permanente +Impacto en la comunidad: Presentar un patrón de violación de los estándares de la comunidad, incluido el comportamiento inadecuado sostenido, el acoso o agresión hacia un individuo, o hacia un grupo de individuos. + +Consecuencia: Prohibición permanente de cualquier tipo de interacción pública dentro de la comunidad. + +<<alert info "{{codigo de conducta - atribución}}" width:100%>> + ++
El presente CÓDIGO de CONDUCTA es una adaptación del Pacto de Colaboradores, versión 2.0, disponible en https://www.contributor-covenant.org/version/2/0/code_of_conduct.html + +Las PAUTAS de IMPACTO se inspiraron en el CÓDIGO de CONDUCTA de la comunidad Mozilla. + +Para obtener respuestas a preguntas comunes sobre este CÓDIGO de CONDUCTA, consulte las preguntas frecuentes en https://www.contributor-covenant.org/faq. Las traducciones están disponibles en https://www.contributor-covenant.org/translations.+
El presente código de conducta es una adaptación del [[Pacto de Colaboradores, versión 2.0|https://www.contributor-covenant.org/version/2/0/code_of_conduct.html]].+
# Una vez descargado este wiki en tu dispositivo, abre su archivo usando: +#* [[TiddlyDesktop|https://github.com/Jermolene/TiddlyDesktop]] ó +#* Firefox con el [[plugin file-backups|https://pmario.github.io/file-backups/]] instalado + +# entra a [[ParaEmpezar]] y cambia los parámetros habituales: +#* título del sitio, +#* subtítulo, +#* [[tiddlers|Tiddlers]] por omisión a mostrar. +# ''Opcional'' entrar al Panel de control y cambiar usuario/autora del wiki, etc +# Guarda los cambios al wiki.+
Consola inalámbrica para dirección de arte (audiovisual) + +La inexistencia en Cuba de un equipo de obturación inalámbrica para la realización de los efectos especiales en las producciones audiovisuales, nos llevo a crear una consola multipropósito para dichos fines. Capaz de programar secuencias y disparos individuales. + +Realizada con Arduino Nano, bluetooth, relays, acrílico, y piezas recicladas de otros equipos electrónicos. + +<center> +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-consoladot1.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-consoladot2.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-consoladot3.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-consoladot4.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-consoladot5.webp]]+
Fuente: [[mensaje en la lista de correo|https://lists.pharo.org/empathy/thread/MCPQG3BHBSUMJDOESOB62Q66E3GH57LY]]: + + +```smalltalk +(((ProcessorScheduler selectors) +select: [:each | each endsWith: 'Priority']) +collect: [:each | {Processor perform: each. each}]) +sorted: [:x :y | x first <= y first] +``` + +Se seleccionan elementos de una colección, se recolectan unos pares y se organizan. ++
a,dhclasdclasjda+
\import [all[tiddlers+shadows]tag[$:/tags/Macro/Toc]] + +<<toc-ui tag:"Contents" stateTiddler:"20200321-main-toc">>+
Copincha se vale de las colaboraciones voluntarias que hacen crecer el fondo de recursos omunitarios que compartimos. + +Este fondo se basa en construir conocimiento compartido y prototipos que nos ayudana a aprender mas rapido sobre una solucion. O materiales disponibles para el prototipado. + +Material para el prototipado + +Necesidades del espacio + +Reflejamos cada contribucion de forma publica y transparente [[aqui|Registro de contribuciones]] + +! Monetaria +Resumen + +! Material +Resumen + +! Tiempo +Resumen + +! Trabajo +Resumen+
Copincha se vale de las colaboraciones voluntarias que hacen crecer el fondo de recursos omunitarios que compartimos. + +Este fondo se basa en construir conocimiento compartido y prototipos que nos ayudana a aprender mas rapido sobre una solucion. O materiales disponibles para el prototipado. + +Material para el prototipado + +Necesidades del espacio + +Reflejamos cada contribucion de forma publica y transparente [[aqui|Registro de contribuciones]] + +! Monetaria +Resumen + +! Material +Resumen + +! Tiempo +Resumen + +! Trabajo +Resumen+
{{Copincha/Concepto}}+
* Mantener un espacio físico comunitario en La Habana donde nos reunimos, compartimos conocimientos y aprendemos.<br><br> +* Desarrollar y mantener una comunidad digital ajustada a las necesidades comunitarias locales y extendida a través de foros, un repositorio público de proyectos y presencia en la web.<br><br> +* Educar a través de pedagogías centradas en capacidades específicas de utilidad aplicada.<br><br> +* Desarrollar proyectos iniciados por personas del colectivo u otras organizaciones que tengan objetivos compatibles.<br><br> +* Documentar y divulgar, con un tono amable y familiar, las experiencias de trabajo y los conocimientos de la comunidad.<br><br> +* Facilitar, asesorar y apoyar a otros colectivos en las siguientes materias: +:* Formas de organización abierta<br><br> +:* Creación de comunidades que respeten la convivencia, la colaboración y la socialización del trabajo.<br><br> +* Promover el colectivismo, la autogestión y el trabajo voluntario colaborativo tanto en Copincha, como en individuos, y organizaciones afines.<br><br> +* Mantener una actitud abierta para poder seguir aprendiendo nosotr@s mism@s sobre estos procesos. + +<$macrocall $name="alert" type="dark" src=" + +Preferimos esta manera de operar aunque a veces pueda ser percibida como más lenta. + +Preferimos que las cosas lleven algo más de tiempo a motivar dinámicas de trabajo individualistas, o centradas en la capacidad extraordinaria de uno o pocos individuos que se sobre-entienden “expertos”. + +Preferimos el caminar colectivo porque entendemos que si uno quiere caminar rápido para llegar a un sitio, quizás sea mejor ir solo, pero si uno quiere llegar lejos ha de caminar siempre con otros que comparten el mismo destino. + +" class="bg-transparent"/>+
@@float:left; [img width=150 [logo-copincha-negro.png]] +@@ + +''Copincha'' es un [[hackerspace|Hackerspace]] situado en La Habana. Un laboratorio para compartir experiencias tecnológicas a través de la colaboración abierta. + +En la jerga local cubana, "pincha" significa trabajo. Copincha así se traduce como trabajo colaborativo.+
<div style="font-size:0.7em;text-align:center;margin:3em auto;"> +<a href="https://t.me/copincha" class="tc-btn-big-green" style="border-radius:4px;background-color:#139bcf;" target="_blank" rel="noopener noreferrer"> +{{$:/core/images/telegram}} Telegram +</a> +<a href="https://chat.whatsapp.com/DcpEPTEFLs1L6Gel8MAtW0" class="tc-btn-big-green" style="border-radius:4px;background-color:#25d366;" target="_blank" rel="noopener noreferrer"> +{{$:/core/images/whatsapp}} ~WhatsApp +</a> +<a href="https://facebook.com/copincha" class="tc-btn-big-green" style="border-radius:4px;background-color:#3a5897;" target="_blank" rel="noopener noreferrer"> +{{$:/core/images/facebook}} Facebook +</a> +<a href="https://www.instagram.com/c_o_p_i_n_c_h_a/" class="tc-btn-big-green" style="border-radius:4px; +background-image:linear-gradient(-135deg ,#9f28ac,#ffc007);" target="_blank" rel="noopener noreferrer"> +{{$:/core/images/instagram}} Instagram +</a> +<a href="https://twitter.com/copincha1" class="tc-btn-big-green" style="border-radius:4px;background-color:#179cf0;" target="_blank" rel="noopener noreferrer"> +{{$:/core/images/twitter}} Twitter +</a> +<!-- <a href="https://github.com/..." class="tc-btn-big-green" style="border-radius:4px;background-color:#444;" target="_blank" rel="noopener noreferrer"> +{{$:/core/images/github}} ~GitHub +</a> +--> +</div>+
<br> + +{{copincha-encabezado.jpg}} + +<br> + +<br> + +{{Copincha/Descripción}} +{{copincha - redes}} +{{Ciclo Copincha}} +<<slider label:"Acciones" src:" +{{Copincha - Acciones}} +" status:"close">> +<<slider label:"Contacto" src:" +{{Hackerspace Copincha}} +{{Hackerspace Copincha!!mapa}} +" status:"close">> + + + + + ++
@@float:left; [img width=150 [./medios/logo-copincha-negro.png]] +@@ + +''Copincha'' es un [[hackerspace|Hackerspace]] situado en La Habana. Un laboratorio para compartir experiencias tecnológicas a través de la colaboración abierta. + +En la jerga local cubana, "pincha" significa trabajo. Copincha así se traduce como trabajo colaborativo.+
En este sitio documentamos colaborativamente el conocimiento y las experiencias de [[Copincha]]. Todo el trabajo se publica bajo una [[Licencia Creative Commons Atribución-CompartirIgual 4.0 Internacional|https://creativecommons.org/licenses/by-sa/4.0/]]. + +Este sitio está cambiando todo el tiempo. A menudo se agregan ligeros ajustes, una sección completamente nueva o se elimina algo que ya no es relevante. Así que espere enlaces rotos y errores de escritura ocasionales en material nuevo. Hacemos lo posible por mantenerlo ordenado. + +Al recopilar estos materiales, hemos tomado prestado ocasionalmente muchos recursos en línea (como: textos, imágenes o ideas inspiradoras). Intentamos reunir el crédito de todas las fuentes en cada página; pero por favor, [[contáctenos|mailto:comunidad@copincha.org]] si encuentra alguna omisión o igualmente para brindarnos preguntas o comentarios.+
......+
aaaa +sa +xas +a +sasxsa + + +x + +sax + +ax + +xs+
!! How can I add sections to the left sidebar? + +Any tiddler with the system tag <<tag $:/themes/nico/notebook/tags/SidebarSection>> will be displayed as a section in the left sidebar.+
!! This is a proof of concept of a visual editor for writing pure text. + +Pure text means //''no widgets or macros, no custom HTML''.// + +I have a very raw, incomplete and preliminary proof of concept demo of a visual editor for everyone to play with to assess if this is worth pursuing further. + +''A few things to understand before we go further:'' + +* This takes a shortcut approach which means that it cannot be used as the basis of an editor that does support widgets and macros etc +* The idea is to see if this reliable enough to use in situations where we care more about the final presentation of the content than the underlying code +** To test out the feasability of the idea, I have used an existing HTML based editor and re-used it within TW but set it up to output wiki syntax. +** This is in very early days. I have done the bare minimum work on it so far to see if the idea is feasable. As such it is brittle. In other words, this is still far from being reliably usable. +** Therefore, the UI is far from ideal and this is not feature complete. Ignore those aspects as that can be addressed if the overall approach is found to be useful +** configuration options, integration with core editor features etc are all not addressed at the moment +*** on that note do not use the core toolbar in the editor other than the preview button. +* The main questions to answer here are: +** does such a visual editor providing support for very limited formatting offer any value? +** Is the conversion from wiki to HTML and back to wikitext, reliable enough for this subset of formatting options? +** The editor does not do a lossless wikitext->HTML->wikitext roundtrip, the aim however is for the product of such a roundtrip to look visually identical to the original text when rendered. +* For the purpose of this demo, the new editor is only active on tiddlers with the type text/typewriter. So if the editor does crash for some reason, you can just delete the type field to get the default editor +* Once in the editor, ''select any text to see formatting options''. (and yes its part of the non ideal UI for now that this needs a selection) +* Formatting is limited to the options provided by the toolbar. If you edit a tiddler that has had extra formatting added with wikitext or html, bad things will happen. Probably you loose that extra formatting or those bits of content. I don't think we can warn users that is happening either. +* the idea is not to use wiki syntax in this editor, but rather use the formatting commands to add formatting +* The editor would best be used to edit tiddlers that were also written in this editor. +* Creating links is very clunky at the moment. To add a tiddler link highlight some text, choose the last button on the toolbar and then type in # followed by the tiddler name. + +''//OK, go ahead and edit this tiddler and try selecting some text.//'' + +''//After that look at [[this|View demo]] tiddler.//'' + +!! Technical details. + +* The editor used is https://github.com/yabwe/medium-editor +* The choice of editor was one of expedience. <br>I have used this library before and it generates HTML consistent with TiddlyWiki, in particular paragraphs. <br>However, this library is no longer maintained and has not been in some time. Furthermore, the floating only toolbar UI is far from ideal. +* Other editors considered but found lacking: ProseMirror (too complex to setup and maintain without a committed maintainer), Trumbowyg (no nested lists and Trix (divs instead of paragraphs). Editors relying on jquery / angular / vue were not considered. Trix is probably worth another look. +* The conversion from HTML to markdown/tiddlywiki is by means of turndown: https://github.com/domchristie/turndown +* For the purpose of this demo, this editor is only active for tiddlers with the type: text/typewriter+
Este es el wiki del colectivo PRUEBAS+
Me interesa estudiar +la dinámica de la ciudad. +Utilizando herramientas de la ciencia, +organizo experimentos donde obtengo +los patrones de comportamiento +de los usuarios en el espacio público. +Con la serie Diagramas de Flujo +pretendo llevar estos patrones +al ámbito del arte. + +<center> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-diagramasdeflujo1.webp]] +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-diagramasdeflujo2.webp]] + +DIAGRAMAS DE FLUJO. Plaza Vieja. +Acrílico sobre pared +Impresión digital + +<br> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-diagramasdeflujo3.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-diagramasdeflujo4.webp]] + +DIAGRAMAS DE FLUJO. Plaza Vieja. +Óleo sobre lienzo +Cinco piezas de 29 x 29 cm cada una + +<br> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-diagramasdeflujo5.webp]] + +DIAGRAMAS DE FLUJO. San Agustín, 250 y 31 (en colaboración con el proyecto LASA) +Impresión digital + +<br> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-diagramasdeflujo6.webp]] + +DIAGRAMAS DE FLUJO. San Agustín, 250 y 31 +Impresión digital. 9 piezas de 27x 15 cm cada una. + +<br> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-diagramasdeflujo7.webp]] + +DIAGRAMAS DE FLUJO. San Agustín, 250 y 31 +Grato sobre cartulina. Seis piezas de 48 x 32 cm + + ++
La obra consiste en un dado electrónico, con sensores capaces de identificar cuál es la cara superior y así actualizar todas las demás para colocar el número mayor hacia arriba. La relación Arte-Ciencia-Fe, son importante en esta obra, el azar puede ser construido, manipulado, divina o electrónicamente. + +Realizada con Arduino Mini Pro, y piezas recicladas de otros equipos electrónicos. + +<center> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-diosnojugoalosdados1.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-diosnojugoalosdados2.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-diosnojugoalosdados3.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-diosnojugoalosdados4.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-diosnojugoalosdados5.webp]]+
This uses [[$:/richlink/img]] template to get a //polaroid wth image caption//. The use of this template is triggered by the ´.jpg´ suffix of the link. + +In particular, note that this particular template uses one of the //extra parameters//!. + +`<<richlink "http..." "blubb blubb">>` + +<br> +<<richlink "https://copinchapedia.copincha.org/proyectos/impresora3drada1.jpg" "Impresora 3D">> + ++
<div class="tc-table-of-contents"> + +<<toc-selective-expandable 'DOTS' sort[title] ]>> +</div>+
Hola, Bienvenido al Cafe Sorpesa. + +Mi nombre es Mauri, soy cubano, disenador industrial y soy fundador de Copincha, un hackerspace en La habana. + +Este Cafe Sorpresa se titula Tiddlywiki pa Copinchapedia. Pero vamos a hablar fundamentalmente sobre cuadernos de notas. + +!! Copincha y la necesidad de documentar + +Copincha nacio en junio de 2018 con un curso sobre Arduino. En muy breve tiempo ha venido reuniendo conocimientos y experiencias de las personas que les permitan socializar soluciones para el beneficio comun. Siempre con un caracter colaborativo y abierto. + +En la busqueda por hacer mas accesible estas experiencias a la comunidad comenzamos a trabajar en la documentacion y archivo, y en su publicacion en una wiki que hemos nombrado Copinchapedia. + +En Cuba el acceso de internet crece pero es todavia un servicio muy caro para la mayoria. + +En Cuba Existen proyectos de redes redes alternativas como SNET. +O el Paquete semanal, una forma de distribucion de contenidos, como especie de Netflix offline. Tambien la distribucion de contenidos desde negocios llamados casas de copias. + +Este contexto es inspirador para hacer de Copinchapedia una wiki que pueda ser distribuida devarias formas. Ya sea online o offline. Y asi garantizar que de alguna forma obtenga su público. + +A raiz del en cuentro en GIG hicimos contacto con Offray +y la comunidad Grafoscopio. +que nos sugirio explorar tiddlywiki y tambien otras herramientas como fossil y hedge doc que sirven colateralmente a este proposito. + +!! Que es tiddlywiki? +Tiddlywiki es un software contenido en un archivo html. +Este nos permite crear un cuaderno de notas e ir modificandolo y expandiendolo en el tiempo. El uso mas inmediato que podemos darle es crear un cuaderno personal. y puede ser una alternativa a herramientas como Google Keep, u otro software de notas. + +Para ejecutarlo solo debemos abrir este archivo html en cualquier explorador de internet, editar lo que queremos del contenido y guardar. + +Al contenido se pueden vincular recursos en internet, pero tambien. una caracteristica de tiddlywiki. es que autocontine varios archivos, como imagenes, pequenos audios... + +Tiddlywiki es una web en donde puedes crear un sistema de porciones de contenidos , como un sitema de ficas, e ir interconectando este contenido. + +para ello posee 3 caracteristicas importantes. + +la posibilidad de hacer enlaces entre fichas por hipertexto. +3. La posibilidad + +2. La posibilidad de hacer transclusiones. Que permite que una ficha muestre siempre el contenido de otra ficha de manera automatica. + + + + + + + + ++
... +... +...+
Este tiddler prueba las funcionalidades de la extensión [[RickLink|http://richlinks.tiddlyspot.com/]]. + +!! Imagen + +Escribir: + +``` +<<richlink "http://freedesignfile.com/upload/2015/10/Cartoon-underwater-world-beautiful-vector-02.jpg" "blubb blubb">> +``` + +produce: + +<<richlink "http://freedesignfile.com/upload/2015/10/Cartoon-underwater-world-beautiful-vector-02.jpg" "blubb blubb">> + +!! Audio + +Escribir: + + +``` +<<richlink "https://archive.org/download/Caruso_part1/Caruso-AveMaria.mp3">> +``` + +produce: + +<<richlink "https://archive.org/download/Caruso_part1/Caruso-AveMaria.mp3">> + +!! SoundCloud + +Escribir: + + +``` +<<richlink "https://soundcloud.com/nadaesoriginal/cultura-hacker-con-irene-soria">> +``` + +o: + + +``` +<<soundcloud "https://soundcloud.com/nadaesoriginal/cultura-hacker-con-irene-soria">> +``` + +produce: + +<<richlink "https://soundcloud.com/nadaesoriginal/cultura-hacker-con-irene-soria">> + +!! YouTube + +Escribir: + + +``` +<<richlink "https://www.youtube.com/watch?v=ZMGpAW0z_Bo">> +``` + +produce: + +<<richlink "https://www.youtube.com/watch?v=ZMGpAW0z_Bo">> + +!! JSFiddle + +Muestra experimentos de trozos de código que combinan JavaScript, HTML y CSS, extraídos +del popular sitio [[jsfiddle|http://jsfiddle.net]]. + +Escribir: + + +``` +<<richlink "http://jsfiddle.net/chriscoyier/Hyg3C/20/" "250px">> +``` + +produce: + +<<richlink "http://jsfiddle.net/chriscoyier/Hyg3C/20/" "250px">>+
Los "favicons" son pequeños iconos que la mayoría de los navegadores muestran para ayudar a los usuarios a identificar los sitios web. Tenga en cuenta que todos los navegadores admiten imágenes de mapa de bits, pero sólo algunos navegadores modernos admiten iconos en formato SVG. +favicons en el navegador + +Cuando TiddlyWiki se inicia en el navegador busca un tiddler llamado $:/favicon.ico y lo utiliza dinámicamente como el favicon de la página. Si modificas la imagen, el favicon cambia instantáneamente para reflejarlo. + +Para establecer una imagen externa como favicon, asigna la URL al campo _canonical_uri del tiddler $:/favicon.ico. +favicons en el servidor + +En el servidor, el ServerCommand servirá el tiddler $:/favicon.ico en la ruta /favicon.ico. + +Traducción realizada con la versión gratuita del traductor www.DeepL.com/Translator+
<!--body.tc-body { + background: white; +} +-->+
;example image +:[[lights.jpg]] + +simple image button using ''caption'' field at the image + +`<<ibox lights.jpg>>` + +<<ibox lights.jpg>> + +image button with custom caption + +`<<ibox lights.jpg "amazing ligths">>` + +<<ibox lights.jpg "amazing ligths">> + +just the image — displays image name as modal title, no captions though + +`<<ibox lights.jpg direct:yes>>` + +<<ibox lights.jpg direct:yes>> + +image button with [[custom style classes|$:/.tb/styles/pretty]] + +`<<ibox lights.jpg btn-class:"ibox-btn tc-btn-invisible pretty">>` + +<<ibox lights.jpg btn-class:"ibox-btn tc-btn-invisible pretty">>+
<<tabs class:"tc-vertical" tabsList:"[tag[Explorer]!has[draft.of]]" default:"Responders Statistics">>+
! Descripción + +La extrusión es un proceso continuo donde las partículas de plástico se insertan en la tolva y se extruyen en una hilo de plástico. Estas hilos se pueden usar para hacer nueva materia prima, plástico granulado, girar alrededor de un molde o usarse de manera creativa. + +{{maquina-extrusora-precious-plastic.png}} + +! Listado de materiales + +| !Elemento | !Descripción | !Cantidad | !Precio (CUP) | !Total (CUP) | !Conseguido | !Enlace | +| Tornillo de extrusión | 26 x 600 mm | 1 | 6250 | 6 250 | ✓ | | +| Tubo | ø interior 25, acero, 63 mm | 1 | 625 | 625 | ✓ | | +| Perfil L | 30 x 30 x 3mm, 320 mm, acero | 1 | 1 250 | 1 250 | ✓ | | +| Tolva | Grosor 1 mm, acero | 1 | 375 | 375 | ✓ | | +| Rodamiento | UCFL 204 | 1 | 25 | 25 | ✓ | [[⛶|https://bazar.preciousplastic.com/machines/shredder/shredder-parts/2pcs-shredder-machine-v2.1-bearing-pair-ucfl204/]] | +| Base | | 1 | | | | | +| Correa | | 1 | | | ✓ | | +| Motor | 2 HP, 1 600 - 1 700 rpm | 1 | 750 | 750 | | | +| Reductor | 1 / 80 - 130 | 1 | 1 000 | 1 000 | | | +| Controlador PID | 0-400 ºC | 2 | 500 | 1 000 | ✓ | | +| SSR | 2 - 24 V | 2 | 200 | 400 | ✓ | | +| Termoacopladores | Tipo K | 2 | 375 | 750 | ✓ | | +| Abrazadera termo-resistencia | 35 x 45 mm | 4 | 500 | 20 000 | ✓ | [[⛶|https://cntronic.com/ljxh-2pcs-lot-mica-band-heater-35x45mm-35x50mm-35x55mm-35x60mm-110v220v380v-150w-160w-180w-200w-stainless-steel-heating-element-23687]] | +| Encendedor de alimentación | | 1 | | | ✓ | | +| Cable de alimentación | 5 000 mm| 1 | | | ✓ | | + +''Total:'' 32 425 CUP + +<center> + +[img[/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-pph-extrusora-1.webp]] +[img[/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-pph-extrusora-2.webp]] [img[/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-pph-extrusora-3.webp]] + ++
{{Hackerspace Copincha}} + +Tipo: + +*{{!!comunitario}} +*{{!!recoleccion}} + ++
# Nombre del Proyecto + +> ***Pregunta que intenta respoder el proyecto*** + +![Imagen de Encabezado](images/header.jpg) + +Introducción al proyecto +Qué se hace? Quién(es) +lo hacen? Responsable ? + +## Contexto +Dónde? Por qué? +## Proceso de Trabajo +¿Cómo? + +## Proyectos +| | | +| - | - | +| ![Imagen de Proyecto](proyectos/nombre_proyecto/imagenes/proyecto.jpg) | **Nombre de proyecto** <br> Iniciado por: <br> Descripción | +| ![Imagen de Proyecto](proyectos/nombre_proyecto/imagenes/proyecto.jpg) | **Nombre de proyecto** <br> Iniciado por: <br> Descripción | + +<br> + +## Participantes +| | | +|-|-| +| ![Imagen del participante]() | Descripción | + ++
Los hackerspaces son lugares físicos gestionados de forma comunitaria, donde las personas se reunen y comparten su interés por la tecnología, trabajan en sus proyectos y aprenden de los demás.+
Dirección: {{Hackerspace Copincha!!direccion}} + +Email: {{Hackerspace Copincha!!email}} + +Teléfono: {{Hackerspace Copincha!!telefono}}+
{{impresora 3D Hangprinter.jpg}} + +!Descripción +{{Hangprinter - Descripcion}} + +!Listado de materiales +{{Hangprinter - Listado de materiales}} + +! Manual +!! Montaje de hardware + +[img[small_000.jpg]] + +Bienvenido al ensamblaje de hardware Hangprinter versión 3. Haga clic en las imágenes para ver versiones más grandes. Las siguientes instrucciones asumen que ha completado el paso de abastecimiento. + +[img[small_001.jpg]] + +Hardware para una construcción que no sea SmartStepper, excluyendo el cable USB y los tornillos. Tenga en cuenta que el material de la hoja rectangular es para construir anclajes ABC. Deben ser una pila de tres. Las partes impresas en blanco estarán en contacto con los motores. Imprímalos en un plástico resistente al calor en caso de que sus motores se calienten alguna vez. + +[img[small_002.jpg]] + +Empuje los carretes y los engranajes del carrete sobre los cojinetes 608. + +[img[small_003.jpg]] + +Repita para todos los carretes y engranajes de carretes. + +[img[small_004.jpg]] + +Empuje los carretes con rodamientos 608 en los núcleos de los carretes. + +[img[small_005.jpg] + +Ahora coge tus espaciadores. + +[img[small_006.jpg]] + +... y compruebe que encajan perfectamente en los núcleos de los carretes. + +<br> + +Ahora podría ser un buen momento para medir los radios de sus carretes con un par de calibradores. Tenga en cuenta los radios en los propios carretes. Esto será necesario para la calibración del firmware más adelante. + +También podría ser un buen momento para colocar líneas en sus carretes. Se requieren nueve líneas para impulsar la impresora. Por defecto, tres de ellos tienen 4 m de largo, los seis restantes tienen 7,5 m de largo. Coloque los de 4 m en un carrete. Coloque pares de 7.5 m en los tres carretes restantes. + +[[Aquí|http://forums.reprap.org/read.php?1,792937,809736#msg-809736]] encontrará una guía más detallada sobre cómo elegir la longitud de las líneas . Si usa longitudes de línea personalizadas o grosor de línea, debe especificar esto en la configuración del firmware más adelante. + +Así es como atas tu línea a tu carrete: + +[img[small_hangprinter_hitch_0.jpg]] + +Pase un bucle a través del orificio de la pared del carrete derecho y sáquelo del orificio izquierdo. + +[img[small_hangprinter_hitch_1.jpg]] + +Pase su línea a través del agujero derecho nuevamente. + +[img[small_hangprinter_hitch_2.jpg]] + +Apriete desde el interior. Deja mucho hilo suelto por dentro. + +[img[small_hangprinter_hitch_3.jpg]] + +Haz un simple tirón alrededor de la pierna izquierda de tu lazo. + +[img[small_hangprinter_hitch_4.jpg]] + +Primer plano del mismo enganche. + +[img[small_hangprinter_hitch_5.jpg]] + +Haz otro tirón por encima del anterior. Haz tres tirones en total, así que uno más después de este. + +[img[small_hangprinter_hitch_6.jpg]] + +Apriete sus enganches tirando de la pierna izquierda del lazo y del extremo suelto de la línea. Luego, tire de los carretes hacia afuera para ver si el nudo se sostiene. + +[img[small_hangprinter_hitch_7.jpg]] + +El exterior de su carrete ahora debería verse así. + +[img[small_008.jpg]] + +Compruebe que los engranajes de los carretes encajen bien en los carretes. Tenga en cuenta que los dos engranajes de carrete + carrete están montados al revés en esta imagen. Las escotillas en los radios del engranaje de carrete están ahí para dejar espacio para las cuatro cabezas de los tornillos más adelante. + +[img[small_010.jpg]] + +Inserte el tubo de PTFE en los rodillos de revestimiento de anclaje y corte al ras con el frente. + +[img[small_011.jpg]] + +Haga lo mismo con los D-linerollers. + +[img[small_012.jpg]] + +Los tubos de PTFE deben encajar bien en los rodillos de revestimiento en D. Empújelos así. + +[img[small_013.jpg]] + +Tubos de PTFE insertados. + +[img[small_014.jpg]] + +Monte los rodamientos 623 con ranura en V en todos los rodillos de revestimiento. + +[img[small_015.jpg]] + +Ahora agarre sus motores y engranajes del motor. + +[img[small_016.jpg]] + +Los engranajes del motor tienen orificios en forma de D y una muesca para ayudarlo a alinearlos con los ejes del motor. + +[img[small_017.jpg]] + +Golpee suavemente el engranaje del motor en su lugar con muchos golpes pequeños de un objeto ligero, suave y redondeado. No golpees fuerte. Si los orificios del engranaje del motor están demasiado apretados, taladre / lime más ancho o simplemente imprima otros nuevos. Si los orificios del engranaje del motor son demasiado anchos, inserte las tuercas desde abajo y apriételas con tornillos de fijación. + +[img[small_018.jpg]] + +El espacio entre el engranaje del motor y el motor debe ser de aproximadamente 1 mm. + +[img[small_019.jpg]] + +Ahora agarra los soportes del motor. + +[img[small_020.jpg) + +Primero inserte los tres tornillos en sus agujeros. Será más complicado hacerlo más tarde. + +[img[small_021.jpg) + +Monte los soportes del motor en los motores. + +[img[small_022.jpg) + +Ahora junta tus aparatos electrónicos. Se recomienda utilizar SmartSteppers en los motores A, B, C y D, aunque en la imagen se muestran los stepsticks. Consulte las <a href="#SmartStepper">instrucciones de montaje de SmartStepper</a> + +[img[small_023.jpg]] + +Inserte el paso / directorio de sus controladores en las salidas paso / directorio de la placa RAMPS. + +[img[small_024.jpg]] + +Monte su escudo RAMPS firmemente en su Arduino Mega. + +[img[small_025.jpg]] + +Coge las piezas de tu mudanza. + +[img[small_026.jpg]] + +Su viga de 40 cm debe empujarse hasta la raíz de la pared separadora. Esto es importante para obtener el ancho correcto de su triángulo de movimiento. + +[img[small_027.jpg]] + +Adjuntar con cremalleras sin apretar. + +[img[small_028.jpg]] + +Asegúrese de que las vigas estén alineadas con la raíz de la pared del separador. Luego apriete lo más fuerte que pueda sin romper las cremalleras. + +[img[small_029.jpg]] + +El triángulo terminado debe sentirse razonablemente rígido. No experimentará grandes fuerzas durante la impresión, pero no debería cambiar las dimensiones fácilmente. + +[img[small_030.jpg]] + +Deje unos mm de brida, para que pueda ajustarlos más tarde si es necesario. + +[img[small_031.jpg]] + +Si usa vigas de madera, puede perforar un orificio de montaje a través del lado del triángulo y la viga transversal. Si usa vigas de fibra de carbono, coloque la viga transversal con bridas en su lugar, como se muestra en esta [imagen vinculada.](https://copinchapedia.copincha.org/ziptied_crossbeam.jpg) + +[img[small_032.jpg]] + +Utilice arandelas en ambos lados del tornillo M3. + +[img[small_033.jpg]] + +Apriete bastante el tornillo. Si su madera es blanda, la lavadora debe hundirse ligeramente en la madera. + +[img[small_034.jpg]] + +Ahora agarra tus controles deslizantes de haz. + +[img[small_035.jpg]] + +Los controles deslizantes de la viga ABC deben estar bien sujetos. + +[img[small_036.jpg]] + +Los controles deslizantes de la viga D deben estar sueltos al principio. + +[img[small_037.jpg]] + +Apriete los controles deslizantes de la viga D colocándolos más adentro de la brida, apuntando hacia la esquina más cercana. + +[img[small_038.jpg]] + +Coloque los controles deslizantes ABC y D en los extremos opuestos de cada lado del triángulo. + +[img[small_039.jpg]] + +Pase una brida sobre la viga transversal y a través del soporte de la extrusora como se muestra. +[img[small_040.jpg]] + +Use dos zipties como se muestra en la imagen, o use un ziptie más largo. Apriete lo más fuerte que pueda. + +[img[small_041.jpg]] + +Agrega dos cremalleras más, en bucles rectos alrededor de la viga. + +[img[small_042.jpg]] + +Use la cuña impresa para apretar las correas largas. El soporte de la extrusora ahora debería estar muy ajustado a la viga transversal. + +[img[small_043.jpg]] + +El cable plano está sujeto con cremallera al soporte de la extrusora para aliviar la tensión. + +[img[small_044.jpg]] + +Monte su extrusora + extremo caliente de elección y guarde el motor terminado. + +[img[small_045.jpg]] + +Coge tu plantilla 2d-prints. Verifique que estén impresos al 100% de escala comparando los tamaños de los contornos impresos en 2d con las bases de las piezas impresas en 3D. [Imagen de una doble verificación exitosa.](https://copinchapedia.copincha.org/print_template_to_scale.jpg) + + +[img[small_046.jpg]] + +Colóquelos de modo que las líneas brillen. Idealmente en una ventana o en una mesa de cristal. + +[img[small_047.jpg]] + +Alinee las superposiciones perfectamente una encima de la otra. + +[img[small_048.jpg]] + +Pegue juntos. + +[img[small_049.jpg]] + +Coloque su plantilla 2d terminada en su placa de techo. + +[img[small_050.jpg]] + +Atornille la plantilla plana sobre la placa de techo. + +[img[small_051.jpg]] + +Marque las marcas a través de los centros de todos los círculos pequeños. + +[img[small_052.jpg]] + +La plantilla con todas las marcas martilladas se ve así. + +[img[small_053.jpg]] + +La placa del techo debajo debe tener marcas visibles como esta. + +[img[small_054.jpg]] + +Ahora monte sus carretes y rodillos de revestimiento preparados. Tenga en cuenta la orientación de los linerollers para que la línea pueda entrar como se especifica en la plantilla. Es útil marcar los carretes con los nombres A, B, C y D, como se especifica en la plantilla. No olvide los tornillos largos que atraviesan el centro de los núcleos del carrete. + +[img[small_055.jpg]] + +Un poco de juego en los engranajes es inofensivo porque las líneas pretensarán los engranajes de todos modos. Los engranajes que engranan mal o ruedan de manera desigual debido a un ajuste demasiado apretado pueden causar problemas más adelante. + +[img[small_056.jpg]] + +Apuntar los cables del motor lejos del centro del carrete es bueno, pero no crítico. + +[img[small_057.jpg]] + +Sujete los cables del motor lo más cerca posible del soporte del motor. + +[Video de montaje de piezas a placa de techo.](https://www.hangprinter.org/doc/v3/media/mounting_parts_onto_ceiling_plate.webm) + +<br> + +!!!!! SmartStepper y cableado <a name="SmartStepper"></a> + +Utilice el firmware que se encuentra en el [repositorio de Hangprinter](https://gitlab.com/tobben/hangprinter/tree/Openscad_version_3/firmware/SmartStepper_subtree) . Para saber cómo cargarlo, consulte la propia [documentación de Misfittech.](http://misfittech.net/nema-17-smart-stepper/) + +No tenemos un diagrama de cableado completo con SmartSteppers, por lo tanto, consulte el siguiente diagrama de cableado, pero tenga en cuenta que no se necesita el cambiador de nivel externo de 12V -> 5V, ya que este componente está integrado en los SmartSteppers. + +[img[small_hangprinter_electronics_diagram_mechaduino_ramps1.4_v2.3.jpg]] + +... y conecte los SmartSteppers de esta manera: + +[img[small_smartstepperwires.jpeg]] + +Cableado SmartStepper. + +<br> + +!!!!! Montaje + +Las únicas fuentes de instrucciones de montaje son videos: + +- [HP3 Build With tobben & Thomas Sanladerer (enlace directamente al montaje)](https://www.youtube.com/watch?v=iOwjbu2UMlQ&feature=youtu.be&t=3h54m43s) +- [Vínculos anotados en el video de compilación de HP3 de Tobben y Thomas Sanladerer](https://reprap.org/wiki/Links_Into_Hangprinter_v3_Build_Video#) +- [Compilación de HP3 con Chris Riley](https://www.youtube.com/watch?v=VBc7Zab64do&list=PLB_0YGFjbOnbQ_zPnpLAjwgnE2ryhKScB) + +<br> + +!!!!! Calibración de anclajes y acumulación de carretes + +Si lo está haciendo manualmente (sin SmartStepper), mire [esto](https://reprap.org/wiki/Links_Into_Hangprinter_v3_Build_Video#Now_going_into_an_hour_of_measuring_this). También mire las fuentes de video de [Chris Riley](https://www.youtube.com/watch?v=VBc7Zab64do&list=PLB_0YGFjbOnbQ_zPnpLAjwgnE2ryhKScB) y [Thomas Sanladerer](https://www.youtube.com/watch?v=Jk4fhQvNoaM&list=PLDJMid0lOOYmSWYimgOW-Q9OKyIp0OFyK). + +Si está utilizando SmartStepper, entonces tobben ha preparado un script que, con suerte, le permitirá evitar tener que medir las posiciones de los anclajes manualmente: [aquí](https://gitlab.com/tobben/auto-calibration-simulation-for-hangprinter). Es un poco difícil de usar, asegúrese de leer el archivo README y de presentar un problema si encuentra un error o una mejora. + +<br> + +<br> + +<br> + +Construir, montar, calibrar y ejecutar una HP3 es difícil. No estas solo. Asegúrese de revisar los [recursos](https://www.hangprinter.org/resources) , hay algunos bastante buenos. + +- tobben 👷 + +<br> + +--- + +La fuente de texto sin formato de este manual se publica bajo la licencia GPL-2.0 y se mantiene en el repositorio hangprinter-org . Todas las imágenes y videos también se publican bajo la GPL-2.0, excepto el diagrama de cableado, que se publica bajo la licencia GPLv3. + +--- + +Texto tomado de https://www.hangprinter.org/doc/v3/ + +!!!! Recursos + +!!!!! Social + +**[Blog de desarrollo de Tobben](https://torbjornludvigsen.com/blog)** + +**[Hilos de Hangprinter en el Foro RepRap](https://reprap.org/forum/list.php?423)** + +**[Grupo de Facebook](https://www.facebook.com/groups/hangprinter)** + +<br> + +!!!!! Repositorios + +**[Modelos 3D en STL](https://gitlab.com/tobben/hangprinter/tree/Openscad_version_3/openscad_stl)** + +**[Plantilla PDF](https://gitlab.com/tobben/hangprinter/blob/Openscad_version_3/layout_a4.pdf)** + +**[Hangprinter](https://gitlab.com/tobben/hangprinter)** + +**[Detector de colisión de línea](https://gitlab.com/hangprinter/line-collision-detector)** + +**[Hangprinter.org](https://gitlab.com/tobben/hangprinter-org)** + +**[Ayudante de calibración experimental para HP3](https://gitlab.com/tobben/auto-calibration-simulation-for-hangprinter)** + +**[Ayudante de calibración experimental para el HP4 experimental](https://gitlab.com/tobben/auto-calibration-simulation-for-hangprinter/-/tree/buildup_compensation)** + +**[HP4 experimental](https://gitlab.com/tobben/hangprinter/-/tree/version_4_dev)** + +**[Marca HP](https://gitlab.com/tobben/hp-mark)** + +<br> + +!!!!! Construcciones bien documentadas + +**[Fablab Chemnitz hizo una construcción HP3 bien documentada](https://wiki.fablabchemnitz.de/display/TH)** + +**[El usuario de los foros de Reprap pvsfa ha documentado un poco (compilación HP3)](https://reprap.org/forum/read.php?423,868741)** + +**[Compilación HP3 con Chris Riley](https://www.youtube.com/watch?v=VBc7Zab64do&list=PLB_0YGFjbOnbQ_zPnpLAjwgnE2ryhKScB)** + +**[Vídeos de Hangprinter de Thomas Sanladerer]()**+
[[Hangprinter|https://www.hangprinter.org]] es un modelo de impresora 3D delta por deposición fundida de código abierto que se destaca por su diseño único sin marco y su bajo costo. Fue creado por Torbjørn Ludvigsen. Muchas de las partes de esta impresora 3D se pueden producir en una impresora 3D (parcialmente autorreplicable), formando parte del proyecto RepRap. + +Se instala en un espacio determinado utilizando la propia habitación como marco. El diseño también se puede adaptar para utilizar una mesa en lugar de una habitación completa. La impresora tiene un Efector que se suspende del techo y se mueve mediante motores paso a paso estacionarios con poleas e hilos de sedal. + +Uno de los beneficios de perder el marco es, por supuesto, un volumen de construcción mucho mayor, ya que no está restringido a "la caja". Con tres puntos de anclaje que mantienen la máquina en su lugar, la Hangprinter puede colgarse de cables conectados al techo. A continuación, el sistema puede determinar qué movimientos realizar a partir de las ubicaciones configuradas del firmware.+
[[Listado de materiales original|https://docs.google.com/spreadsheets/d/1lOPZoF1P2OSdJcijZRVrwAEVFh3LLAnf6-s6k-hlbZU]] + +|!Partes impresas|!Cantidad|!Detalles|!Conseguido| +| Beam Slider ABC | 3 | | ✓ | +| Beam Slider D | 3 | | ✓ | +| Corner Clamp | 3 | | ✓ | +| Extruder Holder | 1 | Usar plástico resistente al calor | ✓ | +| Lineroller ABC Winch | 3 | | ✓ | +| Lineroller D | 3 | | ✓ | +| Lineroller Anchor Template | 2 | | ✓ | +| Lineroller Anchor | 6 | | ✓ | +| Motor Braket | 4 | Usar plástico resistente al calor | ✓ | +| Motor Gear | 4 | | ✓ | +| Spool | 4 | | ✓ | +| Spool Gear | 4 | | ✓ | +| Spacer | 4 | | ✓ | +| Spool Core | 4 | | ✓ | +| Cable Clamp | 12 | | ✓ | +| Layout | 1 | | ✓ | +| Mechaduino standoff | 32 | Usar plástico resistente al calor | ✓ | + +<br> + +| !Vitaminas | !Cantidad | !Detalles | !Conseguido | +| Motor Nema 17 | 5 | > 40 N/cm holding torque, flat shaft. Se reduce a 4 por impresora si otro motor es usado para el extrusor. | ✓ | +| FireLine 0.5 mm | 60 m | 0.39 mm también sirve. Es significante cuán largo cortes los hilos. | ✓ | +| Hoja de MDF o Plywood | 50x50 cm | Grosor 10-14 mm | | +| Arduino Mega | 1 | | ✓ | +| RAMPS | 1 | | ✓ | +| Controladores de motor paso a paso (pololu) | 1 | | ✓ | +| Cable USB (tipo B) | 1 | | ✓ | +| Listón de 40 cm de largo | 3 | Perfil cuadrado de 15 mm de grosor | ✓ | +| Listón de 27.5 cm de largo | 1 |~| ✓ | +| Fuente | 1 | 12 V, 12.5 A o mayor | ✓ | +| Brida plástica | 18 | ancho entre 4 y 5 mm | ✓ | +| Tornillo M3, largo 5 mm | 16 | | ✓ | +| Tornillo M3, largo 12 mm | 12 | | ✓ | +| Tornillo M3 largo, 45 mm | 16 | Ca 1 cm longer than your motor body height. For mounting Mechaduino PCB on motor rear. | | +| Tornillo M3/M4, largo 14 - 20 mm | 4 | For attaching PSU to sheet | ✓ | +| Rodamiento 608 | 8 | | ✓ | +| Rodamiento 623 con ranura V | 12 | | ✓ | +| Tubo de PTFE | 10 cm | Standard bowden, 4 mm outer dia, any inner dia | ✓ | +| Tornillo de madera autorroscante ca M3x10 | ca 90 | M[2.5-4.5]x10, head diámetro 8-14 mm, non-countersunk. For fastening to ceiling plate | | +| Tornillo de madera autorroscante M4x45 | 4 | For fastening spool core | | +| Tornillo de madera autorroscante M2x[6-14] | 4 | Head diameter ca 4 mm. For mounting Mega onto sheet material. | | +| Tornillo de madera autorroscante M3x10 | 18 | Head diameter 7 mm, length 10 mm Countersunk head. For attaching linerollers on ABC anchors| | +| Arandela M6 o M8 | 4 | For capping 608 bearings in place on top of spool core | ✓ | +| Cinta de 15 hilos de cable | 5 m | O cinta de 30 hilos de cable 28AWF with quadrupled wires to/from the heater element | ✓ | +| Tuerca M3 Nuts | 12 | | ✓ | +| Extrusor + hot end | 1 | Cualquier configuración que se ajuste a Nema17 debe funcionar | ✓ | +| Cables de alimentación Rojo y Negro | ca 2.5 | Para conectar 12 V a la RAMPS y los Mechaduinos | ✓ | +| Smart Stepper PCB | 4 | Sirve tanto la versión de Mechaduino 0.2 como la 0.1 | ✓ | +| Cable Jumper | ca 50 | Para codificar el sistema con 7 colores | ✓ | +| Regulator 5V | 1 | Para energizar Mechaduino directamente desde el PSU. Recommended for reliable long term operation | | +| 5V -> 3V3 level converter | 1 | para RAMPS i2c <-> Mechaduino. Small breadboard handy for connecting this | | ++
<<helloworld Adithya>>+
!! Hypotesis + +Creación de una cuenta en Hypothesis + +<richlinks https://youtu.be/cKf3lptMy7k> + +Comentar en Hypothesis +https://youtu.be/DUjjJ5Nhc4k + + +!! ~CodiMD + +Escritura colaborativa en CodiMD. +https://youtu.be/lzzvu0y9Jjs+
''Javascript'' code: + +```javascript +(function(a,b){ + var result = a+b; + return result; +})(10,20) +``` + +''CSS'' code: + +```css + * { margin: 0; padding: 0; } /* micro reset */ + +html { font-size: 62.5%; } +body { font-size: 14px; font-size: 1.4rem; } /* =14px */ +h1 { font-size: 24px; font-size: 2.4rem; } /* =24px */ +``` + +''Perl'' code: + +```perl +package Name; +my $singleton; + +BEGIN { + $singleton = { + attribute => 'value', + another => 'something', + }; + bless $singleton, "Name"; +} + +sub new { + my $class = shift; + return $singleton; +} +``` + +''Python'' code: + +```python +class Singleton: + __single = None + def __init__( self ): + if Singleton.__single: + raise Singleton.__single + Singleton.__single = self +``` + +''Lua'' code: + +```lua +function Strong(elem) + return pandoc.SmallCaps(elem.c) +end +``` + +''Bash'' code: + +```bash +echo prueba +``` + +''Pharo'' code: + +{{Consultar y organizar datos en Pharo}}+
{{info style}} + +!! Desde el navegador web + +* Cliquea el botón el botón <<icon {{$:/core/images/save-button}} "">> de la barra principal, que puede estar localizada en distintas ubicaciones (a la derecha o abajo o incluso oculta) dependiendo del dispositivo desde donde estés navegando este tema y el tamaño de la ventana. + +* Dependiendo de tu configuración del navegador, éste te indicará la ruta donde quieres descargarlo o lo enviará directamente a la carpeta de descargas. + +@@.info +Si quieres usar la extensión de Firefox [[File Backups|https://mutabit.com/repos.fossil/indieweb/uv/docs/es/miniwiki/indieweb-brea.html#File%20Backups%20plugin]] para guardar futuros cambios en tu wiki, debes almacenar el wiki en la carpeta de "Descargas" (esta podría llamarse "Downloads" o de otra manera, dependiendo del idioma y otros aspectos de la configuración de nuestro sistema operativo). +@@ + +!! Desde la consola de comandos + +Entra a la carpeta donde quieras hacer la descarga (por ejemplo `Descargas`) y desde allí +ejecuta (debes tener instalado [[wget|https://es.wikipedia.org/wiki/GNU_Wget]] o +[[curl|https://en.wikipedia.org/wiki/CURL]] para esto): + +```bash +wget https://mutabit.com/repos.fossil/tiddlywiki/uv/seeds/projectify/projectify-mod.html +``` + +ó: + +```bash +curl -o miwiki.html https://mutabit.com/repos.fossil/tiddlywiki/uv/seeds/projectify/projectify-mod.html +``` + +en la opción con curl `miwiki.html` puede ser cambiada por el nombre que deseemos. + +!! Desde [[Pharo|https://pharo.org]] + +Abre un [[Playground|https://github.com/pharo-open-documentation/pharo-wiki/blob/master/General/Playground.md]] y ejecuta: + +```smalltalk +'https://mutabit.com/repos.fossil/tiddlywiki/uv/seeds/projectify/projectify-mod.html' asUrl saveContentsToFile: (FileLocator home/'Descargas/miwiki.html') +``` + +Observa que la última parte es a dónde quieres descargar el wiki y que, consistente con los ejemplos anteriores, la hemos venido colocando en una ruta dentro de la carpeta "Descargas".+
!! Theme and plugin installation + +Drag the following tiddlers into your wiki to import them: + +{{$:/plugins/nico/notebook-mobile||$:/core/ui/Components/plugin-info}} +{{$:/themes/nico/notebook||$:/core/ui/Components/plugin-info}} + +!! Setup + +* Set the theme to `Notebook` +* Set the colour palette to either `Notebook grey`, `Notebook beige`, or `Notebook dark`. Alternatively, click the {{$:/themes/nico/notebook/ui/Buttons/SwitchPalette}} button. ++
! Descripción + +En la inyección, las partículas de plástico se calientan y se inyectan en un molde. Es un proceso relativamente rápido y adecuado para crear producciones de objetos pequeños. Los moldes se pueden hacer utilizando fresadoras o tornos CNC, o simplemente soldando. + +{{maquina-inyectora-precious-plastic.png}} + +| !Elemento | !Descripción | !Cantidad | !Precio (CUP) | !Total (CUP) | !Conseguido | !Enlace | +| Lámina de acero | 20 mm x 3 mm, 180 mm, acero | 1 | 450 | 450 | | | +| Lámina de acero | 30 mm x 4 mm, 1600 mm, acero | 1 | 125 | 125 | | | +| Base | | 1 | | | | | +| Barra redonda | 26 mm x 680 mm, acero | 1 | | | ✓ | | +| Tubo cuadrado | 30 x 30 x 3 mm, acero | 5700 mm | | | | | +| Tubo | 34 x 26 x 4 mm | 530 mm | | | ✓ | | +| Perfil L | 30 x 30 x 3mm, 160 mm, acero | | | | ✓ | | +| Base de madera | | 1 | | | ✓ | | +| Tolva | Grosor 1 mm, acero | 1 | 250 | 250 | | | +| Controlador PID | 0-400 ºC | 2 | 500 | 1 000 | ✓ | | +| SSR | 2 - 24 V | 2 | 200 | 400 | ✓ | | +| Termoacopladores | Tipo K | 2 | 375 | 750 | ✓ | | +| Abrazadera termo-resistencia | 35 x 45 mm | 4 | 500 | 20 000 | ✓ | [[⛶|https://cntronic.com/ljxh-2pcs-lot-mica-band-heater-35x45mm-35x50mm-35x55mm-35x60mm-110v220v380v-150w-160w-180w-200w-stainless-steel-heating-element-23687]] | +| Encendedor de alimentación | | 1 | | | ✓ | | +| Cable de alimentación | 5 000 mm | 1 | | | ✓ | | + +''Total:'' 22 975 CUP+
Instalación sonora. + +La pieza fue una instalación interactiva en la +que la Plaza Vieja se convirtió en un escenario para interpretar la música de John Cage. +Utilizando una cámara de video, un ordenador y un software, transformé este +espacio en una interfaz donde las personas, con su desplazamiento, activaban en tiempo +real los sonidos del compositor guardados en una matriz. + +<center> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-johncageinterpretado1.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-johncageinterpretado2.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-johncageinterpretado3.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-johncageinterpretado4 +.webp]] ++
Performance e Intervención Sonora en colaboración +con la bailarina Ana Sofía Polo. Con la pieza buscaba invertir la relación tradicional que existe +entre el ejecutante danzario y la música. En este caso el bailarín improvisa sobre el escenario +y con su movimiento genera en tiempo real el sonido que se escucha en la sala. +La obra es además una apropiación de las obras que realizaran en colaboración el compositor +John Cage y el coreógrafo Merce Cunningham. + +<center> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-johncageinterpretado2-1.webp]] ++
!!! Quienes son? +!!! Que puntos de contacto tienen con el reciclaje de plastico? +!!! Cómo se realiza la recoleccion? +!!! Cómo se realiza la clasificación? +!!! Cómo se realiza la limpieza? +!!! Cómo se reaiza la Producción? +!!! Cómo se realiza la venta o renta? +!!! Cómo e realiza el consumo? +!!! Cómo se realiza la recuperación de materiales? + +!!! Qué acciones necesitan de otros proyectos? + +!! Contactos + +telefono + +Grupo wasap + +Direccion + +Geoloalizacion + +!!+
En este taller aprendemos a construir colaborativamente herramientas y máquinas de código abierto para reciclar plástico, usando preferiblemente recursos localmente accesibles. + +*Por favor entienda este espacio como un laboratorio vivo donde vamos actualizando el contenido para reflejar las iniciativas e interacciones que participan.* + +<br> + +# Objetivos: + +- Aprender sobre los procesos técnicos y usos prácticos más comunes para reciclar de plásticos. + +- Construir colaborativamente máquinas de código abierto para reciclar de plástico usando la mayor cantidad reursos accesibles en Cuba. + + - Construir una trituradora de plástico. + + - Construir una extrusora. Para hacer filamentos de impresión 3D con el plástico triturado. + + - Construir una hangprinter. Para fabricar por impresión 3D objetos de grandes dimensiones con los filamentos plásticos. + + - Documentar las experiencias de construcción de máquinas en el repositorio público. + +- Exponer Mapear y documentar otras experiencias ya existentes de construcción de máquinas de código abierto para reciclar plástico. + +<br> + +# Máquinas en construcción + +<br> + +## Trituradora de plástico + +![trituradora.jpeg](/8c2e157f298e40ca9e1de6639ed86665.jpeg) + +### Tab {.tabset} + +#### Descrpción + +Corta artículos de plástico en pequeñas partículas listas para ser convertidas en cosas nuevas por otras máquinas. El plástico triturado puede ser de múltiples tamaños y colores para aumentar su valor. + +#### Listado de materiales + +Los detalles del costo de una trituradora según lo que el proyecto ya ha conseguido están [aquí](https://docs.google.com/spreadsheets/d/1ArtWWj6Qs_AYpu6C6BTy-PNZvMUTdnTiIenrF_23XxQ/). +<br> + +| Partes | Cantidad | Detalles | Conseguido | +|------------------------------------|-----------|----------------------------------|-| +| Cuerpo de Cuchillas | 1 | | ✓ | +| Barra hexagonal | 1 | | ✓ | +| Soporte | 4 | Perfil L 30x30x3 | | +| Malla | 1 | | | +| Rodamientos | 2 | | ✓ | +| Tolva | 1 | | ✓ | +| Base | 1 | Perfil cuadrado x30 | | +| Motor | 1 | Motor monofásico 2Hp, 1600 -1700 RPM | ✓ | +| Reductor | 1 | entre 1->80 y 1->130 | ✓ | +| Encendedor de alimentación | 1 | | ✓| +| Indicador LED | 1 | | ✓ | +| Cable de alimentación | 5m | | ✓ | + +<br> + +#### Enlaces + +uu + +{.is-info} + +<br> + +## Extrusor de Filamentos RepRapable Recyclebot + +![extrusor de filamentos.jpg](/9449d00fd1ea4ee4b9a050adfea7efec.jpg) + +### Tab {.tabset} + +#### Descrpción +La extrusión es un proceso continuo donde las partículas de plástico se insertan en la tolva y se extruyen en una hilo de plástico. Estas hilos se pueden usar para hacer nueva materia prima, plástico granulado, girar alrededor de un molde o usarse de manera creativa. + + + ++
\define tv-wikilink-template() https://projectify.wiki/demo.html#$uri_encoded$ + +! Projectify Mod + +[[Projectify|https://projectify.wiki/]] es una aplicación para gestión de proyectos basada en [[TiddlyWiki|https://tiddlywiki.com]], +inspirada en proyectos como [[Todoist|https://todoist.com]] y [[Basecamp|https://basecamp.com]]. + +[[TiddlyWiki|https://tiddlywiki.com]] es una excelente aplicación de toma de notas, base de conocimiento +con [[características únicas|https://tiddlywiki.com/#TiddlyWiki]]. +Projectify trae la gestión de proyectos a ~TiddlyWiki extendiéndolo para permitirte +[[capturar pensamientos|$:/plugins/nico/projectify/doc/Inbox]], [[planear proyectos|$:/plugins/nico/projectify/doc/Projects]] y [[programar tareas|$:/plugins/nico/projectify/doc/Schedule]]. + +//Al unir en Projectify un wiki a la gestión de proyectos se pueden potenciar procesos particulares, +como aquellos relacionados con el aprendizaje entre pares y por proyectos, que será uno de los enfoques de +esta variante de Projectify en español, +llamada ''Proyectify Mod''. +// + +Projectify está cuidadosamente confeccionado, con una interfaz intuitiva que se integra a la perfección con el núcleo de~TiddlyWiki. +[[Arrastra y suelta |https://tiddlywiki.com/#Drag%20and%20Drop]] cualquier [[tiddler|Tiddlers]] en un +proyecto para agregarlo como un pendiente, [[transcluye|https://tiddlywiki.com/#Transclusion]] y +[[enlaza|https://tiddlywiki.com/#Linking%20in%20WikiText]] otros tiddlers en proyectos o tareas. + +Para saber qué moficaciones particulares se introducen en este wiki revisa el [[tiddler|Tiddlers]] titulado [[Modificaciones]]. + +Para todos los cambios en la última versión lanzada {{$:/plugins/nico/projectify!!version}}, mira +la [[Bitácora de Cambios|$:/plugins/nico/projectify/changelog]]. + + +!! Demos + +Hay demos disponibles: + +* en inglés en [[projectify.wiki|https://projectify.wiki]]. +* en español en: [[Projectify Mod|https://mutabit.com/repos.fossil/tiddlywiki/uv/seeds/projectify/projectify-mod.html]]. + +!! Descarga e instalación + +Visita [[Instalación]] para descargar e instalar una semilla wiki a pre-configurada. + +Alternativamente, mira [[Installation|$:/plugins/nico/projectify/doc/Installation]] para instrucciones +de instalación en un wiki existente. + +!! Documentación + +* Si eres nueva en ''~TiddlyWiki'', te recomendamos leer los [[enlaces introductorios a TiddlyWiki|https://mutabit.com/repos.fossil/indieweb/uv/docs/es/miniwiki/indieweb-brea.html#TiddlyWiki]] + +* La "documentación de Projectify" está disponible [[en línea|$:/plugins/nico/projectify/doc/Help]] así como localmente cuando el plugin está instalado. + +!! Paquetes de lenguajes + +Projectify está actualmente disponible en inglés, holandés, alemán, francés, español y chino simplificado. + +* Para el paquete de lenguaje francés, instala [[$:/plugins/nico/projectify-fr-FR|https://projectify.wiki/demo.html#%24%3A%2Fplugins%2Fnico%2Fprojectify-fr-FR]]. +* Para el paquete de lenguaje holandés, instala [[$:/plugins/nico/projectify-nl-NL|https://projectify.wiki/demo.html#%24%3A%2Fplugins%2Fnico%2Fprojectify-nl-NL]]. +* Para el paquete de lenguaje alemán, instala [[$:/plugins/nico/projectify-de-DE|https://projectify.wiki/demo.html#%24%3A%2Fplugins%2Fnico%2Fprojectify-de-DE]]. +* Para el paquete de lenguaje español, instala [[$:/plugins/nico/projectify-es-ES|https://projectify.wiki/demo.html#%24%3A%2Fplugins%2Fnico%2Fprojectify-es-ES]]. +* Para el paquete de lenguaje chino simplificado, instala [[$:/plugins/nico/projectify-zh-Hans|https://projectify.wiki/demo.html#%24%3A%2Fplugins%2Fnico%2Fprojectify-zh-Hans]]. + +!! Configuración de desarrollo + +Si te dedicas al desarrollo del software, esto es lo que debes hacer para trabajar con Projectify: + +* Instala [[Node.js|https://nodejs.org/en/]] +* En la carpeta raíz del proyecto ejecuta `npm install` +* Para iniciar el servidor de TiddlyWiki, ejecuta `npm run serve`. El wiki está disponible en http://localhost:8080. +* Para servir o construir una edición en un lenguaje particular, refiérete a `package.json` +* Para construir archivos HTML para todas las ediciones, ejecuta `npm run build`. + +!! Contribuyentes + +Muchas gracias a las siguientes personas, quienes han contribuido a Projectify: + +* [[@OdinJorna|https://github.com/OdinJorna]] +* [[@Kookma|https://github.com/kookma]] +* [[@Joebordes|https://github.com/joebordes]] +* [[@Silvyn|https://github.com/silvyn]] +* [[@HueLiu|https://github.com/HueLiu]] +* [[@gregorfischer|https://github.com/gregorfischer]] ++
<$image source=<<image>> width="100%" height="100%"/><$reveal type=match text="" default=<<caption>>><$transclude tiddler=<<image>> field=caption/></$reveal><$reveal type=nomatch text="" default=caption><<caption>></$reveal>+
[[ventana de pieza]] + +[[ventana de pieza]] + +[[ventana de pieza]]+
<div style="font-size:0.7em;text-align:center;margin-top:2em;margin-bottom:2em"> +<<list-thumbnails filter:"[tag[Lista de proyectos]]" width:"170" height:"170" padding:"30">> +</div>+
Copincha + +!! Ciclo Copincha +{{Ciclo Copincha}} + +Laboratorio + +Abierto, Accesible, Apropiable +Común (Diversidad) +Local +Experimentación y prototipado +Cultura libre +Comunidades de aprendizaje y practica. + + +Actividades + +Cafe Sorpresa + +Cafe Reparacion + +Poster Mandos + +poster taller + +Cultivo + +Documentacion + +Copinchapedia + +Aprovechar Paquete Semanal + +Jargines Digitales + +Tiddlywiki + +Infraestructuras de bolsillo + +Simplificar las infraestructuras + +Fossil + +Chatbot + +Wikis federadas + + + + + ++
<br> + +<$leafmap tile='toner' places='{"filter":" [tag[geoplasticoleal]]"}' style='{"color":"orange"}' +marker='marker'clusterType='tiddler'/> + +<!-- + +!Para insertar en su pagina web + +Copie y pegue este codigo en su pagina + +``` +codigo +``` +--> + +!Para Copinchapedia version offline +Descargar "tiles" de mapa en: +https://data.maptiler.com/downloads/dataset/osm/central-america/cuba/la-habana/#8.82/23.0314/-82.4261 + +!Para Maps.ME + +{{Maps.Me}} + +#Descargamos la base de datos (en .KMZ) +#Copiamos el archivo .KMZ en la carpeta donde tiene los archivos de luegares favoritos de Maps.ME (por defecto, maps.me guarda estos archivos en ...). +#Abrimos Maps.ME y activamos la base de datos. Listo! + +[[Mapa-Reciclaje-Plastico-Maps.Me|https://mapa.com/mapa.kmz]] + +! Descripcion +es un mapa para conectar las iniciativas de reciclaje de plastico y posibilitar encadenamientos que favorezca ciclos donde se mantenga para ser reciclable.+
Es una aplicacion para android que permite ver mapas offline. + +Maps.me es una aplicacion muy usada en cuba debido a las dificultades de conexion.+
[[Máquinas Precious Plastic]] + +[[Hangprinter]]+
{{maquinas-precious-plastic.png}} + +! Resumen + +!! Problemática + +En La Habana es escaso el conocimiento de acceso abierto para la construcción de máquinas para el reciclado de plástico. + +!! Pregunta + +<<<.tc-big-quote +''¿Cómo podemos construir, con recursos accesibles en Cuba, máquinas de código abierto para reciclar plástico en La Habana?'' +<<< <!-- Autor--> + +!!! Hipótesis +Las máquinas de Precious Plastics son ideales para comenzar y entrar al reciclaje local de plástico. Nos permiten jugar, fabricar productos, organizar talleres y educar a las personas. Estas máquinas son pequeñas, amigables y fáciles de entender, lo que las hace perfectas para talleres educativos en eventos o escuelas. + +Los materiales y herramientas necesarios para construir estas máquinas están fácilmente disponibles y asequibles en el país. + +Todo el conocimiento y material de Precious Plastic está compartido bajo una licencia de fuente abierta. + +Aquí listamos algunas ventajas locales, desde el punto de vista social, económico, y ambiental. + +* La gente mientras más aprende de los procesos productivos se involucra más. + +* Permite probar soluciones de forma más rápida para contextos locales específicos, favoreciendo la autogestión en una pequeña comunidad. + +* Genera trabajo mediante la fabricación de las máquinas por fabricantes e industrias locales. + +* Genera una fuente de ingreso mediante la venta del plástico procesado o de los productos que se pueden fabricar con estas máquinas. + +* Genera puestos de trabajo y dignifica a la persona que realiza la acción de juntar y procesar el plástico. + +* Estas máquinas de reciclaje de pequeña escala constituyen la función vital para permitir que las personas en La Habana conviertan el plástico desechado en plástico útil. + +* Limpia el medio ambiente. + +Podemos construir las máquinas de Precious Plastics colectivizando los recursos que creemos que puedan servirnos. Este proceso nos servirá como punto de partida para desarrollar una base común de construcción de máquinas replicables de código abierto y así además acercar la producción con residuos plásticos a las personas. + +Colectivizando recursos entre personas y organizaciones interesadas, podemos construir las máquinas de Precious Plastics. Este proceso nos servirá como punto de partida para desarrollar una base común de conocimientos y producciones basadas en fuentes y colaboraciones abiertas. Lo cual garantizará la accesibilidad, la replicabilidad local y más aprendizaje e inclusión de personas a optar por modos más sostenibles de tratar el plástico. + +! Objetivos + +Reunir y visualizar una base abierta de conocimientos para construir máquinas de reciclado de plástico. + +Reunir y dar visibilidad a la información necesaria para construir las máquinas seccionada en: + +* Fabricantes (que puedan producir y armar piezas o conjunto de piezas de máquinas.) + +* Repositorios públicos + +* Descargas + +* Contribuyentes + +* Colectivizar recursos para la construcción colaborativa de máquinas para el reciclado de plástico. + +Construir colaborativamente las máquinas de Precious Plastic colectivizando recursos. + +* Visualizar públicamente el estado de proyecto los recursos colectivizados. + +Documentar cada proyecto. + +!!Máquinas + +Invitamos a todos los interesados en el reciclaje de plásticos a contribuir para juntos tener la experiencia de prototipar y construir colaborativamente estás máquinas. + +Reuniendo la experiencia logramos acortar el tiempo de búsqueda en cómo hacer que estas soluciones sean implementadas. Una base común que compartir. + +[[Trituradora Precious Plastic]] + +[[Inyectora Precious Plastic]] + +[[Extrusora Precious Plastic]]+
STATEMENT: No pretendo que mi obra se categorice exclusivamente como artística, me interesa +que sea transdisciplinar, que se pueda mover transversalmente entre manifestaciones +humanas como el arte, la ciencia, la ingeniería o el diseño. Más que elaborar metáforas, +intento que mi trabajo proponga soluciones concretas a problemas +de la sociedad contemporánea. + +<div class="tc-table-of-contents"> + +<<toc-selective-expandable 'Maykel Rodríguez Ricardo' sort[title] ]>> +</div>+
[[masharu |https://masha-ru.tumblr.com/page/3]] + +[[El Parque Horizontal - Copincha en el Parque|https://www.facebook.com/permalink.php?story_fbid=303376944402839&id=106156304124905]]+
Aquí registramos Copincha es visto desde diferentes voces mediáticas. + +[[Alma Mater - Cuál es la pincha de Copincha|https://medium.com/revista-alma-mater/cu%C3%A1l-es-la-pincha-de-copincha-beb1750275e1]] + +[[IPS - Inventores de Cuba ofrecen soluciones para la pospandemia|http://ipsnoticias.net/2020/05/inventores-cuba-ofrecen-soluciones-la-pospandemia/]] + +[[IPS - Emprendimiento cubano recicla plástico y hace fuentes decorativas|https://www.ipscuba.net/medio-ambiente/emprendimiento-cubano-recicla-plastico-y-hace-fuentes-decorativas/]] + +[[EL Toque - Tecnologías resilientes para esta y otras crisis|https://eltoque.com/tecnologias-resilientes-para-esta-y-otras-crisis]] + +[[El Toque - Máquina de semillas hecha en Cuba|https://eltoque.com/maquina-de-semillas-hecha-en-cuba]] + +[[masharu |https://masha-ru.tumblr.com/page/3]] + +[[El Parque Horizontal - Copincha en el Parque|https://www.facebook.com/permalink.php?story_fbid=303376944402839&id=106156304124905]]+
[[Alma Mater - Cuál es la pincha de Copincha|https://medium.com/revista-alma-mater/cu%C3%A1l-es-la-pincha-de-copincha-beb1750275e1]] + +[[IPS - Inventores de Cuba ofrecen soluciones para la pospandemia|http://ipsnoticias.net/2020/05/inventores-cuba-ofrecen-soluciones-la-pospandemia/]] + +[[IPS - Emprendimiento cubano recicla plástico y hace fuentes decorativas|https://www.ipscuba.net/medio-ambiente/emprendimiento-cubano-recicla-plastico-y-hace-fuentes-decorativas/]] + +[[EL Toque - Tecnologías resilientes para esta y otras crisis|https://eltoque.com/tecnologias-resilientes-para-esta-y-otras-crisis]] + +[[El Toque - Máquina de semillas hecha en Cuba|https://eltoque.com/maquina-de-semillas-hecha-en-cuba]]+
<<alert warning "Tamasha is a presentation app based on Web technology and [[Tiddlywiki|https://tiddlywiki.com/]] and works on any modern browser." width:"50%">> + +<<alert info "Mensaje de alerta gris">> + +<<alert dark "Mensaje de alerta gris">> + +<<alert light "Mensaje de alerta">> + +<<alert danger "Mensaje de alerta">> + +<<alert success "Mensaje de alerta">> + +<<alert success "Mensaje de alerta">> + +<<alert "Mensaje de alerta">>+
The default template used for the ibox modal. + +<<source [[Lightbox]]>>+
!! Primeros pasos con OpenScad + +!!! Crear un cubo Hola mundo + +[[Video Tutorial|http://www.youtube.com/watch?v=xvhbrUSQRTc]] + +!!! Programa +``` +//-- Cubo Hola Mundo + cube([10,10,10]); +``` +!!! Pasos a realizar: + +* Abrimos OpenScad. + +* Escribimos el código del programa. + +* Pulsamos <kbd>F5</kbd> para visualizar el cubo en pantalla. Hemos creado un cubo de 10mm de arista. + +* Con la rueda del ratón hacemos zoom. + +* Manteniendo pulsado el <kbd>botón izquierdo</kbd> del ratón y moviéndolo, rotamos la vista del cubo. + +* Manteniendo pulsado el <kbd>botón derecho</kbd> del ratón y moviéndolo, hacemos la traslación del punto de vista. + +* Por último grabamos el programa OpenScad creado. + +* Pulsamos <kbd>F6</kbd> para hacer una visualización con más definición. + +* Exportamos la pieza al formato STL (view/export as STL). + +De esta forma ya el cubo está listo para ser impreso en una impresora 3D. + + + + + + + ++
[[Proyectify Mod|✨ Acerca de]] introduce las habituales modificaciones (o mods) alojadas en el [[repositorio de mods|https://mutabit.com/repos.fossil/tiddlywiki/]]: + +* Soporte de interfaz para Español e Inglés. +* <div>Soporte para enlaces reversos (//backlinks//), vía [[TWCrossLinks|https://github.com/akhater/TWCrossLinks]], +de modo que se pueda saber cuáles [[tiddlers|Tiddlers]] vinculan al actual. +</div> +* <div>Renombrado de enlaces, vía [[Relink|https://github.com/flibbles/tw5-relink]], de modo que no hayan enlaces +internos rotos en caso de que los tiddlers cambien de nombre. +</div> +* Iconos de interfaz web escalados cuando están en el texto de un tiddler. +* Tiddlers en Markdown. +* [[Enlaces enriquecidos]]. +* Resaltado sintáctico mejorado vía CodeMirror. + +''Importante'': Por convención, esta modificación tiene la misma versión que el tema en el cual está basado y las revisiones son números de letra sucesivos hechos tomando esa versión como base. + + +!! Contribuciones + +* Projectify está hospedado en ~GitHub en https://github.com/NicolasPetton/projectify. +* Notebook Mod está hospedado en Fossil en https://mutabit.com/repos.fossil/tiddlywiki/ + +!! Licencia + +Projectify y Projectify Mod están publicados bajo licencia MIT. +Mira [[LICENSE|$:/themes/nico/notebook/LICENSE]]. ++
<h1>Turndown Demo</h1> + +<p>This demonstrates <a href="https://github.com/domchristie/turndown">turndown</a> – an HTML to Markdown converter in JavaScript.</p> + +<h2>Usage</h2> + +<pre><code class="language-js">var turndownService = new TurndownService() + +console.log( + +turndownService.turndown('<h1>Hello world</h1>') + +)</code></pre> + +<hr /> + +<p>It aims to be <a href="http://commonmark.org/">CommonMark</a> + +compliant, and includes options to style the output. These options include:</p> + +<ul> + +<li>headingStyle (setext or atx)</li> + +<li>horizontalRule (*, -, or _)</li> + +<li>bullet (*, -, or +)</li> + +<li>codeBlockStyle (indented or fenced)</li> + +<li>fence (` or ~)</li> + +<li>emDelimiter (_ or *)</li> + +<li>strongDelimiter (** or __)</li> <li>linkStyle (inlined or referenced)</li> <li>linkReferenceStyle (full, collapsed, or shortcut)</li> </ul>__+
<$link to="$:/themes/nico/notebook/LICENSE"><<shield label:License status:MIT>></$link> +<$link to="$:/themes/nico/notebook"><<shield label:Release status:{{$:/themes/nico/notebook!!version}} colour:purple>></$link> +<a href="https://tiddlywiki.com"><<shield label:~TiddlyWiki status:5.1.22+ colour:blue>></a> + +Notebook Mod es una modificación al [[tema Notebook|Notebook theme]] para [[TiddlyWiki|https://tiddlywiki.com]], +que preserva varias de sus características: + +* Es un tema limpio y despejado. +* Es un tema //responsive// (adaptativo) que viene con soporte para móviles a través del plugin de ~JavaScript [[$:/plugins/nico/notebook-mobile]]. +* Barra lateral izquierda personalizada. +* Viene con 3 paletas de color, una gris, otra beige y una oscura. Para cambiar entre ellas, cliquea el botón {{$:/themes/nico/notebook/ui/Buttons/SwitchPalette}} desde la barra superior. + +e introduce las habituales modificaciones alojadas en el repositorio: + +* Soporte de interfaz para Español e Inglés. +* <div>Soporte para enlaces reversos (//backlinks//), vía [[TWCrossLinks|https://github.com/akhater/TWCrossLinks]], +de modo que se pueda saber cuáles [[tiddlers|Tiddlers]] vinculan al actual. +</div> +* <div>Soporte para renombrado, vía [[Relink|https://github.com/flibbles/tw5-relink]], de modo que no hayan enlaces +internos rotos en caso de que los tiddlers cambien de nombre. +</div> +* Soporte para iconos de interfaz web escalados cuando están en el texto de un tiddler. +* Soporte para Markdown (falta mejorar algunos detalles del editor, como números de línea y resaltado sintáctico). + +Para todos los cambios en la última versión {{$:/themes/nico/notebook!!version}} mira [[$:/themes/nico/notebook/changelog]]. + +!! Contribuciones + +* Notebook está hospedado en ~GitHub en https://github.com/NicolasPetton/notebook. +* Notebook Mod está hospedado en Fossil en https://mutabit.com/repos.fossil/tiddlywiki/ + +''Importante'': Por convención, esta modificación tiene la misma versión que el tema en el cual está basado. + +!! Licencia + +Notebook y Notebook Mod están publicados bajo licencia MIT. +Mira [[LICENSE|$:/themes/nico/notebook/LICENSE]]. ++
<$link to="$:/themes/nico/notebook/LICENSE"><<shield label:License status:MIT>></$link> +<$link to="$:/themes/nico/notebook"><<shield label:Release status:{{$:/themes/nico/notebook!!version}} colour:purple>></$link> +<a href="https://tiddlywiki.com"><<shield label:~TiddlyWiki status:5.1.22+ colour:blue>></a> + +Notebook is a clean, uncluttered theme for [[TiddlyWiki|https://tiddlywiki.com]]. + +* The theme is responsive and comes with mobile support through the ~JavaScript [[$:/plugins/nico/notebook-mobile]]. +* Custom left sidebar +* Notebook comes with 3 colour palettes, a grey, a beige and a dark one. To switch between colour palettes, click the {{$:/themes/nico/notebook/ui/Buttons/SwitchPalette}} button from the top bar. + +For all changes in the latest {{$:/themes/nico/notebook!!version}} release, see [[$:/themes/nico/notebook/changelog]]. + +!! Contributing + +The project is hosted on ~GitHub at https://github.com/NicolasPetton/notebook. + +!! License + +Notebook is released under MIT, see [[LICENSE|$:/themes/nico/notebook/LICENSE]]. ++
jkjjljljoi + +joijoioijoi+
<<richlink "http://freedesignfile.com/upload/2015/10/Cartoon-underwater-world-beautiful-vector-02.jpg" "blubb blubb">>+
<style> + #frame { + border: 0px dotted; + width: 700px; + height: 700px; + } +</style> +<iframe scrolling="no" src="https://hackmd.io/pmcQVmCfQpmeIm3uwtKWBA?view" + id="frame"> +</iframe>+
<div class="copincha-welcome"> + <div class="icon">{{$:/core/images/telegram}}</div> + <h3>{{$:/language/projectify/EmptyUpcomingTitle}}</h3> + {{$:/language/projectify/EmptyUpcomingDescription}} + </div>+
OpenScad es un programa para crear modelos 3D por computadora (CAD). Es gratuito y está disponible para Linux, Windows y Mac OS. + +Los modelos se diseñan escribiendo una serie de instrucciones en texto plano que es compilada y visualizada por el programa en un entorno tridimensional. + +Así tenemos un control total sobre el proceso de modelado porque podemos cambiar fácilmente cualquier instrucción y realizar diseños definidos por parámetros configurables. + +Dado a su naturaleza textual los archivos son fáciles de compartir.+
La obra consiste en un robot creado con materiales reciclados de una vieja cámara de cine de 16 milímetros y consta de diferentes sensores capases de ubicar a las personas en el espacio e interactuar con ellas; presenta un pequeño dispositivo que le brinda la posibilidad de hablar con el público presente en la sala en donde se encuentra, dándole la bienvenida al recinto y en caso de acercarse mucho el espectador a este, como observando sus partes y componentes, él mismo comienza a describirse íntegramente como esta construido electrónicamente. + +Realizada con Arduino Nano, servos motores, sensores ultrasónicos, acrílico, cámara de cine obsoleta y piezas recicladas de otros equipos electrónicos. + +<center> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-orangebot1.webp]] + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-orangebot2.webp]] ++
!Resumen +{{Portada taller 1.jpg}} + +{{Pa La Minga 1 - Resumen}} + +* ''Fecha'': 15 de Marzo de 2021 +* ''Horario'': 9:00 AM a 4:00 PM +* ''Lugar'': [[Jardín de M0]] + +[img width=200 [https://miro.medium.com/max/1200/1*S28NVtFxZR7IQ34AdXKwfQ.gif]] + +! Programa + +{{Pa La Minga 1 - programa}} + +<<alert warning " + +''Recomendamos traer: '' + +*Herramientas +* Ropa adecuada, (sombrero, zapatos, etc.) +* Agua para tomar +* Plato, cubierto y vaso. +* Algun dispositivo para copiar información" width:100%>> + + +! Memoria + +{{Pa la Minga 1 - Memoria}} + + + ++
[img[https://mutabit.com/repos.fossil/copincha/uv/repo/microwikis/palaminga-medios/palaminga-encabezado.webp]] + +{{Palaminga/resumen}} + +[[Palaminga|https://mutabit.com/repos.fossil/copincha/uv/repo/microwikis/palaminga.html]] + ++
''Pa La Minga'' es un espacio de encuentros lúdicos con amigxs para intercambiar la sabiduría y el conocimiento recolectado en el camino de cada unx, con la excusa de comer rico y pasarla lindo mientras aprendemos cómo hacerle frente a modelos insostenibles y más ahora en tiempos de pandemia. + +Creemos en la soberanía alimentaria, de los territorios y de los cuerpos como alternativa y sendero posible a la transformación del mundo y de quienes lo habitamos. Es la respuesta al miedo viral que nos imponen por todos lados. + +La vida tal y como la impone el consumismo no es sustentable para la Tierra, ni para la flora, ni para la fauna y los seres humanos. Si no cambiamos nuestras formas de interactuar con el hábitat y con lxs demás, agotaremos los recursos naturales y las fuentes renovables de energía, y por tanto la vida misma. + +Sembrar, reducir, recolectar, reutilizar, respirar, comunicarse conscientemente, educar desde otros lados y desde otras formas, escuchar y escucharse, bailar, manejar adecuadamente los desechos, construir con la naturaleza y no en contra de ella, organizar desde lo horizontal, el trueque, el silencio, las semillas criollas, la empatía, los círculos, la medicina natural y preventiva, aguas puras, energías limpias, manejo de las emociones, comer vivo, el arte, movimiento, respeto a los pueblos originarios, festivales verdes... son las herramientas para hábitar con intención y amor esta casa. + +Pa La Minga vendría a ser el gestor inicial de una comunidad intencional en La Habana, un tejido de personas y por lo tanto de talentos y de conocimientos para enseñarnos en la medida de lo posible como llevar una vida sustentable en la ciudad, bajo las premisas de la [[Permacultura]], de las buenas prácticas agroecológicas y comunidades conscientes, así como usos más responsables de las tecnologias. + +La palabra //minga// proviene del quechua //“mink´a”//, expresión usada antiguamente por muchas comunidades andinas, para los momentos en los cuales se realizaban los cultivos colectivos agrícolas que daban beneficios a la tribu. Aquí hacemos un juego de palabras con una expresión coloquial del cubanismo, para nombrar los espacios de talleres y encuentos. + +Pa La Minga es un espacio itinerante, es decir, va circulando por lugares y personas, como forma de descentralizar y abarcar varias áreas de provecho, enlazar gente con otra gente, formar tejido, "sembrar semillas" en diferentes espacios y barrios de la Habana y sobre todo pues echarle la mano a compañeras y compañeros que están iniciando proyectos o que ya tienen algún proyecto avanzado.+
\define lingo-base() $:/language/ControlPanel/Basics/ +Bienvenido a TiddlyWiki y a su comunidad de usuarios + +Antes de guardar información importante en TiddlyWiki, es preciso que te asegures de poder hacerlo de manera fiable + +Visita https://tiddlywiki.com/#GettingStarted para más información (en inglés) +!! Configura este ~TiddlyWiki + +<div class="tc-control-panel"> + +|<$link to="$:/SiteTitle"><<lingo Title/Prompt>></$link> |<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> | +|<$link to="$:/SiteSubtitle"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> | +|<$link to="$:/DefaultTiddlers"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit tag="textarea" tiddler="$:/DefaultTiddlers"/><br>//<<lingo DefaultTiddlers/BottomHint>>// | +</div> + +Consulta más opciones en el [[panel de control|$:/ControlPanel]] ++
!! ¿Cómo puedo adicionar secciones a la barra lateral izquierda? + +Cualquier tiddler con la etiqueta de sistema <<tag $:/themes/nico/notebook/tags/SidebarSection>> será mostrado como +una sección en la barra lateral+
[[pieza - imagen]] + +[[pieza - detalles]] + +[[pieza - enlace]] + +campos de infromacion: + +pieza - precio + ++
# Nombre del Proyecto + +![Imagen]() + +<br> + +<br> + +## Resumen + +### Problemática + +Los **problemas** que existen y las **necesidades** que generan. + +<br> + +### Pregunta + +Una pregunta que surge tras analizar la problemática. + +_Ejemplo:_ + +_¿Cómo se pueden localmente resolver las necesidades con: +recursos más accesibles? +procesos más sostenibles?_ + +<!-- +relaciones más interdependientes**? + +**grupos más inclusivos y plurales** +--> + +<br> + +### Hipótesis + +La idea o conjetura que dará respuesta a la pregunta, si es demostrada. + +<br> + +### Objetivos + + +Los pasos que se cumplirán en el proceso de investigación para demostrar que la idea planteada como hipótesis responde a la pregunta. + +<br> + +## Proceso de Investigación + +Una explicación detallada de cómo se obtiene la solución siguiendo los pasos planteados como objetivos. + +> Solución es una idea con capacidad demostrada para solucionar el problema. + +<br> + +## Tutorial + +Cómo funciona la solución? + +Cómo construirla? + +Cómo usarla? + +## Participantes +| | | +|-|-| +| ![Imagen del participante]() | Descripción | + + + + ++
<<tabs "[[Plástico Leal - Introducción]] [[Plástico Leal - Resumen]] [[Plástico Leal - Programa]] [[Plástico Leal - Talleres]] [[Plástico Leal - Información]] ">>+
Para fabricar objetos de utilidad con plástico reciclado en intervenciones públicas, cuyo conjunto denominamos Plástico Leal. + +Para aprender cómo crear modelos 3D, fabricarlos en una impresora 3D y compartirlos en un +repositorio público. + +!! Sesión 1 + +[[Modelado 3D en OpenScad]]<br>Por: Maurice Haedo Sanabria + +!! Sesión 2 + +[[Modelado 3D en FreeCAD]]<br>Por: Roberto Espín + +[[Edición directa sobre mallas con Meshmixer]]<br>Por: Abel Bajuelos Rizo + +!! Sesión 3 + +[[Flujo de trabajo de fabricación aditiva con Cura]]<br>Por: Abel Bajuelos Rizo+
!! Horario + +Sábados de 10:00 AM a 4:00 PM. + +!! Contactos + +[[Email|mailto:comunidad@copincha.org]] + +[[WhatsApp|https://wa.me/+5354115734]] + +[[Telegram|https://t.me/M0_Copincha]] + + + +!! Dirección + +Centro Cultural Habana Espacios Creativos.<br> Esquina Teniente Rey y Habana, Habana Vieja + +23.136068, -82.352731 + +<iframe width="700" height="233" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.openstreetmap.org/export/embed.html?bbox=-82.35379457473756%2C23.135348145796538%2C-82.35174000263214%2C23.13678857628896&layer=mapnik&marker=23.136068362976882%2C-82.35276728868484" style="border: 1px solid black"></iframe><br/><small><a href="https://www.openstreetmap.org/?mlat=23.13607&mlon=-82.35277#map=19/23.13607/-82.35277">View Larger Map</a></small> + +Plástico Leal es un proyecto iniciado por Maurice Haedo Sanabria en 2020. +Actualmente merecedor de la Beca de Creación de Nuevos Medios de [[Habana Espacios Creativos|https://facebook.com/HabanaEspaciosCreativos/]] y cuenta con la colaboración de [[Precious Plastic La Habana]].+
//A Eusebio Leal Spengler // + +Todos conocemos el plástico en mil formas y aplicaciones, y también por desgracia, con muy +pocas vías de escape cuando lo convertimos en desecho. Todo el plástico proveniente de viviendas, restaurantes, hoteles, trabajos y consumidores de todos los gustos y preferencias, suele tener un triste destino: lo podemos encontrar en cada esquina, en las aguas de nuestra bahía, en el verde de nuestros parques, y ocasionalmente, en su obvio lugar de destino: el tanque de basura local. Nos sobrecoge su abundancia, y nos preocupa su permanencia no deseada en tantos rincones de nuestro entorno. Pudiéramos atrevernos a decir que se encuentra tan presente en La Habana Vieja como las casas coloniales y otros tantos detalles que sí deberían resaltar y brillar. Todo ese plástico al descuido y ensuciando nuestro entorno deja de ser leal, para ser letal. + +Seguramente cada persona que conocemos, leal a la ciudad, desea que el plástico encuentre +un camino, real y maravilloso, para reinventarse y seguirnos acompañando en muchos ámbitos, +resiliente, perdurable, reutilizable; para que siga brillando como material multifacético y leal a nuestra ciudadanía cubriendo necesidades de +índole diversa. + +Aunemos las voluntades para limpiar y reconstruir nuestro patrimonio, partiendo de técnicas de reutilización y reciclaje que se abren paso, en la actualidad y en el mundo entero, como caminos hacia modelos de vida sostenibles.+
Para presentar proyectos o ideas afines y desarrollar una red de colaboración en torno al +reciclado de plástico. + +Construye una preentacion de tu experiencia o idea respondiendo esta [[guía| La Conexión : Guía para presentaciones]]. + +!!Sesión 1 + +[[Precious Plastic La Habana]]<br>Por: Copincha + +[[La Mina]]<br>Por: Embajada Rebirth / Tercer Paraíso Cuba + +!!Sesión 2 + +[[Proyecto Desarrollo Local en Mayabeque]]<br>Por: AlaSoluciones + +[[Ecomadera]]<br>Por: CNA A3 + +[[Experiencias reciclando plástico]]<br>Por: Yoel Utria Suárez + +!!Sesión 3 + +[[Construcción de impresoras 3D usando plástico reciclado]]<br>Por: Copincha + +[[MPA (Movement Patterns Applications)]]<br>Por: Maykel Rodríguez Ricardo y Oscar Luis +Vera Pérez + +[[Reciclado de plásticos en la construcción de maquetas]]<br>Por: Juan Infante + +[[Lámparas con plástico reciclado]]<br>Por: ATIVA + +[[Vestuario de giganteria con plástico reciclado]]<br>Por: Mumote + +!!Sesión 4 + +[[Mapa digital para el reciclaje de plástico]]<br>Por: Precious Plastic La Habana+
!! Sesión 4 + +[[Compartir y colaborar en el repositorio público del proyecto con Git]]<br>Por: Yudivián +Almeida Cruz+
Para aprender las innumerables posibilidades y beneficios actuales de reciclar plástico a +pequeña escala. + +!!Sesión 1 + +[[Ética del reciclaje]]<br>Por: Jorge Luis de la Fuente + +[[Introducción a los plásticos]]<br>Por: Juan Infante + +!!Sesión 2 + +[[Clasificación e Identificación de los plásticos]]<br>Por: Juan Infante + +!!Sesión 3 + +[[Reciclado de plásticos termoestables]]<br>Por: Juan Infante + +[[Procesos de transformación y maquinarias industriales y artesanales]]<br>Por: Juan Infante + +!!Sesión 4 + +[[Especificaciones para el diseño con plástico]]<br>Por: Juan Infante ++
Para aprender construyendo accesorios y máquinas (de código abierto) para reciclar plástico + +!! Sesión 1 + +[[Construcción de una máquina trituradora Precious Plastic|Trituradora Precious Plastic]] + +!! Sesión 2 + +[[Construcción de una máquina inyectora Precious Plastic|Inyectora Precious Plastic]] + +!! Sesión 3 + +[[Construcción de una máquina extrusora Precious Plastic|Extrusora Precious Plastic]] + +[[Construcción de una máquina extrusora de filamentos de impresión 3D|Construcción de una máquina extrusora de filamentos de impresión 3D]] + +!! Sesión 4 + +[[Construcción de una máquina impresora 3D Hangprinter|Hangprinter]]+
Inauguración en Casa Leal + +Taller La Introducción +Sábados 1 2 3 4 + +La Conexión +Sábados 5 6 7 8 + +El 3D Útil +Sábados 9 10 11 12 + +La Maquinaria +Sábados 13 14 15 16 17 18 19 20 + +El Plástico Leal +Sábados 21 22 23 24+
{{!!sobre}}. + +Queremos mostrar las increíbles oportunidades del reciclaje de plástico para combatir la contaminación plástica, reduciendo la +demanda de nuevo plástico virgen y cerrando su ciclo material mientras se crean mejores medios de vida para las personas. + +Compartimos todo en código abierto para que cualquiera lo use y se beneficie. Esto significa que ponemos disponible y de forma gratuita todo el conocimiento, know-how, procesos, +metodologías y herramientas. Creemos que la colaboración es más fuerte que la competencia +y que el problema del plástico sólo se puede resolver de forma colectiva.+
<<tabs "[[Plástico Leal - La Introducción]] [[Plástico Leal - La Conexión]] [[Plástico Leal - El 3D Útil]] [[Plástico Leal - La Maquinaria]] [[Plástico Leal - El Plástico Leal]] " >>+
{{Encabezado}} + +{{Descripcion}} + +[[Proyectos del colectivo PRUEBAS]] + ++
{{logo-precious-plastic-la-habana.jpg}} + +''Precious Plastic La Habana'', es un entorno, colaborativo y abierto para encontrar soluciones a las necesidades y los desafíos de contaminación de plástico en el contexto de La Habana. + +Reúne a personas y colectivos interesados en el estudio, la construcción y la implementación sostenidas de prácticas de reciclaje y reutilización de plástico, como parte de la iniciativa global Precious Plastic. + +Desde el cruce de prácticas tecnológicas (co-creación, fabricación digital, diseño abierto, etc.) con el patrimonio artesanal local, fomentamos en la comunidad el desarrollo de una conciencia innovadora y ecológica, para impulsar redes de recogida de plástico residual y proyectos que utilicen este material para generar todo tipo de productos. + +En los últimos años ha surgido un fuerte interés en la reutilización y reciclaje de plásticos en La Habana. Una nueva escena se está forjando a partir de la colaboración entre varios actores, tanto en entornos virtuales como físicos. Hay intercambio de conocimientos y una superposición significativa de diferentes grupos. La escena también está dinámicamente conectada a comunidades internacionales de reciclaje de plástico, la más notable y establecida es la red [[Precious Plastic|http://preciousplastic.com]]. + +El reciclaje del plástico está en fase emergente y desarrollándose dinámicamente, tanto con máquinas importadas o diseñadas y/o construídas en la isla. + +A diferencia de muchos otros materiales en Cuba, los plásticos son un recurso fácilmente disponible, y existe un estado de larga data de producción de artículos básicos para el hogar, tanto en el comercio minorista estatal como en el mercado negro. + +La ola actual de reciclaje de plásticos es una nueva desviación de estas prácticas establecidas, con intereses específicos en las prácticas ecológicas y las innovaciones tecnológicas de fuente abierta, conectada con comunidades globales de reciclaje y makers. + +!! Objetivos: +* Acercar el reciclaje de plástico a la comunidad de La Habana a través de la innovación de código abierto y las prácticas ecológicas. <br><br> +* Mantener espacios comunitarios de referencia en cuanto a reciclaje y reutilización de plástico en La Habana; para la capacitación directa y la socialización de conocimientos teórico-prácticos. <br><br> +* Educar con pedagogías centradas en capacidades específicas de utilidad aplicada, las innumerables posibilidades que poseen los plásticos para la creación de objetos, modelos de trabajo, emprendimientos y soluciones emergentes. <br><br> +* Concientizar sobre el impacto social y ambiental de las prácticas de reciclado de plástico. <br><br> +* Desarrollar y mantener una presencia en la web, y un repositorio público para documentar, divulgar, y compartir las experiencias de trabajo y conocimiento generado. <br><br> +* Dar soporte y asistencia a proyectos (de espacios, construcción de máquinas, organización comunitaria, educación, campañas de concientización, emprendimientos, y desarrollo de productos) iniciados por personas y grupos afines. <br><br> +* Colectivizar una cultura de reciclaje de plástico capaz de impactar en las formas que tenemos de tratar los desechos en general (orgánicos, e inorgánicos) de manera eficiente y socialmente saludable. <br><br> +* Crear una red organizada de transporte, distribución y almacenamiento de los residuos plásticos. + +!! Principios comunes: +* Aprender haciendo y mejorando variaciones de máquinas, moldes, nuevos productos y proyectos; que respeten la convivencia, (la colaboración,la socialización del trabajo) y el medio ambiente.<br><br> +* Compartir el conocimiento de forma abierta para que todos lo usen y se beneficien. + +!! Acciones: +* Explicar los aspectos significativos de cada paso en la cadena del reciclaje y la reutilización de plástico. <br><br> +* Asesorar en todo lo relativo a la fabricación de máquinas, gestión de los distintos tipos de plásticos, etc. <br><br> +* Enseñar a emplear las diferentes técnicas de elaboración de objetos con plástico reciclado (impresión 3D, inyección, prensado, extrusión, compresión, etc.) y a documentar modelos y proyectos en el repositorio público. <br><br> +* Sumar iniciativas que puedan recrear muchos objetos y piezas de repuesto que satisfagan todo tipo de necesidades y sustituyan importaciones. <br><br> +!! Enfoques actuales +* Construcción de máquinas, medios, y accesorios para procesar el plástico reciclado. <br><br> + +* Producción de objetos de primera necesidad o alta utilidad. <br><br> +* Producción de materiales de construcción, madera plástica, estructuras, mobiliario urbano y doméstico. <br><br> +* Producción de diversos medios de protección para los profesionales de la salud, en respuesta a la Covid-19. <br><br> +* Producción de medios y accesorios para huertos urbanos, cultivos verticales y agricultura alternativa. <br><br> +* Diseño de formas de movilidad urbana y medios para facilitar la recolección de plástico. <br><br> +* Producción de medios de decoración, e iluminación ambientales. <br><br> +* Producción de pavimentos y suelos. + +!! Información + +[[Academia Precious Plastic]] + +!! Proyectos + +[[Máquinas para reciclar plásticos]] + +[[Red de movilidad para la recolección de plásticos]] + +[[Losas de plástico ABS reciclado]] + +[[Kit de conexiones hidráulicas]] + +[[De La Fuente]] + +[[Protectores faciales de botellas PET]] + +[[Plástico Leal]] + +!! Colaboradores + +[[Copincha/Concepto]]. Comunidad abierta para la experimentación colaborativa, el aprendizaje y la co-creación de tecnologías resilientes. Sede del nodo Precious Plastic La Habana. + +[[**Embajada Rebirth \ Tercer Paraíso Cuba - Plasticidas|https://t.me/plasticidas]]. Red abierta para reunir personas e iniciativas interesadas en contribuir en el tema del reciclaje y la reutilización del plástico en Cuba. + +[[Embajada Rebirth / Tercer Paraíso Cuba - La Mina|http://www.laminatercerparaiso.org]]. Emprendimiento en la comunidad de Los Pocitos del municipio Marianao, que usa el reciclaje y la trituración de plástico para desarrollar localmente la autosostenibilidad económica, la concientización ambiental y la inclusión social de las mujeres. + +[[Estudio 50|http://www.estudio50habana.com]]. Taller social de arte y diseño en el municipio Centro Habana con un molino para triturar plástico. + +[[CNA A3|https://www.facebook.com/174561810093443]]. Cooperativa en la provincia Matanzas que produce *Ecomadera*, un material hecho de plástico reciclado para usar como sustituto ecológico a la madera en diversas construcciones. + +[[Bits y Átomos|https://t.me/bitsyatomos]] Grupo en Telegram para el aprendizaje y la colaboración en torno a las dinámicas de fabricación digital. + +[[De La Fuente|https://www.facebook.com/12114548255333944]]. Emprendimiento en el municipio Cotorro que produce sistemas de hidrodecoración y espectáculos de luces, empleando la reutilización de plástico + +AlaSoluciones. Emprendimiento en la provincia de Mayabeque de desarrollo de tecnología aplicada a la producción que buscan producir madera plástica. + +!! Salas de conversación + +[[Precious Plastics Habana|https://bit.ly/2KGGQx6]] + +[[Plasticidas|https://t.me/plasticidas]]+
<<list-links filter:"[tag[presentacion]]">> ++
# administracion de la tierra y la naturaleza + +# entorno construido +* como construir con materiales alternativos + +# Herramientas y tecnologias +* energias limpias + +# Cultura y educacion +steiner + +*Lectura del Paisaje +* musica y artes participativas + +salud y bienestar espiritual +*medicina preventiva + yoga + +# finanza y economia +wofing +* comercio justo +* merados de trueque + +#tenencia de la tierra y gobernacion comunitaria +ecoaldeas +resolucion de conflictos +cooperativas +asociacion entre vecinos + + + + + ++
{{$:/plugins/nico/projectify/ui/dashboard/Dashboard}}+
<div class="intro"> + <div class="logo">{{$:/themes/nico/notebook/images/logo.svg}}</div> + <h1>Proyectos y wikis personales basados en [[TiddlyWiki|https://tiddlywiki.com]].</h1> +</div> + +<style> +.intro { + padding: 40px 0; + max-width: 700px; + margin: auto; + text-align: center; +} + +.intro a.tc-tiddlylink-external { + text-decoration: none; + color: #7f4bca; +} + +.intro .logo img { + max-width: 300px; + margin: 0; +} + +.intro h1 { + color: #483355; + font-weight: normal; + margin: 0; + font-size: 1.3em; +} +</style> ++
We have worked with a range of [[Collaborators]]. + +Our projects include: + +{{{ [tag[project]] }}} + + + +We have given [[Talks]] on topics such as: + +{{{ [tag[talk]] }}}+
(Si lo que deseas es proteger todo TiddlyWiki con una única contraseña consulta [[Proteger TiddlyWiki con contraseña]]) + +Es posible encriptar tiddlers individuales con contraseña (una para cada tiddler) para ello hay que instalar el plugin: [[TW5-EncryptTiddlerPlugin|http://danielorodriguez.com/TW5-EncryptTiddlerPlugin/]] + +Para hacer esto: + +#Pulsa sobre el enlace anterior. +#Busca el tiddler ''Installation'' que aparece al abrir la web anterior. +#Arrastra el enlace que hay allí sobre tu TiddlyWiki y suéltalo. +#Guarda TiddlyWiki +#Recarga la página y aparecerá un candado al lado de cada tiddler. +#Pulsa el candado para encriptar o desencriptar un tiddler + ++
necesidades de almacenamiento,. +.. triturado. + +!! Buzo Cordovi + +presentar a traves del gobierno Centro Habana. + +Reciclaje + +materias primas,. reciclaje de emresa + +materias primas ,. recicla de las casas + +plastico postconsumo + + y no al plastico industrial + el plastico que vine de las casas vien contaminado y materias primas no recoge el postconsumo. + +!! Materias Primas + +!!Japon +*les interesa residuos +*japon quiere financiar maquinas + +!!Proyecto Espacios + +vilma,. fabrica de muebles,. +residuo madera,. + +adquirir maquinas para reciclar la madera,. + +reciclaje de plasticos,. + +traer a cna atres para la habana + +!!CNA Atres + +para minindustria,. desarrollo local,. + +espacio,... gobierno de centrohabana,. + +materia prima,. financiamiento,. + +documento,. de equipamiento,. + ++
{{$:/plugins/nico/projectify/ui/dashboard/Dashboard}}+
# Título + +Esta es una prueba de escritura para Markdown + +## Subtítulo + +``` +Código sin formato +``` + +```html +<h1>Código con formato</h1> +```+
Este es un [[tiddler|Tiddlers]] de pruebas. + +Si desde acá vinculamos algunos tiddlers, esto quiere decir que en la parte inferior de ellos, deberían haber unos +//backlinks// (enlaces reversos) que se referieran a este tiddler, proveyéndonos así de enlaces internos de doble vía: +un tiddler contiene hiperenlaces a otros, como en el HTML tradicional, y a su vez éste sabe de todos los que le vinculan +como en la idea del hipertexto original. +Haz click en estos enlaces para verificarlo. + +* [[Renombrar]] + +Entra al enlace [[Renombrar]] y renómbra el tiddler de acuerdo a las instrucciones indicadas en el mismo. + +La siguiente es una muestra de un icono de la interfaz gráfica embebido y reescalado dentro de la documentación, con lo +cual vemos esto <<_icon {{$:/core/images/new-button}} "link" "tooltip text">> en lugar de esto {{$:/core/images/new-button}}.+
\define tv-wikilink-template() https://projectify.wiki/demo.html#$uri_encoded$ + +! Projectify + +Projectify is a project management app for [[TiddlyWiki|https://tiddlywiki.com]], inspired by products like [[Todoist|https://todoist.com]] and [[Basecamp|https://basecamp.com]]. + +[[TiddlyWiki|https://tiddlywiki.com]] is an excellent note-taking & knowledge-base app with [[unique features|https://tiddlywiki.com/#TiddlyWiki]]. Projectify brings project management to ~TiddlyWiki, extending it to let you [[capture thoughts|$:/plugins/nico/projectify/doc/Inbox]], [[plan projects|$:/plugins/nico/projectify/doc/Projects]] and [[schedule tasks|$:/plugins/nico/projectify/doc/Schedule]]. + +Projectify is carefully crafted, with an intuitive interface that integrates seamlessy with the core of ~TiddlyWiki. [[Drag and drop |https://tiddlywiki.com/#Drag%20and%20Drop]] any tiddler into a project to add it as a todo, [[transclude|https://tiddlywiki.com/#Transclusion]] and [[link|https://tiddlywiki.com/#Linking%20in%20WikiText]] other tiddlers into projects or tasks. + +For all changes in the latest {{$:/plugins/nico/projectify!!version}} release, see [[ChangeLog|$:/plugins/nico/projectify/changelog]]. + +!! Demo + +A demo is available at [[projectify.wiki|https://projectify.wiki]]. + +!! Download + +Download a pre-configured empty wiki: + +<a class="py-btn btn-primary download-link" href="https://projectify.wiki/empty.html" download="empty.html"> + Get Projectify {{$:/core/images/save-button}} +</a> + +Alternatively, see [[Installation|$:/plugins/nico/projectify/doc/Installation]] for installation instructions in an existing wiki. + +!! Documentation + +* If you are new to ''~TiddlyWiki'', we strongly encourage you to read the [[Getting started|https://tiddlywiki.com/#GettingStarted]] documentation. + +* The ''Projectify documentation'' is available [[online|$:/plugins/nico/projectify/doc/Help]] as well as locally when the plugin is installed. + +!! Language packs + +Projectify is currently available in English, Dutch, German, French, Spanish & Simplified Chinese. + +* For the French language pack, install [[$:/plugins/nico/projectify-fr-FR]]. +* For the Dutch language pack, install [[$:/plugins/nico/projectify-nl-NL]]. +* For the German language pack, install [[$:/plugins/nico/projectify-de-DE]]. +* For the Spanish language pack, install [[$:/plugins/nico/projectify-es-ES]]. +* For the Simplified Chinese language pack, install [[$:/plugins/nico/projectify-zh-Hans]]. + +!! Development setup + +* Install [[Node.js|https://nodejs.org/en/]] +* In the root folder of the project run `npm install` +* To start the TiddlyWiki server, run `npm run serve`. The wiki is available at http://localhost:8080. +* To serve or build a specific language edition, refer to `package.json` +* To build HTML files for all editions, run `npm run build` + +!! Contributors + +Many thanks to the following people who have contributed to Projectify: + +* [[@OdinJorna|https://github.com/OdinJorna]] +* [[@Kookma|https://github.com/kookma]] +* [[@Joebordes|https://github.com/joebordes]] +* [[@Silvyn|https://github.com/silvyn]] +* [[@HueLiu|https://github.com/HueLiu]] +* [[@gregorfischer|https://github.com/gregorfischer]] ++
|Nombre|Tipo de contribucion|Descripcion| +| --- | --- | --- | +| --- | --- | --- | +| --- | --- | --- | +| --- | --- | --- |+
Cambia el título de este tiddler arriba por otro. +Deberías ver cómo cambia en todos los que apuntan a este +(por ejemplo en el tiddler de [[pruebas|Pruebas]]. +No más enlaces rotos en nuestro hipertexto! :-).+
> Qué soluciones podemos tener de forma local, distribuida y abierta en Cuba, para dar respuesta a la pandemia del Covid-19. + +## Protector facial + +| | | +| - | - | +| [![Imagen de Proyecto](/proyectos/protectorcubavscovid.jpg)](https://copinchapedia.copincha.org/es/Proyectos/protectorcubavscovid) | [**Protector Cuba vs Covid**](https://copinchapedia.copincha.org/es/Proyectos/protectorcubavscovid) <br> <br> _Iniciado por: 3DprintCuba_ <br> <br> Protector facial hechos a partir de impresion 3D y acetatos | +| [![Imagen de Proyecto](/proyectos/2protectoresfacialesde1pepinoreciclado.jpg)](https://copinchapedia.copincha.org/es/Proyectos/2protectoresfacialesde1pepinoreciclado) | [**Protectores faciales reciclando pepinos**](https://copinchapedia.copincha.org/es/Proyectos/protector_facial_pet) <br> <br> _Iniciado por: Jorge Luis de la Fuente y Mical Romero_ <br> <br> Protectores faciales hechos a partir de botellas de plastico PET | +| [![imagen de Proyecto.jpg](/proyectos/protectorfacialdepomo.jpg)](https://copinchapedia.copincha.org/es/Proyectos/protectorfacialdepomo)| [**Protector facial de pomo**](https://copinchapedia.copincha.org/es/Proyectos/protectorfacialdepomo) <br> <br> _Iniciado por: Carmen Gómez Pozo_ <br> <br> Protector facial hecho a partir de botellas de plastico PET | +| [![Imagen de Proyecto](/proyectos/protectormecanicalg.jpg)](https://copinchapedia.copincha.org/es/Proyectos/protectormecanicalg) | [**Protector Mecánica LG**](https://copinchapedia.copincha.org/es/Proyectos/protectormecanicalg) <br> <br> _Iniciado por: Mecánica LG_ <br> <br> Protector facial hechos a partir de cortar acetatos | +| [![Imagen de Proyecto](/proyectos/caretaorigami.jpg)](https://copinchapedia.copincha.org/es/Proyectos/caretaorigami) | [**Careta origami**](https://copinchapedia.copincha.org/es/Proyectos/caretaorigami) <br> <br> _Iniciado por: Irán Tamayo Salcines_ <br> <br> Protector facial hechos a partir de cortar y doblar acetatos | +| [![Imagen de Proyecto](/proyectos/mascaradeacrilico.jpg)](https://copinchapedia.copincha.org/es/Proyectos/mascaradeacrilico) | [**Máscara de Acrílico**](https://copinchapedia.copincha.org/es/Proyectos/mascaradeacrilico) <br> <br> _Iniciado por: Angel Edel Pino Arocha y Yismani Carrigan_ <br> <br> Protector facial hechos a partir de cortar y doblar acrílico transparente | + +<br> + +## Mascarilla de Protección + +| | | +| - | - | +| [![Imagen de Proyecto](/proyectos/mascarilladeproteccionsimbiosis1f2v-0320.jpeg)](https://copinchapedia.copincha.org/es/Proyectos/mascarilladeproteccionsimbiosis1f2v-0320) | [**Mascarilla de protección SIMBIOSIS 1F2V-0320**](https://copinchapedia.copincha.org/es/Proyectos/mascarilladeproteccionsimbiosis1f2v-0320) <br> <br> _Iniciado por: SIMBIOSIS_ <br> <br> Mascarilla de protección hecha con materiales que podemos encontrar en casa. | + +<br> + +## Caja aerosol + +| | | +| - | - | +| [![Imagen de Proyecto](/proyectos/cajaaereosol.jpg)](https://copinchapedia.copincha.org/es/Proyectos/cajaaereosol) | [**Caja aerosol**](https://copinchapedia.copincha.org/es/Proyectos/cajaaereosol) <br> <br> _Iniciado por: Angel Edel Pino Arocha y Yismani Carrigan_ <br> <br> Caja aereosol hecha a partir de cortar y doblar acrílico transparente |+
> ***¿Cómo contribuir a la educación de la robótica con recursos accesibles en Cuba?*** + +![Imagen de Encabezado](images/header.jpg) + +Introducción al proyecto + +Este espacio reúne las experiencias de proyectos de robotica educativa, poniendo especial atención en las soluciones que podemos replicar, adaptar y crear con recursos disponibles en Cuba. Pretendemos de esta forma que todos podamos impulsar más fácilmente el desarrollo de cualquier proyecto en este campo. + +<br> + + + +## Proyectos + +| | | +| - | - | +| [![Imagen de proyecto](/proyectos/imagendeproyecto.jpg)](https://copinchapedia.copincha.org/es/Proyectos/proyecto1) | [**Nombre del proyecto**](https://copinchapedia.copincha.org/es/Proyectos/proyecto1) <br> <br> _Iniciado por: aaa_ <br> <br> Descripción. | +|[![Imagen de proyecto](/proyectos/imagendeproyecto.jpg)](https://copinchapedia.copincha.org/es/Proyectos/proyecto2) | [**Nombre del proyecto**](https://copinchapedia.copincha.org/es/Proyectos/proyecto2) <br> <br> _Iniciado por: bbb_ <br> <br> Descripción. | + +## Recursos + +### Repositorios +| | | +|-|-| +|[**GRM**](...)| Descripción | + +## Participantes +| | | +|-|-| +|![imagen del contribuyente](/grupo-roboticamecatronica.jpg)| **Grupo de Robótica y Mecatrónica de la Cujae (GRM)** es un grupo abierto para debatir, aprender, enseñar, colaborar y desarrollar sobre robótica y mecatrónica, surgido como iniciativa de la Facultad de Automática de la Cujae para ampliar la formación universitaria de sus esrudiantes al tiempo que extendiende la labor educativa universitaria a la comunidad. | + +## Salas de conversación +[**Copincha**](https://chat.copincha.org/channel/robotica) + + + + ++
{{$:/plugins/nico/projectify/ui/dashboard/Dashboard}}+
Si estás usando TiddlyWiki, de seguro ya sabes esto, pero no está de más una introducción a este concepto +ubicuo y potente en TiddlyWiki, en caso de que no lo conozcas o un repaso en español, en caso de que sí, +pues la intensión es que este Tiddler en particular se convierta en un elemento que podemos colocar en +varios wikis personales. + +Un tiddler es la unidad minima de información en TiddlyWiki y una de sus aportaciones más ingeniosas, +pues en este wiki se tienen unidades de información más pequeñas que las habituales páginas. +Podemos pensar en un Tiddler como una ficha de anotaciones (de esas que en papel/carton de 9 cm por 15 cm), +pero potenciada por el hipertexto. +Allí escribimos la prosa, los datos y el código que alimentan nuestro wiki personal y debido a su caracter +minimalista y diverso pueden recombinarse de distintas maneras: enlazándolos entre sí, transcluyendo trozos de un +tiddler en otro, agregando funcionalidad específica a medida, arrastrando y soltando plugins entre distintos +wikis, entre otras. + +Reciben su nombre [[por la palabra británica asociada a pez pequeño|https://tiddlywiki.com/#Tiddlers]]: + + +<<< +Un "tiddler es una palabra británica informal que significa pez pequeño [...]. +Otros sistemas tienen conceptos análogos con nombres genéricos como "items", "entradas", "entidades", "nodos" +o "registros". +TiddlyWiki asume la postura de que es mejor ser confúsamente distinto que confúsamente genéricio. +<<< ++
! Descripción + +Corta artículos de plástico en pequeñas partículas listas para ser convertidas en cosas nuevas por otras máquinas. El plástico triturado puede ser de múltiples tamaños y colores para aumentar su valor. + +<center> +{{maquina-trituradora-precious-plastic.png}} +</center> + +! Listado de materiales +| !Elemento | !Descripción | !Cantidad | !Precio (CUP) | !Total (CUP) | !Conseguido | +| Cuerpo de cuchillas | | 1 | 4 790 | 4 790 | ✓ | +| Barra hexagonal | 32 cm, acero 27M | 1 | 1 750 | 1 750 | ✓ | +| Soporte | Perfil L, 30 x 30 x 3 mm, acero | 4 | | | ✓ | +| Criba | 150 x 180 x 1.5 mm, metal | 1 | | | ✓ | +| Rodamiento | 6204 | 2 | 150 | 300 | ✓ | +| Tolva | Grosor 3 mm, acero | 1 | | | ✓ | +| Base | | 1 | | | ✓ | +| Correa | | 1 | | | ✓ | +| Motor | 2 HP, 1600 - 1700 rpm | 1 | 750 | 750 | ✓ | +| Reductor | 1 / 80 - 130 | 1 | 1 000 | 1 000 | ✓ | +| Encendedor de alimentación | | 1 | 75 | 75 | ✓ | +| Indicador LED | | 1 | 75 | 75 | ✓ | +| Cable de alimentación | 5 000 mm | 1 | 50 | 250 | ✓ | + +<center> + +''Total:'' 8 990 CUP + +<br> + +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-pph-trituradora-4.webp]] [img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-pph-trituradora-3.webp]] +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-pph-trituradora-2.webp]] +[img [/home/m0/Documents/jardines digitales/Repo/micropedias/copinchapedia/copinchapedia-medios/proyectos-pph-trituradora-1.webp]]+
https://thediveo.github.io/TW5FontAwesome/output/fontawesome.tid+
[[pieza]] + +[[pieza-cantidad]] + +[[pieza - total]] calcular con el complemento [[formula]] (multiplicar [[pieza - precio]] x [[pieza - cantidad]]) + + ++
''This is a demo of using the same editor in the view template. Go ahead and click on this text and edit it.'' + +//The downside of this approach is that your wikitext and html will never be rendered, and currently there is no way to use links.// + +Oh, yes. Harmless is just the word: that's why I like it! Doesn't kill, doesn't wound, doesn't maim. But I'll tell you what it does do: it is very good at opening doors! Please, when Torchwood comes to write my complete history, don't tell people I travelled through time and space with her mother! There was a war. A Time War. ''The Last Great Time War''. My people fought a race called the __Daleks__, for the sake of all creation. And they lost. We lost. Everyone lost. They're all gone now. My family. My friends. Even that sky.<br> + +Geronimo! You are the only mystery worth solving. Yes, well, it's a brilliant noise. I love that noise. Overconfidence, this, and a small screwdriver. I’m absolutely sorted. I know. Dinosaurs! On a spaceship! + +It's a fez. I wear a fez now. ''[[Fezzes|Demo]]'' are cool. ''Bow ties are cool''. + +Father Christmas. Santa Claus. Or, as I’ve always known him, Jeff. I once spent a hell of a long time trying to get a gobby Australian to Heathrow airport. Please tell me I didn't get old. Anything but old. I was young! Oh... is he grey?<br> + +* Don't you think she looks tired? You can spend the rest of your life with me, but I can't spend the rest of mine with you. +* I have to live on. Alone. That's the //curse of the Time Lords//. +* Allons-y! You need to get yourself a better dictionary. When you do, look up 'genocide'. You'll find a little picture of me there, and the caption'll read 'Over my dead body'. +* There's something else I've always wanted to say: Allons-y, Alonso! Blimey, trying to make an Ood laugh... Yeah? Well I'm the Lord of Time.+
This TiddlyWiki contains the following tiddlers:
6M4(L15nD!86l!qD$2? kTWiH3;f; d!yDC zg=VyN{Y*#OK -XW6@As!v>21m>><;#)ITdr6qI=ZKJrK0^n`_BlbBZYg6PBpi?!DHl^dG136 z8cuz7@{44C(bwxFYc1URvr` w&CMqJ#*m|K$s((^eHcv{IWe)4O6m<%;{NP<%Xk-R1=vs_oBEvIAhJ9OVG=pc@= z`o~@6%32hcI;E9`Ket8aFU=IFTUkU@Zt); e9mb%%)Shk{V5L54v|j&t5IEx*_@ik%o=`yK$dn{ao^b6gg~?Sv`Dw{ zbwrBR=hb2g>{-KO5OIh!&O383L@ U zx0#tt=p7t`yTWuB!@gjmBrZ13T-<`}w-_7hM8KwG&p!Xmrqjv6T6O1PNRp0`9+8qa z!=DoI EuLH_hU?aG6v{hoS z1EqJ$VJU1HFw*rRW8JkiZsG0~{n I-U;K{R@)HoFt+|#%bxxbKAa2_8Z57lH-pc#%j-EBE)BL{wsd>Rn zc|NJmqd4i#@20W8@8ZM?Wz@!}8~T;gvQ;s*>y1Z8!b5*xxu3UuaF8G8gh@r1L1j*< zR4oC#qlEXDXEU2=U*y`{igLKI$j2I!BNnCdhW$;2bVZ$NTnE9zC-*OhMx4#|_Go>b z0@?bMDPbJG-Wojzq&zm+KFReX!yTG`3D5j%1Y^k8#Dp=c p+ZB9AF z`?+KyGtiqDS4Bk+(kjjp(OzZSG`h1EoD41PHX&2o2Rzxck#o=?MGP!H{5{p0yB!p! z-w3RcDaxR%UKZEtBxaO3x8^Str%ykG_*4RS!PXk@f7MeA= $804ETj}i zCv)WUe~ulwU|HrQoYCZJ$F2?7y=E=_)5`yU9~p49h`%=(4jYyjRL)IQ#02&(e>eO0 z4}1B|j`{)R+~{m^5ektCfhX72Tce=X;@xcIB$uvTQyn_-i~23;alYa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